@social-mail/social-mail-client 1.8.289 → 1.8.290
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/site-editor/menus/EditorPopupMenu.d.ts.map +1 -1
- package/dist/site-editor/menus/EditorPopupMenu.js +5 -3
- package/dist/site-editor/menus/EditorPopupMenu.js.map +1 -1
- package/dist/site-editor/menus/commands/image/DuplicateElement.d.ts +2 -0
- package/dist/site-editor/menus/commands/image/DuplicateElement.d.ts.map +1 -0
- package/dist/site-editor/menus/commands/image/DuplicateElement.js +31 -0
- package/dist/site-editor/menus/commands/image/DuplicateElement.js.map +1 -0
- package/dist/site-editor-app/SiteEditorApp.pack.js +40 -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/tsconfig.tsbuildinfo +1 -1
- package/dist/web/page/mails/contacts/ConversationBar.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/site-editor/menus/EditorPopupMenu.tsx +2 -0
- package/src/site-editor/menus/commands/image/DuplicateElement.tsx +20 -0
- package/src/web/page/mails/contacts/ConversationBar.tsx +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationBar.d.ts","sourceRoot":"","sources":["../../../../../src/web/page/mails/contacts/ConversationBar.tsx"],"names":[],"mappings":"AACA,OAAO,eAAe,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"ConversationBar.d.ts","sourceRoot":"","sources":["../../../../../src/web/page/mails/contacts/ConversationBar.tsx"],"names":[],"mappings":"AACA,OAAO,eAAe,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAYnD,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,eAAe;IAGxD,YAAY,EAAE,QAAQ,CAAC;gBAEX,GAAG,KAAA,EAAE,CAAC,KAAA;IAUlB,gBAAgB,CAAC,EAAE,EAAE,QAAQ;;;;;IAI7B,qBAAqB,CAAE,IAAI,KAAA,EAAE,EAAE,EAAC,QAAQ;CAiB3C"}
|
package/package.json
CHANGED
|
@@ -14,6 +14,7 @@ import { PasteElementInside } from "./commands/clipboard/PasteElementInside";
|
|
|
14
14
|
import { PasteElementAbove } from "./commands/clipboard/PasteElementAbove";
|
|
15
15
|
import { EditElement } from "./commands/EditElement";
|
|
16
16
|
import { EditSvg } from "./commands/svg/EditSvg";
|
|
17
|
+
import { SplitImageElement } from "./commands/image/DuplicateElement";
|
|
17
18
|
|
|
18
19
|
let last = null as AtomPopover;
|
|
19
20
|
|
|
@@ -45,6 +46,7 @@ export default function EditorPopupMenu() {
|
|
|
45
46
|
|
|
46
47
|
<EditElement/>
|
|
47
48
|
{ /inline-svg/i.test(c.selection.element.tagName) && <EditSvg/>}
|
|
49
|
+
{ /^img$/i.test(c.selection.element.tagName) && <SplitImageElement/>}
|
|
48
50
|
|
|
49
51
|
<DeleteElement/>
|
|
50
52
|
</div>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import XNode from "@web-atoms/core/dist/core/XNode";
|
|
2
|
+
import { BindEditor } from "../../../properties/controls/PropertyEditor";
|
|
3
|
+
import MenuItem from "../../../../common/controls/menu/MenuItem";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export const SplitImageElement = () =>
|
|
7
|
+
<MenuItem
|
|
8
|
+
icon="fad fa-grid"
|
|
9
|
+
label="Split Image"
|
|
10
|
+
event-click={BindEditor.event((c) => {
|
|
11
|
+
const current = c.selection.element;
|
|
12
|
+
const copy = current.ownerDocument.createElement("image-slices");
|
|
13
|
+
const a = current.getAttributeNames();
|
|
14
|
+
for (const name of a) {
|
|
15
|
+
copy.setAttribute(name, current.getAttribute(name));
|
|
16
|
+
}
|
|
17
|
+
current.parentElement.replaceChild(copy, current);
|
|
18
|
+
c.commit();
|
|
19
|
+
})}
|
|
20
|
+
/>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BindableProperty } from "@web-atoms/core/dist/core/BindableProperty";
|
|
2
2
|
import ToggleButtonBar from "@web-atoms/web-controls/dist/basic/ToggleButtonBar";
|
|
3
|
-
import { IMailbox
|
|
3
|
+
import { IMailbox } from "../../../../model/model";
|
|
4
4
|
import XNode from "@web-atoms/core/dist/core/XNode";
|
|
5
5
|
import Bind from "@web-atoms/core/dist/core/Bind";
|
|
6
6
|
import { toKMBString } from "../../../../common/NumberFormats";
|
|
@@ -28,7 +28,7 @@ export default class ConversationBar extends ToggleButtonBar {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
getConversations(mb: IMailbox) {
|
|
31
|
-
return conversationTypes.map((x) => ({ ... x, count: this.getConversationNumber(x, mb)}))
|
|
31
|
+
return conversationTypes.map((x) => ({ ... x, count: this.getConversationNumber(x, mb)}));
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
getConversationNumber (item, mb:IMailbox) {
|