@sumaris-net/ngx-components 1.10.6 → 1.10.8
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 +298 -316
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/home/home.js +7 -5
- package/esm2015/src/app/core/services/model/entity.model.js +5 -1
- package/esm2015/src/environments/environment.class.js +1 -1
- package/fesm2015/sumaris-net.ngx-components.js +264 -273
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/home/home.d.ts +4 -2
- package/src/app/core/services/model/entity.model.d.ts +1 -0
- package/src/environments/environment.class.d.ts +1 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/cdk/table'), require('@angular/cdk/a11y'), require('@angular/cdk/overlay'), require('@angular/cdk/scrolling'), require('@angular/material/core'), require('@angular/material/table'), require('@angular/material/sort'), require('@angular/material/paginator'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/checkbox'), require('@angular/material/expansion'), require('@angular/material/toolbar'), require('@angular/material/icon'), require('@angular/material/button'), require('@angular/material/menu'), require('@angular/material/select'), require('@angular/material/card'), require('@angular/material/tabs'), require('@angular/material/stepper'), require('@angular/material/list'), require('@angular/material/button-toggle'), require('@angular/material/progress-spinner'), require('@angular/material/progress-bar'), require('@angular/material/radio'), require('@angular/material/badge'), require('@angular/material/slide-toggle'), require('@angular/material/dialog'), require('@angular/material/autocomplete'), require('@angular/forms'), require('rxjs'), require('rxjs/operators'), require('@ngx-translate/core'), require('@ionic/angular'), require('moment'), require('@angular/material-moment-adapter'), require('@ionic-native/keyboard/ngx'), require('angular2-text-mask'), require('ngx-material-timepicker'), require('@angular/material/datepicker'), require('@angular/animations'), require('@angular/material/divider'), require('@angular/material/tooltip'), require('@angular/material/chips'), require('@angular/router'), require('@angular/platform-browser'), require('@angular/common/http'), require('ngx-color-picker'), require('@ionic-native/native-audio/ngx'), require('@ionic-native/vibration/ngx'), require('@ionic-native/audio-management/ngx'), require('@ionic-native/native-audio/ngx/index'), require('@ionic-native/vibration/ngx/index'), require('@ionic-native/audio-management/ngx/index'), require('uuid/v4'), require('@angular/cdk/drag-drop'), require('ngx-markdown'), require('tweetnacl'), require('@ionic/storage'), require('zone.js/dist/zone-error'), require('@ionic-native/splash-screen/ngx'), require('@ionic-native/network/ngx'), require('ionic-cache'), require('ionic-cache/dist/cache.service'), require('@ionic-native/network/ngx/index'), require('@ionic-native/splash-screen/ngx/index'), require('@ionic-native/status-bar/ngx'), require('@angular/cdk/platform'), require('@ionic-native/in-app-browser/ngx'), require('@apollo/client/core'), require('apollo-angular'), require('@apollo/client/link/ws'), require('@apollo/client/utilities'), require('@apollo/client/link/retry'), require('apollo-link-queue'), require('apollo-link-serialize'), require('apollo-link-logger'), require('apollo-angular/http'), require('apollo3-cache-persist'), require('@ionic-native/downloader/ngx'), require('@ionic-native/status-bar/ngx/index'), require('@ionic-native/keyboard/ngx/index'), require('@ionic-native/in-app-browser/ngx/index'), require('@ionic-native/downloader/ngx/index'), require('@e-is/ngx-material-table'), require('@angular/cdk/collections'), require('ngx-jdenticon'), require('tweetnacl-util'), require('scrypt-async'), require('hammerjs')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@sumaris-net/ngx-components', ['exports', '@angular/core', '@angular/common', '@angular/cdk/table', '@angular/cdk/a11y', '@angular/cdk/overlay', '@angular/cdk/scrolling', '@angular/material/core', '@angular/material/table', '@angular/material/sort', '@angular/material/paginator', '@angular/material/form-field', '@angular/material/input', '@angular/material/checkbox', '@angular/material/expansion', '@angular/material/toolbar', '@angular/material/icon', '@angular/material/button', '@angular/material/menu', '@angular/material/select', '@angular/material/card', '@angular/material/tabs', '@angular/material/stepper', '@angular/material/list', '@angular/material/button-toggle', '@angular/material/progress-spinner', '@angular/material/progress-bar', '@angular/material/radio', '@angular/material/badge', '@angular/material/slide-toggle', '@angular/material/dialog', '@angular/material/autocomplete', '@angular/forms', 'rxjs', 'rxjs/operators', '@ngx-translate/core', '@ionic/angular', 'moment', '@angular/material-moment-adapter', '@ionic-native/keyboard/ngx', 'angular2-text-mask', 'ngx-material-timepicker', '@angular/material/datepicker', '@angular/animations', '@angular/material/divider', '@angular/material/tooltip', '@angular/material/chips', '@angular/router', '@angular/platform-browser', '@angular/common/http', 'ngx-color-picker', '@ionic-native/native-audio/ngx', '@ionic-native/vibration/ngx', '@ionic-native/audio-management/ngx', '@ionic-native/native-audio/ngx/index', '@ionic-native/vibration/ngx/index', '@ionic-native/audio-management/ngx/index', 'uuid/v4', '@angular/cdk/drag-drop', 'ngx-markdown', 'tweetnacl', '@ionic/storage', 'zone.js/dist/zone-error', '@ionic-native/splash-screen/ngx', '@ionic-native/network/ngx', 'ionic-cache', 'ionic-cache/dist/cache.service', '@ionic-native/network/ngx/index', '@ionic-native/splash-screen/ngx/index', '@ionic-native/status-bar/ngx', '@angular/cdk/platform', '@ionic-native/in-app-browser/ngx', '@apollo/client/core', 'apollo-angular', '@apollo/client/link/ws', '@apollo/client/utilities', '@apollo/client/link/retry', 'apollo-link-queue', 'apollo-link-serialize', 'apollo-link-logger', 'apollo-angular/http', 'apollo3-cache-persist', '@ionic-native/downloader/ngx', '@ionic-native/status-bar/ngx/index', '@ionic-native/keyboard/ngx/index', '@ionic-native/in-app-browser/ngx/index', '@ionic-native/downloader/ngx/index', '@e-is/ngx-material-table', '@angular/cdk/collections', 'ngx-jdenticon', 'tweetnacl-util', 'scrypt-async', 'hammerjs'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global[
|
|
5
|
-
}
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sumaris-net'] = global['sumaris-net'] || {}, global['sumaris-net']['ngx-components'] = {}), global.ng.core, global.ng.common, global.ng.cdk.table, global.ng.cdk.a11y, global.ng.cdk.overlay, global.ng.cdk.scrolling, global.ng.material.core, global.ng.material.table, global.ng.material.sort, global.ng.material.paginator, global.ng.material.formField, global.ng.material.input, global.ng.material.checkbox, global.ng.material.expansion, global.ng.material.toolbar, global.ng.material.icon, global.ng.material.button, global.ng.material.menu, global.ng.material.select, global.ng.material.card, global.ng.material.tabs, global.ng.material.stepper, global.ng.material.list, global.ng.material.buttonToggle, global.ng.material.progressSpinner, global.ng.material.progressBar, global.ng.material.radio, global.ng.material.badge, global.ng.material.slideToggle, global.ng.material.dialog, global.ng.material.autocomplete, global.ng.forms, global.rxjs, global.rxjs.operators, global['ngx-translate'].core, global.ionic.angular, global.moment, global.ng.materialMomentAdapter, global['ionic-native'].keyboard.ngx, global['angular2-text-mask'], global['ngx-material-timepicker'], global.ng.material.datepicker, global.ng.animations, global.ng.material.divider, global.ng.material.tooltip, global.ng.material.chips, global.ng.router, global.ng.platformBrowser, global.ng.common.http, global['ngx-color-picker'], global['ionic-native']['native-audio'].ngx, global['ionic-native'].vibration.ngx, global['ionic-native']['audio-management'].ngx, global['ionic-native']['native-audio'].ngx.index, global['ionic-native'].vibration.ngx.index, global['ionic-native']['audio-management'].ngx.index, global.uuid.v4, global.ng.cdk.dragDrop, global['ngx-markdown'], global.tweetnacl, global.ionic.storage, null, global['ionic-native']['splash-screen'].ngx, global['ionic-native'].network.ngx, global['ionic-cache'], global['ionic-cache/dist/cache'].service, global['ionic-native'].network.ngx.index, global['ionic-native']['splash-screen'].ngx.index, global['ionic-native']['status-bar'].ngx, global.ng.cdk.platform, global['ionic-native']['in-app-browser'].ngx, global.apollo.client.core, global['apollo-angular'], global.apollo.client.link.ws, global.apollo.client.utilities, global.apollo.client.link.retry, global['apollo-link-queue'], global['apollo-link-serialize'], global['apollo-link-logger'], global['apollo-angular'].http, global['apollo3-cache-persist'], global['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['e-is']['ngx-material-table'], global.ng.cdk.collections, global['ngx-jdenticon']));
|
|
5
|
+
}(this, (function (exports, i0, i1$4, table$1, a11y, overlay, scrolling, i1$3, table, sort$1, paginator, formField, input, checkbox, expansion, toolbar, icon, button, menu, select, card, tabs, stepper, list, buttonToggle, progressSpinner, progressBar, radio, badge, slideToggle, i2, autocomplete, i1, rxjs, operators, i1$2, i1$5, momentImported, i1$1, ngx, angular2TextMask, ngxMaterialTimepicker, datepicker, animations, divider, tooltip, chips, i3, i1$6, i2$1, ngxColorPicker, ngx$2, ngx$3, ngx$1, i2$2, i3$1, i4, uuidv4Imported, dragDrop, ngxMarkdown, tweetnacl, i3$2, zoneError, ngx$5, ngx$4, ionicCache, i6, i9, i10, ngx$7, i2$4, ngx$8, core, i2$3, ws, utilities, retry, QueueLink, SerializingLink, loggerLink, i3$3, apollo3CachePersist, ngx$6, i14, i15, i17, i18, ngxMaterialTable, collections, ngxJdenticon) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -15,45 +15,22 @@
|
|
|
15
15
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
16
|
Object.defineProperty(n, k, d.get ? d : {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () {
|
|
18
|
+
get: function () {
|
|
19
|
+
return e[k];
|
|
20
|
+
}
|
|
19
21
|
});
|
|
20
22
|
}
|
|
21
23
|
});
|
|
22
24
|
}
|
|
23
|
-
n[
|
|
25
|
+
n['default'] = e;
|
|
24
26
|
return Object.freeze(n);
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
29
|
-
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
30
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2);
|
|
31
|
-
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1);
|
|
32
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
33
|
-
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
34
29
|
var momentImported__namespace = /*#__PURE__*/_interopNamespace(momentImported);
|
|
35
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
|
|
36
|
-
var i3__namespace$3 = /*#__PURE__*/_interopNamespace(i3);
|
|
37
|
-
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
38
|
-
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
39
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2$2);
|
|
40
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3$1);
|
|
41
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
42
30
|
var uuidv4Imported__namespace = /*#__PURE__*/_interopNamespace(uuidv4Imported);
|
|
43
|
-
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
44
|
-
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
45
|
-
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
46
|
-
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
47
|
-
var i2__namespace$4 = /*#__PURE__*/_interopNamespace(i2$4);
|
|
48
|
-
var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
|
|
49
31
|
var QueueLink__default = /*#__PURE__*/_interopDefaultLegacy(QueueLink);
|
|
50
32
|
var SerializingLink__default = /*#__PURE__*/_interopDefaultLegacy(SerializingLink);
|
|
51
33
|
var loggerLink__default = /*#__PURE__*/_interopDefaultLegacy(loggerLink);
|
|
52
|
-
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$3);
|
|
53
|
-
var i14__namespace = /*#__PURE__*/_interopNamespace(i14);
|
|
54
|
-
var i15__namespace = /*#__PURE__*/_interopNamespace(i15);
|
|
55
|
-
var i17__namespace = /*#__PURE__*/_interopNamespace(i17);
|
|
56
|
-
var i18__namespace = /*#__PURE__*/_interopNamespace(i18);
|
|
57
34
|
|
|
58
35
|
var ENVIRONMENT = new i0.InjectionToken('ENV');
|
|
59
36
|
var Environment = /** @class */ (function () {
|
|
@@ -1278,14 +1255,14 @@
|
|
|
1278
1255
|
};
|
|
1279
1256
|
return MatAutocompleteConfigHolder;
|
|
1280
1257
|
}());
|
|
1281
|
-
var noop
|
|
1282
|
-
var ɵ0
|
|
1258
|
+
var noop = function (_) { };
|
|
1259
|
+
var ɵ0 = noop;
|
|
1283
1260
|
var MatAutocompleteField = /** @class */ (function () {
|
|
1284
1261
|
function MatAutocompleteField(cd, formGroupDir) {
|
|
1285
1262
|
this.cd = cd;
|
|
1286
1263
|
this.formGroupDir = formGroupDir;
|
|
1287
|
-
this._onChangeCallback = noop
|
|
1288
|
-
this._onTouchedCallback = noop
|
|
1264
|
+
this._onChangeCallback = noop;
|
|
1265
|
+
this._onTouchedCallback = noop;
|
|
1289
1266
|
this.logPrefix = '[mat-autocomplete] ';
|
|
1290
1267
|
this.formControlName = null;
|
|
1291
1268
|
this.required = false;
|
|
@@ -2078,7 +2055,7 @@
|
|
|
2078
2055
|
};
|
|
2079
2056
|
return DateFormatPipe;
|
|
2080
2057
|
}());
|
|
2081
|
-
DateFormatPipe.ɵprov =
|
|
2058
|
+
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" });
|
|
2082
2059
|
DateFormatPipe.decorators = [
|
|
2083
2060
|
{ type: i0.Pipe, args: [{
|
|
2084
2061
|
name: 'dateFormat'
|
|
@@ -2090,7 +2067,7 @@
|
|
|
2090
2067
|
{ type: i1$2.TranslateService }
|
|
2091
2068
|
]; };
|
|
2092
2069
|
|
|
2093
|
-
var moment
|
|
2070
|
+
var moment = momentImported__namespace;
|
|
2094
2071
|
var DateDiffDurationPipe = /** @class */ (function () {
|
|
2095
2072
|
function DateDiffDurationPipe(dateAdapter, translate) {
|
|
2096
2073
|
var _this = this;
|
|
@@ -2107,10 +2084,10 @@
|
|
|
2107
2084
|
return this.format(startDate, endDate);
|
|
2108
2085
|
};
|
|
2109
2086
|
DateDiffDurationPipe.prototype.format = function (startDate, endDate) {
|
|
2110
|
-
var duration = moment
|
|
2087
|
+
var duration = moment.duration(endDate.diff(startDate));
|
|
2111
2088
|
if (duration.asMinutes() < 0)
|
|
2112
2089
|
return '';
|
|
2113
|
-
var timeDuration = moment
|
|
2090
|
+
var timeDuration = moment(0)
|
|
2114
2091
|
.hour(duration.hours())
|
|
2115
2092
|
.minute(duration.minutes());
|
|
2116
2093
|
var days = Math.floor(duration.asDays());
|
|
@@ -2118,7 +2095,7 @@
|
|
|
2118
2095
|
};
|
|
2119
2096
|
return DateDiffDurationPipe;
|
|
2120
2097
|
}());
|
|
2121
|
-
DateDiffDurationPipe.ɵprov =
|
|
2098
|
+
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" });
|
|
2122
2099
|
DateDiffDurationPipe.decorators = [
|
|
2123
2100
|
{ type: i0.Pipe, args: [{
|
|
2124
2101
|
name: 'dateDiffDuration'
|
|
@@ -2140,7 +2117,7 @@
|
|
|
2140
2117
|
};
|
|
2141
2118
|
return DateFromNowPipe;
|
|
2142
2119
|
}());
|
|
2143
|
-
DateFromNowPipe.ɵprov =
|
|
2120
|
+
DateFromNowPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0.ɵɵinject(i1$1.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
|
|
2144
2121
|
DateFromNowPipe.decorators = [
|
|
2145
2122
|
{ type: i0.Pipe, args: [{
|
|
2146
2123
|
name: 'dateFromNow'
|
|
@@ -2209,7 +2186,7 @@
|
|
|
2209
2186
|
value *= -1;
|
|
2210
2187
|
}
|
|
2211
2188
|
}
|
|
2212
|
-
var degrees = roundFloat
|
|
2189
|
+
var degrees = roundFloat(value, opts.maxDecimals).toString();
|
|
2213
2190
|
// Add sign
|
|
2214
2191
|
var sign = negative ? '-' : '+';
|
|
2215
2192
|
if (opts.placeholderChar) {
|
|
@@ -2260,7 +2237,7 @@
|
|
|
2260
2237
|
}
|
|
2261
2238
|
var degrees = Math.trunc(value);
|
|
2262
2239
|
var minutes = Math.trunc((value - degrees) * 60);
|
|
2263
|
-
var seconds = roundFloat
|
|
2240
|
+
var seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
|
|
2264
2241
|
while (seconds >= 60) {
|
|
2265
2242
|
seconds -= 60;
|
|
2266
2243
|
minutes += 1;
|
|
@@ -2328,7 +2305,7 @@
|
|
|
2328
2305
|
}
|
|
2329
2306
|
}
|
|
2330
2307
|
var degrees = Math.trunc(value);
|
|
2331
|
-
var minutes = roundFloat
|
|
2308
|
+
var minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
|
|
2332
2309
|
while (minutes >= 60) {
|
|
2333
2310
|
minutes -= 60;
|
|
2334
2311
|
degrees += 1;
|
|
@@ -2379,15 +2356,15 @@
|
|
|
2379
2356
|
return NaN;
|
|
2380
2357
|
}
|
|
2381
2358
|
if (pattern === 'DD')
|
|
2382
|
-
return roundFloat
|
|
2359
|
+
return roundFloat(degrees, maxDecimals);
|
|
2383
2360
|
var minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
|
|
2384
2361
|
var seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
|
|
2385
2362
|
var direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
|
|
2386
2363
|
var sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
|
|
2387
2364
|
degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
|
|
2388
|
-
return roundFloat
|
|
2365
|
+
return roundFloat(degrees, maxDecimals);
|
|
2389
2366
|
}
|
|
2390
|
-
function roundFloat
|
|
2367
|
+
function roundFloat(input, maxDecimals) {
|
|
2391
2368
|
if (maxDecimals > 0) {
|
|
2392
2369
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
2393
2370
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -2410,7 +2387,7 @@
|
|
|
2410
2387
|
};
|
|
2411
2388
|
return LatLongFormatPipe;
|
|
2412
2389
|
}());
|
|
2413
|
-
LatLongFormatPipe.ɵprov =
|
|
2390
|
+
LatLongFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
|
|
2414
2391
|
LatLongFormatPipe.decorators = [
|
|
2415
2392
|
{ type: i0.Pipe, args: [{
|
|
2416
2393
|
name: 'latLongFormat'
|
|
@@ -2423,7 +2400,7 @@
|
|
|
2423
2400
|
}
|
|
2424
2401
|
return LatitudeFormatPipe;
|
|
2425
2402
|
}());
|
|
2426
|
-
LatitudeFormatPipe.ɵprov =
|
|
2403
|
+
LatitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
|
|
2427
2404
|
LatitudeFormatPipe.decorators = [
|
|
2428
2405
|
{ type: i0.Pipe, args: [{
|
|
2429
2406
|
name: 'latitudeFormat'
|
|
@@ -2436,7 +2413,7 @@
|
|
|
2436
2413
|
}
|
|
2437
2414
|
return LongitudeFormatPipe;
|
|
2438
2415
|
}());
|
|
2439
|
-
LongitudeFormatPipe.ɵprov =
|
|
2416
|
+
LongitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
|
|
2440
2417
|
LongitudeFormatPipe.decorators = [
|
|
2441
2418
|
{ type: i0.Pipe, args: [{
|
|
2442
2419
|
name: 'longitudeFormat'
|
|
@@ -2459,7 +2436,7 @@
|
|
|
2459
2436
|
};
|
|
2460
2437
|
return NumberFormatPipe;
|
|
2461
2438
|
}());
|
|
2462
|
-
NumberFormatPipe.ɵprov =
|
|
2439
|
+
NumberFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
|
|
2463
2440
|
NumberFormatPipe.decorators = [
|
|
2464
2441
|
{ type: i0.Pipe, args: [{
|
|
2465
2442
|
name: 'numberFormat'
|
|
@@ -2502,7 +2479,7 @@
|
|
|
2502
2479
|
};
|
|
2503
2480
|
return HighlightPipe;
|
|
2504
2481
|
}());
|
|
2505
|
-
HighlightPipe.ɵprov =
|
|
2482
|
+
HighlightPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
|
|
2506
2483
|
HighlightPipe.decorators = [
|
|
2507
2484
|
{ type: i0.Pipe, args: [{
|
|
2508
2485
|
name: 'highlight'
|
|
@@ -2570,7 +2547,7 @@
|
|
|
2570
2547
|
{ type: i0.Pipe, args: [{ name: 'fileSize' },] }
|
|
2571
2548
|
];
|
|
2572
2549
|
|
|
2573
|
-
var moment$
|
|
2550
|
+
var moment$1 = momentImported__namespace;
|
|
2574
2551
|
var DATE_UNIX_TIMESTAMP = 'X';
|
|
2575
2552
|
var DATE_UNIX_MS_TIMESTAMP = 'x';
|
|
2576
2553
|
var DateUtils = /** @class */ (function () {
|
|
@@ -2613,32 +2590,32 @@
|
|
|
2613
2590
|
if (!value || momentImported.isMoment(value))
|
|
2614
2591
|
return value;
|
|
2615
2592
|
// Parse the input value, as a ISO date time
|
|
2616
|
-
var date = moment$
|
|
2593
|
+
var date = moment$1(value, DATE_ISO_PATTERN);
|
|
2617
2594
|
if (date.isValid())
|
|
2618
2595
|
return date;
|
|
2619
2596
|
// Not valid: trying to convert from unix timestamp
|
|
2620
2597
|
if (typeof value === 'string') {
|
|
2621
2598
|
console.warn('Wrong date format - Trying to convert from local time: ' + value);
|
|
2622
2599
|
if (value.length === 10) {
|
|
2623
|
-
return moment$
|
|
2600
|
+
return moment$1(value, DATE_UNIX_TIMESTAMP);
|
|
2624
2601
|
}
|
|
2625
2602
|
else if (value.length === 13) {
|
|
2626
|
-
return moment$
|
|
2603
|
+
return moment$1(value, DATE_UNIX_MS_TIMESTAMP);
|
|
2627
2604
|
}
|
|
2628
2605
|
}
|
|
2629
2606
|
console.warn('Unable to parse date: ' + value);
|
|
2630
2607
|
return undefined;
|
|
2631
2608
|
}
|
|
2632
2609
|
function fromUnixTimestamp(timeInSec) {
|
|
2633
|
-
return moment$
|
|
2610
|
+
return moment$1(timeInSec, DATE_UNIX_TIMESTAMP);
|
|
2634
2611
|
}
|
|
2635
2612
|
function fromUnixMsTimestamp(timeInMs) {
|
|
2636
|
-
return moment$
|
|
2613
|
+
return moment$1(timeInMs, DATE_UNIX_MS_TIMESTAMP);
|
|
2637
2614
|
}
|
|
2638
2615
|
function toDuration(value, unit) {
|
|
2639
2616
|
if (!value)
|
|
2640
2617
|
return undefined;
|
|
2641
|
-
var duration = moment$
|
|
2618
|
+
var duration = moment$1.duration(value, unit);
|
|
2642
2619
|
// fix 990+ ms
|
|
2643
2620
|
if (duration.milliseconds() >= 990) {
|
|
2644
2621
|
duration.add(1000 - duration.milliseconds(), 'ms');
|
|
@@ -2668,7 +2645,7 @@
|
|
|
2668
2645
|
};
|
|
2669
2646
|
return DurationPipe;
|
|
2670
2647
|
}());
|
|
2671
|
-
DurationPipe.ɵprov =
|
|
2648
|
+
DurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0.ɵɵinject(i1$2.TranslateService)); }, token: DurationPipe, providedIn: "root" });
|
|
2672
2649
|
DurationPipe.decorators = [
|
|
2673
2650
|
{ type: i0.Pipe, args: [{
|
|
2674
2651
|
name: 'duration'
|
|
@@ -2692,7 +2669,7 @@
|
|
|
2692
2669
|
};
|
|
2693
2670
|
return MathAbsPipe;
|
|
2694
2671
|
}());
|
|
2695
|
-
MathAbsPipe.ɵprov =
|
|
2672
|
+
MathAbsPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
|
|
2696
2673
|
MathAbsPipe.decorators = [
|
|
2697
2674
|
{ type: i0.Pipe, args: [{
|
|
2698
2675
|
name: 'mathAbs'
|
|
@@ -2707,7 +2684,7 @@
|
|
|
2707
2684
|
};
|
|
2708
2685
|
return EvenPipe;
|
|
2709
2686
|
}());
|
|
2710
|
-
EvenPipe.ɵprov =
|
|
2687
|
+
EvenPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
|
|
2711
2688
|
EvenPipe.decorators = [
|
|
2712
2689
|
{ type: i0.Pipe, args: [{
|
|
2713
2690
|
name: 'even'
|
|
@@ -2722,7 +2699,7 @@
|
|
|
2722
2699
|
};
|
|
2723
2700
|
return OddPipe;
|
|
2724
2701
|
}());
|
|
2725
|
-
OddPipe.ɵprov =
|
|
2702
|
+
OddPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
|
|
2726
2703
|
OddPipe.decorators = [
|
|
2727
2704
|
{ type: i0.Pipe, args: [{
|
|
2728
2705
|
name: 'odd'
|
|
@@ -2854,7 +2831,7 @@
|
|
|
2854
2831
|
};
|
|
2855
2832
|
return MapGetPipe;
|
|
2856
2833
|
}());
|
|
2857
|
-
MapGetPipe.ɵprov =
|
|
2834
|
+
MapGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
|
|
2858
2835
|
MapGetPipe.decorators = [
|
|
2859
2836
|
{ type: i0.Pipe, args: [{
|
|
2860
2837
|
name: 'mapGet'
|
|
@@ -2871,7 +2848,7 @@
|
|
|
2871
2848
|
};
|
|
2872
2849
|
return MapKeysPipe;
|
|
2873
2850
|
}());
|
|
2874
|
-
MapKeysPipe.ɵprov =
|
|
2851
|
+
MapKeysPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
|
|
2875
2852
|
MapKeysPipe.decorators = [
|
|
2876
2853
|
{ type: i0.Pipe, args: [{
|
|
2877
2854
|
name: 'mapKeys'
|
|
@@ -2888,7 +2865,7 @@
|
|
|
2888
2865
|
};
|
|
2889
2866
|
return MapValuesPipe;
|
|
2890
2867
|
}());
|
|
2891
|
-
MapValuesPipe.ɵprov =
|
|
2868
|
+
MapValuesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
|
|
2892
2869
|
MapValuesPipe.decorators = [
|
|
2893
2870
|
{ type: i0.Pipe, args: [{
|
|
2894
2871
|
name: 'mapValues'
|
|
@@ -2904,7 +2881,7 @@
|
|
|
2904
2881
|
};
|
|
2905
2882
|
return IsNotNilOrBlankPipe;
|
|
2906
2883
|
}());
|
|
2907
|
-
IsNotNilOrBlankPipe.ɵprov =
|
|
2884
|
+
IsNotNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
|
|
2908
2885
|
IsNotNilOrBlankPipe.decorators = [
|
|
2909
2886
|
{ type: i0.Pipe, args: [{
|
|
2910
2887
|
name: 'isNotNilOrBlank'
|
|
@@ -2919,7 +2896,7 @@
|
|
|
2919
2896
|
};
|
|
2920
2897
|
return IsNilOrBlankPipe;
|
|
2921
2898
|
}());
|
|
2922
|
-
IsNilOrBlankPipe.ɵprov =
|
|
2899
|
+
IsNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
|
|
2923
2900
|
IsNilOrBlankPipe.decorators = [
|
|
2924
2901
|
{ type: i0.Pipe, args: [{
|
|
2925
2902
|
name: 'isNilOrBlank'
|
|
@@ -2934,7 +2911,7 @@
|
|
|
2934
2911
|
};
|
|
2935
2912
|
return ToStringPipe;
|
|
2936
2913
|
}());
|
|
2937
|
-
ToStringPipe.ɵprov =
|
|
2914
|
+
ToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
|
|
2938
2915
|
ToStringPipe.decorators = [
|
|
2939
2916
|
{ type: i0.Pipe, args: [{
|
|
2940
2917
|
name: 'toString'
|
|
@@ -2949,7 +2926,7 @@
|
|
|
2949
2926
|
};
|
|
2950
2927
|
return StrLengthPipe;
|
|
2951
2928
|
}());
|
|
2952
|
-
StrLengthPipe.ɵprov =
|
|
2929
|
+
StrLengthPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
|
|
2953
2930
|
StrLengthPipe.decorators = [
|
|
2954
2931
|
{ type: i0.Pipe, args: [{
|
|
2955
2932
|
name: 'strLength'
|
|
@@ -3040,7 +3017,7 @@
|
|
|
3040
3017
|
};
|
|
3041
3018
|
return TranslateContextService;
|
|
3042
3019
|
}());
|
|
3043
|
-
TranslateContextService.ɵprov =
|
|
3020
|
+
TranslateContextService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0.ɵɵinject(i1$2.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
|
|
3044
3021
|
TranslateContextService.decorators = [
|
|
3045
3022
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
3046
3023
|
];
|
|
@@ -3097,7 +3074,7 @@
|
|
|
3097
3074
|
};
|
|
3098
3075
|
return PropertyGetPipe;
|
|
3099
3076
|
}());
|
|
3100
|
-
PropertyGetPipe.ɵprov =
|
|
3077
|
+
PropertyGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
|
|
3101
3078
|
PropertyGetPipe.decorators = [
|
|
3102
3079
|
{ type: i0.Pipe, args: [{
|
|
3103
3080
|
name: 'propertyGet'
|
|
@@ -3123,7 +3100,7 @@
|
|
|
3123
3100
|
ngInit: [{ type: i0.Output }]
|
|
3124
3101
|
};
|
|
3125
3102
|
|
|
3126
|
-
var moment$
|
|
3103
|
+
var moment$2 = momentImported__namespace;
|
|
3127
3104
|
// @dynamic
|
|
3128
3105
|
var SharedValidators = /** @class */ (function () {
|
|
3129
3106
|
function SharedValidators() {
|
|
@@ -3142,7 +3119,7 @@
|
|
|
3142
3119
|
};
|
|
3143
3120
|
SharedValidators.validDate = function (control) {
|
|
3144
3121
|
var value = control.value;
|
|
3145
|
-
var date = !value || moment$
|
|
3122
|
+
var date = !value || moment$2.isMoment(value) ? value : moment$2(control.value, DATE_ISO_PATTERN);
|
|
3146
3123
|
if (date && (!date.isValid() || date.year() < 1970)) {
|
|
3147
3124
|
return { validDate: true };
|
|
3148
3125
|
}
|
|
@@ -4308,7 +4285,7 @@
|
|
|
4308
4285
|
};
|
|
4309
4286
|
return FormErrorTranslator;
|
|
4310
4287
|
}());
|
|
4311
|
-
FormErrorTranslator.ɵprov =
|
|
4288
|
+
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" });
|
|
4312
4289
|
FormErrorTranslator.decorators = [
|
|
4313
4290
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
4314
4291
|
];
|
|
@@ -4499,7 +4476,7 @@
|
|
|
4499
4476
|
}
|
|
4500
4477
|
return false;
|
|
4501
4478
|
};
|
|
4502
|
-
var ɵ0$
|
|
4479
|
+
var ɵ0$1 = isIpad;
|
|
4503
4480
|
var isIOS = function (win) { return testUserAgent(win, /iPhone|iPod/i) || isIpad(win); };
|
|
4504
4481
|
var isAndroid = function (win) { return testUserAgent(win, /android|sink/i); };
|
|
4505
4482
|
var isCordova = function (win) { return !!(win['cordova'] || win['phonegap'] || win['PhoneGap']); };
|
|
@@ -4704,9 +4681,9 @@
|
|
|
4704
4681
|
var hour = parseInt(durationParts[0] || '0');
|
|
4705
4682
|
var minute = parseInt(durationParts[1] || '0');
|
|
4706
4683
|
var value = hour + (minute + 0.5) / 60;
|
|
4707
|
-
return roundFloat(value, maxDecimals);
|
|
4684
|
+
return roundFloat$1(value, maxDecimals);
|
|
4708
4685
|
}
|
|
4709
|
-
function roundFloat(input, maxDecimals) {
|
|
4686
|
+
function roundFloat$1(input, maxDecimals) {
|
|
4710
4687
|
if (maxDecimals > 0) {
|
|
4711
4688
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
4712
4689
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -4730,9 +4707,9 @@
|
|
|
4730
4707
|
DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
|
|
4731
4708
|
}
|
|
4732
4709
|
};
|
|
4733
|
-
var noop$
|
|
4710
|
+
var noop$1 = function () {
|
|
4734
4711
|
};
|
|
4735
|
-
var ɵ0$
|
|
4712
|
+
var ɵ0$2 = noop$1;
|
|
4736
4713
|
var MatLatLongField = /** @class */ (function () {
|
|
4737
4714
|
function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
|
|
4738
4715
|
this.platform = platform;
|
|
@@ -4740,8 +4717,8 @@
|
|
|
4740
4717
|
this.formBuilder = formBuilder;
|
|
4741
4718
|
this.cd = cd;
|
|
4742
4719
|
this.formGroupDir = formGroupDir;
|
|
4743
|
-
this._onChangeCallback = noop$
|
|
4744
|
-
this._onTouchedCallback = noop$
|
|
4720
|
+
this._onChangeCallback = noop$1;
|
|
4721
|
+
this._onTouchedCallback = noop$1;
|
|
4745
4722
|
this._subscription = new rxjs.Subscription();
|
|
4746
4723
|
this.disabling = false;
|
|
4747
4724
|
this.writing = false;
|
|
@@ -5093,14 +5070,14 @@
|
|
|
5093
5070
|
},] }
|
|
5094
5071
|
];
|
|
5095
5072
|
|
|
5096
|
-
var DEFAULT_VALUE_ACCESSOR
|
|
5073
|
+
var DEFAULT_VALUE_ACCESSOR = {
|
|
5097
5074
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5098
5075
|
useExisting: i0.forwardRef(function () { return MatDate; }),
|
|
5099
5076
|
multi: true
|
|
5100
5077
|
};
|
|
5101
|
-
var DAY_MASK
|
|
5102
|
-
var noop$
|
|
5103
|
-
var ɵ0$
|
|
5078
|
+
var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5079
|
+
var noop$2 = function () { };
|
|
5080
|
+
var ɵ0$3 = noop$2;
|
|
5104
5081
|
var MatDate = /** @class */ (function () {
|
|
5105
5082
|
function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5106
5083
|
this.dateAdapter = dateAdapter;
|
|
@@ -5109,12 +5086,12 @@
|
|
|
5109
5086
|
this.cd = cd;
|
|
5110
5087
|
this.keyboard = keyboard;
|
|
5111
5088
|
this.formGroupDir = formGroupDir;
|
|
5112
|
-
this._onChangeCallback = noop$
|
|
5113
|
-
this._onTouchedCallback = noop$
|
|
5089
|
+
this._onChangeCallback = noop$2;
|
|
5090
|
+
this._onTouchedCallback = noop$2;
|
|
5114
5091
|
this._subscription = new rxjs.Subscription();
|
|
5115
5092
|
this.writing = true;
|
|
5116
5093
|
this.disabling = false;
|
|
5117
|
-
this.dayMask = DAY_MASK
|
|
5094
|
+
this.dayMask = DAY_MASK;
|
|
5118
5095
|
this.disabled = false;
|
|
5119
5096
|
this.floatLabel = 'auto';
|
|
5120
5097
|
this.readonly = false;
|
|
@@ -5383,7 +5360,7 @@
|
|
|
5383
5360
|
selector: 'mat-date-field',
|
|
5384
5361
|
template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly else writable\">\n <input matInput hidden type=\"text\" readonly=\"true\" [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix><ng-content select=\"[matPrefix]\"></ng-content></div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dayControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker)\"\n (keyup.escape)=\"preventEvent($event)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [appAutofocus]=\"autofocus\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dayControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n\n <!-- Hide the final control -->\n <input matInput type=\"text\"\n [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n (click)=\"openDatePicker($event, datePicker)\"\n [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"writeValue(null)\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('validDate')\" translate>ERROR.FIELD_NOT_VALID_DATE</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateIsAfter')\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateRange')\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMaxDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMinDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngIf=\"formControl.hasError('msg')\">{{formControl.errors.msg}}</mat-error>\n </mat-form-field>\n\n <mat-datepicker #datePicker\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n [startAt]=\"startDate\"></mat-datepicker>\n\n <ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n </ng-template>\n\n <ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n </ng-template>\n\n</ng-template>\n\n",
|
|
5385
5362
|
providers: [
|
|
5386
|
-
DEFAULT_VALUE_ACCESSOR
|
|
5363
|
+
DEFAULT_VALUE_ACCESSOR,
|
|
5387
5364
|
],
|
|
5388
5365
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5389
5366
|
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%}"]
|
|
@@ -5416,17 +5393,17 @@
|
|
|
5416
5393
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
5417
5394
|
};
|
|
5418
5395
|
|
|
5419
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5396
|
+
var DEFAULT_VALUE_ACCESSOR$1 = {
|
|
5420
5397
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5421
5398
|
useExisting: i0.forwardRef(function () { return MatDateTime; }),
|
|
5422
5399
|
multi: true
|
|
5423
5400
|
};
|
|
5424
5401
|
var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5425
5402
|
var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
|
|
5426
|
-
var HOUR_MASK
|
|
5427
|
-
var noop$
|
|
5403
|
+
var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
5404
|
+
var noop$3 = function () {
|
|
5428
5405
|
};
|
|
5429
|
-
var ɵ0$
|
|
5406
|
+
var ɵ0$4 = noop$3;
|
|
5430
5407
|
var MatDateTime = /** @class */ (function () {
|
|
5431
5408
|
function MatDateTime(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5432
5409
|
this.platform = platform;
|
|
@@ -5436,14 +5413,14 @@
|
|
|
5436
5413
|
this.cd = cd;
|
|
5437
5414
|
this.keyboard = keyboard;
|
|
5438
5415
|
this.formGroupDir = formGroupDir;
|
|
5439
|
-
this._onChangeCallback = noop$
|
|
5440
|
-
this._onTouchedCallback = noop$
|
|
5416
|
+
this._onChangeCallback = noop$3;
|
|
5417
|
+
this._onTouchedCallback = noop$3;
|
|
5441
5418
|
this._subscription = new rxjs.Subscription();
|
|
5442
5419
|
this.writing = true;
|
|
5443
5420
|
this.disabling = false;
|
|
5444
5421
|
this._readonly = false;
|
|
5445
5422
|
this.dayMask = DAY_MASK$1;
|
|
5446
|
-
this.hourMask = HOUR_MASK
|
|
5423
|
+
this.hourMask = HOUR_MASK;
|
|
5447
5424
|
this.floatLabel = 'auto';
|
|
5448
5425
|
this.compact = false;
|
|
5449
5426
|
this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
|
|
@@ -5800,7 +5777,7 @@
|
|
|
5800
5777
|
selector: 'mat-date-time-field',
|
|
5801
5778
|
template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput hidden type=\"text\"\n readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<!-- writable + time -->\n<ng-template #writable >\n <ion-grid class=\"ion-no-padding\">\n <ion-row class=\"ion-no-padding no-wrap\" nowrap>\n\n <!-- day -->\n <ion-col class=\"day ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && formControl.invalid\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dateFormControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker)\"\n (keyup.escape)=\"preventEvent($event)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [appAutofocus]=\"autofocus\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dateFormControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n <input matInput type=\"text\" [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button type=\"button\" mat-icon-button tabindex=\"-1\" matSuffix #datePickerButton2 (click)=\"openDatePicker($event, datePicker)\" [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clear()\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n </mat-form-field>\n <mat-datepicker #datePicker\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n [startAt]=\"startDate\"></mat-datepicker>\n <div class=\"mat-form-field-subscript mat-form-field-subscript-wrapper\" >\n <!-- errors -->\n <ng-container [ngSwitch]=\"formControl.touched && formControl.errors|mapKeys|arrayFirst\">\n <mat-error *ngSwitchCase=\"'required'\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngSwitchCase=\"'validDate'\" translate>ERROR.FIELD_NOT_VALID_DATE_TIME</mat-error>\n <mat-error *ngSwitchCase=\"'dateIsAfter'\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngSwitchCase=\"'dateRange'\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngSwitchCase=\"'dateMaxDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngSwitchCase=\"'dateMinDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngSwitchCase=\"'msg'\">{{(formControl.errors.msg?.key || formControl.errors.msg) | translate: formControl.errors.msg?.params}}</mat-error>\n </ng-container>\n <ng-content select=\"mat-error\"></ng-content>\n\n <!-- mat hint -->\n <div class=\"mat-form-field-hint-wrapper\" [class.cdk-visually-hidden]=\"formControl.invalid\">\n <div class=\"mat-form-field-hint-spacer\"></div>\n <ng-content select=\"mat-hint\"></ng-content>\n </div>\n </div>\n\n </ion-col>\n\n <!-- hour -->\n <ion-col class=\"hour ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && (timeFormControl.invalid || formControl.invalid)\">\n <mat-label *ngIf=\"placeholder && floatLabel != 'never'\" translate>COMMON.TIME</mat-label>\n <input matInput #matInput type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"timeFormControl\"\n autocomplete=\"off\"\n min=\"0\" max=\"23\"\n [textMask]=\"{mask: hourMask, keepCharPositions: true, placeholderChar: placeholderChar, guide: true}\"\n [placeholder]=\"'COMMON.TIME_PLACEHOLDER'|translate\"\n [required]=\"required\"\n (keyup.arrowdown)=\"openTimePicker($event)\"\n (keyup.escape)=\"preventEvent($event)\"\n (blur)=\"checkIfTouched()\"\n [tabindex]=\"tabindex !== undefined ? tabindex+1 : undefined\">\n\n <input matInput #matInput type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"timeFormControl\"\n (click)=\"openTimePickerIfMobile($event)\"\n readonly>\n\n <input matInput type=\"text\"\n [formControl]=\"timeFormControl\"\n hidden\n [ngxTimepicker]=\"timePicker\"\n [format]=\"24\">\n\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && !mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePicker($event)\" >\n <mat-icon>keyboard_arrow_down</mat-icon>\n </button>\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePickerIfMobile($event)\">\n <mat-icon>access_time</mat-icon>\n </button>\n\n <ngx-material-timepicker #timePicker [@.disabled]=\"true\"\n (timeSet)=\"onTimePickerChange($event)\"\n [ESC]=\"!mobile\"\n [defaultTime]=\"'00:00'\"\n [cancelBtnTmpl]=\"timePickerCancelButton\"\n [confirmBtnTmpl]=\"timePickerOkButton\"\n [preventOverlayClick]=\"mobile\"\n [enableKeyboardInput]=\"false\"\n [disableAnimation]=\"true\">\n <!-- cancel button -->\n <ng-template #timePickerCancelButton>\n <ion-button fill=\"clear\" color=\"dark\">\n <ion-label translate>COMMON.BTN_CANCEL</ion-label>\n </ion-button>\n </ng-template>\n\n <!-- confirm button -->\n <ng-template #timePickerOkButton>\n <ion-button fill=\"solid\" color=\"tertiary\">\n <ion-label translate>COMMON.BTN_VALIDATE</ion-label>\n </ion-button>\n </ng-template>\n\n </ngx-material-timepicker>\n </mat-form-field>\n </ion-col>\n </ion-row>\n </ion-grid>\n\n\n</ng-template>\n\n<ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n</ng-template>\n\n<ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n</ng-template>\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n",
|
|
5802
5779
|
providers: [
|
|
5803
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5780
|
+
DEFAULT_VALUE_ACCESSOR$1,
|
|
5804
5781
|
],
|
|
5805
5782
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5806
5783
|
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%}"]
|
|
@@ -5834,15 +5811,15 @@
|
|
|
5834
5811
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
5835
5812
|
};
|
|
5836
5813
|
|
|
5837
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5814
|
+
var DEFAULT_VALUE_ACCESSOR$2 = {
|
|
5838
5815
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5839
5816
|
useExisting: i0.forwardRef(function () { return MatDateShort; }),
|
|
5840
5817
|
multi: true
|
|
5841
5818
|
};
|
|
5842
|
-
var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
|
|
5819
|
+
var DAY_MASK$2 = [/\d/, /\d/, /\d/, /\d/];
|
|
5843
5820
|
var noop$4 = function () {
|
|
5844
5821
|
};
|
|
5845
|
-
var ɵ0$
|
|
5822
|
+
var ɵ0$5 = noop$4;
|
|
5846
5823
|
var MatDateShort = /** @class */ (function () {
|
|
5847
5824
|
function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5848
5825
|
this.dateAdapter = dateAdapter;
|
|
@@ -5855,7 +5832,7 @@
|
|
|
5855
5832
|
this._onTouchedCallback = noop$4;
|
|
5856
5833
|
this.writing = true;
|
|
5857
5834
|
this.disabling = false;
|
|
5858
|
-
this.dayMask = DAY_MASK;
|
|
5835
|
+
this.dayMask = DAY_MASK$2;
|
|
5859
5836
|
this.disabled = false;
|
|
5860
5837
|
this.floatLabel = 'auto';
|
|
5861
5838
|
this.readonly = false;
|
|
@@ -6132,7 +6109,7 @@
|
|
|
6132
6109
|
selector: 'mat-date-short-field',
|
|
6133
6110
|
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",
|
|
6134
6111
|
providers: [
|
|
6135
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6112
|
+
DEFAULT_VALUE_ACCESSOR$2,
|
|
6136
6113
|
],
|
|
6137
6114
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6138
6115
|
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%}"]
|
|
@@ -6203,16 +6180,16 @@
|
|
|
6203
6180
|
},] }
|
|
6204
6181
|
];
|
|
6205
6182
|
|
|
6206
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6183
|
+
var DEFAULT_VALUE_ACCESSOR$3 = {
|
|
6207
6184
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6208
6185
|
useExisting: i0.forwardRef(function () { return MatDuration; }),
|
|
6209
6186
|
multi: true
|
|
6210
6187
|
};
|
|
6211
6188
|
var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
|
|
6212
|
-
var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
6213
|
-
var noop$
|
|
6189
|
+
var HOUR_MASK$1 = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
6190
|
+
var noop$5 = function () {
|
|
6214
6191
|
};
|
|
6215
|
-
var ɵ0$6 = noop$
|
|
6192
|
+
var ɵ0$6 = noop$5;
|
|
6216
6193
|
var MatDuration = /** @class */ (function () {
|
|
6217
6194
|
function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
|
|
6218
6195
|
this.dateAdapter = dateAdapter;
|
|
@@ -6221,11 +6198,11 @@
|
|
|
6221
6198
|
this.cd = cd;
|
|
6222
6199
|
this.formGroupDir = formGroupDir;
|
|
6223
6200
|
this._subscription = new rxjs.Subscription();
|
|
6224
|
-
this._onChangeCallback = noop$
|
|
6225
|
-
this._onTouchedCallback = noop$
|
|
6201
|
+
this._onChangeCallback = noop$5;
|
|
6202
|
+
this._onTouchedCallback = noop$5;
|
|
6226
6203
|
this.writing = true;
|
|
6227
6204
|
this.disabling = false;
|
|
6228
|
-
this.hourMask = HOUR_MASK;
|
|
6205
|
+
this.hourMask = HOUR_MASK$1;
|
|
6229
6206
|
this.disabled = false;
|
|
6230
6207
|
this.floatLabel = 'auto';
|
|
6231
6208
|
this.readonly = false;
|
|
@@ -6418,7 +6395,7 @@
|
|
|
6418
6395
|
selector: 'mat-duration-field',
|
|
6419
6396
|
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",
|
|
6420
6397
|
providers: [
|
|
6421
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6398
|
+
DEFAULT_VALUE_ACCESSOR$3,
|
|
6422
6399
|
],
|
|
6423
6400
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6424
6401
|
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%}"]
|
|
@@ -6478,22 +6455,22 @@
|
|
|
6478
6455
|
},] }
|
|
6479
6456
|
];
|
|
6480
6457
|
|
|
6481
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6458
|
+
var DEFAULT_VALUE_ACCESSOR$4 = {
|
|
6482
6459
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6483
6460
|
useExisting: i0.forwardRef(function () { return MatBooleanField; }),
|
|
6484
6461
|
multi: true
|
|
6485
6462
|
};
|
|
6486
|
-
var noop$
|
|
6463
|
+
var noop$6 = function () {
|
|
6487
6464
|
};
|
|
6488
|
-
var ɵ0$
|
|
6465
|
+
var ɵ0$7 = noop$6;
|
|
6489
6466
|
var MatBooleanField = /** @class */ (function () {
|
|
6490
6467
|
function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
|
|
6491
6468
|
this.translate = translate;
|
|
6492
6469
|
this.formBuilder = formBuilder;
|
|
6493
6470
|
this.cd = cd;
|
|
6494
6471
|
this.formGroupDir = formGroupDir;
|
|
6495
|
-
this._onChangeCallback = noop$
|
|
6496
|
-
this._onTouchedCallback = noop$
|
|
6472
|
+
this._onChangeCallback = noop$6;
|
|
6473
|
+
this._onTouchedCallback = noop$6;
|
|
6497
6474
|
this._writing = false;
|
|
6498
6475
|
this.showRadio = false;
|
|
6499
6476
|
this.disabled = false;
|
|
@@ -6668,7 +6645,7 @@
|
|
|
6668
6645
|
selector: 'mat-boolean-field',
|
|
6669
6646
|
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",
|
|
6670
6647
|
providers: [
|
|
6671
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6648
|
+
DEFAULT_VALUE_ACCESSOR$4
|
|
6672
6649
|
],
|
|
6673
6650
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6674
6651
|
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}"]
|
|
@@ -6755,7 +6732,6 @@
|
|
|
6755
6732
|
return MatNumpadEvent;
|
|
6756
6733
|
}(KeyboardEvent));
|
|
6757
6734
|
|
|
6758
|
-
exports.AnimationState = void 0;
|
|
6759
6735
|
(function (AnimationState) {
|
|
6760
6736
|
AnimationState["ENTER"] = "enter";
|
|
6761
6737
|
AnimationState["ENTER_INPUT"] = "enter-input";
|
|
@@ -6923,7 +6899,7 @@
|
|
|
6923
6899
|
};
|
|
6924
6900
|
return MatNumpadDomService;
|
|
6925
6901
|
}());
|
|
6926
|
-
MatNumpadDomService.ɵprov =
|
|
6902
|
+
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" });
|
|
6927
6903
|
MatNumpadDomService.decorators = [
|
|
6928
6904
|
{ type: i0.Injectable, args: [{
|
|
6929
6905
|
providedIn: 'root'
|
|
@@ -7329,7 +7305,7 @@
|
|
|
7329
7305
|
},] }
|
|
7330
7306
|
];
|
|
7331
7307
|
|
|
7332
|
-
var DEFAULT_VALUE_ACCESSOR = {
|
|
7308
|
+
var DEFAULT_VALUE_ACCESSOR$5 = {
|
|
7333
7309
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
7334
7310
|
useExisting: i0.forwardRef(function () { return MatSwipeField; }),
|
|
7335
7311
|
multi: true
|
|
@@ -7649,7 +7625,7 @@
|
|
|
7649
7625
|
{ type: i0.Component, args: [{
|
|
7650
7626
|
selector: 'mat-swipe-field',
|
|
7651
7627
|
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",
|
|
7652
|
-
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
7628
|
+
providers: [DEFAULT_VALUE_ACCESSOR$5],
|
|
7653
7629
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7654
7630
|
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}"]
|
|
7655
7631
|
},] }
|
|
@@ -7710,14 +7686,14 @@
|
|
|
7710
7686
|
},] }
|
|
7711
7687
|
];
|
|
7712
7688
|
|
|
7713
|
-
var noop$
|
|
7714
|
-
var ɵ0$
|
|
7689
|
+
var noop$7 = function () { };
|
|
7690
|
+
var ɵ0$8 = noop$7;
|
|
7715
7691
|
var MatChipsField = /** @class */ (function () {
|
|
7716
7692
|
function MatChipsField(cd, formGroupDir) {
|
|
7717
7693
|
this.cd = cd;
|
|
7718
7694
|
this.formGroupDir = formGroupDir;
|
|
7719
|
-
this._onChangeCallback = noop$
|
|
7720
|
-
this._onTouchedCallback = noop$
|
|
7695
|
+
this._onChangeCallback = noop$7;
|
|
7696
|
+
this._onTouchedCallback = noop$7;
|
|
7721
7697
|
this.logPrefix = '[mat-chips] ';
|
|
7722
7698
|
this.formControlName = null;
|
|
7723
7699
|
this.required = false;
|
|
@@ -8685,7 +8661,7 @@
|
|
|
8685
8661
|
};
|
|
8686
8662
|
return ProgressBarService;
|
|
8687
8663
|
}());
|
|
8688
|
-
ProgressBarService.ɵprov =
|
|
8664
|
+
ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
|
|
8689
8665
|
ProgressBarService.decorators = [
|
|
8690
8666
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8691
8667
|
];
|
|
@@ -8732,7 +8708,7 @@
|
|
|
8732
8708
|
};
|
|
8733
8709
|
return AppGestureConfig;
|
|
8734
8710
|
}(i1$6.HammerGestureConfig));
|
|
8735
|
-
AppGestureConfig.ɵprov =
|
|
8711
|
+
AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
|
|
8736
8712
|
AppGestureConfig.decorators = [
|
|
8737
8713
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8738
8714
|
];
|
|
@@ -8999,7 +8975,7 @@
|
|
|
8999
8975
|
};
|
|
9000
8976
|
return MatPaginatorI18n;
|
|
9001
8977
|
}(paginator.MatPaginatorIntl));
|
|
9002
|
-
MatPaginatorI18n.ɵprov =
|
|
8978
|
+
MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
|
|
9003
8979
|
MatPaginatorI18n.decorators = [
|
|
9004
8980
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9005
8981
|
];
|
|
@@ -9091,17 +9067,17 @@
|
|
|
9091
9067
|
return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
|
|
9092
9068
|
}
|
|
9093
9069
|
|
|
9094
|
-
var noop = function () {
|
|
9070
|
+
var noop$8 = function () {
|
|
9095
9071
|
};
|
|
9096
|
-
var ɵ0$
|
|
9072
|
+
var ɵ0$9 = noop$8;
|
|
9097
9073
|
var AppFormField = /** @class */ (function () {
|
|
9098
9074
|
function AppFormField(translate, cd, injector, formGroupDir) {
|
|
9099
9075
|
this.translate = translate;
|
|
9100
9076
|
this.cd = cd;
|
|
9101
9077
|
this.injector = injector;
|
|
9102
9078
|
this.formGroupDir = formGroupDir;
|
|
9103
|
-
this._onChangeCallback = noop;
|
|
9104
|
-
this._onTouchedCallback = noop;
|
|
9079
|
+
this._onChangeCallback = noop$8;
|
|
9080
|
+
this._onTouchedCallback = noop$8;
|
|
9105
9081
|
this.readonly = false;
|
|
9106
9082
|
this.compact = false;
|
|
9107
9083
|
this.floatLabel = 'auto';
|
|
@@ -9659,7 +9635,7 @@
|
|
|
9659
9635
|
};
|
|
9660
9636
|
return AudioProvider;
|
|
9661
9637
|
}(StartableService));
|
|
9662
|
-
AudioProvider.ɵprov =
|
|
9638
|
+
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" });
|
|
9663
9639
|
AudioProvider.decorators = [
|
|
9664
9640
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9665
9641
|
];
|
|
@@ -9759,7 +9735,7 @@
|
|
|
9759
9735
|
};
|
|
9760
9736
|
return Hotkeys;
|
|
9761
9737
|
}());
|
|
9762
|
-
Hotkeys.ɵprov =
|
|
9738
|
+
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" });
|
|
9763
9739
|
Hotkeys.decorators = [
|
|
9764
9740
|
{ type: i0.Injectable, args: [{
|
|
9765
9741
|
providedIn: 'root'
|
|
@@ -9963,7 +9939,7 @@
|
|
|
9963
9939
|
return Base64ImageReader;
|
|
9964
9940
|
}());
|
|
9965
9941
|
|
|
9966
|
-
var uuidv4
|
|
9942
|
+
var uuidv4 = uuidv4Imported__namespace;
|
|
9967
9943
|
var FileService = /** @class */ (function () {
|
|
9968
9944
|
function FileService(platform,
|
|
9969
9945
|
//private transfer: FileTransfer,
|
|
@@ -10009,7 +9985,7 @@
|
|
|
10009
9985
|
lastSlashIndex = source.lastIndexOf('/');
|
|
10010
9986
|
if (lastSlashIndex === -1)
|
|
10011
9987
|
throw new Error('Invalid URL: ' + source);
|
|
10012
|
-
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4
|
|
9988
|
+
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
|
|
10013
9989
|
if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
|
|
10014
9990
|
console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
|
|
10015
9991
|
targetFilePath = this._imageDirectory + fileName;
|
|
@@ -10072,7 +10048,7 @@
|
|
|
10072
10048
|
};
|
|
10073
10049
|
return FileService;
|
|
10074
10050
|
}());
|
|
10075
|
-
FileService.ɵprov =
|
|
10051
|
+
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" });
|
|
10076
10052
|
FileService.decorators = [
|
|
10077
10053
|
{ type: i0.Injectable, args: [{
|
|
10078
10054
|
providedIn: 'root',
|
|
@@ -10239,7 +10215,7 @@
|
|
|
10239
10215
|
Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
10240
10216
|
|
|
10241
10217
|
var scrypt = require('scrypt-async');
|
|
10242
|
-
var sha256
|
|
10218
|
+
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
10243
10219
|
var sha512 = require('hash.js/lib/hash/sha/512');
|
|
10244
10220
|
var nacl = {
|
|
10245
10221
|
sign: tweetnacl.sign,
|
|
@@ -10345,7 +10321,7 @@
|
|
|
10345
10321
|
* Hash (using SHA256) a message
|
|
10346
10322
|
*/
|
|
10347
10323
|
CryptoService.prototype.sha256 = function (message) {
|
|
10348
|
-
return sha256
|
|
10324
|
+
return sha256().update(message).digest('hex');
|
|
10349
10325
|
};
|
|
10350
10326
|
/**
|
|
10351
10327
|
* Hash (using SHA512) a message
|
|
@@ -10359,7 +10335,7 @@
|
|
|
10359
10335
|
};
|
|
10360
10336
|
return CryptoService;
|
|
10361
10337
|
}());
|
|
10362
|
-
CryptoService.ɵprov =
|
|
10338
|
+
CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
|
|
10363
10339
|
CryptoService.decorators = [
|
|
10364
10340
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
10365
10341
|
];
|
|
@@ -10416,6 +10392,10 @@
|
|
|
10416
10392
|
function EntityUtils() {
|
|
10417
10393
|
}
|
|
10418
10394
|
// Check that the object has a NOT nil attribute (ID by default)
|
|
10395
|
+
EntityUtils.isEntity = function (obj) {
|
|
10396
|
+
return isNotNil(obj.__typename) && (typeof obj.fromObject === 'function') && (typeof obj.asObject === 'function');
|
|
10397
|
+
};
|
|
10398
|
+
// Check that the object has a NOT nil attribute (ID by default)
|
|
10419
10399
|
EntityUtils.isNotEmpty = function (obj, checkedAttribute) {
|
|
10420
10400
|
return !!obj && obj[checkedAttribute] !== null && obj[checkedAttribute] !== undefined;
|
|
10421
10401
|
};
|
|
@@ -11793,7 +11773,7 @@
|
|
|
11793
11773
|
};
|
|
11794
11774
|
return LocalSettingsService;
|
|
11795
11775
|
}(StartableService));
|
|
11796
|
-
LocalSettingsService.ɵprov =
|
|
11776
|
+
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" });
|
|
11797
11777
|
LocalSettingsService.decorators = [
|
|
11798
11778
|
{ type: i0.Injectable, args: [{
|
|
11799
11779
|
providedIn: 'root',
|
|
@@ -12596,7 +12576,7 @@
|
|
|
12596
12576
|
};
|
|
12597
12577
|
return NetworkService;
|
|
12598
12578
|
}(StartableService));
|
|
12599
|
-
NetworkService.ɵprov =
|
|
12579
|
+
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" });
|
|
12600
12580
|
NetworkService.decorators = [
|
|
12601
12581
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
12602
12582
|
];
|
|
@@ -12616,7 +12596,7 @@
|
|
|
12616
12596
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
|
|
12617
12597
|
]; };
|
|
12618
12598
|
|
|
12619
|
-
var ErrorCodes
|
|
12599
|
+
var ErrorCodes = {
|
|
12620
12600
|
UNKNOWN_ERROR: 0,
|
|
12621
12601
|
LOAD_ACCOUNT_ERROR: 1,
|
|
12622
12602
|
BAD_PASSWORD: 2,
|
|
@@ -13033,7 +13013,7 @@
|
|
|
13033
13013
|
case 13:
|
|
13034
13014
|
err_1 = _b.sent();
|
|
13035
13015
|
console.error(err_1);
|
|
13036
|
-
throw { code: ErrorCodes
|
|
13016
|
+
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
13037
13017
|
case 14:
|
|
13038
13018
|
// Emit update event
|
|
13039
13019
|
if (!opts || opts.emitEvent !== false) {
|
|
@@ -13810,7 +13790,7 @@
|
|
|
13810
13790
|
}(StartableService));
|
|
13811
13791
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
13812
13792
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
13813
|
-
EntitiesStorage.ɵprov =
|
|
13793
|
+
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" });
|
|
13814
13794
|
EntitiesStorage.decorators = [
|
|
13815
13795
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
13816
13796
|
];
|
|
@@ -13966,10 +13946,10 @@
|
|
|
13966
13946
|
function referentialsToString(values, properties, separator) {
|
|
13967
13947
|
return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
|
|
13968
13948
|
}
|
|
13969
|
-
var ɵ0$
|
|
13949
|
+
var ɵ0$a = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
13970
13950
|
var StatusList = Object.freeze([
|
|
13971
13951
|
{
|
|
13972
|
-
id: ɵ0$
|
|
13952
|
+
id: ɵ0$a,
|
|
13973
13953
|
icon: 'checkmark',
|
|
13974
13954
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
13975
13955
|
},
|
|
@@ -14272,7 +14252,7 @@
|
|
|
14272
14252
|
(data.lastName || '')) || '';
|
|
14273
14253
|
}
|
|
14274
14254
|
|
|
14275
|
-
var uuidv4 = uuidv4Imported__namespace;
|
|
14255
|
+
var uuidv4$1 = uuidv4Imported__namespace;
|
|
14276
14256
|
var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
14277
14257
|
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
14278
14258
|
/**
|
|
@@ -14316,7 +14296,7 @@
|
|
|
14316
14296
|
// Skip if not tracked
|
|
14317
14297
|
if (!context || !context.tracked)
|
|
14318
14298
|
return forward(operation);
|
|
14319
|
-
var id = context.serializationKey || uuidv4();
|
|
14299
|
+
var id = context.serializationKey || uuidv4$1();
|
|
14320
14300
|
console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
|
|
14321
14301
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
14322
14302
|
var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -14947,14 +14927,14 @@
|
|
|
14947
14927
|
mutationLinks = void 0;
|
|
14948
14928
|
// Add queue to store tracked queries, when offline
|
|
14949
14929
|
if (enableTrackMutationQueries) {
|
|
14950
|
-
serializingLink = new SerializingLink__default[
|
|
14930
|
+
serializingLink = new SerializingLink__default['default']();
|
|
14951
14931
|
trackerLink = createTrackerLink({
|
|
14952
14932
|
storage: storage,
|
|
14953
14933
|
onNetworkStatusChange: this._networkStatusChanged$,
|
|
14954
14934
|
debounce: 1000,
|
|
14955
14935
|
debug: true
|
|
14956
14936
|
});
|
|
14957
|
-
queueLink_1 = new QueueLink__default[
|
|
14937
|
+
queueLink_1 = new QueueLink__default['default']();
|
|
14958
14938
|
this.registerSubscription(this._networkStatusChanged$
|
|
14959
14939
|
.subscribe(function (type) {
|
|
14960
14940
|
// Network is offline: start buffering into queue
|
|
@@ -14969,7 +14949,7 @@
|
|
|
14969
14949
|
}
|
|
14970
14950
|
}));
|
|
14971
14951
|
mutationLinks = [
|
|
14972
|
-
loggerLink__default[
|
|
14952
|
+
loggerLink__default['default'],
|
|
14973
14953
|
queueLink_1,
|
|
14974
14954
|
trackerLink,
|
|
14975
14955
|
queueLink_1,
|
|
@@ -15076,7 +15056,7 @@
|
|
|
15076
15056
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
15077
15057
|
|| this.toAppError(err.networkError)
|
|
15078
15058
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
15079
|
-
|| this.createAppErrorByCode(ErrorCodes
|
|
15059
|
+
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
15080
15060
|
// If graphQL: try to convert the first error found
|
|
15081
15061
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
15082
15062
|
|| this.toAppError(err)
|
|
@@ -15084,7 +15064,7 @@
|
|
|
15084
15064
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
15085
15065
|
|| err;
|
|
15086
15066
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
15087
|
-
if (error && error.code === ErrorCodes
|
|
15067
|
+
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
15088
15068
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
15089
15069
|
this.onNetworkError.next(error);
|
|
15090
15070
|
}
|
|
@@ -15120,7 +15100,7 @@
|
|
|
15120
15100
|
return 'ERROR.UNAUTHORIZED';
|
|
15121
15101
|
case ServerErrorCodes.FORBIDDEN:
|
|
15122
15102
|
return 'ERROR.FORBIDDEN';
|
|
15123
|
-
case ErrorCodes
|
|
15103
|
+
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
15124
15104
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
15125
15105
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
15126
15106
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -15152,7 +15132,7 @@
|
|
|
15152
15132
|
};
|
|
15153
15133
|
return GraphqlService;
|
|
15154
15134
|
}(StartableService));
|
|
15155
|
-
GraphqlService.ɵprov =
|
|
15135
|
+
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" });
|
|
15156
15136
|
GraphqlService.decorators = [
|
|
15157
15137
|
{ type: i0.Injectable, args: [{
|
|
15158
15138
|
providedIn: 'root'
|
|
@@ -15169,7 +15149,7 @@
|
|
|
15169
15149
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
15170
15150
|
]; };
|
|
15171
15151
|
|
|
15172
|
-
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
15152
|
+
var sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
15173
15153
|
var BaseGraphqlServiceOptions = /** @class */ (function () {
|
|
15174
15154
|
function BaseGraphqlServiceOptions() {
|
|
15175
15155
|
}
|
|
@@ -15339,8 +15319,8 @@
|
|
|
15339
15319
|
};
|
|
15340
15320
|
/* -- protected methods -- */
|
|
15341
15321
|
BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
|
|
15342
|
-
var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
15343
|
-
var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
15322
|
+
var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
15323
|
+
var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
15344
15324
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
15345
15325
|
};
|
|
15346
15326
|
BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
|
|
@@ -15409,19 +15389,19 @@
|
|
|
15409
15389
|
/* ------------------------------------
|
|
15410
15390
|
* GraphQL queries
|
|
15411
15391
|
* ------------------------------------*/
|
|
15412
|
-
var Fragments
|
|
15413
|
-
account: core.gql(templateObject_1
|
|
15414
|
-
settings: core.gql(templateObject_2
|
|
15392
|
+
var Fragments = {
|
|
15393
|
+
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 }"]))),
|
|
15394
|
+
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 }"])))
|
|
15415
15395
|
};
|
|
15416
15396
|
// Load account query
|
|
15417
|
-
var LoadQuery
|
|
15397
|
+
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);
|
|
15418
15398
|
// Check email query
|
|
15419
|
-
var IsEmailExistsQuery = core.gql(templateObject_4
|
|
15399
|
+
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"])));
|
|
15420
15400
|
// Save (create or update) account mutation
|
|
15421
15401
|
var AccountMutations = {
|
|
15422
|
-
save: core.gql(templateObject_5
|
|
15423
|
-
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
|
|
15424
|
-
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
|
|
15402
|
+
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),
|
|
15403
|
+
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),
|
|
15404
|
+
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)
|
|
15425
15405
|
};
|
|
15426
15406
|
// Sent confirmation email
|
|
15427
15407
|
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"])));
|
|
@@ -15791,7 +15771,7 @@
|
|
|
15791
15771
|
error_3 = _b.sent();
|
|
15792
15772
|
console.error(error_3);
|
|
15793
15773
|
this.resetData();
|
|
15794
|
-
throw { code: ErrorCodes
|
|
15774
|
+
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
15795
15775
|
case 4:
|
|
15796
15776
|
// Store pubkey+keypair
|
|
15797
15777
|
this._cache.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -15827,7 +15807,7 @@
|
|
|
15827
15807
|
return [3 /*break*/, 18];
|
|
15828
15808
|
case 11:
|
|
15829
15809
|
err_1 = _b.sent();
|
|
15830
|
-
if (!(err_1 && +(err_1.code) === ErrorCodes
|
|
15810
|
+
if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
15831
15811
|
if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
|
|
15832
15812
|
isEmailExists = void 0;
|
|
15833
15813
|
_b.label = 12;
|
|
@@ -15843,12 +15823,12 @@
|
|
|
15843
15823
|
case 15:
|
|
15844
15824
|
// Email not exists (no account)
|
|
15845
15825
|
if (!isEmailExists) {
|
|
15846
|
-
throw { code: ErrorCodes
|
|
15826
|
+
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
15847
15827
|
}
|
|
15848
15828
|
_b.label = 16;
|
|
15849
15829
|
case 16:
|
|
15850
15830
|
// Email exists, so error = 'bad password'
|
|
15851
|
-
throw { code: ErrorCodes
|
|
15831
|
+
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
15852
15832
|
case 17: throw err_1; // resend the first error
|
|
15853
15833
|
case 18:
|
|
15854
15834
|
_b.trys.push([18, 20, , 21]);
|
|
@@ -16044,8 +16024,8 @@
|
|
|
16044
16024
|
_b.label = 3;
|
|
16045
16025
|
case 3: return [3 /*break*/, 6];
|
|
16046
16026
|
case 4: return [4 /*yield*/, this.graphql.query({
|
|
16047
|
-
query: LoadQuery
|
|
16048
|
-
error: { code: ErrorCodes
|
|
16027
|
+
query: LoadQuery,
|
|
16028
|
+
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
16049
16029
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
16050
16030
|
})];
|
|
16051
16031
|
case 5:
|
|
@@ -16083,7 +16063,7 @@
|
|
|
16083
16063
|
case 1:
|
|
16084
16064
|
isEmailExists = _b.sent();
|
|
16085
16065
|
if (isEmailExists) {
|
|
16086
|
-
throw { code: ErrorCodes
|
|
16066
|
+
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
16087
16067
|
}
|
|
16088
16068
|
return [2 /*return*/];
|
|
16089
16069
|
}
|
|
@@ -16133,7 +16113,7 @@
|
|
|
16133
16113
|
locale: locale
|
|
16134
16114
|
},
|
|
16135
16115
|
error: {
|
|
16136
|
-
code: ErrorCodes
|
|
16116
|
+
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
16137
16117
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
16138
16118
|
}
|
|
16139
16119
|
})];
|
|
@@ -16156,7 +16136,7 @@
|
|
|
16156
16136
|
code: code
|
|
16157
16137
|
},
|
|
16158
16138
|
error: {
|
|
16159
|
-
code: ErrorCodes
|
|
16139
|
+
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
16160
16140
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
16161
16141
|
}
|
|
16162
16142
|
})];
|
|
@@ -16256,7 +16236,7 @@
|
|
|
16256
16236
|
throw error_7;
|
|
16257
16237
|
console.error(error_7);
|
|
16258
16238
|
throw {
|
|
16259
|
-
code: ErrorCodes
|
|
16239
|
+
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
16260
16240
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
16261
16241
|
};
|
|
16262
16242
|
case 6: return [2 /*return*/];
|
|
@@ -16467,7 +16447,7 @@
|
|
|
16467
16447
|
case 1:
|
|
16468
16448
|
existingAccount = _b.sent();
|
|
16469
16449
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
16470
|
-
throw { code: ErrorCodes
|
|
16450
|
+
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
16471
16451
|
}
|
|
16472
16452
|
this.copyIdAndUpdateDate(existingAccount, account);
|
|
16473
16453
|
_b.label = 2;
|
|
@@ -16479,7 +16459,7 @@
|
|
|
16479
16459
|
mutation: isNew ? AccountMutations.create : AccountMutations.save,
|
|
16480
16460
|
variables: { data: json },
|
|
16481
16461
|
error: {
|
|
16482
|
-
code: ErrorCodes
|
|
16462
|
+
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
16483
16463
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
16484
16464
|
}
|
|
16485
16465
|
})];
|
|
@@ -16513,7 +16493,7 @@
|
|
|
16513
16493
|
mutation: AccountMutations.saveSettings,
|
|
16514
16494
|
variables: { data: json },
|
|
16515
16495
|
error: {
|
|
16516
|
-
code: ErrorCodes
|
|
16496
|
+
code: ErrorCodes.SAVE_SETTINGS_ERROR,
|
|
16517
16497
|
message: 'ERROR.SAVE_SETTINGS_ERROR'
|
|
16518
16498
|
}
|
|
16519
16499
|
})];
|
|
@@ -16544,7 +16524,7 @@
|
|
|
16544
16524
|
if (counter > 4) {
|
|
16545
16525
|
if (this._debug)
|
|
16546
16526
|
console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
|
|
16547
|
-
throw { code: ErrorCodes
|
|
16527
|
+
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
16548
16528
|
}
|
|
16549
16529
|
if (!token) return [3 /*break*/, 2];
|
|
16550
16530
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -16553,7 +16533,7 @@
|
|
|
16553
16533
|
token: token
|
|
16554
16534
|
},
|
|
16555
16535
|
error: {
|
|
16556
|
-
code: ErrorCodes
|
|
16536
|
+
code: ErrorCodes.UNAUTHORIZED,
|
|
16557
16537
|
message: 'ERROR.UNAUTHORIZED'
|
|
16558
16538
|
},
|
|
16559
16539
|
fetchPolicy: 'no-cache'
|
|
@@ -16570,7 +16550,7 @@
|
|
|
16570
16550
|
_b.label = 2;
|
|
16571
16551
|
case 2:
|
|
16572
16552
|
challengeError = {
|
|
16573
|
-
code: ErrorCodes
|
|
16553
|
+
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
16574
16554
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
16575
16555
|
};
|
|
16576
16556
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -16657,7 +16637,7 @@
|
|
|
16657
16637
|
query: AccountSubscriptions.listenChanges,
|
|
16658
16638
|
variables: variables,
|
|
16659
16639
|
error: {
|
|
16660
|
-
code: ErrorCodes
|
|
16640
|
+
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
16661
16641
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ERROR'
|
|
16662
16642
|
}
|
|
16663
16643
|
}).pipe(operators.map(function (_b) {
|
|
@@ -16690,7 +16670,7 @@
|
|
|
16690
16670
|
};
|
|
16691
16671
|
return AccountService;
|
|
16692
16672
|
}(BaseGraphqlService));
|
|
16693
|
-
AccountService.ɵprov =
|
|
16673
|
+
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" });
|
|
16694
16674
|
AccountService.decorators = [
|
|
16695
16675
|
{ type: i0.Injectable, args: [{ providedIn: 'root', deps: [ENVIRONMENT] },] }
|
|
16696
16676
|
];
|
|
@@ -16705,7 +16685,7 @@
|
|
|
16705
16685
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] },
|
|
16706
16686
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
16707
16687
|
]; };
|
|
16708
|
-
var templateObject_1
|
|
16688
|
+
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;
|
|
16709
16689
|
|
|
16710
16690
|
var Software_1, Configuration_1;
|
|
16711
16691
|
// @dynamic
|
|
@@ -16957,13 +16937,13 @@
|
|
|
16957
16937
|
/* ------------------------------------
|
|
16958
16938
|
* GraphQL queries
|
|
16959
16939
|
* ------------------------------------*/
|
|
16960
|
-
var Fragments = {
|
|
16961
|
-
config: core.gql(templateObject_1$
|
|
16940
|
+
var Fragments$1 = {
|
|
16941
|
+
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 "])))
|
|
16962
16942
|
};
|
|
16963
|
-
var LoadQuery = core.gql(templateObject_2$
|
|
16943
|
+
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);
|
|
16964
16944
|
// Save (create or update) account mutation
|
|
16965
|
-
var SaveMutation = core.gql(templateObject_3$
|
|
16966
|
-
var ClearCache = core.gql(templateObject_4$
|
|
16945
|
+
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);
|
|
16946
|
+
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"])));
|
|
16967
16947
|
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"])));
|
|
16968
16948
|
var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
|
|
16969
16949
|
var ConfigService = /** @class */ (function (_super) {
|
|
@@ -17023,12 +17003,12 @@
|
|
|
17023
17003
|
case 0:
|
|
17024
17004
|
now = Date.now();
|
|
17025
17005
|
console.debug('[config] Loading Pod configuration...');
|
|
17026
|
-
query = opts && opts.query || LoadQuery;
|
|
17006
|
+
query = opts && opts.query || LoadQuery$1;
|
|
17027
17007
|
variables = opts && opts.variables || undefined;
|
|
17028
17008
|
return [4 /*yield*/, this.graphql.query({
|
|
17029
17009
|
query: query,
|
|
17030
17010
|
variables: variables,
|
|
17031
|
-
error: { code: ErrorCodes
|
|
17011
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17032
17012
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
17033
17013
|
})];
|
|
17034
17014
|
case 1:
|
|
@@ -17070,7 +17050,7 @@
|
|
|
17070
17050
|
data: json
|
|
17071
17051
|
},
|
|
17072
17052
|
error: {
|
|
17073
|
-
code: ErrorCodes
|
|
17053
|
+
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
17074
17054
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
17075
17055
|
}
|
|
17076
17056
|
})];
|
|
@@ -17105,7 +17085,7 @@
|
|
|
17105
17085
|
return [4 /*yield*/, this.graphql.query({
|
|
17106
17086
|
query: CacheStatistics,
|
|
17107
17087
|
variables: null,
|
|
17108
|
-
error: { code: ErrorCodes
|
|
17088
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17109
17089
|
fetchPolicy: 'network-only'
|
|
17110
17090
|
})];
|
|
17111
17091
|
case 1:
|
|
@@ -17129,7 +17109,7 @@
|
|
|
17129
17109
|
return [4 /*yield*/, this.graphql.query({
|
|
17130
17110
|
query: ClearCache,
|
|
17131
17111
|
variables: variables,
|
|
17132
|
-
error: { code: ErrorCodes
|
|
17112
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17133
17113
|
fetchPolicy: 'network-only'
|
|
17134
17114
|
})];
|
|
17135
17115
|
case 1:
|
|
@@ -17329,7 +17309,7 @@
|
|
|
17329
17309
|
};
|
|
17330
17310
|
return ConfigService;
|
|
17331
17311
|
}(BaseGraphqlService));
|
|
17332
|
-
ConfigService.ɵprov =
|
|
17312
|
+
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" });
|
|
17333
17313
|
ConfigService.decorators = [
|
|
17334
17314
|
{ type: i0.Injectable, args: [{
|
|
17335
17315
|
providedIn: 'root',
|
|
@@ -17348,9 +17328,9 @@
|
|
|
17348
17328
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
17349
17329
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
17350
17330
|
]; };
|
|
17351
|
-
var templateObject_1$
|
|
17331
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
|
|
17352
17332
|
|
|
17353
|
-
var moment$
|
|
17333
|
+
var moment$4 = momentImported__namespace;
|
|
17354
17334
|
var PlatformService = /** @class */ (function (_super) {
|
|
17355
17335
|
__extends(PlatformService, _super);
|
|
17356
17336
|
function PlatformService(platform, cdkPlatform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser, downloader) {
|
|
@@ -17592,16 +17572,16 @@
|
|
|
17592
17572
|
}
|
|
17593
17573
|
// config moment lib
|
|
17594
17574
|
try {
|
|
17595
|
-
moment$
|
|
17575
|
+
moment$4.locale(event.lang);
|
|
17596
17576
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
17597
17577
|
}
|
|
17598
17578
|
// If error, fallback to en
|
|
17599
17579
|
catch (err) {
|
|
17600
|
-
moment$
|
|
17580
|
+
moment$4.locale('en');
|
|
17601
17581
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
17602
17582
|
}
|
|
17603
17583
|
// Config date adapter
|
|
17604
|
-
_this.dateAdapter.setLocale(moment$
|
|
17584
|
+
_this.dateAdapter.setLocale(moment$4.locale());
|
|
17605
17585
|
}
|
|
17606
17586
|
});
|
|
17607
17587
|
this.settings.onChange.subscribe(function (data) {
|
|
@@ -17781,7 +17761,7 @@
|
|
|
17781
17761
|
};
|
|
17782
17762
|
return PlatformService;
|
|
17783
17763
|
}(StartableService));
|
|
17784
|
-
PlatformService.ɵprov =
|
|
17764
|
+
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" });
|
|
17785
17765
|
PlatformService.decorators = [
|
|
17786
17766
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
17787
17767
|
];
|
|
@@ -17879,7 +17859,7 @@
|
|
|
17879
17859
|
};
|
|
17880
17860
|
return MatStepperI18n;
|
|
17881
17861
|
}(stepper.MatStepperIntl));
|
|
17882
|
-
MatStepperI18n.ɵprov =
|
|
17862
|
+
MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
17883
17863
|
MatStepperI18n.decorators = [
|
|
17884
17864
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
17885
17865
|
];
|
|
@@ -19081,7 +19061,7 @@
|
|
|
19081
19061
|
return 1;
|
|
19082
19062
|
}
|
|
19083
19063
|
}
|
|
19084
|
-
var ɵ0$
|
|
19064
|
+
var ɵ0$b = function (defaultStateSize) { return [
|
|
19085
19065
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
19086
19066
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
19087
19067
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -19089,7 +19069,7 @@
|
|
|
19089
19069
|
var SCALE_OPTIONS_DEFAULT = {
|
|
19090
19070
|
startColor: rgbArrayMap.red,
|
|
19091
19071
|
startStates: [0, 2, 3],
|
|
19092
|
-
startStepsFn: ɵ0$
|
|
19072
|
+
startStepsFn: ɵ0$b
|
|
19093
19073
|
};
|
|
19094
19074
|
/**
|
|
19095
19075
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -19181,24 +19161,24 @@
|
|
|
19181
19161
|
return result;
|
|
19182
19162
|
}
|
|
19183
19163
|
|
|
19184
|
-
var EntityTestClass
|
|
19164
|
+
var EntityTestClass = /** @class */ (function () {
|
|
19185
19165
|
function EntityTestClass() {
|
|
19186
19166
|
}
|
|
19187
19167
|
return EntityTestClass;
|
|
19188
19168
|
}());
|
|
19189
|
-
var FAKE_ENTITIES
|
|
19169
|
+
var FAKE_ENTITIES = [
|
|
19190
19170
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
19191
19171
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
19192
19172
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
19193
19173
|
];
|
|
19194
|
-
function deepCopy
|
|
19174
|
+
function deepCopy(values, size) {
|
|
19195
19175
|
if (isNil(size)) {
|
|
19196
|
-
return (values || FAKE_ENTITIES
|
|
19176
|
+
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
19197
19177
|
}
|
|
19198
19178
|
var result = [];
|
|
19199
19179
|
var i = 1;
|
|
19200
19180
|
while (result.length < size) {
|
|
19201
|
-
result = result.concat((values || FAKE_ENTITIES
|
|
19181
|
+
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
19202
19182
|
var name = entity.name + ' #' + i;
|
|
19203
19183
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
19204
19184
|
}));
|
|
@@ -19208,7 +19188,7 @@
|
|
|
19208
19188
|
var AutocompleteTestPage = /** @class */ (function () {
|
|
19209
19189
|
function AutocompleteTestPage(formBuilder) {
|
|
19210
19190
|
this.formBuilder = formBuilder;
|
|
19211
|
-
this._items = deepCopy
|
|
19191
|
+
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
19212
19192
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
19213
19193
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
19214
19194
|
this.memoryHide = false;
|
|
@@ -19253,7 +19233,7 @@
|
|
|
19253
19233
|
});
|
|
19254
19234
|
// From items
|
|
19255
19235
|
this.autocompleteFields.add('entity-items-large', {
|
|
19256
|
-
items: FAKE_ENTITIES
|
|
19236
|
+
items: FAKE_ENTITIES.slice(),
|
|
19257
19237
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
19258
19238
|
displayWith: this.entityToString
|
|
19259
19239
|
});
|
|
@@ -19266,12 +19246,12 @@
|
|
|
19266
19246
|
var _this = this;
|
|
19267
19247
|
return __generator(this, function (_a) {
|
|
19268
19248
|
data = {
|
|
19269
|
-
entity: deepCopy
|
|
19249
|
+
entity: deepCopy(FAKE_ENTITIES)[0],
|
|
19270
19250
|
// This item is NOT in the items list => i should be displayed anyway
|
|
19271
19251
|
missingEntity: {
|
|
19272
19252
|
id: -1, label: '??', name: 'Missing item'
|
|
19273
19253
|
},
|
|
19274
|
-
disableEntity: deepCopy
|
|
19254
|
+
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
19275
19255
|
};
|
|
19276
19256
|
this.form.setValue(data);
|
|
19277
19257
|
// Load observables
|
|
@@ -19469,13 +19449,13 @@
|
|
|
19469
19449
|
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_TESTING_PAGES,] }] }
|
|
19470
19450
|
]; };
|
|
19471
19451
|
|
|
19472
|
-
var moment$
|
|
19452
|
+
var moment$5 = momentImported__namespace;
|
|
19473
19453
|
var SwipeTestPage = /** @class */ (function () {
|
|
19474
19454
|
function SwipeTestPage(formBuilder, dateFormatPipe) {
|
|
19475
19455
|
this.formBuilder = formBuilder;
|
|
19476
19456
|
this.dateFormatPipe = dateFormatPipe;
|
|
19477
19457
|
this.$dates = new rxjs.BehaviorSubject(undefined);
|
|
19478
|
-
this._today = moment$
|
|
19458
|
+
this._today = moment$5().startOf('day');
|
|
19479
19459
|
this.form = formBuilder.group({
|
|
19480
19460
|
empty: [null, i1.Validators.required],
|
|
19481
19461
|
date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
|
|
@@ -19489,7 +19469,7 @@
|
|
|
19489
19469
|
var _this = this;
|
|
19490
19470
|
var dates = [];
|
|
19491
19471
|
for (var d = 0; d < 7; d++) {
|
|
19492
|
-
dates[d] = moment$
|
|
19472
|
+
dates[d] = moment$5(this._today).add(d - 3, 'day');
|
|
19493
19473
|
}
|
|
19494
19474
|
this.$dates.next(dates);
|
|
19495
19475
|
this.loadData();
|
|
@@ -19536,7 +19516,7 @@
|
|
|
19536
19516
|
{ type: DateFormatPipe }
|
|
19537
19517
|
]; };
|
|
19538
19518
|
|
|
19539
|
-
var moment = momentImported__namespace;
|
|
19519
|
+
var moment$6 = momentImported__namespace;
|
|
19540
19520
|
var DateTimeTestPage = /** @class */ (function () {
|
|
19541
19521
|
function DateTimeTestPage(platform, formBuilder, cd) {
|
|
19542
19522
|
this.platform = platform;
|
|
@@ -19572,7 +19552,7 @@
|
|
|
19572
19552
|
var now, data;
|
|
19573
19553
|
var _this = this;
|
|
19574
19554
|
return __generator(this, function (_a) {
|
|
19575
|
-
now = moment();
|
|
19555
|
+
now = moment$6();
|
|
19576
19556
|
data = {
|
|
19577
19557
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
19578
19558
|
enable: toDateISOString(now),
|
|
@@ -19637,12 +19617,12 @@
|
|
|
19637
19617
|
{ type: i0.ChangeDetectorRef }
|
|
19638
19618
|
]; };
|
|
19639
19619
|
|
|
19640
|
-
var EntityTestClass = /** @class */ (function () {
|
|
19620
|
+
var EntityTestClass$1 = /** @class */ (function () {
|
|
19641
19621
|
function EntityTestClass() {
|
|
19642
19622
|
}
|
|
19643
19623
|
return EntityTestClass;
|
|
19644
19624
|
}());
|
|
19645
|
-
var FAKE_ENTITIES = [
|
|
19625
|
+
var FAKE_ENTITIES$1 = [
|
|
19646
19626
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
19647
19627
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
19648
19628
|
{ id: 3, label: 'CCC', name: 'Item C' },
|
|
@@ -19651,14 +19631,14 @@
|
|
|
19651
19631
|
{ id: 6, label: 'FFF', name: 'Item F' },
|
|
19652
19632
|
{ id: 7, label: 'GGG', name: 'Item G' }
|
|
19653
19633
|
];
|
|
19654
|
-
function deepCopy(values, size) {
|
|
19634
|
+
function deepCopy$1(values, size) {
|
|
19655
19635
|
if (isNil(size)) {
|
|
19656
|
-
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
19636
|
+
return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
|
|
19657
19637
|
}
|
|
19658
19638
|
var result = [];
|
|
19659
19639
|
var i = 1;
|
|
19660
19640
|
while (result.length < size) {
|
|
19661
|
-
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
19641
|
+
result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
|
|
19662
19642
|
var name = entity.name + ' #' + i;
|
|
19663
19643
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
19664
19644
|
}));
|
|
@@ -19668,7 +19648,7 @@
|
|
|
19668
19648
|
var ChipsTestPage = /** @class */ (function () {
|
|
19669
19649
|
function ChipsTestPage(formBuilder) {
|
|
19670
19650
|
this.formBuilder = formBuilder;
|
|
19671
|
-
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
19651
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
|
|
19672
19652
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
19673
19653
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
19674
19654
|
this.form = formBuilder.group({
|
|
@@ -19711,7 +19691,7 @@
|
|
|
19711
19691
|
var items, data;
|
|
19712
19692
|
var _this = this;
|
|
19713
19693
|
return __generator(this, function (_a) {
|
|
19714
|
-
items = deepCopy(FAKE_ENTITIES);
|
|
19694
|
+
items = deepCopy$1(FAKE_ENTITIES$1);
|
|
19715
19695
|
data = {
|
|
19716
19696
|
entity: items.slice(0, 1),
|
|
19717
19697
|
entityInitial: items.slice(1, 2),
|
|
@@ -19803,7 +19783,7 @@
|
|
|
19803
19783
|
},] }
|
|
19804
19784
|
];
|
|
19805
19785
|
|
|
19806
|
-
var routes
|
|
19786
|
+
var routes = [
|
|
19807
19787
|
{
|
|
19808
19788
|
path: '',
|
|
19809
19789
|
pathMatch: 'full',
|
|
@@ -19858,7 +19838,7 @@
|
|
|
19858
19838
|
i1.ReactiveFormsModule,
|
|
19859
19839
|
SharedMaterialModule,
|
|
19860
19840
|
i1$2.TranslateModule.forChild(),
|
|
19861
|
-
i3.RouterModule.forChild(routes
|
|
19841
|
+
i3.RouterModule.forChild(routes)
|
|
19862
19842
|
],
|
|
19863
19843
|
declarations: [
|
|
19864
19844
|
MaterialTestingPage,
|
|
@@ -20684,6 +20664,7 @@
|
|
|
20684
20664
|
var HomePage = /** @class */ (function () {
|
|
20685
20665
|
function HomePage(accountService, modalCtrl, translate, toastController, configService, platform, cd, network, settings, environment, locales, buttons) {
|
|
20686
20666
|
var _this = this;
|
|
20667
|
+
var _a;
|
|
20687
20668
|
this.accountService = accountService;
|
|
20688
20669
|
this.modalCtrl = modalCtrl;
|
|
20689
20670
|
this.translate = translate;
|
|
@@ -20709,6 +20690,7 @@
|
|
|
20709
20690
|
this._debug = !environment.production;
|
|
20710
20691
|
this.showSpinner = !this.platform.started;
|
|
20711
20692
|
this.platform.ready().then(function () { return _this.start(); });
|
|
20693
|
+
this.showAccountButton = toBoolean((_a = environment.account) === null || _a === void 0 ? void 0 : _a.showAccountButton, true);
|
|
20712
20694
|
}
|
|
20713
20695
|
Object.defineProperty(HomePage.prototype, "currentLocaleCode", {
|
|
20714
20696
|
get: function () {
|
|
@@ -20724,13 +20706,13 @@
|
|
|
20724
20706
|
HomePage.prototype.login = function () {
|
|
20725
20707
|
return __awaiter(this, void 0, void 0, function () {
|
|
20726
20708
|
var modal;
|
|
20727
|
-
return __generator(this, function (
|
|
20728
|
-
switch (
|
|
20709
|
+
return __generator(this, function (_b) {
|
|
20710
|
+
switch (_b.label) {
|
|
20729
20711
|
case 0: return [4 /*yield*/, this.modalCtrl.create({
|
|
20730
20712
|
component: AuthModal
|
|
20731
20713
|
})];
|
|
20732
20714
|
case 1:
|
|
20733
|
-
modal =
|
|
20715
|
+
modal = _b.sent();
|
|
20734
20716
|
return [2 /*return*/, modal.present()];
|
|
20735
20717
|
}
|
|
20736
20718
|
});
|
|
@@ -20739,14 +20721,14 @@
|
|
|
20739
20721
|
HomePage.prototype.register = function () {
|
|
20740
20722
|
return __awaiter(this, void 0, void 0, function () {
|
|
20741
20723
|
var modal;
|
|
20742
|
-
return __generator(this, function (
|
|
20743
|
-
switch (
|
|
20724
|
+
return __generator(this, function (_b) {
|
|
20725
|
+
switch (_b.label) {
|
|
20744
20726
|
case 0: return [4 /*yield*/, this.modalCtrl.create({
|
|
20745
20727
|
component: RegisterModal,
|
|
20746
20728
|
backdropDismiss: false
|
|
20747
20729
|
})];
|
|
20748
20730
|
case 1:
|
|
20749
|
-
modal =
|
|
20731
|
+
modal = _b.sent();
|
|
20750
20732
|
return [2 /*return*/, modal.present()];
|
|
20751
20733
|
}
|
|
20752
20734
|
});
|
|
@@ -20754,16 +20736,16 @@
|
|
|
20754
20736
|
};
|
|
20755
20737
|
HomePage.prototype.logout = function (event) {
|
|
20756
20738
|
return __awaiter(this, void 0, void 0, function () {
|
|
20757
|
-
return __generator(this, function (
|
|
20758
|
-
switch (
|
|
20739
|
+
return __generator(this, function (_b) {
|
|
20740
|
+
switch (_b.label) {
|
|
20759
20741
|
case 0: return [4 /*yield*/, this.accountService.logout()];
|
|
20760
20742
|
case 1:
|
|
20761
|
-
|
|
20743
|
+
_b.sent();
|
|
20762
20744
|
if (!this.offline) return [3 /*break*/, 3];
|
|
20763
20745
|
return [4 /*yield*/, this.tryOnline()];
|
|
20764
20746
|
case 2:
|
|
20765
|
-
|
|
20766
|
-
|
|
20747
|
+
_b.sent();
|
|
20748
|
+
_b.label = 3;
|
|
20767
20749
|
case 3: return [2 /*return*/];
|
|
20768
20750
|
}
|
|
20769
20751
|
});
|
|
@@ -20796,13 +20778,13 @@
|
|
|
20796
20778
|
/* -- protected method -- */
|
|
20797
20779
|
HomePage.prototype.start = function () {
|
|
20798
20780
|
return __awaiter(this, void 0, void 0, function () {
|
|
20799
|
-
var
|
|
20781
|
+
var _b, _c, _d, _e, _f, _g;
|
|
20800
20782
|
var _this = this;
|
|
20801
|
-
return __generator(this, function (
|
|
20802
|
-
switch (
|
|
20783
|
+
return __generator(this, function (_h) {
|
|
20784
|
+
switch (_h.label) {
|
|
20803
20785
|
case 0: return [4 /*yield*/, this.accountService.ready()];
|
|
20804
20786
|
case 1:
|
|
20805
|
-
|
|
20787
|
+
_h.sent();
|
|
20806
20788
|
this.isLogin = this.accountService.isLogin();
|
|
20807
20789
|
if (this.isLogin) {
|
|
20808
20790
|
this.onLogin(this.accountService.account);
|
|
@@ -20814,20 +20796,20 @@
|
|
|
20814
20796
|
// Listen pod config
|
|
20815
20797
|
this._subscription.add(this.configService.config.subscribe(function (config) { return _this.onConfigLoaded(config); }));
|
|
20816
20798
|
// Listen settings changes
|
|
20817
|
-
|
|
20818
|
-
|
|
20799
|
+
_c = (_b = this._subscription).add;
|
|
20800
|
+
_e = (_d = this.settings.onChange)
|
|
20819
20801
|
.pipe;
|
|
20820
|
-
|
|
20802
|
+
_f = [
|
|
20821
20803
|
// Add a delay, to avoid to apply changes to often
|
|
20822
20804
|
operators.debounceTime(3000)];
|
|
20823
20805
|
// Start with current settings
|
|
20824
|
-
|
|
20806
|
+
_g = operators.startWith;
|
|
20825
20807
|
return [4 /*yield*/, this.settings.ready()];
|
|
20826
20808
|
case 2:
|
|
20827
20809
|
// Listen settings changes
|
|
20828
|
-
|
|
20810
|
+
_c.apply(_b, [_e.apply(_d, _f.concat([
|
|
20829
20811
|
// Start with current settings
|
|
20830
|
-
|
|
20812
|
+
_g.apply(void 0, [_h.sent()])]))
|
|
20831
20813
|
.subscribe(function (res) { return _this.onSettingsChanged(res); })]);
|
|
20832
20814
|
// Listen network changes
|
|
20833
20815
|
this._subscription.add(this.network.onNetworkStatusChanges
|
|
@@ -20847,11 +20829,11 @@
|
|
|
20847
20829
|
};
|
|
20848
20830
|
HomePage.prototype.showToast = function (opts) {
|
|
20849
20831
|
return __awaiter(this, void 0, void 0, function () {
|
|
20850
|
-
return __generator(this, function (
|
|
20851
|
-
switch (
|
|
20832
|
+
return __generator(this, function (_b) {
|
|
20833
|
+
switch (_b.label) {
|
|
20852
20834
|
case 0: return [4 /*yield*/, Toasts.show(this.toastController, this.translate, opts)];
|
|
20853
20835
|
case 1:
|
|
20854
|
-
|
|
20836
|
+
_b.sent();
|
|
20855
20837
|
return [2 /*return*/];
|
|
20856
20838
|
}
|
|
20857
20839
|
});
|
|
@@ -20953,7 +20935,7 @@
|
|
|
20953
20935
|
{ type: i0.Component, args: [{
|
|
20954
20936
|
moduleId: module.id.toString(),
|
|
20955
20937
|
selector: 'app-page-home',
|
|
20956
|
-
template: "<app-toolbar [canGoBack]=\"false\"\n visible-xs visible-sm visible-mobile>\n\n <!-- change locale button -->\n <ion-button slot=\"end\" *ngIf=\"currentLocaleCode; let code\"\n [matMenuTriggerFor]=\"localeMenu\">\n <ion-label class=\"ion-text-uppercase\"> {{ code }}</ion-label>\n <mat-icon slot=\"end\">arrow_drop_down</mat-icon>\n </ion-button>\n</app-toolbar>\n\n<!-- change locale menu -->\n<mat-menu #localeMenu=\"matMenu\">\n <button *ngFor=\"let item of locales\"\n mat-menu-item\n (click)=\"changeLanguage(item.key)\">\n <ion-label>{{item.value}}</ion-label>\n </button>\n</mat-menu>\n\n<ion-content [ngStyle]=\"contentStyle\" no-padding-xs>\n\n <!-- loading spinner -->\n <div class=\"loading-page\" [class.cdk-visually-hidden]=\"!loading\">\n <div class=\"spinner\" *ngIf=\"loading && showSpinner\">\n <p>Loading...</p>\n <div class=\"sk-cube1 sk-cube\"></div>\n <div class=\"sk-cube2 sk-cube\"></div>\n <div class=\"sk-cube4 sk-cube\"></div>\n <div class=\"sk-cube3 sk-cube\"></div>\n </div>\n </div>\n\n <!-- Desktop: translucent top toolbar -->\n <div hidden-xs hidden-sm hidden-mobile>\n <ion-toolbar translucent>\n <ion-buttons slot=\"start\">\n <ion-menu-toggle>\n <ion-button color=\"light\" fill=\"clear\">\n <ion-icon slot=\"icon-only\" name=\"menu\"></ion-icon>\n </ion-button>\n </ion-menu-toggle>\n </ion-buttons>\n\n <ion-buttons slot=\"end\">\n <!-- change locale button -->\n <ion-button color=\"secondary\" fill=\"solid\"\n *ngIf=\"currentLocaleCode; let code\"\n [matMenuTriggerFor]=\"localeMenu\">\n <ion-label class=\"ion-text-uppercase\"> {{ code }}</ion-label>\n <mat-icon slot=\"end\">arrow_drop_down</mat-icon>\n </ion-button>\n </ion-buttons>\n </ion-toolbar>\n </div>\n\n <!-- Install (and upgrade) card -->\n <app-install-upgrade-card [isLogin]=\"isLogin\"\n showInstallButton=\"true\">\n </app-install-upgrade-card>\n\n <!-- Welcome card -->\n <ion-card *ngIf=\"!loading\"\n class=\"main welcome ion-padding ion-text-center ion-align-self-center\"\n @fadeInAnimation>\n <ion-card-header>\n <ion-card-title class=\"ion-text-center\">\n <span *ngIf=\"isWeb\" [innerHTML]=\"'HOME.WELCOME_WEB'|translate: {appName: appName}\"></span>\n <span *ngIf=\"!isWeb\" [innerHTML]=\"'HOME.WELCOME_APP'|translate: {appName: appName}\"></span>\n </ion-card-title>\n <ion-card-subtitle [innerHTML]=\"description\">\n </ion-card-subtitle>\n </ion-card-header>\n <ion-card-content class=\"ion-no-padding\">\n <ion-text color=\"primary\">\n <img class=\"logo\" *ngIf=\"logo\" src=\"{{ logo }}\">\n </ion-text>\n <!-- register help text -->\n <ion-text *ngIf=\"!isLogin && canRegister\">\n <br/>\n <span translate>HOME.REGISTER_HELP</span>\n </ion-text>\n </ion-card-content>\n\n <ion-footer class=\"ion-padding-top\">\n\n <!-- If NOT login -->\n <ng-container *ngIf=\"!isLogin; else loginButtons;\">\n\n <ion-button *ngIf=\"canRegister\" expand=\"block\" color=\"tertiary\" (click)=\"register()\">\n <span translate>HOME.BTN_REGISTER</span>\n </ion-button>\n <ion-button expand=\"block\" color=\"light\" [routerLink]=\"['/']\" (click)=\"login()\">\n <span translate>AUTH.BTN_LOGIN</span>\n </ion-button>\n\n </ng-container>\n\n <!-- If user login -->\n <ng-template #loginButtons>\n\n <!-- Feature buttons -->\n <ng-container *ngIf=\"$filteredButtons | async as buttons\">\n <ng-container *ngFor=\"let item of buttons\">\n <ion-button *ngIf=\"item.path\"\n expand=\"block\" color=\"tertiary\"\n [class]=\"item.cssClass\"\n [routerLink]=\"item.path\"\n routerDirection=\"root\">\n <ion-icon slot=\"start\" class=\"ion-float-start\" *ngIf=\"item.icon\" [name]=\"item.icon\"></ion-icon>\n <mat-icon slot=\"start\" class=\"ion-float-start\" *ngIf=\"item.matIcon\">{{item.matIcon}}</mat-icon>\n <ion-text>{{'HOME.BTN_DATA_ENTRY'|translate: {name: (item.title | translate) } }}</ion-text>\n </ion-button>\n\n <!-- divider -->\n <div *ngIf=\"!item.path && !item.action\" [class]=\"item.cssClass\">\n <ion-label translate>{{item.title}} </ion-label>\n </div>\n </ng-container>\n\n <!--<p *ngIf=\"buttons.length\" class=\"visible-mobile\"> </p>-->\n </ng-container>\n\n <ion-button expand=\"block\" color=\"secondary\" [routerLink]=\"['/account']\">\n <ion-icon slot=\"start\" class=\"ion-float-start\" name=\"person-circle\"></ion-icon>\n <ion-text translate>HOME.BTN_MY_ACCOUNT</ion-text>\n </ion-button>\n\n <p hidden-xs hidden-sm hidden-mobile>\n <ion-text [innerHTML]=\"'HOME.NOT_THIS_ACCOUNT_QUESTION' | translate: {displayName: accountName }\"></ion-text>\n <br/>\n <ion-text>\n <a href=\"#\" (click)=\"logout($event)\">\n <span translate>HOME.BTN_DISCONNECT</span>\n </a>\n </ion-text>\n </p>\n\n\n </ng-template>\n\n </ion-footer>\n </ion-card>\n\n <!-- Page history -->\n <ion-grid *ngIf=\"!loading && isLogin && pageHistory.length; else bottomBanner\"\n class=\"history-container ion-align-self-center\">\n <ion-row>\n <ion-col size=\"12\" size-xl=\"\" *ngFor=\"let page of pageHistory; trackBy: getPagePath\"\n class=\"ion-text-center\">\n <ion-card class=\"ion-align-self-start ion-text-start\" @fadeInAnimation>\n <ion-card-header class=\"ion-no-padding\">\n <!-- top bar -->\n <ion-card-subtitle>\n <button type=\"button\" tabindex=\"-1\"\n (click)=\"settings.removePageHistory(page.path)\"\n mat-icon-button class=\"ion-float-start ion-no-margin\">\n <mat-icon>close</mat-icon>\n </button>\n <ion-label [innerHTML]=\"page.subtitle|translate\"></ion-label>\n <ion-text class=\"ion-float-end\" [title]=\"page.time|dateFormat:{time: true}\">\n <small><ion-icon name=\"time-outline\"></ion-icon> {{ page.time|dateFromNow }}</small> \n </ion-text>\n </ion-card-subtitle>\n\n <!-- main page -->\n <ion-card-title class=\"ion-no-margin ion-no-padding\">\n <ion-item detail=\"true\"\n tappable class=\"text-1x\"\n [routerLink]=\"page.path\"\n routerDirection=\"root\" lines=\"none\">\n <!-- page icon-->\n <ion-icon *ngIf=\"page.icon\" slot=\"start\" [name]=\"page.icon\"></ion-icon>\n <mat-icon *ngIf=\"page.matIcon\" slot=\"start\">{{page.matIcon}}</mat-icon>\n\n <ion-label color=\"primary\" [innerHTML]=\"page.title\"></ion-label>\n </ion-item>\n </ion-card-title>\n </ion-card-header>\n\n <!-- children pages -->\n <ion-card-content class=\"ion-no-padding ion-padding-start\" *ngIf=\"page.children?.length\">\n <ion-list class=\"ion-no-padding\">\n <ion-item detail=\"true\"\n *ngFor=\"let childPage of page.children\"\n tappable class=\"text-1x\"\n [routerLink]=\"childPage.path\"\n routerDirection=\"root\">\n <!-- page icon-->\n <ion-icon *ngIf=\"childPage.icon\" slot=\"start\" color=\"dark\" [name]=\"childPage.icon\"></ion-icon>\n <mat-icon *ngIf=\"childPage.matIcon\" slot=\"start\" color=\"dark\">{{childPage.matIcon}}</mat-icon>\n\n <ion-label color=\"dark\" [innerHTML]=\"childPage.title\"></ion-label>\n </ion-item>\n </ion-list>\n </ion-card-content>\n </ion-card>\n </ion-col>\n </ion-row>\n </ion-grid>\n\n <!-- Display configured Departments logos -->\n <ng-template #bottomBanner>\n <div class=\"bottom-banner ion-text-center ion-padding\" *ngIf=\"!loadingBanner\" @fadeInAnimation>\n <a href=\"{{ item.siteUrl }}\" *ngFor=\"let item of $partners | async \">\n <img class=\"logo\" src=\"{{ item.logo }}\" alt=\"{{item.label}}\" [title]=\"item.label\" />\n </a>\n </div>\n </ng-template>\n\n\n</ion-content>\n",
|
|
20938
|
+
template: "<app-toolbar [canGoBack]=\"false\"\n visible-xs visible-sm visible-mobile>\n\n <!-- change locale button -->\n <ion-button slot=\"end\" *ngIf=\"currentLocaleCode; let code\"\n [matMenuTriggerFor]=\"localeMenu\">\n <ion-label class=\"ion-text-uppercase\"> {{ code }}</ion-label>\n <mat-icon slot=\"end\">arrow_drop_down</mat-icon>\n </ion-button>\n</app-toolbar>\n\n<!-- change locale menu -->\n<mat-menu #localeMenu=\"matMenu\">\n <button *ngFor=\"let item of locales\"\n mat-menu-item\n (click)=\"changeLanguage(item.key)\">\n <ion-label>{{item.value}}</ion-label>\n </button>\n</mat-menu>\n\n<ion-content [ngStyle]=\"contentStyle\" no-padding-xs>\n\n <!-- loading spinner -->\n <div class=\"loading-page\" [class.cdk-visually-hidden]=\"!loading\">\n <div class=\"spinner\" *ngIf=\"loading && showSpinner\">\n <p>Loading...</p>\n <div class=\"sk-cube1 sk-cube\"></div>\n <div class=\"sk-cube2 sk-cube\"></div>\n <div class=\"sk-cube4 sk-cube\"></div>\n <div class=\"sk-cube3 sk-cube\"></div>\n </div>\n </div>\n\n <!-- Desktop: translucent top toolbar -->\n <div hidden-xs hidden-sm hidden-mobile>\n <ion-toolbar translucent>\n <ion-buttons slot=\"start\">\n <ion-menu-toggle>\n <ion-button color=\"light\" fill=\"clear\">\n <ion-icon slot=\"icon-only\" name=\"menu\"></ion-icon>\n </ion-button>\n </ion-menu-toggle>\n </ion-buttons>\n\n <ion-buttons slot=\"end\">\n <!-- change locale button -->\n <ion-button color=\"secondary\" fill=\"solid\"\n *ngIf=\"currentLocaleCode; let code\"\n [matMenuTriggerFor]=\"localeMenu\">\n <ion-label class=\"ion-text-uppercase\"> {{ code }}</ion-label>\n <mat-icon slot=\"end\">arrow_drop_down</mat-icon>\n </ion-button>\n </ion-buttons>\n </ion-toolbar>\n </div>\n\n <!-- Install (and upgrade) card -->\n <app-install-upgrade-card [isLogin]=\"isLogin\"\n showInstallButton=\"true\">\n </app-install-upgrade-card>\n\n <!-- Welcome card -->\n <ion-card *ngIf=\"!loading\"\n class=\"main welcome ion-padding ion-text-center ion-align-self-center\"\n @fadeInAnimation>\n <ion-card-header>\n <ion-card-title class=\"ion-text-center\">\n <span *ngIf=\"isWeb\" [innerHTML]=\"'HOME.WELCOME_WEB'|translate: {appName: appName}\"></span>\n <span *ngIf=\"!isWeb\" [innerHTML]=\"'HOME.WELCOME_APP'|translate: {appName: appName}\"></span>\n </ion-card-title>\n <ion-card-subtitle [innerHTML]=\"description\">\n </ion-card-subtitle>\n </ion-card-header>\n <ion-card-content class=\"ion-no-padding\">\n <ion-text color=\"primary\">\n <img class=\"logo\" *ngIf=\"logo\" src=\"{{ logo }}\">\n </ion-text>\n <!-- register help text -->\n <ion-text *ngIf=\"!isLogin && canRegister\">\n <br/>\n <span translate>HOME.REGISTER_HELP</span>\n </ion-text>\n </ion-card-content>\n\n <ion-footer class=\"ion-padding-top\">\n\n <!-- If NOT login -->\n <ng-container *ngIf=\"!isLogin; else loginButtons;\">\n\n <ion-button *ngIf=\"canRegister\" expand=\"block\" color=\"tertiary\" (click)=\"register()\">\n <span translate>HOME.BTN_REGISTER</span>\n </ion-button>\n <ion-button expand=\"block\" color=\"light\" [routerLink]=\"['/']\" (click)=\"login()\">\n <span translate>AUTH.BTN_LOGIN</span>\n </ion-button>\n\n </ng-container>\n\n <!-- If user login -->\n <ng-template #loginButtons>\n\n <!-- Feature buttons -->\n <ng-container *ngIf=\"$filteredButtons | async as buttons\">\n <ng-container *ngFor=\"let item of buttons\">\n <ion-button *ngIf=\"item.path\"\n expand=\"block\" color=\"tertiary\"\n [class]=\"item.cssClass\"\n [routerLink]=\"item.path\"\n routerDirection=\"root\">\n <ion-icon slot=\"start\" class=\"ion-float-start\" *ngIf=\"item.icon\" [name]=\"item.icon\"></ion-icon>\n <mat-icon slot=\"start\" class=\"ion-float-start\" *ngIf=\"item.matIcon\">{{item.matIcon}}</mat-icon>\n <ion-text>{{'HOME.BTN_DATA_ENTRY'|translate: {name: (item.title | translate) } }}</ion-text>\n </ion-button>\n\n <!-- divider -->\n <div *ngIf=\"!item.path && !item.action\" [class]=\"item.cssClass\">\n <ion-label translate>{{item.title}} </ion-label>\n </div>\n </ng-container>\n\n <!--<p *ngIf=\"buttons.length\" class=\"visible-mobile\"> </p>-->\n </ng-container>\n\n <ion-button *ngIf=\"showAccountButton\" expand=\"block\" color=\"secondary\" [routerLink]=\"['/account']\">\n <ion-icon slot=\"start\" class=\"ion-float-start\" name=\"person-circle\"></ion-icon>\n <ion-text translate>HOME.BTN_MY_ACCOUNT</ion-text>\n </ion-button>\n\n <p hidden-xs hidden-sm hidden-mobile>\n <ion-text [innerHTML]=\"'HOME.NOT_THIS_ACCOUNT_QUESTION' | translate: {displayName: accountName }\"></ion-text>\n <br/>\n <ion-text>\n <a href=\"#\" (click)=\"logout($event)\">\n <span translate>HOME.BTN_DISCONNECT</span>\n </a>\n </ion-text>\n </p>\n\n\n </ng-template>\n\n </ion-footer>\n </ion-card>\n\n <!-- Page history -->\n <ion-grid *ngIf=\"!loading && isLogin && pageHistory.length; else bottomBanner\"\n class=\"history-container ion-align-self-center\">\n <ion-row>\n <ion-col size=\"12\" size-xl=\"\" *ngFor=\"let page of pageHistory; trackBy: getPagePath\"\n class=\"ion-text-center\">\n <ion-card class=\"ion-align-self-start ion-text-start\" @fadeInAnimation>\n <ion-card-header class=\"ion-no-padding\">\n <!-- top bar -->\n <ion-card-subtitle>\n <button type=\"button\" tabindex=\"-1\"\n (click)=\"settings.removePageHistory(page.path)\"\n mat-icon-button class=\"ion-float-start ion-no-margin\">\n <mat-icon>close</mat-icon>\n </button>\n <ion-label [innerHTML]=\"page.subtitle|translate\"></ion-label>\n <ion-text class=\"ion-float-end\" [title]=\"page.time|dateFormat:{time: true}\">\n <small><ion-icon name=\"time-outline\"></ion-icon> {{ page.time|dateFromNow }}</small> \n </ion-text>\n </ion-card-subtitle>\n\n <!-- main page -->\n <ion-card-title class=\"ion-no-margin ion-no-padding\">\n <ion-item detail=\"true\"\n tappable class=\"text-1x\"\n [routerLink]=\"page.path\"\n routerDirection=\"root\" lines=\"none\">\n <!-- page icon-->\n <ion-icon *ngIf=\"page.icon\" slot=\"start\" [name]=\"page.icon\"></ion-icon>\n <mat-icon *ngIf=\"page.matIcon\" slot=\"start\">{{page.matIcon}}</mat-icon>\n\n <ion-label color=\"primary\" [innerHTML]=\"page.title\"></ion-label>\n </ion-item>\n </ion-card-title>\n </ion-card-header>\n\n <!-- children pages -->\n <ion-card-content class=\"ion-no-padding ion-padding-start\" *ngIf=\"page.children?.length\">\n <ion-list class=\"ion-no-padding\">\n <ion-item detail=\"true\"\n *ngFor=\"let childPage of page.children\"\n tappable class=\"text-1x\"\n [routerLink]=\"childPage.path\"\n routerDirection=\"root\">\n <!-- page icon-->\n <ion-icon *ngIf=\"childPage.icon\" slot=\"start\" color=\"dark\" [name]=\"childPage.icon\"></ion-icon>\n <mat-icon *ngIf=\"childPage.matIcon\" slot=\"start\" color=\"dark\">{{childPage.matIcon}}</mat-icon>\n\n <ion-label color=\"dark\" [innerHTML]=\"childPage.title\"></ion-label>\n </ion-item>\n </ion-list>\n </ion-card-content>\n </ion-card>\n </ion-col>\n </ion-row>\n </ion-grid>\n\n <!-- Display configured Departments logos -->\n <ng-template #bottomBanner>\n <div class=\"bottom-banner ion-text-center ion-padding\" *ngIf=\"!loadingBanner\" @fadeInAnimation>\n <a href=\"{{ item.siteUrl }}\" *ngFor=\"let item of $partners | async \">\n <img class=\"logo\" src=\"{{ item.logo }}\" alt=\"{{item.label}}\" [title]=\"item.label\" />\n </a>\n </div>\n </ng-template>\n\n\n</ion-content>\n",
|
|
20957
20939
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
20958
20940
|
animations: [fadeInAnimation, slideUpDownAnimation],
|
|
20959
20941
|
styles: ["h1,h2,h3,h4,h5{white-space:normal}.center,ion-content ion-card.welcome img{text-align:center;display:inline-block}ion-content{--background:transparent;background-size:cover;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;display:inline-block;padding:15px}ion-content,ion-content .loading-page{background-color:var(--ion-color-primary)}ion-content .loading-page{display:block;height:100%;width:100%;position:absolute;z-index:5;transition:background .5s linear;-webkit-transition:background 1.5s linear}ion-content .loading-page.hidden{background-color:rgba(var(--ion-color-primary),0)}ion-content ion-card{z-index:9}ion-content ion-card ion-card-header{display:block}ion-content ion-card ion-card-header ion-card-subtitle,ion-content ion-card ion-card-header ion-card-title{display:block;width:100%}ion-content ion-card.main{min-width:240px;max-width:400px;margin-left:auto;margin-right:auto}ion-content ion-card.welcome{background-color:hsla(0,0%,100%,.7)}ion-content ion-card.welcome button{margin-top:16px}ion-content ion-card.welcome img{max-width:250px}ion-content .history-container{margin-left:auto;margin-right:auto}ion-content .history-container ion-card{display:inline-block;box-sizing:border-box;z-index:8;min-width:240px;max-width:400px;width:100%;margin-left:auto;margin-right:auto;background-color:hsla(0,0%,100%,.7)}ion-content .history-container ion-card ion-card-header ion-card-subtitle{height:40px}ion-content .history-container ion-card ion-card-header ion-card-subtitle button[float-start]{z-index:99;margin:0}ion-content .history-container ion-card ion-card-header ion-card-subtitle ion-label{line-height:40px}ion-content .history-container ion-card ion-card-header ion-card-subtitle ion-label[float-end]{padding-right:16px;font-weight:400}ion-content .history-container ion-card ion-card-header ion-card-title ion-item{--ion-item-background:$transparent;--ion-item-icon-color:var(--ion-color-primary);--ion-item-text-color:var(--ion-color-primary)}ion-content .history-container ion-card ion-card-header ion-card-title ion-item ion-icon[slot=start],ion-content .history-container ion-card ion-card-header ion-card-title ion-item mat-icon[slot=start]{margin-right:unset;-webkit-margin-end:16px!important;margin-inline-end:16px!important;color:var(--ion-item-icon-color)!important;fill:currentColor;stroke:currentColor}ion-content .history-container ion-card ion-card-header ion-card-title ion-item ion-label,ion-content .history-container ion-card ion-card-header ion-card-title ion-item ion-text{color:var(--ion-item-text-color)!important;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}ion-content .history-container ion-card ion-card-content ion-list{--ion-item-background:var(--ion-color-transparent)}ion-content .history-container ion-card ion-card-content ion-list ion-item{--ion-item-icon-color:var(--ion-color-dark);--ion-item-text-color:var(--ion-color-dark)}ion-content .history-container ion-card ion-card-content ion-list ion-item ion-icon[slot=start],ion-content .history-container ion-card ion-card-content ion-list ion-item mat-icon[slot=start]{color:var(--ion-item-icon-color)!important;fill:currentColor;stroke:currentColor;margin-right:unset;-webkit-margin-end:16px!important;margin-inline-end:16px!important}ion-content .history-container ion-card ion-card-content ion-list ion-item ion-label,ion-content .history-container ion-card ion-card-content ion-list ion-item ion-text{color:var(--ion-item-text-color)!important}ion-content .bottom-banner{background-color:hsla(0,0%,100%,.7);min-width:240px;z-index:0;position:absolute;left:16px;right:16px;bottom:16px}ion-content .bottom-banner img.logo{max-height:50px;margin-left:8px}ion-content ion-text{text-align:center}@media screen and (max-width:575px){ion-content ion-card{min-width:160px;width:calc(100% - 20px);max-width:100%;margin-left:10px;margin-right:10px}ion-content ion-card h1{margin-top:0;font-size:20px}ion-content ion-card ion-card-content ion-button{margin-top:8px}ion-content .bottom-banner{display:block;position:unset}ion-content .bottom-banner img.logo{max-height:30px}}@media screen and (max-width:767px) and (min-width:576px){ion-content{min-height:555px}ion-content .bottom-banner img.logo{max-height:40px}}@media screen and (min-width:768px){ion-content{min-height:calc(100% - 100px)}}"]
|
|
@@ -20969,7 +20951,7 @@
|
|
|
20969
20951
|
{ type: i0.ChangeDetectorRef },
|
|
20970
20952
|
{ type: NetworkService },
|
|
20971
20953
|
{ type: LocalSettingsService },
|
|
20972
|
-
{ type:
|
|
20954
|
+
{ type: Environment, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
20973
20955
|
{ type: Array, decorators: [{ type: i0.Inject, args: [APP_LOCALES,] }] },
|
|
20974
20956
|
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_HOME_BUTTONS,] }] }
|
|
20975
20957
|
]; };
|
|
@@ -21134,7 +21116,7 @@
|
|
|
21134
21116
|
};
|
|
21135
21117
|
return UserSettingsValidatorService;
|
|
21136
21118
|
}(AppValidatorService));
|
|
21137
|
-
UserSettingsValidatorService.ɵprov =
|
|
21119
|
+
UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
21138
21120
|
UserSettingsValidatorService.decorators = [
|
|
21139
21121
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21140
21122
|
];
|
|
@@ -21182,7 +21164,7 @@
|
|
|
21182
21164
|
};
|
|
21183
21165
|
return AccountValidatorService;
|
|
21184
21166
|
}(AppValidatorService));
|
|
21185
|
-
AccountValidatorService.ɵprov =
|
|
21167
|
+
AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
|
|
21186
21168
|
AccountValidatorService.decorators = [
|
|
21187
21169
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21188
21170
|
];
|
|
@@ -21813,7 +21795,7 @@
|
|
|
21813
21795
|
};
|
|
21814
21796
|
return LocalSettingsValidatorService;
|
|
21815
21797
|
}(AppValidatorService));
|
|
21816
|
-
LocalSettingsValidatorService.ɵprov =
|
|
21798
|
+
LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
|
|
21817
21799
|
LocalSettingsValidatorService.decorators = [
|
|
21818
21800
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21819
21801
|
];
|
|
@@ -22593,7 +22575,7 @@
|
|
|
22593
22575
|
};
|
|
22594
22576
|
return IsOnFieldModePipe;
|
|
22595
22577
|
}());
|
|
22596
|
-
IsOnFieldModePipe.ɵprov =
|
|
22578
|
+
IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
22597
22579
|
IsOnFieldModePipe.decorators = [
|
|
22598
22580
|
{ type: i0.Pipe, args: [{
|
|
22599
22581
|
name: 'isOnField'
|
|
@@ -22608,7 +22590,7 @@
|
|
|
22608
22590
|
};
|
|
22609
22591
|
return IsNotOnFieldModePipe;
|
|
22610
22592
|
}());
|
|
22611
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
22593
|
+
IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
22612
22594
|
IsNotOnFieldModePipe.decorators = [
|
|
22613
22595
|
{ type: i0.Pipe, args: [{
|
|
22614
22596
|
name: 'isNotOnField'
|
|
@@ -22626,7 +22608,7 @@
|
|
|
22626
22608
|
};
|
|
22627
22609
|
return PersonToStringPipe;
|
|
22628
22610
|
}());
|
|
22629
|
-
PersonToStringPipe.ɵprov =
|
|
22611
|
+
PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
22630
22612
|
PersonToStringPipe.decorators = [
|
|
22631
22613
|
{ type: i0.Pipe, args: [{
|
|
22632
22614
|
name: 'personToString'
|
|
@@ -23090,7 +23072,7 @@
|
|
|
23090
23072
|
};
|
|
23091
23073
|
return IsLoginAccountPipe;
|
|
23092
23074
|
}());
|
|
23093
|
-
IsLoginAccountPipe.ɵprov =
|
|
23075
|
+
IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
23094
23076
|
IsLoginAccountPipe.decorators = [
|
|
23095
23077
|
{ type: i0.Pipe, args: [{
|
|
23096
23078
|
name: 'isLogin'
|
|
@@ -23105,7 +23087,7 @@
|
|
|
23105
23087
|
};
|
|
23106
23088
|
return AccountToStringPipe;
|
|
23107
23089
|
}());
|
|
23108
|
-
AccountToStringPipe.ɵprov =
|
|
23090
|
+
AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
23109
23091
|
AccountToStringPipe.decorators = [
|
|
23110
23092
|
{ type: i0.Pipe, args: [{
|
|
23111
23093
|
name: 'accountToString'
|
|
@@ -23123,7 +23105,7 @@
|
|
|
23123
23105
|
};
|
|
23124
23106
|
return DepartmentToStringPipe;
|
|
23125
23107
|
}());
|
|
23126
|
-
DepartmentToStringPipe.ɵprov =
|
|
23108
|
+
DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
23127
23109
|
DepartmentToStringPipe.decorators = [
|
|
23128
23110
|
{ type: i0.Pipe, args: [{
|
|
23129
23111
|
name: 'departmentToString'
|
|
@@ -23158,7 +23140,7 @@
|
|
|
23158
23140
|
};
|
|
23159
23141
|
return MenuService;
|
|
23160
23142
|
}());
|
|
23161
|
-
MenuService.ɵprov =
|
|
23143
|
+
MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
23162
23144
|
MenuService.decorators = [
|
|
23163
23145
|
{ type: i0.Injectable, args: [{
|
|
23164
23146
|
providedIn: 'root'
|
|
@@ -23774,7 +23756,7 @@
|
|
|
23774
23756
|
};
|
|
23775
23757
|
return AuthGuardService;
|
|
23776
23758
|
}());
|
|
23777
|
-
AuthGuardService.ɵprov =
|
|
23759
|
+
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" });
|
|
23778
23760
|
AuthGuardService.decorators = [
|
|
23779
23761
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
23780
23762
|
];
|
|
@@ -23819,7 +23801,7 @@
|
|
|
23819
23801
|
query: query,
|
|
23820
23802
|
variables: { id: id },
|
|
23821
23803
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
23822
|
-
error: { code: ErrorCodes
|
|
23804
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
23823
23805
|
})
|
|
23824
23806
|
.pipe(operators.map(function (_b) {
|
|
23825
23807
|
var data = _b.data;
|
|
@@ -23841,7 +23823,7 @@
|
|
|
23841
23823
|
query: query,
|
|
23842
23824
|
variables: { id: id },
|
|
23843
23825
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
23844
|
-
error: { code: ErrorCodes
|
|
23826
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
23845
23827
|
})];
|
|
23846
23828
|
case 1:
|
|
23847
23829
|
data = (_b.sent()).data;
|
|
@@ -23877,7 +23859,7 @@
|
|
|
23877
23859
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
23878
23860
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
23879
23861
|
variables: variables,
|
|
23880
|
-
error: { code: ErrorCodes
|
|
23862
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
23881
23863
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
23882
23864
|
})
|
|
23883
23865
|
.pipe(operators.map(function (_b) {
|
|
@@ -23919,7 +23901,7 @@
|
|
|
23919
23901
|
return [4 /*yield*/, this.graphql.query({
|
|
23920
23902
|
query: query,
|
|
23921
23903
|
variables: variables,
|
|
23922
|
-
error: { code: ErrorCodes
|
|
23904
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
23923
23905
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
23924
23906
|
})];
|
|
23925
23907
|
case 1:
|
|
@@ -23967,7 +23949,7 @@
|
|
|
23967
23949
|
variables: {
|
|
23968
23950
|
filter: filter && filter.asPodObject()
|
|
23969
23951
|
},
|
|
23970
|
-
error: { code: ErrorCodes
|
|
23952
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
23971
23953
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
23972
23954
|
})];
|
|
23973
23955
|
case 3:
|
|
@@ -24012,7 +23994,7 @@
|
|
|
24012
23994
|
variables: {
|
|
24013
23995
|
data: json
|
|
24014
23996
|
},
|
|
24015
|
-
error: { code: ErrorCodes
|
|
23997
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
24016
23998
|
update: function (proxy, _b) {
|
|
24017
23999
|
var data = _b.data;
|
|
24018
24000
|
var savedEntities = data && data.data;
|
|
@@ -24079,7 +24061,7 @@
|
|
|
24079
24061
|
variables: {
|
|
24080
24062
|
data: json
|
|
24081
24063
|
},
|
|
24082
|
-
error: { code: ErrorCodes
|
|
24064
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
24083
24065
|
update: function (cache, _b) {
|
|
24084
24066
|
var data = _b.data;
|
|
24085
24067
|
// Update entity
|
|
@@ -24137,7 +24119,7 @@
|
|
|
24137
24119
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
24138
24120
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
24139
24121
|
variables: { ids: ids },
|
|
24140
|
-
error: { code: ErrorCodes
|
|
24122
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
24141
24123
|
update: function (cache, res) {
|
|
24142
24124
|
// Remove from cache
|
|
24143
24125
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -24190,7 +24172,7 @@
|
|
|
24190
24172
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
24191
24173
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
24192
24174
|
variables: { id: id },
|
|
24193
|
-
error: { code: ErrorCodes
|
|
24175
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
24194
24176
|
update: function (proxy, res) {
|
|
24195
24177
|
// Remove from cache
|
|
24196
24178
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -24229,7 +24211,7 @@
|
|
|
24229
24211
|
query: opts && opts.query || this.subscriptions.listenChanges,
|
|
24230
24212
|
variables: variables,
|
|
24231
24213
|
error: {
|
|
24232
|
-
code: ErrorCodes
|
|
24214
|
+
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
24233
24215
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
24234
24216
|
}
|
|
24235
24217
|
})
|
|
@@ -24452,7 +24434,7 @@
|
|
|
24452
24434
|
if (this._debug)
|
|
24453
24435
|
invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
|
|
24454
24436
|
// Stop with an error
|
|
24455
|
-
throw { code: ErrorCodes
|
|
24437
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
24456
24438
|
}
|
|
24457
24439
|
this._editingRowCount = 0;
|
|
24458
24440
|
data = void 0;
|
|
@@ -25465,14 +25447,14 @@
|
|
|
25465
25447
|
case 0:
|
|
25466
25448
|
opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
|
|
25467
25449
|
if (this.readOnly) {
|
|
25468
|
-
throw { code: ErrorCodes
|
|
25450
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25469
25451
|
}
|
|
25470
25452
|
this.resetError();
|
|
25471
25453
|
// Keep edited row id (should be done BEFORE confirmEditCreate() )
|
|
25472
25454
|
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));
|
|
25473
25455
|
previouslyEditedData = 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);
|
|
25474
25456
|
if (!this.confirmEditCreate()) {
|
|
25475
|
-
throw { code: ErrorCodes
|
|
25457
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
25476
25458
|
}
|
|
25477
25459
|
// Mark as saving
|
|
25478
25460
|
this.markAsSaving();
|
|
@@ -25627,7 +25609,7 @@
|
|
|
25627
25609
|
switch (_e.label) {
|
|
25628
25610
|
case 0:
|
|
25629
25611
|
if (this.readOnly) {
|
|
25630
|
-
throw { code: ErrorCodes
|
|
25612
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25631
25613
|
}
|
|
25632
25614
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
25633
25615
|
return [2 /*return*/, 0]; // SKip
|
|
@@ -27474,7 +27456,7 @@
|
|
|
27474
27456
|
case 8:
|
|
27475
27457
|
data = _c.sent();
|
|
27476
27458
|
if (!data)
|
|
27477
|
-
throw { code: ErrorCodes
|
|
27459
|
+
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
27478
27460
|
this._usageMode = this.computeUsageMode(data);
|
|
27479
27461
|
return [4 /*yield*/, this.onEntityLoaded(data, opts)];
|
|
27480
27462
|
case 9:
|
|
@@ -28248,10 +28230,10 @@
|
|
|
28248
28230
|
exports.UserEventFilter = __decorate([
|
|
28249
28231
|
EntityClass({ typename: 'UserEventVO' })
|
|
28250
28232
|
], exports.UserEventFilter);
|
|
28251
|
-
var SaveQuery = core.gql(templateObject_1$
|
|
28252
|
-
var LoadAllQuery = core.gql(templateObject_2$
|
|
28253
|
-
var DeleteByIdsMutation = core.gql(templateObject_3$
|
|
28254
|
-
var LoadAllWithContentQuery = core.gql(templateObject_4$
|
|
28233
|
+
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);
|
|
28234
|
+
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);
|
|
28235
|
+
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"])));
|
|
28236
|
+
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);
|
|
28255
28237
|
var UserEventService = /** @class */ (function (_super) {
|
|
28256
28238
|
__extends(UserEventService, _super);
|
|
28257
28239
|
function UserEventService(graphql, accountService, network, translate, toastController, environment) {
|
|
@@ -28572,7 +28554,7 @@
|
|
|
28572
28554
|
};
|
|
28573
28555
|
return UserEventService;
|
|
28574
28556
|
}(BaseGraphqlService));
|
|
28575
|
-
UserEventService.ɵprov =
|
|
28557
|
+
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" });
|
|
28576
28558
|
UserEventService.decorators = [
|
|
28577
28559
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
28578
28560
|
];
|
|
@@ -28584,7 +28566,7 @@
|
|
|
28584
28566
|
{ type: i1$5.ToastController },
|
|
28585
28567
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
28586
28568
|
]; };
|
|
28587
|
-
var templateObject_1$
|
|
28569
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
|
|
28588
28570
|
|
|
28589
28571
|
var ICONS_MAP = {
|
|
28590
28572
|
DEBUG_DATA: { matIcon: 'bug_report' },
|
|
@@ -28846,16 +28828,16 @@
|
|
|
28846
28828
|
], exports.PersonFilter);
|
|
28847
28829
|
|
|
28848
28830
|
var PersonFragments = {
|
|
28849
|
-
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 }"])))
|
|
28831
|
+
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 }"])))
|
|
28850
28832
|
};
|
|
28851
28833
|
// Load persons query
|
|
28852
28834
|
var PersonQueries = {
|
|
28853
|
-
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),
|
|
28854
|
-
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)
|
|
28835
|
+
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),
|
|
28836
|
+
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)
|
|
28855
28837
|
};
|
|
28856
28838
|
var PersonMutations = {
|
|
28857
|
-
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),
|
|
28858
|
-
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 }"])))
|
|
28839
|
+
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),
|
|
28840
|
+
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 }"])))
|
|
28859
28841
|
};
|
|
28860
28842
|
var PersonService = /** @class */ (function (_super_1) {
|
|
28861
28843
|
__extends(PersonService, _super_1);
|
|
@@ -28979,7 +28961,7 @@
|
|
|
28979
28961
|
};
|
|
28980
28962
|
return PersonService;
|
|
28981
28963
|
}(BaseEntityService));
|
|
28982
|
-
PersonService.ɵprov =
|
|
28964
|
+
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" });
|
|
28983
28965
|
PersonService.decorators = [
|
|
28984
28966
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
28985
28967
|
];
|
|
@@ -28989,7 +28971,7 @@
|
|
|
28989
28971
|
{ type: NetworkService },
|
|
28990
28972
|
{ type: EntitiesStorage }
|
|
28991
28973
|
]; };
|
|
28992
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
28974
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
|
|
28993
28975
|
|
|
28994
28976
|
var PersonValidatorService = /** @class */ (function () {
|
|
28995
28977
|
function PersonValidatorService(formBuilder, accountValidatorService) {
|
|
@@ -29012,7 +28994,7 @@
|
|
|
29012
28994
|
};
|
|
29013
28995
|
return PersonValidatorService;
|
|
29014
28996
|
}());
|
|
29015
|
-
PersonValidatorService.ɵprov =
|
|
28997
|
+
PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
|
|
29016
28998
|
PersonValidatorService.decorators = [
|
|
29017
28999
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
29018
29000
|
];
|
|
@@ -29223,16 +29205,16 @@
|
|
|
29223
29205
|
];
|
|
29224
29206
|
AdminModule.ctorParameters = function () { return []; };
|
|
29225
29207
|
|
|
29226
|
-
var ɵ0 = {
|
|
29208
|
+
var ɵ0$c = {
|
|
29227
29209
|
profile: 'ADMIN'
|
|
29228
29210
|
};
|
|
29229
|
-
var routes = [
|
|
29211
|
+
var routes$2 = [
|
|
29230
29212
|
{
|
|
29231
29213
|
path: 'users',
|
|
29232
29214
|
pathMatch: 'full',
|
|
29233
29215
|
component: UsersPage,
|
|
29234
29216
|
canActivate: [AuthGuardService],
|
|
29235
|
-
data: ɵ0
|
|
29217
|
+
data: ɵ0$c
|
|
29236
29218
|
}
|
|
29237
29219
|
];
|
|
29238
29220
|
var AdminRoutingModule = /** @class */ (function () {
|
|
@@ -29245,13 +29227,13 @@
|
|
|
29245
29227
|
imports: [
|
|
29246
29228
|
SharedRoutingModule,
|
|
29247
29229
|
AdminModule,
|
|
29248
|
-
i3.RouterModule.forChild(routes)
|
|
29230
|
+
i3.RouterModule.forChild(routes$2)
|
|
29249
29231
|
],
|
|
29250
29232
|
exports: [i3.RouterModule]
|
|
29251
29233
|
},] }
|
|
29252
29234
|
];
|
|
29253
29235
|
|
|
29254
|
-
var ErrorCodes = {
|
|
29236
|
+
var ErrorCodes$2 = {
|
|
29255
29237
|
LOAD_PERSONS_ERROR: 100,
|
|
29256
29238
|
SAVE_PERSONS_ERROR: 101,
|
|
29257
29239
|
DELETE_PERSONS_ERROR: 102,
|
|
@@ -29362,7 +29344,7 @@
|
|
|
29362
29344
|
exports.EntityStore = EntityStore;
|
|
29363
29345
|
exports.EntityUtils = EntityUtils;
|
|
29364
29346
|
exports.Environment = Environment;
|
|
29365
|
-
exports.ErrorCodes = ErrorCodes;
|
|
29347
|
+
exports.ErrorCodes = ErrorCodes$2;
|
|
29366
29348
|
exports.EvenPipe = EvenPipe;
|
|
29367
29349
|
exports.FileService = FileService;
|
|
29368
29350
|
exports.FileSizePipe = FileSizePipe;
|
|
@@ -29372,7 +29354,7 @@
|
|
|
29372
29354
|
exports.FormErrorTranslatePipe = FormErrorTranslatePipe;
|
|
29373
29355
|
exports.FormErrorTranslator = FormErrorTranslator;
|
|
29374
29356
|
exports.FormFieldValuesHolder = FormFieldValuesHolder;
|
|
29375
|
-
exports.Fragments = Fragments;
|
|
29357
|
+
exports.Fragments = Fragments$1;
|
|
29376
29358
|
exports.GraphqlService = GraphqlService;
|
|
29377
29359
|
exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
|
|
29378
29360
|
exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
|
|
@@ -29635,23 +29617,23 @@
|
|
|
29635
29617
|
exports.waitForTrue = waitForTrue;
|
|
29636
29618
|
exports.waitIdle = waitIdle;
|
|
29637
29619
|
exports.waitWhilePending = waitWhilePending;
|
|
29638
|
-
exports
|
|
29639
|
-
exports
|
|
29640
|
-
exports
|
|
29641
|
-
exports
|
|
29642
|
-
exports
|
|
29643
|
-
exports
|
|
29644
|
-
exports
|
|
29645
|
-
exports
|
|
29646
|
-
exports
|
|
29647
|
-
exports
|
|
29648
|
-
exports
|
|
29649
|
-
exports
|
|
29650
|
-
exports
|
|
29651
|
-
exports
|
|
29652
|
-
exports
|
|
29620
|
+
exports.ɵ0 = ɵ0$1;
|
|
29621
|
+
exports.ɵa = CustomReuseStrategy;
|
|
29622
|
+
exports.ɵb = MatNumpadDomService;
|
|
29623
|
+
exports.ɵc = SharedMatBadgeIconModule;
|
|
29624
|
+
exports.ɵd = MatBadgeIconDirective;
|
|
29625
|
+
exports.ɵe = isFocusableElement;
|
|
29626
|
+
exports.ɵf = MatBadgeIconTestPage;
|
|
29627
|
+
exports.ɵg = ToastTestingModule;
|
|
29628
|
+
exports.ɵh = ToastTestingPage;
|
|
29629
|
+
exports.ɵi = RegisterForm;
|
|
29630
|
+
exports.ɵj = AccountValidatorService;
|
|
29631
|
+
exports.ɵk = RegisterModal;
|
|
29632
|
+
exports.ɵl = UserSettingsValidatorService;
|
|
29633
|
+
exports.ɵm = LocalSettingsValidatorService;
|
|
29634
|
+
exports.ɵn = AppIconComponent;
|
|
29653
29635
|
|
|
29654
29636
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
29655
29637
|
|
|
29656
|
-
}));
|
|
29638
|
+
})));
|
|
29657
29639
|
//# sourceMappingURL=sumaris-net.ngx-components.umd.js.map
|