@sumaris-net/ngx-components 0.23.1 → 0.23.2-beta
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 +248 -272
- 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/shared/functions.js +6 -5
- package/esm2015/src/app/shared/material/boolean/material.boolean.js +1 -1
- package/fesm2015/ngx-sumaris-components.js +260 -274
- 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 () {
|
|
@@ -536,10 +512,11 @@
|
|
|
536
512
|
items = items.filter(function (v) { return !opts.excludedIds.includes(+v['id']); });
|
|
537
513
|
}
|
|
538
514
|
// Sort
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
515
|
+
items = items.sort(propertiesPathComparator(keys));
|
|
516
|
+
// const sortAttribute = keys && keys[0]
|
|
517
|
+
// if (sortAttribute) {
|
|
518
|
+
// items = sort(items, sortAttribute);
|
|
519
|
+
// }
|
|
543
520
|
// Truncate if need
|
|
544
521
|
var total = (items === null || items === void 0 ? void 0 : items.length) || 0;
|
|
545
522
|
if (opts) {
|
|
@@ -1162,19 +1139,19 @@
|
|
|
1162
1139
|
};
|
|
1163
1140
|
return MatAutocompleteConfigHolder;
|
|
1164
1141
|
}());
|
|
1165
|
-
var DEFAULT_VALUE_ACCESSOR
|
|
1142
|
+
var DEFAULT_VALUE_ACCESSOR = {
|
|
1166
1143
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
1167
1144
|
useExisting: i0.forwardRef(function () { return MatAutocompleteField; }),
|
|
1168
1145
|
multi: true
|
|
1169
1146
|
};
|
|
1170
|
-
var noop
|
|
1171
|
-
var ɵ0
|
|
1147
|
+
var noop = function () { };
|
|
1148
|
+
var ɵ0 = noop;
|
|
1172
1149
|
var MatAutocompleteField = /** @class */ (function () {
|
|
1173
1150
|
function MatAutocompleteField(cd, formGroupDir) {
|
|
1174
1151
|
this.cd = cd;
|
|
1175
1152
|
this.formGroupDir = formGroupDir;
|
|
1176
|
-
this._onChangeCallback = noop
|
|
1177
|
-
this._onTouchedCallback = noop
|
|
1153
|
+
this._onChangeCallback = noop;
|
|
1154
|
+
this._onTouchedCallback = noop;
|
|
1178
1155
|
this._subscription = new rxjs.Subscription();
|
|
1179
1156
|
this._filter$ = new rxjs.BehaviorSubject(undefined);
|
|
1180
1157
|
this._reload$ = new rxjs.Subject();
|
|
@@ -1831,7 +1808,7 @@
|
|
|
1831
1808
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
1832
1809
|
selector: 'mat-autocomplete-field',
|
|
1833
1810
|
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\" readonly>\n <ion-text>{{displayWith(value)}}</ion-text>\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 (keydown.escape)=\"onKeydownEscape.emit($event)\"\n [compareWith]=\"compareWith\"\n [multiple]=\"multiple\"\n [required]=\"required\">\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 <mat-option *ngIf=\"_moreItemsCount\" (ngInit)=\"_initMatSelectInfiniteScroll()\"\n class=\"ion-padding\" disabled>\n <ion-skeleton-text [animated]=\"true\" style=\"width: 100%\"></ion-skeleton-text>\n </mat-option>\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 [required]=\"required\"\n (click)=\"onClick.emit($event)\"\n (focus)=\"filterInputTextFocusInEvent($event)\"\n (blur)=\"filterInputTextBlurEvent($event)\"\n (keydown.escape)=\"onKeydownEscape.emit($event)\"\n (keyup.enter)=\"onKeyupEnter.emit($event)\"\n (keyup.arrowdown)=\"!autocomplete.opened && 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)=\"_initAutocompleteInfiniteScroll()\"\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",
|
|
1834
|
-
providers: [DEFAULT_VALUE_ACCESSOR
|
|
1811
|
+
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
1835
1812
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1836
1813
|
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}"]
|
|
1837
1814
|
},] }
|
|
@@ -1909,7 +1886,7 @@
|
|
|
1909
1886
|
};
|
|
1910
1887
|
return DateFormatPipe;
|
|
1911
1888
|
}());
|
|
1912
|
-
DateFormatPipe.ɵprov =
|
|
1889
|
+
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" });
|
|
1913
1890
|
DateFormatPipe.decorators = [
|
|
1914
1891
|
{ type: i0.Pipe, args: [{
|
|
1915
1892
|
name: 'dateFormat'
|
|
@@ -1921,7 +1898,7 @@
|
|
|
1921
1898
|
{ type: i1$2.TranslateService }
|
|
1922
1899
|
]; };
|
|
1923
1900
|
|
|
1924
|
-
var moment
|
|
1901
|
+
var moment = momentImported__namespace;
|
|
1925
1902
|
var DateDiffDurationPipe = /** @class */ (function () {
|
|
1926
1903
|
function DateDiffDurationPipe(dateAdapter, translate) {
|
|
1927
1904
|
var _this = this;
|
|
@@ -1938,10 +1915,10 @@
|
|
|
1938
1915
|
return this.format(startDate, endDate);
|
|
1939
1916
|
};
|
|
1940
1917
|
DateDiffDurationPipe.prototype.format = function (startDate, endDate) {
|
|
1941
|
-
var duration = moment
|
|
1918
|
+
var duration = moment.duration(endDate.diff(startDate));
|
|
1942
1919
|
if (duration.asMinutes() < 0)
|
|
1943
1920
|
return '';
|
|
1944
|
-
var timeDuration = moment
|
|
1921
|
+
var timeDuration = moment(0)
|
|
1945
1922
|
.hour(duration.hours())
|
|
1946
1923
|
.minute(duration.minutes());
|
|
1947
1924
|
var days = Math.floor(duration.asDays());
|
|
@@ -1949,7 +1926,7 @@
|
|
|
1949
1926
|
};
|
|
1950
1927
|
return DateDiffDurationPipe;
|
|
1951
1928
|
}());
|
|
1952
|
-
DateDiffDurationPipe.ɵprov =
|
|
1929
|
+
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" });
|
|
1953
1930
|
DateDiffDurationPipe.decorators = [
|
|
1954
1931
|
{ type: i0.Pipe, args: [{
|
|
1955
1932
|
name: 'dateDiffDuration'
|
|
@@ -1971,7 +1948,7 @@
|
|
|
1971
1948
|
};
|
|
1972
1949
|
return DateFromNowPipe;
|
|
1973
1950
|
}());
|
|
1974
|
-
DateFromNowPipe.ɵprov =
|
|
1951
|
+
DateFromNowPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0.ɵɵinject(i1$1.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
|
|
1975
1952
|
DateFromNowPipe.decorators = [
|
|
1976
1953
|
{ type: i0.Pipe, args: [{
|
|
1977
1954
|
name: 'dateFromNow'
|
|
@@ -2040,7 +2017,7 @@
|
|
|
2040
2017
|
value *= -1;
|
|
2041
2018
|
}
|
|
2042
2019
|
}
|
|
2043
|
-
var degrees = roundFloat
|
|
2020
|
+
var degrees = roundFloat(value, opts.maxDecimals).toString();
|
|
2044
2021
|
// Add sign
|
|
2045
2022
|
var sign = negative ? '-' : '+';
|
|
2046
2023
|
if (opts.placeholderChar) {
|
|
@@ -2091,7 +2068,7 @@
|
|
|
2091
2068
|
}
|
|
2092
2069
|
var degrees = Math.trunc(value);
|
|
2093
2070
|
var minutes = Math.trunc((value - degrees) * 60);
|
|
2094
|
-
var seconds = roundFloat
|
|
2071
|
+
var seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
|
|
2095
2072
|
while (seconds >= 60) {
|
|
2096
2073
|
seconds -= 60;
|
|
2097
2074
|
minutes += 1;
|
|
@@ -2159,7 +2136,7 @@
|
|
|
2159
2136
|
}
|
|
2160
2137
|
}
|
|
2161
2138
|
var degrees = Math.trunc(value);
|
|
2162
|
-
var minutes = roundFloat
|
|
2139
|
+
var minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
|
|
2163
2140
|
while (minutes >= 60) {
|
|
2164
2141
|
minutes -= 60;
|
|
2165
2142
|
degrees += 1;
|
|
@@ -2210,15 +2187,15 @@
|
|
|
2210
2187
|
return NaN;
|
|
2211
2188
|
}
|
|
2212
2189
|
if (pattern === 'DD')
|
|
2213
|
-
return roundFloat
|
|
2190
|
+
return roundFloat(degrees, maxDecimals);
|
|
2214
2191
|
var minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
|
|
2215
2192
|
var seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
|
|
2216
2193
|
var direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
|
|
2217
2194
|
var sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
|
|
2218
2195
|
degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
|
|
2219
|
-
return roundFloat
|
|
2196
|
+
return roundFloat(degrees, maxDecimals);
|
|
2220
2197
|
}
|
|
2221
|
-
function roundFloat
|
|
2198
|
+
function roundFloat(input, maxDecimals) {
|
|
2222
2199
|
if (maxDecimals > 0) {
|
|
2223
2200
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
2224
2201
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -2241,7 +2218,7 @@
|
|
|
2241
2218
|
};
|
|
2242
2219
|
return LatLongFormatPipe;
|
|
2243
2220
|
}());
|
|
2244
|
-
LatLongFormatPipe.ɵprov =
|
|
2221
|
+
LatLongFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
|
|
2245
2222
|
LatLongFormatPipe.decorators = [
|
|
2246
2223
|
{ type: i0.Pipe, args: [{
|
|
2247
2224
|
name: 'latLongFormat'
|
|
@@ -2254,7 +2231,7 @@
|
|
|
2254
2231
|
}
|
|
2255
2232
|
return LatitudeFormatPipe;
|
|
2256
2233
|
}());
|
|
2257
|
-
LatitudeFormatPipe.ɵprov =
|
|
2234
|
+
LatitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
|
|
2258
2235
|
LatitudeFormatPipe.decorators = [
|
|
2259
2236
|
{ type: i0.Pipe, args: [{
|
|
2260
2237
|
name: 'latitudeFormat'
|
|
@@ -2267,7 +2244,7 @@
|
|
|
2267
2244
|
}
|
|
2268
2245
|
return LongitudeFormatPipe;
|
|
2269
2246
|
}());
|
|
2270
|
-
LongitudeFormatPipe.ɵprov =
|
|
2247
|
+
LongitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
|
|
2271
2248
|
LongitudeFormatPipe.decorators = [
|
|
2272
2249
|
{ type: i0.Pipe, args: [{
|
|
2273
2250
|
name: 'longitudeFormat'
|
|
@@ -2290,7 +2267,7 @@
|
|
|
2290
2267
|
};
|
|
2291
2268
|
return NumberFormatPipe;
|
|
2292
2269
|
}());
|
|
2293
|
-
NumberFormatPipe.ɵprov =
|
|
2270
|
+
NumberFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
|
|
2294
2271
|
NumberFormatPipe.decorators = [
|
|
2295
2272
|
{ type: i0.Pipe, args: [{
|
|
2296
2273
|
name: 'numberFormat'
|
|
@@ -2333,7 +2310,7 @@
|
|
|
2333
2310
|
};
|
|
2334
2311
|
return HighlightPipe;
|
|
2335
2312
|
}());
|
|
2336
|
-
HighlightPipe.ɵprov =
|
|
2313
|
+
HighlightPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
|
|
2337
2314
|
HighlightPipe.decorators = [
|
|
2338
2315
|
{ type: i0.Pipe, args: [{
|
|
2339
2316
|
name: 'highlight'
|
|
@@ -2401,7 +2378,7 @@
|
|
|
2401
2378
|
{ type: i0.Pipe, args: [{ name: 'fileSize' },] }
|
|
2402
2379
|
];
|
|
2403
2380
|
|
|
2404
|
-
var moment$
|
|
2381
|
+
var moment$1 = momentImported__namespace;
|
|
2405
2382
|
var DATE_UNIX_TIMESTAMP = 'X';
|
|
2406
2383
|
var DATE_UNIX_MS_TIMESTAMP = 'x';
|
|
2407
2384
|
var DateUtils = /** @class */ (function () {
|
|
@@ -2436,32 +2413,32 @@
|
|
|
2436
2413
|
if (!value || momentImported.isMoment(value))
|
|
2437
2414
|
return value;
|
|
2438
2415
|
// Parse the input value, as a ISO date time
|
|
2439
|
-
var date = moment$
|
|
2416
|
+
var date = moment$1(value, DATE_ISO_PATTERN);
|
|
2440
2417
|
if (date.isValid())
|
|
2441
2418
|
return date;
|
|
2442
2419
|
// Not valid: trying to convert from unix timestamp
|
|
2443
2420
|
if (typeof value === 'string') {
|
|
2444
2421
|
console.warn('Wrong date format - Trying to convert from local time: ' + value);
|
|
2445
2422
|
if (value.length === 10) {
|
|
2446
|
-
return moment$
|
|
2423
|
+
return moment$1(value, DATE_UNIX_TIMESTAMP);
|
|
2447
2424
|
}
|
|
2448
2425
|
else if (value.length === 13) {
|
|
2449
|
-
return moment$
|
|
2426
|
+
return moment$1(value, DATE_UNIX_MS_TIMESTAMP);
|
|
2450
2427
|
}
|
|
2451
2428
|
}
|
|
2452
2429
|
console.warn('Unable to parse date: ' + value);
|
|
2453
2430
|
return undefined;
|
|
2454
2431
|
}
|
|
2455
2432
|
function fromUnixTimestamp(timeInSec) {
|
|
2456
|
-
return moment$
|
|
2433
|
+
return moment$1(timeInSec, DATE_UNIX_TIMESTAMP);
|
|
2457
2434
|
}
|
|
2458
2435
|
function fromUnixMsTimestamp(timeInMs) {
|
|
2459
|
-
return moment$
|
|
2436
|
+
return moment$1(timeInMs, DATE_UNIX_MS_TIMESTAMP);
|
|
2460
2437
|
}
|
|
2461
2438
|
function toDuration(value, unit) {
|
|
2462
2439
|
if (!value)
|
|
2463
2440
|
return undefined;
|
|
2464
|
-
var duration = moment$
|
|
2441
|
+
var duration = moment$1.duration(value, unit);
|
|
2465
2442
|
// fix 990+ ms
|
|
2466
2443
|
if (duration.milliseconds() >= 990) {
|
|
2467
2444
|
duration.add(1000 - duration.milliseconds(), 'ms');
|
|
@@ -2491,7 +2468,7 @@
|
|
|
2491
2468
|
};
|
|
2492
2469
|
return DurationPipe;
|
|
2493
2470
|
}());
|
|
2494
|
-
DurationPipe.ɵprov =
|
|
2471
|
+
DurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0.ɵɵinject(i1$2.TranslateService)); }, token: DurationPipe, providedIn: "root" });
|
|
2495
2472
|
DurationPipe.decorators = [
|
|
2496
2473
|
{ type: i0.Pipe, args: [{
|
|
2497
2474
|
name: 'duration'
|
|
@@ -2515,7 +2492,7 @@
|
|
|
2515
2492
|
};
|
|
2516
2493
|
return MathAbsPipe;
|
|
2517
2494
|
}());
|
|
2518
|
-
MathAbsPipe.ɵprov =
|
|
2495
|
+
MathAbsPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
|
|
2519
2496
|
MathAbsPipe.decorators = [
|
|
2520
2497
|
{ type: i0.Pipe, args: [{
|
|
2521
2498
|
name: 'mathAbs'
|
|
@@ -2530,7 +2507,7 @@
|
|
|
2530
2507
|
};
|
|
2531
2508
|
return EvenPipe;
|
|
2532
2509
|
}());
|
|
2533
|
-
EvenPipe.ɵprov =
|
|
2510
|
+
EvenPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
|
|
2534
2511
|
EvenPipe.decorators = [
|
|
2535
2512
|
{ type: i0.Pipe, args: [{
|
|
2536
2513
|
name: 'even'
|
|
@@ -2545,7 +2522,7 @@
|
|
|
2545
2522
|
};
|
|
2546
2523
|
return OddPipe;
|
|
2547
2524
|
}());
|
|
2548
|
-
OddPipe.ɵprov =
|
|
2525
|
+
OddPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
|
|
2549
2526
|
OddPipe.decorators = [
|
|
2550
2527
|
{ type: i0.Pipe, args: [{
|
|
2551
2528
|
name: 'odd'
|
|
@@ -2677,7 +2654,7 @@
|
|
|
2677
2654
|
};
|
|
2678
2655
|
return MapGetPipe;
|
|
2679
2656
|
}());
|
|
2680
|
-
MapGetPipe.ɵprov =
|
|
2657
|
+
MapGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
|
|
2681
2658
|
MapGetPipe.decorators = [
|
|
2682
2659
|
{ type: i0.Pipe, args: [{
|
|
2683
2660
|
name: 'mapGet'
|
|
@@ -2694,7 +2671,7 @@
|
|
|
2694
2671
|
};
|
|
2695
2672
|
return MapKeysPipe;
|
|
2696
2673
|
}());
|
|
2697
|
-
MapKeysPipe.ɵprov =
|
|
2674
|
+
MapKeysPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
|
|
2698
2675
|
MapKeysPipe.decorators = [
|
|
2699
2676
|
{ type: i0.Pipe, args: [{
|
|
2700
2677
|
name: 'mapKeys'
|
|
@@ -2711,7 +2688,7 @@
|
|
|
2711
2688
|
};
|
|
2712
2689
|
return MapValuesPipe;
|
|
2713
2690
|
}());
|
|
2714
|
-
MapValuesPipe.ɵprov =
|
|
2691
|
+
MapValuesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
|
|
2715
2692
|
MapValuesPipe.decorators = [
|
|
2716
2693
|
{ type: i0.Pipe, args: [{
|
|
2717
2694
|
name: 'mapValues'
|
|
@@ -2727,7 +2704,7 @@
|
|
|
2727
2704
|
};
|
|
2728
2705
|
return IsNotNilOrBlankPipe;
|
|
2729
2706
|
}());
|
|
2730
|
-
IsNotNilOrBlankPipe.ɵprov =
|
|
2707
|
+
IsNotNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
|
|
2731
2708
|
IsNotNilOrBlankPipe.decorators = [
|
|
2732
2709
|
{ type: i0.Pipe, args: [{
|
|
2733
2710
|
name: 'isNotNilOrBlank'
|
|
@@ -2742,7 +2719,7 @@
|
|
|
2742
2719
|
};
|
|
2743
2720
|
return IsNilOrBlankPipe;
|
|
2744
2721
|
}());
|
|
2745
|
-
IsNilOrBlankPipe.ɵprov =
|
|
2722
|
+
IsNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
|
|
2746
2723
|
IsNilOrBlankPipe.decorators = [
|
|
2747
2724
|
{ type: i0.Pipe, args: [{
|
|
2748
2725
|
name: 'isNilOrBlank'
|
|
@@ -2757,7 +2734,7 @@
|
|
|
2757
2734
|
};
|
|
2758
2735
|
return ToStringPipe;
|
|
2759
2736
|
}());
|
|
2760
|
-
ToStringPipe.ɵprov =
|
|
2737
|
+
ToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
|
|
2761
2738
|
ToStringPipe.decorators = [
|
|
2762
2739
|
{ type: i0.Pipe, args: [{
|
|
2763
2740
|
name: 'toString'
|
|
@@ -2772,7 +2749,7 @@
|
|
|
2772
2749
|
};
|
|
2773
2750
|
return StrLengthPipe;
|
|
2774
2751
|
}());
|
|
2775
|
-
StrLengthPipe.ɵprov =
|
|
2752
|
+
StrLengthPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
|
|
2776
2753
|
StrLengthPipe.decorators = [
|
|
2777
2754
|
{ type: i0.Pipe, args: [{
|
|
2778
2755
|
name: 'strLength'
|
|
@@ -2825,7 +2802,7 @@
|
|
|
2825
2802
|
};
|
|
2826
2803
|
return TranslateContextService;
|
|
2827
2804
|
}());
|
|
2828
|
-
TranslateContextService.ɵprov =
|
|
2805
|
+
TranslateContextService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0.ɵɵinject(i1$2.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
|
|
2829
2806
|
TranslateContextService.decorators = [
|
|
2830
2807
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2831
2808
|
];
|
|
@@ -2842,7 +2819,7 @@
|
|
|
2842
2819
|
};
|
|
2843
2820
|
return TranslateContextPipe;
|
|
2844
2821
|
}());
|
|
2845
|
-
TranslateContextPipe.ɵprov =
|
|
2822
|
+
TranslateContextPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextPipe_Factory() { return new TranslateContextPipe(i0.ɵɵinject(TranslateContextService)); }, token: TranslateContextPipe, providedIn: "root" });
|
|
2846
2823
|
TranslateContextPipe.decorators = [
|
|
2847
2824
|
{ type: i0.Pipe, args: [{
|
|
2848
2825
|
name: 'translateContext'
|
|
@@ -2862,7 +2839,7 @@
|
|
|
2862
2839
|
};
|
|
2863
2840
|
return TranslatablePipe;
|
|
2864
2841
|
}());
|
|
2865
|
-
TranslatablePipe.ɵprov =
|
|
2842
|
+
TranslatablePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslatablePipe_Factory() { return new TranslatablePipe(); }, token: TranslatablePipe, providedIn: "root" });
|
|
2866
2843
|
TranslatablePipe.decorators = [
|
|
2867
2844
|
{ type: i0.Pipe, args: [{
|
|
2868
2845
|
name: 'translatable'
|
|
@@ -2882,7 +2859,7 @@
|
|
|
2882
2859
|
};
|
|
2883
2860
|
return PropertyGetPipe;
|
|
2884
2861
|
}());
|
|
2885
|
-
PropertyGetPipe.ɵprov =
|
|
2862
|
+
PropertyGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
|
|
2886
2863
|
PropertyGetPipe.decorators = [
|
|
2887
2864
|
{ type: i0.Pipe, args: [{
|
|
2888
2865
|
name: 'propertyGet'
|
|
@@ -3139,14 +3116,14 @@
|
|
|
3139
3116
|
},] }
|
|
3140
3117
|
];
|
|
3141
3118
|
|
|
3142
|
-
var moment$
|
|
3119
|
+
var moment$2 = momentImported__namespace;
|
|
3143
3120
|
// @dynamic
|
|
3144
3121
|
var SharedValidators = /** @class */ (function () {
|
|
3145
3122
|
function SharedValidators() {
|
|
3146
3123
|
}
|
|
3147
3124
|
SharedValidators.validDate = function (control) {
|
|
3148
3125
|
var value = control.value;
|
|
3149
|
-
var date = !value || moment$
|
|
3126
|
+
var date = !value || moment$2.isMoment(value) ? value : moment$2(control.value, DATE_ISO_PATTERN);
|
|
3150
3127
|
if (date && (!date.isValid() || date.year() < 1970)) {
|
|
3151
3128
|
return { validDate: true };
|
|
3152
3129
|
}
|
|
@@ -3617,9 +3594,9 @@
|
|
|
3617
3594
|
var hour = parseInt(durationParts[0] || '0');
|
|
3618
3595
|
var minute = parseInt(durationParts[1] || '0');
|
|
3619
3596
|
var value = hour + (minute + 0.5) / 60;
|
|
3620
|
-
return roundFloat(value, maxDecimals);
|
|
3597
|
+
return roundFloat$1(value, maxDecimals);
|
|
3621
3598
|
}
|
|
3622
|
-
function roundFloat(input, maxDecimals) {
|
|
3599
|
+
function roundFloat$1(input, maxDecimals) {
|
|
3623
3600
|
if (maxDecimals > 0) {
|
|
3624
3601
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
3625
3602
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -3643,9 +3620,9 @@
|
|
|
3643
3620
|
DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
|
|
3644
3621
|
}
|
|
3645
3622
|
};
|
|
3646
|
-
var noop$
|
|
3623
|
+
var noop$1 = function () {
|
|
3647
3624
|
};
|
|
3648
|
-
var ɵ0$
|
|
3625
|
+
var ɵ0$1 = noop$1;
|
|
3649
3626
|
var MatLatLongField = /** @class */ (function () {
|
|
3650
3627
|
function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
|
|
3651
3628
|
this.platform = platform;
|
|
@@ -3653,8 +3630,8 @@
|
|
|
3653
3630
|
this.formBuilder = formBuilder;
|
|
3654
3631
|
this.cd = cd;
|
|
3655
3632
|
this.formGroupDir = formGroupDir;
|
|
3656
|
-
this._onChangeCallback = noop$
|
|
3657
|
-
this._onTouchedCallback = noop$
|
|
3633
|
+
this._onChangeCallback = noop$1;
|
|
3634
|
+
this._onTouchedCallback = noop$1;
|
|
3658
3635
|
this._subscription = new rxjs.Subscription();
|
|
3659
3636
|
this.disabling = false;
|
|
3660
3637
|
this.writing = false;
|
|
@@ -4007,14 +3984,14 @@
|
|
|
4007
3984
|
},] }
|
|
4008
3985
|
];
|
|
4009
3986
|
|
|
4010
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
3987
|
+
var DEFAULT_VALUE_ACCESSOR$1 = {
|
|
4011
3988
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
4012
3989
|
useExisting: i0.forwardRef(function () { return MatDate; }),
|
|
4013
3990
|
multi: true
|
|
4014
3991
|
};
|
|
4015
|
-
var DAY_MASK
|
|
4016
|
-
var noop$
|
|
4017
|
-
var ɵ0$
|
|
3992
|
+
var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
3993
|
+
var noop$2 = function () { };
|
|
3994
|
+
var ɵ0$2 = noop$2;
|
|
4018
3995
|
var MatDate = /** @class */ (function () {
|
|
4019
3996
|
function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
4020
3997
|
this.dateAdapter = dateAdapter;
|
|
@@ -4023,12 +4000,12 @@
|
|
|
4023
4000
|
this.cd = cd;
|
|
4024
4001
|
this.keyboard = keyboard;
|
|
4025
4002
|
this.formGroupDir = formGroupDir;
|
|
4026
|
-
this._onChangeCallback = noop$
|
|
4027
|
-
this._onTouchedCallback = noop$
|
|
4003
|
+
this._onChangeCallback = noop$2;
|
|
4004
|
+
this._onTouchedCallback = noop$2;
|
|
4028
4005
|
this._subscription = new rxjs.Subscription();
|
|
4029
4006
|
this.writing = true;
|
|
4030
4007
|
this.disabling = false;
|
|
4031
|
-
this.dayMask = DAY_MASK
|
|
4008
|
+
this.dayMask = DAY_MASK;
|
|
4032
4009
|
this.disabled = false;
|
|
4033
4010
|
this.floatLabel = 'auto';
|
|
4034
4011
|
this.readonly = false;
|
|
@@ -4297,7 +4274,7 @@
|
|
|
4297
4274
|
selector: 'mat-date-field',
|
|
4298
4275
|
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",
|
|
4299
4276
|
providers: [
|
|
4300
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
4277
|
+
DEFAULT_VALUE_ACCESSOR$1,
|
|
4301
4278
|
],
|
|
4302
4279
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4303
4280
|
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%}"]
|
|
@@ -4330,17 +4307,17 @@
|
|
|
4330
4307
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
4331
4308
|
};
|
|
4332
4309
|
|
|
4333
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
4310
|
+
var DEFAULT_VALUE_ACCESSOR$2 = {
|
|
4334
4311
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
4335
4312
|
useExisting: i0.forwardRef(function () { return MatDateTime; }),
|
|
4336
4313
|
multi: true
|
|
4337
4314
|
};
|
|
4338
4315
|
var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
4339
4316
|
var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
|
|
4340
|
-
var HOUR_MASK
|
|
4341
|
-
var noop$
|
|
4317
|
+
var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
4318
|
+
var noop$3 = function () {
|
|
4342
4319
|
};
|
|
4343
|
-
var ɵ0$
|
|
4320
|
+
var ɵ0$3 = noop$3;
|
|
4344
4321
|
var MatDateTime = /** @class */ (function () {
|
|
4345
4322
|
function MatDateTime(platform, dateAdapter, translate, formBuilder, keyboard, cd, formGroupDir) {
|
|
4346
4323
|
this.platform = platform;
|
|
@@ -4350,14 +4327,14 @@
|
|
|
4350
4327
|
this.keyboard = keyboard;
|
|
4351
4328
|
this.cd = cd;
|
|
4352
4329
|
this.formGroupDir = formGroupDir;
|
|
4353
|
-
this._onChangeCallback = noop$
|
|
4354
|
-
this._onTouchedCallback = noop$
|
|
4330
|
+
this._onChangeCallback = noop$3;
|
|
4331
|
+
this._onTouchedCallback = noop$3;
|
|
4355
4332
|
this._subscription = new rxjs.Subscription();
|
|
4356
4333
|
this.writing = true;
|
|
4357
4334
|
this.disabling = false;
|
|
4358
4335
|
this._onDestroy = new i0.EventEmitter();
|
|
4359
4336
|
this.dayMask = DAY_MASK$1;
|
|
4360
|
-
this.hourMask = HOUR_MASK
|
|
4337
|
+
this.hourMask = HOUR_MASK;
|
|
4361
4338
|
this.floatLabel = 'auto';
|
|
4362
4339
|
this.readonly = false;
|
|
4363
4340
|
this.compact = false;
|
|
@@ -4704,7 +4681,7 @@
|
|
|
4704
4681
|
selector: 'mat-date-time-field',
|
|
4705
4682
|
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?.key || formControl.errors.msg) | translate: formControl.errors.msg?.params}}</mat-error>\n </ng-container>\n <ng-content select=\"mat-error\"></ng-content>\n\n <!-- mat hint -->\n <div class=\"mat-form-field-hint-wrapper\" [class.cdk-visually-hidden]=\"formControl.invalid\">\n <div class=\"mat-form-field-hint-spacer\"></div>\n <ng-content select=\"mat-hint\"></ng-content>\n </div>\n </div>\n\n </ion-col>\n\n <!-- hour -->\n <ion-col class=\"hour ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && (timeFormControl.invalid || formControl.invalid)\">\n <mat-label *ngIf=\"placeholder && floatLabel != 'never'\" translate>COMMON.TIME</mat-label>\n <input matInput #matInput type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"timeFormControl\"\n autocomplete=\"off\"\n min=\"0\" max=\"23\"\n [textMask]=\"{mask: hourMask, keepCharPositions: true, placeholderChar: placeholderChar, guide: true}\"\n [placeholder]=\"'COMMON.TIME_PLACEHOLDER'|translate\"\n [required]=\"required\"\n (keyup.arrowdown)=\"openTimePicker($event)\"\n (keyup.escape)=\"preventEvent($event)\"\n (blur)=\"checkIfTouched()\"\n [tabindex]=\"tabindex !== undefined ? tabindex+1 : undefined\">\n\n <input matInput #matInput type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"timeFormControl\"\n (click)=\"openTimePickerIfMobile($event)\"\n readonly>\n\n <input matInput type=\"text\"\n [formControl]=\"timeFormControl\"\n hidden\n [ngxTimepicker]=\"timePicker\"\n [format]=\"24\">\n\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && !mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePicker($event)\" >\n <mat-icon>keyboard_arrow_down</mat-icon>\n </button>\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePickerIfMobile($event)\">\n <mat-icon>access_time</mat-icon>\n </button>\n\n <ngx-material-timepicker #timePicker [@.disabled]=\"true\"\n (timeSet)=\"onTimePickerChange($event)\"\n [ESC]=\"!mobile\"\n [defaultTime]=\"'00:00'\"\n [cancelBtnTmpl]=\"timePickerCancelButton\"\n [confirmBtnTmpl]=\"timePickerOkButton\"\n [preventOverlayClick]=\"mobile\"\n [enableKeyboardInput]=\"false\"\n [disableAnimation]=\"true\">\n <!-- cancel button -->\n <ng-template #timePickerCancelButton>\n <ion-button fill=\"clear\" color=\"dark\">\n <ion-label translate>COMMON.BTN_CANCEL</ion-label>\n </ion-button>\n </ng-template>\n\n <!-- confirm button -->\n <ng-template #timePickerOkButton>\n <ion-button fill=\"solid\" color=\"tertiary\">\n <ion-label translate>COMMON.BTN_VALIDATE</ion-label>\n </ion-button>\n </ng-template>\n\n </ngx-material-timepicker>\n </mat-form-field>\n </ion-col>\n </ion-row>\n </ion-grid>\n\n\n</ng-template>\n\n<ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n</ng-template>\n\n<ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n</ng-template>\n",
|
|
4706
4683
|
providers: [
|
|
4707
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
4684
|
+
DEFAULT_VALUE_ACCESSOR$2,
|
|
4708
4685
|
],
|
|
4709
4686
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
4710
4687
|
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%}"]
|
|
@@ -4743,10 +4720,10 @@
|
|
|
4743
4720
|
useExisting: i0.forwardRef(function () { return MatDateShort; }),
|
|
4744
4721
|
multi: true
|
|
4745
4722
|
};
|
|
4746
|
-
var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
|
|
4747
|
-
var noop$
|
|
4723
|
+
var DAY_MASK$2 = [/\d/, /\d/, /\d/, /\d/];
|
|
4724
|
+
var noop$4 = function () {
|
|
4748
4725
|
};
|
|
4749
|
-
var ɵ0$
|
|
4726
|
+
var ɵ0$4 = noop$4;
|
|
4750
4727
|
var MatDateShort = /** @class */ (function () {
|
|
4751
4728
|
function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
4752
4729
|
this.dateAdapter = dateAdapter;
|
|
@@ -4755,11 +4732,11 @@
|
|
|
4755
4732
|
this.cd = cd;
|
|
4756
4733
|
this.keyboard = keyboard;
|
|
4757
4734
|
this.formGroupDir = formGroupDir;
|
|
4758
|
-
this._onChangeCallback = noop$
|
|
4759
|
-
this._onTouchedCallback = noop$
|
|
4735
|
+
this._onChangeCallback = noop$4;
|
|
4736
|
+
this._onTouchedCallback = noop$4;
|
|
4760
4737
|
this.writing = true;
|
|
4761
4738
|
this.disabling = false;
|
|
4762
|
-
this.dayMask = DAY_MASK;
|
|
4739
|
+
this.dayMask = DAY_MASK$2;
|
|
4763
4740
|
this.disabled = false;
|
|
4764
4741
|
this.floatLabel = 'auto';
|
|
4765
4742
|
this.readonly = false;
|
|
@@ -5107,16 +5084,16 @@
|
|
|
5107
5084
|
},] }
|
|
5108
5085
|
];
|
|
5109
5086
|
|
|
5110
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5087
|
+
var DEFAULT_VALUE_ACCESSOR$4 = {
|
|
5111
5088
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5112
5089
|
useExisting: i0.forwardRef(function () { return MatDuration; }),
|
|
5113
5090
|
multi: true
|
|
5114
5091
|
};
|
|
5115
5092
|
var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
|
|
5116
|
-
var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
5117
|
-
var noop$
|
|
5093
|
+
var HOUR_MASK$1 = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
5094
|
+
var noop$5 = function () {
|
|
5118
5095
|
};
|
|
5119
|
-
var ɵ0$5 = noop$
|
|
5096
|
+
var ɵ0$5 = noop$5;
|
|
5120
5097
|
var MatDuration = /** @class */ (function () {
|
|
5121
5098
|
function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
|
|
5122
5099
|
this.dateAdapter = dateAdapter;
|
|
@@ -5125,11 +5102,11 @@
|
|
|
5125
5102
|
this.cd = cd;
|
|
5126
5103
|
this.formGroupDir = formGroupDir;
|
|
5127
5104
|
this._subscription = new rxjs.Subscription();
|
|
5128
|
-
this._onChangeCallback = noop$
|
|
5129
|
-
this._onTouchedCallback = noop$
|
|
5105
|
+
this._onChangeCallback = noop$5;
|
|
5106
|
+
this._onTouchedCallback = noop$5;
|
|
5130
5107
|
this.writing = true;
|
|
5131
5108
|
this.disabling = false;
|
|
5132
|
-
this.hourMask = HOUR_MASK;
|
|
5109
|
+
this.hourMask = HOUR_MASK$1;
|
|
5133
5110
|
this.disabled = false;
|
|
5134
5111
|
this.floatLabel = 'auto';
|
|
5135
5112
|
this.readonly = false;
|
|
@@ -5322,7 +5299,7 @@
|
|
|
5322
5299
|
selector: 'mat-duration-field',
|
|
5323
5300
|
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",
|
|
5324
5301
|
providers: [
|
|
5325
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5302
|
+
DEFAULT_VALUE_ACCESSOR$4,
|
|
5326
5303
|
],
|
|
5327
5304
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5328
5305
|
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%}"]
|
|
@@ -5382,22 +5359,22 @@
|
|
|
5382
5359
|
},] }
|
|
5383
5360
|
];
|
|
5384
5361
|
|
|
5385
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5362
|
+
var DEFAULT_VALUE_ACCESSOR$5 = {
|
|
5386
5363
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5387
5364
|
useExisting: i0.forwardRef(function () { return MatBooleanField; }),
|
|
5388
5365
|
multi: true
|
|
5389
5366
|
};
|
|
5390
|
-
var noop$
|
|
5367
|
+
var noop$6 = function () {
|
|
5391
5368
|
};
|
|
5392
|
-
var ɵ0$
|
|
5369
|
+
var ɵ0$6 = noop$6;
|
|
5393
5370
|
var MatBooleanField = /** @class */ (function () {
|
|
5394
5371
|
function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
|
|
5395
5372
|
this.translate = translate;
|
|
5396
5373
|
this.formBuilder = formBuilder;
|
|
5397
5374
|
this.cd = cd;
|
|
5398
5375
|
this.formGroupDir = formGroupDir;
|
|
5399
|
-
this._onChangeCallback = noop$
|
|
5400
|
-
this._onTouchedCallback = noop$
|
|
5376
|
+
this._onChangeCallback = noop$6;
|
|
5377
|
+
this._onTouchedCallback = noop$6;
|
|
5401
5378
|
this._writing = false;
|
|
5402
5379
|
this.showRadio = false;
|
|
5403
5380
|
this.disabled = false;
|
|
@@ -5583,10 +5560,10 @@
|
|
|
5583
5560
|
selector: 'mat-boolean-field',
|
|
5584
5561
|
template: "<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled {{classList}}\">\n <input matInput hidden type=\"text\" readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{(formControl.value == null && 'COMMON.EMPTY_OPTION' || (formControl.value === true && yesLabel) || noLabel) | translate }}</ion-text>\n</mat-form-field>\n\n<ng-template #writable>\n <ng-container [ngSwitch]=\"style\">\n\n <!-- Radio -->\n <mat-form-field *ngSwitchCase=\"'radio'\"\n [floatLabel]=\"showRadio && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-radio {{classList}}\">\n <mat-label *ngIf=\"placeholder && floatLabel!=='never'\">\n {{placeholder}}\n <span [hidden]=\"showRadio\">({{yesLabel|translate}}/{{'COMMON.NO'|translate}})</span>\n </mat-label>\n\n <input matInput #fakeInput type=\"text\" readonly=\"true\"\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <!-- radio button -->\n <mat-radio-group [hidden]=\"!showRadio\"\n [formControl]=\"formControl\"\n (change)=\"onRadioValueChanged($event)\">\n <mat-radio-button #yesButton [value]=\"true\">\n <span>{{yesLabel|translate}}</span>\n </mat-radio-button> \n <mat-radio-button #noButton [value]=\"false\">\n <span>{{noLabel|translate}}</span>\n </mat-radio-button>\n </mat-radio-group>\n\n <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 {{classList}}\">\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 {{classList}}\">\n <input matInput type=\"text\" hidden\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [required]=\"required\">\n <div class=\"mat-form-field-buttons\"\n [style.--buttons-col-count]=\"buttonsColCount\"\n *ngIf=\"!formControl.disabled; else disabledLabel\">\n <!-- yes -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex\"\n (click)=\"writeValue(true, $event)\"\n (keyup.enter)=\"writeValue(true, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === true) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && yesIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{yesLabel|translate}}\n </ion-button>\n\n <!-- No button -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex !== undefined ? (_tabindex + 1) : undefined\"\n (click)=\"writeValue(false, $event)\"\n (keyup.enter)=\"writeValue(false, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === false) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && noIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{noLabel|translate}}\n </ion-button>\n </div>\n <ng-template #disabledLabel>\n <ion-label><i translate>COMMON.EMPTY_OPTION</i></ion-label>\n </ng-template>\n\n <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",
|
|
5585
5562
|
providers: [
|
|
5586
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5563
|
+
DEFAULT_VALUE_ACCESSOR$5
|
|
5587
5564
|
],
|
|
5588
5565
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5589
|
-
styles: [":host{width:100%}.mat-form-field.mat-boolean-field-radio{margin-top:-2px}.mat-form-field.mat-boolean-field-button{margin-top:-4px}.mat-form-field .mat-form-field-buttons{width:100%;display:flex;flex-flow:row wrap;justify-content:flex-start;align-items:center}.mat-form-field .mat-form-field-buttons .mat-form-field-button{--flex-basis:calc(100% / var(--buttons-col-count, 2));flex:0 1 var(--flex-basis);max-width:
|
|
5566
|
+
styles: [":host{width:100%}.mat-form-field.mat-boolean-field-radio{margin-top:-2px}.mat-form-field.mat-boolean-field-button{margin-top:-4px}.mat-form-field .mat-form-field-buttons{width:100%;display:flex;flex-flow:row wrap;justify-content:flex-start;align-items:center}.mat-form-field .mat-form-field-buttons .mat-form-field-button{--flex-basis:calc(100% / var(--buttons-col-count, 2));flex:0 1 var(--flex-basis);max-width:min(var(--flex-basis),150px);white-space:normal;padding:0 2px;height:40px}"]
|
|
5590
5567
|
},] }
|
|
5591
5568
|
];
|
|
5592
5569
|
MatBooleanField.ctorParameters = function () { return [
|
|
@@ -5672,7 +5649,6 @@
|
|
|
5672
5649
|
return MatNumpadEvent;
|
|
5673
5650
|
}(KeyboardEvent));
|
|
5674
5651
|
|
|
5675
|
-
exports.AnimationState = void 0;
|
|
5676
5652
|
(function (AnimationState) {
|
|
5677
5653
|
AnimationState["ENTER"] = "enter";
|
|
5678
5654
|
AnimationState["ENTER_INPUT"] = "enter-input";
|
|
@@ -5840,7 +5816,7 @@
|
|
|
5840
5816
|
};
|
|
5841
5817
|
return MatNumpadDomService;
|
|
5842
5818
|
}());
|
|
5843
|
-
MatNumpadDomService.ɵprov =
|
|
5819
|
+
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" });
|
|
5844
5820
|
MatNumpadDomService.decorators = [
|
|
5845
5821
|
{ type: i0.Injectable, args: [{
|
|
5846
5822
|
providedIn: 'root'
|
|
@@ -6246,7 +6222,7 @@
|
|
|
6246
6222
|
},] }
|
|
6247
6223
|
];
|
|
6248
6224
|
|
|
6249
|
-
var DEFAULT_VALUE_ACCESSOR = {
|
|
6225
|
+
var DEFAULT_VALUE_ACCESSOR$6 = {
|
|
6250
6226
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6251
6227
|
useExisting: i0.forwardRef(function () { return MatSwipeField; }),
|
|
6252
6228
|
multi: true
|
|
@@ -6566,7 +6542,7 @@
|
|
|
6566
6542
|
{ type: i0.Component, args: [{
|
|
6567
6543
|
selector: 'mat-swipe-field',
|
|
6568
6544
|
template: "<mat-form-field [floatLabel]=\"showSlides && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\n [class]=\"classList\"\n [class.mat-form-field-disabled]=\"disabled\">\n <mat-label *ngIf=\"placeholder && floatLabel!=='never'\">\n {{placeholder}}\n </mat-label>\n <input matInput #fakeInput type=\"text\"\n [formControl]=\"formControl\"\n [readonly]=\"true\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showSlides\"\n [tabindex]=\"tabindex\">\n\n <div class=\"slides-container\" [class.hidden]=\"!showSlides\">\n <ion-slides #slides\n [options]=\"slidesOptions\"\n (ionSlidesDidLoad)=\"slidesLoaded()\"\n (ionSlideReachStart)=\"reachStart(true)\"\n (ionSlideReachEnd)=\"reachEnd(true)\"\n (ionSlideNextEnd)=\"reachStart(false)\"\n (ionSlidePrevEnd)=\"reachEnd(false)\"\n (ionSlideDidChange)=\"slideChanged()\"\n >\n <ion-slide *ngFor=\"let item of $items | async\">\n <ion-label>{{ displayWith(item) }}</ion-label>\n </ion-slide>\n\n </ion-slides>\n </div>\n\n <button #prevButton\n mat-icon-button\n type=\"button\"\n class=\"button-prev\"\n [hidden]=\"!showSlides\"\n [disabled]=\"previousDisabled\"\n (click)=\"previous()\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n <button #nextButton\n mat-icon-button\n type=\"button\"\n class=\"button-next\"\n [hidden]=\"!showSlides\"\n [disabled]=\"nextDisabled\"\n (click)=\"next()\">\n <mat-icon>chevron_right</mat-icon>\n </button>\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clearValue($event)\"\n [hidden]=\"disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('entity')\" translate>ERROR.FIELD_INVALID</mat-error>\n\n</mat-form-field>\n",
|
|
6569
|
-
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
6545
|
+
providers: [DEFAULT_VALUE_ACCESSOR$6],
|
|
6570
6546
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6571
6547
|
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}"]
|
|
6572
6548
|
},] }
|
|
@@ -7124,7 +7100,7 @@
|
|
|
7124
7100
|
};
|
|
7125
7101
|
return ProgressBarService;
|
|
7126
7102
|
}());
|
|
7127
|
-
ProgressBarService.ɵprov =
|
|
7103
|
+
ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
|
|
7128
7104
|
ProgressBarService.decorators = [
|
|
7129
7105
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7130
7106
|
];
|
|
@@ -7171,7 +7147,7 @@
|
|
|
7171
7147
|
};
|
|
7172
7148
|
return AppGestureConfig;
|
|
7173
7149
|
}(i1$6.HammerGestureConfig));
|
|
7174
|
-
AppGestureConfig.ɵprov =
|
|
7150
|
+
AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
|
|
7175
7151
|
AppGestureConfig.decorators = [
|
|
7176
7152
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7177
7153
|
];
|
|
@@ -7436,7 +7412,7 @@
|
|
|
7436
7412
|
};
|
|
7437
7413
|
return MatPaginatorI18n;
|
|
7438
7414
|
}(paginator.MatPaginatorIntl));
|
|
7439
|
-
MatPaginatorI18n.ɵprov =
|
|
7415
|
+
MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
|
|
7440
7416
|
MatPaginatorI18n.decorators = [
|
|
7441
7417
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7442
7418
|
];
|
|
@@ -7528,17 +7504,17 @@
|
|
|
7528
7504
|
return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
|
|
7529
7505
|
}
|
|
7530
7506
|
|
|
7531
|
-
var noop = function () {
|
|
7507
|
+
var noop$7 = function () {
|
|
7532
7508
|
};
|
|
7533
|
-
var ɵ0$
|
|
7509
|
+
var ɵ0$7 = noop$7;
|
|
7534
7510
|
var AppFormField = /** @class */ (function () {
|
|
7535
7511
|
function AppFormField(translate, cd, injector, formGroupDir) {
|
|
7536
7512
|
this.translate = translate;
|
|
7537
7513
|
this.cd = cd;
|
|
7538
7514
|
this.injector = injector;
|
|
7539
7515
|
this.formGroupDir = formGroupDir;
|
|
7540
|
-
this._onChangeCallback = noop;
|
|
7541
|
-
this._onTouchedCallback = noop;
|
|
7516
|
+
this._onChangeCallback = noop$7;
|
|
7517
|
+
this._onTouchedCallback = noop$7;
|
|
7542
7518
|
this.readonly = false;
|
|
7543
7519
|
this.compact = false;
|
|
7544
7520
|
this.floatLabel = 'auto';
|
|
@@ -7997,7 +7973,7 @@
|
|
|
7997
7973
|
};
|
|
7998
7974
|
return AudioProvider;
|
|
7999
7975
|
}());
|
|
8000
|
-
AudioProvider.ɵprov =
|
|
7976
|
+
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" });
|
|
8001
7977
|
AudioProvider.decorators = [
|
|
8002
7978
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8003
7979
|
];
|
|
@@ -8097,7 +8073,7 @@
|
|
|
8097
8073
|
};
|
|
8098
8074
|
return Hotkeys;
|
|
8099
8075
|
}());
|
|
8100
|
-
Hotkeys.ɵprov =
|
|
8076
|
+
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" });
|
|
8101
8077
|
Hotkeys.decorators = [
|
|
8102
8078
|
{ type: i0.Injectable, args: [{
|
|
8103
8079
|
providedIn: 'root'
|
|
@@ -8301,7 +8277,7 @@
|
|
|
8301
8277
|
return Base64ImageReader;
|
|
8302
8278
|
}());
|
|
8303
8279
|
|
|
8304
|
-
var uuidv4
|
|
8280
|
+
var uuidv4 = uuidv4Imported__namespace;
|
|
8305
8281
|
var FileService = /** @class */ (function () {
|
|
8306
8282
|
function FileService(platform,
|
|
8307
8283
|
//private transfer: FileTransfer,
|
|
@@ -8347,7 +8323,7 @@
|
|
|
8347
8323
|
lastSlashIndex = source.lastIndexOf('/');
|
|
8348
8324
|
if (lastSlashIndex === -1)
|
|
8349
8325
|
throw new Error('Invalid URL: ' + source);
|
|
8350
|
-
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4
|
|
8326
|
+
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
|
|
8351
8327
|
if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
|
|
8352
8328
|
console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
|
|
8353
8329
|
targetFilePath = this._imageDirectory + fileName;
|
|
@@ -8410,7 +8386,7 @@
|
|
|
8410
8386
|
};
|
|
8411
8387
|
return FileService;
|
|
8412
8388
|
}());
|
|
8413
|
-
FileService.ɵprov =
|
|
8389
|
+
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" });
|
|
8414
8390
|
FileService.decorators = [
|
|
8415
8391
|
{ type: i0.Injectable, args: [{
|
|
8416
8392
|
providedIn: 'root',
|
|
@@ -8573,7 +8549,7 @@
|
|
|
8573
8549
|
Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
8574
8550
|
|
|
8575
8551
|
var scrypt = require('scrypt-async');
|
|
8576
|
-
var sha256
|
|
8552
|
+
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
8577
8553
|
var sha512 = require('hash.js/lib/hash/sha/512');
|
|
8578
8554
|
var nacl = {
|
|
8579
8555
|
sign: tweetnacl.sign,
|
|
@@ -8679,7 +8655,7 @@
|
|
|
8679
8655
|
* Hash (using SHA256) a message
|
|
8680
8656
|
*/
|
|
8681
8657
|
CryptoService.prototype.sha256 = function (message) {
|
|
8682
|
-
return sha256
|
|
8658
|
+
return sha256().update(message).digest('hex');
|
|
8683
8659
|
};
|
|
8684
8660
|
/**
|
|
8685
8661
|
* Hash (using SHA512) a message
|
|
@@ -8693,7 +8669,7 @@
|
|
|
8693
8669
|
};
|
|
8694
8670
|
return CryptoService;
|
|
8695
8671
|
}());
|
|
8696
|
-
CryptoService.ɵprov =
|
|
8672
|
+
CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
|
|
8697
8673
|
CryptoService.decorators = [
|
|
8698
8674
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8699
8675
|
];
|
|
@@ -10106,7 +10082,7 @@
|
|
|
10106
10082
|
};
|
|
10107
10083
|
return LocalSettingsService;
|
|
10108
10084
|
}());
|
|
10109
|
-
LocalSettingsService.ɵprov =
|
|
10085
|
+
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" });
|
|
10110
10086
|
LocalSettingsService.decorators = [
|
|
10111
10087
|
{ type: i0.Injectable, args: [{
|
|
10112
10088
|
providedIn: 'root',
|
|
@@ -10951,7 +10927,7 @@
|
|
|
10951
10927
|
};
|
|
10952
10928
|
return NetworkService;
|
|
10953
10929
|
}());
|
|
10954
|
-
NetworkService.ɵprov =
|
|
10930
|
+
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" });
|
|
10955
10931
|
NetworkService.decorators = [
|
|
10956
10932
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
10957
10933
|
];
|
|
@@ -10971,7 +10947,7 @@
|
|
|
10971
10947
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
|
|
10972
10948
|
]; };
|
|
10973
10949
|
|
|
10974
|
-
var ErrorCodes
|
|
10950
|
+
var ErrorCodes = {
|
|
10975
10951
|
UNKNOWN_ERROR: 0,
|
|
10976
10952
|
LOAD_ACCOUNT_ERROR: 1,
|
|
10977
10953
|
BAD_PASSWORD: 2,
|
|
@@ -11379,7 +11355,7 @@
|
|
|
11379
11355
|
case 13:
|
|
11380
11356
|
err_1 = _a.sent();
|
|
11381
11357
|
console.error(err_1);
|
|
11382
|
-
throw { code: ErrorCodes
|
|
11358
|
+
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
11383
11359
|
case 14:
|
|
11384
11360
|
// Emit update event
|
|
11385
11361
|
if (!opts || opts.emitEvent !== false) {
|
|
@@ -12139,7 +12115,7 @@
|
|
|
12139
12115
|
}());
|
|
12140
12116
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
12141
12117
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
12142
|
-
EntitiesStorage.ɵprov =
|
|
12118
|
+
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" });
|
|
12143
12119
|
EntitiesStorage.decorators = [
|
|
12144
12120
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
12145
12121
|
];
|
|
@@ -12256,10 +12232,10 @@
|
|
|
12256
12232
|
function referentialsToString(values, properties, separator) {
|
|
12257
12233
|
return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
|
|
12258
12234
|
}
|
|
12259
|
-
var ɵ0$
|
|
12235
|
+
var ɵ0$8 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
12260
12236
|
var StatusList = Object.freeze([
|
|
12261
12237
|
{
|
|
12262
|
-
id: ɵ0$
|
|
12238
|
+
id: ɵ0$8,
|
|
12263
12239
|
icon: 'checkmark',
|
|
12264
12240
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
12265
12241
|
},
|
|
@@ -12562,7 +12538,7 @@
|
|
|
12562
12538
|
(data.lastName || '')) || '';
|
|
12563
12539
|
}
|
|
12564
12540
|
|
|
12565
|
-
var uuidv4 = uuidv4Imported__namespace;
|
|
12541
|
+
var uuidv4$1 = uuidv4Imported__namespace;
|
|
12566
12542
|
var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
12567
12543
|
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
12568
12544
|
/**
|
|
@@ -12606,7 +12582,7 @@
|
|
|
12606
12582
|
// Skip if not tracked
|
|
12607
12583
|
if (!context || !context.tracked)
|
|
12608
12584
|
return forward(operation);
|
|
12609
|
-
var id = context.serializationKey || uuidv4();
|
|
12585
|
+
var id = context.serializationKey || uuidv4$1();
|
|
12610
12586
|
console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
|
|
12611
12587
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
12612
12588
|
var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -13417,7 +13393,7 @@
|
|
|
13417
13393
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
13418
13394
|
|| this.toAppError(err.networkError)
|
|
13419
13395
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
13420
|
-
|| this.createAppErrorByCode(ErrorCodes
|
|
13396
|
+
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
13421
13397
|
// If graphQL: try to convert the first error found
|
|
13422
13398
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
13423
13399
|
|| this.toAppError(err)
|
|
@@ -13425,7 +13401,7 @@
|
|
|
13425
13401
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
13426
13402
|
|| err;
|
|
13427
13403
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
13428
|
-
if (error && error.code === ErrorCodes
|
|
13404
|
+
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
13429
13405
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
13430
13406
|
this.onNetworkError.next(error);
|
|
13431
13407
|
}
|
|
@@ -13461,7 +13437,7 @@
|
|
|
13461
13437
|
return 'ERROR.UNAUTHORIZED';
|
|
13462
13438
|
case ServerErrorCodes.FORBIDDEN:
|
|
13463
13439
|
return 'ERROR.FORBIDDEN';
|
|
13464
|
-
case ErrorCodes
|
|
13440
|
+
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
13465
13441
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
13466
13442
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
13467
13443
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -13506,7 +13482,7 @@
|
|
|
13506
13482
|
};
|
|
13507
13483
|
return GraphqlService;
|
|
13508
13484
|
}());
|
|
13509
|
-
GraphqlService.ɵprov =
|
|
13485
|
+
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" });
|
|
13510
13486
|
GraphqlService.decorators = [
|
|
13511
13487
|
{ type: i0.Injectable, args: [{
|
|
13512
13488
|
providedIn: 'root'
|
|
@@ -13523,7 +13499,7 @@
|
|
|
13523
13499
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
13524
13500
|
]; };
|
|
13525
13501
|
|
|
13526
|
-
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
13502
|
+
var sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
13527
13503
|
var BaseGraphqlServiceOptions = /** @class */ (function () {
|
|
13528
13504
|
function BaseGraphqlServiceOptions() {
|
|
13529
13505
|
}
|
|
@@ -13690,8 +13666,8 @@
|
|
|
13690
13666
|
};
|
|
13691
13667
|
/* -- protected methods -- */
|
|
13692
13668
|
BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
|
|
13693
|
-
var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
13694
|
-
var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
13669
|
+
var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
13670
|
+
var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
13695
13671
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
13696
13672
|
};
|
|
13697
13673
|
BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
|
|
@@ -13757,17 +13733,17 @@
|
|
|
13757
13733
|
/* ------------------------------------
|
|
13758
13734
|
* GraphQL queries
|
|
13759
13735
|
* ------------------------------------*/
|
|
13760
|
-
var Fragments
|
|
13761
|
-
account: core.gql(templateObject_1
|
|
13736
|
+
var Fragments = {
|
|
13737
|
+
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 "])))
|
|
13762
13738
|
};
|
|
13763
13739
|
// Load account query
|
|
13764
|
-
var LoadQuery
|
|
13740
|
+
var LoadQuery = core.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n"], ["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
|
|
13765
13741
|
// Check email query
|
|
13766
|
-
var IsEmailExistsQuery = core.gql(templateObject_3
|
|
13742
|
+
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"])));
|
|
13767
13743
|
// Save (create or update) account mutation
|
|
13768
|
-
var SaveMutation
|
|
13744
|
+
var SaveMutation = core.gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
|
|
13769
13745
|
// Create account mutation
|
|
13770
|
-
var CreateMutation = core.gql(templateObject_5
|
|
13746
|
+
var CreateMutation = core.gql(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
|
|
13771
13747
|
// Sent confirmation email
|
|
13772
13748
|
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"])));
|
|
13773
13749
|
// Confirm account email
|
|
@@ -14166,7 +14142,7 @@
|
|
|
14166
14142
|
error_3 = _b.sent();
|
|
14167
14143
|
console.error(error_3);
|
|
14168
14144
|
this.resetData();
|
|
14169
|
-
throw { code: ErrorCodes
|
|
14145
|
+
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
14170
14146
|
case 4:
|
|
14171
14147
|
// Store pubkey+keypair
|
|
14172
14148
|
this.data.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -14202,7 +14178,7 @@
|
|
|
14202
14178
|
return [3 /*break*/, 18];
|
|
14203
14179
|
case 11:
|
|
14204
14180
|
err_1 = _b.sent();
|
|
14205
|
-
if (!(err_1 && +(err_1.code) === ErrorCodes
|
|
14181
|
+
if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
14206
14182
|
if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
|
|
14207
14183
|
isEmailExists = void 0;
|
|
14208
14184
|
_b.label = 12;
|
|
@@ -14218,12 +14194,12 @@
|
|
|
14218
14194
|
case 15:
|
|
14219
14195
|
// Email not exists (no account)
|
|
14220
14196
|
if (!isEmailExists) {
|
|
14221
|
-
throw { code: ErrorCodes
|
|
14197
|
+
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
14222
14198
|
}
|
|
14223
14199
|
_b.label = 16;
|
|
14224
14200
|
case 16:
|
|
14225
14201
|
// Email exists, so error = 'bad password'
|
|
14226
|
-
throw { code: ErrorCodes
|
|
14202
|
+
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
14227
14203
|
case 17: throw err_1; // resend the first error
|
|
14228
14204
|
case 18:
|
|
14229
14205
|
_b.trys.push([18, 20, , 21]);
|
|
@@ -14395,8 +14371,8 @@
|
|
|
14395
14371
|
_b.label = 3;
|
|
14396
14372
|
case 3: return [3 /*break*/, 6];
|
|
14397
14373
|
case 4: return [4 /*yield*/, this.graphql.query({
|
|
14398
|
-
query: LoadQuery
|
|
14399
|
-
error: { code: ErrorCodes
|
|
14374
|
+
query: LoadQuery,
|
|
14375
|
+
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
14400
14376
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
14401
14377
|
})];
|
|
14402
14378
|
case 5:
|
|
@@ -14434,7 +14410,7 @@
|
|
|
14434
14410
|
case 1:
|
|
14435
14411
|
isEmailExists = _b.sent();
|
|
14436
14412
|
if (isEmailExists) {
|
|
14437
|
-
throw { code: ErrorCodes
|
|
14413
|
+
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
14438
14414
|
}
|
|
14439
14415
|
return [2 /*return*/];
|
|
14440
14416
|
}
|
|
@@ -14484,7 +14460,7 @@
|
|
|
14484
14460
|
locale: locale
|
|
14485
14461
|
},
|
|
14486
14462
|
error: {
|
|
14487
|
-
code: ErrorCodes
|
|
14463
|
+
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
14488
14464
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
14489
14465
|
}
|
|
14490
14466
|
})];
|
|
@@ -14507,7 +14483,7 @@
|
|
|
14507
14483
|
code: code
|
|
14508
14484
|
},
|
|
14509
14485
|
error: {
|
|
14510
|
-
code: ErrorCodes
|
|
14486
|
+
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
14511
14487
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
14512
14488
|
}
|
|
14513
14489
|
})];
|
|
@@ -14529,7 +14505,7 @@
|
|
|
14529
14505
|
interval: 10
|
|
14530
14506
|
},
|
|
14531
14507
|
error: {
|
|
14532
|
-
code: ErrorCodes
|
|
14508
|
+
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
14533
14509
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ACCOUNT_ERROR'
|
|
14534
14510
|
}
|
|
14535
14511
|
}).subscribe({
|
|
@@ -14675,7 +14651,7 @@
|
|
|
14675
14651
|
throw error_6;
|
|
14676
14652
|
console.error(error_6);
|
|
14677
14653
|
throw {
|
|
14678
|
-
code: ErrorCodes
|
|
14654
|
+
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
14679
14655
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
14680
14656
|
};
|
|
14681
14657
|
case 4: return [2 /*return*/];
|
|
@@ -14849,7 +14825,7 @@
|
|
|
14849
14825
|
case 1:
|
|
14850
14826
|
existingAccount = _b.sent();
|
|
14851
14827
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
14852
|
-
throw { code: ErrorCodes
|
|
14828
|
+
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
14853
14829
|
}
|
|
14854
14830
|
this.copyIdAndUpdateDate(existingAccount, account);
|
|
14855
14831
|
_b.label = 2;
|
|
@@ -14858,10 +14834,10 @@
|
|
|
14858
14834
|
// User not allow to change his profiles
|
|
14859
14835
|
delete json.profiles;
|
|
14860
14836
|
return [4 /*yield*/, this.graphql.mutate({
|
|
14861
|
-
mutation: isNew ? CreateMutation : SaveMutation
|
|
14837
|
+
mutation: isNew ? CreateMutation : SaveMutation,
|
|
14862
14838
|
variables: { data: json },
|
|
14863
14839
|
error: {
|
|
14864
|
-
code: ErrorCodes
|
|
14840
|
+
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
14865
14841
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
14866
14842
|
}
|
|
14867
14843
|
})];
|
|
@@ -14889,7 +14865,7 @@
|
|
|
14889
14865
|
if (counter > 4) {
|
|
14890
14866
|
if (this._debug)
|
|
14891
14867
|
console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
|
|
14892
|
-
throw { code: ErrorCodes
|
|
14868
|
+
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
14893
14869
|
}
|
|
14894
14870
|
if (!token) return [3 /*break*/, 2];
|
|
14895
14871
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -14898,7 +14874,7 @@
|
|
|
14898
14874
|
token: token
|
|
14899
14875
|
},
|
|
14900
14876
|
error: {
|
|
14901
|
-
code: ErrorCodes
|
|
14877
|
+
code: ErrorCodes.UNAUTHORIZED,
|
|
14902
14878
|
message: 'ERROR.UNAUTHORIZED'
|
|
14903
14879
|
},
|
|
14904
14880
|
fetchPolicy: 'no-cache'
|
|
@@ -14915,7 +14891,7 @@
|
|
|
14915
14891
|
_b.label = 2;
|
|
14916
14892
|
case 2:
|
|
14917
14893
|
challengeError = {
|
|
14918
|
-
code: ErrorCodes
|
|
14894
|
+
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
14919
14895
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
14920
14896
|
};
|
|
14921
14897
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -14957,7 +14933,7 @@
|
|
|
14957
14933
|
};
|
|
14958
14934
|
return AccountService;
|
|
14959
14935
|
}(BaseGraphqlService));
|
|
14960
|
-
AccountService.ɵprov =
|
|
14936
|
+
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" });
|
|
14961
14937
|
AccountService.decorators = [
|
|
14962
14938
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
14963
14939
|
];
|
|
@@ -14970,7 +14946,7 @@
|
|
|
14970
14946
|
{ type: FileService },
|
|
14971
14947
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
14972
14948
|
]; };
|
|
14973
|
-
var templateObject_1
|
|
14949
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
14974
14950
|
|
|
14975
14951
|
var Software_1, Configuration_1;
|
|
14976
14952
|
// @dynamic
|
|
@@ -15222,13 +15198,13 @@
|
|
|
15222
15198
|
/* ------------------------------------
|
|
15223
15199
|
* GraphQL queries
|
|
15224
15200
|
* ------------------------------------*/
|
|
15225
|
-
var Fragments = {
|
|
15226
|
-
config: core.gql(templateObject_1$
|
|
15201
|
+
var Fragments$1 = {
|
|
15202
|
+
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 "])))
|
|
15227
15203
|
};
|
|
15228
|
-
var LoadQuery = core.gql(templateObject_2$
|
|
15204
|
+
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);
|
|
15229
15205
|
// Save (create or update) account mutation
|
|
15230
|
-
var SaveMutation = core.gql(templateObject_3$
|
|
15231
|
-
var ClearCache = core.gql(templateObject_4$
|
|
15206
|
+
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);
|
|
15207
|
+
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"])));
|
|
15232
15208
|
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"])));
|
|
15233
15209
|
var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
|
|
15234
15210
|
var ConfigService = /** @class */ (function (_super) {
|
|
@@ -15321,12 +15297,12 @@
|
|
|
15321
15297
|
case 0:
|
|
15322
15298
|
now = Date.now();
|
|
15323
15299
|
console.debug('[config] Loading Pod configuration...');
|
|
15324
|
-
query = opts && opts.query || LoadQuery;
|
|
15300
|
+
query = opts && opts.query || LoadQuery$1;
|
|
15325
15301
|
variables = opts && opts.variables || undefined;
|
|
15326
15302
|
return [4 /*yield*/, this.graphql.query({
|
|
15327
15303
|
query: query,
|
|
15328
15304
|
variables: variables,
|
|
15329
|
-
error: { code: ErrorCodes
|
|
15305
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15330
15306
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
15331
15307
|
})];
|
|
15332
15308
|
case 1:
|
|
@@ -15360,12 +15336,12 @@
|
|
|
15360
15336
|
console.debug('[config] Saving Pod configuration...', config);
|
|
15361
15337
|
json = config.asObject();
|
|
15362
15338
|
return [4 /*yield*/, this.graphql.mutate({
|
|
15363
|
-
mutation: SaveMutation,
|
|
15339
|
+
mutation: SaveMutation$1,
|
|
15364
15340
|
variables: {
|
|
15365
15341
|
data: json
|
|
15366
15342
|
},
|
|
15367
15343
|
error: {
|
|
15368
|
-
code: ErrorCodes
|
|
15344
|
+
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
15369
15345
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
15370
15346
|
}
|
|
15371
15347
|
})];
|
|
@@ -15400,7 +15376,7 @@
|
|
|
15400
15376
|
return [4 /*yield*/, this.graphql.query({
|
|
15401
15377
|
query: CacheStatistics,
|
|
15402
15378
|
variables: null,
|
|
15403
|
-
error: { code: ErrorCodes
|
|
15379
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15404
15380
|
fetchPolicy: 'network-only'
|
|
15405
15381
|
})];
|
|
15406
15382
|
case 1:
|
|
@@ -15424,7 +15400,7 @@
|
|
|
15424
15400
|
return [4 /*yield*/, this.graphql.query({
|
|
15425
15401
|
query: ClearCache,
|
|
15426
15402
|
variables: variables,
|
|
15427
|
-
error: { code: ErrorCodes
|
|
15403
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15428
15404
|
fetchPolicy: 'network-only'
|
|
15429
15405
|
})];
|
|
15430
15406
|
case 1:
|
|
@@ -15625,7 +15601,7 @@
|
|
|
15625
15601
|
};
|
|
15626
15602
|
return ConfigService;
|
|
15627
15603
|
}(BaseGraphqlService));
|
|
15628
|
-
ConfigService.ɵprov =
|
|
15604
|
+
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" });
|
|
15629
15605
|
ConfigService.decorators = [
|
|
15630
15606
|
{ type: i0.Injectable, args: [{
|
|
15631
15607
|
providedIn: 'root',
|
|
@@ -15643,9 +15619,9 @@
|
|
|
15643
15619
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
15644
15620
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
15645
15621
|
]; };
|
|
15646
|
-
var templateObject_1$
|
|
15622
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
|
|
15647
15623
|
|
|
15648
|
-
var moment$
|
|
15624
|
+
var moment$4 = momentImported__namespace;
|
|
15649
15625
|
var PlatformService = /** @class */ (function () {
|
|
15650
15626
|
function PlatformService(platform, cdkPlatform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser) {
|
|
15651
15627
|
this.platform = platform;
|
|
@@ -15821,16 +15797,16 @@
|
|
|
15821
15797
|
}
|
|
15822
15798
|
// config moment lib
|
|
15823
15799
|
try {
|
|
15824
|
-
moment$
|
|
15800
|
+
moment$4.locale(event.lang);
|
|
15825
15801
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
15826
15802
|
}
|
|
15827
15803
|
// If error, fallback to en
|
|
15828
15804
|
catch (err) {
|
|
15829
|
-
moment$
|
|
15805
|
+
moment$4.locale('en');
|
|
15830
15806
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
15831
15807
|
}
|
|
15832
15808
|
// Config date adapter
|
|
15833
|
-
_this.dateAdapter.setLocale(moment$
|
|
15809
|
+
_this.dateAdapter.setLocale(moment$4.locale());
|
|
15834
15810
|
}
|
|
15835
15811
|
});
|
|
15836
15812
|
this.settings.onChange.subscribe(function (data) {
|
|
@@ -16015,7 +15991,7 @@
|
|
|
16015
15991
|
};
|
|
16016
15992
|
return PlatformService;
|
|
16017
15993
|
}());
|
|
16018
|
-
PlatformService.ɵprov =
|
|
15994
|
+
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" });
|
|
16019
15995
|
PlatformService.decorators = [
|
|
16020
15996
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
16021
15997
|
];
|
|
@@ -16112,7 +16088,7 @@
|
|
|
16112
16088
|
};
|
|
16113
16089
|
return MatStepperI18n;
|
|
16114
16090
|
}(stepper.MatStepperIntl));
|
|
16115
|
-
MatStepperI18n.ɵprov =
|
|
16091
|
+
MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
16116
16092
|
MatStepperI18n.decorators = [
|
|
16117
16093
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
16118
16094
|
];
|
|
@@ -17304,7 +17280,7 @@
|
|
|
17304
17280
|
return 1;
|
|
17305
17281
|
}
|
|
17306
17282
|
}
|
|
17307
|
-
var ɵ0$
|
|
17283
|
+
var ɵ0$9 = function (defaultStateSize) { return [
|
|
17308
17284
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
17309
17285
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
17310
17286
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -17312,7 +17288,7 @@
|
|
|
17312
17288
|
var SCALE_OPTIONS_DEFAULT = {
|
|
17313
17289
|
startColor: rgbArrayMap.red,
|
|
17314
17290
|
startStates: [0, 2, 3],
|
|
17315
|
-
startStepsFn: ɵ0$
|
|
17291
|
+
startStepsFn: ɵ0$9
|
|
17316
17292
|
};
|
|
17317
17293
|
/**
|
|
17318
17294
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -17404,24 +17380,24 @@
|
|
|
17404
17380
|
return result;
|
|
17405
17381
|
}
|
|
17406
17382
|
|
|
17407
|
-
var EntityTestClass
|
|
17383
|
+
var EntityTestClass = /** @class */ (function () {
|
|
17408
17384
|
function EntityTestClass() {
|
|
17409
17385
|
}
|
|
17410
17386
|
return EntityTestClass;
|
|
17411
17387
|
}());
|
|
17412
|
-
var FAKE_ENTITIES
|
|
17388
|
+
var FAKE_ENTITIES = [
|
|
17413
17389
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
17414
17390
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
17415
17391
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
17416
17392
|
];
|
|
17417
|
-
function deepCopy
|
|
17393
|
+
function deepCopy(values, size) {
|
|
17418
17394
|
if (isNil(size)) {
|
|
17419
|
-
return (values || FAKE_ENTITIES
|
|
17395
|
+
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
17420
17396
|
}
|
|
17421
17397
|
var result = [];
|
|
17422
17398
|
var i = 1;
|
|
17423
17399
|
while (result.length < size) {
|
|
17424
|
-
result = result.concat((values || FAKE_ENTITIES
|
|
17400
|
+
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
17425
17401
|
var name = entity.name + ' #' + i;
|
|
17426
17402
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
17427
17403
|
}));
|
|
@@ -17431,7 +17407,7 @@
|
|
|
17431
17407
|
var AutocompleteTestPage = /** @class */ (function () {
|
|
17432
17408
|
function AutocompleteTestPage(formBuilder) {
|
|
17433
17409
|
this.formBuilder = formBuilder;
|
|
17434
|
-
this._items = deepCopy
|
|
17410
|
+
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
17435
17411
|
this.$items = new rxjs.BehaviorSubject(undefined);
|
|
17436
17412
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
17437
17413
|
this.memoryHide = false;
|
|
@@ -17476,7 +17452,7 @@
|
|
|
17476
17452
|
});
|
|
17477
17453
|
// From items
|
|
17478
17454
|
this.autocompleteFields.add('entity-items-large', {
|
|
17479
|
-
items: FAKE_ENTITIES
|
|
17455
|
+
items: FAKE_ENTITIES.slice(),
|
|
17480
17456
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
17481
17457
|
displayWith: this.entityToString
|
|
17482
17458
|
});
|
|
@@ -17489,12 +17465,12 @@
|
|
|
17489
17465
|
var _this = this;
|
|
17490
17466
|
return __generator(this, function (_a) {
|
|
17491
17467
|
data = {
|
|
17492
|
-
entity: deepCopy
|
|
17468
|
+
entity: deepCopy(FAKE_ENTITIES)[0],
|
|
17493
17469
|
// This item is NOT in the items list => i should be displayed anyway
|
|
17494
17470
|
missingEntity: {
|
|
17495
17471
|
id: -1, label: '??', name: 'Missing item'
|
|
17496
17472
|
},
|
|
17497
|
-
disableEntity: deepCopy
|
|
17473
|
+
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
17498
17474
|
};
|
|
17499
17475
|
this.form.setValue(data);
|
|
17500
17476
|
// Load observables
|
|
@@ -17692,13 +17668,13 @@
|
|
|
17692
17668
|
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_TESTING_PAGES,] }] }
|
|
17693
17669
|
]; };
|
|
17694
17670
|
|
|
17695
|
-
var moment$
|
|
17671
|
+
var moment$5 = momentImported__namespace;
|
|
17696
17672
|
var SwipeTestPage = /** @class */ (function () {
|
|
17697
17673
|
function SwipeTestPage(formBuilder, dateFormatPipe) {
|
|
17698
17674
|
this.formBuilder = formBuilder;
|
|
17699
17675
|
this.dateFormatPipe = dateFormatPipe;
|
|
17700
17676
|
this.$dates = new rxjs.BehaviorSubject(undefined);
|
|
17701
|
-
this._today = moment$
|
|
17677
|
+
this._today = moment$5().startOf('day');
|
|
17702
17678
|
this.form = formBuilder.group({
|
|
17703
17679
|
empty: [null, i1.Validators.required],
|
|
17704
17680
|
date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
|
|
@@ -17712,7 +17688,7 @@
|
|
|
17712
17688
|
var _this = this;
|
|
17713
17689
|
var dates = [];
|
|
17714
17690
|
for (var d = 0; d < 7; d++) {
|
|
17715
|
-
dates[d] = moment$
|
|
17691
|
+
dates[d] = moment$5(this._today).add(d - 3, 'day');
|
|
17716
17692
|
}
|
|
17717
17693
|
this.$dates.next(dates);
|
|
17718
17694
|
this.loadData();
|
|
@@ -18395,7 +18371,7 @@
|
|
|
18395
18371
|
return FormArrayHelper;
|
|
18396
18372
|
}());
|
|
18397
18373
|
|
|
18398
|
-
var moment = momentImported__namespace;
|
|
18374
|
+
var moment$6 = momentImported__namespace;
|
|
18399
18375
|
var DateTimeTestPage = /** @class */ (function () {
|
|
18400
18376
|
function DateTimeTestPage(platform, formBuilder, cd) {
|
|
18401
18377
|
this.platform = platform;
|
|
@@ -18430,7 +18406,7 @@
|
|
|
18430
18406
|
var now, data;
|
|
18431
18407
|
var _this = this;
|
|
18432
18408
|
return __generator(this, function (_a) {
|
|
18433
|
-
now = moment();
|
|
18409
|
+
now = moment$6();
|
|
18434
18410
|
data = {
|
|
18435
18411
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
18436
18412
|
enable: toDateISOString(now),
|
|
@@ -18494,23 +18470,23 @@
|
|
|
18494
18470
|
{ type: i0.ChangeDetectorRef }
|
|
18495
18471
|
]; };
|
|
18496
18472
|
|
|
18497
|
-
var EntityTestClass = /** @class */ (function () {
|
|
18473
|
+
var EntityTestClass$1 = /** @class */ (function () {
|
|
18498
18474
|
function EntityTestClass() {
|
|
18499
18475
|
}
|
|
18500
18476
|
return EntityTestClass;
|
|
18501
18477
|
}());
|
|
18502
|
-
var FAKE_ENTITIES = [
|
|
18478
|
+
var FAKE_ENTITIES$1 = [
|
|
18503
18479
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
18504
18480
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
18505
18481
|
{ id: 3, label: 'CCC', name: 'Item C' }
|
|
18506
18482
|
];
|
|
18507
|
-
function deepCopy(values) {
|
|
18508
|
-
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
18483
|
+
function deepCopy$1(values) {
|
|
18484
|
+
return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
|
|
18509
18485
|
}
|
|
18510
18486
|
var ChipsTestPage = /** @class */ (function () {
|
|
18511
18487
|
function ChipsTestPage(formBuilder) {
|
|
18512
18488
|
this.formBuilder = formBuilder;
|
|
18513
|
-
this._items = deepCopy(FAKE_ENTITIES);
|
|
18489
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1);
|
|
18514
18490
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
18515
18491
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
18516
18492
|
this.form = formBuilder.group({
|
|
@@ -18530,7 +18506,7 @@
|
|
|
18530
18506
|
});
|
|
18531
18507
|
// From items
|
|
18532
18508
|
this.autocompleteFields.add('entity-items', {
|
|
18533
|
-
items: FAKE_ENTITIES.slice(),
|
|
18509
|
+
items: FAKE_ENTITIES$1.slice(),
|
|
18534
18510
|
attributes: ['label', 'name'],
|
|
18535
18511
|
displayWith: this.entityToString
|
|
18536
18512
|
});
|
|
@@ -18553,8 +18529,8 @@
|
|
|
18553
18529
|
data = {
|
|
18554
18530
|
entity: [],
|
|
18555
18531
|
// THis item is NOT in the items list => i should be displayed anyway
|
|
18556
|
-
entityInitial: FAKE_ENTITIES.slice(1, 2),
|
|
18557
|
-
disableEntity: FAKE_ENTITIES.slice(1, 2)
|
|
18532
|
+
entityInitial: FAKE_ENTITIES$1.slice(1, 2),
|
|
18533
|
+
disableEntity: FAKE_ENTITIES$1.slice(1, 2)
|
|
18558
18534
|
};
|
|
18559
18535
|
this.form.setValue(data);
|
|
18560
18536
|
return [2 /*return*/];
|
|
@@ -18564,7 +18540,7 @@
|
|
|
18564
18540
|
ChipsTestPage.prototype.loadItems = function () {
|
|
18565
18541
|
return __awaiter(this, void 0, void 0, function () {
|
|
18566
18542
|
return __generator(this, function (_a) {
|
|
18567
|
-
this._$items.next(deepCopy(FAKE_ENTITIES));
|
|
18543
|
+
this._$items.next(deepCopy$1(FAKE_ENTITIES$1));
|
|
18568
18544
|
return [2 /*return*/];
|
|
18569
18545
|
});
|
|
18570
18546
|
});
|
|
@@ -18601,7 +18577,7 @@
|
|
|
18601
18577
|
{ type: i1.FormBuilder }
|
|
18602
18578
|
]; };
|
|
18603
18579
|
|
|
18604
|
-
var routes
|
|
18580
|
+
var routes = [
|
|
18605
18581
|
{
|
|
18606
18582
|
path: '',
|
|
18607
18583
|
pathMatch: 'full',
|
|
@@ -18651,7 +18627,7 @@
|
|
|
18651
18627
|
i1.ReactiveFormsModule,
|
|
18652
18628
|
SharedMaterialModule,
|
|
18653
18629
|
i1$2.TranslateModule.forChild(),
|
|
18654
|
-
i3.RouterModule.forChild(routes
|
|
18630
|
+
i3.RouterModule.forChild(routes)
|
|
18655
18631
|
],
|
|
18656
18632
|
declarations: [
|
|
18657
18633
|
MaterialTestingPage,
|
|
@@ -19769,7 +19745,7 @@
|
|
|
19769
19745
|
};
|
|
19770
19746
|
return UserSettingsValidatorService;
|
|
19771
19747
|
}(AppValidatorService));
|
|
19772
|
-
UserSettingsValidatorService.ɵprov =
|
|
19748
|
+
UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
19773
19749
|
UserSettingsValidatorService.decorators = [
|
|
19774
19750
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
19775
19751
|
];
|
|
@@ -19817,7 +19793,7 @@
|
|
|
19817
19793
|
};
|
|
19818
19794
|
return AccountValidatorService;
|
|
19819
19795
|
}(AppValidatorService));
|
|
19820
|
-
AccountValidatorService.ɵprov =
|
|
19796
|
+
AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
|
|
19821
19797
|
AccountValidatorService.decorators = [
|
|
19822
19798
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
19823
19799
|
];
|
|
@@ -20414,7 +20390,7 @@
|
|
|
20414
20390
|
};
|
|
20415
20391
|
return LocalSettingsValidatorService;
|
|
20416
20392
|
}(AppValidatorService));
|
|
20417
|
-
LocalSettingsValidatorService.ɵprov =
|
|
20393
|
+
LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
|
|
20418
20394
|
LocalSettingsValidatorService.decorators = [
|
|
20419
20395
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
20420
20396
|
];
|
|
@@ -21198,7 +21174,7 @@
|
|
|
21198
21174
|
};
|
|
21199
21175
|
return IsOnFieldModePipe;
|
|
21200
21176
|
}());
|
|
21201
|
-
IsOnFieldModePipe.ɵprov =
|
|
21177
|
+
IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
21202
21178
|
IsOnFieldModePipe.decorators = [
|
|
21203
21179
|
{ type: i0.Pipe, args: [{
|
|
21204
21180
|
name: 'isOnField'
|
|
@@ -21213,7 +21189,7 @@
|
|
|
21213
21189
|
};
|
|
21214
21190
|
return IsNotOnFieldModePipe;
|
|
21215
21191
|
}());
|
|
21216
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
21192
|
+
IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
21217
21193
|
IsNotOnFieldModePipe.decorators = [
|
|
21218
21194
|
{ type: i0.Pipe, args: [{
|
|
21219
21195
|
name: 'isNotOnField'
|
|
@@ -21231,7 +21207,7 @@
|
|
|
21231
21207
|
};
|
|
21232
21208
|
return PersonToStringPipe;
|
|
21233
21209
|
}());
|
|
21234
|
-
PersonToStringPipe.ɵprov =
|
|
21210
|
+
PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
21235
21211
|
PersonToStringPipe.decorators = [
|
|
21236
21212
|
{ type: i0.Pipe, args: [{
|
|
21237
21213
|
name: 'personToString'
|
|
@@ -21466,7 +21442,7 @@
|
|
|
21466
21442
|
};
|
|
21467
21443
|
return IsLoginAccountPipe;
|
|
21468
21444
|
}());
|
|
21469
|
-
IsLoginAccountPipe.ɵprov =
|
|
21445
|
+
IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
21470
21446
|
IsLoginAccountPipe.decorators = [
|
|
21471
21447
|
{ type: i0.Pipe, args: [{
|
|
21472
21448
|
name: 'isLogin'
|
|
@@ -21481,7 +21457,7 @@
|
|
|
21481
21457
|
};
|
|
21482
21458
|
return AccountToStringPipe;
|
|
21483
21459
|
}());
|
|
21484
|
-
AccountToStringPipe.ɵprov =
|
|
21460
|
+
AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
21485
21461
|
AccountToStringPipe.decorators = [
|
|
21486
21462
|
{ type: i0.Pipe, args: [{
|
|
21487
21463
|
name: 'accountToString'
|
|
@@ -21499,7 +21475,7 @@
|
|
|
21499
21475
|
};
|
|
21500
21476
|
return DepartmentToStringPipe;
|
|
21501
21477
|
}());
|
|
21502
|
-
DepartmentToStringPipe.ɵprov =
|
|
21478
|
+
DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
21503
21479
|
DepartmentToStringPipe.decorators = [
|
|
21504
21480
|
{ type: i0.Pipe, args: [{
|
|
21505
21481
|
name: 'departmentToString'
|
|
@@ -21534,7 +21510,7 @@
|
|
|
21534
21510
|
};
|
|
21535
21511
|
return MenuService;
|
|
21536
21512
|
}());
|
|
21537
|
-
MenuService.ɵprov =
|
|
21513
|
+
MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
21538
21514
|
MenuService.decorators = [
|
|
21539
21515
|
{ type: i0.Injectable, args: [{
|
|
21540
21516
|
providedIn: 'root'
|
|
@@ -22113,7 +22089,7 @@
|
|
|
22113
22089
|
};
|
|
22114
22090
|
return AuthGuardService;
|
|
22115
22091
|
}());
|
|
22116
|
-
AuthGuardService.ɵprov =
|
|
22092
|
+
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" });
|
|
22117
22093
|
AuthGuardService.decorators = [
|
|
22118
22094
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
22119
22095
|
];
|
|
@@ -22164,7 +22140,7 @@
|
|
|
22164
22140
|
query: query,
|
|
22165
22141
|
variables: { id: id },
|
|
22166
22142
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
22167
|
-
error: { code: ErrorCodes
|
|
22143
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
22168
22144
|
})
|
|
22169
22145
|
.pipe(operators.map(function (_b) {
|
|
22170
22146
|
var data = _b.data;
|
|
@@ -22186,7 +22162,7 @@
|
|
|
22186
22162
|
query: query,
|
|
22187
22163
|
variables: { id: id },
|
|
22188
22164
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
22189
|
-
error: { code: ErrorCodes
|
|
22165
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
22190
22166
|
})];
|
|
22191
22167
|
case 1:
|
|
22192
22168
|
data = (_b.sent()).data;
|
|
@@ -22222,7 +22198,7 @@
|
|
|
22222
22198
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
22223
22199
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
22224
22200
|
variables: variables,
|
|
22225
|
-
error: { code: ErrorCodes
|
|
22201
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
22226
22202
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
22227
22203
|
})
|
|
22228
22204
|
.pipe(operators.map(function (_b) {
|
|
@@ -22264,7 +22240,7 @@
|
|
|
22264
22240
|
return [4 /*yield*/, this.graphql.query({
|
|
22265
22241
|
query: query,
|
|
22266
22242
|
variables: variables,
|
|
22267
|
-
error: { code: ErrorCodes
|
|
22243
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
22268
22244
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
22269
22245
|
})];
|
|
22270
22246
|
case 1:
|
|
@@ -22312,7 +22288,7 @@
|
|
|
22312
22288
|
variables: {
|
|
22313
22289
|
filter: filter && filter.asPodObject()
|
|
22314
22290
|
},
|
|
22315
|
-
error: { code: ErrorCodes
|
|
22291
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
22316
22292
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
22317
22293
|
})];
|
|
22318
22294
|
case 3:
|
|
@@ -22354,7 +22330,7 @@
|
|
|
22354
22330
|
variables: {
|
|
22355
22331
|
data: json
|
|
22356
22332
|
},
|
|
22357
|
-
error: { code: ErrorCodes
|
|
22333
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
22358
22334
|
update: function (proxy, _b) {
|
|
22359
22335
|
var data = _b.data;
|
|
22360
22336
|
var savedEntities = data && data.data;
|
|
@@ -22421,7 +22397,7 @@
|
|
|
22421
22397
|
variables: {
|
|
22422
22398
|
data: json
|
|
22423
22399
|
},
|
|
22424
|
-
error: { code: ErrorCodes
|
|
22400
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
22425
22401
|
update: function (cache, _b) {
|
|
22426
22402
|
var data = _b.data;
|
|
22427
22403
|
// Update entity
|
|
@@ -22479,7 +22455,7 @@
|
|
|
22479
22455
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
22480
22456
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
22481
22457
|
variables: { ids: ids },
|
|
22482
|
-
error: { code: ErrorCodes
|
|
22458
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
22483
22459
|
update: function (cache, res) {
|
|
22484
22460
|
// Remove from cache
|
|
22485
22461
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -22532,7 +22508,7 @@
|
|
|
22532
22508
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
22533
22509
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
22534
22510
|
variables: { id: id },
|
|
22535
|
-
error: { code: ErrorCodes
|
|
22511
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
22536
22512
|
update: function (proxy, res) {
|
|
22537
22513
|
// Remove from cache
|
|
22538
22514
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -22571,7 +22547,7 @@
|
|
|
22571
22547
|
query: opts && opts.query || this.subscriptions.listenChanges,
|
|
22572
22548
|
variables: variables,
|
|
22573
22549
|
error: {
|
|
22574
|
-
code: ErrorCodes
|
|
22550
|
+
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
22575
22551
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
22576
22552
|
}
|
|
22577
22553
|
})
|
|
@@ -22780,7 +22756,7 @@
|
|
|
22780
22756
|
if (this._debug)
|
|
22781
22757
|
invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
|
|
22782
22758
|
// Stop with an error
|
|
22783
|
-
throw { code: ErrorCodes
|
|
22759
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
22784
22760
|
}
|
|
22785
22761
|
this._editingRowCount = 0;
|
|
22786
22762
|
data = void 0;
|
|
@@ -23736,14 +23712,14 @@
|
|
|
23736
23712
|
case 0:
|
|
23737
23713
|
opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
|
|
23738
23714
|
if (this.readOnly) {
|
|
23739
|
-
throw { code: ErrorCodes
|
|
23715
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
23740
23716
|
}
|
|
23741
23717
|
this.resetError();
|
|
23742
23718
|
// Keep edited row id (should be done BEFORE confirmEditCreate() )
|
|
23743
23719
|
this.previouslyEditedRowId = opts.keepEditing && ((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined;
|
|
23744
23720
|
previouslyEditedData = isNotNil(this.previouslyEditedRowId) && this.editedRow.currentData || ((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.currentData);
|
|
23745
23721
|
if (!this.confirmEditCreate()) {
|
|
23746
|
-
throw { code: ErrorCodes
|
|
23722
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
23747
23723
|
}
|
|
23748
23724
|
// Mark as saving
|
|
23749
23725
|
this.markAsSaving();
|
|
@@ -23896,7 +23872,7 @@
|
|
|
23896
23872
|
switch (_d.label) {
|
|
23897
23873
|
case 0:
|
|
23898
23874
|
if (this.readOnly) {
|
|
23899
|
-
throw { code: ErrorCodes
|
|
23875
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
23900
23876
|
}
|
|
23901
23877
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
23902
23878
|
return [2 /*return*/, 0]; // SKip
|
|
@@ -25592,7 +25568,7 @@
|
|
|
25592
25568
|
case 4:
|
|
25593
25569
|
data = _b.sent();
|
|
25594
25570
|
if (!data)
|
|
25595
|
-
throw { code: ErrorCodes
|
|
25571
|
+
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
25596
25572
|
this._usageMode = this.computeUsageMode(data);
|
|
25597
25573
|
return [4 /*yield*/, this.onEntityLoaded(data, opts)];
|
|
25598
25574
|
case 5:
|
|
@@ -26322,10 +26298,10 @@
|
|
|
26322
26298
|
exports.UserEventFilter = __decorate([
|
|
26323
26299
|
EntityClass({ typename: 'UserEventVO' })
|
|
26324
26300
|
], exports.UserEventFilter);
|
|
26325
|
-
var SaveQuery = core.gql(templateObject_1$
|
|
26326
|
-
var LoadAllQuery = core.gql(templateObject_2$
|
|
26327
|
-
var DeleteByIdsMutation = core.gql(templateObject_3$
|
|
26328
|
-
var LoadAllWithContentQuery = core.gql(templateObject_4$
|
|
26301
|
+
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);
|
|
26302
|
+
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);
|
|
26303
|
+
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"])));
|
|
26304
|
+
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);
|
|
26329
26305
|
var UserEventService = /** @class */ (function (_super) {
|
|
26330
26306
|
__extends(UserEventService, _super);
|
|
26331
26307
|
function UserEventService(graphql, accountService, network, translate, toastController, environment) {
|
|
@@ -26646,7 +26622,7 @@
|
|
|
26646
26622
|
};
|
|
26647
26623
|
return UserEventService;
|
|
26648
26624
|
}(BaseGraphqlService));
|
|
26649
|
-
UserEventService.ɵprov =
|
|
26625
|
+
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" });
|
|
26650
26626
|
UserEventService.decorators = [
|
|
26651
26627
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
26652
26628
|
];
|
|
@@ -26658,7 +26634,7 @@
|
|
|
26658
26634
|
{ type: i1$5.ToastController },
|
|
26659
26635
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
26660
26636
|
]; };
|
|
26661
|
-
var templateObject_1$
|
|
26637
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
|
|
26662
26638
|
|
|
26663
26639
|
var ICONS_MAP = {
|
|
26664
26640
|
DEBUG_DATA: { matIcon: 'bug_report' },
|
|
@@ -26919,16 +26895,16 @@
|
|
|
26919
26895
|
], exports.PersonFilter);
|
|
26920
26896
|
|
|
26921
26897
|
var PersonFragments = {
|
|
26922
|
-
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 }"])))
|
|
26898
|
+
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 }"])))
|
|
26923
26899
|
};
|
|
26924
26900
|
// Load persons query
|
|
26925
26901
|
var PersonQueries = {
|
|
26926
|
-
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),
|
|
26927
|
-
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)
|
|
26902
|
+
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),
|
|
26903
|
+
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)
|
|
26928
26904
|
};
|
|
26929
26905
|
var PersonMutations = {
|
|
26930
|
-
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),
|
|
26931
|
-
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 }"])))
|
|
26906
|
+
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),
|
|
26907
|
+
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 }"])))
|
|
26932
26908
|
};
|
|
26933
26909
|
var PersonService = /** @class */ (function (_super_1) {
|
|
26934
26910
|
__extends(PersonService, _super_1);
|
|
@@ -27051,7 +27027,7 @@
|
|
|
27051
27027
|
};
|
|
27052
27028
|
return PersonService;
|
|
27053
27029
|
}(BaseEntityService));
|
|
27054
|
-
PersonService.ɵprov =
|
|
27030
|
+
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" });
|
|
27055
27031
|
PersonService.decorators = [
|
|
27056
27032
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
27057
27033
|
];
|
|
@@ -27061,7 +27037,7 @@
|
|
|
27061
27037
|
{ type: NetworkService },
|
|
27062
27038
|
{ type: EntitiesStorage }
|
|
27063
27039
|
]; };
|
|
27064
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
27040
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
|
|
27065
27041
|
|
|
27066
27042
|
var PersonValidatorService = /** @class */ (function () {
|
|
27067
27043
|
function PersonValidatorService(formBuilder, accountValidatorService) {
|
|
@@ -27084,7 +27060,7 @@
|
|
|
27084
27060
|
};
|
|
27085
27061
|
return PersonValidatorService;
|
|
27086
27062
|
}());
|
|
27087
|
-
PersonValidatorService.ɵprov =
|
|
27063
|
+
PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
|
|
27088
27064
|
PersonValidatorService.decorators = [
|
|
27089
27065
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
27090
27066
|
];
|
|
@@ -27256,7 +27232,7 @@
|
|
|
27256
27232
|
],
|
|
27257
27233
|
animations: [slideUpDownAnimation],
|
|
27258
27234
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
27259
|
-
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:
|
|
27235
|
+
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}"]
|
|
27260
27236
|
},] }
|
|
27261
27237
|
];
|
|
27262
27238
|
UsersPage.ctorParameters = function () { return [
|
|
@@ -27305,16 +27281,16 @@
|
|
|
27305
27281
|
];
|
|
27306
27282
|
AdminModule.ctorParameters = function () { return []; };
|
|
27307
27283
|
|
|
27308
|
-
var ɵ0 = {
|
|
27284
|
+
var ɵ0$a = {
|
|
27309
27285
|
profile: 'ADMIN'
|
|
27310
27286
|
};
|
|
27311
|
-
var routes = [
|
|
27287
|
+
var routes$1 = [
|
|
27312
27288
|
{
|
|
27313
27289
|
path: 'users',
|
|
27314
27290
|
pathMatch: 'full',
|
|
27315
27291
|
component: UsersPage,
|
|
27316
27292
|
canActivate: [AuthGuardService],
|
|
27317
|
-
data: ɵ0
|
|
27293
|
+
data: ɵ0$a
|
|
27318
27294
|
}
|
|
27319
27295
|
];
|
|
27320
27296
|
var AdminRoutingModule = /** @class */ (function () {
|
|
@@ -27327,13 +27303,13 @@
|
|
|
27327
27303
|
imports: [
|
|
27328
27304
|
SharedRoutingModule,
|
|
27329
27305
|
AdminModule,
|
|
27330
|
-
i3.RouterModule.forChild(routes)
|
|
27306
|
+
i3.RouterModule.forChild(routes$1)
|
|
27331
27307
|
],
|
|
27332
27308
|
exports: [i3.RouterModule]
|
|
27333
27309
|
},] }
|
|
27334
27310
|
];
|
|
27335
27311
|
|
|
27336
|
-
var ErrorCodes = {
|
|
27312
|
+
var ErrorCodes$2 = {
|
|
27337
27313
|
LOAD_PERSONS_ERROR: 100,
|
|
27338
27314
|
SAVE_PERSONS_ERROR: 101,
|
|
27339
27315
|
DELETE_PERSONS_ERROR: 102,
|
|
@@ -27442,7 +27418,7 @@
|
|
|
27442
27418
|
exports.EntityStore = EntityStore;
|
|
27443
27419
|
exports.EntityUtils = EntityUtils;
|
|
27444
27420
|
exports.Environment = Environment;
|
|
27445
|
-
exports.ErrorCodes = ErrorCodes;
|
|
27421
|
+
exports.ErrorCodes = ErrorCodes$2;
|
|
27446
27422
|
exports.EvenPipe = EvenPipe;
|
|
27447
27423
|
exports.FileService = FileService;
|
|
27448
27424
|
exports.FileSizePipe = FileSizePipe;
|
|
@@ -27450,7 +27426,7 @@
|
|
|
27450
27426
|
exports.FormButtonsBarComponent = FormButtonsBarComponent;
|
|
27451
27427
|
exports.FormButtonsBarToken = FormButtonsBarToken;
|
|
27452
27428
|
exports.FormFieldValuesHolder = FormFieldValuesHolder;
|
|
27453
|
-
exports.Fragments = Fragments;
|
|
27429
|
+
exports.Fragments = Fragments$1;
|
|
27454
27430
|
exports.GraphqlService = GraphqlService;
|
|
27455
27431
|
exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
|
|
27456
27432
|
exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
|