@progressive-development/pd-forms 0.0.56 → 0.0.58
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
CHANGED
package/src/PdFormContainer.js
CHANGED
|
@@ -8,8 +8,6 @@ import { msg } from '@lit/localize';
|
|
|
8
8
|
|
|
9
9
|
import { PdBaseUI } from './PdBaseUi.js';
|
|
10
10
|
|
|
11
|
-
import { setLocale } from './localization.js';
|
|
12
|
-
|
|
13
11
|
/**
|
|
14
12
|
* An example element.
|
|
15
13
|
*
|
|
@@ -41,16 +39,9 @@ export class PdFormContainer extends PdBaseUI {
|
|
|
41
39
|
static get properties() {
|
|
42
40
|
return {
|
|
43
41
|
requiredFieldInfo: { type: Boolean},
|
|
44
|
-
locale: { type: String }
|
|
45
42
|
};
|
|
46
43
|
}
|
|
47
44
|
|
|
48
|
-
updated(changedProperties) {
|
|
49
|
-
if (changedProperties.has("locale") && this.locale) {
|
|
50
|
-
setLocale(this.locale);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
45
|
firstUpdated() {
|
|
55
46
|
// add validation event listener
|
|
56
47
|
this.addEventListener('validate-form', this._validateForm);
|
|
@@ -82,7 +82,7 @@ return html`
|
|
|
82
82
|
<h3>Defaults Inputs with labels</h3>
|
|
83
83
|
<div
|
|
84
84
|
style="display: flex; justify-content: space-between; max-width: 800px"
|
|
85
|
-
>
|
|
85
|
+
>
|
|
86
86
|
<pd-select
|
|
87
87
|
id="testId1"
|
|
88
88
|
?gradient="${gradient}"
|
|
@@ -100,8 +100,8 @@ return html`
|
|
|
100
100
|
?gradient="${gradient}"
|
|
101
101
|
style="${style}"
|
|
102
102
|
label="Input Area Label"
|
|
103
|
-
></pd-input-area>
|
|
104
|
-
</div>
|
|
103
|
+
></pd-input-area>
|
|
104
|
+
</div>
|
|
105
105
|
|
|
106
106
|
<div
|
|
107
107
|
style="display: flex; justify-content: space-between; max-width: 800px"
|
package/src/localization.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import {configureLocalization} from '@lit/localize';
|
|
2
|
-
// Generated via output.localeCodesModule
|
|
3
|
-
import {sourceLocale, targetLocales} from './generated/locale-codes.js';
|
|
4
|
-
|
|
5
|
-
export const {getLocale, setLocale} = configureLocalization({
|
|
6
|
-
sourceLocale,
|
|
7
|
-
targetLocales,
|
|
8
|
-
loadLocale: (locale) => import(`./generated/locale/${locale}.js`),
|
|
9
|
-
});
|