@onemrvapublic/design-system 18.2.14 → 18.2.16-develop.1
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/esm2022/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.mjs +43 -32
- package/esm2022/mat-input-iban/src/onemrva-mat-input-iban.component.mjs +10 -6
- package/esm2022/mat-select-search/src/mat-select-search.component.mjs +2 -2
- package/esm2022/shared/index.mjs +3 -3
- package/esm2022/shared/src/lib/adapters/date.adapter.mjs +3 -3
- package/esm2022/shared/src/lib/adapters/year-month.adapter.mjs +3 -3
- package/esm2022/shared/src/lib/constants/date.format.mjs +87 -4
- package/esm2022/shared/src/lib/helpers/translation-helper.mjs +1 -1
- package/esm2022/shared/src/lib/loaders/index.mjs +2 -2
- package/esm2022/shared/src/lib/modules/index.mjs +5 -0
- package/esm2022/shared/src/lib/modules/shared.datepicker.luxon.module.mjs +46 -0
- package/esm2022/shared/src/lib/modules/shared.datepicker.luxon.year.month.module.mjs +46 -0
- package/esm2022/shared/src/lib/modules/shared.datepicker.native.module.mjs +51 -0
- package/esm2022/shared/src/lib/modules/shared.datepicker.native.year.month.module.mjs +51 -0
- package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs +42 -31
- package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +9 -5
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-shared.mjs +361 -179
- package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
- package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.d.ts +2 -1
- package/mat-input-iban/src/onemrva-mat-input-iban.component.d.ts +2 -1
- package/package.json +1 -1
- package/shared/index.d.ts +2 -2
- package/shared/src/lib/constants/date.format.d.ts +4 -1
- package/shared/src/lib/loaders/index.d.ts +1 -1
- package/shared/src/lib/modules/index.d.ts +4 -0
- package/shared/src/lib/modules/shared.datepicker.luxon.module.d.ts +12 -0
- package/shared/src/lib/modules/shared.datepicker.luxon.year.month.module.d.ts +12 -0
- package/shared/src/lib/{shared.datepicker.module.d.ts → modules/shared.datepicker.native.module.d.ts} +3 -0
- package/shared/src/lib/modules/shared.datepicker.native.year.month.module.d.ts +12 -0
- package/esm2022/shared/src/lib/shared.datepicker.module.mjs +0 -71
|
@@ -1,25 +1,40 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injectable,
|
|
3
|
-
import { NativeDateAdapter, MatNativeDateModule, MAT_DATE_LOCALE, DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
|
|
4
|
-
import { DateTime } from 'luxon';
|
|
5
|
-
import { Subject, takeUntil, merge, NEVER, take, tap, catchError, startWith, switchMap, shareReplay, filter, finalize, of, forkJoin, ReplaySubject, skip, distinctUntilChanged, map as map$1, combineLatestWith, from } from 'rxjs';
|
|
6
|
-
import * as i1 from '@ngx-translate/core';
|
|
7
|
-
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { Component, InjectionToken, Injectable, Inject, Directive, HostListener, EventEmitter, Output, Input, HostBinding, Pipe, Optional, NgModule, inject } from '@angular/core';
|
|
8
3
|
import * as i2 from '@angular/material/icon';
|
|
9
4
|
import { MatIconModule } from '@angular/material/icon';
|
|
10
5
|
import * as i3 from '@angular/material/tooltip';
|
|
11
6
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
12
|
-
import * as i1
|
|
7
|
+
import * as i1 from '@angular/cdk/clipboard';
|
|
13
8
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
14
|
-
import * as i1$
|
|
9
|
+
import * as i1$1 from '@angular/cdk/platform';
|
|
15
10
|
import { _isTestEnvironment } from '@angular/cdk/platform';
|
|
11
|
+
import { Subject, merge, NEVER, take, tap, catchError, startWith, switchMap, shareReplay, filter, finalize, of, forkJoin, ReplaySubject, skip, distinctUntilChanged, map as map$1, combineLatestWith, from, takeUntil } from 'rxjs';
|
|
16
12
|
import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';
|
|
17
|
-
import * as i1$
|
|
13
|
+
import * as i1$2 from '@angular/cdk/layout';
|
|
18
14
|
import { catchError as catchError$1, map, startWith as startWith$1 } from 'rxjs/operators';
|
|
19
|
-
import * as i1$
|
|
15
|
+
import * as i1$3 from '@angular/common/http';
|
|
20
16
|
import { __decorate } from 'tslib';
|
|
17
|
+
import * as i1$4 from '@ngx-translate/core';
|
|
18
|
+
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
|
21
19
|
import { countrySpecs, validateIBAN, electronicFormatIBAN, ValidationErrorsIBAN } from 'ibantools';
|
|
20
|
+
import { DateAdapter, MatNativeDateModule, MAT_DATE_LOCALE, MAT_DATE_FORMATS, NativeDateAdapter } from '@angular/material/core';
|
|
22
21
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
22
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
23
|
+
import { provideLuxonDateAdapter } from '@angular/material-luxon-adapter';
|
|
24
|
+
import { DateTime } from 'luxon';
|
|
25
|
+
|
|
26
|
+
class ClipboardIconComponent {
|
|
27
|
+
constructor(_elementRef, clipboardService) {
|
|
28
|
+
this._elementRef = _elementRef;
|
|
29
|
+
this.clipboardService = clipboardService;
|
|
30
|
+
}
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ClipboardIconComponent, deps: [{ token: i0.ElementRef }, { token: i1.Clipboard }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
32
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.8", type: ClipboardIconComponent, isStandalone: true, selector: "lib-clipboard-icon", ngImport: i0, template: "<mat-icon [matTooltip]=\"'TEST'\">content_copy</mat-icon>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
|
|
33
|
+
}
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ClipboardIconComponent, decorators: [{
|
|
35
|
+
type: Component,
|
|
36
|
+
args: [{ selector: 'lib-clipboard-icon', standalone: true, imports: [MatIconModule, MatTooltipModule], template: "<mat-icon [matTooltip]=\"'TEST'\">content_copy</mat-icon>\n" }]
|
|
37
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.Clipboard }] });
|
|
23
38
|
|
|
24
39
|
var CDNUrlModeOptions;
|
|
25
40
|
(function (CDNUrlModeOptions) {
|
|
@@ -33,143 +48,103 @@ const CDN_URLS = {
|
|
|
33
48
|
};
|
|
34
49
|
const NISS_MASK = '000000/000-00';
|
|
35
50
|
|
|
36
|
-
const
|
|
51
|
+
const parseNativeDateFormats = [
|
|
52
|
+
'ddMMyyyy',
|
|
53
|
+
'dd/MM/yyyy',
|
|
54
|
+
'd/M/yyyy',
|
|
55
|
+
'dd/M/yyyy',
|
|
56
|
+
'd/MM/yyyy',
|
|
57
|
+
'd.M.yyyy',
|
|
58
|
+
'dd.M.yyyy',
|
|
59
|
+
'd.MM.yyyy',
|
|
60
|
+
'd/M/yy',
|
|
61
|
+
'dd/M/yy',
|
|
62
|
+
'd/MM/yy',
|
|
63
|
+
'd.M.yy',
|
|
64
|
+
'dd.M.yy',
|
|
65
|
+
'd.MM.yy',
|
|
66
|
+
];
|
|
67
|
+
const parseNativeYearMonthFormats = [
|
|
68
|
+
'MMyyyy',
|
|
69
|
+
'M/yyyy',
|
|
70
|
+
'M/yy',
|
|
71
|
+
'MM/yyyy',
|
|
72
|
+
'MM/yy',
|
|
73
|
+
'M.yyyy',
|
|
74
|
+
'MM.yyyy',
|
|
75
|
+
];
|
|
76
|
+
const parseLuxonYearMonthFormats = [
|
|
77
|
+
'LLyyyy',
|
|
78
|
+
'L/yyyy',
|
|
79
|
+
'L/yy',
|
|
80
|
+
'LL/yyyy',
|
|
81
|
+
'LL/yy',
|
|
82
|
+
'L.yyyy',
|
|
83
|
+
'LL.yyyy',
|
|
84
|
+
];
|
|
85
|
+
const parseLuxonDateFormat = [
|
|
86
|
+
'ddLLyyyy',
|
|
87
|
+
'd/LL/yyyy',
|
|
88
|
+
'd/L/yyyy',
|
|
89
|
+
'dd/L/yyyy',
|
|
90
|
+
'd/LL/yyyy',
|
|
91
|
+
'd.L.yyyy',
|
|
92
|
+
'dd.L.yyyy',
|
|
93
|
+
'd.LL.yyyy',
|
|
94
|
+
'd/L/yy',
|
|
95
|
+
'dd/L/yy',
|
|
96
|
+
'd/LL/yy',
|
|
97
|
+
'd.L.yy',
|
|
98
|
+
'dd.L.yy',
|
|
99
|
+
'd.LL.yy',
|
|
100
|
+
];
|
|
101
|
+
const ONEMRVA_MAT_NATIVE_DATE_FORMAT = {
|
|
37
102
|
parse: {
|
|
38
|
-
dateInput:
|
|
103
|
+
dateInput: parseNativeDateFormats,
|
|
39
104
|
},
|
|
40
105
|
display: {
|
|
41
106
|
dateInput: 'dd/MM/yyyy',
|
|
42
107
|
monthYearLabel: 'MMM yyyy',
|
|
43
|
-
dateA11yLabel: '
|
|
108
|
+
dateA11yLabel: 'DDD',
|
|
44
109
|
monthYearA11yLabel: 'MMMM yyyy',
|
|
45
110
|
},
|
|
46
111
|
};
|
|
112
|
+
const ONEMRVA_MAT_NATIVE_YEAR_MONTH_FORMAT = {
|
|
113
|
+
parse: {
|
|
114
|
+
dateInput: parseNativeYearMonthFormats,
|
|
115
|
+
},
|
|
116
|
+
display: {
|
|
117
|
+
dateInput: 'dd/MM/yyyy',
|
|
118
|
+
monthYearLabel: 'MMM yyyy',
|
|
119
|
+
dateA11yLabel: 'DDD',
|
|
120
|
+
monthYearA11yLabel: 'MMM yyyy',
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
const ONEMRVA_MAT_LUXON_YEAR_MONTH_FORMATS = {
|
|
124
|
+
parse: {
|
|
125
|
+
dateInput: parseLuxonYearMonthFormats,
|
|
126
|
+
},
|
|
127
|
+
display: {
|
|
128
|
+
dateInput: 'LL/yyyy',
|
|
129
|
+
monthYearLabel: 'LLL yyyy',
|
|
130
|
+
dateA11yLabel: 'DDD',
|
|
131
|
+
monthYearA11yLabel: 'LLLL yyyy',
|
|
132
|
+
},
|
|
133
|
+
};
|
|
134
|
+
const ONEMRVA_MAT_LUXON_DATE_FORMATS = {
|
|
135
|
+
parse: {
|
|
136
|
+
dateInput: parseLuxonDateFormat,
|
|
137
|
+
},
|
|
138
|
+
display: {
|
|
139
|
+
dateInput: 'dd/LL/yyyy',
|
|
140
|
+
monthYearLabel: 'LLL yyyy',
|
|
141
|
+
dateA11yLabel: 'DDD',
|
|
142
|
+
monthYearA11yLabel: 'LLL yyyy',
|
|
143
|
+
},
|
|
144
|
+
};
|
|
47
145
|
|
|
48
146
|
const CDN_URL_MODE = new InjectionToken('This is cdn url that will be used (val/prod)');
|
|
49
147
|
|
|
50
|
-
class OnemrvaDateAdapter extends NativeDateAdapter {
|
|
51
|
-
constructor(translateService) {
|
|
52
|
-
super();
|
|
53
|
-
this.translateService = translateService;
|
|
54
|
-
this.dateFormat = ONEMRVA_FORMAT.display.dateInput;
|
|
55
|
-
this.destroyNotifier$ = new Subject();
|
|
56
|
-
this.setLocale(this.translateService.currentLang);
|
|
57
|
-
this.translateService.onLangChange
|
|
58
|
-
.pipe(takeUntil(this.destroyNotifier$))
|
|
59
|
-
.subscribe(({ lang }) => {
|
|
60
|
-
this.setLocale(lang);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
format(date) {
|
|
64
|
-
const dt = DateTime.fromJSDate(date);
|
|
65
|
-
return dt.toFormat(this.dateFormat);
|
|
66
|
-
}
|
|
67
|
-
parse(value) {
|
|
68
|
-
if (value && typeof value === 'string') {
|
|
69
|
-
value = value.replace(/\D/g, '/');
|
|
70
|
-
}
|
|
71
|
-
if (value === null || value === '') {
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
const dt = DateTime.fromFormat(value, this.dateFormat, {
|
|
75
|
-
locale: this.locale,
|
|
76
|
-
});
|
|
77
|
-
if (dt.isValid) {
|
|
78
|
-
return dt.toJSDate();
|
|
79
|
-
}
|
|
80
|
-
const formats = ['ddMMyyyy', 'd/M/yyyy', 'dd/M/yyyy', 'd/MM/yyyy'];
|
|
81
|
-
for (const format of formats) {
|
|
82
|
-
const parsed = DateTime.fromFormat(value, format, {
|
|
83
|
-
locale: this.locale,
|
|
84
|
-
});
|
|
85
|
-
if (parsed.isValid) {
|
|
86
|
-
return parsed.toJSDate();
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return this.invalid();
|
|
90
|
-
}
|
|
91
|
-
getFirstDayOfWeek() {
|
|
92
|
-
return 1;
|
|
93
|
-
}
|
|
94
|
-
ngOnDestroy() {
|
|
95
|
-
this.destroyNotifier$.next();
|
|
96
|
-
this.destroyNotifier$.complete();
|
|
97
|
-
}
|
|
98
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDateAdapter, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
99
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDateAdapter }); }
|
|
100
|
-
}
|
|
101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDateAdapter, decorators: [{
|
|
102
|
-
type: Injectable
|
|
103
|
-
}], ctorParameters: () => [{ type: i1.TranslateService }] });
|
|
104
|
-
|
|
105
|
-
class OnemrvaYearMonthAdapter extends NativeDateAdapter {
|
|
106
|
-
constructor(translateService) {
|
|
107
|
-
super();
|
|
108
|
-
this.translateService = translateService;
|
|
109
|
-
this.dateFormat = ONEMRVA_FORMAT.display.monthYearLabel;
|
|
110
|
-
this.destroyNotifier$ = new Subject();
|
|
111
|
-
this.setLocale(this.translateService.currentLang);
|
|
112
|
-
this.translateService.onLangChange
|
|
113
|
-
.pipe(takeUntil(this.destroyNotifier$))
|
|
114
|
-
.subscribe(({ lang }) => {
|
|
115
|
-
this.setLocale(lang);
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
format(date) {
|
|
119
|
-
const dt = DateTime.fromJSDate(date);
|
|
120
|
-
return dt.toFormat(this.dateFormat);
|
|
121
|
-
}
|
|
122
|
-
parse(value) {
|
|
123
|
-
if (value && typeof value === 'string') {
|
|
124
|
-
value = value.replace(/\D/g, '/');
|
|
125
|
-
}
|
|
126
|
-
if (value === null || value === '') {
|
|
127
|
-
return null;
|
|
128
|
-
}
|
|
129
|
-
const dt = DateTime.fromFormat(value, this.dateFormat, {
|
|
130
|
-
locale: this.locale,
|
|
131
|
-
});
|
|
132
|
-
if (dt.isValid) {
|
|
133
|
-
return dt.toJSDate();
|
|
134
|
-
}
|
|
135
|
-
const formats = ['MMyyyy', 'M/yyyy', 'MM/yyyy'];
|
|
136
|
-
for (const format of formats) {
|
|
137
|
-
const parsed = DateTime.fromFormat(value, format, {
|
|
138
|
-
locale: this.locale,
|
|
139
|
-
});
|
|
140
|
-
if (parsed.isValid) {
|
|
141
|
-
return parsed.toJSDate();
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return this.invalid();
|
|
145
|
-
}
|
|
146
|
-
getFirstDayOfWeek() {
|
|
147
|
-
return 1;
|
|
148
|
-
}
|
|
149
|
-
ngOnDestroy() {
|
|
150
|
-
this.destroyNotifier$.next();
|
|
151
|
-
this.destroyNotifier$.complete();
|
|
152
|
-
}
|
|
153
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaYearMonthAdapter, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
154
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaYearMonthAdapter }); }
|
|
155
|
-
}
|
|
156
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaYearMonthAdapter, decorators: [{
|
|
157
|
-
type: Injectable
|
|
158
|
-
}], ctorParameters: () => [{ type: i1.TranslateService }] });
|
|
159
|
-
|
|
160
|
-
class ClipboardIconComponent {
|
|
161
|
-
constructor(_elementRef, clipboardService) {
|
|
162
|
-
this._elementRef = _elementRef;
|
|
163
|
-
this.clipboardService = clipboardService;
|
|
164
|
-
}
|
|
165
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ClipboardIconComponent, deps: [{ token: i0.ElementRef }, { token: i1$1.Clipboard }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
166
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.8", type: ClipboardIconComponent, isStandalone: true, selector: "lib-clipboard-icon", ngImport: i0, template: "<mat-icon [matTooltip]=\"'TEST'\">content_copy</mat-icon>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
|
|
167
|
-
}
|
|
168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: ClipboardIconComponent, decorators: [{
|
|
169
|
-
type: Component,
|
|
170
|
-
args: [{ selector: 'lib-clipboard-icon', standalone: true, imports: [MatIconModule, MatTooltipModule], template: "<mat-icon [matTooltip]=\"'TEST'\">content_copy</mat-icon>\n" }]
|
|
171
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1$1.Clipboard }] });
|
|
172
|
-
|
|
173
148
|
/**
|
|
174
149
|
* @license
|
|
175
150
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -238,7 +213,7 @@ class WebComponentOverlayContainer {
|
|
|
238
213
|
this._document.body.appendChild(containerwrap);
|
|
239
214
|
this._containerElement = container;
|
|
240
215
|
}
|
|
241
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: WebComponentOverlayContainer, deps: [{ token: DOCUMENT }, { token: i1$
|
|
216
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: WebComponentOverlayContainer, deps: [{ token: DOCUMENT }, { token: i1$1.Platform }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
242
217
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: WebComponentOverlayContainer, providedIn: 'root' }); }
|
|
243
218
|
}
|
|
244
219
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: WebComponentOverlayContainer, decorators: [{
|
|
@@ -247,7 +222,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
|
|
|
247
222
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
248
223
|
type: Inject,
|
|
249
224
|
args: [DOCUMENT]
|
|
250
|
-
}] }, { type: i1$
|
|
225
|
+
}] }, { type: i1$1.Platform }] });
|
|
251
226
|
|
|
252
227
|
class DefaultStorage {
|
|
253
228
|
constructor() {
|
|
@@ -511,7 +486,7 @@ class IfWidthIsDirective {
|
|
|
511
486
|
}
|
|
512
487
|
});
|
|
513
488
|
}
|
|
514
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: IfWidthIsDirective, deps: [{ token: i1$
|
|
489
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: IfWidthIsDirective, deps: [{ token: i1$2.BreakpointObserver }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
515
490
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.8", type: IfWidthIsDirective, selector: "[ifWidthIs]", inputs: { ifWidthIs: "ifWidthIs" }, ngImport: i0 }); }
|
|
516
491
|
}
|
|
517
492
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: IfWidthIsDirective, decorators: [{
|
|
@@ -519,7 +494,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
|
|
|
519
494
|
args: [{
|
|
520
495
|
selector: '[ifWidthIs]',
|
|
521
496
|
}]
|
|
522
|
-
}], ctorParameters: () => [{ type: i1$
|
|
497
|
+
}], ctorParameters: () => [{ type: i1$2.BreakpointObserver }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }], propDecorators: { ifWidthIs: [{
|
|
523
498
|
type: Input
|
|
524
499
|
}] } });
|
|
525
500
|
|
|
@@ -800,7 +775,7 @@ class OnemRvaClipboardDirective {
|
|
|
800
775
|
this.vcRef.clear();
|
|
801
776
|
this.renderer.appendChild(this.elementRef.nativeElement, this.iconEl);
|
|
802
777
|
}
|
|
803
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemRvaClipboardDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: i1
|
|
778
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemRvaClipboardDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: i1.Clipboard }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
804
779
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.8", type: OnemRvaClipboardDirective, selector: "span[clipboard]", inputs: { clipboard: "clipboard" }, host: { properties: { "class": "this.class" } }, ngImport: i0 }); }
|
|
805
780
|
}
|
|
806
781
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemRvaClipboardDirective, decorators: [{
|
|
@@ -808,7 +783,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
|
|
|
808
783
|
args: [{
|
|
809
784
|
selector: 'span[clipboard]',
|
|
810
785
|
}]
|
|
811
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ComponentFactoryResolver }, { type: i0.ViewContainerRef }, { type: i1
|
|
786
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ComponentFactoryResolver }, { type: i0.ViewContainerRef }, { type: i1.Clipboard }], propDecorators: { class: [{
|
|
812
787
|
type: HostBinding,
|
|
813
788
|
args: ['class']
|
|
814
789
|
}], clipboard: [{
|
|
@@ -1002,7 +977,7 @@ class CommonCountryLookupService {
|
|
|
1002
977
|
return country || null;
|
|
1003
978
|
}));
|
|
1004
979
|
}
|
|
1005
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: CommonCountryLookupService, deps: [{ token: i1$
|
|
980
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: CommonCountryLookupService, deps: [{ token: i1$3.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1006
981
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: CommonCountryLookupService, providedIn: 'root' }); }
|
|
1007
982
|
}
|
|
1008
983
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: CommonCountryLookupService, decorators: [{
|
|
@@ -1010,7 +985,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
|
|
|
1010
985
|
args: [{
|
|
1011
986
|
providedIn: 'root',
|
|
1012
987
|
}]
|
|
1013
|
-
}], ctorParameters: () => [{ type: i1$
|
|
988
|
+
}], ctorParameters: () => [{ type: i1$3.HttpClient }] });
|
|
1014
989
|
|
|
1015
990
|
class CacheService {
|
|
1016
991
|
setItem(key, item) {
|
|
@@ -1088,7 +1063,7 @@ class OnemRvaCDNService {
|
|
|
1088
1063
|
return all.filter(v => !!v).reduce((s, c) => ({ ...s, ...c }), {});
|
|
1089
1064
|
}));
|
|
1090
1065
|
}
|
|
1091
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemRvaCDNService, deps: [{ token: CacheService }, { token: i1$
|
|
1066
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemRvaCDNService, deps: [{ token: CacheService }, { token: i1$3.HttpClient }, { token: CDN_URL_MODE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1092
1067
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemRvaCDNService, providedIn: 'root' }); }
|
|
1093
1068
|
}
|
|
1094
1069
|
__decorate([
|
|
@@ -1103,7 +1078,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
|
|
|
1103
1078
|
args: [{
|
|
1104
1079
|
providedIn: 'root',
|
|
1105
1080
|
}]
|
|
1106
|
-
}], ctorParameters: () => [{ type: CacheService }, { type: i1$
|
|
1081
|
+
}], ctorParameters: () => [{ type: CacheService }, { type: i1$3.HttpClient }, { type: CDNUrlModeOptions, decorators: [{
|
|
1107
1082
|
type: Optional
|
|
1108
1083
|
}, {
|
|
1109
1084
|
type: Inject,
|
|
@@ -1169,7 +1144,7 @@ class OnemRvaCDNCountryService {
|
|
|
1169
1144
|
});
|
|
1170
1145
|
}));
|
|
1171
1146
|
}
|
|
1172
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemRvaCDNCountryService, deps: [{ token: OnemRvaCDNService }, { token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1147
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemRvaCDNCountryService, deps: [{ token: OnemRvaCDNService }, { token: i1$4.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1173
1148
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemRvaCDNCountryService, providedIn: 'root' }); }
|
|
1174
1149
|
}
|
|
1175
1150
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemRvaCDNCountryService, decorators: [{
|
|
@@ -1177,7 +1152,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
|
|
|
1177
1152
|
args: [{
|
|
1178
1153
|
providedIn: 'root',
|
|
1179
1154
|
}]
|
|
1180
|
-
}], ctorParameters: () => [{ type: OnemRvaCDNService }, { type: i1.TranslateService }] });
|
|
1155
|
+
}], ctorParameters: () => [{ type: OnemRvaCDNService }, { type: i1$4.TranslateService }] });
|
|
1181
1156
|
|
|
1182
1157
|
class OnemRvaCDNMimeService {
|
|
1183
1158
|
static { this.mimetypeFile = '/json/mimetypes.json'; }
|
|
@@ -1364,37 +1339,63 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
|
|
|
1364
1339
|
}]
|
|
1365
1340
|
}] });
|
|
1366
1341
|
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
translateService.onLangChange
|
|
1371
|
-
|
|
1342
|
+
class OnemrvaDatepickerLuxonSharedModule {
|
|
1343
|
+
constructor(translateService) {
|
|
1344
|
+
this._adapter = inject(DateAdapter);
|
|
1345
|
+
translateService.onLangChange
|
|
1346
|
+
.pipe(takeUntilDestroyed())
|
|
1347
|
+
.subscribe(value => {
|
|
1348
|
+
this._adapter.setLocale(value.lang);
|
|
1372
1349
|
});
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
};
|
|
1350
|
+
}
|
|
1351
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDatepickerLuxonSharedModule, deps: [{ token: i1$4.TranslateService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1352
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDatepickerLuxonSharedModule, imports: [MatDatepickerModule, TranslateModule, MatNativeDateModule] }); }
|
|
1353
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDatepickerLuxonSharedModule, providers: [
|
|
1354
|
+
{
|
|
1355
|
+
provide: MAT_DATE_LOCALE,
|
|
1356
|
+
useFactory: (translateService) => translateService.currentLang,
|
|
1357
|
+
deps: [TranslateService],
|
|
1358
|
+
},
|
|
1359
|
+
provideLuxonDateAdapter(ONEMRVA_MAT_LUXON_DATE_FORMATS),
|
|
1360
|
+
], imports: [MatDatepickerModule, TranslateModule, MatNativeDateModule] }); }
|
|
1376
1361
|
}
|
|
1362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDatepickerLuxonSharedModule, decorators: [{
|
|
1363
|
+
type: NgModule,
|
|
1364
|
+
args: [{
|
|
1365
|
+
declarations: [],
|
|
1366
|
+
imports: [MatDatepickerModule, TranslateModule, MatNativeDateModule],
|
|
1367
|
+
exports: [],
|
|
1368
|
+
providers: [
|
|
1369
|
+
{
|
|
1370
|
+
provide: MAT_DATE_LOCALE,
|
|
1371
|
+
useFactory: (translateService) => translateService.currentLang,
|
|
1372
|
+
deps: [TranslateService],
|
|
1373
|
+
},
|
|
1374
|
+
provideLuxonDateAdapter(ONEMRVA_MAT_LUXON_DATE_FORMATS),
|
|
1375
|
+
],
|
|
1376
|
+
}]
|
|
1377
|
+
}], ctorParameters: () => [{ type: i1$4.TranslateService }] });
|
|
1378
|
+
|
|
1377
1379
|
class OnemrvaDatepickerSharedModule {
|
|
1378
|
-
|
|
1380
|
+
constructor(translateService) {
|
|
1381
|
+
this._adapter = inject(DateAdapter);
|
|
1382
|
+
translateService.onLangChange
|
|
1383
|
+
.pipe(takeUntilDestroyed())
|
|
1384
|
+
.subscribe(value => {
|
|
1385
|
+
this._adapter.setLocale(value.lang);
|
|
1386
|
+
});
|
|
1387
|
+
}
|
|
1388
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDatepickerSharedModule, deps: [{ token: i1$4.TranslateService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1379
1389
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDatepickerSharedModule, imports: [MatDatepickerModule, TranslateModule, MatNativeDateModule] }); }
|
|
1380
1390
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDatepickerSharedModule, providers: [
|
|
1381
1391
|
{
|
|
1382
1392
|
provide: MAT_DATE_LOCALE,
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
{
|
|
1386
|
-
provide: DateAdapter,
|
|
1387
|
-
useClass: OnemrvaDateAdapter,
|
|
1393
|
+
useFactory: (translateService) => translateService.currentLang,
|
|
1394
|
+
deps: [TranslateService],
|
|
1388
1395
|
},
|
|
1389
1396
|
{
|
|
1390
1397
|
provide: MAT_DATE_FORMATS,
|
|
1391
|
-
useValue:
|
|
1392
|
-
},
|
|
1393
|
-
{
|
|
1394
|
-
provide: APP_INITIALIZER,
|
|
1395
|
-
useFactory: translateDatepicker,
|
|
1396
|
-
deps: [TranslateService, (DateAdapter)],
|
|
1397
|
-
multi: true,
|
|
1398
|
+
useValue: ONEMRVA_MAT_NATIVE_DATE_FORMAT,
|
|
1398
1399
|
},
|
|
1399
1400
|
], imports: [MatDatepickerModule, TranslateModule, MatNativeDateModule] }); }
|
|
1400
1401
|
}
|
|
@@ -1407,25 +1408,206 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
|
|
|
1407
1408
|
providers: [
|
|
1408
1409
|
{
|
|
1409
1410
|
provide: MAT_DATE_LOCALE,
|
|
1410
|
-
|
|
1411
|
+
useFactory: (translateService) => translateService.currentLang,
|
|
1412
|
+
deps: [TranslateService],
|
|
1411
1413
|
},
|
|
1412
1414
|
{
|
|
1413
|
-
provide:
|
|
1414
|
-
|
|
1415
|
+
provide: MAT_DATE_FORMATS,
|
|
1416
|
+
useValue: ONEMRVA_MAT_NATIVE_DATE_FORMAT,
|
|
1417
|
+
},
|
|
1418
|
+
],
|
|
1419
|
+
}]
|
|
1420
|
+
}], ctorParameters: () => [{ type: i1$4.TranslateService }] });
|
|
1421
|
+
|
|
1422
|
+
class OnemrvaDatepickerYearMonthSharedModule {
|
|
1423
|
+
constructor(translateService) {
|
|
1424
|
+
this._adapter = inject(DateAdapter);
|
|
1425
|
+
translateService.onLangChange
|
|
1426
|
+
.pipe(takeUntilDestroyed())
|
|
1427
|
+
.subscribe(value => {
|
|
1428
|
+
this._adapter.setLocale(value.lang);
|
|
1429
|
+
});
|
|
1430
|
+
}
|
|
1431
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDatepickerYearMonthSharedModule, deps: [{ token: i1$4.TranslateService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1432
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDatepickerYearMonthSharedModule, imports: [MatDatepickerModule, TranslateModule, MatNativeDateModule] }); }
|
|
1433
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDatepickerYearMonthSharedModule, providers: [
|
|
1434
|
+
{
|
|
1435
|
+
provide: MAT_DATE_LOCALE,
|
|
1436
|
+
useFactory: (translateService) => translateService.currentLang,
|
|
1437
|
+
deps: [TranslateService],
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
provide: MAT_DATE_FORMATS,
|
|
1441
|
+
useValue: ONEMRVA_MAT_NATIVE_YEAR_MONTH_FORMAT,
|
|
1442
|
+
},
|
|
1443
|
+
], imports: [MatDatepickerModule, TranslateModule, MatNativeDateModule] }); }
|
|
1444
|
+
}
|
|
1445
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDatepickerYearMonthSharedModule, decorators: [{
|
|
1446
|
+
type: NgModule,
|
|
1447
|
+
args: [{
|
|
1448
|
+
declarations: [],
|
|
1449
|
+
imports: [MatDatepickerModule, TranslateModule, MatNativeDateModule],
|
|
1450
|
+
exports: [],
|
|
1451
|
+
providers: [
|
|
1452
|
+
{
|
|
1453
|
+
provide: MAT_DATE_LOCALE,
|
|
1454
|
+
useFactory: (translateService) => translateService.currentLang,
|
|
1455
|
+
deps: [TranslateService],
|
|
1415
1456
|
},
|
|
1416
1457
|
{
|
|
1417
1458
|
provide: MAT_DATE_FORMATS,
|
|
1418
|
-
useValue:
|
|
1459
|
+
useValue: ONEMRVA_MAT_NATIVE_YEAR_MONTH_FORMAT,
|
|
1419
1460
|
},
|
|
1461
|
+
],
|
|
1462
|
+
}]
|
|
1463
|
+
}], ctorParameters: () => [{ type: i1$4.TranslateService }] });
|
|
1464
|
+
|
|
1465
|
+
class OnemrvaDatepickerLuxonYearMonthSharedModule {
|
|
1466
|
+
constructor(translateService) {
|
|
1467
|
+
this._adapter = inject(DateAdapter);
|
|
1468
|
+
translateService.onLangChange
|
|
1469
|
+
.pipe(takeUntilDestroyed())
|
|
1470
|
+
.subscribe(value => {
|
|
1471
|
+
this._adapter.setLocale(value.lang);
|
|
1472
|
+
});
|
|
1473
|
+
}
|
|
1474
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDatepickerLuxonYearMonthSharedModule, deps: [{ token: i1$4.TranslateService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1475
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDatepickerLuxonYearMonthSharedModule, imports: [MatDatepickerModule, TranslateModule, MatNativeDateModule] }); }
|
|
1476
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDatepickerLuxonYearMonthSharedModule, providers: [
|
|
1477
|
+
{
|
|
1478
|
+
provide: MAT_DATE_LOCALE,
|
|
1479
|
+
useFactory: (translateService) => translateService.currentLang,
|
|
1480
|
+
deps: [TranslateService],
|
|
1481
|
+
},
|
|
1482
|
+
provideLuxonDateAdapter(ONEMRVA_MAT_LUXON_YEAR_MONTH_FORMATS),
|
|
1483
|
+
], imports: [MatDatepickerModule, TranslateModule, MatNativeDateModule] }); }
|
|
1484
|
+
}
|
|
1485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDatepickerLuxonYearMonthSharedModule, decorators: [{
|
|
1486
|
+
type: NgModule,
|
|
1487
|
+
args: [{
|
|
1488
|
+
declarations: [],
|
|
1489
|
+
imports: [MatDatepickerModule, TranslateModule, MatNativeDateModule],
|
|
1490
|
+
exports: [],
|
|
1491
|
+
providers: [
|
|
1420
1492
|
{
|
|
1421
|
-
provide:
|
|
1422
|
-
useFactory:
|
|
1423
|
-
deps: [TranslateService
|
|
1424
|
-
multi: true,
|
|
1493
|
+
provide: MAT_DATE_LOCALE,
|
|
1494
|
+
useFactory: (translateService) => translateService.currentLang,
|
|
1495
|
+
deps: [TranslateService],
|
|
1425
1496
|
},
|
|
1497
|
+
provideLuxonDateAdapter(ONEMRVA_MAT_LUXON_YEAR_MONTH_FORMATS),
|
|
1426
1498
|
],
|
|
1427
1499
|
}]
|
|
1428
|
-
}] });
|
|
1500
|
+
}], ctorParameters: () => [{ type: i1$4.TranslateService }] });
|
|
1501
|
+
|
|
1502
|
+
class OnemrvaDateAdapter extends NativeDateAdapter {
|
|
1503
|
+
constructor(translateService) {
|
|
1504
|
+
super();
|
|
1505
|
+
this.translateService = translateService;
|
|
1506
|
+
this.dateFormat = ONEMRVA_MAT_NATIVE_DATE_FORMAT.display.dateInput;
|
|
1507
|
+
this.destroyNotifier$ = new Subject();
|
|
1508
|
+
this.setLocale(this.translateService.currentLang);
|
|
1509
|
+
this.translateService.onLangChange
|
|
1510
|
+
.pipe(takeUntil(this.destroyNotifier$))
|
|
1511
|
+
.subscribe(({ lang }) => {
|
|
1512
|
+
this.setLocale(lang);
|
|
1513
|
+
});
|
|
1514
|
+
}
|
|
1515
|
+
format(date) {
|
|
1516
|
+
const dt = DateTime.fromJSDate(date);
|
|
1517
|
+
return dt.toFormat(this.dateFormat);
|
|
1518
|
+
}
|
|
1519
|
+
parse(value) {
|
|
1520
|
+
if (value && typeof value === 'string') {
|
|
1521
|
+
value = value.replace(/\D/g, '/');
|
|
1522
|
+
}
|
|
1523
|
+
if (value === null || value === '') {
|
|
1524
|
+
return null;
|
|
1525
|
+
}
|
|
1526
|
+
const dt = DateTime.fromFormat(value, this.dateFormat, {
|
|
1527
|
+
locale: this.locale,
|
|
1528
|
+
});
|
|
1529
|
+
if (dt.isValid) {
|
|
1530
|
+
return dt.toJSDate();
|
|
1531
|
+
}
|
|
1532
|
+
const formats = ['ddMMyyyy', 'd/M/yyyy', 'dd/M/yyyy', 'd/MM/yyyy'];
|
|
1533
|
+
for (const format of formats) {
|
|
1534
|
+
const parsed = DateTime.fromFormat(value, format, {
|
|
1535
|
+
locale: this.locale,
|
|
1536
|
+
});
|
|
1537
|
+
if (parsed.isValid) {
|
|
1538
|
+
return parsed.toJSDate();
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
return this.invalid();
|
|
1542
|
+
}
|
|
1543
|
+
getFirstDayOfWeek() {
|
|
1544
|
+
return 1;
|
|
1545
|
+
}
|
|
1546
|
+
ngOnDestroy() {
|
|
1547
|
+
this.destroyNotifier$.next();
|
|
1548
|
+
this.destroyNotifier$.complete();
|
|
1549
|
+
}
|
|
1550
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDateAdapter, deps: [{ token: i1$4.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1551
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDateAdapter }); }
|
|
1552
|
+
}
|
|
1553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaDateAdapter, decorators: [{
|
|
1554
|
+
type: Injectable
|
|
1555
|
+
}], ctorParameters: () => [{ type: i1$4.TranslateService }] });
|
|
1556
|
+
|
|
1557
|
+
class OnemrvaYearMonthAdapter extends NativeDateAdapter {
|
|
1558
|
+
constructor(translateService) {
|
|
1559
|
+
super();
|
|
1560
|
+
this.translateService = translateService;
|
|
1561
|
+
this.dateFormat = ONEMRVA_MAT_NATIVE_YEAR_MONTH_FORMAT.display.monthYearLabel;
|
|
1562
|
+
this.destroyNotifier$ = new Subject();
|
|
1563
|
+
this.setLocale(this.translateService.currentLang);
|
|
1564
|
+
this.translateService.onLangChange
|
|
1565
|
+
.pipe(takeUntil(this.destroyNotifier$))
|
|
1566
|
+
.subscribe(({ lang }) => {
|
|
1567
|
+
this.setLocale(lang);
|
|
1568
|
+
});
|
|
1569
|
+
}
|
|
1570
|
+
format(date) {
|
|
1571
|
+
const dt = DateTime.fromJSDate(date);
|
|
1572
|
+
return dt.toFormat(this.dateFormat);
|
|
1573
|
+
}
|
|
1574
|
+
parse(value) {
|
|
1575
|
+
if (value && typeof value === 'string') {
|
|
1576
|
+
value = value.replace(/\D/g, '/');
|
|
1577
|
+
}
|
|
1578
|
+
if (value === null || value === '') {
|
|
1579
|
+
return null;
|
|
1580
|
+
}
|
|
1581
|
+
const dt = DateTime.fromFormat(value, this.dateFormat, {
|
|
1582
|
+
locale: this.locale,
|
|
1583
|
+
});
|
|
1584
|
+
if (dt.isValid) {
|
|
1585
|
+
return dt.toJSDate();
|
|
1586
|
+
}
|
|
1587
|
+
const formats = ['MMyyyy', 'M/yyyy', 'MM/yyyy'];
|
|
1588
|
+
for (const format of formats) {
|
|
1589
|
+
const parsed = DateTime.fromFormat(value, format, {
|
|
1590
|
+
locale: this.locale,
|
|
1591
|
+
});
|
|
1592
|
+
if (parsed.isValid) {
|
|
1593
|
+
return parsed.toJSDate();
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
return this.invalid();
|
|
1597
|
+
}
|
|
1598
|
+
getFirstDayOfWeek() {
|
|
1599
|
+
return 1;
|
|
1600
|
+
}
|
|
1601
|
+
ngOnDestroy() {
|
|
1602
|
+
this.destroyNotifier$.next();
|
|
1603
|
+
this.destroyNotifier$.complete();
|
|
1604
|
+
}
|
|
1605
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaYearMonthAdapter, deps: [{ token: i1$4.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1606
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaYearMonthAdapter }); }
|
|
1607
|
+
}
|
|
1608
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: OnemrvaYearMonthAdapter, decorators: [{
|
|
1609
|
+
type: Injectable
|
|
1610
|
+
}], ctorParameters: () => [{ type: i1$4.TranslateService }] });
|
|
1429
1611
|
|
|
1430
1612
|
/*
|
|
1431
1613
|
* Public API Surface of shared
|
|
@@ -1435,5 +1617,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
|
|
|
1435
1617
|
* Generated bundle index. Do not edit.
|
|
1436
1618
|
*/
|
|
1437
1619
|
|
|
1438
|
-
export { CDNUrlModeOptions, CDN_URLS, CDN_URL_MODE, ClipboardIconComponent, CommonCountryLookupService, DefaultStorage, DigitOnlyDirective, HttpRequestCache, IBAN_SUPPORTED_COUNTRIES, IfWidthIsDirective, MatRowClickableDirective, NISS_MASK,
|
|
1620
|
+
export { CDNUrlModeOptions, CDN_URLS, CDN_URL_MODE, ClipboardIconComponent, CommonCountryLookupService, DefaultStorage, DigitOnlyDirective, HttpRequestCache, IBAN_SUPPORTED_COUNTRIES, IfWidthIsDirective, MatRowClickableDirective, NISS_MASK, ONEMRVA_MAT_LUXON_DATE_FORMATS, ONEMRVA_MAT_LUXON_YEAR_MONTH_FORMATS, ONEMRVA_MAT_NATIVE_DATE_FORMAT, ONEMRVA_MAT_NATIVE_YEAR_MONTH_FORMAT, OnemRvaCDNCountryService, OnemRvaCDNMimeService, OnemRvaCDNService, OnemRvaClipboardDirective, OnemRvaColorDirective, OnemRvaIconRightDirective, OnemrvaBcePipe, OnemrvaDateAdapter, OnemrvaDatepickerLuxonSharedModule, OnemrvaDatepickerLuxonYearMonthSharedModule, OnemrvaDatepickerSharedModule, OnemrvaDatepickerYearMonthSharedModule, OnemrvaMaskDirective, OnemrvaNissPipe, OnemrvaSharedModule, OnemrvaTranslateCDNLoader, OnemrvaTranslateHttpLoader, OnemrvaValidators, OnemrvaYearMonthAdapter, RequestTimes, WebComponentOverlayContainer, bankAccountValidator, directives, setTranslationLanguage, setTranslationLanguageFromWO };
|
|
1439
1621
|
//# sourceMappingURL=onemrvapublic-design-system-shared.mjs.map
|