@sumaris-net/ngx-components 1.16.1 → 1.17.0

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.
@@ -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["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';
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 () { return e[k]; }
18
+ get: function () {
19
+ return e[k];
20
+ }
19
21
  });
20
22
  }
21
23
  });
22
24
  }
23
- n["default"] = e;
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$8 = function (_) { };
1284
- var ɵ0$c = noop$8;
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$8;
1290
- this._onTouchedCallback = noop$8;
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 = i0__namespace.ɵɵdefineInjectable({ factory: function DateFormatPipe_Factory() { return new DateFormatPipe(i0__namespace.ɵɵinject(i1__namespace.MomentDateAdapter), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: DateFormatPipe, providedIn: "root" });
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$7 = momentImported__namespace;
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$7.duration(endDate.diff(startDate));
2089
+ var duration = moment.duration(endDate.diff(startDate));
2113
2090
  if (duration.asMinutes() < 0)
2114
2091
  return '';
2115
- var timeDuration = moment$7(0)
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 = i0__namespace.ɵɵdefineInjectable({ factory: function DateDiffDurationPipe_Factory() { return new DateDiffDurationPipe(i0__namespace.ɵɵinject(i1__namespace$2.DateAdapter), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: DateDiffDurationPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0__namespace.ɵɵinject(i1__namespace.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
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$1(value, opts.maxDecimals).toString();
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$1(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
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$1((value - degrees) * 60, opts.maxDecimals);
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$1(degrees, maxDecimals);
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$1(degrees, maxDecimals);
2367
+ return roundFloat(degrees, maxDecimals);
2391
2368
  }
2392
- function roundFloat$1(input, maxDecimals) {
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 = i0__namespace.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
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$6 = momentImported__namespace;
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$6(value, DATE_ISO_PATTERN);
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$6(value, DATE_UNIX_TIMESTAMP);
2637
+ return moment$1(value, DATE_UNIX_TIMESTAMP);
2661
2638
  }
2662
2639
  else if (value.length === 13) {
2663
- return moment$6(value, DATE_UNIX_MS_TIMESTAMP);
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$6(timeInSec, DATE_UNIX_TIMESTAMP);
2647
+ return moment$1(timeInSec, DATE_UNIX_TIMESTAMP);
2671
2648
  }
2672
2649
  function fromUnixMsTimestamp(timeInMs) {
2673
- return moment$6(timeInMs, DATE_UNIX_MS_TIMESTAMP);
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$6.duration(value, unit);
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 = i0__namespace.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: DurationPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function StrIncludesPipe_Factory() { return new StrIncludesPipe(); }, token: StrIncludesPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
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$5 = momentImported__namespace;
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$5.isMoment(value) ? value : moment$5(control.value, DATE_ISO_PATTERN);
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 = i0__namespace.ɵɵdefineInjectable({ factory: function FormErrorTranslator_Factory() { return new FormErrorTranslator(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(APP_FORM_ERROR_I18N_KEYS, 8)); }, token: FormErrorTranslator, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function FormGetPipe_Factory() { return new FormGetPipe(); }, token: FormGetPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function FormGetControlPipe_Factory() { return new FormGetControlPipe(); }, token: FormGetControlPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function FormGetArrayPipe_Factory() { return new FormGetArrayPipe(); }, token: FormGetArrayPipe, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function FormGetGroupPipe_Factory() { return new FormGetGroupPipe(); }, token: FormGetGroupPipe, providedIn: "root" });
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$b = isIpad;
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$7 = function () {
4973
+ var noop$1 = function () {
4997
4974
  };
4998
- var ɵ0$a = noop$7;
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$7;
5007
- this._onTouchedCallback = noop$7;
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$5 = {
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$2 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
5365
- var noop$6 = function () { };
5366
- var ɵ0$9 = noop$6;
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$6;
5377
- this._onTouchedCallback = noop$6;
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$2;
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$5,
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$4 = {
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$1 = [/[012]/, /\d/, ':', /[012345]/, /\d/];
5748
- var noop$5 = function () { };
5749
- var ɵ0$8 = noop$5;
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$5;
5760
- this._onTouchedCallback = noop$5;
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$1;
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$4,
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$3 = {
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$7 = noop$4;
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$3,
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$2 = {
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$3 = function () {
6511
+ var HOUR_MASK$1 = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
6512
+ var noop$5 = function () {
6536
6513
  };
6537
- var ɵ0$6 = noop$3;
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$3;
6547
- this._onTouchedCallback = noop$3;
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$2,
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$1 = {
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$2 = function () {
6785
+ var noop$6 = function () {
6809
6786
  };
6810
- var ɵ0$5 = noop$2;
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$2;
6818
- this._onTouchedCallback = noop$2;
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>&nbsp;\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>&nbsp;</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$1
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 = i0__namespace.ɵɵdefineInjectable({ factory: function MatNumpadDomService_Factory() { return new MatNumpadDomService(i0__namespace.ɵɵinject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵinject(i0__namespace.ApplicationRef), i0__namespace.ɵɵinject(i0__namespace.INJECTOR), i0__namespace.ɵɵinject(i1__namespace$3.DOCUMENT, 8)); }, token: MatNumpadDomService, providedIn: "root" });
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$1 = function () { };
8036
- var ɵ0$4 = noop$1;
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$1;
8042
- this._onTouchedCallback = noop$1;
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 = i0__namespace.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
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 = i0__namespace.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
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$3 = noop;
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 = i0__namespace.ɵɵdefineInjectable({ factory: function AudioProvider_Factory() { return new AudioProvider(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i2__namespace.NativeAudio, 8), i0__namespace.ɵɵinject(i3__namespace.Vibration, 8), i0__namespace.ɵɵinject(i4__namespace.AudioManagement, 8)); }, token: AudioProvider, providedIn: "root" });
9960
+ AudioProvider.ɵprov = i0.ɵɵdefineInjectable({ factory: function AudioProvider_Factory() { return new AudioProvider(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$2.NativeAudio, 8), i0.ɵɵinject(i3$1.Vibration, 8), i0.ɵɵinject(i4.AudioManagement, 8)); }, token: AudioProvider, providedIn: "root" });
9985
9961
  AudioProvider.decorators = [
9986
9962
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
9987
9963
  ];
@@ -10081,7 +10057,7 @@
10081
10057
  };
10082
10058
  return Hotkeys;
10083
10059
  }());
10084
- Hotkeys.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function Hotkeys_Factory() { return new Hotkeys(i0__namespace.ɵɵinject(i1__namespace$5.EventManager), i0__namespace.ɵɵinject(i2__namespace$1.MatDialog), i0__namespace.ɵɵinject(i1__namespace$3.DOCUMENT), i0__namespace.ɵɵinject(i1__namespace$4.ModalController)); }, token: Hotkeys, providedIn: "root" });
10060
+ Hotkeys.ɵprov = i0.ɵɵdefineInjectable({ factory: function Hotkeys_Factory() { return new Hotkeys(i0.ɵɵinject(i1$6.EventManager), i0.ɵɵinject(i2.MatDialog), i0.ɵɵinject(i1$4.DOCUMENT), i0.ɵɵinject(i1$5.ModalController)); }, token: Hotkeys, providedIn: "root" });
10085
10061
  Hotkeys.decorators = [
10086
10062
  { type: i0.Injectable, args: [{
10087
10063
  providedIn: 'root'
@@ -10285,7 +10261,7 @@
10285
10261
  return Base64ImageReader;
10286
10262
  }());
10287
10263
 
10288
- var uuidv4$1 = uuidv4Imported__namespace;
10264
+ var uuidv4 = uuidv4Imported__namespace;
10289
10265
  var FileService = /** @class */ (function () {
10290
10266
  function FileService(platform,
10291
10267
  //private transfer: FileTransfer,
@@ -10331,7 +10307,7 @@
10331
10307
  lastSlashIndex = source.lastIndexOf('/');
10332
10308
  if (lastSlashIndex === -1)
10333
10309
  throw new Error('Invalid URL: ' + source);
10334
- fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4$1();
10310
+ fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
10335
10311
  if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
10336
10312
  console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
10337
10313
  targetFilePath = this._imageDirectory + fileName;
@@ -10394,7 +10370,7 @@
10394
10370
  };
10395
10371
  return FileService;
10396
10372
  }());
10397
- FileService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i2__namespace$2.HttpClient), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: FileService, providedIn: "root" });
10373
+ FileService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(ENVIRONMENT)); }, token: FileService, providedIn: "root" });
10398
10374
  FileService.decorators = [
10399
10375
  { type: i0.Injectable, args: [{
10400
10376
  providedIn: 'root',
@@ -10561,7 +10537,7 @@
10561
10537
  Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
10562
10538
 
10563
10539
  var scrypt = require('scrypt-async');
10564
- var sha256$1 = require('hash.js/lib/hash/sha/256');
10540
+ var sha256 = require('hash.js/lib/hash/sha/256');
10565
10541
  var sha512 = require('hash.js/lib/hash/sha/512');
10566
10542
  var nacl = {
10567
10543
  sign: tweetnacl.sign,
@@ -10667,7 +10643,7 @@
10667
10643
  * Hash (using SHA256) a message
10668
10644
  */
10669
10645
  CryptoService.prototype.sha256 = function (message) {
10670
- return sha256$1().update(message).digest('hex');
10646
+ return sha256().update(message).digest('hex');
10671
10647
  };
10672
10648
  /**
10673
10649
  * Hash (using SHA512) a message
@@ -10681,7 +10657,7 @@
10681
10657
  };
10682
10658
  return CryptoService;
10683
10659
  }());
10684
- CryptoService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
10660
+ CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
10685
10661
  CryptoService.decorators = [
10686
10662
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
10687
10663
  ];
@@ -11651,7 +11627,7 @@
11651
11627
  onRefresh: [{ type: i0.Input }]
11652
11628
  };
11653
11629
 
11654
- var moment$4 = momentImported__namespace;
11630
+ var moment$3 = momentImported__namespace;
11655
11631
  var SETTINGS_STORAGE_KEY = 'settings';
11656
11632
  var SETTINGS_TRANSIENT_PROPERTIES = ['mobile', 'touchUi' /*deprecated*/];
11657
11633
  // fixme: this constant points to static environment
@@ -11953,11 +11929,11 @@
11953
11929
  if (!feature) {
11954
11930
  feature = {
11955
11931
  name: featureName.toLowerCase(),
11956
- lastSyncDate: moment$4().toISOString()
11932
+ lastSyncDate: moment$3().toISOString()
11957
11933
  };
11958
11934
  }
11959
11935
  else {
11960
- feature.lastSyncDate = moment$4().toISOString();
11936
+ feature.lastSyncDate = moment$3().toISOString();
11961
11937
  }
11962
11938
  this.saveOfflineFeature(feature);
11963
11939
  };
@@ -12151,7 +12127,7 @@
12151
12127
  if (!page || !page.title || !page.path)
12152
12128
  throw Error('Missing required argument \'page\', \'page.path\' or \'page.title\'');
12153
12129
  // Set time
12154
- page.time = page.time || moment$4();
12130
+ page.time = page.time || moment$3();
12155
12131
  // Clean the title (remove <small> tags)
12156
12132
  if (!opts || opts.removeTitleSmallTag !== false) {
12157
12133
  var tagIndex = page.title.indexOf('</small>');
@@ -12168,7 +12144,7 @@
12168
12144
  };
12169
12145
  return LocalSettingsService;
12170
12146
  }(StartableService));
12171
- LocalSettingsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LocalSettingsService_Factory() { return new LocalSettingsService(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(APP_LOCAL_SETTINGS, 8), i0__namespace.ɵɵinject(APP_LOCAL_SETTINGS_OPTIONS, 8)); }, token: LocalSettingsService, providedIn: "root" });
12147
+ LocalSettingsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsService_Factory() { return new LocalSettingsService(i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_LOCAL_SETTINGS, 8), i0.ɵɵinject(APP_LOCAL_SETTINGS_OPTIONS, 8)); }, token: LocalSettingsService, providedIn: "root" });
12172
12148
  LocalSettingsService.decorators = [
12173
12149
  { type: i0.Injectable, args: [{
12174
12150
  providedIn: 'root',
@@ -13049,7 +13025,7 @@
13049
13025
  };
13050
13026
  return NetworkService;
13051
13027
  }(StartableService));
13052
- NetworkService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function NetworkService_Factory() { return new NetworkService(i0__namespace.ɵɵinject(i1__namespace$3.DOCUMENT), i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i1__namespace$4.ModalController), i0__namespace.ɵɵinject(CryptoService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(LocalSettingsService), i0__namespace.ɵɵinject(i6__namespace.CacheService), i0__namespace.ɵɵinject(i2__namespace$2.HttpClient), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(i9__namespace.Network, 8), i0__namespace.ɵɵinject(i10__namespace.SplashScreen, 8), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService, 8), i0__namespace.ɵɵinject(i1__namespace$4.ToastController, 8)); }, token: NetworkService, providedIn: "root" });
13028
+ NetworkService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NetworkService_Factory() { return new NetworkService(i0.ɵɵinject(i1$4.DOCUMENT), i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i1$5.ModalController), i0.ɵɵinject(CryptoService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(i6.CacheService), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(i9.Network, 8), i0.ɵɵinject(i10.SplashScreen, 8), i0.ɵɵinject(i1$2.TranslateService, 8), i0.ɵɵinject(i1$5.ToastController, 8)); }, token: NetworkService, providedIn: "root" });
13053
13029
  NetworkService.decorators = [
13054
13030
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
13055
13031
  ];
