@onemrvapublic/design-system 20.3.0-develop.3 → 20.3.0-develop.5

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.
Files changed (50) hide show
  1. package/fesm2022/onemrvapublic-design-system-layout.mjs +1 -1
  2. package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -1
  3. package/fesm2022/onemrvapublic-design-system-mat-address.mjs +52 -20
  4. package/fesm2022/onemrvapublic-design-system-mat-address.mjs.map +1 -1
  5. package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs +9 -2
  6. package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs.map +1 -1
  7. package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs +2 -2
  8. package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs.map +1 -1
  9. package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs +2 -2
  10. package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs.map +1 -1
  11. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +15 -31
  12. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -1
  13. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +18 -27
  14. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs.map +1 -1
  15. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +2 -2
  16. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -1
  17. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +5 -3
  18. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs.map +1 -1
  19. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +2 -2
  20. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs.map +1 -1
  21. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs +2 -2
  22. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs.map +1 -1
  23. package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs +2 -2
  24. package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs.map +1 -1
  25. package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +1 -1
  26. package/fesm2022/onemrvapublic-design-system-mat-toast.mjs.map +1 -1
  27. package/fesm2022/onemrvapublic-design-system-shared.mjs +26 -20
  28. package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
  29. package/fesm2022/onemrvapublic-design-system.mjs +135 -113
  30. package/fesm2022/onemrvapublic-design-system.mjs.map +1 -1
  31. package/index.d.ts +48 -36
  32. package/mat-address/index.d.ts +18 -8
  33. package/mat-address/src/onemrva-address.scss +3 -39
  34. package/mat-avatar/src/onemrva-mat-avatar.component.scss +0 -2
  35. package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.scss +0 -2
  36. package/mat-choice-chip/index.d.ts +1 -0
  37. package/mat-country-item/src/onemrva-mat-country-item.component.scss +6 -0
  38. package/mat-input-birthplace/index.d.ts +9 -9
  39. package/mat-input-country/index.d.ts +12 -10
  40. package/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.scss +7 -0
  41. package/mat-multi-select/index.d.ts +1 -1
  42. package/mat-multi-select/src/onemrva-mat-multi-select.component.scss +0 -2
  43. package/mat-notification/src/onemrva-mat-notification.component.scss +0 -2
  44. package/mat-selectable-box/src/onemrva-mat-selectable-box.component.scss +6 -1
  45. package/mat-sticker/src/onemrva-mat-sticker.component.scss +0 -2
  46. package/mat-task-list/src/onemrva-mat-task-list.component.scss +0 -4
  47. package/mat-toast/src/onemrva-mat-toast.component.scss +0 -2
  48. package/package.json +1 -1
  49. package/shared/index.d.ts +10 -11
  50. package/_utils.scss +0 -30
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, ElementRef, Component, InjectionToken, Injectable, HostListener, Directive, HostBinding, Input, EventEmitter, Output, TemplateRef, ViewContainerRef, Renderer2, ComponentFactoryResolver, ContentChildren, Pipe, RendererFactory2, NgModule, ErrorHandler } from '@angular/core';
2
+ import { inject, ElementRef, Component, InjectionToken, Injectable, HostListener, Directive, HostBinding, Input, EventEmitter, Output, TemplateRef, ViewContainerRef, Renderer2, ComponentFactoryResolver, input, Pipe, RendererFactory2, NgModule, ErrorHandler } from '@angular/core';
3
3
  import * as i1 from '@angular/material/icon';
4
4
  import { MatIconModule } from '@angular/material/icon';
5
5
  import * as i2 from '@angular/material/tooltip';
@@ -10,7 +10,6 @@ import { Platform, _isTestEnvironment } from '@angular/cdk/platform';
10
10
  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';
11
11
  import { OnemrvaMatColor, OnemrvaMatSize } from '@onemrvapublic/design-system/utils';
12
12
  import { BreakpointObserver } from '@angular/cdk/layout';
13
- import { MatInput } from '@angular/material/input';
14
13
  import { catchError as catchError$1, map, startWith as startWith$1 } from 'rxjs/operators';
15
14
  import { HttpClient, HttpParams } from '@angular/common/http';
16
15
  import { __decorate } from 'tslib';
@@ -467,7 +466,7 @@ class OnemRvaColorDirective {
467
466
  return this.color === OnemrvaMatColor.NEUTRAL;
468
467
  }
