@sumaris-net/ngx-components 0.26.5 → 0.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/cdk/table'), require('@angular/cdk/a11y'), require('@angular/cdk/overlay'), require('@angular/cdk/scrolling'), require('@angular/material/core'), require('@angular/material/table'), require('@angular/material/sort'), require('@angular/material/paginator'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/checkbox'), require('@angular/material/expansion'), require('@angular/material/toolbar'), require('@angular/material/icon'), require('@angular/material/button'), require('@angular/material/menu'), require('@angular/material/select'), require('@angular/material/card'), require('@angular/material/tabs'), require('@angular/material/stepper'), require('@angular/material/list'), require('@angular/material/button-toggle'), require('@angular/material/progress-spinner'), require('@angular/material/progress-bar'), require('@angular/material/radio'), require('@angular/material/badge'), require('@angular/material/slide-toggle'), require('@angular/material/dialog'), require('@angular/material/autocomplete'), require('@angular/forms'), require('rxjs'), require('rxjs/operators'), require('@ngx-translate/core'), require('@ionic/angular'), require('moment'), require('@angular/material-moment-adapter'), require('@ionic-native/keyboard/ngx'), require('angular2-text-mask'), require('ngx-material-timepicker'), require('@angular/material/datepicker'), require('@angular/animations'), require('@angular/material/divider'), require('@angular/material/tooltip'), require('@angular/material/chips'), require('@angular/router'), require('@angular/platform-browser'), require('@angular/common/http'), require('ngx-color-picker'), require('@ionic-native/native-audio/ngx'), require('@ionic-native/vibration/ngx'), require('@ionic-native/audio-management/ngx'), require('@ionic-native/native-audio/ngx/index'), require('@ionic-native/vibration/ngx/index'), require('@ionic-native/audio-management/ngx/index'), require('uuid/v4'), require('@angular/cdk/drag-drop'), require('ngx-markdown'), require('tweetnacl'), require('@ionic/storage'), require('zone.js/dist/zone-error'), require('@ionic-native/splash-screen/ngx'), require('@ionic-native/network/ngx'), require('ionic-cache'), require('ionic-cache/dist/cache.service'), require('@ionic-native/network/ngx/index'), require('@ionic-native/splash-screen/ngx/index'), require('@ionic-native/status-bar/ngx'), require('@angular/cdk/platform'), require('@ionic-native/in-app-browser/ngx'), require('@apollo/client/core'), require('apollo-angular'), require('@apollo/client/link/ws'), require('@apollo/client/utilities'), require('@apollo/client/link/retry'), require('apollo-link-queue'), require('apollo-link-serialize'), require('apollo-link-logger'), require('apollo-angular/http'), require('apollo3-cache-persist'), require('@ionic-native/downloader/ngx'), require('@ionic-native/status-bar/ngx/index'), require('@ionic-native/keyboard/ngx/index'), require('@ionic-native/in-app-browser/ngx/index'), require('@ionic-native/downloader/ngx/index'), require('@e-is/ngx-material-table'), require('@angular/cdk/collections'), require('ngx-jdenticon'), require('tweetnacl-util'), require('scrypt-async'), require('hammerjs')) :
3
3
  typeof define === 'function' && define.amd ? define('@sumaris-net/ngx-components', ['exports', '@angular/core', '@angular/common', '@angular/cdk/table', '@angular/cdk/a11y', '@angular/cdk/overlay', '@angular/cdk/scrolling', '@angular/material/core', '@angular/material/table', '@angular/material/sort', '@angular/material/paginator', '@angular/material/form-field', '@angular/material/input', '@angular/material/checkbox', '@angular/material/expansion', '@angular/material/toolbar', '@angular/material/icon', '@angular/material/button', '@angular/material/menu', '@angular/material/select', '@angular/material/card', '@angular/material/tabs', '@angular/material/stepper', '@angular/material/list', '@angular/material/button-toggle', '@angular/material/progress-spinner', '@angular/material/progress-bar', '@angular/material/radio', '@angular/material/badge', '@angular/material/slide-toggle', '@angular/material/dialog', '@angular/material/autocomplete', '@angular/forms', 'rxjs', 'rxjs/operators', '@ngx-translate/core', '@ionic/angular', 'moment', '@angular/material-moment-adapter', '@ionic-native/keyboard/ngx', 'angular2-text-mask', 'ngx-material-timepicker', '@angular/material/datepicker', '@angular/animations', '@angular/material/divider', '@angular/material/tooltip', '@angular/material/chips', '@angular/router', '@angular/platform-browser', '@angular/common/http', 'ngx-color-picker', '@ionic-native/native-audio/ngx', '@ionic-native/vibration/ngx', '@ionic-native/audio-management/ngx', '@ionic-native/native-audio/ngx/index', '@ionic-native/vibration/ngx/index', '@ionic-native/audio-management/ngx/index', 'uuid/v4', '@angular/cdk/drag-drop', 'ngx-markdown', 'tweetnacl', '@ionic/storage', 'zone.js/dist/zone-error', '@ionic-native/splash-screen/ngx', '@ionic-native/network/ngx', 'ionic-cache', 'ionic-cache/dist/cache.service', '@ionic-native/network/ngx/index', '@ionic-native/splash-screen/ngx/index', '@ionic-native/status-bar/ngx', '@angular/cdk/platform', '@ionic-native/in-app-browser/ngx', '@apollo/client/core', 'apollo-angular', '@apollo/client/link/ws', '@apollo/client/utilities', '@apollo/client/link/retry', 'apollo-link-queue', 'apollo-link-serialize', 'apollo-link-logger', 'apollo-angular/http', 'apollo3-cache-persist', '@ionic-native/downloader/ngx', '@ionic-native/status-bar/ngx/index', '@ionic-native/keyboard/ngx/index', '@ionic-native/in-app-browser/ngx/index', '@ionic-native/downloader/ngx/index', '@e-is/ngx-material-table', '@angular/cdk/collections', 'ngx-jdenticon', 'tweetnacl-util', 'scrypt-async', 'hammerjs'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sumaris-net'] = global['sumaris-net'] || {}, global['sumaris-net']['ngx-components'] = {}), global.ng.core, global.ng.common, global.ng.cdk.table, global.ng.cdk.a11y, global.ng.cdk.overlay, global.ng.cdk.scrolling, global.ng.material.core, global.ng.material.table, global.ng.material.sort, global.ng.material.paginator, global.ng.material.formField, global.ng.material.input, global.ng.material.checkbox, global.ng.material.expansion, global.ng.material.toolbar, global.ng.material.icon, global.ng.material.button, global.ng.material.menu, global.ng.material.select, global.ng.material.card, global.ng.material.tabs, global.ng.material.stepper, global.ng.material.list, global.ng.material.buttonToggle, global.ng.material.progressSpinner, global.ng.material.progressBar, global.ng.material.radio, global.ng.material.badge, global.ng.material.slideToggle, global.ng.material.dialog, global.ng.material.autocomplete, global.ng.forms, global.rxjs, global.rxjs.operators, global['ngx-translate'].core, global.ionic.angular, global.moment, global.ng.materialMomentAdapter, global['ionic-native'].keyboard.ngx, global['angular2-text-mask'], global['ngx-material-timepicker'], global.ng.material.datepicker, global.ng.animations, global.ng.material.divider, global.ng.material.tooltip, global.ng.material.chips, global.ng.router, global.ng.platformBrowser, global.ng.common.http, global['ngx-color-picker'], global['ionic-native']['native-audio'].ngx, global['ionic-native'].vibration.ngx, global['ionic-native']['audio-management'].ngx, global['ionic-native']['native-audio'].ngx.index, global['ionic-native'].vibration.ngx.index, global['ionic-native']['audio-management'].ngx.index, global.uuid.v4, global.ng.cdk.dragDrop, global['ngx-markdown'], global.tweetnacl, global.ionic.storage, null, global['ionic-native']['splash-screen'].ngx, global['ionic-native'].network.ngx, global['ionic-cache'], global['ionic-cache/dist/cache'].service, global['ionic-native'].network.ngx.index, global['ionic-native']['splash-screen'].ngx.index, global['ionic-native']['status-bar'].ngx, global.ng.cdk.platform, global['ionic-native']['in-app-browser'].ngx, global.apollo.client.core, global['apollo-angular'], global.apollo.client.link.ws, global.apollo.client.utilities, global.apollo.client.link.retry, global['apollo-link-queue'], global['apollo-link-serialize'], global['apollo-link-logger'], global['apollo-angular'].http, global['apollo3-cache-persist'], global.ngx$6, global['ionic-native']['status-bar'].ngx.index, global['ionic-native'].keyboard.ngx.index, global['ionic-native']['in-app-browser'].ngx.index, global.i18, global['e-is']['ngx-material-table'], global.ng.cdk.collections, global['ngx-jdenticon']));
5
- }(this, (function (exports, i0, i1$4, table$1, a11y, overlay, scrolling, i1$3, table, sort$1, paginator, formField, input, checkbox, expansion, toolbar, icon, button, menu, select, card, tabs, stepper, list, buttonToggle, progressSpinner, progressBar, radio, badge, slideToggle, i2, autocomplete, i1, rxjs, operators, i1$2, i1$5, momentImported, i1$1, ngx, angular2TextMask, ngxMaterialTimepicker, datepicker, animations, divider, tooltip, chips, i3, i1$6, i2$1, ngxColorPicker, ngx$2, ngx$3, ngx$1, i2$2, i3$1, i4, uuidv4Imported, dragDrop, ngxMarkdown, tweetnacl, i3$2, zoneError, ngx$5, ngx$4, ionicCache, i6, i9, i10, ngx$7, i2$4, ngx$8, core, i2$3, ws, utilities, retry, QueueLink, SerializingLink, loggerLink, i3$3, apollo3CachePersist, ngx$6, i14, i15, i17, i18, ngxMaterialTable, collections, ngxJdenticon) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["sumaris-net"] = global["sumaris-net"] || {}, global["sumaris-net"]["ngx-components"] = {}), global.ng.core, global.ng.common, global.ng.cdk.table, global.ng.cdk.a11y, global.ng.cdk.overlay, global.ng.cdk.scrolling, global.ng.material.core, global.ng.material.table, global.ng.material.sort, global.ng.material.paginator, global.ng.material.formField, global.ng.material.input, global.ng.material.checkbox, global.ng.material.expansion, global.ng.material.toolbar, global.ng.material.icon, global.ng.material.button, global.ng.material.menu, global.ng.material.select, global.ng.material.card, global.ng.material.tabs, global.ng.material.stepper, global.ng.material.list, global.ng.material.buttonToggle, global.ng.material.progressSpinner, global.ng.material.progressBar, global.ng.material.radio, global.ng.material.badge, global.ng.material.slideToggle, global.ng.material.dialog, global.ng.material.autocomplete, global.ng.forms, global.rxjs, global.rxjs.operators, global["ngx-translate"].core, global.ionic.angular, global.moment, global.ng.materialMomentAdapter, global["ionic-native"].keyboard.ngx, global["angular2-text-mask"], global["ngx-material-timepicker"], global.ng.material.datepicker, global.ng.animations, global.ng.material.divider, global.ng.material.tooltip, global.ng.material.chips, global.ng.router, global.ng.platformBrowser, global.ng.common.http, global["ngx-color-picker"], global["ionic-native"]["native-audio"].ngx, global["ionic-native"].vibration.ngx, global["ionic-native"]["audio-management"].ngx, global["ionic-native"]["native-audio"].ngx.index, global["ionic-native"].vibration.ngx.index, global["ionic-native"]["audio-management"].ngx.index, global.uuid.v4, global.ng.cdk.dragDrop, global["ngx-markdown"], global.tweetnacl, global.ionic.storage, null, global["ionic-native"]["splash-screen"].ngx, global["ionic-native"].network.ngx, global["ionic-cache"], global["ionic-cache/dist/cache"].service, global["ionic-native"].network.ngx.index, global["ionic-native"]["splash-screen"].ngx.index, global["ionic-native"]["status-bar"].ngx, global.ng.cdk.platform, global["ionic-native"]["in-app-browser"].ngx, global.apollo.client.core, global["apollo-angular"], global.apollo.client.link.ws, global.apollo.client.utilities, global.apollo.client.link.retry, global["apollo-link-queue"], global["apollo-link-serialize"], global["apollo-link-logger"], global["apollo-angular"].http, global["apollo3-cache-persist"], global.ngx$6, global["ionic-native"]["status-bar"].ngx.index, global["ionic-native"].keyboard.ngx.index, global["ionic-native"]["in-app-browser"].ngx.index, global.i18, global["e-is"]["ngx-material-table"], global.ng.cdk.collections, global["ngx-jdenticon"]));
5
+ })(this, (function (exports, i0, i1$4, table$1, a11y, overlay, scrolling, i1$3, table, sort$1, paginator, formField, input, checkbox, expansion, toolbar, icon, button, menu, select, card, tabs, stepper, list, buttonToggle, progressSpinner, progressBar, radio, badge, slideToggle, i2, autocomplete, i1, rxjs, operators, i1$2, i1$5, momentImported, i1$1, ngx, angular2TextMask, ngxMaterialTimepicker, datepicker, animations, divider, tooltip, chips, i3, i1$6, i2$1, ngxColorPicker, ngx$2, ngx$3, ngx$1, i2$2, i3$1, i4, uuidv4Imported, dragDrop, ngxMarkdown, tweetnacl, i3$2, zoneError, ngx$5, ngx$4, ionicCache, i6, i9, i10, ngx$7, i2$4, ngx$8, core, i2$3, ws, utilities, retry, QueueLink, SerializingLink, loggerLink, i3$3, apollo3CachePersist, ngx$6, i14, i15, i17, i18, ngxMaterialTable, collections, ngxJdenticon) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -15,22 +15,45 @@
15
15
  var d = Object.getOwnPropertyDescriptor(e, k);
16
16
  Object.defineProperty(n, k, d.get ? d : {
17
17
  enumerable: true,
18
- get: function () {
19
- return e[k];
20
- }
18
+ get: function () { return e[k]; }
21
19
  });
22
20
  }
23
21
  });
24
22
  }
25
- n['default'] = e;
23
+ n["default"] = e;
26
24
  return Object.freeze(n);
27
25
  }
28
26
 
27
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
+ var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$4);
29
+ var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
30
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2);
31
+ var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1);
32
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
33
+ var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$5);
29
34
  var momentImported__namespace = /*#__PURE__*/_interopNamespace(momentImported);
35
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
36
+ var i3__namespace$3 = /*#__PURE__*/_interopNamespace(i3);
37
+ var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$6);
38
+ var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$1);
39
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2$2);
40
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3$1);
41
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
30
42
  var uuidv4Imported__namespace = /*#__PURE__*/_interopNamespace(uuidv4Imported);
43
+ var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$2);
44
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
45
+ var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
46
+ var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
47
+ var i2__namespace$4 = /*#__PURE__*/_interopNamespace(i2$4);
48
+ var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
31
49
  var QueueLink__default = /*#__PURE__*/_interopDefaultLegacy(QueueLink);
32
50
  var SerializingLink__default = /*#__PURE__*/_interopDefaultLegacy(SerializingLink);
33
51
  var loggerLink__default = /*#__PURE__*/_interopDefaultLegacy(loggerLink);
52
+ var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$3);
53
+ var i14__namespace = /*#__PURE__*/_interopNamespace(i14);
54
+ var i15__namespace = /*#__PURE__*/_interopNamespace(i15);
55
+ var i17__namespace = /*#__PURE__*/_interopNamespace(i17);
56
+ var i18__namespace = /*#__PURE__*/_interopNamespace(i18);
34
57
 
35
58
  var ENVIRONMENT = new i0.InjectionToken('ENV');
36
59
  var Environment = /** @class */ (function () {
@@ -1134,19 +1157,19 @@
1134
1157
  };
1135
1158
  return MatAutocompleteConfigHolder;
1136
1159
  }());
