@onemrvapublic/design-system 22.0.2 → 22.1.0-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/README.md +8 -4
- package/assets/i18n/en.json +0 -2
- package/assets/i18n/nl.json +0 -2
- package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs +2 -2
- package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-shared.mjs +53 -93
- package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system.mjs +1 -1
- package/fesm2022/onemrvapublic-design-system.mjs.map +1 -1
- package/mat-sticker/src/onemrva-mat-sticker.component.scss +59 -11
- package/package.json +1 -1
- package/theme/overrides/_button.scss +10 -4
- package/types/onemrvapublic-design-system-shared.d.ts +25 -44
- package/types/onemrvapublic-design-system.d.ts +1 -1
package/README.md
CHANGED
|
@@ -33,13 +33,17 @@ If you need access to our design system board, send us a message.
|
|
|
33
33
|
@Bram Decuypere (NL / EN)
|
|
34
34
|
## Changelog
|
|
35
35
|
|
|
36
|
-
### 22.0.
|
|
36
|
+
### 22.1.0-develop.1
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
# [22.1.0-develop.1](https://rvaonem.ghe.com/AS-DESIGN-SYSTEM/core/compare/v22.0.3-develop.1...v22.1.0-develop.1) (2026-08-12)
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
### Bug Fixes
|
|
42
42
|
|
|
43
|
-
* **button-loading:** fix
|
|
44
|
-
|
|
43
|
+
* **button-loading:** fix colors loading disabled state ([203ed45](https://rvaonem.ghe.com/AS-DESIGN-SYSTEM/core/commit/203ed4560cb201b5cc0ae91ae342732aa0ef4824))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
* **sticker:** change accent to primary colors + adapt ([d68da51](https://rvaonem.ghe.com/AS-DESIGN-SYSTEM/core/commit/d68da51100d2879896b3908981bd602ae877a414))
|
|
45
49
|
|
package/assets/i18n/en.json
CHANGED
package/assets/i18n/nl.json
CHANGED
|
@@ -103,9 +103,7 @@
|
|
|
103
103
|
"error.occurred": "Er is een fout opgetreden, probeer het opnieuw",
|
|
104
104
|
"confirm.delete": "Dit bestand verwijderen?",
|
|
105
105
|
"are.you.sure": "Weet u zeker dat u het bestand wilt verwijderen",
|
|
106
|
-
"remove": "Verwijderen",
|
|
107
106
|
"cancel": "Annuleren",
|
|
108
|
-
"retry": "Opnieuw proberen",
|
|
109
107
|
"or": "of",
|
|
110
108
|
"too.many.files": "Limiet van {{limit}} bestand(en) bereikt",
|
|
111
109
|
"total.max.size.exceeded": "De totale bestandsgrootte overschrijdt de toegestane limiet van {{ maxTotalFileSize }}"
|
|
@@ -11,11 +11,11 @@ import { ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
|
11
11
|
*/
|
|
12
12
|
class OnemrvaMatStickerComponent {
|
|
13
13
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatStickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.4", type: OnemrvaMatStickerComponent, isStandalone: true, selector: "onemrva-mat-sticker", ngImport: i0, template: ` <ng-content />`, isInline: true, styles: [":host{--sticker-border-width:
|
|
14
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.4", type: OnemrvaMatStickerComponent, isStandalone: true, selector: "onemrva-mat-sticker", ngImport: i0, template: ` <ng-content />`, isInline: true, styles: [":host{--sticker-border-width: 1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-flex;flex-shrink:0;align-items:center;line-height:1.2rem;cursor:default;background:var(--mat-sys-surface);opacity:1;border-radius:var(--half-border-radius);padding:0 var(--spacer);font:var(--mat-sys-label-medium);border:1px solid var(--mat-sys-primary);color:var(--mat-sys-primary)}:host.mat-primary{color:#fff;background:var(--mat-sys-primary)}:host.mat-accent{--mat-sys-primary: light-dark(#625d9c, #c6c0ff);--mat-sys-on-primary: light-dark(#ffffff, #180e54);background:var(--mat-sys-primary);color:var(--mat-sys-on-primary);border-color:var(--mat-sys-primary)}:host.mat-success{color:#00522f;background:#ebfff4}:host.mat-error{color:#b3291a;background:#ffebe6}:host.mat-info{color:#301ed3;background:#e0e0fc}:host.mat-warn{color:#bf4e03;background:#fff4eb}:host.mat-neutral{color:#514f52;background:#d8d1dc}\n"] }); }
|
|
15
15
|
}
|
|
16
16
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.4", ngImport: i0, type: OnemrvaMatStickerComponent, decorators: [{
|
|
17
17
|
type: Component,
|
|
18
|
-
args: [{ selector: 'onemrva-mat-sticker', template: ` <ng-content />`, imports: [], standalone: true, encapsulation: ViewEncapsulation.Emulated, styles: [":host{--sticker-border-width:
|
|
18
|
+
args: [{ selector: 'onemrva-mat-sticker', template: ` <ng-content />`, imports: [], standalone: true, encapsulation: ViewEncapsulation.Emulated, styles: [":host{--sticker-border-width: 1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-flex;flex-shrink:0;align-items:center;line-height:1.2rem;cursor:default;background:var(--mat-sys-surface);opacity:1;border-radius:var(--half-border-radius);padding:0 var(--spacer);font:var(--mat-sys-label-medium);border:1px solid var(--mat-sys-primary);color:var(--mat-sys-primary)}:host.mat-primary{color:#fff;background:var(--mat-sys-primary)}:host.mat-accent{--mat-sys-primary: light-dark(#625d9c, #c6c0ff);--mat-sys-on-primary: light-dark(#ffffff, #180e54);background:var(--mat-sys-primary);color:var(--mat-sys-on-primary);border-color:var(--mat-sys-primary)}:host.mat-success{color:#00522f;background:#ebfff4}:host.mat-error{color:#b3291a;background:#ffebe6}:host.mat-info{color:#301ed3;background:#e0e0fc}:host.mat-warn{color:#bf4e03;background:#fff4eb}:host.mat-neutral{color:#514f52;background:#d8d1dc}\n"] }]
|
|
19
19
|
}] });
|
|
20
20
|
|
|
21
21
|
class OnemrvaMatStickerModule {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onemrvapublic-design-system-mat-sticker.mjs","sources":["../../../../projects/onemrva/design-system/mat-sticker/src/onemrva-mat-sticker.component.ts","../../../../projects/onemrva/design-system/mat-sticker/src/onemrva-mat-sticker.module.ts","../../../../projects/onemrva/design-system/mat-sticker/index.ts","../../../../projects/onemrva/design-system/mat-sticker/onemrvapublic-design-system-mat-sticker.ts"],"sourcesContent":["import { Component, ViewEncapsulation } from '@angular/core';\n\n/**\n * Inline badge or tag for displaying status labels.\n *\n * This component exposes no configurable inputs or outputs.\n *\n * @MatKeywords sticker, badge, label, tag, status\n * @MatGroup Data\n */\n@Component({\n selector: 'onemrva-mat-sticker',\n template: ` <ng-content />`,\n styleUrl: 'onemrva-mat-sticker.component.scss',\n imports: [],\n standalone: true,\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class OnemrvaMatStickerComponent {}\n","import { NgModule } from '@angular/core';\nimport { OnemrvaMatStickerComponent } from './onemrva-mat-sticker.component';\n\n@NgModule({\n declarations: [],\n imports: [OnemrvaMatStickerComponent],\n exports: [OnemrvaMatStickerComponent],\n})\nexport class OnemrvaMatStickerModule {}\n","/*\n * Public API Surface of mat-sticker\n */\n\nexport * from './src/onemrva-mat-sticker.component';\nexport * from './src/onemrva-mat-sticker.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;;;;;;AAOG;MASU,0BAA0B,CAAA;8GAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,+EAN3B,CAAA,eAAA,CAAiB,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"onemrvapublic-design-system-mat-sticker.mjs","sources":["../../../../projects/onemrva/design-system/mat-sticker/src/onemrva-mat-sticker.component.ts","../../../../projects/onemrva/design-system/mat-sticker/src/onemrva-mat-sticker.module.ts","../../../../projects/onemrva/design-system/mat-sticker/index.ts","../../../../projects/onemrva/design-system/mat-sticker/onemrvapublic-design-system-mat-sticker.ts"],"sourcesContent":["import { Component, ViewEncapsulation } from '@angular/core';\n\n/**\n * Inline badge or tag for displaying status labels.\n *\n * This component exposes no configurable inputs or outputs.\n *\n * @MatKeywords sticker, badge, label, tag, status\n * @MatGroup Data\n */\n@Component({\n selector: 'onemrva-mat-sticker',\n template: ` <ng-content />`,\n styleUrl: 'onemrva-mat-sticker.component.scss',\n imports: [],\n standalone: true,\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class OnemrvaMatStickerComponent {}\n","import { NgModule } from '@angular/core';\nimport { OnemrvaMatStickerComponent } from './onemrva-mat-sticker.component';\n\n@NgModule({\n declarations: [],\n imports: [OnemrvaMatStickerComponent],\n exports: [OnemrvaMatStickerComponent],\n})\nexport class OnemrvaMatStickerModule {}\n","/*\n * Public API Surface of mat-sticker\n */\n\nexport * from './src/onemrva-mat-sticker.component';\nexport * from './src/onemrva-mat-sticker.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;;;;;;AAOG;MASU,0BAA0B,CAAA;8GAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,0BAA0B,+EAN3B,CAAA,eAAA,CAAiB,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,y5BAAA,CAAA,EAAA,CAAA,CAAA;;2FAMhB,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBARtC,SAAS;+BACE,qBAAqB,EAAA,QAAA,EACrB,iBAAiB,EAAA,OAAA,EAElB,EAAE,cACC,IAAI,EAAA,aAAA,EACD,iBAAiB,CAAC,QAAQ,EAAA,MAAA,EAAA,CAAA,y5BAAA,CAAA,EAAA;;;MCR9B,uBAAuB,CAAA;8GAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAvB,uBAAuB,EAAA,OAAA,EAAA,CAHxB,0BAA0B,CAAA,EAAA,OAAA,EAAA,CAC1B,0BAA0B,CAAA,EAAA,CAAA,CAAA;+GAEzB,uBAAuB,EAAA,CAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBALnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;oBAChB,OAAO,EAAE,CAAC,0BAA0B,CAAC;oBACrC,OAAO,EAAE,CAAC,0BAA0B,CAAC;AACtC,iBAAA;;;ACPD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -7,12 +7,12 @@ import { MatTooltipModule } from '@angular/material/tooltip';
|
|
|
7
7
|
import { Clipboard } from '@angular/cdk/clipboard';
|
|
8
8
|
import { DOCUMENT } from '@angular/common';
|
|
9
9
|
import { Platform, _isTestEnvironment } from '@angular/cdk/platform';
|
|
10
|
-
import { Subject, merge, NEVER, take, tap, catchError, startWith, switchMap, shareReplay, filter, finalize, firstValueFrom,
|
|
10
|
+
import { Subject, merge, NEVER, take, tap, catchError, startWith, switchMap, shareReplay, filter, finalize, firstValueFrom, ReplaySubject, skip, distinctUntilChanged, map, of, forkJoin, combineLatestWith, from, takeUntil } from 'rxjs';
|
|
11
11
|
import { OnemrvaMatColor, OnemrvaMatSize } from '@onemrvapublic/design-system/utils';
|
|
12
12
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
13
|
-
import { catchError as catchError$1, map, startWith as startWith$1 } from 'rxjs/operators';
|
|
14
13
|
import { HttpClient, HttpParams } from '@angular/common/http';
|
|
15
14
|
import { __decorate } from 'tslib';
|
|
15
|
+
import { catchError as catchError$1, map as map$1, startWith as startWith$1 } from 'rxjs/operators';
|
|
16
16
|
import { TranslateService } from '@ngx-translate/core';
|
|
17
17
|
import { countrySpecs, validateIBAN, electronicFormatIBAN, ValidationErrorsIBAN } from 'ibantools';
|
|
18
18
|
import parsePhoneNumber from 'libphonenumber-js';
|
|
@@ -1100,6 +1100,16 @@ const directives = [
|
|
|
1100
1100
|
OnemRvaReadonlyDirective,
|
|
1101
1101
|
];
|
|
1102
1102
|
|
|
1103
|
+
var OnemrvaLanguages;
|
|
1104
|
+
(function (OnemrvaLanguages) {
|
|
1105
|
+
OnemrvaLanguages["EN"] = "en";
|
|
1106
|
+
OnemrvaLanguages["NL"] = "nl";
|
|
1107
|
+
OnemrvaLanguages["FR"] = "fr";
|
|
1108
|
+
OnemrvaLanguages["DE"] = "de";
|
|
1109
|
+
})(OnemrvaLanguages || (OnemrvaLanguages = {}));
|
|
1110
|
+
function isSupportedLanguage(value, languages) {
|
|
1111
|
+
return value != null && languages.includes(value);
|
|
1112
|
+
}
|
|
1103
1113
|
/**
|
|
1104
1114
|
* Get language from local storage or browser.
|
|
1105
1115
|
*
|
|
@@ -1107,31 +1117,29 @@ const directives = [
|
|
|
1107
1117
|
* @param languages
|
|
1108
1118
|
* @param default_language
|
|
1109
1119
|
*/
|
|
1110
|
-
function setTranslationLanguage(translateService, languages = [
|
|
1120
|
+
function setTranslationLanguage(translateService, languages = [
|
|
1121
|
+
OnemrvaLanguages.EN,
|
|
1122
|
+
OnemrvaLanguages.FR,
|
|
1123
|
+
OnemrvaLanguages.NL,
|
|
1124
|
+
OnemrvaLanguages.DE,
|
|
1125
|
+
], default_language = OnemrvaLanguages.EN) {
|
|
1111
1126
|
return async () => {
|
|
1112
1127
|
translateService.onLangChange.subscribe(value => {
|
|
1113
1128
|
localStorage.setItem('language', value.lang);
|
|
1114
1129
|
});
|
|
1115
|
-
translateService.addLangs(languages);
|
|
1116
|
-
let language =
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
// getting default language
|
|
1131
|
-
if (language === null || languages.indexOf(language) < 0) {
|
|
1132
|
-
language = default_language;
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1130
|
+
translateService.addLangs([...languages]);
|
|
1131
|
+
let language = null;
|
|
1132
|
+
const stored = localStorage.getItem('language');
|
|
1133
|
+
if (isSupportedLanguage(stored, languages)) {
|
|
1134
|
+
language = stored;
|
|
1135
|
+
}
|
|
1136
|
+
if (language === null &&
|
|
1137
|
+
isSupportedLanguage(navigator.language, languages)) {
|
|
1138
|
+
language = navigator.language;
|
|
1139
|
+
}
|
|
1140
|
+
if (language === null) {
|
|
1141
|
+
language =
|
|
1142
|
+
navigator.languages.find((lng) => isSupportedLanguage(lng, languages)) ?? default_language;
|
|
1135
1143
|
}
|
|
1136
1144
|
await firstValueFrom(translateService.use(language));
|
|
1137
1145
|
};
|
|
@@ -1143,67 +1151,19 @@ function setTranslationLanguage(translateService, languages = ['en', 'fr', 'nl',
|
|
|
1143
1151
|
* @param languages
|
|
1144
1152
|
* @param default_language
|
|
1145
1153
|
*/
|
|
1146
|
-
function setTranslationLanguageFromWO(translateService, languages = [
|
|
1154
|
+
function setTranslationLanguageFromWO(translateService, languages = [OnemrvaLanguages.FR, OnemrvaLanguages.NL], default_language = OnemrvaLanguages.FR) {
|
|
1147
1155
|
return async () => {
|
|
1148
|
-
translateService.addLangs(languages);
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
}
|
|
1157
|
-
await firstValueFrom(translateService.use(default_language));
|
|
1156
|
+
translateService.addLangs([...languages]);
|
|
1157
|
+
const stored = localStorage
|
|
1158
|
+
.getItem('be_social_security_workenv_language')
|
|
1159
|
+
?.toLowerCase();
|
|
1160
|
+
const language = isSupportedLanguage(stored, languages)
|
|
1161
|
+
? stored
|
|
1162
|
+
: default_language;
|
|
1163
|
+
await firstValueFrom(translateService.use(language));
|
|
1158
1164
|
};
|
|
1159
1165
|
}
|
|
1160
1166
|
|
|
1161
|
-
class OnemrvaTranslateCDNLoader {
|
|
1162
|
-
constructor(cdn, projects = [], prefix = '/i18n/', suffix = '.json') {
|
|
1163
|
-
this.cdn = cdn;
|
|
1164
|
-
this.projects = projects;
|
|
1165
|
-
this.prefix = prefix;
|
|
1166
|
-
this.suffix = suffix;
|
|
1167
|
-
}
|
|
1168
|
-
/**
|
|
1169
|
-
* Gets the translations from the server
|
|
1170
|
-
*/
|
|
1171
|
-
getTranslation(lang) {
|
|
1172
|
-
return this.cdn.getTranslations(this.projects, lang, this.prefix, this.suffix);
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
class OnemrvaTranslateHttpLoader {
|
|
1177
|
-
constructor(http, prefix = '/assets/i18n/', suffix = '.json', modules = []) {
|
|
1178
|
-
this.http = http;
|
|
1179
|
-
this.prefix = prefix;
|
|
1180
|
-
this.suffix = suffix;
|
|
1181
|
-
this.modules = modules;
|
|
1182
|
-
}
|
|
1183
|
-
/**
|
|
1184
|
-
* Gets the translations from the server.
|
|
1185
|
-
* Design-system module translations load first; the project's own
|
|
1186
|
-
* translation file is merged last so it overrides on key collisions.
|
|
1187
|
-
*/
|
|
1188
|
-
getTranslation(lang) {
|
|
1189
|
-
const dsRequest = this.http
|
|
1190
|
-
.get(`/assets/design-system/i18n/${lang.toLocaleLowerCase()}.json`)
|
|
1191
|
-
.pipe(catchError$1(error => {
|
|
1192
|
-
console.warn('The design system translation file is not properly loaded, have a look at ', error);
|
|
1193
|
-
return of(null);
|
|
1194
|
-
}));
|
|
1195
|
-
const moduleRequests = this.modules.map(m => this.http
|
|
1196
|
-
.get(`${this.prefix}${m}/${lang}${this.suffix}`)
|
|
1197
|
-
.pipe(catchError$1(() => of(null))));
|
|
1198
|
-
const projectRequest = this.http
|
|
1199
|
-
.get(`${this.prefix}${lang}${this.suffix}`)
|
|
1200
|
-
.pipe(catchError$1(() => of(null)));
|
|
1201
|
-
return forkJoin([dsRequest, ...moduleRequests, projectRequest]).pipe(map(all => all
|
|
1202
|
-
.filter((v) => !!v)
|
|
1203
|
-
.reduce((merged, current) => ({ ...merged, ...current }), {})));
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
1167
|
class OnemrvaBcePipe {
|
|
1208
1168
|
transform(value) {
|
|
1209
1169
|
const strOut = value.trim().replace(/\/|\.|-/g, '');
|
|
@@ -1259,7 +1219,7 @@ class CommonCountryLookupService {
|
|
|
1259
1219
|
return this._countries$.pipe(skip(+refresh), distinctUntilChanged());
|
|
1260
1220
|
}
|
|
1261
1221
|
getCountryByCode(code) {
|
|
1262
|
-
return this._countries$.pipe(map
|
|
1222
|
+
return this._countries$.pipe(map(countries => {
|
|
1263
1223
|
const country = countries.find(country => country.code === code);
|
|
1264
1224
|
return country || null;
|
|
1265
1225
|
}));
|
|
@@ -1357,7 +1317,7 @@ class OnemRvaCDNService {
|
|
|
1357
1317
|
}));
|
|
1358
1318
|
}),
|
|
1359
1319
|
];
|
|
1360
|
-
return forkJoin(observables).pipe(map(all => {
|
|
1320
|
+
return forkJoin(observables).pipe(map$1(all => {
|
|
1361
1321
|
return all.filter(v => !!v).reduce((s, c) => ({ ...s, ...c }), {});
|
|
1362
1322
|
}));
|
|
1363
1323
|
}
|
|
@@ -1406,10 +1366,10 @@ class OnemRvaCDNCountryService {
|
|
|
1406
1366
|
this.translateService = inject(TranslateService);
|
|
1407
1367
|
}
|
|
1408
1368
|
getCountries() {
|
|
1409
|
-
return this.cdnService.fetch('/json/countries.json').pipe(map(response => response), // ✅ Explicitly cast response
|
|
1410
|
-
combineLatestWith(from(this.translateService.onLangChange).pipe(startWith$1(this.translateService.getCurrentLang() || 'fr'), map(event => {
|
|
1369
|
+
return this.cdnService.fetch('/json/countries.json').pipe(map$1(response => response), // ✅ Explicitly cast response
|
|
1370
|
+
combineLatestWith(from(this.translateService.onLangChange).pipe(startWith$1(this.translateService.getCurrentLang() || 'fr'), map$1(event => {
|
|
1411
1371
|
return typeof event === 'string' ? event : event.lang;
|
|
1412
|
-
}))), map(([response, currentLang]) => {
|
|
1372
|
+
}))), map$1(([response, currentLang]) => {
|
|
1413
1373
|
// ✅ Explicit type definition
|
|
1414
1374
|
return response
|
|
1415
1375
|
.map((country) => ({
|
|
@@ -1420,7 +1380,7 @@ class OnemRvaCDNCountryService {
|
|
|
1420
1380
|
}));
|
|
1421
1381
|
}
|
|
1422
1382
|
getCountriesByZone(zone) {
|
|
1423
|
-
return this.getCountries().pipe(map(countries => {
|
|
1383
|
+
return this.getCountries().pipe(map$1(countries => {
|
|
1424
1384
|
return countries.filter(country => country.zone === zone);
|
|
1425
1385
|
}));
|
|
1426
1386
|
}
|
|
@@ -1434,19 +1394,19 @@ class OnemRvaCDNCountryService {
|
|
|
1434
1394
|
return country.name;
|
|
1435
1395
|
}
|
|
1436
1396
|
findCountryFromCode(code) {
|
|
1437
|
-
return this.getCountries().pipe(map(countries => {
|
|
1397
|
+
return this.getCountries().pipe(map$1(countries => {
|
|
1438
1398
|
return countries.find((country) => country.code.toLowerCase() === code?.toLowerCase());
|
|
1439
1399
|
}));
|
|
1440
1400
|
}
|
|
1441
1401
|
findCountryFromVIESCode(code) {
|
|
1442
|
-
return this.getCountriesByZone('EU').pipe(map(countries => {
|
|
1402
|
+
return this.getCountriesByZone('EU').pipe(map$1(countries => {
|
|
1443
1403
|
return countries.find((country) => country.pattern.substring(0, 2) === code?.substring(0, 2));
|
|
1444
1404
|
}));
|
|
1445
1405
|
}
|
|
1446
1406
|
findCountryFromPrefix(number) {
|
|
1447
1407
|
if (number === null)
|
|
1448
1408
|
number = '';
|
|
1449
|
-
return this.getCountries().pipe(map(countries => {
|
|
1409
|
+
return this.getCountries().pipe(map$1(countries => {
|
|
1450
1410
|
return countries.find((country) => {
|
|
1451
1411
|
return (country.dial_code === number.substring(0, country.dial_code.length));
|
|
1452
1412
|
});
|
|
@@ -1470,7 +1430,7 @@ class OnemRvaCDNMimeService {
|
|
|
1470
1430
|
getMimesForExtension(extensions) {
|
|
1471
1431
|
return this.cdnService.fetch(OnemRvaCDNMimeService.mimetypeFile).pipe(catchError(() => {
|
|
1472
1432
|
return [];
|
|
1473
|
-
}), map
|
|
1433
|
+
}), map(response => {
|
|
1474
1434
|
return response
|
|
1475
1435
|
.filter(mime => {
|
|
1476
1436
|
return extensions.includes(mime.extension);
|
|
@@ -1483,7 +1443,7 @@ class OnemRvaCDNMimeService {
|
|
|
1483
1443
|
getExtensionsForMime(mimTypes) {
|
|
1484
1444
|
return this.cdnService.fetch(OnemRvaCDNMimeService.mimetypeFile).pipe(catchError(() => {
|
|
1485
1445
|
return [];
|
|
1486
|
-
}), map
|
|
1446
|
+
}), map(response => {
|
|
1487
1447
|
return response
|
|
1488
1448
|
.filter(mime => {
|
|
1489
1449
|
return mimTypes.includes(mime.mimeType);
|
|
@@ -2105,7 +2065,7 @@ function onemrvaDateLuxonYearMonthProvider() {
|
|
|
2105
2065
|
}
|
|
2106
2066
|
|
|
2107
2067
|
// Auto-generated — do not edit
|
|
2108
|
-
const VERSION = '22.0.
|
|
2068
|
+
const VERSION = '22.1.0-develop.1';
|
|
2109
2069
|
|
|
2110
2070
|
function onemrvaThemeProvider() {
|
|
2111
2071
|
return makeEnvironmentProviders([
|
|
@@ -2154,5 +2114,5 @@ function onemrvaThemeProvider() {
|
|
|
2154
2114
|
* Generated bundle index. Do not edit.
|
|
2155
2115
|
*/
|
|
2156
2116
|
|
|
2157
|
-
export { CDNUrlModeOptions, CDN_URLS, CDN_URL_MODE, CacheService, ClipboardIconComponent, CommonCountryLookupService, DefaultStorage, DigitOnlyDirective, HttpRequestCache, IBAN_SUPPORTED_COUNTRIES, IfWidthIsDirective, LOOKUP_COUNTRY_SERVICE_URL, LOOKUP_COUNTRY_URL, 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, ONEMRVA_THEME, ONEMRVA_THEME_CLASS, OnemRvaCDNCountryService, OnemRvaCDNMimeService, OnemRvaCDNService, OnemRvaClipboardDirective, OnemRvaColorDirective, OnemRvaIconRightDirective, OnemRvaOSMService, OnemRvaReadonlyDirective, OnemRvaSizeDirective, OnemrvaBcePipe, OnemrvaDateFormatDirective, OnemrvaErrorHandler, OnemrvaLuxonDateAdapter, OnemrvaMaskDirective, OnemrvaMissingTranslationHandler, OnemrvaNativeDateAdapter, OnemrvaNissPipe, OnemrvaSharedModule,
|
|
2117
|
+
export { CDNUrlModeOptions, CDN_URLS, CDN_URL_MODE, CacheService, ClipboardIconComponent, CommonCountryLookupService, DefaultStorage, DigitOnlyDirective, HttpRequestCache, IBAN_SUPPORTED_COUNTRIES, IfWidthIsDirective, LOOKUP_COUNTRY_SERVICE_URL, LOOKUP_COUNTRY_URL, 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, ONEMRVA_THEME, ONEMRVA_THEME_CLASS, OnemRvaCDNCountryService, OnemRvaCDNMimeService, OnemRvaCDNService, OnemRvaClipboardDirective, OnemRvaColorDirective, OnemRvaIconRightDirective, OnemRvaOSMService, OnemRvaReadonlyDirective, OnemRvaSizeDirective, OnemrvaBcePipe, OnemrvaDateFormatDirective, OnemrvaErrorHandler, OnemrvaLanguages, OnemrvaLuxonDateAdapter, OnemrvaMaskDirective, OnemrvaMissingTranslationHandler, OnemrvaNativeDateAdapter, OnemrvaNissPipe, OnemrvaSharedModule, OnemrvaValidators, RequestTimes, SEPA_ONLY_SUPPORTED_COUNTRIES, WebComponentOverlayContainer, bankAccountValidator, directives, onemrvaDateLuxonProvider, onemrvaDateLuxonYearMonthProvider, onemrvaDateNativeProvider, onemrvaDateNativeYearMonthProvider, onemrvaThemeProvider, phoneNumberValidator, setTranslationLanguage, setTranslationLanguageFromWO };
|
|
2158
2118
|
//# sourceMappingURL=onemrvapublic-design-system-shared.mjs.map
|