@sumaris-net/ngx-components 1.16.2 → 1.17.1-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/sumaris-net.ngx-components.umd.js +342 -352
- 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 +8 -6
- package/esm2015/src/app/shared/services/job.utils.js +32 -22
- package/fesm2015/sumaris-net.ngx-components.js +316 -325
- 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 +2 -2
- 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,12 +10023,19 @@
|
|
|
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
10040
|
if (top && top.component['name'] !== merged.elementName)
|
|
10057
10041
|
return [2 /*return*/];
|
|
@@ -10081,7 +10065,7 @@
|
|
|
10081
10065
|
};
|
|
10082
10066
|
return Hotkeys;
|
|
10083
10067
|
}());
|
|
10084
|
-
Hotkeys.ɵprov =
|
|
10068
|
+
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
10069
|
Hotkeys.decorators = [
|
|
10086
10070
|
{ type: i0.Injectable, args: [{
|
|
10087
10071
|
providedIn: 'root'
|
|
@@ -10091,7 +10075,8 @@
|
|
|
10091
10075
|
{ type: i1$6.EventManager },
|
|
10092
10076
|
{ type: i2.MatDialog },
|
|
10093
10077
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [i1$4.DOCUMENT,] }] },
|
|
10094
|
-
{ type: i1$5.ModalController }
|
|
10078
|
+
{ type: i1$5.ModalController },
|
|
10079
|
+
{ type: i1$5.PopoverController }
|
|
10095
10080
|
]; };
|
|
10096
10081
|
|
|
10097
10082
|
var SharedHotkeysModule = /** @class */ (function () {
|
|
@@ -10285,7 +10270,7 @@
|
|
|
10285
10270
|
return Base64ImageReader;
|
|
10286
10271
|
}());
|
|
10287
10272
|
|
|
10288
|
-
var uuidv4
|
|
10273
|
+
var uuidv4 = uuidv4Imported__namespace;
|
|
10289
10274
|
var FileService = /** @class */ (function () {
|
|
10290
10275
|
function FileService(platform,
|
|
10291
10276
|
//private transfer: FileTransfer,
|
|
@@ -10331,7 +10316,7 @@
|
|
|
10331
10316
|
lastSlashIndex = source.lastIndexOf('/');
|
|
10332
10317
|
if (lastSlashIndex === -1)
|
|
10333
10318
|
throw new Error('Invalid URL: ' + source);
|
|
10334
|
-
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4
|
|
10319
|
+
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
|
|
10335
10320
|
if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
|
|
10336
10321
|
console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
|
|
10337
10322
|
targetFilePath = this._imageDirectory + fileName;
|
|
@@ -10394,7 +10379,7 @@
|
|
|
10394
10379
|
};
|
|
10395
10380
|
return FileService;
|
|
10396
10381
|
}());
|
|
10397
|
-
FileService.ɵprov =
|
|
10382
|
+
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
10383
|
FileService.decorators = [
|
|
10399
10384
|
{ type: i0.Injectable, args: [{
|
|
10400
10385
|
providedIn: 'root',
|
|
@@ -10561,7 +10546,7 @@
|
|
|
10561
10546
|
Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
10562
10547
|
|
|
10563
10548
|
var scrypt = require('scrypt-async');
|
|
10564
|
-
var sha256
|
|
10549
|
+
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
10565
10550
|
var sha512 = require('hash.js/lib/hash/sha/512');
|
|
10566
10551
|
var nacl = {
|
|
10567
10552
|
sign: tweetnacl.sign,
|
|
@@ -10667,7 +10652,7 @@
|
|
|
10667
10652
|
* Hash (using SHA256) a message
|
|
10668
10653
|
*/
|
|
10669
10654
|
CryptoService.prototype.sha256 = function (message) {
|
|
10670
|
-
return sha256
|
|
10655
|
+
return sha256().update(message).digest('hex');
|
|
10671
10656
|
};
|
|
10672
10657
|
/**
|
|
10673
10658
|
* Hash (using SHA512) a message
|
|
@@ -10681,7 +10666,7 @@
|
|
|
10681
10666
|
};
|
|
10682
10667
|
return CryptoService;
|
|
10683
10668
|
}());
|
|
10684
|
-
CryptoService.ɵprov =
|
|
10669
|
+
CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
|
|
10685
10670
|
CryptoService.decorators = [
|
|
10686
10671
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
10687
10672
|
];
|
|
@@ -11654,7 +11639,7 @@
|
|
|
11654
11639
|
onRefresh: [{ type: i0.Input }]
|
|
11655
11640
|
};
|
|
11656
11641
|
|
|
11657
|
-
var moment$
|
|
11642
|
+
var moment$3 = momentImported__namespace;
|
|
11658
11643
|
var SETTINGS_STORAGE_KEY = 'settings';
|
|
11659
11644
|
var SETTINGS_TRANSIENT_PROPERTIES = ['mobile', 'touchUi' /*deprecated*/];
|
|
11660
11645
|
// fixme: this constant points to static environment
|
|
@@ -11956,11 +11941,11 @@
|
|
|
11956
11941
|
if (!feature) {
|
|
11957
11942
|
feature = {
|
|
11958
11943
|
name: featureName.toLowerCase(),
|
|
11959
|
-
lastSyncDate: moment$
|
|
11944
|
+
lastSyncDate: moment$3().toISOString()
|
|
11960
11945
|
};
|
|
11961
11946
|
}
|
|
11962
11947
|
else {
|
|
11963
|
-
feature.lastSyncDate = moment$
|
|
11948
|
+
feature.lastSyncDate = moment$3().toISOString();
|
|
11964
11949
|
}
|
|
11965
11950
|
this.saveOfflineFeature(feature);
|
|
11966
11951
|
};
|
|
@@ -12154,7 +12139,7 @@
|
|
|
12154
12139
|
if (!page || !page.title || !page.path)
|
|
12155
12140
|
throw Error('Missing required argument \'page\', \'page.path\' or \'page.title\'');
|
|
12156
12141
|
// Set time
|
|
12157
|
-
page.time = page.time || moment$
|
|
12142
|
+
page.time = page.time || moment$3();
|
|
12158
12143
|
// Clean the title (remove <small> tags)
|
|
12159
12144
|
if (!opts || opts.removeTitleSmallTag !== false) {
|
|
12160
12145
|
var tagIndex = page.title.indexOf('</small>');
|
|
@@ -12171,7 +12156,7 @@
|
|
|
12171
12156
|
};
|
|
12172
12157
|
return LocalSettingsService;
|
|
12173
12158
|
}(StartableService));
|
|
12174
|
-
LocalSettingsService.ɵprov =
|
|
12159
|
+
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
12160
|
LocalSettingsService.decorators = [
|
|
12176
12161
|
{ type: i0.Injectable, args: [{
|
|
12177
12162
|
providedIn: 'root',
|
|
@@ -13052,7 +13037,7 @@
|
|
|
13052
13037
|
};
|
|
13053
13038
|
return NetworkService;
|
|
13054
13039
|
}(StartableService));
|
|
13055
|
-
NetworkService.ɵprov =
|
|
13040
|
+
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
13041
|
NetworkService.decorators = [
|
|
13057
13042
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
13058
13043
|
];
|
|
@@ -13072,7 +13057,7 @@
|
|
|
13072
13057
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
|
|
13073
13058
|
]; };
|
|
13074
13059
|
|
|
13075
|
-
var ErrorCodes
|
|
13060
|
+
var ErrorCodes = {
|
|
13076
13061
|
UNKNOWN_ERROR: 0,
|
|
13077
13062
|
LOAD_ACCOUNT_ERROR: 1,
|
|
13078
13063
|
BAD_PASSWORD: 2,
|
|
@@ -13489,7 +13474,7 @@
|
|
|
13489
13474
|
case 13:
|
|
13490
13475
|
err_1 = _b.sent();
|
|
13491
13476
|
console.error(err_1);
|
|
13492
|
-
throw { code: ErrorCodes
|
|
13477
|
+
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
13493
13478
|
case 14:
|
|
13494
13479
|
// Emit update event
|
|
13495
13480
|
if (!opts || opts.emitEvent !== false) {
|
|
@@ -14266,7 +14251,7 @@
|
|
|
14266
14251
|
}(StartableService));
|
|
14267
14252
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
14268
14253
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
14269
|
-
EntitiesStorage.ɵprov =
|
|
14254
|
+
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
14255
|
EntitiesStorage.decorators = [
|
|
14271
14256
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
14272
14257
|
];
|
|
@@ -14422,10 +14407,10 @@
|
|
|
14422
14407
|
function referentialsToString(values, properties, separator) {
|
|
14423
14408
|
return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
|
|
14424
14409
|
}
|
|
14425
|
-
var ɵ0$
|
|
14410
|
+
var ɵ0$a = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
14426
14411
|
var StatusList = Object.freeze([
|
|
14427
14412
|
{
|
|
14428
|
-
id: ɵ0$
|
|
14413
|
+
id: ɵ0$a,
|
|
14429
14414
|
icon: 'checkmark',
|
|
14430
14415
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
14431
14416
|
},
|
|
@@ -14728,7 +14713,7 @@
|
|
|
14728
14713
|
(data.lastName || '')) || '';
|
|
14729
14714
|
}
|
|
14730
14715
|
|
|
14731
|
-
var uuidv4 = uuidv4Imported__namespace;
|
|
14716
|
+
var uuidv4$1 = uuidv4Imported__namespace;
|
|
14732
14717
|
var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
14733
14718
|
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
14734
14719
|
/**
|
|
@@ -14772,7 +14757,7 @@
|
|
|
14772
14757
|
// Skip if not tracked
|
|
14773
14758
|
if (!context || !context.tracked)
|
|
14774
14759
|
return forward(operation);
|
|
14775
|
-
var id = context.serializationKey || uuidv4();
|
|
14760
|
+
var id = context.serializationKey || uuidv4$1();
|
|
14776
14761
|
console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
|
|
14777
14762
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
14778
14763
|
var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -15403,14 +15388,14 @@
|
|
|
15403
15388
|
mutationLinks = void 0;
|
|
15404
15389
|
// Add queue to store tracked queries, when offline
|
|
15405
15390
|
if (enableTrackMutationQueries) {
|
|
15406
|
-
serializingLink = new SerializingLink__default[
|
|
15391
|
+
serializingLink = new SerializingLink__default['default']();
|
|
15407
15392
|
trackerLink = createTrackerLink({
|
|
15408
15393
|
storage: storage,
|
|
15409
15394
|
onNetworkStatusChange: this._networkStatusChanged$,
|
|
15410
15395
|
debounce: 1000,
|
|
15411
15396
|
debug: true
|
|
15412
15397
|
});
|
|
15413
|
-
queueLink_1 = new QueueLink__default[
|
|
15398
|
+
queueLink_1 = new QueueLink__default['default']();
|
|
15414
15399
|
this.registerSubscription(this._networkStatusChanged$
|
|
15415
15400
|
.subscribe(function (type) {
|
|
15416
15401
|
// Network is offline: start buffering into queue
|
|
@@ -15425,7 +15410,7 @@
|
|
|
15425
15410
|
}
|
|
15426
15411
|
}));
|
|
15427
15412
|
mutationLinks = [
|
|
15428
|
-
loggerLink__default[
|
|
15413
|
+
loggerLink__default['default'],
|
|
15429
15414
|
queueLink_1,
|
|
15430
15415
|
trackerLink,
|
|
15431
15416
|
queueLink_1,
|
|
@@ -15532,7 +15517,7 @@
|
|
|
15532
15517
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
15533
15518
|
|| this.toAppError(err.networkError)
|
|
15534
15519
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
15535
|
-
|| this.createAppErrorByCode(ErrorCodes
|
|
15520
|
+
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
15536
15521
|
// If graphQL: try to convert the first error found
|
|
15537
15522
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
15538
15523
|
|| this.toAppError(err)
|
|
@@ -15540,7 +15525,7 @@
|
|
|
15540
15525
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
15541
15526
|
|| err;
|
|
15542
15527
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
15543
|
-
if (error && error.code === ErrorCodes
|
|
15528
|
+
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
15544
15529
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
15545
15530
|
this.onNetworkError.next(error);
|
|
15546
15531
|
}
|
|
@@ -15551,7 +15536,7 @@
|
|
|
15551
15536
|
data: null,
|
|
15552
15537
|
errors: [error],
|
|
15553
15538
|
loading: false,
|
|
15554
|
-
networkStatus:
|
|
15539
|
+
networkStatus: core.NetworkStatus.error
|
|
15555
15540
|
};
|
|
15556
15541
|
};
|
|
15557
15542
|
GraphqlService.prototype.createAppErrorByCode = function (errorCode) {
|
|
@@ -15576,7 +15561,7 @@
|
|
|
15576
15561
|
return 'ERROR.UNAUTHORIZED';
|
|
15577
15562
|
case ServerErrorCodes.FORBIDDEN:
|
|
15578
15563
|
return 'ERROR.FORBIDDEN';
|
|
15579
|
-
case ErrorCodes
|
|
15564
|
+
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
15580
15565
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
15581
15566
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
15582
15567
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -15608,7 +15593,7 @@
|
|
|
15608
15593
|
};
|
|
15609
15594
|
return GraphqlService;
|
|
15610
15595
|
}(StartableService));
|
|
15611
|
-
GraphqlService.ɵprov =
|
|
15596
|
+
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
15597
|
GraphqlService.decorators = [
|
|
15613
15598
|
{ type: i0.Injectable, args: [{
|
|
15614
15599
|
providedIn: 'root'
|
|
@@ -15625,7 +15610,7 @@
|
|
|
15625
15610
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
15626
15611
|
]; };
|
|
15627
15612
|
|
|
15628
|
-
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
15613
|
+
var sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
15629
15614
|
var BaseGraphqlServiceOptions = /** @class */ (function () {
|
|
15630
15615
|
function BaseGraphqlServiceOptions() {
|
|
15631
15616
|
}
|
|
@@ -15795,8 +15780,8 @@
|
|
|
15795
15780
|
};
|
|
15796
15781
|
/* -- protected methods -- */
|
|
15797
15782
|
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) || '';
|
|
15783
|
+
var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
15784
|
+
var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
15800
15785
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
15801
15786
|
};
|
|
15802
15787
|
BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
|
|
@@ -15869,19 +15854,19 @@
|
|
|
15869
15854
|
/* ------------------------------------
|
|
15870
15855
|
* GraphQL queries
|
|
15871
15856
|
* ------------------------------------*/
|
|
15872
|
-
var Fragments
|
|
15873
|
-
account: core.gql(templateObject_1
|
|
15874
|
-
settings: core.gql(templateObject_2
|
|
15857
|
+
var Fragments = {
|
|
15858
|
+
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 }"]))),
|
|
15859
|
+
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
15860
|
};
|
|
15876
15861
|
// Load account query
|
|
15877
|
-
var LoadQuery
|
|
15862
|
+
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
15863
|
// Check email query
|
|
15879
|
-
var IsEmailExistsQuery = core.gql(templateObject_4
|
|
15864
|
+
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
15865
|
// Save (create or update) account mutation
|
|
15881
15866
|
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
|
|
15867
|
+
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),
|
|
15868
|
+
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),
|
|
15869
|
+
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
15870
|
};
|
|
15886
15871
|
// Sent confirmation email
|
|
15887
15872
|
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 +16234,7 @@
|
|
|
16249
16234
|
error_3 = _b.sent();
|
|
16250
16235
|
console.error(error_3);
|
|
16251
16236
|
this.resetData();
|
|
16252
|
-
throw { code: ErrorCodes
|
|
16237
|
+
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
16253
16238
|
case 4:
|
|
16254
16239
|
// Store pubkey+keypair
|
|
16255
16240
|
this._cache.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -16285,7 +16270,7 @@
|
|
|
16285
16270
|
return [3 /*break*/, 18];
|
|
16286
16271
|
case 11:
|
|
16287
16272
|
err_1 = _b.sent();
|
|
16288
|
-
if (!(err_1 && +(err_1.code) === ErrorCodes
|
|
16273
|
+
if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
16289
16274
|
if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
|
|
16290
16275
|
isEmailExists = void 0;
|
|
16291
16276
|
_b.label = 12;
|
|
@@ -16301,12 +16286,12 @@
|
|
|
16301
16286
|
case 15:
|
|
16302
16287
|
// Email not exists (no account)
|
|
16303
16288
|
if (!isEmailExists) {
|
|
16304
|
-
throw { code: ErrorCodes
|
|
16289
|
+
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
16305
16290
|
}
|
|
16306
16291
|
_b.label = 16;
|
|
16307
16292
|
case 16:
|
|
16308
16293
|
// Email exists, so error = 'bad password'
|
|
16309
|
-
throw { code: ErrorCodes
|
|
16294
|
+
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
16310
16295
|
case 17: throw err_1; // resend the first error
|
|
16311
16296
|
case 18:
|
|
16312
16297
|
_b.trys.push([18, 20, , 21]);
|
|
@@ -16502,8 +16487,8 @@
|
|
|
16502
16487
|
_b.label = 3;
|
|
16503
16488
|
case 3: return [3 /*break*/, 6];
|
|
16504
16489
|
case 4: return [4 /*yield*/, this.graphql.query({
|
|
16505
|
-
query: LoadQuery
|
|
16506
|
-
error: { code: ErrorCodes
|
|
16490
|
+
query: LoadQuery,
|
|
16491
|
+
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
16507
16492
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
16508
16493
|
})];
|
|
16509
16494
|
case 5:
|
|
@@ -16541,7 +16526,7 @@
|
|
|
16541
16526
|
case 1:
|
|
16542
16527
|
isEmailExists = _b.sent();
|
|
16543
16528
|
if (isEmailExists) {
|
|
16544
|
-
throw { code: ErrorCodes
|
|
16529
|
+
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
16545
16530
|
}
|
|
16546
16531
|
return [2 /*return*/];
|
|
16547
16532
|
}
|
|
@@ -16591,7 +16576,7 @@
|
|
|
16591
16576
|
locale: locale
|
|
16592
16577
|
},
|
|
16593
16578
|
error: {
|
|
16594
|
-
code: ErrorCodes
|
|
16579
|
+
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
16595
16580
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
16596
16581
|
}
|
|
16597
16582
|
})];
|
|
@@ -16614,7 +16599,7 @@
|
|
|
16614
16599
|
code: code
|
|
16615
16600
|
},
|
|
16616
16601
|
error: {
|
|
16617
|
-
code: ErrorCodes
|
|
16602
|
+
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
16618
16603
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
16619
16604
|
}
|
|
16620
16605
|
})];
|
|
@@ -16714,7 +16699,7 @@
|
|
|
16714
16699
|
throw error_7;
|
|
16715
16700
|
console.error(error_7);
|
|
16716
16701
|
throw {
|
|
16717
|
-
code: ErrorCodes
|
|
16702
|
+
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
16718
16703
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
16719
16704
|
};
|
|
16720
16705
|
case 6: return [2 /*return*/];
|
|
@@ -16925,7 +16910,7 @@
|
|
|
16925
16910
|
case 1:
|
|
16926
16911
|
existingAccount = _b.sent();
|
|
16927
16912
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
16928
|
-
throw { code: ErrorCodes
|
|
16913
|
+
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
16929
16914
|
}
|
|
16930
16915
|
this.copyIdAndUpdateDate(existingAccount, account);
|
|
16931
16916
|
_b.label = 2;
|
|
@@ -16937,7 +16922,7 @@
|
|
|
16937
16922
|
mutation: isNew ? AccountMutations.create : AccountMutations.save,
|
|
16938
16923
|
variables: { data: json },
|
|
16939
16924
|
error: {
|
|
16940
|
-
code: ErrorCodes
|
|
16925
|
+
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
16941
16926
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
16942
16927
|
}
|
|
16943
16928
|
})];
|
|
@@ -16971,7 +16956,7 @@
|
|
|
16971
16956
|
mutation: AccountMutations.saveSettings,
|
|
16972
16957
|
variables: { data: json },
|
|
16973
16958
|
error: {
|
|
16974
|
-
code: ErrorCodes
|
|
16959
|
+
code: ErrorCodes.SAVE_SETTINGS_ERROR,
|
|
16975
16960
|
message: 'ERROR.SAVE_SETTINGS_ERROR'
|
|
16976
16961
|
}
|
|
16977
16962
|
})];
|
|
@@ -17002,7 +16987,7 @@
|
|
|
17002
16987
|
if (counter > 4) {
|
|
17003
16988
|
if (this._debug)
|
|
17004
16989
|
console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
|
|
17005
|
-
throw { code: ErrorCodes
|
|
16990
|
+
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
17006
16991
|
}
|
|
17007
16992
|
if (!token) return [3 /*break*/, 2];
|
|
17008
16993
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -17011,7 +16996,7 @@
|
|
|
17011
16996
|
token: token
|
|
17012
16997
|
},
|
|
17013
16998
|
error: {
|
|
17014
|
-
code: ErrorCodes
|
|
16999
|
+
code: ErrorCodes.UNAUTHORIZED,
|
|
17015
17000
|
message: 'ERROR.UNAUTHORIZED'
|
|
17016
17001
|
},
|
|
17017
17002
|
fetchPolicy: 'no-cache'
|
|
@@ -17028,7 +17013,7 @@
|
|
|
17028
17013
|
_b.label = 2;
|
|
17029
17014
|
case 2:
|
|
17030
17015
|
challengeError = {
|
|
17031
|
-
code: ErrorCodes
|
|
17016
|
+
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
17032
17017
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
17033
17018
|
};
|
|
17034
17019
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -17115,7 +17100,7 @@
|
|
|
17115
17100
|
query: AccountSubscriptions.listenChanges,
|
|
17116
17101
|
variables: variables,
|
|
17117
17102
|
error: {
|
|
17118
|
-
code: ErrorCodes
|
|
17103
|
+
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
17119
17104
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ERROR'
|
|
17120
17105
|
}
|
|
17121
17106
|
}).pipe(operators.map(function (_b) {
|
|
@@ -17148,7 +17133,7 @@
|
|
|
17148
17133
|
};
|
|
17149
17134
|
return AccountService;
|
|
17150
17135
|
}(BaseGraphqlService));
|
|
17151
|
-
AccountService.ɵprov =
|
|
17136
|
+
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
17137
|
AccountService.decorators = [
|
|
17153
17138
|
{ type: i0.Injectable, args: [{ providedIn: 'root', deps: [ENVIRONMENT] },] }
|
|
17154
17139
|
];
|
|
@@ -17163,7 +17148,7 @@
|
|
|
17163
17148
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] },
|
|
17164
17149
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
17165
17150
|
]; };
|
|
17166
|
-
var templateObject_1
|
|
17151
|
+
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
17152
|
|
|
17168
17153
|
var Software_1, Configuration_1;
|
|
17169
17154
|
// @dynamic
|
|
@@ -17421,13 +17406,13 @@
|
|
|
17421
17406
|
/* ------------------------------------
|
|
17422
17407
|
* GraphQL queries
|
|
17423
17408
|
* ------------------------------------*/
|
|
17424
|
-
var Fragments = {
|
|
17425
|
-
config: core.gql(templateObject_1$
|
|
17409
|
+
var Fragments$1 = {
|
|
17410
|
+
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
17411
|
};
|
|
17427
|
-
var LoadQuery = core.gql(templateObject_2$
|
|
17412
|
+
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
17413
|
// Save (create or update) account mutation
|
|
17429
|
-
var SaveMutation = core.gql(templateObject_3$
|
|
17430
|
-
var ClearCache = core.gql(templateObject_4$
|
|
17414
|
+
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);
|
|
17415
|
+
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
17416
|
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
17417
|
var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
|
|
17433
17418
|
var ConfigService = /** @class */ (function (_super) {
|
|
@@ -17487,12 +17472,12 @@
|
|
|
17487
17472
|
case 0:
|
|
17488
17473
|
now = Date.now();
|
|
17489
17474
|
console.debug('[config] Loading Pod configuration...');
|
|
17490
|
-
query = opts && opts.query || LoadQuery;
|
|
17475
|
+
query = opts && opts.query || LoadQuery$1;
|
|
17491
17476
|
variables = opts && opts.variables || undefined;
|
|
17492
17477
|
return [4 /*yield*/, this.graphql.query({
|
|
17493
17478
|
query: query,
|
|
17494
17479
|
variables: variables,
|
|
17495
|
-
error: { code: ErrorCodes
|
|
17480
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17496
17481
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
17497
17482
|
})];
|
|
17498
17483
|
case 1:
|
|
@@ -17534,7 +17519,7 @@
|
|
|
17534
17519
|
data: json
|
|
17535
17520
|
},
|
|
17536
17521
|
error: {
|
|
17537
|
-
code: ErrorCodes
|
|
17522
|
+
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
17538
17523
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
17539
17524
|
}
|
|
17540
17525
|
})];
|
|
@@ -17569,7 +17554,7 @@
|
|
|
17569
17554
|
return [4 /*yield*/, this.graphql.query({
|
|
17570
17555
|
query: CacheStatistics,
|
|
17571
17556
|
variables: null,
|
|
17572
|
-
error: { code: ErrorCodes
|
|
17557
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17573
17558
|
fetchPolicy: 'network-only'
|
|
17574
17559
|
})];
|
|
17575
17560
|
case 1:
|
|
@@ -17593,7 +17578,7 @@
|
|
|
17593
17578
|
return [4 /*yield*/, this.graphql.query({
|
|
17594
17579
|
query: ClearCache,
|
|
17595
17580
|
variables: variables,
|
|
17596
|
-
error: { code: ErrorCodes
|
|
17581
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17597
17582
|
fetchPolicy: 'no-cache'
|
|
17598
17583
|
})];
|
|
17599
17584
|
case 1:
|
|
@@ -17793,7 +17778,7 @@
|
|
|
17793
17778
|
};
|
|
17794
17779
|
return ConfigService;
|
|
17795
17780
|
}(BaseGraphqlService));
|
|
17796
|
-
ConfigService.ɵprov =
|
|
17781
|
+
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
17782
|
ConfigService.decorators = [
|
|
17798
17783
|
{ type: i0.Injectable, args: [{
|
|
17799
17784
|
providedIn: 'root',
|
|
@@ -17812,9 +17797,9 @@
|
|
|
17812
17797
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
17813
17798
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
17814
17799
|
]; };
|
|
17815
|
-
var templateObject_1$
|
|
17800
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
|
|
17816
17801
|
|
|
17817
|
-
var moment$
|
|
17802
|
+
var moment$4 = momentImported__namespace;
|
|
17818
17803
|
var AndroidOsEnvironment = Object.freeze({
|
|
17819
17804
|
DIRECTORY_DOWNLOADS: 'Download',
|
|
17820
17805
|
DIRECTORY_DOWNLOADS_OLD: 'Downloads',
|
|
@@ -18084,16 +18069,16 @@
|
|
|
18084
18069
|
}
|
|
18085
18070
|
// config moment lib
|
|
18086
18071
|
try {
|
|
18087
|
-
moment$
|
|
18072
|
+
moment$4.locale(event.lang);
|
|
18088
18073
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
18089
18074
|
}
|
|
18090
18075
|
// If error, fallback to en
|
|
18091
18076
|
catch (err) {
|
|
18092
|
-
moment$
|
|
18077
|
+
moment$4.locale('en');
|
|
18093
18078
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
18094
18079
|
}
|
|
18095
18080
|
// Config date adapter
|
|
18096
|
-
_this.dateAdapter.setLocale(moment$
|
|
18081
|
+
_this.dateAdapter.setLocale(moment$4.locale());
|
|
18097
18082
|
}
|
|
18098
18083
|
});
|
|
18099
18084
|
this.settings.onChange.subscribe(function (data) {
|
|
@@ -18346,7 +18331,7 @@
|
|
|
18346
18331
|
};
|
|
18347
18332
|
return PlatformService;
|
|
18348
18333
|
}(StartableService));
|
|
18349
|
-
PlatformService.ɵprov =
|
|
18334
|
+
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
18335
|
PlatformService.decorators = [
|
|
18351
18336
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
18352
18337
|
];
|
|
@@ -18444,7 +18429,7 @@
|
|
|
18444
18429
|
};
|
|
18445
18430
|
return MatStepperI18n;
|
|
18446
18431
|
}(stepper.MatStepperIntl));
|
|
18447
|
-
MatStepperI18n.ɵprov =
|
|
18432
|
+
MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
18448
18433
|
MatStepperI18n.decorators = [
|
|
18449
18434
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
18450
18435
|
];
|
|
@@ -19800,7 +19785,7 @@
|
|
|
19800
19785
|
TextForm.decorators = [
|
|
19801
19786
|
{ type: i0.Component, args: [{
|
|
19802
19787
|
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",
|
|
19788
|
+
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
19789
|
styles: ["textarea.fixed-height{height:11.5em}"]
|
|
19805
19790
|
},] }
|
|
19806
19791
|
];
|
|
@@ -19920,7 +19905,7 @@
|
|
|
19920
19905
|
TextPopover.decorators = [
|
|
19921
19906
|
{ type: i0.Component, args: [{
|
|
19922
19907
|
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
|
|
19908
|
+
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
19909
|
},] }
|
|
19925
19910
|
];
|
|
19926
19911
|
TextPopover.ctorParameters = function () { return [
|
|
@@ -20308,53 +20293,59 @@
|
|
|
20308
20293
|
.then(function () {
|
|
20309
20294
|
if (opts === null || opts === void 0 ? void 0 : opts.maxProgression)
|
|
20310
20295
|
progression.next(opts.maxProgression);
|
|
20311
|
-
|
|
20312
|
-
opts.progression.complete();
|
|
20296
|
+
progression.complete();
|
|
20313
20297
|
})
|
|
20314
20298
|
.catch(function (err) { return progression.error(err); });
|
|
20315
20299
|
return progression;
|
|
20316
20300
|
};
|
|
20317
20301
|
JobUtils.fetchAllPages = function (loadPageFn, opts) {
|
|
20318
|
-
var _a;
|
|
20319
20302
|
return __awaiter(this, void 0, void 0, function () {
|
|
20320
|
-
var maxProgression, total, pageCount, progressionStep, currentPageDataCount, fetchSize, offset, data, res
|
|
20321
|
-
return __generator(this, function (
|
|
20322
|
-
switch (
|
|
20303
|
+
var maxProgression, progression, total, pageCount, progressionStep, currentPageDataCount, fetchSize, offset, data, res;
|
|
20304
|
+
return __generator(this, function (_a) {
|
|
20305
|
+
switch (_a.label) {
|
|
20323
20306
|
case 0:
|
|
20324
|
-
maxProgression = opts
|
|
20325
|
-
|
|
20307
|
+
maxProgression = toNumber(opts === null || opts === void 0 ? void 0 : opts.maxProgression, 100);
|
|
20308
|
+
progression = opts === null || opts === void 0 ? void 0 : opts.progression;
|
|
20309
|
+
fetchSize = toNumber(opts === null || opts === void 0 ? void 0 : opts.fetchSize, 1000);
|
|
20310
|
+
if (fetchSize <= 0)
|
|
20311
|
+
throw new Error('Unable to fetch pages: invalid fetchSize: ' + fetchSize);
|
|
20326
20312
|
offset = 0;
|
|
20327
20313
|
data = [];
|
|
20328
|
-
|
|
20314
|
+
_a.label = 1;
|
|
20329
20315
|
case 1:
|
|
20330
20316
|
if (opts && opts.logPrefix)
|
|
20331
20317
|
console.debug(opts.logPrefix + " Fetching page #" + offset / fetchSize + "...");
|
|
20332
20318
|
return [4 /*yield*/, loadPageFn(offset, fetchSize)];
|
|
20333
20319
|
case 2:
|
|
20334
|
-
res =
|
|
20320
|
+
res = _a.sent();
|
|
20321
|
+
// Concat to previous result
|
|
20335
20322
|
data = data.concat(res.data);
|
|
20323
|
+
// Compute variables, for next loop
|
|
20336
20324
|
currentPageDataCount = res.data && res.data.length || 0;
|
|
20337
20325
|
offset += currentPageDataCount;
|
|
20338
|
-
// Set total count (only
|
|
20326
|
+
// Set total count (only once)
|
|
20339
20327
|
if (isNil(total) && isNotNil(res.total)) {
|
|
20340
20328
|
total = res.total;
|
|
20341
20329
|
// Compute the number of page
|
|
20342
20330
|
pageCount = Math.round(res.total / fetchSize + 0.5); // Round to HALF_UP integer
|
|
20343
|
-
|
|
20344
|
-
|
|
20345
|
-
|
|
20346
|
-
|
|
20331
|
+
// Compute step, by dividing maxProgression by number of page
|
|
20332
|
+
if (progression) {
|
|
20333
|
+
progressionStep = maxProgression / pageCount;
|
|
20334
|
+
// DEBUG
|
|
20335
|
+
if (opts && opts.logPrefix)
|
|
20336
|
+
console.debug(opts.logPrefix + " {pageCount: " + pageCount + ", progression: " + progression.value + ", pageProgressionStep: " + progressionStep + "}");
|
|
20337
|
+
}
|
|
20347
20338
|
}
|
|
20348
20339
|
// Increment progression on each iteration (if possible)
|
|
20349
|
-
if (
|
|
20350
|
-
|
|
20340
|
+
if (isNotNil(progressionStep)) {
|
|
20341
|
+
progression.next(progression.value + progressionStep);
|
|
20351
20342
|
}
|
|
20352
|
-
if (opts
|
|
20343
|
+
if (opts === null || opts === void 0 ? void 0 : opts.onPageLoaded)
|
|
20353
20344
|
opts.onPageLoaded(res);
|
|
20354
|
-
|
|
20345
|
+
_a.label = 3;
|
|
20355
20346
|
case 3:
|
|
20356
20347
|
if (currentPageDataCount > 0 && ((isNil(total) && currentPageDataCount === fetchSize) || (isNotNil(total) && (offset < total)))) return [3 /*break*/, 1];
|
|
20357
|
-
|
|
20348
|
+
_a.label = 4;
|
|
20358
20349
|
case 4:
|
|
20359
20350
|
// Complete progression to reach progressionStep value (because of round)
|
|
20360
20351
|
if (isNotNil(progressionStep)) {
|
|
@@ -20364,14 +20355,19 @@
|
|
|
20364
20355
|
total = data.length;
|
|
20365
20356
|
pageCount = Math.round(data.length / fetchSize + 0.5);
|
|
20366
20357
|
}
|
|
20367
|
-
|
|
20368
|
-
|
|
20369
|
-
|
|
20370
|
-
|
|
20358
|
+
// Compute final increment, using the real page count
|
|
20359
|
+
progressionStep = Math.max(0, maxProgression - (progressionStep * pageCount));
|
|
20360
|
+
}
|
|
20361
|
+
// Or increment once (e.g. when total is not known, in received LoadResult)
|
|
20362
|
+
else if (progression) {
|
|
20363
|
+
progressionStep = maxProgression;
|
|
20371
20364
|
}
|
|
20372
|
-
//
|
|
20373
|
-
|
|
20374
|
-
opts.progression.
|
|
20365
|
+
// DEBUG
|
|
20366
|
+
if (opts && opts.logPrefix)
|
|
20367
|
+
console.debug(opts.logPrefix + " All pages fetched - {progression: " + progression.value + ", lastProgressionStep: " + progressionStep);
|
|
20368
|
+
// Final increment
|
|
20369
|
+
if (progression && progressionStep > 0) {
|
|
20370
|
+
progression.next(progression.value + progressionStep);
|
|
20375
20371
|
}
|
|
20376
20372
|
return [2 /*return*/, {
|
|
20377
20373
|
data: data,
|
|
@@ -20646,7 +20642,7 @@
|
|
|
20646
20642
|
return 1;
|
|
20647
20643
|
}
|
|
20648
20644
|
}
|
|
20649
|
-
var ɵ0$
|
|
20645
|
+
var ɵ0$b = function (defaultStateSize) { return [
|
|
20650
20646
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
20651
20647
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
20652
20648
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -20654,7 +20650,7 @@
|
|
|
20654
20650
|
var SCALE_OPTIONS_DEFAULT = {
|
|
20655
20651
|
startColor: rgbArrayMap.red,
|
|
20656
20652
|
startStates: [0, 2, 3],
|
|
20657
|
-
startStepsFn: ɵ0$
|
|
20653
|
+
startStepsFn: ɵ0$b
|
|
20658
20654
|
};
|
|
20659
20655
|
/**
|
|
20660
20656
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -21585,7 +21581,7 @@
|
|
|
21585
21581
|
};
|
|
21586
21582
|
return UserSettingsValidatorService;
|
|
21587
21583
|
}(AppValidatorService));
|
|
21588
|
-
UserSettingsValidatorService.ɵprov =
|
|
21584
|
+
UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
21589
21585
|
UserSettingsValidatorService.decorators = [
|
|
21590
21586
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21591
21587
|
];
|
|
@@ -21633,7 +21629,7 @@
|
|
|
21633
21629
|
};
|
|
21634
21630
|
return AccountValidatorService;
|
|
21635
21631
|
}(AppValidatorService));
|
|
21636
|
-
AccountValidatorService.ɵprov =
|
|
21632
|
+
AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
|
|
21637
21633
|
AccountValidatorService.decorators = [
|
|
21638
21634
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21639
21635
|
];
|
|
@@ -22264,7 +22260,7 @@
|
|
|
22264
22260
|
};
|
|
22265
22261
|
return LocalSettingsValidatorService;
|
|
22266
22262
|
}(AppValidatorService));
|
|
22267
|
-
LocalSettingsValidatorService.ɵprov =
|
|
22263
|
+
LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
|
|
22268
22264
|
LocalSettingsValidatorService.decorators = [
|
|
22269
22265
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
22270
22266
|
];
|
|
@@ -23044,7 +23040,7 @@
|
|
|
23044
23040
|
};
|
|
23045
23041
|
return IsOnFieldModePipe;
|
|
23046
23042
|
}());
|
|
23047
|
-
IsOnFieldModePipe.ɵprov =
|
|
23043
|
+
IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
23048
23044
|
IsOnFieldModePipe.decorators = [
|
|
23049
23045
|
{ type: i0.Pipe, args: [{
|
|
23050
23046
|
name: 'isOnField'
|
|
@@ -23059,7 +23055,7 @@
|
|
|
23059
23055
|
};
|
|
23060
23056
|
return IsNotOnFieldModePipe;
|
|
23061
23057
|
}());
|
|
23062
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
23058
|
+
IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
23063
23059
|
IsNotOnFieldModePipe.decorators = [
|
|
23064
23060
|
{ type: i0.Pipe, args: [{
|
|
23065
23061
|
name: 'isNotOnField'
|
|
@@ -23077,7 +23073,7 @@
|
|
|
23077
23073
|
};
|
|
23078
23074
|
return PersonToStringPipe;
|
|
23079
23075
|
}());
|
|
23080
|
-
PersonToStringPipe.ɵprov =
|
|
23076
|
+
PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
23081
23077
|
PersonToStringPipe.decorators = [
|
|
23082
23078
|
{ type: i0.Pipe, args: [{
|
|
23083
23079
|
name: 'personToString'
|
|
@@ -23541,7 +23537,7 @@
|
|
|
23541
23537
|
};
|
|
23542
23538
|
return IsLoginAccountPipe;
|
|
23543
23539
|
}());
|
|
23544
|
-
IsLoginAccountPipe.ɵprov =
|
|
23540
|
+
IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
23545
23541
|
IsLoginAccountPipe.decorators = [
|
|
23546
23542
|
{ type: i0.Pipe, args: [{
|
|
23547
23543
|
name: 'isLogin'
|
|
@@ -23556,7 +23552,7 @@
|
|
|
23556
23552
|
};
|
|
23557
23553
|
return AccountToStringPipe;
|
|
23558
23554
|
}());
|
|
23559
|
-
AccountToStringPipe.ɵprov =
|
|
23555
|
+
AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
23560
23556
|
AccountToStringPipe.decorators = [
|
|
23561
23557
|
{ type: i0.Pipe, args: [{
|
|
23562
23558
|
name: 'accountToString'
|
|
@@ -23574,7 +23570,7 @@
|
|
|
23574
23570
|
};
|
|
23575
23571
|
return DepartmentToStringPipe;
|
|
23576
23572
|
}());
|
|
23577
|
-
DepartmentToStringPipe.ɵprov =
|
|
23573
|
+
DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
23578
23574
|
DepartmentToStringPipe.decorators = [
|
|
23579
23575
|
{ type: i0.Pipe, args: [{
|
|
23580
23576
|
name: 'departmentToString'
|
|
@@ -23680,7 +23676,7 @@
|
|
|
23680
23676
|
};
|
|
23681
23677
|
return MenuService;
|
|
23682
23678
|
}());
|
|
23683
|
-
MenuService.ɵprov =
|
|
23679
|
+
MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
23684
23680
|
MenuService.decorators = [
|
|
23685
23681
|
{ type: i0.Injectable, args: [{
|
|
23686
23682
|
providedIn: 'root'
|
|
@@ -23710,12 +23706,7 @@
|
|
|
23710
23706
|
this.appVersion = this.environment.version;
|
|
23711
23707
|
this.side = 'left';
|
|
23712
23708
|
this._debug = !environment.production;
|
|
23713
|
-
this.onResize();
|
|
23714
23709
|
}
|
|
23715
|
-
MenuComponent.prototype.onResize = function (event) {
|
|
23716
|
-
this._screenWidth = window.innerWidth;
|
|
23717
|
-
console.debug('[menu] Screen size (px): ' + this._screenWidth);
|
|
23718
|
-
};
|
|
23719
23710
|
MenuComponent.prototype.ngOnInit = function () {
|
|
23720
23711
|
return __awaiter(this, void 0, void 0, function () {
|
|
23721
23712
|
var _this = this;
|
|
@@ -24012,8 +24003,7 @@
|
|
|
24012
24003
|
appName: [{ type: i0.Input }],
|
|
24013
24004
|
appVersion: [{ type: i0.Input }],
|
|
24014
24005
|
side: [{ type: i0.Input }],
|
|
24015
|
-
splitPane: [{ type: i0.ViewChild, args: ['splitPane', { static: true },] }]
|
|
24016
|
-
onResize: [{ type: i0.HostListener, args: ['window:resize', ['$event'],] }]
|
|
24006
|
+
splitPane: [{ type: i0.ViewChild, args: ['splitPane', { static: true },] }]
|
|
24017
24007
|
};
|
|
24018
24008
|
|
|
24019
24009
|
var AppMenuModule = /** @class */ (function () {
|
|
@@ -24231,7 +24221,7 @@
|
|
|
24231
24221
|
};
|
|
24232
24222
|
return AuthGuardService;
|
|
24233
24223
|
}());
|
|
24234
|
-
AuthGuardService.ɵprov =
|
|
24224
|
+
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" });
|
|
24235
24225
|
AuthGuardService.decorators = [
|
|
24236
24226
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
24237
24227
|
];
|
|
@@ -24276,7 +24266,7 @@
|
|
|
24276
24266
|
query: query,
|
|
24277
24267
|
variables: { id: id },
|
|
24278
24268
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
24279
|
-
error: { code: ErrorCodes
|
|
24269
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
24280
24270
|
})
|
|
24281
24271
|
.pipe(operators.map(function (_b) {
|
|
24282
24272
|
var data = _b.data;
|
|
@@ -24298,7 +24288,7 @@
|
|
|
24298
24288
|
query: query,
|
|
24299
24289
|
variables: { id: id },
|
|
24300
24290
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
24301
|
-
error: { code: ErrorCodes
|
|
24291
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
24302
24292
|
})];
|
|
24303
24293
|
case 1:
|
|
24304
24294
|
data = (_b.sent()).data;
|
|
@@ -24334,7 +24324,7 @@
|
|
|
24334
24324
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
24335
24325
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
24336
24326
|
variables: variables,
|
|
24337
|
-
error: { code: ErrorCodes
|
|
24327
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
24338
24328
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
24339
24329
|
})
|
|
24340
24330
|
.pipe(operators.map(function (_b) {
|
|
@@ -24376,7 +24366,7 @@
|
|
|
24376
24366
|
return [4 /*yield*/, this.graphql.query({
|
|
24377
24367
|
query: query,
|
|
24378
24368
|
variables: variables,
|
|
24379
|
-
error: { code: ErrorCodes
|
|
24369
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
24380
24370
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
24381
24371
|
})];
|
|
24382
24372
|
case 1:
|
|
@@ -24424,7 +24414,7 @@
|
|
|
24424
24414
|
variables: {
|
|
24425
24415
|
filter: filter && filter.asPodObject()
|
|
24426
24416
|
},
|
|
24427
|
-
error: { code: ErrorCodes
|
|
24417
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
24428
24418
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
24429
24419
|
})];
|
|
24430
24420
|
case 3:
|
|
@@ -24469,7 +24459,7 @@
|
|
|
24469
24459
|
variables: {
|
|
24470
24460
|
data: json
|
|
24471
24461
|
},
|
|
24472
|
-
error: { code: ErrorCodes
|
|
24462
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
24473
24463
|
update: function (proxy, _b) {
|
|
24474
24464
|
var data = _b.data;
|
|
24475
24465
|
var savedEntities = data && data.data;
|
|
@@ -24536,7 +24526,7 @@
|
|
|
24536
24526
|
variables: {
|
|
24537
24527
|
data: json
|
|
24538
24528
|
},
|
|
24539
|
-
error: { code: ErrorCodes
|
|
24529
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
24540
24530
|
update: function (cache, _b) {
|
|
24541
24531
|
var data = _b.data;
|
|
24542
24532
|
// Update entity
|
|
@@ -24594,7 +24584,7 @@
|
|
|
24594
24584
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
24595
24585
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
24596
24586
|
variables: { ids: ids },
|
|
24597
|
-
error: { code: ErrorCodes
|
|
24587
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
24598
24588
|
update: function (cache, res) {
|
|
24599
24589
|
// Remove from cache
|
|
24600
24590
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -24647,7 +24637,7 @@
|
|
|
24647
24637
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
24648
24638
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
24649
24639
|
variables: { id: id },
|
|
24650
|
-
error: { code: ErrorCodes
|
|
24640
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
24651
24641
|
update: function (proxy, res) {
|
|
24652
24642
|
// Remove from cache
|
|
24653
24643
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -24689,7 +24679,7 @@
|
|
|
24689
24679
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache',
|
|
24690
24680
|
variables: variables,
|
|
24691
24681
|
error: {
|
|
24692
|
-
code: ErrorCodes
|
|
24682
|
+
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
24693
24683
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
24694
24684
|
}
|
|
24695
24685
|
})
|
|
@@ -24912,7 +24902,7 @@
|
|
|
24912
24902
|
if (this._debug)
|
|
24913
24903
|
invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
|
|
24914
24904
|
// Stop with an error
|
|
24915
|
-
throw { code: ErrorCodes
|
|
24905
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
24916
24906
|
}
|
|
24917
24907
|
this._editingRowCount = 0;
|
|
24918
24908
|
data = void 0;
|
|
@@ -25932,14 +25922,14 @@
|
|
|
25932
25922
|
case 0:
|
|
25933
25923
|
opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
|
|
25934
25924
|
if (this.readOnly) {
|
|
25935
|
-
throw { code: ErrorCodes
|
|
25925
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25936
25926
|
}
|
|
25937
25927
|
this.resetError();
|
|
25938
25928
|
// Keep edited row id (should be done BEFORE confirmEditCreate() )
|
|
25939
25929
|
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;
|
|
25940
25930
|
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;
|
|
25941
25931
|
if (!this.confirmEditCreate()) {
|
|
25942
|
-
throw { code: ErrorCodes
|
|
25932
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
25943
25933
|
}
|
|
25944
25934
|
// Mark as saving
|
|
25945
25935
|
this.markAsSaving();
|
|
@@ -26096,7 +26086,7 @@
|
|
|
26096
26086
|
switch (_e.label) {
|
|
26097
26087
|
case 0:
|
|
26098
26088
|
if (this.readOnly) {
|
|
26099
|
-
throw { code: ErrorCodes
|
|
26089
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
26100
26090
|
}
|
|
26101
26091
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
26102
26092
|
return [2 /*return*/, 0]; // SKip
|
|
@@ -27996,7 +27986,7 @@
|
|
|
27996
27986
|
case 8:
|
|
27997
27987
|
data = _c.sent();
|
|
27998
27988
|
if (!data)
|
|
27999
|
-
throw { code: ErrorCodes
|
|
27989
|
+
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
28000
27990
|
this._usageMode = this.computeUsageMode(data);
|
|
28001
27991
|
return [4 /*yield*/, this.onEntityLoaded(data, opts)];
|
|
28002
27992
|
case 9:
|
|
@@ -28788,10 +28778,10 @@
|
|
|
28788
28778
|
exports.UserEventFilter = __decorate([
|
|
28789
28779
|
EntityClass({ typename: 'UserEventVO' })
|
|
28790
28780
|
], exports.UserEventFilter);
|
|
28791
|
-
var SaveQuery = core.gql(templateObject_1$
|
|
28792
|
-
var LoadAllQuery = core.gql(templateObject_2$
|
|
28793
|
-
var DeleteByIdsMutation = core.gql(templateObject_3$
|
|
28794
|
-
var LoadAllWithContentQuery = core.gql(templateObject_4$
|
|
28781
|
+
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);
|
|
28782
|
+
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);
|
|
28783
|
+
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"])));
|
|
28784
|
+
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);
|
|
28795
28785
|
var UserEventService = /** @class */ (function (_super) {
|
|
28796
28786
|
__extends(UserEventService, _super);
|
|
28797
28787
|
function UserEventService(graphql, accountService, network, translate, toastController, environment) {
|
|
@@ -29112,7 +29102,7 @@
|
|
|
29112
29102
|
};
|
|
29113
29103
|
return UserEventService;
|
|
29114
29104
|
}(BaseGraphqlService));
|
|
29115
|
-
UserEventService.ɵprov =
|
|
29105
|
+
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" });
|
|
29116
29106
|
UserEventService.decorators = [
|
|
29117
29107
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
29118
29108
|
];
|
|
@@ -29124,7 +29114,7 @@
|
|
|
29124
29114
|
{ type: i1$5.ToastController },
|
|
29125
29115
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
29126
29116
|
]; };
|
|
29127
|
-
var templateObject_1$
|
|
29117
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
|
|
29128
29118
|
|
|
29129
29119
|
var ICONS_MAP = {
|
|
29130
29120
|
DEBUG_DATA: { matIcon: 'bug_report' },
|
|
@@ -29386,16 +29376,16 @@
|
|
|
29386
29376
|
], exports.PersonFilter);
|
|
29387
29377
|
|
|
29388
29378
|
var PersonFragments = {
|
|
29389
|
-
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 }"])))
|
|
29379
|
+
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 }"])))
|
|
29390
29380
|
};
|
|
29391
29381
|
// Load persons query
|
|
29392
29382
|
var PersonQueries = {
|
|
29393
|
-
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),
|
|
29394
|
-
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)
|
|
29383
|
+
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),
|
|
29384
|
+
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)
|
|
29395
29385
|
};
|
|
29396
29386
|
var PersonMutations = {
|
|
29397
|
-
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),
|
|
29398
|
-
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 }"])))
|
|
29387
|
+
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),
|
|
29388
|
+
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 }"])))
|
|
29399
29389
|
};
|
|
29400
29390
|
var PersonService = /** @class */ (function (_super_1) {
|
|
29401
29391
|
__extends(PersonService, _super_1);
|
|
@@ -29516,7 +29506,7 @@
|
|
|
29516
29506
|
};
|
|
29517
29507
|
return PersonService;
|
|
29518
29508
|
}(BaseEntityService));
|
|
29519
|
-
PersonService.ɵprov =
|
|
29509
|
+
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" });
|
|
29520
29510
|
PersonService.decorators = [
|
|
29521
29511
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
29522
29512
|
];
|
|
@@ -29526,7 +29516,7 @@
|
|
|
29526
29516
|
{ type: NetworkService },
|
|
29527
29517
|
{ type: EntitiesStorage }
|
|
29528
29518
|
]; };
|
|
29529
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
29519
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
|
|
29530
29520
|
|
|
29531
29521
|
var PersonValidatorService = /** @class */ (function () {
|
|
29532
29522
|
function PersonValidatorService(formBuilder, accountValidatorService) {
|
|
@@ -29549,7 +29539,7 @@
|
|
|
29549
29539
|
};
|
|
29550
29540
|
return PersonValidatorService;
|
|
29551
29541
|
}());
|
|
29552
|
-
PersonValidatorService.ɵprov =
|
|
29542
|
+
PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
|
|
29553
29543
|
PersonValidatorService.decorators = [
|
|
29554
29544
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
29555
29545
|
];
|
|
@@ -29760,16 +29750,16 @@
|
|
|
29760
29750
|
];
|
|
29761
29751
|
AdminModule.ctorParameters = function () { return []; };
|
|
29762
29752
|
|
|
29763
|
-
var ɵ0 = {
|
|
29753
|
+
var ɵ0$c = {
|
|
29764
29754
|
profile: 'ADMIN'
|
|
29765
29755
|
};
|
|
29766
|
-
var routes
|
|
29756
|
+
var routes = [
|
|
29767
29757
|
{
|
|
29768
29758
|
path: 'users',
|
|
29769
29759
|
pathMatch: 'full',
|
|
29770
29760
|
component: UsersPage,
|
|
29771
29761
|
canActivate: [AuthGuardService],
|
|
29772
|
-
data: ɵ0
|
|
29762
|
+
data: ɵ0$c
|
|
29773
29763
|
}
|
|
29774
29764
|
];
|
|
29775
29765
|
var AdminRoutingModule = /** @class */ (function () {
|
|
@@ -29782,36 +29772,36 @@
|
|
|
29782
29772
|
imports: [
|
|
29783
29773
|
SharedRoutingModule,
|
|
29784
29774
|
AdminModule,
|
|
29785
|
-
i3.RouterModule.forChild(routes
|
|
29775
|
+
i3.RouterModule.forChild(routes)
|
|
29786
29776
|
],
|
|
29787
29777
|
exports: [i3.RouterModule]
|
|
29788
29778
|
},] }
|
|
29789
29779
|
];
|
|
29790
29780
|
|
|
29791
|
-
var ErrorCodes = {
|
|
29781
|
+
var ErrorCodes$2 = {
|
|
29792
29782
|
LOAD_PERSONS_ERROR: 100,
|
|
29793
29783
|
SAVE_PERSONS_ERROR: 101,
|
|
29794
29784
|
DELETE_PERSONS_ERROR: 102,
|
|
29795
29785
|
};
|
|
29796
29786
|
|
|
29797
|
-
var EntityTestClass
|
|
29787
|
+
var EntityTestClass = /** @class */ (function () {
|
|
29798
29788
|
function EntityTestClass() {
|
|
29799
29789
|
}
|
|
29800
29790
|
return EntityTestClass;
|
|
29801
29791
|
}());
|
|
29802
|
-
var FAKE_ENTITIES
|
|
29792
|
+
var FAKE_ENTITIES = [
|
|
29803
29793
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
29804
29794
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
29805
29795
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
29806
29796
|
];
|
|
29807
|
-
function deepCopy
|
|
29797
|
+
function deepCopy(values, size) {
|
|
29808
29798
|
if (isNil(size)) {
|
|
29809
|
-
return (values || FAKE_ENTITIES
|
|
29799
|
+
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
29810
29800
|
}
|
|
29811
29801
|
var result = [];
|
|
29812
29802
|
var i = 1;
|
|
29813
29803
|
while (result.length < size) {
|
|
29814
|
-
result = result.concat((values || FAKE_ENTITIES
|
|
29804
|
+
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
29815
29805
|
var name = entity.name + ' #' + i;
|
|
29816
29806
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
29817
29807
|
}));
|
|
@@ -29821,7 +29811,7 @@
|
|
|
29821
29811
|
var AutocompleteTestPage = /** @class */ (function () {
|
|
29822
29812
|
function AutocompleteTestPage(formBuilder) {
|
|
29823
29813
|
this.formBuilder = formBuilder;
|
|
29824
|
-
this._items = deepCopy
|
|
29814
|
+
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
29825
29815
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
29826
29816
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
29827
29817
|
this.memoryHide = false;
|
|
@@ -29866,7 +29856,7 @@
|
|
|
29866
29856
|
});
|
|
29867
29857
|
// From items
|
|
29868
29858
|
this.autocompleteFields.add('entity-items-large', {
|
|
29869
|
-
items: FAKE_ENTITIES
|
|
29859
|
+
items: FAKE_ENTITIES.slice(),
|
|
29870
29860
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
29871
29861
|
displayWith: this.entityToString
|
|
29872
29862
|
});
|
|
@@ -29879,12 +29869,12 @@
|
|
|
29879
29869
|
var _this = this;
|
|
29880
29870
|
return __generator(this, function (_a) {
|
|
29881
29871
|
data = {
|
|
29882
|
-
entity: deepCopy
|
|
29872
|
+
entity: deepCopy(FAKE_ENTITIES)[0],
|
|
29883
29873
|
// This item is NOT in the items list => i should be displayed anyway
|
|
29884
29874
|
missingEntity: {
|
|
29885
29875
|
id: -1, label: '??', name: 'Missing item'
|
|
29886
29876
|
},
|
|
29887
|
-
disableEntity: deepCopy
|
|
29877
|
+
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
29888
29878
|
};
|
|
29889
29879
|
this.form.setValue(data);
|
|
29890
29880
|
// Load observables
|
|
@@ -30049,13 +30039,13 @@
|
|
|
30049
30039
|
{ type: i1.FormBuilder }
|
|
30050
30040
|
]; };
|
|
30051
30041
|
|
|
30052
|
-
var moment$
|
|
30042
|
+
var moment$5 = momentImported__namespace;
|
|
30053
30043
|
var SwipeTestPage = /** @class */ (function () {
|
|
30054
30044
|
function SwipeTestPage(formBuilder, dateFormatPipe) {
|
|
30055
30045
|
this.formBuilder = formBuilder;
|
|
30056
30046
|
this.dateFormatPipe = dateFormatPipe;
|
|
30057
30047
|
this.$dates = new rxjs.BehaviorSubject(undefined);
|
|
30058
|
-
this._today = moment$
|
|
30048
|
+
this._today = moment$5().startOf('day');
|
|
30059
30049
|
this.form = formBuilder.group({
|
|
30060
30050
|
empty: [null, i1.Validators.required],
|
|
30061
30051
|
date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
|
|
@@ -30069,7 +30059,7 @@
|
|
|
30069
30059
|
var _this = this;
|
|
30070
30060
|
var dates = [];
|
|
30071
30061
|
for (var d = 0; d < 7; d++) {
|
|
30072
|
-
dates[d] = moment$
|
|
30062
|
+
dates[d] = moment$5(this._today).add(d - 3, 'day');
|
|
30073
30063
|
}
|
|
30074
30064
|
this.$dates.next(dates);
|
|
30075
30065
|
this.loadData();
|
|
@@ -30116,7 +30106,7 @@
|
|
|
30116
30106
|
{ type: DateFormatPipe }
|
|
30117
30107
|
]; };
|
|
30118
30108
|
|
|
30119
|
-
var moment$
|
|
30109
|
+
var moment$6 = momentImported__namespace;
|
|
30120
30110
|
var DateTimeTestPage = /** @class */ (function () {
|
|
30121
30111
|
function DateTimeTestPage(platform, formBuilder, cd) {
|
|
30122
30112
|
this.platform = platform;
|
|
@@ -30152,7 +30142,7 @@
|
|
|
30152
30142
|
var now, data;
|
|
30153
30143
|
var _this = this;
|
|
30154
30144
|
return __generator(this, function (_a) {
|
|
30155
|
-
now = moment$
|
|
30145
|
+
now = moment$6();
|
|
30156
30146
|
data = {
|
|
30157
30147
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
30158
30148
|
enable: toDateISOString(now),
|
|
@@ -30217,12 +30207,12 @@
|
|
|
30217
30207
|
{ type: i0.ChangeDetectorRef }
|
|
30218
30208
|
]; };
|
|
30219
30209
|
|
|
30220
|
-
var EntityTestClass = /** @class */ (function () {
|
|
30210
|
+
var EntityTestClass$1 = /** @class */ (function () {
|
|
30221
30211
|
function EntityTestClass() {
|
|
30222
30212
|
}
|
|
30223
30213
|
return EntityTestClass;
|
|
30224
30214
|
}());
|
|
30225
|
-
var FAKE_ENTITIES = [
|
|
30215
|
+
var FAKE_ENTITIES$1 = [
|
|
30226
30216
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
30227
30217
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
30228
30218
|
{ id: 3, label: 'CCC', name: 'Item C' },
|
|
@@ -30231,14 +30221,14 @@
|
|
|
30231
30221
|
{ id: 6, label: 'FFF', name: 'Item F' },
|
|
30232
30222
|
{ id: 7, label: 'GGG', name: 'Item G' }
|
|
30233
30223
|
];
|
|
30234
|
-
function deepCopy(values, size) {
|
|
30224
|
+
function deepCopy$1(values, size) {
|
|
30235
30225
|
if (isNil(size)) {
|
|
30236
|
-
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
30226
|
+
return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
|
|
30237
30227
|
}
|
|
30238
30228
|
var result = [];
|
|
30239
30229
|
var i = 1;
|
|
30240
30230
|
while (result.length < size) {
|
|
30241
|
-
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
30231
|
+
result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
|
|
30242
30232
|
var name = entity.name + ' #' + i;
|
|
30243
30233
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
30244
30234
|
}));
|
|
@@ -30248,7 +30238,7 @@
|
|
|
30248
30238
|
var ChipsTestPage = /** @class */ (function () {
|
|
30249
30239
|
function ChipsTestPage(formBuilder) {
|
|
30250
30240
|
this.formBuilder = formBuilder;
|
|
30251
|
-
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
30241
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
|
|
30252
30242
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
30253
30243
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
30254
30244
|
this.form = formBuilder.group({
|
|
@@ -30291,7 +30281,7 @@
|
|
|
30291
30281
|
var items, data;
|
|
30292
30282
|
var _this = this;
|
|
30293
30283
|
return __generator(this, function (_a) {
|
|
30294
|
-
items = deepCopy(FAKE_ENTITIES);
|
|
30284
|
+
items = deepCopy$1(FAKE_ENTITIES$1);
|
|
30295
30285
|
data = {
|
|
30296
30286
|
entity: items.slice(0, 1),
|
|
30297
30287
|
entityInitial: items.slice(1, 2),
|
|
@@ -30428,7 +30418,7 @@
|
|
|
30428
30418
|
{ type: i1.FormBuilder }
|
|
30429
30419
|
]; };
|
|
30430
30420
|
|
|
30431
|
-
var moment = momentImported__namespace;
|
|
30421
|
+
var moment$7 = momentImported__namespace;
|
|
30432
30422
|
var DateTestPage = /** @class */ (function () {
|
|
30433
30423
|
function DateTestPage(platform, formBuilder, cd) {
|
|
30434
30424
|
this.platform = platform;
|
|
@@ -30466,7 +30456,7 @@
|
|
|
30466
30456
|
var now, nowAtMahe, data;
|
|
30467
30457
|
var _this = this;
|
|
30468
30458
|
return __generator(this, function (_a) {
|
|
30469
|
-
now = moment();
|
|
30459
|
+
now = moment$7();
|
|
30470
30460
|
nowAtMahe = now.clone().tz(this.timezone).startOf('day');
|
|
30471
30461
|
data = {
|
|
30472
30462
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
@@ -30548,7 +30538,7 @@
|
|
|
30548
30538
|
{ label: 'Shared directives', divider: true },
|
|
30549
30539
|
{ label: 'Badge icon directive', page: '/testing/shared/badge-icon' }
|
|
30550
30540
|
];
|
|
30551
|
-
var routes$
|
|
30541
|
+
var routes$1 = [
|
|
30552
30542
|
{
|
|
30553
30543
|
path: '',
|
|
30554
30544
|
pathMatch: 'full',
|
|
@@ -30608,7 +30598,7 @@
|
|
|
30608
30598
|
i1.ReactiveFormsModule,
|
|
30609
30599
|
SharedMaterialModule,
|
|
30610
30600
|
i1$2.TranslateModule.forChild(),
|
|
30611
|
-
i3.RouterModule.forChild(routes$
|
|
30601
|
+
i3.RouterModule.forChild(routes$1)
|
|
30612
30602
|
],
|
|
30613
30603
|
declarations: [
|
|
30614
30604
|
DateTimeTestPage,
|
|
@@ -30670,7 +30660,7 @@
|
|
|
30670
30660
|
{ type: i1$2.TranslateService }
|
|
30671
30661
|
]; };
|
|
30672
30662
|
|
|
30673
|
-
var routes$
|
|
30663
|
+
var routes$2 = [
|
|
30674
30664
|
{
|
|
30675
30665
|
path: 'toast',
|
|
30676
30666
|
pathMatch: 'full',
|
|
@@ -30688,7 +30678,7 @@
|
|
|
30688
30678
|
i1$4.CommonModule,
|
|
30689
30679
|
i1$5.IonicModule,
|
|
30690
30680
|
i1$2.TranslateModule.forChild(),
|
|
30691
|
-
i3.RouterModule.forChild(routes$
|
|
30681
|
+
i3.RouterModule.forChild(routes$2)
|
|
30692
30682
|
],
|
|
30693
30683
|
declarations: [
|
|
30694
30684
|
ToastTestingPage
|
|
@@ -30768,7 +30758,7 @@
|
|
|
30768
30758
|
{ type: i1$5.PopoverController }
|
|
30769
30759
|
]; };
|
|
30770
30760
|
|
|
30771
|
-
var routes$
|
|
30761
|
+
var routes$3 = [
|
|
30772
30762
|
{
|
|
30773
30763
|
path: 'upload-file',
|
|
30774
30764
|
pathMatch: 'full',
|
|
@@ -30786,7 +30776,7 @@
|
|
|
30786
30776
|
i1$4.CommonModule,
|
|
30787
30777
|
i1$5.IonicModule,
|
|
30788
30778
|
i1$2.TranslateModule.forChild(),
|
|
30789
|
-
i3.RouterModule.forChild(routes$
|
|
30779
|
+
i3.RouterModule.forChild(routes$3)
|
|
30790
30780
|
],
|
|
30791
30781
|
declarations: [
|
|
30792
30782
|
UploadFileTestingPage
|
|
@@ -31210,7 +31200,7 @@
|
|
|
31210
31200
|
{ type: i1$5.PopoverController }
|
|
31211
31201
|
]; };
|
|
31212
31202
|
|
|
31213
|
-
var routes$
|
|
31203
|
+
var routes$4 = [
|
|
31214
31204
|
{
|
|
31215
31205
|
path: 'text-popover',
|
|
31216
31206
|
pathMatch: 'full',
|
|
@@ -31228,7 +31218,7 @@
|
|
|
31228
31218
|
i1$4.CommonModule,
|
|
31229
31219
|
i1$5.IonicModule,
|
|
31230
31220
|
i1$2.TranslateModule.forChild(),
|
|
31231
|
-
i3.RouterModule.forChild(routes$
|
|
31221
|
+
i3.RouterModule.forChild(routes$4)
|
|
31232
31222
|
],
|
|
31233
31223
|
declarations: [
|
|
31234
31224
|
TextPopoverTestingPage
|
|
@@ -31245,7 +31235,7 @@
|
|
|
31245
31235
|
{ label: 'Table', page: '/testing/core/table' },
|
|
31246
31236
|
{ label: 'Text popover', page: '/testing/core/text-popover' }
|
|
31247
31237
|
];
|
|
31248
|
-
var routes = [
|
|
31238
|
+
var routes$5 = [
|
|
31249
31239
|
{
|
|
31250
31240
|
path: '',
|
|
31251
31241
|
pathMatch: 'full',
|
|
@@ -31272,7 +31262,7 @@
|
|
|
31272
31262
|
imports: [
|
|
31273
31263
|
i1$4.CommonModule,
|
|
31274
31264
|
i1$2.TranslateModule.forChild(),
|
|
31275
|
-
i3.RouterModule.forChild(routes),
|
|
31265
|
+
i3.RouterModule.forChild(routes$5),
|
|
31276
31266
|
// Sub modules
|
|
31277
31267
|
TableTestingModule,
|
|
31278
31268
|
TextPopoverTestingModule
|
|
@@ -31395,7 +31385,7 @@
|
|
|
31395
31385
|
exports.EntityStore = EntityStore;
|
|
31396
31386
|
exports.EntityUtils = EntityUtils;
|
|
31397
31387
|
exports.Environment = Environment;
|
|
31398
|
-
exports.ErrorCodes = ErrorCodes;
|
|
31388
|
+
exports.ErrorCodes = ErrorCodes$2;
|
|
31399
31389
|
exports.EvenPipe = EvenPipe;
|
|
31400
31390
|
exports.FileResponse = FileResponse;
|
|
31401
31391
|
exports.FileService = FileService;
|
|
@@ -31411,7 +31401,7 @@
|
|
|
31411
31401
|
exports.FormGetControlPipe = FormGetControlPipe;
|
|
31412
31402
|
exports.FormGetGroupPipe = FormGetGroupPipe;
|
|
31413
31403
|
exports.FormGetPipe = FormGetPipe;
|
|
31414
|
-
exports.Fragments = Fragments;
|
|
31404
|
+
exports.Fragments = Fragments$1;
|
|
31415
31405
|
exports.GraphqlService = GraphqlService;
|
|
31416
31406
|
exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
|
|
31417
31407
|
exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
|
|
@@ -31692,23 +31682,23 @@
|
|
|
31692
31682
|
exports.waitForTrue = waitForTrue;
|
|
31693
31683
|
exports.waitIdle = waitIdle;
|
|
31694
31684
|
exports.waitWhilePending = waitWhilePending;
|
|
31695
|
-
exports
|
|
31696
|
-
exports
|
|
31697
|
-
exports
|
|
31698
|
-
exports
|
|
31699
|
-
exports
|
|
31700
|
-
exports
|
|
31701
|
-
exports
|
|
31702
|
-
exports
|
|
31703
|
-
exports
|
|
31704
|
-
exports
|
|
31705
|
-
exports
|
|
31706
|
-
exports
|
|
31707
|
-
exports
|
|
31708
|
-
exports
|
|
31709
|
-
exports
|
|
31685
|
+
exports.ɵ0 = ɵ0$1;
|
|
31686
|
+
exports.ɵa = CustomReuseStrategy;
|
|
31687
|
+
exports.ɵb = MatNumpadDomService;
|
|
31688
|
+
exports.ɵc = isFocusableElement;
|
|
31689
|
+
exports.ɵd = RegisterForm;
|
|
31690
|
+
exports.ɵe = AccountValidatorService;
|
|
31691
|
+
exports.ɵf = RegisterModal;
|
|
31692
|
+
exports.ɵg = UserSettingsValidatorService;
|
|
31693
|
+
exports.ɵh = LocalSettingsValidatorService;
|
|
31694
|
+
exports.ɵi = AppIconComponent;
|
|
31695
|
+
exports.ɵj = DateTestPage;
|
|
31696
|
+
exports.ɵk = NumpadTestPage;
|
|
31697
|
+
exports.ɵl = MatBadgeIconTestPage;
|
|
31698
|
+
exports.ɵm = ToastTestingModule;
|
|
31699
|
+
exports.ɵn = ToastTestingPage;
|
|
31710
31700
|
|
|
31711
31701
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
31712
31702
|
|
|
31713
|
-
}));
|
|
31703
|
+
})));
|
|
31714
31704
|
//# sourceMappingURL=sumaris-net.ngx-components.umd.js.map
|