@sumaris-net/ngx-components 1.6.10 → 1.6.11
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 +330 -291
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/auth/form/form-auth.js +1 -1
- 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/fesm2015/sumaris-net.ngx-components.js +314 -284
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +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
|
];
|
|
@@ -3077,7 +3103,7 @@
|
|
|
3077
3103
|
};
|
|
3078
3104
|
return PropertyGetPipe;
|
|
3079
3105
|
}());
|
|
3080
|
-
PropertyGetPipe.ɵprov =
|
|
3106
|
+
PropertyGetPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
|
|
3081
3107
|
PropertyGetPipe.decorators = [
|
|
3082
3108
|
{ type: i0.Pipe, args: [{
|
|
3083
3109
|
name: 'propertyGet'
|
|
@@ -3103,7 +3129,7 @@
|
|
|
3103
3129
|
ngInit: [{ type: i0.Output }]
|
|
3104
3130
|
};
|
|
3105
3131
|
|
|
3106
|
-
var moment$
|
|
3132
|
+
var moment$4 = momentImported__namespace;
|
|
3107
3133
|
// @dynamic
|
|
3108
3134
|
var SharedValidators = /** @class */ (function () {
|
|
3109
3135
|
function SharedValidators() {
|
|
@@ -3122,7 +3148,7 @@
|
|
|
3122
3148
|
};
|
|
3123
3149
|
SharedValidators.validDate = function (control) {
|
|
3124
3150
|
var value = control.value;
|
|
3125
|
-
var date = !value || moment$
|
|
3151
|
+
var date = !value || moment$4.isMoment(value) ? value : moment$4(control.value, DATE_ISO_PATTERN);
|
|
3126
3152
|
if (date && (!date.isValid() || date.year() < 1970)) {
|
|
3127
3153
|
return { validDate: true };
|
|
3128
3154
|
}
|
|
@@ -4288,7 +4314,7 @@
|
|
|
4288
4314
|
};
|
|
4289
4315
|
return FormErrorTranslator;
|
|
4290
4316
|
}());
|
|
4291
|
-
FormErrorTranslator.ɵprov =
|
|
4317
|
+
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
4318
|
FormErrorTranslator.decorators = [
|
|
4293
4319
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
4294
4320
|
];
|
|
@@ -4621,9 +4647,9 @@
|
|
|
4621
4647
|
var hour = parseInt(durationParts[0] || '0');
|
|
4622
4648
|
var minute = parseInt(durationParts[1] || '0');
|
|
4623
4649
|
var value = hour + (minute + 0.5) / 60;
|
|
4624
|
-
return roundFloat
|
|
4650
|
+
return roundFloat(value, maxDecimals);
|
|
4625
4651
|
}
|
|
4626
|
-
function roundFloat
|
|
4652
|
+
function roundFloat(input, maxDecimals) {
|
|
4627
4653
|
if (maxDecimals > 0) {
|
|
4628
4654
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
4629
4655
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -4647,9 +4673,9 @@
|
|
|
4647
4673
|
DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
|
|
4648
4674
|
}
|
|
4649
4675
|
};
|
|
4650
|
-
var noop$
|
|
4676
|
+
var noop$7 = function () {
|
|
4651
4677
|
};
|
|
4652
|
-
var ɵ0$
|
|
4678
|
+
var ɵ0$a = noop$7;
|
|
4653
4679
|
var MatLatLongField = /** @class */ (function () {
|
|
4654
4680
|
function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
|
|
4655
4681
|
this.platform = platform;
|
|
@@ -4657,8 +4683,8 @@
|
|
|
4657
4683
|
this.formBuilder = formBuilder;
|
|
4658
4684
|
this.cd = cd;
|
|
4659
4685
|
this.formGroupDir = formGroupDir;
|
|
4660
|
-
this._onChangeCallback = noop$
|
|
4661
|
-
this._onTouchedCallback = noop$
|
|
4686
|
+
this._onChangeCallback = noop$7;
|
|
4687
|
+
this._onTouchedCallback = noop$7;
|
|
4662
4688
|
this._subscription = new rxjs.Subscription();
|
|
4663
4689
|
this.disabling = false;
|
|
4664
4690
|
this.writing = false;
|
|
@@ -5009,14 +5035,14 @@
|
|
|
5009
5035
|
},] }
|
|
5010
5036
|
];
|
|
5011
5037
|
|
|
5012
|
-
var DEFAULT_VALUE_ACCESSOR = {
|
|
5038
|
+
var DEFAULT_VALUE_ACCESSOR$5 = {
|
|
5013
5039
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5014
5040
|
useExisting: i0.forwardRef(function () { return MatDate; }),
|
|
5015
5041
|
multi: true
|
|
5016
5042
|
};
|
|
5017
|
-
var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5018
|
-
var noop$
|
|
5019
|
-
var ɵ0$
|
|
5043
|
+
var DAY_MASK$2 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5044
|
+
var noop$6 = function () { };
|
|
5045
|
+
var ɵ0$9 = noop$6;
|
|
5020
5046
|
var MatDate = /** @class */ (function () {
|
|
5021
5047
|
function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5022
5048
|
this.dateAdapter = dateAdapter;
|
|
@@ -5025,12 +5051,12 @@
|
|
|
5025
5051
|
this.cd = cd;
|
|
5026
5052
|
this.keyboard = keyboard;
|
|
5027
5053
|
this.formGroupDir = formGroupDir;
|
|
5028
|
-
this._onChangeCallback = noop$
|
|
5029
|
-
this._onTouchedCallback = noop$
|
|
5054
|
+
this._onChangeCallback = noop$6;
|
|
5055
|
+
this._onTouchedCallback = noop$6;
|
|
5030
5056
|
this._subscription = new rxjs.Subscription();
|
|
5031
5057
|
this.writing = true;
|
|
5032
5058
|
this.disabling = false;
|
|
5033
|
-
this.dayMask = DAY_MASK;
|
|
5059
|
+
this.dayMask = DAY_MASK$2;
|
|
5034
5060
|
this.disabled = false;
|
|
5035
5061
|
this.floatLabel = 'auto';
|
|
5036
5062
|
this.readonly = false;
|
|
@@ -5299,7 +5325,7 @@
|
|
|
5299
5325
|
selector: 'mat-date-field',
|
|
5300
5326
|
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
5327
|
providers: [
|
|
5302
|
-
DEFAULT_VALUE_ACCESSOR,
|
|
5328
|
+
DEFAULT_VALUE_ACCESSOR$5,
|
|
5303
5329
|
],
|
|
5304
5330
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5305
5331
|
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 +5358,17 @@
|
|
|
5332
5358
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
5333
5359
|
};
|
|
5334
5360
|
|
|
5335
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5361
|
+
var DEFAULT_VALUE_ACCESSOR$4 = {
|
|
5336
5362
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5337
5363
|
useExisting: i0.forwardRef(function () { return MatDateTime; }),
|
|
5338
5364
|
multi: true
|
|
5339
5365
|
};
|
|
5340
5366
|
var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5341
5367
|
var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
|
|
5342
|
-
var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
5343
|
-
var noop$
|
|
5368
|
+
var HOUR_MASK$1 = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
5369
|
+
var noop$5 = function () {
|
|
5344
5370
|
};
|
|
5345
|
-
var ɵ0$
|
|
5371
|
+
var ɵ0$8 = noop$5;
|
|
5346
5372
|
var MatDateTime = /** @class */ (function () {
|
|
5347
5373
|
function MatDateTime(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5348
5374
|
this.platform = platform;
|
|
@@ -5352,14 +5378,14 @@
|
|
|
5352
5378
|
this.cd = cd;
|
|
5353
5379
|
this.keyboard = keyboard;
|
|
5354
5380
|
this.formGroupDir = formGroupDir;
|
|
5355
|
-
this._onChangeCallback = noop$
|
|
5356
|
-
this._onTouchedCallback = noop$
|
|
5381
|
+
this._onChangeCallback = noop$5;
|
|
5382
|
+
this._onTouchedCallback = noop$5;
|
|
5357
5383
|
this._subscription = new rxjs.Subscription();
|
|
5358
5384
|
this.writing = true;
|
|
5359
5385
|
this.disabling = false;
|
|
5360
5386
|
this._readonly = false;
|
|
5361
5387
|
this.dayMask = DAY_MASK$1;
|
|
5362
|
-
this.hourMask = HOUR_MASK;
|
|
5388
|
+
this.hourMask = HOUR_MASK$1;
|
|
5363
5389
|
this.floatLabel = 'auto';
|
|
5364
5390
|
this.compact = false;
|
|
5365
5391
|
this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
|
|
@@ -5716,7 +5742,7 @@
|
|
|
5716
5742
|
selector: 'mat-date-time-field',
|
|
5717
5743
|
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
5744
|
providers: [
|
|
5719
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5745
|
+
DEFAULT_VALUE_ACCESSOR$4,
|
|
5720
5746
|
],
|
|
5721
5747
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5722
5748
|
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 +5776,15 @@
|
|
|
5750
5776
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
5751
5777
|
};
|
|
5752
5778
|
|
|
5753
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5779
|
+
var DEFAULT_VALUE_ACCESSOR$3 = {
|
|
5754
5780
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5755
5781
|
useExisting: i0.forwardRef(function () { return MatDateShort; }),
|
|
5756
5782
|
multi: true
|
|
5757
5783
|
};
|
|
5758
|
-
var DAY_MASK
|
|
5784
|
+
var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
|
|
5759
5785
|
var noop$4 = function () {
|
|
5760
5786
|
};
|
|
5761
|
-
var ɵ0$
|
|
5787
|
+
var ɵ0$7 = noop$4;
|
|
5762
5788
|
var MatDateShort = /** @class */ (function () {
|
|
5763
5789
|
function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5764
5790
|
this.dateAdapter = dateAdapter;
|
|
@@ -5771,7 +5797,7 @@
|
|
|
5771
5797
|
this._onTouchedCallback = noop$4;
|
|
5772
5798
|
this.writing = true;
|
|
5773
5799
|
this.disabling = false;
|
|
5774
|
-
this.dayMask = DAY_MASK
|
|
5800
|
+
this.dayMask = DAY_MASK;
|
|
5775
5801
|
this.disabled = false;
|
|
5776
5802
|
this.floatLabel = 'auto';
|
|
5777
5803
|
this.readonly = false;
|
|
@@ -6048,7 +6074,7 @@
|
|
|
6048
6074
|
selector: 'mat-date-short-field',
|
|
6049
6075
|
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
6076
|
providers: [
|
|
6051
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6077
|
+
DEFAULT_VALUE_ACCESSOR$3,
|
|
6052
6078
|
],
|
|
6053
6079
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6054
6080
|
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 +6145,16 @@
|
|
|
6119
6145
|
},] }
|
|
6120
6146
|
];
|
|
6121
6147
|
|
|
6122
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6148
|
+
var DEFAULT_VALUE_ACCESSOR$2 = {
|
|
6123
6149
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6124
6150
|
useExisting: i0.forwardRef(function () { return MatDuration; }),
|
|
6125
6151
|
multi: true
|
|
6126
6152
|
};
|
|
6127
6153
|
var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
|
|
6128
|
-
var HOUR_MASK
|
|
6129
|
-
var noop$
|
|
6154
|
+
var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
6155
|
+
var noop$3 = function () {
|
|
6130
6156
|
};
|
|
6131
|
-
var ɵ0$
|
|
6157
|
+
var ɵ0$6 = noop$3;
|
|
6132
6158
|
var MatDuration = /** @class */ (function () {
|
|
6133
6159
|
function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
|
|
6134
6160
|
this.dateAdapter = dateAdapter;
|
|
@@ -6137,11 +6163,11 @@
|
|
|
6137
6163
|
this.cd = cd;
|
|
6138
6164
|
this.formGroupDir = formGroupDir;
|
|
6139
6165
|
this._subscription = new rxjs.Subscription();
|
|
6140
|
-
this._onChangeCallback = noop$
|
|
6141
|
-
this._onTouchedCallback = noop$
|
|
6166
|
+
this._onChangeCallback = noop$3;
|
|
6167
|
+
this._onTouchedCallback = noop$3;
|
|
6142
6168
|
this.writing = true;
|
|
6143
6169
|
this.disabling = false;
|
|
6144
|
-
this.hourMask = HOUR_MASK
|
|
6170
|
+
this.hourMask = HOUR_MASK;
|
|
6145
6171
|
this.disabled = false;
|
|
6146
6172
|
this.floatLabel = 'auto';
|
|
6147
6173
|
this.readonly = false;
|
|
@@ -6334,7 +6360,7 @@
|
|
|
6334
6360
|
selector: 'mat-duration-field',
|
|
6335
6361
|
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
6362
|
providers: [
|
|
6337
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6363
|
+
DEFAULT_VALUE_ACCESSOR$2,
|
|
6338
6364
|
],
|
|
6339
6365
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6340
6366
|
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 +6420,22 @@
|
|
|
6394
6420
|
},] }
|
|
6395
6421
|
];
|
|
6396
6422
|
|
|
6397
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6423
|
+
var DEFAULT_VALUE_ACCESSOR$1 = {
|
|
6398
6424
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6399
6425
|
useExisting: i0.forwardRef(function () { return MatBooleanField; }),
|
|
6400
6426
|
multi: true
|
|
6401
6427
|
};
|
|
6402
|
-
var noop$
|
|
6428
|
+
var noop$2 = function () {
|
|
6403
6429
|
};
|
|
6404
|
-
var ɵ0$
|
|
6430
|
+
var ɵ0$5 = noop$2;
|
|
6405
6431
|
var MatBooleanField = /** @class */ (function () {
|
|
6406
6432
|
function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
|
|
6407
6433
|
this.translate = translate;
|
|
6408
6434
|
this.formBuilder = formBuilder;
|
|
6409
6435
|
this.cd = cd;
|
|
6410
6436
|
this.formGroupDir = formGroupDir;
|
|
6411
|
-
this._onChangeCallback = noop$
|
|
6412
|
-
this._onTouchedCallback = noop$
|
|
6437
|
+
this._onChangeCallback = noop$2;
|
|
6438
|
+
this._onTouchedCallback = noop$2;
|
|
6413
6439
|
this._writing = false;
|
|
6414
6440
|
this.showRadio = false;
|
|
6415
6441
|
this.disabled = false;
|
|
@@ -6584,7 +6610,7 @@
|
|
|
6584
6610
|
selector: 'mat-boolean-field',
|
|
6585
6611
|
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
6612
|
providers: [
|
|
6587
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6613
|
+
DEFAULT_VALUE_ACCESSOR$1
|
|
6588
6614
|
],
|
|
6589
6615
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6590
6616
|
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 +6697,7 @@
|
|
|
6671
6697
|
return MatNumpadEvent;
|
|
6672
6698
|
}(KeyboardEvent));
|
|
6673
6699
|
|
|
6700
|
+
exports.AnimationState = void 0;
|
|
6674
6701
|
(function (AnimationState) {
|
|
6675
6702
|
AnimationState["ENTER"] = "enter";
|
|
6676
6703
|
AnimationState["ENTER_INPUT"] = "enter-input";
|
|
@@ -6838,7 +6865,7 @@
|
|
|
6838
6865
|
};
|
|
6839
6866
|
return MatNumpadDomService;
|
|
6840
6867
|
}());
|
|
6841
|
-
MatNumpadDomService.ɵprov =
|
|
6868
|
+
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
6869
|
MatNumpadDomService.decorators = [
|
|
6843
6870
|
{ type: i0.Injectable, args: [{
|
|
6844
6871
|
providedIn: 'root'
|
|
@@ -7244,7 +7271,7 @@
|
|
|
7244
7271
|
},] }
|
|
7245
7272
|
];
|
|
7246
7273
|
|
|
7247
|
-
var DEFAULT_VALUE_ACCESSOR
|
|
7274
|
+
var DEFAULT_VALUE_ACCESSOR = {
|
|
7248
7275
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
7249
7276
|
useExisting: i0.forwardRef(function () { return MatSwipeField; }),
|
|
7250
7277
|
multi: true
|
|
@@ -7564,7 +7591,7 @@
|
|
|
7564
7591
|
{ type: i0.Component, args: [{
|
|
7565
7592
|
selector: 'mat-swipe-field',
|
|
7566
7593
|
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
|
|
7594
|
+
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
7568
7595
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7569
7596
|
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
7597
|
},] }
|
|
@@ -7625,14 +7652,14 @@
|
|
|
7625
7652
|
},] }
|
|
7626
7653
|
];
|
|
7627
7654
|
|
|
7628
|
-
var noop$
|
|
7629
|
-
var ɵ0$
|
|
7655
|
+
var noop$1 = function () { };
|
|
7656
|
+
var ɵ0$4 = noop$1;
|
|
7630
7657
|
var MatChipsField = /** @class */ (function () {
|
|
7631
7658
|
function MatChipsField(cd, formGroupDir) {
|
|
7632
7659
|
this.cd = cd;
|
|
7633
7660
|
this.formGroupDir = formGroupDir;
|
|
7634
|
-
this._onChangeCallback = noop$
|
|
7635
|
-
this._onTouchedCallback = noop$
|
|
7661
|
+
this._onChangeCallback = noop$1;
|
|
7662
|
+
this._onTouchedCallback = noop$1;
|
|
7636
7663
|
this.logPrefix = '[mat-chips] ';
|
|
7637
7664
|
this.formControlName = null;
|
|
7638
7665
|
this.required = false;
|
|
@@ -7857,7 +7884,7 @@
|
|
|
7857
7884
|
// Wait a debounce time
|
|
7858
7885
|
operators.debounceTime(this.debounceTime)
|
|
7859
7886
|
// DEBUG
|
|
7860
|
-
|
|
7887
|
+
//,tap((value) => this.debug && console.debug(this.logPrefix + ' Search text changes:', value))
|
|
7861
7888
|
),
|
|
7862
7889
|
// Object set: use it (no distinctUntilChanged() pipe need)
|
|
7863
7890
|
this.inputControl.valueChanges
|
|
@@ -7873,18 +7900,25 @@
|
|
|
7873
7900
|
rxjs.merge(
|
|
7874
7901
|
// Focus or click => Load all
|
|
7875
7902
|
rxjs.merge(this.focused, this.clicked)
|
|
7876
|
-
.pipe(operators.filter(function (_) { return _this.enabled; }), operators.map(function (_) { return _this.showAllOnFocus ? '*' : _this.inputControl.value; })
|
|
7903
|
+
.pipe(operators.filter(function (_) { return _this.enabled; }), operators.map(function (_) { return _this.showAllOnFocus ? '*' : _this.inputControl.value; })
|
|
7904
|
+
// DEBUG
|
|
7905
|
+
//,tap(value => this.debug && console.debug(this.logPrefix + ' Received focused or clicked event: ', value))
|
|
7906
|
+
), rxjs.merge(this.$inputItems, this._$filter)
|
|
7877
7907
|
.pipe(operators.filter(function (_) { return _this.enabled; }), operators.map(function (_) { return _this.inputControl.value; })))
|
|
7878
7908
|
.pipe(
|
|
7879
7909
|
// Make sure there is enough characters
|
|
7880
7910
|
operators.filter(thresholdFilterFn),
|
|
7881
7911
|
// Distinguish changes
|
|
7882
|
-
|
|
7912
|
+
// - do NOT filter if loading, to force update after a blur event
|
|
7913
|
+
operators.distinctUntilChanged(function (v1, v2) { return !_this.loading && (v1 === v2 || _this.equals(v1, v2)); })
|
|
7914
|
+
// DEBUG
|
|
7915
|
+
//,tap(value => this.debug && console.debug(this.logPrefix + ' Received update event: ', value))
|
|
7916
|
+
))
|
|
7883
7917
|
.pipe(
|
|
7884
7918
|
// Suggest values
|
|
7885
7919
|
operators.mergeMap(function (value) { return _this.suggest(value, _this.filter); }),
|
|
7886
7920
|
// DEBUG
|
|
7887
|
-
//tap(items => console.debug(this.logPrefix + ' Received from suggest: ', items)),
|
|
7921
|
+
//tap(items => this.debug && console.debug(this.logPrefix + ' Received from suggest: ', items)),
|
|
7888
7922
|
// Store implicit value (will use it onBlur if not other value selected)
|
|
7889
7923
|
operators.tap(function (items) { return _this.updateImplicitValue(items); }));
|
|
7890
7924
|
// Fetch more events
|
|
@@ -7905,7 +7939,10 @@
|
|
|
7905
7939
|
.subscribe(function (items) { return _this.$filteredItems.next(items); }));
|
|
7906
7940
|
// Applying implicit value, on blur
|
|
7907
7941
|
this._subscription.add(this.blurred
|
|
7908
|
-
.pipe(operators.map(function (_) { return _this.formControl.value; })
|
|
7942
|
+
.pipe(operators.map(function (_) { return _this.formControl.value; })
|
|
7943
|
+
// DEBUG
|
|
7944
|
+
//,tap(value => this.debug && console.debug(this.logPrefix + ' Received blurred event: ', value)),
|
|
7945
|
+
)
|
|
7909
7946
|
.subscribe(function (value) {
|
|
7910
7947
|
// When leave component without object, use implicit value if :
|
|
7911
7948
|
// - an explicit value
|
|
@@ -8017,6 +8054,8 @@
|
|
|
8017
8054
|
this._reload$.next(value || '*');
|
|
8018
8055
|
};
|
|
8019
8056
|
MatChipsField.prototype.writeValue = function (value) {
|
|
8057
|
+
// DEBUG
|
|
8058
|
+
// if (this.debug) console.debug(this.logPrefix + ' Writing value: ', value);
|
|
8020
8059
|
if (value && !Array.isArray(value)) {
|
|
8021
8060
|
value = [value];
|
|
8022
8061
|
}
|
|
@@ -8287,9 +8326,9 @@
|
|
|
8287
8326
|
showLoadingSpinner: [{ type: i0.Input }],
|
|
8288
8327
|
chipColor: [{ type: i0.Input }],
|
|
8289
8328
|
debug: [{ type: i0.Input }],
|
|
8290
|
-
clicked: [{ type: i0.Output }],
|
|
8291
|
-
blurred: [{ type: i0.Output }],
|
|
8292
|
-
focused: [{ type: i0.Output }],
|
|
8329
|
+
clicked: [{ type: i0.Output, args: ['click',] }],
|
|
8330
|
+
blurred: [{ type: i0.Output, args: ['blur',] }],
|
|
8331
|
+
focused: [{ type: i0.Output, args: ['focus',] }],
|
|
8293
8332
|
dropButtonClick: [{ type: i0.Output }],
|
|
8294
8333
|
keydownEscape: [{ type: i0.Output, args: ['keydown.escape',] }],
|
|
8295
8334
|
keyupEnter: [{ type: i0.Output, args: ['keyup.enter',] }],
|
|
@@ -8496,7 +8535,7 @@
|
|
|
8496
8535
|
};
|
|
8497
8536
|
return ProgressBarService;
|
|
8498
8537
|
}());
|
|
8499
|
-
ProgressBarService.ɵprov =
|
|
8538
|
+
ProgressBarService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
|
|
8500
8539
|
ProgressBarService.decorators = [
|
|
8501
8540
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8502
8541
|
];
|
|
@@ -8543,7 +8582,7 @@
|
|
|
8543
8582
|
};
|
|
8544
8583
|
return AppGestureConfig;
|
|
8545
8584
|
}(i1$6.HammerGestureConfig));
|
|
8546
|
-
AppGestureConfig.ɵprov =
|
|
8585
|
+
AppGestureConfig.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
|
|
8547
8586
|
AppGestureConfig.decorators = [
|
|
8548
8587
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8549
8588
|
];
|
|
@@ -8810,7 +8849,7 @@
|
|
|
8810
8849
|
};
|
|
8811
8850
|
return MatPaginatorI18n;
|
|
8812
8851
|
}(paginator.MatPaginatorIntl));
|
|
8813
|
-
MatPaginatorI18n.ɵprov =
|
|
8852
|
+
MatPaginatorI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
|
|
8814
8853
|
MatPaginatorI18n.decorators = [
|
|
8815
8854
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8816
8855
|
];
|
|
@@ -8902,17 +8941,17 @@
|
|
|
8902
8941
|
return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
|
|
8903
8942
|
}
|
|
8904
8943
|
|
|
8905
|
-
var noop
|
|
8944
|
+
var noop = function () {
|
|
8906
8945
|
};
|
|
8907
|
-
var ɵ0$
|
|
8946
|
+
var ɵ0$3 = noop;
|
|
8908
8947
|
var AppFormField = /** @class */ (function () {
|
|
8909
8948
|
function AppFormField(translate, cd, injector, formGroupDir) {
|
|
8910
8949
|
this.translate = translate;
|
|
8911
8950
|
this.cd = cd;
|
|
8912
8951
|
this.injector = injector;
|
|
8913
8952
|
this.formGroupDir = formGroupDir;
|
|
8914
|
-
this._onChangeCallback = noop
|
|
8915
|
-
this._onTouchedCallback = noop
|
|
8953
|
+
this._onChangeCallback = noop;
|
|
8954
|
+
this._onTouchedCallback = noop;
|
|
8916
8955
|
this.readonly = false;
|
|
8917
8956
|
this.compact = false;
|
|
8918
8957
|
this.floatLabel = 'auto';
|
|
@@ -9467,7 +9506,7 @@
|
|
|
9467
9506
|
};
|
|
9468
9507
|
return AudioProvider;
|
|
9469
9508
|
}(StartableService));
|
|
9470
|
-
AudioProvider.ɵprov =
|
|
9509
|
+
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
9510
|
AudioProvider.decorators = [
|
|
9472
9511
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9473
9512
|
];
|
|
@@ -9567,7 +9606,7 @@
|
|
|
9567
9606
|
};
|
|
9568
9607
|
return Hotkeys;
|
|
9569
9608
|
}());
|
|
9570
|
-
Hotkeys.ɵprov =
|
|
9609
|
+
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
9610
|
Hotkeys.decorators = [
|
|
9572
9611
|
{ type: i0.Injectable, args: [{
|
|
9573
9612
|
providedIn: 'root'
|
|
@@ -9771,7 +9810,7 @@
|
|
|
9771
9810
|
return Base64ImageReader;
|
|
9772
9811
|
}());
|
|
9773
9812
|
|
|
9774
|
-
var uuidv4 = uuidv4Imported__namespace;
|
|
9813
|
+
var uuidv4$1 = uuidv4Imported__namespace;
|
|
9775
9814
|
var FileService = /** @class */ (function () {
|
|
9776
9815
|
function FileService(platform,
|
|
9777
9816
|
//private transfer: FileTransfer,
|
|
@@ -9817,7 +9856,7 @@
|
|
|
9817
9856
|
lastSlashIndex = source.lastIndexOf('/');
|
|
9818
9857
|
if (lastSlashIndex === -1)
|
|
9819
9858
|
throw new Error('Invalid URL: ' + source);
|
|
9820
|
-
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
|
|
9859
|
+
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4$1();
|
|
9821
9860
|
if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
|
|
9822
9861
|
console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
|
|
9823
9862
|
targetFilePath = this._imageDirectory + fileName;
|
|
@@ -9880,7 +9919,7 @@
|
|
|
9880
9919
|
};
|
|
9881
9920
|
return FileService;
|
|
9882
9921
|
}());
|
|
9883
|
-
FileService.ɵprov =
|
|
9922
|
+
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
9923
|
FileService.decorators = [
|
|
9885
9924
|
{ type: i0.Injectable, args: [{
|
|
9886
9925
|
providedIn: 'root',
|
|
@@ -10047,7 +10086,7 @@
|
|
|
10047
10086
|
Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
10048
10087
|
|
|
10049
10088
|
var scrypt = require('scrypt-async');
|
|
10050
|
-
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
10089
|
+
var sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
10051
10090
|
var sha512 = require('hash.js/lib/hash/sha/512');
|
|
10052
10091
|
var nacl = {
|
|
10053
10092
|
sign: tweetnacl.sign,
|
|
@@ -10153,7 +10192,7 @@
|
|
|
10153
10192
|
* Hash (using SHA256) a message
|
|
10154
10193
|
*/
|
|
10155
10194
|
CryptoService.prototype.sha256 = function (message) {
|
|
10156
|
-
return sha256().update(message).digest('hex');
|
|
10195
|
+
return sha256$1().update(message).digest('hex');
|
|
10157
10196
|
};
|
|
10158
10197
|
/**
|
|
10159
10198
|
* Hash (using SHA512) a message
|
|
@@ -10167,7 +10206,7 @@
|
|
|
10167
10206
|
};
|
|
10168
10207
|
return CryptoService;
|
|
10169
10208
|
}());
|
|
10170
|
-
CryptoService.ɵprov =
|
|
10209
|
+
CryptoService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
|
|
10171
10210
|
CryptoService.decorators = [
|
|
10172
10211
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
10173
10212
|
];
|
|
@@ -11596,7 +11635,7 @@
|
|
|
11596
11635
|
};
|
|
11597
11636
|
return LocalSettingsService;
|
|
11598
11637
|
}(StartableService));
|
|
11599
|
-
LocalSettingsService.ɵprov =
|
|
11638
|
+
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
11639
|
LocalSettingsService.decorators = [
|
|
11601
11640
|
{ type: i0.Injectable, args: [{
|
|
11602
11641
|
providedIn: 'root',
|
|
@@ -12399,7 +12438,7 @@
|
|
|
12399
12438
|
};
|
|
12400
12439
|
return NetworkService;
|
|
12401
12440
|
}(StartableService));
|
|
12402
|
-
NetworkService.ɵprov =
|
|
12441
|
+
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
12442
|
NetworkService.decorators = [
|
|
12404
12443
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
12405
12444
|
];
|
|
@@ -12419,7 +12458,7 @@
|
|
|
12419
12458
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
|
|
12420
12459
|
]; };
|
|
12421
12460
|
|
|
12422
|
-
var ErrorCodes = {
|
|
12461
|
+
var ErrorCodes$2 = {
|
|
12423
12462
|
UNKNOWN_ERROR: 0,
|
|
12424
12463
|
LOAD_ACCOUNT_ERROR: 1,
|
|
12425
12464
|
BAD_PASSWORD: 2,
|
|
@@ -12836,7 +12875,7 @@
|
|
|
12836
12875
|
case 13:
|
|
12837
12876
|
err_1 = _b.sent();
|
|
12838
12877
|
console.error(err_1);
|
|
12839
|
-
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
12878
|
+
throw { code: ErrorCodes$2.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
12840
12879
|
case 14:
|
|
12841
12880
|
// Emit update event
|
|
12842
12881
|
if (!opts || opts.emitEvent !== false) {
|
|
@@ -13613,7 +13652,7 @@
|
|
|
13613
13652
|
}(StartableService));
|
|
13614
13653
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
13615
13654
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
13616
|
-
EntitiesStorage.ɵprov =
|
|
13655
|
+
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
13656
|
EntitiesStorage.decorators = [
|
|
13618
13657
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
13619
13658
|
];
|
|
@@ -13769,10 +13808,10 @@
|
|
|
13769
13808
|
function referentialsToString(values, properties, separator) {
|
|
13770
13809
|
return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
|
|
13771
13810
|
}
|
|
13772
|
-
var ɵ0$
|
|
13811
|
+
var ɵ0$2 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
13773
13812
|
var StatusList = Object.freeze([
|
|
13774
13813
|
{
|
|
13775
|
-
id: ɵ0$
|
|
13814
|
+
id: ɵ0$2,
|
|
13776
13815
|
icon: 'checkmark',
|
|
13777
13816
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
13778
13817
|
},
|
|
@@ -14075,7 +14114,7 @@
|
|
|
14075
14114
|
(data.lastName || '')) || '';
|
|
14076
14115
|
}
|
|
14077
14116
|
|
|
14078
|
-
var uuidv4
|
|
14117
|
+
var uuidv4 = uuidv4Imported__namespace;
|
|
14079
14118
|
var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
14080
14119
|
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
14081
14120
|
/**
|
|
@@ -14119,7 +14158,7 @@
|
|
|
14119
14158
|
// Skip if not tracked
|
|
14120
14159
|
if (!context || !context.tracked)
|
|
14121
14160
|
return forward(operation);
|
|
14122
|
-
var id = context.serializationKey || uuidv4
|
|
14161
|
+
var id = context.serializationKey || uuidv4();
|
|
14123
14162
|
console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
|
|
14124
14163
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
14125
14164
|
var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -14752,14 +14791,14 @@
|
|
|
14752
14791
|
mutationLinks = void 0;
|
|
14753
14792
|
// Add queue to store tracked queries, when offline
|
|
14754
14793
|
if (enableTrackMutationQueries) {
|
|
14755
|
-
serializingLink = new SerializingLink__default[
|
|
14794
|
+
serializingLink = new SerializingLink__default["default"]();
|
|
14756
14795
|
trackerLink = createTrackerLink({
|
|
14757
14796
|
storage: storage,
|
|
14758
14797
|
onNetworkStatusChange: this._networkStatusChanged$,
|
|
14759
14798
|
debounce: 1000,
|
|
14760
14799
|
debug: true
|
|
14761
14800
|
});
|
|
14762
|
-
queueLink_1 = new QueueLink__default[
|
|
14801
|
+
queueLink_1 = new QueueLink__default["default"]();
|
|
14763
14802
|
this.registerSubscription(this._networkStatusChanged$
|
|
14764
14803
|
.subscribe(function (type) {
|
|
14765
14804
|
// Network is offline: start buffering into queue
|
|
@@ -14774,7 +14813,7 @@
|
|
|
14774
14813
|
}
|
|
14775
14814
|
}));
|
|
14776
14815
|
mutationLinks = [
|
|
14777
|
-
loggerLink__default[
|
|
14816
|
+
loggerLink__default["default"],
|
|
14778
14817
|
queueLink_1,
|
|
14779
14818
|
trackerLink,
|
|
14780
14819
|
queueLink_1,
|
|
@@ -14881,7 +14920,7 @@
|
|
|
14881
14920
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
14882
14921
|
|| this.toAppError(err.networkError)
|
|
14883
14922
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
14884
|
-
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
14923
|
+
|| this.createAppErrorByCode(ErrorCodes$2.UNKNOWN_NETWORK_ERROR)))
|
|
14885
14924
|
// If graphQL: try to convert the first error found
|
|
14886
14925
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
14887
14926
|
|| this.toAppError(err)
|
|
@@ -14889,7 +14928,7 @@
|
|
|
14889
14928
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
14890
14929
|
|| err;
|
|
14891
14930
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
14892
|
-
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
14931
|
+
if (error && error.code === ErrorCodes$2.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
14893
14932
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
14894
14933
|
this.onNetworkError.next(error);
|
|
14895
14934
|
}
|
|
@@ -14925,7 +14964,7 @@
|
|
|
14925
14964
|
return 'ERROR.UNAUTHORIZED';
|
|
14926
14965
|
case ServerErrorCodes.FORBIDDEN:
|
|
14927
14966
|
return 'ERROR.FORBIDDEN';
|
|
14928
|
-
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
14967
|
+
case ErrorCodes$2.UNKNOWN_NETWORK_ERROR:
|
|
14929
14968
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
14930
14969
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
14931
14970
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -14957,7 +14996,7 @@
|
|
|
14957
14996
|
};
|
|
14958
14997
|
return GraphqlService;
|
|
14959
14998
|
}(StartableService));
|
|
14960
|
-
GraphqlService.ɵprov =
|
|
14999
|
+
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
15000
|
GraphqlService.decorators = [
|
|
14962
15001
|
{ type: i0.Injectable, args: [{
|
|
14963
15002
|
providedIn: 'root'
|
|
@@ -14974,7 +15013,7 @@
|
|
|
14974
15013
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
14975
15014
|
]; };
|
|
14976
15015
|
|
|
14977
|
-
var sha256
|
|
15016
|
+
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
14978
15017
|
var BaseGraphqlServiceOptions = /** @class */ (function () {
|
|
14979
15018
|
function BaseGraphqlServiceOptions() {
|
|
14980
15019
|
}
|
|
@@ -15144,8 +15183,8 @@
|
|
|
15144
15183
|
};
|
|
15145
15184
|
/* -- protected methods -- */
|
|
15146
15185
|
BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
|
|
15147
|
-
var queryName = opts.queryName || sha256
|
|
15148
|
-
var variablesKey = opts.variables && sha256
|
|
15186
|
+
var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
15187
|
+
var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
15149
15188
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
15150
15189
|
};
|
|
15151
15190
|
BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
|
|
@@ -15214,19 +15253,19 @@
|
|
|
15214
15253
|
/* ------------------------------------
|
|
15215
15254
|
* GraphQL queries
|
|
15216
15255
|
* ------------------------------------*/
|
|
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 }"])))
|
|
15256
|
+
var Fragments$1 = {
|
|
15257
|
+
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 }"]))),
|
|
15258
|
+
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
15259
|
};
|
|
15221
15260
|
// 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);
|
|
15261
|
+
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
15262
|
// 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"])));
|
|
15263
|
+
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
15264
|
// Save (create or update) account mutation
|
|
15226
15265
|
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)
|
|
15266
|
+
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),
|
|
15267
|
+
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),
|
|
15268
|
+
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
15269
|
};
|
|
15231
15270
|
// Sent confirmation email
|
|
15232
15271
|
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 +15627,7 @@
|
|
|
15588
15627
|
error_3 = _b.sent();
|
|
15589
15628
|
console.error(error_3);
|
|
15590
15629
|
this.resetData();
|
|
15591
|
-
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
15630
|
+
throw { code: ErrorCodes$2.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
15592
15631
|
case 4:
|
|
15593
15632
|
// Store pubkey+keypair
|
|
15594
15633
|
this._cache.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -15624,7 +15663,7 @@
|
|
|
15624
15663
|
return [3 /*break*/, 18];
|
|
15625
15664
|
case 11:
|
|
15626
15665
|
err_1 = _b.sent();
|
|
15627
|
-
if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
15666
|
+
if (!(err_1 && +(err_1.code) === ErrorCodes$2.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
15628
15667
|
if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
|
|
15629
15668
|
isEmailExists = void 0;
|
|
15630
15669
|
_b.label = 12;
|
|
@@ -15640,12 +15679,12 @@
|
|
|
15640
15679
|
case 15:
|
|
15641
15680
|
// Email not exists (no account)
|
|
15642
15681
|
if (!isEmailExists) {
|
|
15643
|
-
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
15682
|
+
throw { code: ErrorCodes$2.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
15644
15683
|
}
|
|
15645
15684
|
_b.label = 16;
|
|
15646
15685
|
case 16:
|
|
15647
15686
|
// Email exists, so error = 'bad password'
|
|
15648
|
-
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
15687
|
+
throw { code: ErrorCodes$2.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
15649
15688
|
case 17: throw err_1; // resend the first error
|
|
15650
15689
|
case 18:
|
|
15651
15690
|
_b.trys.push([18, 20, , 21]);
|
|
@@ -15817,8 +15856,8 @@
|
|
|
15817
15856
|
_b.label = 3;
|
|
15818
15857
|
case 3: return [3 /*break*/, 6];
|
|
15819
15858
|
case 4: return [4 /*yield*/, this.graphql.query({
|
|
15820
|
-
query: LoadQuery,
|
|
15821
|
-
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
15859
|
+
query: LoadQuery$1,
|
|
15860
|
+
error: { code: ErrorCodes$2.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
15822
15861
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
15823
15862
|
})];
|
|
15824
15863
|
case 5:
|
|
@@ -15856,7 +15895,7 @@
|
|
|
15856
15895
|
case 1:
|
|
15857
15896
|
isEmailExists = _b.sent();
|
|
15858
15897
|
if (isEmailExists) {
|
|
15859
|
-
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
15898
|
+
throw { code: ErrorCodes$2.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
15860
15899
|
}
|
|
15861
15900
|
return [2 /*return*/];
|
|
15862
15901
|
}
|
|
@@ -15906,7 +15945,7 @@
|
|
|
15906
15945
|
locale: locale
|
|
15907
15946
|
},
|
|
15908
15947
|
error: {
|
|
15909
|
-
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
15948
|
+
code: ErrorCodes$2.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
15910
15949
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
15911
15950
|
}
|
|
15912
15951
|
})];
|
|
@@ -15929,7 +15968,7 @@
|
|
|
15929
15968
|
code: code
|
|
15930
15969
|
},
|
|
15931
15970
|
error: {
|
|
15932
|
-
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
15971
|
+
code: ErrorCodes$2.CONFIRM_EMAIL_FAILED,
|
|
15933
15972
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
15934
15973
|
}
|
|
15935
15974
|
})];
|
|
@@ -15952,7 +15991,7 @@
|
|
|
15952
15991
|
interval: 10
|
|
15953
15992
|
},
|
|
15954
15993
|
error: {
|
|
15955
|
-
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
15994
|
+
code: ErrorCodes$2.SUBSCRIBE_ACCOUNT_ERROR,
|
|
15956
15995
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ACCOUNT_ERROR'
|
|
15957
15996
|
}
|
|
15958
15997
|
}).subscribe({
|
|
@@ -16092,7 +16131,7 @@
|
|
|
16092
16131
|
throw error_6;
|
|
16093
16132
|
console.error(error_6);
|
|
16094
16133
|
throw {
|
|
16095
|
-
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
16134
|
+
code: ErrorCodes$2.LOAD_ACCOUNT_ERROR,
|
|
16096
16135
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
16097
16136
|
};
|
|
16098
16137
|
case 6: return [2 /*return*/];
|
|
@@ -16301,7 +16340,7 @@
|
|
|
16301
16340
|
case 1:
|
|
16302
16341
|
existingAccount = _b.sent();
|
|
16303
16342
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
16304
|
-
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
16343
|
+
throw { code: ErrorCodes$2.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
16305
16344
|
}
|
|
16306
16345
|
this.copyIdAndUpdateDate(existingAccount, account);
|
|
16307
16346
|
_b.label = 2;
|
|
@@ -16313,7 +16352,7 @@
|
|
|
16313
16352
|
mutation: isNew ? AccountMutations.create : AccountMutations.save,
|
|
16314
16353
|
variables: { data: json },
|
|
16315
16354
|
error: {
|
|
16316
|
-
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
16355
|
+
code: ErrorCodes$2.SAVE_ACCOUNT_ERROR,
|
|
16317
16356
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
16318
16357
|
}
|
|
16319
16358
|
})];
|
|
@@ -16347,7 +16386,7 @@
|
|
|
16347
16386
|
mutation: AccountMutations.saveSettings,
|
|
16348
16387
|
variables: { data: json },
|
|
16349
16388
|
error: {
|
|
16350
|
-
code: ErrorCodes.SAVE_SETTINGS_ERROR,
|
|
16389
|
+
code: ErrorCodes$2.SAVE_SETTINGS_ERROR,
|
|
16351
16390
|
message: 'ERROR.SAVE_SETTINGS_ERROR'
|
|
16352
16391
|
}
|
|
16353
16392
|
})];
|
|
@@ -16378,7 +16417,7 @@
|
|
|
16378
16417
|
if (counter > 4) {
|
|
16379
16418
|
if (this._debug)
|
|
16380
16419
|
console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
|
|
16381
|
-
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
16420
|
+
throw { code: ErrorCodes$2.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
16382
16421
|
}
|
|
16383
16422
|
if (!token) return [3 /*break*/, 2];
|
|
16384
16423
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -16387,7 +16426,7 @@
|
|
|
16387
16426
|
token: token
|
|
16388
16427
|
},
|
|
16389
16428
|
error: {
|
|
16390
|
-
code: ErrorCodes.UNAUTHORIZED,
|
|
16429
|
+
code: ErrorCodes$2.UNAUTHORIZED,
|
|
16391
16430
|
message: 'ERROR.UNAUTHORIZED'
|
|
16392
16431
|
},
|
|
16393
16432
|
fetchPolicy: 'no-cache'
|
|
@@ -16404,7 +16443,7 @@
|
|
|
16404
16443
|
_b.label = 2;
|
|
16405
16444
|
case 2:
|
|
16406
16445
|
challengeError = {
|
|
16407
|
-
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
16446
|
+
code: ErrorCodes$2.AUTH_CHALLENGE_ERROR,
|
|
16408
16447
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
16409
16448
|
};
|
|
16410
16449
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -16451,7 +16490,7 @@
|
|
|
16451
16490
|
};
|
|
16452
16491
|
return AccountService;
|
|
16453
16492
|
}(BaseGraphqlService));
|
|
16454
|
-
AccountService.ɵprov =
|
|
16493
|
+
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
16494
|
AccountService.decorators = [
|
|
16456
16495
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
16457
16496
|
];
|
|
@@ -16464,7 +16503,7 @@
|
|
|
16464
16503
|
{ type: FileService },
|
|
16465
16504
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
16466
16505
|
]; };
|
|
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;
|
|
16506
|
+
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
16507
|
|
|
16469
16508
|
var Software_1, Configuration_1;
|
|
16470
16509
|
// @dynamic
|
|
@@ -16716,13 +16755,13 @@
|
|
|
16716
16755
|
/* ------------------------------------
|
|
16717
16756
|
* GraphQL queries
|
|
16718
16757
|
* ------------------------------------*/
|
|
16719
|
-
var Fragments
|
|
16720
|
-
config: core.gql(templateObject_1$
|
|
16758
|
+
var Fragments = {
|
|
16759
|
+
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
16760
|
};
|
|
16722
|
-
var LoadQuery
|
|
16761
|
+
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
16762
|
// Save (create or update) account mutation
|
|
16724
|
-
var SaveMutation = core.gql(templateObject_3$
|
|
16725
|
-
var ClearCache = core.gql(templateObject_4$
|
|
16763
|
+
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);
|
|
16764
|
+
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
16765
|
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
16766
|
var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
|
|
16728
16767
|
var ConfigService = /** @class */ (function (_super) {
|
|
@@ -16781,12 +16820,12 @@
|
|
|
16781
16820
|
case 0:
|
|
16782
16821
|
now = Date.now();
|
|
16783
16822
|
console.debug('[config] Loading Pod configuration...');
|
|
16784
|
-
query = opts && opts.query || LoadQuery
|
|
16823
|
+
query = opts && opts.query || LoadQuery;
|
|
16785
16824
|
variables = opts && opts.variables || undefined;
|
|
16786
16825
|
return [4 /*yield*/, this.graphql.query({
|
|
16787
16826
|
query: query,
|
|
16788
16827
|
variables: variables,
|
|
16789
|
-
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16828
|
+
error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16790
16829
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
16791
16830
|
})];
|
|
16792
16831
|
case 1:
|
|
@@ -16825,7 +16864,7 @@
|
|
|
16825
16864
|
data: json
|
|
16826
16865
|
},
|
|
16827
16866
|
error: {
|
|
16828
|
-
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
16867
|
+
code: ErrorCodes$2.SAVE_CONFIG_ERROR,
|
|
16829
16868
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
16830
16869
|
}
|
|
16831
16870
|
})];
|
|
@@ -16860,7 +16899,7 @@
|
|
|
16860
16899
|
return [4 /*yield*/, this.graphql.query({
|
|
16861
16900
|
query: CacheStatistics,
|
|
16862
16901
|
variables: null,
|
|
16863
|
-
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16902
|
+
error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16864
16903
|
fetchPolicy: 'network-only'
|
|
16865
16904
|
})];
|
|
16866
16905
|
case 1:
|
|
@@ -16884,7 +16923,7 @@
|
|
|
16884
16923
|
return [4 /*yield*/, this.graphql.query({
|
|
16885
16924
|
query: ClearCache,
|
|
16886
16925
|
variables: variables,
|
|
16887
|
-
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16926
|
+
error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16888
16927
|
fetchPolicy: 'network-only'
|
|
16889
16928
|
})];
|
|
16890
16929
|
case 1:
|
|
@@ -17084,7 +17123,7 @@
|
|
|
17084
17123
|
};
|
|
17085
17124
|
return ConfigService;
|
|
17086
17125
|
}(BaseGraphqlService));
|
|
17087
|
-
ConfigService.ɵprov =
|
|
17126
|
+
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
17127
|
ConfigService.decorators = [
|
|
17089
17128
|
{ type: i0.Injectable, args: [{
|
|
17090
17129
|
providedIn: 'root',
|
|
@@ -17102,9 +17141,9 @@
|
|
|
17102
17141
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
17103
17142
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
17104
17143
|
]; };
|
|
17105
|
-
var templateObject_1$
|
|
17144
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2, templateObject_5$1;
|
|
17106
17145
|
|
|
17107
|
-
var moment$
|
|
17146
|
+
var moment$2 = momentImported__namespace;
|
|
17108
17147
|
var PlatformService = /** @class */ (function (_super) {
|
|
17109
17148
|
__extends(PlatformService, _super);
|
|
17110
17149
|
function PlatformService(platform, cdkPlatform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser, downloader) {
|
|
@@ -17343,16 +17382,16 @@
|
|
|
17343
17382
|
}
|
|
17344
17383
|
// config moment lib
|
|
17345
17384
|
try {
|
|
17346
|
-
moment$
|
|
17385
|
+
moment$2.locale(event.lang);
|
|
17347
17386
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
17348
17387
|
}
|
|
17349
17388
|
// If error, fallback to en
|
|
17350
17389
|
catch (err) {
|
|
17351
|
-
moment$
|
|
17390
|
+
moment$2.locale('en');
|
|
17352
17391
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
17353
17392
|
}
|
|
17354
17393
|
// Config date adapter
|
|
17355
|
-
_this.dateAdapter.setLocale(moment$
|
|
17394
|
+
_this.dateAdapter.setLocale(moment$2.locale());
|
|
17356
17395
|
}
|
|
17357
17396
|
});
|
|
17358
17397
|
this.settings.onChange.subscribe(function (data) {
|
|
@@ -17533,7 +17572,7 @@
|
|
|
17533
17572
|
};
|
|
17534
17573
|
return PlatformService;
|
|
17535
17574
|
}(StartableService));
|
|
17536
|
-
PlatformService.ɵprov =
|
|
17575
|
+
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
17576
|
PlatformService.decorators = [
|
|
17538
17577
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
17539
17578
|
];
|
|
@@ -17631,7 +17670,7 @@
|
|
|
17631
17670
|
};
|
|
17632
17671
|
return MatStepperI18n;
|
|
17633
17672
|
}(stepper.MatStepperIntl));
|
|
17634
|
-
MatStepperI18n.ɵprov =
|
|
17673
|
+
MatStepperI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
17635
17674
|
MatStepperI18n.decorators = [
|
|
17636
17675
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
17637
17676
|
];
|
|
@@ -18833,7 +18872,7 @@
|
|
|
18833
18872
|
return 1;
|
|
18834
18873
|
}
|
|
18835
18874
|
}
|
|
18836
|
-
var ɵ0$
|
|
18875
|
+
var ɵ0$1 = function (defaultStateSize) { return [
|
|
18837
18876
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
18838
18877
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
18839
18878
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -18841,7 +18880,7 @@
|
|
|
18841
18880
|
var SCALE_OPTIONS_DEFAULT = {
|
|
18842
18881
|
startColor: rgbArrayMap.red,
|
|
18843
18882
|
startStates: [0, 2, 3],
|
|
18844
|
-
startStepsFn: ɵ0$
|
|
18883
|
+
startStepsFn: ɵ0$1
|
|
18845
18884
|
};
|
|
18846
18885
|
/**
|
|
18847
18886
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -18933,24 +18972,24 @@
|
|
|
18933
18972
|
return result;
|
|
18934
18973
|
}
|
|
18935
18974
|
|
|
18936
|
-
var EntityTestClass = /** @class */ (function () {
|
|
18975
|
+
var EntityTestClass$1 = /** @class */ (function () {
|
|
18937
18976
|
function EntityTestClass() {
|
|
18938
18977
|
}
|
|
18939
18978
|
return EntityTestClass;
|
|
18940
18979
|
}());
|
|
18941
|
-
var FAKE_ENTITIES = [
|
|
18980
|
+
var FAKE_ENTITIES$1 = [
|
|
18942
18981
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
18943
18982
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
18944
18983
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
18945
18984
|
];
|
|
18946
|
-
function deepCopy(values, size) {
|
|
18985
|
+
function deepCopy$1(values, size) {
|
|
18947
18986
|
if (isNil(size)) {
|
|
18948
|
-
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
18987
|
+
return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
|
|
18949
18988
|
}
|
|
18950
18989
|
var result = [];
|
|
18951
18990
|
var i = 1;
|
|
18952
18991
|
while (result.length < size) {
|
|
18953
|
-
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
18992
|
+
result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
|
|
18954
18993
|
var name = entity.name + ' #' + i;
|
|
18955
18994
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
18956
18995
|
}));
|
|
@@ -18960,7 +18999,7 @@
|
|
|
18960
18999
|
var AutocompleteTestPage = /** @class */ (function () {
|
|
18961
19000
|
function AutocompleteTestPage(formBuilder) {
|
|
18962
19001
|
this.formBuilder = formBuilder;
|
|
18963
|
-
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
19002
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
|
|
18964
19003
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
18965
19004
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
18966
19005
|
this.memoryHide = false;
|
|
@@ -19005,7 +19044,7 @@
|
|
|
19005
19044
|
});
|
|
19006
19045
|
// From items
|
|
19007
19046
|
this.autocompleteFields.add('entity-items-large', {
|
|
19008
|
-
items: FAKE_ENTITIES.slice(),
|
|
19047
|
+
items: FAKE_ENTITIES$1.slice(),
|
|
19009
19048
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
19010
19049
|
displayWith: this.entityToString
|
|
19011
19050
|
});
|
|
@@ -19018,12 +19057,12 @@
|
|
|
19018
19057
|
var _this = this;
|
|
19019
19058
|
return __generator(this, function (_a) {
|
|
19020
19059
|
data = {
|
|
19021
|
-
entity: deepCopy(FAKE_ENTITIES)[0],
|
|
19060
|
+
entity: deepCopy$1(FAKE_ENTITIES$1)[0],
|
|
19022
19061
|
// This item is NOT in the items list => i should be displayed anyway
|
|
19023
19062
|
missingEntity: {
|
|
19024
19063
|
id: -1, label: '??', name: 'Missing item'
|
|
19025
19064
|
},
|
|
19026
|
-
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
19065
|
+
disableEntity: deepCopy$1(FAKE_ENTITIES$1)[2]
|
|
19027
19066
|
};
|
|
19028
19067
|
this.form.setValue(data);
|
|
19029
19068
|
// Load observables
|
|
@@ -19221,13 +19260,13 @@
|
|
|
19221
19260
|
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_TESTING_PAGES,] }] }
|
|
19222
19261
|
]; };
|
|
19223
19262
|
|
|
19224
|
-
var moment$
|
|
19263
|
+
var moment$1 = momentImported__namespace;
|
|
19225
19264
|
var SwipeTestPage = /** @class */ (function () {
|
|
19226
19265
|
function SwipeTestPage(formBuilder, dateFormatPipe) {
|
|
19227
19266
|
this.formBuilder = formBuilder;
|
|
19228
19267
|
this.dateFormatPipe = dateFormatPipe;
|
|
19229
19268
|
this.$dates = new rxjs.BehaviorSubject(undefined);
|
|
19230
|
-
this._today = moment$
|
|
19269
|
+
this._today = moment$1().startOf('day');
|
|
19231
19270
|
this.form = formBuilder.group({
|
|
19232
19271
|
empty: [null, i1.Validators.required],
|
|
19233
19272
|
date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
|
|
@@ -19241,7 +19280,7 @@
|
|
|
19241
19280
|
var _this = this;
|
|
19242
19281
|
var dates = [];
|
|
19243
19282
|
for (var d = 0; d < 7; d++) {
|
|
19244
|
-
dates[d] = moment$
|
|
19283
|
+
dates[d] = moment$1(this._today).add(d - 3, 'day');
|
|
19245
19284
|
}
|
|
19246
19285
|
this.$dates.next(dates);
|
|
19247
19286
|
this.loadData();
|
|
@@ -19288,7 +19327,7 @@
|
|
|
19288
19327
|
{ type: DateFormatPipe }
|
|
19289
19328
|
]; };
|
|
19290
19329
|
|
|
19291
|
-
var moment
|
|
19330
|
+
var moment = momentImported__namespace;
|
|
19292
19331
|
var DateTimeTestPage = /** @class */ (function () {
|
|
19293
19332
|
function DateTimeTestPage(platform, formBuilder, cd) {
|
|
19294
19333
|
this.platform = platform;
|
|
@@ -19324,7 +19363,7 @@
|
|
|
19324
19363
|
var now, data;
|
|
19325
19364
|
var _this = this;
|
|
19326
19365
|
return __generator(this, function (_a) {
|
|
19327
|
-
now = moment
|
|
19366
|
+
now = moment();
|
|
19328
19367
|
data = {
|
|
19329
19368
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
19330
19369
|
enable: toDateISOString(now),
|
|
@@ -19389,12 +19428,12 @@
|
|
|
19389
19428
|
{ type: i0.ChangeDetectorRef }
|
|
19390
19429
|
]; };
|
|
19391
19430
|
|
|
19392
|
-
var EntityTestClass
|
|
19431
|
+
var EntityTestClass = /** @class */ (function () {
|
|
19393
19432
|
function EntityTestClass() {
|
|
19394
19433
|
}
|
|
19395
19434
|
return EntityTestClass;
|
|
19396
19435
|
}());
|
|
19397
|
-
var FAKE_ENTITIES
|
|
19436
|
+
var FAKE_ENTITIES = [
|
|
19398
19437
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
19399
19438
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
19400
19439
|
{ id: 3, label: 'CCC', name: 'Item C' },
|
|
@@ -19403,14 +19442,14 @@
|
|
|
19403
19442
|
{ id: 6, label: 'FFF', name: 'Item F' },
|
|
19404
19443
|
{ id: 7, label: 'GGG', name: 'Item G' }
|
|
19405
19444
|
];
|
|
19406
|
-
function deepCopy
|
|
19445
|
+
function deepCopy(values, size) {
|
|
19407
19446
|
if (isNil(size)) {
|
|
19408
|
-
return (values || FAKE_ENTITIES
|
|
19447
|
+
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
19409
19448
|
}
|
|
19410
19449
|
var result = [];
|
|
19411
19450
|
var i = 1;
|
|
19412
19451
|
while (result.length < size) {
|
|
19413
|
-
result = result.concat((values || FAKE_ENTITIES
|
|
19452
|
+
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
19414
19453
|
var name = entity.name + ' #' + i;
|
|
19415
19454
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
19416
19455
|
}));
|
|
@@ -19420,7 +19459,7 @@
|
|
|
19420
19459
|
var ChipsTestPage = /** @class */ (function () {
|
|
19421
19460
|
function ChipsTestPage(formBuilder) {
|
|
19422
19461
|
this.formBuilder = formBuilder;
|
|
19423
|
-
this._items = deepCopy
|
|
19462
|
+
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
19424
19463
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
19425
19464
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
19426
19465
|
this.form = formBuilder.group({
|
|
@@ -19463,7 +19502,7 @@
|
|
|
19463
19502
|
var items, data;
|
|
19464
19503
|
var _this = this;
|
|
19465
19504
|
return __generator(this, function (_a) {
|
|
19466
|
-
items = deepCopy
|
|
19505
|
+
items = deepCopy(FAKE_ENTITIES);
|
|
19467
19506
|
data = {
|
|
19468
19507
|
entity: items.slice(0, 1),
|
|
19469
19508
|
entityInitial: items.slice(1, 2),
|
|
@@ -19551,7 +19590,7 @@
|
|
|
19551
19590
|
},] }
|
|
19552
19591
|
];
|
|
19553
19592
|
|
|
19554
|
-
var routes = [
|
|
19593
|
+
var routes$1 = [
|
|
19555
19594
|
{
|
|
19556
19595
|
path: '',
|
|
19557
19596
|
pathMatch: 'full',
|
|
@@ -19606,7 +19645,7 @@
|
|
|
19606
19645
|
i1.ReactiveFormsModule,
|
|
19607
19646
|
SharedMaterialModule,
|
|
19608
19647
|
i1$2.TranslateModule.forChild(),
|
|
19609
|
-
i3.RouterModule.forChild(routes)
|
|
19648
|
+
i3.RouterModule.forChild(routes$1)
|
|
19610
19649
|
],
|
|
19611
19650
|
declarations: [
|
|
19612
19651
|
MaterialTestingPage,
|
|
@@ -20811,7 +20850,7 @@
|
|
|
20811
20850
|
};
|
|
20812
20851
|
return UserSettingsValidatorService;
|
|
20813
20852
|
}(AppValidatorService));
|
|
20814
|
-
UserSettingsValidatorService.ɵprov =
|
|
20853
|
+
UserSettingsValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
20815
20854
|
UserSettingsValidatorService.decorators = [
|
|
20816
20855
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
20817
20856
|
];
|
|
@@ -20859,7 +20898,7 @@
|
|
|
20859
20898
|
};
|
|
20860
20899
|
return AccountValidatorService;
|
|
20861
20900
|
}(AppValidatorService));
|
|
20862
|
-
AccountValidatorService.ɵprov =
|
|
20901
|
+
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
20902
|
AccountValidatorService.decorators = [
|
|
20864
20903
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
20865
20904
|
];
|
|
@@ -21490,7 +21529,7 @@
|
|
|
21490
21529
|
};
|
|
21491
21530
|
return LocalSettingsValidatorService;
|
|
21492
21531
|
}(AppValidatorService));
|
|
21493
|
-
LocalSettingsValidatorService.ɵprov =
|
|
21532
|
+
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
21533
|
LocalSettingsValidatorService.decorators = [
|
|
21495
21534
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21496
21535
|
];
|
|
@@ -22270,7 +22309,7 @@
|
|
|
22270
22309
|
};
|
|
22271
22310
|
return IsOnFieldModePipe;
|
|
22272
22311
|
}());
|
|
22273
|
-
IsOnFieldModePipe.ɵprov =
|
|
22312
|
+
IsOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
22274
22313
|
IsOnFieldModePipe.decorators = [
|
|
22275
22314
|
{ type: i0.Pipe, args: [{
|
|
22276
22315
|
name: 'isOnField'
|
|
@@ -22285,7 +22324,7 @@
|
|
|
22285
22324
|
};
|
|
22286
22325
|
return IsNotOnFieldModePipe;
|
|
22287
22326
|
}());
|
|
22288
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
22327
|
+
IsNotOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
22289
22328
|
IsNotOnFieldModePipe.decorators = [
|
|
22290
22329
|
{ type: i0.Pipe, args: [{
|
|
22291
22330
|
name: 'isNotOnField'
|
|
@@ -22303,7 +22342,7 @@
|
|
|
22303
22342
|
};
|
|
22304
22343
|
return PersonToStringPipe;
|
|
22305
22344
|
}());
|
|
22306
|
-
PersonToStringPipe.ɵprov =
|
|
22345
|
+
PersonToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
22307
22346
|
PersonToStringPipe.decorators = [
|
|
22308
22347
|
{ type: i0.Pipe, args: [{
|
|
22309
22348
|
name: 'personToString'
|
|
@@ -22767,7 +22806,7 @@
|
|
|
22767
22806
|
};
|
|
22768
22807
|
return IsLoginAccountPipe;
|
|
22769
22808
|
}());
|
|
22770
|
-
IsLoginAccountPipe.ɵprov =
|
|
22809
|
+
IsLoginAccountPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
22771
22810
|
IsLoginAccountPipe.decorators = [
|
|
22772
22811
|
{ type: i0.Pipe, args: [{
|
|
22773
22812
|
name: 'isLogin'
|
|
@@ -22782,7 +22821,7 @@
|
|
|
22782
22821
|
};
|
|
22783
22822
|
return AccountToStringPipe;
|
|
22784
22823
|
}());
|
|
22785
|
-
AccountToStringPipe.ɵprov =
|
|
22824
|
+
AccountToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
22786
22825
|
AccountToStringPipe.decorators = [
|
|
22787
22826
|
{ type: i0.Pipe, args: [{
|
|
22788
22827
|
name: 'accountToString'
|
|
@@ -22800,7 +22839,7 @@
|
|
|
22800
22839
|
};
|
|
22801
22840
|
return DepartmentToStringPipe;
|
|
22802
22841
|
}());
|
|
22803
|
-
DepartmentToStringPipe.ɵprov =
|
|
22842
|
+
DepartmentToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
22804
22843
|
DepartmentToStringPipe.decorators = [
|
|
22805
22844
|
{ type: i0.Pipe, args: [{
|
|
22806
22845
|
name: 'departmentToString'
|
|
@@ -22835,7 +22874,7 @@
|
|
|
22835
22874
|
};
|
|
22836
22875
|
return MenuService;
|
|
22837
22876
|
}());
|
|
22838
|
-
MenuService.ɵprov =
|
|
22877
|
+
MenuService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
22839
22878
|
MenuService.decorators = [
|
|
22840
22879
|
{ type: i0.Injectable, args: [{
|
|
22841
22880
|
providedIn: 'root'
|
|
@@ -23449,7 +23488,7 @@
|
|
|
23449
23488
|
};
|
|
23450
23489
|
return AuthGuardService;
|
|
23451
23490
|
}());
|
|
23452
|
-
AuthGuardService.ɵprov =
|
|
23491
|
+
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
23492
|
AuthGuardService.decorators = [
|
|
23454
23493
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
23455
23494
|
];
|
|
@@ -23494,7 +23533,7 @@
|
|
|
23494
23533
|
query: query,
|
|
23495
23534
|
variables: { id: id },
|
|
23496
23535
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
23497
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
23536
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
23498
23537
|
})
|
|
23499
23538
|
.pipe(operators.map(function (_b) {
|
|
23500
23539
|
var data = _b.data;
|
|
@@ -23516,7 +23555,7 @@
|
|
|
23516
23555
|
query: query,
|
|
23517
23556
|
variables: { id: id },
|
|
23518
23557
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
23519
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
23558
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
23520
23559
|
})];
|
|
23521
23560
|
case 1:
|
|
23522
23561
|
data = (_b.sent()).data;
|
|
@@ -23552,7 +23591,7 @@
|
|
|
23552
23591
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
23553
23592
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
23554
23593
|
variables: variables,
|
|
23555
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
23594
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
23556
23595
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
23557
23596
|
})
|
|
23558
23597
|
.pipe(operators.map(function (_b) {
|
|
@@ -23594,7 +23633,7 @@
|
|
|
23594
23633
|
return [4 /*yield*/, this.graphql.query({
|
|
23595
23634
|
query: query,
|
|
23596
23635
|
variables: variables,
|
|
23597
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
23636
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
23598
23637
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
23599
23638
|
})];
|
|
23600
23639
|
case 1:
|
|
@@ -23642,7 +23681,7 @@
|
|
|
23642
23681
|
variables: {
|
|
23643
23682
|
filter: filter && filter.asPodObject()
|
|
23644
23683
|
},
|
|
23645
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
23684
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
23646
23685
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
23647
23686
|
})];
|
|
23648
23687
|
case 3:
|
|
@@ -23684,7 +23723,7 @@
|
|
|
23684
23723
|
variables: {
|
|
23685
23724
|
data: json
|
|
23686
23725
|
},
|
|
23687
|
-
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
23726
|
+
error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
23688
23727
|
update: function (proxy, _b) {
|
|
23689
23728
|
var data = _b.data;
|
|
23690
23729
|
var savedEntities = data && data.data;
|
|
@@ -23751,7 +23790,7 @@
|
|
|
23751
23790
|
variables: {
|
|
23752
23791
|
data: json
|
|
23753
23792
|
},
|
|
23754
|
-
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
23793
|
+
error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
23755
23794
|
update: function (cache, _b) {
|
|
23756
23795
|
var data = _b.data;
|
|
23757
23796
|
// Update entity
|
|
@@ -23809,7 +23848,7 @@
|
|
|
23809
23848
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
23810
23849
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
23811
23850
|
variables: { ids: ids },
|
|
23812
|
-
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
23851
|
+
error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
23813
23852
|
update: function (cache, res) {
|
|
23814
23853
|
// Remove from cache
|
|
23815
23854
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -23862,7 +23901,7 @@
|
|
|
23862
23901
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
23863
23902
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
23864
23903
|
variables: { id: id },
|
|
23865
|
-
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
23904
|
+
error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
23866
23905
|
update: function (proxy, res) {
|
|
23867
23906
|
// Remove from cache
|
|
23868
23907
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -23901,7 +23940,7 @@
|
|
|
23901
23940
|
query: opts && opts.query || this.subscriptions.listenChanges,
|
|
23902
23941
|
variables: variables,
|
|
23903
23942
|
error: {
|
|
23904
|
-
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
23943
|
+
code: ErrorCodes$2.SUBSCRIBE_DATA_ERROR,
|
|
23905
23944
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
23906
23945
|
}
|
|
23907
23946
|
})
|
|
@@ -24124,7 +24163,7 @@
|
|
|
24124
24163
|
if (this._debug)
|
|
24125
24164
|
invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
|
|
24126
24165
|
// Stop with an error
|
|
24127
|
-
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
24166
|
+
throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
24128
24167
|
}
|
|
24129
24168
|
this._editingRowCount = 0;
|
|
24130
24169
|
data = void 0;
|
|
@@ -25134,14 +25173,14 @@
|
|
|
25134
25173
|
case 0:
|
|
25135
25174
|
opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
|
|
25136
25175
|
if (this.readOnly) {
|
|
25137
|
-
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25176
|
+
throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25138
25177
|
}
|
|
25139
25178
|
this.resetError();
|
|
25140
25179
|
// Keep edited row id (should be done BEFORE confirmEditCreate() )
|
|
25141
25180
|
this.previouslyEditedRowId = opts.keepEditing && ((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined;
|
|
25142
25181
|
previouslyEditedData = isNotNil(this.previouslyEditedRowId) && this.editedRow.currentData || ((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.currentData);
|
|
25143
25182
|
if (!this.confirmEditCreate()) {
|
|
25144
|
-
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
25183
|
+
throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
25145
25184
|
}
|
|
25146
25185
|
// Mark as saving
|
|
25147
25186
|
this.markAsSaving();
|
|
@@ -25296,7 +25335,7 @@
|
|
|
25296
25335
|
switch (_d.label) {
|
|
25297
25336
|
case 0:
|
|
25298
25337
|
if (this.readOnly) {
|
|
25299
|
-
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25338
|
+
throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
25300
25339
|
}
|
|
25301
25340
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
25302
25341
|
return [2 /*return*/, 0]; // SKip
|
|
@@ -27141,7 +27180,7 @@
|
|
|
27141
27180
|
case 8:
|
|
27142
27181
|
data = _b.sent();
|
|
27143
27182
|
if (!data)
|
|
27144
|
-
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
27183
|
+
throw { code: ErrorCodes$2.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
27145
27184
|
this._usageMode = this.computeUsageMode(data);
|
|
27146
27185
|
return [4 /*yield*/, this.onEntityLoaded(data, opts)];
|
|
27147
27186
|
case 9:
|
|
@@ -27885,10 +27924,10 @@
|
|
|
27885
27924
|
exports.UserEventFilter = __decorate([
|
|
27886
27925
|
EntityClass({ typename: 'UserEventVO' })
|
|
27887
27926
|
], 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$
|
|
27927
|
+
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);
|
|
27928
|
+
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);
|
|
27929
|
+
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"])));
|
|
27930
|
+
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
27931
|
var UserEventService = /** @class */ (function (_super) {
|
|
27893
27932
|
__extends(UserEventService, _super);
|
|
27894
27933
|
function UserEventService(graphql, accountService, network, translate, toastController, environment) {
|
|
@@ -28209,7 +28248,7 @@
|
|
|
28209
28248
|
};
|
|
28210
28249
|
return UserEventService;
|
|
28211
28250
|
}(BaseGraphqlService));
|
|
28212
|
-
UserEventService.ɵprov =
|
|
28251
|
+
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
28252
|
UserEventService.decorators = [
|
|
28214
28253
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
28215
28254
|
];
|
|
@@ -28221,7 +28260,7 @@
|
|
|
28221
28260
|
{ type: i1$5.ToastController },
|
|
28222
28261
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
28223
28262
|
]; };
|
|
28224
|
-
var templateObject_1$
|
|
28263
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1;
|
|
28225
28264
|
|
|
28226
28265
|
var ICONS_MAP = {
|
|
28227
28266
|
DEBUG_DATA: { matIcon: 'bug_report' },
|
|
@@ -28484,16 +28523,16 @@
|
|
|
28484
28523
|
], exports.PersonFilter);
|
|
28485
28524
|
|
|
28486
28525
|
var PersonFragments = {
|
|
28487
|
-
person: core.gql(templateObject_1
|
|
28526
|
+
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
28527
|
};
|
|
28489
28528
|
// Load persons query
|
|
28490
28529
|
var PersonQueries = {
|
|
28491
|
-
loadAll: core.gql(templateObject_2
|
|
28492
|
-
loadAllWithTotal: core.gql(templateObject_3
|
|
28530
|
+
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),
|
|
28531
|
+
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
28532
|
};
|
|
28494
28533
|
var PersonMutations = {
|
|
28495
|
-
saveAll: core.gql(templateObject_4
|
|
28496
|
-
deleteAll: core.gql(templateObject_5
|
|
28534
|
+
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),
|
|
28535
|
+
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
28536
|
};
|
|
28498
28537
|
var PersonService = /** @class */ (function (_super_1) {
|
|
28499
28538
|
__extends(PersonService, _super_1);
|
|
@@ -28617,7 +28656,7 @@
|
|
|
28617
28656
|
};
|
|
28618
28657
|
return PersonService;
|
|
28619
28658
|
}(BaseEntityService));
|
|
28620
|
-
PersonService.ɵprov =
|
|
28659
|
+
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
28660
|
PersonService.decorators = [
|
|
28622
28661
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
28623
28662
|
];
|
|
@@ -28627,7 +28666,7 @@
|
|
|
28627
28666
|
{ type: NetworkService },
|
|
28628
28667
|
{ type: EntitiesStorage }
|
|
28629
28668
|
]; };
|
|
28630
|
-
var templateObject_1
|
|
28669
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
28631
28670
|
|
|
28632
28671
|
var PersonValidatorService = /** @class */ (function () {
|
|
28633
28672
|
function PersonValidatorService(formBuilder, accountValidatorService) {
|
|
@@ -28650,7 +28689,7 @@
|
|
|
28650
28689
|
};
|
|
28651
28690
|
return PersonValidatorService;
|
|
28652
28691
|
}());
|
|
28653
|
-
PersonValidatorService.ɵprov =
|
|
28692
|
+
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
28693
|
PersonValidatorService.decorators = [
|
|
28655
28694
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
28656
28695
|
];
|
|
@@ -28873,16 +28912,16 @@
|
|
|
28873
28912
|
];
|
|
28874
28913
|
AdminModule.ctorParameters = function () { return []; };
|
|
28875
28914
|
|
|
28876
|
-
var ɵ0
|
|
28915
|
+
var ɵ0 = {
|
|
28877
28916
|
profile: 'ADMIN'
|
|
28878
28917
|
};
|
|
28879
|
-
var routes
|
|
28918
|
+
var routes = [
|
|
28880
28919
|
{
|
|
28881
28920
|
path: 'users',
|
|
28882
28921
|
pathMatch: 'full',
|
|
28883
28922
|
component: UsersPage,
|
|
28884
28923
|
canActivate: [AuthGuardService],
|
|
28885
|
-
data: ɵ0
|
|
28924
|
+
data: ɵ0
|
|
28886
28925
|
}
|
|
28887
28926
|
];
|
|
28888
28927
|
var AdminRoutingModule = /** @class */ (function () {
|
|
@@ -28895,13 +28934,13 @@
|
|
|
28895
28934
|
imports: [
|
|
28896
28935
|
SharedRoutingModule,
|
|
28897
28936
|
AdminModule,
|
|
28898
|
-
i3.RouterModule.forChild(routes
|
|
28937
|
+
i3.RouterModule.forChild(routes)
|
|
28899
28938
|
],
|
|
28900
28939
|
exports: [i3.RouterModule]
|
|
28901
28940
|
},] }
|
|
28902
28941
|
];
|
|
28903
28942
|
|
|
28904
|
-
var ErrorCodes
|
|
28943
|
+
var ErrorCodes = {
|
|
28905
28944
|
LOAD_PERSONS_ERROR: 100,
|
|
28906
28945
|
SAVE_PERSONS_ERROR: 101,
|
|
28907
28946
|
DELETE_PERSONS_ERROR: 102,
|
|
@@ -29012,7 +29051,7 @@
|
|
|
29012
29051
|
exports.EntityStore = EntityStore;
|
|
29013
29052
|
exports.EntityUtils = EntityUtils;
|
|
29014
29053
|
exports.Environment = Environment;
|
|
29015
|
-
exports.ErrorCodes = ErrorCodes
|
|
29054
|
+
exports.ErrorCodes = ErrorCodes;
|
|
29016
29055
|
exports.EvenPipe = EvenPipe;
|
|
29017
29056
|
exports.FileService = FileService;
|
|
29018
29057
|
exports.FileSizePipe = FileSizePipe;
|
|
@@ -29022,7 +29061,7 @@
|
|
|
29022
29061
|
exports.FormErrorTranslatePipe = FormErrorTranslatePipe;
|
|
29023
29062
|
exports.FormErrorTranslator = FormErrorTranslator;
|
|
29024
29063
|
exports.FormFieldValuesHolder = FormFieldValuesHolder;
|
|
29025
|
-
exports.Fragments = Fragments
|
|
29064
|
+
exports.Fragments = Fragments;
|
|
29026
29065
|
exports.GraphqlService = GraphqlService;
|
|
29027
29066
|
exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
|
|
29028
29067
|
exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
|
|
@@ -29274,20 +29313,20 @@
|
|
|
29274
29313
|
exports.waitForTrue = waitForTrue;
|
|
29275
29314
|
exports.waitIdle = waitIdle;
|
|
29276
29315
|
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
|
|
29316
|
+
exports["ɵa"] = CustomReuseStrategy;
|
|
29317
|
+
exports["ɵb"] = MatNumpadDomService;
|
|
29318
|
+
exports["ɵc"] = SharedMatBadgeIconModule;
|
|
29319
|
+
exports["ɵd"] = MatBadgeIconDirective;
|
|
29320
|
+
exports["ɵe"] = isFocusableElement;
|
|
29321
|
+
exports["ɵf"] = MatBadgeIconTestPage;
|
|
29322
|
+
exports["ɵg"] = RegisterForm;
|
|
29323
|
+
exports["ɵh"] = AccountValidatorService;
|
|
29324
|
+
exports["ɵi"] = RegisterModal;
|
|
29325
|
+
exports["ɵj"] = UserSettingsValidatorService;
|
|
29326
|
+
exports["ɵk"] = LocalSettingsValidatorService;
|
|
29327
|
+
exports["ɵl"] = AppIconComponent;
|
|
29289
29328
|
|
|
29290
29329
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
29291
29330
|
|
|
29292
|
-
}))
|
|
29331
|
+
}));
|
|
29293
29332
|
//# sourceMappingURL=sumaris-net.ngx-components.umd.js.map
|