@social-mail/social-mail-client 1.2.425 → 1.2.427
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 +115 -21
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +9 -5
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.d.ts +1 -0
- package/dist/site-editor/editor/HtmlPageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.js +10 -0
- package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.d.ts +1 -0
- package/dist/site-editor/editor/WebSitePageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.js +17 -0
- package/dist/site-editor/editor/WebSitePageEditor.js.map +1 -1
- package/dist/site-editor/properties/controls/PropertyEditor.d.ts +12 -0
- package/dist/site-editor/properties/controls/PropertyEditor.d.ts.map +1 -1
- package/dist/site-editor/properties/controls/PropertyEditor.js +66 -14
- package/dist/site-editor/properties/controls/PropertyEditor.js.map +1 -1
- package/dist/site-editor/properties/groups/AttributeEditor.js +1 -1
- package/dist/site-editor/properties/groups/BackgroundGroupEditor.d.ts.map +1 -1
- package/dist/site-editor/properties/groups/BackgroundGroupEditor.js +5 -2
- package/dist/site-editor/properties/groups/BackgroundGroupEditor.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/properties/stylerBackground.d.ts +1 -0
- package/dist/site-editor/styler/properties/stylerBackground.d.ts.map +1 -1
- package/dist/site-editor/styler/properties/stylerBackground.js +16 -4
- package/dist/site-editor/styler/properties/stylerBackground.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +115 -21
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +9 -5
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/site-editor/editor/HtmlPageEditor.tsx +7 -0
- package/src/site-editor/editor/WebSitePageEditor.tsx +13 -0
- package/src/site-editor/properties/controls/PropertyEditor.tsx +57 -7
- package/src/site-editor/properties/groups/AttributeEditor.tsx +1 -1
- package/src/site-editor/properties/groups/BackgroundGroupEditor.tsx +4 -2
- package/src/site-editor/styler/properties/stylerBackground.ts +36 -4
|
@@ -47264,21 +47264,38 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
47264
47264
|
|
|
47265
47265
|
var __rest, XNode, AtomControl, Expander, Select, Bind, styled, BindEditor, BindStyleValue, BindStyleCustom;
|
|
47266
47266
|
function PropertyEditor(_a, ...nodes) {
|
|
47267
|
-
var _b, _c;
|
|
47268
|
-
var
|
|
47267
|
+
var _b, _c, _d;
|
|
47268
|
+
var _e;
|
|
47269
47269
|
var {
|
|
47270
47270
|
label = void 0,
|
|
47271
|
-
custom = void 0
|
|
47271
|
+
custom = void 0,
|
|
47272
|
+
property,
|
|
47273
|
+
attributeName = void 0
|
|
47272
47274
|
} = _a,
|
|
47273
|
-
a = __rest(_a, ["label", "custom"]);
|
|
47275
|
+
a = __rest(_a, ["label", "custom", "property", "attributeName"]);
|
|
47274
47276
|
if (!label && nodes.length === 1) {
|
|
47275
47277
|
return nodes[0];
|
|
47276
47278
|
}
|
|
47279
|
+
if (custom) {
|
|
47280
|
+
const ca = (_b = custom.attributes) !== null && _b !== void 0 ? _b : custom.attributes = {};
|
|
47281
|
+
ca["data-element"] = "custom";
|
|
47282
|
+
}
|
|
47277
47283
|
for (const iterator of nodes) {
|
|
47278
|
-
(
|
|
47284
|
+
(_d = (_e = (_c = iterator.attributes) !== null && _c !== void 0 ? _c : iterator.attributes = {})["data-element"]) !== null && _d !== void 0 ? _d : _e["data-element"] = "editor";
|
|
47279
47285
|
}
|
|
47280
47286
|
return XNode.create("div", Object.assign({
|
|
47281
|
-
"data-element": "property-editor"
|
|
47287
|
+
"data-element": "property-editor",
|
|
47288
|
+
"event-input": e => {
|
|
47289
|
+
const target = e.target;
|
|
47290
|
+
const currentTarget = e.currentTarget;
|
|
47291
|
+
if (target.tagName === "SELECT") {
|
|
47292
|
+
if (target.value === "custom") {
|
|
47293
|
+
currentTarget.setAttribute("data-custom", "true");
|
|
47294
|
+
} else {
|
|
47295
|
+
currentTarget.removeAttribute("data-custom");
|
|
47296
|
+
}
|
|
47297
|
+
}
|
|
47298
|
+
}
|
|
47282
47299
|
}, a), label && XNode.create("label", {
|
|
47283
47300
|
"data-font-size": "small"
|
|
47284
47301
|
}, label), ...nodes, custom);
|
|
@@ -47305,9 +47322,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
47305
47322
|
a = __rest(_a, ["label", "property"]);
|
|
47306
47323
|
return XNode.create(PropertyEditor, Object.assign({
|
|
47307
47324
|
label: label,
|
|
47325
|
+
property: property,
|
|
47308
47326
|
custom: XNode.create("input", Object.assign({
|
|
47309
|
-
type: "text"
|
|
47310
|
-
"data-element": "custom"
|
|
47327
|
+
type: "text"
|
|
47311
47328
|
}, BindStyleCustom(property.key)))
|
|
47312
47329
|
}, a), XNode.create(Select, Object.assign({}, BindStyleValue(property.key), {
|
|
47313
47330
|
"data-flex": "stretch-full",
|
|
@@ -47325,7 +47342,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
47325
47342
|
} = _a,
|
|
47326
47343
|
a = __rest(_a, ["label", "property"]);
|
|
47327
47344
|
return XNode.create(PropertyEditor, Object.assign({
|
|
47328
|
-
label: label
|
|
47345
|
+
label: label,
|
|
47346
|
+
property: property
|
|
47329
47347
|
}, a), XNode.create("input", Object.assign({}, BindStyleValue(property.key), {
|
|
47330
47348
|
"data-flex": "stretch-full",
|
|
47331
47349
|
type: "tel"
|
|
@@ -47339,19 +47357,50 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
47339
47357
|
} = _a,
|
|
47340
47358
|
a = __rest(_a, ["label", "property", "attributeName"]);
|
|
47341
47359
|
return XNode.create(PropertyEditor, Object.assign({
|
|
47342
|
-
label: label
|
|
47360
|
+
label: label,
|
|
47361
|
+
property: property,
|
|
47362
|
+
attributeName: attributeName
|
|
47343
47363
|
}, a), XNode.create("input", Object.assign({
|
|
47344
|
-
type: "text"
|
|
47345
|
-
"data-element": "custom"
|
|
47364
|
+
type: "text"
|
|
47346
47365
|
}, BindStyleValue(attributeName !== null && attributeName !== void 0 ? attributeName : property.key), {
|
|
47347
47366
|
"data-flex": "stretch-full"
|
|
47348
47367
|
})));
|
|
47349
47368
|
}
|
|
47369
|
+
function ButtonProperty(_a) {
|
|
47370
|
+
var {
|
|
47371
|
+
label,
|
|
47372
|
+
property,
|
|
47373
|
+
eventClick,
|
|
47374
|
+
icon
|
|
47375
|
+
} = _a,
|
|
47376
|
+
a = __rest(_a, ["label", "property", "eventClick", "icon"]);
|
|
47377
|
+
return XNode.create(PropertyEditor, Object.assign({
|
|
47378
|
+
label: label,
|
|
47379
|
+
property: property,
|
|
47380
|
+
custom: XNode.create("div", {
|
|
47381
|
+
"data-layout": "row"
|
|
47382
|
+
}, XNode.create("input", Object.assign({
|
|
47383
|
+
type: "text"
|
|
47384
|
+
}, BindStyleCustom(property.key))), XNode.create("i", {
|
|
47385
|
+
"data-click-event": eventClick,
|
|
47386
|
+
class: icon
|
|
47387
|
+
}))
|
|
47388
|
+
}, a), XNode.create(Select, Object.assign({}, BindStyleValue(property.key), {
|
|
47389
|
+
"data-flex": "stretch-full",
|
|
47390
|
+
valuePath: v => v.value,
|
|
47391
|
+
items: [{
|
|
47392
|
+
label: "-",
|
|
47393
|
+
value: ""
|
|
47394
|
+
}, ...property.values.map(pair => pair.toPair())]
|
|
47395
|
+
})));
|
|
47396
|
+
}
|
|
47350
47397
|
_export({
|
|
47398
|
+
PropertyEditor: PropertyEditor,
|
|
47351
47399
|
ExpanderPropertyEditor: ExpanderPropertyEditor,
|
|
47352
47400
|
DropDownProperty: DropDownProperty,
|
|
47353
47401
|
NumberProperty: NumberProperty,
|
|
47354
|
-
TextProperty: TextProperty
|
|
47402
|
+
TextProperty: TextProperty,
|
|
47403
|
+
ButtonProperty: ButtonProperty
|
|
47355
47404
|
});
|
|
47356
47405
|
return {
|
|
47357
47406
|
setters: [function (_tslib) {
|
|
@@ -47382,7 +47431,6 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
47382
47431
|
const editor = c;
|
|
47383
47432
|
const pv = editor.selection.style(v);
|
|
47384
47433
|
c.render(XNode.create("div", {
|
|
47385
|
-
"style-display": Bind.source(pv, s => s.source.value === "custom"),
|
|
47386
47434
|
value: Bind.sourceTwoWays(pv, s => s.source.custom)
|
|
47387
47435
|
}), e, c);
|
|
47388
47436
|
}));
|
|
@@ -47422,6 +47470,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
47422
47470
|
padding-right: 10px;
|
|
47423
47471
|
}
|
|
47424
47472
|
|
|
47473
|
+
&:not([data-custom]) > [data-element=custom] {
|
|
47474
|
+
display: none;
|
|
47475
|
+
}
|
|
47476
|
+
|
|
47425
47477
|
`.installGlobal("[data-element=property-editor]");
|
|
47426
47478
|
styled.css`
|
|
47427
47479
|
|
|
@@ -47782,22 +47834,34 @@ System.register(["@web-atoms/core/dist/style/styled", "../Styler", "../StylerSet
|
|
|
47782
47834
|
"text": styled.css`
|
|
47783
47835
|
background-clip: text;
|
|
47784
47836
|
-webkit-background-clip: text;
|
|
47785
|
-
|
|
47837
|
+
`,
|
|
47838
|
+
"border-box": styled.css`background-clip: border-box;`,
|
|
47839
|
+
"padding-box": styled.css`background-clip: padding-box;`,
|
|
47840
|
+
"content-box": styled.css`background-clip: content-box;`
|
|
47786
47841
|
}),
|
|
47787
47842
|
stylerBackgroundImage: new StylerProperty("styler-background-image", {
|
|
47788
47843
|
"none": styled.css`background-image: none;`,
|
|
47789
47844
|
"custom": styled.css`background-image: var(--styler-background-image);`
|
|
47790
47845
|
}),
|
|
47791
47846
|
stylerBackgroundPosition: new StylerProperty("styler-background-position", {
|
|
47792
|
-
"custom": styled.css`background-position: var(--styler-background-position)
|
|
47847
|
+
"custom": styled.css`background-position: var(--styler-background-position);`,
|
|
47848
|
+
"top": styled.css`background-position: top;`,
|
|
47849
|
+
"bottom": styled.css`background-position: bottom;`,
|
|
47850
|
+
"left": styled.css`background-position: left;`,
|
|
47851
|
+
"right": styled.css`background-position: right;`
|
|
47793
47852
|
}),
|
|
47794
47853
|
stylerBackgroundPositionX: new StylerProperty("styler-background-position-x", createVarSet("background-position-x", sizeVarList)),
|
|
47795
47854
|
stylerBackgroundPositionY: new StylerProperty("styler-background-position-y", createVarSet("background-position-y", sizeVarList)),
|
|
47796
47855
|
stylerBackgroundSize: new StylerProperty("styler-background-size", {
|
|
47797
|
-
"custom": styled.css`background-size: var(--styler-background-size)
|
|
47856
|
+
"custom": styled.css`background-size: var(--styler-background-size);`,
|
|
47857
|
+
"cover": styled.css`background-size: cover;`,
|
|
47858
|
+
"contain": styled.css`background-size: contain;`,
|
|
47859
|
+
"p50": styled.css`background-size: 50%;`,
|
|
47860
|
+
"p100": styled.css`background-size: 100%;`
|
|
47798
47861
|
}),
|
|
47862
|
+
stylerBackgroundBlendMode: new StylerProperty("styler-background-blend-mode", createSet("background-blend-mode", ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"])),
|
|
47799
47863
|
stylerBackgroundRepeat: new StylerProperty("styler-background-repeat", createSet("background-repeat", ["no-repeat", "repeat", "repeat-x", "repeat-y", "round", "space"])),
|
|
47800
|
-
stylerBackgroundAttachment: new StylerProperty("styler-background-attachment", createSet("background-attachment", ["fixed", "local", "scroll"])),
|
|
47864
|
+
stylerBackgroundAttachment: new StylerProperty("styler-background-attachment", createSet("background-attachment", ["fixed", "local", "scroll", "local, scroll", "scroll, local"])),
|
|
47801
47865
|
stylerBackgroundOrigin: new StylerProperty("styler-background-origin", createSet("background-origin", ["border-box", "content-box", "padding-box"])),
|
|
47802
47866
|
stylerBackgroundMode: new StylerProperty("styler-background-mode", createSet("background-mode", ["none", "extend"]))
|
|
47803
47867
|
});
|
|
@@ -48480,7 +48544,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor"
|
|
|
48480
48544
|
System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor", "../../styler/StylerSet", "../controls/SizeEditorControl"], function (_export, _context) {
|
|
48481
48545
|
"use strict";
|
|
48482
48546
|
|
|
48483
|
-
var XNode, DropDownProperty, ExpanderPropertyEditor, StylerSet, SizeEditorControl, properties;
|
|
48547
|
+
var XNode, ButtonProperty, DropDownProperty, ExpanderPropertyEditor, StylerSet, SizeEditorControl, properties;
|
|
48484
48548
|
function BackgroundGroupEditor() {
|
|
48485
48549
|
return XNode.create(ExpanderPropertyEditor, {
|
|
48486
48550
|
label: "Background"
|
|
@@ -48490,8 +48554,10 @@ System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor"
|
|
|
48490
48554
|
}), XNode.create(DropDownProperty, {
|
|
48491
48555
|
label: "Color",
|
|
48492
48556
|
property: properties.stylerBackgroundColor
|
|
48493
|
-
}), XNode.create(
|
|
48557
|
+
}), XNode.create(ButtonProperty, {
|
|
48494
48558
|
label: "Image",
|
|
48559
|
+
eventClick: "change-background-image",
|
|
48560
|
+
icon: "fas fa-folder",
|
|
48495
48561
|
property: properties.stylerBackgroundImage
|
|
48496
48562
|
}), XNode.create(DropDownProperty, {
|
|
48497
48563
|
label: "Clip",
|
|
@@ -48524,6 +48590,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor"
|
|
|
48524
48590
|
setters: [function (_webAtomsCoreDistCoreXNode) {
|
|
48525
48591
|
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
48526
48592
|
}, function (_controlsPropertyEditor) {
|
|
48593
|
+
ButtonProperty = _controlsPropertyEditor.ButtonProperty;
|
|
48527
48594
|
DropDownProperty = _controlsPropertyEditor.DropDownProperty;
|
|
48528
48595
|
ExpanderPropertyEditor = _controlsPropertyEditor.ExpanderPropertyEditor;
|
|
48529
48596
|
}, function (_stylerStylerSet) {
|
|
@@ -48581,7 +48648,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor"
|
|
|
48581
48648
|
}), XNode.create(TextProperty, {
|
|
48582
48649
|
label: "Alt",
|
|
48583
48650
|
"style-display": BindEditor.oneWay(x => /img/i.test(x.selection.name)),
|
|
48584
|
-
attributeName: "
|
|
48651
|
+
attributeName: "alt"
|
|
48585
48652
|
}));
|
|
48586
48653
|
}
|
|
48587
48654
|
_export("default", AttributeEditor);
|
|
@@ -51349,6 +51416,13 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
51349
51416
|
});
|
|
51350
51417
|
});
|
|
51351
51418
|
}
|
|
51419
|
+
changeBackgroundImage() {
|
|
51420
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51421
|
+
const img = prompt("Image Src", "");
|
|
51422
|
+
this.selection.element.style.setProperty("--styler-background-image", `url(${JSON.stringify(img)})`);
|
|
51423
|
+
return;
|
|
51424
|
+
});
|
|
51425
|
+
}
|
|
51352
51426
|
extractElement() {
|
|
51353
51427
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51354
51428
|
alert("Not implemented");
|
|
@@ -51703,6 +51777,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
51703
51777
|
__decorate([Action({
|
|
51704
51778
|
onEvent: "change-image"
|
|
51705
51779
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], HtmlPageEditor.prototype, "changeImage", null);
|
|
51780
|
+
__decorate([Action({
|
|
51781
|
+
onEvent: "change-background-image"
|
|
51782
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], HtmlPageEditor.prototype, "changeBackgroundImage", null);
|
|
51706
51783
|
__decorate([Action({
|
|
51707
51784
|
onEvent: "extract-element"
|
|
51708
51785
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], HtmlPageEditor.prototype, "extractElement", null);
|
|
@@ -52138,6 +52215,23 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
52138
52215
|
this.folder = null;
|
|
52139
52216
|
this.selectedFile = null;
|
|
52140
52217
|
}
|
|
52218
|
+
changeBackgroundImage() {
|
|
52219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52220
|
+
const element = this.selection.element;
|
|
52221
|
+
const files = yield PageNavigator.pushPageForResult(ChooseMediaPage, {
|
|
52222
|
+
folder: this.folder,
|
|
52223
|
+
accept: "image/*",
|
|
52224
|
+
multiple: false
|
|
52225
|
+
});
|
|
52226
|
+
const {
|
|
52227
|
+
folder,
|
|
52228
|
+
file
|
|
52229
|
+
} = files[0];
|
|
52230
|
+
const path = "./" + [...folder, file.name].join("/");
|
|
52231
|
+
element.style.setProperty("background-image", `url("${path}")`);
|
|
52232
|
+
element.removeAttribute("styler-background-image");
|
|
52233
|
+
});
|
|
52234
|
+
}
|
|
52141
52235
|
changeImage() {
|
|
52142
52236
|
return __awaiter(this, void 0, void 0, function* () {
|
|
52143
52237
|
const element = this.selection.element;
|