1137
- var DEFAULT_VALUE_ACCESSOR = {
1160
+ var DEFAULT_VALUE_ACCESSOR$6 = {
1138
1161
  provide: i1.NG_VALUE_ACCESSOR,
1139
1162
  useExisting: i0.forwardRef(function () { return MatAutocompleteField; }),
1140
1163
  multi: true
1141
1164
  };
1142
- var noop = function () { };
1143
- var ɵ0 = noop;
1165
+ var noop$7 = function () { };
1166
+ var ɵ0$a = noop$7;
1144
1167
  var MatAutocompleteField = /** @class */ (function () {
1145
1168
  function MatAutocompleteField(cd, formGroupDir) {
1146
1169
  this.cd = cd;
1147
1170
  this.formGroupDir = formGroupDir;
1148
- this._onChangeCallback = noop;
1149
- this._onTouchedCallback = noop;
1171
+ this._onChangeCallback = noop$7;
1172
+ this._onTouchedCallback = noop$7;
1150
1173
  this._subscription = new rxjs.Subscription();
1151
1174
  this._filter$ = new rxjs.BehaviorSubject(undefined);
1152
1175
  this._reload$ = new rxjs.Subject();
@@ -1809,8 +1832,8 @@
1809
1832
  { type: i0.Component, args: [{
1810
1833
  // eslint-disable-next-line @angular-eslint/component-selector
1811
1834
  selector: 'mat-autocomplete-field',
1812
- template: "<ion-grid class=\"ion-no-padding\">\n <ion-row>\n <ion-col class=\"ion-no-padding\">\n <mat-form-field *ngIf=\"_readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n [title]=\"displayValue\"\n class=\"mat-form-field-disabled\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <!-- readonly -->\n <ng-container>\n <input matInput hidden type=\"text\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\" readonly>\n <ion-text>{{displayWith(value)}}</ion-text>\n </ng-container>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n\n </mat-form-field>\n\n <ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-disabled]=\"disabled\"\n [title]=\"displayValue\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\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 (keydown.escape)=\"onKeydownEscape.emit($event)\"\n [compareWith]=\"compareWith\"\n [multiple]=\"multiple\"\n [required]=\"required\">\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 <mat-option *ngIf=\"_moreItemsCount\" (ngInit)=\"_initMatSelectInfiniteScroll()\"\n class=\"ion-padding\" disabled>\n <ion-skeleton-text [animated]=\"true\" style=\"width: 100%\"></ion-skeleton-text>\n </mat-option>\n </ng-container>\n </mat-select>\n\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 [required]=\"required\"\n (click)=\"onClick.emit($event)\"\n (focus)=\"filterInputTextFocusInEvent($event)\"\n (blur)=\"filterInputTextBlurEvent($event)\"\n (keydown.escape)=\"onKeydownEscape.emit($event)\"\n (keyup.enter)=\"onKeyupEnter.emit($event)\"\n (keyup.arrowdown)=\"!autocomplete.opened && 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)=\"_initAutocompleteInfiniteScroll()\"\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 <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\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 </ng-template>\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\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n\n\n<ng-template #matSuffixTemplate>\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 select=\"[matSuffix]\"></ng-content>\n</ng-template>\n",
1813
- providers: [DEFAULT_VALUE_ACCESSOR],
1835
+ template: "<ion-grid class=\"ion-no-padding\">\n <ion-row>\n <ion-col class=\"ion-no-padding\">\n <mat-form-field *ngIf=\"_readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n [title]=\"displayValue\"\n class=\"mat-form-field-disabled\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <!-- readonly -->\n <ng-container>\n <input matInput hidden type=\"text\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\" readonly>\n <ion-text>{{displayWith(value)}}</ion-text>\n </ng-container>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n\n </mat-form-field>\n\n <ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-disabled]=\"disabled\"\n [title]=\"displayValue\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\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 (keydown.escape)=\"onKeydownEscape.emit($event)\"\n (keyup.enter)=\"onKeyupEnter.emit($event)\"\n [compareWith]=\"compareWith\"\n [multiple]=\"multiple\"\n [required]=\"required\">\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 <mat-option *ngIf=\"_moreItemsCount\" (ngInit)=\"_initMatSelectInfiniteScroll()\"\n class=\"ion-padding\" disabled>\n <ion-skeleton-text [animated]=\"true\" style=\"width: 100%\"></ion-skeleton-text>\n </mat-option>\n </ng-container>\n </mat-select>\n\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 [required]=\"required\"\n (click)=\"onClick.emit($event)\"\n (focus)=\"filterInputTextFocusInEvent($event)\"\n (blur)=\"filterInputTextBlurEvent($event)\"\n (keydown.escape)=\"onKeydownEscape.emit($event)\"\n (keyup.enter)=\"onKeyupEnter.emit($event)\"\n (keyup.arrowdown)=\"!autocomplete.opened && 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)=\"_initAutocompleteInfiniteScroll()\"\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 <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\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 </ng-template>\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\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n\n\n<ng-template #matSuffixTemplate>\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 select=\"[matSuffix]\"></ng-content>\n</ng-template>\n",
1836
+ providers: [DEFAULT_VALUE_ACCESSOR$6],
1814
1837
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
1815
1838
  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}"]
1816
1839
  },] }
@@ -1888,7 +1911,7 @@
1888
1911
  };
1889
1912
  return DateFormatPipe;
1890
1913
  }());
