@sumaris-net/ngx-components 0.13.0 → 0.13.4

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,34 +26,11 @@
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);
36
29
  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);
44
30
  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$3 = /*#__PURE__*/_interopNamespace(i2$3);
50
31
  var QueueLink__default = /*#__PURE__*/_interopDefaultLegacy(QueueLink);
51
32
  var SerializingLink__default = /*#__PURE__*/_interopDefaultLegacy(SerializingLink);
52
33
  var loggerLink__default = /*#__PURE__*/_interopDefaultLegacy(loggerLink);
53
- var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$3);
54
- var i13__namespace = /*#__PURE__*/_interopNamespace(i13);
55
- var i14__namespace = /*#__PURE__*/_interopNamespace(i14);
56
- var i16__namespace = /*#__PURE__*/_interopNamespace(i16);
57
34
 
58
35
  var ENVIRONMENT = new i0.InjectionToken('ENV');
59
36
  var Environment = /** @class */ (function () {
@@ -1136,19 +1113,19 @@
1136
1113
  };
1137
1114
  return MatAutocompleteConfigHolder;
1138
1115
  }());
1139
- var DEFAULT_VALUE_ACCESSOR$6 = {
1116
+ var DEFAULT_VALUE_ACCESSOR = {
1140
1117
  provide: i1.NG_VALUE_ACCESSOR,
1141
1118
  useExisting: i0.forwardRef(function () { return MatAutocompleteField; }),
1142
1119
  multi: true
1143
1120
  };
1144
- var noop$7 = function () { };
1145
- var ɵ0$a = noop$7;
1121
+ var noop = function () { };
1122
+ var ɵ0 = noop;
1146
1123
  var MatAutocompleteField = /** @class */ (function () {
1147
1124
  function MatAutocompleteField(cd, formGroupDir) {
1148
1125
  this.cd = cd;
1149
1126
  this.formGroupDir = formGroupDir;
1150
- this._onChangeCallback = noop$7;
1151
- this._onTouchedCallback = noop$7;
1127
+ this._onChangeCallback = noop;
1128
+ this._onTouchedCallback = noop;
1152
1129
  this._subscription = new rxjs.Subscription();
1153
1130
  this._filter$ = new rxjs.BehaviorSubject(undefined);
1154
1131
  this._reload$ = new rxjs.Subject();
@@ -1725,7 +1702,7 @@
1725
1702
  // eslint-disable-next-line @angular-eslint/component-selector
1726
1703
  selector: 'mat-autocomplete-field',
1727
1704
  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",
1728
- providers: [DEFAULT_VALUE_ACCESSOR$6],
1705
+ providers: [DEFAULT_VALUE_ACCESSOR],
1729
1706
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
1730
1707
  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}"]
1731
1708
  },] }
@@ -1800,7 +1777,7 @@
1800
1777
  };
1801
1778
  return DateFormatPipe;
1802
1779
  }());
