@sumaris-net/ngx-components 0.10.3 → 0.10.4-beta4
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/ngx-sumaris-components.umd.js +260 -284
- package/bundles/ngx-sumaris-components.umd.js.map +1 -1
- package/bundles/ngx-sumaris-components.umd.min.js +2 -2
- package/bundles/ngx-sumaris-components.umd.min.js.map +1 -1
- package/esm2015/src/app/admin/users/list/users.js +1 -1
- package/esm2015/src/app/core/graphql/graphql.service.js +6 -6
- package/esm2015/src/app/core/services/model/entity.decorators.js +1 -1
- package/esm2015/src/app/shared/material/swipe/material.swipe.js +3 -4
- package/fesm2015/ngx-sumaris-components.js +270 -285
- package/fesm2015/ngx-sumaris-components.js.map +1 -1
- package/ngx-sumaris-components.metadata.json +1 -1
- package/package.json +1 -1
- package/src/app/core/graphql/graphql.service.d.ts +2 -4
- package/src/app/core/services/model/entity.decorators.d.ts +4 -14
|
@@ -26,34 +26,11 @@
|
|
|
26
26
|
return Object.freeze(n);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
30
|
-
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
31
|
-
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
32
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2);
|
|
33
|
-
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1);
|
|
34
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
35
|
-
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
36
29
|
var momentImported__namespace = /*#__PURE__*/_interopNamespace(momentImported);
|
|
37
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
|
|
38
|
-
var i3__namespace$3 = /*#__PURE__*/_interopNamespace(i3);
|
|
39
|
-
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
40
|
-
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
41
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2$2);
|
|
42
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3$1);
|
|
43
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
44
30
|
var uuidv4Imported__namespace = /*#__PURE__*/_interopNamespace(uuidv4Imported);
|
|
45
|
-
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
46
|
-
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
47
|
-
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
48
|
-
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
49
|
-
var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
|
|
50
31
|
var QueueLink__default = /*#__PURE__*/_interopDefaultLegacy(QueueLink);
|
|
51
32
|
var SerializingLink__default = /*#__PURE__*/_interopDefaultLegacy(SerializingLink);
|
|
52
33
|
var loggerLink__default = /*#__PURE__*/_interopDefaultLegacy(loggerLink);
|
|
53
|
-
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$3);
|
|
54
|
-
var i13__namespace = /*#__PURE__*/_interopNamespace(i13);
|
|
55
|
-
var i14__namespace = /*#__PURE__*/_interopNamespace(i14);
|
|
56
|
-
var i16__namespace = /*#__PURE__*/_interopNamespace(i16);
|
|
57
34
|
|
|
58
35
|
var ENVIRONMENT = new i0.InjectionToken('ENV');
|
|
59
36
|
var Environment = /** @class */ (function () {
|
|
@@ -1102,19 +1079,19 @@
|
|
|
1102
1079
|
};
|
|
1103
1080
|
return MatAutocompleteConfigHolder;
|
|
1104
1081
|
}());
|
|
1105
|
-
var DEFAULT_VALUE_ACCESSOR
|
|
1082
|
+
var DEFAULT_VALUE_ACCESSOR = {
|
|
1106
1083
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
1107
1084
|
useExisting: i0.forwardRef(function () { return MatAutocompleteField; }),
|
|
1108
1085
|
multi: true
|
|
1109
1086
|
};
|
|
1110
|
-
var noop
|
|
1111
|
-
var ɵ0
|
|
1087
|
+
var noop = function () { };
|
|
1088
|
+
var ɵ0 = noop;
|
|
1112
1089
|
var MatAutocompleteField = /** @class */ (function () {
|
|
1113
1090
|
function MatAutocompleteField(cd, formGroupDir) {
|
|
1114
1091
|
this.cd = cd;
|
|
1115
1092
|
this.formGroupDir = formGroupDir;
|
|
1116
|
-
this._onChangeCallback = noop
|
|
1117
|
-
this._onTouchedCallback = noop
|
|
1093
|
+
this._onChangeCallback = noop;
|
|
1094
|
+
this._onTouchedCallback = noop;
|
|
1118
1095
|
this._subscription = new rxjs.Subscription();
|
|
1119
1096
|
this._filter$ = new rxjs.BehaviorSubject(undefined);
|
|
1120
1097
|
this._reload$ = new rxjs.Subject();
|
|
@@ -1664,7 +1641,7 @@
|
|
|
1664
1641
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
1665
1642
|
selector: 'mat-autocomplete-field',
|
|
1666
1643
|
template: "<ion-grid class=\"ion-no-padding\">\n <ion-row>\n <ion-col class=\"ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-disabled]=\"disabled\"\n [title]=\"displayValue\">\n\n <div matPrefix><ng-content select=\"[matPrefix]\"></ng-content></div>\n\n <!-- readonly -->\n <ng-container *ngIf=\"readonly; else writable\">\n <input matInput hidden type=\"text\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\"\n readonly>\n <ion-label>{{ displayWith(value) }} </ion-label>\n </ng-container>\n\n <ng-template #writable>\n\n <!-- Basic select -->\n <mat-select #matSelect\n *ngIf=\"!searchable; else searchableTemplate\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\"\n [tabindex]=\"_tabindex\"\n [panelClass]=\"classList\"\n [style.width]=\"panelWidth\"\n (focus)=\"filterMatSelectFocusEvent($event)\"\n (blur)=\"filterMatSelectBlurEvent($event)\"\n [compareWith]=\"compareWith\"\n [multiple]=\"multiple\">\n <mat-select-trigger>{{ displayWith(value) }}</mat-select-trigger>\n\n <!-- header -->\n <ion-row class=\"mat-autocomplete-header ion-no-padding\">\n <ion-col *ngFor=\"let attr of displayAttributes; index as i; last as isLast\" [size]=\"displayColumnSizes[i]\" >\n <ion-label [innerHTML]=\"displayColumnNames[i] | translate\"></ion-label>\n </ion-col>\n </ion-row>\n\n <!-- None option -->\n <mat-option *ngIf=\"!required\" class=\"ion-no-padding\">\n <ion-row class=\"ion-no-padding\">\n <ion-col class=\"ion-no-padding\">\n <ion-label><i translate>COMMON.EMPTY_OPTION</i></ion-label>\n </ion-col>\n </ion-row>\n </mat-option>\n\n <ng-container *ngIf=\"$filteredItems | async; let items\">\n <!-- No item option -->\n <mat-option *ngIf=\"items | isEmptyArray\" class=\"ion-padding text-italic\" disabled>\n <ion-label>{{noResultMessage | translate}}</ion-label>\n </mat-option>\n\n <!-- options -->\n <mat-option *ngFor=\"let item of items\" [value]=\"item\" class=\"ion-no-padding\">\n <ion-row [classList]=\"item.classList\">\n <ion-col *ngFor=\"let path of displayAttributes; index as i;\"\n [size]=\"displayColumnSizes[i]\">\n <ion-text>{{item | propertyGet: path }}</ion-text>\n </ion-col>\n </ion-row>\n </mat-option>\n\n <!-- More item -->\n <a class=\"ion-padding mat-option \"\n *ngIf=\"_moreItemsCount\"\n (click)=\"_fetchMore$.emit($event)\" >\n <ion-label color=\"primary\" style=\"width: 100%;\">\n <span translate>COMMON.BTN_SHOW_MORE</span>\n <mat-icon class=\"ion-color-primary\">expand_more</mat-icon>\n </ion-label>\n </a>\n </ng-container>\n </mat-select>\n </ng-template>\n\n <!--\n NOTE :\n - \"selectInputContent($event) || onFocus.emit($event)\" : call onFocus only when to the input is empty (nothing to select)\n -->\n <ng-template #searchableTemplate>\n <input matInput #matInputText type=\"text\"\n [matAutocomplete]=\"autoComplete\"\n [matAutocompletePosition]=\"matAutocompletePosition\"\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [appAutofocus]=\"appAutofocus\"\n [tabindex]=\"_tabindex\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (click)=\"onClick.emit($event)\"\n (blur)=\"onBlur.emit($event)\"\n (focus)=\"filterInputTextFocusEvent($event)\"\n (keyup.arrowdown)=\"!autoComplete.showPanel && onDropButtonClick.emit($event)\">\n\n <!-- autocomplete -->\n <mat-autocomplete #autoComplete=\"matAutocomplete\"\n autoActiveFirstOption\n [displayWith]=\"displayWith\"\n [class]=\"classList\"\n [class.cdk-visually-hidden]=\"!searchable\"\n [panelWidth]=\"panelWidth\">\n\n <ion-row class=\"mat-autocomplete-header ion-no-padding\">\n <ion-col *ngFor=\"let attr of displayAttributes; index as i; last as last\" [size]=\"displayColumnSizes[i]\" >\n <ion-label [innerHTML]=\"displayColumnNames[i] | translate\"></ion-label>\n <ion-text color=\"light\" *ngIf=\"last && itemCount; let count \" class=\"ion-float-end ion-padding-end\"><i>{{'COMMON.RESULT_COUNT'|translate: {count: count} }}</i></ion-text>\n </ion-col>\n </ion-row>\n\n <ng-container *ngIf=\"$filteredItems | async; else loadingTemplate; let items\">\n <!-- No item option -->\n <mat-option *ngIf=\"items | isEmptyArray\" class=\"ion-padding text-italic\" disabled>\n <ion-label>{{noResultMessage | translate}}</ion-label>\n </mat-option>\n\n <mat-option *ngFor=\"let item of items\" [value]=\"item\" class=\"ion-no-padding\" >\n <ion-row [classList]=\"item.classList\">\n <ion-col *ngFor=\"let path of displayAttributes; index as i;\"\n [size]=\"displayColumnSizes[i]\">\n <ion-text [innerHTML]=\"item | propertyGet: path | highlight: formControl.value\"></ion-text>\n </ion-col>\n </ion-row>\n </mat-option>\n\n <!-- More item -->\n <mat-option *ngIf=\"_moreItemsCount\" (ngInit)=\"_initInfiniteScroll()\"\n class=\"ion-padding\" disabled>\n <ion-skeleton-text [animated]=\"true\" style=\"width: 100%\"></ion-skeleton-text>\n </mat-option>\n </ng-container>\n\n <!-- Loading spinner -->\n <ng-template #loadingTemplate>\n <mat-option *ngIf=\"(matInputText.value | strLength) >= suggestLengthThreshold; else waitMoreCharacterTemplate\"\n class=\"ion-padding\" disabled>\n <ion-skeleton-text [animated]=\"true\" style=\"width: 100%\"></ion-skeleton-text>\n </mat-option>\n </ng-template>\n\n <!-- Need more characters -->\n <ng-template #waitMoreCharacterTemplate>\n <mat-option class=\"ion-padding text-italic\" disabled>\n <ion-label>\n {{'INFO.PLEASE_TYPE_MORE_CHARACTERS'|translate:{minLength: suggestLengthThreshold} }}\n </ion-label>\n </mat-option>\n </ng-template>\n </mat-autocomplete>\n\n </ng-template>\n\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"searchable\"\n (click)=\"onDropButtonClick.emit($event)\"\n [hidden]=\"disabled\">\n <mat-icon class=\"large select-arrow\">arrow_drop_down</mat-icon>\n </button>\n <button matSuffix type=\"button\" mat-icon-button tabindex=\"-1\"\n *ngIf=\"enabled && mobile && !searchable && !multiple\"\n [title]=\"'COMMON.BTN_SEARCH'|translate\"\n (click)=\"toggleSearch($event)\">\n <mat-icon>search</mat-icon>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clearValue($event)\"\n [hidden]=\"disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <ng-content matSuffix select=\"[matSuffix]\"></ng-content>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('entity')\" translate>ERROR.FIELD_INVALID</mat-error>\n <ng-content select=\"[matError]\"></ng-content>\n\n </mat-form-field>\n </ion-col>\n <ion-col size=\"auto\" class=\"ion-align-self-center\">\n <ng-content select=\"[matAfter]\"></ng-content>\n </ion-col>\n </ion-row>\n\n</ion-grid>\n",
|
|
1667
|
-
providers: [DEFAULT_VALUE_ACCESSOR
|
|
1644
|
+
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
1668
1645
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1669
1646
|
styles: [":host{display:inline-block;position:relative}:host.ion-text-wrap ion-label{white-space:normal!important}button[hidden]{display:none}mat-icon.select-arrow{color:rgba(0,0,0,.47);font-size:150%}.fact-scroll-viewport{height:100%;width:100%}.fact-item{height:54px;display:flex}.fact-item .fact-date{min-width:100px;text-align:center;font-size:24pt}.fact-item .fact-date,.fact-item .fact-text{height:100%;align-items:center;justify-content:center;display:flex}.fact-item .fact-text{border-radius:10px}cdk-virtual-scroll-viewport{border:1px solid #000}cdk-virtual-scroll-viewport li{list-style:none}"]
|
|
1670
1647
|
},] }
|
|
@@ -1738,7 +1715,7 @@
|
|
|
1738
1715
|
};
|
|
1739
1716
|
return DateFormatPipe;
|
|
1740
1717
|
}());
|
|
1741
|
-
DateFormatPipe.ɵprov =
|
|
1718
|
+
DateFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFormatPipe_Factory() { return new DateFormatPipe(i0.ɵɵinject(i1$1.MomentDateAdapter), i0.ɵɵinject(i1$2.TranslateService)); }, token: DateFormatPipe, providedIn: "root" });
|
|
1742
1719
|
DateFormatPipe.decorators = [
|
|
1743
1720
|
{ type: i0.Pipe, args: [{
|
|
1744
1721
|
name: 'dateFormat'
|
|
@@ -1750,7 +1727,7 @@
|
|
|
1750
1727
|
{ type: i1$2.TranslateService }
|
|
1751
1728
|
]; };
|
|
1752
1729
|
|
|
1753
|
-
var moment
|
|
1730
|
+
var moment = momentImported__namespace;
|
|
1754
1731
|
var DateDiffDurationPipe = /** @class */ (function () {
|
|
1755
1732
|
function DateDiffDurationPipe(dateAdapter, translate) {
|
|
1756
1733
|
var _this = this;
|
|
@@ -1767,10 +1744,10 @@
|
|
|
1767
1744
|
return this.format(startDate, endDate);
|
|
1768
1745
|
};
|
|
1769
1746
|
DateDiffDurationPipe.prototype.format = function (startDate, endDate) {
|
|
1770
|
-
var duration = moment
|
|
1747
|
+
var duration = moment.duration(endDate.diff(startDate));
|
|
1771
1748
|
if (duration.asMinutes() < 0)
|
|
1772
1749
|
return '';
|
|
1773
|
-
var timeDuration = moment
|
|
1750
|
+
var timeDuration = moment(0)
|
|
1774
1751
|
.hour(duration.hours())
|
|
1775
1752
|
.minute(duration.minutes());
|
|
1776
1753
|
var days = Math.floor(duration.asDays());
|
|
@@ -1778,7 +1755,7 @@
|
|
|
1778
1755
|
};
|
|
1779
1756
|
return DateDiffDurationPipe;
|
|
1780
1757
|
}());
|
|
1781
|
-
DateDiffDurationPipe.ɵprov =
|
|
1758
|
+
DateDiffDurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateDiffDurationPipe_Factory() { return new DateDiffDurationPipe(i0.ɵɵinject(i1$3.DateAdapter), i0.ɵɵinject(i1$2.TranslateService)); }, token: DateDiffDurationPipe, providedIn: "root" });
|
|
1782
1759
|
DateDiffDurationPipe.decorators = [
|
|
1783
1760
|
{ type: i0.Pipe, args: [{
|
|
1784
1761
|
name: 'dateDiffDuration'
|
|
@@ -1800,7 +1777,7 @@
|
|
|
1800
1777
|
};
|
|
1801
1778
|
return DateFromNowPipe;
|
|
1802
1779
|
}());
|
|
1803
|
-
DateFromNowPipe.ɵprov =
|
|
1780
|
+
DateFromNowPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0.ɵɵinject(i1$1.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
|
|
1804
1781
|
DateFromNowPipe.decorators = [
|
|
1805
1782
|
{ type: i0.Pipe, args: [{
|
|
1806
1783
|
name: 'dateFromNow'
|
|
@@ -1869,7 +1846,7 @@
|
|
|
1869
1846
|
value *= -1;
|
|
1870
1847
|
}
|
|
1871
1848
|
}
|
|
1872
|
-
var degrees = roundFloat
|
|
1849
|
+
var degrees = roundFloat(value, opts.maxDecimals).toString();
|
|
1873
1850
|
// Add sign
|
|
1874
1851
|
var sign = negative ? '-' : '+';
|
|
1875
1852
|
if (opts.placeholderChar) {
|
|
@@ -1920,7 +1897,7 @@
|
|
|
1920
1897
|
}
|
|
1921
1898
|
var degrees = Math.trunc(value);
|
|
1922
1899
|
var minutes = Math.trunc((value - degrees) * 60);
|
|
1923
|
-
var seconds = roundFloat
|
|
1900
|
+
var seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
|
|
1924
1901
|
while (seconds >= 60) {
|
|
1925
1902
|
seconds -= 60;
|
|
1926
1903
|
minutes += 1;
|
|
@@ -1988,7 +1965,7 @@
|
|
|
1988
1965
|
}
|
|
1989
1966
|
}
|
|
1990
1967
|
var degrees = Math.trunc(value);
|
|
1991
|
-
var minutes = roundFloat
|
|
1968
|
+
var minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
|
|
1992
1969
|
while (minutes >= 60) {
|
|
1993
1970
|
minutes -= 60;
|
|
1994
1971
|
degrees += 1;
|
|
@@ -2039,15 +2016,15 @@
|
|
|
2039
2016
|
return NaN;
|
|
2040
2017
|
}
|
|
2041
2018
|
if (pattern === 'DD')
|
|
2042
|
-
return roundFloat
|
|
2019
|
+
return roundFloat(degrees, maxDecimals);
|
|
2043
2020
|
var minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
|
|
2044
2021
|
var seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
|
|
2045
2022
|
var direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
|
|
2046
2023
|
var sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
|
|
2047
2024
|
degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
|
|
2048
|
-
return roundFloat
|
|
2025
|
+
return roundFloat(degrees, maxDecimals);
|
|
2049
2026
|
}
|
|
2050
|
-
function roundFloat
|
|
2027
|
+
function roundFloat(input, maxDecimals) {
|
|
2051
2028
|
if (maxDecimals > 0) {
|
|
2052
2029
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
2053
2030
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -2070,7 +2047,7 @@
|
|
|
2070
2047
|
};
|
|
2071
2048
|
return LatLongFormatPipe;
|
|
2072
2049
|
}());
|
|
2073
|
-
LatLongFormatPipe.ɵprov =
|
|
2050
|
+
LatLongFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
|
|
2074
2051
|
LatLongFormatPipe.decorators = [
|
|
2075
2052
|
{ type: i0.Pipe, args: [{
|
|
2076
2053
|
name: 'latLongFormat'
|
|
@@ -2083,7 +2060,7 @@
|
|
|
2083
2060
|
}
|
|
2084
2061
|
return LatitudeFormatPipe;
|
|
2085
2062
|
}());
|
|
2086
|
-
LatitudeFormatPipe.ɵprov =
|
|
2063
|
+
LatitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
|
|
2087
2064
|
LatitudeFormatPipe.decorators = [
|
|
2088
2065
|
{ type: i0.Pipe, args: [{
|
|
2089
2066
|
name: 'latitudeFormat'
|
|
@@ -2096,7 +2073,7 @@
|
|
|
2096
2073
|
}
|
|
2097
2074
|
return LongitudeFormatPipe;
|
|
2098
2075
|
}());
|
|
2099
|
-
LongitudeFormatPipe.ɵprov =
|
|
2076
|
+
LongitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
|
|
2100
2077
|
LongitudeFormatPipe.decorators = [
|
|
2101
2078
|
{ type: i0.Pipe, args: [{
|
|
2102
2079
|
name: 'longitudeFormat'
|
|
@@ -2119,7 +2096,7 @@
|
|
|
2119
2096
|
};
|
|
2120
2097
|
return NumberFormatPipe;
|
|
2121
2098
|
}());
|
|
2122
|
-
NumberFormatPipe.ɵprov =
|
|
2099
|
+
NumberFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
|
|
2123
2100
|
NumberFormatPipe.decorators = [
|
|
2124
2101
|
{ type: i0.Pipe, args: [{
|
|
2125
2102
|
name: 'numberFormat'
|
|
@@ -2145,7 +2122,7 @@
|
|
|
2145
2122
|
};
|
|
2146
2123
|
return HighlightPipe;
|
|
2147
2124
|
}());
|
|
2148
|
-
HighlightPipe.ɵprov =
|
|
2125
|
+
HighlightPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
|
|
2149
2126
|
HighlightPipe.decorators = [
|
|
2150
2127
|
{ type: i0.Pipe, args: [{
|
|
2151
2128
|
name: 'highlight'
|
|
@@ -2213,7 +2190,7 @@
|
|
|
2213
2190
|
{ type: i0.Pipe, args: [{ name: 'fileSize' },] }
|
|
2214
2191
|
];
|
|
2215
2192
|
|
|
2216
|
-
var moment$
|
|
2193
|
+
var moment$1 = momentImported__namespace;
|
|
2217
2194
|
var DATE_UNIX_TIMESTAMP = 'X';
|
|
2218
2195
|
var DATE_UNIX_MS_TIMESTAMP = 'x';
|
|
2219
2196
|
var DateUtils = /** @class */ (function () {
|
|
@@ -2248,32 +2225,32 @@
|
|
|
2248
2225
|
if (!value || momentImported.isMoment(value))
|
|
2249
2226
|
return value;
|
|
2250
2227
|
// Parse the input value, as a ISO date time
|
|
2251
|
-
var date = moment$
|
|
2228
|
+
var date = moment$1(value, DATE_ISO_PATTERN);
|
|
2252
2229
|
if (date.isValid())
|
|
2253
2230
|
return date;
|
|
2254
2231
|
// Not valid: trying to convert from unix timestamp
|
|
2255
2232
|
if (typeof value === 'string') {
|
|
2256
2233
|
console.warn('Wrong date format - Trying to convert from local time: ' + value);
|
|
2257
2234
|
if (value.length === 10) {
|
|
2258
|
-
return moment$
|
|
2235
|
+
return moment$1(value, DATE_UNIX_TIMESTAMP);
|
|
2259
2236
|
}
|
|
2260
2237
|
else if (value.length === 13) {
|
|
2261
|
-
return moment$
|
|
2238
|
+
return moment$1(value, DATE_UNIX_MS_TIMESTAMP);
|
|
2262
2239
|
}
|
|
2263
2240
|
}
|
|
2264
2241
|
console.warn('Unable to parse date: ' + value);
|
|
2265
2242
|
return undefined;
|
|
2266
2243
|
}
|
|
2267
2244
|
function fromUnixTimestamp(timeInSec) {
|
|
2268
|
-
return moment$
|
|
2245
|
+
return moment$1(timeInSec, DATE_UNIX_TIMESTAMP);
|
|
2269
2246
|
}
|
|
2270
2247
|
function fromUnixMsTimestamp(timeInMs) {
|
|
2271
|
-
return moment$
|
|
2248
|
+
return moment$1(timeInMs, DATE_UNIX_MS_TIMESTAMP);
|
|
2272
2249
|
}
|
|
2273
2250
|
function toDuration(value, unit) {
|
|
2274
2251
|
if (!value)
|
|
2275
2252
|
return undefined;
|
|
2276
|
-
var duration = moment$
|
|
2253
|
+
var duration = moment$1.duration(value, unit);
|
|
2277
2254
|
// fix 990+ ms
|
|
2278
2255
|
if (duration.milliseconds() >= 990) {
|
|
2279
2256
|
duration.add(1000 - duration.milliseconds(), 'ms');
|
|
@@ -2303,7 +2280,7 @@
|
|
|
2303
2280
|
};
|
|
2304
2281
|
return DurationPipe;
|
|
2305
2282
|
}());
|
|
2306
|
-
DurationPipe.ɵprov =
|
|
2283
|
+
DurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0.ɵɵinject(i1$2.TranslateService)); }, token: DurationPipe, providedIn: "root" });
|
|
2307
2284
|
DurationPipe.decorators = [
|
|
2308
2285
|
{ type: i0.Pipe, args: [{
|
|
2309
2286
|
name: 'duration'
|
|
@@ -2327,7 +2304,7 @@
|
|
|
2327
2304
|
};
|
|
2328
2305
|
return MathAbsPipe;
|
|
2329
2306
|
}());
|
|
2330
|
-
MathAbsPipe.ɵprov =
|
|
2307
|
+
MathAbsPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
|
|
2331
2308
|
MathAbsPipe.decorators = [
|
|
2332
2309
|
{ type: i0.Pipe, args: [{
|
|
2333
2310
|
name: 'mathAbs'
|
|
@@ -2342,7 +2319,7 @@
|
|
|
2342
2319
|
};
|
|
2343
2320
|
return EvenPipe;
|
|
2344
2321
|
}());
|
|
2345
|
-
EvenPipe.ɵprov =
|
|
2322
|
+
EvenPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
|
|
2346
2323
|
EvenPipe.decorators = [
|
|
2347
2324
|
{ type: i0.Pipe, args: [{
|
|
2348
2325
|
name: 'even'
|
|
@@ -2357,7 +2334,7 @@
|
|
|
2357
2334
|
};
|
|
2358
2335
|
return OddPipe;
|
|
2359
2336
|
}());
|
|
2360
|
-
OddPipe.ɵprov =
|
|
2337
|
+
OddPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
|
|
2361
2338
|
OddPipe.decorators = [
|
|
2362
2339
|
{ type: i0.Pipe, args: [{
|
|
2363
2340
|
name: 'odd'
|
|
@@ -2489,7 +2466,7 @@
|
|
|
2489
2466
|
};
|
|
2490
2467
|
return MapGetPipe;
|
|
2491
2468
|
}());
|
|
2492
|
-
MapGetPipe.ɵprov =
|
|
2469
|
+
MapGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
|
|
2493
2470
|
MapGetPipe.decorators = [
|
|
2494
2471
|
{ type: i0.Pipe, args: [{
|
|
2495
2472
|
name: 'mapGet'
|
|
@@ -2506,7 +2483,7 @@
|
|
|
2506
2483
|
};
|
|
2507
2484
|
return MapKeysPipe;
|
|
2508
2485
|
}());
|
|
2509
|
-
MapKeysPipe.ɵprov =
|
|
2486
|
+
MapKeysPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
|
|
2510
2487
|
MapKeysPipe.decorators = [
|
|
2511
2488
|
{ type: i0.Pipe, args: [{
|
|
2512
2489
|
name: 'mapKeys'
|
|
@@ -2523,7 +2500,7 @@
|
|
|
2523
2500
|
};
|
|
2524
2501
|
return MapValuesPipe;
|
|
2525
2502
|
}());
|
|
2526
|
-
MapValuesPipe.ɵprov =
|
|
2503
|
+
MapValuesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
|
|
2527
2504
|
MapValuesPipe.decorators = [
|
|
2528
2505
|
{ type: i0.Pipe, args: [{
|
|
2529
2506
|
name: 'mapValues'
|
|
@@ -2539,7 +2516,7 @@
|
|
|
2539
2516
|
};
|
|
2540
2517
|
return IsNotNilOrBlankPipe;
|
|
2541
2518
|
}());
|
|
2542
|
-
IsNotNilOrBlankPipe.ɵprov =
|
|
2519
|
+
IsNotNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
|
|
2543
2520
|
IsNotNilOrBlankPipe.decorators = [
|
|
2544
2521
|
{ type: i0.Pipe, args: [{
|
|
2545
2522
|
name: 'isNotNilOrBlank'
|
|
@@ -2554,7 +2531,7 @@
|
|
|
2554
2531
|
};
|
|
2555
2532
|
return IsNilOrBlankPipe;
|
|
2556
2533
|
}());
|
|
2557
|
-
IsNilOrBlankPipe.ɵprov =
|
|
2534
|
+
IsNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
|
|
2558
2535
|
IsNilOrBlankPipe.decorators = [
|
|
2559
2536
|
{ type: i0.Pipe, args: [{
|
|
2560
2537
|
name: 'isNilOrBlank'
|
|
@@ -2569,7 +2546,7 @@
|
|
|
2569
2546
|
};
|
|
2570
2547
|
return ToStringPipe;
|
|
2571
2548
|
}());
|
|
2572
|
-
ToStringPipe.ɵprov =
|
|
2549
|
+
ToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
|
|
2573
2550
|
ToStringPipe.decorators = [
|
|
2574
2551
|
{ type: i0.Pipe, args: [{
|
|
2575
2552
|
name: 'toString'
|
|
@@ -2584,7 +2561,7 @@
|
|
|
2584
2561
|
};
|
|
2585
2562
|
return StrLengthPipe;
|
|
2586
2563
|
}());
|
|
2587
|
-
StrLengthPipe.ɵprov =
|
|
2564
|
+
StrLengthPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
|
|
2588
2565
|
StrLengthPipe.decorators = [
|
|
2589
2566
|
{ type: i0.Pipe, args: [{
|
|
2590
2567
|
name: 'strLength'
|
|
@@ -2637,7 +2614,7 @@
|
|
|
2637
2614
|
};
|
|
2638
2615
|
return TranslateContextService;
|
|
2639
2616
|
}());
|
|
2640
|
-
TranslateContextService.ɵprov =
|
|
2617
|
+
TranslateContextService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0.ɵɵinject(i1$2.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
|
|
2641
2618
|
TranslateContextService.decorators = [
|
|
2642
2619
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2643
2620
|
];
|
|
@@ -2654,7 +2631,7 @@
|
|
|
2654
2631
|
};
|
|
2655
2632
|
return TranslateContextPipe;
|
|
2656
2633
|
}());
|
|
2657
|
-
TranslateContextPipe.ɵprov =
|
|
2634
|
+
TranslateContextPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextPipe_Factory() { return new TranslateContextPipe(i0.ɵɵinject(TranslateContextService)); }, token: TranslateContextPipe, providedIn: "root" });
|
|
2658
2635
|
TranslateContextPipe.decorators = [
|
|
2659
2636
|
{ type: i0.Pipe, args: [{
|
|
2660
2637
|
name: 'translateContext'
|
|
@@ -2674,7 +2651,7 @@
|
|
|
2674
2651
|
};
|
|
2675
2652
|
return TranslatablePipe;
|
|
2676
2653
|
}());
|
|
2677
|
-
TranslatablePipe.ɵprov =
|
|
2654
|
+
TranslatablePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslatablePipe_Factory() { return new TranslatablePipe(); }, token: TranslatablePipe, providedIn: "root" });
|
|
2678
2655
|
TranslatablePipe.decorators = [
|
|
2679
2656
|
{ type: i0.Pipe, args: [{
|
|
2680
2657
|
name: 'translatable'
|
|
@@ -2694,7 +2671,7 @@
|
|
|
2694
2671
|
};
|
|
2695
2672
|
return PropertyGetPipe;
|
|
2696
2673
|
}());
|
|
2697
|
-
PropertyGetPipe.ɵprov =
|
|
2674
|
+
PropertyGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
|
|
2698
2675
|
PropertyGetPipe.decorators = [
|
|
2699
2676
|
{ type: i0.Pipe, args: [{
|
|
2700
2677
|
name: 'propertyGet'
|
|
@@ -2951,14 +2928,14 @@
|
|
|
2951
2928
|
},] }
|
|
2952
2929
|
];
|
|
2953
2930
|
|
|
2954
|
-
var moment$
|
|
2931
|
+
var moment$2 = momentImported__namespace;
|
|
2955
2932
|
// @dynamic
|
|
2956
2933
|
var SharedValidators = /** @class */ (function () {
|
|
2957
2934
|
function SharedValidators() {
|
|
2958
2935
|
}
|
|
2959
2936
|
SharedValidators.validDate = function (control) {
|
|
2960
2937
|
var value = control.value;
|
|
2961
|
-
var date = !value || moment$
|
|
2938
|
+
var date = !value || moment$2.isMoment(value) ? value : moment$2(control.value, DATE_ISO_PATTERN);
|
|
2962
2939
|
if (date && (!date.isValid() || date.year() < 1970)) {
|
|
2963
2940
|
return { validDate: true };
|
|
2964
2941
|
}
|
|
@@ -3390,9 +3367,9 @@
|
|
|
3390
3367
|
var hour = parseInt(durationParts[0] || '0');
|
|
3391
3368
|
var minute = parseInt(durationParts[1] || '0');
|
|
3392
3369
|
var value = hour + (minute + 0.5) / 60;
|
|
3393
|
-
return roundFloat(value, maxDecimals);
|
|
3370
|
+
return roundFloat$1(value, maxDecimals);
|
|
3394
3371
|
}
|
|
3395
|
-
function roundFloat(input, maxDecimals) {
|
|
3372
|
+
function roundFloat$1(input, maxDecimals) {
|
|
3396
3373
|
if (maxDecimals > 0) {
|
|
3397
3374
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
3398
3375
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -3416,9 +3393,9 @@
|
|
|
3416
3393
|
DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
|
|
3417
3394
|
}
|
|
3418
3395
|
};
|
|
3419
|
-
var noop$
|
|
3396
|
+
var noop$1 = function () {
|
|
3420
3397
|
};
|
|
3421
|
-
var ɵ0$
|
|
3398
|
+
var ɵ0$1 = noop$1;
|
|
3422
3399
|
var MatLatLongField = /** @class */ (function () {
|
|
3423
3400
|
function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
|
|
3424
3401
|
this.platform = platform;
|
|
@@ -3426,8 +3403,8 @@
|
|
|
3426
3403
|
this.formBuilder = formBuilder;
|
|
3427
3404
|
this.cd = cd;
|
|
3428
3405
|
this.formGroupDir = formGroupDir;
|
|
3429
|
-
this._onChangeCallback = noop$
|
|
3430
|
-
this._onTouchedCallback = noop$
|
|
3406
|
+
this._onChangeCallback = noop$1;
|
|
3407
|
+
this._onTouchedCallback = noop$1;
|
|
3431
3408
|
this._subscription = new rxjs.Subscription();
|
|
3432
3409
|
this.disabling = false;
|
|
3433
3410
|
this.writing = false;
|
|
@@ -3780,14 +3757,14 @@
|
|
|
3780
3757
|
},] }
|
|
3781
3758
|
];
|
|
3782
3759
|
|
|
3783
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
3760
|
+
var DEFAULT_VALUE_ACCESSOR$1 = {
|
|
3784
3761
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
3785
3762
|
useExisting: i0.forwardRef(function () { return MatDate; }),
|
|
3786
3763
|
multi: true
|
|
3787
3764
|
};
|
|
3788
|
-
var DAY_MASK
|
|
3789
|
-
var noop$
|
|
3790
|
-
var ɵ0$
|
|
3765
|
+
var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
3766
|
+
var noop$2 = function () { };
|
|
3767
|
+
var ɵ0$2 = noop$2;
|
|
3791
3768
|
var MatDate = /** @class */ (function () {
|
|
3792
3769
|
function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
3793
3770
|
this.dateAdapter = dateAdapter;
|
|
@@ -3796,12 +3773,12 @@
|
|
|
3796
3773
|
this.cd = cd;
|
|
3797
3774
|
this.keyboard = keyboard;
|
|
3798
3775
|
this.formGroupDir = formGroupDir;
|
|
3799
|
-
this._onChangeCallback = noop$
|
|
3800
|
-
this._onTouchedCallback = noop$
|
|
3776
|
+
this._onChangeCallback = noop$2;
|
|
3777
|
+
this._onTouchedCallback = noop$2;
|
|
3801
3778
|
this._subscription = new rxjs.Subscription();
|
|
3802
3779
|
this.writing = true;
|
|
3803
3780
|
this.disabling = false;
|
|
3804
|
-
this.dayMask = DAY_MASK
|
|
3781
|
+
this.dayMask = DAY_MASK;
|
|
3805
3782
|
this.disabled = false;
|
|
3806
3783
|
this.floatLabel = 'auto';
|
|
3807
3784
|
this.readonly = false;
|
|
@@ -4070,7 +4047,7 @@
|
|
|
4070
4047
|
selector: 'mat-date-field',
|
|
4071
4048
|
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",
|
|
4072
4049
|
providers: [
|
|
4073
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
4050
|
+
DEFAULT_VALUE_ACCESSOR$1,
|
|
4074
4051
|
],
|
|
4075
4052
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4076
4053
|
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%}"]
|
|
@@ -4103,17 +4080,17 @@
|
|
|
4103
4080
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
4104
4081
|
};
|
|
4105
4082
|
|
|
4106
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
4083
|
+
var DEFAULT_VALUE_ACCESSOR$2 = {
|
|
4107
4084
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
4108
4085
|
useExisting: i0.forwardRef(function () { return MatDateTime; }),
|
|
4109
4086
|
multi: true
|
|
4110
4087
|
};
|
|
4111
4088
|
var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
4112
4089
|
var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
|
|
4113
|
-
var HOUR_MASK
|
|
4114
|
-
var noop$
|
|
4090
|
+
var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
4091
|
+
var noop$3 = function () {
|
|
4115
4092
|
};
|
|
4116
|
-
var ɵ0$
|
|
4093
|
+
var ɵ0$3 = noop$3;
|
|
4117
4094
|
var MatDateTime = /** @class */ (function () {
|
|
4118
4095
|
function MatDateTime(platform, dateAdapter, translate, formBuilder, keyboard, cd, formGroupDir) {
|
|
4119
4096
|
this.platform = platform;
|
|
@@ -4123,14 +4100,14 @@
|
|
|
4123
4100
|
this.keyboard = keyboard;
|
|
4124
4101
|
this.cd = cd;
|
|
4125
4102
|
this.formGroupDir = formGroupDir;
|
|
4126
|
-
this._onChangeCallback = noop$
|
|
4127
|
-
this._onTouchedCallback = noop$
|
|
4103
|
+
this._onChangeCallback = noop$3;
|
|
4104
|
+
this._onTouchedCallback = noop$3;
|
|
4128
4105
|
this._subscription = new rxjs.Subscription();
|
|
4129
4106
|
this.writing = true;
|
|
4130
4107
|
this.disabling = false;
|
|
4131
4108
|
this._onDestroy = new i0.EventEmitter();
|
|
4132
4109
|
this.dayMask = DAY_MASK$1;
|
|
4133
|
-
this.hourMask = HOUR_MASK
|
|
4110
|
+
this.hourMask = HOUR_MASK;
|
|
4134
4111
|
this.floatLabel = 'auto';
|
|
4135
4112
|
this.readonly = false;
|
|
4136
4113
|
this.compact = false;
|
|
@@ -4477,7 +4454,7 @@
|
|
|
4477
4454
|
selector: 'mat-date-time-field',
|
|
4478
4455
|
template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled\">\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><ng-content select=\"[matPrefix]\"></ng-content></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}}</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",
|
|
4479
4456
|
providers: [
|
|
4480
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
4457
|
+
DEFAULT_VALUE_ACCESSOR$2,
|
|
4481
4458
|
],
|
|
4482
4459
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4483
4460
|
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%}"]
|
|
@@ -4516,10 +4493,10 @@
|
|
|
4516
4493
|
useExisting: i0.forwardRef(function () { return MatDateShort; }),
|
|
4517
4494
|
multi: true
|
|
4518
4495
|
};
|
|
4519
|
-
var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
|
|
4520
|
-
var noop$
|
|
4496
|
+
var DAY_MASK$2 = [/\d/, /\d/, /\d/, /\d/];
|
|
4497
|
+
var noop$4 = function () {
|
|
4521
4498
|
};
|
|
4522
|
-
var ɵ0$
|
|
4499
|
+
var ɵ0$4 = noop$4;
|
|
4523
4500
|
var MatDateShort = /** @class */ (function () {
|
|
4524
4501
|
function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
4525
4502
|
this.dateAdapter = dateAdapter;
|
|
@@ -4528,11 +4505,11 @@
|
|
|
4528
4505
|
this.cd = cd;
|
|
4529
4506
|
this.keyboard = keyboard;
|
|
4530
4507
|
this.formGroupDir = formGroupDir;
|
|
4531
|
-
this._onChangeCallback = noop$
|
|
4532
|
-
this._onTouchedCallback = noop$
|
|
4508
|
+
this._onChangeCallback = noop$4;
|
|
4509
|
+
this._onTouchedCallback = noop$4;
|
|
4533
4510
|
this.writing = true;
|
|
4534
4511
|
this.disabling = false;
|
|
4535
|
-
this.dayMask = DAY_MASK;
|
|
4512
|
+
this.dayMask = DAY_MASK$2;
|
|
4536
4513
|
this.disabled = false;
|
|
4537
4514
|
this.floatLabel = 'auto';
|
|
4538
4515
|
this.readonly = false;
|
|
@@ -4880,16 +4857,16 @@
|
|
|
4880
4857
|
},] }
|
|
4881
4858
|
];
|
|
4882
4859
|
|
|
4883
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
4860
|
+
var DEFAULT_VALUE_ACCESSOR$4 = {
|
|
4884
4861
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
4885
4862
|
useExisting: i0.forwardRef(function () { return MatDuration; }),
|
|
4886
4863
|
multi: true
|
|
4887
4864
|
};
|
|
4888
4865
|
var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
|
|
4889
|
-
var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
4890
|
-
var noop$
|
|
4866
|
+
var HOUR_MASK$1 = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
4867
|
+
var noop$5 = function () {
|
|
4891
4868
|
};
|
|
4892
|
-
var ɵ0$5 = noop$
|
|
4869
|
+
var ɵ0$5 = noop$5;
|
|
4893
4870
|
var MatDuration = /** @class */ (function () {
|
|
4894
4871
|
function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
|
|
4895
4872
|
this.dateAdapter = dateAdapter;
|
|
@@ -4898,11 +4875,11 @@
|
|
|
4898
4875
|
this.cd = cd;
|
|
4899
4876
|
this.formGroupDir = formGroupDir;
|
|
4900
4877
|
this._subscription = new rxjs.Subscription();
|
|
4901
|
-
this._onChangeCallback = noop$
|
|
4902
|
-
this._onTouchedCallback = noop$
|
|
4878
|
+
this._onChangeCallback = noop$5;
|
|
4879
|
+
this._onTouchedCallback = noop$5;
|
|
4903
4880
|
this.writing = true;
|
|
4904
4881
|
this.disabling = false;
|
|
4905
|
-
this.hourMask = HOUR_MASK;
|
|
4882
|
+
this.hourMask = HOUR_MASK$1;
|
|
4906
4883
|
this.disabled = false;
|
|
4907
4884
|
this.floatLabel = 'auto';
|
|
4908
4885
|
this.readonly = false;
|
|
@@ -5095,7 +5072,7 @@
|
|
|
5095
5072
|
selector: 'mat-duration-field',
|
|
5096
5073
|
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",
|
|
5097
5074
|
providers: [
|
|
5098
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5075
|
+
DEFAULT_VALUE_ACCESSOR$4,
|
|
5099
5076
|
],
|
|
5100
5077
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5101
5078
|
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%}"]
|
|
@@ -5155,22 +5132,22 @@
|
|
|
5155
5132
|
},] }
|
|
5156
5133
|
];
|
|
5157
5134
|
|
|
5158
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5135
|
+
var DEFAULT_VALUE_ACCESSOR$5 = {
|
|
5159
5136
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5160
5137
|
useExisting: i0.forwardRef(function () { return MatBooleanField; }),
|
|
5161
5138
|
multi: true
|
|
5162
5139
|
};
|
|
5163
|
-
var noop$
|
|
5140
|
+
var noop$6 = function () {
|
|
5164
5141
|
};
|
|
5165
|
-
var ɵ0$
|
|
5142
|
+
var ɵ0$6 = noop$6;
|
|
5166
5143
|
var MatBooleanField = /** @class */ (function () {
|
|
5167
5144
|
function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
|
|
5168
5145
|
this.translate = translate;
|
|
5169
5146
|
this.formBuilder = formBuilder;
|
|
5170
5147
|
this.cd = cd;
|
|
5171
5148
|
this.formGroupDir = formGroupDir;
|
|
5172
|
-
this._onChangeCallback = noop$
|
|
5173
|
-
this._onTouchedCallback = noop$
|
|
5149
|
+
this._onChangeCallback = noop$6;
|
|
5150
|
+
this._onTouchedCallback = noop$6;
|
|
5174
5151
|
this._writing = false;
|
|
5175
5152
|
this.showRadio = false;
|
|
5176
5153
|
this.disabled = false;
|
|
@@ -5347,7 +5324,7 @@
|
|
|
5347
5324
|
selector: 'mat-boolean-field',
|
|
5348
5325
|
template: "<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled\">\n <input matInput hidden type=\"text\" readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{(formControl.value ? 'COMMON.YES' : 'COMMON.NO') | translate }}</ion-text>\n</mat-form-field>\n\n<ng-template #writable>\n <ng-container [ngSwitch]=\"style\">\n\n <!-- Radio -->\n <mat-form-field *ngSwitchCase=\"'radio'\"\n [floatLabel]=\"showRadio && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-radio\">\n <mat-label *ngIf=\"placeholder && floatLabel!=='never'\">\n {{placeholder}}\n <span [hidden]=\"showRadio\">({{'COMMON.YES'|translate}}/{{'COMMON.NO'|translate}})</span>\n </mat-label>\n\n <input matInput #fakeInput type=\"text\" readonly=\"true\"\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <!-- radio button -->\n <mat-radio-group [hidden]=\"!showRadio\"\n [formControl]=\"formControl\"\n (change)=\"onRadioValueChanged($event)\">\n <mat-radio-button #yesButton [value]=\"true\">\n <span translate>COMMON.YES</span>\n </mat-radio-button> \n <mat-radio-button #noButton [value]=\"false\">\n <span translate>COMMON.NO</span>\n </mat-radio-button>\n </mat-radio-group>\n\n <div matSuffix #injectMatSuffix></div>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n </mat-form-field>\n\n <!-- Checkbox -->\n <mat-form-field *ngSwitchCase=\"'checkbox'\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-checkbox\">\n <mat-label *ngIf=\"placeholder && !showRadio\">\n {{placeholder}}\n </mat-label>\n\n <input matInput #matInput\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <ion-label> </ion-label>\n\n <!-- checkbox, when compact -->\n <mat-checkbox #checkboxButton\n [formControl]=\"formControl\"\n (change)=\"onCheckboxValueChanged($event)\"\n [indeterminate]=\"value===undefined\"\n [hidden]=\"!showRadio\"\n [tabindex]=\"tabindex\">\n </mat-checkbox>\n\n <div matSuffix #injectMatSuffix></div>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n </mat-form-field>\n\n <!-- Buttons -->\n <mat-form-field *ngSwitchCase=\"'button'\"\n [floatLabel]=\"floatLabel === 'never' ? 'never' : 'always'\"\n class=\"mat-boolean-field mat-boolean-field-button\">\n <input matInput type=\"text\" hidden\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [required]=\"required\">\n <ion-grid class=\"ion-no-padding\" *ngIf=\"!formControl.disabled; else disabledLabel\">\n <ion-row class=\"ion-no-padding\">\n <!-- Yes button -->\n <ion-col>\n <ion-button style=\"width: 100%;\"\n class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex\"\n (click)=\"writeValue(true, $event)\"\n (keyup.enter)=\"writeValue(true, $event)\"\n [color]=\"_value == null ? 'danger' : (_value === true) ? 'accent' : 'light'\">\n <ion-icon slot=\"start\" name=\"checkmark\"></ion-icon>\n {{'COMMON.YES'|translate}}\n </ion-button>\n </ion-col>\n <!-- No button -->\n <ion-col>\n <ion-button style=\"width: 100%;\"\n 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 ? 'danger' : (_value === false) ? 'accent' : 'light'\">\n <ion-icon slot=\"start\" name=\"close\"></ion-icon>\n {{'COMMON.NO'|translate}}\n </ion-button>\n </ion-col>\n </ion-row>\n </ion-grid>\n <ng-template #disabledLabel>\n <ion-label><i translate>COMMON.EMPTY_OPTION</i></ion-label>\n </ng-template>\n\n <div matSuffix #injectMatSuffix></div>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n </mat-form-field>\n </ng-container>\n\n <div class=\"cdk-visually-hidden\">\n <div #suffix><ng-content select=\"[matSuffix]\"></ng-content></div>\n </div>\n\n</ng-template>\n\n\n",
|
|
5349
5326
|
providers: [
|
|
5350
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5327
|
+
DEFAULT_VALUE_ACCESSOR$5
|
|
5351
5328
|
],
|
|
5352
5329
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5353
5330
|
styles: [":host{width:100%}"]
|
|
@@ -5429,7 +5406,6 @@
|
|
|
5429
5406
|
return MatNumpadEvent;
|
|
5430
5407
|
}(KeyboardEvent));
|
|
5431
5408
|
|
|
5432
|
-
exports.ɵbd = void 0;
|
|
5433
5409
|
(function (AnimationState) {
|
|
5434
5410
|
AnimationState["ENTER"] = "enter";
|
|
5435
5411
|
AnimationState["ENTER_INPUT"] = "enter-input";
|
|
@@ -5597,7 +5573,7 @@
|
|
|
5597
5573
|
};
|
|
5598
5574
|
return MatNumpadDomService;
|
|
5599
5575
|
}());
|
|
5600
|
-
MatNumpadDomService.ɵprov =
|
|
5576
|
+
MatNumpadDomService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatNumpadDomService_Factory() { return new MatNumpadDomService(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i1$4.DOCUMENT, 8)); }, token: MatNumpadDomService, providedIn: "root" });
|
|
5601
5577
|
MatNumpadDomService.decorators = [
|
|
5602
5578
|
{ type: i0.Injectable, args: [{
|
|
5603
5579
|
providedIn: 'root'
|
|
@@ -6003,7 +5979,7 @@
|
|
|
6003
5979
|
},] }
|
|
6004
5980
|
];
|
|
6005
5981
|
|
|
6006
|
-
var DEFAULT_VALUE_ACCESSOR = {
|
|
5982
|
+
var DEFAULT_VALUE_ACCESSOR$6 = {
|
|
6007
5983
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6008
5984
|
useExisting: i0.forwardRef(function () { return MatSwipeField; }),
|
|
6009
5985
|
multi: true
|
|
@@ -6238,10 +6214,10 @@
|
|
|
6238
6214
|
};
|
|
6239
6215
|
/* -- protected method -- */
|
|
6240
6216
|
MatSwipeField.prototype.loadItems = function (items) {
|
|
6217
|
+
var _this = this;
|
|
6218
|
+
this.$loaded.next(false);
|
|
6241
6219
|
this.$items.next(items);
|
|
6242
|
-
|
|
6243
|
-
this.slides.update();
|
|
6244
|
-
}
|
|
6220
|
+
this.ready().then(function () { return _this.slides.update(); });
|
|
6245
6221
|
};
|
|
6246
6222
|
MatSwipeField.prototype.checkIfTouched = function () {
|
|
6247
6223
|
if (this.formControl.touched) {
|
|
@@ -6323,7 +6299,7 @@
|
|
|
6323
6299
|
{ type: i0.Component, args: [{
|
|
6324
6300
|
selector: 'mat-swipe-field',
|
|
6325
6301
|
template: "<mat-form-field [floatLabel]=\"showSlides && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\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",
|
|
6326
|
-
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
6302
|
+
providers: [DEFAULT_VALUE_ACCESSOR$6],
|
|
6327
6303
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6328
6304
|
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}"]
|
|
6329
6305
|
},] }
|
|
@@ -6879,7 +6855,7 @@
|
|
|
6879
6855
|
};
|
|
6880
6856
|
return ProgressBarService;
|
|
6881
6857
|
}());
|
|
6882
|
-
ProgressBarService.ɵprov =
|
|
6858
|
+
ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
|
|
6883
6859
|
ProgressBarService.decorators = [
|
|
6884
6860
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
6885
6861
|
];
|
|
@@ -6926,7 +6902,7 @@
|
|
|
6926
6902
|
};
|
|
6927
6903
|
return AppGestureConfig;
|
|
6928
6904
|
}(i1$6.HammerGestureConfig));
|
|
6929
|
-
AppGestureConfig.ɵprov =
|
|
6905
|
+
AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
|
|
6930
6906
|
AppGestureConfig.decorators = [
|
|
6931
6907
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
6932
6908
|
];
|
|
@@ -7191,7 +7167,7 @@
|
|
|
7191
7167
|
};
|
|
7192
7168
|
return MatPaginatorI18n;
|
|
7193
7169
|
}(paginator.MatPaginatorIntl));
|
|
7194
|
-
MatPaginatorI18n.ɵprov =
|
|
7170
|
+
MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
|
|
7195
7171
|
MatPaginatorI18n.decorators = [
|
|
7196
7172
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7197
7173
|
];
|
|
@@ -7283,17 +7259,17 @@
|
|
|
7283
7259
|
return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
|
|
7284
7260
|
}
|
|
7285
7261
|
|
|
7286
|
-
var noop = function () {
|
|
7262
|
+
var noop$7 = function () {
|
|
7287
7263
|
};
|
|
7288
|
-
var ɵ0$
|
|
7264
|
+
var ɵ0$7 = noop$7;
|
|
7289
7265
|
var AppFormField = /** @class */ (function () {
|
|
7290
7266
|
function AppFormField(translate, cd, injector, formGroupDir) {
|
|
7291
7267
|
this.translate = translate;
|
|
7292
7268
|
this.cd = cd;
|
|
7293
7269
|
this.injector = injector;
|
|
7294
7270
|
this.formGroupDir = formGroupDir;
|
|
7295
|
-
this._onChangeCallback = noop;
|
|
7296
|
-
this._onTouchedCallback = noop;
|
|
7271
|
+
this._onChangeCallback = noop$7;
|
|
7272
|
+
this._onTouchedCallback = noop$7;
|
|
7297
7273
|
this.readonly = false;
|
|
7298
7274
|
this.compact = false;
|
|
7299
7275
|
this.floatLabel = 'auto';
|
|
@@ -7751,7 +7727,7 @@
|
|
|
7751
7727
|
};
|
|
7752
7728
|
return AudioProvider;
|
|
7753
7729
|
}());
|
|
7754
|
-
AudioProvider.ɵprov =
|
|
7730
|
+
AudioProvider.ɵprov = i0.ɵɵdefineInjectable({ factory: function AudioProvider_Factory() { return new AudioProvider(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$2.NativeAudio, 8), i0.ɵɵinject(i3$1.Vibration, 8), i0.ɵɵinject(i4.AudioManagement, 8)); }, token: AudioProvider, providedIn: "root" });
|
|
7755
7731
|
AudioProvider.decorators = [
|
|
7756
7732
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7757
7733
|
];
|
|
@@ -7851,7 +7827,7 @@
|
|
|
7851
7827
|
};
|
|
7852
7828
|
return Hotkeys;
|
|
7853
7829
|
}());
|
|
7854
|
-
Hotkeys.ɵprov =
|
|
7830
|
+
Hotkeys.ɵprov = i0.ɵɵdefineInjectable({ factory: function Hotkeys_Factory() { return new Hotkeys(i0.ɵɵinject(i1$6.EventManager), i0.ɵɵinject(i2.MatDialog), i0.ɵɵinject(i1$4.DOCUMENT), i0.ɵɵinject(i1$5.ModalController)); }, token: Hotkeys, providedIn: "root" });
|
|
7855
7831
|
Hotkeys.decorators = [
|
|
7856
7832
|
{ type: i0.Injectable, args: [{
|
|
7857
7833
|
providedIn: 'root'
|
|
@@ -8055,7 +8031,7 @@
|
|
|
8055
8031
|
return Base64ImageReader;
|
|
8056
8032
|
}());
|
|
8057
8033
|
|
|
8058
|
-
var uuidv4
|
|
8034
|
+
var uuidv4 = uuidv4Imported__namespace;
|
|
8059
8035
|
var FileService = /** @class */ (function () {
|
|
8060
8036
|
function FileService(platform,
|
|
8061
8037
|
//private transfer: FileTransfer,
|
|
@@ -8101,7 +8077,7 @@
|
|
|
8101
8077
|
lastSlashIndex = source.lastIndexOf('/');
|
|
8102
8078
|
if (lastSlashIndex === -1)
|
|
8103
8079
|
throw new Error('Invalid URL: ' + source);
|
|
8104
|
-
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4
|
|
8080
|
+
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
|
|
8105
8081
|
if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
|
|
8106
8082
|
console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
|
|
8107
8083
|
targetFilePath = this._imageDirectory + fileName;
|
|
@@ -8164,7 +8140,7 @@
|
|
|
8164
8140
|
};
|
|
8165
8141
|
return FileService;
|
|
8166
8142
|
}());
|
|
8167
|
-
FileService.ɵprov =
|
|
8143
|
+
FileService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(ENVIRONMENT)); }, token: FileService, providedIn: "root" });
|
|
8168
8144
|
FileService.decorators = [
|
|
8169
8145
|
{ type: i0.Injectable, args: [{
|
|
8170
8146
|
providedIn: 'root',
|
|
@@ -8327,7 +8303,7 @@
|
|
|
8327
8303
|
Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
8328
8304
|
|
|
8329
8305
|
var scrypt = require('scrypt-async');
|
|
8330
|
-
var sha256
|
|
8306
|
+
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
8331
8307
|
var sha512 = require('hash.js/lib/hash/sha/512');
|
|
8332
8308
|
var nacl = {
|
|
8333
8309
|
sign: tweetnacl.sign,
|
|
@@ -8433,7 +8409,7 @@
|
|
|
8433
8409
|
* Hash (using SHA256) a message
|
|
8434
8410
|
*/
|
|
8435
8411
|
CryptoService.prototype.sha256 = function (message) {
|
|
8436
|
-
return sha256
|
|
8412
|
+
return sha256().update(message).digest('hex');
|
|
8437
8413
|
};
|
|
8438
8414
|
/**
|
|
8439
8415
|
* Hash (using SHA512) a message
|
|
@@ -8447,7 +8423,7 @@
|
|
|
8447
8423
|
};
|
|
8448
8424
|
return CryptoService;
|
|
8449
8425
|
}());
|
|
8450
|
-
CryptoService.ɵprov =
|
|
8426
|
+
CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
|
|
8451
8427
|
CryptoService.decorators = [
|
|
8452
8428
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8453
8429
|
];
|
|
@@ -8456,7 +8432,7 @@
|
|
|
8456
8432
|
return obj && obj.id && joinPropertiesPath(obj, properties || ['name']) || undefined;
|
|
8457
8433
|
}
|
|
8458
8434
|
//@dynamic
|
|
8459
|
-
var Entity
|
|
8435
|
+
var Entity = /** @class */ (function () {
|
|
8460
8436
|
function Entity(__typename) {
|
|
8461
8437
|
this.id = null;
|
|
8462
8438
|
this.updateDate = null;
|
|
@@ -8785,7 +8761,7 @@
|
|
|
8785
8761
|
// Make sure the class extends Entity
|
|
8786
8762
|
if (!environment.production) {
|
|
8787
8763
|
var obj = new constructor();
|
|
8788
|
-
if (!(obj instanceof Entity
|
|
8764
|
+
if (!(obj instanceof Entity)) {
|
|
8789
8765
|
throw new Error("Class " + constructor.name + " must extends <<Entity>> to be able to use @FromObject!");
|
|
8790
8766
|
}
|
|
8791
8767
|
}
|
|
@@ -8899,7 +8875,7 @@
|
|
|
8899
8875
|
configurable: true
|
|
8900
8876
|
});
|
|
8901
8877
|
return Peer;
|
|
8902
|
-
}(Entity
|
|
8878
|
+
}(Entity));
|
|
8903
8879
|
exports.Peer = Peer_1 = __decorate([
|
|
8904
8880
|
EntityClass({ typename: 'PeerVO' })
|
|
8905
8881
|
], exports.Peer);
|
|
@@ -9828,7 +9804,7 @@
|
|
|
9828
9804
|
};
|
|
9829
9805
|
return LocalSettingsService;
|
|
9830
9806
|
}());
|
|
9831
|
-
LocalSettingsService.ɵprov =
|
|
9807
|
+
LocalSettingsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsService_Factory() { return new LocalSettingsService(i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_LOCAL_SETTINGS, 8), i0.ɵɵinject(APP_LOCAL_SETTINGS_OPTIONS, 8)); }, token: LocalSettingsService, providedIn: "root" });
|
|
9832
9808
|
LocalSettingsService.decorators = [
|
|
9833
9809
|
{ type: i0.Injectable, args: [{
|
|
9834
9810
|
providedIn: 'root',
|
|
@@ -10673,7 +10649,7 @@
|
|
|
10673
10649
|
};
|
|
10674
10650
|
return NetworkService;
|
|
10675
10651
|
}());
|
|
10676
|
-
NetworkService.ɵprov =
|
|
10652
|
+
NetworkService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NetworkService_Factory() { return new NetworkService(i0.ɵɵinject(i1$4.DOCUMENT), i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i1$5.ModalController), i0.ɵɵinject(CryptoService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(i6.CacheService), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(i9.Network, 8), i0.ɵɵinject(i10.SplashScreen, 8), i0.ɵɵinject(i1$2.TranslateService, 8), i0.ɵɵinject(i1$5.ToastController, 8)); }, token: NetworkService, providedIn: "root" });
|
|
10677
10653
|
NetworkService.decorators = [
|
|
10678
10654
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
10679
10655
|
];
|
|
@@ -10693,7 +10669,7 @@
|
|
|
10693
10669
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
|
|
10694
10670
|
]; };
|
|
10695
10671
|
|
|
10696
|
-
var ErrorCodes
|
|
10672
|
+
var ErrorCodes = {
|
|
10697
10673
|
UNKNOWN_ERROR: 0,
|
|
10698
10674
|
LOAD_ACCOUNT_ERROR: 1,
|
|
10699
10675
|
BAD_PASSWORD: 2,
|
|
@@ -11101,7 +11077,7 @@
|
|
|
11101
11077
|
case 13:
|
|
11102
11078
|
err_1 = _a.sent();
|
|
11103
11079
|
console.error(err_1);
|
|
11104
|
-
throw { code: ErrorCodes
|
|
11080
|
+
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
11105
11081
|
case 14:
|
|
11106
11082
|
// Emit update event
|
|
11107
11083
|
if (!opts || opts.emitEvent !== false) {
|
|
@@ -11861,7 +11837,7 @@
|
|
|
11861
11837
|
}());
|
|
11862
11838
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
11863
11839
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
11864
|
-
EntitiesStorage.ɵprov =
|
|
11840
|
+
EntitiesStorage.ɵprov = i0.ɵɵdefineInjectable({ factory: function EntitiesStorage_Factory() { return new EntitiesStorage(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(ProgressBarService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_LOCAL_STORAGE_TYPE_POLICIES, 8)); }, token: EntitiesStorage, providedIn: "root" });
|
|
11865
11841
|
EntitiesStorage.decorators = [
|
|
11866
11842
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
11867
11843
|
];
|
|
@@ -11952,7 +11928,7 @@
|
|
|
11952
11928
|
this.nonce = source.nonce;
|
|
11953
11929
|
};
|
|
11954
11930
|
return UserSettings;
|
|
11955
|
-
}(Entity
|
|
11931
|
+
}(Entity));
|
|
11956
11932
|
exports.UserSettings = UserSettings_1 = __decorate([
|
|
11957
11933
|
EntityClass({ typename: 'UserSettingsVO' })
|
|
11958
11934
|
], exports.UserSettings);
|
|
@@ -11975,10 +11951,10 @@
|
|
|
11975
11951
|
function referentialsToString(values, properties, separator) {
|
|
11976
11952
|
return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
|
|
11977
11953
|
}
|
|
11978
|
-
var ɵ0$
|
|
11954
|
+
var ɵ0$8 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
11979
11955
|
var DefaultStatusList = [
|
|
11980
11956
|
{
|
|
11981
|
-
id: ɵ0$
|
|
11957
|
+
id: ɵ0$8,
|
|
11982
11958
|
icon: 'checkmark',
|
|
11983
11959
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
11984
11960
|
},
|
|
@@ -12030,7 +12006,7 @@
|
|
|
12030
12006
|
return _super.prototype.equals.call(this, other) && this.entityName === other.entityName;
|
|
12031
12007
|
};
|
|
12032
12008
|
return BaseReferential;
|
|
12033
|
-
}(Entity
|
|
12009
|
+
}(Entity));
|
|
12034
12010
|
// @dynamic
|
|
12035
12011
|
exports.Referential = /** @class */ (function (_super) {
|
|
12036
12012
|
__extends(Referential, _super);
|
|
@@ -12114,7 +12090,7 @@
|
|
|
12114
12090
|
this.levelId = source.levelId;
|
|
12115
12091
|
};
|
|
12116
12092
|
return ReferentialRef;
|
|
12117
|
-
}(Entity
|
|
12093
|
+
}(Entity));
|
|
12118
12094
|
exports.ReferentialRef = ReferentialRef_1 = __decorate([
|
|
12119
12095
|
EntityClass({ typename: 'ReferentialVO' })
|
|
12120
12096
|
], exports.ReferentialRef);
|
|
@@ -12197,7 +12173,7 @@
|
|
|
12197
12173
|
this.mainProfile = PersonUtils.getMainProfile(this.profiles);
|
|
12198
12174
|
};
|
|
12199
12175
|
return Person;
|
|
12200
|
-
}(Entity
|
|
12176
|
+
}(Entity));
|
|
12201
12177
|
exports.Person = Person_1 = __decorate([
|
|
12202
12178
|
EntityClass({ typename: 'PersonVO' })
|
|
12203
12179
|
], exports.Person);
|
|
@@ -12277,7 +12253,7 @@
|
|
|
12277
12253
|
(data.lastName || '')) || '';
|
|
12278
12254
|
}
|
|
12279
12255
|
|
|
12280
|
-
var uuidv4 = uuidv4Imported__namespace;
|
|
12256
|
+
var uuidv4$1 = uuidv4Imported__namespace;
|
|
12281
12257
|
var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
12282
12258
|
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
12283
12259
|
/**
|
|
@@ -12321,7 +12297,7 @@
|
|
|
12321
12297
|
// Skip if not tracked
|
|
12322
12298
|
if (!context || !context.tracked)
|
|
12323
12299
|
return forward(operation);
|
|
12324
|
-
var id = context.serializationKey || uuidv4();
|
|
12300
|
+
var id = context.serializationKey || uuidv4$1();
|
|
12325
12301
|
console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
|
|
12326
12302
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
12327
12303
|
var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -12402,7 +12378,7 @@
|
|
|
12402
12378
|
this._subscription = new rxjs.Subscription();
|
|
12403
12379
|
this.connectionParams = {};
|
|
12404
12380
|
this.onNetworkError = new rxjs.Subject();
|
|
12405
|
-
this.customErrors =
|
|
12381
|
+
this.customErrors = {};
|
|
12406
12382
|
this.onStart = new rxjs.Subject();
|
|
12407
12383
|
this._debug = !environment.production;
|
|
12408
12384
|
this._defaultFetchPolicy = environment.apolloFetchPolicy;
|
|
@@ -12917,7 +12893,7 @@
|
|
|
12917
12893
|
});
|
|
12918
12894
|
};
|
|
12919
12895
|
GraphqlService.prototype.registerCustomError = function (error) {
|
|
12920
|
-
this.customErrors.
|
|
12896
|
+
this.customErrors = Object.assign(Object.assign({}, this.customErrors), error);
|
|
12921
12897
|
};
|
|
12922
12898
|
/* -- protected methods -- */
|
|
12923
12899
|
GraphqlService.prototype.initApollo = function () {
|
|
@@ -13125,7 +13101,7 @@
|
|
|
13125
13101
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
13126
13102
|
|| this.toAppError(err.networkError)
|
|
13127
13103
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
13128
|
-
|| this.createAppErrorByCode(ErrorCodes
|
|
13104
|
+
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
13129
13105
|
// If graphQL: try to convert the first error found
|
|
13130
13106
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
13131
13107
|
|| this.toAppError(err)
|
|
@@ -13133,7 +13109,7 @@
|
|
|
13133
13109
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
13134
13110
|
|| err;
|
|
13135
13111
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
13136
|
-
if (error && error.code === ErrorCodes
|
|
13112
|
+
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
13137
13113
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
13138
13114
|
this.onNetworkError.next(error);
|
|
13139
13115
|
}
|
|
@@ -13159,9 +13135,9 @@
|
|
|
13159
13135
|
};
|
|
13160
13136
|
GraphqlService.prototype.getI18nErrorMessageByCode = function (errorCode) {
|
|
13161
13137
|
// look in registered error codes
|
|
13162
|
-
var
|
|
13163
|
-
if (
|
|
13164
|
-
return
|
|
13138
|
+
var customErrorMessage = this.customErrors[errorCode];
|
|
13139
|
+
if (customErrorMessage) {
|
|
13140
|
+
return customErrorMessage;
|
|
13165
13141
|
}
|
|
13166
13142
|
// Default, switch on error code
|
|
13167
13143
|
switch (errorCode) {
|
|
@@ -13169,7 +13145,7 @@
|
|
|
13169
13145
|
return 'ERROR.UNAUTHORIZED';
|
|
13170
13146
|
case ServerErrorCodes.FORBIDDEN:
|
|
13171
13147
|
return 'ERROR.FORBIDDEN';
|
|
13172
|
-
case ErrorCodes
|
|
13148
|
+
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
13173
13149
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
13174
13150
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
13175
13151
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -13214,7 +13190,7 @@
|
|
|
13214
13190
|
};
|
|
13215
13191
|
return GraphqlService;
|
|
13216
13192
|
}());
|
|
13217
|
-
GraphqlService.ɵprov =
|
|
13193
|
+
GraphqlService.ɵprov = i0.ɵɵdefineInjectable({ factory: function GraphqlService_Factory() { return new GraphqlService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$3.Apollo), i0.ɵɵinject(i3$3.HttpLink), i0.ɵɵinject(NetworkService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(CryptoService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_GRAPHQL_TYPE_POLICIES, 8)); }, token: GraphqlService, providedIn: "root" });
|
|
13218
13194
|
GraphqlService.decorators = [
|
|
13219
13195
|
{ type: i0.Injectable, args: [{
|
|
13220
13196
|
providedIn: 'root'
|
|
@@ -13231,7 +13207,7 @@
|
|
|
13231
13207
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
13232
13208
|
]; };
|
|
13233
13209
|
|
|
13234
|
-
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
13210
|
+
var sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
13235
13211
|
var BaseGraphqlServiceOptions = /** @class */ (function () {
|
|
13236
13212
|
function BaseGraphqlServiceOptions() {
|
|
13237
13213
|
}
|
|
@@ -13384,8 +13360,8 @@
|
|
|
13384
13360
|
};
|
|
13385
13361
|
/* -- protected methods -- */
|
|
13386
13362
|
BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
|
|
13387
|
-
var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
13388
|
-
var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
13363
|
+
var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
13364
|
+
var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
13389
13365
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
13390
13366
|
};
|
|
13391
13367
|
BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
|
|
@@ -13451,17 +13427,17 @@
|
|
|
13451
13427
|
/* ------------------------------------
|
|
13452
13428
|
* GraphQL queries
|
|
13453
13429
|
* ------------------------------------*/
|
|
13454
|
-
var Fragments
|
|
13455
|
-
account: core.gql(templateObject_1
|
|
13430
|
+
var Fragments = {
|
|
13431
|
+
account: core.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }\n "], ["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }\n "])))
|
|
13456
13432
|
};
|
|
13457
13433
|
// Load account query
|
|
13458
|
-
var LoadQuery
|
|
13434
|
+
var LoadQuery = core.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query Account {\n account {\n ...AccountFragment\n }\n }\n ", "\n"], ["\n query Account {\n account {\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
|
|
13459
13435
|
// Check email query
|
|
13460
|
-
var IsEmailExistsQuery = core.gql(templateObject_3
|
|
13436
|
+
var IsEmailExistsQuery = core.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"], ["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"])));
|
|
13461
13437
|
// Save (create or update) account mutation
|
|
13462
|
-
var SaveMutation
|
|
13438
|
+
var SaveMutation = core.gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n mutation SaveAccount($account:AccountVOInput){\n saveAccount(account: $account){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation SaveAccount($account:AccountVOInput){\n saveAccount(account: $account){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
|
|
13463
13439
|
// Create account mutation
|
|
13464
|
-
var CreateMutation = core.gql(templateObject_5
|
|
13440
|
+
var CreateMutation = core.gql(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation CreateAccount($account:AccountVOInput){\n createAccount(account: $account){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation CreateAccount($account:AccountVOInput){\n createAccount(account: $account){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
|
|
13465
13441
|
// Sent confirmation email
|
|
13466
13442
|
var SendConfirmEmailMutation = core.gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n mutation sendAccountConfirmationEmail($email:String, $locale:String){\n sendAccountConfirmationEmail(email: $email, locale: $locale)\n }\n"], ["\n mutation sendAccountConfirmationEmail($email:String, $locale:String){\n sendAccountConfirmationEmail(email: $email, locale: $locale)\n }\n"])));
|
|
13467
13443
|
// Confirm account email
|
|
@@ -13851,7 +13827,7 @@
|
|
|
13851
13827
|
error_3 = _a.sent();
|
|
13852
13828
|
console.error(error_3);
|
|
13853
13829
|
this.resetData();
|
|
13854
|
-
throw { code: ErrorCodes
|
|
13830
|
+
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
13855
13831
|
case 4:
|
|
13856
13832
|
// Store pubkey+keypair
|
|
13857
13833
|
this.data.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -13887,7 +13863,7 @@
|
|
|
13887
13863
|
return [3 /*break*/, 18];
|
|
13888
13864
|
case 11:
|
|
13889
13865
|
err_1 = _a.sent();
|
|
13890
|
-
if (!(err_1 && +(err_1.code) === ErrorCodes
|
|
13866
|
+
if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
13891
13867
|
if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
|
|
13892
13868
|
isEmailExists = void 0;
|
|
13893
13869
|
_a.label = 12;
|
|
@@ -13903,12 +13879,12 @@
|
|
|
13903
13879
|
case 15:
|
|
13904
13880
|
// Email not exists (no account)
|
|
13905
13881
|
if (!isEmailExists) {
|
|
13906
|
-
throw { code: ErrorCodes
|
|
13882
|
+
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
13907
13883
|
}
|
|
13908
13884
|
_a.label = 16;
|
|
13909
13885
|
case 16:
|
|
13910
13886
|
// Email exists, so error = 'bad password'
|
|
13911
|
-
throw { code: ErrorCodes
|
|
13887
|
+
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
13912
13888
|
case 17: throw err_1; // resend the first error
|
|
13913
13889
|
case 18:
|
|
13914
13890
|
_a.trys.push([18, 20, , 21]);
|
|
@@ -13991,7 +13967,7 @@
|
|
|
13991
13967
|
throw error_6;
|
|
13992
13968
|
console.error(error_6);
|
|
13993
13969
|
throw {
|
|
13994
|
-
code: ErrorCodes
|
|
13970
|
+
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
13995
13971
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
13996
13972
|
};
|
|
13997
13973
|
case 4: return [2 /*return*/];
|
|
@@ -14261,8 +14237,8 @@
|
|
|
14261
14237
|
_a.label = 3;
|
|
14262
14238
|
case 3: return [3 /*break*/, 6];
|
|
14263
14239
|
case 4: return [4 /*yield*/, this.graphql.query({
|
|
14264
|
-
query: LoadQuery
|
|
14265
|
-
error: { code: ErrorCodes
|
|
14240
|
+
query: LoadQuery,
|
|
14241
|
+
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
14266
14242
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
14267
14243
|
})];
|
|
14268
14244
|
case 5:
|
|
@@ -14307,7 +14283,7 @@
|
|
|
14307
14283
|
case 1:
|
|
14308
14284
|
existingAccount = _a.sent();
|
|
14309
14285
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
14310
|
-
throw { code: ErrorCodes
|
|
14286
|
+
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
14311
14287
|
}
|
|
14312
14288
|
account.updateDate = existingAccount.updateDate || account.updateDate;
|
|
14313
14289
|
if (account.settings && existingAccount.settings) {
|
|
@@ -14320,12 +14296,12 @@
|
|
|
14320
14296
|
delete json.profiles;
|
|
14321
14297
|
delete json.mainProfile; // Not known on server
|
|
14322
14298
|
return [4 /*yield*/, this.graphql.mutate({
|
|
14323
|
-
mutation: isNew ? CreateMutation : SaveMutation
|
|
14299
|
+
mutation: isNew ? CreateMutation : SaveMutation,
|
|
14324
14300
|
variables: {
|
|
14325
14301
|
account: json
|
|
14326
14302
|
},
|
|
14327
14303
|
error: {
|
|
14328
|
-
code: ErrorCodes
|
|
14304
|
+
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
14329
14305
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
14330
14306
|
}
|
|
14331
14307
|
})];
|
|
@@ -14359,7 +14335,7 @@
|
|
|
14359
14335
|
case 1:
|
|
14360
14336
|
isEmailExists = _a.sent();
|
|
14361
14337
|
if (isEmailExists) {
|
|
14362
|
-
throw { code: ErrorCodes
|
|
14338
|
+
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
14363
14339
|
}
|
|
14364
14340
|
return [2 /*return*/];
|
|
14365
14341
|
}
|
|
@@ -14409,7 +14385,7 @@
|
|
|
14409
14385
|
locale: locale
|
|
14410
14386
|
},
|
|
14411
14387
|
error: {
|
|
14412
|
-
code: ErrorCodes
|
|
14388
|
+
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
14413
14389
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
14414
14390
|
}
|
|
14415
14391
|
})];
|
|
@@ -14432,7 +14408,7 @@
|
|
|
14432
14408
|
code: code
|
|
14433
14409
|
},
|
|
14434
14410
|
error: {
|
|
14435
|
-
code: ErrorCodes
|
|
14411
|
+
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
14436
14412
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
14437
14413
|
}
|
|
14438
14414
|
})];
|
|
@@ -14454,7 +14430,7 @@
|
|
|
14454
14430
|
interval: 10
|
|
14455
14431
|
},
|
|
14456
14432
|
error: {
|
|
14457
|
-
code: ErrorCodes
|
|
14433
|
+
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
14458
14434
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ACCOUNT_ERROR'
|
|
14459
14435
|
}
|
|
14460
14436
|
}).subscribe({
|
|
@@ -14573,7 +14549,7 @@
|
|
|
14573
14549
|
if (counter > 4) {
|
|
14574
14550
|
if (this._debug)
|
|
14575
14551
|
console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
|
|
14576
|
-
throw { code: ErrorCodes
|
|
14552
|
+
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
14577
14553
|
}
|
|
14578
14554
|
if (!token) return [3 /*break*/, 2];
|
|
14579
14555
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -14582,7 +14558,7 @@
|
|
|
14582
14558
|
token: token
|
|
14583
14559
|
},
|
|
14584
14560
|
error: {
|
|
14585
|
-
code: ErrorCodes
|
|
14561
|
+
code: ErrorCodes.UNAUTHORIZED,
|
|
14586
14562
|
message: 'ERROR.UNAUTHORIZED'
|
|
14587
14563
|
},
|
|
14588
14564
|
fetchPolicy: 'no-cache'
|
|
@@ -14599,7 +14575,7 @@
|
|
|
14599
14575
|
_a.label = 2;
|
|
14600
14576
|
case 2:
|
|
14601
14577
|
challengeError = {
|
|
14602
|
-
code: ErrorCodes
|
|
14578
|
+
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
14603
14579
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
14604
14580
|
};
|
|
14605
14581
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -14633,7 +14609,7 @@
|
|
|
14633
14609
|
};
|
|
14634
14610
|
return AccountService;
|
|
14635
14611
|
}(BaseGraphqlService));
|
|
14636
|
-
AccountService.ɵprov =
|
|
14612
|
+
AccountService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountService_Factory() { return new AccountService(i0.ɵɵinject(CryptoService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(FileService), i0.ɵɵinject(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
|
|
14637
14613
|
AccountService.decorators = [
|
|
14638
14614
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
14639
14615
|
];
|
|
@@ -14646,7 +14622,7 @@
|
|
|
14646
14622
|
{ type: FileService },
|
|
14647
14623
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
14648
14624
|
]; };
|
|
14649
|
-
var templateObject_1
|
|
14625
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
14650
14626
|
|
|
14651
14627
|
var Software_1, Configuration_1;
|
|
14652
14628
|
// @dynamic
|
|
@@ -14677,7 +14653,7 @@
|
|
|
14677
14653
|
}
|
|
14678
14654
|
};
|
|
14679
14655
|
return Software;
|
|
14680
|
-
}(Entity
|
|
14656
|
+
}(Entity));
|
|
14681
14657
|
exports.Software = Software_1 = __decorate([
|
|
14682
14658
|
EntityClass({ typename: 'SoftwareVO' })
|
|
14683
14659
|
], exports.Software);
|
|
@@ -14888,13 +14864,13 @@
|
|
|
14888
14864
|
/* ------------------------------------
|
|
14889
14865
|
* GraphQL queries
|
|
14890
14866
|
* ------------------------------------*/
|
|
14891
|
-
var Fragments = {
|
|
14892
|
-
config: core.gql(templateObject_1$
|
|
14867
|
+
var Fragments$1 = {
|
|
14868
|
+
config: core.gql(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "], ["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "])))
|
|
14893
14869
|
};
|
|
14894
|
-
var LoadQuery = core.gql(templateObject_2$
|
|
14870
|
+
var LoadQuery$1 = core.gql(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"], ["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"])), Fragments$1.config);
|
|
14895
14871
|
// Save (create or update) account mutation
|
|
14896
|
-
var SaveMutation = core.gql(templateObject_3$
|
|
14897
|
-
var ClearCache = core.gql(templateObject_4$
|
|
14872
|
+
var SaveMutation$1 = core.gql(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"], ["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"])), Fragments$1.config);
|
|
14873
|
+
var ClearCache = core.gql(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"], ["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"])));
|
|
14898
14874
|
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"])));
|
|
14899
14875
|
var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
|
|
14900
14876
|
var ConfigService = /** @class */ (function (_super) {
|
|
@@ -14987,12 +14963,12 @@
|
|
|
14987
14963
|
case 0:
|
|
14988
14964
|
now = Date.now();
|
|
14989
14965
|
console.debug('[config] Loading Pod configuration...');
|
|
14990
|
-
query = opts && opts.query || LoadQuery;
|
|
14966
|
+
query = opts && opts.query || LoadQuery$1;
|
|
14991
14967
|
variables = opts && opts.variables || undefined;
|
|
14992
14968
|
return [4 /*yield*/, this.graphql.query({
|
|
14993
14969
|
query: query,
|
|
14994
14970
|
variables: variables,
|
|
14995
|
-
error: { code: ErrorCodes
|
|
14971
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
14996
14972
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
14997
14973
|
})];
|
|
14998
14974
|
case 1:
|
|
@@ -15026,12 +15002,12 @@
|
|
|
15026
15002
|
console.debug('[config] Saving Pod configuration...', config);
|
|
15027
15003
|
json = config.asObject();
|
|
15028
15004
|
return [4 /*yield*/, this.graphql.mutate({
|
|
15029
|
-
mutation: SaveMutation,
|
|
15005
|
+
mutation: SaveMutation$1,
|
|
15030
15006
|
variables: {
|
|
15031
15007
|
data: json
|
|
15032
15008
|
},
|
|
15033
15009
|
error: {
|
|
15034
|
-
code: ErrorCodes
|
|
15010
|
+
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
15035
15011
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
15036
15012
|
}
|
|
15037
15013
|
})];
|
|
@@ -15066,7 +15042,7 @@
|
|
|
15066
15042
|
return [4 /*yield*/, this.graphql.query({
|
|
15067
15043
|
query: CacheStatistics,
|
|
15068
15044
|
variables: null,
|
|
15069
|
-
error: { code: ErrorCodes
|
|
15045
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15070
15046
|
fetchPolicy: 'network-only'
|
|
15071
15047
|
})];
|
|
15072
15048
|
case 1:
|
|
@@ -15090,7 +15066,7 @@
|
|
|
15090
15066
|
return [4 /*yield*/, this.graphql.query({
|
|
15091
15067
|
query: ClearCache,
|
|
15092
15068
|
variables: variables,
|
|
15093
|
-
error: { code: ErrorCodes
|
|
15069
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15094
15070
|
fetchPolicy: 'network-only'
|
|
15095
15071
|
})];
|
|
15096
15072
|
case 1:
|
|
@@ -15291,7 +15267,7 @@
|
|
|
15291
15267
|
};
|
|
15292
15268
|
return ConfigService;
|
|
15293
15269
|
}(BaseGraphqlService));
|
|
15294
|
-
ConfigService.ɵprov =
|
|
15270
|
+
ConfigService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConfigService_Factory() { return new ConfigService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(NetworkService), i0.ɵɵinject(FileService), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
|
|
15295
15271
|
ConfigService.decorators = [
|
|
15296
15272
|
{ type: i0.Injectable, args: [{
|
|
15297
15273
|
providedIn: 'root',
|
|
@@ -15309,9 +15285,9 @@
|
|
|
15309
15285
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
15310
15286
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
15311
15287
|
]; };
|
|
15312
|
-
var templateObject_1$
|
|
15288
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
|
|
15313
15289
|
|
|
15314
|
-
var moment$
|
|
15290
|
+
var moment$4 = momentImported__namespace;
|
|
15315
15291
|
var PlatformService = /** @class */ (function () {
|
|
15316
15292
|
function PlatformService(platform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser) {
|
|
15317
15293
|
this.platform = platform;
|
|
@@ -15486,16 +15462,16 @@
|
|
|
15486
15462
|
}
|
|
15487
15463
|
// config moment lib
|
|
15488
15464
|
try {
|
|
15489
|
-
moment$
|
|
15465
|
+
moment$4.locale(event.lang);
|
|
15490
15466
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
15491
15467
|
}
|
|
15492
15468
|
// If error, fallback to en
|
|
15493
15469
|
catch (err) {
|
|
15494
|
-
moment$
|
|
15470
|
+
moment$4.locale('en');
|
|
15495
15471
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
15496
15472
|
}
|
|
15497
15473
|
// Config date adapter
|
|
15498
|
-
_this.dateAdapter.setLocale(moment$
|
|
15474
|
+
_this.dateAdapter.setLocale(moment$4.locale());
|
|
15499
15475
|
}
|
|
15500
15476
|
});
|
|
15501
15477
|
this.settings.onChange.subscribe(function (data) {
|
|
@@ -15676,7 +15652,7 @@
|
|
|
15676
15652
|
};
|
|
15677
15653
|
return PlatformService;
|
|
15678
15654
|
}());
|
|
15679
|
-
PlatformService.ɵprov =
|
|
15655
|
+
PlatformService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PlatformService_Factory() { return new PlatformService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$1.MomentDateAdapter), i0.ɵɵinject(EntitiesStorage), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(AccountService), i0.ɵɵinject(ConfigService), i0.ɵɵinject(i6.CacheService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(AudioProvider), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(i13.StatusBar, 8), i0.ɵɵinject(i14.Keyboard, 8), i0.ɵɵinject(i10.SplashScreen, 8), i0.ɵɵinject(i16.InAppBrowser, 8)); }, token: PlatformService, providedIn: "root" });
|
|
15680
15656
|
PlatformService.decorators = [
|
|
15681
15657
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
15682
15658
|
];
|
|
@@ -15772,7 +15748,7 @@
|
|
|
15772
15748
|
};
|
|
15773
15749
|
return MatStepperI18n;
|
|
15774
15750
|
}(stepper.MatStepperIntl));
|
|
15775
|
-
MatStepperI18n.ɵprov =
|
|
15751
|
+
MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
15776
15752
|
MatStepperI18n.decorators = [
|
|
15777
15753
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
15778
15754
|
];
|
|
@@ -16001,7 +15977,7 @@
|
|
|
16001
15977
|
ReferentialUtils.isNotEmpty(value));
|
|
16002
15978
|
};
|
|
16003
15979
|
return EntityFilter;
|
|
16004
|
-
}(Entity
|
|
15980
|
+
}(Entity));
|
|
16005
15981
|
var EntityFilterUtils = /** @class */ (function () {
|
|
16006
15982
|
function EntityFilterUtils() {
|
|
16007
15983
|
}
|
|
@@ -16864,7 +16840,7 @@
|
|
|
16864
16840
|
return 1;
|
|
16865
16841
|
}
|
|
16866
16842
|
}
|
|
16867
|
-
var ɵ0$
|
|
16843
|
+
var ɵ0$9 = function (defaultStateSize) { return [
|
|
16868
16844
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
16869
16845
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
16870
16846
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -16872,7 +16848,7 @@
|
|
|
16872
16848
|
var SCALE_OPTIONS_DEFAULT = {
|
|
16873
16849
|
startColor: rgbArrayMap.red,
|
|
16874
16850
|
startStates: [0, 2, 3],
|
|
16875
|
-
startStepsFn: ɵ0$
|
|
16851
|
+
startStepsFn: ɵ0$9
|
|
16876
16852
|
};
|
|
16877
16853
|
/**
|
|
16878
16854
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -16969,19 +16945,19 @@
|
|
|
16969
16945
|
}
|
|
16970
16946
|
return Entity;
|
|
16971
16947
|
}());
|
|
16972
|
-
var FAKE_ENTITIES
|
|
16948
|
+
var FAKE_ENTITIES = [
|
|
16973
16949
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
16974
16950
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
16975
16951
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
16976
16952
|
];
|
|
16977
|
-
function deepCopy
|
|
16953
|
+
function deepCopy(values, size) {
|
|
16978
16954
|
if (isNil(size)) {
|
|
16979
|
-
return (values || FAKE_ENTITIES
|
|
16955
|
+
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
16980
16956
|
}
|
|
16981
16957
|
var result = [];
|
|
16982
16958
|
var i = 1;
|
|
16983
16959
|
while (result.length < size) {
|
|
16984
|
-
result = result.concat((values || FAKE_ENTITIES
|
|
16960
|
+
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
16985
16961
|
var name = entity.name + ' #' + i;
|
|
16986
16962
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
16987
16963
|
}));
|
|
@@ -16991,7 +16967,7 @@
|
|
|
16991
16967
|
var AutocompleteTestPage = /** @class */ (function () {
|
|
16992
16968
|
function AutocompleteTestPage(formBuilder) {
|
|
16993
16969
|
this.formBuilder = formBuilder;
|
|
16994
|
-
this._items = deepCopy
|
|
16970
|
+
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
16995
16971
|
this.$items = new rxjs.BehaviorSubject(undefined);
|
|
16996
16972
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
16997
16973
|
this.memoryHide = false;
|
|
@@ -17036,7 +17012,7 @@
|
|
|
17036
17012
|
});
|
|
17037
17013
|
// From items
|
|
17038
17014
|
this.autocompleteFields.add('entity-items-large', {
|
|
17039
|
-
items: FAKE_ENTITIES
|
|
17015
|
+
items: FAKE_ENTITIES.slice(),
|
|
17040
17016
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
17041
17017
|
displayWith: this.entityToString
|
|
17042
17018
|
});
|
|
@@ -17049,12 +17025,12 @@
|
|
|
17049
17025
|
var _this = this;
|
|
17050
17026
|
return __generator(this, function (_a) {
|
|
17051
17027
|
data = {
|
|
17052
|
-
entity: deepCopy
|
|
17028
|
+
entity: deepCopy(FAKE_ENTITIES)[1],
|
|
17053
17029
|
// This item is NOT in the items list => i should be displayed anyway
|
|
17054
17030
|
missingEntity: {
|
|
17055
17031
|
id: -1, label: '??', name: 'Missing item'
|
|
17056
17032
|
},
|
|
17057
|
-
disableEntity: deepCopy
|
|
17033
|
+
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
17058
17034
|
};
|
|
17059
17035
|
this.form.setValue(data);
|
|
17060
17036
|
// Load observables
|
|
@@ -17243,13 +17219,13 @@
|
|
|
17243
17219
|
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_TESTING_PAGES,] }] }
|
|
17244
17220
|
]; };
|
|
17245
17221
|
|
|
17246
|
-
var moment$
|
|
17222
|
+
var moment$5 = momentImported__namespace;
|
|
17247
17223
|
var SwipeTestPage = /** @class */ (function () {
|
|
17248
17224
|
function SwipeTestPage(formBuilder, dateFormatPipe) {
|
|
17249
17225
|
this.formBuilder = formBuilder;
|
|
17250
17226
|
this.dateFormatPipe = dateFormatPipe;
|
|
17251
17227
|
this.$dates = new rxjs.BehaviorSubject(undefined);
|
|
17252
|
-
this._today = moment$
|
|
17228
|
+
this._today = moment$5().startOf('day');
|
|
17253
17229
|
this.form = formBuilder.group({
|
|
17254
17230
|
empty: [null, i1.Validators.required],
|
|
17255
17231
|
date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
|
|
@@ -17263,7 +17239,7 @@
|
|
|
17263
17239
|
var _this = this;
|
|
17264
17240
|
var dates = [];
|
|
17265
17241
|
for (var d = 0; d < 7; d++) {
|
|
17266
|
-
dates[d] = moment$
|
|
17242
|
+
dates[d] = moment$5(this._today).add(d - 3, 'day');
|
|
17267
17243
|
}
|
|
17268
17244
|
this.$dates.next(dates);
|
|
17269
17245
|
this.loadData();
|
|
@@ -17935,7 +17911,7 @@
|
|
|
17935
17911
|
return FormArrayHelper;
|
|
17936
17912
|
}());
|
|
17937
17913
|
|
|
17938
|
-
var moment = momentImported__namespace;
|
|
17914
|
+
var moment$6 = momentImported__namespace;
|
|
17939
17915
|
var DateTimeTestPage = /** @class */ (function () {
|
|
17940
17916
|
function DateTimeTestPage(platform, formBuilder, cd) {
|
|
17941
17917
|
this.platform = platform;
|
|
@@ -17970,7 +17946,7 @@
|
|
|
17970
17946
|
var now, data;
|
|
17971
17947
|
var _this = this;
|
|
17972
17948
|
return __generator(this, function (_a) {
|
|
17973
|
-
now = moment();
|
|
17949
|
+
now = moment$6();
|
|
17974
17950
|
data = {
|
|
17975
17951
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
17976
17952
|
enable: toDateISOString(now),
|
|
@@ -18034,23 +18010,23 @@
|
|
|
18034
18010
|
{ type: i0.ChangeDetectorRef }
|
|
18035
18011
|
]; };
|
|
18036
18012
|
|
|
18037
|
-
var Entity = /** @class */ (function () {
|
|
18013
|
+
var Entity$2 = /** @class */ (function () {
|
|
18038
18014
|
function Entity() {
|
|
18039
18015
|
}
|
|
18040
18016
|
return Entity;
|
|
18041
18017
|
}());
|
|
18042
|
-
var FAKE_ENTITIES = [
|
|
18018
|
+
var FAKE_ENTITIES$1 = [
|
|
18043
18019
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
18044
18020
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
18045
18021
|
{ id: 3, label: 'CCC', name: 'Item C' }
|
|
18046
18022
|
];
|
|
18047
|
-
function deepCopy(values) {
|
|
18048
|
-
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
18023
|
+
function deepCopy$1(values) {
|
|
18024
|
+
return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
|
|
18049
18025
|
}
|
|
18050
18026
|
var ChipsTestPage = /** @class */ (function () {
|
|
18051
18027
|
function ChipsTestPage(formBuilder) {
|
|
18052
18028
|
this.formBuilder = formBuilder;
|
|
18053
|
-
this._items = deepCopy(FAKE_ENTITIES);
|
|
18029
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1);
|
|
18054
18030
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
18055
18031
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
18056
18032
|
this.form = formBuilder.group({
|
|
@@ -18070,7 +18046,7 @@
|
|
|
18070
18046
|
});
|
|
18071
18047
|
// From items
|
|
18072
18048
|
this.autocompleteFields.add('entity-items', {
|
|
18073
|
-
items: FAKE_ENTITIES.slice(),
|
|
18049
|
+
items: FAKE_ENTITIES$1.slice(),
|
|
18074
18050
|
attributes: ['label', 'name'],
|
|
18075
18051
|
displayWith: this.entityToString
|
|
18076
18052
|
});
|
|
@@ -18093,8 +18069,8 @@
|
|
|
18093
18069
|
data = {
|
|
18094
18070
|
entity: [],
|
|
18095
18071
|
// THis item is NOT in the items list => i should be displayed anyway
|
|
18096
|
-
entityInitial: FAKE_ENTITIES.slice(1, 2),
|
|
18097
|
-
disableEntity: FAKE_ENTITIES.slice(1, 2)
|
|
18072
|
+
entityInitial: FAKE_ENTITIES$1.slice(1, 2),
|
|
18073
|
+
disableEntity: FAKE_ENTITIES$1.slice(1, 2)
|
|
18098
18074
|
};
|
|
18099
18075
|
this.form.setValue(data);
|
|
18100
18076
|
return [2 /*return*/];
|
|
@@ -18104,7 +18080,7 @@
|
|
|
18104
18080
|
ChipsTestPage.prototype.loadItems = function () {
|
|
18105
18081
|
return __awaiter(this, void 0, void 0, function () {
|
|
18106
18082
|
return __generator(this, function (_a) {
|
|
18107
|
-
this._$items.next(deepCopy(FAKE_ENTITIES));
|
|
18083
|
+
this._$items.next(deepCopy$1(FAKE_ENTITIES$1));
|
|
18108
18084
|
return [2 /*return*/];
|
|
18109
18085
|
});
|
|
18110
18086
|
});
|
|
@@ -18141,7 +18117,7 @@
|
|
|
18141
18117
|
{ type: i1.FormBuilder }
|
|
18142
18118
|
]; };
|
|
18143
18119
|
|
|
18144
|
-
var routes
|
|
18120
|
+
var routes = [
|
|
18145
18121
|
{
|
|
18146
18122
|
path: '',
|
|
18147
18123
|
pathMatch: 'full',
|
|
@@ -18191,7 +18167,7 @@
|
|
|
18191
18167
|
i1.ReactiveFormsModule,
|
|
18192
18168
|
SharedMaterialModule,
|
|
18193
18169
|
i1$2.TranslateModule.forChild(),
|
|
18194
|
-
i3.RouterModule.forChild(routes
|
|
18170
|
+
i3.RouterModule.forChild(routes)
|
|
18195
18171
|
],
|
|
18196
18172
|
declarations: [
|
|
18197
18173
|
MaterialTestingPage,
|
|
@@ -19266,7 +19242,7 @@
|
|
|
19266
19242
|
};
|
|
19267
19243
|
return UserSettingsValidatorService;
|
|
19268
19244
|
}(AppValidatorService));
|
|
19269
|
-
UserSettingsValidatorService.ɵprov =
|
|
19245
|
+
UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
19270
19246
|
UserSettingsValidatorService.decorators = [
|
|
19271
19247
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
19272
19248
|
];
|
|
@@ -19314,7 +19290,7 @@
|
|
|
19314
19290
|
};
|
|
19315
19291
|
return AccountValidatorService;
|
|
19316
19292
|
}(AppValidatorService));
|
|
19317
|
-
AccountValidatorService.ɵprov =
|
|
19293
|
+
AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
|
|
19318
19294
|
AccountValidatorService.decorators = [
|
|
19319
19295
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
19320
19296
|
];
|
|
@@ -19906,7 +19882,7 @@
|
|
|
19906
19882
|
};
|
|
19907
19883
|
return LocalSettingsValidatorService;
|
|
19908
19884
|
}(AppValidatorService));
|
|
19909
|
-
LocalSettingsValidatorService.ɵprov =
|
|
19885
|
+
LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
|
|
19910
19886
|
LocalSettingsValidatorService.decorators = [
|
|
19911
19887
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
19912
19888
|
];
|
|
@@ -20680,7 +20656,7 @@
|
|
|
20680
20656
|
};
|
|
20681
20657
|
return IsOnFieldModePipe;
|
|
20682
20658
|
}());
|
|
20683
|
-
IsOnFieldModePipe.ɵprov =
|
|
20659
|
+
IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
20684
20660
|
IsOnFieldModePipe.decorators = [
|
|
20685
20661
|
{ type: i0.Pipe, args: [{
|
|
20686
20662
|
name: 'isOnField'
|
|
@@ -20695,7 +20671,7 @@
|
|
|
20695
20671
|
};
|
|
20696
20672
|
return IsNotOnFieldModePipe;
|
|
20697
20673
|
}());
|
|
20698
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
20674
|
+
IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
20699
20675
|
IsNotOnFieldModePipe.decorators = [
|
|
20700
20676
|
{ type: i0.Pipe, args: [{
|
|
20701
20677
|
name: 'isNotOnField'
|
|
@@ -20713,7 +20689,7 @@
|
|
|
20713
20689
|
};
|
|
20714
20690
|
return PersonToStringPipe;
|
|
20715
20691
|
}());
|
|
20716
|
-
PersonToStringPipe.ɵprov =
|
|
20692
|
+
PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
20717
20693
|
PersonToStringPipe.decorators = [
|
|
20718
20694
|
{ type: i0.Pipe, args: [{
|
|
20719
20695
|
name: 'personToString'
|
|
@@ -20948,7 +20924,7 @@
|
|
|
20948
20924
|
};
|
|
20949
20925
|
return IsLoginAccountPipe;
|
|
20950
20926
|
}());
|
|
20951
|
-
IsLoginAccountPipe.ɵprov =
|
|
20927
|
+
IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
20952
20928
|
IsLoginAccountPipe.decorators = [
|
|
20953
20929
|
{ type: i0.Pipe, args: [{
|
|
20954
20930
|
name: 'isLogin'
|
|
@@ -20963,7 +20939,7 @@
|
|
|
20963
20939
|
};
|
|
20964
20940
|
return AccountToStringPipe;
|
|
20965
20941
|
}());
|
|
20966
|
-
AccountToStringPipe.ɵprov =
|
|
20942
|
+
AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
20967
20943
|
AccountToStringPipe.decorators = [
|
|
20968
20944
|
{ type: i0.Pipe, args: [{
|
|
20969
20945
|
name: 'accountToString'
|
|
@@ -20981,7 +20957,7 @@
|
|
|
20981
20957
|
};
|
|
20982
20958
|
return DepartmentToStringPipe;
|
|
20983
20959
|
}());
|
|
20984
|
-
DepartmentToStringPipe.ɵprov =
|
|
20960
|
+
DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
20985
20961
|
DepartmentToStringPipe.decorators = [
|
|
20986
20962
|
{ type: i0.Pipe, args: [{
|
|
20987
20963
|
name: 'departmentToString'
|
|
@@ -21016,7 +20992,7 @@
|
|
|
21016
20992
|
};
|
|
21017
20993
|
return MenuService;
|
|
21018
20994
|
}());
|
|
21019
|
-
MenuService.ɵprov =
|
|
20995
|
+
MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
21020
20996
|
MenuService.decorators = [
|
|
21021
20997
|
{ type: i0.Injectable, args: [{
|
|
21022
20998
|
providedIn: 'root'
|
|
@@ -21591,7 +21567,7 @@
|
|
|
21591
21567
|
};
|
|
21592
21568
|
return AuthGuardService;
|
|
21593
21569
|
}());
|
|
21594
|
-
AuthGuardService.ɵprov =
|
|
21570
|
+
AuthGuardService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AuthGuardService_Factory() { return new AuthGuardService(i0.ɵɵinject(AccountService), i0.ɵɵinject(i1$5.ModalController), i0.ɵɵinject(i3.Router), i0.ɵɵinject(ENVIRONMENT)); }, token: AuthGuardService, providedIn: "root" });
|
|
21595
21571
|
AuthGuardService.decorators = [
|
|
21596
21572
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21597
21573
|
];
|
|
@@ -21642,7 +21618,7 @@
|
|
|
21642
21618
|
query: query,
|
|
21643
21619
|
variables: { id: id },
|
|
21644
21620
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
21645
|
-
error: { code: ErrorCodes
|
|
21621
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
21646
21622
|
})
|
|
21647
21623
|
.pipe(operators.map(function (_a) {
|
|
21648
21624
|
var data = _a.data;
|
|
@@ -21664,7 +21640,7 @@
|
|
|
21664
21640
|
query: query,
|
|
21665
21641
|
variables: { id: id },
|
|
21666
21642
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
21667
|
-
error: { code: ErrorCodes
|
|
21643
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
21668
21644
|
})];
|
|
21669
21645
|
case 1:
|
|
21670
21646
|
data = (_a.sent()).data;
|
|
@@ -21700,7 +21676,7 @@
|
|
|
21700
21676
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
21701
21677
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
21702
21678
|
variables: variables,
|
|
21703
|
-
error: { code: ErrorCodes
|
|
21679
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
21704
21680
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
21705
21681
|
})
|
|
21706
21682
|
.pipe(operators.map(function (_a) {
|
|
@@ -21742,7 +21718,7 @@
|
|
|
21742
21718
|
return [4 /*yield*/, this.graphql.query({
|
|
21743
21719
|
query: query,
|
|
21744
21720
|
variables: variables,
|
|
21745
|
-
error: { code: ErrorCodes
|
|
21721
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
21746
21722
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
21747
21723
|
})];
|
|
21748
21724
|
case 1:
|
|
@@ -21800,7 +21776,7 @@
|
|
|
21800
21776
|
variables: {
|
|
21801
21777
|
data: json
|
|
21802
21778
|
},
|
|
21803
|
-
error: { code: ErrorCodes
|
|
21779
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
21804
21780
|
update: function (proxy, _a) {
|
|
21805
21781
|
var data = _a.data;
|
|
21806
21782
|
var savedEntities = data && data.data;
|
|
@@ -21867,7 +21843,7 @@
|
|
|
21867
21843
|
variables: {
|
|
21868
21844
|
data: json
|
|
21869
21845
|
},
|
|
21870
|
-
error: { code: ErrorCodes
|
|
21846
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
21871
21847
|
update: function (cache, _a) {
|
|
21872
21848
|
var data = _a.data;
|
|
21873
21849
|
// Update entity
|
|
@@ -21925,7 +21901,7 @@
|
|
|
21925
21901
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
21926
21902
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
21927
21903
|
variables: { ids: ids },
|
|
21928
|
-
error: { code: ErrorCodes
|
|
21904
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
21929
21905
|
update: function (cache, res) {
|
|
21930
21906
|
// Remove from cache
|
|
21931
21907
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -21978,7 +21954,7 @@
|
|
|
21978
21954
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
21979
21955
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
21980
21956
|
variables: { id: id },
|
|
21981
|
-
error: { code: ErrorCodes
|
|
21957
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
21982
21958
|
update: function (proxy, res) {
|
|
21983
21959
|
// Remove from cache
|
|
21984
21960
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -22017,7 +21993,7 @@
|
|
|
22017
21993
|
query: opts && opts.query || this.subscriptions.listenChanges,
|
|
22018
21994
|
variables: variables,
|
|
22019
21995
|
error: {
|
|
22020
|
-
code: ErrorCodes
|
|
21996
|
+
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
22021
21997
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
22022
21998
|
}
|
|
22023
21999
|
})
|
|
@@ -22206,7 +22182,7 @@
|
|
|
22206
22182
|
if (this._debug)
|
|
22207
22183
|
invalidRows.forEach(this.logRowErrors);
|
|
22208
22184
|
// Stop with an error
|
|
22209
|
-
throw { code: ErrorCodes
|
|
22185
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
22210
22186
|
}
|
|
22211
22187
|
this._editingRowCount = 0;
|
|
22212
22188
|
data = void 0;
|
|
@@ -23144,11 +23120,11 @@
|
|
|
23144
23120
|
switch (_d.label) {
|
|
23145
23121
|
case 0:
|
|
23146
23122
|
if (this.readOnly) {
|
|
23147
|
-
throw { code: ErrorCodes
|
|
23123
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
23148
23124
|
}
|
|
23149
23125
|
this.resetError();
|
|
23150
23126
|
if (!this.confirmEditCreate()) {
|
|
23151
|
-
throw { code: ErrorCodes
|
|
23127
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
23152
23128
|
}
|
|
23153
23129
|
editedRowId = this.keepEditedRowOnSave && ((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.id);
|
|
23154
23130
|
_d.label = 1;
|
|
@@ -23312,7 +23288,7 @@
|
|
|
23312
23288
|
switch (_d.label) {
|
|
23313
23289
|
case 0:
|
|
23314
23290
|
if (this.readOnly) {
|
|
23315
|
-
throw { code: ErrorCodes
|
|
23291
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
23316
23292
|
}
|
|
23317
23293
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
23318
23294
|
return [2 /*return*/, 0]; // SKip
|
|
@@ -24925,7 +24901,7 @@
|
|
|
24925
24901
|
case 3:
|
|
24926
24902
|
data = _a.sent();
|
|
24927
24903
|
if (!data)
|
|
24928
|
-
throw { code: ErrorCodes
|
|
24904
|
+
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
24929
24905
|
this._usageMode = this.computeUsageMode(data);
|
|
24930
24906
|
return [4 /*yield*/, this.onEntityLoaded(data, opts)];
|
|
24931
24907
|
case 4:
|
|
@@ -25605,7 +25581,7 @@
|
|
|
25605
25581
|
}
|
|
25606
25582
|
};
|
|
25607
25583
|
return UserEvent;
|
|
25608
|
-
}(Entity
|
|
25584
|
+
}(Entity));
|
|
25609
25585
|
exports.UserEvent = UserEvent_1 = __decorate([
|
|
25610
25586
|
EntityClass({ typename: 'UserEventVO' })
|
|
25611
25587
|
], exports.UserEvent);
|
|
@@ -25647,10 +25623,10 @@
|
|
|
25647
25623
|
exports.UserEventFilter = __decorate([
|
|
25648
25624
|
EntityClass({ typename: 'UserEventVO' })
|
|
25649
25625
|
], exports.UserEventFilter);
|
|
25650
|
-
var SaveQuery = core.gql(templateObject_1$
|
|
25651
|
-
var LoadAllQuery = core.gql(templateObject_2$
|
|
25652
|
-
var DeleteByIdsMutation = core.gql(templateObject_3$
|
|
25653
|
-
var LoadAllWithContentQuery = core.gql(templateObject_4$
|
|
25626
|
+
var SaveQuery = core.gql(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
|
|
25627
|
+
var LoadAllQuery = core.gql(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"], ["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"])), SocialFragments.lightUserEvent);
|
|
25628
|
+
var DeleteByIdsMutation = core.gql(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"], ["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"])));
|
|
25629
|
+
var LoadAllWithContentQuery = core.gql(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
|
|
25654
25630
|
var UserEventService = /** @class */ (function (_super) {
|
|
25655
25631
|
__extends(UserEventService, _super);
|
|
25656
25632
|
function UserEventService(graphql, accountService, network, translate, toastController, environment) {
|
|
@@ -25939,7 +25915,7 @@
|
|
|
25939
25915
|
}
|
|
25940
25916
|
// Serialize content into string
|
|
25941
25917
|
else if (typeof data === 'object') {
|
|
25942
|
-
if (data instanceof Entity
|
|
25918
|
+
if (data instanceof Entity) {
|
|
25943
25919
|
return JSON.stringify(data.asObject({ keepTypename: true, keepLocalId: true, minify: false }));
|
|
25944
25920
|
}
|
|
25945
25921
|
else {
|
|
@@ -25971,7 +25947,7 @@
|
|
|
25971
25947
|
};
|
|
25972
25948
|
return UserEventService;
|
|
25973
25949
|
}(BaseGraphqlService));
|
|
25974
|
-
UserEventService.ɵprov =
|
|
25950
|
+
UserEventService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserEventService_Factory() { return new UserEventService(i0.ɵɵinject(GraphqlService), i0.ɵɵinject(AccountService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(ENVIRONMENT)); }, token: UserEventService, providedIn: "root" });
|
|
25975
25951
|
UserEventService.decorators = [
|
|
25976
25952
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
25977
25953
|
];
|
|
@@ -25983,7 +25959,7 @@
|
|
|
25983
25959
|
{ type: i1$5.ToastController },
|
|
25984
25960
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
25985
25961
|
]; };
|
|
25986
|
-
var templateObject_1$
|
|
25962
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
|
|
25987
25963
|
|
|
25988
25964
|
var ICONS_MAP = {
|
|
25989
25965
|
DEBUG_DATA: { matIcon: 'bug_report' },
|
|
@@ -26244,16 +26220,16 @@
|
|
|
26244
26220
|
], exports.PersonFilter);
|
|
26245
26221
|
|
|
26246
26222
|
var PersonFragments = {
|
|
26247
|
-
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 }"])))
|
|
26223
|
+
person: core.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"], ["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"])))
|
|
26248
26224
|
};
|
|
26249
26225
|
// Load persons query
|
|
26250
26226
|
var PersonQueries = {
|
|
26251
|
-
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),
|
|
26252
|
-
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)
|
|
26227
|
+
loadAll: core.gql(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""], ["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
|
|
26228
|
+
loadAllWithTotal: core.gql(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""], ["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""])), PersonFragments.person)
|
|
26253
26229
|
};
|
|
26254
26230
|
var PersonMutations = {
|
|
26255
|
-
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),
|
|
26256
|
-
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 }"])))
|
|
26231
|
+
saveAll: core.gql(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n mutation savePersons($data:[PersonVOInput]){\n data: savePersons(persons: $data){\n ...PersonFragment\n }\n }\n ", ""], ["\n mutation savePersons($data:[PersonVOInput]){\n data: savePersons(persons: $data){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
|
|
26232
|
+
deleteAll: core.gql(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"], ["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"])))
|
|
26257
26233
|
};
|
|
26258
26234
|
var PersonService = /** @class */ (function (_super_1) {
|
|
26259
26235
|
__extends(PersonService, _super_1);
|
|
@@ -26376,7 +26352,7 @@
|
|
|
26376
26352
|
};
|
|
26377
26353
|
return PersonService;
|
|
26378
26354
|
}(BaseEntityService));
|
|
26379
|
-
PersonService.ɵprov =
|
|
26355
|
+
PersonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonService_Factory() { return new PersonService(i0.ɵɵinject(GraphqlService), i0.ɵɵinject(PlatformService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(EntitiesStorage)); }, token: PersonService, providedIn: "root" });
|
|
26380
26356
|
PersonService.decorators = [
|
|
26381
26357
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
26382
26358
|
];
|
|
@@ -26386,7 +26362,7 @@
|
|
|
26386
26362
|
{ type: NetworkService },
|
|
26387
26363
|
{ type: EntitiesStorage }
|
|
26388
26364
|
]; };
|
|
26389
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
26365
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
|
|
26390
26366
|
|
|
26391
26367
|
var PersonValidatorService = /** @class */ (function () {
|
|
26392
26368
|
function PersonValidatorService(formBuilder, accountValidatorService) {
|
|
@@ -26409,7 +26385,7 @@
|
|
|
26409
26385
|
};
|
|
26410
26386
|
return PersonValidatorService;
|
|
26411
26387
|
}());
|
|
26412
|
-
PersonValidatorService.ɵprov =
|
|
26388
|
+
PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
|
|
26413
26389
|
PersonValidatorService.decorators = [
|
|
26414
26390
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
26415
26391
|
];
|
|
@@ -26583,7 +26559,7 @@
|
|
|
26583
26559
|
],
|
|
26584
26560
|
animations: [slideUpDownAnimation],
|
|
26585
26561
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
26586
|
-
styles: [".mat-expansion-panel{margin-bottom:5px}.mat-expansion-panel .form-container mat-form-field{width:100%}.mat-expansion-panel mat-action-row ion-label{line-height:36px}.table-container{height:
|
|
26562
|
+
styles: [".mat-expansion-panel{margin-bottom:5px}.mat-expansion-panel .form-container mat-form-field{width:100%}.mat-expansion-panel mat-action-row ion-label{line-height:36px}.table-container{height:100%}.mat-table .mat-cell .avatar{height:40px;width:40px;margin:2px 0 0;background-size:cover;background-repeat:no-repeat;background-position:50%}.mat-table .mat-column-avatar{min-width:50px}.mat-table .mat-column-profile{min-width:110px}.mat-table .mat-column-status{min-width:130px}.mat-table .mat-column-department{min-width:150px}"]
|
|
26587
26563
|
},] }
|
|
26588
26564
|
];
|
|
26589
26565
|
UsersPage.ctorParameters = function () { return [
|
|
@@ -26632,16 +26608,16 @@
|
|
|
26632
26608
|
];
|
|
26633
26609
|
AdminModule.ctorParameters = function () { return []; };
|
|
26634
26610
|
|
|
26635
|
-
var ɵ0 = {
|
|
26611
|
+
var ɵ0$a = {
|
|
26636
26612
|
profile: 'ADMIN'
|
|
26637
26613
|
};
|
|
26638
|
-
var routes = [
|
|
26614
|
+
var routes$1 = [
|
|
26639
26615
|
{
|
|
26640
26616
|
path: 'users',
|
|
26641
26617
|
pathMatch: 'full',
|
|
26642
26618
|
component: UsersPage,
|
|
26643
26619
|
canActivate: [AuthGuardService],
|
|
26644
|
-
data: ɵ0
|
|
26620
|
+
data: ɵ0$a
|
|
26645
26621
|
}
|
|
26646
26622
|
];
|
|
26647
26623
|
var AdminRoutingModule = /** @class */ (function () {
|
|
@@ -26654,13 +26630,13 @@
|
|
|
26654
26630
|
imports: [
|
|
26655
26631
|
SharedRoutingModule,
|
|
26656
26632
|
AdminModule,
|
|
26657
|
-
i3.RouterModule.forChild(routes)
|
|
26633
|
+
i3.RouterModule.forChild(routes$1)
|
|
26658
26634
|
],
|
|
26659
26635
|
exports: [i3.RouterModule]
|
|
26660
26636
|
},] }
|
|
26661
26637
|
];
|
|
26662
26638
|
|
|
26663
|
-
var ErrorCodes = {
|
|
26639
|
+
var ErrorCodes$2 = {
|
|
26664
26640
|
LOAD_PERSONS_ERROR: 100,
|
|
26665
26641
|
SAVE_PERSONS_ERROR: 101,
|
|
26666
26642
|
DELETE_PERSONS_ERROR: 102,
|
|
@@ -26747,7 +26723,7 @@
|
|
|
26747
26723
|
exports.EntitiesService = EntitiesService;
|
|
26748
26724
|
exports.EntitiesStorage = EntitiesStorage;
|
|
26749
26725
|
exports.EntitiesTableDataSource = EntitiesTableDataSource;
|
|
26750
|
-
exports.Entity = Entity
|
|
26726
|
+
exports.Entity = Entity;
|
|
26751
26727
|
exports.EntityClass = EntityClass;
|
|
26752
26728
|
exports.EntityClasses = EntityClasses;
|
|
26753
26729
|
exports.EntityFilter = EntityFilter;
|
|
@@ -26755,13 +26731,13 @@
|
|
|
26755
26731
|
exports.EntityStore = EntityStore;
|
|
26756
26732
|
exports.EntityUtils = EntityUtils;
|
|
26757
26733
|
exports.Environment = Environment;
|
|
26758
|
-
exports.ErrorCodes = ErrorCodes;
|
|
26734
|
+
exports.ErrorCodes = ErrorCodes$2;
|
|
26759
26735
|
exports.FileService = FileService;
|
|
26760
26736
|
exports.FormArrayHelper = FormArrayHelper;
|
|
26761
26737
|
exports.FormButtonsBarComponent = FormButtonsBarComponent;
|
|
26762
26738
|
exports.FormButtonsBarToken = FormButtonsBarToken;
|
|
26763
26739
|
exports.FormFieldValuesHolder = FormFieldValuesHolder;
|
|
26764
|
-
exports.Fragments = Fragments;
|
|
26740
|
+
exports.Fragments = Fragments$1;
|
|
26765
26741
|
exports.GraphqlService = GraphqlService;
|
|
26766
26742
|
exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
|
|
26767
26743
|
exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
|