@social-mail/social-mail-client 1.2.509 → 1.2.511
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 +4 -4
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +3 -3
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/site-editor/properties/controls/PropertyEditor.d.ts +1 -1
- package/dist/site-editor/properties/controls/PropertyEditor.d.ts.map +1 -1
- package/dist/site-editor/properties/controls/PropertyEditor.js +2 -2
- package/dist/site-editor/properties/controls/PropertyEditor.js.map +1 -1
- package/dist/site-editor/properties/groups/PositionGroupEditor.d.ts.map +1 -1
- package/dist/site-editor/properties/groups/PositionGroupEditor.js +2 -2
- package/dist/site-editor/properties/groups/PositionGroupEditor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +4 -4
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +3 -3
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/site-editor/properties/controls/PropertyEditor.tsx +3 -3
- package/src/site-editor/properties/groups/PositionGroupEditor.tsx +23 -21
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import XNode from "@web-atoms/core/dist/core/XNode";
|
|
2
2
|
import { StylerProperty } from "../../styler/Styler";
|
|
3
3
|
import { AtomControl } from "@web-atoms/core/dist/web/controls/AtomControl";
|
|
4
|
-
import
|
|
4
|
+
import HtmlPageEditor from "../../editor/HtmlPageEditor";
|
|
5
5
|
import Expander from "@web-atoms/web-controls/dist/basic/Expander";
|
|
6
6
|
import Select from "@web-atoms/web-controls/dist/basic/Select";
|
|
7
7
|
import Bind from "@web-atoms/core/dist/core/Bind";
|
|
@@ -70,7 +70,7 @@ export const BindStyleCustom = AtomControl.registerProperty("data-style-property
|
|
|
70
70
|
padding-right: 10px;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
&[data-custom=""] > [data-element=custom] {
|
|
73
|
+
&[data-custom-value=""]:not([data-custom]) > [data-element=custom] {
|
|
74
74
|
display: none;
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -114,7 +114,7 @@ export function PropertyEditor({
|
|
|
114
114
|
if(custom) {
|
|
115
115
|
const binder = (c: HtmlPageEditor) => c.selection.style(property.key).custom;
|
|
116
116
|
binder.toString = () => `(c) => c.selection.styleProperty["${property.key.replace("-", "_")}"]`;
|
|
117
|
-
a["data-custom"] = Bind.oneWay(binder);
|
|
117
|
+
a["data-custom-value"] = Bind.oneWay(binder);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
return <div
|
|
@@ -11,28 +11,30 @@ export default function PositionGroupEditor() {
|
|
|
11
11
|
label="Position"
|
|
12
12
|
property={properties.stylerPosition}
|
|
13
13
|
/>
|
|
14
|
-
<section
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
14
|
+
<section>
|
|
15
|
+
<section
|
|
16
|
+
style-display={BindEditor.oneWay((e) => /relative|fixed|absolute|sticky/i.test(e.selection.currentStyle.position))}>
|
|
17
|
+
<SizeEditorControl
|
|
18
|
+
label="Left"
|
|
19
|
+
property={properties.stylerLeft}
|
|
20
|
+
/>
|
|
21
|
+
<SizeEditorControl
|
|
22
|
+
label="Top"
|
|
23
|
+
property={properties.stylerTop}
|
|
24
|
+
/>
|
|
25
|
+
<SizeEditorControl
|
|
26
|
+
label="Right"
|
|
27
|
+
property={properties.stylerRight}
|
|
28
|
+
/>
|
|
29
|
+
<SizeEditorControl
|
|
30
|
+
label="Bottom"
|
|
31
|
+
property={properties.stylerBottom}
|
|
32
|
+
/>
|
|
33
|
+
</section>
|
|
32
34
|
<DropDownProperty
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
label="Z-Index"
|
|
36
|
+
property={properties.stylerZIndex}
|
|
37
|
+
/>
|
|
36
38
|
</section>
|
|
37
39
|
</ExpanderPropertyEditor>;
|
|
38
40
|
}
|