@social-mail/social-mail-client 1.4.20 → 1.4.21
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/properties/controls/PropertyEditor.d.ts.map +1 -1
- package/dist/site-editor/properties/controls/PropertyEditor.js +18 -0
- package/dist/site-editor/properties/controls/PropertyEditor.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +18 -0
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +16 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/site-editor/properties/controls/PropertyEditor.tsx +16 -0
package/package.json
CHANGED
|
@@ -14,6 +14,7 @@ export const BindStyleValue = AtomControl.registerProperty("data-style-property"
|
|
|
14
14
|
const editor = c as HtmlPageEditor;
|
|
15
15
|
const pv = editor.selection.style(v);
|
|
16
16
|
(c as any).render(<div value={Bind.sourceTwoWays(pv, (s) => s.source.value)}></div>, e, c);
|
|
17
|
+
(c as any).render(<div attr-has-value={Bind.source(pv, (s) => s.source.value ? "true" : "false")}></div>, e, c);
|
|
17
18
|
});
|
|
18
19
|
|
|
19
20
|
export const BindStyleChecked = AtomControl.registerProperty("data-style-property", "checked", (c, e, v) => {
|
|
@@ -88,6 +89,14 @@ export const BindStyleCustom = AtomControl.registerProperty("data-style-property
|
|
|
88
89
|
display: none;
|
|
89
90
|
}
|
|
90
91
|
|
|
92
|
+
|
|
93
|
+
&:has([has-value=true]) {
|
|
94
|
+
& > label {
|
|
95
|
+
font-weight: bold;
|
|
96
|
+
color: blue;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
91
100
|
`.installGlobal("[data-element=property-editor]");
|
|
92
101
|
|
|
93
102
|
|
|
@@ -104,6 +113,13 @@ export const BindStyleCustom = AtomControl.registerProperty("data-style-property
|
|
|
104
113
|
padding-right: 10px;
|
|
105
114
|
}
|
|
106
115
|
|
|
116
|
+
&:has( [data-element=detail] > [data-element=property-editor] > [has-value=true]) {
|
|
117
|
+
& > label {
|
|
118
|
+
font-weight: bold;
|
|
119
|
+
color: blue;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
107
123
|
|
|
108
124
|
`.installGlobal("[data-element=expander-property-editor]");
|
|
109
125
|
|