@@ -13069,7 +13045,7 @@
13069
13045
  { type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
13070
13046
  ]; };
13071
13047
 
13072
- var ErrorCodes$2 = {
13048
+ var ErrorCodes = {
13073
13049
  UNKNOWN_ERROR: 0,
13074
13050
  LOAD_ACCOUNT_ERROR: 1,
13075
13051
  BAD_PASSWORD: 2,
@@ -13486,7 +13462,7 @@
13486
13462
  case 13:
13487
13463
  err_1 = _b.sent();
13488
13464
  console.error(err_1);
13489
- throw { code: ErrorCodes$2.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
13465
+ throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
13490
13466
  case 14:
13491
13467
  // Emit update event
13492
13468
  if (!opts || opts.emitEvent !== false) {
@@ -14263,7 +14239,7 @@
14263
14239
  }(StartableService));
14264
14240
  EntitiesStorage.TRASH_PREFIX = 'Trash#';
14265
14241
  EntitiesStorage.REMOTE_PREFIX = 'Remote#';
14266
- EntitiesStorage.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EntitiesStorage_Factory() { return new EntitiesStorage(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(ProgressBarService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(APP_LOCAL_STORAGE_TYPE_POLICIES, 8)); }, token: EntitiesStorage, providedIn: "root" });
14242
+ EntitiesStorage.ɵprov = i0.ɵɵdefineInjectable({ factory: function EntitiesStorage_Factory() { return new EntitiesStorage(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(ProgressBarService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_LOCAL_STORAGE_TYPE_POLICIES, 8)); }, token: EntitiesStorage, providedIn: "root" });
14267
14243
  EntitiesStorage.decorators = [
14268
14244
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
14269
14245
  ];
@@ -14419,10 +14395,10 @@
14419
14395
  function referentialsToString(values, properties, separator) {
14420
14396
  return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
14421
14397
  }
14422
- var ɵ0$2 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
14398
+ var ɵ0$a = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
14423
14399
  var StatusList = Object.freeze([
14424
14400
  {
14425
- id: ɵ0$2,
14401
+ id: ɵ0$a,
14426
14402
  icon: 'checkmark',
14427
14403
  label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
14428
14404
  },
@@ -14725,7 +14701,7 @@
14725
14701
  (data.lastName || '')) || '';
14726
14702
  }
14727
14703
 
14728
- var uuidv4 = uuidv4Imported__namespace;
14704
+ var uuidv4$1 = uuidv4Imported__namespace;
14729
14705
  var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
14730
14706
  var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
14731
14707
  /**
@@ -14769,7 +14745,7 @@
14769
14745
  // Skip if not tracked
14770
14746
  if (!context || !context.tracked)
14771
14747
  return forward(operation);
14772
- var id = context.serializationKey || uuidv4();
14748
+ var id = context.serializationKey || uuidv4$1();
14773
14749
  console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
14774
14750
  // Clean context, before calling JSON.stringify (remove unused attributes)
14775
14751
  var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
@@ -15400,14 +15376,14 @@
15400
15376
  mutationLinks = void 0;
15401
15377
  // Add queue to store tracked queries, when offline
15402
15378
  if (enableTrackMutationQueries) {
15403
- serializingLink = new SerializingLink__default["default"]();
15379
+ serializingLink = new SerializingLink__default['default']();
15404
15380
  trackerLink = createTrackerLink({
15405
15381
  storage: storage,
15406
15382
  onNetworkStatusChange: this._networkStatusChanged$,
15407
15383
  debounce: 1000,
15408
15384
  debug: true
15409
15385
  });
15410
- queueLink_1 = new QueueLink__default["default"]();
15386
+ queueLink_1 = new QueueLink__default['default']();
15411
15387
  this.registerSubscription(this._networkStatusChanged$
15412
15388
  .subscribe(function (type) {
15413
15389
  // Network is offline: start buffering into queue
@@ -15422,7 +15398,7 @@
15422
15398
  }
15423
15399
  }));
15424
15400
  mutationLinks = [
15425
- loggerLink__default["default"],
15401
+ loggerLink__default['default'],
15426
15402
  queueLink_1,
15427
15403
  trackerLink,
15428
15404
  queueLink_1,
@@ -15529,7 +15505,7 @@
15529
15505
  (err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
15530
15506
  || this.toAppError(err.networkError)
15531
15507
  || (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
15532
- || this.createAppErrorByCode(ErrorCodes$2.UNKNOWN_NETWORK_ERROR)))
15508
+ || this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
15533
15509
  // If graphQL: try to convert the first error found
15534
15510
  || (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
15535
15511
  || this.toAppError(err)
@@ -15537,7 +15513,7 @@
15537
15513
  || (err.graphQLErrors && err.graphQLErrors[0])
15538
15514
  || err;
15539
15515
  console.error('[graphql] ' + (error && error.message || error), error.stack || '');
15540
- if (error && error.code === ErrorCodes$2.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
15516
+ if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
15541
15517
  console.error('[graphql] original error: ' + err.networkError.message);
15542
15518
  this.onNetworkError.next(error);
15543
15519
  }
@@ -15548,7 +15524,7 @@
15548
15524
  data: null,
15549
15525
  errors: [error],
15550
15526
  loading: false,
15551
- networkStatus: null
15527
+ networkStatus: core.NetworkStatus.error
15552
15528
  };
15553
15529
  };
15554
15530
  GraphqlService.prototype.createAppErrorByCode = function (errorCode) {
@@ -15573,7 +15549,7 @@
15573
15549
  return 'ERROR.UNAUTHORIZED';
15574
15550
  case ServerErrorCodes.FORBIDDEN:
15575
15551
  return 'ERROR.FORBIDDEN';
15576
- case ErrorCodes$2.UNKNOWN_NETWORK_ERROR:
15552
+ case ErrorCodes.UNKNOWN_NETWORK_ERROR:
15577
15553
  return 'ERROR.UNKNOWN_NETWORK_ERROR';
15578
15554
  case ServerErrorCodes.BAD_UPDATE_DATE:
15579
15555
  return 'ERROR.BAD_UPDATE_DATE';
@@ -15605,7 +15581,7 @@
15605
15581
  };
15606
15582
  return GraphqlService;
15607
15583
  }(StartableService));
15608
- GraphqlService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function GraphqlService_Factory() { return new GraphqlService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i2__namespace$3.Apollo), i0__namespace.ɵɵinject(i3__namespace$2.HttpLink), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(CryptoService), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(APP_GRAPHQL_TYPE_POLICIES, 8)); }, token: GraphqlService, providedIn: "root" });
15584
+ GraphqlService.ɵprov = i0.ɵɵdefineInjectable({ factory: function GraphqlService_Factory() { return new GraphqlService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$3.Apollo), i0.ɵɵinject(i3$3.HttpLink), i0.ɵɵinject(NetworkService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(CryptoService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_GRAPHQL_TYPE_POLICIES, 8)); }, token: GraphqlService, providedIn: "root" });
15609
15585
  GraphqlService.decorators = [
15610
15586
  { type: i0.Injectable, args: [{
15611
15587
  providedIn: 'root'
@@ -15622,7 +15598,7 @@
15622
15598
  { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
15623
15599
  ]; };
15624
15600
 
15625
- var sha256 = require('hash.js/lib/hash/sha/256');
15601
+ var sha256$1 = require('hash.js/lib/hash/sha/256');
15626
15602
  var BaseGraphqlServiceOptions = /** @class */ (function () {
15627
15603
  function BaseGraphqlServiceOptions() {
15628
15604
  }
@@ -15792,8 +15768,8 @@
15792
15768
  };
15793
15769
  /* -- protected methods -- */
15794
15770
  BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
15795
- var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
15796
- var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
15771
+ var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
15772
+ var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
15797
15773
  return [queryName, opts.arrayFieldName, variablesKey].join('|');
15798
15774
  };
15799
15775
  BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
@@ -15866,19 +15842,19 @@
15866
15842
  /* ------------------------------------
15867
15843
  * GraphQL queries
15868
15844
  * ------------------------------------*/
15869
- var Fragments$1 = {
15870
- account: core.gql(templateObject_1$4 || (templateObject_1$4 = __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 }"]))),
15871
- settings: core.gql(templateObject_2$4 || (templateObject_2$4 = __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 }"])))
15845
+ var Fragments = {
15846
+ account: core.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n ...UserSettingsFragment\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }"], ["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n ...UserSettingsFragment\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }"]))),
15847
+ settings: core.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["fragment UserSettingsFragment on UserSettingsVO {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }"], ["fragment UserSettingsFragment on UserSettingsVO {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }"])))
15872
15848
  };
