@ni/nimble-components 11.10.0 → 11.10.3
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 +3 -1
- package/dist/all-components-bundle.js +1 -4
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +1 -1
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/dialog/index.js +1 -4
- package/dist/esm/dialog/index.js.map +1 -1
- package/package.json +3 -2
|
@@ -2292,7 +2292,7 @@ const Kh=ut`
|
|
|
2292
2292
|
class Yh extends le{constructor(){super(...arguments),this.preventDismiss=!1}get open(){return void 0!==this.resolveShow}async show(){if(this.open)throw new Error("Dialog is already open")
|
|
2293
2293
|
return this.dialogElement.showModal(),new Promise(((t,e)=>{this.resolveShow=t}))}close(t){if(!this.open)throw new Error("Dialog is not open")
|
|
2294
2294
|
this.closeReason=t,this.dialogElement.close()}closeHandler(){return this.resolveShow(this.closeReason),this.resolveShow=void 0,!0}cancelHandler(t){return this.preventDismiss?t.preventDefault():this.closeReason=Xh,!0}}zn([tt({attribute:"prevent-dismiss",mode:"boolean"})],Yh.prototype,"preventDismiss",void 0),de(Yh,Te)
|
|
2295
|
-
const Gh=Yh.compose({baseName:"dialog",template:Wh,styles:Kh,baseClass:Yh
|
|
2295
|
+
const Gh=Yh.compose({baseName:"dialog",template:Wh,styles:Kh,baseClass:Yh})
|
|
2296
2296
|
Bi.getOrCreate().withPrefix("nimble").register(Gh())
|
|
2297
2297
|
var Qh="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Jh={},Zh={},td={}
|
|
2298
2298
|
!function(t){var e
|