@dignite-ng/expand.cms 0.0.57 → 2.0.0-rc.1

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 (29) hide show
  1. package/config/components/domains/domains.component.d.ts +2 -1
  2. package/esm2022/config/components/domains/domains.component.mjs +26 -19
  3. package/esm2022/config/components/site-language/site-language.component.mjs +4 -3
  4. package/esm2022/lib/cms-routing.module.mjs +1 -1
  5. package/esm2022/lib/cms.module.mjs +5 -2
  6. package/esm2022/lib/components/admin/entries/create.component.mjs +4 -4
  7. package/esm2022/lib/components/admin/entries/entries.component.mjs +3 -3
  8. package/esm2022/lib/components/admin/fields/create-field.component.mjs +6 -8
  9. package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +3 -3
  10. package/esm2022/lib/components/admin/fields/edit-field.component.mjs +11 -9
  11. package/esm2022/lib/components/admin/sections/create-or-edit-sections-modal.component.mjs +210 -0
  12. package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +4 -9
  13. package/esm2022/lib/components/admin/sections/sections.component.mjs +32 -193
  14. package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +3 -3
  15. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +3 -3
  16. package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +3 -3
  17. package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +3 -3
  18. package/esm2022/lib/resolvers/page-default-toolbar-actions.mjs +2 -2
  19. package/fesm2022/dignite-ng-expand.cms-config.mjs +26 -19
  20. package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -1
  21. package/fesm2022/dignite-ng-expand.cms.mjs +251 -218
  22. package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -1
  23. package/lib/cms.module.d.ts +12 -11
  24. package/lib/components/admin/fields/create-field.component.d.ts +1 -1
  25. package/lib/components/admin/fields/edit-field.component.d.ts +1 -1
  26. package/lib/components/admin/sections/create-or-edit-sections-modal.component.d.ts +49 -0
  27. package/lib/components/admin/sections/create-or-update-sections-input-base.d.ts +4 -1
  28. package/lib/components/admin/sections/sections.component.d.ts +17 -36
  29. package/package.json +1 -1
@@ -17,20 +17,21 @@ import * as i14 from "./components/dynamic-form/matrix/matrix-config.component";
17
17
  import * as i15 from "./components/dynamic-form/matrix/matrix-control.component";
18
18
  import * as i16 from "./components/dynamic-form/entry/entry-config.component";
19
19
  import * as i17 from "./components/dynamic-form/entry/entry-control.component";
