@social-mail/social-mail-client 1.8.431 → 1.8.433
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/admin/AdminAppIndex.pack.js +10 -4
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/public/channel/ChannelApp.pack.js +10 -4
- package/dist/public/channel/ChannelApp.pack.js.map +1 -1
- package/dist/public/channel/ChannelApp.pack.min.js +1 -1
- package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
- package/dist/public/store/StoreApp.pack.js +10 -4
- package/dist/public/store/StoreApp.pack.js.map +1 -1
- package/dist/public/store/StoreApp.pack.min.js +1 -1
- package/dist/public/store/StoreApp.pack.min.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +10 -4
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/web/AppIndex.pack.js +10 -4
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/node_modules/@web-atoms/web-controls/dist/mobile-app/MobileApp.d.ts.map +1 -1
- package/node_modules/@web-atoms/web-controls/dist/mobile-app/MobileApp.js +10 -4
- package/node_modules/@web-atoms/web-controls/dist/mobile-app/MobileApp.js.map +1 -1
- package/node_modules/@web-atoms/web-controls/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@web-atoms/web-controls/package.json +1 -1
- package/node_modules/@web-atoms/web-controls/src/mobile-app/MobileApp.tsx +9 -4
- package/package.json +2 -2
|
@@ -12,7 +12,7 @@ import { BindableProperty } from "@web-atoms/core/dist/core/BindableProperty";
|
|
|
12
12
|
import { AtomDisposableList } from "@web-atoms/core/dist/core/AtomDisposableList";
|
|
13
13
|
import Bind from "@web-atoms/core/dist/core/Bind";
|
|
14
14
|
import { CancelToken, IDisposable } from "@web-atoms/core/dist/core/types";
|
|
15
|
-
import { ChildEnumerator } from "@web-atoms/core/dist/web/core/AtomUI";
|
|
15
|
+
import { AncestorEnumerator, ChildEnumerator } from "@web-atoms/core/dist/web/core/AtomUI";
|
|
16
16
|
import { displayRouteSymbol, routeSymbol } from "@web-atoms/core/dist/core/Command";
|
|
17
17
|
import Route from "@web-atoms/core/dist/core/Route";
|
|
18
18
|
|
|
@@ -36,12 +36,13 @@ export class Drawer extends AtomControl {
|
|
|
36
36
|
this.element.dataset.drawerPage = "drawer-page";
|
|
37
37
|
this.bindEvent(this.element, "click", (e: Event) => {
|
|
38
38
|
const target = e.target as HTMLInputElement;
|
|
39
|
-
if (
|
|
39
|
+
if (e.defaultPrevented) {
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
|
-
if(
|
|
43
|
-
|
|
42
|
+
if (/input/i.test(target.tagName) && !/button|submit/i.test(target.type)) {
|
|
43
|
+
return;
|
|
44
44
|
}
|
|
45
|
+
this.closeDrawer();
|
|
45
46
|
});
|
|
46
47
|
this.runAfterInit(() => this.app.runAsync(() => this.init?.()));
|
|
47
48
|
}
|
|
@@ -591,6 +592,10 @@ export default class MobileApp extends AtomControl {
|
|
|
591
592
|
if (de.defaultPrevented) {
|
|
592
593
|
return;
|
|
593
594
|
}
|
|
595
|
+
const target = de.target as HTMLElement;
|
|
596
|
+
if(AncestorEnumerator.find(target, (x) => x === drawerPage.element)) {
|
|
597
|
+
return;
|
|
598
|
+
}
|
|
594
599
|
de.target.dispatchEvent(new CustomEvent("closeDrawer", { bubbles: true }));
|
|
595
600
|
};
|
|
596
601
|
this.element.appendChild(drawerPage.element);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@social-mail/social-mail-client",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.433",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@web-atoms/email-dom": "^1.0.33",
|
|
26
26
|
"@web-atoms/entity": "^2.5.2",
|
|
27
27
|
"@web-atoms/module-loader": "^2.1.90",
|
|
28
|
-
"@web-atoms/web-controls": "^2.5.
|
|
28
|
+
"@web-atoms/web-controls": "^2.5.5",
|
|
29
29
|
"reflect-metadata": "^0.1.13",
|
|
30
30
|
"tinycolor2": "^1.6.0"
|
|
31
31
|
},
|