1891
- 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" });
1914
+ 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" });
1892
1915
  DateFormatPipe.decorators = [
1893
1916
  { type: i0.Pipe, args: [{
1894
1917
  name: 'dateFormat'
@@ -1900,7 +1923,7 @@
1900
1923
  { type: i1$2.TranslateService }
1901
1924
  ]; };
1902
1925
 
1903
- var moment = momentImported__namespace;
1926
+ var moment$6 = momentImported__namespace;
1904
1927
  var DateDiffDurationPipe = /** @class */ (function () {
1905
1928
  function DateDiffDurationPipe(dateAdapter, translate) {
1906
1929
  var _this = this;
@@ -1917,10 +1940,10 @@
1917
1940
  return this.format(startDate, endDate);
1918
1941
  };
1919
1942
  DateDiffDurationPipe.prototype.format = function (startDate, endDate) {
1920
- var duration = moment.duration(endDate.diff(startDate));
1943
+ var duration = moment$6.duration(endDate.diff(startDate));
1921
1944
  if (duration.asMinutes() < 0)
1922
1945
  return '';
1923
- var timeDuration = moment(0)
1946
+ var timeDuration = moment$6(0)
1924
1947
  .hour(duration.hours())
1925
1948
  .minute(duration.minutes());
1926
1949
  var days = Math.floor(duration.asDays());
@@ -1928,7 +1951,7 @@
1928
1951
  };
1929
1952
  return DateDiffDurationPipe;
1930
1953
  }());
1931
- 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" });
1954
+ 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" });
1932
1955
  DateDiffDurationPipe.decorators = [
1933
1956
  { type: i0.Pipe, args: [{
1934
1957
  name: 'dateDiffDuration'
@@ -1950,7 +1973,7 @@
1950
1973
  };
1951
1974
  return DateFromNowPipe;
1952
1975
  }());
1953
- DateFromNowPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0.ɵɵinject(i1$1.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
1976
+ DateFromNowPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0__namespace.ɵɵinject(i1__namespace.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
1954
1977
  DateFromNowPipe.decorators = [
1955
1978
  { type: i0.Pipe, args: [{
1956
1979
  name: 'dateFromNow'
@@ -2019,7 +2042,7 @@
2019
2042
  value *= -1;
2020
2043
  }
2021
2044
  }
2022
- var degrees = roundFloat(value, opts.maxDecimals).toString();
2045
+ var degrees = roundFloat$1(value, opts.maxDecimals).toString();
2023
2046
  // Add sign
2024
2047
  var sign = negative ? '-' : '+';
2025
2048
  if (opts.placeholderChar) {
@@ -2070,7 +2093,7 @@
2070
2093
  }
2071
2094
  var degrees = Math.trunc(value);
2072
2095
  var minutes = Math.trunc((value - degrees) * 60);
2073
- var seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
2096
+ var seconds = roundFloat$1(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
2074
2097
  while (seconds >= 60) {
2075
2098
  seconds -= 60;
2076
2099
  minutes += 1;
@@ -2138,7 +2161,7 @@
2138
2161
  }
2139
2162
  }
2140
2163
  var degrees = Math.trunc(value);
2141
- var minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
2164
+ var minutes = roundFloat$1((value - degrees) * 60, opts.maxDecimals);
2142
2165
  while (minutes >= 60) {
2143
2166
  minutes -= 60;
2144
2167
  degrees += 1;
@@ -2189,15 +2212,15 @@
2189
2212
  return NaN;
2190
2213
  }
2191
2214
  if (pattern === 'DD')
2192
- return roundFloat(degrees, maxDecimals);
2215
+ return roundFloat$1(degrees, maxDecimals);
2193
2216
  var minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
2194
2217
  var seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
2195
2218
  var direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
2196
2219
  var sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
2197
2220
  degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
2198
- return roundFloat(degrees, maxDecimals);
2221
+ return roundFloat$1(degrees, maxDecimals);
2199
2222
  }
2200
- function roundFloat(input, maxDecimals) {
2223
+ function roundFloat$1(input, maxDecimals) {
2201
2224
  if (maxDecimals > 0) {
2202
2225
  var powDecimal = Math.pow(10, maxDecimals);
2203
2226
  return Math.trunc(input * powDecimal + 0.5) / powDecimal;
@@ -2220,7 +2243,7 @@
2220
2243
  };
2221
2244
  return LatLongFormatPipe;
2222
2245
  }());
2223
- LatLongFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
2246
+ LatLongFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
2224
2247
  LatLongFormatPipe.decorators = [
2225
2248
  { type: i0.Pipe, args: [{
2226
2249
  name: 'latLongFormat'
@@ -2233,7 +2256,7 @@
2233
2256
  }
2234
2257
  return LatitudeFormatPipe;
2235
2258
  }());
2236
- LatitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
2259
+ LatitudeFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
2237
2260
  LatitudeFormatPipe.decorators = [
2238
2261
  { type: i0.Pipe, args: [{
2239
2262
  name: 'latitudeFormat'
@@ -2246,7 +2269,7 @@
2246
2269
  }
2247
2270
  return LongitudeFormatPipe;
2248
2271
  }());
2249
- LongitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
2272
+ LongitudeFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
2250
2273
  LongitudeFormatPipe.decorators = [
2251
2274
  { type: i0.Pipe, args: [{
2252
2275
  name: 'longitudeFormat'
@@ -2269,7 +2292,7 @@
2269
2292
  };
2270
2293
  return NumberFormatPipe;
2271
2294
  }());
2272
- NumberFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
2295
+ NumberFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
2273
2296
  NumberFormatPipe.decorators = [
2274
2297
  { type: i0.Pipe, args: [{
2275
2298
  name: 'numberFormat'
@@ -2312,7 +2335,7 @@
2312
2335
  };
2313
2336
  return HighlightPipe;
2314
2337
  }());
2315
- HighlightPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
2338
+ HighlightPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
2316
2339
  HighlightPipe.decorators = [
2317
2340
  { type: i0.Pipe, args: [{
2318
2341
  name: 'highlight'
@@ -2380,7 +2403,7 @@
2380
2403
  { type: i0.Pipe, args: [{ name: 'fileSize' },] }
2381
2404
  ];
2382
2405
 
2383
- var moment$1 = momentImported__namespace;
2406
+ var moment$5 = momentImported__namespace;
2384
2407
  var DATE_UNIX_TIMESTAMP = 'X';
2385
2408
  var DATE_UNIX_MS_TIMESTAMP = 'x';
2386
2409
  var DateUtils = /** @class */ (function () {
@@ -2415,32 +2438,32 @@
2415
2438
  if (!value || momentImported.isMoment(value))
2416
2439
  return value;
2417
2440
  // Parse the input value, as a ISO date time
2418
- var date = moment$1(value, DATE_ISO_PATTERN);
2441
+ var date = moment$5(value, DATE_ISO_PATTERN);
2419
2442
  if (date.isValid())
2420
2443
  return date;
2421
2444
  // Not valid: trying to convert from unix timestamp
2422
2445
  if (typeof value === 'string') {
2423
2446
  console.warn('Wrong date format - Trying to convert from local time: ' + value);
2424
2447
  if (value.length === 10) {
2425
- return moment$1(value, DATE_UNIX_TIMESTAMP);
2448
+ return moment$5(value, DATE_UNIX_TIMESTAMP);
2426
2449
  }
2427
2450
  else if (value.length === 13) {
2428
- return moment$1(value, DATE_UNIX_MS_TIMESTAMP);
2451
+ return moment$5(value, DATE_UNIX_MS_TIMESTAMP);
2429
2452
  }
2430
2453
  }
2431
2454
  console.warn('Unable to parse date: ' + value);
2432
2455
  return undefined;
2433
2456
  }
2434
2457
  function fromUnixTimestamp(timeInSec) {
2435
- return moment$1(timeInSec, DATE_UNIX_TIMESTAMP);
2458
+ return moment$5(timeInSec, DATE_UNIX_TIMESTAMP);
2436
2459
  }
2437
2460
  function fromUnixMsTimestamp(timeInMs) {
2438
- return moment$1(timeInMs, DATE_UNIX_MS_TIMESTAMP);
2461
+ return moment$5(timeInMs, DATE_UNIX_MS_TIMESTAMP);
2439
2462
  }
2440
2463
  function toDuration(value, unit) {
2441
2464
  if (!value)
2442
2465
  return undefined;
2443
- var duration = moment$1.duration(value, unit);
2466
+ var duration = moment$5.duration(value, unit);
2444
2467
  // fix 990+ ms
2445
2468
  if (duration.milliseconds() >= 990) {
2446
2469
  duration.add(1000 - duration.milliseconds(), 'ms');
@@ -2470,7 +2493,7 @@
2470
2493
  };
2471
2494
  return DurationPipe;
2472
2495
  }());
2473
- DurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0.ɵɵinject(i1$2.TranslateService)); }, token: DurationPipe, providedIn: "root" });
2496
+ DurationPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: DurationPipe, providedIn: "root" });
2474
2497
  DurationPipe.decorators = [
2475
2498
  { type: i0.Pipe, args: [{
2476
2499
  name: 'duration'
@@ -2494,7 +2517,7 @@
2494
2517
  };
2495
2518
  return MathAbsPipe;
2496
2519
  }());
2497
- MathAbsPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
2520
+ MathAbsPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
2498
2521
  MathAbsPipe.decorators = [
2499
2522
  { type: i0.Pipe, args: [{
2500
2523
  name: 'mathAbs'
@@ -2509,7 +2532,7 @@
2509
2532
  };
2510
2533
  return EvenPipe;
2511
2534
  }());
2512
- EvenPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
2535
+ EvenPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
2513
2536
  EvenPipe.decorators = [
2514
2537
  { type: i0.Pipe, args: [{
2515
2538
  name: 'even'
@@ -2524,7 +2547,7 @@
2524
2547
  };
2525
2548
  return OddPipe;
2526
2549
  }());
2527
- OddPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
2550
+ OddPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
2528
2551
  OddPipe.decorators = [
2529
2552
  { type: i0.Pipe, args: [{
2530
2553
  name: 'odd'
@@ -2656,7 +2679,7 @@
2656
2679
  };
2657
2680
  return MapGetPipe;
2658
2681
  }());
2659
- MapGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
2682
+ MapGetPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
2660
2683
  MapGetPipe.decorators = [
2661
2684
  { type: i0.Pipe, args: [{
2662
2685
  name: 'mapGet'
@@ -2673,7 +2696,7 @@
2673
2696
  };
2674
2697
  return MapKeysPipe;
2675
2698
  }());
2676
- MapKeysPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
2699
+ MapKeysPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
2677
2700
  MapKeysPipe.decorators = [
2678
2701
  { type: i0.Pipe, args: [{
2679
2702
  name: 'mapKeys'
@@ -2690,7 +2713,7 @@
2690
2713
  };
2691
2714
  return MapValuesPipe;
2692
2715
  }());
2693
- MapValuesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
2716
+ MapValuesPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
2694
2717
  MapValuesPipe.decorators = [
2695
2718
  { type: i0.Pipe, args: [{
2696
2719
  name: 'mapValues'
@@ -2706,7 +2729,7 @@
2706
2729
  };
2707
2730
  return IsNotNilOrBlankPipe;
2708
2731
  }());
2709
- IsNotNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
2732
+ IsNotNilOrBlankPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
2710
2733
  IsNotNilOrBlankPipe.decorators = [
2711
2734
  { type: i0.Pipe, args: [{
2712
2735
  name: 'isNotNilOrBlank'
@@ -2721,7 +2744,7 @@
2721
2744
  };
2722
2745
  return IsNilOrBlankPipe;
2723
2746
  }());
2724
- IsNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
2747
+ IsNilOrBlankPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
2725
2748
  IsNilOrBlankPipe.decorators = [
2726
2749
  { type: i0.Pipe, args: [{
2727
2750
  name: 'isNilOrBlank'
@@ -2736,7 +2759,7 @@
2736
2759
  };
2737
2760
  return ToStringPipe;
2738
2761
  }());
2739
- ToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
2762
+ ToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
2740
2763
  ToStringPipe.decorators = [
2741
2764
  { type: i0.Pipe, args: [{
2742
2765
  name: 'toString'
@@ -2751,7 +2774,7 @@
2751
2774
  };
2752
2775
  return StrLengthPipe;
2753
2776
  }());
2754
- StrLengthPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
2777
+ StrLengthPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
2755
2778
  StrLengthPipe.decorators = [
2756
2779
  { type: i0.Pipe, args: [{
2757
2780
  name: 'strLength'
@@ -2804,7 +2827,7 @@
2804
2827
  };
2805
2828
  return TranslateContextService;
2806
2829
  }());
2807
- TranslateContextService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0.ɵɵinject(i1$2.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
2830
+ TranslateContextService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
2808
2831
  TranslateContextService.decorators = [
2809
2832
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
2810
2833
  ];
@@ -2821,7 +2844,7 @@
2821
2844
  };
2822
2845
  return TranslateContextPipe;
2823
2846
  }());
2824
- TranslateContextPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextPipe_Factory() { return new TranslateContextPipe(i0.ɵɵinject(TranslateContextService)); }, token: TranslateContextPipe, providedIn: "root" });
2847
+ TranslateContextPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslateContextPipe_Factory() { return new TranslateContextPipe(i0__namespace.ɵɵinject(TranslateContextService)); }, token: TranslateContextPipe, providedIn: "root" });
2825
2848
  TranslateContextPipe.decorators = [
2826
2849
  { type: i0.Pipe, args: [{
2827
2850
  name: 'translateContext'
@@ -2841,7 +2864,7 @@
2841
2864
  };
2842
2865
  return TranslatablePipe;
2843
2866
  }());
2844
- TranslatablePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslatablePipe_Factory() { return new TranslatablePipe(); }, token: TranslatablePipe, providedIn: "root" });
2867
+ TranslatablePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslatablePipe_Factory() { return new TranslatablePipe(); }, token: TranslatablePipe, providedIn: "root" });
2845
2868
  TranslatablePipe.decorators = [
2846
2869
  { type: i0.Pipe, args: [{
2847
2870
  name: 'translatable'
@@ -2861,7 +2884,7 @@
2861
2884
  };
2862
2885
  return PropertyGetPipe;
2863
2886
  }());
2864
- PropertyGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
2887
+ PropertyGetPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
2865
2888
  PropertyGetPipe.decorators = [
2866
2889
  { type: i0.Pipe, args: [{
2867
2890
  name: 'propertyGet'
@@ -2887,14 +2910,14 @@
2887
2910
  ngInit: [{ type: i0.Output }]
2888
2911
  };
2889
2912
 
2890
- var moment$2 = momentImported__namespace;
2913
+ var moment$4 = momentImported__namespace;
2891
2914
  // @dynamic
2892
2915
  var SharedValidators = /** @class */ (function () {
2893
2916
  function SharedValidators() {
2894
2917
  }
2895
2918
  SharedValidators.validDate = function (control) {
2896
2919
  var value = control.value;
2897
- var date = !value || moment$2.isMoment(value) ? value : moment$2(control.value, DATE_ISO_PATTERN);
2920
+ var date = !value || moment$4.isMoment(value) ? value : moment$4(control.value, DATE_ISO_PATTERN);
2898
2921
  if (date && (!date.isValid() || date.year() < 1970)) {
2899
2922
  return { validDate: true };
2900
2923
  }
@@ -4020,7 +4043,7 @@
4020
4043
  };
4021
4044
  return FormErrorTranslator;
4022
4045
  }());
4023
- FormErrorTranslator.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormErrorTranslator_Factory() { return new FormErrorTranslator(i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(APP_FORM_ERROR_I18N_KEYS, 8)); }, token: FormErrorTranslator, providedIn: "root" });
4046
+ FormErrorTranslator.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function FormErrorTranslator_Factory() { return new FormErrorTranslator(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(APP_FORM_ERROR_I18N_KEYS, 8)); }, token: FormErrorTranslator, providedIn: "root" });
4024
4047
  FormErrorTranslator.decorators = [
4025
4048
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
4026
4049
  ];
@@ -4302,9 +4325,9 @@
4302
4325
  var hour = parseInt(durationParts[0] || '0');
4303
4326
  var minute = parseInt(durationParts[1] || '0');
4304
4327
  var value = hour + (minute + 0.5) / 60;
4305
- return roundFloat$1(value, maxDecimals);
4328
+ return roundFloat(value, maxDecimals);
4306
4329
  }
4307
- function roundFloat$1(input, maxDecimals) {
4330
+ function roundFloat(input, maxDecimals) {
4308
4331
  if (maxDecimals > 0) {
4309
4332
  var powDecimal = Math.pow(10, maxDecimals);
4310
4333
  return Math.trunc(input * powDecimal + 0.5) / powDecimal;
@@ -4328,9 +4351,9 @@
4328
4351
  DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
4329
4352
  }
4330
4353
  };
4331
- var noop$1 = function () {
4354
+ var noop$6 = function () {
4332
4355
  };
4333
- var ɵ0$1 = noop$1;
4356
+ var ɵ0$9 = noop$6;
4334
4357
  var MatLatLongField = /** @class */ (function () {
4335
4358
  function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
4336
4359
  this.platform = platform;
@@ -4338,8 +4361,8 @@
4338
4361
  this.formBuilder = formBuilder;
4339
4362
  this.cd = cd;
4340
4363
  this.formGroupDir = formGroupDir;
4341
- this._onChangeCallback = noop$1;
4342
- this._onTouchedCallback = noop$1;
4364
+ this._onChangeCallback = noop$6;
4365
+ this._onTouchedCallback = noop$6;
4343
4366
  this._subscription = new rxjs.Subscription();
4344
4367
  this.disabling = false;
4345
4368
  this.writing = false;
@@ -4690,14 +4713,14 @@
4690
4713
  },] }
4691
4714
  ];
4692
4715
 
4693
- var DEFAULT_VALUE_ACCESSOR$1 = {
4716
+ var DEFAULT_VALUE_ACCESSOR$5 = {
4694
4717
  provide: i1.NG_VALUE_ACCESSOR,
4695
4718
  useExisting: i0.forwardRef(function () { return MatDate; }),
4696
4719
  multi: true
4697
4720
  };
4698
- var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
4699
- var noop$2 = function () { };
4700
- var ɵ0$2 = noop$2;
4721
+ var DAY_MASK$2 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
4722
+ var noop$5 = function () { };
4723
+ var ɵ0$8 = noop$5;
4701
4724
  var MatDate = /** @class */ (function () {
4702
4725
  function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
4703
4726
  this.dateAdapter = dateAdapter;
@@ -4706,12 +4729,12 @@
4706
4729
  this.cd = cd;
4707
4730
  this.keyboard = keyboard;
4708
4731
  this.formGroupDir = formGroupDir;
4709
- this._onChangeCallback = noop$2;
4710
- this._onTouchedCallback = noop$2;
4732
+ this._onChangeCallback = noop$5;
4733
+ this._onTouchedCallback = noop$5;
4711
4734
  this._subscription = new rxjs.Subscription();
4712
4735
  this.writing = true;
4713
4736
  this.disabling = false;
4714
- this.dayMask = DAY_MASK;
4737
+ this.dayMask = DAY_MASK$2;
4715
4738
  this.disabled = false;
4716
4739
  this.floatLabel = 'auto';
4717
4740
  this.readonly = false;
@@ -4980,7 +5003,7 @@
4980
5003
  selector: 'mat-date-field',
4981
5004
  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",
4982
5005
  providers: [
4983
- DEFAULT_VALUE_ACCESSOR$1,
5006
+ DEFAULT_VALUE_ACCESSOR$5,
4984
5007
  ],
4985
5008
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
4986
5009
  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%}"]
@@ -5013,17 +5036,17 @@
5013
5036
  matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
5014
5037
  };
5015
5038
 
5016
- var DEFAULT_VALUE_ACCESSOR$2 = {
5039
+ var DEFAULT_VALUE_ACCESSOR$4 = {
5017
5040
  provide: i1.NG_VALUE_ACCESSOR,
5018
5041
  useExisting: i0.forwardRef(function () { return MatDateTime; }),
5019
5042
  multi: true
5020
5043
  };
5021
5044
  var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
5022
5045
  var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
5023
- var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
5024
- var noop$3 = function () {
5046
+ var HOUR_MASK$1 = [/[012]/, /\d/, ':', /[012345]/, /\d/];
5047
+ var noop$4 = function () {
5025
5048
  };
5026
- var ɵ0$3 = noop$3;
5049
+ var ɵ0$7 = noop$4;
5027
5050
  var MatDateTime = /** @class */ (function () {
5028
5051
  function MatDateTime(platform, dateAdapter, translate, formBuilder, keyboard, cd, formGroupDir) {
5029
5052
  this.platform = platform;
@@ -5033,14 +5056,14 @@
5033
5056
  this.keyboard = keyboard;
5034
5057
  this.cd = cd;
5035
5058
  this.formGroupDir = formGroupDir;
5036
- this._onChangeCallback = noop$3;
5037
- this._onTouchedCallback = noop$3;
5059
+ this._onChangeCallback = noop$4;
5060
+ this._onTouchedCallback = noop$4;
5038
5061
  this._subscription = new rxjs.Subscription();
5039
5062
  this.writing = true;
5040
5063
  this.disabling = false;
5041
5064
  this._readonly = false;
5042
5065
  this.dayMask = DAY_MASK$1;
5043
- this.hourMask = HOUR_MASK;
5066
+ this.hourMask = HOUR_MASK$1;
5044
5067
  this.floatLabel = 'auto';
5045
5068
  this.compact = false;
5046
5069
  this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
@@ -5396,7 +5419,7 @@
5396
5419
  selector: 'mat-date-time-field',
5397
5420
  template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput hidden type=\"text\"\n readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<!-- writable + time -->\n<ng-template #writable >\n <ion-grid class=\"ion-no-padding\">\n <ion-row class=\"ion-no-padding no-wrap\" nowrap>\n\n <!-- day -->\n <ion-col class=\"day ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && formControl.invalid\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"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?.key || formControl.errors.msg) | translate: formControl.errors.msg?.params}}</mat-error>\n </ng-container>\n <ng-content select=\"mat-error\"></ng-content>\n\n <!-- mat hint -->\n <div class=\"mat-form-field-hint-wrapper\" [class.cdk-visually-hidden]=\"formControl.invalid\">\n <div class=\"mat-form-field-hint-spacer\"></div>\n <ng-content select=\"mat-hint\"></ng-content>\n </div>\n </div>\n\n </ion-col>\n\n <!-- hour -->\n <ion-col class=\"hour ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && (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\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n",
5398
5421
  providers: [
5399
- DEFAULT_VALUE_ACCESSOR$2,
5422
+ DEFAULT_VALUE_ACCESSOR$4,
5400
5423
  ],
5401
5424
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
5402
5425
  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%}"]
@@ -5435,10 +5458,10 @@
5435
5458
  useExisting: i0.forwardRef(function () { return MatDateShort; }),
5436
5459
  multi: true
5437
5460
  };
5438
- var DAY_MASK$2 = [/\d/, /\d/, /\d/, /\d/];
5439
- var noop$4 = function () {
5461
+ var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
5462
+ var noop$3 = function () {
5440
5463
  };
5441
- var ɵ0$4 = noop$4;
5464
+ var ɵ0$6 = noop$3;
5442
5465
  var MatDateShort = /** @class */ (function () {
5443
5466
  function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
5444
5467
  this.dateAdapter = dateAdapter;
@@ -5447,11 +5470,11 @@
5447
5470
  this.cd = cd;
5448
5471
  this.keyboard = keyboard;
5449
5472
  this.formGroupDir = formGroupDir;
5450
- this._onChangeCallback = noop$4;
5451
- this._onTouchedCallback = noop$4;
5473
+ this._onChangeCallback = noop$3;
5474
+ this._onTouchedCallback = noop$3;
5452
5475
  this.writing = true;
5453
5476
  this.disabling = false;
5454
- this.dayMask = DAY_MASK$2;
5477
+ this.dayMask = DAY_MASK;
5455
5478
  this.disabled = false;
5456
5479
  this.floatLabel = 'auto';
5457
5480
  this.readonly = false;
@@ -5799,16 +5822,16 @@
5799
5822
  },] }
5800
5823
  ];
5801
5824
 
5802
- var DEFAULT_VALUE_ACCESSOR$4 = {
5825
+ var DEFAULT_VALUE_ACCESSOR$2 = {
5803
5826
  provide: i1.NG_VALUE_ACCESSOR,
5804
5827
  useExisting: i0.forwardRef(function () { return MatDuration; }),
5805
5828
  multi: true
5806
5829
  };
5807
5830
  var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
5808
- var HOUR_MASK$1 = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
5809
- var noop$5 = function () {
5831
+ var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
5832
+ var noop$2 = function () {
5810
5833
  };
5811
- var ɵ0$5 = noop$5;
5834
+ var ɵ0$5 = noop$2;
5812
5835
  var MatDuration = /** @class */ (function () {
5813
5836
  function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
5814
5837
  this.dateAdapter = dateAdapter;
@@ -5817,11 +5840,11 @@
5817
5840
  this.cd = cd;
5818
5841
  this.formGroupDir = formGroupDir;
5819
5842
  this._subscription = new rxjs.Subscription();
5820
- this._onChangeCallback = noop$5;
5821
- this._onTouchedCallback = noop$5;
5843
+ this._onChangeCallback = noop$2;
5844
+ this._onTouchedCallback = noop$2;
5822
5845
  this.writing = true;
5823
5846
  this.disabling = false;
5824
- this.hourMask = HOUR_MASK$1;
5847
+ this.hourMask = HOUR_MASK;
5825
5848
  this.disabled = false;
5826
5849
  this.floatLabel = 'auto';
5827
5850
  this.readonly = false;
@@ -6014,7 +6037,7 @@
6014
6037
  selector: 'mat-duration-field',
6015
6038
  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",
6016
6039
  providers: [
6017
- DEFAULT_VALUE_ACCESSOR$4,
6040
+ DEFAULT_VALUE_ACCESSOR$2,
6018
6041
  ],
6019
6042
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
6020
6043
  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%}"]
@@ -6074,22 +6097,22 @@
6074
6097
  },] }
6075
6098
  ];
6076
6099
 
6077
- var DEFAULT_VALUE_ACCESSOR$5 = {
6100
+ var DEFAULT_VALUE_ACCESSOR$1 = {
6078
6101
  provide: i1.NG_VALUE_ACCESSOR,
6079
6102
  useExisting: i0.forwardRef(function () { return MatBooleanField; }),
6080
6103
  multi: true
6081
6104
  };
6082
- var noop$6 = function () {
6105
+ var noop$1 = function () {
6083
6106
  };
6084
- var ɵ0$6 = noop$6;
6107
+ var ɵ0$4 = noop$1;
6085
6108
  var MatBooleanField = /** @class */ (function () {
6086
6109
  function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
6087
6110
  this.translate = translate;
6088
6111
  this.formBuilder = formBuilder;
6089
6112
  this.cd = cd;
6090
6113
  this.formGroupDir = formGroupDir;
6091
- this._onChangeCallback = noop$6;
6092
- this._onTouchedCallback = noop$6;
6114
+ this._onChangeCallback = noop$1;
6115
+ this._onTouchedCallback = noop$1;
6093
6116
  this._writing = false;
6094
6117
  this.showRadio = false;
6095
6118
  this.disabled = false;
@@ -6275,7 +6298,7 @@
6275
6298
  selector: 'mat-boolean-field',
6276
6299
  template: "<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled {{classList}}\">\n <input matInput hidden type=\"text\" readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{(formControl.value == null && 'COMMON.EMPTY_OPTION' || (formControl.value === true && yesLabel) || noLabel) | translate }}</ion-text>\n</mat-form-field>\n\n<ng-template #writable>\n <ng-container [ngSwitch]=\"style\">\n\n <!-- Radio -->\n <mat-form-field *ngSwitchCase=\"'radio'\"\n [floatLabel]=\"showRadio && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-radio {{classList}}\">\n <mat-label *ngIf=\"placeholder && floatLabel!=='never'\">\n {{placeholder}}\n <span [hidden]=\"showRadio\">({{yesLabel|translate}}/{{'COMMON.NO'|translate}})</span>\n </mat-label>\n\n <input matInput #fakeInput type=\"text\" readonly=\"true\"\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <!-- radio button -->\n <mat-radio-group [hidden]=\"!showRadio\"\n [formControl]=\"formControl\"\n (change)=\"onRadioValueChanged($event)\">\n <mat-radio-button #yesButton [value]=\"true\">\n <span>{{yesLabel|translate}}</span>\n </mat-radio-button>&nbsp;\n <mat-radio-button #noButton [value]=\"false\">\n <span>{{noLabel|translate}}</span>\n </mat-radio-button>\n </mat-radio-group>\n\n <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 {{classList}}\">\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 {{classList}}\">\n <input matInput type=\"text\" hidden\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [required]=\"required\">\n <div class=\"mat-form-field-buttons\"\n [style.--buttons-col-count]=\"buttonsColCount\"\n *ngIf=\"!formControl.disabled; else disabledLabel\">\n <!-- yes -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex\"\n (click)=\"writeValue(true, $event)\"\n (keyup.enter)=\"writeValue(true, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === true) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && yesIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{yesLabel|translate}}\n </ion-button>\n\n <!-- No button -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex !== undefined ? (_tabindex + 1) : undefined\"\n (click)=\"writeValue(false, $event)\"\n (keyup.enter)=\"writeValue(false, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === false) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && noIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{noLabel|translate}}\n </ion-button>\n </div>\n <ng-template #disabledLabel>\n <ion-label><i translate>COMMON.EMPTY_OPTION</i></ion-label>\n </ng-template>\n\n <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",
6277
6300
  providers: [
6278
- DEFAULT_VALUE_ACCESSOR$5
6301
+ DEFAULT_VALUE_ACCESSOR$1
6279
6302
  ],
6280
6303
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
6281
6304
  styles: [":host{width:100%}.mat-form-field.mat-boolean-field-radio{margin-top:-2px}.mat-form-field.mat-boolean-field-button{margin-top:-4px}.mat-form-field .mat-form-field-buttons{width:100%;display:flex;flex-flow:row wrap;justify-content:flex-start;align-items:center}.mat-form-field .mat-form-field-buttons .mat-form-field-button{--flex-basis:calc(100% / var(--buttons-col-count, 2));flex:0 1 var(--flex-basis);max-width:min(var(--flex-basis),150px);white-space:normal;padding:0 2px;height:40px}"]
@@ -6364,6 +6387,7 @@
6364
6387
  return MatNumpadEvent;
6365
6388
  }(KeyboardEvent));
6366
6389
 
6390
+ exports.AnimationState = void 0;
6367
6391
  (function (AnimationState) {
6368
6392
  AnimationState["ENTER"] = "enter";
6369
6393
  AnimationState["ENTER_INPUT"] = "enter-input";
@@ -6531,7 +6555,7 @@
6531
6555
  };
6532
6556
  return MatNumpadDomService;
6533
6557
  }());
6534
- 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" });
6558
+ 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" });
6535
6559
  MatNumpadDomService.decorators = [
6536
6560
  { type: i0.Injectable, args: [{
6537
6561
  providedIn: 'root'
@@ -6937,7 +6961,7 @@
6937
6961
  },] }
6938
6962
  ];
6939
6963
 
6940
- var DEFAULT_VALUE_ACCESSOR$6 = {
6964
+ var DEFAULT_VALUE_ACCESSOR = {
6941
6965
  provide: i1.NG_VALUE_ACCESSOR,
6942
6966
  useExisting: i0.forwardRef(function () { return MatSwipeField; }),
6943
6967
  multi: true
@@ -7257,7 +7281,7 @@
7257
7281
  { type: i0.Component, args: [{
7258
7282
  selector: 'mat-swipe-field',
7259
7283
  template: "<mat-form-field [floatLabel]=\"showSlides && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\n [class]=\"classList\"\n [class.mat-form-field-disabled]=\"disabled\">\n <mat-label *ngIf=\"placeholder && floatLabel!=='never'\">\n {{placeholder}}\n </mat-label>\n <input matInput #fakeInput type=\"text\"\n [formControl]=\"formControl\"\n [readonly]=\"true\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showSlides\"\n [tabindex]=\"tabindex\">\n\n <div class=\"slides-container\" [class.hidden]=\"!showSlides\">\n <ion-slides #slides\n [options]=\"slidesOptions\"\n (ionSlidesDidLoad)=\"slidesLoaded()\"\n (ionSlideReachStart)=\"reachStart(true)\"\n (ionSlideReachEnd)=\"reachEnd(true)\"\n (ionSlideNextEnd)=\"reachStart(false)\"\n (ionSlidePrevEnd)=\"reachEnd(false)\"\n (ionSlideDidChange)=\"slideChanged()\"\n >\n <ion-slide *ngFor=\"let item of $items | async\">\n <ion-label>{{ displayWith(item) }}</ion-label>\n </ion-slide>\n\n </ion-slides>\n </div>\n\n <button #prevButton\n mat-icon-button\n type=\"button\"\n class=\"button-prev\"\n [hidden]=\"!showSlides\"\n [disabled]=\"previousDisabled\"\n (click)=\"previous()\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n <button #nextButton\n mat-icon-button\n type=\"button\"\n class=\"button-next\"\n [hidden]=\"!showSlides\"\n [disabled]=\"nextDisabled\"\n (click)=\"next()\">\n <mat-icon>chevron_right</mat-icon>\n </button>\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clearValue($event)\"\n [hidden]=\"disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('entity')\" translate>ERROR.FIELD_INVALID</mat-error>\n\n</mat-form-field>\n",
7260
- providers: [DEFAULT_VALUE_ACCESSOR$6],
7284
+ providers: [DEFAULT_VALUE_ACCESSOR],
7261
7285
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
7262
7286
  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}"]
7263
7287
  },] }
@@ -7775,7 +7799,7 @@
7775
7799
  badge.innerHTML = "<i class=\"material-icons\" style=\"font-size: " + fontSize + ";\">" + this.matIcon + "</i>";
7776
7800
  }
7777
7801
  else if (this.ionIcon) {
7778
- badge.innerHTML = "<ion-icon style=\"font-size: " + fontSize + ";\" name=\"" + this.ionIcon + "\"></ion-icon>";
7802
+ badge.innerHTML = "<ion-icon style=\"font-size: " + fontSize + "; pointer-events: none;\" name=\"" + this.ionIcon + "\"></ion-icon>";
7779
7803
  }
7780
7804
  };
7781
7805
  return MatBadgeIconDirective;
@@ -7899,7 +7923,7 @@
7899
7923
  };
7900
7924
  return ProgressBarService;
7901
7925
  }());
7902
- ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
7926
+ ProgressBarService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
7903
7927
  ProgressBarService.decorators = [
7904
7928
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
7905
7929
  ];
@@ -7946,7 +7970,7 @@
7946
7970
  };
7947
7971
  return AppGestureConfig;
7948
7972
  }(i1$6.HammerGestureConfig));
7949
- AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
7973
+ AppGestureConfig.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
7950
7974
  AppGestureConfig.decorators = [
7951
7975
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
7952
7976
  ];
@@ -8211,7 +8235,7 @@
8211
8235
  };