20
- import * as i18 from "@abp/ng.core";
21
- import * as i19 from "@abp/ng.theme.shared";
22
- import * as i20 from "@angular/forms";
23
- import * as i21 from "./cms-routing.module";
24
- import * as i22 from "@ng-bootstrap/ng-bootstrap";
25
- import * as i23 from "@abp/ng.components/page";
26
- import * as i24 from "ng-zorro-antd/select";
27
- import * as i25 from "@dignite-ng/expand.dynamic-form";
28
- import * as i26 from "@abp/ng.components/extensible";
29
- import * as i27 from "@dignite-ng/expand.core";
20
+ import * as i18 from "./components/admin/sections/create-or-edit-sections-modal.component";
21
+ import * as i19 from "@abp/ng.core";
22
+ import * as i20 from "@abp/ng.theme.shared";
23
+ import * as i21 from "@angular/forms";
24
+ import * as i22 from "./cms-routing.module";
25
+ import * as i23 from "@ng-bootstrap/ng-bootstrap";
26
+ import * as i24 from "@abp/ng.components/page";
27
+ import * as i25 from "ng-zorro-antd/select";
28
+ import * as i26 from "@dignite-ng/expand.dynamic-form";
29
+ import * as i27 from "@abp/ng.components/extensible";
30
+ import * as i28 from "@dignite-ng/expand.core";
30
31
  export declare class CmsModule {
31
32
  static forChild(options?: any): ModuleWithProviders<CmsModule>;
32
33
  static forLazy(options?: any): NgModuleFactory<CmsModule>;
33
34
  static ɵfac: i0.ɵɵFactoryDeclaration<CmsModule, never>;
34
- static ɵmod: i0.ɵɵNgModuleDeclaration<CmsModule, [typeof i1.EntriesComponent, typeof i2.FieldsComponent, typeof i3.SectionsComponent, typeof i4.FieldGroupComponent, typeof i5.CreateFieldComponent, typeof i6.EditFieldComponent, typeof i7.CreateOrEditFieldComponent, typeof i8.CreateOrEditComponent, typeof i9.CreateComponent, typeof i10.EditComponent, typeof i11.CreateOrEditEntriesComponent, typeof i12.TableConfigComponent, typeof i13.TableControlComponent, typeof i14.MatrixConfigComponent, typeof i15.MatrixControlComponent, typeof i16.EntryConfigComponent, typeof i17.EntryControlComponent], [typeof i18.CoreModule, typeof i19.ThemeSharedModule, typeof i20.FormsModule, typeof i21.CmsRoutingModule, typeof i22.NgbNavModule, typeof i22.NgbAccordionModule, typeof i22.NgbDropdownModule, typeof i23.PageModule, typeof i24.NzSelectModule, typeof i25.DynamicFormModule, typeof i26.ExtensibleModule, typeof i27.KeydownPreventDefaultDirective], [typeof i12.TableConfigComponent, typeof i13.TableControlComponent, typeof i14.MatrixConfigComponent, typeof i15.MatrixControlComponent, typeof i16.EntryConfigComponent, typeof i17.EntryControlComponent]>;
35
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CmsModule, [typeof i1.EntriesComponent, typeof i2.FieldsComponent, typeof i3.SectionsComponent, typeof i4.FieldGroupComponent, typeof i5.CreateFieldComponent, typeof i6.EditFieldComponent, typeof i7.CreateOrEditFieldComponent, typeof i8.CreateOrEditComponent, typeof i9.CreateComponent, typeof i10.EditComponent, typeof i11.CreateOrEditEntriesComponent, typeof i12.TableConfigComponent, typeof i13.TableControlComponent, typeof i14.MatrixConfigComponent, typeof i15.MatrixControlComponent, typeof i16.EntryConfigComponent, typeof i17.EntryControlComponent, typeof i18.CreateOrEditSectionsModalComponent], [typeof i19.CoreModule, typeof i20.ThemeSharedModule, typeof i21.FormsModule, typeof i22.CmsRoutingModule, typeof i23.NgbNavModule, typeof i23.NgbAccordionModule, typeof i23.NgbDropdownModule, typeof i24.PageModule, typeof i25.NzSelectModule, typeof i26.DynamicFormModule, typeof i27.ExtensibleModule, typeof i28.KeydownPreventDefaultDirective], [typeof i12.TableConfigComponent, typeof i13.TableControlComponent, typeof i14.MatrixConfigComponent, typeof i15.MatrixControlComponent, typeof i16.EntryConfigComponent, typeof i17.EntryControlComponent]>;
35
36
  static ɵinj: i0.ɵɵInjectorDeclaration<CmsModule>;
36
37
  }
@@ -31,7 +31,7 @@ export declare class CreateFieldComponent {
31
31
  */
32
32
  formValidation: any;
33
33
  /**保存表单 */
34
- save(): boolean;
34
+ save(): void;
35
35
  static ɵfac: i0.ɵɵFactoryDeclaration<CreateFieldComponent, never>;
36
36
  static ɵcmp: i0.ɵɵComponentDeclaration<CreateFieldComponent, "cms-create-field", never, {}, {}, never, never, false, never>;
37
37
  }
@@ -40,7 +40,7 @@ export declare class EditFieldComponent implements OnInit {
40
40
  /**触发提交按钮 */
41
41
  submitclickBtn(): void;
42
42
  /**保存表单 */
43
- save(): boolean;
43
+ save(): void;
44
44
  static ɵfac: i0.ɵɵFactoryDeclaration<EditFieldComponent, never>;
45
45
  static ɵcmp: i0.ɵɵComponentDeclaration<EditFieldComponent, "cms-edit-field", never, {}, {}, never, never, false, never>;
46
46
  }
