@smartsoft001-mobilems/models 2.102.0 → 2.103.0
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/README.md
CHANGED
|
@@ -15,7 +15,7 @@ import { Config, Page, MsFile, ArticleWidgetType } from '@smartsoft001-mobilems/
|
|
|
15
15
|
| `ConfigPageType` | Page-type enum used by the config menu |
|
|
16
16
|
| `ConfigMenuItem` | Union of menu-item shapes |
|
|
17
17
|
| `ITheme` | Theme block of `Config` (colours, fonts, per-area flags) |
|
|
18
|
-
| `Page` | CMS page — `IEntity<number>`; optional `slug`, `seo: PageSeo \| null`, `sections: PageSectionRaw[] \| null` (raw API shape — normalize before use) |
|
|
18
|
+
| `Page` | CMS page — `IEntity<number>`; optional `slug`, `seo: PageSeo \| null`, `sections: PageSectionRaw[] \| null` (raw API shape — normalize before use); `slides` may be missing or `null`; `image` / `backgroundImage` (`MsFile \| string \| null`) are the page images `GET page/:id` sends |
|
|
19
19
|
| `PageSlide` | Slide of a CMS page |
|
|
20
20
|
| `MsFile` | Multimedia file — `IEntity<number>` |
|
|
21
21
|
| `MsFileFromFeature` | Enum of file feature sources (image, audio, video, 3d, …) |
|
|
@@ -79,7 +79,7 @@ arrays without `null`s, everything sorted by `position`, `position` always a num
|
|
|
79
79
|
widgets: `IArticleWidgetText`, `IArticleWidgetImage`, `IArticleWidgetMedia`, `IArticleWidgetVideo`,
|
|
80
80
|
`IArticleWidgetAudio`, `IArticleWidgetGalleryImage`, `IArticleWidgetGalleryArticle`,
|
|
81
81
|
`IArticleWidgetGalleryObject`
|
|
82
|
-
- Shared descriptors: `IAuthor`, `ICreator`, `IKeyword`, `ICycle`, `ICopyrights`, `MenuItem`, `ITab`
|
|
82
|
+
- Shared descriptors: `IAuthor`, `ICreator`, `IKeyword`, `ICycle`, `ICopyrights`, `MenuItem`, `ITab` (`id`, `label`, optional `count` for search tabs)
|
|
83
83
|
|
|
84
84
|
`WidgetComponent` in [`@smartsoft001-mobilems/angular`](../angular/README.md) maps an
|
|
85
85
|
`ArticleWidgetType` to the component that renders it; a new widget type is an `IArticleWidget`
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { IEntity } from '@smartsoft001/domain-core';
|
|
2
|
+
import { MsFile } from './file.entity';
|
|
2
3
|
import { PageSectionRaw, PageSeo } from './page-section.entity';
|
|
3
4
|
export declare class Page implements IEntity<number> {
|
|
4
5
|
id: number;
|
|
5
6
|
title: string;
|
|
6
7
|
content: any;
|
|
7
|
-
|
|
8
|
+
/** Empty or missing on most pages; the API may also send `null`. */
|
|
9
|
+
slides?: Array<PageSlide> | null;
|
|
8
10
|
slug?: string;
|
|
9
11
|
seo?: PageSeo | null;
|
|
10
12
|
/**
|
|
@@ -13,6 +15,9 @@ export declare class Page implements IEntity<number> {
|
|
|
13
15
|
* `smart-mobilems-page-sections` does it itself.
|
|
14
16
|
*/
|
|
15
17
|
sections?: PageSectionRaw[] | null;
|
|
18
|
+
/** Page image sent by `GET page/:id`, as a file object or a ready path. */
|
|
19
|
+
image?: MsFile | string | null;
|
|
20
|
+
backgroundImage?: MsFile | string | null;
|
|
16
21
|
}
|
|
17
22
|
export declare class PageSlide {
|
|
18
23
|
id: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.entity.js","sourceRoot":"","sources":["../../../../../../../packages/shared/models/src/lib/entities/page.entity.ts"],"names":[],"mappings":";;;;AACA,iDAAoD;
|
|
1
|
+
{"version":3,"file":"page.entity.js","sourceRoot":"","sources":["../../../../../../../packages/shared/models/src/lib/entities/page.entity.ts"],"names":[],"mappings":";;;;AACA,iDAAoD;AAM7C,IAAM,IAAI,GAAV,MAAM,IAAI;CAgChB,CAAA;AAhCY,oBAAI;AAIf;IADC,IAAA,cAAK,GAAE;;mCACO;AAGf;IADC,IAAA,cAAK,GAAE;;qCACK;AAIb;IADC,IAAA,cAAK,GAAE;sCACC,KAAK;oCAAmB;eAXtB,IAAI;IADhB,IAAA,cAAK,GAAE;GACK,IAAI,CAgChB;AAGM,IAAM,SAAS,GAAf,MAAM,SAAS;CAkBrB,CAAA;AAlBY,8BAAS;AAEpB;IADC,IAAA,cAAK,GAAE;;qCACI;AAGZ;IADC,IAAA,cAAK,GAAE;;wCACO;AAGf;IADC,IAAA,cAAK,GAAE;;+CACwB;AAGhC;IADC,IAAA,cAAK,GAAE;;+CACc;AAGtB;IADC,IAAA,cAAK,GAAE;;8CACa;AAGrB;IADC,IAAA,cAAK,GAAE;;8CACa;oBAjBV,SAAS;IADrB,IAAA,cAAK,GAAE;GACK,SAAS,CAkBrB"}
|