@dignite-ng/expand.cms 0.0.19 → 0.0.20
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 +7 -0
- package/config/src/cms-config.module.ts +12 -0
- package/config/{enums/index.d.ts → src/enums/index.ts} +1 -1
- package/config/src/enums/route-names.ts +8 -0
- package/config/{providers/index.d.ts → src/providers/index.ts} +1 -1
- package/config/src/providers/route.provider.ts +66 -0
- package/config/{public-api.d.ts → src/public-api.ts} +3 -3
- package/karma.conf.js +44 -0
- package/ng-package.json +7 -0
- package/package.json +19 -38
- package/src/lib/cms-routing.module.ts +111 -0
- package/src/lib/cms.module.ts +119 -0
- package/src/lib/components/admin/entries/create-or-edit-entries.component.html +115 -0
- package/src/lib/components/admin/entries/create-or-edit-entries.component.scss +25 -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 +287 -0
- package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +36 -0
- package/src/lib/components/admin/entries/create.component.html +13 -0
- package/src/lib/components/admin/entries/create.component.scss +21 -0
- package/src/lib/components/admin/entries/create.component.spec.ts +21 -0
- package/src/lib/components/admin/entries/create.component.ts +103 -0
- package/src/lib/components/admin/entries/edit.component.html +9 -0
- package/src/lib/components/admin/entries/edit.component.scss +26 -0
- package/src/lib/components/admin/entries/edit.component.spec.ts +21 -0
- package/src/lib/components/admin/entries/edit.component.ts +103 -0
- package/src/lib/components/admin/entries/entries.component.html +106 -0
- package/src/lib/components/admin/entries/entries.component.scss +80 -0
- package/src/lib/components/admin/entries/entries.component.spec.ts +21 -0
- package/src/lib/components/admin/entries/entries.component.ts +216 -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 +10 -0
- package/src/lib/components/admin/fields/create-field.component.spec.ts +21 -0
- package/src/lib/components/admin/fields/create-field.component.ts +68 -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 +119 -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 +13 -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 +100 -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 +132 -0
- package/src/lib/components/admin/fields/fields.component.html +73 -0
- package/src/lib/components/admin/fields/fields.component.scss +11 -0
- package/src/lib/components/admin/fields/fields.component.spec.ts +21 -0
- package/src/lib/components/admin/fields/fields.component.ts +111 -0
- package/src/lib/components/admin/fields/index.ts +6 -0
- package/src/lib/components/admin/index.ts +4 -0
- package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +36 -0
- package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts +79 -0
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.html +191 -0
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.scss +24 -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 +412 -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 +191 -0
- package/src/lib/components/admin/sections/sections.component.scss +26 -0
- package/src/lib/components/admin/sections/sections.component.spec.ts +21 -0
- package/src/lib/components/admin/sections/sections.component.ts +334 -0
- package/src/lib/components/admin/sites/create-or-update-sites-input-base.ts +31 -0
- package/src/lib/components/admin/sites/index.ts +2 -0
- package/src/lib/components/admin/sites/sites.component.html +154 -0
- package/src/lib/components/admin/sites/sites.component.scss +19 -0
- package/src/lib/components/admin/sites/sites.component.spec.ts +21 -0
- package/src/lib/components/admin/sites/sites.component.ts +293 -0
- package/src/lib/components/dynamic-form/entry/entry-config.component.html +36 -0
- package/src/lib/components/dynamic-form/entry/entry-config.component.scss +0 -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 +115 -0
- package/src/lib/components/dynamic-form/entry/entry-config.ts +24 -0
- package/src/lib/components/dynamic-form/entry/entry-control.component.html +26 -0
- package/src/lib/components/dynamic-form/entry/entry-control.component.scss +20 -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 +110 -0
- package/src/lib/components/dynamic-form/entry/index.ts +3 -0
- package/src/lib/components/dynamic-form/form-control-group.ts +31 -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 +147 -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 +238 -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 +104 -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 +170 -0
- package/src/lib/components/dynamic-form/table/table-config.ts +45 -0
- package/src/lib/components/dynamic-form/table/table-control.component.html +55 -0
- package/src/lib/components/dynamic-form/table/table-control.component.scss +10 -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 +107 -0
- package/src/lib/components/index.ts +2 -0
- package/src/lib/constants/index.ts +1 -0
- package/src/lib/constants/styles.ts +31 -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/admin/dynamic-forms/form-admin.service.ts +21 -0
- package/src/lib/proxy/admin/dynamic-forms/models.ts +5 -0
- package/src/lib/proxy/admin/entries/entry-admin.service.ts +100 -0
- package/src/lib/proxy/admin/entries/models.ts +73 -0
- package/src/lib/proxy/admin/fields/field-admin.service.ts +64 -0
- package/src/lib/proxy/admin/fields/field-group-admin.service.ts +56 -0
- package/{lib/proxy/admin/fields/models.d.ts → src/lib/proxy/admin/fields/models.ts} +42 -34
- package/src/lib/proxy/admin/sections/entry-type-admin.service.ts +55 -0
- package/{lib/proxy/admin/sections/models.d.ts → src/lib/proxy/admin/sections/models.ts} +88 -74
- package/src/lib/proxy/admin/sections/section-admin.service.ts +74 -0
- package/{lib/proxy/admin/sites/models.d.ts → src/lib/proxy/admin/sites/models.ts} +36 -30
- package/src/lib/proxy/admin/sites/site-admin.service.ts +72 -0
- package/src/lib/proxy/dignite/abp/data/models.ts +4 -0
- package/src/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.ts +65 -0
- package/{lib/proxy/dignite/file-explorer/directories/models.d.ts → src/lib/proxy/dignite/file-explorer/directories/models.ts} +35 -29
- package/src/lib/proxy/dignite/file-explorer/files/file-descriptor.service.ts +86 -0
- package/src/lib/proxy/dignite/file-explorer/files/models.ts +57 -0
- package/src/lib/proxy/entries/entry-status.enum.ts +8 -0
- package/src/lib/proxy/fields/models.ts +9 -0
- package/src/lib/proxy/generate-proxy.json +11821 -0
- package/{lib/proxy/microsoft/asp-net-core/mvc/models.d.ts → src/lib/proxy/microsoft/asp-net-core/mvc/models.ts} +12 -10
- package/src/lib/proxy/microsoft/extensions/primitives/models.ts +9 -0
- package/{lib/proxy/microsoft/net/http/headers/models.d.ts → src/lib/proxy/microsoft/net/http/headers/models.ts} +7 -6
- package/src/lib/proxy/sections/models.ts +14 -0
- package/src/lib/proxy/sections/section-type.enum.ts +9 -0
- package/src/lib/proxy/sites/models.ts +5 -0
- package/src/lib/proxy/volo/abp/content/models.ts +6 -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/services/appent-content.ts +13 -0
- package/src/lib/services/cms-api.service.ts +71 -0
- package/src/lib/services/cms.service.ts +18 -0
- package/src/lib/services/field-abstracts.service.ts +41 -0
- package/src/lib/services/index.ts +4 -0
- package/src/lib/services/simple-reuse-strategy.ts +49 -0
- package/src/lib/services/update-list.service.ts +15 -0
- package/src/lib/toolbar/index.ts +2 -0
- package/src/lib/toolbar/toolbar-btn-default-action.ts +171 -0
- package/src/lib/toolbar/toolbar-config.ts +95 -0
- package/{public-api.d.ts → src/public-api.ts} +12 -8
- package/src/test.ts +26 -0
- package/tsconfig.lib.json +20 -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/enums/route-names.d.ts +0 -8
- package/config/index.d.ts +0 -5
- package/config/providers/route.provider.d.ts +0 -8
- package/esm2022/config/cms-config.module.mjs +0 -19
- 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 -2
- package/esm2022/config/providers/index.mjs +0 -2
- package/esm2022/config/providers/route.provider.mjs +0 -64
- 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 -100
- package/esm2022/lib/cms.module.mjs +0 -156
- package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +0 -285
- package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +0 -32
- package/esm2022/lib/components/admin/entries/create.component.mjs +0 -107
- package/esm2022/lib/components/admin/entries/edit.component.mjs +0 -110
- package/esm2022/lib/components/admin/entries/entries.component.mjs +0 -212
- package/esm2022/lib/components/admin/entries/index.mjs +0 -5
- package/esm2022/lib/components/admin/fields/create-field.component.mjs +0 -82
- package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +0 -121
- 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 -110
- package/esm2022/lib/components/admin/fields/field-group.component.mjs +0 -124
- package/esm2022/lib/components/admin/fields/fields.component.mjs +0 -119
- package/esm2022/lib/components/admin/fields/index.mjs +0 -7
- package/esm2022/lib/components/admin/index.mjs +0 -5
- package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +0 -27
- 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 -418
- 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 -334
- package/esm2022/lib/components/admin/sites/create-or-update-sites-input-base.mjs +0 -23
- package/esm2022/lib/components/admin/sites/index.mjs +0 -3
- package/esm2022/lib/components/admin/sites/sites.component.mjs +0 -285
- package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +0 -125
- package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +0 -18
- package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +0 -115
- package/esm2022/lib/components/dynamic-form/entry/index.mjs +0 -4
- package/esm2022/lib/components/dynamic-form/form-control-group.mjs +0 -31
- 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 -229
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +0 -50
- package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +0 -111
- package/esm2022/lib/components/dynamic-form/table/index.mjs +0 -4
- package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +0 -174
- package/esm2022/lib/components/dynamic-form/table/table-config.mjs +0 -38
- package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +0 -114
- package/esm2022/lib/components/index.mjs +0 -3
- package/esm2022/lib/constants/index.mjs +0 -2
- package/esm2022/lib/constants/styles.mjs +0 -32
- 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 -24
- 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 -67
- 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 -47
- package/esm2022/lib/proxy/admin/fields/field-group-admin.service.mjs +0 -43
- 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/index.mjs +0 -7
- package/esm2022/lib/proxy/admin/sections/entry-type-admin.service.mjs +0 -43
- 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 -53
- package/esm2022/lib/proxy/admin/sites/index.mjs +0 -3
- package/esm2022/lib/proxy/admin/sites/models.mjs +0 -2
- package/esm2022/lib/proxy/admin/sites/site-admin.service.mjs +0 -51
- package/esm2022/lib/proxy/dignite/abp/data/index.mjs +0 -2
- package/esm2022/lib/proxy/dignite/abp/data/models.mjs +0 -2
- package/esm2022/lib/proxy/dignite/abp/index.mjs +0 -3
- package/esm2022/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.mjs +0 -48
- package/esm2022/lib/proxy/dignite/file-explorer/directories/index.mjs +0 -3
- package/esm2022/lib/proxy/dignite/file-explorer/directories/models.mjs +0 -2
- package/esm2022/lib/proxy/dignite/file-explorer/files/file-descriptor.service.mjs +0 -60
- package/esm2022/lib/proxy/dignite/file-explorer/files/index.mjs +0 -3
- package/esm2022/lib/proxy/dignite/file-explorer/files/models.mjs +0 -2
- package/esm2022/lib/proxy/dignite/file-explorer/index.mjs +0 -4
- package/esm2022/lib/proxy/dignite/index.mjs +0 -4
- 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/index.mjs +0 -2
- package/esm2022/lib/proxy/fields/models.mjs +0 -2
- package/esm2022/lib/proxy/index.mjs +0 -10
- package/esm2022/lib/proxy/microsoft/asp-net-core/index.mjs +0 -3
- package/esm2022/lib/proxy/microsoft/asp-net-core/mvc/index.mjs +0 -2
- package/esm2022/lib/proxy/microsoft/asp-net-core/mvc/models.mjs +0 -2
- package/esm2022/lib/proxy/microsoft/extensions/index.mjs +0 -3
- package/esm2022/lib/proxy/microsoft/extensions/primitives/index.mjs +0 -2
- package/esm2022/lib/proxy/microsoft/extensions/primitives/models.mjs +0 -2
- package/esm2022/lib/proxy/microsoft/index.mjs +0 -5
- package/esm2022/lib/proxy/microsoft/net/http/headers/index.mjs +0 -2
- package/esm2022/lib/proxy/microsoft/net/http/headers/models.mjs +0 -2
- package/esm2022/lib/proxy/microsoft/net/http/index.mjs +0 -3
- package/esm2022/lib/proxy/microsoft/net/index.mjs +0 -3
- 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/sites/index.mjs +0 -2
- package/esm2022/lib/proxy/sites/models.mjs +0 -2
- package/esm2022/lib/proxy/volo/abp/content/index.mjs +0 -2
- package/esm2022/lib/proxy/volo/abp/content/models.mjs +0 -2
- package/esm2022/lib/proxy/volo/abp/index.mjs +0 -3
- package/esm2022/lib/proxy/volo/cms-kit/index.mjs +0 -3
- package/esm2022/lib/proxy/volo/cms-kit/users/index.mjs +0 -2
- package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +0 -2
- package/esm2022/lib/proxy/volo/index.mjs +0 -4
- package/esm2022/lib/services/appent-content.mjs +0 -15
- package/esm2022/lib/services/cms-api.service.mjs +0 -80
- package/esm2022/lib/services/cms.service.mjs +0 -23
- package/esm2022/lib/services/field-abstracts.service.mjs +0 -45
- package/esm2022/lib/services/index.mjs +0 -4
- package/esm2022/lib/services/simple-reuse-strategy.mjs +0 -43
- package/esm2022/lib/services/update-list.service.mjs +0 -19
- package/esm2022/lib/toolbar/index.mjs +0 -3
- package/esm2022/lib/toolbar/toolbar-btn-default-action.mjs +0 -160
- package/esm2022/lib/toolbar/toolbar-config.mjs +0 -81
- package/esm2022/public-api.mjs +0 -12
- package/fesm2022/dignite-ng-expand.cms-config.mjs +0 -87
- package/fesm2022/dignite-ng-expand.cms-config.mjs.map +0 -1
- package/fesm2022/dignite-ng-expand.cms.mjs +0 -4515
- 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 -40
- package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +0 -91
- 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 -40
- package/lib/components/admin/entries/edit.component.d.ts +0 -42
- package/lib/components/admin/entries/entries.component.d.ts +0 -66
- package/lib/components/admin/entries/index.d.ts +0 -4
- package/lib/components/admin/fields/create-field.component.d.ts +0 -31
- package/lib/components/admin/fields/create-or-edit-field.component.d.ts +0 -37
- 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 -40
- package/lib/components/admin/fields/field-group.component.d.ts +0 -51
- package/lib/components/admin/fields/fields.component.d.ts +0 -37
- package/lib/components/admin/fields/index.d.ts +0 -6
- package/lib/components/admin/index.d.ts +0 -4
- package/lib/components/admin/sections/create-or-update-sections-input-base.d.ts +0 -17
- 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 -132
- 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 -95
- package/lib/components/admin/sites/create-or-update-sites-input-base.d.ts +0 -12
- package/lib/components/admin/sites/index.d.ts +0 -2
- package/lib/components/admin/sites/sites.component.d.ts +0 -72
- package/lib/components/dynamic-form/entry/entry-config.component.d.ts +0 -42
- 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 -36
- package/lib/components/index.d.ts +0 -2
- package/lib/constants/index.d.ts +0 -1
- 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 -21
- package/lib/proxy/admin/entries/models.d.ts +0 -65
- 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/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/sites/site-admin.service.d.ts +0 -18
- package/lib/proxy/dignite/abp/data/models.d.ts +0 -3
- package/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.d.ts +0 -17
- package/lib/proxy/dignite/file-explorer/files/file-descriptor.service.d.ts +0 -20
- package/lib/proxy/dignite/file-explorer/files/models.d.ts +0 -50
- package/lib/proxy/entries/entry-status.enum.d.ts +0 -5
- package/lib/proxy/fields/models.d.ts +0 -8
- package/lib/proxy/microsoft/extensions/primitives/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/sites/models.d.ts +0 -4
- package/lib/proxy/volo/abp/content/models.d.ts +0 -5
- package/lib/services/appent-content.d.ts +0 -1
- package/lib/services/cms-api.service.d.ts +0 -20
- 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/lib/services/simple-reuse-strategy.d.ts +0 -11
- package/lib/services/update-list.service.d.ts +0 -9
- package/lib/toolbar/index.d.ts +0 -2
- package/lib/toolbar/toolbar-btn-default-action.d.ts +0 -19
- package/lib/toolbar/toolbar-config.d.ts +0 -57
- /package/{lib/proxy/admin/dynamic-forms/index.d.ts → src/lib/proxy/admin/dynamic-forms/index.ts} +0 -0
- /package/{lib/proxy/admin/entries/index.d.ts → src/lib/proxy/admin/entries/index.ts} +0 -0
- /package/{lib/proxy/admin/fields/index.d.ts → src/lib/proxy/admin/fields/index.ts} +0 -0
- /package/{lib/proxy/admin/index.d.ts → src/lib/proxy/admin/index.ts} +0 -0
- /package/{lib/proxy/admin/sections/index.d.ts → src/lib/proxy/admin/sections/index.ts} +0 -0
- /package/{lib/proxy/admin/sites/index.d.ts → src/lib/proxy/admin/sites/index.ts} +0 -0
- /package/{lib/proxy/dignite/abp/data/index.d.ts → src/lib/proxy/dignite/abp/data/index.ts} +0 -0
- /package/{lib/proxy/dignite/abp/index.d.ts → src/lib/proxy/dignite/abp/index.ts} +0 -0
- /package/{lib/proxy/dignite/file-explorer/directories/index.d.ts → src/lib/proxy/dignite/file-explorer/directories/index.ts} +0 -0
- /package/{lib/proxy/dignite/file-explorer/files/index.d.ts → src/lib/proxy/dignite/file-explorer/files/index.ts} +0 -0
- /package/{lib/proxy/dignite/file-explorer/index.d.ts → src/lib/proxy/dignite/file-explorer/index.ts} +0 -0
- /package/{lib/proxy/dignite/index.d.ts → src/lib/proxy/dignite/index.ts} +0 -0
- /package/{lib/proxy/entries/index.d.ts → src/lib/proxy/entries/index.ts} +0 -0
- /package/{lib/proxy/fields/index.d.ts → src/lib/proxy/fields/index.ts} +0 -0
- /package/{lib/proxy/index.d.ts → src/lib/proxy/index.ts} +0 -0
- /package/{lib/proxy/microsoft/asp-net-core/index.d.ts → src/lib/proxy/microsoft/asp-net-core/index.ts} +0 -0
- /package/{lib/proxy/microsoft/asp-net-core/mvc/index.d.ts → src/lib/proxy/microsoft/asp-net-core/mvc/index.ts} +0 -0
- /package/{lib/proxy/microsoft/extensions/index.d.ts → src/lib/proxy/microsoft/extensions/index.ts} +0 -0
- /package/{lib/proxy/microsoft/extensions/primitives/index.d.ts → src/lib/proxy/microsoft/extensions/primitives/index.ts} +0 -0
- /package/{lib/proxy/microsoft/index.d.ts → src/lib/proxy/microsoft/index.ts} +0 -0
- /package/{lib/proxy/microsoft/net/http/headers/index.d.ts → src/lib/proxy/microsoft/net/http/headers/index.ts} +0 -0
- /package/{lib/proxy/microsoft/net/http/index.d.ts → src/lib/proxy/microsoft/net/http/index.ts} +0 -0
- /package/{lib/proxy/microsoft/net/index.d.ts → src/lib/proxy/microsoft/net/index.ts} +0 -0
- /package/{lib/proxy/sections/index.d.ts → src/lib/proxy/sections/index.ts} +0 -0
- /package/{lib/proxy/sites/index.d.ts → src/lib/proxy/sites/index.ts} +0 -0
- /package/{lib/proxy/volo/abp/content/index.d.ts → src/lib/proxy/volo/abp/content/index.ts} +0 -0
- /package/{lib/proxy/volo/abp/index.d.ts → src/lib/proxy/volo/abp/index.ts} +0 -0
- /package/{lib/proxy/volo/cms-kit/index.d.ts → src/lib/proxy/volo/cms-kit/index.ts} +0 -0
- /package/{lib/proxy/volo/cms-kit/users/index.d.ts → src/lib/proxy/volo/cms-kit/users/index.ts} +0 -0
- /package/{lib/proxy/volo/index.d.ts → src/lib/proxy/volo/index.ts} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ModuleWithProviders, NgModule } from '@angular/core';
|
|
2
|
+
import { CMS_ROUTE_PROVIDERS } from './providers/route.provider';
|
|
3
|
+
|
|
4
|
+
@NgModule()
|
|
5
|
+
export class CmsConfigModule {
|
|
6
|
+
static forRoot(): ModuleWithProviders<CmsConfigModule> {
|
|
7
|
+
return {
|
|
8
|
+
ngModule: CmsConfigModule,
|
|
9
|
+
providers: [CMS_ROUTE_PROVIDERS],
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -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,66 @@
|
|
|
1
|
+
import { eLayoutType, RoutesService } from '@abp/ng.core';
|
|
2
|
+
import { APP_INITIALIZER } from '@angular/core';
|
|
3
|
+
import { eCmsRouteNames } from '../enums/route-names';
|
|
4
|
+
|
|
5
|
+
export const CMS_ROUTE_PROVIDERS = [
|
|
6
|
+
{
|
|
7
|
+
provide: APP_INITIALIZER,
|
|
8
|
+
useFactory: configureRoutes,
|
|
9
|
+
deps: [RoutesService],
|
|
10
|
+
multi: true,
|
|
11
|
+
},
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
export function configureRoutes(routesService: RoutesService) {
|
|
15
|
+
return () => {
|
|
16
|
+
routesService.add([
|
|
17
|
+
{
|
|
18
|
+
path: '/cms',
|
|
19
|
+
name: eCmsRouteNames.Cms,
|
|
20
|
+
iconClass: 'fas fa fa-newspaper-o',
|
|
21
|
+
layout: eLayoutType.application,
|
|
22
|
+
order: 3,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
path: '/cms/admin/entries',
|
|
26
|
+
name: eCmsRouteNames.Entries,
|
|
27
|
+
parentName:eCmsRouteNames.Cms,
|
|
28
|
+
iconClass: 'fas fa fa-file-text-o',
|
|
29
|
+
layout: eLayoutType.application,
|
|
30
|
+
order: 4,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
path: '',
|
|
34
|
+
name: eCmsRouteNames.Settings,
|
|
35
|
+
parentName:eCmsRouteNames.Cms,
|
|
36
|
+
iconClass: 'fas fa fa-cog',
|
|
37
|
+
layout: eLayoutType.application,
|
|
38
|
+
order: 5,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
path: '/cms/admin/fields',
|
|
42
|
+
name: eCmsRouteNames.Fields,
|
|
43
|
+
parentName:eCmsRouteNames.Settings,
|
|
44
|
+
iconClass: 'fas fa fa-pencil-square-o',
|
|
45
|
+
layout: eLayoutType.application,
|
|
46
|
+
order: 6,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
path: '/cms/admin/sites',
|
|
50
|
+
name: eCmsRouteNames.Sites,
|
|
51
|
+
parentName:eCmsRouteNames.Settings,
|
|
52
|
+
iconClass: 'fas fa fa-globe ',
|
|
53
|
+
layout: eLayoutType.application,
|
|
54
|
+
order: 7,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
path: '/cms/admin/sections',
|
|
58
|
+
name: eCmsRouteNames.Sections,
|
|
59
|
+
parentName:eCmsRouteNames.Settings,
|
|
60
|
+
iconClass: 'fas fa fa-newspaper-o',
|
|
61
|
+
layout: eLayoutType.application,
|
|
62
|
+
order: 8,
|
|
63
|
+
},
|
|
64
|
+
]);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -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/karma.conf.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Karma configuration file, see link for more information
|
|
2
|
+
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
+
|
|
4
|
+
module.exports = function (config) {
|
|
5
|
+
config.set({
|
|
6
|
+
basePath: '',
|
|
7
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
+
plugins: [
|
|
9
|
+
require('karma-jasmine'),
|
|
10
|
+
require('karma-chrome-launcher'),
|
|
11
|
+
require('karma-jasmine-html-reporter'),
|
|
12
|
+
require('karma-coverage'),
|
|
13
|
+
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
+
],
|
|
15
|
+
client: {
|
|
16
|
+
jasmine: {
|
|
17
|
+
// you can add configuration options for Jasmine here
|
|
18
|
+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
19
|
+
// for example, you can disable the random execution with `random: false`
|
|
20
|
+
// or set a specific seed with `seed: 4321`
|
|
21
|
+
},
|
|
22
|
+
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
23
|
+
},
|
|
24
|
+
jasmineHtmlReporter: {
|
|
25
|
+
suppressAll: true // removes the duplicated traces
|
|
26
|
+
},
|
|
27
|
+
coverageReporter: {
|
|
28
|
+
dir: require('path').join(__dirname, '../../coverage/dev-app'),
|
|
29
|
+
subdir: '.',
|
|
30
|
+
reporters: [
|
|
31
|
+
{ type: 'html' },
|
|
32
|
+
{ type: 'text-summary' }
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
reporters: ['progress', 'kjhtml'],
|
|
36
|
+
port: 9876,
|
|
37
|
+
colors: true,
|
|
38
|
+
logLevel: config.LOG_INFO,
|
|
39
|
+
autoWatch: true,
|
|
40
|
+
browsers: ['Chrome'],
|
|
41
|
+
singleRun: false,
|
|
42
|
+
restartOnFileChange: true
|
|
43
|
+
});
|
|
44
|
+
};
|
package/ng-package.json
ADDED
package/package.json
CHANGED
|
@@ -1,38 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dignite-ng/expand.cms",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^16.2.0",
|
|
6
|
-
"@angular/core": "^16.2.0",
|
|
7
|
-
"pinyin-pro": "^3.19.6",
|
|
8
|
-
"@dignite-ng/expand.dynamic-form": "^0.0.10",
|
|
9
|
-
"@dignite-ng/expand.file-explorer": "^0.0.10"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"tslib": "^2.3.0"
|
|
13
|
-
},
|
|
14
|
-
"sideEffects": false,
|
|
15
|
-
"publishConfig":
|
|
16
|
-
"access":
|
|
17
|
-
"registry":
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"typings": "index.d.ts",
|
|
21
|
-
"exports": {
|
|
22
|
-
"./package.json": {
|
|
23
|
-
"default": "./package.json"
|
|
24
|
-
},
|
|
25
|
-
".": {
|
|
26
|
-
"types": "./index.d.ts",
|
|
27
|
-
"esm2022": "./esm2022/dignite-ng-expand.cms.mjs",
|
|
28
|
-
"esm": "./esm2022/dignite-ng-expand.cms.mjs",
|
|
29
|
-
"default": "./fesm2022/dignite-ng-expand.cms.mjs"
|
|
30
|
-
},
|
|
31
|
-
"./config": {
|
|
32
|
-
"types": "./config/index.d.ts",
|
|
33
|
-
"esm2022": "./esm2022/config/dignite-ng-expand.cms-config.mjs",
|
|
34
|
-
"esm": "./esm2022/config/dignite-ng-expand.cms-config.mjs",
|
|
35
|
-
"default": "./fesm2022/dignite-ng-expand.cms-config.mjs"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@dignite-ng/expand.cms",
|
|
3
|
+
"version": "0.0.20",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^16.2.0",
|
|
6
|
+
"@angular/core": "^16.2.0",
|
|
7
|
+
"pinyin-pro": "^3.19.6",
|
|
8
|
+
"@dignite-ng/expand.dynamic-form": "^0.0.10",
|
|
9
|
+
"@dignite-ng/expand.file-explorer": "^0.0.10"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"tslib": "^2.3.0"
|
|
13
|
+
},
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"publishConfig":{
|
|
16
|
+
"access":"public",
|
|
17
|
+
"registry":"https://registry.npmjs.org/"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { NgModule} from '@angular/core';
|
|
2
|
+
import { Routes, RouterModule, RouteReuseStrategy} from '@angular/router';
|
|
3
|
+
import {
|
|
4
|
+
CreateComponent,
|
|
5
|
+
CreateFieldComponent,
|
|
6
|
+
CreateOrEditComponent,
|
|
7
|
+
EditComponent,
|
|
8
|
+
EditFieldComponent,
|
|
9
|
+
EntriesComponent,
|
|
10
|
+
FieldsComponent,
|
|
11
|
+
SectionsComponent,
|
|
12
|
+
SitesComponent,
|
|
13
|
+
} from './components';
|
|
14
|
+
import {
|
|
15
|
+
AuthGuard,
|
|
16
|
+
PermissionGuard,
|
|
17
|
+
} from '@abp/ng.core';
|
|
18
|
+
import { CmsExtensionsResolver } from './toolbar';
|
|
19
|
+
import { appentStyle } from './services/appent-content';
|
|
20
|
+
import { SimpleReuseStrategy } from './services';
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
const routes: Routes = [
|
|
24
|
+
{
|
|
25
|
+
path: 'admin',
|
|
26
|
+
canActivate: [AuthGuard, PermissionGuard],
|
|
27
|
+
resolve: [CmsExtensionsResolver, appentStyle],
|
|
28
|
+
children: [
|
|
29
|
+
{
|
|
30
|
+
path: 'entries',
|
|
31
|
+
|
|
32
|
+
children: [
|
|
33
|
+
{
|
|
34
|
+
path: '',
|
|
35
|
+
component: EntriesComponent,
|
|
36
|
+
data: { keep: true }
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
path: 'create',
|
|
40
|
+
component: CreateComponent,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
path: ':entrieId/edit',
|
|
44
|
+
component: EditComponent,
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
path: '',
|
|
50
|
+
children: [
|
|
51
|
+
{
|
|
52
|
+
path: 'fields',
|
|
53
|
+
children: [
|
|
54
|
+
{
|
|
55
|
+
path: '',
|
|
56
|
+
component: FieldsComponent,
|
|
57
|
+
data: { keep: true }
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
path: 'create',
|
|
61
|
+
component: CreateFieldComponent,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
path: ':id/edit',
|
|
65
|
+
component: EditFieldComponent,
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
path: 'sites',
|
|
71
|
+
component: SitesComponent,
|
|
72
|
+
data: { keep: true }
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
path: 'sections',
|
|
76
|
+
children: [
|
|
77
|
+
{
|
|
78
|
+
path: '',
|
|
79
|
+
data: { keep: true },
|
|
80
|
+
component: SectionsComponent,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
path: ':sectionsId/entry-types',
|
|
84
|
+
children: [
|
|
85
|
+
{
|
|
86
|
+
path: 'create',
|
|
87
|
+
component: CreateOrEditComponent,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
path: ':entryTypesId/edit',
|
|
91
|
+
component: CreateOrEditComponent,
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
];
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
@NgModule({
|
|
105
|
+
imports: [RouterModule.forChild(routes)],
|
|
106
|
+
exports: [RouterModule],
|
|
107
|
+
providers:[
|
|
108
|
+
]
|
|
109
|
+
})
|
|
110
|
+
export class CmsRoutingModule {
|
|
111
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
SitesComponent,
|
|
18
|
+
|
|
19
|
+
} from './components';
|
|
20
|
+
import {
|
|
21
|
+
MatrixConfigComponent,
|
|
22
|
+
MatrixControlComponent,
|
|
23
|
+
TableConfigComponent,
|
|
24
|
+
TableControlComponent,
|
|
25
|
+
EntryConfigComponent,
|
|
26
|
+
EntryControlComponent,
|
|
27
|
+
FieldControlGroup
|
|
28
|
+
} from "./components/dynamic-form";
|
|
29
|
+
import { DateAdapter } from '@abp/ng.theme.shared/extensions';
|
|
30
|
+
import {
|
|
31
|
+
NgbDateAdapter,
|
|
32
|
+
NgbDropdownModule,
|
|
33
|
+
NgbNavModule,
|
|
34
|
+
NgbAccordionModule,
|
|
35
|
+
} from '@ng-bootstrap/ng-bootstrap';
|
|
36
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
37
|
+
import { NgxValidateCoreModule } from '@ngx-validate/core';
|
|
38
|
+
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
39
|
+
import { PageModule } from '@abp/ng.components/page';
|
|
40
|
+
import { CommercialUiConfigModule } from '@volo/abp.commercial.ng.ui/config';
|
|
41
|
+
import { CMS_TOOLBAR_ACTION_CONTRIBUTORS } from './toolbar';
|
|
42
|
+
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
43
|
+
import { DynamicFormModule } from '@dignite-ng/expand.dynamic-form';
|
|
44
|
+
import { NzTableModule } from 'ng-zorro-antd/table';
|
|
45
|
+
import {ScrollingModule} from '@angular/cdk/scrolling';
|
|
46
|
+
import { RouteReuseStrategy } from '@angular/router';
|
|
47
|
+
import { SimpleReuseStrategy } from './services/simple-reuse-strategy';
|
|
48
|
+
|
|
49
|
+
@NgModule({
|
|
50
|
+
declarations: [
|
|
51
|
+
EntriesComponent,
|
|
52
|
+
FieldsComponent,
|
|
53
|
+
SitesComponent,
|
|
54
|
+
SectionsComponent,
|
|
55
|
+
FieldGroupComponent,
|
|
56
|
+
CreateFieldComponent,
|
|
57
|
+
EditFieldComponent,
|
|
58
|
+
CreateOrEditFieldComponent,
|
|
59
|
+
CreateOrEditComponent,
|
|
60
|
+
CreateComponent,
|
|
61
|
+
EditComponent,
|
|
62
|
+
CreateOrEditEntriesComponent,
|
|
63
|
+
TableConfigComponent,
|
|
64
|
+
TableControlComponent,
|
|
65
|
+
MatrixConfigComponent,
|
|
66
|
+
MatrixControlComponent,
|
|
67
|
+
EntryConfigComponent,
|
|
68
|
+
EntryControlComponent,
|
|
69
|
+
],
|
|
70
|
+
imports: [
|
|
71
|
+
CoreModule,
|
|
72
|
+
ThemeSharedModule,
|
|
73
|
+
CmsRoutingModule,
|
|
74
|
+
NgbDropdownModule,
|
|
75
|
+
FormsModule,
|
|
76
|
+
ReactiveFormsModule,
|
|
77
|
+
NgxValidateCoreModule,
|
|
78
|
+
NgbNavModule,
|
|
79
|
+
NgbAccordionModule,
|
|
80
|
+
DragDropModule,
|
|
81
|
+
PageModule,
|
|
82
|
+
CommercialUiConfigModule,
|
|
83
|
+
NzSelectModule,
|
|
84
|
+
NzTableModule,
|
|
85
|
+
ScrollingModule,
|
|
86
|
+
DynamicFormModule.forRoot({
|
|
87
|
+
cmsFieldControlGroup: FieldControlGroup
|
|
88
|
+
}),
|
|
89
|
+
],
|
|
90
|
+
exports: [
|
|
91
|
+
TableConfigComponent,
|
|
92
|
+
TableControlComponent,
|
|
93
|
+
MatrixConfigComponent,
|
|
94
|
+
MatrixControlComponent,
|
|
95
|
+
EntryConfigComponent,
|
|
96
|
+
EntryControlComponent,
|
|
97
|
+
],
|
|
98
|
+
providers: [
|
|
99
|
+
{ provide: NgbDateAdapter, useClass: DateAdapter },
|
|
100
|
+
{ provide: RouteReuseStrategy, useClass: SimpleReuseStrategy },
|
|
101
|
+
],
|
|
102
|
+
|
|
103
|
+
})
|
|
104
|
+
export class CmsModule {
|
|
105
|
+
static forChild(options: any = {}): ModuleWithProviders<CmsModule> {
|
|
106
|
+
return {
|
|
107
|
+
ngModule: CmsModule,
|
|
108
|
+
providers: [
|
|
109
|
+
{
|
|
110
|
+
provide: CMS_TOOLBAR_ACTION_CONTRIBUTORS,
|
|
111
|
+
useValue: options.toolbarActionContributors,
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
static forLazy(options: any = {}): NgModuleFactory<CmsModule> {
|
|
117
|
+
return new LazyModuleFactory(CmsModule.forChild(options));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
<div class="create-or-edit-entry-page" [formGroup]="_entity">
|
|
2
|
+
<div class="container ">
|
|
3
|
+
<div class="row">
|
|
4
|
+
<div class="col-md-8 ">
|
|
5
|
+
<div class="card p-2">
|
|
6
|
+
<div class="mb-2">
|
|
7
|
+
<label class="form-label" for="title">{{'Cms::Title' | abpLocalization}}</label>
|
|
8
|
+
<input type="text" class="form-control" (blur)="setTitleToSlugBlur($event)"
|
|
9
|
+
formControlName="title">
|
|
10
|
+
</div>
|
|
11
|
+
<template #FormDynamicRef></template>
|
|
12
|
+
<ng-container *ngFor="let item of entryTypesItem?.fieldTabs;let i =index">
|
|
13
|
+
<ng-container *ngFor="let el of item.fields;let i1 =index">
|
|
14
|
+
<ng-container *ngIf="el&&_entity">
|
|
15
|
+
<df-dynamic [entity]="_entity" [fields]="el"
|
|
16
|
+
[selected]="entrySelect ? entrySelect.extraProperties[el.field.name] : ''"
|
|
17
|
+
[parentFiledName]="'extraProperties'" [culture]="cultureinput.value" ></df-dynamic>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
</ng-container>
|
|
21
|
+
</ng-container>
|
|
22
|
+
</ng-container>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="col-md-4 ">
|
|
26
|
+
<div class="card mb-0 p-2">
|
|
27
|
+
<div class="mb-2">
|
|
28
|
+
<label class="form-label" for="slug">{{'Cms::Slug' | abpLocalization}}</label>
|
|
29
|
+
<input type="text" class="form-control" formControlName="slug">
|
|
30
|
+
<div class="text-danger invalid-feedback" *ngIf="sluginput.errors?.repetition">
|
|
31
|
+
{{sluginput.errors?.repetition}}
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="mb-2">
|
|
35
|
+
<label class="form-label" for="culture">{{'AbpUi::Languages' | abpLocalization}}</label>
|
|
36
|
+
<select class="form-select" formControlName="culture">
|
|
37
|
+
<ng-container *ngFor="let item of languagesList;let i =index">
|
|
38
|
+
<option [value]="item.cultureName">{{item.displayName}}</option>
|
|
39
|
+
</ng-container>
|
|
40
|
+
</select>
|
|
41
|
+
<input type="text" formControlName="culture_shadow"
|
|
42
|
+
style="position: absolute;z-index: -1;opacity: 0;">
|
|
43
|
+
<div class="text-danger invalid-feedback" *ngIf="culture_shadowInput.errors?.repetition">
|
|
44
|
+
{{culture_shadowInput.errors?.repetition}}
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="mb-2">
|
|
48
|
+
<label class="form-label" for="parentId">{{'Cms::ParentEntry' | abpLocalization}}</label>
|
|
49
|
+
<select class="form-select" formControlName="parentId">
|
|
50
|
+
<option value=""></option>
|
|
51
|
+
<ng-container *ngFor="let item of entryTypesList;let i =index">
|
|
52
|
+
<option [value]="item.id">{{item.displayName}}</option>
|
|
53
|
+
</ng-container>
|
|
54
|
+
</select>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="mb-2">
|
|
57
|
+
<label class="form-label" for="publishTime">{{'Cms::PublishTime' | abpLocalization}}</label>
|
|
58
|
+
<input type="datetime-local" class="form-control" step="1" formControlName="publishTime">
|
|
59
|
+
</div>
|
|
60
|
+
<div class="mb-2" *ngIf="isEdit">
|
|
61
|
+
<label class="form-label" for="publishTime">{{'Cms::Version' | abpLocalization}}</label>
|
|
62
|
+
<ul class="list-group">
|
|
63
|
+
<ng-container *ngFor="let item of AllVersionsList">
|
|
64
|
+
<li class="list-group-item flex-between">
|
|
65
|
+
<div>
|
|
66
|
+
{{item.initialVersionId?(item.creationTime| date: 'YYYY/MM/dd HH:m:s'):('Cms::InitialVersion' | abpLocalization)}}
|
|
67
|
+
<span class="badge text-bg-success ms-1"
|
|
68
|
+
*ngIf="item.isActivatedVersion">{{'Cms::IsActive' | abpLocalization}}</span>
|
|
69
|
+
<span class="badge text-bg-primary ms-1"
|
|
70
|
+
*ngIf="item.id === RevisionEntryId">{{'Cms::Editing' |
|
|
71
|
+
abpLocalization}}</span>
|
|
72
|
+
</div>
|
|
73
|
+
<div>
|
|
74
|
+
<div ngbDropdown class="d-inline-block">
|
|
75
|
+
<button type="button" class="btn btn-link-primary p-2 "
|
|
76
|
+
style="line-height: 0;" id="dropdownBasic1" ngbDropdownToggle>
|
|
77
|
+
</button>
|
|
78
|
+
<div ngbDropdownMenu aria-labelledby="dropdownBasic1">
|
|
79
|
+
<button ngbDropdownItem type="button" *ngIf="!item.isActivatedVersion"
|
|
80
|
+
(click)="ActivatedVersion(item.id)">
|
|
81
|
+
<i class="fas fa-check me-1"></i>{{'Cms::IsActive' |
|
|
82
|
+
abpLocalization}}
|
|
83
|
+
</button>
|
|
84
|
+
<button ngbDropdownItem type="button"
|
|
85
|
+
routerLink="/cms/admin/entries/create"
|
|
86
|
+
[queryParams]="{RevisionEntryId:item.id}">
|
|
87
|
+
<i class="fas fa-plus me-1"></i>{{'Cms::NewVersion' |
|
|
88
|
+
abpLocalization}}
|
|
89
|
+
</button>
|
|
90
|
+
<button ngbDropdownItem type="button" (click.stop)="toEditUrl(item.id)"
|
|
91
|
+
*ngIf="item.id !== RevisionEntryId">
|
|
92
|
+
<i class="fas fa-edit me-1"></i>{{'AbpUi::Edit' | abpLocalization}}
|
|
93
|
+
</button>
|
|
94
|
+
<button ngbDropdownItem type="button"
|
|
95
|
+
(click.stop)="delectVersion(item.id)"
|
|
96
|
+
*ngIf="item.initialVersionId&&!item.isActivatedVersion&&item.id !== RevisionEntryId">
|
|
97
|
+
<i class="fas fa-trash me-1"></i>{{'AbpUi::Delete' |
|
|
98
|
+
abpLocalization}}
|
|
99
|
+
</button>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</li>
|
|
104
|
+
</ng-container>
|
|
105
|
+
</ul>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="mb-2">
|
|
108
|
+
<label class="form-label" for="versionNotes">{{'Cms::RevisionNotes' | abpLocalization}}</label>
|
|
109
|
+
<textarea class="form-control" formControlName="versionNotes" rows="3"></textarea>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
::ng-deep .create-or-edit-entry-page {
|
|
2
|
+
.dignite_page {
|
|
3
|
+
height: calc(100vh - 32px - 53px - 40px);
|
|
4
|
+
overflow: auto;
|
|
5
|
+
background: transparent;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.form-control,
|
|
9
|
+
.form-select {
|
|
10
|
+
padding: 0.475rem 1.25rem;
|
|
11
|
+
}
|
|
12
|
+
.cursor-move{
|
|
13
|
+
cursor: move;
|
|
14
|
+
}
|
|
15
|
+
.bordernNavs{
|
|
16
|
+
border: var(--bs-border-width) solid var(--lpx-border-color);
|
|
17
|
+
padding-left: inherit;
|
|
18
|
+
padding-right: inherit;
|
|
19
|
+
}
|
|
20
|
+
.flex-between{
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -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
|
+
});
|