@sumaris-net/ngx-components 0.11.9 → 0.11.10
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 +267 -243
- 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/table/table.class.js +3 -3
- package/esm2015/src/app/shared/functions.js +1 -1
- package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.js +1 -1
- package/fesm2015/ngx-sumaris-components.js +269 -255
- 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/table/table.class.d.ts +1 -0
|
@@ -26,11 +26,34 @@
|
|
|
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);
|
|
29
36
|
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);
|
|
30
44
|
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);
|
|
31
50
|
var QueueLink__default = /*#__PURE__*/_interopDefaultLegacy(QueueLink);
|
|
32
51
|
var SerializingLink__default = /*#__PURE__*/_interopDefaultLegacy(SerializingLink);
|
|
33
52
|
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);
|
|
34
57
|
|
|
35
58
|
var ENVIRONMENT = new i0.InjectionToken('ENV');
|
|
36
59
|
var Environment = /** @class */ (function () {
|
|
@@ -1100,19 +1123,19 @@
|
|
|
1100
1123
|
};
|
|
1101
1124
|
return MatAutocompleteConfigHolder;
|
|
1102
1125
|
}());
|
|
1103
|
-
var DEFAULT_VALUE_ACCESSOR = {
|
|
1126
|
+
var DEFAULT_VALUE_ACCESSOR$6 = {
|
|
1104
1127
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
1105
1128
|
useExisting: i0.forwardRef(function () { return MatAutocompleteField; }),
|
|
1106
1129
|
multi: true
|
|
1107
1130
|
};
|
|
1108
|
-
var noop = function () { };
|
|
1109
|
-
var ɵ0 = noop;
|
|
1131
|
+
var noop$7 = function () { };
|
|
1132
|
+
var ɵ0$a = noop$7;
|
|
1110
1133
|
var MatAutocompleteField = /** @class */ (function () {
|
|
1111
1134
|
function MatAutocompleteField(cd, formGroupDir) {
|
|
1112
1135
|
this.cd = cd;
|
|
1113
1136
|
this.formGroupDir = formGroupDir;
|
|
1114
|
-
this._onChangeCallback = noop;
|
|
1115
|
-
this._onTouchedCallback = noop;
|
|
1137
|
+
this._onChangeCallback = noop$7;
|
|
1138
|
+
this._onTouchedCallback = noop$7;
|
|
1116
1139
|
this._subscription = new rxjs.Subscription();
|
|
1117
1140
|
this._filter$ = new rxjs.BehaviorSubject(undefined);
|
|
1118
1141
|
this._reload$ = new rxjs.Subject();
|
|
@@ -1688,7 +1711,7 @@
|
|
|
1688
1711
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
1689
1712
|
selector: 'mat-autocomplete-field',
|
|
1690
1713
|
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]=\"autofocus\"\n [tabindex]=\"_tabindex\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (click)=\"onClick.emit($event)\"\n (blur)=\"onBlur.emit($event)\"\n (focusin)=\"filterInputTextFocusInEvent($event)\"\n (focusout)=\"filterInputTextFocusOutEvent($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: { search: formControl.value, withAccent: highlightAccent }\"></ion-text>\n </ion-col>\n </ion-row>\n </mat-option>\n\n <!-- More item -->\n <mat-option *ngIf=\"_moreItemsCount\" (ngInit)=\"_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",
|
|
1691
|
-
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
1714
|
+
providers: [DEFAULT_VALUE_ACCESSOR$6],
|
|
1692
1715
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1693
1716
|
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}"]
|
|
1694
1717
|
},] }
|
|
@@ -1763,7 +1786,7 @@
|
|
|
1763
1786
|
};
|
|
1764
1787
|
return DateFormatPipe;
|
|
1765
1788
|
}());
|
|
1766
|
-
DateFormatPipe.ɵprov =
|
|
1789
|
+
DateFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DateFormatPipe_Factory() { return new DateFormatPipe(i0__namespace.ɵɵinject(i1__namespace.MomentDateAdapter), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: DateFormatPipe, providedIn: "root" });
|
|
1767
1790
|
DateFormatPipe.decorators = [
|
|
1768
1791
|
{ type: i0.Pipe, args: [{
|
|
1769
1792
|
name: 'dateFormat'
|
|
@@ -1775,7 +1798,7 @@
|
|
|
1775
1798
|
{ type: i1$2.TranslateService }
|
|
1776
1799
|
]; };
|
|
1777
1800
|
|
|
1778
|
-
var moment = momentImported__namespace;
|
|
1801
|
+
var moment$6 = momentImported__namespace;
|
|
1779
1802
|
var DateDiffDurationPipe = /** @class */ (function () {
|
|
1780
1803
|
function DateDiffDurationPipe(dateAdapter, translate) {
|
|
1781
1804
|
var _this = this;
|
|
@@ -1792,10 +1815,10 @@
|
|
|
1792
1815
|
return this.format(startDate, endDate);
|
|
1793
1816
|
};
|
|
1794
1817
|
DateDiffDurationPipe.prototype.format = function (startDate, endDate) {
|
|
1795
|
-
var duration = moment.duration(endDate.diff(startDate));
|
|
1818
|
+
var duration = moment$6.duration(endDate.diff(startDate));
|
|
1796
1819
|
if (duration.asMinutes() < 0)
|
|
1797
1820
|
return '';
|
|
1798
|
-
var timeDuration = moment(0)
|
|
1821
|
+
var timeDuration = moment$6(0)
|
|
1799
1822
|
.hour(duration.hours())
|
|
1800
1823
|
.minute(duration.minutes());
|
|
1801
1824
|
var days = Math.floor(duration.asDays());
|
|
@@ -1803,7 +1826,7 @@
|
|
|
1803
1826
|
};
|
|
1804
1827
|
return DateDiffDurationPipe;
|
|
1805
1828
|
}());
|
|
1806
|
-
DateDiffDurationPipe.ɵprov =
|
|
1829
|
+
DateDiffDurationPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DateDiffDurationPipe_Factory() { return new DateDiffDurationPipe(i0__namespace.ɵɵinject(i1__namespace$2.DateAdapter), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: DateDiffDurationPipe, providedIn: "root" });
|
|
1807
1830
|
DateDiffDurationPipe.decorators = [
|
|
1808
1831
|
{ type: i0.Pipe, args: [{
|
|
1809
1832
|
name: 'dateDiffDuration'
|
|
@@ -1825,7 +1848,7 @@
|
|
|
1825
1848
|
};
|
|
1826
1849
|
return DateFromNowPipe;
|
|
1827
1850
|
}());
|
|
1828
|
-
DateFromNowPipe.ɵprov =
|
|
1851
|
+
DateFromNowPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0__namespace.ɵɵinject(i1__namespace.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
|
|
1829
1852
|
DateFromNowPipe.decorators = [
|
|
1830
1853
|
{ type: i0.Pipe, args: [{
|
|
1831
1854
|
name: 'dateFromNow'
|
|
@@ -1894,7 +1917,7 @@
|
|
|
1894
1917
|
value *= -1;
|
|
1895
1918
|
}
|
|
1896
1919
|
}
|
|
1897
|
-
var degrees = roundFloat(value, opts.maxDecimals).toString();
|
|
1920
|
+
var degrees = roundFloat$1(value, opts.maxDecimals).toString();
|
|
1898
1921
|
// Add sign
|
|
1899
1922
|
var sign = negative ? '-' : '+';
|
|
1900
1923
|
if (opts.placeholderChar) {
|
|
@@ -1945,7 +1968,7 @@
|
|
|
1945
1968
|
}
|
|
1946
1969
|
var degrees = Math.trunc(value);
|
|
1947
1970
|
var minutes = Math.trunc((value - degrees) * 60);
|
|
1948
|
-
var seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
|
|
1971
|
+
var seconds = roundFloat$1(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
|
|
1949
1972
|
while (seconds >= 60) {
|
|
1950
1973
|
seconds -= 60;
|
|
1951
1974
|
minutes += 1;
|
|
@@ -2013,7 +2036,7 @@
|
|
|
2013
2036
|
}
|
|
2014
2037
|
}
|
|
2015
2038
|
var degrees = Math.trunc(value);
|
|
2016
|
-
var minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
|
|
2039
|
+
var minutes = roundFloat$1((value - degrees) * 60, opts.maxDecimals);
|
|
2017
2040
|
while (minutes >= 60) {
|
|
2018
2041
|
minutes -= 60;
|
|
2019
2042
|
degrees += 1;
|
|
@@ -2064,15 +2087,15 @@
|
|
|
2064
2087
|
return NaN;
|
|
2065
2088
|
}
|
|
2066
2089
|
if (pattern === 'DD')
|
|
2067
|
-
return roundFloat(degrees, maxDecimals);
|
|
2090
|
+
return roundFloat$1(degrees, maxDecimals);
|
|
2068
2091
|
var minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
|
|
2069
2092
|
var seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
|
|
2070
2093
|
var direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
|
|
2071
2094
|
var sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
|
|
2072
2095
|
degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
|
|
2073
|
-
return roundFloat(degrees, maxDecimals);
|
|
2096
|
+
return roundFloat$1(degrees, maxDecimals);
|
|
2074
2097
|
}
|
|
2075
|
-
function roundFloat(input, maxDecimals) {
|
|
2098
|
+
function roundFloat$1(input, maxDecimals) {
|
|
2076
2099
|
if (maxDecimals > 0) {
|
|
2077
2100
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
2078
2101
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -2095,7 +2118,7 @@
|
|
|
2095
2118
|
};
|
|
2096
2119
|
return LatLongFormatPipe;
|
|
2097
2120
|
}());
|
|
2098
|
-
LatLongFormatPipe.ɵprov =
|
|
2121
|
+
LatLongFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
|
|
2099
2122
|
LatLongFormatPipe.decorators = [
|
|
2100
2123
|
{ type: i0.Pipe, args: [{
|
|
2101
2124
|
name: 'latLongFormat'
|
|
@@ -2108,7 +2131,7 @@
|
|
|
2108
2131
|
}
|
|
2109
2132
|
return LatitudeFormatPipe;
|
|
2110
2133
|
}());
|
|
2111
|
-
LatitudeFormatPipe.ɵprov =
|
|
2134
|
+
LatitudeFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
|
|
2112
2135
|
LatitudeFormatPipe.decorators = [
|
|
2113
2136
|
{ type: i0.Pipe, args: [{
|
|
2114
2137
|
name: 'latitudeFormat'
|
|
@@ -2121,7 +2144,7 @@
|
|
|
2121
2144
|
}
|
|
2122
2145
|
return LongitudeFormatPipe;
|
|
2123
2146
|
}());
|
|
2124
|
-
LongitudeFormatPipe.ɵprov =
|
|
2147
|
+
LongitudeFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
|
|
2125
2148
|
LongitudeFormatPipe.decorators = [
|
|
2126
2149
|
{ type: i0.Pipe, args: [{
|
|
2127
2150
|
name: 'longitudeFormat'
|
|
@@ -2144,7 +2167,7 @@
|
|
|
2144
2167
|
};
|
|
2145
2168
|
return NumberFormatPipe;
|
|
2146
2169
|
}());
|
|
2147
|
-
NumberFormatPipe.ɵprov =
|
|
2170
|
+
NumberFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
|
|
2148
2171
|
NumberFormatPipe.decorators = [
|
|
2149
2172
|
{ type: i0.Pipe, args: [{
|
|
2150
2173
|
name: 'numberFormat'
|
|
@@ -2187,7 +2210,7 @@
|
|
|
2187
2210
|
};
|
|
2188
2211
|
return HighlightPipe;
|
|
2189
2212
|
}());
|
|
2190
|
-
HighlightPipe.ɵprov =
|
|
2213
|
+
HighlightPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
|
|
2191
2214
|
HighlightPipe.decorators = [
|
|
2192
2215
|
{ type: i0.Pipe, args: [{
|
|
2193
2216
|
name: 'highlight'
|
|
@@ -2255,7 +2278,7 @@
|
|
|
2255
2278
|
{ type: i0.Pipe, args: [{ name: 'fileSize' },] }
|
|
2256
2279
|
];
|
|
2257
2280
|
|
|
2258
|
-
var moment$
|
|
2281
|
+
var moment$5 = momentImported__namespace;
|
|
2259
2282
|
var DATE_UNIX_TIMESTAMP = 'X';
|
|
2260
2283
|
var DATE_UNIX_MS_TIMESTAMP = 'x';
|
|
2261
2284
|
var DateUtils = /** @class */ (function () {
|
|
@@ -2290,32 +2313,32 @@
|
|
|
2290
2313
|
if (!value || momentImported.isMoment(value))
|
|
2291
2314
|
return value;
|
|
2292
2315
|
// Parse the input value, as a ISO date time
|
|
2293
|
-
var date = moment$
|
|
2316
|
+
var date = moment$5(value, DATE_ISO_PATTERN);
|
|
2294
2317
|
if (date.isValid())
|
|
2295
2318
|
return date;
|
|
2296
2319
|
// Not valid: trying to convert from unix timestamp
|
|
2297
2320
|
if (typeof value === 'string') {
|
|
2298
2321
|
console.warn('Wrong date format - Trying to convert from local time: ' + value);
|
|
2299
2322
|
if (value.length === 10) {
|
|
2300
|
-
return moment$
|
|
2323
|
+
return moment$5(value, DATE_UNIX_TIMESTAMP);
|
|
2301
2324
|
}
|
|
2302
2325
|
else if (value.length === 13) {
|
|
2303
|
-
return moment$
|
|
2326
|
+
return moment$5(value, DATE_UNIX_MS_TIMESTAMP);
|
|
2304
2327
|
}
|
|
2305
2328
|
}
|
|
2306
2329
|
console.warn('Unable to parse date: ' + value);
|
|
2307
2330
|
return undefined;
|
|
2308
2331
|
}
|
|
2309
2332
|
function fromUnixTimestamp(timeInSec) {
|
|
2310
|
-
return moment$
|
|
2333
|
+
return moment$5(timeInSec, DATE_UNIX_TIMESTAMP);
|
|
2311
2334
|
}
|
|
2312
2335
|
function fromUnixMsTimestamp(timeInMs) {
|
|
2313
|
-
return moment$
|
|
2336
|
+
return moment$5(timeInMs, DATE_UNIX_MS_TIMESTAMP);
|
|
2314
2337
|
}
|
|
2315
2338
|
function toDuration(value, unit) {
|
|
2316
2339
|
if (!value)
|
|
2317
2340
|
return undefined;
|
|
2318
|
-
var duration = moment$
|
|
2341
|
+
var duration = moment$5.duration(value, unit);
|
|
2319
2342
|
// fix 990+ ms
|
|
2320
2343
|
if (duration.milliseconds() >= 990) {
|
|
2321
2344
|
duration.add(1000 - duration.milliseconds(), 'ms');
|
|
@@ -2345,7 +2368,7 @@
|
|
|
2345
2368
|
};
|
|
2346
2369
|
return DurationPipe;
|
|
2347
2370
|
}());
|
|
2348
|
-
DurationPipe.ɵprov =
|
|
2371
|
+
DurationPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: DurationPipe, providedIn: "root" });
|
|
2349
2372
|
DurationPipe.decorators = [
|
|
2350
2373
|
{ type: i0.Pipe, args: [{
|
|
2351
2374
|
name: 'duration'
|
|
@@ -2369,7 +2392,7 @@
|
|
|
2369
2392
|
};
|
|
2370
2393
|
return MathAbsPipe;
|
|
2371
2394
|
}());
|
|
2372
|
-
MathAbsPipe.ɵprov =
|
|
2395
|
+
MathAbsPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
|
|
2373
2396
|
MathAbsPipe.decorators = [
|
|
2374
2397
|
{ type: i0.Pipe, args: [{
|
|
2375
2398
|
name: 'mathAbs'
|
|
@@ -2384,7 +2407,7 @@
|
|
|
2384
2407
|
};
|
|
2385
2408
|
return EvenPipe;
|
|
2386
2409
|
}());
|
|
2387
|
-
EvenPipe.ɵprov =
|
|
2410
|
+
EvenPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
|
|
2388
2411
|
EvenPipe.decorators = [
|
|
2389
2412
|
{ type: i0.Pipe, args: [{
|
|
2390
2413
|
name: 'even'
|
|
@@ -2399,7 +2422,7 @@
|
|
|
2399
2422
|
};
|
|
2400
2423
|
return OddPipe;
|
|
2401
2424
|
}());
|
|
2402
|
-
OddPipe.ɵprov =
|
|
2425
|
+
OddPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
|
|
2403
2426
|
OddPipe.decorators = [
|
|
2404
2427
|
{ type: i0.Pipe, args: [{
|
|
2405
2428
|
name: 'odd'
|
|
@@ -2531,7 +2554,7 @@
|
|
|
2531
2554
|
};
|
|
2532
2555
|
return MapGetPipe;
|
|
2533
2556
|
}());
|
|
2534
|
-
MapGetPipe.ɵprov =
|
|
2557
|
+
MapGetPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
|
|
2535
2558
|
MapGetPipe.decorators = [
|
|
2536
2559
|
{ type: i0.Pipe, args: [{
|
|
2537
2560
|
name: 'mapGet'
|
|
@@ -2548,7 +2571,7 @@
|
|
|
2548
2571
|
};
|
|
2549
2572
|
return MapKeysPipe;
|
|
2550
2573
|
}());
|
|
2551
|
-
MapKeysPipe.ɵprov =
|
|
2574
|
+
MapKeysPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
|
|
2552
2575
|
MapKeysPipe.decorators = [
|
|
2553
2576
|
{ type: i0.Pipe, args: [{
|
|
2554
2577
|
name: 'mapKeys'
|
|
@@ -2565,7 +2588,7 @@
|
|
|
2565
2588
|
};
|
|
2566
2589
|
return MapValuesPipe;
|
|
2567
2590
|
}());
|
|
2568
|
-
MapValuesPipe.ɵprov =
|
|
2591
|
+
MapValuesPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
|
|
2569
2592
|
MapValuesPipe.decorators = [
|
|
2570
2593
|
{ type: i0.Pipe, args: [{
|
|
2571
2594
|
name: 'mapValues'
|
|
@@ -2581,7 +2604,7 @@
|
|
|
2581
2604
|
};
|
|
2582
2605
|
return IsNotNilOrBlankPipe;
|
|
2583
2606
|
}());
|
|
2584
|
-
IsNotNilOrBlankPipe.ɵprov =
|
|
2607
|
+
IsNotNilOrBlankPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
|
|
2585
2608
|
IsNotNilOrBlankPipe.decorators = [
|
|
2586
2609
|
{ type: i0.Pipe, args: [{
|
|
2587
2610
|
name: 'isNotNilOrBlank'
|
|
@@ -2596,7 +2619,7 @@
|
|
|
2596
2619
|
};
|
|
2597
2620
|
return IsNilOrBlankPipe;
|
|
2598
2621
|
}());
|
|
2599
|
-
IsNilOrBlankPipe.ɵprov =
|
|
2622
|
+
IsNilOrBlankPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
|
|
2600
2623
|
IsNilOrBlankPipe.decorators = [
|
|
2601
2624
|
{ type: i0.Pipe, args: [{
|
|
2602
2625
|
name: 'isNilOrBlank'
|
|
@@ -2611,7 +2634,7 @@
|
|
|
2611
2634
|
};
|
|
2612
2635
|
return ToStringPipe;
|
|
2613
2636
|
}());
|
|
2614
|
-
ToStringPipe.ɵprov =
|
|
2637
|
+
ToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
|
|
2615
2638
|
ToStringPipe.decorators = [
|
|
2616
2639
|
{ type: i0.Pipe, args: [{
|
|
2617
2640
|
name: 'toString'
|
|
@@ -2626,7 +2649,7 @@
|
|
|
2626
2649
|
};
|
|
2627
2650
|
return StrLengthPipe;
|
|
2628
2651
|
}());
|
|
2629
|
-
StrLengthPipe.ɵprov =
|
|
2652
|
+
StrLengthPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
|
|
2630
2653
|
StrLengthPipe.decorators = [
|
|
2631
2654
|
{ type: i0.Pipe, args: [{
|
|
2632
2655
|
name: 'strLength'
|
|
@@ -2679,7 +2702,7 @@
|
|
|
2679
2702
|
};
|
|
2680
2703
|
return TranslateContextService;
|
|
2681
2704
|
}());
|
|
2682
|
-
TranslateContextService.ɵprov =
|
|
2705
|
+
TranslateContextService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
|
|
2683
2706
|
TranslateContextService.decorators = [
|
|
2684
2707
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2685
2708
|
];
|
|
@@ -2696,7 +2719,7 @@
|
|
|
2696
2719
|
};
|
|
2697
2720
|
return TranslateContextPipe;
|
|
2698
2721
|
}());
|
|
2699
|
-
TranslateContextPipe.ɵprov =
|
|
2722
|
+
TranslateContextPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslateContextPipe_Factory() { return new TranslateContextPipe(i0__namespace.ɵɵinject(TranslateContextService)); }, token: TranslateContextPipe, providedIn: "root" });
|
|
2700
2723
|
TranslateContextPipe.decorators = [
|
|
2701
2724
|
{ type: i0.Pipe, args: [{
|
|
2702
2725
|
name: 'translateContext'
|
|
@@ -2716,7 +2739,7 @@
|
|
|
2716
2739
|
};
|
|
2717
2740
|
return TranslatablePipe;
|
|
2718
2741
|
}());
|
|
2719
|
-
TranslatablePipe.ɵprov =
|
|
2742
|
+
TranslatablePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslatablePipe_Factory() { return new TranslatablePipe(); }, token: TranslatablePipe, providedIn: "root" });
|
|
2720
2743
|
TranslatablePipe.decorators = [
|
|
2721
2744
|
{ type: i0.Pipe, args: [{
|
|
2722
2745
|
name: 'translatable'
|
|
@@ -2736,7 +2759,7 @@
|
|
|
2736
2759
|
};
|
|
2737
2760
|
return PropertyGetPipe;
|
|
2738
2761
|
}());
|
|
2739
|
-
PropertyGetPipe.ɵprov =
|
|
2762
|
+
PropertyGetPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
|
|
2740
2763
|
PropertyGetPipe.decorators = [
|
|
2741
2764
|
{ type: i0.Pipe, args: [{
|
|
2742
2765
|
name: 'propertyGet'
|
|
@@ -2993,14 +3016,14 @@
|
|
|
2993
3016
|
},] }
|
|
2994
3017
|
];
|
|
2995
3018
|
|
|
2996
|
-
var moment$
|
|
3019
|
+
var moment$4 = momentImported__namespace;
|
|
2997
3020
|
// @dynamic
|
|
2998
3021
|
var SharedValidators = /** @class */ (function () {
|
|
2999
3022
|
function SharedValidators() {
|
|
3000
3023
|
}
|
|
3001
3024
|
SharedValidators.validDate = function (control) {
|
|
3002
3025
|
var value = control.value;
|
|
3003
|
-
var date = !value || moment$
|
|
3026
|
+
var date = !value || moment$4.isMoment(value) ? value : moment$4(control.value, DATE_ISO_PATTERN);
|
|
3004
3027
|
if (date && (!date.isValid() || date.year() < 1970)) {
|
|
3005
3028
|
return { validDate: true };
|
|
3006
3029
|
}
|
|
@@ -3432,9 +3455,9 @@
|
|
|
3432
3455
|
var hour = parseInt(durationParts[0] || '0');
|
|
3433
3456
|
var minute = parseInt(durationParts[1] || '0');
|
|
3434
3457
|
var value = hour + (minute + 0.5) / 60;
|
|
3435
|
-
return roundFloat
|
|
3458
|
+
return roundFloat(value, maxDecimals);
|
|
3436
3459
|
}
|
|
3437
|
-
function roundFloat
|
|
3460
|
+
function roundFloat(input, maxDecimals) {
|
|
3438
3461
|
if (maxDecimals > 0) {
|
|
3439
3462
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
3440
3463
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -3458,9 +3481,9 @@
|
|
|
3458
3481
|
DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
|
|
3459
3482
|
}
|
|
3460
3483
|
};
|
|
3461
|
-
var noop$
|
|
3484
|
+
var noop$6 = function () {
|
|
3462
3485
|
};
|
|
3463
|
-
var ɵ0$
|
|
3486
|
+
var ɵ0$9 = noop$6;
|
|
3464
3487
|
var MatLatLongField = /** @class */ (function () {
|
|
3465
3488
|
function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
|
|
3466
3489
|
this.platform = platform;
|
|
@@ -3468,8 +3491,8 @@
|
|
|
3468
3491
|
this.formBuilder = formBuilder;
|
|
3469
3492
|
this.cd = cd;
|
|
3470
3493
|
this.formGroupDir = formGroupDir;
|
|
3471
|
-
this._onChangeCallback = noop$
|
|
3472
|
-
this._onTouchedCallback = noop$
|
|
3494
|
+
this._onChangeCallback = noop$6;
|
|
3495
|
+
this._onTouchedCallback = noop$6;
|
|
3473
3496
|
this._subscription = new rxjs.Subscription();
|
|
3474
3497
|
this.disabling = false;
|
|
3475
3498
|
this.writing = false;
|
|
@@ -3822,14 +3845,14 @@
|
|
|
3822
3845
|
},] }
|
|
3823
3846
|
];
|
|
3824
3847
|
|
|
3825
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
3848
|
+
var DEFAULT_VALUE_ACCESSOR$5 = {
|
|
3826
3849
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
3827
3850
|
useExisting: i0.forwardRef(function () { return MatDate; }),
|
|
3828
3851
|
multi: true
|
|
3829
3852
|
};
|
|
3830
|
-
var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
3831
|
-
var noop$
|
|
3832
|
-
var ɵ0$
|
|
3853
|
+
var DAY_MASK$2 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
3854
|
+
var noop$5 = function () { };
|
|
3855
|
+
var ɵ0$8 = noop$5;
|
|
3833
3856
|
var MatDate = /** @class */ (function () {
|
|
3834
3857
|
function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
3835
3858
|
this.dateAdapter = dateAdapter;
|
|
@@ -3838,12 +3861,12 @@
|
|
|
3838
3861
|
this.cd = cd;
|
|
3839
3862
|
this.keyboard = keyboard;
|
|
3840
3863
|
this.formGroupDir = formGroupDir;
|
|
3841
|
-
this._onChangeCallback = noop$
|
|
3842
|
-
this._onTouchedCallback = noop$
|
|
3864
|
+
this._onChangeCallback = noop$5;
|
|
3865
|
+
this._onTouchedCallback = noop$5;
|
|
3843
3866
|
this._subscription = new rxjs.Subscription();
|
|
3844
3867
|
this.writing = true;
|
|
3845
3868
|
this.disabling = false;
|
|
3846
|
-
this.dayMask = DAY_MASK;
|
|
3869
|
+
this.dayMask = DAY_MASK$2;
|
|
3847
3870
|
this.disabled = false;
|
|
3848
3871
|
this.floatLabel = 'auto';
|
|
3849
3872
|
this.readonly = false;
|
|
@@ -4112,7 +4135,7 @@
|
|
|
4112
4135
|
selector: 'mat-date-field',
|
|
4113
4136
|
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",
|
|
4114
4137
|
providers: [
|
|
4115
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
4138
|
+
DEFAULT_VALUE_ACCESSOR$5,
|
|
4116
4139
|
],
|
|
4117
4140
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4118
4141
|
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%}"]
|
|
@@ -4145,17 +4168,17 @@
|
|
|
4145
4168
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
4146
4169
|
};
|
|
4147
4170
|
|
|
4148
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
4171
|
+
var DEFAULT_VALUE_ACCESSOR$4 = {
|
|
4149
4172
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
4150
4173
|
useExisting: i0.forwardRef(function () { return MatDateTime; }),
|
|
4151
4174
|
multi: true
|
|
4152
4175
|
};
|
|
4153
4176
|
var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
4154
4177
|
var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
|
|
4155
|
-
var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
4156
|
-
var noop$
|
|
4178
|
+
var HOUR_MASK$1 = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
4179
|
+
var noop$4 = function () {
|
|
4157
4180
|
};
|
|
4158
|
-
var ɵ0$
|
|
4181
|
+
var ɵ0$7 = noop$4;
|
|
4159
4182
|
var MatDateTime = /** @class */ (function () {
|
|
4160
4183
|
function MatDateTime(platform, dateAdapter, translate, formBuilder, keyboard, cd, formGroupDir) {
|
|
4161
4184
|
this.platform = platform;
|
|
@@ -4165,14 +4188,14 @@
|
|
|
4165
4188
|
this.keyboard = keyboard;
|
|
4166
4189
|
this.cd = cd;
|
|
4167
4190
|
this.formGroupDir = formGroupDir;
|
|
4168
|
-
this._onChangeCallback = noop$
|
|
4169
|
-
this._onTouchedCallback = noop$
|
|
4191
|
+
this._onChangeCallback = noop$4;
|
|
4192
|
+
this._onTouchedCallback = noop$4;
|
|
4170
4193
|
this._subscription = new rxjs.Subscription();
|
|
4171
4194
|
this.writing = true;
|
|
4172
4195
|
this.disabling = false;
|
|
4173
4196
|
this._onDestroy = new i0.EventEmitter();
|
|
4174
4197
|
this.dayMask = DAY_MASK$1;
|
|
4175
|
-
this.hourMask = HOUR_MASK;
|
|
4198
|
+
this.hourMask = HOUR_MASK$1;
|
|
4176
4199
|
this.floatLabel = 'auto';
|
|
4177
4200
|
this.readonly = false;
|
|
4178
4201
|
this.compact = false;
|
|
@@ -4519,7 +4542,7 @@
|
|
|
4519
4542
|
selector: 'mat-date-time-field',
|
|
4520
4543
|
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",
|
|
4521
4544
|
providers: [
|
|
4522
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
4545
|
+
DEFAULT_VALUE_ACCESSOR$4,
|
|
4523
4546
|
],
|
|
4524
4547
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4525
4548
|
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%}"]
|
|
@@ -4558,10 +4581,10 @@
|
|
|
4558
4581
|
useExisting: i0.forwardRef(function () { return MatDateShort; }),
|
|
4559
4582
|
multi: true
|
|
4560
4583
|
};
|
|
4561
|
-
var DAY_MASK
|
|
4562
|
-
var noop$
|
|
4584
|
+
var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
|
|
4585
|
+
var noop$3 = function () {
|
|
4563
4586
|
};
|
|
4564
|
-
var ɵ0$
|
|
4587
|
+
var ɵ0$6 = noop$3;
|
|
4565
4588
|
var MatDateShort = /** @class */ (function () {
|
|
4566
4589
|
function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
4567
4590
|
this.dateAdapter = dateAdapter;
|
|
@@ -4570,11 +4593,11 @@
|
|
|
4570
4593
|
this.cd = cd;
|
|
4571
4594
|
this.keyboard = keyboard;
|
|
4572
4595
|
this.formGroupDir = formGroupDir;
|
|
4573
|
-
this._onChangeCallback = noop$
|
|
4574
|
-
this._onTouchedCallback = noop$
|
|
4596
|
+
this._onChangeCallback = noop$3;
|
|
4597
|
+
this._onTouchedCallback = noop$3;
|
|
4575
4598
|
this.writing = true;
|
|
4576
4599
|
this.disabling = false;
|
|
4577
|
-
this.dayMask = DAY_MASK
|
|
4600
|
+
this.dayMask = DAY_MASK;
|
|
4578
4601
|
this.disabled = false;
|
|
4579
4602
|
this.floatLabel = 'auto';
|
|
4580
4603
|
this.readonly = false;
|
|
@@ -4922,16 +4945,16 @@
|
|
|
4922
4945
|
},] }
|
|
4923
4946
|
];
|
|
4924
4947
|
|
|
4925
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
4948
|
+
var DEFAULT_VALUE_ACCESSOR$2 = {
|
|
4926
4949
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
4927
4950
|
useExisting: i0.forwardRef(function () { return MatDuration; }),
|
|
4928
4951
|
multi: true
|
|
4929
4952
|
};
|
|
4930
4953
|
var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
|
|
4931
|
-
var HOUR_MASK
|
|
4932
|
-
var noop$
|
|
4954
|
+
var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
4955
|
+
var noop$2 = function () {
|
|
4933
4956
|
};
|
|
4934
|
-
var ɵ0$5 = noop$
|
|
4957
|
+
var ɵ0$5 = noop$2;
|
|
4935
4958
|
var MatDuration = /** @class */ (function () {
|
|
4936
4959
|
function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
|
|
4937
4960
|
this.dateAdapter = dateAdapter;
|
|
@@ -4940,11 +4963,11 @@
|
|
|
4940
4963
|
this.cd = cd;
|
|
4941
4964
|
this.formGroupDir = formGroupDir;
|
|
4942
4965
|
this._subscription = new rxjs.Subscription();
|
|
4943
|
-
this._onChangeCallback = noop$
|
|
4944
|
-
this._onTouchedCallback = noop$
|
|
4966
|
+
this._onChangeCallback = noop$2;
|
|
4967
|
+
this._onTouchedCallback = noop$2;
|
|
4945
4968
|
this.writing = true;
|
|
4946
4969
|
this.disabling = false;
|
|
4947
|
-
this.hourMask = HOUR_MASK
|
|
4970
|
+
this.hourMask = HOUR_MASK;
|
|
4948
4971
|
this.disabled = false;
|
|
4949
4972
|
this.floatLabel = 'auto';
|
|
4950
4973
|
this.readonly = false;
|
|
@@ -5137,7 +5160,7 @@
|
|
|
5137
5160
|
selector: 'mat-duration-field',
|
|
5138
5161
|
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",
|
|
5139
5162
|
providers: [
|
|
5140
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5163
|
+
DEFAULT_VALUE_ACCESSOR$2,
|
|
5141
5164
|
],
|
|
5142
5165
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5143
5166
|
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%}"]
|
|
@@ -5197,22 +5220,22 @@
|
|
|
5197
5220
|
},] }
|
|
5198
5221
|
];
|
|
5199
5222
|
|
|
5200
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5223
|
+
var DEFAULT_VALUE_ACCESSOR$1 = {
|
|
5201
5224
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5202
5225
|
useExisting: i0.forwardRef(function () { return MatBooleanField; }),
|
|
5203
5226
|
multi: true
|
|
5204
5227
|
};
|
|
5205
|
-
var noop$
|
|
5228
|
+
var noop$1 = function () {
|
|
5206
5229
|
};
|
|
5207
|
-
var ɵ0$
|
|
5230
|
+
var ɵ0$4 = noop$1;
|
|
5208
5231
|
var MatBooleanField = /** @class */ (function () {
|
|
5209
5232
|
function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
|
|
5210
5233
|
this.translate = translate;
|
|
5211
5234
|
this.formBuilder = formBuilder;
|
|
5212
5235
|
this.cd = cd;
|
|
5213
5236
|
this.formGroupDir = formGroupDir;
|
|
5214
|
-
this._onChangeCallback = noop$
|
|
5215
|
-
this._onTouchedCallback = noop$
|
|
5237
|
+
this._onChangeCallback = noop$1;
|
|
5238
|
+
this._onTouchedCallback = noop$1;
|
|
5216
5239
|
this._writing = false;
|
|
5217
5240
|
this.showRadio = false;
|
|
5218
5241
|
this.disabled = false;
|
|
@@ -5389,7 +5412,7 @@
|
|
|
5389
5412
|
selector: 'mat-boolean-field',
|
|
5390
5413
|
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",
|
|
5391
5414
|
providers: [
|
|
5392
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5415
|
+
DEFAULT_VALUE_ACCESSOR$1
|
|
5393
5416
|
],
|
|
5394
5417
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5395
5418
|
styles: [":host{width:100%}"]
|
|
@@ -5471,6 +5494,7 @@
|
|
|
5471
5494
|
return MatNumpadEvent;
|
|
5472
5495
|
}(KeyboardEvent));
|
|
5473
5496
|
|
|
5497
|
+
exports.AnimationState = void 0;
|
|
5474
5498
|
(function (AnimationState) {
|
|
5475
5499
|
AnimationState["ENTER"] = "enter";
|
|
5476
5500
|
AnimationState["ENTER_INPUT"] = "enter-input";
|
|
@@ -5638,7 +5662,7 @@
|
|
|
5638
5662
|
};
|
|
5639
5663
|
return MatNumpadDomService;
|
|
5640
5664
|
}());
|
|
5641
|
-
MatNumpadDomService.ɵprov =
|
|
5665
|
+
MatNumpadDomService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatNumpadDomService_Factory() { return new MatNumpadDomService(i0__namespace.ɵɵinject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵinject(i0__namespace.ApplicationRef), i0__namespace.ɵɵinject(i0__namespace.INJECTOR), i0__namespace.ɵɵinject(i1__namespace$3.DOCUMENT, 8)); }, token: MatNumpadDomService, providedIn: "root" });
|
|
5642
5666
|
MatNumpadDomService.decorators = [
|
|
5643
5667
|
{ type: i0.Injectable, args: [{
|
|
5644
5668
|
providedIn: 'root'
|
|
@@ -6044,7 +6068,7 @@
|
|
|
6044
6068
|
},] }
|
|
6045
6069
|
];
|
|
6046
6070
|
|
|
6047
|
-
var DEFAULT_VALUE_ACCESSOR
|
|
6071
|
+
var DEFAULT_VALUE_ACCESSOR = {
|
|
6048
6072
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6049
6073
|
useExisting: i0.forwardRef(function () { return MatSwipeField; }),
|
|
6050
6074
|
multi: true
|
|
@@ -6364,7 +6388,7 @@
|
|
|
6364
6388
|
{ type: i0.Component, args: [{
|
|
6365
6389
|
selector: 'mat-swipe-field',
|
|
6366
6390
|
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",
|
|
6367
|
-
providers: [DEFAULT_VALUE_ACCESSOR
|
|
6391
|
+
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
6368
6392
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6369
6393
|
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}"]
|
|
6370
6394
|
},] }
|
|
@@ -6922,7 +6946,7 @@
|
|
|
6922
6946
|
};
|
|
6923
6947
|
return ProgressBarService;
|
|
6924
6948
|
}());
|
|
6925
|
-
ProgressBarService.ɵprov =
|
|
6949
|
+
ProgressBarService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
|
|
6926
6950
|
ProgressBarService.decorators = [
|
|
6927
6951
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
6928
6952
|
];
|
|
@@ -6969,7 +6993,7 @@
|
|
|
6969
6993
|
};
|
|
6970
6994
|
return AppGestureConfig;
|
|
6971
6995
|
}(i1$6.HammerGestureConfig));
|
|
6972
|
-
AppGestureConfig.ɵprov =
|
|
6996
|
+
AppGestureConfig.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
|
|
6973
6997
|
AppGestureConfig.decorators = [
|
|
6974
6998
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
6975
6999
|
];
|
|
@@ -7234,7 +7258,7 @@
|
|
|
7234
7258
|
};
|
|
7235
7259
|
return MatPaginatorI18n;
|
|
7236
7260
|
}(paginator.MatPaginatorIntl));
|
|
7237
|
-
MatPaginatorI18n.ɵprov =
|
|
7261
|
+
MatPaginatorI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
|
|
7238
7262
|
MatPaginatorI18n.decorators = [
|
|
7239
7263
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7240
7264
|
];
|
|
@@ -7326,17 +7350,17 @@
|
|
|
7326
7350
|
return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
|
|
7327
7351
|
}
|
|
7328
7352
|
|
|
7329
|
-
var noop
|
|
7353
|
+
var noop = function () {
|
|
7330
7354
|
};
|
|
7331
|
-
var ɵ0$
|
|
7355
|
+
var ɵ0$3 = noop;
|
|
7332
7356
|
var AppFormField = /** @class */ (function () {
|
|
7333
7357
|
function AppFormField(translate, cd, injector, formGroupDir) {
|
|
7334
7358
|
this.translate = translate;
|
|
7335
7359
|
this.cd = cd;
|
|
7336
7360
|
this.injector = injector;
|
|
7337
7361
|
this.formGroupDir = formGroupDir;
|
|
7338
|
-
this._onChangeCallback = noop
|
|
7339
|
-
this._onTouchedCallback = noop
|
|
7362
|
+
this._onChangeCallback = noop;
|
|
7363
|
+
this._onTouchedCallback = noop;
|
|
7340
7364
|
this.readonly = false;
|
|
7341
7365
|
this.compact = false;
|
|
7342
7366
|
this.floatLabel = 'auto';
|
|
@@ -7795,7 +7819,7 @@
|
|
|
7795
7819
|
};
|
|
7796
7820
|
return AudioProvider;
|
|
7797
7821
|
}());
|
|
7798
|
-
AudioProvider.ɵprov =
|
|
7822
|
+
AudioProvider.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AudioProvider_Factory() { return new AudioProvider(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i2__namespace.NativeAudio, 8), i0__namespace.ɵɵinject(i3__namespace.Vibration, 8), i0__namespace.ɵɵinject(i4__namespace.AudioManagement, 8)); }, token: AudioProvider, providedIn: "root" });
|
|
7799
7823
|
AudioProvider.decorators = [
|
|
7800
7824
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7801
7825
|
];
|
|
@@ -7895,7 +7919,7 @@
|
|
|
7895
7919
|
};
|
|
7896
7920
|
return Hotkeys;
|
|
7897
7921
|
}());
|
|
7898
|
-
Hotkeys.ɵprov =
|
|
7922
|
+
Hotkeys.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function Hotkeys_Factory() { return new Hotkeys(i0__namespace.ɵɵinject(i1__namespace$5.EventManager), i0__namespace.ɵɵinject(i2__namespace$1.MatDialog), i0__namespace.ɵɵinject(i1__namespace$3.DOCUMENT), i0__namespace.ɵɵinject(i1__namespace$4.ModalController)); }, token: Hotkeys, providedIn: "root" });
|
|
7899
7923
|
Hotkeys.decorators = [
|
|
7900
7924
|
{ type: i0.Injectable, args: [{
|
|
7901
7925
|
providedIn: 'root'
|
|
@@ -8099,7 +8123,7 @@
|
|
|
8099
8123
|
return Base64ImageReader;
|
|
8100
8124
|
}());
|
|
8101
8125
|
|
|
8102
|
-
var uuidv4 = uuidv4Imported__namespace;
|
|
8126
|
+
var uuidv4$1 = uuidv4Imported__namespace;
|
|
8103
8127
|
var FileService = /** @class */ (function () {
|
|
8104
8128
|
function FileService(platform,
|
|
8105
8129
|
//private transfer: FileTransfer,
|
|
@@ -8145,7 +8169,7 @@
|
|
|
8145
8169
|
lastSlashIndex = source.lastIndexOf('/');
|
|
8146
8170
|
if (lastSlashIndex === -1)
|
|
8147
8171
|
throw new Error('Invalid URL: ' + source);
|
|
8148
|
-
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
|
|
8172
|
+
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4$1();
|
|
8149
8173
|
if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
|
|
8150
8174
|
console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
|
|
8151
8175
|
targetFilePath = this._imageDirectory + fileName;
|
|
@@ -8208,7 +8232,7 @@
|
|
|
8208
8232
|
};
|
|
8209
8233
|
return FileService;
|
|
8210
8234
|
}());
|
|
8211
|
-
FileService.ɵprov =
|
|
8235
|
+
FileService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i2__namespace$2.HttpClient), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: FileService, providedIn: "root" });
|
|
8212
8236
|
FileService.decorators = [
|
|
8213
8237
|
{ type: i0.Injectable, args: [{
|
|
8214
8238
|
providedIn: 'root',
|
|
@@ -8371,7 +8395,7 @@
|
|
|
8371
8395
|
Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
8372
8396
|
|
|
8373
8397
|
var scrypt = require('scrypt-async');
|
|
8374
|
-
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
8398
|
+
var sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
8375
8399
|
var sha512 = require('hash.js/lib/hash/sha/512');
|
|
8376
8400
|
var nacl = {
|
|
8377
8401
|
sign: tweetnacl.sign,
|
|
@@ -8477,7 +8501,7 @@
|
|
|
8477
8501
|
* Hash (using SHA256) a message
|
|
8478
8502
|
*/
|
|
8479
8503
|
CryptoService.prototype.sha256 = function (message) {
|
|
8480
|
-
return sha256().update(message).digest('hex');
|
|
8504
|
+
return sha256$1().update(message).digest('hex');
|
|
8481
8505
|
};
|
|
8482
8506
|
/**
|
|
8483
8507
|
* Hash (using SHA512) a message
|
|
@@ -8491,7 +8515,7 @@
|
|
|
8491
8515
|
};
|
|
8492
8516
|
return CryptoService;
|
|
8493
8517
|
}());
|
|
8494
|
-
CryptoService.ɵprov =
|
|
8518
|
+
CryptoService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
|
|
8495
8519
|
CryptoService.decorators = [
|
|
8496
8520
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8497
8521
|
];
|
|
@@ -9891,7 +9915,7 @@
|
|
|
9891
9915
|
};
|
|
9892
9916
|
return LocalSettingsService;
|
|
9893
9917
|
}());
|
|
9894
|
-
LocalSettingsService.ɵprov =
|
|
9918
|
+
LocalSettingsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LocalSettingsService_Factory() { return new LocalSettingsService(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(APP_LOCAL_SETTINGS, 8), i0__namespace.ɵɵinject(APP_LOCAL_SETTINGS_OPTIONS, 8)); }, token: LocalSettingsService, providedIn: "root" });
|
|
9895
9919
|
LocalSettingsService.decorators = [
|
|
9896
9920
|
{ type: i0.Injectable, args: [{
|
|
9897
9921
|
providedIn: 'root',
|
|
@@ -10736,7 +10760,7 @@
|
|
|
10736
10760
|
};
|
|
10737
10761
|
return NetworkService;
|
|
10738
10762
|
}());
|
|
10739
|
-
NetworkService.ɵprov =
|
|
10763
|
+
NetworkService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function NetworkService_Factory() { return new NetworkService(i0__namespace.ɵɵinject(i1__namespace$3.DOCUMENT), i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i1__namespace$4.ModalController), i0__namespace.ɵɵinject(CryptoService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(LocalSettingsService), i0__namespace.ɵɵinject(i6__namespace.CacheService), i0__namespace.ɵɵinject(i2__namespace$2.HttpClient), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(i9__namespace.Network, 8), i0__namespace.ɵɵinject(i10__namespace.SplashScreen, 8), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService, 8), i0__namespace.ɵɵinject(i1__namespace$4.ToastController, 8)); }, token: NetworkService, providedIn: "root" });
|
|
10740
10764
|
NetworkService.decorators = [
|
|
10741
10765
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
10742
10766
|
];
|
|
@@ -10756,7 +10780,7 @@
|
|
|
10756
10780
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
|
|
10757
10781
|
]; };
|
|
10758
10782
|
|
|
10759
|
-
var ErrorCodes = {
|
|
10783
|
+
var ErrorCodes$2 = {
|
|
10760
10784
|
UNKNOWN_ERROR: 0,
|
|
10761
10785
|
LOAD_ACCOUNT_ERROR: 1,
|
|
10762
10786
|
BAD_PASSWORD: 2,
|
|
@@ -11164,7 +11188,7 @@
|
|
|
11164
11188
|
case 13:
|
|
11165
11189
|
err_1 = _a.sent();
|
|
11166
11190
|
console.error(err_1);
|
|
11167
|
-
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
11191
|
+
throw { code: ErrorCodes$2.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
11168
11192
|
case 14:
|
|
11169
11193
|
// Emit update event
|
|
11170
11194
|
if (!opts || opts.emitEvent !== false) {
|
|
@@ -11924,7 +11948,7 @@
|
|
|
11924
11948
|
}());
|
|
11925
11949
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
11926
11950
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
11927
|
-
EntitiesStorage.ɵprov =
|
|
11951
|
+
EntitiesStorage.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EntitiesStorage_Factory() { return new EntitiesStorage(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(ProgressBarService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(APP_LOCAL_STORAGE_TYPE_POLICIES, 8)); }, token: EntitiesStorage, providedIn: "root" });
|
|
11928
11952
|
EntitiesStorage.decorators = [
|
|
11929
11953
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
11930
11954
|
];
|
|
@@ -12038,10 +12062,10 @@
|
|
|
12038
12062
|
function referentialsToString(values, properties, separator) {
|
|
12039
12063
|
return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
|
|
12040
12064
|
}
|
|
12041
|
-
var ɵ0$
|
|
12065
|
+
var ɵ0$2 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
12042
12066
|
var StatusList = Object.freeze([
|
|
12043
12067
|
{
|
|
12044
|
-
id: ɵ0$
|
|
12068
|
+
id: ɵ0$2,
|
|
12045
12069
|
icon: 'checkmark',
|
|
12046
12070
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
12047
12071
|
},
|
|
@@ -12340,7 +12364,7 @@
|
|
|
12340
12364
|
(data.lastName || '')) || '';
|
|
12341
12365
|
}
|
|
12342
12366
|
|
|
12343
|
-
var uuidv4
|
|
12367
|
+
var uuidv4 = uuidv4Imported__namespace;
|
|
12344
12368
|
var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
12345
12369
|
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
12346
12370
|
/**
|
|
@@ -12384,7 +12408,7 @@
|
|
|
12384
12408
|
// Skip if not tracked
|
|
12385
12409
|
if (!context || !context.tracked)
|
|
12386
12410
|
return forward(operation);
|
|
12387
|
-
var id = context.serializationKey || uuidv4
|
|
12411
|
+
var id = context.serializationKey || uuidv4();
|
|
12388
12412
|
console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
|
|
12389
12413
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
12390
12414
|
var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -13188,7 +13212,7 @@
|
|
|
13188
13212
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
13189
13213
|
|| this.toAppError(err.networkError)
|
|
13190
13214
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
13191
|
-
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
13215
|
+
|| this.createAppErrorByCode(ErrorCodes$2.UNKNOWN_NETWORK_ERROR)))
|
|
13192
13216
|
// If graphQL: try to convert the first error found
|
|
13193
13217
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
13194
13218
|
|| this.toAppError(err)
|
|
@@ -13196,7 +13220,7 @@
|
|
|
13196
13220
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
13197
13221
|
|| err;
|
|
13198
13222
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
13199
|
-
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
13223
|
+
if (error && error.code === ErrorCodes$2.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
13200
13224
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
13201
13225
|
this.onNetworkError.next(error);
|
|
13202
13226
|
}
|
|
@@ -13232,7 +13256,7 @@
|
|
|
13232
13256
|
return 'ERROR.UNAUTHORIZED';
|
|
13233
13257
|
case ServerErrorCodes.FORBIDDEN:
|
|
13234
13258
|
return 'ERROR.FORBIDDEN';
|
|
13235
|
-
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
13259
|
+
case ErrorCodes$2.UNKNOWN_NETWORK_ERROR:
|
|
13236
13260
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
13237
13261
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
13238
13262
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -13277,7 +13301,7 @@
|
|
|
13277
13301
|
};
|
|
13278
13302
|
return GraphqlService;
|
|
13279
13303
|
}());
|
|
13280
|
-
GraphqlService.ɵprov =
|
|
13304
|
+
GraphqlService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function GraphqlService_Factory() { return new GraphqlService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i2__namespace$3.Apollo), i0__namespace.ɵɵinject(i3__namespace$2.HttpLink), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(CryptoService), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(APP_GRAPHQL_TYPE_POLICIES, 8)); }, token: GraphqlService, providedIn: "root" });
|
|
13281
13305
|
GraphqlService.decorators = [
|
|
13282
13306
|
{ type: i0.Injectable, args: [{
|
|
13283
13307
|
providedIn: 'root'
|
|
@@ -13294,7 +13318,7 @@
|
|
|
13294
13318
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
13295
13319
|
]; };
|
|
13296
13320
|
|
|
13297
|
-
var sha256
|
|
13321
|
+
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
13298
13322
|
var BaseGraphqlServiceOptions = /** @class */ (function () {
|
|
13299
13323
|
function BaseGraphqlServiceOptions() {
|
|
13300
13324
|
}
|
|
@@ -13447,8 +13471,8 @@
|
|
|
13447
13471
|
};
|
|
13448
13472
|
/* -- protected methods -- */
|
|
13449
13473
|
BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
|
|
13450
|
-
var queryName = opts.queryName || sha256
|
|
13451
|
-
var variablesKey = opts.variables && sha256
|
|
13474
|
+
var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
13475
|
+
var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
13452
13476
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
13453
13477
|
};
|
|
13454
13478
|
BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
|
|
@@ -13514,17 +13538,17 @@
|
|
|
13514
13538
|
/* ------------------------------------
|
|
13515
13539
|
* GraphQL queries
|
|
13516
13540
|
* ------------------------------------*/
|
|
13517
|
-
var Fragments = {
|
|
13518
|
-
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 "])))
|
|
13541
|
+
var Fragments$1 = {
|
|
13542
|
+
account: core.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n 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 "])))
|
|
13519
13543
|
};
|
|
13520
13544
|
// Load account query
|
|
13521
|
-
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);
|
|
13545
|
+
var LoadQuery$1 = core.gql(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n query Account {\n account {\n ...AccountFragment\n }\n }\n ", "\n"], ["\n query Account {\n account {\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments$1.account);
|
|
13522
13546
|
// Check email query
|
|
13523
|
-
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"])));
|
|
13547
|
+
var IsEmailExistsQuery = core.gql(templateObject_3$3 || (templateObject_3$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"])));
|
|
13524
13548
|
// Save (create or update) account mutation
|
|
13525
|
-
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);
|
|
13549
|
+
var SaveMutation$1 = core.gql(templateObject_4$3 || (templateObject_4$3 = __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$1.account);
|
|
13526
13550
|
// Create account mutation
|
|
13527
|
-
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);
|
|
13551
|
+
var CreateMutation = core.gql(templateObject_5$2 || (templateObject_5$2 = __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$1.account);
|
|
13528
13552
|
// Sent confirmation email
|
|
13529
13553
|
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"])));
|
|
13530
13554
|
// Confirm account email
|
|
@@ -13914,7 +13938,7 @@
|
|
|
13914
13938
|
error_3 = _a.sent();
|
|
13915
13939
|
console.error(error_3);
|
|
13916
13940
|
this.resetData();
|
|
13917
|
-
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
13941
|
+
throw { code: ErrorCodes$2.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
13918
13942
|
case 4:
|
|
13919
13943
|
// Store pubkey+keypair
|
|
13920
13944
|
this.data.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -13950,7 +13974,7 @@
|
|
|
13950
13974
|
return [3 /*break*/, 18];
|
|
13951
13975
|
case 11:
|
|
13952
13976
|
err_1 = _a.sent();
|
|
13953
|
-
if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
13977
|
+
if (!(err_1 && +(err_1.code) === ErrorCodes$2.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
13954
13978
|
if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
|
|
13955
13979
|
isEmailExists = void 0;
|
|
13956
13980
|
_a.label = 12;
|
|
@@ -13966,12 +13990,12 @@
|
|
|
13966
13990
|
case 15:
|
|
13967
13991
|
// Email not exists (no account)
|
|
13968
13992
|
if (!isEmailExists) {
|
|
13969
|
-
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
13993
|
+
throw { code: ErrorCodes$2.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
13970
13994
|
}
|
|
13971
13995
|
_a.label = 16;
|
|
13972
13996
|
case 16:
|
|
13973
13997
|
// Email exists, so error = 'bad password'
|
|
13974
|
-
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
13998
|
+
throw { code: ErrorCodes$2.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
13975
13999
|
case 17: throw err_1; // resend the first error
|
|
13976
14000
|
case 18:
|
|
13977
14001
|
_a.trys.push([18, 20, , 21]);
|
|
@@ -14054,7 +14078,7 @@
|
|
|
14054
14078
|
throw error_6;
|
|
14055
14079
|
console.error(error_6);
|
|
14056
14080
|
throw {
|
|
14057
|
-
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
14081
|
+
code: ErrorCodes$2.LOAD_ACCOUNT_ERROR,
|
|
14058
14082
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
14059
14083
|
};
|
|
14060
14084
|
case 4: return [2 /*return*/];
|
|
@@ -14324,8 +14348,8 @@
|
|
|
14324
14348
|
_a.label = 3;
|
|
14325
14349
|
case 3: return [3 /*break*/, 6];
|
|
14326
14350
|
case 4: return [4 /*yield*/, this.graphql.query({
|
|
14327
|
-
query: LoadQuery,
|
|
14328
|
-
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
14351
|
+
query: LoadQuery$1,
|
|
14352
|
+
error: { code: ErrorCodes$2.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
14329
14353
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
14330
14354
|
})];
|
|
14331
14355
|
case 5:
|
|
@@ -14370,7 +14394,7 @@
|
|
|
14370
14394
|
case 1:
|
|
14371
14395
|
existingAccount = _a.sent();
|
|
14372
14396
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
14373
|
-
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
14397
|
+
throw { code: ErrorCodes$2.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
14374
14398
|
}
|
|
14375
14399
|
account.updateDate = existingAccount.updateDate || account.updateDate;
|
|
14376
14400
|
if (account.settings && existingAccount.settings) {
|
|
@@ -14383,12 +14407,12 @@
|
|
|
14383
14407
|
delete json.profiles;
|
|
14384
14408
|
delete json.mainProfile; // Not known on server
|
|
14385
14409
|
return [4 /*yield*/, this.graphql.mutate({
|
|
14386
|
-
mutation: isNew ? CreateMutation : SaveMutation,
|
|
14410
|
+
mutation: isNew ? CreateMutation : SaveMutation$1,
|
|
14387
14411
|
variables: {
|
|
14388
14412
|
account: json
|
|
14389
14413
|
},
|
|
14390
14414
|
error: {
|
|
14391
|
-
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
14415
|
+
code: ErrorCodes$2.SAVE_ACCOUNT_ERROR,
|
|
14392
14416
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
14393
14417
|
}
|
|
14394
14418
|
})];
|
|
@@ -14422,7 +14446,7 @@
|
|
|
14422
14446
|
case 1:
|
|
14423
14447
|
isEmailExists = _a.sent();
|
|
14424
14448
|
if (isEmailExists) {
|
|
14425
|
-
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
14449
|
+
throw { code: ErrorCodes$2.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
14426
14450
|
}
|
|
14427
14451
|
return [2 /*return*/];
|
|
14428
14452
|
}
|
|
@@ -14472,7 +14496,7 @@
|
|
|
14472
14496
|
locale: locale
|
|
14473
14497
|
},
|
|
14474
14498
|
error: {
|
|
14475
|
-
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
14499
|
+
code: ErrorCodes$2.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
14476
14500
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
14477
14501
|
}
|
|
14478
14502
|
})];
|
|
@@ -14495,7 +14519,7 @@
|
|
|
14495
14519
|
code: code
|
|
14496
14520
|
},
|
|
14497
14521
|
error: {
|
|
14498
|
-
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
14522
|
+
code: ErrorCodes$2.CONFIRM_EMAIL_FAILED,
|
|
14499
14523
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
14500
14524
|
}
|
|
14501
14525
|
})];
|
|
@@ -14517,7 +14541,7 @@
|
|
|
14517
14541
|
interval: 10
|
|
14518
14542
|
},
|
|
14519
14543
|
error: {
|
|
14520
|
-
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
14544
|
+
code: ErrorCodes$2.SUBSCRIBE_ACCOUNT_ERROR,
|
|
14521
14545
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ACCOUNT_ERROR'
|
|
14522
14546
|
}
|
|
14523
14547
|
}).subscribe({
|
|
@@ -14636,7 +14660,7 @@
|
|
|
14636
14660
|
if (counter > 4) {
|
|
14637
14661
|
if (this._debug)
|
|
14638
14662
|
console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
|
|
14639
|
-
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
14663
|
+
throw { code: ErrorCodes$2.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
14640
14664
|
}
|
|
14641
14665
|
if (!token) return [3 /*break*/, 2];
|
|
14642
14666
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -14645,7 +14669,7 @@
|
|
|
14645
14669
|
token: token
|
|
14646
14670
|
},
|
|
14647
14671
|
error: {
|
|
14648
|
-
code: ErrorCodes.UNAUTHORIZED,
|
|
14672
|
+
code: ErrorCodes$2.UNAUTHORIZED,
|
|
14649
14673
|
message: 'ERROR.UNAUTHORIZED'
|
|
14650
14674
|
},
|
|
14651
14675
|
fetchPolicy: 'no-cache'
|
|
@@ -14662,7 +14686,7 @@
|
|
|
14662
14686
|
_a.label = 2;
|
|
14663
14687
|
case 2:
|
|
14664
14688
|
challengeError = {
|
|
14665
|
-
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
14689
|
+
code: ErrorCodes$2.AUTH_CHALLENGE_ERROR,
|
|
14666
14690
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
14667
14691
|
};
|
|
14668
14692
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -14696,7 +14720,7 @@
|
|
|
14696
14720
|
};
|
|
14697
14721
|
return AccountService;
|
|
14698
14722
|
}(BaseGraphqlService));
|
|
14699
|
-
AccountService.ɵprov =
|
|
14723
|
+
AccountService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountService_Factory() { return new AccountService(i0__namespace.ɵɵinject(CryptoService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(LocalSettingsService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(FileService), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
|
|
14700
14724
|
AccountService.decorators = [
|
|
14701
14725
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
14702
14726
|
];
|
|
@@ -14709,7 +14733,7 @@
|
|
|
14709
14733
|
{ type: FileService },
|
|
14710
14734
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
14711
14735
|
]; };
|
|
14712
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
14736
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
14713
14737
|
|
|
14714
14738
|
var Software_1, Configuration_1;
|
|
14715
14739
|
// @dynamic
|
|
@@ -14951,13 +14975,13 @@
|
|
|
14951
14975
|
/* ------------------------------------
|
|
14952
14976
|
* GraphQL queries
|
|
14953
14977
|
* ------------------------------------*/
|
|
14954
|
-
var Fragments
|
|
14955
|
-
config: core.gql(templateObject_1$
|
|
14978
|
+
var Fragments = {
|
|
14979
|
+
config: core.gql(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "], ["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "])))
|
|
14956
14980
|
};
|
|
14957
|
-
var LoadQuery
|
|
14981
|
+
var LoadQuery = core.gql(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"], ["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"])), Fragments.config);
|
|
14958
14982
|
// Save (create or update) account mutation
|
|
14959
|
-
var SaveMutation
|
|
14960
|
-
var ClearCache = core.gql(templateObject_4$
|
|
14983
|
+
var SaveMutation = core.gql(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"], ["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"])), Fragments.config);
|
|
14984
|
+
var ClearCache = core.gql(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"], ["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"])));
|
|
14961
14985
|
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"])));
|
|
14962
14986
|
var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
|
|
14963
14987
|
var ConfigService = /** @class */ (function (_super) {
|
|
@@ -15050,12 +15074,12 @@
|
|
|
15050
15074
|
case 0:
|
|
15051
15075
|
now = Date.now();
|
|
15052
15076
|
console.debug('[config] Loading Pod configuration...');
|
|
15053
|
-
query = opts && opts.query || LoadQuery
|
|
15077
|
+
query = opts && opts.query || LoadQuery;
|
|
15054
15078
|
variables = opts && opts.variables || undefined;
|
|
15055
15079
|
return [4 /*yield*/, this.graphql.query({
|
|
15056
15080
|
query: query,
|
|
15057
15081
|
variables: variables,
|
|
15058
|
-
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15082
|
+
error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15059
15083
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
15060
15084
|
})];
|
|
15061
15085
|
case 1:
|
|
@@ -15089,12 +15113,12 @@
|
|
|
15089
15113
|
console.debug('[config] Saving Pod configuration...', config);
|
|
15090
15114
|
json = config.asObject();
|
|
15091
15115
|
return [4 /*yield*/, this.graphql.mutate({
|
|
15092
|
-
mutation: SaveMutation
|
|
15116
|
+
mutation: SaveMutation,
|
|
15093
15117
|
variables: {
|
|
15094
15118
|
data: json
|
|
15095
15119
|
},
|
|
15096
15120
|
error: {
|
|
15097
|
-
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
15121
|
+
code: ErrorCodes$2.SAVE_CONFIG_ERROR,
|
|
15098
15122
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
15099
15123
|
}
|
|
15100
15124
|
})];
|
|
@@ -15129,7 +15153,7 @@
|
|
|
15129
15153
|
return [4 /*yield*/, this.graphql.query({
|
|
15130
15154
|
query: CacheStatistics,
|
|
15131
15155
|
variables: null,
|
|
15132
|
-
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15156
|
+
error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15133
15157
|
fetchPolicy: 'network-only'
|
|
15134
15158
|
})];
|
|
15135
15159
|
case 1:
|
|
@@ -15153,7 +15177,7 @@
|
|
|
15153
15177
|
return [4 /*yield*/, this.graphql.query({
|
|
15154
15178
|
query: ClearCache,
|
|
15155
15179
|
variables: variables,
|
|
15156
|
-
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15180
|
+
error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15157
15181
|
fetchPolicy: 'network-only'
|
|
15158
15182
|
})];
|
|
15159
15183
|
case 1:
|
|
@@ -15354,7 +15378,7 @@
|
|
|
15354
15378
|
};
|
|
15355
15379
|
return ConfigService;
|
|
15356
15380
|
}(BaseGraphqlService));
|
|
15357
|
-
ConfigService.ɵprov =
|
|
15381
|
+
ConfigService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ConfigService_Factory() { return new ConfigService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(FileService), i0__namespace.ɵɵinject(i1__namespace$4.ToastController), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
|
|
15358
15382
|
ConfigService.decorators = [
|
|
15359
15383
|
{ type: i0.Injectable, args: [{
|
|
15360
15384
|
providedIn: 'root',
|
|
@@ -15372,9 +15396,9 @@
|
|
|
15372
15396
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
15373
15397
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
15374
15398
|
]; };
|
|
15375
|
-
var templateObject_1$
|
|
15399
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2, templateObject_5$1;
|
|
15376
15400
|
|
|
15377
|
-
var moment$
|
|
15401
|
+
var moment$2 = momentImported__namespace;
|
|
15378
15402
|
var PlatformService = /** @class */ (function () {
|
|
15379
15403
|
function PlatformService(platform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser) {
|
|
15380
15404
|
this.platform = platform;
|
|
@@ -15549,16 +15573,16 @@
|
|
|
15549
15573
|
}
|
|
15550
15574
|
// config moment lib
|
|
15551
15575
|
try {
|
|
15552
|
-
moment$
|
|
15576
|
+
moment$2.locale(event.lang);
|
|
15553
15577
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
15554
15578
|
}
|
|
15555
15579
|
// If error, fallback to en
|
|
15556
15580
|
catch (err) {
|
|
15557
|
-
moment$
|
|
15581
|
+
moment$2.locale('en');
|
|
15558
15582
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
15559
15583
|
}
|
|
15560
15584
|
// Config date adapter
|
|
15561
|
-
_this.dateAdapter.setLocale(moment$
|
|
15585
|
+
_this.dateAdapter.setLocale(moment$2.locale());
|
|
15562
15586
|
}
|
|
15563
15587
|
});
|
|
15564
15588
|
this.settings.onChange.subscribe(function (data) {
|
|
@@ -15739,7 +15763,7 @@
|
|
|
15739
15763
|
};
|
|
15740
15764
|
return PlatformService;
|
|
15741
15765
|
}());
|
|
15742
|
-
PlatformService.ɵprov =
|
|
15766
|
+
PlatformService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PlatformService_Factory() { return new PlatformService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i1__namespace$4.ToastController), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(i1__namespace.MomentDateAdapter), i0__namespace.ɵɵinject(EntitiesStorage), i0__namespace.ɵɵinject(LocalSettingsService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(AccountService), i0__namespace.ɵɵinject(ConfigService), i0__namespace.ɵɵinject(i6__namespace.CacheService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(AudioProvider), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(i13__namespace.StatusBar, 8), i0__namespace.ɵɵinject(i14__namespace.Keyboard, 8), i0__namespace.ɵɵinject(i10__namespace.SplashScreen, 8), i0__namespace.ɵɵinject(i16__namespace.InAppBrowser, 8)); }, token: PlatformService, providedIn: "root" });
|
|
15743
15767
|
PlatformService.decorators = [
|
|
15744
15768
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
15745
15769
|
];
|
|
@@ -15835,7 +15859,7 @@
|
|
|
15835
15859
|
};
|
|
15836
15860
|
return MatStepperI18n;
|
|
15837
15861
|
}(stepper.MatStepperIntl));
|
|
15838
|
-
MatStepperI18n.ɵprov =
|
|
15862
|
+
MatStepperI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
15839
15863
|
MatStepperI18n.decorators = [
|
|
15840
15864
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
15841
15865
|
];
|
|
@@ -16927,7 +16951,7 @@
|
|
|
16927
16951
|
return 1;
|
|
16928
16952
|
}
|
|
16929
16953
|
}
|
|
16930
|
-
var ɵ0$
|
|
16954
|
+
var ɵ0$1 = function (defaultStateSize) { return [
|
|
16931
16955
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
16932
16956
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
16933
16957
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -16935,7 +16959,7 @@
|
|
|
16935
16959
|
var SCALE_OPTIONS_DEFAULT = {
|
|
16936
16960
|
startColor: rgbArrayMap.red,
|
|
16937
16961
|
startStates: [0, 2, 3],
|
|
16938
|
-
startStepsFn: ɵ0$
|
|
16962
|
+
startStepsFn: ɵ0$1
|
|
16939
16963
|
};
|
|
16940
16964
|
/**
|
|
16941
16965
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -17027,24 +17051,24 @@
|
|
|
17027
17051
|
return result;
|
|
17028
17052
|
}
|
|
17029
17053
|
|
|
17030
|
-
var EntityTestClass = /** @class */ (function () {
|
|
17054
|
+
var EntityTestClass$1 = /** @class */ (function () {
|
|
17031
17055
|
function EntityTestClass() {
|
|
17032
17056
|
}
|
|
17033
17057
|
return EntityTestClass;
|
|
17034
17058
|
}());
|
|
17035
|
-
var FAKE_ENTITIES = [
|
|
17059
|
+
var FAKE_ENTITIES$1 = [
|
|
17036
17060
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
17037
17061
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
17038
17062
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
17039
17063
|
];
|
|
17040
|
-
function deepCopy(values, size) {
|
|
17064
|
+
function deepCopy$1(values, size) {
|
|
17041
17065
|
if (isNil(size)) {
|
|
17042
|
-
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
17066
|
+
return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
|
|
17043
17067
|
}
|
|
17044
17068
|
var result = [];
|
|
17045
17069
|
var i = 1;
|
|
17046
17070
|
while (result.length < size) {
|
|
17047
|
-
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
17071
|
+
result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
|
|
17048
17072
|
var name = entity.name + ' #' + i;
|
|
17049
17073
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
17050
17074
|
}));
|
|
@@ -17054,7 +17078,7 @@
|
|
|
17054
17078
|
var AutocompleteTestPage = /** @class */ (function () {
|
|
17055
17079
|
function AutocompleteTestPage(formBuilder) {
|
|
17056
17080
|
this.formBuilder = formBuilder;
|
|
17057
|
-
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
17081
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
|
|
17058
17082
|
this.$items = new rxjs.BehaviorSubject(undefined);
|
|
17059
17083
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
17060
17084
|
this.memoryHide = false;
|
|
@@ -17099,7 +17123,7 @@
|
|
|
17099
17123
|
});
|
|
17100
17124
|
// From items
|
|
17101
17125
|
this.autocompleteFields.add('entity-items-large', {
|
|
17102
|
-
items: FAKE_ENTITIES.slice(),
|
|
17126
|
+
items: FAKE_ENTITIES$1.slice(),
|
|
17103
17127
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
17104
17128
|
displayWith: this.entityToString
|
|
17105
17129
|
});
|
|
@@ -17112,12 +17136,12 @@
|
|
|
17112
17136
|
var _this = this;
|
|
17113
17137
|
return __generator(this, function (_a) {
|
|
17114
17138
|
data = {
|
|
17115
|
-
entity: deepCopy(FAKE_ENTITIES)[1],
|
|
17139
|
+
entity: deepCopy$1(FAKE_ENTITIES$1)[1],
|
|
17116
17140
|
// This item is NOT in the items list => i should be displayed anyway
|
|
17117
17141
|
missingEntity: {
|
|
17118
17142
|
id: -1, label: '??', name: 'Missing item'
|
|
17119
17143
|
},
|
|
17120
|
-
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
17144
|
+
disableEntity: deepCopy$1(FAKE_ENTITIES$1)[2]
|
|
17121
17145
|
};
|
|
17122
17146
|
this.form.setValue(data);
|
|
17123
17147
|
// Load observables
|
|
@@ -17306,13 +17330,13 @@
|
|
|
17306
17330
|
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_TESTING_PAGES,] }] }
|
|
17307
17331
|
]; };
|
|
17308
17332
|
|
|
17309
|
-
var moment$
|
|
17333
|
+
var moment$1 = momentImported__namespace;
|
|
17310
17334
|
var SwipeTestPage = /** @class */ (function () {
|
|
17311
17335
|
function SwipeTestPage(formBuilder, dateFormatPipe) {
|
|
17312
17336
|
this.formBuilder = formBuilder;
|
|
17313
17337
|
this.dateFormatPipe = dateFormatPipe;
|
|
17314
17338
|
this.$dates = new rxjs.BehaviorSubject(undefined);
|
|
17315
|
-
this._today = moment$
|
|
17339
|
+
this._today = moment$1().startOf('day');
|
|
17316
17340
|
this.form = formBuilder.group({
|
|
17317
17341
|
empty: [null, i1.Validators.required],
|
|
17318
17342
|
date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
|
|
@@ -17326,7 +17350,7 @@
|
|
|
17326
17350
|
var _this = this;
|
|
17327
17351
|
var dates = [];
|
|
17328
17352
|
for (var d = 0; d < 7; d++) {
|
|
17329
|
-
dates[d] = moment$
|
|
17353
|
+
dates[d] = moment$1(this._today).add(d - 3, 'day');
|
|
17330
17354
|
}
|
|
17331
17355
|
this.$dates.next(dates);
|
|
17332
17356
|
this.loadData();
|
|
@@ -17998,7 +18022,7 @@
|
|
|
17998
18022
|
return FormArrayHelper;
|
|
17999
18023
|
}());
|
|
18000
18024
|
|
|
18001
|
-
var moment
|
|
18025
|
+
var moment = momentImported__namespace;
|
|
18002
18026
|
var DateTimeTestPage = /** @class */ (function () {
|
|
18003
18027
|
function DateTimeTestPage(platform, formBuilder, cd) {
|
|
18004
18028
|
this.platform = platform;
|
|
@@ -18033,7 +18057,7 @@
|
|
|
18033
18057
|
var now, data;
|
|
18034
18058
|
var _this = this;
|
|
18035
18059
|
return __generator(this, function (_a) {
|
|
18036
|
-
now = moment
|
|
18060
|
+
now = moment();
|
|
18037
18061
|
data = {
|
|
18038
18062
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
18039
18063
|
enable: toDateISOString(now),
|
|
@@ -18097,23 +18121,23 @@
|
|
|
18097
18121
|
{ type: i0.ChangeDetectorRef }
|
|
18098
18122
|
]; };
|
|
18099
18123
|
|
|
18100
|
-
var EntityTestClass
|
|
18124
|
+
var EntityTestClass = /** @class */ (function () {
|
|
18101
18125
|
function EntityTestClass() {
|
|
18102
18126
|
}
|
|
18103
18127
|
return EntityTestClass;
|
|
18104
18128
|
}());
|
|
18105
|
-
var FAKE_ENTITIES
|
|
18129
|
+
var FAKE_ENTITIES = [
|
|
18106
18130
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
18107
18131
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
18108
18132
|
{ id: 3, label: 'CCC', name: 'Item C' }
|
|
18109
18133
|
];
|
|
18110
|
-
function deepCopy
|
|
18111
|
-
return (values || FAKE_ENTITIES
|
|
18134
|
+
function deepCopy(values) {
|
|
18135
|
+
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
18112
18136
|
}
|
|
18113
18137
|
var ChipsTestPage = /** @class */ (function () {
|
|
18114
18138
|
function ChipsTestPage(formBuilder) {
|
|
18115
18139
|
this.formBuilder = formBuilder;
|
|
18116
|
-
this._items = deepCopy
|
|
18140
|
+
this._items = deepCopy(FAKE_ENTITIES);
|
|
18117
18141
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
18118
18142
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
18119
18143
|
this.form = formBuilder.group({
|
|
@@ -18133,7 +18157,7 @@
|
|
|
18133
18157
|
});
|
|
18134
18158
|
// From items
|
|
18135
18159
|
this.autocompleteFields.add('entity-items', {
|
|
18136
|
-
items: FAKE_ENTITIES
|
|
18160
|
+
items: FAKE_ENTITIES.slice(),
|
|
18137
18161
|
attributes: ['label', 'name'],
|
|
18138
18162
|
displayWith: this.entityToString
|
|
18139
18163
|
});
|
|
@@ -18156,8 +18180,8 @@
|
|
|
18156
18180
|
data = {
|
|
18157
18181
|
entity: [],
|
|
18158
18182
|
// THis item is NOT in the items list => i should be displayed anyway
|
|
18159
|
-
entityInitial: FAKE_ENTITIES
|
|
18160
|
-
disableEntity: FAKE_ENTITIES
|
|
18183
|
+
entityInitial: FAKE_ENTITIES.slice(1, 2),
|
|
18184
|
+
disableEntity: FAKE_ENTITIES.slice(1, 2)
|
|
18161
18185
|
};
|
|
18162
18186
|
this.form.setValue(data);
|
|
18163
18187
|
return [2 /*return*/];
|
|
@@ -18167,7 +18191,7 @@
|
|
|
18167
18191
|
ChipsTestPage.prototype.loadItems = function () {
|
|
18168
18192
|
return __awaiter(this, void 0, void 0, function () {
|
|
18169
18193
|
return __generator(this, function (_a) {
|
|
18170
|
-
this._$items.next(deepCopy
|
|
18194
|
+
this._$items.next(deepCopy(FAKE_ENTITIES));
|
|
18171
18195
|
return [2 /*return*/];
|
|
18172
18196
|
});
|
|
18173
18197
|
});
|
|
@@ -18204,7 +18228,7 @@
|
|
|
18204
18228
|
{ type: i1.FormBuilder }
|
|
18205
18229
|
]; };
|
|
18206
18230
|
|
|
18207
|
-
var routes = [
|
|
18231
|
+
var routes$1 = [
|
|
18208
18232
|
{
|
|
18209
18233
|
path: '',
|
|
18210
18234
|
pathMatch: 'full',
|
|
@@ -18254,7 +18278,7 @@
|
|
|
18254
18278
|
i1.ReactiveFormsModule,
|
|
18255
18279
|
SharedMaterialModule,
|
|
18256
18280
|
i1$2.TranslateModule.forChild(),
|
|
18257
|
-
i3.RouterModule.forChild(routes)
|
|
18281
|
+
i3.RouterModule.forChild(routes$1)
|
|
18258
18282
|
],
|
|
18259
18283
|
declarations: [
|
|
18260
18284
|
MaterialTestingPage,
|
|
@@ -19329,7 +19353,7 @@
|
|
|
19329
19353
|
};
|
|
19330
19354
|
return UserSettingsValidatorService;
|
|
19331
19355
|
}(AppValidatorService));
|
|
19332
|
-
UserSettingsValidatorService.ɵprov =
|
|
19356
|
+
UserSettingsValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
19333
19357
|
UserSettingsValidatorService.decorators = [
|
|
19334
19358
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
19335
19359
|
];
|
|
@@ -19377,7 +19401,7 @@
|
|
|
19377
19401
|
};
|
|
19378
19402
|
return AccountValidatorService;
|
|
19379
19403
|
}(AppValidatorService));
|
|
19380
|
-
AccountValidatorService.ɵprov =
|
|
19404
|
+
AccountValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder), i0__namespace.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
|
|
19381
19405
|
AccountValidatorService.decorators = [
|
|
19382
19406
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
19383
19407
|
];
|
|
@@ -19969,7 +19993,7 @@
|
|
|
19969
19993
|
};
|
|
19970
19994
|
return LocalSettingsValidatorService;
|
|
19971
19995
|
}(AppValidatorService));
|
|
19972
|
-
LocalSettingsValidatorService.ɵprov =
|
|
19996
|
+
LocalSettingsValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder), i0__namespace.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
|
|
19973
19997
|
LocalSettingsValidatorService.decorators = [
|
|
19974
19998
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
19975
19999
|
];
|
|
@@ -20743,7 +20767,7 @@
|
|
|
20743
20767
|
};
|
|
20744
20768
|
return IsOnFieldModePipe;
|
|
20745
20769
|
}());
|
|
20746
|
-
IsOnFieldModePipe.ɵprov =
|
|
20770
|
+
IsOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
20747
20771
|
IsOnFieldModePipe.decorators = [
|
|
20748
20772
|
{ type: i0.Pipe, args: [{
|
|
20749
20773
|
name: 'isOnField'
|
|
@@ -20758,7 +20782,7 @@
|
|
|
20758
20782
|
};
|
|
20759
20783
|
return IsNotOnFieldModePipe;
|
|
20760
20784
|
}());
|
|
20761
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
20785
|
+
IsNotOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
20762
20786
|
IsNotOnFieldModePipe.decorators = [
|
|
20763
20787
|
{ type: i0.Pipe, args: [{
|
|
20764
20788
|
name: 'isNotOnField'
|
|
@@ -20776,7 +20800,7 @@
|
|
|
20776
20800
|
};
|
|
20777
20801
|
return PersonToStringPipe;
|
|
20778
20802
|
}());
|
|
20779
|
-
PersonToStringPipe.ɵprov =
|
|
20803
|
+
PersonToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
20780
20804
|
PersonToStringPipe.decorators = [
|
|
20781
20805
|
{ type: i0.Pipe, args: [{
|
|
20782
20806
|
name: 'personToString'
|
|
@@ -21011,7 +21035,7 @@
|
|
|
21011
21035
|
};
|
|
21012
21036
|
return IsLoginAccountPipe;
|
|
21013
21037
|
}());
|
|
21014
|
-
IsLoginAccountPipe.ɵprov =
|
|
21038
|
+
IsLoginAccountPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
21015
21039
|
IsLoginAccountPipe.decorators = [
|
|
21016
21040
|
{ type: i0.Pipe, args: [{
|
|
21017
21041
|
name: 'isLogin'
|
|
@@ -21026,7 +21050,7 @@
|
|
|
21026
21050
|
};
|
|
21027
21051
|
return AccountToStringPipe;
|
|
21028
21052
|
}());
|
|
21029
|
-
AccountToStringPipe.ɵprov =
|
|
21053
|
+
AccountToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
21030
21054
|
AccountToStringPipe.decorators = [
|
|
21031
21055
|
{ type: i0.Pipe, args: [{
|
|
21032
21056
|
name: 'accountToString'
|
|
@@ -21044,7 +21068,7 @@
|
|
|
21044
21068
|
};
|
|
21045
21069
|
return DepartmentToStringPipe;
|
|
21046
21070
|
}());
|
|
21047
|
-
DepartmentToStringPipe.ɵprov =
|
|
21071
|
+
DepartmentToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
21048
21072
|
DepartmentToStringPipe.decorators = [
|
|
21049
21073
|
{ type: i0.Pipe, args: [{
|
|
21050
21074
|
name: 'departmentToString'
|
|
@@ -21079,7 +21103,7 @@
|
|
|
21079
21103
|
};
|
|
21080
21104
|
return MenuService;
|
|
21081
21105
|
}());
|
|
21082
|
-
MenuService.ɵprov =
|
|
21106
|
+
MenuService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
21083
21107
|
MenuService.decorators = [
|
|
21084
21108
|
{ type: i0.Injectable, args: [{
|
|
21085
21109
|
providedIn: 'root'
|
|
@@ -21658,7 +21682,7 @@
|
|
|
21658
21682
|
};
|
|
21659
21683
|
return AuthGuardService;
|
|
21660
21684
|
}());
|
|
21661
|
-
AuthGuardService.ɵprov =
|
|
21685
|
+
AuthGuardService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AuthGuardService_Factory() { return new AuthGuardService(i0__namespace.ɵɵinject(AccountService), i0__namespace.ɵɵinject(i1__namespace$4.ModalController), i0__namespace.ɵɵinject(i3__namespace$3.Router), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: AuthGuardService, providedIn: "root" });
|
|
21662
21686
|
AuthGuardService.decorators = [
|
|
21663
21687
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21664
21688
|
];
|
|
@@ -21709,7 +21733,7 @@
|
|
|
21709
21733
|
query: query,
|
|
21710
21734
|
variables: { id: id },
|
|
21711
21735
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
21712
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
21736
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
21713
21737
|
})
|
|
21714
21738
|
.pipe(operators.map(function (_a) {
|
|
21715
21739
|
var data = _a.data;
|
|
@@ -21731,7 +21755,7 @@
|
|
|
21731
21755
|
query: query,
|
|
21732
21756
|
variables: { id: id },
|
|
21733
21757
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
21734
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
21758
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
21735
21759
|
})];
|
|
21736
21760
|
case 1:
|
|
21737
21761
|
data = (_a.sent()).data;
|
|
@@ -21767,7 +21791,7 @@
|
|
|
21767
21791
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
21768
21792
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
21769
21793
|
variables: variables,
|
|
21770
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
21794
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
21771
21795
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
21772
21796
|
})
|
|
21773
21797
|
.pipe(operators.map(function (_a) {
|
|
@@ -21809,7 +21833,7 @@
|
|
|
21809
21833
|
return [4 /*yield*/, this.graphql.query({
|
|
21810
21834
|
query: query,
|
|
21811
21835
|
variables: variables,
|
|
21812
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
21836
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
21813
21837
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
21814
21838
|
})];
|
|
21815
21839
|
case 1:
|
|
@@ -21867,7 +21891,7 @@
|
|
|
21867
21891
|
variables: {
|
|
21868
21892
|
data: json
|
|
21869
21893
|
},
|
|
21870
|
-
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
21894
|
+
error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
21871
21895
|
update: function (proxy, _a) {
|
|
21872
21896
|
var data = _a.data;
|
|
21873
21897
|
var savedEntities = data && data.data;
|
|
@@ -21934,7 +21958,7 @@
|
|
|
21934
21958
|
variables: {
|
|
21935
21959
|
data: json
|
|
21936
21960
|
},
|
|
21937
|
-
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
21961
|
+
error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
21938
21962
|
update: function (cache, _a) {
|
|
21939
21963
|
var data = _a.data;
|
|
21940
21964
|
// Update entity
|
|
@@ -21992,7 +22016,7 @@
|
|
|
21992
22016
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
21993
22017
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
21994
22018
|
variables: { ids: ids },
|
|
21995
|
-
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
22019
|
+
error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
21996
22020
|
update: function (cache, res) {
|
|
21997
22021
|
// Remove from cache
|
|
21998
22022
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -22045,7 +22069,7 @@
|
|
|
22045
22069
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
22046
22070
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
22047
22071
|
variables: { id: id },
|
|
22048
|
-
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
22072
|
+
error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
22049
22073
|
update: function (proxy, res) {
|
|
22050
22074
|
// Remove from cache
|
|
22051
22075
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -22084,7 +22108,7 @@
|
|
|
22084
22108
|
query: opts && opts.query || this.subscriptions.listenChanges,
|
|
22085
22109
|
variables: variables,
|
|
22086
22110
|
error: {
|
|
22087
|
-
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
22111
|
+
code: ErrorCodes$2.SUBSCRIBE_DATA_ERROR,
|
|
22088
22112
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
22089
22113
|
}
|
|
22090
22114
|
})
|
|
@@ -22273,7 +22297,7 @@
|
|
|
22273
22297
|
if (this._debug)
|
|
22274
22298
|
invalidRows.forEach(this.logRowErrors);
|
|
22275
22299
|
// Stop with an error
|
|
22276
|
-
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
22300
|
+
throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
22277
22301
|
}
|
|
22278
22302
|
this._editingRowCount = 0;
|
|
22279
22303
|
data = void 0;
|
|
@@ -23211,11 +23235,11 @@
|
|
|
23211
23235
|
switch (_d.label) {
|
|
23212
23236
|
case 0:
|
|
23213
23237
|
if (this.readOnly) {
|
|
23214
|
-
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
23238
|
+
throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
23215
23239
|
}
|
|
23216
23240
|
this.resetError();
|
|
23217
23241
|
if (!this.confirmEditCreate()) {
|
|
23218
|
-
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
23242
|
+
throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
23219
23243
|
}
|
|
23220
23244
|
editedRowId = this.keepEditedRowOnSave && ((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.id);
|
|
23221
23245
|
_d.label = 1;
|
|
@@ -23379,7 +23403,7 @@
|
|
|
23379
23403
|
switch (_d.label) {
|
|
23380
23404
|
case 0:
|
|
23381
23405
|
if (this.readOnly) {
|
|
23382
|
-
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
23406
|
+
throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
23383
23407
|
}
|
|
23384
23408
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
23385
23409
|
return [2 /*return*/, 0]; // SKip
|
|
@@ -23582,7 +23606,7 @@
|
|
|
23582
23606
|
else {
|
|
23583
23607
|
// cancel (if confirmation)
|
|
23584
23608
|
if (this.confirmBeforeCancel) {
|
|
23585
|
-
this.cancelExistingRow(event, row);
|
|
23609
|
+
this.cancelExistingRow(event, row, { keepEditing: false });
|
|
23586
23610
|
}
|
|
23587
23611
|
// Or validate, if no confirmation
|
|
23588
23612
|
else {
|
|
@@ -24039,7 +24063,7 @@
|
|
|
24039
24063
|
});
|
|
24040
24064
|
return;
|
|
24041
24065
|
}
|
|
24042
|
-
var keepEditing = row.editing;
|
|
24066
|
+
var keepEditing = row.editing && (!opts || opts.keepEditing !== false);
|
|
24043
24067
|
this.editedRow = undefined; // unselect row
|
|
24044
24068
|
this._dataSource.cancelOrDelete(row);
|
|
24045
24069
|
this.onCancelOrDeleteRow.next(row);
|
|
@@ -24992,7 +25016,7 @@
|
|
|
24992
25016
|
case 3:
|
|
24993
25017
|
data = _a.sent();
|
|
24994
25018
|
if (!data)
|
|
24995
|
-
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
25019
|
+
throw { code: ErrorCodes$2.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
24996
25020
|
this._usageMode = this.computeUsageMode(data);
|
|
24997
25021
|
return [4 /*yield*/, this.onEntityLoaded(data, opts)];
|
|
24998
25022
|
case 4:
|
|
@@ -25714,10 +25738,10 @@
|
|
|
25714
25738
|
exports.UserEventFilter = __decorate([
|
|
25715
25739
|
EntityClass({ typename: 'UserEventVO' })
|
|
25716
25740
|
], exports.UserEventFilter);
|
|
25717
|
-
var SaveQuery = core.gql(templateObject_1$
|
|
25718
|
-
var LoadAllQuery = core.gql(templateObject_2$
|
|
25719
|
-
var DeleteByIdsMutation = core.gql(templateObject_3$
|
|
25720
|
-
var LoadAllWithContentQuery = core.gql(templateObject_4$
|
|
25741
|
+
var SaveQuery = core.gql(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
|
|
25742
|
+
var LoadAllQuery = core.gql(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"], ["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"])), SocialFragments.lightUserEvent);
|
|
25743
|
+
var DeleteByIdsMutation = core.gql(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"], ["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"])));
|
|
25744
|
+
var LoadAllWithContentQuery = core.gql(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
|
|
25721
25745
|
var UserEventService = /** @class */ (function (_super) {
|
|
25722
25746
|
__extends(UserEventService, _super);
|
|
25723
25747
|
function UserEventService(graphql, accountService, network, translate, toastController, environment) {
|
|
@@ -26038,7 +26062,7 @@
|
|
|
26038
26062
|
};
|
|
26039
26063
|
return UserEventService;
|
|
26040
26064
|
}(BaseGraphqlService));
|
|
26041
|
-
UserEventService.ɵprov =
|
|
26065
|
+
UserEventService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function UserEventService_Factory() { return new UserEventService(i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(AccountService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(i1__namespace$4.ToastController), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: UserEventService, providedIn: "root" });
|
|
26042
26066
|
UserEventService.decorators = [
|
|
26043
26067
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
26044
26068
|
];
|
|
@@ -26050,7 +26074,7 @@
|
|
|
26050
26074
|
{ type: i1$5.ToastController },
|
|
26051
26075
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
26052
26076
|
]; };
|
|
26053
|
-
var templateObject_1$
|
|
26077
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1;
|
|
26054
26078
|
|
|
26055
26079
|
var ICONS_MAP = {
|
|
26056
26080
|
DEBUG_DATA: { matIcon: 'bug_report' },
|
|
@@ -26311,16 +26335,16 @@
|
|
|
26311
26335
|
], exports.PersonFilter);
|
|
26312
26336
|
|
|
26313
26337
|
var PersonFragments = {
|
|
26314
|
-
person: core.gql(templateObject_1
|
|
26338
|
+
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 }"])))
|
|
26315
26339
|
};
|
|
26316
26340
|
// Load persons query
|
|
26317
26341
|
var PersonQueries = {
|
|
26318
|
-
loadAll: core.gql(templateObject_2
|
|
26319
|
-
loadAllWithTotal: core.gql(templateObject_3
|
|
26342
|
+
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),
|
|
26343
|
+
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)
|
|
26320
26344
|
};
|
|
26321
26345
|
var PersonMutations = {
|
|
26322
|
-
saveAll: core.gql(templateObject_4
|
|
26323
|
-
deleteAll: core.gql(templateObject_5
|
|
26346
|
+
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),
|
|
26347
|
+
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 }"])))
|
|
26324
26348
|
};
|
|
26325
26349
|
var PersonService = /** @class */ (function (_super_1) {
|
|
26326
26350
|
__extends(PersonService, _super_1);
|
|
@@ -26443,7 +26467,7 @@
|
|
|
26443
26467
|
};
|
|
26444
26468
|
return PersonService;
|
|
26445
26469
|
}(BaseEntityService));
|
|
26446
|
-
PersonService.ɵprov =
|
|
26470
|
+
PersonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonService_Factory() { return new PersonService(i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(PlatformService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(EntitiesStorage)); }, token: PersonService, providedIn: "root" });
|
|
26447
26471
|
PersonService.decorators = [
|
|
26448
26472
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
26449
26473
|
];
|
|
@@ -26453,7 +26477,7 @@
|
|
|
26453
26477
|
{ type: NetworkService },
|
|
26454
26478
|
{ type: EntitiesStorage }
|
|
26455
26479
|
]; };
|
|
26456
|
-
var templateObject_1
|
|
26480
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
26457
26481
|
|
|
26458
26482
|
var PersonValidatorService = /** @class */ (function () {
|
|
26459
26483
|
function PersonValidatorService(formBuilder, accountValidatorService) {
|
|
@@ -26476,7 +26500,7 @@
|
|
|
26476
26500
|
};
|
|
26477
26501
|
return PersonValidatorService;
|
|
26478
26502
|
}());
|
|
26479
|
-
PersonValidatorService.ɵprov =
|
|
26503
|
+
PersonValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder), i0__namespace.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
|
|
26480
26504
|
PersonValidatorService.decorators = [
|
|
26481
26505
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
26482
26506
|
];
|
|
@@ -26648,7 +26672,7 @@
|
|
|
26648
26672
|
],
|
|
26649
26673
|
animations: [slideUpDownAnimation],
|
|
26650
26674
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
26651
|
-
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}"]
|
|
26675
|
+
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:calc(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}"]
|
|
26652
26676
|
},] }
|
|
26653
26677
|
];
|
|
26654
26678
|
UsersPage.ctorParameters = function () { return [
|
|
@@ -26697,16 +26721,16 @@
|
|
|
26697
26721
|
];
|
|
26698
26722
|
AdminModule.ctorParameters = function () { return []; };
|
|
26699
26723
|
|
|
26700
|
-
var ɵ0
|
|
26724
|
+
var ɵ0 = {
|
|
26701
26725
|
profile: 'ADMIN'
|
|
26702
26726
|
};
|
|
26703
|
-
var routes
|
|
26727
|
+
var routes = [
|
|
26704
26728
|
{
|
|
26705
26729
|
path: 'users',
|
|
26706
26730
|
pathMatch: 'full',
|
|
26707
26731
|
component: UsersPage,
|
|
26708
26732
|
canActivate: [AuthGuardService],
|
|
26709
|
-
data: ɵ0
|
|
26733
|
+
data: ɵ0
|
|
26710
26734
|
}
|
|
26711
26735
|
];
|
|
26712
26736
|
var AdminRoutingModule = /** @class */ (function () {
|
|
@@ -26719,13 +26743,13 @@
|
|
|
26719
26743
|
imports: [
|
|
26720
26744
|
SharedRoutingModule,
|
|
26721
26745
|
AdminModule,
|
|
26722
|
-
i3.RouterModule.forChild(routes
|
|
26746
|
+
i3.RouterModule.forChild(routes)
|
|
26723
26747
|
],
|
|
26724
26748
|
exports: [i3.RouterModule]
|
|
26725
26749
|
},] }
|
|
26726
26750
|
];
|
|
26727
26751
|
|
|
26728
|
-
var ErrorCodes
|
|
26752
|
+
var ErrorCodes = {
|
|
26729
26753
|
LOAD_PERSONS_ERROR: 100,
|
|
26730
26754
|
SAVE_PERSONS_ERROR: 101,
|
|
26731
26755
|
DELETE_PERSONS_ERROR: 102,
|
|
@@ -26833,7 +26857,7 @@
|
|
|
26833
26857
|
exports.EntityStore = EntityStore;
|
|
26834
26858
|
exports.EntityUtils = EntityUtils;
|
|
26835
26859
|
exports.Environment = Environment;
|
|
26836
|
-
exports.ErrorCodes = ErrorCodes
|
|
26860
|
+
exports.ErrorCodes = ErrorCodes;
|
|
26837
26861
|
exports.EvenPipe = EvenPipe;
|
|
26838
26862
|
exports.FileService = FileService;
|
|
26839
26863
|
exports.FileSizePipe = FileSizePipe;
|
|
@@ -26841,7 +26865,7 @@
|
|
|
26841
26865
|
exports.FormButtonsBarComponent = FormButtonsBarComponent;
|
|
26842
26866
|
exports.FormButtonsBarToken = FormButtonsBarToken;
|
|
26843
26867
|
exports.FormFieldValuesHolder = FormFieldValuesHolder;
|
|
26844
|
-
exports.Fragments = Fragments
|
|
26868
|
+
exports.Fragments = Fragments;
|
|
26845
26869
|
exports.GraphqlService = GraphqlService;
|
|
26846
26870
|
exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
|
|
26847
26871
|
exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
|