1803
- 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" });
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" });
1804
1781
  DateFormatPipe.decorators = [
1805
1782
  { type: i0.Pipe, args: [{
1806
1783
  name: 'dateFormat'
@@ -1812,7 +1789,7 @@
1812
1789
  { type: i1$2.TranslateService }
1813
1790
  ]; };
1814
1791
 
1815
- var moment$6 = momentImported__namespace;
1792
+ var moment = momentImported__namespace;
1816
1793
  var DateDiffDurationPipe = /** @class */ (function () {
1817
1794
  function DateDiffDurationPipe(dateAdapter, translate) {
1818
1795
  var _this = this;
@@ -1829,10 +1806,10 @@
1829
1806
  return this.format(startDate, endDate);
1830
1807
  };
1831
1808
  DateDiffDurationPipe.prototype.format = function (startDate, endDate) {
1832
- var duration = moment$6.duration(endDate.diff(startDate));
1809
+ var duration = moment.duration(endDate.diff(startDate));
1833
1810
  if (duration.asMinutes() < 0)
1834
1811
  return '';
1835
- var timeDuration = moment$6(0)
1812
+ var timeDuration = moment(0)
1836
1813
  .hour(duration.hours())
1837
1814
  .minute(duration.minutes());
1838
1815
  var days = Math.floor(duration.asDays());
@@ -1840,7 +1817,7 @@
1840
1817
  };
1841
1818
  return DateDiffDurationPipe;
1842
1819
  }());
1843
- 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" });
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" });
1844
1821
  DateDiffDurationPipe.decorators = [
1845
1822
  { type: i0.Pipe, args: [{
1846
1823
  name: 'dateDiffDuration'
@@ -1862,7 +1839,7 @@
1862
1839
  };
1863
1840
  return DateFromNowPipe;
1864
1841
  }());
1865
- DateFromNowPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0__namespace.ɵɵinject(i1__namespace.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
1842
+ DateFromNowPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0.ɵɵinject(i1$1.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
1866
1843
  DateFromNowPipe.decorators = [
1867
1844
  { type: i0.Pipe, args: [{
1868
1845
  name: 'dateFromNow'
@@ -1931,7 +1908,7 @@
1931
1908
  value *= -1;
1932
1909
  }
1933
1910
  }
1934
- var degrees = roundFloat$1(value, opts.maxDecimals).toString();
1911
+ var degrees = roundFloat(value, opts.maxDecimals).toString();
1935
1912
  // Add sign
1936
1913
  var sign = negative ? '-' : '+';
1937
1914
  if (opts.placeholderChar) {
@@ -1982,7 +1959,7 @@
1982
1959
  }
1983
1960
  var degrees = Math.trunc(value);
1984
1961
  var minutes = Math.trunc((value - degrees) * 60);
1985
- var seconds = roundFloat$1(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
1962
+ var seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
1986
1963
  while (seconds >= 60) {
1987
1964
  seconds -= 60;
1988
1965
  minutes += 1;
@@ -2050,7 +2027,7 @@
2050
2027
  }
2051
2028
  }
2052
2029
  var degrees = Math.trunc(value);
2053
- var minutes = roundFloat$1((value - degrees) * 60, opts.maxDecimals);
2030
+ var minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
2054
2031
  while (minutes >= 60) {
2055
2032
  minutes -= 60;
2056
2033
  degrees += 1;
@@ -2101,15 +2078,15 @@
2101
2078
  return NaN;
2102
2079
  }
2103
2080
  if (pattern === 'DD')
2104
- return roundFloat$1(degrees, maxDecimals);
2081
+ return roundFloat(degrees, maxDecimals);
2105
2082
  var minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
2106
2083
  var seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
2107
2084
  var direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
2108
2085
  var sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
2109
2086
  degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
2110
- return roundFloat$1(degrees, maxDecimals);
2087
+ return roundFloat(degrees, maxDecimals);
2111
2088
  }
2112
- function roundFloat$1(input, maxDecimals) {
2089
+ function roundFloat(input, maxDecimals) {
2113
2090
  if (maxDecimals > 0) {
2114
2091
  var powDecimal = Math.pow(10, maxDecimals);
2115
2092
  return Math.trunc(input * powDecimal + 0.5) / powDecimal;
@@ -2132,7 +2109,7 @@
2132
2109
  };
2133
2110
  return LatLongFormatPipe;
2134
2111
  }());
2135
- LatLongFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
2112
+ LatLongFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
2136
2113
  LatLongFormatPipe.decorators = [
2137
2114
  { type: i0.Pipe, args: [{
2138
2115
  name: 'latLongFormat'
@@ -2145,7 +2122,7 @@
2145
2122
  }
2146
2123
  return LatitudeFormatPipe;
2147
2124
  }());
2148
- LatitudeFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
2125
+ LatitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
2149
2126
  LatitudeFormatPipe.decorators = [
2150
2127
  { type: i0.Pipe, args: [{
2151
2128
  name: 'latitudeFormat'
@@ -2158,7 +2135,7 @@
2158
2135
  }
2159
2136
  return LongitudeFormatPipe;
2160
2137
  }());
2161
- LongitudeFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
2138
+ LongitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
2162
2139
  LongitudeFormatPipe.decorators = [
2163
2140
  { type: i0.Pipe, args: [{
2164
2141
  name: 'longitudeFormat'
@@ -2181,7 +2158,7 @@
2181
2158
  };
2182
2159
  return NumberFormatPipe;
2183
2160
  }());
2184
- NumberFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
2161
+ NumberFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
2185
2162
  NumberFormatPipe.decorators = [
2186
2163
  { type: i0.Pipe, args: [{
2187
2164
  name: 'numberFormat'
@@ -2224,7 +2201,7 @@
2224
2201
  };
2225
2202
  return HighlightPipe;
2226
2203
  }());
2227
- HighlightPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
2204
+ HighlightPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
2228
2205
  HighlightPipe.decorators = [
2229
2206
  { type: i0.Pipe, args: [{
2230
2207
  name: 'highlight'
@@ -2292,7 +2269,7 @@
2292
2269
  { type: i0.Pipe, args: [{ name: 'fileSize' },] }
2293
2270
  ];
2294
2271
 
2295
- var moment$5 = momentImported__namespace;
2272
+ var moment$1 = momentImported__namespace;
2296
2273
  var DATE_UNIX_TIMESTAMP = 'X';
2297
2274
  var DATE_UNIX_MS_TIMESTAMP = 'x';
2298
2275
  var DateUtils = /** @class */ (function () {
@@ -2327,32 +2304,32 @@
2327
2304
  if (!value || momentImported.isMoment(value))
2328
2305
  return value;
2329
2306
  // Parse the input value, as a ISO date time
2330
- var date = moment$5(value, DATE_ISO_PATTERN);
2307
+ var date = moment$1(value, DATE_ISO_PATTERN);
2331
2308
  if (date.isValid())
2332
2309
  return date;
2333
2310
  // Not valid: trying to convert from unix timestamp
2334
2311
  if (typeof value === 'string') {
2335
2312
  console.warn('Wrong date format - Trying to convert from local time: ' + value);
2336
2313
  if (value.length === 10) {
2337
- return moment$5(value, DATE_UNIX_TIMESTAMP);
2314
+ return moment$1(value, DATE_UNIX_TIMESTAMP);
2338
2315
  }
2339
2316
  else if (value.length === 13) {
2340
- return moment$5(value, DATE_UNIX_MS_TIMESTAMP);
2317
+ return moment$1(value, DATE_UNIX_MS_TIMESTAMP);
2341
2318
  }
2342
2319
  }
2343
2320
  console.warn('Unable to parse date: ' + value);
2344
2321
  return undefined;
2345
2322
  }
2346
2323
  function fromUnixTimestamp(timeInSec) {
2347
- return moment$5(timeInSec, DATE_UNIX_TIMESTAMP);
2324
+ return moment$1(timeInSec, DATE_UNIX_TIMESTAMP);
2348
2325
  }
2349
2326
  function fromUnixMsTimestamp(timeInMs) {
2350
- return moment$5(timeInMs, DATE_UNIX_MS_TIMESTAMP);
2327
+ return moment$1(timeInMs, DATE_UNIX_MS_TIMESTAMP);
2351
2328
  }
2352
2329
  function toDuration(value, unit) {
2353
2330
  if (!value)
2354
2331
  return undefined;
2355
- var duration = moment$5.duration(value, unit);
2332
+ var duration = moment$1.duration(value, unit);
2356
2333
  // fix 990+ ms
2357
2334
  if (duration.milliseconds() >= 990) {
2358
2335
  duration.add(1000 - duration.milliseconds(), 'ms');
@@ -2382,7 +2359,7 @@
2382
2359
  };
2383
2360
  return DurationPipe;
2384
2361
  }());
2385
- DurationPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: DurationPipe, providedIn: "root" });
2362
+ DurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0.ɵɵinject(i1$2.TranslateService)); }, token: DurationPipe, providedIn: "root" });
2386
2363
  DurationPipe.decorators = [
2387
2364
  { type: i0.Pipe, args: [{
2388
2365
  name: 'duration'
@@ -2406,7 +2383,7 @@
2406
2383
  };
2407
2384
  return MathAbsPipe;
2408
2385
  }());
2409
- MathAbsPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
2386
+ MathAbsPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
2410
2387
  MathAbsPipe.decorators = [
2411
2388
  { type: i0.Pipe, args: [{
2412
2389
  name: 'mathAbs'
@@ -2421,7 +2398,7 @@
2421
2398
  };
2422
2399
  return EvenPipe;
2423
2400
  }());
2424
- EvenPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
2401
+ EvenPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
2425
2402
  EvenPipe.decorators = [
2426
2403
  { type: i0.Pipe, args: [{
2427
2404
  name: 'even'
@@ -2436,7 +2413,7 @@
2436
2413
  };
2437
2414
  return OddPipe;
2438
2415
  }());
2439
- OddPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
2416
+ OddPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
2440
2417
  OddPipe.decorators = [
2441
2418
  { type: i0.Pipe, args: [{
2442
2419
  name: 'odd'
@@ -2568,7 +2545,7 @@
2568
2545
  };
2569
2546
  return MapGetPipe;
2570
2547
  }());
2571
- MapGetPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
2548
+ MapGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
2572
2549
  MapGetPipe.decorators = [
2573
2550
  { type: i0.Pipe, args: [{
2574
2551
  name: 'mapGet'
@@ -2585,7 +2562,7 @@
2585
2562
  };
2586
2563
  return MapKeysPipe;
2587
2564
  }());
2588
- MapKeysPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
2565
+ MapKeysPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
2589
2566
  MapKeysPipe.decorators = [
2590
2567
  { type: i0.Pipe, args: [{
2591
2568
  name: 'mapKeys'
@@ -2602,7 +2579,7 @@
2602
2579
  };
2603
2580
  return MapValuesPipe;
2604
2581
  }());
2605
- MapValuesPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
2582
+ MapValuesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
2606
2583
  MapValuesPipe.decorators = [
2607
2584
  { type: i0.Pipe, args: [{
2608
2585
  name: 'mapValues'
@@ -2618,7 +2595,7 @@
2618
2595
  };
2619
2596
  return IsNotNilOrBlankPipe;
2620
2597
  }());
2621
- IsNotNilOrBlankPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
2598
+ IsNotNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
2622
2599
  IsNotNilOrBlankPipe.decorators = [
2623
2600
  { type: i0.Pipe, args: [{
2624
2601
  name: 'isNotNilOrBlank'
@@ -2633,7 +2610,7 @@
2633
2610
  };
2634
2611
  return IsNilOrBlankPipe;
2635
2612
  }());
2636
- IsNilOrBlankPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
2613
+ IsNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
2637
2614
  IsNilOrBlankPipe.decorators = [
2638
2615
  { type: i0.Pipe, args: [{
2639
2616
  name: 'isNilOrBlank'
@@ -2648,7 +2625,7 @@
2648
2625
  };
2649
2626
  return ToStringPipe;
2650
2627
  }());
2651
- ToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
2628
+ ToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
2652
2629
  ToStringPipe.decorators = [
2653
2630
  { type: i0.Pipe, args: [{
2654
2631
  name: 'toString'
@@ -2663,7 +2640,7 @@
2663
2640
  };
2664
2641
  return StrLengthPipe;
2665
2642
  }());
2666
- StrLengthPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
2643
+ StrLengthPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
2667
2644
  StrLengthPipe.decorators = [
2668
2645
  { type: i0.Pipe, args: [{
2669
2646
  name: 'strLength'
@@ -2716,7 +2693,7 @@
2716
2693
  };
2717
2694
  return TranslateContextService;
2718
2695
  }());
2719
- TranslateContextService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
2696
+ TranslateContextService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0.ɵɵinject(i1$2.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
2720
2697
  TranslateContextService.decorators = [
2721
2698
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
2722
2699
  ];
@@ -2733,7 +2710,7 @@
2733
2710
  };
2734
2711
  return TranslateContextPipe;
2735
2712
  }());
2736
- TranslateContextPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslateContextPipe_Factory() { return new TranslateContextPipe(i0__namespace.ɵɵinject(TranslateContextService)); }, token: TranslateContextPipe, providedIn: "root" });
2713
+ TranslateContextPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextPipe_Factory() { return new TranslateContextPipe(i0.ɵɵinject(TranslateContextService)); }, token: TranslateContextPipe, providedIn: "root" });
2737
2714
  TranslateContextPipe.decorators = [
2738
2715
  { type: i0.Pipe, args: [{
2739
2716
  name: 'translateContext'
@@ -2753,7 +2730,7 @@
2753
2730
  };
2754
2731
  return TranslatablePipe;
2755
2732
  }());
2756
- TranslatablePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslatablePipe_Factory() { return new TranslatablePipe(); }, token: TranslatablePipe, providedIn: "root" });
2733
+ TranslatablePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslatablePipe_Factory() { return new TranslatablePipe(); }, token: TranslatablePipe, providedIn: "root" });
2757
2734
  TranslatablePipe.decorators = [
2758
2735
  { type: i0.Pipe, args: [{
2759
2736
  name: 'translatable'
@@ -2773,7 +2750,7 @@
2773
2750
  };
2774
2751
  return PropertyGetPipe;
2775
2752
  }());
2776
- PropertyGetPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
2753
+ PropertyGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
2777
2754
  PropertyGetPipe.decorators = [
2778
2755
  { type: i0.Pipe, args: [{
2779
2756
  name: 'propertyGet'
@@ -3030,14 +3007,14 @@
3030
3007
  },] }
3031
3008
  ];
3032
3009
 
3033
- var moment$4 = momentImported__namespace;
3010
+ var moment$2 = momentImported__namespace;
3034
3011
  // @dynamic
3035
3012
  var SharedValidators = /** @class */ (function () {
3036
3013
  function SharedValidators() {
3037
3014
  }
3038
3015
  SharedValidators.validDate = function (control) {
3039
3016
  var value = control.value;
3040
- var date = !value || moment$4.isMoment(value) ? value : moment$4(control.value, DATE_ISO_PATTERN);
3017
+ var date = !value || moment$2.isMoment(value) ? value : moment$2(control.value, DATE_ISO_PATTERN);
3041
3018
  if (date && (!date.isValid() || date.year() < 1970)) {
3042
3019
  return { validDate: true };
3043
3020
  }
@@ -3469,9 +3446,9 @@
3469
3446
  var hour = parseInt(durationParts[0] || '0');
3470
3447
  var minute = parseInt(durationParts[1] || '0');
3471
3448
  var value = hour + (minute + 0.5) / 60;
3472
- return roundFloat(value, maxDecimals);
3449
+ return roundFloat$1(value, maxDecimals);
3473
3450
  }
3474
- function roundFloat(input, maxDecimals) {
3451
+ function roundFloat$1(input, maxDecimals) {
3475
3452
  if (maxDecimals > 0) {
3476
3453
  var powDecimal = Math.pow(10, maxDecimals);
3477
3454
  return Math.trunc(input * powDecimal + 0.5) / powDecimal;
@@ -3495,9 +3472,9 @@
3495
3472
  DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
3496
3473
  }
3497
3474
  };
3498
- var noop$6 = function () {
3475
+ var noop$1 = function () {
3499
3476
  };
3500
- var ɵ0$9 = noop$6;
3477
+ var ɵ0$1 = noop$1;
3501
3478
  var MatLatLongField = /** @class */ (function () {
3502
3479
  function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
3503
3480
  this.platform = platform;
@@ -3505,8 +3482,8 @@
3505
3482
  this.formBuilder = formBuilder;
3506
3483
  this.cd = cd;
3507
3484
  this.formGroupDir = formGroupDir;
3508
- this._onChangeCallback = noop$6;
3509
- this._onTouchedCallback = noop$6;
3485
+ this._onChangeCallback = noop$1;
3486
+ this._onTouchedCallback = noop$1;
3510
3487
  this._subscription = new rxjs.Subscription();
3511
3488
  this.disabling = false;
3512
3489
  this.writing = false;
@@ -3859,14 +3836,14 @@
3859
3836
  },] }
3860
3837
  ];
3861
3838
 
3862
- var DEFAULT_VALUE_ACCESSOR$5 = {
3839
+ var DEFAULT_VALUE_ACCESSOR$1 = {
3863
3840
  provide: i1.NG_VALUE_ACCESSOR,
3864
3841
  useExisting: i0.forwardRef(function () { return MatDate; }),
3865
3842
  multi: true
3866
3843
  };
3867
- var DAY_MASK$2 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
3868
- var noop$5 = function () { };
3869
- var ɵ0$8 = noop$5;
3844
+ var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
3845
+ var noop$2 = function () { };
3846
+ var ɵ0$2 = noop$2;
3870
3847
  var MatDate = /** @class */ (function () {
3871
3848
  function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
3872
3849
  this.dateAdapter = dateAdapter;
@@ -3875,12 +3852,12 @@
3875
3852
  this.cd = cd;
3876
3853
  this.keyboard = keyboard;
3877
3854
  this.formGroupDir = formGroupDir;
3878
- this._onChangeCallback = noop$5;
3879
- this._onTouchedCallback = noop$5;
3855
+ this._onChangeCallback = noop$2;
3856
+ this._onTouchedCallback = noop$2;
3880
3857
  this._subscription = new rxjs.Subscription();
3881
3858
  this.writing = true;
3882
3859
  this.disabling = false;
3883
- this.dayMask = DAY_MASK$2;
3860
+ this.dayMask = DAY_MASK;
3884
3861
  this.disabled = false;
3885
3862
  this.floatLabel = 'auto';
3886
3863
  this.readonly = false;
@@ -4149,7 +4126,7 @@
4149
4126
  selector: 'mat-date-field',
4150
4127
  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",
4151
4128
  providers: [
4152
- DEFAULT_VALUE_ACCESSOR$5,
4129
+ DEFAULT_VALUE_ACCESSOR$1,
4153
4130
  ],
4154
4131
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
4155
4132
  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%}"]
@@ -4182,17 +4159,17 @@
4182
4159
  matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
4183
4160
  };
4184
4161
 
4185
- var DEFAULT_VALUE_ACCESSOR$4 = {
4162
+ var DEFAULT_VALUE_ACCESSOR$2 = {
4186
4163
  provide: i1.NG_VALUE_ACCESSOR,
4187
4164
  useExisting: i0.forwardRef(function () { return MatDateTime; }),
4188
4165
  multi: true
4189
4166
  };
4190
4167
  var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
4191
4168
  var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
4192
- var HOUR_MASK$1 = [/[012]/, /\d/, ':', /[012345]/, /\d/];
4193
- var noop$4 = function () {
4169
+ var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
4170
+ var noop$3 = function () {
4194
4171
  };
4195
- var ɵ0$7 = noop$4;
4172
+ var ɵ0$3 = noop$3;
4196
4173
  var MatDateTime = /** @class */ (function () {
4197
4174
  function MatDateTime(platform, dateAdapter, translate, formBuilder, keyboard, cd, formGroupDir) {
4198
4175
  this.platform = platform;
@@ -4202,14 +4179,14 @@
4202
4179
  this.keyboard = keyboard;
4203
4180
  this.cd = cd;
4204
4181
  this.formGroupDir = formGroupDir;
4205
- this._onChangeCallback = noop$4;
4206
- this._onTouchedCallback = noop$4;
4182
+ this._onChangeCallback = noop$3;
4183
+ this._onTouchedCallback = noop$3;
4207
4184
  this._subscription = new rxjs.Subscription();
4208
4185
  this.writing = true;
4209
4186
  this.disabling = false;
4210
4187
  this._onDestroy = new i0.EventEmitter();
4211
4188
  this.dayMask = DAY_MASK$1;
4212
- this.hourMask = HOUR_MASK$1;
4189
+ this.hourMask = HOUR_MASK;
4213
4190
  this.floatLabel = 'auto';
4214
4191
  this.readonly = false;
4215
4192
  this.compact = false;
@@ -4556,7 +4533,7 @@
4556
4533
  selector: 'mat-date-time-field',
4557
4534
  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",
4558
4535
  providers: [
4559
- DEFAULT_VALUE_ACCESSOR$4,
4536
+ DEFAULT_VALUE_ACCESSOR$2,
4560
4537
  ],
4561
4538
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
4562
4539
  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%}"]
@@ -4595,10 +4572,10 @@
4595
4572
  useExisting: i0.forwardRef(function () { return MatDateShort; }),
4596
4573
  multi: true
4597
4574
  };
4598
- var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
4599
- var noop$3 = function () {
4575
+ var DAY_MASK$2 = [/\d/, /\d/, /\d/, /\d/];
4576
+ var noop$4 = function () {
4600
4577
  };
4601
- var ɵ0$6 = noop$3;
4578
+ var ɵ0$4 = noop$4;
4602
4579
  var MatDateShort = /** @class */ (function () {
4603
4580
  function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
4604
4581
  this.dateAdapter = dateAdapter;
@@ -4607,11 +4584,11 @@
4607
4584
  this.cd = cd;
4608
4585
  this.keyboard = keyboard;
4609
4586
  this.formGroupDir = formGroupDir;
4610
- this._onChangeCallback = noop$3;
4611
- this._onTouchedCallback = noop$3;
4587
+ this._onChangeCallback = noop$4;
4588
+ this._onTouchedCallback = noop$4;
4612
4589
  this.writing = true;
4613
4590
  this.disabling = false;
4614
- this.dayMask = DAY_MASK;
4591
+ this.dayMask = DAY_MASK$2;
4615
4592
  this.disabled = false;
4616
4593
  this.floatLabel = 'auto';
4617
4594
  this.readonly = false;
@@ -4959,16 +4936,16 @@
4959
4936
  },] }
4960
4937
  ];
4961
4938
 
4962
- var DEFAULT_VALUE_ACCESSOR$2 = {
4939
+ var DEFAULT_VALUE_ACCESSOR$4 = {
4963
4940
  provide: i1.NG_VALUE_ACCESSOR,
4964
4941
  useExisting: i0.forwardRef(function () { return MatDuration; }),
4965
4942
  multi: true
4966
4943
  };
4967
4944
  var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
4968
- var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
4969
- var noop$2 = function () {
4945
+ var HOUR_MASK$1 = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
4946
+ var noop$5 = function () {
4970
4947
  };
4971
- var ɵ0$5 = noop$2;
4948
+ var ɵ0$5 = noop$5;
4972
4949
  var MatDuration = /** @class */ (function () {
4973
4950
  function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
4974
4951
  this.dateAdapter = dateAdapter;
@@ -4977,11 +4954,11 @@
4977
4954
  this.cd = cd;
4978
4955
  this.formGroupDir = formGroupDir;
4979
4956
  this._subscription = new rxjs.Subscription();
4980
- this._onChangeCallback = noop$2;
4981
- this._onTouchedCallback = noop$2;
4957
+ this._onChangeCallback = noop$5;
4958
+ this._onTouchedCallback = noop$5;
4982
4959
  this.writing = true;
4983
4960
  this.disabling = false;
4984
- this.hourMask = HOUR_MASK;
4961
+ this.hourMask = HOUR_MASK$1;
4985
4962
  this.disabled = false;
4986
4963
  this.floatLabel = 'auto';
4987
4964
  this.readonly = false;
@@ -5174,7 +5151,7 @@
5174
5151
  selector: 'mat-duration-field',
5175
5152
  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",
5176
5153
  providers: [
5177
- DEFAULT_VALUE_ACCESSOR$2,
5154
+ DEFAULT_VALUE_ACCESSOR$4,
5178
5155
  ],
5179
5156
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
5180
5157
  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%}"]
@@ -5234,22 +5211,22 @@
5234
5211
  },] }
5235
5212
  ];
5236
5213
 
5237
- var DEFAULT_VALUE_ACCESSOR$1 = {
5214
+ var DEFAULT_VALUE_ACCESSOR$5 = {
5238
5215
  provide: i1.NG_VALUE_ACCESSOR,
5239
5216
  useExisting: i0.forwardRef(function () { return MatBooleanField; }),
5240
5217
  multi: true
5241
5218
  };
5242
- var noop$1 = function () {
5219
+ var noop$6 = function () {
5243
5220
  };
5244
- var ɵ0$4 = noop$1;
5221
+ var ɵ0$6 = noop$6;
5245
5222
  var MatBooleanField = /** @class */ (function () {
5246
5223
  function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
5247
5224
  this.translate = translate;
5248
5225
  this.formBuilder = formBuilder;
5249
5226
  this.cd = cd;
5250
5227
  this.formGroupDir = formGroupDir;
5251
- this._onChangeCallback = noop$1;
5252
- this._onTouchedCallback = noop$1;
5228
+ this._onChangeCallback = noop$6;
5229
+ this._onTouchedCallback = noop$6;
5253
5230
  this._writing = false;
5254
5231
  this.showRadio = false;
5255
5232
  this.disabled = false;
@@ -5426,7 +5403,7 @@
5426
5403
  selector: 'mat-boolean-field',
5427
5404
  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",
5428
5405
  providers: [
5429
- DEFAULT_VALUE_ACCESSOR$1
5406
+ DEFAULT_VALUE_ACCESSOR$5
5430
5407
  ],
5431
5408
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
5432
5409
  styles: [":host{width:100%}"]
@@ -5508,7 +5485,6 @@
5508
5485
  return MatNumpadEvent;
5509
5486
  }(KeyboardEvent));
5510
5487
 
5511
- exports.AnimationState = void 0;
5512
5488
  (function (AnimationState) {
5513
5489
  AnimationState["ENTER"] = "enter";
5514
5490
  AnimationState["ENTER_INPUT"] = "enter-input";
@@ -5676,7 +5652,7 @@
5676
5652
  };
5677
5653
  return MatNumpadDomService;
5678
5654
  }());
5679
- 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" });
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" });
5680
5656
  MatNumpadDomService.decorators = [
5681
5657
  { type: i0.Injectable, args: [{
5682
5658
  providedIn: 'root'
@@ -6082,7 +6058,7 @@
6082
6058
  },] }
6083
6059
  ];
6084
6060
 
6085
- var DEFAULT_VALUE_ACCESSOR = {
6061
+ var DEFAULT_VALUE_ACCESSOR$6 = {
6086
6062
  provide: i1.NG_VALUE_ACCESSOR,
6087
6063
  useExisting: i0.forwardRef(function () { return MatSwipeField; }),
6088
6064
  multi: true
@@ -6402,7 +6378,7 @@
6402
6378
  { type: i0.Component, args: [{
6403
6379
  selector: 'mat-swipe-field',
6404
6380
  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",
6405
- providers: [DEFAULT_VALUE_ACCESSOR],
6381
+ providers: [DEFAULT_VALUE_ACCESSOR$6],
6406
6382
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
6407
6383
  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}"]
6408
6384
  },] }
@@ -6960,7 +6936,7 @@
6960
6936
  };
6961
6937
  return ProgressBarService;
6962
6938
  }());
6963
- ProgressBarService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
6939
+ ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
6964
6940
  ProgressBarService.decorators = [
6965
6941
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
6966
6942
  ];
@@ -7007,7 +6983,7 @@
7007
6983
  };
7008
6984
  return AppGestureConfig;
7009
6985
  }(i1$6.HammerGestureConfig));
7010
- AppGestureConfig.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
6986
+ AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
7011
6987
  AppGestureConfig.decorators = [
7012
6988
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
7013
6989
  ];
@@ -7272,7 +7248,7 @@
7272
7248
  };
7273
7249
  return MatPaginatorI18n;
7274
7250
  }(paginator.MatPaginatorIntl));
7275
- MatPaginatorI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
7251
+ MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
7276
7252
  MatPaginatorI18n.decorators = [
7277
7253
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
7278
7254
  ];
@@ -7364,17 +7340,17 @@
7364
7340
  return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
7365
7341
  }
7366
7342
 
7367
- var noop = function () {
7343
+ var noop$7 = function () {
7368
7344
  };
7369
- var ɵ0$3 = noop;
7345
+ var ɵ0$7 = noop$7;
7370
7346
  var AppFormField = /** @class */ (function () {
7371
7347
  function AppFormField(translate, cd, injector, formGroupDir) {
7372
7348
  this.translate = translate;
7373
7349
  this.cd = cd;
7374
7350
  this.injector = injector;
7375
7351
  this.formGroupDir = formGroupDir;
7376
- this._onChangeCallback = noop;
7377
- this._onTouchedCallback = noop;
7352
+ this._onChangeCallback = noop$7;
7353
+ this._onTouchedCallback = noop$7;
7378
7354
  this.readonly = false;
7379
7355
  this.compact = false;
7380
7356
  this.floatLabel = 'auto';
@@ -7833,7 +7809,7 @@
7833
7809
  };
7834
7810
  return AudioProvider;
7835
7811
  }());
7836
- 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" });
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" });
7837
7813
  AudioProvider.decorators = [
7838
7814
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
7839
7815
  ];
@@ -7933,7 +7909,7 @@
7933
7909
  };
7934
7910
  return Hotkeys;
7935
7911
  }());
7936
- 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" });
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" });
7937
7913
  Hotkeys.decorators = [
7938
7914
  { type: i0.Injectable, args: [{
7939
7915
  providedIn: 'root'
@@ -8137,7 +8113,7 @@
8137
8113
  return Base64ImageReader;
8138
8114
  }());
8139
8115
 
8140
- var uuidv4$1 = uuidv4Imported__namespace;
8116
+ var uuidv4 = uuidv4Imported__namespace;
8141
8117
  var FileService = /** @class */ (function () {
8142
8118
  function FileService(platform,
8143
8119
  //private transfer: FileTransfer,
@@ -8183,7 +8159,7 @@
8183
8159
  lastSlashIndex = source.lastIndexOf('/');
8184
8160
  if (lastSlashIndex === -1)
8185
8161
  throw new Error('Invalid URL: ' + source);
8186
- fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4$1();
8162
+ fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
8187
8163
  if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
8188
8164
  console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
8189
8165
  targetFilePath = this._imageDirectory + fileName;
@@ -8246,7 +8222,7 @@
8246
8222
  };
8247
8223
  return FileService;
8248
8224
  }());
8249
- 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" });
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" });
8250
8226
  FileService.decorators = [
8251
8227
  { type: i0.Injectable, args: [{
8252
8228
  providedIn: 'root',
@@ -8409,7 +8385,7 @@
8409
8385
  Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
8410
8386
 
8411
8387
  var scrypt = require('scrypt-async');
8412
- var sha256$1 = require('hash.js/lib/hash/sha/256');
8388
+ var sha256 = require('hash.js/lib/hash/sha/256');
8413
8389
  var sha512 = require('hash.js/lib/hash/sha/512');
8414
8390
  var nacl = {
8415
8391
  sign: tweetnacl.sign,
@@ -8515,7 +8491,7 @@
8515
8491
  * Hash (using SHA256) a message
8516
8492
  */
8517
8493
  CryptoService.prototype.sha256 = function (message) {
8518
- return sha256$1().update(message).digest('hex');
8494
+ return sha256().update(message).digest('hex');
8519
8495
  };
8520
8496
  /**
8521
8497
  * Hash (using SHA512) a message
@@ -8529,7 +8505,7 @@
8529
8505
  };
8530
8506
  return CryptoService;
8531
8507
  }());
8532
- CryptoService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
8508
+ CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
8533
8509
  CryptoService.decorators = [
8534
8510
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
8535
8511
  ];
@@ -9929,7 +9905,7 @@
9929
9905
  };
9930
9906
  return LocalSettingsService;
9931
9907
  }());
9932
- 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" });
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" });
9933
9909
  LocalSettingsService.decorators = [
9934
9910
  { type: i0.Injectable, args: [{
9935
9911
  providedIn: 'root',
@@ -10774,7 +10750,7 @@
10774
10750
  };
10775
10751
  return NetworkService;
10776
10752
  }());
10777
- 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" });
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" });
10778
10754
  NetworkService.decorators = [
10779
10755
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
10780
10756
  ];
@@ -10794,7 +10770,7 @@
10794
10770
  { type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
10795
10771
  ]; };
10796
10772
 
10797
- var ErrorCodes$2 = {
10773
+ var ErrorCodes = {
10798
10774
  UNKNOWN_ERROR: 0,
10799
10775
  LOAD_ACCOUNT_ERROR: 1,
10800
10776
  BAD_PASSWORD: 2,
@@ -11202,7 +11178,7 @@
11202
11178
  case 13:
11203
11179
  err_1 = _a.sent();
11204
11180
  console.error(err_1);
11205
- throw { code: ErrorCodes$2.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
11181
+ throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
11206
11182
  case 14:
11207
11183
  // Emit update event
11208
11184
  if (!opts || opts.emitEvent !== false) {
@@ -11962,7 +11938,7 @@
11962
11938
  }());
11963
11939
  EntitiesStorage.TRASH_PREFIX = 'Trash#';
11964
11940
  EntitiesStorage.REMOTE_PREFIX = 'Remote#';
11965
- 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" });
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" });
11966
11942
  EntitiesStorage.decorators = [
11967
11943
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
11968
11944
  ];
@@ -12076,10 +12052,10 @@
12076
12052
  function referentialsToString(values, properties, separator) {
12077
12053
  return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
12078
12054
  }
12079
- var ɵ0$2 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
12055
+ var ɵ0$8 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
12080
12056
  var StatusList = Object.freeze([
12081
12057
  {
12082
- id: ɵ0$2,
12058
+ id: ɵ0$8,
12083
12059
  icon: 'checkmark',
12084
12060
  label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
12085
12061
  },
@@ -12378,7 +12354,7 @@
12378
12354
  (data.lastName || '')) || '';
12379
12355
  }
12380
12356
 
12381
- var uuidv4 = uuidv4Imported__namespace;
12357
+ var uuidv4$1 = uuidv4Imported__namespace;
12382
12358
  var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
12383
12359
  var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
12384
12360
  /**
@@ -12422,7 +12398,7 @@
12422
12398
  // Skip if not tracked
12423
12399
  if (!context || !context.tracked)
12424
12400
  return forward(operation);
12425
- var id = context.serializationKey || uuidv4();
12401
+ var id = context.serializationKey || uuidv4$1();
12426
12402
  console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
12427
12403
  // Clean context, before calling JSON.stringify (remove unused attributes)
12428
12404
  var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
@@ -13233,7 +13209,7 @@
13233
13209
  (err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
13234
13210
  || this.toAppError(err.networkError)
13235
13211
  || (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
13236
- || this.createAppErrorByCode(ErrorCodes$2.UNKNOWN_NETWORK_ERROR)))
13212
+ || this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
13237
13213
  // If graphQL: try to convert the first error found
13238
13214
  || (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
13239
13215
  || this.toAppError(err)
@@ -13241,7 +13217,7 @@
13241
13217
  || (err.graphQLErrors && err.graphQLErrors[0])
13242
13218
  || err;
13243
13219
  console.error('[graphql] ' + (error && error.message || error), error.stack || '');
13244
- if (error && error.code === ErrorCodes$2.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
13220
+ if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
13245
13221
  console.error('[graphql] original error: ' + err.networkError.message);
13246
13222
  this.onNetworkError.next(error);
13247
13223
  }
@@ -13277,7 +13253,7 @@
13277
13253
  return 'ERROR.UNAUTHORIZED';
13278
13254
  case ServerErrorCodes.FORBIDDEN:
13279
13255
  return 'ERROR.FORBIDDEN';
13280
- case ErrorCodes$2.UNKNOWN_NETWORK_ERROR:
13256
+ case ErrorCodes.UNKNOWN_NETWORK_ERROR:
13281
13257
  return 'ERROR.UNKNOWN_NETWORK_ERROR';
13282
13258
  case ServerErrorCodes.BAD_UPDATE_DATE:
13283
13259
  return 'ERROR.BAD_UPDATE_DATE';
@@ -13322,7 +13298,7 @@
13322
13298
  };
13323
13299
  return GraphqlService;
13324
13300
  }());
13325
- 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" });
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" });
13326
13302
  GraphqlService.decorators = [
13327
13303
  { type: i0.Injectable, args: [{
13328
13304
  providedIn: 'root'
@@ -13339,7 +13315,7 @@
13339
13315
  { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
13340
13316
  ]; };
13341
13317
 
13342
- var sha256 = require('hash.js/lib/hash/sha/256');
13318
+ var sha256$1 = require('hash.js/lib/hash/sha/256');
13343
13319
  var BaseGraphqlServiceOptions = /** @class */ (function () {
13344
13320
  function BaseGraphqlServiceOptions() {
13345
13321
  }
@@ -13506,8 +13482,8 @@
13506
13482
  };
13507
13483
  /* -- protected methods -- */
13508
13484
  BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
13509
- var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
13510
- var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
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) || '';
13511
13487
  return [queryName, opts.arrayFieldName, variablesKey].join('|');
13512
13488
  };
13513
13489
  BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
@@ -13573,17 +13549,17 @@
13573
13549
  /* ------------------------------------
13574
13550
  * GraphQL queries
13575
13551
  * ------------------------------------*/
13576
- var Fragments$1 = {
13577
- 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 "])))
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 "])))
13578
13554
  };
13579
13555
  // Load account query
13580
- 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);
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);
13581
13557
  // Check email query
13582
- 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"])));
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"])));
13583
13559
  // Save (create or update) account mutation
13584
- 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);
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);
13585
13561
  // Create account mutation
13586
- 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);
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);
13587
13563
  // Sent confirmation email
13588
13564
  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"])));
13589
13565
  // Confirm account email
@@ -13973,7 +13949,7 @@
13973
13949
  error_3 = _a.sent();
13974
13950
  console.error(error_3);
13975
13951
  this.resetData();
13976
- throw { code: ErrorCodes$2.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
13952
+ throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
13977
13953
  case 4:
13978
13954
  // Store pubkey+keypair
13979
13955
  this.data.pubkey = Base58.encode(keypair.publicKey);
@@ -14009,7 +13985,7 @@
14009
13985
  return [3 /*break*/, 18];
14010
13986
  case 11:
14011
13987
  err_1 = _a.sent();
14012
- if (!(err_1 && +(err_1.code) === ErrorCodes$2.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
13988
+ if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
14013
13989
  if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
14014
13990
  isEmailExists = void 0;
14015
13991
  _a.label = 12;
@@ -14025,12 +14001,12 @@
14025
14001
  case 15:
14026
14002
  // Email not exists (no account)
14027
14003
  if (!isEmailExists) {
14028
- throw { code: ErrorCodes$2.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
14004
+ throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
14029
14005
  }
14030
14006
  _a.label = 16;
14031
14007
  case 16:
14032
14008
  // Email exists, so error = 'bad password'
14033
- throw { code: ErrorCodes$2.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
14009
+ throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
14034
14010
  case 17: throw err_1; // resend the first error
14035
14011
  case 18:
14036
14012
  _a.trys.push([18, 20, , 21]);
@@ -14113,7 +14089,7 @@
14113
14089
  throw error_6;
14114
14090
  console.error(error_6);
14115
14091
  throw {
14116
- code: ErrorCodes$2.LOAD_ACCOUNT_ERROR,
14092
+ code: ErrorCodes.LOAD_ACCOUNT_ERROR,
14117
14093
  message: 'ERROR.LOAD_ACCOUNT_ERROR'
14118
14094
  };
14119
14095
  case 4: return [2 /*return*/];
@@ -14383,8 +14359,8 @@
14383
14359
  _a.label = 3;
14384
14360
  case 3: return [3 /*break*/, 6];
14385
14361
  case 4: return [4 /*yield*/, this.graphql.query({
14386
- query: LoadQuery$1,
14387
- error: { code: ErrorCodes$2.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
14362
+ query: LoadQuery,
14363
+ error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
14388
14364
  fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
14389
14365
  })];
14390
14366
  case 5:
@@ -14429,7 +14405,7 @@
14429
14405
  case 1:
14430
14406
  existingAccount = _a.sent();
14431
14407
  if (!existingAccount || !existingAccount.updateDate) {
14432
- throw { code: ErrorCodes$2.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
14408
+ throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
14433
14409
  }
14434
14410
  account.updateDate = existingAccount.updateDate || account.updateDate;
14435
14411
  if (account.settings && existingAccount.settings) {
@@ -14442,12 +14418,12 @@
14442
14418
  delete json.profiles;
14443
14419
  delete json.mainProfile; // Not known on server
14444
14420
  return [4 /*yield*/, this.graphql.mutate({
14445
- mutation: isNew ? CreateMutation : SaveMutation$1,
14421
+ mutation: isNew ? CreateMutation : SaveMutation,
14446
14422
  variables: {
14447
14423
  account: json
14448
14424
  },
14449
14425
  error: {
14450
- code: ErrorCodes$2.SAVE_ACCOUNT_ERROR,
14426
+ code: ErrorCodes.SAVE_ACCOUNT_ERROR,
14451
14427
  message: 'ERROR.SAVE_ACCOUNT_ERROR'
14452
14428
  }
14453
14429
  })];
@@ -14481,7 +14457,7 @@
14481
14457
  case 1:
14482
14458
  isEmailExists = _a.sent();
14483
14459
  if (isEmailExists) {
14484
- throw { code: ErrorCodes$2.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
14460
+ throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
14485
14461
  }
14486
14462
  return [2 /*return*/];
14487
14463
  }
@@ -14531,7 +14507,7 @@
14531
14507
  locale: locale
14532
14508
  },
14533
14509
  error: {
14534
- code: ErrorCodes$2.SENT_CONFIRMATION_EMAIL_FAILED,
14510
+ code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
14535
14511
  message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
14536
14512
  }
14537
14513
  })];
@@ -14554,7 +14530,7 @@
14554
14530
  code: code
14555
14531
  },
14556
14532
  error: {
14557
- code: ErrorCodes$2.CONFIRM_EMAIL_FAILED,
14533
+ code: ErrorCodes.CONFIRM_EMAIL_FAILED,
14558
14534
  message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
14559
14535
  }
14560
14536
  })];
@@ -14576,7 +14552,7 @@
14576
14552
  interval: 10
14577
14553
  },
14578
14554
  error: {
14579
- code: ErrorCodes$2.SUBSCRIBE_ACCOUNT_ERROR,
14555
+ code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
14580
14556
  message: 'ERROR.ACCOUNT.SUBSCRIBE_ACCOUNT_ERROR'
14581
14557
  }
14582
14558
  }).subscribe({
@@ -14695,7 +14671,7 @@
14695
14671
  if (counter > 4) {
14696
14672
  if (this._debug)
14697
14673
  console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
14698
- throw { code: ErrorCodes$2.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
14674
+ throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
14699
14675
  }
14700
14676
  if (!token) return [3 /*break*/, 2];
14701
14677
  return [4 /*yield*/, this.graphql.query({
@@ -14704,7 +14680,7 @@
14704
14680
  token: token
14705
14681
  },
14706
14682
  error: {
14707
- code: ErrorCodes$2.UNAUTHORIZED,
14683
+ code: ErrorCodes.UNAUTHORIZED,
14708
14684
  message: 'ERROR.UNAUTHORIZED'
14709
14685
  },
14710
14686
  fetchPolicy: 'no-cache'
@@ -14721,7 +14697,7 @@
14721
14697
  _a.label = 2;
14722
14698
  case 2:
14723
14699
  challengeError = {
14724
- code: ErrorCodes$2.AUTH_CHALLENGE_ERROR,
14700
+ code: ErrorCodes.AUTH_CHALLENGE_ERROR,
14725
14701
  message: 'ERROR.AUTH_CHALLENGE_ERROR'
14726
14702
  };
14727
14703
  return [4 /*yield*/, this.graphql.query({
@@ -14755,7 +14731,7 @@
14755
14731
  };
14756
14732
  return AccountService;
14757
14733
  }(BaseGraphqlService));
14758
- 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" });
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" });
14759
14735
  AccountService.decorators = [
14760
14736
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
14761
14737
  ];
@@ -14768,7 +14744,7 @@
14768
14744
  { type: FileService },
14769
14745
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
14770
14746
  ]; };
14771
- 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;
14747
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
14772
14748
 
14773
14749
  var Software_1, Configuration_1;
14774
14750
  // @dynamic
@@ -15010,13 +14986,13 @@
15010
14986
  /* ------------------------------------
15011
14987
  * GraphQL queries
15012
14988
  * ------------------------------------*/
15013
- var Fragments = {
15014
- 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 "])))
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 "])))
15015
14991
  };
15016
- 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);
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);
15017
14993
  // Save (create or update) account mutation
15018
- 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);
15019
- 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"])));
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"])));
15020
14996
  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"])));
15021
14997
  var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
15022
14998
  var ConfigService = /** @class */ (function (_super) {
@@ -15109,12 +15085,12 @@
15109
15085
  case 0:
15110
15086
  now = Date.now();
15111
15087
  console.debug('[config] Loading Pod configuration...');
15112
- query = opts && opts.query || LoadQuery;
15088
+ query = opts && opts.query || LoadQuery$1;
15113
15089
  variables = opts && opts.variables || undefined;
15114
15090
  return [4 /*yield*/, this.graphql.query({
15115
15091
  query: query,
15116
15092
  variables: variables,
15117
- error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
15093
+ error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
15118
15094
  fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
15119
15095
  })];
15120
15096
  case 1:
@@ -15148,12 +15124,12 @@
15148
15124
  console.debug('[config] Saving Pod configuration...', config);
15149
15125
  json = config.asObject();
15150
15126
  return [4 /*yield*/, this.graphql.mutate({
15151
- mutation: SaveMutation,
15127
+ mutation: SaveMutation$1,
15152
15128
  variables: {
15153
15129
  data: json
15154
15130
  },
15155
15131
  error: {
15156
- code: ErrorCodes$2.SAVE_CONFIG_ERROR,
15132
+ code: ErrorCodes.SAVE_CONFIG_ERROR,
15157
15133
  message: 'ERROR.SAVE_CONFIG_ERROR'
15158
15134
  }
15159
15135
  })];
@@ -15188,7 +15164,7 @@
15188
15164
  return [4 /*yield*/, this.graphql.query({
15189
15165
  query: CacheStatistics,
15190
15166
  variables: null,
15191
- error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
15167
+ error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
15192
15168
  fetchPolicy: 'network-only'
15193
15169
  })];
15194
15170
  case 1:
@@ -15212,7 +15188,7 @@
15212
15188
  return [4 /*yield*/, this.graphql.query({
15213
15189
  query: ClearCache,
15214
15190
  variables: variables,
15215
- error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
15191
+ error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
15216
15192
  fetchPolicy: 'network-only'
15217
15193
  })];
15218
15194
  case 1:
@@ -15413,7 +15389,7 @@
15413
15389
  };
15414
15390
  return ConfigService;
15415
15391
  }(BaseGraphqlService));
