@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 CHANGED
@@ -49,7 +49,7 @@ npm install @exmg/exm-form
49
49
 
50
50
  ```js
51
51
  async function doFormAction(e: CustomEvent<unknown>) {
52
- const formDialog = e.target as ExmgForm;
52
+ const formDialog = e.target as ExmForm;
53
53
  try {
54
54
  formDialog.submitting = true;
55
55
  // Do server call
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { ExmgForm } from './src/exm-form.js';
2
- export { ExmgFormBase, serializeForm } from './src/exm-form-base.js';
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 { ExmgForm } from './src/exm-form.js';
2
- export { ExmgFormBase, serializeForm } from './src/exm-form-base.js';
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.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.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": "0907b55c89325d59902b98a64c352bf6e1fc81ff"
46
+ "gitHead": "8e971cbad07fa6fab5a95aefd915937b752d2204"
47
47
  }
@@ -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 ExmgFormBase extends ExmgElement {
7
+ export declare class ExmFormBase extends ExmgElement {
8
8
  /**
9
9
  * Submit button copy
10
10
  */
@@ -72,7 +72,7 @@ export const serializeForm = (form) => {
72
72
  }
73
73
  return obj;
74
74
  };
75
- export class ExmgFormBase extends ExmgElement {
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
- ], ExmgFormBase.prototype, "submitBtn", void 0);
223
+ ], ExmFormBase.prototype, "submitBtn", void 0);
224
224
  __decorate([
225
225
  property({ type: String })
226
- ], ExmgFormBase.prototype, "cancelBtn", void 0);
226
+ ], ExmFormBase.prototype, "cancelBtn", void 0);
227
227
  __decorate([
228
228
  property({ type: Boolean })
229
- ], ExmgFormBase.prototype, "submitting", void 0);
229
+ ], ExmFormBase.prototype, "submitting", void 0);
230
230
  __decorate([
231
231
  property({ type: Boolean })
232
- ], ExmgFormBase.prototype, "formValid", void 0);
232
+ ], ExmFormBase.prototype, "formValid", void 0);
233
233
  __decorate([
234
234
  property({ type: Boolean })
235
- ], ExmgFormBase.prototype, "hasAsideContent", void 0);
235
+ ], ExmFormBase.prototype, "hasAsideContent", void 0);
236
236
  __decorate([
237
237
  property({ type: String })
238
- ], ExmgFormBase.prototype, "errorMessage", void 0);
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 { ExmgFormBase } from './exm-form-base.js';
2
- export declare class ExmgForm extends ExmgFormBase {
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': ExmgForm;
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 { ExmgFormBase } from './exm-form-base.js';
5
- let ExmgForm = class ExmgForm extends ExmgFormBase {
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
- ExmgForm.styles = [style];
11
- ExmgForm = __decorate([
10
+ ExmForm.styles = [style];
11
+ ExmForm = __decorate([
12
12
  customElement('exm-form')
13
- ], ExmgForm);
14
- export { ExmgForm };
13
+ ], ExmForm);
14
+ export { ExmForm };
15
15
  //# sourceMappingURL=exm-form.js.map