@progressive-development/pd-dialog 0.0.47 → 0.0.49
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 +3 -3
- package/src/PdPopup.js +1 -1
- package/src/PdPopupDialog.js +5 -5
- package/src/PdSubmitDialog.js +2 -2
- package/src/shared-global-styles.js +3 -3
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Progressive Development dialog components.",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"author": "PD Progressive Development",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.49",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "index.js",
|
|
9
9
|
"scripts": {
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"storybook:build": "npm run analyze -- --exclude dist && build-storybook"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@progressive-development/pd-forms": "^0.1.
|
|
21
|
-
"@progressive-development/pd-icon": "^0.1.
|
|
20
|
+
"@progressive-development/pd-forms": "^0.1.4",
|
|
21
|
+
"@progressive-development/pd-icon": "^0.1.8",
|
|
22
22
|
"@progressive-development/pd-price": "0.0.8",
|
|
23
23
|
"lit": "^2.0.2"
|
|
24
24
|
},
|
package/src/PdPopup.js
CHANGED
package/src/PdPopupDialog.js
CHANGED
|
@@ -17,7 +17,7 @@ import { SharedGlobalStyles } from './shared-global-styles.js';
|
|
|
17
17
|
*/
|
|
18
18
|
export class PdPopupDialog extends LitElement {
|
|
19
19
|
/**
|
|
20
|
-
* @event button-clicked - fired if one of the configured buttons was clicked.
|
|
20
|
+
* @event submit-button-clicked - fired if one of the configured buttons was clicked.
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
static get styles() {
|
|
@@ -55,7 +55,7 @@ export class PdPopupDialog extends LitElement {
|
|
|
55
55
|
padding-top: 8px;
|
|
56
56
|
font-family: var(--pd-default-font-title-family);
|
|
57
57
|
font-size: var(--pd-popup-header-font-size, 1.4em);
|
|
58
|
-
color: var(--pd-popup-header-font-col, var(--pd-default-bg-
|
|
58
|
+
color: var(--pd-popup-header-font-col, var(--pd-default-bg-col));
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.info-logo {
|
|
@@ -66,7 +66,7 @@ export class PdPopupDialog extends LitElement {
|
|
|
66
66
|
|
|
67
67
|
.content {
|
|
68
68
|
padding: 0.5rem 1rem 1rem 1rem;
|
|
69
|
-
background-color: var(--pd-popup-header-font-col, var(--pd-default-bg-
|
|
69
|
+
background-color: var(--pd-popup-header-font-col, var(--pd-default-bg-col));
|
|
70
70
|
height: 100%;
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -120,7 +120,7 @@ export class PdPopupDialog extends LitElement {
|
|
|
120
120
|
bt => html`
|
|
121
121
|
<pd-button
|
|
122
122
|
data-key="${bt.key}"
|
|
123
|
-
@
|
|
123
|
+
@button-clicked="${this._handleButtonEvent}"
|
|
124
124
|
text="${bt.name}"
|
|
125
125
|
></pd-button>
|
|
126
126
|
`
|
|
@@ -133,7 +133,7 @@ export class PdPopupDialog extends LitElement {
|
|
|
133
133
|
|
|
134
134
|
_handleButtonEvent(e) {
|
|
135
135
|
this.dispatchEvent(
|
|
136
|
-
new CustomEvent('button-clicked', {
|
|
136
|
+
new CustomEvent('submit-button-clicked', {
|
|
137
137
|
detail: {
|
|
138
138
|
button: e.target.dataset.key,
|
|
139
139
|
},
|
package/src/PdSubmitDialog.js
CHANGED
|
@@ -149,7 +149,7 @@ export class PdSubmitDialog extends LitElement {
|
|
|
149
149
|
class="popup-dialog"
|
|
150
150
|
title="${this.title}"
|
|
151
151
|
.buttons="${this._buttons}"
|
|
152
|
-
@button-clicked="${this._goToStartpage}"
|
|
152
|
+
@submit-button-clicked="${this._goToStartpage}"
|
|
153
153
|
>
|
|
154
154
|
<div slot="content">
|
|
155
155
|
${this._renderContent()}
|
|
@@ -232,7 +232,7 @@ export class PdSubmitDialog extends LitElement {
|
|
|
232
232
|
|
|
233
233
|
_goToStartpage() {
|
|
234
234
|
this.dispatchEvent(
|
|
235
|
-
new CustomEvent('button-clicked', {
|
|
235
|
+
new CustomEvent('submit-button-clicked', {
|
|
236
236
|
detail: {
|
|
237
237
|
// TODO: Get index from event
|
|
238
238
|
button: this._buttons[0].key,
|
|
@@ -29,13 +29,13 @@ export const SharedGlobalStyles = css`
|
|
|
29
29
|
--pd-default-col: var(--app-primary-col, #067394);
|
|
30
30
|
--pd-default-light-col: var(--app-primary-light-col, #AFC1D2);
|
|
31
31
|
--pd-default-dark-col: var(--app-primary-dark-col, #0A3A48);
|
|
32
|
-
--pd-default-bg-
|
|
32
|
+
--pd-default-bg-col: var(--app-primary-bg-col, #fefefe);
|
|
33
33
|
|
|
34
|
-
--pd-default-hover-col: var(--app-hover-col, #
|
|
34
|
+
--pd-default-hover-col: var(--app-hover-col, #ffc857);
|
|
35
35
|
--pd-default-error-col: var(--app-error-col, #cc2029);
|
|
36
36
|
--pd-default-error-light-col: var(--app-error-light-col, #ffe8e8);
|
|
37
37
|
--pd-default-success-col: var(--app-success-col, #42a01c);
|
|
38
|
-
--pd-default-success-light-col: var(--app-success-light-col, #f5ffe8);
|
|
38
|
+
--pd-default-success-light-col: var(--app-success-light-col, #f5ffe8);
|
|
39
39
|
--pd-default-disabled-col: var(--app-disabled-col, #888585);
|
|
40
40
|
--pd-default-disabled-light-col: var(--app-disabled-light-col, lightgrey);
|
|
41
41
|
|