@sumaris-net/ngx-components 1.6.9 → 1.6.13
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 +334 -302
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/public_api.js +3 -3
- package/esm2015/src/app/core/auth/form/form-auth.js +2 -2
- package/esm2015/src/app/core/table/table.class.js +2 -2
- package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.js +25 -22
- package/esm2015/src/app/shared/material/chips/material.chips.js +21 -9
- package/esm2015/src/app/shared/material/datetime/material.date.js +2 -2
- package/esm2015/src/app/shared/material/datetime/material.datetime.js +1 -1
- package/esm2015/src/app/shared/pipes/translate-context.pipe.js +3 -5
- package/fesm2015/sumaris-net.ngx-components.js +318 -290
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +2 -2
- package/src/app/shared/pipes/translate-context.pipe.d.ts +1 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/cdk/table'), require('@angular/cdk/a11y'), require('@angular/cdk/overlay'), require('@angular/cdk/scrolling'), require('@angular/material/core'), require('@angular/material/table'), require('@angular/material/sort'), require('@angular/material/paginator'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/checkbox'), require('@angular/material/expansion'), require('@angular/material/toolbar'), require('@angular/material/icon'), require('@angular/material/button'), require('@angular/material/menu'), require('@angular/material/select'), require('@angular/material/card'), require('@angular/material/tabs'), require('@angular/material/stepper'), require('@angular/material/list'), require('@angular/material/button-toggle'), require('@angular/material/progress-spinner'), require('@angular/material/progress-bar'), require('@angular/material/radio'), require('@angular/material/badge'), require('@angular/material/slide-toggle'), require('@angular/material/dialog'), require('@angular/material/autocomplete'), require('@angular/forms'), require('rxjs'), require('rxjs/operators'), require('@ngx-translate/core'), require('@ionic/angular'), require('moment'), require('@angular/material-moment-adapter'), require('@ionic-native/keyboard/ngx'), require('angular2-text-mask'), require('ngx-material-timepicker'), require('@angular/material/datepicker'), require('@angular/animations'), require('@angular/material/divider'), require('@angular/material/tooltip'), require('@angular/material/chips'), require('@angular/router'), require('@angular/platform-browser'), require('@angular/common/http'), require('ngx-color-picker'), require('@ionic-native/native-audio/ngx'), require('@ionic-native/vibration/ngx'), require('@ionic-native/audio-management/ngx'), require('@ionic-native/native-audio/ngx/index'), require('@ionic-native/vibration/ngx/index'), require('@ionic-native/audio-management/ngx/index'), require('uuid/v4'), require('@angular/cdk/drag-drop'), require('ngx-markdown'), require('tweetnacl'), require('@ionic/storage'), require('zone.js/dist/zone-error'), require('@ionic-native/splash-screen/ngx'), require('@ionic-native/network/ngx'), require('ionic-cache'), require('ionic-cache/dist/cache.service'), require('@ionic-native/network/ngx/index'), require('@ionic-native/splash-screen/ngx/index'), require('@ionic-native/status-bar/ngx'), require('@angular/cdk/platform'), require('@ionic-native/in-app-browser/ngx'), require('@apollo/client/core'), require('apollo-angular'), require('@apollo/client/link/ws'), require('@apollo/client/utilities'), require('@apollo/client/link/retry'), require('apollo-link-queue'), require('apollo-link-serialize'), require('apollo-link-logger'), require('apollo-angular/http'), require('apollo3-cache-persist'), require('@ionic-native/downloader/ngx'), require('@ionic-native/status-bar/ngx/index'), require('@ionic-native/keyboard/ngx/index'), require('@ionic-native/in-app-browser/ngx/index'), require('@ionic-native/downloader/ngx/index'), require('@e-is/ngx-material-table'), require('@angular/cdk/collections'), require('ngx-jdenticon'), require('tweetnacl-util'), require('scrypt-async'), require('hammerjs')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@sumaris-net/ngx-components', ['exports', '@angular/core', '@angular/common', '@angular/cdk/table', '@angular/cdk/a11y', '@angular/cdk/overlay', '@angular/cdk/scrolling', '@angular/material/core', '@angular/material/table', '@angular/material/sort', '@angular/material/paginator', '@angular/material/form-field', '@angular/material/input', '@angular/material/checkbox', '@angular/material/expansion', '@angular/material/toolbar', '@angular/material/icon', '@angular/material/button', '@angular/material/menu', '@angular/material/select', '@angular/material/card', '@angular/material/tabs', '@angular/material/stepper', '@angular/material/list', '@angular/material/button-toggle', '@angular/material/progress-spinner', '@angular/material/progress-bar', '@angular/material/radio', '@angular/material/badge', '@angular/material/slide-toggle', '@angular/material/dialog', '@angular/material/autocomplete', '@angular/forms', 'rxjs', 'rxjs/operators', '@ngx-translate/core', '@ionic/angular', 'moment', '@angular/material-moment-adapter', '@ionic-native/keyboard/ngx', 'angular2-text-mask', 'ngx-material-timepicker', '@angular/material/datepicker', '@angular/animations', '@angular/material/divider', '@angular/material/tooltip', '@angular/material/chips', '@angular/router', '@angular/platform-browser', '@angular/common/http', 'ngx-color-picker', '@ionic-native/native-audio/ngx', '@ionic-native/vibration/ngx', '@ionic-native/audio-management/ngx', '@ionic-native/native-audio/ngx/index', '@ionic-native/vibration/ngx/index', '@ionic-native/audio-management/ngx/index', 'uuid/v4', '@angular/cdk/drag-drop', 'ngx-markdown', 'tweetnacl', '@ionic/storage', 'zone.js/dist/zone-error', '@ionic-native/splash-screen/ngx', '@ionic-native/network/ngx', 'ionic-cache', 'ionic-cache/dist/cache.service', '@ionic-native/network/ngx/index', '@ionic-native/splash-screen/ngx/index', '@ionic-native/status-bar/ngx', '@angular/cdk/platform', '@ionic-native/in-app-browser/ngx', '@apollo/client/core', 'apollo-angular', '@apollo/client/link/ws', '@apollo/client/utilities', '@apollo/client/link/retry', 'apollo-link-queue', 'apollo-link-serialize', 'apollo-link-logger', 'apollo-angular/http', 'apollo3-cache-persist', '@ionic-native/downloader/ngx', '@ionic-native/status-bar/ngx/index', '@ionic-native/keyboard/ngx/index', '@ionic-native/in-app-browser/ngx/index', '@ionic-native/downloader/ngx/index', '@e-is/ngx-material-table', '@angular/cdk/collections', 'ngx-jdenticon', 'tweetnacl-util', 'scrypt-async', 'hammerjs'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global[
|
|
5
|
-
}(this, (function (exports, i0, i1$4, table$1, a11y, overlay, scrolling, i1$3, table, sort$1, paginator, formField, input, checkbox, expansion, toolbar, icon, button, menu, select, card, tabs, stepper, list, buttonToggle, progressSpinner, progressBar, radio, badge, slideToggle, i2, autocomplete, i1, rxjs, operators, i1$2, i1$5, momentImported, i1$1, ngx, angular2TextMask, ngxMaterialTimepicker, datepicker, animations, divider, tooltip, chips, i3, i1$6, i2$1, ngxColorPicker, ngx$2, ngx$3, ngx$1, i2$2, i3$1, i4, uuidv4Imported, dragDrop, ngxMarkdown, tweetnacl, i3$2, zoneError, ngx$5, ngx$4, ionicCache, i6, i9, i10, ngx$7, i2$4, ngx$8, core, i2$3, ws, utilities, retry, QueueLink, SerializingLink, loggerLink, i3$3, apollo3CachePersist, ngx$6, i14, i15, i17, i18, ngxMaterialTable, collections, ngxJdenticon) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["sumaris-net"] = global["sumaris-net"] || {}, global["sumaris-net"]["ngx-components"] = {}), global.ng.core, global.ng.common, global.ng.cdk.table, global.ng.cdk.a11y, global.ng.cdk.overlay, global.ng.cdk.scrolling, global.ng.material.core, global.ng.material.table, global.ng.material.sort, global.ng.material.paginator, global.ng.material.formField, global.ng.material.input, global.ng.material.checkbox, global.ng.material.expansion, global.ng.material.toolbar, global.ng.material.icon, global.ng.material.button, global.ng.material.menu, global.ng.material.select, global.ng.material.card, global.ng.material.tabs, global.ng.material.stepper, global.ng.material.list, global.ng.material.buttonToggle, global.ng.material.progressSpinner, global.ng.material.progressBar, global.ng.material.radio, global.ng.material.badge, global.ng.material.slideToggle, global.ng.material.dialog, global.ng.material.autocomplete, global.ng.forms, global.rxjs, global.rxjs.operators, global["ngx-translate"].core, global.ionic.angular, global.moment, global.ng.materialMomentAdapter, global["ionic-native"].keyboard.ngx, global["angular2-text-mask"], global["ngx-material-timepicker"], global.ng.material.datepicker, global.ng.animations, global.ng.material.divider, global.ng.material.tooltip, global.ng.material.chips, global.ng.router, global.ng.platformBrowser, global.ng.common.http, global["ngx-color-picker"], global["ionic-native"]["native-audio"].ngx, global["ionic-native"].vibration.ngx, global["ionic-native"]["audio-management"].ngx, global["ionic-native"]["native-audio"].ngx.index, global["ionic-native"].vibration.ngx.index, global["ionic-native"]["audio-management"].ngx.index, global.uuid.v4, global.ng.cdk.dragDrop, global["ngx-markdown"], global.tweetnacl, global.ionic.storage, null, global["ionic-native"]["splash-screen"].ngx, global["ionic-native"].network.ngx, global["ionic-cache"], global["ionic-cache/dist/cache"].service, global["ionic-native"].network.ngx.index, global["ionic-native"]["splash-screen"].ngx.index, global["ionic-native"]["status-bar"].ngx, global.ng.cdk.platform, global["ionic-native"]["in-app-browser"].ngx, global.apollo.client.core, global["apollo-angular"], global.apollo.client.link.ws, global.apollo.client.utilities, global.apollo.client.link.retry, global["apollo-link-queue"], global["apollo-link-serialize"], global["apollo-link-logger"], global["apollo-angular"].http, global["apollo3-cache-persist"], global["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,22 +15,45 @@
|
|
|
15
15
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
16
|
Object.defineProperty(n, k, d.get ? d : {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () {
|
|
19
|
-
return e[k];
|
|
20
|
-
}
|
|
18
|
+
get: function () { return e[k]; }
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
21
|
});
|
|
24
22
|
}
|
|
25
|
-
n[
|
|
23
|
+
n["default"] = e;
|
|
26
24
|
return Object.freeze(n);
|
|
27
25
|
}
|
|
28
26
|
|
|
27
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
+
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
29
|
+
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
30
|
+
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2);
|
|
31
|
+
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1);
|
|
32
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
33
|
+
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
29
34
|
var momentImported__namespace = /*#__PURE__*/_interopNamespace(momentImported);
|
|
35
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
|
|
36
|
+
var i3__namespace$3 = /*#__PURE__*/_interopNamespace(i3);
|
|
37
|
+
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
38
|
+
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
39
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2$2);
|
|
40
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3$1);
|
|
41
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
30
42
|
var uuidv4Imported__namespace = /*#__PURE__*/_interopNamespace(uuidv4Imported);
|
|
43
|
+
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
44
|
+
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
45
|
+
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
46
|
+
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
47
|
+
var i2__namespace$4 = /*#__PURE__*/_interopNamespace(i2$4);
|
|
48
|
+
var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
|
|
31
49
|
var QueueLink__default = /*#__PURE__*/_interopDefaultLegacy(QueueLink);
|
|
32
50
|
var SerializingLink__default = /*#__PURE__*/_interopDefaultLegacy(SerializingLink);
|
|
33
51
|
var loggerLink__default = /*#__PURE__*/_interopDefaultLegacy(loggerLink);
|
|
52
|
+
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$3);
|
|
53
|
+
var i14__namespace = /*#__PURE__*/_interopNamespace(i14);
|
|
54
|
+
var i15__namespace = /*#__PURE__*/_interopNamespace(i15);
|
|
55
|
+
var i17__namespace = /*#__PURE__*/_interopNamespace(i17);
|
|
56
|
+
var i18__namespace = /*#__PURE__*/_interopNamespace(i18);
|
|
34
57
|
|
|
35
58
|
var ENVIRONMENT = new i0.InjectionToken('ENV');
|
|
36
59
|
var Environment = /** @class */ (function () {
|
|
@@ -1255,14 +1278,14 @@
|
|
|
1255
1278
|
};
|
|
1256
1279
|
return MatAutocompleteConfigHolder;
|
|
1257
1280
|
}());
|
|
1258
|
-
var noop = function (_) { };
|
|
1259
|
-
var ɵ0 = noop;
|
|
1281
|
+
var noop$8 = function (_) { };
|
|
1282
|
+
var ɵ0$b = noop$8;
|
|
1260
1283
|
var MatAutocompleteField = /** @class */ (function () {
|
|
1261
1284
|
function MatAutocompleteField(cd, formGroupDir) {
|
|
1262
1285
|
this.cd = cd;
|
|
1263
1286
|
this.formGroupDir = formGroupDir;
|
|
1264
|
-
this._onChangeCallback = noop;
|
|
1265
|
-
this._onTouchedCallback = noop;
|
|
1287
|
+
this._onChangeCallback = noop$8;
|
|
1288
|
+
this._onTouchedCallback = noop$8;
|
|
1266
1289
|
this.logPrefix = '[mat-autocomplete] ';
|
|
1267
1290
|
this.formControlName = null;
|
|
1268
1291
|
this.required = false;
|
|
@@ -1505,9 +1528,10 @@
|
|
|
1505
1528
|
// Filter if not enough character
|
|
1506
1529
|
operators.filter(function (value) { return value.length >= _this.suggestLengthThreshold; }),
|
|
1507
1530
|
// Wait a debounce time
|
|
1508
|
-
operators.debounceTime(this.debounceTime)
|
|
1531
|
+
operators.debounceTime(this.debounceTime)
|
|
1509
1532
|
// DEBUG
|
|
1510
|
-
|
|
1533
|
+
//,tap((value) => this.debug && console.debug(this.logPrefix + ' Search text changes:', value))
|
|
1534
|
+
),
|
|
1511
1535
|
// Object set: use it (no distinctUntilChanged() pipe need)
|
|
1512
1536
|
this.formControl.valueChanges
|
|
1513
1537
|
.pipe(operators.startWith(this.formControl.value), operators.filter(function (value) { return (_this.searchable && isNotNil(value) && typeof value === 'object'); }), operators.tap(function (value) {
|
|
@@ -1523,35 +1547,38 @@
|
|
|
1523
1547
|
_this.matInputText.nativeElement.value = _this.displayValue;
|
|
1524
1548
|
}
|
|
1525
1549
|
}
|
|
1526
|
-
})
|
|
1550
|
+
})
|
|
1527
1551
|
// DEBUG
|
|
1528
|
-
|
|
1552
|
+
//,tap(value => this.debug && console.debug(this.logPrefix + ' Received an object value: ', value))
|
|
1553
|
+
),
|
|
1529
1554
|
// On dropdown button click (no distinctUntilChanged(), nor debounceTime)
|
|
1530
1555
|
this.dropButtonClick
|
|
1531
1556
|
.pipe(operators.filter(function (event) { return _this.searchable && _this.enabled && (!event || !event.defaultPrevented); }), operators.map(function (_) { return _this.showAllOnFocus ? '*' : _this.formControl.value; }),
|
|
1532
|
-
// Make enough characters
|
|
1557
|
+
// Make sure there is enough characters
|
|
1533
1558
|
operators.filter(thresholdFilterFn)),
|
|
1534
1559
|
// Merge some observables, with a common distinctUntilChanged() pipe, and NO debounceTime
|
|
1535
1560
|
rxjs.merge(
|
|
1536
1561
|
// Focus or click => Load all
|
|
1537
1562
|
rxjs.merge(this.focused, this.clicked)
|
|
1538
|
-
.pipe(operators.filter(function (_) { return _this.enabled && _this.searchable; }), operators.map(function (_) { return _this.showAllOnFocus ? '*' : _this.formControl.value; })
|
|
1539
|
-
// DEBUG
|
|
1540
|
-
operators.tap(function (value) { return _this.debug && console.debug(_this.logPrefix + ' Received focused or clicked event: ', value); })), rxjs.merge(this.$inputItems, this._$filter)
|
|
1541
|
-
.pipe(operators.filter(function (_) { return _this.searchable && _this.enabled; }), operators.map(function (_) { return _this.formControl.value; }),
|
|
1563
|
+
.pipe(operators.filter(function (_) { return _this.enabled && _this.searchable; }), operators.map(function (_) { return _this.showAllOnFocus ? '*' : _this.formControl.value; })
|
|
1542
1564
|
// DEBUG
|
|
1543
|
-
|
|
1565
|
+
//,tap(value => this.debug && console.debug(this.logPrefix + ' Received focused or clicked event: ', value))
|
|
1566
|
+
), rxjs.merge(this.$inputItems, this._$filter)
|
|
1567
|
+
.pipe(operators.filter(function (_) { return _this.searchable && _this.enabled; }), operators.map(function (_) { return _this.formControl.value; })))
|
|
1544
1568
|
.pipe(
|
|
1545
1569
|
// Make sure there is enough characters
|
|
1546
1570
|
operators.filter(thresholdFilterFn),
|
|
1547
1571
|
// Distinguish changes
|
|
1548
1572
|
// - do NOT filter if loading, to force update after a blur event
|
|
1549
|
-
operators.distinctUntilChanged(function (v1, v2) { return !_this.loading && (v1 === v2 || _this.equals(v1, v2)); })
|
|
1573
|
+
operators.distinctUntilChanged(function (v1, v2) { return !_this.loading && (v1 === v2 || _this.equals(v1, v2)); })
|
|
1574
|
+
// DEBUG
|
|
1575
|
+
//,tap(value => this.debug && console.debug(this.logPrefix + ' Received update event: ', value))
|
|
1576
|
+
))
|
|
1550
1577
|
.pipe(
|
|
1551
1578
|
// Suggest values
|
|
1552
1579
|
operators.mergeMap(function (value) { return _this.suggest(value, _this.filter); }),
|
|
1553
1580
|
// DEBUG
|
|
1554
|
-
|
|
1581
|
+
//tap(items => this.debug && console.debug(this.logPrefix + ' Received from suggest: ', items)),
|
|
1555
1582
|
// Store implicit value (will use it onBlur if not other value selected)
|
|
1556
1583
|
operators.tap(function (items) { return _this.updateImplicitValue(items); }));
|
|
1557
1584
|
// Fetch more events
|
|
@@ -1584,9 +1611,10 @@
|
|
|
1584
1611
|
this._subscription.add(this.blurred
|
|
1585
1612
|
.pipe(
|
|
1586
1613
|
// Skip if not searchable
|
|
1587
|
-
operators.filter(function (_) { return _this.searchable; }), operators.map(function (_) { return _this.formControl.value; })
|
|
1614
|
+
operators.filter(function (_) { return _this.searchable; }), operators.map(function (_) { return _this.formControl.value; })
|
|
1588
1615
|
// DEBUG
|
|
1589
|
-
|
|
1616
|
+
//,tap(value => this.debug && console.debug(this.logPrefix + ' Received blurred event: ', value)),
|
|
1617
|
+
)
|
|
1590
1618
|
.subscribe(function (value) {
|
|
1591
1619
|
// When leave component without object, use implicit value if :
|
|
1592
1620
|
// - an explicit value
|
|
@@ -1672,7 +1700,7 @@
|
|
|
1672
1700
|
};
|
|
1673
1701
|
MatAutocompleteField.prototype.writeValue = function (value) {
|
|
1674
1702
|
// DEBUG
|
|
1675
|
-
// console.debug(this.logPrefix + ' Writing value: ', value);
|
|
1703
|
+
// if (this.debug) console.debug(this.logPrefix + ' Writing value: ', value);
|
|
1676
1704
|
if (value !== this.formControl.value) {
|
|
1677
1705
|
this.formControl.patchValue(value, { emitEvent: false });
|
|
1678
1706
|
this._onChangeCallback(value);
|
|
@@ -1710,18 +1738,16 @@
|
|
|
1710
1738
|
event.stopPropagation();
|
|
1711
1739
|
event.returnValue = false;
|
|
1712
1740
|
// DEBUG
|
|
1713
|
-
if (this.debug)
|
|
1714
|
-
console.debug(this.logPrefix + ' Cancelling focus event');
|
|
1741
|
+
//if (this.debug) console.debug(this.logPrefix + ' Cancelling focus event');
|
|
1715
1742
|
return false;
|
|
1716
1743
|
}
|
|
1717
|
-
|
|
1718
|
-
|
|
1744
|
+
// DEBUG
|
|
1745
|
+
//if (this.debug) console.debug(this.logPrefix + ' Select input content');
|
|
1719
1746
|
var hasContent = true; // selectInputContent(event);
|
|
1720
1747
|
// If combo is empty, or if has content but should force to show panel on focus
|
|
1721
1748
|
if (!hasContent || this.showPanelOnFocus || this.showAllOnFocus) {
|
|
1722
1749
|
// DEBUG
|
|
1723
|
-
if (this.debug)
|
|
1724
|
-
console.debug(this.logPrefix + ' Emit focus event');
|
|
1750
|
+
//if (this.debug) console.debug(this.logPrefix + ' Emit focus event');
|
|
1725
1751
|
this.focused.emit();
|
|
1726
1752
|
return true;
|
|
1727
1753
|
}
|
|
@@ -2052,7 +2078,7 @@
|
|
|
2052
2078
|
};
|
|
2053
2079
|
return DateFormatPipe;
|
|
2054
2080
|
}());
|
|
2055
|
-
DateFormatPipe.ɵprov =
|
|
2081
|
+
DateFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DateFormatPipe_Factory() { return new DateFormatPipe(i0__namespace.ɵɵinject(i1__namespace.MomentDateAdapter), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: DateFormatPipe, providedIn: "root" });
|
|
2056
2082
|
DateFormatPipe.decorators = [
|
|
2057
2083
|
{ type: i0.Pipe, args: [{
|
|
2058
2084
|
name: 'dateFormat'
|
|
@@ -2064,7 +2090,7 @@
|
|
|
2064
2090
|
{ type: i1$2.TranslateService }
|
|
2065
2091
|
]; };
|
|
2066
2092
|
|
|
2067
|
-
var moment = momentImported__namespace;
|
|
2093
|
+
var moment$6 = momentImported__namespace;
|
|
2068
2094
|
var DateDiffDurationPipe = /** @class */ (function () {
|
|
2069
2095
|
function DateDiffDurationPipe(dateAdapter, translate) {
|
|
2070
2096
|
var _this = this;
|
|
@@ -2081,10 +2107,10 @@
|
|
|
2081
2107
|
return this.format(startDate, endDate);
|
|
2082
2108
|
};
|
|
2083
2109
|
DateDiffDurationPipe.prototype.format = function (startDate, endDate) {
|
|
2084
|
-
var duration = moment.duration(endDate.diff(startDate));
|
|
2110
|
+
var duration = moment$6.duration(endDate.diff(startDate));
|
|
2085
2111
|
if (duration.asMinutes() < 0)
|
|
2086
2112
|
return '';
|
|
2087
|
-
var timeDuration = moment(0)
|
|
2113
|
+
var timeDuration = moment$6(0)
|
|
2088
2114
|
.hour(duration.hours())
|
|
2089
2115
|
.minute(duration.minutes());
|
|
2090
2116
|
var days = Math.floor(duration.asDays());
|
|
@@ -2092,7 +2118,7 @@
|
|
|
2092
2118
|
};
|
|
2093
2119
|
return DateDiffDurationPipe;
|
|
2094
2120
|
}());
|
|
2095
|
-
DateDiffDurationPipe.ɵprov =
|
|
2121
|
+
DateDiffDurationPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DateDiffDurationPipe_Factory() { return new DateDiffDurationPipe(i0__namespace.ɵɵinject(i1__namespace$2.DateAdapter), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: DateDiffDurationPipe, providedIn: "root" });
|
|
2096
2122
|
DateDiffDurationPipe.decorators = [
|
|
2097
2123
|
{ type: i0.Pipe, args: [{
|
|
2098
2124
|
name: 'dateDiffDuration'
|
|
@@ -2114,7 +2140,7 @@
|
|
|
2114
2140
|
};
|
|
2115
2141
|
return DateFromNowPipe;
|
|
2116
2142
|
}());
|
|
2117
|
-
DateFromNowPipe.ɵprov =
|
|
2143
|
+
DateFromNowPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0__namespace.ɵɵinject(i1__namespace.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
|
|
2118
2144
|
DateFromNowPipe.decorators = [
|
|
2119
2145
|
{ type: i0.Pipe, args: [{
|
|
2120
2146
|
name: 'dateFromNow'
|
|
@@ -2183,7 +2209,7 @@
|
|
|
2183
2209
|
value *= -1;
|
|
2184
2210
|
}
|
|
2185
2211
|
}
|
|
2186
|
-
var degrees = roundFloat(value, opts.maxDecimals).toString();
|
|
2212
|
+
var degrees = roundFloat$1(value, opts.maxDecimals).toString();
|
|
2187
2213
|
// Add sign
|
|
2188
2214
|
var sign = negative ? '-' : '+';
|
|
2189
2215
|
if (opts.placeholderChar) {
|
|
@@ -2234,7 +2260,7 @@
|
|
|
2234
2260
|
}
|
|
2235
2261
|
var degrees = Math.trunc(value);
|
|
2236
2262
|
var minutes = Math.trunc((value - degrees) * 60);
|
|
2237
|
-
var seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
|
|
2263
|
+
var seconds = roundFloat$1(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
|
|
2238
2264
|
while (seconds >= 60) {
|
|
2239
2265
|
seconds -= 60;
|
|
2240
2266
|
minutes += 1;
|
|
@@ -2302,7 +2328,7 @@
|
|
|
2302
2328
|
}
|
|
2303
2329
|
}
|
|
2304
2330
|
var degrees = Math.trunc(value);
|
|
2305
|
-
var minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
|
|
2331
|
+
var minutes = roundFloat$1((value - degrees) * 60, opts.maxDecimals);
|
|
2306
2332
|
while (minutes >= 60) {
|
|
2307
2333
|
minutes -= 60;
|
|
2308
2334
|
degrees += 1;
|
|
@@ -2353,15 +2379,15 @@
|
|
|
2353
2379
|
return NaN;
|
|
2354
2380
|
}
|
|
2355
2381
|
if (pattern === 'DD')
|
|
2356
|
-
return roundFloat(degrees, maxDecimals);
|
|
2382
|
+
return roundFloat$1(degrees, maxDecimals);
|
|
2357
2383
|
var minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
|
|
2358
2384
|
var seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
|
|
2359
2385
|
var direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
|
|
2360
2386
|
var sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
|
|
2361
2387
|
degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
|
|
2362
|
-
return roundFloat(degrees, maxDecimals);
|
|
2388
|
+
return roundFloat$1(degrees, maxDecimals);
|
|
2363
2389
|
}
|
|
2364
|
-
function roundFloat(input, maxDecimals) {
|
|
2390
|
+
function roundFloat$1(input, maxDecimals) {
|
|
2365
2391
|
if (maxDecimals > 0) {
|
|
2366
2392
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
2367
2393
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -2384,7 +2410,7 @@
|
|
|
2384
2410
|
};
|
|
2385
2411
|
return LatLongFormatPipe;
|
|
2386
2412
|
}());
|
|
2387
|
-
LatLongFormatPipe.ɵprov =
|
|
2413
|
+
LatLongFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
|
|
2388
2414
|
LatLongFormatPipe.decorators = [
|
|
2389
2415
|
{ type: i0.Pipe, args: [{
|
|
2390
2416
|
name: 'latLongFormat'
|
|
@@ -2397,7 +2423,7 @@
|
|
|
2397
2423
|
}
|
|
2398
2424
|
return LatitudeFormatPipe;
|
|
2399
2425
|
}());
|
|
2400
|
-
LatitudeFormatPipe.ɵprov =
|
|
2426
|
+
LatitudeFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
|
|
2401
2427
|
LatitudeFormatPipe.decorators = [
|
|
2402
2428
|
{ type: i0.Pipe, args: [{
|
|
2403
2429
|
name: 'latitudeFormat'
|
|
@@ -2410,7 +2436,7 @@
|
|
|
2410
2436
|
}
|
|
2411
2437
|
return LongitudeFormatPipe;
|
|
2412
2438
|
}());
|
|
2413
|
-
LongitudeFormatPipe.ɵprov =
|
|
2439
|
+
LongitudeFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
|
|
2414
2440
|
LongitudeFormatPipe.decorators = [
|
|
2415
2441
|
{ type: i0.Pipe, args: [{
|
|
2416
2442
|
name: 'longitudeFormat'
|
|
@@ -2433,7 +2459,7 @@
|
|
|
2433
2459
|
};
|
|
2434
2460
|
return NumberFormatPipe;
|
|
2435
2461
|
}());
|
|
2436
|
-
NumberFormatPipe.ɵprov =
|
|
2462
|
+
NumberFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
|
|
2437
2463
|
NumberFormatPipe.decorators = [
|
|
2438
2464
|
{ type: i0.Pipe, args: [{
|
|
2439
2465
|
name: 'numberFormat'
|
|
@@ -2476,7 +2502,7 @@
|
|
|
2476
2502
|
};
|
|
2477
2503
|
return HighlightPipe;
|
|
2478
2504
|
}());
|
|
2479
|
-
HighlightPipe.ɵprov =
|
|
2505
|
+
HighlightPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
|
|
2480
2506
|
HighlightPipe.decorators = [
|
|
2481
2507
|
{ type: i0.Pipe, args: [{
|
|
2482
2508
|
name: 'highlight'
|
|
@@ -2544,7 +2570,7 @@
|
|
|
2544
2570
|
{ type: i0.Pipe, args: [{ name: 'fileSize' },] }
|
|
2545
2571
|
];
|
|
2546
2572
|
|
|
2547
|
-
var moment$
|
|
2573
|
+
var moment$5 = momentImported__namespace;
|
|
2548
2574
|
var DATE_UNIX_TIMESTAMP = 'X';
|
|
2549
2575
|
var DATE_UNIX_MS_TIMESTAMP = 'x';
|
|
2550
2576
|
var DateUtils = /** @class */ (function () {
|
|
@@ -2587,32 +2613,32 @@
|
|
|
2587
2613
|
if (!value || momentImported.isMoment(value))
|
|
2588
2614
|
return value;
|
|
2589
2615
|
// Parse the input value, as a ISO date time
|
|
2590
|
-
var date = moment$
|
|
2616
|
+
var date = moment$5(value, DATE_ISO_PATTERN);
|
|
2591
2617
|
if (date.isValid())
|
|
2592
2618
|
return date;
|
|
2593
2619
|
// Not valid: trying to convert from unix timestamp
|
|
2594
2620
|
if (typeof value === 'string') {
|
|
2595
2621
|
console.warn('Wrong date format - Trying to convert from local time: ' + value);
|
|
2596
2622
|
if (value.length === 10) {
|
|
2597
|
-
return moment$
|
|
2623
|
+
return moment$5(value, DATE_UNIX_TIMESTAMP);
|
|
2598
2624
|
}
|
|
2599
2625
|
else if (value.length === 13) {
|
|
2600
|
-
return moment$
|
|
2626
|
+
return moment$5(value, DATE_UNIX_MS_TIMESTAMP);
|
|
2601
2627
|
}
|
|
2602
2628
|
}
|
|
2603
2629
|
console.warn('Unable to parse date: ' + value);
|
|
2604
2630
|
return undefined;
|
|
2605
2631
|
}
|
|
2606
2632
|
function fromUnixTimestamp(timeInSec) {
|
|
2607
|
-
return moment$
|
|
2633
|
+
return moment$5(timeInSec, DATE_UNIX_TIMESTAMP);
|
|
2608
2634
|
}
|
|
2609
2635
|
function fromUnixMsTimestamp(timeInMs) {
|
|
2610
|
-
return moment$
|
|
2636
|
+
return moment$5(timeInMs, DATE_UNIX_MS_TIMESTAMP);
|
|
2611
2637
|
}
|
|
2612
2638
|
function toDuration(value, unit) {
|
|
2613
2639
|
if (!value)
|
|
2614
2640
|
return undefined;
|
|
2615
|
-
var duration = moment$
|
|
2641
|
+
var duration = moment$5.duration(value, unit);
|
|
2616
2642
|
// fix 990+ ms
|
|
2617
2643
|
if (duration.milliseconds() >= 990) {
|
|
2618
2644
|
duration.add(1000 - duration.milliseconds(), 'ms');
|
|
@@ -2642,7 +2668,7 @@
|
|
|
2642
2668
|
};
|
|
2643
2669
|
return DurationPipe;
|
|
2644
2670
|
}());
|
|
2645
|
-
DurationPipe.ɵprov =
|
|
2671
|
+
DurationPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: DurationPipe, providedIn: "root" });
|
|
2646
2672
|
DurationPipe.decorators = [
|
|
2647
2673
|
{ type: i0.Pipe, args: [{
|
|
2648
2674
|
name: 'duration'
|
|
@@ -2666,7 +2692,7 @@
|
|
|
2666
2692
|
};
|
|
2667
2693
|
return MathAbsPipe;
|
|
2668
2694
|
}());
|
|
2669
|
-
MathAbsPipe.ɵprov =
|
|
2695
|
+
MathAbsPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
|
|
2670
2696
|
MathAbsPipe.decorators = [
|
|
2671
2697
|
{ type: i0.Pipe, args: [{
|
|
2672
2698
|
name: 'mathAbs'
|
|
@@ -2681,7 +2707,7 @@
|
|
|
2681
2707
|
};
|
|
2682
2708
|
return EvenPipe;
|
|
2683
2709
|
}());
|
|
2684
|
-
EvenPipe.ɵprov =
|
|
2710
|
+
EvenPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
|
|
2685
2711
|
EvenPipe.decorators = [
|
|
2686
2712
|
{ type: i0.Pipe, args: [{
|
|
2687
2713
|
name: 'even'
|
|
@@ -2696,7 +2722,7 @@
|
|
|
2696
2722
|
};
|
|
2697
2723
|
return OddPipe;
|
|
2698
2724
|
}());
|
|
2699
|
-
OddPipe.ɵprov =
|
|
2725
|
+
OddPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
|
|
2700
2726
|
OddPipe.decorators = [
|
|
2701
2727
|
{ type: i0.Pipe, args: [{
|
|
2702
2728
|
name: 'odd'
|
|
@@ -2828,7 +2854,7 @@
|
|
|
2828
2854
|
};
|
|
2829
2855
|
return MapGetPipe;
|
|
2830
2856
|
}());
|
|
2831
|
-
MapGetPipe.ɵprov =
|
|
2857
|
+
MapGetPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
|
|
2832
2858
|
MapGetPipe.decorators = [
|
|
2833
2859
|
{ type: i0.Pipe, args: [{
|
|
2834
2860
|
name: 'mapGet'
|
|
@@ -2845,7 +2871,7 @@
|
|
|
2845
2871
|
};
|
|
2846
2872
|
return MapKeysPipe;
|
|
2847
2873
|
}());
|
|
2848
|
-
MapKeysPipe.ɵprov =
|
|
2874
|
+
MapKeysPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
|
|
2849
2875
|
MapKeysPipe.decorators = [
|
|
2850
2876
|
{ type: i0.Pipe, args: [{
|
|
2851
2877
|
name: 'mapKeys'
|
|
@@ -2862,7 +2888,7 @@
|
|
|
2862
2888
|
};
|
|
2863
2889
|
return MapValuesPipe;
|
|
2864
2890
|
}());
|
|
2865
|
-
MapValuesPipe.ɵprov =
|
|
2891
|
+
MapValuesPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
|
|
2866
2892
|
MapValuesPipe.decorators = [
|
|
2867
2893
|
{ type: i0.Pipe, args: [{
|
|
2868
2894
|
name: 'mapValues'
|
|
@@ -2878,7 +2904,7 @@
|
|
|
2878
2904
|
};
|
|
2879
2905
|
return IsNotNilOrBlankPipe;
|
|
2880
2906
|
}());
|
|
2881
|
-
IsNotNilOrBlankPipe.ɵprov =
|
|
2907
|
+
IsNotNilOrBlankPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
|
|
2882
2908
|
IsNotNilOrBlankPipe.decorators = [
|
|
2883
2909
|
{ type: i0.Pipe, args: [{
|
|
2884
2910
|
name: 'isNotNilOrBlank'
|
|
@@ -2893,7 +2919,7 @@
|
|
|
2893
2919
|
};
|
|
2894
2920
|
return IsNilOrBlankPipe;
|
|
2895
2921
|
}());
|
|
2896
|
-
IsNilOrBlankPipe.ɵprov =
|
|
2922
|
+
IsNilOrBlankPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
|
|
2897
2923
|
IsNilOrBlankPipe.decorators = [
|
|
2898
2924
|
{ type: i0.Pipe, args: [{
|
|
2899
2925
|
name: 'isNilOrBlank'
|
|
@@ -2908,7 +2934,7 @@
|
|
|
2908
2934
|
};
|
|
2909
2935
|
return ToStringPipe;
|
|
2910
2936
|
}());
|
|
2911
|
-
ToStringPipe.ɵprov =
|
|
2937
|
+
ToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
|
|
2912
2938
|
ToStringPipe.decorators = [
|
|
2913
2939
|
{ type: i0.Pipe, args: [{
|
|
2914
2940
|
name: 'toString'
|
|
@@ -2923,7 +2949,7 @@
|
|
|
2923
2949
|
};
|
|
2924
2950
|
return StrLengthPipe;
|
|
2925
2951
|
}());
|
|
2926
|
-
StrLengthPipe.ɵprov =
|
|
2952
|
+
StrLengthPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
|
|
2927
2953
|
StrLengthPipe.decorators = [
|
|
2928
2954
|
{ type: i0.Pipe, args: [{
|
|
2929
2955
|
name: 'strLength'
|
|
@@ -3014,7 +3040,7 @@
|
|
|
3014
3040
|
};
|
|
3015
3041
|
return TranslateContextService;
|
|
3016
3042
|
}());
|
|
3017
|
-
TranslateContextService.ɵprov =
|
|
3043
|
+
TranslateContextService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
|
|
3018
3044
|
TranslateContextService.decorators = [
|
|
3019
3045
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
3020
3046
|
];
|
|
@@ -3026,16 +3052,10 @@
|
|
|
3026
3052
|
function TranslateContextPipe(translate) {
|
|
3027
3053
|
this.translate = translate;
|
|
3028
3054
|
}
|
|
3029
|
-
TranslateContextPipe.prototype.transform = function (query) {
|
|
3030
|
-
var params = [];
|
|
3031
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3032
|
-
params[_i - 1] = arguments[_i];
|
|
3033
|
-
}
|
|
3055
|
+
TranslateContextPipe.prototype.transform = function (query, context, interpolateParams) {
|
|
3034
3056
|
if (!query || !query.length)
|
|
3035
3057
|
return query;
|
|
3036
|
-
|
|
3037
|
-
params = suffix && params.slice(1);
|
|
3038
|
-
return this.translate.instant(query, suffix, params);
|
|
3058
|
+
return this.translate.instant(query, context, interpolateParams);
|
|
3039
3059
|
};
|
|
3040
3060
|
return TranslateContextPipe;
|
|
3041
3061
|
}());
|
|
@@ -3077,7 +3097,7 @@
|
|
|
3077
3097
|
};
|
|
3078
3098
|
return PropertyGetPipe;
|
|
3079
3099
|
}());
|
|
3080
|
-
PropertyGetPipe.ɵprov =
|
|
3100
|
+
PropertyGetPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
|
|
3081
3101
|
PropertyGetPipe.decorators = [
|
|
3082
3102
|
{ type: i0.Pipe, args: [{
|
|
3083
3103
|
name: 'propertyGet'
|
|
@@ -3103,7 +3123,7 @@
|
|
|
3103
3123
|
ngInit: [{ type: i0.Output }]
|
|
3104
3124
|
};
|
|
3105
3125
|
|
|
3106
|
-
var moment$
|
|
3126
|
+
var moment$4 = momentImported__namespace;
|
|
3107
3127
|
// @dynamic
|
|
3108
3128
|
var SharedValidators = /** @class */ (function () {
|
|
3109
3129
|
function SharedValidators() {
|
|
@@ -3122,7 +3142,7 @@
|
|
|
3122
3142
|
};
|
|
3123
3143
|
SharedValidators.validDate = function (control) {
|
|
3124
3144
|
var value = control.value;
|
|
3125
|
-
var date = !value || moment$
|
|
3145
|
+
var date = !value || moment$4.isMoment(value) ? value : moment$4(control.value, DATE_ISO_PATTERN);
|
|
3126
3146
|
if (date && (!date.isValid() || date.year() < 1970)) {
|
|
3127
3147
|
return { validDate: true };
|
|
3128
3148
|
}
|
|
@@ -4288,7 +4308,7 @@
|
|
|
4288
4308
|
};
|
|
4289
4309
|
return FormErrorTranslator;
|
|
4290
4310
|
}());
|
|
4291
|
-
FormErrorTranslator.ɵprov =
|
|
4311
|
+
FormErrorTranslator.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function FormErrorTranslator_Factory() { return new FormErrorTranslator(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(APP_FORM_ERROR_I18N_KEYS, 8)); }, token: FormErrorTranslator, providedIn: "root" });
|
|
4292
4312
|
FormErrorTranslator.decorators = [
|
|
4293
4313
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
4294
4314
|
];
|
|
@@ -4621,9 +4641,9 @@
|
|
|
4621
4641
|
var hour = parseInt(durationParts[0] || '0');
|
|
4622
4642
|
var minute = parseInt(durationParts[1] || '0');
|
|
4623
4643
|
var value = hour + (minute + 0.5) / 60;
|
|
4624
|
-
return roundFloat
|
|
4644
|
+
return roundFloat(value, maxDecimals);
|
|
4625
4645
|
}
|
|
4626
|
-
function roundFloat
|
|
4646
|
+
function roundFloat(input, maxDecimals) {
|
|
4627
4647
|
if (maxDecimals > 0) {
|
|
4628
4648
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
4629
4649
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -4647,9 +4667,9 @@
|
|
|
4647
4667
|
DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
|
|
4648
4668
|
}
|
|
4649
4669
|
};
|
|
4650
|
-
var noop$
|
|
4670
|
+
var noop$7 = function () {
|
|
4651
4671
|
};
|
|
4652
|
-
var ɵ0$
|
|
4672
|
+
var ɵ0$a = noop$7;
|
|
4653
4673
|
var MatLatLongField = /** @class */ (function () {
|
|
4654
4674
|
function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
|
|
4655
4675
|
this.platform = platform;
|
|
@@ -4657,8 +4677,8 @@
|
|
|
4657
4677
|
this.formBuilder = formBuilder;
|
|
4658
4678
|
this.cd = cd;
|
|
4659
4679
|
this.formGroupDir = formGroupDir;
|
|
4660
|
-
this._onChangeCallback = noop$
|
|
4661
|
-
this._onTouchedCallback = noop$
|
|
4680
|
+
this._onChangeCallback = noop$7;
|
|
4681
|
+
this._onTouchedCallback = noop$7;
|
|
4662
4682
|
this._subscription = new rxjs.Subscription();
|
|
4663
4683
|
this.disabling = false;
|
|
4664
4684
|
this.writing = false;
|
|
@@ -5009,14 +5029,14 @@
|
|
|
5009
5029
|
},] }
|
|
5010
5030
|
];
|
|
5011
5031
|
|
|
5012
|
-
var DEFAULT_VALUE_ACCESSOR = {
|
|
5032
|
+
var DEFAULT_VALUE_ACCESSOR$5 = {
|
|
5013
5033
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5014
5034
|
useExisting: i0.forwardRef(function () { return MatDate; }),
|
|
5015
5035
|
multi: true
|
|
5016
5036
|
};
|
|
5017
|
-
var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5018
|
-
var noop$
|
|
5019
|
-
var ɵ0$
|
|
5037
|
+
var DAY_MASK$2 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5038
|
+
var noop$6 = function () { };
|
|
5039
|
+
var ɵ0$9 = noop$6;
|
|
5020
5040
|
var MatDate = /** @class */ (function () {
|
|
5021
5041
|
function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5022
5042
|
this.dateAdapter = dateAdapter;
|
|
@@ -5025,12 +5045,12 @@
|
|
|
5025
5045
|
this.cd = cd;
|
|
5026
5046
|
this.keyboard = keyboard;
|
|
5027
5047
|
this.formGroupDir = formGroupDir;
|
|
5028
|
-
this._onChangeCallback = noop$
|
|
5029
|
-
this._onTouchedCallback = noop$
|
|
5048
|
+
this._onChangeCallback = noop$6;
|
|
5049
|
+
this._onTouchedCallback = noop$6;
|
|
5030
5050
|
this._subscription = new rxjs.Subscription();
|
|
5031
5051
|
this.writing = true;
|
|
5032
5052
|
this.disabling = false;
|
|
5033
|
-
this.dayMask = DAY_MASK;
|
|
5053
|
+
this.dayMask = DAY_MASK$2;
|
|
5034
5054
|
this.disabled = false;
|
|
5035
5055
|
this.floatLabel = 'auto';
|
|
5036
5056
|
this.readonly = false;
|
|
@@ -5299,7 +5319,7 @@
|
|
|
5299
5319
|
selector: 'mat-date-field',
|
|
5300
5320
|
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",
|
|
5301
5321
|
providers: [
|
|
5302
|
-
DEFAULT_VALUE_ACCESSOR,
|
|
5322
|
+
DEFAULT_VALUE_ACCESSOR$5,
|
|
5303
5323
|
],
|
|
5304
5324
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5305
5325
|
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%}"]
|
|
@@ -5332,17 +5352,17 @@
|
|
|
5332
5352
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
5333
5353
|
};
|
|
5334
5354
|
|
|
5335
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5355
|
+
var DEFAULT_VALUE_ACCESSOR$4 = {
|
|
5336
5356
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5337
5357
|
useExisting: i0.forwardRef(function () { return MatDateTime; }),
|
|
5338
5358
|
multi: true
|
|
5339
5359
|
};
|
|
5340
5360
|
var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5341
5361
|
var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
|
|
5342
|
-
var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
5343
|
-
var noop$
|
|
5362
|
+
var HOUR_MASK$1 = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
5363
|
+
var noop$5 = function () {
|
|
5344
5364
|
};
|
|
5345
|
-
var ɵ0$
|
|
5365
|
+
var ɵ0$8 = noop$5;
|
|
5346
5366
|
var MatDateTime = /** @class */ (function () {
|
|
5347
5367
|
function MatDateTime(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5348
5368
|
this.platform = platform;
|
|
@@ -5352,14 +5372,14 @@
|
|
|
5352
5372
|
this.cd = cd;
|
|
5353
5373
|
this.keyboard = keyboard;
|
|
5354
5374
|
this.formGroupDir = formGroupDir;
|
|
5355
|
-
this._onChangeCallback = noop$
|
|
5356
|
-
this._onTouchedCallback = noop$
|
|
5375
|
+
this._onChangeCallback = noop$5;
|
|
5376
|
+
this._onTouchedCallback = noop$5;
|
|
5357
5377
|
this._subscription = new rxjs.Subscription();
|
|
5358
5378
|
this.writing = true;
|
|
5359
5379
|
this.disabling = false;
|
|
5360
5380
|
this._readonly = false;
|
|
5361
5381
|
this.dayMask = DAY_MASK$1;
|
|
5362
|
-
this.hourMask = HOUR_MASK;
|
|
5382
|
+
this.hourMask = HOUR_MASK$1;
|
|
5363
5383
|
this.floatLabel = 'auto';
|
|
5364
5384
|
this.compact = false;
|
|
5365
5385
|
this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
|
|
@@ -5716,7 +5736,7 @@
|
|
|
5716
5736
|
selector: 'mat-date-time-field',
|
|
5717
5737
|
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",
|
|
5718
5738
|
providers: [
|
|
5719
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5739
|
+
DEFAULT_VALUE_ACCESSOR$4,
|
|
5720
5740
|
],
|
|
5721
5741
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5722
5742
|
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%}"]
|
|
@@ -5750,15 +5770,15 @@
|
|
|
5750
5770
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
5751
5771
|
};
|
|
5752
5772
|
|
|
5753
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5773
|
+
var DEFAULT_VALUE_ACCESSOR$3 = {
|
|
5754
5774
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5755
5775
|
useExisting: i0.forwardRef(function () { return MatDateShort; }),
|
|
5756
5776
|
multi: true
|
|
5757
5777
|
};
|
|
5758
|
-
var DAY_MASK
|
|
5778
|
+
var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
|
|
5759
5779
|
var noop$4 = function () {
|
|
5760
5780
|
};
|
|
5761
|
-
var ɵ0$
|
|
5781
|
+
var ɵ0$7 = noop$4;
|
|
5762
5782
|
var MatDateShort = /** @class */ (function () {
|
|
5763
5783
|
function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5764
5784
|
this.dateAdapter = dateAdapter;
|
|
@@ -5771,7 +5791,7 @@
|
|
|
5771
5791
|
this._onTouchedCallback = noop$4;
|
|
5772
5792
|
this.writing = true;
|
|
5773
5793
|
this.disabling = false;
|
|
5774
|
-
this.dayMask = DAY_MASK
|
|
5794
|
+
this.dayMask = DAY_MASK;
|
|
5775
5795
|
this.disabled = false;
|
|
5776
5796
|
this.floatLabel = 'auto';
|
|
5777
5797
|
this.readonly = false;
|
|
@@ -6048,7 +6068,7 @@
|
|
|
6048
6068
|
selector: 'mat-date-short-field',
|
|
6049
6069
|
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",
|
|
6050
6070
|
providers: [
|
|
6051
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6071
|
+
DEFAULT_VALUE_ACCESSOR$3,
|
|
6052
6072
|
],
|
|
6053
6073
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6054
6074
|
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%}"]
|
|
@@ -6119,16 +6139,16 @@
|
|
|
6119
6139
|
},] }
|
|
6120
6140
|
];
|
|
6121
6141
|
|
|
6122
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6142
|
+
var DEFAULT_VALUE_ACCESSOR$2 = {
|
|
6123
6143
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6124
6144
|
useExisting: i0.forwardRef(function () { return MatDuration; }),
|
|
6125
6145
|
multi: true
|
|
6126
6146
|
};
|
|
6127
6147
|
var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
|
|
6128
|
-
var HOUR_MASK
|
|
6129
|
-
var noop$
|
|
6148
|
+
var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
6149
|
+
var noop$3 = function () {
|
|
6130
6150
|
};
|
|
6131
|
-
var ɵ0$
|
|
6151
|
+
var ɵ0$6 = noop$3;
|
|
6132
6152
|
var MatDuration = /** @class */ (function () {
|
|
6133
6153
|
function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
|
|
6134
6154
|
this.dateAdapter = dateAdapter;
|
|
@@ -6137,11 +6157,11 @@
|
|
|
6137
6157
|
this.cd = cd;
|
|
6138
6158
|
this.formGroupDir = formGroupDir;
|
|
6139
6159
|
this._subscription = new rxjs.Subscription();
|
|
6140
|
-
this._onChangeCallback = noop$
|
|
6141
|
-
this._onTouchedCallback = noop$
|
|
6160
|
+
this._onChangeCallback = noop$3;
|
|
6161
|
+
this._onTouchedCallback = noop$3;
|
|
6142
6162
|
this.writing = true;
|
|
6143
6163
|
this.disabling = false;
|
|
6144
|
-
this.hourMask = HOUR_MASK
|
|
6164
|
+
this.hourMask = HOUR_MASK;
|
|
6145
6165
|
this.disabled = false;
|
|
6146
6166
|
this.floatLabel = 'auto';
|
|
6147
6167
|
this.readonly = false;
|
|
@@ -6334,7 +6354,7 @@
|
|
|
6334
6354
|
selector: 'mat-duration-field',
|
|
6335
6355
|
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",
|
|
6336
6356
|
providers: [
|
|
6337
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6357
|
+
DEFAULT_VALUE_ACCESSOR$2,
|
|
6338
6358
|
],
|
|
6339
6359
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6340
6360
|
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%}"]
|
|
@@ -6394,22 +6414,22 @@
|
|
|
6394
6414
|
},] }
|
|
6395
6415
|
];
|
|
6396
6416
|
|
|
6397
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6417
|
+
var DEFAULT_VALUE_ACCESSOR$1 = {
|
|
6398
6418
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6399
6419
|
useExisting: i0.forwardRef(function () { return MatBooleanField; }),
|
|
6400
6420
|
multi: true
|
|
6401
6421
|
};
|
|
6402
|
-
var noop$
|
|
6422
|
+
var noop$2 = function () {
|
|
6403
6423
|
};
|
|
6404
|
-
var ɵ0$
|
|
6424
|
+
var ɵ0$5 = noop$2;
|
|
6405
6425
|
var MatBooleanField = /** @class */ (function () {
|
|
6406
6426
|
function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
|
|
6407
6427
|
this.translate = translate;
|
|
6408
6428
|
this.formBuilder = formBuilder;
|
|
6409
6429
|
this.cd = cd;
|
|
6410
6430
|
this.formGroupDir = formGroupDir;
|
|
6411
|
-
this._onChangeCallback = noop$
|
|
6412
|
-
this._onTouchedCallback = noop$
|
|
6431
|
+
this._onChangeCallback = noop$2;
|
|
6432
|
+
this._onTouchedCallback = noop$2;
|
|
6413
6433
|
this._writing = false;
|
|
6414
6434
|
this.showRadio = false;
|
|
6415
6435
|
this.disabled = false;
|
|
@@ -6584,7 +6604,7 @@
|
|
|
6584
6604
|
selector: 'mat-boolean-field',
|
|
6585
6605
|
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",
|
|
6586
6606
|
providers: [
|
|
6587
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6607
|
+
DEFAULT_VALUE_ACCESSOR$1
|
|
6588
6608
|
],
|
|
6589
6609
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6590
6610
|
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}"]
|
|
@@ -6671,6 +6691,7 @@
|
|
|
6671
6691
|
return MatNumpadEvent;
|
|
6672
6692
|
}(KeyboardEvent));
|
|
6673
6693
|
|
|
6694
|
+
exports.AnimationState = void 0;
|
|
6674
6695
|
(function (AnimationState) {
|
|
6675
6696
|
AnimationState["ENTER"] = "enter";
|
|
6676
6697
|
AnimationState["ENTER_INPUT"] = "enter-input";
|
|
@@ -6838,7 +6859,7 @@
|
|
|
6838
6859
|
};
|
|
6839
6860
|
return MatNumpadDomService;
|
|
6840
6861
|
}());
|
|
6841
|
-
MatNumpadDomService.ɵprov =
|
|
6862
|
+
MatNumpadDomService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatNumpadDomService_Factory() { return new MatNumpadDomService(i0__namespace.ɵɵinject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵinject(i0__namespace.ApplicationRef), i0__namespace.ɵɵinject(i0__namespace.INJECTOR), i0__namespace.ɵɵinject(i1__namespace$3.DOCUMENT, 8)); }, token: MatNumpadDomService, providedIn: "root" });
|
|
6842
6863
|
MatNumpadDomService.decorators = [
|
|
6843
6864
|
{ type: i0.Injectable, args: [{
|
|
6844
6865
|
providedIn: 'root'
|
|
@@ -7244,7 +7265,7 @@
|
|
|
7244
7265
|
},] }
|
|
7245
7266
|
];
|
|
7246
7267
|
|
|
7247
|
-
var DEFAULT_VALUE_ACCESSOR
|
|
7268
|
+
var DEFAULT_VALUE_ACCESSOR = {
|
|
7248
7269
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
7249
7270
|
useExisting: i0.forwardRef(function () { return MatSwipeField; }),
|
|
7250
7271
|
multi: true
|
|
@@ -7564,7 +7585,7 @@
|
|
|
7564
7585
|
{ type: i0.Component, args: [{
|
|
7565
7586
|
selector: 'mat-swipe-field',
|
|
7566
7587
|
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",
|
|
7567
|
-
providers: [DEFAULT_VALUE_ACCESSOR
|
|
7588
|
+
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
7568
7589
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7569
7590
|
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}"]
|
|
7570
7591
|
},] }
|
|
@@ -7625,14 +7646,14 @@
|
|
|
7625
7646
|
},] }
|
|
7626
7647
|
];
|
|
7627
7648
|
|
|
7628
|
-
var noop$
|
|
7629
|
-
var ɵ0$
|
|
7649
|
+
var noop$1 = function () { };
|
|
7650
|
+
var ɵ0$4 = noop$1;
|
|
7630
7651
|
var MatChipsField = /** @class */ (function () {
|
|
7631
7652
|
function MatChipsField(cd, formGroupDir) {
|
|
7632
7653
|
this.cd = cd;
|
|
7633
7654
|
this.formGroupDir = formGroupDir;
|
|
7634
|
-
this._onChangeCallback = noop$
|
|
7635
|
-
this._onTouchedCallback = noop$
|
|
7655
|
+
this._onChangeCallback = noop$1;
|
|
7656
|
+
this._onTouchedCallback = noop$1;
|
|
7636
7657
|
this.logPrefix = '[mat-chips] ';
|
|
7637
7658
|
this.formControlName = null;
|
|
7638
7659
|
this.required = false;
|
|
@@ -7857,7 +7878,7 @@
|
|
|
7857
7878
|
// Wait a debounce time
|
|
7858
7879
|
operators.debounceTime(this.debounceTime)
|
|
7859
7880
|
// DEBUG
|
|
7860
|
-
|
|
7881
|
+
//,tap((value) => this.debug && console.debug(this.logPrefix + ' Search text changes:', value))
|
|
7861
7882
|
),
|
|
7862
7883
|
// Object set: use it (no distinctUntilChanged() pipe need)
|
|
7863
7884
|
this.inputControl.valueChanges
|
|
@@ -7873,18 +7894,25 @@
|
|
|
7873
7894
|
rxjs.merge(
|
|
7874
7895
|
// Focus or click => Load all
|
|
7875
7896
|
rxjs.merge(this.focused, this.clicked)
|
|
7876
|
-
.pipe(operators.filter(function (_) { return _this.enabled; }), operators.map(function (_) { return _this.showAllOnFocus ? '*' : _this.inputControl.value; })
|
|
7897
|
+
.pipe(operators.filter(function (_) { return _this.enabled; }), operators.map(function (_) { return _this.showAllOnFocus ? '*' : _this.inputControl.value; })
|
|
7898
|
+
// DEBUG
|
|
7899
|
+
//,tap(value => this.debug && console.debug(this.logPrefix + ' Received focused or clicked event: ', value))
|
|
7900
|
+
), rxjs.merge(this.$inputItems, this._$filter)
|
|
7877
7901
|
.pipe(operators.filter(function (_) { return _this.enabled; }), operators.map(function (_) { return _this.inputControl.value; })))
|
|
7878
7902
|
.pipe(
|
|
7879
7903
|
// Make sure there is enough characters
|
|
7880
7904
|
operators.filter(thresholdFilterFn),
|
|
7881
7905
|
// Distinguish changes
|
|
7882
|
-
|
|
7906
|
+
// - do NOT filter if loading, to force update after a blur event
|
|
7907
|
+
operators.distinctUntilChanged(function (v1, v2) { return !_this.loading && (v1 === v2 || _this.equals(v1, v2)); })
|
|
7908
|
+
// DEBUG
|
|
7909
|
+
//,tap(value => this.debug && console.debug(this.logPrefix + ' Received update event: ', value))
|
|
7910
|
+
))
|
|
7883
7911
|
.pipe(
|
|
7884
7912
|
// Suggest values
|
|
7885
7913
|
operators.mergeMap(function (value) { return _this.suggest(value, _this.filter); }),
|
|
7886
7914
|
// DEBUG
|
|
7887
|
-
//tap(items => console.debug(this.logPrefix + ' Received from suggest: ', items)),
|
|
7915
|
+
//tap(items => this.debug && console.debug(this.logPrefix + ' Received from suggest: ', items)),
|
|
7888
7916
|
// Store implicit value (will use it onBlur if not other value selected)
|
|
7889
7917
|
operators.tap(function (items) { return _this.updateImplicitValue(items); }));
|
|
7890
7918
|
// Fetch more events
|
|
@@ -7905,7 +7933,10 @@
|
|
|
7905
7933
|
.subscribe(function (items) { return _this.$filteredItems.next(items); }));
|
|
7906
7934
|
// Applying implicit value, on blur
|
|
7907
7935
|
this._subscription.add(this.blurred
|
|
7908
|
-
.pipe(operators.map(function (_) { return _this.formControl.value; })
|
|
7936
|
+
.pipe(operators.map(function (_) { return _this.formControl.value; })
|
|
7937
|
+
// DEBUG
|
|
7938
|
+
//,tap(value => this.debug && console.debug(this.logPrefix + ' Received blurred event: ', value)),
|
|
7939
|
+
)
|
|
7909
7940
|
.subscribe(function (value) {
|
|
7910
7941
|
// When leave component without object, use implicit value if :
|
|
7911
7942
|
// - an explicit value
|
|
@@ -8017,6 +8048,8 @@
|
|
|
8017
8048
|
this._reload$.next(value || '*');
|
|
8018
8049
|
};
|
|
8019
8050
|
MatChipsField.prototype.writeValue = function (value) {
|
|
8051
|
+
// DEBUG
|
|
8052
|
+
// if (this.debug) console.debug(this.logPrefix + ' Writing value: ', value);
|
|
8020
8053
|
if (value && !Array.isArray(value)) {
|
|
8021
8054
|
value = [value];
|
|
8022
8055
|
}
|
|
@@ -8287,9 +8320,9 @@
|
|
|
8287
8320
|
showLoadingSpinner: [{ type: i0.Input }],
|
|
8288
8321
|
chipColor: [{ type: i0.Input }],
|
|
8289
8322
|
debug: [{ type: i0.Input }],
|
|
8290
|
-
clicked: [{ type: i0.Output }],
|
|
8291
|
-
blurred: [{ type: i0.Output }],
|
|
8292
|
-
focused: [{ type: i0.Output }],
|
|
8323
|
+
clicked: [{ type: i0.Output, args: ['click',] }],
|
|
8324
|
+
blurred: [{ type: i0.Output, args: ['blur',] }],
|
|
8325
|
+
focused: [{ type: i0.Output, args: ['focus',] }],
|
|
8293
8326
|
dropButtonClick: [{ type: i0.Output }],
|
|
8294
8327
|
keydownEscape: [{ type: i0.Output, args: ['keydown.escape',] }],
|
|
8295
8328
|
keyupEnter: [{ type: i0.Output, args: ['keyup.enter',] }],
|
|
@@ -8496,7 +8529,7 @@
|
|
|
8496
8529
|
};
|
|
8497
8530
|
return ProgressBarService;
|
|
8498
8531
|
}());
|
|
8499
|
-
ProgressBarService.ɵprov =
|
|
8532
|
+
ProgressBarService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
|
|
8500
8533
|
ProgressBarService.decorators = [
|
|
8501
8534
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8502
8535
|
];
|
|
@@ -8543,7 +8576,7 @@
|
|
|
8543
8576
|
};
|
|
8544
8577
|
return AppGestureConfig;
|
|
8545
8578
|
}(i1$6.HammerGestureConfig));
|
|
8546
|
-
AppGestureConfig.ɵprov =
|
|
8579
|
+
AppGestureConfig.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
|
|
8547
8580
|
AppGestureConfig.decorators = [
|
|
8548
8581
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8549
8582
|
];
|
|
@@ -8810,7 +8843,7 @@
|
|
|
8810
8843
|
};
|
|
8811
8844
|
return MatPaginatorI18n;
|
|
8812
8845
|
}(paginator.MatPaginatorIntl));
|
|
8813
|
-
MatPaginatorI18n.ɵprov =
|
|
8846
|
+
MatPaginatorI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
|
|
8814
8847
|
MatPaginatorI18n.decorators = [
|
|
8815
8848
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8816
8849
|
];
|
|
@@ -8902,17 +8935,17 @@
|
|
|
8902
8935
|
return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
|
|
8903
8936
|
}
|
|
8904
8937
|
|
|
8905
|
-
var noop
|
|
8938
|
+
var noop = function () {
|
|
8906
8939
|
};
|
|
8907
|
-
var ɵ0$
|
|
8940
|
+
var ɵ0$3 = noop;
|
|
8908
8941
|
var AppFormField = /** @class */ (function () {
|
|
8909
8942
|
function AppFormField(translate, cd, injector, formGroupDir) {
|
|
8910
8943
|
this.translate = translate;
|
|
8911
8944
|
this.cd = cd;
|
|
8912
8945
|
this.injector = injector;
|
|
8913
8946
|
this.formGroupDir = formGroupDir;
|
|
8914
|
-
this._onChangeCallback = noop
|
|
8915
|
-
this._onTouchedCallback = noop
|
|
8947
|
+
this._onChangeCallback = noop;
|
|
8948
|
+
this._onTouchedCallback = noop;
|
|
8916
8949
|
this.readonly = false;
|
|
8917
8950
|
this.compact = false;
|
|
8918
8951
|
this.floatLabel = 'auto';
|
|
@@ -9467,7 +9500,7 @@
|
|
|
9467
9500
|
};
|
|
9468
9501
|
return AudioProvider;
|
|
9469
9502
|
}(StartableService));
|
|
9470
|
-
AudioProvider.ɵprov =
|
|
9503
|
+
AudioProvider.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AudioProvider_Factory() { return new AudioProvider(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i2__namespace.NativeAudio, 8), i0__namespace.ɵɵinject(i3__namespace.Vibration, 8), i0__namespace.ɵɵinject(i4__namespace.AudioManagement, 8)); }, token: AudioProvider, providedIn: "root" });
|
|
9471
9504
|
AudioProvider.decorators = [
|
|
9472
9505
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9473
9506
|
];
|
|
@@ -9567,7 +9600,7 @@
|
|
|
9567
9600
|
};
|
|
9568
9601
|
return Hotkeys;
|
|
9569
9602
|
}());
|
|
9570
|
-
Hotkeys.ɵprov =
|
|
9603
|
+
Hotkeys.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function Hotkeys_Factory() { return new Hotkeys(i0__namespace.ɵɵinject(i1__namespace$5.EventManager), i0__namespace.ɵɵinject(i2__namespace$1.MatDialog), i0__namespace.ɵɵinject(i1__namespace$3.DOCUMENT), i0__namespace.ɵɵinject(i1__namespace$4.ModalController)); }, token: Hotkeys, providedIn: "root" });
|
|
9571
9604
|
Hotkeys.decorators = [
|
|
9572
9605
|
{ type: i0.Injectable, args: [{
|
|
9573
9606
|
providedIn: 'root'
|
|
@@ -9771,7 +9804,7 @@
|
|
|
9771
9804
|
return Base64ImageReader;
|
|
9772
9805
|
}());
|
|
9773
9806
|
|
|
9774
|
-
var uuidv4 = uuidv4Imported__namespace;
|
|
9807
|
+
var uuidv4$1 = uuidv4Imported__namespace;
|
|
9775
9808
|
var FileService = /** @class */ (function () {
|
|
9776
9809
|
function FileService(platform,
|
|
9777
9810
|
//private transfer: FileTransfer,
|
|
@@ -9817,7 +9850,7 @@
|
|
|
9817
9850
|
lastSlashIndex = source.lastIndexOf('/');
|
|
9818
9851
|
if (lastSlashIndex === -1)
|
|
9819
9852
|
throw new Error('Invalid URL: ' + source);
|
|
9820
|
-
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
|
|
9853
|
+
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4$1();
|
|
9821
9854
|
if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
|
|
9822
9855
|
console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
|
|
9823
9856
|
targetFilePath = this._imageDirectory + fileName;
|
|
@@ -9880,7 +9913,7 @@
|
|
|
9880
9913
|
};
|
|
9881
9914
|
return FileService;
|
|
9882
9915
|
}());
|
|
9883
|
-
FileService.ɵprov =
|
|
9916
|
+
FileService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i2__namespace$2.HttpClient), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: FileService, providedIn: "root" });
|
|
9884
9917
|
FileService.decorators = [
|
|
9885
9918
|
{ type: i0.Injectable, args: [{
|
|
9886
9919
|
providedIn: 'root',
|
|
@@ -10047,7 +10080,7 @@
|
|
|
10047
10080
|
Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
10048
10081
|
|
|
10049
10082
|
var scrypt = require('scrypt-async');
|
|
10050
|
-
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
10083
|
+
var sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
10051
10084
|
var sha512 = require('hash.js/lib/hash/sha/512');
|
|
10052
10085
|
var nacl = {
|
|
10053
10086
|
sign: tweetnacl.sign,
|
|
@@ -10153,7 +10186,7 @@
|
|
|
10153
10186
|
* Hash (using SHA256) a message
|
|
10154
10187
|
*/
|
|
10155
10188
|
CryptoService.prototype.sha256 = function (message) {
|
|
10156
|
-
return sha256().update(message).digest('hex');
|
|
10189
|
+
return sha256$1().update(message).digest('hex');
|
|
10157
10190
|
};
|
|
10158
10191
|
/**
|
|
10159
10192
|
* Hash (using SHA512) a message
|
|
@@ -10167,7 +10200,7 @@
|
|
|
10167
10200
|
};
|
|
10168
10201
|
return CryptoService;
|
|
10169
10202
|
}());
|
|
10170
|
-
CryptoService.ɵprov =
|
|
10203
|
+
CryptoService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
|
|
10171
10204
|
CryptoService.decorators = [
|
|
10172
10205
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
10173
10206
|
];
|
|
@@ -11596,7 +11629,7 @@
|
|
|
11596
11629
|
};
|
|
11597
11630
|
return LocalSettingsService;
|
|
11598
11631
|
}(StartableService));
|
|
11599
|
-
LocalSettingsService.ɵprov =
|
|
11632
|
+
LocalSettingsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LocalSettingsService_Factory() { return new LocalSettingsService(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(APP_LOCAL_SETTINGS, 8), i0__namespace.ɵɵinject(APP_LOCAL_SETTINGS_OPTIONS, 8)); }, token: LocalSettingsService, providedIn: "root" });
|
|
11600
11633
|
LocalSettingsService.decorators = [
|
|
11601
11634
|
{ type: i0.Injectable, args: [{
|
|
11602
11635
|
providedIn: 'root',
|
|
@@ -12399,7 +12432,7 @@
|
|
|
12399
12432
|
};
|
|
12400
12433
|
return NetworkService;
|
|
12401
12434
|
}(StartableService));
|
|
12402
|
-
NetworkService.ɵprov =
|
|
12435
|
+
NetworkService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function NetworkService_Factory() { return new NetworkService(i0__namespace.ɵɵinject(i1__namespace$3.DOCUMENT), i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i1__namespace$4.ModalController), i0__namespace.ɵɵinject(CryptoService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(LocalSettingsService), i0__namespace.ɵɵinject(i6__namespace.CacheService), i0__namespace.ɵɵinject(i2__namespace$2.HttpClient), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(i9__namespace.Network, 8), i0__namespace.ɵɵinject(i10__namespace.SplashScreen, 8), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService, 8), i0__namespace.ɵɵinject(i1__namespace$4.ToastController, 8)); }, token: NetworkService, providedIn: "root" });
|
|
12403
12436
|
NetworkService.decorators = [
|
|
12404
12437
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
12405
12438
|
];
|
|
@@ -12419,7 +12452,7 @@
|
|
|
12419
12452
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
|
|
12420
12453
|
]; };
|
|
12421
12454
|
|
|
12422
|
-
var ErrorCodes = {
|
|
12455
|
+
var ErrorCodes$2 = {
|
|
12423
12456
|
UNKNOWN_ERROR: 0,
|
|
12424
12457
|
LOAD_ACCOUNT_ERROR: 1,
|
|
12425
12458
|
BAD_PASSWORD: 2,
|
|
@@ -12836,7 +12869,7 @@
|
|
|
12836
12869
|
case 13:
|
|
12837
12870
|
err_1 = _b.sent();
|
|
12838
12871
|
console.error(err_1);
|
|
12839
|
-
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
12872
|
+
throw { code: ErrorCodes$2.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
12840
12873
|
case 14:
|
|
12841
12874
|
// Emit update event
|
|
12842
12875
|
if (!opts || opts.emitEvent !== false) {
|
|
@@ -13613,7 +13646,7 @@
|
|
|
13613
13646
|
}(StartableService));
|
|
13614
13647
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
13615
13648
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
13616
|
-
EntitiesStorage.ɵprov =
|
|
13649
|
+
EntitiesStorage.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EntitiesStorage_Factory() { return new EntitiesStorage(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(ProgressBarService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(APP_LOCAL_STORAGE_TYPE_POLICIES, 8)); }, token: EntitiesStorage, providedIn: "root" });
|
|
13617
13650
|
EntitiesStorage.decorators = [
|
|
13618
13651
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
13619
13652
|
];
|
|
@@ -13769,10 +13802,10 @@
|
|
|
13769
13802
|
function referentialsToString(values, properties, separator) {
|
|
13770
13803
|
return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
|
|
13771
13804
|
}
|
|
13772
|
-
var ɵ0$
|
|
13805
|
+
var ɵ0$2 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
13773
13806
|
var StatusList = Object.freeze([
|
|
13774
13807
|
{
|
|
13775
|
-
id: ɵ0$
|
|
13808
|
+
id: ɵ0$2,
|
|
13776
13809
|
icon: 'checkmark',
|
|
13777
13810
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
13778
13811
|
},
|
|
@@ -14075,7 +14108,7 @@
|
|
|
14075
14108
|
(data.lastName || '')) || '';
|
|
14076
14109
|
}
|
|
14077
14110
|
|
|
14078
|
-
var uuidv4
|
|
14111
|
+
var uuidv4 = uuidv4Imported__namespace;
|
|
14079
14112
|
var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
14080
14113
|
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
14081
14114
|
/**
|
|
@@ -14119,7 +14152,7 @@
|
|
|
14119
14152
|
// Skip if not tracked
|
|
14120
14153
|
if (!context || !context.tracked)
|
|
14121
14154
|
return forward(operation);
|
|
14122
|
-
var id = context.serializationKey || uuidv4
|
|
14155
|
+
var id = context.serializationKey || uuidv4();
|
|
14123
14156
|
console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
|
|
14124
14157
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
14125
14158
|
var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -14752,14 +14785,14 @@
|
|
|
14752
14785
|
mutationLinks = void 0;
|
|
14753
14786
|
// Add queue to store tracked queries, when offline
|
|
14754
14787
|
if (enableTrackMutationQueries) {
|
|
14755
|
-
serializingLink = new SerializingLink__default[
|
|
14788
|
+
serializingLink = new SerializingLink__default["default"]();
|
|
14756
14789
|
trackerLink = createTrackerLink({
|
|
14757
14790
|
storage: storage,
|
|
14758
14791
|
onNetworkStatusChange: this._networkStatusChanged$,
|
|
14759
14792
|
debounce: 1000,
|
|
14760
14793
|
debug: true
|
|
14761
14794
|
});
|
|
14762
|
-
queueLink_1 = new QueueLink__default[
|
|
14795
|
+
queueLink_1 = new QueueLink__default["default"]();
|
|
14763
14796
|
this.registerSubscription(this._networkStatusChanged$
|
|
14764
14797
|
.subscribe(function (type) {
|
|
14765
14798
|
// Network is offline: start buffering into queue
|
|
@@ -14774,7 +14807,7 @@
|
|
|
14774
14807
|
}
|
|
14775
14808
|
}));
|
|
14776
14809
|
mutationLinks = [
|
|
14777
|
-
loggerLink__default[
|
|
14810
|
+
loggerLink__default["default"],
|
|
14778
14811
|
queueLink_1,
|
|
14779
14812
|
trackerLink,
|
|
14780
14813
|
queueLink_1,
|
|
@@ -14881,7 +14914,7 @@
|
|
|
14881
14914
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
14882
14915
|
|| this.toAppError(err.networkError)
|
|
14883
14916
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
14884
|
-
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
14917
|
+
|| this.createAppErrorByCode(ErrorCodes$2.UNKNOWN_NETWORK_ERROR)))
|
|
14885
14918
|
// If graphQL: try to convert the first error found
|
|
14886
14919
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
14887
14920
|
|| this.toAppError(err)
|
|
@@ -14889,7 +14922,7 @@
|
|
|
14889
14922
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
14890
14923
|
|| err;
|
|
14891
14924
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
14892
|
-
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
14925
|
+
if (error && error.code === ErrorCodes$2.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
14893
14926
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
14894
14927
|
this.onNetworkError.next(error);
|
|
14895
14928
|
}
|
|
@@ -14925,7 +14958,7 @@
|
|
|
14925
14958
|
return 'ERROR.UNAUTHORIZED';
|
|
14926
14959
|
case ServerErrorCodes.FORBIDDEN:
|
|
14927
14960
|
return 'ERROR.FORBIDDEN';
|
|
14928
|
-
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
14961
|
+
case ErrorCodes$2.UNKNOWN_NETWORK_ERROR:
|
|
14929
14962
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
14930
14963
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
14931
14964
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -14957,7 +14990,7 @@
|
|
|
14957
14990
|
};
|
|
14958
14991
|
return GraphqlService;
|
|
14959
14992
|
}(StartableService));
|
|
14960
|
-
GraphqlService.ɵprov =
|
|
14993
|
+
GraphqlService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function GraphqlService_Factory() { return new GraphqlService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i2__namespace$3.Apollo), i0__namespace.ɵɵinject(i3__namespace$2.HttpLink), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(CryptoService), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(APP_GRAPHQL_TYPE_POLICIES, 8)); }, token: GraphqlService, providedIn: "root" });
|
|
14961
14994
|
GraphqlService.decorators = [
|
|
14962
14995
|
{ type: i0.Injectable, args: [{
|
|
14963
14996
|
providedIn: 'root'
|
|
@@ -14974,7 +15007,7 @@
|
|
|
14974
15007
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
14975
15008
|
]; };
|
|
14976
15009
|
|
|
14977
|
-
var sha256
|
|
15010
|
+
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
14978
15011
|
var BaseGraphqlServiceOptions = /** @class */ (function () {
|
|
14979
15012
|
function BaseGraphqlServiceOptions() {
|
|
14980
15013
|
}
|
|
@@ -15144,8 +15177,8 @@
|
|
|
15144
15177
|
};
|
|
15145
15178
|
/* -- protected methods -- */
|
|
15146
15179
|
BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
|
|
15147
|
-
var queryName = opts.queryName || sha256
|
|
15148
|
-
var variablesKey = opts.variables && sha256
|
|
15180
|
+
var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
15181
|
+
var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
15149
15182
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
15150
15183
|
};
|
|
15151
15184
|
BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
|
|
@@ -15214,19 +15247,19 @@
|
|
|
15214
15247
|
/* ------------------------------------
|
|
15215
15248
|
* GraphQL queries
|
|
15216
15249
|
* ------------------------------------*/
|
|
15217
|
-
var Fragments = {
|
|
15218
|
-
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 }"]))),
|
|
15219
|
-
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 }"])))
|
|
15250
|
+
var Fragments$1 = {
|
|
15251
|
+
account: core.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n ...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 }"]))),
|
|
15252
|
+
settings: core.gql(templateObject_2$4 || (templateObject_2$4 = __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 }"])))
|
|
15220
15253
|
};
|
|
15221
15254
|
// Load account query
|
|
15222
|
-
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);
|
|
15255
|
+
var LoadQuery$1 = core.gql(templateObject_3$3 || (templateObject_3$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$1.account, Fragments$1.settings);
|
|
15223
15256
|
// Check email query
|
|
15224
|
-
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"])));
|
|
15257
|
+
var IsEmailExistsQuery = core.gql(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"], ["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"])));
|
|
15225
15258
|
// Save (create or update) account mutation
|
|
15226
15259
|
var AccountMutations = {
|
|
15227
|
-
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),
|
|
15228
|
-
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),
|
|
15229
|
-
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)
|
|
15260
|
+
save: core.gql(templateObject_5$2 || (templateObject_5$2 = __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$1.account, Fragments$1.settings),
|
|
15261
|
+
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$1.account, Fragments$1.settings),
|
|
15262
|
+
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$1.settings)
|
|
15230
15263
|
};
|
|
15231
15264
|
// Sent confirmation email
|
|
15232
15265
|
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"])));
|
|
@@ -15588,7 +15621,7 @@
|
|
|
15588
15621
|
error_3 = _b.sent();
|
|
15589
15622
|
console.error(error_3);
|
|
15590
15623
|
this.resetData();
|
|
15591
|
-
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
15624
|
+
throw { code: ErrorCodes$2.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
15592
15625
|
case 4:
|
|
15593
15626
|
// Store pubkey+keypair
|
|
15594
15627
|
this._cache.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -15624,7 +15657,7 @@
|
|
|
15624
15657
|
return [3 /*break*/, 18];
|
|
15625
15658
|
case 11:
|
|
15626
15659
|
err_1 = _b.sent();
|
|
15627
|
-
if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
15660
|
+
if (!(err_1 && +(err_1.code) === ErrorCodes$2.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
15628
15661
|
if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
|
|
15629
15662
|
isEmailExists = void 0;
|
|
15630
15663
|
_b.label = 12;
|
|
@@ -15640,12 +15673,12 @@
|
|
|
15640
15673
|
case 15:
|
|
15641
15674
|
// Email not exists (no account)
|
|
15642
15675
|
if (!isEmailExists) {
|
|
15643
|
-
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
15676
|
+
throw { code: ErrorCodes$2.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
15644
15677
|
}
|
|
15645
15678
|
_b.label = 16;
|
|
15646
15679
|
case 16:
|
|
15647
15680
|
// Email exists, so error = 'bad password'
|
|
15648
|
-
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
15681
|
+
throw { code: ErrorCodes$2.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
15649
15682
|
case 17: throw err_1; // resend the first error
|
|
15650
15683
|
case 18:
|
|
15651
15684
|
_b.trys.push([18, 20, , 21]);
|
|
@@ -15817,8 +15850,8 @@
|
|
|
15817
15850
|
_b.label = 3;
|
|
15818
15851
|
case 3: return [3 /*break*/, 6];
|
|
15819
15852
|
case 4: return [4 /*yield*/, this.graphql.query({
|
|
15820
|
-
query: LoadQuery,
|
|
15821
|
-
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
15853
|
+
query: LoadQuery$1,
|
|
15854
|
+
error: { code: ErrorCodes$2.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
15822
15855
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
15823
15856
|
})];
|
|
15824
15857
|
case 5:
|
|
@@ -15856,7 +15889,7 @@
|
|
|
15856
15889
|
case 1:
|
|
15857
15890
|
isEmailExists = _b.sent();
|
|
15858
15891
|
if (isEmailExists) {
|
|
15859
|
-
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
15892
|
+
throw { code: ErrorCodes$2.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
15860
15893
|
}
|
|
15861
15894
|
return [2 /*return*/];
|
|
15862
15895
|
}
|
|
@@ -15906,7 +15939,7 @@
|
|
|
15906
15939
|
locale: locale
|
|
15907
15940
|
},
|
|
15908
15941
|
error: {
|
|
15909
|
-
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
15942
|
+
code: ErrorCodes$2.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
15910
15943
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
15911
15944
|
}
|
|
15912
15945
|
})];
|
|
@@ -15929,7 +15962,7 @@
|
|
|
15929
15962
|
code: code
|
|
15930
15963
|
},
|
|
15931
15964
|
error: {
|
|
15932
|
-
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
15965
|
+
code: ErrorCodes$2.CONFIRM_EMAIL_FAILED,
|
|
15933
15966
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
15934
15967
|
}
|
|
15935
15968
|
})];
|
|
@@ -15952,7 +15985,7 @@
|
|
|
15952
15985
|
interval: 10
|
|
15953
15986
|
},
|
|
15954
15987
|
error: {
|
|
15955
|
-
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
15988
|
+
code: ErrorCodes$2.SUBSCRIBE_ACCOUNT_ERROR,
|
|
15956
15989
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ACCOUNT_ERROR'
|
|
15957
15990
|
}
|
|
15958
15991
|
}).subscribe({
|
|
@@ -16092,7 +16125,7 @@
|
|
|
16092
16125
|
throw error_6;
|
|
16093
16126
|
console.error(error_6);
|
|
16094
16127
|
throw {
|
|
16095
|
-
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
16128
|
+
code: ErrorCodes$2.LOAD_ACCOUNT_ERROR,
|
|
16096
16129
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
16097
16130
|
};
|
|
16098
16131
|
case 6: return [2 /*return*/];
|
|
@@ -16301,7 +16334,7 @@
|
|
|
16301
16334
|
case 1:
|
|
16302
16335
|
existingAccount = _b.sent();
|
|
16303
16336
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
16304
|
-
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
16337
|
+
throw { code: ErrorCodes$2.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
16305
16338
|
}
|
|
16306
16339
|
this.copyIdAndUpdateDate(existingAccount, account);
|
|
16307
16340
|
_b.label = 2;
|
|
@@ -16313,7 +16346,7 @@
|
|
|
16313
16346
|
mutation: isNew ? AccountMutations.create : AccountMutations.save,
|
|
16314
16347
|
variables: { data: json },
|
|
16315
16348
|
error: {
|
|
16316
|
-
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
16349
|
+
code: ErrorCodes$2.SAVE_ACCOUNT_ERROR,
|
|
16317
16350
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
16318
16351
|
}
|
|
16319
16352
|
})];
|
|
@@ -16347,7 +16380,7 @@
|
|
|
16347
16380
|
mutation: AccountMutations.saveSettings,
|
|
16348
16381
|
variables: { data: json },
|
|
16349
16382
|
error: {
|
|
16350
|
-
code: ErrorCodes.SAVE_SETTINGS_ERROR,
|
|
16383
|
+
code: ErrorCodes$2.SAVE_SETTINGS_ERROR,
|
|
16351
16384
|
message: 'ERROR.SAVE_SETTINGS_ERROR'
|
|
16352
16385
|
}
|
|
16353
16386
|
})];
|
|
@@ -16378,7 +16411,7 @@
|
|
|
16378
16411
|
if (counter > 4) {
|
|
16379
16412
|
if (this._debug)
|
|
16380
16413
|
console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
|
|
16381
|
-
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
16414
|
+
throw { code: ErrorCodes$2.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
16382
16415
|
}
|
|
16383
16416
|
if (!token) return [3 /*break*/, 2];
|
|
16384
16417
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -16387,7 +16420,7 @@
|
|
|
16387
16420
|
token: token
|
|
16388
16421
|
},
|
|
16389
16422
|
error: {
|
|
16390
|
-
code: ErrorCodes.UNAUTHORIZED,
|
|
16423
|
+
code: ErrorCodes$2.UNAUTHORIZED,
|
|
16391
16424
|
message: 'ERROR.UNAUTHORIZED'
|
|
16392
16425
|
},
|
|
16393
16426
|
fetchPolicy: 'no-cache'
|
|
@@ -16404,7 +16437,7 @@
|
|
|
16404
16437
|
_b.label = 2;
|
|
16405
16438
|
case 2:
|
|
16406
16439
|
challengeError = {
|
|
16407
|
-
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
16440
|
+
code: ErrorCodes$2.AUTH_CHALLENGE_ERROR,
|
|
16408
16441
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
16409
16442
|
};
|
|
16410
16443
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -16451,7 +16484,7 @@
|
|
|
16451
16484
|
};
|
|
16452
16485
|
return AccountService;
|
|
16453
16486
|
}(BaseGraphqlService));
|
|
16454
|
-
AccountService.ɵprov =
|
|
16487
|
+
AccountService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountService_Factory() { return new AccountService(i0__namespace.ɵɵinject(CryptoService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(LocalSettingsService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(FileService), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
|
|
16455
16488
|
AccountService.decorators = [
|
|
16456
16489
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
16457
16490
|
];
|
|
@@ -16464,7 +16497,7 @@
|
|
|
16464
16497
|
{ type: FileService },
|
|
16465
16498
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
16466
16499
|
]; };
|
|
16467
|
-
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;
|
|
16500
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12;
|
|
16468
16501
|
|
|
16469
16502
|
var Software_1, Configuration_1;
|
|
16470
16503
|
// @dynamic
|
|
@@ -16716,13 +16749,13 @@
|
|
|
16716
16749
|
/* ------------------------------------
|
|
16717
16750
|
* GraphQL queries
|
|
16718
16751
|
* ------------------------------------*/
|
|
16719
|
-
var Fragments
|
|
16720
|
-
config: core.gql(templateObject_1$
|
|
16752
|
+
var Fragments = {
|
|
16753
|
+
config: core.gql(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "], ["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "])))
|
|
16721
16754
|
};
|
|
16722
|
-
var LoadQuery
|
|
16755
|
+
var LoadQuery = core.gql(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"], ["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"])), Fragments.config);
|
|
16723
16756
|
// Save (create or update) account mutation
|
|
16724
|
-
var SaveMutation = core.gql(templateObject_3$
|
|
16725
|
-
var ClearCache = core.gql(templateObject_4$
|
|
16757
|
+
var SaveMutation = core.gql(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"], ["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"])), Fragments.config);
|
|
16758
|
+
var ClearCache = core.gql(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"], ["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"])));
|
|
16726
16759
|
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"])));
|
|
16727
16760
|
var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
|
|
16728
16761
|
var ConfigService = /** @class */ (function (_super) {
|
|
@@ -16781,12 +16814,12 @@
|
|
|
16781
16814
|
case 0:
|
|
16782
16815
|
now = Date.now();
|
|
16783
16816
|
console.debug('[config] Loading Pod configuration...');
|
|
16784
|
-
query = opts && opts.query || LoadQuery
|
|
16817
|
+
query = opts && opts.query || LoadQuery;
|
|
16785
16818
|
variables = opts && opts.variables || undefined;
|
|
16786
16819
|
return [4 /*yield*/, this.graphql.query({
|
|
16787
16820
|
query: query,
|
|
16788
16821
|
variables: variables,
|
|
16789
|
-
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16822
|
+
error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16790
16823
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
16791
16824
|
})];
|
|
16792
16825
|
case 1:
|
|
@@ -16825,7 +16858,7 @@
|
|
|
16825
16858
|
data: json
|
|
16826
16859
|
},
|
|
16827
16860
|
error: {
|
|
16828
|
-
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
16861
|
+
code: ErrorCodes$2.SAVE_CONFIG_ERROR,
|
|
16829
16862
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
16830
16863
|
}
|
|
16831
16864
|
})];
|
|
@@ -16860,7 +16893,7 @@
|
|
|
16860
16893
|
return [4 /*yield*/, this.graphql.query({
|
|
16861
16894
|
query: CacheStatistics,
|
|
16862
16895
|
variables: null,
|
|
16863
|
-
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16896
|
+
error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16864
16897
|
fetchPolicy: 'network-only'
|
|
16865
16898
|
})];
|
|
16866
16899
|
case 1:
|
|
@@ -16884,7 +16917,7 @@
|
|
|
16884
16917
|
return [4 /*yield*/, this.graphql.query({
|
|
16885
16918
|
query: ClearCache,
|
|
16886
16919
|
variables: variables,
|
|
16887
|
-
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16920
|
+
error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16888
16921
|
fetchPolicy: 'network-only'
|
|
16889
16922
|
})];
|
|
16890
16923
|
case 1:
|
|
@@ -17084,7 +17117,7 @@
|
|
|
17084
17117
|
};
|
|
17085
17118
|
return ConfigService;
|
|
17086
17119
|
}(BaseGraphqlService));
|
|
17087
|
-
ConfigService.ɵprov =
|
|
17120
|
+
ConfigService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ConfigService_Factory() { return new ConfigService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(FileService), i0__namespace.ɵɵinject(i1__namespace$4.ToastController), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
|
|
17088
17121
|
ConfigService.decorators = [
|
|
17089
17122
|
{ type: i0.Injectable, args: [{
|
|
17090
17123
|
providedIn: 'root',
|
|
@@ -17102,9 +17135,9 @@
|
|
|
17102
17135
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
17103
17136
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
17104
17137
|
]; };
|
|
17105
|
-
var templateObject_1$
|
|
17138
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2, templateObject_5$1;
|
|
17106
17139
|
|
|
17107
|
-
var moment$
|
|
17140
|
+
var moment$2 = momentImported__namespace;
|
|
17108
17141
|
var PlatformService = /** @class */ (function (_super) {
|
|
17109
17142
|
__extends(PlatformService, _super);
|
|
17110
17143
|
function PlatformService(platform, cdkPlatform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser, downloader) {
|
|
@@ -17343,16 +17376,16 @@
|
|
|
17343
17376
|
}
|
|
17344
17377
|
// config moment lib
|
|
17345
17378
|
try {
|
|
17346
|
-
moment$
|
|
17379
|
+
moment$2.locale(event.lang);
|
|
17347
17380
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
17348
17381
|
}
|
|
17349
17382
|
// If error, fallback to en
|
|
17350
17383
|
catch (err) {
|
|
17351
|
-
moment$
|
|
17384
|
+
moment$2.locale('en');
|
|
17352
17385
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
17353
17386
|
}
|
|
17354
17387
|
// Config date adapter
|
|
17355
|
-
_this.dateAdapter.setLocale(moment$
|
|
17388
|
+
_this.dateAdapter.setLocale(moment$2.locale());
|
|
17356
17389
|
}
|
|
17357
17390
|
});
|
|
17358
17391
|
this.settings.onChange.subscribe(function (data) {
|
|
@@ -17533,7 +17566,7 @@
|
|
|
17533
17566
|
};
|
|
17534
17567
|
return PlatformService;
|
|
17535
17568
|
}(StartableService));
|
|
17536
|
-
PlatformService.ɵprov =
|
|
17569
|
+
PlatformService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PlatformService_Factory() { return new PlatformService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i2__namespace$4.Platform), i0__namespace.ɵɵinject(i1__namespace$4.ToastController), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(i1__namespace.MomentDateAdapter), i0__namespace.ɵɵinject(EntitiesStorage), i0__namespace.ɵɵinject(LocalSettingsService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(AccountService), i0__namespace.ɵɵinject(ConfigService), i0__namespace.ɵɵinject(i6__namespace.CacheService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(AudioProvider), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(i14__namespace.StatusBar, 8), i0__namespace.ɵɵinject(i15__namespace.Keyboard, 8), i0__namespace.ɵɵinject(i10__namespace.SplashScreen, 8), i0__namespace.ɵɵinject(i17__namespace.InAppBrowser, 8), i0__namespace.ɵɵinject(i18__namespace.Downloader, 8)); }, token: PlatformService, providedIn: "root" });
|
|
17537
17570
|
PlatformService.decorators = [
|
|
17538
17571
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
17539
17572
|
];
|
|
@@ -17631,7 +17664,7 @@
|
|
|
17631
17664
|
};
|
|
17632
17665
|
return MatStepperI18n;
|
|
17633
17666
|
}(stepper.MatStepperIntl));
|
|
17634
|
-
MatStepperI18n.ɵprov =
|
|
17667
|
+
MatStepperI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
17635
17668
|
MatStepperI18n.decorators = [
|
|
17636
17669
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
17637
17670
|
];
|
|
@@ -18833,7 +18866,7 @@
|
|
|
18833
18866
|
return 1;
|
|
18834
18867
|
}
|
|
18835
18868
|
}
|
|
18836
|
-
var ɵ0$
|
|
18869
|
+
var ɵ0$1 = function (defaultStateSize) { return [
|
|
18837
18870
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
18838
18871
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
18839
18872
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -18841,7 +18874,7 @@
|
|
|
18841
18874
|
var SCALE_OPTIONS_DEFAULT = {
|
|
18842
18875
|
startColor: rgbArrayMap.red,
|
|
18843
18876
|
startStates: [0, 2, 3],
|
|
18844
|
-
startStepsFn: ɵ0$
|
|
18877
|
+
startStepsFn: ɵ0$1
|
|
18845
18878
|
};
|
|
18846
18879
|
/**
|
|
18847
18880
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -18933,24 +18966,24 @@
|
|
|
18933
18966
|
return result;
|
|
18934
18967
|
}
|
|
18935
18968
|
|
|
18936
|
-
var EntityTestClass = /** @class */ (function () {
|
|
18969
|
+
var EntityTestClass$1 = /** @class */ (function () {
|
|
18937
18970
|
function EntityTestClass() {
|
|
18938
18971
|
}
|
|
18939
18972
|
return EntityTestClass;
|
|
18940
18973
|
}());
|
|
18941
|
-
var FAKE_ENTITIES = [
|
|
18974
|
+
var FAKE_ENTITIES$1 = [
|
|
18942
18975
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
18943
18976
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
18944
18977
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
18945
18978
|
];
|
|
18946
|
-
function deepCopy(values, size) {
|
|
18979
|
+
function deepCopy$1(values, size) {
|
|
18947
18980
|
if (isNil(size)) {
|
|
18948
|
-
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
18981
|
+
return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
|
|
18949
18982
|
}
|
|
18950
18983
|
var result = [];
|
|
18951
18984
|
var i = 1;
|
|
18952
18985
|
while (result.length < size) {
|
|
18953
|
-
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
18986
|
+
result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
|
|
18954
18987
|
var name = entity.name + ' #' + i;
|
|
18955
18988
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
18956
18989
|
}));
|
|
@@ -18960,7 +18993,7 @@
|
|
|
18960
18993
|
var AutocompleteTestPage = /** @class */ (function () {
|
|
18961
18994
|
function AutocompleteTestPage(formBuilder) {
|
|
18962
18995
|
this.formBuilder = formBuilder;
|
|
18963
|
-
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
18996
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
|
|
18964
18997
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
18965
18998
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
18966
18999
|
this.memoryHide = false;
|
|
@@ -19005,7 +19038,7 @@
|
|
|
19005
19038
|
});
|
|
19006
19039
|
// From items
|
|
19007
19040
|
this.autocompleteFields.add('entity-items-large', {
|
|
19008
|
-
items: FAKE_ENTITIES.slice(),
|
|
19041
|
+
items: FAKE_ENTITIES$1.slice(),
|
|
19009
19042
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
19010
19043
|
displayWith: this.entityToString
|
|
19011
19044
|
});
|
|
@@ -19018,12 +19051,12 @@
|
|
|
19018
19051
|
var _this = this;
|
|
19019
19052
|
return __generator(this, function (_a) {
|
|
19020
19053
|
data = {
|
|
19021
|
-
entity: deepCopy(FAKE_ENTITIES)[0],
|
|
19054
|
+
entity: deepCopy$1(FAKE_ENTITIES$1)[0],
|
|
19022
19055
|
// This item is NOT in the items list => i should be displayed anyway
|
|
19023
19056
|
missingEntity: {
|
|
19024
19057
|
id: -1, label: '??', name: 'Missing item'
|
|
19025
19058
|
},
|
|
19026
|
-
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
19059
|
+
disableEntity: deepCopy$1(FAKE_ENTITIES$1)[2]
|
|
19027
19060
|
};
|
|
19028
19061
|
this.form.setValue(data);
|
|
19029
19062
|
// Load observables
|
|
@@ -19221,13 +19254,13 @@
|
|
|
19221
19254
|
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_TESTING_PAGES,] }] }
|
|
19222
19255
|
]; };
|
|
19223
19256
|
|
|
19224
|
-
var moment$
|
|
19257
|
+
var moment$1 = momentImported__namespace;
|
|
19225
19258
|
var SwipeTestPage = /** @class */ (function () {
|
|
19226
19259
|
function SwipeTestPage(formBuilder, dateFormatPipe) {
|
|
19227
19260
|
this.formBuilder = formBuilder;
|
|
19228
19261
|
this.dateFormatPipe = dateFormatPipe;
|
|
19229
19262
|
this.$dates = new rxjs.BehaviorSubject(undefined);
|
|
19230
|
-
this._today = moment$
|
|
19263
|
+
this._today = moment$1().startOf('day');
|
|
19231
19264
|
this.form = formBuilder.group({
|
|
19232
19265
|
empty: [null, i1.Validators.required],
|
|
19233
19266
|
date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
|
|
@@ -19241,7 +19274,7 @@
|
|
|
19241
19274
|
var _this = this;
|
|
19242
19275
|
var dates = [];
|
|
19243
19276
|
for (var d = 0; d < 7; d++) {
|
|
19244
|
-
dates[d] = moment$
|
|
19277
|
+
dates[d] = moment$1(this._today).add(d - 3, 'day');
|
|
19245
19278
|
}
|
|
19246
19279
|
this.$dates.next(dates);
|
|
19247
19280
|
this.loadData();
|
|
@@ -19288,7 +19321,7 @@
|
|
|
19288
19321
|
{ type: DateFormatPipe }
|
|
19289
19322
|
]; };
|
|
19290
19323
|
|
|
19291
|
-
var moment
|
|
19324
|
+
var moment = momentImported__namespace;
|
|
19292
19325
|
var DateTimeTestPage = /** @class */ (function () {
|
|
19293
19326
|
function DateTimeTestPage(platform, formBuilder, cd) {
|
|
19294
19327
|
this.platform = platform;
|
|
@@ -19324,7 +19357,7 @@
|
|
|
19324
19357
|
var now, data;
|
|
19325
19358
|
var _this = this;
|
|
19326
19359
|
return __generator(this, function (_a) {
|
|
19327
|
-
now = moment
|
|
19360
|
+
now = moment();
|
|
19328
19361
|
data = {
|
|
19329
19362
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
19330
19363
|
enable: toDateISOString(now),
|
|
@@ -19389,12 +19422,12 @@
|
|
|
19389
19422
|
{ type: i0.ChangeDetectorRef }
|
|
19390
19423
|
]; };
|
|
19391
19424
|
|
|
19392
|
-
var EntityTestClass
|
|
19425
|
+
var EntityTestClass = /** @class */ (function () {
|
|
19393
19426
|
function EntityTestClass() {
|
|
19394
19427
|
}
|
|
19395
19428
|
return EntityTestClass;
|
|
19396
19429
|
}());
|
|
19397
|
-
var FAKE_ENTITIES
|
|
19430
|
+
var FAKE_ENTITIES = [
|
|
19398
19431
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
19399
19432
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
19400
19433
|
{ id: 3, label: 'CCC', name: 'Item C' },
|
|
@@ -19403,14 +19436,14 @@
|
|
|
19403
19436
|
{ id: 6, label: 'FFF', name: 'Item F' },
|
|
19404
19437
|
{ id: 7, label: 'GGG', name: 'Item G' }
|
|
19405
19438
|
];
|
|
19406
|
-
function deepCopy
|
|
19439
|
+
function deepCopy(values, size) {
|
|
19407
19440
|
if (isNil(size)) {
|
|
19408
|
-
return (values || FAKE_ENTITIES
|
|
19441
|
+
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
19409
19442
|
}
|
|
19410
19443
|
var result = [];
|
|
19411
19444
|
var i = 1;
|
|
19412
19445
|
while (result.length < size) {
|
|
19413
|
-
result = result.concat((values || FAKE_ENTITIES
|
|
19446
|
+
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
19414
19447
|
var name = entity.name + ' #' + i;
|
|
19415
19448
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
19416
19449
|
}));
|
|
@@ -19420,7 +19453,7 @@
|
|
|
19420
19453
|
var ChipsTestPage = /** @class */ (function () {
|
|
19421
19454
|
function ChipsTestPage(formBuilder) {
|
|
19422
19455
|
this.formBuilder = formBuilder;
|
|
19423
|
-
this._items = deepCopy
|
|
19456
|
+
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
19424
19457
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
19425
19458
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
19426
19459
|
this.form = formBuilder.group({
|
|
@@ -19463,7 +19496,7 @@
|
|
|
19463
19496
|
var items, data;
|
|
19464
19497
|
var _this = this;
|
|
19465
19498
|
return __generator(this, function (_a) {
|
|
19466
|
-
items = deepCopy
|
|
19499
|
+
items = deepCopy(FAKE_ENTITIES);
|
|
19467
19500
|
data = {
|
|
19468
19501
|
entity: items.slice(0, 1),
|
|
19469
19502
|
entityInitial: items.slice(1, 2),
|
|
@@ -19551,7 +19584,7 @@
|
|
|
19551
19584
|
},] }
|
|
19552
19585
|
];
|
|
19553
19586
|
|
|
19554
|
-
var routes = [
|
|
19587
|
+
var routes$1 = [
|
|
19555
19588
|
{
|
|
19556
19589
|
path: '',
|
|
19557
19590
|
pathMatch: 'full',
|
|
@@ -19606,7 +19639,7 @@
|
|
|
19606
19639
|
i1.ReactiveFormsModule,
|
|
19607
19640
|
SharedMaterialModule,
|
|
19608
19641
|
i1$2.TranslateModule.forChild(),
|
|
19609
|
-
i3.RouterModule.forChild(routes)
|
|
19642
|
+
i3.RouterModule.forChild(routes$1)
|
|
19610
19643
|
],
|
|
19611
19644
|
declarations: [
|
|
19612
19645
|
MaterialTestingPage,
|
|
@@ -20082,7 +20115,7 @@
|
|
|
20082
20115
|
_this.form.get('username').setValidators(i1.Validators.required);
|
|
20083
20116
|
}
|
|
20084
20117
|
// Enable/disable registration link
|
|
20085
|
-
_this.canRegister = config.
|
|
20118
|
+
_this.canRegister = config.getPropertyAsBoolean(CORE_CONFIG_OPTIONS.REGISTRATION_ENABLE);
|
|
20086
20119
|
_this.markForCheck();
|
|
20087
20120
|
}));
|
|
20088
20121
|
// For DEV only
|
|
@@ -20811,7 +20844,7 @@
|
|
|
20811
20844
|
};
|
|
20812
20845
|
return UserSettingsValidatorService;
|
|
20813
20846
|
}(AppValidatorService));
|
|
20814
|
-
UserSettingsValidatorService.ɵprov =
|
|
20847
|
+
UserSettingsValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
20815
20848
|
UserSettingsValidatorService.decorators = [
|
|
20816
20849
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
20817
20850
|
];
|
|
@@ -20859,7 +20892,7 @@
|
|
|
20859
20892
|
};
|
|
20860
20893
|
return AccountValidatorService;
|
|
20861
20894
|
}(AppValidatorService));
|
|
20862
|
-
AccountValidatorService.ɵprov =
|
|
20895
|
+
AccountValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder), i0__namespace.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
|
|
20863
20896
|
AccountValidatorService.decorators = [
|
|
20864
20897
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
20865
20898
|
];
|
|
@@ -21490,7 +21523,7 @@
|
|
|
21490
21523
|
};
|
|
21491
21524
|
return LocalSettingsValidatorService;
|
|
21492
21525
|
}(AppValidatorService));
|
|
21493
|
-
LocalSettingsValidatorService.ɵprov =
|
|
21526
|
+
LocalSettingsValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder), i0__namespace.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
|
|
21494
21527
|
LocalSettingsValidatorService.decorators = [
|
|
21495
21528
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21496
21529
|
];
|
|
@@ -22270,7 +22303,7 @@
|
|
|
22270
22303
|
};
|
|
22271
22304
|
return IsOnFieldModePipe;
|
|
22272
22305
|
}());
|
|
22273
|
-
IsOnFieldModePipe.ɵprov =
|
|
22306
|
+
IsOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
22274
22307
|
IsOnFieldModePipe.decorators = [
|
|
22275
22308
|
{ type: i0.Pipe, args: [{
|
|
22276
22309
|
name: 'isOnField'
|
|
@@ -22285,7 +22318,7 @@
|
|
|
22285
22318
|
};
|
|
22286
22319
|
return IsNotOnFieldModePipe;
|
|
22287
22320
|
}());
|
|
22288
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
22321
|
+
IsNotOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
22289
22322
|
IsNotOnFieldModePipe.decorators = [
|
|
22290
22323
|
{ type: i0.Pipe, args: [{
|
|
22291
22324
|
name: 'isNotOnField'
|
|
@@ -22303,7 +22336,7 @@
|
|
|
22303
22336
|
};
|
|
22304
22337
|
return PersonToStringPipe;
|
|
22305
22338
|
}());
|
|
22306
|
-
PersonToStringPipe.ɵprov =
|
|
22339
|
+
PersonToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
22307
22340
|
PersonToStringPipe.decorators = [
|
|
22308
22341
|
{ type: i0.Pipe, args: [{
|
|
22309
22342
|
name: 'personToString'
|
|
@@ -22767,7 +22800,7 @@
|
|
|
22767
22800
|
};
|
|
22768
22801
|
return IsLoginAccountPipe;
|
|
22769
22802
|
}());
|
|
22770
|
-
IsLoginAccountPipe.ɵprov =
|
|
22803
|
+
IsLoginAccountPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
22771
22804
|
IsLoginAccountPipe.decorators = [
|
|
22772
22805
|
{ type: i0.Pipe, args: [{
|
|
22773
22806
|
name: 'isLogin'
|
|
@@ -22782,7 +22815,7 @@
|
|
|
22782
22815
|
};
|
|
22783
22816
|
return AccountToStringPipe;
|
|
22784
22817
|
}());
|
|
22785
|
-
AccountToStringPipe.ɵprov =
|
|
22818
|
+
AccountToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
22786
22819
|
AccountToStringPipe.decorators = [
|
|
22787
22820
|
{ type: i0.Pipe, args: [{
|
|
22788
22821
|
name: 'accountToString'
|
|
@@ -22800,7 +22833,7 @@
|
|
|
22800
22833
|
};
|
|
22801
22834
|
return DepartmentToStringPipe;
|
|
22802
22835
|
}());
|
|
22803
|
-
DepartmentToStringPipe.ɵprov =
|
|
22836
|
+
DepartmentToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
22804
22837
|
DepartmentToStringPipe.decorators = [
|
|
22805
22838
|
{ type: i0.Pipe, args: [{
|
|
22806
22839
|
name: 'departmentToString'
|
|
@@ -22835,7 +22868,7 @@
|
|
|
22835
22868
|
};
|
|
22836
22869
|
return MenuService;
|
|
22837
22870
|
}());
|
|
22838
|
-
MenuService.ɵprov =
|
|
22871
|
+
MenuService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
22839
22872
|
MenuService.decorators = [
|
|
22840
22873
|
{ type: i0.Injectable, args: [{
|
|
22841
22874
|
providedIn: 'root'
|
|
@@ -23449,7 +23482,7 @@
|
|
|
23449
23482
|
};
|
|
23450
23483
|
return AuthGuardService;
|
|
23451
23484
|
}());
|
|
23452
|
-
AuthGuardService.ɵprov =
|
|
23485
|
+
AuthGuardService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AuthGuardService_Factory() { return new AuthGuardService(i0__namespace.ɵɵinject(AccountService), i0__namespace.ɵɵinject(i1__namespace$4.ModalController), i0__namespace.ɵɵinject(i3__namespace$3.Router), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: AuthGuardService, providedIn: "root" });
|
|
23453
23486
|
AuthGuardService.decorators = [
|
|
23454
23487
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
23455
23488
|
];
|
|
@@ -23494,7 +23527,7 @@
|
|
|
23494
23527
|
query: query,
|
|
23495
23528
|
variables: { id: id },
|
|
23496
23529
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
23497
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
23530
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
23498
23531
|
})
|
|
23499
23532
|
.pipe(operators.map(function (_b) {
|
|
23500
23533
|
var data = _b.data;
|
|
@@ -23516,7 +23549,7 @@
|
|
|
23516
23549
|
query: query,
|
|
23517
23550
|
variables: { id: id },
|
|
23518
23551
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
23519
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
23552
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
23520
23553
|
})];
|
|
23521
23554
|
case 1:
|
|
23522
23555
|
data = (_b.sent()).data;
|
|
@@ -23552,7 +23585,7 @@
|
|
|
23552
23585
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
23553
23586
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
23554
23587
|
variables: variables,
|
|
23555
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
23588
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
23556
23589
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
23557
23590
|
})
|
|
23558
23591
|
.pipe(operators.map(function (_b) {
|
|
@@ -23594,7 +23627,7 @@
|
|
|
23594
23627
|
return [4 /*yield*/, this.graphql.query({
|
|
23595
23628
|
query: query,
|
|
23596
23629
|
variables: variables,
|
|
23597
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
23630
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
23598
23631
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
23599
23632
|
})];
|
|
23600
23633
|
case 1:
|
|
@@ -23642,7 +23675,7 @@
|
|
|
23642
23675
|
variables: {
|
|
23643
23676
|
filter: filter && filter.asPodObject()
|
|
23644
23677
|
},
|
|
23645
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
23678
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
23646
23679
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
23647
23680
|
})];
|
|
23648
23681
|
case 3:
|
|
@@ -23684,7 +23717,7 @@
|
|
|
23684
23717
|
variables: {
|
|
23685
23718
|
data: json
|
|
23686
23719
|
},
|
|
23687
|
-
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
23720
|
+
error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
23688
23721
|
update: function (proxy, _b) {
|
|
23689
23722
|
var data = _b.data;
|
|
23690
23723
|
var savedEntities = data && data.data;
|
|
@@ -23751,7 +23784,7 @@
|
|
|
23751
23784
|
variables: {
|
|
23752
23785
|
data: json
|
|
23753
23786
|
},
|
|
23754
|
-
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
23787
|
+
error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
23755
23788
|
update: function (cache, _b) {
|
|
23756
23789
|
var data = _b.data;
|
|
23757
23790
|
// Update entity
|
|
@@ -23809,7 +23842,7 @@
|
|
|
23809
23842
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
23810
23843
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
23811
23844
|
variables: { ids: ids },
|
|
23812
|
-
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
23845
|
+
error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
23813
23846
|
update: function (cache, res) {
|
|
23814
23847
|
// Remove from cache
|
|
23815
23848
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -23862,7 +23895,7 @@
|
|
|
23862
23895
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
23863
23896
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
23864
23897
|
variables: { id: id },
|
|
23865
|
-
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
23898
|
+
error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
23866
23899
|
update: function (proxy, res) {
|
|
23867
23900
|
// Remove from cache
|
|
23868
23901
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -23901,7 +23934,7 @@
|
|
|
23901
23934
|
query: opts && opts.query || this.subscriptions.listenChanges,
|
|
23902
23935
|
variables: variables,
|
|
23903
23936
|
error: {
|
|
23904
|
-
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
23937
|
+
code: ErrorCodes$2.SUBSCRIBE_DATA_ERROR,
|
|
23905
23938
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
23906
23939
|
}
|
|
23907
23940
|
})
|
|
@@ -24124,7 +24157,7 @@
|
|
|
24124
24157
|
if (this._debug)
|
|
24125
24158
|
invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
|
|
24126
24159
|
// Stop with an error
|
|
24127
|
-
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
24160
|
+
throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
24128
24161
|
}
|
|
24129
24162
|
this._editingRowCount = 0;
|
|
24130
24163
|
data = void 0;
|
|
@@ -24808,7 +24841,7 @@
|
|
|
24808
24841
|
.subscribe(function (value) { return _this.onDirty.emit(value); }));
|
|
24809
24842
|
// Propagate row dirty state to table
|
|
24810
24843
|
this.registerSubscription(this.onStartEditingRow
|
|
24811
|
-
.pipe(operators.filter(function (row) { return row.validator && true; }), operators.mergeMap(function (row) { return row.validator.valueChanges
|
|
24844
|
+
.pipe(operators.filter(function (row) { return (row === null || row === void 0 ? void 0 : row.validator) && true; }), operators.mergeMap(function (row) { return row.validator.valueChanges
|
|
24812
24845
|
.pipe(operators.takeUntil(
|
|
24813
24846
|
// Stop if next another row, or destroying
|
|
24814
24847
|
rxjs.combineLatest([
|
|
@@ -25134,14 +25167,14 @@
|
|
|
25134
25167
|
case 0:
|
|
25135
25168
|
opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
|
|
25136
25169
|
if (this.readOnly) {
|
|
25137
|
-
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25170
|
+
throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25138
25171
|
}
|
|
25139
25172
|
this.resetError();
|
|
25140
25173
|
// Keep edited row id (should be done BEFORE confirmEditCreate() )
|
|
25141
25174
|
this.previouslyEditedRowId = opts.keepEditing && ((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined;
|
|
25142
25175
|
previouslyEditedData = isNotNil(this.previouslyEditedRowId) && this.editedRow.currentData || ((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.currentData);
|
|
25143
25176
|
if (!this.confirmEditCreate()) {
|
|
25144
|
-
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
25177
|
+
throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
25145
25178
|
}
|
|
25146
25179
|
// Mark as saving
|
|
25147
25180
|
this.markAsSaving();
|
|
@@ -25296,7 +25329,7 @@
|
|
|
25296
25329
|
switch (_d.label) {
|
|
25297
25330
|
case 0:
|
|
25298
25331
|
if (this.readOnly) {
|
|
25299
|
-
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25332
|
+
throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25300
25333
|
}
|
|
25301
25334
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
25302
25335
|
return [2 /*return*/, 0]; // SKip
|
|
@@ -27141,7 +27174,7 @@
|
|
|
27141
27174
|
case 8:
|
|
27142
27175
|
data = _b.sent();
|
|
27143
27176
|
if (!data)
|
|
27144
|
-
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
27177
|
+
throw { code: ErrorCodes$2.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
27145
27178
|
this._usageMode = this.computeUsageMode(data);
|
|
27146
27179
|
return [4 /*yield*/, this.onEntityLoaded(data, opts)];
|
|
27147
27180
|
case 9:
|
|
@@ -27885,10 +27918,10 @@
|
|
|
27885
27918
|
exports.UserEventFilter = __decorate([
|
|
27886
27919
|
EntityClass({ typename: 'UserEventVO' })
|
|
27887
27920
|
], exports.UserEventFilter);
|
|
27888
|
-
var SaveQuery = core.gql(templateObject_1$
|
|
27889
|
-
var LoadAllQuery = core.gql(templateObject_2$
|
|
27890
|
-
var DeleteByIdsMutation = core.gql(templateObject_3$
|
|
27891
|
-
var LoadAllWithContentQuery = core.gql(templateObject_4$
|
|
27921
|
+
var SaveQuery = core.gql(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
|
|
27922
|
+
var LoadAllQuery = core.gql(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"], ["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"])), SocialFragments.lightUserEvent);
|
|
27923
|
+
var DeleteByIdsMutation = core.gql(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"], ["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"])));
|
|
27924
|
+
var LoadAllWithContentQuery = core.gql(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
|
|
27892
27925
|
var UserEventService = /** @class */ (function (_super) {
|
|
27893
27926
|
__extends(UserEventService, _super);
|
|
27894
27927
|
function UserEventService(graphql, accountService, network, translate, toastController, environment) {
|
|
@@ -28209,7 +28242,7 @@
|
|
|
28209
28242
|
};
|
|
28210
28243
|
return UserEventService;
|
|
28211
28244
|
}(BaseGraphqlService));
|
|
28212
|
-
UserEventService.ɵprov =
|
|
28245
|
+
UserEventService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function UserEventService_Factory() { return new UserEventService(i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(AccountService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(i1__namespace$4.ToastController), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: UserEventService, providedIn: "root" });
|
|
28213
28246
|
UserEventService.decorators = [
|
|
28214
28247
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
28215
28248
|
];
|
|
@@ -28221,7 +28254,7 @@
|
|
|
28221
28254
|
{ type: i1$5.ToastController },
|
|
28222
28255
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
28223
28256
|
]; };
|
|
28224
|
-
var templateObject_1$
|
|
28257
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1;
|
|
28225
28258
|
|
|
28226
28259
|
var ICONS_MAP = {
|
|
28227
28260
|
DEBUG_DATA: { matIcon: 'bug_report' },
|
|
@@ -28484,16 +28517,16 @@
|
|
|
28484
28517
|
], exports.PersonFilter);
|
|
28485
28518
|
|
|
28486
28519
|
var PersonFragments = {
|
|
28487
|
-
person: core.gql(templateObject_1
|
|
28520
|
+
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 }"])))
|
|
28488
28521
|
};
|
|
28489
28522
|
// Load persons query
|
|
28490
28523
|
var PersonQueries = {
|
|
28491
|
-
loadAll: core.gql(templateObject_2
|
|
28492
|
-
loadAllWithTotal: core.gql(templateObject_3
|
|
28524
|
+
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),
|
|
28525
|
+
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)
|
|
28493
28526
|
};
|
|
28494
28527
|
var PersonMutations = {
|
|
28495
|
-
saveAll: core.gql(templateObject_4
|
|
28496
|
-
deleteAll: core.gql(templateObject_5
|
|
28528
|
+
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),
|
|
28529
|
+
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 }"])))
|
|
28497
28530
|
};
|
|
28498
28531
|
var PersonService = /** @class */ (function (_super_1) {
|
|
28499
28532
|
__extends(PersonService, _super_1);
|
|
@@ -28617,7 +28650,7 @@
|
|
|
28617
28650
|
};
|
|
28618
28651
|
return PersonService;
|
|
28619
28652
|
}(BaseEntityService));
|
|
28620
|
-
PersonService.ɵprov =
|
|
28653
|
+
PersonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonService_Factory() { return new PersonService(i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(PlatformService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(EntitiesStorage)); }, token: PersonService, providedIn: "root" });
|
|
28621
28654
|
PersonService.decorators = [
|
|
28622
28655
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
28623
28656
|
];
|
|
@@ -28627,7 +28660,7 @@
|
|
|
28627
28660
|
{ type: NetworkService },
|
|
28628
28661
|
{ type: EntitiesStorage }
|
|
28629
28662
|
]; };
|
|
28630
|
-
var templateObject_1
|
|
28663
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
28631
28664
|
|
|
28632
28665
|
var PersonValidatorService = /** @class */ (function () {
|
|
28633
28666
|
function PersonValidatorService(formBuilder, accountValidatorService) {
|
|
@@ -28650,7 +28683,7 @@
|
|
|
28650
28683
|
};
|
|
28651
28684
|
return PersonValidatorService;
|
|
28652
28685
|
}());
|
|
28653
|
-
PersonValidatorService.ɵprov =
|
|
28686
|
+
PersonValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder), i0__namespace.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
|
|
28654
28687
|
PersonValidatorService.decorators = [
|
|
28655
28688
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
28656
28689
|
];
|
|
@@ -28873,16 +28906,16 @@
|
|
|
28873
28906
|
];
|
|
28874
28907
|
AdminModule.ctorParameters = function () { return []; };
|
|
28875
28908
|
|
|
28876
|
-
var ɵ0
|
|
28909
|
+
var ɵ0 = {
|
|
28877
28910
|
profile: 'ADMIN'
|
|
28878
28911
|
};
|
|
28879
|
-
var routes
|
|
28912
|
+
var routes = [
|
|
28880
28913
|
{
|
|
28881
28914
|
path: 'users',
|
|
28882
28915
|
pathMatch: 'full',
|
|
28883
28916
|
component: UsersPage,
|
|
28884
28917
|
canActivate: [AuthGuardService],
|
|
28885
|
-
data: ɵ0
|
|
28918
|
+
data: ɵ0
|
|
28886
28919
|
}
|
|
28887
28920
|
];
|
|
28888
28921
|
var AdminRoutingModule = /** @class */ (function () {
|
|
@@ -28895,13 +28928,13 @@
|
|
|
28895
28928
|
imports: [
|
|
28896
28929
|
SharedRoutingModule,
|
|
28897
28930
|
AdminModule,
|
|
28898
|
-
i3.RouterModule.forChild(routes
|
|
28931
|
+
i3.RouterModule.forChild(routes)
|
|
28899
28932
|
],
|
|
28900
28933
|
exports: [i3.RouterModule]
|
|
28901
28934
|
},] }
|
|
28902
28935
|
];
|
|
28903
28936
|
|
|
28904
|
-
var ErrorCodes
|
|
28937
|
+
var ErrorCodes = {
|
|
28905
28938
|
LOAD_PERSONS_ERROR: 100,
|
|
28906
28939
|
SAVE_PERSONS_ERROR: 101,
|
|
28907
28940
|
DELETE_PERSONS_ERROR: 102,
|
|
@@ -29012,7 +29045,7 @@
|
|
|
29012
29045
|
exports.EntityStore = EntityStore;
|
|
29013
29046
|
exports.EntityUtils = EntityUtils;
|
|
29014
29047
|
exports.Environment = Environment;
|
|
29015
|
-
exports.ErrorCodes = ErrorCodes
|
|
29048
|
+
exports.ErrorCodes = ErrorCodes;
|
|
29016
29049
|
exports.EvenPipe = EvenPipe;
|
|
29017
29050
|
exports.FileService = FileService;
|
|
29018
29051
|
exports.FileSizePipe = FileSizePipe;
|
|
@@ -29022,7 +29055,7 @@
|
|
|
29022
29055
|
exports.FormErrorTranslatePipe = FormErrorTranslatePipe;
|
|
29023
29056
|
exports.FormErrorTranslator = FormErrorTranslator;
|
|
29024
29057
|
exports.FormFieldValuesHolder = FormFieldValuesHolder;
|
|
29025
|
-
exports.Fragments = Fragments
|
|
29058
|
+
exports.Fragments = Fragments;
|
|
29026
29059
|
exports.GraphqlService = GraphqlService;
|
|
29027
29060
|
exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
|
|
29028
29061
|
exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
|
|
@@ -29274,21 +29307,20 @@
|
|
|
29274
29307
|
exports.waitForTrue = waitForTrue;
|
|
29275
29308
|
exports.waitIdle = waitIdle;
|
|
29276
29309
|
exports.waitWhilePending = waitWhilePending;
|
|
29277
|
-
exports
|
|
29278
|
-
exports
|
|
29279
|
-
exports
|
|
29280
|
-
exports
|
|
29281
|
-
exports
|
|
29282
|
-
exports
|
|
29283
|
-
exports
|
|
29284
|
-
exports
|
|
29285
|
-
exports
|
|
29286
|
-
exports
|
|
29287
|
-
exports
|
|
29288
|
-
exports
|
|
29289
|
-
exports.ɵl = AppIconComponent;
|
|
29310
|
+
exports["ɵa"] = CustomReuseStrategy;
|
|
29311
|
+
exports["ɵb"] = MatNumpadDomService;
|
|
29312
|
+
exports["ɵc"] = SharedMatBadgeIconModule;
|
|
29313
|
+
exports["ɵd"] = MatBadgeIconDirective;
|
|
29314
|
+
exports["ɵe"] = isFocusableElement;
|
|
29315
|
+
exports["ɵf"] = MatBadgeIconTestPage;
|
|
29316
|
+
exports["ɵg"] = RegisterForm;
|
|
29317
|
+
exports["ɵh"] = AccountValidatorService;
|
|
29318
|
+
exports["ɵi"] = RegisterModal;
|
|
29319
|
+
exports["ɵj"] = UserSettingsValidatorService;
|
|
29320
|
+
exports["ɵk"] = LocalSettingsValidatorService;
|
|
29321
|
+
exports["ɵl"] = AppIconComponent;
|
|
29290
29322
|
|
|
29291
29323
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
29292
29324
|
|
|
29293
|
-
}))
|
|
29325
|
+
}));
|
|
29294
29326
|
//# sourceMappingURL=sumaris-net.ngx-components.umd.js.map
|