@sumaris-net/ngx-components 0.25.15 → 0.25.16
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 +261 -285
- 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/public_api.js +2 -1
- package/fesm2015/sumaris-net.ngx-components.js +257 -272
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/cdk/table'), require('@angular/cdk/a11y'), require('@angular/cdk/overlay'), require('@angular/cdk/scrolling'), require('@angular/material/core'), require('@angular/material/table'), require('@angular/material/sort'), require('@angular/material/paginator'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/checkbox'), require('@angular/material/expansion'), require('@angular/material/toolbar'), require('@angular/material/icon'), require('@angular/material/button'), require('@angular/material/menu'), require('@angular/material/select'), require('@angular/material/card'), require('@angular/material/tabs'), require('@angular/material/stepper'), require('@angular/material/list'), require('@angular/material/button-toggle'), require('@angular/material/progress-spinner'), require('@angular/material/progress-bar'), require('@angular/material/radio'), require('@angular/material/badge'), require('@angular/material/slide-toggle'), require('@angular/material/dialog'), require('@angular/material/autocomplete'), require('@angular/forms'), require('rxjs'), require('rxjs/operators'), require('@ngx-translate/core'), require('@ionic/angular'), require('moment'), require('@angular/material-moment-adapter'), require('@ionic-native/keyboard/ngx'), require('angular2-text-mask'), require('ngx-material-timepicker'), require('@angular/material/datepicker'), require('@angular/animations'), require('@angular/material/divider'), require('@angular/material/tooltip'), require('@angular/material/chips'), require('@angular/router'), require('@angular/platform-browser'), require('@angular/common/http'), require('ngx-color-picker'), require('@ionic-native/native-audio/ngx'), require('@ionic-native/vibration/ngx'), require('@ionic-native/audio-management/ngx'), require('@ionic-native/native-audio/ngx/index'), require('@ionic-native/vibration/ngx/index'), require('@ionic-native/audio-management/ngx/index'), require('uuid/v4'), require('@angular/cdk/drag-drop'), require('ngx-markdown'), require('tweetnacl'), require('@ionic/storage'), require('zone.js/dist/zone-error'), require('@ionic-native/splash-screen/ngx'), require('@ionic-native/network/ngx'), require('ionic-cache'), require('ionic-cache/dist/cache.service'), require('@ionic-native/network/ngx/index'), require('@ionic-native/splash-screen/ngx/index'), require('@ionic-native/status-bar/ngx'), require('@angular/cdk/platform'), require('@ionic-native/in-app-browser/ngx'), require('@apollo/client/core'), require('apollo-angular'), require('@apollo/client/link/ws'), require('@apollo/client/utilities'), require('@apollo/client/link/retry'), require('apollo-link-queue'), require('apollo-link-serialize'), require('apollo-link-logger'), require('apollo-angular/http'), require('apollo3-cache-persist'), require('@ionic-native/downloader/ngx'), require('@ionic-native/status-bar/ngx/index'), require('@ionic-native/keyboard/ngx/index'), require('@ionic-native/in-app-browser/ngx/index'), require('@ionic-native/downloader/ngx/index'), require('@e-is/ngx-material-table'), require('@angular/cdk/collections'), require('ngx-jdenticon'), require('tweetnacl-util'), require('scrypt-async'), require('hammerjs')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@sumaris-net/ngx-components', ['exports', '@angular/core', '@angular/common', '@angular/cdk/table', '@angular/cdk/a11y', '@angular/cdk/overlay', '@angular/cdk/scrolling', '@angular/material/core', '@angular/material/table', '@angular/material/sort', '@angular/material/paginator', '@angular/material/form-field', '@angular/material/input', '@angular/material/checkbox', '@angular/material/expansion', '@angular/material/toolbar', '@angular/material/icon', '@angular/material/button', '@angular/material/menu', '@angular/material/select', '@angular/material/card', '@angular/material/tabs', '@angular/material/stepper', '@angular/material/list', '@angular/material/button-toggle', '@angular/material/progress-spinner', '@angular/material/progress-bar', '@angular/material/radio', '@angular/material/badge', '@angular/material/slide-toggle', '@angular/material/dialog', '@angular/material/autocomplete', '@angular/forms', 'rxjs', 'rxjs/operators', '@ngx-translate/core', '@ionic/angular', 'moment', '@angular/material-moment-adapter', '@ionic-native/keyboard/ngx', 'angular2-text-mask', 'ngx-material-timepicker', '@angular/material/datepicker', '@angular/animations', '@angular/material/divider', '@angular/material/tooltip', '@angular/material/chips', '@angular/router', '@angular/platform-browser', '@angular/common/http', 'ngx-color-picker', '@ionic-native/native-audio/ngx', '@ionic-native/vibration/ngx', '@ionic-native/audio-management/ngx', '@ionic-native/native-audio/ngx/index', '@ionic-native/vibration/ngx/index', '@ionic-native/audio-management/ngx/index', 'uuid/v4', '@angular/cdk/drag-drop', 'ngx-markdown', 'tweetnacl', '@ionic/storage', 'zone.js/dist/zone-error', '@ionic-native/splash-screen/ngx', '@ionic-native/network/ngx', 'ionic-cache', 'ionic-cache/dist/cache.service', '@ionic-native/network/ngx/index', '@ionic-native/splash-screen/ngx/index', '@ionic-native/status-bar/ngx', '@angular/cdk/platform', '@ionic-native/in-app-browser/ngx', '@apollo/client/core', 'apollo-angular', '@apollo/client/link/ws', '@apollo/client/utilities', '@apollo/client/link/retry', 'apollo-link-queue', 'apollo-link-serialize', 'apollo-link-logger', 'apollo-angular/http', 'apollo3-cache-persist', '@ionic-native/downloader/ngx', '@ionic-native/status-bar/ngx/index', '@ionic-native/keyboard/ngx/index', '@ionic-native/in-app-browser/ngx/index', '@ionic-native/downloader/ngx/index', '@e-is/ngx-material-table', '@angular/cdk/collections', 'ngx-jdenticon', 'tweetnacl-util', 'scrypt-async', 'hammerjs'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global[
|
|
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.ngx$6, global['ionic-native']['status-bar'].ngx.index, global['ionic-native'].keyboard.ngx.index, global['ionic-native']['in-app-browser'].ngx.index, global.i18, global['e-is']['ngx-material-table'], global.ng.cdk.collections, global['ngx-jdenticon']));
|
|
5
|
+
}(this, (function (exports, i0, i1$4, table$1, a11y, overlay, scrolling, i1$3, table, sort$1, paginator, formField, input, checkbox, expansion, toolbar, icon, button, menu, select, card, tabs, stepper, list, buttonToggle, progressSpinner, progressBar, radio, badge, slideToggle, i2, autocomplete, i1, rxjs, operators, i1$2, i1$5, momentImported, i1$1, ngx, angular2TextMask, ngxMaterialTimepicker, datepicker, animations, divider, tooltip, chips, i3, i1$6, i2$1, ngxColorPicker, ngx$2, ngx$3, ngx$1, i2$2, i3$1, i4, uuidv4Imported, dragDrop, ngxMarkdown, tweetnacl, i3$2, zoneError, ngx$5, ngx$4, ionicCache, i6, i9, i10, ngx$7, i2$4, ngx$8, core, i2$3, ws, utilities, retry, QueueLink, SerializingLink, loggerLink, i3$3, apollo3CachePersist, ngx$6, i14, i15, i17, i18, ngxMaterialTable, collections, ngxJdenticon) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -15,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 () {
|
|
@@ -1157,19 +1134,19 @@
|
|
|
1157
1134
|
};
|
|
1158
1135
|
return MatAutocompleteConfigHolder;
|
|
1159
1136
|
}());
|
|
1160
|
-
var DEFAULT_VALUE_ACCESSOR
|
|
1137
|
+
var DEFAULT_VALUE_ACCESSOR = {
|
|
1161
1138
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
1162
1139
|
useExisting: i0.forwardRef(function () { return MatAutocompleteField; }),
|
|
1163
1140
|
multi: true
|
|
1164
1141
|
};
|
|
1165
|
-
var noop
|
|
1166
|
-
var ɵ0
|
|
1142
|
+
var noop = function () { };
|
|
1143
|
+
var ɵ0 = noop;
|
|
1167
1144
|
var MatAutocompleteField = /** @class */ (function () {
|
|
1168
1145
|
function MatAutocompleteField(cd, formGroupDir) {
|
|
1169
1146
|
this.cd = cd;
|
|
1170
1147
|
this.formGroupDir = formGroupDir;
|
|
1171
|
-
this._onChangeCallback = noop
|
|
1172
|
-
this._onTouchedCallback = noop
|
|
1148
|
+
this._onChangeCallback = noop;
|
|
1149
|
+
this._onTouchedCallback = noop;
|
|
1173
1150
|
this._subscription = new rxjs.Subscription();
|
|
1174
1151
|
this._filter$ = new rxjs.BehaviorSubject(undefined);
|
|
1175
1152
|
this._reload$ = new rxjs.Subject();
|
|
@@ -1833,7 +1810,7 @@
|
|
|
1833
1810
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
1834
1811
|
selector: 'mat-autocomplete-field',
|
|
1835
1812
|
template: "<ion-grid class=\"ion-no-padding\">\n <ion-row>\n <ion-col class=\"ion-no-padding\">\n <mat-form-field *ngIf=\"_readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n [title]=\"displayValue\"\n class=\"mat-form-field-disabled\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <!-- readonly -->\n <ng-container>\n <input matInput hidden type=\"text\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\" readonly>\n <ion-text>{{displayWith(value)}}</ion-text>\n </ng-container>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n\n </mat-form-field>\n\n <ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-disabled]=\"disabled\"\n [title]=\"displayValue\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <!-- Basic select -->\n <mat-select #matSelect\n *ngIf=\"!searchable; else searchableTemplate\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\"\n [tabindex]=\"_tabindex\"\n [panelClass]=\"classList\"\n [style.width]=\"panelWidth\"\n (focus)=\"filterMatSelectFocusEvent($event)\"\n (blur)=\"filterMatSelectBlurEvent($event)\"\n (keydown.escape)=\"onKeydownEscape.emit($event)\"\n [compareWith]=\"compareWith\"\n [multiple]=\"multiple\"\n [required]=\"required\">\n <mat-select-trigger>{{ displayWith(value) }}</mat-select-trigger>\n\n <!-- header -->\n <ion-row class=\"mat-autocomplete-header ion-no-padding\">\n <ion-col *ngFor=\"let attr of displayAttributes; index as i; last as isLast\" [size]=\"displayColumnSizes[i]\">\n <ion-label [innerHTML]=\"displayColumnNames[i] | translate\"></ion-label>\n </ion-col>\n </ion-row>\n\n <!-- None option -->\n <mat-option *ngIf=\"!required\" class=\"ion-no-padding\">\n <ion-row class=\"ion-no-padding\">\n <ion-col class=\"ion-no-padding\">\n <ion-label><i translate>COMMON.EMPTY_OPTION</i></ion-label>\n </ion-col>\n </ion-row>\n </mat-option>\n\n <ng-container *ngIf=\"$filteredItems | async; let items\">\n <!-- No item option -->\n <mat-option *ngIf=\"items | isEmptyArray\" class=\"ion-padding text-italic\" disabled>\n <ion-label>{{noResultMessage | translate}}</ion-label>\n </mat-option>\n\n <!-- options -->\n <mat-option *ngFor=\"let item of items\" [value]=\"item\" class=\"ion-no-padding\">\n <ion-row [classList]=\"item.classList\">\n <ion-col *ngFor=\"let path of displayAttributes; index as i;\"\n [size]=\"displayColumnSizes[i]\">\n <ion-text>{{item | propertyGet: path }}</ion-text>\n </ion-col>\n </ion-row>\n </mat-option>\n\n <!-- More item -->\n <mat-option *ngIf=\"_moreItemsCount\" (ngInit)=\"_initMatSelectInfiniteScroll()\"\n class=\"ion-padding\" disabled>\n <ion-skeleton-text [animated]=\"true\" style=\"width: 100%\"></ion-skeleton-text>\n </mat-option>\n </ng-container>\n </mat-select>\n\n\n <!--\n NOTE :\n - \"selectInputContent($event) || onFocus.emit($event)\" : call onFocus only when to the input is empty (nothing to select)\n -->\n <ng-template #searchableTemplate>\n <input matInput #matInputText type=\"text\"\n [matAutocomplete]=\"autocomplete\"\n [matAutocompletePosition]=\"matAutocompletePosition\"\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [appAutofocus]=\"autofocus\"\n [tabindex]=\"_tabindex\"\n [required]=\"required\"\n (click)=\"onClick.emit($event)\"\n (focus)=\"filterInputTextFocusInEvent($event)\"\n (blur)=\"filterInputTextBlurEvent($event)\"\n (keydown.escape)=\"onKeydownEscape.emit($event)\"\n (keyup.enter)=\"onKeyupEnter.emit($event)\"\n (keyup.arrowdown)=\"!autocomplete.opened && onDropButtonClick.emit($event)\">\n\n <!-- autocomplete -->\n <mat-autocomplete #autocomplete=\"matAutocomplete\"\n autoActiveFirstOption\n [displayWith]=\"displayWith\"\n [class]=\"classList\"\n [class.cdk-visually-hidden]=\"!searchable\"\n [panelWidth]=\"panelWidth\">\n\n <ion-row class=\"mat-autocomplete-header ion-no-padding\">\n <ion-col *ngFor=\"let attr of displayAttributes; index as i; last as last\" [size]=\"displayColumnSizes[i]\">\n <ion-label [innerHTML]=\"displayColumnNames[i] | translate\"></ion-label>\n <ion-text color=\"light\" *ngIf=\"last && itemCount; let count \" class=\"ion-float-end ion-padding-end\"><i>{{'COMMON.RESULT_COUNT'|translate: {count: count} }}</i></ion-text>\n </ion-col>\n </ion-row>\n\n <ng-container *ngIf=\"$filteredItems | async; else loadingTemplate; let items\">\n <!-- No item option -->\n <mat-option *ngIf=\"items | isEmptyArray\" class=\"ion-padding text-italic\" disabled>\n <ion-label>{{noResultMessage | translate}}</ion-label>\n </mat-option>\n\n <mat-option *ngFor=\"let item of items\" [value]=\"item\" class=\"ion-no-padding\">\n <ion-row [classList]=\"item.classList\">\n <ion-col *ngFor=\"let path of displayAttributes; index as i;\"\n [size]=\"displayColumnSizes[i]\">\n <ion-text [innerHTML]=\"item | propertyGet: path | highlight: { search: formControl.value, withAccent: highlightAccent }\"></ion-text>\n </ion-col>\n </ion-row>\n </mat-option>\n\n <!-- More item -->\n <mat-option *ngIf=\"_moreItemsCount\" (ngInit)=\"_initAutocompleteInfiniteScroll()\"\n class=\"ion-padding\" disabled>\n <ion-skeleton-text [animated]=\"true\" style=\"width: 100%\"></ion-skeleton-text>\n </mat-option>\n </ng-container>\n\n <!-- Loading spinner -->\n <ng-template #loadingTemplate>\n <mat-option *ngIf=\"(matInputText.value | strLength) >= suggestLengthThreshold; else waitMoreCharacterTemplate\"\n class=\"ion-padding\" disabled>\n <ion-skeleton-text [animated]=\"true\" style=\"width: 100%\"></ion-skeleton-text>\n </mat-option>\n </ng-template>\n\n <!-- Need more characters -->\n <ng-template #waitMoreCharacterTemplate>\n <mat-option class=\"ion-padding text-italic\" disabled>\n <ion-label>\n {{'INFO.PLEASE_TYPE_MORE_CHARACTERS'|translate:{minLength: suggestLengthThreshold} }}\n </ion-label>\n </mat-option>\n </ng-template>\n </mat-autocomplete>\n\n </ng-template>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('entity')\" translate>ERROR.FIELD_INVALID</mat-error>\n <ng-content select=\"[matError]\"></ng-content>\n\n </mat-form-field>\n </ng-template>\n </ion-col>\n <ion-col size=\"auto\" class=\"ion-align-self-center\">\n <ng-content select=\"[matAfter]\"></ng-content>\n </ion-col>\n </ion-row>\n\n</ion-grid>\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n\n\n<ng-template #matSuffixTemplate>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"searchable\"\n (click)=\"onDropButtonClick.emit($event)\"\n [hidden]=\"disabled\">\n <mat-icon class=\"large select-arrow\">arrow_drop_down</mat-icon>\n </button>\n <button matSuffix type=\"button\" mat-icon-button tabindex=\"-1\"\n *ngIf=\"enabled && mobile && !searchable && !multiple\"\n [title]=\"'COMMON.BTN_SEARCH'|translate\"\n (click)=\"toggleSearch($event)\">\n <mat-icon>search</mat-icon>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clearValue($event)\"\n [hidden]=\"disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <ng-content select=\"[matSuffix]\"></ng-content>\n</ng-template>\n",
|
|
1836
|
-
providers: [DEFAULT_VALUE_ACCESSOR
|
|
1813
|
+
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
1837
1814
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1838
1815
|
styles: [":host{display:inline-block;position:relative}:host.ion-text-wrap ion-label{white-space:normal!important}button[hidden]{display:none}mat-icon.select-arrow{color:rgba(0,0,0,.47);font-size:150%}.fact-scroll-viewport{height:100%;width:100%}.fact-item{height:54px;display:flex}.fact-item .fact-date{min-width:100px;text-align:center;font-size:24pt}.fact-item .fact-date,.fact-item .fact-text{height:100%;align-items:center;justify-content:center;display:flex}.fact-item .fact-text{border-radius:10px}cdk-virtual-scroll-viewport{border:1px solid #000}cdk-virtual-scroll-viewport li{list-style:none}"]
|
|
1839
1816
|
},] }
|
|
@@ -1911,7 +1888,7 @@
|
|
|
1911
1888
|
};
|
|
1912
1889
|
return DateFormatPipe;
|
|
1913
1890
|
}());
|
|
1914
|
-
DateFormatPipe.ɵprov =
|
|
1891
|
+
DateFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFormatPipe_Factory() { return new DateFormatPipe(i0.ɵɵinject(i1$1.MomentDateAdapter), i0.ɵɵinject(i1$2.TranslateService)); }, token: DateFormatPipe, providedIn: "root" });
|
|
1915
1892
|
DateFormatPipe.decorators = [
|
|
1916
1893
|
{ type: i0.Pipe, args: [{
|
|
1917
1894
|
name: 'dateFormat'
|
|
@@ -1923,7 +1900,7 @@
|
|
|
1923
1900
|
{ type: i1$2.TranslateService }
|
|
1924
1901
|
]; };
|
|
1925
1902
|
|
|
1926
|
-
var moment
|
|
1903
|
+
var moment = momentImported__namespace;
|
|
1927
1904
|
var DateDiffDurationPipe = /** @class */ (function () {
|
|
1928
1905
|
function DateDiffDurationPipe(dateAdapter, translate) {
|
|
1929
1906
|
var _this = this;
|
|
@@ -1940,10 +1917,10 @@
|
|
|
1940
1917
|
return this.format(startDate, endDate);
|
|
1941
1918
|
};
|
|
1942
1919
|
DateDiffDurationPipe.prototype.format = function (startDate, endDate) {
|
|
1943
|
-
var duration = moment
|
|
1920
|
+
var duration = moment.duration(endDate.diff(startDate));
|
|
1944
1921
|
if (duration.asMinutes() < 0)
|
|
1945
1922
|
return '';
|
|
1946
|
-
var timeDuration = moment
|
|
1923
|
+
var timeDuration = moment(0)
|
|
1947
1924
|
.hour(duration.hours())
|
|
1948
1925
|
.minute(duration.minutes());
|
|
1949
1926
|
var days = Math.floor(duration.asDays());
|
|
@@ -1951,7 +1928,7 @@
|
|
|
1951
1928
|
};
|
|
1952
1929
|
return DateDiffDurationPipe;
|
|
1953
1930
|
}());
|
|
1954
|
-
DateDiffDurationPipe.ɵprov =
|
|
1931
|
+
DateDiffDurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateDiffDurationPipe_Factory() { return new DateDiffDurationPipe(i0.ɵɵinject(i1$3.DateAdapter), i0.ɵɵinject(i1$2.TranslateService)); }, token: DateDiffDurationPipe, providedIn: "root" });
|
|
1955
1932
|
DateDiffDurationPipe.decorators = [
|
|
1956
1933
|
{ type: i0.Pipe, args: [{
|
|
1957
1934
|
name: 'dateDiffDuration'
|
|
@@ -1973,7 +1950,7 @@
|
|
|
1973
1950
|
};
|
|
1974
1951
|
return DateFromNowPipe;
|
|
1975
1952
|
}());
|
|
1976
|
-
DateFromNowPipe.ɵprov =
|
|
1953
|
+
DateFromNowPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0.ɵɵinject(i1$1.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
|
|
1977
1954
|
DateFromNowPipe.decorators = [
|
|
1978
1955
|
{ type: i0.Pipe, args: [{
|
|
1979
1956
|
name: 'dateFromNow'
|
|
@@ -2042,7 +2019,7 @@
|
|
|
2042
2019
|
value *= -1;
|
|
2043
2020
|
}
|
|
2044
2021
|
}
|
|
2045
|
-
var degrees = roundFloat
|
|
2022
|
+
var degrees = roundFloat(value, opts.maxDecimals).toString();
|
|
2046
2023
|
// Add sign
|
|
2047
2024
|
var sign = negative ? '-' : '+';
|
|
2048
2025
|
if (opts.placeholderChar) {
|
|
@@ -2093,7 +2070,7 @@
|
|
|
2093
2070
|
}
|
|
2094
2071
|
var degrees = Math.trunc(value);
|
|
2095
2072
|
var minutes = Math.trunc((value - degrees) * 60);
|
|
2096
|
-
var seconds = roundFloat
|
|
2073
|
+
var seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
|
|
2097
2074
|
while (seconds >= 60) {
|
|
2098
2075
|
seconds -= 60;
|
|
2099
2076
|
minutes += 1;
|
|
@@ -2161,7 +2138,7 @@
|
|
|
2161
2138
|
}
|
|
2162
2139
|
}
|
|
2163
2140
|
var degrees = Math.trunc(value);
|
|
2164
|
-
var minutes = roundFloat
|
|
2141
|
+
var minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
|
|
2165
2142
|
while (minutes >= 60) {
|
|
2166
2143
|
minutes -= 60;
|
|
2167
2144
|
degrees += 1;
|
|
@@ -2212,15 +2189,15 @@
|
|
|
2212
2189
|
return NaN;
|
|
2213
2190
|
}
|
|
2214
2191
|
if (pattern === 'DD')
|
|
2215
|
-
return roundFloat
|
|
2192
|
+
return roundFloat(degrees, maxDecimals);
|
|
2216
2193
|
var minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
|
|
2217
2194
|
var seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
|
|
2218
2195
|
var direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
|
|
2219
2196
|
var sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
|
|
2220
2197
|
degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
|
|
2221
|
-
return roundFloat
|
|
2198
|
+
return roundFloat(degrees, maxDecimals);
|
|
2222
2199
|
}
|
|
2223
|
-
function roundFloat
|
|
2200
|
+
function roundFloat(input, maxDecimals) {
|
|
2224
2201
|
if (maxDecimals > 0) {
|
|
2225
2202
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
2226
2203
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -2243,7 +2220,7 @@
|
|
|
2243
2220
|
};
|
|
2244
2221
|
return LatLongFormatPipe;
|
|
2245
2222
|
}());
|
|
2246
|
-
LatLongFormatPipe.ɵprov =
|
|
2223
|
+
LatLongFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
|
|
2247
2224
|
LatLongFormatPipe.decorators = [
|
|
2248
2225
|
{ type: i0.Pipe, args: [{
|
|
2249
2226
|
name: 'latLongFormat'
|
|
@@ -2256,7 +2233,7 @@
|
|
|
2256
2233
|
}
|
|
2257
2234
|
return LatitudeFormatPipe;
|
|
2258
2235
|
}());
|
|
2259
|
-
LatitudeFormatPipe.ɵprov =
|
|
2236
|
+
LatitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
|
|
2260
2237
|
LatitudeFormatPipe.decorators = [
|
|
2261
2238
|
{ type: i0.Pipe, args: [{
|
|
2262
2239
|
name: 'latitudeFormat'
|
|
@@ -2269,7 +2246,7 @@
|
|
|
2269
2246
|
}
|
|
2270
2247
|
return LongitudeFormatPipe;
|
|
2271
2248
|
}());
|
|
2272
|
-
LongitudeFormatPipe.ɵprov =
|
|
2249
|
+
LongitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
|
|
2273
2250
|
LongitudeFormatPipe.decorators = [
|
|
2274
2251
|
{ type: i0.Pipe, args: [{
|
|
2275
2252
|
name: 'longitudeFormat'
|
|
@@ -2292,7 +2269,7 @@
|
|
|
2292
2269
|
};
|
|
2293
2270
|
return NumberFormatPipe;
|
|
2294
2271
|
}());
|
|
2295
|
-
NumberFormatPipe.ɵprov =
|
|
2272
|
+
NumberFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
|
|
2296
2273
|
NumberFormatPipe.decorators = [
|
|
2297
2274
|
{ type: i0.Pipe, args: [{
|
|
2298
2275
|
name: 'numberFormat'
|
|
@@ -2335,7 +2312,7 @@
|
|
|
2335
2312
|
};
|
|
2336
2313
|
return HighlightPipe;
|
|
2337
2314
|
}());
|
|
2338
|
-
HighlightPipe.ɵprov =
|
|
2315
|
+
HighlightPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
|
|
2339
2316
|
HighlightPipe.decorators = [
|
|
2340
2317
|
{ type: i0.Pipe, args: [{
|
|
2341
2318
|
name: 'highlight'
|
|
@@ -2403,7 +2380,7 @@
|
|
|
2403
2380
|
{ type: i0.Pipe, args: [{ name: 'fileSize' },] }
|
|
2404
2381
|
];
|
|
2405
2382
|
|
|
2406
|
-
var moment$
|
|
2383
|
+
var moment$1 = momentImported__namespace;
|
|
2407
2384
|
var DATE_UNIX_TIMESTAMP = 'X';
|
|
2408
2385
|
var DATE_UNIX_MS_TIMESTAMP = 'x';
|
|
2409
2386
|
var DateUtils = /** @class */ (function () {
|
|
@@ -2438,32 +2415,32 @@
|
|
|
2438
2415
|
if (!value || momentImported.isMoment(value))
|
|
2439
2416
|
return value;
|
|
2440
2417
|
// Parse the input value, as a ISO date time
|
|
2441
|
-
var date = moment$
|
|
2418
|
+
var date = moment$1(value, DATE_ISO_PATTERN);
|
|
2442
2419
|
if (date.isValid())
|
|
2443
2420
|
return date;
|
|
2444
2421
|
// Not valid: trying to convert from unix timestamp
|
|
2445
2422
|
if (typeof value === 'string') {
|
|
2446
2423
|
console.warn('Wrong date format - Trying to convert from local time: ' + value);
|
|
2447
2424
|
if (value.length === 10) {
|
|
2448
|
-
return moment$
|
|
2425
|
+
return moment$1(value, DATE_UNIX_TIMESTAMP);
|
|
2449
2426
|
}
|
|
2450
2427
|
else if (value.length === 13) {
|
|
2451
|
-
return moment$
|
|
2428
|
+
return moment$1(value, DATE_UNIX_MS_TIMESTAMP);
|
|
2452
2429
|
}
|
|
2453
2430
|
}
|
|
2454
2431
|
console.warn('Unable to parse date: ' + value);
|
|
2455
2432
|
return undefined;
|
|
2456
2433
|
}
|
|
2457
2434
|
function fromUnixTimestamp(timeInSec) {
|
|
2458
|
-
return moment$
|
|
2435
|
+
return moment$1(timeInSec, DATE_UNIX_TIMESTAMP);
|
|
2459
2436
|
}
|
|
2460
2437
|
function fromUnixMsTimestamp(timeInMs) {
|
|
2461
|
-
return moment$
|
|
2438
|
+
return moment$1(timeInMs, DATE_UNIX_MS_TIMESTAMP);
|
|
2462
2439
|
}
|
|
2463
2440
|
function toDuration(value, unit) {
|
|
2464
2441
|
if (!value)
|
|
2465
2442
|
return undefined;
|
|
2466
|
-
var duration = moment$
|
|
2443
|
+
var duration = moment$1.duration(value, unit);
|
|
2467
2444
|
// fix 990+ ms
|
|
2468
2445
|
if (duration.milliseconds() >= 990) {
|
|
2469
2446
|
duration.add(1000 - duration.milliseconds(), 'ms');
|
|
@@ -2493,7 +2470,7 @@
|
|
|
2493
2470
|
};
|
|
2494
2471
|
return DurationPipe;
|
|
2495
2472
|
}());
|
|
2496
|
-
DurationPipe.ɵprov =
|
|
2473
|
+
DurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0.ɵɵinject(i1$2.TranslateService)); }, token: DurationPipe, providedIn: "root" });
|
|
2497
2474
|
DurationPipe.decorators = [
|
|
2498
2475
|
{ type: i0.Pipe, args: [{
|
|
2499
2476
|
name: 'duration'
|
|
@@ -2517,7 +2494,7 @@
|
|
|
2517
2494
|
};
|
|
2518
2495
|
return MathAbsPipe;
|
|
2519
2496
|
}());
|
|
2520
|
-
MathAbsPipe.ɵprov =
|
|
2497
|
+
MathAbsPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
|
|
2521
2498
|
MathAbsPipe.decorators = [
|
|
2522
2499
|
{ type: i0.Pipe, args: [{
|
|
2523
2500
|
name: 'mathAbs'
|
|
@@ -2532,7 +2509,7 @@
|
|
|
2532
2509
|
};
|
|
2533
2510
|
return EvenPipe;
|
|
2534
2511
|
}());
|
|
2535
|
-
EvenPipe.ɵprov =
|
|
2512
|
+
EvenPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
|
|
2536
2513
|
EvenPipe.decorators = [
|
|
2537
2514
|
{ type: i0.Pipe, args: [{
|
|
2538
2515
|
name: 'even'
|
|
@@ -2547,7 +2524,7 @@
|
|
|
2547
2524
|
};
|
|
2548
2525
|
return OddPipe;
|
|
2549
2526
|
}());
|
|
2550
|
-
OddPipe.ɵprov =
|
|
2527
|
+
OddPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
|
|
2551
2528
|
OddPipe.decorators = [
|
|
2552
2529
|
{ type: i0.Pipe, args: [{
|
|
2553
2530
|
name: 'odd'
|
|
@@ -2679,7 +2656,7 @@
|
|
|
2679
2656
|
};
|
|
2680
2657
|
return MapGetPipe;
|
|
2681
2658
|
}());
|
|
2682
|
-
MapGetPipe.ɵprov =
|
|
2659
|
+
MapGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
|
|
2683
2660
|
MapGetPipe.decorators = [
|
|
2684
2661
|
{ type: i0.Pipe, args: [{
|
|
2685
2662
|
name: 'mapGet'
|
|
@@ -2696,7 +2673,7 @@
|
|
|
2696
2673
|
};
|
|
2697
2674
|
return MapKeysPipe;
|
|
2698
2675
|
}());
|
|
2699
|
-
MapKeysPipe.ɵprov =
|
|
2676
|
+
MapKeysPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
|
|
2700
2677
|
MapKeysPipe.decorators = [
|
|
2701
2678
|
{ type: i0.Pipe, args: [{
|
|
2702
2679
|
name: 'mapKeys'
|
|
@@ -2713,7 +2690,7 @@
|
|
|
2713
2690
|
};
|
|
2714
2691
|
return MapValuesPipe;
|
|
2715
2692
|
}());
|
|
2716
|
-
MapValuesPipe.ɵprov =
|
|
2693
|
+
MapValuesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
|
|
2717
2694
|
MapValuesPipe.decorators = [
|
|
2718
2695
|
{ type: i0.Pipe, args: [{
|
|
2719
2696
|
name: 'mapValues'
|
|
@@ -2729,7 +2706,7 @@
|
|
|
2729
2706
|
};
|
|
2730
2707
|
return IsNotNilOrBlankPipe;
|
|
2731
2708
|
}());
|
|
2732
|
-
IsNotNilOrBlankPipe.ɵprov =
|
|
2709
|
+
IsNotNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
|
|
2733
2710
|
IsNotNilOrBlankPipe.decorators = [
|
|
2734
2711
|
{ type: i0.Pipe, args: [{
|
|
2735
2712
|
name: 'isNotNilOrBlank'
|
|
@@ -2744,7 +2721,7 @@
|
|
|
2744
2721
|
};
|
|
2745
2722
|
return IsNilOrBlankPipe;
|
|
2746
2723
|
}());
|
|
2747
|
-
IsNilOrBlankPipe.ɵprov =
|
|
2724
|
+
IsNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
|
|
2748
2725
|
IsNilOrBlankPipe.decorators = [
|
|
2749
2726
|
{ type: i0.Pipe, args: [{
|
|
2750
2727
|
name: 'isNilOrBlank'
|
|
@@ -2759,7 +2736,7 @@
|
|
|
2759
2736
|
};
|
|
2760
2737
|
return ToStringPipe;
|
|
2761
2738
|
}());
|
|
2762
|
-
ToStringPipe.ɵprov =
|
|
2739
|
+
ToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
|
|
2763
2740
|
ToStringPipe.decorators = [
|
|
2764
2741
|
{ type: i0.Pipe, args: [{
|
|
2765
2742
|
name: 'toString'
|
|
@@ -2774,7 +2751,7 @@
|
|
|
2774
2751
|
};
|
|
2775
2752
|
return StrLengthPipe;
|
|
2776
2753
|
}());
|
|
2777
|
-
StrLengthPipe.ɵprov =
|
|
2754
|
+
StrLengthPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
|
|
2778
2755
|
StrLengthPipe.decorators = [
|
|
2779
2756
|
{ type: i0.Pipe, args: [{
|
|
2780
2757
|
name: 'strLength'
|
|
@@ -2827,7 +2804,7 @@
|
|
|
2827
2804
|
};
|
|
2828
2805
|
return TranslateContextService;
|
|
2829
2806
|
}());
|
|
2830
|
-
TranslateContextService.ɵprov =
|
|
2807
|
+
TranslateContextService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0.ɵɵinject(i1$2.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
|
|
2831
2808
|
TranslateContextService.decorators = [
|
|
2832
2809
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2833
2810
|
];
|
|
@@ -2844,7 +2821,7 @@
|
|
|
2844
2821
|
};
|
|
2845
2822
|
return TranslateContextPipe;
|
|
2846
2823
|
}());
|
|
2847
|
-
TranslateContextPipe.ɵprov =
|
|
2824
|
+
TranslateContextPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextPipe_Factory() { return new TranslateContextPipe(i0.ɵɵinject(TranslateContextService)); }, token: TranslateContextPipe, providedIn: "root" });
|
|
2848
2825
|
TranslateContextPipe.decorators = [
|
|
2849
2826
|
{ type: i0.Pipe, args: [{
|
|
2850
2827
|
name: 'translateContext'
|
|
@@ -2864,7 +2841,7 @@
|
|
|
2864
2841
|
};
|
|
2865
2842
|
return TranslatablePipe;
|
|
2866
2843
|
}());
|
|
2867
|
-
TranslatablePipe.ɵprov =
|
|
2844
|
+
TranslatablePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslatablePipe_Factory() { return new TranslatablePipe(); }, token: TranslatablePipe, providedIn: "root" });
|
|
2868
2845
|
TranslatablePipe.decorators = [
|
|
2869
2846
|
{ type: i0.Pipe, args: [{
|
|
2870
2847
|
name: 'translatable'
|
|
@@ -2884,7 +2861,7 @@
|
|
|
2884
2861
|
};
|
|
2885
2862
|
return PropertyGetPipe;
|
|
2886
2863
|
}());
|
|
2887
|
-
PropertyGetPipe.ɵprov =
|
|
2864
|
+
PropertyGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
|
|
2888
2865
|
PropertyGetPipe.decorators = [
|
|
2889
2866
|
{ type: i0.Pipe, args: [{
|
|
2890
2867
|
name: 'propertyGet'
|
|
@@ -2910,14 +2887,14 @@
|
|
|
2910
2887
|
ngInit: [{ type: i0.Output }]
|
|
2911
2888
|
};
|
|
2912
2889
|
|
|
2913
|
-
var moment$
|
|
2890
|
+
var moment$2 = momentImported__namespace;
|
|
2914
2891
|
// @dynamic
|
|
2915
2892
|
var SharedValidators = /** @class */ (function () {
|
|
2916
2893
|
function SharedValidators() {
|
|
2917
2894
|
}
|
|
2918
2895
|
SharedValidators.validDate = function (control) {
|
|
2919
2896
|
var value = control.value;
|
|
2920
|
-
var date = !value || moment$
|
|
2897
|
+
var date = !value || moment$2.isMoment(value) ? value : moment$2(control.value, DATE_ISO_PATTERN);
|
|
2921
2898
|
if (date && (!date.isValid() || date.year() < 1970)) {
|
|
2922
2899
|
return { validDate: true };
|
|
2923
2900
|
}
|
|
@@ -4044,7 +4021,7 @@
|
|
|
4044
4021
|
};
|
|
4045
4022
|
return FormErrorAdapter;
|
|
4046
4023
|
}());
|
|
4047
|
-
FormErrorAdapter.ɵprov =
|
|
4024
|
+
FormErrorAdapter.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormErrorAdapter_Factory() { return new FormErrorAdapter(i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(APP_FORM_ERROR_I18N_KEYS, 8)); }, token: FormErrorAdapter, providedIn: "root" });
|
|
4048
4025
|
FormErrorAdapter.decorators = [
|
|
4049
4026
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
4050
4027
|
];
|
|
@@ -4326,9 +4303,9 @@
|
|
|
4326
4303
|
var hour = parseInt(durationParts[0] || '0');
|
|
4327
4304
|
var minute = parseInt(durationParts[1] || '0');
|
|
4328
4305
|
var value = hour + (minute + 0.5) / 60;
|
|
4329
|
-
return roundFloat(value, maxDecimals);
|
|
4306
|
+
return roundFloat$1(value, maxDecimals);
|
|
4330
4307
|
}
|
|
4331
|
-
function roundFloat(input, maxDecimals) {
|
|
4308
|
+
function roundFloat$1(input, maxDecimals) {
|
|
4332
4309
|
if (maxDecimals > 0) {
|
|
4333
4310
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
4334
4311
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -4352,9 +4329,9 @@
|
|
|
4352
4329
|
DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
|
|
4353
4330
|
}
|
|
4354
4331
|
};
|
|
4355
|
-
var noop$
|
|
4332
|
+
var noop$1 = function () {
|
|
4356
4333
|
};
|
|
4357
|
-
var ɵ0$
|
|
4334
|
+
var ɵ0$1 = noop$1;
|
|
4358
4335
|
var MatLatLongField = /** @class */ (function () {
|
|
4359
4336
|
function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
|
|
4360
4337
|
this.platform = platform;
|
|
@@ -4362,8 +4339,8 @@
|
|
|
4362
4339
|
this.formBuilder = formBuilder;
|
|
4363
4340
|
this.cd = cd;
|
|
4364
4341
|
this.formGroupDir = formGroupDir;
|
|
4365
|
-
this._onChangeCallback = noop$
|
|
4366
|
-
this._onTouchedCallback = noop$
|
|
4342
|
+
this._onChangeCallback = noop$1;
|
|
4343
|
+
this._onTouchedCallback = noop$1;
|
|
4367
4344
|
this._subscription = new rxjs.Subscription();
|
|
4368
4345
|
this.disabling = false;
|
|
4369
4346
|
this.writing = false;
|
|
@@ -4714,14 +4691,14 @@
|
|
|
4714
4691
|
},] }
|
|
4715
4692
|
];
|
|
4716
4693
|
|
|
4717
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
4694
|
+
var DEFAULT_VALUE_ACCESSOR$1 = {
|
|
4718
4695
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
4719
4696
|
useExisting: i0.forwardRef(function () { return MatDate; }),
|
|
4720
4697
|
multi: true
|
|
4721
4698
|
};
|
|
4722
|
-
var DAY_MASK
|
|
4723
|
-
var noop$
|
|
4724
|
-
var ɵ0$
|
|
4699
|
+
var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
4700
|
+
var noop$2 = function () { };
|
|
4701
|
+
var ɵ0$2 = noop$2;
|
|
4725
4702
|
var MatDate = /** @class */ (function () {
|
|
4726
4703
|
function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
4727
4704
|
this.dateAdapter = dateAdapter;
|
|
@@ -4730,12 +4707,12 @@
|
|
|
4730
4707
|
this.cd = cd;
|
|
4731
4708
|
this.keyboard = keyboard;
|
|
4732
4709
|
this.formGroupDir = formGroupDir;
|
|
4733
|
-
this._onChangeCallback = noop$
|
|
4734
|
-
this._onTouchedCallback = noop$
|
|
4710
|
+
this._onChangeCallback = noop$2;
|
|
4711
|
+
this._onTouchedCallback = noop$2;
|
|
4735
4712
|
this._subscription = new rxjs.Subscription();
|
|
4736
4713
|
this.writing = true;
|
|
4737
4714
|
this.disabling = false;
|
|
4738
|
-
this.dayMask = DAY_MASK
|
|
4715
|
+
this.dayMask = DAY_MASK;
|
|
4739
4716
|
this.disabled = false;
|
|
4740
4717
|
this.floatLabel = 'auto';
|
|
4741
4718
|
this.readonly = false;
|
|
@@ -5004,7 +4981,7 @@
|
|
|
5004
4981
|
selector: 'mat-date-field',
|
|
5005
4982
|
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",
|
|
5006
4983
|
providers: [
|
|
5007
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
4984
|
+
DEFAULT_VALUE_ACCESSOR$1,
|
|
5008
4985
|
],
|
|
5009
4986
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5010
4987
|
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%}"]
|
|
@@ -5037,17 +5014,17 @@
|
|
|
5037
5014
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
5038
5015
|
};
|
|
5039
5016
|
|
|
5040
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5017
|
+
var DEFAULT_VALUE_ACCESSOR$2 = {
|
|
5041
5018
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5042
5019
|
useExisting: i0.forwardRef(function () { return MatDateTime; }),
|
|
5043
5020
|
multi: true
|
|
5044
5021
|
};
|
|
5045
5022
|
var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5046
5023
|
var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
|
|
5047
|
-
var HOUR_MASK
|
|
5048
|
-
var noop$
|
|
5024
|
+
var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
5025
|
+
var noop$3 = function () {
|
|
5049
5026
|
};
|
|
5050
|
-
var ɵ0$
|
|
5027
|
+
var ɵ0$3 = noop$3;
|
|
5051
5028
|
var MatDateTime = /** @class */ (function () {
|
|
5052
5029
|
function MatDateTime(platform, dateAdapter, translate, formBuilder, keyboard, cd, formGroupDir) {
|
|
5053
5030
|
this.platform = platform;
|
|
@@ -5057,14 +5034,14 @@
|
|
|
5057
5034
|
this.keyboard = keyboard;
|
|
5058
5035
|
this.cd = cd;
|
|
5059
5036
|
this.formGroupDir = formGroupDir;
|
|
5060
|
-
this._onChangeCallback = noop$
|
|
5061
|
-
this._onTouchedCallback = noop$
|
|
5037
|
+
this._onChangeCallback = noop$3;
|
|
5038
|
+
this._onTouchedCallback = noop$3;
|
|
5062
5039
|
this._subscription = new rxjs.Subscription();
|
|
5063
5040
|
this.writing = true;
|
|
5064
5041
|
this.disabling = false;
|
|
5065
5042
|
this._readonly = false;
|
|
5066
5043
|
this.dayMask = DAY_MASK$1;
|
|
5067
|
-
this.hourMask = HOUR_MASK
|
|
5044
|
+
this.hourMask = HOUR_MASK;
|
|
5068
5045
|
this.floatLabel = 'auto';
|
|
5069
5046
|
this.compact = false;
|
|
5070
5047
|
this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
|
|
@@ -5420,7 +5397,7 @@
|
|
|
5420
5397
|
selector: 'mat-date-time-field',
|
|
5421
5398
|
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",
|
|
5422
5399
|
providers: [
|
|
5423
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5400
|
+
DEFAULT_VALUE_ACCESSOR$2,
|
|
5424
5401
|
],
|
|
5425
5402
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5426
5403
|
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%}"]
|
|
@@ -5459,10 +5436,10 @@
|
|
|
5459
5436
|
useExisting: i0.forwardRef(function () { return MatDateShort; }),
|
|
5460
5437
|
multi: true
|
|
5461
5438
|
};
|
|
5462
|
-
var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
|
|
5463
|
-
var noop$
|
|
5439
|
+
var DAY_MASK$2 = [/\d/, /\d/, /\d/, /\d/];
|
|
5440
|
+
var noop$4 = function () {
|
|
5464
5441
|
};
|
|
5465
|
-
var ɵ0$
|
|
5442
|
+
var ɵ0$4 = noop$4;
|
|
5466
5443
|
var MatDateShort = /** @class */ (function () {
|
|
5467
5444
|
function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5468
5445
|
this.dateAdapter = dateAdapter;
|
|
@@ -5471,11 +5448,11 @@
|
|
|
5471
5448
|
this.cd = cd;
|
|
5472
5449
|
this.keyboard = keyboard;
|
|
5473
5450
|
this.formGroupDir = formGroupDir;
|
|
5474
|
-
this._onChangeCallback = noop$
|
|
5475
|
-
this._onTouchedCallback = noop$
|
|
5451
|
+
this._onChangeCallback = noop$4;
|
|
5452
|
+
this._onTouchedCallback = noop$4;
|
|
5476
5453
|
this.writing = true;
|
|
5477
5454
|
this.disabling = false;
|
|
5478
|
-
this.dayMask = DAY_MASK;
|
|
5455
|
+
this.dayMask = DAY_MASK$2;
|
|
5479
5456
|
this.disabled = false;
|
|
5480
5457
|
this.floatLabel = 'auto';
|
|
5481
5458
|
this.readonly = false;
|
|
@@ -5823,16 +5800,16 @@
|
|
|
5823
5800
|
},] }
|
|
5824
5801
|
];
|
|
5825
5802
|
|
|
5826
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5803
|
+
var DEFAULT_VALUE_ACCESSOR$4 = {
|
|
5827
5804
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5828
5805
|
useExisting: i0.forwardRef(function () { return MatDuration; }),
|
|
5829
5806
|
multi: true
|
|
5830
5807
|
};
|
|
5831
5808
|
var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
|
|
5832
|
-
var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
5833
|
-
var noop$
|
|
5809
|
+
var HOUR_MASK$1 = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
5810
|
+
var noop$5 = function () {
|
|
5834
5811
|
};
|
|
5835
|
-
var ɵ0$5 = noop$
|
|
5812
|
+
var ɵ0$5 = noop$5;
|
|
5836
5813
|
var MatDuration = /** @class */ (function () {
|
|
5837
5814
|
function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
|
|
5838
5815
|
this.dateAdapter = dateAdapter;
|
|
@@ -5841,11 +5818,11 @@
|
|
|
5841
5818
|
this.cd = cd;
|
|
5842
5819
|
this.formGroupDir = formGroupDir;
|
|
5843
5820
|
this._subscription = new rxjs.Subscription();
|
|
5844
|
-
this._onChangeCallback = noop$
|
|
5845
|
-
this._onTouchedCallback = noop$
|
|
5821
|
+
this._onChangeCallback = noop$5;
|
|
5822
|
+
this._onTouchedCallback = noop$5;
|
|
5846
5823
|
this.writing = true;
|
|
5847
5824
|
this.disabling = false;
|
|
5848
|
-
this.hourMask = HOUR_MASK;
|
|
5825
|
+
this.hourMask = HOUR_MASK$1;
|
|
5849
5826
|
this.disabled = false;
|
|
5850
5827
|
this.floatLabel = 'auto';
|
|
5851
5828
|
this.readonly = false;
|
|
@@ -6038,7 +6015,7 @@
|
|
|
6038
6015
|
selector: 'mat-duration-field',
|
|
6039
6016
|
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",
|
|
6040
6017
|
providers: [
|
|
6041
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6018
|
+
DEFAULT_VALUE_ACCESSOR$4,
|
|
6042
6019
|
],
|
|
6043
6020
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6044
6021
|
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%}"]
|
|
@@ -6098,22 +6075,22 @@
|
|
|
6098
6075
|
},] }
|
|
6099
6076
|
];
|
|
6100
6077
|
|
|
6101
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6078
|
+
var DEFAULT_VALUE_ACCESSOR$5 = {
|
|
6102
6079
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6103
6080
|
useExisting: i0.forwardRef(function () { return MatBooleanField; }),
|
|
6104
6081
|
multi: true
|
|
6105
6082
|
};
|
|
6106
|
-
var noop$
|
|
6083
|
+
var noop$6 = function () {
|
|
6107
6084
|
};
|
|
6108
|
-
var ɵ0$
|
|
6085
|
+
var ɵ0$6 = noop$6;
|
|
6109
6086
|
var MatBooleanField = /** @class */ (function () {
|
|
6110
6087
|
function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
|
|
6111
6088
|
this.translate = translate;
|
|
6112
6089
|
this.formBuilder = formBuilder;
|
|
6113
6090
|
this.cd = cd;
|
|
6114
6091
|
this.formGroupDir = formGroupDir;
|
|
6115
|
-
this._onChangeCallback = noop$
|
|
6116
|
-
this._onTouchedCallback = noop$
|
|
6092
|
+
this._onChangeCallback = noop$6;
|
|
6093
|
+
this._onTouchedCallback = noop$6;
|
|
6117
6094
|
this._writing = false;
|
|
6118
6095
|
this.showRadio = false;
|
|
6119
6096
|
this.disabled = false;
|
|
@@ -6299,7 +6276,7 @@
|
|
|
6299
6276
|
selector: 'mat-boolean-field',
|
|
6300
6277
|
template: "<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled {{classList}}\">\n <input matInput hidden type=\"text\" readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{(formControl.value == null && 'COMMON.EMPTY_OPTION' || (formControl.value === true && yesLabel) || noLabel) | translate }}</ion-text>\n</mat-form-field>\n\n<ng-template #writable>\n <ng-container [ngSwitch]=\"style\">\n\n <!-- Radio -->\n <mat-form-field *ngSwitchCase=\"'radio'\"\n [floatLabel]=\"showRadio && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-radio {{classList}}\">\n <mat-label *ngIf=\"placeholder && floatLabel!=='never'\">\n {{placeholder}}\n <span [hidden]=\"showRadio\">({{yesLabel|translate}}/{{'COMMON.NO'|translate}})</span>\n </mat-label>\n\n <input matInput #fakeInput type=\"text\" readonly=\"true\"\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <!-- radio button -->\n <mat-radio-group [hidden]=\"!showRadio\"\n [formControl]=\"formControl\"\n (change)=\"onRadioValueChanged($event)\">\n <mat-radio-button #yesButton [value]=\"true\">\n <span>{{yesLabel|translate}}</span>\n </mat-radio-button> \n <mat-radio-button #noButton [value]=\"false\">\n <span>{{noLabel|translate}}</span>\n </mat-radio-button>\n </mat-radio-group>\n\n <div matSuffix #injectMatSuffix></div>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n </mat-form-field>\n\n <!-- Checkbox -->\n <mat-form-field *ngSwitchCase=\"'checkbox'\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-checkbox {{classList}}\">\n <mat-label *ngIf=\"placeholder && !showRadio\">\n {{placeholder}}\n </mat-label>\n\n <input matInput #matInput\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <ion-label> </ion-label>\n\n <!-- checkbox, when compact -->\n <mat-checkbox #checkboxButton\n [formControl]=\"formControl\"\n (change)=\"onCheckboxValueChanged($event)\"\n [indeterminate]=\"value===undefined\"\n [hidden]=\"!showRadio\"\n [tabindex]=\"tabindex\">\n </mat-checkbox>\n\n <div matSuffix #injectMatSuffix></div>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n </mat-form-field>\n\n <!-- Buttons -->\n <mat-form-field *ngSwitchCase=\"'button'\"\n [floatLabel]=\"floatLabel === 'never' ? 'never' : 'always'\"\n class=\"mat-boolean-field mat-boolean-field-button {{classList}}\">\n <input matInput type=\"text\" hidden\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [required]=\"required\">\n <div class=\"mat-form-field-buttons\"\n [style.--buttons-col-count]=\"buttonsColCount\"\n *ngIf=\"!formControl.disabled; else disabledLabel\">\n <!-- yes -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex\"\n (click)=\"writeValue(true, $event)\"\n (keyup.enter)=\"writeValue(true, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === true) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && yesIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{yesLabel|translate}}\n </ion-button>\n\n <!-- No button -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex !== undefined ? (_tabindex + 1) : undefined\"\n (click)=\"writeValue(false, $event)\"\n (keyup.enter)=\"writeValue(false, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === false) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && noIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{noLabel|translate}}\n </ion-button>\n </div>\n <ng-template #disabledLabel>\n <ion-label><i translate>COMMON.EMPTY_OPTION</i></ion-label>\n </ng-template>\n\n <div matSuffix #injectMatSuffix></div>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n </mat-form-field>\n </ng-container>\n\n <div class=\"cdk-visually-hidden\">\n <div #suffix><ng-content select=\"[matSuffix]\"></ng-content></div>\n </div>\n\n</ng-template>\n\n\n",
|
|
6301
6278
|
providers: [
|
|
6302
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6279
|
+
DEFAULT_VALUE_ACCESSOR$5
|
|
6303
6280
|
],
|
|
6304
6281
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6305
6282
|
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}"]
|
|
@@ -6388,7 +6365,6 @@
|
|
|
6388
6365
|
return MatNumpadEvent;
|
|
6389
6366
|
}(KeyboardEvent));
|
|
6390
6367
|
|
|
6391
|
-
exports.AnimationState = void 0;
|
|
6392
6368
|
(function (AnimationState) {
|
|
6393
6369
|
AnimationState["ENTER"] = "enter";
|
|
6394
6370
|
AnimationState["ENTER_INPUT"] = "enter-input";
|
|
@@ -6556,7 +6532,7 @@
|
|
|
6556
6532
|
};
|
|
6557
6533
|
return MatNumpadDomService;
|
|
6558
6534
|
}());
|
|
6559
|
-
MatNumpadDomService.ɵprov =
|
|
6535
|
+
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" });
|
|
6560
6536
|
MatNumpadDomService.decorators = [
|
|
6561
6537
|
{ type: i0.Injectable, args: [{
|
|
6562
6538
|
providedIn: 'root'
|
|
@@ -6962,7 +6938,7 @@
|
|
|
6962
6938
|
},] }
|
|
6963
6939
|
];
|
|
6964
6940
|
|
|
6965
|
-
var DEFAULT_VALUE_ACCESSOR = {
|
|
6941
|
+
var DEFAULT_VALUE_ACCESSOR$6 = {
|
|
6966
6942
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6967
6943
|
useExisting: i0.forwardRef(function () { return MatSwipeField; }),
|
|
6968
6944
|
multi: true
|
|
@@ -7282,7 +7258,7 @@
|
|
|
7282
7258
|
{ type: i0.Component, args: [{
|
|
7283
7259
|
selector: 'mat-swipe-field',
|
|
7284
7260
|
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",
|
|
7285
|
-
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
7261
|
+
providers: [DEFAULT_VALUE_ACCESSOR$6],
|
|
7286
7262
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7287
7263
|
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}"]
|
|
7288
7264
|
},] }
|
|
@@ -7840,7 +7816,7 @@
|
|
|
7840
7816
|
};
|
|
7841
7817
|
return ProgressBarService;
|
|
7842
7818
|
}());
|
|
7843
|
-
ProgressBarService.ɵprov =
|
|
7819
|
+
ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
|
|
7844
7820
|
ProgressBarService.decorators = [
|
|
7845
7821
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7846
7822
|
];
|
|
@@ -7887,7 +7863,7 @@
|
|
|
7887
7863
|
};
|
|
7888
7864
|
return AppGestureConfig;
|
|
7889
7865
|
}(i1$6.HammerGestureConfig));
|
|
7890
|
-
AppGestureConfig.ɵprov =
|
|
7866
|
+
AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
|
|
7891
7867
|
AppGestureConfig.decorators = [
|
|
7892
7868
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7893
7869
|
];
|
|
@@ -8152,7 +8128,7 @@
|
|
|
8152
8128
|
};
|
|
8153
8129
|
return MatPaginatorI18n;
|
|
8154
8130
|
}(paginator.MatPaginatorIntl));
|
|
8155
|
-
MatPaginatorI18n.ɵprov =
|
|
8131
|
+
MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
|
|
8156
8132
|
MatPaginatorI18n.decorators = [
|
|
8157
8133
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8158
8134
|
];
|
|
@@ -8244,17 +8220,17 @@
|
|
|
8244
8220
|
return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
|
|
8245
8221
|
}
|
|
8246
8222
|
|
|
8247
|
-
var noop = function () {
|
|
8223
|
+
var noop$7 = function () {
|
|
8248
8224
|
};
|
|
8249
|
-
var ɵ0$
|
|
8225
|
+
var ɵ0$7 = noop$7;
|
|
8250
8226
|
var AppFormField = /** @class */ (function () {
|
|
8251
8227
|
function AppFormField(translate, cd, injector, formGroupDir) {
|
|
8252
8228
|
this.translate = translate;
|
|
8253
8229
|
this.cd = cd;
|
|
8254
8230
|
this.injector = injector;
|
|
8255
8231
|
this.formGroupDir = formGroupDir;
|
|
8256
|
-
this._onChangeCallback = noop;
|
|
8257
|
-
this._onTouchedCallback = noop;
|
|
8232
|
+
this._onChangeCallback = noop$7;
|
|
8233
|
+
this._onTouchedCallback = noop$7;
|
|
8258
8234
|
this.readonly = false;
|
|
8259
8235
|
this.compact = false;
|
|
8260
8236
|
this.floatLabel = 'auto';
|
|
@@ -8791,7 +8767,7 @@
|
|
|
8791
8767
|
};
|
|
8792
8768
|
return AudioProvider;
|
|
8793
8769
|
}(StartableService));
|
|
8794
|
-
AudioProvider.ɵprov =
|
|
8770
|
+
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" });
|
|
8795
8771
|
AudioProvider.decorators = [
|
|
8796
8772
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8797
8773
|
];
|
|
@@ -8891,7 +8867,7 @@
|
|
|
8891
8867
|
};
|
|
8892
8868
|
return Hotkeys;
|
|
8893
8869
|
}());
|
|
8894
|
-
Hotkeys.ɵprov =
|
|
8870
|
+
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" });
|
|
8895
8871
|
Hotkeys.decorators = [
|
|
8896
8872
|
{ type: i0.Injectable, args: [{
|
|
8897
8873
|
providedIn: 'root'
|
|
@@ -9095,7 +9071,7 @@
|
|
|
9095
9071
|
return Base64ImageReader;
|
|
9096
9072
|
}());
|
|
9097
9073
|
|
|
9098
|
-
var uuidv4
|
|
9074
|
+
var uuidv4 = uuidv4Imported__namespace;
|
|
9099
9075
|
var FileService = /** @class */ (function () {
|
|
9100
9076
|
function FileService(platform,
|
|
9101
9077
|
//private transfer: FileTransfer,
|
|
@@ -9141,7 +9117,7 @@
|
|
|
9141
9117
|
lastSlashIndex = source.lastIndexOf('/');
|
|
9142
9118
|
if (lastSlashIndex === -1)
|
|
9143
9119
|
throw new Error('Invalid URL: ' + source);
|
|
9144
|
-
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4
|
|
9120
|
+
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
|
|
9145
9121
|
if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
|
|
9146
9122
|
console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
|
|
9147
9123
|
targetFilePath = this._imageDirectory + fileName;
|
|
@@ -9204,7 +9180,7 @@
|
|
|
9204
9180
|
};
|
|
9205
9181
|
return FileService;
|
|
9206
9182
|
}());
|
|
9207
|
-
FileService.ɵprov =
|
|
9183
|
+
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" });
|
|
9208
9184
|
FileService.decorators = [
|
|
9209
9185
|
{ type: i0.Injectable, args: [{
|
|
9210
9186
|
providedIn: 'root',
|
|
@@ -9367,7 +9343,7 @@
|
|
|
9367
9343
|
Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
9368
9344
|
|
|
9369
9345
|
var scrypt = require('scrypt-async');
|
|
9370
|
-
var sha256
|
|
9346
|
+
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
9371
9347
|
var sha512 = require('hash.js/lib/hash/sha/512');
|
|
9372
9348
|
var nacl = {
|
|
9373
9349
|
sign: tweetnacl.sign,
|
|
@@ -9473,7 +9449,7 @@
|
|
|
9473
9449
|
* Hash (using SHA256) a message
|
|
9474
9450
|
*/
|
|
9475
9451
|
CryptoService.prototype.sha256 = function (message) {
|
|
9476
|
-
return sha256
|
|
9452
|
+
return sha256().update(message).digest('hex');
|
|
9477
9453
|
};
|
|
9478
9454
|
/**
|
|
9479
9455
|
* Hash (using SHA512) a message
|
|
@@ -9487,7 +9463,7 @@
|
|
|
9487
9463
|
};
|
|
9488
9464
|
return CryptoService;
|
|
9489
9465
|
}());
|
|
9490
|
-
CryptoService.ɵprov =
|
|
9466
|
+
CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
|
|
9491
9467
|
CryptoService.decorators = [
|
|
9492
9468
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9493
9469
|
];
|
|
@@ -10908,7 +10884,7 @@
|
|
|
10908
10884
|
};
|
|
10909
10885
|
return LocalSettingsService;
|
|
10910
10886
|
}(StartableService));
|
|
10911
|
-
LocalSettingsService.ɵprov =
|
|
10887
|
+
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" });
|
|
10912
10888
|
LocalSettingsService.decorators = [
|
|
10913
10889
|
{ type: i0.Injectable, args: [{
|
|
10914
10890
|
providedIn: 'root',
|
|
@@ -11713,7 +11689,7 @@
|
|
|
11713
11689
|
};
|
|
11714
11690
|
return NetworkService;
|
|
11715
11691
|
}(StartableService));
|
|
11716
|
-
NetworkService.ɵprov =
|
|
11692
|
+
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" });
|
|
11717
11693
|
NetworkService.decorators = [
|
|
11718
11694
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
11719
11695
|
];
|
|
@@ -11733,7 +11709,7 @@
|
|
|
11733
11709
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
|
|
11734
11710
|
]; };
|
|
11735
11711
|
|
|
11736
|
-
var ErrorCodes
|
|
11712
|
+
var ErrorCodes = {
|
|
11737
11713
|
UNKNOWN_ERROR: 0,
|
|
11738
11714
|
LOAD_ACCOUNT_ERROR: 1,
|
|
11739
11715
|
BAD_PASSWORD: 2,
|
|
@@ -12141,7 +12117,7 @@
|
|
|
12141
12117
|
case 13:
|
|
12142
12118
|
err_1 = _a.sent();
|
|
12143
12119
|
console.error(err_1);
|
|
12144
|
-
throw { code: ErrorCodes
|
|
12120
|
+
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
12145
12121
|
case 14:
|
|
12146
12122
|
// Emit update event
|
|
12147
12123
|
if (!opts || opts.emitEvent !== false) {
|
|
@@ -12915,7 +12891,7 @@
|
|
|
12915
12891
|
}(StartableService));
|
|
12916
12892
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
12917
12893
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
12918
|
-
EntitiesStorage.ɵprov =
|
|
12894
|
+
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" });
|
|
12919
12895
|
EntitiesStorage.decorators = [
|
|
12920
12896
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
12921
12897
|
];
|
|
@@ -13032,10 +13008,10 @@
|
|
|
13032
13008
|
function referentialsToString(values, properties, separator) {
|
|
13033
13009
|
return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
|
|
13034
13010
|
}
|
|
13035
|
-
var ɵ0$
|
|
13011
|
+
var ɵ0$8 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
13036
13012
|
var StatusList = Object.freeze([
|
|
13037
13013
|
{
|
|
13038
|
-
id: ɵ0$
|
|
13014
|
+
id: ɵ0$8,
|
|
13039
13015
|
icon: 'checkmark',
|
|
13040
13016
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
13041
13017
|
},
|
|
@@ -13338,7 +13314,7 @@
|
|
|
13338
13314
|
(data.lastName || '')) || '';
|
|
13339
13315
|
}
|
|
13340
13316
|
|
|
13341
|
-
var uuidv4 = uuidv4Imported__namespace;
|
|
13317
|
+
var uuidv4$1 = uuidv4Imported__namespace;
|
|
13342
13318
|
var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
13343
13319
|
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
13344
13320
|
/**
|
|
@@ -13382,7 +13358,7 @@
|
|
|
13382
13358
|
// Skip if not tracked
|
|
13383
13359
|
if (!context || !context.tracked)
|
|
13384
13360
|
return forward(operation);
|
|
13385
|
-
var id = context.serializationKey || uuidv4();
|
|
13361
|
+
var id = context.serializationKey || uuidv4$1();
|
|
13386
13362
|
console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
|
|
13387
13363
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
13388
13364
|
var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -14017,14 +13993,14 @@
|
|
|
14017
13993
|
mutationLinks = void 0;
|
|
14018
13994
|
// Add queue to store tracked queries, when offline
|
|
14019
13995
|
if (enableTrackMutationQueries) {
|
|
14020
|
-
serializingLink = new SerializingLink__default[
|
|
13996
|
+
serializingLink = new SerializingLink__default['default']();
|
|
14021
13997
|
trackerLink = createTrackerLink({
|
|
14022
13998
|
storage: storage,
|
|
14023
13999
|
onNetworkStatusChange: this._networkStatusChanged$,
|
|
14024
14000
|
debounce: 1000,
|
|
14025
14001
|
debug: true
|
|
14026
14002
|
});
|
|
14027
|
-
queueLink_1 = new QueueLink__default[
|
|
14003
|
+
queueLink_1 = new QueueLink__default['default']();
|
|
14028
14004
|
this._subscription.add(this._networkStatusChanged$
|
|
14029
14005
|
.subscribe(function (type) {
|
|
14030
14006
|
// Network is offline: start buffering into queue
|
|
@@ -14039,7 +14015,7 @@
|
|
|
14039
14015
|
}
|
|
14040
14016
|
}));
|
|
14041
14017
|
mutationLinks = [
|
|
14042
|
-
loggerLink__default[
|
|
14018
|
+
loggerLink__default['default'],
|
|
14043
14019
|
queueLink_1,
|
|
14044
14020
|
trackerLink,
|
|
14045
14021
|
queueLink_1,
|
|
@@ -14148,7 +14124,7 @@
|
|
|
14148
14124
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
14149
14125
|
|| this.toAppError(err.networkError)
|
|
14150
14126
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
14151
|
-
|| this.createAppErrorByCode(ErrorCodes
|
|
14127
|
+
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
14152
14128
|
// If graphQL: try to convert the first error found
|
|
14153
14129
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
14154
14130
|
|| this.toAppError(err)
|
|
@@ -14156,7 +14132,7 @@
|
|
|
14156
14132
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
14157
14133
|
|| err;
|
|
14158
14134
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
14159
|
-
if (error && error.code === ErrorCodes
|
|
14135
|
+
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
14160
14136
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
14161
14137
|
this.onNetworkError.next(error);
|
|
14162
14138
|
}
|
|
@@ -14192,7 +14168,7 @@
|
|
|
14192
14168
|
return 'ERROR.UNAUTHORIZED';
|
|
14193
14169
|
case ServerErrorCodes.FORBIDDEN:
|
|
14194
14170
|
return 'ERROR.FORBIDDEN';
|
|
14195
|
-
case ErrorCodes
|
|
14171
|
+
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
14196
14172
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
14197
14173
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
14198
14174
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -14221,7 +14197,7 @@
|
|
|
14221
14197
|
};
|
|
14222
14198
|
return GraphqlService;
|
|
14223
14199
|
}(StartableService));
|
|
14224
|
-
GraphqlService.ɵprov =
|
|
14200
|
+
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" });
|
|
14225
14201
|
GraphqlService.decorators = [
|
|
14226
14202
|
{ type: i0.Injectable, args: [{
|
|
14227
14203
|
providedIn: 'root'
|
|
@@ -14238,7 +14214,7 @@
|
|
|
14238
14214
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
14239
14215
|
]; };
|
|
14240
14216
|
|
|
14241
|
-
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
14217
|
+
var sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
14242
14218
|
var BaseGraphqlServiceOptions = /** @class */ (function () {
|
|
14243
14219
|
function BaseGraphqlServiceOptions() {
|
|
14244
14220
|
}
|
|
@@ -14405,8 +14381,8 @@
|
|
|
14405
14381
|
};
|
|
14406
14382
|
/* -- protected methods -- */
|
|
14407
14383
|
BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
|
|
14408
|
-
var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
14409
|
-
var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
14384
|
+
var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
14385
|
+
var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
14410
14386
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
14411
14387
|
};
|
|
14412
14388
|
BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
|
|
@@ -14472,17 +14448,17 @@
|
|
|
14472
14448
|
/* ------------------------------------
|
|
14473
14449
|
* GraphQL queries
|
|
14474
14450
|
* ------------------------------------*/
|
|
14475
|
-
var Fragments
|
|
14476
|
-
account: core.gql(templateObject_1
|
|
14451
|
+
var Fragments = {
|
|
14452
|
+
account: core.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }\n "], ["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }\n "])))
|
|
14477
14453
|
};
|
|
14478
14454
|
// Load account query
|
|
14479
|
-
var LoadQuery
|
|
14455
|
+
var LoadQuery = core.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n"], ["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
|
|
14480
14456
|
// Check email query
|
|
14481
|
-
var IsEmailExistsQuery = core.gql(templateObject_3
|
|
14457
|
+
var IsEmailExistsQuery = core.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"], ["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"])));
|
|
14482
14458
|
// Save (create or update) account mutation
|
|
14483
|
-
var SaveMutation
|
|
14459
|
+
var SaveMutation = core.gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
|
|
14484
14460
|
// Create account mutation
|
|
14485
|
-
var CreateMutation = core.gql(templateObject_5
|
|
14461
|
+
var CreateMutation = core.gql(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
|
|
14486
14462
|
// Sent confirmation email
|
|
14487
14463
|
var SendConfirmEmailMutation = core.gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n mutation sendAccountConfirmationEmail($email:String, $locale:String){\n sendAccountConfirmationEmail(email: $email, locale: $locale)\n }\n"], ["\n mutation sendAccountConfirmationEmail($email:String, $locale:String){\n sendAccountConfirmationEmail(email: $email, locale: $locale)\n }\n"])));
|
|
14488
14464
|
// Confirm account email
|
|
@@ -14871,7 +14847,7 @@
|
|
|
14871
14847
|
error_3 = _b.sent();
|
|
14872
14848
|
console.error(error_3);
|
|
14873
14849
|
this.resetData();
|
|
14874
|
-
throw { code: ErrorCodes
|
|
14850
|
+
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
14875
14851
|
case 4:
|
|
14876
14852
|
// Store pubkey+keypair
|
|
14877
14853
|
this._data.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -14907,7 +14883,7 @@
|
|
|
14907
14883
|
return [3 /*break*/, 18];
|
|
14908
14884
|
case 11:
|
|
14909
14885
|
err_1 = _b.sent();
|
|
14910
|
-
if (!(err_1 && +(err_1.code) === ErrorCodes
|
|
14886
|
+
if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
14911
14887
|
if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
|
|
14912
14888
|
isEmailExists = void 0;
|
|
14913
14889
|
_b.label = 12;
|
|
@@ -14923,12 +14899,12 @@
|
|
|
14923
14899
|
case 15:
|
|
14924
14900
|
// Email not exists (no account)
|
|
14925
14901
|
if (!isEmailExists) {
|
|
14926
|
-
throw { code: ErrorCodes
|
|
14902
|
+
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
14927
14903
|
}
|
|
14928
14904
|
_b.label = 16;
|
|
14929
14905
|
case 16:
|
|
14930
14906
|
// Email exists, so error = 'bad password'
|
|
14931
|
-
throw { code: ErrorCodes
|
|
14907
|
+
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
14932
14908
|
case 17: throw err_1; // resend the first error
|
|
14933
14909
|
case 18:
|
|
14934
14910
|
_b.trys.push([18, 20, , 21]);
|
|
@@ -15100,8 +15076,8 @@
|
|
|
15100
15076
|
_b.label = 3;
|
|
15101
15077
|
case 3: return [3 /*break*/, 6];
|
|
15102
15078
|
case 4: return [4 /*yield*/, this.graphql.query({
|
|
15103
|
-
query: LoadQuery
|
|
15104
|
-
error: { code: ErrorCodes
|
|
15079
|
+
query: LoadQuery,
|
|
15080
|
+
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
15105
15081
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
15106
15082
|
})];
|
|
15107
15083
|
case 5:
|
|
@@ -15139,7 +15115,7 @@
|
|
|
15139
15115
|
case 1:
|
|
15140
15116
|
isEmailExists = _b.sent();
|
|
15141
15117
|
if (isEmailExists) {
|
|
15142
|
-
throw { code: ErrorCodes
|
|
15118
|
+
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
15143
15119
|
}
|
|
15144
15120
|
return [2 /*return*/];
|
|
15145
15121
|
}
|
|
@@ -15189,7 +15165,7 @@
|
|
|
15189
15165
|
locale: locale
|
|
15190
15166
|
},
|
|
15191
15167
|
error: {
|
|
15192
|
-
code: ErrorCodes
|
|
15168
|
+
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
15193
15169
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
15194
15170
|
}
|
|
15195
15171
|
})];
|
|
@@ -15212,7 +15188,7 @@
|
|
|
15212
15188
|
code: code
|
|
15213
15189
|
},
|
|
15214
15190
|
error: {
|
|
15215
|
-
code: ErrorCodes
|
|
15191
|
+
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
15216
15192
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
15217
15193
|
}
|
|
15218
15194
|
})];
|
|
@@ -15235,7 +15211,7 @@
|
|
|
15235
15211
|
interval: 10
|
|
15236
15212
|
},
|
|
15237
15213
|
error: {
|
|
15238
|
-
code: ErrorCodes
|
|
15214
|
+
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
15239
15215
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ACCOUNT_ERROR'
|
|
15240
15216
|
}
|
|
15241
15217
|
}).subscribe({
|
|
@@ -15389,7 +15365,7 @@
|
|
|
15389
15365
|
throw error_6;
|
|
15390
15366
|
console.error(error_6);
|
|
15391
15367
|
throw {
|
|
15392
|
-
code: ErrorCodes
|
|
15368
|
+
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
15393
15369
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
15394
15370
|
};
|
|
15395
15371
|
case 4: return [2 /*return*/];
|
|
@@ -15563,7 +15539,7 @@
|
|
|
15563
15539
|
case 1:
|
|
15564
15540
|
existingAccount = _b.sent();
|
|
15565
15541
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
15566
|
-
throw { code: ErrorCodes
|
|
15542
|
+
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
15567
15543
|
}
|
|
15568
15544
|
this.copyIdAndUpdateDate(existingAccount, account);
|
|
15569
15545
|
_b.label = 2;
|
|
@@ -15572,10 +15548,10 @@
|
|
|
15572
15548
|
// User not allow to change his profiles
|
|
15573
15549
|
delete json.profiles;
|
|
15574
15550
|
return [4 /*yield*/, this.graphql.mutate({
|
|
15575
|
-
mutation: isNew ? CreateMutation : SaveMutation
|
|
15551
|
+
mutation: isNew ? CreateMutation : SaveMutation,
|
|
15576
15552
|
variables: { data: json },
|
|
15577
15553
|
error: {
|
|
15578
|
-
code: ErrorCodes
|
|
15554
|
+
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
15579
15555
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
15580
15556
|
}
|
|
15581
15557
|
})];
|
|
@@ -15603,7 +15579,7 @@
|
|
|
15603
15579
|
if (counter > 4) {
|
|
15604
15580
|
if (this._debug)
|
|
15605
15581
|
console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
|
|
15606
|
-
throw { code: ErrorCodes
|
|
15582
|
+
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
15607
15583
|
}
|
|
15608
15584
|
if (!token) return [3 /*break*/, 2];
|
|
15609
15585
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -15612,7 +15588,7 @@
|
|
|
15612
15588
|
token: token
|
|
15613
15589
|
},
|
|
15614
15590
|
error: {
|
|
15615
|
-
code: ErrorCodes
|
|
15591
|
+
code: ErrorCodes.UNAUTHORIZED,
|
|
15616
15592
|
message: 'ERROR.UNAUTHORIZED'
|
|
15617
15593
|
},
|
|
15618
15594
|
fetchPolicy: 'no-cache'
|
|
@@ -15629,7 +15605,7 @@
|
|
|
15629
15605
|
_b.label = 2;
|
|
15630
15606
|
case 2:
|
|
15631
15607
|
challengeError = {
|
|
15632
|
-
code: ErrorCodes
|
|
15608
|
+
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
15633
15609
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
15634
15610
|
};
|
|
15635
15611
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -15671,7 +15647,7 @@
|
|
|
15671
15647
|
};
|
|
15672
15648
|
return AccountService;
|
|
15673
15649
|
}(BaseGraphqlService));
|
|
15674
|
-
AccountService.ɵprov =
|
|
15650
|
+
AccountService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountService_Factory() { return new AccountService(i0.ɵɵinject(CryptoService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(FileService), i0.ɵɵinject(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
|
|
15675
15651
|
AccountService.decorators = [
|
|
15676
15652
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
15677
15653
|
];
|
|
@@ -15684,7 +15660,7 @@
|
|
|
15684
15660
|
{ type: FileService },
|
|
15685
15661
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
15686
15662
|
]; };
|
|
15687
|
-
var templateObject_1
|
|
15663
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
15688
15664
|
|
|
15689
15665
|
var Software_1, Configuration_1;
|
|
15690
15666
|
// @dynamic
|
|
@@ -15936,13 +15912,13 @@
|
|
|
15936
15912
|
/* ------------------------------------
|
|
15937
15913
|
* GraphQL queries
|
|
15938
15914
|
* ------------------------------------*/
|
|
15939
|
-
var Fragments = {
|
|
15940
|
-
config: core.gql(templateObject_1$
|
|
15915
|
+
var Fragments$1 = {
|
|
15916
|
+
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 "])))
|
|
15941
15917
|
};
|
|
15942
|
-
var LoadQuery = core.gql(templateObject_2$
|
|
15918
|
+
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);
|
|
15943
15919
|
// Save (create or update) account mutation
|
|
15944
|
-
var SaveMutation = core.gql(templateObject_3$
|
|
15945
|
-
var ClearCache = core.gql(templateObject_4$
|
|
15920
|
+
var SaveMutation$1 = core.gql(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"], ["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"])), Fragments$1.config);
|
|
15921
|
+
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"])));
|
|
15946
15922
|
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"])));
|
|
15947
15923
|
var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
|
|
15948
15924
|
var ConfigService = /** @class */ (function (_super) {
|
|
@@ -16053,12 +16029,12 @@
|
|
|
16053
16029
|
case 0:
|
|
16054
16030
|
now = Date.now();
|
|
16055
16031
|
console.debug('[config] Loading Pod configuration...');
|
|
16056
|
-
query = opts && opts.query || LoadQuery;
|
|
16032
|
+
query = opts && opts.query || LoadQuery$1;
|
|
16057
16033
|
variables = opts && opts.variables || undefined;
|
|
16058
16034
|
return [4 /*yield*/, this.graphql.query({
|
|
16059
16035
|
query: query,
|
|
16060
16036
|
variables: variables,
|
|
16061
|
-
error: { code: ErrorCodes
|
|
16037
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16062
16038
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
16063
16039
|
})];
|
|
16064
16040
|
case 1:
|
|
@@ -16092,12 +16068,12 @@
|
|
|
16092
16068
|
console.debug('[config] Saving Pod configuration...', config);
|
|
16093
16069
|
json = config.asObject();
|
|
16094
16070
|
return [4 /*yield*/, this.graphql.mutate({
|
|
16095
|
-
mutation: SaveMutation,
|
|
16071
|
+
mutation: SaveMutation$1,
|
|
16096
16072
|
variables: {
|
|
16097
16073
|
data: json
|
|
16098
16074
|
},
|
|
16099
16075
|
error: {
|
|
16100
|
-
code: ErrorCodes
|
|
16076
|
+
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
16101
16077
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
16102
16078
|
}
|
|
16103
16079
|
})];
|
|
@@ -16132,7 +16108,7 @@
|
|
|
16132
16108
|
return [4 /*yield*/, this.graphql.query({
|
|
16133
16109
|
query: CacheStatistics,
|
|
16134
16110
|
variables: null,
|
|
16135
|
-
error: { code: ErrorCodes
|
|
16111
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16136
16112
|
fetchPolicy: 'network-only'
|
|
16137
16113
|
})];
|
|
16138
16114
|
case 1:
|
|
@@ -16156,7 +16132,7 @@
|
|
|
16156
16132
|
return [4 /*yield*/, this.graphql.query({
|
|
16157
16133
|
query: ClearCache,
|
|
16158
16134
|
variables: variables,
|
|
16159
|
-
error: { code: ErrorCodes
|
|
16135
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16160
16136
|
fetchPolicy: 'network-only'
|
|
16161
16137
|
})];
|
|
16162
16138
|
case 1:
|
|
@@ -16356,7 +16332,7 @@
|
|
|
16356
16332
|
};
|
|
16357
16333
|
return ConfigService;
|
|
16358
16334
|
}(BaseGraphqlService));
|
|
16359
|
-
ConfigService.ɵprov =
|
|
16335
|
+
ConfigService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConfigService_Factory() { return new ConfigService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(NetworkService), i0.ɵɵinject(FileService), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
|
|
16360
16336
|
ConfigService.decorators = [
|
|
16361
16337
|
{ type: i0.Injectable, args: [{
|
|
16362
16338
|
providedIn: 'root',
|
|
@@ -16374,9 +16350,9 @@
|
|
|
16374
16350
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
16375
16351
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
16376
16352
|
]; };
|
|
16377
|
-
var templateObject_1$
|
|
16353
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
|
|
16378
16354
|
|
|
16379
|
-
var moment$
|
|
16355
|
+
var moment$4 = momentImported__namespace;
|
|
16380
16356
|
var PlatformService = /** @class */ (function () {
|
|
16381
16357
|
function PlatformService(platform, cdkPlatform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser, downloader) {
|
|
16382
16358
|
this.platform = platform;
|
|
@@ -16601,16 +16577,16 @@
|
|
|
16601
16577
|
}
|
|
16602
16578
|
// config moment lib
|
|
16603
16579
|
try {
|
|
16604
|
-
moment$
|
|
16580
|
+
moment$4.locale(event.lang);
|
|
16605
16581
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
16606
16582
|
}
|
|
16607
16583
|
// If error, fallback to en
|
|
16608
16584
|
catch (err) {
|
|
16609
|
-
moment$
|
|
16585
|
+
moment$4.locale('en');
|
|
16610
16586
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
16611
16587
|
}
|
|
16612
16588
|
// Config date adapter
|
|
16613
|
-
_this.dateAdapter.setLocale(moment$
|
|
16589
|
+
_this.dateAdapter.setLocale(moment$4.locale());
|
|
16614
16590
|
}
|
|
16615
16591
|
});
|
|
16616
16592
|
this.settings.onChange.subscribe(function (data) {
|
|
@@ -16795,7 +16771,7 @@
|
|
|
16795
16771
|
};
|
|
16796
16772
|
return PlatformService;
|
|
16797
16773
|
}());
|
|
16798
|
-
PlatformService.ɵprov =
|
|
16774
|
+
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" });
|
|
16799
16775
|
PlatformService.decorators = [
|
|
16800
16776
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
16801
16777
|
];
|
|
@@ -16893,7 +16869,7 @@
|
|
|
16893
16869
|
};
|
|
16894
16870
|
return MatStepperI18n;
|
|
16895
16871
|
}(stepper.MatStepperIntl));
|
|
16896
|
-
MatStepperI18n.ɵprov =
|
|
16872
|
+
MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
16897
16873
|
MatStepperI18n.decorators = [
|
|
16898
16874
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
16899
16875
|
];
|
|
@@ -18085,7 +18061,7 @@
|
|
|
18085
18061
|
return 1;
|
|
18086
18062
|
}
|
|
18087
18063
|
}
|
|
18088
|
-
var ɵ0$
|
|
18064
|
+
var ɵ0$9 = function (defaultStateSize) { return [
|
|
18089
18065
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
18090
18066
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
18091
18067
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -18093,7 +18069,7 @@
|
|
|
18093
18069
|
var SCALE_OPTIONS_DEFAULT = {
|
|
18094
18070
|
startColor: rgbArrayMap.red,
|
|
18095
18071
|
startStates: [0, 2, 3],
|
|
18096
|
-
startStepsFn: ɵ0$
|
|
18072
|
+
startStepsFn: ɵ0$9
|
|
18097
18073
|
};
|
|
18098
18074
|
/**
|
|
18099
18075
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -18185,24 +18161,24 @@
|
|
|
18185
18161
|
return result;
|
|
18186
18162
|
}
|
|
18187
18163
|
|
|
18188
|
-
var EntityTestClass
|
|
18164
|
+
var EntityTestClass = /** @class */ (function () {
|
|
18189
18165
|
function EntityTestClass() {
|
|
18190
18166
|
}
|
|
18191
18167
|
return EntityTestClass;
|
|
18192
18168
|
}());
|
|
18193
|
-
var FAKE_ENTITIES
|
|
18169
|
+
var FAKE_ENTITIES = [
|
|
18194
18170
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
18195
18171
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
18196
18172
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
18197
18173
|
];
|
|
18198
|
-
function deepCopy
|
|
18174
|
+
function deepCopy(values, size) {
|
|
18199
18175
|
if (isNil(size)) {
|
|
18200
|
-
return (values || FAKE_ENTITIES
|
|
18176
|
+
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
18201
18177
|
}
|
|
18202
18178
|
var result = [];
|
|
18203
18179
|
var i = 1;
|
|
18204
18180
|
while (result.length < size) {
|
|
18205
|
-
result = result.concat((values || FAKE_ENTITIES
|
|
18181
|
+
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
18206
18182
|
var name = entity.name + ' #' + i;
|
|
18207
18183
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
18208
18184
|
}));
|
|
@@ -18212,7 +18188,7 @@
|
|
|
18212
18188
|
var AutocompleteTestPage = /** @class */ (function () {
|
|
18213
18189
|
function AutocompleteTestPage(formBuilder) {
|
|
18214
18190
|
this.formBuilder = formBuilder;
|
|
18215
|
-
this._items = deepCopy
|
|
18191
|
+
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
18216
18192
|
this.$items = new rxjs.BehaviorSubject(undefined);
|
|
18217
18193
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
18218
18194
|
this.memoryHide = false;
|
|
@@ -18257,7 +18233,7 @@
|
|
|
18257
18233
|
});
|
|
18258
18234
|
// From items
|
|
18259
18235
|
this.autocompleteFields.add('entity-items-large', {
|
|
18260
|
-
items: FAKE_ENTITIES
|
|
18236
|
+
items: FAKE_ENTITIES.slice(),
|
|
18261
18237
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
18262
18238
|
displayWith: this.entityToString
|
|
18263
18239
|
});
|
|
@@ -18270,12 +18246,12 @@
|
|
|
18270
18246
|
var _this = this;
|
|
18271
18247
|
return __generator(this, function (_a) {
|
|
18272
18248
|
data = {
|
|
18273
|
-
entity: deepCopy
|
|
18249
|
+
entity: deepCopy(FAKE_ENTITIES)[0],
|
|
18274
18250
|
// This item is NOT in the items list => i should be displayed anyway
|
|
18275
18251
|
missingEntity: {
|
|
18276
18252
|
id: -1, label: '??', name: 'Missing item'
|
|
18277
18253
|
},
|
|
18278
|
-
disableEntity: deepCopy
|
|
18254
|
+
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
18279
18255
|
};
|
|
18280
18256
|
this.form.setValue(data);
|
|
18281
18257
|
// Load observables
|
|
@@ -18473,13 +18449,13 @@
|
|
|
18473
18449
|
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_TESTING_PAGES,] }] }
|
|
18474
18450
|
]; };
|
|
18475
18451
|
|
|
18476
|
-
var moment$
|
|
18452
|
+
var moment$5 = momentImported__namespace;
|
|
18477
18453
|
var SwipeTestPage = /** @class */ (function () {
|
|
18478
18454
|
function SwipeTestPage(formBuilder, dateFormatPipe) {
|
|
18479
18455
|
this.formBuilder = formBuilder;
|
|
18480
18456
|
this.dateFormatPipe = dateFormatPipe;
|
|
18481
18457
|
this.$dates = new rxjs.BehaviorSubject(undefined);
|
|
18482
|
-
this._today = moment$
|
|
18458
|
+
this._today = moment$5().startOf('day');
|
|
18483
18459
|
this.form = formBuilder.group({
|
|
18484
18460
|
empty: [null, i1.Validators.required],
|
|
18485
18461
|
date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
|
|
@@ -18493,7 +18469,7 @@
|
|
|
18493
18469
|
var _this = this;
|
|
18494
18470
|
var dates = [];
|
|
18495
18471
|
for (var d = 0; d < 7; d++) {
|
|
18496
|
-
dates[d] = moment$
|
|
18472
|
+
dates[d] = moment$5(this._today).add(d - 3, 'day');
|
|
18497
18473
|
}
|
|
18498
18474
|
this.$dates.next(dates);
|
|
18499
18475
|
this.loadData();
|
|
@@ -18540,7 +18516,7 @@
|
|
|
18540
18516
|
{ type: DateFormatPipe }
|
|
18541
18517
|
]; };
|
|
18542
18518
|
|
|
18543
|
-
var moment = momentImported__namespace;
|
|
18519
|
+
var moment$6 = momentImported__namespace;
|
|
18544
18520
|
var DateTimeTestPage = /** @class */ (function () {
|
|
18545
18521
|
function DateTimeTestPage(platform, formBuilder, cd) {
|
|
18546
18522
|
this.platform = platform;
|
|
@@ -18576,7 +18552,7 @@
|
|
|
18576
18552
|
var now, data;
|
|
18577
18553
|
var _this = this;
|
|
18578
18554
|
return __generator(this, function (_a) {
|
|
18579
|
-
now = moment();
|
|
18555
|
+
now = moment$6();
|
|
18580
18556
|
data = {
|
|
18581
18557
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
18582
18558
|
enable: toDateISOString(now),
|
|
@@ -18641,23 +18617,23 @@
|
|
|
18641
18617
|
{ type: i0.ChangeDetectorRef }
|
|
18642
18618
|
]; };
|
|
18643
18619
|
|
|
18644
|
-
var EntityTestClass = /** @class */ (function () {
|
|
18620
|
+
var EntityTestClass$1 = /** @class */ (function () {
|
|
18645
18621
|
function EntityTestClass() {
|
|
18646
18622
|
}
|
|
18647
18623
|
return EntityTestClass;
|
|
18648
18624
|
}());
|
|
18649
|
-
var FAKE_ENTITIES = [
|
|
18625
|
+
var FAKE_ENTITIES$1 = [
|
|
18650
18626
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
18651
18627
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
18652
18628
|
{ id: 3, label: 'CCC', name: 'Item C' }
|
|
18653
18629
|
];
|
|
18654
|
-
function deepCopy(values) {
|
|
18655
|
-
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
18630
|
+
function deepCopy$1(values) {
|
|
18631
|
+
return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
|
|
18656
18632
|
}
|
|
18657
18633
|
var ChipsTestPage = /** @class */ (function () {
|
|
18658
18634
|
function ChipsTestPage(formBuilder) {
|
|
18659
18635
|
this.formBuilder = formBuilder;
|
|
18660
|
-
this._items = deepCopy(FAKE_ENTITIES);
|
|
18636
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1);
|
|
18661
18637
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
18662
18638
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
18663
18639
|
this.form = formBuilder.group({
|
|
@@ -18677,7 +18653,7 @@
|
|
|
18677
18653
|
});
|
|
18678
18654
|
// From items
|
|
18679
18655
|
this.autocompleteFields.add('entity-items', {
|
|
18680
|
-
items: FAKE_ENTITIES.slice(),
|
|
18656
|
+
items: FAKE_ENTITIES$1.slice(),
|
|
18681
18657
|
attributes: ['label', 'name'],
|
|
18682
18658
|
displayWith: this.entityToString
|
|
18683
18659
|
});
|
|
@@ -18700,8 +18676,8 @@
|
|
|
18700
18676
|
data = {
|
|
18701
18677
|
entity: [],
|
|
18702
18678
|
// THis item is NOT in the items list => i should be displayed anyway
|
|
18703
|
-
entityInitial: FAKE_ENTITIES.slice(1, 2),
|
|
18704
|
-
disableEntity: FAKE_ENTITIES.slice(1, 2)
|
|
18679
|
+
entityInitial: FAKE_ENTITIES$1.slice(1, 2),
|
|
18680
|
+
disableEntity: FAKE_ENTITIES$1.slice(1, 2)
|
|
18705
18681
|
};
|
|
18706
18682
|
this.form.setValue(data);
|
|
18707
18683
|
return [2 /*return*/];
|
|
@@ -18711,7 +18687,7 @@
|
|
|
18711
18687
|
ChipsTestPage.prototype.loadItems = function () {
|
|
18712
18688
|
return __awaiter(this, void 0, void 0, function () {
|
|
18713
18689
|
return __generator(this, function (_a) {
|
|
18714
|
-
this._$items.next(deepCopy(FAKE_ENTITIES));
|
|
18690
|
+
this._$items.next(deepCopy$1(FAKE_ENTITIES$1));
|
|
18715
18691
|
return [2 /*return*/];
|
|
18716
18692
|
});
|
|
18717
18693
|
});
|
|
@@ -18748,7 +18724,7 @@
|
|
|
18748
18724
|
{ type: i1.FormBuilder }
|
|
18749
18725
|
]; };
|
|
18750
18726
|
|
|
18751
|
-
var routes
|
|
18727
|
+
var routes = [
|
|
18752
18728
|
{
|
|
18753
18729
|
path: '',
|
|
18754
18730
|
pathMatch: 'full',
|
|
@@ -18798,7 +18774,7 @@
|
|
|
18798
18774
|
i1.ReactiveFormsModule,
|
|
18799
18775
|
SharedMaterialModule,
|
|
18800
18776
|
i1$2.TranslateModule.forChild(),
|
|
18801
|
-
i3.RouterModule.forChild(routes
|
|
18777
|
+
i3.RouterModule.forChild(routes)
|
|
18802
18778
|
],
|
|
18803
18779
|
declarations: [
|
|
18804
18780
|
MaterialTestingPage,
|
|
@@ -19916,7 +19892,7 @@
|
|
|
19916
19892
|
};
|
|
19917
19893
|
return UserSettingsValidatorService;
|
|
19918
19894
|
}(AppValidatorService));
|
|
19919
|
-
UserSettingsValidatorService.ɵprov =
|
|
19895
|
+
UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
19920
19896
|
UserSettingsValidatorService.decorators = [
|
|
19921
19897
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
19922
19898
|
];
|
|
@@ -19964,7 +19940,7 @@
|
|
|
19964
19940
|
};
|
|
19965
19941
|
return AccountValidatorService;
|
|
19966
19942
|
}(AppValidatorService));
|
|
19967
|
-
AccountValidatorService.ɵprov =
|
|
19943
|
+
AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
|
|
19968
19944
|
AccountValidatorService.decorators = [
|
|
19969
19945
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
19970
19946
|
];
|
|
@@ -20561,7 +20537,7 @@
|
|
|
20561
20537
|
};
|
|
20562
20538
|
return LocalSettingsValidatorService;
|
|
20563
20539
|
}(AppValidatorService));
|
|
20564
|
-
LocalSettingsValidatorService.ɵprov =
|
|
20540
|
+
LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
|
|
20565
20541
|
LocalSettingsValidatorService.decorators = [
|
|
20566
20542
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
20567
20543
|
];
|
|
@@ -21345,7 +21321,7 @@
|
|
|
21345
21321
|
};
|
|
21346
21322
|
return IsOnFieldModePipe;
|
|
21347
21323
|
}());
|
|
21348
|
-
IsOnFieldModePipe.ɵprov =
|
|
21324
|
+
IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
21349
21325
|
IsOnFieldModePipe.decorators = [
|
|
21350
21326
|
{ type: i0.Pipe, args: [{
|
|
21351
21327
|
name: 'isOnField'
|
|
@@ -21360,7 +21336,7 @@
|
|
|
21360
21336
|
};
|
|
21361
21337
|
return IsNotOnFieldModePipe;
|
|
21362
21338
|
}());
|
|
21363
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
21339
|
+
IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
21364
21340
|
IsNotOnFieldModePipe.decorators = [
|
|
21365
21341
|
{ type: i0.Pipe, args: [{
|
|
21366
21342
|
name: 'isNotOnField'
|
|
@@ -21378,7 +21354,7 @@
|
|
|
21378
21354
|
};
|
|
21379
21355
|
return PersonToStringPipe;
|
|
21380
21356
|
}());
|
|
21381
|
-
PersonToStringPipe.ɵprov =
|
|
21357
|
+
PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
21382
21358
|
PersonToStringPipe.decorators = [
|
|
21383
21359
|
{ type: i0.Pipe, args: [{
|
|
21384
21360
|
name: 'personToString'
|
|
@@ -21790,7 +21766,7 @@
|
|
|
21790
21766
|
};
|
|
21791
21767
|
return IsLoginAccountPipe;
|
|
21792
21768
|
}());
|
|
21793
|
-
IsLoginAccountPipe.ɵprov =
|
|
21769
|
+
IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
21794
21770
|
IsLoginAccountPipe.decorators = [
|
|
21795
21771
|
{ type: i0.Pipe, args: [{
|
|
21796
21772
|
name: 'isLogin'
|
|
@@ -21805,7 +21781,7 @@
|
|
|
21805
21781
|
};
|
|
21806
21782
|
return AccountToStringPipe;
|
|
21807
21783
|
}());
|
|
21808
|
-
AccountToStringPipe.ɵprov =
|
|
21784
|
+
AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
21809
21785
|
AccountToStringPipe.decorators = [
|
|
21810
21786
|
{ type: i0.Pipe, args: [{
|
|
21811
21787
|
name: 'accountToString'
|
|
@@ -21823,7 +21799,7 @@
|
|
|
21823
21799
|
};
|
|
21824
21800
|
return DepartmentToStringPipe;
|
|
21825
21801
|
}());
|
|
21826
|
-
DepartmentToStringPipe.ɵprov =
|
|
21802
|
+
DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
21827
21803
|
DepartmentToStringPipe.decorators = [
|
|
21828
21804
|
{ type: i0.Pipe, args: [{
|
|
21829
21805
|
name: 'departmentToString'
|
|
@@ -21858,7 +21834,7 @@
|
|
|
21858
21834
|
};
|
|
21859
21835
|
return MenuService;
|
|
21860
21836
|
}());
|
|
21861
|
-
MenuService.ɵprov =
|
|
21837
|
+
MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
21862
21838
|
MenuService.decorators = [
|
|
21863
21839
|
{ type: i0.Injectable, args: [{
|
|
21864
21840
|
providedIn: 'root'
|
|
@@ -22437,7 +22413,7 @@
|
|
|
22437
22413
|
};
|
|
22438
22414
|
return AuthGuardService;
|
|
22439
22415
|
}());
|
|
22440
|
-
AuthGuardService.ɵprov =
|
|
22416
|
+
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" });
|
|
22441
22417
|
AuthGuardService.decorators = [
|
|
22442
22418
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
22443
22419
|
];
|
|
@@ -22488,7 +22464,7 @@
|
|
|
22488
22464
|
query: query,
|
|
22489
22465
|
variables: { id: id },
|
|
22490
22466
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
22491
|
-
error: { code: ErrorCodes
|
|
22467
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
22492
22468
|
})
|
|
22493
22469
|
.pipe(operators.map(function (_b) {
|
|
22494
22470
|
var data = _b.data;
|
|
@@ -22510,7 +22486,7 @@
|
|
|
22510
22486
|
query: query,
|
|
22511
22487
|
variables: { id: id },
|
|
22512
22488
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
22513
|
-
error: { code: ErrorCodes
|
|
22489
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
22514
22490
|
})];
|
|
22515
22491
|
case 1:
|
|
22516
22492
|
data = (_b.sent()).data;
|
|
@@ -22546,7 +22522,7 @@
|
|
|
22546
22522
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
22547
22523
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
22548
22524
|
variables: variables,
|
|
22549
|
-
error: { code: ErrorCodes
|
|
22525
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
22550
22526
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
22551
22527
|
})
|
|
22552
22528
|
.pipe(operators.map(function (_b) {
|
|
@@ -22588,7 +22564,7 @@
|
|
|
22588
22564
|
return [4 /*yield*/, this.graphql.query({
|
|
22589
22565
|
query: query,
|
|
22590
22566
|
variables: variables,
|
|
22591
|
-
error: { code: ErrorCodes
|
|
22567
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
22592
22568
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
22593
22569
|
})];
|
|
22594
22570
|
case 1:
|
|
@@ -22636,7 +22612,7 @@
|
|
|
22636
22612
|
variables: {
|
|
22637
22613
|
filter: filter && filter.asPodObject()
|
|
22638
22614
|
},
|
|
22639
|
-
error: { code: ErrorCodes
|
|
22615
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
22640
22616
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
22641
22617
|
})];
|
|
22642
22618
|
case 3:
|
|
@@ -22678,7 +22654,7 @@
|
|
|
22678
22654
|
variables: {
|
|
22679
22655
|
data: json
|
|
22680
22656
|
},
|
|
22681
|
-
error: { code: ErrorCodes
|
|
22657
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
22682
22658
|
update: function (proxy, _b) {
|
|
22683
22659
|
var data = _b.data;
|
|
22684
22660
|
var savedEntities = data && data.data;
|
|
@@ -22745,7 +22721,7 @@
|
|
|
22745
22721
|
variables: {
|
|
22746
22722
|
data: json
|
|
22747
22723
|
},
|
|
22748
|
-
error: { code: ErrorCodes
|
|
22724
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
22749
22725
|
update: function (cache, _b) {
|
|
22750
22726
|
var data = _b.data;
|
|
22751
22727
|
// Update entity
|
|
@@ -22803,7 +22779,7 @@
|
|
|
22803
22779
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
22804
22780
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
22805
22781
|
variables: { ids: ids },
|
|
22806
|
-
error: { code: ErrorCodes
|
|
22782
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
22807
22783
|
update: function (cache, res) {
|
|
22808
22784
|
// Remove from cache
|
|
22809
22785
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -22856,7 +22832,7 @@
|
|
|
22856
22832
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
22857
22833
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
22858
22834
|
variables: { id: id },
|
|
22859
|
-
error: { code: ErrorCodes
|
|
22835
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
22860
22836
|
update: function (proxy, res) {
|
|
22861
22837
|
// Remove from cache
|
|
22862
22838
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -22895,7 +22871,7 @@
|
|
|
22895
22871
|
query: opts && opts.query || this.subscriptions.listenChanges,
|
|
22896
22872
|
variables: variables,
|
|
22897
22873
|
error: {
|
|
22898
|
-
code: ErrorCodes
|
|
22874
|
+
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
22899
22875
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
22900
22876
|
}
|
|
22901
22877
|
})
|
|
@@ -23104,7 +23080,7 @@
|
|
|
23104
23080
|
if (this._debug)
|
|
23105
23081
|
invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
|
|
23106
23082
|
// Stop with an error
|
|
23107
|
-
throw { code: ErrorCodes
|
|
23083
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
23108
23084
|
}
|
|
23109
23085
|
this._editingRowCount = 0;
|
|
23110
23086
|
data = void 0;
|
|
@@ -24062,14 +24038,14 @@
|
|
|
24062
24038
|
case 0:
|
|
24063
24039
|
opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
|
|
24064
24040
|
if (this.readOnly) {
|
|
24065
|
-
throw { code: ErrorCodes
|
|
24041
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
24066
24042
|
}
|
|
24067
24043
|
this.resetError();
|
|
24068
24044
|
// Keep edited row id (should be done BEFORE confirmEditCreate() )
|
|
24069
24045
|
this.previouslyEditedRowId = opts.keepEditing && ((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined;
|
|
24070
24046
|
previouslyEditedData = isNotNil(this.previouslyEditedRowId) && this.editedRow.currentData || ((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.currentData);
|
|
24071
24047
|
if (!this.confirmEditCreate()) {
|
|
24072
|
-
throw { code: ErrorCodes
|
|
24048
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
24073
24049
|
}
|
|
24074
24050
|
// Mark as saving
|
|
24075
24051
|
this.markAsSaving();
|
|
@@ -24222,7 +24198,7 @@
|
|
|
24222
24198
|
switch (_d.label) {
|
|
24223
24199
|
case 0:
|
|
24224
24200
|
if (this.readOnly) {
|
|
24225
|
-
throw { code: ErrorCodes
|
|
24201
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
24226
24202
|
}
|
|
24227
24203
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
24228
24204
|
return [2 /*return*/, 0]; // SKip
|
|
@@ -25890,7 +25866,7 @@
|
|
|
25890
25866
|
case 4:
|
|
25891
25867
|
data = _b.sent();
|
|
25892
25868
|
if (!data)
|
|
25893
|
-
throw { code: ErrorCodes
|
|
25869
|
+
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
25894
25870
|
this._usageMode = this.computeUsageMode(data);
|
|
25895
25871
|
return [4 /*yield*/, this.onEntityLoaded(data, opts)];
|
|
25896
25872
|
case 5:
|
|
@@ -26620,10 +26596,10 @@
|
|
|
26620
26596
|
exports.UserEventFilter = __decorate([
|
|
26621
26597
|
EntityClass({ typename: 'UserEventVO' })
|
|
26622
26598
|
], exports.UserEventFilter);
|
|
26623
|
-
var SaveQuery = core.gql(templateObject_1$
|
|
26624
|
-
var LoadAllQuery = core.gql(templateObject_2$
|
|
26625
|
-
var DeleteByIdsMutation = core.gql(templateObject_3$
|
|
26626
|
-
var LoadAllWithContentQuery = core.gql(templateObject_4$
|
|
26599
|
+
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);
|
|
26600
|
+
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);
|
|
26601
|
+
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"])));
|
|
26602
|
+
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);
|
|
26627
26603
|
var UserEventService = /** @class */ (function (_super) {
|
|
26628
26604
|
__extends(UserEventService, _super);
|
|
26629
26605
|
function UserEventService(graphql, accountService, network, translate, toastController, environment) {
|
|
@@ -26944,7 +26920,7 @@
|
|
|
26944
26920
|
};
|
|
26945
26921
|
return UserEventService;
|
|
26946
26922
|
}(BaseGraphqlService));
|
|
26947
|
-
UserEventService.ɵprov =
|
|
26923
|
+
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" });
|
|
26948
26924
|
UserEventService.decorators = [
|
|
26949
26925
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
26950
26926
|
];
|
|
@@ -26956,7 +26932,7 @@
|
|
|
26956
26932
|
{ type: i1$5.ToastController },
|
|
26957
26933
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
26958
26934
|
]; };
|
|
26959
|
-
var templateObject_1$
|
|
26935
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
|
|
26960
26936
|
|
|
26961
26937
|
var ICONS_MAP = {
|
|
26962
26938
|
DEBUG_DATA: { matIcon: 'bug_report' },
|
|
@@ -27219,16 +27195,16 @@
|
|
|
27219
27195
|
], exports.PersonFilter);
|
|
27220
27196
|
|
|
27221
27197
|
var PersonFragments = {
|
|
27222
|
-
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 }"])))
|
|
27198
|
+
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 }"])))
|
|
27223
27199
|
};
|
|
27224
27200
|
// Load persons query
|
|
27225
27201
|
var PersonQueries = {
|
|
27226
|
-
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),
|
|
27227
|
-
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)
|
|
27202
|
+
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),
|
|
27203
|
+
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)
|
|
27228
27204
|
};
|
|
27229
27205
|
var PersonMutations = {
|
|
27230
|
-
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),
|
|
27231
|
-
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 }"])))
|
|
27206
|
+
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),
|
|
27207
|
+
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 }"])))
|
|
27232
27208
|
};
|
|
27233
27209
|
var PersonService = /** @class */ (function (_super_1) {
|
|
27234
27210
|
__extends(PersonService, _super_1);
|
|
@@ -27352,7 +27328,7 @@
|
|
|
27352
27328
|
};
|
|
27353
27329
|
return PersonService;
|
|
27354
27330
|
}(BaseEntityService));
|
|
27355
|
-
PersonService.ɵprov =
|
|
27331
|
+
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" });
|
|
27356
27332
|
PersonService.decorators = [
|
|
27357
27333
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
27358
27334
|
];
|
|
@@ -27362,7 +27338,7 @@
|
|
|
27362
27338
|
{ type: NetworkService },
|
|
27363
27339
|
{ type: EntitiesStorage }
|
|
27364
27340
|
]; };
|
|
27365
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
27341
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
|
|
27366
27342
|
|
|
27367
27343
|
var PersonValidatorService = /** @class */ (function () {
|
|
27368
27344
|
function PersonValidatorService(formBuilder, accountValidatorService) {
|
|
@@ -27385,7 +27361,7 @@
|
|
|
27385
27361
|
};
|
|
27386
27362
|
return PersonValidatorService;
|
|
27387
27363
|
}());
|
|
27388
|
-
PersonValidatorService.ɵprov =
|
|
27364
|
+
PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
|
|
27389
27365
|
PersonValidatorService.decorators = [
|
|
27390
27366
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
27391
27367
|
];
|
|
@@ -27608,16 +27584,16 @@
|
|
|
27608
27584
|
];
|
|
27609
27585
|
AdminModule.ctorParameters = function () { return []; };
|
|
27610
27586
|
|
|
27611
|
-
var ɵ0 = {
|
|
27587
|
+
var ɵ0$a = {
|
|
27612
27588
|
profile: 'ADMIN'
|
|
27613
27589
|
};
|
|
27614
|
-
var routes = [
|
|
27590
|
+
var routes$1 = [
|
|
27615
27591
|
{
|
|
27616
27592
|
path: 'users',
|
|
27617
27593
|
pathMatch: 'full',
|
|
27618
27594
|
component: UsersPage,
|
|
27619
27595
|
canActivate: [AuthGuardService],
|
|
27620
|
-
data: ɵ0
|
|
27596
|
+
data: ɵ0$a
|
|
27621
27597
|
}
|
|
27622
27598
|
];
|
|
27623
27599
|
var AdminRoutingModule = /** @class */ (function () {
|
|
@@ -27630,13 +27606,13 @@
|
|
|
27630
27606
|
imports: [
|
|
27631
27607
|
SharedRoutingModule,
|
|
27632
27608
|
AdminModule,
|
|
27633
|
-
i3.RouterModule.forChild(routes)
|
|
27609
|
+
i3.RouterModule.forChild(routes$1)
|
|
27634
27610
|
],
|
|
27635
27611
|
exports: [i3.RouterModule]
|
|
27636
27612
|
},] }
|
|
27637
27613
|
];
|
|
27638
27614
|
|
|
27639
|
-
var ErrorCodes = {
|
|
27615
|
+
var ErrorCodes$2 = {
|
|
27640
27616
|
LOAD_PERSONS_ERROR: 100,
|
|
27641
27617
|
SAVE_PERSONS_ERROR: 101,
|
|
27642
27618
|
DELETE_PERSONS_ERROR: 102,
|
|
@@ -27746,7 +27722,7 @@
|
|
|
27746
27722
|
exports.EntityStore = EntityStore;
|
|
27747
27723
|
exports.EntityUtils = EntityUtils;
|
|
27748
27724
|
exports.Environment = Environment;
|
|
27749
|
-
exports.ErrorCodes = ErrorCodes;
|
|
27725
|
+
exports.ErrorCodes = ErrorCodes$2;
|
|
27750
27726
|
exports.EvenPipe = EvenPipe;
|
|
27751
27727
|
exports.FileService = FileService;
|
|
27752
27728
|
exports.FileSizePipe = FileSizePipe;
|
|
@@ -27756,7 +27732,7 @@
|
|
|
27756
27732
|
exports.FormErrorAdapter = FormErrorAdapter;
|
|
27757
27733
|
exports.FormErrorTranslatePipe = FormErrorTranslatePipe;
|
|
27758
27734
|
exports.FormFieldValuesHolder = FormFieldValuesHolder;
|
|
27759
|
-
exports.Fragments = Fragments;
|
|
27735
|
+
exports.Fragments = Fragments$1;
|
|
27760
27736
|
exports.GraphqlService = GraphqlService;
|
|
27761
27737
|
exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
|
|
27762
27738
|
exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
|
|
@@ -28004,17 +27980,17 @@
|
|
|
28004
27980
|
exports.waitFor = waitFor;
|
|
28005
27981
|
exports.waitIdle = waitIdle;
|
|
28006
27982
|
exports.waitWhilePending = waitWhilePending;
|
|
28007
|
-
exports
|
|
28008
|
-
exports
|
|
28009
|
-
exports
|
|
28010
|
-
exports
|
|
28011
|
-
exports
|
|
28012
|
-
exports
|
|
28013
|
-
exports
|
|
28014
|
-
exports
|
|
28015
|
-
exports
|
|
27983
|
+
exports.ɵ0 = ɵ0$5;
|
|
27984
|
+
exports.ɵa = CustomReuseStrategy;
|
|
27985
|
+
exports.ɵb = MatNumpadDomService;
|
|
27986
|
+
exports.ɵc = isFocusableElement;
|
|
27987
|
+
exports.ɵd = RegisterForm;
|
|
27988
|
+
exports.ɵe = AccountValidatorService;
|
|
27989
|
+
exports.ɵf = RegisterModal;
|
|
27990
|
+
exports.ɵg = UserSettingsValidatorService;
|
|
27991
|
+
exports.ɵh = LocalSettingsValidatorService;
|
|
28016
27992
|
|
|
28017
27993
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
28018
27994
|
|
|
28019
|
-
}));
|
|
27995
|
+
})));
|
|
28020
27996
|
//# sourceMappingURL=sumaris-net.ngx-components.umd.js.map
|