@sumaris-net/ngx-components 1.15.13 → 1.16.1-rc1
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 +391 -372
- 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/doc/changelog.md +3 -0
- package/esm2015/src/app/admin/services/person.service.js +5 -9
- package/esm2015/src/app/core/graphql/graphql.service.js +2 -2
- package/esm2015/src/app/core/services/network.service.js +28 -19
- package/esm2015/src/app/core/services/network.utils.js +2 -2
- package/esm2015/src/app/shared/http/http.utils.js +31 -9
- package/esm2015/src/app/shared/services/job.utils.js +28 -21
- package/fesm2015/sumaris-net.ngx-components.js +364 -344
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/admin/services/person.service.d.ts +2 -1
- package/src/app/core/services/network.service.d.ts +8 -0
- package/src/app/core/services/network.utils.d.ts +1 -0
- package/src/app/shared/http/http.utils.d.ts +13 -1
- package/src/app/shared/services/job.utils.d.ts +4 -2
- 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('moment-timezone'), 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('@angular/cdk/text-field'), 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', 'moment-timezone', '@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', '@angular/cdk/text-field', '@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['moment-timezone'], 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['ionic-native'].downloader.ngx, global['ionic-native']['status-bar'].ngx.index, global['ionic-native'].keyboard.ngx.index, global['ionic-native']['in-app-browser'].ngx.index, global['ionic-native'].downloader.ngx.index, global.ng.cdk.textField, 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, momentTZImported, 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, textField, 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,46 +15,23 @@
|
|
|
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
30
|
var momentTZImported__namespace = /*#__PURE__*/_interopNamespace(momentTZImported);
|
|
37
|
-
var i3__namespace$3 = /*#__PURE__*/_interopNamespace(i3);
|
|
38
|
-
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
39
|
-
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
40
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2$2);
|
|
41
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3$1);
|
|
42
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
43
31
|
var uuidv4Imported__namespace = /*#__PURE__*/_interopNamespace(uuidv4Imported);
|
|
44
|
-
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
45
|
-
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
46
|
-
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
47
|
-
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
48
|
-
var i2__namespace$4 = /*#__PURE__*/_interopNamespace(i2$4);
|
|
49
|
-
var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
|
|
50
32
|
var QueueLink__default = /*#__PURE__*/_interopDefaultLegacy(QueueLink);
|
|
51
33
|
var SerializingLink__default = /*#__PURE__*/_interopDefaultLegacy(SerializingLink);
|
|
52
34
|
var loggerLink__default = /*#__PURE__*/_interopDefaultLegacy(loggerLink);
|
|
53
|
-
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$3);
|
|
54
|
-
var i14__namespace = /*#__PURE__*/_interopNamespace(i14);
|
|
55
|
-
var i15__namespace = /*#__PURE__*/_interopNamespace(i15);
|
|
56
|
-
var i17__namespace = /*#__PURE__*/_interopNamespace(i17);
|
|
57
|
-
var i18__namespace = /*#__PURE__*/_interopNamespace(i18);
|
|
58
35
|
|
|
59
36
|
var ENVIRONMENT = new i0.InjectionToken('ENV');
|
|
60
37
|
var Environment = /** @class */ (function () {
|
|
@@ -1280,14 +1257,14 @@
|
|
|
1280
1257
|
};
|
|
1281
1258
|
return MatAutocompleteConfigHolder;
|
|
1282
1259
|
}());
|
|
1283
|
-
var noop
|
|
1284
|
-
var ɵ0
|
|
1260
|
+
var noop = function (_) { };
|
|
1261
|
+
var ɵ0 = noop;
|
|
1285
1262
|
var MatAutocompleteField = /** @class */ (function () {
|
|
1286
1263
|
function MatAutocompleteField(cd, formGroupDir) {
|
|
1287
1264
|
this.cd = cd;
|
|
1288
1265
|
this.formGroupDir = formGroupDir;
|
|
1289
|
-
this._onChangeCallback = noop
|
|
1290
|
-
this._onTouchedCallback = noop
|
|
1266
|
+
this._onChangeCallback = noop;
|
|
1267
|
+
this._onTouchedCallback = noop;
|
|
1291
1268
|
this.logPrefix = '[mat-autocomplete] ';
|
|
1292
1269
|
this.formControlName = null;
|
|
1293
1270
|
this.required = false;
|
|
@@ -2080,7 +2057,7 @@
|
|
|
2080
2057
|
};
|
|
2081
2058
|
return DateFormatPipe;
|
|
2082
2059
|
}());
|
|
2083
|
-
DateFormatPipe.ɵprov =
|
|
2060
|
+
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" });
|
|
2084
2061
|
DateFormatPipe.decorators = [
|
|
2085
2062
|
{ type: i0.Pipe, args: [{
|
|
2086
2063
|
name: 'dateFormat'
|
|
@@ -2092,7 +2069,7 @@
|
|
|
2092
2069
|
{ type: i1$2.TranslateService }
|
|
2093
2070
|
]; };
|
|
2094
2071
|
|
|
2095
|
-
var moment
|
|
2072
|
+
var moment = momentImported__namespace;
|
|
2096
2073
|
var DateDiffDurationPipe = /** @class */ (function () {
|
|
2097
2074
|
function DateDiffDurationPipe(dateAdapter, translate) {
|
|
2098
2075
|
var _this = this;
|
|
@@ -2109,10 +2086,10 @@
|
|
|
2109
2086
|
return this.format(startDate, endDate);
|
|
2110
2087
|
};
|
|
2111
2088
|
DateDiffDurationPipe.prototype.format = function (startDate, endDate) {
|
|
2112
|
-
var duration = moment
|
|
2089
|
+
var duration = moment.duration(endDate.diff(startDate));
|
|
2113
2090
|
if (duration.asMinutes() < 0)
|
|
2114
2091
|
return '';
|
|
2115
|
-
var timeDuration = moment
|
|
2092
|
+
var timeDuration = moment(0)
|
|
2116
2093
|
.hour(duration.hours())
|
|
2117
2094
|
.minute(duration.minutes());
|
|
2118
2095
|
var days = Math.floor(duration.asDays());
|
|
@@ -2120,7 +2097,7 @@
|
|
|
2120
2097
|
};
|
|
2121
2098
|
return DateDiffDurationPipe;
|
|
2122
2099
|
}());
|
|
2123
|
-
DateDiffDurationPipe.ɵprov =
|
|
2100
|
+
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" });
|
|
2124
2101
|
DateDiffDurationPipe.decorators = [
|
|
2125
2102
|
{ type: i0.Pipe, args: [{
|
|
2126
2103
|
name: 'dateDiffDuration'
|
|
@@ -2142,7 +2119,7 @@
|
|
|
2142
2119
|
};
|
|
2143
2120
|
return DateFromNowPipe;
|
|
2144
2121
|
}());
|
|
2145
|
-
DateFromNowPipe.ɵprov =
|
|
2122
|
+
DateFromNowPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0.ɵɵinject(i1$1.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
|
|
2146
2123
|
DateFromNowPipe.decorators = [
|
|
2147
2124
|
{ type: i0.Pipe, args: [{
|
|
2148
2125
|
name: 'dateFromNow'
|
|
@@ -2211,7 +2188,7 @@
|
|
|
2211
2188
|
value *= -1;
|
|
2212
2189
|
}
|
|
2213
2190
|
}
|
|
2214
|
-
var degrees = roundFloat
|
|
2191
|
+
var degrees = roundFloat(value, opts.maxDecimals).toString();
|
|
2215
2192
|
// Add sign
|
|
2216
2193
|
var sign = negative ? '-' : '+';
|
|
2217
2194
|
if (opts.placeholderChar) {
|
|
@@ -2262,7 +2239,7 @@
|
|
|
2262
2239
|
}
|
|
2263
2240
|
var degrees = Math.trunc(value);
|
|
2264
2241
|
var minutes = Math.trunc((value - degrees) * 60);
|
|
2265
|
-
var seconds = roundFloat
|
|
2242
|
+
var seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
|
|
2266
2243
|
while (seconds >= 60) {
|
|
2267
2244
|
seconds -= 60;
|
|
2268
2245
|
minutes += 1;
|
|
@@ -2330,7 +2307,7 @@
|
|
|
2330
2307
|
}
|
|
2331
2308
|
}
|
|
2332
2309
|
var degrees = Math.trunc(value);
|
|
2333
|
-
var minutes = roundFloat
|
|
2310
|
+
var minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
|
|
2334
2311
|
while (minutes >= 60) {
|
|
2335
2312
|
minutes -= 60;
|
|
2336
2313
|
degrees += 1;
|
|
@@ -2381,15 +2358,15 @@
|
|
|
2381
2358
|
return NaN;
|
|
2382
2359
|
}
|
|
2383
2360
|
if (pattern === 'DD')
|
|
2384
|
-
return roundFloat
|
|
2361
|
+
return roundFloat(degrees, maxDecimals);
|
|
2385
2362
|
var minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
|
|
2386
2363
|
var seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
|
|
2387
2364
|
var direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
|
|
2388
2365
|
var sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
|
|
2389
2366
|
degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
|
|
2390
|
-
return roundFloat
|
|
2367
|
+
return roundFloat(degrees, maxDecimals);
|
|
2391
2368
|
}
|
|
2392
|
-
function roundFloat
|
|
2369
|
+
function roundFloat(input, maxDecimals) {
|
|
2393
2370
|
if (maxDecimals > 0) {
|
|
2394
2371
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
2395
2372
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -2412,7 +2389,7 @@
|
|
|
2412
2389
|
};
|
|
2413
2390
|
return LatLongFormatPipe;
|
|
2414
2391
|
}());
|
|
2415
|
-
LatLongFormatPipe.ɵprov =
|
|
2392
|
+
LatLongFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
|
|
2416
2393
|
LatLongFormatPipe.decorators = [
|
|
2417
2394
|
{ type: i0.Pipe, args: [{
|
|
2418
2395
|
name: 'latLongFormat'
|
|
@@ -2425,7 +2402,7 @@
|
|
|
2425
2402
|
}
|
|
2426
2403
|
return LatitudeFormatPipe;
|
|
2427
2404
|
}());
|
|
2428
|
-
LatitudeFormatPipe.ɵprov =
|
|
2405
|
+
LatitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
|
|
2429
2406
|
LatitudeFormatPipe.decorators = [
|
|
2430
2407
|
{ type: i0.Pipe, args: [{
|
|
2431
2408
|
name: 'latitudeFormat'
|
|
@@ -2438,7 +2415,7 @@
|
|
|
2438
2415
|
}
|
|
2439
2416
|
return LongitudeFormatPipe;
|
|
2440
2417
|
}());
|
|
2441
|
-
LongitudeFormatPipe.ɵprov =
|
|
2418
|
+
LongitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
|
|
2442
2419
|
LongitudeFormatPipe.decorators = [
|
|
2443
2420
|
{ type: i0.Pipe, args: [{
|
|
2444
2421
|
name: 'longitudeFormat'
|
|
@@ -2461,7 +2438,7 @@
|
|
|
2461
2438
|
};
|
|
2462
2439
|
return NumberFormatPipe;
|
|
2463
2440
|
}());
|
|
2464
|
-
NumberFormatPipe.ɵprov =
|
|
2441
|
+
NumberFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
|
|
2465
2442
|
NumberFormatPipe.decorators = [
|
|
2466
2443
|
{ type: i0.Pipe, args: [{
|
|
2467
2444
|
name: 'numberFormat'
|
|
@@ -2504,7 +2481,7 @@
|
|
|
2504
2481
|
};
|
|
2505
2482
|
return HighlightPipe;
|
|
2506
2483
|
}());
|
|
2507
|
-
HighlightPipe.ɵprov =
|
|
2484
|
+
HighlightPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
|
|
2508
2485
|
HighlightPipe.decorators = [
|
|
2509
2486
|
{ type: i0.Pipe, args: [{
|
|
2510
2487
|
name: 'highlight'
|
|
@@ -2572,7 +2549,7 @@
|
|
|
2572
2549
|
{ type: i0.Pipe, args: [{ name: 'fileSize' },] }
|
|
2573
2550
|
];
|
|
2574
2551
|
|
|
2575
|
-
var moment$
|
|
2552
|
+
var moment$1 = momentImported__namespace;
|
|
2576
2553
|
var tz = momentTZImported__namespace;
|
|
2577
2554
|
var DATE_UNIX_TIMESTAMP = 'X';
|
|
2578
2555
|
var DATE_UNIX_MS_TIMESTAMP = 'x';
|
|
@@ -2650,32 +2627,32 @@
|
|
|
2650
2627
|
if (!value || momentImported.isMoment(value))
|
|
2651
2628
|
return value;
|
|
2652
2629
|
// Parse the input value, as a ISO date time
|
|
2653
|
-
var date = moment$
|
|
2630
|
+
var date = moment$1(value, DATE_ISO_PATTERN);
|
|
2654
2631
|
if (date.isValid())
|
|
2655
2632
|
return date;
|
|
2656
2633
|
// Not valid: trying to convert from unix timestamp
|
|
2657
2634
|
if (typeof value === 'string') {
|
|
2658
2635
|
console.warn('Wrong date format - Trying to convert from local time: ' + value);
|
|
2659
2636
|
if (value.length === 10) {
|
|
2660
|
-
return moment$
|
|
2637
|
+
return moment$1(value, DATE_UNIX_TIMESTAMP);
|
|
2661
2638
|
}
|
|
2662
2639
|
else if (value.length === 13) {
|
|
2663
|
-
return moment$
|
|
2640
|
+
return moment$1(value, DATE_UNIX_MS_TIMESTAMP);
|
|
2664
2641
|
}
|
|
2665
2642
|
}
|
|
2666
2643
|
console.warn('Unable to parse date: ' + value);
|
|
2667
2644
|
return undefined;
|
|
2668
2645
|
}
|
|
2669
2646
|
function fromUnixTimestamp(timeInSec) {
|
|
2670
|
-
return moment$
|
|
2647
|
+
return moment$1(timeInSec, DATE_UNIX_TIMESTAMP);
|
|
2671
2648
|
}
|
|
2672
2649
|
function fromUnixMsTimestamp(timeInMs) {
|
|
2673
|
-
return moment$
|
|
2650
|
+
return moment$1(timeInMs, DATE_UNIX_MS_TIMESTAMP);
|
|
2674
2651
|
}
|
|
2675
2652
|
function toDuration(value, unit) {
|
|
2676
2653
|
if (!value)
|
|
2677
2654
|
return undefined;
|
|
2678
|
-
var duration = moment$
|
|
2655
|
+
var duration = moment$1.duration(value, unit);
|
|
2679
2656
|
// fix 990+ ms
|
|
2680
2657
|
if (duration.milliseconds() >= 990) {
|
|
2681
2658
|
duration.add(1000 - duration.milliseconds(), 'ms');
|
|
@@ -2705,7 +2682,7 @@
|
|
|
2705
2682
|
};
|
|
2706
2683
|
return DurationPipe;
|
|
2707
2684
|
}());
|
|
2708
|
-
DurationPipe.ɵprov =
|
|
2685
|
+
DurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0.ɵɵinject(i1$2.TranslateService)); }, token: DurationPipe, providedIn: "root" });
|
|
2709
2686
|
DurationPipe.decorators = [
|
|
2710
2687
|
{ type: i0.Pipe, args: [{
|
|
2711
2688
|
name: 'duration'
|
|
@@ -2729,7 +2706,7 @@
|
|
|
2729
2706
|
};
|
|
2730
2707
|
return MathAbsPipe;
|
|
2731
2708
|
}());
|
|
2732
|
-
MathAbsPipe.ɵprov =
|
|
2709
|
+
MathAbsPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
|
|
2733
2710
|
MathAbsPipe.decorators = [
|
|
2734
2711
|
{ type: i0.Pipe, args: [{
|
|
2735
2712
|
name: 'mathAbs'
|
|
@@ -2744,7 +2721,7 @@
|
|
|
2744
2721
|
};
|
|
2745
2722
|
return EvenPipe;
|
|
2746
2723
|
}());
|
|
2747
|
-
EvenPipe.ɵprov =
|
|
2724
|
+
EvenPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
|
|
2748
2725
|
EvenPipe.decorators = [
|
|
2749
2726
|
{ type: i0.Pipe, args: [{
|
|
2750
2727
|
name: 'even'
|
|
@@ -2759,7 +2736,7 @@
|
|
|
2759
2736
|
};
|
|
2760
2737
|
return OddPipe;
|
|
2761
2738
|
}());
|
|
2762
|
-
OddPipe.ɵprov =
|
|
2739
|
+
OddPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
|
|
2763
2740
|
OddPipe.decorators = [
|
|
2764
2741
|
{ type: i0.Pipe, args: [{
|
|
2765
2742
|
name: 'odd'
|
|
@@ -2891,7 +2868,7 @@
|
|
|
2891
2868
|
};
|
|
2892
2869
|
return MapGetPipe;
|
|
2893
2870
|
}());
|
|
2894
|
-
MapGetPipe.ɵprov =
|
|
2871
|
+
MapGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
|
|
2895
2872
|
MapGetPipe.decorators = [
|
|
2896
2873
|
{ type: i0.Pipe, args: [{
|
|
2897
2874
|
name: 'mapGet'
|
|
@@ -2908,7 +2885,7 @@
|
|
|
2908
2885
|
};
|
|
2909
2886
|
return MapKeysPipe;
|
|
2910
2887
|
}());
|
|
2911
|
-
MapKeysPipe.ɵprov =
|
|
2888
|
+
MapKeysPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
|
|
2912
2889
|
MapKeysPipe.decorators = [
|
|
2913
2890
|
{ type: i0.Pipe, args: [{
|
|
2914
2891
|
name: 'mapKeys'
|
|
@@ -2925,7 +2902,7 @@
|
|
|
2925
2902
|
};
|
|
2926
2903
|
return MapValuesPipe;
|
|
2927
2904
|
}());
|
|
2928
|
-
MapValuesPipe.ɵprov =
|
|
2905
|
+
MapValuesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
|
|
2929
2906
|
MapValuesPipe.decorators = [
|
|
2930
2907
|
{ type: i0.Pipe, args: [{
|
|
2931
2908
|
name: 'mapValues'
|
|
@@ -2941,7 +2918,7 @@
|
|
|
2941
2918
|
};
|
|
2942
2919
|
return IsNotNilOrBlankPipe;
|
|
2943
2920
|
}());
|
|
2944
|
-
IsNotNilOrBlankPipe.ɵprov =
|
|
2921
|
+
IsNotNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
|
|
2945
2922
|
IsNotNilOrBlankPipe.decorators = [
|
|
2946
2923
|
{ type: i0.Pipe, args: [{
|
|
2947
2924
|
name: 'isNotNilOrBlank'
|
|
@@ -2956,7 +2933,7 @@
|
|
|
2956
2933
|
};
|
|
2957
2934
|
return IsNilOrBlankPipe;
|
|
2958
2935
|
}());
|
|
2959
|
-
IsNilOrBlankPipe.ɵprov =
|
|
2936
|
+
IsNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
|
|
2960
2937
|
IsNilOrBlankPipe.decorators = [
|
|
2961
2938
|
{ type: i0.Pipe, args: [{
|
|
2962
2939
|
name: 'isNilOrBlank'
|
|
@@ -2971,7 +2948,7 @@
|
|
|
2971
2948
|
};
|
|
2972
2949
|
return ToStringPipe;
|
|
2973
2950
|
}());
|
|
2974
|
-
ToStringPipe.ɵprov =
|
|
2951
|
+
ToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
|
|
2975
2952
|
ToStringPipe.decorators = [
|
|
2976
2953
|
{ type: i0.Pipe, args: [{
|
|
2977
2954
|
name: 'toString'
|
|
@@ -2986,7 +2963,7 @@
|
|
|
2986
2963
|
};
|
|
2987
2964
|
return StrLengthPipe;
|
|
2988
2965
|
}());
|
|
2989
|
-
StrLengthPipe.ɵprov =
|
|
2966
|
+
StrLengthPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
|
|
2990
2967
|
StrLengthPipe.decorators = [
|
|
2991
2968
|
{ type: i0.Pipe, args: [{
|
|
2992
2969
|
name: 'strLength'
|
|
@@ -3001,7 +2978,7 @@
|
|
|
3001
2978
|
};
|
|
3002
2979
|
return StrIncludesPipe;
|
|
3003
2980
|
}());
|
|
3004
|
-
StrIncludesPipe.ɵprov =
|
|
2981
|
+
StrIncludesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrIncludesPipe_Factory() { return new StrIncludesPipe(); }, token: StrIncludesPipe, providedIn: "root" });
|
|
3005
2982
|
StrIncludesPipe.decorators = [
|
|
3006
2983
|
{ type: i0.Pipe, args: [{
|
|
3007
2984
|
name: 'strIncludes'
|
|
@@ -3092,7 +3069,7 @@
|
|
|
3092
3069
|
};
|
|
3093
3070
|
return TranslateContextService;
|
|
3094
3071
|
}());
|
|
3095
|
-
TranslateContextService.ɵprov =
|
|
3072
|
+
TranslateContextService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0.ɵɵinject(i1$2.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
|
|
3096
3073
|
TranslateContextService.decorators = [
|
|
3097
3074
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
3098
3075
|
];
|
|
@@ -3149,7 +3126,7 @@
|
|
|
3149
3126
|
};
|
|
3150
3127
|
return PropertyGetPipe;
|
|
3151
3128
|
}());
|
|
3152
|
-
PropertyGetPipe.ɵprov =
|
|
3129
|
+
PropertyGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
|
|
3153
3130
|
PropertyGetPipe.decorators = [
|
|
3154
3131
|
{ type: i0.Pipe, args: [{
|
|
3155
3132
|
name: 'propertyGet'
|
|
@@ -3175,7 +3152,7 @@
|
|
|
3175
3152
|
ngInit: [{ type: i0.Output }]
|
|
3176
3153
|
};
|
|
3177
3154
|
|
|
3178
|
-
var moment$
|
|
3155
|
+
var moment$2 = momentImported__namespace;
|
|
3179
3156
|
// @dynamic
|
|
3180
3157
|
var SharedValidators = /** @class */ (function () {
|
|
3181
3158
|
function SharedValidators() {
|
|
@@ -3258,7 +3235,7 @@
|
|
|
3258
3235
|
};
|
|
3259
3236
|
SharedValidators.validDate = function (control) {
|
|
3260
3237
|
var value = control.value;
|
|
3261
|
-
var date = !value || moment$
|
|
3238
|
+
var date = !value || moment$2.isMoment(value) ? value : moment$2(control.value, DATE_ISO_PATTERN);
|
|
3262
3239
|
if (date && (!date.isValid() || date.year() < 1970)) {
|
|
3263
3240
|
return { validDate: true };
|
|
3264
3241
|
}
|
|
@@ -4465,7 +4442,7 @@
|
|
|
4465
4442
|
};
|
|
4466
4443
|
return FormErrorTranslator;
|
|
4467
4444
|
}());
|
|
4468
|
-
FormErrorTranslator.ɵprov =
|
|
4445
|
+
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" });
|
|
4469
4446
|
FormErrorTranslator.decorators = [
|
|
4470
4447
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
4471
4448
|
];
|
|
@@ -4550,7 +4527,7 @@
|
|
|
4550
4527
|
};
|
|
4551
4528
|
return FormGetPipe;
|
|
4552
4529
|
}());
|
|
4553
|
-
FormGetPipe.ɵprov =
|
|
4530
|
+
FormGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormGetPipe_Factory() { return new FormGetPipe(); }, token: FormGetPipe, providedIn: "root" });
|
|
4554
4531
|
FormGetPipe.decorators = [
|
|
4555
4532
|
{ type: i0.Pipe, args: [{
|
|
4556
4533
|
name: 'formGet'
|
|
@@ -4565,7 +4542,7 @@
|
|
|
4565
4542
|
};
|
|
4566
4543
|
return FormGetControlPipe;
|
|
4567
4544
|
}());
|
|
4568
|
-
FormGetControlPipe.ɵprov =
|
|
4545
|
+
FormGetControlPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormGetControlPipe_Factory() { return new FormGetControlPipe(); }, token: FormGetControlPipe, providedIn: "root" });
|
|
4569
4546
|
FormGetControlPipe.decorators = [
|
|
4570
4547
|
{ type: i0.Pipe, args: [{
|
|
4571
4548
|
name: 'formGetControl'
|
|
@@ -4580,7 +4557,7 @@
|
|
|
4580
4557
|
};
|
|
4581
4558
|
return FormGetArrayPipe;
|
|
4582
4559
|
}());
|
|
4583
|
-
FormGetArrayPipe.ɵprov =
|
|
4560
|
+
FormGetArrayPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormGetArrayPipe_Factory() { return new FormGetArrayPipe(); }, token: FormGetArrayPipe, providedIn: "root" });
|
|
4584
4561
|
FormGetArrayPipe.decorators = [
|
|
4585
4562
|
{ type: i0.Pipe, args: [{
|
|
4586
4563
|
name: 'formGetArray'
|
|
@@ -4595,7 +4572,7 @@
|
|
|
4595
4572
|
};
|
|
4596
4573
|
return FormGetGroupPipe;
|
|
4597
4574
|
}());
|
|
4598
|
-
FormGetGroupPipe.ɵprov =
|
|
4575
|
+
FormGetGroupPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormGetGroupPipe_Factory() { return new FormGetGroupPipe(); }, token: FormGetGroupPipe, providedIn: "root" });
|
|
4599
4576
|
FormGetGroupPipe.decorators = [
|
|
4600
4577
|
{ type: i0.Pipe, args: [{
|
|
4601
4578
|
name: 'formGetGroup'
|
|
@@ -4718,7 +4695,7 @@
|
|
|
4718
4695
|
}
|
|
4719
4696
|
return false;
|
|
4720
4697
|
};
|
|
4721
|
-
var ɵ0$
|
|
4698
|
+
var ɵ0$1 = isIpad;
|
|
4722
4699
|
var isIOS = function (win) { return testUserAgent(win, /iPhone|iPod/i) || isIpad(win); };
|
|
4723
4700
|
var isAndroid = function (win) { return testUserAgent(win, /android|sink/i); };
|
|
4724
4701
|
var isCordova = function (win) { return !!(win['cordova'] || win['phonegap'] || win['PhoneGap']); };
|
|
@@ -4967,9 +4944,9 @@
|
|
|
4967
4944
|
var hour = parseInt(durationParts[0] || '0');
|
|
4968
4945
|
var minute = parseInt(durationParts[1] || '0');
|
|
4969
4946
|
var value = hour + (minute + 0.5) / 60;
|
|
4970
|
-
return roundFloat(value, maxDecimals);
|
|
4947
|
+
return roundFloat$1(value, maxDecimals);
|
|
4971
4948
|
}
|
|
4972
|
-
function roundFloat(input, maxDecimals) {
|
|
4949
|
+
function roundFloat$1(input, maxDecimals) {
|
|
4973
4950
|
if (maxDecimals > 0) {
|
|
4974
4951
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
4975
4952
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -4993,9 +4970,9 @@
|
|
|
4993
4970
|
DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
|
|
4994
4971
|
}
|
|
4995
4972
|
};
|
|
4996
|
-
var noop$
|
|
4973
|
+
var noop$1 = function () {
|
|
4997
4974
|
};
|
|
4998
|
-
var ɵ0$
|
|
4975
|
+
var ɵ0$2 = noop$1;
|
|
4999
4976
|
var MatLatLongField = /** @class */ (function () {
|
|
5000
4977
|
function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
|
|
5001
4978
|
this.platform = platform;
|
|
@@ -5003,8 +4980,8 @@
|
|
|
5003
4980
|
this.formBuilder = formBuilder;
|
|
5004
4981
|
this.cd = cd;
|
|
5005
4982
|
this.formGroupDir = formGroupDir;
|
|
5006
|
-
this._onChangeCallback = noop$
|
|
5007
|
-
this._onTouchedCallback = noop$
|
|
4983
|
+
this._onChangeCallback = noop$1;
|
|
4984
|
+
this._onTouchedCallback = noop$1;
|
|
5008
4985
|
this._subscription = new rxjs.Subscription();
|
|
5009
4986
|
this.disabling = false;
|
|
5010
4987
|
this.writing = false;
|
|
@@ -5356,14 +5333,14 @@
|
|
|
5356
5333
|
},] }
|
|
5357
5334
|
];
|
|
5358
5335
|
|
|
5359
|
-
var DEFAULT_VALUE_ACCESSOR
|
|
5336
|
+
var DEFAULT_VALUE_ACCESSOR = {
|
|
5360
5337
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5361
5338
|
useExisting: i0.forwardRef(function () { return MatDate; }),
|
|
5362
5339
|
multi: true
|
|
5363
5340
|
};
|
|
5364
|
-
var DAY_MASK
|
|
5365
|
-
var noop$
|
|
5366
|
-
var ɵ0$
|
|
5341
|
+
var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5342
|
+
var noop$2 = function () { };
|
|
5343
|
+
var ɵ0$3 = noop$2;
|
|
5367
5344
|
var MatDate = /** @class */ (function () {
|
|
5368
5345
|
function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5369
5346
|
this.platform = platform;
|
|
@@ -5373,13 +5350,13 @@
|
|
|
5373
5350
|
this.cd = cd;
|
|
5374
5351
|
this.keyboard = keyboard;
|
|
5375
5352
|
this.formGroupDir = formGroupDir;
|
|
5376
|
-
this._onChangeCallback = noop$
|
|
5377
|
-
this._onTouchedCallback = noop$
|
|
5353
|
+
this._onChangeCallback = noop$2;
|
|
5354
|
+
this._onTouchedCallback = noop$2;
|
|
5378
5355
|
this._subscription = new rxjs.Subscription();
|
|
5379
5356
|
this._writing = true;
|
|
5380
5357
|
this._disabling = false;
|
|
5381
5358
|
this._readonly = false;
|
|
5382
|
-
this.dayMask = DAY_MASK
|
|
5359
|
+
this.dayMask = DAY_MASK;
|
|
5383
5360
|
this.floatLabel = 'auto';
|
|
5384
5361
|
this.compact = false;
|
|
5385
5362
|
this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
|
|
@@ -5702,7 +5679,7 @@
|
|
|
5702
5679
|
selector: 'mat-date-field',
|
|
5703
5680
|
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 -->\n<ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\">\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]=\"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 input -->\n <input matInput type=\"text\" [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n [matDatepickerFilter]=\"datePickerFilter\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button type=\"button\" mat-icon-button tabindex=\"-1\" matSuffix\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)=\"clear()\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <!-- errors -->\n <mat-error *ngIf=\"formControl.touched && formControl.errors|mapKeys|arrayFirst; let errorKey\">\n <ng-container [ngSwitch]=\"errorKey\">\n <span *ngSwitchCase=\"'required'\" translate>ERROR.FIELD_REQUIRED</span>\n <span *ngSwitchCase=\"'validDate'\" translate>ERROR.FIELD_NOT_VALID_DATE_TIME</span>\n <span *ngSwitchCase=\"'dateIsAfter'\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</span>\n <span *ngSwitchCase=\"'dateIsBefore'\">{{'ERROR.FIELD_NOT_VALID_DATE_BEFORE' | translate: formControl.errors.dateIsBefore }}</span>\n <span *ngSwitchCase=\"'dateRange'\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</span>\n <span *ngSwitchCase=\"'dateMaxDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</span>\n <span *ngSwitchCase=\"'dateMinDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</span>\n <span *ngSwitchCase=\"'msg'\">{{(formControl.errors.msg?.key || formControl.errors.msg) | translate: formControl.errors.msg?.params}}</span>\n </ng-container>\n </mat-error>\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 </mat-form-field>\n\n <mat-datepicker #datePicker\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n [startAt]=\"startDate\"\n ></mat-datepicker>\n\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",
|
|
5704
5681
|
providers: [
|
|
5705
|
-
DEFAULT_VALUE_ACCESSOR
|
|
5682
|
+
DEFAULT_VALUE_ACCESSOR,
|
|
5706
5683
|
],
|
|
5707
5684
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5708
5685
|
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%}"]
|
|
@@ -5737,16 +5714,16 @@
|
|
|
5737
5714
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
5738
5715
|
};
|
|
5739
5716
|
|
|
5740
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5717
|
+
var DEFAULT_VALUE_ACCESSOR$1 = {
|
|
5741
5718
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5742
5719
|
useExisting: i0.forwardRef(function () { return MatDateTime; }),
|
|
5743
5720
|
multi: true
|
|
5744
5721
|
};
|
|
5745
5722
|
var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5746
5723
|
var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
|
|
5747
|
-
var HOUR_MASK
|
|
5748
|
-
var noop$
|
|
5749
|
-
var ɵ0$
|
|
5724
|
+
var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
5725
|
+
var noop$3 = function () { };
|
|
5726
|
+
var ɵ0$4 = noop$3;
|
|
5750
5727
|
var MatDateTime = /** @class */ (function () {
|
|
5751
5728
|
function MatDateTime(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5752
5729
|
this.platform = platform;
|
|
@@ -5756,14 +5733,14 @@
|
|
|
5756
5733
|
this.cd = cd;
|
|
5757
5734
|
this.keyboard = keyboard;
|
|
5758
5735
|
this.formGroupDir = formGroupDir;
|
|
5759
|
-
this._onChangeCallback = noop$
|
|
5760
|
-
this._onTouchedCallback = noop$
|
|
5736
|
+
this._onChangeCallback = noop$3;
|
|
5737
|
+
this._onTouchedCallback = noop$3;
|
|
5761
5738
|
this._subscription = new rxjs.Subscription();
|
|
5762
5739
|
this._writing = true;
|
|
5763
5740
|
this._disabling = false;
|
|
5764
5741
|
this._readonly = false;
|
|
5765
5742
|
this.dayMask = DAY_MASK$1;
|
|
5766
|
-
this.hourMask = HOUR_MASK
|
|
5743
|
+
this.hourMask = HOUR_MASK;
|
|
5767
5744
|
this.floatLabel = 'auto';
|
|
5768
5745
|
this.compact = false;
|
|
5769
5746
|
this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
|
|
@@ -6121,7 +6098,7 @@
|
|
|
6121
6098
|
selector: 'mat-date-time-field',
|
|
6122
6099
|
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]=\"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 input -->\n <input matInput type=\"text\" [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n [matDatepickerFilter]=\"datePickerFilter\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button type=\"button\" mat-icon-button tabindex=\"-1\" matSuffix\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)=\"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=\"'dateIsBefore'\">{{'ERROR.FIELD_NOT_VALID_DATE_BEFORE' | translate: formControl.errors.dateIsBefore }}</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 && (hourControl.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]=\"hourControl\"\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]=\"hourControl\"\n (click)=\"openTimePickerIfMobile($event)\"\n readonly>\n\n <input matInput type=\"text\"\n [formControl]=\"hourControl\"\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",
|
|
6123
6100
|
providers: [
|
|
6124
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6101
|
+
DEFAULT_VALUE_ACCESSOR$1,
|
|
6125
6102
|
],
|
|
6126
6103
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6127
6104
|
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%}"]
|
|
@@ -6156,15 +6133,15 @@
|
|
|
6156
6133
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
6157
6134
|
};
|
|
6158
6135
|
|
|
6159
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6136
|
+
var DEFAULT_VALUE_ACCESSOR$2 = {
|
|
6160
6137
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6161
6138
|
useExisting: i0.forwardRef(function () { return MatDateShort; }),
|
|
6162
6139
|
multi: true
|
|
6163
6140
|
};
|
|
6164
|
-
var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
|
|
6141
|
+
var DAY_MASK$2 = [/\d/, /\d/, /\d/, /\d/];
|
|
6165
6142
|
var noop$4 = function () {
|
|
6166
6143
|
};
|
|
6167
|
-
var ɵ0$
|
|
6144
|
+
var ɵ0$5 = noop$4;
|
|
6168
6145
|
var MatDateShort = /** @class */ (function () {
|
|
6169
6146
|
function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
6170
6147
|
this.dateAdapter = dateAdapter;
|
|
@@ -6177,7 +6154,7 @@
|
|
|
6177
6154
|
this._onTouchedCallback = noop$4;
|
|
6178
6155
|
this.writing = true;
|
|
6179
6156
|
this.disabling = false;
|
|
6180
|
-
this.dayMask = DAY_MASK;
|
|
6157
|
+
this.dayMask = DAY_MASK$2;
|
|
6181
6158
|
this.disabled = false;
|
|
6182
6159
|
this.floatLabel = 'auto';
|
|
6183
6160
|
this.readonly = false;
|
|
@@ -6454,7 +6431,7 @@
|
|
|
6454
6431
|
selector: 'mat-date-short-field',
|
|
6455
6432
|
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_YEAR_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker1)\"\n (keyup.escape)=\"preventEvent($event)\"\n (click)=\"matInput.select()\"\n [required]=\"required\"\n [tabindex]=\"tabindex\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dayControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker1)\"\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]=\"datePicker1\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n (click)=\"openDatePicker($event, datePicker1)\"\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 <ng-content select=\"mat-error\"></ng-content>\n </mat-form-field>\n\n <mat-datepicker #datePicker1\n startView=\"multi-year\"\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n (yearSelected)=\"closeDatePicker($event, datePicker1)\"\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",
|
|
6456
6433
|
providers: [
|
|
6457
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6434
|
+
DEFAULT_VALUE_ACCESSOR$2,
|
|
6458
6435
|
],
|
|
6459
6436
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6460
6437
|
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%}"]
|
|
@@ -6525,16 +6502,16 @@
|
|
|
6525
6502
|
},] }
|
|
6526
6503
|
];
|
|
6527
6504
|
|
|
6528
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6505
|
+
var DEFAULT_VALUE_ACCESSOR$3 = {
|
|
6529
6506
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6530
6507
|
useExisting: i0.forwardRef(function () { return MatDuration; }),
|
|
6531
6508
|
multi: true
|
|
6532
6509
|
};
|
|
6533
6510
|
var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
|
|
6534
|
-
var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
6535
|
-
var noop$
|
|
6511
|
+
var HOUR_MASK$1 = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
6512
|
+
var noop$5 = function () {
|
|
6536
6513
|
};
|
|
6537
|
-
var ɵ0$6 = noop$
|
|
6514
|
+
var ɵ0$6 = noop$5;
|
|
6538
6515
|
var MatDuration = /** @class */ (function () {
|
|
6539
6516
|
function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
|
|
6540
6517
|
this.dateAdapter = dateAdapter;
|
|
@@ -6543,11 +6520,11 @@
|
|
|
6543
6520
|
this.cd = cd;
|
|
6544
6521
|
this.formGroupDir = formGroupDir;
|
|
6545
6522
|
this._subscription = new rxjs.Subscription();
|
|
6546
|
-
this._onChangeCallback = noop$
|
|
6547
|
-
this._onTouchedCallback = noop$
|
|
6523
|
+
this._onChangeCallback = noop$5;
|
|
6524
|
+
this._onTouchedCallback = noop$5;
|
|
6548
6525
|
this.writing = true;
|
|
6549
6526
|
this.disabling = false;
|
|
6550
|
-
this.hourMask = HOUR_MASK;
|
|
6527
|
+
this.hourMask = HOUR_MASK$1;
|
|
6551
6528
|
this.disabled = false;
|
|
6552
6529
|
this.floatLabel = 'auto';
|
|
6553
6530
|
this.readonly = false;
|
|
@@ -6740,7 +6717,7 @@
|
|
|
6740
6717
|
selector: 'mat-duration-field',
|
|
6741
6718
|
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",
|
|
6742
6719
|
providers: [
|
|
6743
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6720
|
+
DEFAULT_VALUE_ACCESSOR$3,
|
|
6744
6721
|
],
|
|
6745
6722
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6746
6723
|
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%}"]
|
|
@@ -6800,22 +6777,22 @@
|
|
|
6800
6777
|
},] }
|
|
6801
6778
|
];
|
|
6802
6779
|
|
|
6803
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6780
|
+
var DEFAULT_VALUE_ACCESSOR$4 = {
|
|
6804
6781
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6805
6782
|
useExisting: i0.forwardRef(function () { return MatBooleanField; }),
|
|
6806
6783
|
multi: true
|
|
6807
6784
|
};
|
|
6808
|
-
var noop$
|
|
6785
|
+
var noop$6 = function () {
|
|
6809
6786
|
};
|
|
6810
|
-
var ɵ0$
|
|
6787
|
+
var ɵ0$7 = noop$6;
|
|
6811
6788
|
var MatBooleanField = /** @class */ (function () {
|
|
6812
6789
|
function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
|
|
6813
6790
|
this.translate = translate;
|
|
6814
6791
|
this.formBuilder = formBuilder;
|
|
6815
6792
|
this.cd = cd;
|
|
6816
6793
|
this.formGroupDir = formGroupDir;
|
|
6817
|
-
this._onChangeCallback = noop$
|
|
6818
|
-
this._onTouchedCallback = noop$
|
|
6794
|
+
this._onChangeCallback = noop$6;
|
|
6795
|
+
this._onTouchedCallback = noop$6;
|
|
6819
6796
|
this._writing = false;
|
|
6820
6797
|
this.showRadio = false;
|
|
6821
6798
|
this.disabled = false;
|
|
@@ -6990,7 +6967,7 @@
|
|
|
6990
6967
|
selector: 'mat-boolean-field',
|
|
6991
6968
|
template: "<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled {{classList}}\">\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\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 <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\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 <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\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 <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\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 <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\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 <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\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 <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\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 <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n\n </mat-form-field>\n </ng-container>\n\n</ng-template>\n\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n<ng-template #matSuffixTemplate>\n <ng-content select=\"[matSuffix]\"></ng-content>\n</ng-template>\n",
|
|
6992
6969
|
providers: [
|
|
6993
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6970
|
+
DEFAULT_VALUE_ACCESSOR$4
|
|
6994
6971
|
],
|
|
6995
6972
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6996
6973
|
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}"]
|
|
@@ -7077,7 +7054,6 @@
|
|
|
7077
7054
|
return MatNumpadEvent;
|
|
7078
7055
|
}(KeyboardEvent));
|
|
7079
7056
|
|
|
7080
|
-
exports.AnimationState = void 0;
|
|
7081
7057
|
(function (AnimationState) {
|
|
7082
7058
|
AnimationState["ENTER"] = "enter";
|
|
7083
7059
|
AnimationState["ENTER_INPUT"] = "enter-input";
|
|
@@ -7245,7 +7221,7 @@
|
|
|
7245
7221
|
};
|
|
7246
7222
|
return MatNumpadDomService;
|
|
7247
7223
|
}());
|
|
7248
|
-
MatNumpadDomService.ɵprov =
|
|
7224
|
+
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" });
|
|
7249
7225
|
MatNumpadDomService.decorators = [
|
|
7250
7226
|
{ type: i0.Injectable, args: [{
|
|
7251
7227
|
providedIn: 'root'
|
|
@@ -7651,7 +7627,7 @@
|
|
|
7651
7627
|
},] }
|
|
7652
7628
|
];
|
|
7653
7629
|
|
|
7654
|
-
var DEFAULT_VALUE_ACCESSOR = {
|
|
7630
|
+
var DEFAULT_VALUE_ACCESSOR$5 = {
|
|
7655
7631
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
7656
7632
|
useExisting: i0.forwardRef(function () { return MatSwipeField; }),
|
|
7657
7633
|
multi: true
|
|
@@ -7971,7 +7947,7 @@
|
|
|
7971
7947
|
{ type: i0.Component, args: [{
|
|
7972
7948
|
selector: 'mat-swipe-field',
|
|
7973
7949
|
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",
|
|
7974
|
-
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
7950
|
+
providers: [DEFAULT_VALUE_ACCESSOR$5],
|
|
7975
7951
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7976
7952
|
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}"]
|
|
7977
7953
|
},] }
|
|
@@ -8032,14 +8008,14 @@
|
|
|
8032
8008
|
},] }
|
|
8033
8009
|
];
|
|
8034
8010
|
|
|
8035
|
-
var noop$
|
|
8036
|
-
var ɵ0$
|
|
8011
|
+
var noop$7 = function () { };
|
|
8012
|
+
var ɵ0$8 = noop$7;
|
|
8037
8013
|
var MatChipsField = /** @class */ (function () {
|
|
8038
8014
|
function MatChipsField(cd, formGroupDir) {
|
|
8039
8015
|
this.cd = cd;
|
|
8040
8016
|
this.formGroupDir = formGroupDir;
|
|
8041
|
-
this._onChangeCallback = noop$
|
|
8042
|
-
this._onTouchedCallback = noop$
|
|
8017
|
+
this._onChangeCallback = noop$7;
|
|
8018
|
+
this._onTouchedCallback = noop$7;
|
|
8043
8019
|
this.logPrefix = '[mat-chips] ';
|
|
8044
8020
|
this.formControlName = null;
|
|
8045
8021
|
this.required = false;
|
|
@@ -9007,7 +8983,7 @@
|
|
|
9007
8983
|
};
|
|
9008
8984
|
return ProgressBarService;
|
|
9009
8985
|
}());
|
|
9010
|
-
ProgressBarService.ɵprov =
|
|
8986
|
+
ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
|
|
9011
8987
|
ProgressBarService.decorators = [
|
|
9012
8988
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9013
8989
|
];
|
|
@@ -9054,7 +9030,7 @@
|
|
|
9054
9030
|
};
|
|
9055
9031
|
return AppGestureConfig;
|
|
9056
9032
|
}(i1$6.HammerGestureConfig));
|
|
9057
|
-
AppGestureConfig.ɵprov =
|
|
9033
|
+
AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
|
|
9058
9034
|
AppGestureConfig.decorators = [
|
|
9059
9035
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9060
9036
|
];
|
|
@@ -9321,7 +9297,7 @@
|
|
|
9321
9297
|
};
|
|
9322
9298
|
return MatPaginatorI18n;
|
|
9323
9299
|
}(paginator.MatPaginatorIntl));
|
|
9324
|
-
MatPaginatorI18n.ɵprov =
|
|
9300
|
+
MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
|
|
9325
9301
|
MatPaginatorI18n.decorators = [
|
|
9326
9302
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9327
9303
|
];
|
|
@@ -9413,17 +9389,17 @@
|
|
|
9413
9389
|
return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
|
|
9414
9390
|
}
|
|
9415
9391
|
|
|
9416
|
-
var noop = function () {
|
|
9392
|
+
var noop$8 = function () {
|
|
9417
9393
|
};
|
|
9418
|
-
var ɵ0$
|
|
9394
|
+
var ɵ0$9 = noop$8;
|
|
9419
9395
|
var AppFormField = /** @class */ (function () {
|
|
9420
9396
|
function AppFormField(translate, cd, injector, formGroupDir) {
|
|
9421
9397
|
this.translate = translate;
|
|
9422
9398
|
this.cd = cd;
|
|
9423
9399
|
this.injector = injector;
|
|
9424
9400
|
this.formGroupDir = formGroupDir;
|
|
9425
|
-
this._onChangeCallback = noop;
|
|
9426
|
-
this._onTouchedCallback = noop;
|
|
9401
|
+
this._onChangeCallback = noop$8;
|
|
9402
|
+
this._onTouchedCallback = noop$8;
|
|
9427
9403
|
this.readonly = false;
|
|
9428
9404
|
this.compact = false;
|
|
9429
9405
|
this.floatLabel = 'auto';
|
|
@@ -9981,7 +9957,7 @@
|
|
|
9981
9957
|
};
|
|
9982
9958
|
return AudioProvider;
|
|
9983
9959
|
}(StartableService));
|
|
9984
|
-
AudioProvider.ɵprov =
|
|
9960
|
+
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" });
|
|
9985
9961
|
AudioProvider.decorators = [
|
|
9986
9962
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9987
9963
|
];
|
|
@@ -10081,7 +10057,7 @@
|
|
|
10081
10057
|
};
|
|
10082
10058
|
return Hotkeys;
|
|
10083
10059
|
}());
|
|
10084
|
-
Hotkeys.ɵprov =
|
|
10060
|
+
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" });
|
|
10085
10061
|
Hotkeys.decorators = [
|
|
10086
10062
|
{ type: i0.Injectable, args: [{
|
|
10087
10063
|
providedIn: 'root'
|
|
@@ -10285,7 +10261,7 @@
|
|
|
10285
10261
|
return Base64ImageReader;
|
|
10286
10262
|
}());
|
|
10287
10263
|
|
|
10288
|
-
var uuidv4
|
|
10264
|
+
var uuidv4 = uuidv4Imported__namespace;
|
|
10289
10265
|
var FileService = /** @class */ (function () {
|
|
10290
10266
|
function FileService(platform,
|
|
10291
10267
|
//private transfer: FileTransfer,
|
|
@@ -10331,7 +10307,7 @@
|
|
|
10331
10307
|
lastSlashIndex = source.lastIndexOf('/');
|
|
10332
10308
|
if (lastSlashIndex === -1)
|
|
10333
10309
|
throw new Error('Invalid URL: ' + source);
|
|
10334
|
-
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4
|
|
10310
|
+
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
|
|
10335
10311
|
if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
|
|
10336
10312
|
console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
|
|
10337
10313
|
targetFilePath = this._imageDirectory + fileName;
|
|
@@ -10394,7 +10370,7 @@
|
|
|
10394
10370
|
};
|
|
10395
10371
|
return FileService;
|
|
10396
10372
|
}());
|
|
10397
|
-
FileService.ɵprov =
|
|
10373
|
+
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" });
|
|
10398
10374
|
FileService.decorators = [
|
|
10399
10375
|
{ type: i0.Injectable, args: [{
|
|
10400
10376
|
providedIn: 'root',
|
|
@@ -10561,7 +10537,7 @@
|
|
|
10561
10537
|
Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
10562
10538
|
|
|
10563
10539
|
var scrypt = require('scrypt-async');
|
|
10564
|
-
var sha256
|
|
10540
|
+
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
10565
10541
|
var sha512 = require('hash.js/lib/hash/sha/512');
|
|
10566
10542
|
var nacl = {
|
|
10567
10543
|
sign: tweetnacl.sign,
|
|
@@ -10667,7 +10643,7 @@
|
|
|
10667
10643
|
* Hash (using SHA256) a message
|
|
10668
10644
|
*/
|
|
10669
10645
|
CryptoService.prototype.sha256 = function (message) {
|
|
10670
|
-
return sha256
|
|
10646
|
+
return sha256().update(message).digest('hex');
|
|
10671
10647
|
};
|
|
10672
10648
|
/**
|
|
10673
10649
|
* Hash (using SHA512) a message
|
|
@@ -10681,7 +10657,7 @@
|
|
|
10681
10657
|
};
|
|
10682
10658
|
return CryptoService;
|
|
10683
10659
|
}());
|
|
10684
|
-
CryptoService.ɵprov =
|
|
10660
|
+
CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
|
|
10685
10661
|
CryptoService.decorators = [
|
|
10686
10662
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
10687
10663
|
];
|
|
@@ -11314,18 +11290,14 @@
|
|
|
11314
11290
|
var HttpUtils = /** @class */ (function () {
|
|
11315
11291
|
function HttpUtils() {
|
|
11316
11292
|
}
|
|
11317
|
-
HttpUtils.
|
|
11293
|
+
HttpUtils.getText = function (http, uri, opts) {
|
|
11318
11294
|
return __awaiter(this, void 0, void 0, function () {
|
|
11319
11295
|
var err_1;
|
|
11320
11296
|
return __generator(this, function (_a) {
|
|
11321
11297
|
switch (_a.label) {
|
|
11322
11298
|
case 0:
|
|
11323
11299
|
// Add headers
|
|
11324
|
-
opts =
|
|
11325
|
-
//headers: new HttpHeaders(),
|
|
11326
|
-
//.append('X-App-Name', environment.name)
|
|
11327
|
-
//.append('X-App-Version', environment.version),
|
|
11328
|
-
);
|
|
11300
|
+
opts = opts || { responseType: 'text' };
|
|
11329
11301
|
// Force no cache
|
|
11330
11302
|
if (opts.nocache === true) {
|
|
11331
11303
|
opts.headers = (opts.headers instanceof i2$1.HttpHeaders ? opts.headers : new i2$1.HttpHeaders(opts.headers));
|
|
@@ -11336,10 +11308,8 @@
|
|
|
11336
11308
|
_a.label = 1;
|
|
11337
11309
|
case 1:
|
|
11338
11310
|
_a.trys.push([1, 3, , 4]);
|
|
11339
|
-
return [4 /*yield*/, http.get(uri, opts).toPromise()];
|
|
11340
|
-
case 2:
|
|
11341
|
-
// Using web http client
|
|
11342
|
-
return [2 /*return*/, (_a.sent())];
|
|
11311
|
+
return [4 /*yield*/, http.get(uri, Object.assign(Object.assign({}, opts), { responseType: 'text' })).toPromise()];
|
|
11312
|
+
case 2: return [2 /*return*/, (_a.sent())];
|
|
11343
11313
|
case 3:
|
|
11344
11314
|
err_1 = _a.sent();
|
|
11345
11315
|
if (err_1 && err_1.message) {
|
|
@@ -11354,6 +11324,40 @@
|
|
|
11354
11324
|
});
|
|
11355
11325
|
});
|
|
11356
11326
|
};
|
|
11327
|
+
HttpUtils.getJson = function (http, uri, opts) {
|
|
11328
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11329
|
+
var err_2;
|
|
11330
|
+
return __generator(this, function (_a) {
|
|
11331
|
+
switch (_a.label) {
|
|
11332
|
+
case 0:
|
|
11333
|
+
// Add headers
|
|
11334
|
+
opts = opts || {};
|
|
11335
|
+
// Force no cache
|
|
11336
|
+
if (opts.nocache === true) {
|
|
11337
|
+
opts.headers = (opts.headers instanceof i2$1.HttpHeaders ? opts.headers : new i2$1.HttpHeaders(opts.headers));
|
|
11338
|
+
opts.headers
|
|
11339
|
+
.append('Cache-Control', 'no-cache')
|
|
11340
|
+
.append('Pragma', 'no-cache');
|
|
11341
|
+
}
|
|
11342
|
+
_a.label = 1;
|
|
11343
|
+
case 1:
|
|
11344
|
+
_a.trys.push([1, 3, , 4]);
|
|
11345
|
+
return [4 /*yield*/, http.get(uri, Object.assign(Object.assign({}, opts), { responseType: 'json' })).toPromise()];
|
|
11346
|
+
case 2: return [2 /*return*/, (_a.sent())];
|
|
11347
|
+
case 3:
|
|
11348
|
+
err_2 = _a.sent();
|
|
11349
|
+
if (err_2 && err_2.message) {
|
|
11350
|
+
console.error("[network] Error on get request " + uri + ": " + err_2.message, err_2);
|
|
11351
|
+
}
|
|
11352
|
+
else {
|
|
11353
|
+
console.error("[network] Error on get request " + uri + ": " + (err_2 && err_2.statusText) + " - " + JSON.stringify(err_2));
|
|
11354
|
+
}
|
|
11355
|
+
throw { code: err_2.status, message: 'ERROR.UNKNOWN_NETWORK_ERROR' };
|
|
11356
|
+
case 4: return [2 /*return*/];
|
|
11357
|
+
}
|
|
11358
|
+
});
|
|
11359
|
+
});
|
|
11360
|
+
};
|
|
11357
11361
|
return HttpUtils;
|
|
11358
11362
|
}());
|
|
11359
11363
|
|
|
@@ -11374,7 +11378,7 @@
|
|
|
11374
11378
|
if (peerUrl.endsWith('/')) {
|
|
11375
11379
|
peerUrl = peerUrl.substr(0, peerUrl.length - 1);
|
|
11376
11380
|
}
|
|
11377
|
-
return [2 /*return*/, HttpUtils.
|
|
11381
|
+
return [2 /*return*/, HttpUtils.getJson(http, peerUrl + '/api/node/info', opts)];
|
|
11378
11382
|
});
|
|
11379
11383
|
});
|
|
11380
11384
|
}
|
|
@@ -11623,7 +11627,7 @@
|
|
|
11623
11627
|
onRefresh: [{ type: i0.Input }]
|
|
11624
11628
|
};
|
|
11625
11629
|
|
|
11626
|
-
var moment$
|
|
11630
|
+
var moment$3 = momentImported__namespace;
|
|
11627
11631
|
var SETTINGS_STORAGE_KEY = 'settings';
|
|
11628
11632
|
var SETTINGS_TRANSIENT_PROPERTIES = ['mobile', 'touchUi' /*deprecated*/];
|
|
11629
11633
|
// fixme: this constant points to static environment
|
|
@@ -11925,11 +11929,11 @@
|
|
|
11925
11929
|
if (!feature) {
|
|
11926
11930
|
feature = {
|
|
11927
11931
|
name: featureName.toLowerCase(),
|
|
11928
|
-
lastSyncDate: moment$
|
|
11932
|
+
lastSyncDate: moment$3().toISOString()
|
|
11929
11933
|
};
|
|
11930
11934
|
}
|
|
11931
11935
|
else {
|
|
11932
|
-
feature.lastSyncDate = moment$
|
|
11936
|
+
feature.lastSyncDate = moment$3().toISOString();
|
|
11933
11937
|
}
|
|
11934
11938
|
this.saveOfflineFeature(feature);
|
|
11935
11939
|
};
|
|
@@ -12123,7 +12127,7 @@
|
|
|
12123
12127
|
if (!page || !page.title || !page.path)
|
|
12124
12128
|
throw Error('Missing required argument \'page\', \'page.path\' or \'page.title\'');
|
|
12125
12129
|
// Set time
|
|
12126
|
-
page.time = page.time || moment$
|
|
12130
|
+
page.time = page.time || moment$3();
|
|
12127
12131
|
// Clean the title (remove <small> tags)
|
|
12128
12132
|
if (!opts || opts.removeTitleSmallTag !== false) {
|
|
12129
12133
|
var tagIndex = page.title.indexOf('</small>');
|
|
@@ -12140,7 +12144,7 @@
|
|
|
12140
12144
|
};
|
|
12141
12145
|
return LocalSettingsService;
|
|
12142
12146
|
}(StartableService));
|
|
12143
|
-
LocalSettingsService.ɵprov =
|
|
12147
|
+
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" });
|
|
12144
12148
|
LocalSettingsService.decorators = [
|
|
12145
12149
|
{ type: i0.Injectable, args: [{
|
|
12146
12150
|
providedIn: 'root',
|
|
@@ -12639,7 +12643,7 @@
|
|
|
12639
12643
|
if (opts === null || opts === void 0 ? void 0 : opts.nocache) {
|
|
12640
12644
|
path += '?t=' + Date.now();
|
|
12641
12645
|
}
|
|
12642
|
-
return [4 /*yield*/, this.
|
|
12646
|
+
return [4 /*yield*/, this.getText(path, opts)];
|
|
12643
12647
|
case 1:
|
|
12644
12648
|
appVersion = _b.sent();
|
|
12645
12649
|
if (isNotNilOrBlank(appVersion))
|
|
@@ -12906,31 +12910,43 @@
|
|
|
12906
12910
|
});
|
|
12907
12911
|
this._timerSubscription.add(function () { return console.debug('[network] Refresh timer stopped'); });
|
|
12908
12912
|
};
|
|
12913
|
+
NetworkService.prototype.getText = function (path, opts) {
|
|
12914
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12915
|
+
var uri;
|
|
12916
|
+
return __generator(this, function (_b) {
|
|
12917
|
+
uri = this.getUri(path);
|
|
12918
|
+
return [2 /*return*/, HttpUtils.getText(this.http, uri, opts)];
|
|
12919
|
+
});
|
|
12920
|
+
});
|
|
12921
|
+
};
|
|
12909
12922
|
NetworkService.prototype.get = function (path, opts) {
|
|
12910
12923
|
return __awaiter(this, void 0, void 0, function () {
|
|
12911
|
-
var uri
|
|
12924
|
+
var uri;
|
|
12912
12925
|
return __generator(this, function (_b) {
|
|
12913
|
-
uri = path;
|
|
12914
|
-
|
|
12915
|
-
if (!uri.startsWith('http://') && !uri.startsWith('https://')) {
|
|
12916
|
-
peerUrl = (this.peer && this.peer.url);
|
|
12917
|
-
// Remove trailing slash
|
|
12918
|
-
if (peerUrl.endsWith('/')) {
|
|
12919
|
-
peerUrl = peerUrl.substr(0, peerUrl.length - 1);
|
|
12920
|
-
}
|
|
12921
|
-
// Add first path
|
|
12922
|
-
if (!path.startsWith('/')) {
|
|
12923
|
-
path = '/' + path;
|
|
12924
|
-
}
|
|
12925
|
-
// Create the URI: concat peer URL and path
|
|
12926
|
-
uri = peerUrl + path;
|
|
12927
|
-
}
|
|
12928
|
-
// Execute the request
|
|
12929
|
-
return [2 /*return*/, HttpUtils.getResource(this.http, uri, opts)];
|
|
12926
|
+
uri = this.getUri(path);
|
|
12927
|
+
return [2 /*return*/, HttpUtils.getJson(this.http, uri, opts)];
|
|
12930
12928
|
});
|
|
12931
12929
|
});
|
|
12932
12930
|
};
|
|
12933
12931
|
/* -- Protected methods -- */
|
|
12932
|
+
NetworkService.prototype.getUri = function (path) {
|
|
12933
|
+
var uri = path;
|
|
12934
|
+
// If path is not an URI: prepend with peer URL
|
|
12935
|
+
if (!uri.startsWith('http://') && !uri.startsWith('https://')) {
|
|
12936
|
+
var peerUrl = (this.peer && this.peer.url);
|
|
12937
|
+
// Remove trailing slash
|
|
12938
|
+
if (peerUrl.endsWith('/')) {
|
|
12939
|
+
peerUrl = peerUrl.substr(0, peerUrl.length - 1);
|
|
12940
|
+
}
|
|
12941
|
+
// Add first path
|
|
12942
|
+
if (!path.startsWith('/')) {
|
|
12943
|
+
path = '/' + path;
|
|
12944
|
+
}
|
|
12945
|
+
// Create the URI: concat peer URL and path
|
|
12946
|
+
uri = peerUrl + path;
|
|
12947
|
+
}
|
|
12948
|
+
return uri;
|
|
12949
|
+
};
|
|
12934
12950
|
NetworkService.prototype.onDeviceConnectionChanged = function (connectionType) {
|
|
12935
12951
|
connectionType = (connectionType || 'unknown').toLowerCase();
|
|
12936
12952
|
if (connectionType.startsWith('cell'))
|
|
@@ -13009,7 +13025,7 @@
|
|
|
13009
13025
|
};
|
|
13010
13026
|
return NetworkService;
|
|
13011
13027
|
}(StartableService));
|
|
13012
|
-
NetworkService.ɵprov =
|
|
13028
|
+
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" });
|
|
13013
13029
|
NetworkService.decorators = [
|
|
13014
13030
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
13015
13031
|
];
|
|
@@ -13029,7 +13045,7 @@
|
|
|
13029
13045
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
|
|
13030
13046
|
]; };
|
|
13031
13047
|
|
|
13032
|
-
var ErrorCodes
|
|
13048
|
+
var ErrorCodes = {
|
|
13033
13049
|
UNKNOWN_ERROR: 0,
|
|
13034
13050
|
LOAD_ACCOUNT_ERROR: 1,
|
|
13035
13051
|
BAD_PASSWORD: 2,
|
|
@@ -13446,7 +13462,7 @@
|
|
|
13446
13462
|
case 13:
|
|
13447
13463
|
err_1 = _b.sent();
|
|
13448
13464
|
console.error(err_1);
|
|
13449
|
-
throw { code: ErrorCodes
|
|
13465
|
+
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
13450
13466
|
case 14:
|
|
13451
13467
|
// Emit update event
|
|
13452
13468
|
if (!opts || opts.emitEvent !== false) {
|
|
@@ -14223,7 +14239,7 @@
|
|
|
14223
14239
|
}(StartableService));
|
|
14224
14240
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
14225
14241
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
14226
|
-
EntitiesStorage.ɵprov =
|
|
14242
|
+
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" });
|
|
14227
14243
|
EntitiesStorage.decorators = [
|
|
14228
14244
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
14229
14245
|
];
|
|
@@ -14379,10 +14395,10 @@
|
|
|
14379
14395
|
function referentialsToString(values, properties, separator) {
|
|
14380
14396
|
return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
|
|
14381
14397
|
}
|
|
14382
|
-
var ɵ0$
|
|
14398
|
+
var ɵ0$a = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
14383
14399
|
var StatusList = Object.freeze([
|
|
14384
14400
|
{
|
|
14385
|
-
id: ɵ0$
|
|
14401
|
+
id: ɵ0$a,
|
|
14386
14402
|
icon: 'checkmark',
|
|
14387
14403
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
14388
14404
|
},
|
|
@@ -14685,7 +14701,7 @@
|
|
|
14685
14701
|
(data.lastName || '')) || '';
|
|
14686
14702
|
}
|
|
14687
14703
|
|
|
14688
|
-
var uuidv4 = uuidv4Imported__namespace;
|
|
14704
|
+
var uuidv4$1 = uuidv4Imported__namespace;
|
|
14689
14705
|
var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
14690
14706
|
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
14691
14707
|
/**
|
|
@@ -14729,7 +14745,7 @@
|
|
|
14729
14745
|
// Skip if not tracked
|
|
14730
14746
|
if (!context || !context.tracked)
|
|
14731
14747
|
return forward(operation);
|
|
14732
|
-
var id = context.serializationKey || uuidv4();
|
|
14748
|
+
var id = context.serializationKey || uuidv4$1();
|
|
14733
14749
|
console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
|
|
14734
14750
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
14735
14751
|
var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -15360,14 +15376,14 @@
|
|
|
15360
15376
|
mutationLinks = void 0;
|
|
15361
15377
|
// Add queue to store tracked queries, when offline
|
|
15362
15378
|
if (enableTrackMutationQueries) {
|
|
15363
|
-
serializingLink = new SerializingLink__default[
|
|
15379
|
+
serializingLink = new SerializingLink__default['default']();
|
|
15364
15380
|
trackerLink = createTrackerLink({
|
|
15365
15381
|
storage: storage,
|
|
15366
15382
|
onNetworkStatusChange: this._networkStatusChanged$,
|
|
15367
15383
|
debounce: 1000,
|
|
15368
15384
|
debug: true
|
|
15369
15385
|
});
|
|
15370
|
-
queueLink_1 = new QueueLink__default[
|
|
15386
|
+
queueLink_1 = new QueueLink__default['default']();
|
|
15371
15387
|
this.registerSubscription(this._networkStatusChanged$
|
|
15372
15388
|
.subscribe(function (type) {
|
|
15373
15389
|
// Network is offline: start buffering into queue
|
|
@@ -15382,7 +15398,7 @@
|
|
|
15382
15398
|
}
|
|
15383
15399
|
}));
|
|
15384
15400
|
mutationLinks = [
|
|
15385
|
-
loggerLink__default[
|
|
15401
|
+
loggerLink__default['default'],
|
|
15386
15402
|
queueLink_1,
|
|
15387
15403
|
trackerLink,
|
|
15388
15404
|
queueLink_1,
|
|
@@ -15489,7 +15505,7 @@
|
|
|
15489
15505
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
15490
15506
|
|| this.toAppError(err.networkError)
|
|
15491
15507
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
15492
|
-
|| this.createAppErrorByCode(ErrorCodes
|
|
15508
|
+
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
15493
15509
|
// If graphQL: try to convert the first error found
|
|
15494
15510
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
15495
15511
|
|| this.toAppError(err)
|
|
@@ -15497,7 +15513,7 @@
|
|
|
15497
15513
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
15498
15514
|
|| err;
|
|
15499
15515
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
15500
|
-
if (error && error.code === ErrorCodes
|
|
15516
|
+
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
15501
15517
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
15502
15518
|
this.onNetworkError.next(error);
|
|
15503
15519
|
}
|
|
@@ -15508,7 +15524,7 @@
|
|
|
15508
15524
|
data: null,
|
|
15509
15525
|
errors: [error],
|
|
15510
15526
|
loading: false,
|
|
15511
|
-
networkStatus:
|
|
15527
|
+
networkStatus: core.NetworkStatus.error
|
|
15512
15528
|
};
|
|
15513
15529
|
};
|
|
15514
15530
|
GraphqlService.prototype.createAppErrorByCode = function (errorCode) {
|
|
@@ -15533,7 +15549,7 @@
|
|
|
15533
15549
|
return 'ERROR.UNAUTHORIZED';
|
|
15534
15550
|
case ServerErrorCodes.FORBIDDEN:
|
|
15535
15551
|
return 'ERROR.FORBIDDEN';
|
|
15536
|
-
case ErrorCodes
|
|
15552
|
+
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
15537
15553
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
15538
15554
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
15539
15555
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -15565,7 +15581,7 @@
|
|
|
15565
15581
|
};
|
|
15566
15582
|
return GraphqlService;
|
|
15567
15583
|
}(StartableService));
|
|
15568
|
-
GraphqlService.ɵprov =
|
|
15584
|
+
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" });
|
|
15569
15585
|
GraphqlService.decorators = [
|
|
15570
15586
|
{ type: i0.Injectable, args: [{
|
|
15571
15587
|
providedIn: 'root'
|
|
@@ -15582,7 +15598,7 @@
|
|
|
15582
15598
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
15583
15599
|
]; };
|
|
15584
15600
|
|
|
15585
|
-
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
15601
|
+
var sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
15586
15602
|
var BaseGraphqlServiceOptions = /** @class */ (function () {
|
|
15587
15603
|
function BaseGraphqlServiceOptions() {
|
|
15588
15604
|
}
|
|
@@ -15752,8 +15768,8 @@
|
|
|
15752
15768
|
};
|
|
15753
15769
|
/* -- protected methods -- */
|
|
15754
15770
|
BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
|
|
15755
|
-
var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
15756
|
-
var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
15771
|
+
var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
15772
|
+
var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
15757
15773
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
15758
15774
|
};
|
|
15759
15775
|
BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
|
|
@@ -15826,19 +15842,19 @@
|
|
|
15826
15842
|
/* ------------------------------------
|
|
15827
15843
|
* GraphQL queries
|
|
15828
15844
|
* ------------------------------------*/
|
|
15829
|
-
var Fragments
|
|
15830
|
-
account: core.gql(templateObject_1
|
|
15831
|
-
settings: core.gql(templateObject_2
|
|
15845
|
+
var Fragments = {
|
|
15846
|
+
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 ...UserSettingsFragment\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\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 ...UserSettingsFragment\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }"]))),
|
|
15847
|
+
settings: core.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["fragment UserSettingsFragment on UserSettingsVO {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }"], ["fragment UserSettingsFragment on UserSettingsVO {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }"])))
|
|
15832
15848
|
};
|
|
15833
15849
|
// Load account query
|
|
15834
|
-
var LoadQuery
|
|
15850
|
+
var LoadQuery = core.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n ", "\n"], ["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n ", "\n"])), Fragments.account, Fragments.settings);
|
|
15835
15851
|
// Check email query
|
|
15836
|
-
var IsEmailExistsQuery = core.gql(templateObject_4
|
|
15852
|
+
var IsEmailExistsQuery = core.gql(templateObject_4 || (templateObject_4 = __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"])));
|
|
15837
15853
|
// Save (create or update) account mutation
|
|
15838
15854
|
var AccountMutations = {
|
|
15839
|
-
save: core.gql(templateObject_5
|
|
15840
|
-
create: core.gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""], ["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""])), Fragments
|
|
15841
|
-
saveSettings: core.gql(templateObject_7 || (templateObject_7 = __makeTemplateObject(["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""], ["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""])), Fragments
|
|
15855
|
+
save: core.gql(templateObject_5 || (templateObject_5 = __makeTemplateObject([" mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""], [" mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""])), Fragments.account, Fragments.settings),
|
|
15856
|
+
create: core.gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""], ["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""])), Fragments.account, Fragments.settings),
|
|
15857
|
+
saveSettings: core.gql(templateObject_7 || (templateObject_7 = __makeTemplateObject(["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""], ["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""])), Fragments.settings)
|
|
15842
15858
|
};
|
|
15843
15859
|
// Sent confirmation email
|
|
15844
15860
|
var SendConfirmEmailMutation = core.gql(templateObject_8 || (templateObject_8 = __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"])));
|
|
@@ -16206,7 +16222,7 @@
|
|
|
16206
16222
|
error_3 = _b.sent();
|
|
16207
16223
|
console.error(error_3);
|
|
16208
16224
|
this.resetData();
|
|
16209
|
-
throw { code: ErrorCodes
|
|
16225
|
+
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
16210
16226
|
case 4:
|
|
16211
16227
|
// Store pubkey+keypair
|
|
16212
16228
|
this._cache.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -16242,7 +16258,7 @@
|
|
|
16242
16258
|
return [3 /*break*/, 18];
|
|
16243
16259
|
case 11:
|
|
16244
16260
|
err_1 = _b.sent();
|
|
16245
|
-
if (!(err_1 && +(err_1.code) === ErrorCodes
|
|
16261
|
+
if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
16246
16262
|
if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
|
|
16247
16263
|
isEmailExists = void 0;
|
|
16248
16264
|
_b.label = 12;
|
|
@@ -16258,12 +16274,12 @@
|
|
|
16258
16274
|
case 15:
|
|
16259
16275
|
// Email not exists (no account)
|
|
16260
16276
|
if (!isEmailExists) {
|
|
16261
|
-
throw { code: ErrorCodes
|
|
16277
|
+
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
16262
16278
|
}
|
|
16263
16279
|
_b.label = 16;
|
|
16264
16280
|
case 16:
|
|
16265
16281
|
// Email exists, so error = 'bad password'
|
|
16266
|
-
throw { code: ErrorCodes
|
|
16282
|
+
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
16267
16283
|
case 17: throw err_1; // resend the first error
|
|
16268
16284
|
case 18:
|
|
16269
16285
|
_b.trys.push([18, 20, , 21]);
|
|
@@ -16459,8 +16475,8 @@
|
|
|
16459
16475
|
_b.label = 3;
|
|
16460
16476
|
case 3: return [3 /*break*/, 6];
|
|
16461
16477
|
case 4: return [4 /*yield*/, this.graphql.query({
|
|
16462
|
-
query: LoadQuery
|
|
16463
|
-
error: { code: ErrorCodes
|
|
16478
|
+
query: LoadQuery,
|
|
16479
|
+
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
16464
16480
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
16465
16481
|
})];
|
|
16466
16482
|
case 5:
|
|
@@ -16498,7 +16514,7 @@
|
|
|
16498
16514
|
case 1:
|
|
16499
16515
|
isEmailExists = _b.sent();
|
|
16500
16516
|
if (isEmailExists) {
|
|
16501
|
-
throw { code: ErrorCodes
|
|
16517
|
+
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
16502
16518
|
}
|
|
16503
16519
|
return [2 /*return*/];
|
|
16504
16520
|
}
|
|
@@ -16548,7 +16564,7 @@
|
|
|
16548
16564
|
locale: locale
|
|
16549
16565
|
},
|
|
16550
16566
|
error: {
|
|
16551
|
-
code: ErrorCodes
|
|
16567
|
+
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
16552
16568
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
16553
16569
|
}
|
|
16554
16570
|
})];
|
|
@@ -16571,7 +16587,7 @@
|
|
|
16571
16587
|
code: code
|
|
16572
16588
|
},
|
|
16573
16589
|
error: {
|
|
16574
|
-
code: ErrorCodes
|
|
16590
|
+
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
16575
16591
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
16576
16592
|
}
|
|
16577
16593
|
})];
|
|
@@ -16671,7 +16687,7 @@
|
|
|
16671
16687
|
throw error_7;
|
|
16672
16688
|
console.error(error_7);
|
|
16673
16689
|
throw {
|
|
16674
|
-
code: ErrorCodes
|
|
16690
|
+
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
16675
16691
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
16676
16692
|
};
|
|
16677
16693
|
case 6: return [2 /*return*/];
|
|
@@ -16882,7 +16898,7 @@
|
|
|
16882
16898
|
case 1:
|
|
16883
16899
|
existingAccount = _b.sent();
|
|
16884
16900
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
16885
|
-
throw { code: ErrorCodes
|
|
16901
|
+
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
16886
16902
|
}
|
|
16887
16903
|
this.copyIdAndUpdateDate(existingAccount, account);
|
|
16888
16904
|
_b.label = 2;
|
|
@@ -16894,7 +16910,7 @@
|
|
|
16894
16910
|
mutation: isNew ? AccountMutations.create : AccountMutations.save,
|
|
16895
16911
|
variables: { data: json },
|
|
16896
16912
|
error: {
|
|
16897
|
-
code: ErrorCodes
|
|
16913
|
+
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
16898
16914
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
16899
16915
|
}
|
|
16900
16916
|
})];
|
|
@@ -16928,7 +16944,7 @@
|
|
|
16928
16944
|
mutation: AccountMutations.saveSettings,
|
|
16929
16945
|
variables: { data: json },
|
|
16930
16946
|
error: {
|
|
16931
|
-
code: ErrorCodes
|
|
16947
|
+
code: ErrorCodes.SAVE_SETTINGS_ERROR,
|
|
16932
16948
|
message: 'ERROR.SAVE_SETTINGS_ERROR'
|
|
16933
16949
|
}
|
|
16934
16950
|
})];
|
|
@@ -16959,7 +16975,7 @@
|
|
|
16959
16975
|
if (counter > 4) {
|
|
16960
16976
|
if (this._debug)
|
|
16961
16977
|
console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
|
|
16962
|
-
throw { code: ErrorCodes
|
|
16978
|
+
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
16963
16979
|
}
|
|
16964
16980
|
if (!token) return [3 /*break*/, 2];
|
|
16965
16981
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -16968,7 +16984,7 @@
|
|
|
16968
16984
|
token: token
|
|
16969
16985
|
},
|
|
16970
16986
|
error: {
|
|
16971
|
-
code: ErrorCodes
|
|
16987
|
+
code: ErrorCodes.UNAUTHORIZED,
|
|
16972
16988
|
message: 'ERROR.UNAUTHORIZED'
|
|
16973
16989
|
},
|
|
16974
16990
|
fetchPolicy: 'no-cache'
|
|
@@ -16985,7 +17001,7 @@
|
|
|
16985
17001
|
_b.label = 2;
|
|
16986
17002
|
case 2:
|
|
16987
17003
|
challengeError = {
|
|
16988
|
-
code: ErrorCodes
|
|
17004
|
+
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
16989
17005
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
16990
17006
|
};
|
|
16991
17007
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -17072,7 +17088,7 @@
|
|
|
17072
17088
|
query: AccountSubscriptions.listenChanges,
|
|
17073
17089
|
variables: variables,
|
|
17074
17090
|
error: {
|
|
17075
|
-
code: ErrorCodes
|
|
17091
|
+
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
17076
17092
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ERROR'
|
|
17077
17093
|
}
|
|
17078
17094
|
}).pipe(operators.map(function (_b) {
|
|
@@ -17105,7 +17121,7 @@
|
|
|
17105
17121
|
};
|
|
17106
17122
|
return AccountService;
|
|
17107
17123
|
}(BaseGraphqlService));
|
|
17108
|
-
AccountService.ɵprov =
|
|
17124
|
+
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(i1$2.TranslateService, 8), i0.ɵɵinject(i1$5.ToastController, 8), i0.ɵɵinject(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
|
|
17109
17125
|
AccountService.decorators = [
|
|
17110
17126
|
{ type: i0.Injectable, args: [{ providedIn: 'root', deps: [ENVIRONMENT] },] }
|
|
17111
17127
|
];
|
|
@@ -17120,7 +17136,7 @@
|
|
|
17120
17136
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] },
|
|
17121
17137
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
17122
17138
|
]; };
|
|
17123
|
-
var templateObject_1
|
|
17139
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12;
|
|
17124
17140
|
|
|
17125
17141
|
var Software_1, Configuration_1;
|
|
17126
17142
|
// @dynamic
|
|
@@ -17378,13 +17394,13 @@
|
|
|
17378
17394
|
/* ------------------------------------
|
|
17379
17395
|
* GraphQL queries
|
|
17380
17396
|
* ------------------------------------*/
|
|
17381
|
-
var Fragments = {
|
|
17382
|
-
config: core.gql(templateObject_1$
|
|
17397
|
+
var Fragments$1 = {
|
|
17398
|
+
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 "])))
|
|
17383
17399
|
};
|
|
17384
|
-
var LoadQuery = core.gql(templateObject_2$
|
|
17400
|
+
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);
|
|
17385
17401
|
// Save (create or update) account mutation
|
|
17386
|
-
var SaveMutation = core.gql(templateObject_3$
|
|
17387
|
-
var ClearCache = core.gql(templateObject_4$
|
|
17402
|
+
var SaveMutation = 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);
|
|
17403
|
+
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"])));
|
|
17388
17404
|
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"])));
|
|
17389
17405
|
var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
|
|
17390
17406
|
var ConfigService = /** @class */ (function (_super) {
|
|
@@ -17444,12 +17460,12 @@
|
|
|
17444
17460
|
case 0:
|
|
17445
17461
|
now = Date.now();
|
|
17446
17462
|
console.debug('[config] Loading Pod configuration...');
|
|
17447
|
-
query = opts && opts.query || LoadQuery;
|
|
17463
|
+
query = opts && opts.query || LoadQuery$1;
|
|
17448
17464
|
variables = opts && opts.variables || undefined;
|
|
17449
17465
|
return [4 /*yield*/, this.graphql.query({
|
|
17450
17466
|
query: query,
|
|
17451
17467
|
variables: variables,
|
|
17452
|
-
error: { code: ErrorCodes
|
|
17468
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17453
17469
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
17454
17470
|
})];
|
|
17455
17471
|
case 1:
|
|
@@ -17491,7 +17507,7 @@
|
|
|
17491
17507
|
data: json
|
|
17492
17508
|
},
|
|
17493
17509
|
error: {
|
|
17494
|
-
code: ErrorCodes
|
|
17510
|
+
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
17495
17511
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
17496
17512
|
}
|
|
17497
17513
|
})];
|
|
@@ -17526,7 +17542,7 @@
|
|
|
17526
17542
|
return [4 /*yield*/, this.graphql.query({
|
|
17527
17543
|
query: CacheStatistics,
|
|
17528
17544
|
variables: null,
|
|
17529
|
-
error: { code: ErrorCodes
|
|
17545
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17530
17546
|
fetchPolicy: 'network-only'
|
|
17531
17547
|
})];
|
|
17532
17548
|
case 1:
|
|
@@ -17550,7 +17566,7 @@
|
|
|
17550
17566
|
return [4 /*yield*/, this.graphql.query({
|
|
17551
17567
|
query: ClearCache,
|
|
17552
17568
|
variables: variables,
|
|
17553
|
-
error: { code: ErrorCodes
|
|
17569
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17554
17570
|
fetchPolicy: 'no-cache'
|
|
17555
17571
|
})];
|
|
17556
17572
|
case 1:
|
|
@@ -17750,7 +17766,7 @@
|
|
|
17750
17766
|
};
|
|
17751
17767
|
return ConfigService;
|
|
17752
17768
|
}(BaseGraphqlService));
|
|
17753
|
-
ConfigService.ɵprov =
|
|
17769
|
+
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(AccountService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
|
|
17754
17770
|
ConfigService.decorators = [
|
|
17755
17771
|
{ type: i0.Injectable, args: [{
|
|
17756
17772
|
providedIn: 'root',
|
|
@@ -17769,9 +17785,9 @@
|
|
|
17769
17785
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
17770
17786
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
17771
17787
|
]; };
|
|
17772
|
-
var templateObject_1$
|
|
17788
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
|
|
17773
17789
|
|
|
17774
|
-
var moment$
|
|
17790
|
+
var moment$4 = momentImported__namespace;
|
|
17775
17791
|
var AndroidOsEnvironment = Object.freeze({
|
|
17776
17792
|
DIRECTORY_DOWNLOADS: 'Download',
|
|
17777
17793
|
DIRECTORY_DOWNLOADS_OLD: 'Downloads',
|
|
@@ -18041,16 +18057,16 @@
|
|
|
18041
18057
|
}
|
|
18042
18058
|
// config moment lib
|
|
18043
18059
|
try {
|
|
18044
|
-
moment$
|
|
18060
|
+
moment$4.locale(event.lang);
|
|
18045
18061
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
18046
18062
|
}
|
|
18047
18063
|
// If error, fallback to en
|
|
18048
18064
|
catch (err) {
|
|
18049
|
-
moment$
|
|
18065
|
+
moment$4.locale('en');
|
|
18050
18066
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
18051
18067
|
}
|
|
18052
18068
|
// Config date adapter
|
|
18053
|
-
_this.dateAdapter.setLocale(moment$
|
|
18069
|
+
_this.dateAdapter.setLocale(moment$4.locale());
|
|
18054
18070
|
}
|
|
18055
18071
|
});
|
|
18056
18072
|
this.settings.onChange.subscribe(function (data) {
|
|
@@ -18303,7 +18319,7 @@
|
|
|
18303
18319
|
};
|
|
18304
18320
|
return PlatformService;
|
|
18305
18321
|
}(StartableService));
|
|
18306
|
-
PlatformService.ɵprov =
|
|
18322
|
+
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" });
|
|
18307
18323
|
PlatformService.decorators = [
|
|
18308
18324
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
18309
18325
|
];
|
|
@@ -18401,7 +18417,7 @@
|
|
|
18401
18417
|
};
|
|
18402
18418
|
return MatStepperI18n;
|
|
18403
18419
|
}(stepper.MatStepperIntl));
|
|
18404
|
-
MatStepperI18n.ɵprov =
|
|
18420
|
+
MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
18405
18421
|
MatStepperI18n.decorators = [
|
|
18406
18422
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
18407
18423
|
];
|
|
@@ -20261,51 +20277,57 @@
|
|
|
20261
20277
|
};
|
|
20262
20278
|
JobUtils.run = function (runnable, opts) {
|
|
20263
20279
|
var progression = new rxjs.BehaviorSubject(0);
|
|
20264
|
-
runnable(
|
|
20280
|
+
runnable(Object.assign(Object.assign({}, opts), { progression: progression }))
|
|
20265
20281
|
.then(function () {
|
|
20266
|
-
if (opts
|
|
20282
|
+
if (opts === null || opts === void 0 ? void 0 : opts.maxProgression)
|
|
20267
20283
|
progression.next(opts.maxProgression);
|
|
20268
|
-
progression
|
|
20284
|
+
if (opts === null || opts === void 0 ? void 0 : opts.progression)
|
|
20285
|
+
opts.progression.complete();
|
|
20269
20286
|
})
|
|
20270
20287
|
.catch(function (err) { return progression.error(err); });
|
|
20271
20288
|
return progression;
|
|
20272
20289
|
};
|
|
20273
|
-
JobUtils.fetchAllPages = function (loadPageFn,
|
|
20290
|
+
JobUtils.fetchAllPages = function (loadPageFn, opts) {
|
|
20291
|
+
var _a;
|
|
20274
20292
|
return __awaiter(this, void 0, void 0, function () {
|
|
20275
|
-
var maxProgression, total,
|
|
20276
|
-
return __generator(this, function (
|
|
20277
|
-
switch (
|
|
20293
|
+
var maxProgression, total, pageCount, progressionStep, currentPageDataCount, fetchSize, offset, data, res, actualProgression, lastProgressionStep;
|
|
20294
|
+
return __generator(this, function (_b) {
|
|
20295
|
+
switch (_b.label) {
|
|
20278
20296
|
case 0:
|
|
20279
20297
|
maxProgression = opts && opts.maxProgression || undefined;
|
|
20280
20298
|
fetchSize = opts && opts.fetchSize || 1000;
|
|
20281
20299
|
offset = 0;
|
|
20282
20300
|
data = [];
|
|
20283
|
-
|
|
20301
|
+
_b.label = 1;
|
|
20284
20302
|
case 1:
|
|
20285
20303
|
if (opts && opts.logPrefix)
|
|
20286
20304
|
console.debug(opts.logPrefix + " Fetching page #" + offset / fetchSize + "...");
|
|
20287
20305
|
return [4 /*yield*/, loadPageFn(offset, fetchSize)];
|
|
20288
20306
|
case 2:
|
|
20289
|
-
res =
|
|
20307
|
+
res = _b.sent();
|
|
20290
20308
|
data = data.concat(res.data);
|
|
20291
|
-
|
|
20292
|
-
offset +=
|
|
20309
|
+
currentPageDataCount = res.data && res.data.length || 0;
|
|
20310
|
+
offset += currentPageDataCount;
|
|
20293
20311
|
// Set total count (only if not already set)
|
|
20294
20312
|
if (isNil(total) && isNotNil(res.total)) {
|
|
20295
20313
|
total = res.total;
|
|
20296
|
-
|
|
20297
|
-
|
|
20314
|
+
// Compute the number of page
|
|
20315
|
+
pageCount = Math.round(res.total / fetchSize + 0.5); // Round to HALF_UP integer
|
|
20316
|
+
actualProgression = Math.max(0, toNumber(opts && ((_a = opts.progression) === null || _a === void 0 ? void 0 : _a.value), 0));
|
|
20317
|
+
progressionStep = maxProgression
|
|
20318
|
+
? (maxProgression - actualProgression) / pageCount
|
|
20319
|
+
: undefined /*if 0 reset to undefined*/;
|
|
20298
20320
|
}
|
|
20299
20321
|
// Increment progression on each iteration (if possible)
|
|
20300
|
-
if (isNotNil(progressionStep)) {
|
|
20301
|
-
progression.next(progression.
|
|
20322
|
+
if (opts && opts.progression && isNotNil(progressionStep)) {
|
|
20323
|
+
opts.progression.next(opts.progression.value + progressionStep);
|
|
20302
20324
|
}
|
|
20303
20325
|
if (opts && opts.onPageLoaded)
|
|
20304
20326
|
opts.onPageLoaded(res);
|
|
20305
|
-
|
|
20327
|
+
_b.label = 3;
|
|
20306
20328
|
case 3:
|
|
20307
|
-
if (
|
|
20308
|
-
|
|
20329
|
+
if (currentPageDataCount > 0 && ((isNil(total) && currentPageDataCount === fetchSize) || (isNotNil(total) && (offset < total)))) return [3 /*break*/, 1];
|
|
20330
|
+
_b.label = 4;
|
|
20309
20331
|
case 4:
|
|
20310
20332
|
// Complete progression to reach progressionStep value (because of round)
|
|
20311
20333
|
if (isNotNil(progressionStep)) {
|
|
@@ -20313,16 +20335,16 @@
|
|
|
20313
20335
|
if (isNotNil(total) && data.length < total) {
|
|
20314
20336
|
console.warn("A function loadAll() returned a bad total (less than all page's data)! Expected " + total + " but fetch " + data.length);
|
|
20315
20337
|
total = data.length;
|
|
20316
|
-
|
|
20338
|
+
pageCount = Math.round(data.length / fetchSize + 0.5);
|
|
20317
20339
|
}
|
|
20318
|
-
lastProgressionStep = opts.maxProgression - (progressionStep *
|
|
20319
|
-
if (lastProgressionStep > 0) {
|
|
20320
|
-
progression.next(progression.
|
|
20340
|
+
lastProgressionStep = opts.maxProgression - (progressionStep * pageCount);
|
|
20341
|
+
if (opts && opts.progression && lastProgressionStep > 0) {
|
|
20342
|
+
opts.progression.next(opts.progression.value + lastProgressionStep);
|
|
20321
20343
|
}
|
|
20322
20344
|
}
|
|
20323
20345
|
// Or increment once
|
|
20324
|
-
else if (opts.maxProgression) {
|
|
20325
|
-
progression.next(progression.
|
|
20346
|
+
else if (opts && opts.progression && opts.maxProgression) {
|
|
20347
|
+
opts.progression.next(opts.progression.value + opts.maxProgression);
|
|
20326
20348
|
}
|
|
20327
20349
|
return [2 /*return*/, {
|
|
20328
20350
|
data: data,
|
|
@@ -20597,7 +20619,7 @@
|
|
|
20597
20619
|
return 1;
|
|
20598
20620
|
}
|
|
20599
20621
|
}
|
|
20600
|
-
var ɵ0$
|
|
20622
|
+
var ɵ0$b = function (defaultStateSize) { return [
|
|
20601
20623
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
20602
20624
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
20603
20625
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -20605,7 +20627,7 @@
|
|
|
20605
20627
|
var SCALE_OPTIONS_DEFAULT = {
|
|
20606
20628
|
startColor: rgbArrayMap.red,
|
|
20607
20629
|
startStates: [0, 2, 3],
|
|
20608
|
-
startStepsFn: ɵ0$
|
|
20630
|
+
startStepsFn: ɵ0$b
|
|
20609
20631
|
};
|
|
20610
20632
|
/**
|
|
20611
20633
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -21536,7 +21558,7 @@
|
|
|
21536
21558
|
};
|
|
21537
21559
|
return UserSettingsValidatorService;
|
|
21538
21560
|
}(AppValidatorService));
|
|
21539
|
-
UserSettingsValidatorService.ɵprov =
|
|
21561
|
+
UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
21540
21562
|
UserSettingsValidatorService.decorators = [
|
|
21541
21563
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21542
21564
|
];
|
|
@@ -21584,7 +21606,7 @@
|
|
|
21584
21606
|
};
|
|
21585
21607
|
return AccountValidatorService;
|
|
21586
21608
|
}(AppValidatorService));
|
|
21587
|
-
AccountValidatorService.ɵprov =
|
|
21609
|
+
AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
|
|
21588
21610
|
AccountValidatorService.decorators = [
|
|
21589
21611
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21590
21612
|
];
|
|
@@ -22215,7 +22237,7 @@
|
|
|
22215
22237
|
};
|
|
22216
22238
|
return LocalSettingsValidatorService;
|
|
22217
22239
|
}(AppValidatorService));
|
|
22218
|
-
LocalSettingsValidatorService.ɵprov =
|
|
22240
|
+
LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
|
|
22219
22241
|
LocalSettingsValidatorService.decorators = [
|
|
22220
22242
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
22221
22243
|
];
|
|
@@ -22995,7 +23017,7 @@
|
|
|
22995
23017
|
};
|
|
22996
23018
|
return IsOnFieldModePipe;
|
|
22997
23019
|
}());
|
|
22998
|
-
IsOnFieldModePipe.ɵprov =
|
|
23020
|
+
IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
22999
23021
|
IsOnFieldModePipe.decorators = [
|
|
23000
23022
|
{ type: i0.Pipe, args: [{
|
|
23001
23023
|
name: 'isOnField'
|
|
@@ -23010,7 +23032,7 @@
|
|
|
23010
23032
|
};
|
|
23011
23033
|
return IsNotOnFieldModePipe;
|
|
23012
23034
|
}());
|
|
23013
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
23035
|
+
IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
23014
23036
|
IsNotOnFieldModePipe.decorators = [
|
|
23015
23037
|
{ type: i0.Pipe, args: [{
|
|
23016
23038
|
name: 'isNotOnField'
|
|
@@ -23028,7 +23050,7 @@
|
|
|
23028
23050
|
};
|
|
23029
23051
|
return PersonToStringPipe;
|
|
23030
23052
|
}());
|
|
23031
|
-
PersonToStringPipe.ɵprov =
|
|
23053
|
+
PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
23032
23054
|
PersonToStringPipe.decorators = [
|
|
23033
23055
|
{ type: i0.Pipe, args: [{
|
|
23034
23056
|
name: 'personToString'
|
|
@@ -23492,7 +23514,7 @@
|
|
|
23492
23514
|
};
|
|
23493
23515
|
return IsLoginAccountPipe;
|
|
23494
23516
|
}());
|
|
23495
|
-
IsLoginAccountPipe.ɵprov =
|
|
23517
|
+
IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
23496
23518
|
IsLoginAccountPipe.decorators = [
|
|
23497
23519
|
{ type: i0.Pipe, args: [{
|
|
23498
23520
|
name: 'isLogin'
|
|
@@ -23507,7 +23529,7 @@
|
|
|
23507
23529
|
};
|
|
23508
23530
|
return AccountToStringPipe;
|
|
23509
23531
|
}());
|
|
23510
|
-
AccountToStringPipe.ɵprov =
|
|
23532
|
+
AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
23511
23533
|
AccountToStringPipe.decorators = [
|
|
23512
23534
|
{ type: i0.Pipe, args: [{
|
|
23513
23535
|
name: 'accountToString'
|
|
@@ -23525,7 +23547,7 @@
|
|
|
23525
23547
|
};
|
|
23526
23548
|
return DepartmentToStringPipe;
|
|
23527
23549
|
}());
|
|
23528
|
-
DepartmentToStringPipe.ɵprov =
|
|
23550
|
+
DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
23529
23551
|
DepartmentToStringPipe.decorators = [
|
|
23530
23552
|
{ type: i0.Pipe, args: [{
|
|
23531
23553
|
name: 'departmentToString'
|
|
@@ -23631,7 +23653,7 @@
|
|
|
23631
23653
|
};
|
|
23632
23654
|
return MenuService;
|
|
23633
23655
|
}());
|
|
23634
|
-
MenuService.ɵprov =
|
|
23656
|
+
MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
23635
23657
|
MenuService.decorators = [
|
|
23636
23658
|
{ type: i0.Injectable, args: [{
|
|
23637
23659
|
providedIn: 'root'
|
|
@@ -24182,7 +24204,7 @@
|
|
|
24182
24204
|
};
|
|
24183
24205
|
return AuthGuardService;
|
|
24184
24206
|
}());
|
|
24185
|
-
AuthGuardService.ɵprov =
|
|
24207
|
+
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" });
|
|
24186
24208
|
AuthGuardService.decorators = [
|
|
24187
24209
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
24188
24210
|
];
|
|
@@ -24227,7 +24249,7 @@
|
|
|
24227
24249
|
query: query,
|
|
24228
24250
|
variables: { id: id },
|
|
24229
24251
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
24230
|
-
error: { code: ErrorCodes
|
|
24252
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
24231
24253
|
})
|
|
24232
24254
|
.pipe(operators.map(function (_b) {
|
|
24233
24255
|
var data = _b.data;
|
|
@@ -24249,7 +24271,7 @@
|
|
|
24249
24271
|
query: query,
|
|
24250
24272
|
variables: { id: id },
|
|
24251
24273
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
24252
|
-
error: { code: ErrorCodes
|
|
24274
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
24253
24275
|
})];
|
|
24254
24276
|
case 1:
|
|
24255
24277
|
data = (_b.sent()).data;
|
|
@@ -24285,7 +24307,7 @@
|
|
|
24285
24307
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
24286
24308
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
24287
24309
|
variables: variables,
|
|
24288
|
-
error: { code: ErrorCodes
|
|
24310
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
24289
24311
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
24290
24312
|
})
|
|
24291
24313
|
.pipe(operators.map(function (_b) {
|
|
@@ -24327,7 +24349,7 @@
|
|
|
24327
24349
|
return [4 /*yield*/, this.graphql.query({
|
|
24328
24350
|
query: query,
|
|
24329
24351
|
variables: variables,
|
|
24330
|
-
error: { code: ErrorCodes
|
|
24352
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
24331
24353
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
24332
24354
|
})];
|
|
24333
24355
|
case 1:
|
|
@@ -24375,7 +24397,7 @@
|
|
|
24375
24397
|
variables: {
|
|
24376
24398
|
filter: filter && filter.asPodObject()
|
|
24377
24399
|
},
|
|
24378
|
-
error: { code: ErrorCodes
|
|
24400
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
24379
24401
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
24380
24402
|
})];
|
|
24381
24403
|
case 3:
|
|
@@ -24420,7 +24442,7 @@
|
|
|
24420
24442
|
variables: {
|
|
24421
24443
|
data: json
|
|
24422
24444
|
},
|
|
24423
|
-
error: { code: ErrorCodes
|
|
24445
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
24424
24446
|
update: function (proxy, _b) {
|
|
24425
24447
|
var data = _b.data;
|
|
24426
24448
|
var savedEntities = data && data.data;
|
|
@@ -24487,7 +24509,7 @@
|
|
|
24487
24509
|
variables: {
|
|
24488
24510
|
data: json
|
|
24489
24511
|
},
|
|
24490
|
-
error: { code: ErrorCodes
|
|
24512
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
24491
24513
|
update: function (cache, _b) {
|
|
24492
24514
|
var data = _b.data;
|
|
24493
24515
|
// Update entity
|
|
@@ -24545,7 +24567,7 @@
|
|
|
24545
24567
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
24546
24568
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
24547
24569
|
variables: { ids: ids },
|
|
24548
|
-
error: { code: ErrorCodes
|
|
24570
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
24549
24571
|
update: function (cache, res) {
|
|
24550
24572
|
// Remove from cache
|
|
24551
24573
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -24598,7 +24620,7 @@
|
|
|
24598
24620
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
24599
24621
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
24600
24622
|
variables: { id: id },
|
|
24601
|
-
error: { code: ErrorCodes
|
|
24623
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
24602
24624
|
update: function (proxy, res) {
|
|
24603
24625
|
// Remove from cache
|
|
24604
24626
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -24640,7 +24662,7 @@
|
|
|
24640
24662
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache',
|
|
24641
24663
|
variables: variables,
|
|
24642
24664
|
error: {
|
|
24643
|
-
code: ErrorCodes
|
|
24665
|
+
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
24644
24666
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
24645
24667
|
}
|
|
24646
24668
|
})
|
|
@@ -24863,7 +24885,7 @@
|
|
|
24863
24885
|
if (this._debug)
|
|
24864
24886
|
invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
|
|
24865
24887
|
// Stop with an error
|
|
24866
|
-
throw { code: ErrorCodes
|
|
24888
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
24867
24889
|
}
|
|
24868
24890
|
this._editingRowCount = 0;
|
|
24869
24891
|
data = void 0;
|
|
@@ -25883,14 +25905,14 @@
|
|
|
25883
25905
|
case 0:
|
|
25884
25906
|
opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
|
|
25885
25907
|
if (this.readOnly) {
|
|
25886
|
-
throw { code: ErrorCodes
|
|
25908
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25887
25909
|
}
|
|
25888
25910
|
this.resetError();
|
|
25889
25911
|
// Keep edited row id (should be done BEFORE confirmEditCreate() )
|
|
25890
25912
|
this.previouslyEditedRowId = opts.keepEditing ? ((((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined) || ((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.id)) : undefined;
|
|
25891
25913
|
previouslyEditedData = opts.keepEditing ? (isNotNil(this.previouslyEditedRowId) && ((_c = this.editedRow) === null || _c === void 0 ? void 0 : _c.currentData) || ((_d = this.singleSelectedRow) === null || _d === void 0 ? void 0 : _d.currentData)) : undefined;
|
|
25892
25914
|
if (!this.confirmEditCreate()) {
|
|
25893
|
-
throw { code: ErrorCodes
|
|
25915
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
25894
25916
|
}
|
|
25895
25917
|
// Mark as saving
|
|
25896
25918
|
this.markAsSaving();
|
|
@@ -26047,7 +26069,7 @@
|
|
|
26047
26069
|
switch (_e.label) {
|
|
26048
26070
|
case 0:
|
|
26049
26071
|
if (this.readOnly) {
|
|
26050
|
-
throw { code: ErrorCodes
|
|
26072
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
26051
26073
|
}
|
|
26052
26074
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
26053
26075
|
return [2 /*return*/, 0]; // SKip
|
|
@@ -27947,7 +27969,7 @@
|
|
|
27947
27969
|
case 8:
|
|
27948
27970
|
data = _c.sent();
|
|
27949
27971
|
if (!data)
|
|
27950
|
-
throw { code: ErrorCodes
|
|
27972
|
+
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
27951
27973
|
this._usageMode = this.computeUsageMode(data);
|
|
27952
27974
|
return [4 /*yield*/, this.onEntityLoaded(data, opts)];
|
|
27953
27975
|
case 9:
|
|
@@ -28739,10 +28761,10 @@
|
|
|
28739
28761
|
exports.UserEventFilter = __decorate([
|
|
28740
28762
|
EntityClass({ typename: 'UserEventVO' })
|
|
28741
28763
|
], exports.UserEventFilter);
|
|
28742
|
-
var SaveQuery = core.gql(templateObject_1$
|
|
28743
|
-
var LoadAllQuery = core.gql(templateObject_2$
|
|
28744
|
-
var DeleteByIdsMutation = core.gql(templateObject_3$
|
|
28745
|
-
var LoadAllWithContentQuery = core.gql(templateObject_4$
|
|
28764
|
+
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);
|
|
28765
|
+
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);
|
|
28766
|
+
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"])));
|
|
28767
|
+
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);
|
|
28746
28768
|
var UserEventService = /** @class */ (function (_super) {
|
|
28747
28769
|
__extends(UserEventService, _super);
|
|
28748
28770
|
function UserEventService(graphql, accountService, network, translate, toastController, environment) {
|
|
@@ -29063,7 +29085,7 @@
|
|
|
29063
29085
|
};
|
|
29064
29086
|
return UserEventService;
|
|
29065
29087
|
}(BaseGraphqlService));
|
|
29066
|
-
UserEventService.ɵprov =
|
|
29088
|
+
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" });
|
|
29067
29089
|
UserEventService.decorators = [
|
|
29068
29090
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
29069
29091
|
];
|
|
@@ -29075,7 +29097,7 @@
|
|
|
29075
29097
|
{ type: i1$5.ToastController },
|
|
29076
29098
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
29077
29099
|
]; };
|
|
29078
|
-
var templateObject_1$
|
|
29100
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
|
|
29079
29101
|
|
|
29080
29102
|
var ICONS_MAP = {
|
|
29081
29103
|
DEBUG_DATA: { matIcon: 'bug_report' },
|
|
@@ -29337,16 +29359,16 @@
|
|
|
29337
29359
|
], exports.PersonFilter);
|
|
29338
29360
|
|
|
29339
29361
|
var PersonFragments = {
|
|
29340
|
-
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 }"])))
|
|
29362
|
+
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 }"])))
|
|
29341
29363
|
};
|
|
29342
29364
|
// Load persons query
|
|
29343
29365
|
var PersonQueries = {
|
|
29344
|
-
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),
|
|
29345
|
-
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)
|
|
29366
|
+
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),
|
|
29367
|
+
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)
|
|
29346
29368
|
};
|
|
29347
29369
|
var PersonMutations = {
|
|
29348
|
-
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),
|
|
29349
|
-
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 }"])))
|
|
29370
|
+
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),
|
|
29371
|
+
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 }"])))
|
|
29350
29372
|
};
|
|
29351
29373
|
var PersonService = /** @class */ (function (_super_1) {
|
|
29352
29374
|
__extends(PersonService, _super_1);
|
|
@@ -29419,28 +29441,25 @@
|
|
|
29419
29441
|
});
|
|
29420
29442
|
});
|
|
29421
29443
|
};
|
|
29422
|
-
PersonService.prototype.executeImport = function (
|
|
29444
|
+
PersonService.prototype.executeImport = function (filter, opts) {
|
|
29423
29445
|
var _super = Object.create(null, {
|
|
29424
29446
|
loadAll: { get: function () { return _super_1.prototype.loadAll; } }
|
|
29425
29447
|
});
|
|
29426
29448
|
return __awaiter(this, void 0, void 0, function () {
|
|
29427
|
-
var maxProgression,
|
|
29449
|
+
var maxProgression, res;
|
|
29428
29450
|
var _this = this;
|
|
29429
29451
|
return __generator(this, function (_a) {
|
|
29430
29452
|
switch (_a.label) {
|
|
29431
29453
|
case 0:
|
|
29432
29454
|
maxProgression = opts && opts.maxProgression || 100;
|
|
29433
|
-
filter = {
|
|
29434
|
-
statusIds: [StatusIds.ENABLE, StatusIds.TEMPORARY],
|
|
29435
|
-
userProfiles: ['SUPERVISOR', 'USER', 'GUEST']
|
|
29436
|
-
};
|
|
29455
|
+
filter = Object.assign(Object.assign({}, filter), { statusIds: [StatusIds.ENABLE, StatusIds.TEMPORARY], userProfiles: ['SUPERVISOR', 'USER', 'GUEST'] });
|
|
29437
29456
|
console.info('[person-service] Importing persons...');
|
|
29438
29457
|
return [4 /*yield*/, JobUtils.fetchAllPages(function (offset, size) { return _super.loadAll.call(_this, offset, size, 'id', null, filter, {
|
|
29439
29458
|
debug: false,
|
|
29440
29459
|
fetchPolicy: 'network-only',
|
|
29441
29460
|
withTotal: (offset === 0),
|
|
29442
29461
|
toEntity: false
|
|
29443
|
-
}); },
|
|
29462
|
+
}); }, Object.assign(Object.assign({}, opts), { maxProgression: maxProgression * 0.9 }))];
|
|
29444
29463
|
case 1:
|
|
29445
29464
|
res = _a.sent();
|
|
29446
29465
|
// Save result locally
|
|
@@ -29458,7 +29477,7 @@
|
|
|
29458
29477
|
if (!source)
|
|
29459
29478
|
return undefined;
|
|
29460
29479
|
console.debug('TODO check isInstanceOf');
|
|
29461
|
-
if (!
|
|
29480
|
+
if (!(source instanceof exports.Person)) {
|
|
29462
29481
|
source = exports.Person.fromObject(source);
|
|
29463
29482
|
}
|
|
29464
29483
|
var target = source.asObject();
|
|
@@ -29470,7 +29489,7 @@
|
|
|
29470
29489
|
};
|
|
29471
29490
|
return PersonService;
|
|
29472
29491
|
}(BaseEntityService));
|
|
29473
|
-
PersonService.ɵprov =
|
|
29492
|
+
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" });
|
|
29474
29493
|
PersonService.decorators = [
|
|
29475
29494
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
29476
29495
|
];
|
|
@@ -29480,7 +29499,7 @@
|
|
|
29480
29499
|
{ type: NetworkService },
|
|
29481
29500
|
{ type: EntitiesStorage }
|
|
29482
29501
|
]; };
|
|
29483
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
29502
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
|
|
29484
29503
|
|
|
29485
29504
|
var PersonValidatorService = /** @class */ (function () {
|
|
29486
29505
|
function PersonValidatorService(formBuilder, accountValidatorService) {
|
|
@@ -29503,7 +29522,7 @@
|
|
|
29503
29522
|
};
|
|
29504
29523
|
return PersonValidatorService;
|
|
29505
29524
|
}());
|
|
29506
|
-
PersonValidatorService.ɵprov =
|
|
29525
|
+
PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
|
|
29507
29526
|
PersonValidatorService.decorators = [
|
|
29508
29527
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
29509
29528
|
];
|
|
@@ -29714,16 +29733,16 @@
|
|
|
29714
29733
|
];
|
|
29715
29734
|
AdminModule.ctorParameters = function () { return []; };
|
|
29716
29735
|
|
|
29717
|
-
var ɵ0 = {
|
|
29736
|
+
var ɵ0$c = {
|
|
29718
29737
|
profile: 'ADMIN'
|
|
29719
29738
|
};
|
|
29720
|
-
var routes
|
|
29739
|
+
var routes = [
|
|
29721
29740
|
{
|
|
29722
29741
|
path: 'users',
|
|
29723
29742
|
pathMatch: 'full',
|
|
29724
29743
|
component: UsersPage,
|
|
29725
29744
|
canActivate: [AuthGuardService],
|
|
29726
|
-
data: ɵ0
|
|
29745
|
+
data: ɵ0$c
|
|
29727
29746
|
}
|
|
29728
29747
|
];
|
|
29729
29748
|
var AdminRoutingModule = /** @class */ (function () {
|
|
@@ -29736,36 +29755,36 @@
|
|
|
29736
29755
|
imports: [
|
|
29737
29756
|
SharedRoutingModule,
|
|
29738
29757
|
AdminModule,
|
|
29739
|
-
i3.RouterModule.forChild(routes
|
|
29758
|
+
i3.RouterModule.forChild(routes)
|
|
29740
29759
|
],
|
|
29741
29760
|
exports: [i3.RouterModule]
|
|
29742
29761
|
},] }
|
|
29743
29762
|
];
|
|
29744
29763
|
|
|
29745
|
-
var ErrorCodes = {
|
|
29764
|
+
var ErrorCodes$2 = {
|
|
29746
29765
|
LOAD_PERSONS_ERROR: 100,
|
|
29747
29766
|
SAVE_PERSONS_ERROR: 101,
|
|
29748
29767
|
DELETE_PERSONS_ERROR: 102,
|
|
29749
29768
|
};
|
|
29750
29769
|
|
|
29751
|
-
var EntityTestClass
|
|
29770
|
+
var EntityTestClass = /** @class */ (function () {
|
|
29752
29771
|
function EntityTestClass() {
|
|
29753
29772
|
}
|
|
29754
29773
|
return EntityTestClass;
|
|
29755
29774
|
}());
|
|
29756
|
-
var FAKE_ENTITIES
|
|
29775
|
+
var FAKE_ENTITIES = [
|
|
29757
29776
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
29758
29777
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
29759
29778
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
29760
29779
|
];
|
|
29761
|
-
function deepCopy
|
|
29780
|
+
function deepCopy(values, size) {
|
|
29762
29781
|
if (isNil(size)) {
|
|
29763
|
-
return (values || FAKE_ENTITIES
|
|
29782
|
+
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
29764
29783
|
}
|
|
29765
29784
|
var result = [];
|
|
29766
29785
|
var i = 1;
|
|
29767
29786
|
while (result.length < size) {
|
|
29768
|
-
result = result.concat((values || FAKE_ENTITIES
|
|
29787
|
+
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
29769
29788
|
var name = entity.name + ' #' + i;
|
|
29770
29789
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
29771
29790
|
}));
|
|
@@ -29775,7 +29794,7 @@
|
|
|
29775
29794
|
var AutocompleteTestPage = /** @class */ (function () {
|
|
29776
29795
|
function AutocompleteTestPage(formBuilder) {
|
|
29777
29796
|
this.formBuilder = formBuilder;
|
|
29778
|
-
this._items = deepCopy
|
|
29797
|
+
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
29779
29798
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
29780
29799
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
29781
29800
|
this.memoryHide = false;
|
|
@@ -29820,7 +29839,7 @@
|
|
|
29820
29839
|
});
|
|
29821
29840
|
// From items
|
|
29822
29841
|
this.autocompleteFields.add('entity-items-large', {
|
|
29823
|
-
items: FAKE_ENTITIES
|
|
29842
|
+
items: FAKE_ENTITIES.slice(),
|
|
29824
29843
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
29825
29844
|
displayWith: this.entityToString
|
|
29826
29845
|
});
|
|
@@ -29833,12 +29852,12 @@
|
|
|
29833
29852
|
var _this = this;
|
|
29834
29853
|
return __generator(this, function (_a) {
|
|
29835
29854
|
data = {
|
|
29836
|
-
entity: deepCopy
|
|
29855
|
+
entity: deepCopy(FAKE_ENTITIES)[0],
|
|
29837
29856
|
// This item is NOT in the items list => i should be displayed anyway
|
|
29838
29857
|
missingEntity: {
|
|
29839
29858
|
id: -1, label: '??', name: 'Missing item'
|
|
29840
29859
|
},
|
|
29841
|
-
disableEntity: deepCopy
|
|
29860
|
+
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
29842
29861
|
};
|
|
29843
29862
|
this.form.setValue(data);
|
|
29844
29863
|
// Load observables
|
|
@@ -30003,13 +30022,13 @@
|
|
|
30003
30022
|
{ type: i1.FormBuilder }
|
|
30004
30023
|
]; };
|
|
30005
30024
|
|
|
30006
|
-
var moment$
|
|
30025
|
+
var moment$5 = momentImported__namespace;
|
|
30007
30026
|
var SwipeTestPage = /** @class */ (function () {
|
|
30008
30027
|
function SwipeTestPage(formBuilder, dateFormatPipe) {
|
|
30009
30028
|
this.formBuilder = formBuilder;
|
|
30010
30029
|
this.dateFormatPipe = dateFormatPipe;
|
|
30011
30030
|
this.$dates = new rxjs.BehaviorSubject(undefined);
|
|
30012
|
-
this._today = moment$
|
|
30031
|
+
this._today = moment$5().startOf('day');
|
|
30013
30032
|
this.form = formBuilder.group({
|
|
30014
30033
|
empty: [null, i1.Validators.required],
|
|
30015
30034
|
date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
|
|
@@ -30023,7 +30042,7 @@
|
|
|
30023
30042
|
var _this = this;
|
|
30024
30043
|
var dates = [];
|
|
30025
30044
|
for (var d = 0; d < 7; d++) {
|
|
30026
|
-
dates[d] = moment$
|
|
30045
|
+
dates[d] = moment$5(this._today).add(d - 3, 'day');
|
|
30027
30046
|
}
|
|
30028
30047
|
this.$dates.next(dates);
|
|
30029
30048
|
this.loadData();
|
|
@@ -30070,7 +30089,7 @@
|
|
|
30070
30089
|
{ type: DateFormatPipe }
|
|
30071
30090
|
]; };
|
|
30072
30091
|
|
|
30073
|
-
var moment$
|
|
30092
|
+
var moment$6 = momentImported__namespace;
|
|
30074
30093
|
var DateTimeTestPage = /** @class */ (function () {
|
|
30075
30094
|
function DateTimeTestPage(platform, formBuilder, cd) {
|
|
30076
30095
|
this.platform = platform;
|
|
@@ -30106,7 +30125,7 @@
|
|
|
30106
30125
|
var now, data;
|
|
30107
30126
|
var _this = this;
|
|
30108
30127
|
return __generator(this, function (_a) {
|
|
30109
|
-
now = moment$
|
|
30128
|
+
now = moment$6();
|
|
30110
30129
|
data = {
|
|
30111
30130
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
30112
30131
|
enable: toDateISOString(now),
|
|
@@ -30171,12 +30190,12 @@
|
|
|
30171
30190
|
{ type: i0.ChangeDetectorRef }
|
|
30172
30191
|
]; };
|
|
30173
30192
|
|
|
30174
|
-
var EntityTestClass = /** @class */ (function () {
|
|
30193
|
+
var EntityTestClass$1 = /** @class */ (function () {
|
|
30175
30194
|
function EntityTestClass() {
|
|
30176
30195
|
}
|
|
30177
30196
|
return EntityTestClass;
|
|
30178
30197
|
}());
|
|
30179
|
-
var FAKE_ENTITIES = [
|
|
30198
|
+
var FAKE_ENTITIES$1 = [
|
|
30180
30199
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
30181
30200
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
30182
30201
|
{ id: 3, label: 'CCC', name: 'Item C' },
|
|
@@ -30185,14 +30204,14 @@
|
|
|
30185
30204
|
{ id: 6, label: 'FFF', name: 'Item F' },
|
|
30186
30205
|
{ id: 7, label: 'GGG', name: 'Item G' }
|
|
30187
30206
|
];
|
|
30188
|
-
function deepCopy(values, size) {
|
|
30207
|
+
function deepCopy$1(values, size) {
|
|
30189
30208
|
if (isNil(size)) {
|
|
30190
|
-
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
30209
|
+
return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
|
|
30191
30210
|
}
|
|
30192
30211
|
var result = [];
|
|
30193
30212
|
var i = 1;
|
|
30194
30213
|
while (result.length < size) {
|
|
30195
|
-
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
30214
|
+
result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
|
|
30196
30215
|
var name = entity.name + ' #' + i;
|
|
30197
30216
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
30198
30217
|
}));
|
|
@@ -30202,7 +30221,7 @@
|
|
|
30202
30221
|
var ChipsTestPage = /** @class */ (function () {
|
|
30203
30222
|
function ChipsTestPage(formBuilder) {
|
|
30204
30223
|
this.formBuilder = formBuilder;
|
|
30205
|
-
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
30224
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
|
|
30206
30225
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
30207
30226
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
30208
30227
|
this.form = formBuilder.group({
|
|
@@ -30245,7 +30264,7 @@
|
|
|
30245
30264
|
var items, data;
|
|
30246
30265
|
var _this = this;
|
|
30247
30266
|
return __generator(this, function (_a) {
|
|
30248
|
-
items = deepCopy(FAKE_ENTITIES);
|
|
30267
|
+
items = deepCopy$1(FAKE_ENTITIES$1);
|
|
30249
30268
|
data = {
|
|
30250
30269
|
entity: items.slice(0, 1),
|
|
30251
30270
|
entityInitial: items.slice(1, 2),
|
|
@@ -30382,7 +30401,7 @@
|
|
|
30382
30401
|
{ type: i1.FormBuilder }
|
|
30383
30402
|
]; };
|
|
30384
30403
|
|
|
30385
|
-
var moment = momentImported__namespace;
|
|
30404
|
+
var moment$7 = momentImported__namespace;
|
|
30386
30405
|
var DateTestPage = /** @class */ (function () {
|
|
30387
30406
|
function DateTestPage(platform, formBuilder, cd) {
|
|
30388
30407
|
this.platform = platform;
|
|
@@ -30420,7 +30439,7 @@
|
|
|
30420
30439
|
var now, nowAtMahe, data;
|
|
30421
30440
|
var _this = this;
|
|
30422
30441
|
return __generator(this, function (_a) {
|
|
30423
|
-
now = moment();
|
|
30442
|
+
now = moment$7();
|
|
30424
30443
|
nowAtMahe = now.clone().tz(this.timezone).startOf('day');
|
|
30425
30444
|
data = {
|
|
30426
30445
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
@@ -30502,7 +30521,7 @@
|
|
|
30502
30521
|
{ label: 'Shared directives', divider: true },
|
|
30503
30522
|
{ label: 'Badge icon directive', page: '/testing/shared/badge-icon' }
|
|
30504
30523
|
];
|
|
30505
|
-
var routes$
|
|
30524
|
+
var routes$1 = [
|
|
30506
30525
|
{
|
|
30507
30526
|
path: '',
|
|
30508
30527
|
pathMatch: 'full',
|
|
@@ -30562,7 +30581,7 @@
|
|
|
30562
30581
|
i1.ReactiveFormsModule,
|
|
30563
30582
|
SharedMaterialModule,
|
|
30564
30583
|
i1$2.TranslateModule.forChild(),
|
|
30565
|
-
i3.RouterModule.forChild(routes$
|
|
30584
|
+
i3.RouterModule.forChild(routes$1)
|
|
30566
30585
|
],
|
|
30567
30586
|
declarations: [
|
|
30568
30587
|
DateTimeTestPage,
|
|
@@ -30624,7 +30643,7 @@
|
|
|
30624
30643
|
{ type: i1$2.TranslateService }
|
|
30625
30644
|
]; };
|
|
30626
30645
|
|
|
30627
|
-
var routes$
|
|
30646
|
+
var routes$2 = [
|
|
30628
30647
|
{
|
|
30629
30648
|
path: 'toast',
|
|
30630
30649
|
pathMatch: 'full',
|
|
@@ -30642,7 +30661,7 @@
|
|
|
30642
30661
|
i1$4.CommonModule,
|
|
30643
30662
|
i1$5.IonicModule,
|
|
30644
30663
|
i1$2.TranslateModule.forChild(),
|
|
30645
|
-
i3.RouterModule.forChild(routes$
|
|
30664
|
+
i3.RouterModule.forChild(routes$2)
|
|
30646
30665
|
],
|
|
30647
30666
|
declarations: [
|
|
30648
30667
|
ToastTestingPage
|
|
@@ -30722,7 +30741,7 @@
|
|
|
30722
30741
|
{ type: i1$5.PopoverController }
|
|
30723
30742
|
]; };
|
|
30724
30743
|
|
|
30725
|
-
var routes$
|
|
30744
|
+
var routes$3 = [
|
|
30726
30745
|
{
|
|
30727
30746
|
path: 'upload-file',
|
|
30728
30747
|
pathMatch: 'full',
|
|
@@ -30740,7 +30759,7 @@
|
|
|
30740
30759
|
i1$4.CommonModule,
|
|
30741
30760
|
i1$5.IonicModule,
|
|
30742
30761
|
i1$2.TranslateModule.forChild(),
|
|
30743
|
-
i3.RouterModule.forChild(routes$
|
|
30762
|
+
i3.RouterModule.forChild(routes$3)
|
|
30744
30763
|
],
|
|
30745
30764
|
declarations: [
|
|
30746
30765
|
UploadFileTestingPage
|
|
@@ -31164,7 +31183,7 @@
|
|
|
31164
31183
|
{ type: i1$5.PopoverController }
|
|
31165
31184
|
]; };
|
|
31166
31185
|
|
|
31167
|
-
var routes$
|
|
31186
|
+
var routes$4 = [
|
|
31168
31187
|
{
|
|
31169
31188
|
path: 'text-popover',
|
|
31170
31189
|
pathMatch: 'full',
|
|
@@ -31182,7 +31201,7 @@
|
|
|
31182
31201
|
i1$4.CommonModule,
|
|
31183
31202
|
i1$5.IonicModule,
|
|
31184
31203
|
i1$2.TranslateModule.forChild(),
|
|
31185
|
-
i3.RouterModule.forChild(routes$
|
|
31204
|
+
i3.RouterModule.forChild(routes$4)
|
|
31186
31205
|
],
|
|
31187
31206
|
declarations: [
|
|
31188
31207
|
TextPopoverTestingPage
|
|
@@ -31199,7 +31218,7 @@
|
|
|
31199
31218
|
{ label: 'Table', page: '/testing/core/table' },
|
|
31200
31219
|
{ label: 'Text popover', page: '/testing/core/text-popover' }
|
|
31201
31220
|
];
|
|
31202
|
-
var routes = [
|
|
31221
|
+
var routes$5 = [
|
|
31203
31222
|
{
|
|
31204
31223
|
path: '',
|
|
31205
31224
|
pathMatch: 'full',
|
|
@@ -31226,7 +31245,7 @@
|
|
|
31226
31245
|
imports: [
|
|
31227
31246
|
i1$4.CommonModule,
|
|
31228
31247
|
i1$2.TranslateModule.forChild(),
|
|
31229
|
-
i3.RouterModule.forChild(routes),
|
|
31248
|
+
i3.RouterModule.forChild(routes$5),
|
|
31230
31249
|
// Sub modules
|
|
31231
31250
|
TableTestingModule,
|
|
31232
31251
|
TextPopoverTestingModule
|
|
@@ -31349,7 +31368,7 @@
|
|
|
31349
31368
|
exports.EntityStore = EntityStore;
|
|
31350
31369
|
exports.EntityUtils = EntityUtils;
|
|
31351
31370
|
exports.Environment = Environment;
|
|
31352
|
-
exports.ErrorCodes = ErrorCodes;
|
|
31371
|
+
exports.ErrorCodes = ErrorCodes$2;
|
|
31353
31372
|
exports.EvenPipe = EvenPipe;
|
|
31354
31373
|
exports.FileResponse = FileResponse;
|
|
31355
31374
|
exports.FileService = FileService;
|
|
@@ -31365,7 +31384,7 @@
|
|
|
31365
31384
|
exports.FormGetControlPipe = FormGetControlPipe;
|
|
31366
31385
|
exports.FormGetGroupPipe = FormGetGroupPipe;
|
|
31367
31386
|
exports.FormGetPipe = FormGetPipe;
|
|
31368
|
-
exports.Fragments = Fragments;
|
|
31387
|
+
exports.Fragments = Fragments$1;
|
|
31369
31388
|
exports.GraphqlService = GraphqlService;
|
|
31370
31389
|
exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
|
|
31371
31390
|
exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
|
|
@@ -31646,23 +31665,23 @@
|
|
|
31646
31665
|
exports.waitForTrue = waitForTrue;
|
|
31647
31666
|
exports.waitIdle = waitIdle;
|
|
31648
31667
|
exports.waitWhilePending = waitWhilePending;
|
|
31649
|
-
exports
|
|
31650
|
-
exports
|
|
31651
|
-
exports
|
|
31652
|
-
exports
|
|
31653
|
-
exports
|
|
31654
|
-
exports
|
|
31655
|
-
exports
|
|
31656
|
-
exports
|
|
31657
|
-
exports
|
|
31658
|
-
exports
|
|
31659
|
-
exports
|
|
31660
|
-
exports
|
|
31661
|
-
exports
|
|
31662
|
-
exports
|
|
31663
|
-
exports
|
|
31668
|
+
exports.ɵ0 = ɵ0$1;
|
|
31669
|
+
exports.ɵa = CustomReuseStrategy;
|
|
31670
|
+
exports.ɵb = MatNumpadDomService;
|
|
31671
|
+
exports.ɵc = isFocusableElement;
|
|
31672
|
+
exports.ɵd = RegisterForm;
|
|
31673
|
+
exports.ɵe = AccountValidatorService;
|
|
31674
|
+
exports.ɵf = RegisterModal;
|
|
31675
|
+
exports.ɵg = UserSettingsValidatorService;
|
|
31676
|
+
exports.ɵh = LocalSettingsValidatorService;
|
|
31677
|
+
exports.ɵi = AppIconComponent;
|
|
31678
|
+
exports.ɵj = DateTestPage;
|
|
31679
|
+
exports.ɵk = NumpadTestPage;
|
|
31680
|
+
exports.ɵl = MatBadgeIconTestPage;
|
|
31681
|
+
exports.ɵm = ToastTestingModule;
|
|
31682
|
+
exports.ɵn = ToastTestingPage;
|
|
31664
31683
|
|
|
31665
31684
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
31666
31685
|
|
|
31667
|
-
}));
|
|
31686
|
+
})));
|
|
31668
31687
|
//# sourceMappingURL=sumaris-net.ngx-components.umd.js.map
|