@sumaris-net/ngx-components 0.13.9 → 0.13.13

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.
@@ -26,11 +26,35 @@
26
26
  return Object.freeze(n);
27
27
  }
28
28
 
29
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
30
+ var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$4);
31
+ var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
32
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2);
33
+ var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1);
34
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
35
+ var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$5);
29
36
  var momentImported__namespace = /*#__PURE__*/_interopNamespace(momentImported);
37
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
38
+ var i3__namespace$3 = /*#__PURE__*/_interopNamespace(i3);
39
+ var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$6);
40
+ var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$1);
41
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2$2);
42
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3$1);
43
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
30
44
  var uuidv4Imported__namespace = /*#__PURE__*/_interopNamespace(uuidv4Imported);
45
+ var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$2);
46
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
47
+ var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
48
+ var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
49
+ var i2__namespace$4 = /*#__PURE__*/_interopNamespace(i2$4);
50
+ var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
31
51
  var QueueLink__default = /*#__PURE__*/_interopDefaultLegacy(QueueLink);
32
52
  var SerializingLink__default = /*#__PURE__*/_interopDefaultLegacy(SerializingLink);
33
53
  var loggerLink__default = /*#__PURE__*/_interopDefaultLegacy(loggerLink);
54
+ var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$3);
55
+ var i14__namespace = /*#__PURE__*/_interopNamespace(i14);
56
+ var i15__namespace = /*#__PURE__*/_interopNamespace(i15);
57
+ var i17__namespace = /*#__PURE__*/_interopNamespace(i17);
34
58
 
35
59
  var ENVIRONMENT = new i0.InjectionToken('ENV');
36
60
  var Environment = /** @class */ (function () {
@@ -378,6 +402,9 @@
378
402
  function isNotNilOrNaN(obj) {
379
403
  return obj !== undefined && obj !== null && (typeof obj !== 'number' || !isNaN(obj));
380
404
  }
405
+ function isNilOrNaN(obj) {
406
+ return obj === undefined || obj === null || (typeof obj === 'number' && isNaN(obj));
407
+ }
381
408
  function isNotEmptyArray(obj) {
382
409
  return obj !== undefined && obj !== null && obj.length > 0;
383
410
  }
@@ -1113,19 +1140,19 @@
1113
1140
  };
1114
1141
  return MatAutocompleteConfigHolder;
1115
1142
  }());
1116
- var DEFAULT_VALUE_ACCESSOR = {
1143
+ var DEFAULT_VALUE_ACCESSOR$6 = {
1117
1144
  provide: i1.NG_VALUE_ACCESSOR,
1118
1145
  useExisting: i0.forwardRef(function () { return MatAutocompleteField; }),
1119
1146
  multi: true
1120
1147
  };
1121
- var noop = function () { };
1122
- var ɵ0 = noop;
1148
+ var noop$7 = function () { };
1149
+ var ɵ0$a = noop$7;
1123
1150
  var MatAutocompleteField = /** @class */ (function () {
1124
1151
  function MatAutocompleteField(cd, formGroupDir) {
1125
1152
  this.cd = cd;
1126
1153
  this.formGroupDir = formGroupDir;
1127
- this._onChangeCallback = noop;
1128
- this._onTouchedCallback = noop;
1154
+ this._onChangeCallback = noop$7;
1155
+ this._onTouchedCallback = noop$7;
1129
1156
  this._subscription = new rxjs.Subscription();
1130
1157
  this._filter$ = new rxjs.BehaviorSubject(undefined);
1131
1158
  this._reload$ = new rxjs.Subject();
@@ -1343,7 +1370,7 @@
1343
1370
  }
1344
1371
  }),
1345
1372
  // Filter if not enough character
1346
- operators.filter(function (value) { return value && value.length >= _this.suggestLengthThreshold; }),
1373
+ operators.filter(function (value) { return value.length >= _this.suggestLengthThreshold; }),
1347
1374
  // Wait a debounce time
1348
1375
  operators.debounceTime(this.debounceTime)),
1349
1376
  // Object set: use it (no distinctUntilChanged() pipe need)
@@ -1702,7 +1729,7 @@
1702
1729
  // eslint-disable-next-line @angular-eslint/component-selector
1703
1730
  selector: 'mat-autocomplete-field',
1704
1731
  template: "<ion-grid class=\"ion-no-padding\">\n <ion-row>\n <ion-col class=\"ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-disabled]=\"disabled\"\n [title]=\"displayValue\">\n\n <div matPrefix><ng-content select=\"[matPrefix]\"></ng-content></div>\n\n <!-- readonly -->\n <ng-container *ngIf=\"readonly; else writable\">\n <input matInput hidden type=\"text\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\"\n readonly>\n <ion-label>{{ displayWith(value) }}&nbsp;</ion-label>\n </ng-container>\n\n <ng-template #writable>\n\n <!-- Basic select -->\n <mat-select #matSelect\n *ngIf=\"!searchable; else searchableTemplate\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\"\n [tabindex]=\"_tabindex\"\n [panelClass]=\"classList\"\n [style.width]=\"panelWidth\"\n (focus)=\"filterMatSelectFocusEvent($event)\"\n (blur)=\"filterMatSelectBlurEvent($event)\"\n [compareWith]=\"compareWith\"\n [multiple]=\"multiple\">\n <mat-select-trigger>{{ displayWith(value) }}</mat-select-trigger>\n\n <!-- header -->\n <ion-row class=\"mat-autocomplete-header ion-no-padding\">\n <ion-col *ngFor=\"let attr of displayAttributes; index as i; last as isLast\" [size]=\"displayColumnSizes[i]\" >\n <ion-label [innerHTML]=\"displayColumnNames[i] | translate\"></ion-label>\n </ion-col>\n </ion-row>\n\n <!-- None option -->\n <mat-option *ngIf=\"!required\" class=\"ion-no-padding\">\n <ion-row class=\"ion-no-padding\">\n <ion-col class=\"ion-no-padding\">\n <ion-label><i translate>COMMON.EMPTY_OPTION</i></ion-label>\n </ion-col>\n </ion-row>\n </mat-option>\n\n <ng-container *ngIf=\"$filteredItems | async; let items\">\n <!-- No item option -->\n <mat-option *ngIf=\"items | isEmptyArray\" class=\"ion-padding text-italic\" disabled>\n <ion-label>{{noResultMessage | translate}}</ion-label>\n </mat-option>\n\n <!-- options -->\n <mat-option *ngFor=\"let item of items\" [value]=\"item\" class=\"ion-no-padding\">\n <ion-row [classList]=\"item.classList\">\n <ion-col *ngFor=\"let path of displayAttributes; index as i;\"\n [size]=\"displayColumnSizes[i]\">\n <ion-text>{{item | propertyGet: path }}</ion-text>\n </ion-col>\n </ion-row>\n </mat-option>\n\n <!-- More item -->\n <a class=\"ion-padding mat-option \"\n *ngIf=\"_moreItemsCount\"\n (click)=\"_fetchMore$.emit($event)\" >\n <ion-label color=\"primary\" style=\"width: 100%;\">\n <span translate>COMMON.BTN_SHOW_MORE</span>\n <mat-icon class=\"ion-color-primary\">expand_more</mat-icon>\n </ion-label>\n </a>\n </ng-container>\n </mat-select>\n </ng-template>\n\n <!--\n NOTE :\n - \"selectInputContent($event) || onFocus.emit($event)\" : call onFocus only when to the input is empty (nothing to select)\n -->\n <ng-template #searchableTemplate>\n <input matInput #matInputText type=\"text\"\n [matAutocomplete]=\"autoComplete\"\n [matAutocompletePosition]=\"matAutocompletePosition\"\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [appAutofocus]=\"autofocus\"\n [tabindex]=\"_tabindex\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (click)=\"onClick.emit($event)\"\n (focus)=\"filterInputTextFocusInEvent($event)\"\n (blur)=\"filterInputTextBlurEvent($event)\"\n (keyup.arrowdown)=\"!autoComplete.showPanel && onDropButtonClick.emit($event)\">\n\n <!-- autocomplete -->\n <mat-autocomplete #autoComplete=\"matAutocomplete\"\n autoActiveFirstOption\n [displayWith]=\"displayWith\"\n [class]=\"classList\"\n [class.cdk-visually-hidden]=\"!searchable\"\n [panelWidth]=\"panelWidth\">\n\n <ion-row class=\"mat-autocomplete-header ion-no-padding\">\n <ion-col *ngFor=\"let attr of displayAttributes; index as i; last as last\" [size]=\"displayColumnSizes[i]\" >\n <ion-label [innerHTML]=\"displayColumnNames[i] | translate\"></ion-label>\n <ion-text color=\"light\" *ngIf=\"last && itemCount; let count \" class=\"ion-float-end ion-padding-end\"><i>{{'COMMON.RESULT_COUNT'|translate: {count: count} }}</i></ion-text>\n </ion-col>\n </ion-row>\n\n <ng-container *ngIf=\"$filteredItems | async; else loadingTemplate; let items\">\n <!-- No item option -->\n <mat-option *ngIf=\"items | isEmptyArray\" class=\"ion-padding text-italic\" disabled>\n <ion-label>{{noResultMessage | translate}}</ion-label>\n </mat-option>\n\n <mat-option *ngFor=\"let item of items\" [value]=\"item\" class=\"ion-no-padding\" >\n <ion-row [classList]=\"item.classList\">\n <ion-col *ngFor=\"let path of displayAttributes; index as i;\"\n [size]=\"displayColumnSizes[i]\">\n <ion-text [innerHTML]=\"item | propertyGet: path | highlight: { search: formControl.value, withAccent: highlightAccent }\"></ion-text>\n </ion-col>\n </ion-row>\n </mat-option>\n\n <!-- More item -->\n <mat-option *ngIf=\"_moreItemsCount\" (ngInit)=\"_initInfiniteScroll()\"\n class=\"ion-padding\" disabled>\n <ion-skeleton-text [animated]=\"true\" style=\"width: 100%\"></ion-skeleton-text>\n </mat-option>\n </ng-container>\n\n <!-- Loading spinner -->\n <ng-template #loadingTemplate>\n <mat-option *ngIf=\"(matInputText.value | strLength) >= suggestLengthThreshold; else waitMoreCharacterTemplate\"\n class=\"ion-padding\" disabled>\n <ion-skeleton-text [animated]=\"true\" style=\"width: 100%\"></ion-skeleton-text>\n </mat-option>\n </ng-template>\n\n <!-- Need more characters -->\n <ng-template #waitMoreCharacterTemplate>\n <mat-option class=\"ion-padding text-italic\" disabled>\n <ion-label>\n {{'INFO.PLEASE_TYPE_MORE_CHARACTERS'|translate:{minLength: suggestLengthThreshold} }}\n </ion-label>\n </mat-option>\n </ng-template>\n </mat-autocomplete>\n\n </ng-template>\n\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"searchable\"\n (click)=\"onDropButtonClick.emit($event)\"\n [hidden]=\"disabled\">\n <mat-icon class=\"large select-arrow\">arrow_drop_down</mat-icon>\n </button>\n <button matSuffix type=\"button\" mat-icon-button tabindex=\"-1\"\n *ngIf=\"enabled && mobile && !searchable && !multiple\"\n [title]=\"'COMMON.BTN_SEARCH'|translate\"\n (click)=\"toggleSearch($event)\">\n <mat-icon>search</mat-icon>\n </button>\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 <ng-content matSuffix select=\"[matSuffix]\"></ng-content>\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 <ng-content select=\"[matError]\"></ng-content>\n\n </mat-form-field>\n </ion-col>\n <ion-col size=\"auto\" class=\"ion-align-self-center\">\n <ng-content select=\"[matAfter]\"></ng-content>\n </ion-col>\n </ion-row>\n\n</ion-grid>\n",
1705
- providers: [DEFAULT_VALUE_ACCESSOR],
1732
+ providers: [DEFAULT_VALUE_ACCESSOR$6],
1706
1733
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
1707
1734
  styles: [":host{display:inline-block;position:relative}:host.ion-text-wrap ion-label{white-space:normal!important}button[hidden]{display:none}mat-icon.select-arrow{color:rgba(0,0,0,.47);font-size:150%}.fact-scroll-viewport{height:100%;width:100%}.fact-item{height:54px;display:flex}.fact-item .fact-date{min-width:100px;text-align:center;font-size:24pt}.fact-item .fact-date,.fact-item .fact-text{height:100%;align-items:center;justify-content:center;display:flex}.fact-item .fact-text{border-radius:10px}cdk-virtual-scroll-viewport{border:1px solid #000}cdk-virtual-scroll-viewport li{list-style:none}"]
1708
1735
  },] }
@@ -1777,7 +1804,7 @@
1777
1804
  };
1778
1805
  return DateFormatPipe;
1779
1806
  }());
