@dignite-ng/expand.cms 0.0.58 → 2.0.0-rc.10
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/ng-package.json +6 -0
- package/config/src/cms-config.module.ts +13 -0
- package/config/{enums/index.d.ts → src/enums/index.ts} +1 -1
- package/config/src/enums/route-names.ts +7 -0
- package/config/{providers/index.d.ts → src/providers/index.ts} +1 -1
- package/config/src/providers/route.provider.ts +68 -0
- package/config/{public-api.d.ts → src/public-api.ts} +3 -3
- package/ng-package.json +10 -0
- package/package.json +7 -22
- package/src/lib/cms-routing.module.ts +102 -0
- package/src/lib/cms.module.ts +113 -0
- package/src/lib/components/admin/entries/create-or-edit-entries.component.html +137 -0
- package/src/lib/components/admin/entries/create-or-edit-entries.component.scss +0 -0
- package/src/lib/components/admin/entries/create-or-edit-entries.component.spec.ts +21 -0
- package/src/lib/components/admin/entries/create-or-edit-entries.component.ts +216 -0
- package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +26 -0
- package/src/lib/components/admin/entries/create.component.html +16 -0
- package/src/lib/components/admin/entries/create.component.scss +0 -0
- package/src/lib/components/admin/entries/create.component.spec.ts +21 -0
- package/src/lib/components/admin/entries/create.component.ts +130 -0
- package/src/lib/components/admin/entries/edit.component.html +9 -0
- package/src/lib/components/admin/entries/edit.component.scss +0 -0
- package/src/lib/components/admin/entries/edit.component.spec.ts +21 -0
- package/src/lib/components/admin/entries/edit.component.ts +134 -0
- package/src/lib/components/admin/entries/entries.component.html +225 -0
- package/src/lib/components/admin/entries/entries.component.scss +109 -0
- package/src/lib/components/admin/entries/entries.component.spec.ts +21 -0
- package/src/lib/components/admin/entries/entries.component.ts +394 -0
- package/src/lib/components/admin/entries/index.ts +4 -0
- package/src/lib/components/admin/fields/create-field.component.html +12 -0
- package/src/lib/components/admin/fields/create-field.component.scss +1 -0
- package/src/lib/components/admin/fields/create-field.component.spec.ts +21 -0
- package/src/lib/components/admin/fields/create-field.component.ts +85 -0
- package/src/lib/components/admin/fields/create-or-edit-field.component.html +39 -0
- package/src/lib/components/admin/fields/create-or-edit-field.component.scss +0 -0
- package/src/lib/components/admin/fields/create-or-edit-field.component.spec.ts +21 -0
- package/src/lib/components/admin/fields/create-or-edit-field.component.ts +140 -0
- package/src/lib/components/admin/fields/create-or-update-field-input-base.ts +33 -0
- package/src/lib/components/admin/fields/edit-field.component.html +14 -0
- package/src/lib/components/admin/fields/edit-field.component.scss +0 -0
- package/src/lib/components/admin/fields/edit-field.component.spec.ts +21 -0
- package/src/lib/components/admin/fields/edit-field.component.ts +112 -0
- package/src/lib/components/admin/fields/field-group.component.html +69 -0
- package/src/lib/components/admin/fields/field-group.component.scss +0 -0
- package/src/lib/components/admin/fields/field-group.component.spec.ts +21 -0
- package/src/lib/components/admin/fields/field-group.component.ts +151 -0
- package/src/lib/components/admin/fields/fields.component.html +25 -0
- package/src/lib/components/admin/fields/fields.component.scss +1 -0
- package/src/lib/components/admin/fields/fields.component.spec.ts +21 -0
- package/src/lib/components/admin/fields/fields.component.ts +109 -0
- package/src/lib/components/admin/fields/index.ts +6 -0
- package/src/lib/components/admin/index.ts +3 -0
- package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.html +81 -0
- package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.scss +0 -0
- package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.spec.ts +23 -0
- package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.ts +239 -0
- package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +23 -0
- package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts +52 -0
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.html +195 -0
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.scss +1 -0
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.spec.ts +21 -0
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.ts +442 -0
- package/src/lib/components/admin/sections/entry-types/index.ts +2 -0
- package/src/lib/components/admin/sections/index.ts +3 -0
- package/src/lib/components/admin/sections/sections.component.html +189 -0
- package/src/lib/components/admin/sections/sections.component.scss +1 -0
- package/src/lib/components/admin/sections/sections.component.spec.ts +21 -0
- package/src/lib/components/admin/sections/sections.component.ts +136 -0
- package/src/lib/components/dynamic-form/entry/entry-config.component.html +26 -0
- package/src/lib/components/dynamic-form/entry/entry-config.component.scss +27 -0
- package/src/lib/components/dynamic-form/entry/entry-config.component.spec.ts +21 -0
- package/src/lib/components/dynamic-form/entry/entry-config.component.ts +119 -0
- package/src/lib/components/dynamic-form/entry/entry-config.ts +22 -0
- package/src/lib/components/dynamic-form/entry/entry-control.component.html +25 -0
- package/src/lib/components/dynamic-form/entry/entry-control.component.scss +35 -0
- package/src/lib/components/dynamic-form/entry/entry-control.component.spec.ts +21 -0
- package/src/lib/components/dynamic-form/entry/entry-control.component.ts +111 -0
- package/src/lib/components/dynamic-form/entry/index.ts +3 -0
- package/src/lib/components/dynamic-form/form-control-group.ts +27 -0
- package/src/lib/components/dynamic-form/index.ts +4 -0
- package/src/lib/components/dynamic-form/matrix/index.ts +3 -0
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.html +148 -0
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.scss +0 -0
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.spec.ts +21 -0
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.ts +244 -0
- package/src/lib/components/dynamic-form/matrix/matrix-config.ts +63 -0
- package/src/lib/components/dynamic-form/matrix/matrix-control.component.html +42 -0
- package/src/lib/components/dynamic-form/matrix/matrix-control.component.scss +0 -0
- package/src/lib/components/dynamic-form/matrix/matrix-control.component.spec.ts +21 -0
- package/src/lib/components/dynamic-form/matrix/matrix-control.component.ts +118 -0
- package/src/lib/components/dynamic-form/table/index.ts +3 -0
- package/src/lib/components/dynamic-form/table/table-config.component.html +85 -0
- package/src/lib/components/dynamic-form/table/table-config.component.scss +10 -0
- package/src/lib/components/dynamic-form/table/table-config.component.spec.ts +21 -0
- package/src/lib/components/dynamic-form/table/table-config.component.ts +177 -0
- package/src/lib/components/dynamic-form/table/table-config.ts +45 -0
- package/src/lib/components/dynamic-form/table/table-control.component.html +54 -0
- package/src/lib/components/dynamic-form/table/table-control.component.scss +1 -0
- package/src/lib/components/dynamic-form/table/table-control.component.spec.ts +21 -0
- package/src/lib/components/dynamic-form/table/table-control.component.ts +127 -0
- package/src/lib/components/index.ts +2 -0
- package/src/lib/constants/index.ts +1 -0
- package/src/lib/constants/styles.ts +18 -0
- package/src/lib/enums/ecms-component.ts +11 -0
- package/src/lib/enums/index.ts +1 -0
- package/src/lib/proxy/README.md +17 -0
- package/src/lib/proxy/dignite/abp/data/index.ts +1 -0
- package/src/lib/proxy/dignite/abp/data/models.ts +4 -0
- package/src/lib/proxy/dignite/abp/index.ts +3 -0
- package/src/lib/proxy/dignite/abp/regionalization-management/index.ts +2 -0
- package/src/lib/proxy/dignite/abp/regionalization-management/models.ts +10 -0
- package/src/lib/proxy/dignite/abp/regionalization-management/regionalization.service.ts +29 -0
- package/src/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.ts +20 -0
- package/src/lib/proxy/dignite/cms/admin/dynamic-forms/models.ts +6 -0
- package/src/lib/proxy/dignite/cms/admin/entries/entry-admin.service.ts +109 -0
- package/src/lib/proxy/dignite/cms/admin/entries/models.ts +69 -0
- package/src/lib/proxy/dignite/cms/admin/fields/field-admin.service.ts +64 -0
- package/src/lib/proxy/dignite/cms/admin/fields/field-group-admin.service.ts +56 -0
- package/src/lib/proxy/dignite/cms/admin/fields/models.ts +42 -0
- package/src/lib/proxy/dignite/cms/admin/index.ts +5 -0
- package/src/lib/proxy/dignite/cms/admin/sections/entry-type-admin.service.ts +55 -0
- package/{lib/proxy/admin/sections/models.d.ts → src/lib/proxy/dignite/cms/admin/sections/models.ts} +82 -67
- package/src/lib/proxy/dignite/cms/admin/sections/section-admin.service.ts +74 -0
- package/src/lib/proxy/dignite/cms/entries/entry-status.enum.ts +8 -0
- package/src/lib/proxy/dignite/cms/fields/index.ts +1 -0
- package/src/lib/proxy/dignite/cms/fields/models.ts +9 -0
- package/src/lib/proxy/dignite/cms/index.ts +5 -0
- package/src/lib/proxy/dignite/cms/sections/models.ts +15 -0
- package/src/lib/proxy/dignite/cms/sections/section-type.enum.ts +9 -0
- package/src/lib/proxy/dignite/index.ts +3 -0
- package/src/lib/proxy/generate-proxy.json +54593 -0
- package/src/lib/proxy/index.ts +3 -0
- package/src/lib/proxy/volo/cms-kit/index.ts +2 -0
- package/src/lib/proxy/volo/cms-kit/users/index.ts +1 -0
- package/{lib/proxy/volo/cms-kit/users/models.d.ts → src/lib/proxy/volo/cms-kit/users/models.ts} +8 -7
- package/src/lib/proxy/volo/index.ts +2 -0
- package/src/lib/resolvers/extensions-props-action-token.resolver.ts +182 -0
- package/src/lib/resolvers/page-default-toolbar-actions.ts +173 -0
- package/src/lib/resolvers/table-default-entity-actions.ts +29 -0
- package/src/lib/resolvers/table-default-entity-props.ts +62 -0
- package/src/lib/services/appent-content.ts +13 -0
- package/src/lib/services/cms-api.service.ts +90 -0
- package/src/lib/services/cms.service.ts +18 -0
- package/src/lib/services/field-abstracts.service.ts +39 -0
- package/src/lib/services/index.ts +3 -0
- package/src/lib/services/validator.ts +10 -0
- package/src/public-api.ts +7 -0
- package/src/test.ts +26 -0
- package/tsconfig.lib.json +16 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/config/cms-config.module.d.ts +0 -8
- package/config/components/domains/domains.component.d.ts +0 -31
- package/config/components/site-language/site-language.component.d.ts +0 -30
- package/config/enums/route-names.d.ts +0 -8
- package/config/index.d.ts +0 -5
- package/config/providers/route.provider.d.ts +0 -9
- package/config/proxy/admin/domains/domain-admin.service.d.ts +0 -13
- package/config/proxy/admin/domains/index.d.ts +0 -2
- package/config/proxy/admin/domains/models.d.ts +0 -7
- package/config/proxy/dignite/cms/admin/sites/index.d.ts +0 -2
- package/config/proxy/dignite/cms/admin/sites/models.d.ts +0 -4
- package/config/proxy/dignite/cms/admin/sites/site-admin.service.d.ts +0 -13
- package/config/proxy/dignite/cms/sites/models.d.ts +0 -4
- package/esm2022/config/cms-config.module.mjs +0 -18
- package/esm2022/config/components/domains/domains.component.mjs +0 -118
- package/esm2022/config/components/site-language/site-language.component.mjs +0 -113
- package/esm2022/config/dignite-ng-expand.cms-config.mjs +0 -5
- package/esm2022/config/enums/index.mjs +0 -2
- package/esm2022/config/enums/route-names.mjs +0 -10
- package/esm2022/config/providers/index.mjs +0 -2
- package/esm2022/config/providers/route.provider.mjs +0 -74
- package/esm2022/config/proxy/admin/domains/domain-admin.service.mjs +0 -32
- package/esm2022/config/proxy/admin/domains/index.mjs +0 -3
- package/esm2022/config/proxy/admin/domains/models.mjs +0 -2
- package/esm2022/config/proxy/dignite/cms/admin/sites/index.mjs +0 -3
- package/esm2022/config/proxy/dignite/cms/admin/sites/models.mjs +0 -2
- package/esm2022/config/proxy/dignite/cms/admin/sites/site-admin.service.mjs +0 -27
- package/esm2022/config/proxy/dignite/cms/sites/models.mjs +0 -2
- package/esm2022/config/public-api.mjs +0 -4
- package/esm2022/dignite-ng-expand.cms.mjs +0 -5
- package/esm2022/lib/cms-routing.module.mjs +0 -94
- package/esm2022/lib/cms.module.mjs +0 -139
- package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +0 -226
- package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +0 -25
- package/esm2022/lib/components/admin/entries/create.component.mjs +0 -136
- package/esm2022/lib/components/admin/entries/edit.component.mjs +0 -138
- package/esm2022/lib/components/admin/entries/entries.component.mjs +0 -203
- package/esm2022/lib/components/admin/entries/index.mjs +0 -5
- package/esm2022/lib/components/admin/fields/create-field.component.mjs +0 -87
- package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +0 -120
- package/esm2022/lib/components/admin/fields/create-or-update-field-input-base.mjs +0 -25
- package/esm2022/lib/components/admin/fields/edit-field.component.mjs +0 -109
- package/esm2022/lib/components/admin/fields/field-group.component.mjs +0 -131
- package/esm2022/lib/components/admin/fields/fields.component.mjs +0 -108
- package/esm2022/lib/components/admin/fields/index.mjs +0 -7
- package/esm2022/lib/components/admin/index.mjs +0 -4
- package/esm2022/lib/components/admin/sections/create-or-edit-sections-modal.component.mjs +0 -210
- package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +0 -22
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +0 -71
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +0 -404
- package/esm2022/lib/components/admin/sections/entry-types/index.mjs +0 -3
- package/esm2022/lib/components/admin/sections/index.mjs +0 -4
- package/esm2022/lib/components/admin/sections/sections.component.mjs +0 -138
- package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +0 -114
- package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +0 -18
- package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +0 -101
- package/esm2022/lib/components/dynamic-form/entry/index.mjs +0 -4
- package/esm2022/lib/components/dynamic-form/form-control-group.mjs +0 -28
- package/esm2022/lib/components/dynamic-form/index.mjs +0 -5
- package/esm2022/lib/components/dynamic-form/matrix/index.mjs +0 -4
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +0 -212
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +0 -50
- package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +0 -94
- package/esm2022/lib/components/dynamic-form/table/index.mjs +0 -4
- package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +0 -151
- package/esm2022/lib/components/dynamic-form/table/table-config.mjs +0 -38
- package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +0 -105
- package/esm2022/lib/components/index.mjs +0 -3
- package/esm2022/lib/constants/styles.mjs +0 -19
- package/esm2022/lib/enums/ecms-component.mjs +0 -13
- package/esm2022/lib/enums/index.mjs +0 -2
- package/esm2022/lib/proxy/admin/dynamic-forms/form-admin.service.mjs +0 -22
- package/esm2022/lib/proxy/admin/dynamic-forms/index.mjs +0 -3
- package/esm2022/lib/proxy/admin/dynamic-forms/models.mjs +0 -2
- package/esm2022/lib/proxy/admin/entries/entry-admin.service.mjs +0 -70
- package/esm2022/lib/proxy/admin/entries/index.mjs +0 -3
- package/esm2022/lib/proxy/admin/entries/models.mjs +0 -2
- package/esm2022/lib/proxy/admin/fields/field-admin.service.mjs +0 -45
- package/esm2022/lib/proxy/admin/fields/field-group-admin.service.mjs +0 -41
- package/esm2022/lib/proxy/admin/fields/index.mjs +0 -4
- package/esm2022/lib/proxy/admin/fields/models.mjs +0 -2
- package/esm2022/lib/proxy/admin/sections/entry-type-admin.service.mjs +0 -41
- package/esm2022/lib/proxy/admin/sections/index.mjs +0 -4
- package/esm2022/lib/proxy/admin/sections/models.mjs +0 -2
- package/esm2022/lib/proxy/admin/sections/section-admin.service.mjs +0 -51
- package/esm2022/lib/proxy/admin/settings/index.mjs +0 -2
- package/esm2022/lib/proxy/admin/settings/site-settings-admin.service.mjs +0 -31
- package/esm2022/lib/proxy/dignite/abp/data/models.mjs +0 -2
- package/esm2022/lib/proxy/entries/entry-status.enum.mjs +0 -8
- package/esm2022/lib/proxy/entries/index.mjs +0 -2
- package/esm2022/lib/proxy/fields/models.mjs +0 -2
- package/esm2022/lib/proxy/sections/index.mjs +0 -3
- package/esm2022/lib/proxy/sections/models.mjs +0 -2
- package/esm2022/lib/proxy/sections/section-type.enum.mjs +0 -9
- package/esm2022/lib/proxy/settings/models.mjs +0 -2
- package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +0 -2
- package/esm2022/lib/resolvers/extensions-props-action-token.resolver.mjs +0 -136
- package/esm2022/lib/resolvers/page-default-toolbar-actions.mjs +0 -160
- package/esm2022/lib/resolvers/table-default-entity-actions.mjs +0 -49
- package/esm2022/lib/resolvers/table-default-entity-props.mjs +0 -53
- package/esm2022/lib/services/appent-content.mjs +0 -15
- package/esm2022/lib/services/cms-api.service.mjs +0 -70
- package/esm2022/lib/services/cms.service.mjs +0 -21
- package/esm2022/lib/services/field-abstracts.service.mjs +0 -42
- package/esm2022/lib/services/index.mjs +0 -4
- package/esm2022/public-api.mjs +0 -6
- package/fesm2022/dignite-ng-expand.cms-config.mjs +0 -371
- package/fesm2022/dignite-ng-expand.cms-config.mjs.map +0 -1
- package/fesm2022/dignite-ng-expand.cms.mjs +0 -3886
- package/fesm2022/dignite-ng-expand.cms.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/cms-routing.module.d.ts +0 -7
- package/lib/cms.module.d.ts +0 -37
- package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +0 -63
- package/lib/components/admin/entries/create-or-update-entry-input-base.d.ts +0 -23
- package/lib/components/admin/entries/create.component.d.ts +0 -50
- package/lib/components/admin/entries/edit.component.d.ts +0 -53
- package/lib/components/admin/entries/entries.component.d.ts +0 -67
- package/lib/components/admin/entries/index.d.ts +0 -4
- package/lib/components/admin/fields/create-field.component.d.ts +0 -37
- package/lib/components/admin/fields/create-or-edit-field.component.d.ts +0 -38
- package/lib/components/admin/fields/create-or-update-field-input-base.d.ts +0 -16
- package/lib/components/admin/fields/edit-field.component.d.ts +0 -46
- package/lib/components/admin/fields/field-group.component.d.ts +0 -58
- package/lib/components/admin/fields/fields.component.d.ts +0 -35
- package/lib/components/admin/fields/index.d.ts +0 -6
- package/lib/components/admin/index.d.ts +0 -3
- package/lib/components/admin/sections/create-or-edit-sections-modal.component.d.ts +0 -49
- package/lib/components/admin/sections/create-or-update-sections-input-base.d.ts +0 -20
- package/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.d.ts +0 -38
- package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +0 -139
- package/lib/components/admin/sections/entry-types/index.d.ts +0 -2
- package/lib/components/admin/sections/index.d.ts +0 -3
- package/lib/components/admin/sections/sections.component.d.ts +0 -46
- package/lib/components/dynamic-form/entry/entry-config.component.d.ts +0 -39
- package/lib/components/dynamic-form/entry/entry-config.d.ts +0 -9
- package/lib/components/dynamic-form/entry/entry-control.component.d.ts +0 -35
- package/lib/components/dynamic-form/entry/index.d.ts +0 -3
- package/lib/components/dynamic-form/form-control-group.d.ts +0 -4
- package/lib/components/dynamic-form/index.d.ts +0 -4
- package/lib/components/dynamic-form/matrix/index.d.ts +0 -3
- package/lib/components/dynamic-form/matrix/matrix-config.component.d.ts +0 -73
- package/lib/components/dynamic-form/matrix/matrix-config.d.ts +0 -24
- package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +0 -39
- package/lib/components/dynamic-form/table/index.d.ts +0 -3
- package/lib/components/dynamic-form/table/table-config.component.d.ts +0 -58
- package/lib/components/dynamic-form/table/table-config.d.ts +0 -18
- package/lib/components/dynamic-form/table/table-control.component.d.ts +0 -39
- package/lib/components/index.d.ts +0 -2
- package/lib/constants/styles.d.ts +0 -2
- package/lib/enums/ecms-component.d.ts +0 -11
- package/lib/enums/index.d.ts +0 -1
- package/lib/proxy/admin/dynamic-forms/form-admin.service.d.ts +0 -12
- package/lib/proxy/admin/dynamic-forms/models.d.ts +0 -4
- package/lib/proxy/admin/entries/entry-admin.service.d.ts +0 -22
- package/lib/proxy/admin/entries/models.d.ts +0 -60
- package/lib/proxy/admin/fields/field-admin.service.d.ts +0 -17
- package/lib/proxy/admin/fields/field-group-admin.service.d.ts +0 -16
- package/lib/proxy/admin/fields/models.d.ts +0 -34
- package/lib/proxy/admin/sections/entry-type-admin.service.d.ts +0 -15
- package/lib/proxy/admin/sections/section-admin.service.d.ts +0 -18
- package/lib/proxy/admin/settings/index.d.ts +0 -1
- package/lib/proxy/admin/settings/site-settings-admin.service.d.ts +0 -13
- package/lib/proxy/dignite/abp/data/models.d.ts +0 -3
- package/lib/proxy/entries/entry-status.enum.d.ts +0 -5
- package/lib/proxy/fields/models.d.ts +0 -8
- package/lib/proxy/sections/models.d.ts +0 -12
- package/lib/proxy/sections/section-type.enum.d.ts +0 -6
- package/lib/proxy/settings/models.d.ts +0 -5
- package/lib/resolvers/extensions-props-action-token.resolver.d.ts +0 -75
- package/lib/resolvers/page-default-toolbar-actions.d.ts +0 -18
- package/lib/resolvers/table-default-entity-actions.d.ts +0 -5
- package/lib/resolvers/table-default-entity-props.d.ts +0 -5
- package/lib/services/appent-content.d.ts +0 -1
- package/lib/services/cms-api.service.d.ts +0 -16
- package/lib/services/cms.service.d.ts +0 -10
- package/lib/services/field-abstracts.service.d.ts +0 -20
- package/lib/services/index.d.ts +0 -3
- package/public-api.d.ts +0 -2
- /package/{lib/proxy/admin/dynamic-forms/index.d.ts → src/lib/proxy/dignite/cms/admin/dynamic-forms/index.ts} +0 -0
- /package/{lib/proxy/admin/entries/index.d.ts → src/lib/proxy/dignite/cms/admin/entries/index.ts} +0 -0
- /package/{lib/proxy/admin/fields/index.d.ts → src/lib/proxy/dignite/cms/admin/fields/index.ts} +0 -0
- /package/{lib/proxy/admin/sections/index.d.ts → src/lib/proxy/dignite/cms/admin/sections/index.ts} +0 -0
- /package/{lib/proxy/entries/index.d.ts → src/lib/proxy/dignite/cms/entries/index.ts} +0 -0
- /package/{lib/proxy/sections/index.d.ts → src/lib/proxy/dignite/cms/sections/index.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './models';
|
package/{lib/proxy/volo/cms-kit/users/models.d.ts → src/lib/proxy/volo/cms-kit/users/models.ts}
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { ExtensibleEntityDto } from '@abp/ng.core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import type { ExtensibleEntityDto } from '@abp/ng.core';
|
|
2
|
+
|
|
3
|
+
export interface CmsUserDto extends ExtensibleEntityDto<string> {
|
|
4
|
+
tenantId?: string;
|
|
5
|
+
userName?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
surname?: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps } from "@abp/ng.components/extensible";
|
|
2
|
+
import { ConfigStateService } from "@abp/ng.core";
|
|
3
|
+
import { inject, InjectionToken } from "@angular/core";
|
|
4
|
+
import { ResolveFn } from "@angular/router";
|
|
5
|
+
import { map, tap } from "rxjs";
|
|
6
|
+
import { ECmsComponent } from "../enums";
|
|
7
|
+
import { Entries_Create_Defaults_Toolbar_Action, Entries_Defaults_Toolbar_Action, Entries_Edit_Defaults_Toolbar_Action, Fields_Create_Defaults_Toolbar_Action, Fields_Defaults_Toolbar_Action, Fields_Edit_Defaults_Toolbar_Action, Sections_Create_Or_Edit_Defaults_Toolbar_Action, Sections_Defaults_Toolbar_Action } from "./page-default-toolbar-actions";
|
|
8
|
+
import { Fields_Entity_Props } from "./table-default-entity-props";
|
|
9
|
+
import { Fields_Entity_Action } from "./table-default-entity-actions";
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**默认-实体-操作 */
|
|
17
|
+
export const Default_Entity_Actions = {
|
|
18
|
+
// [ModuleComponent.AbpTable]: Abp_Table_Entity_Action,
|
|
19
|
+
[ECmsComponent.Fields]: Fields_Entity_Action,
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/**默认实体属性-表格列名 */
|
|
23
|
+
export const Default_Entity_Props = {
|
|
24
|
+
// [PageName.Guides]: Guides_Entity_Props,
|
|
25
|
+
[ECmsComponent.Fields]: Fields_Entity_Props,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**默认-工具栏-操作 */
|
|
29
|
+
export const Default_Toolbar_Actions = {
|
|
30
|
+
// [ModuleComponent.Page]: Page_Toolbar_Action,
|
|
31
|
+
// [eCmsKitPageName.FaqQuestion]:FaqQuestion_Toolbar_Action
|
|
32
|
+
[ECmsComponent.Entries]: Entries_Defaults_Toolbar_Action,
|
|
33
|
+
[ECmsComponent.Entries_Create]: Entries_Create_Defaults_Toolbar_Action,
|
|
34
|
+
[ECmsComponent.Entries_Edit]: Entries_Edit_Defaults_Toolbar_Action,
|
|
35
|
+
[ECmsComponent.Fields]: Fields_Defaults_Toolbar_Action,
|
|
36
|
+
[ECmsComponent.FieldsCreate]: Fields_Create_Defaults_Toolbar_Action,
|
|
37
|
+
[ECmsComponent.FieldsEdit]: Fields_Edit_Defaults_Toolbar_Action,
|
|
38
|
+
[ECmsComponent.Sections]: Sections_Defaults_Toolbar_Action,
|
|
39
|
+
[ECmsComponent.SectionsCreateOrEdit]: Sections_Create_Or_Edit_Defaults_Toolbar_Action,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @param 在Extensions_Props_Action_Token_Resolver方法中使用
|
|
46
|
+
* @param 在.module.ts中使用,
|
|
47
|
+
export class CmsModule {
|
|
48
|
+
static forChild(options: any = {}): ModuleWithProviders<CmsModule> {
|
|
49
|
+
return {
|
|
50
|
+
ngModule: CmsModule,
|
|
51
|
+
providers: [
|
|
52
|
+
{
|
|
53
|
+
provide: Toolbar_Action_Contributors,
|
|
54
|
+
useValue: options.toolbarActionContributors,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
provide: Entity_Action_Contributors,
|
|
58
|
+
useValue: options.entityActionContributors,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
provide: Entity_Props_Contributors,
|
|
62
|
+
useValue: options.entityPropContributors,
|
|
63
|
+
},
|
|
64
|
+
]
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
static forLazy(options: any = {}): NgModuleFactory<CmsModule> {
|
|
68
|
+
return new LazyModuleFactory(CmsModule.forChild(options));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
*
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
/**实体-操作-贡献者 */
|
|
75
|
+
export const Entity_Action_Contributors =
|
|
76
|
+
new InjectionToken<any>('Entity_Action_Contributors');
|
|
77
|
+
|
|
78
|
+
/**实体-属性-贡献者 */
|
|
79
|
+
export const Entity_Props_Contributors =
|
|
80
|
+
new InjectionToken<any>('Entity_Props_Contributors');
|
|
81
|
+
|
|
82
|
+
export const Toolbar_Action_Contributors = new InjectionToken<any>(
|
|
83
|
+
'Toolbar_Action_Contributors'
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* 属性-操作-贡献者-解析器
|
|
88
|
+
*
|
|
89
|
+
* 用于放在-routing.module.ts路由守卫中
|
|
90
|
+
*
|
|
91
|
+
*
|
|
92
|
+
const routes: Routes = [
|
|
93
|
+
{
|
|
94
|
+
path: 'demo',
|
|
95
|
+
canActivate: [AuthGuard, PermissionGuard],
|
|
96
|
+
resolve: [Extensions_Props_Action_Token_Resolver],
|
|
97
|
+
children: []
|
|
98
|
+
},
|
|
99
|
+
]
|
|
100
|
+
*
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
export const Extensions_Props_Action_Token_Resolver: ResolveFn<any> = () => {
|
|
105
|
+
const configState = inject(ConfigStateService);
|
|
106
|
+
const extensions = inject(ExtensionsService);
|
|
107
|
+
|
|
108
|
+
const config = { optional: true };
|
|
109
|
+
|
|
110
|
+
const actionContributors = inject(Entity_Action_Contributors, config) || {};
|
|
111
|
+
const propContributors = inject(Entity_Props_Contributors, config) || {};
|
|
112
|
+
const toolbarContributors = inject(Toolbar_Action_Contributors, config) || {};
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
return getObjectExtensionEntitiesFromStore(configState, 'TenantManagement').pipe(
|
|
116
|
+
map(entities => ({
|
|
117
|
+
// [ModuleComponent.AbpTable]: entities.Tenant,
|
|
118
|
+
})),
|
|
119
|
+
mapEntitiesToContributors(configState, 'TenantManagement'),
|
|
120
|
+
tap(objectExtensionContributors => {
|
|
121
|
+
//actions
|
|
122
|
+
mergeWithDefaultActions(
|
|
123
|
+
extensions.entityActions,
|
|
124
|
+
Default_Entity_Actions,
|
|
125
|
+
actionContributors,
|
|
126
|
+
);
|
|
127
|
+
//props
|
|
128
|
+
mergeWithDefaultProps(
|
|
129
|
+
extensions.entityProps,
|
|
130
|
+
Default_Entity_Props,
|
|
131
|
+
objectExtensionContributors.prop,
|
|
132
|
+
propContributors,
|
|
133
|
+
);
|
|
134
|
+
//Toolbar
|
|
135
|
+
mergeWithDefaultActions(
|
|
136
|
+
extensions.toolbarActions,
|
|
137
|
+
Default_Toolbar_Actions,
|
|
138
|
+
toolbarContributors
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
}),
|
|
142
|
+
);
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
// /**
|
|
147
|
+
// * @deprecated Use `tenantManagementExtensions_Props_Action_Token_Resolver` *function* instead.
|
|
148
|
+
// */
|
|
149
|
+
// @Injectable()
|
|
150
|
+
// export class TenantManagementExtensionsGuard implements IAbpGuard {
|
|
151
|
+
// protected readonly configState = inject(ConfigStateService);
|
|
152
|
+
// protected readonly extensions = inject(ExtensionsService);
|
|
153
|
+
|
|
154
|
+
// canActivate(): Observable<boolean> {
|
|
155
|
+
// const config = { optional: true };
|
|
156
|
+
|
|
157
|
+
// const actionContributors = inject(TENANT_MANAGEMENT_Entity_Action_Contributors, config) || {};
|
|
158
|
+
// const propContributors = inject(TENANT_MANAGEMENT_Entity_Props_Contributors, config) || {};
|
|
159
|
+
|
|
160
|
+
// return getObjectExtensionEntitiesFromStore(this.configState, 'TenantManagement').pipe(
|
|
161
|
+
// map(entities => ({
|
|
162
|
+
// // [eTenantManagementComponents.Tenants]: entities.Tenant,
|
|
163
|
+
// })),
|
|
164
|
+
// mapEntitiesToContributors(this.configState, 'TenantManagement'),
|
|
165
|
+
// tap(objectExtensionContributors => {
|
|
166
|
+
// mergeWithDefaultActions(
|
|
167
|
+
// this.extensions.entityActions,
|
|
168
|
+
// DEFAULT_TENANT_MANAGEMENT_ENTITY_ACTIONS,
|
|
169
|
+
// actionContributors,
|
|
170
|
+
// );
|
|
171
|
+
// mergeWithDefaultProps(
|
|
172
|
+
// this.extensions.entityProps,
|
|
173
|
+
// DEFAULT_TENANT_MANAGEMENT_ENTITY_PROPS,
|
|
174
|
+
// objectExtensionContributors.prop,
|
|
175
|
+
// propContributors,
|
|
176
|
+
// );
|
|
177
|
+
// }),
|
|
178
|
+
// map(() => true),
|
|
179
|
+
// );
|
|
180
|
+
// }
|
|
181
|
+
// }
|
|
182
|
+
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { ToolbarAction } from '@abp/ng.components/extensible';
|
|
2
|
+
import {
|
|
3
|
+
SectionsComponent,
|
|
4
|
+
CreateOrEditComponent,
|
|
5
|
+
FieldsComponent,
|
|
6
|
+
CreateFieldComponent,
|
|
7
|
+
EditFieldComponent,
|
|
8
|
+
EntriesComponent,
|
|
9
|
+
CreateComponent,
|
|
10
|
+
EditComponent,
|
|
11
|
+
} from '../components';
|
|
12
|
+
|
|
13
|
+
/**版块 */
|
|
14
|
+
export const Sections_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
15
|
+
{
|
|
16
|
+
text: 'Cms::New',
|
|
17
|
+
action: data => {
|
|
18
|
+
const component = data.getInjected(SectionsComponent);
|
|
19
|
+
component.createBtn();
|
|
20
|
+
},
|
|
21
|
+
btnClass: '',
|
|
22
|
+
permission: 'CmsAdmin.Entry.Create',
|
|
23
|
+
icon: 'fa fa-plus',
|
|
24
|
+
},
|
|
25
|
+
]);
|
|
26
|
+
/**版块-创建-编辑 */
|
|
27
|
+
export const Sections_Create_Or_Edit_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
28
|
+
{
|
|
29
|
+
text: 'AbpUi::Save',
|
|
30
|
+
action: data => {
|
|
31
|
+
const component = data.getInjected(CreateOrEditComponent);
|
|
32
|
+
component.submitclickBtn();
|
|
33
|
+
},
|
|
34
|
+
btnClass: '',
|
|
35
|
+
permission: 'CmsAdmin.Entry.Create',
|
|
36
|
+
icon: 'fas fa-save',
|
|
37
|
+
},
|
|
38
|
+
]);
|
|
39
|
+
/**站点 */
|
|
40
|
+
// export const Sites_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
41
|
+
// {
|
|
42
|
+
// text: 'Cms::New',
|
|
43
|
+
// action: data => {
|
|
44
|
+
// const component = data.getInjected(SitesComponent);
|
|
45
|
+
// // component.createSitesBtn();
|
|
46
|
+
// },
|
|
47
|
+
// btnClass: '',
|
|
48
|
+
// permission: 'CmsAdmin.Entry.Create',
|
|
49
|
+
// icon: 'fa fa-plus',
|
|
50
|
+
// },
|
|
51
|
+
// ]);
|
|
52
|
+
/**字段 */
|
|
53
|
+
export const Fields_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
54
|
+
{
|
|
55
|
+
text: 'Cms::New',
|
|
56
|
+
action: data => {
|
|
57
|
+
const component = data.getInjected(FieldsComponent);
|
|
58
|
+
component.toFieldsCreateBtn();
|
|
59
|
+
},
|
|
60
|
+
btnClass: '',
|
|
61
|
+
permission: 'CmsAdmin.Entry.Create',
|
|
62
|
+
icon: 'fa fa-plus',
|
|
63
|
+
},
|
|
64
|
+
]);
|
|
65
|
+
/**字段-创建 */
|
|
66
|
+
export const Fields_Create_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
67
|
+
{
|
|
68
|
+
text: 'AbpUi::Save',
|
|
69
|
+
action: data => {
|
|
70
|
+
const component = data.getInjected(CreateFieldComponent);
|
|
71
|
+
component.submitclickBtn();
|
|
72
|
+
},
|
|
73
|
+
btnClass: '',
|
|
74
|
+
permission: 'CmsAdmin.Entry.Create',
|
|
75
|
+
icon: 'fas fa-save',
|
|
76
|
+
},
|
|
77
|
+
]);
|
|
78
|
+
/**字段-创建 */
|
|
79
|
+
export const Fields_Edit_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
80
|
+
{
|
|
81
|
+
text: 'AbpUi::Save',
|
|
82
|
+
action: data => {
|
|
83
|
+
const component = data.getInjected(EditFieldComponent);
|
|
84
|
+
component.submitclickBtn();
|
|
85
|
+
},
|
|
86
|
+
btnClass: '',
|
|
87
|
+
permission: 'CmsAdmin.Entry.Create',
|
|
88
|
+
icon: 'fas fa-save',
|
|
89
|
+
},
|
|
90
|
+
]);
|
|
91
|
+
|
|
92
|
+
/**条目 */
|
|
93
|
+
export const Entries_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
94
|
+
{
|
|
95
|
+
text: 'Cms::New',
|
|
96
|
+
action: data => {
|
|
97
|
+
const component = data.getInjected(EntriesComponent);
|
|
98
|
+
component.createEntriesBtn();
|
|
99
|
+
},
|
|
100
|
+
btnClass: '',
|
|
101
|
+
permission: 'CmsAdmin.Entry.Create',
|
|
102
|
+
icon: 'fa fa-plus',
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
]);
|
|
106
|
+
/**条目-创建 */
|
|
107
|
+
export const Entries_Create_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
108
|
+
{
|
|
109
|
+
text: 'AbpUi::Cancel',
|
|
110
|
+
action: data => {
|
|
111
|
+
const component = data.getInjected(CreateComponent);
|
|
112
|
+
component.backTo();
|
|
113
|
+
},
|
|
114
|
+
btnClass: 'btn btn-light btn-sm',
|
|
115
|
+
permission: 'CmsAdmin.Entry.Create',
|
|
116
|
+
icon: '',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
text: 'AbpUi::Save',
|
|
120
|
+
action: data => {
|
|
121
|
+
const component = data.getInjected(CreateComponent);
|
|
122
|
+
component.clickSubmit(true);
|
|
123
|
+
},
|
|
124
|
+
btnClass: 'btn btn-info btn-sm',
|
|
125
|
+
permission: 'CmsAdmin.Entry.Create',
|
|
126
|
+
icon: 'fas fa-save',
|
|
127
|
+
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
text: 'Cms::Publish',
|
|
131
|
+
action: data => {
|
|
132
|
+
const component = data.getInjected(CreateComponent);
|
|
133
|
+
component.clickSubmit(false);
|
|
134
|
+
},
|
|
135
|
+
btnClass: '',
|
|
136
|
+
permission: 'CmsAdmin.Entry.Create',
|
|
137
|
+
icon: 'fa fa-paper-plane',
|
|
138
|
+
|
|
139
|
+
},
|
|
140
|
+
]);
|
|
141
|
+
/**条目编辑 */
|
|
142
|
+
export const Entries_Edit_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
143
|
+
{
|
|
144
|
+
text: 'AbpUi::Cancel',
|
|
145
|
+
action: data => {
|
|
146
|
+
const component = data.getInjected(EditComponent);
|
|
147
|
+
component.backTo();
|
|
148
|
+
},
|
|
149
|
+
btnClass: 'btn btn-light btn-sm',
|
|
150
|
+
permission: 'CmsAdmin.Entry.Create',
|
|
151
|
+
icon: '',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
text: 'AbpUi::Save',
|
|
155
|
+
action: data => {
|
|
156
|
+
const component = data.getInjected(EditComponent);
|
|
157
|
+
component.clickSubmit(true);
|
|
158
|
+
},
|
|
159
|
+
btnClass: 'btn btn-info btn-sm',
|
|
160
|
+
permission: 'CmsAdmin.Entry.Create',
|
|
161
|
+
icon: 'fas fa-save',
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
text: 'Cms::Publish',
|
|
165
|
+
action: data => {
|
|
166
|
+
const component = data.getInjected(EditComponent);
|
|
167
|
+
component.clickSubmit(false);
|
|
168
|
+
},
|
|
169
|
+
btnClass: '',
|
|
170
|
+
permission: 'CmsAdmin.Entry.Create',
|
|
171
|
+
icon: 'fa fa-paper-plane',
|
|
172
|
+
},
|
|
173
|
+
]);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EntityAction } from "@abp/ng.components/extensible";
|
|
2
|
+
import { FieldsComponent } from "../components";
|
|
3
|
+
import { Router } from "@angular/router";
|
|
4
|
+
// import { AbpTableComponent } from "../view/table/abp-table.component";
|
|
5
|
+
|
|
6
|
+
// [PageName.Area]:Area_Entity_Action,
|
|
7
|
+
/**
|
|
8
|
+
[ECmsComponent.Fields]: Fields_Entity_Action,
|
|
9
|
+
*/
|
|
10
|
+
export const Fields_Entity_Action = EntityAction.createMany<any>([
|
|
11
|
+
{
|
|
12
|
+
text: 'AbpUi::Edit',
|
|
13
|
+
action: data => {
|
|
14
|
+
const router = data.getInjected(Router);
|
|
15
|
+
router.navigate([`/cms/admin/fields/${data.record.id}/edit`])
|
|
16
|
+
},
|
|
17
|
+
permission: 'CmsAdmin.Field.Update',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
text: 'AbpUi::Delete',
|
|
21
|
+
action: data => {
|
|
22
|
+
const component = data.getInjected(FieldsComponent);
|
|
23
|
+
// component.clickbtn({ data, type: 'delete' })
|
|
24
|
+
component.deletefield(data.record)
|
|
25
|
+
},
|
|
26
|
+
permission: 'CmsAdmin.Field.Delete',
|
|
27
|
+
},
|
|
28
|
+
]);
|
|
29
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { EntityProp, ePropType } from '@abp/ng.components/extensible';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
[ECmsComponent.Fields]: Fields_Entity_Props,
|
|
7
|
+
*/
|
|
8
|
+
export const Fields_Entity_Props = EntityProp.createMany<any>([
|
|
9
|
+
{
|
|
10
|
+
type: ePropType.String,
|
|
11
|
+
name: 'displayName',
|
|
12
|
+
displayName: 'Cms::DisplayName',
|
|
13
|
+
sortable: true,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
type: ePropType.String,
|
|
17
|
+
name: 'name',
|
|
18
|
+
displayName: 'Cms::Name',
|
|
19
|
+
sortable: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
type: ePropType.String,
|
|
23
|
+
name: 'formControlName',
|
|
24
|
+
displayName: 'Cms::FormControlName',
|
|
25
|
+
sortable: false,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: ePropType.String,
|
|
29
|
+
name: 'groupName',
|
|
30
|
+
displayName: 'Cms::Group',
|
|
31
|
+
sortable: false,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
type: ePropType.DateTime,
|
|
35
|
+
name: 'creationTime',
|
|
36
|
+
displayName: 'Cms::CreationTime',
|
|
37
|
+
sortable: true,
|
|
38
|
+
},
|
|
39
|
+
])
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
// PageName.Guides
|
|
46
|
+
// export const Guides_Entity_Props = EntityProp.createMany<any>([
|
|
47
|
+
// {
|
|
48
|
+
// type: ePropType.String,
|
|
49
|
+
// name: 'fullName',
|
|
50
|
+
// displayName: 'AbpTenantManagement::全称',
|
|
51
|
+
// sortable: true,
|
|
52
|
+
// // valueResolver: (data: any) => {
|
|
53
|
+
// // let sss = `<a href="/guides/${data.record.id}" class="underline-animate" title="${data.record.fullName}">${data.record.fullName}</a>`
|
|
54
|
+
// // return of(sss);
|
|
55
|
+
// // },
|
|
56
|
+
// action: data => {
|
|
57
|
+
// //EntriesComponent对应的工具栏页面
|
|
58
|
+
|
|
59
|
+
// },
|
|
60
|
+
// },
|
|
61
|
+
|
|
62
|
+
// ]);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Renderer2, RendererFactory2, inject } from "@angular/core";
|
|
2
|
+
import styles from "../constants/styles";
|
|
3
|
+
let isAppentStyle = false
|
|
4
|
+
export function appentStyle() {
|
|
5
|
+
/**确保该路由守卫只会执行一次 */
|
|
6
|
+
if (isAppentStyle) return
|
|
7
|
+
isAppentStyle = true
|
|
8
|
+
const rendererFactory = inject(RendererFactory2);
|
|
9
|
+
let renderer: Renderer2=rendererFactory.createRenderer(null, null)
|
|
10
|
+
const style = renderer.createElement('style');
|
|
11
|
+
renderer.setProperty(style, 'innerHTML', styles);
|
|
12
|
+
renderer.appendChild(document.head, style);
|
|
13
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { pinyin } from 'pinyin-pro';
|
|
3
|
+
|
|
4
|
+
@Injectable({
|
|
5
|
+
providedIn: 'root',
|
|
6
|
+
})
|
|
7
|
+
export class CmsApiService {
|
|
8
|
+
constructor() {}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 识别中文转化为拼音,固定返回类型
|
|
12
|
+
* 汉字转拼音
|
|
13
|
+
* 大写转小写
|
|
14
|
+
*
|
|
15
|
+
* */
|
|
16
|
+
chineseToPinyin(value: any) {
|
|
17
|
+
//去除字符串中所有的空格
|
|
18
|
+
let val = value.replaceAll(' ', '-');
|
|
19
|
+
let array = val.split('');
|
|
20
|
+
let newArray = [];
|
|
21
|
+
array.forEach((el: any, index: any) => {
|
|
22
|
+
//转化为小写
|
|
23
|
+
let elChange = el.toLowerCase();
|
|
24
|
+
let isChinese = str => {
|
|
25
|
+
return /^[\u4e00-\u9fa5]+$/.test(str);
|
|
26
|
+
};
|
|
27
|
+
if (isChinese(elChange)) {
|
|
28
|
+
const resultWithoutTone = pinyin(elChange, { toneType: 'none', type: 'array' });
|
|
29
|
+
elChange = resultWithoutTone.toString();
|
|
30
|
+
if (index < array.length - 1) elChange += '-';
|
|
31
|
+
}
|
|
32
|
+
newArray.push(elChange);
|
|
33
|
+
});
|
|
34
|
+
let pinyinstr = newArray.join('');
|
|
35
|
+
return pinyinstr || val;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 深拷贝--方法 */
|
|
40
|
+
deepClone(obj) {
|
|
41
|
+
if (typeof obj !== 'object' || obj === null) return obj;
|
|
42
|
+
const result = Array.isArray(obj) ? [] : {};
|
|
43
|
+
for (let key in obj) {
|
|
44
|
+
if (obj.hasOwnProperty(key)) {
|
|
45
|
+
if (typeof obj[key] === 'object' && obj[key] !== null) {
|
|
46
|
+
if (obj[key] instanceof Date) {
|
|
47
|
+
result[key] = new Date(obj[key].getTime());
|
|
48
|
+
} else if (obj[key] instanceof RegExp) {
|
|
49
|
+
result[key] = new RegExp(obj[key]);
|
|
50
|
+
} else {
|
|
51
|
+
result[key] = this.deepClone(obj[key]);
|
|
52
|
+
}
|
|
53
|
+
} else {
|
|
54
|
+
result[key] = obj[key];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return result;
|
|
59
|
+
}
|
|
60
|
+
// this._selected = this.convertKeysToCamelCase(this._selected);
|
|
61
|
+
/**
|
|
62
|
+
* 递归将对象属性名首字母转为小写
|
|
63
|
+
* @param obj 需要处理的对象或数组
|
|
64
|
+
* @param isInsideFormConfig 标记是否在 FormConfiguration 内部
|
|
65
|
+
* @returns 处理后的新对象
|
|
66
|
+
*/
|
|
67
|
+
convertKeysToCamelCase(obj: any, isInsideFormConfig = false): any {
|
|
68
|
+
|
|
69
|
+
if (Array.isArray(obj)) {
|
|
70
|
+
return obj.map(item => this.convertKeysToCamelCase(item, isInsideFormConfig));
|
|
71
|
+
} else if (typeof obj === 'object' && obj !== null) {
|
|
72
|
+
return Object.keys(obj).reduce((acc, key) => {
|
|
73
|
+
|
|
74
|
+
// 判断当前层级是否在 FormConfiguration 内部
|
|
75
|
+
const currentIsInsideFormConfig = isInsideFormConfig|| key === 'MatrixBlockTypes';
|
|
76
|
+
|
|
77
|
+
// 如果在 FormConfiguration 内部,保留原字段名
|
|
78
|
+
const newKey = currentIsInsideFormConfig ? key : key.charAt(0).toLowerCase() + key.slice(1);
|
|
79
|
+
// 递归处理子属性,并传递是否在 FormConfiguration 内部的状态
|
|
80
|
+
acc[newKey] = this.convertKeysToCamelCase(obj[key], key === 'FormConfiguration');
|
|
81
|
+
return acc;
|
|
82
|
+
}, {} as Record<string, any>);
|
|
83
|
+
}
|
|
84
|
+
return obj;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { RestService } from '@abp/ng.core';
|
|
3
|
+
|
|
4
|
+
@Injectable({
|
|
5
|
+
providedIn: 'root',
|
|
6
|
+
})
|
|
7
|
+
export class CmsService {
|
|
8
|
+
apiName = 'Cms';
|
|
9
|
+
|
|
10
|
+
constructor(private restService: RestService) {}
|
|
11
|
+
|
|
12
|
+
sample() {
|
|
13
|
+
return this.restService.request<void, any>(
|
|
14
|
+
{ method: 'GET', url: '/api/Cms/sample' },
|
|
15
|
+
{ apiName: this.apiName }
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { FieldGroupAdminService, FieldGroupDto } from '../proxy/dignite/cms/admin/fields';
|
|
3
|
+
import { FormAdminService } from '../proxy/dignite/cms/admin/dynamic-forms';
|
|
4
|
+
|
|
5
|
+
@Injectable({
|
|
6
|
+
providedIn: 'root'
|
|
7
|
+
})
|
|
8
|
+
export class FieldAbstractsService {
|
|
9
|
+
|
|
10
|
+
constructor(
|
|
11
|
+
private _FieldGroupAdminService: FieldGroupAdminService,
|
|
12
|
+
private _FormAdminService: FormAdminService,
|
|
13
|
+
) { }
|
|
14
|
+
/**字段分组列表 */
|
|
15
|
+
fieldGroupList: FieldGroupDto[] = []
|
|
16
|
+
/**获取字段分组列表 */
|
|
17
|
+
getfieldGroupList() {
|
|
18
|
+
this._FieldGroupAdminService.getList({}).subscribe((res:any) => {
|
|
19
|
+
this.fieldGroupList = res.items
|
|
20
|
+
})
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**表单控件类型 */
|
|
24
|
+
fromControlList: any[] = []
|
|
25
|
+
/**获取表单控件类型 */
|
|
26
|
+
getFromControlList() {
|
|
27
|
+
return new Promise((resolve, reject) => {
|
|
28
|
+
this._FormAdminService.getFormControls({}).subscribe((res:any) => {
|
|
29
|
+
this.fromControlList = res.items
|
|
30
|
+
resolve(res.items)
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
}
|
|
34
|
+
getExcludeAssignControl(typeName?) {
|
|
35
|
+
// return this.fromControlList.filter(el => el.name !== typeName)
|
|
36
|
+
return this.fromControlList
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
}
|