@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onemrvapublic-design-system.mjs","sources":["../../../../projects/onemrva/design-system/version.ts","../../../../projects/onemrva/design-system/index.ts","../../../../projects/onemrva/design-system/onemrvapublic-design-system.ts"],"sourcesContent":["// Auto-generated — do not edit\nexport const VERSION = '22.0.
|
|
1
|
+
{"version":3,"file":"onemrvapublic-design-system.mjs","sources":["../../../../projects/onemrva/design-system/version.ts","../../../../projects/onemrva/design-system/index.ts","../../../../projects/onemrva/design-system/onemrvapublic-design-system.ts"],"sourcesContent":["// Auto-generated — do not edit\nexport const VERSION = '22.1.0-develop.1';\n","export { VERSION } from './version';\n\nexport const ɵɵtsModuleIndicatorApiExtractorWorkaround = true;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AACO,MAAM,OAAO,GAAG;;ACChB,MAAM,yCAAyC,GAAG;;ACFzD;;AAEG;;;;"}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use '../../theme/palettes/palette' as palette;
|
|
4
|
+
|
|
5
|
+
$_accent: map.get(palette.$palette, primary); // or secondary / info / …
|
|
6
|
+
|
|
1
7
|
:host {
|
|
2
|
-
--sticker-border-width:
|
|
8
|
+
--sticker-border-width: 1px;
|
|
3
9
|
|
|
4
10
|
overflow: hidden;
|
|
5
11
|
text-overflow: ellipsis;
|
|
@@ -7,22 +13,64 @@
|
|
|
7
13
|
display: inline-flex;
|
|
8
14
|
flex-shrink: 0;
|
|
9
15
|
align-items: center;
|
|
16
|
+
line-height: 1.2rem;
|
|
10
17
|
cursor: default;
|
|
11
18
|
background: var(--mat-sys-surface);
|
|
12
19
|
opacity: 1;
|
|
13
|
-
border-radius: var(--
|
|
14
|
-
padding:
|
|
20
|
+
border-radius: var(--half-border-radius);
|
|
21
|
+
padding: 0 var(--spacer);
|
|
15
22
|
font: var(--mat-sys-label-medium);
|
|
16
|
-
|
|
17
|
-
border: 2px solid var(--mat-sys-primary);
|
|
23
|
+
border: 1px solid var(--mat-sys-primary);
|
|
18
24
|
color: var(--mat-sys-primary);
|
|
19
25
|
|
|
26
|
+
&.mat-primary {
|
|
27
|
+
color: white;
|
|
28
|
+
background: var(--mat-sys-primary);
|
|
29
|
+
}
|
|
30
|
+
|
|
20
31
|
&.mat-accent {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
32
|
+
@include mat.theme-overrides(
|
|
33
|
+
(
|
|
34
|
+
primary: light-dark(#{map.get($_accent, 40)}, #{map.get($_accent, 80)}),
|
|
35
|
+
on-primary: light-dark(
|
|
36
|
+
#{map.get($_accent, 100)},
|
|
37
|
+
#{map.get($_accent, 10)}
|
|
38
|
+
),
|
|
39
|
+
)
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
background: var(--mat-sys-primary);
|
|
43
|
+
color: var(--mat-sys-on-primary);
|
|
44
|
+
border-color: var(--mat-sys-primary);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.mat-success {
|
|
48
|
+
$local_map: map.get(palette.$palette, success);
|
|
49
|
+
color: #{map.get($local_map, 30)};
|
|
50
|
+
background: #{map.get($local_map, 90)};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.mat-error {
|
|
54
|
+
$local_map: map.get(palette.$palette, error);
|
|
55
|
+
color: #{map.get($local_map, 30)};
|
|
56
|
+
background: #{map.get($local_map, 90)};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.mat-info {
|
|
60
|
+
$local_map: map.get(palette.$palette, info);
|
|
61
|
+
color: #{map.get($local_map, 30)};
|
|
62
|
+
background: #{map.get($local_map, 90)};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.mat-warn {
|
|
66
|
+
$local_map: map.get(palette.$palette, warn);
|
|
67
|
+
color: #{map.get($local_map, 30)};
|
|
68
|
+
background: #{map.get($local_map, 90)};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.mat-neutral {
|
|
72
|
+
$local_map: map.get(palette.$palette, neutral);
|
|
73
|
+
color: #{map.get($local_map, 30)};
|
|
74
|
+
background: #{map.get($local_map, 90)};
|
|
27
75
|
}
|
|
28
76
|
}
|
package/package.json
CHANGED
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
border-radius: 500px;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
&.mat-mdc-unelevated-button
|
|
73
|
+
&.mat-mdc-unelevated-button {
|
|
74
74
|
background: var(--background-gradient);
|
|
75
75
|
.onemrva-spinner {
|
|
76
76
|
svg {
|
|
@@ -92,11 +92,17 @@
|
|
|
92
92
|
}
|
|
93
93
|
&.mdc-button--outlined {
|
|
94
94
|
background: var(--mat-sys-surface);
|
|
95
|
-
}
|
|
96
|
-
&.mat-mdc-button-disabled {
|
|
97
95
|
.onemrva-spinner {
|
|
98
96
|
svg {
|
|
99
|
-
fill: color-mix(in srgb, var(--mat-sys-
|
|
97
|
+
fill: color-mix(in srgb, var(--mat-sys-primary) 100%, transparent);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.mat-mdc-button-disabled {
|
|
102
|
+
.onemrva-spinner {
|
|
103
|
+
svg {
|
|
104
|
+
fill: color-mix(in srgb, var(--mat-sys-primary) 11%, transparent);
|
|
105
|
+
}
|
|
100
106
|
}
|
|
101
107
|
}
|
|
102
108
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ElementRef, InjectionToken, OnDestroy, OnInit, AfterViewInit,
|
|
2
|
+
import { ElementRef, InjectionToken, OnDestroy, OnInit, AfterViewInit, PipeTransform, ErrorHandler, Provider } from '@angular/core';
|
|
3
3
|
import { MatDateFormats, NativeDateAdapter, DateAdapter } from '@angular/material/core';
|
|
4
4
|
import * as rxjs from 'rxjs';
|
|
5
5
|
import { Observable, Subject, BehaviorSubject, ReplaySubject } from 'rxjs';
|
|
6
|
-
import { TranslateService, MissingTranslationHandler, MissingTranslationHandlerParams
|
|
6
|
+
import { TranslateService, MissingTranslationHandler, MissingTranslationHandlerParams } from '@ngx-translate/core';
|
|
7
7
|
import { HttpClient } from '@angular/common/http';
|
|
8
8
|
import { ValidatorFn } from '@angular/forms';
|
|
9
9
|
import { OnemrvaMatColor, OnemrvaMatSize } from '@onemrvapublic/design-system/utils';
|
|
@@ -217,6 +217,12 @@ declare class OnemRvaReadonlyDirective {
|
|
|
217
217
|
|
|
218
218
|
declare const directives: any[];
|
|
219
219
|
|
|
220
|
+
declare enum OnemrvaLanguages {
|
|
221
|
+
EN = "en",
|
|
222
|
+
NL = "nl",
|
|
223
|
+
FR = "fr",
|
|
224
|
+
DE = "de"
|
|
225
|
+
}
|
|
220
226
|
/**
|
|
221
227
|
* Get language from local storage or browser.
|
|
222
228
|
*
|
|
@@ -224,7 +230,8 @@ declare const directives: any[];
|
|
|
224
230
|
* @param languages
|
|
225
231
|
* @param default_language
|
|
226
232
|
*/
|
|
227
|
-
declare function setTranslationLanguage(translateService: TranslateService, languages?:
|
|
233
|
+
declare function setTranslationLanguage(translateService: TranslateService, languages?: readonly OnemrvaLanguages[], default_language?: OnemrvaLanguages): () => Promise<void>;
|
|
234
|
+
type WOLanguage = OnemrvaLanguages.FR | OnemrvaLanguages.NL;
|
|
228
235
|
/**
|
|
229
236
|
* Get language from WO
|
|
230
237
|
*
|
|
@@ -232,7 +239,7 @@ declare function setTranslationLanguage(translateService: TranslateService, lang
|
|
|
232
239
|
* @param languages
|
|
233
240
|
* @param default_language
|
|
234
241
|
*/
|
|
235
|
-
declare function setTranslationLanguageFromWO(translateService: TranslateService, languages?:
|
|
242
|
+
declare function setTranslationLanguageFromWO(translateService: TranslateService, languages?: readonly WOLanguage[], default_language?: WOLanguage): () => Promise<void>;
|
|
236
243
|
|
|
237
244
|
interface OnemRvaCommonCountry {
|
|
238
245
|
className: 'be.fgov.onerva.lookup.wppt.persistence.model.common.Country';
|
|
@@ -258,6 +265,18 @@ interface OnemRvaCommonCountry {
|
|
|
258
265
|
singlePropertisCollectionMap: Record<string, any>;
|
|
259
266
|
}
|
|
260
267
|
|
|
268
|
+
declare class OnemrvaBcePipe implements PipeTransform {
|
|
269
|
+
transform(value: string): string;
|
|
270
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaBcePipe, never>;
|
|
271
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<OnemrvaBcePipe, "onemrvaBce", true>;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
declare class OnemrvaNissPipe implements PipeTransform {
|
|
275
|
+
transform(value: string): string;
|
|
276
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaNissPipe, never>;
|
|
277
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<OnemrvaNissPipe, "onemrvaNiss", true>;
|
|
278
|
+
}
|
|
279
|
+
|
|
261
280
|
declare class CommonCountryLookupService {
|
|
262
281
|
protected _countries$: ReplaySubject<OnemRvaCommonCountry[]>;
|
|
263
282
|
protected _customersInitialized: boolean;
|
|
@@ -394,44 +413,6 @@ declare class OnemrvaMissingTranslationHandler implements MissingTranslationHand
|
|
|
394
413
|
handle(params: MissingTranslationHandlerParams): string;
|
|
395
414
|
}
|
|
396
415
|
|
|
397
|
-
declare class OnemrvaTranslateCDNLoader implements TranslateLoader {
|
|
398
|
-
private cdn;
|
|
399
|
-
projects: string[];
|
|
400
|
-
prefix: string;
|
|
401
|
-
suffix: string;
|
|
402
|
-
constructor(cdn: OnemRvaCDNService, projects?: string[], prefix?: string, suffix?: string);
|
|
403
|
-
/**
|
|
404
|
-
* Gets the translations from the server
|
|
405
|
-
*/
|
|
406
|
-
getTranslation(lang: string): Observable<any>;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
declare class OnemrvaTranslateHttpLoader implements TranslateLoader {
|
|
410
|
-
private http;
|
|
411
|
-
prefix: string;
|
|
412
|
-
suffix: string;
|
|
413
|
-
modules: string[];
|
|
414
|
-
constructor(http: HttpClient, prefix?: string, suffix?: string, modules?: string[]);
|
|
415
|
-
/**
|
|
416
|
-
* Gets the translations from the server.
|
|
417
|
-
* Design-system module translations load first; the project's own
|
|
418
|
-
* translation file is merged last so it overrides on key collisions.
|
|
419
|
-
*/
|
|
420
|
-
getTranslation(lang: string): Observable<TranslationObject>;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
declare class OnemrvaBcePipe implements PipeTransform {
|
|
424
|
-
transform(value: string): string;
|
|
425
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaBcePipe, never>;
|
|
426
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<OnemrvaBcePipe, "onemrvaBce", true>;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
declare class OnemrvaNissPipe implements PipeTransform {
|
|
430
|
-
transform(value: string): string;
|
|
431
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OnemrvaNissPipe, never>;
|
|
432
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<OnemrvaNissPipe, "onemrvaNiss", true>;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
416
|
declare class OnemrvaValidators {
|
|
436
417
|
private static bceValidator;
|
|
437
418
|
static bce(required?: boolean): ValidatorFn;
|
|
@@ -525,5 +506,5 @@ declare function onemrvaThemeProvider(): i0.EnvironmentProviders;
|
|
|
525
506
|
declare const LOOKUP_COUNTRY_SERVICE_URL: InjectionToken<string>;
|
|
526
507
|
declare const ONEMRVA_THEME_CLASS: InjectionToken<string>;
|
|
527
508
|
|
|
528
|
-
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,
|
|
529
|
-
export type { HttpCacheOptions, HttpCacheStorage, MimeDefinition, OSMAddress, OSMResult, OnemRvaCommonCountry, OnemrvaMaterialCountry };
|
|
509
|
+
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 };
|
|
510
|
+
export type { HttpCacheOptions, HttpCacheStorage, MimeDefinition, OSMAddress, OSMResult, OnemRvaCommonCountry, OnemrvaMaterialCountry, WOLanguage };
|