@sumaris-net/ngx-components 0.27.2 → 0.27.6

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();
@@ -1810,7 +1833,7 @@
1810
1833
  // eslint-disable-next-line @angular-eslint/component-selector
1811
1834
  selector: 'mat-autocomplete-field',
1812
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",
1813
- providers: [DEFAULT_VALUE_ACCESSOR],
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
  }
@@ -3353,6 +3376,13 @@
3353
3376
  AppNullForm.prototype.markAsDirty = function (opts) { };
3354
3377
  AppNullForm.prototype.markAsLoading = function (opts) { };
3355
3378
  AppNullForm.prototype.markAsLoaded = function (opts) { };
3379
+ AppNullForm.prototype.markAsReady = function (opts) { };
3380
+ AppNullForm.prototype.waitIdle = function (opts) {
3381
+ return Promise.reject(false);
3382
+ };
3383
+ AppNullForm.prototype.ready = function () {
3384
+ return Promise.reject(true);
3385
+ };
3356
3386
  return AppNullForm;
3357
3387
  }());
3358
3388
  var AppFormProvider = /** @class */ (function () {
@@ -3438,6 +3468,9 @@
3438
3468
  enumerable: false,
3439
3469
  configurable: true
3440
3470
  });
3471
+ AppFormProvider.prototype.ready = function () {
3472
+ return this.delegate.ready();
3473
+ };
3441
3474
  AppFormProvider.prototype.disable = function (opts) {
3442
3475
  return this.delegate.disable(opts);
3443
3476
  };
@@ -3465,6 +3498,9 @@
3465
3498
  AppFormProvider.prototype.markAsLoaded = function (opts) {
3466
3499
  return this.delegate.markAsLoaded(opts);
3467
3500
  };
3501
+ AppFormProvider.prototype.markAsReady = function (opts) {
3502
+ return this.delegate.markAsReady(opts);
3503
+ };
3468
3504
  return AppFormProvider;
3469
3505
  }());
3470
3506
  AppFormProvider.NULL_FORM = new AppNullForm();
@@ -4020,7 +4056,7 @@
4020
4056
  };
4021
4057
  return FormErrorTranslator;
4022
4058
  }());
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" });
4059
+ 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
4060
  FormErrorTranslator.decorators = [
4025
4061
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
4026
4062
  ];
@@ -4302,9 +4338,9 @@
4302
4338
  var hour = parseInt(durationParts[0] || '0');
4303
4339
  var minute = parseInt(durationParts[1] || '0');
4304
4340
  var value = hour + (minute + 0.5) / 60;
4305
- return roundFloat$1(value, maxDecimals);
4341
+ return roundFloat(value, maxDecimals);
4306
4342
  }
4307
- function roundFloat$1(input, maxDecimals) {
4343
+ function roundFloat(input, maxDecimals) {
4308
4344
  if (maxDecimals > 0) {
4309
4345
  var powDecimal = Math.pow(10, maxDecimals);
4310
4346
  return Math.trunc(input * powDecimal + 0.5) / powDecimal;
@@ -4328,9 +4364,9 @@
4328
4364
  DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
4329
4365
  }
4330
4366
  };
4331
- var noop$1 = function () {
4367
+ var noop$6 = function () {
4332
4368
  };
4333
- var ɵ0$1 = noop$1;
4369
+ var ɵ0$9 = noop$6;
4334
4370
  var MatLatLongField = /** @class */ (function () {
4335
4371
  function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
4336
4372
  this.platform = platform;
@@ -4338,8 +4374,8 @@
4338
4374
  this.formBuilder = formBuilder;
4339
4375
  this.cd = cd;
4340
4376
  this.formGroupDir = formGroupDir;
4341
- this._onChangeCallback = noop$1;
4342
- this._onTouchedCallback = noop$1;
4377
+ this._onChangeCallback = noop$6;
4378
+ this._onTouchedCallback = noop$6;
4343
4379
  this._subscription = new rxjs.Subscription();
4344
4380
  this.disabling = false;
4345
4381
  this.writing = false;
@@ -4690,14 +4726,14 @@
4690
4726
  },] }
4691
4727
  ];
4692
4728
 
4693
- var DEFAULT_VALUE_ACCESSOR$1 = {
4729
+ var DEFAULT_VALUE_ACCESSOR$5 = {
4694
4730
  provide: i1.NG_VALUE_ACCESSOR,
4695
4731
  useExisting: i0.forwardRef(function () { return MatDate; }),
4696
4732
  multi: true
4697
4733
  };
4698
- var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
4699
- var noop$2 = function () { };
4700
- var ɵ0$2 = noop$2;
4734
+ var DAY_MASK$2 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
4735
+ var noop$5 = function () { };
4736
+ var ɵ0$8 = noop$5;
4701
4737
  var MatDate = /** @class */ (function () {
4702
4738
  function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
4703
4739
  this.dateAdapter = dateAdapter;
@@ -4706,12 +4742,12 @@
4706
4742
  this.cd = cd;
4707
4743
  this.keyboard = keyboard;
4708
4744
  this.formGroupDir = formGroupDir;
4709
- this._onChangeCallback = noop$2;
4710
- this._onTouchedCallback = noop$2;
4745
+ this._onChangeCallback = noop$5;
4746
+ this._onTouchedCallback = noop$5;
4711
4747
  this._subscription = new rxjs.Subscription();
4712
4748
  this.writing = true;
4713
4749
  this.disabling = false;
4714
- this.dayMask = DAY_MASK;
4750
+ this.dayMask = DAY_MASK$2;
4715
4751
  this.disabled = false;
4716
4752
  this.floatLabel = 'auto';
4717
4753
  this.readonly = false;
@@ -4980,7 +5016,7 @@
4980
5016
  selector: 'mat-date-field',
4981
5017
  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
5018
  providers: [
4983
- DEFAULT_VALUE_ACCESSOR$1,
5019
+ DEFAULT_VALUE_ACCESSOR$5,
4984
5020
  ],
4985
5021
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
4986
5022
  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 +5049,17 @@
5013
5049
  matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
5014
5050
  };
5015
5051
 
5016
- var DEFAULT_VALUE_ACCESSOR$2 = {
5052
+ var DEFAULT_VALUE_ACCESSOR$4 = {
5017
5053
  provide: i1.NG_VALUE_ACCESSOR,
5018
5054
  useExisting: i0.forwardRef(function () { return MatDateTime; }),
5019
5055
  multi: true
5020
5056
  };
5021
5057
  var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
5022
5058
  var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
5023
- var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
5024
- var noop$3 = function () {
5059
+ var HOUR_MASK$1 = [/[012]/, /\d/, ':', /[012345]/, /\d/];
5060
+ var noop$4 = function () {
5025
5061
  };
5026
- var ɵ0$3 = noop$3;
5062
+ var ɵ0$7 = noop$4;
5027
5063
  var MatDateTime = /** @class */ (function () {
5028
5064
  function MatDateTime(platform, dateAdapter, translate, formBuilder, keyboard, cd, formGroupDir) {
5029
5065
  this.platform = platform;
@@ -5033,14 +5069,14 @@
5033
5069
  this.keyboard = keyboard;
5034
5070
  this.cd = cd;
5035
5071
  this.formGroupDir = formGroupDir;
5036
- this._onChangeCallback = noop$3;
5037
- this._onTouchedCallback = noop$3;
5072
+ this._onChangeCallback = noop$4;
5073
+ this._onTouchedCallback = noop$4;
5038
5074
  this._subscription = new rxjs.Subscription();
5039
5075
  this.writing = true;
5040
5076
  this.disabling = false;
5041
5077
  this._readonly = false;
5042
5078
  this.dayMask = DAY_MASK$1;
5043
- this.hourMask = HOUR_MASK;
5079
+ this.hourMask = HOUR_MASK$1;
5044
5080
  this.floatLabel = 'auto';
5045
5081
  this.compact = false;
5046
5082
  this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
@@ -5396,7 +5432,7 @@
5396
5432
  selector: 'mat-date-time-field',
5397
5433
  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
5434
  providers: [
5399
- DEFAULT_VALUE_ACCESSOR$2,
5435
+ DEFAULT_VALUE_ACCESSOR$4,
5400
5436
  ],
5401
5437
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
5402
5438
  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 +5471,10 @@
5435
5471
  useExisting: i0.forwardRef(function () { return MatDateShort; }),
5436
5472
  multi: true
5437
5473
  };
5438
- var DAY_MASK$2 = [/\d/, /\d/, /\d/, /\d/];
5439
- var noop$4 = function () {
5474
+ var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
5475
+ var noop$3 = function () {
5440
5476
  };
5441
- var ɵ0$4 = noop$4;
5477
+ var ɵ0$6 = noop$3;
5442
5478
  var MatDateShort = /** @class */ (function () {
5443
5479
  function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
5444
5480
  this.dateAdapter = dateAdapter;
@@ -5447,11 +5483,11 @@
5447
5483
  this.cd = cd;
5448
5484
  this.keyboard = keyboard;
5449
5485
  this.formGroupDir = formGroupDir;
5450
- this._onChangeCallback = noop$4;
5451
- this._onTouchedCallback = noop$4;
5486
+ this._onChangeCallback = noop$3;
5487
+ this._onTouchedCallback = noop$3;
5452
5488
  this.writing = true;
5453
5489
  this.disabling = false;
5454
- this.dayMask = DAY_MASK$2;
5490
+ this.dayMask = DAY_MASK;
5455
5491
  this.disabled = false;
5456
5492
  this.floatLabel = 'auto';
5457
5493
  this.readonly = false;
@@ -5799,16 +5835,16 @@
5799
5835
  },] }
5800
5836
  ];
5801
5837
 
5802
- var DEFAULT_VALUE_ACCESSOR$4 = {
5838
+ var DEFAULT_VALUE_ACCESSOR$2 = {
5803
5839
  provide: i1.NG_VALUE_ACCESSOR,
5804
5840
  useExisting: i0.forwardRef(function () { return MatDuration; }),
5805
5841
  multi: true
5806
5842
  };
5807
5843
  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 () {
5844
+ var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
5845
+ var noop$2 = function () {
5810
5846
  };
5811
- var ɵ0$5 = noop$5;
5847
+ var ɵ0$5 = noop$2;
5812
5848
  var MatDuration = /** @class */ (function () {
5813
5849
  function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
5814
5850
  this.dateAdapter = dateAdapter;
@@ -5817,11 +5853,11 @@
5817
5853
  this.cd = cd;
5818
5854
  this.formGroupDir = formGroupDir;
5819
5855
  this._subscription = new rxjs.Subscription();
5820
- this._onChangeCallback = noop$5;
5821
- this._onTouchedCallback = noop$5;
5856
+ this._onChangeCallback = noop$2;
5857
+ this._onTouchedCallback = noop$2;
5822
5858
  this.writing = true;
5823
5859
  this.disabling = false;
5824
- this.hourMask = HOUR_MASK$1;
5860
+ this.hourMask = HOUR_MASK;
5825
5861
  this.disabled = false;
5826
5862
  this.floatLabel = 'auto';
5827
5863
  this.readonly = false;
@@ -6014,7 +6050,7 @@
6014
6050
  selector: 'mat-duration-field',
6015
6051
  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
6052
  providers: [
6017
- DEFAULT_VALUE_ACCESSOR$4,
6053
+ DEFAULT_VALUE_ACCESSOR$2,
6018
6054
  ],
6019
6055
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
6020
6056
  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 +6110,22 @@
6074
6110
  },] }
6075
6111
  ];
6076
6112
 
6077
- var DEFAULT_VALUE_ACCESSOR$5 = {
6113
+ var DEFAULT_VALUE_ACCESSOR$1 = {
6078
6114
  provide: i1.NG_VALUE_ACCESSOR,
6079
6115
  useExisting: i0.forwardRef(function () { return MatBooleanField; }),
6080
6116
  multi: true
6081
6117
  };
6082
- var noop$6 = function () {
6118
+ var noop$1 = function () {
6083
6119
  };
6084
- var ɵ0$6 = noop$6;
6120
+ var ɵ0$4 = noop$1;
6085
6121
  var MatBooleanField = /** @class */ (function () {
6086
6122
  function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
6087
6123
  this.translate = translate;
6088
6124
  this.formBuilder = formBuilder;
6089
6125
  this.cd = cd;
6090
6126
  this.formGroupDir = formGroupDir;
6091
- this._onChangeCallback = noop$6;
6092
- this._onTouchedCallback = noop$6;
6127
+ this._onChangeCallback = noop$1;
6128
+ this._onTouchedCallback = noop$1;
6093
6129
  this._writing = false;
6094
6130
  this.showRadio = false;
6095
6131
  this.disabled = false;
@@ -6275,7 +6311,7 @@
6275
6311
  selector: 'mat-boolean-field',
6276
6312
  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
6313
  providers: [
6278
- DEFAULT_VALUE_ACCESSOR$5
6314
+ DEFAULT_VALUE_ACCESSOR$1
6279
6315
  ],
6280
6316
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
6281
6317
  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 +6400,7 @@
6364
6400
  return MatNumpadEvent;
6365
6401
  }(KeyboardEvent));
6366
6402
 
6403
+ exports.AnimationState = void 0;
6367
6404
  (function (AnimationState) {
6368
6405
  AnimationState["ENTER"] = "enter";
6369
6406
  AnimationState["ENTER_INPUT"] = "enter-input";
@@ -6531,7 +6568,7 @@
6531
6568
  };
6532
6569
  return MatNumpadDomService;
6533
6570
  }());
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" });
6571
+ 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
6572
  MatNumpadDomService.decorators = [
6536
6573
  { type: i0.Injectable, args: [{
6537
6574
  providedIn: 'root'
@@ -6937,7 +6974,7 @@
6937
6974
  },] }
6938
6975
  ];
6939
6976
 
6940
- var DEFAULT_VALUE_ACCESSOR$6 = {
6977
+ var DEFAULT_VALUE_ACCESSOR = {
6941
6978
  provide: i1.NG_VALUE_ACCESSOR,
6942
6979
  useExisting: i0.forwardRef(function () { return MatSwipeField; }),
6943
6980
  multi: true
@@ -7257,7 +7294,7 @@
7257
7294
  { type: i0.Component, args: [{
7258
7295
  selector: 'mat-swipe-field',
7259
7296
  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],
7297
+ providers: [DEFAULT_VALUE_ACCESSOR],
7261
7298
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
7262
7299
  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
7300
  },] }
@@ -7899,7 +7936,7 @@
7899
7936
  };
7900
7937
  return ProgressBarService;
7901
7938
  }());
7902
- ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
7939
+ ProgressBarService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
7903
7940
  ProgressBarService.decorators = [
7904
7941
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
7905
7942
  ];
@@ -7946,7 +7983,7 @@
7946
7983
  };
7947
7984
  return AppGestureConfig;
7948
7985
  }(i1$6.HammerGestureConfig));
7949
- AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
7986
+ AppGestureConfig.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
7950
7987
  AppGestureConfig.decorators = [
7951
7988
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
7952
7989
  ];
@@ -8211,7 +8248,7 @@
8211
8248
  };
