@ni/nimble-components 11.11.0 → 11.12.0
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/dist/all-components-bundle.js +6 -10
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +756 -757
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/dialog/index.d.ts +1 -5
- package/dist/esm/dialog/index.js +6 -9
- package/dist/esm/dialog/index.js.map +1 -1
- package/dist/esm/dialog/template.js +0 -1
- package/dist/esm/dialog/template.js.map +1 -1
- package/package.json +1 -1
|
@@ -17007,7 +17007,6 @@
|
|
|
17007
17007
|
role="alertdialog"
|
|
17008
17008
|
aria-label="${x => x.ariaLabel}"
|
|
17009
17009
|
@cancel="${(x, c) => x.cancelHandler(c.event)}"
|
|
17010
|
-
@close="${x => x.closeHandler()}"
|
|
17011
17010
|
>
|
|
17012
17011
|
<slot></slot>
|
|
17013
17012
|
</dialog>
|
|
@@ -17060,16 +17059,9 @@
|
|
|
17060
17059
|
if (!this.open) {
|
|
17061
17060
|
throw new Error('Dialog is not open');
|
|
17062
17061
|
}
|
|
17063
|
-
this.closeReason = reason;
|
|
17064
17062
|
this.dialogElement.close();
|
|
17065
|
-
|
|
17066
|
-
/**
|
|
17067
|
-
* @internal
|
|
17068
|
-
*/
|
|
17069
|
-
closeHandler() {
|
|
17070
|
-
this.resolveShow(this.closeReason);
|
|
17063
|
+
this.resolveShow(reason);
|
|
17071
17064
|
this.resolveShow = undefined;
|
|
17072
|
-
return true;
|
|
17073
17065
|
}
|
|
17074
17066
|
/**
|
|
17075
17067
|
* @internal
|
|
@@ -17079,11 +17071,15 @@
|
|
|
17079
17071
|
event.preventDefault();
|
|
17080
17072
|
}
|
|
17081
17073
|
else {
|
|
17082
|
-
this.
|
|
17074
|
+
this.resolveShow(USER_DISMISSED);
|
|
17075
|
+
this.resolveShow = undefined;
|
|
17083
17076
|
}
|
|
17084
17077
|
return true;
|
|
17085
17078
|
}
|
|
17086
17079
|
}
|
|
17080
|
+
// We want the member to match the name of the constant
|
|
17081
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
17082
|
+
Dialog.USER_DISMISSED = USER_DISMISSED;
|
|
17087
17083
|
__decorate([
|
|
17088
17084
|
attr({ attribute: 'prevent-dismiss', mode: 'boolean' })
|
|
17089
17085
|
], Dialog.prototype, "preventDismiss", void 0);
|