@sumaris-net/ngx-components 0.26.1 → 0.26.5
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 +388 -303
- 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/doc/changelog.md +1 -0
- package/esm2015/src/app/core/form/entity-editor.class.js +9 -5
- package/esm2015/src/app/core/form/form.class.js +3 -3
- package/esm2015/src/app/core/table/table.class.js +3 -3
- package/esm2015/src/app/shared/material/badge/badge-icon.directive.js +62 -0
- package/esm2015/src/app/shared/material/badge/badge-icon.module.js +23 -0
- package/esm2015/src/app/shared/material/badge/badge-icon.test.js +10 -0
- package/esm2015/src/app/shared/material/material.module.js +4 -2
- package/esm2015/src/app/shared/material/testing/material.testing.module.js +9 -2
- package/esm2015/src/app/shared/material/testing/material.testing.page.js +2 -2
- package/esm2015/src/app/shared/pipes/form.pipes.js +3 -3
- package/esm2015/src/app/shared/validator/form-error-adapter.class.js +5 -5
- package/esm2015/sumaris-net.ngx-components.js +10 -7
- package/fesm2015/sumaris-net.ngx-components.js +368 -284
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/entity-editor.class.d.ts +6 -2
- package/src/app/core/form/form.class.d.ts +2 -2
- package/src/app/core/table/table.class.d.ts +2 -2
- package/src/app/shared/material/badge/badge-icon.directive.d.ts +15 -0
- package/src/app/shared/material/badge/badge-icon.module.d.ts +2 -0
- package/src/app/shared/material/badge/badge-icon.test.d.ts +2 -0
- package/src/app/shared/pipes/form.pipes.d.ts +2 -2
- package/src/app/shared/validator/form-error-adapter.class.d.ts +1 -1
- package/sumaris-net.ngx-components.d.ts +9 -6
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/cdk/table'), require('@angular/cdk/a11y'), require('@angular/cdk/overlay'), require('@angular/cdk/scrolling'), require('@angular/material/core'), require('@angular/material/table'), require('@angular/material/sort'), require('@angular/material/paginator'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/checkbox'), require('@angular/material/expansion'), require('@angular/material/toolbar'), require('@angular/material/icon'), require('@angular/material/button'), require('@angular/material/menu'), require('@angular/material/select'), require('@angular/material/card'), require('@angular/material/tabs'), require('@angular/material/stepper'), require('@angular/material/list'), require('@angular/material/button-toggle'), require('@angular/material/progress-spinner'), require('@angular/material/progress-bar'), require('@angular/material/radio'), require('@angular/material/badge'), require('@angular/material/slide-toggle'), require('@angular/material/dialog'), require('@angular/material/autocomplete'), require('@angular/forms'), require('rxjs'), require('rxjs/operators'), require('@ngx-translate/core'), require('@ionic/angular'), require('moment'), require('@angular/material-moment-adapter'), require('@ionic-native/keyboard/ngx'), require('angular2-text-mask'), require('ngx-material-timepicker'), require('@angular/material/datepicker'), require('@angular/animations'), require('@angular/material/divider'), require('@angular/material/tooltip'), require('@angular/material/chips'), require('@angular/router'), require('@angular/platform-browser'), require('@angular/common/http'), require('ngx-color-picker'), require('@ionic-native/native-audio/ngx'), require('@ionic-native/vibration/ngx'), require('@ionic-native/audio-management/ngx'), require('@ionic-native/native-audio/ngx/index'), require('@ionic-native/vibration/ngx/index'), require('@ionic-native/audio-management/ngx/index'), require('uuid/v4'), require('@angular/cdk/drag-drop'), require('ngx-markdown'), require('tweetnacl'), require('@ionic/storage'), require('zone.js/dist/zone-error'), require('@ionic-native/splash-screen/ngx'), require('@ionic-native/network/ngx'), require('ionic-cache'), require('ionic-cache/dist/cache.service'), require('@ionic-native/network/ngx/index'), require('@ionic-native/splash-screen/ngx/index'), require('@ionic-native/status-bar/ngx'), require('@angular/cdk/platform'), require('@ionic-native/in-app-browser/ngx'), require('@apollo/client/core'), require('apollo-angular'), require('@apollo/client/link/ws'), require('@apollo/client/utilities'), require('@apollo/client/link/retry'), require('apollo-link-queue'), require('apollo-link-serialize'), require('apollo-link-logger'), require('apollo-angular/http'), require('apollo3-cache-persist'), require('@ionic-native/downloader/ngx'), require('@ionic-native/status-bar/ngx/index'), require('@ionic-native/keyboard/ngx/index'), require('@ionic-native/in-app-browser/ngx/index'), require('@ionic-native/downloader/ngx/index'), require('@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
|
}
|
|
@@ -3983,12 +3960,12 @@
|
|
|
3983
3960
|
}());
|
|
3984
3961
|
|
|
3985
3962
|
var APP_FORM_ERROR_I18N_KEYS = new i0.InjectionToken('appFormErrorKeys');
|
|
3986
|
-
var
|
|
3987
|
-
function
|
|
3963
|
+
var FormErrorTranslator = /** @class */ (function () {
|
|
3964
|
+
function FormErrorTranslator(translate, errorI18nKeys) {
|
|
3988
3965
|
this.translate = translate;
|
|
3989
3966
|
this.errorI18nKeys = Object.assign(Object.assign({}, SharedValidators.I18N_ERROR_KEYS), errorI18nKeys);
|
|
3990
3967
|
}
|
|
3991
|
-
|
|
3968
|
+
FormErrorTranslator.prototype.translateErrors = function (control, opts) {
|
|
3992
3969
|
var _this = this;
|
|
3993
3970
|
if (!control || !control.invalid)
|
|
3994
3971
|
return '';
|
|
@@ -4017,14 +3994,14 @@
|
|
|
4017
3994
|
return res + (res.length ? separator : '') + formError;
|
|
4018
3995
|
}, "");
|
|
4019
3996
|
};
|
|
4020
|
-
|
|
3997
|
+
FormErrorTranslator.prototype.translateControlPath = function (path, opts) {
|
|
4021
3998
|
if (opts === null || opts === void 0 ? void 0 : opts.controlPathTranslator) {
|
|
4022
3999
|
return opts === null || opts === void 0 ? void 0 : opts.controlPathTranslator.translateControlPath(path);
|
|
4023
4000
|
}
|
|
4024
4001
|
var i18nKey = (opts && opts.i18nPrefix || '') + changeCaseToUnderscore(path).toUpperCase();
|
|
4025
4002
|
return this.translate.instant(i18nKey);
|
|
4026
4003
|
};
|
|
4027
|
-
|
|
4004
|
+
FormErrorTranslator.prototype.translateError = function (errorKey, errorContent) {
|
|
4028
4005
|
var i18nKey = this.errorI18nKeys[errorKey]
|
|
4029
4006
|
// Try to generate a standard error key, like 'ERROR.FIELD_xxx_xxx'
|
|
4030
4007
|
|| ('ERROR.FIELD_' + changeCaseToUnderscore(errorKey).toUpperCase());
|
|
@@ -4041,13 +4018,13 @@
|
|
|
4041
4018
|
console.error("[form-error-adapter] Cannot translate error key '" + errorKey + "'. Please add more formErrorsKey into APP_FORM_ERROR_I18N_KEYS injection token");
|
|
4042
4019
|
return errorKey;
|
|
4043
4020
|
};
|
|
4044
|
-
return
|
|
4021
|
+
return FormErrorTranslator;
|
|
4045
4022
|
}());
|
|
4046
|
-
|
|
4047
|
-
|
|
4023
|
+
FormErrorTranslator.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormErrorTranslator_Factory() { return new FormErrorTranslator(i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(APP_FORM_ERROR_I18N_KEYS, 8)); }, token: FormErrorTranslator, providedIn: "root" });
|
|
4024
|
+
FormErrorTranslator.decorators = [
|
|
4048
4025
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
4049
4026
|
];
|
|
4050
|
-
|
|
4027
|
+
FormErrorTranslator.ctorParameters = function () { return [
|
|
4051
4028
|
{ type: i1$2.TranslateService },
|
|
4052
4029
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_FORM_ERROR_I18N_KEYS,] }] }
|
|
4053
4030
|
]; };
|
|
@@ -4067,7 +4044,7 @@
|
|
|
4067
4044
|
},] }
|
|
4068
4045
|
];
|
|
4069
4046
|
FormErrorTranslatePipe.ctorParameters = function () { return [
|
|
4070
|
-
{ type:
|
|
4047
|
+
{ type: FormErrorTranslator }
|
|
4071
4048
|
]; };
|
|
4072
4049
|
|
|
4073
4050
|
var SharedPipesModule = /** @class */ (function () {
|
|
@@ -4325,9 +4302,9 @@
|
|
|
4325
4302
|
var hour = parseInt(durationParts[0] || '0');
|
|
4326
4303
|
var minute = parseInt(durationParts[1] || '0');
|
|
4327
4304
|
var value = hour + (minute + 0.5) / 60;
|
|
4328
|
-
return roundFloat(value, maxDecimals);
|
|
4305
|
+
return roundFloat$1(value, maxDecimals);
|
|
4329
4306
|
}
|
|
4330
|
-
function roundFloat(input, maxDecimals) {
|
|
4307
|
+
function roundFloat$1(input, maxDecimals) {
|
|
4331
4308
|
if (maxDecimals > 0) {
|
|
4332
4309
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
4333
4310
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -4351,9 +4328,9 @@
|
|
|
4351
4328
|
DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
|
|
4352
4329
|
}
|
|
4353
4330
|
};
|
|
4354
|
-
var noop$
|
|
4331
|
+
var noop$1 = function () {
|
|
4355
4332
|
};
|
|
4356
|
-
var ɵ0$
|
|
4333
|
+
var ɵ0$1 = noop$1;
|
|
4357
4334
|
var MatLatLongField = /** @class */ (function () {
|
|
4358
4335
|
function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
|
|
4359
4336
|
this.platform = platform;
|
|
@@ -4361,8 +4338,8 @@
|
|
|
4361
4338
|
this.formBuilder = formBuilder;
|
|
4362
4339
|
this.cd = cd;
|
|
4363
4340
|
this.formGroupDir = formGroupDir;
|
|
4364
|
-
this._onChangeCallback = noop$
|
|
4365
|
-
this._onTouchedCallback = noop$
|
|
4341
|
+
this._onChangeCallback = noop$1;
|
|
4342
|
+
this._onTouchedCallback = noop$1;
|
|
4366
4343
|
this._subscription = new rxjs.Subscription();
|
|
4367
4344
|
this.disabling = false;
|
|
4368
4345
|
this.writing = false;
|
|
@@ -4713,14 +4690,14 @@
|
|
|
4713
4690
|
},] }
|
|
4714
4691
|
];
|
|
4715
4692
|
|
|
4716
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
4693
|
+
var DEFAULT_VALUE_ACCESSOR$1 = {
|
|
4717
4694
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
4718
4695
|
useExisting: i0.forwardRef(function () { return MatDate; }),
|
|
4719
4696
|
multi: true
|
|
4720
4697
|
};
|
|
4721
|
-
var DAY_MASK
|
|
4722
|
-
var noop$
|
|
4723
|
-
var ɵ0$
|
|
4698
|
+
var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
4699
|
+
var noop$2 = function () { };
|
|
4700
|
+
var ɵ0$2 = noop$2;
|
|
4724
4701
|
var MatDate = /** @class */ (function () {
|
|
4725
4702
|
function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
4726
4703
|
this.dateAdapter = dateAdapter;
|
|
@@ -4729,12 +4706,12 @@
|
|
|
4729
4706
|
this.cd = cd;
|
|
4730
4707
|
this.keyboard = keyboard;
|
|
4731
4708
|
this.formGroupDir = formGroupDir;
|
|
4732
|
-
this._onChangeCallback = noop$
|
|
4733
|
-
this._onTouchedCallback = noop$
|
|
4709
|
+
this._onChangeCallback = noop$2;
|
|
4710
|
+
this._onTouchedCallback = noop$2;
|
|
4734
4711
|
this._subscription = new rxjs.Subscription();
|
|
4735
4712
|
this.writing = true;
|
|
4736
4713
|
this.disabling = false;
|
|
4737
|
-
this.dayMask = DAY_MASK
|
|
4714
|
+
this.dayMask = DAY_MASK;
|
|
4738
4715
|
this.disabled = false;
|
|
4739
4716
|
this.floatLabel = 'auto';
|
|
4740
4717
|
this.readonly = false;
|
|
@@ -5003,7 +4980,7 @@
|
|
|
5003
4980
|
selector: 'mat-date-field',
|
|
5004
4981
|
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",
|
|
5005
4982
|
providers: [
|
|
5006
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
4983
|
+
DEFAULT_VALUE_ACCESSOR$1,
|
|
5007
4984
|
],
|
|
5008
4985
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5009
4986
|
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%}"]
|
|
@@ -5036,17 +5013,17 @@
|
|
|
5036
5013
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
5037
5014
|
};
|
|
5038
5015
|
|
|
5039
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5016
|
+
var DEFAULT_VALUE_ACCESSOR$2 = {
|
|
5040
5017
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5041
5018
|
useExisting: i0.forwardRef(function () { return MatDateTime; }),
|
|
5042
5019
|
multi: true
|
|
5043
5020
|
};
|
|
5044
5021
|
var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5045
5022
|
var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
|
|
5046
|
-
var HOUR_MASK
|
|
5047
|
-
var noop$
|
|
5023
|
+
var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
5024
|
+
var noop$3 = function () {
|
|
5048
5025
|
};
|
|
5049
|
-
var ɵ0$
|
|
5026
|
+
var ɵ0$3 = noop$3;
|
|
5050
5027
|
var MatDateTime = /** @class */ (function () {
|
|
5051
5028
|
function MatDateTime(platform, dateAdapter, translate, formBuilder, keyboard, cd, formGroupDir) {
|
|
5052
5029
|
this.platform = platform;
|
|
@@ -5056,14 +5033,14 @@
|
|
|
5056
5033
|
this.keyboard = keyboard;
|
|
5057
5034
|
this.cd = cd;
|
|
5058
5035
|
this.formGroupDir = formGroupDir;
|
|
5059
|
-
this._onChangeCallback = noop$
|
|
5060
|
-
this._onTouchedCallback = noop$
|
|
5036
|
+
this._onChangeCallback = noop$3;
|
|
5037
|
+
this._onTouchedCallback = noop$3;
|
|
5061
5038
|
this._subscription = new rxjs.Subscription();
|
|
5062
5039
|
this.writing = true;
|
|
5063
5040
|
this.disabling = false;
|
|
5064
5041
|
this._readonly = false;
|
|
5065
5042
|
this.dayMask = DAY_MASK$1;
|
|
5066
|
-
this.hourMask = HOUR_MASK
|
|
5043
|
+
this.hourMask = HOUR_MASK;
|
|
5067
5044
|
this.floatLabel = 'auto';
|
|
5068
5045
|
this.compact = false;
|
|
5069
5046
|
this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
|
|
@@ -5419,7 +5396,7 @@
|
|
|
5419
5396
|
selector: 'mat-date-time-field',
|
|
5420
5397
|
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",
|
|
5421
5398
|
providers: [
|
|
5422
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5399
|
+
DEFAULT_VALUE_ACCESSOR$2,
|
|
5423
5400
|
],
|
|
5424
5401
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5425
5402
|
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%}"]
|
|
@@ -5458,10 +5435,10 @@
|
|
|
5458
5435
|
useExisting: i0.forwardRef(function () { return MatDateShort; }),
|
|
5459
5436
|
multi: true
|
|
5460
5437
|
};
|
|
5461
|
-
var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
|
|
5462
|
-
var noop$
|
|
5438
|
+
var DAY_MASK$2 = [/\d/, /\d/, /\d/, /\d/];
|
|
5439
|
+
var noop$4 = function () {
|
|
5463
5440
|
};
|
|
5464
|
-
var ɵ0$
|
|
5441
|
+
var ɵ0$4 = noop$4;
|
|
5465
5442
|
var MatDateShort = /** @class */ (function () {
|
|
5466
5443
|
function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5467
5444
|
this.dateAdapter = dateAdapter;
|
|
@@ -5470,11 +5447,11 @@
|
|
|
5470
5447
|
this.cd = cd;
|
|
5471
5448
|
this.keyboard = keyboard;
|
|
5472
5449
|
this.formGroupDir = formGroupDir;
|
|
5473
|
-
this._onChangeCallback = noop$
|
|
5474
|
-
this._onTouchedCallback = noop$
|
|
5450
|
+
this._onChangeCallback = noop$4;
|
|
5451
|
+
this._onTouchedCallback = noop$4;
|
|
5475
5452
|
this.writing = true;
|
|
5476
5453
|
this.disabling = false;
|
|
5477
|
-
this.dayMask = DAY_MASK;
|
|
5454
|
+
this.dayMask = DAY_MASK$2;
|
|
5478
5455
|
this.disabled = false;
|
|
5479
5456
|
this.floatLabel = 'auto';
|
|
5480
5457
|
this.readonly = false;
|
|
@@ -5822,16 +5799,16 @@
|
|
|
5822
5799
|
},] }
|
|
5823
5800
|
];
|
|
5824
5801
|
|
|
5825
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5802
|
+
var DEFAULT_VALUE_ACCESSOR$4 = {
|
|
5826
5803
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5827
5804
|
useExisting: i0.forwardRef(function () { return MatDuration; }),
|
|
5828
5805
|
multi: true
|
|
5829
5806
|
};
|
|
5830
5807
|
var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
|
|
5831
|
-
var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
5832
|
-
var noop$
|
|
5808
|
+
var HOUR_MASK$1 = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
5809
|
+
var noop$5 = function () {
|
|
5833
5810
|
};
|
|
5834
|
-
var ɵ0$5 = noop$
|
|
5811
|
+
var ɵ0$5 = noop$5;
|
|
5835
5812
|
var MatDuration = /** @class */ (function () {
|
|
5836
5813
|
function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
|
|
5837
5814
|
this.dateAdapter = dateAdapter;
|
|
@@ -5840,11 +5817,11 @@
|
|
|
5840
5817
|
this.cd = cd;
|
|
5841
5818
|
this.formGroupDir = formGroupDir;
|
|
5842
5819
|
this._subscription = new rxjs.Subscription();
|
|
5843
|
-
this._onChangeCallback = noop$
|
|
5844
|
-
this._onTouchedCallback = noop$
|
|
5820
|
+
this._onChangeCallback = noop$5;
|
|
5821
|
+
this._onTouchedCallback = noop$5;
|
|
5845
5822
|
this.writing = true;
|
|
5846
5823
|
this.disabling = false;
|
|
5847
|
-
this.hourMask = HOUR_MASK;
|
|
5824
|
+
this.hourMask = HOUR_MASK$1;
|
|
5848
5825
|
this.disabled = false;
|
|
5849
5826
|
this.floatLabel = 'auto';
|
|
5850
5827
|
this.readonly = false;
|
|
@@ -6037,7 +6014,7 @@
|
|
|
6037
6014
|
selector: 'mat-duration-field',
|
|
6038
6015
|
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",
|
|
6039
6016
|
providers: [
|
|
6040
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6017
|
+
DEFAULT_VALUE_ACCESSOR$4,
|
|
6041
6018
|
],
|
|
6042
6019
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6043
6020
|
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%}"]
|
|
@@ -6097,22 +6074,22 @@
|
|
|
6097
6074
|
},] }
|
|
6098
6075
|
];
|
|
6099
6076
|
|
|
6100
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6077
|
+
var DEFAULT_VALUE_ACCESSOR$5 = {
|
|
6101
6078
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6102
6079
|
useExisting: i0.forwardRef(function () { return MatBooleanField; }),
|
|
6103
6080
|
multi: true
|
|
6104
6081
|
};
|
|
6105
|
-
var noop$
|
|
6082
|
+
var noop$6 = function () {
|
|
6106
6083
|
};
|
|
6107
|
-
var ɵ0$
|
|
6084
|
+
var ɵ0$6 = noop$6;
|
|
6108
6085
|
var MatBooleanField = /** @class */ (function () {
|
|
6109
6086
|
function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
|
|
6110
6087
|
this.translate = translate;
|
|
6111
6088
|
this.formBuilder = formBuilder;
|
|
6112
6089
|
this.cd = cd;
|
|
6113
6090
|
this.formGroupDir = formGroupDir;
|
|
6114
|
-
this._onChangeCallback = noop$
|
|
6115
|
-
this._onTouchedCallback = noop$
|
|
6091
|
+
this._onChangeCallback = noop$6;
|
|
6092
|
+
this._onTouchedCallback = noop$6;
|
|
6116
6093
|
this._writing = false;
|
|
6117
6094
|
this.showRadio = false;
|
|
6118
6095
|
this.disabled = false;
|
|
@@ -6298,7 +6275,7 @@
|
|
|
6298
6275
|
selector: 'mat-boolean-field',
|
|
6299
6276
|
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",
|
|
6300
6277
|
providers: [
|
|
6301
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6278
|
+
DEFAULT_VALUE_ACCESSOR$5
|
|
6302
6279
|
],
|
|
6303
6280
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6304
6281
|
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}"]
|
|
@@ -6387,7 +6364,6 @@
|
|
|
6387
6364
|
return MatNumpadEvent;
|
|
6388
6365
|
}(KeyboardEvent));
|
|
6389
6366
|
|
|
6390
|
-
exports.AnimationState = void 0;
|
|
6391
6367
|
(function (AnimationState) {
|
|
6392
6368
|
AnimationState["ENTER"] = "enter";
|
|
6393
6369
|
AnimationState["ENTER_INPUT"] = "enter-input";
|
|
@@ -6555,7 +6531,7 @@
|
|
|
6555
6531
|
};
|
|
6556
6532
|
return MatNumpadDomService;
|
|
6557
6533
|
}());
|
|
6558
|
-
MatNumpadDomService.ɵprov =
|
|
6534
|
+
MatNumpadDomService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatNumpadDomService_Factory() { return new MatNumpadDomService(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i1$4.DOCUMENT, 8)); }, token: MatNumpadDomService, providedIn: "root" });
|
|
6559
6535
|
MatNumpadDomService.decorators = [
|
|
6560
6536
|
{ type: i0.Injectable, args: [{
|
|
6561
6537
|
providedIn: 'root'
|
|
@@ -6961,7 +6937,7 @@
|
|
|
6961
6937
|
},] }
|
|
6962
6938
|
];
|
|
6963
6939
|
|
|
6964
|
-
var DEFAULT_VALUE_ACCESSOR = {
|
|
6940
|
+
var DEFAULT_VALUE_ACCESSOR$6 = {
|
|
6965
6941
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6966
6942
|
useExisting: i0.forwardRef(function () { return MatSwipeField; }),
|
|
6967
6943
|
multi: true
|
|
@@ -7281,7 +7257,7 @@
|
|
|
7281
7257
|
{ type: i0.Component, args: [{
|
|
7282
7258
|
selector: 'mat-swipe-field',
|
|
7283
7259
|
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",
|
|
7284
|
-
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
7260
|
+
providers: [DEFAULT_VALUE_ACCESSOR$6],
|
|
7285
7261
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7286
7262
|
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}"]
|
|
7287
7263
|
},] }
|
|
@@ -7760,6 +7736,89 @@
|
|
|
7760
7736
|
},] }
|
|
7761
7737
|
];
|
|
7762
7738
|
|
|
7739
|
+
var MatBadgeIconDirective = /** @class */ (function () {
|
|
7740
|
+
function MatBadgeIconDirective(el) {
|
|
7741
|
+
this.el = el;
|
|
7742
|
+
}
|
|
7743
|
+
MatBadgeIconDirective.prototype.ngOnInit = function () {
|
|
7744
|
+
this.size = this.size || 'medium';
|
|
7745
|
+
this.color = this.color || 'primary';
|
|
7746
|
+
if (this.color === 'warn')
|
|
7747
|
+
this.color = 'warning';
|
|
7748
|
+
var fontSize;
|
|
7749
|
+
switch (this.size) {
|
|
7750
|
+
case 'large':
|
|
7751
|
+
fontSize = '24px';
|
|
7752
|
+
break;
|
|
7753
|
+
case 'medium':
|
|
7754
|
+
fontSize = '22px';
|
|
7755
|
+
break;
|
|
7756
|
+
case 'small':
|
|
7757
|
+
fontSize = '16px';
|
|
7758
|
+
break;
|
|
7759
|
+
}
|
|
7760
|
+
var badge = this.el.nativeElement.querySelector('.mat-badge-content');
|
|
7761
|
+
badge.style.display = 'flex';
|
|
7762
|
+
badge.style.alignItems = 'center';
|
|
7763
|
+
badge.style.justifyContent = 'center';
|
|
7764
|
+
// fill: 'clear'
|
|
7765
|
+
if (this.fill === 'clear') {
|
|
7766
|
+
badge.style.color = "var(--ion-color-" + this.color + ")";
|
|
7767
|
+
badge.style.background = 'transparent';
|
|
7768
|
+
}
|
|
7769
|
+
// fill: 'solid' (default value)
|
|
7770
|
+
else {
|
|
7771
|
+
badge.style.background = "var(--ion-color-" + this.color + ")";
|
|
7772
|
+
badge.style.color = "var(--ion-color-" + this.color + "-contrast)";
|
|
7773
|
+
}
|
|
7774
|
+
if (this.matIcon) {
|
|
7775
|
+
badge.innerHTML = "<i class=\"material-icons\" style=\"font-size: " + fontSize + ";\">" + this.matIcon + "</i>";
|
|
7776
|
+
}
|
|
7777
|
+
else if (this.ionIcon) {
|
|
7778
|
+
badge.innerHTML = "<ion-icon style=\"font-size: " + fontSize + ";\" name=\"" + this.ionIcon + "\"></ion-icon>";
|
|
7779
|
+
}
|
|
7780
|
+
};
|
|
7781
|
+
return MatBadgeIconDirective;
|
|
7782
|
+
}());
|
|
7783
|
+
MatBadgeIconDirective.decorators = [
|
|
7784
|
+
{ type: i0.Directive, args: [{
|
|
7785
|
+
selector: '[matBadgeIcon], [ionBadgeIcon]',
|
|
7786
|
+
inputs: [
|
|
7787
|
+
'size: matBadgeSize',
|
|
7788
|
+
'color: matBadgeColor',
|
|
7789
|
+
'fill: matBadgeFill',
|
|
7790
|
+
]
|
|
7791
|
+
},] }
|
|
7792
|
+
];
|
|
7793
|
+
MatBadgeIconDirective.ctorParameters = function () { return [
|
|
7794
|
+
{ type: i0.ElementRef }
|
|
7795
|
+
]; };
|
|
7796
|
+
MatBadgeIconDirective.propDecorators = {
|
|
7797
|
+
matIcon: [{ type: i0.Input, args: ['matBadgeIcon',] }],
|
|
7798
|
+
ionIcon: [{ type: i0.Input, args: ['ionBadgeIcon',] }]
|
|
7799
|
+
};
|
|
7800
|
+
|
|
7801
|
+
var SharedMatBadgeIconModule = /** @class */ (function () {
|
|
7802
|
+
function SharedMatBadgeIconModule() {
|
|
7803
|
+
}
|
|
7804
|
+
return SharedMatBadgeIconModule;
|
|
7805
|
+
}());
|
|
7806
|
+
SharedMatBadgeIconModule.decorators = [
|
|
7807
|
+
{ type: i0.NgModule, args: [{
|
|
7808
|
+
imports: [
|
|
7809
|
+
i1$4.CommonModule,
|
|
7810
|
+
i1$5.IonicModule,
|
|
7811
|
+
badge.MatBadgeModule,
|
|
7812
|
+
],
|
|
7813
|
+
exports: [
|
|
7814
|
+
MatBadgeIconDirective
|
|
7815
|
+
],
|
|
7816
|
+
declarations: [
|
|
7817
|
+
MatBadgeIconDirective
|
|
7818
|
+
]
|
|
7819
|
+
},] }
|
|
7820
|
+
];
|
|
7821
|
+
|
|
7763
7822
|
var modules = [
|
|
7764
7823
|
// Angular material components
|
|
7765
7824
|
i1$3.MatCommonModule,
|
|
@@ -7801,7 +7860,8 @@
|
|
|
7801
7860
|
SharedMatBooleanModule,
|
|
7802
7861
|
SharedMatNumpadModule,
|
|
7803
7862
|
SharedMatSwipeModule,
|
|
7804
|
-
MaterialChipsModule
|
|
7863
|
+
MaterialChipsModule,
|
|
7864
|
+
SharedMatBadgeIconModule
|
|
7805
7865
|
];
|
|
7806
7866
|
var SharedMaterialModule = /** @class */ (function () {
|
|
7807
7867
|
function SharedMaterialModule() {
|
|
@@ -7839,7 +7899,7 @@
|
|
|
7839
7899
|
};
|
|
7840
7900
|
return ProgressBarService;
|
|
7841
7901
|
}());
|
|
7842
|
-
ProgressBarService.ɵprov =
|
|
7902
|
+
ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
|
|
7843
7903
|
ProgressBarService.decorators = [
|
|
7844
7904
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7845
7905
|
];
|
|
@@ -7886,7 +7946,7 @@
|
|
|
7886
7946
|
};
|
|
7887
7947
|
return AppGestureConfig;
|
|
7888
7948
|
}(i1$6.HammerGestureConfig));
|
|
7889
|
-
AppGestureConfig.ɵprov =
|
|
7949
|
+
AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
|
|
7890
7950
|
AppGestureConfig.decorators = [
|
|
7891
7951
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7892
7952
|
];
|
|
@@ -8151,7 +8211,7 @@
|
|
|
8151
8211
|
};
|
|
8152
8212
|
return MatPaginatorI18n;
|
|
8153
8213
|
}(paginator.MatPaginatorIntl));
|
|
8154
|
-
MatPaginatorI18n.ɵprov =
|
|
8214
|
+
MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
|
|
8155
8215
|
MatPaginatorI18n.decorators = [
|
|
8156
8216
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8157
8217
|
];
|
|
@@ -8243,17 +8303,17 @@
|
|
|
8243
8303
|
return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
|
|
8244
8304
|
}
|
|
8245
8305
|
|
|
8246
|
-
var noop = function () {
|
|
8306
|
+
var noop$7 = function () {
|
|
8247
8307
|
};
|
|
8248
|
-
var ɵ0$
|
|
8308
|
+
var ɵ0$7 = noop$7;
|
|
8249
8309
|
var AppFormField = /** @class */ (function () {
|
|
8250
8310
|
function AppFormField(translate, cd, injector, formGroupDir) {
|
|
8251
8311
|
this.translate = translate;
|
|
8252
8312
|
this.cd = cd;
|
|
8253
8313
|
this.injector = injector;
|
|
8254
8314
|
this.formGroupDir = formGroupDir;
|
|
8255
|
-
this._onChangeCallback = noop;
|
|
8256
|
-
this._onTouchedCallback = noop;
|
|
8315
|
+
this._onChangeCallback = noop$7;
|
|
8316
|
+
this._onTouchedCallback = noop$7;
|
|
8257
8317
|
this.readonly = false;
|
|
8258
8318
|
this.compact = false;
|
|
8259
8319
|
this.floatLabel = 'auto';
|
|
@@ -8790,7 +8850,7 @@
|
|
|
8790
8850
|
};
|
|
8791
8851
|
return AudioProvider;
|
|
8792
8852
|
}(StartableService));
|
|
8793
|
-
AudioProvider.ɵprov =
|
|
8853
|
+
AudioProvider.ɵprov = i0.ɵɵdefineInjectable({ factory: function AudioProvider_Factory() { return new AudioProvider(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$2.NativeAudio, 8), i0.ɵɵinject(i3$1.Vibration, 8), i0.ɵɵinject(i4.AudioManagement, 8)); }, token: AudioProvider, providedIn: "root" });
|
|
8794
8854
|
AudioProvider.decorators = [
|
|
8795
8855
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8796
8856
|
];
|
|
@@ -8890,7 +8950,7 @@
|
|
|
8890
8950
|
};
|
|
8891
8951
|
return Hotkeys;
|
|
8892
8952
|
}());
|
|
8893
|
-
Hotkeys.ɵprov =
|
|
8953
|
+
Hotkeys.ɵprov = i0.ɵɵdefineInjectable({ factory: function Hotkeys_Factory() { return new Hotkeys(i0.ɵɵinject(i1$6.EventManager), i0.ɵɵinject(i2.MatDialog), i0.ɵɵinject(i1$4.DOCUMENT), i0.ɵɵinject(i1$5.ModalController)); }, token: Hotkeys, providedIn: "root" });
|
|
8894
8954
|
Hotkeys.decorators = [
|
|
8895
8955
|
{ type: i0.Injectable, args: [{
|
|
8896
8956
|
providedIn: 'root'
|
|
@@ -9094,7 +9154,7 @@
|
|
|
9094
9154
|
return Base64ImageReader;
|
|
9095
9155
|
}());
|
|
9096
9156
|
|
|
9097
|
-
var uuidv4
|
|
9157
|
+
var uuidv4 = uuidv4Imported__namespace;
|
|
9098
9158
|
var FileService = /** @class */ (function () {
|
|
9099
9159
|
function FileService(platform,
|
|
9100
9160
|
//private transfer: FileTransfer,
|
|
@@ -9140,7 +9200,7 @@
|
|
|
9140
9200
|
lastSlashIndex = source.lastIndexOf('/');
|
|
9141
9201
|
if (lastSlashIndex === -1)
|
|
9142
9202
|
throw new Error('Invalid URL: ' + source);
|
|
9143
|
-
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4
|
|
9203
|
+
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
|
|
9144
9204
|
if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
|
|
9145
9205
|
console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
|
|
9146
9206
|
targetFilePath = this._imageDirectory + fileName;
|
|
@@ -9203,7 +9263,7 @@
|
|
|
9203
9263
|
};
|
|
9204
9264
|
return FileService;
|
|
9205
9265
|
}());
|
|
9206
|
-
FileService.ɵprov =
|
|
9266
|
+
FileService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(ENVIRONMENT)); }, token: FileService, providedIn: "root" });
|
|
9207
9267
|
FileService.decorators = [
|
|
9208
9268
|
{ type: i0.Injectable, args: [{
|
|
9209
9269
|
providedIn: 'root',
|
|
@@ -9366,7 +9426,7 @@
|
|
|
9366
9426
|
Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
9367
9427
|
|
|
9368
9428
|
var scrypt = require('scrypt-async');
|
|
9369
|
-
var sha256
|
|
9429
|
+
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
9370
9430
|
var sha512 = require('hash.js/lib/hash/sha/512');
|
|
9371
9431
|
var nacl = {
|
|
9372
9432
|
sign: tweetnacl.sign,
|
|
@@ -9472,7 +9532,7 @@
|
|
|
9472
9532
|
* Hash (using SHA256) a message
|
|
9473
9533
|
*/
|
|
9474
9534
|
CryptoService.prototype.sha256 = function (message) {
|
|
9475
|
-
return sha256
|
|
9535
|
+
return sha256().update(message).digest('hex');
|
|
9476
9536
|
};
|
|
9477
9537
|
/**
|
|
9478
9538
|
* Hash (using SHA512) a message
|
|
@@ -9486,7 +9546,7 @@
|
|
|
9486
9546
|
};
|
|
9487
9547
|
return CryptoService;
|
|
9488
9548
|
}());
|
|
9489
|
-
CryptoService.ɵprov =
|
|
9549
|
+
CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
|
|
9490
9550
|
CryptoService.decorators = [
|
|
9491
9551
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9492
9552
|
];
|
|
@@ -10907,7 +10967,7 @@
|
|
|
10907
10967
|
};
|
|
10908
10968
|
return LocalSettingsService;
|
|
10909
10969
|
}(StartableService));
|
|
10910
|
-
LocalSettingsService.ɵprov =
|
|
10970
|
+
LocalSettingsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsService_Factory() { return new LocalSettingsService(i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_LOCAL_SETTINGS, 8), i0.ɵɵinject(APP_LOCAL_SETTINGS_OPTIONS, 8)); }, token: LocalSettingsService, providedIn: "root" });
|
|
10911
10971
|
LocalSettingsService.decorators = [
|
|
10912
10972
|
{ type: i0.Injectable, args: [{
|
|
10913
10973
|
providedIn: 'root',
|
|
@@ -11712,7 +11772,7 @@
|
|
|
11712
11772
|
};
|
|
11713
11773
|
return NetworkService;
|
|
11714
11774
|
}(StartableService));
|
|
11715
|
-
NetworkService.ɵprov =
|
|
11775
|
+
NetworkService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NetworkService_Factory() { return new NetworkService(i0.ɵɵinject(i1$4.DOCUMENT), i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i1$5.ModalController), i0.ɵɵinject(CryptoService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(i6.CacheService), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(i9.Network, 8), i0.ɵɵinject(i10.SplashScreen, 8), i0.ɵɵinject(i1$2.TranslateService, 8), i0.ɵɵinject(i1$5.ToastController, 8)); }, token: NetworkService, providedIn: "root" });
|
|
11716
11776
|
NetworkService.decorators = [
|
|
11717
11777
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
11718
11778
|
];
|
|
@@ -11732,7 +11792,7 @@
|
|
|
11732
11792
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
|
|
11733
11793
|
]; };
|
|
11734
11794
|
|
|
11735
|
-
var ErrorCodes
|
|
11795
|
+
var ErrorCodes = {
|
|
11736
11796
|
UNKNOWN_ERROR: 0,
|
|
11737
11797
|
LOAD_ACCOUNT_ERROR: 1,
|
|
11738
11798
|
BAD_PASSWORD: 2,
|
|
@@ -12140,7 +12200,7 @@
|
|
|
12140
12200
|
case 13:
|
|
12141
12201
|
err_1 = _a.sent();
|
|
12142
12202
|
console.error(err_1);
|
|
12143
|
-
throw { code: ErrorCodes
|
|
12203
|
+
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
12144
12204
|
case 14:
|
|
12145
12205
|
// Emit update event
|
|
12146
12206
|
if (!opts || opts.emitEvent !== false) {
|
|
@@ -12914,7 +12974,7 @@
|
|
|
12914
12974
|
}(StartableService));
|
|
12915
12975
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
12916
12976
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
12917
|
-
EntitiesStorage.ɵprov =
|
|
12977
|
+
EntitiesStorage.ɵprov = i0.ɵɵdefineInjectable({ factory: function EntitiesStorage_Factory() { return new EntitiesStorage(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(ProgressBarService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_LOCAL_STORAGE_TYPE_POLICIES, 8)); }, token: EntitiesStorage, providedIn: "root" });
|
|
12918
12978
|
EntitiesStorage.decorators = [
|
|
12919
12979
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
12920
12980
|
];
|
|
@@ -13031,10 +13091,10 @@
|
|
|
13031
13091
|
function referentialsToString(values, properties, separator) {
|
|
13032
13092
|
return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
|
|
13033
13093
|
}
|
|
13034
|
-
var ɵ0$
|
|
13094
|
+
var ɵ0$8 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
13035
13095
|
var StatusList = Object.freeze([
|
|
13036
13096
|
{
|
|
13037
|
-
id: ɵ0$
|
|
13097
|
+
id: ɵ0$8,
|
|
13038
13098
|
icon: 'checkmark',
|
|
13039
13099
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
13040
13100
|
},
|
|
@@ -13337,7 +13397,7 @@
|
|
|
13337
13397
|
(data.lastName || '')) || '';
|
|
13338
13398
|
}
|
|
13339
13399
|
|
|
13340
|
-
var uuidv4 = uuidv4Imported__namespace;
|
|
13400
|
+
var uuidv4$1 = uuidv4Imported__namespace;
|
|
13341
13401
|
var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
13342
13402
|
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
13343
13403
|
/**
|
|
@@ -13381,7 +13441,7 @@
|
|
|
13381
13441
|
// Skip if not tracked
|
|
13382
13442
|
if (!context || !context.tracked)
|
|
13383
13443
|
return forward(operation);
|
|
13384
|
-
var id = context.serializationKey || uuidv4();
|
|
13444
|
+
var id = context.serializationKey || uuidv4$1();
|
|
13385
13445
|
console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
|
|
13386
13446
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
13387
13447
|
var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -14016,14 +14076,14 @@
|
|
|
14016
14076
|
mutationLinks = void 0;
|
|
14017
14077
|
// Add queue to store tracked queries, when offline
|
|
14018
14078
|
if (enableTrackMutationQueries) {
|
|
14019
|
-
serializingLink = new SerializingLink__default[
|
|
14079
|
+
serializingLink = new SerializingLink__default['default']();
|
|
14020
14080
|
trackerLink = createTrackerLink({
|
|
14021
14081
|
storage: storage,
|
|
14022
14082
|
onNetworkStatusChange: this._networkStatusChanged$,
|
|
14023
14083
|
debounce: 1000,
|
|
14024
14084
|
debug: true
|
|
14025
14085
|
});
|
|
14026
|
-
queueLink_1 = new QueueLink__default[
|
|
14086
|
+
queueLink_1 = new QueueLink__default['default']();
|
|
14027
14087
|
this._subscription.add(this._networkStatusChanged$
|
|
14028
14088
|
.subscribe(function (type) {
|
|
14029
14089
|
// Network is offline: start buffering into queue
|
|
@@ -14038,7 +14098,7 @@
|
|
|
14038
14098
|
}
|
|
14039
14099
|
}));
|
|
14040
14100
|
mutationLinks = [
|
|
14041
|
-
loggerLink__default[
|
|
14101
|
+
loggerLink__default['default'],
|
|
14042
14102
|
queueLink_1,
|
|
14043
14103
|
trackerLink,
|
|
14044
14104
|
queueLink_1,
|
|
@@ -14147,7 +14207,7 @@
|
|
|
14147
14207
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
14148
14208
|
|| this.toAppError(err.networkError)
|
|
14149
14209
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
14150
|
-
|| this.createAppErrorByCode(ErrorCodes
|
|
14210
|
+
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
14151
14211
|
// If graphQL: try to convert the first error found
|
|
14152
14212
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
14153
14213
|
|| this.toAppError(err)
|
|
@@ -14155,7 +14215,7 @@
|
|
|
14155
14215
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
14156
14216
|
|| err;
|
|
14157
14217
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
14158
|
-
if (error && error.code === ErrorCodes
|
|
14218
|
+
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
14159
14219
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
14160
14220
|
this.onNetworkError.next(error);
|
|
14161
14221
|
}
|
|
@@ -14191,7 +14251,7 @@
|
|
|
14191
14251
|
return 'ERROR.UNAUTHORIZED';
|
|
14192
14252
|
case ServerErrorCodes.FORBIDDEN:
|
|
14193
14253
|
return 'ERROR.FORBIDDEN';
|
|
14194
|
-
case ErrorCodes
|
|
14254
|
+
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
14195
14255
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
14196
14256
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
14197
14257
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -14220,7 +14280,7 @@
|
|
|
14220
14280
|
};
|
|
14221
14281
|
return GraphqlService;
|
|
14222
14282
|
}(StartableService));
|
|
14223
|
-
GraphqlService.ɵprov =
|
|
14283
|
+
GraphqlService.ɵprov = i0.ɵɵdefineInjectable({ factory: function GraphqlService_Factory() { return new GraphqlService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$3.Apollo), i0.ɵɵinject(i3$3.HttpLink), i0.ɵɵinject(NetworkService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(CryptoService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_GRAPHQL_TYPE_POLICIES, 8)); }, token: GraphqlService, providedIn: "root" });
|
|
14224
14284
|
GraphqlService.decorators = [
|
|
14225
14285
|
{ type: i0.Injectable, args: [{
|
|
14226
14286
|
providedIn: 'root'
|
|
@@ -14237,7 +14297,7 @@
|
|
|
14237
14297
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
14238
14298
|
]; };
|
|
14239
14299
|
|
|
14240
|
-
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
14300
|
+
var sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
14241
14301
|
var BaseGraphqlServiceOptions = /** @class */ (function () {
|
|
14242
14302
|
function BaseGraphqlServiceOptions() {
|
|
14243
14303
|
}
|
|
@@ -14404,8 +14464,8 @@
|
|
|
14404
14464
|
};
|
|
14405
14465
|
/* -- protected methods -- */
|
|
14406
14466
|
BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
|
|
14407
|
-
var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
14408
|
-
var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
14467
|
+
var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
14468
|
+
var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
14409
14469
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
14410
14470
|
};
|
|
14411
14471
|
BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
|
|
@@ -14471,17 +14531,17 @@
|
|
|
14471
14531
|
/* ------------------------------------
|
|
14472
14532
|
* GraphQL queries
|
|
14473
14533
|
* ------------------------------------*/
|
|
14474
|
-
var Fragments
|
|
14475
|
-
account: core.gql(templateObject_1
|
|
14534
|
+
var Fragments = {
|
|
14535
|
+
account: core.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }\n "], ["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }\n "])))
|
|
14476
14536
|
};
|
|
14477
14537
|
// Load account query
|
|
14478
|
-
var LoadQuery
|
|
14538
|
+
var LoadQuery = core.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n"], ["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
|
|
14479
14539
|
// Check email query
|
|
14480
|
-
var IsEmailExistsQuery = core.gql(templateObject_3
|
|
14540
|
+
var IsEmailExistsQuery = core.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"], ["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"])));
|
|
14481
14541
|
// Save (create or update) account mutation
|
|
14482
|
-
var SaveMutation
|
|
14542
|
+
var SaveMutation = core.gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
|
|
14483
14543
|
// Create account mutation
|
|
14484
|
-
var CreateMutation = core.gql(templateObject_5
|
|
14544
|
+
var CreateMutation = core.gql(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
|
|
14485
14545
|
// Sent confirmation email
|
|
14486
14546
|
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"])));
|
|
14487
14547
|
// Confirm account email
|
|
@@ -14870,7 +14930,7 @@
|
|
|
14870
14930
|
error_3 = _b.sent();
|
|
14871
14931
|
console.error(error_3);
|
|
14872
14932
|
this.resetData();
|
|
14873
|
-
throw { code: ErrorCodes
|
|
14933
|
+
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
14874
14934
|
case 4:
|
|
14875
14935
|
// Store pubkey+keypair
|
|
14876
14936
|
this._data.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -14906,7 +14966,7 @@
|
|
|
14906
14966
|
return [3 /*break*/, 18];
|
|
14907
14967
|
case 11:
|
|
14908
14968
|
err_1 = _b.sent();
|
|
14909
|
-
if (!(err_1 && +(err_1.code) === ErrorCodes
|
|
14969
|
+
if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
14910
14970
|
if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
|
|
14911
14971
|
isEmailExists = void 0;
|
|
14912
14972
|
_b.label = 12;
|
|
@@ -14922,12 +14982,12 @@
|
|
|
14922
14982
|
case 15:
|
|
14923
14983
|
// Email not exists (no account)
|
|
14924
14984
|
if (!isEmailExists) {
|
|
14925
|
-
throw { code: ErrorCodes
|
|
14985
|
+
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
14926
14986
|
}
|
|
14927
14987
|
_b.label = 16;
|
|
14928
14988
|
case 16:
|
|
14929
14989
|
// Email exists, so error = 'bad password'
|
|
14930
|
-
throw { code: ErrorCodes
|
|
14990
|
+
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
14931
14991
|
case 17: throw err_1; // resend the first error
|
|
14932
14992
|
case 18:
|
|
14933
14993
|
_b.trys.push([18, 20, , 21]);
|
|
@@ -15099,8 +15159,8 @@
|
|
|
15099
15159
|
_b.label = 3;
|
|
15100
15160
|
case 3: return [3 /*break*/, 6];
|
|
15101
15161
|
case 4: return [4 /*yield*/, this.graphql.query({
|
|
15102
|
-
query: LoadQuery
|
|
15103
|
-
error: { code: ErrorCodes
|
|
15162
|
+
query: LoadQuery,
|
|
15163
|
+
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
15104
15164
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
15105
15165
|
})];
|
|
15106
15166
|
case 5:
|
|
@@ -15138,7 +15198,7 @@
|
|
|
15138
15198
|
case 1:
|
|
15139
15199
|
isEmailExists = _b.sent();
|
|
15140
15200
|
if (isEmailExists) {
|
|
15141
|
-
throw { code: ErrorCodes
|
|
15201
|
+
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
15142
15202
|
}
|
|
15143
15203
|
return [2 /*return*/];
|
|
15144
15204
|
}
|
|
@@ -15188,7 +15248,7 @@
|
|
|
15188
15248
|
locale: locale
|
|
15189
15249
|
},
|
|
15190
15250
|
error: {
|
|
15191
|
-
code: ErrorCodes
|
|
15251
|
+
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
15192
15252
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
15193
15253
|
}
|
|
15194
15254
|
})];
|
|
@@ -15211,7 +15271,7 @@
|
|
|
15211
15271
|
code: code
|
|
15212
15272
|
},
|
|
15213
15273
|
error: {
|
|
15214
|
-
code: ErrorCodes
|
|
15274
|
+
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
15215
15275
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
15216
15276
|
}
|
|
15217
15277
|
})];
|
|
@@ -15234,7 +15294,7 @@
|
|
|
15234
15294
|
interval: 10
|
|
15235
15295
|
},
|
|
15236
15296
|
error: {
|
|
15237
|
-
code: ErrorCodes
|
|
15297
|
+
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
15238
15298
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ACCOUNT_ERROR'
|
|
15239
15299
|
}
|
|
15240
15300
|
}).subscribe({
|
|
@@ -15388,7 +15448,7 @@
|
|
|
15388
15448
|
throw error_6;
|
|
15389
15449
|
console.error(error_6);
|
|
15390
15450
|
throw {
|
|
15391
|
-
code: ErrorCodes
|
|
15451
|
+
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
15392
15452
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
15393
15453
|
};
|
|
15394
15454
|
case 4: return [2 /*return*/];
|
|
@@ -15562,7 +15622,7 @@
|
|
|
15562
15622
|
case 1:
|
|
15563
15623
|
existingAccount = _b.sent();
|
|
15564
15624
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
15565
|
-
throw { code: ErrorCodes
|
|
15625
|
+
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
15566
15626
|
}
|
|
15567
15627
|
this.copyIdAndUpdateDate(existingAccount, account);
|
|
15568
15628
|
_b.label = 2;
|
|
@@ -15571,10 +15631,10 @@
|
|
|
15571
15631
|
// User not allow to change his profiles
|
|
15572
15632
|
delete json.profiles;
|
|
15573
15633
|
return [4 /*yield*/, this.graphql.mutate({
|
|
15574
|
-
mutation: isNew ? CreateMutation : SaveMutation
|
|
15634
|
+
mutation: isNew ? CreateMutation : SaveMutation,
|
|
15575
15635
|
variables: { data: json },
|
|
15576
15636
|
error: {
|
|
15577
|
-
code: ErrorCodes
|
|
15637
|
+
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
15578
15638
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
15579
15639
|
}
|
|
15580
15640
|
})];
|
|
@@ -15602,7 +15662,7 @@
|
|
|
15602
15662
|
if (counter > 4) {
|
|
15603
15663
|
if (this._debug)
|
|
15604
15664
|
console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
|
|
15605
|
-
throw { code: ErrorCodes
|
|
15665
|
+
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
15606
15666
|
}
|
|
15607
15667
|
if (!token) return [3 /*break*/, 2];
|
|
15608
15668
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -15611,7 +15671,7 @@
|
|
|
15611
15671
|
token: token
|
|
15612
15672
|
},
|
|
15613
15673
|
error: {
|
|
15614
|
-
code: ErrorCodes
|
|
15674
|
+
code: ErrorCodes.UNAUTHORIZED,
|
|
15615
15675
|
message: 'ERROR.UNAUTHORIZED'
|
|
15616
15676
|
},
|
|
15617
15677
|
fetchPolicy: 'no-cache'
|
|
@@ -15628,7 +15688,7 @@
|
|
|
15628
15688
|
_b.label = 2;
|
|
15629
15689
|
case 2:
|
|
15630
15690
|
challengeError = {
|
|
15631
|
-
code: ErrorCodes
|
|
15691
|
+
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
15632
15692
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
15633
15693
|
};
|
|
15634
15694
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -15670,7 +15730,7 @@
|
|
|
15670
15730
|
};
|
|
15671
15731
|
return AccountService;
|
|
15672
15732
|
}(BaseGraphqlService));
|
|
15673
|
-
AccountService.ɵprov =
|
|
15733
|
+
AccountService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountService_Factory() { return new AccountService(i0.ɵɵinject(CryptoService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(FileService), i0.ɵɵinject(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
|
|
15674
15734
|
AccountService.decorators = [
|
|
15675
15735
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
15676
15736
|
];
|
|
@@ -15683,7 +15743,7 @@
|
|
|
15683
15743
|
{ type: FileService },
|
|
15684
15744
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
15685
15745
|
]; };
|
|
15686
|
-
var templateObject_1
|
|
15746
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
15687
15747
|
|
|
15688
15748
|
var Software_1, Configuration_1;
|
|
15689
15749
|
// @dynamic
|
|
@@ -15935,13 +15995,13 @@
|
|
|
15935
15995
|
/* ------------------------------------
|
|
15936
15996
|
* GraphQL queries
|
|
15937
15997
|
* ------------------------------------*/
|
|
15938
|
-
var Fragments = {
|
|
15939
|
-
config: core.gql(templateObject_1$
|
|
15998
|
+
var Fragments$1 = {
|
|
15999
|
+
config: core.gql(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "], ["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "])))
|
|
15940
16000
|
};
|
|
15941
|
-
var LoadQuery = core.gql(templateObject_2$
|
|
16001
|
+
var LoadQuery$1 = core.gql(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"], ["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"])), Fragments$1.config);
|
|
15942
16002
|
// Save (create or update) account mutation
|
|
15943
|
-
var SaveMutation = core.gql(templateObject_3$
|
|
15944
|
-
var ClearCache = core.gql(templateObject_4$
|
|
16003
|
+
var SaveMutation$1 = core.gql(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"], ["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"])), Fragments$1.config);
|
|
16004
|
+
var ClearCache = core.gql(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"], ["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"])));
|
|
15945
16005
|
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"])));
|
|
15946
16006
|
var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
|
|
15947
16007
|
var ConfigService = /** @class */ (function (_super) {
|
|
@@ -16052,12 +16112,12 @@
|
|
|
16052
16112
|
case 0:
|
|
16053
16113
|
now = Date.now();
|
|
16054
16114
|
console.debug('[config] Loading Pod configuration...');
|
|
16055
|
-
query = opts && opts.query || LoadQuery;
|
|
16115
|
+
query = opts && opts.query || LoadQuery$1;
|
|
16056
16116
|
variables = opts && opts.variables || undefined;
|
|
16057
16117
|
return [4 /*yield*/, this.graphql.query({
|
|
16058
16118
|
query: query,
|
|
16059
16119
|
variables: variables,
|
|
16060
|
-
error: { code: ErrorCodes
|
|
16120
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16061
16121
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
16062
16122
|
})];
|
|
16063
16123
|
case 1:
|
|
@@ -16091,12 +16151,12 @@
|
|
|
16091
16151
|
console.debug('[config] Saving Pod configuration...', config);
|
|
16092
16152
|
json = config.asObject();
|
|
16093
16153
|
return [4 /*yield*/, this.graphql.mutate({
|
|
16094
|
-
mutation: SaveMutation,
|
|
16154
|
+
mutation: SaveMutation$1,
|
|
16095
16155
|
variables: {
|
|
16096
16156
|
data: json
|
|
16097
16157
|
},
|
|
16098
16158
|
error: {
|
|
16099
|
-
code: ErrorCodes
|
|
16159
|
+
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
16100
16160
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
16101
16161
|
}
|
|
16102
16162
|
})];
|
|
@@ -16131,7 +16191,7 @@
|
|
|
16131
16191
|
return [4 /*yield*/, this.graphql.query({
|
|
16132
16192
|
query: CacheStatistics,
|
|
16133
16193
|
variables: null,
|
|
16134
|
-
error: { code: ErrorCodes
|
|
16194
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16135
16195
|
fetchPolicy: 'network-only'
|
|
16136
16196
|
})];
|
|
16137
16197
|
case 1:
|
|
@@ -16155,7 +16215,7 @@
|
|
|
16155
16215
|
return [4 /*yield*/, this.graphql.query({
|
|
16156
16216
|
query: ClearCache,
|
|
16157
16217
|
variables: variables,
|
|
16158
|
-
error: { code: ErrorCodes
|
|
16218
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16159
16219
|
fetchPolicy: 'network-only'
|
|
16160
16220
|
})];
|
|
16161
16221
|
case 1:
|
|
@@ -16355,7 +16415,7 @@
|
|
|
16355
16415
|
};
|
|
16356
16416
|
return ConfigService;
|
|
16357
16417
|
}(BaseGraphqlService));
|
|
16358
|
-
ConfigService.ɵprov =
|
|
16418
|
+
ConfigService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConfigService_Factory() { return new ConfigService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(NetworkService), i0.ɵɵinject(FileService), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
|
|
16359
16419
|
ConfigService.decorators = [
|
|
16360
16420
|
{ type: i0.Injectable, args: [{
|
|
16361
16421
|
providedIn: 'root',
|
|
@@ -16373,9 +16433,9 @@
|
|
|
16373
16433
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
16374
16434
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
16375
16435
|
]; };
|
|
16376
|
-
var templateObject_1$
|
|
16436
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
|
|
16377
16437
|
|
|
16378
|
-
var moment$
|
|
16438
|
+
var moment$4 = momentImported__namespace;
|
|
16379
16439
|
var PlatformService = /** @class */ (function () {
|
|
16380
16440
|
function PlatformService(platform, cdkPlatform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser, downloader) {
|
|
16381
16441
|
this.platform = platform;
|
|
@@ -16600,16 +16660,16 @@
|
|
|
16600
16660
|
}
|
|
16601
16661
|
// config moment lib
|
|
16602
16662
|
try {
|
|
16603
|
-
moment$
|
|
16663
|
+
moment$4.locale(event.lang);
|
|
16604
16664
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
16605
16665
|
}
|
|
16606
16666
|
// If error, fallback to en
|
|
16607
16667
|
catch (err) {
|
|
16608
|
-
moment$
|
|
16668
|
+
moment$4.locale('en');
|
|
16609
16669
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
16610
16670
|
}
|
|
16611
16671
|
// Config date adapter
|
|
16612
|
-
_this.dateAdapter.setLocale(moment$
|
|
16672
|
+
_this.dateAdapter.setLocale(moment$4.locale());
|
|
16613
16673
|
}
|
|
16614
16674
|
});
|
|
16615
16675
|
this.settings.onChange.subscribe(function (data) {
|
|
@@ -16794,7 +16854,7 @@
|
|
|
16794
16854
|
};
|
|
16795
16855
|
return PlatformService;
|
|
16796
16856
|
}());
|
|
16797
|
-
PlatformService.ɵprov =
|
|
16857
|
+
PlatformService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PlatformService_Factory() { return new PlatformService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$4.Platform), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$1.MomentDateAdapter), i0.ɵɵinject(EntitiesStorage), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(AccountService), i0.ɵɵinject(ConfigService), i0.ɵɵinject(i6.CacheService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(AudioProvider), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(i14.StatusBar, 8), i0.ɵɵinject(i15.Keyboard, 8), i0.ɵɵinject(i10.SplashScreen, 8), i0.ɵɵinject(i17.InAppBrowser, 8), i0.ɵɵinject(i18.Downloader, 8)); }, token: PlatformService, providedIn: "root" });
|
|
16798
16858
|
PlatformService.decorators = [
|
|
16799
16859
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
16800
16860
|
];
|
|
@@ -16892,7 +16952,7 @@
|
|
|
16892
16952
|
};
|
|
16893
16953
|
return MatStepperI18n;
|
|
16894
16954
|
}(stepper.MatStepperIntl));
|
|
16895
|
-
MatStepperI18n.ɵprov =
|
|
16955
|
+
MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
16896
16956
|
MatStepperI18n.decorators = [
|
|
16897
16957
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
16898
16958
|
];
|
|
@@ -18084,7 +18144,7 @@
|
|
|
18084
18144
|
return 1;
|
|
18085
18145
|
}
|
|
18086
18146
|
}
|
|
18087
|
-
var ɵ0$
|
|
18147
|
+
var ɵ0$9 = function (defaultStateSize) { return [
|
|
18088
18148
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
18089
18149
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
18090
18150
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -18092,7 +18152,7 @@
|
|
|
18092
18152
|
var SCALE_OPTIONS_DEFAULT = {
|
|
18093
18153
|
startColor: rgbArrayMap.red,
|
|
18094
18154
|
startStates: [0, 2, 3],
|
|
18095
|
-
startStepsFn: ɵ0$
|
|
18155
|
+
startStepsFn: ɵ0$9
|
|
18096
18156
|
};
|
|
18097
18157
|
/**
|
|
18098
18158
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -18184,24 +18244,24 @@
|
|
|
18184
18244
|
return result;
|
|
18185
18245
|
}
|
|
18186
18246
|
|
|
18187
|
-
var EntityTestClass
|
|
18247
|
+
var EntityTestClass = /** @class */ (function () {
|
|
18188
18248
|
function EntityTestClass() {
|
|
18189
18249
|
}
|
|
18190
18250
|
return EntityTestClass;
|
|
18191
18251
|
}());
|
|
18192
|
-
var FAKE_ENTITIES
|
|
18252
|
+
var FAKE_ENTITIES = [
|
|
18193
18253
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
18194
18254
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
18195
18255
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
18196
18256
|
];
|
|
18197
|
-
function deepCopy
|
|
18257
|
+
function deepCopy(values, size) {
|
|
18198
18258
|
if (isNil(size)) {
|
|
18199
|
-
return (values || FAKE_ENTITIES
|
|
18259
|
+
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
18200
18260
|
}
|
|
18201
18261
|
var result = [];
|
|
18202
18262
|
var i = 1;
|
|
18203
18263
|
while (result.length < size) {
|
|
18204
|
-
result = result.concat((values || FAKE_ENTITIES
|
|
18264
|
+
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
18205
18265
|
var name = entity.name + ' #' + i;
|
|
18206
18266
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
18207
18267
|
}));
|
|
@@ -18211,7 +18271,7 @@
|
|
|
18211
18271
|
var AutocompleteTestPage = /** @class */ (function () {
|
|
18212
18272
|
function AutocompleteTestPage(formBuilder) {
|
|
18213
18273
|
this.formBuilder = formBuilder;
|
|
18214
|
-
this._items = deepCopy
|
|
18274
|
+
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
18215
18275
|
this.$items = new rxjs.BehaviorSubject(undefined);
|
|
18216
18276
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
18217
18277
|
this.memoryHide = false;
|
|
@@ -18256,7 +18316,7 @@
|
|
|
18256
18316
|
});
|
|
18257
18317
|
// From items
|
|
18258
18318
|
this.autocompleteFields.add('entity-items-large', {
|
|
18259
|
-
items: FAKE_ENTITIES
|
|
18319
|
+
items: FAKE_ENTITIES.slice(),
|
|
18260
18320
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
18261
18321
|
displayWith: this.entityToString
|
|
18262
18322
|
});
|
|
@@ -18269,12 +18329,12 @@
|
|
|
18269
18329
|
var _this = this;
|
|
18270
18330
|
return __generator(this, function (_a) {
|
|
18271
18331
|
data = {
|
|
18272
|
-
entity: deepCopy
|
|
18332
|
+
entity: deepCopy(FAKE_ENTITIES)[0],
|
|
18273
18333
|
// This item is NOT in the items list => i should be displayed anyway
|
|
18274
18334
|
missingEntity: {
|
|
18275
18335
|
id: -1, label: '??', name: 'Missing item'
|
|
18276
18336
|
},
|
|
18277
|
-
disableEntity: deepCopy
|
|
18337
|
+
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
18278
18338
|
};
|
|
18279
18339
|
this.form.setValue(data);
|
|
18280
18340
|
// Load observables
|
|
@@ -18462,7 +18522,7 @@
|
|
|
18462
18522
|
MaterialTestingPage.decorators = [
|
|
18463
18523
|
{ type: i0.Component, args: [{
|
|
18464
18524
|
selector: 'app-material-testing',
|
|
18465
|
-
template: "\n<ion-header>\n <ion-toolbar color=\"primary\">\n\n <ion-buttons slot=\"start\">\n <ion-back-button></ion-back-button>\n </ion-buttons>\n\n <ion-title>Material components</ion-title>\n </ion-toolbar>\n</ion-header>\n\n<ion-content>\n\n <ion-list>\n\n <ion-item-divider>Shared Material components</ion-item-divider>\n\n <ion-item tappable class=\"text-1x\" (click)=\"openPage('./datetime')\">\n Date/Time field\n </ion-item>\n <ion-item tappable class=\"text-1x\" (click)=\"openPage('./autocomplete')\">\n Autocomplete field\n </ion-item>\n <ion-item tappable class=\"text-1x\" (click)=\"openPage('./latlong')\">\n Lat/Long field\n </ion-item>\n<!-- <ion-item tappable class=\"text-1x\" (click)=\"openPage('./numpad')\">-->\n<!-- Numeric pad component-->\n<!-- </ion-item>-->\n <ion-item tappable class=\"text-1x\" (click)=\"openPage('./swipe')\">\n Swipe component\n </ion-item>\n <ion-item tappable class=\"text-1x\" (click)=\"openPage('./chips')\">\n Chips component\n </ion-item>\n\n <ng-container *ngIf=\"pages && pages.length\">\n <ion-item-divider>Other components</ion-item-divider>\n\n <ion-item *ngFor=\"let item of pages\"\n tappable class=\"text-1x\"\n (click)=\"openPage(item.page)\">{{item.label}}</ion-item>\n\n </ng-container>\n </ion-list>\n\n</ion-content>\n"
|
|
18525
|
+
template: "\n<ion-header>\n <ion-toolbar color=\"primary\">\n\n <ion-buttons slot=\"start\">\n <ion-back-button></ion-back-button>\n </ion-buttons>\n\n <ion-title>Material components</ion-title>\n </ion-toolbar>\n</ion-header>\n\n<ion-content>\n\n <ion-list>\n\n <ion-item-divider>Shared Material components</ion-item-divider>\n\n <ion-item tappable class=\"text-1x\" (click)=\"openPage('./datetime')\">\n Date/Time field\n </ion-item>\n <ion-item tappable class=\"text-1x\" (click)=\"openPage('./autocomplete')\">\n Autocomplete field\n </ion-item>\n <ion-item tappable class=\"text-1x\" (click)=\"openPage('./latlong')\">\n Lat/Long field\n </ion-item>\n<!-- <ion-item tappable class=\"text-1x\" (click)=\"openPage('./numpad')\">-->\n<!-- Numeric pad component-->\n<!-- </ion-item>-->\n <ion-item tappable class=\"text-1x\" (click)=\"openPage('./swipe')\">\n Swipe component\n </ion-item>\n <ion-item tappable class=\"text-1x\" (click)=\"openPage('./chips')\">\n Chips component\n </ion-item>\n\n <ion-item-divider>Directive</ion-item-divider>\n <ion-item tappable class=\"text-1x\" (click)=\"openPage('./badge-icon')\">\n Badge icon directive\n </ion-item>\n\n <ng-container *ngIf=\"pages && pages.length\">\n <ion-item-divider>Other components</ion-item-divider>\n\n <ion-item *ngFor=\"let item of pages\"\n tappable class=\"text-1x\"\n (click)=\"openPage(item.page)\">{{item.label}}</ion-item>\n\n </ng-container>\n </ion-list>\n\n</ion-content>\n"
|
|
18466
18526
|
},] }
|
|
18467
18527
|
];
|
|
18468
18528
|
MaterialTestingPage.ctorParameters = function () { return [
|
|
@@ -18472,13 +18532,13 @@
|
|
|
18472
18532
|
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_TESTING_PAGES,] }] }
|
|
18473
18533
|
]; };
|
|
18474
18534
|
|
|
18475
|
-
var moment$
|
|
18535
|
+
var moment$5 = momentImported__namespace;
|
|
18476
18536
|
var SwipeTestPage = /** @class */ (function () {
|
|
18477
18537
|
function SwipeTestPage(formBuilder, dateFormatPipe) {
|
|
18478
18538
|
this.formBuilder = formBuilder;
|
|
18479
18539
|
this.dateFormatPipe = dateFormatPipe;
|
|
18480
18540
|
this.$dates = new rxjs.BehaviorSubject(undefined);
|
|
18481
|
-
this._today = moment$
|
|
18541
|
+
this._today = moment$5().startOf('day');
|
|
18482
18542
|
this.form = formBuilder.group({
|
|
18483
18543
|
empty: [null, i1.Validators.required],
|
|
18484
18544
|
date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
|
|
@@ -18492,7 +18552,7 @@
|
|
|
18492
18552
|
var _this = this;
|
|
18493
18553
|
var dates = [];
|
|
18494
18554
|
for (var d = 0; d < 7; d++) {
|
|
18495
|
-
dates[d] = moment$
|
|
18555
|
+
dates[d] = moment$5(this._today).add(d - 3, 'day');
|
|
18496
18556
|
}
|
|
18497
18557
|
this.$dates.next(dates);
|
|
18498
18558
|
this.loadData();
|
|
@@ -18539,7 +18599,7 @@
|
|
|
18539
18599
|
{ type: DateFormatPipe }
|
|
18540
18600
|
]; };
|
|
18541
18601
|
|
|
18542
|
-
var moment = momentImported__namespace;
|
|
18602
|
+
var moment$6 = momentImported__namespace;
|
|
18543
18603
|
var DateTimeTestPage = /** @class */ (function () {
|
|
18544
18604
|
function DateTimeTestPage(platform, formBuilder, cd) {
|
|
18545
18605
|
this.platform = platform;
|
|
@@ -18575,7 +18635,7 @@
|
|
|
18575
18635
|
var now, data;
|
|
18576
18636
|
var _this = this;
|
|
18577
18637
|
return __generator(this, function (_a) {
|
|
18578
|
-
now = moment();
|
|
18638
|
+
now = moment$6();
|
|
18579
18639
|
data = {
|
|
18580
18640
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
18581
18641
|
enable: toDateISOString(now),
|
|
@@ -18640,23 +18700,23 @@
|
|
|
18640
18700
|
{ type: i0.ChangeDetectorRef }
|
|
18641
18701
|
]; };
|
|
18642
18702
|
|
|
18643
|
-
var EntityTestClass = /** @class */ (function () {
|
|
18703
|
+
var EntityTestClass$1 = /** @class */ (function () {
|
|
18644
18704
|
function EntityTestClass() {
|
|
18645
18705
|
}
|
|
18646
18706
|
return EntityTestClass;
|
|
18647
18707
|
}());
|
|
18648
|
-
var FAKE_ENTITIES = [
|
|
18708
|
+
var FAKE_ENTITIES$1 = [
|
|
18649
18709
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
18650
18710
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
18651
18711
|
{ id: 3, label: 'CCC', name: 'Item C' }
|
|
18652
18712
|
];
|
|
18653
|
-
function deepCopy(values) {
|
|
18654
|
-
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
18713
|
+
function deepCopy$1(values) {
|
|
18714
|
+
return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
|
|
18655
18715
|
}
|
|
18656
18716
|
var ChipsTestPage = /** @class */ (function () {
|
|
18657
18717
|
function ChipsTestPage(formBuilder) {
|
|
18658
18718
|
this.formBuilder = formBuilder;
|
|
18659
|
-
this._items = deepCopy(FAKE_ENTITIES);
|
|
18719
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1);
|
|
18660
18720
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
18661
18721
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
18662
18722
|
this.form = formBuilder.group({
|
|
@@ -18676,7 +18736,7 @@
|
|
|
18676
18736
|
});
|
|
18677
18737
|
// From items
|
|
18678
18738
|
this.autocompleteFields.add('entity-items', {
|
|
18679
|
-
items: FAKE_ENTITIES.slice(),
|
|
18739
|
+
items: FAKE_ENTITIES$1.slice(),
|
|
18680
18740
|
attributes: ['label', 'name'],
|
|
18681
18741
|
displayWith: this.entityToString
|
|
18682
18742
|
});
|
|
@@ -18699,8 +18759,8 @@
|
|
|
18699
18759
|
data = {
|
|
18700
18760
|
entity: [],
|
|
18701
18761
|
// THis item is NOT in the items list => i should be displayed anyway
|
|
18702
|
-
entityInitial: FAKE_ENTITIES.slice(1, 2),
|
|
18703
|
-
disableEntity: FAKE_ENTITIES.slice(1, 2)
|
|
18762
|
+
entityInitial: FAKE_ENTITIES$1.slice(1, 2),
|
|
18763
|
+
disableEntity: FAKE_ENTITIES$1.slice(1, 2)
|
|
18704
18764
|
};
|
|
18705
18765
|
this.form.setValue(data);
|
|
18706
18766
|
return [2 /*return*/];
|
|
@@ -18710,7 +18770,7 @@
|
|
|
18710
18770
|
ChipsTestPage.prototype.loadItems = function () {
|
|
18711
18771
|
return __awaiter(this, void 0, void 0, function () {
|
|
18712
18772
|
return __generator(this, function (_a) {
|
|
18713
|
-
this._$items.next(deepCopy(FAKE_ENTITIES));
|
|
18773
|
+
this._$items.next(deepCopy$1(FAKE_ENTITIES$1));
|
|
18714
18774
|
return [2 /*return*/];
|
|
18715
18775
|
});
|
|
18716
18776
|
});
|
|
@@ -18747,7 +18807,19 @@
|
|
|
18747
18807
|
{ type: i1.FormBuilder }
|
|
18748
18808
|
]; };
|
|
18749
18809
|
|
|
18750
|
-
var
|
|
18810
|
+
var MatBadgeIconTestPage = /** @class */ (function () {
|
|
18811
|
+
function MatBadgeIconTestPage() {
|
|
18812
|
+
}
|
|
18813
|
+
return MatBadgeIconTestPage;
|
|
18814
|
+
}());
|
|
18815
|
+
MatBadgeIconTestPage.decorators = [
|
|
18816
|
+
{ type: i0.Component, args: [{
|
|
18817
|
+
selector: 'mat-badge-icon-test',
|
|
18818
|
+
template: "\n<ion-header>\n <ion-toolbar color=\"primary\">\n\n <ion-buttons slot=\"start\">\n <ion-back-button></ion-back-button>\n </ion-buttons>\n\n <ion-title>matBadgeIcon directive</ion-title>\n </ion-toolbar>\n</ion-header>\n\n<ion-content class=\"ion-padding\">\n\n <!-- small badge -->\n <p>\n <ion-text color=\"tertiary\">\n <span matBadge matIcon=\"check\"\n matBadgeSize=\"small\"\n matBadgeColor=\"accent\"\n matBadgeOverlap=\"false\">Small badge</span>\n </ion-text>\n </p>\n\n <!-- medium badge -->\n <p>\n <ion-text matBadge matBadgeIcon=\"check\"\n matBadgeSize=\"medium\"\n matBadgeColor=\"tertiary\"\n matBadgeOverlap=\"false\"\n >Medium badge</ion-text>\n </p>\n\n <!-- small badge -->\n <p>\n <ion-label matBadge matBadgeIcon=\"close\" matBadgeSize=\"large\"\n matBadgeOverlap=\"false\">Large badge</ion-label>\n </p>\n\n <!-- default size badge -->\n <p>\n <ion-label matBadge matBadgeIcon=\"check\" matBadgeColor=\"success\"\n matBadgeOverlap=\"false\">Badge (no size, no color)\n </ion-label>\n </p>\n\n <!-- ion icon -->\n <p>\n <ion-label matBadge\n ionBadgeIcon=\"checkmark\"\n matBadgeColor=\"success\"\n matBadgeOverlap=\"false\">Badge with ion-icon\n </ion-label>\n </p>\n\n <!-- ion icon clear -->\n <p>\n <ion-label matBadge\n ionBadgeIcon=\"checkmark-circle\"\n matBadgeColor=\"tertiary\"\n matBadgeFill=\"clear\"\n matBadgeOverlap=\"false\">Badge with clear icon\n </ion-label>\n </p>\n\n\n</ion-content>\n"
|
|
18819
|
+
},] }
|
|
18820
|
+
];
|
|
18821
|
+
|
|
18822
|
+
var routes = [
|
|
18751
18823
|
{
|
|
18752
18824
|
path: '',
|
|
18753
18825
|
pathMatch: 'full',
|
|
@@ -18782,6 +18854,11 @@
|
|
|
18782
18854
|
path: 'chips',
|
|
18783
18855
|
pathMatch: 'full',
|
|
18784
18856
|
component: ChipsTestPage
|
|
18857
|
+
},
|
|
18858
|
+
{
|
|
18859
|
+
path: 'badge-icon',
|
|
18860
|
+
pathMatch: 'full',
|
|
18861
|
+
component: MatBadgeIconTestPage
|
|
18785
18862
|
}
|
|
18786
18863
|
];
|
|
18787
18864
|
var MaterialTestingModule = /** @class */ (function () {
|
|
@@ -18797,7 +18874,7 @@
|
|
|
18797
18874
|
i1.ReactiveFormsModule,
|
|
18798
18875
|
SharedMaterialModule,
|
|
18799
18876
|
i1$2.TranslateModule.forChild(),
|
|
18800
|
-
i3.RouterModule.forChild(routes
|
|
18877
|
+
i3.RouterModule.forChild(routes)
|
|
18801
18878
|
],
|
|
18802
18879
|
declarations: [
|
|
18803
18880
|
MaterialTestingPage,
|
|
@@ -18806,7 +18883,8 @@
|
|
|
18806
18883
|
LatLongTestPage,
|
|
18807
18884
|
// NumpadTestPage,
|
|
18808
18885
|
SwipeTestPage,
|
|
18809
|
-
ChipsTestPage
|
|
18886
|
+
ChipsTestPage,
|
|
18887
|
+
MatBadgeIconTestPage
|
|
18810
18888
|
],
|
|
18811
18889
|
exports: [
|
|
18812
18890
|
SharedMaterialModule,
|
|
@@ -18921,7 +18999,7 @@
|
|
|
18921
18999
|
if (form)
|
|
18922
19000
|
this.setForm(form);
|
|
18923
19001
|
this.settings = injector.get(LocalSettingsService);
|
|
18924
|
-
this.errorTranslator = injector.get(
|
|
19002
|
+
this.errorTranslator = injector.get(FormErrorTranslator);
|
|
18925
19003
|
this.autocompleteHelper = new MatAutocompleteConfigHolder(this.settings && {
|
|
18926
19004
|
getUserAttributes: function (a, b) { return _this.settings.getFieldDisplayAttributes(a, b); }
|
|
18927
19005
|
});
|
|
@@ -19931,7 +20009,7 @@
|
|
|
19931
20009
|
};
|
|
19932
20010
|
return UserSettingsValidatorService;
|
|
19933
20011
|
}(AppValidatorService));
|
|
19934
|
-
UserSettingsValidatorService.ɵprov =
|
|
20012
|
+
UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
19935
20013
|
UserSettingsValidatorService.decorators = [
|
|
19936
20014
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
19937
20015
|
];
|
|
@@ -19979,7 +20057,7 @@
|
|
|
19979
20057
|
};
|
|
19980
20058
|
return AccountValidatorService;
|
|
19981
20059
|
}(AppValidatorService));
|
|
19982
|
-
AccountValidatorService.ɵprov =
|
|
20060
|
+
AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
|
|
19983
20061
|
AccountValidatorService.decorators = [
|
|
19984
20062
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
19985
20063
|
];
|
|
@@ -20575,7 +20653,7 @@
|
|
|
20575
20653
|
};
|
|
20576
20654
|
return LocalSettingsValidatorService;
|
|
20577
20655
|
}(AppValidatorService));
|
|
20578
|
-
LocalSettingsValidatorService.ɵprov =
|
|
20656
|
+
LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
|
|
20579
20657
|
LocalSettingsValidatorService.decorators = [
|
|
20580
20658
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
20581
20659
|
];
|
|
@@ -21357,7 +21435,7 @@
|
|
|
21357
21435
|
};
|
|
21358
21436
|
return IsOnFieldModePipe;
|
|
21359
21437
|
}());
|
|
21360
|
-
IsOnFieldModePipe.ɵprov =
|
|
21438
|
+
IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
21361
21439
|
IsOnFieldModePipe.decorators = [
|
|
21362
21440
|
{ type: i0.Pipe, args: [{
|
|
21363
21441
|
name: 'isOnField'
|
|
@@ -21372,7 +21450,7 @@
|
|
|
21372
21450
|
};
|
|
21373
21451
|
return IsNotOnFieldModePipe;
|
|
21374
21452
|
}());
|
|
21375
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
21453
|
+
IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
21376
21454
|
IsNotOnFieldModePipe.decorators = [
|
|
21377
21455
|
{ type: i0.Pipe, args: [{
|
|
21378
21456
|
name: 'isNotOnField'
|
|
@@ -21390,7 +21468,7 @@
|
|
|
21390
21468
|
};
|
|
21391
21469
|
return PersonToStringPipe;
|
|
21392
21470
|
}());
|
|
21393
|
-
PersonToStringPipe.ɵprov =
|
|
21471
|
+
PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
21394
21472
|
PersonToStringPipe.decorators = [
|
|
21395
21473
|
{ type: i0.Pipe, args: [{
|
|
21396
21474
|
name: 'personToString'
|
|
@@ -21802,7 +21880,7 @@
|
|
|
21802
21880
|
};
|
|
21803
21881
|
return IsLoginAccountPipe;
|
|
21804
21882
|
}());
|
|
21805
|
-
IsLoginAccountPipe.ɵprov =
|
|
21883
|
+
IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
21806
21884
|
IsLoginAccountPipe.decorators = [
|
|
21807
21885
|
{ type: i0.Pipe, args: [{
|
|
21808
21886
|
name: 'isLogin'
|
|
@@ -21817,7 +21895,7 @@
|
|
|
21817
21895
|
};
|
|
21818
21896
|
return AccountToStringPipe;
|
|
21819
21897
|
}());
|
|
21820
|
-
AccountToStringPipe.ɵprov =
|
|
21898
|
+
AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
21821
21899
|
AccountToStringPipe.decorators = [
|
|
21822
21900
|
{ type: i0.Pipe, args: [{
|
|
21823
21901
|
name: 'accountToString'
|
|
@@ -21835,7 +21913,7 @@
|
|
|
21835
21913
|
};
|
|
21836
21914
|
return DepartmentToStringPipe;
|
|
21837
21915
|
}());
|
|
21838
|
-
DepartmentToStringPipe.ɵprov =
|
|
21916
|
+
DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
21839
21917
|
DepartmentToStringPipe.decorators = [
|
|
21840
21918
|
{ type: i0.Pipe, args: [{
|
|
21841
21919
|
name: 'departmentToString'
|
|
@@ -21870,7 +21948,7 @@
|
|
|
21870
21948
|
};
|
|
21871
21949
|
return MenuService;
|
|
21872
21950
|
}());
|
|
21873
|
-
MenuService.ɵprov =
|
|
21951
|
+
MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
21874
21952
|
MenuService.decorators = [
|
|
21875
21953
|
{ type: i0.Injectable, args: [{
|
|
21876
21954
|
providedIn: 'root'
|
|
@@ -22449,7 +22527,7 @@
|
|
|
22449
22527
|
};
|
|
22450
22528
|
return AuthGuardService;
|
|
22451
22529
|
}());
|
|
22452
|
-
AuthGuardService.ɵprov =
|
|
22530
|
+
AuthGuardService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AuthGuardService_Factory() { return new AuthGuardService(i0.ɵɵinject(AccountService), i0.ɵɵinject(i1$5.ModalController), i0.ɵɵinject(i3.Router), i0.ɵɵinject(ENVIRONMENT)); }, token: AuthGuardService, providedIn: "root" });
|
|
22453
22531
|
AuthGuardService.decorators = [
|
|
22454
22532
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
22455
22533
|
];
|
|
@@ -22500,7 +22578,7 @@
|
|
|
22500
22578
|
query: query,
|
|
22501
22579
|
variables: { id: id },
|
|
22502
22580
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
22503
|
-
error: { code: ErrorCodes
|
|
22581
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
22504
22582
|
})
|
|
22505
22583
|
.pipe(operators.map(function (_b) {
|
|
22506
22584
|
var data = _b.data;
|
|
@@ -22522,7 +22600,7 @@
|
|
|
22522
22600
|
query: query,
|
|
22523
22601
|
variables: { id: id },
|
|
22524
22602
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
22525
|
-
error: { code: ErrorCodes
|
|
22603
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
22526
22604
|
})];
|
|
22527
22605
|
case 1:
|
|
22528
22606
|
data = (_b.sent()).data;
|
|
@@ -22558,7 +22636,7 @@
|
|
|
22558
22636
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
22559
22637
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
22560
22638
|
variables: variables,
|
|
22561
|
-
error: { code: ErrorCodes
|
|
22639
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
22562
22640
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
22563
22641
|
})
|
|
22564
22642
|
.pipe(operators.map(function (_b) {
|
|
@@ -22600,7 +22678,7 @@
|
|
|
22600
22678
|
return [4 /*yield*/, this.graphql.query({
|
|
22601
22679
|
query: query,
|
|
22602
22680
|
variables: variables,
|
|
22603
|
-
error: { code: ErrorCodes
|
|
22681
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
22604
22682
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
22605
22683
|
})];
|
|
22606
22684
|
case 1:
|
|
@@ -22648,7 +22726,7 @@
|
|
|
22648
22726
|
variables: {
|
|
22649
22727
|
filter: filter && filter.asPodObject()
|
|
22650
22728
|
},
|
|
22651
|
-
error: { code: ErrorCodes
|
|
22729
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
22652
22730
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
22653
22731
|
})];
|
|
22654
22732
|
case 3:
|
|
@@ -22690,7 +22768,7 @@
|
|
|
22690
22768
|
variables: {
|
|
22691
22769
|
data: json
|
|
22692
22770
|
},
|
|
22693
|
-
error: { code: ErrorCodes
|
|
22771
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
22694
22772
|
update: function (proxy, _b) {
|
|
22695
22773
|
var data = _b.data;
|
|
22696
22774
|
var savedEntities = data && data.data;
|
|
@@ -22757,7 +22835,7 @@
|
|
|
22757
22835
|
variables: {
|
|
22758
22836
|
data: json
|
|
22759
22837
|
},
|
|
22760
|
-
error: { code: ErrorCodes
|
|
22838
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
22761
22839
|
update: function (cache, _b) {
|
|
22762
22840
|
var data = _b.data;
|
|
22763
22841
|
// Update entity
|
|
@@ -22815,7 +22893,7 @@
|
|
|
22815
22893
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
22816
22894
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
22817
22895
|
variables: { ids: ids },
|
|
22818
|
-
error: { code: ErrorCodes
|
|
22896
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
22819
22897
|
update: function (cache, res) {
|
|
22820
22898
|
// Remove from cache
|
|
22821
22899
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -22868,7 +22946,7 @@
|
|
|
22868
22946
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
22869
22947
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
22870
22948
|
variables: { id: id },
|
|
22871
|
-
error: { code: ErrorCodes
|
|
22949
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
22872
22950
|
update: function (proxy, res) {
|
|
22873
22951
|
// Remove from cache
|
|
22874
22952
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -22907,7 +22985,7 @@
|
|
|
22907
22985
|
query: opts && opts.query || this.subscriptions.listenChanges,
|
|
22908
22986
|
variables: variables,
|
|
22909
22987
|
error: {
|
|
22910
|
-
code: ErrorCodes
|
|
22988
|
+
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
22911
22989
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
22912
22990
|
}
|
|
22913
22991
|
})
|
|
@@ -23116,7 +23194,7 @@
|
|
|
23116
23194
|
if (this._debug)
|
|
23117
23195
|
invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
|
|
23118
23196
|
// Stop with an error
|
|
23119
|
-
throw { code: ErrorCodes
|
|
23197
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
23120
23198
|
}
|
|
23121
23199
|
this._editingRowCount = 0;
|
|
23122
23200
|
data = void 0;
|
|
@@ -23418,7 +23496,7 @@
|
|
|
23418
23496
|
this._paginator = null;
|
|
23419
23497
|
this.mobile = this.platform.is('mobile');
|
|
23420
23498
|
this.translate = injector === null || injector === void 0 ? void 0 : injector.get(i1$2.TranslateService);
|
|
23421
|
-
this.formErrorAdapter = injector === null || injector === void 0 ? void 0 : injector.get(
|
|
23499
|
+
this.formErrorAdapter = injector === null || injector === void 0 ? void 0 : injector.get(FormErrorTranslator);
|
|
23422
23500
|
this.alertCtrl = injector === null || injector === void 0 ? void 0 : injector.get(i1$5.AlertController);
|
|
23423
23501
|
this.toastController = injector === null || injector === void 0 ? void 0 : injector.get(i1$5.ToastController);
|
|
23424
23502
|
this._autocompleteConfigHolder = new MatAutocompleteConfigHolder({
|
|
@@ -24070,14 +24148,14 @@
|
|
|
24070
24148
|
case 0:
|
|
24071
24149
|
opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
|
|
24072
24150
|
if (this.readOnly) {
|
|
24073
|
-
throw { code: ErrorCodes
|
|
24151
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
24074
24152
|
}
|
|
24075
24153
|
this.resetError();
|
|
24076
24154
|
// Keep edited row id (should be done BEFORE confirmEditCreate() )
|
|
24077
24155
|
this.previouslyEditedRowId = opts.keepEditing && ((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined;
|
|
24078
24156
|
previouslyEditedData = isNotNil(this.previouslyEditedRowId) && this.editedRow.currentData || ((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.currentData);
|
|
24079
24157
|
if (!this.confirmEditCreate()) {
|
|
24080
|
-
throw { code: ErrorCodes
|
|
24158
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
24081
24159
|
}
|
|
24082
24160
|
// Mark as saving
|
|
24083
24161
|
this.markAsSaving();
|
|
@@ -24230,7 +24308,7 @@
|
|
|
24230
24308
|
switch (_d.label) {
|
|
24231
24309
|
case 0:
|
|
24232
24310
|
if (this.readOnly) {
|
|
24233
|
-
throw { code: ErrorCodes
|
|
24311
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
24234
24312
|
}
|
|
24235
24313
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
24236
24314
|
return [2 /*return*/, 0]; // SKip
|
|
@@ -25768,7 +25846,7 @@
|
|
|
25768
25846
|
enableListenChanges: (injector.get(ENVIRONMENT).listenRemoteChanges === true), pathIdAttribute: 'id', autoLoad: true, autoUpdateRoute: true, i18nPrefix: ''
|
|
25769
25847
|
}, options);
|
|
25770
25848
|
_this.settings = injector.get(LocalSettingsService);
|
|
25771
|
-
_this.formErrorAdapter = injector.get(
|
|
25849
|
+
_this.formErrorAdapter = injector.get(FormErrorTranslator);
|
|
25772
25850
|
_this.cd = injector.get(i0.ChangeDetectorRef);
|
|
25773
25851
|
_this.dateFormat = injector.get(DateFormatPipe);
|
|
25774
25852
|
_this.toastController = injector.get(i1$5.ToastController);
|
|
@@ -25921,7 +25999,7 @@
|
|
|
25921
25999
|
case 4:
|
|
25922
26000
|
data = _b.sent();
|
|
25923
26001
|
if (!data)
|
|
25924
|
-
throw { code: ErrorCodes
|
|
26002
|
+
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
25925
26003
|
this._usageMode = this.computeUsageMode(data);
|
|
25926
26004
|
return [4 /*yield*/, this.onEntityLoaded(data, opts)];
|
|
25927
26005
|
case 5:
|
|
@@ -25978,7 +26056,7 @@
|
|
|
25978
26056
|
idChanged = isNotNil(data.id)
|
|
25979
26057
|
&& this.previousDataId !== undefined // Ignore if first loading (=undefined)
|
|
25980
26058
|
&& this.previousDataId !== data.id;
|
|
25981
|
-
opts = Object.assign({ updateRoute: this._autoUpdateRoute && idChanged && !this.loading, openTabIndex: this._autoOpenNextTab && idChanged && this.computeNextTabIndex() }, opts);
|
|
26059
|
+
opts = Object.assign({ updateRoute: this._autoUpdateRoute && idChanged && !this.loading, openTabIndex: this._autoOpenNextTab && idChanged && isNil(this.previousDataId) && this.computeNextTabIndex() }, opts);
|
|
25982
26060
|
this.data = data;
|
|
25983
26061
|
this.previousDataId = data.id || null;
|
|
25984
26062
|
promiseOrVoid = this.setValue(data);
|
|
@@ -26324,9 +26402,13 @@
|
|
|
26324
26402
|
this.error = userMessage;
|
|
26325
26403
|
};
|
|
26326
26404
|
/* -- protected methods -- */
|
|
26405
|
+
/**
|
|
26406
|
+
* Return undefined to keep same tab
|
|
26407
|
+
* @protected
|
|
26408
|
+
*/
|
|
26327
26409
|
AppEntityEditor.prototype.computeNextTabIndex = function () {
|
|
26328
26410
|
var nextTabIndex = this.selectedTabIndex + 1;
|
|
26329
|
-
return nextTabIndex < this.tabCount ? nextTabIndex :
|
|
26411
|
+
return nextTabIndex < this.tabCount ? nextTabIndex : undefined;
|
|
26330
26412
|
};
|
|
26331
26413
|
AppEntityEditor.prototype.unload = function () {
|
|
26332
26414
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -26658,10 +26740,10 @@
|
|
|
26658
26740
|
exports.UserEventFilter = __decorate([
|
|
26659
26741
|
EntityClass({ typename: 'UserEventVO' })
|
|
26660
26742
|
], exports.UserEventFilter);
|
|
26661
|
-
var SaveQuery = core.gql(templateObject_1$
|
|
26662
|
-
var LoadAllQuery = core.gql(templateObject_2$
|
|
26663
|
-
var DeleteByIdsMutation = core.gql(templateObject_3$
|
|
26664
|
-
var LoadAllWithContentQuery = core.gql(templateObject_4$
|
|
26743
|
+
var SaveQuery = core.gql(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
|
|
26744
|
+
var LoadAllQuery = core.gql(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"], ["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"])), SocialFragments.lightUserEvent);
|
|
26745
|
+
var DeleteByIdsMutation = core.gql(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"], ["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"])));
|
|
26746
|
+
var LoadAllWithContentQuery = core.gql(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
|
|
26665
26747
|
var UserEventService = /** @class */ (function (_super) {
|
|
26666
26748
|
__extends(UserEventService, _super);
|
|
26667
26749
|
function UserEventService(graphql, accountService, network, translate, toastController, environment) {
|
|
@@ -26982,7 +27064,7 @@
|
|
|
26982
27064
|
};
|
|
26983
27065
|
return UserEventService;
|
|
26984
27066
|
}(BaseGraphqlService));
|
|
26985
|
-
UserEventService.ɵprov =
|
|
27067
|
+
UserEventService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserEventService_Factory() { return new UserEventService(i0.ɵɵinject(GraphqlService), i0.ɵɵinject(AccountService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(ENVIRONMENT)); }, token: UserEventService, providedIn: "root" });
|
|
26986
27068
|
UserEventService.decorators = [
|
|
26987
27069
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
26988
27070
|
];
|
|
@@ -26994,7 +27076,7 @@
|
|
|
26994
27076
|
{ type: i1$5.ToastController },
|
|
26995
27077
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
26996
27078
|
]; };
|
|
26997
|
-
var templateObject_1$
|
|
27079
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
|
|
26998
27080
|
|
|
26999
27081
|
var ICONS_MAP = {
|
|
27000
27082
|
DEBUG_DATA: { matIcon: 'bug_report' },
|
|
@@ -27257,16 +27339,16 @@
|
|
|
27257
27339
|
], exports.PersonFilter);
|
|
27258
27340
|
|
|
27259
27341
|
var PersonFragments = {
|
|
27260
|
-
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 }"])))
|
|
27342
|
+
person: core.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"], ["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"])))
|
|
27261
27343
|
};
|
|
27262
27344
|
// Load persons query
|
|
27263
27345
|
var PersonQueries = {
|
|
27264
|
-
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),
|
|
27265
|
-
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)
|
|
27346
|
+
loadAll: core.gql(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""], ["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
|
|
27347
|
+
loadAllWithTotal: core.gql(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""], ["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""])), PersonFragments.person)
|
|
27266
27348
|
};
|
|
27267
27349
|
var PersonMutations = {
|
|
27268
|
-
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),
|
|
27269
|
-
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 }"])))
|
|
27350
|
+
saveAll: core.gql(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n mutation savePersons($data:[PersonVOInput]){\n data: savePersons(persons: $data){\n ...PersonFragment\n }\n }\n ", ""], ["\n mutation savePersons($data:[PersonVOInput]){\n data: savePersons(persons: $data){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
|
|
27351
|
+
deleteAll: core.gql(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"], ["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"])))
|
|
27270
27352
|
};
|
|
27271
27353
|
var PersonService = /** @class */ (function (_super_1) {
|
|
27272
27354
|
__extends(PersonService, _super_1);
|
|
@@ -27390,7 +27472,7 @@
|
|
|
27390
27472
|
};
|
|
27391
27473
|
return PersonService;
|
|
27392
27474
|
}(BaseEntityService));
|
|
27393
|
-
PersonService.ɵprov =
|
|
27475
|
+
PersonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonService_Factory() { return new PersonService(i0.ɵɵinject(GraphqlService), i0.ɵɵinject(PlatformService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(EntitiesStorage)); }, token: PersonService, providedIn: "root" });
|
|
27394
27476
|
PersonService.decorators = [
|
|
27395
27477
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
27396
27478
|
];
|
|
@@ -27400,7 +27482,7 @@
|
|
|
27400
27482
|
{ type: NetworkService },
|
|
27401
27483
|
{ type: EntitiesStorage }
|
|
27402
27484
|
]; };
|
|
27403
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
27485
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
|
|
27404
27486
|
|
|
27405
27487
|
var PersonValidatorService = /** @class */ (function () {
|
|
27406
27488
|
function PersonValidatorService(formBuilder, accountValidatorService) {
|
|
@@ -27423,7 +27505,7 @@
|
|
|
27423
27505
|
};
|
|
27424
27506
|
return PersonValidatorService;
|
|
27425
27507
|
}());
|
|
27426
|
-
PersonValidatorService.ɵprov =
|
|
27508
|
+
PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
|
|
27427
27509
|
PersonValidatorService.decorators = [
|
|
27428
27510
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
27429
27511
|
];
|
|
@@ -27646,16 +27728,16 @@
|
|
|
27646
27728
|
];
|
|
27647
27729
|
AdminModule.ctorParameters = function () { return []; };
|
|
27648
27730
|
|
|
27649
|
-
var ɵ0 = {
|
|
27731
|
+
var ɵ0$a = {
|
|
27650
27732
|
profile: 'ADMIN'
|
|
27651
27733
|
};
|
|
27652
|
-
var routes = [
|
|
27734
|
+
var routes$1 = [
|
|
27653
27735
|
{
|
|
27654
27736
|
path: 'users',
|
|
27655
27737
|
pathMatch: 'full',
|
|
27656
27738
|
component: UsersPage,
|
|
27657
27739
|
canActivate: [AuthGuardService],
|
|
27658
|
-
data: ɵ0
|
|
27740
|
+
data: ɵ0$a
|
|
27659
27741
|
}
|
|
27660
27742
|
];
|
|
27661
27743
|
var AdminRoutingModule = /** @class */ (function () {
|
|
@@ -27668,13 +27750,13 @@
|
|
|
27668
27750
|
imports: [
|
|
27669
27751
|
SharedRoutingModule,
|
|
27670
27752
|
AdminModule,
|
|
27671
|
-
i3.RouterModule.forChild(routes)
|
|
27753
|
+
i3.RouterModule.forChild(routes$1)
|
|
27672
27754
|
],
|
|
27673
27755
|
exports: [i3.RouterModule]
|
|
27674
27756
|
},] }
|
|
27675
27757
|
];
|
|
27676
27758
|
|
|
27677
|
-
var ErrorCodes = {
|
|
27759
|
+
var ErrorCodes$2 = {
|
|
27678
27760
|
LOAD_PERSONS_ERROR: 100,
|
|
27679
27761
|
SAVE_PERSONS_ERROR: 101,
|
|
27680
27762
|
DELETE_PERSONS_ERROR: 102,
|
|
@@ -27784,17 +27866,17 @@
|
|
|
27784
27866
|
exports.EntityStore = EntityStore;
|
|
27785
27867
|
exports.EntityUtils = EntityUtils;
|
|
27786
27868
|
exports.Environment = Environment;
|
|
27787
|
-
exports.ErrorCodes = ErrorCodes;
|
|
27869
|
+
exports.ErrorCodes = ErrorCodes$2;
|
|
27788
27870
|
exports.EvenPipe = EvenPipe;
|
|
27789
27871
|
exports.FileService = FileService;
|
|
27790
27872
|
exports.FileSizePipe = FileSizePipe;
|
|
27791
27873
|
exports.FormArrayHelper = FormArrayHelper;
|
|
27792
27874
|
exports.FormButtonsBarComponent = FormButtonsBarComponent;
|
|
27793
27875
|
exports.FormButtonsBarToken = FormButtonsBarToken;
|
|
27794
|
-
exports.FormErrorAdapter = FormErrorAdapter;
|
|
27795
27876
|
exports.FormErrorTranslatePipe = FormErrorTranslatePipe;
|
|
27877
|
+
exports.FormErrorTranslator = FormErrorTranslator;
|
|
27796
27878
|
exports.FormFieldValuesHolder = FormFieldValuesHolder;
|
|
27797
|
-
exports.Fragments = Fragments;
|
|
27879
|
+
exports.Fragments = Fragments$1;
|
|
27798
27880
|
exports.GraphqlService = GraphqlService;
|
|
27799
27881
|
exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
|
|
27800
27882
|
exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
|
|
@@ -28042,17 +28124,20 @@
|
|
|
28042
28124
|
exports.waitFor = waitFor;
|
|
28043
28125
|
exports.waitIdle = waitIdle;
|
|
28044
28126
|
exports.waitWhilePending = waitWhilePending;
|
|
28045
|
-
exports
|
|
28046
|
-
exports
|
|
28047
|
-
exports
|
|
28048
|
-
exports
|
|
28049
|
-
exports
|
|
28050
|
-
exports
|
|
28051
|
-
exports
|
|
28052
|
-
exports
|
|
28053
|
-
exports
|
|
28127
|
+
exports.ɵ0 = ɵ0$5;
|
|
28128
|
+
exports.ɵa = CustomReuseStrategy;
|
|
28129
|
+
exports.ɵb = MatNumpadDomService;
|
|
28130
|
+
exports.ɵc = SharedMatBadgeIconModule;
|
|
28131
|
+
exports.ɵd = MatBadgeIconDirective;
|
|
28132
|
+
exports.ɵe = isFocusableElement;
|
|
28133
|
+
exports.ɵf = MatBadgeIconTestPage;
|
|
28134
|
+
exports.ɵg = RegisterForm;
|
|
28135
|
+
exports.ɵh = AccountValidatorService;
|
|
28136
|
+
exports.ɵi = RegisterModal;
|
|
28137
|
+
exports.ɵj = UserSettingsValidatorService;
|
|
28138
|
+
exports.ɵk = LocalSettingsValidatorService;
|
|
28054
28139
|
|
|
28055
28140
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
28056
28141
|
|
|
28057
|
-
}));
|
|
28142
|
+
})));
|
|
28058
28143
|
//# sourceMappingURL=sumaris-net.ngx-components.umd.js.map
|