@moni-labs/moni-ui 0.4.17 → 0.4.18
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/browser/moni-ui.iife.min.js +2 -1
- package/dist/browser/moni-ui.iife.min.js.br +0 -0
- package/dist/browser/moni-ui.iife.min.js.gz +0 -0
- package/dist/browser/moni-ui.iife.min.js.map +1 -1
- package/dist/browser/moni-ui.min.js +7 -1
- package/dist/browser/moni-ui.min.js.br +0 -0
- package/dist/browser/moni-ui.min.js.gz +0 -0
- package/dist/browser/moni-ui.min.js.map +1 -1
- package/dist/cdn/components/moni-bottom-sheet.js +2 -1
- package/dist/cdn/importmap.json +98 -98
- package/dist/components/moni-bottom-sheet.d.ts +8 -0
- package/dist/components/moni-bottom-sheet.d.ts.map +1 -1
- package/dist/components/moni-bottom-sheet.js +23 -0
- package/docs/api.json +1 -1
- package/package.json +1 -1
- package/src/components/moni-bottom-sheet.test.ts +40 -0
- package/src/components/moni-bottom-sheet.ts +23 -0
|
@@ -1854,7 +1854,9 @@ var Je = class extends W {
|
|
|
1854
1854
|
return this._animateAndClose();
|
|
1855
1855
|
}
|
|
1856
1856
|
willUpdate(e) {
|
|
1857
|
-
e.has("open") && this.open !== e.get("open") && (this.open ? qe(this, "moni-request-open", { cancelable: !0 }) || (this.open = !1) : this._skipRequestClose || qe(this, "moni-request-close", { cancelable: !0 }) || (this.open = !0))
|
|
1857
|
+
if (e.has("open") && this.open !== e.get("open") && (this.open ? qe(this, "moni-request-open", { cancelable: !0 }) || (this.open = !1) : this._skipRequestClose || qe(this, "moni-request-close", { cancelable: !0 }) || (this.open = !0)), e.has("open") && !this.open && this._dialog && typeof this._dialog.close == "function") try {
|
|
1858
|
+
this._dialog.close();
|
|
1859
|
+
} catch {}
|
|
1858
1860
|
}
|
|
1859
1861
|
async _animateAndClose() {
|
|
1860
1862
|
if (this._isClosing || !this.open) return !1;
|
|
@@ -1929,6 +1931,9 @@ var Je = class extends W {
|
|
|
1929
1931
|
}
|
|
1930
1932
|
this._lastDeltaY = 0;
|
|
1931
1933
|
}
|
|
1934
|
+
_onCancel(e) {
|
|
1935
|
+
e.preventDefault(), this.close();
|
|
1936
|
+
}
|
|
1932
1937
|
_onPointerCancel(e) {
|
|
1933
1938
|
this._isDragging && this._onPointerUp(e);
|
|
1934
1939
|
}
|
|
@@ -2108,6 +2113,7 @@ var Je = class extends W {
|
|
|
2108
2113
|
?open=${this.open}
|
|
2109
2114
|
class=${t}
|
|
2110
2115
|
@click=${this._onDialogClick}
|
|
2116
|
+
@cancel=${this._onCancel}
|
|
2111
2117
|
@pointerdown=${this._onPointerDown}
|
|
2112
2118
|
@pointermove=${this._onPointerMove}
|
|
2113
2119
|
@pointerup=${this._onPointerUp}
|
|
Binary file
|
|
Binary file
|