8212
8249
  return MatPaginatorI18n;
8213
8250
  }(paginator.MatPaginatorIntl));
8214
- MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
8251
+ MatPaginatorI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
8215
8252
  MatPaginatorI18n.decorators = [
8216
8253
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
8217
8254
  ];
@@ -8303,17 +8340,17 @@
8303
8340
  return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
8304
8341
  }
8305
8342
 
8306
- var noop$7 = function () {
8343
+ var noop = function () {
8307
8344
  };
8308
- var ɵ0$7 = noop$7;
8345
+ var ɵ0$3 = noop;
8309
8346
  var AppFormField = /** @class */ (function () {
8310
8347
  function AppFormField(translate, cd, injector, formGroupDir) {
8311
8348
  this.translate = translate;
8312
8349
  this.cd = cd;
8313
8350
  this.injector = injector;
8314
8351
  this.formGroupDir = formGroupDir;
8315
- this._onChangeCallback = noop$7;
8316
- this._onTouchedCallback = noop$7;
8352
+ this._onChangeCallback = noop;
8353
+ this._onTouchedCallback = noop;
8317
8354
  this.readonly = false;
8318
8355
  this.compact = false;
8319
8356
  this.floatLabel = 'auto';
@@ -8857,7 +8894,7 @@
8857
8894
  };
8858
8895
  return AudioProvider;
8859
8896
  }(StartableService));
8860
- 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" });
8897
+ 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" });
8861
8898
  AudioProvider.decorators = [
8862
8899
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
8863
8900
  ];
@@ -8957,7 +8994,7 @@
8957
8994
  };
8958
8995
  return Hotkeys;
8959
8996
  }());
8960
- 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" });
8997
+ 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" });
8961
8998
  Hotkeys.decorators = [
8962
8999
  { type: i0.Injectable, args: [{
8963
9000
  providedIn: 'root'
@@ -9161,7 +9198,7 @@
9161
9198
  return Base64ImageReader;
9162
9199
  }());
9163
9200
 
9164
- var uuidv4 = uuidv4Imported__namespace;
9201
+ var uuidv4$1 = uuidv4Imported__namespace;
9165
9202
  var FileService = /** @class */ (function () {
9166
9203
  function FileService(platform,
9167
9204
  //private transfer: FileTransfer,
@@ -9207,7 +9244,7 @@
9207
9244
  lastSlashIndex = source.lastIndexOf('/');
9208
9245
  if (lastSlashIndex === -1)
9209
9246
  throw new Error('Invalid URL: ' + source);
9210
- fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
9247
+ fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4$1();
9211
9248
  if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
9212
9249
  console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
9213
9250
  targetFilePath = this._imageDirectory + fileName;
@@ -9270,7 +9307,7 @@
9270
9307
  };
9271
9308
  return FileService;
9272
9309
  }());
9273
- 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" });
9310
+ 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" });
9274
9311
  FileService.decorators = [
9275
9312
  { type: i0.Injectable, args: [{
9276
9313
  providedIn: 'root',
@@ -9437,7 +9474,7 @@
9437
9474
  Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
9438
9475
 
9439
9476
  var scrypt = require('scrypt-async');
9440
- var sha256 = require('hash.js/lib/hash/sha/256');
9477
+ var sha256$1 = require('hash.js/lib/hash/sha/256');
9441
9478
  var sha512 = require('hash.js/lib/hash/sha/512');
9442
9479
  var nacl = {
9443
9480
  sign: tweetnacl.sign,
@@ -9543,7 +9580,7 @@
9543
9580
  * Hash (using SHA256) a message
9544
9581
  */
9545
9582
  CryptoService.prototype.sha256 = function (message) {
9546
- return sha256().update(message).digest('hex');
9583
+ return sha256$1().update(message).digest('hex');
9547
9584
  };
9548
9585
  /**
9549
9586
  * Hash (using SHA512) a message
@@ -9557,7 +9594,7 @@
9557
9594
  };
9558
9595
  return CryptoService;
9559
9596
  }());
9560
- CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
9597
+ CryptoService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
9561
9598
  CryptoService.decorators = [
9562
9599
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
9563
9600
  ];
@@ -10978,7 +11015,7 @@
10978
11015
  };
10979
11016
  return LocalSettingsService;
10980
11017
  }(StartableService));
10981
- 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" });
11018
+ 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" });
10982
11019
  LocalSettingsService.decorators = [
10983
11020
  { type: i0.Injectable, args: [{
10984
11021
  providedIn: 'root',
@@ -11783,7 +11820,7 @@
11783
11820
  };
11784
11821
  return NetworkService;
11785
11822
  }(StartableService));
11786
- 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" });
11823
+ 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" });
11787
11824
  NetworkService.decorators = [
11788
11825
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
11789
11826
  ];
@@ -11803,7 +11840,7 @@
11803
11840
  { type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
11804
11841
  ]; };
11805
11842
 
11806
- var ErrorCodes = {
11843
+ var ErrorCodes$2 = {
11807
11844
  UNKNOWN_ERROR: 0,
11808
11845
  LOAD_ACCOUNT_ERROR: 1,
11809
11846
  BAD_PASSWORD: 2,
@@ -12211,7 +12248,7 @@
12211
12248
  case 13:
12212
12249
  err_1 = _a.sent();
12213
12250
  console.error(err_1);
12214
- throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
12251
+ throw { code: ErrorCodes$2.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
12215
12252
  case 14:
12216
12253
  // Emit update event
12217
12254
  if (!opts || opts.emitEvent !== false) {
@@ -12985,7 +13022,7 @@
12985
13022
  }(StartableService));
12986
13023
  EntitiesStorage.TRASH_PREFIX = 'Trash#';
12987
13024
  EntitiesStorage.REMOTE_PREFIX = 'Remote#';
12988
- 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" });
13025
+ 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" });
12989
13026
  EntitiesStorage.decorators = [
12990
13027
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
12991
13028
  ];
@@ -13102,10 +13139,10 @@
13102
13139
  function referentialsToString(values, properties, separator) {
13103
13140
  return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
13104
13141
  }
13105
- var ɵ0$8 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
13142
+ var ɵ0$2 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
13106
13143
  var StatusList = Object.freeze([
13107
13144
  {
13108
- id: ɵ0$8,
13145
+ id: ɵ0$2,
13109
13146
  icon: 'checkmark',
13110
13147
  label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
13111
13148
  },
@@ -13408,7 +13445,7 @@
13408
13445
  (data.lastName || '')) || '';
13409
13446
  }
13410
13447
 
13411
- var uuidv4$1 = uuidv4Imported__namespace;
13448
+ var uuidv4 = uuidv4Imported__namespace;
13412
13449
  var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
13413
13450
  var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
13414
13451
  /**
@@ -13452,7 +13489,7 @@
13452
13489
  // Skip if not tracked
13453
13490
  if (!context || !context.tracked)
13454
13491
  return forward(operation);
13455
- var id = context.serializationKey || uuidv4$1();
13492
+ var id = context.serializationKey || uuidv4();
13456
13493
  console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
13457
13494
  // Clean context, before calling JSON.stringify (remove unused attributes)
13458
13495
  var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
@@ -14086,14 +14123,14 @@
14086
14123
  mutationLinks = void 0;
14087
14124
  // Add queue to store tracked queries, when offline
14088
14125
  if (enableTrackMutationQueries) {
14089
- serializingLink = new SerializingLink__default['default']();
14126
+ serializingLink = new SerializingLink__default["default"]();
14090
14127
  trackerLink = createTrackerLink({
14091
14128
  storage: storage,
14092
14129
  onNetworkStatusChange: this._networkStatusChanged$,
14093
14130
  debounce: 1000,
14094
14131
  debug: true
14095
14132
  });
14096
- queueLink_1 = new QueueLink__default['default']();
14133
+ queueLink_1 = new QueueLink__default["default"]();
14097
14134
  this._subscription.add(this._networkStatusChanged$
14098
14135
  .subscribe(function (type) {
14099
14136
  // Network is offline: start buffering into queue
@@ -14108,7 +14145,7 @@
14108
14145
  }
14109
14146
  }));
14110
14147
  mutationLinks = [
14111
- loggerLink__default['default'],
14148
+ loggerLink__default["default"],
14112
14149
  queueLink_1,
14113
14150
  trackerLink,
14114
14151
  queueLink_1,
@@ -14217,7 +14254,7 @@
14217
14254
  (err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
14218
14255
  || this.toAppError(err.networkError)
14219
14256
  || (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
14220
- || this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
14257
+ || this.createAppErrorByCode(ErrorCodes$2.UNKNOWN_NETWORK_ERROR)))
14221
14258
  // If graphQL: try to convert the first error found
14222
14259
  || (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
14223
14260
  || this.toAppError(err)
@@ -14225,7 +14262,7 @@
14225
14262
  || (err.graphQLErrors && err.graphQLErrors[0])
14226
14263
  || err;
14227
14264
  console.error('[graphql] ' + (error && error.message || error), error.stack || '');
14228
- if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
14265
+ if (error && error.code === ErrorCodes$2.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
14229
14266
  console.error('[graphql] original error: ' + err.networkError.message);
14230
14267
  this.onNetworkError.next(error);
14231
14268
  }
@@ -14261,7 +14298,7 @@
14261
14298
  return 'ERROR.UNAUTHORIZED';
14262
14299
  case ServerErrorCodes.FORBIDDEN:
14263
14300
  return 'ERROR.FORBIDDEN';
14264
- case ErrorCodes.UNKNOWN_NETWORK_ERROR:
14301
+ case ErrorCodes$2.UNKNOWN_NETWORK_ERROR:
14265
14302
  return 'ERROR.UNKNOWN_NETWORK_ERROR';
14266
14303
  case ServerErrorCodes.BAD_UPDATE_DATE:
14267
14304
  return 'ERROR.BAD_UPDATE_DATE';
@@ -14290,7 +14327,7 @@
14290
14327
  };
14291
14328
  return GraphqlService;
14292
14329
  }(StartableService));
14293
- 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" });
14330
+ 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" });
14294
14331
  GraphqlService.decorators = [
14295
14332
  { type: i0.Injectable, args: [{
14296
14333
  providedIn: 'root'
@@ -14307,7 +14344,7 @@
14307
14344
  { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
14308
14345
  ]; };
14309
14346
 
14310
- var sha256$1 = require('hash.js/lib/hash/sha/256');
14347
+ var sha256 = require('hash.js/lib/hash/sha/256');
14311
14348
  var BaseGraphqlServiceOptions = /** @class */ (function () {
14312
14349
  function BaseGraphqlServiceOptions() {
14313
14350
  }
@@ -14474,8 +14511,8 @@
14474
14511
  };
14475
14512
  /* -- protected methods -- */
14476
14513
  BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
14477
- var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
14478
- var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
14514
+ var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
14515
+ var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
14479
14516
  return [queryName, opts.arrayFieldName, variablesKey].join('|');
14480
14517
  };
14481
14518
  BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
@@ -14541,17 +14578,17 @@
14541
14578
  /* ------------------------------------
14542
14579
  * GraphQL queries
14543
14580
  * ------------------------------------*/
14544
- var Fragments = {
14545
- 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 "])))
14581
+ var Fragments$1 = {
14582
+ 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 "])))
14546
14583
  };
14547
14584
  // Load account query
14548
- 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);
14585
+ 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);
14549
14586
  // Check email query
14550
- 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"])));
14587
+ 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"])));
14551
14588
  // Save (create or update) account mutation
14552
- 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);
14589
+ 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);
14553
14590
  // Create account mutation
14554
- 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);
14591
+ 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);
14555
14592
  // Sent confirmation email
14556
14593
  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"])));
14557
14594
  // Confirm account email
@@ -14940,7 +14977,7 @@
14940
14977
  error_3 = _b.sent();
14941
14978
  console.error(error_3);
14942
14979
  this.resetData();
14943
- throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
14980
+ throw { code: ErrorCodes$2.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
14944
14981
  case 4:
14945
14982
  // Store pubkey+keypair
14946
14983
  this._data.pubkey = Base58.encode(keypair.publicKey);
@@ -14976,7 +15013,7 @@
14976
15013
  return [3 /*break*/, 18];
14977
15014
  case 11:
14978
15015
  err_1 = _b.sent();
14979
- if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
15016
+ if (!(err_1 && +(err_1.code) === ErrorCodes$2.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
14980
15017
  if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
14981
15018
  isEmailExists = void 0;
14982
15019
  _b.label = 12;
@@ -14992,12 +15029,12 @@
14992
15029
  case 15:
14993
15030
  // Email not exists (no account)
14994
15031
  if (!isEmailExists) {
14995
- throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
15032
+ throw { code: ErrorCodes$2.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
14996
15033
  }
14997
15034
  _b.label = 16;
14998
15035
  case 16:
14999
15036
  // Email exists, so error = 'bad password'
15000
- throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
15037
+ throw { code: ErrorCodes$2.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
15001
15038
  case 17: throw err_1; // resend the first error
15002
15039
  case 18:
15003
15040
  _b.trys.push([18, 20, , 21]);
@@ -15169,8 +15206,8 @@
15169
15206
  _b.label = 3;
15170
15207
  case 3: return [3 /*break*/, 6];
15171
15208
  case 4: return [4 /*yield*/, this.graphql.query({
15172
- query: LoadQuery,
15173
- error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
15209
+ query: LoadQuery$1,
15210
+ error: { code: ErrorCodes$2.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
15174
15211
  fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
15175
15212
  })];
15176
15213
  case 5:
@@ -15208,7 +15245,7 @@
15208
15245
  case 1:
15209
15246
  isEmailExists = _b.sent();
15210
15247
  if (isEmailExists) {
15211
- throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
15248
+ throw { code: ErrorCodes$2.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
15212
15249
  }
15213
15250
  return [2 /*return*/];
15214
15251
  }
@@ -15258,7 +15295,7 @@
15258
15295
  locale: locale
15259
15296
  },
15260
15297
  error: {
15261
- code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
15298
+ code: ErrorCodes$2.SENT_CONFIRMATION_EMAIL_FAILED,
15262
15299
  message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
15263
15300
  }
15264
15301
  })];
@@ -15281,7 +15318,7 @@
15281
15318
  code: code
15282
15319
  },
15283
15320
  error: {
15284
- code: ErrorCodes.CONFIRM_EMAIL_FAILED,
15321
+ code: ErrorCodes$2.CONFIRM_EMAIL_FAILED,
15285
15322
  message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
15286
15323
  }
15287
15324
  })];
