@exmg/exm-form 1.0.0 → 1.0.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/README.md +1 -1
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +3 -3
- package/src/exm-form-base.d.ts +1 -1
- package/src/exm-form-base.js +7 -7
- package/src/exm-form.d.ts +3 -3
- package/src/exm-form.js +6 -6
package/README.md
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { ExmForm } from './src/exm-form.js';
|
|
2
|
+
export { ExmFormBase, serializeForm } from './src/exm-form-base.js';
|
|
3
3
|
export { style as exmgFormStyles } from './src/styles/exm-form-css.js';
|
|
4
4
|
export { style as exmgFormBaseStyles } from './src/styles/exm-form-base-css.js';
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { ExmForm } from './src/exm-form.js';
|
|
2
|
+
export { ExmFormBase, serializeForm } from './src/exm-form-base.js';
|
|
3
3
|
export { style as exmgFormStyles } from './src/styles/exm-form-css.js';
|
|
4
4
|
export { style as exmgFormBaseStyles } from './src/styles/exm-form-base-css.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exmg/exm-form",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@exmg/exm-button": "^1.0.
|
|
32
|
+
"@exmg/exm-button": "^1.0.1",
|
|
33
33
|
"@material/typography": "^14.0.0",
|
|
34
34
|
"lit": "^3.0.0",
|
|
35
35
|
"tslib": "^2.6.2"
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "8e971cbad07fa6fab5a95aefd915937b752d2204"
|
|
47
47
|
}
|
package/src/exm-form-base.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import '@material/web/divider/divider.js';
|
|
|
4
4
|
import { ExmgElement } from '@exmg/lit-base';
|
|
5
5
|
export declare const CLOSE_ACTION = "close";
|
|
6
6
|
export declare const serializeForm: (form: any) => {};
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class ExmFormBase extends ExmgElement {
|
|
8
8
|
/**
|
|
9
9
|
* Submit button copy
|
|
10
10
|
*/
|
package/src/exm-form-base.js
CHANGED
|
@@ -72,7 +72,7 @@ export const serializeForm = (form) => {
|
|
|
72
72
|
}
|
|
73
73
|
return obj;
|
|
74
74
|
};
|
|
75
|
-
export class
|
|
75
|
+
export class ExmFormBase extends ExmgElement {
|
|
76
76
|
constructor() {
|
|
77
77
|
super(...arguments);
|
|
78
78
|
/**
|
|
@@ -220,20 +220,20 @@ export class ExmgFormBase extends ExmgElement {
|
|
|
220
220
|
}
|
|
221
221
|
__decorate([
|
|
222
222
|
property({ type: String })
|
|
223
|
-
],
|
|
223
|
+
], ExmFormBase.prototype, "submitBtn", void 0);
|
|
224
224
|
__decorate([
|
|
225
225
|
property({ type: String })
|
|
226
|
-
],
|
|
226
|
+
], ExmFormBase.prototype, "cancelBtn", void 0);
|
|
227
227
|
__decorate([
|
|
228
228
|
property({ type: Boolean })
|
|
229
|
-
],
|
|
229
|
+
], ExmFormBase.prototype, "submitting", void 0);
|
|
230
230
|
__decorate([
|
|
231
231
|
property({ type: Boolean })
|
|
232
|
-
],
|
|
232
|
+
], ExmFormBase.prototype, "formValid", void 0);
|
|
233
233
|
__decorate([
|
|
234
234
|
property({ type: Boolean })
|
|
235
|
-
],
|
|
235
|
+
], ExmFormBase.prototype, "hasAsideContent", void 0);
|
|
236
236
|
__decorate([
|
|
237
237
|
property({ type: String })
|
|
238
|
-
],
|
|
238
|
+
], ExmFormBase.prototype, "errorMessage", void 0);
|
|
239
239
|
//# sourceMappingURL=exm-form-base.js.map
|
package/src/exm-form.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class
|
|
1
|
+
import { ExmFormBase } from './exm-form-base.js';
|
|
2
|
+
export declare class ExmForm extends ExmFormBase {
|
|
3
3
|
static styles: import("lit").CSSResult[];
|
|
4
4
|
getForm(): HTMLFormElement | null;
|
|
5
5
|
}
|
|
6
6
|
declare global {
|
|
7
7
|
interface HTMLElementTagNameMap {
|
|
8
|
-
'exm-form':
|
|
8
|
+
'exm-form': ExmForm;
|
|
9
9
|
}
|
|
10
10
|
}
|
package/src/exm-form.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { customElement } from 'lit/decorators.js';
|
|
3
3
|
import { style } from './styles/exm-form-base-css.js';
|
|
4
|
-
import {
|
|
5
|
-
let
|
|
4
|
+
import { ExmFormBase } from './exm-form-base.js';
|
|
5
|
+
let ExmForm = class ExmForm extends ExmFormBase {
|
|
6
6
|
getForm() {
|
|
7
7
|
return this.querySelector('form');
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
ExmForm.styles = [style];
|
|
11
|
+
ExmForm = __decorate([
|
|
12
12
|
customElement('exm-form')
|
|
13
|
-
],
|
|
14
|
-
export {
|
|
13
|
+
], ExmForm);
|
|
14
|
+
export { ExmForm };
|
|
15
15
|
//# sourceMappingURL=exm-form.js.map
|