@@ -0,0 +1,49 @@
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
+ import { AbstractControl, FormControl, FormGroup, ValidationErrors, ValidatorFn } from '@angular/forms';
3
+ import { SectionType } from '../../../proxy/sections';
4
+ import { Observable } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class CreateOrEditSectionsModalComponent {
7
+ private _LocalizationService;
8
+ private toaster;
9
+ private _ValidatorsService;
10
+ private _UpdateListService;
11
+ private _SectionAdminService;
12
+ private _CmsApiService;
13
+ _SectionType: typeof SectionType;
14
+ _sectionTypeOptions: import("@abp/ng.core").ABP.Option<typeof SectionType>[];
15
+ /**表单验证状态 */
16
+ formValidation: any;
17
+ /**模态框-状态-是否打开 */
18
+ ModalOpen: boolean;
19
+ set visible(v: boolean);
20
+ /**模态框-繁忙状态-用于确定模态的繁忙状态是否为真 */
21
+ ModalBusy: boolean;
22
+ /**初始值 */
23
+ selected: any;
24
+ /**模态框-表单 */
25
+ ModalForm: FormGroup | undefined;
26
+ set formEntity(v: FormGroup | undefined);
27
+ get idInput(): FormControl;
28
+ get displayNameInput(): FormControl;
29
+ get nameInput(): FormControl;
30
+ get routeInput(): FormControl;
31
+ get templateInput(): FormControl;
32
+ get typeInput(): FormControl;
33
+ radiochange(): void;
34
+ /**模态框-表单--控件模板-动态赋值表单控件 */
35
+ ModalFormSubmit: ElementRef;
36
+ visibleChange: EventEmitter<any>;
37
+ /**模态框-状态改变回调 */
38
+ ModalVisibleChange(event: any): void;
39
+ /**保存 */
40
+ save(): void;
41
+ reset(): void;
42
+ disPlayNameInputBlur(event: any): void;
43
+ setAsyncValidatorsFn(): void;
44
+ forbiddenNameValidator(): ValidatorFn;
45
+ nameRepetitionAsyncValidator(): (ctrl: AbstractControl) => Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
46
+ routeRepetitionAsyncValidator(): (ctrl: AbstractControl) => Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<CreateOrEditSectionsModalComponent, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<CreateOrEditSectionsModalComponent, "cms-create-or-edit-sections-modal", never, { "visible": { "alias": "visible"; "required": false; }; "formEntity": { "alias": "formEntity"; "required": false; }; }, { "visibleChange": "visibleChange"; }, never, never, false, never>;
49
+ }
@@ -1,4 +1,6 @@
1
+ import { Validators } from "@angular/forms";
1
2
  export declare class CreateOrUpdateSectionsInputBase {
3
+ id: string | Validators[];
2
4
  /**版块类型 */
3
5
  type: any;
4
6
  /**字段名称 Display name of this field */
@@ -13,5 +15,6 @@ export declare class CreateOrUpdateSectionsInputBase {
13
15
  isDefault: any;
14
16
  /**是否激活 */
15
17
  isActive: any;
16
- constructor(data?: CreateOrUpdateSectionsInputBase);
18
+ concurrencyStamp: string | Validators[];
19
+ constructor();
17
20
  }
@@ -1,12 +1,11 @@
1
1
  import { ABP, ListService, LocalizationService, PagedResultDto } from '@abp/ng.core';
2
- import { ElementRef, OnInit } from '@angular/core';
2
+ import { OnInit } from '@angular/core';
3
3
  import { ToasterService, ConfirmationService } from '@abp/ng.theme.shared';
4
- import { AbstractControl, FormBuilder, FormGroup, ValidationErrors, ValidatorFn } from '@angular/forms';
4
+ import { FormBuilder, FormGroup } from '@angular/forms';
5
5
  import { SectionAdminService, EntryTypeAdminService, GetSectionsInput, SectionDto } from '../../../proxy/admin/sections';
6
6
  import { CmsApiService } from '../../../services';
7
7
  import { ColumnMode } from '@swimlane/ngx-datatable';
8
8
  import { SectionType } from '../../../proxy/sections';
9
- import { Observable } from 'rxjs';
10
9
  import * as i0 from "@angular/core";
11
10
  export declare class SectionsComponent implements OnInit {
12
11
  readonly list: ListService;
@@ -20,46 +19,28 @@ export declare class SectionsComponent implements OnInit {
20
19
  constructor(list: ListService, _SectionAdminService: SectionAdminService, toaster: ToasterService, confirmation: ConfirmationService, fb: FormBuilder, _EntryTypeAdminService: EntryTypeAdminService, _LocalizationService: LocalizationService, _CmsApiService: CmsApiService);
21
20
  private _UpdateListService;
22
21
  siteList: any[];
22
+ _SectionType: typeof SectionType;
23
+ _sectionTypeOptions: ABP.Option<typeof SectionType>[];
23
24
  ColumnMode: typeof ColumnMode;
24
25
  data: PagedResultDto<SectionDto>;
25
26
  filters: GetSectionsInput;
26
27
  hookToQuery(): void;
27
28
  ngOnInit(): Promise<void>;
28
29
  siteIdChange(): void;
29
- visibleOpen: boolean;
30
- modalBusy: boolean;
31
- createOrEditForm: FormGroup | undefined;
32
- selected: any;
33
- _SectionType: typeof SectionType;
34
- _sectionTypeOptions: ABP.Option<typeof SectionType>[];
35
- createOrEditModalSubmitBtn: ElementRef;
36
- VisibleChange(event: any): void;
37
- createSectionBtn(): void;
38
- editSectionBtn(row: any): void;
39
- deleteEntryType(row: any): void;
40
- isSubmit: boolean;
41
- createOrEditSave(): void;
42
- private _ValidatorsService;
43
- /**表单验证状态
44
- * {
45
- * title:true,
46
- * }
47
- */
48
- formValidation: any;
49
- createSave(): boolean;
50
- EditSave(): void;
30
+ /**表单 */
31
+ formEntity: FormGroup | undefined;
32
+ /**弹窗状态 */
33
+ isVisibleOpen: boolean;
34
+ /**弹窗回调 */
35
+ visibleChange(event: any): void;
36
+ /**创建 */
37
+ createBtn(): void;
38
+ /**编辑 */
39
+ editSectionBtn(item: any): void;
40
+ /**删除板块 */
51
41
  deletefield(row: any): void;
52
- get displayNameInput(): AbstractControl<any, any>;
53
- get nameInput(): AbstractControl<any, any>;
54
- get routeInput(): AbstractControl<any, any>;
55
- get templateInput(): AbstractControl<any, any>;
56
- get typeInput(): AbstractControl<any, any>;
57
- radiochange(): void;
58
- disPlayNameInputBlur(event: any): void;
59
- setAsyncValidatorsFn(): void;
60
- forbiddenNameValidator(): ValidatorFn;
61
- nameRepetitionAsyncValidator(): (ctrl: AbstractControl) => Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
62
- routeRepetitionAsyncValidator(): (ctrl: AbstractControl) => Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
42
+ /**删除条目类型 */
43
+ deleteEntryType(row: any): void;
63
44
  static ɵfac: i0.ɵɵFactoryDeclaration<SectionsComponent, never>;
64
45
  static ɵcmp: i0.ɵɵComponentDeclaration<SectionsComponent, "cms-sections", never, {}, {}, never, never, false, never>;
65
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dignite-ng/expand.cms",
3
- "version": "0.0.57",
3
+ "version": "2.0.0-rc.01",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~18.1.0",
6
6
  "@angular/core": "~18.1.0"