@@ -15304,7 +15341,7 @@
15304
15341
  interval: 10
15305
15342
  },
15306
15343
  error: {
15307
- code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
15344
+ code: ErrorCodes$2.SUBSCRIBE_ACCOUNT_ERROR,
15308
15345
  message: 'ERROR.ACCOUNT.SUBSCRIBE_ACCOUNT_ERROR'
15309
15346
  }
15310
15347
  }).subscribe({
@@ -15458,7 +15495,7 @@
15458
15495
  throw error_6;
15459
15496
  console.error(error_6);
15460
15497
  throw {
15461
- code: ErrorCodes.LOAD_ACCOUNT_ERROR,
15498
+ code: ErrorCodes$2.LOAD_ACCOUNT_ERROR,
15462
15499
  message: 'ERROR.LOAD_ACCOUNT_ERROR'
15463
15500
  };
15464
15501
  case 4: return [2 /*return*/];
@@ -15632,7 +15669,7 @@
15632
15669
  case 1:
15633
15670
  existingAccount = _b.sent();
15634
15671
  if (!existingAccount || !existingAccount.updateDate) {
15635
- throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
15672
+ throw { code: ErrorCodes$2.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
15636
15673
  }
15637
15674
  this.copyIdAndUpdateDate(existingAccount, account);
15638
15675
  _b.label = 2;
@@ -15641,10 +15678,10 @@
15641
15678
  // User not allow to change his profiles
15642
15679
  delete json.profiles;
15643
15680
  return [4 /*yield*/, this.graphql.mutate({
15644
- mutation: isNew ? CreateMutation : SaveMutation,
15681
+ mutation: isNew ? CreateMutation : SaveMutation$1,
15645
15682
  variables: { data: json },
15646
15683
  error: {
15647
- code: ErrorCodes.SAVE_ACCOUNT_ERROR,
15684
+ code: ErrorCodes$2.SAVE_ACCOUNT_ERROR,
15648
15685
  message: 'ERROR.SAVE_ACCOUNT_ERROR'
15649
15686
  }
15650
15687
  })];
@@ -15672,7 +15709,7 @@
15672
15709
  if (counter > 4) {
15673
15710
  if (this._debug)
15674
15711
  console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
15675
- throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
15712
+ throw { code: ErrorCodes$2.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
15676
15713
  }
15677
15714
  if (!token) return [3 /*break*/, 2];
15678
15715
  return [4 /*yield*/, this.graphql.query({
@@ -15681,7 +15718,7 @@
15681
15718
  token: token
15682
15719
  },
15683
15720
  error: {
15684
- code: ErrorCodes.UNAUTHORIZED,
15721
+ code: ErrorCodes$2.UNAUTHORIZED,
15685
15722
  message: 'ERROR.UNAUTHORIZED'
15686
15723
  },
15687
15724
  fetchPolicy: 'no-cache'
@@ -15698,7 +15735,7 @@
15698
15735
  _b.label = 2;
15699
15736
  case 2:
15700
15737
  challengeError = {
15701
- code: ErrorCodes.AUTH_CHALLENGE_ERROR,
15738
+ code: ErrorCodes$2.AUTH_CHALLENGE_ERROR,
15702
15739
  message: 'ERROR.AUTH_CHALLENGE_ERROR'
15703
15740
  };
15704
15741
  return [4 /*yield*/, this.graphql.query({
@@ -15740,7 +15777,7 @@
15740
15777
  };
15741
15778
  return AccountService;
15742
15779
  }(BaseGraphqlService));
15743
- 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" });
15780
+ 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" });
15744
15781
  AccountService.decorators = [
15745
15782
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
15746
15783
  ];
@@ -15753,7 +15790,7 @@
15753
15790
  { type: FileService },
15754
15791
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
15755
15792
  ]; };
15756
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
15793
+ 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;
15757
15794
 
15758
15795
  var Software_1, Configuration_1;
15759
15796
  // @dynamic
@@ -16005,13 +16042,13 @@
16005
16042
  /* ------------------------------------
16006
16043
  * GraphQL queries
16007
16044
  * ------------------------------------*/
16008
- var Fragments$1 = {
16009
- 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 "])))
16045
+ var Fragments = {
16046
+ 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 "])))
16010
16047
  };
16011
- 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);
16048
+ 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);
16012
16049
  // Save (create or update) account mutation
16013
- 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);
16014
- 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"])));
16050
+ 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);
16051
+ 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"])));
16015
16052
  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"])));
16016
16053
  var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
16017
16054
  var ConfigService = /** @class */ (function (_super) {
@@ -16122,12 +16159,12 @@
16122
16159
  case 0:
16123
16160
  now = Date.now();
16124
16161
  console.debug('[config] Loading Pod configuration...');
16125
- query = opts && opts.query || LoadQuery$1;
16162
+ query = opts && opts.query || LoadQuery;
16126
16163
  variables = opts && opts.variables || undefined;
16127
16164
  return [4 /*yield*/, this.graphql.query({
16128
16165
  query: query,
16129
16166
  variables: variables,
16130
- error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
16167
+ error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
16131
16168
  fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
16132
16169
  })];
16133
16170
  case 1:
@@ -16161,12 +16198,12 @@
16161
16198
  console.debug('[config] Saving Pod configuration...', config);
16162
16199
  json = config.asObject();
16163
16200
  return [4 /*yield*/, this.graphql.mutate({
16164
- mutation: SaveMutation$1,
16201
+ mutation: SaveMutation,
16165
16202
  variables: {
16166
16203
  data: json
16167
16204
  },
16168
16205
  error: {
16169
- code: ErrorCodes.SAVE_CONFIG_ERROR,
16206
+ code: ErrorCodes$2.SAVE_CONFIG_ERROR,
16170
16207
  message: 'ERROR.SAVE_CONFIG_ERROR'
16171
16208
  }
16172
16209
  })];
@@ -16201,7 +16238,7 @@
16201
16238
  return [4 /*yield*/, this.graphql.query({
16202
16239
  query: CacheStatistics,
16203
16240
  variables: null,
16204
- error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
16241
+ error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
16205
16242
  fetchPolicy: 'network-only'
16206
16243
  })];
16207
16244
  case 1:
@@ -16225,7 +16262,7 @@
16225
16262
  return [4 /*yield*/, this.graphql.query({
16226
16263
  query: ClearCache,
16227
16264
  variables: variables,
16228
- error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
16265
+ error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
16229
16266
  fetchPolicy: 'network-only'
16230
16267
  })];
16231
16268
  case 1:
@@ -16425,7 +16462,7 @@
16425
16462
  };
16426
16463
  return ConfigService;
16427
16464
  }(BaseGraphqlService));
16428
- 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" });
16465
+ 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" });
16429
16466
  ConfigService.decorators = [
16430
16467
  { type: i0.Injectable, args: [{
16431
16468
  providedIn: 'root',
@@ -16443,9 +16480,9 @@
16443
16480
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
16444
16481
  { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
16445
16482
  ]; };
16446
- var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
16483
+ var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2, templateObject_5$1;
16447
16484
 
16448
- var moment$4 = momentImported__namespace;
16485
+ var moment$2 = momentImported__namespace;
16449
16486
  var PlatformService = /** @class */ (function (_super) {
16450
16487
  __extends(PlatformService, _super);
16451
16488
  function PlatformService(platform, cdkPlatform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser, downloader) {
@@ -16665,16 +16702,16 @@
16665
16702
  }
16666
16703
  // config moment lib
16667
16704
  try {
16668
- moment$4.locale(event.lang);
16705
+ moment$2.locale(event.lang);
16669
16706
  console.debug('[platform] Use locale {' + event.lang + '}');
16670
16707
  }
16671
16708
  // If error, fallback to en
16672
16709
  catch (err) {
16673
- moment$4.locale('en');
16710
+ moment$2.locale('en');
16674
16711
  console.warn('[platform] Unknown local for moment lib. Using default [en]');
16675
16712
  }
16676
16713
  // Config date adapter
16677
- _this.dateAdapter.setLocale(moment$4.locale());
16714
+ _this.dateAdapter.setLocale(moment$2.locale());
16678
16715
  }
16679
16716
  });
16680
16717
  this.settings.onChange.subscribe(function (data) {
@@ -16859,7 +16896,7 @@
16859
16896
  };
16860
16897
  return PlatformService;
16861
16898
  }(StartableService));
16862
- 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" });
16899
+ 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" });
16863
16900
  PlatformService.decorators = [
16864
16901
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
16865
16902
  ];
@@ -16957,7 +16994,7 @@
16957
16994
  };
