@sumaris-net/ngx-components 1.11.13 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/sumaris-net.ngx-components.umd.js +282 -300
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/form/entity-editor.class.js +2 -2
- package/esm2015/src/app/core/services/model/entity.model.js +8 -2
- package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.js +2 -2
- package/fesm2015/sumaris-net.ngx-components.js +273 -282
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/theme/_ngx-components.scss +22 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -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('@angular/cdk/text-field'), require('@e-is/ngx-material-table'), require('@angular/cdk/collections'), require('ngx-jdenticon'), require('tweetnacl-util'), require('scrypt-async'), require('hammerjs')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@sumaris-net/ngx-components', ['exports', '@angular/core', '@angular/common', '@angular/cdk/table', '@angular/cdk/a11y', '@angular/cdk/overlay', '@angular/cdk/scrolling', '@angular/material/core', '@angular/material/table', '@angular/material/sort', '@angular/material/paginator', '@angular/material/form-field', '@angular/material/input', '@angular/material/checkbox', '@angular/material/expansion', '@angular/material/toolbar', '@angular/material/icon', '@angular/material/button', '@angular/material/menu', '@angular/material/select', '@angular/material/card', '@angular/material/tabs', '@angular/material/stepper', '@angular/material/list', '@angular/material/button-toggle', '@angular/material/progress-spinner', '@angular/material/progress-bar', '@angular/material/radio', '@angular/material/badge', '@angular/material/slide-toggle', '@angular/material/dialog', '@angular/material/autocomplete', '@angular/forms', 'rxjs', 'rxjs/operators', '@ngx-translate/core', '@ionic/angular', 'moment', '@angular/material-moment-adapter', '@ionic-native/keyboard/ngx', 'angular2-text-mask', 'ngx-material-timepicker', '@angular/material/datepicker', '@angular/animations', '@angular/material/divider', '@angular/material/tooltip', '@angular/material/chips', '@angular/router', '@angular/platform-browser', '@angular/common/http', 'ngx-color-picker', '@ionic-native/native-audio/ngx', '@ionic-native/vibration/ngx', '@ionic-native/audio-management/ngx', '@ionic-native/native-audio/ngx/index', '@ionic-native/vibration/ngx/index', '@ionic-native/audio-management/ngx/index', 'uuid/v4', '@angular/cdk/drag-drop', 'ngx-markdown', 'tweetnacl', '@ionic/storage', 'zone.js/dist/zone-error', '@ionic-native/splash-screen/ngx', '@ionic-native/network/ngx', 'ionic-cache', 'ionic-cache/dist/cache.service', '@ionic-native/network/ngx/index', '@ionic-native/splash-screen/ngx/index', '@ionic-native/status-bar/ngx', '@angular/cdk/platform', '@ionic-native/in-app-browser/ngx', '@apollo/client/core', 'apollo-angular', '@apollo/client/link/ws', '@apollo/client/utilities', '@apollo/client/link/retry', 'apollo-link-queue', 'apollo-link-serialize', 'apollo-link-logger', 'apollo-angular/http', 'apollo3-cache-persist', '@ionic-native/downloader/ngx', '@ionic-native/status-bar/ngx/index', '@ionic-native/keyboard/ngx/index', '@ionic-native/in-app-browser/ngx/index', '@ionic-native/downloader/ngx/index', '@angular/cdk/text-field', '@e-is/ngx-material-table', '@angular/cdk/collections', 'ngx-jdenticon', 'tweetnacl-util', 'scrypt-async', 'hammerjs'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global[
|
|
5
|
-
}
|
|
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['ionic-native'].downloader.ngx, global['ionic-native']['status-bar'].ngx.index, global['ionic-native'].keyboard.ngx.index, global['ionic-native']['in-app-browser'].ngx.index, global['ionic-native'].downloader.ngx.index, global.ng.cdk.textField, global['e-is']['ngx-material-table'], global.ng.cdk.collections, global['ngx-jdenticon']));
|
|
5
|
+
}(this, (function (exports, i0, i1$4, table$1, a11y, overlay, scrolling, i1$3, table, sort$1, paginator, formField, input, checkbox, expansion, toolbar, icon, button, menu, select, card, tabs, stepper, list, buttonToggle, progressSpinner, progressBar, radio, badge, slideToggle, i2, autocomplete, i1, rxjs, operators, i1$2, i1$5, momentImported, i1$1, ngx, angular2TextMask, ngxMaterialTimepicker, datepicker, animations, divider, tooltip, chips, i3, i1$6, i2$1, ngxColorPicker, ngx$2, ngx$3, ngx$1, i2$2, i3$1, i4, uuidv4Imported, dragDrop, ngxMarkdown, tweetnacl, i3$2, zoneError, ngx$5, ngx$4, ionicCache, i6, i9, i10, ngx$7, i2$4, ngx$8, core, i2$3, ws, utilities, retry, QueueLink, SerializingLink, loggerLink, i3$3, apollo3CachePersist, ngx$6, i14, i15, i17, i18, textField, ngxMaterialTable, collections, ngxJdenticon) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -15,45 +15,22 @@
|
|
|
15
15
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
16
|
Object.defineProperty(n, k, d.get ? d : {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () {
|
|
18
|
+
get: function () {
|
|
19
|
+
return e[k];
|
|
20
|
+
}
|
|
19
21
|
});
|
|
20
22
|
}
|
|
21
23
|
});
|
|
22
24
|
}
|
|
23
|
-
n[
|
|
25
|
+
n['default'] = e;
|
|
24
26
|
return Object.freeze(n);
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
29
|
-
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
30
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2);
|
|
31
|
-
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1);
|
|
32
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
33
|
-
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
34
29
|
var momentImported__namespace = /*#__PURE__*/_interopNamespace(momentImported);
|
|
35
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
|
|
36
|
-
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);
|
|
42
30
|
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);
|
|
49
31
|
var QueueLink__default = /*#__PURE__*/_interopDefaultLegacy(QueueLink);
|
|
50
32
|
var SerializingLink__default = /*#__PURE__*/_interopDefaultLegacy(SerializingLink);
|
|
51
33
|
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);
|
|
57
34
|
|
|
58
35
|
var ENVIRONMENT = new i0.InjectionToken('ENV');
|
|
59
36
|
var Environment = /** @class */ (function () {
|
|
@@ -1278,14 +1255,14 @@
|
|
|
1278
1255
|
};
|
|
1279
1256
|
return MatAutocompleteConfigHolder;
|
|
1280
1257
|
}());
|
|
1281
|
-
var noop
|
|
1282
|
-
var ɵ0
|
|
1258
|
+
var noop = function (_) { };
|
|
1259
|
+
var ɵ0 = noop;
|
|
1283
1260
|
var MatAutocompleteField = /** @class */ (function () {
|
|
1284
1261
|
function MatAutocompleteField(cd, formGroupDir) {
|
|
1285
1262
|
this.cd = cd;
|
|
1286
1263
|
this.formGroupDir = formGroupDir;
|
|
1287
|
-
this._onChangeCallback = noop
|
|
1288
|
-
this._onTouchedCallback = noop
|
|
1264
|
+
this._onChangeCallback = noop;
|
|
1265
|
+
this._onTouchedCallback = noop;
|
|
1289
1266
|
this.logPrefix = '[mat-autocomplete] ';
|
|
1290
1267
|
this.formControlName = null;
|
|
1291
1268
|
this.required = false;
|
|
@@ -1995,7 +1972,7 @@
|
|
|
1995
1972
|
{ type: i0.Component, args: [{
|
|
1996
1973
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
1997
1974
|
selector: 'mat-autocomplete-field',
|
|
1998
|
-
template: "<ion-grid class=\"ion-no-padding\">\n <ion-row>\n <ion-col class=\"ion-no-padding\">\n <!-- readonly -->\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 <input matInput hidden type=\"text\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\" readonly>\n <ion-text>{{displayWith(value)}}</ion-text>\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)=\"keydownEscape.emit($event)\"\n (keyup.enter)=\"keyupEnter.emit($event)\"\n [compareWith]=\"equals\"\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)=\"clicked.emit($event)\"\n (focus)=\"filterInputTextFocusEvent($event)\"\n (blur)=\"filterInputTextBlurEvent($event)\"\n (keydown.escape)=\"keydownEscape.emit($event)\"\n (keyup.enter)=\"keyupEnter.emit($event)\"\n (keyup.arrowdown)=\"!autocomplete.showPanel && dropButtonClick.emit($event)\">\n\n <!-- autocomplete -->\n <mat-autocomplete #autocomplete=\"matAutocomplete\"\n autoActiveFirstOption\n [displayWith]=\"displayWith\"\n [class]=\"classList\"\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><i>{{noResultMessage | translate}}</i></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</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)=\"dropButtonClick.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",
|
|
1975
|
+
template: "<ion-grid class=\"ion-no-padding\">\n <ion-row>\n <ion-col class=\"ion-no-padding\">\n <!-- readonly -->\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 <input matInput hidden type=\"text\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\" readonly>\n <ion-text>{{displayWith(value)}}</ion-text>\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)=\"keydownEscape.emit($event)\"\n (keyup.enter)=\"keyupEnter.emit($event)\"\n [compareWith]=\"equals\"\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\" [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\n <ion-row class=\"mat-autocomplete-footer ion-no-padding\">\n <ion-col>\n <ion-text *ngIf=\"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 </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)=\"clicked.emit($event)\"\n (focus)=\"filterInputTextFocusEvent($event)\"\n (blur)=\"filterInputTextBlurEvent($event)\"\n (keydown.escape)=\"keydownEscape.emit($event)\"\n (keyup.enter)=\"keyupEnter.emit($event)\"\n (keyup.arrowdown)=\"!autocomplete.showPanel && dropButtonClick.emit($event)\">\n\n <!-- autocomplete -->\n <mat-autocomplete #autocomplete=\"matAutocomplete\"\n autoActiveFirstOption\n [displayWith]=\"displayWith\"\n [class]=\"classList\"\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\" [size]=\"displayColumnSizes[i]\">\n <ion-label [innerHTML]=\"displayColumnNames[i] | translate\"></ion-label>\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><i>{{noResultMessage | translate}}</i></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\n <ion-row class=\"mat-autocomplete-footer ion-no-padding\">\n <ion-col>\n <ion-text *ngIf=\"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 </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</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)=\"dropButtonClick.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",
|
|
1999
1976
|
providers: [{
|
|
2000
1977
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
2001
1978
|
multi: true,
|
|
@@ -2078,7 +2055,7 @@
|
|
|
2078
2055
|
};
|
|
2079
2056
|
return DateFormatPipe;
|
|
2080
2057
|
}());
|
|
2081
|
-
DateFormatPipe.ɵprov =
|
|
2058
|
+
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" });
|
|
2082
2059
|
DateFormatPipe.decorators = [
|
|
2083
2060
|
{ type: i0.Pipe, args: [{
|
|
2084
2061
|
name: 'dateFormat'
|
|
@@ -2090,7 +2067,7 @@
|
|
|
2090
2067
|
{ type: i1$2.TranslateService }
|
|
2091
2068
|
]; };
|
|
2092
2069
|
|
|
2093
|
-
var moment
|
|
2070
|
+
var moment = momentImported__namespace;
|
|
2094
2071
|
var DateDiffDurationPipe = /** @class */ (function () {
|
|
2095
2072
|
function DateDiffDurationPipe(dateAdapter, translate) {
|
|
2096
2073
|
var _this = this;
|
|
@@ -2107,10 +2084,10 @@
|
|
|
2107
2084
|
return this.format(startDate, endDate);
|
|
2108
2085
|
};
|
|
2109
2086
|
DateDiffDurationPipe.prototype.format = function (startDate, endDate) {
|
|
2110
|
-
var duration = moment
|
|
2087
|
+
var duration = moment.duration(endDate.diff(startDate));
|
|
2111
2088
|
if (duration.asMinutes() < 0)
|
|
2112
2089
|
return '';
|
|
2113
|
-
var timeDuration = moment
|
|
2090
|
+
var timeDuration = moment(0)
|
|
2114
2091
|
.hour(duration.hours())
|
|
2115
2092
|
.minute(duration.minutes());
|
|
2116
2093
|
var days = Math.floor(duration.asDays());
|
|
@@ -2118,7 +2095,7 @@
|
|
|
2118
2095
|
};
|
|
2119
2096
|
return DateDiffDurationPipe;
|
|
2120
2097
|
}());
|
|
2121
|
-
DateDiffDurationPipe.ɵprov =
|
|
2098
|
+
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" });
|
|
2122
2099
|
DateDiffDurationPipe.decorators = [
|
|
2123
2100
|
{ type: i0.Pipe, args: [{
|
|
2124
2101
|
name: 'dateDiffDuration'
|
|
@@ -2140,7 +2117,7 @@
|
|
|
2140
2117
|
};
|
|
2141
2118
|
return DateFromNowPipe;
|
|
2142
2119
|
}());
|
|
2143
|
-
DateFromNowPipe.ɵprov =
|
|
2120
|
+
DateFromNowPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0.ɵɵinject(i1$1.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
|
|
2144
2121
|
DateFromNowPipe.decorators = [
|
|
2145
2122
|
{ type: i0.Pipe, args: [{
|
|
2146
2123
|
name: 'dateFromNow'
|
|
@@ -2209,7 +2186,7 @@
|
|
|
2209
2186
|
value *= -1;
|
|
2210
2187
|
}
|
|
2211
2188
|
}
|
|
2212
|
-
var degrees = roundFloat
|
|
2189
|
+
var degrees = roundFloat(value, opts.maxDecimals).toString();
|
|
2213
2190
|
// Add sign
|
|
2214
2191
|
var sign = negative ? '-' : '+';
|
|
2215
2192
|
if (opts.placeholderChar) {
|
|
@@ -2260,7 +2237,7 @@
|
|
|
2260
2237
|
}
|
|
2261
2238
|
var degrees = Math.trunc(value);
|
|
2262
2239
|
var minutes = Math.trunc((value - degrees) * 60);
|
|
2263
|
-
var seconds = roundFloat
|
|
2240
|
+
var seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
|
|
2264
2241
|
while (seconds >= 60) {
|
|
2265
2242
|
seconds -= 60;
|
|
2266
2243
|
minutes += 1;
|
|
@@ -2328,7 +2305,7 @@
|
|
|
2328
2305
|
}
|
|
2329
2306
|
}
|
|
2330
2307
|
var degrees = Math.trunc(value);
|
|
2331
|
-
var minutes = roundFloat
|
|
2308
|
+
var minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
|
|
2332
2309
|
while (minutes >= 60) {
|
|
2333
2310
|
minutes -= 60;
|
|
2334
2311
|
degrees += 1;
|
|
@@ -2379,15 +2356,15 @@
|
|
|
2379
2356
|
return NaN;
|
|
2380
2357
|
}
|
|
2381
2358
|
if (pattern === 'DD')
|
|
2382
|
-
return roundFloat
|
|
2359
|
+
return roundFloat(degrees, maxDecimals);
|
|
2383
2360
|
var minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
|
|
2384
2361
|
var seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
|
|
2385
2362
|
var direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
|
|
2386
2363
|
var sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
|
|
2387
2364
|
degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
|
|
2388
|
-
return roundFloat
|
|
2365
|
+
return roundFloat(degrees, maxDecimals);
|
|
2389
2366
|
}
|
|
2390
|
-
function roundFloat
|
|
2367
|
+
function roundFloat(input, maxDecimals) {
|
|
2391
2368
|
if (maxDecimals > 0) {
|
|
2392
2369
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
2393
2370
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -2410,7 +2387,7 @@
|
|
|
2410
2387
|
};
|
|
2411
2388
|
return LatLongFormatPipe;
|
|
2412
2389
|
}());
|
|
2413
|
-
LatLongFormatPipe.ɵprov =
|
|
2390
|
+
LatLongFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
|
|
2414
2391
|
LatLongFormatPipe.decorators = [
|
|
2415
2392
|
{ type: i0.Pipe, args: [{
|
|
2416
2393
|
name: 'latLongFormat'
|
|
@@ -2423,7 +2400,7 @@
|
|
|
2423
2400
|
}
|
|
2424
2401
|
return LatitudeFormatPipe;
|
|
2425
2402
|
}());
|
|
2426
|
-
LatitudeFormatPipe.ɵprov =
|
|
2403
|
+
LatitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
|
|
2427
2404
|
LatitudeFormatPipe.decorators = [
|
|
2428
2405
|
{ type: i0.Pipe, args: [{
|
|
2429
2406
|
name: 'latitudeFormat'
|
|
@@ -2436,7 +2413,7 @@
|
|
|
2436
2413
|
}
|
|
2437
2414
|
return LongitudeFormatPipe;
|
|
2438
2415
|
}());
|
|
2439
|
-
LongitudeFormatPipe.ɵprov =
|
|
2416
|
+
LongitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
|
|
2440
2417
|
LongitudeFormatPipe.decorators = [
|
|
2441
2418
|
{ type: i0.Pipe, args: [{
|
|
2442
2419
|
name: 'longitudeFormat'
|
|
@@ -2459,7 +2436,7 @@
|
|
|
2459
2436
|
};
|
|
2460
2437
|
return NumberFormatPipe;
|
|
2461
2438
|
}());
|
|
2462
|
-
NumberFormatPipe.ɵprov =
|
|
2439
|
+
NumberFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
|
|
2463
2440
|
NumberFormatPipe.decorators = [
|
|
2464
2441
|
{ type: i0.Pipe, args: [{
|
|
2465
2442
|
name: 'numberFormat'
|
|
@@ -2502,7 +2479,7 @@
|
|
|
2502
2479
|
};
|
|
2503
2480
|
return HighlightPipe;
|
|
2504
2481
|
}());
|
|
2505
|
-
HighlightPipe.ɵprov =
|
|
2482
|
+
HighlightPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
|
|
2506
2483
|
HighlightPipe.decorators = [
|
|
2507
2484
|
{ type: i0.Pipe, args: [{
|
|
2508
2485
|
name: 'highlight'
|
|
@@ -2570,7 +2547,7 @@
|
|
|
2570
2547
|
{ type: i0.Pipe, args: [{ name: 'fileSize' },] }
|
|
2571
2548
|
];
|
|
2572
2549
|
|
|
2573
|
-
var moment$
|
|
2550
|
+
var moment$1 = momentImported__namespace;
|
|
2574
2551
|
var DATE_UNIX_TIMESTAMP = 'X';
|
|
2575
2552
|
var DATE_UNIX_MS_TIMESTAMP = 'x';
|
|
2576
2553
|
var DateUtils = /** @class */ (function () {
|
|
@@ -2613,32 +2590,32 @@
|
|
|
2613
2590
|
if (!value || momentImported.isMoment(value))
|
|
2614
2591
|
return value;
|
|
2615
2592
|
// Parse the input value, as a ISO date time
|
|
2616
|
-
var date = moment$
|
|
2593
|
+
var date = moment$1(value, DATE_ISO_PATTERN);
|
|
2617
2594
|
if (date.isValid())
|
|
2618
2595
|
return date;
|
|
2619
2596
|
// Not valid: trying to convert from unix timestamp
|
|
2620
2597
|
if (typeof value === 'string') {
|
|
2621
2598
|
console.warn('Wrong date format - Trying to convert from local time: ' + value);
|
|
2622
2599
|
if (value.length === 10) {
|
|
2623
|
-
return moment$
|
|
2600
|
+
return moment$1(value, DATE_UNIX_TIMESTAMP);
|
|
2624
2601
|
}
|
|
2625
2602
|
else if (value.length === 13) {
|
|
2626
|
-
return moment$
|
|
2603
|
+
return moment$1(value, DATE_UNIX_MS_TIMESTAMP);
|
|
2627
2604
|
}
|
|
2628
2605
|
}
|
|
2629
2606
|
console.warn('Unable to parse date: ' + value);
|
|
2630
2607
|
return undefined;
|
|
2631
2608
|
}
|
|
2632
2609
|
function fromUnixTimestamp(timeInSec) {
|
|
2633
|
-
return moment$
|
|
2610
|
+
return moment$1(timeInSec, DATE_UNIX_TIMESTAMP);
|
|
2634
2611
|
}
|
|
2635
2612
|
function fromUnixMsTimestamp(timeInMs) {
|
|
2636
|
-
return moment$
|
|
2613
|
+
return moment$1(timeInMs, DATE_UNIX_MS_TIMESTAMP);
|
|
2637
2614
|
}
|
|
2638
2615
|
function toDuration(value, unit) {
|
|
2639
2616
|
if (!value)
|
|
2640
2617
|
return undefined;
|
|
2641
|
-
var duration = moment$
|
|
2618
|
+
var duration = moment$1.duration(value, unit);
|
|
2642
2619
|
// fix 990+ ms
|
|
2643
2620
|
if (duration.milliseconds() >= 990) {
|
|
2644
2621
|
duration.add(1000 - duration.milliseconds(), 'ms');
|
|
@@ -2668,7 +2645,7 @@
|
|
|
2668
2645
|
};
|
|
2669
2646
|
return DurationPipe;
|
|
2670
2647
|
}());
|
|
2671
|
-
DurationPipe.ɵprov =
|
|
2648
|
+
DurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0.ɵɵinject(i1$2.TranslateService)); }, token: DurationPipe, providedIn: "root" });
|
|
2672
2649
|
DurationPipe.decorators = [
|
|
2673
2650
|
{ type: i0.Pipe, args: [{
|
|
2674
2651
|
name: 'duration'
|
|
@@ -2692,7 +2669,7 @@
|
|
|
2692
2669
|
};
|
|
2693
2670
|
return MathAbsPipe;
|
|
2694
2671
|
}());
|
|
2695
|
-
MathAbsPipe.ɵprov =
|
|
2672
|
+
MathAbsPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
|
|
2696
2673
|
MathAbsPipe.decorators = [
|
|
2697
2674
|
{ type: i0.Pipe, args: [{
|
|
2698
2675
|
name: 'mathAbs'
|
|
@@ -2707,7 +2684,7 @@
|
|
|
2707
2684
|
};
|
|
2708
2685
|
return EvenPipe;
|
|
2709
2686
|
}());
|
|
2710
|
-
EvenPipe.ɵprov =
|
|
2687
|
+
EvenPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
|
|
2711
2688
|
EvenPipe.decorators = [
|
|
2712
2689
|
{ type: i0.Pipe, args: [{
|
|
2713
2690
|
name: 'even'
|
|
@@ -2722,7 +2699,7 @@
|
|
|
2722
2699
|
};
|
|
2723
2700
|
return OddPipe;
|
|
2724
2701
|
}());
|
|
2725
|
-
OddPipe.ɵprov =
|
|
2702
|
+
OddPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
|
|
2726
2703
|
OddPipe.decorators = [
|
|
2727
2704
|
{ type: i0.Pipe, args: [{
|
|
2728
2705
|
name: 'odd'
|
|
@@ -2854,7 +2831,7 @@
|
|
|
2854
2831
|
};
|
|
2855
2832
|
return MapGetPipe;
|
|
2856
2833
|
}());
|
|
2857
|
-
MapGetPipe.ɵprov =
|
|
2834
|
+
MapGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
|
|
2858
2835
|
MapGetPipe.decorators = [
|
|
2859
2836
|
{ type: i0.Pipe, args: [{
|
|
2860
2837
|
name: 'mapGet'
|
|
@@ -2871,7 +2848,7 @@
|
|
|
2871
2848
|
};
|
|
2872
2849
|
return MapKeysPipe;
|
|
2873
2850
|
}());
|
|
2874
|
-
MapKeysPipe.ɵprov =
|
|
2851
|
+
MapKeysPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
|
|
2875
2852
|
MapKeysPipe.decorators = [
|
|
2876
2853
|
{ type: i0.Pipe, args: [{
|
|
2877
2854
|
name: 'mapKeys'
|
|
@@ -2888,7 +2865,7 @@
|
|
|
2888
2865
|
};
|
|
2889
2866
|
return MapValuesPipe;
|
|
2890
2867
|
}());
|
|
2891
|
-
MapValuesPipe.ɵprov =
|
|
2868
|
+
MapValuesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
|
|
2892
2869
|
MapValuesPipe.decorators = [
|
|
2893
2870
|
{ type: i0.Pipe, args: [{
|
|
2894
2871
|
name: 'mapValues'
|
|
@@ -2904,7 +2881,7 @@
|
|
|
2904
2881
|
};
|
|
2905
2882
|
return IsNotNilOrBlankPipe;
|
|
2906
2883
|
}());
|
|
2907
|
-
IsNotNilOrBlankPipe.ɵprov =
|
|
2884
|
+
IsNotNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
|
|
2908
2885
|
IsNotNilOrBlankPipe.decorators = [
|
|
2909
2886
|
{ type: i0.Pipe, args: [{
|
|
2910
2887
|
name: 'isNotNilOrBlank'
|
|
@@ -2919,7 +2896,7 @@
|
|
|
2919
2896
|
};
|
|
2920
2897
|
return IsNilOrBlankPipe;
|
|
2921
2898
|
}());
|
|
2922
|
-
IsNilOrBlankPipe.ɵprov =
|
|
2899
|
+
IsNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
|
|
2923
2900
|
IsNilOrBlankPipe.decorators = [
|
|
2924
2901
|
{ type: i0.Pipe, args: [{
|
|
2925
2902
|
name: 'isNilOrBlank'
|
|
@@ -2934,7 +2911,7 @@
|
|
|
2934
2911
|
};
|
|
2935
2912
|
return ToStringPipe;
|
|
2936
2913
|
}());
|
|
2937
|
-
ToStringPipe.ɵprov =
|
|
2914
|
+
ToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
|
|
2938
2915
|
ToStringPipe.decorators = [
|
|
2939
2916
|
{ type: i0.Pipe, args: [{
|
|
2940
2917
|
name: 'toString'
|
|
@@ -2949,7 +2926,7 @@
|
|
|
2949
2926
|
};
|
|
2950
2927
|
return StrLengthPipe;
|
|
2951
2928
|
}());
|
|
2952
|
-
StrLengthPipe.ɵprov =
|
|
2929
|
+
StrLengthPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
|
|
2953
2930
|
StrLengthPipe.decorators = [
|
|
2954
2931
|
{ type: i0.Pipe, args: [{
|
|
2955
2932
|
name: 'strLength'
|
|
@@ -3040,7 +3017,7 @@
|
|
|
3040
3017
|
};
|
|
3041
3018
|
return TranslateContextService;
|
|
3042
3019
|
}());
|
|
3043
|
-
TranslateContextService.ɵprov =
|
|
3020
|
+
TranslateContextService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0.ɵɵinject(i1$2.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
|
|
3044
3021
|
TranslateContextService.decorators = [
|
|
3045
3022
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
3046
3023
|
];
|
|
@@ -3097,7 +3074,7 @@
|
|
|
3097
3074
|
};
|
|
3098
3075
|
return PropertyGetPipe;
|
|
3099
3076
|
}());
|
|
3100
|
-
PropertyGetPipe.ɵprov =
|
|
3077
|
+
PropertyGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
|
|
3101
3078
|
PropertyGetPipe.decorators = [
|
|
3102
3079
|
{ type: i0.Pipe, args: [{
|
|
3103
3080
|
name: 'propertyGet'
|
|
@@ -3123,7 +3100,7 @@
|
|
|
3123
3100
|
ngInit: [{ type: i0.Output }]
|
|
3124
3101
|
};
|
|
3125
3102
|
|
|
3126
|
-
var moment$
|
|
3103
|
+
var moment$2 = momentImported__namespace;
|
|
3127
3104
|
// @dynamic
|
|
3128
3105
|
var SharedValidators = /** @class */ (function () {
|
|
3129
3106
|
function SharedValidators() {
|
|
@@ -3142,7 +3119,7 @@
|
|
|
3142
3119
|
};
|
|
3143
3120
|
SharedValidators.validDate = function (control) {
|
|
3144
3121
|
var value = control.value;
|
|
3145
|
-
var date = !value || moment$
|
|
3122
|
+
var date = !value || moment$2.isMoment(value) ? value : moment$2(control.value, DATE_ISO_PATTERN);
|
|
3146
3123
|
if (date && (!date.isValid() || date.year() < 1970)) {
|
|
3147
3124
|
return { validDate: true };
|
|
3148
3125
|
}
|
|
@@ -4309,7 +4286,7 @@
|
|
|
4309
4286
|
};
|
|
4310
4287
|
return FormErrorTranslator;
|
|
4311
4288
|
}());
|
|
4312
|
-
FormErrorTranslator.ɵprov =
|
|
4289
|
+
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" });
|
|
4313
4290
|
FormErrorTranslator.decorators = [
|
|
4314
4291
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
4315
4292
|
];
|
|
@@ -4500,7 +4477,7 @@
|
|
|
4500
4477
|
}
|
|
4501
4478
|
return false;
|
|
4502
4479
|
};
|
|
4503
|
-
var ɵ0$
|
|
4480
|
+
var ɵ0$1 = isIpad;
|
|
4504
4481
|
var isIOS = function (win) { return testUserAgent(win, /iPhone|iPod/i) || isIpad(win); };
|
|
4505
4482
|
var isAndroid = function (win) { return testUserAgent(win, /android|sink/i); };
|
|
4506
4483
|
var isCordova = function (win) { return !!(win['cordova'] || win['phonegap'] || win['PhoneGap']); };
|
|
@@ -4749,9 +4726,9 @@
|
|
|
4749
4726
|
var hour = parseInt(durationParts[0] || '0');
|
|
4750
4727
|
var minute = parseInt(durationParts[1] || '0');
|
|
4751
4728
|
var value = hour + (minute + 0.5) / 60;
|
|
4752
|
-
return roundFloat(value, maxDecimals);
|
|
4729
|
+
return roundFloat$1(value, maxDecimals);
|
|
4753
4730
|
}
|
|
4754
|
-
function roundFloat(input, maxDecimals) {
|
|
4731
|
+
function roundFloat$1(input, maxDecimals) {
|
|
4755
4732
|
if (maxDecimals > 0) {
|
|
4756
4733
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
4757
4734
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -4775,9 +4752,9 @@
|
|
|
4775
4752
|
DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
|
|
4776
4753
|
}
|
|
4777
4754
|
};
|
|
4778
|
-
var noop$
|
|
4755
|
+
var noop$1 = function () {
|
|
4779
4756
|
};
|
|
4780
|
-
var ɵ0$
|
|
4757
|
+
var ɵ0$2 = noop$1;
|
|
4781
4758
|
var MatLatLongField = /** @class */ (function () {
|
|
4782
4759
|
function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
|
|
4783
4760
|
this.platform = platform;
|
|
@@ -4785,8 +4762,8 @@
|
|
|
4785
4762
|
this.formBuilder = formBuilder;
|
|
4786
4763
|
this.cd = cd;
|
|
4787
4764
|
this.formGroupDir = formGroupDir;
|
|
4788
|
-
this._onChangeCallback = noop$
|
|
4789
|
-
this._onTouchedCallback = noop$
|
|
4765
|
+
this._onChangeCallback = noop$1;
|
|
4766
|
+
this._onTouchedCallback = noop$1;
|
|
4790
4767
|
this._subscription = new rxjs.Subscription();
|
|
4791
4768
|
this.disabling = false;
|
|
4792
4769
|
this.writing = false;
|
|
@@ -5138,14 +5115,14 @@
|
|
|
5138
5115
|
},] }
|
|
5139
5116
|
];
|
|
5140
5117
|
|
|
5141
|
-
var DEFAULT_VALUE_ACCESSOR
|
|
5118
|
+
var DEFAULT_VALUE_ACCESSOR = {
|
|
5142
5119
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5143
5120
|
useExisting: i0.forwardRef(function () { return MatDate; }),
|
|
5144
5121
|
multi: true
|
|
5145
5122
|
};
|
|
5146
|
-
var DAY_MASK
|
|
5147
|
-
var noop$
|
|
5148
|
-
var ɵ0$
|
|
5123
|
+
var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5124
|
+
var noop$2 = function () { };
|
|
5125
|
+
var ɵ0$3 = noop$2;
|
|
5149
5126
|
var MatDate = /** @class */ (function () {
|
|
5150
5127
|
function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5151
5128
|
this.dateAdapter = dateAdapter;
|
|
@@ -5154,12 +5131,12 @@
|
|
|
5154
5131
|
this.cd = cd;
|
|
5155
5132
|
this.keyboard = keyboard;
|
|
5156
5133
|
this.formGroupDir = formGroupDir;
|
|
5157
|
-
this._onChangeCallback = noop$
|
|
5158
|
-
this._onTouchedCallback = noop$
|
|
5134
|
+
this._onChangeCallback = noop$2;
|
|
5135
|
+
this._onTouchedCallback = noop$2;
|
|
5159
5136
|
this._subscription = new rxjs.Subscription();
|
|
5160
5137
|
this.writing = true;
|
|
5161
5138
|
this.disabling = false;
|
|
5162
|
-
this.dayMask = DAY_MASK
|
|
5139
|
+
this.dayMask = DAY_MASK;
|
|
5163
5140
|
this.disabled = false;
|
|
5164
5141
|
this.floatLabel = 'auto';
|
|
5165
5142
|
this.readonly = false;
|
|
@@ -5428,7 +5405,7 @@
|
|
|
5428
5405
|
selector: 'mat-date-field',
|
|
5429
5406
|
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",
|
|
5430
5407
|
providers: [
|
|
5431
|
-
DEFAULT_VALUE_ACCESSOR
|
|
5408
|
+
DEFAULT_VALUE_ACCESSOR,
|
|
5432
5409
|
],
|
|
5433
5410
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5434
5411
|
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%}"]
|
|
@@ -5461,17 +5438,17 @@
|
|
|
5461
5438
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
5462
5439
|
};
|
|
5463
5440
|
|
|
5464
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5441
|
+
var DEFAULT_VALUE_ACCESSOR$1 = {
|
|
5465
5442
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5466
5443
|
useExisting: i0.forwardRef(function () { return MatDateTime; }),
|
|
5467
5444
|
multi: true
|
|
5468
5445
|
};
|
|
5469
5446
|
var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5470
5447
|
var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
|
|
5471
|
-
var HOUR_MASK
|
|
5472
|
-
var noop$
|
|
5448
|
+
var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
5449
|
+
var noop$3 = function () {
|
|
5473
5450
|
};
|
|
5474
|
-
var ɵ0$
|
|
5451
|
+
var ɵ0$4 = noop$3;
|
|
5475
5452
|
var MatDateTime = /** @class */ (function () {
|
|
5476
5453
|
function MatDateTime(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5477
5454
|
this.platform = platform;
|
|
@@ -5481,14 +5458,14 @@
|
|
|
5481
5458
|
this.cd = cd;
|
|
5482
5459
|
this.keyboard = keyboard;
|
|
5483
5460
|
this.formGroupDir = formGroupDir;
|
|
5484
|
-
this._onChangeCallback = noop$
|
|
5485
|
-
this._onTouchedCallback = noop$
|
|
5461
|
+
this._onChangeCallback = noop$3;
|
|
5462
|
+
this._onTouchedCallback = noop$3;
|
|
5486
5463
|
this._subscription = new rxjs.Subscription();
|
|
5487
5464
|
this.writing = true;
|
|
5488
5465
|
this.disabling = false;
|
|
5489
5466
|
this._readonly = false;
|
|
5490
5467
|
this.dayMask = DAY_MASK$1;
|
|
5491
|
-
this.hourMask = HOUR_MASK
|
|
5468
|
+
this.hourMask = HOUR_MASK;
|
|
5492
5469
|
this.floatLabel = 'auto';
|
|
5493
5470
|
this.compact = false;
|
|
5494
5471
|
this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
|
|
@@ -5845,7 +5822,7 @@
|
|
|
5845
5822
|
selector: 'mat-date-time-field',
|
|
5846
5823
|
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",
|
|
5847
5824
|
providers: [
|
|
5848
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5825
|
+
DEFAULT_VALUE_ACCESSOR$1,
|
|
5849
5826
|
],
|
|
5850
5827
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5851
5828
|
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%}"]
|
|
@@ -5879,15 +5856,15 @@
|
|
|
5879
5856
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
5880
5857
|
};
|
|
5881
5858
|
|
|
5882
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5859
|
+
var DEFAULT_VALUE_ACCESSOR$2 = {
|
|
5883
5860
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5884
5861
|
useExisting: i0.forwardRef(function () { return MatDateShort; }),
|
|
5885
5862
|
multi: true
|
|
5886
5863
|
};
|
|
5887
|
-
var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
|
|
5864
|
+
var DAY_MASK$2 = [/\d/, /\d/, /\d/, /\d/];
|
|
5888
5865
|
var noop$4 = function () {
|
|
5889
5866
|
};
|
|
5890
|
-
var ɵ0$
|
|
5867
|
+
var ɵ0$5 = noop$4;
|
|
5891
5868
|
var MatDateShort = /** @class */ (function () {
|
|
5892
5869
|
function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5893
5870
|
this.dateAdapter = dateAdapter;
|
|
@@ -5900,7 +5877,7 @@
|
|
|
5900
5877
|
this._onTouchedCallback = noop$4;
|
|
5901
5878
|
this.writing = true;
|
|
5902
5879
|
this.disabling = false;
|
|
5903
|
-
this.dayMask = DAY_MASK;
|
|
5880
|
+
this.dayMask = DAY_MASK$2;
|
|
5904
5881
|
this.disabled = false;
|
|
5905
5882
|
this.floatLabel = 'auto';
|
|
5906
5883
|
this.readonly = false;
|
|
@@ -6177,7 +6154,7 @@
|
|
|
6177
6154
|
selector: 'mat-date-short-field',
|
|
6178
6155
|
template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly else writable\">\n <input matInput hidden type=\"text\" readonly=\"true\" [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix><ng-content select=\"[matPrefix]\"></ng-content></div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dayControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_YEAR_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker1)\"\n (keyup.escape)=\"preventEvent($event)\"\n (click)=\"matInput.select()\"\n [required]=\"required\"\n [tabindex]=\"tabindex\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dayControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker1)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n\n <!-- Hide the final control -->\n <input matInput type=\"text\"\n [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker1\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n (click)=\"openDatePicker($event, datePicker1)\"\n [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"writeValue(null)\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('validDate')\" translate>ERROR.FIELD_NOT_VALID_DATE</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateIsAfter')\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateRange')\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMaxDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMinDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngIf=\"formControl.hasError('msg')\">{{formControl.errors.msg}}</mat-error>\n <ng-content select=\"mat-error\"></ng-content>\n </mat-form-field>\n\n <mat-datepicker #datePicker1\n startView=\"multi-year\"\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n (yearSelected)=\"closeDatePicker($event, datePicker1)\"\n [startAt]=\"startDate\"></mat-datepicker>\n\n <ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n </ng-template>\n\n <ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n </ng-template>\n\n</ng-template>\n",
|
|
6179
6156
|
providers: [
|
|
6180
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6157
|
+
DEFAULT_VALUE_ACCESSOR$2,
|
|
6181
6158
|
],
|
|
6182
6159
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6183
6160
|
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%}"]
|
|
@@ -6248,16 +6225,16 @@
|
|
|
6248
6225
|
},] }
|
|
6249
6226
|
];
|
|
6250
6227
|
|
|
6251
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6228
|
+
var DEFAULT_VALUE_ACCESSOR$3 = {
|
|
6252
6229
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6253
6230
|
useExisting: i0.forwardRef(function () { return MatDuration; }),
|
|
6254
6231
|
multi: true
|
|
6255
6232
|
};
|
|
6256
6233
|
var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
|
|
6257
|
-
var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
6258
|
-
var noop$
|
|
6234
|
+
var HOUR_MASK$1 = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
6235
|
+
var noop$5 = function () {
|
|
6259
6236
|
};
|
|
6260
|
-
var ɵ0$6 = noop$
|
|
6237
|
+
var ɵ0$6 = noop$5;
|
|
6261
6238
|
var MatDuration = /** @class */ (function () {
|
|
6262
6239
|
function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
|
|
6263
6240
|
this.dateAdapter = dateAdapter;
|
|
@@ -6266,11 +6243,11 @@
|
|
|
6266
6243
|
this.cd = cd;
|
|
6267
6244
|
this.formGroupDir = formGroupDir;
|
|
6268
6245
|
this._subscription = new rxjs.Subscription();
|
|
6269
|
-
this._onChangeCallback = noop$
|
|
6270
|
-
this._onTouchedCallback = noop$
|
|
6246
|
+
this._onChangeCallback = noop$5;
|
|
6247
|
+
this._onTouchedCallback = noop$5;
|
|
6271
6248
|
this.writing = true;
|
|
6272
6249
|
this.disabling = false;
|
|
6273
|
-
this.hourMask = HOUR_MASK;
|
|
6250
|
+
this.hourMask = HOUR_MASK$1;
|
|
6274
6251
|
this.disabled = false;
|
|
6275
6252
|
this.floatLabel = 'auto';
|
|
6276
6253
|
this.readonly = false;
|
|
@@ -6463,7 +6440,7 @@
|
|
|
6463
6440
|
selector: 'mat-duration-field',
|
|
6464
6441
|
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",
|
|
6465
6442
|
providers: [
|
|
6466
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6443
|
+
DEFAULT_VALUE_ACCESSOR$3,
|
|
6467
6444
|
],
|
|
6468
6445
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6469
6446
|
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%}"]
|
|
@@ -6523,22 +6500,22 @@
|
|
|
6523
6500
|
},] }
|
|
6524
6501
|
];
|
|
6525
6502
|
|
|
6526
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6503
|
+
var DEFAULT_VALUE_ACCESSOR$4 = {
|
|
6527
6504
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6528
6505
|
useExisting: i0.forwardRef(function () { return MatBooleanField; }),
|
|
6529
6506
|
multi: true
|
|
6530
6507
|
};
|
|
6531
|
-
var noop$
|
|
6508
|
+
var noop$6 = function () {
|
|
6532
6509
|
};
|
|
6533
|
-
var ɵ0$
|
|
6510
|
+
var ɵ0$7 = noop$6;
|
|
6534
6511
|
var MatBooleanField = /** @class */ (function () {
|
|
6535
6512
|
function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
|
|
6536
6513
|
this.translate = translate;
|
|
6537
6514
|
this.formBuilder = formBuilder;
|
|
6538
6515
|
this.cd = cd;
|
|
6539
6516
|
this.formGroupDir = formGroupDir;
|
|
6540
|
-
this._onChangeCallback = noop$
|
|
6541
|
-
this._onTouchedCallback = noop$
|
|
6517
|
+
this._onChangeCallback = noop$6;
|
|
6518
|
+
this._onTouchedCallback = noop$6;
|
|
6542
6519
|
this._writing = false;
|
|
6543
6520
|
this.showRadio = false;
|
|
6544
6521
|
this.disabled = false;
|
|
@@ -6713,7 +6690,7 @@
|
|
|
6713
6690
|
selector: 'mat-boolean-field',
|
|
6714
6691
|
template: "<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled {{classList}}\">\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput hidden type=\"text\" readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{(formControl.value == null && 'COMMON.EMPTY_OPTION' || (formControl.value === true && yesLabel) || noLabel) | translate }}</ion-text>\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n</mat-form-field>\n\n<ng-template #writable>\n <ng-container [ngSwitch]=\"style\">\n\n <!-- Radio -->\n <mat-form-field *ngSwitchCase=\"'radio'\"\n [floatLabel]=\"showRadio && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-radio {{classList}}\">\n <mat-label *ngIf=\"placeholder && floatLabel!=='never'\">\n {{placeholder}}\n <span [hidden]=\"showRadio\">({{yesLabel|translate}}/{{'COMMON.NO'|translate}})</span>\n </mat-label>\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput #fakeInput type=\"text\" readonly=\"true\"\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <!-- radio button -->\n <mat-radio-group [hidden]=\"!showRadio\"\n [formControl]=\"formControl\"\n (change)=\"onRadioValueChanged($event)\">\n <mat-radio-button #yesButton [value]=\"true\">\n <span>{{yesLabel|translate}}</span>\n </mat-radio-button> \n <mat-radio-button #noButton [value]=\"false\">\n <span>{{noLabel|translate}}</span>\n </mat-radio-button>\n </mat-radio-group>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n </mat-form-field>\n\n <!-- Checkbox -->\n <mat-form-field *ngSwitchCase=\"'checkbox'\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-checkbox {{classList}}\">\n <mat-label *ngIf=\"placeholder && !showRadio\">\n {{placeholder}}\n </mat-label>\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput #matInput\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <ion-label> </ion-label>\n\n <!-- checkbox, when compact -->\n <mat-checkbox #checkboxButton\n [formControl]=\"formControl\"\n (change)=\"onCheckboxValueChanged($event)\"\n [indeterminate]=\"value===undefined\"\n [hidden]=\"!showRadio\"\n [tabindex]=\"tabindex\">\n </mat-checkbox>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n </mat-form-field>\n\n <!-- Buttons -->\n <mat-form-field *ngSwitchCase=\"'button'\"\n [floatLabel]=\"floatLabel === 'never' ? 'never' : 'always'\"\n class=\"mat-boolean-field mat-boolean-field-button {{classList}}\">\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput type=\"text\" hidden\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [required]=\"required\">\n <div class=\"mat-form-field-buttons\"\n [style.--buttons-col-count]=\"buttonsColCount\"\n *ngIf=\"!formControl.disabled; else disabledLabel\">\n <!-- yes -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex\"\n (click)=\"writeValue(true, $event)\"\n (keyup.enter)=\"writeValue(true, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === true) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && yesIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{yesLabel|translate}}\n </ion-button>\n\n <!-- No button -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex !== undefined ? (_tabindex + 1) : undefined\"\n (click)=\"writeValue(false, $event)\"\n (keyup.enter)=\"writeValue(false, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === false) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && noIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{noLabel|translate}}\n </ion-button>\n </div>\n <ng-template #disabledLabel>\n <ion-label><i translate>COMMON.EMPTY_OPTION</i></ion-label>\n </ng-template>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n\n </mat-form-field>\n </ng-container>\n\n</ng-template>\n\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n<ng-template #matSuffixTemplate>\n <ng-content select=\"[matSuffix]\"></ng-content>\n</ng-template>\n",
|
|
6715
6692
|
providers: [
|
|
6716
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6693
|
+
DEFAULT_VALUE_ACCESSOR$4
|
|
6717
6694
|
],
|
|
6718
6695
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6719
6696
|
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}"]
|
|
@@ -6800,7 +6777,6 @@
|
|
|
6800
6777
|
return MatNumpadEvent;
|
|
6801
6778
|
}(KeyboardEvent));
|
|
6802
6779
|
|
|
6803
|
-
exports.AnimationState = void 0;
|
|
6804
6780
|
(function (AnimationState) {
|
|
6805
6781
|
AnimationState["ENTER"] = "enter";
|
|
6806
6782
|
AnimationState["ENTER_INPUT"] = "enter-input";
|
|
@@ -6968,7 +6944,7 @@
|
|
|
6968
6944
|
};
|
|
6969
6945
|
return MatNumpadDomService;
|
|
6970
6946
|
}());
|
|
6971
|
-
MatNumpadDomService.ɵprov =
|
|
6947
|
+
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" });
|
|
6972
6948
|
MatNumpadDomService.decorators = [
|
|
6973
6949
|
{ type: i0.Injectable, args: [{
|
|
6974
6950
|
providedIn: 'root'
|
|
@@ -7374,7 +7350,7 @@
|
|
|
7374
7350
|
},] }
|
|
7375
7351
|
];
|
|
7376
7352
|
|
|
7377
|
-
var DEFAULT_VALUE_ACCESSOR = {
|
|
7353
|
+
var DEFAULT_VALUE_ACCESSOR$5 = {
|
|
7378
7354
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
7379
7355
|
useExisting: i0.forwardRef(function () { return MatSwipeField; }),
|
|
7380
7356
|
multi: true
|
|
@@ -7694,7 +7670,7 @@
|
|
|
7694
7670
|
{ type: i0.Component, args: [{
|
|
7695
7671
|
selector: 'mat-swipe-field',
|
|
7696
7672
|
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",
|
|
7697
|
-
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
7673
|
+
providers: [DEFAULT_VALUE_ACCESSOR$5],
|
|
7698
7674
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7699
7675
|
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}"]
|
|
7700
7676
|
},] }
|
|
@@ -7755,14 +7731,14 @@
|
|
|
7755
7731
|
},] }
|
|
7756
7732
|
];
|
|
7757
7733
|
|
|
7758
|
-
var noop$
|
|
7759
|
-
var ɵ0$
|
|
7734
|
+
var noop$7 = function () { };
|
|
7735
|
+
var ɵ0$8 = noop$7;
|
|
7760
7736
|
var MatChipsField = /** @class */ (function () {
|
|
7761
7737
|
function MatChipsField(cd, formGroupDir) {
|
|
7762
7738
|
this.cd = cd;
|
|
7763
7739
|
this.formGroupDir = formGroupDir;
|
|
7764
|
-
this._onChangeCallback = noop$
|
|
7765
|
-
this._onTouchedCallback = noop$
|
|
7740
|
+
this._onChangeCallback = noop$7;
|
|
7741
|
+
this._onTouchedCallback = noop$7;
|
|
7766
7742
|
this.logPrefix = '[mat-chips] ';
|
|
7767
7743
|
this.formControlName = null;
|
|
7768
7744
|
this.required = false;
|
|
@@ -8730,7 +8706,7 @@
|
|
|
8730
8706
|
};
|
|
8731
8707
|
return ProgressBarService;
|
|
8732
8708
|
}());
|
|
8733
|
-
ProgressBarService.ɵprov =
|
|
8709
|
+
ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
|
|
8734
8710
|
ProgressBarService.decorators = [
|
|
8735
8711
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8736
8712
|
];
|
|
@@ -8777,7 +8753,7 @@
|
|
|
8777
8753
|
};
|
|
8778
8754
|
return AppGestureConfig;
|
|
8779
8755
|
}(i1$6.HammerGestureConfig));
|
|
8780
|
-
AppGestureConfig.ɵprov =
|
|
8756
|
+
AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
|
|
8781
8757
|
AppGestureConfig.decorators = [
|
|
8782
8758
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8783
8759
|
];
|
|
@@ -9044,7 +9020,7 @@
|
|
|
9044
9020
|
};
|
|
9045
9021
|
return MatPaginatorI18n;
|
|
9046
9022
|
}(paginator.MatPaginatorIntl));
|
|
9047
|
-
MatPaginatorI18n.ɵprov =
|
|
9023
|
+
MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
|
|
9048
9024
|
MatPaginatorI18n.decorators = [
|
|
9049
9025
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9050
9026
|
];
|
|
@@ -9136,17 +9112,17 @@
|
|
|
9136
9112
|
return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
|
|
9137
9113
|
}
|
|
9138
9114
|
|
|
9139
|
-
var noop = function () {
|
|
9115
|
+
var noop$8 = function () {
|
|
9140
9116
|
};
|
|
9141
|
-
var ɵ0$
|
|
9117
|
+
var ɵ0$9 = noop$8;
|
|
9142
9118
|
var AppFormField = /** @class */ (function () {
|
|
9143
9119
|
function AppFormField(translate, cd, injector, formGroupDir) {
|
|
9144
9120
|
this.translate = translate;
|
|
9145
9121
|
this.cd = cd;
|
|
9146
9122
|
this.injector = injector;
|
|
9147
9123
|
this.formGroupDir = formGroupDir;
|
|
9148
|
-
this._onChangeCallback = noop;
|
|
9149
|
-
this._onTouchedCallback = noop;
|
|
9124
|
+
this._onChangeCallback = noop$8;
|
|
9125
|
+
this._onTouchedCallback = noop$8;
|
|
9150
9126
|
this.readonly = false;
|
|
9151
9127
|
this.compact = false;
|
|
9152
9128
|
this.floatLabel = 'auto';
|
|
@@ -9704,7 +9680,7 @@
|
|
|
9704
9680
|
};
|
|
9705
9681
|
return AudioProvider;
|
|
9706
9682
|
}(StartableService));
|
|
9707
|
-
AudioProvider.ɵprov =
|
|
9683
|
+
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" });
|
|
9708
9684
|
AudioProvider.decorators = [
|
|
9709
9685
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9710
9686
|
];
|
|
@@ -9804,7 +9780,7 @@
|
|
|
9804
9780
|
};
|
|
9805
9781
|
return Hotkeys;
|
|
9806
9782
|
}());
|
|
9807
|
-
Hotkeys.ɵprov =
|
|
9783
|
+
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" });
|
|
9808
9784
|
Hotkeys.decorators = [
|
|
9809
9785
|
{ type: i0.Injectable, args: [{
|
|
9810
9786
|
providedIn: 'root'
|
|
@@ -10008,7 +9984,7 @@
|
|
|
10008
9984
|
return Base64ImageReader;
|
|
10009
9985
|
}());
|
|
10010
9986
|
|
|
10011
|
-
var uuidv4
|
|
9987
|
+
var uuidv4 = uuidv4Imported__namespace;
|
|
10012
9988
|
var FileService = /** @class */ (function () {
|
|
10013
9989
|
function FileService(platform,
|
|
10014
9990
|
//private transfer: FileTransfer,
|
|
@@ -10054,7 +10030,7 @@
|
|
|
10054
10030
|
lastSlashIndex = source.lastIndexOf('/');
|
|
10055
10031
|
if (lastSlashIndex === -1)
|
|
10056
10032
|
throw new Error('Invalid URL: ' + source);
|
|
10057
|
-
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4
|
|
10033
|
+
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
|
|
10058
10034
|
if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
|
|
10059
10035
|
console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
|
|
10060
10036
|
targetFilePath = this._imageDirectory + fileName;
|
|
@@ -10117,7 +10093,7 @@
|
|
|
10117
10093
|
};
|
|
10118
10094
|
return FileService;
|
|
10119
10095
|
}());
|
|
10120
|
-
FileService.ɵprov =
|
|
10096
|
+
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" });
|
|
10121
10097
|
FileService.decorators = [
|
|
10122
10098
|
{ type: i0.Injectable, args: [{
|
|
10123
10099
|
providedIn: 'root',
|
|
@@ -10284,7 +10260,7 @@
|
|
|
10284
10260
|
Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
10285
10261
|
|
|
10286
10262
|
var scrypt = require('scrypt-async');
|
|
10287
|
-
var sha256
|
|
10263
|
+
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
10288
10264
|
var sha512 = require('hash.js/lib/hash/sha/512');
|
|
10289
10265
|
var nacl = {
|
|
10290
10266
|
sign: tweetnacl.sign,
|
|
@@ -10390,7 +10366,7 @@
|
|
|
10390
10366
|
* Hash (using SHA256) a message
|
|
10391
10367
|
*/
|
|
10392
10368
|
CryptoService.prototype.sha256 = function (message) {
|
|
10393
|
-
return sha256
|
|
10369
|
+
return sha256().update(message).digest('hex');
|
|
10394
10370
|
};
|
|
10395
10371
|
/**
|
|
10396
10372
|
* Hash (using SHA512) a message
|
|
@@ -10404,7 +10380,7 @@
|
|
|
10404
10380
|
};
|
|
10405
10381
|
return CryptoService;
|
|
10406
10382
|
}());
|
|
10407
|
-
CryptoService.ɵprov =
|
|
10383
|
+
CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
|
|
10408
10384
|
CryptoService.decorators = [
|
|
10409
10385
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
10410
10386
|
];
|
|
@@ -10580,7 +10556,13 @@
|
|
|
10580
10556
|
EntityUtils.searchTextFilter = function (searchAttribute, searchText) {
|
|
10581
10557
|
if (isNilOrBlank(searchAttribute) || isNilOrBlank(searchText))
|
|
10582
10558
|
return undefined; // filter not need
|
|
10583
|
-
var searchRegexp = searchText
|
|
10559
|
+
var searchRegexp = searchText
|
|
10560
|
+
// Escape special characters
|
|
10561
|
+
.replace(/[-\/\\^$+.()|[\]{}]/g, '\\$&')
|
|
10562
|
+
// Interpret * as any text
|
|
10563
|
+
.replace(/[*]+/g, '.*')
|
|
10564
|
+
// Interpret ? as one character
|
|
10565
|
+
.replace(/[?]/g, '.');
|
|
10584
10566
|
if (searchRegexp === '.*')
|
|
10585
10567
|
return undefined; // filter not need
|
|
10586
10568
|
var flags = 'i'; // don't use global regex search
|
|
@@ -11842,7 +11824,7 @@
|
|
|
11842
11824
|
};
|
|
11843
11825
|
return LocalSettingsService;
|
|
11844
11826
|
}(StartableService));
|
|
11845
|
-
LocalSettingsService.ɵprov =
|
|
11827
|
+
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" });
|
|
11846
11828
|
LocalSettingsService.decorators = [
|
|
11847
11829
|
{ type: i0.Injectable, args: [{
|
|
11848
11830
|
providedIn: 'root',
|
|
@@ -12645,7 +12627,7 @@
|
|
|
12645
12627
|
};
|
|
12646
12628
|
return NetworkService;
|
|
12647
12629
|
}(StartableService));
|
|
12648
|
-
NetworkService.ɵprov =
|
|
12630
|
+
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" });
|
|
12649
12631
|
NetworkService.decorators = [
|
|
12650
12632
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
12651
12633
|
];
|
|
@@ -12665,7 +12647,7 @@
|
|
|
12665
12647
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
|
|
12666
12648
|
]; };
|
|
12667
12649
|
|
|
12668
|
-
var ErrorCodes
|
|
12650
|
+
var ErrorCodes = {
|
|
12669
12651
|
UNKNOWN_ERROR: 0,
|
|
12670
12652
|
LOAD_ACCOUNT_ERROR: 1,
|
|
12671
12653
|
BAD_PASSWORD: 2,
|
|
@@ -13082,7 +13064,7 @@
|
|
|
13082
13064
|
case 13:
|
|
13083
13065
|
err_1 = _b.sent();
|
|
13084
13066
|
console.error(err_1);
|
|
13085
|
-
throw { code: ErrorCodes
|
|
13067
|
+
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
13086
13068
|
case 14:
|
|
13087
13069
|
// Emit update event
|
|
13088
13070
|
if (!opts || opts.emitEvent !== false) {
|
|
@@ -13859,7 +13841,7 @@
|
|
|
13859
13841
|
}(StartableService));
|
|
13860
13842
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
13861
13843
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
13862
|
-
EntitiesStorage.ɵprov =
|
|
13844
|
+
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" });
|
|
13863
13845
|
EntitiesStorage.decorators = [
|
|
13864
13846
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
13865
13847
|
];
|
|
@@ -14015,10 +13997,10 @@
|
|
|
14015
13997
|
function referentialsToString(values, properties, separator) {
|
|
14016
13998
|
return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
|
|
14017
13999
|
}
|
|
14018
|
-
var ɵ0$
|
|
14000
|
+
var ɵ0$a = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
14019
14001
|
var StatusList = Object.freeze([
|
|
14020
14002
|
{
|
|
14021
|
-
id: ɵ0$
|
|
14003
|
+
id: ɵ0$a,
|
|
14022
14004
|
icon: 'checkmark',
|
|
14023
14005
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
14024
14006
|
},
|
|
@@ -14321,7 +14303,7 @@
|
|
|
14321
14303
|
(data.lastName || '')) || '';
|
|
14322
14304
|
}
|
|
14323
14305
|
|
|
14324
|
-
var uuidv4 = uuidv4Imported__namespace;
|
|
14306
|
+
var uuidv4$1 = uuidv4Imported__namespace;
|
|
14325
14307
|
var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
14326
14308
|
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
14327
14309
|
/**
|
|
@@ -14365,7 +14347,7 @@
|
|
|
14365
14347
|
// Skip if not tracked
|
|
14366
14348
|
if (!context || !context.tracked)
|
|
14367
14349
|
return forward(operation);
|
|
14368
|
-
var id = context.serializationKey || uuidv4();
|
|
14350
|
+
var id = context.serializationKey || uuidv4$1();
|
|
14369
14351
|
console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
|
|
14370
14352
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
14371
14353
|
var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -14996,14 +14978,14 @@
|
|
|
14996
14978
|
mutationLinks = void 0;
|
|
14997
14979
|
// Add queue to store tracked queries, when offline
|
|
14998
14980
|
if (enableTrackMutationQueries) {
|
|
14999
|
-
serializingLink = new SerializingLink__default[
|
|
14981
|
+
serializingLink = new SerializingLink__default['default']();
|
|
15000
14982
|
trackerLink = createTrackerLink({
|
|
15001
14983
|
storage: storage,
|
|
15002
14984
|
onNetworkStatusChange: this._networkStatusChanged$,
|
|
15003
14985
|
debounce: 1000,
|
|
15004
14986
|
debug: true
|
|
15005
14987
|
});
|
|
15006
|
-
queueLink_1 = new QueueLink__default[
|
|
14988
|
+
queueLink_1 = new QueueLink__default['default']();
|
|
15007
14989
|
this.registerSubscription(this._networkStatusChanged$
|
|
15008
14990
|
.subscribe(function (type) {
|
|
15009
14991
|
// Network is offline: start buffering into queue
|
|
@@ -15018,7 +15000,7 @@
|
|
|
15018
15000
|
}
|
|
15019
15001
|
}));
|
|
15020
15002
|
mutationLinks = [
|
|
15021
|
-
loggerLink__default[
|
|
15003
|
+
loggerLink__default['default'],
|
|
15022
15004
|
queueLink_1,
|
|
15023
15005
|
trackerLink,
|
|
15024
15006
|
queueLink_1,
|
|
@@ -15125,7 +15107,7 @@
|
|
|
15125
15107
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
15126
15108
|
|| this.toAppError(err.networkError)
|
|
15127
15109
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
15128
|
-
|| this.createAppErrorByCode(ErrorCodes
|
|
15110
|
+
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
15129
15111
|
// If graphQL: try to convert the first error found
|
|
15130
15112
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
15131
15113
|
|| this.toAppError(err)
|
|
@@ -15133,7 +15115,7 @@
|
|
|
15133
15115
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
15134
15116
|
|| err;
|
|
15135
15117
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
15136
|
-
if (error && error.code === ErrorCodes
|
|
15118
|
+
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
15137
15119
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
15138
15120
|
this.onNetworkError.next(error);
|
|
15139
15121
|
}
|
|
@@ -15169,7 +15151,7 @@
|
|
|
15169
15151
|
return 'ERROR.UNAUTHORIZED';
|
|
15170
15152
|
case ServerErrorCodes.FORBIDDEN:
|
|
15171
15153
|
return 'ERROR.FORBIDDEN';
|
|
15172
|
-
case ErrorCodes
|
|
15154
|
+
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
15173
15155
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
15174
15156
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
15175
15157
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -15201,7 +15183,7 @@
|
|
|
15201
15183
|
};
|
|
15202
15184
|
return GraphqlService;
|
|
15203
15185
|
}(StartableService));
|
|
15204
|
-
GraphqlService.ɵprov =
|
|
15186
|
+
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" });
|
|
15205
15187
|
GraphqlService.decorators = [
|
|
15206
15188
|
{ type: i0.Injectable, args: [{
|
|
15207
15189
|
providedIn: 'root'
|
|
@@ -15218,7 +15200,7 @@
|
|
|
15218
15200
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
15219
15201
|
]; };
|
|
15220
15202
|
|
|
15221
|
-
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
15203
|
+
var sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
15222
15204
|
var BaseGraphqlServiceOptions = /** @class */ (function () {
|
|
15223
15205
|
function BaseGraphqlServiceOptions() {
|
|
15224
15206
|
}
|
|
@@ -15388,8 +15370,8 @@
|
|
|
15388
15370
|
};
|
|
15389
15371
|
/* -- protected methods -- */
|
|
15390
15372
|
BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
|
|
15391
|
-
var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
15392
|
-
var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
15373
|
+
var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
15374
|
+
var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
15393
15375
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
15394
15376
|
};
|
|
15395
15377
|
BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
|
|
@@ -15458,19 +15440,19 @@
|
|
|
15458
15440
|
/* ------------------------------------
|
|
15459
15441
|
* GraphQL queries
|
|
15460
15442
|
* ------------------------------------*/
|
|
15461
|
-
var Fragments
|
|
15462
|
-
account: core.gql(templateObject_1
|
|
15463
|
-
settings: core.gql(templateObject_2
|
|
15443
|
+
var Fragments = {
|
|
15444
|
+
account: core.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n ...UserSettingsFragment\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }"], ["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n ...UserSettingsFragment\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }"]))),
|
|
15445
|
+
settings: core.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["fragment UserSettingsFragment on UserSettingsVO {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }"], ["fragment UserSettingsFragment on UserSettingsVO {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }"])))
|
|
15464
15446
|
};
|
|
15465
15447
|
// Load account query
|
|
15466
|
-
var LoadQuery
|
|
15448
|
+
var LoadQuery = core.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n ", "\n"], ["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n ", "\n"])), Fragments.account, Fragments.settings);
|
|
15467
15449
|
// Check email query
|
|
15468
|
-
var IsEmailExistsQuery = core.gql(templateObject_4
|
|
15450
|
+
var IsEmailExistsQuery = core.gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"], ["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"])));
|
|
15469
15451
|
// Save (create or update) account mutation
|
|
15470
15452
|
var AccountMutations = {
|
|
15471
|
-
save: core.gql(templateObject_5
|
|
15472
|
-
create: core.gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""], ["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""])), Fragments
|
|
15473
|
-
saveSettings: core.gql(templateObject_7 || (templateObject_7 = __makeTemplateObject(["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""], ["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""])), Fragments
|
|
15453
|
+
save: core.gql(templateObject_5 || (templateObject_5 = __makeTemplateObject([" mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""], [" mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""])), Fragments.account, Fragments.settings),
|
|
15454
|
+
create: core.gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""], ["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""])), Fragments.account, Fragments.settings),
|
|
15455
|
+
saveSettings: core.gql(templateObject_7 || (templateObject_7 = __makeTemplateObject(["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""], ["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""])), Fragments.settings)
|
|
15474
15456
|
};
|
|
15475
15457
|
// Sent confirmation email
|
|
15476
15458
|
var SendConfirmEmailMutation = core.gql(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n mutation sendAccountConfirmationEmail($email:String, $locale:String){\n sendAccountConfirmationEmail(email: $email, locale: $locale)\n }\n"], ["\n mutation sendAccountConfirmationEmail($email:String, $locale:String){\n sendAccountConfirmationEmail(email: $email, locale: $locale)\n }\n"])));
|
|
@@ -15840,7 +15822,7 @@
|
|
|
15840
15822
|
error_3 = _b.sent();
|
|
15841
15823
|
console.error(error_3);
|
|
15842
15824
|
this.resetData();
|
|
15843
|
-
throw { code: ErrorCodes
|
|
15825
|
+
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
15844
15826
|
case 4:
|
|
15845
15827
|
// Store pubkey+keypair
|
|
15846
15828
|
this._cache.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -15876,7 +15858,7 @@
|
|
|
15876
15858
|
return [3 /*break*/, 18];
|
|
15877
15859
|
case 11:
|
|
15878
15860
|
err_1 = _b.sent();
|
|
15879
|
-
if (!(err_1 && +(err_1.code) === ErrorCodes
|
|
15861
|
+
if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
15880
15862
|
if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
|
|
15881
15863
|
isEmailExists = void 0;
|
|
15882
15864
|
_b.label = 12;
|
|
@@ -15892,12 +15874,12 @@
|
|
|
15892
15874
|
case 15:
|
|
15893
15875
|
// Email not exists (no account)
|
|
15894
15876
|
if (!isEmailExists) {
|
|
15895
|
-
throw { code: ErrorCodes
|
|
15877
|
+
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
15896
15878
|
}
|
|
15897
15879
|
_b.label = 16;
|
|
15898
15880
|
case 16:
|
|
15899
15881
|
// Email exists, so error = 'bad password'
|
|
15900
|
-
throw { code: ErrorCodes
|
|
15882
|
+
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
15901
15883
|
case 17: throw err_1; // resend the first error
|
|
15902
15884
|
case 18:
|
|
15903
15885
|
_b.trys.push([18, 20, , 21]);
|
|
@@ -16093,8 +16075,8 @@
|
|
|
16093
16075
|
_b.label = 3;
|
|
16094
16076
|
case 3: return [3 /*break*/, 6];
|
|
16095
16077
|
case 4: return [4 /*yield*/, this.graphql.query({
|
|
16096
|
-
query: LoadQuery
|
|
16097
|
-
error: { code: ErrorCodes
|
|
16078
|
+
query: LoadQuery,
|
|
16079
|
+
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
16098
16080
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
16099
16081
|
})];
|
|
16100
16082
|
case 5:
|
|
@@ -16132,7 +16114,7 @@
|
|
|
16132
16114
|
case 1:
|
|
16133
16115
|
isEmailExists = _b.sent();
|
|
16134
16116
|
if (isEmailExists) {
|
|
16135
|
-
throw { code: ErrorCodes
|
|
16117
|
+
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
16136
16118
|
}
|
|
16137
16119
|
return [2 /*return*/];
|
|
16138
16120
|
}
|
|
@@ -16182,7 +16164,7 @@
|
|
|
16182
16164
|
locale: locale
|
|
16183
16165
|
},
|
|
16184
16166
|
error: {
|
|
16185
|
-
code: ErrorCodes
|
|
16167
|
+
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
16186
16168
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
16187
16169
|
}
|
|
16188
16170
|
})];
|
|
@@ -16205,7 +16187,7 @@
|
|
|
16205
16187
|
code: code
|
|
16206
16188
|
},
|
|
16207
16189
|
error: {
|
|
16208
|
-
code: ErrorCodes
|
|
16190
|
+
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
16209
16191
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
16210
16192
|
}
|
|
16211
16193
|
})];
|
|
@@ -16305,7 +16287,7 @@
|
|
|
16305
16287
|
throw error_7;
|
|
16306
16288
|
console.error(error_7);
|
|
16307
16289
|
throw {
|
|
16308
|
-
code: ErrorCodes
|
|
16290
|
+
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
16309
16291
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
16310
16292
|
};
|
|
16311
16293
|
case 6: return [2 /*return*/];
|
|
@@ -16516,7 +16498,7 @@
|
|
|
16516
16498
|
case 1:
|
|
16517
16499
|
existingAccount = _b.sent();
|
|
16518
16500
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
16519
|
-
throw { code: ErrorCodes
|
|
16501
|
+
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
16520
16502
|
}
|
|
16521
16503
|
this.copyIdAndUpdateDate(existingAccount, account);
|
|
16522
16504
|
_b.label = 2;
|
|
@@ -16528,7 +16510,7 @@
|
|
|
16528
16510
|
mutation: isNew ? AccountMutations.create : AccountMutations.save,
|
|
16529
16511
|
variables: { data: json },
|
|
16530
16512
|
error: {
|
|
16531
|
-
code: ErrorCodes
|
|
16513
|
+
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
16532
16514
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
16533
16515
|
}
|
|
16534
16516
|
})];
|
|
@@ -16562,7 +16544,7 @@
|
|
|
16562
16544
|
mutation: AccountMutations.saveSettings,
|
|
16563
16545
|
variables: { data: json },
|
|
16564
16546
|
error: {
|
|
16565
|
-
code: ErrorCodes
|
|
16547
|
+
code: ErrorCodes.SAVE_SETTINGS_ERROR,
|
|
16566
16548
|
message: 'ERROR.SAVE_SETTINGS_ERROR'
|
|
16567
16549
|
}
|
|
16568
16550
|
})];
|
|
@@ -16593,7 +16575,7 @@
|
|
|
16593
16575
|
if (counter > 4) {
|
|
16594
16576
|
if (this._debug)
|
|
16595
16577
|
console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
|
|
16596
|
-
throw { code: ErrorCodes
|
|
16578
|
+
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
16597
16579
|
}
|
|
16598
16580
|
if (!token) return [3 /*break*/, 2];
|
|
16599
16581
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -16602,7 +16584,7 @@
|
|
|
16602
16584
|
token: token
|
|
16603
16585
|
},
|
|
16604
16586
|
error: {
|
|
16605
|
-
code: ErrorCodes
|
|
16587
|
+
code: ErrorCodes.UNAUTHORIZED,
|
|
16606
16588
|
message: 'ERROR.UNAUTHORIZED'
|
|
16607
16589
|
},
|
|
16608
16590
|
fetchPolicy: 'no-cache'
|
|
@@ -16619,7 +16601,7 @@
|
|
|
16619
16601
|
_b.label = 2;
|
|
16620
16602
|
case 2:
|
|
16621
16603
|
challengeError = {
|
|
16622
|
-
code: ErrorCodes
|
|
16604
|
+
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
16623
16605
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
16624
16606
|
};
|
|
16625
16607
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -16706,7 +16688,7 @@
|
|
|
16706
16688
|
query: AccountSubscriptions.listenChanges,
|
|
16707
16689
|
variables: variables,
|
|
16708
16690
|
error: {
|
|
16709
|
-
code: ErrorCodes
|
|
16691
|
+
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
16710
16692
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ERROR'
|
|
16711
16693
|
}
|
|
16712
16694
|
}).pipe(operators.map(function (_b) {
|
|
@@ -16739,7 +16721,7 @@
|
|
|
16739
16721
|
};
|
|
16740
16722
|
return AccountService;
|
|
16741
16723
|
}(BaseGraphqlService));
|
|
16742
|
-
AccountService.ɵprov =
|
|
16724
|
+
AccountService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountService_Factory() { return new AccountService(i0.ɵɵinject(CryptoService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(FileService), i0.ɵɵinject(i1$2.TranslateService, 8), i0.ɵɵinject(i1$5.ToastController, 8), i0.ɵɵinject(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
|
|
16743
16725
|
AccountService.decorators = [
|
|
16744
16726
|
{ type: i0.Injectable, args: [{ providedIn: 'root', deps: [ENVIRONMENT] },] }
|
|
16745
16727
|
];
|
|
@@ -16754,7 +16736,7 @@
|
|
|
16754
16736
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] },
|
|
16755
16737
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
16756
16738
|
]; };
|
|
16757
|
-
var templateObject_1
|
|
16739
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12;
|
|
16758
16740
|
|
|
16759
16741
|
var Software_1, Configuration_1;
|
|
16760
16742
|
// @dynamic
|
|
@@ -17006,13 +16988,13 @@
|
|
|
17006
16988
|
/* ------------------------------------
|
|
17007
16989
|
* GraphQL queries
|
|
17008
16990
|
* ------------------------------------*/
|
|
17009
|
-
var Fragments = {
|
|
17010
|
-
config: core.gql(templateObject_1$
|
|
16991
|
+
var Fragments$1 = {
|
|
16992
|
+
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 "])))
|
|
17011
16993
|
};
|
|
17012
|
-
var LoadQuery = core.gql(templateObject_2$
|
|
16994
|
+
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);
|
|
17013
16995
|
// Save (create or update) account mutation
|
|
17014
|
-
var SaveMutation = core.gql(templateObject_3$
|
|
17015
|
-
var ClearCache = core.gql(templateObject_4$
|
|
16996
|
+
var SaveMutation = core.gql(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"], ["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"])), Fragments$1.config);
|
|
16997
|
+
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"])));
|
|
17016
16998
|
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"])));
|
|
17017
16999
|
var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
|
|
17018
17000
|
var ConfigService = /** @class */ (function (_super) {
|
|
@@ -17072,12 +17054,12 @@
|
|
|
17072
17054
|
case 0:
|
|
17073
17055
|
now = Date.now();
|
|
17074
17056
|
console.debug('[config] Loading Pod configuration...');
|
|
17075
|
-
query = opts && opts.query || LoadQuery;
|
|
17057
|
+
query = opts && opts.query || LoadQuery$1;
|
|
17076
17058
|
variables = opts && opts.variables || undefined;
|
|
17077
17059
|
return [4 /*yield*/, this.graphql.query({
|
|
17078
17060
|
query: query,
|
|
17079
17061
|
variables: variables,
|
|
17080
|
-
error: { code: ErrorCodes
|
|
17062
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17081
17063
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
17082
17064
|
})];
|
|
17083
17065
|
case 1:
|
|
@@ -17119,7 +17101,7 @@
|
|
|
17119
17101
|
data: json
|
|
17120
17102
|
},
|
|
17121
17103
|
error: {
|
|
17122
|
-
code: ErrorCodes
|
|
17104
|
+
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
17123
17105
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
17124
17106
|
}
|
|
17125
17107
|
})];
|
|
@@ -17154,7 +17136,7 @@
|
|
|
17154
17136
|
return [4 /*yield*/, this.graphql.query({
|
|
17155
17137
|
query: CacheStatistics,
|
|
17156
17138
|
variables: null,
|
|
17157
|
-
error: { code: ErrorCodes
|
|
17139
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17158
17140
|
fetchPolicy: 'network-only'
|
|
17159
17141
|
})];
|
|
17160
17142
|
case 1:
|
|
@@ -17178,7 +17160,7 @@
|
|
|
17178
17160
|
return [4 /*yield*/, this.graphql.query({
|
|
17179
17161
|
query: ClearCache,
|
|
17180
17162
|
variables: variables,
|
|
17181
|
-
error: { code: ErrorCodes
|
|
17163
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17182
17164
|
fetchPolicy: 'network-only'
|
|
17183
17165
|
})];
|
|
17184
17166
|
case 1:
|
|
@@ -17378,7 +17360,7 @@
|
|
|
17378
17360
|
};
|
|
17379
17361
|
return ConfigService;
|
|
17380
17362
|
}(BaseGraphqlService));
|
|
17381
|
-
ConfigService.ɵprov =
|
|
17363
|
+
ConfigService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConfigService_Factory() { return new ConfigService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(NetworkService), i0.ɵɵinject(FileService), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(AccountService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
|
|
17382
17364
|
ConfigService.decorators = [
|
|
17383
17365
|
{ type: i0.Injectable, args: [{
|
|
17384
17366
|
providedIn: 'root',
|
|
@@ -17397,9 +17379,9 @@
|
|
|
17397
17379
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
17398
17380
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
17399
17381
|
]; };
|
|
17400
|
-
var templateObject_1$
|
|
17382
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
|
|
17401
17383
|
|
|
17402
|
-
var moment$
|
|
17384
|
+
var moment$4 = momentImported__namespace;
|
|
17403
17385
|
var PlatformService = /** @class */ (function (_super) {
|
|
17404
17386
|
__extends(PlatformService, _super);
|
|
17405
17387
|
function PlatformService(platform, cdkPlatform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser, downloader) {
|
|
@@ -17641,16 +17623,16 @@
|
|
|
17641
17623
|
}
|
|
17642
17624
|
// config moment lib
|
|
17643
17625
|
try {
|
|
17644
|
-
moment$
|
|
17626
|
+
moment$4.locale(event.lang);
|
|
17645
17627
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
17646
17628
|
}
|
|
17647
17629
|
// If error, fallback to en
|
|
17648
17630
|
catch (err) {
|
|
17649
|
-
moment$
|
|
17631
|
+
moment$4.locale('en');
|
|
17650
17632
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
17651
17633
|
}
|
|
17652
17634
|
// Config date adapter
|
|
17653
|
-
_this.dateAdapter.setLocale(moment$
|
|
17635
|
+
_this.dateAdapter.setLocale(moment$4.locale());
|
|
17654
17636
|
}
|
|
17655
17637
|
});
|
|
17656
17638
|
this.settings.onChange.subscribe(function (data) {
|
|
@@ -17830,7 +17812,7 @@
|
|
|
17830
17812
|
};
|
|
17831
17813
|
return PlatformService;
|
|
17832
17814
|
}(StartableService));
|
|
17833
|
-
PlatformService.ɵprov =
|
|
17815
|
+
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" });
|
|
17834
17816
|
PlatformService.decorators = [
|
|
17835
17817
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
17836
17818
|
];
|
|
@@ -17928,7 +17910,7 @@
|
|
|
17928
17910
|
};
|
|
17929
17911
|
return MatStepperI18n;
|
|
17930
17912
|
}(stepper.MatStepperIntl));
|
|
17931
|
-
MatStepperI18n.ɵprov =
|
|
17913
|
+
MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
17932
17914
|
MatStepperI18n.decorators = [
|
|
17933
17915
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
17934
17916
|
];
|
|
@@ -20116,7 +20098,7 @@
|
|
|
20116
20098
|
return 1;
|
|
20117
20099
|
}
|
|
20118
20100
|
}
|
|
20119
|
-
var ɵ0$
|
|
20101
|
+
var ɵ0$b = function (defaultStateSize) { return [
|
|
20120
20102
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
20121
20103
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
20122
20104
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -20124,7 +20106,7 @@
|
|
|
20124
20106
|
var SCALE_OPTIONS_DEFAULT = {
|
|
20125
20107
|
startColor: rgbArrayMap.red,
|
|
20126
20108
|
startStates: [0, 2, 3],
|
|
20127
|
-
startStepsFn: ɵ0$
|
|
20109
|
+
startStepsFn: ɵ0$b
|
|
20128
20110
|
};
|
|
20129
20111
|
/**
|
|
20130
20112
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -21055,7 +21037,7 @@
|
|
|
21055
21037
|
};
|
|
21056
21038
|
return UserSettingsValidatorService;
|
|
21057
21039
|
}(AppValidatorService));
|
|
21058
|
-
UserSettingsValidatorService.ɵprov =
|
|
21040
|
+
UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
21059
21041
|
UserSettingsValidatorService.decorators = [
|
|
21060
21042
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21061
21043
|
];
|
|
@@ -21103,7 +21085,7 @@
|
|
|
21103
21085
|
};
|
|
21104
21086
|
return AccountValidatorService;
|
|
21105
21087
|
}(AppValidatorService));
|
|
21106
|
-
AccountValidatorService.ɵprov =
|
|
21088
|
+
AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
|
|
21107
21089
|
AccountValidatorService.decorators = [
|
|
21108
21090
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21109
21091
|
];
|
|
@@ -21734,7 +21716,7 @@
|
|
|
21734
21716
|
};
|
|
21735
21717
|
return LocalSettingsValidatorService;
|
|
21736
21718
|
}(AppValidatorService));
|
|
21737
|
-
LocalSettingsValidatorService.ɵprov =
|
|
21719
|
+
LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
|
|
21738
21720
|
LocalSettingsValidatorService.decorators = [
|
|
21739
21721
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21740
21722
|
];
|
|
@@ -22514,7 +22496,7 @@
|
|
|
22514
22496
|
};
|
|
22515
22497
|
return IsOnFieldModePipe;
|
|
22516
22498
|
}());
|
|
22517
|
-
IsOnFieldModePipe.ɵprov =
|
|
22499
|
+
IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
22518
22500
|
IsOnFieldModePipe.decorators = [
|
|
22519
22501
|
{ type: i0.Pipe, args: [{
|
|
22520
22502
|
name: 'isOnField'
|
|
@@ -22529,7 +22511,7 @@
|
|
|
22529
22511
|
};
|
|
22530
22512
|
return IsNotOnFieldModePipe;
|
|
22531
22513
|
}());
|
|
22532
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
22514
|
+
IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
22533
22515
|
IsNotOnFieldModePipe.decorators = [
|
|
22534
22516
|
{ type: i0.Pipe, args: [{
|
|
22535
22517
|
name: 'isNotOnField'
|
|
@@ -22547,7 +22529,7 @@
|
|
|
22547
22529
|
};
|
|
22548
22530
|
return PersonToStringPipe;
|
|
22549
22531
|
}());
|
|
22550
|
-
PersonToStringPipe.ɵprov =
|
|
22532
|
+
PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
22551
22533
|
PersonToStringPipe.decorators = [
|
|
22552
22534
|
{ type: i0.Pipe, args: [{
|
|
22553
22535
|
name: 'personToString'
|
|
@@ -23011,7 +22993,7 @@
|
|
|
23011
22993
|
};
|
|
23012
22994
|
return IsLoginAccountPipe;
|
|
23013
22995
|
}());
|
|
23014
|
-
IsLoginAccountPipe.ɵprov =
|
|
22996
|
+
IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
23015
22997
|
IsLoginAccountPipe.decorators = [
|
|
23016
22998
|
{ type: i0.Pipe, args: [{
|
|
23017
22999
|
name: 'isLogin'
|
|
@@ -23026,7 +23008,7 @@
|
|
|
23026
23008
|
};
|
|
23027
23009
|
return AccountToStringPipe;
|
|
23028
23010
|
}());
|
|
23029
|
-
AccountToStringPipe.ɵprov =
|
|
23011
|
+
AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
23030
23012
|
AccountToStringPipe.decorators = [
|
|
23031
23013
|
{ type: i0.Pipe, args: [{
|
|
23032
23014
|
name: 'accountToString'
|
|
@@ -23044,7 +23026,7 @@
|
|
|
23044
23026
|
};
|
|
23045
23027
|
return DepartmentToStringPipe;
|
|
23046
23028
|
}());
|
|
23047
|
-
DepartmentToStringPipe.ɵprov =
|
|
23029
|
+
DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
23048
23030
|
DepartmentToStringPipe.decorators = [
|
|
23049
23031
|
{ type: i0.Pipe, args: [{
|
|
23050
23032
|
name: 'departmentToString'
|
|
@@ -23150,7 +23132,7 @@
|
|
|
23150
23132
|
};
|
|
23151
23133
|
return MenuService;
|
|
23152
23134
|
}());
|
|
23153
|
-
MenuService.ɵprov =
|
|
23135
|
+
MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
23154
23136
|
MenuService.decorators = [
|
|
23155
23137
|
{ type: i0.Injectable, args: [{
|
|
23156
23138
|
providedIn: 'root'
|
|
@@ -23701,7 +23683,7 @@
|
|
|
23701
23683
|
};
|
|
23702
23684
|
return AuthGuardService;
|
|
23703
23685
|
}());
|
|
23704
|
-
AuthGuardService.ɵprov =
|
|
23686
|
+
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" });
|
|
23705
23687
|
AuthGuardService.decorators = [
|
|
23706
23688
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
23707
23689
|
];
|
|
@@ -23746,7 +23728,7 @@
|
|
|
23746
23728
|
query: query,
|
|
23747
23729
|
variables: { id: id },
|
|
23748
23730
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
23749
|
-
error: { code: ErrorCodes
|
|
23731
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
23750
23732
|
})
|
|
23751
23733
|
.pipe(operators.map(function (_b) {
|
|
23752
23734
|
var data = _b.data;
|
|
@@ -23768,7 +23750,7 @@
|
|
|
23768
23750
|
query: query,
|
|
23769
23751
|
variables: { id: id },
|
|
23770
23752
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
23771
|
-
error: { code: ErrorCodes
|
|
23753
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
23772
23754
|
})];
|
|
23773
23755
|
case 1:
|
|
23774
23756
|
data = (_b.sent()).data;
|
|
@@ -23804,7 +23786,7 @@
|
|
|
23804
23786
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
23805
23787
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
23806
23788
|
variables: variables,
|
|
23807
|
-
error: { code: ErrorCodes
|
|
23789
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
23808
23790
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
23809
23791
|
})
|
|
23810
23792
|
.pipe(operators.map(function (_b) {
|
|
@@ -23846,7 +23828,7 @@
|
|
|
23846
23828
|
return [4 /*yield*/, this.graphql.query({
|
|
23847
23829
|
query: query,
|
|
23848
23830
|
variables: variables,
|
|
23849
|
-
error: { code: ErrorCodes
|
|
23831
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
23850
23832
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
23851
23833
|
})];
|
|
23852
23834
|
case 1:
|
|
@@ -23894,7 +23876,7 @@
|
|
|
23894
23876
|
variables: {
|
|
23895
23877
|
filter: filter && filter.asPodObject()
|
|
23896
23878
|
},
|
|
23897
|
-
error: { code: ErrorCodes
|
|
23879
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
23898
23880
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
23899
23881
|
})];
|
|
23900
23882
|
case 3:
|
|
@@ -23939,7 +23921,7 @@
|
|
|
23939
23921
|
variables: {
|
|
23940
23922
|
data: json
|
|
23941
23923
|
},
|
|
23942
|
-
error: { code: ErrorCodes
|
|
23924
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
23943
23925
|
update: function (proxy, _b) {
|
|
23944
23926
|
var data = _b.data;
|
|
23945
23927
|
var savedEntities = data && data.data;
|
|
@@ -24006,7 +23988,7 @@
|
|
|
24006
23988
|
variables: {
|
|
24007
23989
|
data: json
|
|
24008
23990
|
},
|
|
24009
|
-
error: { code: ErrorCodes
|
|
23991
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
24010
23992
|
update: function (cache, _b) {
|
|
24011
23993
|
var data = _b.data;
|
|
24012
23994
|
// Update entity
|
|
@@ -24064,7 +24046,7 @@
|
|
|
24064
24046
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
24065
24047
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
24066
24048
|
variables: { ids: ids },
|
|
24067
|
-
error: { code: ErrorCodes
|
|
24049
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
24068
24050
|
update: function (cache, res) {
|
|
24069
24051
|
// Remove from cache
|
|
24070
24052
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -24117,7 +24099,7 @@
|
|
|
24117
24099
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
24118
24100
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
24119
24101
|
variables: { id: id },
|
|
24120
|
-
error: { code: ErrorCodes
|
|
24102
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
24121
24103
|
update: function (proxy, res) {
|
|
24122
24104
|
// Remove from cache
|
|
24123
24105
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -24156,7 +24138,7 @@
|
|
|
24156
24138
|
query: opts && opts.query || this.subscriptions.listenChanges,
|
|
24157
24139
|
variables: variables,
|
|
24158
24140
|
error: {
|
|
24159
|
-
code: ErrorCodes
|
|
24141
|
+
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
24160
24142
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
24161
24143
|
}
|
|
24162
24144
|
})
|
|
@@ -24379,7 +24361,7 @@
|
|
|
24379
24361
|
if (this._debug)
|
|
24380
24362
|
invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
|
|
24381
24363
|
// Stop with an error
|
|
24382
|
-
throw { code: ErrorCodes
|
|
24364
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
24383
24365
|
}
|
|
24384
24366
|
this._editingRowCount = 0;
|
|
24385
24367
|
data = void 0;
|
|
@@ -25393,14 +25375,14 @@
|
|
|
25393
25375
|
case 0:
|
|
25394
25376
|
opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
|
|
25395
25377
|
if (this.readOnly) {
|
|
25396
|
-
throw { code: ErrorCodes
|
|
25378
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25397
25379
|
}
|
|
25398
25380
|
this.resetError();
|
|
25399
25381
|
// Keep edited row id (should be done BEFORE confirmEditCreate() )
|
|
25400
25382
|
this.previouslyEditedRowId = opts.keepEditing ? ((((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined) || ((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.id)) : undefined;
|
|
25401
25383
|
previouslyEditedData = opts.keepEditing ? (isNotNil(this.previouslyEditedRowId) && ((_c = this.editedRow) === null || _c === void 0 ? void 0 : _c.currentData) || ((_d = this.singleSelectedRow) === null || _d === void 0 ? void 0 : _d.currentData)) : undefined;
|
|
25402
25384
|
if (!this.confirmEditCreate()) {
|
|
25403
|
-
throw { code: ErrorCodes
|
|
25385
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
25404
25386
|
}
|
|
25405
25387
|
// Mark as saving
|
|
25406
25388
|
this.markAsSaving();
|
|
@@ -25555,7 +25537,7 @@
|
|
|
25555
25537
|
switch (_e.label) {
|
|
25556
25538
|
case 0:
|
|
25557
25539
|
if (this.readOnly) {
|
|
25558
|
-
throw { code: ErrorCodes
|
|
25540
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25559
25541
|
}
|
|
25560
25542
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
25561
25543
|
return [2 /*return*/, 0]; // SKip
|
|
@@ -27402,7 +27384,7 @@
|
|
|
27402
27384
|
case 8:
|
|
27403
27385
|
data = _c.sent();
|
|
27404
27386
|
if (!data)
|
|
27405
|
-
throw { code: ErrorCodes
|
|
27387
|
+
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
27406
27388
|
this._usageMode = this.computeUsageMode(data);
|
|
27407
27389
|
return [4 /*yield*/, this.onEntityLoaded(data, opts)];
|
|
27408
27390
|
case 9:
|
|
@@ -27441,7 +27423,7 @@
|
|
|
27441
27423
|
if (!_this.dirty) {
|
|
27442
27424
|
if (_this.debug)
|
|
27443
27425
|
console.debug("[data-editor] Changes detected on server, at {" + data.updateDate + "}: reloading page...");
|
|
27444
|
-
_this.
|
|
27426
|
+
_this.updateView(data);
|
|
27445
27427
|
}
|
|
27446
27428
|
else {
|
|
27447
27429
|
if (_this.debug)
|
|
@@ -28179,10 +28161,10 @@
|
|
|
28179
28161
|
exports.UserEventFilter = __decorate([
|
|
28180
28162
|
EntityClass({ typename: 'UserEventVO' })
|
|
28181
28163
|
], exports.UserEventFilter);
|
|
28182
|
-
var SaveQuery = core.gql(templateObject_1$
|
|
28183
|
-
var LoadAllQuery = core.gql(templateObject_2$
|
|
28184
|
-
var DeleteByIdsMutation = core.gql(templateObject_3$
|
|
28185
|
-
var LoadAllWithContentQuery = core.gql(templateObject_4$
|
|
28164
|
+
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);
|
|
28165
|
+
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);
|
|
28166
|
+
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"])));
|
|
28167
|
+
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);
|
|
28186
28168
|
var UserEventService = /** @class */ (function (_super) {
|
|
28187
28169
|
__extends(UserEventService, _super);
|
|
28188
28170
|
function UserEventService(graphql, accountService, network, translate, toastController, environment) {
|
|
@@ -28503,7 +28485,7 @@
|
|
|
28503
28485
|
};
|
|
28504
28486
|
return UserEventService;
|
|
28505
28487
|
}(BaseGraphqlService));
|
|
28506
|
-
UserEventService.ɵprov =
|
|
28488
|
+
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" });
|
|
28507
28489
|
UserEventService.decorators = [
|
|
28508
28490
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
28509
28491
|
];
|
|
@@ -28515,7 +28497,7 @@
|
|
|
28515
28497
|
{ type: i1$5.ToastController },
|
|
28516
28498
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
28517
28499
|
]; };
|
|
28518
|
-
var templateObject_1$
|
|
28500
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
|
|
28519
28501
|
|
|
28520
28502
|
var ICONS_MAP = {
|
|
28521
28503
|
DEBUG_DATA: { matIcon: 'bug_report' },
|
|
@@ -28777,16 +28759,16 @@
|
|
|
28777
28759
|
], exports.PersonFilter);
|
|
28778
28760
|
|
|
28779
28761
|
var PersonFragments = {
|
|
28780
|
-
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 }"])))
|
|
28762
|
+
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 }"])))
|
|
28781
28763
|
};
|
|
28782
28764
|
// Load persons query
|
|
28783
28765
|
var PersonQueries = {
|
|
28784
|
-
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),
|
|
28785
|
-
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)
|
|
28766
|
+
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),
|
|
28767
|
+
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)
|
|
28786
28768
|
};
|
|
28787
28769
|
var PersonMutations = {
|
|
28788
|
-
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),
|
|
28789
|
-
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 }"])))
|
|
28770
|
+
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),
|
|
28771
|
+
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 }"])))
|
|
28790
28772
|
};
|
|
28791
28773
|
var PersonService = /** @class */ (function (_super_1) {
|
|
28792
28774
|
__extends(PersonService, _super_1);
|
|
@@ -28910,7 +28892,7 @@
|
|
|
28910
28892
|
};
|
|
28911
28893
|
return PersonService;
|
|
28912
28894
|
}(BaseEntityService));
|
|
28913
|
-
PersonService.ɵprov =
|
|
28895
|
+
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" });
|
|
28914
28896
|
PersonService.decorators = [
|
|
28915
28897
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
28916
28898
|
];
|
|
@@ -28920,7 +28902,7 @@
|
|
|
28920
28902
|
{ type: NetworkService },
|
|
28921
28903
|
{ type: EntitiesStorage }
|
|
28922
28904
|
]; };
|
|
28923
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
28905
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
|
|
28924
28906
|
|
|
28925
28907
|
var PersonValidatorService = /** @class */ (function () {
|
|
28926
28908
|
function PersonValidatorService(formBuilder, accountValidatorService) {
|
|
@@ -28943,7 +28925,7 @@
|
|
|
28943
28925
|
};
|
|
28944
28926
|
return PersonValidatorService;
|
|
28945
28927
|
}());
|
|
28946
|
-
PersonValidatorService.ɵprov =
|
|
28928
|
+
PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
|
|
28947
28929
|
PersonValidatorService.decorators = [
|
|
28948
28930
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
28949
28931
|
];
|
|
@@ -29154,16 +29136,16 @@
|
|
|
29154
29136
|
];
|
|
29155
29137
|
AdminModule.ctorParameters = function () { return []; };
|
|
29156
29138
|
|
|
29157
|
-
var ɵ0 = {
|
|
29139
|
+
var ɵ0$c = {
|
|
29158
29140
|
profile: 'ADMIN'
|
|
29159
29141
|
};
|
|
29160
|
-
var routes
|
|
29142
|
+
var routes = [
|
|
29161
29143
|
{
|
|
29162
29144
|
path: 'users',
|
|
29163
29145
|
pathMatch: 'full',
|
|
29164
29146
|
component: UsersPage,
|
|
29165
29147
|
canActivate: [AuthGuardService],
|
|
29166
|
-
data: ɵ0
|
|
29148
|
+
data: ɵ0$c
|
|
29167
29149
|
}
|
|
29168
29150
|
];
|
|
29169
29151
|
var AdminRoutingModule = /** @class */ (function () {
|
|
@@ -29176,36 +29158,36 @@
|
|
|
29176
29158
|
imports: [
|
|
29177
29159
|
SharedRoutingModule,
|
|
29178
29160
|
AdminModule,
|
|
29179
|
-
i3.RouterModule.forChild(routes
|
|
29161
|
+
i3.RouterModule.forChild(routes)
|
|
29180
29162
|
],
|
|
29181
29163
|
exports: [i3.RouterModule]
|
|
29182
29164
|
},] }
|
|
29183
29165
|
];
|
|
29184
29166
|
|
|
29185
|
-
var ErrorCodes = {
|
|
29167
|
+
var ErrorCodes$2 = {
|
|
29186
29168
|
LOAD_PERSONS_ERROR: 100,
|
|
29187
29169
|
SAVE_PERSONS_ERROR: 101,
|
|
29188
29170
|
DELETE_PERSONS_ERROR: 102,
|
|
29189
29171
|
};
|
|
29190
29172
|
|
|
29191
|
-
var EntityTestClass
|
|
29173
|
+
var EntityTestClass = /** @class */ (function () {
|
|
29192
29174
|
function EntityTestClass() {
|
|
29193
29175
|
}
|
|
29194
29176
|
return EntityTestClass;
|
|
29195
29177
|
}());
|
|
29196
|
-
var FAKE_ENTITIES
|
|
29178
|
+
var FAKE_ENTITIES = [
|
|
29197
29179
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
29198
29180
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
29199
29181
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
29200
29182
|
];
|
|
29201
|
-
function deepCopy
|
|
29183
|
+
function deepCopy(values, size) {
|
|
29202
29184
|
if (isNil(size)) {
|
|
29203
|
-
return (values || FAKE_ENTITIES
|
|
29185
|
+
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
29204
29186
|
}
|
|
29205
29187
|
var result = [];
|
|
29206
29188
|
var i = 1;
|
|
29207
29189
|
while (result.length < size) {
|
|
29208
|
-
result = result.concat((values || FAKE_ENTITIES
|
|
29190
|
+
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
29209
29191
|
var name = entity.name + ' #' + i;
|
|
29210
29192
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
29211
29193
|
}));
|
|
@@ -29215,7 +29197,7 @@
|
|
|
29215
29197
|
var AutocompleteTestPage = /** @class */ (function () {
|
|
29216
29198
|
function AutocompleteTestPage(formBuilder) {
|
|
29217
29199
|
this.formBuilder = formBuilder;
|
|
29218
|
-
this._items = deepCopy
|
|
29200
|
+
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
29219
29201
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
29220
29202
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
29221
29203
|
this.memoryHide = false;
|
|
@@ -29260,7 +29242,7 @@
|
|
|
29260
29242
|
});
|
|
29261
29243
|
// From items
|
|
29262
29244
|
this.autocompleteFields.add('entity-items-large', {
|
|
29263
|
-
items: FAKE_ENTITIES
|
|
29245
|
+
items: FAKE_ENTITIES.slice(),
|
|
29264
29246
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
29265
29247
|
displayWith: this.entityToString
|
|
29266
29248
|
});
|
|
@@ -29273,12 +29255,12 @@
|
|
|
29273
29255
|
var _this = this;
|
|
29274
29256
|
return __generator(this, function (_a) {
|
|
29275
29257
|
data = {
|
|
29276
|
-
entity: deepCopy
|
|
29258
|
+
entity: deepCopy(FAKE_ENTITIES)[0],
|
|
29277
29259
|
// This item is NOT in the items list => i should be displayed anyway
|
|
29278
29260
|
missingEntity: {
|
|
29279
29261
|
id: -1, label: '??', name: 'Missing item'
|
|
29280
29262
|
},
|
|
29281
|
-
disableEntity: deepCopy
|
|
29263
|
+
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
29282
29264
|
};
|
|
29283
29265
|
this.form.setValue(data);
|
|
29284
29266
|
// Load observables
|
|
@@ -29443,13 +29425,13 @@
|
|
|
29443
29425
|
{ type: i1.FormBuilder }
|
|
29444
29426
|
]; };
|
|
29445
29427
|
|
|
29446
|
-
var moment$
|
|
29428
|
+
var moment$5 = momentImported__namespace;
|
|
29447
29429
|
var SwipeTestPage = /** @class */ (function () {
|
|
29448
29430
|
function SwipeTestPage(formBuilder, dateFormatPipe) {
|
|
29449
29431
|
this.formBuilder = formBuilder;
|
|
29450
29432
|
this.dateFormatPipe = dateFormatPipe;
|
|
29451
29433
|
this.$dates = new rxjs.BehaviorSubject(undefined);
|
|
29452
|
-
this._today = moment$
|
|
29434
|
+
this._today = moment$5().startOf('day');
|
|
29453
29435
|
this.form = formBuilder.group({
|
|
29454
29436
|
empty: [null, i1.Validators.required],
|
|
29455
29437
|
date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
|
|
@@ -29463,7 +29445,7 @@
|
|
|
29463
29445
|
var _this = this;
|
|
29464
29446
|
var dates = [];
|
|
29465
29447
|
for (var d = 0; d < 7; d++) {
|
|
29466
|
-
dates[d] = moment$
|
|
29448
|
+
dates[d] = moment$5(this._today).add(d - 3, 'day');
|
|
29467
29449
|
}
|
|
29468
29450
|
this.$dates.next(dates);
|
|
29469
29451
|
this.loadData();
|
|
@@ -29510,7 +29492,7 @@
|
|
|
29510
29492
|
{ type: DateFormatPipe }
|
|
29511
29493
|
]; };
|
|
29512
29494
|
|
|
29513
|
-
var moment = momentImported__namespace;
|
|
29495
|
+
var moment$6 = momentImported__namespace;
|
|
29514
29496
|
var DateTimeTestPage = /** @class */ (function () {
|
|
29515
29497
|
function DateTimeTestPage(platform, formBuilder, cd) {
|
|
29516
29498
|
this.platform = platform;
|
|
@@ -29546,7 +29528,7 @@
|
|
|
29546
29528
|
var now, data;
|
|
29547
29529
|
var _this = this;
|
|
29548
29530
|
return __generator(this, function (_a) {
|
|
29549
|
-
now = moment();
|
|
29531
|
+
now = moment$6();
|
|
29550
29532
|
data = {
|
|
29551
29533
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
29552
29534
|
enable: toDateISOString(now),
|
|
@@ -29611,12 +29593,12 @@
|
|
|
29611
29593
|
{ type: i0.ChangeDetectorRef }
|
|
29612
29594
|
]; };
|
|
29613
29595
|
|
|
29614
|
-
var EntityTestClass = /** @class */ (function () {
|
|
29596
|
+
var EntityTestClass$1 = /** @class */ (function () {
|
|
29615
29597
|
function EntityTestClass() {
|
|
29616
29598
|
}
|
|
29617
29599
|
return EntityTestClass;
|
|
29618
29600
|
}());
|
|
29619
|
-
var FAKE_ENTITIES = [
|
|
29601
|
+
var FAKE_ENTITIES$1 = [
|
|
29620
29602
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
29621
29603
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
29622
29604
|
{ id: 3, label: 'CCC', name: 'Item C' },
|
|
@@ -29625,14 +29607,14 @@
|
|
|
29625
29607
|
{ id: 6, label: 'FFF', name: 'Item F' },
|
|
29626
29608
|
{ id: 7, label: 'GGG', name: 'Item G' }
|
|
29627
29609
|
];
|
|
29628
|
-
function deepCopy(values, size) {
|
|
29610
|
+
function deepCopy$1(values, size) {
|
|
29629
29611
|
if (isNil(size)) {
|
|
29630
|
-
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
29612
|
+
return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
|
|
29631
29613
|
}
|
|
29632
29614
|
var result = [];
|
|
29633
29615
|
var i = 1;
|
|
29634
29616
|
while (result.length < size) {
|
|
29635
|
-
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
29617
|
+
result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
|
|
29636
29618
|
var name = entity.name + ' #' + i;
|
|
29637
29619
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
29638
29620
|
}));
|
|
@@ -29642,7 +29624,7 @@
|
|
|
29642
29624
|
var ChipsTestPage = /** @class */ (function () {
|
|
29643
29625
|
function ChipsTestPage(formBuilder) {
|
|
29644
29626
|
this.formBuilder = formBuilder;
|
|
29645
|
-
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
29627
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
|
|
29646
29628
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
29647
29629
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
29648
29630
|
this.form = formBuilder.group({
|
|
@@ -29685,7 +29667,7 @@
|
|
|
29685
29667
|
var items, data;
|
|
29686
29668
|
var _this = this;
|
|
29687
29669
|
return __generator(this, function (_a) {
|
|
29688
|
-
items = deepCopy(FAKE_ENTITIES);
|
|
29670
|
+
items = deepCopy$1(FAKE_ENTITIES$1);
|
|
29689
29671
|
data = {
|
|
29690
29672
|
entity: items.slice(0, 1),
|
|
29691
29673
|
entityInitial: items.slice(1, 2),
|
|
@@ -29833,7 +29815,7 @@
|
|
|
29833
29815
|
{ label: 'Shared directives', divider: true },
|
|
29834
29816
|
{ label: 'Badge icon directive', page: '/testing/shared/badge-icon' }
|
|
29835
29817
|
];
|
|
29836
|
-
var routes$
|
|
29818
|
+
var routes$1 = [
|
|
29837
29819
|
{
|
|
29838
29820
|
path: '',
|
|
29839
29821
|
pathMatch: 'full',
|
|
@@ -29888,7 +29870,7 @@
|
|
|
29888
29870
|
i1.ReactiveFormsModule,
|
|
29889
29871
|
SharedMaterialModule,
|
|
29890
29872
|
i1$2.TranslateModule.forChild(),
|
|
29891
|
-
i3.RouterModule.forChild(routes$
|
|
29873
|
+
i3.RouterModule.forChild(routes$1)
|
|
29892
29874
|
],
|
|
29893
29875
|
declarations: [
|
|
29894
29876
|
DateTimeTestPage,
|
|
@@ -29948,7 +29930,7 @@
|
|
|
29948
29930
|
{ type: i1$2.TranslateService }
|
|
29949
29931
|
]; };
|
|
29950
29932
|
|
|
29951
|
-
var routes$
|
|
29933
|
+
var routes$2 = [
|
|
29952
29934
|
{
|
|
29953
29935
|
path: 'toast',
|
|
29954
29936
|
pathMatch: 'full',
|
|
@@ -29966,7 +29948,7 @@
|
|
|
29966
29948
|
i1$4.CommonModule,
|
|
29967
29949
|
i1$5.IonicModule,
|
|
29968
29950
|
i1$2.TranslateModule.forChild(),
|
|
29969
|
-
i3.RouterModule.forChild(routes$
|
|
29951
|
+
i3.RouterModule.forChild(routes$2)
|
|
29970
29952
|
],
|
|
29971
29953
|
declarations: [
|
|
29972
29954
|
ToastTestingPage
|
|
@@ -30046,7 +30028,7 @@
|
|
|
30046
30028
|
{ type: i1$5.PopoverController }
|
|
30047
30029
|
]; };
|
|
30048
30030
|
|
|
30049
|
-
var routes$
|
|
30031
|
+
var routes$3 = [
|
|
30050
30032
|
{
|
|
30051
30033
|
path: 'upload-file',
|
|
30052
30034
|
pathMatch: 'full',
|
|
@@ -30064,7 +30046,7 @@
|
|
|
30064
30046
|
i1$4.CommonModule,
|
|
30065
30047
|
i1$5.IonicModule,
|
|
30066
30048
|
i1$2.TranslateModule.forChild(),
|
|
30067
|
-
i3.RouterModule.forChild(routes$
|
|
30049
|
+
i3.RouterModule.forChild(routes$3)
|
|
30068
30050
|
],
|
|
30069
30051
|
declarations: [
|
|
30070
30052
|
UploadFileTestingPage
|
|
@@ -30488,7 +30470,7 @@
|
|
|
30488
30470
|
{ type: i1$5.PopoverController }
|
|
30489
30471
|
]; };
|
|
30490
30472
|
|
|
30491
|
-
var routes$
|
|
30473
|
+
var routes$4 = [
|
|
30492
30474
|
{
|
|
30493
30475
|
path: 'text-popover',
|
|
30494
30476
|
pathMatch: 'full',
|
|
@@ -30506,7 +30488,7 @@
|
|
|
30506
30488
|
i1$4.CommonModule,
|
|
30507
30489
|
i1$5.IonicModule,
|
|
30508
30490
|
i1$2.TranslateModule.forChild(),
|
|
30509
|
-
i3.RouterModule.forChild(routes$
|
|
30491
|
+
i3.RouterModule.forChild(routes$4)
|
|
30510
30492
|
],
|
|
30511
30493
|
declarations: [
|
|
30512
30494
|
TextPopoverTestingPage
|
|
@@ -30523,7 +30505,7 @@
|
|
|
30523
30505
|
{ label: 'Table', page: '/testing/core/table' },
|
|
30524
30506
|
{ label: 'Text popover', page: '/testing/core/text-popover' }
|
|
30525
30507
|
];
|
|
30526
|
-
var routes = [
|
|
30508
|
+
var routes$5 = [
|
|
30527
30509
|
{
|
|
30528
30510
|
path: '',
|
|
30529
30511
|
pathMatch: 'full',
|
|
@@ -30550,7 +30532,7 @@
|
|
|
30550
30532
|
imports: [
|
|
30551
30533
|
i1$4.CommonModule,
|
|
30552
30534
|
i1$2.TranslateModule.forChild(),
|
|
30553
|
-
i3.RouterModule.forChild(routes),
|
|
30535
|
+
i3.RouterModule.forChild(routes$5),
|
|
30554
30536
|
// Sub modules
|
|
30555
30537
|
TableTestingModule,
|
|
30556
30538
|
TextPopoverTestingModule
|
|
@@ -30672,7 +30654,7 @@
|
|
|
30672
30654
|
exports.EntityStore = EntityStore;
|
|
30673
30655
|
exports.EntityUtils = EntityUtils;
|
|
30674
30656
|
exports.Environment = Environment;
|
|
30675
|
-
exports.ErrorCodes = ErrorCodes;
|
|
30657
|
+
exports.ErrorCodes = ErrorCodes$2;
|
|
30676
30658
|
exports.EvenPipe = EvenPipe;
|
|
30677
30659
|
exports.FileResponse = FileResponse;
|
|
30678
30660
|
exports.FileService = FileService;
|
|
@@ -30684,7 +30666,7 @@
|
|
|
30684
30666
|
exports.FormErrorTranslatePipe = FormErrorTranslatePipe;
|
|
30685
30667
|
exports.FormErrorTranslator = FormErrorTranslator;
|
|
30686
30668
|
exports.FormFieldValuesHolder = FormFieldValuesHolder;
|
|
30687
|
-
exports.Fragments = Fragments;
|
|
30669
|
+
exports.Fragments = Fragments$1;
|
|
30688
30670
|
exports.GraphqlService = GraphqlService;
|
|
30689
30671
|
exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
|
|
30690
30672
|
exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
|
|
@@ -30962,22 +30944,22 @@
|
|
|
30962
30944
|
exports.waitForTrue = waitForTrue;
|
|
30963
30945
|
exports.waitIdle = waitIdle;
|
|
30964
30946
|
exports.waitWhilePending = waitWhilePending;
|
|
30965
|
-
exports
|
|
30966
|
-
exports
|
|
30967
|
-
exports
|
|
30968
|
-
exports
|
|
30969
|
-
exports
|
|
30970
|
-
exports
|
|
30971
|
-
exports
|
|
30972
|
-
exports
|
|
30973
|
-
exports
|
|
30974
|
-
exports
|
|
30975
|
-
exports
|
|
30976
|
-
exports
|
|
30977
|
-
exports
|
|
30978
|
-
exports
|
|
30947
|
+
exports.ɵ0 = ɵ0$1;
|
|
30948
|
+
exports.ɵa = CustomReuseStrategy;
|
|
30949
|
+
exports.ɵb = MatNumpadDomService;
|
|
30950
|
+
exports.ɵc = isFocusableElement;
|
|
30951
|
+
exports.ɵd = RegisterForm;
|
|
30952
|
+
exports.ɵe = AccountValidatorService;
|
|
30953
|
+
exports.ɵf = RegisterModal;
|
|
30954
|
+
exports.ɵg = UserSettingsValidatorService;
|
|
30955
|
+
exports.ɵh = LocalSettingsValidatorService;
|
|
30956
|
+
exports.ɵi = AppIconComponent;
|
|
30957
|
+
exports.ɵj = NumpadTestPage;
|
|
30958
|
+
exports.ɵk = MatBadgeIconTestPage;
|
|
30959
|
+
exports.ɵl = ToastTestingModule;
|
|
30960
|
+
exports.ɵm = ToastTestingPage;
|
|
30979
30961
|
|
|
30980
30962
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
30981
30963
|
|
|
30982
|
-
}));
|
|
30964
|
+
})));
|
|
30983
30965
|
//# sourceMappingURL=sumaris-net.ngx-components.umd.js.map
|