469
468
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: OnemRvaColorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
470
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.7", type: OnemRvaColorDirective, isStandalone: true, selector: "onemrva-mat-selectable-box[color],div[color],onemrva-mat-avatar[color],mat-card[color],mat-toolbar[color],onemrva-mat-spinner[color],onemrva-mat-notification[color],onemrva-mat-sticker[color],onemrva-mat-panel[color],onemrva-mat-task[color],onemrva-mat-choice-chip[color],mat-form-field[color],button[color],mat-icon[color],mat-chip[color],mat-chip-option[color]", inputs: { color: "color" }, host: { properties: { "class.mat-primary": "this._isPrimary", "class.mat-accent": "this._isAccent", "class.mat-error": "this._isError", "class.mat-warn": "this._isWarn", "class.mat-success": "this._isSuccess", "class.mat-info": "this._isInfo", "class.mat-neutral": "this._isNeutral" } }, ngImport: i0 }); }
469
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.7", type: OnemRvaColorDirective, isStandalone: true, selector: "onemrva-mat-selectable-box[color],div[color],onemrva-mat-avatar[color],mat-card[color],mat-toolbar[color],onemrva-mat-spinner[color],onemrva-mat-notification[color],onemrva-mat-task-list[color],onemrva-mat-sticker[color],onemrva-mat-panel[color],onemrva-mat-task[color],onemrva-mat-choice-chip[color],mat-form-field[color],button[color],mat-icon[color],mat-chip[color],mat-chip-option[color]", inputs: { color: "color" }, host: { properties: { "class.mat-primary": "this._isPrimary", "class.mat-accent": "this._isAccent", "class.mat-error": "this._isError", "class.mat-warn": "this._isWarn", "class.mat-success": "this._isSuccess", "class.mat-info": "this._isInfo", "class.mat-neutral": "this._isNeutral" } }, ngImport: i0 }); }
471
470
  }
472
471
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: OnemRvaColorDirective, decorators: [{
473
472
  type: Directive,
@@ -479,6 +478,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImpor
479
478
  'mat-toolbar[color],' +
480
479
  'onemrva-mat-spinner[color],' +
481
480
  'onemrva-mat-notification[color],' +
481
+ 'onemrva-mat-task-list[color],' +
482
482
  'onemrva-mat-sticker[color],' +
483
483
  'onemrva-mat-panel[color],' +
484
484
  'onemrva-mat-task[color],' +
@@ -1074,28 +1074,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImpor
1074
1074
  args: ['blur']
1075
1075
  }] } });
1076
1076
 
1077
- class ReadOnlyFormDirective {
1077
+ class OnemRvaReadonlyDirective {
1078
1078
  constructor() {
1079
- this.isReadOnly = true;
1079
+ this.readonly = input(true, ...(ngDevMode ? [{ debugName: "readonly" }] : []));
1080
1080
  }
1081
- ngAfterViewInit() {
1082
- this.matInputs.forEach(matFormField => {
1083
- matFormField.readonly = true;
1084
- });
1081
+ /** @hidden @internal */
1082
+ get isReadOnly() {
1083
+ return this.readonly();
1085
1084
  }
1086
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: ReadOnlyFormDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1087
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.7", type: ReadOnlyFormDirective, isStandalone: true, selector: "form[onemrva-readonly], mat-form-field[onemrva-readonly]", host: { properties: { "class.onemrva-readonly": "this.isReadOnly" } }, queries: [{ propertyName: "matInputs", predicate: MatInput, descendants: true }], ngImport: i0 }); }
1085
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: OnemRvaReadonlyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1086
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.7", type: OnemRvaReadonlyDirective, isStandalone: true, selector: "form[readonly], mat-checkbox[readonly], mat-radio-group[readonly], mat-form-field[readonly], onemrva-mat-input-phone[readonly],onemrva-mat-task-list[readonly],onemrva-mat-selectable-box[readonly],onemrva-mat-choice-chip[readonly],onemrva-mat-input-birthplace[readonly],onemrva-mat-input-country[readonly],onemrva-mat-input-enterprise-number[readonly]", inputs: { readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.onemrva-readonly": "this.isReadOnly" } }, ngImport: i0 }); }
1088
1087
  }
