@dignite-ng/expand.cms 3.0.0-rc.48 → 3.0.0-rc.50
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/config/providers/route.provider.d.ts +2 -3
- package/esm2022/config/providers/route.provider.mjs +3 -4
- package/esm2022/lib/cms-routing.module.mjs +3 -3
- package/esm2022/lib/cms.module.mjs +4 -4
- package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +18 -16
- package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +9 -1
- package/esm2022/lib/components/admin/entries/create.component.mjs +25 -63
- package/esm2022/lib/components/admin/entries/edit.component.mjs +28 -14
- package/esm2022/lib/components/admin/entries/entries.component.mjs +11 -16
- package/esm2022/lib/components/admin/fields/create-field.component.mjs +54 -54
- package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +44 -69
- package/esm2022/lib/components/admin/fields/edit-field.component.mjs +130 -73
- package/esm2022/lib/components/admin/fields/fields-form-config.mjs +50 -0
- package/esm2022/lib/components/admin/fields/fields-group.component.mjs +128 -0
- package/esm2022/lib/components/admin/fields/fields.component.mjs +61 -57
- package/esm2022/lib/components/admin/fields/index.mjs +3 -3
- package/esm2022/lib/components/admin/sections/create-or-edit-sections-modal.component.mjs +17 -15
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +59 -86
- package/esm2022/lib/components/admin/sections/sections.component.mjs +11 -14
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +32 -23
- package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +26 -11
- package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +50 -26
- package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +10 -10
- package/esm2022/lib/components/dynamic-form/table/table-view.component.mjs +3 -2
- package/esm2022/lib/resolvers/page-default-toolbar-actions.mjs +42 -37
- package/esm2022/lib/resolvers/table-default-entity-props.mjs +4 -4
- package/esm2022/lib/services/fields-data.service.mjs +100 -0
- package/esm2022/lib/services/form-controls.service.mjs +12 -10
- package/esm2022/lib/services/index.mjs +3 -4
- package/esm2022/lib/services/keys-convert-to-lowercase.service.mjs +40 -0
- package/fesm2022/dignite-ng-expand.cms-config.mjs +2 -3
- package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -1
- package/fesm2022/dignite-ng-expand.cms.mjs +811 -784
- package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -1
- package/lib/cms.module.d.ts +2 -2
- package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +3 -1
- package/lib/components/admin/entries/create-or-update-entry-input-base.d.ts +8 -0
- package/lib/components/admin/entries/create.component.d.ts +1 -2
- package/lib/components/admin/entries/edit.component.d.ts +1 -2
- package/lib/components/admin/entries/entries.component.d.ts +2 -1
- package/lib/components/admin/fields/create-field.component.d.ts +19 -22
- package/lib/components/admin/fields/create-or-edit-field.component.d.ts +20 -26
- package/lib/components/admin/fields/edit-field.component.d.ts +24 -30
- package/lib/components/admin/fields/fields-form-config.d.ts +19 -0
- package/lib/components/admin/fields/fields-group.component.d.ts +48 -0
- package/lib/components/admin/fields/fields.component.d.ts +18 -16
- package/lib/components/admin/fields/index.d.ts +1 -2
- package/lib/components/admin/sections/create-or-edit-sections-modal.component.d.ts +4 -1
- package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +14 -9
- package/lib/components/admin/sections/sections.component.d.ts +1 -3
- package/lib/components/dynamic-form/matrix/matrix-config.component.d.ts +10 -4
- package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +7 -3
- package/lib/components/dynamic-form/table/table-config.component.d.ts +15 -5
- package/lib/components/dynamic-form/table/table-control.component.d.ts +3 -3
- package/lib/components/dynamic-form/table/table-view.component.d.ts +2 -1
- package/lib/resolvers/page-default-toolbar-actions.d.ts +9 -6
- package/lib/services/fields-data.service.d.ts +45 -0
- package/lib/services/form-controls.service.d.ts +3 -1
- package/lib/services/index.d.ts +2 -3
- package/lib/services/keys-convert-to-lowercase.service.d.ts +16 -0
- package/package.json +1 -1
- package/esm2022/lib/components/admin/fields/create-or-update-field-input-base.mjs +0 -18
- package/esm2022/lib/components/admin/fields/field-group.component.mjs +0 -144
- package/esm2022/lib/constants/styles.mjs +0 -19
- package/esm2022/lib/services/appent-content.mjs +0 -15
- package/esm2022/lib/services/cms-api.service.mjs +0 -94
- package/esm2022/lib/services/cms.service.mjs +0 -22
- package/esm2022/lib/services/field-abstracts.service.mjs +0 -48
- package/lib/components/admin/fields/create-or-update-field-input-base.d.ts +0 -15
- package/lib/components/admin/fields/field-group.component.d.ts +0 -58
- package/lib/constants/styles.d.ts +0 -2
- package/lib/services/appent-content.d.ts +0 -1
- package/lib/services/cms-api.service.d.ts +0 -23
- package/lib/services/cms.service.d.ts +0 -10
- package/lib/services/field-abstracts.service.d.ts +0 -20
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FormGroup } from '@angular/forms';
|
|
2
|
-
export declare class CreateOrUpdateFieldInputBase {
|
|
3
|
-
/**分组id */
|
|
4
|
-
groupId: any;
|
|
5
|
-
/**字段名称 Display name of this field */
|
|
6
|
-
displayName: any;
|
|
7
|
-
/**字段唯一名称 Unique Name*/
|
|
8
|
-
name: any;
|
|
9
|
-
/**描述 说明 */
|
|
10
|
-
description: any;
|
|
11
|
-
/**FieldType字段类型 表单控件名称 */
|
|
12
|
-
formControlName: any;
|
|
13
|
-
/**动态表单配置 */
|
|
14
|
-
formConfiguration: FormGroup | undefined;
|
|
15
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import { ConfirmationService, ToasterService } from '@abp/ng.theme.shared';
|
|
4
|
-
import { FieldAbstractsService } from '../../../services/field-abstracts.service';
|
|
5
|
-
import { LocalizationService } from '@abp/ng.core';
|
|
6
|
-
import { FieldGroupAdminService } from '../../../proxy/dignite/cms/admin/fields';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class FieldGroupComponent implements OnInit {
|
|
9
|
-
private fb;
|
|
10
|
-
private _FieldGroupAdminService;
|
|
11
|
-
private toaster;
|
|
12
|
-
private confirmation;
|
|
13
|
-
_FieldAbstractsService: FieldAbstractsService;
|
|
14
|
-
_LocalizationService: LocalizationService;
|
|
15
|
-
constructor(fb: FormBuilder, _FieldGroupAdminService: FieldGroupAdminService, toaster: ToasterService, confirmation: ConfirmationService, _FieldAbstractsService: FieldAbstractsService, _LocalizationService: LocalizationService);
|
|
16
|
-
/**创建分组表单 */
|
|
17
|
-
createForm: FormGroup | undefined;
|
|
18
|
-
/** 编辑分组表单*/
|
|
19
|
-
editGroupForm: FormGroup | undefined;
|
|
20
|
-
/**表单已存在的值 */
|
|
21
|
-
selected: any;
|
|
22
|
-
/**选择的字段分组id */
|
|
23
|
-
fieldGroupId: string | undefined;
|
|
24
|
-
/**创建分组模态框状态 */
|
|
25
|
-
createGroupOpen: boolean;
|
|
26
|
-
/**用于确定模态的繁忙状态是否为真 */
|
|
27
|
-
modalBusy: boolean | any;
|
|
28
|
-
/**编辑分组模态框状态 */
|
|
29
|
-
editGroupOpen: boolean | any;
|
|
30
|
-
/**点击分组回调 */
|
|
31
|
-
OnGroupClickBack: EventEmitter<any>;
|
|
32
|
-
ngOnInit(): void;
|
|
33
|
-
/**创建字段分组 */
|
|
34
|
-
createGroupBtn(): void;
|
|
35
|
-
/**创建分组模态框状态改变 */
|
|
36
|
-
createGroupVisibleChange(event: any): void;
|
|
37
|
-
/**编辑字段分组 */
|
|
38
|
-
editGroupBtn(itemName: string): void;
|
|
39
|
-
/**编辑分组模态框状态改变 */
|
|
40
|
-
editGroupVisibleChange(event: any): void;
|
|
41
|
-
private _ValidatorsService;
|
|
42
|
-
/**表单验证状态
|
|
43
|
-
* {
|
|
44
|
-
* title:true,
|
|
45
|
-
* }
|
|
46
|
-
*/
|
|
47
|
-
formValidation: any;
|
|
48
|
-
/**创建字段分组保存 */
|
|
49
|
-
createSave(): void;
|
|
50
|
-
/**编辑字段分组保存 */
|
|
51
|
-
editSave(): void;
|
|
52
|
-
/**删除字段分组1 */
|
|
53
|
-
deleteGroupbtn(fieldGroupitem: any): void;
|
|
54
|
-
/**字段分组改变 */
|
|
55
|
-
fieldGroupChange(event: any): void;
|
|
56
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FieldGroupComponent, never>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldGroupComponent, "cms-field-group", never, {}, { "OnGroupClickBack": "OnGroupClickBack"; }, never, never, false, never>;
|
|
58
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "\n.lpx-content-container .lpx-content{min-height:calc(100vh - 34px);padding:1.25em 2em 1.25em}h1,h2,h3,h4,h5,h6{color:inherit}.lpx-settings .lpx-context-menu{overflow:auto}\na {\n text-decoration: unset;\n}\n\n\n// :root select{\n// cursor: pointer; /* this will show the pointer when hovering */\n// } \n// .cdk-global-overlay-wrapper, .cdk-overlay-container {pointer-events: none;top: 0;left: 0;height: 100%;width: 100% }.cdk-overlay-container {position: fixed;z-index: 1000 }.cdk-overlay-container:empty {display: none }.cdk-global-overlay-wrapper, .cdk-overlay-connected-position-bounding-box, .cdk-overlay-pane {position: absolute;z-index: 1000;display: flex }.cdk-overlay-pane {pointer-events: auto;box-sizing: border-box;max-width: 100%;max-height: 100% }.cdk-overlay-backdrop {position: absolute;top: 0;bottom: 0;left: 0;right: 0;z-index: 1000;pointer-events: auto;transition: opacity .4s cubic-bezier(.25, .8, .25, 1);opacity: 0 }.cdk-overlay-backdrop.cdk-overlay-backdrop-showing {opacity: 1 }.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing {opacity: .6 }.cdk-overlay-dark-backdrop {background: rgba(0, 0, 0, .32) }.cdk-overlay-transparent-backdrop {transition: visibility 1ms linear, opacity 1ms linear;visibility: hidden;opacity: 1 }.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing {opacity: 0;visibility: visible }.cdk-overlay-backdrop-noop-animation {transition: none }.cdk-overlay-connected-position-bounding-box {flex-direction: column;min-width: 1px;min-height: 1px }.cdk-global-scrollblock {position: fixed;width: 100%;overflow-y: scroll }.cdk-visually-hidden {border: 0;clip: rect(0 0 0 0);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;outline: 0;-webkit-appearance: none;-moz-appearance: none }.nz-overlay-transparent-backdrop, .nz-overlay-transparent-backdrop.cdk-overlay-backdrop-showing {opacity: 0 }.ant-select, .ant-select-dropdown {margin: 0;line-height: 1.5715;box-sizing: border-box;font-feature-settings: 'tnum';list-style: none }.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottom, .ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomLeft, .ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomRight, .ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottom, .ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomLeft, .ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomRight, .ant-select-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-select-dropdown-placement-bottomLeft, .ant-select-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-select-dropdown-placement-bottomLeft {animation-name: antSlideUpIn }.ant-select-dropdown.ant-select-tree-dropdown {top: 100%;left: 0;position: relative;width: 100%;margin-top: 4px;margin-bottom: 4px;overflow: auto }.ant-select-dropdown-hidden, .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-delete, .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-eye, .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info::before {display: none }.ant-select-dropdown {top: 100%;left: 0;position: relative;width: 100%;margin-top: 4px;margin-bottom: 4px;display: block }.ant-select-dropdown .cdk-virtual-scroll-content-wrapper {right: 0 }.ant-select-dropdown .full-width {contain: initial }.ant-select-dropdown .full-width .cdk-virtual-scroll-content-wrapper {position: static }.ant-select-dropdown .full-width .cdk-virtual-scroll-spacer {position: absolute;top: 0;width: 1px }.ant-select-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-select-dropdown-placement-topLeft, .ant-select-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-select-dropdown-placement-topLeft {animation-name: antSlideDownIn }.ant-select-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-select-dropdown-placement-bottomLeft {animation-name: antSlideUpOut }.ant-select-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-select-dropdown-placement-topLeft {animation-name: antSlideDownOut }\n\n/*** 表单验证样式 start */\n.was-validated .form-control:invalid, .form-control.is-invalid{\n border-color: #c00d49 !important;\n}\n/*** 表单验证样式 end */\n";
|
|
2
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function appentStyle(): void;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class CmsApiService {
|
|
3
|
-
constructor();
|
|
4
|
-
/**
|
|
5
|
-
* 识别中文转化为拼音,固定返回类型
|
|
6
|
-
* 汉字转拼音
|
|
7
|
-
* 大写转小写
|
|
8
|
-
*
|
|
9
|
-
* */
|
|
10
|
-
chineseToPinyin(value: any): any;
|
|
11
|
-
/**
|
|
12
|
-
* 深拷贝--方法 */
|
|
13
|
-
deepClone(obj: any): any;
|
|
14
|
-
/**
|
|
15
|
-
* 递归将对象属性名首字母转为小写
|
|
16
|
-
* @param obj 需要处理的对象或数组
|
|
17
|
-
* @param isInsideFormConfig 标记是否在 FormConfiguration 内部
|
|
18
|
-
* @returns 处理后的新对象
|
|
19
|
-
*/
|
|
20
|
-
convertKeysToCamelCase(obj: any, isInsideFormConfig?: boolean): any;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CmsApiService, never>;
|
|
22
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CmsApiService>;
|
|
23
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { RestService } from '@abp/ng.core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CmsService {
|
|
4
|
-
private restService;
|
|
5
|
-
apiName: string;
|
|
6
|
-
constructor(restService: RestService);
|
|
7
|
-
sample(): import("rxjs").Observable<any>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CmsService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CmsService>;
|
|
10
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FieldGroupAdminService, FieldGroupDto } from '../proxy/dignite/cms/admin/fields';
|
|
2
|
-
import { FormAdminService } from '../proxy/dignite/cms/admin/dynamic-forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FieldAbstractsService {
|
|
5
|
-
private _FieldGroupAdminService;
|
|
6
|
-
private _FormAdminService;
|
|
7
|
-
constructor(_FieldGroupAdminService: FieldGroupAdminService, _FormAdminService: FormAdminService);
|
|
8
|
-
/**字段分组列表 */
|
|
9
|
-
fieldGroupList: FieldGroupDto[];
|
|
10
|
-
/**获取字段分组列表 */
|
|
11
|
-
getfieldGroupList(): Promise<unknown>;
|
|
12
|
-
/**表单控件类型 */
|
|
13
|
-
fromControlList: any[];
|
|
14
|
-
/**获取表单控件类型 */
|
|
15
|
-
getFromControlList(): Promise<unknown>;
|
|
16
|
-
/**获取排除指定控件类型的表单控件类型 */
|
|
17
|
-
getExcludeAssignControl(typeName?: any): any[];
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FieldAbstractsService, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FieldAbstractsService>;
|
|
20
|
-
}
|