15416
- 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" });
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" });
15417
15393
  ConfigService.decorators = [
15418
15394
  { type: i0.Injectable, args: [{
15419
15395
  providedIn: 'root',
@@ -15431,9 +15407,9 @@
15431
15407
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
15432
15408
  { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
15433
15409
  ]; };
15434
- var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2, templateObject_5$1;
15410
+ var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
15435
15411
 
15436
- var moment$2 = momentImported__namespace;
15412
+ var moment$4 = momentImported__namespace;
15437
15413
  var PlatformService = /** @class */ (function () {
15438
15414
  function PlatformService(platform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser) {
15439
15415
  this.platform = platform;
@@ -15608,16 +15584,16 @@
15608
15584
  }
15609
15585
  // config moment lib
15610
15586
  try {
15611
- moment$2.locale(event.lang);
15587
+ moment$4.locale(event.lang);
15612
15588
  console.debug('[platform] Use locale {' + event.lang + '}');
15613
15589
  }
15614
15590
  // If error, fallback to en
15615
15591
  catch (err) {
15616
- moment$2.locale('en');
15592
+ moment$4.locale('en');
15617
15593
  console.warn('[platform] Unknown local for moment lib. Using default [en]');
15618
15594
  }
15619
15595
  // Config date adapter
15620
- _this.dateAdapter.setLocale(moment$2.locale());
15596
+ _this.dateAdapter.setLocale(moment$4.locale());
15621
15597
  }
15622
15598
  });
15623
15599
  this.settings.onChange.subscribe(function (data) {
@@ -15798,7 +15774,7 @@
15798
15774
  };
15799
15775
  return PlatformService;
15800
15776
  }());
15801
- PlatformService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PlatformService_Factory() { return new PlatformService(i0__namespace.ɵɵinject(i1__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(i13__namespace.StatusBar, 8), i0__namespace.ɵɵinject(i14__namespace.Keyboard, 8), i0__namespace.ɵɵinject(i10__namespace.SplashScreen, 8), i0__namespace.ɵɵinject(i16__namespace.InAppBrowser, 8)); }, token: PlatformService, providedIn: "root" });
15777
+ PlatformService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PlatformService_Factory() { return new PlatformService(i0.ɵɵinject(i1$5.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(i13.StatusBar, 8), i0.ɵɵinject(i14.Keyboard, 8), i0.ɵɵinject(i10.SplashScreen, 8), i0.ɵɵinject(i16.InAppBrowser, 8)); }, token: PlatformService, providedIn: "root" });
15802
15778
  PlatformService.decorators = [
15803
15779
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
15804
15780
  ];
