@sumaris-net/ngx-components 1.12.1 → 1.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/sumaris-net.ngx-components.umd.js +297 -273
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/doc/changelog.md +5 -0
- package/esm2015/src/app/shared/files.js +1 -1
- package/fesm2015/sumaris-net.ngx-components.js +279 -264
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/files.d.ts +1 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, EventEmitter, Component, forwardRef, ChangeDetectionStrategy, ChangeDetectorRef, Optional, Input, Output, ViewChild, Pipe, Injectable, Directive, Inject, NgModule, ElementRef, TemplateRef, ViewContainerRef, HostBinding, HostListener, ViewChildren, ComponentFactoryResolver, ApplicationRef, Injector, Renderer2, ViewEncapsulation } from '@angular/core';
|
|
3
|
+
import * as i1$3 from '@angular/common';
|
|
2
4
|
import { CommonModule, DOCUMENT, Location } from '@angular/common';
|
|
3
5
|
import { CdkTableModule } from '@angular/cdk/table';
|
|
4
6
|
import { A11yModule } from '@angular/cdk/a11y';
|
|
5
7
|
import { OverlayModule, OverlayContainer, FullscreenOverlayContainer, Overlay } from '@angular/cdk/overlay';
|
|
6
8
|
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
9
|
+
import * as i1$2 from '@angular/material/core';
|
|
7
10
|
import { DateAdapter, MatCommonModule, MatRippleModule } from '@angular/material/core';
|
|
8
11
|
import { MatTableModule, MatTable, MatColumnDef } from '@angular/material/table';
|
|
9
12
|
import { MatSortModule, MatSort } from '@angular/material/sort';
|
|
@@ -27,16 +30,21 @@ import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
|
27
30
|
import { MatRadioModule } from '@angular/material/radio';
|
|
28
31
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
29
32
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
33
|
+
import * as i2$1 from '@angular/material/dialog';
|
|
30
34
|
import { MatDialogModule, MAT_DIALOG_DATA, MatDialog } from '@angular/material/dialog';
|
|
31
35
|
import { MatAutocomplete, MatAutocompleteTrigger, MatAutocompleteModule, MAT_AUTOCOMPLETE_SCROLL_STRATEGY, MAT_AUTOCOMPLETE_DEFAULT_OPTIONS } from '@angular/material/autocomplete';
|
|
32
36
|
import { __awaiter, __decorate } from 'tslib';
|
|
37
|
+
import * as i1$6 from '@angular/forms';
|
|
33
38
|
import { NG_VALUE_ACCESSOR, FormGroupDirective, AbstractControl, FormGroup, FormArray, FormControl, ReactiveFormsModule, Validators, FormBuilder } from '@angular/forms';
|
|
34
39
|
import { timer, merge, fromEvent, BehaviorSubject, Subscription, Subject, isObservable, noop as noop$9, Observable, defer, of, from, forkJoin, combineLatest, EMPTY } from 'rxjs';
|
|
35
40
|
import { filter, first, map, takeUntil, switchMap, startWith, debounceTime, takeWhile, tap, distinctUntilChanged, mergeMap, catchError, throttleTime, skip } from 'rxjs/operators';
|
|
41
|
+
import * as i1$1 from '@ngx-translate/core';
|
|
36
42
|
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
|
43
|
+
import * as i1$4 from '@ionic/angular';
|
|
37
44
|
import { IonicModule, Platform, IonRouterOutlet, ModalController, IonicSafeString, createAnimation, ToastController, PopoverController, AlertController, IonicRouteStrategy, NavParams, MenuController, IonContent, IonInfiniteScroll } from '@ionic/angular';
|
|
38
45
|
import * as momentImported from 'moment';
|
|
39
46
|
import { isMoment } from 'moment';
|
|
47
|
+
import * as i1 from '@angular/material-moment-adapter';
|
|
40
48
|
import { MomentDateAdapter, MatMomentDateModule } from '@angular/material-moment-adapter';
|
|
41
49
|
import { Keyboard } from '@ionic-native/keyboard/ngx';
|
|
42
50
|
import { TextMaskModule } from 'angular2-text-mask';
|
|
@@ -46,32 +54,38 @@ import { trigger, state, style, transition, animate } from '@angular/animations'
|
|
|
46
54
|
import { MatDividerModule } from '@angular/material/divider';
|
|
47
55
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
48
56
|
import { MatChipsModule } from '@angular/material/chips';
|
|
57
|
+
import * as i3$3 from '@angular/router';
|
|
49
58
|
import { Router, ActivatedRoute, RouterModule, RouteReuseStrategy } from '@angular/router';
|
|
59
|
+
import * as i1$5 from '@angular/platform-browser';
|
|
50
60
|
import { HammerGestureConfig, EventManager } from '@angular/platform-browser';
|
|
61
|
+
import * as i2$2 from '@angular/common/http';
|
|
51
62
|
import { HttpResponse, HttpClient, HttpHeaders, HttpEventType, HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
|
|
52
63
|
import { ColorPickerModule } from 'ngx-color-picker';
|
|
53
|
-
import { NativeAudio
|
|
54
|
-
import { Vibration
|
|
64
|
+
import { NativeAudio } from '@ionic-native/native-audio/ngx';
|
|
65
|
+
import { Vibration } from '@ionic-native/vibration/ngx';
|
|
55
66
|
import { AudioManagement } from '@ionic-native/audio-management/ngx';
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
67
|
+
import * as i2 from '@ionic-native/native-audio/ngx/index';
|
|
68
|
+
import * as i3 from '@ionic-native/vibration/ngx/index';
|
|
69
|
+
import * as i4 from '@ionic-native/audio-management/ngx/index';
|
|
59
70
|
import * as uuidv4Imported from 'uuid/v4';
|
|
60
71
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
61
72
|
import { MarkdownModule } from 'ngx-markdown';
|
|
62
73
|
import { sign, box, hash, verify } from 'tweetnacl';
|
|
74
|
+
import * as i3$1 from '@ionic/storage';
|
|
63
75
|
import { Storage, IonicStorageModule } from '@ionic/storage';
|
|
64
76
|
import 'zone.js/dist/zone-error';
|
|
65
|
-
import { SplashScreen
|
|
66
|
-
import { Connection, Network
|
|
67
|
-
import { CacheService
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import { StatusBar
|
|
77
|
+
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
|
|
78
|
+
import { Connection, Network } from '@ionic-native/network/ngx';
|
|
79
|
+
import { CacheService, CacheModule } from 'ionic-cache';
|
|
80
|
+
import * as i6 from 'ionic-cache/dist/cache.service';
|
|
81
|
+
import * as i9 from '@ionic-native/network/ngx/index';
|
|
82
|
+
import * as i10 from '@ionic-native/splash-screen/ngx/index';
|
|
83
|
+
import { StatusBar } from '@ionic-native/status-bar/ngx';
|
|
84
|
+
import * as i2$4 from '@angular/cdk/platform';
|
|
72
85
|
import { Platform as Platform$1 } from '@angular/cdk/platform';
|
|
73
|
-
import { InAppBrowser
|
|
86
|
+
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
|
|
74
87
|
import { ApolloLink, NetworkStatus, InMemoryCache, ApolloClient, gql } from '@apollo/client/core';
|
|
88
|
+
import * as i2$3 from 'apollo-angular';
|
|
75
89
|
import { Apollo } from 'apollo-angular';
|
|
76
90
|
import { WebSocketLink } from '@apollo/client/link/ws';
|
|
77
91
|
import { getMainDefinition } from '@apollo/client/utilities';
|
|
@@ -79,13 +93,14 @@ import { RetryLink } from '@apollo/client/link/retry';
|
|
|
79
93
|
import QueueLink from 'apollo-link-queue';
|
|
80
94
|
import SerializingLink from 'apollo-link-serialize';
|
|
81
95
|
import loggerLink from 'apollo-link-logger';
|
|
96
|
+
import * as i3$2 from 'apollo-angular/http';
|
|
82
97
|
import { HttpLink } from 'apollo-angular/http';
|
|
83
98
|
import { IonicStorageWrapper, persistCache } from 'apollo3-cache-persist';
|
|
84
|
-
import { NotificationVisibility, Downloader
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import
|
|
99
|
+
import { NotificationVisibility, Downloader } from '@ionic-native/downloader/ngx';
|
|
100
|
+
import * as i14 from '@ionic-native/status-bar/ngx/index';
|
|
101
|
+
import * as i15 from '@ionic-native/keyboard/ngx/index';
|
|
102
|
+
import * as i17 from '@ionic-native/in-app-browser/ngx/index';
|
|
103
|
+
import * as i18 from '@ionic-native/downloader/ngx/index';
|
|
89
104
|
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
|
|
90
105
|
import { ValidatorService, TableDataSource } from '@e-is/ngx-material-table';
|
|
91
106
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
@@ -977,14 +992,14 @@ class MatAutocompleteConfigHolder {
|
|
|
977
992
|
return this.fields[fieldName] || this.add(fieldName);
|
|
978
993
|
}
|
|
979
994
|
}
|
|
980
|
-
const noop = (_) => { };
|
|
981
|
-
const ɵ0 = noop;
|
|
995
|
+
const noop$8 = (_) => { };
|
|
996
|
+
const ɵ0$c = noop$8;
|
|
982
997
|
class MatAutocompleteField {
|
|
983
998
|
constructor(cd, formGroupDir) {
|
|
984
999
|
this.cd = cd;
|
|
985
1000
|
this.formGroupDir = formGroupDir;
|
|
986
|
-
this._onChangeCallback = noop;
|
|
987
|
-
this._onTouchedCallback = noop;
|
|
1001
|
+
this._onChangeCallback = noop$8;
|
|
1002
|
+
this._onTouchedCallback = noop$8;
|
|
988
1003
|
this.logPrefix = '[mat-autocomplete] ';
|
|
989
1004
|
this.formControlName = null;
|
|
990
1005
|
this.required = false;
|
|
@@ -1704,7 +1719,7 @@ class DateFormatPipe {
|
|
|
1704
1719
|
return this.dateAdapter.format(date, displayFormat);
|
|
1705
1720
|
}
|
|
1706
1721
|
}
|
|
1707
|
-
DateFormatPipe.ɵprov =
|
|
1722
|
+
DateFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFormatPipe_Factory() { return new DateFormatPipe(i0.ɵɵinject(i1.MomentDateAdapter), i0.ɵɵinject(i1$1.TranslateService)); }, token: DateFormatPipe, providedIn: "root" });
|
|
1708
1723
|
DateFormatPipe.decorators = [
|
|
1709
1724
|
{ type: Pipe, args: [{
|
|
1710
1725
|
name: 'dateFormat'
|
|
@@ -1716,7 +1731,7 @@ DateFormatPipe.ctorParameters = () => [
|
|
|
1716
1731
|
{ type: TranslateService }
|
|
1717
1732
|
];
|
|
1718
1733
|
|
|
1719
|
-
const moment = momentImported;
|
|
1734
|
+
const moment$6 = momentImported;
|
|
1720
1735
|
class DateDiffDurationPipe {
|
|
1721
1736
|
constructor(dateAdapter, translate) {
|
|
1722
1737
|
this.dateAdapter = dateAdapter;
|
|
@@ -1732,17 +1747,17 @@ class DateDiffDurationPipe {
|
|
|
1732
1747
|
return this.format(startDate, endDate);
|
|
1733
1748
|
}
|
|
1734
1749
|
format(startDate, endDate) {
|
|
1735
|
-
const duration = moment.duration(endDate.diff(startDate));
|
|
1750
|
+
const duration = moment$6.duration(endDate.diff(startDate));
|
|
1736
1751
|
if (duration.asMinutes() < 0)
|
|
1737
1752
|
return '';
|
|
1738
|
-
const timeDuration = moment(0)
|
|
1753
|
+
const timeDuration = moment$6(0)
|
|
1739
1754
|
.hour(duration.hours())
|
|
1740
1755
|
.minute(duration.minutes());
|
|
1741
1756
|
const days = Math.floor(duration.asDays());
|
|
1742
1757
|
return (days > 0 ? days.toString() + (this.dayUnit + ' ') : '') + timeDuration.format('HH:mm');
|
|
1743
1758
|
}
|
|
1744
1759
|
}
|
|
1745
|
-
DateDiffDurationPipe.ɵprov =
|
|
1760
|
+
DateDiffDurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateDiffDurationPipe_Factory() { return new DateDiffDurationPipe(i0.ɵɵinject(i1$2.DateAdapter), i0.ɵɵinject(i1$1.TranslateService)); }, token: DateDiffDurationPipe, providedIn: "root" });
|
|
1746
1761
|
DateDiffDurationPipe.decorators = [
|
|
1747
1762
|
{ type: Pipe, args: [{
|
|
1748
1763
|
name: 'dateDiffDuration'
|
|
@@ -1763,7 +1778,7 @@ class DateFromNowPipe {
|
|
|
1763
1778
|
return date ? date.fromNow(args && args.withoutSuffix) : '';
|
|
1764
1779
|
}
|
|
1765
1780
|
}
|
|
1766
|
-
DateFromNowPipe.ɵprov =
|
|
1781
|
+
DateFromNowPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0.ɵɵinject(i1.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
|
|
1767
1782
|
DateFromNowPipe.decorators = [
|
|
1768
1783
|
{ type: Pipe, args: [{
|
|
1769
1784
|
name: 'dateFromNow'
|
|
@@ -1832,7 +1847,7 @@ function formatToDD(value, opts) {
|
|
|
1832
1847
|
value *= -1;
|
|
1833
1848
|
}
|
|
1834
1849
|
}
|
|
1835
|
-
let degrees = roundFloat(value, opts.maxDecimals).toString();
|
|
1850
|
+
let degrees = roundFloat$1(value, opts.maxDecimals).toString();
|
|
1836
1851
|
// Add sign
|
|
1837
1852
|
let sign = negative ? '-' : '+';
|
|
1838
1853
|
if (opts.placeholderChar) {
|
|
@@ -1883,7 +1898,7 @@ function formatToDDMMSS(value, opts) {
|
|
|
1883
1898
|
}
|
|
1884
1899
|
let degrees = Math.trunc(value);
|
|
1885
1900
|
let minutes = Math.trunc((value - degrees) * 60);
|
|
1886
|
-
let seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
|
|
1901
|
+
let seconds = roundFloat$1(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
|
|
1887
1902
|
while (seconds >= 60) {
|
|
1888
1903
|
seconds -= 60;
|
|
1889
1904
|
minutes += 1;
|
|
@@ -1951,7 +1966,7 @@ function formatToDDMM(value, opts) {
|
|
|
1951
1966
|
}
|
|
1952
1967
|
}
|
|
1953
1968
|
let degrees = Math.trunc(value);
|
|
1954
|
-
let minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
|
|
1969
|
+
let minutes = roundFloat$1((value - degrees) * 60, opts.maxDecimals);
|
|
1955
1970
|
while (minutes >= 60) {
|
|
1956
1971
|
minutes -= 60;
|
|
1957
1972
|
degrees += 1;
|
|
@@ -2002,15 +2017,15 @@ function parseLatitudeOrLongitude(input, pattern, maxDecimals, placeholderChar)
|
|
|
2002
2017
|
return NaN;
|
|
2003
2018
|
}
|
|
2004
2019
|
if (pattern === 'DD')
|
|
2005
|
-
return roundFloat(degrees, maxDecimals);
|
|
2020
|
+
return roundFloat$1(degrees, maxDecimals);
|
|
2006
2021
|
const minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
|
|
2007
2022
|
const seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
|
|
2008
2023
|
const direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
|
|
2009
2024
|
const sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
|
|
2010
2025
|
degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
|
|
2011
|
-
return roundFloat(degrees, maxDecimals);
|
|
2026
|
+
return roundFloat$1(degrees, maxDecimals);
|
|
2012
2027
|
}
|
|
2013
|
-
function roundFloat(input, maxDecimals) {
|
|
2028
|
+
function roundFloat$1(input, maxDecimals) {
|
|
2014
2029
|
if (maxDecimals > 0) {
|
|
2015
2030
|
const powDecimal = Math.pow(10, maxDecimals);
|
|
2016
2031
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -2030,7 +2045,7 @@ class LatLongFormatPipe {
|
|
|
2030
2045
|
return ((!args.type || args.type !== 'latitude') ? formatLongitude : formatLatitude)(value, args);
|
|
2031
2046
|
}
|
|
2032
2047
|
}
|
|
2033
|
-
LatLongFormatPipe.ɵprov =
|
|
2048
|
+
LatLongFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
|
|
2034
2049
|
LatLongFormatPipe.decorators = [
|
|
2035
2050
|
{ type: Pipe, args: [{
|
|
2036
2051
|
name: 'latLongFormat'
|
|
@@ -2042,7 +2057,7 @@ class LatitudeFormatPipe {
|
|
|
2042
2057
|
this.transform = formatLatitude;
|
|
2043
2058
|
}
|
|
2044
2059
|
}
|
|
2045
|
-
LatitudeFormatPipe.ɵprov =
|
|
2060
|
+
LatitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
|
|
2046
2061
|
LatitudeFormatPipe.decorators = [
|
|
2047
2062
|
{ type: Pipe, args: [{
|
|
2048
2063
|
name: 'latitudeFormat'
|
|
@@ -2054,7 +2069,7 @@ class LongitudeFormatPipe {
|
|
|
2054
2069
|
this.transform = formatLongitude;
|
|
2055
2070
|
}
|
|
2056
2071
|
}
|
|
2057
|
-
LongitudeFormatPipe.ɵprov =
|
|
2072
|
+
LongitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
|
|
2058
2073
|
LongitudeFormatPipe.decorators = [
|
|
2059
2074
|
{ type: Pipe, args: [{
|
|
2060
2075
|
name: 'longitudeFormat'
|
|
@@ -2074,7 +2089,7 @@ class NumberFormatPipe {
|
|
|
2074
2089
|
}
|
|
2075
2090
|
}
|
|
2076
2091
|
}
|
|
2077
|
-
NumberFormatPipe.ɵprov =
|
|
2092
|
+
NumberFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
|
|
2078
2093
|
NumberFormatPipe.decorators = [
|
|
2079
2094
|
{ type: Pipe, args: [{
|
|
2080
2095
|
name: 'numberFormat'
|
|
@@ -2114,7 +2129,7 @@ class HighlightPipe {
|
|
|
2114
2129
|
}
|
|
2115
2130
|
}
|
|
2116
2131
|
}
|
|
2117
|
-
HighlightPipe.ɵprov =
|
|
2132
|
+
HighlightPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
|
|
2118
2133
|
HighlightPipe.decorators = [
|
|
2119
2134
|
{ type: Pipe, args: [{
|
|
2120
2135
|
name: 'highlight'
|
|
@@ -2179,7 +2194,7 @@ FileSizePipe.decorators = [
|
|
|
2179
2194
|
{ type: Pipe, args: [{ name: 'fileSize' },] }
|
|
2180
2195
|
];
|
|
2181
2196
|
|
|
2182
|
-
const moment$
|
|
2197
|
+
const moment$5 = momentImported;
|
|
2183
2198
|
const DATE_UNIX_TIMESTAMP = 'X';
|
|
2184
2199
|
const DATE_UNIX_MS_TIMESTAMP = 'x';
|
|
2185
2200
|
class DateUtils {
|
|
@@ -2221,32 +2236,32 @@ function fromDateISOString(value) {
|
|
|
2221
2236
|
if (!value || isMoment(value))
|
|
2222
2237
|
return value;
|
|
2223
2238
|
// Parse the input value, as a ISO date time
|
|
2224
|
-
const date = moment$
|
|
2239
|
+
const date = moment$5(value, DATE_ISO_PATTERN);
|
|
2225
2240
|
if (date.isValid())
|
|
2226
2241
|
return date;
|
|
2227
2242
|
// Not valid: trying to convert from unix timestamp
|
|
2228
2243
|
if (typeof value === 'string') {
|
|
2229
2244
|
console.warn('Wrong date format - Trying to convert from local time: ' + value);
|
|
2230
2245
|
if (value.length === 10) {
|
|
2231
|
-
return moment$
|
|
2246
|
+
return moment$5(value, DATE_UNIX_TIMESTAMP);
|
|
2232
2247
|
}
|
|
2233
2248
|
else if (value.length === 13) {
|
|
2234
|
-
return moment$
|
|
2249
|
+
return moment$5(value, DATE_UNIX_MS_TIMESTAMP);
|
|
2235
2250
|
}
|
|
2236
2251
|
}
|
|
2237
2252
|
console.warn('Unable to parse date: ' + value);
|
|
2238
2253
|
return undefined;
|
|
2239
2254
|
}
|
|
2240
2255
|
function fromUnixTimestamp(timeInSec) {
|
|
2241
|
-
return moment$
|
|
2256
|
+
return moment$5(timeInSec, DATE_UNIX_TIMESTAMP);
|
|
2242
2257
|
}
|
|
2243
2258
|
function fromUnixMsTimestamp(timeInMs) {
|
|
2244
|
-
return moment$
|
|
2259
|
+
return moment$5(timeInMs, DATE_UNIX_MS_TIMESTAMP);
|
|
2245
2260
|
}
|
|
2246
2261
|
function toDuration(value, unit) {
|
|
2247
2262
|
if (!value)
|
|
2248
2263
|
return undefined;
|
|
2249
|
-
const duration = moment$
|
|
2264
|
+
const duration = moment$5.duration(value, unit);
|
|
2250
2265
|
// fix 990+ ms
|
|
2251
2266
|
if (duration.milliseconds() >= 990) {
|
|
2252
2267
|
duration.add(1000 - duration.milliseconds(), 'ms');
|
|
@@ -2275,7 +2290,7 @@ class DurationPipe {
|
|
|
2275
2290
|
return (days > 0 ? days.toString() + (this.dayUnit + ' ') : '') + hour + ':' + minute;
|
|
2276
2291
|
}
|
|
2277
2292
|
}
|
|
2278
|
-
DurationPipe.ɵprov =
|
|
2293
|
+
DurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0.ɵɵinject(i1$1.TranslateService)); }, token: DurationPipe, providedIn: "root" });
|
|
2279
2294
|
DurationPipe.decorators = [
|
|
2280
2295
|
{ type: Pipe, args: [{
|
|
2281
2296
|
name: 'duration'
|
|
@@ -2296,7 +2311,7 @@ class MathAbsPipe {
|
|
|
2296
2311
|
}
|
|
2297
2312
|
}
|
|
2298
2313
|
}
|
|
2299
|
-
MathAbsPipe.ɵprov =
|
|
2314
|
+
MathAbsPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
|
|
2300
2315
|
MathAbsPipe.decorators = [
|
|
2301
2316
|
{ type: Pipe, args: [{
|
|
2302
2317
|
name: 'mathAbs'
|
|
@@ -2308,7 +2323,7 @@ class EvenPipe {
|
|
|
2308
2323
|
return val % 2 === 0;
|
|
2309
2324
|
}
|
|
2310
2325
|
}
|
|
2311
|
-
EvenPipe.ɵprov =
|
|
2326
|
+
EvenPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
|
|
2312
2327
|
EvenPipe.decorators = [
|
|
2313
2328
|
{ type: Pipe, args: [{
|
|
2314
2329
|
name: 'even'
|
|
@@ -2320,7 +2335,7 @@ class OddPipe {
|
|
|
2320
2335
|
return val % 2 !== 0;
|
|
2321
2336
|
}
|
|
2322
2337
|
}
|
|
2323
|
-
OddPipe.ɵprov =
|
|
2338
|
+
OddPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
|
|
2324
2339
|
OddPipe.decorators = [
|
|
2325
2340
|
{ type: Pipe, args: [{
|
|
2326
2341
|
name: 'odd'
|
|
@@ -2428,7 +2443,7 @@ class MapGetPipe {
|
|
|
2428
2443
|
return val[key];
|
|
2429
2444
|
}
|
|
2430
2445
|
}
|
|
2431
|
-
MapGetPipe.ɵprov =
|
|
2446
|
+
MapGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
|
|
2432
2447
|
MapGetPipe.decorators = [
|
|
2433
2448
|
{ type: Pipe, args: [{
|
|
2434
2449
|
name: 'mapGet'
|
|
@@ -2442,7 +2457,7 @@ class MapKeysPipe {
|
|
|
2442
2457
|
return Object.keys(map);
|
|
2443
2458
|
}
|
|
2444
2459
|
}
|
|
2445
|
-
MapKeysPipe.ɵprov =
|
|
2460
|
+
MapKeysPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
|
|
2446
2461
|
MapKeysPipe.decorators = [
|
|
2447
2462
|
{ type: Pipe, args: [{
|
|
2448
2463
|
name: 'mapKeys'
|
|
@@ -2456,7 +2471,7 @@ class MapValuesPipe {
|
|
|
2456
2471
|
return Object.values(map);
|
|
2457
2472
|
}
|
|
2458
2473
|
}
|
|
2459
|
-
MapValuesPipe.ɵprov =
|
|
2474
|
+
MapValuesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
|
|
2460
2475
|
MapValuesPipe.decorators = [
|
|
2461
2476
|
{ type: Pipe, args: [{
|
|
2462
2477
|
name: 'mapValues'
|
|
@@ -2469,7 +2484,7 @@ class IsNotNilOrBlankPipe {
|
|
|
2469
2484
|
return isNotNilOrBlank(value);
|
|
2470
2485
|
}
|
|
2471
2486
|
}
|
|
2472
|
-
IsNotNilOrBlankPipe.ɵprov =
|
|
2487
|
+
IsNotNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
|
|
2473
2488
|
IsNotNilOrBlankPipe.decorators = [
|
|
2474
2489
|
{ type: Pipe, args: [{
|
|
2475
2490
|
name: 'isNotNilOrBlank'
|
|
@@ -2481,7 +2496,7 @@ class IsNilOrBlankPipe {
|
|
|
2481
2496
|
return isNilOrBlank(value);
|
|
2482
2497
|
}
|
|
2483
2498
|
}
|
|
2484
|
-
IsNilOrBlankPipe.ɵprov =
|
|
2499
|
+
IsNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
|
|
2485
2500
|
IsNilOrBlankPipe.decorators = [
|
|
2486
2501
|
{ type: Pipe, args: [{
|
|
2487
2502
|
name: 'isNilOrBlank'
|
|
@@ -2493,7 +2508,7 @@ class ToStringPipe {
|
|
|
2493
2508
|
return (value !== null && value !== undefined) ? value.toString() : '';
|
|
2494
2509
|
}
|
|
2495
2510
|
}
|
|
2496
|
-
ToStringPipe.ɵprov =
|
|
2511
|
+
ToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
|
|
2497
2512
|
ToStringPipe.decorators = [
|
|
2498
2513
|
{ type: Pipe, args: [{
|
|
2499
2514
|
name: 'toString'
|
|
@@ -2505,7 +2520,7 @@ class StrLengthPipe {
|
|
|
2505
2520
|
return value && value.length || 0;
|
|
2506
2521
|
}
|
|
2507
2522
|
}
|
|
2508
|
-
StrLengthPipe.ɵprov =
|
|
2523
|
+
StrLengthPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
|
|
2509
2524
|
StrLengthPipe.decorators = [
|
|
2510
2525
|
{ type: Pipe, args: [{
|
|
2511
2526
|
name: 'strLength'
|
|
@@ -2582,7 +2597,7 @@ class TranslateContextService {
|
|
|
2582
2597
|
return translations[keys[keys.length - 1]]; // Return the last keys translation
|
|
2583
2598
|
}
|
|
2584
2599
|
}
|
|
2585
|
-
TranslateContextService.ɵprov =
|
|
2600
|
+
TranslateContextService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0.ɵɵinject(i1$1.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
|
|
2586
2601
|
TranslateContextService.decorators = [
|
|
2587
2602
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
2588
2603
|
];
|
|
@@ -2632,7 +2647,7 @@ class PropertyGetPipe {
|
|
|
2632
2647
|
args && args.defaultValue);
|
|
2633
2648
|
}
|
|
2634
2649
|
}
|
|
2635
|
-
PropertyGetPipe.ɵprov =
|
|
2650
|
+
PropertyGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
|
|
2636
2651
|
PropertyGetPipe.decorators = [
|
|
2637
2652
|
{ type: Pipe, args: [{
|
|
2638
2653
|
name: 'propertyGet'
|
|
@@ -2657,7 +2672,7 @@ NgInitDirective.propDecorators = {
|
|
|
2657
2672
|
ngInit: [{ type: Output }]
|
|
2658
2673
|
};
|
|
2659
2674
|
|
|
2660
|
-
const moment$
|
|
2675
|
+
const moment$4 = momentImported;
|
|
2661
2676
|
// @dynamic
|
|
2662
2677
|
class SharedValidators {
|
|
2663
2678
|
static getDoubleRegexp(maxDecimals) {
|
|
@@ -2674,7 +2689,7 @@ class SharedValidators {
|
|
|
2674
2689
|
}
|
|
2675
2690
|
static validDate(control) {
|
|
2676
2691
|
const value = control.value;
|
|
2677
|
-
const date = !value || moment$
|
|
2692
|
+
const date = !value || moment$4.isMoment(value) ? value : moment$4(control.value, DATE_ISO_PATTERN);
|
|
2678
2693
|
if (date && (!date.isValid() || date.year() < 1970)) {
|
|
2679
2694
|
return { validDate: true };
|
|
2680
2695
|
}
|
|
@@ -3749,7 +3764,7 @@ class FormErrorTranslator {
|
|
|
3749
3764
|
return errorKey;
|
|
3750
3765
|
}
|
|
3751
3766
|
}
|
|
3752
|
-
FormErrorTranslator.ɵprov =
|
|
3767
|
+
FormErrorTranslator.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormErrorTranslator_Factory() { return new FormErrorTranslator(i0.ɵɵinject(i1$1.TranslateService), i0.ɵɵinject(APP_FORM_ERROR_I18N_KEYS, 8)); }, token: FormErrorTranslator, providedIn: "root" });
|
|
3753
3768
|
FormErrorTranslator.decorators = [
|
|
3754
3769
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
3755
3770
|
];
|
|
@@ -3935,7 +3950,7 @@ const isIpad = (win) => {
|
|
|
3935
3950
|
}
|
|
3936
3951
|
return false;
|
|
3937
3952
|
};
|
|
3938
|
-
const ɵ0$
|
|
3953
|
+
const ɵ0$b = isIpad;
|
|
3939
3954
|
const isIOS = (win) => testUserAgent(win, /iPhone|iPod/i) || isIpad(win);
|
|
3940
3955
|
const isAndroid = (win) => testUserAgent(win, /android|sink/i);
|
|
3941
3956
|
const isCordova = (win) => !!(win['cordova'] || win['phonegap'] || win['PhoneGap']);
|
|
@@ -4170,9 +4185,9 @@ function parseDuration(input, maxDecimals, placeholderChar) {
|
|
|
4170
4185
|
const hour = parseInt(durationParts[0] || '0');
|
|
4171
4186
|
const minute = parseInt(durationParts[1] || '0');
|
|
4172
4187
|
const value = hour + (minute + 0.5) / 60;
|
|
4173
|
-
return roundFloat
|
|
4188
|
+
return roundFloat(value, maxDecimals);
|
|
4174
4189
|
}
|
|
4175
|
-
function roundFloat
|
|
4190
|
+
function roundFloat(input, maxDecimals) {
|
|
4176
4191
|
if (maxDecimals > 0) {
|
|
4177
4192
|
const powDecimal = Math.pow(10, maxDecimals);
|
|
4178
4193
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -4196,9 +4211,9 @@ const MASKS = {
|
|
|
4196
4211
|
DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
|
|
4197
4212
|
}
|
|
4198
4213
|
};
|
|
4199
|
-
const noop$
|
|
4214
|
+
const noop$7 = () => {
|
|
4200
4215
|
};
|
|
4201
|
-
const ɵ0$
|
|
4216
|
+
const ɵ0$a = noop$7;
|
|
4202
4217
|
class MatLatLongField {
|
|
4203
4218
|
constructor(platform, translate, formBuilder, cd, formGroupDir) {
|
|
4204
4219
|
this.platform = platform;
|
|
@@ -4206,8 +4221,8 @@ class MatLatLongField {
|
|
|
4206
4221
|
this.formBuilder = formBuilder;
|
|
4207
4222
|
this.cd = cd;
|
|
4208
4223
|
this.formGroupDir = formGroupDir;
|
|
4209
|
-
this._onChangeCallback = noop$
|
|
4210
|
-
this._onTouchedCallback = noop$
|
|
4224
|
+
this._onChangeCallback = noop$7;
|
|
4225
|
+
this._onTouchedCallback = noop$7;
|
|
4211
4226
|
this._subscription = new Subscription();
|
|
4212
4227
|
this.disabling = false;
|
|
4213
4228
|
this.writing = false;
|
|
@@ -4544,14 +4559,14 @@ SharedMatLatLongModule.decorators = [
|
|
|
4544
4559
|
},] }
|
|
4545
4560
|
];
|
|
4546
4561
|
|
|
4547
|
-
const DEFAULT_VALUE_ACCESSOR = {
|
|
4562
|
+
const DEFAULT_VALUE_ACCESSOR$5 = {
|
|
4548
4563
|
provide: NG_VALUE_ACCESSOR,
|
|
4549
4564
|
useExisting: forwardRef(() => MatDate),
|
|
4550
4565
|
multi: true
|
|
4551
4566
|
};
|
|
4552
|
-
const DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
4553
|
-
const noop$
|
|
4554
|
-
const ɵ0$
|
|
4567
|
+
const DAY_MASK$2 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
4568
|
+
const noop$6 = () => { };
|
|
4569
|
+
const ɵ0$9 = noop$6;
|
|
4555
4570
|
class MatDate {
|
|
4556
4571
|
constructor(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
4557
4572
|
this.dateAdapter = dateAdapter;
|
|
@@ -4560,12 +4575,12 @@ class MatDate {
|
|
|
4560
4575
|
this.cd = cd;
|
|
4561
4576
|
this.keyboard = keyboard;
|
|
4562
4577
|
this.formGroupDir = formGroupDir;
|
|
4563
|
-
this._onChangeCallback = noop$
|
|
4564
|
-
this._onTouchedCallback = noop$
|
|
4578
|
+
this._onChangeCallback = noop$6;
|
|
4579
|
+
this._onTouchedCallback = noop$6;
|
|
4565
4580
|
this._subscription = new Subscription();
|
|
4566
4581
|
this.writing = true;
|
|
4567
4582
|
this.disabling = false;
|
|
4568
|
-
this.dayMask = DAY_MASK;
|
|
4583
|
+
this.dayMask = DAY_MASK$2;
|
|
4569
4584
|
this.disabled = false;
|
|
4570
4585
|
this.floatLabel = 'auto';
|
|
4571
4586
|
this.readonly = false;
|
|
@@ -4802,7 +4817,7 @@ MatDate.decorators = [
|
|
|
4802
4817
|
selector: 'mat-date-field',
|
|
4803
4818
|
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",
|
|
4804
4819
|
providers: [
|
|
4805
|
-
DEFAULT_VALUE_ACCESSOR,
|
|
4820
|
+
DEFAULT_VALUE_ACCESSOR$5,
|
|
4806
4821
|
],
|
|
4807
4822
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4808
4823
|
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%}"]
|
|
@@ -4835,17 +4850,17 @@ MatDate.propDecorators = {
|
|
|
4835
4850
|
matInputs: [{ type: ViewChildren, args: ['matInput',] }]
|
|
4836
4851
|
};
|
|
4837
4852
|
|
|
4838
|
-
const DEFAULT_VALUE_ACCESSOR$
|
|
4853
|
+
const DEFAULT_VALUE_ACCESSOR$4 = {
|
|
4839
4854
|
provide: NG_VALUE_ACCESSOR,
|
|
4840
4855
|
useExisting: forwardRef(() => MatDateTime),
|
|
4841
4856
|
multi: true
|
|
4842
4857
|
};
|
|
4843
4858
|
const DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
4844
4859
|
const HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
|
|
4845
|
-
const HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
4846
|
-
const noop$
|
|
4860
|
+
const HOUR_MASK$1 = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
4861
|
+
const noop$5 = () => {
|
|
4847
4862
|
};
|
|
4848
|
-
const ɵ0$
|
|
4863
|
+
const ɵ0$8 = noop$5;
|
|
4849
4864
|
class MatDateTime {
|
|
4850
4865
|
constructor(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
4851
4866
|
this.platform = platform;
|
|
@@ -4855,14 +4870,14 @@ class MatDateTime {
|
|
|
4855
4870
|
this.cd = cd;
|
|
4856
4871
|
this.keyboard = keyboard;
|
|
4857
4872
|
this.formGroupDir = formGroupDir;
|
|
4858
|
-
this._onChangeCallback = noop$
|
|
4859
|
-
this._onTouchedCallback = noop$
|
|
4873
|
+
this._onChangeCallback = noop$5;
|
|
4874
|
+
this._onTouchedCallback = noop$5;
|
|
4860
4875
|
this._subscription = new Subscription();
|
|
4861
4876
|
this.writing = true;
|
|
4862
4877
|
this.disabling = false;
|
|
4863
4878
|
this._readonly = false;
|
|
4864
4879
|
this.dayMask = DAY_MASK$1;
|
|
4865
|
-
this.hourMask = HOUR_MASK;
|
|
4880
|
+
this.hourMask = HOUR_MASK$1;
|
|
4866
4881
|
this.floatLabel = 'auto';
|
|
4867
4882
|
this.compact = false;
|
|
4868
4883
|
this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
|
|
@@ -5174,7 +5189,7 @@ MatDateTime.decorators = [
|
|
|
5174
5189
|
selector: 'mat-date-time-field',
|
|
5175
5190
|
template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput hidden type=\"text\"\n readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<!-- writable + time -->\n<ng-template #writable >\n <ion-grid class=\"ion-no-padding\">\n <ion-row class=\"ion-no-padding no-wrap\" nowrap>\n\n <!-- day -->\n <ion-col class=\"day ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && formControl.invalid\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dateFormControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker)\"\n (keyup.escape)=\"preventEvent($event)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [appAutofocus]=\"autofocus\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dateFormControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n <input matInput type=\"text\" [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button type=\"button\" mat-icon-button tabindex=\"-1\" matSuffix #datePickerButton2 (click)=\"openDatePicker($event, datePicker)\" [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clear()\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n </mat-form-field>\n <mat-datepicker #datePicker\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n [startAt]=\"startDate\"></mat-datepicker>\n <div class=\"mat-form-field-subscript mat-form-field-subscript-wrapper\" >\n <!-- errors -->\n <ng-container [ngSwitch]=\"formControl.touched && formControl.errors|mapKeys|arrayFirst\">\n <mat-error *ngSwitchCase=\"'required'\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngSwitchCase=\"'validDate'\" translate>ERROR.FIELD_NOT_VALID_DATE_TIME</mat-error>\n <mat-error *ngSwitchCase=\"'dateIsAfter'\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngSwitchCase=\"'dateRange'\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngSwitchCase=\"'dateMaxDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngSwitchCase=\"'dateMinDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngSwitchCase=\"'msg'\">{{(formControl.errors.msg?.key || formControl.errors.msg) | translate: formControl.errors.msg?.params}}</mat-error>\n </ng-container>\n <ng-content select=\"mat-error\"></ng-content>\n\n <!-- mat hint -->\n <div class=\"mat-form-field-hint-wrapper\" [class.cdk-visually-hidden]=\"formControl.invalid\">\n <div class=\"mat-form-field-hint-spacer\"></div>\n <ng-content select=\"mat-hint\"></ng-content>\n </div>\n </div>\n\n </ion-col>\n\n <!-- hour -->\n <ion-col class=\"hour ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && (timeFormControl.invalid || formControl.invalid)\">\n <mat-label *ngIf=\"placeholder && floatLabel != 'never'\" translate>COMMON.TIME</mat-label>\n <input matInput #matInput type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"timeFormControl\"\n autocomplete=\"off\"\n min=\"0\" max=\"23\"\n [textMask]=\"{mask: hourMask, keepCharPositions: true, placeholderChar: placeholderChar, guide: true}\"\n [placeholder]=\"'COMMON.TIME_PLACEHOLDER'|translate\"\n [required]=\"required\"\n (keyup.arrowdown)=\"openTimePicker($event)\"\n (keyup.escape)=\"preventEvent($event)\"\n (blur)=\"checkIfTouched()\"\n [tabindex]=\"tabindex !== undefined ? tabindex+1 : undefined\">\n\n <input matInput #matInput type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"timeFormControl\"\n (click)=\"openTimePickerIfMobile($event)\"\n readonly>\n\n <input matInput type=\"text\"\n [formControl]=\"timeFormControl\"\n hidden\n [ngxTimepicker]=\"timePicker\"\n [format]=\"24\">\n\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && !mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePicker($event)\" >\n <mat-icon>keyboard_arrow_down</mat-icon>\n </button>\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePickerIfMobile($event)\">\n <mat-icon>access_time</mat-icon>\n </button>\n\n <ngx-material-timepicker #timePicker [@.disabled]=\"true\"\n (timeSet)=\"onTimePickerChange($event)\"\n [ESC]=\"!mobile\"\n [defaultTime]=\"'00:00'\"\n [cancelBtnTmpl]=\"timePickerCancelButton\"\n [confirmBtnTmpl]=\"timePickerOkButton\"\n [preventOverlayClick]=\"mobile\"\n [enableKeyboardInput]=\"false\"\n [disableAnimation]=\"true\">\n <!-- cancel button -->\n <ng-template #timePickerCancelButton>\n <ion-button fill=\"clear\" color=\"dark\">\n <ion-label translate>COMMON.BTN_CANCEL</ion-label>\n </ion-button>\n </ng-template>\n\n <!-- confirm button -->\n <ng-template #timePickerOkButton>\n <ion-button fill=\"solid\" color=\"tertiary\">\n <ion-label translate>COMMON.BTN_VALIDATE</ion-label>\n </ion-button>\n </ng-template>\n\n </ngx-material-timepicker>\n </mat-form-field>\n </ion-col>\n </ion-row>\n </ion-grid>\n\n\n</ng-template>\n\n<ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n</ng-template>\n\n<ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n</ng-template>\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n",
|
|
5176
5191
|
providers: [
|
|
5177
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5192
|
+
DEFAULT_VALUE_ACCESSOR$4,
|
|
5178
5193
|
],
|
|
5179
5194
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5180
5195
|
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%}"]
|
|
@@ -5208,15 +5223,15 @@ MatDateTime.propDecorators = {
|
|
|
5208
5223
|
matInputs: [{ type: ViewChildren, args: ['matInput',] }]
|
|
5209
5224
|
};
|
|
5210
5225
|
|
|
5211
|
-
const DEFAULT_VALUE_ACCESSOR$
|
|
5226
|
+
const DEFAULT_VALUE_ACCESSOR$3 = {
|
|
5212
5227
|
provide: NG_VALUE_ACCESSOR,
|
|
5213
5228
|
useExisting: forwardRef(() => MatDateShort),
|
|
5214
5229
|
multi: true
|
|
5215
5230
|
};
|
|
5216
|
-
const DAY_MASK
|
|
5231
|
+
const DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
|
|
5217
5232
|
const noop$4 = () => {
|
|
5218
5233
|
};
|
|
5219
|
-
const ɵ0$
|
|
5234
|
+
const ɵ0$7 = noop$4;
|
|
5220
5235
|
class MatDateShort {
|
|
5221
5236
|
constructor(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5222
5237
|
this.dateAdapter = dateAdapter;
|
|
@@ -5229,7 +5244,7 @@ class MatDateShort {
|
|
|
5229
5244
|
this._onTouchedCallback = noop$4;
|
|
5230
5245
|
this.writing = true;
|
|
5231
5246
|
this.disabling = false;
|
|
5232
|
-
this.dayMask = DAY_MASK
|
|
5247
|
+
this.dayMask = DAY_MASK;
|
|
5233
5248
|
this.disabled = false;
|
|
5234
5249
|
this.floatLabel = 'auto';
|
|
5235
5250
|
this.readonly = false;
|
|
@@ -5474,7 +5489,7 @@ MatDateShort.decorators = [
|
|
|
5474
5489
|
selector: 'mat-date-short-field',
|
|
5475
5490
|
template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly else writable\">\n <input matInput hidden type=\"text\" readonly=\"true\" [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix><ng-content select=\"[matPrefix]\"></ng-content></div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dayControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_YEAR_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker1)\"\n (keyup.escape)=\"preventEvent($event)\"\n (click)=\"matInput.select()\"\n [required]=\"required\"\n [tabindex]=\"tabindex\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dayControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker1)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n\n <!-- Hide the final control -->\n <input matInput type=\"text\"\n [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker1\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n (click)=\"openDatePicker($event, datePicker1)\"\n [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"writeValue(null)\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('validDate')\" translate>ERROR.FIELD_NOT_VALID_DATE</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateIsAfter')\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateRange')\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMaxDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMinDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngIf=\"formControl.hasError('msg')\">{{formControl.errors.msg}}</mat-error>\n <ng-content select=\"mat-error\"></ng-content>\n </mat-form-field>\n\n <mat-datepicker #datePicker1\n startView=\"multi-year\"\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n (yearSelected)=\"closeDatePicker($event, datePicker1)\"\n [startAt]=\"startDate\"></mat-datepicker>\n\n <ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n </ng-template>\n\n <ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n </ng-template>\n\n</ng-template>\n",
|
|
5476
5491
|
providers: [
|
|
5477
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5492
|
+
DEFAULT_VALUE_ACCESSOR$3,
|
|
5478
5493
|
],
|
|
5479
5494
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5480
5495
|
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%}"]
|
|
@@ -5542,16 +5557,16 @@ SharedMatDateTimeModule.decorators = [
|
|
|
5542
5557
|
},] }
|
|
5543
5558
|
];
|
|
5544
5559
|
|
|
5545
|
-
const DEFAULT_VALUE_ACCESSOR$
|
|
5560
|
+
const DEFAULT_VALUE_ACCESSOR$2 = {
|
|
5546
5561
|
provide: NG_VALUE_ACCESSOR,
|
|
5547
5562
|
useExisting: forwardRef(() => MatDuration),
|
|
5548
5563
|
multi: true
|
|
5549
5564
|
};
|
|
5550
5565
|
const HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
|
|
5551
|
-
const HOUR_MASK
|
|
5552
|
-
const noop$
|
|
5566
|
+
const HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
5567
|
+
const noop$3 = () => {
|
|
5553
5568
|
};
|
|
5554
|
-
const ɵ0$6 = noop$
|
|
5569
|
+
const ɵ0$6 = noop$3;
|
|
5555
5570
|
class MatDuration {
|
|
5556
5571
|
constructor(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
|
|
5557
5572
|
this.dateAdapter = dateAdapter;
|
|
@@ -5560,11 +5575,11 @@ class MatDuration {
|
|
|
5560
5575
|
this.cd = cd;
|
|
5561
5576
|
this.formGroupDir = formGroupDir;
|
|
5562
5577
|
this._subscription = new Subscription();
|
|
5563
|
-
this._onChangeCallback = noop$
|
|
5564
|
-
this._onTouchedCallback = noop$
|
|
5578
|
+
this._onChangeCallback = noop$3;
|
|
5579
|
+
this._onTouchedCallback = noop$3;
|
|
5565
5580
|
this.writing = true;
|
|
5566
5581
|
this.disabling = false;
|
|
5567
|
-
this.hourMask = HOUR_MASK
|
|
5582
|
+
this.hourMask = HOUR_MASK;
|
|
5568
5583
|
this.disabled = false;
|
|
5569
5584
|
this.floatLabel = 'auto';
|
|
5570
5585
|
this.readonly = false;
|
|
@@ -5744,7 +5759,7 @@ MatDuration.decorators = [
|
|
|
5744
5759
|
selector: 'mat-duration-field',
|
|
5745
5760
|
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",
|
|
5746
5761
|
providers: [
|
|
5747
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5762
|
+
DEFAULT_VALUE_ACCESSOR$2,
|
|
5748
5763
|
],
|
|
5749
5764
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5750
5765
|
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%}"]
|
|
@@ -5801,22 +5816,22 @@ SharedMatDurationModule.decorators = [
|
|
|
5801
5816
|
},] }
|
|
5802
5817
|
];
|
|
5803
5818
|
|
|
5804
|
-
const DEFAULT_VALUE_ACCESSOR$
|
|
5819
|
+
const DEFAULT_VALUE_ACCESSOR$1 = {
|
|
5805
5820
|
provide: NG_VALUE_ACCESSOR,
|
|
5806
5821
|
useExisting: forwardRef(() => MatBooleanField),
|
|
5807
5822
|
multi: true
|
|
5808
5823
|
};
|
|
5809
|
-
const noop$
|
|
5824
|
+
const noop$2 = () => {
|
|
5810
5825
|
};
|
|
5811
|
-
const ɵ0$
|
|
5826
|
+
const ɵ0$5 = noop$2;
|
|
5812
5827
|
class MatBooleanField {
|
|
5813
5828
|
constructor(translate, formBuilder, cd, formGroupDir) {
|
|
5814
5829
|
this.translate = translate;
|
|
5815
5830
|
this.formBuilder = formBuilder;
|
|
5816
5831
|
this.cd = cd;
|
|
5817
5832
|
this.formGroupDir = formGroupDir;
|
|
5818
|
-
this._onChangeCallback = noop$
|
|
5819
|
-
this._onTouchedCallback = noop$
|
|
5833
|
+
this._onChangeCallback = noop$2;
|
|
5834
|
+
this._onTouchedCallback = noop$2;
|
|
5820
5835
|
this._writing = false;
|
|
5821
5836
|
this.showRadio = false;
|
|
5822
5837
|
this.disabled = false;
|
|
@@ -5979,7 +5994,7 @@ MatBooleanField.decorators = [
|
|
|
5979
5994
|
selector: 'mat-boolean-field',
|
|
5980
5995
|
template: "<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled {{classList}}\">\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput hidden type=\"text\" readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{(formControl.value == null && 'COMMON.EMPTY_OPTION' || (formControl.value === true && yesLabel) || noLabel) | translate }}</ion-text>\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n</mat-form-field>\n\n<ng-template #writable>\n <ng-container [ngSwitch]=\"style\">\n\n <!-- Radio -->\n <mat-form-field *ngSwitchCase=\"'radio'\"\n [floatLabel]=\"showRadio && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-radio {{classList}}\">\n <mat-label *ngIf=\"placeholder && floatLabel!=='never'\">\n {{placeholder}}\n <span [hidden]=\"showRadio\">({{yesLabel|translate}}/{{'COMMON.NO'|translate}})</span>\n </mat-label>\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput #fakeInput type=\"text\" readonly=\"true\"\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <!-- radio button -->\n <mat-radio-group [hidden]=\"!showRadio\"\n [formControl]=\"formControl\"\n (change)=\"onRadioValueChanged($event)\">\n <mat-radio-button #yesButton [value]=\"true\">\n <span>{{yesLabel|translate}}</span>\n </mat-radio-button> \n <mat-radio-button #noButton [value]=\"false\">\n <span>{{noLabel|translate}}</span>\n </mat-radio-button>\n </mat-radio-group>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n </mat-form-field>\n\n <!-- Checkbox -->\n <mat-form-field *ngSwitchCase=\"'checkbox'\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-checkbox {{classList}}\">\n <mat-label *ngIf=\"placeholder && !showRadio\">\n {{placeholder}}\n </mat-label>\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput #matInput\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <ion-label> </ion-label>\n\n <!-- checkbox, when compact -->\n <mat-checkbox #checkboxButton\n [formControl]=\"formControl\"\n (change)=\"onCheckboxValueChanged($event)\"\n [indeterminate]=\"value===undefined\"\n [hidden]=\"!showRadio\"\n [tabindex]=\"tabindex\">\n </mat-checkbox>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n </mat-form-field>\n\n <!-- Buttons -->\n <mat-form-field *ngSwitchCase=\"'button'\"\n [floatLabel]=\"floatLabel === 'never' ? 'never' : 'always'\"\n class=\"mat-boolean-field mat-boolean-field-button {{classList}}\">\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput type=\"text\" hidden\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [required]=\"required\">\n <div class=\"mat-form-field-buttons\"\n [style.--buttons-col-count]=\"buttonsColCount\"\n *ngIf=\"!formControl.disabled; else disabledLabel\">\n <!-- yes -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex\"\n (click)=\"writeValue(true, $event)\"\n (keyup.enter)=\"writeValue(true, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === true) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && yesIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{yesLabel|translate}}\n </ion-button>\n\n <!-- No button -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex !== undefined ? (_tabindex + 1) : undefined\"\n (click)=\"writeValue(false, $event)\"\n (keyup.enter)=\"writeValue(false, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === false) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && noIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{noLabel|translate}}\n </ion-button>\n </div>\n <ng-template #disabledLabel>\n <ion-label><i translate>COMMON.EMPTY_OPTION</i></ion-label>\n </ng-template>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n\n </mat-form-field>\n </ng-container>\n\n</ng-template>\n\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n<ng-template #matSuffixTemplate>\n <ng-content select=\"[matSuffix]\"></ng-content>\n</ng-template>\n",
|
|
5981
5996
|
providers: [
|
|
5982
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5997
|
+
DEFAULT_VALUE_ACCESSOR$1
|
|
5983
5998
|
],
|
|
5984
5999
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5985
6000
|
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}"]
|
|
@@ -6225,7 +6240,7 @@ class MatNumpadDomService {
|
|
|
6225
6240
|
this.appRef.detachView(this.componentRef.hostView);
|
|
6226
6241
|
}
|
|
6227
6242
|
}
|
|
6228
|
-
MatNumpadDomService.ɵprov =
|
|
6243
|
+
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$3.DOCUMENT, 8)); }, token: MatNumpadDomService, providedIn: "root" });
|
|
6229
6244
|
MatNumpadDomService.decorators = [
|
|
6230
6245
|
{ type: Injectable, args: [{
|
|
6231
6246
|
providedIn: 'root'
|
|
@@ -6589,7 +6604,7 @@ SharedMatNumpadModule.decorators = [
|
|
|
6589
6604
|
},] }
|
|
6590
6605
|
];
|
|
6591
6606
|
|
|
6592
|
-
const DEFAULT_VALUE_ACCESSOR
|
|
6607
|
+
const DEFAULT_VALUE_ACCESSOR = {
|
|
6593
6608
|
provide: NG_VALUE_ACCESSOR,
|
|
6594
6609
|
useExisting: forwardRef(() => MatSwipeField),
|
|
6595
6610
|
multi: true
|
|
@@ -6852,7 +6867,7 @@ MatSwipeField.decorators = [
|
|
|
6852
6867
|
{ type: Component, args: [{
|
|
6853
6868
|
selector: 'mat-swipe-field',
|
|
6854
6869
|
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",
|
|
6855
|
-
providers: [DEFAULT_VALUE_ACCESSOR
|
|
6870
|
+
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
6856
6871
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6857
6872
|
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}"]
|
|
6858
6873
|
},] }
|
|
@@ -6910,14 +6925,14 @@ SharedMatSwipeModule.decorators = [
|
|
|
6910
6925
|
},] }
|
|
6911
6926
|
];
|
|
6912
6927
|
|
|
6913
|
-
const noop$
|
|
6914
|
-
const ɵ0$
|
|
6928
|
+
const noop$1 = () => { };
|
|
6929
|
+
const ɵ0$4 = noop$1;
|
|
6915
6930
|
class MatChipsField {
|
|
6916
6931
|
constructor(cd, formGroupDir) {
|
|
6917
6932
|
this.cd = cd;
|
|
6918
6933
|
this.formGroupDir = formGroupDir;
|
|
6919
|
-
this._onChangeCallback = noop$
|
|
6920
|
-
this._onTouchedCallback = noop$
|
|
6934
|
+
this._onChangeCallback = noop$1;
|
|
6935
|
+
this._onTouchedCallback = noop$1;
|
|
6921
6936
|
this.logPrefix = '[mat-chips] ';
|
|
6922
6937
|
this.formControlName = null;
|
|
6923
6938
|
this.required = false;
|
|
@@ -7786,7 +7801,7 @@ class ProgressBarService {
|
|
|
7786
7801
|
}
|
|
7787
7802
|
}
|
|
7788
7803
|
}
|
|
7789
|
-
ProgressBarService.ɵprov =
|
|
7804
|
+
ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
|
|
7790
7805
|
ProgressBarService.decorators = [
|
|
7791
7806
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
7792
7807
|
];
|
|
@@ -7830,7 +7845,7 @@ class AppGestureConfig extends HammerGestureConfig {
|
|
|
7830
7845
|
return mc;
|
|
7831
7846
|
}
|
|
7832
7847
|
}
|
|
7833
|
-
AppGestureConfig.ɵprov =
|
|
7848
|
+
AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
|
|
7834
7849
|
AppGestureConfig.decorators = [
|
|
7835
7850
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
7836
7851
|
];
|
|
@@ -8055,7 +8070,7 @@ class MatPaginatorI18n extends MatPaginatorIntl {
|
|
|
8055
8070
|
this.previousPageLabel = this.translate.instant('COMMON.PAGINATOR.PREVIOUS_PAGE');
|
|
8056
8071
|
}
|
|
8057
8072
|
}
|
|
8058
|
-
MatPaginatorI18n.ɵprov =
|
|
8073
|
+
MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$1.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
|
|
8059
8074
|
MatPaginatorI18n.decorators = [
|
|
8060
8075
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
8061
8076
|
];
|
|
@@ -8145,17 +8160,17 @@ function getColorContrast(color, bw) {
|
|
|
8145
8160
|
return rgbArrayToHex(rgb.map(v => 255 - v));
|
|
8146
8161
|
}
|
|
8147
8162
|
|
|
8148
|
-
const noop
|
|
8163
|
+
const noop = () => {
|
|
8149
8164
|
};
|
|
8150
|
-
const ɵ0$
|
|
8165
|
+
const ɵ0$3 = noop;
|
|
8151
8166
|
class AppFormField {
|
|
8152
8167
|
constructor(translate, cd, injector, formGroupDir) {
|
|
8153
8168
|
this.translate = translate;
|
|
8154
8169
|
this.cd = cd;
|
|
8155
8170
|
this.injector = injector;
|
|
8156
8171
|
this.formGroupDir = formGroupDir;
|
|
8157
|
-
this._onChangeCallback = noop
|
|
8158
|
-
this._onTouchedCallback = noop
|
|
8172
|
+
this._onChangeCallback = noop;
|
|
8173
|
+
this._onTouchedCallback = noop;
|
|
8159
8174
|
this.readonly = false;
|
|
8160
8175
|
this.compact = false;
|
|
8161
8176
|
this.floatLabel = 'auto';
|
|
@@ -8591,14 +8606,14 @@ class AudioProvider extends StartableService {
|
|
|
8591
8606
|
});
|
|
8592
8607
|
}
|
|
8593
8608
|
}
|
|
8594
|
-
AudioProvider.ɵprov =
|
|
8609
|
+
AudioProvider.ɵprov = i0.ɵɵdefineInjectable({ factory: function AudioProvider_Factory() { return new AudioProvider(i0.ɵɵinject(i1$4.Platform), i0.ɵɵinject(i2.NativeAudio, 8), i0.ɵɵinject(i3.Vibration, 8), i0.ɵɵinject(i4.AudioManagement, 8)); }, token: AudioProvider, providedIn: "root" });
|
|
8595
8610
|
AudioProvider.decorators = [
|
|
8596
8611
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
8597
8612
|
];
|
|
8598
8613
|
AudioProvider.ctorParameters = () => [
|
|
8599
8614
|
{ type: Platform },
|
|
8600
|
-
{ type: NativeAudio
|
|
8601
|
-
{ type: Vibration
|
|
8615
|
+
{ type: NativeAudio, decorators: [{ type: Optional }] },
|
|
8616
|
+
{ type: Vibration, decorators: [{ type: Optional }] },
|
|
8602
8617
|
{ type: AudioManagement, decorators: [{ type: Optional }] }
|
|
8603
8618
|
];
|
|
8604
8619
|
|
|
@@ -8680,7 +8695,7 @@ class Hotkeys {
|
|
|
8680
8695
|
});
|
|
8681
8696
|
}
|
|
8682
8697
|
}
|
|
8683
|
-
Hotkeys.ɵprov =
|
|
8698
|
+
Hotkeys.ɵprov = i0.ɵɵdefineInjectable({ factory: function Hotkeys_Factory() { return new Hotkeys(i0.ɵɵinject(i1$5.EventManager), i0.ɵɵinject(i2$1.MatDialog), i0.ɵɵinject(i1$3.DOCUMENT), i0.ɵɵinject(i1$4.ModalController)); }, token: Hotkeys, providedIn: "root" });
|
|
8684
8699
|
Hotkeys.decorators = [
|
|
8685
8700
|
{ type: Injectable, args: [{
|
|
8686
8701
|
providedIn: 'root'
|
|
@@ -8854,7 +8869,7 @@ class Base64ImageReader {
|
|
|
8854
8869
|
}
|
|
8855
8870
|
}
|
|
8856
8871
|
|
|
8857
|
-
const uuidv4 = uuidv4Imported;
|
|
8872
|
+
const uuidv4$1 = uuidv4Imported;
|
|
8858
8873
|
class FileService {
|
|
8859
8874
|
constructor(platform,
|
|
8860
8875
|
//private transfer: FileTransfer,
|
|
@@ -8891,7 +8906,7 @@ class FileService {
|
|
|
8891
8906
|
const lastSlashIndex = source.lastIndexOf('/');
|
|
8892
8907
|
if (lastSlashIndex === -1)
|
|
8893
8908
|
throw new Error('Invalid URL: ' + source);
|
|
8894
|
-
const fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
|
|
8909
|
+
const fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4$1();
|
|
8895
8910
|
// Download into the file system
|
|
8896
8911
|
if (responseType === 'file' && this.canUseFileSystem) {
|
|
8897
8912
|
console.warn(`WARN: [file] Fetching image {${source}} in local file...`);
|
|
@@ -8947,7 +8962,7 @@ class FileService {
|
|
|
8947
8962
|
this._started = true;
|
|
8948
8963
|
}
|
|
8949
8964
|
}
|
|
8950
|
-
FileService.ɵprov =
|
|
8965
|
+
FileService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(i0.ɵɵinject(i1$4.Platform), i0.ɵɵinject(i2$2.HttpClient), i0.ɵɵinject(ENVIRONMENT)); }, token: FileService, providedIn: "root" });
|
|
8951
8966
|
FileService.decorators = [
|
|
8952
8967
|
{ type: Injectable, args: [{
|
|
8953
8968
|
providedIn: 'root',
|
|
@@ -9113,7 +9128,7 @@ class Base58 {
|
|
|
9113
9128
|
Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
9114
9129
|
|
|
9115
9130
|
const scrypt = require('scrypt-async');
|
|
9116
|
-
const sha256 = require('hash.js/lib/hash/sha/256');
|
|
9131
|
+
const sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
9117
9132
|
const sha512 = require('hash.js/lib/hash/sha/512');
|
|
9118
9133
|
const nacl = {
|
|
9119
9134
|
sign,
|
|
@@ -9217,7 +9232,7 @@ class CryptoService {
|
|
|
9217
9232
|
* Hash (using SHA256) a message
|
|
9218
9233
|
*/
|
|
9219
9234
|
sha256(message) {
|
|
9220
|
-
return sha256().update(message).digest('hex');
|
|
9235
|
+
return sha256$1().update(message).digest('hex');
|
|
9221
9236
|
}
|
|
9222
9237
|
/**
|
|
9223
9238
|
* Hash (using SHA512) a message
|
|
@@ -9230,7 +9245,7 @@ class CryptoService {
|
|
|
9230
9245
|
return nacl.util.encodeBase64(m);
|
|
9231
9246
|
}
|
|
9232
9247
|
}
|
|
9233
|
-
CryptoService.ɵprov =
|
|
9248
|
+
CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
|
|
9234
9249
|
CryptoService.decorators = [
|
|
9235
9250
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
9236
9251
|
];
|
|
@@ -10477,7 +10492,7 @@ class LocalSettingsService extends StartableService {
|
|
|
10477
10492
|
return page;
|
|
10478
10493
|
}
|
|
10479
10494
|
}
|
|
10480
|
-
LocalSettingsService.ɵprov =
|
|
10495
|
+
LocalSettingsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsService_Factory() { return new LocalSettingsService(i0.ɵɵinject(i1$1.TranslateService), i0.ɵɵinject(i1$4.Platform), i0.ɵɵinject(i3$1.Storage), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_LOCAL_SETTINGS, 8), i0.ɵɵinject(APP_LOCAL_SETTINGS_OPTIONS, 8)); }, token: LocalSettingsService, providedIn: "root" });
|
|
10481
10496
|
LocalSettingsService.decorators = [
|
|
10482
10497
|
{ type: Injectable, args: [{
|
|
10483
10498
|
providedIn: 'root',
|
|
@@ -11135,7 +11150,7 @@ class NetworkService extends StartableService {
|
|
|
11135
11150
|
});
|
|
11136
11151
|
}
|
|
11137
11152
|
}
|
|
11138
|
-
NetworkService.ɵprov =
|
|
11153
|
+
NetworkService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NetworkService_Factory() { return new NetworkService(i0.ɵɵinject(i1$3.DOCUMENT), i0.ɵɵinject(i1$4.Platform), i0.ɵɵinject(i1$4.ModalController), i0.ɵɵinject(CryptoService), i0.ɵɵinject(i3$1.Storage), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(i6.CacheService), i0.ɵɵinject(i2$2.HttpClient), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(i9.Network, 8), i0.ɵɵinject(i10.SplashScreen, 8), i0.ɵɵinject(i1$1.TranslateService, 8), i0.ɵɵinject(i1$4.ToastController, 8)); }, token: NetworkService, providedIn: "root" });
|
|
11139
11154
|
NetworkService.decorators = [
|
|
11140
11155
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
11141
11156
|
];
|
|
@@ -11146,16 +11161,16 @@ NetworkService.ctorParameters = () => [
|
|
|
11146
11161
|
{ type: CryptoService },
|
|
11147
11162
|
{ type: Storage },
|
|
11148
11163
|
{ type: LocalSettingsService },
|
|
11149
|
-
{ type: CacheService
|
|
11164
|
+
{ type: CacheService },
|
|
11150
11165
|
{ type: HttpClient },
|
|
11151
11166
|
{ type: undefined, decorators: [{ type: Inject, args: [ENVIRONMENT,] }] },
|
|
11152
|
-
{ type: Network
|
|
11153
|
-
{ type: SplashScreen
|
|
11167
|
+
{ type: Network, decorators: [{ type: Optional }] },
|
|
11168
|
+
{ type: SplashScreen, decorators: [{ type: Optional }] },
|
|
11154
11169
|
{ type: TranslateService, decorators: [{ type: Optional }] },
|
|
11155
11170
|
{ type: ToastController, decorators: [{ type: Optional }] }
|
|
11156
11171
|
];
|
|
11157
11172
|
|
|
11158
|
-
const ErrorCodes = {
|
|
11173
|
+
const ErrorCodes$2 = {
|
|
11159
11174
|
UNKNOWN_ERROR: 0,
|
|
11160
11175
|
LOAD_ACCOUNT_ERROR: 1,
|
|
11161
11176
|
BAD_PASSWORD: 2,
|
|
@@ -11507,7 +11522,7 @@ class EntityStore {
|
|
|
11507
11522
|
}
|
|
11508
11523
|
catch (err) {
|
|
11509
11524
|
console.error(err);
|
|
11510
|
-
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err };
|
|
11525
|
+
throw { code: ErrorCodes$2.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err };
|
|
11511
11526
|
}
|
|
11512
11527
|
}
|
|
11513
11528
|
// Emit update event
|
|
@@ -12081,7 +12096,7 @@ class EntitiesStorage extends StartableService {
|
|
|
12081
12096
|
}
|
|
12082
12097
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
12083
12098
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
12084
|
-
EntitiesStorage.ɵprov =
|
|
12099
|
+
EntitiesStorage.ɵprov = i0.ɵɵdefineInjectable({ factory: function EntitiesStorage_Factory() { return new EntitiesStorage(i0.ɵɵinject(i1$4.Platform), i0.ɵɵinject(ProgressBarService), i0.ɵɵinject(i3$1.Storage), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_LOCAL_STORAGE_TYPE_POLICIES, 8)); }, token: EntitiesStorage, providedIn: "root" });
|
|
12085
12100
|
EntitiesStorage.decorators = [
|
|
12086
12101
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
12087
12102
|
];
|
|
@@ -12218,10 +12233,10 @@ function referentialToString(obj, properties) {
|
|
|
12218
12233
|
function referentialsToString(values, properties, separator) {
|
|
12219
12234
|
return (values || []).map(v => referentialToString(v, properties)).join(separator || ', ');
|
|
12220
12235
|
}
|
|
12221
|
-
const ɵ0$
|
|
12236
|
+
const ɵ0$2 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
12222
12237
|
const StatusList = Object.freeze([
|
|
12223
12238
|
{
|
|
12224
|
-
id: ɵ0$
|
|
12239
|
+
id: ɵ0$2,
|
|
12225
12240
|
icon: 'checkmark',
|
|
12226
12241
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
12227
12242
|
},
|
|
@@ -12496,7 +12511,7 @@ function accountToString(data) {
|
|
|
12496
12511
|
(data.lastName || '')) || '';
|
|
12497
12512
|
}
|
|
12498
12513
|
|
|
12499
|
-
const uuidv4
|
|
12514
|
+
const uuidv4 = uuidv4Imported;
|
|
12500
12515
|
const _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
12501
12516
|
const NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
12502
12517
|
/**
|
|
@@ -12540,7 +12555,7 @@ function createTrackerLink(opts) {
|
|
|
12540
12555
|
// Skip if not tracked
|
|
12541
12556
|
if (!context || !context.tracked)
|
|
12542
12557
|
return forward(operation);
|
|
12543
|
-
const id = context.serializationKey || uuidv4
|
|
12558
|
+
const id = context.serializationKey || uuidv4();
|
|
12544
12559
|
console.debug(`[apollo-tracker-link] Watching tracked query {${operation.operationName}#${id}}`);
|
|
12545
12560
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
12546
12561
|
const cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -13203,7 +13218,7 @@ class GraphqlService extends StartableService {
|
|
|
13203
13218
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
13204
13219
|
|| this.toAppError(err.networkError)
|
|
13205
13220
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
13206
|
-
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
13221
|
+
|| this.createAppErrorByCode(ErrorCodes$2.UNKNOWN_NETWORK_ERROR)))
|
|
13207
13222
|
// If graphQL: try to convert the first error found
|
|
13208
13223
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
13209
13224
|
|| this.toAppError(err)
|
|
@@ -13211,7 +13226,7 @@ class GraphqlService extends StartableService {
|
|
|
13211
13226
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
13212
13227
|
|| err;
|
|
13213
13228
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
13214
|
-
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
13229
|
+
if (error && error.code === ErrorCodes$2.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
13215
13230
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
13216
13231
|
this.onNetworkError.next(error);
|
|
13217
13232
|
}
|
|
@@ -13247,7 +13262,7 @@ class GraphqlService extends StartableService {
|
|
|
13247
13262
|
return 'ERROR.UNAUTHORIZED';
|
|
13248
13263
|
case ServerErrorCodes.FORBIDDEN:
|
|
13249
13264
|
return 'ERROR.FORBIDDEN';
|
|
13250
|
-
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
13265
|
+
case ErrorCodes$2.UNKNOWN_NETWORK_ERROR:
|
|
13251
13266
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
13252
13267
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
13253
13268
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -13278,7 +13293,7 @@ class GraphqlService extends StartableService {
|
|
|
13278
13293
|
return undefined;
|
|
13279
13294
|
}
|
|
13280
13295
|
}
|
|
13281
|
-
GraphqlService.ɵprov =
|
|
13296
|
+
GraphqlService.ɵprov = i0.ɵɵdefineInjectable({ factory: function GraphqlService_Factory() { return new GraphqlService(i0.ɵɵinject(i1$4.Platform), i0.ɵɵinject(i2$3.Apollo), i0.ɵɵinject(i3$2.HttpLink), i0.ɵɵinject(NetworkService), i0.ɵɵinject(i3$1.Storage), i0.ɵɵinject(CryptoService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_GRAPHQL_TYPE_POLICIES, 8)); }, token: GraphqlService, providedIn: "root" });
|
|
13282
13297
|
GraphqlService.decorators = [
|
|
13283
13298
|
{ type: Injectable, args: [{
|
|
13284
13299
|
providedIn: 'root'
|
|
@@ -13295,7 +13310,7 @@ GraphqlService.ctorParameters = () => [
|
|
|
13295
13310
|
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
13296
13311
|
];
|
|
13297
13312
|
|
|
13298
|
-
const sha256
|
|
13313
|
+
const sha256 = require('hash.js/lib/hash/sha/256');
|
|
13299
13314
|
class BaseGraphqlServiceOptions {
|
|
13300
13315
|
}
|
|
13301
13316
|
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
|
@@ -13446,8 +13461,8 @@ class BaseGraphqlService extends StartableService {
|
|
|
13446
13461
|
}
|
|
13447
13462
|
/* -- protected methods -- */
|
|
13448
13463
|
computeMutableWatchQueryId(opts) {
|
|
13449
|
-
const queryName = opts.queryName || sha256
|
|
13450
|
-
const variablesKey = opts.variables && sha256
|
|
13464
|
+
const queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
13465
|
+
const variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
13451
13466
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
13452
13467
|
}
|
|
13453
13468
|
findMutableWatchQueries(opts) {
|
|
@@ -13513,7 +13528,7 @@ const DEFAULT_AVATAR_IMAGE = 'assets/img/person.png';
|
|
|
13513
13528
|
/* ------------------------------------
|
|
13514
13529
|
* GraphQL queries
|
|
13515
13530
|
* ------------------------------------*/
|
|
13516
|
-
const Fragments = {
|
|
13531
|
+
const Fragments$1 = {
|
|
13517
13532
|
account: gql `
|
|
13518
13533
|
fragment AccountFragment on AccountVO {
|
|
13519
13534
|
id
|
|
@@ -13548,14 +13563,14 @@ const Fragments = {
|
|
|
13548
13563
|
}`
|
|
13549
13564
|
};
|
|
13550
13565
|
// Load account query
|
|
13551
|
-
const LoadQuery = gql `
|
|
13566
|
+
const LoadQuery$1 = gql `
|
|
13552
13567
|
query Account {
|
|
13553
13568
|
data: account {
|
|
13554
13569
|
...AccountFragment
|
|
13555
13570
|
}
|
|
13556
13571
|
}
|
|
13557
|
-
${Fragments.account}
|
|
13558
|
-
${Fragments.settings}
|
|
13572
|
+
${Fragments$1.account}
|
|
13573
|
+
${Fragments$1.settings}
|
|
13559
13574
|
`;
|
|
13560
13575
|
// Check email query
|
|
13561
13576
|
const IsEmailExistsQuery = gql `
|
|
@@ -13570,21 +13585,21 @@ const AccountMutations = {
|
|
|
13570
13585
|
...AccountFragment
|
|
13571
13586
|
}
|
|
13572
13587
|
}
|
|
13573
|
-
${Fragments.account}
|
|
13574
|
-
${Fragments.settings}`,
|
|
13588
|
+
${Fragments$1.account}
|
|
13589
|
+
${Fragments$1.settings}`,
|
|
13575
13590
|
create: gql `mutation CreateAccount($data:AccountVOInput){
|
|
13576
13591
|
data: createAccount(account: $data){
|
|
13577
13592
|
...AccountFragment
|
|
13578
13593
|
}
|
|
13579
13594
|
}
|
|
13580
|
-
${Fragments.account}
|
|
13581
|
-
${Fragments.settings}`,
|
|
13595
|
+
${Fragments$1.account}
|
|
13596
|
+
${Fragments$1.settings}`,
|
|
13582
13597
|
saveSettings: gql `mutation SaveSettings($data:UserSettingsVOInput){
|
|
13583
13598
|
data: saveSettings(settings: $data){
|
|
13584
13599
|
...UserSettingsFragment
|
|
13585
13600
|
}
|
|
13586
13601
|
}
|
|
13587
|
-
${Fragments.settings}`
|
|
13602
|
+
${Fragments$1.settings}`
|
|
13588
13603
|
};
|
|
13589
13604
|
// Sent confirmation email
|
|
13590
13605
|
const SendConfirmEmailMutation = gql `
|
|
@@ -13901,7 +13916,7 @@ class AccountService extends BaseGraphqlService {
|
|
|
13901
13916
|
catch (error) {
|
|
13902
13917
|
console.error(error);
|
|
13903
13918
|
this.resetData();
|
|
13904
|
-
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
13919
|
+
throw { code: ErrorCodes$2.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
13905
13920
|
}
|
|
13906
13921
|
// Store pubkey+keypair
|
|
13907
13922
|
this._cache.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -13935,7 +13950,7 @@ class AccountService extends BaseGraphqlService {
|
|
|
13935
13950
|
}
|
|
13936
13951
|
catch (err) {
|
|
13937
13952
|
// If account not found, check if email is valid
|
|
13938
|
-
if (err && +(err.code) === ErrorCodes.LOAD_ACCOUNT_ERROR) {
|
|
13953
|
+
if (err && +(err.code) === ErrorCodes$2.LOAD_ACCOUNT_ERROR) {
|
|
13939
13954
|
// Check email exists
|
|
13940
13955
|
if (data.username.indexOf('@') !== -1) {
|
|
13941
13956
|
let isEmailExists;
|
|
@@ -13947,11 +13962,11 @@ class AccountService extends BaseGraphqlService {
|
|
|
13947
13962
|
}
|
|
13948
13963
|
// Email not exists (no account)
|
|
13949
13964
|
if (!isEmailExists) {
|
|
13950
|
-
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
13965
|
+
throw { code: ErrorCodes$2.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
13951
13966
|
}
|
|
13952
13967
|
}
|
|
13953
13968
|
// Email exists, so error = 'bad password'
|
|
13954
|
-
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
13969
|
+
throw { code: ErrorCodes$2.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
13955
13970
|
}
|
|
13956
13971
|
throw err; // resend the first error
|
|
13957
13972
|
}
|
|
@@ -14097,8 +14112,8 @@ class AccountService extends BaseGraphqlService {
|
|
|
14097
14112
|
// Load remotely
|
|
14098
14113
|
else {
|
|
14099
14114
|
const { data } = yield this.graphql.query({
|
|
14100
|
-
query: LoadQuery,
|
|
14101
|
-
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
14115
|
+
query: LoadQuery$1,
|
|
14116
|
+
error: { code: ErrorCodes$2.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
14102
14117
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
14103
14118
|
});
|
|
14104
14119
|
json = data;
|
|
@@ -14125,7 +14140,7 @@ class AccountService extends BaseGraphqlService {
|
|
|
14125
14140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14126
14141
|
const isEmailExists = yield this.isEmailExists(email);
|
|
14127
14142
|
if (isEmailExists) {
|
|
14128
|
-
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
14143
|
+
throw { code: ErrorCodes$2.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
14129
14144
|
}
|
|
14130
14145
|
});
|
|
14131
14146
|
}
|
|
@@ -14161,7 +14176,7 @@ class AccountService extends BaseGraphqlService {
|
|
|
14161
14176
|
locale
|
|
14162
14177
|
},
|
|
14163
14178
|
error: {
|
|
14164
|
-
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
14179
|
+
code: ErrorCodes$2.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
14165
14180
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
14166
14181
|
}
|
|
14167
14182
|
});
|
|
@@ -14177,7 +14192,7 @@ class AccountService extends BaseGraphqlService {
|
|
|
14177
14192
|
code
|
|
14178
14193
|
},
|
|
14179
14194
|
error: {
|
|
14180
|
-
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
14195
|
+
code: ErrorCodes$2.CONFIRM_EMAIL_FAILED,
|
|
14181
14196
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
14182
14197
|
}
|
|
14183
14198
|
});
|
|
@@ -14256,7 +14271,7 @@ class AccountService extends BaseGraphqlService {
|
|
|
14256
14271
|
throw error;
|
|
14257
14272
|
console.error(error);
|
|
14258
14273
|
throw {
|
|
14259
|
-
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
14274
|
+
code: ErrorCodes$2.LOAD_ACCOUNT_ERROR,
|
|
14260
14275
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
14261
14276
|
};
|
|
14262
14277
|
}
|
|
@@ -14426,7 +14441,7 @@ class AccountService extends BaseGraphqlService {
|
|
|
14426
14441
|
if (!isNew) {
|
|
14427
14442
|
const existingAccount = yield this.load({ fetchPolicy: 'network-only' });
|
|
14428
14443
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
14429
|
-
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
14444
|
+
throw { code: ErrorCodes$2.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
14430
14445
|
}
|
|
14431
14446
|
this.copyIdAndUpdateDate(existingAccount, account);
|
|
14432
14447
|
}
|
|
@@ -14438,7 +14453,7 @@ class AccountService extends BaseGraphqlService {
|
|
|
14438
14453
|
mutation: isNew ? AccountMutations.create : AccountMutations.save,
|
|
14439
14454
|
variables: { data: json },
|
|
14440
14455
|
error: {
|
|
14441
|
-
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
14456
|
+
code: ErrorCodes$2.SAVE_ACCOUNT_ERROR,
|
|
14442
14457
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
14443
14458
|
}
|
|
14444
14459
|
});
|
|
@@ -14465,7 +14480,7 @@ class AccountService extends BaseGraphqlService {
|
|
|
14465
14480
|
mutation: AccountMutations.saveSettings,
|
|
14466
14481
|
variables: { data: json },
|
|
14467
14482
|
error: {
|
|
14468
|
-
code: ErrorCodes.SAVE_SETTINGS_ERROR,
|
|
14483
|
+
code: ErrorCodes$2.SAVE_SETTINGS_ERROR,
|
|
14469
14484
|
message: 'ERROR.SAVE_SETTINGS_ERROR'
|
|
14470
14485
|
}
|
|
14471
14486
|
});
|
|
@@ -14487,7 +14502,7 @@ class AccountService extends BaseGraphqlService {
|
|
|
14487
14502
|
if (counter > 4) {
|
|
14488
14503
|
if (this._debug)
|
|
14489
14504
|
console.debug(`[account] Failed to authentication on pod (after ${counter} attempts)`);
|
|
14490
|
-
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
14505
|
+
throw { code: ErrorCodes$2.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
14491
14506
|
}
|
|
14492
14507
|
// Check if valid
|
|
14493
14508
|
if (token) {
|
|
@@ -14497,7 +14512,7 @@ class AccountService extends BaseGraphqlService {
|
|
|
14497
14512
|
token
|
|
14498
14513
|
},
|
|
14499
14514
|
error: {
|
|
14500
|
-
code: ErrorCodes.UNAUTHORIZED,
|
|
14515
|
+
code: ErrorCodes$2.UNAUTHORIZED,
|
|
14501
14516
|
message: 'ERROR.UNAUTHORIZED'
|
|
14502
14517
|
},
|
|
14503
14518
|
fetchPolicy: 'no-cache'
|
|
@@ -14513,7 +14528,7 @@ class AccountService extends BaseGraphqlService {
|
|
|
14513
14528
|
}
|
|
14514
14529
|
// Generate a new token
|
|
14515
14530
|
const challengeError = {
|
|
14516
|
-
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
14531
|
+
code: ErrorCodes$2.AUTH_CHALLENGE_ERROR,
|
|
14517
14532
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
14518
14533
|
};
|
|
14519
14534
|
const data = yield this.graphql.query({
|
|
@@ -14591,7 +14606,7 @@ class AccountService extends BaseGraphqlService {
|
|
|
14591
14606
|
query: AccountSubscriptions.listenChanges,
|
|
14592
14607
|
variables,
|
|
14593
14608
|
error: {
|
|
14594
|
-
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
14609
|
+
code: ErrorCodes$2.SUBSCRIBE_ACCOUNT_ERROR,
|
|
14595
14610
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ERROR'
|
|
14596
14611
|
}
|
|
14597
14612
|
}).pipe(map(({ data }) => data),
|
|
@@ -14620,7 +14635,7 @@ class AccountService extends BaseGraphqlService {
|
|
|
14620
14635
|
return Toasts.show(this.toastController, this.translate, opts);
|
|
14621
14636
|
}
|
|
14622
14637
|
}
|
|
14623
|
-
AccountService.ɵprov =
|
|
14638
|
+
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$1.Storage), i0.ɵɵinject(FileService), i0.ɵɵinject(i1$1.TranslateService, 8), i0.ɵɵinject(i1$4.ToastController, 8), i0.ɵɵinject(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
|
|
14624
14639
|
AccountService.decorators = [
|
|
14625
14640
|
{ type: Injectable, args: [{ providedIn: 'root', deps: [ENVIRONMENT] },] }
|
|
14626
14641
|
];
|
|
@@ -14882,7 +14897,7 @@ const CONFIGURATION_STORAGE_KEY = 'configuration';
|
|
|
14882
14897
|
/* ------------------------------------
|
|
14883
14898
|
* GraphQL queries
|
|
14884
14899
|
* ------------------------------------*/
|
|
14885
|
-
const Fragments
|
|
14900
|
+
const Fragments = {
|
|
14886
14901
|
config: gql `
|
|
14887
14902
|
fragment ConfigFragment on ConfigurationVO {
|
|
14888
14903
|
id
|
|
@@ -14909,13 +14924,13 @@ const Fragments$1 = {
|
|
|
14909
14924
|
}
|
|
14910
14925
|
`
|
|
14911
14926
|
};
|
|
14912
|
-
const LoadQuery
|
|
14927
|
+
const LoadQuery = gql `
|
|
14913
14928
|
query Configuration{
|
|
14914
14929
|
data: configuration{
|
|
14915
14930
|
...ConfigFragment
|
|
14916
14931
|
}
|
|
14917
14932
|
}
|
|
14918
|
-
${Fragments
|
|
14933
|
+
${Fragments.config}
|
|
14919
14934
|
`;
|
|
14920
14935
|
// Save (create or update) account mutation
|
|
14921
14936
|
const SaveMutation = gql `
|
|
@@ -14924,7 +14939,7 @@ const SaveMutation = gql `
|
|
|
14924
14939
|
...ConfigFragment
|
|
14925
14940
|
}
|
|
14926
14941
|
}
|
|
14927
|
-
${Fragments
|
|
14942
|
+
${Fragments.config}
|
|
14928
14943
|
`;
|
|
14929
14944
|
const ClearCache = gql `
|
|
14930
14945
|
query ClearCache($name: String) {
|
|
@@ -14975,12 +14990,12 @@ class ConfigService extends BaseGraphqlService {
|
|
|
14975
14990
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14976
14991
|
const now = Date.now();
|
|
14977
14992
|
console.debug('[config] Loading Pod configuration...');
|
|
14978
|
-
const query = opts && opts.query || LoadQuery
|
|
14993
|
+
const query = opts && opts.query || LoadQuery;
|
|
14979
14994
|
const variables = opts && opts.variables || undefined;
|
|
14980
14995
|
const res = yield this.graphql.query({
|
|
14981
14996
|
query,
|
|
14982
14997
|
variables,
|
|
14983
|
-
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
14998
|
+
error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
14984
14999
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
14985
15000
|
});
|
|
14986
15001
|
const data = res && res.data ? Configuration.fromObject(res.data) : undefined;
|
|
@@ -15013,7 +15028,7 @@ class ConfigService extends BaseGraphqlService {
|
|
|
15013
15028
|
data: json
|
|
15014
15029
|
},
|
|
15015
15030
|
error: {
|
|
15016
|
-
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
15031
|
+
code: ErrorCodes$2.SAVE_CONFIG_ERROR,
|
|
15017
15032
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
15018
15033
|
}
|
|
15019
15034
|
});
|
|
@@ -15039,7 +15054,7 @@ class ConfigService extends BaseGraphqlService {
|
|
|
15039
15054
|
const res = yield this.graphql.query({
|
|
15040
15055
|
query: CacheStatistics,
|
|
15041
15056
|
variables: null,
|
|
15042
|
-
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15057
|
+
error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15043
15058
|
fetchPolicy: 'network-only'
|
|
15044
15059
|
});
|
|
15045
15060
|
const data = res && res.cacheStatistics || undefined;
|
|
@@ -15055,7 +15070,7 @@ class ConfigService extends BaseGraphqlService {
|
|
|
15055
15070
|
const res = yield this.graphql.query({
|
|
15056
15071
|
query: ClearCache,
|
|
15057
15072
|
variables,
|
|
15058
|
-
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15073
|
+
error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
15059
15074
|
fetchPolicy: 'network-only'
|
|
15060
15075
|
});
|
|
15061
15076
|
const data = res && res.clearCache || undefined;
|
|
@@ -15214,7 +15229,7 @@ class ConfigService extends BaseGraphqlService {
|
|
|
15214
15229
|
});
|
|
15215
15230
|
}
|
|
15216
15231
|
}
|
|
15217
|
-
ConfigService.ɵprov =
|
|
15232
|
+
ConfigService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConfigService_Factory() { return new ConfigService(i0.ɵɵinject(i1$4.Platform), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(i3$1.Storage), i0.ɵɵinject(NetworkService), i0.ɵɵinject(FileService), i0.ɵɵinject(i1$4.ToastController), i0.ɵɵinject(i1$1.TranslateService), i0.ɵɵinject(AccountService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
|
|
15218
15233
|
ConfigService.decorators = [
|
|
15219
15234
|
{ type: Injectable, args: [{
|
|
15220
15235
|
providedIn: 'root',
|
|
@@ -15234,7 +15249,7 @@ ConfigService.ctorParameters = () => [
|
|
|
15234
15249
|
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
15235
15250
|
];
|
|
15236
15251
|
|
|
15237
|
-
const moment$
|
|
15252
|
+
const moment$2 = momentImported;
|
|
15238
15253
|
class PlatformService extends StartableService {
|
|
15239
15254
|
constructor(platform, cdkPlatform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser, downloader) {
|
|
15240
15255
|
super(platform);
|
|
@@ -15441,16 +15456,16 @@ class PlatformService extends StartableService {
|
|
|
15441
15456
|
}
|
|
15442
15457
|
// config moment lib
|
|
15443
15458
|
try {
|
|
15444
|
-
moment$
|
|
15459
|
+
moment$2.locale(event.lang);
|
|
15445
15460
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
15446
15461
|
}
|
|
15447
15462
|
// If error, fallback to en
|
|
15448
15463
|
catch (err) {
|
|
15449
|
-
moment$
|
|
15464
|
+
moment$2.locale('en');
|
|
15450
15465
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
15451
15466
|
}
|
|
15452
15467
|
// Config date adapter
|
|
15453
|
-
this.dateAdapter.setLocale(moment$
|
|
15468
|
+
this.dateAdapter.setLocale(moment$2.locale());
|
|
15454
15469
|
}
|
|
15455
15470
|
});
|
|
15456
15471
|
this.settings.onChange.subscribe(data => {
|
|
@@ -15583,7 +15598,7 @@ class PlatformService extends StartableService {
|
|
|
15583
15598
|
});
|
|
15584
15599
|
}
|
|
15585
15600
|
}
|
|
15586
|
-
PlatformService.ɵprov =
|
|
15601
|
+
PlatformService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PlatformService_Factory() { return new PlatformService(i0.ɵɵinject(i1$4.Platform), i0.ɵɵinject(i2$4.Platform), i0.ɵɵinject(i1$4.ToastController), i0.ɵɵinject(i1$1.TranslateService), i0.ɵɵinject(i1.MomentDateAdapter), i0.ɵɵinject(EntitiesStorage), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(AccountService), i0.ɵɵinject(ConfigService), i0.ɵɵinject(i6.CacheService), i0.ɵɵinject(i3$1.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), i0.ɵɵinject(i18.Downloader, 8)); }, token: PlatformService, providedIn: "root" });
|
|
15587
15602
|
PlatformService.decorators = [
|
|
15588
15603
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
15589
15604
|
];
|
|
@@ -15598,15 +15613,15 @@ PlatformService.ctorParameters = () => [
|
|
|
15598
15613
|
{ type: NetworkService },
|
|
15599
15614
|
{ type: AccountService },
|
|
15600
15615
|
{ type: ConfigService },
|
|
15601
|
-
{ type: CacheService
|
|
15616
|
+
{ type: CacheService },
|
|
15602
15617
|
{ type: Storage },
|
|
15603
15618
|
{ type: AudioProvider },
|
|
15604
15619
|
{ type: undefined, decorators: [{ type: Inject, args: [ENVIRONMENT,] }] },
|
|
15605
|
-
{ type: StatusBar
|
|
15620
|
+
{ type: StatusBar, decorators: [{ type: Optional }] },
|
|
15606
15621
|
{ type: Keyboard, decorators: [{ type: Optional }] },
|
|
15607
|
-
{ type: SplashScreen
|
|
15608
|
-
{ type: InAppBrowser
|
|
15609
|
-
{ type: Downloader
|
|
15622
|
+
{ type: SplashScreen, decorators: [{ type: Optional }] },
|
|
15623
|
+
{ type: InAppBrowser, decorators: [{ type: Optional }] },
|
|
15624
|
+
{ type: Downloader, decorators: [{ type: Optional }] }
|
|
15610
15625
|
];
|
|
15611
15626
|
|
|
15612
15627
|
class AppHelpModal {
|
|
@@ -15670,7 +15685,7 @@ class MatStepperI18n extends MatStepperIntl {
|
|
|
15670
15685
|
this.optionalLabel = this.translate.instant('COMMON.OPTIONAL');
|
|
15671
15686
|
}
|
|
15672
15687
|
}
|
|
15673
|
-
MatStepperI18n.ɵprov =
|
|
15688
|
+
MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$1.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
15674
15689
|
MatStepperI18n.decorators = [
|
|
15675
15690
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
15676
15691
|
];
|
|
@@ -17481,7 +17496,7 @@ function state2side(state) {
|
|
|
17481
17496
|
return 1;
|
|
17482
17497
|
}
|
|
17483
17498
|
}
|
|
17484
|
-
const ɵ0$
|
|
17499
|
+
const ɵ0$1 = (defaultStateSize) => [
|
|
17485
17500
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
17486
17501
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
17487
17502
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -17489,7 +17504,7 @@ const ɵ0$b = (defaultStateSize) => [
|
|
|
17489
17504
|
const SCALE_OPTIONS_DEFAULT = {
|
|
17490
17505
|
startColor: rgbArrayMap.red,
|
|
17491
17506
|
startStates: [0, 2, 3],
|
|
17492
|
-
startStepsFn: ɵ0$
|
|
17507
|
+
startStepsFn: ɵ0$1
|
|
17493
17508
|
};
|
|
17494
17509
|
/**
|
|
17495
17510
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -18286,7 +18301,7 @@ class UserSettingsValidatorService extends AppValidatorService {
|
|
|
18286
18301
|
});
|
|
18287
18302
|
}
|
|
18288
18303
|
}
|
|
18289
|
-
UserSettingsValidatorService.ɵprov =
|
|
18304
|
+
UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1$6.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
18290
18305
|
UserSettingsValidatorService.decorators = [
|
|
18291
18306
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
18292
18307
|
];
|
|
@@ -18330,7 +18345,7 @@ class AccountValidatorService extends AppValidatorService {
|
|
|
18330
18345
|
return validatorFns.length ? Validators.compose(validatorFns) : validatorFns.length === 1 ? validatorFns[0] : undefined;
|
|
18331
18346
|
}
|
|
18332
18347
|
}
|
|
18333
|
-
AccountValidatorService.ɵprov =
|
|
18348
|
+
AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1$6.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
|
|
18334
18349
|
AccountValidatorService.decorators = [
|
|
18335
18350
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
18336
18351
|
];
|
|
@@ -18895,7 +18910,7 @@ class LocalSettingsValidatorService extends AppValidatorService {
|
|
|
18895
18910
|
});
|
|
18896
18911
|
}
|
|
18897
18912
|
}
|
|
18898
|
-
LocalSettingsValidatorService.ɵprov =
|
|
18913
|
+
LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1$6.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
|
|
18899
18914
|
LocalSettingsValidatorService.decorators = [
|
|
18900
18915
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
18901
18916
|
];
|
|
@@ -19514,7 +19529,7 @@ class IsOnFieldModePipe {
|
|
|
19514
19529
|
return value === 'FIELD';
|
|
19515
19530
|
}
|
|
19516
19531
|
}
|
|
19517
|
-
IsOnFieldModePipe.ɵprov =
|
|
19532
|
+
IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
19518
19533
|
IsOnFieldModePipe.decorators = [
|
|
19519
19534
|
{ type: Pipe, args: [{
|
|
19520
19535
|
name: 'isOnField'
|
|
@@ -19526,7 +19541,7 @@ class IsNotOnFieldModePipe {
|
|
|
19526
19541
|
return value !== 'FIELD';
|
|
19527
19542
|
}
|
|
19528
19543
|
}
|
|
19529
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
19544
|
+
IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
19530
19545
|
IsNotOnFieldModePipe.decorators = [
|
|
19531
19546
|
{ type: Pipe, args: [{
|
|
19532
19547
|
name: 'isNotOnField'
|
|
@@ -19541,7 +19556,7 @@ class PersonToStringPipe {
|
|
|
19541
19556
|
return PersonUtils.personToString(value);
|
|
19542
19557
|
}
|
|
19543
19558
|
}
|
|
19544
|
-
PersonToStringPipe.ɵprov =
|
|
19559
|
+
PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
19545
19560
|
PersonToStringPipe.decorators = [
|
|
19546
19561
|
{ type: Pipe, args: [{
|
|
19547
19562
|
name: 'personToString'
|
|
@@ -19926,7 +19941,7 @@ class IsLoginAccountPipe {
|
|
|
19926
19941
|
return value && value.pubkey && true;
|
|
19927
19942
|
}
|
|
19928
19943
|
}
|
|
19929
|
-
IsLoginAccountPipe.ɵprov =
|
|
19944
|
+
IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
19930
19945
|
IsLoginAccountPipe.decorators = [
|
|
19931
19946
|
{ type: Pipe, args: [{
|
|
19932
19947
|
name: 'isLogin'
|
|
@@ -19938,7 +19953,7 @@ class AccountToStringPipe {
|
|
|
19938
19953
|
return accountToString(value);
|
|
19939
19954
|
}
|
|
19940
19955
|
}
|
|
19941
|
-
AccountToStringPipe.ɵprov =
|
|
19956
|
+
AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
19942
19957
|
AccountToStringPipe.decorators = [
|
|
19943
19958
|
{ type: Pipe, args: [{
|
|
19944
19959
|
name: 'accountToString'
|
|
@@ -19953,7 +19968,7 @@ class DepartmentToStringPipe {
|
|
|
19953
19968
|
return departmentToString(value);
|
|
19954
19969
|
}
|
|
19955
19970
|
}
|
|
19956
|
-
DepartmentToStringPipe.ɵprov =
|
|
19971
|
+
DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
19957
19972
|
DepartmentToStringPipe.decorators = [
|
|
19958
19973
|
{ type: Pipe, args: [{
|
|
19959
19974
|
name: 'departmentToString'
|
|
@@ -20049,7 +20064,7 @@ class MenuService {
|
|
|
20049
20064
|
this._visibleSubject.next(value);
|
|
20050
20065
|
}
|
|
20051
20066
|
}
|
|
20052
|
-
MenuService.ɵprov =
|
|
20067
|
+
MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
20053
20068
|
MenuService.decorators = [
|
|
20054
20069
|
{ type: Injectable, args: [{
|
|
20055
20070
|
providedIn: 'root'
|
|
@@ -20511,7 +20526,7 @@ class AuthGuardService {
|
|
|
20511
20526
|
}));
|
|
20512
20527
|
}
|
|
20513
20528
|
}
|
|
20514
|
-
AuthGuardService.ɵprov =
|
|
20529
|
+
AuthGuardService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AuthGuardService_Factory() { return new AuthGuardService(i0.ɵɵinject(AccountService), i0.ɵɵinject(i1$4.ModalController), i0.ɵɵinject(i3$3.Router), i0.ɵɵinject(ENVIRONMENT)); }, token: AuthGuardService, providedIn: "root" });
|
|
20515
20530
|
AuthGuardService.decorators = [
|
|
20516
20531
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
20517
20532
|
];
|
|
@@ -20553,7 +20568,7 @@ class BaseEntityService extends BaseGraphqlService {
|
|
|
20553
20568
|
query,
|
|
20554
20569
|
variables: { id },
|
|
20555
20570
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
20556
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
20571
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
20557
20572
|
})
|
|
20558
20573
|
.pipe(map(({ data }) => (!opts || opts.toEntity !== false)
|
|
20559
20574
|
? (data && this.fromObject(data))
|
|
@@ -20568,7 +20583,7 @@ class BaseEntityService extends BaseGraphqlService {
|
|
|
20568
20583
|
query,
|
|
20569
20584
|
variables: { id },
|
|
20570
20585
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
20571
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
20586
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
20572
20587
|
});
|
|
20573
20588
|
// Convert to entity
|
|
20574
20589
|
return (!opts || opts.toEntity !== false)
|
|
@@ -20599,7 +20614,7 @@ class BaseEntityService extends BaseGraphqlService {
|
|
|
20599
20614
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
20600
20615
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
20601
20616
|
variables,
|
|
20602
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
20617
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
20603
20618
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
20604
20619
|
})
|
|
20605
20620
|
.pipe(map(({ data, total }) => {
|
|
@@ -20635,7 +20650,7 @@ class BaseEntityService extends BaseGraphqlService {
|
|
|
20635
20650
|
const { data, total } = yield this.graphql.query({
|
|
20636
20651
|
query,
|
|
20637
20652
|
variables,
|
|
20638
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
20653
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
20639
20654
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
20640
20655
|
});
|
|
20641
20656
|
const entities = (!opts || opts.toEntity !== false) ?
|
|
@@ -20674,7 +20689,7 @@ class BaseEntityService extends BaseGraphqlService {
|
|
|
20674
20689
|
variables: {
|
|
20675
20690
|
filter: filter && filter.asPodObject()
|
|
20676
20691
|
},
|
|
20677
|
-
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
20692
|
+
error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
20678
20693
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
20679
20694
|
});
|
|
20680
20695
|
return res.total;
|
|
@@ -20710,7 +20725,7 @@ class BaseEntityService extends BaseGraphqlService {
|
|
|
20710
20725
|
variables: {
|
|
20711
20726
|
data: json
|
|
20712
20727
|
},
|
|
20713
|
-
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
20728
|
+
error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
20714
20729
|
update: (proxy, { data }) => {
|
|
20715
20730
|
const savedEntities = data && data.data;
|
|
20716
20731
|
if (savedEntities) {
|
|
@@ -20766,7 +20781,7 @@ class BaseEntityService extends BaseGraphqlService {
|
|
|
20766
20781
|
variables: {
|
|
20767
20782
|
data: json
|
|
20768
20783
|
},
|
|
20769
|
-
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
20784
|
+
error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
20770
20785
|
update: (cache, { data }) => {
|
|
20771
20786
|
// Update entity
|
|
20772
20787
|
const savedEntity = data && data.data;
|
|
@@ -20814,7 +20829,7 @@ class BaseEntityService extends BaseGraphqlService {
|
|
|
20814
20829
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
20815
20830
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
20816
20831
|
variables: { ids },
|
|
20817
|
-
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
20832
|
+
error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
20818
20833
|
update: (cache, res) => {
|
|
20819
20834
|
// Remove from cache
|
|
20820
20835
|
if (this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -20855,7 +20870,7 @@ class BaseEntityService extends BaseGraphqlService {
|
|
|
20855
20870
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
20856
20871
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
20857
20872
|
variables: { id },
|
|
20858
|
-
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
20873
|
+
error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
20859
20874
|
update: (proxy, res) => {
|
|
20860
20875
|
// Remove from cache
|
|
20861
20876
|
if (this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -20888,7 +20903,7 @@ class BaseEntityService extends BaseGraphqlService {
|
|
|
20888
20903
|
query: opts && opts.query || this.subscriptions.listenChanges,
|
|
20889
20904
|
variables,
|
|
20890
20905
|
error: {
|
|
20891
|
-
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
20906
|
+
code: ErrorCodes$2.SUBSCRIBE_DATA_ERROR,
|
|
20892
20907
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
20893
20908
|
}
|
|
20894
20909
|
})
|
|
@@ -21074,7 +21089,7 @@ class EntitiesTableDataSource extends TableDataSource {
|
|
|
21074
21089
|
if (this._debug)
|
|
21075
21090
|
invalidRows.forEach(row => AppTableUtils.logRowErrors(row, `[table-datasource] ${this._logTypeName} row #${row.id}`));
|
|
21076
21091
|
// Stop with an error
|
|
21077
|
-
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
21092
|
+
throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
21078
21093
|
}
|
|
21079
21094
|
this._editingRowCount = 0;
|
|
21080
21095
|
let data;
|
|
@@ -21939,14 +21954,14 @@ class AppTable {
|
|
|
21939
21954
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21940
21955
|
opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
|
|
21941
21956
|
if (this.readOnly) {
|
|
21942
|
-
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
21957
|
+
throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
21943
21958
|
}
|
|
21944
21959
|
this.resetError();
|
|
21945
21960
|
// Keep edited row id (should be done BEFORE confirmEditCreate() )
|
|
21946
21961
|
this.previouslyEditedRowId = opts.keepEditing ? ((((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined) || ((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.id)) : undefined;
|
|
21947
21962
|
const previouslyEditedData = opts.keepEditing ? (isNotNil(this.previouslyEditedRowId) && ((_c = this.editedRow) === null || _c === void 0 ? void 0 : _c.currentData) || ((_d = this.singleSelectedRow) === null || _d === void 0 ? void 0 : _d.currentData)) : undefined;
|
|
21948
21963
|
if (!this.confirmEditCreate()) {
|
|
21949
|
-
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
21964
|
+
throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
21950
21965
|
}
|
|
21951
21966
|
// Mark as saving
|
|
21952
21967
|
this.markAsSaving();
|
|
@@ -22063,7 +22078,7 @@ class AppTable {
|
|
|
22063
22078
|
var _a;
|
|
22064
22079
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22065
22080
|
if (this.readOnly) {
|
|
22066
|
-
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
22081
|
+
throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
22067
22082
|
}
|
|
22068
22083
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
22069
22084
|
return 0; // SKip
|
|
@@ -23597,7 +23612,7 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
23597
23612
|
try {
|
|
23598
23613
|
const data = yield this.dataService.load(id, opts);
|
|
23599
23614
|
if (!data)
|
|
23600
|
-
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
23615
|
+
throw { code: ErrorCodes$2.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
23601
23616
|
this._usageMode = this.computeUsageMode(data);
|
|
23602
23617
|
yield this.onEntityLoaded(data, opts);
|
|
23603
23618
|
yield this.updateView(data, opts);
|
|
@@ -24535,7 +24550,7 @@ class UserEventService extends BaseGraphqlService {
|
|
|
24535
24550
|
EntityUtils.copyIdAndUpdateDate(source, target);
|
|
24536
24551
|
}
|
|
24537
24552
|
}
|
|
24538
|
-
UserEventService.ɵprov =
|
|
24553
|
+
UserEventService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserEventService_Factory() { return new UserEventService(i0.ɵɵinject(GraphqlService), i0.ɵɵinject(AccountService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(i1$1.TranslateService), i0.ɵɵinject(i1$4.ToastController), i0.ɵɵinject(ENVIRONMENT)); }, token: UserEventService, providedIn: "root" });
|
|
24539
24554
|
UserEventService.decorators = [
|
|
24540
24555
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
24541
24556
|
];
|
|
@@ -24919,7 +24934,7 @@ class PersonService extends BaseEntityService {
|
|
|
24919
24934
|
return target;
|
|
24920
24935
|
}
|
|
24921
24936
|
}
|
|
24922
|
-
PersonService.ɵprov =
|
|
24937
|
+
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" });
|
|
24923
24938
|
PersonService.decorators = [
|
|
24924
24939
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
24925
24940
|
];
|
|
@@ -24950,7 +24965,7 @@ class PersonValidatorService {
|
|
|
24950
24965
|
return this.formBuilder.group(formConfig);
|
|
24951
24966
|
}
|
|
24952
24967
|
}
|
|
24953
|
-
PersonValidatorService.ɵprov =
|
|
24968
|
+
PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1$6.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
|
|
24954
24969
|
PersonValidatorService.decorators = [
|
|
24955
24970
|
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
24956
24971
|
];
|
|
@@ -25144,16 +25159,16 @@ AdminModule.decorators = [
|
|
|
25144
25159
|
];
|
|
25145
25160
|
AdminModule.ctorParameters = () => [];
|
|
25146
25161
|
|
|
25147
|
-
const ɵ0
|
|
25162
|
+
const ɵ0 = {
|
|
25148
25163
|
profile: 'ADMIN'
|
|
25149
25164
|
};
|
|
25150
|
-
const routes = [
|
|
25165
|
+
const routes$5 = [
|
|
25151
25166
|
{
|
|
25152
25167
|
path: 'users',
|
|
25153
25168
|
pathMatch: 'full',
|
|
25154
25169
|
component: UsersPage,
|
|
25155
25170
|
canActivate: [AuthGuardService],
|
|
25156
|
-
data: ɵ0
|
|
25171
|
+
data: ɵ0
|
|
25157
25172
|
}
|
|
25158
25173
|
];
|
|
25159
25174
|
class AdminRoutingModule {
|
|
@@ -25163,33 +25178,33 @@ AdminRoutingModule.decorators = [
|
|
|
25163
25178
|
imports: [
|
|
25164
25179
|
SharedRoutingModule,
|
|
25165
25180
|
AdminModule,
|
|
25166
|
-
RouterModule.forChild(routes)
|
|
25181
|
+
RouterModule.forChild(routes$5)
|
|
25167
25182
|
],
|
|
25168
25183
|
exports: [RouterModule]
|
|
25169
25184
|
},] }
|
|
25170
25185
|
];
|
|
25171
25186
|
|
|
25172
|
-
const ErrorCodes
|
|
25187
|
+
const ErrorCodes = {
|
|
25173
25188
|
LOAD_PERSONS_ERROR: 100,
|
|
25174
25189
|
SAVE_PERSONS_ERROR: 101,
|
|
25175
25190
|
DELETE_PERSONS_ERROR: 102,
|
|
25176
25191
|
};
|
|
25177
25192
|
|
|
25178
|
-
class EntityTestClass {
|
|
25193
|
+
class EntityTestClass$1 {
|
|
25179
25194
|
}
|
|
25180
|
-
const FAKE_ENTITIES = [
|
|
25195
|
+
const FAKE_ENTITIES$1 = [
|
|
25181
25196
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
25182
25197
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
25183
25198
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
25184
25199
|
];
|
|
25185
|
-
function deepCopy(values, size) {
|
|
25200
|
+
function deepCopy$1(values, size) {
|
|
25186
25201
|
if (isNil(size)) {
|
|
25187
|
-
return (values || FAKE_ENTITIES).map(entity => Object.assign({}, entity));
|
|
25202
|
+
return (values || FAKE_ENTITIES$1).map(entity => Object.assign({}, entity));
|
|
25188
25203
|
}
|
|
25189
25204
|
let result = [];
|
|
25190
25205
|
let i = 1;
|
|
25191
25206
|
while (result.length < size) {
|
|
25192
|
-
result = result.concat((values || FAKE_ENTITIES).map(entity => {
|
|
25207
|
+
result = result.concat((values || FAKE_ENTITIES$1).map(entity => {
|
|
25193
25208
|
const name = entity.name + ' #' + i;
|
|
25194
25209
|
return Object.assign(Object.assign({}, entity), { id: i++, name });
|
|
25195
25210
|
}));
|
|
@@ -25199,7 +25214,7 @@ function deepCopy(values, size) {
|
|
|
25199
25214
|
class AutocompleteTestPage {
|
|
25200
25215
|
constructor(formBuilder) {
|
|
25201
25216
|
this.formBuilder = formBuilder;
|
|
25202
|
-
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
25217
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
|
|
25203
25218
|
this._$items = new BehaviorSubject(undefined);
|
|
25204
25219
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
25205
25220
|
this.memoryHide = false;
|
|
@@ -25243,7 +25258,7 @@ class AutocompleteTestPage {
|
|
|
25243
25258
|
});
|
|
25244
25259
|
// From items
|
|
25245
25260
|
this.autocompleteFields.add('entity-items-large', {
|
|
25246
|
-
items: FAKE_ENTITIES.slice(),
|
|
25261
|
+
items: FAKE_ENTITIES$1.slice(),
|
|
25247
25262
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
25248
25263
|
displayWith: this.entityToString
|
|
25249
25264
|
});
|
|
@@ -25253,12 +25268,12 @@ class AutocompleteTestPage {
|
|
|
25253
25268
|
loadData() {
|
|
25254
25269
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25255
25270
|
const data = {
|
|
25256
|
-
entity: deepCopy(FAKE_ENTITIES)[0],
|
|
25271
|
+
entity: deepCopy$1(FAKE_ENTITIES$1)[0],
|
|
25257
25272
|
// This item is NOT in the items list => i should be displayed anyway
|
|
25258
25273
|
missingEntity: {
|
|
25259
25274
|
id: -1, label: '??', name: 'Missing item'
|
|
25260
25275
|
},
|
|
25261
|
-
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
25276
|
+
disableEntity: deepCopy$1(FAKE_ENTITIES$1)[2]
|
|
25262
25277
|
};
|
|
25263
25278
|
this.form.setValue(data);
|
|
25264
25279
|
// Load observables
|
|
@@ -25401,13 +25416,13 @@ LatLongTestPage.ctorParameters = () => [
|
|
|
25401
25416
|
{ type: FormBuilder }
|
|
25402
25417
|
];
|
|
25403
25418
|
|
|
25404
|
-
const moment$
|
|
25419
|
+
const moment$1 = momentImported;
|
|
25405
25420
|
class SwipeTestPage {
|
|
25406
25421
|
constructor(formBuilder, dateFormatPipe) {
|
|
25407
25422
|
this.formBuilder = formBuilder;
|
|
25408
25423
|
this.dateFormatPipe = dateFormatPipe;
|
|
25409
25424
|
this.$dates = new BehaviorSubject(undefined);
|
|
25410
|
-
this._today = moment$
|
|
25425
|
+
this._today = moment$1().startOf('day');
|
|
25411
25426
|
this.form = formBuilder.group({
|
|
25412
25427
|
empty: [null, Validators.required],
|
|
25413
25428
|
date: [null, Validators.compose([Validators.required, SharedValidators.validDate])],
|
|
@@ -25420,7 +25435,7 @@ class SwipeTestPage {
|
|
|
25420
25435
|
ngOnInit() {
|
|
25421
25436
|
const dates = [];
|
|
25422
25437
|
for (let d = 0; d < 7; d++) {
|
|
25423
|
-
dates[d] = moment$
|
|
25438
|
+
dates[d] = moment$1(this._today).add(d - 3, 'day');
|
|
25424
25439
|
}
|
|
25425
25440
|
this.$dates.next(dates);
|
|
25426
25441
|
this.loadData();
|
|
@@ -25461,7 +25476,7 @@ SwipeTestPage.ctorParameters = () => [
|
|
|
25461
25476
|
{ type: DateFormatPipe }
|
|
25462
25477
|
];
|
|
25463
25478
|
|
|
25464
|
-
const moment
|
|
25479
|
+
const moment = momentImported;
|
|
25465
25480
|
class DateTimeTestPage {
|
|
25466
25481
|
constructor(platform, formBuilder, cd) {
|
|
25467
25482
|
this.platform = platform;
|
|
@@ -25493,7 +25508,7 @@ class DateTimeTestPage {
|
|
|
25493
25508
|
// Load the form with data
|
|
25494
25509
|
loadData() {
|
|
25495
25510
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25496
|
-
const now = moment
|
|
25511
|
+
const now = moment();
|
|
25497
25512
|
const data = {
|
|
25498
25513
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
25499
25514
|
enable: toDateISOString(now),
|
|
@@ -25554,9 +25569,9 @@ DateTimeTestPage.ctorParameters = () => [
|
|
|
25554
25569
|
{ type: ChangeDetectorRef }
|
|
25555
25570
|
];
|
|
25556
25571
|
|
|
25557
|
-
class EntityTestClass
|
|
25572
|
+
class EntityTestClass {
|
|
25558
25573
|
}
|
|
25559
|
-
const FAKE_ENTITIES
|
|
25574
|
+
const FAKE_ENTITIES = [
|
|
25560
25575
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
25561
25576
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
25562
25577
|
{ id: 3, label: 'CCC', name: 'Item C' },
|
|
@@ -25565,14 +25580,14 @@ const FAKE_ENTITIES$1 = [
|
|
|
25565
25580
|
{ id: 6, label: 'FFF', name: 'Item F' },
|
|
25566
25581
|
{ id: 7, label: 'GGG', name: 'Item G' }
|
|
25567
25582
|
];
|
|
25568
|
-
function deepCopy
|
|
25583
|
+
function deepCopy(values, size) {
|
|
25569
25584
|
if (isNil(size)) {
|
|
25570
|
-
return (values || FAKE_ENTITIES
|
|
25585
|
+
return (values || FAKE_ENTITIES).map(entity => Object.assign({}, entity));
|
|
25571
25586
|
}
|
|
25572
25587
|
let result = [];
|
|
25573
25588
|
let i = 1;
|
|
25574
25589
|
while (result.length < size) {
|
|
25575
|
-
result = result.concat((values || FAKE_ENTITIES
|
|
25590
|
+
result = result.concat((values || FAKE_ENTITIES).map(entity => {
|
|
25576
25591
|
const name = entity.name + ' #' + i;
|
|
25577
25592
|
return Object.assign(Object.assign({}, entity), { id: i++, name });
|
|
25578
25593
|
}));
|
|
@@ -25582,7 +25597,7 @@ function deepCopy$1(values, size) {
|
|
|
25582
25597
|
class ChipsTestPage {
|
|
25583
25598
|
constructor(formBuilder) {
|
|
25584
25599
|
this.formBuilder = formBuilder;
|
|
25585
|
-
this._items = deepCopy
|
|
25600
|
+
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
25586
25601
|
this._$items = new BehaviorSubject(undefined);
|
|
25587
25602
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
25588
25603
|
this.form = formBuilder.group({
|
|
@@ -25621,7 +25636,7 @@ class ChipsTestPage {
|
|
|
25621
25636
|
// Load the form with data
|
|
25622
25637
|
loadData() {
|
|
25623
25638
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25624
|
-
const items = deepCopy
|
|
25639
|
+
const items = deepCopy(FAKE_ENTITIES);
|
|
25625
25640
|
const data = {
|
|
25626
25641
|
entity: items.slice(0, 1),
|
|
25627
25642
|
entityInitial: items.slice(1, 2),
|
|
@@ -25748,7 +25763,7 @@ const SHARED_MATERIAL_TESTING_PAGES = [
|
|
|
25748
25763
|
{ label: 'Shared directives', divider: true },
|
|
25749
25764
|
{ label: 'Badge icon directive', page: '/testing/shared/badge-icon' }
|
|
25750
25765
|
];
|
|
25751
|
-
const routes$
|
|
25766
|
+
const routes$4 = [
|
|
25752
25767
|
{
|
|
25753
25768
|
path: '',
|
|
25754
25769
|
pathMatch: 'full',
|
|
@@ -25800,7 +25815,7 @@ MaterialTestingModule.decorators = [
|
|
|
25800
25815
|
ReactiveFormsModule,
|
|
25801
25816
|
SharedMaterialModule,
|
|
25802
25817
|
TranslateModule.forChild(),
|
|
25803
|
-
RouterModule.forChild(routes$
|
|
25818
|
+
RouterModule.forChild(routes$4)
|
|
25804
25819
|
],
|
|
25805
25820
|
declarations: [
|
|
25806
25821
|
DateTimeTestPage,
|
|
@@ -25859,7 +25874,7 @@ ToastTestingPage.ctorParameters = () => [
|
|
|
25859
25874
|
{ type: TranslateService }
|
|
25860
25875
|
];
|
|
25861
25876
|
|
|
25862
|
-
const routes$
|
|
25877
|
+
const routes$3 = [
|
|
25863
25878
|
{
|
|
25864
25879
|
path: 'toast',
|
|
25865
25880
|
pathMatch: 'full',
|
|
@@ -25874,7 +25889,7 @@ ToastTestingModule.decorators = [
|
|
|
25874
25889
|
CommonModule,
|
|
25875
25890
|
IonicModule,
|
|
25876
25891
|
TranslateModule.forChild(),
|
|
25877
|
-
RouterModule.forChild(routes$
|
|
25892
|
+
RouterModule.forChild(routes$3)
|
|
25878
25893
|
],
|
|
25879
25894
|
declarations: [
|
|
25880
25895
|
ToastTestingPage
|
|
@@ -25937,7 +25952,7 @@ UploadFileTestingPage.ctorParameters = () => [
|
|
|
25937
25952
|
{ type: PopoverController }
|
|
25938
25953
|
];
|
|
25939
25954
|
|
|
25940
|
-
const routes$
|
|
25955
|
+
const routes$2 = [
|
|
25941
25956
|
{
|
|
25942
25957
|
path: 'upload-file',
|
|
25943
25958
|
pathMatch: 'full',
|
|
@@ -25952,7 +25967,7 @@ UploadFileTestingModule.decorators = [
|
|
|
25952
25967
|
CommonModule,
|
|
25953
25968
|
IonicModule,
|
|
25954
25969
|
TranslateModule.forChild(),
|
|
25955
|
-
RouterModule.forChild(routes$
|
|
25970
|
+
RouterModule.forChild(routes$2)
|
|
25956
25971
|
],
|
|
25957
25972
|
declarations: [
|
|
25958
25973
|
UploadFileTestingPage
|
|
@@ -26333,7 +26348,7 @@ TextPopoverTestingPage.ctorParameters = () => [
|
|
|
26333
26348
|
{ type: PopoverController }
|
|
26334
26349
|
];
|
|
26335
26350
|
|
|
26336
|
-
const routes$
|
|
26351
|
+
const routes$1 = [
|
|
26337
26352
|
{
|
|
26338
26353
|
path: 'text-popover',
|
|
26339
26354
|
pathMatch: 'full',
|
|
@@ -26348,7 +26363,7 @@ TextPopoverTestingModule.decorators = [
|
|
|
26348
26363
|
CommonModule,
|
|
26349
26364
|
IonicModule,
|
|
26350
26365
|
TranslateModule.forChild(),
|
|
26351
|
-
RouterModule.forChild(routes$
|
|
26366
|
+
RouterModule.forChild(routes$1)
|
|
26352
26367
|
],
|
|
26353
26368
|
declarations: [
|
|
26354
26369
|
TextPopoverTestingPage
|
|
@@ -26365,7 +26380,7 @@ const CORE_TESTING_PAGES = [
|
|
|
26365
26380
|
{ label: 'Table', page: '/testing/core/table' },
|
|
26366
26381
|
{ label: 'Text popover', page: '/testing/core/text-popover' }
|
|
26367
26382
|
];
|
|
26368
|
-
const routes
|
|
26383
|
+
const routes = [
|
|
26369
26384
|
{
|
|
26370
26385
|
path: '',
|
|
26371
26386
|
pathMatch: 'full',
|
|
@@ -26389,7 +26404,7 @@ CoreTestingModule.decorators = [
|
|
|
26389
26404
|
imports: [
|
|
26390
26405
|
CommonModule,
|
|
26391
26406
|
TranslateModule.forChild(),
|
|
26392
|
-
RouterModule.forChild(routes
|
|
26407
|
+
RouterModule.forChild(routes),
|
|
26393
26408
|
// Sub modules
|
|
26394
26409
|
TableTestingModule,
|
|
26395
26410
|
TextPopoverTestingModule
|
|
@@ -26409,5 +26424,5 @@ CoreTestingModule.decorators = [
|
|
|
26409
26424
|
* Generated bundle index. Do not edit.
|
|
26410
26425
|
*/
|
|
26411
26426
|
|
|
26412
|
-
export { APP_ABOUT_DEVELOPERS, APP_ABOUT_PARTNERS, APP_CONFIG_OPTIONS, APP_FORM_ERROR_I18N_KEYS, APP_GRAPHQL_TYPE_POLICIES, APP_HOME_BUTTONS, APP_LOCALES, APP_LOCAL_SETTINGS, APP_LOCAL_SETTINGS_OPTIONS, APP_LOCAL_STORAGE_TYPE_POLICIES, APP_MENU_ITEMS, APP_TESTING_PAGES, AboutModal, Account, AccountPage, AccountService, AccountToStringPipe, ActionsColumnComponent, AdminModule, AdminRoutingModule, Alerts, AnimationState, AppEditor, AppEditorOptions, AppEntityEditor, AppForm, AppFormField, AppFormProvider, AppFormUtils, AppGestureConfig, AppGraphQLModule, AppHelpModal, AppInMemoryTable, AppInstallUpgradeCard, AppListForm, AppLoadingSpinner, AppMenuModule, AppNullForm, AppPropertiesForm, AppTabEditor, AppTabEditorOptions, AppTable, AppTableDataSourceOptions, AppTableUtils, AppValidatorService, AppendToInputDirective, ArrayFilterPipe, ArrayFirstPipe, ArrayIncludesPipe, ArrayLengthPipe, ArrayPluckPipe, AudioProvider, AuthForm, AuthGuardService, AuthModal, AutocompleteTestPage, AutofocusDirective, Base58, BaseEntityService, BaseGraphqlService, BaseGraphqlServiceOptions, BaseReferential, Beans, CORE_CONFIG_OPTIONS, CORE_TESTING_PAGES, CellValueChangeListener, ChipsTestPage, Color, ColorScale, ComponentDirtyGuard, ConfigService, Configuration, CoreModule, CoreTestingModule, CryptoService, DATE_ISO_PATTERN, DATE_UNIX_MS_TIMESTAMP, DATE_UNIX_TIMESTAMP, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_PLACEHOLDER_CHAR, DEFAULT_REQUIRED_COLUMNS, DateDiffDurationPipe, DateFormatPipe, DateFromNowPipe, DateTimeTestPage, DateUtils, Department, DepartmentToStringPipe, DragAndDropDirective, DurationPipe, ENTITIES_STORAGE_KEY_PREFIX, ENVIRONMENT, EmptyArrayPipe, EntitiesService, EntitiesStorage, EntitiesTableDataSource, Entity, EntityClass, EntityClasses, EntityFilter, EntityFilterUtils, EntityMetadataComponent, EntityStore, EntityUtils, Environment, ErrorCodes
|
|
26427
|
+
export { APP_ABOUT_DEVELOPERS, APP_ABOUT_PARTNERS, APP_CONFIG_OPTIONS, APP_FORM_ERROR_I18N_KEYS, APP_GRAPHQL_TYPE_POLICIES, APP_HOME_BUTTONS, APP_LOCALES, APP_LOCAL_SETTINGS, APP_LOCAL_SETTINGS_OPTIONS, APP_LOCAL_STORAGE_TYPE_POLICIES, APP_MENU_ITEMS, APP_TESTING_PAGES, AboutModal, Account, AccountPage, AccountService, AccountToStringPipe, ActionsColumnComponent, AdminModule, AdminRoutingModule, Alerts, AnimationState, AppEditor, AppEditorOptions, AppEntityEditor, AppForm, AppFormField, AppFormProvider, AppFormUtils, AppGestureConfig, AppGraphQLModule, AppHelpModal, AppInMemoryTable, AppInstallUpgradeCard, AppListForm, AppLoadingSpinner, AppMenuModule, AppNullForm, AppPropertiesForm, AppTabEditor, AppTabEditorOptions, AppTable, AppTableDataSourceOptions, AppTableUtils, AppValidatorService, AppendToInputDirective, ArrayFilterPipe, ArrayFirstPipe, ArrayIncludesPipe, ArrayLengthPipe, ArrayPluckPipe, AudioProvider, AuthForm, AuthGuardService, AuthModal, AutocompleteTestPage, AutofocusDirective, Base58, BaseEntityService, BaseGraphqlService, BaseGraphqlServiceOptions, BaseReferential, Beans, CORE_CONFIG_OPTIONS, CORE_TESTING_PAGES, CellValueChangeListener, ChipsTestPage, Color, ColorScale, ComponentDirtyGuard, ConfigService, Configuration, CoreModule, CoreTestingModule, CryptoService, DATE_ISO_PATTERN, DATE_UNIX_MS_TIMESTAMP, DATE_UNIX_TIMESTAMP, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_PLACEHOLDER_CHAR, DEFAULT_REQUIRED_COLUMNS, DateDiffDurationPipe, DateFormatPipe, DateFromNowPipe, DateTimeTestPage, DateUtils, Department, DepartmentToStringPipe, DragAndDropDirective, DurationPipe, ENTITIES_STORAGE_KEY_PREFIX, ENVIRONMENT, EmptyArrayPipe, EntitiesService, EntitiesStorage, EntitiesTableDataSource, Entity, EntityClass, EntityClasses, EntityFilter, EntityFilterUtils, EntityMetadataComponent, EntityStore, EntityUtils, Environment, ErrorCodes, EvenPipe, FileResponse, FileService, FileSizePipe, FilesUtils, FormArrayHelper, FormButtonsBarComponent, FormButtonsBarToken, FormErrorTranslatePipe, FormErrorTranslator, FormFieldValuesHolder, Fragments, GraphqlService, HAMMER_PRESS_TIME, HAMMER_TAP_TIME, HighlightPipe, HomePage, Hotkeys, HotkeysDialogComponent, InMemoryEntitiesService, IsLoginAccountPipe, IsNilOrBlankPipe, IsNotNilOrBlankPipe, IsNotOnFieldModePipe, IsOnFieldModePipe, JobUtils, KEYBOARD_HIDE_DELAY_MS, LAT_LONG_DEFAULT_MAX_DECIMALS, LAT_LONG_PATTERNS, LatLongFormatPipe, LatLongTestPage, LatitudeFormatPipe, LocalSettingsService, LongitudeFormatPipe, MINIFY_ENTITY_FOR_LOCAL_STORAGE, MINIFY_ENTITY_FOR_POD, MapGetPipe, MapKeysPipe, MapValuesPipe, MatAutocompleteConfigHolder, MatAutocompleteField, MatBadgeIconDirective, MatBooleanField, MatChipsField, MatDate, MatDateShort, MatDateTime, MatDuration, MatLatLongField, MatNumpadComponent, MatNumpadContainerComponent, MatNumpadContent, MatPaginatorI18n, MatStepperI18n, MatSwipeField, MaterialTestingModule, MathAbsPipe, MenuComponent, MenuItems, MenuService, ModalToolbarComponent, NetworkService, NgInitDirective, NgVarDirective, NotEmptyArrayPipe, NumberFormatPipe, NumpadDirective, OddPipe, PRIORITIZED_AUTHORITIES, PUBKEY_REGEXP, Peer, Person, PersonFilter, PersonFragments, PersonService, PersonToStringPipe, PersonUtils, PersonValidatorService, PlatformService, ProgressBarService, ProgressInterceptor, PropertyGetPipe, RESERVED_END_COLUMNS, RESERVED_START_COLUMNS, Referential, ReferentialFilter, ReferentialRef, ReferentialUtils, ReferentialValidatorService, RegisterConfirmPage, SETTINGS_DISPLAY_COLUMNS, SETTINGS_FILTER, SETTINGS_PAGE_SIZE, SETTINGS_SORTED_COLUMN, SETTINGS_STORAGE_KEY, SETTINGS_TRANSIENT_PROPERTIES, SHARED_MATERIAL_TESTING_PAGES, SHARED_TESTING_PAGES, SPACE_PLACEHOLDER_CHAR, SelectPeerModal, SettingsPage, SharedDirectivesModule, SharedFormArrayValidators, SharedFormGroupValidators, SharedHotkeysModule, SharedMatAutocompleteModule, SharedMatBadgeIconModule, SharedMatBooleanModule, SharedMatChipsModule, SharedMatDateTimeModule, SharedMatDurationModule, SharedMatLatLongModule, SharedMatNumpadModule, SharedMatSwipeModule, SharedMaterialModule, SharedModule, SharedPipesModule, SharedRoutingModule, SharedTestingModule, SharedTestsPage, SharedValidators, SocialModule, Software, StartableService, StatusById, StatusIds, StatusList, StrLengthPipe, SwipeTestPage, TableSelectColumnsComponent, TableTestPage, TableTestingModule, TextForm, TextPopover, TextPopoverTestingModule, TextPopoverTestingPage, ToStringPipe, Toasts, ToolbarComponent, ToolbarToken, TranslatablePipe, TranslateContextPipe, TranslateContextService, UploadFile, UploadFileComponent, UploadFilePopover, UploadFileTestingModule, UploadFileTestingPage, UserEvent, UserEventFilter, UserEventService, UserEventTypes, UserEventsTable, UserSettings, UsersPage, accountToString, adaptValueToControl, addValueInArray, arrayDistinct, arrayGroupBy, arraySize, asInputElement, canHaveFocus, capitalizeFirstLetter, chainPromises, changeCaseToUnderscore, clearValueInArray, copyEntity2Form, createPromiseEvent, createPromiseEventEmitter, departmentToString, departmentsToString, disableControls, emitPromiseEvent, entityToString, equals, equalsOrNil, fadeInAnimation, fadeInOutAnimation, filterFalse, filterNotNil, filterNumberInput, filterTrue, firstArrayValue, firstFalse, firstFalsePromise, firstNotNil, firstNotNilPromise, firstTrue, firstTruePromise, focusInput, focusNextInput, focusPreviousInput, formatLatitude, formatLongitude, fromDateISOString, fromScrollEndEvent, fromUnixMsTimestamp, fromUnixTimestamp, getCaretPosition, getColorContrast, getColorShade, getColorTint, getConnectionType, getControlFromPath, getFocusableInputElements, getFormErrors, getFormValueFromEntity, getProperty, getPropertyByPath, getPropertyByPathAsString, getRandomImage, hexToRgb, hexToRgbArray, isAndroid, isControlHasInput, isCordova, isDesktop, isEmptyArray, isIOS, isInputElement, isInstanceOf, isInt, isMobile, isNil, isNilOrBlank, isNilOrNaN, isNotEmptyArray, isNotNil, isNotNilOrBlank, isNotNilOrNaN, isNotNilString, isNumber, isNumberRange, isTouchUi, isWindow, joinProperties, joinPropertiesPath, logFormErrors, markAllAsTouched, markAsUntouched, markControlAsTouched, markFormGroupAsTouched, matchMedia, matchUpperCase, mergeLoadResult, mixHex, moveInputCaretToSeparator, noTrailingSlash, notNilOrDefault, nullIfUndefined, parseLatitudeOrLongitude, propertiesPathComparator, propertyComparator, propertyPathComparator, referentialToString, referentialsToString, remove, removeAll, removeDiacritics, removeDuplicatesFromArray, removeEnd, removeValueInArray, replaceAll, resetCalculatedValue, resizeArray, rgbArrayToHex, rgbToHex, round, scrollFactory, selectInputContent, selectInputRange, setCalculatedValue, setTabIndex, sleep, slideInOutAnimation, slideUpDownAnimation, sort, splitById, splitByProperty, startsWithUpperCase, suggestFromArray, suggestFromStringArray, tabindexComparator, testUserAgent, toBoolean, toDateISOString, toDuration, toFloat, toInt, toNotNil, toNumber, trimEmptyToNull, uncapitalizeFirstLetter, updateValueAndValidity, waitFor, waitForTrue, waitIdle, waitWhilePending, ɵ0$b as ɵ0, CustomReuseStrategy as ɵa, MatNumpadDomService as ɵb, isFocusableElement as ɵc, RegisterForm as ɵd, AccountValidatorService as ɵe, RegisterModal as ɵf, UserSettingsValidatorService as ɵg, LocalSettingsValidatorService as ɵh, AppIconComponent as ɵi, NumpadTestPage as ɵj, MatBadgeIconTestPage as ɵk, ToastTestingModule as ɵl, ToastTestingPage as ɵm };
|
|
26413
26428
|
//# sourceMappingURL=sumaris-net.ngx-components.js.map
|