@candy-kingdom/bonnie-cms 0.1.7 → 0.1.8
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/esm2022/index.mjs +2 -1
- package/esm2022/lib/bonnie-cms.module.mjs +11 -3
- package/esm2022/lib/services/admin-data.service.mjs +37 -0
- package/esm2022/lib/services/data.service.mjs +75 -0
- package/esm2022/lib/services/index.mjs +3 -0
- package/fesm2022/candy-kingdom-bonnie-cms.mjs +135 -28
- package/fesm2022/candy-kingdom-bonnie-cms.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/services/admin-data.service.d.ts +16 -0
- package/lib/services/data.service.d.ts +19 -0
- package/lib/services/index.d.ts +2 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { PageBase } from "@candy-kingdom/bonnie";
|
|
4
|
+
import { SettingBase, SettingGroup } from "../generated";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AdminDataService {
|
|
7
|
+
private readonly http;
|
|
8
|
+
private baseHref;
|
|
9
|
+
constructor(http: HttpClient, baseHref: string);
|
|
10
|
+
getSettingGroups(): Observable<SettingGroup[]>;
|
|
11
|
+
getPage(url: string): Observable<SettingGroup[]>;
|
|
12
|
+
storePage(page: PageBase): Observable<void>;
|
|
13
|
+
updateSettings(settings: SettingBase[]): Observable<void>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdminDataService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AdminDataService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { PageBase } from '@candy-kingdom/bonnie';
|
|
4
|
+
import { SettingData } from "../generated";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export type SettingDataDict = {
|
|
7
|
+
[id: string]: SettingData;
|
|
8
|
+
};
|
|
9
|
+
export declare class DataService {
|
|
10
|
+
private readonly http;
|
|
11
|
+
private baseHref;
|
|
12
|
+
constructor(http: HttpClient, baseHref: string);
|
|
13
|
+
getView(viewCode: string): Observable<Readonly<PageBase>>;
|
|
14
|
+
getPage(pageRoute: string): Observable<Readonly<PageBase>>;
|
|
15
|
+
getSettings(ids: string[]): Observable<Readonly<SettingDataDict>>;
|
|
16
|
+
private getSkeleton;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DataService>;
|
|
19
|
+
}
|