@kms-ngx-ui/presentational 20.3.0 → 20.3.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/fesm2022/kms-ngx-ui-presentational.mjs +35 -5
- package/fesm2022/kms-ngx-ui-presentational.mjs.map +1 -1
- package/index.d.ts +6 -1
- package/package.json +1 -1
- package/src/lib/ui/atoms/card/card.component.scss +11 -11
- package/src/lib/ui/atoms/dropdown-from-data/dropdown-from-data.component.scss +2 -2
- package/src/lib/ui/molecules/button/button.component.scss +3 -3
- package/src/lib/ui/molecules/confirmation-dialog/confirmation-dialog.component.scss +3 -3
- package/src/lib/ui/molecules/kms-accordion-item/kms-accordion-item.component.scss +2 -2
- package/src/lib/ui/molecules/numeric-input/numeric-input.component.scss +2 -2
- package/src/lib/ui/molecules/password/password.component.scss +1 -1
- package/src/lib/ui/molecules/radiogroup/radiogroup.component.scss +1 -1
- package/src/lib/ui/molecules/text-input/text-input.component.scss +2 -2
- package/src/lib/ui/molecules/time-input/time-input.component.scss +1 -1
- package/src/lib/ui/molecules/yes-no-radiogroup/yes-no-radiogroup.component.scss +2 -2
- package/src/lib/ui/organisms/generic-form/components/form-actions/form-actions.component.scss +3 -1
- package/src/lib/ui/organisms/generic-form/components/form-field/form-field.component.scss +9 -7
- package/src/lib/ui/organisms/generic-form/components/form-section/form-section.component.scss +4 -2
- package/src/styles/_tokens.scss +4 -0
- package/src/styles/default-values.scss +2 -7
- package/src/styles/styles.scss +1 -0
- package/src/styles/tooltip.scss +1 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, EventEmitter, DoCheck, Renderer2, ElementRef, ApplicationRef, ChangeDetectorRef, NgZone, OnChanges, AfterViewInit, WritableSignal, Signal, SimpleChanges, TemplateRef, OnDestroy, PipeTransform, AfterContentChecked, InputSignal, Type } from '@angular/core';
|
|
3
3
|
import * as i39 from '@angular/forms';
|
|
4
|
-
import { ControlValueAccessor, UntypedFormGroup, NgControl, UntypedFormControl, FormControl, FormArray, Validator, ValidationErrors, AsyncValidatorFn, ValidatorFn, FormGroup } from '@angular/forms';
|
|
4
|
+
import { ControlValueAccessor, UntypedFormGroup, NgControl, AbstractControl, UntypedFormControl, FormControl, FormArray, Validator, ValidationErrors, AsyncValidatorFn, ValidatorFn, FormGroup } from '@angular/forms';
|
|
5
5
|
import * as i35 from '@angular/material/checkbox';
|
|
6
6
|
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
7
7
|
import { Subscription, Observable } from 'rxjs';
|
|
@@ -137,7 +137,10 @@ declare class FormControlParentComponent extends FormParentComponent implements
|
|
|
137
137
|
internalValue: string;
|
|
138
138
|
private injector;
|
|
139
139
|
private _ngControl;
|
|
140
|
+
private readonly _externalControl;
|
|
140
141
|
get ngControl(): NgControl | null;
|
|
142
|
+
/** The external FormControl — from NgControl (template usage) or the injection token (dynamic creation). */
|
|
143
|
+
get parentControl(): AbstractControl | null;
|
|
141
144
|
constructor(renderer: Renderer2);
|
|
142
145
|
ngOnInit(): void;
|
|
143
146
|
ngDoCheck(): void;
|
|
@@ -189,6 +192,8 @@ declare class DropdownFromDataComponent extends FormControlParentComponent imple
|
|
|
189
192
|
label: _angular_core.InputSignal<string>;
|
|
190
193
|
required: _angular_core.InputSignal<boolean>;
|
|
191
194
|
useEnumIndexAsValue: _angular_core.InputSignal<boolean>;
|
|
195
|
+
/** Derives required state from the explicit input OR the bound control's validators. */
|
|
196
|
+
isRequired(): boolean;
|
|
192
197
|
multiple: _angular_core.InputSignal<boolean>;
|
|
193
198
|
selectAllText: _angular_core.InputSignal<string>;
|
|
194
199
|
disableOptions: _angular_core.InputSignal<boolean>;
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
@mixin card-theme() {
|
|
2
2
|
.card {
|
|
3
|
-
--card-shadow-color: var(--kms-tertiary-500);
|
|
4
|
-
--card-shadow: 0px 3px 4px 0px var(--card-shadow-color);
|
|
5
|
-
--card-background-color: var(--kms-white);
|
|
6
|
-
--card-hover-border-color: var(--kms-secondary);
|
|
7
|
-
--card-image-height: 180px;
|
|
3
|
+
--kms-card-shadow-color: var(--kms-tertiary-500);
|
|
4
|
+
--kms-card-shadow: 0px 3px 4px 0px var(--kms-card-shadow-color);
|
|
5
|
+
--kms-card-background-color: var(--kms-white);
|
|
6
|
+
--kms-card-hover-border-color: var(--kms-secondary);
|
|
7
|
+
--kms-card-image-height: 180px;
|
|
8
8
|
|
|
9
9
|
overflow: hidden;
|
|
10
|
-
box-shadow: var(--card-shadow);
|
|
11
|
-
border-radius:
|
|
12
|
-
background-color: var(--card-background-color);
|
|
10
|
+
box-shadow: var(--kms-card-shadow);
|
|
11
|
+
border-radius: var(--kms-border-radius);
|
|
12
|
+
background-color: var(--kms-card-background-color);
|
|
13
13
|
position: relative;
|
|
14
14
|
padding: 0;
|
|
15
15
|
display: flex;
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
|
|
19
19
|
&.hoverEffect {
|
|
20
20
|
&:hover {
|
|
21
|
-
outline: 1px solid var(--card-hover-border-color);
|
|
21
|
+
outline: 1px solid var(--kms-card-hover-border-color);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&-image {
|
|
26
26
|
background-color: var(--kms-white);
|
|
27
|
-
height: var(--card-image-height);
|
|
27
|
+
height: var(--kms-card-image-height);
|
|
28
28
|
background-size: cover;
|
|
29
29
|
justify-content: center;
|
|
30
30
|
width: auto;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
font-weight: bold;
|
|
44
44
|
font-size: 18px;
|
|
45
45
|
|
|
46
|
-
margin: 0 0
|
|
46
|
+
margin: 0 0 $base-spacing * 2 0;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
.dropdown-from-data {
|
|
9
9
|
&__checkbox {
|
|
10
|
-
padding: 0
|
|
10
|
+
padding: 0 $base-spacing * 2;
|
|
11
11
|
margin: 0;
|
|
12
12
|
height: 3em;
|
|
13
13
|
line-height: 3em;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
&__arrow {
|
|
44
|
-
margin-right: $base-spacing;
|
|
44
|
+
margin-right: $base-spacing * 2;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
--mat-button-filled-container-shape: 24px;
|
|
4
4
|
--mat-button-protected-container-shape: 24px;
|
|
5
5
|
--mat-button-text-container-shape: 24px;
|
|
6
|
-
--kms-button-border-radius:
|
|
6
|
+
--kms-button-border-radius: 4px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.kms-button {
|
|
10
|
-
border-radius:
|
|
10
|
+
border-radius: var(--kms-button-border-radius) !important;
|
|
11
11
|
|
|
12
12
|
// Basic button (text button)
|
|
13
13
|
&--basic-primary {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
&--rounded {
|
|
73
|
-
|
|
73
|
+
--kms-button-border-radius: 24px;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.kms-button__spinner {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@mixin confirmation-dialog-component-theme() {
|
|
2
2
|
.mat-mdc-dialog-surface {
|
|
3
|
-
padding:
|
|
3
|
+
padding: $base-spacing * 3;
|
|
4
4
|
> *:first-child,
|
|
5
5
|
.dialog-container {
|
|
6
6
|
height: 100%;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
|
|
10
10
|
.dialog-header {
|
|
11
|
-
margin-bottom:
|
|
11
|
+
margin-bottom: $base-spacing * 3;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.dialog-content {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
.dialog-footer {
|
|
20
20
|
display: flex;
|
|
21
21
|
justify-content: space-between;
|
|
22
|
-
margin-top:
|
|
22
|
+
margin-top: $base-spacing * 3;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: row;
|
|
5
5
|
align-items: center;
|
|
6
|
-
gap:
|
|
6
|
+
gap: $base-spacing * 2;
|
|
7
7
|
width: fit-content;
|
|
8
8
|
background-color: var(--kms-tertiary-800);
|
|
9
|
-
padding:
|
|
9
|
+
padding: $base-spacing * 0.5 $base-spacing;
|
|
10
10
|
border-radius: 24px;
|
|
11
11
|
|
|
12
12
|
strong {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
.mat-mdc-radio-group {
|
|
3
3
|
display: flex;
|
|
4
4
|
.mat-mdc-radio-button {
|
|
5
|
-
padding-right:
|
|
5
|
+
padding-right: $base-spacing * 2;
|
|
6
6
|
color: var(--kms-primary-100);
|
|
7
7
|
|
|
8
8
|
&.disabled {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}
|
|
12
12
|
.mat-radio-button-vertical {
|
|
13
13
|
display: flex;
|
|
14
|
-
padding-bottom:
|
|
14
|
+
padding-bottom: $base-spacing * 2;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import '../../../../../../styles/default-values';
|
|
2
|
+
|
|
1
3
|
:host {
|
|
2
4
|
display: block;
|
|
3
5
|
}
|
|
@@ -10,8 +12,8 @@
|
|
|
10
12
|
&__label-row {
|
|
11
13
|
display: flex;
|
|
12
14
|
align-items: center;
|
|
13
|
-
gap:
|
|
14
|
-
margin-bottom:
|
|
15
|
+
gap: $base-spacing * 0.5;
|
|
16
|
+
margin-bottom: $base-spacing * 0.5;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
&__group-label {
|
|
@@ -23,7 +25,7 @@
|
|
|
23
25
|
&__row {
|
|
24
26
|
display: flex;
|
|
25
27
|
align-items: flex-start;
|
|
26
|
-
gap:
|
|
28
|
+
gap: $base-spacing * 0.5;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
&__control {
|
|
@@ -34,12 +36,12 @@
|
|
|
34
36
|
&__tooltip {
|
|
35
37
|
flex-shrink: 0;
|
|
36
38
|
cursor: help;
|
|
37
|
-
padding-top:
|
|
39
|
+
padding-top: $base-spacing * 2;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
&__errors {
|
|
41
|
-
padding: 0
|
|
42
|
-
margin-top:
|
|
43
|
+
padding: 0 $base-spacing * 2;
|
|
44
|
+
margin-top: $base-spacing * 0.5;
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
&__error {
|
|
@@ -67,7 +69,7 @@
|
|
|
67
69
|
kms-numeric-input {
|
|
68
70
|
display: flex;
|
|
69
71
|
align-items: center;
|
|
70
|
-
gap:
|
|
72
|
+
gap: $base-spacing * 1.5;
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
// Disabled styling via CSS custom property
|
package/src/lib/ui/organisms/generic-form/components/form-section/form-section.component.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import '../../../../../../styles/default-values';
|
|
2
|
+
|
|
1
3
|
:host {
|
|
2
4
|
display: block;
|
|
3
5
|
}
|
|
@@ -11,10 +13,10 @@
|
|
|
11
13
|
&__legend {
|
|
12
14
|
display: flex;
|
|
13
15
|
align-items: center;
|
|
14
|
-
gap:
|
|
16
|
+
gap: $base-spacing * 0.5;
|
|
15
17
|
font-size: 16px;
|
|
16
18
|
font-weight: 500;
|
|
17
|
-
padding: 0 0
|
|
19
|
+
padding: 0 0 $base-spacing;
|
|
18
20
|
width: 100%;
|
|
19
21
|
}
|
|
20
22
|
|
|
@@ -8,10 +8,5 @@ $responsive-breakpoint-xxxl: 1920px !default;
|
|
|
8
8
|
$responsive-breakpoint: $responsive-breakpoint-s !default;
|
|
9
9
|
|
|
10
10
|
// spacing
|
|
11
|
-
$base-spacing
|
|
12
|
-
$base-spacing
|
|
13
|
-
$base-spacing-hoz: 24px !default;
|
|
14
|
-
$base-spacing-vert-half: 8px !default;
|
|
15
|
-
$base-spacing-hoz-half: 12px !default;
|
|
16
|
-
$base-spacing-vert-double: 32px !default;
|
|
17
|
-
$base-spacing-hoz-double: 48px !default;
|
|
11
|
+
// Single base unit — derive other spacing values by multiplying (e.g. $base-spacing * 2, * 3).
|
|
12
|
+
$base-spacing: 8px !default;
|
package/src/styles/styles.scss
CHANGED