16958
16995
  return MatStepperI18n;
16959
16996
  }(stepper.MatStepperIntl));
16960
- MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
16997
+ MatStepperI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
16961
16998
  MatStepperI18n.decorators = [
16962
16999
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
16963
17000
  ];
@@ -18149,7 +18186,7 @@
18149
18186
  return 1;
18150
18187
  }
18151
18188
  }
18152
- var ɵ0$9 = function (defaultStateSize) { return [
18189
+ var ɵ0$1 = function (defaultStateSize) { return [
18153
18190
  Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
18154
18191
  Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
18155
18192
  Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
@@ -18157,7 +18194,7 @@
18157
18194
  var SCALE_OPTIONS_DEFAULT = {
18158
18195
  startColor: rgbArrayMap.red,
18159
18196
  startStates: [0, 2, 3],
18160
- startStepsFn: ɵ0$9
18197
+ startStepsFn: ɵ0$1
18161
18198
  };
18162
18199
  /**
18163
18200
  * Internal function, that create a colors scale, using iteration
@@ -18249,24 +18286,24 @@
18249
18286
  return result;
18250
18287
  }
18251
18288
 
18252
- var EntityTestClass = /** @class */ (function () {
18289
+ var EntityTestClass$1 = /** @class */ (function () {
18253
18290
  function EntityTestClass() {
18254
18291
  }
18255
18292
  return EntityTestClass;
18256
18293
  }());
18257
- var FAKE_ENTITIES = [
18294
+ var FAKE_ENTITIES$1 = [
18258
18295
  { id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
18259
18296
  { id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
18260
18297
  { id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
18261
18298
  ];
18262
- function deepCopy(values, size) {
18299
+ function deepCopy$1(values, size) {
18263
18300
  if (isNil(size)) {
18264
- return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
18301
+ return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
18265
18302
  }
18266
18303
  var result = [];
18267
18304
  var i = 1;
18268
18305
  while (result.length < size) {
18269
- result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
18306
+ result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
18270
18307
  var name = entity.name + ' #' + i;
18271
18308
  return Object.assign(Object.assign({}, entity), { id: i++, name: name });
18272
18309
  }));
@@ -18276,7 +18313,7 @@
18276
18313
  var AutocompleteTestPage = /** @class */ (function () {
18277
18314
  function AutocompleteTestPage(formBuilder) {
18278
18315
  this.formBuilder = formBuilder;
18279
- this._items = deepCopy(FAKE_ENTITIES, 100);
18316
+ this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
18280
18317
  this.$items = new rxjs.BehaviorSubject(undefined);
18281
18318
  this.autocompleteFields = new MatAutocompleteConfigHolder();
18282
18319
  this.memoryHide = false;
@@ -18321,7 +18358,7 @@
18321
18358
  });
18322
18359
  // From items
18323
18360
  this.autocompleteFields.add('entity-items-large', {
18324
- items: FAKE_ENTITIES.slice(),
18361
+ items: FAKE_ENTITIES$1.slice(),
18325
18362
  attributes: ['label', 'name', 'description', 'comments'],
18326
18363
  displayWith: this.entityToString
18327
18364
  });
@@ -18334,12 +18371,12 @@
18334
18371
  var _this = this;
18335
18372
  return __generator(this, function (_a) {
18336
18373
  data = {
18337
- entity: deepCopy(FAKE_ENTITIES)[0],
18374
+ entity: deepCopy$1(FAKE_ENTITIES$1)[0],
18338
18375
  // This item is NOT in the items list => i should be displayed anyway
18339
18376
  missingEntity: {
18340
18377
  id: -1, label: '??', name: 'Missing item'
18341
18378
  },
18342
- disableEntity: deepCopy(FAKE_ENTITIES)[2]
18379
+ disableEntity: deepCopy$1(FAKE_ENTITIES$1)[2]
18343
18380
  };
18344
18381
  this.form.setValue(data);
18345
18382
  // Load observables
@@ -18537,13 +18574,13 @@
18537
18574
  { type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_TESTING_PAGES,] }] }
18538
18575
  ]; };
18539
18576
 
18540
- var moment$5 = momentImported__namespace;
18577
+ var moment$1 = momentImported__namespace;
18541
18578
  var SwipeTestPage = /** @class */ (function () {
18542
18579
  function SwipeTestPage(formBuilder, dateFormatPipe) {
18543
18580
  this.formBuilder = formBuilder;
18544
18581
  this.dateFormatPipe = dateFormatPipe;
18545
18582
  this.$dates = new rxjs.BehaviorSubject(undefined);
18546
- this._today = moment$5().startOf('day');
18583
+ this._today = moment$1().startOf('day');
18547
18584
  this.form = formBuilder.group({
18548
18585
  empty: [null, i1.Validators.required],
18549
18586
  date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
@@ -18557,7 +18594,7 @@
18557
18594
  var _this = this;
18558
18595
  var dates = [];
18559
18596
  for (var d = 0; d < 7; d++) {
18560
- dates[d] = moment$5(this._today).add(d - 3, 'day');
18597
+ dates[d] = moment$1(this._today).add(d - 3, 'day');
18561
18598
  }
18562
18599
  this.$dates.next(dates);
18563
18600
  this.loadData();
@@ -18604,7 +18641,7 @@
18604
18641
  { type: DateFormatPipe }
18605
18642
  ]; };
18606
18643
 
18607
- var moment$6 = momentImported__namespace;
18644
+ var moment = momentImported__namespace;
18608
18645
  var DateTimeTestPage = /** @class */ (function () {
18609
18646
  function DateTimeTestPage(platform, formBuilder, cd) {
18610
18647
  this.platform = platform;
@@ -18640,7 +18677,7 @@
18640
18677
  var now, data;
18641
18678
  var _this = this;
18642
18679
  return __generator(this, function (_a) {
18643
- now = moment$6();
18680
+ now = moment();
18644
18681
  data = {
18645
18682
  empty: toDateISOString(now.clone().add(2, 'hours')),
18646
18683
  enable: toDateISOString(now),
@@ -18705,23 +18742,23 @@
18705
18742
  { type: i0.ChangeDetectorRef }
18706
18743
  ]; };
18707
18744
 
18708
- var EntityTestClass$1 = /** @class */ (function () {
18745
+ var EntityTestClass = /** @class */ (function () {
18709
18746
  function EntityTestClass() {
18710
18747
  }
18711
18748
  return EntityTestClass;
18712
18749
  }());
18713
- var FAKE_ENTITIES$1 = [
18750
+ var FAKE_ENTITIES = [
18714
18751
  { id: 1, label: 'AAA', name: 'Item A' },
18715
18752
  { id: 2, label: 'BBB', name: 'Item B' },
18716
18753
  { id: 3, label: 'CCC', name: 'Item C' }
18717
18754
  ];
18718
- function deepCopy$1(values) {
18719
- return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
18755
+ function deepCopy(values) {
18756
+ return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
18720
18757
  }
18721
18758
  var ChipsTestPage = /** @class */ (function () {
18722
18759
  function ChipsTestPage(formBuilder) {
18723
18760
  this.formBuilder = formBuilder;
18724
- this._items = deepCopy$1(FAKE_ENTITIES$1);
18761
+ this._items = deepCopy(FAKE_ENTITIES);
18725
18762
  this._$items = new rxjs.BehaviorSubject(undefined);
18726
18763
  this.autocompleteFields = new MatAutocompleteConfigHolder();
18727
18764
  this.form = formBuilder.group({
@@ -18741,7 +18778,7 @@
18741
18778
  });
18742
18779
  // From items
18743
18780
  this.autocompleteFields.add('entity-items', {
18744
- items: FAKE_ENTITIES$1.slice(),
18781
+ items: FAKE_ENTITIES.slice(),
18745
18782
  attributes: ['label', 'name'],
18746
18783
  displayWith: this.entityToString
18747
18784
  });
@@ -18764,8 +18801,8 @@
18764
18801
  data = {
18765
18802
  entity: [],
18766
18803
  // THis item is NOT in the items list => i should be displayed anyway
18767
- entityInitial: FAKE_ENTITIES$1.slice(1, 2),
18768
- disableEntity: FAKE_ENTITIES$1.slice(1, 2)
18804
+ entityInitial: FAKE_ENTITIES.slice(1, 2),
18805
+ disableEntity: FAKE_ENTITIES.slice(1, 2)
18769
18806
  };
18770
18807
  this.form.setValue(data);
18771
18808
  return [2 /*return*/];
@@ -18775,7 +18812,7 @@
18775
18812
  ChipsTestPage.prototype.loadItems = function () {
18776
18813
  return __awaiter(this, void 0, void 0, function () {
18777
18814
  return __generator(this, function (_a) {
18778
- this._$items.next(deepCopy$1(FAKE_ENTITIES$1));
18815
+ this._$items.next(deepCopy(FAKE_ENTITIES));
18779
18816
  return [2 /*return*/];
18780
18817
  });
18781
18818
  });
@@ -18824,7 +18861,7 @@
18824
18861
  },] }
18825
18862
  ];
18826
18863
 
18827
- var routes = [
18864
+ var routes$1 = [
18828
18865
  {
18829
18866
  path: '',
18830
18867
  pathMatch: 'full',
@@ -18879,7 +18916,7 @@
18879
18916
  i1.ReactiveFormsModule,
18880
18917
  SharedMaterialModule,
18881
18918
  i1$2.TranslateModule.forChild(),
18882
- i3.RouterModule.forChild(routes)
18919
+ i3.RouterModule.forChild(routes$1)
18883
18920
  ],
18884
18921
  declarations: [
18885
18922
  MaterialTestingPage,
@@ -18995,6 +19032,7 @@
18995
19032
  var _this = this;
18996
19033
  this.error = null;
18997
19034
  this._enable = false;
19035
+ this._$ready = new rxjs.BehaviorSubject(true);
18998
19036
  this._loading = true;
18999
19037
  this.i18nFieldPrefix = null;
19000
19038
  this._subscription = new rxjs.Subscription();
@@ -19116,6 +19154,7 @@
19116
19154
  this.onCancel.unsubscribe();
19117
19155
  this.onSubmit.complete();
19118
19156
  this.onSubmit.unsubscribe();
19157
+ this._$ready.complete();
19119
19158
  };
19120
19159
  AppForm.prototype.cancel = function () {
19121
19160
  this.onCancel.emit();
@@ -19206,6 +19245,22 @@
19206
19245
  this.markForCheck();
19207
19246
  }
19208
19247
  };
19248
+ AppForm.prototype.markAsReady = function (opts) {
19249
+ if (!this._$ready.value) {
19250
+ this._$ready.next(true);
19251
+ // If subclasses implements OnReady
19252
+ if (typeof this['ngOnReady'] === 'function') {
19253
+ this.ngOnReady();
19254
+ }
19255
+ }
19256
+ };
19257
+ /**
19258
+ * Wait form is ready
19259
+ * @param opts
19260
+ */
19261
+ AppForm.prototype.ready = function (opts) {
19262
+ return firstTruePromise(this._$ready);
19263
+ };
19209
19264
  /**
19210
19265
  * Wait form is idle (not loading)
19211
19266
  * @param opts
@@ -20014,7 +20069,7 @@
20014
20069
  };
20015
20070
  return UserSettingsValidatorService;
20016
20071
  }(AppValidatorService));
20017
- UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
20072
+ UserSettingsValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
20018
20073
  UserSettingsValidatorService.decorators = [
20019
20074
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
20020
20075
  ];
@@ -20062,7 +20117,7 @@
20062
20117
  };
20063
20118
  return AccountValidatorService;
20064
20119
  }(AppValidatorService));
20065
- AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
20120
+ 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" });
20066
20121
  AccountValidatorService.decorators = [
20067
20122
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
20068
20123
  ];
@@ -20659,7 +20714,7 @@
20659
20714
  };
20660
20715
  return LocalSettingsValidatorService;
20661
20716
  }(AppValidatorService));
20662
- LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
20717
+ 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" });
20663
20718
  LocalSettingsValidatorService.decorators = [
20664
20719
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
20665
20720
  ];
@@ -21441,7 +21496,7 @@
21441
21496
  };
21442
21497
  return IsOnFieldModePipe;
21443
21498
  }());
21444
- IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
21499
+ IsOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
21445
21500
  IsOnFieldModePipe.decorators = [
21446
21501
  { type: i0.Pipe, args: [{
21447
21502
  name: 'isOnField'
@@ -21456,7 +21511,7 @@
21456
21511
  };
21457
21512
  return IsNotOnFieldModePipe;
21458
21513
  }());
21459
- IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
21514
+ IsNotOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
21460
21515
  IsNotOnFieldModePipe.decorators = [
21461
21516
  { type: i0.Pipe, args: [{
21462
21517
  name: 'isNotOnField'
@@ -21474,7 +21529,7 @@
21474
21529
  };
21475
21530
  return PersonToStringPipe;
21476
21531
  }());
21477
- PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
21532
+ PersonToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
21478
21533
  PersonToStringPipe.decorators = [
21479
21534
  { type: i0.Pipe, args: [{
21480
21535
  name: 'personToString'
@@ -21886,7 +21941,7 @@
21886
21941
  };
21887
21942
  return IsLoginAccountPipe;
21888
21943
  }());
21889
- IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
21944
+ IsLoginAccountPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
21890
21945
  IsLoginAccountPipe.decorators = [
21891
21946
  { type: i0.Pipe, args: [{
21892
21947
  name: 'isLogin'
@@ -21901,7 +21956,7 @@
21901
21956
  };
21902
21957
  return AccountToStringPipe;
21903
21958
  }());
21904
- AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
21959
+ AccountToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
21905
21960
  AccountToStringPipe.decorators = [
21906
21961
  { type: i0.Pipe, args: [{
21907
21962
  name: 'accountToString'
@@ -21919,7 +21974,7 @@
21919
21974
  };
21920
21975
  return DepartmentToStringPipe;
21921
21976
  }());
21922
- DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
21977
+ DepartmentToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
21923
21978
  DepartmentToStringPipe.decorators = [
21924
21979
  { type: i0.Pipe, args: [{
21925
21980
  name: 'departmentToString'
@@ -21954,7 +22009,7 @@
21954
22009
  };
21955
22010
  return MenuService;
21956
22011
  }());
21957
- MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
22012
+ MenuService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
21958
22013
  MenuService.decorators = [
21959
22014
  { type: i0.Injectable, args: [{
21960
22015
  providedIn: 'root'
@@ -22533,7 +22588,7 @@
22533
22588
  };
22534
22589
  return AuthGuardService;
22535
22590
  }());
22536
- 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" });
22591
+ 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" });
22537
22592
  AuthGuardService.decorators = [
22538
22593
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
22539
22594
  ];
@@ -22584,7 +22639,7 @@
22584
22639
  query: query,
22585
22640
  variables: { id: id },
22586
22641
  fetchPolicy: opts && opts.fetchPolicy || undefined,
22587
- error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
22642
+ error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
22588
22643
  })
22589
22644
  .pipe(operators.map(function (_b) {
22590
22645
  var data = _b.data;
@@ -22606,7 +22661,7 @@
22606
22661
  query: query,
22607
22662
  variables: { id: id },
22608
22663
  fetchPolicy: opts && opts.fetchPolicy || undefined,
22609
- error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
22664
+ error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
22610
22665
  })];
22611
22666
  case 1:
22612
22667
  data = (_b.sent()).data;
@@ -22642,7 +22697,7 @@
22642
22697
  totalFieldName: withTotal ? 'total' : undefined,
22643
22698
  insertFilterFn: filter && filter.asFilterFn(),
22644
22699
  variables: variables,
22645
- error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
22700
+ error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
22646
22701
  fetchPolicy: opts && opts.fetchPolicy || undefined
22647
22702
  })
22648
22703
  .pipe(operators.map(function (_b) {
@@ -22684,7 +22739,7 @@
22684
22739
  return [4 /*yield*/, this.graphql.query({
22685
22740
  query: query,
22686
22741
  variables: variables,
22687
- error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
22742
+ error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
22688
22743
  fetchPolicy: opts && opts.fetchPolicy || 'network-only'
22689
22744
  })];
22690
22745
  case 1:
@@ -22732,7 +22787,7 @@
22732
22787
  variables: {
22733
22788
  filter: filter && filter.asPodObject()
22734
22789
  },
22735
- error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
22790
+ error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
22736
22791
  fetchPolicy: opts && opts.fetchPolicy || 'network-only'
22737
22792
  })];
22738
22793
  case 3:
@@ -22774,7 +22829,7 @@
22774
22829
  variables: {
22775
22830
  data: json
22776
22831
  },
22777
- error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
22832
+ error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
22778
22833
  update: function (proxy, _b) {
22779
22834
  var data = _b.data;
22780
22835
  var savedEntities = data && data.data;
@@ -22841,7 +22896,7 @@
22841
22896
  variables: {
22842
22897
  data: json
22843
22898
  },
22844
- error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
22899
+ error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
22845
22900
  update: function (cache, _b) {
22846
22901
  var data = _b.data;
22847
22902
  // Update entity
@@ -22899,7 +22954,7 @@
22899
22954
  refetchQueries: this.getRefetchQueriesForMutation(opts),
22900
22955
  awaitRefetchQueries: opts && opts.awaitRefetchQueries,
22901
22956
  variables: { ids: ids },
22902
- error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
22957
+ error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
22903
22958
  update: function (cache, res) {
22904
22959
  // Remove from cache
22905
22960
  if (_this.watchQueriesUpdatePolicy === 'update-cache') {
@@ -22952,7 +23007,7 @@
22952
23007
  refetchQueries: this.getRefetchQueriesForMutation(opts),
22953
23008
  awaitRefetchQueries: opts && opts.awaitRefetchQueries,
22954
23009
  variables: { id: id },
22955
- error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
23010
+ error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
22956
23011
  update: function (proxy, res) {
22957
23012
  // Remove from cache
22958
23013
  if (_this.watchQueriesUpdatePolicy === 'update-cache') {
@@ -22991,7 +23046,7 @@
22991
23046
  query: opts && opts.query || this.subscriptions.listenChanges,
22992
23047
  variables: variables,
22993
23048
  error: {
22994
- code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
23049
+ code: ErrorCodes$2.SUBSCRIBE_DATA_ERROR,
22995
23050
  message: 'ERROR.SUBSCRIBE_DATA_ERROR'
22996
23051
  }
22997
23052
  })
@@ -23200,7 +23255,7 @@
23200
23255
  if (this._debug)
23201
23256
  invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
23202
23257
  // Stop with an error
23203
- throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
23258
+ throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
23204
23259
  }
23205
23260
  this._editingRowCount = 0;
23206
23261
  data = void 0;
@@ -23470,6 +23525,7 @@
23470
23525
  this.allowRowDetail = true;
23471
23526
  this.excludesColumns = [];
23472
23527
  this.totalRowCount = null;
23528
+ this.readySubject = new rxjs.BehaviorSubject(false);
23473
23529
  this.loadingSubject = new rxjs.BehaviorSubject(true);
23474
23530
  this.savingSubject = new rxjs.BehaviorSubject(false);
23475
23531
  this.dirtySubject = new rxjs.BehaviorSubject(false);
@@ -23733,6 +23789,14 @@
23733
23789
  (_a = row.validator) === null || _a === void 0 ? void 0 : _a.markAsDirty(opts);
23734
23790
  this.markAsDirty(opts);
23735
23791
  };
23792
+ AppTable.prototype.markAsReady = function (opts) {
23793
+ if (this.readySubject.value !== false) {
23794
+ this.readySubject.next(false);
23795
+ if (!opts || opts.emitEvent !== false) {
23796
+ this.markForCheck();
23797
+ }
23798
+ }
23799
+ };
23736
23800
  Object.defineProperty(AppTable.prototype, "loading", {
23737
23801
  get: function () {
23738
23802
  return this.loadingSubject.value;
@@ -24154,14 +24218,14 @@
24154
24218
  case 0:
24155
24219
  opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
24156
24220
  if (this.readOnly) {
24157
- throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
24221
+ throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
24158
24222
  }
24159
24223
  this.resetError();
24160
24224
  // Keep edited row id (should be done BEFORE confirmEditCreate() )
24161
24225
  this.previouslyEditedRowId = opts.keepEditing && ((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined;
24162
24226
  previouslyEditedData = isNotNil(this.previouslyEditedRowId) && this.editedRow.currentData || ((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.currentData);
24163
24227
  if (!this.confirmEditCreate()) {
24164
- throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
24228
+ throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
24165
24229
  }
24166
24230
  // Mark as saving
24167
24231
  this.markAsSaving();
@@ -24314,7 +24378,7 @@
24314
24378
  switch (_d.label) {
24315
24379
  case 0:
24316
24380
  if (this.readOnly) {
24317
- throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
24381
+ throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
24318
24382
  }
24319
24383
  if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
24320
24384
  return [2 /*return*/, 0]; // SKip
@@ -24447,6 +24511,9 @@
24447
24511
  AppTable.prototype.moveRow = function (id, direction) {
24448
24512
  this.dataSource.move(id, direction);
24449
24513
  };
24514
+ AppTable.prototype.ready = function () {
24515
+ return firstTruePromise(this.readySubject);
24516
+ };
24450
24517
  AppTable.prototype.waitIdle = function () {
24451
24518
  return firstFalsePromise(this.loadingSubject);
24452
24519
  };
@@ -25242,8 +25309,8 @@
25242
25309
  return AppTabEditorOptions;
25243
25310
  }());
25244
25311
  // eslint-disable-next-line @angular-eslint/directive-class-suffix
25245
- var AppTabEditor = /** @class */ (function () {
25246
- function AppTabEditor(route, router, alertCtrl, translate, options) {
25312
+ var AppEditor = /** @class */ (function () {
25313
+ function AppEditor(route, router, alertCtrl, translate) {
25247
25314
  this.route = route;
25248
25315
  this.router = router;
25249
25316
  this.alertCtrl = alertCtrl;
@@ -25252,25 +25319,20 @@
25252
25319
  this._enabled = false;
25253
25320
  this._dirty = false;
25254
25321
  this._loading = true;
25255
- this._selectedTabIndex = 0;
25322
+ this._$ready = new rxjs.BehaviorSubject(false);
25256
25323
  this.debug = false;
25257
25324
  this.submitted = false;
25258
25325
  this.toolbar = null;
25259
25326
  this.formButtonsBar = null;
25260
- this.selectedTabIndexChange = new i0.EventEmitter();
25261
- options = Object.assign({ tabCount: 1, enableSwipe: true, tabGroupAnimationDuration: '200ms' }, options);
25262
- this.tabCount = options.tabCount;
25263
- this.enableSwipe = options.enableSwipe;
25264
- this.tabGroupAnimationDuration = options.tabGroupAnimationDuration;
25265
25327
  }
25266
- Object.defineProperty(AppTabEditor.prototype, "tables", {
25328
+ Object.defineProperty(AppEditor.prototype, "tables", {
25267
25329
  get: function () {
25268
25330
  return this._children && this._children.filter(function (c) { return c instanceof AppTable; });
25269
25331
  },
25270
25332
  enumerable: false,
25271
25333
  configurable: true
25272
25334
  });
25273
- Object.defineProperty(AppTabEditor.prototype, "dirty", {
25335
+ Object.defineProperty(AppEditor.prototype, "dirty", {
25274
25336
  get: function () {
25275
25337
  var _a;
25276
25338
  return this._dirty || (((_a = this._children) === null || _a === void 0 ? void 0 : _a.findIndex(function (c) { return c.enabled && c.dirty; })) !== -1) || false;
@@ -25278,7 +25340,7 @@
25278
25340
  enumerable: false,
25279
25341
  configurable: true
25280
25342
  });
25281
- Object.defineProperty(AppTabEditor.prototype, "valid", {
25343
+ Object.defineProperty(AppEditor.prototype, "valid", {
25282
25344
  /**
25283
25345
  * Is valid (tables and forms)
25284
25346
  */
@@ -25289,7 +25351,7 @@
25289
25351
  enumerable: false,
25290
25352
  configurable: true
25291
25353
  });
25292
- Object.defineProperty(AppTabEditor.prototype, "invalid", {
25354
+ Object.defineProperty(AppEditor.prototype, "invalid", {
25293
25355
  get: function () {
25294
25356
  var _a;
25295
25357
  return (((_a = this._children) === null || _a === void 0 ? void 0 : _a.findIndex(function (c) { return c.enabled && c.invalid; })) !== -1) || false;
@@ -25297,7 +25359,7 @@
25297
25359
  enumerable: false,
25298
25360
  configurable: true
25299
25361
  });
25300
- Object.defineProperty(AppTabEditor.prototype, "pending", {
25362
+ Object.defineProperty(AppEditor.prototype, "pending", {
25301
25363
  get: function () {
25302
25364
  var _a;
25303
25365
  return (((_a = this._children) === null || _a === void 0 ? void 0 : _a.findIndex(function (c) { return c.enabled && c.pending; })) !== -1) || false;
@@ -25305,7 +25367,7 @@
25305
25367
  enumerable: false,
25306
25368
  configurable: true
25307
25369
  });
25308
- Object.defineProperty(AppTabEditor.prototype, "loading", {
25370
+ Object.defineProperty(AppEditor.prototype, "loading", {
25309
25371
  get: function () {
25310
25372
  var _a;
25311
25373
  return this._loading || (((_a = this._children) === null || _a === void 0 ? void 0 : _a.findIndex(function (c) { return c.enabled && c.loading; })) !== -1) || false;
@@ -25313,76 +25375,47 @@
25313
25375
  enumerable: false,
25314
25376
  configurable: true
25315
25377
  });
25316
- Object.defineProperty(AppTabEditor.prototype, "enabled", {
25378
+ Object.defineProperty(AppEditor.prototype, "enabled", {
25317
25379
  get: function () {
25318
25380
  return this._enabled;
25319
25381
  },
25320
25382
  enumerable: false,
25321
25383
  configurable: true
25322
25384
  });
25323
- Object.defineProperty(AppTabEditor.prototype, "disabled", {
25385
+ Object.defineProperty(AppEditor.prototype, "disabled", {
25324
25386
  get: function () {
25325
25387
  return !this._enabled;
25326
25388
  },
25327
25389
  enumerable: false,
25328
25390
  configurable: true
25329
25391
  });
25330
- Object.defineProperty(AppTabEditor.prototype, "children", {
25392
+ Object.defineProperty(AppEditor.prototype, "children", {
25331
25393
  get: function () {
25332
25394
  return this._children;
25333
25395
  },
25334
25396
  enumerable: false,
25335
25397
  configurable: true
25336
25398
  });
25337
- Object.defineProperty(AppTabEditor.prototype, "empty", {
25399
+ Object.defineProperty(AppEditor.prototype, "empty", {
25338
25400
  get: function () {
25339
25401
  return this._enabled;
25340
25402
  },
25341
25403
  enumerable: false,
25342
25404
  configurable: true
25343
25405
  });
25344
- Object.defineProperty(AppTabEditor.prototype, "selectedTabIndex", {
25345
- get: function () {
25346
- return this._selectedTabIndex;
25347
- },
25348
- set: function (value) {
25349
- this.setSelectedTabIndex(value);
25350
- },
25351
- enumerable: false,
25352
- configurable: true
25353
- });
25354
- AppTabEditor.prototype.ngOnInit = function () {
25406
+ AppEditor.prototype.ngOnInit = function () {
25355
25407
  var _this = this;
25356
- this.queryTabIndexParamName = this.queryTabIndexParamName || 'tab';
25357
- // Read the selected tab index, from path query params
25358
- if (this.tabGroup) {
25359
- this.registerSubscription(this.route.queryParams
25360
- .subscribe(function (queryParams) {
25361
- _this.queryParams = Object.assign({}, queryParams);
25362
- // Parse tab param
25363
- if (_this.tabCount > 1 && _this.queryTabIndexParamName) {
25364
- var tabIndex = queryParams[_this.queryTabIndexParamName];
25365
- _this.queryParams[_this.queryTabIndexParamName] = tabIndex && parseInt(tabIndex) || undefined;
25366
- if (isNotNil(_this.queryParams[_this.queryTabIndexParamName])) {
25367
- _this.selectedTabIndex = _this.queryParams[_this.queryTabIndexParamName];
25368
- }
25369
- }
25370
- // Realign tab, after a delay because the tab can be disabled when component is created
25371
- setTimeout(function () { return _this.tabGroup.realignInkBar(); }, 500);
25372
- }));
25373
- }
25374
25408
  if (this.formButtonsBar) {
25375
25409
  this.registerSubscription(this.formButtonsBar.onBack.subscribe(function (event) { return _this.goBack(event); }));
25376
25410
  }
25377
25411
  };
25378
- AppTabEditor.prototype.ngAfterViewInit = function () {
25412
+ AppEditor.prototype.ngAfterViewInit = function () {
25379
25413
  // Can be override by subclasses
25380
25414
  };
25381
- AppTabEditor.prototype.ngOnDestroy = function () {
25415
+ AppEditor.prototype.ngOnDestroy = function () {
25382
25416
  this._subscription.unsubscribe();
25383
- this.selectedTabIndexChange.complete();
25384
25417
  };
25385
- AppTabEditor.prototype.addChildForm = function (form) {
25418
+ AppEditor.prototype.addChildForm = function (form) {
25386
25419
  if (!form)
25387
25420
  throw new Error('Trying to register an undefined child form');
25388
25421
  this._children = this._children || [];
@@ -25394,26 +25427,26 @@
25394
25427
  }
25395
25428
  return this;
25396
25429
  };
25397
- AppTabEditor.prototype.addChildForms = function (forms) {
25430
+ AppEditor.prototype.addChildForms = function (forms) {
25398
25431
  var _this = this;
25399
25432
  (forms || []).forEach(function (form) { return _this.addChildForm(form); });
25400
25433
  return this;
25401
25434
  };
25402
- AppTabEditor.prototype.disable = function (opts) {
25435
+ AppEditor.prototype.disable = function (opts) {
25403
25436
  var _a;
25404
25437
  this._enabled = false;
25405
25438
  (_a = this._children) === null || _a === void 0 ? void 0 : _a.forEach(function (c) { return c.disable(opts); });
25406
25439
  if (!this.loading && (!opts || opts.emitEvent !== false))
25407
25440
  this.markForCheck();
25408
25441
  };
25409
- AppTabEditor.prototype.enable = function (opts) {
25442
+ AppEditor.prototype.enable = function (opts) {
25410
25443
  var _a;
25411
25444
  this._enabled = true;
25412
25445
  (_a = this._children) === null || _a === void 0 ? void 0 : _a.forEach(function (c) { return c.enable(opts); });
25413
25446
  if (!this.loading && (!opts || opts.emitEvent !== false))
25414
25447
  this.markForCheck();
25415
25448
  };
25416
- AppTabEditor.prototype.markAsPristine = function (opts) {
25449
+ AppEditor.prototype.markAsPristine = function (opts) {
25417
25450
  var _a;
25418
25451
  this.error = null;
25419
25452
  this.submitted = false;
@@ -25422,7 +25455,7 @@
25422
25455
  if (!this.loading && (!opts || opts.emitEvent !== false))
25423
25456
  this.markForCheck();
25424
25457
  };
25425
- AppTabEditor.prototype.markAsUntouched = function (opts) {
25458
+ AppEditor.prototype.markAsUntouched = function (opts) {
25426
25459
  var _a;
25427
25460
  (_a = this._children) === null || _a === void 0 ? void 0 : _a.forEach(function (c) { return c.markAsUntouched(); });
25428
25461
  if (!this.loading && (!opts || opts.emitEvent !== false))
@@ -25432,99 +25465,49 @@
25432
25465
  * @deprecated prefer to use markAllAsTouched()
25433
25466
  * @param opts
25434
25467
  */
25435
- AppTabEditor.prototype.markAsTouched = function (opts) {
25468
+ AppEditor.prototype.markAsTouched = function (opts) {
25436
25469
  var _a;
25437
25470
  (_a = this._children) === null || _a === void 0 ? void 0 : _a.forEach(function (c) { return c.markAsTouched(opts); });
25438
25471
  if (!this.loading && (!opts || opts.emitEvent !== false))
25439
25472
  this.markForCheck();
25440
25473
  };
25441
- AppTabEditor.prototype.markAllAsTouched = function (opts) {
25474
+ AppEditor.prototype.markAllAsTouched = function (opts) {
25442
25475
  var _a;
25443
25476
  (_a = this._children) === null || _a === void 0 ? void 0 : _a.forEach(function (c) { return c.markAllAsTouched(opts); });
25444
25477
  if (!this.loading && (!opts || opts.emitEvent !== false))
25445
25478
  this.markForCheck();
25446
25479
  };
25447
- AppTabEditor.prototype.markAsDirty = function (opts) {
25480
+ AppEditor.prototype.markAsDirty = function (opts) {
25448
25481
  this._dirty = true;
25449
25482
  if (!this.loading && (!opts || opts.emitEvent !== false))
25450
25483
  this.markForCheck();
25451
25484
  };
25452
- AppTabEditor.prototype.markAsLoading = function (opts) {
25485
+ AppEditor.prototype.markAsLoading = function (opts) {
25453
25486
  if (!this._loading) {
25454
25487
  this._loading = true;
25455
25488
  if (!opts || opts.emitEvent !== false)
25456
25489
  this.markForCheck();
25457
25490
  }
25458
25491
  };
25459
- AppTabEditor.prototype.markAsLoaded = function (opts) {
25492
+ AppEditor.prototype.markAsLoaded = function (opts) {
25460
25493
  if (this._loading) {
25461
25494
  this._loading = false;
25462
25495
  if (!opts || opts.emitEvent !== false)
25463
25496
  this.markForCheck();
25464
25497
  }
25465
25498
  };
25466
- AppTabEditor.prototype.onTabChange = function (event, queryTabIndexParamName) {
25467
- queryTabIndexParamName = queryTabIndexParamName || this.queryTabIndexParamName;
25468
- if (!queryTabIndexParamName)
25469
- return true; // Skip if tab query param not set
25470
- if (!this.queryParams || +this.queryParams[queryTabIndexParamName] !== event.index) {
25471
- this.queryParams = this.queryParams || {};
25472
- this.queryParams[queryTabIndexParamName] = event.index;
25473
- if (queryTabIndexParamName === 'tab' && isNotNil(this.queryParams['subtab'])) {
25474
- delete this.queryParams.subtab; // clean subtab
25475
- }
25476
- this.router.navigate(['.'], {
25477
- relativeTo: this.route,
25478
- queryParams: this.queryParams,
25479
- replaceUrl: true
25480
- });
25481
- return true;
25482
- }
25483
- return false;
25499
+ AppEditor.prototype.markAsReady = function (opts) {
25500
+ var _a;
25501
+ (_a = this._children) === null || _a === void 0 ? void 0 : _a.forEach(function (c) { return c.markAsReady(opts); });
25502
+ this._$ready.next(true);
25484
25503
  };
25485
- /**
25486
- * Action triggered when user swipes
25487
- */
25488
- AppTabEditor.prototype.onSwipeTab = function (event) {
25489
- var _this = this;
25490
- // DEBUG
25491
- // if (this.debug) console.debug("[tab-page] onSwipeTab()");
25492
- // Skip, if not a valid swipe event
25493
- if (!this.enableSwipe || !event
25494
- || event.defaultPrevented || (event.srcEvent && event.srcEvent.defaultPrevented)
25495
- || event.pointerType !== 'touch') {
25496
- return false;
25497
- }
25498
- // DEBUG
25499
- //if (this.debug)
25500
- //console.debug("[tab-page] Detected swipe: " + event.type, event);
25501
- var selectTabIndex = this.selectedTabIndex;
25502
- switch (event.type) {
25503
- // Open next tab
25504
- case 'swipeleft':
25505
- var isLast = selectTabIndex >= (this.tabCount - 1);
25506
- selectTabIndex = isLast ? 0 : selectTabIndex + 1;
25507
- break;
25508
- // Open previous tab
25509
- case 'swiperight':
25510
- var isFirst = selectTabIndex <= 0;
25511
- selectTabIndex = isFirst ? this.tabCount : selectTabIndex - 1;
25512
- break;
25513
- // Other case
25514
- default:
25515
- console.error('[tab-page] Unknown swipe action: ' + event.type);
25516
- return false;
25517
- }
25518
- setTimeout(function () {
25519
- _this.selectedTabIndex = selectTabIndex;
25520
- _this.markForCheck();
25521
- });
25522
- return true;
25504
+ AppEditor.prototype.ready = function (opts) {
25505
+ return firstTruePromise(this._$ready);
25523
25506
  };
25524
- AppTabEditor.prototype.onSubTabChange = function (event) {
25525
- this.onTabChange(event, 'subtab');
25507
+ AppEditor.prototype.waitIdle = function (opts) {
25508
+ return AppFormUtils.waitIdle(this, opts);
25526
25509
  };
25527
- AppTabEditor.prototype.cancel = function (event) {
25510
+ AppEditor.prototype.cancel = function (event) {
25528
25511
  return __awaiter(this, void 0, void 0, function () {
25529
25512
  return __generator(this, function (_b) {
25530
25513
  switch (_b.label) {
@@ -25550,12 +25533,11 @@
25550
25533
  *
25551
25534
  * @param opts
25552
25535
  */
25553
- AppTabEditor.prototype.unload = function (opts) {
25536
+ AppEditor.prototype.unload = function (opts) {
25554
25537
  return __awaiter(this, void 0, void 0, function () {
25555
25538
  return __generator(this, function (_b) {
25556
25539
  console.debug('[tab-page] Unloading data...');
25557
25540
  this.markAsLoading();
25558
- this.selectedTabIndex = 0;
25559
25541
  this._children.forEach(function (f) {
25560
25542
  if (f instanceof AppForm) {
25561
25543
  f.reset(null, opts);
@@ -25568,7 +25550,7 @@
25568
25550
  });
25569
25551
  });
25570
25552
  };
25571
- AppTabEditor.prototype.reloadWithConfirmation = function (confirm) {
25553
+ AppEditor.prototype.reloadWithConfirmation = function (confirm) {
25572
25554
  return __awaiter(this, void 0, void 0, function () {
25573
25555
  var needConfirm, translations, alert;
25574
25556
  return __generator(this, function (_b) {
@@ -25616,7 +25598,7 @@
25616
25598
  });
25617
25599
  });
25618
25600
  };
25619
- AppTabEditor.prototype.goBack = function (event) {
25601
+ AppEditor.prototype.goBack = function (event) {
25620
25602
  var _a;
25621
25603
  return __awaiter(this, void 0, void 0, function () {
25622
25604
  return __generator(this, function (_b) {
@@ -25632,32 +25614,15 @@
25632
25614
  });
25633
25615
  });
25634
25616
  };
25635
- AppTabEditor.prototype.setSelectedTabIndex = function (value, opts) {
25617
+ AppEditor.prototype.logFormErrors = function () {
25636
25618
  var _this = this;
25637
- // Fix value
25638
- if (value < 0) {
25639
- value = 0;
25640
- }
25641
- else if (value > this.tabCount - 1) {
25642
- value = this.tabCount - 1;
25643
- }
25644
- this._selectedTabIndex = value;
25645
- this.selectedTabIndexChange.next(value);
25646
- if (this.tabGroup && (!opts || opts.realignInkBar !== false)) {
25647
- this.tabGroup.selectedIndex = value;
25648
- this.markForCheck();
25649
- // Wait tab change in UI, before realign ink tab
25650
- setTimeout(function () { return _this.tabGroup.realignInkBar(); }, 200);
25651
- }
25652
- else if (!opts || opts.emitEvent !== false) {
25653
- this.markForCheck();
25654
- }
25655
- };
25656
- AppTabEditor.prototype.waitIdle = function (opts) {
25657
- return AppFormUtils.waitIdle(this, opts);
25619
+ var _a;
25620
+ if (this.debug)
25621
+ console.debug('[app-tab-editor] Page not valid. Checking where (forms, tables)...');
25622
+ (_a = this._children) === null || _a === void 0 ? void 0 : _a.forEach(function (c) { return _this.logChildrenFormErrors(c); });
25658
25623
  };
25659
25624
  /* -- protected methods -- */
25660
- AppTabEditor.prototype.scrollToTop = function (duration) {
25625
+ AppEditor.prototype.scrollToTop = function (duration) {
25661
25626
  return __awaiter(this, void 0, void 0, function () {
25662
25627
  var scrollToTop_1;
25663
25628
  return __generator(this, function (_b) {
@@ -25679,13 +25644,13 @@
25679
25644
  });
25680
25645
  });
25681
25646
  };
25682
- AppTabEditor.prototype.registerSubscription = function (sub) {
25647
+ AppEditor.prototype.registerSubscription = function (sub) {
25683
25648
  this._subscription.add(sub);
25684
25649
  };
25685
- AppTabEditor.prototype.unregisterSubscription = function (sub) {
25650
+ AppEditor.prototype.unregisterSubscription = function (sub) {
25686
25651
  this._subscription.remove(sub);
25687
25652
  };
25688
- AppTabEditor.prototype.saveIfDirtyAndConfirm = function (event, opts) {
25653
+ AppEditor.prototype.saveIfDirtyAndConfirm = function (event, opts) {
25689
25654
  return __awaiter(this, void 0, void 0, function () {
25690
25655
  var confirm, cancel, translations, alert;
25691
25656
  return __generator(this, function (_b) {
@@ -25739,7 +25704,7 @@
25739
25704
  });
25740
25705
  });
25741
25706
  };
25742
- AppTabEditor.prototype.showToast = function (opts) {
25707
+ AppEditor.prototype.showToast = function (opts) {
25743
25708
  return __awaiter(this, void 0, void 0, function () {
25744
25709
  return __generator(this, function (_b) {
25745
25710
  switch (_b.label) {
@@ -25754,18 +25719,11 @@
25754
25719
  });
25755
25720
  });
25756
25721
  };
25757
- AppTabEditor.prototype.logFormErrors = function () {
25758
- var _this = this;
25759
- var _a;
25760
- if (this.debug)
25761
- console.debug('[app-tab-editor] Page not valid. Checking where (forms, tables)...');
25762
- (_a = this._children) === null || _a === void 0 ? void 0 : _a.forEach(function (c) { return _this.logChildrenFormErrors(c); });
25763
- };
25764
- AppTabEditor.prototype.logChildrenFormErrors = function (c, prefix, path) {
25722
+ AppEditor.prototype.logChildrenFormErrors = function (c, prefix, path) {
25765
25723
  var _this = this;
25766
25724
  prefix = prefix || '[app-tab-editor] ';
25767
25725
  // If editor
25768
- if (c instanceof AppTabEditor) {
25726
+ if (c instanceof AppEditor) {
25769
25727
  c.logFormErrors();
25770
25728
  }
25771
25729
  // Angular form control
@@ -25803,11 +25761,179 @@
25803
25761
  console.warn(prefix + " Unknown children sub-form: ", c);
25804
25762
  }
25805
25763
  };
25806
- AppTabEditor.prototype.markForCheck = function () {
25764
+ AppEditor.prototype.markForCheck = function () {
25807
25765
  // Should be override by subclasses, if change detection is Push
25808
25766
  };
25809
- return AppTabEditor;
25767
+ return AppEditor;
25810
25768
  }());
25769
+ AppEditor.decorators = [
25770
+ { type: i0.Directive }
25771
+ ];
25772
+ AppEditor.ctorParameters = function () { return [
25773
+ { type: i3.ActivatedRoute },
25774
+ { type: i3.Router },
25775
+ { type: i1$5.AlertController },
25776
+ { type: i1$2.TranslateService }
25777
+ ]; };
25778
+ AppEditor.propDecorators = {
25779
+ toolbar: [{ type: i0.ViewChild, args: [ToolbarToken,] }],
25780
+ formButtonsBar: [{ type: i0.ViewChild, args: [FormButtonsBarToken, { static: true },] }],
25781
+ content: [{ type: i0.ViewChild, args: [i1$5.IonContent, { static: true },] }]
25782
+ };
25783
+ // eslint-disable-next-line @angular-eslint/directive-class-suffix
25784
+ var AppTabEditor = /** @class */ (function (_super_1) {
25785
+ __extends(AppTabEditor, _super_1);
25786
+ function AppTabEditor(route, router, alertCtrl, translate, options) {
25787
+ var _this = _super_1.call(this, route, router, alertCtrl, translate) || this;
25788
+ _this.route = route;
25789
+ _this.router = router;
25790
+ _this.alertCtrl = alertCtrl;
25791
+ _this.translate = translate;
25792
+ _this._selectedTabIndex = 0;
25793
+ _this.selectedTabIndexChange = new i0.EventEmitter();
25794
+ options = Object.assign({ tabCount: 1, enableSwipe: true, tabGroupAnimationDuration: '200ms' }, options);
25795
+ _this.tabCount = options.tabCount;
25796
+ _this.enableSwipe = options.enableSwipe;
25797
+ _this.tabGroupAnimationDuration = options.tabGroupAnimationDuration;
25798
+ return _this;
25799
+ }
25800
+ Object.defineProperty(AppTabEditor.prototype, "selectedTabIndex", {
25801
+ get: function () {
25802
+ return this._selectedTabIndex;
25803
+ },
25804
+ set: function (value) {
25805
+ this.setSelectedTabIndex(value);
25806
+ },
25807
+ enumerable: false,
25808
+ configurable: true
25809
+ });
25810
+ AppTabEditor.prototype.ngOnInit = function () {
25811
+ var _this = this;
25812
+ _super_1.prototype.ngOnInit.call(this);
25813
+ this.queryTabIndexParamName = this.queryTabIndexParamName || 'tab';
25814
+ // Read the selected tab index, from path query params
25815
+ if (this.tabGroup) {
25816
+ this.registerSubscription(this.route.queryParams
25817
+ .subscribe(function (queryParams) {
25818
+ _this.queryParams = Object.assign({}, queryParams);
25819
+ // Parse tab param
25820
+ if (_this.tabCount > 1 && _this.queryTabIndexParamName) {
25821
+ var tabIndex = queryParams[_this.queryTabIndexParamName];
25822
+ _this.queryParams[_this.queryTabIndexParamName] = tabIndex && parseInt(tabIndex) || undefined;
25823
+ if (isNotNil(_this.queryParams[_this.queryTabIndexParamName])) {
25824
+ _this.selectedTabIndex = _this.queryParams[_this.queryTabIndexParamName];
25825
+ }
25826
+ }
25827
+ // Realign tab, after a delay because the tab can be disabled when component is created
25828
+ setTimeout(function () { return _this.tabGroup.realignInkBar(); }, 500);
25829
+ }));
25830
+ }
25831
+ };
25832
+ AppTabEditor.prototype.ngOnDestroy = function () {
25833
+ _super_1.prototype.ngOnDestroy.call(this);
25834
+ this.selectedTabIndexChange.complete();
25835
+ };
25836
+ AppTabEditor.prototype.setSelectedTabIndex = function (value, opts) {
25837
+ var _this = this;
25838
+ // Fix value
25839
+ if (value < 0) {
25840
+ value = 0;
25841
+ }
25842
+ else if (value > this.tabCount - 1) {
25843
+ value = this.tabCount - 1;
25844
+ }
25845
+ this._selectedTabIndex = value;
25846
+ this.selectedTabIndexChange.next(value);
25847
+ if (this.tabGroup && (!opts || opts.realignInkBar !== false)) {
25848
+ this.tabGroup.selectedIndex = value;
25849
+ this.markForCheck();
25850
+ // Wait tab change in UI, before realign ink tab
25851
+ setTimeout(function () { return _this.tabGroup.realignInkBar(); }, 200);
25852
+ }
25853
+ else if (!opts || opts.emitEvent !== false) {
25854
+ this.markForCheck();
25855
+ }
25856
+ };
25857
+ AppTabEditor.prototype.onTabChange = function (event, queryTabIndexParamName) {
25858
+ queryTabIndexParamName = queryTabIndexParamName || this.queryTabIndexParamName;
25859
+ if (!queryTabIndexParamName)
25860
+ return true; // Skip if tab query param not set
25861
+ if (!this.queryParams || +this.queryParams[queryTabIndexParamName] !== event.index) {
25862
+ this.queryParams = this.queryParams || {};
25863
+ this.queryParams[queryTabIndexParamName] = event.index;
25864
+ if (queryTabIndexParamName === 'tab' && isNotNil(this.queryParams['subtab'])) {
25865
+ delete this.queryParams.subtab; // clean subtab
25866
+ }
25867
+ this.router.navigate(['.'], {
25868
+ relativeTo: this.route,
25869
+ queryParams: this.queryParams,
25870
+ replaceUrl: true
25871
+ });
25872
+ return true;
25873
+ }
25874
+ return false;
25875
+ };
25876
+ /**
25877
+ * Action triggered when user swipes
25878
+ */
25879
+ AppTabEditor.prototype.onSwipeTab = function (event) {
25880
+ var _this = this;
25881
+ // DEBUG
25882
+ // if (this.debug) console.debug("[tab-page] onSwipeTab()");
25883
+ // Skip, if not a valid swipe event
25884
+ if (!this.enableSwipe || !event
25885
+ || event.defaultPrevented || (event.srcEvent && event.srcEvent.defaultPrevented)
25886
+ || event.pointerType !== 'touch') {
25887
+ return false;
25888
+ }
25889
+ // DEBUG
25890
+ //if (this.debug)
25891
+ //console.debug("[tab-page] Detected swipe: " + event.type, event);
25892
+ var selectTabIndex = this.selectedTabIndex;
25893
+ switch (event.type) {
25894
+ // Open next tab
25895
+ case 'swipeleft':
25896
+ var isLast = selectTabIndex >= (this.tabCount - 1);
25897
+ selectTabIndex = isLast ? 0 : selectTabIndex + 1;
25898
+ break;
25899
+ // Open previous tab
25900
+ case 'swiperight':
25901
+ var isFirst = selectTabIndex <= 0;
25902
+ selectTabIndex = isFirst ? this.tabCount : selectTabIndex - 1;
25903
+ break;
25904
+ // Other case
25905
+ default:
25906
+ console.error('[tab-page] Unknown swipe action: ' + event.type);
25907
+ return false;
25908
+ }
25909
+ setTimeout(function () {
25910
+ _this.selectedTabIndex = selectTabIndex;
25911
+ _this.markForCheck();
25912
+ });
25913
+ return true;
25914
+ };
25915
+ AppTabEditor.prototype.onSubTabChange = function (event) {
25916
+ this.onTabChange(event, 'subtab');
25917
+ };
25918
+ AppTabEditor.prototype.unload = function (opts) {
25919
+ var _super = Object.create(null, {
25920
+ unload: { get: function () { return _super_1.prototype.unload; } }
25921
+ });
25922
+ return __awaiter(this, void 0, void 0, function () {
25923
+ return __generator(this, function (_b) {
25924
+ switch (_b.label) {
25925
+ case 0:
25926
+ this.selectedTabIndex = 0;
25927
+ return [4 /*yield*/, _super.unload.call(this, opts)];
25928
+ case 1:
25929
+ _b.sent();
25930
+ return [2 /*return*/];
25931
+ }
25932
+ });
25933
+ });
25934
+ };
25935
+ return AppTabEditor;
25936
+ }(AppEditor));
25811
25937
  AppTabEditor.decorators = [
25812
25938
  { type: i0.Directive }
25813
25939
  ];
@@ -25820,12 +25946,9 @@
25820
25946
  ]; };
25821
25947
  AppTabEditor.propDecorators = {
25822
25948
  queryTabIndexParamName: [{ type: i0.Input }],
25823
- tabGroup: [{ type: i0.ViewChild, args: ['tabGroup', { static: true },] }],
25824
- toolbar: [{ type: i0.ViewChild, args: [ToolbarToken,] }],
25825
- formButtonsBar: [{ type: i0.ViewChild, args: [FormButtonsBarToken, { static: true },] }],
25826
- content: [{ type: i0.ViewChild, args: [i1$5.IonContent, { static: true },] }],
25827
25949
  selectedTabIndex: [{ type: i0.Input }],
25828
- selectedTabIndexChange: [{ type: i0.Output }]
25950
+ selectedTabIndexChange: [{ type: i0.Output }],
25951
+ tabGroup: [{ type: i0.ViewChild, args: ['tabGroup', { static: true },] }]
25829
25952
  };
25830
25953
 
25831
25954
  var AppEditorOptions = /** @class */ (function (_super) {
@@ -26005,7 +26128,7 @@
26005
26128
  case 4:
26006
26129
  data = _b.sent();
26007
26130
  if (!data)
26008
- throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
26131
+ throw { code: ErrorCodes$2.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
26009
26132
  this._usageMode = this.computeUsageMode(data);
26010
26133
  return [4 /*yield*/, this.onEntityLoaded(data, opts)];
26011
26134
  case 5:
@@ -26065,13 +26188,16 @@
26065
26188
  opts = Object.assign({ updateRoute: this._autoUpdateRoute && idChanged && !this.loading, openTabIndex: this._autoOpenNextTab && idChanged && isNil(this.previousDataId) && this.computeNextTabIndex() }, opts);
26066
26189
  this.data = data;
26067
26190
  this.previousDataId = data.id || null;
26068
- promiseOrVoid = this.setValue(data);
26069
- if (!promiseOrVoid) return [3 /*break*/, 2];
26070
- return [4 /*yield*/, promiseOrVoid];
26191
+ return [4 /*yield*/, this.ready()];
26071
26192
  case 1:
26072
26193
  _b.sent();
26073
- _b.label = 2;
26194
+ promiseOrVoid = this.setValue(data);
26195
+ if (!promiseOrVoid) return [3 /*break*/, 3];
26196
+ return [4 /*yield*/, promiseOrVoid];
26074
26197
  case 2:
26198
+ _b.sent();
26199
+ _b.label = 3;
26200
+ case 3:
26075
26201
  if (!opts || opts.emitEvent !== false) {
26076
26202
  this.markAsPristine();
26077
26203
  this.markAsUntouched();
@@ -26746,10 +26872,10 @@
26746
26872
  exports.UserEventFilter = __decorate([
26747
26873
  EntityClass({ typename: 'UserEventVO' })
26748
26874
  ], exports.UserEventFilter);
26749
- 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);
26750
- 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);
26751
- 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"])));
26752
- 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);
26875
+ 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);
26876
+ 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);
26877
+ 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"])));
26878
+ 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);
26753
26879
  var UserEventService = /** @class */ (function (_super) {
26754
26880
  __extends(UserEventService, _super);
26755
26881
  function UserEventService(graphql, accountService, network, translate, toastController, environment) {
@@ -27070,7 +27196,7 @@
27070
27196
  };
27071
27197
  return UserEventService;
27072
27198
  }(BaseGraphqlService));
27073
- 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" });
27199
+ 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" });
27074
27200
  UserEventService.decorators = [
27075
27201
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
27076
27202
  ];
@@ -27082,7 +27208,7 @@
27082
27208
  { type: i1$5.ToastController },
27083
27209
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
27084
27210
  ]; };
27085
- var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
27211
+ var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1;
27086
27212
 
27087
27213
  var ICONS_MAP = {
27088
27214
  DEBUG_DATA: { matIcon: 'bug_report' },
@@ -27345,16 +27471,16 @@
27345
27471
  ], exports.PersonFilter);
27346
27472
 
27347
27473
  var PersonFragments = {
27348
- 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 }"])))
27474
+ 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 }"])))
27349
27475
  };
27350
27476
  // Load persons query
27351
27477
  var PersonQueries = {
27352
- 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),
27353
- 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)
27478
+ 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),
27479
+ 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)
27354
27480
  };
27355
27481
  var PersonMutations = {
27356
- 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),
27357
- 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 }"])))
27482
+ 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),
27483
+ 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 }"])))
27358
27484
  };
27359
27485
  var PersonService = /** @class */ (function (_super_1) {
27360
27486
  __extends(PersonService, _super_1);
@@ -27478,7 +27604,7 @@
27478
27604
  };
27479
27605
  return PersonService;
27480
27606
  }(BaseEntityService));
27481
- 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" });
27607
+ 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" });
27482
27608
  PersonService.decorators = [
27483
27609
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
27484
27610
  ];
@@ -27488,7 +27614,7 @@
27488
27614
  { type: NetworkService },
27489
27615
  { type: EntitiesStorage }
27490
27616
  ]; };
27491
- var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
27617
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
27492
27618
 
27493
27619
  var PersonValidatorService = /** @class */ (function () {
27494
27620
  function PersonValidatorService(formBuilder, accountValidatorService) {
@@ -27511,7 +27637,7 @@
27511
27637
  };
27512
27638
  return PersonValidatorService;
27513
27639
  }());
27514
- PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
27640
+ 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" });
27515
27641
  PersonValidatorService.decorators = [
27516
27642
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
27517
27643
  ];
@@ -27734,16 +27860,16 @@
27734
27860
  ];
27735
27861
  AdminModule.ctorParameters = function () { return []; };
27736
27862
 
27737
- var ɵ0$a = {
27863
+ var ɵ0 = {
27738
27864
  profile: 'ADMIN'
27739
27865
  };
27740
- var routes$1 = [
27866
+ var routes = [
27741
27867
  {
27742
27868
  path: 'users',
27743
27869
  pathMatch: 'full',
27744
27870
  component: UsersPage,
27745
27871
  canActivate: [AuthGuardService],
27746
- data: ɵ0$a
27872
+ data: ɵ0
27747
27873
  }
27748
27874
  ];
27749
27875
  var AdminRoutingModule = /** @class */ (function () {
@@ -27756,13 +27882,13 @@
27756
27882
  imports: [
27757
27883
  SharedRoutingModule,
27758
27884
  AdminModule,
27759
- i3.RouterModule.forChild(routes$1)
27885
+ i3.RouterModule.forChild(routes)
27760
27886
  ],
27761
27887
  exports: [i3.RouterModule]
27762
27888
  },] }
27763
27889
  ];
27764
27890
 
27765
- var ErrorCodes$2 = {
27891
+ var ErrorCodes = {
27766
27892
  LOAD_PERSONS_ERROR: 100,
27767
27893
  SAVE_PERSONS_ERROR: 101,
27768
27894
  DELETE_PERSONS_ERROR: 102,
@@ -27794,6 +27920,7 @@
27794
27920
  exports.AdminModule = AdminModule;
27795
27921
  exports.AdminRoutingModule = AdminRoutingModule;
27796
27922
  exports.Alerts = Alerts;
27923
+ exports.AppEditor = AppEditor;
27797
27924
  exports.AppEditorOptions = AppEditorOptions;
27798
27925
  exports.AppEntityEditor = AppEntityEditor;
27799
27926
  exports.AppForm = AppForm;
@@ -27872,7 +27999,7 @@
27872
27999
  exports.EntityStore = EntityStore;
27873
28000
  exports.EntityUtils = EntityUtils;
27874
28001
  exports.Environment = Environment;
27875
- exports.ErrorCodes = ErrorCodes$2;
28002
+ exports.ErrorCodes = ErrorCodes;
27876
28003
  exports.EvenPipe = EvenPipe;
27877
28004
  exports.FileService = FileService;
27878
28005
  exports.FileSizePipe = FileSizePipe;
@@ -27882,7 +28009,7 @@
27882
28009
  exports.FormErrorTranslatePipe = FormErrorTranslatePipe;
27883
28010
  exports.FormErrorTranslator = FormErrorTranslator;
27884
28011
  exports.FormFieldValuesHolder = FormFieldValuesHolder;
27885
- exports.Fragments = Fragments$1;
28012
+ exports.Fragments = Fragments;
27886
28013
  exports.GraphqlService = GraphqlService;
27887
28014
  exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
27888
28015
  exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
@@ -28130,20 +28257,20 @@
28130
28257
  exports.waitFor = waitFor;
28131
28258
  exports.waitIdle = waitIdle;
28132
28259
  exports.waitWhilePending = waitWhilePending;
28133
- exports0 = ɵ0$5;
28134
- exports.ɵa = CustomReuseStrategy;
28135
- exports.ɵb = MatNumpadDomService;
28136
- exports.ɵc = SharedMatBadgeIconModule;
28137
- exports.ɵd = MatBadgeIconDirective;
28138
- exports.ɵe = isFocusableElement;
28139
- exports.ɵf = MatBadgeIconTestPage;
28140
- exports.ɵg = RegisterForm;
28141
- exports.ɵh = AccountValidatorService;
28142
- exports.ɵi = RegisterModal;
28143
- exports.ɵj = UserSettingsValidatorService;
28144
- exports.ɵk = LocalSettingsValidatorService;
28260
+ exports["ɵ0"] = ɵ0$5;
28261
+ exports["ɵa"] = CustomReuseStrategy;
28262
+ exports["ɵb"] = MatNumpadDomService;
28263
+ exports["ɵc"] = SharedMatBadgeIconModule;
28264
+ exports["ɵd"] = MatBadgeIconDirective;
28265
+ exports["ɵe"] = isFocusableElement;
28266
+ exports["ɵf"] = MatBadgeIconTestPage;
28267
+ exports["ɵg"] = RegisterForm;
28268
+ exports["ɵh"] = AccountValidatorService;
28269
+ exports["ɵi"] = RegisterModal;
28270
+ exports["ɵj"] = UserSettingsValidatorService;
28271
+ exports["ɵk"] = LocalSettingsValidatorService;
28145
28272
 
28146
28273
  Object.defineProperty(exports, '__esModule', { value: true });
28147
28274
 
28148
- })));
28275
+ }));
28149
28276
  //# sourceMappingURL=sumaris-net.ngx-components.umd.js.map