@sumaris-net/ngx-components 0.13.13 → 0.13.14
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 +243 -268
- 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/services/model/entity.model.js +2 -2
- package/fesm2015/ngx-sumaris-components.js +255 -270
- package/fesm2015/ngx-sumaris-components.js.map +1 -1
- package/ngx-sumaris-components.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -26,35 +26,11 @@
|
|
|
26
26
|
return Object.freeze(n);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
30
|
-
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
31
|
-
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
32
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2);
|
|
33
|
-
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1);
|
|
34
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
35
|
-
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
36
29
|
var momentImported__namespace = /*#__PURE__*/_interopNamespace(momentImported);
|
|
37
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
|
|
38
|
-
var i3__namespace$3 = /*#__PURE__*/_interopNamespace(i3);
|
|
39
|
-
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
40
|
-
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
41
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2$2);
|
|
42
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3$1);
|
|
43
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
44
30
|
var uuidv4Imported__namespace = /*#__PURE__*/_interopNamespace(uuidv4Imported);
|
|
45
|
-
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
46
|
-
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
47
|
-
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
48
|
-
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
49
|
-
var i2__namespace$4 = /*#__PURE__*/_interopNamespace(i2$4);
|
|
50
|
-
var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
|
|
51
31
|
var QueueLink__default = /*#__PURE__*/_interopDefaultLegacy(QueueLink);
|
|
52
32
|
var SerializingLink__default = /*#__PURE__*/_interopDefaultLegacy(SerializingLink);
|
|
53
33
|
var loggerLink__default = /*#__PURE__*/_interopDefaultLegacy(loggerLink);
|
|
54
|
-
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$3);
|
|
55
|
-
var i14__namespace = /*#__PURE__*/_interopNamespace(i14);
|
|
56
|
-
var i15__namespace = /*#__PURE__*/_interopNamespace(i15);
|
|
57
|
-
var i17__namespace = /*#__PURE__*/_interopNamespace(i17);
|
|
58
34
|
|
|
59
35
|
var ENVIRONMENT = new i0.InjectionToken('ENV');
|
|
60
36
|
var Environment = /** @class */ (function () {
|
|
@@ -1140,19 +1116,19 @@
|
|
|
1140
1116
|
};
|
|
1141
1117
|
return MatAutocompleteConfigHolder;
|
|
1142
1118
|
}());
|
|
1143
|
-
var DEFAULT_VALUE_ACCESSOR
|
|
1119
|
+
var DEFAULT_VALUE_ACCESSOR = {
|
|
1144
1120
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
1145
1121
|
useExisting: i0.forwardRef(function () { return MatAutocompleteField; }),
|
|
1146
1122
|
multi: true
|
|
1147
1123
|
};
|
|
1148
|
-
var noop
|
|
1149
|
-
var ɵ0
|
|
1124
|
+
var noop = function () { };
|
|
1125
|
+
var ɵ0 = noop;
|
|
1150
1126
|
var MatAutocompleteField = /** @class */ (function () {
|
|
1151
1127
|
function MatAutocompleteField(cd, formGroupDir) {
|
|
1152
1128
|
this.cd = cd;
|
|
1153
1129
|
this.formGroupDir = formGroupDir;
|
|
1154
|
-
this._onChangeCallback = noop
|
|
1155
|
-
this._onTouchedCallback = noop
|
|
1130
|
+
this._onChangeCallback = noop;
|
|
1131
|
+
this._onTouchedCallback = noop;
|
|
1156
1132
|
this._subscription = new rxjs.Subscription();
|
|
1157
1133
|
this._filter$ = new rxjs.BehaviorSubject(undefined);
|
|
1158
1134
|
this._reload$ = new rxjs.Subject();
|
|
@@ -1729,7 +1705,7 @@
|
|
|
1729
1705
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
1730
1706
|
selector: 'mat-autocomplete-field',
|
|
1731
1707
|
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 (focus)=\"filterInputTextFocusInEvent($event)\"\n (blur)=\"filterInputTextBlurEvent($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",
|
|
1732
|
-
providers: [DEFAULT_VALUE_ACCESSOR
|
|
1708
|
+
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
1733
1709
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1734
1710
|
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}"]
|
|
1735
1711
|
},] }
|
|
@@ -1804,7 +1780,7 @@
|
|
|
1804
1780
|
};
|
|
1805
1781
|
return DateFormatPipe;
|
|
1806
1782
|
}());
|
|
1807
|
-
DateFormatPipe.ɵprov =
|
|
1783
|
+
DateFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFormatPipe_Factory() { return new DateFormatPipe(i0.ɵɵinject(i1$1.MomentDateAdapter), i0.ɵɵinject(i1$2.TranslateService)); }, token: DateFormatPipe, providedIn: "root" });
|
|
1808
1784
|
DateFormatPipe.decorators = [
|
|
1809
1785
|
{ type: i0.Pipe, args: [{
|
|
1810
1786
|
name: 'dateFormat'
|
|
@@ -1816,7 +1792,7 @@
|
|
|
1816
1792
|
{ type: i1$2.TranslateService }
|
|
1817
1793
|
]; };
|
|
1818
1794
|
|
|
1819
|
-
var moment
|
|
1795
|
+
var moment = momentImported__namespace;
|
|
1820
1796
|
var DateDiffDurationPipe = /** @class */ (function () {
|
|
1821
1797
|
function DateDiffDurationPipe(dateAdapter, translate) {
|
|
1822
1798
|
var _this = this;
|
|
@@ -1833,10 +1809,10 @@
|
|
|
1833
1809
|
return this.format(startDate, endDate);
|
|
1834
1810
|
};
|
|
1835
1811
|
DateDiffDurationPipe.prototype.format = function (startDate, endDate) {
|
|
1836
|
-
var duration = moment
|
|
1812
|
+
var duration = moment.duration(endDate.diff(startDate));
|
|
1837
1813
|
if (duration.asMinutes() < 0)
|
|
1838
1814
|
return '';
|
|
1839
|
-
var timeDuration = moment
|
|
1815
|
+
var timeDuration = moment(0)
|
|
1840
1816
|
.hour(duration.hours())
|
|
1841
1817
|
.minute(duration.minutes());
|
|
1842
1818
|
var days = Math.floor(duration.asDays());
|
|
@@ -1844,7 +1820,7 @@
|
|
|
1844
1820
|
};
|
|
1845
1821
|
return DateDiffDurationPipe;
|
|
1846
1822
|
}());
|
|
1847
|
-
DateDiffDurationPipe.ɵprov =
|
|
1823
|
+
DateDiffDurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateDiffDurationPipe_Factory() { return new DateDiffDurationPipe(i0.ɵɵinject(i1$3.DateAdapter), i0.ɵɵinject(i1$2.TranslateService)); }, token: DateDiffDurationPipe, providedIn: "root" });
|
|
1848
1824
|
DateDiffDurationPipe.decorators = [
|
|
1849
1825
|
{ type: i0.Pipe, args: [{
|
|
1850
1826
|
name: 'dateDiffDuration'
|
|
@@ -1866,7 +1842,7 @@
|
|
|
1866
1842
|
};
|
|
1867
1843
|
return DateFromNowPipe;
|
|
1868
1844
|
}());
|
|
1869
|
-
DateFromNowPipe.ɵprov =
|
|
1845
|
+
DateFromNowPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0.ɵɵinject(i1$1.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
|
|
1870
1846
|
DateFromNowPipe.decorators = [
|
|
1871
1847
|
{ type: i0.Pipe, args: [{
|
|
1872
1848
|
name: 'dateFromNow'
|
|
@@ -1935,7 +1911,7 @@
|
|
|
1935
1911
|
value *= -1;
|
|
1936
1912
|
}
|
|
1937
1913
|
}
|
|
1938
|
-
var degrees = roundFloat
|
|
1914
|
+
var degrees = roundFloat(value, opts.maxDecimals).toString();
|
|
1939
1915
|
// Add sign
|
|
1940
1916
|
var sign = negative ? '-' : '+';
|
|
1941
1917
|
if (opts.placeholderChar) {
|
|
@@ -1986,7 +1962,7 @@
|
|
|
1986
1962
|
}
|
|
1987
1963
|
var degrees = Math.trunc(value);
|
|
1988
1964
|
var minutes = Math.trunc((value - degrees) * 60);
|
|
1989
|
-
var seconds = roundFloat
|
|
1965
|
+
var seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
|
|
1990
1966
|
while (seconds >= 60) {
|
|
1991
1967
|
seconds -= 60;
|
|
1992
1968
|
minutes += 1;
|
|
@@ -2054,7 +2030,7 @@
|
|
|
2054
2030
|
}
|
|
2055
2031
|
}
|
|
2056
2032
|
var degrees = Math.trunc(value);
|
|
2057
|
-
var minutes = roundFloat
|
|
2033
|
+
var minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
|
|
2058
2034
|
while (minutes >= 60) {
|
|
2059
2035
|
minutes -= 60;
|
|
2060
2036
|
degrees += 1;
|
|
@@ -2105,15 +2081,15 @@
|
|
|
2105
2081
|
return NaN;
|
|
2106
2082
|
}
|
|
2107
2083
|
if (pattern === 'DD')
|
|
2108
|
-
return roundFloat
|
|
2084
|
+
return roundFloat(degrees, maxDecimals);
|
|
2109
2085
|
var minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
|
|
2110
2086
|
var seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
|
|
2111
2087
|
var direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
|
|
2112
2088
|
var sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
|
|
2113
2089
|
degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
|
|
2114
|
-
return roundFloat
|
|
2090
|
+
return roundFloat(degrees, maxDecimals);
|
|
2115
2091
|
}
|
|
2116
|
-
function roundFloat
|
|
2092
|
+
function roundFloat(input, maxDecimals) {
|
|
2117
2093
|
if (maxDecimals > 0) {
|
|
2118
2094
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
2119
2095
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -2136,7 +2112,7 @@
|
|
|
2136
2112
|
};
|
|
2137
2113
|
return LatLongFormatPipe;
|
|
2138
2114
|
}());
|
|
2139
|
-
LatLongFormatPipe.ɵprov =
|
|
2115
|
+
LatLongFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
|
|
2140
2116
|
LatLongFormatPipe.decorators = [
|
|
2141
2117
|
{ type: i0.Pipe, args: [{
|
|
2142
2118
|
name: 'latLongFormat'
|
|
@@ -2149,7 +2125,7 @@
|
|
|
2149
2125
|
}
|
|
2150
2126
|
return LatitudeFormatPipe;
|
|
2151
2127
|
}());
|
|
2152
|
-
LatitudeFormatPipe.ɵprov =
|
|
2128
|
+
LatitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
|
|
2153
2129
|
LatitudeFormatPipe.decorators = [
|
|
2154
2130
|
{ type: i0.Pipe, args: [{
|
|
2155
2131
|
name: 'latitudeFormat'
|
|
@@ -2162,7 +2138,7 @@
|
|
|
2162
2138
|
}
|
|
2163
2139
|
return LongitudeFormatPipe;
|
|
2164
2140
|
}());
|
|
2165
|
-
LongitudeFormatPipe.ɵprov =
|
|
2141
|
+
LongitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
|
|
2166
2142
|
LongitudeFormatPipe.decorators = [
|
|
2167
2143
|
{ type: i0.Pipe, args: [{
|
|
2168
2144
|
name: 'longitudeFormat'
|
|
@@ -2185,7 +2161,7 @@
|
|
|
2185
2161
|
};
|
|
2186
2162
|
return NumberFormatPipe;
|
|
2187
2163
|
}());
|
|
2188
|
-
NumberFormatPipe.ɵprov =
|
|
2164
|
+
NumberFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
|
|
2189
2165
|
NumberFormatPipe.decorators = [
|
|
2190
2166
|
{ type: i0.Pipe, args: [{
|
|
2191
2167
|
name: 'numberFormat'
|
|
@@ -2228,7 +2204,7 @@
|
|
|
2228
2204
|
};
|
|
2229
2205
|
return HighlightPipe;
|
|
2230
2206
|
}());
|
|
2231
|
-
HighlightPipe.ɵprov =
|
|
2207
|
+
HighlightPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
|
|
2232
2208
|
HighlightPipe.decorators = [
|
|
2233
2209
|
{ type: i0.Pipe, args: [{
|
|
2234
2210
|
name: 'highlight'
|
|
@@ -2296,7 +2272,7 @@
|
|
|
2296
2272
|
{ type: i0.Pipe, args: [{ name: 'fileSize' },] }
|
|
2297
2273
|
];
|
|
2298
2274
|
|
|
2299
|
-
var moment$
|
|
2275
|
+
var moment$1 = momentImported__namespace;
|
|
2300
2276
|
var DATE_UNIX_TIMESTAMP = 'X';
|
|
2301
2277
|
var DATE_UNIX_MS_TIMESTAMP = 'x';
|
|
2302
2278
|
var DateUtils = /** @class */ (function () {
|
|
@@ -2331,32 +2307,32 @@
|
|
|
2331
2307
|
if (!value || momentImported.isMoment(value))
|
|
2332
2308
|
return value;
|
|
2333
2309
|
// Parse the input value, as a ISO date time
|
|
2334
|
-
var date = moment$
|
|
2310
|
+
var date = moment$1(value, DATE_ISO_PATTERN);
|
|
2335
2311
|
if (date.isValid())
|
|
2336
2312
|
return date;
|
|
2337
2313
|
// Not valid: trying to convert from unix timestamp
|
|
2338
2314
|
if (typeof value === 'string') {
|
|
2339
2315
|
console.warn('Wrong date format - Trying to convert from local time: ' + value);
|
|
2340
2316
|
if (value.length === 10) {
|
|
2341
|
-
return moment$
|
|
2317
|
+
return moment$1(value, DATE_UNIX_TIMESTAMP);
|
|
2342
2318
|
}
|
|
2343
2319
|
else if (value.length === 13) {
|
|
2344
|
-
return moment$
|
|
2320
|
+
return moment$1(value, DATE_UNIX_MS_TIMESTAMP);
|
|
2345
2321
|
}
|
|
2346
2322
|
}
|
|
2347
2323
|
console.warn('Unable to parse date: ' + value);
|
|
2348
2324
|
return undefined;
|
|
2349
2325
|
}
|
|
2350
2326
|
function fromUnixTimestamp(timeInSec) {
|
|
2351
|
-
return moment$
|
|
2327
|
+
return moment$1(timeInSec, DATE_UNIX_TIMESTAMP);
|
|
2352
2328
|
}
|
|
2353
2329
|
function fromUnixMsTimestamp(timeInMs) {
|
|
2354
|
-
return moment$
|
|
2330
|
+
return moment$1(timeInMs, DATE_UNIX_MS_TIMESTAMP);
|
|
2355
2331
|
}
|
|
2356
2332
|
function toDuration(value, unit) {
|
|
2357
2333
|
if (!value)
|
|
2358
2334
|
return undefined;
|
|
2359
|
-
var duration = moment$
|
|
2335
|
+
var duration = moment$1.duration(value, unit);
|
|
2360
2336
|
// fix 990+ ms
|
|
2361
2337
|
if (duration.milliseconds() >= 990) {
|
|
2362
2338
|
duration.add(1000 - duration.milliseconds(), 'ms');
|
|
@@ -2386,7 +2362,7 @@
|
|
|
2386
2362
|
};
|
|
2387
2363
|
return DurationPipe;
|
|
2388
2364
|
}());
|
|
2389
|
-
DurationPipe.ɵprov =
|
|
2365
|
+
DurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0.ɵɵinject(i1$2.TranslateService)); }, token: DurationPipe, providedIn: "root" });
|
|
2390
2366
|
DurationPipe.decorators = [
|
|
2391
2367
|
{ type: i0.Pipe, args: [{
|
|
2392
2368
|
name: 'duration'
|
|
@@ -2410,7 +2386,7 @@
|
|
|
2410
2386
|
};
|
|
2411
2387
|
return MathAbsPipe;
|
|
2412
2388
|
}());
|
|
2413
|
-
MathAbsPipe.ɵprov =
|
|
2389
|
+
MathAbsPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
|
|
2414
2390
|
MathAbsPipe.decorators = [
|
|
2415
2391
|
{ type: i0.Pipe, args: [{
|
|
2416
2392
|
name: 'mathAbs'
|
|
@@ -2425,7 +2401,7 @@
|
|
|
2425
2401
|
};
|
|
2426
2402
|
return EvenPipe;
|
|
2427
2403
|
}());
|
|
2428
|
-
EvenPipe.ɵprov =
|
|
2404
|
+
EvenPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
|
|
2429
2405
|
EvenPipe.decorators = [
|
|
2430
2406
|
{ type: i0.Pipe, args: [{
|
|
2431
2407
|
name: 'even'
|
|
@@ -2440,7 +2416,7 @@
|
|
|
2440
2416
|
};
|
|
2441
2417
|
return OddPipe;
|
|
2442
2418
|
}());
|
|
2443
|
-
OddPipe.ɵprov =
|
|
2419
|
+
OddPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
|
|
2444
2420
|
OddPipe.decorators = [
|
|
2445
2421
|
{ type: i0.Pipe, args: [{
|
|
2446
2422
|
name: 'odd'
|
|
@@ -2572,7 +2548,7 @@
|
|
|
2572
2548
|
};
|
|
2573
2549
|
return MapGetPipe;
|
|
2574
2550
|
}());
|
|
2575
|
-
MapGetPipe.ɵprov =
|
|
2551
|
+
MapGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
|
|
2576
2552
|
MapGetPipe.decorators = [
|
|
2577
2553
|
{ type: i0.Pipe, args: [{
|
|
2578
2554
|
name: 'mapGet'
|
|
@@ -2589,7 +2565,7 @@
|
|
|
2589
2565
|
};
|
|
2590
2566
|
return MapKeysPipe;
|
|
2591
2567
|
}());
|
|
2592
|
-
MapKeysPipe.ɵprov =
|
|
2568
|
+
MapKeysPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
|
|
2593
2569
|
MapKeysPipe.decorators = [
|
|
2594
2570
|
{ type: i0.Pipe, args: [{
|
|
2595
2571
|
name: 'mapKeys'
|
|
@@ -2606,7 +2582,7 @@
|
|
|
2606
2582
|
};
|
|
2607
2583
|
return MapValuesPipe;
|
|
2608
2584
|
}());
|
|
2609
|
-
MapValuesPipe.ɵprov =
|
|
2585
|
+
MapValuesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
|
|
2610
2586
|
MapValuesPipe.decorators = [
|
|
2611
2587
|
{ type: i0.Pipe, args: [{
|
|
2612
2588
|
name: 'mapValues'
|
|
@@ -2622,7 +2598,7 @@
|
|
|
2622
2598
|
};
|
|
2623
2599
|
return IsNotNilOrBlankPipe;
|
|
2624
2600
|
}());
|
|
2625
|
-
IsNotNilOrBlankPipe.ɵprov =
|
|
2601
|
+
IsNotNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
|
|
2626
2602
|
IsNotNilOrBlankPipe.decorators = [
|
|
2627
2603
|
{ type: i0.Pipe, args: [{
|
|
2628
2604
|
name: 'isNotNilOrBlank'
|
|
@@ -2637,7 +2613,7 @@
|
|
|
2637
2613
|
};
|
|
2638
2614
|
return IsNilOrBlankPipe;
|
|
2639
2615
|
}());
|
|
2640
|
-
IsNilOrBlankPipe.ɵprov =
|
|
2616
|
+
IsNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
|
|
2641
2617
|
IsNilOrBlankPipe.decorators = [
|
|
2642
2618
|
{ type: i0.Pipe, args: [{
|
|
2643
2619
|
name: 'isNilOrBlank'
|
|
@@ -2652,7 +2628,7 @@
|
|
|
2652
2628
|
};
|
|
2653
2629
|
return ToStringPipe;
|
|
2654
2630
|
}());
|
|
2655
|
-
ToStringPipe.ɵprov =
|
|
2631
|
+
ToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
|
|
2656
2632
|
ToStringPipe.decorators = [
|
|
2657
2633
|
{ type: i0.Pipe, args: [{
|
|
2658
2634
|
name: 'toString'
|
|
@@ -2667,7 +2643,7 @@
|
|
|
2667
2643
|
};
|
|
2668
2644
|
return StrLengthPipe;
|
|
2669
2645
|
}());
|
|
2670
|
-
StrLengthPipe.ɵprov =
|
|
2646
|
+
StrLengthPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
|
|
2671
2647
|
StrLengthPipe.decorators = [
|
|
2672
2648
|
{ type: i0.Pipe, args: [{
|
|
2673
2649
|
name: 'strLength'
|
|
@@ -2720,7 +2696,7 @@
|
|
|
2720
2696
|
};
|
|
2721
2697
|
return TranslateContextService;
|
|
2722
2698
|
}());
|
|
2723
|
-
TranslateContextService.ɵprov =
|
|
2699
|
+
TranslateContextService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0.ɵɵinject(i1$2.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
|
|
2724
2700
|
TranslateContextService.decorators = [
|
|
2725
2701
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2726
2702
|
];
|
|
@@ -2737,7 +2713,7 @@
|
|
|
2737
2713
|
};
|
|
2738
2714
|
return TranslateContextPipe;
|
|
2739
2715
|
}());
|
|
2740
|
-
TranslateContextPipe.ɵprov =
|
|
2716
|
+
TranslateContextPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextPipe_Factory() { return new TranslateContextPipe(i0.ɵɵinject(TranslateContextService)); }, token: TranslateContextPipe, providedIn: "root" });
|
|
2741
2717
|
TranslateContextPipe.decorators = [
|
|
2742
2718
|
{ type: i0.Pipe, args: [{
|
|
2743
2719
|
name: 'translateContext'
|
|
@@ -2757,7 +2733,7 @@
|
|
|
2757
2733
|
};
|
|
2758
2734
|
return TranslatablePipe;
|
|
2759
2735
|
}());
|
|
2760
|
-
TranslatablePipe.ɵprov =
|
|
2736
|
+
TranslatablePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslatablePipe_Factory() { return new TranslatablePipe(); }, token: TranslatablePipe, providedIn: "root" });
|
|
2761
2737
|
TranslatablePipe.decorators = [
|
|
2762
2738
|
{ type: i0.Pipe, args: [{
|
|
2763
2739
|
name: 'translatable'
|
|
@@ -2777,7 +2753,7 @@
|
|
|
2777
2753
|
};
|
|
2778
2754
|
return PropertyGetPipe;
|
|
2779
2755
|
}());
|
|
2780
|
-
PropertyGetPipe.ɵprov =
|
|
2756
|
+
PropertyGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
|
|
2781
2757
|
PropertyGetPipe.decorators = [
|
|
2782
2758
|
{ type: i0.Pipe, args: [{
|
|
2783
2759
|
name: 'propertyGet'
|
|
@@ -3034,14 +3010,14 @@
|
|
|
3034
3010
|
},] }
|
|
3035
3011
|
];
|
|
3036
3012
|
|
|
3037
|
-
var moment$
|
|
3013
|
+
var moment$2 = momentImported__namespace;
|
|
3038
3014
|
// @dynamic
|
|
3039
3015
|
var SharedValidators = /** @class */ (function () {
|
|
3040
3016
|
function SharedValidators() {
|
|
3041
3017
|
}
|
|
3042
3018
|
SharedValidators.validDate = function (control) {
|
|
3043
3019
|
var value = control.value;
|
|
3044
|
-
var date = !value || moment$
|
|
3020
|
+
var date = !value || moment$2.isMoment(value) ? value : moment$2(control.value, DATE_ISO_PATTERN);
|
|
3045
3021
|
if (date && (!date.isValid() || date.year() < 1970)) {
|
|
3046
3022
|
return { validDate: true };
|
|
3047
3023
|
}
|
|
@@ -3473,9 +3449,9 @@
|
|
|
3473
3449
|
var hour = parseInt(durationParts[0] || '0');
|
|
3474
3450
|
var minute = parseInt(durationParts[1] || '0');
|
|
3475
3451
|
var value = hour + (minute + 0.5) / 60;
|
|
3476
|
-
return roundFloat(value, maxDecimals);
|
|
3452
|
+
return roundFloat$1(value, maxDecimals);
|
|
3477
3453
|
}
|
|
3478
|
-
function roundFloat(input, maxDecimals) {
|
|
3454
|
+
function roundFloat$1(input, maxDecimals) {
|
|
3479
3455
|
if (maxDecimals > 0) {
|
|
3480
3456
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
3481
3457
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -3499,9 +3475,9 @@
|
|
|
3499
3475
|
DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
|
|
3500
3476
|
}
|
|
3501
3477
|
};
|
|
3502
|
-
var noop$
|
|
3478
|
+
var noop$1 = function () {
|
|
3503
3479
|
};
|
|
3504
|
-
var ɵ0$
|
|
3480
|
+
var ɵ0$1 = noop$1;
|
|
3505
3481
|
var MatLatLongField = /** @class */ (function () {
|
|
3506
3482
|
function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
|
|
3507
3483
|
this.platform = platform;
|
|
@@ -3509,8 +3485,8 @@
|
|
|
3509
3485
|
this.formBuilder = formBuilder;
|
|
3510
3486
|
this.cd = cd;
|
|
3511
3487
|
this.formGroupDir = formGroupDir;
|
|
3512
|
-
this._onChangeCallback = noop$
|
|
3513
|
-
this._onTouchedCallback = noop$
|
|
3488
|
+
this._onChangeCallback = noop$1;
|
|
3489
|
+
this._onTouchedCallback = noop$1;
|
|
3514
3490
|
this._subscription = new rxjs.Subscription();
|
|
3515
3491
|
this.disabling = false;
|
|
3516
3492
|
this.writing = false;
|
|
@@ -3863,14 +3839,14 @@
|
|
|
3863
3839
|
},] }
|
|
3864
3840
|
];
|
|
3865
3841
|
|
|
3866
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
3842
|
+
var DEFAULT_VALUE_ACCESSOR$1 = {
|
|
3867
3843
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
3868
3844
|
useExisting: i0.forwardRef(function () { return MatDate; }),
|
|
3869
3845
|
multi: true
|
|
3870
3846
|
};
|
|
3871
|
-
var DAY_MASK
|
|
3872
|
-
var noop$
|
|
3873
|
-
var ɵ0$
|
|
3847
|
+
var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
3848
|
+
var noop$2 = function () { };
|
|
3849
|
+
var ɵ0$2 = noop$2;
|
|
3874
3850
|
var MatDate = /** @class */ (function () {
|
|
3875
3851
|
function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
3876
3852
|
this.dateAdapter = dateAdapter;
|
|
@@ -3879,12 +3855,12 @@
|
|
|
3879
3855
|
this.cd = cd;
|
|
3880
3856
|
this.keyboard = keyboard;
|
|
3881
3857
|
this.formGroupDir = formGroupDir;
|
|
3882
|
-
this._onChangeCallback = noop$
|
|
3883
|
-
this._onTouchedCallback = noop$
|
|
3858
|
+
this._onChangeCallback = noop$2;
|
|
3859
|
+
this._onTouchedCallback = noop$2;
|
|
3884
3860
|
this._subscription = new rxjs.Subscription();
|
|
3885
3861
|
this.writing = true;
|
|
3886
3862
|
this.disabling = false;
|
|
3887
|
-
this.dayMask = DAY_MASK
|
|
3863
|
+
this.dayMask = DAY_MASK;
|
|
3888
3864
|
this.disabled = false;
|
|
3889
3865
|
this.floatLabel = 'auto';
|
|
3890
3866
|
this.readonly = false;
|
|
@@ -4153,7 +4129,7 @@
|
|
|
4153
4129
|
selector: 'mat-date-field',
|
|
4154
4130
|
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",
|
|
4155
4131
|
providers: [
|
|
4156
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
4132
|
+
DEFAULT_VALUE_ACCESSOR$1,
|
|
4157
4133
|
],
|
|
4158
4134
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4159
4135
|
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%}"]
|
|
@@ -4186,17 +4162,17 @@
|
|
|
4186
4162
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
4187
4163
|
};
|
|
4188
4164
|
|
|
4189
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
4165
|
+
var DEFAULT_VALUE_ACCESSOR$2 = {
|
|
4190
4166
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
4191
4167
|
useExisting: i0.forwardRef(function () { return MatDateTime; }),
|
|
4192
4168
|
multi: true
|
|
4193
4169
|
};
|
|
4194
4170
|
var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
4195
4171
|
var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
|
|
4196
|
-
var HOUR_MASK
|
|
4197
|
-
var noop$
|
|
4172
|
+
var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
4173
|
+
var noop$3 = function () {
|
|
4198
4174
|
};
|
|
4199
|
-
var ɵ0$
|
|
4175
|
+
var ɵ0$3 = noop$3;
|
|
4200
4176
|
var MatDateTime = /** @class */ (function () {
|
|
4201
4177
|
function MatDateTime(platform, dateAdapter, translate, formBuilder, keyboard, cd, formGroupDir) {
|
|
4202
4178
|
this.platform = platform;
|
|
@@ -4206,14 +4182,14 @@
|
|
|
4206
4182
|
this.keyboard = keyboard;
|
|
4207
4183
|
this.cd = cd;
|
|
4208
4184
|
this.formGroupDir = formGroupDir;
|
|
4209
|
-
this._onChangeCallback = noop$
|
|
4210
|
-
this._onTouchedCallback = noop$
|
|
4185
|
+
this._onChangeCallback = noop$3;
|
|
4186
|
+
this._onTouchedCallback = noop$3;
|
|
4211
4187
|
this._subscription = new rxjs.Subscription();
|
|
4212
4188
|
this.writing = true;
|
|
4213
4189
|
this.disabling = false;
|
|
4214
4190
|
this._onDestroy = new i0.EventEmitter();
|
|
4215
4191
|
this.dayMask = DAY_MASK$1;
|
|
4216
|
-
this.hourMask = HOUR_MASK
|
|
4192
|
+
this.hourMask = HOUR_MASK;
|
|
4217
4193
|
this.floatLabel = 'auto';
|
|
4218
4194
|
this.readonly = false;
|
|
4219
4195
|
this.compact = false;
|
|
@@ -4560,7 +4536,7 @@
|
|
|
4560
4536
|
selector: 'mat-date-time-field',
|
|
4561
4537
|
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",
|
|
4562
4538
|
providers: [
|
|
4563
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
4539
|
+
DEFAULT_VALUE_ACCESSOR$2,
|
|
4564
4540
|
],
|
|
4565
4541
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4566
4542
|
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%}"]
|
|
@@ -4599,10 +4575,10 @@
|
|
|
4599
4575
|
useExisting: i0.forwardRef(function () { return MatDateShort; }),
|
|
4600
4576
|
multi: true
|
|
4601
4577
|
};
|
|
4602
|
-
var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
|
|
4603
|
-
var noop$
|
|
4578
|
+
var DAY_MASK$2 = [/\d/, /\d/, /\d/, /\d/];
|
|
4579
|
+
var noop$4 = function () {
|
|
4604
4580
|
};
|
|
4605
|
-
var ɵ0$
|
|
4581
|
+
var ɵ0$4 = noop$4;
|
|
4606
4582
|
var MatDateShort = /** @class */ (function () {
|
|
4607
4583
|
function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
4608
4584
|
this.dateAdapter = dateAdapter;
|
|
@@ -4611,11 +4587,11 @@
|
|
|
4611
4587
|
this.cd = cd;
|
|
4612
4588
|
this.keyboard = keyboard;
|
|
4613
4589
|
this.formGroupDir = formGroupDir;
|
|
4614
|
-
this._onChangeCallback = noop$
|
|
4615
|
-
this._onTouchedCallback = noop$
|
|
4590
|
+
this._onChangeCallback = noop$4;
|
|
4591
|
+
this._onTouchedCallback = noop$4;
|
|
4616
4592
|
this.writing = true;
|
|
4617
4593
|
this.disabling = false;
|
|
4618
|
-
this.dayMask = DAY_MASK;
|
|
4594
|
+
this.dayMask = DAY_MASK$2;
|
|
4619
4595
|
this.disabled = false;
|
|
4620
4596
|
this.floatLabel = 'auto';
|
|
4621
4597
|
this.readonly = false;
|
|
@@ -4963,16 +4939,16 @@
|
|
|
4963
4939
|
},] }
|
|
4964
4940
|
];
|
|
4965
4941
|
|
|
4966
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
4942
|
+
var DEFAULT_VALUE_ACCESSOR$4 = {
|
|
4967
4943
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
4968
4944
|
useExisting: i0.forwardRef(function () { return MatDuration; }),
|
|
4969
4945
|
multi: true
|
|
4970
4946
|
};
|
|
4971
4947
|
var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
|
|
4972
|
-
var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
4973
|
-
var noop$
|
|
4948
|
+
var HOUR_MASK$1 = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
4949
|
+
var noop$5 = function () {
|
|
4974
4950
|
};
|
|
4975
|
-
var ɵ0$5 = noop$
|
|
4951
|
+
var ɵ0$5 = noop$5;
|
|
4976
4952
|
var MatDuration = /** @class */ (function () {
|
|
4977
4953
|
function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
|
|
4978
4954
|
this.dateAdapter = dateAdapter;
|
|
@@ -4981,11 +4957,11 @@
|
|
|
4981
4957
|
this.cd = cd;
|
|
4982
4958
|
this.formGroupDir = formGroupDir;
|
|
4983
4959
|
this._subscription = new rxjs.Subscription();
|
|
4984
|
-
this._onChangeCallback = noop$
|
|
4985
|
-
this._onTouchedCallback = noop$
|
|
4960
|
+
this._onChangeCallback = noop$5;
|
|
4961
|
+
this._onTouchedCallback = noop$5;
|
|
4986
4962
|
this.writing = true;
|
|
4987
4963
|
this.disabling = false;
|
|
4988
|
-
this.hourMask = HOUR_MASK;
|
|
4964
|
+
this.hourMask = HOUR_MASK$1;
|
|
4989
4965
|
this.disabled = false;
|
|
4990
4966
|
this.floatLabel = 'auto';
|
|
4991
4967
|
this.readonly = false;
|
|
@@ -5178,7 +5154,7 @@
|
|
|
5178
5154
|
selector: 'mat-duration-field',
|
|
5179
5155
|
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",
|
|
5180
5156
|
providers: [
|
|
5181
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5157
|
+
DEFAULT_VALUE_ACCESSOR$4,
|
|
5182
5158
|
],
|
|
5183
5159
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5184
5160
|
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%}"]
|
|
@@ -5238,22 +5214,22 @@
|
|
|
5238
5214
|
},] }
|
|
5239
5215
|
];
|
|
5240
5216
|
|
|
5241
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5217
|
+
var DEFAULT_VALUE_ACCESSOR$5 = {
|
|
5242
5218
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5243
5219
|
useExisting: i0.forwardRef(function () { return MatBooleanField; }),
|
|
5244
5220
|
multi: true
|
|
5245
5221
|
};
|
|
5246
|
-
var noop$
|
|
5222
|
+
var noop$6 = function () {
|
|
5247
5223
|
};
|
|
5248
|
-
var ɵ0$
|
|
5224
|
+
var ɵ0$6 = noop$6;
|
|
5249
5225
|
var MatBooleanField = /** @class */ (function () {
|
|
5250
5226
|
function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
|
|
5251
5227
|
this.translate = translate;
|
|
5252
5228
|
this.formBuilder = formBuilder;
|
|
5253
5229
|
this.cd = cd;
|
|
5254
5230
|
this.formGroupDir = formGroupDir;
|
|
5255
|
-
this._onChangeCallback = noop$
|
|
5256
|
-
this._onTouchedCallback = noop$
|
|
5231
|
+
this._onChangeCallback = noop$6;
|
|
5232
|
+
this._onTouchedCallback = noop$6;
|
|
5257
5233
|
this._writing = false;
|
|
5258
5234
|
this.showRadio = false;
|
|
5259
5235
|
this.disabled = false;
|
|
@@ -5430,7 +5406,7 @@
|
|
|
5430
5406
|
selector: 'mat-boolean-field',
|
|
5431
5407
|
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",
|
|
5432
5408
|
providers: [
|
|
5433
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5409
|
+
DEFAULT_VALUE_ACCESSOR$5
|
|
5434
5410
|
],
|
|
5435
5411
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5436
5412
|
styles: [":host{width:100%}"]
|
|
@@ -5512,7 +5488,6 @@
|
|
|
5512
5488
|
return MatNumpadEvent;
|
|
5513
5489
|
}(KeyboardEvent));
|
|
5514
5490
|
|
|
5515
|
-
exports.AnimationState = void 0;
|
|
5516
5491
|
(function (AnimationState) {
|
|
5517
5492
|
AnimationState["ENTER"] = "enter";
|
|
5518
5493
|
AnimationState["ENTER_INPUT"] = "enter-input";
|
|
@@ -5680,7 +5655,7 @@
|
|
|
5680
5655
|
};
|
|
5681
5656
|
return MatNumpadDomService;
|
|
5682
5657
|
}());
|
|
5683
|
-
MatNumpadDomService.ɵprov =
|
|
5658
|
+
MatNumpadDomService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatNumpadDomService_Factory() { return new MatNumpadDomService(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i1$4.DOCUMENT, 8)); }, token: MatNumpadDomService, providedIn: "root" });
|
|
5684
5659
|
MatNumpadDomService.decorators = [
|
|
5685
5660
|
{ type: i0.Injectable, args: [{
|
|
5686
5661
|
providedIn: 'root'
|
|
@@ -6086,7 +6061,7 @@
|
|
|
6086
6061
|
},] }
|
|
6087
6062
|
];
|
|
6088
6063
|
|
|
6089
|
-
var DEFAULT_VALUE_ACCESSOR = {
|
|
6064
|
+
var DEFAULT_VALUE_ACCESSOR$6 = {
|
|
6090
6065
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6091
6066
|
useExisting: i0.forwardRef(function () { return MatSwipeField; }),
|
|
6092
6067
|
multi: true
|
|
@@ -6406,7 +6381,7 @@
|
|
|
6406
6381
|
{ type: i0.Component, args: [{
|
|
6407
6382
|
selector: 'mat-swipe-field',
|
|
6408
6383
|
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",
|
|
6409
|
-
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
6384
|
+
providers: [DEFAULT_VALUE_ACCESSOR$6],
|
|
6410
6385
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6411
6386
|
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}"]
|
|
6412
6387
|
},] }
|
|
@@ -6964,7 +6939,7 @@
|
|
|
6964
6939
|
};
|
|
6965
6940
|
return ProgressBarService;
|
|
6966
6941
|
}());
|
|
6967
|
-
ProgressBarService.ɵprov =
|
|
6942
|
+
ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
|
|
6968
6943
|
ProgressBarService.decorators = [
|
|
6969
6944
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
6970
6945
|
];
|
|
@@ -7011,7 +6986,7 @@
|
|
|
7011
6986
|
};
|
|
7012
6987
|
return AppGestureConfig;
|
|
7013
6988
|
}(i1$6.HammerGestureConfig));
|
|
7014
|
-
AppGestureConfig.ɵprov =
|
|
6989
|
+
AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
|
|
7015
6990
|
AppGestureConfig.decorators = [
|
|
7016
6991
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7017
6992
|
];
|
|
@@ -7276,7 +7251,7 @@
|
|
|
7276
7251
|
};
|
|
7277
7252
|
return MatPaginatorI18n;
|
|
7278
7253
|
}(paginator.MatPaginatorIntl));
|
|
7279
|
-
MatPaginatorI18n.ɵprov =
|
|
7254
|
+
MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
|
|
7280
7255
|
MatPaginatorI18n.decorators = [
|
|
7281
7256
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7282
7257
|
];
|
|
@@ -7368,17 +7343,17 @@
|
|
|
7368
7343
|
return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
|
|
7369
7344
|
}
|
|
7370
7345
|
|
|
7371
|
-
var noop = function () {
|
|
7346
|
+
var noop$7 = function () {
|
|
7372
7347
|
};
|
|
7373
|
-
var ɵ0$
|
|
7348
|
+
var ɵ0$7 = noop$7;
|
|
7374
7349
|
var AppFormField = /** @class */ (function () {
|
|
7375
7350
|
function AppFormField(translate, cd, injector, formGroupDir) {
|
|
7376
7351
|
this.translate = translate;
|
|
7377
7352
|
this.cd = cd;
|
|
7378
7353
|
this.injector = injector;
|
|
7379
7354
|
this.formGroupDir = formGroupDir;
|
|
7380
|
-
this._onChangeCallback = noop;
|
|
7381
|
-
this._onTouchedCallback = noop;
|
|
7355
|
+
this._onChangeCallback = noop$7;
|
|
7356
|
+
this._onTouchedCallback = noop$7;
|
|
7382
7357
|
this.readonly = false;
|
|
7383
7358
|
this.compact = false;
|
|
7384
7359
|
this.floatLabel = 'auto';
|
|
@@ -7837,7 +7812,7 @@
|
|
|
7837
7812
|
};
|
|
7838
7813
|
return AudioProvider;
|
|
7839
7814
|
}());
|
|
7840
|
-
AudioProvider.ɵprov =
|
|
7815
|
+
AudioProvider.ɵprov = i0.ɵɵdefineInjectable({ factory: function AudioProvider_Factory() { return new AudioProvider(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$2.NativeAudio, 8), i0.ɵɵinject(i3$1.Vibration, 8), i0.ɵɵinject(i4.AudioManagement, 8)); }, token: AudioProvider, providedIn: "root" });
|
|
7841
7816
|
AudioProvider.decorators = [
|
|
7842
7817
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7843
7818
|
];
|
|
@@ -7937,7 +7912,7 @@
|
|
|
7937
7912
|
};
|
|
7938
7913
|
return Hotkeys;
|
|
7939
7914
|
}());
|
|
7940
|
-
Hotkeys.ɵprov =
|
|
7915
|
+
Hotkeys.ɵprov = i0.ɵɵdefineInjectable({ factory: function Hotkeys_Factory() { return new Hotkeys(i0.ɵɵinject(i1$6.EventManager), i0.ɵɵinject(i2.MatDialog), i0.ɵɵinject(i1$4.DOCUMENT), i0.ɵɵinject(i1$5.ModalController)); }, token: Hotkeys, providedIn: "root" });
|
|
7941
7916
|
Hotkeys.decorators = [
|
|
7942
7917
|
{ type: i0.Injectable, args: [{
|
|
7943
7918
|
providedIn: 'root'
|
|
@@ -8141,7 +8116,7 @@
|
|
|
8141
8116
|
return Base64ImageReader;
|
|
8142
8117
|
}());
|
|
8143
8118
|
|
|
8144
|
-
var uuidv4
|
|
8119
|
+
var uuidv4 = uuidv4Imported__namespace;
|
|
8145
8120
|
var FileService = /** @class */ (function () {
|
|
8146
8121
|
function FileService(platform,
|
|
8147
8122
|
//private transfer: FileTransfer,
|
|
@@ -8187,7 +8162,7 @@
|
|
|
8187
8162
|
lastSlashIndex = source.lastIndexOf('/');
|
|
8188
8163
|
if (lastSlashIndex === -1)
|
|
8189
8164
|
throw new Error('Invalid URL: ' + source);
|
|
8190
|
-
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4
|
|
8165
|
+
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
|
|
8191
8166
|
if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
|
|
8192
8167
|
console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
|
|
8193
8168
|
targetFilePath = this._imageDirectory + fileName;
|
|
@@ -8250,7 +8225,7 @@
|
|
|
8250
8225
|
};
|
|
8251
8226
|
return FileService;
|
|
8252
8227
|
}());
|
|
8253
|
-
FileService.ɵprov =
|
|
8228
|
+
FileService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(ENVIRONMENT)); }, token: FileService, providedIn: "root" });
|
|
8254
8229
|
FileService.decorators = [
|
|
8255
8230
|
{ type: i0.Injectable, args: [{
|
|
8256
8231
|
providedIn: 'root',
|
|
@@ -8413,7 +8388,7 @@
|
|
|
8413
8388
|
Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
8414
8389
|
|
|
8415
8390
|
var scrypt = require('scrypt-async');
|
|
8416
|
-
var sha256
|
|
8391
|
+
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
8417
8392
|
var sha512 = require('hash.js/lib/hash/sha/512');
|
|
8418
8393
|
var nacl = {
|
|
8419
8394
|
sign: tweetnacl.sign,
|
|
@@ -8519,7 +8494,7 @@
|
|
|
8519
8494
|
* Hash (using SHA256) a message
|
|
8520
8495
|
*/
|
|
8521
8496
|
CryptoService.prototype.sha256 = function (message) {
|
|
8522
|
-
return sha256
|
|
8497
|
+
return sha256().update(message).digest('hex');
|
|
8523
8498
|
};
|
|
8524
8499
|
/**
|
|
8525
8500
|
* Hash (using SHA512) a message
|
|
@@ -8533,7 +8508,7 @@
|
|
|
8533
8508
|
};
|
|
8534
8509
|
return CryptoService;
|
|
8535
8510
|
}());
|
|
8536
|
-
CryptoService.ɵprov =
|
|
8511
|
+
CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
|
|
8537
8512
|
CryptoService.decorators = [
|
|
8538
8513
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8539
8514
|
];
|
|
@@ -8550,7 +8525,7 @@
|
|
|
8550
8525
|
}
|
|
8551
8526
|
Entity.prototype.clone = function (opts) {
|
|
8552
8527
|
var target = new this.constructor();
|
|
8553
|
-
this.copy(target);
|
|
8528
|
+
this.copy(target, opts);
|
|
8554
8529
|
return target;
|
|
8555
8530
|
};
|
|
8556
8531
|
Entity.prototype.copy = function (target, opts) {
|
|
@@ -9933,7 +9908,7 @@
|
|
|
9933
9908
|
};
|
|
9934
9909
|
return LocalSettingsService;
|
|
9935
9910
|
}());
|
|
9936
|
-
LocalSettingsService.ɵprov =
|
|
9911
|
+
LocalSettingsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsService_Factory() { return new LocalSettingsService(i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_LOCAL_SETTINGS, 8), i0.ɵɵinject(APP_LOCAL_SETTINGS_OPTIONS, 8)); }, token: LocalSettingsService, providedIn: "root" });
|
|
9937
9912
|
LocalSettingsService.decorators = [
|
|
9938
9913
|
{ type: i0.Injectable, args: [{
|
|
9939
9914
|
providedIn: 'root',
|
|
@@ -10778,7 +10753,7 @@
|
|
|
10778
10753
|
};
|
|
10779
10754
|
return NetworkService;
|
|
10780
10755
|
}());
|
|
10781
|
-
NetworkService.ɵprov =
|
|
10756
|
+
NetworkService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NetworkService_Factory() { return new NetworkService(i0.ɵɵinject(i1$4.DOCUMENT), i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i1$5.ModalController), i0.ɵɵinject(CryptoService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(i6.CacheService), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(i9.Network, 8), i0.ɵɵinject(i10.SplashScreen, 8), i0.ɵɵinject(i1$2.TranslateService, 8), i0.ɵɵinject(i1$5.ToastController, 8)); }, token: NetworkService, providedIn: "root" });
|
|
10782
10757
|
NetworkService.decorators = [
|
|
10783
10758
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
10784
10759
|
];
|
|
@@ -10798,7 +10773,7 @@
|
|
|
10798
10773
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
|
|
10799
10774
|
]; };
|
|
10800
10775
|
|
|
10801
|
-
var ErrorCodes
|
|
10776
|
+
var ErrorCodes = {
|
|
10802
10777
|
UNKNOWN_ERROR: 0,
|
|
10803
10778
|
LOAD_ACCOUNT_ERROR: 1,
|
|
10804
10779
|
BAD_PASSWORD: 2,
|
|
@@ -11206,7 +11181,7 @@
|
|
|
11206
11181
|
case 13:
|
|
11207
11182
|
err_1 = _a.sent();
|
|
11208
11183
|
console.error(err_1);
|
|
11209
|
-
throw { code: ErrorCodes
|
|
11184
|
+
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
11210
11185
|
case 14:
|
|
11211
11186
|
// Emit update event
|
|
11212
11187
|
if (!opts || opts.emitEvent !== false) {
|
|
@@ -11966,7 +11941,7 @@
|
|
|
11966
11941
|
}());
|
|
11967
11942
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
11968
11943
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
11969
|
-
EntitiesStorage.ɵprov =
|
|
11944
|
+
EntitiesStorage.ɵprov = i0.ɵɵdefineInjectable({ factory: function EntitiesStorage_Factory() { return new EntitiesStorage(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(ProgressBarService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_LOCAL_STORAGE_TYPE_POLICIES, 8)); }, token: EntitiesStorage, providedIn: "root" });
|
|
11970
11945
|
EntitiesStorage.decorators = [
|
|
11971
11946
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
11972
11947
|
];
|
|
@@ -12080,10 +12055,10 @@
|
|
|
12080
12055
|
function referentialsToString(values, properties, separator) {
|
|
12081
12056
|
return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
|
|
12082
12057
|
}
|
|
12083
|
-
var ɵ0$
|
|
12058
|
+
var ɵ0$8 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
12084
12059
|
var StatusList = Object.freeze([
|
|
12085
12060
|
{
|
|
12086
|
-
id: ɵ0$
|
|
12061
|
+
id: ɵ0$8,
|
|
12087
12062
|
icon: 'checkmark',
|
|
12088
12063
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
12089
12064
|
},
|
|
@@ -12382,7 +12357,7 @@
|
|
|
12382
12357
|
(data.lastName || '')) || '';
|
|
12383
12358
|
}
|
|
12384
12359
|
|
|
12385
|
-
var uuidv4 = uuidv4Imported__namespace;
|
|
12360
|
+
var uuidv4$1 = uuidv4Imported__namespace;
|
|
12386
12361
|
var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
12387
12362
|
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
12388
12363
|
/**
|
|
@@ -12426,7 +12401,7 @@
|
|
|
12426
12401
|
// Skip if not tracked
|
|
12427
12402
|
if (!context || !context.tracked)
|
|
12428
12403
|
return forward(operation);
|
|
12429
|
-
var id = context.serializationKey || uuidv4();
|
|
12404
|
+
var id = context.serializationKey || uuidv4$1();
|
|
12430
12405
|
console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
|
|
12431
12406
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
12432
12407
|
var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -13237,7 +13212,7 @@
|
|
|
13237
13212
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
13238
13213
|
|| this.toAppError(err.networkError)
|
|
13239
13214
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
13240
|
-
|| this.createAppErrorByCode(ErrorCodes
|
|
13215
|
+
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
13241
13216
|
// If graphQL: try to convert the first error found
|
|
13242
13217
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
13243
13218
|
|| this.toAppError(err)
|
|
@@ -13245,7 +13220,7 @@
|
|
|
13245
13220
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
13246
13221
|
|| err;
|
|
13247
13222
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
13248
|
-
if (error && error.code === ErrorCodes
|
|
13223
|
+
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
13249
13224
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
13250
13225
|
this.onNetworkError.next(error);
|
|
13251
13226
|
}
|
|
@@ -13281,7 +13256,7 @@
|
|
|
13281
13256
|
return 'ERROR.UNAUTHORIZED';
|
|
13282
13257
|
case ServerErrorCodes.FORBIDDEN:
|
|
13283
13258
|
return 'ERROR.FORBIDDEN';
|
|
13284
|
-
case ErrorCodes
|
|
13259
|
+
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
13285
13260
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
13286
13261
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
13287
13262
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -13326,7 +13301,7 @@
|
|
|
13326
13301
|
};
|
|
13327
13302
|
return GraphqlService;
|
|
13328
13303
|
}());
|
|
13329
|
-
GraphqlService.ɵprov =
|
|
13304
|
+
GraphqlService.ɵprov = i0.ɵɵdefineInjectable({ factory: function GraphqlService_Factory() { return new GraphqlService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$3.Apollo), i0.ɵɵinject(i3$3.HttpLink), i0.ɵɵinject(NetworkService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(CryptoService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_GRAPHQL_TYPE_POLICIES, 8)); }, token: GraphqlService, providedIn: "root" });
|
|
13330
13305
|
GraphqlService.decorators = [
|
|
13331
13306
|
{ type: i0.Injectable, args: [{
|
|
13332
13307
|
providedIn: 'root'
|
|
@@ -13343,7 +13318,7 @@
|
|
|
13343
13318
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
13344
13319
|
]; };
|
|
13345
13320
|
|
|
13346
|
-
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
13321
|
+
var sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
13347
13322
|
var BaseGraphqlServiceOptions = /** @class */ (function () {
|
|
13348
13323
|
function BaseGraphqlServiceOptions() {
|
|
13349
13324
|
}
|
|
@@ -13510,8 +13485,8 @@
|
|
|
13510
13485
|
};
|
|
13511
13486
|
/* -- protected methods -- */
|
|
13512
13487
|
BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
|
|
13513
|
-
var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
13514
|
-
var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
13488
|
+
var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
13489
|
+
var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
13515
13490
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
13516
13491
|
};
|
|
13517
13492
|
BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
|
|
@@ -13577,17 +13552,17 @@
|
|
|
13577
13552
|
/* ------------------------------------
|
|
13578
13553
|
* GraphQL queries
|
|
13579
13554
|
* ------------------------------------*/
|
|
13580
|
-
var Fragments
|
|
13581
|
-
account: core.gql(templateObject_1
|
|
13555
|
+
var Fragments = {
|
|
13556
|
+
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 "])))
|
|
13582
13557
|
};
|
|
13583
13558
|
// Load account query
|
|
13584
|
-
var LoadQuery
|
|
13559
|
+
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);
|
|
13585
13560
|
// Check email query
|
|
13586
|
-
var IsEmailExistsQuery = core.gql(templateObject_3
|
|
13561
|
+
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"])));
|
|
13587
13562
|
// Save (create or update) account mutation
|
|
13588
|
-
var SaveMutation
|
|
13563
|
+
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);
|
|
13589
13564
|
// Create account mutation
|
|
13590
|
-
var CreateMutation = core.gql(templateObject_5
|
|
13565
|
+
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);
|
|
13591
13566
|
// Sent confirmation email
|
|
13592
13567
|
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"])));
|
|
13593
13568
|
// Confirm account email
|
|
@@ -13977,7 +13952,7 @@
|
|
|
13977
13952
|
error_3 = _a.sent();
|
|
13978
13953
|
console.error(error_3);
|
|
13979
13954
|
this.resetData();
|
|
13980
|
-
throw { code: ErrorCodes
|
|
13955
|
+
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
13981
13956
|
case 4:
|
|
13982
13957
|
// Store pubkey+keypair
|
|
13983
13958
|
this.data.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -14013,7 +13988,7 @@
|
|
|
14013
13988
|
return [3 /*break*/, 18];
|
|
14014
13989
|
case 11:
|
|
14015
13990
|
err_1 = _a.sent();
|
|
14016
|
-
if (!(err_1 && +(err_1.code) === ErrorCodes
|
|
13991
|
+
if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
14017
13992
|
if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
|
|
14018
13993
|
isEmailExists = void 0;
|
|
14019
13994
|
_a.label = 12;
|
|
@@ -14029,12 +14004,12 @@
|
|
|
14029
14004
|
case 15:
|
|
14030
14005
|
// Email not exists (no account)
|
|
14031
14006
|
if (!isEmailExists) {
|
|
14032
|
-
throw { code: ErrorCodes
|
|
14007
|
+
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
14033
14008
|
}
|
|
14034
14009
|
_a.label = 16;
|
|
14035
14010
|
case 16:
|
|
14036
14011
|
// Email exists, so error = 'bad password'
|
|
14037
|
-
throw { code: ErrorCodes
|
|
14012
|
+
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
14038
14013
|
case 17: throw err_1; // resend the first error
|
|
14039
14014
|
case 18:
|
|
14040
14015
|
_a.trys.push([18, 20, , 21]);
|
|
@@ -14117,7 +14092,7 @@
|
|
|
14117
14092
|
throw error_6;
|
|
14118
14093
|
console.error(error_6);
|
|
14119
14094
|
throw {
|
|
14120
|
-
code: ErrorCodes
|
|
14095
|
+
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
14121
14096
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
14122
14097
|
};
|
|
14123
14098
|
case 4: return [2 /*return*/];
|
|
@@ -14387,8 +14362,8 @@
|
|
|
14387
14362
|
_a.label = 3;
|
|
14388
14363
|
case 3: return [3 /*break*/, 6];
|
|
14389
14364
|
case 4: return [4 /*yield*/, this.graphql.query({
|
|
14390
|
-
query: LoadQuery
|
|
14391
|
-
error: { code: ErrorCodes
|
|
14365
|
+
query: LoadQuery,
|
|
14366
|
+
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
14392
14367
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
14393
14368
|
})];
|
|
14394
14369
|
case 5:
|
|
@@ -14433,7 +14408,7 @@
|
|
|
14433
14408
|
case 1:
|
|
14434
14409
|
existingAccount = _a.sent();
|
|
14435
14410
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
14436
|
-
throw { code: ErrorCodes
|
|
14411
|
+
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
14437
14412
|
}
|
|
14438
14413
|
account.updateDate = existingAccount.updateDate || account.updateDate;
|
|
14439
14414
|
if (account.settings && existingAccount.settings) {
|
|
@@ -14446,12 +14421,12 @@
|
|
|
14446
14421
|
delete json.profiles;
|
|
14447
14422
|
delete json.mainProfile; // Not known on server
|
|
14448
14423
|
return [4 /*yield*/, this.graphql.mutate({
|
|
14449
|
-
mutation: isNew ? CreateMutation : SaveMutation
|
|
14424
|
+
mutation: isNew ? CreateMutation : SaveMutation,
|
|
14450
14425
|
variables: {
|
|
14451
14426
|
account: json
|
|
14452
14427
|
},
|
|
14453
14428
|
error: {
|
|
14454
|
-
code: ErrorCodes
|
|
14429
|
+
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
14455
14430
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
14456
14431
|
}
|
|
14457
14432
|
})];
|
|
@@ -14485,7 +14460,7 @@
|
|
|
14485
14460
|
case 1:
|
|
14486
14461
|
isEmailExists = _a.sent();
|
|
14487
14462
|
if (isEmailExists) {
|
|
14488
|
-
throw { code: ErrorCodes
|
|
14463
|
+
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
14489
14464
|
}
|
|
14490
14465
|
return [2 /*return*/];
|
|
14491
14466
|
}
|
|
@@ -14535,7 +14510,7 @@
|
|
|
14535
14510
|
locale: locale
|
|
14536
14511
|
},
|
|
14537
14512
|
error: {
|
|
14538
|
-
code: ErrorCodes
|
|
14513
|
+
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
14539
14514
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
14540
14515
|
}
|
|
14541
14516
|
})];
|
|
@@ -14558,7 +14533,7 @@
|
|
|
14558
14533
|
code: code
|
|
14559
14534
|
},
|
|
14560
14535
|
error: {
|
|
14561
|
-
code: ErrorCodes
|
|
14536
|
+
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
14562
14537
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
14563
14538
|
}
|
|
14564
14539
|
})];
|
|
@@ -14580,7 +14555,7 @@
|
|
|
14580
14555
|
interval: 10
|
|
14581
14556
|
},
|
|
14582
14557
|
error: {
|
|
14583
|
-
code: ErrorCodes
|
|
14558
|
+
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
14584
14559
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ACCOUNT_ERROR'
|
|
14585
14560
|
}
|
|
14586
14561
|
}).subscribe({
|
|
@@ -14699,7 +14674,7 @@
|
|
|
14699
14674
|
if (counter > 4) {
|
|
14700
14675
|
if (this._debug)
|
|
14701
14676
|
console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
|
|
14702
|
-
throw { code: ErrorCodes
|
|
14677
|
+
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
14703
14678
|
}
|
|
14704
14679
|
if (!token) return [3 /*break*/, 2];
|
|
14705
14680
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -14708,7 +14683,7 @@
|
|
|
14708
14683
|
token: token
|
|
14709
14684
|
},
|
|
14710
14685
|
error: {
|
|
14711
|
-
code: ErrorCodes
|
|
14686
|
+
code: ErrorCodes.UNAUTHORIZED,
|
|
14712
14687
|
message: 'ERROR.UNAUTHORIZED'
|
|
14713
14688
|
},
|
|
14714
14689
|
fetchPolicy: 'no-cache'
|
|
@@ -14725,7 +14700,7 @@
|
|
|
14725
14700
|
_a.label = 2;
|
|
14726
14701
|
case 2:
|
|
14727
14702
|
challengeError = {
|
|
14728
|
-
code: ErrorCodes
|
|
14703
|
+
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
14729
14704
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
14730
14705
|
};
|
|
14731
14706
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -14759,7 +14734,7 @@
|
|
|
14759
14734
|
};
|
|
14760
14735
|
return AccountService;
|
|
14761
14736
|
}(BaseGraphqlService));
|
|
14762
|
-
AccountService.ɵprov =
|
|
14737
|
+
AccountService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountService_Factory() { return new AccountService(i0.ɵɵinject(CryptoService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(FileService), i0.ɵɵinject(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
|
|
14763
14738
|
AccountService.decorators = [
|
|
14764
14739
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
14765
14740
|
];
|
|
@@ -14772,7 +14747,7 @@
|
|
|
14772
14747
|
{ type: FileService },
|
|
14773
14748
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
14774
14749
|
]; };
|
|
14775
|
-
var templateObject_1
|
|
14750
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
14776
14751
|
|
|
14777
14752
|
var Software_1, Configuration_1;
|
|
14778
14753
|
// @dynamic
|
|
@@ -15014,13 +14989,13 @@
|
|
|
15014
14989
|
/* ------------------------------------
|
|
15015
14990
|
* GraphQL queries
|
|
15016
14991
|
* ------------------------------------*/
|
|
15017
|
-
var Fragments = {
|
|
15018
|
-
config: core.gql(templateObject_1$
|
|
14992
|
+
var Fragments$1 = {
|
|
14993
|
+
config: core.gql(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "], ["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "])))
|
|
15019
14994
|
};
|
|
15020
|
-
var LoadQuery = core.gql(templateObject_2$
|
|
14995
|
+
var LoadQuery$1 = core.gql(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"], ["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"])), Fragments$1.config);
|
|
15021
14996
|
// Save (create or update) account mutation
|
|
15022
|
-
var SaveMutation = core.gql(templateObject_3$
|
|
15023
|
-
var ClearCache = core.gql(templateObject_4$
|
|
14997
|
+
var SaveMutation$1 = core.gql(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"], ["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"])), Fragments$1.config);
|
|
14998
|
+
var ClearCache = core.gql(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"], ["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"])));
|
|
15024
14999
|
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"])));
|
|
15025
15000
|
var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
|
|
15026
15001
|
var ConfigService = /** @class */ (function (_super) {
|
|
@@ -15113,12 +15088,12 @@
|
|
|
15113
15088
|
case 0:
|
|
15114
15089
|
now = Date.now();
|
|
15115
15090
|
console.debug('[config] Loading Pod configuration...');
|
|
15116
|
-
query = opts && opts.query || LoadQuery;
|
|
15091
|
+
query = opts && opts.query || LoadQuery$1;
|
|
15117
15092
|
variables = opts && opts.variables || undefined;
|
|
15118
15093
|
return [4 /*yield*/, this.graphql.query({
|
|
15119
15094
|
query: query,
|
|
15120
15095
|
variables: variables,
|
|
15121
|
-
error: { code: ErrorCodes
|
|
15096
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15122
15097
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
15123
15098
|
})];
|
|
15124
15099
|
case 1:
|
|
@@ -15152,12 +15127,12 @@
|
|
|
15152
15127
|
console.debug('[config] Saving Pod configuration...', config);
|
|
15153
15128
|
json = config.asObject();
|
|
15154
15129
|
return [4 /*yield*/, this.graphql.mutate({
|
|
15155
|
-
mutation: SaveMutation,
|
|
15130
|
+
mutation: SaveMutation$1,
|
|
15156
15131
|
variables: {
|
|
15157
15132
|
data: json
|
|
15158
15133
|
},
|
|
15159
15134
|
error: {
|
|
15160
|
-
code: ErrorCodes
|
|
15135
|
+
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
15161
15136
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
15162
15137
|
}
|
|
15163
15138
|
})];
|
|
@@ -15192,7 +15167,7 @@
|
|
|
15192
15167
|
return [4 /*yield*/, this.graphql.query({
|
|
15193
15168
|
query: CacheStatistics,
|
|
15194
15169
|
variables: null,
|
|
15195
|
-
error: { code: ErrorCodes
|
|
15170
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15196
15171
|
fetchPolicy: 'network-only'
|
|
15197
15172
|
})];
|
|
15198
15173
|
case 1:
|
|
@@ -15216,7 +15191,7 @@
|
|
|
15216
15191
|
return [4 /*yield*/, this.graphql.query({
|
|
15217
15192
|
query: ClearCache,
|
|
15218
15193
|
variables: variables,
|
|
15219
|
-
error: { code: ErrorCodes
|
|
15194
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15220
15195
|
fetchPolicy: 'network-only'
|
|
15221
15196
|
})];
|
|
15222
15197
|
case 1:
|
|
@@ -15417,7 +15392,7 @@
|
|
|
15417
15392
|
};
|
|
15418
15393
|
return ConfigService;
|
|
15419
15394
|
}(BaseGraphqlService));
|
|
15420
|
-
ConfigService.ɵprov =
|
|
15395
|
+
ConfigService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConfigService_Factory() { return new ConfigService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(NetworkService), i0.ɵɵinject(FileService), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
|
|
15421
15396
|
ConfigService.decorators = [
|
|
15422
15397
|
{ type: i0.Injectable, args: [{
|
|
15423
15398
|
providedIn: 'root',
|
|
@@ -15435,9 +15410,9 @@
|
|
|
15435
15410
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
15436
15411
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
15437
15412
|
]; };
|
|
15438
|
-
var templateObject_1$
|
|
15413
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
|
|
15439
15414
|
|
|
15440
|
-
var moment$
|
|
15415
|
+
var moment$4 = momentImported__namespace;
|
|
15441
15416
|
var PlatformService = /** @class */ (function () {
|
|
15442
15417
|
function PlatformService(platform, cdkPlatform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser) {
|
|
15443
15418
|
this.platform = platform;
|
|
@@ -15613,16 +15588,16 @@
|
|
|
15613
15588
|
}
|
|
15614
15589
|
// config moment lib
|
|
15615
15590
|
try {
|
|
15616
|
-
moment$
|
|
15591
|
+
moment$4.locale(event.lang);
|
|
15617
15592
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
15618
15593
|
}
|
|
15619
15594
|
// If error, fallback to en
|
|
15620
15595
|
catch (err) {
|
|
15621
|
-
moment$
|
|
15596
|
+
moment$4.locale('en');
|
|
15622
15597
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
15623
15598
|
}
|
|
15624
15599
|
// Config date adapter
|
|
15625
|
-
_this.dateAdapter.setLocale(moment$
|
|
15600
|
+
_this.dateAdapter.setLocale(moment$4.locale());
|
|
15626
15601
|
}
|
|
15627
15602
|
});
|
|
15628
15603
|
this.settings.onChange.subscribe(function (data) {
|
|
@@ -15807,7 +15782,7 @@
|
|
|
15807
15782
|
};
|
|
15808
15783
|
return PlatformService;
|
|
15809
15784
|
}());
|
|
15810
|
-
PlatformService.ɵprov =
|
|
15785
|
+
PlatformService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PlatformService_Factory() { return new PlatformService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$4.Platform), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$1.MomentDateAdapter), i0.ɵɵinject(EntitiesStorage), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(AccountService), i0.ɵɵinject(ConfigService), i0.ɵɵinject(i6.CacheService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(AudioProvider), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(i14.StatusBar, 8), i0.ɵɵinject(i15.Keyboard, 8), i0.ɵɵinject(i10.SplashScreen, 8), i0.ɵɵinject(i17.InAppBrowser, 8)); }, token: PlatformService, providedIn: "root" });
|
|
15811
15786
|
PlatformService.decorators = [
|
|
15812
15787
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
15813
15788
|
];
|
|
@@ -15904,7 +15879,7 @@
|
|
|
15904
15879
|
};
|
|
15905
15880
|
return MatStepperI18n;
|
|
15906
15881
|
}(stepper.MatStepperIntl));
|
|
15907
|
-
MatStepperI18n.ɵprov =
|
|
15882
|
+
MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
15908
15883
|
MatStepperI18n.decorators = [
|
|
15909
15884
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
15910
15885
|
];
|
|
@@ -16996,7 +16971,7 @@
|
|
|
16996
16971
|
return 1;
|
|
16997
16972
|
}
|
|
16998
16973
|
}
|
|
16999
|
-
var ɵ0$
|
|
16974
|
+
var ɵ0$9 = function (defaultStateSize) { return [
|
|
17000
16975
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
17001
16976
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
17002
16977
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -17004,7 +16979,7 @@
|
|
|
17004
16979
|
var SCALE_OPTIONS_DEFAULT = {
|
|
17005
16980
|
startColor: rgbArrayMap.red,
|
|
17006
16981
|
startStates: [0, 2, 3],
|
|
17007
|
-
startStepsFn: ɵ0$
|
|
16982
|
+
startStepsFn: ɵ0$9
|
|
17008
16983
|
};
|
|
17009
16984
|
/**
|
|
17010
16985
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -17096,24 +17071,24 @@
|
|
|
17096
17071
|
return result;
|
|
17097
17072
|
}
|
|
17098
17073
|
|
|
17099
|
-
var EntityTestClass
|
|
17074
|
+
var EntityTestClass = /** @class */ (function () {
|
|
17100
17075
|
function EntityTestClass() {
|
|
17101
17076
|
}
|
|
17102
17077
|
return EntityTestClass;
|
|
17103
17078
|
}());
|
|
17104
|
-
var FAKE_ENTITIES
|
|
17079
|
+
var FAKE_ENTITIES = [
|
|
17105
17080
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
17106
17081
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
17107
17082
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
17108
17083
|
];
|
|
17109
|
-
function deepCopy
|
|
17084
|
+
function deepCopy(values, size) {
|
|
17110
17085
|
if (isNil(size)) {
|
|
17111
|
-
return (values || FAKE_ENTITIES
|
|
17086
|
+
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
17112
17087
|
}
|
|
17113
17088
|
var result = [];
|
|
17114
17089
|
var i = 1;
|
|
17115
17090
|
while (result.length < size) {
|
|
17116
|
-
result = result.concat((values || FAKE_ENTITIES
|
|
17091
|
+
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
17117
17092
|
var name = entity.name + ' #' + i;
|
|
17118
17093
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
17119
17094
|
}));
|
|
@@ -17123,7 +17098,7 @@
|
|
|
17123
17098
|
var AutocompleteTestPage = /** @class */ (function () {
|
|
17124
17099
|
function AutocompleteTestPage(formBuilder) {
|
|
17125
17100
|
this.formBuilder = formBuilder;
|
|
17126
|
-
this._items = deepCopy
|
|
17101
|
+
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
17127
17102
|
this.$items = new rxjs.BehaviorSubject(undefined);
|
|
17128
17103
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
17129
17104
|
this.memoryHide = false;
|
|
@@ -17168,7 +17143,7 @@
|
|
|
17168
17143
|
});
|
|
17169
17144
|
// From items
|
|
17170
17145
|
this.autocompleteFields.add('entity-items-large', {
|
|
17171
|
-
items: FAKE_ENTITIES
|
|
17146
|
+
items: FAKE_ENTITIES.slice(),
|
|
17172
17147
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
17173
17148
|
displayWith: this.entityToString
|
|
17174
17149
|
});
|
|
@@ -17181,12 +17156,12 @@
|
|
|
17181
17156
|
var _this = this;
|
|
17182
17157
|
return __generator(this, function (_a) {
|
|
17183
17158
|
data = {
|
|
17184
|
-
entity: deepCopy
|
|
17159
|
+
entity: deepCopy(FAKE_ENTITIES)[1],
|
|
17185
17160
|
// This item is NOT in the items list => i should be displayed anyway
|
|
17186
17161
|
missingEntity: {
|
|
17187
17162
|
id: -1, label: '??', name: 'Missing item'
|
|
17188
17163
|
},
|
|
17189
|
-
disableEntity: deepCopy
|
|
17164
|
+
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
17190
17165
|
};
|
|
17191
17166
|
this.form.setValue(data);
|
|
17192
17167
|
// Load observables
|
|
@@ -17375,13 +17350,13 @@
|
|
|
17375
17350
|
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_TESTING_PAGES,] }] }
|
|
17376
17351
|
]; };
|
|
17377
17352
|
|
|
17378
|
-
var moment$
|
|
17353
|
+
var moment$5 = momentImported__namespace;
|
|
17379
17354
|
var SwipeTestPage = /** @class */ (function () {
|
|
17380
17355
|
function SwipeTestPage(formBuilder, dateFormatPipe) {
|
|
17381
17356
|
this.formBuilder = formBuilder;
|
|
17382
17357
|
this.dateFormatPipe = dateFormatPipe;
|
|
17383
17358
|
this.$dates = new rxjs.BehaviorSubject(undefined);
|
|
17384
|
-
this._today = moment$
|
|
17359
|
+
this._today = moment$5().startOf('day');
|
|
17385
17360
|
this.form = formBuilder.group({
|
|
17386
17361
|
empty: [null, i1.Validators.required],
|
|
17387
17362
|
date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
|
|
@@ -17395,7 +17370,7 @@
|
|
|
17395
17370
|
var _this = this;
|
|
17396
17371
|
var dates = [];
|
|
17397
17372
|
for (var d = 0; d < 7; d++) {
|
|
17398
|
-
dates[d] = moment$
|
|
17373
|
+
dates[d] = moment$5(this._today).add(d - 3, 'day');
|
|
17399
17374
|
}
|
|
17400
17375
|
this.$dates.next(dates);
|
|
17401
17376
|
this.loadData();
|
|
@@ -18067,7 +18042,7 @@
|
|
|
18067
18042
|
return FormArrayHelper;
|
|
18068
18043
|
}());
|
|
18069
18044
|
|
|
18070
|
-
var moment = momentImported__namespace;
|
|
18045
|
+
var moment$6 = momentImported__namespace;
|
|
18071
18046
|
var DateTimeTestPage = /** @class */ (function () {
|
|
18072
18047
|
function DateTimeTestPage(platform, formBuilder, cd) {
|
|
18073
18048
|
this.platform = platform;
|
|
@@ -18102,7 +18077,7 @@
|
|
|
18102
18077
|
var now, data;
|
|
18103
18078
|
var _this = this;
|
|
18104
18079
|
return __generator(this, function (_a) {
|
|
18105
|
-
now = moment();
|
|
18080
|
+
now = moment$6();
|
|
18106
18081
|
data = {
|
|
18107
18082
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
18108
18083
|
enable: toDateISOString(now),
|
|
@@ -18166,23 +18141,23 @@
|
|
|
18166
18141
|
{ type: i0.ChangeDetectorRef }
|
|
18167
18142
|
]; };
|
|
18168
18143
|
|
|
18169
|
-
var EntityTestClass = /** @class */ (function () {
|
|
18144
|
+
var EntityTestClass$1 = /** @class */ (function () {
|
|
18170
18145
|
function EntityTestClass() {
|
|
18171
18146
|
}
|
|
18172
18147
|
return EntityTestClass;
|
|
18173
18148
|
}());
|
|
18174
|
-
var FAKE_ENTITIES = [
|
|
18149
|
+
var FAKE_ENTITIES$1 = [
|
|
18175
18150
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
18176
18151
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
18177
18152
|
{ id: 3, label: 'CCC', name: 'Item C' }
|
|
18178
18153
|
];
|
|
18179
|
-
function deepCopy(values) {
|
|
18180
|
-
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
18154
|
+
function deepCopy$1(values) {
|
|
18155
|
+
return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
|
|
18181
18156
|
}
|
|
18182
18157
|
var ChipsTestPage = /** @class */ (function () {
|
|
18183
18158
|
function ChipsTestPage(formBuilder) {
|
|
18184
18159
|
this.formBuilder = formBuilder;
|
|
18185
|
-
this._items = deepCopy(FAKE_ENTITIES);
|
|
18160
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1);
|
|
18186
18161
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
18187
18162
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
18188
18163
|
this.form = formBuilder.group({
|
|
@@ -18202,7 +18177,7 @@
|
|
|
18202
18177
|
});
|
|
18203
18178
|
// From items
|
|
18204
18179
|
this.autocompleteFields.add('entity-items', {
|
|
18205
|
-
items: FAKE_ENTITIES.slice(),
|
|
18180
|
+
items: FAKE_ENTITIES$1.slice(),
|
|
18206
18181
|
attributes: ['label', 'name'],
|
|
18207
18182
|
displayWith: this.entityToString
|
|
18208
18183
|
});
|
|
@@ -18225,8 +18200,8 @@
|
|
|
18225
18200
|
data = {
|
|
18226
18201
|
entity: [],
|
|
18227
18202
|
// THis item is NOT in the items list => i should be displayed anyway
|
|
18228
|
-
entityInitial: FAKE_ENTITIES.slice(1, 2),
|
|
18229
|
-
disableEntity: FAKE_ENTITIES.slice(1, 2)
|
|
18203
|
+
entityInitial: FAKE_ENTITIES$1.slice(1, 2),
|
|
18204
|
+
disableEntity: FAKE_ENTITIES$1.slice(1, 2)
|
|
18230
18205
|
};
|
|
18231
18206
|
this.form.setValue(data);
|
|
18232
18207
|
return [2 /*return*/];
|
|
@@ -18236,7 +18211,7 @@
|
|
|
18236
18211
|
ChipsTestPage.prototype.loadItems = function () {
|
|
18237
18212
|
return __awaiter(this, void 0, void 0, function () {
|
|
18238
18213
|
return __generator(this, function (_a) {
|
|
18239
|
-
this._$items.next(deepCopy(FAKE_ENTITIES));
|
|
18214
|
+
this._$items.next(deepCopy$1(FAKE_ENTITIES$1));
|
|
18240
18215
|
return [2 /*return*/];
|
|
18241
18216
|
});
|
|
18242
18217
|
});
|
|
@@ -18273,7 +18248,7 @@
|
|
|
18273
18248
|
{ type: i1.FormBuilder }
|
|
18274
18249
|
]; };
|
|
18275
18250
|
|
|
18276
|
-
var routes
|
|
18251
|
+
var routes = [
|
|
18277
18252
|
{
|
|
18278
18253
|
path: '',
|
|
18279
18254
|
pathMatch: 'full',
|
|
@@ -18323,7 +18298,7 @@
|
|
|
18323
18298
|
i1.ReactiveFormsModule,
|
|
18324
18299
|
SharedMaterialModule,
|
|
18325
18300
|
i1$2.TranslateModule.forChild(),
|
|
18326
|
-
i3.RouterModule.forChild(routes
|
|
18301
|
+
i3.RouterModule.forChild(routes)
|
|
18327
18302
|
],
|
|
18328
18303
|
declarations: [
|
|
18329
18304
|
MaterialTestingPage,
|
|
@@ -19398,7 +19373,7 @@
|
|
|
19398
19373
|
};
|
|
19399
19374
|
return UserSettingsValidatorService;
|
|
19400
19375
|
}(AppValidatorService));
|
|
19401
|
-
UserSettingsValidatorService.ɵprov =
|
|
19376
|
+
UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
19402
19377
|
UserSettingsValidatorService.decorators = [
|
|
19403
19378
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
19404
19379
|
];
|
|
@@ -19446,7 +19421,7 @@
|
|
|
19446
19421
|
};
|
|
19447
19422
|
return AccountValidatorService;
|
|
19448
19423
|
}(AppValidatorService));
|
|
19449
|
-
AccountValidatorService.ɵprov =
|
|
19424
|
+
AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
|
|
19450
19425
|
AccountValidatorService.decorators = [
|
|
19451
19426
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
19452
19427
|
];
|
|
@@ -20038,7 +20013,7 @@
|
|
|
20038
20013
|
};
|
|
20039
20014
|
return LocalSettingsValidatorService;
|
|
20040
20015
|
}(AppValidatorService));
|
|
20041
|
-
LocalSettingsValidatorService.ɵprov =
|
|
20016
|
+
LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
|
|
20042
20017
|
LocalSettingsValidatorService.decorators = [
|
|
20043
20018
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
20044
20019
|
];
|
|
@@ -20812,7 +20787,7 @@
|
|
|
20812
20787
|
};
|
|
20813
20788
|
return IsOnFieldModePipe;
|
|
20814
20789
|
}());
|
|
20815
|
-
IsOnFieldModePipe.ɵprov =
|
|
20790
|
+
IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
20816
20791
|
IsOnFieldModePipe.decorators = [
|
|
20817
20792
|
{ type: i0.Pipe, args: [{
|
|
20818
20793
|
name: 'isOnField'
|
|
@@ -20827,7 +20802,7 @@
|
|
|
20827
20802
|
};
|
|
20828
20803
|
return IsNotOnFieldModePipe;
|
|
20829
20804
|
}());
|
|
20830
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
20805
|
+
IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
20831
20806
|
IsNotOnFieldModePipe.decorators = [
|
|
20832
20807
|
{ type: i0.Pipe, args: [{
|
|
20833
20808
|
name: 'isNotOnField'
|
|
@@ -20845,7 +20820,7 @@
|
|
|
20845
20820
|
};
|
|
20846
20821
|
return PersonToStringPipe;
|
|
20847
20822
|
}());
|
|
20848
|
-
PersonToStringPipe.ɵprov =
|
|
20823
|
+
PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
20849
20824
|
PersonToStringPipe.decorators = [
|
|
20850
20825
|
{ type: i0.Pipe, args: [{
|
|
20851
20826
|
name: 'personToString'
|
|
@@ -21080,7 +21055,7 @@
|
|
|
21080
21055
|
};
|
|
21081
21056
|
return IsLoginAccountPipe;
|
|
21082
21057
|
}());
|
|
21083
|
-
IsLoginAccountPipe.ɵprov =
|
|
21058
|
+
IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
21084
21059
|
IsLoginAccountPipe.decorators = [
|
|
21085
21060
|
{ type: i0.Pipe, args: [{
|
|
21086
21061
|
name: 'isLogin'
|
|
@@ -21095,7 +21070,7 @@
|
|
|
21095
21070
|
};
|
|
21096
21071
|
return AccountToStringPipe;
|
|
21097
21072
|
}());
|
|
21098
|
-
AccountToStringPipe.ɵprov =
|
|
21073
|
+
AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
21099
21074
|
AccountToStringPipe.decorators = [
|
|
21100
21075
|
{ type: i0.Pipe, args: [{
|
|
21101
21076
|
name: 'accountToString'
|
|
@@ -21113,7 +21088,7 @@
|
|
|
21113
21088
|
};
|
|
21114
21089
|
return DepartmentToStringPipe;
|
|
21115
21090
|
}());
|
|
21116
|
-
DepartmentToStringPipe.ɵprov =
|
|
21091
|
+
DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
21117
21092
|
DepartmentToStringPipe.decorators = [
|
|
21118
21093
|
{ type: i0.Pipe, args: [{
|
|
21119
21094
|
name: 'departmentToString'
|
|
@@ -21148,7 +21123,7 @@
|
|
|
21148
21123
|
};
|
|
21149
21124
|
return MenuService;
|
|
21150
21125
|
}());
|
|
21151
|
-
MenuService.ɵprov =
|
|
21126
|
+
MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
21152
21127
|
MenuService.decorators = [
|
|
21153
21128
|
{ type: i0.Injectable, args: [{
|
|
21154
21129
|
providedIn: 'root'
|
|
@@ -21727,7 +21702,7 @@
|
|
|
21727
21702
|
};
|
|
21728
21703
|
return AuthGuardService;
|
|
21729
21704
|
}());
|
|
21730
|
-
AuthGuardService.ɵprov =
|
|
21705
|
+
AuthGuardService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AuthGuardService_Factory() { return new AuthGuardService(i0.ɵɵinject(AccountService), i0.ɵɵinject(i1$5.ModalController), i0.ɵɵinject(i3.Router), i0.ɵɵinject(ENVIRONMENT)); }, token: AuthGuardService, providedIn: "root" });
|
|
21731
21706
|
AuthGuardService.decorators = [
|
|
21732
21707
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
21733
21708
|
];
|
|
@@ -21778,7 +21753,7 @@
|
|
|
21778
21753
|
query: query,
|
|
21779
21754
|
variables: { id: id },
|
|
21780
21755
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
21781
|
-
error: { code: ErrorCodes
|
|
21756
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
21782
21757
|
})
|
|
21783
21758
|
.pipe(operators.map(function (_b) {
|
|
21784
21759
|
var data = _b.data;
|
|
@@ -21800,7 +21775,7 @@
|
|
|
21800
21775
|
query: query,
|
|
21801
21776
|
variables: { id: id },
|
|
21802
21777
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
21803
|
-
error: { code: ErrorCodes
|
|
21778
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
21804
21779
|
})];
|
|
21805
21780
|
case 1:
|
|
21806
21781
|
data = (_b.sent()).data;
|
|
@@ -21836,7 +21811,7 @@
|
|
|
21836
21811
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
21837
21812
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
21838
21813
|
variables: variables,
|
|
21839
|
-
error: { code: ErrorCodes
|
|
21814
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
21840
21815
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
21841
21816
|
})
|
|
21842
21817
|
.pipe(operators.map(function (_b) {
|
|
@@ -21878,7 +21853,7 @@
|
|
|
21878
21853
|
return [4 /*yield*/, this.graphql.query({
|
|
21879
21854
|
query: query,
|
|
21880
21855
|
variables: variables,
|
|
21881
|
-
error: { code: ErrorCodes
|
|
21856
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
21882
21857
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
21883
21858
|
})];
|
|
21884
21859
|
case 1:
|
|
@@ -21926,7 +21901,7 @@
|
|
|
21926
21901
|
variables: {
|
|
21927
21902
|
filter: filter && filter.asPodObject()
|
|
21928
21903
|
},
|
|
21929
|
-
error: { code: ErrorCodes
|
|
21904
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
21930
21905
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
21931
21906
|
})];
|
|
21932
21907
|
case 3:
|
|
@@ -21968,7 +21943,7 @@
|
|
|
21968
21943
|
variables: {
|
|
21969
21944
|
data: json
|
|
21970
21945
|
},
|
|
21971
|
-
error: { code: ErrorCodes
|
|
21946
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
21972
21947
|
update: function (proxy, _b) {
|
|
21973
21948
|
var data = _b.data;
|
|
21974
21949
|
var savedEntities = data && data.data;
|
|
@@ -22035,7 +22010,7 @@
|
|
|
22035
22010
|
variables: {
|
|
22036
22011
|
data: json
|
|
22037
22012
|
},
|
|
22038
|
-
error: { code: ErrorCodes
|
|
22013
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
22039
22014
|
update: function (cache, _b) {
|
|
22040
22015
|
var data = _b.data;
|
|
22041
22016
|
// Update entity
|
|
@@ -22093,7 +22068,7 @@
|
|
|
22093
22068
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
22094
22069
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
22095
22070
|
variables: { ids: ids },
|
|
22096
|
-
error: { code: ErrorCodes
|
|
22071
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
22097
22072
|
update: function (cache, res) {
|
|
22098
22073
|
// Remove from cache
|
|
22099
22074
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -22146,7 +22121,7 @@
|
|
|
22146
22121
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
22147
22122
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
22148
22123
|
variables: { id: id },
|
|
22149
|
-
error: { code: ErrorCodes
|
|
22124
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
22150
22125
|
update: function (proxy, res) {
|
|
22151
22126
|
// Remove from cache
|
|
22152
22127
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -22185,7 +22160,7 @@
|
|
|
22185
22160
|
query: opts && opts.query || this.subscriptions.listenChanges,
|
|
22186
22161
|
variables: variables,
|
|
22187
22162
|
error: {
|
|
22188
|
-
code: ErrorCodes
|
|
22163
|
+
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
22189
22164
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
22190
22165
|
}
|
|
22191
22166
|
})
|
|
@@ -22374,7 +22349,7 @@
|
|
|
22374
22349
|
if (this._debug)
|
|
22375
22350
|
invalidRows.forEach(this.logRowErrors);
|
|
22376
22351
|
// Stop with an error
|
|
22377
|
-
throw { code: ErrorCodes
|
|
22352
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
22378
22353
|
}
|
|
22379
22354
|
this._editingRowCount = 0;
|
|
22380
22355
|
data = void 0;
|
|
@@ -23324,13 +23299,13 @@
|
|
|
23324
23299
|
case 0:
|
|
23325
23300
|
opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
|
|
23326
23301
|
if (this.readOnly) {
|
|
23327
|
-
throw { code: ErrorCodes
|
|
23302
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
23328
23303
|
}
|
|
23329
23304
|
this.resetError();
|
|
23330
23305
|
// Keep edited row id (should be done BEFORE confirmEditCreate() )
|
|
23331
23306
|
this.previouslySavedEditedRowId = opts.keepEditing && ((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined;
|
|
23332
23307
|
if (!this.confirmEditCreate()) {
|
|
23333
|
-
throw { code: ErrorCodes
|
|
23308
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
23334
23309
|
}
|
|
23335
23310
|
_d.label = 1;
|
|
23336
23311
|
case 1:
|
|
@@ -23491,7 +23466,7 @@
|
|
|
23491
23466
|
switch (_d.label) {
|
|
23492
23467
|
case 0:
|
|
23493
23468
|
if (this.readOnly) {
|
|
23494
|
-
throw { code: ErrorCodes
|
|
23469
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
23495
23470
|
}
|
|
23496
23471
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
23497
23472
|
return [2 /*return*/, 0]; // SKip
|
|
@@ -25144,7 +25119,7 @@
|
|
|
25144
25119
|
case 4:
|
|
25145
25120
|
data = _a.sent();
|
|
25146
25121
|
if (!data)
|
|
25147
|
-
throw { code: ErrorCodes
|
|
25122
|
+
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
25148
25123
|
this._usageMode = this.computeUsageMode(data);
|
|
25149
25124
|
return [4 /*yield*/, this.onEntityLoaded(data, opts)];
|
|
25150
25125
|
case 5:
|
|
@@ -25890,10 +25865,10 @@
|
|
|
25890
25865
|
exports.UserEventFilter = __decorate([
|
|
25891
25866
|
EntityClass({ typename: 'UserEventVO' })
|
|
25892
25867
|
], exports.UserEventFilter);
|
|
25893
|
-
var SaveQuery = core.gql(templateObject_1$
|
|
25894
|
-
var LoadAllQuery = core.gql(templateObject_2$
|
|
25895
|
-
var DeleteByIdsMutation = core.gql(templateObject_3$
|
|
25896
|
-
var LoadAllWithContentQuery = core.gql(templateObject_4$
|
|
25868
|
+
var SaveQuery = core.gql(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
|
|
25869
|
+
var LoadAllQuery = core.gql(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"], ["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"])), SocialFragments.lightUserEvent);
|
|
25870
|
+
var DeleteByIdsMutation = core.gql(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"], ["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"])));
|
|
25871
|
+
var LoadAllWithContentQuery = core.gql(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
|
|
25897
25872
|
var UserEventService = /** @class */ (function (_super) {
|
|
25898
25873
|
__extends(UserEventService, _super);
|
|
25899
25874
|
function UserEventService(graphql, accountService, network, translate, toastController, environment) {
|
|
@@ -26214,7 +26189,7 @@
|
|
|
26214
26189
|
};
|
|
26215
26190
|
return UserEventService;
|
|
26216
26191
|
}(BaseGraphqlService));
|
|
26217
|
-
UserEventService.ɵprov =
|
|
26192
|
+
UserEventService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserEventService_Factory() { return new UserEventService(i0.ɵɵinject(GraphqlService), i0.ɵɵinject(AccountService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(ENVIRONMENT)); }, token: UserEventService, providedIn: "root" });
|
|
26218
26193
|
UserEventService.decorators = [
|
|
26219
26194
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
26220
26195
|
];
|
|
@@ -26226,7 +26201,7 @@
|
|
|
26226
26201
|
{ type: i1$5.ToastController },
|
|
26227
26202
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
26228
26203
|
]; };
|
|
26229
|
-
var templateObject_1$
|
|
26204
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
|
|
26230
26205
|
|
|
26231
26206
|
var ICONS_MAP = {
|
|
26232
26207
|
DEBUG_DATA: { matIcon: 'bug_report' },
|
|
@@ -26487,16 +26462,16 @@
|
|
|
26487
26462
|
], exports.PersonFilter);
|
|
26488
26463
|
|
|
26489
26464
|
var PersonFragments = {
|
|
26490
|
-
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 }"])))
|
|
26465
|
+
person: core.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"], ["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"])))
|
|
26491
26466
|
};
|
|
26492
26467
|
// Load persons query
|
|
26493
26468
|
var PersonQueries = {
|
|
26494
|
-
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),
|
|
26495
|
-
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)
|
|
26469
|
+
loadAll: core.gql(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""], ["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
|
|
26470
|
+
loadAllWithTotal: core.gql(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""], ["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""])), PersonFragments.person)
|
|
26496
26471
|
};
|
|
26497
26472
|
var PersonMutations = {
|
|
26498
|
-
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),
|
|
26499
|
-
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 }"])))
|
|
26473
|
+
saveAll: core.gql(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n mutation savePersons($data:[PersonVOInput]){\n data: savePersons(persons: $data){\n ...PersonFragment\n }\n }\n ", ""], ["\n mutation savePersons($data:[PersonVOInput]){\n data: savePersons(persons: $data){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
|
|
26474
|
+
deleteAll: core.gql(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"], ["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"])))
|
|
26500
26475
|
};
|
|
26501
26476
|
var PersonService = /** @class */ (function (_super_1) {
|
|
26502
26477
|
__extends(PersonService, _super_1);
|
|
@@ -26619,7 +26594,7 @@
|
|
|
26619
26594
|
};
|
|
26620
26595
|
return PersonService;
|
|
26621
26596
|
}(BaseEntityService));
|
|
26622
|
-
PersonService.ɵprov =
|
|
26597
|
+
PersonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonService_Factory() { return new PersonService(i0.ɵɵinject(GraphqlService), i0.ɵɵinject(PlatformService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(EntitiesStorage)); }, token: PersonService, providedIn: "root" });
|
|
26623
26598
|
PersonService.decorators = [
|
|
26624
26599
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
26625
26600
|
];
|
|
@@ -26629,7 +26604,7 @@
|
|
|
26629
26604
|
{ type: NetworkService },
|
|
26630
26605
|
{ type: EntitiesStorage }
|
|
26631
26606
|
]; };
|
|
26632
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
26607
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
|
|
26633
26608
|
|
|
26634
26609
|
var PersonValidatorService = /** @class */ (function () {
|
|
26635
26610
|
function PersonValidatorService(formBuilder, accountValidatorService) {
|
|
@@ -26652,7 +26627,7 @@
|
|
|
26652
26627
|
};
|
|
26653
26628
|
return PersonValidatorService;
|
|
26654
26629
|
}());
|
|
26655
|
-
PersonValidatorService.ɵprov =
|
|
26630
|
+
PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
|
|
26656
26631
|
PersonValidatorService.decorators = [
|
|
26657
26632
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
26658
26633
|
];
|
|
@@ -26824,7 +26799,7 @@
|
|
|
26824
26799
|
],
|
|
26825
26800
|
animations: [slideUpDownAnimation],
|
|
26826
26801
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
26827
|
-
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:
|
|
26802
|
+
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}"]
|
|
26828
26803
|
},] }
|
|
26829
26804
|
];
|
|
26830
26805
|
UsersPage.ctorParameters = function () { return [
|
|
@@ -26873,16 +26848,16 @@
|
|
|
26873
26848
|
];
|
|
26874
26849
|
AdminModule.ctorParameters = function () { return []; };
|
|
26875
26850
|
|
|
26876
|
-
var ɵ0 = {
|
|
26851
|
+
var ɵ0$a = {
|
|
26877
26852
|
profile: 'ADMIN'
|
|
26878
26853
|
};
|
|
26879
|
-
var routes = [
|
|
26854
|
+
var routes$1 = [
|
|
26880
26855
|
{
|
|
26881
26856
|
path: 'users',
|
|
26882
26857
|
pathMatch: 'full',
|
|
26883
26858
|
component: UsersPage,
|
|
26884
26859
|
canActivate: [AuthGuardService],
|
|
26885
|
-
data: ɵ0
|
|
26860
|
+
data: ɵ0$a
|
|
26886
26861
|
}
|
|
26887
26862
|
];
|
|
26888
26863
|
var AdminRoutingModule = /** @class */ (function () {
|
|
@@ -26895,13 +26870,13 @@
|
|
|
26895
26870
|
imports: [
|
|
26896
26871
|
SharedRoutingModule,
|
|
26897
26872
|
AdminModule,
|
|
26898
|
-
i3.RouterModule.forChild(routes)
|
|
26873
|
+
i3.RouterModule.forChild(routes$1)
|
|
26899
26874
|
],
|
|
26900
26875
|
exports: [i3.RouterModule]
|
|
26901
26876
|
},] }
|
|
26902
26877
|
];
|
|
26903
26878
|
|
|
26904
|
-
var ErrorCodes = {
|
|
26879
|
+
var ErrorCodes$2 = {
|
|
26905
26880
|
LOAD_PERSONS_ERROR: 100,
|
|
26906
26881
|
SAVE_PERSONS_ERROR: 101,
|
|
26907
26882
|
DELETE_PERSONS_ERROR: 102,
|
|
@@ -27009,7 +26984,7 @@
|
|
|
27009
26984
|
exports.EntityStore = EntityStore;
|
|
27010
26985
|
exports.EntityUtils = EntityUtils;
|
|
27011
26986
|
exports.Environment = Environment;
|
|
27012
|
-
exports.ErrorCodes = ErrorCodes;
|
|
26987
|
+
exports.ErrorCodes = ErrorCodes$2;
|
|
27013
26988
|
exports.EvenPipe = EvenPipe;
|
|
27014
26989
|
exports.FileService = FileService;
|
|
27015
26990
|
exports.FileSizePipe = FileSizePipe;
|
|
@@ -27017,7 +26992,7 @@
|
|
|
27017
26992
|
exports.FormButtonsBarComponent = FormButtonsBarComponent;
|
|
27018
26993
|
exports.FormButtonsBarToken = FormButtonsBarToken;
|
|
27019
26994
|
exports.FormFieldValuesHolder = FormFieldValuesHolder;
|
|
27020
|
-
exports.Fragments = Fragments;
|
|
26995
|
+
exports.Fragments = Fragments$1;
|
|
27021
26996
|
exports.GraphqlService = GraphqlService;
|
|
27022
26997
|
exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
|
|
27023
26998
|
exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
|