@sumaris-net/ngx-components 1.10.7 → 1.10.8-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/sumaris-net.ngx-components.umd.js +294 -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/environments/environment.class.js +1 -1
- package/fesm2015/sumaris-net.ngx-components.js +260 -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/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
|
];
|
|
@@ -11797,7 +11773,7 @@
|
|
|
11797
11773
|
};
|
|
11798
11774
|
return LocalSettingsService;
|
|
11799
11775
|
}(StartableService));
|
|
11800
|
-
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" });
|
|
11801
11777
|
LocalSettingsService.decorators = [
|
|
11802
11778
|
{ type: i0.Injectable, args: [{
|
|
11803
11779
|
providedIn: 'root',
|
|
@@ -12600,7 +12576,7 @@
|
|
|
12600
12576
|
};
|
|
12601
12577
|
return NetworkService;
|
|
12602
12578
|
}(StartableService));
|
|
12603
|
-
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" });
|
|
12604
12580
|
NetworkService.decorators = [
|
|
12605
12581
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
12606
12582
|
];
|
|
@@ -12620,7 +12596,7 @@
|
|
|
12620
12596
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
|
|
12621
12597
|
]; };
|
|
12622
12598
|
|
|
12623
|
-
var ErrorCodes
|
|
12599
|
+
var ErrorCodes = {
|
|
12624
12600
|
UNKNOWN_ERROR: 0,
|
|
12625
12601
|
LOAD_ACCOUNT_ERROR: 1,
|
|
12626
12602
|
BAD_PASSWORD: 2,
|
|
@@ -13037,7 +13013,7 @@
|
|
|
13037
13013
|
case 13:
|
|
13038
13014
|
err_1 = _b.sent();
|
|
13039
13015
|
console.error(err_1);
|
|
13040
|
-
throw { code: ErrorCodes
|
|
13016
|
+
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
13041
13017
|
case 14:
|
|
13042
13018
|
// Emit update event
|
|
13043
13019
|
if (!opts || opts.emitEvent !== false) {
|
|
@@ -13814,7 +13790,7 @@
|
|
|
13814
13790
|
}(StartableService));
|
|
13815
13791
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
13816
13792
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
13817
|
-
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" });
|
|
13818
13794
|
EntitiesStorage.decorators = [
|
|
13819
13795
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
13820
13796
|
];
|
|
@@ -13970,10 +13946,10 @@
|
|
|
13970
13946
|
function referentialsToString(values, properties, separator) {
|
|
13971
13947
|
return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
|
|
13972
13948
|
}
|
|
13973
|
-
var ɵ0$
|
|
13949
|
+
var ɵ0$a = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
13974
13950
|
var StatusList = Object.freeze([
|
|
13975
13951
|
{
|
|
13976
|
-
id: ɵ0$
|
|
13952
|
+
id: ɵ0$a,
|
|
13977
13953
|
icon: 'checkmark',
|
|
13978
13954
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
13979
13955
|
},
|
|
@@ -14276,7 +14252,7 @@
|
|
|
14276
14252
|
(data.lastName || '')) || '';
|
|
14277
14253
|
}
|
|
14278
14254
|
|
|
14279
|
-
var uuidv4 = uuidv4Imported__namespace;
|
|
14255
|
+
var uuidv4$1 = uuidv4Imported__namespace;
|
|
14280
14256
|
var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
14281
14257
|
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
14282
14258
|
/**
|
|
@@ -14320,7 +14296,7 @@
|
|
|
14320
14296
|
// Skip if not tracked
|
|
14321
14297
|
if (!context || !context.tracked)
|
|
14322
14298
|
return forward(operation);
|
|
14323
|
-
var id = context.serializationKey || uuidv4();
|
|
14299
|
+
var id = context.serializationKey || uuidv4$1();
|
|
14324
14300
|
console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
|
|
14325
14301
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
14326
14302
|
var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -14951,14 +14927,14 @@
|
|
|
14951
14927
|
mutationLinks = void 0;
|
|
14952
14928
|
// Add queue to store tracked queries, when offline
|
|
14953
14929
|
if (enableTrackMutationQueries) {
|
|
14954
|
-
serializingLink = new SerializingLink__default[
|
|
14930
|
+
serializingLink = new SerializingLink__default['default']();
|
|
14955
14931
|
trackerLink = createTrackerLink({
|
|
14956
14932
|
storage: storage,
|
|
14957
14933
|
onNetworkStatusChange: this._networkStatusChanged$,
|
|
14958
14934
|
debounce: 1000,
|
|
14959
14935
|
debug: true
|
|
14960
14936
|
});
|
|
14961
|
-
queueLink_1 = new QueueLink__default[
|
|
14937
|
+
queueLink_1 = new QueueLink__default['default']();
|
|
14962
14938
|
this.registerSubscription(this._networkStatusChanged$
|
|
14963
14939
|
.subscribe(function (type) {
|
|
14964
14940
|
// Network is offline: start buffering into queue
|
|
@@ -14973,7 +14949,7 @@
|
|
|
14973
14949
|
}
|
|
14974
14950
|
}));
|
|
14975
14951
|
mutationLinks = [
|
|
14976
|
-
loggerLink__default[
|
|
14952
|
+
loggerLink__default['default'],
|
|
14977
14953
|
queueLink_1,
|
|
14978
14954
|
trackerLink,
|
|
14979
14955
|
queueLink_1,
|
|
@@ -15080,7 +15056,7 @@
|
|
|
15080
15056
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
15081
15057
|
|| this.toAppError(err.networkError)
|
|
15082
15058
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
15083
|
-
|| this.createAppErrorByCode(ErrorCodes
|
|
15059
|
+
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
15084
15060
|
// If graphQL: try to convert the first error found
|
|
15085
15061
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
15086
15062
|
|| this.toAppError(err)
|
|
@@ -15088,7 +15064,7 @@
|
|
|
15088
15064
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
15089
15065
|
|| err;
|
|
15090
15066
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
15091
|
-
if (error && error.code === ErrorCodes
|
|
15067
|
+
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
15092
15068
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
15093
15069
|
this.onNetworkError.next(error);
|
|
15094
15070
|
}
|
|
@@ -15124,7 +15100,7 @@
|
|
|
15124
15100
|
return 'ERROR.UNAUTHORIZED';
|
|
15125
15101
|
case ServerErrorCodes.FORBIDDEN:
|
|
15126
15102
|
return 'ERROR.FORBIDDEN';
|
|
15127
|
-
case ErrorCodes
|
|
15103
|
+
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
15128
15104
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
15129
15105
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
15130
15106
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -15156,7 +15132,7 @@
|
|
|
15156
15132
|
};
|
|
15157
15133
|
return GraphqlService;
|
|
15158
15134
|
}(StartableService));
|
|
15159
|
-
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" });
|
|
15160
15136
|
GraphqlService.decorators = [
|
|
15161
15137
|
{ type: i0.Injectable, args: [{
|
|
15162
15138
|
providedIn: 'root'
|
|
@@ -15173,7 +15149,7 @@
|
|
|
15173
15149
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
15174
15150
|
]; };
|
|
15175
15151
|
|
|
15176
|
-
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
15152
|
+
var sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
15177
15153
|
var BaseGraphqlServiceOptions = /** @class */ (function () {
|
|
15178
15154
|
function BaseGraphqlServiceOptions() {
|
|
15179
15155
|
}
|
|
@@ -15343,8 +15319,8 @@
|
|
|
15343
15319
|
};
|
|
15344
15320
|
/* -- protected methods -- */
|
|
15345
15321
|
BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
|
|
15346
|
-
var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
15347
|
-
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) || '';
|
|
15348
15324
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
15349
15325
|
};
|
|
15350
15326
|
BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
|
|
@@ -15413,19 +15389,19 @@
|
|
|
15413
15389
|
/* ------------------------------------
|
|
15414
15390
|
* GraphQL queries
|
|
15415
15391
|
* ------------------------------------*/
|
|
15416
|
-
var Fragments
|
|
15417
|
-
account: core.gql(templateObject_1
|
|
15418
|
-
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 }"])))
|
|
15419
15395
|
};
|
|
15420
15396
|
// Load account query
|
|
15421
|
-
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);
|
|
15422
15398
|
// Check email query
|
|
15423
|
-
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"])));
|
|
15424
15400
|
// Save (create or update) account mutation
|
|
15425
15401
|
var AccountMutations = {
|
|
15426
|
-
save: core.gql(templateObject_5
|
|
15427
|
-
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
|
|
15428
|
-
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)
|
|
15429
15405
|
};
|
|
15430
15406
|
// Sent confirmation email
|
|
15431
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"])));
|
|
@@ -15795,7 +15771,7 @@
|
|
|
15795
15771
|
error_3 = _b.sent();
|
|
15796
15772
|
console.error(error_3);
|
|
15797
15773
|
this.resetData();
|
|
15798
|
-
throw { code: ErrorCodes
|
|
15774
|
+
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
15799
15775
|
case 4:
|
|
15800
15776
|
// Store pubkey+keypair
|
|
15801
15777
|
this._cache.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -15831,7 +15807,7 @@
|
|
|
15831
15807
|
return [3 /*break*/, 18];
|
|
15832
15808
|
case 11:
|
|
15833
15809
|
err_1 = _b.sent();
|
|
15834
|
-
if (!(err_1 && +(err_1.code) === ErrorCodes
|
|
15810
|
+
if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
15835
15811
|
if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
|
|
15836
15812
|
isEmailExists = void 0;
|
|
15837
15813
|
_b.label = 12;
|
|
@@ -15847,12 +15823,12 @@
|
|
|
15847
15823
|
case 15:
|
|
15848
15824
|
// Email not exists (no account)
|
|
15849
15825
|
if (!isEmailExists) {
|
|
15850
|
-
throw { code: ErrorCodes
|
|
15826
|
+
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
15851
15827
|
}
|
|
15852
15828
|
_b.label = 16;
|
|
15853
15829
|
case 16:
|
|
15854
15830
|
// Email exists, so error = 'bad password'
|
|
15855
|
-
throw { code: ErrorCodes
|
|
15831
|
+
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
15856
15832
|
case 17: throw err_1; // resend the first error
|
|
15857
15833
|
case 18:
|
|
15858
15834
|
_b.trys.push([18, 20, , 21]);
|
|
@@ -16048,8 +16024,8 @@
|
|
|
16048
16024
|
_b.label = 3;
|
|
16049
16025
|
case 3: return [3 /*break*/, 6];
|
|
16050
16026
|
case 4: return [4 /*yield*/, this.graphql.query({
|
|
16051
|
-
query: LoadQuery
|
|
16052
|
-
error: { code: ErrorCodes
|
|
16027
|
+
query: LoadQuery,
|
|
16028
|
+
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
16053
16029
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
16054
16030
|
})];
|
|
16055
16031
|
case 5:
|
|
@@ -16087,7 +16063,7 @@
|
|
|
16087
16063
|
case 1:
|
|
16088
16064
|
isEmailExists = _b.sent();
|
|
16089
16065
|
if (isEmailExists) {
|
|
16090
|
-
throw { code: ErrorCodes
|
|
16066
|
+
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
16091
16067
|
}
|
|
16092
16068
|
return [2 /*return*/];
|
|
16093
16069
|
}
|
|
@@ -16137,7 +16113,7 @@
|
|
|
16137
16113
|
locale: locale
|
|
16138
16114
|
},
|
|
16139
16115
|
error: {
|
|
16140
|
-
code: ErrorCodes
|
|
16116
|
+
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
16141
16117
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
16142
16118
|
}
|
|
16143
16119
|
})];
|
|
@@ -16160,7 +16136,7 @@
|
|
|
16160
16136
|
code: code
|
|
16161
16137
|
},
|
|
16162
16138
|
error: {
|
|
16163
|
-
code: ErrorCodes
|
|
16139
|
+
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
16164
16140
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
16165
16141
|
}
|
|
16166
16142
|
})];
|
|
@@ -16260,7 +16236,7 @@
|
|
|
16260
16236
|
throw error_7;
|
|
16261
16237
|
console.error(error_7);
|
|
16262
16238
|
throw {
|
|
16263
|
-
code: ErrorCodes
|
|
16239
|
+
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
16264
16240
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
16265
16241
|
};
|
|
16266
16242
|
case 6: return [2 /*return*/];
|
|
@@ -16471,7 +16447,7 @@
|
|
|
16471
16447
|
case 1:
|
|
16472
16448
|
existingAccount = _b.sent();
|
|
16473
16449
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
16474
|
-
throw { code: ErrorCodes
|
|
16450
|
+
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
16475
16451
|
}
|
|
16476
16452
|
this.copyIdAndUpdateDate(existingAccount, account);
|
|
16477
16453
|
_b.label = 2;
|
|
@@ -16483,7 +16459,7 @@
|
|
|
16483
16459
|
mutation: isNew ? AccountMutations.create : AccountMutations.save,
|
|
16484
16460
|
variables: { data: json },
|
|
16485
16461
|
error: {
|
|
16486
|
-
code: ErrorCodes
|
|
16462
|
+
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
16487
16463
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
16488
16464
|
}
|
|
16489
16465
|
})];
|
|
@@ -16517,7 +16493,7 @@
|
|
|
16517
16493
|
mutation: AccountMutations.saveSettings,
|
|
16518
16494
|
variables: { data: json },
|
|
16519
16495
|
error: {
|
|
16520
|
-
code: ErrorCodes
|
|
16496
|
+
code: ErrorCodes.SAVE_SETTINGS_ERROR,
|
|
16521
16497
|
message: 'ERROR.SAVE_SETTINGS_ERROR'
|
|
16522
16498
|
}
|
|
16523
16499
|
})];
|
|
@@ -16548,7 +16524,7 @@
|
|
|
16548
16524
|
if (counter > 4) {
|
|
16549
16525
|
if (this._debug)
|
|
16550
16526
|
console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
|
|
16551
|
-
throw { code: ErrorCodes
|
|
16527
|
+
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
16552
16528
|
}
|
|
16553
16529
|
if (!token) return [3 /*break*/, 2];
|
|
16554
16530
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -16557,7 +16533,7 @@
|
|
|
16557
16533
|
token: token
|
|
16558
16534
|
},
|
|
16559
16535
|
error: {
|
|
16560
|
-
code: ErrorCodes
|
|
16536
|
+
code: ErrorCodes.UNAUTHORIZED,
|
|
16561
16537
|
message: 'ERROR.UNAUTHORIZED'
|
|
16562
16538
|
},
|
|
16563
16539
|
fetchPolicy: 'no-cache'
|
|
@@ -16574,7 +16550,7 @@
|
|
|
16574
16550
|
_b.label = 2;
|
|
16575
16551
|
case 2:
|
|
16576
16552
|
challengeError = {
|
|
16577
|
-
code: ErrorCodes
|
|
16553
|
+
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
16578
16554
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
16579
16555
|
};
|
|
16580
16556
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -16661,7 +16637,7 @@
|
|
|
16661
16637
|
query: AccountSubscriptions.listenChanges,
|
|
16662
16638
|
variables: variables,
|
|
16663
16639
|
error: {
|
|
16664
|
-
code: ErrorCodes
|
|
16640
|
+
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
16665
16641
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ERROR'
|
|
16666
16642
|
}
|
|
16667
16643
|
}).pipe(operators.map(function (_b) {
|
|
@@ -16694,7 +16670,7 @@
|
|
|
16694
16670
|
};
|
|
16695
16671
|
return AccountService;
|
|
16696
16672
|
}(BaseGraphqlService));
|
|
16697
|
-
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" });
|
|
16698
16674
|
AccountService.decorators = [
|
|
16699
16675
|
{ type: i0.Injectable, args: [{ providedIn: 'root', deps: [ENVIRONMENT] },] }
|
|
16700
16676
|
];
|
|
@@ -16709,7 +16685,7 @@
|
|
|
16709
16685
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] },
|
|
16710
16686
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
16711
16687
|
]; };
|
|
16712
|
-
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;
|
|
16713
16689
|
|
|
16714
16690
|
var Software_1, Configuration_1;
|
|
16715
16691
|
// @dynamic
|
|
@@ -16961,13 +16937,13 @@
|
|
|
16961
16937
|
/* ------------------------------------
|
|
16962
16938
|
* GraphQL queries
|
|
16963
16939
|
* ------------------------------------*/
|
|
16964
|
-
var Fragments = {
|
|
16965
|
-
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 "])))
|
|
16966
16942
|
};
|
|
16967
|
-
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);
|
|
16968
16944
|
// Save (create or update) account mutation
|
|
16969
|
-
var SaveMutation = core.gql(templateObject_3$
|
|
16970
|
-
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"])));
|
|
16971
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"])));
|
|
16972
16948
|
var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
|
|
16973
16949
|
var ConfigService = /** @class */ (function (_super) {
|
|
@@ -17027,12 +17003,12 @@
|
|
|
17027
17003
|
case 0:
|
|
17028
17004
|
now = Date.now();
|
|
17029
17005
|
console.debug('[config] Loading Pod configuration...');
|
|
17030
|
-
query = opts && opts.query || LoadQuery;
|
|
17006
|
+
query = opts && opts.query || LoadQuery$1;
|
|
17031
17007
|
variables = opts && opts.variables || undefined;
|
|
17032
17008
|
return [4 /*yield*/, this.graphql.query({
|
|
17033
17009
|
query: query,
|
|
17034
17010
|
variables: variables,
|
|
17035
|
-
error: { code: ErrorCodes
|
|
17011
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17036
17012
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
17037
17013
|
})];
|
|
17038
17014
|
case 1:
|
|
@@ -17074,7 +17050,7 @@
|
|
|
17074
17050
|
data: json
|
|
17075
17051
|
},
|
|
17076
17052
|
error: {
|
|
17077
|
-
code: ErrorCodes
|
|
17053
|
+
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
17078
17054
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
17079
17055
|
}
|
|
17080
17056
|
})];
|
|
@@ -17109,7 +17085,7 @@
|
|
|
17109
17085
|
return [4 /*yield*/, this.graphql.query({
|
|
17110
17086
|
query: CacheStatistics,
|
|
17111
17087
|
variables: null,
|
|
17112
|
-
error: { code: ErrorCodes
|
|
17088
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17113
17089
|
fetchPolicy: 'network-only'
|
|
17114
17090
|
})];
|
|
17115
17091
|
case 1:
|
|
@@ -17133,7 +17109,7 @@
|
|
|
17133
17109
|
return [4 /*yield*/, this.graphql.query({
|
|
17134
17110
|
query: ClearCache,
|
|
17135
17111
|
variables: variables,
|
|
17136
|
-
error: { code: ErrorCodes
|
|
17112
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17137
17113
|
fetchPolicy: 'network-only'
|
|
17138
17114
|
})];
|
|
17139
17115
|
case 1:
|
|
@@ -17333,7 +17309,7 @@
|
|
|
17333
17309
|
};
|
|
17334
17310
|
return ConfigService;
|
|
17335
17311
|
}(BaseGraphqlService));
|
|
17336
|
-
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" });
|
|
17337
17313
|
ConfigService.decorators = [
|
|
17338
17314
|
{ type: i0.Injectable, args: [{
|
|
17339
17315
|
providedIn: 'root',
|
|
@@ -17352,9 +17328,9 @@
|
|
|
17352
17328
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
17353
17329
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
17354
17330
|
]; };
|
|
17355
|
-
var templateObject_1$
|
|
17331
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
|
|
17356
17332
|
|
|
17357
|
-
var moment$
|
|
17333
|
+
var moment$4 = momentImported__namespace;
|
|
17358
17334
|
var PlatformService = /** @class */ (function (_super) {
|
|
17359
17335
|
__extends(PlatformService, _super);
|
|
17360
17336
|
function PlatformService(platform, cdkPlatform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser, downloader) {
|
|
@@ -17596,16 +17572,16 @@
|
|
|
17596
17572
|
}
|
|
17597
17573
|
// config moment lib
|
|
17598
17574
|
try {
|
|
17599
|
-
moment$
|
|
17575
|
+
moment$4.locale(event.lang);
|
|
17600
17576
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
17601
17577
|
}
|
|
17602
17578
|
// If error, fallback to en
|
|
17603
17579
|
catch (err) {
|
|
17604
|
-
moment$
|
|
17580
|
+
moment$4.locale('en');
|
|
17605
17581
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
17606
17582
|
}
|
|
17607
17583
|
// Config date adapter
|
|
17608
|
-
_this.dateAdapter.setLocale(moment$
|
|
17584
|
+
_this.dateAdapter.setLocale(moment$4.locale());
|
|
17609
17585
|
}
|
|
17610
17586
|
});
|
|
17611
17587
|
this.settings.onChange.subscribe(function (data) {
|
|
@@ -17785,7 +17761,7 @@
|
|
|
17785
17761
|
};
|
|
17786
17762
|
return PlatformService;
|
|
17787
17763
|
}(StartableService));
|
|
17788
|
-
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" });
|
|
17789
17765
|
PlatformService.decorators = [
|
|
17790
17766
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
17791
17767
|
];
|
|
@@ -17883,7 +17859,7 @@
|
|
|
17883
17859
|
};
|
|
17884
17860
|
return MatStepperI18n;
|
|
17885
17861
|
}(stepper.MatStepperIntl));
|
|
17886
|
-
MatStepperI18n.ɵprov =
|
|
17862
|
+
MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
17887
17863
|
MatStepperI18n.decorators = [
|
|
17888
17864
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
17889
17865
|
];
|
|
@@ -19085,7 +19061,7 @@
|
|
|
19085
19061
|
return 1;
|
|
19086
19062
|
}
|
|
19087
19063
|
}
|
|
19088
|
-
var ɵ0$
|
|
19064
|
+
var ɵ0$b = function (defaultStateSize) { return [
|
|
19089
19065
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
19090
19066
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
19091
19067
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -19093,7 +19069,7 @@
|
|
|
19093
19069
|
var SCALE_OPTIONS_DEFAULT = {
|
|
19094
19070
|
startColor: rgbArrayMap.red,
|
|
19095
19071
|
startStates: [0, 2, 3],
|
|
19096
|
-
startStepsFn: ɵ0$
|
|
19072
|
+
startStepsFn: ɵ0$b
|
|
19097
19073
|
};
|
|
19098
19074
|
/**
|
|
19099
19075
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -19185,24 +19161,24 @@
|
|
|
19185
19161
|
return result;
|
|
19186
19162
|
}
|
|
19187
19163
|
|
|
19188
|
-
var EntityTestClass
|
|
19164
|
+
var EntityTestClass = /** @class */ (function () {
|
|
19189
19165
|
function EntityTestClass() {
|
|
19190
19166
|
}
|
|
19191
19167
|
return EntityTestClass;
|
|
19192
19168
|
}());
|
|
19193
|
-
var FAKE_ENTITIES
|
|
19169
|
+
var FAKE_ENTITIES = [
|
|
19194
19170
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
19195
19171
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
19196
19172
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
19197
19173
|
];
|
|
19198
|
-
function deepCopy
|
|
19174
|
+
function deepCopy(values, size) {
|
|
19199
19175
|
if (isNil(size)) {
|
|
19200
|
-
return (values || FAKE_ENTITIES
|
|
19176
|
+
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
19201
19177
|
}
|
|
19202
19178
|
var result = [];
|
|
19203
19179
|
var i = 1;
|
|
19204
19180
|
while (result.length < size) {
|
|
19205
|
-
result = result.concat((values || FAKE_ENTITIES
|
|
19181
|
+
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
19206
19182
|
var name = entity.name + ' #' + i;
|
|
19207
19183
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
19208
19184
|
}));
|
|
@@ -19212,7 +19188,7 @@
|
|
|
19212
19188
|
var AutocompleteTestPage = /** @class */ (function () {
|
|
19213
19189
|
function AutocompleteTestPage(formBuilder) {
|
|
19214
19190
|
this.formBuilder = formBuilder;
|
|
19215
|
-
this._items = deepCopy
|
|
19191
|
+
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
19216
19192
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
19217
19193
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
19218
19194
|
this.memoryHide = false;
|
|
@@ -19257,7 +19233,7 @@
|
|
|
19257
19233
|
});
|
|
19258
19234
|
// From items
|
|
19259
19235
|
this.autocompleteFields.add('entity-items-large', {
|
|
19260
|
-
items: FAKE_ENTITIES
|
|
19236
|
+
items: FAKE_ENTITIES.slice(),
|
|
19261
19237
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
19262
19238
|
displayWith: this.entityToString
|
|
19263
19239
|
});
|
|
@@ -19270,12 +19246,12 @@
|
|
|
19270
19246
|
var _this = this;
|
|
19271
19247
|
return __generator(this, function (_a) {
|
|
19272
19248
|
data = {
|
|
19273
|
-
entity: deepCopy
|
|
19249
|
+
entity: deepCopy(FAKE_ENTITIES)[0],
|
|
19274
19250
|
// This item is NOT in the items list => i should be displayed anyway
|
|
19275
19251
|
missingEntity: {
|
|
19276
19252
|
id: -1, label: '??', name: 'Missing item'
|
|
19277
19253
|
},
|
|
19278
|
-
disableEntity: deepCopy
|
|
19254
|
+
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
19279
19255
|
};
|
|
19280
19256
|
this.form.setValue(data);
|
|
19281
19257
|
// Load observables
|
|
@@ -19473,13 +19449,13 @@
|
|
|
19473
19449
|
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_TESTING_PAGES,] }] }
|
|
19474
19450
|
]; };
|
|
19475
19451
|
|
|
19476
|
-
var moment$
|
|
19452
|
+
var moment$5 = momentImported__namespace;
|
|
19477
19453
|
var SwipeTestPage = /** @class */ (function () {
|
|
19478
19454
|
function SwipeTestPage(formBuilder, dateFormatPipe) {
|
|
19479
19455
|
this.formBuilder = formBuilder;
|
|
19480
19456
|
this.dateFormatPipe = dateFormatPipe;
|
|
19481
19457
|
this.$dates = new rxjs.BehaviorSubject(undefined);
|
|
19482
|
-
this._today = moment$
|
|
19458
|
+
this._today = moment$5().startOf('day');
|
|
19483
19459
|
this.form = formBuilder.group({
|
|
19484
19460
|
empty: [null, i1.Validators.required],
|
|
19485
19461
|
date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
|
|
@@ -19493,7 +19469,7 @@
|
|
|
19493
19469
|
var _this = this;
|
|
19494
19470
|
var dates = [];
|
|
19495
19471
|
for (var d = 0; d < 7; d++) {
|
|
19496
|
-
dates[d] = moment$
|
|
19472
|
+
dates[d] = moment$5(this._today).add(d - 3, 'day');
|
|
19497
19473
|
}
|
|
19498
19474
|
this.$dates.next(dates);
|
|
19499
19475
|
this.loadData();
|
|
@@ -19540,7 +19516,7 @@
|
|
|
19540
19516
|
{ type: DateFormatPipe }
|
|
19541
19517
|
]; };
|
|
19542
19518
|
|
|
19543
|
-
var moment = momentImported__namespace;
|
|
19519
|
+
var moment$6 = momentImported__namespace;
|
|
19544
19520
|
var DateTimeTestPage = /** @class */ (function () {
|
|
19545
19521
|
function DateTimeTestPage(platform, formBuilder, cd) {
|
|
19546
19522
|
this.platform = platform;
|
|
@@ -19576,7 +19552,7 @@
|
|
|
19576
19552
|
var now, data;
|
|
19577
19553
|
var _this = this;
|
|
19578
19554
|
return __generator(this, function (_a) {
|
|
19579
|
-
now = moment();
|
|
19555
|
+
now = moment$6();
|
|
19580
19556
|
data = {
|
|
19581
19557
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
19582
19558
|
enable: toDateISOString(now),
|
|
@@ -19641,12 +19617,12 @@
|
|
|
19641
19617
|
{ type: i0.ChangeDetectorRef }
|
|
19642
19618
|
]; };
|
|
19643
19619
|
|
|
19644
|
-
var EntityTestClass = /** @class */ (function () {
|
|
19620
|
+
var EntityTestClass$1 = /** @class */ (function () {
|
|
19645
19621
|
function EntityTestClass() {
|
|
19646
19622
|
}
|
|
19647
19623
|
return EntityTestClass;
|
|
19648
19624
|
}());
|
|
19649
|
-
var FAKE_ENTITIES = [
|
|
19625
|
+
var FAKE_ENTITIES$1 = [
|
|
19650
19626
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
19651
19627
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
19652
19628
|
{ id: 3, label: 'CCC', name: 'Item C' },
|
|
@@ -19655,14 +19631,14 @@
|
|
|
19655
19631
|
{ id: 6, label: 'FFF', name: 'Item F' },
|
|
19656
19632
|
{ id: 7, label: 'GGG', name: 'Item G' }
|
|
19657
19633
|
];
|
|
19658
|
-
function deepCopy(values, size) {
|
|
19634
|
+
function deepCopy$1(values, size) {
|
|
19659
19635
|
if (isNil(size)) {
|
|
19660
|
-
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
19636
|
+
return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
|
|
19661
19637
|
}
|
|
19662
19638
|
var result = [];
|
|
19663
19639
|
var i = 1;
|
|
19664
19640
|
while (result.length < size) {
|
|
19665
|
-
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
19641
|
+
result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
|
|
19666
19642
|
var name = entity.name + ' #' + i;
|
|
19667
19643
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
19668
19644
|
}));
|
|
@@ -19672,7 +19648,7 @@
|
|
|
19672
19648
|
var ChipsTestPage = /** @class */ (function () {
|
|
19673
19649
|
function ChipsTestPage(formBuilder) {
|
|
19674
19650
|
this.formBuilder = formBuilder;
|
|
19675
|
-
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
19651
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
|
|
19676
19652
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
19677
19653
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
19678
19654
|
this.form = formBuilder.group({
|
|
@@ -19715,7 +19691,7 @@
|
|
|
19715
19691
|
var items, data;
|
|
19716
19692
|
var _this = this;
|
|
19717
19693
|
return __generator(this, function (_a) {
|
|
19718
|
-
items = deepCopy(FAKE_ENTITIES);
|
|
19694
|
+
items = deepCopy$1(FAKE_ENTITIES$1);
|
|
19719
19695
|
data = {
|
|
19720
19696
|
entity: items.slice(0, 1),
|
|
19721
19697
|
entityInitial: items.slice(1, 2),
|
|
@@ -19807,7 +19783,7 @@
|
|
|
19807
19783
|
},] }
|
|
19808
19784
|
];
|
|
19809
19785
|
|
|
19810
|
-
var routes
|
|
19786
|
+
var routes = [
|
|
19811
19787
|
{
|
|
19812
19788
|
path: '',
|
|
19813
19789
|
pathMatch: 'full',
|
|
@@ -19862,7 +19838,7 @@
|
|
|
19862
19838
|
i1.ReactiveFormsModule,
|
|
19863
19839
|
SharedMaterialModule,
|
|
19864
19840
|
i1$2.TranslateModule.forChild(),
|
|
19865
|
-
i3.RouterModule.forChild(routes
|
|
19841
|
+
i3.RouterModule.forChild(routes)
|
|
19866
19842
|
],
|
|
19867
19843
|
declarations: [
|
|
19868
19844
|
MaterialTestingPage,
|
|
@@ -20688,6 +20664,7 @@
|
|
|
20688
20664
|
var HomePage = /** @class */ (function () {
|
|
20689
20665
|
function HomePage(accountService, modalCtrl, translate, toastController, configService, platform, cd, network, settings, environment, locales, buttons) {
|
|
20690
20666
|
var _this = this;
|
|
20667
|
+
var _a;
|
|
20691
20668
|
this.accountService = accountService;
|
|
20692
20669
|
this.modalCtrl = modalCtrl;
|
|
20693
20670
|
this.translate = translate;
|
|
@@ -20713,6 +20690,7 @@
|
|
|
20713
20690
|
this._debug = !environment.production;
|
|
20714
20691
|
this.showSpinner = !this.platform.started;
|
|
20715
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);
|
|
20716
20694
|
}
|
|
20717
20695
|
Object.defineProperty(HomePage.prototype, "currentLocaleCode", {
|
|
20718
20696
|
get: function () {
|
|
@@ -20728,13 +20706,13 @@
|
|
|
20728
20706
|
HomePage.prototype.login = function () {
|
|
20729
20707
|
return __awaiter(this, void 0, void 0, function () {
|
|
20730
20708
|
var modal;
|
|
20731
|
-
return __generator(this, function (
|
|
20732
|
-
switch (
|
|
20709
|
+
return __generator(this, function (_b) {
|
|
20710
|
+
switch (_b.label) {
|
|
20733
20711
|
case 0: return [4 /*yield*/, this.modalCtrl.create({
|
|
20734
20712
|
component: AuthModal
|
|
20735
20713
|
})];
|
|
20736
20714
|
case 1:
|
|
20737
|
-
modal =
|
|
20715
|
+
modal = _b.sent();
|
|
20738
20716
|
return [2 /*return*/, modal.present()];
|
|
20739
20717
|
}
|
|
20740
20718
|
});
|
|
@@ -20743,14 +20721,14 @@
|
|
|
20743
20721
|
HomePage.prototype.register = function () {
|
|
20744
20722
|
return __awaiter(this, void 0, void 0, function () {
|
|
20745
20723
|
var modal;
|
|
20746
|
-
return __generator(this, function (
|
|
20747
|
-
switch (
|
|
20724
|
+
return __generator(this, function (_b) {
|
|
20725
|
+
switch (_b.label) {
|
|
20748
20726
|
case 0: return [4 /*yield*/, this.modalCtrl.create({
|
|
20749
20727
|
component: RegisterModal,
|
|
20750
20728
|
backdropDismiss: false
|
|
20751
20729
|
})];
|
|
20752
20730
|
case 1:
|
|
20753
|
-
modal =
|
|
20731
|
+
modal = _b.sent();
|
|
20754
20732
|
return [2 /*return*/, modal.present()];
|
|
20755
20733
|
}
|
|
20756
20734
|
});
|
|
@@ -20758,16 +20736,16 @@
|
|
|
20758
20736
|
};
|
|
20759
20737
|
HomePage.prototype.logout = function (event) {
|
|
20760
20738
|
return __awaiter(this, void 0, void 0, function () {
|
|
20761
|
-
return __generator(this, function (
|
|
20762
|
-
switch (
|
|
20739
|
+
return __generator(this, function (_b) {
|
|
20740
|
+
switch (_b.label) {
|
|
20763
20741
|
case 0: return [4 /*yield*/, this.accountService.logout()];
|
|
20764
20742
|
case 1:
|
|
20765
|
-
|
|
20743
|
+
_b.sent();
|
|
20766
20744
|
if (!this.offline) return [3 /*break*/, 3];
|
|
20767
20745
|
return [4 /*yield*/, this.tryOnline()];
|
|
20768
20746
|
case 2:
|
|
20769
|
-
|
|
20770
|
-
|
|
20747
|
+
_b.sent();
|
|
20748
|
+
_b.label = 3;
|
|
20771
20749
|
case 3: return [2 /*return*/];
|
|
20772
20750
|
}
|
|
20773
20751
|
});
|
|
@@ -20800,13 +20778,13 @@
|
|
|
20800
20778
|
/* -- protected method -- */
|
|
20801
20779
|
HomePage.prototype.start = function () {
|
|
20802
20780
|
return __awaiter(this, void 0, void 0, function () {
|
|
20803
|
-
var
|
|
20781
|
+
var _b, _c, _d, _e, _f, _g;
|
|
20804
20782
|
var _this = this;
|
|
20805
|
-
return __generator(this, function (
|
|
20806
|
-
switch (
|
|
20783
|
+
return __generator(this, function (_h) {
|
|
20784
|
+
switch (_h.label) {
|
|
20807
20785
|
case 0: return [4 /*yield*/, this.accountService.ready()];
|
|
20808
20786
|
case 1:
|
|
20809
|
-
|
|
20787
|
+
_h.sent();
|
|
20810
20788
|
this.isLogin = this.accountService.isLogin();
|
|
20811
20789
|
if (this.isLogin) {
|
|
20812
20790
|
this.onLogin(this.accountService.account);
|
|
@@ -20818,20 +20796,20 @@
|
|
|
20818
20796
|
// Listen pod config
|
|
20819
20797
|
this._subscription.add(this.configService.config.subscribe(function (config) { return _this.onConfigLoaded(config); }));
|
|
20820
20798
|
// Listen settings changes
|
|
20821
|
-
|
|
20822
|
-
|
|
20799
|
+
_c = (_b = this._subscription).add;
|
|
20800
|
+
_e = (_d = this.settings.onChange)
|
|
20823
20801
|
.pipe;
|
|
20824
|
-
|
|
20802
|
+
_f = [
|
|
20825
20803
|
// Add a delay, to avoid to apply changes to often
|
|
20826
20804
|
operators.debounceTime(3000)];
|
|
20827
20805
|
// Start with current settings
|
|
20828
|
-
|
|
20806
|
+
_g = operators.startWith;
|
|
20829
20807
|
return [4 /*yield*/, this.settings.ready()];
|
|
20830
20808
|
case 2:
|
|
20831
20809
|
// Listen settings changes
|
|
20832
|
-
|
|
20810
|
+
_c.apply(_b, [_e.apply(_d, _f.concat([
|
|
20833
20811
|
// Start with current settings
|
|
20834
|
-
|
|
20812
|
+
_g.apply(void 0, [_h.sent()])]))
|
|
20835
20813
|
.subscribe(function (res) { return _this.onSettingsChanged(res); })]);
|
|
20836
20814
|
// Listen network changes
|
|
20837
20815
|
this._subscription.add(this.network.onNetworkStatusChanges
|
|
@@ -20851,11 +20829,11 @@
|
|
|
20851
20829
|
};
|
|
20852
20830
|
HomePage.prototype.showToast = function (opts) {
|
|
20853
20831
|
return __awaiter(this, void 0, void 0, function () {
|
|
20854
|
-
return __generator(this, function (
|
|
20855
|
-
switch (
|
|
20832
|
+
return __generator(this, function (_b) {
|
|
20833
|
+
switch (_b.label) {
|
|
20856
20834
|
case 0: return [4 /*yield*/, Toasts.show(this.toastController, this.translate, opts)];
|
|
20857
20835
|
case 1:
|
|
20858
|
-
|
|
20836
|
+
_b.sent();
|
|
20859
20837
|
return [2 /*return*/];
|
|
20860
20838
|
}
|
|
20861
20839
|
});
|
|
@@ -20957,7 +20935,7 @@
|
|
|
20957
20935
|
{ type: i0.Component, args: [{
|
|
20958
20936
|
moduleId: module.id.toString(),
|
|
20959
20937
|
selector: 'app-page-home',
|
|
20960
|
-
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",
|
|
20961
20939
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
20962
20940
|
animations: [fadeInAnimation, slideUpDownAnimation],
|
|
20963
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)}}"]
|
|
@@ -20973,7 +20951,7 @@
|
|
|
20973
20951
|
{ type: i0.ChangeDetectorRef },
|
|
20974
20952
|
{ type: NetworkService },
|
|
20975
20953
|
{ type: LocalSettingsService },
|
|
20976
|
-
{ type:
|
|
20954
|
+
{ type: Environment, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
20977
20955
|
{ type: Array, decorators: [{ type: i0.Inject, args: [APP_LOCALES,] }] },
|
|
20978
20956
|
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_HOME_BUTTONS,] }] }
|
|
20979
20957
|
]; };
|
|
@@ -21138,7 +21116,7 @@
|
|
|
21138
21116
|
};
|
|
21139
21117
|
return UserSettingsValidatorService;
|
|
21140
21118
|
}(AppValidatorService));
|
|
21141
|
-
UserSettingsValidatorService.ɵprov =
|
|
21119
|
+
UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
21142
21120
|
UserSettingsValidatorService.decorators = [
|
|
21143
21121
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21144
21122
|
];
|
|
@@ -21186,7 +21164,7 @@
|
|
|
21186
21164
|
};
|
|
21187
21165
|
return AccountValidatorService;
|
|
21188
21166
|
}(AppValidatorService));
|
|
21189
|
-
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" });
|
|
21190
21168
|
AccountValidatorService.decorators = [
|
|
21191
21169
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21192
21170
|
];
|
|
@@ -21817,7 +21795,7 @@
|
|
|
21817
21795
|
};
|
|
21818
21796
|
return LocalSettingsValidatorService;
|
|
21819
21797
|
}(AppValidatorService));
|
|
21820
|
-
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" });
|
|
21821
21799
|
LocalSettingsValidatorService.decorators = [
|
|
21822
21800
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21823
21801
|
];
|
|
@@ -22597,7 +22575,7 @@
|
|
|
22597
22575
|
};
|
|
22598
22576
|
return IsOnFieldModePipe;
|
|
22599
22577
|
}());
|
|
22600
|
-
IsOnFieldModePipe.ɵprov =
|
|
22578
|
+
IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
22601
22579
|
IsOnFieldModePipe.decorators = [
|
|
22602
22580
|
{ type: i0.Pipe, args: [{
|
|
22603
22581
|
name: 'isOnField'
|
|
@@ -22612,7 +22590,7 @@
|
|
|
22612
22590
|
};
|
|
22613
22591
|
return IsNotOnFieldModePipe;
|
|
22614
22592
|
}());
|
|
22615
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
22593
|
+
IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
22616
22594
|
IsNotOnFieldModePipe.decorators = [
|
|
22617
22595
|
{ type: i0.Pipe, args: [{
|
|
22618
22596
|
name: 'isNotOnField'
|
|
@@ -22630,7 +22608,7 @@
|
|
|
22630
22608
|
};
|
|
22631
22609
|
return PersonToStringPipe;
|
|
22632
22610
|
}());
|
|
22633
|
-
PersonToStringPipe.ɵprov =
|
|
22611
|
+
PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
22634
22612
|
PersonToStringPipe.decorators = [
|
|
22635
22613
|
{ type: i0.Pipe, args: [{
|
|
22636
22614
|
name: 'personToString'
|
|
@@ -23094,7 +23072,7 @@
|
|
|
23094
23072
|
};
|
|
23095
23073
|
return IsLoginAccountPipe;
|
|
23096
23074
|
}());
|
|
23097
|
-
IsLoginAccountPipe.ɵprov =
|
|
23075
|
+
IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
23098
23076
|
IsLoginAccountPipe.decorators = [
|
|
23099
23077
|
{ type: i0.Pipe, args: [{
|
|
23100
23078
|
name: 'isLogin'
|
|
@@ -23109,7 +23087,7 @@
|
|
|
23109
23087
|
};
|
|
23110
23088
|
return AccountToStringPipe;
|
|
23111
23089
|
}());
|
|
23112
|
-
AccountToStringPipe.ɵprov =
|
|
23090
|
+
AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
23113
23091
|
AccountToStringPipe.decorators = [
|
|
23114
23092
|
{ type: i0.Pipe, args: [{
|
|
23115
23093
|
name: 'accountToString'
|
|
@@ -23127,7 +23105,7 @@
|
|
|
23127
23105
|
};
|
|
23128
23106
|
return DepartmentToStringPipe;
|
|
23129
23107
|
}());
|
|
23130
|
-
DepartmentToStringPipe.ɵprov =
|
|
23108
|
+
DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
23131
23109
|
DepartmentToStringPipe.decorators = [
|
|
23132
23110
|
{ type: i0.Pipe, args: [{
|
|
23133
23111
|
name: 'departmentToString'
|
|
@@ -23162,7 +23140,7 @@
|
|
|
23162
23140
|
};
|
|
23163
23141
|
return MenuService;
|
|
23164
23142
|
}());
|
|
23165
|
-
MenuService.ɵprov =
|
|
23143
|
+
MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
23166
23144
|
MenuService.decorators = [
|
|
23167
23145
|
{ type: i0.Injectable, args: [{
|
|
23168
23146
|
providedIn: 'root'
|
|
@@ -23778,7 +23756,7 @@
|
|
|
23778
23756
|
};
|
|
23779
23757
|
return AuthGuardService;
|
|
23780
23758
|
}());
|
|
23781
|
-
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" });
|
|
23782
23760
|
AuthGuardService.decorators = [
|
|
23783
23761
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
23784
23762
|
];
|
|
@@ -23823,7 +23801,7 @@
|
|
|
23823
23801
|
query: query,
|
|
23824
23802
|
variables: { id: id },
|
|
23825
23803
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
23826
|
-
error: { code: ErrorCodes
|
|
23804
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
23827
23805
|
})
|
|
23828
23806
|
.pipe(operators.map(function (_b) {
|
|
23829
23807
|
var data = _b.data;
|
|
@@ -23845,7 +23823,7 @@
|
|
|
23845
23823
|
query: query,
|
|
23846
23824
|
variables: { id: id },
|
|
23847
23825
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
23848
|
-
error: { code: ErrorCodes
|
|
23826
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
23849
23827
|
})];
|
|
23850
23828
|
case 1:
|
|
23851
23829
|
data = (_b.sent()).data;
|
|
@@ -23881,7 +23859,7 @@
|
|
|
23881
23859
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
23882
23860
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
23883
23861
|
variables: variables,
|
|
23884
|
-
error: { code: ErrorCodes
|
|
23862
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
23885
23863
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
23886
23864
|
})
|
|
23887
23865
|
.pipe(operators.map(function (_b) {
|
|
@@ -23923,7 +23901,7 @@
|
|
|
23923
23901
|
return [4 /*yield*/, this.graphql.query({
|
|
23924
23902
|
query: query,
|
|
23925
23903
|
variables: variables,
|
|
23926
|
-
error: { code: ErrorCodes
|
|
23904
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
23927
23905
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
23928
23906
|
})];
|
|
23929
23907
|
case 1:
|
|
@@ -23971,7 +23949,7 @@
|
|
|
23971
23949
|
variables: {
|
|
23972
23950
|
filter: filter && filter.asPodObject()
|
|
23973
23951
|
},
|
|
23974
|
-
error: { code: ErrorCodes
|
|
23952
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
23975
23953
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
23976
23954
|
})];
|
|
23977
23955
|
case 3:
|
|
@@ -24016,7 +23994,7 @@
|
|
|
24016
23994
|
variables: {
|
|
24017
23995
|
data: json
|
|
24018
23996
|
},
|
|
24019
|
-
error: { code: ErrorCodes
|
|
23997
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
24020
23998
|
update: function (proxy, _b) {
|
|
24021
23999
|
var data = _b.data;
|
|
24022
24000
|
var savedEntities = data && data.data;
|
|
@@ -24083,7 +24061,7 @@
|
|
|
24083
24061
|
variables: {
|
|
24084
24062
|
data: json
|
|
24085
24063
|
},
|
|
24086
|
-
error: { code: ErrorCodes
|
|
24064
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
24087
24065
|
update: function (cache, _b) {
|
|
24088
24066
|
var data = _b.data;
|
|
24089
24067
|
// Update entity
|
|
@@ -24141,7 +24119,7 @@
|
|
|
24141
24119
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
24142
24120
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
24143
24121
|
variables: { ids: ids },
|
|
24144
|
-
error: { code: ErrorCodes
|
|
24122
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
24145
24123
|
update: function (cache, res) {
|
|
24146
24124
|
// Remove from cache
|
|
24147
24125
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -24194,7 +24172,7 @@
|
|
|
24194
24172
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
24195
24173
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
24196
24174
|
variables: { id: id },
|
|
24197
|
-
error: { code: ErrorCodes
|
|
24175
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
24198
24176
|
update: function (proxy, res) {
|
|
24199
24177
|
// Remove from cache
|
|
24200
24178
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -24233,7 +24211,7 @@
|
|
|
24233
24211
|
query: opts && opts.query || this.subscriptions.listenChanges,
|
|
24234
24212
|
variables: variables,
|
|
24235
24213
|
error: {
|
|
24236
|
-
code: ErrorCodes
|
|
24214
|
+
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
24237
24215
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
24238
24216
|
}
|
|
24239
24217
|
})
|
|
@@ -24456,7 +24434,7 @@
|
|
|
24456
24434
|
if (this._debug)
|
|
24457
24435
|
invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
|
|
24458
24436
|
// Stop with an error
|
|
24459
|
-
throw { code: ErrorCodes
|
|
24437
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
24460
24438
|
}
|
|
24461
24439
|
this._editingRowCount = 0;
|
|
24462
24440
|
data = void 0;
|
|
@@ -25469,14 +25447,14 @@
|
|
|
25469
25447
|
case 0:
|
|
25470
25448
|
opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
|
|
25471
25449
|
if (this.readOnly) {
|
|
25472
|
-
throw { code: ErrorCodes
|
|
25450
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25473
25451
|
}
|
|
25474
25452
|
this.resetError();
|
|
25475
25453
|
// Keep edited row id (should be done BEFORE confirmEditCreate() )
|
|
25476
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));
|
|
25477
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);
|
|
25478
25456
|
if (!this.confirmEditCreate()) {
|
|
25479
|
-
throw { code: ErrorCodes
|
|
25457
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
25480
25458
|
}
|
|
25481
25459
|
// Mark as saving
|
|
25482
25460
|
this.markAsSaving();
|
|
@@ -25631,7 +25609,7 @@
|
|
|
25631
25609
|
switch (_e.label) {
|
|
25632
25610
|
case 0:
|
|
25633
25611
|
if (this.readOnly) {
|
|
25634
|
-
throw { code: ErrorCodes
|
|
25612
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25635
25613
|
}
|
|
25636
25614
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
25637
25615
|
return [2 /*return*/, 0]; // SKip
|
|
@@ -27478,7 +27456,7 @@
|
|
|
27478
27456
|
case 8:
|
|
27479
27457
|
data = _c.sent();
|
|
27480
27458
|
if (!data)
|
|
27481
|
-
throw { code: ErrorCodes
|
|
27459
|
+
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
27482
27460
|
this._usageMode = this.computeUsageMode(data);
|
|
27483
27461
|
return [4 /*yield*/, this.onEntityLoaded(data, opts)];
|
|
27484
27462
|
case 9:
|
|
@@ -28252,10 +28230,10 @@
|
|
|
28252
28230
|
exports.UserEventFilter = __decorate([
|
|
28253
28231
|
EntityClass({ typename: 'UserEventVO' })
|
|
28254
28232
|
], exports.UserEventFilter);
|
|
28255
|
-
var SaveQuery = core.gql(templateObject_1$
|
|
28256
|
-
var LoadAllQuery = core.gql(templateObject_2$
|
|
28257
|
-
var DeleteByIdsMutation = core.gql(templateObject_3$
|
|
28258
|
-
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);
|
|
28259
28237
|
var UserEventService = /** @class */ (function (_super) {
|
|
28260
28238
|
__extends(UserEventService, _super);
|
|
28261
28239
|
function UserEventService(graphql, accountService, network, translate, toastController, environment) {
|
|
@@ -28576,7 +28554,7 @@
|
|
|
28576
28554
|
};
|
|
28577
28555
|
return UserEventService;
|
|
28578
28556
|
}(BaseGraphqlService));
|
|
28579
|
-
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" });
|
|
28580
28558
|
UserEventService.decorators = [
|
|
28581
28559
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
28582
28560
|
];
|
|
@@ -28588,7 +28566,7 @@
|
|
|
28588
28566
|
{ type: i1$5.ToastController },
|
|
28589
28567
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
28590
28568
|
]; };
|
|
28591
|
-
var templateObject_1$
|
|
28569
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
|
|
28592
28570
|
|
|
28593
28571
|
var ICONS_MAP = {
|
|
28594
28572
|
DEBUG_DATA: { matIcon: 'bug_report' },
|
|
@@ -28850,16 +28828,16 @@
|
|
|
28850
28828
|
], exports.PersonFilter);
|
|
28851
28829
|
|
|
28852
28830
|
var PersonFragments = {
|
|
28853
|
-
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 }"])))
|
|
28854
28832
|
};
|
|
28855
28833
|
// Load persons query
|
|
28856
28834
|
var PersonQueries = {
|
|
28857
|
-
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),
|
|
28858
|
-
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)
|
|
28859
28837
|
};
|
|
28860
28838
|
var PersonMutations = {
|
|
28861
|
-
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),
|
|
28862
|
-
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 }"])))
|
|
28863
28841
|
};
|
|
28864
28842
|
var PersonService = /** @class */ (function (_super_1) {
|
|
28865
28843
|
__extends(PersonService, _super_1);
|
|
@@ -28983,7 +28961,7 @@
|
|
|
28983
28961
|
};
|
|
28984
28962
|
return PersonService;
|
|
28985
28963
|
}(BaseEntityService));
|
|
28986
|
-
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" });
|
|
28987
28965
|
PersonService.decorators = [
|
|
28988
28966
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
28989
28967
|
];
|
|
@@ -28993,7 +28971,7 @@
|
|
|
28993
28971
|
{ type: NetworkService },
|
|
28994
28972
|
{ type: EntitiesStorage }
|
|
28995
28973
|
]; };
|
|
28996
|
-
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;
|
|
28997
28975
|
|
|
28998
28976
|
var PersonValidatorService = /** @class */ (function () {
|
|
28999
28977
|
function PersonValidatorService(formBuilder, accountValidatorService) {
|
|
@@ -29016,7 +28994,7 @@
|
|
|
29016
28994
|
};
|
|
29017
28995
|
return PersonValidatorService;
|
|
29018
28996
|
}());
|
|
29019
|
-
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" });
|
|
29020
28998
|
PersonValidatorService.decorators = [
|
|
29021
28999
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
29022
29000
|
];
|
|
@@ -29227,16 +29205,16 @@
|
|
|
29227
29205
|
];
|
|
29228
29206
|
AdminModule.ctorParameters = function () { return []; };
|
|
29229
29207
|
|
|
29230
|
-
var ɵ0 = {
|
|
29208
|
+
var ɵ0$c = {
|
|
29231
29209
|
profile: 'ADMIN'
|
|
29232
29210
|
};
|
|
29233
|
-
var routes = [
|
|
29211
|
+
var routes$2 = [
|
|
29234
29212
|
{
|
|
29235
29213
|
path: 'users',
|
|
29236
29214
|
pathMatch: 'full',
|
|
29237
29215
|
component: UsersPage,
|
|
29238
29216
|
canActivate: [AuthGuardService],
|
|
29239
|
-
data: ɵ0
|
|
29217
|
+
data: ɵ0$c
|
|
29240
29218
|
}
|
|
29241
29219
|
];
|
|
29242
29220
|
var AdminRoutingModule = /** @class */ (function () {
|
|
@@ -29249,13 +29227,13 @@
|
|
|
29249
29227
|
imports: [
|
|
29250
29228
|
SharedRoutingModule,
|
|
29251
29229
|
AdminModule,
|
|
29252
|
-
i3.RouterModule.forChild(routes)
|
|
29230
|
+
i3.RouterModule.forChild(routes$2)
|
|
29253
29231
|
],
|
|
29254
29232
|
exports: [i3.RouterModule]
|
|
29255
29233
|
},] }
|
|
29256
29234
|
];
|
|
29257
29235
|
|
|
29258
|
-
var ErrorCodes = {
|
|
29236
|
+
var ErrorCodes$2 = {
|
|
29259
29237
|
LOAD_PERSONS_ERROR: 100,
|
|
29260
29238
|
SAVE_PERSONS_ERROR: 101,
|
|
29261
29239
|
DELETE_PERSONS_ERROR: 102,
|
|
@@ -29366,7 +29344,7 @@
|
|
|
29366
29344
|
exports.EntityStore = EntityStore;
|
|
29367
29345
|
exports.EntityUtils = EntityUtils;
|
|
29368
29346
|
exports.Environment = Environment;
|
|
29369
|
-
exports.ErrorCodes = ErrorCodes;
|
|
29347
|
+
exports.ErrorCodes = ErrorCodes$2;
|
|
29370
29348
|
exports.EvenPipe = EvenPipe;
|
|
29371
29349
|
exports.FileService = FileService;
|
|
29372
29350
|
exports.FileSizePipe = FileSizePipe;
|
|
@@ -29376,7 +29354,7 @@
|
|
|
29376
29354
|
exports.FormErrorTranslatePipe = FormErrorTranslatePipe;
|
|
29377
29355
|
exports.FormErrorTranslator = FormErrorTranslator;
|
|
29378
29356
|
exports.FormFieldValuesHolder = FormFieldValuesHolder;
|
|
29379
|
-
exports.Fragments = Fragments;
|
|
29357
|
+
exports.Fragments = Fragments$1;
|
|
29380
29358
|
exports.GraphqlService = GraphqlService;
|
|
29381
29359
|
exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
|
|
29382
29360
|
exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
|
|
@@ -29639,23 +29617,23 @@
|
|
|
29639
29617
|
exports.waitForTrue = waitForTrue;
|
|
29640
29618
|
exports.waitIdle = waitIdle;
|
|
29641
29619
|
exports.waitWhilePending = waitWhilePending;
|
|
29642
|
-
exports
|
|
29643
|
-
exports
|
|
29644
|
-
exports
|
|
29645
|
-
exports
|
|
29646
|
-
exports
|
|
29647
|
-
exports
|
|
29648
|
-
exports
|
|
29649
|
-
exports
|
|
29650
|
-
exports
|
|
29651
|
-
exports
|
|
29652
|
-
exports
|
|
29653
|
-
exports
|
|
29654
|
-
exports
|
|
29655
|
-
exports
|
|
29656
|
-
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;
|
|
29657
29635
|
|
|
29658
29636
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
29659
29637
|
|
|
29660
|
-
}));
|
|
29638
|
+
})));
|
|
29661
29639
|
//# sourceMappingURL=sumaris-net.ngx-components.umd.js.map
|