@social-mail/social-mail-client 1.2.17 → 1.2.19
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/content/images/svg/html-editor/layouts/card.png +0 -0
- package/content/images/svg/html-editor/layouts/card.svg +77 -0
- package/content/images/svg/html-editor/layouts/column-2.png +0 -0
- package/content/images/svg/html-editor/layouts/column-2.svg +119 -0
- package/content/images/svg/html-editor/layouts/column-3.png +0 -0
- package/content/images/svg/html-editor/layouts/column-3.svg +155 -0
- package/content/images/svg/html-editor/layouts/column.png +0 -0
- package/content/images/svg/html-editor/layouts/column.svg +86 -0
- package/content/images/svg/html-editor/layouts/image.svg +1 -0
- package/content/images/svg/html-editor/layouts/row.png +0 -0
- package/content/images/svg/html-editor/layouts/row.svg +87 -0
- package/content/images/svg/html-editor/layouts/vertical-image-box.png +0 -0
- package/content/images/svg/html-editor/layouts/vertical-image-box.svg +78 -0
- package/dist/admin/AdminAppIndex.pack.js +1878 -619
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +545 -51
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/services/files/LocalFileService.d.ts +1 -0
- package/dist/services/files/LocalFileService.d.ts.map +1 -1
- package/dist/services/files/LocalFileService.js +24 -8
- package/dist/services/files/LocalFileService.js.map +1 -1
- package/dist/site-editor/blocks/Block.d.ts +7 -3
- package/dist/site-editor/blocks/Block.d.ts.map +1 -1
- package/dist/site-editor/blocks/Block.js +30 -9
- package/dist/site-editor/blocks/Block.js.map +1 -1
- package/dist/site-editor/blocks/Card.d.ts +2 -0
- package/dist/site-editor/blocks/Card.d.ts.map +1 -0
- package/dist/site-editor/blocks/Card.js +28 -0
- package/dist/site-editor/blocks/Card.js.map +1 -0
- package/dist/site-editor/blocks/ColumnBox.d.ts +4 -0
- package/dist/site-editor/blocks/ColumnBox.d.ts.map +1 -0
- package/dist/site-editor/blocks/ColumnBox.js +42 -0
- package/dist/site-editor/blocks/ColumnBox.js.map +1 -0
- package/dist/site-editor/blocks/FeatureBlock.d.ts.map +1 -1
- package/dist/site-editor/blocks/FeatureBlock.js +8 -8
- package/dist/site-editor/blocks/FeatureBlock.js.map +1 -1
- package/dist/site-editor/blocks/Image.d.ts +2 -0
- package/dist/site-editor/blocks/Image.d.ts.map +1 -0
- package/dist/site-editor/blocks/Image.js +24 -0
- package/dist/site-editor/blocks/Image.js.map +1 -0
- package/dist/site-editor/blocks/ImageBox.d.ts +3 -0
- package/dist/site-editor/blocks/ImageBox.d.ts.map +1 -0
- package/dist/site-editor/blocks/ImageBox.js +38 -0
- package/dist/site-editor/blocks/ImageBox.js.map +1 -0
- package/dist/site-editor/blocks/ImageCard.d.ts +2 -0
- package/dist/site-editor/blocks/ImageCard.d.ts.map +1 -0
- package/dist/site-editor/blocks/ImageCard.js +26 -0
- package/dist/site-editor/blocks/ImageCard.js.map +1 -0
- package/dist/site-editor/blocks/List.d.ts +2 -0
- package/dist/site-editor/blocks/List.d.ts.map +1 -0
- package/dist/site-editor/blocks/List.js +20 -0
- package/dist/site-editor/blocks/List.js.map +1 -0
- package/dist/site-editor/blocks/RowBox.d.ts +2 -0
- package/dist/site-editor/blocks/RowBox.d.ts.map +1 -0
- package/dist/site-editor/blocks/RowBox.js +24 -0
- package/dist/site-editor/blocks/RowBox.js.map +1 -0
- package/dist/site-editor/blocks/TextBox.d.ts +2 -0
- package/dist/site-editor/blocks/TextBox.d.ts.map +1 -0
- package/dist/site-editor/blocks/TextBox.js +24 -0
- package/dist/site-editor/blocks/TextBox.js.map +1 -0
- package/dist/site-editor/blocks/VerticalImageBox.d.ts +2 -0
- package/dist/site-editor/blocks/VerticalImageBox.d.ts.map +1 -0
- package/dist/site-editor/blocks/VerticalImageBox.js +29 -0
- package/dist/site-editor/blocks/VerticalImageBox.js.map +1 -0
- package/dist/site-editor/blocks/WrapGrid.d.ts.map +1 -1
- package/dist/site-editor/blocks/WrapGrid.js +8 -8
- package/dist/site-editor/blocks/WrapGrid.js.map +1 -1
- package/dist/site-editor/blocks/defaultImage.d.ts +2 -0
- package/dist/site-editor/blocks/defaultImage.d.ts.map +1 -0
- package/dist/site-editor/blocks/defaultImage.js +12 -0
- package/dist/site-editor/blocks/defaultImage.js.map +1 -0
- package/dist/site-editor/editor/HtmlPageEditor.d.ts +5 -0
- package/dist/site-editor/editor/HtmlPageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.js +100 -5
- package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.d.ts +2 -0
- package/dist/site-editor/editor/WebSitePageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.js +32 -18
- package/dist/site-editor/editor/WebSitePageEditor.js.map +1 -1
- package/dist/site-editor/properties/controls/PropertyEditor.d.ts.map +1 -1
- package/dist/site-editor/properties/controls/PropertyEditor.js +35 -6
- package/dist/site-editor/properties/controls/PropertyEditor.js.map +1 -1
- package/dist/site-editor/properties/groups/LayoutEditor.d.ts.map +1 -1
- package/dist/site-editor/properties/groups/LayoutEditor.js +3 -0
- package/dist/site-editor/properties/groups/LayoutEditor.js.map +1 -1
- package/dist/site-editor/styler/Styler.d.ts +72 -0
- package/dist/site-editor/styler/Styler.d.ts.map +1 -1
- package/dist/site-editor/styler/Styler.js +19 -1
- package/dist/site-editor/styler/Styler.js.map +1 -1
- package/dist/site-editor/styler/StylerSet.d.ts +1 -0
- package/dist/site-editor/styler/StylerSet.d.ts.map +1 -1
- package/dist/site-editor/styler/StylerSet.js +13 -10
- package/dist/site-editor/styler/StylerSet.js.map +1 -1
- package/dist/site-editor/styler/properties/color-sets/stylerColorSets.d.ts +3 -0
- package/dist/site-editor/styler/properties/color-sets/stylerColorSets.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/color-sets/stylerColorSets.js +60 -0
- package/dist/site-editor/styler/properties/color-sets/stylerColorSets.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutBlock.d.ts +2 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutBlock.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutBlock.js +22 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutBlock.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutCard.d.ts +2 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutCard.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutCard.js +82 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutCard.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutColumn.d.ts +2 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutColumn.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutColumn.js +50 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutColumn.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutColumn2Box.d.ts +2 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutColumn2Box.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutColumn2Box.js +58 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutColumn2Box.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutColumn3Box.d.ts +2 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutColumn3Box.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutColumn3Box.js +58 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutColumn3Box.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutFloatingNavBar.d.ts +2 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutFloatingNavBar.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/{layout/layout.js → layouts/blocks/layoutFloatingNavBar.js} +8 -65
- package/dist/site-editor/styler/properties/layouts/blocks/layoutFloatingNavBar.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutImageBlock.d.ts +2 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutImageBlock.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutImageBlock.js +56 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutImageBlock.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutImageBox.d.ts +2 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutImageBox.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutImageBox.js +63 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutImageBox.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutImageCard.d.ts +2 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutImageCard.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutImageCard.js +115 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutImageCard.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutNavBar.d.ts +2 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutNavBar.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutNavBar.js +32 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutNavBar.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutRightImageBox.d.ts +2 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutRightImageBox.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutRightImageBox.js +63 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutRightImageBox.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutRow.d.ts +2 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutRow.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutRow.js +59 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutRow.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutTextBox.d.ts +2 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutTextBox.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutTextBox.js +47 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutTextBox.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutWrapList.d.ts +2 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutWrapList.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutWrapList.js +44 -0
- package/dist/site-editor/styler/properties/layouts/blocks/layoutWrapList.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/display.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/display.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/flex/flex.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/flex/flex.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/items-position/itemsPosition.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/items-position/itemsPosition.js.map +1 -0
- package/dist/site-editor/styler/properties/layouts/layout.d.ts.map +1 -0
- package/dist/site-editor/styler/properties/layouts/layout.js +40 -0
- package/dist/site-editor/styler/properties/layouts/layout.js.map +1 -0
- package/dist/site-editor/toolbars/EditorToolbar.d.ts.map +1 -1
- package/dist/site-editor/toolbars/EditorToolbar.js +1 -0
- package/dist/site-editor/toolbars/EditorToolbar.js.map +1 -1
- package/dist/site-editor/toolbars/UndoRedoToolbar.d.ts.map +1 -1
- package/dist/site-editor/toolbars/UndoRedoToolbar.js +4 -12
- package/dist/site-editor/toolbars/UndoRedoToolbar.js.map +1 -1
- package/dist/style/GlobalStyle.js +1 -1
- package/dist/style/GlobalStyle.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +1615 -356
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +526 -32
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/files/media/ChooseMediaPage.d.ts.map +1 -1
- package/dist/web/page/files/media/ChooseMediaPage.js +23 -4
- package/dist/web/page/files/media/ChooseMediaPage.js.map +1 -1
- package/dist/web/page/files/service/CloudFileService.d.ts +5 -4
- package/dist/web/page/files/service/CloudFileService.d.ts.map +1 -1
- package/dist/web/page/files/service/CloudFileService.js +12 -13
- package/dist/web/page/files/service/CloudFileService.js.map +1 -1
- package/package.json +1 -1
- package/src/services/files/LocalFileService.tsx +25 -7
- package/src/site-editor/blocks/Block.tsx +35 -10
- package/src/site-editor/blocks/Card.tsx +12 -0
- package/src/site-editor/blocks/ColumnBox.tsx +39 -0
- package/src/site-editor/blocks/FeatureBlock.tsx +1 -5
- package/src/site-editor/blocks/Image.tsx +9 -0
- package/src/site-editor/blocks/ImageBox.tsx +27 -0
- package/src/site-editor/blocks/ImageCard.tsx +13 -0
- package/src/site-editor/blocks/List.tsx +11 -0
- package/src/site-editor/blocks/RowBox.tsx +13 -0
- package/src/site-editor/blocks/{ImageBlock.tsx → TextBox.tsx} +9 -9
- package/src/site-editor/blocks/VerticalImageBox.tsx +14 -0
- package/src/site-editor/blocks/WrapGrid.tsx +2 -5
- package/src/site-editor/blocks/defaultImage.ts +2 -0
- package/src/site-editor/editor/HtmlPageEditor.tsx +90 -3
- package/src/site-editor/editor/WebSitePageEditor.tsx +34 -14
- package/src/site-editor/properties/controls/PropertyEditor.tsx +39 -7
- package/src/site-editor/properties/groups/LayoutEditor.tsx +1 -0
- package/src/site-editor/styler/Styler.ts +21 -0
- package/src/site-editor/styler/StylerSet.ts +6 -4
- package/src/site-editor/styler/properties/color-sets/stylerColorSets.ts +50 -0
- package/src/site-editor/styler/properties/layouts/blocks/layoutBlock.ts +10 -0
- package/src/site-editor/styler/properties/layouts/blocks/layoutCard.ts +70 -0
- package/src/site-editor/styler/properties/layouts/blocks/layoutColumn.ts +38 -0
- package/src/site-editor/styler/properties/layouts/blocks/layoutColumn2Box.ts +46 -0
- package/src/site-editor/styler/properties/layouts/blocks/layoutColumn3Box.ts +46 -0
- package/src/site-editor/styler/properties/{layout/layout.ts → layouts/blocks/layoutFloatingNavBar.ts} +6 -65
- package/src/site-editor/styler/properties/layouts/blocks/layoutImageBlock.ts +44 -0
- package/src/site-editor/styler/properties/layouts/blocks/layoutImageBox.ts +51 -0
- package/src/site-editor/styler/properties/layouts/blocks/layoutImageCard.ts +103 -0
- package/src/site-editor/styler/properties/layouts/blocks/layoutNavBar.ts +20 -0
- package/src/site-editor/styler/properties/layouts/blocks/layoutRightImageBox.ts +51 -0
- package/src/site-editor/styler/properties/layouts/blocks/layoutRow.ts +47 -0
- package/src/site-editor/styler/properties/layouts/blocks/layoutTextBox.ts +35 -0
- package/src/site-editor/styler/properties/layouts/blocks/layoutWrapList.ts +32 -0
- package/src/site-editor/styler/properties/layouts/layout.ts +30 -0
- package/src/site-editor/toolbars/EditorToolbar.tsx +1 -0
- package/src/site-editor/toolbars/UndoRedoToolbar.tsx +2 -8
- package/src/style/GlobalStyle.ts +1 -1
- package/src/web/page/files/media/ChooseMediaPage.tsx +23 -7
- package/src/web/page/files/service/CloudFileService.ts +31 -13
- package/dist/site-editor/blocks/ImageBlock.d.ts +0 -2
- package/dist/site-editor/blocks/ImageBlock.d.ts.map +0 -1
- package/dist/site-editor/blocks/ImageBlock.js +0 -23
- package/dist/site-editor/blocks/ImageBlock.js.map +0 -1
- package/dist/site-editor/styler/properties/layout/display.d.ts.map +0 -1
- package/dist/site-editor/styler/properties/layout/display.js.map +0 -1
- package/dist/site-editor/styler/properties/layout/flex/flex.d.ts.map +0 -1
- package/dist/site-editor/styler/properties/layout/flex/flex.js.map +0 -1
- package/dist/site-editor/styler/properties/layout/items-position/itemsPosition.d.ts.map +0 -1
- package/dist/site-editor/styler/properties/layout/items-position/itemsPosition.js.map +0 -1
- package/dist/site-editor/styler/properties/layout/layout.d.ts.map +0 -1
- package/dist/site-editor/styler/properties/layout/layout.js.map +0 -1
- /package/dist/site-editor/styler/properties/{layout → layouts}/display.d.ts +0 -0
- /package/dist/site-editor/styler/properties/{layout → layouts}/display.js +0 -0
- /package/dist/site-editor/styler/properties/{layout → layouts}/flex/flex.d.ts +0 -0
- /package/dist/site-editor/styler/properties/{layout → layouts}/flex/flex.js +0 -0
- /package/dist/site-editor/styler/properties/{layout → layouts}/items-position/itemsPosition.d.ts +0 -0
- /package/dist/site-editor/styler/properties/{layout → layouts}/items-position/itemsPosition.js +0 -0
- /package/dist/site-editor/styler/properties/{layout → layouts}/layout.d.ts +0 -0
- /package/src/site-editor/styler/properties/{layout → layouts}/display.ts +0 -0
- /package/src/site-editor/styler/properties/{layout → layouts}/flex/flex.ts +0 -0
- /package/src/site-editor/styler/properties/{layout → layouts}/items-position/itemsPosition.ts +0 -0
|
@@ -5,8 +5,6 @@ import sleep from "@web-atoms/core/dist/core/sleep";
|
|
|
5
5
|
import styled from "@web-atoms/core/dist/style/styled";
|
|
6
6
|
import Action from "@web-atoms/core/dist/view-model/Action";
|
|
7
7
|
import { AtomControl } from "@web-atoms/core/dist/web/controls/AtomControl";
|
|
8
|
-
import { BindableProperty } from "@web-atoms/core/dist/core/BindableProperty";
|
|
9
|
-
import { ImageBlock } from "../blocks/ImageBlock";
|
|
10
8
|
import { InstallDragDropHelper } from "../drag-drop/DragDropHelper";
|
|
11
9
|
import { CodeCommand } from "../commands/CodeCommand";
|
|
12
10
|
import UndoRedoToolbar from "../toolbars/UndoRedoToolbar";
|
|
@@ -17,6 +15,15 @@ import { StylerSet } from "../styler/StylerSet";
|
|
|
17
15
|
import { SelectedElement } from "./SelectedElement";
|
|
18
16
|
import { AtomBinder } from "@web-atoms/core/dist/core/AtomBinder";
|
|
19
17
|
import { StylerVariable } from "../styler/Styler";
|
|
18
|
+
import { ImageBox, RightImageBox } from "../blocks/ImageBox";
|
|
19
|
+
import { RowBox } from "../blocks/RowBox";
|
|
20
|
+
import { ColumnBox, Columns2, Columns3 } from "../blocks/ColumnBox";
|
|
21
|
+
import { VerticalImageBox } from "../blocks/VerticalImageBox";
|
|
22
|
+
import { Image } from "../blocks/Image";
|
|
23
|
+
import { ImageCard } from "../blocks/ImageCard";
|
|
24
|
+
import { TextBox } from "../blocks/TextBox";
|
|
25
|
+
import { Card } from "../blocks/Card";
|
|
26
|
+
import { List } from "../blocks/List";
|
|
20
27
|
|
|
21
28
|
styled.css `
|
|
22
29
|
display: grid;
|
|
@@ -51,6 +58,7 @@ import { StylerVariable } from "../styler/Styler";
|
|
|
51
58
|
grid-column: 3;
|
|
52
59
|
border-left: solid 1px lightgray;
|
|
53
60
|
border-radius: 0;
|
|
61
|
+
overflow: auto;
|
|
54
62
|
}
|
|
55
63
|
|
|
56
64
|
& > [data-element=editor] {
|
|
@@ -214,6 +222,25 @@ export default class HtmlPageEditor extends AtomControl {
|
|
|
214
222
|
this.hover.update(target);
|
|
215
223
|
}, { capture: true });
|
|
216
224
|
|
|
225
|
+
this.htmlDocument.addEventListener("keydown", (e) => {
|
|
226
|
+
if(e.ctrlKey || e.metaKey) {
|
|
227
|
+
switch(e.key) {
|
|
228
|
+
case "s":
|
|
229
|
+
this.contentEditor.dispatchEvent(new CustomEvent("savePage", { bubbles: true }));
|
|
230
|
+
e.preventDefault();
|
|
231
|
+
break;
|
|
232
|
+
case "z":
|
|
233
|
+
this.contentEditor.dispatchEvent(new CustomEvent("undo", { bubbles: true }));
|
|
234
|
+
e.preventDefault();
|
|
235
|
+
break;
|
|
236
|
+
case "y":
|
|
237
|
+
this.contentEditor.dispatchEvent(new CustomEvent("redo", { bubbles: true }));
|
|
238
|
+
e.preventDefault();
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
|
|
217
244
|
InstallDragDropHelper(this);
|
|
218
245
|
|
|
219
246
|
this.htmlDocument.close();
|
|
@@ -266,8 +293,19 @@ export default class HtmlPageEditor extends AtomControl {
|
|
|
266
293
|
</EditorToolbar>
|
|
267
294
|
</div>
|
|
268
295
|
<EditorToolbar data-element="left">
|
|
269
|
-
<
|
|
296
|
+
<TextBox/>
|
|
297
|
+
<Image/>
|
|
270
298
|
<WrapGrid/>
|
|
299
|
+
<VerticalImageBox/>
|
|
300
|
+
<ImageBox/>
|
|
301
|
+
<RightImageBox/>
|
|
302
|
+
<Card/>
|
|
303
|
+
<ImageCard/>
|
|
304
|
+
<RowBox/>
|
|
305
|
+
<ColumnBox/>
|
|
306
|
+
<Columns2/>
|
|
307
|
+
<Columns3/>
|
|
308
|
+
<List/>
|
|
271
309
|
</EditorToolbar>
|
|
272
310
|
<div data-element="editor"
|
|
273
311
|
style-max-width={Bind.oneWay(() => this.maxWidth > 768 ? "" : this.maxWidth + "px" )}>
|
|
@@ -339,6 +377,27 @@ export default class HtmlPageEditor extends AtomControl {
|
|
|
339
377
|
}
|
|
340
378
|
}
|
|
341
379
|
|
|
380
|
+
public buildXNode(node: XNode) {
|
|
381
|
+
const build = (n: XNode) => {
|
|
382
|
+
const e = this.htmlDocument.createElement(n.name as string);
|
|
383
|
+
if (n.attributes) {
|
|
384
|
+
for (const key in n.attributes) {
|
|
385
|
+
if (Object.prototype.hasOwnProperty.call(n.attributes, key)) {
|
|
386
|
+
const element = n.attributes[key];
|
|
387
|
+
e.setAttribute(key, element);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
if (n.children) {
|
|
392
|
+
for (const iterator of n.children) {
|
|
393
|
+
e.appendChild(build(iterator));
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
return e;
|
|
397
|
+
};
|
|
398
|
+
return build(node);
|
|
399
|
+
}
|
|
400
|
+
|
|
342
401
|
@Action({ onEvent: "delete-element"})
|
|
343
402
|
async deleteElement() {
|
|
344
403
|
const current = this.selection.element;
|
|
@@ -366,6 +425,22 @@ export default class HtmlPageEditor extends AtomControl {
|
|
|
366
425
|
return this.insertImage(prompt("Image Src", ""));
|
|
367
426
|
}
|
|
368
427
|
|
|
428
|
+
@Action({ onEvent: "keyup"})
|
|
429
|
+
onKeyUp(d, ke: KeyboardEvent) {
|
|
430
|
+
if (ke.ctrlKey) {
|
|
431
|
+
switch(ke.key) {
|
|
432
|
+
case "z":
|
|
433
|
+
ke.preventDefault();
|
|
434
|
+
this.undo();
|
|
435
|
+
break;
|
|
436
|
+
case "y":
|
|
437
|
+
ke.preventDefault();
|
|
438
|
+
this.redo();
|
|
439
|
+
break;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
369
444
|
async insertImage(src: string, style?: { [key: string]: string}) {
|
|
370
445
|
let img: HTMLImageElement;
|
|
371
446
|
if(this.selection.isImage) {
|
|
@@ -447,6 +522,18 @@ export default class HtmlPageEditor extends AtomControl {
|
|
|
447
522
|
}, 100);
|
|
448
523
|
}
|
|
449
524
|
|
|
525
|
+
@Action({ onEvent: "undo"})
|
|
526
|
+
undo() {
|
|
527
|
+
this.redoList.insert(this.redoList.length, this.htmlDocument.documentElement.innerHTML);
|
|
528
|
+
this.htmlDocument.documentElement.innerHTML = this.undoList.removeAt(this.undoList.length-1);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
@Action({ onEvent: "redo"})
|
|
532
|
+
redo() {
|
|
533
|
+
this.undoList.insert(this.undoList.length, this.htmlDocument.documentElement.innerHTML);
|
|
534
|
+
this.htmlDocument.documentElement.innerHTML = this.redoList.removeAt(this.redoList.length-1);
|
|
535
|
+
}
|
|
536
|
+
|
|
450
537
|
protected async setStylerSheet() {
|
|
451
538
|
const document = this.htmlDocument;
|
|
452
539
|
let style = document.querySelector(`[styler-style-sheet]`);
|
|
@@ -23,25 +23,45 @@ export default class WebSitePageEditor extends HtmlPageEditor {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
protected async setStylerSheet() {
|
|
26
|
+
|
|
27
|
+
const stylerCSS = await this.createFile("styler.css", StylerSet.instance.toString());
|
|
28
|
+
|
|
29
|
+
await this.addStyleSheet(stylerCSS);
|
|
30
|
+
|
|
31
|
+
let vars = await this.cloudFileService.children(this.folder.appFileID, "styles/vars.css")
|
|
32
|
+
.firstOrDefault();
|
|
33
|
+
if (!vars) {
|
|
34
|
+
vars = await this.createFile("vars.css", `* {
|
|
35
|
+
}`);
|
|
36
|
+
}
|
|
37
|
+
await this.addStyleSheet(vars);
|
|
38
|
+
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
private async addStyleSheet(file: IAppFile) {
|
|
26
43
|
const document = this.htmlDocument;
|
|
27
|
-
|
|
28
|
-
let link
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return;
|
|
44
|
+
const href = `/api/site/asset/download/${this.folder.appFileID}/${file.appFileID}/${file.fileContentID}/${file.name}`;
|
|
45
|
+
let link: HTMLLinkElement;
|
|
46
|
+
for (const iterator of Array.from(document.querySelectorAll(`link[rel="stylesheet"][styler-css]`))) {
|
|
47
|
+
if(iterator.getAttribute("styler-css") === file.name) {
|
|
48
|
+
link = iterator as HTMLLinkElement;
|
|
49
|
+
break;
|
|
34
50
|
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
link
|
|
38
|
-
link.setAttribute("styler-style", "ref");
|
|
51
|
+
}
|
|
52
|
+
if (!link){
|
|
53
|
+
link ??= document.createElement("link");
|
|
39
54
|
document.head.appendChild(link);
|
|
55
|
+
link.rel = "stylesheet";
|
|
56
|
+
link.setAttribute("styler-css", file.name);
|
|
40
57
|
}
|
|
41
|
-
|
|
58
|
+
link.href = href;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
private async createFile(fileName: string, css: string) {
|
|
62
|
+
const content = new File([css], fileName, { type: "text/css" });
|
|
42
63
|
const { appFileID } = await this.cloudFileService.saveFile({ parentID: this.folder.appFileID, folder: "styles", content });
|
|
43
64
|
const file = await this.cloudFileService.getFile(appFileID);
|
|
44
|
-
|
|
65
|
+
return file;
|
|
45
66
|
}
|
|
46
|
-
|
|
47
67
|
}
|
|
@@ -26,26 +26,56 @@ export const BindStyleCustom = AtomControl.registerProperty("data-style-property
|
|
|
26
26
|
styled.css `
|
|
27
27
|
|
|
28
28
|
display: grid;
|
|
29
|
-
grid-template-columns:
|
|
30
|
-
grid-template-rows: auto auto;
|
|
29
|
+
grid-template-columns: 1fr;
|
|
30
|
+
grid-template-rows: auto auto auto;
|
|
31
|
+
justify-items: stretch;
|
|
32
|
+
align-items: center;
|
|
31
33
|
column-gap: 5px;
|
|
34
|
+
max-width: 200px;
|
|
35
|
+
& > * {
|
|
36
|
+
width: 100%;
|
|
37
|
+
}
|
|
32
38
|
& > label {
|
|
33
39
|
grid-row: 1;
|
|
34
40
|
grid-column: 1;
|
|
35
41
|
}
|
|
36
42
|
|
|
37
43
|
& > [data-element=editor] {
|
|
38
|
-
grid-row:
|
|
39
|
-
grid-column:
|
|
44
|
+
grid-row: 2;
|
|
45
|
+
grid-column: 1;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
& > [data-element=custom] {
|
|
43
|
-
grid-row:
|
|
44
|
-
grid-column: 1
|
|
49
|
+
grid-row: 3;
|
|
50
|
+
grid-column: 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
& select {
|
|
54
|
+
outline: none;
|
|
55
|
+
border: none;
|
|
56
|
+
background-color: #e7e7e775;
|
|
57
|
+
border-radius: 9999px;
|
|
58
|
+
padding-left: 10px;
|
|
59
|
+
padding-right: 10px;
|
|
45
60
|
}
|
|
46
61
|
|
|
47
62
|
`.installGlobal("[data-element=property-editor]");
|
|
48
63
|
|
|
64
|
+
|
|
65
|
+
styled.css `
|
|
66
|
+
|
|
67
|
+
& select {
|
|
68
|
+
outline: none;
|
|
69
|
+
border: none;
|
|
70
|
+
background-color: #e7e7e775;
|
|
71
|
+
border-radius: 9999px;
|
|
72
|
+
padding-left: 10px;
|
|
73
|
+
padding-right: 10px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
`.installGlobal("[data-element=expander-property-editor]")
|
|
78
|
+
|
|
49
79
|
function PropertyEditor({ label = void 0, custom = void 0, ... a }, ... nodes: XNode[]) {
|
|
50
80
|
if (!label && nodes.length === 1) {
|
|
51
81
|
return nodes[0];
|
|
@@ -70,7 +100,9 @@ export function ExpanderPropertyEditor({
|
|
|
70
100
|
const child = nodes.length > 1
|
|
71
101
|
? <div data-layout="vertical-flex-stretch-items">{ ... nodes }</div>
|
|
72
102
|
: nodes[0];
|
|
73
|
-
return <Expander
|
|
103
|
+
return <Expander
|
|
104
|
+
data-element="expander-property-editor"
|
|
105
|
+
isExpanded={isExpanded}
|
|
74
106
|
{ ... a}>
|
|
75
107
|
{ label && <label>{label}</label>}
|
|
76
108
|
{ child }
|
|
@@ -9,6 +9,7 @@ export default function LayoutEditor () {
|
|
|
9
9
|
return <ExpanderPropertyEditor label="Layout">
|
|
10
10
|
<DropDownProperty property={properties.stylerLayout}/>
|
|
11
11
|
<DropDownProperty label="Display" property={properties.stylerDisplay}/>
|
|
12
|
+
<DropDownProperty label="Color Set" property={properties.stylerColorSets}/>
|
|
12
13
|
<DropDownProperty
|
|
13
14
|
style-display={BindEditor.oneWay((e) => e.selection.currentStyle.display === "flex")}
|
|
14
15
|
label="Direction"
|
|
@@ -102,6 +102,27 @@ export const stylerVars = prepareVariables({
|
|
|
102
102
|
menuColor: "#F0F0F0",
|
|
103
103
|
|
|
104
104
|
linkColor: "blue",
|
|
105
|
+
|
|
106
|
+
primaryBackground: "#b372dd50",
|
|
107
|
+
primaryColor: "gray",
|
|
108
|
+
primaryAccent: "#6145a9c9",
|
|
109
|
+
primaryAccentText: "white",
|
|
110
|
+
primarySurface: "#FFFFFFA0",
|
|
111
|
+
primarySurfaceText: "gray",
|
|
112
|
+
|
|
113
|
+
secondaryBackground: "#00808050",
|
|
114
|
+
secondaryColor: "gray",
|
|
115
|
+
secondaryAccent: "#318984a8",
|
|
116
|
+
secondaryAccentText: "white",
|
|
117
|
+
secondarySurface: "#FFFFFFA0",
|
|
118
|
+
secondarySurfaceText: "gray",
|
|
119
|
+
|
|
120
|
+
tertiaryBackground: "#cfa55c87",
|
|
121
|
+
tertiaryColor: "gray",
|
|
122
|
+
tertiaryAccent: "#e17b42cf",
|
|
123
|
+
tertiaryAccentText: "white",
|
|
124
|
+
tertiarySurface: "#FFFFFFA0",
|
|
125
|
+
tertiarySurfaceText: "gray",
|
|
105
126
|
});
|
|
106
127
|
|
|
107
128
|
export const sizeVarList = [
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { StylerVariable, stylerVars } from "./Styler";
|
|
2
2
|
import { stylerBorder } from "./properties/stylerBorder";
|
|
3
|
-
import { stylerDisplay } from "./properties/
|
|
4
|
-
import { stylerFlexDirection } from "./properties/
|
|
5
|
-
import { itemPositions } from "./properties/
|
|
6
|
-
import { stylerLayout } from "./properties/
|
|
3
|
+
import { stylerDisplay } from "./properties/layouts/display";
|
|
4
|
+
import { stylerFlexDirection } from "./properties/layouts/flex/flex";
|
|
5
|
+
import { itemPositions } from "./properties/layouts/items-position/itemsPosition";
|
|
6
|
+
import { stylerLayout } from "./properties/layouts/layout";
|
|
7
7
|
import { stylerPosition } from "./properties/stylerPosition";
|
|
8
8
|
import { stylerSizes } from "./properties/stylerSizes";
|
|
9
9
|
import { stylerSpace } from "./properties/stylerSpace";
|
|
10
10
|
import { stylerText } from "./properties/text/stylerText";
|
|
11
11
|
import { stylerBackground } from "./properties/stylerBackground";
|
|
12
|
+
import { stylerColorSets } from "./properties/color-sets/stylerColorSets";
|
|
12
13
|
|
|
13
14
|
const vars = [];
|
|
14
15
|
for (const key in stylerVars) {
|
|
@@ -26,6 +27,7 @@ export class StylerSet {
|
|
|
26
27
|
|
|
27
28
|
properties = {
|
|
28
29
|
stylerLayout,
|
|
30
|
+
stylerColorSets,
|
|
29
31
|
stylerDisplay,
|
|
30
32
|
stylerFlexDirection,
|
|
31
33
|
... stylerBorder,
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
2
|
+
import { StylerProperty, stylerVars } from "../../Styler";
|
|
3
|
+
|
|
4
|
+
export const stylerColorSets = StylerProperty.create( "styler-colors", {
|
|
5
|
+
|
|
6
|
+
"primary": styled.css `
|
|
7
|
+
background-color: ${stylerVars.primaryBackground};
|
|
8
|
+
color: ${stylerVars.primaryColor};
|
|
9
|
+
|
|
10
|
+
& [styler-element=accent] {
|
|
11
|
+
background-color: ${stylerVars.primaryAccent};
|
|
12
|
+
color: ${stylerVars.primaryAccentText};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
& [styler-element=surface] {
|
|
16
|
+
background-color: ${stylerVars.primarySurface};
|
|
17
|
+
color: ${stylerVars.primarySurfaceText};
|
|
18
|
+
}
|
|
19
|
+
`,
|
|
20
|
+
|
|
21
|
+
"secondary": styled.css `
|
|
22
|
+
background-color: ${stylerVars.secondaryBackground};
|
|
23
|
+
color: ${stylerVars.secondaryColor};
|
|
24
|
+
|
|
25
|
+
& [styler-element=accent] {
|
|
26
|
+
background-color: ${stylerVars.secondaryAccent};
|
|
27
|
+
color: ${stylerVars.secondaryAccentText};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
& [styler-element=surface] {
|
|
31
|
+
background-color: ${stylerVars.secondarySurface};
|
|
32
|
+
color: ${stylerVars.secondarySurfaceText};
|
|
33
|
+
}
|
|
34
|
+
`,
|
|
35
|
+
|
|
36
|
+
"tertiary": styled.css `
|
|
37
|
+
background-color: ${stylerVars.tertiaryBackground};
|
|
38
|
+
color: ${stylerVars.tertiaryColor};
|
|
39
|
+
|
|
40
|
+
& [styler-element=accent] {
|
|
41
|
+
background-color: ${stylerVars.tertiaryAccent};
|
|
42
|
+
color: ${stylerVars.tertiaryAccentText};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
& [styler-element=surface] {
|
|
46
|
+
background-color: ${stylerVars.tertiarySurface};
|
|
47
|
+
color: ${stylerVars.tertiarySurfaceText};
|
|
48
|
+
}
|
|
49
|
+
`
|
|
50
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
2
|
+
import { stylerVars } from "../../../Styler";
|
|
3
|
+
|
|
4
|
+
export const layoutBox: any = {
|
|
5
|
+
"block": styled.css `
|
|
6
|
+
display: block;
|
|
7
|
+
padding: ${stylerVars.sizeDefault};
|
|
8
|
+
margin: ${stylerVars.sizeDefault};
|
|
9
|
+
`,
|
|
10
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
2
|
+
import { stylerVars } from "../../../Styler";
|
|
3
|
+
|
|
4
|
+
export const layoutCard: any = {
|
|
5
|
+
"card": styled.css `
|
|
6
|
+
display: grid;
|
|
7
|
+
margin: ${stylerVars.sizeDefault};
|
|
8
|
+
border-radius: ${stylerVars.sizeDefault};
|
|
9
|
+
grid-template-columns: 1fr;
|
|
10
|
+
grid-template-rows: auto 1fr;
|
|
11
|
+
justify-items: stretch;
|
|
12
|
+
align-items: stretch;
|
|
13
|
+
contain: content;
|
|
14
|
+
|
|
15
|
+
& > h4 {
|
|
16
|
+
max-width: 100%;
|
|
17
|
+
padding: ${stylerVars.sizeDefault};
|
|
18
|
+
grid-column: 1;
|
|
19
|
+
grid-row: 1;
|
|
20
|
+
margin-top: 0;
|
|
21
|
+
margin-bottom: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
& > section {
|
|
25
|
+
max-width: 100%;
|
|
26
|
+
margin: ${stylerVars.sizeDefault};
|
|
27
|
+
padding: ${stylerVars.sizeDefault};
|
|
28
|
+
border-radius: ${stylerVars.sizeDefault};
|
|
29
|
+
grid-column: 1;
|
|
30
|
+
grid-row: 3;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
& > section:empty:before {
|
|
34
|
+
background-color: #ddd;
|
|
35
|
+
color: #000;
|
|
36
|
+
font-size: 16px;
|
|
37
|
+
font-weight: bold;
|
|
38
|
+
font-family: 'Courier New', Courier, monospace;
|
|
39
|
+
height: 100%;
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-items: center;
|
|
42
|
+
align-items: center;
|
|
43
|
+
min-height: 30px;
|
|
44
|
+
opacity: 0.3;
|
|
45
|
+
border-radius: 3px;
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
text-overflow: ellipsis;
|
|
49
|
+
content: "Container";
|
|
50
|
+
}
|
|
51
|
+
& > h4:empty:before {
|
|
52
|
+
background-color: #ddd;
|
|
53
|
+
color: #000;
|
|
54
|
+
font-size: 16px;
|
|
55
|
+
font-weight: bold;
|
|
56
|
+
font-family: 'Courier New', Courier, monospace;
|
|
57
|
+
height: 100%;
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-items: center;
|
|
60
|
+
align-items: center;
|
|
61
|
+
min-height: 30px;
|
|
62
|
+
opacity: 0.3;
|
|
63
|
+
border-radius: 3px;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
text-overflow: ellipsis;
|
|
67
|
+
content: "Title";
|
|
68
|
+
}
|
|
69
|
+
`
|
|
70
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
2
|
+
import { stylerVars } from "../../../Styler";
|
|
3
|
+
|
|
4
|
+
export const layoutColumn: any = {
|
|
5
|
+
"column": styled.css `
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: ${stylerVars.sizeDefault};
|
|
9
|
+
padding: ${stylerVars.sizeDefault};
|
|
10
|
+
border-radius: ${stylerVars.sizeDefault};
|
|
11
|
+
justify-items: center;
|
|
12
|
+
align-items: stretch;
|
|
13
|
+
|
|
14
|
+
& > * {
|
|
15
|
+
padding: ${stylerVars.sizeDefault};
|
|
16
|
+
flex: 1 1 100%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
& > *:empty:before {
|
|
20
|
+
background-color: #ddd;
|
|
21
|
+
color: #000;
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
font-weight: bold;
|
|
24
|
+
font-family: 'Courier New', Courier, monospace;
|
|
25
|
+
height: 100%;
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-items: center;
|
|
28
|
+
align-items: center;
|
|
29
|
+
min-height: 30px;
|
|
30
|
+
opacity: 0.3;
|
|
31
|
+
border-radius: 3px;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
text-overflow: ellipsis;
|
|
35
|
+
content: "Container";
|
|
36
|
+
}
|
|
37
|
+
`,
|
|
38
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
2
|
+
import { stylerVars } from "../../../Styler";
|
|
3
|
+
|
|
4
|
+
export const layoutColumn2Box: any = {
|
|
5
|
+
"columns-2": styled.css `
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: ${stylerVars.sizeDefault};
|
|
10
|
+
border-radius: ${stylerVars.sizeDefault};
|
|
11
|
+
justify-items: center;
|
|
12
|
+
align-items: stretch;
|
|
13
|
+
contain: content;
|
|
14
|
+
|
|
15
|
+
@media (min-width: 600px) {
|
|
16
|
+
& {
|
|
17
|
+
flex-direction: row;
|
|
18
|
+
flex-wrap: nowrap;
|
|
19
|
+
}
|
|
20
|
+
& > * {
|
|
21
|
+
width: 50%;
|
|
22
|
+
max-width: 50%;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
& > *:empty:before {
|
|
26
|
+
background-color: #ddd;
|
|
27
|
+
color: #000;
|
|
28
|
+
font-size: 16px;
|
|
29
|
+
font-weight: bold;
|
|
30
|
+
font-family: 'Courier New', Courier, monospace;
|
|
31
|
+
height: 100%;
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-items: center;
|
|
34
|
+
align-items: center;
|
|
35
|
+
min-height: 30px;
|
|
36
|
+
opacity: 0.3;
|
|
37
|
+
border-radius: 3px;
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
text-overflow: ellipsis;
|
|
41
|
+
content: "Container";
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
`,
|
|
46
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
2
|
+
import { stylerVars } from "../../../Styler";
|
|
3
|
+
|
|
4
|
+
export const layoutColumn3Box: any = {
|
|
5
|
+
"columns-3": styled.css `
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: ${stylerVars.sizeDefault};
|
|
10
|
+
border-radius: ${stylerVars.sizeDefault};
|
|
11
|
+
justify-items: center;
|
|
12
|
+
align-items: stretch;
|
|
13
|
+
contain: content;
|
|
14
|
+
|
|
15
|
+
@media (min-width: 600px) {
|
|
16
|
+
& {
|
|
17
|
+
flex-direction: row;
|
|
18
|
+
flex-wrap: nowrap;
|
|
19
|
+
}
|
|
20
|
+
& > * {
|
|
21
|
+
width: 33%;
|
|
22
|
+
max-width: 33%;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
& > *:empty:before {
|
|
26
|
+
background-color: #ddd;
|
|
27
|
+
color: #000;
|
|
28
|
+
font-size: 16px;
|
|
29
|
+
font-weight: bold;
|
|
30
|
+
font-family: 'Courier New', Courier, monospace;
|
|
31
|
+
height: 100%;
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-items: center;
|
|
34
|
+
align-items: center;
|
|
35
|
+
min-height: 30px;
|
|
36
|
+
opacity: 0.3;
|
|
37
|
+
border-radius: 3px;
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
text-overflow: ellipsis;
|
|
41
|
+
content: "Container";
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
`,
|
|
46
|
+
};
|