8212
8236
  return MatPaginatorI18n;
8213
8237
  }(paginator.MatPaginatorIntl));
8214
- MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
8238
+ MatPaginatorI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
8215
8239
  MatPaginatorI18n.decorators = [
8216
8240
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
8217
8241
  ];
@@ -8303,17 +8327,17 @@
8303
8327
  return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
8304
8328
  }
8305
8329
 
8306
- var noop$7 = function () {
8330
+ var noop = function () {
8307
8331
  };
8308
- var ɵ0$7 = noop$7;
8332
+ var ɵ0$3 = noop;
8309
8333
  var AppFormField = /** @class */ (function () {
8310
8334
  function AppFormField(translate, cd, injector, formGroupDir) {
8311
8335
  this.translate = translate;
8312
8336
  this.cd = cd;
8313
8337
  this.injector = injector;
8314
8338
  this.formGroupDir = formGroupDir;
8315
- this._onChangeCallback = noop$7;
8316
- this._onTouchedCallback = noop$7;
8339
+ this._onChangeCallback = noop;
8340
+ this._onTouchedCallback = noop;
8317
8341
  this.readonly = false;
8318
8342
  this.compact = false;
8319
8343
  this.floatLabel = 'auto';
@@ -8513,13 +8537,14 @@
8513
8537
  };
8514
8538
 
8515
8539
  var StartableService = /** @class */ (function () {
8516
- function StartableService(platform) {
8540
+ function StartableService(prerequisiteService) {
8517
8541
  this.onStart = new rxjs.Subject();
8518
8542
  this._debug = false;
8543
+ this._startByReadyFunction = true; // should start when calling ready() ?
8519
8544
  this._data = null;
8520
8545
  this._started = false;
8521
- this._startPrerequisite = platform
8522
- ? function () { return platform.ready(); }
8546
+ this._startPrerequisite = prerequisiteService
8547
+ ? function () { return prerequisiteService.ready(); }
8523
8548
  : function () { return Promise.resolve(); };
8524
8549
  }
8525
8550
  StartableService.prototype.start = function () {
@@ -8604,9 +8629,15 @@
8604
8629
  configurable: true
8605
8630
  });
8606
8631
  StartableService.prototype.ready = function () {
8632
+ var _this = this;
8607
8633
  if (this._started)
8608
8634
  return Promise.resolve(this._data);
8609
- return this.start();
8635
+ if (this._startPromise)
8636
+ return this._startPromise;
8637
+ if (this._startByReadyFunction)
8638
+ return this.start();
8639
+ return waitFor(function () { return _this._started; })
8640
+ .then(function () { return _this._data; });
8610
8641
  };
8611
8642
  StartableService.prototype.ngOnStop = function () {
8612
8643
  return __awaiter(this, void 0, void 0, function () {
@@ -8850,7 +8881,7 @@
8850
8881
  };
8851
8882
  return AudioProvider;
8852
8883
  }(StartableService));
8853
- 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" });
8884
+ 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" });
8854
8885
  AudioProvider.decorators = [
8855
8886
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
8856
8887
  ];
@@ -8950,7 +8981,7 @@
8950
8981
  };
8951
8982
  return Hotkeys;
8952
8983
  }());
8953
- 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" });
8984
+ 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" });
8954
8985
  Hotkeys.decorators = [
8955
8986
  { type: i0.Injectable, args: [{
8956
8987
  providedIn: 'root'
@@ -9154,7 +9185,7 @@
9154
9185
  return Base64ImageReader;
9155
9186
  }());
9156
9187
 
9157
- var uuidv4 = uuidv4Imported__namespace;
9188
+ var uuidv4$1 = uuidv4Imported__namespace;
9158
9189
  var FileService = /** @class */ (function () {
9159
9190
  function FileService(platform,
9160
9191
  //private transfer: FileTransfer,
@@ -9200,7 +9231,7 @@
9200
9231
  lastSlashIndex = source.lastIndexOf('/');
9201
9232
  if (lastSlashIndex === -1)
9202
9233
  throw new Error('Invalid URL: ' + source);
9203
- fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
9234
+ fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4$1();
9204
9235
  if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
9205
9236
  console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
9206
9237
  targetFilePath = this._imageDirectory + fileName;
@@ -9263,7 +9294,7 @@
9263
9294
  };
9264
9295
  return FileService;
9265
9296
  }());
9266
- 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" });
9297
+ 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" });
9267
9298
  FileService.decorators = [
9268
9299
  { type: i0.Injectable, args: [{
9269
9300
  providedIn: 'root',
@@ -9294,6 +9325,10 @@
9294
9325
  ModalToolbarComponent.prototype.ngOnInit = function () {
9295
9326
  var _this = this;
9296
9327
  this.canValidate = toBoolean(this.canValidate, this.validate.observers.length > 0);
9328
+ // Ctrl+S
9329
+ this._subscription.add(this.hotkeys.addShortcut({ keys: 'control.s', description: 'COMMON.BTN_VALIDATE', elementName: this.modalName })
9330
+ .pipe(operators.filter(function () { return _this.canValidate; }))
9331
+ .subscribe(function (event) { return _this.validate.emit(event); }));
9297
9332
  // Escape
9298
9333
  this._subscription.add(this.hotkeys.addShortcut({ keys: 'escape', description: 'COMMON.BTN_CLOSE', elementName: this.modalName })
9299
9334
  .subscribe(function (event) { return _this.cancel.emit(event); }));
@@ -9426,7 +9461,7 @@
9426
9461
  Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
9427
9462
 
9428
9463
  var scrypt = require('scrypt-async');
9429
- var sha256 = require('hash.js/lib/hash/sha/256');
9464
+ var sha256$1 = require('hash.js/lib/hash/sha/256');
9430
9465
  var sha512 = require('hash.js/lib/hash/sha/512');
9431
9466
  var nacl = {
9432
9467
  sign: tweetnacl.sign,
@@ -9532,7 +9567,7 @@
9532
9567
  * Hash (using SHA256) a message
9533
9568
  */
9534
9569
  CryptoService.prototype.sha256 = function (message) {
9535
- return sha256().update(message).digest('hex');
9570
+ return sha256$1().update(message).digest('hex');
9536
9571
  };
9537
9572
  /**
9538
9573
  * Hash (using SHA512) a message
@@ -9546,7 +9581,7 @@
9546
9581
  };
9547
9582
  return CryptoService;
9548
9583
  }());
9549
- CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
9584
+ CryptoService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
9550
9585
  CryptoService.decorators = [
9551
9586
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
9552
9587
  ];
@@ -10967,7 +11002,7 @@
10967
11002
  };
10968
11003
  return LocalSettingsService;
10969
11004
  }(StartableService));
10970
- 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" });
11005
+ 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" });
10971
11006
  LocalSettingsService.decorators = [
10972
11007
  { type: i0.Injectable, args: [{
10973
11008
  providedIn: 'root',
@@ -11772,7 +11807,7 @@
11772
11807
  };
11773
11808
  return NetworkService;
11774
11809
  }(StartableService));
11775
- 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" });
11810
+ 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" });
11776
11811
  NetworkService.decorators = [
11777
11812
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
11778
11813
  ];
@@ -11792,7 +11827,7 @@
11792
11827
  { type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
11793
11828
  ]; };
11794
11829
 
11795
- var ErrorCodes = {
11830
+ var ErrorCodes$2 = {
11796
11831
  UNKNOWN_ERROR: 0,
11797
11832
  LOAD_ACCOUNT_ERROR: 1,
11798
11833
  BAD_PASSWORD: 2,
@@ -12200,7 +12235,7 @@
12200
12235
  case 13:
12201
12236
  err_1 = _a.sent();
12202
12237
  console.error(err_1);
12203
- throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
12238
+ throw { code: ErrorCodes$2.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
12204
12239
  case 14:
12205
12240
  // Emit update event
12206
12241
  if (!opts || opts.emitEvent !== false) {
@@ -12974,7 +13009,7 @@
12974
13009
  }(StartableService));
12975
13010
  EntitiesStorage.TRASH_PREFIX = 'Trash#';
12976
13011
  EntitiesStorage.REMOTE_PREFIX = 'Remote#';
12977
- 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" });
13012
+ 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" });
12978
13013
  EntitiesStorage.decorators = [
12979
13014
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
12980
13015
  ];
@@ -13091,10 +13126,10 @@
13091
13126
  function referentialsToString(values, properties, separator) {
13092
13127
  return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
13093
13128
  }
13094
- var ɵ0$8 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
13129
+ var ɵ0$2 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
13095
13130
  var StatusList = Object.freeze([
13096
13131
  {
13097
- id: ɵ0$8,
13132
+ id: ɵ0$2,
13098
13133
  icon: 'checkmark',
13099
13134
  label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
13100
13135
  },
@@ -13397,7 +13432,7 @@
13397
13432
  (data.lastName || '')) || '';
13398
13433
  }
13399
13434
 
13400
- var uuidv4$1 = uuidv4Imported__namespace;
13435
+ var uuidv4 = uuidv4Imported__namespace;
13401
13436
  var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
13402
13437
  var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
13403
13438
  /**
@@ -13441,7 +13476,7 @@
13441
13476
  // Skip if not tracked
13442
13477
  if (!context || !context.tracked)
13443
13478
  return forward(operation);
13444
- var id = context.serializationKey || uuidv4$1();
13479
+ var id = context.serializationKey || uuidv4();
13445
13480
  console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
13446
13481
  // Clean context, before calling JSON.stringify (remove unused attributes)
13447
13482
  var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
@@ -14050,7 +14085,6 @@
14050
14085
  .append('Authorization', authorization);
14051
14086
  //.append('X-App-Name', environment.name)
14052
14087
  //.append('X-App-Version', environment.version)
14053
- ;
14054
14088
  // Use the setContext method to set the HTTP headers.
14055
14089
  operation.setContext(Object.assign(Object.assign({}, operation.getContext()), { headers: headers }));
14056
14090
  // Call the next link in the middleware chain.
@@ -14076,14 +14110,14 @@
14076
14110
  mutationLinks = void 0;
14077
14111
  // Add queue to store tracked queries, when offline
14078
14112
  if (enableTrackMutationQueries) {
14079
- serializingLink = new SerializingLink__default['default']();
14113
+ serializingLink = new SerializingLink__default["default"]();
14080
14114
  trackerLink = createTrackerLink({
14081
14115
  storage: storage,
14082
14116
  onNetworkStatusChange: this._networkStatusChanged$,
14083
14117
  debounce: 1000,
14084
14118
  debug: true
14085
14119
  });
14086
- queueLink_1 = new QueueLink__default['default']();
14120
+ queueLink_1 = new QueueLink__default["default"]();
14087
14121
  this._subscription.add(this._networkStatusChanged$
14088
14122
  .subscribe(function (type) {
14089
14123
  // Network is offline: start buffering into queue
@@ -14098,7 +14132,7 @@
14098
14132
  }
14099
14133
  }));
14100
14134
  mutationLinks = [
14101
- loggerLink__default['default'],
14135
+ loggerLink__default["default"],
14102
14136
  queueLink_1,
14103
14137
  trackerLink,
14104
14138
  queueLink_1,
@@ -14207,7 +14241,7 @@
14207
14241
  (err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
14208
14242
  || this.toAppError(err.networkError)
14209
14243
  || (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
14210
- || this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
14244
+ || this.createAppErrorByCode(ErrorCodes$2.UNKNOWN_NETWORK_ERROR)))
14211
14245
  // If graphQL: try to convert the first error found
14212
14246
  || (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
14213
14247
  || this.toAppError(err)
@@ -14215,7 +14249,7 @@
14215
14249
  || (err.graphQLErrors && err.graphQLErrors[0])
14216
14250
  || err;
14217
14251
  console.error('[graphql] ' + (error && error.message || error), error.stack || '');
14218
- if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
14252
+ if (error && error.code === ErrorCodes$2.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
14219
14253
  console.error('[graphql] original error: ' + err.networkError.message);
14220
14254
  this.onNetworkError.next(error);
14221
14255
  }
@@ -14251,7 +14285,7 @@
14251
14285
  return 'ERROR.UNAUTHORIZED';
14252
14286
  case ServerErrorCodes.FORBIDDEN:
14253
14287
  return 'ERROR.FORBIDDEN';
14254
- case ErrorCodes.UNKNOWN_NETWORK_ERROR:
14288
+ case ErrorCodes$2.UNKNOWN_NETWORK_ERROR:
14255
14289
  return 'ERROR.UNKNOWN_NETWORK_ERROR';
14256
14290
  case ServerErrorCodes.BAD_UPDATE_DATE:
14257
14291
  return 'ERROR.BAD_UPDATE_DATE';
@@ -14280,7 +14314,7 @@
14280
14314
  };
14281
14315
  return GraphqlService;
14282
14316
  }(StartableService));
14283
- 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" });
14317
+ 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" });
14284
14318
  GraphqlService.decorators = [
14285
14319
  { type: i0.Injectable, args: [{
14286
14320
  providedIn: 'root'
@@ -14297,7 +14331,7 @@
14297
14331
  { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
14298
14332
  ]; };
14299
14333
 
14300
- var sha256$1 = require('hash.js/lib/hash/sha/256');
14334
+ var sha256 = require('hash.js/lib/hash/sha/256');
14301
14335
  var BaseGraphqlServiceOptions = /** @class */ (function () {
14302
14336
  function BaseGraphqlServiceOptions() {
14303
14337
  }
@@ -14464,8 +14498,8 @@
14464
14498
  };
14465
14499
  /* -- protected methods -- */
14466
14500
  BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
14467
- var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
14468
- var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
14501
+ var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
14502
+ var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
14469
14503
  return [queryName, opts.arrayFieldName, variablesKey].join('|');
14470
14504
  };
14471
14505
  BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
@@ -14531,17 +14565,17 @@
14531
14565
  /* ------------------------------------
14532
14566
  * GraphQL queries
14533
14567
  * ------------------------------------*/
14534
- var Fragments = {
14535
- 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 "])))
14568
+ var Fragments$1 = {
14569
+ 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 "])))
14536
14570
  };
14537
14571
  // Load account query
14538
- var LoadQuery = core.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n"], ["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
14572
+ var LoadQuery$1 = core.gql(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n"], ["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments$1.account);
14539
14573
  // Check email query
14540
- 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"])));
14574
+ 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"])));
14541
14575
  // Save (create or update) account mutation
14542
- var SaveMutation = core.gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
14576
+ var SaveMutation$1 = core.gql(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments$1.account);
14543
14577
  // Create account mutation
14544
- var CreateMutation = core.gql(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
14578
+ var CreateMutation = core.gql(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments$1.account);
14545
14579
  // Sent confirmation email
14546
14580
  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"])));
14547
14581
  // Confirm account email
@@ -14930,7 +14964,7 @@
14930
14964
  error_3 = _b.sent();
14931
14965
  console.error(error_3);
14932
14966
  this.resetData();
14933
- throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
14967
+ throw { code: ErrorCodes$2.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
14934
14968
  case 4:
14935
14969
  // Store pubkey+keypair
14936
14970
  this._data.pubkey = Base58.encode(keypair.publicKey);
@@ -14966,7 +15000,7 @@
14966
15000
  return [3 /*break*/, 18];
14967
15001
  case 11:
14968
15002
  err_1 = _b.sent();
14969
- if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
15003
+ if (!(err_1 && +(err_1.code) === ErrorCodes$2.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
14970
15004
  if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
14971
15005
  isEmailExists = void 0;
14972
15006
  _b.label = 12;
@@ -14982,12 +15016,12 @@
14982
15016
  case 15:
14983
15017
  // Email not exists (no account)
14984
15018
  if (!isEmailExists) {
14985
- throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
15019
+ throw { code: ErrorCodes$2.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
14986
15020
  }
14987
15021
  _b.label = 16;
14988
15022
  case 16:
14989
15023
  // Email exists, so error = 'bad password'
14990
- throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
15024
+ throw { code: ErrorCodes$2.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
14991
15025
  case 17: throw err_1; // resend the first error
14992
15026
  case 18:
14993
15027
  _b.trys.push([18, 20, , 21]);
@@ -15159,8 +15193,8 @@
15159
15193
  _b.label = 3;
15160
15194
  case 3: return [3 /*break*/, 6];
15161
15195
  case 4: return [4 /*yield*/, this.graphql.query({
15162
- query: LoadQuery,
15163
- error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
15196
+ query: LoadQuery$1,
15197
+ error: { code: ErrorCodes$2.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
15164
15198
  fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
15165
15199
  })];
15166
15200
  case 5:
@@ -15198,7 +15232,7 @@
15198
15232
  case 1:
15199
15233
  isEmailExists = _b.sent();
15200
15234
  if (isEmailExists) {
15201
- throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
15235
+ throw { code: ErrorCodes$2.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
15202
15236
  }
15203
15237
  return [2 /*return*/];
15204
15238
  }
@@ -15248,7 +15282,7 @@
15248
15282
  locale: locale
15249
15283
  },
15250
15284
  error: {
15251
- code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
15285
+ code: ErrorCodes$2.SENT_CONFIRMATION_EMAIL_FAILED,
15252
15286
  message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
15253
15287
  }
15254
15288
  })];
@@ -15271,7 +15305,7 @@
15271
15305
  code: code
15272
15306
  },
15273
15307
  error: {
15274
- code: ErrorCodes.CONFIRM_EMAIL_FAILED,
15308
+ code: ErrorCodes$2.CONFIRM_EMAIL_FAILED,
15275
15309
  message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
15276
15310
  }
15277
15311
  })];
@@ -15294,7 +15328,7 @@
15294
15328
  interval: 10
15295
15329
  },
15296
15330
  error: {
15297
- code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
15331
+ code: ErrorCodes$2.SUBSCRIBE_ACCOUNT_ERROR,
15298
15332
  message: 'ERROR.ACCOUNT.SUBSCRIBE_ACCOUNT_ERROR'
15299
15333
  }
15300
15334
  }).subscribe({
@@ -15448,7 +15482,7 @@
15448
15482
  throw error_6;
15449
15483
  console.error(error_6);
15450
15484
  throw {
15451
- code: ErrorCodes.LOAD_ACCOUNT_ERROR,
15485
+ code: ErrorCodes$2.LOAD_ACCOUNT_ERROR,
15452
15486
  message: 'ERROR.LOAD_ACCOUNT_ERROR'
15453
15487
  };
15454
15488
  case 4: return [2 /*return*/];
@@ -15622,7 +15656,7 @@
15622
15656
  case 1:
15623
15657
  existingAccount = _b.sent();
15624
15658
  if (!existingAccount || !existingAccount.updateDate) {
15625
- throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
15659
+ throw { code: ErrorCodes$2.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
15626
15660
  }
15627
15661
  this.copyIdAndUpdateDate(existingAccount, account);
15628
15662
  _b.label = 2;
@@ -15631,10 +15665,10 @@
15631
15665
  // User not allow to change his profiles
15632
15666
  delete json.profiles;
15633
15667
  return [4 /*yield*/, this.graphql.mutate({
15634
- mutation: isNew ? CreateMutation : SaveMutation,
15668
+ mutation: isNew ? CreateMutation : SaveMutation$1,
15635
15669
  variables: { data: json },
15636
15670
  error: {
15637
- code: ErrorCodes.SAVE_ACCOUNT_ERROR,
15671
+ code: ErrorCodes$2.SAVE_ACCOUNT_ERROR,
15638
15672
  message: 'ERROR.SAVE_ACCOUNT_ERROR'
15639
15673
  }
15640
15674
  })];
@@ -15662,7 +15696,7 @@
15662
15696
  if (counter > 4) {
15663
15697
  if (this._debug)
15664
15698
  console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
15665
- throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
15699
+ throw { code: ErrorCodes$2.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
15666
15700
  }
15667
15701
  if (!token) return [3 /*break*/, 2];
15668
15702
  return [4 /*yield*/, this.graphql.query({
@@ -15671,7 +15705,7 @@
15671
15705
  token: token
15672
15706
  },
15673
15707
  error: {
15674
- code: ErrorCodes.UNAUTHORIZED,
15708
+ code: ErrorCodes$2.UNAUTHORIZED,
15675
15709
  message: 'ERROR.UNAUTHORIZED'
15676
15710
  },
15677
15711
  fetchPolicy: 'no-cache'
@@ -15688,7 +15722,7 @@
15688
15722
  _b.label = 2;
15689
15723
  case 2:
15690
15724
  challengeError = {
15691
- code: ErrorCodes.AUTH_CHALLENGE_ERROR,
15725
+ code: ErrorCodes$2.AUTH_CHALLENGE_ERROR,
15692
15726
  message: 'ERROR.AUTH_CHALLENGE_ERROR'
15693
15727
  };
15694
15728
  return [4 /*yield*/, this.graphql.query({
@@ -15730,7 +15764,7 @@
15730
15764
  };
15731
15765
  return AccountService;
15732
15766
  }(BaseGraphqlService));
15733
- 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" });
15767
+ 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" });
15734
15768
  AccountService.decorators = [
15735
15769
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
15736
15770
  ];
@@ -15743,7 +15777,7 @@
15743
15777
  { type: FileService },
15744
15778
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
15745
15779
  ]; };
15746
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
15780
+ 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;
15747
15781
 
15748
15782
  var Software_1, Configuration_1;
15749
15783
  // @dynamic
@@ -15995,13 +16029,13 @@
15995
16029
  /* ------------------------------------
15996
16030
  * GraphQL queries
15997
16031
  * ------------------------------------*/
15998
- var Fragments$1 = {
15999
- 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 "])))
16032
+ var Fragments = {
16033
+ 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 "])))
16000
16034
  };
16001
- 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);
16035
+ 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);
16002
16036
  // Save (create or update) account mutation
16003
- 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);
16004
- 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"])));
16037
+ 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);
16038
+ 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"])));
16005
16039
  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"])));
16006
16040
  var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
16007
16041
  var ConfigService = /** @class */ (function (_super) {
@@ -16112,12 +16146,12 @@
16112
16146
  case 0:
16113
16147
  now = Date.now();
16114
16148
  console.debug('[config] Loading Pod configuration...');
16115
- query = opts && opts.query || LoadQuery$1;
16149
+ query = opts && opts.query || LoadQuery;
16116
16150
  variables = opts && opts.variables || undefined;
16117
16151
  return [4 /*yield*/, this.graphql.query({
16118
16152
  query: query,
16119
16153
  variables: variables,
16120
- error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
16154
+ error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
16121
16155
  fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
16122
16156
  })];
16123
16157
  case 1:
@@ -16151,12 +16185,12 @@
16151
16185
  console.debug('[config] Saving Pod configuration...', config);
16152
16186
  json = config.asObject();
16153
16187
  return [4 /*yield*/, this.graphql.mutate({
16154
- mutation: SaveMutation$1,
16188
+ mutation: SaveMutation,
16155
16189
  variables: {
16156
16190
  data: json
16157
16191
  },
16158
16192
  error: {
16159
- code: ErrorCodes.SAVE_CONFIG_ERROR,
16193
+ code: ErrorCodes$2.SAVE_CONFIG_ERROR,
16160
16194
  message: 'ERROR.SAVE_CONFIG_ERROR'
16161
16195
  }
16162
16196
  })];
@@ -16191,7 +16225,7 @@
16191
16225
  return [4 /*yield*/, this.graphql.query({
16192
16226
  query: CacheStatistics,
16193
16227
  variables: null,
16194
- error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
16228
+ error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
16195
16229
  fetchPolicy: 'network-only'
16196
16230
  })];
16197
16231
  case 1:
@@ -16215,7 +16249,7 @@
16215
16249
  return [4 /*yield*/, this.graphql.query({
16216
16250
  query: ClearCache,
16217
16251
  variables: variables,
16218
- error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
16252
+ error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
16219
16253
  fetchPolicy: 'network-only'
16220
16254
  })];
16221
16255
  case 1:
@@ -16415,7 +16449,7 @@
16415
16449
  };
16416
16450
  return ConfigService;
16417
16451
  }(BaseGraphqlService));
16418
- 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" });
16452
+ 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" });
16419
16453
  ConfigService.decorators = [
16420
16454
  { type: i0.Injectable, args: [{
16421
16455
  providedIn: 'root',
@@ -16433,44 +16467,38 @@
16433
16467
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
16434
16468
  { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
16435
16469
  ]; };
16436
- var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
16470
+ var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2, templateObject_5$1;
16437
16471
 
16438
- var moment$4 = momentImported__namespace;
16439
- var PlatformService = /** @class */ (function () {
16472
+ var moment$2 = momentImported__namespace;
16473
+ var PlatformService = /** @class */ (function (_super) {
16474
+ __extends(PlatformService, _super);
16440
16475
  function PlatformService(platform, cdkPlatform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser, downloader) {
16441
- this.platform = platform;
16442
- this.cdkPlatform = cdkPlatform;
16443
- this.toastController = toastController;
16444
- this.translate = translate;
16445
- this.dateAdapter = dateAdapter;
16446
- this.entitiesStorage = entitiesStorage;
16447
- this.settings = settings;
16448
- this.networkService = networkService;
16449
- this.accountService = accountService;
16450
- this.configService = configService;
16451
- this.cache = cache;
16452
- this.storage = storage;
16453
- this.audioProvider = audioProvider;
16454
- this.environment = environment;
16455
- this.statusBar = statusBar;
16456
- this.keyboard = keyboard;
16457
- this.splashScreen = splashScreen;
16458
- this.browser = browser;
16459
- this.downloader = downloader;
16460
- this._started = false;
16461
- this._downloadingJobs = new Map();
16462
- this._debug = !environment.production;
16463
- if (this._debug)
16476
+ var _this = _super.call(this, platform) || this;
16477
+ _this.platform = platform;
16478
+ _this.cdkPlatform = cdkPlatform;
16479
+ _this.toastController = toastController;
16480
+ _this.translate = translate;
16481
+ _this.dateAdapter = dateAdapter;
16482
+ _this.entitiesStorage = entitiesStorage;
16483
+ _this.settings = settings;
16484
+ _this.networkService = networkService;
16485
+ _this.accountService = accountService;
16486
+ _this.configService = configService;
16487
+ _this.cache = cache;
16488
+ _this.storage = storage;
16489
+ _this.audioProvider = audioProvider;
16490
+ _this.environment = environment;
16491
+ _this.statusBar = statusBar;
16492
+ _this.keyboard = keyboard;
16493
+ _this.splashScreen = splashScreen;
16494
+ _this.browser = browser;
16495
+ _this.downloader = downloader;
16496
+ _this._downloadingJobs = new Map();
16497
+ _this._debug = !environment.production;
16498
+ if (_this._debug)
16464
16499
  console.debug('[platform] Creating service');
16465
- this.start();
16500
+ return _this;
16466
16501
  }
16467
- Object.defineProperty(PlatformService.prototype, "started", {
16468
- get: function () {
16469
- return this._started;
16470
- },
16471
- enumerable: false,
16472
- configurable: true
16473
- });
16474
16502
  Object.defineProperty(PlatformService.prototype, "mobile", {
16475
16503
  get: function () {
16476
16504
  return isNotNil(this._mobile) ? this._mobile : this.platform.is('mobile');
@@ -16493,7 +16521,7 @@
16493
16521
  };
16494
16522
  Object.defineProperty(PlatformService.prototype, "canDownload", {
16495
16523
  get: function () {
16496
- return this._android && !!this.downloader;
16524
+ return isNotNil(this.downloader);
16497
16525
  },
16498
16526
  enumerable: false,
16499
16527
  configurable: true
@@ -16504,80 +16532,81 @@
16504
16532
  PlatformService.prototype.height = function () {
16505
16533
  return this.platform.height();
16506
16534
  };
16507
- PlatformService.prototype.start = function () {
16508
- var _this = this;
16509
- if (this._startPromise)
16510
- return this._startPromise;
16511
- if (this._started)
16512
- return Promise.resolve();
16513
- this._started = false;
16514
- var now = Date.now();
16515
- this.accountService.tokenType = undefined;
16516
- console.info('[platform] Starting platform...');
16517
- this._startPromise = this.platform.ready()
16518
- .then(function () {
16519
- _this._mobile = _this.platform.is('mobile');
16520
- _this._cordova = _this.platform.is('cordova');
16521
- _this._android = _this.platform.is('android');
16522
- _this.configureCordovaPlugins(_this._mobile);
16523
- _this.touchUi = _this._mobile || _this.platform.is('tablet') || _this.platform.is('phablet');
16524
- // Force mobile in settings
16525
- if (_this._mobile) {
16526
- _this.settings.mobile = _this._mobile;
16527
- _this.settings.touchUi = _this.touchUi;
16528
- }
16529
- _this.configureTranslate();
16530
- })
16531
- .then(function () { return _this.storageReady(); })
16532
- .then(function (forage) { return _this.migrateStorage(forage); })
16533
- .then(function () { return Promise.all([
16534
- _this.entitiesStorage.ready(),
16535
- _this.cache.ready().then(function () { return _this.configureCache(); }),
16536
- _this.settings.ready(),
16537
- _this.networkService.ready(),
16538
- _this.audioProvider.ready()
16539
- ]); })
16540
- .then(function () {
16541
- _this._started = true;
16542
- _this._startPromise = undefined;
16543
- console.info("[platform] Starting platform [OK] {mobile: " + _this._mobile + ", touchUi: " + _this.touchUi + ", canDownload: " + _this.canDownload + "} in " + (Date.now() - now) + "ms");
16544
- // Update cache configuration when network changed
16545
- _this.networkService.onNetworkStatusChanges.subscribe(function (type) { return _this.configureCache(type !== 'none'); });
16546
- // Update authentication type
16547
- _this.configService.config
16548
- .pipe(operators.map(function (config) { return config === null || config === void 0 ? void 0 : config.getProperty(CORE_CONFIG_OPTIONS.AUTH_TOKEN_TYPE); }), operators.filter(isNotNilOrBlank), operators.distinctUntilChanged())
16549
- .subscribe(function (tokenType) {
16550
- console.info("[platform] Using auth token type {" + tokenType + "}");
16551
- _this.accountService.tokenType = tokenType;
16552
- });
16553
- // Wait 1 more seconds, before hiding the splash screen
16554
- setTimeout(function () {
16555
- if (_this.splashScreen)
16556
- _this.splashScreen.hide();
16557
- // Play startup sound
16558
- _this.audioProvider.playStartupSound();
16559
- }, 1000);
16560
- })
16561
- // Manage error
16562
- .catch(function (err) { return _this.onStartupError(err); });
16563
- return this._startPromise;
16564
- };
16565
- /**
16566
- * Wait platform is ready.<br/>
16567
- * Important: this will NOT start the platform, has it should be started by the AppComponent
16568
- *
16569
- * @param opts
16570
- */
16571
- PlatformService.prototype.ready = function (opts) {
16572
- var _this = this;
16573
- var period = opts && opts.checkPeriod || 300;
16574
- if (this._started)
16575
- return Promise.resolve();
16576
- return rxjs.timer(period, period)
16577
- .pipe(
16578
- // For DEBUG :
16579
- //tap(() => this._debug && console.debug("Waiting platform ready...")),
16580
- operators.filter(function () { return _this._started; }), operators.first()).toPromise();
16535
+ PlatformService.prototype.ngOnStart = function () {
16536
+ return __awaiter(this, void 0, void 0, function () {
16537
+ var now, forage, err_1;
16538
+ var _this = this;
16539
+ return __generator(this, function (_b) {
16540
+ switch (_b.label) {
16541
+ case 0:
16542
+ now = Date.now();
16543
+ this.accountService.tokenType = undefined;
16544
+ console.info('[platform] Starting platform...');
16545
+ _b.label = 1;
16546
+ case 1:
16547
+ _b.trys.push([1, 6, , 7]);
16548
+ this._mobile = this.platform.is('mobile');
16549
+ this._cordova = this.platform.is('cordova');
16550
+ this._android = this.platform.is('android');
16551
+ this.configureCordovaPlugins(this._mobile);
16552
+ this.touchUi = this._mobile || this.platform.is('tablet') || this.platform.is('phablet');
16553
+ // Force mobile in settings
16554
+ if (this._mobile) {
16555
+ this.settings.mobile = this._mobile;
16556
+ this.settings.touchUi = this.touchUi;
16557
+ }
16558
+ // Configure translation
16559
+ return [4 /*yield*/, this.configureTranslate()];
16560
+ case 2:
16561
+ // Configure translation
16562
+ _b.sent();
16563
+ return [4 /*yield*/, this.storageReady()];
16564
+ case 3:
16565
+ forage = _b.sent();
16566
+ return [4 /*yield*/, this.migrateStorage(forage)];
16567
+ case 4:
16568
+ _b.sent();
16569
+ // Start root services
16570
+ return [4 /*yield*/, Promise.all([
16571
+ this.entitiesStorage.ready(),
16572
+ this.cache.ready().then(function () { return _this.configureCache(); }),
16573
+ this.settings.ready(),
16574
+ this.networkService.ready(),
16575
+ this.audioProvider.ready()
16576
+ ])];
16577
+ case 5:
16578
+ // Start root services
16579
+ _b.sent();
16580
+ console.info("[platform] Starting platform [OK] {mobile: " + this._mobile + ", touchUi: " + this.touchUi + ", downloader: " + this.canDownload + "} in " + (Date.now() - now) + "ms");
16581
+ // Update cache configuration when network changed
16582
+ this.networkService.onNetworkStatusChanges
16583
+ .pipe(operators.skip(1)) // Skip the first event (behavior subject send event immediately)
16584
+ .subscribe(function (type) { return _this.configureCache(type !== 'none'); });
16585
+ // Update authentication type
16586
+ this.configService.config
16587
+ .pipe(operators.map(function (config) { return config === null || config === void 0 ? void 0 : config.getProperty(CORE_CONFIG_OPTIONS.AUTH_TOKEN_TYPE); }), operators.filter(isNotNilOrBlank), operators.distinctUntilChanged())
16588
+ .subscribe(function (tokenType) {
16589
+ console.info("[platform] Using auth token type {" + tokenType + "}");
16590
+ _this.accountService.tokenType = tokenType;
16591
+ });
16592
+ // Hide the splashscreen (if mobile) - after 1s
16593
+ if (this.mobile) {
16594
+ setTimeout(function () {
16595
+ var _a;
16596
+ (_a = _this.splashScreen) === null || _a === void 0 ? void 0 : _a.hide();
16597
+ // Play startup sound
16598
+ _this.audioProvider.playStartupSound();
16599
+ }, 1000);
16600
+ }
16601
+ return [3 /*break*/, 7];
16602
+ case 6:
16603
+ err_1 = _b.sent();
16604
+ // Manage startup error
16605
+ return [2 /*return*/, this.onStartupError(err_1)];
16606
+ case 7: return [2 /*return*/];
16607
+ }
16608
+ });
16609
+ });
16581
16610
  };
16582
16611
  PlatformService.prototype.open = function (url, target, features, replace) {
16583
16612
  console.info("[platform] Opening link: " + url);
@@ -16660,16 +16689,16 @@
16660
16689
  }
16661
16690
  // config moment lib
16662
16691
  try {
16663
- moment$4.locale(event.lang);
16692
+ moment$2.locale(event.lang);
16664
16693
  console.debug('[platform] Use locale {' + event.lang + '}');
16665
16694
  }
16666
16695
  // If error, fallback to en
16667
16696
  catch (err) {
16668
- moment$4.locale('en');
16697
+ moment$2.locale('en');
16669
16698
  console.warn('[platform] Unknown local for moment lib. Using default [en]');
16670
16699
  }
16671
16700
  // Config date adapter
16672
- _this.dateAdapter.setLocale(moment$4.locale());
16701
+ _this.dateAdapter.setLocale(moment$2.locale());
16673
16702
  }
16674
16703
  });
16675
16704
  this.settings.onChange.subscribe(function (data) {
@@ -16690,22 +16719,22 @@
16690
16719
  });
16691
16720
  };
16692
16721
  PlatformService.prototype.configureCache = function (online) {
16693
- online = isNotNil(online) ? online : this.cache.isOnline();
16722
+ online = toBoolean(online, this.cache.isOnline());
16694
16723
  var cacheTTL = online ? 3600 /* 1h */ : 3600 * 24 * 30; /* 1 month */
16695
- console.info("[platform] Configuring cache [OK] {online: " + online + "}, {timeToLive: " + cacheTTL / 3600 + "h}, {offlineInvalidate: false}");
16724
+ console.info("[platform] Configuring cache [OK] {online: " + online + ", timeToLive: " + cacheTTL / 3600 + "h, offlineInvalidate: false}");
16696
16725
  this.cache.setDefaultTTL(cacheTTL);
16697
16726
  this.cache.setOfflineInvalidate(false); // Do not invalidate cache when offline
16698
16727
  };
16699
16728
  PlatformService.prototype.storageReady = function () {
16700
16729
  return __awaiter(this, void 0, void 0, function () {
16701
16730
  var forage, driver;
16702
- return __generator(this, function (_a) {
16703
- switch (_a.label) {
16731
+ return __generator(this, function (_b) {
16732
+ switch (_b.label) {
16704
16733
  case 0:
16705
16734
  console.info("[platform] Starting storage...");
16706
16735
  return [4 /*yield*/, this.storage.ready()];
16707
16736
  case 1:
16708
- forage = _a.sent();
16737
+ forage = _b.sent();
16709
16738
  driver = forage.driver();
16710
16739
  if (isNil(driver)) {
16711
16740
  console.error('[platform] NO DRIVER DEFINED IN STORAGE. Local storage cannot be used !');
@@ -16720,9 +16749,9 @@
16720
16749
  };
16721
16750
  PlatformService.prototype.migrateStorage = function (forage) {
16722
16751
  return __awaiter(this, void 0, void 0, function () {
16723
- var canMigrate, oldForage, keys, now, toast_1, duration, err_1;
16724
- return __generator(this, function (_a) {
16725
- switch (_a.label) {
16752
+ var canMigrate, oldForage, keys, now, toast_1, duration, err_2;
16753
+ return __generator(this, function (_b) {
16754
+ switch (_b.label) {
16726
16755
  case 0:
16727
16756
  canMigrate = forage &&
16728
16757
  ((forage.driver() === 'cordovaSQLiteDriver' && (forage.supports(forage.INDEXEDDB) || forage.supports(forage.WEBSQL))) ||
@@ -16736,13 +16765,13 @@
16736
16765
  });
16737
16766
  return [4 /*yield*/, oldForage.keys()];
16738
16767
  case 1:
16739
- keys = _a.sent();
16768
+ keys = _b.sent();
16740
16769
  if (!isEmptyArray(keys)) return [3 /*break*/, 3];
16741
16770
  // Drop the old instance (not need anymore)
16742
16771
  console.debug("[platform] Old storage is empty: dropping unused instance {name: '" + forage.config().name + "', driver: '" + oldForage.driver() + "'}");
16743
16772
  return [4 /*yield*/, oldForage.dropInstance()];
16744
16773
  case 2:
16745
- _a.sent();
16774
+ _b.sent();
16746
16775
  return [3 /*break*/, 12];
16747
16776
  case 3:
16748
16777
  now = Date.now();
@@ -16750,13 +16779,13 @@
16750
16779
  return [4 /*yield*/, this.showToast({ message: 'INFO.DATA_MIGRATION_STARTED',
16751
16780
  duration: 30000 })];
16752
16781
  case 4:
16753
- toast_1 = _a.sent();
16754
- _a.label = 5;
16782
+ toast_1 = _b.sent();
16783
+ _b.label = 5;
16755
16784
  case 5:
16756
- _a.trys.push([5, 9, , 12]);
16785
+ _b.trys.push([5, 9, , 12]);
16757
16786
  return [4 /*yield*/, StorageUtils.copy(oldForage, forage, { keys: keys, deleteAfterCopy: false })];
16758
16787
  case 6:
16759
- _a.sent();
16788
+ _b.sent();
16760
16789
  duration = Date.now() - now;
16761
16790
  setTimeout(function () { return toast_1.dismiss(); }, Math.max(2000 - duration, 0));
16762
16791
  return [4 /*yield*/, this.showToast({ message: 'INFO.DATA_MIGRATION_SUCCEED',
@@ -16764,26 +16793,26 @@
16764
16793
  showCloseButton: true
16765
16794
  })];
16766
16795
  case 7:
16767
- _a.sent();
16796
+ _b.sent();
16768
16797
  console.info('[platform] Starting storage migration [OK]');
16769
16798
  // Drop the old instance
16770
16799
  console.info("[platform] Drop old storage {name: '" + forage.config().name + "', driver: '" + oldForage.driver() + "'}");
16771
16800
  return [4 /*yield*/, oldForage.dropInstance()];
16772
16801
  case 8:
16773
- _a.sent();
16802
+ _b.sent();
16774
16803
  return [3 /*break*/, 12];
16775
16804
  case 9:
16776
- err_1 = _a.sent();
16777
- console.error(err_1 && err_1.message || err_1, err_1);
16805
+ err_2 = _b.sent();
16806
+ console.error(err_2 && err_2.message || err_2, err_2);
16778
16807
  return [4 /*yield*/, toast_1.dismiss()];
16779
16808
  case 10:
16780
- _a.sent();
16809
+ _b.sent();
16781
16810
  return [4 /*yield*/, this.showToast({ message: 'ERROR.DATA_MIGRATION_FAILED',
16782
16811
  type: 'error',
16783
16812
  showCloseButton: true
16784
16813
  })];
16785
16814
  case 11:
16786
- _a.sent();
16815
+ _b.sent();
16787
16816
  return [3 /*break*/, 12];
16788
16817
  case 12: return [2 /*return*/];
16789
16818
  }
@@ -16799,8 +16828,8 @@
16799
16828
  PlatformService.prototype.onStartupError = function (err) {
16800
16829
  return __awaiter(this, void 0, void 0, function () {
16801
16830
  var message, detailsMessage;
16802
- return __generator(this, function (_a) {
16803
- switch (_a.label) {
16831
+ return __generator(this, function (_b) {
16832
+ switch (_b.label) {
16804
16833
  case 0:
16805
16834
  console.error('[platform] Failed starting the platform! ', err);
16806
16835
  message = err && err.message || err;
@@ -16812,14 +16841,14 @@
16812
16841
  if (!this.translate) return [3 /*break*/, 2];
16813
16842
  return [4 /*yield*/, this.translate.get(message).toPromise()];
16814
16843
  case 1:
16815
- message = _a.sent();
16844
+ message = _b.sent();
16816
16845
  if (err && err.code) {
16817
16846
  message += " {code: " + err.code + "}";
16818
16847
  }
16819
16848
  return [3 /*break*/, 3];
16820
16849
  case 2:
16821
16850
  message = "Fatal error: Please contact your administrator.\n\n{code: " + (err && err.code || 'null') + ", message: \"" + message + "\"}";
16822
- _a.label = 3;
16851
+ _b.label = 3;
16823
16852
  case 3:
16824
16853
  if (!this.toastController) return [3 /*break*/, 5];
16825
16854
  if (detailsMessage) {
@@ -16832,7 +16861,7 @@
16832
16861
  message: message
16833
16862
  })];
16834
16863
  case 4:
16835
- _a.sent();
16864
+ _b.sent();
16836
16865
  return [3 /*break*/, 6];
16837
16866
  case 5:
16838
16867
  if (window) {
@@ -16846,15 +16875,15 @@
16846
16875
  if (err && err.details)
16847
16876
  console.error('cause', err.details);
16848
16877
  }
16849
- _a.label = 6;
16878
+ _b.label = 6;
16850
16879
  case 6: return [2 /*return*/];
16851
16880
  }
16852
16881
  });
16853
16882
  });
16854
16883
  };
16855
16884
  return PlatformService;
16856
- }());
16857
- PlatformService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PlatformService_Factory() { return new PlatformService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$4.Platform), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$1.MomentDateAdapter), i0.ɵɵinject(EntitiesStorage), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(AccountService), i0.ɵɵinject(ConfigService), i0.ɵɵinject(i6.CacheService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(AudioProvider), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(i14.StatusBar, 8), i0.ɵɵinject(i15.Keyboard, 8), i0.ɵɵinject(i10.SplashScreen, 8), i0.ɵɵinject(i17.InAppBrowser, 8), i0.ɵɵinject(i18.Downloader, 8)); }, token: PlatformService, providedIn: "root" });
16885
+ }(StartableService));
16886
+ PlatformService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PlatformService_Factory() { return new PlatformService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i2__namespace$4.Platform), i0__namespace.ɵɵinject(i1__namespace$4.ToastController), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(i1__namespace.MomentDateAdapter), i0__namespace.ɵɵinject(EntitiesStorage), i0__namespace.ɵɵinject(LocalSettingsService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(AccountService), i0__namespace.ɵɵinject(ConfigService), i0__namespace.ɵɵinject(i6__namespace.CacheService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(AudioProvider), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(i14__namespace.StatusBar, 8), i0__namespace.ɵɵinject(i15__namespace.Keyboard, 8), i0__namespace.ɵɵinject(i10__namespace.SplashScreen, 8), i0__namespace.ɵɵinject(i17__namespace.InAppBrowser, 8), i0__namespace.ɵɵinject(i18__namespace.Downloader, 8)); }, token: PlatformService, providedIn: "root" });
16858
16887
  PlatformService.decorators = [
16859
16888
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
16860
16889
  ];
@@ -16952,7 +16981,7 @@
16952
16981
  };
16953
16982
  return MatStepperI18n;
16954
16983
  }(stepper.MatStepperIntl));
16955
- MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
16984
+ MatStepperI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
16956
16985
  MatStepperI18n.decorators = [
16957
16986
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
16958
16987
  ];
@@ -18144,7 +18173,7 @@
18144
18173
  return 1;
18145
18174
  }
18146
18175
  }
18147
- var ɵ0$9 = function (defaultStateSize) { return [
18176
+ var ɵ0$1 = function (defaultStateSize) { return [
18148
18177
  Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
18149
18178
  Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
18150
18179
  Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
@@ -18152,7 +18181,7 @@
18152
18181
  var SCALE_OPTIONS_DEFAULT = {
18153
18182
  startColor: rgbArrayMap.red,
18154
18183
  startStates: [0, 2, 3],
18155
- startStepsFn: ɵ0$9
18184
+ startStepsFn: ɵ0$1
18156
18185
  };
18157
18186
  /**
18158
18187
  * Internal function, that create a colors scale, using iteration
@@ -18244,24 +18273,24 @@
18244
18273
  return result;
18245
18274
  }
18246
18275
 
18247
- var EntityTestClass = /** @class */ (function () {
18276
+ var EntityTestClass$1 = /** @class */ (function () {
18248
18277
  function EntityTestClass() {
18249
18278
  }
18250
18279
  return EntityTestClass;
18251
18280
  }());
18252
- var FAKE_ENTITIES = [
18281
+ var FAKE_ENTITIES$1 = [
18253
18282
  { id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
18254
18283
  { id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
18255
18284
  { id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
18256
18285
  ];
18257
- function deepCopy(values, size) {
18286
+ function deepCopy$1(values, size) {
18258
18287
  if (isNil(size)) {
18259
- return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
18288
+ return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
18260
18289
  }
18261
18290
  var result = [];
18262
18291
  var i = 1;
18263
18292
  while (result.length < size) {
18264
- result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
18293
+ result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
18265
18294
  var name = entity.name + ' #' + i;
18266
18295
  return Object.assign(Object.assign({}, entity), { id: i++, name: name });
18267
18296
  }));
@@ -18271,7 +18300,7 @@
18271
18300
  var AutocompleteTestPage = /** @class */ (function () {
18272
18301
  function AutocompleteTestPage(formBuilder) {
18273
18302
  this.formBuilder = formBuilder;
18274
- this._items = deepCopy(FAKE_ENTITIES, 100);
18303
+ this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
18275
18304
  this.$items = new rxjs.BehaviorSubject(undefined);
18276
18305
  this.autocompleteFields = new MatAutocompleteConfigHolder();
18277
18306
  this.memoryHide = false;
@@ -18316,7 +18345,7 @@
18316
18345
  });
18317
18346
  // From items
18318
18347
  this.autocompleteFields.add('entity-items-large', {
18319
- items: FAKE_ENTITIES.slice(),
18348
+ items: FAKE_ENTITIES$1.slice(),
18320
18349
  attributes: ['label', 'name', 'description', 'comments'],
18321
18350
  displayWith: this.entityToString
18322
18351
  });
@@ -18329,12 +18358,12 @@
18329
18358
  var _this = this;
18330
18359
  return __generator(this, function (_a) {
18331
18360
  data = {
18332
- entity: deepCopy(FAKE_ENTITIES)[0],
18361
+ entity: deepCopy$1(FAKE_ENTITIES$1)[0],
18333
18362
  // This item is NOT in the items list => i should be displayed anyway
18334
18363
  missingEntity: {
18335
18364
  id: -1, label: '??', name: 'Missing item'
18336
18365
  },
18337
- disableEntity: deepCopy(FAKE_ENTITIES)[2]
18366
+ disableEntity: deepCopy$1(FAKE_ENTITIES$1)[2]
18338
18367
  };
18339
18368
  this.form.setValue(data);
18340
18369
  // Load observables
@@ -18532,13 +18561,13 @@
18532
18561
  { type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_TESTING_PAGES,] }] }
18533
18562
  ]; };
18534
18563
 
18535
- var moment$5 = momentImported__namespace;
18564
+ var moment$1 = momentImported__namespace;
18536
18565
  var SwipeTestPage = /** @class */ (function () {
18537
18566
  function SwipeTestPage(formBuilder, dateFormatPipe) {
18538
18567
  this.formBuilder = formBuilder;
18539
18568
  this.dateFormatPipe = dateFormatPipe;
18540
18569
  this.$dates = new rxjs.BehaviorSubject(undefined);
18541
- this._today = moment$5().startOf('day');
18570
+ this._today = moment$1().startOf('day');
18542
18571
  this.form = formBuilder.group({
18543
18572
  empty: [null, i1.Validators.required],
18544
18573
  date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
@@ -18552,7 +18581,7 @@
18552
18581
  var _this = this;
18553
18582
  var dates = [];
18554
18583
  for (var d = 0; d < 7; d++) {
18555
- dates[d] = moment$5(this._today).add(d - 3, 'day');
18584
+ dates[d] = moment$1(this._today).add(d - 3, 'day');
18556
18585
  }
18557
18586
  this.$dates.next(dates);
18558
18587
  this.loadData();
@@ -18599,7 +18628,7 @@
18599
18628
  { type: DateFormatPipe }
18600
18629
  ]; };
18601
18630
 
18602
- var moment$6 = momentImported__namespace;
18631
+ var moment = momentImported__namespace;
18603
18632
  var DateTimeTestPage = /** @class */ (function () {
18604
18633
  function DateTimeTestPage(platform, formBuilder, cd) {
18605
18634
  this.platform = platform;
@@ -18635,7 +18664,7 @@
18635
18664
  var now, data;
18636
18665
  var _this = this;
18637
18666
  return __generator(this, function (_a) {
18638
- now = moment$6();
18667
+ now = moment();
18639
18668
  data = {
18640
18669
  empty: toDateISOString(now.clone().add(2, 'hours')),
18641
18670
  enable: toDateISOString(now),
@@ -18700,23 +18729,23 @@
18700
18729
  { type: i0.ChangeDetectorRef }
18701
18730
  ]; };
18702
18731
 
18703
- var EntityTestClass$1 = /** @class */ (function () {
18732
+ var EntityTestClass = /** @class */ (function () {
18704
18733
  function EntityTestClass() {
18705
18734
  }
18706
18735
  return EntityTestClass;
18707
18736
  }());
18708
- var FAKE_ENTITIES$1 = [
18737
+ var FAKE_ENTITIES = [
18709
18738
  { id: 1, label: 'AAA', name: 'Item A' },
18710
18739
  { id: 2, label: 'BBB', name: 'Item B' },
18711
18740
  { id: 3, label: 'CCC', name: 'Item C' }
18712
18741
  ];
18713
- function deepCopy$1(values) {
18714
- return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
18742
+ function deepCopy(values) {
18743
+ return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
18715
18744
  }
18716
18745
  var ChipsTestPage = /** @class */ (function () {
18717
18746
  function ChipsTestPage(formBuilder) {
18718
18747
  this.formBuilder = formBuilder;
18719
- this._items = deepCopy$1(FAKE_ENTITIES$1);
18748
+ this._items = deepCopy(FAKE_ENTITIES);
18720
18749
  this._$items = new rxjs.BehaviorSubject(undefined);
18721
18750
  this.autocompleteFields = new MatAutocompleteConfigHolder();
18722
18751
  this.form = formBuilder.group({
@@ -18736,7 +18765,7 @@
18736
18765
  });
18737
18766
  // From items
18738
18767
  this.autocompleteFields.add('entity-items', {
18739
- items: FAKE_ENTITIES$1.slice(),
18768
+ items: FAKE_ENTITIES.slice(),
18740
18769
  attributes: ['label', 'name'],
18741
18770
  displayWith: this.entityToString
18742
18771
  });
@@ -18759,8 +18788,8 @@
18759
18788
  data = {
18760
18789
  entity: [],
18761
18790
  // THis item is NOT in the items list => i should be displayed anyway
18762
- entityInitial: FAKE_ENTITIES$1.slice(1, 2),
18763
- disableEntity: FAKE_ENTITIES$1.slice(1, 2)
18791
+ entityInitial: FAKE_ENTITIES.slice(1, 2),
18792
+ disableEntity: FAKE_ENTITIES.slice(1, 2)
18764
18793
  };
18765
18794
  this.form.setValue(data);
18766
18795
  return [2 /*return*/];
@@ -18770,7 +18799,7 @@
18770
18799
  ChipsTestPage.prototype.loadItems = function () {
18771
18800
  return __awaiter(this, void 0, void 0, function () {
18772
18801
  return __generator(this, function (_a) {
18773
- this._$items.next(deepCopy$1(FAKE_ENTITIES$1));
18802
+ this._$items.next(deepCopy(FAKE_ENTITIES));
18774
18803
  return [2 /*return*/];
18775
18804
  });
18776
18805
  });
@@ -18819,7 +18848,7 @@
18819
18848
  },] }
18820
18849
  ];
18821
18850
 
18822
- var routes = [
18851
+ var routes$1 = [
18823
18852
  {
18824
18853
  path: '',
18825
18854
  pathMatch: 'full',
@@ -18874,7 +18903,7 @@
18874
18903
  i1.ReactiveFormsModule,
18875
18904
  SharedMaterialModule,
18876
18905
  i1$2.TranslateModule.forChild(),
18877
- i3.RouterModule.forChild(routes)
18906
+ i3.RouterModule.forChild(routes$1)
18878
18907
  ],
18879
18908
  declarations: [
18880
18909
  MaterialTestingPage,
@@ -20009,7 +20038,7 @@
20009
20038
  };
20010
20039
  return UserSettingsValidatorService;
20011
20040
  }(AppValidatorService));
20012
- UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
20041
+ UserSettingsValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
20013
20042
  UserSettingsValidatorService.decorators = [
20014
20043
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
20015
20044
  ];
@@ -20057,7 +20086,7 @@
20057
20086
  };
20058
20087
  return AccountValidatorService;
20059
20088
  }(AppValidatorService));
20060
- AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
20089
+ 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" });
20061
20090
  AccountValidatorService.decorators = [
20062
20091
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
20063
20092
  ];
@@ -20313,6 +20342,7 @@
20313
20342
  this.onSave = new i0.EventEmitter();
20314
20343
  this.onNext = new i0.EventEmitter();
20315
20344
  this.onBack = new i0.EventEmitter();
20345
+ // Ctrl+S
20316
20346
  this._subscription.add(hotkeys.addShortcut({ keys: 'control.s', description: 'COMMON.BTN_SAVE' })
20317
20347
  .pipe(operators.filter(function (e) { return !_this.disabled; }))
20318
20348
  .subscribe(function (event) { return _this.onSave.emit(event); }));
@@ -20653,7 +20683,7 @@
20653
20683
  };
20654
20684
  return LocalSettingsValidatorService;
20655
20685
  }(AppValidatorService));
20656
- LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
20686
+ 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" });
20657
20687
  LocalSettingsValidatorService.decorators = [
20658
20688
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
20659
20689
  ];
@@ -21435,7 +21465,7 @@
21435
21465
  };
21436
21466
  return IsOnFieldModePipe;
21437
21467
  }());
21438
- IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
21468
+ IsOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
21439
21469
  IsOnFieldModePipe.decorators = [
21440
21470
  { type: i0.Pipe, args: [{
21441
21471
  name: 'isOnField'
@@ -21450,7 +21480,7 @@
21450
21480
  };
21451
21481
  return IsNotOnFieldModePipe;
21452
21482
  }());
21453
- IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
21483
+ IsNotOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
21454
21484
  IsNotOnFieldModePipe.decorators = [
21455
21485
  { type: i0.Pipe, args: [{
21456
21486
  name: 'isNotOnField'
@@ -21468,7 +21498,7 @@
21468
21498
  };
21469
21499
  return PersonToStringPipe;
21470
21500
  }());
21471
- PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
21501
+ PersonToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
21472
21502
  PersonToStringPipe.decorators = [
21473
21503
  { type: i0.Pipe, args: [{
21474
21504
  name: 'personToString'
@@ -21880,7 +21910,7 @@
21880
21910
  };
21881
21911
  return IsLoginAccountPipe;
21882
21912
  }());
21883
- IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
21913
+ IsLoginAccountPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
21884
21914
  IsLoginAccountPipe.decorators = [
21885
21915
  { type: i0.Pipe, args: [{
21886
21916
  name: 'isLogin'
@@ -21895,7 +21925,7 @@
21895
21925
  };
21896
21926
  return AccountToStringPipe;
21897
21927
  }());
21898
- AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
21928
+ AccountToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
21899
21929
  AccountToStringPipe.decorators = [
21900
21930
  { type: i0.Pipe, args: [{
21901
21931
  name: 'accountToString'
@@ -21913,7 +21943,7 @@
21913
21943
  };
21914
21944
  return DepartmentToStringPipe;
21915
21945
  }());
21916
- DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
21946
+ DepartmentToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
21917
21947
  DepartmentToStringPipe.decorators = [
21918
21948
  { type: i0.Pipe, args: [{
21919
21949
  name: 'departmentToString'
@@ -21948,7 +21978,7 @@
21948
21978
  };
21949
21979
  return MenuService;
21950
21980
  }());
21951
- MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
21981
+ MenuService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
21952
21982
  MenuService.decorators = [
21953
21983
  { type: i0.Injectable, args: [{
21954
21984
  providedIn: 'root'
@@ -22527,7 +22557,7 @@
22527
22557
  };
22528
22558
  return AuthGuardService;
22529
22559
  }());
22530
- 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" });
22560
+ 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" });
22531
22561
  AuthGuardService.decorators = [
22532
22562
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
22533
22563
  ];
@@ -22578,7 +22608,7 @@
22578
22608
  query: query,
22579
22609
  variables: { id: id },
22580
22610
  fetchPolicy: opts && opts.fetchPolicy || undefined,
22581
- error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
22611
+ error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
22582
22612
  })
22583
22613
  .pipe(operators.map(function (_b) {
22584
22614
  var data = _b.data;
@@ -22600,7 +22630,7 @@
22600
22630
  query: query,
22601
22631
  variables: { id: id },
22602
22632
  fetchPolicy: opts && opts.fetchPolicy || undefined,
22603
- error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
22633
+ error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
22604
22634
  })];
22605
22635
  case 1:
22606
22636
  data = (_b.sent()).data;
@@ -22636,7 +22666,7 @@
22636
22666
  totalFieldName: withTotal ? 'total' : undefined,
22637
22667
  insertFilterFn: filter && filter.asFilterFn(),
22638
22668
  variables: variables,
22639
- error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
22669
+ error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
22640
22670
  fetchPolicy: opts && opts.fetchPolicy || undefined
22641
22671
  })
22642
22672
  .pipe(operators.map(function (_b) {
@@ -22678,7 +22708,7 @@
22678
22708
  return [4 /*yield*/, this.graphql.query({
22679
22709
  query: query,
22680
22710
  variables: variables,
22681
- error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
22711
+ error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
22682
22712
  fetchPolicy: opts && opts.fetchPolicy || 'network-only'
22683
22713
  })];
22684
22714
  case 1:
@@ -22726,7 +22756,7 @@
22726
22756
  variables: {
22727
22757
  filter: filter && filter.asPodObject()
22728
22758
  },
22729
- error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
22759
+ error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
22730
22760
  fetchPolicy: opts && opts.fetchPolicy || 'network-only'
22731
22761
  })];
22732
22762
  case 3:
@@ -22768,7 +22798,7 @@
22768
22798
  variables: {
22769
22799
  data: json
22770
22800
  },
22771
- error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
22801
+ error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
22772
22802
  update: function (proxy, _b) {
22773
22803
  var data = _b.data;
22774
22804
  var savedEntities = data && data.data;
@@ -22835,7 +22865,7 @@
22835
22865
  variables: {
22836
22866
  data: json
22837
22867
  },
22838
- error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
22868
+ error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
22839
22869
  update: function (cache, _b) {
22840
22870
  var data = _b.data;
22841
22871
  // Update entity
@@ -22893,7 +22923,7 @@
22893
22923
  refetchQueries: this.getRefetchQueriesForMutation(opts),
22894
22924
  awaitRefetchQueries: opts && opts.awaitRefetchQueries,
22895
22925
  variables: { ids: ids },
22896
- error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
22926
+ error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
22897
22927
  update: function (cache, res) {
22898
22928
  // Remove from cache
22899
22929
  if (_this.watchQueriesUpdatePolicy === 'update-cache') {
@@ -22946,7 +22976,7 @@
22946
22976
  refetchQueries: this.getRefetchQueriesForMutation(opts),
22947
22977
  awaitRefetchQueries: opts && opts.awaitRefetchQueries,
22948
22978
  variables: { id: id },
22949
- error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
22979
+ error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
22950
22980
  update: function (proxy, res) {
22951
22981
  // Remove from cache
22952
22982
  if (_this.watchQueriesUpdatePolicy === 'update-cache') {
@@ -22985,7 +23015,7 @@
22985
23015
  query: opts && opts.query || this.subscriptions.listenChanges,
22986
23016
  variables: variables,
22987
23017
  error: {
22988
- code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
23018
+ code: ErrorCodes$2.SUBSCRIBE_DATA_ERROR,
22989
23019
  message: 'ERROR.SUBSCRIBE_DATA_ERROR'
22990
23020
  }
22991
23021
  })
@@ -23194,7 +23224,7 @@
23194
23224
  if (this._debug)
23195
23225
  invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
23196
23226
  // Stop with an error
23197
- throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
23227
+ throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
23198
23228
  }
23199
23229
  this._editingRowCount = 0;
23200
23230
  data = void 0;
@@ -24148,14 +24178,14 @@
24148
24178
  case 0:
24149
24179
  opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
24150
24180
  if (this.readOnly) {
24151
- throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
24181
+ throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
24152
24182
  }
24153
24183
  this.resetError();
24154
24184
  // Keep edited row id (should be done BEFORE confirmEditCreate() )
24155
24185
  this.previouslyEditedRowId = opts.keepEditing && ((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined;
24156
24186
  previouslyEditedData = isNotNil(this.previouslyEditedRowId) && this.editedRow.currentData || ((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.currentData);
24157
24187
  if (!this.confirmEditCreate()) {
24158
- throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
24188
+ throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
24159
24189
  }
24160
24190
  // Mark as saving
24161
24191
  this.markAsSaving();
@@ -24308,7 +24338,7 @@
24308
24338
  switch (_d.label) {
24309
24339
  case 0:
24310
24340
  if (this.readOnly) {
24311
- throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
24341
+ throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
24312
24342
  }
24313
24343
  if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
24314
24344
  return [2 /*return*/, 0]; // SKip
@@ -25999,7 +26029,7 @@
25999
26029
  case 4:
26000
26030
  data = _b.sent();
26001
26031
  if (!data)
26002
- throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
26032
+ throw { code: ErrorCodes$2.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
26003
26033
  this._usageMode = this.computeUsageMode(data);
26004
26034
  return [4 /*yield*/, this.onEntityLoaded(data, opts)];
26005
26035
  case 5:
@@ -26740,10 +26770,10 @@
26740
26770
  exports.UserEventFilter = __decorate([
26741
26771
  EntityClass({ typename: 'UserEventVO' })
26742
26772
  ], exports.UserEventFilter);
26743
- 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);
26744
- 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);
26745
- 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"])));
26746
- 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);
26773
+ 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);
26774
+ 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);
26775
+ 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"])));
26776
+ 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);
26747
26777
  var UserEventService = /** @class */ (function (_super) {
26748
26778
  __extends(UserEventService, _super);
26749
26779
  function UserEventService(graphql, accountService, network, translate, toastController, environment) {
@@ -27064,7 +27094,7 @@
27064
27094
  };
27065
27095
  return UserEventService;
27066
27096
  }(BaseGraphqlService));
27067
- 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" });
27097
+ 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" });
27068
27098
  UserEventService.decorators = [
27069
27099
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
27070
27100
  ];
@@ -27076,7 +27106,7 @@
27076
27106
  { type: i1$5.ToastController },
27077
27107
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
27078
27108
  ]; };
27079
- var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
27109
+ var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1;
27080
27110
 
27081
27111
  var ICONS_MAP = {
27082
27112
  DEBUG_DATA: { matIcon: 'bug_report' },
@@ -27339,16 +27369,16 @@
27339
27369
  ], exports.PersonFilter);
27340
27370
 
27341
27371
  var PersonFragments = {
27342
- 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 }"])))
27372
+ 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 }"])))
27343
27373
  };
27344
27374
  // Load persons query
27345
27375
  var PersonQueries = {
27346
- 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),
27347
- 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)
27376
+ 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),
27377
+ 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)
27348
27378
  };
27349
27379
  var PersonMutations = {
27350
- 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),
27351
- 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 }"])))
27380
+ 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),
27381
+ 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 }"])))
27352
27382
  };
27353
27383
  var PersonService = /** @class */ (function (_super_1) {
27354
27384
  __extends(PersonService, _super_1);
@@ -27472,7 +27502,7 @@
27472
27502
  };
27473
27503
  return PersonService;
27474
27504
  }(BaseEntityService));
27475
- 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" });
27505
+ 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" });
27476
27506
  PersonService.decorators = [
27477
27507
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
27478
27508
  ];
@@ -27482,7 +27512,7 @@
27482
27512
  { type: NetworkService },
27483
27513
  { type: EntitiesStorage }
27484
27514
  ]; };
27485
- var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
27515
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
27486
27516
 
27487
27517
  var PersonValidatorService = /** @class */ (function () {
27488
27518
  function PersonValidatorService(formBuilder, accountValidatorService) {
@@ -27505,7 +27535,7 @@
27505
27535
  };
27506
27536
  return PersonValidatorService;
27507
27537
  }());
27508
- PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
27538
+ 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" });
27509
27539
  PersonValidatorService.decorators = [
27510
27540
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
27511
27541
  ];
@@ -27728,16 +27758,16 @@
27728
27758
  ];
27729
27759
  AdminModule.ctorParameters = function () { return []; };
27730
27760
 
27731
- var ɵ0$a = {
27761
+ var ɵ0 = {
27732
27762
  profile: 'ADMIN'
27733
27763
  };
27734
- var routes$1 = [
27764
+ var routes = [
27735
27765
  {
27736
27766
  path: 'users',
27737
27767
  pathMatch: 'full',
27738
27768
  component: UsersPage,
27739
27769
  canActivate: [AuthGuardService],
27740
- data: ɵ0$a
27770
+ data: ɵ0
27741
27771
  }
27742
27772
  ];
27743
27773
  var AdminRoutingModule = /** @class */ (function () {
@@ -27750,13 +27780,13 @@
27750
27780
  imports: [
27751
27781
  SharedRoutingModule,
27752
27782
  AdminModule,
27753
- i3.RouterModule.forChild(routes$1)
27783
+ i3.RouterModule.forChild(routes)
27754
27784
  ],
27755
27785
  exports: [i3.RouterModule]
27756
27786
  },] }
27757
27787
  ];
27758
27788
 
27759
- var ErrorCodes$2 = {
27789
+ var ErrorCodes = {
27760
27790
  LOAD_PERSONS_ERROR: 100,
27761
27791
  SAVE_PERSONS_ERROR: 101,
27762
27792
  DELETE_PERSONS_ERROR: 102,
@@ -27866,7 +27896,7 @@
27866
27896
  exports.EntityStore = EntityStore;
27867
27897
  exports.EntityUtils = EntityUtils;
27868
27898
  exports.Environment = Environment;
27869
- exports.ErrorCodes = ErrorCodes$2;
27899
+ exports.ErrorCodes = ErrorCodes;
27870
27900
  exports.EvenPipe = EvenPipe;
27871
27901
  exports.FileService = FileService;
27872
27902
  exports.FileSizePipe = FileSizePipe;
@@ -27876,7 +27906,7 @@
27876
27906
  exports.FormErrorTranslatePipe = FormErrorTranslatePipe;
27877
27907
  exports.FormErrorTranslator = FormErrorTranslator;
27878
27908
  exports.FormFieldValuesHolder = FormFieldValuesHolder;
27879
- exports.Fragments = Fragments$1;
27909
+ exports.Fragments = Fragments;
27880
27910
  exports.GraphqlService = GraphqlService;
27881
27911
  exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
27882
27912
  exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
@@ -28124,20 +28154,20 @@
28124
28154
  exports.waitFor = waitFor;
28125
28155
  exports.waitIdle = waitIdle;
28126
28156
  exports.waitWhilePending = waitWhilePending;
28127
- exports0 = ɵ0$5;
28128
- exports.ɵa = CustomReuseStrategy;
28129
- exports.ɵb = MatNumpadDomService;
28130
- exports.ɵc = SharedMatBadgeIconModule;
28131
- exports.ɵd = MatBadgeIconDirective;
28132
- exports.ɵe = isFocusableElement;
28133
- exports.ɵf = MatBadgeIconTestPage;
28134
- exports.ɵg = RegisterForm;
28135
- exports.ɵh = AccountValidatorService;
28136
- exports.ɵi = RegisterModal;
28137
- exports.ɵj = UserSettingsValidatorService;
28138
- exports.ɵk = LocalSettingsValidatorService;
28157
+ exports["ɵ0"] = ɵ0$5;
28158
+ exports["ɵa"] = CustomReuseStrategy;
28159
+ exports["ɵb"] = MatNumpadDomService;
28160
+ exports["ɵc"] = SharedMatBadgeIconModule;
28161
+ exports["ɵd"] = MatBadgeIconDirective;
28162
+ exports["ɵe"] = isFocusableElement;
28163
+ exports["ɵf"] = MatBadgeIconTestPage;
28164
+ exports["ɵg"] = RegisterForm;
28165
+ exports["ɵh"] = AccountValidatorService;
28166
+ exports["ɵi"] = RegisterModal;
28167
+ exports["ɵj"] = UserSettingsValidatorService;
28168
+ exports["ɵk"] = LocalSettingsValidatorService;
28139
28169
 
28140
28170
  Object.defineProperty(exports, '__esModule', { value: true });
28141
28171
 
28142
- })));
28172
+ }));
28143
28173
  //# sourceMappingURL=sumaris-net.ngx-components.umd.js.map