@dignite-ng/expand.cms 0.0.8 → 0.0.9

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.
Files changed (34) hide show
  1. package/esm2022/lib/cms-routing.module.mjs +6 -2
  2. package/esm2022/lib/cms.module.mjs +14 -3
  3. package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +52 -10
  4. package/esm2022/lib/components/admin/entries/create.component.mjs +26 -17
  5. package/esm2022/lib/components/admin/entries/edit.component.mjs +13 -15
  6. package/esm2022/lib/components/admin/entries/entries.component.mjs +69 -41
  7. package/esm2022/lib/components/admin/fields/create-field.component.mjs +12 -9
  8. package/esm2022/lib/components/admin/fields/edit-field.component.mjs +12 -9
  9. package/esm2022/lib/components/admin/fields/fields.component.mjs +16 -12
  10. package/esm2022/lib/components/admin/sections/sections.component.mjs +3 -3
  11. package/esm2022/lib/components/admin/sites/sites.component.mjs +3 -3
  12. package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +3 -2
  13. package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +3 -2
  14. package/esm2022/lib/constants/styles.mjs +8 -1
  15. package/esm2022/lib/proxy/admin/entries/entry-admin.service.mjs +10 -3
  16. package/esm2022/lib/proxy/admin/entries/models.mjs +1 -1
  17. package/esm2022/lib/services/cms-api.service.mjs +14 -5
  18. package/esm2022/lib/services/simple-reuse-strategy.mjs +44 -0
  19. package/fesm2022/dignite-ng-expand.cms.mjs +366 -203
  20. package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -1
  21. package/lib/cms.module.d.ts +3 -1
  22. package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +10 -1
  23. package/lib/components/admin/entries/create.component.d.ts +9 -7
  24. package/lib/components/admin/entries/edit.component.d.ts +5 -7
  25. package/lib/components/admin/entries/entries.component.d.ts +13 -7
  26. package/lib/components/admin/fields/create-field.component.d.ts +3 -1
  27. package/lib/components/admin/fields/edit-field.component.d.ts +3 -1
  28. package/lib/components/admin/fields/fields.component.d.ts +3 -1
  29. package/lib/constants/styles.d.ts +1 -1
  30. package/lib/proxy/admin/entries/entry-admin.service.d.ts +2 -2
  31. package/lib/proxy/admin/entries/models.d.ts +5 -0
  32. package/lib/services/cms-api.service.d.ts +6 -2
  33. package/lib/services/simple-reuse-strategy.d.ts +11 -0
  34. package/package.json +3 -3
@@ -29,10 +29,12 @@ import * as i26 from "@abp/ng.components/page";
29
29
  import * as i27 from "@volo/abp.commercial.ng.ui/config";
30
30
  import * as i28 from "ng-zorro-antd/select";
31
31
  import * as i29 from "@dignite-ng/expand.dynamic-form";
