@social-mail/social-mail-client 1.2.424 → 1.2.426
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/templates/plain/index.html +1 -0
- package/dist/admin/AdminAppIndex.pack.js +142 -23
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +28 -7
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/site-editor/blocks/Block.js +18 -1
- package/dist/site-editor/blocks/Block.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/BackgroundGroupEditor.d.ts.map +1 -1
- package/dist/site-editor/properties/groups/BackgroundGroupEditor.js +8 -2
- package/dist/site-editor/properties/groups/BackgroundGroupEditor.js.map +1 -1
- package/dist/site-editor/properties/groups/PositionGroupEditor.d.ts.map +1 -1
- package/dist/site-editor/properties/groups/PositionGroupEditor.js +3 -0
- package/dist/site-editor/properties/groups/PositionGroupEditor.js.map +1 -1
- package/dist/site-editor/styler/StylerSet.d.ts +3 -0
- package/dist/site-editor/styler/StylerSet.d.ts.map +1 -1
- package/dist/site-editor/styler/properties/stylerBackground.d.ts +2 -0
- package/dist/site-editor/styler/properties/stylerBackground.d.ts.map +1 -1
- package/dist/site-editor/styler/properties/stylerBackground.js +18 -5
- package/dist/site-editor/styler/properties/stylerBackground.js.map +1 -1
- package/dist/site-editor/styler/properties/stylerPosition.d.ts +1 -0
- package/dist/site-editor/styler/properties/stylerPosition.d.ts.map +1 -1
- package/dist/site-editor/styler/properties/stylerPosition.js +2 -1
- package/dist/site-editor/styler/properties/stylerPosition.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +142 -23
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +28 -7
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/site-editor/blocks/Block.tsx +18 -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/BackgroundGroupEditor.tsx +8 -2
- package/src/site-editor/properties/groups/PositionGroupEditor.tsx +4 -0
- package/src/site-editor/styler/properties/stylerBackground.ts +40 -4
- package/src/site-editor/styler/properties/stylerPosition.ts +8 -0
|
@@ -46900,6 +46900,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/co
|
|
|
46900
46900
|
padding: ${stylerVars.sizeDefault};
|
|
46901
46901
|
margin: ${stylerVars.sizeDefault};
|
|
46902
46902
|
gap: ${stylerVars.sizeLarge};
|
|
46903
|
+
--children-width: 100%;
|
|
46903
46904
|
|
|
46904
46905
|
@media (min-width: 900px) {
|
|
46905
46906
|
& {
|
|
@@ -46921,12 +46922,18 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/co
|
|
|
46921
46922
|
|
|
46922
46923
|
&[styler-full-screen] {
|
|
46923
46924
|
width: 100%;
|
|
46924
|
-
--children-width: 100%;
|
|
46925
46925
|
max-width: 100%;
|
|
46926
46926
|
padding: 0;
|
|
46927
46927
|
margin: 0;
|
|
46928
46928
|
}
|
|
46929
46929
|
|
|
46930
|
+
& > [styler-background-mode=extend] {
|
|
46931
|
+
align-self: center;
|
|
46932
|
+
width: 100vw;
|
|
46933
|
+
padding: 10px calc(50vw - var(--children-width) / 2 + 20px);
|
|
46934
|
+
border-radius: 0;
|
|
46935
|
+
}
|
|
46936
|
+
|
|
46930
46937
|
`.expand("[styler-layout=main]"));
|
|
46931
46938
|
StylerSets.register("high", styled.css`
|
|
46932
46939
|
& [styler-layout] {
|
|
@@ -46983,6 +46990,8 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/co
|
|
|
46983
46990
|
display: flex;
|
|
46984
46991
|
flex-direction: column;
|
|
46985
46992
|
width: 100vw;
|
|
46993
|
+
padding: 0;
|
|
46994
|
+
margin: 0;
|
|
46986
46995
|
align-self: center;
|
|
46987
46996
|
align-items: center;
|
|
46988
46997
|
justify-content: center;
|
|
@@ -46997,6 +47006,14 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/co
|
|
|
46997
47006
|
&:empty:before {
|
|
46998
47007
|
content: "Inject Not Set";
|
|
46999
47008
|
}
|
|
47009
|
+
|
|
47010
|
+
& > [styler-background-mode=extend] {
|
|
47011
|
+
align-self: center;
|
|
47012
|
+
width: 100vw;
|
|
47013
|
+
padding: 10px calc(50vw - var(--children-width) / 2 + 20px);
|
|
47014
|
+
border-radius: 0;
|
|
47015
|
+
}
|
|
47016
|
+
|
|
47000
47017
|
}
|
|
47001
47018
|
|
|
47002
47019
|
& video-player {
|
|
@@ -47247,21 +47264,38 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
47247
47264
|
|
|
47248
47265
|
var __rest, XNode, AtomControl, Expander, Select, Bind, styled, BindEditor, BindStyleValue, BindStyleCustom;
|
|
47249
47266
|
function PropertyEditor(_a, ...nodes) {
|
|
47250
|
-
var _b, _c;
|
|
47251
|
-
var
|
|
47267
|
+
var _b, _c, _d;
|
|
47268
|
+
var _e;
|
|
47252
47269
|
var {
|
|
47253
47270
|
label = void 0,
|
|
47254
|
-
custom = void 0
|
|
47271
|
+
custom = void 0,
|
|
47272
|
+
property,
|
|
47273
|
+
attributeName = void 0
|
|
47255
47274
|
} = _a,
|
|
47256
|
-
a = __rest(_a, ["label", "custom"]);
|
|
47275
|
+
a = __rest(_a, ["label", "custom", "property", "attributeName"]);
|
|
47257
47276
|
if (!label && nodes.length === 1) {
|
|
47258
47277
|
return nodes[0];
|
|
47259
47278
|
}
|
|
47279
|
+
if (custom) {
|
|
47280
|
+
const ca = (_b = custom.attributes) !== null && _b !== void 0 ? _b : custom.attributes = {};
|
|
47281
|
+
ca["data-element"] = "custom";
|
|
47282
|
+
}
|
|
47260
47283
|
for (const iterator of nodes) {
|
|
47261
|
-
(
|
|
47284
|
+
(_d = (_e = (_c = iterator.attributes) !== null && _c !== void 0 ? _c : iterator.attributes = {})["data-element"]) !== null && _d !== void 0 ? _d : _e["data-element"] = "editor";
|
|
47262
47285
|
}
|
|
47263
47286
|
return XNode.create("div", Object.assign({
|
|
47264
|
-
"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
|
+
}
|
|
47265
47299
|
}, a), label && XNode.create("label", {
|
|
47266
47300
|
"data-font-size": "small"
|
|
47267
47301
|
}, label), ...nodes, custom);
|
|
@@ -47288,9 +47322,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
47288
47322
|
a = __rest(_a, ["label", "property"]);
|
|
47289
47323
|
return XNode.create(PropertyEditor, Object.assign({
|
|
47290
47324
|
label: label,
|
|
47325
|
+
property: property,
|
|
47291
47326
|
custom: XNode.create("input", Object.assign({
|
|
47292
|
-
type: "text"
|
|
47293
|
-
"data-element": "custom"
|
|
47327
|
+
type: "text"
|
|
47294
47328
|
}, BindStyleCustom(property.key)))
|
|
47295
47329
|
}, a), XNode.create(Select, Object.assign({}, BindStyleValue(property.key), {
|
|
47296
47330
|
"data-flex": "stretch-full",
|
|
@@ -47308,7 +47342,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
47308
47342
|
} = _a,
|
|
47309
47343
|
a = __rest(_a, ["label", "property"]);
|
|
47310
47344
|
return XNode.create(PropertyEditor, Object.assign({
|
|
47311
|
-
label: label
|
|
47345
|
+
label: label,
|
|
47346
|
+
property: property
|
|
47312
47347
|
}, a), XNode.create("input", Object.assign({}, BindStyleValue(property.key), {
|
|
47313
47348
|
"data-flex": "stretch-full",
|
|
47314
47349
|
type: "tel"
|
|
@@ -47322,19 +47357,50 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
47322
47357
|
} = _a,
|
|
47323
47358
|
a = __rest(_a, ["label", "property", "attributeName"]);
|
|
47324
47359
|
return XNode.create(PropertyEditor, Object.assign({
|
|
47325
|
-
label: label
|
|
47360
|
+
label: label,
|
|
47361
|
+
property: property,
|
|
47362
|
+
attributeName: attributeName
|
|
47326
47363
|
}, a), XNode.create("input", Object.assign({
|
|
47327
|
-
type: "text"
|
|
47328
|
-
"data-element": "custom"
|
|
47364
|
+
type: "text"
|
|
47329
47365
|
}, BindStyleValue(attributeName !== null && attributeName !== void 0 ? attributeName : property.key), {
|
|
47330
47366
|
"data-flex": "stretch-full"
|
|
47331
47367
|
})));
|
|
47332
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
|
+
}
|
|
47333
47397
|
_export({
|
|
47398
|
+
PropertyEditor: PropertyEditor,
|
|
47334
47399
|
ExpanderPropertyEditor: ExpanderPropertyEditor,
|
|
47335
47400
|
DropDownProperty: DropDownProperty,
|
|
47336
47401
|
NumberProperty: NumberProperty,
|
|
47337
|
-
TextProperty: TextProperty
|
|
47402
|
+
TextProperty: TextProperty,
|
|
47403
|
+
ButtonProperty: ButtonProperty
|
|
47338
47404
|
});
|
|
47339
47405
|
return {
|
|
47340
47406
|
setters: [function (_tslib) {
|
|
@@ -47365,7 +47431,6 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
47365
47431
|
const editor = c;
|
|
47366
47432
|
const pv = editor.selection.style(v);
|
|
47367
47433
|
c.render(XNode.create("div", {
|
|
47368
|
-
"style-display": Bind.source(pv, s => s.source.value === "custom"),
|
|
47369
47434
|
value: Bind.sourceTwoWays(pv, s => s.source.custom)
|
|
47370
47435
|
}), e, c);
|
|
47371
47436
|
}));
|
|
@@ -47405,6 +47470,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
47405
47470
|
padding-right: 10px;
|
|
47406
47471
|
}
|
|
47407
47472
|
|
|
47473
|
+
&:not([data-custom]) > [data-element=custom] {
|
|
47474
|
+
display: none;
|
|
47475
|
+
}
|
|
47476
|
+
|
|
47408
47477
|
`.installGlobal("[data-element=property-editor]");
|
|
47409
47478
|
styled.css`
|
|
47410
47479
|
|
|
@@ -47564,7 +47633,8 @@ System.register(["../Styler"], function (_export, _context) {
|
|
|
47564
47633
|
stylerLeft: new StylerProperty("styler-left", createVarSet("left", sizeVarList)),
|
|
47565
47634
|
stylerTop: new StylerProperty("styler-top", createVarSet("top", sizeVarList)),
|
|
47566
47635
|
stylerRight: new StylerProperty("styler-right", createVarSet("right", sizeVarList)),
|
|
47567
|
-
stylerBottom: new StylerProperty("styler-bottom", createVarSet("bottom", sizeVarList))
|
|
47636
|
+
stylerBottom: new StylerProperty("styler-bottom", createVarSet("bottom", sizeVarList)),
|
|
47637
|
+
stylerZIndex: new StylerProperty("styler-z-index", createSet("z-index", ["none", "last", "back", "front", "first"]))
|
|
47568
47638
|
});
|
|
47569
47639
|
}
|
|
47570
47640
|
};
|
|
@@ -47764,23 +47834,36 @@ System.register(["@web-atoms/core/dist/style/styled", "../Styler", "../StylerSet
|
|
|
47764
47834
|
"text": styled.css`
|
|
47765
47835
|
background-clip: text;
|
|
47766
47836
|
-webkit-background-clip: text;
|
|
47767
|
-
|
|
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;`
|
|
47768
47841
|
}),
|
|
47769
47842
|
stylerBackgroundImage: new StylerProperty("styler-background-image", {
|
|
47770
47843
|
"none": styled.css`background-image: none;`,
|
|
47771
47844
|
"custom": styled.css`background-image: var(--styler-background-image);`
|
|
47772
47845
|
}),
|
|
47773
47846
|
stylerBackgroundPosition: new StylerProperty("styler-background-position", {
|
|
47774
|
-
"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;`
|
|
47775
47852
|
}),
|
|
47776
47853
|
stylerBackgroundPositionX: new StylerProperty("styler-background-position-x", createVarSet("background-position-x", sizeVarList)),
|
|
47777
47854
|
stylerBackgroundPositionY: new StylerProperty("styler-background-position-y", createVarSet("background-position-y", sizeVarList)),
|
|
47778
47855
|
stylerBackgroundSize: new StylerProperty("styler-background-size", {
|
|
47779
|
-
"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%;`
|
|
47780
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"])),
|
|
47781
47863
|
stylerBackgroundRepeat: new StylerProperty("styler-background-repeat", createSet("background-repeat", ["no-repeat", "repeat", "repeat-x", "repeat-y", "round", "space"])),
|
|
47782
|
-
stylerBackgroundAttachment: new StylerProperty("styler-background-attachment", createSet("background-attachment", ["fixed", "local", "scroll"])),
|
|
47783
|
-
stylerBackgroundOrigin: new StylerProperty("styler-background-origin", createSet("background-origin", ["border-box", "content-box", "padding-box"]))
|
|
47864
|
+
stylerBackgroundAttachment: new StylerProperty("styler-background-attachment", createSet("background-attachment", ["fixed", "local", "scroll", "local, scroll", "scroll, local"])),
|
|
47865
|
+
stylerBackgroundOrigin: new StylerProperty("styler-background-origin", createSet("background-origin", ["border-box", "content-box", "padding-box"])),
|
|
47866
|
+
stylerBackgroundMode: new StylerProperty("styler-background-mode", createSet("background-mode", ["none", "extend"]))
|
|
47784
47867
|
});
|
|
47785
47868
|
}
|
|
47786
47869
|
};
|
|
@@ -48429,6 +48512,9 @@ System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor"
|
|
|
48429
48512
|
}), XNode.create(SizeEditorControl, {
|
|
48430
48513
|
label: "Bottom",
|
|
48431
48514
|
property: properties.stylerBottom
|
|
48515
|
+
}), XNode.create(DropDownProperty, {
|
|
48516
|
+
label: "Z-Index",
|
|
48517
|
+
property: properties.stylerZIndex
|
|
48432
48518
|
})));
|
|
48433
48519
|
}
|
|
48434
48520
|
_export("default", PositionGroupEditor);
|
|
@@ -48458,7 +48544,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor"
|
|
|
48458
48544
|
System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor", "../../styler/StylerSet", "../controls/SizeEditorControl"], function (_export, _context) {
|
|
48459
48545
|
"use strict";
|
|
48460
48546
|
|
|
48461
|
-
var XNode, DropDownProperty, ExpanderPropertyEditor, StylerSet, SizeEditorControl, properties;
|
|
48547
|
+
var XNode, ButtonProperty, DropDownProperty, ExpanderPropertyEditor, StylerSet, SizeEditorControl, properties;
|
|
48462
48548
|
function BackgroundGroupEditor() {
|
|
48463
48549
|
return XNode.create(ExpanderPropertyEditor, {
|
|
48464
48550
|
label: "Background"
|
|
@@ -48468,8 +48554,10 @@ System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor"
|
|
|
48468
48554
|
}), XNode.create(DropDownProperty, {
|
|
48469
48555
|
label: "Color",
|
|
48470
48556
|
property: properties.stylerBackgroundColor
|
|
48471
|
-
}), XNode.create(
|
|
48557
|
+
}), XNode.create(ButtonProperty, {
|
|
48472
48558
|
label: "Image",
|
|
48559
|
+
eventClick: "change-background-image",
|
|
48560
|
+
icon: "fas fa-folder",
|
|
48473
48561
|
property: properties.stylerBackgroundImage
|
|
48474
48562
|
}), XNode.create(DropDownProperty, {
|
|
48475
48563
|
label: "Clip",
|
|
@@ -48492,6 +48580,9 @@ System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor"
|
|
|
48492
48580
|
}), XNode.create(DropDownProperty, {
|
|
48493
48581
|
label: "Attachment",
|
|
48494
48582
|
property: properties.stylerBackgroundAttachment
|
|
48583
|
+
}), XNode.create(DropDownProperty, {
|
|
48584
|
+
label: "Mode",
|
|
48585
|
+
property: properties.stylerBackgroundMode
|
|
48495
48586
|
}));
|
|
48496
48587
|
}
|
|
48497
48588
|
_export("default", BackgroundGroupEditor);
|
|
@@ -48499,6 +48590,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "../controls/PropertyEditor"
|
|
|
48499
48590
|
setters: [function (_webAtomsCoreDistCoreXNode) {
|
|
48500
48591
|
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
48501
48592
|
}, function (_controlsPropertyEditor) {
|
|
48593
|
+
ButtonProperty = _controlsPropertyEditor.ButtonProperty;
|
|
48502
48594
|
DropDownProperty = _controlsPropertyEditor.DropDownProperty;
|
|
48503
48595
|
ExpanderPropertyEditor = _controlsPropertyEditor.ExpanderPropertyEditor;
|
|
48504
48596
|
}, function (_stylerStylerSet) {
|
|
@@ -51324,6 +51416,13 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
51324
51416
|
});
|
|
51325
51417
|
});
|
|
51326
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
|
+
}
|
|
51327
51426
|
extractElement() {
|
|
51328
51427
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51329
51428
|
alert("Not implemented");
|
|
@@ -51678,6 +51777,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
51678
51777
|
__decorate([Action({
|
|
51679
51778
|
onEvent: "change-image"
|
|
51680
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);
|
|
51681
51783
|
__decorate([Action({
|
|
51682
51784
|
onEvent: "extract-element"
|
|
51683
51785
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], HtmlPageEditor.prototype, "extractElement", null);
|
|
@@ -52113,6 +52215,23 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
52113
52215
|
this.folder = null;
|
|
52114
52216
|
this.selectedFile = null;
|
|
52115
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
|
+
}
|
|
52116
52235
|
changeImage() {
|
|
52117
52236
|
return __awaiter(this, void 0, void 0, function* () {
|
|
52118
52237
|
const element = this.selection.element;
|