@sumaris-net/ngx-components 1.8.1 → 1.8.2-rc1
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 +265 -289
- 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 -1
- package/esm2015/src/app/core/table/table.class.js +4 -4
- package/fesm2015/sumaris-net.ngx-components.js +258 -273
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.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['ionic-native'].downloader.ngx, global['ionic-native']['status-bar'].ngx.index, global['ionic-native'].keyboard.ngx.index, global['ionic-native']['in-app-browser'].ngx.index, global['ionic-native'].downloader.ngx.index, global['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 () {
|
|
@@ -1278,14 +1255,14 @@
|
|
|
1278
1255
|
};
|
|
1279
1256
|
return MatAutocompleteConfigHolder;
|
|
1280
1257
|
}());
|
|
1281
|
-
var noop
|
|
1282
|
-
var ɵ0
|
|
1258
|
+
var noop = function (_) { };
|
|
1259
|
+
var ɵ0 = noop;
|
|
1283
1260
|
var MatAutocompleteField = /** @class */ (function () {
|
|
1284
1261
|
function MatAutocompleteField(cd, formGroupDir) {
|
|
1285
1262
|
this.cd = cd;
|
|
1286
1263
|
this.formGroupDir = formGroupDir;
|
|
1287
|
-
this._onChangeCallback = noop
|
|
1288
|
-
this._onTouchedCallback = noop
|
|
1264
|
+
this._onChangeCallback = noop;
|
|
1265
|
+
this._onTouchedCallback = noop;
|
|
1289
1266
|
this.logPrefix = '[mat-autocomplete] ';
|
|
1290
1267
|
this.formControlName = null;
|
|
1291
1268
|
this.required = false;
|
|
@@ -2078,7 +2055,7 @@
|
|
|
2078
2055
|
};
|
|
2079
2056
|
return DateFormatPipe;
|
|
2080
2057
|
}());
|
|
2081
|
-
DateFormatPipe.ɵprov =
|
|
2058
|
+
DateFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFormatPipe_Factory() { return new DateFormatPipe(i0.ɵɵinject(i1$1.MomentDateAdapter), i0.ɵɵinject(i1$2.TranslateService)); }, token: DateFormatPipe, providedIn: "root" });
|
|
2082
2059
|
DateFormatPipe.decorators = [
|
|
2083
2060
|
{ type: i0.Pipe, args: [{
|
|
2084
2061
|
name: 'dateFormat'
|
|
@@ -2090,7 +2067,7 @@
|
|
|
2090
2067
|
{ type: i1$2.TranslateService }
|
|
2091
2068
|
]; };
|
|
2092
2069
|
|
|
2093
|
-
var moment
|
|
2070
|
+
var moment = momentImported__namespace;
|
|
2094
2071
|
var DateDiffDurationPipe = /** @class */ (function () {
|
|
2095
2072
|
function DateDiffDurationPipe(dateAdapter, translate) {
|
|
2096
2073
|
var _this = this;
|
|
@@ -2107,10 +2084,10 @@
|
|
|
2107
2084
|
return this.format(startDate, endDate);
|
|
2108
2085
|
};
|
|
2109
2086
|
DateDiffDurationPipe.prototype.format = function (startDate, endDate) {
|
|
2110
|
-
var duration = moment
|
|
2087
|
+
var duration = moment.duration(endDate.diff(startDate));
|
|
2111
2088
|
if (duration.asMinutes() < 0)
|
|
2112
2089
|
return '';
|
|
2113
|
-
var timeDuration = moment
|
|
2090
|
+
var timeDuration = moment(0)
|
|
2114
2091
|
.hour(duration.hours())
|
|
2115
2092
|
.minute(duration.minutes());
|
|
2116
2093
|
var days = Math.floor(duration.asDays());
|
|
@@ -2118,7 +2095,7 @@
|
|
|
2118
2095
|
};
|
|
2119
2096
|
return DateDiffDurationPipe;
|
|
2120
2097
|
}());
|
|
2121
|
-
DateDiffDurationPipe.ɵprov =
|
|
2098
|
+
DateDiffDurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateDiffDurationPipe_Factory() { return new DateDiffDurationPipe(i0.ɵɵinject(i1$3.DateAdapter), i0.ɵɵinject(i1$2.TranslateService)); }, token: DateDiffDurationPipe, providedIn: "root" });
|
|
2122
2099
|
DateDiffDurationPipe.decorators = [
|
|
2123
2100
|
{ type: i0.Pipe, args: [{
|
|
2124
2101
|
name: 'dateDiffDuration'
|
|
@@ -2140,7 +2117,7 @@
|
|
|
2140
2117
|
};
|
|
2141
2118
|
return DateFromNowPipe;
|
|
2142
2119
|
}());
|
|
2143
|
-
DateFromNowPipe.ɵprov =
|
|
2120
|
+
DateFromNowPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0.ɵɵinject(i1$1.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
|
|
2144
2121
|
DateFromNowPipe.decorators = [
|
|
2145
2122
|
{ type: i0.Pipe, args: [{
|
|
2146
2123
|
name: 'dateFromNow'
|
|
@@ -2209,7 +2186,7 @@
|
|
|
2209
2186
|
value *= -1;
|
|
2210
2187
|
}
|
|
2211
2188
|
}
|
|
2212
|
-
var degrees = roundFloat
|
|
2189
|
+
var degrees = roundFloat(value, opts.maxDecimals).toString();
|
|
2213
2190
|
// Add sign
|
|
2214
2191
|
var sign = negative ? '-' : '+';
|
|
2215
2192
|
if (opts.placeholderChar) {
|
|
@@ -2260,7 +2237,7 @@
|
|
|
2260
2237
|
}
|
|
2261
2238
|
var degrees = Math.trunc(value);
|
|
2262
2239
|
var minutes = Math.trunc((value - degrees) * 60);
|
|
2263
|
-
var seconds = roundFloat
|
|
2240
|
+
var seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
|
|
2264
2241
|
while (seconds >= 60) {
|
|
2265
2242
|
seconds -= 60;
|
|
2266
2243
|
minutes += 1;
|
|
@@ -2328,7 +2305,7 @@
|
|
|
2328
2305
|
}
|
|
2329
2306
|
}
|
|
2330
2307
|
var degrees = Math.trunc(value);
|
|
2331
|
-
var minutes = roundFloat
|
|
2308
|
+
var minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
|
|
2332
2309
|
while (minutes >= 60) {
|
|
2333
2310
|
minutes -= 60;
|
|
2334
2311
|
degrees += 1;
|
|
@@ -2379,15 +2356,15 @@
|
|
|
2379
2356
|
return NaN;
|
|
2380
2357
|
}
|
|
2381
2358
|
if (pattern === 'DD')
|
|
2382
|
-
return roundFloat
|
|
2359
|
+
return roundFloat(degrees, maxDecimals);
|
|
2383
2360
|
var minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
|
|
2384
2361
|
var seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
|
|
2385
2362
|
var direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
|
|
2386
2363
|
var sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
|
|
2387
2364
|
degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
|
|
2388
|
-
return roundFloat
|
|
2365
|
+
return roundFloat(degrees, maxDecimals);
|
|
2389
2366
|
}
|
|
2390
|
-
function roundFloat
|
|
2367
|
+
function roundFloat(input, maxDecimals) {
|
|
2391
2368
|
if (maxDecimals > 0) {
|
|
2392
2369
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
2393
2370
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -2410,7 +2387,7 @@
|
|
|
2410
2387
|
};
|
|
2411
2388
|
return LatLongFormatPipe;
|
|
2412
2389
|
}());
|
|
2413
|
-
LatLongFormatPipe.ɵprov =
|
|
2390
|
+
LatLongFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
|
|
2414
2391
|
LatLongFormatPipe.decorators = [
|
|
2415
2392
|
{ type: i0.Pipe, args: [{
|
|
2416
2393
|
name: 'latLongFormat'
|
|
@@ -2423,7 +2400,7 @@
|
|
|
2423
2400
|
}
|
|
2424
2401
|
return LatitudeFormatPipe;
|
|
2425
2402
|
}());
|
|
2426
|
-
LatitudeFormatPipe.ɵprov =
|
|
2403
|
+
LatitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
|
|
2427
2404
|
LatitudeFormatPipe.decorators = [
|
|
2428
2405
|
{ type: i0.Pipe, args: [{
|
|
2429
2406
|
name: 'latitudeFormat'
|
|
@@ -2436,7 +2413,7 @@
|
|
|
2436
2413
|
}
|
|
2437
2414
|
return LongitudeFormatPipe;
|
|
2438
2415
|
}());
|
|
2439
|
-
LongitudeFormatPipe.ɵprov =
|
|
2416
|
+
LongitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
|
|
2440
2417
|
LongitudeFormatPipe.decorators = [
|
|
2441
2418
|
{ type: i0.Pipe, args: [{
|
|
2442
2419
|
name: 'longitudeFormat'
|
|
@@ -2459,7 +2436,7 @@
|
|
|
2459
2436
|
};
|
|
2460
2437
|
return NumberFormatPipe;
|
|
2461
2438
|
}());
|
|
2462
|
-
NumberFormatPipe.ɵprov =
|
|
2439
|
+
NumberFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
|
|
2463
2440
|
NumberFormatPipe.decorators = [
|
|
2464
2441
|
{ type: i0.Pipe, args: [{
|
|
2465
2442
|
name: 'numberFormat'
|
|
@@ -2502,7 +2479,7 @@
|
|
|
2502
2479
|
};
|
|
2503
2480
|
return HighlightPipe;
|
|
2504
2481
|
}());
|
|
2505
|
-
HighlightPipe.ɵprov =
|
|
2482
|
+
HighlightPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
|
|
2506
2483
|
HighlightPipe.decorators = [
|
|
2507
2484
|
{ type: i0.Pipe, args: [{
|
|
2508
2485
|
name: 'highlight'
|
|
@@ -2570,7 +2547,7 @@
|
|
|
2570
2547
|
{ type: i0.Pipe, args: [{ name: 'fileSize' },] }
|
|
2571
2548
|
];
|
|
2572
2549
|
|
|
2573
|
-
var moment$
|
|
2550
|
+
var moment$1 = momentImported__namespace;
|
|
2574
2551
|
var DATE_UNIX_TIMESTAMP = 'X';
|
|
2575
2552
|
var DATE_UNIX_MS_TIMESTAMP = 'x';
|
|
2576
2553
|
var DateUtils = /** @class */ (function () {
|
|
@@ -2613,32 +2590,32 @@
|
|
|
2613
2590
|
if (!value || momentImported.isMoment(value))
|
|
2614
2591
|
return value;
|
|
2615
2592
|
// Parse the input value, as a ISO date time
|
|
2616
|
-
var date = moment$
|
|
2593
|
+
var date = moment$1(value, DATE_ISO_PATTERN);
|
|
2617
2594
|
if (date.isValid())
|
|
2618
2595
|
return date;
|
|
2619
2596
|
// Not valid: trying to convert from unix timestamp
|
|
2620
2597
|
if (typeof value === 'string') {
|
|
2621
2598
|
console.warn('Wrong date format - Trying to convert from local time: ' + value);
|
|
2622
2599
|
if (value.length === 10) {
|
|
2623
|
-
return moment$
|
|
2600
|
+
return moment$1(value, DATE_UNIX_TIMESTAMP);
|
|
2624
2601
|
}
|
|
2625
2602
|
else if (value.length === 13) {
|
|
2626
|
-
return moment$
|
|
2603
|
+
return moment$1(value, DATE_UNIX_MS_TIMESTAMP);
|
|
2627
2604
|
}
|
|
2628
2605
|
}
|
|
2629
2606
|
console.warn('Unable to parse date: ' + value);
|
|
2630
2607
|
return undefined;
|
|
2631
2608
|
}
|
|
2632
2609
|
function fromUnixTimestamp(timeInSec) {
|
|
2633
|
-
return moment$
|
|
2610
|
+
return moment$1(timeInSec, DATE_UNIX_TIMESTAMP);
|
|
2634
2611
|
}
|
|
2635
2612
|
function fromUnixMsTimestamp(timeInMs) {
|
|
2636
|
-
return moment$
|
|
2613
|
+
return moment$1(timeInMs, DATE_UNIX_MS_TIMESTAMP);
|
|
2637
2614
|
}
|
|
2638
2615
|
function toDuration(value, unit) {
|
|
2639
2616
|
if (!value)
|
|
2640
2617
|
return undefined;
|
|
2641
|
-
var duration = moment$
|
|
2618
|
+
var duration = moment$1.duration(value, unit);
|
|
2642
2619
|
// fix 990+ ms
|
|
2643
2620
|
if (duration.milliseconds() >= 990) {
|
|
2644
2621
|
duration.add(1000 - duration.milliseconds(), 'ms');
|
|
@@ -2668,7 +2645,7 @@
|
|
|
2668
2645
|
};
|
|
2669
2646
|
return DurationPipe;
|
|
2670
2647
|
}());
|
|
2671
|
-
DurationPipe.ɵprov =
|
|
2648
|
+
DurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0.ɵɵinject(i1$2.TranslateService)); }, token: DurationPipe, providedIn: "root" });
|
|
2672
2649
|
DurationPipe.decorators = [
|
|
2673
2650
|
{ type: i0.Pipe, args: [{
|
|
2674
2651
|
name: 'duration'
|
|
@@ -2692,7 +2669,7 @@
|
|
|
2692
2669
|
};
|
|
2693
2670
|
return MathAbsPipe;
|
|
2694
2671
|
}());
|
|
2695
|
-
MathAbsPipe.ɵprov =
|
|
2672
|
+
MathAbsPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
|
|
2696
2673
|
MathAbsPipe.decorators = [
|
|
2697
2674
|
{ type: i0.Pipe, args: [{
|
|
2698
2675
|
name: 'mathAbs'
|
|
@@ -2707,7 +2684,7 @@
|
|
|
2707
2684
|
};
|
|
2708
2685
|
return EvenPipe;
|
|
2709
2686
|
}());
|
|
2710
|
-
EvenPipe.ɵprov =
|
|
2687
|
+
EvenPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
|
|
2711
2688
|
EvenPipe.decorators = [
|
|
2712
2689
|
{ type: i0.Pipe, args: [{
|
|
2713
2690
|
name: 'even'
|
|
@@ -2722,7 +2699,7 @@
|
|
|
2722
2699
|
};
|
|
2723
2700
|
return OddPipe;
|
|
2724
2701
|
}());
|
|
2725
|
-
OddPipe.ɵprov =
|
|
2702
|
+
OddPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
|
|
2726
2703
|
OddPipe.decorators = [
|
|
2727
2704
|
{ type: i0.Pipe, args: [{
|
|
2728
2705
|
name: 'odd'
|
|
@@ -2854,7 +2831,7 @@
|
|
|
2854
2831
|
};
|
|
2855
2832
|
return MapGetPipe;
|
|
2856
2833
|
}());
|
|
2857
|
-
MapGetPipe.ɵprov =
|
|
2834
|
+
MapGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
|
|
2858
2835
|
MapGetPipe.decorators = [
|
|
2859
2836
|
{ type: i0.Pipe, args: [{
|
|
2860
2837
|
name: 'mapGet'
|
|
@@ -2871,7 +2848,7 @@
|
|
|
2871
2848
|
};
|
|
2872
2849
|
return MapKeysPipe;
|
|
2873
2850
|
}());
|
|
2874
|
-
MapKeysPipe.ɵprov =
|
|
2851
|
+
MapKeysPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
|
|
2875
2852
|
MapKeysPipe.decorators = [
|
|
2876
2853
|
{ type: i0.Pipe, args: [{
|
|
2877
2854
|
name: 'mapKeys'
|
|
@@ -2888,7 +2865,7 @@
|
|
|
2888
2865
|
};
|
|
2889
2866
|
return MapValuesPipe;
|
|
2890
2867
|
}());
|
|
2891
|
-
MapValuesPipe.ɵprov =
|
|
2868
|
+
MapValuesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
|
|
2892
2869
|
MapValuesPipe.decorators = [
|
|
2893
2870
|
{ type: i0.Pipe, args: [{
|
|
2894
2871
|
name: 'mapValues'
|
|
@@ -2904,7 +2881,7 @@
|
|
|
2904
2881
|
};
|
|
2905
2882
|
return IsNotNilOrBlankPipe;
|
|
2906
2883
|
}());
|
|
2907
|
-
IsNotNilOrBlankPipe.ɵprov =
|
|
2884
|
+
IsNotNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
|
|
2908
2885
|
IsNotNilOrBlankPipe.decorators = [
|
|
2909
2886
|
{ type: i0.Pipe, args: [{
|
|
2910
2887
|
name: 'isNotNilOrBlank'
|
|
@@ -2919,7 +2896,7 @@
|
|
|
2919
2896
|
};
|
|
2920
2897
|
return IsNilOrBlankPipe;
|
|
2921
2898
|
}());
|
|
2922
|
-
IsNilOrBlankPipe.ɵprov =
|
|
2899
|
+
IsNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
|
|
2923
2900
|
IsNilOrBlankPipe.decorators = [
|
|
2924
2901
|
{ type: i0.Pipe, args: [{
|
|
2925
2902
|
name: 'isNilOrBlank'
|
|
@@ -2934,7 +2911,7 @@
|
|
|
2934
2911
|
};
|
|
2935
2912
|
return ToStringPipe;
|
|
2936
2913
|
}());
|
|
2937
|
-
ToStringPipe.ɵprov =
|
|
2914
|
+
ToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
|
|
2938
2915
|
ToStringPipe.decorators = [
|
|
2939
2916
|
{ type: i0.Pipe, args: [{
|
|
2940
2917
|
name: 'toString'
|
|
@@ -2949,7 +2926,7 @@
|
|
|
2949
2926
|
};
|
|
2950
2927
|
return StrLengthPipe;
|
|
2951
2928
|
}());
|
|
2952
|
-
StrLengthPipe.ɵprov =
|
|
2929
|
+
StrLengthPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
|
|
2953
2930
|
StrLengthPipe.decorators = [
|
|
2954
2931
|
{ type: i0.Pipe, args: [{
|
|
2955
2932
|
name: 'strLength'
|
|
@@ -3040,7 +3017,7 @@
|
|
|
3040
3017
|
};
|
|
3041
3018
|
return TranslateContextService;
|
|
3042
3019
|
}());
|
|
3043
|
-
TranslateContextService.ɵprov =
|
|
3020
|
+
TranslateContextService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0.ɵɵinject(i1$2.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
|
|
3044
3021
|
TranslateContextService.decorators = [
|
|
3045
3022
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
3046
3023
|
];
|
|
@@ -3097,7 +3074,7 @@
|
|
|
3097
3074
|
};
|
|
3098
3075
|
return PropertyGetPipe;
|
|
3099
3076
|
}());
|
|
3100
|
-
PropertyGetPipe.ɵprov =
|
|
3077
|
+
PropertyGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
|
|
3101
3078
|
PropertyGetPipe.decorators = [
|
|
3102
3079
|
{ type: i0.Pipe, args: [{
|
|
3103
3080
|
name: 'propertyGet'
|
|
@@ -3123,7 +3100,7 @@
|
|
|
3123
3100
|
ngInit: [{ type: i0.Output }]
|
|
3124
3101
|
};
|
|
3125
3102
|
|
|
3126
|
-
var moment$
|
|
3103
|
+
var moment$2 = momentImported__namespace;
|
|
3127
3104
|
// @dynamic
|
|
3128
3105
|
var SharedValidators = /** @class */ (function () {
|
|
3129
3106
|
function SharedValidators() {
|
|
@@ -3142,7 +3119,7 @@
|
|
|
3142
3119
|
};
|
|
3143
3120
|
SharedValidators.validDate = function (control) {
|
|
3144
3121
|
var value = control.value;
|
|
3145
|
-
var date = !value || moment$
|
|
3122
|
+
var date = !value || moment$2.isMoment(value) ? value : moment$2(control.value, DATE_ISO_PATTERN);
|
|
3146
3123
|
if (date && (!date.isValid() || date.year() < 1970)) {
|
|
3147
3124
|
return { validDate: true };
|
|
3148
3125
|
}
|
|
@@ -4308,7 +4285,7 @@
|
|
|
4308
4285
|
};
|
|
4309
4286
|
return FormErrorTranslator;
|
|
4310
4287
|
}());
|
|
4311
|
-
FormErrorTranslator.ɵprov =
|
|
4288
|
+
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" });
|
|
4312
4289
|
FormErrorTranslator.decorators = [
|
|
4313
4290
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
4314
4291
|
];
|
|
@@ -4679,9 +4656,9 @@
|
|
|
4679
4656
|
var hour = parseInt(durationParts[0] || '0');
|
|
4680
4657
|
var minute = parseInt(durationParts[1] || '0');
|
|
4681
4658
|
var value = hour + (minute + 0.5) / 60;
|
|
4682
|
-
return roundFloat(value, maxDecimals);
|
|
4659
|
+
return roundFloat$1(value, maxDecimals);
|
|
4683
4660
|
}
|
|
4684
|
-
function roundFloat(input, maxDecimals) {
|
|
4661
|
+
function roundFloat$1(input, maxDecimals) {
|
|
4685
4662
|
if (maxDecimals > 0) {
|
|
4686
4663
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
4687
4664
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -4705,9 +4682,9 @@
|
|
|
4705
4682
|
DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
|
|
4706
4683
|
}
|
|
4707
4684
|
};
|
|
4708
|
-
var noop$
|
|
4685
|
+
var noop$1 = function () {
|
|
4709
4686
|
};
|
|
4710
|
-
var ɵ0$
|
|
4687
|
+
var ɵ0$1 = noop$1;
|
|
4711
4688
|
var MatLatLongField = /** @class */ (function () {
|
|
4712
4689
|
function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
|
|
4713
4690
|
this.platform = platform;
|
|
@@ -4715,8 +4692,8 @@
|
|
|
4715
4692
|
this.formBuilder = formBuilder;
|
|
4716
4693
|
this.cd = cd;
|
|
4717
4694
|
this.formGroupDir = formGroupDir;
|
|
4718
|
-
this._onChangeCallback = noop$
|
|
4719
|
-
this._onTouchedCallback = noop$
|
|
4695
|
+
this._onChangeCallback = noop$1;
|
|
4696
|
+
this._onTouchedCallback = noop$1;
|
|
4720
4697
|
this._subscription = new rxjs.Subscription();
|
|
4721
4698
|
this.disabling = false;
|
|
4722
4699
|
this.writing = false;
|
|
@@ -5068,14 +5045,14 @@
|
|
|
5068
5045
|
},] }
|
|
5069
5046
|
];
|
|
5070
5047
|
|
|
5071
|
-
var DEFAULT_VALUE_ACCESSOR
|
|
5048
|
+
var DEFAULT_VALUE_ACCESSOR = {
|
|
5072
5049
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5073
5050
|
useExisting: i0.forwardRef(function () { return MatDate; }),
|
|
5074
5051
|
multi: true
|
|
5075
5052
|
};
|
|
5076
|
-
var DAY_MASK
|
|
5077
|
-
var noop$
|
|
5078
|
-
var ɵ0$
|
|
5053
|
+
var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5054
|
+
var noop$2 = function () { };
|
|
5055
|
+
var ɵ0$2 = noop$2;
|
|
5079
5056
|
var MatDate = /** @class */ (function () {
|
|
5080
5057
|
function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5081
5058
|
this.dateAdapter = dateAdapter;
|
|
@@ -5084,12 +5061,12 @@
|
|
|
5084
5061
|
this.cd = cd;
|
|
5085
5062
|
this.keyboard = keyboard;
|
|
5086
5063
|
this.formGroupDir = formGroupDir;
|
|
5087
|
-
this._onChangeCallback = noop$
|
|
5088
|
-
this._onTouchedCallback = noop$
|
|
5064
|
+
this._onChangeCallback = noop$2;
|
|
5065
|
+
this._onTouchedCallback = noop$2;
|
|
5089
5066
|
this._subscription = new rxjs.Subscription();
|
|
5090
5067
|
this.writing = true;
|
|
5091
5068
|
this.disabling = false;
|
|
5092
|
-
this.dayMask = DAY_MASK
|
|
5069
|
+
this.dayMask = DAY_MASK;
|
|
5093
5070
|
this.disabled = false;
|
|
5094
5071
|
this.floatLabel = 'auto';
|
|
5095
5072
|
this.readonly = false;
|
|
@@ -5358,7 +5335,7 @@
|
|
|
5358
5335
|
selector: 'mat-date-field',
|
|
5359
5336
|
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",
|
|
5360
5337
|
providers: [
|
|
5361
|
-
DEFAULT_VALUE_ACCESSOR
|
|
5338
|
+
DEFAULT_VALUE_ACCESSOR,
|
|
5362
5339
|
],
|
|
5363
5340
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5364
5341
|
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%}"]
|
|
@@ -5391,17 +5368,17 @@
|
|
|
5391
5368
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
5392
5369
|
};
|
|
5393
5370
|
|
|
5394
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5371
|
+
var DEFAULT_VALUE_ACCESSOR$1 = {
|
|
5395
5372
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5396
5373
|
useExisting: i0.forwardRef(function () { return MatDateTime; }),
|
|
5397
5374
|
multi: true
|
|
5398
5375
|
};
|
|
5399
5376
|
var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5400
5377
|
var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
|
|
5401
|
-
var HOUR_MASK
|
|
5402
|
-
var noop$
|
|
5378
|
+
var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
5379
|
+
var noop$3 = function () {
|
|
5403
5380
|
};
|
|
5404
|
-
var ɵ0$
|
|
5381
|
+
var ɵ0$3 = noop$3;
|
|
5405
5382
|
var MatDateTime = /** @class */ (function () {
|
|
5406
5383
|
function MatDateTime(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5407
5384
|
this.platform = platform;
|
|
@@ -5411,14 +5388,14 @@
|
|
|
5411
5388
|
this.cd = cd;
|
|
5412
5389
|
this.keyboard = keyboard;
|
|
5413
5390
|
this.formGroupDir = formGroupDir;
|
|
5414
|
-
this._onChangeCallback = noop$
|
|
5415
|
-
this._onTouchedCallback = noop$
|
|
5391
|
+
this._onChangeCallback = noop$3;
|
|
5392
|
+
this._onTouchedCallback = noop$3;
|
|
5416
5393
|
this._subscription = new rxjs.Subscription();
|
|
5417
5394
|
this.writing = true;
|
|
5418
5395
|
this.disabling = false;
|
|
5419
5396
|
this._readonly = false;
|
|
5420
5397
|
this.dayMask = DAY_MASK$1;
|
|
5421
|
-
this.hourMask = HOUR_MASK
|
|
5398
|
+
this.hourMask = HOUR_MASK;
|
|
5422
5399
|
this.floatLabel = 'auto';
|
|
5423
5400
|
this.compact = false;
|
|
5424
5401
|
this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
|
|
@@ -5775,7 +5752,7 @@
|
|
|
5775
5752
|
selector: 'mat-date-time-field',
|
|
5776
5753
|
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",
|
|
5777
5754
|
providers: [
|
|
5778
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5755
|
+
DEFAULT_VALUE_ACCESSOR$1,
|
|
5779
5756
|
],
|
|
5780
5757
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5781
5758
|
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%}"]
|
|
@@ -5809,15 +5786,15 @@
|
|
|
5809
5786
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
5810
5787
|
};
|
|
5811
5788
|
|
|
5812
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5789
|
+
var DEFAULT_VALUE_ACCESSOR$2 = {
|
|
5813
5790
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5814
5791
|
useExisting: i0.forwardRef(function () { return MatDateShort; }),
|
|
5815
5792
|
multi: true
|
|
5816
5793
|
};
|
|
5817
|
-
var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
|
|
5794
|
+
var DAY_MASK$2 = [/\d/, /\d/, /\d/, /\d/];
|
|
5818
5795
|
var noop$4 = function () {
|
|
5819
5796
|
};
|
|
5820
|
-
var ɵ0$
|
|
5797
|
+
var ɵ0$4 = noop$4;
|
|
5821
5798
|
var MatDateShort = /** @class */ (function () {
|
|
5822
5799
|
function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5823
5800
|
this.dateAdapter = dateAdapter;
|
|
@@ -5830,7 +5807,7 @@
|
|
|
5830
5807
|
this._onTouchedCallback = noop$4;
|
|
5831
5808
|
this.writing = true;
|
|
5832
5809
|
this.disabling = false;
|
|
5833
|
-
this.dayMask = DAY_MASK;
|
|
5810
|
+
this.dayMask = DAY_MASK$2;
|
|
5834
5811
|
this.disabled = false;
|
|
5835
5812
|
this.floatLabel = 'auto';
|
|
5836
5813
|
this.readonly = false;
|
|
@@ -6107,7 +6084,7 @@
|
|
|
6107
6084
|
selector: 'mat-date-short-field',
|
|
6108
6085
|
template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly else writable\">\n <input matInput hidden type=\"text\" readonly=\"true\" [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix><ng-content select=\"[matPrefix]\"></ng-content></div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dayControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_YEAR_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker1)\"\n (keyup.escape)=\"preventEvent($event)\"\n (click)=\"matInput.select()\"\n [required]=\"required\"\n [tabindex]=\"tabindex\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dayControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker1)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n\n <!-- Hide the final control -->\n <input matInput type=\"text\"\n [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker1\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n (click)=\"openDatePicker($event, datePicker1)\"\n [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"writeValue(null)\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('validDate')\" translate>ERROR.FIELD_NOT_VALID_DATE</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateIsAfter')\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateRange')\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMaxDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMinDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngIf=\"formControl.hasError('msg')\">{{formControl.errors.msg}}</mat-error>\n <ng-content select=\"mat-error\"></ng-content>\n </mat-form-field>\n\n <mat-datepicker #datePicker1\n startView=\"multi-year\"\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n (yearSelected)=\"closeDatePicker($event, datePicker1)\"\n [startAt]=\"startDate\"></mat-datepicker>\n\n <ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n </ng-template>\n\n <ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n </ng-template>\n\n</ng-template>\n",
|
|
6109
6086
|
providers: [
|
|
6110
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6087
|
+
DEFAULT_VALUE_ACCESSOR$2,
|
|
6111
6088
|
],
|
|
6112
6089
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6113
6090
|
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%}"]
|
|
@@ -6178,16 +6155,16 @@
|
|
|
6178
6155
|
},] }
|
|
6179
6156
|
];
|
|
6180
6157
|
|
|
6181
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6158
|
+
var DEFAULT_VALUE_ACCESSOR$3 = {
|
|
6182
6159
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6183
6160
|
useExisting: i0.forwardRef(function () { return MatDuration; }),
|
|
6184
6161
|
multi: true
|
|
6185
6162
|
};
|
|
6186
6163
|
var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
|
|
6187
|
-
var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
6188
|
-
var noop$
|
|
6164
|
+
var HOUR_MASK$1 = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
6165
|
+
var noop$5 = function () {
|
|
6189
6166
|
};
|
|
6190
|
-
var ɵ0$
|
|
6167
|
+
var ɵ0$5 = noop$5;
|
|
6191
6168
|
var MatDuration = /** @class */ (function () {
|
|
6192
6169
|
function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
|
|
6193
6170
|
this.dateAdapter = dateAdapter;
|
|
@@ -6196,11 +6173,11 @@
|
|
|
6196
6173
|
this.cd = cd;
|
|
6197
6174
|
this.formGroupDir = formGroupDir;
|
|
6198
6175
|
this._subscription = new rxjs.Subscription();
|
|
6199
|
-
this._onChangeCallback = noop$
|
|
6200
|
-
this._onTouchedCallback = noop$
|
|
6176
|
+
this._onChangeCallback = noop$5;
|
|
6177
|
+
this._onTouchedCallback = noop$5;
|
|
6201
6178
|
this.writing = true;
|
|
6202
6179
|
this.disabling = false;
|
|
6203
|
-
this.hourMask = HOUR_MASK;
|
|
6180
|
+
this.hourMask = HOUR_MASK$1;
|
|
6204
6181
|
this.disabled = false;
|
|
6205
6182
|
this.floatLabel = 'auto';
|
|
6206
6183
|
this.readonly = false;
|
|
@@ -6393,7 +6370,7 @@
|
|
|
6393
6370
|
selector: 'mat-duration-field',
|
|
6394
6371
|
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",
|
|
6395
6372
|
providers: [
|
|
6396
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6373
|
+
DEFAULT_VALUE_ACCESSOR$3,
|
|
6397
6374
|
],
|
|
6398
6375
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6399
6376
|
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%}"]
|
|
@@ -6453,22 +6430,22 @@
|
|
|
6453
6430
|
},] }
|
|
6454
6431
|
];
|
|
6455
6432
|
|
|
6456
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6433
|
+
var DEFAULT_VALUE_ACCESSOR$4 = {
|
|
6457
6434
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6458
6435
|
useExisting: i0.forwardRef(function () { return MatBooleanField; }),
|
|
6459
6436
|
multi: true
|
|
6460
6437
|
};
|
|
6461
|
-
var noop$
|
|
6438
|
+
var noop$6 = function () {
|
|
6462
6439
|
};
|
|
6463
|
-
var ɵ0$
|
|
6440
|
+
var ɵ0$6 = noop$6;
|
|
6464
6441
|
var MatBooleanField = /** @class */ (function () {
|
|
6465
6442
|
function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
|
|
6466
6443
|
this.translate = translate;
|
|
6467
6444
|
this.formBuilder = formBuilder;
|
|
6468
6445
|
this.cd = cd;
|
|
6469
6446
|
this.formGroupDir = formGroupDir;
|
|
6470
|
-
this._onChangeCallback = noop$
|
|
6471
|
-
this._onTouchedCallback = noop$
|
|
6447
|
+
this._onChangeCallback = noop$6;
|
|
6448
|
+
this._onTouchedCallback = noop$6;
|
|
6472
6449
|
this._writing = false;
|
|
6473
6450
|
this.showRadio = false;
|
|
6474
6451
|
this.disabled = false;
|
|
@@ -6643,7 +6620,7 @@
|
|
|
6643
6620
|
selector: 'mat-boolean-field',
|
|
6644
6621
|
template: "<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled {{classList}}\">\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput hidden type=\"text\" readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{(formControl.value == null && 'COMMON.EMPTY_OPTION' || (formControl.value === true && yesLabel) || noLabel) | translate }}</ion-text>\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n</mat-form-field>\n\n<ng-template #writable>\n <ng-container [ngSwitch]=\"style\">\n\n <!-- Radio -->\n <mat-form-field *ngSwitchCase=\"'radio'\"\n [floatLabel]=\"showRadio && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-radio {{classList}}\">\n <mat-label *ngIf=\"placeholder && floatLabel!=='never'\">\n {{placeholder}}\n <span [hidden]=\"showRadio\">({{yesLabel|translate}}/{{'COMMON.NO'|translate}})</span>\n </mat-label>\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput #fakeInput type=\"text\" readonly=\"true\"\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <!-- radio button -->\n <mat-radio-group [hidden]=\"!showRadio\"\n [formControl]=\"formControl\"\n (change)=\"onRadioValueChanged($event)\">\n <mat-radio-button #yesButton [value]=\"true\">\n <span>{{yesLabel|translate}}</span>\n </mat-radio-button> \n <mat-radio-button #noButton [value]=\"false\">\n <span>{{noLabel|translate}}</span>\n </mat-radio-button>\n </mat-radio-group>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n </mat-form-field>\n\n <!-- Checkbox -->\n <mat-form-field *ngSwitchCase=\"'checkbox'\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-checkbox {{classList}}\">\n <mat-label *ngIf=\"placeholder && !showRadio\">\n {{placeholder}}\n </mat-label>\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput #matInput\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <ion-label> </ion-label>\n\n <!-- checkbox, when compact -->\n <mat-checkbox #checkboxButton\n [formControl]=\"formControl\"\n (change)=\"onCheckboxValueChanged($event)\"\n [indeterminate]=\"value===undefined\"\n [hidden]=\"!showRadio\"\n [tabindex]=\"tabindex\">\n </mat-checkbox>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n </mat-form-field>\n\n <!-- Buttons -->\n <mat-form-field *ngSwitchCase=\"'button'\"\n [floatLabel]=\"floatLabel === 'never' ? 'never' : 'always'\"\n class=\"mat-boolean-field mat-boolean-field-button {{classList}}\">\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput type=\"text\" hidden\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [required]=\"required\">\n <div class=\"mat-form-field-buttons\"\n [style.--buttons-col-count]=\"buttonsColCount\"\n *ngIf=\"!formControl.disabled; else disabledLabel\">\n <!-- yes -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex\"\n (click)=\"writeValue(true, $event)\"\n (keyup.enter)=\"writeValue(true, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === true) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && yesIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{yesLabel|translate}}\n </ion-button>\n\n <!-- No button -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex !== undefined ? (_tabindex + 1) : undefined\"\n (click)=\"writeValue(false, $event)\"\n (keyup.enter)=\"writeValue(false, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === false) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && noIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{noLabel|translate}}\n </ion-button>\n </div>\n <ng-template #disabledLabel>\n <ion-label><i translate>COMMON.EMPTY_OPTION</i></ion-label>\n </ng-template>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n\n </mat-form-field>\n </ng-container>\n\n</ng-template>\n\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n<ng-template #matSuffixTemplate>\n <ng-content select=\"[matSuffix]\"></ng-content>\n</ng-template>\n",
|
|
6645
6622
|
providers: [
|
|
6646
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6623
|
+
DEFAULT_VALUE_ACCESSOR$4
|
|
6647
6624
|
],
|
|
6648
6625
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6649
6626
|
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}"]
|
|
@@ -6730,7 +6707,6 @@
|
|
|
6730
6707
|
return MatNumpadEvent;
|
|
6731
6708
|
}(KeyboardEvent));
|
|
6732
6709
|
|
|
6733
|
-
exports.AnimationState = void 0;
|
|
6734
6710
|
(function (AnimationState) {
|
|
6735
6711
|
AnimationState["ENTER"] = "enter";
|
|
6736
6712
|
AnimationState["ENTER_INPUT"] = "enter-input";
|
|
@@ -6898,7 +6874,7 @@
|
|
|
6898
6874
|
};
|
|
6899
6875
|
return MatNumpadDomService;
|
|
6900
6876
|
}());
|
|
6901
|
-
MatNumpadDomService.ɵprov =
|
|
6877
|
+
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" });
|
|
6902
6878
|
MatNumpadDomService.decorators = [
|
|
6903
6879
|
{ type: i0.Injectable, args: [{
|
|
6904
6880
|
providedIn: 'root'
|
|
@@ -7304,7 +7280,7 @@
|
|
|
7304
7280
|
},] }
|
|
7305
7281
|
];
|
|
7306
7282
|
|
|
7307
|
-
var DEFAULT_VALUE_ACCESSOR = {
|
|
7283
|
+
var DEFAULT_VALUE_ACCESSOR$5 = {
|
|
7308
7284
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
7309
7285
|
useExisting: i0.forwardRef(function () { return MatSwipeField; }),
|
|
7310
7286
|
multi: true
|
|
@@ -7624,7 +7600,7 @@
|
|
|
7624
7600
|
{ type: i0.Component, args: [{
|
|
7625
7601
|
selector: 'mat-swipe-field',
|
|
7626
7602
|
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",
|
|
7627
|
-
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
7603
|
+
providers: [DEFAULT_VALUE_ACCESSOR$5],
|
|
7628
7604
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7629
7605
|
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}"]
|
|
7630
7606
|
},] }
|
|
@@ -7685,14 +7661,14 @@
|
|
|
7685
7661
|
},] }
|
|
7686
7662
|
];
|
|
7687
7663
|
|
|
7688
|
-
var noop$
|
|
7689
|
-
var ɵ0$
|
|
7664
|
+
var noop$7 = function () { };
|
|
7665
|
+
var ɵ0$7 = noop$7;
|
|
7690
7666
|
var MatChipsField = /** @class */ (function () {
|
|
7691
7667
|
function MatChipsField(cd, formGroupDir) {
|
|
7692
7668
|
this.cd = cd;
|
|
7693
7669
|
this.formGroupDir = formGroupDir;
|
|
7694
|
-
this._onChangeCallback = noop$
|
|
7695
|
-
this._onTouchedCallback = noop$
|
|
7670
|
+
this._onChangeCallback = noop$7;
|
|
7671
|
+
this._onTouchedCallback = noop$7;
|
|
7696
7672
|
this.logPrefix = '[mat-chips] ';
|
|
7697
7673
|
this.formControlName = null;
|
|
7698
7674
|
this.required = false;
|
|
@@ -8660,7 +8636,7 @@
|
|
|
8660
8636
|
};
|
|
8661
8637
|
return ProgressBarService;
|
|
8662
8638
|
}());
|
|
8663
|
-
ProgressBarService.ɵprov =
|
|
8639
|
+
ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
|
|
8664
8640
|
ProgressBarService.decorators = [
|
|
8665
8641
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8666
8642
|
];
|
|
@@ -8707,7 +8683,7 @@
|
|
|
8707
8683
|
};
|
|
8708
8684
|
return AppGestureConfig;
|
|
8709
8685
|
}(i1$6.HammerGestureConfig));
|
|
8710
|
-
AppGestureConfig.ɵprov =
|
|
8686
|
+
AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
|
|
8711
8687
|
AppGestureConfig.decorators = [
|
|
8712
8688
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8713
8689
|
];
|
|
@@ -8974,7 +8950,7 @@
|
|
|
8974
8950
|
};
|
|
8975
8951
|
return MatPaginatorI18n;
|
|
8976
8952
|
}(paginator.MatPaginatorIntl));
|
|
8977
|
-
MatPaginatorI18n.ɵprov =
|
|
8953
|
+
MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
|
|
8978
8954
|
MatPaginatorI18n.decorators = [
|
|
8979
8955
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8980
8956
|
];
|
|
@@ -9066,17 +9042,17 @@
|
|
|
9066
9042
|
return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
|
|
9067
9043
|
}
|
|
9068
9044
|
|
|
9069
|
-
var noop = function () {
|
|
9045
|
+
var noop$8 = function () {
|
|
9070
9046
|
};
|
|
9071
|
-
var ɵ0$
|
|
9047
|
+
var ɵ0$8 = noop$8;
|
|
9072
9048
|
var AppFormField = /** @class */ (function () {
|
|
9073
9049
|
function AppFormField(translate, cd, injector, formGroupDir) {
|
|
9074
9050
|
this.translate = translate;
|
|
9075
9051
|
this.cd = cd;
|
|
9076
9052
|
this.injector = injector;
|
|
9077
9053
|
this.formGroupDir = formGroupDir;
|
|
9078
|
-
this._onChangeCallback = noop;
|
|
9079
|
-
this._onTouchedCallback = noop;
|
|
9054
|
+
this._onChangeCallback = noop$8;
|
|
9055
|
+
this._onTouchedCallback = noop$8;
|
|
9080
9056
|
this.readonly = false;
|
|
9081
9057
|
this.compact = false;
|
|
9082
9058
|
this.floatLabel = 'auto';
|
|
@@ -9631,7 +9607,7 @@
|
|
|
9631
9607
|
};
|
|
9632
9608
|
return AudioProvider;
|
|
9633
9609
|
}(StartableService));
|
|
9634
|
-
AudioProvider.ɵprov =
|
|
9610
|
+
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" });
|
|
9635
9611
|
AudioProvider.decorators = [
|
|
9636
9612
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9637
9613
|
];
|
|
@@ -9731,7 +9707,7 @@
|
|
|
9731
9707
|
};
|
|
9732
9708
|
return Hotkeys;
|
|
9733
9709
|
}());
|
|
9734
|
-
Hotkeys.ɵprov =
|
|
9710
|
+
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" });
|
|
9735
9711
|
Hotkeys.decorators = [
|
|
9736
9712
|
{ type: i0.Injectable, args: [{
|
|
9737
9713
|
providedIn: 'root'
|
|
@@ -9935,7 +9911,7 @@
|
|
|
9935
9911
|
return Base64ImageReader;
|
|
9936
9912
|
}());
|
|
9937
9913
|
|
|
9938
|
-
var uuidv4
|
|
9914
|
+
var uuidv4 = uuidv4Imported__namespace;
|
|
9939
9915
|
var FileService = /** @class */ (function () {
|
|
9940
9916
|
function FileService(platform,
|
|
9941
9917
|
//private transfer: FileTransfer,
|
|
@@ -9981,7 +9957,7 @@
|
|
|
9981
9957
|
lastSlashIndex = source.lastIndexOf('/');
|
|
9982
9958
|
if (lastSlashIndex === -1)
|
|
9983
9959
|
throw new Error('Invalid URL: ' + source);
|
|
9984
|
-
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4
|
|
9960
|
+
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
|
|
9985
9961
|
if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
|
|
9986
9962
|
console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
|
|
9987
9963
|
targetFilePath = this._imageDirectory + fileName;
|
|
@@ -10044,7 +10020,7 @@
|
|
|
10044
10020
|
};
|
|
10045
10021
|
return FileService;
|
|
10046
10022
|
}());
|
|
10047
|
-
FileService.ɵprov =
|
|
10023
|
+
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" });
|
|
10048
10024
|
FileService.decorators = [
|
|
10049
10025
|
{ type: i0.Injectable, args: [{
|
|
10050
10026
|
providedIn: 'root',
|
|
@@ -10211,7 +10187,7 @@
|
|
|
10211
10187
|
Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
10212
10188
|
|
|
10213
10189
|
var scrypt = require('scrypt-async');
|
|
10214
|
-
var sha256
|
|
10190
|
+
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
10215
10191
|
var sha512 = require('hash.js/lib/hash/sha/512');
|
|
10216
10192
|
var nacl = {
|
|
10217
10193
|
sign: tweetnacl.sign,
|
|
@@ -10317,7 +10293,7 @@
|
|
|
10317
10293
|
* Hash (using SHA256) a message
|
|
10318
10294
|
*/
|
|
10319
10295
|
CryptoService.prototype.sha256 = function (message) {
|
|
10320
|
-
return sha256
|
|
10296
|
+
return sha256().update(message).digest('hex');
|
|
10321
10297
|
};
|
|
10322
10298
|
/**
|
|
10323
10299
|
* Hash (using SHA512) a message
|
|
@@ -10331,7 +10307,7 @@
|
|
|
10331
10307
|
};
|
|
10332
10308
|
return CryptoService;
|
|
10333
10309
|
}());
|
|
10334
|
-
CryptoService.ɵprov =
|
|
10310
|
+
CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
|
|
10335
10311
|
CryptoService.decorators = [
|
|
10336
10312
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
10337
10313
|
];
|
|
@@ -11760,7 +11736,7 @@
|
|
|
11760
11736
|
};
|
|
11761
11737
|
return LocalSettingsService;
|
|
11762
11738
|
}(StartableService));
|
|
11763
|
-
LocalSettingsService.ɵprov =
|
|
11739
|
+
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" });
|
|
11764
11740
|
LocalSettingsService.decorators = [
|
|
11765
11741
|
{ type: i0.Injectable, args: [{
|
|
11766
11742
|
providedIn: 'root',
|
|
@@ -12563,7 +12539,7 @@
|
|
|
12563
12539
|
};
|
|
12564
12540
|
return NetworkService;
|
|
12565
12541
|
}(StartableService));
|
|
12566
|
-
NetworkService.ɵprov =
|
|
12542
|
+
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" });
|
|
12567
12543
|
NetworkService.decorators = [
|
|
12568
12544
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
12569
12545
|
];
|
|
@@ -12583,7 +12559,7 @@
|
|
|
12583
12559
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
|
|
12584
12560
|
]; };
|
|
12585
12561
|
|
|
12586
|
-
var ErrorCodes
|
|
12562
|
+
var ErrorCodes = {
|
|
12587
12563
|
UNKNOWN_ERROR: 0,
|
|
12588
12564
|
LOAD_ACCOUNT_ERROR: 1,
|
|
12589
12565
|
BAD_PASSWORD: 2,
|
|
@@ -13000,7 +12976,7 @@
|
|
|
13000
12976
|
case 13:
|
|
13001
12977
|
err_1 = _b.sent();
|
|
13002
12978
|
console.error(err_1);
|
|
13003
|
-
throw { code: ErrorCodes
|
|
12979
|
+
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
13004
12980
|
case 14:
|
|
13005
12981
|
// Emit update event
|
|
13006
12982
|
if (!opts || opts.emitEvent !== false) {
|
|
@@ -13777,7 +13753,7 @@
|
|
|
13777
13753
|
}(StartableService));
|
|
13778
13754
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
13779
13755
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
13780
|
-
EntitiesStorage.ɵprov =
|
|
13756
|
+
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" });
|
|
13781
13757
|
EntitiesStorage.decorators = [
|
|
13782
13758
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
13783
13759
|
];
|
|
@@ -13933,10 +13909,10 @@
|
|
|
13933
13909
|
function referentialsToString(values, properties, separator) {
|
|
13934
13910
|
return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
|
|
13935
13911
|
}
|
|
13936
|
-
var ɵ0$
|
|
13912
|
+
var ɵ0$9 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
13937
13913
|
var StatusList = Object.freeze([
|
|
13938
13914
|
{
|
|
13939
|
-
id: ɵ0$
|
|
13915
|
+
id: ɵ0$9,
|
|
13940
13916
|
icon: 'checkmark',
|
|
13941
13917
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
13942
13918
|
},
|
|
@@ -14239,7 +14215,7 @@
|
|
|
14239
14215
|
(data.lastName || '')) || '';
|
|
14240
14216
|
}
|
|
14241
14217
|
|
|
14242
|
-
var uuidv4 = uuidv4Imported__namespace;
|
|
14218
|
+
var uuidv4$1 = uuidv4Imported__namespace;
|
|
14243
14219
|
var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
14244
14220
|
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
14245
14221
|
/**
|
|
@@ -14283,7 +14259,7 @@
|
|
|
14283
14259
|
// Skip if not tracked
|
|
14284
14260
|
if (!context || !context.tracked)
|
|
14285
14261
|
return forward(operation);
|
|
14286
|
-
var id = context.serializationKey || uuidv4();
|
|
14262
|
+
var id = context.serializationKey || uuidv4$1();
|
|
14287
14263
|
console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
|
|
14288
14264
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
14289
14265
|
var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -14916,14 +14892,14 @@
|
|
|
14916
14892
|
mutationLinks = void 0;
|
|
14917
14893
|
// Add queue to store tracked queries, when offline
|
|
14918
14894
|
if (enableTrackMutationQueries) {
|
|
14919
|
-
serializingLink = new SerializingLink__default[
|
|
14895
|
+
serializingLink = new SerializingLink__default['default']();
|
|
14920
14896
|
trackerLink = createTrackerLink({
|
|
14921
14897
|
storage: storage,
|
|
14922
14898
|
onNetworkStatusChange: this._networkStatusChanged$,
|
|
14923
14899
|
debounce: 1000,
|
|
14924
14900
|
debug: true
|
|
14925
14901
|
});
|
|
14926
|
-
queueLink_1 = new QueueLink__default[
|
|
14902
|
+
queueLink_1 = new QueueLink__default['default']();
|
|
14927
14903
|
this.registerSubscription(this._networkStatusChanged$
|
|
14928
14904
|
.subscribe(function (type) {
|
|
14929
14905
|
// Network is offline: start buffering into queue
|
|
@@ -14938,7 +14914,7 @@
|
|
|
14938
14914
|
}
|
|
14939
14915
|
}));
|
|
14940
14916
|
mutationLinks = [
|
|
14941
|
-
loggerLink__default[
|
|
14917
|
+
loggerLink__default['default'],
|
|
14942
14918
|
queueLink_1,
|
|
14943
14919
|
trackerLink,
|
|
14944
14920
|
queueLink_1,
|
|
@@ -15045,7 +15021,7 @@
|
|
|
15045
15021
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
15046
15022
|
|| this.toAppError(err.networkError)
|
|
15047
15023
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
15048
|
-
|| this.createAppErrorByCode(ErrorCodes
|
|
15024
|
+
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
15049
15025
|
// If graphQL: try to convert the first error found
|
|
15050
15026
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
15051
15027
|
|| this.toAppError(err)
|
|
@@ -15053,7 +15029,7 @@
|
|
|
15053
15029
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
15054
15030
|
|| err;
|
|
15055
15031
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
15056
|
-
if (error && error.code === ErrorCodes
|
|
15032
|
+
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
15057
15033
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
15058
15034
|
this.onNetworkError.next(error);
|
|
15059
15035
|
}
|
|
@@ -15089,7 +15065,7 @@
|
|
|
15089
15065
|
return 'ERROR.UNAUTHORIZED';
|
|
15090
15066
|
case ServerErrorCodes.FORBIDDEN:
|
|
15091
15067
|
return 'ERROR.FORBIDDEN';
|
|
15092
|
-
case ErrorCodes
|
|
15068
|
+
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
15093
15069
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
15094
15070
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
15095
15071
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -15121,7 +15097,7 @@
|
|
|
15121
15097
|
};
|
|
15122
15098
|
return GraphqlService;
|
|
15123
15099
|
}(StartableService));
|
|
15124
|
-
GraphqlService.ɵprov =
|
|
15100
|
+
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" });
|
|
15125
15101
|
GraphqlService.decorators = [
|
|
15126
15102
|
{ type: i0.Injectable, args: [{
|
|
15127
15103
|
providedIn: 'root'
|
|
@@ -15138,7 +15114,7 @@
|
|
|
15138
15114
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
15139
15115
|
]; };
|
|
15140
15116
|
|
|
15141
|
-
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
15117
|
+
var sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
15142
15118
|
var BaseGraphqlServiceOptions = /** @class */ (function () {
|
|
15143
15119
|
function BaseGraphqlServiceOptions() {
|
|
15144
15120
|
}
|
|
@@ -15308,8 +15284,8 @@
|
|
|
15308
15284
|
};
|
|
15309
15285
|
/* -- protected methods -- */
|
|
15310
15286
|
BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
|
|
15311
|
-
var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
15312
|
-
var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
15287
|
+
var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
15288
|
+
var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
15313
15289
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
15314
15290
|
};
|
|
15315
15291
|
BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
|
|
@@ -15378,19 +15354,19 @@
|
|
|
15378
15354
|
/* ------------------------------------
|
|
15379
15355
|
* GraphQL queries
|
|
15380
15356
|
* ------------------------------------*/
|
|
15381
|
-
var Fragments
|
|
15382
|
-
account: core.gql(templateObject_1
|
|
15383
|
-
settings: core.gql(templateObject_2
|
|
15357
|
+
var Fragments = {
|
|
15358
|
+
account: core.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n ...UserSettingsFragment\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }"], ["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n ...UserSettingsFragment\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }"]))),
|
|
15359
|
+
settings: core.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["fragment UserSettingsFragment on UserSettingsVO {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }"], ["fragment UserSettingsFragment on UserSettingsVO {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }"])))
|
|
15384
15360
|
};
|
|
15385
15361
|
// Load account query
|
|
15386
|
-
var LoadQuery
|
|
15362
|
+
var LoadQuery = core.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n ", "\n"], ["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n ", "\n"])), Fragments.account, Fragments.settings);
|
|
15387
15363
|
// Check email query
|
|
15388
|
-
var IsEmailExistsQuery = core.gql(templateObject_4
|
|
15364
|
+
var IsEmailExistsQuery = core.gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"], ["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"])));
|
|
15389
15365
|
// Save (create or update) account mutation
|
|
15390
15366
|
var AccountMutations = {
|
|
15391
|
-
save: core.gql(templateObject_5
|
|
15392
|
-
create: core.gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""], ["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""])), Fragments
|
|
15393
|
-
saveSettings: core.gql(templateObject_7 || (templateObject_7 = __makeTemplateObject(["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""], ["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""])), Fragments
|
|
15367
|
+
save: core.gql(templateObject_5 || (templateObject_5 = __makeTemplateObject([" mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""], [" mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""])), Fragments.account, Fragments.settings),
|
|
15368
|
+
create: core.gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""], ["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""])), Fragments.account, Fragments.settings),
|
|
15369
|
+
saveSettings: core.gql(templateObject_7 || (templateObject_7 = __makeTemplateObject(["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""], ["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""])), Fragments.settings)
|
|
15394
15370
|
};
|
|
15395
15371
|
// Sent confirmation email
|
|
15396
15372
|
var SendConfirmEmailMutation = core.gql(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n mutation sendAccountConfirmationEmail($email:String, $locale:String){\n sendAccountConfirmationEmail(email: $email, locale: $locale)\n }\n"], ["\n mutation sendAccountConfirmationEmail($email:String, $locale:String){\n sendAccountConfirmationEmail(email: $email, locale: $locale)\n }\n"])));
|
|
@@ -15752,7 +15728,7 @@
|
|
|
15752
15728
|
error_3 = _b.sent();
|
|
15753
15729
|
console.error(error_3);
|
|
15754
15730
|
this.resetData();
|
|
15755
|
-
throw { code: ErrorCodes
|
|
15731
|
+
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
15756
15732
|
case 4:
|
|
15757
15733
|
// Store pubkey+keypair
|
|
15758
15734
|
this._cache.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -15788,7 +15764,7 @@
|
|
|
15788
15764
|
return [3 /*break*/, 18];
|
|
15789
15765
|
case 11:
|
|
15790
15766
|
err_1 = _b.sent();
|
|
15791
|
-
if (!(err_1 && +(err_1.code) === ErrorCodes
|
|
15767
|
+
if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
15792
15768
|
if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
|
|
15793
15769
|
isEmailExists = void 0;
|
|
15794
15770
|
_b.label = 12;
|
|
@@ -15804,12 +15780,12 @@
|
|
|
15804
15780
|
case 15:
|
|
15805
15781
|
// Email not exists (no account)
|
|
15806
15782
|
if (!isEmailExists) {
|
|
15807
|
-
throw { code: ErrorCodes
|
|
15783
|
+
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
15808
15784
|
}
|
|
15809
15785
|
_b.label = 16;
|
|
15810
15786
|
case 16:
|
|
15811
15787
|
// Email exists, so error = 'bad password'
|
|
15812
|
-
throw { code: ErrorCodes
|
|
15788
|
+
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
15813
15789
|
case 17: throw err_1; // resend the first error
|
|
15814
15790
|
case 18:
|
|
15815
15791
|
_b.trys.push([18, 20, , 21]);
|
|
@@ -15981,8 +15957,8 @@
|
|
|
15981
15957
|
_b.label = 3;
|
|
15982
15958
|
case 3: return [3 /*break*/, 6];
|
|
15983
15959
|
case 4: return [4 /*yield*/, this.graphql.query({
|
|
15984
|
-
query: LoadQuery
|
|
15985
|
-
error: { code: ErrorCodes
|
|
15960
|
+
query: LoadQuery,
|
|
15961
|
+
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
15986
15962
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
15987
15963
|
})];
|
|
15988
15964
|
case 5:
|
|
@@ -16020,7 +15996,7 @@
|
|
|
16020
15996
|
case 1:
|
|
16021
15997
|
isEmailExists = _b.sent();
|
|
16022
15998
|
if (isEmailExists) {
|
|
16023
|
-
throw { code: ErrorCodes
|
|
15999
|
+
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
16024
16000
|
}
|
|
16025
16001
|
return [2 /*return*/];
|
|
16026
16002
|
}
|
|
@@ -16070,7 +16046,7 @@
|
|
|
16070
16046
|
locale: locale
|
|
16071
16047
|
},
|
|
16072
16048
|
error: {
|
|
16073
|
-
code: ErrorCodes
|
|
16049
|
+
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
16074
16050
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
16075
16051
|
}
|
|
16076
16052
|
})];
|
|
@@ -16093,7 +16069,7 @@
|
|
|
16093
16069
|
code: code
|
|
16094
16070
|
},
|
|
16095
16071
|
error: {
|
|
16096
|
-
code: ErrorCodes
|
|
16072
|
+
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
16097
16073
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
16098
16074
|
}
|
|
16099
16075
|
})];
|
|
@@ -16116,7 +16092,7 @@
|
|
|
16116
16092
|
interval: 10
|
|
16117
16093
|
},
|
|
16118
16094
|
error: {
|
|
16119
|
-
code: ErrorCodes
|
|
16095
|
+
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
16120
16096
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ACCOUNT_ERROR'
|
|
16121
16097
|
}
|
|
16122
16098
|
}).subscribe({
|
|
@@ -16256,7 +16232,7 @@
|
|
|
16256
16232
|
throw error_6;
|
|
16257
16233
|
console.error(error_6);
|
|
16258
16234
|
throw {
|
|
16259
|
-
code: ErrorCodes
|
|
16235
|
+
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
16260
16236
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
16261
16237
|
};
|
|
16262
16238
|
case 6: return [2 /*return*/];
|
|
@@ -16465,7 +16441,7 @@
|
|
|
16465
16441
|
case 1:
|
|
16466
16442
|
existingAccount = _b.sent();
|
|
16467
16443
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
16468
|
-
throw { code: ErrorCodes
|
|
16444
|
+
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
16469
16445
|
}
|
|
16470
16446
|
this.copyIdAndUpdateDate(existingAccount, account);
|
|
16471
16447
|
_b.label = 2;
|
|
@@ -16477,7 +16453,7 @@
|
|
|
16477
16453
|
mutation: isNew ? AccountMutations.create : AccountMutations.save,
|
|
16478
16454
|
variables: { data: json },
|
|
16479
16455
|
error: {
|
|
16480
|
-
code: ErrorCodes
|
|
16456
|
+
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
16481
16457
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
16482
16458
|
}
|
|
16483
16459
|
})];
|
|
@@ -16511,7 +16487,7 @@
|
|
|
16511
16487
|
mutation: AccountMutations.saveSettings,
|
|
16512
16488
|
variables: { data: json },
|
|
16513
16489
|
error: {
|
|
16514
|
-
code: ErrorCodes
|
|
16490
|
+
code: ErrorCodes.SAVE_SETTINGS_ERROR,
|
|
16515
16491
|
message: 'ERROR.SAVE_SETTINGS_ERROR'
|
|
16516
16492
|
}
|
|
16517
16493
|
})];
|
|
@@ -16542,7 +16518,7 @@
|
|
|
16542
16518
|
if (counter > 4) {
|
|
16543
16519
|
if (this._debug)
|
|
16544
16520
|
console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
|
|
16545
|
-
throw { code: ErrorCodes
|
|
16521
|
+
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
16546
16522
|
}
|
|
16547
16523
|
if (!token) return [3 /*break*/, 2];
|
|
16548
16524
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -16551,7 +16527,7 @@
|
|
|
16551
16527
|
token: token
|
|
16552
16528
|
},
|
|
16553
16529
|
error: {
|
|
16554
|
-
code: ErrorCodes
|
|
16530
|
+
code: ErrorCodes.UNAUTHORIZED,
|
|
16555
16531
|
message: 'ERROR.UNAUTHORIZED'
|
|
16556
16532
|
},
|
|
16557
16533
|
fetchPolicy: 'no-cache'
|
|
@@ -16568,7 +16544,7 @@
|
|
|
16568
16544
|
_b.label = 2;
|
|
16569
16545
|
case 2:
|
|
16570
16546
|
challengeError = {
|
|
16571
|
-
code: ErrorCodes
|
|
16547
|
+
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
16572
16548
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
16573
16549
|
};
|
|
16574
16550
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -16615,7 +16591,7 @@
|
|
|
16615
16591
|
};
|
|
16616
16592
|
return AccountService;
|
|
16617
16593
|
}(BaseGraphqlService));
|
|
16618
|
-
AccountService.ɵprov =
|
|
16594
|
+
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" });
|
|
16619
16595
|
AccountService.decorators = [
|
|
16620
16596
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
16621
16597
|
];
|
|
@@ -16628,7 +16604,7 @@
|
|
|
16628
16604
|
{ type: FileService },
|
|
16629
16605
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
16630
16606
|
]; };
|
|
16631
|
-
var templateObject_1
|
|
16607
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12;
|
|
16632
16608
|
|
|
16633
16609
|
var Software_1, Configuration_1;
|
|
16634
16610
|
// @dynamic
|
|
@@ -16880,13 +16856,13 @@
|
|
|
16880
16856
|
/* ------------------------------------
|
|
16881
16857
|
* GraphQL queries
|
|
16882
16858
|
* ------------------------------------*/
|
|
16883
|
-
var Fragments = {
|
|
16884
|
-
config: core.gql(templateObject_1$
|
|
16859
|
+
var Fragments$1 = {
|
|
16860
|
+
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 "])))
|
|
16885
16861
|
};
|
|
16886
|
-
var LoadQuery = core.gql(templateObject_2$
|
|
16862
|
+
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);
|
|
16887
16863
|
// Save (create or update) account mutation
|
|
16888
|
-
var SaveMutation = core.gql(templateObject_3$
|
|
16889
|
-
var ClearCache = core.gql(templateObject_4$
|
|
16864
|
+
var SaveMutation = core.gql(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"], ["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"])), Fragments$1.config);
|
|
16865
|
+
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"])));
|
|
16890
16866
|
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"])));
|
|
16891
16867
|
var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
|
|
16892
16868
|
var ConfigService = /** @class */ (function (_super) {
|
|
@@ -16946,12 +16922,12 @@
|
|
|
16946
16922
|
case 0:
|
|
16947
16923
|
now = Date.now();
|
|
16948
16924
|
console.debug('[config] Loading Pod configuration...');
|
|
16949
|
-
query = opts && opts.query || LoadQuery;
|
|
16925
|
+
query = opts && opts.query || LoadQuery$1;
|
|
16950
16926
|
variables = opts && opts.variables || undefined;
|
|
16951
16927
|
return [4 /*yield*/, this.graphql.query({
|
|
16952
16928
|
query: query,
|
|
16953
16929
|
variables: variables,
|
|
16954
|
-
error: { code: ErrorCodes
|
|
16930
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16955
16931
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
16956
16932
|
})];
|
|
16957
16933
|
case 1:
|
|
@@ -16993,7 +16969,7 @@
|
|
|
16993
16969
|
data: json
|
|
16994
16970
|
},
|
|
16995
16971
|
error: {
|
|
16996
|
-
code: ErrorCodes
|
|
16972
|
+
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
16997
16973
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
16998
16974
|
}
|
|
16999
16975
|
})];
|
|
@@ -17028,7 +17004,7 @@
|
|
|
17028
17004
|
return [4 /*yield*/, this.graphql.query({
|
|
17029
17005
|
query: CacheStatistics,
|
|
17030
17006
|
variables: null,
|
|
17031
|
-
error: { code: ErrorCodes
|
|
17007
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17032
17008
|
fetchPolicy: 'network-only'
|
|
17033
17009
|
})];
|
|
17034
17010
|
case 1:
|
|
@@ -17052,7 +17028,7 @@
|
|
|
17052
17028
|
return [4 /*yield*/, this.graphql.query({
|
|
17053
17029
|
query: ClearCache,
|
|
17054
17030
|
variables: variables,
|
|
17055
|
-
error: { code: ErrorCodes
|
|
17031
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
17056
17032
|
fetchPolicy: 'network-only'
|
|
17057
17033
|
})];
|
|
17058
17034
|
case 1:
|
|
@@ -17252,7 +17228,7 @@
|
|
|
17252
17228
|
};
|
|
17253
17229
|
return ConfigService;
|
|
17254
17230
|
}(BaseGraphqlService));
|
|
17255
|
-
ConfigService.ɵprov =
|
|
17231
|
+
ConfigService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConfigService_Factory() { return new ConfigService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(NetworkService), i0.ɵɵinject(FileService), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(AccountService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
|
|
17256
17232
|
ConfigService.decorators = [
|
|
17257
17233
|
{ type: i0.Injectable, args: [{
|
|
17258
17234
|
providedIn: 'root',
|
|
@@ -17271,9 +17247,9 @@
|
|
|
17271
17247
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
17272
17248
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
17273
17249
|
]; };
|
|
17274
|
-
var templateObject_1$
|
|
17250
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
|
|
17275
17251
|
|
|
17276
|
-
var moment$
|
|
17252
|
+
var moment$4 = momentImported__namespace;
|
|
17277
17253
|
var PlatformService = /** @class */ (function (_super) {
|
|
17278
17254
|
__extends(PlatformService, _super);
|
|
17279
17255
|
function PlatformService(platform, cdkPlatform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser, downloader) {
|
|
@@ -17512,16 +17488,16 @@
|
|
|
17512
17488
|
}
|
|
17513
17489
|
// config moment lib
|
|
17514
17490
|
try {
|
|
17515
|
-
moment$
|
|
17491
|
+
moment$4.locale(event.lang);
|
|
17516
17492
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
17517
17493
|
}
|
|
17518
17494
|
// If error, fallback to en
|
|
17519
17495
|
catch (err) {
|
|
17520
|
-
moment$
|
|
17496
|
+
moment$4.locale('en');
|
|
17521
17497
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
17522
17498
|
}
|
|
17523
17499
|
// Config date adapter
|
|
17524
|
-
_this.dateAdapter.setLocale(moment$
|
|
17500
|
+
_this.dateAdapter.setLocale(moment$4.locale());
|
|
17525
17501
|
}
|
|
17526
17502
|
});
|
|
17527
17503
|
this.settings.onChange.subscribe(function (data) {
|
|
@@ -17702,7 +17678,7 @@
|
|
|
17702
17678
|
};
|
|
17703
17679
|
return PlatformService;
|
|
17704
17680
|
}(StartableService));
|
|
17705
|
-
PlatformService.ɵprov =
|
|
17681
|
+
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" });
|
|
17706
17682
|
PlatformService.decorators = [
|
|
17707
17683
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
17708
17684
|
];
|
|
@@ -17800,7 +17776,7 @@
|
|
|
17800
17776
|
};
|
|
17801
17777
|
return MatStepperI18n;
|
|
17802
17778
|
}(stepper.MatStepperIntl));
|
|
17803
|
-
MatStepperI18n.ɵprov =
|
|
17779
|
+
MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
17804
17780
|
MatStepperI18n.decorators = [
|
|
17805
17781
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
17806
17782
|
];
|
|
@@ -19002,7 +18978,7 @@
|
|
|
19002
18978
|
return 1;
|
|
19003
18979
|
}
|
|
19004
18980
|
}
|
|
19005
|
-
var ɵ0$
|
|
18981
|
+
var ɵ0$a = function (defaultStateSize) { return [
|
|
19006
18982
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
19007
18983
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
19008
18984
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -19010,7 +18986,7 @@
|
|
|
19010
18986
|
var SCALE_OPTIONS_DEFAULT = {
|
|
19011
18987
|
startColor: rgbArrayMap.red,
|
|
19012
18988
|
startStates: [0, 2, 3],
|
|
19013
|
-
startStepsFn: ɵ0$
|
|
18989
|
+
startStepsFn: ɵ0$a
|
|
19014
18990
|
};
|
|
19015
18991
|
/**
|
|
19016
18992
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -19102,24 +19078,24 @@
|
|
|
19102
19078
|
return result;
|
|
19103
19079
|
}
|
|
19104
19080
|
|
|
19105
|
-
var EntityTestClass
|
|
19081
|
+
var EntityTestClass = /** @class */ (function () {
|
|
19106
19082
|
function EntityTestClass() {
|
|
19107
19083
|
}
|
|
19108
19084
|
return EntityTestClass;
|
|
19109
19085
|
}());
|
|
19110
|
-
var FAKE_ENTITIES
|
|
19086
|
+
var FAKE_ENTITIES = [
|
|
19111
19087
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
19112
19088
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
19113
19089
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
19114
19090
|
];
|
|
19115
|
-
function deepCopy
|
|
19091
|
+
function deepCopy(values, size) {
|
|
19116
19092
|
if (isNil(size)) {
|
|
19117
|
-
return (values || FAKE_ENTITIES
|
|
19093
|
+
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
19118
19094
|
}
|
|
19119
19095
|
var result = [];
|
|
19120
19096
|
var i = 1;
|
|
19121
19097
|
while (result.length < size) {
|
|
19122
|
-
result = result.concat((values || FAKE_ENTITIES
|
|
19098
|
+
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
19123
19099
|
var name = entity.name + ' #' + i;
|
|
19124
19100
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
19125
19101
|
}));
|
|
@@ -19129,7 +19105,7 @@
|
|
|
19129
19105
|
var AutocompleteTestPage = /** @class */ (function () {
|
|
19130
19106
|
function AutocompleteTestPage(formBuilder) {
|
|
19131
19107
|
this.formBuilder = formBuilder;
|
|
19132
|
-
this._items = deepCopy
|
|
19108
|
+
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
19133
19109
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
19134
19110
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
19135
19111
|
this.memoryHide = false;
|
|
@@ -19174,7 +19150,7 @@
|
|
|
19174
19150
|
});
|
|
19175
19151
|
// From items
|
|
19176
19152
|
this.autocompleteFields.add('entity-items-large', {
|
|
19177
|
-
items: FAKE_ENTITIES
|
|
19153
|
+
items: FAKE_ENTITIES.slice(),
|
|
19178
19154
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
19179
19155
|
displayWith: this.entityToString
|
|
19180
19156
|
});
|
|
@@ -19187,12 +19163,12 @@
|
|
|
19187
19163
|
var _this = this;
|
|
19188
19164
|
return __generator(this, function (_a) {
|
|
19189
19165
|
data = {
|
|
19190
|
-
entity: deepCopy
|
|
19166
|
+
entity: deepCopy(FAKE_ENTITIES)[0],
|
|
19191
19167
|
// This item is NOT in the items list => i should be displayed anyway
|
|
19192
19168
|
missingEntity: {
|
|
19193
19169
|
id: -1, label: '??', name: 'Missing item'
|
|
19194
19170
|
},
|
|
19195
|
-
disableEntity: deepCopy
|
|
19171
|
+
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
19196
19172
|
};
|
|
19197
19173
|
this.form.setValue(data);
|
|
19198
19174
|
// Load observables
|
|
@@ -19390,13 +19366,13 @@
|
|
|
19390
19366
|
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_TESTING_PAGES,] }] }
|
|
19391
19367
|
]; };
|
|
19392
19368
|
|
|
19393
|
-
var moment$
|
|
19369
|
+
var moment$5 = momentImported__namespace;
|
|
19394
19370
|
var SwipeTestPage = /** @class */ (function () {
|
|
19395
19371
|
function SwipeTestPage(formBuilder, dateFormatPipe) {
|
|
19396
19372
|
this.formBuilder = formBuilder;
|
|
19397
19373
|
this.dateFormatPipe = dateFormatPipe;
|
|
19398
19374
|
this.$dates = new rxjs.BehaviorSubject(undefined);
|
|
19399
|
-
this._today = moment$
|
|
19375
|
+
this._today = moment$5().startOf('day');
|
|
19400
19376
|
this.form = formBuilder.group({
|
|
19401
19377
|
empty: [null, i1.Validators.required],
|
|
19402
19378
|
date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
|
|
@@ -19410,7 +19386,7 @@
|
|
|
19410
19386
|
var _this = this;
|
|
19411
19387
|
var dates = [];
|
|
19412
19388
|
for (var d = 0; d < 7; d++) {
|
|
19413
|
-
dates[d] = moment$
|
|
19389
|
+
dates[d] = moment$5(this._today).add(d - 3, 'day');
|
|
19414
19390
|
}
|
|
19415
19391
|
this.$dates.next(dates);
|
|
19416
19392
|
this.loadData();
|
|
@@ -19457,7 +19433,7 @@
|
|
|
19457
19433
|
{ type: DateFormatPipe }
|
|
19458
19434
|
]; };
|
|
19459
19435
|
|
|
19460
|
-
var moment = momentImported__namespace;
|
|
19436
|
+
var moment$6 = momentImported__namespace;
|
|
19461
19437
|
var DateTimeTestPage = /** @class */ (function () {
|
|
19462
19438
|
function DateTimeTestPage(platform, formBuilder, cd) {
|
|
19463
19439
|
this.platform = platform;
|
|
@@ -19493,7 +19469,7 @@
|
|
|
19493
19469
|
var now, data;
|
|
19494
19470
|
var _this = this;
|
|
19495
19471
|
return __generator(this, function (_a) {
|
|
19496
|
-
now = moment();
|
|
19472
|
+
now = moment$6();
|
|
19497
19473
|
data = {
|
|
19498
19474
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
19499
19475
|
enable: toDateISOString(now),
|
|
@@ -19558,12 +19534,12 @@
|
|
|
19558
19534
|
{ type: i0.ChangeDetectorRef }
|
|
19559
19535
|
]; };
|
|
19560
19536
|
|
|
19561
|
-
var EntityTestClass = /** @class */ (function () {
|
|
19537
|
+
var EntityTestClass$1 = /** @class */ (function () {
|
|
19562
19538
|
function EntityTestClass() {
|
|
19563
19539
|
}
|
|
19564
19540
|
return EntityTestClass;
|
|
19565
19541
|
}());
|
|
19566
|
-
var FAKE_ENTITIES = [
|
|
19542
|
+
var FAKE_ENTITIES$1 = [
|
|
19567
19543
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
19568
19544
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
19569
19545
|
{ id: 3, label: 'CCC', name: 'Item C' },
|
|
@@ -19572,14 +19548,14 @@
|
|
|
19572
19548
|
{ id: 6, label: 'FFF', name: 'Item F' },
|
|
19573
19549
|
{ id: 7, label: 'GGG', name: 'Item G' }
|
|
19574
19550
|
];
|
|
19575
|
-
function deepCopy(values, size) {
|
|
19551
|
+
function deepCopy$1(values, size) {
|
|
19576
19552
|
if (isNil(size)) {
|
|
19577
|
-
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
19553
|
+
return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
|
|
19578
19554
|
}
|
|
19579
19555
|
var result = [];
|
|
19580
19556
|
var i = 1;
|
|
19581
19557
|
while (result.length < size) {
|
|
19582
|
-
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
19558
|
+
result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
|
|
19583
19559
|
var name = entity.name + ' #' + i;
|
|
19584
19560
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
19585
19561
|
}));
|
|
@@ -19589,7 +19565,7 @@
|
|
|
19589
19565
|
var ChipsTestPage = /** @class */ (function () {
|
|
19590
19566
|
function ChipsTestPage(formBuilder) {
|
|
19591
19567
|
this.formBuilder = formBuilder;
|
|
19592
|
-
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
19568
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
|
|
19593
19569
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
19594
19570
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
19595
19571
|
this.form = formBuilder.group({
|
|
@@ -19632,7 +19608,7 @@
|
|
|
19632
19608
|
var items, data;
|
|
19633
19609
|
var _this = this;
|
|
19634
19610
|
return __generator(this, function (_a) {
|
|
19635
|
-
items = deepCopy(FAKE_ENTITIES);
|
|
19611
|
+
items = deepCopy$1(FAKE_ENTITIES$1);
|
|
19636
19612
|
data = {
|
|
19637
19613
|
entity: items.slice(0, 1),
|
|
19638
19614
|
entityInitial: items.slice(1, 2),
|
|
@@ -19724,7 +19700,7 @@
|
|
|
19724
19700
|
},] }
|
|
19725
19701
|
];
|
|
19726
19702
|
|
|
19727
|
-
var routes
|
|
19703
|
+
var routes = [
|
|
19728
19704
|
{
|
|
19729
19705
|
path: '',
|
|
19730
19706
|
pathMatch: 'full',
|
|
@@ -19779,7 +19755,7 @@
|
|
|
19779
19755
|
i1.ReactiveFormsModule,
|
|
19780
19756
|
SharedMaterialModule,
|
|
19781
19757
|
i1$2.TranslateModule.forChild(),
|
|
19782
|
-
i3.RouterModule.forChild(routes
|
|
19758
|
+
i3.RouterModule.forChild(routes)
|
|
19783
19759
|
],
|
|
19784
19760
|
declarations: [
|
|
19785
19761
|
MaterialTestingPage,
|
|
@@ -20984,7 +20960,7 @@
|
|
|
20984
20960
|
};
|
|
20985
20961
|
return UserSettingsValidatorService;
|
|
20986
20962
|
}(AppValidatorService));
|
|
20987
|
-
UserSettingsValidatorService.ɵprov =
|
|
20963
|
+
UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
20988
20964
|
UserSettingsValidatorService.decorators = [
|
|
20989
20965
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
20990
20966
|
];
|
|
@@ -21032,7 +21008,7 @@
|
|
|
21032
21008
|
};
|
|
21033
21009
|
return AccountValidatorService;
|
|
21034
21010
|
}(AppValidatorService));
|
|
21035
|
-
AccountValidatorService.ɵprov =
|
|
21011
|
+
AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
|
|
21036
21012
|
AccountValidatorService.decorators = [
|
|
21037
21013
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21038
21014
|
];
|
|
@@ -21663,7 +21639,7 @@
|
|
|
21663
21639
|
};
|
|
21664
21640
|
return LocalSettingsValidatorService;
|
|
21665
21641
|
}(AppValidatorService));
|
|
21666
|
-
LocalSettingsValidatorService.ɵprov =
|
|
21642
|
+
LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
|
|
21667
21643
|
LocalSettingsValidatorService.decorators = [
|
|
21668
21644
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21669
21645
|
];
|
|
@@ -22443,7 +22419,7 @@
|
|
|
22443
22419
|
};
|
|
22444
22420
|
return IsOnFieldModePipe;
|
|
22445
22421
|
}());
|
|
22446
|
-
IsOnFieldModePipe.ɵprov =
|
|
22422
|
+
IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
22447
22423
|
IsOnFieldModePipe.decorators = [
|
|
22448
22424
|
{ type: i0.Pipe, args: [{
|
|
22449
22425
|
name: 'isOnField'
|
|
@@ -22458,7 +22434,7 @@
|
|
|
22458
22434
|
};
|
|
22459
22435
|
return IsNotOnFieldModePipe;
|
|
22460
22436
|
}());
|
|
22461
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
22437
|
+
IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
22462
22438
|
IsNotOnFieldModePipe.decorators = [
|
|
22463
22439
|
{ type: i0.Pipe, args: [{
|
|
22464
22440
|
name: 'isNotOnField'
|
|
@@ -22476,7 +22452,7 @@
|
|
|
22476
22452
|
};
|
|
22477
22453
|
return PersonToStringPipe;
|
|
22478
22454
|
}());
|
|
22479
|
-
PersonToStringPipe.ɵprov =
|
|
22455
|
+
PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
22480
22456
|
PersonToStringPipe.decorators = [
|
|
22481
22457
|
{ type: i0.Pipe, args: [{
|
|
22482
22458
|
name: 'personToString'
|
|
@@ -22940,7 +22916,7 @@
|
|
|
22940
22916
|
};
|
|
22941
22917
|
return IsLoginAccountPipe;
|
|
22942
22918
|
}());
|
|
22943
|
-
IsLoginAccountPipe.ɵprov =
|
|
22919
|
+
IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
22944
22920
|
IsLoginAccountPipe.decorators = [
|
|
22945
22921
|
{ type: i0.Pipe, args: [{
|
|
22946
22922
|
name: 'isLogin'
|
|
@@ -22955,7 +22931,7 @@
|
|
|
22955
22931
|
};
|
|
22956
22932
|
return AccountToStringPipe;
|
|
22957
22933
|
}());
|
|
22958
|
-
AccountToStringPipe.ɵprov =
|
|
22934
|
+
AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
22959
22935
|
AccountToStringPipe.decorators = [
|
|
22960
22936
|
{ type: i0.Pipe, args: [{
|
|
22961
22937
|
name: 'accountToString'
|
|
@@ -22973,7 +22949,7 @@
|
|
|
22973
22949
|
};
|
|
22974
22950
|
return DepartmentToStringPipe;
|
|
22975
22951
|
}());
|
|
22976
|
-
DepartmentToStringPipe.ɵprov =
|
|
22952
|
+
DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
22977
22953
|
DepartmentToStringPipe.decorators = [
|
|
22978
22954
|
{ type: i0.Pipe, args: [{
|
|
22979
22955
|
name: 'departmentToString'
|
|
@@ -23008,7 +22984,7 @@
|
|
|
23008
22984
|
};
|
|
23009
22985
|
return MenuService;
|
|
23010
22986
|
}());
|
|
23011
|
-
MenuService.ɵprov =
|
|
22987
|
+
MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
23012
22988
|
MenuService.decorators = [
|
|
23013
22989
|
{ type: i0.Injectable, args: [{
|
|
23014
22990
|
providedIn: 'root'
|
|
@@ -23622,7 +23598,7 @@
|
|
|
23622
23598
|
};
|
|
23623
23599
|
return AuthGuardService;
|
|
23624
23600
|
}());
|
|
23625
|
-
AuthGuardService.ɵprov =
|
|
23601
|
+
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" });
|
|
23626
23602
|
AuthGuardService.decorators = [
|
|
23627
23603
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
23628
23604
|
];
|
|
@@ -23667,7 +23643,7 @@
|
|
|
23667
23643
|
query: query,
|
|
23668
23644
|
variables: { id: id },
|
|
23669
23645
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
23670
|
-
error: { code: ErrorCodes
|
|
23646
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
23671
23647
|
})
|
|
23672
23648
|
.pipe(operators.map(function (_b) {
|
|
23673
23649
|
var data = _b.data;
|
|
@@ -23689,7 +23665,7 @@
|
|
|
23689
23665
|
query: query,
|
|
23690
23666
|
variables: { id: id },
|
|
23691
23667
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
23692
|
-
error: { code: ErrorCodes
|
|
23668
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
23693
23669
|
})];
|
|
23694
23670
|
case 1:
|
|
23695
23671
|
data = (_b.sent()).data;
|
|
@@ -23725,7 +23701,7 @@
|
|
|
23725
23701
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
23726
23702
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
23727
23703
|
variables: variables,
|
|
23728
|
-
error: { code: ErrorCodes
|
|
23704
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
23729
23705
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
23730
23706
|
})
|
|
23731
23707
|
.pipe(operators.map(function (_b) {
|
|
@@ -23767,7 +23743,7 @@
|
|
|
23767
23743
|
return [4 /*yield*/, this.graphql.query({
|
|
23768
23744
|
query: query,
|
|
23769
23745
|
variables: variables,
|
|
23770
|
-
error: { code: ErrorCodes
|
|
23746
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
23771
23747
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
23772
23748
|
})];
|
|
23773
23749
|
case 1:
|
|
@@ -23815,7 +23791,7 @@
|
|
|
23815
23791
|
variables: {
|
|
23816
23792
|
filter: filter && filter.asPodObject()
|
|
23817
23793
|
},
|
|
23818
|
-
error: { code: ErrorCodes
|
|
23794
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
23819
23795
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
23820
23796
|
})];
|
|
23821
23797
|
case 3:
|
|
@@ -23860,7 +23836,7 @@
|
|
|
23860
23836
|
variables: {
|
|
23861
23837
|
data: json
|
|
23862
23838
|
},
|
|
23863
|
-
error: { code: ErrorCodes
|
|
23839
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
23864
23840
|
update: function (proxy, _b) {
|
|
23865
23841
|
var data = _b.data;
|
|
23866
23842
|
var savedEntities = data && data.data;
|
|
@@ -23927,7 +23903,7 @@
|
|
|
23927
23903
|
variables: {
|
|
23928
23904
|
data: json
|
|
23929
23905
|
},
|
|
23930
|
-
error: { code: ErrorCodes
|
|
23906
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
23931
23907
|
update: function (cache, _b) {
|
|
23932
23908
|
var data = _b.data;
|
|
23933
23909
|
// Update entity
|
|
@@ -23985,7 +23961,7 @@
|
|
|
23985
23961
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
23986
23962
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
23987
23963
|
variables: { ids: ids },
|
|
23988
|
-
error: { code: ErrorCodes
|
|
23964
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
23989
23965
|
update: function (cache, res) {
|
|
23990
23966
|
// Remove from cache
|
|
23991
23967
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -24038,7 +24014,7 @@
|
|
|
24038
24014
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
24039
24015
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
24040
24016
|
variables: { id: id },
|
|
24041
|
-
error: { code: ErrorCodes
|
|
24017
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
24042
24018
|
update: function (proxy, res) {
|
|
24043
24019
|
// Remove from cache
|
|
24044
24020
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -24077,7 +24053,7 @@
|
|
|
24077
24053
|
query: opts && opts.query || this.subscriptions.listenChanges,
|
|
24078
24054
|
variables: variables,
|
|
24079
24055
|
error: {
|
|
24080
|
-
code: ErrorCodes
|
|
24056
|
+
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
24081
24057
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
24082
24058
|
}
|
|
24083
24059
|
})
|
|
@@ -24300,7 +24276,7 @@
|
|
|
24300
24276
|
if (this._debug)
|
|
24301
24277
|
invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
|
|
24302
24278
|
// Stop with an error
|
|
24303
|
-
throw { code: ErrorCodes
|
|
24279
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
24304
24280
|
}
|
|
24305
24281
|
this._editingRowCount = 0;
|
|
24306
24282
|
data = void 0;
|
|
@@ -25304,7 +25280,7 @@
|
|
|
25304
25280
|
return true;
|
|
25305
25281
|
};
|
|
25306
25282
|
AppTable.prototype.save = function (opts) {
|
|
25307
|
-
var _a, _b;
|
|
25283
|
+
var _a, _b, _c;
|
|
25308
25284
|
return __awaiter(this, void 0, void 0, function () {
|
|
25309
25285
|
var previouslyEditedData, isOK, err_1;
|
|
25310
25286
|
return __generator(this, function (_d) {
|
|
@@ -25312,14 +25288,14 @@
|
|
|
25312
25288
|
case 0:
|
|
25313
25289
|
opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
|
|
25314
25290
|
if (this.readOnly) {
|
|
25315
|
-
throw { code: ErrorCodes
|
|
25291
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25316
25292
|
}
|
|
25317
25293
|
this.resetError();
|
|
25318
25294
|
// Keep edited row id (should be done BEFORE confirmEditCreate() )
|
|
25319
|
-
this.previouslyEditedRowId = opts.keepEditing && ((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined;
|
|
25320
|
-
previouslyEditedData = isNotNil(this.previouslyEditedRowId) && this.editedRow.currentData || ((
|
|
25295
|
+
this.previouslyEditedRowId = opts.keepEditing && ((((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined) || ((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.id));
|
|
25296
|
+
previouslyEditedData = isNotNil(this.previouslyEditedRowId) && this.editedRow.currentData || ((_c = this.singleSelectedRow) === null || _c === void 0 ? void 0 : _c.currentData);
|
|
25321
25297
|
if (!this.confirmEditCreate()) {
|
|
25322
|
-
throw { code: ErrorCodes
|
|
25298
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
25323
25299
|
}
|
|
25324
25300
|
// Mark as saving
|
|
25325
25301
|
this.markAsSaving();
|
|
@@ -25474,7 +25450,7 @@
|
|
|
25474
25450
|
switch (_d.label) {
|
|
25475
25451
|
case 0:
|
|
25476
25452
|
if (this.readOnly) {
|
|
25477
|
-
throw { code: ErrorCodes
|
|
25453
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25478
25454
|
}
|
|
25479
25455
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
25480
25456
|
return [2 /*return*/, 0]; // SKip
|
|
@@ -27319,7 +27295,7 @@
|
|
|
27319
27295
|
case 8:
|
|
27320
27296
|
data = _b.sent();
|
|
27321
27297
|
if (!data)
|
|
27322
|
-
throw { code: ErrorCodes
|
|
27298
|
+
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
27323
27299
|
this._usageMode = this.computeUsageMode(data);
|
|
27324
27300
|
return [4 /*yield*/, this.onEntityLoaded(data, opts)];
|
|
27325
27301
|
case 9:
|
|
@@ -28085,10 +28061,10 @@
|
|
|
28085
28061
|
exports.UserEventFilter = __decorate([
|
|
28086
28062
|
EntityClass({ typename: 'UserEventVO' })
|
|
28087
28063
|
], exports.UserEventFilter);
|
|
28088
|
-
var SaveQuery = core.gql(templateObject_1$
|
|
28089
|
-
var LoadAllQuery = core.gql(templateObject_2$
|
|
28090
|
-
var DeleteByIdsMutation = core.gql(templateObject_3$
|
|
28091
|
-
var LoadAllWithContentQuery = core.gql(templateObject_4$
|
|
28064
|
+
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);
|
|
28065
|
+
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);
|
|
28066
|
+
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"])));
|
|
28067
|
+
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);
|
|
28092
28068
|
var UserEventService = /** @class */ (function (_super) {
|
|
28093
28069
|
__extends(UserEventService, _super);
|
|
28094
28070
|
function UserEventService(graphql, accountService, network, translate, toastController, environment) {
|
|
@@ -28409,7 +28385,7 @@
|
|
|
28409
28385
|
};
|
|
28410
28386
|
return UserEventService;
|
|
28411
28387
|
}(BaseGraphqlService));
|
|
28412
|
-
UserEventService.ɵprov =
|
|
28388
|
+
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" });
|
|
28413
28389
|
UserEventService.decorators = [
|
|
28414
28390
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
28415
28391
|
];
|
|
@@ -28421,7 +28397,7 @@
|
|
|
28421
28397
|
{ type: i1$5.ToastController },
|
|
28422
28398
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
28423
28399
|
]; };
|
|
28424
|
-
var templateObject_1$
|
|
28400
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
|
|
28425
28401
|
|
|
28426
28402
|
var ICONS_MAP = {
|
|
28427
28403
|
DEBUG_DATA: { matIcon: 'bug_report' },
|
|
@@ -28684,16 +28660,16 @@
|
|
|
28684
28660
|
], exports.PersonFilter);
|
|
28685
28661
|
|
|
28686
28662
|
var PersonFragments = {
|
|
28687
|
-
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 }"])))
|
|
28663
|
+
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 }"])))
|
|
28688
28664
|
};
|
|
28689
28665
|
// Load persons query
|
|
28690
28666
|
var PersonQueries = {
|
|
28691
|
-
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),
|
|
28692
|
-
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)
|
|
28667
|
+
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),
|
|
28668
|
+
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)
|
|
28693
28669
|
};
|
|
28694
28670
|
var PersonMutations = {
|
|
28695
|
-
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),
|
|
28696
|
-
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 }"])))
|
|
28671
|
+
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),
|
|
28672
|
+
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 }"])))
|
|
28697
28673
|
};
|
|
28698
28674
|
var PersonService = /** @class */ (function (_super_1) {
|
|
28699
28675
|
__extends(PersonService, _super_1);
|
|
@@ -28817,7 +28793,7 @@
|
|
|
28817
28793
|
};
|
|
28818
28794
|
return PersonService;
|
|
28819
28795
|
}(BaseEntityService));
|
|
28820
|
-
PersonService.ɵprov =
|
|
28796
|
+
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" });
|
|
28821
28797
|
PersonService.decorators = [
|
|
28822
28798
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
28823
28799
|
];
|
|
@@ -28827,7 +28803,7 @@
|
|
|
28827
28803
|
{ type: NetworkService },
|
|
28828
28804
|
{ type: EntitiesStorage }
|
|
28829
28805
|
]; };
|
|
28830
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
28806
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
|
|
28831
28807
|
|
|
28832
28808
|
var PersonValidatorService = /** @class */ (function () {
|
|
28833
28809
|
function PersonValidatorService(formBuilder, accountValidatorService) {
|
|
@@ -28850,7 +28826,7 @@
|
|
|
28850
28826
|
};
|
|
28851
28827
|
return PersonValidatorService;
|
|
28852
28828
|
}());
|
|
28853
|
-
PersonValidatorService.ɵprov =
|
|
28829
|
+
PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
|
|
28854
28830
|
PersonValidatorService.decorators = [
|
|
28855
28831
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
28856
28832
|
];
|
|
@@ -29073,16 +29049,16 @@
|
|
|
29073
29049
|
];
|
|
29074
29050
|
AdminModule.ctorParameters = function () { return []; };
|
|
29075
29051
|
|
|
29076
|
-
var ɵ0 = {
|
|
29052
|
+
var ɵ0$b = {
|
|
29077
29053
|
profile: 'ADMIN'
|
|
29078
29054
|
};
|
|
29079
|
-
var routes = [
|
|
29055
|
+
var routes$1 = [
|
|
29080
29056
|
{
|
|
29081
29057
|
path: 'users',
|
|
29082
29058
|
pathMatch: 'full',
|
|
29083
29059
|
component: UsersPage,
|
|
29084
29060
|
canActivate: [AuthGuardService],
|
|
29085
|
-
data: ɵ0
|
|
29061
|
+
data: ɵ0$b
|
|
29086
29062
|
}
|
|
29087
29063
|
];
|
|
29088
29064
|
var AdminRoutingModule = /** @class */ (function () {
|
|
@@ -29095,13 +29071,13 @@
|
|
|
29095
29071
|
imports: [
|
|
29096
29072
|
SharedRoutingModule,
|
|
29097
29073
|
AdminModule,
|
|
29098
|
-
i3.RouterModule.forChild(routes)
|
|
29074
|
+
i3.RouterModule.forChild(routes$1)
|
|
29099
29075
|
],
|
|
29100
29076
|
exports: [i3.RouterModule]
|
|
29101
29077
|
},] }
|
|
29102
29078
|
];
|
|
29103
29079
|
|
|
29104
|
-
var ErrorCodes = {
|
|
29080
|
+
var ErrorCodes$2 = {
|
|
29105
29081
|
LOAD_PERSONS_ERROR: 100,
|
|
29106
29082
|
SAVE_PERSONS_ERROR: 101,
|
|
29107
29083
|
DELETE_PERSONS_ERROR: 102,
|
|
@@ -29212,7 +29188,7 @@
|
|
|
29212
29188
|
exports.EntityStore = EntityStore;
|
|
29213
29189
|
exports.EntityUtils = EntityUtils;
|
|
29214
29190
|
exports.Environment = Environment;
|
|
29215
|
-
exports.ErrorCodes = ErrorCodes;
|
|
29191
|
+
exports.ErrorCodes = ErrorCodes$2;
|
|
29216
29192
|
exports.EvenPipe = EvenPipe;
|
|
29217
29193
|
exports.FileService = FileService;
|
|
29218
29194
|
exports.FileSizePipe = FileSizePipe;
|
|
@@ -29222,7 +29198,7 @@
|
|
|
29222
29198
|
exports.FormErrorTranslatePipe = FormErrorTranslatePipe;
|
|
29223
29199
|
exports.FormErrorTranslator = FormErrorTranslator;
|
|
29224
29200
|
exports.FormFieldValuesHolder = FormFieldValuesHolder;
|
|
29225
|
-
exports.Fragments = Fragments;
|
|
29201
|
+
exports.Fragments = Fragments$1;
|
|
29226
29202
|
exports.GraphqlService = GraphqlService;
|
|
29227
29203
|
exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
|
|
29228
29204
|
exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
|
|
@@ -29475,20 +29451,20 @@
|
|
|
29475
29451
|
exports.waitForTrue = waitForTrue;
|
|
29476
29452
|
exports.waitIdle = waitIdle;
|
|
29477
29453
|
exports.waitWhilePending = waitWhilePending;
|
|
29478
|
-
exports
|
|
29479
|
-
exports
|
|
29480
|
-
exports
|
|
29481
|
-
exports
|
|
29482
|
-
exports
|
|
29483
|
-
exports
|
|
29484
|
-
exports
|
|
29485
|
-
exports
|
|
29486
|
-
exports
|
|
29487
|
-
exports
|
|
29488
|
-
exports
|
|
29489
|
-
exports
|
|
29454
|
+
exports.ɵa = CustomReuseStrategy;
|
|
29455
|
+
exports.ɵb = MatNumpadDomService;
|
|
29456
|
+
exports.ɵc = SharedMatBadgeIconModule;
|
|
29457
|
+
exports.ɵd = MatBadgeIconDirective;
|
|
29458
|
+
exports.ɵe = isFocusableElement;
|
|
29459
|
+
exports.ɵf = MatBadgeIconTestPage;
|
|
29460
|
+
exports.ɵg = RegisterForm;
|
|
29461
|
+
exports.ɵh = AccountValidatorService;
|
|
29462
|
+
exports.ɵi = RegisterModal;
|
|
29463
|
+
exports.ɵj = UserSettingsValidatorService;
|
|
29464
|
+
exports.ɵk = LocalSettingsValidatorService;
|
|
29465
|
+
exports.ɵl = AppIconComponent;
|
|
29490
29466
|
|
|
29491
29467
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
29492
29468
|
|
|
29493
|
-
}));
|
|
29469
|
+
})));
|
|
29494
29470
|
//# sourceMappingURL=sumaris-net.ngx-components.umd.js.map
|