32
+ import * as i30 from "ng-zorro-antd/table";
33
+ import * as i31 from "@angular/cdk/scrolling";
32
34
  export declare class CmsModule {
33
35
  static forChild(options?: any): ModuleWithProviders<CmsModule>;
34
36
  static forLazy(options?: any): NgModuleFactory<CmsModule>;
35
37
  static ɵfac: i0.ɵɵFactoryDeclaration<CmsModule, never>;
36
- static ɵmod: i0.ɵɵNgModuleDeclaration<CmsModule, [typeof i1.EntriesComponent, typeof i2.FieldsComponent, typeof i3.SitesComponent, typeof i4.SectionsComponent, typeof i5.FieldGroupComponent, typeof i6.CreateFieldComponent, typeof i7.EditFieldComponent, typeof i8.CreateOrEditFieldComponent, typeof i9.CreateOrEditComponent, typeof i10.CreateComponent, typeof i11.EditComponent, typeof i12.CreateOrEditEntriesComponent, typeof i13.TableConfigComponent, typeof i14.TableControlComponent, typeof i15.MatrixConfigComponent, typeof i16.MatrixControlComponent, typeof i17.EntryConfigComponent, typeof i18.EntryControlComponent], [typeof i19.CoreModule, typeof i20.ThemeSharedModule, typeof i21.CmsRoutingModule, typeof i22.NgbDropdownModule, typeof i23.FormsModule, typeof i23.ReactiveFormsModule, typeof i24.NgxValidateCoreModule, typeof i22.NgbNavModule, typeof i22.NgbAccordionModule, typeof i25.DragDropModule, typeof i26.PageModule, typeof i27.CommercialUiConfigModule, typeof i28.NzSelectModule, typeof i29.DynamicFormModule], [typeof i13.TableConfigComponent, typeof i14.TableControlComponent, typeof i15.MatrixConfigComponent, typeof i16.MatrixControlComponent, typeof i17.EntryConfigComponent, typeof i18.EntryControlComponent]>;
38
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CmsModule, [typeof i1.EntriesComponent, typeof i2.FieldsComponent, typeof i3.SitesComponent, typeof i4.SectionsComponent, typeof i5.FieldGroupComponent, typeof i6.CreateFieldComponent, typeof i7.EditFieldComponent, typeof i8.CreateOrEditFieldComponent, typeof i9.CreateOrEditComponent, typeof i10.CreateComponent, typeof i11.EditComponent, typeof i12.CreateOrEditEntriesComponent, typeof i13.TableConfigComponent, typeof i14.TableControlComponent, typeof i15.MatrixConfigComponent, typeof i16.MatrixControlComponent, typeof i17.EntryConfigComponent, typeof i18.EntryControlComponent], [typeof i19.CoreModule, typeof i20.ThemeSharedModule, typeof i21.CmsRoutingModule, typeof i22.NgbDropdownModule, typeof i23.FormsModule, typeof i23.ReactiveFormsModule, typeof i24.NgxValidateCoreModule, typeof i22.NgbNavModule, typeof i22.NgbAccordionModule, typeof i25.DragDropModule, typeof i26.PageModule, typeof i27.CommercialUiConfigModule, typeof i28.NzSelectModule, typeof i29.DynamicFormModule, typeof i30.NzTableModule, typeof i31.ScrollingModule], [typeof i13.TableConfigComponent, typeof i14.TableControlComponent, typeof i15.MatrixConfigComponent, typeof i16.MatrixControlComponent, typeof i17.EntryConfigComponent, typeof i18.EntryControlComponent]>;
37
39
  static ɵinj: i0.ɵɵInjectorDeclaration<CmsModule>;
38
40
  }