1780
- 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" });
1807
+ 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" });
1781
1808
  DateFormatPipe.decorators = [
1782
1809
  { type: i0.Pipe, args: [{
1783
1810
  name: 'dateFormat'
@@ -1789,7 +1816,7 @@
1789
1816
  { type: i1$2.TranslateService }
1790
1817
  ]; };
1791
1818
 
1792
- var moment = momentImported__namespace;
1819
+ var moment$6 = momentImported__namespace;
1793
1820
  var DateDiffDurationPipe = /** @class */ (function () {
1794
1821
  function DateDiffDurationPipe(dateAdapter, translate) {
1795
1822
  var _this = this;
@@ -1806,10 +1833,10 @@
1806
1833
  return this.format(startDate, endDate);
1807
1834
  };
1808
1835
  DateDiffDurationPipe.prototype.format = function (startDate, endDate) {
1809
- var duration = moment.duration(endDate.diff(startDate));
1836
+ var duration = moment$6.duration(endDate.diff(startDate));
1810
1837
  if (duration.asMinutes() < 0)
1811
1838
  return '';
1812
- var timeDuration = moment(0)
1839
+ var timeDuration = moment$6(0)
1813
1840
  .hour(duration.hours())
1814
1841
  .minute(duration.minutes());
1815
1842
  var days = Math.floor(duration.asDays());
@@ -1817,7 +1844,7 @@
1817
1844
  };
1818
1845
  return DateDiffDurationPipe;
1819
1846
  }());
1820
- 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" });
1847
+ 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" });
1821
1848
  DateDiffDurationPipe.decorators = [
1822
1849
  { type: i0.Pipe, args: [{
1823
1850
  name: 'dateDiffDuration'
@@ -1839,7 +1866,7 @@
1839
1866
  };
1840
1867
  return DateFromNowPipe;
1841
1868
  }());
1842
- DateFromNowPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0.ɵɵinject(i1$1.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
1869
+ DateFromNowPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0__namespace.ɵɵinject(i1__namespace.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
1843
1870
  DateFromNowPipe.decorators = [
1844
1871
  { type: i0.Pipe, args: [{
1845
1872
  name: 'dateFromNow'
@@ -1908,7 +1935,7 @@
1908
1935
  value *= -1;
1909
1936
  }
1910
1937
  }
1911
- var degrees = roundFloat(value, opts.maxDecimals).toString();
1938
+ var degrees = roundFloat$1(value, opts.maxDecimals).toString();
1912
1939
  // Add sign
1913
1940
  var sign = negative ? '-' : '+';
1914
1941
  if (opts.placeholderChar) {
@@ -1959,7 +1986,7 @@
1959
1986
  }
1960
1987
  var degrees = Math.trunc(value);
1961
1988
  var minutes = Math.trunc((value - degrees) * 60);
1962
- var seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
1989
+ var seconds = roundFloat$1(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
1963
1990
  while (seconds >= 60) {
1964
1991
  seconds -= 60;
1965
1992
  minutes += 1;
@@ -2027,7 +2054,7 @@
2027
2054
  }
2028
2055
  }
2029
2056
  var degrees = Math.trunc(value);
2030
- var minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
2057
+ var minutes = roundFloat$1((value - degrees) * 60, opts.maxDecimals);
2031
2058
  while (minutes >= 60) {
2032
2059
  minutes -= 60;
2033
2060
  degrees += 1;
@@ -2078,15 +2105,15 @@
2078
2105
  return NaN;
2079
2106
  }
2080
2107
  if (pattern === 'DD')
2081
- return roundFloat(degrees, maxDecimals);
2108
+ return roundFloat$1(degrees, maxDecimals);
2082
2109
  var minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
2083
2110
  var seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
2084
2111
  var direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
2085
2112
  var sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
2086
2113
  degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
2087
- return roundFloat(degrees, maxDecimals);
2114
+ return roundFloat$1(degrees, maxDecimals);
2088
2115
  }
2089
- function roundFloat(input, maxDecimals) {
2116
+ function roundFloat$1(input, maxDecimals) {
2090
2117
  if (maxDecimals > 0) {
2091
2118
  var powDecimal = Math.pow(10, maxDecimals);
2092
2119
  return Math.trunc(input * powDecimal + 0.5) / powDecimal;
@@ -2109,7 +2136,7 @@
2109
2136
  };
2110
2137
  return LatLongFormatPipe;
2111
2138
  }());
2112
- LatLongFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
2139
+ LatLongFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
2113
2140
  LatLongFormatPipe.decorators = [
2114
2141
  { type: i0.Pipe, args: [{
2115
2142
  name: 'latLongFormat'
@@ -2122,7 +2149,7 @@
2122
2149
  }
2123
2150
  return LatitudeFormatPipe;
2124
2151
  }());
2125
- LatitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
2152
+ LatitudeFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
2126
2153
  LatitudeFormatPipe.decorators = [
2127
2154
  { type: i0.Pipe, args: [{
2128
2155
  name: 'latitudeFormat'
@@ -2135,7 +2162,7 @@
2135
2162
  }
2136
2163
  return LongitudeFormatPipe;
2137
2164
  }());
2138
- LongitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
2165
+ LongitudeFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
2139
2166
  LongitudeFormatPipe.decorators = [
2140
2167
  { type: i0.Pipe, args: [{
2141
2168
  name: 'longitudeFormat'
@@ -2158,7 +2185,7 @@
2158
2185
  };
2159
2186
  return NumberFormatPipe;
2160
2187
  }());
2161
- NumberFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
2188
+ NumberFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
2162
2189
  NumberFormatPipe.decorators = [
2163
2190
  { type: i0.Pipe, args: [{
2164
2191
  name: 'numberFormat'
@@ -2201,7 +2228,7 @@
2201
2228
  };
2202
2229
  return HighlightPipe;
2203
2230
  }());
2204
- HighlightPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
2231
+ HighlightPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
2205
2232
  HighlightPipe.decorators = [
2206
2233
  { type: i0.Pipe, args: [{
2207
2234
  name: 'highlight'
@@ -2269,7 +2296,7 @@
2269
2296
  { type: i0.Pipe, args: [{ name: 'fileSize' },] }
2270
2297
  ];
2271
2298
 
2272
- var moment$1 = momentImported__namespace;
2299
+ var moment$5 = momentImported__namespace;
2273
2300
  var DATE_UNIX_TIMESTAMP = 'X';
2274
2301
  var DATE_UNIX_MS_TIMESTAMP = 'x';
2275
2302
  var DateUtils = /** @class */ (function () {
@@ -2304,32 +2331,32 @@
2304
2331
  if (!value || momentImported.isMoment(value))
2305
2332
  return value;
2306
2333
  // Parse the input value, as a ISO date time
2307
- var date = moment$1(value, DATE_ISO_PATTERN);
2334
+ var date = moment$5(value, DATE_ISO_PATTERN);
2308
2335
  if (date.isValid())
2309
2336
  return date;
2310
2337
  // Not valid: trying to convert from unix timestamp
2311
2338
  if (typeof value === 'string') {
2312
2339
  console.warn('Wrong date format - Trying to convert from local time: ' + value);
2313
2340
  if (value.length === 10) {
2314
- return moment$1(value, DATE_UNIX_TIMESTAMP);
2341
+ return moment$5(value, DATE_UNIX_TIMESTAMP);
2315
2342
  }
2316
2343
  else if (value.length === 13) {
2317
- return moment$1(value, DATE_UNIX_MS_TIMESTAMP);
2344
+ return moment$5(value, DATE_UNIX_MS_TIMESTAMP);
2318
2345
  }
2319
2346
  }
2320
2347
  console.warn('Unable to parse date: ' + value);
2321
2348
  return undefined;
2322
2349
  }
2323
2350
  function fromUnixTimestamp(timeInSec) {
2324
- return moment$1(timeInSec, DATE_UNIX_TIMESTAMP);
2351
+ return moment$5(timeInSec, DATE_UNIX_TIMESTAMP);
2325
2352
  }
2326
2353
  function fromUnixMsTimestamp(timeInMs) {
2327
- return moment$1(timeInMs, DATE_UNIX_MS_TIMESTAMP);
2354
+ return moment$5(timeInMs, DATE_UNIX_MS_TIMESTAMP);
2328
2355
  }
2329
2356
  function toDuration(value, unit) {
2330
2357
  if (!value)
2331
2358
  return undefined;
2332
- var duration = moment$1.duration(value, unit);
2359
+ var duration = moment$5.duration(value, unit);
2333
2360
  // fix 990+ ms
2334
2361
  if (duration.milliseconds() >= 990) {
2335
2362
  duration.add(1000 - duration.milliseconds(), 'ms');
@@ -2359,7 +2386,7 @@
2359
2386
  };
2360
2387
  return DurationPipe;
2361
2388
  }());
2362
- DurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0.ɵɵinject(i1$2.TranslateService)); }, token: DurationPipe, providedIn: "root" });
2389
+ DurationPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: DurationPipe, providedIn: "root" });
2363
2390
  DurationPipe.decorators = [
2364
2391
  { type: i0.Pipe, args: [{
2365
2392
  name: 'duration'
@@ -2383,7 +2410,7 @@
2383
2410
  };
2384
2411
  return MathAbsPipe;
2385
2412
  }());
2386
- MathAbsPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
2413
+ MathAbsPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
2387
2414
  MathAbsPipe.decorators = [
2388
2415
  { type: i0.Pipe, args: [{
2389
2416
  name: 'mathAbs'
@@ -2398,7 +2425,7 @@
2398
2425
  };
2399
2426
  return EvenPipe;
2400
2427
  }());
2401
- EvenPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
2428
+ EvenPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
2402
2429
  EvenPipe.decorators = [
2403
2430
  { type: i0.Pipe, args: [{
2404
2431
  name: 'even'
@@ -2413,7 +2440,7 @@
2413
2440
  };
2414
2441
  return OddPipe;
2415
2442
  }());
2416
- OddPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
2443
+ OddPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
2417
2444
  OddPipe.decorators = [
2418
2445
  { type: i0.Pipe, args: [{
2419
2446
  name: 'odd'
@@ -2545,7 +2572,7 @@
2545
2572
  };
2546
2573
  return MapGetPipe;
2547
2574
  }());
2548
- MapGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
2575
+ MapGetPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
2549
2576
  MapGetPipe.decorators = [
2550
2577
  { type: i0.Pipe, args: [{
2551
2578
  name: 'mapGet'
@@ -2562,7 +2589,7 @@
2562
2589
  };
2563
2590
  return MapKeysPipe;
2564
2591
  }());
2565
- MapKeysPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
2592
+ MapKeysPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
2566
2593
  MapKeysPipe.decorators = [
2567
2594
  { type: i0.Pipe, args: [{
2568
2595
  name: 'mapKeys'
@@ -2579,7 +2606,7 @@
2579
2606
  };
2580
2607
  return MapValuesPipe;
2581
2608
  }());
2582
- MapValuesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
2609
+ MapValuesPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
2583
2610
  MapValuesPipe.decorators = [
2584
2611
  { type: i0.Pipe, args: [{
2585
2612
  name: 'mapValues'
@@ -2595,7 +2622,7 @@
2595
2622
  };
2596
2623
  return IsNotNilOrBlankPipe;
2597
2624
  }());
2598
- IsNotNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
2625
+ IsNotNilOrBlankPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
2599
2626
  IsNotNilOrBlankPipe.decorators = [
2600
2627
  { type: i0.Pipe, args: [{
2601
2628
  name: 'isNotNilOrBlank'
@@ -2610,7 +2637,7 @@
2610
2637
  };
2611
2638
  return IsNilOrBlankPipe;
2612
2639
  }());
2613
- IsNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
2640
+ IsNilOrBlankPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
2614
2641
  IsNilOrBlankPipe.decorators = [
2615
2642
  { type: i0.Pipe, args: [{
2616
2643
  name: 'isNilOrBlank'
@@ -2625,7 +2652,7 @@
2625
2652
  };
2626
2653
  return ToStringPipe;
2627
2654
  }());
2628
- ToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
2655
+ ToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
2629
2656
  ToStringPipe.decorators = [
2630
2657
  { type: i0.Pipe, args: [{
2631
2658
  name: 'toString'
@@ -2640,7 +2667,7 @@
2640
2667
  };
2641
2668
  return StrLengthPipe;
2642
2669
  }());
2643
- StrLengthPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
2670
+ StrLengthPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
2644
2671
  StrLengthPipe.decorators = [
2645
2672
  { type: i0.Pipe, args: [{
2646
2673
  name: 'strLength'
@@ -2693,7 +2720,7 @@
2693
2720
  };
2694
2721
  return TranslateContextService;
2695
2722
  }());
2696
- TranslateContextService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0.ɵɵinject(i1$2.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
2723
+ TranslateContextService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
2697
2724
  TranslateContextService.decorators = [
2698
2725
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
2699
2726
  ];
@@ -2710,7 +2737,7 @@
2710
2737
  };
2711
2738
  return TranslateContextPipe;
2712
2739
  }());
2713
- TranslateContextPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextPipe_Factory() { return new TranslateContextPipe(i0.ɵɵinject(TranslateContextService)); }, token: TranslateContextPipe, providedIn: "root" });
2740
+ TranslateContextPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslateContextPipe_Factory() { return new TranslateContextPipe(i0__namespace.ɵɵinject(TranslateContextService)); }, token: TranslateContextPipe, providedIn: "root" });
2714
2741
  TranslateContextPipe.decorators = [
2715
2742
  { type: i0.Pipe, args: [{
2716
2743
  name: 'translateContext'
@@ -2730,7 +2757,7 @@
2730
2757
  };
2731
2758
  return TranslatablePipe;
2732
2759
  }());
2733
- TranslatablePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslatablePipe_Factory() { return new TranslatablePipe(); }, token: TranslatablePipe, providedIn: "root" });
2760
+ TranslatablePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslatablePipe_Factory() { return new TranslatablePipe(); }, token: TranslatablePipe, providedIn: "root" });
2734
2761
  TranslatablePipe.decorators = [
2735
2762
  { type: i0.Pipe, args: [{
2736
2763
  name: 'translatable'
@@ -2750,7 +2777,7 @@
2750
2777
  };
2751
2778
  return PropertyGetPipe;
2752
2779
  }());
2753
- PropertyGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
2780
+ PropertyGetPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
2754
2781
  PropertyGetPipe.decorators = [
2755
2782
  { type: i0.Pipe, args: [{
2756
2783
  name: 'propertyGet'
@@ -3007,14 +3034,14 @@
3007
3034
  },] }
3008
3035
  ];
3009
3036
 
3010
- var moment$2 = momentImported__namespace;
3037
+ var moment$4 = momentImported__namespace;
3011
3038
  // @dynamic
3012
3039
  var SharedValidators = /** @class */ (function () {
3013
3040
  function SharedValidators() {
3014
3041
  }
3015
3042
  SharedValidators.validDate = function (control) {
3016
3043
  var value = control.value;
3017
- var date = !value || moment$2.isMoment(value) ? value : moment$2(control.value, DATE_ISO_PATTERN);
3044
+ var date = !value || moment$4.isMoment(value) ? value : moment$4(control.value, DATE_ISO_PATTERN);
3018
3045
  if (date && (!date.isValid() || date.year() < 1970)) {
3019
3046
  return { validDate: true };
3020
3047
  }
@@ -3446,9 +3473,9 @@
3446
3473
  var hour = parseInt(durationParts[0] || '0');
3447
3474
  var minute = parseInt(durationParts[1] || '0');
3448
3475
  var value = hour + (minute + 0.5) / 60;
3449
- return roundFloat$1(value, maxDecimals);
3476
+ return roundFloat(value, maxDecimals);
3450
3477
  }
3451
- function roundFloat$1(input, maxDecimals) {
3478
+ function roundFloat(input, maxDecimals) {
3452
3479
  if (maxDecimals > 0) {
3453
3480
  var powDecimal = Math.pow(10, maxDecimals);
3454
3481
  return Math.trunc(input * powDecimal + 0.5) / powDecimal;
@@ -3472,9 +3499,9 @@
3472
3499
  DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
3473
3500
  }
3474
3501
  };
3475
- var noop$1 = function () {
3502
+ var noop$6 = function () {
3476
3503
  };
3477
- var ɵ0$1 = noop$1;
3504
+ var ɵ0$9 = noop$6;
3478
3505
  var MatLatLongField = /** @class */ (function () {
3479
3506
  function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
3480
3507
  this.platform = platform;
@@ -3482,8 +3509,8 @@
3482
3509
  this.formBuilder = formBuilder;
3483
3510
  this.cd = cd;
3484
3511
  this.formGroupDir = formGroupDir;
3485
- this._onChangeCallback = noop$1;
3486
- this._onTouchedCallback = noop$1;
3512
+ this._onChangeCallback = noop$6;
3513
+ this._onTouchedCallback = noop$6;
3487
3514
  this._subscription = new rxjs.Subscription();
3488
3515
  this.disabling = false;
3489
3516
  this.writing = false;
@@ -3836,14 +3863,14 @@
3836
3863
  },] }
3837
3864
  ];
3838
3865
 
3839
- var DEFAULT_VALUE_ACCESSOR$1 = {
3866
+ var DEFAULT_VALUE_ACCESSOR$5 = {
3840
3867
  provide: i1.NG_VALUE_ACCESSOR,
3841
3868
  useExisting: i0.forwardRef(function () { return MatDate; }),
3842
3869
  multi: true
3843
3870
  };
3844
- var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
3845
- var noop$2 = function () { };
3846
- var ɵ0$2 = noop$2;
3871
+ var DAY_MASK$2 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
3872
+ var noop$5 = function () { };
3873
+ var ɵ0$8 = noop$5;
3847
3874
  var MatDate = /** @class */ (function () {
3848
3875
  function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
3849
3876
  this.dateAdapter = dateAdapter;
@@ -3852,12 +3879,12 @@
3852
3879
  this.cd = cd;
3853
3880
  this.keyboard = keyboard;
3854
3881
  this.formGroupDir = formGroupDir;
3855
- this._onChangeCallback = noop$2;
3856
- this._onTouchedCallback = noop$2;
3882
+ this._onChangeCallback = noop$5;
3883
+ this._onTouchedCallback = noop$5;
3857
3884
  this._subscription = new rxjs.Subscription();
3858
3885
  this.writing = true;
3859
3886
  this.disabling = false;
3860
- this.dayMask = DAY_MASK;
3887
+ this.dayMask = DAY_MASK$2;
3861
3888
  this.disabled = false;
3862
3889
  this.floatLabel = 'auto';
3863
3890
  this.readonly = false;
@@ -4126,7 +4153,7 @@
4126
4153
  selector: 'mat-date-field',
4127
4154
  template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly else writable\">\n <input matInput hidden type=\"text\" readonly=\"true\" [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix><ng-content select=\"[matPrefix]\"></ng-content></div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dayControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker)\"\n (keyup.escape)=\"preventEvent($event)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [appAutofocus]=\"autofocus\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dayControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n\n <!-- Hide the final control -->\n <input matInput type=\"text\"\n [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n (click)=\"openDatePicker($event, datePicker)\"\n [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"writeValue(null)\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('validDate')\" translate>ERROR.FIELD_NOT_VALID_DATE</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateIsAfter')\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateRange')\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMaxDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMinDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngIf=\"formControl.hasError('msg')\">{{formControl.errors['msg']}}</mat-error>\n </mat-form-field>\n\n <mat-datepicker #datePicker\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n [startAt]=\"startDate\"></mat-datepicker>\n\n <ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n </ng-template>\n\n <ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n </ng-template>\n\n</ng-template>\n\n",
4128
4155
  providers: [
4129
- DEFAULT_VALUE_ACCESSOR$1,
4156
+ DEFAULT_VALUE_ACCESSOR$5,
4130
4157
  ],
4131
4158
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
4132
4159
  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%}"]
@@ -4159,17 +4186,17 @@
4159
4186
  matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
4160
4187
  };
4161
4188
 
4162
- var DEFAULT_VALUE_ACCESSOR$2 = {
4189
+ var DEFAULT_VALUE_ACCESSOR$4 = {
4163
4190
  provide: i1.NG_VALUE_ACCESSOR,
4164
4191
  useExisting: i0.forwardRef(function () { return MatDateTime; }),
4165
4192
  multi: true
4166
4193
  };
4167
4194
  var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
4168
4195
  var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
4169
- var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
4170
- var noop$3 = function () {
4196
+ var HOUR_MASK$1 = [/[012]/, /\d/, ':', /[012345]/, /\d/];
4197
+ var noop$4 = function () {
4171
4198
  };
4172
- var ɵ0$3 = noop$3;
4199
+ var ɵ0$7 = noop$4;
4173
4200
  var MatDateTime = /** @class */ (function () {
4174
4201
  function MatDateTime(platform, dateAdapter, translate, formBuilder, keyboard, cd, formGroupDir) {
4175
4202
  this.platform = platform;
@@ -4179,14 +4206,14 @@
4179
4206
  this.keyboard = keyboard;
4180
4207
  this.cd = cd;
4181
4208
  this.formGroupDir = formGroupDir;
4182
- this._onChangeCallback = noop$3;
4183
- this._onTouchedCallback = noop$3;
4209
+ this._onChangeCallback = noop$4;
4210
+ this._onTouchedCallback = noop$4;
4184
4211
  this._subscription = new rxjs.Subscription();
4185
4212
  this.writing = true;
4186
4213
  this.disabling = false;
4187
4214
  this._onDestroy = new i0.EventEmitter();
4188
4215
  this.dayMask = DAY_MASK$1;
4189
- this.hourMask = HOUR_MASK;
4216
+ this.hourMask = HOUR_MASK$1;
4190
4217
  this.floatLabel = 'auto';
4191
4218
  this.readonly = false;
4192
4219
  this.compact = false;
@@ -4533,7 +4560,7 @@
4533
4560
  selector: 'mat-date-time-field',
4534
4561
  template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled\">\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><ng-content select=\"[matPrefix]\"></ng-content></div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dateFormControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker)\"\n (keyup.escape)=\"preventEvent($event)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [appAutofocus]=\"autofocus\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dateFormControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n <input matInput type=\"text\" [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button type=\"button\" mat-icon-button tabindex=\"-1\" matSuffix #datePickerButton2 (click)=\"openDatePicker($event, datePicker)\" [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clear()\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n </mat-form-field>\n <mat-datepicker #datePicker\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n [startAt]=\"startDate\"></mat-datepicker>\n <div class=\"mat-form-field-subscript mat-form-field-subscript-wrapper\" >\n <!-- errors -->\n <ng-container [ngSwitch]=\"formControl.touched && formControl.errors|mapKeys|arrayFirst\">\n <mat-error *ngSwitchCase=\"'required'\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngSwitchCase=\"'validDate'\" translate>ERROR.FIELD_NOT_VALID_DATE_TIME</mat-error>\n <mat-error *ngSwitchCase=\"'dateIsAfter'\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngSwitchCase=\"'dateRange'\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngSwitchCase=\"'dateMaxDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngSwitchCase=\"'dateMinDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngSwitchCase=\"'msg'\">{{formControl.errors.msg}}</mat-error>\n </ng-container>\n <ng-content select=\"mat-error\"></ng-content>\n\n <!-- mat hint -->\n <div class=\"mat-form-field-hint-wrapper\" [class.cdk-visually-hidden]=\"formControl.invalid\">\n <div class=\"mat-form-field-hint-spacer\"></div>\n <ng-content select=\"mat-hint\"></ng-content>\n </div>\n </div>\n\n </ion-col>\n\n <!-- hour -->\n <ion-col class=\"hour ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && (timeFormControl.invalid || formControl.invalid)\">\n <mat-label *ngIf=\"placeholder && floatLabel != 'never'\" translate>COMMON.TIME</mat-label>\n <input matInput #matInput type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"timeFormControl\"\n autocomplete=\"off\"\n min=\"0\" max=\"23\"\n [textMask]=\"{mask: hourMask, keepCharPositions: true, placeholderChar: placeholderChar, guide: true}\"\n [placeholder]=\"'COMMON.TIME_PLACEHOLDER'|translate\"\n [required]=\"required\"\n (keyup.arrowdown)=\"openTimePicker($event)\"\n (keyup.escape)=\"preventEvent($event)\"\n (blur)=\"checkIfTouched()\"\n [tabindex]=\"tabindex !== undefined ? tabindex+1 : undefined\">\n\n <input matInput #matInput type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"timeFormControl\"\n (click)=\"openTimePickerIfMobile($event)\"\n readonly>\n\n <input matInput type=\"text\"\n [formControl]=\"timeFormControl\"\n hidden\n [ngxTimepicker]=\"timePicker\"\n [format]=\"24\">\n\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && !mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePicker($event)\" >\n <mat-icon>keyboard_arrow_down</mat-icon>\n </button>\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePickerIfMobile($event)\">\n <mat-icon>access_time</mat-icon>\n </button>\n\n <ngx-material-timepicker #timePicker [@.disabled]=\"true\"\n (timeSet)=\"onTimePickerChange($event)\"\n [ESC]=\"!mobile\"\n [defaultTime]=\"'00:00'\"\n [cancelBtnTmpl]=\"timePickerCancelButton\"\n [confirmBtnTmpl]=\"timePickerOkButton\"\n [preventOverlayClick]=\"mobile\"\n [enableKeyboardInput]=\"false\"\n [disableAnimation]=\"true\">\n <!-- cancel button -->\n <ng-template #timePickerCancelButton>\n <ion-button fill=\"clear\" color=\"dark\">\n <ion-label translate>COMMON.BTN_CANCEL</ion-label>\n </ion-button>\n </ng-template>\n\n <!-- confirm button -->\n <ng-template #timePickerOkButton>\n <ion-button fill=\"solid\" color=\"tertiary\">\n <ion-label translate>COMMON.BTN_VALIDATE</ion-label>\n </ion-button>\n </ng-template>\n\n </ngx-material-timepicker>\n </mat-form-field>\n </ion-col>\n </ion-row>\n </ion-grid>\n\n\n</ng-template>\n\n<ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n</ng-template>\n\n<ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n</ng-template>\n",
4535
4562
  providers: [
4536
- DEFAULT_VALUE_ACCESSOR$2,
4563
+ DEFAULT_VALUE_ACCESSOR$4,
4537
4564
  ],
4538
4565
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
4539
4566
  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%}"]
@@ -4572,10 +4599,10 @@
4572
4599
  useExisting: i0.forwardRef(function () { return MatDateShort; }),
4573
4600
  multi: true
4574
4601
  };
4575
- var DAY_MASK$2 = [/\d/, /\d/, /\d/, /\d/];
4576
- var noop$4 = function () {
4602
+ var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
4603
+ var noop$3 = function () {
4577
4604
  };
4578
- var ɵ0$4 = noop$4;
4605
+ var ɵ0$6 = noop$3;
4579
4606
  var MatDateShort = /** @class */ (function () {
4580
4607
  function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
4581
4608
  this.dateAdapter = dateAdapter;
@@ -4584,11 +4611,11 @@
4584
4611
  this.cd = cd;
4585
4612
  this.keyboard = keyboard;
4586
4613
  this.formGroupDir = formGroupDir;
4587
- this._onChangeCallback = noop$4;
4588
- this._onTouchedCallback = noop$4;
4614
+ this._onChangeCallback = noop$3;
4615
+ this._onTouchedCallback = noop$3;
4589
4616
  this.writing = true;
4590
4617
  this.disabling = false;
4591
- this.dayMask = DAY_MASK$2;
4618
+ this.dayMask = DAY_MASK;
4592
4619
  this.disabled = false;
4593
4620
  this.floatLabel = 'auto';
4594
4621
  this.readonly = false;
@@ -4936,16 +4963,16 @@
4936
4963
  },] }
4937
4964
  ];
4938
4965
 
4939
- var DEFAULT_VALUE_ACCESSOR$4 = {
4966
+ var DEFAULT_VALUE_ACCESSOR$2 = {
4940
4967
  provide: i1.NG_VALUE_ACCESSOR,
4941
4968
  useExisting: i0.forwardRef(function () { return MatDuration; }),
4942
4969
  multi: true
4943
4970
  };
4944
4971
  var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
4945
- var HOUR_MASK$1 = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
4946
- var noop$5 = function () {
4972
+ var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
4973
+ var noop$2 = function () {
4947
4974
  };
4948
- var ɵ0$5 = noop$5;
4975
+ var ɵ0$5 = noop$2;
4949
4976
  var MatDuration = /** @class */ (function () {
4950
4977
  function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
4951
4978
  this.dateAdapter = dateAdapter;
@@ -4954,11 +4981,11 @@
4954
4981
  this.cd = cd;
4955
4982
  this.formGroupDir = formGroupDir;
4956
4983
  this._subscription = new rxjs.Subscription();
4957
- this._onChangeCallback = noop$5;
4958
- this._onTouchedCallback = noop$5;
4984
+ this._onChangeCallback = noop$2;
4985
+ this._onTouchedCallback = noop$2;
4959
4986
  this.writing = true;
4960
4987
  this.disabling = false;
4961
- this.hourMask = HOUR_MASK$1;
4988
+ this.hourMask = HOUR_MASK;
4962
4989
  this.disabled = false;
4963
4990
  this.floatLabel = 'auto';
4964
4991
  this.readonly = false;
@@ -5151,7 +5178,7 @@
5151
5178
  selector: 'mat-duration-field',
5152
5179
  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",
5153
5180
  providers: [
5154
- DEFAULT_VALUE_ACCESSOR$4,
5181
+ DEFAULT_VALUE_ACCESSOR$2,
5155
5182
  ],
5156
5183
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
5157
5184
  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%}"]
@@ -5211,22 +5238,22 @@
5211
5238
  },] }
5212
5239
  ];
5213
5240
 
5214
- var DEFAULT_VALUE_ACCESSOR$5 = {
5241
+ var DEFAULT_VALUE_ACCESSOR$1 = {
5215
5242
  provide: i1.NG_VALUE_ACCESSOR,
5216
5243
  useExisting: i0.forwardRef(function () { return MatBooleanField; }),
5217
5244
  multi: true
5218
5245
  };
5219
- var noop$6 = function () {
5246
+ var noop$1 = function () {
5220
5247
  };
5221
- var ɵ0$6 = noop$6;
5248
+ var ɵ0$4 = noop$1;
5222
5249
  var MatBooleanField = /** @class */ (function () {
5223
5250
  function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
5224
5251
  this.translate = translate;
5225
5252
  this.formBuilder = formBuilder;
5226
5253
  this.cd = cd;
5227
5254
  this.formGroupDir = formGroupDir;
5228
- this._onChangeCallback = noop$6;
5229
- this._onTouchedCallback = noop$6;
5255
+ this._onChangeCallback = noop$1;
5256
+ this._onTouchedCallback = noop$1;
5230
5257
  this._writing = false;
5231
5258
  this.showRadio = false;
5232
5259
  this.disabled = false;
@@ -5403,7 +5430,7 @@
5403
5430
  selector: 'mat-boolean-field',
5404
5431
  template: "<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled\">\n <input matInput hidden type=\"text\" readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{(formControl.value ? 'COMMON.YES' : 'COMMON.NO') | translate }}</ion-text>\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\">\n <mat-label *ngIf=\"placeholder && floatLabel!=='never'\">\n {{placeholder}}\n <span [hidden]=\"showRadio\">({{'COMMON.YES'|translate}}/{{'COMMON.NO'|translate}})</span>\n </mat-label>\n\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 translate>COMMON.YES</span>\n </mat-radio-button>&nbsp;\n <mat-radio-button #noButton [value]=\"false\">\n <span translate>COMMON.NO</span>\n </mat-radio-button>\n </mat-radio-group>\n\n <div matSuffix #injectMatSuffix></div>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\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\">\n <mat-label *ngIf=\"placeholder && !showRadio\">\n {{placeholder}}\n </mat-label>\n\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 <div matSuffix #injectMatSuffix></div>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\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\">\n <input matInput type=\"text\" hidden\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [required]=\"required\">\n <ion-grid class=\"ion-no-padding\" *ngIf=\"!formControl.disabled; else disabledLabel\">\n <ion-row class=\"ion-no-padding\">\n <!-- Yes button -->\n <ion-col>\n <ion-button style=\"width: 100%;\"\n class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex\"\n (click)=\"writeValue(true, $event)\"\n (keyup.enter)=\"writeValue(true, $event)\"\n [color]=\"_value == null ? 'danger' : (_value === true) ? 'accent' : 'light'\">\n <ion-icon slot=\"start\" name=\"checkmark\"></ion-icon>\n {{'COMMON.YES'|translate}}\n </ion-button>\n </ion-col>\n <!-- No button -->\n <ion-col>\n <ion-button style=\"width: 100%;\"\n 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 ? 'danger' : (_value === false) ? 'accent' : 'light'\">\n <ion-icon slot=\"start\" name=\"close\"></ion-icon>\n {{'COMMON.NO'|translate}}\n </ion-button>\n </ion-col>\n </ion-row>\n </ion-grid>\n <ng-template #disabledLabel>\n <ion-label><i translate>COMMON.EMPTY_OPTION</i></ion-label>\n </ng-template>\n\n <div matSuffix #injectMatSuffix></div>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n </mat-form-field>\n </ng-container>\n\n <div class=\"cdk-visually-hidden\">\n <div #suffix><ng-content select=\"[matSuffix]\"></ng-content></div>\n </div>\n\n</ng-template>\n\n\n",
5405
5432
  providers: [
5406
- DEFAULT_VALUE_ACCESSOR$5
5433
+ DEFAULT_VALUE_ACCESSOR$1
5407
5434
  ],
5408
5435
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
5409
5436
  styles: [":host{width:100%}"]
@@ -5485,6 +5512,7 @@
5485
5512
  return MatNumpadEvent;
5486
5513
  }(KeyboardEvent));
5487
5514
 
5515
+ exports.AnimationState = void 0;
5488
5516
  (function (AnimationState) {
5489
5517
  AnimationState["ENTER"] = "enter";
5490
5518
  AnimationState["ENTER_INPUT"] = "enter-input";
@@ -5652,7 +5680,7 @@
5652
5680
  };
5653
5681
  return MatNumpadDomService;
5654
5682
  }());
5655
- 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" });
5683
+ 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" });
5656
5684
  MatNumpadDomService.decorators = [
5657
5685
  { type: i0.Injectable, args: [{
5658
5686
  providedIn: 'root'
@@ -6058,7 +6086,7 @@
6058
6086
  },] }
6059
6087
  ];
6060
6088
 
6061
- var DEFAULT_VALUE_ACCESSOR$6 = {
6089
+ var DEFAULT_VALUE_ACCESSOR = {
6062
6090
  provide: i1.NG_VALUE_ACCESSOR,
6063
6091
  useExisting: i0.forwardRef(function () { return MatSwipeField; }),
6064
6092
  multi: true
@@ -6378,7 +6406,7 @@
6378
6406
  { type: i0.Component, args: [{
6379
6407
  selector: 'mat-swipe-field',
6380
6408
  template: "<mat-form-field [floatLabel]=\"showSlides && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\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",
6381
- providers: [DEFAULT_VALUE_ACCESSOR$6],
6409
+ providers: [DEFAULT_VALUE_ACCESSOR],
6382
6410
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
6383
6411
  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}"]
6384
6412
  },] }
@@ -6936,7 +6964,7 @@
6936
6964
  };
6937
6965
  return ProgressBarService;
6938
6966
  }());
6939
- ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
6967
+ ProgressBarService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
6940
6968
  ProgressBarService.decorators = [
6941
6969
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
6942
6970
  ];
@@ -6983,7 +7011,7 @@
6983
7011
  };
6984
7012
  return AppGestureConfig;
6985
7013
  }(i1$6.HammerGestureConfig));
6986
- AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
7014
+ AppGestureConfig.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
6987
7015
  AppGestureConfig.decorators = [
6988
7016
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
6989
7017
  ];
@@ -7248,7 +7276,7 @@
7248
7276
  };
7249
7277
  return MatPaginatorI18n;
7250
7278
  }(paginator.MatPaginatorIntl));
7251
- MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
7279
+ MatPaginatorI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
7252
7280
  MatPaginatorI18n.decorators = [
7253
7281
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
7254
7282
  ];
@@ -7340,17 +7368,17 @@
7340
7368
  return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
7341
7369
  }
7342
7370
 
7343
- var noop$7 = function () {
7371
+ var noop = function () {
7344
7372
  };
7345
- var ɵ0$7 = noop$7;
7373
+ var ɵ0$3 = noop;
7346
7374
  var AppFormField = /** @class */ (function () {
7347
7375
  function AppFormField(translate, cd, injector, formGroupDir) {
7348
7376
  this.translate = translate;
7349
7377
  this.cd = cd;
7350
7378
  this.injector = injector;
7351
7379
  this.formGroupDir = formGroupDir;
7352
- this._onChangeCallback = noop$7;
7353
- this._onTouchedCallback = noop$7;
7380
+ this._onChangeCallback = noop;
7381
+ this._onTouchedCallback = noop;
7354
7382
  this.readonly = false;
7355
7383
  this.compact = false;
7356
7384
  this.floatLabel = 'auto';
@@ -7809,7 +7837,7 @@
7809
7837
  };
7810
7838
  return AudioProvider;
7811
7839
  }());
7812
- 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" });
7840
+ 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" });
7813
7841
  AudioProvider.decorators = [
7814
7842
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
7815
7843
  ];
@@ -7909,7 +7937,7 @@
7909
7937
  };
7910
7938
  return Hotkeys;
7911
7939
  }());
7912
- 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" });
7940
+ 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" });
7913
7941
  Hotkeys.decorators = [
7914
7942
  { type: i0.Injectable, args: [{
7915
7943
  providedIn: 'root'
@@ -8113,7 +8141,7 @@
8113
8141
  return Base64ImageReader;
8114
8142
  }());
8115
8143
 
8116
- var uuidv4 = uuidv4Imported__namespace;
8144
+ var uuidv4$1 = uuidv4Imported__namespace;
8117
8145
  var FileService = /** @class */ (function () {
8118
8146
  function FileService(platform,
8119
8147
  //private transfer: FileTransfer,
@@ -8159,7 +8187,7 @@
8159
8187
  lastSlashIndex = source.lastIndexOf('/');
8160
8188
  if (lastSlashIndex === -1)
8161
8189
  throw new Error('Invalid URL: ' + source);
8162
- fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
8190
+ fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4$1();
8163
8191
  if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
8164
8192
  console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
8165
8193
  targetFilePath = this._imageDirectory + fileName;
@@ -8222,7 +8250,7 @@
8222
8250
  };
8223
8251
  return FileService;
8224
8252
  }());
8225
- 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" });
8253
+ 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" });
8226
8254
  FileService.decorators = [
8227
8255
  { type: i0.Injectable, args: [{
8228
8256
  providedIn: 'root',
@@ -8385,7 +8413,7 @@
8385
8413
  Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
8386
8414
 
8387
8415
  var scrypt = require('scrypt-async');
8388
- var sha256 = require('hash.js/lib/hash/sha/256');
8416
+ var sha256$1 = require('hash.js/lib/hash/sha/256');
8389
8417
  var sha512 = require('hash.js/lib/hash/sha/512');
8390
8418
  var nacl = {
8391
8419
  sign: tweetnacl.sign,
@@ -8491,7 +8519,7 @@
8491
8519
  * Hash (using SHA256) a message
8492
8520
  */
8493
8521
  CryptoService.prototype.sha256 = function (message) {
8494
- return sha256().update(message).digest('hex');
8522
+ return sha256$1().update(message).digest('hex');
8495
8523
  };
8496
8524
  /**
8497
8525
  * Hash (using SHA512) a message
@@ -8505,7 +8533,7 @@
8505
8533
  };
8506
8534
  return CryptoService;
8507
8535
  }());
8508
- CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
8536
+ CryptoService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
8509
8537
  CryptoService.decorators = [
8510
8538
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
8511
8539
  ];
@@ -9905,7 +9933,7 @@
9905
9933
  };
9906
9934
  return LocalSettingsService;
9907
9935
  }());
9908
- 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" });
9936
+ 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" });
9909
9937
  LocalSettingsService.decorators = [
9910
9938
  { type: i0.Injectable, args: [{
9911
9939
  providedIn: 'root',
@@ -10750,7 +10778,7 @@
10750
10778
  };
10751
10779
  return NetworkService;
10752
10780
  }());
10753
- 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" });
10781
+ 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" });
10754
10782
  NetworkService.decorators = [
10755
10783
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
10756
10784
  ];
@@ -10770,7 +10798,7 @@
10770
10798
  { type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
10771
10799
  ]; };
10772
10800
 
10773
- var ErrorCodes = {
10801
+ var ErrorCodes$2 = {
10774
10802
  UNKNOWN_ERROR: 0,
10775
10803
  LOAD_ACCOUNT_ERROR: 1,
10776
10804
  BAD_PASSWORD: 2,
@@ -11178,7 +11206,7 @@
11178
11206
  case 13:
11179
11207
  err_1 = _a.sent();
11180
11208
  console.error(err_1);
11181
- throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
11209
+ throw { code: ErrorCodes$2.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
11182
11210
  case 14:
11183
11211
  // Emit update event
11184
11212
  if (!opts || opts.emitEvent !== false) {
@@ -11938,7 +11966,7 @@
11938
11966
  }());
11939
11967
  EntitiesStorage.TRASH_PREFIX = 'Trash#';
11940
11968
  EntitiesStorage.REMOTE_PREFIX = 'Remote#';
11941
- 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" });
11969
+ 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" });
11942
11970
  EntitiesStorage.decorators = [
11943
11971
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
11944
11972
  ];
@@ -12052,10 +12080,10 @@
12052
12080
  function referentialsToString(values, properties, separator) {
12053
12081
  return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
12054
12082
  }
12055
- var ɵ0$8 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
12083
+ var ɵ0$2 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
12056
12084
  var StatusList = Object.freeze([
12057
12085
  {
12058
- id: ɵ0$8,
12086
+ id: ɵ0$2,
12059
12087
  icon: 'checkmark',
12060
12088
  label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
12061
12089
  },
@@ -12354,7 +12382,7 @@
12354
12382
  (data.lastName || '')) || '';
12355
12383
  }
12356
12384
 
12357
- var uuidv4$1 = uuidv4Imported__namespace;
12385
+ var uuidv4 = uuidv4Imported__namespace;
12358
12386
  var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
12359
12387
  var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
12360
12388
  /**
@@ -12398,7 +12426,7 @@
12398
12426
  // Skip if not tracked
12399
12427
  if (!context || !context.tracked)
12400
12428
  return forward(operation);
12401
- var id = context.serializationKey || uuidv4$1();
12429
+ var id = context.serializationKey || uuidv4();
12402
12430
  console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
12403
12431
  // Clean context, before calling JSON.stringify (remove unused attributes)
12404
12432
  var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
@@ -13209,7 +13237,7 @@
13209
13237
  (err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
13210
13238
  || this.toAppError(err.networkError)
13211
13239
  || (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
13212
- || this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
13240
+ || this.createAppErrorByCode(ErrorCodes$2.UNKNOWN_NETWORK_ERROR)))
13213
13241
  // If graphQL: try to convert the first error found
13214
13242
  || (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
13215
13243
  || this.toAppError(err)
@@ -13217,7 +13245,7 @@
13217
13245
  || (err.graphQLErrors && err.graphQLErrors[0])
13218
13246
  || err;
13219
13247
  console.error('[graphql] ' + (error && error.message || error), error.stack || '');
13220
- if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
13248
+ if (error && error.code === ErrorCodes$2.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
13221
13249
  console.error('[graphql] original error: ' + err.networkError.message);
13222
13250
  this.onNetworkError.next(error);
13223
13251
  }
@@ -13253,7 +13281,7 @@
13253
13281
  return 'ERROR.UNAUTHORIZED';
13254
13282
  case ServerErrorCodes.FORBIDDEN:
13255
13283
  return 'ERROR.FORBIDDEN';
13256
- case ErrorCodes.UNKNOWN_NETWORK_ERROR:
13284
+ case ErrorCodes$2.UNKNOWN_NETWORK_ERROR:
13257
13285
  return 'ERROR.UNKNOWN_NETWORK_ERROR';
13258
13286
  case ServerErrorCodes.BAD_UPDATE_DATE:
13259
13287
  return 'ERROR.BAD_UPDATE_DATE';
@@ -13298,7 +13326,7 @@
13298
13326
  };
13299
13327
  return GraphqlService;
13300
13328
  }());
13301
- 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" });
13329
+ 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" });
13302
13330
  GraphqlService.decorators = [
13303
13331
  { type: i0.Injectable, args: [{
13304
13332
  providedIn: 'root'
@@ -13315,7 +13343,7 @@
13315
13343
  { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
13316
13344
  ]; };
13317
13345
 
13318
- var sha256$1 = require('hash.js/lib/hash/sha/256');
13346
+ var sha256 = require('hash.js/lib/hash/sha/256');
13319
13347
  var BaseGraphqlServiceOptions = /** @class */ (function () {
13320
13348
  function BaseGraphqlServiceOptions() {
13321
13349
  }
@@ -13482,8 +13510,8 @@
13482
13510
  };
13483
13511
  /* -- protected methods -- */
13484
13512
  BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
13485
- var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
13486
- var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
13513
+ var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
13514
+ var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
13487
13515
  return [queryName, opts.arrayFieldName, variablesKey].join('|');
13488
13516
  };
13489
13517
  BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
@@ -13549,17 +13577,17 @@
13549
13577
  /* ------------------------------------
13550
13578
  * GraphQL queries
13551
13579
  * ------------------------------------*/
13552
- var Fragments = {
13553
- 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 id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }\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 id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }\n "])))
13580
+ var Fragments$1 = {
13581
+ 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 id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }\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 id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }\n "])))
13554
13582
  };
13555
13583
  // Load account query
13556
- var LoadQuery = core.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query Account {\n account {\n ...AccountFragment\n }\n }\n ", "\n"], ["\n query Account {\n account {\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
13584
+ var LoadQuery$1 = core.gql(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n query Account {\n account {\n ...AccountFragment\n }\n }\n ", "\n"], ["\n query Account {\n account {\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments$1.account);
13557
13585
  // Check email query
13558
- var IsEmailExistsQuery = core.gql(templateObject_3 || (templateObject_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"])));
13586
+ var IsEmailExistsQuery = core.gql(templateObject_3$3 || (templateObject_3$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"])));
13559
13587
  // Save (create or update) account mutation
13560
- var SaveMutation = core.gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n mutation SaveAccount($account:AccountVOInput){\n saveAccount(account: $account){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation SaveAccount($account:AccountVOInput){\n saveAccount(account: $account){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
13588
+ var SaveMutation$1 = core.gql(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n mutation SaveAccount($account:AccountVOInput){\n saveAccount(account: $account){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation SaveAccount($account:AccountVOInput){\n saveAccount(account: $account){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments$1.account);
13561
13589
  // Create account mutation
13562
- var CreateMutation = core.gql(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation CreateAccount($account:AccountVOInput){\n createAccount(account: $account){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation CreateAccount($account:AccountVOInput){\n createAccount(account: $account){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
13590
+ var CreateMutation = core.gql(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n mutation CreateAccount($account:AccountVOInput){\n createAccount(account: $account){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation CreateAccount($account:AccountVOInput){\n createAccount(account: $account){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments$1.account);
13563
13591
  // Sent confirmation email
13564
13592
  var SendConfirmEmailMutation = core.gql(templateObject_6 || (templateObject_6 = __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"])));
13565
13593
  // Confirm account email
@@ -13949,7 +13977,7 @@
13949
13977
  error_3 = _a.sent();
13950
13978
  console.error(error_3);
13951
13979
  this.resetData();
13952
- throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
13980
+ throw { code: ErrorCodes$2.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
13953
13981
  case 4:
13954
13982
  // Store pubkey+keypair
13955
13983
  this.data.pubkey = Base58.encode(keypair.publicKey);
@@ -13985,7 +14013,7 @@
13985
14013
  return [3 /*break*/, 18];
13986
14014
  case 11:
13987
14015
  err_1 = _a.sent();
13988
- if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
14016
+ if (!(err_1 && +(err_1.code) === ErrorCodes$2.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
13989
14017
  if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
13990
14018
  isEmailExists = void 0;
13991
14019
  _a.label = 12;
@@ -14001,12 +14029,12 @@
14001
14029
  case 15:
14002
14030
  // Email not exists (no account)
14003
14031
  if (!isEmailExists) {
14004
- throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
14032
+ throw { code: ErrorCodes$2.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
14005
14033
  }
14006
14034
  _a.label = 16;
14007
14035
  case 16:
14008
14036
  // Email exists, so error = 'bad password'
14009
- throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
14037
+ throw { code: ErrorCodes$2.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
14010
14038
  case 17: throw err_1; // resend the first error
14011
14039
  case 18:
14012
14040
  _a.trys.push([18, 20, , 21]);
@@ -14089,7 +14117,7 @@
14089
14117
  throw error_6;
14090
14118
  console.error(error_6);
14091
14119
  throw {
14092
- code: ErrorCodes.LOAD_ACCOUNT_ERROR,
14120
+ code: ErrorCodes$2.LOAD_ACCOUNT_ERROR,
14093
14121
  message: 'ERROR.LOAD_ACCOUNT_ERROR'
14094
14122
  };
14095
14123
  case 4: return [2 /*return*/];
@@ -14359,8 +14387,8 @@
14359
14387
  _a.label = 3;
14360
14388
  case 3: return [3 /*break*/, 6];
14361
14389
  case 4: return [4 /*yield*/, this.graphql.query({
14362
- query: LoadQuery,
14363
- error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
14390
+ query: LoadQuery$1,
14391
+ error: { code: ErrorCodes$2.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
14364
14392
  fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
14365
14393
  })];
14366
14394
  case 5:
@@ -14405,7 +14433,7 @@
14405
14433
  case 1:
14406
14434
  existingAccount = _a.sent();
14407
14435
  if (!existingAccount || !existingAccount.updateDate) {
14408
- throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
14436
+ throw { code: ErrorCodes$2.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
14409
14437
  }
14410
14438
  account.updateDate = existingAccount.updateDate || account.updateDate;
14411
14439
  if (account.settings && existingAccount.settings) {
@@ -14418,12 +14446,12 @@
14418
14446
  delete json.profiles;
14419
14447
  delete json.mainProfile; // Not known on server
14420
14448
  return [4 /*yield*/, this.graphql.mutate({
14421
- mutation: isNew ? CreateMutation : SaveMutation,
14449
+ mutation: isNew ? CreateMutation : SaveMutation$1,
14422
14450
  variables: {
14423
14451
  account: json
14424
14452
  },
14425
14453
  error: {
14426
- code: ErrorCodes.SAVE_ACCOUNT_ERROR,
14454
+ code: ErrorCodes$2.SAVE_ACCOUNT_ERROR,
14427
14455
  message: 'ERROR.SAVE_ACCOUNT_ERROR'
14428
14456
  }
14429
14457
  })];
@@ -14457,7 +14485,7 @@
14457
14485
  case 1:
14458
14486
  isEmailExists = _a.sent();
14459
14487
  if (isEmailExists) {
14460
- throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
14488
+ throw { code: ErrorCodes$2.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
14461
14489
  }
14462
14490
  return [2 /*return*/];
14463
14491
  }
@@ -14507,7 +14535,7 @@
14507
14535
  locale: locale
14508
14536
  },
14509
14537
  error: {
14510
- code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
14538
+ code: ErrorCodes$2.SENT_CONFIRMATION_EMAIL_FAILED,
14511
14539
  message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
14512
14540
  }
14513
14541
  })];
@@ -14530,7 +14558,7 @@
14530
14558
  code: code
14531
14559
  },
14532
14560
  error: {
14533
- code: ErrorCodes.CONFIRM_EMAIL_FAILED,
14561
+ code: ErrorCodes$2.CONFIRM_EMAIL_FAILED,
14534
14562
  message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
14535
14563
  }
14536
14564
  })];
@@ -14552,7 +14580,7 @@
14552
14580
  interval: 10
14553
14581
  },
14554
14582
  error: {
14555
- code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
14583
+ code: ErrorCodes$2.SUBSCRIBE_ACCOUNT_ERROR,
14556
14584
  message: 'ERROR.ACCOUNT.SUBSCRIBE_ACCOUNT_ERROR'
14557
14585
  }
14558
14586
  }).subscribe({
@@ -14671,7 +14699,7 @@
14671
14699
  if (counter > 4) {
14672
14700
  if (this._debug)
14673
14701
  console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
14674
- throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
14702
+ throw { code: ErrorCodes$2.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
14675
14703
  }
14676
14704
  if (!token) return [3 /*break*/, 2];
14677
14705
  return [4 /*yield*/, this.graphql.query({
@@ -14680,7 +14708,7 @@
14680
14708
  token: token
14681
14709
  },
14682
14710
  error: {
14683
- code: ErrorCodes.UNAUTHORIZED,
14711
+ code: ErrorCodes$2.UNAUTHORIZED,
14684
14712
  message: 'ERROR.UNAUTHORIZED'
14685
14713
  },
14686
14714
  fetchPolicy: 'no-cache'
@@ -14697,7 +14725,7 @@
14697
14725
  _a.label = 2;
14698
14726
  case 2:
14699
14727
  challengeError = {
14700
- code: ErrorCodes.AUTH_CHALLENGE_ERROR,
14728
+ code: ErrorCodes$2.AUTH_CHALLENGE_ERROR,
14701
14729
  message: 'ERROR.AUTH_CHALLENGE_ERROR'
14702
14730
  };
14703
14731
  return [4 /*yield*/, this.graphql.query({
@@ -14731,7 +14759,7 @@
14731
14759
  };
14732
14760
  return AccountService;
14733
14761
  }(BaseGraphqlService));
14734
- 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(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
14762
+ 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(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
14735
14763
  AccountService.decorators = [
14736
14764
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
14737
14765
  ];
@@ -14744,7 +14772,7 @@
14744
14772
  { type: FileService },
14745
14773
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
14746
14774
  ]; };
14747
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
14775
+ 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;
14748
14776
 
14749
14777
  var Software_1, Configuration_1;
14750
14778
  // @dynamic
@@ -14986,13 +15014,13 @@
14986
15014
  /* ------------------------------------
14987
15015
  * GraphQL queries
14988
15016
  * ------------------------------------*/
14989
- var Fragments$1 = {
14990
- 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 "])))
15017
+ var Fragments = {
15018
+ 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 "])))
14991
15019
  };
14992
- 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);
15020
+ 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);
14993
15021
  // Save (create or update) account mutation
14994
- var SaveMutation$1 = 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);
14995
- 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"])));
15022
+ 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);
15023
+ 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"])));
14996
15024
  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"])));
14997
15025
  var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
14998
15026
  var ConfigService = /** @class */ (function (_super) {
@@ -15085,12 +15113,12 @@
15085
15113
  case 0:
15086
15114
  now = Date.now();
15087
15115
  console.debug('[config] Loading Pod configuration...');
15088
- query = opts && opts.query || LoadQuery$1;
15116
+ query = opts && opts.query || LoadQuery;
15089
15117
  variables = opts && opts.variables || undefined;
15090
15118
  return [4 /*yield*/, this.graphql.query({
15091
15119
  query: query,
15092
15120
  variables: variables,
15093
- error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
15121
+ error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
15094
15122
  fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
15095
15123
  })];
15096
15124
  case 1:
@@ -15124,12 +15152,12 @@
15124
15152
  console.debug('[config] Saving Pod configuration...', config);
15125
15153
  json = config.asObject();
15126
15154
  return [4 /*yield*/, this.graphql.mutate({
15127
- mutation: SaveMutation$1,
15155
+ mutation: SaveMutation,
15128
15156
  variables: {
15129
15157
  data: json
15130
15158
  },
15131
15159
  error: {
15132
- code: ErrorCodes.SAVE_CONFIG_ERROR,
15160
+ code: ErrorCodes$2.SAVE_CONFIG_ERROR,
15133
15161
  message: 'ERROR.SAVE_CONFIG_ERROR'
15134
15162
  }
15135
15163
  })];
@@ -15164,7 +15192,7 @@
15164
15192
  return [4 /*yield*/, this.graphql.query({
15165
15193
  query: CacheStatistics,
15166
15194
  variables: null,
15167
- error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
15195
+ error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
15168
15196
  fetchPolicy: 'network-only'
15169
15197
  })];
15170
15198
  case 1:
@@ -15188,7 +15216,7 @@
15188
15216
  return [4 /*yield*/, this.graphql.query({
15189
15217
  query: ClearCache,
15190
15218
  variables: variables,
15191
- error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
15219
+ error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
15192
15220
  fetchPolicy: 'network-only'
15193
15221
  })];
15194
15222
  case 1:
@@ -15389,7 +15417,7 @@
15389
15417
  };
15390
15418
  return ConfigService;
15391
15419
  }(BaseGraphqlService));
15392
- 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(ENVIRONMENT), i0.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
15420
+ 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(ENVIRONMENT), i0__namespace.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
15393
15421
  ConfigService.decorators = [
15394
15422
  { type: i0.Injectable, args: [{
15395
15423
  providedIn: 'root',
@@ -15407,9 +15435,9 @@
15407
15435
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
15408
15436
  { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
15409
15437
  ]; };
15410
- var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
15438
+ var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2, templateObject_5$1;
15411
15439
 
15412
- var moment$4 = momentImported__namespace;
15440
+ var moment$2 = momentImported__namespace;
15413
15441
  var PlatformService = /** @class */ (function () {
15414
15442
  function PlatformService(platform, cdkPlatform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser) {
15415
15443
  this.platform = platform;
@@ -15585,16 +15613,16 @@
15585
15613
  }
15586
15614
  // config moment lib
15587
15615
  try {
15588
- moment$4.locale(event.lang);
15616
+ moment$2.locale(event.lang);
15589
15617
  console.debug('[platform] Use locale {' + event.lang + '}');
15590
15618
  }
15591
15619
  // If error, fallback to en
15592
15620
  catch (err) {
15593
- moment$4.locale('en');
15621
+ moment$2.locale('en');
15594
15622
  console.warn('[platform] Unknown local for moment lib. Using default [en]');
15595
15623
  }
15596
15624
  // Config date adapter
15597
- _this.dateAdapter.setLocale(moment$4.locale());
15625
+ _this.dateAdapter.setLocale(moment$2.locale());
15598
15626
  }
15599
15627
  });
15600
15628
  this.settings.onChange.subscribe(function (data) {
@@ -15779,7 +15807,7 @@
15779
15807
  };
15780
15808
  return PlatformService;
15781
15809
  }());
15782
- 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)); }, token: PlatformService, providedIn: "root" });
15810
+ 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)); }, token: PlatformService, providedIn: "root" });
15783
15811
  PlatformService.decorators = [
15784
15812
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
15785
15813
  ];
@@ -15876,7 +15904,7 @@
15876
15904
  };
15877
15905
  return MatStepperI18n;
15878
15906
  }(stepper.MatStepperIntl));
15879
- MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
15907
+ MatStepperI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
15880
15908
  MatStepperI18n.decorators = [
15881
15909
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
15882
15910
  ];
@@ -16968,7 +16996,7 @@
16968
16996
  return 1;
16969
16997
  }
16970
16998
  }
16971
- var ɵ0$9 = function (defaultStateSize) { return [
16999
+ var ɵ0$1 = function (defaultStateSize) { return [
16972
17000
  Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
16973
17001
  Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
16974
17002
  Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
@@ -16976,7 +17004,7 @@
16976
17004
  var SCALE_OPTIONS_DEFAULT = {
16977
17005
  startColor: rgbArrayMap.red,
16978
17006
  startStates: [0, 2, 3],
16979
- startStepsFn: ɵ0$9
17007
+ startStepsFn: ɵ0$1
16980
17008
  };
16981
17009
  /**
16982
17010
  * Internal function, that create a colors scale, using iteration
@@ -17068,24 +17096,24 @@
17068
17096
  return result;
17069
17097
  }
17070
17098
 
17071
- var EntityTestClass = /** @class */ (function () {
17099
+ var EntityTestClass$1 = /** @class */ (function () {
17072
17100
  function EntityTestClass() {
17073
17101
  }
17074
17102
  return EntityTestClass;
17075
17103
  }());
17076
- var FAKE_ENTITIES = [
17104
+ var FAKE_ENTITIES$1 = [
17077
17105
  { id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
17078
17106
  { id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
17079
17107
  { id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
17080
17108
  ];
17081
- function deepCopy(values, size) {
17109
+ function deepCopy$1(values, size) {
17082
17110
  if (isNil(size)) {
17083
- return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
17111
+ return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
17084
17112
  }
17085
17113
  var result = [];
17086
17114
  var i = 1;
17087
17115
  while (result.length < size) {
17088
- result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
17116
+ result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
17089
17117
  var name = entity.name + ' #' + i;
17090
17118
  return Object.assign(Object.assign({}, entity), { id: i++, name: name });
17091
17119
  }));
@@ -17095,7 +17123,7 @@
17095
17123
  var AutocompleteTestPage = /** @class */ (function () {
17096
17124
  function AutocompleteTestPage(formBuilder) {
17097
17125
  this.formBuilder = formBuilder;
17098
- this._items = deepCopy(FAKE_ENTITIES, 100);
17126
+ this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
17099
17127
  this.$items = new rxjs.BehaviorSubject(undefined);
17100
17128
  this.autocompleteFields = new MatAutocompleteConfigHolder();
17101
17129
  this.memoryHide = false;
@@ -17140,7 +17168,7 @@
17140
17168
  });
17141
17169
  // From items
17142
17170
  this.autocompleteFields.add('entity-items-large', {
17143
- items: FAKE_ENTITIES.slice(),
17171
+ items: FAKE_ENTITIES$1.slice(),
17144
17172
  attributes: ['label', 'name', 'description', 'comments'],
17145
17173
  displayWith: this.entityToString
17146
17174
  });
@@ -17153,12 +17181,12 @@
17153
17181
  var _this = this;
17154
17182
  return __generator(this, function (_a) {
17155
17183
  data = {
17156
- entity: deepCopy(FAKE_ENTITIES)[1],
17184
+ entity: deepCopy$1(FAKE_ENTITIES$1)[1],
17157
17185
  // This item is NOT in the items list => i should be displayed anyway
17158
17186
  missingEntity: {
17159
17187
  id: -1, label: '??', name: 'Missing item'
17160
17188
  },
17161
- disableEntity: deepCopy(FAKE_ENTITIES)[2]
17189
+ disableEntity: deepCopy$1(FAKE_ENTITIES$1)[2]
17162
17190
  };
17163
17191
  this.form.setValue(data);
17164
17192
  // Load observables
@@ -17347,13 +17375,13 @@
17347
17375
  { type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_TESTING_PAGES,] }] }
17348
17376
  ]; };
17349
17377
 
17350
- var moment$5 = momentImported__namespace;
17378
+ var moment$1 = momentImported__namespace;
17351
17379
  var SwipeTestPage = /** @class */ (function () {
17352
17380
  function SwipeTestPage(formBuilder, dateFormatPipe) {
17353
17381
  this.formBuilder = formBuilder;
17354
17382
  this.dateFormatPipe = dateFormatPipe;
17355
17383
  this.$dates = new rxjs.BehaviorSubject(undefined);
17356
- this._today = moment$5().startOf('day');
17384
+ this._today = moment$1().startOf('day');
17357
17385
  this.form = formBuilder.group({
17358
17386
  empty: [null, i1.Validators.required],
17359
17387
  date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
@@ -17367,7 +17395,7 @@
17367
17395
  var _this = this;
17368
17396
  var dates = [];
17369
17397
  for (var d = 0; d < 7; d++) {
17370
- dates[d] = moment$5(this._today).add(d - 3, 'day');
17398
+ dates[d] = moment$1(this._today).add(d - 3, 'day');
17371
17399
  }
17372
17400
  this.$dates.next(dates);
17373
17401
  this.loadData();
@@ -18039,7 +18067,7 @@
18039
18067
  return FormArrayHelper;
18040
18068
  }());
18041
18069
 
18042
- var moment$6 = momentImported__namespace;
18070
+ var moment = momentImported__namespace;
18043
18071
  var DateTimeTestPage = /** @class */ (function () {
18044
18072
  function DateTimeTestPage(platform, formBuilder, cd) {
18045
18073
  this.platform = platform;
@@ -18074,7 +18102,7 @@
18074
18102
  var now, data;
18075
18103
  var _this = this;
18076
18104
  return __generator(this, function (_a) {
18077
- now = moment$6();
18105
+ now = moment();
18078
18106
  data = {
18079
18107
  empty: toDateISOString(now.clone().add(2, 'hours')),
18080
18108
  enable: toDateISOString(now),
@@ -18138,23 +18166,23 @@
18138
18166
  { type: i0.ChangeDetectorRef }
18139
18167
  ]; };
18140
18168
 
18141
- var EntityTestClass$1 = /** @class */ (function () {
18169
+ var EntityTestClass = /** @class */ (function () {
18142
18170
  function EntityTestClass() {
18143
18171
  }
18144
18172
  return EntityTestClass;
18145
18173
  }());
18146
- var FAKE_ENTITIES$1 = [
18174
+ var FAKE_ENTITIES = [
18147
18175
  { id: 1, label: 'AAA', name: 'Item A' },
18148
18176
  { id: 2, label: 'BBB', name: 'Item B' },
18149
18177
  { id: 3, label: 'CCC', name: 'Item C' }
18150
18178
  ];
18151
- function deepCopy$1(values) {
18152
- return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
18179
+ function deepCopy(values) {
18180
+ return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
18153
18181
  }
18154
18182
  var ChipsTestPage = /** @class */ (function () {
18155
18183
  function ChipsTestPage(formBuilder) {
18156
18184
  this.formBuilder = formBuilder;
18157
- this._items = deepCopy$1(FAKE_ENTITIES$1);
18185
+ this._items = deepCopy(FAKE_ENTITIES);
18158
18186
  this._$items = new rxjs.BehaviorSubject(undefined);
18159
18187
  this.autocompleteFields = new MatAutocompleteConfigHolder();
18160
18188
  this.form = formBuilder.group({
@@ -18174,7 +18202,7 @@
18174
18202
  });
18175
18203
  // From items
18176
18204
  this.autocompleteFields.add('entity-items', {
18177
- items: FAKE_ENTITIES$1.slice(),
18205
+ items: FAKE_ENTITIES.slice(),
18178
18206
  attributes: ['label', 'name'],
18179
18207
  displayWith: this.entityToString
18180
18208
  });
@@ -18197,8 +18225,8 @@
18197
18225
  data = {
18198
18226
  entity: [],
18199
18227
  // THis item is NOT in the items list => i should be displayed anyway
18200
- entityInitial: FAKE_ENTITIES$1.slice(1, 2),
18201
- disableEntity: FAKE_ENTITIES$1.slice(1, 2)
18228
+ entityInitial: FAKE_ENTITIES.slice(1, 2),
18229
+ disableEntity: FAKE_ENTITIES.slice(1, 2)
18202
18230
  };
18203
18231
  this.form.setValue(data);
18204
18232
  return [2 /*return*/];
@@ -18208,7 +18236,7 @@
18208
18236
  ChipsTestPage.prototype.loadItems = function () {
18209
18237
  return __awaiter(this, void 0, void 0, function () {
18210
18238
  return __generator(this, function (_a) {
18211
- this._$items.next(deepCopy$1(FAKE_ENTITIES$1));
18239
+ this._$items.next(deepCopy(FAKE_ENTITIES));
18212
18240
  return [2 /*return*/];
18213
18241
  });
18214
18242
  });
@@ -18245,7 +18273,7 @@
18245
18273
  { type: i1.FormBuilder }
18246
18274
  ]; };
18247
18275
 
18248
- var routes = [
18276
+ var routes$1 = [
18249
18277
  {
18250
18278
  path: '',
18251
18279
  pathMatch: 'full',
@@ -18295,7 +18323,7 @@
18295
18323
  i1.ReactiveFormsModule,
18296
18324
  SharedMaterialModule,
18297
18325
  i1$2.TranslateModule.forChild(),
18298
- i3.RouterModule.forChild(routes)
18326
+ i3.RouterModule.forChild(routes$1)
18299
18327
  ],
18300
18328
  declarations: [
18301
18329
  MaterialTestingPage,
@@ -19370,7 +19398,7 @@
19370
19398
  };
19371
19399
  return UserSettingsValidatorService;
19372
19400
  }(AppValidatorService));
19373
- UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
19401
+ UserSettingsValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
19374
19402
  UserSettingsValidatorService.decorators = [
19375
19403
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
19376
19404
  ];
@@ -19418,7 +19446,7 @@
19418
19446
  };
19419
19447
  return AccountValidatorService;
19420
19448
  }(AppValidatorService));
19421
- AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
19449
+ 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" });
19422
19450
  AccountValidatorService.decorators = [
19423
19451
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
19424
19452
  ];
@@ -20010,7 +20038,7 @@
20010
20038
  };
20011
20039
  return LocalSettingsValidatorService;
20012
20040
  }(AppValidatorService));
20013
- LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
20041
+ 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" });
20014
20042
  LocalSettingsValidatorService.decorators = [
20015
20043
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
20016
20044
  ];
@@ -20784,7 +20812,7 @@
20784
20812
  };
20785
20813
  return IsOnFieldModePipe;
20786
20814
  }());
20787
- IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
20815
+ IsOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
20788
20816
  IsOnFieldModePipe.decorators = [
20789
20817
  { type: i0.Pipe, args: [{
20790
20818
  name: 'isOnField'
@@ -20799,7 +20827,7 @@
20799
20827
  };
20800
20828
  return IsNotOnFieldModePipe;
20801
20829
  }());
20802
- IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
20830
+ IsNotOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
20803
20831
  IsNotOnFieldModePipe.decorators = [
20804
20832
  { type: i0.Pipe, args: [{
20805
20833
  name: 'isNotOnField'
@@ -20817,7 +20845,7 @@
20817
20845
  };
20818
20846
  return PersonToStringPipe;
20819
20847
  }());
20820
- PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
20848
+ PersonToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
20821
20849
  PersonToStringPipe.decorators = [
20822
20850
  { type: i0.Pipe, args: [{
20823
20851
  name: 'personToString'
@@ -21052,7 +21080,7 @@
21052
21080
  };
21053
21081
  return IsLoginAccountPipe;
21054
21082
  }());
21055
- IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
21083
+ IsLoginAccountPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
21056
21084
  IsLoginAccountPipe.decorators = [
21057
21085
  { type: i0.Pipe, args: [{
21058
21086
  name: 'isLogin'
@@ -21067,7 +21095,7 @@
21067
21095
  };
21068
21096
  return AccountToStringPipe;
21069
21097
  }());
21070
- AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
21098
+ AccountToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
21071
21099
  AccountToStringPipe.decorators = [
21072
21100
  { type: i0.Pipe, args: [{
21073
21101
  name: 'accountToString'
@@ -21085,7 +21113,7 @@
21085
21113
  };
21086
21114
  return DepartmentToStringPipe;
21087
21115
  }());
21088
- DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
21116
+ DepartmentToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
21089
21117
  DepartmentToStringPipe.decorators = [
21090
21118
  { type: i0.Pipe, args: [{
21091
21119
  name: 'departmentToString'
@@ -21120,7 +21148,7 @@
21120
21148
  };
21121
21149
  return MenuService;
21122
21150
  }());
21123
- MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
21151
+ MenuService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
21124
21152
  MenuService.decorators = [
21125
21153
  { type: i0.Injectable, args: [{
21126
21154
  providedIn: 'root'
@@ -21699,7 +21727,7 @@
21699
21727
  };
21700
21728
  return AuthGuardService;
21701
21729
  }());
21702
- 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" });
21730
+ 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" });
21703
21731
  AuthGuardService.decorators = [
21704
21732
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
21705
21733
  ];
@@ -21750,10 +21778,10 @@
21750
21778
  query: query,
21751
21779
  variables: { id: id },
21752
21780
  fetchPolicy: opts && opts.fetchPolicy || undefined,
21753
- error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
21781
+ error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
21754
21782
  })
21755
- .pipe(operators.map(function (_a) {
21756
- var data = _a.data;
21783
+ .pipe(operators.map(function (_b) {
21784
+ var data = _b.data;
21757
21785
  return (!opts || opts.toEntity !== false)
21758
21786
  ? (data && _this.fromObject(data))
21759
21787
  : data;
@@ -21762,8 +21790,8 @@
21762
21790
  BaseEntityService.prototype.load = function (id, opts) {
21763
21791
  return __awaiter(this, void 0, void 0, function () {
21764
21792
  var query, data;
21765
- return __generator(this, function (_a) {
21766
- switch (_a.label) {
21793
+ return __generator(this, function (_b) {
21794
+ switch (_b.label) {
21767
21795
  case 0:
21768
21796
  if (this._debug)
21769
21797
  console.debug(this._logPrefix + ("Loading " + this._logTypeName + " {" + id + "}..."));
@@ -21772,10 +21800,10 @@
21772
21800
  query: query,
21773
21801
  variables: { id: id },
21774
21802
  fetchPolicy: opts && opts.fetchPolicy || undefined,
21775
- error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
21803
+ error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
21776
21804
  })];
21777
21805
  case 1:
21778
- data = (_a.sent()).data;
21806
+ data = (_b.sent()).data;
21779
21807
  // Convert to entity
21780
21808
  return [2 /*return*/, (!opts || opts.toEntity !== false)
21781
21809
  ? (data && this.fromObject(data))
@@ -21808,11 +21836,11 @@
21808
21836
  totalFieldName: withTotal ? 'total' : undefined,
21809
21837
  insertFilterFn: filter && filter.asFilterFn(),
21810
21838
  variables: variables,
21811
- error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
21839
+ error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
21812
21840
  fetchPolicy: opts && opts.fetchPolicy || undefined
21813
21841
  })
21814
- .pipe(operators.map(function (_a) {
21815
- var data = _a.data, total = _a.total;
21842
+ .pipe(operators.map(function (_b) {
21843
+ var data = _b.data, total = _b.total;
21816
21844
  // Convert to entity (if need)
21817
21845
  var entities = (!opts || opts.toEntity !== false)
21818
21846
  ? (data || []).map(function (json) { return _this.fromObject(json); })
@@ -21826,10 +21854,10 @@
21826
21854
  };
21827
21855
  BaseEntityService.prototype.loadAll = function (offset, size, sortBy, sortDirection, filter, opts) {
21828
21856
  return __awaiter(this, void 0, void 0, function () {
21829
- var debug, variables, now, withTotal, query, _a, data, total, entities, res, nextOffset_1;
21857
+ var debug, variables, now, withTotal, query, _b, data, total, entities, res, nextOffset_1;
21830
21858
  var _this = this;
21831
- return __generator(this, function (_b) {
21832
- switch (_b.label) {
21859
+ return __generator(this, function (_c) {
21860
+ switch (_c.label) {
21833
21861
  case 0:
21834
21862
  debug = this._debug && (!opts || opts.debug !== false);
21835
21863
  filter = this.asFilter(filter);
@@ -21850,11 +21878,11 @@
21850
21878
  return [4 /*yield*/, this.graphql.query({
21851
21879
  query: query,
21852
21880
  variables: variables,
21853
- error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
21881
+ error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
21854
21882
  fetchPolicy: opts && opts.fetchPolicy || 'network-only'
21855
21883
  })];
21856
21884
  case 1:
21857
- _a = _b.sent(), data = _a.data, total = _a.total;
21885
+ _b = _c.sent(), data = _b.data, total = _b.total;
21858
21886
  entities = (!opts || opts.toEntity !== false) ?
21859
21887
  (data || []).map(function (json) { return _this.fromObject(json); }) :
21860
21888
  (data || []);
@@ -21876,12 +21904,44 @@
21876
21904
  });
21877
21905
  });
21878
21906
  };
21907
+ BaseEntityService.prototype.countAll = function (filter, opts) {
21908
+ var _a;
21909
+ return __awaiter(this, void 0, void 0, function () {
21910
+ var res;
21911
+ return __generator(this, function (_b) {
21912
+ switch (_b.label) {
21913
+ case 0:
21914
+ if (!!this.queries.countAll) return [3 /*break*/, 2];
21915
+ // Fail if no loadAll (cannot count)
21916
+ if (!this.queries.loadAllWithTotal)
21917
+ throw new Error('Not implemented');
21918
+ return [4 /*yield*/, this.loadAll(0, 1, null, null, filter, { withTotal: true })];
21919
+ case 1:
21920
+ // Use loadAll query, with size = 0;
21921
+ return [2 /*return*/, ((_a = (_b.sent())) === null || _a === void 0 ? void 0 : _a.total) || 0];
21922
+ case 2:
21923
+ filter = this.asFilter(filter);
21924
+ return [4 /*yield*/, this.graphql.query({
21925
+ query: this.queries.countAll,
21926
+ variables: {
21927
+ filter: filter && filter.asPodObject()
21928
+ },
21929
+ error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
21930
+ fetchPolicy: opts && opts.fetchPolicy || 'network-only'
21931
+ })];
21932
+ case 3:
21933
+ res = _b.sent();
21934
+ return [2 /*return*/, res.total];
21935
+ }
21936
+ });
21937
+ });
21938
+ };
21879
21939
  BaseEntityService.prototype.saveAll = function (entities, opts) {
21880
21940
  return __awaiter(this, void 0, void 0, function () {
21881
21941
  var hasNewEntities, json, now;
21882
21942
  var _this = this;
21883
- return __generator(this, function (_a) {
21884
- switch (_a.label) {
21943
+ return __generator(this, function (_b) {
21944
+ switch (_b.label) {
21885
21945
  case 0:
21886
21946
  if (isEmptyArray(entities))
21887
21947
  return [2 /*return*/, entities]; // Nothing to save: skip
@@ -21908,9 +21968,9 @@
21908
21968
  variables: {
21909
21969
  data: json
21910
21970
  },
21911
- error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
21912
- update: function (proxy, _a) {
21913
- var data = _a.data;
21971
+ error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
21972
+ update: function (proxy, _b) {
21973
+ var data = _b.data;
21914
21974
  var savedEntities = data && data.data;
21915
21975
  if (savedEntities) {
21916
21976
  // Update entities (id and update date)
@@ -21934,7 +21994,7 @@
21934
21994
  }
21935
21995
  })];
21936
21996
  case 1:
21937
- _a.sent();
21997
+ _b.sent();
21938
21998
  return [2 /*return*/, entities];
21939
21999
  }
21940
22000
  });
@@ -21950,15 +22010,15 @@
21950
22010
  return __awaiter(this, void 0, void 0, function () {
21951
22011
  var data, json, isNew, now;
21952
22012
  var _this = this;
21953
- return __generator(this, function (_a) {
21954
- switch (_a.label) {
22013
+ return __generator(this, function (_b) {
22014
+ switch (_b.label) {
21955
22015
  case 0:
21956
22016
  if (!!this.mutations.save) return [3 /*break*/, 2];
21957
22017
  if (!this.mutations.saveAll)
21958
22018
  throw new Error('Not implemented');
21959
22019
  return [4 /*yield*/, this.saveAll([entity], opts)];
21960
22020
  case 1:
21961
- data = _a.sent();
22021
+ data = _b.sent();
21962
22022
  return [2 /*return*/, data && data[0]];
21963
22023
  case 2:
21964
22024
  // Fill default properties
@@ -21975,9 +22035,9 @@
21975
22035
  variables: {
21976
22036
  data: json
21977
22037
  },
21978
- error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
21979
- update: function (cache, _a) {
21980
- var data = _a.data;
22038
+ error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
22039
+ update: function (cache, _b) {
22040
+ var data = _b.data;
21981
22041
  // Update entity
21982
22042
  var savedEntity = data && data.data;
21983
22043
  _this.copyIdAndUpdateDate(savedEntity, entity);
@@ -21996,7 +22056,7 @@
21996
22056
  }
21997
22057
  })];
21998
22058
  case 3:
21999
- _a.sent();
22059
+ _b.sent();
22000
22060
  return [2 /*return*/, entity];
22001
22061
  }
22002
22062
  });
@@ -22009,8 +22069,8 @@
22009
22069
  return __awaiter(this, void 0, void 0, function () {
22010
22070
  var ids, now;
22011
22071
  var _this = this;
22012
- return __generator(this, function (_a) {
22013
- switch (_a.label) {
22072
+ return __generator(this, function (_b) {
22073
+ switch (_b.label) {
22014
22074
  case 0:
22015
22075
  if (!this.mutations.deleteAll) {
22016
22076
  if (!this.mutations.delete)
@@ -22033,7 +22093,7 @@
22033
22093
  refetchQueries: this.getRefetchQueriesForMutation(opts),
22034
22094
  awaitRefetchQueries: opts && opts.awaitRefetchQueries,
22035
22095
  variables: { ids: ids },
22036
- error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
22096
+ error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
22037
22097
  update: function (cache, res) {
22038
22098
  // Remove from cache
22039
22099
  if (_this.watchQueriesUpdatePolicy === 'update-cache') {
@@ -22050,7 +22110,7 @@
22050
22110
  }
22051
22111
  })];
22052
22112
  case 1:
22053
- _a.sent();
22113
+ _b.sent();
22054
22114
  return [2 /*return*/];
22055
22115
  }
22056
22116
  });
@@ -22063,15 +22123,15 @@
22063
22123
  return __awaiter(this, void 0, void 0, function () {
22064
22124
  var data, id, now;
22065
22125
  var _this = this;
22066
- return __generator(this, function (_a) {
22067
- switch (_a.label) {
22126
+ return __generator(this, function (_b) {
22127
+ switch (_b.label) {
22068
22128
  case 0:
22069
22129
  if (!!this.mutations.delete) return [3 /*break*/, 2];
22070
22130
  if (!this.mutations.deleteAll)
22071
22131
  throw new Error('Not implemented');
22072
22132
  return [4 /*yield*/, this.deleteAll([entity], opts)];
22073
22133
  case 1:
22074
- data = _a.sent();
22134
+ data = _b.sent();
22075
22135
  return [2 /*return*/, data && data[0]];
22076
22136
  case 2:
22077
22137
  // Nothing to save: skip
@@ -22086,7 +22146,7 @@
22086
22146
  refetchQueries: this.getRefetchQueriesForMutation(opts),
22087
22147
  awaitRefetchQueries: opts && opts.awaitRefetchQueries,
22088
22148
  variables: { id: id },
22089
- error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
22149
+ error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
22090
22150
  update: function (proxy, res) {
22091
22151
  // Remove from cache
22092
22152
  if (_this.watchQueriesUpdatePolicy === 'update-cache') {
@@ -22103,7 +22163,7 @@
22103
22163
  }
22104
22164
  })];
22105
22165
  case 3:
22106
- _a.sent();
22166
+ _b.sent();
22107
22167
  return [2 /*return*/];
22108
22168
  }
22109
22169
  });
@@ -22125,12 +22185,12 @@
22125
22185
  query: opts && opts.query || this.subscriptions.listenChanges,
22126
22186
  variables: variables,
22127
22187
  error: {
22128
- code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
22188
+ code: ErrorCodes$2.SUBSCRIBE_DATA_ERROR,
22129
22189
  message: 'ERROR.SUBSCRIBE_DATA_ERROR'
22130
22190
  }
22131
22191
  })
22132
- .pipe(operators.map(function (_a) {
22133
- var data = _a.data;
22192
+ .pipe(operators.map(function (_b) {
22193
+ var data = _b.data;
22134
22194
  var entity = (!opts || opts.toEntity !== false) ? data && _this.fromObject(data) : data;
22135
22195
  if (entity && _this._debug)
22136
22196
  console.debug(_this._logPrefix + ("[WS] Received changes on " + _this._logTypeName + " {" + id + "}"), entity);
@@ -22314,7 +22374,7 @@
22314
22374
  if (this._debug)
22315
22375
  invalidRows.forEach(this.logRowErrors);
22316
22376
  // Stop with an error
22317
- throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
22377
+ throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
22318
22378
  }
22319
22379
  this._editingRowCount = 0;
22320
22380
  data = void 0;
@@ -22441,8 +22501,10 @@
22441
22501
  };
22442
22502
  EntitiesTableDataSource.prototype.delete = function (id) {
22443
22503
  var _this = this;
22444
- if (id === -1)
22445
- return; // new row: no data to delete
22504
+ // If new row: not need to propagate to the dataService
22505
+ if (id === -1) {
22506
+ return _super_1.prototype.delete.call(this, id);
22507
+ }
22446
22508
  var row = this.getRow(id);
22447
22509
  if (!row) {
22448
22510
  console.error("[table-datasource] Row to delete with id=" + id + " not found");
@@ -23262,13 +23324,13 @@
23262
23324
  case 0:
23263
23325
  opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
23264
23326
  if (this.readOnly) {
23265
- throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
23327
+ throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
23266
23328
  }
23267
23329
  this.resetError();
23268
23330
  // Keep edited row id (should be done BEFORE confirmEditCreate() )
23269
23331
  this.previouslySavedEditedRowId = opts.keepEditing && ((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined;
23270
23332
  if (!this.confirmEditCreate()) {
23271
- throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
23333
+ throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
23272
23334
  }
23273
23335
  _d.label = 1;
23274
23336
  case 1:
@@ -23429,7 +23491,7 @@
23429
23491
  switch (_d.label) {
23430
23492
  case 0:
23431
23493
  if (this.readOnly) {
23432
- throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
23494
+ throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
23433
23495
  }
23434
23496
  if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
23435
23497
  return [2 /*return*/, 0]; // SKip
@@ -23443,6 +23505,10 @@
23443
23505
  canDelete = _d.sent();
23444
23506
  if (!canDelete)
23445
23507
  return [2 /*return*/, 0]; // Cannot delete
23508
+ if (!this.saveBeforeDelete) return [3 /*break*/, 3];
23509
+ // Cancel invalid rows (because of save() will failed if there is invalid rows)
23510
+ rows.filter(function (row) { var _a; return !((_a = row.validator) === null || _a === void 0 ? void 0 : _a.valid); })
23511
+ .forEach(function (row) { return row.cancelOrDelete(); });
23446
23512
  return [4 /*yield*/, this.saveBeforeAction('delete')];
23447
23513
  case 2:
23448
23514
  saved = _d.sent();
@@ -23450,6 +23516,8 @@
23450
23516
  // Stop if save cancelled or save failed
23451
23517
  return [2 /*return*/];
23452
23518
  }
23519
+ _d.label = 3;
23520
+ case 3:
23453
23521
  if (this.debug)
23454
23522
  console.debug('[table] Delete selection...');
23455
23523
  rowsToDelete = rows.slice()
@@ -23457,12 +23525,12 @@
23457
23525
  // This is a workaround, need because row.delete() has async execution
23458
23526
  // and index cache is updated with a delay)
23459
23527
  .sort(function (a, b) { return a.id > b.id ? -1 : 1; });
23460
- _d.label = 3;
23461
- case 3:
23462
- _d.trys.push([3, 5, , 6]);
23528
+ _d.label = 4;
23529
+ case 4:
23530
+ _d.trys.push([4, 6, , 7]);
23463
23531
  deleteCount = rowsToDelete.length;
23464
23532
  return [4 /*yield*/, this._dataSource.deleteAll(rowsToDelete)];
23465
- case 4:
23533
+ case 5:
23466
23534
  _d.sent();
23467
23535
  // Not need to update manually, because watchALl().subscribe() will update this count
23468
23536
  //this.totalRowCount -= deleteCount;
@@ -23473,11 +23541,11 @@
23473
23541
  this.markForCheck();
23474
23542
  this.onAfterDeletedRows.next(rowsToDelete);
23475
23543
  return [2 /*return*/, deleteCount];
23476
- case 5:
23544
+ case 6:
23477
23545
  err_2 = _d.sent();
23478
23546
  this.setError(err_2 && err_2.message || err_2);
23479
23547
  throw err_2;
23480
- case 6: return [2 /*return*/];
23548
+ case 7: return [2 /*return*/];
23481
23549
  }
23482
23550
  });
23483
23551
  });
@@ -24247,6 +24315,7 @@
24247
24315
  { type: i0.Injector }
24248
24316
  ]; };
24249
24317
  AppTable.propDecorators = {
24318
+ settingsId: [{ type: i0.Input }],
24250
24319
  debug: [{ type: i0.Input }],
24251
24320
  i18nColumnPrefix: [{ type: i0.Input }],
24252
24321
  i18nColumnSuffix: [{ type: i0.Input }],
@@ -24927,7 +24996,7 @@
24927
24996
  _this.onUpdateView = new i0.EventEmitter();
24928
24997
  options = Object.assign({
24929
24998
  // Default options
24930
- enableListenChanges: (injector.get(ENVIRONMENT).listenRemoteChanges === true), pathIdAttribute: 'id', autoLoad: true, autoLoadDelay: 0, autoUpdateRoute: true, i18nPrefix: ''
24999
+ enableListenChanges: (injector.get(ENVIRONMENT).listenRemoteChanges === true), pathIdAttribute: 'id', autoLoad: true, autoUpdateRoute: true, i18nPrefix: ''
24931
25000
  }, options);
24932
25001
  _this.settings = injector.get(LocalSettingsService);
24933
25002
  _this.cd = injector.get(i0.ChangeDetectorRef);
@@ -25058,37 +25127,41 @@
25058
25127
  if (!this.dataService)
25059
25128
  throw new Error('Cannot load data: missing \'dataService\'!');
25060
25129
  this.error = null;
25061
- if (!isNil(id)) return [3 /*break*/, 2];
25130
+ if (!isNil(id)) return [3 /*break*/, 3];
25062
25131
  data = new this.dataType();
25063
25132
  this._usageMode = this.computeUsageMode(data);
25064
25133
  return [4 /*yield*/, this.onNewEntity(data, opts)];
25065
25134
  case 1:
25066
25135
  _a.sent();
25067
- this.updateView(data, Object.assign({ openTabIndex: 0 }, opts));
25068
- this.markAsLoaded({ emitEvent: false });
25069
- return [3 /*break*/, 6];
25136
+ return [4 /*yield*/, this.updateView(data, Object.assign({ openTabIndex: 0 }, opts))];
25070
25137
  case 2:
25071
- _a.trys.push([2, 5, , 6]);
25072
- return [4 /*yield*/, this.dataService.load(id, opts)];
25138
+ _a.sent();
25139
+ this.markAsLoaded({ emitEvent: false });
25140
+ return [3 /*break*/, 8];
25073
25141
  case 3:
25142
+ _a.trys.push([3, 7, , 8]);
25143
+ return [4 /*yield*/, this.dataService.load(id, opts)];
25144
+ case 4:
25074
25145
  data = _a.sent();
25075
25146
  if (!data)
25076
- throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
25147
+ throw { code: ErrorCodes$2.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
25077
25148
  this._usageMode = this.computeUsageMode(data);
25078
25149
  return [4 /*yield*/, this.onEntityLoaded(data, opts)];
25079
- case 4:
25150
+ case 5:
25151
+ _a.sent();
25152
+ return [4 /*yield*/, this.updateView(data, opts)];
25153
+ case 6:
25080
25154
  _a.sent();
25081
- this.updateView(data, opts);
25082
25155
  this.markAsLoaded({ emitEvent: false });
25083
25156
  this.startListenRemoteChanges();
25084
- return [3 /*break*/, 6];
25085
- case 5:
25157
+ return [3 /*break*/, 8];
25158
+ case 7:
25086
25159
  err_1 = _a.sent();
25087
25160
  this.setError(err_1);
25088
25161
  this.selectedTabIndex = 0;
25089
25162
  this.markAsLoaded({ emitEvent: false });
25090
- return [3 /*break*/, 6];
25091
- case 6: return [2 /*return*/];
25163
+ return [3 /*break*/, 8];
25164
+ case 8: return [2 /*return*/];
25092
25165
  }
25093
25166
  });
25094
25167
  });
@@ -25118,32 +25191,47 @@
25118
25191
  .add(function () { return _this.hasRemoteListener = false; }));
25119
25192
  };
25120
25193
  AppEntityEditor.prototype.updateView = function (data, opts) {
25121
- var _this = this;
25122
- var idChanged = isNotNil(data.id)
25123
- && this.previousDataId !== undefined // Ignore if first loading (=undefined)
25124
- && this.previousDataId !== data.id;
25125
- opts = Object.assign({ updateRoute: this._autoUpdateRoute && idChanged && !this.loading, openTabIndex: this._autoOpenNextTab && idChanged && isNil(this.previousDataId) && this.selectedTabIndex < this.tabCount - 1 ? this.selectedTabIndex + 1 : undefined }, opts);
25126
- this.data = data;
25127
- this.previousDataId = data.id || null;
25128
- this.setValue(data);
25129
- if (!opts || opts.emitEvent !== false) {
25130
- this.markAsPristine();
25131
- this.markAsUntouched();
25132
- this.updateViewState(data);
25133
- // Need to update route
25134
- if (opts.updateRoute === true) {
25135
- this.updateTabAndRoute(data, opts)
25136
- // Update the title - should be executed AFTER updateRoute because of path change - fix #185
25137
- .then(function () { return _this.updateTitle(data); });
25138
- }
25139
- else {
25140
- // Update the tag group index
25141
- this.updateTabIndex(opts.openTabIndex);
25142
- // Update the title.
25143
- this.updateTitle(data);
25144
- }
25145
- this.onUpdateView.emit(data);
25146
- }
25194
+ return __awaiter(this, void 0, void 0, function () {
25195
+ var idChanged, promiseOrVoid;
25196
+ var _this = this;
25197
+ return __generator(this, function (_a) {
25198
+ switch (_a.label) {
25199
+ case 0:
25200
+ idChanged = isNotNil(data.id)
25201
+ && this.previousDataId !== undefined // Ignore if first loading (=undefined)
25202
+ && this.previousDataId !== data.id;
25203
+ opts = Object.assign({ updateRoute: this._autoUpdateRoute && idChanged && !this.loading, openTabIndex: this._autoOpenNextTab && idChanged && isNil(this.previousDataId) && this.selectedTabIndex < this.tabCount - 1 ? this.selectedTabIndex + 1 : undefined }, opts);
25204
+ this.data = data;
25205
+ this.previousDataId = data.id || null;
25206
+ promiseOrVoid = this.setValue(data);
25207
+ if (!promiseOrVoid) return [3 /*break*/, 2];
25208
+ return [4 /*yield*/, promiseOrVoid];
25209
+ case 1:
25210
+ _a.sent();
25211
+ _a.label = 2;
25212
+ case 2:
25213
+ if (!opts || opts.emitEvent !== false) {
25214
+ this.markAsPristine();
25215
+ this.markAsUntouched();
25216
+ this.updateViewState(data);
25217
+ // Need to update route
25218
+ if (opts.updateRoute === true) {
25219
+ this.updateTabAndRoute(data, opts)
25220
+ // Update the title - should be executed AFTER updateRoute because of path change - fix #185
25221
+ .then(function () { return _this.updateTitle(data); });
25222
+ }
25223
+ else {
25224
+ // Update the tag group index
25225
+ this.updateTabIndex(opts.openTabIndex);
25226
+ // Update the title.
25227
+ this.updateTitle(data);
25228
+ }
25229
+ this.onUpdateView.emit(data);
25230
+ }
25231
+ return [2 /*return*/];
25232
+ }
25233
+ });
25234
+ });
25147
25235
  };
25148
25236
  /**
25149
25237
  * Enable or disable state
@@ -25464,6 +25552,13 @@
25464
25552
  });
25465
25553
  });
25466
25554
  };
25555
+ AppEntityEditor.prototype.onBeforeEntityLoad = function () {
25556
+ return __awaiter(this, void 0, void 0, function () {
25557
+ return __generator(this, function (_a) {
25558
+ return [2 /*return*/];
25559
+ });
25560
+ });
25561
+ };
25467
25562
  AppEntityEditor.prototype.onNewEntity = function (data, options) {
25468
25563
  return __awaiter(this, void 0, void 0, function () {
25469
25564
  return __generator(this, function (_a) {
@@ -25795,10 +25890,10 @@
25795
25890
  exports.UserEventFilter = __decorate([
25796
25891
  EntityClass({ typename: 'UserEventVO' })
25797
25892
  ], exports.UserEventFilter);
25798
- 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);
25799
- 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);
25800
- 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"])));
25801
- 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);
25893
+ 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);
25894
+ 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);
25895
+ 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"])));
25896
+ 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);
25802
25897
  var UserEventService = /** @class */ (function (_super) {
25803
25898
  __extends(UserEventService, _super);
25804
25899
  function UserEventService(graphql, accountService, network, translate, toastController, environment) {
@@ -26119,7 +26214,7 @@
26119
26214
  };
26120
26215
  return UserEventService;
26121
26216
  }(BaseGraphqlService));
26122
- 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" });
26217
+ 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" });
26123
26218
  UserEventService.decorators = [
26124
26219
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
26125
26220
  ];
@@ -26131,7 +26226,7 @@
26131
26226
  { type: i1$5.ToastController },
26132
26227
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
26133
26228
  ]; };
26134
- var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
26229
+ var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1;
26135
26230
 
26136
26231
  var ICONS_MAP = {
26137
26232
  DEBUG_DATA: { matIcon: 'bug_report' },
@@ -26392,16 +26487,16 @@
26392
26487
  ], exports.PersonFilter);
26393
26488
 
26394
26489
  var PersonFragments = {
26395
- 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 }"])))
26490
+ 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 }"])))
26396
26491
  };
26397
26492
  // Load persons query
26398
26493
  var PersonQueries = {
26399
- 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),
26400
- 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)
26494
+ 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),
26495
+ 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)
26401
26496
  };
26402
26497
  var PersonMutations = {
26403
- 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),
26404
- 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 }"])))
26498
+ 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),
26499
+ 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 }"])))
26405
26500
  };
26406
26501
  var PersonService = /** @class */ (function (_super_1) {
26407
26502
  __extends(PersonService, _super_1);
@@ -26524,7 +26619,7 @@
26524
26619
  };
26525
26620
  return PersonService;
26526
26621
  }(BaseEntityService));
26527
- 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" });
26622
+ 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" });
26528
26623
  PersonService.decorators = [
26529
26624
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
26530
26625
  ];
@@ -26534,7 +26629,7 @@
26534
26629
  { type: NetworkService },
26535
26630
  { type: EntitiesStorage }
26536
26631
  ]; };
26537
- var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
26632
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
26538
26633
 
26539
26634
  var PersonValidatorService = /** @class */ (function () {
26540
26635
  function PersonValidatorService(formBuilder, accountValidatorService) {
@@ -26557,7 +26652,7 @@
26557
26652
  };
26558
26653
  return PersonValidatorService;
26559
26654
  }());
26560
- PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
26655
+ 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" });
26561
26656
  PersonValidatorService.decorators = [
26562
26657
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
26563
26658
  ];
@@ -26729,7 +26824,7 @@
26729
26824
  ],
26730
26825
  animations: [slideUpDownAnimation],
26731
26826
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
26732
- styles: [".mat-expansion-panel{margin-bottom:5px}.mat-expansion-panel .form-container mat-form-field{width:100%}.mat-expansion-panel mat-action-row ion-label{line-height:36px}.table-container{height:100%}.mat-table .mat-cell .avatar{height:40px;width:40px;margin:2px 0 0;background-size:cover;background-repeat:no-repeat;background-position:50%}.mat-table .mat-column-avatar{min-width:50px}.mat-table .mat-column-profile{min-width:110px}.mat-table .mat-column-status{min-width:130px}.mat-table .mat-column-department{min-width:150px}"]
26827
+ styles: [".mat-expansion-panel{margin-bottom:5px}.mat-expansion-panel .form-container mat-form-field{width:100%}.mat-expansion-panel mat-action-row ion-label{line-height:36px}.table-container{height:calc(100%)}.mat-table .mat-cell .avatar{height:40px;width:40px;margin:2px 0 0;background-size:cover;background-repeat:no-repeat;background-position:50%}.mat-table .mat-column-avatar{min-width:50px}.mat-table .mat-column-profile{min-width:110px}.mat-table .mat-column-status{min-width:130px}.mat-table .mat-column-department{min-width:150px}"]
26733
26828
  },] }
26734
26829
  ];
26735
26830
  UsersPage.ctorParameters = function () { return [
@@ -26778,16 +26873,16 @@
26778
26873
  ];
26779
26874
  AdminModule.ctorParameters = function () { return []; };
26780
26875
 
26781
- var ɵ0$a = {
26876
+ var ɵ0 = {
26782
26877
  profile: 'ADMIN'
26783
26878
  };
26784
- var routes$1 = [
26879
+ var routes = [
26785
26880
  {
26786
26881
  path: 'users',
26787
26882
  pathMatch: 'full',
26788
26883
  component: UsersPage,
26789
26884
  canActivate: [AuthGuardService],
26790
- data: ɵ0$a
26885
+ data: ɵ0
26791
26886
  }
26792
26887
  ];
26793
26888
  var AdminRoutingModule = /** @class */ (function () {
@@ -26800,13 +26895,13 @@
26800
26895
  imports: [
26801
26896
  SharedRoutingModule,
26802
26897
  AdminModule,
26803
- i3.RouterModule.forChild(routes$1)
26898
+ i3.RouterModule.forChild(routes)
26804
26899
  ],
26805
26900
  exports: [i3.RouterModule]
26806
26901
  },] }
26807
26902
  ];
26808
26903
 
26809
- var ErrorCodes$2 = {
26904
+ var ErrorCodes = {
26810
26905
  LOAD_PERSONS_ERROR: 100,
26811
26906
  SAVE_PERSONS_ERROR: 101,
26812
26907
  DELETE_PERSONS_ERROR: 102,
@@ -26914,7 +27009,7 @@
26914
27009
  exports.EntityStore = EntityStore;
26915
27010
  exports.EntityUtils = EntityUtils;
26916
27011
  exports.Environment = Environment;
26917
- exports.ErrorCodes = ErrorCodes$2;
27012
+ exports.ErrorCodes = ErrorCodes;
26918
27013
  exports.EvenPipe = EvenPipe;
26919
27014
  exports.FileService = FileService;
26920
27015
  exports.FileSizePipe = FileSizePipe;
@@ -26922,7 +27017,7 @@
26922
27017
  exports.FormButtonsBarComponent = FormButtonsBarComponent;
26923
27018
  exports.FormButtonsBarToken = FormButtonsBarToken;
26924
27019
  exports.FormFieldValuesHolder = FormFieldValuesHolder;
26925
- exports.Fragments = Fragments$1;
27020
+ exports.Fragments = Fragments;
26926
27021
  exports.GraphqlService = GraphqlService;
26927
27022
  exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
26928
27023
  exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
@@ -27101,6 +27196,7 @@
27101
27196
  exports.isInt = isInt;
27102
27197
  exports.isNil = isNil;
27103
27198
  exports.isNilOrBlank = isNilOrBlank;
27199
+ exports.isNilOrNaN = isNilOrNaN;
27104
27200
  exports.isNotEmptyArray = isNotEmptyArray;
27105
27201
  exports.isNotNil = isNotNil;
27106
27202
  exports.isNotNilOrBlank = isNotNilOrBlank;