@dignite-ng/expand.cms 0.0.18 → 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 -164
- package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +0 -279
- 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 -112
- 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/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 -3839
- 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 -36
- package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +0 -89
- 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 -33
- 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 -2
- 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,11 @@
|
|
|
1
|
+
export enum ECmsComponent {
|
|
2
|
+
Entries="Cms.Entries",
|
|
3
|
+
Entries_Create="Cms.Entries.Create",
|
|
4
|
+
Entries_Edit="Cms.Entries.Edit",
|
|
5
|
+
Fields="Cms.Fields",
|
|
6
|
+
FieldsCreate="Cms.Fields.Create",
|
|
7
|
+
FieldsEdit="Cms.Fields.Edit",
|
|
8
|
+
Sites="Cms.Sites",
|
|
9
|
+
Sections="Cms.Sections",
|
|
10
|
+
SectionsCreateOrEdit="Cms.Sections.Create.Or.Edit",
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ecms-component'
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Proxy Generation Output
|
|
2
|
+
|
|
3
|
+
This directory includes the output of the latest proxy generation.
|
|
4
|
+
The files and folders in it will be overwritten when proxy generation is run again.
|
|
5
|
+
Therefore, please do not place your own content in this folder.
|
|
6
|
+
|
|
7
|
+
In addition, `generate-proxy.json` works like a lock file.
|
|
8
|
+
It includes information used by the proxy generator, so please do not delete or modify it.
|
|
9
|
+
|
|
10
|
+
Finally, the name of the files and folders should not be changed for two reasons:
|
|
11
|
+
- Proxy generator will keep creating them at those paths and you will have multiple copies of the same content.
|
|
12
|
+
- ABP Suite generates files which include imports from this folder.
|
|
13
|
+
|
|
14
|
+
> **Important Notice:** If you are building a module and are planning to publish to npm,
|
|
15
|
+
> some of the generated proxies are likely to be exported from public-api.ts file. In such a case,
|
|
16
|
+
> please make sure you export files directly and not from barrel exports. In other words,
|
|
17
|
+
> do not include index.ts exports in your public-api.ts exports.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { FormControlDto } from './models';
|
|
2
|
+
import { RestService, Rest } from '@abp/ng.core';
|
|
3
|
+
import type { ListResultDto } from '@abp/ng.core';
|
|
4
|
+
import { Injectable } from '@angular/core';
|
|
5
|
+
|
|
6
|
+
@Injectable({
|
|
7
|
+
providedIn: 'root',
|
|
8
|
+
})
|
|
9
|
+
export class FormAdminService {
|
|
10
|
+
apiName = 'CmsAdmin';
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
getFormControls = (config?: Partial<Rest.Config>) =>
|
|
14
|
+
this.restService.request<any, ListResultDto<FormControlDto>>({
|
|
15
|
+
method: 'GET',
|
|
16
|
+
url: '/api/cms-admin/dynamic-forms/forms',
|
|
17
|
+
},
|
|
18
|
+
{ apiName: this.apiName,...config });
|
|
19
|
+
|
|
20
|
+
constructor(private restService: RestService) {}
|
|
21
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { CreateEntryInput, CultureExistWithSingleSectionInput, EntryDto, EntryTypeExistsInput, GetEntriesInput, MoveEntryInput, SlugExistsInput, UpdateEntryInput } from './models';
|
|
2
|
+
import { RestService, Rest } from '@abp/ng.core';
|
|
3
|
+
import type { ListResultDto, PagedResultDto } from '@abp/ng.core';
|
|
4
|
+
import { Injectable } from '@angular/core';
|
|
5
|
+
|
|
6
|
+
@Injectable({
|
|
7
|
+
providedIn: 'root',
|
|
8
|
+
})
|
|
9
|
+
export class EntryAdminService {
|
|
10
|
+
apiName = 'CmsAdmin';
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
activate = (id: string, config?: Partial<Rest.Config>) =>
|
|
14
|
+
this.restService.request<any, void>({
|
|
15
|
+
method: 'POST',
|
|
16
|
+
url: `/api/cms-admin/entries/activate/${id}`,
|
|
17
|
+
},
|
|
18
|
+
{ apiName: this.apiName,...config });
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
create = (input: CreateEntryInput, config?: Partial<Rest.Config>) =>
|
|
22
|
+
this.restService.request<any, EntryDto>({
|
|
23
|
+
method: 'POST',
|
|
24
|
+
url: '/api/cms-admin/entries?api-version=1.0',
|
|
25
|
+
body: input,
|
|
26
|
+
},
|
|
27
|
+
{ apiName: this.apiName,...config });
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
delete = (id: string, config?: Partial<Rest.Config>) =>
|
|
31
|
+
this.restService.request<any, void>({
|
|
32
|
+
method: 'DELETE',
|
|
33
|
+
url: `/api/cms-admin/entries/${id}`,
|
|
34
|
+
},
|
|
35
|
+
{ apiName: this.apiName,...config });
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
cultureExistWithSingleSection = (input: CultureExistWithSingleSectionInput, config?: Partial<Rest.Config>) =>
|
|
39
|
+
this.restService.request<any, boolean>({
|
|
40
|
+
method: 'GET',
|
|
41
|
+
url: '/api/cms-admin/entries/culture-exists-with-single-section',
|
|
42
|
+
params: { culture: input.culture, sectionId: input.sectionId, entryTypeId: input.entryTypeId },
|
|
43
|
+
},
|
|
44
|
+
{ apiName: this.apiName,...config });
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
get = (id: string, config?: Partial<Rest.Config>) =>
|
|
48
|
+
this.restService.request<any, EntryDto>({
|
|
49
|
+
method: 'GET',
|
|
50
|
+
url: `/api/cms-admin/entries/${id}`,
|
|
51
|
+
},
|
|
52
|
+
{ apiName: this.apiName,...config });
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
getAllVersions = (id: string, config?: Partial<Rest.Config>) =>
|
|
56
|
+
this.restService.request<any, ListResultDto<EntryDto>>({
|
|
57
|
+
method: 'GET',
|
|
58
|
+
url: `/api/cms-admin/entries/${id}/all-versions`,
|
|
59
|
+
},
|
|
60
|
+
{ apiName: this.apiName,...config });
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
getList = (input: GetEntriesInput, config?: Partial<Rest.Config>) =>
|
|
64
|
+
this.restService.request<any, PagedResultDto<EntryDto>>({
|
|
65
|
+
method: 'GET',
|
|
66
|
+
url: '/api/cms-admin/entries',
|
|
67
|
+
params: { culture: input.culture, sectionId: input.sectionId, entryTypeId: input.entryTypeId, startPublishDate: input.startPublishDate, expiryPublishDate: input.expiryPublishDate, filter: input.filter, status: input.status, creatorId: input.creatorId, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
68
|
+
},
|
|
69
|
+
{ apiName: this.apiName,...config });
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
move = (id: string, input: MoveEntryInput, config?: Partial<Rest.Config>) =>
|
|
73
|
+
this.restService.request<any, void>({
|
|
74
|
+
method: 'POST',
|
|
75
|
+
url: `/api/cms-admin/entries/move/${id}`,
|
|
76
|
+
body: input,
|
|
77
|
+
},
|
|
78
|
+
{ apiName: this.apiName,...config });
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
slugExists = (input: SlugExistsInput, config?: Partial<Rest.Config>) =>
|
|
82
|
+
this.restService.request<any, boolean>({
|
|
83
|
+
method: 'GET',
|
|
84
|
+
url: '/api/cms-admin/entries/slug-exists',
|
|
85
|
+
params: { culture: input.culture, sectionId: input.sectionId, slug: input.slug },
|
|
86
|
+
},
|
|
87
|
+
{ apiName: this.apiName,...config });
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
update = (id: string, input: UpdateEntryInput, config?: Partial<Rest.Config>) =>
|
|
91
|
+
this.restService.request<any, EntryDto>({
|
|
92
|
+
method: 'PUT',
|
|
93
|
+
url: '/api/cms-admin/entries',
|
|
94
|
+
params: { id },
|
|
95
|
+
body: input,
|
|
96
|
+
},
|
|
97
|
+
{ apiName: this.apiName,...config });
|
|
98
|
+
|
|
99
|
+
constructor(private restService: RestService) {}
|
|
100
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { ExtensibleAuditedEntityDto, PagedAndSortedResultRequestDto } from '@abp/ng.core';
|
|
2
|
+
import type { CmsUserDto } from '../../volo/cms-kit/users/models';
|
|
3
|
+
import { CustomizableObject } from '../../dignite/abp/data';
|
|
4
|
+
import { EntryStatus } from '../../entries';
|
|
5
|
+
|
|
6
|
+
export interface CreateEntryInput extends CreateOrUpdateEntryInputBase {
|
|
7
|
+
initialVersionId?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface CreateOrUpdateEntryInputBase extends CustomizableObject {
|
|
11
|
+
entryTypeId: string;
|
|
12
|
+
culture: string;
|
|
13
|
+
title: string;
|
|
14
|
+
slug: string;
|
|
15
|
+
parentId?: string;
|
|
16
|
+
draft: boolean;
|
|
17
|
+
publishTime: string;
|
|
18
|
+
versionNotes?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface EntryDto extends ExtensibleAuditedEntityDto<string> {
|
|
22
|
+
sectionId?: string;
|
|
23
|
+
entryTypeId?: string;
|
|
24
|
+
culture?: string;
|
|
25
|
+
title?: string;
|
|
26
|
+
slug?: string;
|
|
27
|
+
publishTime?: string;
|
|
28
|
+
status: EntryStatus;
|
|
29
|
+
parentId?: string;
|
|
30
|
+
order: number;
|
|
31
|
+
initialVersionId?: string;
|
|
32
|
+
isActivatedVersion: boolean;
|
|
33
|
+
versionNotes?: string;
|
|
34
|
+
author: CmsUserDto;
|
|
35
|
+
concurrencyStamp?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface EntryTypeExistsInput {
|
|
39
|
+
culture: string;
|
|
40
|
+
sectionId: string;
|
|
41
|
+
entryTypeId: string;
|
|
42
|
+
}
|
|
43
|
+
export interface CultureExistWithSingleSectionInput {
|
|
44
|
+
culture: string;
|
|
45
|
+
sectionId: string;
|
|
46
|
+
entryTypeId: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface GetEntriesInput extends PagedAndSortedResultRequestDto {
|
|
50
|
+
culture: string;
|
|
51
|
+
sectionId: string;
|
|
52
|
+
entryTypeId?: string;
|
|
53
|
+
startPublishDate?: string;
|
|
54
|
+
expiryPublishDate?: string;
|
|
55
|
+
filter?: string;
|
|
56
|
+
status?: EntryStatus;
|
|
57
|
+
creatorId?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface MoveEntryInput {
|
|
61
|
+
parentId?: string;
|
|
62
|
+
order: number;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface SlugExistsInput {
|
|
66
|
+
culture: string;
|
|
67
|
+
sectionId: string;
|
|
68
|
+
slug?: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface UpdateEntryInput extends CreateOrUpdateEntryInputBase {
|
|
72
|
+
concurrencyStamp?: string;
|
|
73
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { CreateFieldInput, FieldDto, GetFieldsInput, UpdateFieldInput } from './models';
|
|
2
|
+
import { RestService, Rest } from '@abp/ng.core';
|
|
3
|
+
import type { PagedResultDto } from '@abp/ng.core';
|
|
4
|
+
import { Injectable } from '@angular/core';
|
|
5
|
+
|
|
6
|
+
@Injectable({
|
|
7
|
+
providedIn: 'root',
|
|
8
|
+
})
|
|
9
|
+
export class FieldAdminService {
|
|
10
|
+
apiName = 'CmsAdmin';
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
create = (input: CreateFieldInput, config?: Partial<Rest.Config>) =>
|
|
14
|
+
this.restService.request<any, FieldDto>({
|
|
15
|
+
method: 'POST',
|
|
16
|
+
url: '/api/cms-admin/fields',
|
|
17
|
+
body: input,
|
|
18
|
+
},
|
|
19
|
+
{ apiName: this.apiName,...config });
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
delete = (id: string, config?: Partial<Rest.Config>) =>
|
|
23
|
+
this.restService.request<any, void>({
|
|
24
|
+
method: 'DELETE',
|
|
25
|
+
url: `/api/cms-admin/fields/${id}`,
|
|
26
|
+
},
|
|
27
|
+
{ apiName: this.apiName,...config });
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
get = (id: string, config?: Partial<Rest.Config>) =>
|
|
31
|
+
this.restService.request<any, FieldDto>({
|
|
32
|
+
method: 'GET',
|
|
33
|
+
url: `/api/cms-admin/fields/${id}`,
|
|
34
|
+
},
|
|
35
|
+
{ apiName: this.apiName,...config });
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
getList = (input: GetFieldsInput, config?: Partial<Rest.Config>) =>
|
|
39
|
+
this.restService.request<any, PagedResultDto<FieldDto>>({
|
|
40
|
+
method: 'GET',
|
|
41
|
+
url: '/api/cms-admin/fields',
|
|
42
|
+
params: { filter: input.filter, groupId: input.groupId, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
43
|
+
},
|
|
44
|
+
{ apiName: this.apiName,...config });
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
nameExists = (name: string, config?: Partial<Rest.Config>) =>
|
|
48
|
+
this.restService.request<any, boolean>({
|
|
49
|
+
method: 'GET',
|
|
50
|
+
url: `/api/cms-admin/fields/name-exists/${name}`,
|
|
51
|
+
},
|
|
52
|
+
{ apiName: this.apiName,...config });
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
update = (id: string, input: UpdateFieldInput, config?: Partial<Rest.Config>) =>
|
|
56
|
+
this.restService.request<any, FieldDto>({
|
|
57
|
+
method: 'PUT',
|
|
58
|
+
url: `/api/cms-admin/fields/${id}`,
|
|
59
|
+
body: input,
|
|
60
|
+
},
|
|
61
|
+
{ apiName: this.apiName,...config });
|
|
62
|
+
|
|
63
|
+
constructor(private restService: RestService) {}
|
|
64
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { CreateOrUpdateFieldGroupInput, FieldGroupDto, GetFieldGroupsInput } from './models';
|
|
2
|
+
import { RestService, Rest } from '@abp/ng.core';
|
|
3
|
+
import type { PagedResultDto } from '@abp/ng.core';
|
|
4
|
+
import { Injectable } from '@angular/core';
|
|
5
|
+
|
|
6
|
+
@Injectable({
|
|
7
|
+
providedIn: 'root',
|
|
8
|
+
})
|
|
9
|
+
export class FieldGroupAdminService {
|
|
10
|
+
apiName = 'CmsAdmin';
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
create = (input: CreateOrUpdateFieldGroupInput, config?: Partial<Rest.Config>) =>
|
|
14
|
+
this.restService.request<any, FieldGroupDto>({
|
|
15
|
+
method: 'POST',
|
|
16
|
+
url: '/api/cms-admin/field-groups',
|
|
17
|
+
body: input,
|
|
18
|
+
},
|
|
19
|
+
{ apiName: this.apiName,...config });
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
delete = (id: string, config?: Partial<Rest.Config>) =>
|
|
23
|
+
this.restService.request<any, void>({
|
|
24
|
+
method: 'DELETE',
|
|
25
|
+
url: `/api/cms-admin/field-groups/${id}`,
|
|
26
|
+
},
|
|
27
|
+
{ apiName: this.apiName,...config });
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
get = (id: string, config?: Partial<Rest.Config>) =>
|
|
31
|
+
this.restService.request<any, FieldGroupDto>({
|
|
32
|
+
method: 'GET',
|
|
33
|
+
url: `/api/cms-admin/field-groups/${id}`,
|
|
34
|
+
},
|
|
35
|
+
{ apiName: this.apiName,...config });
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
getList = (input: GetFieldGroupsInput, config?: Partial<Rest.Config>) =>
|
|
39
|
+
this.restService.request<any, PagedResultDto<FieldGroupDto>>({
|
|
40
|
+
method: 'GET',
|
|
41
|
+
url: '/api/cms-admin/field-groups',
|
|
42
|
+
params: { input },
|
|
43
|
+
},
|
|
44
|
+
{ apiName: this.apiName,...config });
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
update = (id: string, input: CreateOrUpdateFieldGroupInput, config?: Partial<Rest.Config>) =>
|
|
48
|
+
this.restService.request<any, FieldGroupDto>({
|
|
49
|
+
method: 'PUT',
|
|
50
|
+
url: `/api/cms-admin/field-groups/${id}`,
|
|
51
|
+
body: input,
|
|
52
|
+
},
|
|
53
|
+
{ apiName: this.apiName,...config });
|
|
54
|
+
|
|
55
|
+
constructor(private restService: RestService) {}
|
|
56
|
+
}
|
|
@@ -1,34 +1,42 @@
|
|
|
1
|
-
import type { FieldDtoEntity } from '../../fields/models';
|
|
2
|
-
import type { EntityDto, PagedAndSortedResultRequestDto } from '@abp/ng.core';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export interface
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
export interface
|
|
34
|
-
}
|
|
1
|
+
import type { FieldDtoEntity } from '../../fields/models';
|
|
2
|
+
import type { EntityDto, PagedAndSortedResultRequestDto } from '@abp/ng.core';
|
|
3
|
+
|
|
4
|
+
export interface CreateFieldInput extends CreateOrUpdateFieldInputBase {
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface CreateOrUpdateFieldGroupInput {
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface CreateOrUpdateFieldInputBase {
|
|
12
|
+
groupId?: string;
|
|
13
|
+
displayName: string;
|
|
14
|
+
name: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
formControlName: string;
|
|
17
|
+
formConfiguration: Record<string, object>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface FieldDto extends FieldDtoEntity {
|
|
21
|
+
groupId?: string;
|
|
22
|
+
groupName?: string;
|
|
23
|
+
creationTime?: string;
|
|
24
|
+
creatorId?: string;
|
|
25
|
+
lastModifierId?: string;
|
|
26
|
+
lastModificationTime?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface FieldGroupDto extends EntityDto<string> {
|
|
30
|
+
name?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface GetFieldGroupsInput {
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface GetFieldsInput extends PagedAndSortedResultRequestDto {
|
|
37
|
+
filter?: string;
|
|
38
|
+
groupId?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface UpdateFieldInput extends CreateOrUpdateFieldInputBase {
|
|
42
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { CreateEntryTypeInput, EntryTypeDto, EntryTypeNameExistsInput, UpdateEntryTypeInput } from './models';
|
|
2
|
+
import { RestService, Rest } from '@abp/ng.core';
|
|
3
|
+
import { Injectable } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
@Injectable({
|
|
6
|
+
providedIn: 'root',
|
|
7
|
+
})
|
|
8
|
+
export class EntryTypeAdminService {
|
|
9
|
+
apiName = 'CmsAdmin';
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
create = (input: CreateEntryTypeInput, config?: Partial<Rest.Config>) =>
|
|
13
|
+
this.restService.request<any, EntryTypeDto>({
|
|
14
|
+
method: 'POST',
|
|
15
|
+
url: '/api/cms-admin/entry-types',
|
|
16
|
+
body: input,
|
|
17
|
+
},
|
|
18
|
+
{ apiName: this.apiName,...config });
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
delete = (id: string, config?: Partial<Rest.Config>) =>
|
|
22
|
+
this.restService.request<any, void>({
|
|
23
|
+
method: 'DELETE',
|
|
24
|
+
url: `/api/cms-admin/entry-types/${id}`,
|
|
25
|
+
},
|
|
26
|
+
{ apiName: this.apiName,...config });
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
get = (id: string, config?: Partial<Rest.Config>) =>
|
|
30
|
+
this.restService.request<any, EntryTypeDto>({
|
|
31
|
+
method: 'GET',
|
|
32
|
+
url: `/api/cms-admin/entry-types/${id}`,
|
|
33
|
+
},
|
|
34
|
+
{ apiName: this.apiName,...config });
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
nameExists = (input: EntryTypeNameExistsInput, config?: Partial<Rest.Config>) =>
|
|
38
|
+
this.restService.request<any, boolean>({
|
|
39
|
+
method: 'GET',
|
|
40
|
+
url: '/api/cms-admin/entry-types/name-exists',
|
|
41
|
+
params: { sectionId: input.sectionId, name: input.name },
|
|
42
|
+
},
|
|
43
|
+
{ apiName: this.apiName,...config });
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
update = (id: string, input: UpdateEntryTypeInput, config?: Partial<Rest.Config>) =>
|
|
47
|
+
this.restService.request<any, EntryTypeDto>({
|
|
48
|
+
method: 'PUT',
|
|
49
|
+
url: `/api/cms-admin/entry-types/${id}`,
|
|
50
|
+
body: input,
|
|
51
|
+
},
|
|
52
|
+
{ apiName: this.apiName,...config });
|
|
53
|
+
|
|
54
|
+
constructor(private restService: RestService) {}
|
|
55
|
+
}
|
|
@@ -1,74 +1,88 @@
|
|
|
1
|
-
import type { AuditedEntityDto, ExtensibleAuditedEntityDto, ExtensibleObject, PagedAndSortedResultRequestDto } from '@abp/ng.core';
|
|
2
|
-
import type { SectionType } from '../../sections/section-type.enum';
|
|
3
|
-
import type { EntryFieldTabDto } from '../../sections/models';
|
|
4
|
-
import type { SiteDto } from '../sites/models';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
1
|
+
import type { AuditedEntityDto, ExtensibleAuditedEntityDto, ExtensibleObject, PagedAndSortedResultRequestDto } from '@abp/ng.core';
|
|
2
|
+
import type { SectionType } from '../../sections/section-type.enum';
|
|
3
|
+
import type { EntryFieldTabDto } from '../../sections/models';
|
|
4
|
+
import type { SiteDto } from '../sites/models';
|
|
5
|
+
|
|
6
|
+
export interface CreateEntryTypeInput extends CreateOrUpdateEntryTypeInputBase {
|
|
7
|
+
sectionId: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface CreateOrUpdateEntryTypeInputBase {
|
|
11
|
+
displayName: string;
|
|
12
|
+
name: string;
|
|
13
|
+
fieldTabs: EntryFieldTabInput[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface CreateOrUpdateSectionInputBase extends ExtensibleObject {
|
|
17
|
+
type: SectionType;
|
|
18
|
+
displayName: string;
|
|
19
|
+
name: string;
|
|
20
|
+
isDefault: boolean;
|
|
21
|
+
isActive: boolean;
|
|
22
|
+
route: string;
|
|
23
|
+
template: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface CreateSectionInput extends CreateOrUpdateSectionInputBase {
|
|
27
|
+
siteId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface EntryFieldInput {
|
|
31
|
+
fieldId: string;
|
|
32
|
+
displayName: string;
|
|
33
|
+
required: boolean;
|
|
34
|
+
showOnList: boolean;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface EntryFieldTabInput {
|
|
38
|
+
name: string;
|
|
39
|
+
fields: EntryFieldInput[];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface EntryTypeDto extends AuditedEntityDto<string> {
|
|
43
|
+
displayName?: string;
|
|
44
|
+
name?: string;
|
|
45
|
+
fieldTabs: EntryFieldTabDto[];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface EntryTypeNameExistsInput {
|
|
49
|
+
sectionId: string;
|
|
50
|
+
name: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface GetSectionsInput extends PagedAndSortedResultRequestDto {
|
|
54
|
+
siteId?: string;
|
|
55
|
+
filter?: string;
|
|
56
|
+
isActive?: boolean;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface SectionDto extends ExtensibleAuditedEntityDto<string> {
|
|
60
|
+
siteId?: string;
|
|
61
|
+
site: SiteDto;
|
|
62
|
+
type: SectionType;
|
|
63
|
+
displayName?: string;
|
|
64
|
+
name?: string;
|
|
65
|
+
isDefault: boolean;
|
|
66
|
+
isActive: boolean;
|
|
67
|
+
route?: string;
|
|
68
|
+
template?: string;
|
|
69
|
+
concurrencyStamp?: string;
|
|
70
|
+
entryTypes: EntryTypeDto[];
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface SectionNameExistsInput {
|
|
74
|
+
siteId: string;
|
|
75
|
+
name: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface SectionRouteExistsInput {
|
|
79
|
+
siteId: string;
|
|
80
|
+
route: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface UpdateEntryTypeInput extends CreateOrUpdateEntryTypeInputBase {
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface UpdateSectionInput extends CreateOrUpdateSectionInputBase {
|
|
87
|
+
concurrencyStamp?: string;
|
|
88
|
+
}
|