@social-mail/social-mail-client 1.1.2 → 1.1.4
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 +21 -8
- 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/common/controls/collection-editor/CollectionEditor.js +7 -5
- package/dist/common/controls/collection-editor/CollectionEditor.js.map +1 -1
- package/dist/services/websites/WebSiteService.d.ts.map +1 -1
- package/dist/services/websites/WebSiteService.js +4 -1
- package/dist/services/websites/WebSiteService.js.map +1 -1
- package/dist/site-editor/styler/properties/layout/layout.d.ts.map +1 -1
- package/dist/site-editor/styler/properties/layout/layout.js +10 -2
- package/dist/site-editor/styler/properties/layout/layout.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +21 -8
- 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/common/controls/collection-editor/CollectionEditor.tsx +4 -4
- package/src/services/websites/WebSiteService.ts +3 -1
- package/src/site-editor/styler/properties/layout/layout.ts +10 -2
|
@@ -19769,10 +19769,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
|
|
|
19769
19769
|
let repeater;
|
|
19770
19770
|
const items = (_a = model[collection]) !== null && _a !== void 0 ? _a : model[collection] = [];
|
|
19771
19771
|
const onAddItem = () => __awaiter(this, void 0, void 0, function* () {
|
|
19772
|
-
var _b;
|
|
19773
19772
|
const es = repeater.app.resolve(EntityService);
|
|
19774
|
-
const clone = es.cloner(model).copy;
|
|
19775
|
-
const copy = (_b = clone[collection]) !== null && _b !== void 0 ? _b : clone[collection] = [];
|
|
19776
19773
|
let newItem;
|
|
19777
19774
|
if (addPage) {
|
|
19778
19775
|
const result = yield PageNavigator.pushPageForResult(addPage, addItemDefaults !== null && addItemDefaults !== void 0 ? addItemDefaults : {});
|
|
@@ -19786,8 +19783,13 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
|
|
|
19786
19783
|
if (newItem === null || newItem === void 0 ? void 0 : newItem.then) {
|
|
19787
19784
|
newItem = yield newItem;
|
|
19788
19785
|
}
|
|
19789
|
-
|
|
19790
|
-
|
|
19786
|
+
const draft = {
|
|
19787
|
+
model,
|
|
19788
|
+
[collection]: [newItem]
|
|
19789
|
+
};
|
|
19790
|
+
const clone = es.cloner(draft);
|
|
19791
|
+
clone.include(`(x) => x.${collection}`);
|
|
19792
|
+
yield es.save(clone.copy);
|
|
19791
19793
|
repeater.items.add(newItem);
|
|
19792
19794
|
});
|
|
19793
19795
|
const deleteItem = item => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -31247,10 +31249,13 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
31247
31249
|
execute: function () {
|
|
31248
31250
|
WebSiteService = class WebSiteService {
|
|
31249
31251
|
get(id) {
|
|
31252
|
+
var _a;
|
|
31250
31253
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31251
|
-
|
|
31254
|
+
const site = yield this.entityService.query(WebSiteFolder).where({
|
|
31252
31255
|
id
|
|
31253
31256
|
}, p => x => x.folderID === p.id).include(x => [x.folder, x.hosts, x.versions]).firstOrDefault();
|
|
31257
|
+
(_a = site.versions) === null || _a === void 0 ? void 0 : _a.sort((a, b) => b.snapshotFolderID - a.snapshotFolderID);
|
|
31258
|
+
return site;
|
|
31254
31259
|
});
|
|
31255
31260
|
}
|
|
31256
31261
|
list() {
|
|
@@ -32610,10 +32615,18 @@ System.register(["@web-atoms/core/dist/style/styled", "../../Styler"], function
|
|
|
32610
32615
|
}
|
|
32611
32616
|
|
|
32612
32617
|
&:checked ~ nav {
|
|
32613
|
-
display:
|
|
32618
|
+
display: flex;
|
|
32619
|
+
gap: var(--size-default);
|
|
32620
|
+
flex-direction: column;
|
|
32614
32621
|
position: absolute;
|
|
32615
32622
|
right: 10px;
|
|
32616
|
-
top:
|
|
32623
|
+
top: 40px;
|
|
32624
|
+
background-color: canvas;
|
|
32625
|
+
padding: var(--size-default);
|
|
32626
|
+
border-radius: var(--size-default);
|
|
32627
|
+
box-shadow: 0 0 8px 2px gray;
|
|
32628
|
+
min-width: 200px;
|
|
32629
|
+
min-height: 300px;
|
|
32617
32630
|
}
|
|
32618
32631
|
}
|
|
32619
32632
|
}
|