@exmg/exm-dialogs 1.1.22 → 1.1.23

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.
@@ -60,5 +60,6 @@ export declare class ExmDialogConfirmBase extends ExmgElement {
60
60
  */
61
61
  doAction?(): Promise<void> | void;
62
62
  private handleSubmit;
63
+ private handleClose;
63
64
  protected render(): import("lit-html").TemplateResult<1>;
64
65
  }
@@ -88,6 +88,10 @@ export class ExmDialogConfirmBase extends ExmgElement {
88
88
  this.fire('action-confirmed', {}, true);
89
89
  }
90
90
  }
91
+ handleClose() {
92
+ this.fire('action-close');
93
+ this.close();
94
+ }
91
95
  render() {
92
96
  const { type } = this;
93
97
  return html ` <exm-dialog .type=${type} .open=${this.open} @closed=${() => (this.open = false)}>
@@ -97,7 +101,7 @@ export class ExmDialogConfirmBase extends ExmgElement {
97
101
  <div slot="actions">
98
102
  ${this.hideCancelButton
99
103
  ? nothing
100
- : html ` <md-text-button dialogFocus @click=${() => this.close()}>${this.cancelBtn}</md-text-button> `}
104
+ : html ` <md-text-button dialogFocus @click=${this.handleClose}>${this.cancelBtn}</md-text-button> `}
101
105
  <exm-filled-button @click=${this.handleSubmit} ?disabled=${this.submitting} ?loading=${this.submitting}
102
106
  >${this.submitBtn}</exm-filled-button
103
107
  >
@@ -66,6 +66,7 @@ export class ExmDialogFormBase extends ExmFormValidateMixin(ExmgElement) {
66
66
  handleCancelBtnClick() {
67
67
  this.reset();
68
68
  this.close();
69
+ this.fire('action-close');
69
70
  }
70
71
  reset() {
71
72
  this.errorMessage = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exmg/exm-dialogs",
3
- "version": "1.1.22",
3
+ "version": "1.1.23",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,8 +24,8 @@
24
24
  "homepage": "https://bitbucket.org/exmachina/exm-web-components",
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
- "@exmg/exm-button": "^1.1.22",
28
- "@exmg/exm-form": "^1.1.22"
27
+ "@exmg/exm-button": "^1.1.23",
28
+ "@exmg/exm-form": "^1.1.23"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@exmg/lit-base": "^3.0.3",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "c6367664825fde8ba561efc9e763c42dc33853d9"
39
+ "gitHead": "7f954ebfd386f5084e7f76a04c839de66aea3102"
40
40
  }