@@ -40,6 +40,8 @@ export declare class CreateOrEditEntriesComponent implements AfterContentInit {
40
40
  entryTypesList: any[];
41
41
  /**版本列表 */
42
42
  AllVersionsList: any[];
43
+ /**是否是编辑 */
44
+ isEdit: boolean;
43
45
  /**来自父组件的传值 */
44
46
  FromParentQueryParams: any;
45
47
  set ParentQueryParams(v: any);
@@ -51,14 +53,21 @@ export declare class CreateOrEditEntriesComponent implements AfterContentInit {
51
53
  set parentEntrySelect(v: any);
52
54
  /**别名表单实体 */
53
55
  get sluginput(): AbstractControl<any, any>;
56
+ /**语言表单实体 */
57
+ get cultureinput(): AbstractControl<any, any>;
58
+ /**语言表单实体影子 */
59
+ get culture_shadowInput(): AbstractControl<any, any>;
54
60
  /**extraProperties配置表单实体 */
55
61
  get extraProperties(): FormGroup<any>;
56
62
  ngAfterContentInit(): Promise<void>;
63
+ /**定义自定义异步验证 */
64
+ cultureAsyncValidator_test(): (ctrl: AbstractControl) => Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
57
65
  /**
58
66
  * 设置条目详情
59
67
  * @param {object} source - 数据源对象
60
68
  */
61
69
  setEntryconfig(source: any): void;
70
+ time: number;
62
71
  /**定义自定义异步验证 */
63
72
  repetitionAsyncValidator(): (ctrl: AbstractControl) => Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
64
73
  /**获取版块详情 */
@@ -75,5 +84,5 @@ export declare class CreateOrEditEntriesComponent implements AfterContentInit {
75
84
  /**删除版本 */
76
85
  delectVersion(vid: any): void;
77
86
  static ɵfac: i0.ɵɵFactoryDeclaration<CreateOrEditEntriesComponent, never>;
78
- static ɵcmp: i0.ɵɵComponentDeclaration<CreateOrEditEntriesComponent, "cms-create-or-edit-entries", never, { "ParentQueryParams": { "alias": "ParentQueryParams"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; "parentEntrySelect": { "alias": "parentEntrySelect"; "required": false; }; }, {}, never, never, false, never>;
87
+ static ɵcmp: i0.ɵɵComponentDeclaration<CreateOrEditEntriesComponent, "cms-create-or-edit-entries", never, { "isEdit": { "alias": "isEdit"; "required": false; }; "ParentQueryParams": { "alias": "ParentQueryParams"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; "parentEntrySelect": { "alias": "parentEntrySelect"; "required": false; }; }, {}, never, never, false, never>;
79
88
  }
@@ -2,32 +2,34 @@ import { ToasterService } from '@abp/ng.theme.shared';
2
2
  import { ElementRef, OnInit } from '@angular/core';
3
3
  import { FormBuilder, FormGroup } from '@angular/forms';
4
4
  import { ActivatedRoute, Router } from '@angular/router';
5
- import { DatePipe, Location } from '@angular/common';
6
- import { SectionAdminService } from '../../../proxy/admin/sections';
7
- import { ConfigStateService, LocalizationService } from '@abp/ng.core';
5
+ import { Location } from '@angular/common';
6
+ import { LocalizationService } from '@abp/ng.core';
8
7
  import { EntryAdminService } from '../../../proxy/admin/entries';
8
+ import { CmsApiService } from '../../../services';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class CreateComponent implements OnInit {
11
11
  private fb;
12
12
  private toaster;
13
13
  _location: Location;
14
14
  private route;
15
- private configState;
16
- private _SectionAdminService;
17
15
  private _EntryAdminService;
18
- private datePipe;
19
16
  private _LocalizationService;
20
17
  private router;
21
- constructor(fb: FormBuilder, toaster: ToasterService, _location: Location, route: ActivatedRoute, configState: ConfigStateService, _SectionAdminService: SectionAdminService, _EntryAdminService: EntryAdminService, datePipe: DatePipe, _LocalizationService: LocalizationService, router: Router);
18
+ private _CmsApiService;
19
+ constructor(fb: FormBuilder, toaster: ToasterService, _location: Location, route: ActivatedRoute, _EntryAdminService: EntryAdminService, _LocalizationService: LocalizationService, router: Router, _CmsApiService: CmsApiService);
22
20
  /**表单实体 */
23
21
  newEntity: FormGroup | undefined;
24
22
  /**是否是草稿 */
25
23
  draftType: boolean;
26
24
  /**页面传值用于传递到子组件 */
27
25
  queryParams: any;
26
+ /**指定id的条目信息 */
27
+ entrySelect: any;
28
28
  /**获取提交按钮替身,用于真实触发表单提交 */
29
29
  submitclick: ElementRef;
30
30
  ngOnInit(): Promise<void>;
31
+ /**获取条目信息 */
32
+ getEntrySelect(): Promise<unknown>;
31
33
  /**保存 */
32
34
  save(draft: any): void;
33
35
  /**触发点击按钮替身 */
@@ -2,23 +2,21 @@ import { ToasterService } from '@abp/ng.theme.shared';
2
2
  import { ElementRef, OnInit } from '@angular/core';
3
3
  import { FormBuilder, FormGroup } from '@angular/forms';
4
4
  import { ActivatedRoute, Router } from '@angular/router';
5
- import { DatePipe, Location } from '@angular/common';
6
- import { SectionAdminService } from '../../../proxy/admin/sections';
7
- import { ConfigStateService, LocalizationService } from '@abp/ng.core';
5
+ import { Location } from '@angular/common';
6
+ import { LocalizationService } from '@abp/ng.core';
8
7
  import { EntryAdminService } from '../../../proxy/admin/entries';
8
+ import { CmsApiService } from '../../../services';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class EditComponent implements OnInit {
11
11
  private fb;
12
12
  private toaster;
13
13
  _location: Location;
14
14
  private route;
15
- private configState;
16
- private _SectionAdminService;
17
15
  private _EntryAdminService;
18
- private datePipe;
19
16
  private router;
20
17
  private _LocalizationService;
21
- constructor(fb: FormBuilder, toaster: ToasterService, _location: Location, route: ActivatedRoute, configState: ConfigStateService, _SectionAdminService: SectionAdminService, _EntryAdminService: EntryAdminService, datePipe: DatePipe, router: Router, _LocalizationService: LocalizationService);
18
+ private _CmsApiService;
19
+ constructor(fb: FormBuilder, toaster: ToasterService, _location: Location, route: ActivatedRoute, _EntryAdminService: EntryAdminService, router: Router, _LocalizationService: LocalizationService, _CmsApiService: CmsApiService);
22
20
  /**表单实体 */
23
21
  newEntity: FormGroup | undefined;
24
22
  /**是否是草稿 */
@@ -1,11 +1,13 @@
1
1
  import { ABP, ConfigStateService, ListService, LocalizationService, PagedResultDto } from '@abp/ng.core';
2
2
  import { ToasterService, ConfirmationService } from '@abp/ng.theme.shared';
3
3
  import { OnInit } from '@angular/core';
4
+ import { FormBuilder, FormGroup } from '@angular/forms';
4
5
  import { EntryAdminService, EntryDto, GetEntriesInput } from '../../../proxy/admin/entries';
5
6
  import { ColumnMode } from "@swimlane/ngx-datatable";
6
7
  import { SiteAdminService } from '../../../proxy/admin/sites';
7
8
  import { SectionAdminService } from '../../../proxy/admin/sections';
8
9
  import { Router } from '@angular/router';
10
+ import { CmsApiService } from '../../../services/cms-api.service';
9
11
  import * as i0 from "@angular/core";
10
12
  export declare class EntriesComponent implements OnInit {
11
13
  readonly list: ListService;
@@ -17,7 +19,9 @@ export declare class EntriesComponent implements OnInit {
17
19
  private configState;
18
20
  private router;
19
21
  private _LocalizationService;
20
- constructor(list: ListService, _EntryAdminService: EntryAdminService, _SiteAdminService: SiteAdminService, _SectionAdminService: SectionAdminService, toaster: ToasterService, confirmation: ConfirmationService, configState: ConfigStateService, router: Router, _LocalizationService: LocalizationService);
22
+ private _CmsApiService;
23
+ private fb;
24
+ constructor(list: ListService, _EntryAdminService: EntryAdminService, _SiteAdminService: SiteAdminService, _SectionAdminService: SectionAdminService, toaster: ToasterService, confirmation: ConfirmationService, configState: ConfigStateService, router: Router, _LocalizationService: LocalizationService, _CmsApiService: CmsApiService, fb: FormBuilder);
21
25
  ngOnInit(): void;
22
26
  /**站点列表 */
23
27
  siteList: any[any];
@@ -33,6 +37,12 @@ export declare class EntriesComponent implements OnInit {
33
37
  _entryStatusOptions: ABP.Option<typeof import("../../../proxy/entries").EntryStatus>[];
34
38
  /**获取页面数据 */
35
39
  getPageDate(): Promise<void>;
40
+ /**切换站点 */
41
+ siteIdChange(): Promise<void>;
42
+ /**切换板块 */
43
+ sectionIdChange(): Promise<void>;
44
+ /**切换语言 */
45
+ cultureChange(): Promise<void>;
36
46
  /**获取站点列表 */
37
47
  getsiteList(): Promise<unknown>;
38
48
  /**获取站点下的版块 */
@@ -41,18 +51,14 @@ export declare class EntriesComponent implements OnInit {
41
51
  getSectionOfEntryType(): void;
42
52
  /**获取版块下的语言列表 */
43
53
  getSectionLanguagesList(): Promise<unknown>;
44
- /**切换站点 */
45
- siteIdChange(): Promise<void>;
46
- /**切换版块 */
47
- sectionIdChange(): Promise<void>;
48
- /**切换语言 */
49
- cultureChange(): void;
54
+ resetData(): void;
50
55
  /**新增-单个 */
51
56
  createEntriesBtn(): void;
52
57
  /**列表相关 */
53
58
  ColumnMode: typeof ColumnMode;
54
59
  data: PagedResultDto<EntryDto>;
55
60
  filters: GetEntriesInput;
61
+ filtersForm: FormGroup;
56
62
  hookToQuery(): void;
57
63
  /**删除条目 */
58
64
  deletefield(row: any): void;
@@ -4,6 +4,7 @@ import { ToasterService } from '@abp/ng.theme.shared';
4
4
  import { FieldAdminService } from '../../../proxy/admin/fields';
5
5
  import { Location } from '@angular/common';
6
6
  import { LocalizationService } from '@abp/ng.core';
7
+ import { CmsApiService } from '../../../services';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class CreateFieldComponent {
9
10
  private fb;
@@ -11,7 +12,8 @@ export declare class CreateFieldComponent {
11
12
  private toaster;
12
13
  _location: Location;
13
14
  _LocalizationService: LocalizationService;
14
- constructor(fb: FormBuilder, _FieldAdminService: FieldAdminService, toaster: ToasterService, _location: Location, _LocalizationService: LocalizationService);
15
+ _CmsApiService: CmsApiService;
16
+ constructor(fb: FormBuilder, _FieldAdminService: FieldAdminService, toaster: ToasterService, _location: Location, _LocalizationService: LocalizationService, _CmsApiService: CmsApiService);
15
17
  /**表单实体 */
16
18
  newEntity: FormGroup | undefined;
17
19
  /**获取提交按钮替身,用于真实触发表单提交 */
@@ -6,6 +6,7 @@ import { FieldAdminService } from '../../../proxy/admin/fields';
6
6
  import { ToasterService } from '@abp/ng.theme.shared';
7
7
  import { Location } from '@angular/common';
8
8
  import { LocalizationService } from '@abp/ng.core';
9
+ import { CmsApiService } from '../../../services';
9
10
  import * as i0 from "@angular/core";
10
11
  export declare class EditFieldComponent implements OnInit {
11
12
  private fb;
@@ -15,7 +16,8 @@ export declare class EditFieldComponent implements OnInit {
15
16
  private toaster;
16
17
  _location: Location;
17
18
  _LocalizationService: LocalizationService;
18
- constructor(fb: FormBuilder, _FieldAbstractsService: FieldAbstractsService, _FieldAdminService: FieldAdminService, route: ActivatedRoute, toaster: ToasterService, _location: Location, _LocalizationService: LocalizationService);
19
+ _CmsApiService: CmsApiService;
20
+ constructor(fb: FormBuilder, _FieldAbstractsService: FieldAbstractsService, _FieldAdminService: FieldAdminService, route: ActivatedRoute, toaster: ToasterService, _location: Location, _LocalizationService: LocalizationService, _CmsApiService: CmsApiService);
19
21
  /**表单实体 */
20
22
  newEntity: FormGroup | undefined;
21
23
  /**字段id */
@@ -4,6 +4,7 @@ import { OnInit } from '@angular/core';
4
4
  import { Router } from '@angular/router';
5
5
  import { FieldAdminService, FieldDto, GetFieldsInput } from '../../../proxy/admin/fields';
6
6
  import { ColumnMode } from "@swimlane/ngx-datatable";
7
+ import { CmsApiService } from '../../../services';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class FieldsComponent implements OnInit {
9
10
  readonly list: ListService;
@@ -12,7 +13,8 @@ export declare class FieldsComponent implements OnInit {
12
13
  private confirmation;
13
14
  private _LocalizationService;
14
15
  private router;
15
- constructor(list: ListService, _FieldAdminService: FieldAdminService, toaster: ToasterService, confirmation: ConfirmationService, _LocalizationService: LocalizationService, router: Router);
16
+ private _CmsApiService;
17
+ constructor(list: ListService, _FieldAdminService: FieldAdminService, toaster: ToasterService, confirmation: ConfirmationService, _LocalizationService: LocalizationService, router: Router, _CmsApiService: CmsApiService);
16
18
  /**表格单元格布局类型 */
17
19
  ColumnMode: typeof ColumnMode;
18
20
  /**表格数据 */
@@ -1,2 +1,2 @@
1
- declare const _default: "\n// /* 垂直滚动条样式 */\n// /* 宽度 */\n// ::-webkit-scrollbar {\n// width: 8px;\n// height: 8px;\n// }\n// /* 背景色 */\n// ::-webkit-scrollbar-track {\n// background-color: #f5f5f5;\n// }\n// /* 滑块颜色 */\n// ::-webkit-scrollbar-thumb {\n// background-color: #c1c1c1;\n \n// border-radius: 50px;\n// }\n\n.lpx-content-container .lpx-content {\n min-height: calc(100vh - 34px);\n padding: 1.25em 2em 1.25em;\n}\n\n";
1
+ declare const _default: "\n// /* 垂直滚动条样式 */\n// /* 宽度 */\n// ::-webkit-scrollbar {\n// width: 8px;\n// height: 8px;\n// }\n// /* 背景色 */\n// ::-webkit-scrollbar-track {\n// background-color: #f5f5f5;\n// }\n// /* 滑块颜色 */\n// ::-webkit-scrollbar-thumb {\n// background-color: #c1c1c1;\n \n// border-radius: 50px;\n// }\n\n.lpx-content-container .lpx-content {\n min-height: calc(100vh - 34px);\n padding: 1.25em 2em 1.25em;\n}\n\nh1,h2,h3,h4,h5,h6{\n color: inherit;\n}\n.lpx-settings .lpx-context-menu {\n overflow: auto; \n}\n\n";
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { CreateEntryInput, EntryDto, EntryTypeExistsInput, GetEntriesInput, MoveEntryInput, SlugExistsInput, UpdateEntryInput } from './models';
1
+ import type { CreateEntryInput, CultureExistWithSingleSectionInput, EntryDto, GetEntriesInput, MoveEntryInput, SlugExistsInput, UpdateEntryInput } from './models';
2
2
  import { RestService, Rest } from '@abp/ng.core';
3
3
  import type { ListResultDto, PagedResultDto } from '@abp/ng.core';
4
4
  import * as i0 from "@angular/core";
@@ -8,7 +8,7 @@ export declare class EntryAdminService {
8
8
  activate: (id: string, config?: Partial<Rest.Config>) => import("rxjs").Observable<void>;
9
9
  create: (input: CreateEntryInput, config?: Partial<Rest.Config>) => import("rxjs").Observable<EntryDto>;
10
10
  delete: (id: string, config?: Partial<Rest.Config>) => import("rxjs").Observable<void>;
11
- entryTypeExists: (input: EntryTypeExistsInput, config?: Partial<Rest.Config>) => import("rxjs").Observable<boolean>;
11
+ cultureExistWithSingleSection: (input: CultureExistWithSingleSectionInput, config?: Partial<Rest.Config>) => import("rxjs").Observable<boolean>;
12
12
  get: (id: string, config?: Partial<Rest.Config>) => import("rxjs").Observable<EntryDto>;
13
13
  getAllVersions: (id: string, config?: Partial<Rest.Config>) => import("rxjs").Observable<ListResultDto<EntryDto>>;
14
14
  getList: (input: GetEntriesInput, config?: Partial<Rest.Config>) => import("rxjs").Observable<PagedResultDto<EntryDto>>;
@@ -36,6 +36,11 @@ export interface EntryTypeExistsInput {
36
36
  sectionId: string;
37
37
  entryTypeId: string;
38
38
  }
39
+ export interface CultureExistWithSingleSectionInput {
40
+ culture: string;
41
+ sectionId: string;
42
+ entryTypeId: string;
43
+ }
39
44
  export interface GetEntriesInput extends PagedAndSortedResultRequestDto {
40
45
  culture: string;
41
46
  sectionId: string;
@@ -1,13 +1,17 @@
1
+ import { Title } from '@angular/platform-browser';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class CmsApiService {
3
- constructor();
4
+ private titleService;
5
+ constructor(titleService: Title);
6
+ /**动态设置浏览器标题 */
7
+ setBrowserTitle(title: string): void;
4
8
  /**
5
9
  * 识别中文转化为拼音,固定返回类型
6
10
  * 汉字转拼音
7
11
  * 大写转小写
8
12
  *
9
13
  * */
10
- chineseToPinyin(value: string): string;
14
+ chineseToPinyin(value: any): any;
11
15
  /**
12
16
  * 深拷贝--方法 */
13
17
  deepClone(obj: any): any;
@@ -0,0 +1,11 @@
1
+ import { RouteReuseStrategy, ActivatedRouteSnapshot, DetachedRouteHandle } from '@angular/router';
2
+ export declare class SimpleReuseStrategy implements RouteReuseStrategy {
3
+ handlers: {
4
+ [key: string]: DetachedRouteHandle;
5
+ };
6
+ shouldDetach(route: ActivatedRouteSnapshot): boolean;
7
+ store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle): void;
8
+ shouldAttach(route: ActivatedRouteSnapshot): boolean;
9
+ retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle | null;
10
+ shouldReuseRoute(future: ActivatedRouteSnapshot, current: ActivatedRouteSnapshot): boolean;
11
+ }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dignite-ng/expand.cms",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.2.0",
6
6
  "@angular/core": "^16.2.0",
7
7
  "pinyin-pro": "^3.19.6",
8
- "@dignite-ng/expand.dynamic-form": "^0.0.4",
9
- "@dignite-ng/expand.file-explorer": "^0.0.4"
8
+ "@dignite-ng/expand.dynamic-form": "^0.0.5",
9
+ "@dignite-ng/expand.file-explorer": "^0.0.5"
10
10
  },
11
11
  "dependencies": {
12
12
  "tslib": "^2.3.0"