15873
15849
  // Load account query
15874
- var LoadQuery$1 = core.gql(templateObject_3$3 || (templateObject_3$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$1.account, Fragments$1.settings);
15850
+ var LoadQuery = core.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n ", "\n"], ["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n ", "\n"])), Fragments.account, Fragments.settings);
15875
15851
  // Check email query
15876
- var IsEmailExistsQuery = core.gql(templateObject_4$3 || (templateObject_4$3 = __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"])));
15852
+ var IsEmailExistsQuery = core.gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"], ["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"])));
15877
15853
  // Save (create or update) account mutation
15878
15854
  var AccountMutations = {
15879
- save: core.gql(templateObject_5$2 || (templateObject_5$2 = __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$1.account, Fragments$1.settings),
15880
- 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$1.account, Fragments$1.settings),
15881
- 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$1.settings)
15855
+ save: core.gql(templateObject_5 || (templateObject_5 = __makeTemplateObject([" mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""], [" mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""])), Fragments.account, Fragments.settings),
15856
+ create: core.gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""], ["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""])), Fragments.account, Fragments.settings),
15857
+ saveSettings: core.gql(templateObject_7 || (templateObject_7 = __makeTemplateObject(["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""], ["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""])), Fragments.settings)
15882
15858
  };
15883
15859
  // Sent confirmation email
15884
15860
  var SendConfirmEmailMutation = core.gql(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n mutation sendAccountConfirmationEmail($email:String, $locale:String){\n sendAccountConfirmationEmail(email: $email, locale: $locale)\n }\n"], ["\n mutation sendAccountConfirmationEmail($email:String, $locale:String){\n sendAccountConfirmationEmail(email: $email, locale: $locale)\n }\n"])));
@@ -16246,7 +16222,7 @@
16246
16222
  error_3 = _b.sent();
16247
16223
  console.error(error_3);
16248
16224
  this.resetData();
16249
- throw { code: ErrorCodes$2.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
16225
+ throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
16250
16226
  case 4:
16251
16227
  // Store pubkey+keypair
16252
16228
  this._cache.pubkey = Base58.encode(keypair.publicKey);
@@ -16282,7 +16258,7 @@
16282
16258
  return [3 /*break*/, 18];
16283
16259
  case 11:
16284
16260
  err_1 = _b.sent();
16285
- if (!(err_1 && +(err_1.code) === ErrorCodes$2.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
16261
+ if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
16286
16262
  if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
16287
16263
  isEmailExists = void 0;
16288
16264
  _b.label = 12;
@@ -16298,12 +16274,12 @@
16298
16274
  case 15:
16299
16275
  // Email not exists (no account)
16300
16276
  if (!isEmailExists) {
16301
- throw { code: ErrorCodes$2.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
16277
+ throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
16302
16278
  }
16303
16279
  _b.label = 16;
16304
16280
  case 16:
16305
16281
  // Email exists, so error = 'bad password'
16306
- throw { code: ErrorCodes$2.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
16282
+ throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
16307
16283
  case 17: throw err_1; // resend the first error
16308
16284
  case 18:
16309
16285
  _b.trys.push([18, 20, , 21]);
@@ -16499,8 +16475,8 @@
16499
16475
  _b.label = 3;
16500
16476
  case 3: return [3 /*break*/, 6];
16501
16477
  case 4: return [4 /*yield*/, this.graphql.query({
16502
- query: LoadQuery$1,
16503
- error: { code: ErrorCodes$2.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
16478
+ query: LoadQuery,
16479
+ error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
16504
16480
  fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
16505
16481
  })];
16506
16482
  case 5:
@@ -16538,7 +16514,7 @@
16538
16514
  case 1:
16539
16515
  isEmailExists = _b.sent();
16540
16516
  if (isEmailExists) {
16541
- throw { code: ErrorCodes$2.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
16517
+ throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
16542
16518
  }
16543
16519
  return [2 /*return*/];
16544
16520
  }
@@ -16588,7 +16564,7 @@
16588
16564
  locale: locale
16589
16565
  },
16590
16566
  error: {
16591
- code: ErrorCodes$2.SENT_CONFIRMATION_EMAIL_FAILED,
16567
+ code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
16592
16568
  message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
16593
16569
  }
16594
16570
  })];
@@ -16611,7 +16587,7 @@
16611
16587
  code: code
16612
16588
  },
16613
16589
  error: {
16614
- code: ErrorCodes$2.CONFIRM_EMAIL_FAILED,
16590
+ code: ErrorCodes.CONFIRM_EMAIL_FAILED,
16615
16591
  message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
16616
16592
  }
16617
16593
  })];
@@ -16711,7 +16687,7 @@
16711
16687
  throw error_7;
16712
16688
  console.error(error_7);
16713
16689
  throw {
16714
- code: ErrorCodes$2.LOAD_ACCOUNT_ERROR,
16690
+ code: ErrorCodes.LOAD_ACCOUNT_ERROR,
16715
16691
  message: 'ERROR.LOAD_ACCOUNT_ERROR'
16716
16692
  };
16717
16693
  case 6: return [2 /*return*/];
@@ -16922,7 +16898,7 @@
16922
16898
  case 1:
16923
16899
  existingAccount = _b.sent();
16924
16900
  if (!existingAccount || !existingAccount.updateDate) {
16925
- throw { code: ErrorCodes$2.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
16901
+ throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
16926
16902
  }
16927
16903
  this.copyIdAndUpdateDate(existingAccount, account);
16928
16904
  _b.label = 2;
@@ -16934,7 +16910,7 @@
16934
16910
  mutation: isNew ? AccountMutations.create : AccountMutations.save,
16935
16911
  variables: { data: json },
16936
16912
  error: {
16937
- code: ErrorCodes$2.SAVE_ACCOUNT_ERROR,
16913
+ code: ErrorCodes.SAVE_ACCOUNT_ERROR,
16938
16914
  message: 'ERROR.SAVE_ACCOUNT_ERROR'
16939
16915
  }
16940
16916
  })];
