@dignite-ng/expand.cms 2.0.0-rc.1 → 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,13 @@
|
|
|
1
|
+
import { ModuleWithProviders, NgModule } from '@angular/core';
|
|
2
|
+
import { CMS_ROUTE_PROVIDERS } from './providers/route.provider';
|
|
3
|
+
import { Regionalization_Management_Setting_ROUTE_PROVIDERS } from '@dignite-ng/expand.regionalization-management/config';
|
|
4
|
+
|
|
5
|
+
@NgModule()
|
|
6
|
+
export class CmsConfigModule {
|
|
7
|
+
static forRoot(): ModuleWithProviders<CmsConfigModule> {
|
|
8
|
+
return {
|
|
9
|
+
ngModule: CmsConfigModule,
|
|
10
|
+
providers: [CMS_ROUTE_PROVIDERS,Regionalization_Management_Setting_ROUTE_PROVIDERS],
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './route-names';
|
|
1
|
+
export * from './route-names';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './route.provider';
|
|
1
|
+
export * from './route.provider';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { eLayoutType, RoutesService } from '@abp/ng.core';
|
|
2
|
+
import { APP_INITIALIZER } from '@angular/core';
|
|
3
|
+
import { eCmsRouteNames } from '../enums/route-names';
|
|
4
|
+
import { SettingTabsService } from '@abp/ng.setting-management/config';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export const CMS_ROUTE_PROVIDERS = [
|
|
11
|
+
{
|
|
12
|
+
provide: APP_INITIALIZER,
|
|
13
|
+
useFactory: configureRoutes,
|
|
14
|
+
deps: [RoutesService, SettingTabsService],
|
|
15
|
+
multi: true,
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
export function configureRoutes(routesService: RoutesService, settingTabs: SettingTabsService) {
|
|
21
|
+
return () => {
|
|
22
|
+
routesService.add([
|
|
23
|
+
{
|
|
24
|
+
path: '/cms',
|
|
25
|
+
name: eCmsRouteNames.Cms,
|
|
26
|
+
iconClass: 'bi-archive-fill',
|
|
27
|
+
layout: eLayoutType.application,
|
|
28
|
+
requiredPolicy: 'CmsAdmin.Entry || CmsAdmin.Field || CmsAdmin.Site || CmsAdmin.Section',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
path: '/cms/admin/entries',
|
|
32
|
+
name: eCmsRouteNames.Entries,
|
|
33
|
+
parentName: eCmsRouteNames.Cms,
|
|
34
|
+
iconClass: 'bi-file-earmark-text-fill',
|
|
35
|
+
layout: eLayoutType.application,
|
|
36
|
+
requiredPolicy: 'CmsAdmin.Entry',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
path: '',
|
|
40
|
+
name: eCmsRouteNames.Settings,
|
|
41
|
+
parentName: eCmsRouteNames.Cms,
|
|
42
|
+
iconClass: 'fas fa fa-cog',
|
|
43
|
+
layout: eLayoutType.application,
|
|
44
|
+
requiredPolicy: 'CmsAdmin.Field || CmsAdmin.Section',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
path: '/cms/admin/fields',
|
|
48
|
+
name: eCmsRouteNames.Fields,
|
|
49
|
+
parentName: eCmsRouteNames.Settings,
|
|
50
|
+
iconClass: 'bi-file-earmark-text-fill',
|
|
51
|
+
layout: eLayoutType.application,
|
|
52
|
+
order: 1,
|
|
53
|
+
requiredPolicy: 'CmsAdmin.Field',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
path: '/cms/admin/sections',
|
|
57
|
+
name: eCmsRouteNames.Sections,
|
|
58
|
+
parentName: eCmsRouteNames.Settings,
|
|
59
|
+
iconClass: 'bi bi-menu-button-wide-fill',
|
|
60
|
+
layout: eLayoutType.application,
|
|
61
|
+
order: 3,
|
|
62
|
+
requiredPolicy: 'CmsAdmin.Section',
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
]);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './enums';
|
|
2
|
-
export * from './cms-config.module';
|
|
3
|
-
export * from './providers';
|
|
1
|
+
export * from './enums';
|
|
2
|
+
export * from './cms-config.module';
|
|
3
|
+
export * from './providers';
|
package/ng-package.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dignite-ng/expand.cms",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.10",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "~18.1.0",
|
|
6
6
|
"@angular/core": "~18.1.0"
|
|
@@ -9,29 +9,14 @@
|
|
|
9
9
|
"pinyin-pro": "^3.19.6",
|
|
10
10
|
"tslib": "^2.3.0"
|
|
11
11
|
},
|
|
12
|
-
"allowedNonPeerDependencies":
|
|
12
|
+
"allowedNonPeerDependencies":true,
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public",
|
|
16
16
|
"registry": "https://registry.npmjs.org/"
|
|
17
|
-
},
|
|
18
|
-
"module": "fesm2022/dignite-ng-expand.cms.mjs",
|
|
19
|
-
"typings": "index.d.ts",
|
|
20
|
-
"exports": {
|
|
21
|
-
"./package.json": {
|
|
22
|
-
"default": "./package.json"
|
|
23
|
-
},
|
|
24
|
-
".": {
|
|
25
|
-
"types": "./index.d.ts",
|
|
26
|
-
"esm2022": "./esm2022/dignite-ng-expand.cms.mjs",
|
|
27
|
-
"esm": "./esm2022/dignite-ng-expand.cms.mjs",
|
|
28
|
-
"default": "./fesm2022/dignite-ng-expand.cms.mjs"
|
|
29
|
-
},
|
|
30
|
-
"./config": {
|
|
31
|
-
"types": "./config/index.d.ts",
|
|
32
|
-
"esm2022": "./esm2022/config/dignite-ng-expand.cms-config.mjs",
|
|
33
|
-
"esm": "./esm2022/config/dignite-ng-expand.cms-config.mjs",
|
|
34
|
-
"default": "./fesm2022/dignite-ng-expand.cms-config.mjs"
|
|
35
|
-
}
|
|
36
17
|
}
|
|
37
|
-
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { NgModule} from '@angular/core';
|
|
2
|
+
import { Routes, RouterModule} from '@angular/router';
|
|
3
|
+
import {
|
|
4
|
+
CreateComponent,
|
|
5
|
+
CreateFieldComponent,
|
|
6
|
+
CreateOrEditComponent,
|
|
7
|
+
EditComponent,
|
|
8
|
+
EditFieldComponent,
|
|
9
|
+
EntriesComponent,
|
|
10
|
+
FieldsComponent,
|
|
11
|
+
SectionsComponent,
|
|
12
|
+
} from './components';
|
|
13
|
+
import {
|
|
14
|
+
AuthGuard,
|
|
15
|
+
PermissionGuard,
|
|
16
|
+
} from '@abp/ng.core';
|
|
17
|
+
import { appentStyle } from './services/appent-content';
|
|
18
|
+
import { Extensions_Props_Action_Token_Resolver } from './resolvers/extensions-props-action-token.resolver';
|
|
19
|
+
|
|
20
|
+
const routes: Routes = [
|
|
21
|
+
{
|
|
22
|
+
path: 'admin',
|
|
23
|
+
canActivate: [AuthGuard, PermissionGuard],
|
|
24
|
+
resolve: [Extensions_Props_Action_Token_Resolver, appentStyle],
|
|
25
|
+
children: [
|
|
26
|
+
{
|
|
27
|
+
path: 'entries',
|
|
28
|
+
|
|
29
|
+
children: [
|
|
30
|
+
{
|
|
31
|
+
path: '',
|
|
32
|
+
component: EntriesComponent,
|
|
33
|
+
data: { keep: true }
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
path: 'create',
|
|
37
|
+
component: CreateComponent,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
path: ':entrieId/edit',
|
|
41
|
+
component: EditComponent,
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
path: '',
|
|
47
|
+
children: [
|
|
48
|
+
{
|
|
49
|
+
path: 'fields',
|
|
50
|
+
children: [
|
|
51
|
+
{
|
|
52
|
+
path: '',
|
|
53
|
+
component: FieldsComponent,
|
|
54
|
+
data: { keep: true }
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
path: 'create',
|
|
58
|
+
component: CreateFieldComponent,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
path: ':id/edit',
|
|
62
|
+
component: EditFieldComponent,
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
path: 'sections',
|
|
68
|
+
children: [
|
|
69
|
+
{
|
|
70
|
+
path: '',
|
|
71
|
+
data: { keep: true },
|
|
72
|
+
component: SectionsComponent,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
path: ':sectionsId/entry-types',
|
|
76
|
+
children: [
|
|
77
|
+
{
|
|
78
|
+
path: 'create',
|
|
79
|
+
component: CreateOrEditComponent,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
path: ':entryTypesId/edit',
|
|
83
|
+
component: CreateOrEditComponent,
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
];
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
@NgModule({
|
|
98
|
+
imports: [RouterModule.forChild(routes)],
|
|
99
|
+
exports: [RouterModule],
|
|
100
|
+
})
|
|
101
|
+
export class CmsRoutingModule {
|
|
102
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { NgModule, NgModuleFactory, ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { CoreModule, LazyModuleFactory } from '@abp/ng.core';
|
|
3
|
+
import { ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
4
|
+
import { CmsRoutingModule } from './cms-routing.module';
|
|
5
|
+
import {
|
|
6
|
+
CreateComponent,
|
|
7
|
+
CreateFieldComponent,
|
|
8
|
+
CreateOrEditComponent,
|
|
9
|
+
CreateOrEditEntriesComponent,
|
|
10
|
+
CreateOrEditFieldComponent,
|
|
11
|
+
EditComponent,
|
|
12
|
+
EditFieldComponent,
|
|
13
|
+
EntriesComponent,
|
|
14
|
+
FieldGroupComponent,
|
|
15
|
+
FieldsComponent,
|
|
16
|
+
SectionsComponent,
|
|
17
|
+
MatrixConfigComponent,
|
|
18
|
+
MatrixControlComponent,
|
|
19
|
+
TableConfigComponent,
|
|
20
|
+
TableControlComponent,
|
|
21
|
+
EntryConfigComponent,
|
|
22
|
+
EntryControlComponent,
|
|
23
|
+
cmsFieldControlGroup
|
|
24
|
+
} from './components';
|
|
25
|
+
import {
|
|
26
|
+
NgbDropdownModule,
|
|
27
|
+
NgbNavModule,
|
|
28
|
+
NgbAccordionModule,
|
|
29
|
+
} from '@ng-bootstrap/ng-bootstrap';
|
|
30
|
+
import { PageModule } from '@abp/ng.components/page';
|
|
31
|
+
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
32
|
+
import { DynamicFormModule } from '@dignite-ng/expand.dynamic-form';
|
|
33
|
+
import { Toolbar_Action_Contributors, Entity_Action_Contributors, Entity_Props_Contributors } from './resolvers/extensions-props-action-token.resolver';
|
|
34
|
+
import { ExtensibleModule } from '@abp/ng.components/extensible';
|
|
35
|
+
import { CreateOrEditSectionsModalComponent } from './components/admin/sections/create-or-edit-sections-modal.component';
|
|
36
|
+
import {DragDropModule} from '@angular/cdk/drag-drop';
|
|
37
|
+
import { NgxDatatableModule } from '@swimlane/ngx-datatable';
|
|
38
|
+
// import { AdvancedEntityFiltersModule, CommercialUiModule } from '@volo/abp.commercial.ng.ui';
|
|
39
|
+
|
|
40
|
+
@NgModule({
|
|
41
|
+
declarations: [
|
|
42
|
+
EntriesComponent,
|
|
43
|
+
FieldsComponent,
|
|
44
|
+
SectionsComponent,
|
|
45
|
+
FieldGroupComponent,
|
|
46
|
+
CreateFieldComponent,
|
|
47
|
+
EditFieldComponent,
|
|
48
|
+
CreateOrEditFieldComponent,
|
|
49
|
+
CreateOrEditComponent,
|
|
50
|
+
CreateComponent,
|
|
51
|
+
EditComponent,
|
|
52
|
+
CreateOrEditEntriesComponent,
|
|
53
|
+
TableConfigComponent,
|
|
54
|
+
TableControlComponent,
|
|
55
|
+
MatrixConfigComponent,
|
|
56
|
+
MatrixControlComponent,
|
|
57
|
+
EntryConfigComponent,
|
|
58
|
+
EntryControlComponent,
|
|
59
|
+
CreateOrEditSectionsModalComponent,
|
|
60
|
+
],
|
|
61
|
+
imports: [
|
|
62
|
+
CoreModule,
|
|
63
|
+
ThemeSharedModule,
|
|
64
|
+
CmsRoutingModule,
|
|
65
|
+
NgbNavModule,
|
|
66
|
+
NgbAccordionModule,
|
|
67
|
+
NgbDropdownModule,
|
|
68
|
+
PageModule,
|
|
69
|
+
NzSelectModule,
|
|
70
|
+
DynamicFormModule,
|
|
71
|
+
ExtensibleModule,
|
|
72
|
+
DragDropModule,
|
|
73
|
+
NgxDatatableModule,
|
|
74
|
+
// CommercialUiModule,
|
|
75
|
+
],
|
|
76
|
+
exports: [
|
|
77
|
+
TableConfigComponent,
|
|
78
|
+
TableControlComponent,
|
|
79
|
+
MatrixConfigComponent,
|
|
80
|
+
MatrixControlComponent,
|
|
81
|
+
EntryConfigComponent,
|
|
82
|
+
EntryControlComponent,
|
|
83
|
+
],
|
|
84
|
+
providers: [
|
|
85
|
+
|
|
86
|
+
],
|
|
87
|
+
|
|
88
|
+
})
|
|
89
|
+
export class CmsModule {
|
|
90
|
+
|
|
91
|
+
static forChild(options: any = {}): ModuleWithProviders<CmsModule> {
|
|
92
|
+
return {
|
|
93
|
+
ngModule: CmsModule,
|
|
94
|
+
providers: [
|
|
95
|
+
{
|
|
96
|
+
provide: Toolbar_Action_Contributors,
|
|
97
|
+
useValue: options.toolbarActionContributors,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
provide: Entity_Action_Contributors,
|
|
101
|
+
useValue: options.entityActionContributors,
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
provide: Entity_Props_Contributors,
|
|
105
|
+
useValue: options.entityPropContributors,
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
static forLazy(options: any = {}): NgModuleFactory<CmsModule> {
|
|
111
|
+
return new LazyModuleFactory(CmsModule.forChild(options));
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
<form [formGroup]="formEntity">
|
|
2
|
+
<div class="row">
|
|
3
|
+
<div class="col-md-8">
|
|
4
|
+
<div class="card">
|
|
5
|
+
<div class="card-body">
|
|
6
|
+
<div class="mb-3">
|
|
7
|
+
<div class="form-label">{{'Cms::Title' | abpLocalization}}</div>
|
|
8
|
+
<input type="text" class="form-control" formControlName="title"
|
|
9
|
+
(blur)="setTitleToSlugBlur($event)">
|
|
10
|
+
</div>
|
|
11
|
+
<ng-container *ngIf="isLoad">
|
|
12
|
+
<ng-container *ngFor="let item of showEntryType?.fieldTabs;let i =index">
|
|
13
|
+
<ng-container *ngFor="let el of item.fields;let i1 =index">
|
|
14
|
+
<ng-container *ngIf="el&&formEntity">
|
|
15
|
+
<df-dynamic [fields]="el"
|
|
16
|
+
[selected]="entryInfo ? entryInfo.extraProperties[el.field.name] : ''"
|
|
17
|
+
[parentFiledName]="'extraProperties'"
|
|
18
|
+
[culture]="cultureInput.value" [entity]="formEntity"></df-dynamic>
|
|
19
|
+
</ng-container>
|
|
20
|
+
</ng-container>
|
|
21
|
+
</ng-container>
|
|
22
|
+
</ng-container>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="col-md-4">
|
|
27
|
+
<div class="card">
|
|
28
|
+
<div class="card-body">
|
|
29
|
+
<div class="mb-3">
|
|
30
|
+
<div class="form-label">{{'Cms::Slug' | abpLocalization}}</div>
|
|
31
|
+
<input type="text" class="form-control" formControlName="slug">
|
|
32
|
+
</div>
|
|
33
|
+
<div class="mb-3">
|
|
34
|
+
<div class="form-label">{{'AbpUi::Languages' | abpLocalization}}</div>
|
|
35
|
+
<select class="form-select form-select-multiple" formControlName="culture">
|
|
36
|
+
<ng-container *ngFor="let item of languagesList;let i =index">
|
|
37
|
+
<option [value]="item.cultureName">{{item.displayName}}</option>
|
|
38
|
+
</ng-container>
|
|
39
|
+
</select>
|
|
40
|
+
<div class="text-danger" *ngIf="cultureInput.dirty">
|
|
41
|
+
{{cultureInput?.errors?.repetition}}
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="mb-3" *ngIf="sectionInfo.type===1">
|
|
45
|
+
<label class="form-label" for="parentId">{{'Cms::ParentEntry' | abpLocalization}}</label>
|
|
46
|
+
<select class="form-select " formControlName="parentId">
|
|
47
|
+
<option value=""></option>
|
|
48
|
+
<ng-container *ngFor="let item of entryList;let i =index">
|
|
49
|
+
<option [value]="item.id">{{item.title}}</option>
|
|
50
|
+
<ng-container *ngFor="let el of item.children">
|
|
51
|
+
<ng-container *ngTemplateOutlet="childTemplate; context: {
|
|
52
|
+
$implicit: {
|
|
53
|
+
value: el,
|
|
54
|
+
}
|
|
55
|
+
}"></ng-container>
|
|
56
|
+
<ng-template #childTemplate let-data>
|
|
57
|
+
<option [value]="data.value.id">
|
|
58
|
+
<ng-container *ngFor="let item of data.value.layer">--</ng-container>
|
|
59
|
+
{{data.value.title}}
|
|
60
|
+
</option>
|
|
61
|
+
<ng-container *ngFor="let el of data.value.children">
|
|
62
|
+
<ng-container *ngTemplateOutlet="childTemplate; context: {
|
|
63
|
+
$implicit: {
|
|
64
|
+
value: el,
|
|
65
|
+
}
|
|
66
|
+
}"></ng-container>
|
|
67
|
+
</ng-container>
|
|
68
|
+
</ng-template>
|
|
69
|
+
</ng-container>
|
|
70
|
+
</ng-container>
|
|
71
|
+
</select>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="mb-3">
|
|
74
|
+
<label class="form-label" for="publishTime">{{'Cms::PublishTime' | abpLocalization}}</label>
|
|
75
|
+
<input type="datetime-local" class="form-control" step="1" formControlName="publishTime">
|
|
76
|
+
</div>
|
|
77
|
+
<div class="mb-3" *ngIf="isEdit">
|
|
78
|
+
<label class="form-label" for="Version">{{'Cms::Version' | abpLocalization}}</label>
|
|
79
|
+
<ul class="list-group">
|
|
80
|
+
<ng-container *ngFor="let item of AllVersionsList">
|
|
81
|
+
<li
|
|
82
|
+
class="list-group-item flex-between d-flex align-items-center justify-content-between">
|
|
83
|
+
<div>
|
|
84
|
+
{{item.initialVersionId?(item.creationTime| date: 'YYYY/MM/dd HH:mm:s'):('Cms::InitialVersion' | abpLocalization)}}
|
|
85
|
+
<span class="badge text-bg-success ms-1"
|
|
86
|
+
*ngIf="item.isActivatedVersion">{{'Cms::IsActive' | abpLocalization}}</span>
|
|
87
|
+
<span class="badge text-bg-primary ms-1"
|
|
88
|
+
*ngIf="item.id === entryVersionId">{{'Cms::Editing' |
|
|
89
|
+
abpLocalization}}</span>
|
|
90
|
+
</div>
|
|
91
|
+
<div>
|
|
92
|
+
<div ngbDropdown class="d-inline-block">
|
|
93
|
+
<button type="button" class="btn btn-link-primary p-2 "
|
|
94
|
+
style="line-height: 0;" id="dropdownBasic1" ngbDropdownToggle>
|
|
95
|
+
</button>
|
|
96
|
+
<div ngbDropdownMenu aria-labelledby="dropdownBasic1">
|
|
97
|
+
<button ngbDropdownItem type="button" *ngIf="!item.isActivatedVersion"
|
|
98
|
+
(click)="ActivatedVersion(item.id)">
|
|
99
|
+
<i class="fas fa-check me-1"></i>{{'Cms::IsActive' |
|
|
100
|
+
abpLocalization}}
|
|
101
|
+
</button>
|
|
102
|
+
<button ngbDropdownItem type="button"
|
|
103
|
+
routerLink="/cms/admin/entries/create"
|
|
104
|
+
[queryParams]="{entryVersionId:item.id}">
|
|
105
|
+
<i class="fas fa-plus me-1"></i>{{'Cms::NewVersion' |
|
|
106
|
+
abpLocalization}}
|
|
107
|
+
</button>
|
|
108
|
+
<button ngbDropdownItem type="button" (click.stop)="toEditUrl(item.id)"
|
|
109
|
+
*ngIf="item.id !== entryVersionId">
|
|
110
|
+
<i class="fas fa-edit me-1"></i>{{'AbpUi::Edit' | abpLocalization}}
|
|
111
|
+
</button>
|
|
112
|
+
<button ngbDropdownItem type="button"
|
|
113
|
+
(click.stop)="delectVersion(item.id)"
|
|
114
|
+
*ngIf="item.initialVersionId&&!item.isActivatedVersion&&item.id !== entryVersionId">
|
|
115
|
+
<i class="fas fa-trash me-1"></i>{{'AbpUi::Delete' |
|
|
116
|
+
abpLocalization}}
|
|
117
|
+
</button>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
</li>
|
|
122
|
+
</ng-container>
|
|
123
|
+
</ul>
|
|
124
|
+
</div>
|
|
125
|
+
<div class="mb-3" *ngIf="entryInfo">
|
|
126
|
+
<label class="form-label" for="versionNotes">{{'Cms::RevisionNotes' | abpLocalization}}</label>
|
|
127
|
+
<textarea class="form-control" formControlName="versionNotes" rows="3"></textarea>
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
<button type="submit" style="display: none;" #submitclick></button>
|
|
137
|
+
</form>
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { CreateOrEditEntriesComponent } from './create-or-edit-entries.component';
|
|
4
|
+
|
|
5
|
+
describe('CreateOrEditEntriesComponent', () => {
|
|
6
|
+
let component: CreateOrEditEntriesComponent;
|
|
7
|
+
let fixture: ComponentFixture<CreateOrEditEntriesComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [CreateOrEditEntriesComponent]
|
|
12
|
+
});
|
|
13
|
+
fixture = TestBed.createComponent(CreateOrEditEntriesComponent);
|
|
14
|
+
component = fixture.componentInstance;
|
|
15
|
+
fixture.detectChanges();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should create', () => {
|
|
19
|
+
expect(component).toBeTruthy();
|
|
20
|
+
});
|
|
21
|
+
});
|