@social-mail/social-mail-client 1.2.508 → 1.2.510
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 +72 -9
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +12 -4
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/site-editor/editor/SelectedElement.d.ts +1 -0
- package/dist/site-editor/editor/SelectedElement.d.ts.map +1 -1
- package/dist/site-editor/editor/SelectedElement.js +12 -0
- package/dist/site-editor/editor/SelectedElement.js.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.js +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 +19 -1
- package/dist/site-editor/properties/controls/PropertyEditor.js.map +1 -1
- package/dist/site-editor/properties/groups/TransformGroupEditor.d.ts.map +1 -1
- package/dist/site-editor/properties/groups/TransformGroupEditor.js +35 -5
- package/dist/site-editor/properties/groups/TransformGroupEditor.js.map +1 -1
- package/dist/site-editor/styler/StylerSet.d.ts +2 -0
- package/dist/site-editor/styler/StylerSet.d.ts.map +1 -1
- package/dist/site-editor/styler/properties/transform/stylerTransform.d.ts +2 -0
- package/dist/site-editor/styler/properties/transform/stylerTransform.d.ts.map +1 -1
- package/dist/site-editor/styler/properties/transform/stylerTransform.js +5 -2
- package/dist/site-editor/styler/properties/transform/stylerTransform.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +72 -9
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +12 -4
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/site-editor/editor/SelectedElement.tsx +13 -0
- package/src/site-editor/editor/WebSitePageEditor.tsx +1 -1
- package/src/site-editor/properties/controls/PropertyEditor.tsx +22 -2
- package/src/site-editor/properties/groups/TransformGroupEditor.tsx +32 -2
- package/src/site-editor/styler/properties/transform/stylerTransform.ts +22 -1
|
@@ -47941,6 +47941,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
47941
47941
|
for (const iterator of nodes) {
|
|
47942
47942
|
(_d = (_e = (_c = iterator.attributes) !== null && _c !== void 0 ? _c : iterator.attributes = {})["data-element"]) !== null && _d !== void 0 ? _d : _e["data-element"] = "editor";
|
|
47943
47943
|
}
|
|
47944
|
+
if (property) {
|
|
47945
|
+
a["data-item-property"] = property.key;
|
|
47946
|
+
if (custom) {
|
|
47947
|
+
const binder = c => c.selection.style(property.key).custom;
|
|
47948
|
+
binder.toString = () => `(c) => c.selection.styleProperty["${property.key.replace("-", "_")}"]`;
|
|
47949
|
+
a["data-custom-value"] = Bind.oneWay(binder);
|
|
47950
|
+
}
|
|
47951
|
+
}
|
|
47944
47952
|
return XNode.create("div", Object.assign({
|
|
47945
47953
|
"data-element": "property-editor",
|
|
47946
47954
|
"event-input": e => {
|
|
@@ -48093,6 +48101,16 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
48093
48101
|
}), e, c);
|
|
48094
48102
|
}));
|
|
48095
48103
|
styled.css`
|
|
48104
|
+
& [data-item-property*=desktop] {
|
|
48105
|
+
display: none;
|
|
48106
|
+
}
|
|
48107
|
+
`.installGlobal("body[show-only=tablet]");
|
|
48108
|
+
styled.css`
|
|
48109
|
+
& [data-item-property*=tablet] {
|
|
48110
|
+
display: none;
|
|
48111
|
+
}
|
|
48112
|
+
`.installGlobal("body[show-only=desktop]");
|
|
48113
|
+
styled.css`
|
|
48096
48114
|
|
|
48097
48115
|
display: grid;
|
|
48098
48116
|
grid-template-columns: 1fr;
|
|
@@ -48128,7 +48146,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
48128
48146
|
padding-right: 10px;
|
|
48129
48147
|
}
|
|
48130
48148
|
|
|
48131
|
-
|
|
48149
|
+
&[data-custom-value=""]:not([data-custom]) > [data-element=custom] {
|
|
48132
48150
|
display: none;
|
|
48133
48151
|
}
|
|
48134
48152
|
|
|
@@ -48724,21 +48742,24 @@ System.register(["@web-atoms/core/dist/style/styled", "../Styler"], function (_e
|
|
|
48724
48742
|
System.register(["@web-atoms/core/dist/style/styled", "../../Styler"], function (_export, _context) {
|
|
48725
48743
|
"use strict";
|
|
48726
48744
|
|
|
48727
|
-
var styled, StylerProperty, stylerTransform;
|
|
48745
|
+
var styled, StylerProperty, createSet, stylerTransform;
|
|
48728
48746
|
return {
|
|
48729
48747
|
setters: [function (_webAtomsCoreDistStyleStyled) {
|
|
48730
48748
|
styled = _webAtomsCoreDistStyleStyled.default;
|
|
48731
48749
|
}, function (_Styler) {
|
|
48732
48750
|
StylerProperty = _Styler.StylerProperty;
|
|
48751
|
+
createSet = _Styler.createSet;
|
|
48733
48752
|
}],
|
|
48734
48753
|
execute: function () {
|
|
48735
48754
|
_export("stylerTransform", stylerTransform = {
|
|
48736
48755
|
stylerDesktopTransform: new StylerProperty("styler-desktop-transform", {
|
|
48737
48756
|
custom: styled.css`transform: var(--styler-desktop-transform);`
|
|
48738
48757
|
}, "", "", "@media (min-width:900px)"),
|
|
48758
|
+
stylerDesktopTransformOrigin: new StylerProperty("styler-desktop-origin", createSet("transform-origin", ["custom", "left", "right", "center", "top", "bottom", "top left", "bottom left", "top right", "bottom right"]), "", "", "@media (min-width:700px)"),
|
|
48739
48759
|
stylerTabletTransform: new StylerProperty("styler-tablet-transform", {
|
|
48740
48760
|
custom: styled.css`transform: var(--styler-tablet-transform);`
|
|
48741
|
-
}, "", "", "@media (min-width:700px)")
|
|
48761
|
+
}, "", "", "@media (min-width:700px)"),
|
|
48762
|
+
stylerTabletTransformOrigin: new StylerProperty("styler-tablet-origin", createSet("transform-origin", ["custom", "left", "right", "center", "top", "bottom", "top left", "bottom left", "top right", "bottom right"]), "", "", "@media (min-width:700px)")
|
|
48742
48763
|
});
|
|
48743
48764
|
}
|
|
48744
48765
|
};
|
|
@@ -49489,19 +49510,42 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../styler/StylerSet", ".
|
|
|
49489
49510
|
|
|
49490
49511
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/site-editor/properties/groups/EffectGroup");
|
|
49491
49512
|
|
|
49492
|
-
System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor", "../../styler/StylerSet"], function (_export, _context) {
|
|
49513
|
+
System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor", "../../styler/StylerSet", "@web-atoms/web-controls/dist/basic/ToggleButtonBar", "@web-atoms/core/dist/core/Bind"], function (_export, _context) {
|
|
49493
49514
|
"use strict";
|
|
49494
49515
|
|
|
49495
|
-
var XNode, DropDownProperty, ExpanderPropertyEditor, StylerSet, properties;
|
|
49516
|
+
var XNode, DropDownProperty, ExpanderPropertyEditor, StylerSet, ToggleButtonBar, Bind, properties, updateSelector;
|
|
49496
49517
|
function TransformGroupEditor() {
|
|
49518
|
+
const modes = [{
|
|
49519
|
+
label: "Desktop",
|
|
49520
|
+
value: "desktop"
|
|
49521
|
+
}, {
|
|
49522
|
+
label: "Tablet",
|
|
49523
|
+
value: "tablet"
|
|
49524
|
+
}];
|
|
49525
|
+
const mode = {
|
|
49526
|
+
value: "desktop"
|
|
49527
|
+
};
|
|
49528
|
+
document.body.setAttribute("show-only", mode.value);
|
|
49497
49529
|
return XNode.create(ExpanderPropertyEditor, {
|
|
49498
49530
|
label: "Transform"
|
|
49499
|
-
}, XNode.create(
|
|
49500
|
-
|
|
49531
|
+
}, XNode.create(ToggleButtonBar, {
|
|
49532
|
+
items: modes,
|
|
49533
|
+
labelPath: x => x.label,
|
|
49534
|
+
valuePath: x => x.value,
|
|
49535
|
+
value: Bind.sourceTwoWays(mode, x => x.source.value),
|
|
49536
|
+
"event-click": () => setTimeout(() => updateSelector(mode.value))
|
|
49537
|
+
}), XNode.create(DropDownProperty, {
|
|
49538
|
+
label: "Transform",
|
|
49501
49539
|
property: properties.stylerDesktopTransform
|
|
49502
49540
|
}), XNode.create(DropDownProperty, {
|
|
49503
|
-
label: "
|
|
49541
|
+
label: "Transform",
|
|
49504
49542
|
property: properties.stylerTabletTransform
|
|
49543
|
+
}), XNode.create(DropDownProperty, {
|
|
49544
|
+
label: "Origin",
|
|
49545
|
+
property: properties.stylerDesktopTransformOrigin
|
|
49546
|
+
}), XNode.create(DropDownProperty, {
|
|
49547
|
+
label: "Origin",
|
|
49548
|
+
property: properties.stylerTabletTransformOrigin
|
|
49505
49549
|
}));
|
|
49506
49550
|
}
|
|
49507
49551
|
_export("default", TransformGroupEditor);
|
|
@@ -49513,11 +49557,18 @@ System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor"
|
|
|
49513
49557
|
ExpanderPropertyEditor = _controlsPropertyEditor.ExpanderPropertyEditor;
|
|
49514
49558
|
}, function (_stylerStylerSet) {
|
|
49515
49559
|
StylerSet = _stylerStylerSet.StylerSet;
|
|
49560
|
+
}, function (_webAtomsWebControlsDistBasicToggleButtonBar) {
|
|
49561
|
+
ToggleButtonBar = _webAtomsWebControlsDistBasicToggleButtonBar.default;
|
|
49562
|
+
}, function (_webAtomsCoreDistCoreBind) {
|
|
49563
|
+
Bind = _webAtomsCoreDistCoreBind.default;
|
|
49516
49564
|
}],
|
|
49517
49565
|
execute: function () {
|
|
49518
49566
|
({
|
|
49519
49567
|
properties
|
|
49520
49568
|
} = StylerSet.instance);
|
|
49569
|
+
updateSelector = type => {
|
|
49570
|
+
document.body.setAttribute("show-only", type);
|
|
49571
|
+
};
|
|
49521
49572
|
}
|
|
49522
49573
|
};
|
|
49523
49574
|
});
|
|
@@ -49595,6 +49646,15 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
|
|
|
49595
49646
|
}
|
|
49596
49647
|
constructor(editor) {
|
|
49597
49648
|
this.editor = editor;
|
|
49649
|
+
this.styleProperty = new Proxy(this, {
|
|
49650
|
+
get: (target, p, receiver) => {
|
|
49651
|
+
var _a, _b, _c;
|
|
49652
|
+
if (typeof p === "string") {
|
|
49653
|
+
p = "--" + p.replace("_", "--");
|
|
49654
|
+
}
|
|
49655
|
+
return (_c = (_b = (_a = this.e) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.getPropertyValue(p)) !== null && _c !== void 0 ? _c : void 0;
|
|
49656
|
+
}
|
|
49657
|
+
});
|
|
49598
49658
|
this.styles = new Map();
|
|
49599
49659
|
this.empty = {
|
|
49600
49660
|
setAttribute(n, v) {
|
|
@@ -49614,6 +49674,7 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
|
|
|
49614
49674
|
AtomBinder.refreshValue(this, "currentStyle");
|
|
49615
49675
|
AtomBinder.refreshValue(this, "parentStyle");
|
|
49616
49676
|
AtomBinder.refreshValue(this, "attributes");
|
|
49677
|
+
AtomBinder.refreshValue(this, "styleProperty");
|
|
49617
49678
|
for (const iterator of this.styles.values()) {
|
|
49618
49679
|
AtomBinder.refreshValue(iterator, "value");
|
|
49619
49680
|
AtomBinder.refreshValue(iterator, "custom");
|
|
@@ -49677,6 +49738,7 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
|
|
|
49677
49738
|
AtomBinder.refreshValue(this, "custom");
|
|
49678
49739
|
AtomBinder.refreshValue(owner, "currentStyle");
|
|
49679
49740
|
AtomBinder.refreshValue(owner, "parentStyle");
|
|
49741
|
+
AtomBinder.refreshValue(this, "styleProperty");
|
|
49680
49742
|
}, 1);
|
|
49681
49743
|
},
|
|
49682
49744
|
get custom() {
|
|
@@ -49727,6 +49789,7 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
|
|
|
49727
49789
|
AtomBinder.refreshValue(this, "currentStyle");
|
|
49728
49790
|
AtomBinder.refreshValue(this, "parentStyle");
|
|
49729
49791
|
AtomBinder.refreshValue(this, "attributes");
|
|
49792
|
+
AtomBinder.refreshValue(this, "styleProperty");
|
|
49730
49793
|
this.mo.observe(e, {
|
|
49731
49794
|
attributes: true
|
|
49732
49795
|
});
|
|
@@ -53266,7 +53329,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
53266
53329
|
this.htmlDocument.head.appendChild(script);
|
|
53267
53330
|
this.htmlDocument.head.appendChild(this.htmlDocument.createTextNode("\n"));
|
|
53268
53331
|
}
|
|
53269
|
-
script.setAttribute("src", "//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.
|
|
53332
|
+
script.setAttribute("src", "//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.88/dist/components.webpack.js");
|
|
53270
53333
|
const start = "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free";
|
|
53271
53334
|
if (!Array.from(this.htmlDocument.querySelectorAll(`link[rel=stylesheet]`)).find(x => x.getAttribute("href").startsWith(start))) {
|
|
53272
53335
|
const css = this.htmlDocument.createElement("link");
|