@sumaris-net/ngx-components 1.16.3 → 1.17.1-rc2
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 +307 -326
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/doc/changelog.md +3 -0
- package/esm2015/src/app/core/graphql/graphql.service.js +2 -2
- package/esm2015/src/app/core/menu/menu.component.js +3 -9
- package/esm2015/src/app/core/text-popover/text-form.component.js +2 -2
- package/esm2015/src/app/core/text-popover/text-popover.component.js +2 -2
- package/esm2015/src/app/shared/hotkeys/hotkeys.service.js +11 -7
- package/esm2015/src/app/shared/services/job.utils.js +1 -1
- package/fesm2015/sumaris-net.ngx-components.js +288 -305
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/menu/menu.component.d.ts +0 -2
- package/src/app/shared/hotkeys/hotkeys.service.d.ts +3 -2
- package/src/app/shared/services/job.utils.d.ts +1 -1
- package/src/assets/i18n/en-US.json +1 -0
- package/src/assets/i18n/en.json +1 -0
- package/src/assets/i18n/fr.json +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('moment-timezone'), require('@ionic-native/keyboard/ngx'), require('angular2-text-mask'), require('ngx-material-timepicker'), require('@angular/material/datepicker'), require('@angular/animations'), require('@angular/material/divider'), require('@angular/material/tooltip'), require('@angular/material/chips'), require('@angular/router'), require('@angular/platform-browser'), require('@angular/common/http'), require('ngx-color-picker'), require('@ionic-native/native-audio/ngx'), require('@ionic-native/vibration/ngx'), require('@ionic-native/audio-management/ngx'), require('@ionic-native/native-audio/ngx/index'), require('@ionic-native/vibration/ngx/index'), require('@ionic-native/audio-management/ngx/index'), require('uuid/v4'), require('@angular/cdk/drag-drop'), require('ngx-markdown'), require('tweetnacl'), require('@ionic/storage'), require('zone.js/dist/zone-error'), require('@ionic-native/splash-screen/ngx'), require('@ionic-native/network/ngx'), require('ionic-cache'), require('ionic-cache/dist/cache.service'), require('@ionic-native/network/ngx/index'), require('@ionic-native/splash-screen/ngx/index'), require('@ionic-native/status-bar/ngx'), require('@angular/cdk/platform'), require('@ionic-native/in-app-browser/ngx'), require('@apollo/client/core'), require('apollo-angular'), require('@apollo/client/link/ws'), require('@apollo/client/utilities'), require('@apollo/client/link/retry'), require('apollo-link-queue'), require('apollo-link-serialize'), require('apollo-link-logger'), require('apollo-angular/http'), require('apollo3-cache-persist'), require('@ionic-native/downloader/ngx'), require('@ionic-native/status-bar/ngx/index'), require('@ionic-native/keyboard/ngx/index'), require('@ionic-native/in-app-browser/ngx/index'), require('@ionic-native/downloader/ngx/index'), require('@angular/cdk/text-field'), require('@e-is/ngx-material-table'), require('@angular/cdk/collections'), require('ngx-jdenticon'), require('tweetnacl-util'), require('scrypt-async'), require('hammerjs')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@sumaris-net/ngx-components', ['exports', '@angular/core', '@angular/common', '@angular/cdk/table', '@angular/cdk/a11y', '@angular/cdk/overlay', '@angular/cdk/scrolling', '@angular/material/core', '@angular/material/table', '@angular/material/sort', '@angular/material/paginator', '@angular/material/form-field', '@angular/material/input', '@angular/material/checkbox', '@angular/material/expansion', '@angular/material/toolbar', '@angular/material/icon', '@angular/material/button', '@angular/material/menu', '@angular/material/select', '@angular/material/card', '@angular/material/tabs', '@angular/material/stepper', '@angular/material/list', '@angular/material/button-toggle', '@angular/material/progress-spinner', '@angular/material/progress-bar', '@angular/material/radio', '@angular/material/badge', '@angular/material/slide-toggle', '@angular/material/dialog', '@angular/material/autocomplete', '@angular/forms', 'rxjs', 'rxjs/operators', '@ngx-translate/core', '@ionic/angular', 'moment', '@angular/material-moment-adapter', 'moment-timezone', '@ionic-native/keyboard/ngx', 'angular2-text-mask', 'ngx-material-timepicker', '@angular/material/datepicker', '@angular/animations', '@angular/material/divider', '@angular/material/tooltip', '@angular/material/chips', '@angular/router', '@angular/platform-browser', '@angular/common/http', 'ngx-color-picker', '@ionic-native/native-audio/ngx', '@ionic-native/vibration/ngx', '@ionic-native/audio-management/ngx', '@ionic-native/native-audio/ngx/index', '@ionic-native/vibration/ngx/index', '@ionic-native/audio-management/ngx/index', 'uuid/v4', '@angular/cdk/drag-drop', 'ngx-markdown', 'tweetnacl', '@ionic/storage', 'zone.js/dist/zone-error', '@ionic-native/splash-screen/ngx', '@ionic-native/network/ngx', 'ionic-cache', 'ionic-cache/dist/cache.service', '@ionic-native/network/ngx/index', '@ionic-native/splash-screen/ngx/index', '@ionic-native/status-bar/ngx', '@angular/cdk/platform', '@ionic-native/in-app-browser/ngx', '@apollo/client/core', 'apollo-angular', '@apollo/client/link/ws', '@apollo/client/utilities', '@apollo/client/link/retry', 'apollo-link-queue', 'apollo-link-serialize', 'apollo-link-logger', 'apollo-angular/http', 'apollo3-cache-persist', '@ionic-native/downloader/ngx', '@ionic-native/status-bar/ngx/index', '@ionic-native/keyboard/ngx/index', '@ionic-native/in-app-browser/ngx/index', '@ionic-native/downloader/ngx/index', '@angular/cdk/text-field', '@e-is/ngx-material-table', '@angular/cdk/collections', 'ngx-jdenticon', 'tweetnacl-util', 'scrypt-async', 'hammerjs'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global[
|
|
5
|
-
}
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sumaris-net'] = global['sumaris-net'] || {}, global['sumaris-net']['ngx-components'] = {}), global.ng.core, global.ng.common, global.ng.cdk.table, global.ng.cdk.a11y, global.ng.cdk.overlay, global.ng.cdk.scrolling, global.ng.material.core, global.ng.material.table, global.ng.material.sort, global.ng.material.paginator, global.ng.material.formField, global.ng.material.input, global.ng.material.checkbox, global.ng.material.expansion, global.ng.material.toolbar, global.ng.material.icon, global.ng.material.button, global.ng.material.menu, global.ng.material.select, global.ng.material.card, global.ng.material.tabs, global.ng.material.stepper, global.ng.material.list, global.ng.material.buttonToggle, global.ng.material.progressSpinner, global.ng.material.progressBar, global.ng.material.radio, global.ng.material.badge, global.ng.material.slideToggle, global.ng.material.dialog, global.ng.material.autocomplete, global.ng.forms, global.rxjs, global.rxjs.operators, global['ngx-translate'].core, global.ionic.angular, global.moment, global.ng.materialMomentAdapter, global['moment-timezone'], global['ionic-native'].keyboard.ngx, global['angular2-text-mask'], global['ngx-material-timepicker'], global.ng.material.datepicker, global.ng.animations, global.ng.material.divider, global.ng.material.tooltip, global.ng.material.chips, global.ng.router, global.ng.platformBrowser, global.ng.common.http, global['ngx-color-picker'], global['ionic-native']['native-audio'].ngx, global['ionic-native'].vibration.ngx, global['ionic-native']['audio-management'].ngx, global['ionic-native']['native-audio'].ngx.index, global['ionic-native'].vibration.ngx.index, global['ionic-native']['audio-management'].ngx.index, global.uuid.v4, global.ng.cdk.dragDrop, global['ngx-markdown'], global.tweetnacl, global.ionic.storage, null, global['ionic-native']['splash-screen'].ngx, global['ionic-native'].network.ngx, global['ionic-cache'], global['ionic-cache/dist/cache'].service, global['ionic-native'].network.ngx.index, global['ionic-native']['splash-screen'].ngx.index, global['ionic-native']['status-bar'].ngx, global.ng.cdk.platform, global['ionic-native']['in-app-browser'].ngx, global.apollo.client.core, global['apollo-angular'], global.apollo.client.link.ws, global.apollo.client.utilities, global.apollo.client.link.retry, global['apollo-link-queue'], global['apollo-link-serialize'], global['apollo-link-logger'], global['apollo-angular'].http, global['apollo3-cache-persist'], global['ionic-native'].downloader.ngx, global['ionic-native']['status-bar'].ngx.index, global['ionic-native'].keyboard.ngx.index, global['ionic-native']['in-app-browser'].ngx.index, global['ionic-native'].downloader.ngx.index, global.ng.cdk.textField, global['e-is']['ngx-material-table'], global.ng.cdk.collections, global['ngx-jdenticon']));
|
|
5
|
+
}(this, (function (exports, i0, i1$4, table$1, a11y, overlay, scrolling, i1$3, table, sort$1, paginator, formField, input, checkbox, expansion, toolbar, icon, button, menu, select, card, tabs, stepper, list, buttonToggle, progressSpinner, progressBar, radio, badge, slideToggle, i2, autocomplete, i1, rxjs, operators, i1$2, i1$5, momentImported, i1$1, momentTZImported, ngx, angular2TextMask, ngxMaterialTimepicker, datepicker, animations, divider, tooltip, chips, i3, i1$6, i2$1, ngxColorPicker, ngx$2, ngx$3, ngx$1, i2$2, i3$1, i4, uuidv4Imported, dragDrop, ngxMarkdown, tweetnacl, i3$2, zoneError, ngx$5, ngx$4, ionicCache, i6, i9, i10, ngx$7, i2$4, ngx$8, core, i2$3, ws, utilities, retry, QueueLink, SerializingLink, loggerLink, i3$3, apollo3CachePersist, ngx$6, i14, i15, i17, i18, textField, ngxMaterialTable, collections, ngxJdenticon) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -15,46 +15,23 @@
|
|
|
15
15
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
16
|
Object.defineProperty(n, k, d.get ? d : {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () {
|
|
18
|
+
get: function () {
|
|
19
|
+
return e[k];
|
|
20
|
+
}
|
|
19
21
|
});
|
|
20
22
|
}
|
|
21
23
|
});
|
|
22
24
|
}
|
|
23
|
-
n[
|
|
25
|
+
n['default'] = e;
|
|
24
26
|
return Object.freeze(n);
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
29
|
-
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
30
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2);
|
|
31
|
-
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1);
|
|
32
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
33
|
-
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
34
29
|
var momentImported__namespace = /*#__PURE__*/_interopNamespace(momentImported);
|
|
35
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
|
|
36
30
|
var momentTZImported__namespace = /*#__PURE__*/_interopNamespace(momentTZImported);
|
|
37
|
-
var i3__namespace$3 = /*#__PURE__*/_interopNamespace(i3);
|
|
38
|
-
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
39
|
-
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
40
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2$2);
|
|
41
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3$1);
|
|
42
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
43
31
|
var uuidv4Imported__namespace = /*#__PURE__*/_interopNamespace(uuidv4Imported);
|
|
44
|
-
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
45
|
-
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
46
|
-
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
47
|
-
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
48
|
-
var i2__namespace$4 = /*#__PURE__*/_interopNamespace(i2$4);
|
|
49
|
-
var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
|
|
50
32
|
var QueueLink__default = /*#__PURE__*/_interopDefaultLegacy(QueueLink);
|
|
51
33
|
var SerializingLink__default = /*#__PURE__*/_interopDefaultLegacy(SerializingLink);
|
|
52
34
|
var loggerLink__default = /*#__PURE__*/_interopDefaultLegacy(loggerLink);
|
|
53
|
-
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$3);
|
|
54
|
-
var i14__namespace = /*#__PURE__*/_interopNamespace(i14);
|
|
55
|
-
var i15__namespace = /*#__PURE__*/_interopNamespace(i15);
|
|
56
|
-
var i17__namespace = /*#__PURE__*/_interopNamespace(i17);
|
|
57
|
-
var i18__namespace = /*#__PURE__*/_interopNamespace(i18);
|
|
58
35
|
|
|
59
36
|
var ENVIRONMENT = new i0.InjectionToken('ENV');
|
|
60
37
|
var Environment = /** @class */ (function () {
|
|
@@ -1280,14 +1257,14 @@
|
|
|
1280
1257
|
};
|
|
1281
1258
|
return MatAutocompleteConfigHolder;
|
|
1282
1259
|
}());
|
|
1283
|
-
var noop
|
|
1284
|
-
var ɵ0
|
|
1260
|
+
var noop = function (_) { };
|
|
1261
|
+
var ɵ0 = noop;
|
|
1285
1262
|
var MatAutocompleteField = /** @class */ (function () {
|
|
1286
1263
|
function MatAutocompleteField(cd, formGroupDir) {
|
|
1287
1264
|
this.cd = cd;
|
|
1288
1265
|
this.formGroupDir = formGroupDir;
|
|
1289
|
-
this._onChangeCallback = noop
|
|
1290
|
-
this._onTouchedCallback = noop
|
|
1266
|
+
this._onChangeCallback = noop;
|
|
1267
|
+
this._onTouchedCallback = noop;
|
|
1291
1268
|
this.logPrefix = '[mat-autocomplete] ';
|
|
1292
1269
|
this.formControlName = null;
|
|
1293
1270
|
this.required = false;
|
|
@@ -2080,7 +2057,7 @@
|
|
|
2080
2057
|
};
|
|
2081
2058
|
return DateFormatPipe;
|
|
2082
2059
|
}());
|
|
2083
|
-
DateFormatPipe.ɵprov =
|
|
2060
|
+
DateFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFormatPipe_Factory() { return new DateFormatPipe(i0.ɵɵinject(i1$1.MomentDateAdapter), i0.ɵɵinject(i1$2.TranslateService)); }, token: DateFormatPipe, providedIn: "root" });
|
|
2084
2061
|
DateFormatPipe.decorators = [
|
|
2085
2062
|
{ type: i0.Pipe, args: [{
|
|
2086
2063
|
name: 'dateFormat'
|
|
@@ -2092,7 +2069,7 @@
|
|
|
2092
2069
|
{ type: i1$2.TranslateService }
|
|
2093
2070
|
]; };
|
|
2094
2071
|
|
|
2095
|
-
var moment
|
|
2072
|
+
var moment = momentImported__namespace;
|
|
2096
2073
|
var DateDiffDurationPipe = /** @class */ (function () {
|
|
2097
2074
|
function DateDiffDurationPipe(dateAdapter, translate) {
|
|
2098
2075
|
var _this = this;
|
|
@@ -2109,10 +2086,10 @@
|
|
|
2109
2086
|
return this.format(startDate, endDate);
|
|
2110
2087
|
};
|
|
2111
2088
|
DateDiffDurationPipe.prototype.format = function (startDate, endDate) {
|
|
2112
|
-
var duration = moment
|
|
2089
|
+
var duration = moment.duration(endDate.diff(startDate));
|
|
2113
2090
|
if (duration.asMinutes() < 0)
|
|
2114
2091
|
return '';
|
|
2115
|
-
var timeDuration = moment
|
|
2092
|
+
var timeDuration = moment(0)
|
|
2116
2093
|
.hour(duration.hours())
|
|
2117
2094
|
.minute(duration.minutes());
|
|
2118
2095
|
var days = Math.floor(duration.asDays());
|
|
@@ -2120,7 +2097,7 @@
|
|
|
2120
2097
|
};
|
|
2121
2098
|
return DateDiffDurationPipe;
|
|
2122
2099
|
}());
|
|
2123
|
-
DateDiffDurationPipe.ɵprov =
|
|
2100
|
+
DateDiffDurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateDiffDurationPipe_Factory() { return new DateDiffDurationPipe(i0.ɵɵinject(i1$3.DateAdapter), i0.ɵɵinject(i1$2.TranslateService)); }, token: DateDiffDurationPipe, providedIn: "root" });
|
|
2124
2101
|
DateDiffDurationPipe.decorators = [
|
|
2125
2102
|
{ type: i0.Pipe, args: [{
|
|
2126
2103
|
name: 'dateDiffDuration'
|
|
@@ -2142,7 +2119,7 @@
|
|
|
2142
2119
|
};
|
|
2143
2120
|
return DateFromNowPipe;
|
|
2144
2121
|
}());
|
|
2145
|
-
DateFromNowPipe.ɵprov =
|
|
2122
|
+
DateFromNowPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0.ɵɵinject(i1$1.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
|
|
2146
2123
|
DateFromNowPipe.decorators = [
|
|
2147
2124
|
{ type: i0.Pipe, args: [{
|
|
2148
2125
|
name: 'dateFromNow'
|
|
@@ -2211,7 +2188,7 @@
|
|
|
2211
2188
|
value *= -1;
|
|
2212
2189
|
}
|
|
2213
2190
|
}
|
|
2214
|
-
var degrees = roundFloat
|
|
2191
|
+
var degrees = roundFloat(value, opts.maxDecimals).toString();
|
|
2215
2192
|
// Add sign
|
|
2216
2193
|
var sign = negative ? '-' : '+';
|
|
2217
2194
|
if (opts.placeholderChar) {
|
|
@@ -2262,7 +2239,7 @@
|
|
|
2262
2239
|
}
|
|
2263
2240
|
var degrees = Math.trunc(value);
|
|
2264
2241
|
var minutes = Math.trunc((value - degrees) * 60);
|
|
2265
|
-
var seconds = roundFloat
|
|
2242
|
+
var seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
|
|
2266
2243
|
while (seconds >= 60) {
|
|
2267
2244
|
seconds -= 60;
|
|
2268
2245
|
minutes += 1;
|
|
@@ -2330,7 +2307,7 @@
|
|
|
2330
2307
|
}
|
|
2331
2308
|
}
|
|
2332
2309
|
var degrees = Math.trunc(value);
|
|
2333
|
-
var minutes = roundFloat
|
|
2310
|
+
var minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
|
|
2334
2311
|
while (minutes >= 60) {
|
|
2335
2312
|
minutes -= 60;
|
|
2336
2313
|
degrees += 1;
|
|
@@ -2381,15 +2358,15 @@
|
|
|
2381
2358
|
return NaN;
|
|
2382
2359
|
}
|
|
2383
2360
|
if (pattern === 'DD')
|
|
2384
|
-
return roundFloat
|
|
2361
|
+
return roundFloat(degrees, maxDecimals);
|
|
2385
2362
|
var minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
|
|
2386
2363
|
var seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
|
|
2387
2364
|
var direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
|
|
2388
2365
|
var sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
|
|
2389
2366
|
degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
|
|
2390
|
-
return roundFloat
|
|
2367
|
+
return roundFloat(degrees, maxDecimals);
|
|
2391
2368
|
}
|
|
2392
|
-
function roundFloat
|
|
2369
|
+
function roundFloat(input, maxDecimals) {
|
|
2393
2370
|
if (maxDecimals > 0) {
|
|
2394
2371
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
2395
2372
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -2412,7 +2389,7 @@
|
|
|
2412
2389
|
};
|
|
2413
2390
|
return LatLongFormatPipe;
|
|
2414
2391
|
}());
|
|
2415
|
-
LatLongFormatPipe.ɵprov =
|
|
2392
|
+
LatLongFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
|
|
2416
2393
|
LatLongFormatPipe.decorators = [
|
|
2417
2394
|
{ type: i0.Pipe, args: [{
|
|
2418
2395
|
name: 'latLongFormat'
|
|
@@ -2425,7 +2402,7 @@
|
|
|
2425
2402
|
}
|
|
2426
2403
|
return LatitudeFormatPipe;
|
|
2427
2404
|
}());
|
|
2428
|
-
LatitudeFormatPipe.ɵprov =
|
|
2405
|
+
LatitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
|
|
2429
2406
|
LatitudeFormatPipe.decorators = [
|
|
2430
2407
|
{ type: i0.Pipe, args: [{
|
|
2431
2408
|
name: 'latitudeFormat'
|
|
@@ -2438,7 +2415,7 @@
|
|
|
2438
2415
|
}
|
|
2439
2416
|
return LongitudeFormatPipe;
|
|
2440
2417
|
}());
|
|
2441
|
-
LongitudeFormatPipe.ɵprov =
|
|
2418
|
+
LongitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
|
|
2442
2419
|
LongitudeFormatPipe.decorators = [
|
|
2443
2420
|
{ type: i0.Pipe, args: [{
|
|
2444
2421
|
name: 'longitudeFormat'
|
|
@@ -2461,7 +2438,7 @@
|
|
|
2461
2438
|
};
|
|
2462
2439
|
return NumberFormatPipe;
|
|
2463
2440
|
}());
|
|
2464
|
-
NumberFormatPipe.ɵprov =
|
|
2441
|
+
NumberFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
|
|
2465
2442
|
NumberFormatPipe.decorators = [
|
|
2466
2443
|
{ type: i0.Pipe, args: [{
|
|
2467
2444
|
name: 'numberFormat'
|
|
@@ -2504,7 +2481,7 @@
|
|
|
2504
2481
|
};
|
|
2505
2482
|
return HighlightPipe;
|
|
2506
2483
|
}());
|
|
2507
|
-
HighlightPipe.ɵprov =
|
|
2484
|
+
HighlightPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
|
|
2508
2485
|
HighlightPipe.decorators = [
|
|
2509
2486
|
{ type: i0.Pipe, args: [{
|
|
2510
2487
|
name: 'highlight'
|
|
@@ -2572,7 +2549,7 @@
|
|
|
2572
2549
|
{ type: i0.Pipe, args: [{ name: 'fileSize' },] }
|
|
2573
2550
|
];
|
|
2574
2551
|
|
|
2575
|
-
var moment$
|
|
2552
|
+
var moment$1 = momentImported__namespace;
|
|
2576
2553
|
var tz = momentTZImported__namespace;
|
|
2577
2554
|
var DATE_UNIX_TIMESTAMP = 'X';
|
|
2578
2555
|
var DATE_UNIX_MS_TIMESTAMP = 'x';
|
|
@@ -2650,32 +2627,32 @@
|
|
|
2650
2627
|
if (!value || momentImported.isMoment(value))
|
|
2651
2628
|
return value;
|
|
2652
2629
|
// Parse the input value, as a ISO date time
|
|
2653
|
-
var date = moment$
|
|
2630
|
+
var date = moment$1(value, DATE_ISO_PATTERN);
|
|
2654
2631
|
if (date.isValid())
|
|
2655
2632
|
return date;
|
|
2656
2633
|
// Not valid: trying to convert from unix timestamp
|
|
2657
2634
|
if (typeof value === 'string') {
|
|
2658
2635
|
console.warn('Wrong date format - Trying to convert from local time: ' + value);
|
|
2659
2636
|
if (value.length === 10) {
|
|
2660
|
-
return moment$
|
|
2637
|
+
return moment$1(value, DATE_UNIX_TIMESTAMP);
|
|
2661
2638
|
}
|
|
2662
2639
|
else if (value.length === 13) {
|
|
2663
|
-
return moment$
|
|
2640
|
+
return moment$1(value, DATE_UNIX_MS_TIMESTAMP);
|
|
2664
2641
|
}
|
|
2665
2642
|
}
|
|
2666
2643
|
console.warn('Unable to parse date: ' + value);
|
|
2667
2644
|
return undefined;
|
|
2668
2645
|
}
|
|
2669
2646
|
function fromUnixTimestamp(timeInSec) {
|
|
2670
|
-
return moment$
|
|
2647
|
+
return moment$1(timeInSec, DATE_UNIX_TIMESTAMP);
|
|
2671
2648
|
}
|
|
2672
2649
|
function fromUnixMsTimestamp(timeInMs) {
|
|
2673
|
-
return moment$
|
|
2650
|
+
return moment$1(timeInMs, DATE_UNIX_MS_TIMESTAMP);
|
|
2674
2651
|
}
|
|
2675
2652
|
function toDuration(value, unit) {
|
|
2676
2653
|
if (!value)
|
|
2677
2654
|
return undefined;
|
|
2678
|
-
var duration = moment$
|
|
2655
|
+
var duration = moment$1.duration(value, unit);
|
|
2679
2656
|
// fix 990+ ms
|
|
2680
2657
|
if (duration.milliseconds() >= 990) {
|
|
2681
2658
|
duration.add(1000 - duration.milliseconds(), 'ms');
|
|
@@ -2705,7 +2682,7 @@
|
|
|
2705
2682
|
};
|
|
2706
2683
|
return DurationPipe;
|
|
2707
2684
|
}());
|
|
2708
|
-
DurationPipe.ɵprov =
|
|
2685
|
+
DurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0.ɵɵinject(i1$2.TranslateService)); }, token: DurationPipe, providedIn: "root" });
|
|
2709
2686
|
DurationPipe.decorators = [
|
|
2710
2687
|
{ type: i0.Pipe, args: [{
|
|
2711
2688
|
name: 'duration'
|
|
@@ -2729,7 +2706,7 @@
|
|
|
2729
2706
|
};
|
|
2730
2707
|
return MathAbsPipe;
|
|
2731
2708
|
}());
|
|
2732
|
-
MathAbsPipe.ɵprov =
|
|
2709
|
+
MathAbsPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
|
|
2733
2710
|
MathAbsPipe.decorators = [
|
|
2734
2711
|
{ type: i0.Pipe, args: [{
|
|
2735
2712
|
name: 'mathAbs'
|
|
@@ -2744,7 +2721,7 @@
|
|
|
2744
2721
|
};
|
|
2745
2722
|
return EvenPipe;
|
|
2746
2723
|
}());
|
|
2747
|
-
EvenPipe.ɵprov =
|
|
2724
|
+
EvenPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
|
|
2748
2725
|
EvenPipe.decorators = [
|
|
2749
2726
|
{ type: i0.Pipe, args: [{
|
|
2750
2727
|
name: 'even'
|
|
@@ -2759,7 +2736,7 @@
|
|
|
2759
2736
|
};
|
|
2760
2737
|
return OddPipe;
|
|
2761
2738
|
}());
|
|
2762
|
-
OddPipe.ɵprov =
|
|
2739
|
+
OddPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
|
|
2763
2740
|
OddPipe.decorators = [
|
|
2764
2741
|
{ type: i0.Pipe, args: [{
|
|
2765
2742
|
name: 'odd'
|
|
@@ -2891,7 +2868,7 @@
|
|
|
2891
2868
|
};
|
|
2892
2869
|
return MapGetPipe;
|
|
2893
2870
|
}());
|
|
2894
|
-
MapGetPipe.ɵprov =
|
|
2871
|
+
MapGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
|
|
2895
2872
|
MapGetPipe.decorators = [
|
|
2896
2873
|
{ type: i0.Pipe, args: [{
|
|
2897
2874
|
name: 'mapGet'
|
|
@@ -2908,7 +2885,7 @@
|
|
|
2908
2885
|
};
|
|
2909
2886
|
return MapKeysPipe;
|
|
2910
2887
|
}());
|
|
2911
|
-
MapKeysPipe.ɵprov =
|
|
2888
|
+
MapKeysPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
|
|
2912
2889
|
MapKeysPipe.decorators = [
|
|
2913
2890
|
{ type: i0.Pipe, args: [{
|
|
2914
2891
|
name: 'mapKeys'
|
|
@@ -2925,7 +2902,7 @@
|
|
|
2925
2902
|
};
|
|
2926
2903
|
return MapValuesPipe;
|
|
2927
2904
|
}());
|
|
2928
|
-
MapValuesPipe.ɵprov =
|
|
2905
|
+
MapValuesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
|
|
2929
2906
|
MapValuesPipe.decorators = [
|
|
2930
2907
|
{ type: i0.Pipe, args: [{
|
|
2931
2908
|
name: 'mapValues'
|
|
@@ -2941,7 +2918,7 @@
|
|
|
2941
2918
|
};
|
|
2942
2919
|
return IsNotNilOrBlankPipe;
|
|
2943
2920
|
}());
|
|
2944
|
-
IsNotNilOrBlankPipe.ɵprov =
|
|
2921
|
+
IsNotNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
|
|
2945
2922
|
IsNotNilOrBlankPipe.decorators = [
|
|
2946
2923
|
{ type: i0.Pipe, args: [{
|
|
2947
2924
|
name: 'isNotNilOrBlank'
|
|
@@ -2956,7 +2933,7 @@
|
|
|
2956
2933
|
};
|
|
2957
2934
|
return IsNilOrBlankPipe;
|
|
2958
2935
|
}());
|
|
2959
|
-
IsNilOrBlankPipe.ɵprov =
|
|
2936
|
+
IsNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
|
|
2960
2937
|
IsNilOrBlankPipe.decorators = [
|
|
2961
2938
|
{ type: i0.Pipe, args: [{
|
|
2962
2939
|
name: 'isNilOrBlank'
|
|
@@ -2971,7 +2948,7 @@
|
|
|
2971
2948
|
};
|
|
2972
2949
|
return ToStringPipe;
|
|
2973
2950
|
}());
|
|
2974
|
-
ToStringPipe.ɵprov =
|
|
2951
|
+
ToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
|
|
2975
2952
|
ToStringPipe.decorators = [
|
|
2976
2953
|
{ type: i0.Pipe, args: [{
|
|
2977
2954
|
name: 'toString'
|
|
@@ -2986,7 +2963,7 @@
|
|
|
2986
2963
|
};
|
|
2987
2964
|
return StrLengthPipe;
|
|
2988
2965
|
}());
|
|
2989
|
-
StrLengthPipe.ɵprov =
|
|
2966
|
+
StrLengthPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
|
|
2990
2967
|
StrLengthPipe.decorators = [
|
|
2991
2968
|
{ type: i0.Pipe, args: [{
|
|
2992
2969
|
name: 'strLength'
|
|
@@ -3001,7 +2978,7 @@
|
|
|
3001
2978
|
};
|
|
3002
2979
|
return StrIncludesPipe;
|
|
3003
2980
|
}());
|
|
3004
|
-
StrIncludesPipe.ɵprov =
|
|
2981
|
+
StrIncludesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrIncludesPipe_Factory() { return new StrIncludesPipe(); }, token: StrIncludesPipe, providedIn: "root" });
|
|
3005
2982
|
StrIncludesPipe.decorators = [
|
|
3006
2983
|
{ type: i0.Pipe, args: [{
|
|
3007
2984
|
name: 'strIncludes'
|
|
@@ -3092,7 +3069,7 @@
|
|
|
3092
3069
|
};
|
|
3093
3070
|
return TranslateContextService;
|
|
3094
3071
|
}());
|
|
3095
|
-
TranslateContextService.ɵprov =
|
|
3072
|
+
TranslateContextService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0.ɵɵinject(i1$2.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
|
|
3096
3073
|
TranslateContextService.decorators = [
|
|
3097
3074
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
3098
3075
|
];
|
|
@@ -3149,7 +3126,7 @@
|
|
|
3149
3126
|
};
|
|
3150
3127
|
return PropertyGetPipe;
|
|
3151
3128
|
}());
|
|
3152
|
-
PropertyGetPipe.ɵprov =
|
|
3129
|
+
PropertyGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
|
|
3153
3130
|
PropertyGetPipe.decorators = [
|
|
3154
3131
|
{ type: i0.Pipe, args: [{
|
|
3155
3132
|
name: 'propertyGet'
|
|
@@ -3175,7 +3152,7 @@
|
|
|
3175
3152
|
ngInit: [{ type: i0.Output }]
|
|
3176
3153
|
};
|
|
3177
3154
|
|
|
3178
|
-
var moment$
|
|
3155
|
+
var moment$2 = momentImported__namespace;
|
|
3179
3156
|
// @dynamic
|
|
3180
3157
|
var SharedValidators = /** @class */ (function () {
|
|
3181
3158
|
function SharedValidators() {
|
|
@@ -3258,7 +3235,7 @@
|
|
|
3258
3235
|
};
|
|
3259
3236
|
SharedValidators.validDate = function (control) {
|
|
3260
3237
|
var value = control.value;
|
|
3261
|
-
var date = !value || moment$
|
|
3238
|
+
var date = !value || moment$2.isMoment(value) ? value : moment$2(control.value, DATE_ISO_PATTERN);
|
|
3262
3239
|
if (date && (!date.isValid() || date.year() < 1970)) {
|
|
3263
3240
|
return { validDate: true };
|
|
3264
3241
|
}
|
|
@@ -4465,7 +4442,7 @@
|
|
|
4465
4442
|
};
|
|
4466
4443
|
return FormErrorTranslator;
|
|
4467
4444
|
}());
|
|
4468
|
-
FormErrorTranslator.ɵprov =
|
|
4445
|
+
FormErrorTranslator.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormErrorTranslator_Factory() { return new FormErrorTranslator(i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(APP_FORM_ERROR_I18N_KEYS, 8)); }, token: FormErrorTranslator, providedIn: "root" });
|
|
4469
4446
|
FormErrorTranslator.decorators = [
|
|
4470
4447
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
4471
4448
|
];
|
|
@@ -4550,7 +4527,7 @@
|
|
|
4550
4527
|
};
|
|
4551
4528
|
return FormGetPipe;
|
|
4552
4529
|
}());
|
|
4553
|
-
FormGetPipe.ɵprov =
|
|
4530
|
+
FormGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormGetPipe_Factory() { return new FormGetPipe(); }, token: FormGetPipe, providedIn: "root" });
|
|
4554
4531
|
FormGetPipe.decorators = [
|
|
4555
4532
|
{ type: i0.Pipe, args: [{
|
|
4556
4533
|
name: 'formGet'
|
|
@@ -4565,7 +4542,7 @@
|
|
|
4565
4542
|
};
|
|
4566
4543
|
return FormGetControlPipe;
|
|
4567
4544
|
}());
|
|
4568
|
-
FormGetControlPipe.ɵprov =
|
|
4545
|
+
FormGetControlPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormGetControlPipe_Factory() { return new FormGetControlPipe(); }, token: FormGetControlPipe, providedIn: "root" });
|
|
4569
4546
|
FormGetControlPipe.decorators = [
|
|
4570
4547
|
{ type: i0.Pipe, args: [{
|
|
4571
4548
|
name: 'formGetControl'
|
|
@@ -4580,7 +4557,7 @@
|
|
|
4580
4557
|
};
|
|
4581
4558
|
return FormGetArrayPipe;
|
|
4582
4559
|
}());
|
|
4583
|
-
FormGetArrayPipe.ɵprov =
|
|
4560
|
+
FormGetArrayPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormGetArrayPipe_Factory() { return new FormGetArrayPipe(); }, token: FormGetArrayPipe, providedIn: "root" });
|
|
4584
4561
|
FormGetArrayPipe.decorators = [
|
|
4585
4562
|
{ type: i0.Pipe, args: [{
|
|
4586
4563
|
name: 'formGetArray'
|
|
@@ -4595,7 +4572,7 @@
|
|
|
4595
4572
|
};
|
|
4596
4573
|
return FormGetGroupPipe;
|
|
4597
4574
|
}());
|
|
4598
|
-
FormGetGroupPipe.ɵprov =
|
|
4575
|
+
FormGetGroupPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormGetGroupPipe_Factory() { return new FormGetGroupPipe(); }, token: FormGetGroupPipe, providedIn: "root" });
|
|
4599
4576
|
FormGetGroupPipe.decorators = [
|
|
4600
4577
|
{ type: i0.Pipe, args: [{
|
|
4601
4578
|
name: 'formGetGroup'
|
|
@@ -4718,7 +4695,7 @@
|
|
|
4718
4695
|
}
|
|
4719
4696
|
return false;
|
|
4720
4697
|
};
|
|
4721
|
-
var ɵ0$
|
|
4698
|
+
var ɵ0$1 = isIpad;
|
|
4722
4699
|
var isIOS = function (win) { return testUserAgent(win, /iPhone|iPod/i) || isIpad(win); };
|
|
4723
4700
|
var isAndroid = function (win) { return testUserAgent(win, /android|sink/i); };
|
|
4724
4701
|
var isCordova = function (win) { return !!(win['cordova'] || win['phonegap'] || win['PhoneGap']); };
|
|
@@ -4967,9 +4944,9 @@
|
|
|
4967
4944
|
var hour = parseInt(durationParts[0] || '0');
|
|
4968
4945
|
var minute = parseInt(durationParts[1] || '0');
|
|
4969
4946
|
var value = hour + (minute + 0.5) / 60;
|
|
4970
|
-
return roundFloat(value, maxDecimals);
|
|
4947
|
+
return roundFloat$1(value, maxDecimals);
|
|
4971
4948
|
}
|
|
4972
|
-
function roundFloat(input, maxDecimals) {
|
|
4949
|
+
function roundFloat$1(input, maxDecimals) {
|
|
4973
4950
|
if (maxDecimals > 0) {
|
|
4974
4951
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
4975
4952
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -4993,9 +4970,9 @@
|
|
|
4993
4970
|
DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
|
|
4994
4971
|
}
|
|
4995
4972
|
};
|
|
4996
|
-
var noop$
|
|
4973
|
+
var noop$1 = function () {
|
|
4997
4974
|
};
|
|
4998
|
-
var ɵ0$
|
|
4975
|
+
var ɵ0$2 = noop$1;
|
|
4999
4976
|
var MatLatLongField = /** @class */ (function () {
|
|
5000
4977
|
function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
|
|
5001
4978
|
this.platform = platform;
|
|
@@ -5003,8 +4980,8 @@
|
|
|
5003
4980
|
this.formBuilder = formBuilder;
|
|
5004
4981
|
this.cd = cd;
|
|
5005
4982
|
this.formGroupDir = formGroupDir;
|
|
5006
|
-
this._onChangeCallback = noop$
|
|
5007
|
-
this._onTouchedCallback = noop$
|
|
4983
|
+
this._onChangeCallback = noop$1;
|
|
4984
|
+
this._onTouchedCallback = noop$1;
|
|
5008
4985
|
this._subscription = new rxjs.Subscription();
|
|
5009
4986
|
this.disabling = false;
|
|
5010
4987
|
this.writing = false;
|
|
@@ -5356,14 +5333,14 @@
|
|
|
5356
5333
|
},] }
|
|
5357
5334
|
];
|
|
5358
5335
|
|
|
5359
|
-
var DEFAULT_VALUE_ACCESSOR
|
|
5336
|
+
var DEFAULT_VALUE_ACCESSOR = {
|
|
5360
5337
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5361
5338
|
useExisting: i0.forwardRef(function () { return MatDate; }),
|
|
5362
5339
|
multi: true
|
|
5363
5340
|
};
|
|
5364
|
-
var DAY_MASK
|
|
5365
|
-
var noop$
|
|
5366
|
-
var ɵ0$
|
|
5341
|
+
var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5342
|
+
var noop$2 = function () { };
|
|
5343
|
+
var ɵ0$3 = noop$2;
|
|
5367
5344
|
var MatDate = /** @class */ (function () {
|
|
5368
5345
|
function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5369
5346
|
this.platform = platform;
|
|
@@ -5373,13 +5350,13 @@
|
|
|
5373
5350
|
this.cd = cd;
|
|
5374
5351
|
this.keyboard = keyboard;
|
|
5375
5352
|
this.formGroupDir = formGroupDir;
|
|
5376
|
-
this._onChangeCallback = noop$
|
|
5377
|
-
this._onTouchedCallback = noop$
|
|
5353
|
+
this._onChangeCallback = noop$2;
|
|
5354
|
+
this._onTouchedCallback = noop$2;
|
|
5378
5355
|
this._subscription = new rxjs.Subscription();
|
|
5379
5356
|
this._writing = true;
|
|
5380
5357
|
this._disabling = false;
|
|
5381
5358
|
this._readonly = false;
|
|
5382
|
-
this.dayMask = DAY_MASK
|
|
5359
|
+
this.dayMask = DAY_MASK;
|
|
5383
5360
|
this.floatLabel = 'auto';
|
|
5384
5361
|
this.compact = false;
|
|
5385
5362
|
this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
|
|
@@ -5702,7 +5679,7 @@
|
|
|
5702
5679
|
selector: 'mat-date-field',
|
|
5703
5680
|
template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput hidden type=\"text\"\n readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<!-- writable -->\n<ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dayControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker)\"\n (keyup.escape)=\"preventEvent($event)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [appAutofocus]=\"autofocus\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dayControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n\n <!-- Hide the final input -->\n <input matInput type=\"text\" [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n [matDatepickerFilter]=\"datePickerFilter\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button type=\"button\" mat-icon-button tabindex=\"-1\" matSuffix\n (click)=\"openDatePicker($event, datePicker)\"\n [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clear()\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <!-- errors -->\n <mat-error *ngIf=\"formControl.touched && formControl.errors|mapKeys|arrayFirst; let errorKey\">\n <ng-container [ngSwitch]=\"errorKey\">\n <span *ngSwitchCase=\"'required'\" translate>ERROR.FIELD_REQUIRED</span>\n <span *ngSwitchCase=\"'validDate'\" translate>ERROR.FIELD_NOT_VALID_DATE_TIME</span>\n <span *ngSwitchCase=\"'dateIsAfter'\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</span>\n <span *ngSwitchCase=\"'dateIsBefore'\">{{'ERROR.FIELD_NOT_VALID_DATE_BEFORE' | translate: formControl.errors.dateIsBefore }}</span>\n <span *ngSwitchCase=\"'dateRange'\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</span>\n <span *ngSwitchCase=\"'dateMaxDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</span>\n <span *ngSwitchCase=\"'dateMinDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</span>\n <span *ngSwitchCase=\"'msg'\">{{(formControl.errors.msg?.key || formControl.errors.msg) | translate: formControl.errors.msg?.params}}</span>\n </ng-container>\n </mat-error>\n <ng-content select=\"mat-error\"></ng-content>\n\n <!-- mat hint -->\n <div class=\"mat-form-field-hint-wrapper\" [class.cdk-visually-hidden]=\"formControl.invalid\">\n <div class=\"mat-form-field-hint-spacer\"></div>\n <ng-content select=\"mat-hint\"></ng-content>\n </div>\n </mat-form-field>\n\n <mat-datepicker #datePicker\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n [startAt]=\"startDate\"\n ></mat-datepicker>\n\n\n\n</ng-template>\n\n<ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n</ng-template>\n\n<ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n</ng-template>\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n",
|
|
5704
5681
|
providers: [
|
|
5705
|
-
DEFAULT_VALUE_ACCESSOR
|
|
5682
|
+
DEFAULT_VALUE_ACCESSOR,
|
|
5706
5683
|
],
|
|
5707
5684
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5708
5685
|
styles: [":host{display:inline-block;width:100%;position:relative}:host [no-padding]{--ion-grid-column-padding:0}:host [nowrap]{flex-wrap:nowrap}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}mat-form-field .datetime-md,mat-form-field ion-datetime{padding:0!important}ion-col.day{min-width:100px}ion-col.day .mat-form-field-subscript-wrapper{overflow:visible;right:-64px;width:calc(100% + 64px)}ion-col.day .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper{display:flex}ion-col.day .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper .mat-form-field-hint-spacer{flex:1 0 1em}ion-col.hour{min-width:55px;max-width:65px}ion-col.hour mat-form-field{width:100%}ion-col.hour mat-form-field input[type=text],ion-col.hour mat-form-field mat-label{text-align:left;min-width:50px}mat-form-field.mat-form-field-disabled ion-col.day{min-width:100px}.hour .mat-form-field-label{max-width:40px}.hour mat-form-field.mat-form-field-should-float .mat-form-field-placeholder{max-width:inherit}mat-error{text-align:right;width:100%}"]
|
|
@@ -5737,16 +5714,16 @@
|
|
|
5737
5714
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
5738
5715
|
};
|
|
5739
5716
|
|
|
5740
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5717
|
+
var DEFAULT_VALUE_ACCESSOR$1 = {
|
|
5741
5718
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5742
5719
|
useExisting: i0.forwardRef(function () { return MatDateTime; }),
|
|
5743
5720
|
multi: true
|
|
5744
5721
|
};
|
|
5745
5722
|
var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5746
5723
|
var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
|
|
5747
|
-
var HOUR_MASK
|
|
5748
|
-
var noop$
|
|
5749
|
-
var ɵ0$
|
|
5724
|
+
var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
5725
|
+
var noop$3 = function () { };
|
|
5726
|
+
var ɵ0$4 = noop$3;
|
|
5750
5727
|
var MatDateTime = /** @class */ (function () {
|
|
5751
5728
|
function MatDateTime(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5752
5729
|
this.platform = platform;
|
|
@@ -5756,14 +5733,14 @@
|
|
|
5756
5733
|
this.cd = cd;
|
|
5757
5734
|
this.keyboard = keyboard;
|
|
5758
5735
|
this.formGroupDir = formGroupDir;
|
|
5759
|
-
this._onChangeCallback = noop$
|
|
5760
|
-
this._onTouchedCallback = noop$
|
|
5736
|
+
this._onChangeCallback = noop$3;
|
|
5737
|
+
this._onTouchedCallback = noop$3;
|
|
5761
5738
|
this._subscription = new rxjs.Subscription();
|
|
5762
5739
|
this._writing = true;
|
|
5763
5740
|
this._disabling = false;
|
|
5764
5741
|
this._readonly = false;
|
|
5765
5742
|
this.dayMask = DAY_MASK$1;
|
|
5766
|
-
this.hourMask = HOUR_MASK
|
|
5743
|
+
this.hourMask = HOUR_MASK;
|
|
5767
5744
|
this.floatLabel = 'auto';
|
|
5768
5745
|
this.compact = false;
|
|
5769
5746
|
this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
|
|
@@ -6121,7 +6098,7 @@
|
|
|
6121
6098
|
selector: 'mat-date-time-field',
|
|
6122
6099
|
template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput hidden type=\"text\"\n readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<!-- writable + time -->\n<ng-template #writable >\n <ion-grid class=\"ion-no-padding\">\n <ion-row class=\"ion-no-padding no-wrap\" nowrap>\n\n <!-- day -->\n <ion-col class=\"day ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && formControl.invalid\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dayControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker)\"\n (keyup.escape)=\"preventEvent($event)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [appAutofocus]=\"autofocus\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dayControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n\n <!-- Hide the final input -->\n <input matInput type=\"text\" [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n [matDatepickerFilter]=\"datePickerFilter\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button type=\"button\" mat-icon-button tabindex=\"-1\" matSuffix\n (click)=\"openDatePicker($event, datePicker)\"\n [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clear()\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n </mat-form-field>\n <mat-datepicker #datePicker\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n [startAt]=\"startDate\"></mat-datepicker>\n <div class=\"mat-form-field-subscript mat-form-field-subscript-wrapper\" >\n <!-- errors -->\n <ng-container [ngSwitch]=\"formControl.touched && formControl.errors|mapKeys|arrayFirst\">\n <mat-error *ngSwitchCase=\"'required'\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngSwitchCase=\"'validDate'\" translate>ERROR.FIELD_NOT_VALID_DATE_TIME</mat-error>\n <mat-error *ngSwitchCase=\"'dateIsAfter'\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngSwitchCase=\"'dateIsBefore'\">{{'ERROR.FIELD_NOT_VALID_DATE_BEFORE' | translate: formControl.errors.dateIsBefore }}</mat-error>\n <mat-error *ngSwitchCase=\"'dateRange'\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngSwitchCase=\"'dateMaxDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngSwitchCase=\"'dateMinDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngSwitchCase=\"'msg'\">{{(formControl.errors.msg?.key || formControl.errors.msg) | translate: formControl.errors.msg?.params}}</mat-error>\n </ng-container>\n <ng-content select=\"mat-error\"></ng-content>\n\n <!-- mat hint -->\n <div class=\"mat-form-field-hint-wrapper\" [class.cdk-visually-hidden]=\"formControl.invalid\">\n <div class=\"mat-form-field-hint-spacer\"></div>\n <ng-content select=\"mat-hint\"></ng-content>\n </div>\n </div>\n\n </ion-col>\n\n <!-- hour -->\n <ion-col class=\"hour ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && (hourControl.invalid || formControl.invalid)\">\n <mat-label *ngIf=\"placeholder && floatLabel != 'never'\" translate>COMMON.TIME</mat-label>\n <input matInput #matInput type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"hourControl\"\n autocomplete=\"off\"\n min=\"0\" max=\"23\"\n [textMask]=\"{mask: hourMask, keepCharPositions: true, placeholderChar: placeholderChar, guide: true}\"\n [placeholder]=\"'COMMON.TIME_PLACEHOLDER'|translate\"\n [required]=\"required\"\n (keyup.arrowdown)=\"openTimePicker($event)\"\n (keyup.escape)=\"preventEvent($event)\"\n (blur)=\"checkIfTouched()\"\n [tabindex]=\"tabindex !== undefined ? tabindex+1 : undefined\">\n\n <input matInput #matInput type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"hourControl\"\n (click)=\"openTimePickerIfMobile($event)\"\n readonly>\n\n <input matInput type=\"text\"\n [formControl]=\"hourControl\"\n hidden\n [ngxTimepicker]=\"timePicker\"\n [format]=\"24\">\n\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && !mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePicker($event)\" >\n <mat-icon>keyboard_arrow_down</mat-icon>\n </button>\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePickerIfMobile($event)\">\n <mat-icon>access_time</mat-icon>\n </button>\n\n <ngx-material-timepicker #timePicker [@.disabled]=\"true\"\n (timeSet)=\"onTimePickerChange($event)\"\n [ESC]=\"!mobile\"\n [defaultTime]=\"'00:00'\"\n [cancelBtnTmpl]=\"timePickerCancelButton\"\n [confirmBtnTmpl]=\"timePickerOkButton\"\n [preventOverlayClick]=\"mobile\"\n [enableKeyboardInput]=\"false\"\n [disableAnimation]=\"true\">\n <!-- cancel button -->\n <ng-template #timePickerCancelButton>\n <ion-button fill=\"clear\" color=\"dark\">\n <ion-label translate>COMMON.BTN_CANCEL</ion-label>\n </ion-button>\n </ng-template>\n\n <!-- confirm button -->\n <ng-template #timePickerOkButton>\n <ion-button fill=\"solid\" color=\"tertiary\">\n <ion-label translate>COMMON.BTN_VALIDATE</ion-label>\n </ion-button>\n </ng-template>\n\n </ngx-material-timepicker>\n </mat-form-field>\n </ion-col>\n </ion-row>\n </ion-grid>\n\n\n</ng-template>\n\n<ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n</ng-template>\n\n<ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n</ng-template>\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n",
|
|
6123
6100
|
providers: [
|
|
6124
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6101
|
+
DEFAULT_VALUE_ACCESSOR$1,
|
|
6125
6102
|
],
|
|
6126
6103
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6127
6104
|
styles: [":host{display:inline-block;width:100%;position:relative;--ion-grid-column-padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}mat-form-field .datetime-md{padding:0!important}ion-row.no-wrap{flex-wrap:nowrap}ion-col.day{min-width:100px}ion-col.day .mat-form-field-subscript-wrapper{overflow:visible;right:-64px;width:calc(100% + 64px)}ion-col.day .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper{display:flex}ion-col.day .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper .mat-form-field-hint-spacer{flex:1 0 1em}ion-col.hour{min-width:55px;max-width:65px}ion-col.hour mat-form-field{width:100%}ion-col.hour mat-form-field input[type=text],ion-col.hour mat-form-field mat-label{text-align:left;min-width:50px}mat-form-field.mat-form-field-disabled ion-col.day{min-width:100px}.hour .mat-form-field-label{max-width:40px}.hour mat-form-field.mat-form-field-should-float .mat-form-field-placeholder{max-width:inherit}mat-error{text-align:right;width:100%}"]
|
|
@@ -6156,15 +6133,15 @@
|
|
|
6156
6133
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
6157
6134
|
};
|
|
6158
6135
|
|
|
6159
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6136
|
+
var DEFAULT_VALUE_ACCESSOR$2 = {
|
|
6160
6137
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6161
6138
|
useExisting: i0.forwardRef(function () { return MatDateShort; }),
|
|
6162
6139
|
multi: true
|
|
6163
6140
|
};
|
|
6164
|
-
var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
|
|
6141
|
+
var DAY_MASK$2 = [/\d/, /\d/, /\d/, /\d/];
|
|
6165
6142
|
var noop$4 = function () {
|
|
6166
6143
|
};
|
|
6167
|
-
var ɵ0$
|
|
6144
|
+
var ɵ0$5 = noop$4;
|
|
6168
6145
|
var MatDateShort = /** @class */ (function () {
|
|
6169
6146
|
function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
6170
6147
|
this.dateAdapter = dateAdapter;
|
|
@@ -6177,7 +6154,7 @@
|
|
|
6177
6154
|
this._onTouchedCallback = noop$4;
|
|
6178
6155
|
this.writing = true;
|
|
6179
6156
|
this.disabling = false;
|
|
6180
|
-
this.dayMask = DAY_MASK;
|
|
6157
|
+
this.dayMask = DAY_MASK$2;
|
|
6181
6158
|
this.disabled = false;
|
|
6182
6159
|
this.floatLabel = 'auto';
|
|
6183
6160
|
this.readonly = false;
|
|
@@ -6454,7 +6431,7 @@
|
|
|
6454
6431
|
selector: 'mat-date-short-field',
|
|
6455
6432
|
template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly else writable\">\n <input matInput hidden type=\"text\" readonly=\"true\" [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix><ng-content select=\"[matPrefix]\"></ng-content></div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dayControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_YEAR_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker1)\"\n (keyup.escape)=\"preventEvent($event)\"\n (click)=\"matInput.select()\"\n [required]=\"required\"\n [tabindex]=\"tabindex\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dayControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker1)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n\n <!-- Hide the final control -->\n <input matInput type=\"text\"\n [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker1\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n (click)=\"openDatePicker($event, datePicker1)\"\n [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"writeValue(null)\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('validDate')\" translate>ERROR.FIELD_NOT_VALID_DATE</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateIsAfter')\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateRange')\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMaxDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMinDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngIf=\"formControl.hasError('msg')\">{{formControl.errors.msg}}</mat-error>\n <ng-content select=\"mat-error\"></ng-content>\n </mat-form-field>\n\n <mat-datepicker #datePicker1\n startView=\"multi-year\"\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n (yearSelected)=\"closeDatePicker($event, datePicker1)\"\n [startAt]=\"startDate\"></mat-datepicker>\n\n <ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n </ng-template>\n\n <ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n </ng-template>\n\n</ng-template>\n",
|
|
6456
6433
|
providers: [
|
|
6457
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6434
|
+
DEFAULT_VALUE_ACCESSOR$2,
|
|
6458
6435
|
],
|
|
6459
6436
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6460
6437
|
styles: [":host{display:inline-block;width:100%;position:relative}:host [no-padding]{--ion-grid-column-padding:0}:host [nowrap]{flex-wrap:nowrap}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}mat-form-field .datetime-md,mat-form-field ion-datetime{padding:0!important}ion-col.day{min-width:100px}ion-col.day .mat-form-field-subscript-wrapper{overflow:visible;right:-64px;width:calc(100% + 64px)}ion-col.day .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper{display:flex}ion-col.day .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper .mat-form-field-hint-spacer{flex:1 0 1em}ion-col.hour{min-width:55px;max-width:65px}ion-col.hour mat-form-field{width:100%}ion-col.hour mat-form-field input[type=text],ion-col.hour mat-form-field mat-label{text-align:left;min-width:50px}mat-form-field.mat-form-field-disabled ion-col.day{min-width:100px}.hour .mat-form-field-label{max-width:40px}.hour mat-form-field.mat-form-field-should-float .mat-form-field-placeholder{max-width:inherit}mat-error{text-align:right;width:100%}"]
|
|
@@ -6525,16 +6502,16 @@
|
|
|
6525
6502
|
},] }
|
|
6526
6503
|
];
|
|
6527
6504
|
|
|
6528
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6505
|
+
var DEFAULT_VALUE_ACCESSOR$3 = {
|
|
6529
6506
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6530
6507
|
useExisting: i0.forwardRef(function () { return MatDuration; }),
|
|
6531
6508
|
multi: true
|
|
6532
6509
|
};
|
|
6533
6510
|
var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
|
|
6534
|
-
var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
6535
|
-
var noop$
|
|
6511
|
+
var HOUR_MASK$1 = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
6512
|
+
var noop$5 = function () {
|
|
6536
6513
|
};
|
|
6537
|
-
var ɵ0$6 = noop$
|
|
6514
|
+
var ɵ0$6 = noop$5;
|
|
6538
6515
|
var MatDuration = /** @class */ (function () {
|
|
6539
6516
|
function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
|
|
6540
6517
|
this.dateAdapter = dateAdapter;
|
|
@@ -6543,11 +6520,11 @@
|
|
|
6543
6520
|
this.cd = cd;
|
|
6544
6521
|
this.formGroupDir = formGroupDir;
|
|
6545
6522
|
this._subscription = new rxjs.Subscription();
|
|
6546
|
-
this._onChangeCallback = noop$
|
|
6547
|
-
this._onTouchedCallback = noop$
|
|
6523
|
+
this._onChangeCallback = noop$5;
|
|
6524
|
+
this._onTouchedCallback = noop$5;
|
|
6548
6525
|
this.writing = true;
|
|
6549
6526
|
this.disabling = false;
|
|
6550
|
-
this.hourMask = HOUR_MASK;
|
|
6527
|
+
this.hourMask = HOUR_MASK$1;
|
|
6551
6528
|
this.disabled = false;
|
|
6552
6529
|
this.floatLabel = 'auto';
|
|
6553
6530
|
this.readonly = false;
|
|
@@ -6740,7 +6717,7 @@
|
|
|
6740
6717
|
selector: 'mat-duration-field',
|
|
6741
6718
|
template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly else writable\">\n <input matInput hidden type=\"text\" readonly=\"true\" [formControl]=\"formControl\">\n <ion-text>{{ formControl.value|duration }}</ion-text>\n</mat-form-field>\n\n<!-- writable -->\n<ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-disabled]=\"formControl.disabled\"\n [class.mat-form-field-invalid]=\"formControl.touched && formControl.invalid\">\n <mat-label *ngIf=\"placeholder && floatLabel != 'never'\" translate>COMMON.TIME</mat-label>\n\n <div matPrefix><ng-content select=\"[matPrefix]\"></ng-content></div>\n\n <input matInput #matInput type=\"text\"\n autocomplete=\"off\"\n [formControl]=\"textControl\"\n [textMask]=\"{mask: hourMask, keepCharPositions: true, placeholderChar: placeholderChar, guide: true}\"\n [placeholder]=\"'COMMON.DURATION_PLACEHOLDER'|translate\"\n [required]=\"required\"\n (keydown.tab)=\"moveCaretToSeparator($event, true)\"\n (keydown.shift.tab)=\"moveCaretToSeparator($event, false)\"\n (keyup.escape)=\"preventEvent($event)\"\n (blur)=\"checkIfTouched()\"\n [tabindex]=\"tabindex !== undefined ? tabindex+1 : undefined\">\n\n\n <!-- errors -->\n <mat-error *ngIf=\"!formControl.hasError('required') && textControl.hasError('pattern')\" translate>ERROR.FIELD_NOT_VALID_PATTERN</mat-error>\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('min')\">\n {{(compact ? 'ERROR.FIELD_MIN_COMPACT' : 'ERROR.FIELD_MIN') | translate:formControl.errors.min }}</mat-error>\n <mat-error *ngIf=\"formControl.hasError('max')\">\n {{(compact ? 'ERROR.FIELD_MAX_COMPACT' : 'ERROR.FIELD_MAX') | translate:formControl.errors.max }}</mat-error>\n\n <ng-content select=\"mat-error\"></ng-content>\n </mat-form-field>\n</ng-template>\n\n",
|
|
6742
6719
|
providers: [
|
|
6743
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6720
|
+
DEFAULT_VALUE_ACCESSOR$3,
|
|
6744
6721
|
],
|
|
6745
6722
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6746
6723
|
styles: [":host{display:inline-block;min-width:140px;position:relative;--ion-grid-column-padding:0}:host,mat-form-field{width:100%}mat-form-field .mat-form-field-subscript-wrapper{overflow:visible;top:100%}mat-form-field .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper{display:flex}mat-form-field .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper .mat-form-field-hint-spacer{flex:1 0 1em}mat-error{text-align:right;width:100%}"]
|
|
@@ -6800,22 +6777,22 @@
|
|
|
6800
6777
|
},] }
|
|
6801
6778
|
];
|
|
6802
6779
|
|
|
6803
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6780
|
+
var DEFAULT_VALUE_ACCESSOR$4 = {
|
|
6804
6781
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6805
6782
|
useExisting: i0.forwardRef(function () { return MatBooleanField; }),
|
|
6806
6783
|
multi: true
|
|
6807
6784
|
};
|
|
6808
|
-
var noop$
|
|
6785
|
+
var noop$6 = function () {
|
|
6809
6786
|
};
|
|
6810
|
-
var ɵ0$
|
|
6787
|
+
var ɵ0$7 = noop$6;
|
|
6811
6788
|
var MatBooleanField = /** @class */ (function () {
|
|
6812
6789
|
function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
|
|
6813
6790
|
this.translate = translate;
|
|
6814
6791
|
this.formBuilder = formBuilder;
|
|
6815
6792
|
this.cd = cd;
|
|
6816
6793
|
this.formGroupDir = formGroupDir;
|
|
6817
|
-
this._onChangeCallback = noop$
|
|
6818
|
-
this._onTouchedCallback = noop$
|
|
6794
|
+
this._onChangeCallback = noop$6;
|
|
6795
|
+
this._onTouchedCallback = noop$6;
|
|
6819
6796
|
this._writing = false;
|
|
6820
6797
|
this.showRadio = false;
|
|
6821
6798
|
this.disabled = false;
|
|
@@ -6990,7 +6967,7 @@
|
|
|
6990
6967
|
selector: 'mat-boolean-field',
|
|
6991
6968
|
template: "<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled {{classList}}\">\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput hidden type=\"text\" readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{(formControl.value == null && 'COMMON.EMPTY_OPTION' || (formControl.value === true && yesLabel) || noLabel) | translate }}</ion-text>\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n</mat-form-field>\n\n<ng-template #writable>\n <ng-container [ngSwitch]=\"style\">\n\n <!-- Radio -->\n <mat-form-field *ngSwitchCase=\"'radio'\"\n [floatLabel]=\"showRadio && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-radio {{classList}}\">\n <mat-label *ngIf=\"placeholder && floatLabel!=='never'\">\n {{placeholder}}\n <span [hidden]=\"showRadio\">({{yesLabel|translate}}/{{'COMMON.NO'|translate}})</span>\n </mat-label>\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput #fakeInput type=\"text\" readonly=\"true\"\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <!-- radio button -->\n <mat-radio-group [hidden]=\"!showRadio\"\n [formControl]=\"formControl\"\n (change)=\"onRadioValueChanged($event)\">\n <mat-radio-button #yesButton [value]=\"true\">\n <span>{{yesLabel|translate}}</span>\n </mat-radio-button> \n <mat-radio-button #noButton [value]=\"false\">\n <span>{{noLabel|translate}}</span>\n </mat-radio-button>\n </mat-radio-group>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n </mat-form-field>\n\n <!-- Checkbox -->\n <mat-form-field *ngSwitchCase=\"'checkbox'\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-checkbox {{classList}}\">\n <mat-label *ngIf=\"placeholder && !showRadio\">\n {{placeholder}}\n </mat-label>\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput #matInput\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <ion-label> </ion-label>\n\n <!-- checkbox, when compact -->\n <mat-checkbox #checkboxButton\n [formControl]=\"formControl\"\n (change)=\"onCheckboxValueChanged($event)\"\n [indeterminate]=\"value===undefined\"\n [hidden]=\"!showRadio\"\n [tabindex]=\"tabindex\">\n </mat-checkbox>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n </mat-form-field>\n\n <!-- Buttons -->\n <mat-form-field *ngSwitchCase=\"'button'\"\n [floatLabel]=\"floatLabel === 'never' ? 'never' : 'always'\"\n class=\"mat-boolean-field mat-boolean-field-button {{classList}}\">\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput type=\"text\" hidden\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [required]=\"required\">\n <div class=\"mat-form-field-buttons\"\n [style.--buttons-col-count]=\"buttonsColCount\"\n *ngIf=\"!formControl.disabled; else disabledLabel\">\n <!-- yes -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex\"\n (click)=\"writeValue(true, $event)\"\n (keyup.enter)=\"writeValue(true, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === true) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && yesIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{yesLabel|translate}}\n </ion-button>\n\n <!-- No button -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex !== undefined ? (_tabindex + 1) : undefined\"\n (click)=\"writeValue(false, $event)\"\n (keyup.enter)=\"writeValue(false, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === false) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && noIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{noLabel|translate}}\n </ion-button>\n </div>\n <ng-template #disabledLabel>\n <ion-label><i translate>COMMON.EMPTY_OPTION</i></ion-label>\n </ng-template>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n\n </mat-form-field>\n </ng-container>\n\n</ng-template>\n\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n<ng-template #matSuffixTemplate>\n <ng-content select=\"[matSuffix]\"></ng-content>\n</ng-template>\n",
|
|
6992
6969
|
providers: [
|
|
6993
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6970
|
+
DEFAULT_VALUE_ACCESSOR$4
|
|
6994
6971
|
],
|
|
6995
6972
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6996
6973
|
styles: [":host{width:100%}.mat-form-field.mat-boolean-field-radio{margin-top:-2px}.mat-form-field.mat-boolean-field-button{margin-top:-4px}.mat-form-field .mat-form-field-buttons{width:100%;display:flex;flex-flow:row wrap;justify-content:flex-start;align-items:center}.mat-form-field .mat-form-field-buttons .mat-form-field-button{--flex-basis:calc(100% / var(--buttons-col-count, 2));flex:0 1 var(--flex-basis);max-width:min(var(--flex-basis),150px);white-space:normal;padding:0 2px;height:40px}"]
|
|
@@ -7077,7 +7054,6 @@
|
|
|
7077
7054
|
return MatNumpadEvent;
|
|
7078
7055
|
}(KeyboardEvent));
|
|
7079
7056
|
|
|
7080
|
-
exports.AnimationState = void 0;
|
|
7081
7057
|
(function (AnimationState) {
|
|
7082
7058
|
AnimationState["ENTER"] = "enter";
|
|
7083
7059
|
AnimationState["ENTER_INPUT"] = "enter-input";
|
|
@@ -7245,7 +7221,7 @@
|
|
|
7245
7221
|
};
|
|
7246
7222
|
return MatNumpadDomService;
|
|
7247
7223
|
}());
|
|
7248
|
-
MatNumpadDomService.ɵprov =
|
|
7224
|
+
MatNumpadDomService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatNumpadDomService_Factory() { return new MatNumpadDomService(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i1$4.DOCUMENT, 8)); }, token: MatNumpadDomService, providedIn: "root" });
|
|
7249
7225
|
MatNumpadDomService.decorators = [
|
|
7250
7226
|
{ type: i0.Injectable, args: [{
|
|
7251
7227
|
providedIn: 'root'
|
|
@@ -7651,7 +7627,7 @@
|
|
|
7651
7627
|
},] }
|
|
7652
7628
|
];
|
|
7653
7629
|
|
|
7654
|
-
var DEFAULT_VALUE_ACCESSOR = {
|
|
7630
|
+
var DEFAULT_VALUE_ACCESSOR$5 = {
|
|
7655
7631
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
7656
7632
|
useExisting: i0.forwardRef(function () { return MatSwipeField; }),
|
|
7657
7633
|
multi: true
|
|
@@ -7971,7 +7947,7 @@
|
|
|
7971
7947
|
{ type: i0.Component, args: [{
|
|
7972
7948
|
selector: 'mat-swipe-field',
|
|
7973
7949
|
template: "<mat-form-field [floatLabel]=\"showSlides && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\n [class]=\"classList\"\n [class.mat-form-field-disabled]=\"disabled\">\n <mat-label *ngIf=\"placeholder && floatLabel!=='never'\">\n {{placeholder}}\n </mat-label>\n <input matInput #fakeInput type=\"text\"\n [formControl]=\"formControl\"\n [readonly]=\"true\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showSlides\"\n [tabindex]=\"tabindex\">\n\n <div class=\"slides-container\" [class.hidden]=\"!showSlides\">\n <ion-slides #slides\n [options]=\"slidesOptions\"\n (ionSlidesDidLoad)=\"slidesLoaded()\"\n (ionSlideReachStart)=\"reachStart(true)\"\n (ionSlideReachEnd)=\"reachEnd(true)\"\n (ionSlideNextEnd)=\"reachStart(false)\"\n (ionSlidePrevEnd)=\"reachEnd(false)\"\n (ionSlideDidChange)=\"slideChanged()\"\n >\n <ion-slide *ngFor=\"let item of $items | async\">\n <ion-label>{{ displayWith(item) }}</ion-label>\n </ion-slide>\n\n </ion-slides>\n </div>\n\n <button #prevButton\n mat-icon-button\n type=\"button\"\n class=\"button-prev\"\n [hidden]=\"!showSlides\"\n [disabled]=\"previousDisabled\"\n (click)=\"previous()\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n <button #nextButton\n mat-icon-button\n type=\"button\"\n class=\"button-next\"\n [hidden]=\"!showSlides\"\n [disabled]=\"nextDisabled\"\n (click)=\"next()\">\n <mat-icon>chevron_right</mat-icon>\n </button>\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clearValue($event)\"\n [hidden]=\"disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('entity')\" translate>ERROR.FIELD_INVALID</mat-error>\n\n</mat-form-field>\n",
|
|
7974
|
-
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
7950
|
+
providers: [DEFAULT_VALUE_ACCESSOR$5],
|
|
7975
7951
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7976
7952
|
styles: [":host{display:inline-block;width:100%;position:relative}input.hidden{display:none}.slides-container .swiper-slide{font-size:16px!important}.slides-container.hidden{visibility:hidden;height:0!important}.button-next,.button-prev{position:absolute;top:calc(50% - 20px);z-index:10}.button-prev{left:0;right:auto}.button-next{left:auto;right:0}"]
|
|
7977
7953
|
},] }
|
|
@@ -8032,14 +8008,14 @@
|
|
|
8032
8008
|
},] }
|
|
8033
8009
|
];
|
|
8034
8010
|
|
|
8035
|
-
var noop$
|
|
8036
|
-
var ɵ0$
|
|
8011
|
+
var noop$7 = function () { };
|
|
8012
|
+
var ɵ0$8 = noop$7;
|
|
8037
8013
|
var MatChipsField = /** @class */ (function () {
|
|
8038
8014
|
function MatChipsField(cd, formGroupDir) {
|
|
8039
8015
|
this.cd = cd;
|
|
8040
8016
|
this.formGroupDir = formGroupDir;
|
|
8041
|
-
this._onChangeCallback = noop$
|
|
8042
|
-
this._onTouchedCallback = noop$
|
|
8017
|
+
this._onChangeCallback = noop$7;
|
|
8018
|
+
this._onTouchedCallback = noop$7;
|
|
8043
8019
|
this.logPrefix = '[mat-chips] ';
|
|
8044
8020
|
this.formControlName = null;
|
|
8045
8021
|
this.required = false;
|
|
@@ -9007,7 +8983,7 @@
|
|
|
9007
8983
|
};
|
|
9008
8984
|
return ProgressBarService;
|
|
9009
8985
|
}());
|
|
9010
|
-
ProgressBarService.ɵprov =
|
|
8986
|
+
ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
|
|
9011
8987
|
ProgressBarService.decorators = [
|
|
9012
8988
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9013
8989
|
];
|
|
@@ -9054,7 +9030,7 @@
|
|
|
9054
9030
|
};
|
|
9055
9031
|
return AppGestureConfig;
|
|
9056
9032
|
}(i1$6.HammerGestureConfig));
|
|
9057
|
-
AppGestureConfig.ɵprov =
|
|
9033
|
+
AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
|
|
9058
9034
|
AppGestureConfig.decorators = [
|
|
9059
9035
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9060
9036
|
];
|
|
@@ -9321,7 +9297,7 @@
|
|
|
9321
9297
|
};
|
|
9322
9298
|
return MatPaginatorI18n;
|
|
9323
9299
|
}(paginator.MatPaginatorIntl));
|
|
9324
|
-
MatPaginatorI18n.ɵprov =
|
|
9300
|
+
MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
|
|
9325
9301
|
MatPaginatorI18n.decorators = [
|
|
9326
9302
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9327
9303
|
];
|
|
@@ -9413,17 +9389,17 @@
|
|
|
9413
9389
|
return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
|
|
9414
9390
|
}
|
|
9415
9391
|
|
|
9416
|
-
var noop = function () {
|
|
9392
|
+
var noop$8 = function () {
|
|
9417
9393
|
};
|
|
9418
|
-
var ɵ0$
|
|
9394
|
+
var ɵ0$9 = noop$8;
|
|
9419
9395
|
var AppFormField = /** @class */ (function () {
|
|
9420
9396
|
function AppFormField(translate, cd, injector, formGroupDir) {
|
|
9421
9397
|
this.translate = translate;
|
|
9422
9398
|
this.cd = cd;
|
|
9423
9399
|
this.injector = injector;
|
|
9424
9400
|
this.formGroupDir = formGroupDir;
|
|
9425
|
-
this._onChangeCallback = noop;
|
|
9426
|
-
this._onTouchedCallback = noop;
|
|
9401
|
+
this._onChangeCallback = noop$8;
|
|
9402
|
+
this._onTouchedCallback = noop$8;
|
|
9427
9403
|
this.readonly = false;
|
|
9428
9404
|
this.compact = false;
|
|
9429
9405
|
this.floatLabel = 'auto';
|
|
@@ -9981,7 +9957,7 @@
|
|
|
9981
9957
|
};
|
|
9982
9958
|
return AudioProvider;
|
|
9983
9959
|
}(StartableService));
|
|
9984
|
-
AudioProvider.ɵprov =
|
|
9960
|
+
AudioProvider.ɵprov = i0.ɵɵdefineInjectable({ factory: function AudioProvider_Factory() { return new AudioProvider(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$2.NativeAudio, 8), i0.ɵɵinject(i3$1.Vibration, 8), i0.ɵɵinject(i4.AudioManagement, 8)); }, token: AudioProvider, providedIn: "root" });
|
|
9985
9961
|
AudioProvider.decorators = [
|
|
9986
9962
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9987
9963
|
];
|
|
@@ -10012,12 +9988,13 @@
|
|
|
10012
9988
|
]; };
|
|
10013
9989
|
|
|
10014
9990
|
var Hotkeys = /** @class */ (function () {
|
|
10015
|
-
function Hotkeys(eventManager, dialog, document, modalController) {
|
|
9991
|
+
function Hotkeys(eventManager, dialog, document, modalController, popoverController) {
|
|
10016
9992
|
var _this = this;
|
|
10017
9993
|
this.eventManager = eventManager;
|
|
10018
9994
|
this.dialog = dialog;
|
|
10019
9995
|
this.document = document;
|
|
10020
9996
|
this.modalController = modalController;
|
|
9997
|
+
this.popoverController = popoverController;
|
|
10021
9998
|
this._debug = false;
|
|
10022
9999
|
this._hotkeys = new Map();
|
|
10023
10000
|
this._defaults = {
|
|
@@ -10046,15 +10023,24 @@
|
|
|
10046
10023
|
}
|
|
10047
10024
|
return new rxjs.Observable(function (observer) {
|
|
10048
10025
|
var handler = function (e) { return __awaiter(_this, void 0, void 0, function () {
|
|
10049
|
-
var top;
|
|
10050
|
-
return __generator(this, function (
|
|
10051
|
-
switch (
|
|
10026
|
+
var top, _a;
|
|
10027
|
+
return __generator(this, function (_b) {
|
|
10028
|
+
switch (_b.label) {
|
|
10052
10029
|
case 0: return [4 /*yield*/, this.modalController.getTop()];
|
|
10053
10030
|
case 1:
|
|
10054
|
-
|
|
10031
|
+
_a = (_b.sent());
|
|
10032
|
+
if (_a) return [3 /*break*/, 3];
|
|
10033
|
+
return [4 /*yield*/, this.popoverController.getTop()];
|
|
10034
|
+
case 2:
|
|
10035
|
+
_a = (_b.sent());
|
|
10036
|
+
_b.label = 3;
|
|
10037
|
+
case 3:
|
|
10038
|
+
top = _a;
|
|
10055
10039
|
// If modal present, check its component name against hotkey element name (fix #181)
|
|
10056
|
-
if (top && top.component['name'] !== merged.elementName)
|
|
10040
|
+
if (top && top.component['name'] !== merged.elementName) {
|
|
10041
|
+
e.preventDefault();
|
|
10057
10042
|
return [2 /*return*/];
|
|
10043
|
+
}
|
|
10058
10044
|
if (e instanceof KeyboardEvent && e.repeat)
|
|
10059
10045
|
return [2 /*return*/]; // skip when repeated
|
|
10060
10046
|
if (merged.preventDefault)
|
|
@@ -10081,7 +10067,7 @@
|
|
|
10081
10067
|
};
|
|
10082
10068
|
return Hotkeys;
|
|
10083
10069
|
}());
|
|
10084
|
-
Hotkeys.ɵprov =
|
|
10070
|
+
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), i0.ɵɵinject(i1$5.PopoverController)); }, token: Hotkeys, providedIn: "root" });
|
|
10085
10071
|
Hotkeys.decorators = [
|
|
10086
10072
|
{ type: i0.Injectable, args: [{
|
|
10087
10073
|
providedIn: 'root'
|
|
@@ -10091,7 +10077,8 @@
|
|
|
10091
10077
|
{ type: i1$6.EventManager },
|
|
10092
10078
|
{ type: i2.MatDialog },
|
|
10093
10079
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [i1$4.DOCUMENT,] }] },
|
|
10094
|
-
{ type: i1$5.ModalController }
|
|
10080
|
+
{ type: i1$5.ModalController },
|
|
10081
|
+
{ type: i1$5.PopoverController }
|
|
10095
10082
|
]; };
|
|
10096
10083
|
|
|
10097
10084
|
var SharedHotkeysModule = /** @class */ (function () {
|
|
@@ -10285,7 +10272,7 @@
|
|
|
10285
10272
|
return Base64ImageReader;
|
|
10286
10273
|
}());
|
|
10287
10274
|
|
|
10288
|
-
var uuidv4
|
|
10275
|
+
var uuidv4 = uuidv4Imported__namespace;
|
|
10289
10276
|
var FileService = /** @class */ (function () {
|
|
10290
10277
|
function FileService(platform,
|
|
10291
10278
|
//private transfer: FileTransfer,
|
|
@@ -10331,7 +10318,7 @@
|
|
|
10331
10318
|
lastSlashIndex = source.lastIndexOf('/');
|
|
10332
10319
|
if (lastSlashIndex === -1)
|
|
10333
10320
|
throw new Error('Invalid URL: ' + source);
|
|
10334
|
-
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4
|
|
10321
|
+
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
|
|
10335
10322
|
if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
|
|
10336
10323
|
console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
|
|
10337
10324
|
targetFilePath = this._imageDirectory + fileName;
|
|
@@ -10394,7 +10381,7 @@
|
|
|
10394
10381
|
};
|
|
10395
10382
|
return FileService;
|
|
10396
10383
|
}());
|
|
10397
|
-
FileService.ɵprov =
|
|
10384
|
+
FileService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(ENVIRONMENT)); }, token: FileService, providedIn: "root" });
|
|
10398
10385
|
FileService.decorators = [
|
|
10399
10386
|
{ type: i0.Injectable, args: [{
|
|
10400
10387
|
providedIn: 'root',
|
|
@@ -10561,7 +10548,7 @@
|
|
|
10561
10548
|
Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
10562
10549
|
|
|
10563
10550
|
var scrypt = require('scrypt-async');
|
|
10564
|
-
var sha256
|
|
10551
|
+
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
10565
10552
|
var sha512 = require('hash.js/lib/hash/sha/512');
|
|
10566
10553
|
var nacl = {
|
|
10567
10554
|
sign: tweetnacl.sign,
|
|
@@ -10667,7 +10654,7 @@
|
|
|
10667
10654
|
* Hash (using SHA256) a message
|
|
10668
10655
|
*/
|
|
10669
10656
|
CryptoService.prototype.sha256 = function (message) {
|
|
10670
|
-
return sha256
|
|
10657
|
+
return sha256().update(message).digest('hex');
|
|
10671
10658
|
};
|
|
10672
10659
|
/**
|
|
10673
10660
|
* Hash (using SHA512) a message
|
|
@@ -10681,7 +10668,7 @@
|
|
|
10681
10668
|
};
|
|
10682
10669
|
return CryptoService;
|
|
10683
10670
|
}());
|
|
10684
|
-
CryptoService.ɵprov =
|
|
10671
|
+
CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
|
|
10685
10672
|
CryptoService.decorators = [
|
|
10686
10673
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
10687
10674
|
];
|
|
@@ -11654,7 +11641,7 @@
|
|
|
11654
11641
|
onRefresh: [{ type: i0.Input }]
|
|
11655
11642
|
};
|
|
11656
11643
|
|
|
11657
|
-
var moment$
|
|
11644
|
+
var moment$3 = momentImported__namespace;
|
|
11658
11645
|
var SETTINGS_STORAGE_KEY = 'settings';
|
|
11659
11646
|
var SETTINGS_TRANSIENT_PROPERTIES = ['mobile', 'touchUi' /*deprecated*/];
|
|
11660
11647
|
// fixme: this constant points to static environment
|
|
@@ -11956,11 +11943,11 @@
|
|
|
11956
11943
|
if (!feature) {
|
|
11957
11944
|
feature = {
|
|
11958
11945
|
name: featureName.toLowerCase(),
|
|
11959
|
-
lastSyncDate: moment$
|
|
11946
|
+
lastSyncDate: moment$3().toISOString()
|
|
11960
11947
|
};
|
|
11961
11948
|
}
|
|
11962
11949
|
else {
|
|
11963
|
-
feature.lastSyncDate = moment$
|
|
11950
|
+
feature.lastSyncDate = moment$3().toISOString();
|
|
11964
11951
|
}
|
|
11965
11952
|
this.saveOfflineFeature(feature);
|
|
11966
11953
|
};
|
|
@@ -12154,7 +12141,7 @@
|
|
|
12154
12141
|
if (!page || !page.title || !page.path)
|
|
12155
12142
|
throw Error('Missing required argument \'page\', \'page.path\' or \'page.title\'');
|
|
12156
12143
|
// Set time
|
|
12157
|
-
page.time = page.time || moment$
|
|
12144
|
+
page.time = page.time || moment$3();
|
|
12158
12145
|
// Clean the title (remove <small> tags)
|
|
12159
12146
|
if (!opts || opts.removeTitleSmallTag !== false) {
|
|
12160
12147
|
var tagIndex = page.title.indexOf('</small>');
|
|
@@ -12171,7 +12158,7 @@
|
|
|
12171
12158
|
};
|
|
12172
12159
|
return LocalSettingsService;
|
|
12173
12160
|
}(StartableService));
|
|
12174
|
-
LocalSettingsService.ɵprov =
|
|
12161
|
+
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" });
|
|
12175
12162
|
LocalSettingsService.decorators = [
|
|
12176
12163
|
{ type: i0.Injectable, args: [{
|
|
12177
12164
|
providedIn: 'root',
|
|
@@ -13052,7 +13039,7 @@
|
|
|
13052
13039
|
};
|
|
13053
13040
|
return NetworkService;
|
|
13054
13041
|
}(StartableService));
|
|
13055
|
-
NetworkService.ɵprov =
|
|
13042
|
+
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" });
|
|
13056
13043
|
NetworkService.decorators = [
|
|
13057
13044
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
13058
13045
|
];
|
|
@@ -13072,7 +13059,7 @@
|
|
|
13072
13059
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
|
|
13073
13060
|
]; };
|
|
13074
13061
|
|
|
13075
|
-
var ErrorCodes
|
|
13062
|
+
var ErrorCodes = {
|
|
13076
13063
|
UNKNOWN_ERROR: 0,
|
|
13077
13064
|
LOAD_ACCOUNT_ERROR: 1,
|
|
13078
13065
|
BAD_PASSWORD: 2,
|
|
@@ -13489,7 +13476,7 @@
|
|
|
13489
13476
|
case 13:
|
|
13490
13477
|
err_1 = _b.sent();
|
|
13491
13478
|
console.error(err_1);
|
|
13492
|
-
throw { code: ErrorCodes
|
|
13479
|
+
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
13493
13480
|
case 14:
|
|
13494
13481
|
// Emit update event
|
|
13495
13482
|
if (!opts || opts.emitEvent !== false) {
|
|
@@ -14266,7 +14253,7 @@
|
|
|
14266
14253
|
}(StartableService));
|
|
14267
14254
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
14268
14255
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
14269
|
-
EntitiesStorage.ɵprov =
|
|
14256
|
+
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" });
|
|
14270
14257
|
EntitiesStorage.decorators = [
|
|
14271
14258
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
14272
14259
|
];
|
|
@@ -14422,10 +14409,10 @@
|
|
|
14422
14409
|
function referentialsToString(values, properties, separator) {
|
|
14423
14410
|
return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
|
|
14424
14411
|
}
|
|
14425
|
-
var ɵ0$
|
|
14412
|
+
var ɵ0$a = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
14426
14413
|
var StatusList = Object.freeze([
|
|
14427
14414
|
{
|
|
14428
|
-
id: ɵ0$
|
|
14415
|
+
id: ɵ0$a,
|
|
14429
14416
|
icon: 'checkmark',
|
|
14430
14417
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
14431
14418
|
},
|
|
@@ -14728,7 +14715,7 @@
|
|
|
14728
14715
|
(data.lastName || '')) || '';
|
|
14729
14716
|
}
|
|
14730
14717
|
|
|
14731
|
-
var uuidv4 = uuidv4Imported__namespace;
|
|
14718
|
+
var uuidv4$1 = uuidv4Imported__namespace;
|
|
14732
14719
|
var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
14733
14720
|
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
14734
14721
|
/**
|
|
@@ -14772,7 +14759,7 @@
|
|
|
14772
14759
|
// Skip if not tracked
|
|
14773
14760
|
if (!context || !context.tracked)
|
|
14774
14761
|
return forward(operation);
|
|
14775
|
-
var id = context.serializationKey || uuidv4();
|
|
14762
|
+
var id = context.serializationKey || uuidv4$1();
|
|
14776
14763
|
console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
|
|
14777
14764
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
14778
14765
|
var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -15403,14 +15390,14 @@
|
|
|
15403
15390
|
mutationLinks = void 0;
|
|
15404
15391
|
// Add queue to store tracked queries, when offline
|
|
15405
15392
|
if (enableTrackMutationQueries) {
|
|
15406
|
-
serializingLink = new SerializingLink__default[
|
|
15393
|
+
serializingLink = new SerializingLink__default['default']();
|
|
15407
15394
|
trackerLink = createTrackerLink({
|
|
15408
15395
|
storage: storage,
|
|
15409
15396
|
onNetworkStatusChange: this._networkStatusChanged$,
|
|
15410
15397
|
debounce: 1000,
|
|
15411
15398
|
debug: true
|
|
15412
15399
|
});
|
|
15413
|
-
queueLink_1 = new QueueLink__default[
|
|
15400
|
+
queueLink_1 = new QueueLink__default['default']();
|
|
15414
15401
|
this.registerSubscription(this._networkStatusChanged$
|
|
15415
15402
|
.subscribe(function (type) {
|
|
15416
15403
|
// Network is offline: start buffering into queue
|
|
@@ -15425,7 +15412,7 @@
|
|
|
15425
15412
|
}
|
|
15426
15413
|
}));
|
|
15427
15414
|
mutationLinks = [
|
|
15428
|
-
loggerLink__default[
|
|
15415
|
+
loggerLink__default['default'],
|
|
15429
15416
|
queueLink_1,
|
|
15430
15417
|
trackerLink,
|
|
15431
15418
|
queueLink_1,
|
|
@@ -15532,7 +15519,7 @@
|
|
|
15532
15519
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
15533
15520
|
|| this.toAppError(err.networkError)
|
|
15534
15521
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
15535
|
-
|| this.createAppErrorByCode(ErrorCodes
|
|
15522
|
+
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
15536
15523
|
// If graphQL: try to convert the first error found
|
|
15537
15524
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
15538
15525
|
|| this.toAppError(err)
|
|
@@ -15540,7 +15527,7 @@
|
|
|
15540
15527
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
15541
15528
|
|| err;
|
|
15542
15529
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
15543
|
-
if (error && error.code === ErrorCodes
|
|
15530
|
+
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
15544
15531
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
15545
15532
|
this.onNetworkError.next(error);
|
|
15546
15533
|
}
|
|
@@ -15551,7 +15538,7 @@
|
|
|
15551
15538
|
data: null,
|
|
15552
15539
|
errors: [error],
|
|
15553
15540
|
loading: false,
|
|
15554
|
-
networkStatus:
|
|
15541
|
+
networkStatus: core.NetworkStatus.error
|
|
15555
15542
|
};
|
|
15556
15543
|
};
|
|
15557
15544
|
GraphqlService.prototype.createAppErrorByCode = function (errorCode) {
|
|
@@ -15576,7 +15563,7 @@
|
|
|
15576
15563
|
return 'ERROR.UNAUTHORIZED';
|
|
15577
15564
|
case ServerErrorCodes.FORBIDDEN:
|
|
15578
15565
|
return 'ERROR.FORBIDDEN';
|
|
15579
|
-
case ErrorCodes
|
|
15566
|
+
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
15580
15567
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
15581
15568
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
15582
15569
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -15608,7 +15595,7 @@
|
|
|
15608
15595
|
};
|
|
15609
15596
|
return GraphqlService;
|
|
15610
15597
|
}(StartableService));
|
|
15611
|
-
GraphqlService.ɵprov =
|
|
15598
|
+
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" });
|
|
15612
15599
|
GraphqlService.decorators = [
|
|
15613
15600
|
{ type: i0.Injectable, args: [{
|
|
15614
15601
|
providedIn: 'root'
|
|
@@ -15625,7 +15612,7 @@
|
|
|
15625
15612
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
15626
15613
|
]; };
|
|
15627
15614
|
|
|
15628
|
-
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
15615
|
+
var sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
15629
15616
|
var BaseGraphqlServiceOptions = /** @class */ (function () {
|
|
15630
15617
|
function BaseGraphqlServiceOptions() {
|
|
15631
15618
|
}
|
|
@@ -15795,8 +15782,8 @@
|
|
|
15795
15782
|
};
|
|
15796
15783
|
/* -- protected methods -- */
|
|
15797
15784
|
BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
|
|
15798
|
-
var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
15799
|
-
var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
15785
|
+
var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
15786
|
+
var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
15800
15787
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
15801
15788
|
};
|
|
15802
15789
|
BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
|
|
@@ -15869,19 +15856,19 @@
|
|
|
15869
15856
|
/* ------------------------------------
|
|
15870
15857
|
* GraphQL queries
|
|
15871
15858
|
* ------------------------------------*/
|
|
15872
|
-
var Fragments
|
|
15873
|
-
account: core.gql(templateObject_1
|
|
15874
|
-
settings: core.gql(templateObject_2
|
|
15859
|
+
var Fragments = {
|
|
15860
|
+
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 }"]))),
|
|
15861
|
+
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 }"])))
|
|
15875
15862
|
};
|
|
15876
15863
|
// Load account query
|
|
15877
|
-
var LoadQuery
|
|
15864
|
+
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);
|
|
15878
15865
|
// Check email query
|
|
15879
|
-
var IsEmailExistsQuery = core.gql(templateObject_4
|
|
15866
|
+
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"])));
|
|
15880
15867
|
// Save (create or update) account mutation
|
|
15881
15868
|
var AccountMutations = {
|
|
15882
|
-
save: core.gql(templateObject_5
|
|
15883
|
-
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
|
|
15884
|
-
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
|
|
15869
|
+
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),
|
|
15870
|
+
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),
|
|
15871
|
+
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)
|
|
15885
15872
|
};
|
|
15886
15873
|
// Sent confirmation email
|
|
15887
15874
|
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"])));
|
|
@@ -16249,7 +16236,7 @@
|
|
|
16249
16236
|
error_3 = _b.sent();
|
|
16250
16237
|
console.error(error_3);
|
|
16251
16238
|
this.resetData();
|
|
16252
|
-
throw { code: ErrorCodes
|
|
16239
|
+
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
16253
16240
|
case 4:
|
|
16254
16241
|
// Store pubkey+keypair
|
|
16255
16242
|
this._cache.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -16285,7 +16272,7 @@
|
|
|
16285
16272
|
return [3 /*break*/, 18];
|
|
16286
16273
|
case 11:
|
|
16287
16274
|
err_1 = _b.sent();
|
|
16288
|
-
if (!(err_1 && +(err_1.code) === ErrorCodes
|
|
16275
|
+
if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
16289
16276
|
if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
|
|
16290
16277
|
isEmailExists = void 0;
|
|
16291
16278
|
_b.label = 12;
|
|
@@ -16301,12 +16288,12 @@
|
|
|
16301
16288
|
case 15:
|
|
16302
16289
|
// Email not exists (no account)
|
|
16303
16290
|
if (!isEmailExists) {
|
|
16304
|
-
throw { code: ErrorCodes
|
|
16291
|
+
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
16305
16292
|
}
|
|
16306
16293
|
_b.label = 16;
|
|
16307
16294
|
case 16:
|
|
16308
16295
|
// Email exists, so error = 'bad password'
|
|
16309
|
-
throw { code: ErrorCodes
|
|
16296
|
+
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
16310
16297
|
case 17: throw err_1; // resend the first error
|
|
16311
16298
|
case 18:
|
|
16312
16299
|
_b.trys.push([18, 20, , 21]);
|
|
@@ -16502,8 +16489,8 @@
|
|
|
16502
16489
|
_b.label = 3;
|
|
16503
16490
|
case 3: return [3 /*break*/, 6];
|
|
16504
16491
|
case 4: return [4 /*yield*/, this.graphql.query({
|
|
16505
|
-
query: LoadQuery
|
|
16506
|
-
error: { code: ErrorCodes
|
|
16492
|
+
query: LoadQuery,
|
|
16493
|
+
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
16507
16494
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
16508
16495
|
})];
|
|
16509
16496
|
case 5:
|
|
@@ -16541,7 +16528,7 @@
|
|
|
16541
16528
|
case 1:
|
|
16542
16529
|
isEmailExists = _b.sent();
|
|
16543
16530
|
if (isEmailExists) {
|
|
16544
|
-
throw { code: ErrorCodes
|
|
16531
|
+
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
16545
16532
|
}
|
|
16546
16533
|
return [2 /*return*/];
|
|
16547
16534
|
}
|
|
@@ -16591,7 +16578,7 @@
|
|
|
16591
16578
|
locale: locale
|
|
16592
16579
|
},
|
|
16593
16580
|
error: {
|
|
16594
|
-
code: ErrorCodes
|
|
16581
|
+
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
16595
16582
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
16596
16583
|
}
|
|
16597
16584
|
})];
|
|
@@ -16614,7 +16601,7 @@
|
|
|
16614
16601
|
code: code
|
|
16615
16602
|
},
|
|
16616
16603
|
error: {
|
|
16617
|
-
code: ErrorCodes
|
|
16604
|
+
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
16618
16605
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
16619
16606
|
}
|
|
16620
16607
|
})];
|
|
@@ -16714,7 +16701,7 @@
|
|
|
16714
16701
|
throw error_7;
|
|
16715
16702
|
console.error(error_7);
|
|
16716
16703
|
throw {
|
|
16717
|
-
code: ErrorCodes
|
|
16704
|
+
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
16718
16705
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
16719
16706
|
};
|
|
16720
16707
|
case 6: return [2 /*return*/];
|
|
@@ -16925,7 +16912,7 @@
|
|
|
16925
16912
|
case 1:
|
|
16926
16913
|
existingAccount = _b.sent();
|
|
16927
16914
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
16928
|
-
throw { code: ErrorCodes
|
|
16915
|
+
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
16929
16916
|
}
|
|
16930
16917
|
this.copyIdAndUpdateDate(existingAccount, account);
|
|
16931
16918
|
_b.label = 2;
|
|
@@ -16937,7 +16924,7 @@
|
|
|
16937
16924
|
mutation: isNew ? AccountMutations.create : AccountMutations.save,
|
|
16938
16925
|
variables: { data: json },
|
|
16939
16926
|
error: {
|
|
16940
|
-
code: ErrorCodes
|
|
16927
|
+
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
16941
16928
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
16942
16929
|
}
|
|
16943
16930
|
})];
|
|
@@ -16971,7 +16958,7 @@
|
|
|
16971
16958
|
mutation: AccountMutations.saveSettings,
|
|
16972
16959
|
variables: { data: json },
|
|
16973
16960
|
error: {
|
|
16974
|
-
code: ErrorCodes
|
|
16961
|
+
code: ErrorCodes.SAVE_SETTINGS_ERROR,
|
|
16975
16962
|
message: 'ERROR.SAVE_SETTINGS_ERROR'
|
|
16976
16963
|
}
|
|
16977
16964
|
})];
|
|
@@ -17002,7 +16989,7 @@
|
|
|
17002
16989
|
if (counter > 4) {
|
|
17003
16990
|
if (this._debug)
|
|
17004
16991
|
console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
|
|
17005
|
-
throw { code: ErrorCodes
|
|
16992
|
+
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
17006
16993
|
}
|
|
17007
16994
|
if (!token) return [3 /*break*/, 2];
|
|
17008
16995
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -17011,7 +16998,7 @@
|
|
|
17011
16998
|
token: token
|
|
17012
16999
|
},
|
|
17013
17000
|
error: {
|
|
17014
|
-
code: ErrorCodes
|
|
17001
|
+
code: ErrorCodes.UNAUTHORIZED,
|
|
17015
17002
|
message: 'ERROR.UNAUTHORIZED'
|
|
17016
17003
|
},
|
|
17017
17004
|
fetchPolicy: 'no-cache'
|
|
@@ -17028,7 +17015,7 @@
|
|
|
17028
17015
|
_b.label = 2;
|
|
17029
17016
|
case 2:
|
|
17030
17017
|
challengeError = {
|
|
17031
|
-
code: ErrorCodes
|
|
17018
|
+
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
17032
17019
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
17033
17020
|
};
|
|
17034
17021
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -17115,7 +17102,7 @@
|
|
|
17115
17102
|
query: AccountSubscriptions.listenChanges,
|
|
17116
17103
|
variables: variables,
|
|
17117
17104
|
error: {
|
|
17118
|
-
code: ErrorCodes
|
|
17105
|
+
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
17119
17106
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ERROR'
|
|
17120
17107
|
}
|
|
17121
17108
|
}).pipe(operators.map(function (_b) {
|
|
@@ -17148,7 +17135,7 @@
|
|
|
17148
17135
|
};
|
|
17149
17136
|
return AccountService;
|
|
17150
17137
|
}(BaseGraphqlService));
|
|
17151
|
-
AccountService.ɵprov =
|
|
17138
|
+
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" });
|
|
17152
17139
|
AccountService.decorators = [
|
|
17153
17140
|
{ type: i0.Injectable, args: [{ providedIn: 'root', deps: [ENVIRONMENT] },] }
|
|
17154
17141
|
];
|
|
@@ -17163,7 +17150,7 @@
|
|
|
17163
17150
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] },
|
|
17164
17151
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
17165
17152
|
]; };
|
|
17166
|
-
var templateObject_1
|
|
17153
|
+
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;
|
|
17167
17154
|
|
|
17168
17155
|
var Software_1, Configuration_1;
|
|
17169
17156
|
// @dynamic
|
|
@@ -17421,13 +17408,13 @@
|
|
|
17421
17408
|
/* ------------------------------------
|
|
17422
17409
|
* GraphQL queries
|
|
17423
17410
|
* ------------------------------------*/
|
|
17424
|
-
var Fragments = {
|
|
17425
|
-
config: core.gql(templateObject_1$
|
|
17411
|
+
var Fragments$1 = {
|
|
17412
|
+
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 "])))
|
|
17426
17413
|
};
|
|
17427
|
-
var LoadQuery = core.gql(templateObject_2$
|
|
17414
|
+
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);
|
|
17428
17415
|
// Save (create or update) account mutation
|
|
17429
|
-
var SaveMutation = core.gql(templateObject_3$
|
|
17430
|
-
var ClearCache = core.gql(templateObject_4$
|
|
17416
|
+
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);
|
|
17417
|
+
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"])));
|
|
17431
17418
|
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"])));
|
|
17432
17419
|
var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
|
|
17433
17420
|
var ConfigService = /** @class */ (function (_super) {
|
|
@@ -17487,12 +17474,12 @@
|
|
|
17487
17474
|
case 0:
|
|
17488
17475
|
now = Date.now();
|
|
17489
17476
|
console.debug('[config] Loading Pod configuration...');
|
|
17490
|
-
query = opts && opts.query || LoadQuery;
|
|
17477
|
+
query = opts && opts.query || LoadQuery$1;
|
|
17491
17478
|
variables = opts && opts.variables || undefined;
|
|
17492
17479
|
return [4 /*yield*/, this.graphql.query({
|
|
17493
17480
|
query: query,
|
|
17494
17481
|
variables: variables,
|
|
17495
|
-
error: { code: ErrorCodes
|
|
17482
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17496
17483
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
17497
17484
|
})];
|
|
17498
17485
|
case 1:
|
|
@@ -17534,7 +17521,7 @@
|
|
|
17534
17521
|
data: json
|
|
17535
17522
|
},
|
|
17536
17523
|
error: {
|
|
17537
|
-
code: ErrorCodes
|
|
17524
|
+
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
17538
17525
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
17539
17526
|
}
|
|
17540
17527
|
})];
|
|
@@ -17569,7 +17556,7 @@
|
|
|
17569
17556
|
return [4 /*yield*/, this.graphql.query({
|
|
17570
17557
|
query: CacheStatistics,
|
|
17571
17558
|
variables: null,
|
|
17572
|
-
error: { code: ErrorCodes
|
|
17559
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17573
17560
|
fetchPolicy: 'network-only'
|
|
17574
17561
|
})];
|
|
17575
17562
|
case 1:
|
|
@@ -17593,7 +17580,7 @@
|
|
|
17593
17580
|
return [4 /*yield*/, this.graphql.query({
|
|
17594
17581
|
query: ClearCache,
|
|
17595
17582
|
variables: variables,
|
|
17596
|
-
error: { code: ErrorCodes
|
|
17583
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17597
17584
|
fetchPolicy: 'no-cache'
|
|
17598
17585
|
})];
|
|
17599
17586
|
case 1:
|
|
@@ -17793,7 +17780,7 @@
|
|
|
17793
17780
|
};
|
|
17794
17781
|
return ConfigService;
|
|
17795
17782
|
}(BaseGraphqlService));
|
|
17796
|
-
ConfigService.ɵprov =
|
|
17783
|
+
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" });
|
|
17797
17784
|
ConfigService.decorators = [
|
|
17798
17785
|
{ type: i0.Injectable, args: [{
|
|
17799
17786
|
providedIn: 'root',
|
|
@@ -17812,9 +17799,9 @@
|
|
|
17812
17799
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
17813
17800
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
17814
17801
|
]; };
|
|
17815
|
-
var templateObject_1$
|
|
17802
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
|
|
17816
17803
|
|
|
17817
|
-
var moment$
|
|
17804
|
+
var moment$4 = momentImported__namespace;
|
|
17818
17805
|
var AndroidOsEnvironment = Object.freeze({
|
|
17819
17806
|
DIRECTORY_DOWNLOADS: 'Download',
|
|
17820
17807
|
DIRECTORY_DOWNLOADS_OLD: 'Downloads',
|
|
@@ -18084,16 +18071,16 @@
|
|
|
18084
18071
|
}
|
|
18085
18072
|
// config moment lib
|
|
18086
18073
|
try {
|
|
18087
|
-
moment$
|
|
18074
|
+
moment$4.locale(event.lang);
|
|
18088
18075
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
18089
18076
|
}
|
|
18090
18077
|
// If error, fallback to en
|
|
18091
18078
|
catch (err) {
|
|
18092
|
-
moment$
|
|
18079
|
+
moment$4.locale('en');
|
|
18093
18080
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
18094
18081
|
}
|
|
18095
18082
|
// Config date adapter
|
|
18096
|
-
_this.dateAdapter.setLocale(moment$
|
|
18083
|
+
_this.dateAdapter.setLocale(moment$4.locale());
|
|
18097
18084
|
}
|
|
18098
18085
|
});
|
|
18099
18086
|
this.settings.onChange.subscribe(function (data) {
|
|
@@ -18346,7 +18333,7 @@
|
|
|
18346
18333
|
};
|
|
18347
18334
|
return PlatformService;
|
|
18348
18335
|
}(StartableService));
|
|
18349
|
-
PlatformService.ɵprov =
|
|
18336
|
+
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" });
|
|
18350
18337
|
PlatformService.decorators = [
|
|
18351
18338
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
18352
18339
|
];
|
|
@@ -18444,7 +18431,7 @@
|
|
|
18444
18431
|
};
|
|
18445
18432
|
return MatStepperI18n;
|
|
18446
18433
|
}(stepper.MatStepperIntl));
|
|
18447
|
-
MatStepperI18n.ɵprov =
|
|
18434
|
+
MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
18448
18435
|
MatStepperI18n.decorators = [
|
|
18449
18436
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
18450
18437
|
];
|
|
@@ -19800,7 +19787,7 @@
|
|
|
19800
19787
|
TextForm.decorators = [
|
|
19801
19788
|
{ type: i0.Component, args: [{
|
|
19802
19789
|
selector: 'app-text-form',
|
|
19803
|
-
template: "<form class=\"form-container\" [formGroup]=\"form\" (ngSubmit)=\"doSubmit($event)\">\n <mat-form-field *ngIf=\"multiline; else monoline\">\n <textarea\n #textArea\n matInput\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n [readonly]=\"control.disabled\"\n [class.fixed-height]=\"!autoHeight\"\n [cdkTextareaAutosize]=\"autoHeight\"\n (keyup)=\"textAreaChanged($event)\"\n (keydown.control.enter)=\"onSubmit.emit($event)\"\n [autofocus]=\"autofocus\"\n ></textarea>\n <mat-error *ngIf=\"control.hasError('maxlength')\">\n {{ 'ERROR.FIELD_MAX_LENGTH' | translate: control.errors['maxlength'] }}\n </mat-error>\n <mat-hint *ngIf=\"maxLength\" align=\"end\">\n {{ 'INFO.TEXT_PROGRESS' | translate: { current: textArea.value?.length || 0, max: maxLength } }}\n </mat-hint>\n </mat-form-field>\n <ng-template #monoline>\n <mat-form-field>\n <input\n #textInput\n matInput\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n [readonly]=\"disabled\"\n [appAutofocus]=\"autofocus\"\n />\n <mat-error *ngIf=\"control.hasError('maxlength')\">\n {{ 'ERROR.FIELD_MAX_LENGTH' | translate: control.errors['maxlength'] }}\n </mat-error>\n <mat-hint *ngIf=\"maxLength\" align=\"end\">\n {{ 'INFO.TEXT_PROGRESS' | translate: { current: textInput.value?.length || 0, max: maxLength } }}\n </mat-hint>\n </mat-form-field>\n </ng-template>\n</form>\n",
|
|
19790
|
+
template: "<form class=\"form-container\" [formGroup]=\"form\" (ngSubmit)=\"doSubmit($event)\">\n <mat-form-field *ngIf=\"multiline; else monoline\">\n <textarea\n #textArea\n matInput\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n [readonly]=\"control.disabled\"\n [class.fixed-height]=\"!autoHeight\"\n [cdkTextareaAutosize]=\"autoHeight\"\n (keyup)=\"textAreaChanged($event)\"\n (keydown.control.enter)=\"onSubmit.emit($event)\"\n [autofocus]=\"autofocus\"\n ></textarea>\n <mat-error *ngIf=\"control.hasError('maxlength')\">\n {{ 'ERROR.FIELD_MAX_LENGTH' | translate: control.errors['maxlength'] }}\n </mat-error>\n <mat-hint *ngIf=\"maxLength\" align=\"end\">\n {{ 'INFO.TEXT_PROGRESS' | translate: { current: textArea.value?.length || 0, max: maxLength } }}\n </mat-hint>\n </mat-form-field>\n <ng-template #monoline>\n <mat-form-field>\n <input\n #textInput\n matInput\n [formControl]=\"control\"\n [placeholder]=\"placeholder\"\n [readonly]=\"disabled\"\n [appAutofocus]=\"autofocus\"\n (keydown.control.enter)=\"onSubmit.emit($event)\"\n />\n <mat-error *ngIf=\"control.hasError('maxlength')\">\n {{ 'ERROR.FIELD_MAX_LENGTH' | translate: control.errors['maxlength'] }}\n </mat-error>\n <mat-hint *ngIf=\"maxLength\" align=\"end\">\n {{ 'INFO.TEXT_PROGRESS' | translate: { current: textInput.value?.length || 0, max: maxLength } }}\n </mat-hint>\n </mat-form-field>\n </ng-template>\n</form>\n",
|
|
19804
19791
|
styles: ["textarea.fixed-height{height:11.5em}"]
|
|
19805
19792
|
},] }
|
|
19806
19793
|
];
|
|
@@ -19920,7 +19907,7 @@
|
|
|
19920
19907
|
TextPopover.decorators = [
|
|
19921
19908
|
{ type: i0.Component, args: [{
|
|
19922
19909
|
selector: 'app-text-popover',
|
|
19923
|
-
template: "\n<ion-content class=\"ion-padding\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\">\n <ion-item *ngIf=\"form.error\" visible-xs visible-sm visible-mobile lines=\"none\">\n <ion-icon color=\"danger\" slot=\"start\" name=\"alert-circle\"></ion-icon>\n <ion-label color=\"danger\" class=\"error\" [innerHTML]=\"form.error|translate\"></ion-label>\n </ion-item>\n\n <app-text-form #form [placeholder]=\"placeholder\"\n [multiline]=\"multiline\"\n [maxLength]=\"maxLength\"\n [autofocus]=\"editing && autofocus\"\n (onSubmit)=\"onValidate($event)\"\n ></app-text-form>\n</ion-content>\n\n<ion-footer>\n <ion-toolbar>\n <ion-row class=\"ion-no-padding\" nowrap>\n <ion-col>\n\n </ion-col>\n\n <ion-col size=\"auto\">\n <ion-button fill=\"clear\" color=\"dark\" (click)=\"cancel()\">\n <ion-label translate>COMMON.BTN_CANCEL</ion-label>\n </ion-button>\n <ion-button\n [fill]=\"disabled ? 'clear' : 'solid'\"\n (click)=\"onValidate($event)\"\n (keyup.enter)=\"onValidate($event)\"\n color=\"tertiary\"\n [disabled]=\"disabled\"\n
|
|
19910
|
+
template: "\n<ion-content class=\"ion-padding\" cdkTrapFocus [cdkTrapFocusAutoCapture]=\"true\">\n <ion-item *ngIf=\"form.error\" visible-xs visible-sm visible-mobile lines=\"none\">\n <ion-icon color=\"danger\" slot=\"start\" name=\"alert-circle\"></ion-icon>\n <ion-label color=\"danger\" class=\"error\" [innerHTML]=\"form.error|translate\"></ion-label>\n </ion-item>\n\n <app-text-form #form [placeholder]=\"placeholder\"\n [multiline]=\"multiline\"\n [maxLength]=\"maxLength\"\n [autofocus]=\"editing && autofocus\"\n (onSubmit)=\"onValidate($event)\"\n ></app-text-form>\n</ion-content>\n\n<ion-footer>\n <ion-toolbar>\n <ion-row class=\"ion-no-padding\" nowrap>\n <ion-col>\n\n </ion-col>\n\n <ion-col size=\"auto\">\n <ion-button fill=\"clear\" color=\"dark\" (click)=\"cancel()\">\n <ion-label translate>COMMON.BTN_CANCEL</ion-label>\n </ion-button>\n <ion-button\n [fill]=\"disabled ? 'clear' : 'solid'\"\n (click)=\"onValidate($event)\"\n (keyup.enter)=\"onValidate($event)\"\n color=\"tertiary\"\n [disabled]=\"disabled\"\n [title]=\"'COMMON.BTN_VALIDATE_WITH_SHORTCUT_HELP'|translate\">\n <ion-label translate>COMMON.BTN_VALIDATE</ion-label>\n </ion-button>\n </ion-col>\n </ion-row>\n </ion-toolbar>\n</ion-footer>\n"
|
|
19924
19911
|
},] }
|
|
19925
19912
|
];
|
|
19926
19913
|
TextPopover.ctorParameters = function () { return [
|
|
@@ -20657,7 +20644,7 @@
|
|
|
20657
20644
|
return 1;
|
|
20658
20645
|
}
|
|
20659
20646
|
}
|
|
20660
|
-
var ɵ0$
|
|
20647
|
+
var ɵ0$b = function (defaultStateSize) { return [
|
|
20661
20648
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
20662
20649
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
20663
20650
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -20665,7 +20652,7 @@
|
|
|
20665
20652
|
var SCALE_OPTIONS_DEFAULT = {
|
|
20666
20653
|
startColor: rgbArrayMap.red,
|
|
20667
20654
|
startStates: [0, 2, 3],
|
|
20668
|
-
startStepsFn: ɵ0$
|
|
20655
|
+
startStepsFn: ɵ0$b
|
|
20669
20656
|
};
|
|
20670
20657
|
/**
|
|
20671
20658
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -21596,7 +21583,7 @@
|
|
|
21596
21583
|
};
|
|
21597
21584
|
return UserSettingsValidatorService;
|
|
21598
21585
|
}(AppValidatorService));
|
|
21599
|
-
UserSettingsValidatorService.ɵprov =
|
|
21586
|
+
UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
21600
21587
|
UserSettingsValidatorService.decorators = [
|
|
21601
21588
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21602
21589
|
];
|
|
@@ -21644,7 +21631,7 @@
|
|
|
21644
21631
|
};
|
|
21645
21632
|
return AccountValidatorService;
|
|
21646
21633
|
}(AppValidatorService));
|
|
21647
|
-
AccountValidatorService.ɵprov =
|
|
21634
|
+
AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
|
|
21648
21635
|
AccountValidatorService.decorators = [
|
|
21649
21636
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21650
21637
|
];
|
|
@@ -22275,7 +22262,7 @@
|
|
|
22275
22262
|
};
|
|
22276
22263
|
return LocalSettingsValidatorService;
|
|
22277
22264
|
}(AppValidatorService));
|
|
22278
|
-
LocalSettingsValidatorService.ɵprov =
|
|
22265
|
+
LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
|
|
22279
22266
|
LocalSettingsValidatorService.decorators = [
|
|
22280
22267
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
22281
22268
|
];
|
|
@@ -23055,7 +23042,7 @@
|
|
|
23055
23042
|
};
|
|
23056
23043
|
return IsOnFieldModePipe;
|
|
23057
23044
|
}());
|
|
23058
|
-
IsOnFieldModePipe.ɵprov =
|
|
23045
|
+
IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
23059
23046
|
IsOnFieldModePipe.decorators = [
|
|
23060
23047
|
{ type: i0.Pipe, args: [{
|
|
23061
23048
|
name: 'isOnField'
|
|
@@ -23070,7 +23057,7 @@
|
|
|
23070
23057
|
};
|
|
23071
23058
|
return IsNotOnFieldModePipe;
|
|
23072
23059
|
}());
|
|
23073
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
23060
|
+
IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
23074
23061
|
IsNotOnFieldModePipe.decorators = [
|
|
23075
23062
|
{ type: i0.Pipe, args: [{
|
|
23076
23063
|
name: 'isNotOnField'
|
|
@@ -23088,7 +23075,7 @@
|
|
|
23088
23075
|
};
|
|
23089
23076
|
return PersonToStringPipe;
|
|
23090
23077
|
}());
|
|
23091
|
-
PersonToStringPipe.ɵprov =
|
|
23078
|
+
PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
23092
23079
|
PersonToStringPipe.decorators = [
|
|
23093
23080
|
{ type: i0.Pipe, args: [{
|
|
23094
23081
|
name: 'personToString'
|
|
@@ -23552,7 +23539,7 @@
|
|
|
23552
23539
|
};
|
|
23553
23540
|
return IsLoginAccountPipe;
|
|
23554
23541
|
}());
|
|
23555
|
-
IsLoginAccountPipe.ɵprov =
|
|
23542
|
+
IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
23556
23543
|
IsLoginAccountPipe.decorators = [
|
|
23557
23544
|
{ type: i0.Pipe, args: [{
|
|
23558
23545
|
name: 'isLogin'
|
|
@@ -23567,7 +23554,7 @@
|
|
|
23567
23554
|
};
|
|
23568
23555
|
return AccountToStringPipe;
|
|
23569
23556
|
}());
|
|
23570
|
-
AccountToStringPipe.ɵprov =
|
|
23557
|
+
AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
23571
23558
|
AccountToStringPipe.decorators = [
|
|
23572
23559
|
{ type: i0.Pipe, args: [{
|
|
23573
23560
|
name: 'accountToString'
|
|
@@ -23585,7 +23572,7 @@
|
|
|
23585
23572
|
};
|
|
23586
23573
|
return DepartmentToStringPipe;
|
|
23587
23574
|
}());
|
|
23588
|
-
DepartmentToStringPipe.ɵprov =
|
|
23575
|
+
DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
23589
23576
|
DepartmentToStringPipe.decorators = [
|
|
23590
23577
|
{ type: i0.Pipe, args: [{
|
|
23591
23578
|
name: 'departmentToString'
|
|
@@ -23691,7 +23678,7 @@
|
|
|
23691
23678
|
};
|
|
23692
23679
|
return MenuService;
|
|
23693
23680
|
}());
|
|
23694
|
-
MenuService.ɵprov =
|
|
23681
|
+
MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
23695
23682
|
MenuService.decorators = [
|
|
23696
23683
|
{ type: i0.Injectable, args: [{
|
|
23697
23684
|
providedIn: 'root'
|
|
@@ -23721,12 +23708,7 @@
|
|
|
23721
23708
|
this.appVersion = this.environment.version;
|
|
23722
23709
|
this.side = 'left';
|
|
23723
23710
|
this._debug = !environment.production;
|
|
23724
|
-
this.onResize();
|
|
23725
23711
|
}
|
|
23726
|
-
MenuComponent.prototype.onResize = function (event) {
|
|
23727
|
-
this._screenWidth = window.innerWidth;
|
|
23728
|
-
console.debug('[menu] Screen size (px): ' + this._screenWidth);
|
|
23729
|
-
};
|
|
23730
23712
|
MenuComponent.prototype.ngOnInit = function () {
|
|
23731
23713
|
return __awaiter(this, void 0, void 0, function () {
|
|
23732
23714
|
var _this = this;
|
|
@@ -24023,8 +24005,7 @@
|
|
|
24023
24005
|
appName: [{ type: i0.Input }],
|
|
24024
24006
|
appVersion: [{ type: i0.Input }],
|
|
24025
24007
|
side: [{ type: i0.Input }],
|
|
24026
|
-
splitPane: [{ type: i0.ViewChild, args: ['splitPane', { static: true },] }]
|
|
24027
|
-
onResize: [{ type: i0.HostListener, args: ['window:resize', ['$event'],] }]
|
|
24008
|
+
splitPane: [{ type: i0.ViewChild, args: ['splitPane', { static: true },] }]
|
|
24028
24009
|
};
|
|
24029
24010
|
|
|
24030
24011
|
var AppMenuModule = /** @class */ (function () {
|
|
@@ -24242,7 +24223,7 @@
|
|
|
24242
24223
|
};
|
|
24243
24224
|
return AuthGuardService;
|
|
24244
24225
|
}());
|
|
24245
|
-
AuthGuardService.ɵprov =
|
|
24226
|
+
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" });
|
|
24246
24227
|
AuthGuardService.decorators = [
|
|
24247
24228
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
24248
24229
|
];
|
|
@@ -24287,7 +24268,7 @@
|
|
|
24287
24268
|
query: query,
|
|
24288
24269
|
variables: { id: id },
|
|
24289
24270
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
24290
|
-
error: { code: ErrorCodes
|
|
24271
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
24291
24272
|
})
|
|
24292
24273
|
.pipe(operators.map(function (_b) {
|
|
24293
24274
|
var data = _b.data;
|
|
@@ -24309,7 +24290,7 @@
|
|
|
24309
24290
|
query: query,
|
|
24310
24291
|
variables: { id: id },
|
|
24311
24292
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
24312
|
-
error: { code: ErrorCodes
|
|
24293
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
24313
24294
|
})];
|
|
24314
24295
|
case 1:
|
|
24315
24296
|
data = (_b.sent()).data;
|
|
@@ -24345,7 +24326,7 @@
|
|
|
24345
24326
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
24346
24327
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
24347
24328
|
variables: variables,
|
|
24348
|
-
error: { code: ErrorCodes
|
|
24329
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
24349
24330
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
24350
24331
|
})
|
|
24351
24332
|
.pipe(operators.map(function (_b) {
|
|
@@ -24387,7 +24368,7 @@
|
|
|
24387
24368
|
return [4 /*yield*/, this.graphql.query({
|
|
24388
24369
|
query: query,
|
|
24389
24370
|
variables: variables,
|
|
24390
|
-
error: { code: ErrorCodes
|
|
24371
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
24391
24372
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
24392
24373
|
})];
|
|
24393
24374
|
case 1:
|
|
@@ -24435,7 +24416,7 @@
|
|
|
24435
24416
|
variables: {
|
|
24436
24417
|
filter: filter && filter.asPodObject()
|
|
24437
24418
|
},
|
|
24438
|
-
error: { code: ErrorCodes
|
|
24419
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
24439
24420
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
24440
24421
|
})];
|
|
24441
24422
|
case 3:
|
|
@@ -24480,7 +24461,7 @@
|
|
|
24480
24461
|
variables: {
|
|
24481
24462
|
data: json
|
|
24482
24463
|
},
|
|
24483
|
-
error: { code: ErrorCodes
|
|
24464
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
24484
24465
|
update: function (proxy, _b) {
|
|
24485
24466
|
var data = _b.data;
|
|
24486
24467
|
var savedEntities = data && data.data;
|
|
@@ -24547,7 +24528,7 @@
|
|
|
24547
24528
|
variables: {
|
|
24548
24529
|
data: json
|
|
24549
24530
|
},
|
|
24550
|
-
error: { code: ErrorCodes
|
|
24531
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
24551
24532
|
update: function (cache, _b) {
|
|
24552
24533
|
var data = _b.data;
|
|
24553
24534
|
// Update entity
|
|
@@ -24605,7 +24586,7 @@
|
|
|
24605
24586
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
24606
24587
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
24607
24588
|
variables: { ids: ids },
|
|
24608
|
-
error: { code: ErrorCodes
|
|
24589
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
24609
24590
|
update: function (cache, res) {
|
|
24610
24591
|
// Remove from cache
|
|
24611
24592
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -24658,7 +24639,7 @@
|
|
|
24658
24639
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
24659
24640
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
24660
24641
|
variables: { id: id },
|
|
24661
|
-
error: { code: ErrorCodes
|
|
24642
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
24662
24643
|
update: function (proxy, res) {
|
|
24663
24644
|
// Remove from cache
|
|
24664
24645
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -24700,7 +24681,7 @@
|
|
|
24700
24681
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache',
|
|
24701
24682
|
variables: variables,
|
|
24702
24683
|
error: {
|
|
24703
|
-
code: ErrorCodes
|
|
24684
|
+
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
24704
24685
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
24705
24686
|
}
|
|
24706
24687
|
})
|
|
@@ -24923,7 +24904,7 @@
|
|
|
24923
24904
|
if (this._debug)
|
|
24924
24905
|
invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
|
|
24925
24906
|
// Stop with an error
|
|
24926
|
-
throw { code: ErrorCodes
|
|
24907
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
24927
24908
|
}
|
|
24928
24909
|
this._editingRowCount = 0;
|
|
24929
24910
|
data = void 0;
|
|
@@ -25943,14 +25924,14 @@
|
|
|
25943
25924
|
case 0:
|
|
25944
25925
|
opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
|
|
25945
25926
|
if (this.readOnly) {
|
|
25946
|
-
throw { code: ErrorCodes
|
|
25927
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25947
25928
|
}
|
|
25948
25929
|
this.resetError();
|
|
25949
25930
|
// Keep edited row id (should be done BEFORE confirmEditCreate() )
|
|
25950
25931
|
this.previouslyEditedRowId = opts.keepEditing ? ((((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined) || ((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.id)) : undefined;
|
|
25951
25932
|
previouslyEditedData = opts.keepEditing ? (isNotNil(this.previouslyEditedRowId) && ((_c = this.editedRow) === null || _c === void 0 ? void 0 : _c.currentData) || ((_d = this.singleSelectedRow) === null || _d === void 0 ? void 0 : _d.currentData)) : undefined;
|
|
25952
25933
|
if (!this.confirmEditCreate()) {
|
|
25953
|
-
throw { code: ErrorCodes
|
|
25934
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
25954
25935
|
}
|
|
25955
25936
|
// Mark as saving
|
|
25956
25937
|
this.markAsSaving();
|
|
@@ -26107,7 +26088,7 @@
|
|
|
26107
26088
|
switch (_e.label) {
|
|
26108
26089
|
case 0:
|
|
26109
26090
|
if (this.readOnly) {
|
|
26110
|
-
throw { code: ErrorCodes
|
|
26091
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
26111
26092
|
}
|
|
26112
26093
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
26113
26094
|
return [2 /*return*/, 0]; // SKip
|
|
@@ -28007,7 +27988,7 @@
|
|
|
28007
27988
|
case 8:
|
|
28008
27989
|
data = _c.sent();
|
|
28009
27990
|
if (!data)
|
|
28010
|
-
throw { code: ErrorCodes
|
|
27991
|
+
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
28011
27992
|
this._usageMode = this.computeUsageMode(data);
|
|
28012
27993
|
return [4 /*yield*/, this.onEntityLoaded(data, opts)];
|
|
28013
27994
|
case 9:
|
|
@@ -28799,10 +28780,10 @@
|
|
|
28799
28780
|
exports.UserEventFilter = __decorate([
|
|
28800
28781
|
EntityClass({ typename: 'UserEventVO' })
|
|
28801
28782
|
], exports.UserEventFilter);
|
|
28802
|
-
var SaveQuery = core.gql(templateObject_1$
|
|
28803
|
-
var LoadAllQuery = core.gql(templateObject_2$
|
|
28804
|
-
var DeleteByIdsMutation = core.gql(templateObject_3$
|
|
28805
|
-
var LoadAllWithContentQuery = core.gql(templateObject_4$
|
|
28783
|
+
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);
|
|
28784
|
+
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);
|
|
28785
|
+
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"])));
|
|
28786
|
+
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);
|
|
28806
28787
|
var UserEventService = /** @class */ (function (_super) {
|
|
28807
28788
|
__extends(UserEventService, _super);
|
|
28808
28789
|
function UserEventService(graphql, accountService, network, translate, toastController, environment) {
|
|
@@ -29123,7 +29104,7 @@
|
|
|
29123
29104
|
};
|
|
29124
29105
|
return UserEventService;
|
|
29125
29106
|
}(BaseGraphqlService));
|
|
29126
|
-
UserEventService.ɵprov =
|
|
29107
|
+
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" });
|
|
29127
29108
|
UserEventService.decorators = [
|
|
29128
29109
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
29129
29110
|
];
|
|
@@ -29135,7 +29116,7 @@
|
|
|
29135
29116
|
{ type: i1$5.ToastController },
|
|
29136
29117
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
29137
29118
|
]; };
|
|
29138
|
-
var templateObject_1$
|
|
29119
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
|
|
29139
29120
|
|
|
29140
29121
|
var ICONS_MAP = {
|
|
29141
29122
|
DEBUG_DATA: { matIcon: 'bug_report' },
|
|
@@ -29397,16 +29378,16 @@
|
|
|
29397
29378
|
], exports.PersonFilter);
|
|
29398
29379
|
|
|
29399
29380
|
var PersonFragments = {
|
|
29400
|
-
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 }"])))
|
|
29381
|
+
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 }"])))
|
|
29401
29382
|
};
|
|
29402
29383
|
// Load persons query
|
|
29403
29384
|
var PersonQueries = {
|
|
29404
|
-
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),
|
|
29405
|
-
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)
|
|
29385
|
+
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),
|
|
29386
|
+
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)
|
|
29406
29387
|
};
|
|
29407
29388
|
var PersonMutations = {
|
|
29408
|
-
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),
|
|
29409
|
-
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 }"])))
|
|
29389
|
+
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),
|
|
29390
|
+
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 }"])))
|
|
29410
29391
|
};
|
|
29411
29392
|
var PersonService = /** @class */ (function (_super_1) {
|
|
29412
29393
|
__extends(PersonService, _super_1);
|
|
@@ -29527,7 +29508,7 @@
|
|
|
29527
29508
|
};
|
|
29528
29509
|
return PersonService;
|
|
29529
29510
|
}(BaseEntityService));
|
|
29530
|
-
PersonService.ɵprov =
|
|
29511
|
+
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" });
|
|
29531
29512
|
PersonService.decorators = [
|
|
29532
29513
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
29533
29514
|
];
|
|
@@ -29537,7 +29518,7 @@
|
|
|
29537
29518
|
{ type: NetworkService },
|
|
29538
29519
|
{ type: EntitiesStorage }
|
|
29539
29520
|
]; };
|
|
29540
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
29521
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
|
|
29541
29522
|
|
|
29542
29523
|
var PersonValidatorService = /** @class */ (function () {
|
|
29543
29524
|
function PersonValidatorService(formBuilder, accountValidatorService) {
|
|
@@ -29560,7 +29541,7 @@
|
|
|
29560
29541
|
};
|
|
29561
29542
|
return PersonValidatorService;
|
|
29562
29543
|
}());
|
|
29563
|
-
PersonValidatorService.ɵprov =
|
|
29544
|
+
PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
|
|
29564
29545
|
PersonValidatorService.decorators = [
|
|
29565
29546
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
29566
29547
|
];
|
|
@@ -29771,16 +29752,16 @@
|
|
|
29771
29752
|
];
|
|
29772
29753
|
AdminModule.ctorParameters = function () { return []; };
|
|
29773
29754
|
|
|
29774
|
-
var ɵ0 = {
|
|
29755
|
+
var ɵ0$c = {
|
|
29775
29756
|
profile: 'ADMIN'
|
|
29776
29757
|
};
|
|
29777
|
-
var routes
|
|
29758
|
+
var routes = [
|
|
29778
29759
|
{
|
|
29779
29760
|
path: 'users',
|
|
29780
29761
|
pathMatch: 'full',
|
|
29781
29762
|
component: UsersPage,
|
|
29782
29763
|
canActivate: [AuthGuardService],
|
|
29783
|
-
data: ɵ0
|
|
29764
|
+
data: ɵ0$c
|
|
29784
29765
|
}
|
|
29785
29766
|
];
|
|
29786
29767
|
var AdminRoutingModule = /** @class */ (function () {
|
|
@@ -29793,36 +29774,36 @@
|
|
|
29793
29774
|
imports: [
|
|
29794
29775
|
SharedRoutingModule,
|
|
29795
29776
|
AdminModule,
|
|
29796
|
-
i3.RouterModule.forChild(routes
|
|
29777
|
+
i3.RouterModule.forChild(routes)
|
|
29797
29778
|
],
|
|
29798
29779
|
exports: [i3.RouterModule]
|
|
29799
29780
|
},] }
|
|
29800
29781
|
];
|
|
29801
29782
|
|
|
29802
|
-
var ErrorCodes = {
|
|
29783
|
+
var ErrorCodes$2 = {
|
|
29803
29784
|
LOAD_PERSONS_ERROR: 100,
|
|
29804
29785
|
SAVE_PERSONS_ERROR: 101,
|
|
29805
29786
|
DELETE_PERSONS_ERROR: 102,
|
|
29806
29787
|
};
|
|
29807
29788
|
|
|
29808
|
-
var EntityTestClass
|
|
29789
|
+
var EntityTestClass = /** @class */ (function () {
|
|
29809
29790
|
function EntityTestClass() {
|
|
29810
29791
|
}
|
|
29811
29792
|
return EntityTestClass;
|
|
29812
29793
|
}());
|
|
29813
|
-
var FAKE_ENTITIES
|
|
29794
|
+
var FAKE_ENTITIES = [
|
|
29814
29795
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
29815
29796
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
29816
29797
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
29817
29798
|
];
|
|
29818
|
-
function deepCopy
|
|
29799
|
+
function deepCopy(values, size) {
|
|
29819
29800
|
if (isNil(size)) {
|
|
29820
|
-
return (values || FAKE_ENTITIES
|
|
29801
|
+
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
29821
29802
|
}
|
|
29822
29803
|
var result = [];
|
|
29823
29804
|
var i = 1;
|
|
29824
29805
|
while (result.length < size) {
|
|
29825
|
-
result = result.concat((values || FAKE_ENTITIES
|
|
29806
|
+
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
29826
29807
|
var name = entity.name + ' #' + i;
|
|
29827
29808
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
29828
29809
|
}));
|
|
@@ -29832,7 +29813,7 @@
|
|
|
29832
29813
|
var AutocompleteTestPage = /** @class */ (function () {
|
|
29833
29814
|
function AutocompleteTestPage(formBuilder) {
|
|
29834
29815
|
this.formBuilder = formBuilder;
|
|
29835
|
-
this._items = deepCopy
|
|
29816
|
+
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
29836
29817
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
29837
29818
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
29838
29819
|
this.memoryHide = false;
|
|
@@ -29877,7 +29858,7 @@
|
|
|
29877
29858
|
});
|
|
29878
29859
|
// From items
|
|
29879
29860
|
this.autocompleteFields.add('entity-items-large', {
|
|
29880
|
-
items: FAKE_ENTITIES
|
|
29861
|
+
items: FAKE_ENTITIES.slice(),
|
|
29881
29862
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
29882
29863
|
displayWith: this.entityToString
|
|
29883
29864
|
});
|
|
@@ -29890,12 +29871,12 @@
|
|
|
29890
29871
|
var _this = this;
|
|
29891
29872
|
return __generator(this, function (_a) {
|
|
29892
29873
|
data = {
|
|
29893
|
-
entity: deepCopy
|
|
29874
|
+
entity: deepCopy(FAKE_ENTITIES)[0],
|
|
29894
29875
|
// This item is NOT in the items list => i should be displayed anyway
|
|
29895
29876
|
missingEntity: {
|
|
29896
29877
|
id: -1, label: '??', name: 'Missing item'
|
|
29897
29878
|
},
|
|
29898
|
-
disableEntity: deepCopy
|
|
29879
|
+
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
29899
29880
|
};
|
|
29900
29881
|
this.form.setValue(data);
|
|
29901
29882
|
// Load observables
|
|
@@ -30060,13 +30041,13 @@
|
|
|
30060
30041
|
{ type: i1.FormBuilder }
|
|
30061
30042
|
]; };
|
|
30062
30043
|
|
|
30063
|
-
var moment$
|
|
30044
|
+
var moment$5 = momentImported__namespace;
|
|
30064
30045
|
var SwipeTestPage = /** @class */ (function () {
|
|
30065
30046
|
function SwipeTestPage(formBuilder, dateFormatPipe) {
|
|
30066
30047
|
this.formBuilder = formBuilder;
|
|
30067
30048
|
this.dateFormatPipe = dateFormatPipe;
|
|
30068
30049
|
this.$dates = new rxjs.BehaviorSubject(undefined);
|
|
30069
|
-
this._today = moment$
|
|
30050
|
+
this._today = moment$5().startOf('day');
|
|
30070
30051
|
this.form = formBuilder.group({
|
|
30071
30052
|
empty: [null, i1.Validators.required],
|
|
30072
30053
|
date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
|
|
@@ -30080,7 +30061,7 @@
|
|
|
30080
30061
|
var _this = this;
|
|
30081
30062
|
var dates = [];
|
|
30082
30063
|
for (var d = 0; d < 7; d++) {
|
|
30083
|
-
dates[d] = moment$
|
|
30064
|
+
dates[d] = moment$5(this._today).add(d - 3, 'day');
|
|
30084
30065
|
}
|
|
30085
30066
|
this.$dates.next(dates);
|
|
30086
30067
|
this.loadData();
|
|
@@ -30127,7 +30108,7 @@
|
|
|
30127
30108
|
{ type: DateFormatPipe }
|
|
30128
30109
|
]; };
|
|
30129
30110
|
|
|
30130
|
-
var moment$
|
|
30111
|
+
var moment$6 = momentImported__namespace;
|
|
30131
30112
|
var DateTimeTestPage = /** @class */ (function () {
|
|
30132
30113
|
function DateTimeTestPage(platform, formBuilder, cd) {
|
|
30133
30114
|
this.platform = platform;
|
|
@@ -30163,7 +30144,7 @@
|
|
|
30163
30144
|
var now, data;
|
|
30164
30145
|
var _this = this;
|
|
30165
30146
|
return __generator(this, function (_a) {
|
|
30166
|
-
now = moment$
|
|
30147
|
+
now = moment$6();
|
|
30167
30148
|
data = {
|
|
30168
30149
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
30169
30150
|
enable: toDateISOString(now),
|
|
@@ -30228,12 +30209,12 @@
|
|
|
30228
30209
|
{ type: i0.ChangeDetectorRef }
|
|
30229
30210
|
]; };
|
|
30230
30211
|
|
|
30231
|
-
var EntityTestClass = /** @class */ (function () {
|
|
30212
|
+
var EntityTestClass$1 = /** @class */ (function () {
|
|
30232
30213
|
function EntityTestClass() {
|
|
30233
30214
|
}
|
|
30234
30215
|
return EntityTestClass;
|
|
30235
30216
|
}());
|
|
30236
|
-
var FAKE_ENTITIES = [
|
|
30217
|
+
var FAKE_ENTITIES$1 = [
|
|
30237
30218
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
30238
30219
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
30239
30220
|
{ id: 3, label: 'CCC', name: 'Item C' },
|
|
@@ -30242,14 +30223,14 @@
|
|
|
30242
30223
|
{ id: 6, label: 'FFF', name: 'Item F' },
|
|
30243
30224
|
{ id: 7, label: 'GGG', name: 'Item G' }
|
|
30244
30225
|
];
|
|
30245
|
-
function deepCopy(values, size) {
|
|
30226
|
+
function deepCopy$1(values, size) {
|
|
30246
30227
|
if (isNil(size)) {
|
|
30247
|
-
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
30228
|
+
return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
|
|
30248
30229
|
}
|
|
30249
30230
|
var result = [];
|
|
30250
30231
|
var i = 1;
|
|
30251
30232
|
while (result.length < size) {
|
|
30252
|
-
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
30233
|
+
result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
|
|
30253
30234
|
var name = entity.name + ' #' + i;
|
|
30254
30235
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
30255
30236
|
}));
|
|
@@ -30259,7 +30240,7 @@
|
|
|
30259
30240
|
var ChipsTestPage = /** @class */ (function () {
|
|
30260
30241
|
function ChipsTestPage(formBuilder) {
|
|
30261
30242
|
this.formBuilder = formBuilder;
|
|
30262
|
-
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
30243
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
|
|
30263
30244
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
30264
30245
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
30265
30246
|
this.form = formBuilder.group({
|
|
@@ -30302,7 +30283,7 @@
|
|
|
30302
30283
|
var items, data;
|
|
30303
30284
|
var _this = this;
|
|
30304
30285
|
return __generator(this, function (_a) {
|
|
30305
|
-
items = deepCopy(FAKE_ENTITIES);
|
|
30286
|
+
items = deepCopy$1(FAKE_ENTITIES$1);
|
|
30306
30287
|
data = {
|
|
30307
30288
|
entity: items.slice(0, 1),
|
|
30308
30289
|
entityInitial: items.slice(1, 2),
|
|
@@ -30439,7 +30420,7 @@
|
|
|
30439
30420
|
{ type: i1.FormBuilder }
|
|
30440
30421
|
]; };
|
|
30441
30422
|
|
|
30442
|
-
var moment = momentImported__namespace;
|
|
30423
|
+
var moment$7 = momentImported__namespace;
|
|
30443
30424
|
var DateTestPage = /** @class */ (function () {
|
|
30444
30425
|
function DateTestPage(platform, formBuilder, cd) {
|
|
30445
30426
|
this.platform = platform;
|
|
@@ -30477,7 +30458,7 @@
|
|
|
30477
30458
|
var now, nowAtMahe, data;
|
|
30478
30459
|
var _this = this;
|
|
30479
30460
|
return __generator(this, function (_a) {
|
|
30480
|
-
now = moment();
|
|
30461
|
+
now = moment$7();
|
|
30481
30462
|
nowAtMahe = now.clone().tz(this.timezone).startOf('day');
|
|
30482
30463
|
data = {
|
|
30483
30464
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
@@ -30559,7 +30540,7 @@
|
|
|
30559
30540
|
{ label: 'Shared directives', divider: true },
|
|
30560
30541
|
{ label: 'Badge icon directive', page: '/testing/shared/badge-icon' }
|
|
30561
30542
|
];
|
|
30562
|
-
var routes$
|
|
30543
|
+
var routes$1 = [
|
|
30563
30544
|
{
|
|
30564
30545
|
path: '',
|
|
30565
30546
|
pathMatch: 'full',
|
|
@@ -30619,7 +30600,7 @@
|
|
|
30619
30600
|
i1.ReactiveFormsModule,
|
|
30620
30601
|
SharedMaterialModule,
|
|
30621
30602
|
i1$2.TranslateModule.forChild(),
|
|
30622
|
-
i3.RouterModule.forChild(routes$
|
|
30603
|
+
i3.RouterModule.forChild(routes$1)
|
|
30623
30604
|
],
|
|
30624
30605
|
declarations: [
|
|
30625
30606
|
DateTimeTestPage,
|
|
@@ -30681,7 +30662,7 @@
|
|
|
30681
30662
|
{ type: i1$2.TranslateService }
|
|
30682
30663
|
]; };
|
|
30683
30664
|
|
|
30684
|
-
var routes$
|
|
30665
|
+
var routes$2 = [
|
|
30685
30666
|
{
|
|
30686
30667
|
path: 'toast',
|
|
30687
30668
|
pathMatch: 'full',
|
|
@@ -30699,7 +30680,7 @@
|
|
|
30699
30680
|
i1$4.CommonModule,
|
|
30700
30681
|
i1$5.IonicModule,
|
|
30701
30682
|
i1$2.TranslateModule.forChild(),
|
|
30702
|
-
i3.RouterModule.forChild(routes$
|
|
30683
|
+
i3.RouterModule.forChild(routes$2)
|
|
30703
30684
|
],
|
|
30704
30685
|
declarations: [
|
|
30705
30686
|
ToastTestingPage
|
|
@@ -30779,7 +30760,7 @@
|
|
|
30779
30760
|
{ type: i1$5.PopoverController }
|
|
30780
30761
|
]; };
|
|
30781
30762
|
|
|
30782
|
-
var routes$
|
|
30763
|
+
var routes$3 = [
|
|
30783
30764
|
{
|
|
30784
30765
|
path: 'upload-file',
|
|
30785
30766
|
pathMatch: 'full',
|
|
@@ -30797,7 +30778,7 @@
|
|
|
30797
30778
|
i1$4.CommonModule,
|
|
30798
30779
|
i1$5.IonicModule,
|
|
30799
30780
|
i1$2.TranslateModule.forChild(),
|
|
30800
|
-
i3.RouterModule.forChild(routes$
|
|
30781
|
+
i3.RouterModule.forChild(routes$3)
|
|
30801
30782
|
],
|
|
30802
30783
|
declarations: [
|
|
30803
30784
|
UploadFileTestingPage
|
|
@@ -31221,7 +31202,7 @@
|
|
|
31221
31202
|
{ type: i1$5.PopoverController }
|
|
31222
31203
|
]; };
|
|
31223
31204
|
|
|
31224
|
-
var routes$
|
|
31205
|
+
var routes$4 = [
|
|
31225
31206
|
{
|
|
31226
31207
|
path: 'text-popover',
|
|
31227
31208
|
pathMatch: 'full',
|
|
@@ -31239,7 +31220,7 @@
|
|
|
31239
31220
|
i1$4.CommonModule,
|
|
31240
31221
|
i1$5.IonicModule,
|
|
31241
31222
|
i1$2.TranslateModule.forChild(),
|
|
31242
|
-
i3.RouterModule.forChild(routes$
|
|
31223
|
+
i3.RouterModule.forChild(routes$4)
|
|
31243
31224
|
],
|
|
31244
31225
|
declarations: [
|
|
31245
31226
|
TextPopoverTestingPage
|
|
@@ -31256,7 +31237,7 @@
|
|
|
31256
31237
|
{ label: 'Table', page: '/testing/core/table' },
|
|
31257
31238
|
{ label: 'Text popover', page: '/testing/core/text-popover' }
|
|
31258
31239
|
];
|
|
31259
|
-
var routes = [
|
|
31240
|
+
var routes$5 = [
|
|
31260
31241
|
{
|
|
31261
31242
|
path: '',
|
|
31262
31243
|
pathMatch: 'full',
|
|
@@ -31283,7 +31264,7 @@
|
|
|
31283
31264
|
imports: [
|
|
31284
31265
|
i1$4.CommonModule,
|
|
31285
31266
|
i1$2.TranslateModule.forChild(),
|
|
31286
|
-
i3.RouterModule.forChild(routes),
|
|
31267
|
+
i3.RouterModule.forChild(routes$5),
|
|
31287
31268
|
// Sub modules
|
|
31288
31269
|
TableTestingModule,
|
|
31289
31270
|
TextPopoverTestingModule
|
|
@@ -31406,7 +31387,7 @@
|
|
|
31406
31387
|
exports.EntityStore = EntityStore;
|
|
31407
31388
|
exports.EntityUtils = EntityUtils;
|
|
31408
31389
|
exports.Environment = Environment;
|
|
31409
|
-
exports.ErrorCodes = ErrorCodes;
|
|
31390
|
+
exports.ErrorCodes = ErrorCodes$2;
|
|
31410
31391
|
exports.EvenPipe = EvenPipe;
|
|
31411
31392
|
exports.FileResponse = FileResponse;
|
|
31412
31393
|
exports.FileService = FileService;
|
|
@@ -31422,7 +31403,7 @@
|
|
|
31422
31403
|
exports.FormGetControlPipe = FormGetControlPipe;
|
|
31423
31404
|
exports.FormGetGroupPipe = FormGetGroupPipe;
|
|
31424
31405
|
exports.FormGetPipe = FormGetPipe;
|
|
31425
|
-
exports.Fragments = Fragments;
|
|
31406
|
+
exports.Fragments = Fragments$1;
|
|
31426
31407
|
exports.GraphqlService = GraphqlService;
|
|
31427
31408
|
exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
|
|
31428
31409
|
exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
|
|
@@ -31703,23 +31684,23 @@
|
|
|
31703
31684
|
exports.waitForTrue = waitForTrue;
|
|
31704
31685
|
exports.waitIdle = waitIdle;
|
|
31705
31686
|
exports.waitWhilePending = waitWhilePending;
|
|
31706
|
-
exports
|
|
31707
|
-
exports
|
|
31708
|
-
exports
|
|
31709
|
-
exports
|
|
31710
|
-
exports
|
|
31711
|
-
exports
|
|
31712
|
-
exports
|
|
31713
|
-
exports
|
|
31714
|
-
exports
|
|
31715
|
-
exports
|
|
31716
|
-
exports
|
|
31717
|
-
exports
|
|
31718
|
-
exports
|
|
31719
|
-
exports
|
|
31720
|
-
exports
|
|
31687
|
+
exports.ɵ0 = ɵ0$1;
|
|
31688
|
+
exports.ɵa = CustomReuseStrategy;
|
|
31689
|
+
exports.ɵb = MatNumpadDomService;
|
|
31690
|
+
exports.ɵc = isFocusableElement;
|
|
31691
|
+
exports.ɵd = RegisterForm;
|
|
31692
|
+
exports.ɵe = AccountValidatorService;
|
|
31693
|
+
exports.ɵf = RegisterModal;
|
|
31694
|
+
exports.ɵg = UserSettingsValidatorService;
|
|
31695
|
+
exports.ɵh = LocalSettingsValidatorService;
|
|
31696
|
+
exports.ɵi = AppIconComponent;
|
|
31697
|
+
exports.ɵj = DateTestPage;
|
|
31698
|
+
exports.ɵk = NumpadTestPage;
|
|
31699
|
+
exports.ɵl = MatBadgeIconTestPage;
|
|
31700
|
+
exports.ɵm = ToastTestingModule;
|
|
31701
|
+
exports.ɵn = ToastTestingPage;
|
|
31721
31702
|
|
|
31722
31703
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
31723
31704
|
|
|
31724
|
-
}));
|
|
31705
|
+
})));
|
|
31725
31706
|
//# sourceMappingURL=sumaris-net.ngx-components.umd.js.map
|