@dignite-ng/expand.cms 2.0.0-rc.10 → 2.0.0-rc.11
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/cms-config.module.d.ts +8 -0
- package/config/{src/enums/index.ts → enums/index.d.ts} +1 -1
- package/config/enums/route-names.d.ts +7 -0
- package/config/index.d.ts +5 -0
- package/config/{src/providers/index.ts → providers/index.d.ts} +1 -1
- package/config/providers/route.provider.d.ts +9 -0
- package/config/{src/public-api.ts → public-api.d.ts} +3 -3
- package/esm2022/config/cms-config.module.mjs +19 -0
- package/esm2022/config/dignite-ng-expand.cms-config.mjs +5 -0
- package/esm2022/config/enums/index.mjs +2 -0
- package/esm2022/config/enums/route-names.mjs +9 -0
- package/esm2022/config/providers/index.mjs +2 -0
- package/esm2022/config/providers/route.provider.mjs +60 -0
- package/esm2022/config/public-api.mjs +4 -0
- package/esm2022/dignite-ng-expand.cms.mjs +5 -0
- package/esm2022/lib/cms-routing.module.mjs +94 -0
- package/esm2022/lib/cms.module.mjs +137 -0
- package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +226 -0
- package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +25 -0
- package/esm2022/lib/components/admin/entries/create.component.mjs +136 -0
- package/esm2022/lib/components/admin/entries/edit.component.mjs +138 -0
- package/esm2022/lib/components/admin/entries/entries.component.mjs +367 -0
- package/esm2022/lib/components/admin/entries/index.mjs +5 -0
- package/esm2022/lib/components/admin/fields/create-field.component.mjs +87 -0
- package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +116 -0
- package/esm2022/lib/components/admin/fields/create-or-update-field-input-base.mjs +25 -0
- package/esm2022/lib/components/admin/fields/edit-field.component.mjs +109 -0
- package/esm2022/lib/components/admin/fields/field-group.component.mjs +131 -0
- package/esm2022/lib/components/admin/fields/fields.component.mjs +107 -0
- package/esm2022/lib/components/admin/fields/index.mjs +7 -0
- package/esm2022/lib/components/admin/index.mjs +4 -0
- package/esm2022/lib/components/admin/sections/create-or-edit-sections-modal.component.mjs +210 -0
- package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +22 -0
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +47 -0
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +408 -0
- package/esm2022/lib/components/admin/sections/entry-types/index.mjs +3 -0
- package/esm2022/lib/components/admin/sections/index.mjs +4 -0
- package/esm2022/lib/components/admin/sections/sections.component.mjs +138 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +117 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +18 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +105 -0
- package/esm2022/lib/components/dynamic-form/entry/index.mjs +4 -0
- package/esm2022/lib/components/dynamic-form/form-control-group.mjs +28 -0
- package/esm2022/lib/components/dynamic-form/index.mjs +5 -0
- package/esm2022/lib/components/dynamic-form/matrix/index.mjs +4 -0
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +219 -0
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +50 -0
- package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +108 -0
- package/esm2022/lib/components/dynamic-form/table/index.mjs +4 -0
- package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +158 -0
- package/esm2022/lib/components/dynamic-form/table/table-config.mjs +38 -0
- package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +118 -0
- package/esm2022/lib/components/index.mjs +3 -0
- package/esm2022/lib/constants/styles.mjs +19 -0
- package/esm2022/lib/enums/ecms-component.mjs +13 -0
- package/esm2022/lib/enums/index.mjs +2 -0
- package/esm2022/lib/proxy/dignite/abp/data/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/abp/regionalization-management/index.mjs +3 -0
- package/esm2022/lib/proxy/dignite/abp/regionalization-management/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/abp/regionalization-management/regionalization.service.mjs +27 -0
- package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.mjs +22 -0
- package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/index.mjs +3 -0
- package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/cms/admin/entries/entry-admin.service.mjs +70 -0
- package/esm2022/lib/proxy/dignite/cms/admin/entries/index.mjs +3 -0
- package/esm2022/lib/proxy/dignite/cms/admin/entries/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/cms/admin/fields/field-admin.service.mjs +45 -0
- package/esm2022/lib/proxy/dignite/cms/admin/fields/field-group-admin.service.mjs +41 -0
- package/esm2022/lib/proxy/dignite/cms/admin/fields/index.mjs +4 -0
- package/esm2022/lib/proxy/dignite/cms/admin/fields/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/cms/admin/sections/entry-type-admin.service.mjs +41 -0
- package/esm2022/lib/proxy/dignite/cms/admin/sections/index.mjs +4 -0
- package/esm2022/lib/proxy/dignite/cms/admin/sections/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/cms/admin/sections/section-admin.service.mjs +51 -0
- package/esm2022/lib/proxy/dignite/cms/entries/entry-status.enum.mjs +8 -0
- package/esm2022/lib/proxy/dignite/cms/entries/index.mjs +2 -0
- package/esm2022/lib/proxy/dignite/cms/fields/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/cms/sections/index.mjs +3 -0
- package/esm2022/lib/proxy/dignite/cms/sections/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/cms/sections/section-type.enum.mjs +9 -0
- package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +2 -0
- package/esm2022/lib/resolvers/extensions-props-action-token.resolver.mjs +136 -0
- package/esm2022/lib/resolvers/page-default-toolbar-actions.mjs +160 -0
- package/esm2022/lib/resolvers/table-default-entity-actions.mjs +28 -0
- package/esm2022/lib/resolvers/table-default-entity-props.mjs +53 -0
- package/esm2022/lib/services/appent-content.mjs +15 -0
- package/esm2022/lib/services/cms-api.service.mjs +93 -0
- package/esm2022/lib/services/cms.service.mjs +21 -0
- package/esm2022/lib/services/field-abstracts.service.mjs +42 -0
- package/esm2022/lib/services/index.mjs +4 -0
- package/esm2022/public-api.mjs +7 -0
- package/fesm2022/dignite-ng-expand.cms-config.mjs +92 -0
- package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -0
- package/fesm2022/dignite-ng-expand.cms.mjs +4063 -0
- package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/cms-routing.module.d.ts +7 -0
- package/lib/cms.module.d.ts +37 -0
- package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +63 -0
- package/lib/components/admin/entries/create-or-update-entry-input-base.d.ts +23 -0
- package/lib/components/admin/entries/create.component.d.ts +50 -0
- package/lib/components/admin/entries/edit.component.d.ts +53 -0
- package/lib/components/admin/entries/entries.component.d.ts +100 -0
- package/lib/components/admin/entries/index.d.ts +4 -0
- package/lib/components/admin/fields/create-field.component.d.ts +37 -0
- package/lib/components/admin/fields/create-or-edit-field.component.d.ts +37 -0
- package/lib/components/admin/fields/create-or-update-field-input-base.d.ts +16 -0
- package/lib/components/admin/fields/edit-field.component.d.ts +46 -0
- package/lib/components/admin/fields/field-group.component.d.ts +58 -0
- package/lib/components/admin/fields/fields.component.d.ts +35 -0
- package/lib/components/admin/fields/index.d.ts +6 -0
- package/lib/components/admin/index.d.ts +3 -0
- package/lib/components/admin/sections/create-or-edit-sections-modal.component.d.ts +49 -0
- package/lib/components/admin/sections/create-or-update-sections-input-base.d.ts +20 -0
- package/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.d.ts +28 -0
- package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +139 -0
- package/lib/components/admin/sections/entry-types/index.d.ts +2 -0
- package/lib/components/admin/sections/index.d.ts +3 -0
- package/lib/components/admin/sections/sections.component.d.ts +46 -0
- package/lib/components/dynamic-form/entry/entry-config.component.d.ts +40 -0
- package/lib/components/dynamic-form/entry/entry-config.d.ts +9 -0
- package/lib/components/dynamic-form/entry/entry-control.component.d.ts +36 -0
- package/lib/components/dynamic-form/entry/index.d.ts +3 -0
- package/lib/components/dynamic-form/form-control-group.d.ts +4 -0
- package/lib/components/dynamic-form/index.d.ts +4 -0
- package/lib/components/dynamic-form/matrix/index.d.ts +3 -0
- package/lib/components/dynamic-form/matrix/matrix-config.component.d.ts +74 -0
- package/lib/components/dynamic-form/matrix/matrix-config.d.ts +24 -0
- package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +42 -0
- package/lib/components/dynamic-form/table/index.d.ts +3 -0
- package/lib/components/dynamic-form/table/table-config.component.d.ts +59 -0
- package/lib/components/dynamic-form/table/table-config.d.ts +18 -0
- package/lib/components/dynamic-form/table/table-control.component.d.ts +42 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/constants/styles.d.ts +2 -0
- package/lib/enums/ecms-component.d.ts +11 -0
- package/lib/enums/index.d.ts +1 -0
- package/lib/proxy/dignite/abp/data/models.d.ts +3 -0
- package/lib/proxy/dignite/abp/regionalization-management/models.d.ts +8 -0
- package/lib/proxy/dignite/abp/regionalization-management/regionalization.service.d.ts +12 -0
- package/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.d.ts +12 -0
- package/lib/proxy/dignite/cms/admin/dynamic-forms/models.d.ts +5 -0
- package/lib/proxy/dignite/cms/admin/entries/entry-admin.service.d.ts +22 -0
- package/lib/proxy/dignite/cms/admin/entries/models.d.ts +61 -0
- package/lib/proxy/dignite/cms/admin/fields/field-admin.service.d.ts +17 -0
- package/lib/proxy/dignite/cms/admin/fields/field-group-admin.service.d.ts +16 -0
- package/{src/lib/proxy/dignite/cms/admin/fields/models.ts → lib/proxy/dignite/cms/admin/fields/models.d.ts} +34 -42
- package/lib/proxy/dignite/cms/admin/sections/entry-type-admin.service.d.ts +15 -0
- package/{src/lib/proxy/dignite/cms/admin/sections/models.ts → lib/proxy/dignite/cms/admin/sections/models.d.ts} +68 -82
- package/lib/proxy/dignite/cms/admin/sections/section-admin.service.d.ts +18 -0
- package/lib/proxy/dignite/cms/entries/entry-status.enum.d.ts +5 -0
- package/lib/proxy/dignite/cms/fields/models.d.ts +8 -0
- package/lib/proxy/dignite/cms/sections/models.d.ts +13 -0
- package/lib/proxy/dignite/cms/sections/section-type.enum.d.ts +6 -0
- package/{src/lib/proxy/volo/cms-kit/users/models.ts → lib/proxy/volo/cms-kit/users/models.d.ts} +7 -8
- package/lib/resolvers/extensions-props-action-token.resolver.d.ts +75 -0
- package/lib/resolvers/page-default-toolbar-actions.d.ts +18 -0
- package/lib/resolvers/table-default-entity-actions.d.ts +5 -0
- package/lib/resolvers/table-default-entity-props.d.ts +5 -0
- package/lib/services/appent-content.d.ts +1 -0
- package/lib/services/cms-api.service.d.ts +23 -0
- package/lib/services/cms.service.d.ts +10 -0
- package/lib/services/field-abstracts.service.d.ts +19 -0
- package/lib/services/index.d.ts +3 -0
- package/package.json +22 -7
- package/{src/public-api.ts → public-api.d.ts} +3 -7
- package/config/ng-package.json +0 -6
- package/config/src/cms-config.module.ts +0 -13
- package/config/src/enums/route-names.ts +0 -7
- package/config/src/providers/route.provider.ts +0 -68
- package/ng-package.json +0 -10
- package/src/lib/cms-routing.module.ts +0 -102
- package/src/lib/cms.module.ts +0 -113
- package/src/lib/components/admin/entries/create-or-edit-entries.component.html +0 -137
- 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 +0 -21
- package/src/lib/components/admin/entries/create-or-edit-entries.component.ts +0 -216
- package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +0 -26
- package/src/lib/components/admin/entries/create.component.html +0 -16
- package/src/lib/components/admin/entries/create.component.scss +0 -0
- package/src/lib/components/admin/entries/create.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/create.component.ts +0 -130
- package/src/lib/components/admin/entries/edit.component.html +0 -9
- package/src/lib/components/admin/entries/edit.component.scss +0 -0
- package/src/lib/components/admin/entries/edit.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/edit.component.ts +0 -134
- package/src/lib/components/admin/entries/entries.component.html +0 -225
- package/src/lib/components/admin/entries/entries.component.scss +0 -109
- package/src/lib/components/admin/entries/entries.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/entries.component.ts +0 -394
- package/src/lib/components/admin/entries/index.ts +0 -4
- package/src/lib/components/admin/fields/create-field.component.html +0 -12
- package/src/lib/components/admin/fields/create-field.component.scss +0 -1
- package/src/lib/components/admin/fields/create-field.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/create-field.component.ts +0 -85
- package/src/lib/components/admin/fields/create-or-edit-field.component.html +0 -39
- 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 +0 -21
- package/src/lib/components/admin/fields/create-or-edit-field.component.ts +0 -140
- package/src/lib/components/admin/fields/create-or-update-field-input-base.ts +0 -33
- package/src/lib/components/admin/fields/edit-field.component.html +0 -14
- package/src/lib/components/admin/fields/edit-field.component.scss +0 -0
- package/src/lib/components/admin/fields/edit-field.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/edit-field.component.ts +0 -112
- package/src/lib/components/admin/fields/field-group.component.html +0 -69
- package/src/lib/components/admin/fields/field-group.component.scss +0 -0
- package/src/lib/components/admin/fields/field-group.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/field-group.component.ts +0 -151
- package/src/lib/components/admin/fields/fields.component.html +0 -25
- package/src/lib/components/admin/fields/fields.component.scss +0 -1
- package/src/lib/components/admin/fields/fields.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/fields.component.ts +0 -109
- package/src/lib/components/admin/fields/index.ts +0 -6
- package/src/lib/components/admin/index.ts +0 -3
- package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.html +0 -81
- 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 +0 -23
- package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.ts +0 -239
- package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +0 -23
- package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts +0 -52
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.html +0 -195
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.scss +0 -1
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.spec.ts +0 -21
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.ts +0 -442
- package/src/lib/components/admin/sections/entry-types/index.ts +0 -2
- package/src/lib/components/admin/sections/index.ts +0 -3
- package/src/lib/components/admin/sections/sections.component.html +0 -189
- package/src/lib/components/admin/sections/sections.component.scss +0 -1
- package/src/lib/components/admin/sections/sections.component.spec.ts +0 -21
- package/src/lib/components/admin/sections/sections.component.ts +0 -136
- package/src/lib/components/dynamic-form/entry/entry-config.component.html +0 -26
- package/src/lib/components/dynamic-form/entry/entry-config.component.scss +0 -27
- package/src/lib/components/dynamic-form/entry/entry-config.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/entry/entry-config.component.ts +0 -119
- package/src/lib/components/dynamic-form/entry/entry-config.ts +0 -22
- package/src/lib/components/dynamic-form/entry/entry-control.component.html +0 -25
- package/src/lib/components/dynamic-form/entry/entry-control.component.scss +0 -35
- package/src/lib/components/dynamic-form/entry/entry-control.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/entry/entry-control.component.ts +0 -111
- package/src/lib/components/dynamic-form/entry/index.ts +0 -3
- package/src/lib/components/dynamic-form/form-control-group.ts +0 -27
- package/src/lib/components/dynamic-form/index.ts +0 -4
- package/src/lib/components/dynamic-form/matrix/index.ts +0 -3
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.html +0 -148
- 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 +0 -21
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.ts +0 -244
- package/src/lib/components/dynamic-form/matrix/matrix-config.ts +0 -63
- package/src/lib/components/dynamic-form/matrix/matrix-control.component.html +0 -42
- 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 +0 -21
- package/src/lib/components/dynamic-form/matrix/matrix-control.component.ts +0 -118
- package/src/lib/components/dynamic-form/table/index.ts +0 -3
- package/src/lib/components/dynamic-form/table/table-config.component.html +0 -85
- package/src/lib/components/dynamic-form/table/table-config.component.scss +0 -10
- package/src/lib/components/dynamic-form/table/table-config.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/table/table-config.component.ts +0 -177
- package/src/lib/components/dynamic-form/table/table-config.ts +0 -45
- package/src/lib/components/dynamic-form/table/table-control.component.html +0 -54
- package/src/lib/components/dynamic-form/table/table-control.component.scss +0 -1
- package/src/lib/components/dynamic-form/table/table-control.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/table/table-control.component.ts +0 -127
- package/src/lib/components/index.ts +0 -2
- package/src/lib/constants/index.ts +0 -1
- package/src/lib/constants/styles.ts +0 -18
- package/src/lib/enums/ecms-component.ts +0 -11
- package/src/lib/enums/index.ts +0 -1
- package/src/lib/proxy/README.md +0 -17
- package/src/lib/proxy/dignite/abp/data/index.ts +0 -1
- package/src/lib/proxy/dignite/abp/data/models.ts +0 -4
- package/src/lib/proxy/dignite/abp/index.ts +0 -3
- package/src/lib/proxy/dignite/abp/regionalization-management/models.ts +0 -10
- package/src/lib/proxy/dignite/abp/regionalization-management/regionalization.service.ts +0 -29
- package/src/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.ts +0 -20
- package/src/lib/proxy/dignite/cms/admin/dynamic-forms/models.ts +0 -6
- package/src/lib/proxy/dignite/cms/admin/entries/entry-admin.service.ts +0 -109
- package/src/lib/proxy/dignite/cms/admin/entries/models.ts +0 -69
- package/src/lib/proxy/dignite/cms/admin/fields/field-admin.service.ts +0 -64
- package/src/lib/proxy/dignite/cms/admin/fields/field-group-admin.service.ts +0 -56
- package/src/lib/proxy/dignite/cms/admin/index.ts +0 -5
- package/src/lib/proxy/dignite/cms/admin/sections/entry-type-admin.service.ts +0 -55
- package/src/lib/proxy/dignite/cms/admin/sections/section-admin.service.ts +0 -74
- package/src/lib/proxy/dignite/cms/entries/entry-status.enum.ts +0 -8
- package/src/lib/proxy/dignite/cms/fields/index.ts +0 -1
- package/src/lib/proxy/dignite/cms/fields/models.ts +0 -9
- package/src/lib/proxy/dignite/cms/index.ts +0 -5
- package/src/lib/proxy/dignite/cms/sections/models.ts +0 -15
- package/src/lib/proxy/dignite/cms/sections/section-type.enum.ts +0 -9
- package/src/lib/proxy/dignite/index.ts +0 -3
- package/src/lib/proxy/generate-proxy.json +0 -54593
- package/src/lib/proxy/index.ts +0 -3
- package/src/lib/proxy/volo/cms-kit/index.ts +0 -2
- package/src/lib/proxy/volo/cms-kit/users/index.ts +0 -1
- package/src/lib/proxy/volo/index.ts +0 -2
- package/src/lib/resolvers/extensions-props-action-token.resolver.ts +0 -182
- package/src/lib/resolvers/page-default-toolbar-actions.ts +0 -173
- package/src/lib/resolvers/table-default-entity-actions.ts +0 -29
- package/src/lib/resolvers/table-default-entity-props.ts +0 -62
- package/src/lib/services/appent-content.ts +0 -13
- package/src/lib/services/cms-api.service.ts +0 -90
- package/src/lib/services/cms.service.ts +0 -18
- package/src/lib/services/field-abstracts.service.ts +0 -39
- package/src/lib/services/index.ts +0 -3
- package/src/lib/services/validator.ts +0 -10
- package/src/test.ts +0 -26
- package/tsconfig.lib.json +0 -16
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
- /package/{src/lib/proxy/dignite/abp/regionalization-management/index.ts → lib/proxy/dignite/abp/regionalization-management/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/cms/admin/dynamic-forms/index.ts → lib/proxy/dignite/cms/admin/dynamic-forms/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/cms/admin/entries/index.ts → lib/proxy/dignite/cms/admin/entries/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/cms/admin/fields/index.ts → lib/proxy/dignite/cms/admin/fields/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/cms/admin/sections/index.ts → lib/proxy/dignite/cms/admin/sections/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/cms/entries/index.ts → lib/proxy/dignite/cms/entries/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/cms/sections/index.ts → lib/proxy/dignite/cms/sections/index.d.ts} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
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(): void;
|
|
12
|
+
/**表单控件类型 */
|
|
13
|
+
fromControlList: any[];
|
|
14
|
+
/**获取表单控件类型 */
|
|
15
|
+
getFromControlList(): Promise<unknown>;
|
|
16
|
+
getExcludeAssignControl(typeName?: any): any[];
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldAbstractsService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FieldAbstractsService>;
|
|
19
|
+
}
|
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.11",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "~18.1.0",
|
|
6
6
|
"@angular/core": "~18.1.0"
|
|
@@ -9,14 +9,29 @@
|
|
|
9
9
|
"pinyin-pro": "^3.19.6",
|
|
10
10
|
"tslib": "^2.3.0"
|
|
11
11
|
},
|
|
12
|
-
"allowedNonPeerDependencies":true,
|
|
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
|
+
}
|
|
17
36
|
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
37
|
+
}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export * from './lib/cms.module';
|
|
6
|
-
export * from './lib/components/dynamic-form/form-control-group';
|
|
7
|
-
export * from './lib/components/dynamic-form';
|
|
1
|
+
export * from './lib/cms.module';
|
|
2
|
+
export * from './lib/components/dynamic-form/form-control-group';
|
|
3
|
+
export * from './lib/components/dynamic-form';
|
package/config/ng-package.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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,68 +0,0 @@
|
|
|
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
|
-
}
|
package/ng-package.json
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
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
|
-
}
|
package/src/lib/cms.module.ts
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,137 +0,0 @@
|
|
|
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
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
});
|