@onemrvapublic/design-system 20.7.0-develop.2 → 20.7.0-develop.20
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/fesm2022/onemrvapublic-design-system-layout.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +2 -2
- package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +2 -2
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs +28 -28
- package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +2 -2
- package/fesm2022/onemrvapublic-design-system-mat-notification.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs +2 -2
- package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-toast.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs +20 -18
- package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-shared.mjs +18 -9
- package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system.mjs +2 -11321
- package/fesm2022/onemrvapublic-design-system.mjs.map +1 -1
- package/index.d.ts +2 -3293
- package/mat-input-iban/index.d.ts +1 -1
- package/mat-input-phone/index.d.ts +3 -5
- package/mat-notification/src/onemrva-mat-notification.component.scss +3 -0
- package/mat-tooltip/index.d.ts +3 -2
- package/mat-tooltip/src/onemrva-mat-tooltip.component.scss +2 -2
- package/package.json +9 -11
- package/shared/index.d.ts +4 -4
- package/fesm2022/onemrvapublic-design-system-jsonform-renderers.mjs +0 -614
- package/fesm2022/onemrvapublic-design-system-jsonform-renderers.mjs.map +0 -1
- package/jsonform-renderers/datepicker-renderer/datepicker-renderer.component.scss +0 -22
- package/jsonform-renderers/index.d.ts +0 -123
- package/jsonform-renderers/label-renderer/label-renderer.component.scss +0 -0
- package/jsonform-renderers/niss-renderer/niss-renderer.component.scss +0 -0
- package/jsonform-renderers/radio-button-renderer/radio-button.renderer.component.scss +0 -5
- package/jsonform-renderers/readonly-control-renderer/readonly-control-renderer.component.scss +0 -4
- package/jsonform-renderers/select-renderer/select-renderer.component.scss +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Input, Component, inject, ElementRef, HostListener, Directive, NgModule } from '@angular/core';
|
|
2
|
+
import { Input, Component, inject, ElementRef, input, effect, HostListener, Directive, NgModule } from '@angular/core';
|
|
3
3
|
import { NgTemplateOutlet } from '@angular/common';
|
|
4
4
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
5
5
|
import { Overlay, OverlayPositionBuilder } from '@angular/cdk/overlay';
|
|
@@ -16,7 +16,7 @@ class OnemrvaMatTooltipComponent {
|
|
|
16
16
|
</ng-container>
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
|
-
`, isInline: true, styles: [".tooltip-container{font-family:var(--text-font);background
|
|
19
|
+
`, isInline: true, styles: [".tooltip-container{font-family:var(--text-font);background:var(--mat-sys-background);font-size:12px;color:var(--mat-sys-on-background);box-shadow:0 2px 6px #00000052;border-radius:4px;padding:var(--spacer);font-weight:400;font-style:normal;line-height:18px}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
20
20
|
}
|
|
21
21
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: OnemrvaMatTooltipComponent, decorators: [{
|
|
22
22
|
type: Component,
|
|
@@ -30,7 +30,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
30
30
|
</ng-container>
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
|
-
`, standalone: true, imports: [NgTemplateOutlet], styles: [".tooltip-container{font-family:var(--text-font);background
|
|
33
|
+
`, standalone: true, imports: [NgTemplateOutlet], styles: [".tooltip-container{font-family:var(--text-font);background:var(--mat-sys-background);font-size:12px;color:var(--mat-sys-on-background);box-shadow:0 2px 6px #00000052;border-radius:4px;padding:var(--spacer);font-weight:400;font-style:normal;line-height:18px}\n"] }]
|
|
34
34
|
}], propDecorators: { text: [{
|
|
35
35
|
type: Input
|
|
36
36
|
}], contentTemplate: [{
|
|
@@ -38,25 +38,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
38
38
|
}] } });
|
|
39
39
|
|
|
40
40
|
class OnemrvaMatTooltipDirective {
|
|
41
|
+
ngOnInit() {
|
|
42
|
+
if (!this.showToolTip) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
41
46
|
constructor() {
|
|
42
47
|
this._overlay = inject(Overlay);
|
|
43
48
|
this._overlayPositionBuilder = inject(OverlayPositionBuilder);
|
|
44
49
|
this._elementRef = inject(ElementRef);
|
|
45
50
|
this.showToolTip = true;
|
|
46
|
-
|
|
51
|
+
//@Input() position: TooltipPosition = 'after';
|
|
52
|
+
this.position = input(...(ngDevMode ? [undefined, { debugName: "position" }] : []));
|
|
47
53
|
this.positionOffset = 5;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
.flexibleConnectedTo(this._elementRef)
|
|
55
|
-
.withPositions(this.defineStrategy());
|
|
56
|
-
this._overlayRef = this._overlay.create({ positionStrategy });
|
|
54
|
+
effect(() => {
|
|
55
|
+
const positionStrategy = this._overlayPositionBuilder
|
|
56
|
+
.flexibleConnectedTo(this._elementRef)
|
|
57
|
+
.withPositions(this.defineStrategy());
|
|
58
|
+
this._overlayRef = this._overlay.create({ positionStrategy });
|
|
59
|
+
});
|
|
57
60
|
}
|
|
58
61
|
defineStrategy() {
|
|
59
|
-
|
|
62
|
+
console.log(this.position());
|
|
63
|
+
switch (this.position()) {
|
|
60
64
|
case 'above':
|
|
61
65
|
return [
|
|
62
66
|
{
|
|
@@ -118,7 +122,7 @@ class OnemrvaMatTooltipDirective {
|
|
|
118
122
|
}
|
|
119
123
|
}
|
|
120
124
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: OnemrvaMatTooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
121
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
125
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.4", type: OnemrvaMatTooltipDirective, isStandalone: true, selector: "[OnemrvaMatTooltip]", inputs: { showToolTip: { classPropertyName: "showToolTip", publicName: "showToolTip", isSignal: false, isRequired: false, transformFunction: null }, customToolTip: { classPropertyName: "customToolTip", publicName: "customToolTip", isSignal: false, isRequired: false, transformFunction: null }, contentTemplate: { classPropertyName: "contentTemplate", publicName: "contentTemplate", isSignal: false, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, positionOffset: { classPropertyName: "positionOffset", publicName: "positionOffset", isSignal: false, isRequired: false, transformFunction: null } }, host: { listeners: { "mouseenter": "show()", "mouseleave": "hide()" } }, ngImport: i0 }); }
|
|
122
126
|
}
|
|
123
127
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: OnemrvaMatTooltipDirective, decorators: [{
|
|
124
128
|
type: Directive,
|
|
@@ -126,14 +130,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
126
130
|
selector: '[OnemrvaMatTooltip]',
|
|
127
131
|
standalone: true,
|
|
128
132
|
}]
|
|
129
|
-
}], propDecorators: { showToolTip: [{
|
|
133
|
+
}], ctorParameters: () => [], propDecorators: { showToolTip: [{
|
|
130
134
|
type: Input
|
|
131
135
|
}], customToolTip: [{
|
|
132
136
|
type: Input
|
|
133
137
|
}], contentTemplate: [{
|
|
134
138
|
type: Input
|
|
135
|
-
}], position: [{
|
|
136
|
-
type: Input
|
|
137
139
|
}], positionOffset: [{
|
|
138
140
|
type: Input
|
|
139
141
|
}], show: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onemrvapublic-design-system-mat-tooltip.mjs","sources":["../../../../projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.component.ts","../../../../projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.directive.ts","../../../../projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.module.ts","../../../../projects/onemrva/design-system/mat-tooltip/onemrvapublic-design-system-mat-tooltip.ts"],"sourcesContent":["import { Component, Input, TemplateRef } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n@Component({\n selector: 'onemrva-mat-tooltip',\n styleUrls: ['./onemrva-mat-tooltip.component.scss'],\n template: `\n <div>\n <div class=\"tooltip-container\">\n <ng-template #simpleText>\n {{ text }}\n </ng-template>\n <ng-container *ngTemplateOutlet=\"contentTemplate || simpleText\">\n </ng-container>\n </div>\n </div>\n `,\n standalone: true,\n imports: [NgTemplateOutlet],\n})\nexport class OnemrvaMatTooltipComponent {\n @Input() text!: string;\n @Input() contentTemplate!: TemplateRef<any>;\n}\n","import {\n ComponentRef,\n Directive,\n ElementRef,\n HostListener,\n Input,\n OnDestroy,\n OnInit,\n TemplateRef,\n inject,\n} from '@angular/core';\nimport { OnemrvaMatTooltipComponent } from './onemrva-mat-tooltip.component';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport {\n ConnectedPosition,\n Overlay,\n OverlayPositionBuilder,\n OverlayRef,\n} from '@angular/cdk/overlay';\nimport { TooltipPosition } from '@angular/material/tooltip';\n\n@Directive({\n selector: '[OnemrvaMatTooltip]',\n standalone: true,\n})\nexport class OnemrvaMatTooltipDirective implements OnInit, OnDestroy {\n private _overlay = inject(Overlay);\n private _overlayPositionBuilder = inject(OverlayPositionBuilder);\n private _elementRef = inject(ElementRef);\n\n @Input() showToolTip = true;\n\n @Input() customToolTip!: string;\n\n @Input() contentTemplate!: TemplateRef<any>;\n\n
|
|
1
|
+
{"version":3,"file":"onemrvapublic-design-system-mat-tooltip.mjs","sources":["../../../../projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.component.ts","../../../../projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.directive.ts","../../../../projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.module.ts","../../../../projects/onemrva/design-system/mat-tooltip/onemrvapublic-design-system-mat-tooltip.ts"],"sourcesContent":["import { Component, Input, TemplateRef } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n@Component({\n selector: 'onemrva-mat-tooltip',\n styleUrls: ['./onemrva-mat-tooltip.component.scss'],\n template: `\n <div>\n <div class=\"tooltip-container\">\n <ng-template #simpleText>\n {{ text }}\n </ng-template>\n <ng-container *ngTemplateOutlet=\"contentTemplate || simpleText\">\n </ng-container>\n </div>\n </div>\n `,\n standalone: true,\n imports: [NgTemplateOutlet],\n})\nexport class OnemrvaMatTooltipComponent {\n @Input() text!: string;\n @Input() contentTemplate!: TemplateRef<any>;\n}\n","import {\n ComponentRef,\n Directive,\n ElementRef,\n HostListener,\n Input,\n OnDestroy,\n OnInit,\n TemplateRef,\n inject,\n input,\n effect,\n} from '@angular/core';\nimport { OnemrvaMatTooltipComponent } from './onemrva-mat-tooltip.component';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport {\n ConnectedPosition,\n Overlay,\n OverlayPositionBuilder,\n OverlayRef,\n} from '@angular/cdk/overlay';\nimport { TooltipPosition } from '@angular/material/tooltip';\n\n@Directive({\n selector: '[OnemrvaMatTooltip]',\n standalone: true,\n})\nexport class OnemrvaMatTooltipDirective implements OnInit, OnDestroy {\n private _overlay = inject(Overlay);\n private _overlayPositionBuilder = inject(OverlayPositionBuilder);\n private _elementRef = inject(ElementRef);\n\n @Input() showToolTip = true;\n\n @Input() customToolTip!: string;\n\n @Input() contentTemplate!: TemplateRef<any>;\n\n //@Input() position: TooltipPosition = 'after';\n position = input<TooltipPosition>();\n @Input() positionOffset = 5;\n\n private _overlayRef!: OverlayRef;\n\n ngOnInit() {\n if (!this.showToolTip) {\n return;\n }\n }\n\n constructor() {\n effect(() => {\n const positionStrategy = this._overlayPositionBuilder\n .flexibleConnectedTo(this._elementRef)\n .withPositions(this.defineStrategy());\n this._overlayRef = this._overlay.create({ positionStrategy });\n });\n }\n\n defineStrategy(): ConnectedPosition[] {\n console.log(this.position());\n switch (this.position()) {\n case 'above':\n return [\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom',\n },\n ];\n\n case 'below':\n return [\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top',\n },\n ];\n\n case 'after':\n case 'right':\n return [\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n },\n ];\n\n case 'before':\n case 'left':\n return [\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n },\n ];\n default:\n return [];\n }\n }\n\n @HostListener('mouseenter')\n show() {\n if (this._overlayRef && !this._overlayRef.hasAttached()) {\n const tooltipRef: ComponentRef<OnemrvaMatTooltipComponent> =\n this._overlayRef.attach(\n new ComponentPortal(OnemrvaMatTooltipComponent),\n );\n tooltipRef.instance.text = this.customToolTip;\n tooltipRef.instance.contentTemplate = this.contentTemplate;\n }\n }\n\n @HostListener('mouseleave')\n hide() {\n this.closeToolTip();\n }\n\n ngOnDestroy() {\n this.closeToolTip();\n }\n\n private closeToolTip() {\n if (this._overlayRef) {\n this._overlayRef.detach();\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { OnemrvaMatTooltipComponent } from './onemrva-mat-tooltip.component';\nimport { OnemrvaMatTooltipDirective } from './onemrva-mat-tooltip.directive';\n\n@NgModule({\n declarations: [],\n imports: [OnemrvaMatTooltipDirective, OnemrvaMatTooltipComponent],\n exports: [OnemrvaMatTooltipDirective, OnemrvaMatTooltipComponent],\n})\nexport class OnemrvaMatTooltipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAoBa,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,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,eAAA,EAAA,iBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAd3B;;;;;;;;;;AAUT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,qQAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,E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,oBAAA,OAAO,EAAE,CAAC,0BAA0B,EAAE,0BAA0B,CAAC;AACjE,oBAAA,OAAO,EAAE,CAAC,0BAA0B,EAAE,0BAA0B,CAAC;AAClE,iBAAA;;;ACRD;;AAEG;;;;"}
|
|
@@ -467,7 +467,7 @@ class OnemRvaColorDirective {
|
|
|
467
467
|
return this.color === OnemrvaMatColor.NEUTRAL;
|
|
468
468
|
}
|
|
469
469
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: OnemRvaColorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
470
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.4", 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 }); }
|
|
470
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.4", 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]mat-hint[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
471
|
}
|
|
472
472
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: OnemRvaColorDirective, decorators: [{
|
|
473
473
|
type: Directive,
|
|
@@ -488,7 +488,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
488
488
|
'button[color],' +
|
|
489
489
|
'mat-icon[color],' +
|
|
490
490
|
'mat-chip[color],' +
|
|
491
|
-
'mat-chip-option[color]'
|
|
491
|
+
'mat-chip-option[color]' +
|
|
492
|
+
'mat-hint[color],',
|
|
492
493
|
standalone: true,
|
|
493
494
|
}]
|
|
494
495
|
}], propDecorators: { color: [{
|
|
@@ -1175,8 +1176,8 @@ const directives = [
|
|
|
1175
1176
|
];
|
|
1176
1177
|
|
|
1177
1178
|
/**
|
|
1178
|
-
* Get language from local storage or browser
|
|
1179
|
-
*
|
|
1179
|
+
* Get language from local storage or browser.
|
|
1180
|
+
*
|
|
1180
1181
|
* @param translateService
|
|
1181
1182
|
* @param languages
|
|
1182
1183
|
* @param default_language
|
|
@@ -1730,8 +1731,10 @@ const bankAccountValidator = (allowEmptyCountry = true) => {
|
|
|
1730
1731
|
}
|
|
1731
1732
|
}
|
|
1732
1733
|
else {
|
|
1733
|
-
const countryCodeValue = control.value
|
|
1734
|
-
|
|
1734
|
+
const countryCodeValue = control.value
|
|
1735
|
+
? control.value['countryCode']
|
|
1736
|
+
: '';
|
|
1737
|
+
const bankNumber = control.value ? control.value['bban'] : '';
|
|
1735
1738
|
if (countryCodeValue !== '') {
|
|
1736
1739
|
const { valid: _valid, errorCodes } = internValidateIban(`${countryCodeValue}${bankNumber}`);
|
|
1737
1740
|
finalErrorCodes = errorCodes;
|
|
@@ -1752,7 +1755,7 @@ const bankAccountValidator = (allowEmptyCountry = true) => {
|
|
|
1752
1755
|
};
|
|
1753
1756
|
};
|
|
1754
1757
|
|
|
1755
|
-
const phoneNumberValidator = (
|
|
1758
|
+
const phoneNumberValidator = () => {
|
|
1756
1759
|
return (_control) => {
|
|
1757
1760
|
const code = _control.get('countryCode')?.getRawValue() ?? '';
|
|
1758
1761
|
let number = code + _control.getRawValue();
|
|
@@ -2164,14 +2167,20 @@ function onemrvaDateLuxonYearMonthProvider() {
|
|
|
2164
2167
|
];
|
|
2165
2168
|
}
|
|
2166
2169
|
|
|
2167
|
-
// import { MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
|
|
2168
|
-
// import { ONEMRVA_THEME_CLASS } from '@onemrvapublic/design-system/shared';
|
|
2169
2170
|
function onemrvaThemeProvider() {
|
|
2170
2171
|
return [
|
|
2171
2172
|
{
|
|
2172
2173
|
provide: ErrorHandler,
|
|
2173
2174
|
useClass: OnemrvaErrorHandler,
|
|
2174
2175
|
},
|
|
2176
|
+
// {
|
|
2177
|
+
// provide: CDN_URL_MODE,
|
|
2178
|
+
// useValue: CDNUrlModeOptions.PROD,
|
|
2179
|
+
// },
|
|
2180
|
+
// {
|
|
2181
|
+
// provide: LOOKUP_COUNTRY_SERVICE_URL,
|
|
2182
|
+
// useValue: 'assets/mock/countries.json',
|
|
2183
|
+
// },
|
|
2175
2184
|
{
|
|
2176
2185
|
provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
|
|
2177
2186
|
useValue: {
|