@dignite-ng/expand.cms 2.0.0-rc.10 → 2.0.0-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/cms-config.module.d.ts +8 -0
- package/config/{src/enums/index.ts → enums/index.d.ts} +1 -1
- package/config/enums/route-names.d.ts +7 -0
- package/config/index.d.ts +5 -0
- package/config/{src/providers/index.ts → providers/index.d.ts} +1 -1
- package/config/providers/route.provider.d.ts +9 -0
- package/config/{src/public-api.ts → public-api.d.ts} +3 -3
- package/esm2022/config/cms-config.module.mjs +19 -0
- package/esm2022/config/dignite-ng-expand.cms-config.mjs +5 -0
- package/esm2022/config/enums/index.mjs +2 -0
- package/esm2022/config/enums/route-names.mjs +9 -0
- package/esm2022/config/providers/index.mjs +2 -0
- package/esm2022/config/providers/route.provider.mjs +60 -0
- package/esm2022/config/public-api.mjs +4 -0
- package/esm2022/dignite-ng-expand.cms.mjs +5 -0
- package/esm2022/lib/cms-routing.module.mjs +94 -0
- package/esm2022/lib/cms.module.mjs +137 -0
- package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +226 -0
- package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +25 -0
- package/esm2022/lib/components/admin/entries/create.component.mjs +136 -0
- package/esm2022/lib/components/admin/entries/edit.component.mjs +138 -0
- package/esm2022/lib/components/admin/entries/entries.component.mjs +367 -0
- package/esm2022/lib/components/admin/entries/index.mjs +5 -0
- package/esm2022/lib/components/admin/fields/create-field.component.mjs +87 -0
- package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +116 -0
- package/esm2022/lib/components/admin/fields/create-or-update-field-input-base.mjs +25 -0
- package/esm2022/lib/components/admin/fields/edit-field.component.mjs +109 -0
- package/esm2022/lib/components/admin/fields/field-group.component.mjs +131 -0
- package/esm2022/lib/components/admin/fields/fields.component.mjs +107 -0
- package/esm2022/lib/components/admin/fields/index.mjs +7 -0
- package/esm2022/lib/components/admin/index.mjs +4 -0
- package/esm2022/lib/components/admin/sections/create-or-edit-sections-modal.component.mjs +210 -0
- package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +22 -0
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +47 -0
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +408 -0
- package/esm2022/lib/components/admin/sections/entry-types/index.mjs +3 -0
- package/esm2022/lib/components/admin/sections/index.mjs +4 -0
- package/esm2022/lib/components/admin/sections/sections.component.mjs +138 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +117 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +18 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +105 -0
- package/esm2022/lib/components/dynamic-form/entry/index.mjs +4 -0
- package/esm2022/lib/components/dynamic-form/form-control-group.mjs +28 -0
- package/esm2022/lib/components/dynamic-form/index.mjs +5 -0
- package/esm2022/lib/components/dynamic-form/matrix/index.mjs +4 -0
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +219 -0
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +50 -0
- package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +108 -0
- package/esm2022/lib/components/dynamic-form/table/index.mjs +4 -0
- package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +158 -0
- package/esm2022/lib/components/dynamic-form/table/table-config.mjs +38 -0
- package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +118 -0
- package/esm2022/lib/components/index.mjs +3 -0
- package/esm2022/lib/constants/styles.mjs +19 -0
- package/esm2022/lib/enums/ecms-component.mjs +13 -0
- package/esm2022/lib/enums/index.mjs +2 -0
- package/esm2022/lib/proxy/dignite/abp/data/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/abp/regionalization-management/index.mjs +3 -0
- package/esm2022/lib/proxy/dignite/abp/regionalization-management/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/abp/regionalization-management/regionalization.service.mjs +27 -0
- package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.mjs +22 -0
- package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/index.mjs +3 -0
- package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/cms/admin/entries/entry-admin.service.mjs +70 -0
- package/esm2022/lib/proxy/dignite/cms/admin/entries/index.mjs +3 -0
- package/esm2022/lib/proxy/dignite/cms/admin/entries/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/cms/admin/fields/field-admin.service.mjs +45 -0
- package/esm2022/lib/proxy/dignite/cms/admin/fields/field-group-admin.service.mjs +41 -0
- package/esm2022/lib/proxy/dignite/cms/admin/fields/index.mjs +4 -0
- package/esm2022/lib/proxy/dignite/cms/admin/fields/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/cms/admin/sections/entry-type-admin.service.mjs +41 -0
- package/esm2022/lib/proxy/dignite/cms/admin/sections/index.mjs +4 -0
- package/esm2022/lib/proxy/dignite/cms/admin/sections/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/cms/admin/sections/section-admin.service.mjs +51 -0
- package/esm2022/lib/proxy/dignite/cms/entries/entry-status.enum.mjs +8 -0
- package/esm2022/lib/proxy/dignite/cms/entries/index.mjs +2 -0
- package/esm2022/lib/proxy/dignite/cms/fields/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/cms/sections/index.mjs +3 -0
- package/esm2022/lib/proxy/dignite/cms/sections/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/cms/sections/section-type.enum.mjs +9 -0
- package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +2 -0
- package/esm2022/lib/resolvers/extensions-props-action-token.resolver.mjs +136 -0
- package/esm2022/lib/resolvers/page-default-toolbar-actions.mjs +160 -0
- package/esm2022/lib/resolvers/table-default-entity-actions.mjs +28 -0
- package/esm2022/lib/resolvers/table-default-entity-props.mjs +53 -0
- package/esm2022/lib/services/appent-content.mjs +15 -0
- package/esm2022/lib/services/cms-api.service.mjs +93 -0
- package/esm2022/lib/services/cms.service.mjs +21 -0
- package/esm2022/lib/services/field-abstracts.service.mjs +42 -0
- package/esm2022/lib/services/index.mjs +4 -0
- package/esm2022/public-api.mjs +7 -0
- package/fesm2022/dignite-ng-expand.cms-config.mjs +92 -0
- package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -0
- package/fesm2022/dignite-ng-expand.cms.mjs +4063 -0
- package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/cms-routing.module.d.ts +7 -0
- package/lib/cms.module.d.ts +37 -0
- package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +63 -0
- package/lib/components/admin/entries/create-or-update-entry-input-base.d.ts +23 -0
- package/lib/components/admin/entries/create.component.d.ts +50 -0
- package/lib/components/admin/entries/edit.component.d.ts +53 -0
- package/lib/components/admin/entries/entries.component.d.ts +100 -0
- package/lib/components/admin/entries/index.d.ts +4 -0
- package/lib/components/admin/fields/create-field.component.d.ts +37 -0
- package/lib/components/admin/fields/create-or-edit-field.component.d.ts +37 -0
- package/lib/components/admin/fields/create-or-update-field-input-base.d.ts +16 -0
- package/lib/components/admin/fields/edit-field.component.d.ts +46 -0
- package/lib/components/admin/fields/field-group.component.d.ts +58 -0
- package/lib/components/admin/fields/fields.component.d.ts +35 -0
- package/lib/components/admin/fields/index.d.ts +6 -0
- package/lib/components/admin/index.d.ts +3 -0
- package/lib/components/admin/sections/create-or-edit-sections-modal.component.d.ts +49 -0
- package/lib/components/admin/sections/create-or-update-sections-input-base.d.ts +20 -0
- package/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.d.ts +28 -0
- package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +139 -0
- package/lib/components/admin/sections/entry-types/index.d.ts +2 -0
- package/lib/components/admin/sections/index.d.ts +3 -0
- package/lib/components/admin/sections/sections.component.d.ts +46 -0
- package/lib/components/dynamic-form/entry/entry-config.component.d.ts +40 -0
- package/lib/components/dynamic-form/entry/entry-config.d.ts +9 -0
- package/lib/components/dynamic-form/entry/entry-control.component.d.ts +36 -0
- package/lib/components/dynamic-form/entry/index.d.ts +3 -0
- package/lib/components/dynamic-form/form-control-group.d.ts +4 -0
- package/lib/components/dynamic-form/index.d.ts +4 -0
- package/lib/components/dynamic-form/matrix/index.d.ts +3 -0
- package/lib/components/dynamic-form/matrix/matrix-config.component.d.ts +74 -0
- package/lib/components/dynamic-form/matrix/matrix-config.d.ts +24 -0
- package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +42 -0
- package/lib/components/dynamic-form/table/index.d.ts +3 -0
- package/lib/components/dynamic-form/table/table-config.component.d.ts +59 -0
- package/lib/components/dynamic-form/table/table-config.d.ts +18 -0
- package/lib/components/dynamic-form/table/table-control.component.d.ts +42 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/constants/styles.d.ts +2 -0
- package/lib/enums/ecms-component.d.ts +11 -0
- package/lib/enums/index.d.ts +1 -0
- package/lib/proxy/dignite/abp/data/models.d.ts +3 -0
- package/lib/proxy/dignite/abp/regionalization-management/models.d.ts +8 -0
- package/lib/proxy/dignite/abp/regionalization-management/regionalization.service.d.ts +12 -0
- package/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.d.ts +12 -0
- package/lib/proxy/dignite/cms/admin/dynamic-forms/models.d.ts +5 -0
- package/lib/proxy/dignite/cms/admin/entries/entry-admin.service.d.ts +22 -0
- package/lib/proxy/dignite/cms/admin/entries/models.d.ts +61 -0
- package/lib/proxy/dignite/cms/admin/fields/field-admin.service.d.ts +17 -0
- package/lib/proxy/dignite/cms/admin/fields/field-group-admin.service.d.ts +16 -0
- package/{src/lib/proxy/dignite/cms/admin/fields/models.ts → lib/proxy/dignite/cms/admin/fields/models.d.ts} +34 -42
- package/lib/proxy/dignite/cms/admin/sections/entry-type-admin.service.d.ts +15 -0
- package/{src/lib/proxy/dignite/cms/admin/sections/models.ts → lib/proxy/dignite/cms/admin/sections/models.d.ts} +68 -82
- package/lib/proxy/dignite/cms/admin/sections/section-admin.service.d.ts +18 -0
- package/lib/proxy/dignite/cms/entries/entry-status.enum.d.ts +5 -0
- package/lib/proxy/dignite/cms/fields/models.d.ts +8 -0
- package/lib/proxy/dignite/cms/sections/models.d.ts +13 -0
- package/lib/proxy/dignite/cms/sections/section-type.enum.d.ts +6 -0
- package/{src/lib/proxy/volo/cms-kit/users/models.ts → lib/proxy/volo/cms-kit/users/models.d.ts} +7 -8
- package/lib/resolvers/extensions-props-action-token.resolver.d.ts +75 -0
- package/lib/resolvers/page-default-toolbar-actions.d.ts +18 -0
- package/lib/resolvers/table-default-entity-actions.d.ts +5 -0
- package/lib/resolvers/table-default-entity-props.d.ts +5 -0
- package/lib/services/appent-content.d.ts +1 -0
- package/lib/services/cms-api.service.d.ts +23 -0
- package/lib/services/cms.service.d.ts +10 -0
- package/lib/services/field-abstracts.service.d.ts +19 -0
- package/lib/services/index.d.ts +3 -0
- package/package.json +22 -7
- package/{src/public-api.ts → public-api.d.ts} +3 -7
- package/config/ng-package.json +0 -6
- package/config/src/cms-config.module.ts +0 -13
- package/config/src/enums/route-names.ts +0 -7
- package/config/src/providers/route.provider.ts +0 -68
- package/ng-package.json +0 -10
- package/src/lib/cms-routing.module.ts +0 -102
- package/src/lib/cms.module.ts +0 -113
- package/src/lib/components/admin/entries/create-or-edit-entries.component.html +0 -137
- package/src/lib/components/admin/entries/create-or-edit-entries.component.scss +0 -0
- package/src/lib/components/admin/entries/create-or-edit-entries.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/create-or-edit-entries.component.ts +0 -216
- package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +0 -26
- package/src/lib/components/admin/entries/create.component.html +0 -16
- package/src/lib/components/admin/entries/create.component.scss +0 -0
- package/src/lib/components/admin/entries/create.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/create.component.ts +0 -130
- package/src/lib/components/admin/entries/edit.component.html +0 -9
- package/src/lib/components/admin/entries/edit.component.scss +0 -0
- package/src/lib/components/admin/entries/edit.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/edit.component.ts +0 -134
- package/src/lib/components/admin/entries/entries.component.html +0 -225
- package/src/lib/components/admin/entries/entries.component.scss +0 -109
- package/src/lib/components/admin/entries/entries.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/entries.component.ts +0 -394
- package/src/lib/components/admin/entries/index.ts +0 -4
- package/src/lib/components/admin/fields/create-field.component.html +0 -12
- package/src/lib/components/admin/fields/create-field.component.scss +0 -1
- package/src/lib/components/admin/fields/create-field.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/create-field.component.ts +0 -85
- package/src/lib/components/admin/fields/create-or-edit-field.component.html +0 -39
- package/src/lib/components/admin/fields/create-or-edit-field.component.scss +0 -0
- package/src/lib/components/admin/fields/create-or-edit-field.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/create-or-edit-field.component.ts +0 -140
- package/src/lib/components/admin/fields/create-or-update-field-input-base.ts +0 -33
- package/src/lib/components/admin/fields/edit-field.component.html +0 -14
- package/src/lib/components/admin/fields/edit-field.component.scss +0 -0
- package/src/lib/components/admin/fields/edit-field.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/edit-field.component.ts +0 -112
- package/src/lib/components/admin/fields/field-group.component.html +0 -69
- package/src/lib/components/admin/fields/field-group.component.scss +0 -0
- package/src/lib/components/admin/fields/field-group.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/field-group.component.ts +0 -151
- package/src/lib/components/admin/fields/fields.component.html +0 -25
- package/src/lib/components/admin/fields/fields.component.scss +0 -1
- package/src/lib/components/admin/fields/fields.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/fields.component.ts +0 -109
- package/src/lib/components/admin/fields/index.ts +0 -6
- package/src/lib/components/admin/index.ts +0 -3
- package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.html +0 -81
- package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.scss +0 -0
- package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.spec.ts +0 -23
- package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.ts +0 -239
- package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +0 -23
- package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts +0 -52
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.html +0 -195
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.scss +0 -1
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.spec.ts +0 -21
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.ts +0 -442
- package/src/lib/components/admin/sections/entry-types/index.ts +0 -2
- package/src/lib/components/admin/sections/index.ts +0 -3
- package/src/lib/components/admin/sections/sections.component.html +0 -189
- package/src/lib/components/admin/sections/sections.component.scss +0 -1
- package/src/lib/components/admin/sections/sections.component.spec.ts +0 -21
- package/src/lib/components/admin/sections/sections.component.ts +0 -136
- package/src/lib/components/dynamic-form/entry/entry-config.component.html +0 -26
- package/src/lib/components/dynamic-form/entry/entry-config.component.scss +0 -27
- package/src/lib/components/dynamic-form/entry/entry-config.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/entry/entry-config.component.ts +0 -119
- package/src/lib/components/dynamic-form/entry/entry-config.ts +0 -22
- package/src/lib/components/dynamic-form/entry/entry-control.component.html +0 -25
- package/src/lib/components/dynamic-form/entry/entry-control.component.scss +0 -35
- package/src/lib/components/dynamic-form/entry/entry-control.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/entry/entry-control.component.ts +0 -111
- package/src/lib/components/dynamic-form/entry/index.ts +0 -3
- package/src/lib/components/dynamic-form/form-control-group.ts +0 -27
- package/src/lib/components/dynamic-form/index.ts +0 -4
- package/src/lib/components/dynamic-form/matrix/index.ts +0 -3
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.html +0 -148
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.scss +0 -0
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.ts +0 -244
- package/src/lib/components/dynamic-form/matrix/matrix-config.ts +0 -63
- package/src/lib/components/dynamic-form/matrix/matrix-control.component.html +0 -42
- package/src/lib/components/dynamic-form/matrix/matrix-control.component.scss +0 -0
- package/src/lib/components/dynamic-form/matrix/matrix-control.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/matrix/matrix-control.component.ts +0 -118
- package/src/lib/components/dynamic-form/table/index.ts +0 -3
- package/src/lib/components/dynamic-form/table/table-config.component.html +0 -85
- package/src/lib/components/dynamic-form/table/table-config.component.scss +0 -10
- package/src/lib/components/dynamic-form/table/table-config.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/table/table-config.component.ts +0 -177
- package/src/lib/components/dynamic-form/table/table-config.ts +0 -45
- package/src/lib/components/dynamic-form/table/table-control.component.html +0 -54
- package/src/lib/components/dynamic-form/table/table-control.component.scss +0 -1
- package/src/lib/components/dynamic-form/table/table-control.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/table/table-control.component.ts +0 -127
- package/src/lib/components/index.ts +0 -2
- package/src/lib/constants/index.ts +0 -1
- package/src/lib/constants/styles.ts +0 -18
- package/src/lib/enums/ecms-component.ts +0 -11
- package/src/lib/enums/index.ts +0 -1
- package/src/lib/proxy/README.md +0 -17
- package/src/lib/proxy/dignite/abp/data/index.ts +0 -1
- package/src/lib/proxy/dignite/abp/data/models.ts +0 -4
- package/src/lib/proxy/dignite/abp/index.ts +0 -3
- package/src/lib/proxy/dignite/abp/regionalization-management/models.ts +0 -10
- package/src/lib/proxy/dignite/abp/regionalization-management/regionalization.service.ts +0 -29
- package/src/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.ts +0 -20
- package/src/lib/proxy/dignite/cms/admin/dynamic-forms/models.ts +0 -6
- package/src/lib/proxy/dignite/cms/admin/entries/entry-admin.service.ts +0 -109
- package/src/lib/proxy/dignite/cms/admin/entries/models.ts +0 -69
- package/src/lib/proxy/dignite/cms/admin/fields/field-admin.service.ts +0 -64
- package/src/lib/proxy/dignite/cms/admin/fields/field-group-admin.service.ts +0 -56
- package/src/lib/proxy/dignite/cms/admin/index.ts +0 -5
- package/src/lib/proxy/dignite/cms/admin/sections/entry-type-admin.service.ts +0 -55
- package/src/lib/proxy/dignite/cms/admin/sections/section-admin.service.ts +0 -74
- package/src/lib/proxy/dignite/cms/entries/entry-status.enum.ts +0 -8
- package/src/lib/proxy/dignite/cms/fields/index.ts +0 -1
- package/src/lib/proxy/dignite/cms/fields/models.ts +0 -9
- package/src/lib/proxy/dignite/cms/index.ts +0 -5
- package/src/lib/proxy/dignite/cms/sections/models.ts +0 -15
- package/src/lib/proxy/dignite/cms/sections/section-type.enum.ts +0 -9
- package/src/lib/proxy/dignite/index.ts +0 -3
- package/src/lib/proxy/generate-proxy.json +0 -54593
- package/src/lib/proxy/index.ts +0 -3
- package/src/lib/proxy/volo/cms-kit/index.ts +0 -2
- package/src/lib/proxy/volo/cms-kit/users/index.ts +0 -1
- package/src/lib/proxy/volo/index.ts +0 -2
- package/src/lib/resolvers/extensions-props-action-token.resolver.ts +0 -182
- package/src/lib/resolvers/page-default-toolbar-actions.ts +0 -173
- package/src/lib/resolvers/table-default-entity-actions.ts +0 -29
- package/src/lib/resolvers/table-default-entity-props.ts +0 -62
- package/src/lib/services/appent-content.ts +0 -13
- package/src/lib/services/cms-api.service.ts +0 -90
- package/src/lib/services/cms.service.ts +0 -18
- package/src/lib/services/field-abstracts.service.ts +0 -39
- package/src/lib/services/index.ts +0 -3
- package/src/lib/services/validator.ts +0 -10
- package/src/test.ts +0 -26
- package/tsconfig.lib.json +0 -16
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
- /package/{src/lib/proxy/dignite/abp/regionalization-management/index.ts → lib/proxy/dignite/abp/regionalization-management/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/cms/admin/dynamic-forms/index.ts → lib/proxy/dignite/cms/admin/dynamic-forms/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/cms/admin/entries/index.ts → lib/proxy/dignite/cms/admin/entries/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/cms/admin/fields/index.ts → lib/proxy/dignite/cms/admin/fields/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/cms/admin/sections/index.ts → lib/proxy/dignite/cms/admin/sections/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/cms/entries/index.ts → lib/proxy/dignite/cms/entries/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/cms/sections/index.ts → lib/proxy/dignite/cms/sections/index.d.ts} +0 -0
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Component, ElementRef, Input, ViewChild, inject } from '@angular/core';
|
|
2
|
-
import { FormArray, FormBuilder, FormGroup, Validators } from '@angular/forms';
|
|
3
|
-
import { CmsApiService } from '../../../services';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7
|
-
selector: 'df-table-control',
|
|
8
|
-
templateUrl: './table-control.component.html',
|
|
9
|
-
styleUrls: ['./table-control.component.scss'],
|
|
10
|
-
})
|
|
11
|
-
export class TableControlComponent {
|
|
12
|
-
constructor(
|
|
13
|
-
private _CmsApiService: CmsApiService // private fb: FormBuilder,
|
|
14
|
-
) {}
|
|
15
|
-
private fb = inject(FormBuilder);
|
|
16
|
-
|
|
17
|
-
/**表单实体 */
|
|
18
|
-
_entity: FormGroup | undefined;
|
|
19
|
-
@Input()
|
|
20
|
-
public set entity(v: any) {
|
|
21
|
-
this._entity = v;
|
|
22
|
-
this.dataLoaded();
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**字段配置列表 */
|
|
26
|
-
_fields: any = '';
|
|
27
|
-
@Input()
|
|
28
|
-
public set fields(v: any) {
|
|
29
|
-
if (v) {
|
|
30
|
-
for (const key in v.field?.formConfiguration) {
|
|
31
|
-
if (Array.isArray(v.field?.formConfiguration[key])) {
|
|
32
|
-
v.field.formConfiguration[key] = this._CmsApiService.convertKeysToCamelCase(
|
|
33
|
-
v.field?.formConfiguration[key]
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
this._fields = v;
|
|
38
|
-
this.dataLoaded();
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**父级字段名称,用于为表单设置控件赋值 */
|
|
43
|
-
_parentFiledName: any;
|
|
44
|
-
@Input()
|
|
45
|
-
public set parentFiledName(v: any) {
|
|
46
|
-
this._parentFiledName = v;
|
|
47
|
-
this.dataLoaded();
|
|
48
|
-
}
|
|
49
|
-
/**父级字段名称,用于为表单设置控件赋值 */
|
|
50
|
-
_selected: any;
|
|
51
|
-
@Input()
|
|
52
|
-
public set selected(v: any) {
|
|
53
|
-
if (v) {
|
|
54
|
-
v = this._CmsApiService.convertKeysToCamelCase(v);
|
|
55
|
-
this._selected = v;
|
|
56
|
-
this.dataLoaded();
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
/**语言 */
|
|
60
|
-
_culture: any;
|
|
61
|
-
@Input()
|
|
62
|
-
public set culture(v: any) {
|
|
63
|
-
this._culture = v;
|
|
64
|
-
}
|
|
65
|
-
@ViewChild('submitclick', { static: true }) submitclick: ElementRef;
|
|
66
|
-
|
|
67
|
-
/** 获取父级字段代表的表单组*/
|
|
68
|
-
extraProperties: FormGroup | undefined;
|
|
69
|
-
private cdr = inject(ChangeDetectorRef);
|
|
70
|
-
/**数据加载完成 */
|
|
71
|
-
async dataLoaded() {
|
|
72
|
-
if (this._fields && this._entity && this._parentFiledName) {
|
|
73
|
-
this.extraProperties = this._entity.get(this._parentFiledName) as FormGroup;
|
|
74
|
-
await this.AfterInit();
|
|
75
|
-
this.cdr.detectChanges(); // 手动触发变更检测
|
|
76
|
-
this.submitclick?.nativeElement?.click();
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
formConfiguration: any;
|
|
81
|
-
/**获取表格字段代表的控件 */
|
|
82
|
-
fieldNameControl: FormArray | undefined;
|
|
83
|
-
|
|
84
|
-
AfterInit() {
|
|
85
|
-
return new Promise((resolve, rejects) => {
|
|
86
|
-
let ValidatorsArray = [];
|
|
87
|
-
if (this._fields.required) {
|
|
88
|
-
ValidatorsArray.push(Validators.required);
|
|
89
|
-
}
|
|
90
|
-
let formConfiguration = this._fields.field.formConfiguration;
|
|
91
|
-
this.formConfiguration = formConfiguration;
|
|
92
|
-
|
|
93
|
-
let newArrayGroup = this.fb.array([]);
|
|
94
|
-
this.extraProperties.setControl(this._fields.field.name, newArrayGroup);
|
|
95
|
-
this.fieldNameControl = this.extraProperties.get(this._fields.field.name) as FormArray;
|
|
96
|
-
if (this._selected) {
|
|
97
|
-
this._selected.forEach(el => {
|
|
98
|
-
this.addTableControlItem();
|
|
99
|
-
});
|
|
100
|
-
this.fieldNameControl.patchValue(this._selected);
|
|
101
|
-
} else {
|
|
102
|
-
this.addTableControlItem();
|
|
103
|
-
}
|
|
104
|
-
resolve(true);
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
/**增加表格项 */
|
|
108
|
-
addTableControlItem() {
|
|
109
|
-
this.fieldNameControl.push(
|
|
110
|
-
this.fb.group({
|
|
111
|
-
extraProperties: this.fb.group({}),
|
|
112
|
-
})
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
/**删除表格项 */
|
|
116
|
-
minusTableControlItem(index) {
|
|
117
|
-
this.fieldNameControl.removeAt(index);
|
|
118
|
-
}
|
|
119
|
-
/**调整表格位置 */
|
|
120
|
-
TableArrowUpOrDown(type, index) {
|
|
121
|
-
let controlAt = this.fieldNameControl.at(index);
|
|
122
|
-
this.fieldNameControl.removeAt(index);
|
|
123
|
-
let lastindex = type == 'up' ? index - 1 : index + 1;
|
|
124
|
-
this.fieldNameControl.insert(lastindex, controlAt);
|
|
125
|
-
this._selected = this.fieldNameControl.value;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './styles'
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export default `
|
|
2
|
-
.lpx-content-container .lpx-content{min-height:calc(100vh - 34px);padding:1.25em 2em 1.25em}h1,h2,h3,h4,h5,h6{color:inherit}.lpx-settings .lpx-context-menu{overflow:auto}
|
|
3
|
-
a {
|
|
4
|
-
text-decoration: unset;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
:root select{
|
|
9
|
-
cursor: pointer; /* this will show the pointer when hovering */
|
|
10
|
-
}
|
|
11
|
-
.cdk-global-overlay-wrapper, .cdk-overlay-container {pointer-events: none;top: 0;left: 0;height: 100%;width: 100% }.cdk-overlay-container {position: fixed;z-index: 1000 }.cdk-overlay-container:empty {display: none }.cdk-global-overlay-wrapper, .cdk-overlay-connected-position-bounding-box, .cdk-overlay-pane {position: absolute;z-index: 1000;display: flex }.cdk-overlay-pane {pointer-events: auto;box-sizing: border-box;max-width: 100%;max-height: 100% }.cdk-overlay-backdrop {position: absolute;top: 0;bottom: 0;left: 0;right: 0;z-index: 1000;pointer-events: auto;transition: opacity .4s cubic-bezier(.25, .8, .25, 1);opacity: 0 }.cdk-overlay-backdrop.cdk-overlay-backdrop-showing {opacity: 1 }.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing {opacity: .6 }.cdk-overlay-dark-backdrop {background: rgba(0, 0, 0, .32) }.cdk-overlay-transparent-backdrop {transition: visibility 1ms linear, opacity 1ms linear;visibility: hidden;opacity: 1 }.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing {opacity: 0;visibility: visible }.cdk-overlay-backdrop-noop-animation {transition: none }.cdk-overlay-connected-position-bounding-box {flex-direction: column;min-width: 1px;min-height: 1px }.cdk-global-scrollblock {position: fixed;width: 100%;overflow-y: scroll }.cdk-visually-hidden {border: 0;clip: rect(0 0 0 0);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;outline: 0;-webkit-appearance: none;-moz-appearance: none }.nz-overlay-transparent-backdrop, .nz-overlay-transparent-backdrop.cdk-overlay-backdrop-showing {opacity: 0 }.ant-select, .ant-select-dropdown {margin: 0;line-height: 1.5715;box-sizing: border-box;font-feature-settings: 'tnum';list-style: none }.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottom, .ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomLeft, .ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomRight, .ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottom, .ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomLeft, .ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomRight, .ant-select-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-select-dropdown-placement-bottomLeft, .ant-select-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-select-dropdown-placement-bottomLeft {animation-name: antSlideUpIn }.ant-select-dropdown.ant-select-tree-dropdown {top: 100%;left: 0;position: relative;width: 100%;margin-top: 4px;margin-bottom: 4px;overflow: auto }.ant-select-dropdown-hidden, .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-delete, .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-eye, .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info::before {display: none }.ant-select-dropdown {top: 100%;left: 0;position: relative;width: 100%;margin-top: 4px;margin-bottom: 4px;display: block }.ant-select-dropdown .cdk-virtual-scroll-content-wrapper {right: 0 }.ant-select-dropdown .full-width {contain: initial }.ant-select-dropdown .full-width .cdk-virtual-scroll-content-wrapper {position: static }.ant-select-dropdown .full-width .cdk-virtual-scroll-spacer {position: absolute;top: 0;width: 1px }.ant-select-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-select-dropdown-placement-topLeft, .ant-select-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-select-dropdown-placement-topLeft {animation-name: antSlideDownIn }.ant-select-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-select-dropdown-placement-bottomLeft {animation-name: antSlideUpOut }.ant-select-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-select-dropdown-placement-topLeft {animation-name: antSlideDownOut }
|
|
12
|
-
|
|
13
|
-
/*** 表单验证样式 start */
|
|
14
|
-
.was-validated .form-control:invalid, .form-control.is-invalid{
|
|
15
|
-
border-color: #c00d49 !important;
|
|
16
|
-
}
|
|
17
|
-
/*** 表单验证样式 end */
|
|
18
|
-
`;
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|
package/src/lib/enums/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ecms-component'
|
package/src/lib/proxy/README.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './models';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { RegionalizationDto, UpdateRegionalizationInput } 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 RegionalizationService {
|
|
9
|
-
apiName = 'AbpRegionalizationManagement';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
get = (config?: Partial<Rest.Config>) =>
|
|
13
|
-
this.restService.request<any, RegionalizationDto>({
|
|
14
|
-
method: 'GET',
|
|
15
|
-
url: '/api/regionalization-management/regionalization',
|
|
16
|
-
},
|
|
17
|
-
{ apiName: this.apiName,...config });
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
update = (input: UpdateRegionalizationInput, config?: Partial<Rest.Config>) =>
|
|
21
|
-
this.restService.request<any, RegionalizationDto>({
|
|
22
|
-
method: 'POST',
|
|
23
|
-
url: '/api/regionalization-management/regionalization',
|
|
24
|
-
body: input,
|
|
25
|
-
},
|
|
26
|
-
{ apiName: this.apiName,...config });
|
|
27
|
-
|
|
28
|
-
constructor(private restService: RestService) {}
|
|
29
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
getFormControls = (config?: Partial<Rest.Config>) =>
|
|
13
|
-
this.restService.request<any, ListResultDto<FormControlDto>>({
|
|
14
|
-
method: 'GET',
|
|
15
|
-
url: '/api/cms-admin/dynamic-forms/controls',
|
|
16
|
-
},
|
|
17
|
-
{ apiName: this.apiName,...config });
|
|
18
|
-
|
|
19
|
-
constructor(private restService: RestService) {}
|
|
20
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import type { CreateEntryInput, CultureExistWithSingleSectionInput, EntryDto, 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',
|
|
25
|
-
body: input,
|
|
26
|
-
},
|
|
27
|
-
{ apiName: this.apiName,...config });
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
cultureExistWithSingleSection = (input: CultureExistWithSingleSectionInput, config?: Partial<Rest.Config>) =>
|
|
31
|
-
this.restService.request<any, boolean>({
|
|
32
|
-
method: 'GET',
|
|
33
|
-
url: '/api/cms-admin/entries/culture-exists-with-single-section',
|
|
34
|
-
params: { culture: input.culture, sectionId: input.sectionId, entryTypeId: input.entryTypeId },
|
|
35
|
-
},
|
|
36
|
-
{ apiName: this.apiName,...config });
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
delete = (id: string, config?: Partial<Rest.Config>) =>
|
|
40
|
-
this.restService.request<any, void>({
|
|
41
|
-
method: 'DELETE',
|
|
42
|
-
url: `/api/cms-admin/entries/${id}`,
|
|
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, queryingByFieldsJson: input.queryingByFieldsJson, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
68
|
-
},
|
|
69
|
-
{ apiName: this.apiName,...config });
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
getListByIds = (sectionId: string, ids: string[], config?: Partial<Rest.Config>) =>
|
|
73
|
-
this.restService.request<any, ListResultDto<EntryDto>>({
|
|
74
|
-
method: 'GET',
|
|
75
|
-
url: '/api/cms-admin/entries/search-by-ids',
|
|
76
|
-
params: { sectionId, ids },
|
|
77
|
-
},
|
|
78
|
-
{ apiName: this.apiName,...config });
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
move = (id: string, input: MoveEntryInput, config?: Partial<Rest.Config>) =>
|
|
82
|
-
this.restService.request<any, void>({
|
|
83
|
-
method: 'POST',
|
|
84
|
-
url: `/api/cms-admin/entries/move/${id}`,
|
|
85
|
-
body: input,
|
|
86
|
-
},
|
|
87
|
-
{ apiName: this.apiName,...config });
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
slugExists = (input: SlugExistsInput, config?: Partial<Rest.Config>) =>
|
|
91
|
-
this.restService.request<any, boolean>({
|
|
92
|
-
method: 'GET',
|
|
93
|
-
url: '/api/cms-admin/entries/slug-exists',
|
|
94
|
-
params: { culture: input.culture, sectionId: input.sectionId, slug: input.slug },
|
|
95
|
-
},
|
|
96
|
-
{ apiName: this.apiName,...config });
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
update = (id: string, input: UpdateEntryInput, config?: Partial<Rest.Config>) =>
|
|
100
|
-
this.restService.request<any, EntryDto>({
|
|
101
|
-
method: 'PUT',
|
|
102
|
-
url: '/api/cms-admin/entries',
|
|
103
|
-
params: { id },
|
|
104
|
-
body: input,
|
|
105
|
-
},
|
|
106
|
-
{ apiName: this.apiName,...config });
|
|
107
|
-
|
|
108
|
-
constructor(private restService: RestService) {}
|
|
109
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { CustomizableObject } from '../../../abp/data/models';
|
|
2
|
-
import type { ExtensibleAuditedEntityDto, PagedAndSortedResultRequestDto } from '@abp/ng.core';
|
|
3
|
-
import type { EntryStatus } from '../../entries/entry-status.enum';
|
|
4
|
-
import type { CmsUserDto } from '../../../../volo/cms-kit/users/models';
|
|
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 CultureExistWithSingleSectionInput {
|
|
22
|
-
culture: string;
|
|
23
|
-
sectionId: string;
|
|
24
|
-
entryTypeId: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface EntryDto extends ExtensibleAuditedEntityDto<string> {
|
|
28
|
-
sectionId?: string;
|
|
29
|
-
entryTypeId?: string;
|
|
30
|
-
culture?: string;
|
|
31
|
-
title?: string;
|
|
32
|
-
slug?: string;
|
|
33
|
-
publishTime?: string;
|
|
34
|
-
status: EntryStatus;
|
|
35
|
-
parentId?: string;
|
|
36
|
-
order: number;
|
|
37
|
-
initialVersionId?: string;
|
|
38
|
-
isActivatedVersion: boolean;
|
|
39
|
-
versionNotes?: string;
|
|
40
|
-
author: CmsUserDto;
|
|
41
|
-
concurrencyStamp?: string;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface GetEntriesInput extends PagedAndSortedResultRequestDto {
|
|
45
|
-
culture: string;
|
|
46
|
-
sectionId: string;
|
|
47
|
-
entryTypeId?: string;
|
|
48
|
-
startPublishDate?: string;
|
|
49
|
-
expiryPublishDate?: string;
|
|
50
|
-
filter?: string;
|
|
51
|
-
status?: EntryStatus;
|
|
52
|
-
creatorId?: string;
|
|
53
|
-
queryingByFieldsJson?: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface MoveEntryInput {
|
|
57
|
-
parentId?: string;
|
|
58
|
-
order: number;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface SlugExistsInput {
|
|
62
|
-
culture: string;
|
|
63
|
-
sectionId: string;
|
|
64
|
-
slug?: string;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface UpdateEntryInput extends CreateOrUpdateEntryInputBase {
|
|
68
|
-
concurrencyStamp?: string;
|
|
69
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
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,55 +0,0 @@
|
|
|
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
|
-
}
|