1089
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: ReadOnlyFormDirective, decorators: [{
1088
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: OnemRvaReadonlyDirective, decorators: [{
1090
1089
  type: Directive,
1091
1090
  args: [{
1092
- selector: 'form[onemrva-readonly], mat-form-field[onemrva-readonly]',
1091
+ selector: 'form[readonly], ' +
1092
+ 'mat-checkbox[readonly], ' +
1093
+ 'mat-radio-group[readonly], ' +
1094
+ 'mat-form-field[readonly], ' +
1095
+ 'onemrva-mat-input-phone[readonly],' +
1096
+ 'onemrva-mat-task-list[readonly],' +
1097
+ 'onemrva-mat-selectable-box[readonly],' +
1098
+ 'onemrva-mat-choice-chip[readonly],' +
1099
+ 'onemrva-mat-input-birthplace[readonly],' +
1100
+ 'onemrva-mat-input-country[readonly],' +
1101
+ 'onemrva-mat-input-enterprise-number[readonly]',
1093
1102
  standalone: true,
1094
1103
  }]
1095
- }], propDecorators: { matInputs: [{
1096
- type: ContentChildren,
1097
- args: [MatInput, { descendants: true }]
1098
- }], isReadOnly: [{
1104
+ }], propDecorators: { isReadOnly: [{
1099
1105
  type: HostBinding,
1100
1106
  args: ['class.onemrva-readonly']
1101
1107
  }] } });
@@ -1164,7 +1170,7 @@ const directives = [
1164
1170
  OnemRvaColorDirective,
1165
1171
  OnemrvaMaskDirective,
1166
1172
  OnemrvaDateFormatDirective,
1167
- ReadOnlyFormDirective,
1173
+ OnemRvaReadonlyDirective,
1168
1174
  ];
1169
1175
 
1170
1176
  /**
@@ -1759,7 +1765,7 @@ const bankAccountValidator = (allowEmptyCountry = true) => {
1759
1765
 
1760
1766
  class OnemrvaSharedModule {
1761
1767
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: OnemrvaSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1762
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.7", ngImport: i0, type: OnemrvaSharedModule, imports: [DigitOnlyDirective, MatRowClickableDirective, OnemRvaClipboardDirective, OnemRvaIconRightDirective, IfWidthIsDirective, OnemRvaColorDirective, OnemrvaMaskDirective, OnemrvaDateFormatDirective, ReadOnlyFormDirective], exports: [DigitOnlyDirective, MatRowClickableDirective, OnemRvaClipboardDirective, OnemRvaIconRightDirective, IfWidthIsDirective, OnemRvaColorDirective, OnemrvaMaskDirective, OnemrvaDateFormatDirective, ReadOnlyFormDirective] }); }
1768
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.7", ngImport: i0, type: OnemrvaSharedModule, imports: [DigitOnlyDirective, MatRowClickableDirective, OnemRvaClipboardDirective, OnemRvaIconRightDirective, IfWidthIsDirective, OnemRvaColorDirective, OnemrvaMaskDirective, OnemrvaDateFormatDirective, OnemRvaReadonlyDirective], exports: [DigitOnlyDirective, MatRowClickableDirective, OnemRvaClipboardDirective, OnemRvaIconRightDirective, IfWidthIsDirective, OnemRvaColorDirective, OnemrvaMaskDirective, OnemrvaDateFormatDirective, OnemRvaReadonlyDirective] }); }
1763
1769
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: OnemrvaSharedModule }); }
1764
1770
  }
1765
1771
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: OnemrvaSharedModule, decorators: [{
@@ -2177,5 +2183,5 @@ function onemrvaThemeProvider() {
2177
2183
  * Generated bundle index. Do not edit.
2178
2184
  */
2179
2185
 
2180
- 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, OnemRvaSizeDirective, OnemrvaBcePipe, OnemrvaDateFormatDirective, OnemrvaErrorHandler, OnemrvaLuxonDateAdapter, OnemrvaMaskDirective, OnemrvaMissingTranslationHandler, OnemrvaNativeDateAdapter, OnemrvaNissPipe, OnemrvaSharedModule, OnemrvaTranslateCDNLoader, OnemrvaTranslateHttpLoader, OnemrvaValidators, ReadOnlyFormDirective, RequestTimes, SEPA_ONLY_SUPPORTED_COUNTRIES, WebComponentOverlayContainer, bankAccountValidator, directives, onemrvaDateLuxonProvider, onemrvaDateLuxonYearMonthProvider, onemrvaDateNativeProvider, onemrvaDateNativeYearMonthProvider, onemrvaThemeProvider, setTranslationLanguage, setTranslationLanguageFromWO };
2186
+ 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, OnemrvaTranslateCDNLoader, OnemrvaTranslateHttpLoader, OnemrvaValidators, RequestTimes, SEPA_ONLY_SUPPORTED_COUNTRIES, WebComponentOverlayContainer, bankAccountValidator, directives, onemrvaDateLuxonProvider, onemrvaDateLuxonYearMonthProvider, onemrvaDateNativeProvider, onemrvaDateNativeYearMonthProvider, onemrvaThemeProvider, setTranslationLanguage, setTranslationLanguageFromWO };
2181
2187
  //# sourceMappingURL=onemrvapublic-design-system-shared.mjs.map