@@ -15894,7 +15870,7 @@
15894
15870
  };
15895
15871
  return MatStepperI18n;
15896
15872
  }(stepper.MatStepperIntl));
15897
- MatStepperI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
15873
+ MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
15898
15874
  MatStepperI18n.decorators = [
15899
15875
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
15900
15876
  ];
@@ -16986,7 +16962,7 @@
16986
16962
  return 1;
16987
16963
  }
16988
16964
  }
16989
- var ɵ0$1 = function (defaultStateSize) { return [
16965
+ var ɵ0$9 = function (defaultStateSize) { return [
16990
16966
  Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
16991
16967
  Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
16992
16968
  Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
@@ -16994,7 +16970,7 @@
16994
16970
  var SCALE_OPTIONS_DEFAULT = {
16995
16971
  startColor: rgbArrayMap.red,
16996
16972
  startStates: [0, 2, 3],
16997
- startStepsFn: ɵ0$1
16973
+ startStepsFn: ɵ0$9
16998
16974
  };
16999
16975
  /**
17000
16976
  * Internal function, that create a colors scale, using iteration
@@ -17086,24 +17062,24 @@
17086
17062
  return result;
17087
17063
  }
17088
17064
 
17089
- var EntityTestClass$1 = /** @class */ (function () {
17065
+ var EntityTestClass = /** @class */ (function () {
17090
17066
  function EntityTestClass() {
17091
17067
  }
17092
17068
  return EntityTestClass;
17093
17069
  }());
17094
- var FAKE_ENTITIES$1 = [
17070
+ var FAKE_ENTITIES = [
17095
17071
  { id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
17096
17072
  { id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
17097
17073
  { id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
17098
17074
  ];
17099
- function deepCopy$1(values, size) {
17075
+ function deepCopy(values, size) {
17100
17076
  if (isNil(size)) {
17101
- return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
17077
+ return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
17102
17078
  }
17103
17079
  var result = [];
17104
17080
  var i = 1;
17105
17081
  while (result.length < size) {
17106
- result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
17082
+ result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
17107
17083
  var name = entity.name + ' #' + i;
17108
17084
  return Object.assign(Object.assign({}, entity), { id: i++, name: name });
17109
17085
  }));
@@ -17113,7 +17089,7 @@
17113
17089
  var AutocompleteTestPage = /** @class */ (function () {
17114
17090
  function AutocompleteTestPage(formBuilder) {
17115
17091
  this.formBuilder = formBuilder;
17116
- this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
17092
+ this._items = deepCopy(FAKE_ENTITIES, 100);
17117
17093
  this.$items = new rxjs.BehaviorSubject(undefined);
17118
17094
  this.autocompleteFields = new MatAutocompleteConfigHolder();
17119
17095
  this.memoryHide = false;
@@ -17158,7 +17134,7 @@
17158
17134
  });
17159
17135
  // From items
17160
17136
  this.autocompleteFields.add('entity-items-large', {
17161
- items: FAKE_ENTITIES$1.slice(),
17137
+ items: FAKE_ENTITIES.slice(),
17162
17138
  attributes: ['label', 'name', 'description', 'comments'],
17163
17139
  displayWith: this.entityToString
17164
17140
  });
@@ -17171,12 +17147,12 @@
17171
17147
  var _this = this;
17172
17148
  return __generator(this, function (_a) {
17173
17149
  data = {
17174
- entity: deepCopy$1(FAKE_ENTITIES$1)[1],
17150
+ entity: deepCopy(FAKE_ENTITIES)[1],
17175
17151
  // This item is NOT in the items list => i should be displayed anyway
17176
17152
  missingEntity: {
17177
17153
  id: -1, label: '??', name: 'Missing item'
17178
17154
  },
17179
- disableEntity: deepCopy$1(FAKE_ENTITIES$1)[2]
17155
+ disableEntity: deepCopy(FAKE_ENTITIES)[2]
17180
17156
  };
17181
17157
  this.form.setValue(data);
17182
17158
  // Load observables
@@ -17365,13 +17341,13 @@
17365
17341
  { type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_TESTING_PAGES,] }] }
17366
17342
  ]; };
17367
17343
 
17368
- var moment$1 = momentImported__namespace;
17344
+ var moment$5 = momentImported__namespace;
17369
17345
  var SwipeTestPage = /** @class */ (function () {
17370
17346
  function SwipeTestPage(formBuilder, dateFormatPipe) {
17371
17347
  this.formBuilder = formBuilder;
17372
17348
  this.dateFormatPipe = dateFormatPipe;
17373
17349
  this.$dates = new rxjs.BehaviorSubject(undefined);
17374
- this._today = moment$1().startOf('day');
17350
+ this._today = moment$5().startOf('day');
17375
17351
  this.form = formBuilder.group({
17376
17352
  empty: [null, i1.Validators.required],
17377
17353
  date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
@@ -17385,7 +17361,7 @@
17385
17361
  var _this = this;
17386
17362
  var dates = [];
17387
17363
  for (var d = 0; d < 7; d++) {
17388
- dates[d] = moment$1(this._today).add(d - 3, 'day');
17364
+ dates[d] = moment$5(this._today).add(d - 3, 'day');
17389
17365
  }
17390
17366
  this.$dates.next(dates);
17391
17367
  this.loadData();
@@ -18057,7 +18033,7 @@
18057
18033
  return FormArrayHelper;
18058
18034
  }());
18059
18035
 
18060
- var moment = momentImported__namespace;
18036
+ var moment$6 = momentImported__namespace;
18061
18037
  var DateTimeTestPage = /** @class */ (function () {
18062
18038
  function DateTimeTestPage(platform, formBuilder, cd) {
18063
18039
  this.platform = platform;
@@ -18092,7 +18068,7 @@
18092
18068
  var now, data;
18093
18069
  var _this = this;
18094
18070
  return __generator(this, function (_a) {
18095
- now = moment();
18071
+ now = moment$6();
18096
18072
  data = {
18097
18073
  empty: toDateISOString(now.clone().add(2, 'hours')),
18098
18074
  enable: toDateISOString(now),
@@ -18156,23 +18132,23 @@
18156
18132
  { type: i0.ChangeDetectorRef }
18157
18133
  ]; };
18158
18134
 
18159
- var EntityTestClass = /** @class */ (function () {
18135
+ var EntityTestClass$1 = /** @class */ (function () {
18160
18136
  function EntityTestClass() {
18161
18137
  }
18162
18138
  return EntityTestClass;
18163
18139
  }());
18164
- var FAKE_ENTITIES = [
18140
+ var FAKE_ENTITIES$1 = [
18165
18141
  { id: 1, label: 'AAA', name: 'Item A' },
18166
18142
  { id: 2, label: 'BBB', name: 'Item B' },
18167
18143
  { id: 3, label: 'CCC', name: 'Item C' }
18168
18144
  ];
18169
- function deepCopy(values) {
18170
- return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
18145
+ function deepCopy$1(values) {
18146
+ return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
18171
18147
  }
18172
18148
  var ChipsTestPage = /** @class */ (function () {
18173
18149
  function ChipsTestPage(formBuilder) {
18174
18150
  this.formBuilder = formBuilder;
18175
- this._items = deepCopy(FAKE_ENTITIES);
18151
+ this._items = deepCopy$1(FAKE_ENTITIES$1);
18176
18152
  this._$items = new rxjs.BehaviorSubject(undefined);
18177
18153
  this.autocompleteFields = new MatAutocompleteConfigHolder();
18178
18154
  this.form = formBuilder.group({
@@ -18192,7 +18168,7 @@
18192
18168
  });
18193
18169
  // From items
18194
18170
  this.autocompleteFields.add('entity-items', {
18195
- items: FAKE_ENTITIES.slice(),
18171
+ items: FAKE_ENTITIES$1.slice(),
18196
18172
  attributes: ['label', 'name'],
18197
18173
  displayWith: this.entityToString
18198
18174
  });
@@ -18215,8 +18191,8 @@
18215
18191
  data = {
18216
18192
  entity: [],
18217
18193
  // THis item is NOT in the items list => i should be displayed anyway
18218
- entityInitial: FAKE_ENTITIES.slice(1, 2),
18219
- disableEntity: FAKE_ENTITIES.slice(1, 2)
18194
+ entityInitial: FAKE_ENTITIES$1.slice(1, 2),
18195
+ disableEntity: FAKE_ENTITIES$1.slice(1, 2)
18220
18196
  };
18221
18197
  this.form.setValue(data);
18222
18198
  return [2 /*return*/];
@@ -18226,7 +18202,7 @@
18226
18202
  ChipsTestPage.prototype.loadItems = function () {
18227
18203
  return __awaiter(this, void 0, void 0, function () {
18228
18204
  return __generator(this, function (_a) {
18229
- this._$items.next(deepCopy(FAKE_ENTITIES));
18205
+ this._$items.next(deepCopy$1(FAKE_ENTITIES$1));
18230
18206
  return [2 /*return*/];
18231
18207
  });
18232
18208
  });
@@ -18263,7 +18239,7 @@
18263
18239
  { type: i1.FormBuilder }
18264
18240
  ]; };
18265
18241
 
18266
- var routes$1 = [
18242
+ var routes = [
18267
18243
  {
18268
18244
  path: '',
18269
18245
  pathMatch: 'full',
@@ -18313,7 +18289,7 @@
18313
18289
  i1.ReactiveFormsModule,
18314
18290
  SharedMaterialModule,
18315
18291
  i1$2.TranslateModule.forChild(),
18316
- i3.RouterModule.forChild(routes$1)
18292
+ i3.RouterModule.forChild(routes)
18317
18293
  ],
18318
18294
  declarations: [
18319
18295
  MaterialTestingPage,
@@ -19388,7 +19364,7 @@
19388
19364
  };
19389
19365
  return UserSettingsValidatorService;
19390
19366
  }(AppValidatorService));
19391
- UserSettingsValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
19367
+ UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
19392
19368
  UserSettingsValidatorService.decorators = [
19393
19369
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
19394
19370
  ];
@@ -19436,7 +19412,7 @@
19436
19412
  };
19437
19413
  return AccountValidatorService;
19438
19414
  }(AppValidatorService));
19439
- 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" });
19415
+ AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
19440
19416
  AccountValidatorService.decorators = [
19441
19417
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
19442
19418
  ];
@@ -19712,7 +19688,7 @@
19712
19688
  FormButtonsBarComponent.decorators = [
19713
19689
  { type: i0.Component, args: [{
19714
19690
  selector: 'app-form-buttons-bar',
19715
- template: "<ion-toolbar [class]=\"classList\">\n <ion-row class=\"ion-no-padding\" nowrap>\n <ion-col>\n <ng-content></ng-content>\n </ion-col>\n\n <ion-col size=\"auto\">\n\n <ion-button fill=\"clear\" color=\"dark\" (click)=\"onBack.emit($event)\" (keyup.enter)=\"onBack.emit($event)\" *ngIf=\"onBack.observers.length\">\n <ion-label translate>COMMON.BTN_CLOSE</ion-label>\n </ion-button>\n\n <ion-button fill=\"clear\" color=\"dark\" (click)=\"onCancel.emit($event)\" (keyup.enter)=\"onCancel.emit($event)\" [disabled]=\"disabledCancel\">\n <ion-icon slot=\"start\" name=\"refresh\"></ion-icon>\n <ion-label translate>COMMON.BTN_RESET</ion-label>\n </ion-button>\n\n\n <ion-button fill=\"solid\" (click)=\"onNext.emit($event)\" (keyup.enter)=\"onNext.emit($event)\" *ngIf=\"onNext.observers.length\">\n <ion-label translate>COMMON.BTN_NEXT</ion-label>\n <ion-icon slot=\"end\" name=\"arrow-forward\"></ion-icon>\n </ion-button>\n\n <ion-button [fill]=\"disabled? 'clear' : 'solid'\" (click)=\"onSave.emit($event)\" (keyup.enter)=\"onSave.emit($event)\" color=\"danger\" [disabled]=\"disabled\">\n <ion-label [innerHTML]=\"'COMMON.BTN_SAVE_WITH_SHORTCUT'|translate\" [title]=\"'COMMON.BTN_SAVE_WITH_SHORTCUT_HELP'|translate\"></ion-label>\n </ion-button>\n </ion-col>\n </ion-row>\n</ion-toolbar>\n",
19691
+ template: "<ion-toolbar [class]=\"classList\">\n <ion-row class=\"ion-no-padding\" nowrap>\n <ion-col>\n <ng-content></ng-content>\n </ion-col>\n\n <ion-col size=\"auto\">\n\n <!-- close (go back) -->\n <ion-button fill=\"clear\" color=\"dark\" (click)=\"onBack.emit($event)\" (keyup.enter)=\"onBack.emit($event)\" *ngIf=\"onBack.observers | isNotEmptyArray\">\n <ion-label translate>COMMON.BTN_CLOSE</ion-label>\n </ion-button>\n\n <!-- reload -->\n <ion-button fill=\"clear\" color=\"dark\" (click)=\"onCancel.emit($event)\" (keyup.enter)=\"onCancel.emit($event)\" [disabled]=\"disabledCancel\">\n <ion-icon slot=\"start\" name=\"refresh\"></ion-icon>\n <ion-label translate>COMMON.BTN_RESET</ion-label>\n </ion-button>\n\n <!-- next -->\n <ion-button fill=\"solid\" (click)=\"onNext.emit($event)\" (keyup.enter)=\"onNext.emit($event)\" *ngIf=\"onNext.observers | isNotEmptyArray\">\n <ion-label translate>COMMON.BTN_NEXT</ion-label>\n <ion-icon slot=\"end\" name=\"arrow-forward\"></ion-icon>\n </ion-button>\n\n <!-- save -->\n <ion-button [fill]=\"disabled ? 'clear' : 'solid'\" (click)=\"onSave.emit($event)\" (keyup.enter)=\"onSave.emit($event)\" color=\"danger\"\n [disabled]=\"disabled\">\n <ion-label [innerHTML]=\"'COMMON.BTN_SAVE_WITH_SHORTCUT'|translate\" [title]=\"'COMMON.BTN_SAVE_WITH_SHORTCUT_HELP'|translate\"></ion-label>\n </ion-button>\n </ion-col>\n </ion-row>\n</ion-toolbar>\n",
19716
19692
  providers: [
19717
19693
  { provide: FormButtonsBarToken, useExisting: FormButtonsBarComponent }
19718
19694
  ],
@@ -20028,7 +20004,7 @@
20028
20004
  };
20029
20005
  return LocalSettingsValidatorService;
20030
20006
  }(AppValidatorService));
20031
- 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" });
20007
+ LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
20032
20008
  LocalSettingsValidatorService.decorators = [
20033
20009
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
20034
20010
  ];
@@ -20802,7 +20778,7 @@
20802
20778
  };
20803
20779
  return IsOnFieldModePipe;
20804
20780
  }());
20805
- IsOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
20781
+ IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
20806
20782
  IsOnFieldModePipe.decorators = [
20807
20783
  { type: i0.Pipe, args: [{
20808
20784
  name: 'isOnField'
@@ -20817,7 +20793,7 @@
20817
20793
  };
20818
20794
  return IsNotOnFieldModePipe;
20819
20795
  }());
20820
- IsNotOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
20796
+ IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
20821
20797
  IsNotOnFieldModePipe.decorators = [
20822
20798
  { type: i0.Pipe, args: [{
20823
20799
  name: 'isNotOnField'
@@ -20835,7 +20811,7 @@
20835
20811
  };
20836
20812
  return PersonToStringPipe;
20837
20813
  }());
20838
- PersonToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
20814
+ PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
20839
20815
  PersonToStringPipe.decorators = [
20840
20816
  { type: i0.Pipe, args: [{
20841
20817
  name: 'personToString'
@@ -21070,7 +21046,7 @@
21070
21046
  };
21071
21047
  return IsLoginAccountPipe;
21072
21048
  }());
21073
- IsLoginAccountPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
21049
+ IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
21074
21050
  IsLoginAccountPipe.decorators = [
21075
21051
  { type: i0.Pipe, args: [{
21076
21052
  name: 'isLogin'
@@ -21085,7 +21061,7 @@
21085
21061
  };
21086
21062
  return AccountToStringPipe;
21087
21063
  }());
21088
- AccountToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
21064
+ AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
21089
21065
  AccountToStringPipe.decorators = [
21090
21066
  { type: i0.Pipe, args: [{
21091
21067
  name: 'accountToString'
@@ -21103,7 +21079,7 @@
21103
21079
  };
21104
21080
  return DepartmentToStringPipe;
21105
21081
  }());
21106
- DepartmentToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
21082
+ DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
21107
21083
  DepartmentToStringPipe.decorators = [
21108
21084
  { type: i0.Pipe, args: [{
21109
21085
  name: 'departmentToString'
@@ -21138,7 +21114,7 @@
21138
21114
  };
21139
21115
  return MenuService;
21140
21116
  }());
21141
- MenuService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
21117
+ MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
21142
21118
  MenuService.decorators = [
21143
21119
  { type: i0.Injectable, args: [{
21144
21120
  providedIn: 'root'
@@ -21717,7 +21693,7 @@
21717
21693
  };
21718
21694
  return AuthGuardService;
21719
21695
  }());
21720
- 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" });
21696
+ 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" });
21721
21697
  AuthGuardService.decorators = [
21722
21698
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
21723
21699
  ];
@@ -21768,7 +21744,7 @@
21768
21744
  query: query,
21769
21745
  variables: { id: id },
21770
21746
  fetchPolicy: opts && opts.fetchPolicy || undefined,
21771
- error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
21747
+ error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
21772
21748
  })
21773
21749
  .pipe(operators.map(function (_a) {
21774
21750
  var data = _a.data;
@@ -21790,7 +21766,7 @@
21790
21766
  query: query,
21791
21767
  variables: { id: id },
21792
21768
  fetchPolicy: opts && opts.fetchPolicy || undefined,
21793
- error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
21769
+ error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
21794
21770
  })];
21795
21771
  case 1:
21796
21772
  data = (_a.sent()).data;
@@ -21826,7 +21802,7 @@
21826
21802
  totalFieldName: withTotal ? 'total' : undefined,
21827
21803
  insertFilterFn: filter && filter.asFilterFn(),
21828
21804
  variables: variables,
21829
- error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
21805
+ error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
21830
21806
  fetchPolicy: opts && opts.fetchPolicy || undefined
21831
21807
  })
21832
21808
  .pipe(operators.map(function (_a) {
@@ -21868,7 +21844,7 @@
21868
21844
  return [4 /*yield*/, this.graphql.query({
21869
21845
  query: query,
21870
21846
  variables: variables,
21871
- error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
21847
+ error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
21872
21848
  fetchPolicy: opts && opts.fetchPolicy || 'network-only'
21873
21849
  })];
21874
21850
  case 1:
@@ -21926,7 +21902,7 @@
21926
21902
  variables: {
21927
21903
  data: json
21928
21904
  },
21929
- error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
21905
+ error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
21930
21906
  update: function (proxy, _a) {
21931
21907
  var data = _a.data;
21932
21908
  var savedEntities = data && data.data;
@@ -21993,7 +21969,7 @@
21993
21969
  variables: {
21994
21970
  data: json
21995
21971
  },
21996
- error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
21972
+ error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
21997
21973
  update: function (cache, _a) {
21998
21974
  var data = _a.data;
21999
21975
  // Update entity
@@ -22051,7 +22027,7 @@
22051
22027
  refetchQueries: this.getRefetchQueriesForMutation(opts),
22052
22028
  awaitRefetchQueries: opts && opts.awaitRefetchQueries,
22053
22029
  variables: { ids: ids },
22054
- error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
22030
+ error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
22055
22031
  update: function (cache, res) {
22056
22032
  // Remove from cache
22057
22033
  if (_this.watchQueriesUpdatePolicy === 'update-cache') {
@@ -22104,7 +22080,7 @@
22104
22080
  refetchQueries: this.getRefetchQueriesForMutation(opts),
22105
22081
  awaitRefetchQueries: opts && opts.awaitRefetchQueries,
22106
22082
  variables: { id: id },
22107
- error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
22083
+ error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
22108
22084
  update: function (proxy, res) {
22109
22085
  // Remove from cache
22110
22086
  if (_this.watchQueriesUpdatePolicy === 'update-cache') {
@@ -22143,7 +22119,7 @@
22143
22119
  query: opts && opts.query || this.subscriptions.listenChanges,
22144
22120
  variables: variables,
22145
22121
  error: {
22146
- code: ErrorCodes$2.SUBSCRIBE_DATA_ERROR,
22122
+ code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
22147
22123
  message: 'ERROR.SUBSCRIBE_DATA_ERROR'
22148
22124
  }
22149
22125
  })
@@ -22332,7 +22308,7 @@
22332
22308
  if (this._debug)
22333
22309
  invalidRows.forEach(this.logRowErrors);
22334
22310
  // Stop with an error
22335
- throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
22311
+ throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
22336
22312
  }
22337
22313
  this._editingRowCount = 0;
22338
22314
  data = void 0;
@@ -22810,13 +22786,16 @@
22810
22786
  }
22811
22787
  };
22812
22788
  AppTable.prototype.markAsUntouched = function (opts) {
22813
- if (this.dirtySubject.value !== false || this.editedRow) {
22789
+ if (this.dirtySubject.value !== false || (this.editedRow && this.editedRow.id !== this.previouslySavedEditedRowId)) {
22790
+ // Cancel the current editing row only if it was not previously saved
22814
22791
  this.dirtySubject.next(false);
22792
+ this.dataSource.cancelOrDelete(this.editedRow);
22815
22793
  this.editedRow = null;
22816
22794
  if (!opts || opts.emitEvent !== false) {
22817
22795
  this.markForCheck();
22818
22796
  }
22819
22797
  }
22798
+ this.previouslySavedEditedRowId = undefined;
22820
22799
  };
22821
22800
  AppTable.prototype.markAsTouched = function (opts) {
22822
22801
  if (this.editedRow && this.editedRow.editing) {
@@ -22968,7 +22947,6 @@
22968
22947
  .pipe(operators.startWith(this.autoLoad ? {} : 'skip'), operators.switchMap(function (event) {
22969
22948
  _this.dirtySubject.next(false);
22970
22949
  _this.selection.clear();
22971
- _this.editedRow = undefined;
22972
22950
  if (event === 'skip') {
22973
22951
  return rxjs.of(undefined);
22974
22952
  }
@@ -23262,20 +23240,21 @@
23262
23240
  return true;
23263
23241
  };
23264
23242
  AppTable.prototype.save = function (opts) {
23243
+ var _a, _b;
23265
23244
  return __awaiter(this, void 0, void 0, function () {
23266
- var editedRowId, isOK, err_1;
23267
- var _this = this;
23245
+ var isOK, err_1;
23268
23246
  return __generator(this, function (_d) {
23269
23247
  switch (_d.label) {
23270
23248
  case 0:
23271
23249
  opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
23272
23250
  if (this.readOnly) {
23273
- throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
23251
+ throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
23274
23252
  }
23275
23253
  this.resetError();
23276
- editedRowId = opts.keepEditing && this.editedRow && this.editedRow.editing && this.editedRow.id;
23254
+ // Keep edited row id (should be done BEFORE confirmEditCreate() )
23255
+ this.previouslySavedEditedRowId = opts.keepEditing && ((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined;
23277
23256
  if (!this.confirmEditCreate()) {
23278
- throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
23257
+ throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
23279
23258
  }
23280
23259
  _d.label = 1;
23281
23260
  case 1:
@@ -23301,15 +23280,13 @@
23301
23280
  case 4:
23302
23281
  this.markAsSaved();
23303
23282
  // Restoring previous row
23304
- if (isNotNil(editedRowId)) {
23305
- if (editedRowId !== -1) {
23306
- this.dataSource.waitIdle()
23307
- .then(function () { return _this.dataSource.getRow(editedRowId); })
23308
- // Select by row id
23309
- .then(function (row) { return row && _this.clickRow(null, row); });
23283
+ if (isNotNil(this.previouslySavedEditedRowId)) {
23284
+ if (this.previouslySavedEditedRowId !== -1) {
23285
+ // Select by row id
23286
+ this.selectRowById(this.previouslySavedEditedRowId);
23310
23287
  }
23311
23288
  else {
23312
- // TODO: find a way to restore the row (find it by data ?)
23289
+ this.selectRowByData((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.currentData);
23313
23290
  }
23314
23291
  }
23315
23292
  return [7 /*endfinally*/];
@@ -23438,7 +23415,7 @@
23438
23415
  switch (_d.label) {
23439
23416
  case 0:
23440
23417
  if (this.readOnly) {
23441
- throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
23418
+ throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
23442
23419
  }
23443
23420
  if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
23444
23421
  return [2 /*return*/, 0]; // SKip
@@ -23509,6 +23486,22 @@
23509
23486
  this.onStartEditingRow.emit(row);
23510
23487
  return true;
23511
23488
  };
23489
+ AppTable.prototype.selectRowById = function (id) {
23490
+ var _this = this;
23491
+ if (id === undefined)
23492
+ return;
23493
+ this.dataSource.waitIdle()
23494
+ .then(function () { return _this.dataSource.getRow(id); })
23495
+ .then(function (row) { return _this.clickRow(null, row); });
23496
+ };
23497
+ AppTable.prototype.selectRowByData = function (data) {
23498
+ var _this = this;
23499
+ if (data === undefined)
23500
+ return;
23501
+ this.dataSource.waitIdle()
23502
+ .then(function () { return _this.dataSource.getRows(); })
23503
+ .then(function (rows) { var _a; return _this.selectRowById((_a = rows.find(function (row) { return _this.dataEquals(row.currentData, data); })) === null || _a === void 0 ? void 0 : _a.id); });
23504
+ };
23512
23505
  AppTable.prototype.clickRow = function (event, row) {
23513
23506
  var _this = this;
23514
23507
  var _a;
@@ -24064,6 +24057,17 @@
24064
24057
  }
24065
24058
  }
24066
24059
  };
24060
+ /**
24061
+ * Compare data equality (default by id)
24062
+ * Can be overridden to add additional properties to compare
24063
+ *
24064
+ * @param t1
24065
+ * @param t2
24066
+ * @protected
24067
+ */
24068
+ AppTable.prototype.dataEquals = function (t1, t2) {
24069
+ return EntityUtils.equals(t1, t2, 'id');
24070
+ };
24067
24071
  /* -- private method -- */
24068
24072
  AppTable.prototype.setLoading = function (value, opts) {
24069
24073
  if (this.loadingSubject.value !== value) {
@@ -24392,6 +24396,9 @@
24392
24396
  this.registerSubscription(this.formButtonsBar.onBack.subscribe(function (event) { return _this.onBackClick(event); }));
24393
24397
  }
24394
24398
  };
24399
+ AppTabEditor.prototype.ngAfterViewInit = function () {
24400
+ // Can be override by subclasses
24401
+ };
24395
24402
  AppTabEditor.prototype.ngOnDestroy = function () {
24396
24403
  this._subscription.unsubscribe();
24397
24404
  };
@@ -24986,6 +24993,7 @@
24986
24993
  };
24987
24994
  AppEntityEditor.prototype.ngAfterViewInit = function () {
24988
24995
  var _this = this;
24996
+ _super.prototype.ngAfterViewInit.call(this);
24989
24997
  // Load data
24990
24998
  if (this._autoLoad) {
24991
24999
  setTimeout(function () { return _this.loadFromRoute(); }, this._autoLoadDelay);
@@ -25051,7 +25059,7 @@
25051
25059
  case 3:
25052
25060
  data = _a.sent();
25053
25061
  if (!data)
25054
- throw { code: ErrorCodes$2.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
25062
+ throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
25055
25063
  this._usageMode = this.computeUsageMode(data);
25056
25064
  return [4 /*yield*/, this.onEntityLoaded(data, opts)];
25057
25065
  case 4:
@@ -25773,10 +25781,10 @@
25773
25781
  exports.UserEventFilter = __decorate([
25774
25782
  EntityClass({ typename: 'UserEventVO' })
25775
25783
  ], exports.UserEventFilter);
25776
- 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);
25777
- 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);
25778
- 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"])));
25779
- 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);
25784
+ 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);
25785
+ 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);
25786
+ 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"])));
25787
+ 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);
25780
25788
  var UserEventService = /** @class */ (function (_super) {
25781
25789
  __extends(UserEventService, _super);
25782
25790
  function UserEventService(graphql, accountService, network, translate, toastController, environment) {
@@ -26097,7 +26105,7 @@
26097
26105
  };
26098
26106
  return UserEventService;
26099
26107
  }(BaseGraphqlService));
26100
- 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" });
26108
+ 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" });
26101
26109
  UserEventService.decorators = [
26102
26110
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
26103
26111
  ];
@@ -26109,7 +26117,7 @@
26109
26117
  { type: i1$5.ToastController },
26110
26118
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
26111
26119
  ]; };
26112
- var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1;
26120
+ var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
26113
26121
 
26114
26122
  var ICONS_MAP = {
26115
26123
  DEBUG_DATA: { matIcon: 'bug_report' },
@@ -26370,16 +26378,16 @@
26370
26378
  ], exports.PersonFilter);
26371
26379
 
26372
26380
  var PersonFragments = {
26373
- 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 }"])))
26381
+ 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 }"])))
26374
26382
  };
26375
26383
  // Load persons query
26376
26384
  var PersonQueries = {
26377
- 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),
26378
- 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)
26385
+ 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),
26386
+ 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)
26379
26387
  };
26380
26388
  var PersonMutations = {
26381
- 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),
26382
- 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 }"])))
26389
+ 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),
26390
+ 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 }"])))
26383
26391
  };
26384
26392
  var PersonService = /** @class */ (function (_super_1) {
26385
26393
  __extends(PersonService, _super_1);
@@ -26502,7 +26510,7 @@
26502
26510
  };
26503
26511
  return PersonService;
26504
26512
  }(BaseEntityService));
26505
- 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" });
26513
+ 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" });
26506
26514
  PersonService.decorators = [
26507
26515
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
26508
26516
  ];
@@ -26512,7 +26520,7 @@
26512
26520
  { type: NetworkService },
26513
26521
  { type: EntitiesStorage }
26514
26522
  ]; };
26515
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
26523
+ var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
26516
26524
 
26517
26525
  var PersonValidatorService = /** @class */ (function () {
26518
26526
  function PersonValidatorService(formBuilder, accountValidatorService) {
@@ -26535,7 +26543,7 @@
26535
26543
  };
26536
26544
  return PersonValidatorService;
26537
26545
  }());
26538
- 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" });
26546
+ PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
26539
26547
  PersonValidatorService.decorators = [
26540
26548
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
26541
26549
  ];
@@ -26707,7 +26715,7 @@
26707
26715
  ],
26708
26716
  animations: [slideUpDownAnimation],
26709
26717
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
26710
- 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}"]
26718
+ 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}"]
26711
26719
  },] }
26712
26720
  ];
26713
26721
  UsersPage.ctorParameters = function () { return [
@@ -26756,16 +26764,16 @@
26756
26764
  ];
26757
26765
  AdminModule.ctorParameters = function () { return []; };
26758
26766
 
26759
- var ɵ0 = {
26767
+ var ɵ0$a = {
26760
26768
  profile: 'ADMIN'
26761
26769
  };
26762
- var routes = [
26770
+ var routes$1 = [
26763
26771
  {
26764
26772
  path: 'users',
26765
26773
  pathMatch: 'full',
26766
26774
  component: UsersPage,
26767
26775
  canActivate: [AuthGuardService],
26768
- data: ɵ0
26776
+ data: ɵ0$a
26769
26777
  }
26770
26778
  ];
26771
26779
  var AdminRoutingModule = /** @class */ (function () {
@@ -26778,13 +26786,13 @@
26778
26786
  imports: [
26779
26787
  SharedRoutingModule,
26780
26788
  AdminModule,
26781
- i3.RouterModule.forChild(routes)
26789
+ i3.RouterModule.forChild(routes$1)
26782
26790
  ],
26783
26791
  exports: [i3.RouterModule]
26784
26792
  },] }
26785
26793
  ];
26786
26794
 
26787
- var ErrorCodes = {
26795
+ var ErrorCodes$2 = {
26788
26796
  LOAD_PERSONS_ERROR: 100,
26789
26797
  SAVE_PERSONS_ERROR: 101,
26790
26798
  DELETE_PERSONS_ERROR: 102,
@@ -26892,7 +26900,7 @@
26892
26900
  exports.EntityStore = EntityStore;
26893
26901
  exports.EntityUtils = EntityUtils;
26894
26902
  exports.Environment = Environment;
26895
- exports.ErrorCodes = ErrorCodes;
26903
+ exports.ErrorCodes = ErrorCodes$2;
26896
26904
  exports.EvenPipe = EvenPipe;
26897
26905
  exports.FileService = FileService;
26898
26906
  exports.FileSizePipe = FileSizePipe;
@@ -26900,7 +26908,7 @@
26900
26908
  exports.FormButtonsBarComponent = FormButtonsBarComponent;
26901
26909
  exports.FormButtonsBarToken = FormButtonsBarToken;
26902
26910
  exports.FormFieldValuesHolder = FormFieldValuesHolder;
26903
- exports.Fragments = Fragments;
26911
+ exports.Fragments = Fragments$1;
26904
26912
  exports.GraphqlService = GraphqlService;
26905
26913
  exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
26906
26914
  exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;