@@ -16968,7 +16944,7 @@
16968
16944
  mutation: AccountMutations.saveSettings,
16969
16945
  variables: { data: json },
16970
16946
  error: {
16971
- code: ErrorCodes$2.SAVE_SETTINGS_ERROR,
16947
+ code: ErrorCodes.SAVE_SETTINGS_ERROR,
16972
16948
  message: 'ERROR.SAVE_SETTINGS_ERROR'
16973
16949
  }
16974
16950
  })];
@@ -16999,7 +16975,7 @@
16999
16975
  if (counter > 4) {
17000
16976
  if (this._debug)
17001
16977
  console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
17002
- throw { code: ErrorCodes$2.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
16978
+ throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
17003
16979
  }
17004
16980
  if (!token) return [3 /*break*/, 2];
17005
16981
  return [4 /*yield*/, this.graphql.query({
@@ -17008,7 +16984,7 @@
17008
16984
  token: token
17009
16985
  },
17010
16986
  error: {
17011
- code: ErrorCodes$2.UNAUTHORIZED,
16987
+ code: ErrorCodes.UNAUTHORIZED,
17012
16988
  message: 'ERROR.UNAUTHORIZED'
17013
16989
  },
17014
16990
  fetchPolicy: 'no-cache'
@@ -17025,7 +17001,7 @@
17025
17001
  _b.label = 2;
17026
17002
  case 2:
17027
17003
  challengeError = {
17028
- code: ErrorCodes$2.AUTH_CHALLENGE_ERROR,
17004
+ code: ErrorCodes.AUTH_CHALLENGE_ERROR,
17029
17005
  message: 'ERROR.AUTH_CHALLENGE_ERROR'
17030
17006
  };
17031
17007
  return [4 /*yield*/, this.graphql.query({
@@ -17112,7 +17088,7 @@
17112
17088
  query: AccountSubscriptions.listenChanges,
17113
17089
  variables: variables,
17114
17090
  error: {
17115
- code: ErrorCodes$2.SUBSCRIBE_ACCOUNT_ERROR,
17091
+ code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
17116
17092
  message: 'ERROR.ACCOUNT.SUBSCRIBE_ERROR'
17117
17093
  }
17118
17094
  }).pipe(operators.map(function (_b) {
@@ -17145,7 +17121,7 @@
17145
17121
  };
17146
17122
  return AccountService;
17147
17123
  }(BaseGraphqlService));
17148
- AccountService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountService_Factory() { return new AccountService(i0__namespace.ɵɵinject(CryptoService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(LocalSettingsService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(FileService), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService, 8), i0__namespace.ɵɵinject(i1__namespace$4.ToastController, 8), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
17124
+ AccountService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountService_Factory() { return new AccountService(i0.ɵɵinject(CryptoService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(FileService), i0.ɵɵinject(i1$2.TranslateService, 8), i0.ɵɵinject(i1$5.ToastController, 8), i0.ɵɵinject(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
17149
17125
  AccountService.decorators = [
17150
17126
  { type: i0.Injectable, args: [{ providedIn: 'root', deps: [ENVIRONMENT] },] }
17151
17127
  ];
@@ -17160,7 +17136,7 @@
17160
17136
  { type: i1$5.ToastController, decorators: [{ type: i0.Optional }] },
17161
17137
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
17162
17138
  ]; };
17163
- var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12;
17139
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12;
17164
17140
 
17165
17141
  var Software_1, Configuration_1;
17166
17142
  // @dynamic
@@ -17418,13 +17394,13 @@
17418
17394
  /* ------------------------------------
17419
17395
  * GraphQL queries
17420
17396
  * ------------------------------------*/
17421
- var Fragments = {
17422
- config: core.gql(templateObject_1$3 || (templateObject_1$3 = __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 "])))
17397
+ var Fragments$1 = {
17398
+ config: core.gql(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "], ["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "])))
17423
17399
  };
17424
- var LoadQuery = core.gql(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"], ["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"])), Fragments.config);
17400
+ var LoadQuery$1 = core.gql(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"], ["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"])), Fragments$1.config);
17425
17401
  // Save (create or update) account mutation
17426
- var SaveMutation = core.gql(templateObject_3$2 || (templateObject_3$2 = __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.config);
17427
- var ClearCache = core.gql(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"], ["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"])));
17402
+ var SaveMutation = core.gql(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"], ["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"])), Fragments$1.config);
17403
+ var ClearCache = core.gql(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"], ["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"])));
17428
17404
  var CacheStatistics = core.gql(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n query CacheStatistics {\n cacheStatistics\n }\n"], ["\n query CacheStatistics {\n cacheStatistics\n }\n"])));
17429
17405
  var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
17430
17406
  var ConfigService = /** @class */ (function (_super) {
@@ -17484,12 +17460,12 @@
17484
17460
  case 0:
17485
17461
  now = Date.now();
17486
17462
  console.debug('[config] Loading Pod configuration...');
17487
- query = opts && opts.query || LoadQuery;
17463
+ query = opts && opts.query || LoadQuery$1;
17488
17464
  variables = opts && opts.variables || undefined;
17489
17465
  return [4 /*yield*/, this.graphql.query({
17490
17466
  query: query,
17491
17467
  variables: variables,
17492
- error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
17468
+ error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
17493
17469
  fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
17494
17470
  })];
17495
17471
  case 1:
@@ -17531,7 +17507,7 @@
17531
17507
  data: json
17532
17508
  },
17533
17509
  error: {
17534
- code: ErrorCodes$2.SAVE_CONFIG_ERROR,
17510
+ code: ErrorCodes.SAVE_CONFIG_ERROR,
17535
17511
  message: 'ERROR.SAVE_CONFIG_ERROR'
17536
17512
  }
17537
17513
  })];
@@ -17566,7 +17542,7 @@
17566
17542
  return [4 /*yield*/, this.graphql.query({
17567
17543
  query: CacheStatistics,
17568
17544
  variables: null,
17569
- error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
17545
+ error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
17570
17546
  fetchPolicy: 'network-only'
17571
17547
  })];
17572
17548
  case 1:
@@ -17590,7 +17566,7 @@
17590
17566
  return [4 /*yield*/, this.graphql.query({
17591
17567
  query: ClearCache,
17592
17568
  variables: variables,
17593
- error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
17569
+ error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
17594
17570
  fetchPolicy: 'no-cache'
17595
17571
  })];
17596
17572
  case 1:
@@ -17790,7 +17766,7 @@
17790
17766
  };
17791
17767
  return ConfigService;
17792
17768
  }(BaseGraphqlService));
17793
- ConfigService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ConfigService_Factory() { return new ConfigService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(FileService), i0__namespace.ɵɵinject(i1__namespace$4.ToastController), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(AccountService), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
17769
+ ConfigService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConfigService_Factory() { return new ConfigService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(NetworkService), i0.ɵɵinject(FileService), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(AccountService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
17794
17770
  ConfigService.decorators = [
17795
17771
  { type: i0.Injectable, args: [{
17796
17772
  providedIn: 'root',
@@ -17809,9 +17785,9 @@
17809
17785
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
17810
17786
  { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
17811
17787
  ]; };
17812
- var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2, templateObject_5$1;
17788
+ var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
17813
17789
 
17814
- var moment$3 = momentImported__namespace;
17790
+ var moment$4 = momentImported__namespace;
17815
17791
  var AndroidOsEnvironment = Object.freeze({
17816
17792
  DIRECTORY_DOWNLOADS: 'Download',
17817
17793
  DIRECTORY_DOWNLOADS_OLD: 'Downloads',
@@ -18081,16 +18057,16 @@
18081
18057
  }
18082
18058
  // config moment lib
18083
18059
  try {
18084
- moment$3.locale(event.lang);
18060
+ moment$4.locale(event.lang);
18085
18061
  console.debug('[platform] Use locale {' + event.lang + '}');
18086
18062
  }
18087
18063
  // If error, fallback to en
18088
18064
  catch (err) {
18089
- moment$3.locale('en');
18065
+ moment$4.locale('en');
18090
18066
  console.warn('[platform] Unknown local for moment lib. Using default [en]');
18091
18067
  }
18092
18068
  // Config date adapter
18093
- _this.dateAdapter.setLocale(moment$3.locale());
18069
+ _this.dateAdapter.setLocale(moment$4.locale());
18094
18070
  }
18095
18071
  });
18096
18072
  this.settings.onChange.subscribe(function (data) {
@@ -18343,7 +18319,7 @@
18343
18319
  };
18344
18320
  return PlatformService;
18345
18321
  }(StartableService));
18346
- PlatformService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PlatformService_Factory() { return new PlatformService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i2__namespace$4.Platform), i0__namespace.ɵɵinject(i1__namespace$4.ToastController), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(i1__namespace.MomentDateAdapter), i0__namespace.ɵɵinject(EntitiesStorage), i0__namespace.ɵɵinject(LocalSettingsService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(AccountService), i0__namespace.ɵɵinject(ConfigService), i0__namespace.ɵɵinject(i6__namespace.CacheService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(AudioProvider), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(i14__namespace.StatusBar, 8), i0__namespace.ɵɵinject(i15__namespace.Keyboard, 8), i0__namespace.ɵɵinject(i10__namespace.SplashScreen, 8), i0__namespace.ɵɵinject(i17__namespace.InAppBrowser, 8), i0__namespace.ɵɵinject(i18__namespace.Downloader, 8)); }, token: PlatformService, providedIn: "root" });
18322
+ PlatformService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PlatformService_Factory() { return new PlatformService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$4.Platform), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$1.MomentDateAdapter), i0.ɵɵinject(EntitiesStorage), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(AccountService), i0.ɵɵinject(ConfigService), i0.ɵɵinject(i6.CacheService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(AudioProvider), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(i14.StatusBar, 8), i0.ɵɵinject(i15.Keyboard, 8), i0.ɵɵinject(i10.SplashScreen, 8), i0.ɵɵinject(i17.InAppBrowser, 8), i0.ɵɵinject(i18.Downloader, 8)); }, token: PlatformService, providedIn: "root" });
18347
18323
  PlatformService.decorators = [
18348
18324
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
18349
18325
  ];
@@ -18441,7 +18417,7 @@
18441
18417
  };
18442
18418
  return MatStepperI18n;
18443
18419
  }(stepper.MatStepperIntl));
18444
- MatStepperI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
18420
+ MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
18445
18421
  MatStepperI18n.decorators = [
18446
18422
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
18447
18423
  ];
@@ -20368,7 +20344,7 @@
20368
20344
  }
20369
20345
  // Or increment once
20370
20346
  else if (opts && opts.progression && opts.maxProgression) {
20371
- opts.progression.next(opts.maxProgression);
20347
+ opts.progression.next(opts.progression.value + opts.maxProgression);
20372
20348
  }
20373
20349
  return [2 /*return*/, {
20374
20350
  data: data,
@@ -20643,7 +20619,7 @@
20643
20619
  return 1;
20644
20620
  }
20645
20621
  }
20646
- var ɵ0$1 = function (defaultStateSize) { return [
20622
+ var ɵ0$b = function (defaultStateSize) { return [
20647
20623
  Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
20648
20624
  Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
20649
20625
  Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
@@ -20651,7 +20627,7 @@
20651
20627
  var SCALE_OPTIONS_DEFAULT = {
20652
20628
  startColor: rgbArrayMap.red,
20653
20629
  startStates: [0, 2, 3],
20654
- startStepsFn: ɵ0$1
20630
+ startStepsFn: ɵ0$b
20655
20631
  };
20656
20632
  /**
20657
20633
  * Internal function, that create a colors scale, using iteration
@@ -21582,7 +21558,7 @@
21582
21558
  };
21583
21559
  return UserSettingsValidatorService;
21584
21560
  }(AppValidatorService));
21585
- UserSettingsValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
21561
+ UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
21586
21562
  UserSettingsValidatorService.decorators = [
21587
21563
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
21588
21564
  ];
@@ -21630,7 +21606,7 @@
21630
21606
  };
21631
21607
  return AccountValidatorService;
21632
21608
  }(AppValidatorService));
21633
- AccountValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder), i0__namespace.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
21609
+ AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
21634
21610
  AccountValidatorService.decorators = [
21635
21611
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
21636
21612
  ];
@@ -22261,7 +22237,7 @@
22261
22237
  };
22262
22238
  return LocalSettingsValidatorService;
22263
22239
  }(AppValidatorService));
22264
- LocalSettingsValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder), i0__namespace.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
22240
+ LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
22265
22241
  LocalSettingsValidatorService.decorators = [
22266
22242
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
22267
22243
  ];
@@ -23041,7 +23017,7 @@
23041
23017
  };
23042
23018
  return IsOnFieldModePipe;
23043
23019
  }());
23044
- IsOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
23020
+ IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
23045
23021
  IsOnFieldModePipe.decorators = [
23046
23022
  { type: i0.Pipe, args: [{
23047
23023
  name: 'isOnField'
@@ -23056,7 +23032,7 @@
23056
23032
  };
23057
23033
  return IsNotOnFieldModePipe;
23058
23034
  }());
23059
- IsNotOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
23035
+ IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
23060
23036
  IsNotOnFieldModePipe.decorators = [
23061
23037
  { type: i0.Pipe, args: [{
23062
23038
  name: 'isNotOnField'
@@ -23074,7 +23050,7 @@
23074
23050
  };
23075
23051
  return PersonToStringPipe;
23076
23052
  }());
23077
- PersonToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
23053
+ PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
23078
23054
  PersonToStringPipe.decorators = [
23079
23055
  { type: i0.Pipe, args: [{
23080
23056
  name: 'personToString'
@@ -23538,7 +23514,7 @@
23538
23514
  };
23539
23515
  return IsLoginAccountPipe;
23540
23516
  }());
23541
- IsLoginAccountPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
23517
+ IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
23542
23518
  IsLoginAccountPipe.decorators = [
23543
23519
  { type: i0.Pipe, args: [{
23544
23520
  name: 'isLogin'
@@ -23553,7 +23529,7 @@
23553
23529
  };
23554
23530
  return AccountToStringPipe;
23555
23531
  }());
23556
- AccountToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
23532
+ AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
23557
23533
  AccountToStringPipe.decorators = [
23558
23534
  { type: i0.Pipe, args: [{
23559
23535
  name: 'accountToString'
@@ -23571,7 +23547,7 @@
23571
23547
  };
23572
23548
  return DepartmentToStringPipe;
23573
23549
  }());
23574
- DepartmentToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
23550
+ DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
23575
23551
  DepartmentToStringPipe.decorators = [
23576
23552
  { type: i0.Pipe, args: [{
23577
23553
  name: 'departmentToString'
@@ -23677,7 +23653,7 @@
23677
23653
  };
23678
23654
  return MenuService;
23679
23655
  }());
23680
- MenuService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
23656
+ MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
23681
23657
  MenuService.decorators = [
23682
23658
  { type: i0.Injectable, args: [{
23683
23659
  providedIn: 'root'
@@ -24228,7 +24204,7 @@
24228
24204
  };
24229
24205
  return AuthGuardService;
24230
24206
  }());
24231
- AuthGuardService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AuthGuardService_Factory() { return new AuthGuardService(i0__namespace.ɵɵinject(AccountService), i0__namespace.ɵɵinject(i1__namespace$4.ModalController), i0__namespace.ɵɵinject(i3__namespace$3.Router), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: AuthGuardService, providedIn: "root" });
24207
+ AuthGuardService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AuthGuardService_Factory() { return new AuthGuardService(i0.ɵɵinject(AccountService), i0.ɵɵinject(i1$5.ModalController), i0.ɵɵinject(i3.Router), i0.ɵɵinject(ENVIRONMENT)); }, token: AuthGuardService, providedIn: "root" });
24232
24208
  AuthGuardService.decorators = [
24233
24209
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
24234
24210
  ];
@@ -24273,7 +24249,7 @@
24273
24249
  query: query,
24274
24250
  variables: { id: id },
24275
24251
  fetchPolicy: opts && opts.fetchPolicy || undefined,
24276
- error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
24252
+ error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
24277
24253
  })
24278
24254
  .pipe(operators.map(function (_b) {
24279
24255
  var data = _b.data;
@@ -24295,7 +24271,7 @@
24295
24271
  query: query,
24296
24272
  variables: { id: id },
24297
24273
  fetchPolicy: opts && opts.fetchPolicy || undefined,
24298
- error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
24274
+ error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
24299
24275
  })];
24300
24276
  case 1:
24301
24277
  data = (_b.sent()).data;
@@ -24331,7 +24307,7 @@
24331
24307
  totalFieldName: withTotal ? 'total' : undefined,
24332
24308
  insertFilterFn: filter && filter.asFilterFn(),
24333
24309
  variables: variables,
24334
- error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
24310
+ error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
24335
24311
  fetchPolicy: opts && opts.fetchPolicy || undefined
24336
24312
  })
24337
24313
  .pipe(operators.map(function (_b) {
@@ -24373,7 +24349,7 @@
24373
24349
  return [4 /*yield*/, this.graphql.query({
24374
24350
  query: query,
24375
24351
  variables: variables,
24376
- error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
24352
+ error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
24377
24353
  fetchPolicy: opts && opts.fetchPolicy || 'network-only'
24378
24354
  })];
24379
24355
  case 1:
@@ -24421,7 +24397,7 @@
24421
24397
  variables: {
24422
24398
  filter: filter && filter.asPodObject()
24423
24399
  },
24424
- error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
24400
+ error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
24425
24401
  fetchPolicy: opts && opts.fetchPolicy || 'network-only'
24426
24402
  })];
24427
24403
  case 3:
@@ -24466,7 +24442,7 @@
24466
24442
  variables: {
24467
24443
  data: json
24468
24444
  },
24469
- error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
24445
+ error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
24470
24446
  update: function (proxy, _b) {
24471
24447
  var data = _b.data;
24472
24448
  var savedEntities = data && data.data;
@@ -24533,7 +24509,7 @@
24533
24509
  variables: {
24534
24510
  data: json
24535
24511
  },
24536
- error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
24512
+ error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
24537
24513
  update: function (cache, _b) {
24538
24514
  var data = _b.data;
24539
24515
  // Update entity
@@ -24591,7 +24567,7 @@
24591
24567
  refetchQueries: this.getRefetchQueriesForMutation(opts),
24592
24568
  awaitRefetchQueries: opts && opts.awaitRefetchQueries,
24593
24569
  variables: { ids: ids },
24594
- error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
24570
+ error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
24595
24571
  update: function (cache, res) {
24596
24572
  // Remove from cache
24597
24573
  if (_this.watchQueriesUpdatePolicy === 'update-cache') {
@@ -24644,7 +24620,7 @@
24644
24620
  refetchQueries: this.getRefetchQueriesForMutation(opts),
24645
24621
  awaitRefetchQueries: opts && opts.awaitRefetchQueries,
24646
24622
  variables: { id: id },
24647
- error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
24623
+ error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
24648
24624
  update: function (proxy, res) {
24649
24625
  // Remove from cache
24650
24626
  if (_this.watchQueriesUpdatePolicy === 'update-cache') {
@@ -24686,7 +24662,7 @@
24686
24662
  fetchPolicy: opts && opts.fetchPolicy || 'no-cache',
24687
24663
  variables: variables,
24688
24664
  error: {
24689
- code: ErrorCodes$2.SUBSCRIBE_DATA_ERROR,
24665
+ code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
24690
24666
  message: 'ERROR.SUBSCRIBE_DATA_ERROR'
24691
24667
  }
24692
24668
  })
@@ -24909,7 +24885,7 @@
24909
24885
  if (this._debug)
24910
24886
  invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
24911
24887
  // Stop with an error
24912
- throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
24888
+ throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
24913
24889
  }
24914
24890
  this._editingRowCount = 0;
24915
24891
  data = void 0;
@@ -25929,14 +25905,14 @@
25929
25905
  case 0:
25930
25906
  opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
25931
25907
  if (this.readOnly) {
25932
- throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
25908
+ throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
25933
25909
  }
25934
25910
  this.resetError();
25935
25911
  // Keep edited row id (should be done BEFORE confirmEditCreate() )
25936
25912
  this.previouslyEditedRowId = opts.keepEditing ? ((((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined) || ((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.id)) : undefined;
25937
25913
  previouslyEditedData = opts.keepEditing ? (isNotNil(this.previouslyEditedRowId) && ((_c = this.editedRow) === null || _c === void 0 ? void 0 : _c.currentData) || ((_d = this.singleSelectedRow) === null || _d === void 0 ? void 0 : _d.currentData)) : undefined;
25938
25914
  if (!this.confirmEditCreate()) {
25939
- throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
25915
+ throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
25940
25916
  }
25941
25917
  // Mark as saving
25942
25918
  this.markAsSaving();
@@ -26093,7 +26069,7 @@
26093
26069
  switch (_e.label) {
26094
26070
  case 0:
26095
26071
  if (this.readOnly) {
26096
- throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
26072
+ throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
26097
26073
  }
26098
26074
  if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
26099
26075
  return [2 /*return*/, 0]; // SKip
@@ -27993,7 +27969,7 @@
27993
27969
  case 8:
27994
27970
  data = _c.sent();
27995
27971
  if (!data)
27996
- throw { code: ErrorCodes$2.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
27972
+ throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
27997
27973
  this._usageMode = this.computeUsageMode(data);
27998
27974
  return [4 /*yield*/, this.onEntityLoaded(data, opts)];
27999
27975
  case 9:
@@ -28785,10 +28761,10 @@
28785
28761
  exports.UserEventFilter = __decorate([
28786
28762
  EntityClass({ typename: 'UserEventVO' })
28787
28763
  ], exports.UserEventFilter);
28788
- var SaveQuery = core.gql(templateObject_1$1 || (templateObject_1$1 = __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);
28789
- var LoadAllQuery = core.gql(templateObject_2$1 || (templateObject_2$1 = __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);
28790
- var DeleteByIdsMutation = core.gql(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"], ["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"])));
28791
- var LoadAllWithContentQuery = core.gql(templateObject_4$1 || (templateObject_4$1 = __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);
28764
+ var SaveQuery = core.gql(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
28765
+ var LoadAllQuery = core.gql(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"], ["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"])), SocialFragments.lightUserEvent);
28766
+ var DeleteByIdsMutation = core.gql(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"], ["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"])));
28767
+ var LoadAllWithContentQuery = core.gql(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
28792
28768
  var UserEventService = /** @class */ (function (_super) {
28793
28769
  __extends(UserEventService, _super);
28794
28770
  function UserEventService(graphql, accountService, network, translate, toastController, environment) {
@@ -29109,7 +29085,7 @@
29109
29085
  };
29110
29086
  return UserEventService;
29111
29087
  }(BaseGraphqlService));
29112
- UserEventService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function UserEventService_Factory() { return new UserEventService(i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(AccountService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(i1__namespace$4.ToastController), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: UserEventService, providedIn: "root" });
29088
+ UserEventService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserEventService_Factory() { return new UserEventService(i0.ɵɵinject(GraphqlService), i0.ɵɵinject(AccountService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(ENVIRONMENT)); }, token: UserEventService, providedIn: "root" });
29113
29089
  UserEventService.decorators = [
29114
29090
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
29115
29091
  ];
@@ -29121,7 +29097,7 @@
29121
29097
  { type: i1$5.ToastController },
29122
29098
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
29123
29099
  ]; };
29124
- var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1;
29100
+ var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
29125
29101
 
29126
29102
  var ICONS_MAP = {
29127
29103
  DEBUG_DATA: { matIcon: 'bug_report' },
@@ -29383,16 +29359,16 @@
29383
29359
  ], exports.PersonFilter);
29384
29360
 
29385
29361
  var PersonFragments = {
29386
- person: core.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"], ["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"])))
29362
+ person: core.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"], ["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"])))
29387
29363
  };
29388
29364
  // Load persons query
29389
29365
  var PersonQueries = {
29390
- 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),
29391
- loadAllWithTotal: core.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""], ["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""])), PersonFragments.person)
29366
+ loadAll: core.gql(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""], ["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
29367
+ loadAllWithTotal: core.gql(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""], ["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""])), PersonFragments.person)
29392
29368
  };
29393
29369
  var PersonMutations = {
29394
- 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),
29395
- deleteAll: core.gql(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"], ["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"])))
29370
+ saveAll: core.gql(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n mutation savePersons($data:[PersonVOInput]){\n data: savePersons(persons: $data){\n ...PersonFragment\n }\n }\n ", ""], ["\n mutation savePersons($data:[PersonVOInput]){\n data: savePersons(persons: $data){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
29371
+ deleteAll: core.gql(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"], ["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"])))
29396
29372
  };
29397
29373
  var PersonService = /** @class */ (function (_super_1) {
29398
29374
  __extends(PersonService, _super_1);
@@ -29513,7 +29489,7 @@
29513
29489
  };
29514
29490
  return PersonService;
29515
29491
  }(BaseEntityService));
29516
- PersonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonService_Factory() { return new PersonService(i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(PlatformService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(EntitiesStorage)); }, token: PersonService, providedIn: "root" });
29492
+ PersonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonService_Factory() { return new PersonService(i0.ɵɵinject(GraphqlService), i0.ɵɵinject(PlatformService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(EntitiesStorage)); }, token: PersonService, providedIn: "root" });
29517
29493
  PersonService.decorators = [
29518
29494
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
29519
29495
  ];
@@ -29523,7 +29499,7 @@
29523
29499
  { type: NetworkService },
29524
29500
  { type: EntitiesStorage }
29525
29501
  ]; };
29526
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
29502
+ var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
29527
29503
 
29528
29504
  var PersonValidatorService = /** @class */ (function () {
29529
29505
  function PersonValidatorService(formBuilder, accountValidatorService) {
@@ -29546,7 +29522,7 @@
29546
29522
  };
29547
29523
  return PersonValidatorService;
29548
29524
  }());
29549
- PersonValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder), i0__namespace.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
29525
+ PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
29550
29526
  PersonValidatorService.decorators = [
29551
29527
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
29552
29528
  ];
@@ -29757,16 +29733,16 @@
29757
29733
  ];
29758
29734
  AdminModule.ctorParameters = function () { return []; };
29759
29735
 
29760
- var ɵ0 = {
29736
+ var ɵ0$c = {
29761
29737
  profile: 'ADMIN'
29762
29738
  };
29763
- var routes$5 = [
29739
+ var routes = [
29764
29740
  {
29765
29741
  path: 'users',
29766
29742
  pathMatch: 'full',
29767
29743
  component: UsersPage,
29768
29744
  canActivate: [AuthGuardService],
29769
- data: ɵ0
29745
+ data: ɵ0$c
29770
29746
  }
29771
29747
  ];
29772
29748
  var AdminRoutingModule = /** @class */ (function () {
@@ -29779,36 +29755,36 @@
29779
29755
  imports: [
29780
29756
  SharedRoutingModule,
29781
29757
  AdminModule,
29782
- i3.RouterModule.forChild(routes$5)
29758
+ i3.RouterModule.forChild(routes)
29783
29759
  ],
29784
29760
  exports: [i3.RouterModule]
29785
29761
  },] }
29786
29762
  ];
29787
29763
 
29788
- var ErrorCodes = {
29764
+ var ErrorCodes$2 = {
29789
29765
  LOAD_PERSONS_ERROR: 100,
29790
29766
  SAVE_PERSONS_ERROR: 101,
29791
29767
  DELETE_PERSONS_ERROR: 102,
29792
29768
  };
29793
29769
 
29794
- var EntityTestClass$1 = /** @class */ (function () {
29770
+ var EntityTestClass = /** @class */ (function () {
29795
29771
  function EntityTestClass() {
29796
29772
  }
29797
29773
  return EntityTestClass;
29798
29774
  }());
29799
- var FAKE_ENTITIES$1 = [
29775
+ var FAKE_ENTITIES = [
29800
29776
  { id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
29801
29777
  { id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
29802
29778
  { id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
29803
29779
  ];
29804
- function deepCopy$1(values, size) {
29780
+ function deepCopy(values, size) {
29805
29781
  if (isNil(size)) {
29806
- return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
29782
+ return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
29807
29783
  }
29808
29784
  var result = [];
29809
29785
  var i = 1;
29810
29786
  while (result.length < size) {
29811
- result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
29787
+ result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
29812
29788
  var name = entity.name + ' #' + i;
29813
29789
  return Object.assign(Object.assign({}, entity), { id: i++, name: name });
29814
29790
  }));
@@ -29818,7 +29794,7 @@
29818
29794
  var AutocompleteTestPage = /** @class */ (function () {
29819
29795
  function AutocompleteTestPage(formBuilder) {
29820
29796
  this.formBuilder = formBuilder;
29821
- this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
29797
+ this._items = deepCopy(FAKE_ENTITIES, 100);
29822
29798
  this._$items = new rxjs.BehaviorSubject(undefined);
29823
29799
  this.autocompleteFields = new MatAutocompleteConfigHolder();
29824
29800
  this.memoryHide = false;
@@ -29863,7 +29839,7 @@
29863
29839
  });
29864
29840
  // From items
29865
29841
  this.autocompleteFields.add('entity-items-large', {
29866
- items: FAKE_ENTITIES$1.slice(),
29842
+ items: FAKE_ENTITIES.slice(),
29867
29843
  attributes: ['label', 'name', 'description', 'comments'],
29868
29844
  displayWith: this.entityToString
29869
29845
  });
@@ -29876,12 +29852,12 @@
29876
29852
  var _this = this;
29877
29853
  return __generator(this, function (_a) {
29878
29854
  data = {
29879
- entity: deepCopy$1(FAKE_ENTITIES$1)[0],
29855
+ entity: deepCopy(FAKE_ENTITIES)[0],
29880
29856
  // This item is NOT in the items list => i should be displayed anyway
29881
29857
  missingEntity: {
29882
29858
  id: -1, label: '??', name: 'Missing item'
29883
29859
  },
29884
- disableEntity: deepCopy$1(FAKE_ENTITIES$1)[2]
29860
+ disableEntity: deepCopy(FAKE_ENTITIES)[2]
29885
29861
  };
29886
29862
  this.form.setValue(data);
29887
29863
  // Load observables
@@ -30046,13 +30022,13 @@
30046
30022
  { type: i1.FormBuilder }
30047
30023
  ]; };
30048
30024
 
30049
- var moment$2 = momentImported__namespace;
30025
+ var moment$5 = momentImported__namespace;
30050
30026
  var SwipeTestPage = /** @class */ (function () {
30051
30027
  function SwipeTestPage(formBuilder, dateFormatPipe) {
30052
30028
  this.formBuilder = formBuilder;
30053
30029
  this.dateFormatPipe = dateFormatPipe;
30054
30030
  this.$dates = new rxjs.BehaviorSubject(undefined);
30055
- this._today = moment$2().startOf('day');
30031
+ this._today = moment$5().startOf('day');
30056
30032
  this.form = formBuilder.group({
30057
30033
  empty: [null, i1.Validators.required],
30058
30034
  date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
@@ -30066,7 +30042,7 @@
30066
30042
  var _this = this;
30067
30043
  var dates = [];
30068
30044
  for (var d = 0; d < 7; d++) {
30069
- dates[d] = moment$2(this._today).add(d - 3, 'day');
30045
+ dates[d] = moment$5(this._today).add(d - 3, 'day');
30070
30046
  }
30071
30047
  this.$dates.next(dates);
30072
30048
  this.loadData();
@@ -30113,7 +30089,7 @@
30113
30089
  { type: DateFormatPipe }
30114
30090
  ]; };
30115
30091
 
30116
- var moment$1 = momentImported__namespace;
30092
+ var moment$6 = momentImported__namespace;
30117
30093
  var DateTimeTestPage = /** @class */ (function () {
30118
30094
  function DateTimeTestPage(platform, formBuilder, cd) {
30119
30095
  this.platform = platform;
@@ -30149,7 +30125,7 @@
30149
30125
  var now, data;
30150
30126
  var _this = this;
30151
30127
  return __generator(this, function (_a) {
30152
- now = moment$1();
30128
+ now = moment$6();
30153
30129
  data = {
30154
30130
  empty: toDateISOString(now.clone().add(2, 'hours')),
30155
30131
  enable: toDateISOString(now),
@@ -30214,12 +30190,12 @@
30214
30190
  { type: i0.ChangeDetectorRef }
30215
30191
  ]; };
30216
30192
 
30217
- var EntityTestClass = /** @class */ (function () {
30193
+ var EntityTestClass$1 = /** @class */ (function () {
30218
30194
  function EntityTestClass() {
30219
30195
  }
30220
30196
  return EntityTestClass;
30221
30197
  }());
30222
- var FAKE_ENTITIES = [
30198
+ var FAKE_ENTITIES$1 = [
30223
30199
  { id: 1, label: 'AAA', name: 'Item A' },
30224
30200
  { id: 2, label: 'BBB', name: 'Item B' },
30225
30201
  { id: 3, label: 'CCC', name: 'Item C' },
@@ -30228,14 +30204,14 @@
30228
30204
  { id: 6, label: 'FFF', name: 'Item F' },
30229
30205
  { id: 7, label: 'GGG', name: 'Item G' }
30230
30206
  ];
30231
- function deepCopy(values, size) {
30207
+ function deepCopy$1(values, size) {
30232
30208
  if (isNil(size)) {
30233
- return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
30209
+ return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
30234
30210
  }
30235
30211
  var result = [];
30236
30212
  var i = 1;
30237
30213
  while (result.length < size) {
30238
- result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
30214
+ result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
30239
30215
  var name = entity.name + ' #' + i;
30240
30216
  return Object.assign(Object.assign({}, entity), { id: i++, name: name });
30241
30217
  }));
@@ -30245,7 +30221,7 @@
30245
30221
  var ChipsTestPage = /** @class */ (function () {
30246
30222
  function ChipsTestPage(formBuilder) {
30247
30223
  this.formBuilder = formBuilder;
30248
- this._items = deepCopy(FAKE_ENTITIES, 100);
30224
+ this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
30249
30225
  this._$items = new rxjs.BehaviorSubject(undefined);
30250
30226
  this.autocompleteFields = new MatAutocompleteConfigHolder();
30251
30227
  this.form = formBuilder.group({
@@ -30288,7 +30264,7 @@
30288
30264
  var items, data;
30289
30265
  var _this = this;
30290
30266
  return __generator(this, function (_a) {
30291
- items = deepCopy(FAKE_ENTITIES);
30267
+ items = deepCopy$1(FAKE_ENTITIES$1);
30292
30268
  data = {
30293
30269
  entity: items.slice(0, 1),
30294
30270
  entityInitial: items.slice(1, 2),
@@ -30425,7 +30401,7 @@
30425
30401
  { type: i1.FormBuilder }
30426
30402
  ]; };
30427
30403
 
30428
- var moment = momentImported__namespace;
30404
+ var moment$7 = momentImported__namespace;
30429
30405
  var DateTestPage = /** @class */ (function () {
30430
30406
  function DateTestPage(platform, formBuilder, cd) {
30431
30407
  this.platform = platform;
@@ -30463,7 +30439,7 @@
30463
30439
  var now, nowAtMahe, data;
30464
30440
  var _this = this;
30465
30441
  return __generator(this, function (_a) {
30466
- now = moment();
30442
+ now = moment$7();
30467
30443
  nowAtMahe = now.clone().tz(this.timezone).startOf('day');
30468
30444
  data = {
30469
30445
  empty: toDateISOString(now.clone().add(2, 'hours')),
@@ -30545,7 +30521,7 @@
30545
30521
  { label: 'Shared directives', divider: true },
30546
30522
  { label: 'Badge icon directive', page: '/testing/shared/badge-icon' }
30547
30523
  ];
30548
- var routes$4 = [
30524
+ var routes$1 = [
30549
30525
  {
30550
30526
  path: '',
30551
30527
  pathMatch: 'full',
@@ -30605,7 +30581,7 @@
30605
30581
  i1.ReactiveFormsModule,
30606
30582
  SharedMaterialModule,
30607
30583
  i1$2.TranslateModule.forChild(),
30608
- i3.RouterModule.forChild(routes$4)
30584
+ i3.RouterModule.forChild(routes$1)
30609
30585
  ],
30610
30586
  declarations: [
30611
30587
  DateTimeTestPage,
@@ -30667,7 +30643,7 @@
30667
30643
  { type: i1$2.TranslateService }
30668
30644
  ]; };
30669
30645
 
30670
- var routes$3 = [
30646
+ var routes$2 = [
30671
30647
  {
30672
30648
  path: 'toast',
30673
30649
  pathMatch: 'full',
@@ -30685,7 +30661,7 @@
30685
30661
  i1$4.CommonModule,
30686
30662
  i1$5.IonicModule,
30687
30663
  i1$2.TranslateModule.forChild(),
30688
- i3.RouterModule.forChild(routes$3)
30664
+ i3.RouterModule.forChild(routes$2)
30689
30665
  ],
30690
30666
  declarations: [
30691
30667
  ToastTestingPage
@@ -30765,7 +30741,7 @@
30765
30741
  { type: i1$5.PopoverController }
30766
30742
  ]; };
30767
30743
 
30768
- var routes$2 = [
30744
+ var routes$3 = [
30769
30745
  {
30770
30746
  path: 'upload-file',
30771
30747
  pathMatch: 'full',
@@ -30783,7 +30759,7 @@
30783
30759
  i1$4.CommonModule,
30784
30760
  i1$5.IonicModule,
30785
30761
  i1$2.TranslateModule.forChild(),
30786
- i3.RouterModule.forChild(routes$2)
30762
+ i3.RouterModule.forChild(routes$3)
30787
30763
  ],
30788
30764
  declarations: [
30789
30765
  UploadFileTestingPage
@@ -31207,7 +31183,7 @@
31207
31183
  { type: i1$5.PopoverController }
31208
31184
  ]; };
31209
31185
 
31210
- var routes$1 = [
31186
+ var routes$4 = [
31211
31187
  {
31212
31188
  path: 'text-popover',
31213
31189
  pathMatch: 'full',
@@ -31225,7 +31201,7 @@
31225
31201
  i1$4.CommonModule,
31226
31202
  i1$5.IonicModule,
31227
31203
  i1$2.TranslateModule.forChild(),
31228
- i3.RouterModule.forChild(routes$1)
31204
+ i3.RouterModule.forChild(routes$4)
31229
31205
  ],
31230
31206
  declarations: [
31231
31207
  TextPopoverTestingPage
@@ -31242,7 +31218,7 @@
31242
31218
  { label: 'Table', page: '/testing/core/table' },
31243
31219
  { label: 'Text popover', page: '/testing/core/text-popover' }
31244
31220
  ];
31245
- var routes = [
31221
+ var routes$5 = [
31246
31222
  {
31247
31223
  path: '',
31248
31224
  pathMatch: 'full',
@@ -31269,7 +31245,7 @@
31269
31245
  imports: [
31270
31246
  i1$4.CommonModule,
31271
31247
  i1$2.TranslateModule.forChild(),
31272
- i3.RouterModule.forChild(routes),
31248
+ i3.RouterModule.forChild(routes$5),
31273
31249
  // Sub modules
31274
31250
  TableTestingModule,
31275
31251
  TextPopoverTestingModule
@@ -31392,7 +31368,7 @@
31392
31368
  exports.EntityStore = EntityStore;
31393
31369
  exports.EntityUtils = EntityUtils;
31394
31370
  exports.Environment = Environment;
31395
- exports.ErrorCodes = ErrorCodes;
31371
+ exports.ErrorCodes = ErrorCodes$2;
31396
31372
  exports.EvenPipe = EvenPipe;
31397
31373
  exports.FileResponse = FileResponse;
31398
31374
  exports.FileService = FileService;
@@ -31408,7 +31384,7 @@
31408
31384
  exports.FormGetControlPipe = FormGetControlPipe;
31409
31385
  exports.FormGetGroupPipe = FormGetGroupPipe;
31410
31386
  exports.FormGetPipe = FormGetPipe;
31411
- exports.Fragments = Fragments;
31387
+ exports.Fragments = Fragments$1;
31412
31388
  exports.GraphqlService = GraphqlService;
31413
31389
  exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
31414
31390
  exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
@@ -31689,23 +31665,23 @@
31689
31665
  exports.waitForTrue = waitForTrue;
31690
31666
  exports.waitIdle = waitIdle;
31691
31667
  exports.waitWhilePending = waitWhilePending;
31692
- exports["ɵ0"] = ɵ0$b;
31693
- exports["ɵa"] = CustomReuseStrategy;
31694
- exports["ɵb"] = MatNumpadDomService;
31695
- exports["ɵc"] = isFocusableElement;
31696
- exports["ɵd"] = RegisterForm;
31697
- exports["ɵe"] = AccountValidatorService;
31698
- exports["ɵf"] = RegisterModal;
31699
- exports["ɵg"] = UserSettingsValidatorService;
31700
- exports["ɵh"] = LocalSettingsValidatorService;
31701
- exports["ɵi"] = AppIconComponent;
31702
- exports["ɵj"] = DateTestPage;
31703
- exports["ɵk"] = NumpadTestPage;
31704
- exports["ɵl"] = MatBadgeIconTestPage;
31705
- exports["ɵm"] = ToastTestingModule;
31706
- exports["ɵn"] = ToastTestingPage;
31668
+ exports0 = ɵ0$1;
31669
+ exports.ɵa = CustomReuseStrategy;
31670
+ exports.ɵb = MatNumpadDomService;
31671
+ exports.ɵc = isFocusableElement;
31672
+ exports.ɵd = RegisterForm;
31673
+ exports.ɵe = AccountValidatorService;
31674
+ exports.ɵf = RegisterModal;
31675
+ exports.ɵg = UserSettingsValidatorService;
31676
+ exports.ɵh = LocalSettingsValidatorService;
31677
+ exports.ɵi = AppIconComponent;
31678
+ exports.ɵj = DateTestPage;
31679
+ exports.ɵk = NumpadTestPage;
31680
+ exports.ɵl = MatBadgeIconTestPage;
31681
+ exports.ɵm = ToastTestingModule;
31682
+ exports.ɵn = ToastTestingPage;
31707
31683
 
31708
31684
  Object.defineProperty(exports, '__esModule', { value: true });
31709
31685
 
31710
- }));
31686
+ })));
31711
31687
  //# sourceMappingURL=sumaris-net.ngx-components.umd.js.map