@progressive-development/pd-forms 0.1.6 → 0.1.8
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/package.json +2 -2
- package/src/PdButton.js +10 -3
- package/src/PdCheckbox.js +1 -1
- package/src/PdFormContainer.js +4 -3
- package/src/PdRadioGroup.js +6 -2
- package/src/shared-input-styles.js +1 -1
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent pd-forms following open-wc recommendations",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"author": "PD Progressive Development",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.8",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "index.js",
|
|
9
9
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@lit-labs/motion": "^1.0.2",
|
|
23
23
|
"@lit/localize": "^0.11.2",
|
|
24
|
-
"@progressive-development/pd-icon": "^0.1.
|
|
24
|
+
"@progressive-development/pd-icon": "^0.1.11",
|
|
25
25
|
"@progressive-development/pd-shared-styles": "0.1.1",
|
|
26
26
|
"lit": "^2.2.0"
|
|
27
27
|
},
|
package/src/PdButton.js
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
:host {
|
|
22
22
|
|
|
23
23
|
font-family: var(--pd-default-font-title-family);
|
|
24
|
-
font-size: var(--pd-button-font-size,
|
|
24
|
+
font-size: var(--pd-button-font-size, 1em);
|
|
25
25
|
font-weight: var(--pd-button-font-weight, normal);
|
|
26
26
|
|
|
27
27
|
/*
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
display: flex;
|
|
40
40
|
justify-content: center;
|
|
41
|
+
align-items: center;
|
|
41
42
|
width: var(--pd-button-width, 140px);
|
|
42
43
|
height: var(--pd-button-height, 2rem);
|
|
43
44
|
|
|
@@ -48,16 +49,22 @@
|
|
|
48
49
|
|
|
49
50
|
cursor: pointer;
|
|
50
51
|
|
|
51
|
-
box-shadow: var(--pd-button-box-shadow,
|
|
52
|
+
box-shadow: var(--pd-button-box-shadow, none);
|
|
52
53
|
|
|
53
54
|
pointer-events: all;
|
|
54
55
|
}
|
|
55
56
|
|
|
56
|
-
:host(:not([disabled])
|
|
57
|
+
:host(:not([disabled])) .button-div:hover {
|
|
58
|
+
box-shadow: var(--pd-button-box-shadow-hover, -1px 1px 2px var(--pd-default-dark-col));
|
|
57
59
|
background-color: var(--pd-button-bg-col-hover, var(--pd-default-hover-col));
|
|
58
60
|
color: var(--pd-button-font-col-hover, var(--pd-default-dark-col));
|
|
59
61
|
transition: background-color 0.4s ease 0s;
|
|
60
62
|
}
|
|
63
|
+
|
|
64
|
+
:host(:not([disabled])):host([primary]) .button-div:hover {
|
|
65
|
+
background-color: var(--pd-button-primary-bg-col-hover, var(--pd-default-hover-col));
|
|
66
|
+
color: var(--pd-button-primary-font-col-hover, var(--pd-default-bg-col));
|
|
67
|
+
}
|
|
61
68
|
|
|
62
69
|
:host([primary]) .button-div {
|
|
63
70
|
background-color: var(--pd-button-primary-bg-col, var(--pd-default-col));
|
package/src/PdCheckbox.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { html, css } from "lit";
|
|
7
7
|
import { classMap } from 'lit/directives/class-map.js';
|
|
8
8
|
|
|
9
|
-
import '@progressive-development/pd-icon';
|
|
9
|
+
import '@progressive-development/pd-icon/pd-icon.js';
|
|
10
10
|
|
|
11
11
|
import { PdBaseUIInput, INPUT_TYPE_CHECK } from "./PdBaseUiInput.js";
|
|
12
12
|
|
package/src/PdFormContainer.js
CHANGED
|
@@ -35,12 +35,13 @@ export class PdFormContainer extends PdBaseUI {
|
|
|
35
35
|
|
|
36
36
|
.validation-info {
|
|
37
37
|
font-family: var(--pd-default-font-content-family);
|
|
38
|
-
font-size: var(--pd-form-info-font-size,
|
|
39
|
-
padding:
|
|
38
|
+
font-size: var(--pd-form-info-font-size, 1em);
|
|
39
|
+
padding: 3em;
|
|
40
40
|
color:#58585a;
|
|
41
41
|
border-radius: var(--pd-border-radius, 0);
|
|
42
42
|
-moz-border-radius: var(--pd-border-radius, 0);
|
|
43
|
-
width:
|
|
43
|
+
width:70%;
|
|
44
|
+
max-width:780px;
|
|
44
45
|
min-width:250px;
|
|
45
46
|
}
|
|
46
47
|
|
package/src/PdRadioGroup.js
CHANGED
|
@@ -25,6 +25,7 @@ export class PdRadioGroup extends PdBaseUIInput {
|
|
|
25
25
|
display: flex;
|
|
26
26
|
gap: var(--pd-cb-group-gap, 20px);
|
|
27
27
|
flex-direction: var(--pd-cb-group-direction, row);
|
|
28
|
+
flex-wrap: wrap;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
::slotted(pd-checkbox) {
|
|
@@ -64,9 +65,12 @@ export class PdRadioGroup extends PdBaseUIInput {
|
|
|
64
65
|
// set default
|
|
65
66
|
const elColl = this.getElementsByTagName('pd-checkbox');
|
|
66
67
|
Object.keys(elColl).forEach(keyValue => {
|
|
67
|
-
|
|
68
|
+
if (elColl[keyValue].value === 'true') {
|
|
69
|
+
elColl[keyValue].readonly = true;
|
|
70
|
+
// führt aktuell zu update cycle log
|
|
71
|
+
this.value = elColl[keyValue].valueName;
|
|
72
|
+
}
|
|
68
73
|
});
|
|
69
|
-
|
|
70
74
|
}
|
|
71
75
|
|
|
72
76
|
render() {
|
|
@@ -20,7 +20,7 @@ export const SharedInputStyles = css`
|
|
|
20
20
|
padding: var(--pd-input-label-padding, 0);
|
|
21
21
|
color: var(--pd-input-lable-col, var(--pd-default-dark-col));
|
|
22
22
|
text-align: var(--pd-input-label-align, left);
|
|
23
|
-
font-size: var(--pd-input-lable-font-size, 0.
|
|
23
|
+
font-size: var(--pd-input-lable-font-size, 0.9em);
|
|
24
24
|
font-family: var(--pd-input-lable-font-family, var(--pd-default-font-title-family));
|
|
25
25
|
}
|
|
26
26
|
|