@dignite-ng/expand.cms 0.0.20 → 0.0.21
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 +8 -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 +8 -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 +2 -0
- package/esm2022/config/providers/index.mjs +2 -0
- package/esm2022/config/providers/route.provider.mjs +64 -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 +101 -0
- package/esm2022/lib/cms.module.mjs +156 -0
- package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +285 -0
- package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +32 -0
- package/esm2022/lib/components/admin/entries/create.component.mjs +107 -0
- package/esm2022/lib/components/admin/entries/edit.component.mjs +110 -0
- package/esm2022/lib/components/admin/entries/entries.component.mjs +212 -0
- package/esm2022/lib/components/admin/entries/index.mjs +5 -0
- package/esm2022/lib/components/admin/fields/create-field.component.mjs +82 -0
- package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +121 -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 +110 -0
- package/esm2022/lib/components/admin/fields/field-group.component.mjs +124 -0
- package/esm2022/lib/components/admin/fields/fields.component.mjs +119 -0
- package/esm2022/lib/components/admin/fields/index.mjs +7 -0
- package/esm2022/lib/components/admin/index.mjs +5 -0
- package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +27 -0
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +71 -0
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +418 -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 +334 -0
- package/esm2022/lib/components/admin/sites/create-or-update-sites-input-base.mjs +23 -0
- package/esm2022/lib/components/admin/sites/index.mjs +3 -0
- package/esm2022/lib/components/admin/sites/sites.component.mjs +285 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +125 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +18 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +115 -0
- package/esm2022/lib/components/dynamic-form/entry/index.mjs +4 -0
- package/esm2022/lib/components/dynamic-form/form-control-group.mjs +31 -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 +229 -0
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +50 -0
- package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +111 -0
- package/esm2022/lib/components/dynamic-form/table/index.mjs +4 -0
- package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +174 -0
- package/esm2022/lib/components/dynamic-form/table/table-config.mjs +38 -0
- package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +114 -0
- package/esm2022/lib/components/index.mjs +3 -0
- package/esm2022/lib/constants/index.mjs +2 -0
- package/esm2022/lib/constants/styles.mjs +32 -0
- package/esm2022/lib/enums/ecms-component.mjs +13 -0
- package/esm2022/lib/enums/index.mjs +2 -0
- package/esm2022/lib/proxy/admin/dynamic-forms/form-admin.service.mjs +24 -0
- package/esm2022/lib/proxy/admin/dynamic-forms/index.mjs +3 -0
- package/esm2022/lib/proxy/admin/dynamic-forms/models.mjs +2 -0
- package/esm2022/lib/proxy/admin/entries/entry-admin.service.mjs +67 -0
- package/esm2022/lib/proxy/admin/entries/index.mjs +3 -0
- package/esm2022/lib/proxy/admin/entries/models.mjs +2 -0
- package/esm2022/lib/proxy/admin/fields/field-admin.service.mjs +47 -0
- package/esm2022/lib/proxy/admin/fields/field-group-admin.service.mjs +43 -0
- package/esm2022/lib/proxy/admin/fields/index.mjs +4 -0
- package/esm2022/lib/proxy/admin/fields/models.mjs +2 -0
- package/esm2022/lib/proxy/admin/index.mjs +7 -0
- package/esm2022/lib/proxy/admin/sections/entry-type-admin.service.mjs +43 -0
- package/esm2022/lib/proxy/admin/sections/index.mjs +4 -0
- package/esm2022/lib/proxy/admin/sections/models.mjs +2 -0
- package/esm2022/lib/proxy/admin/sections/section-admin.service.mjs +53 -0
- package/esm2022/lib/proxy/admin/sites/index.mjs +3 -0
- package/esm2022/lib/proxy/admin/sites/models.mjs +2 -0
- package/esm2022/lib/proxy/admin/sites/site-admin.service.mjs +51 -0
- package/esm2022/lib/proxy/dignite/abp/data/index.mjs +2 -0
- package/esm2022/lib/proxy/dignite/abp/data/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/abp/index.mjs +3 -0
- package/esm2022/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.mjs +48 -0
- package/esm2022/lib/proxy/dignite/file-explorer/directories/index.mjs +3 -0
- package/esm2022/lib/proxy/dignite/file-explorer/directories/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/file-explorer/files/file-descriptor.service.mjs +60 -0
- package/esm2022/lib/proxy/dignite/file-explorer/files/index.mjs +3 -0
- package/esm2022/lib/proxy/dignite/file-explorer/files/models.mjs +2 -0
- package/esm2022/lib/proxy/dignite/file-explorer/index.mjs +4 -0
- package/esm2022/lib/proxy/dignite/index.mjs +4 -0
- package/esm2022/lib/proxy/entries/entry-status.enum.mjs +8 -0
- package/esm2022/lib/proxy/entries/index.mjs +2 -0
- package/esm2022/lib/proxy/fields/index.mjs +2 -0
- package/esm2022/lib/proxy/fields/models.mjs +2 -0
- package/esm2022/lib/proxy/index.mjs +10 -0
- package/esm2022/lib/proxy/microsoft/asp-net-core/index.mjs +3 -0
- package/esm2022/lib/proxy/microsoft/asp-net-core/mvc/index.mjs +2 -0
- package/esm2022/lib/proxy/microsoft/asp-net-core/mvc/models.mjs +2 -0
- package/esm2022/lib/proxy/microsoft/extensions/index.mjs +3 -0
- package/esm2022/lib/proxy/microsoft/extensions/primitives/index.mjs +2 -0
- package/esm2022/lib/proxy/microsoft/extensions/primitives/models.mjs +2 -0
- package/esm2022/lib/proxy/microsoft/index.mjs +5 -0
- package/esm2022/lib/proxy/microsoft/net/http/headers/index.mjs +2 -0
- package/esm2022/lib/proxy/microsoft/net/http/headers/models.mjs +2 -0
- package/esm2022/lib/proxy/microsoft/net/http/index.mjs +3 -0
- package/esm2022/lib/proxy/microsoft/net/index.mjs +3 -0
- package/esm2022/lib/proxy/sections/index.mjs +3 -0
- package/esm2022/lib/proxy/sections/models.mjs +2 -0
- package/esm2022/lib/proxy/sections/section-type.enum.mjs +9 -0
- package/esm2022/lib/proxy/sites/index.mjs +2 -0
- package/esm2022/lib/proxy/sites/models.mjs +2 -0
- package/esm2022/lib/proxy/volo/abp/content/index.mjs +2 -0
- package/esm2022/lib/proxy/volo/abp/content/models.mjs +2 -0
- package/esm2022/lib/proxy/volo/abp/index.mjs +3 -0
- package/esm2022/lib/proxy/volo/cms-kit/index.mjs +3 -0
- package/esm2022/lib/proxy/volo/cms-kit/users/index.mjs +2 -0
- package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +2 -0
- package/esm2022/lib/proxy/volo/index.mjs +4 -0
- package/esm2022/lib/services/appent-content.mjs +15 -0
- package/esm2022/lib/services/cms-api.service.mjs +80 -0
- package/esm2022/lib/services/cms.service.mjs +23 -0
- package/esm2022/lib/services/field-abstracts.service.mjs +45 -0
- package/esm2022/lib/services/index.mjs +5 -0
- package/esm2022/lib/services/simple-reuse-strategy.mjs +43 -0
- package/esm2022/lib/services/update-list.service.mjs +19 -0
- package/esm2022/lib/toolbar/index.mjs +3 -0
- package/esm2022/lib/toolbar/toolbar-btn-default-action.mjs +160 -0
- package/esm2022/lib/toolbar/toolbar-config.mjs +81 -0
- package/esm2022/public-api.mjs +12 -0
- package/fesm2022/dignite-ng-expand.cms-config.mjs +87 -0
- package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -0
- package/fesm2022/dignite-ng-expand.cms.mjs +4516 -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 +40 -0
- package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +91 -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 +40 -0
- package/lib/components/admin/entries/edit.component.d.ts +42 -0
- package/lib/components/admin/entries/entries.component.d.ts +66 -0
- package/lib/components/admin/entries/index.d.ts +4 -0
- package/lib/components/admin/fields/create-field.component.d.ts +31 -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 +40 -0
- package/lib/components/admin/fields/field-group.component.d.ts +51 -0
- package/lib/components/admin/fields/fields.component.d.ts +37 -0
- package/lib/components/admin/fields/index.d.ts +6 -0
- package/lib/components/admin/index.d.ts +4 -0
- package/lib/components/admin/sections/create-or-update-sections-input-base.d.ts +17 -0
- package/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.d.ts +38 -0
- package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +132 -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 +95 -0
- package/lib/components/admin/sites/create-or-update-sites-input-base.d.ts +12 -0
- package/lib/components/admin/sites/index.d.ts +2 -0
- package/lib/components/admin/sites/sites.component.d.ts +72 -0
- package/lib/components/dynamic-form/entry/entry-config.component.d.ts +42 -0
- package/lib/components/dynamic-form/entry/entry-config.d.ts +9 -0
- package/lib/components/dynamic-form/entry/entry-control.component.d.ts +35 -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 +73 -0
- package/lib/components/dynamic-form/matrix/matrix-config.d.ts +24 -0
- package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +39 -0
- package/lib/components/dynamic-form/table/index.d.ts +3 -0
- package/lib/components/dynamic-form/table/table-config.component.d.ts +58 -0
- package/lib/components/dynamic-form/table/table-config.d.ts +18 -0
- package/lib/components/dynamic-form/table/table-control.component.d.ts +36 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/constants/index.d.ts +1 -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/admin/dynamic-forms/form-admin.service.d.ts +12 -0
- package/lib/proxy/admin/dynamic-forms/models.d.ts +4 -0
- package/lib/proxy/admin/entries/entry-admin.service.d.ts +21 -0
- package/lib/proxy/admin/entries/models.d.ts +65 -0
- package/lib/proxy/admin/fields/field-admin.service.d.ts +17 -0
- package/lib/proxy/admin/fields/field-group-admin.service.d.ts +16 -0
- package/{src/lib/proxy/admin/fields/models.ts → lib/proxy/admin/fields/models.d.ts} +34 -42
- package/lib/proxy/admin/sections/entry-type-admin.service.d.ts +15 -0
- package/{src/lib/proxy/admin/sections/models.ts → lib/proxy/admin/sections/models.d.ts} +74 -88
- package/lib/proxy/admin/sections/section-admin.service.d.ts +18 -0
- package/{src/lib/proxy/admin/sites/models.ts → lib/proxy/admin/sites/models.d.ts} +30 -36
- package/lib/proxy/admin/sites/site-admin.service.d.ts +18 -0
- package/lib/proxy/dignite/abp/data/models.d.ts +3 -0
- package/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.d.ts +17 -0
- package/{src/lib/proxy/dignite/file-explorer/directories/models.ts → lib/proxy/dignite/file-explorer/directories/models.d.ts} +29 -35
- package/lib/proxy/dignite/file-explorer/files/file-descriptor.service.d.ts +20 -0
- package/lib/proxy/dignite/file-explorer/files/models.d.ts +50 -0
- package/lib/proxy/entries/entry-status.enum.d.ts +5 -0
- package/lib/proxy/fields/models.d.ts +8 -0
- package/{src/lib/proxy/microsoft/asp-net-core/mvc/models.ts → lib/proxy/microsoft/asp-net-core/mvc/models.d.ts} +10 -12
- package/lib/proxy/microsoft/extensions/primitives/models.d.ts +8 -0
- package/{src/lib/proxy/microsoft/net/http/headers/models.ts → lib/proxy/microsoft/net/http/headers/models.d.ts} +6 -7
- package/lib/proxy/sections/models.d.ts +12 -0
- package/lib/proxy/sections/section-type.enum.d.ts +6 -0
- package/lib/proxy/sites/models.d.ts +4 -0
- package/lib/proxy/volo/abp/content/models.d.ts +5 -0
- package/{src/lib/proxy/volo/cms-kit/users/models.ts → lib/proxy/volo/cms-kit/users/models.d.ts} +7 -8
- package/lib/services/appent-content.d.ts +1 -0
- package/lib/services/cms-api.service.d.ts +20 -0
- package/lib/services/cms.service.d.ts +10 -0
- package/lib/services/field-abstracts.service.d.ts +20 -0
- package/lib/services/index.d.ts +4 -0
- package/lib/services/simple-reuse-strategy.d.ts +11 -0
- package/lib/services/update-list.service.d.ts +9 -0
- package/lib/toolbar/index.d.ts +2 -0
- package/lib/toolbar/toolbar-btn-default-action.d.ts +19 -0
- package/lib/toolbar/toolbar-config.d.ts +57 -0
- package/package.json +38 -19
- package/{src/public-api.ts → public-api.d.ts} +8 -12
- package/config/ng-package.json +0 -7
- package/config/src/cms-config.module.ts +0 -12
- package/config/src/enums/route-names.ts +0 -8
- package/config/src/providers/route.provider.ts +0 -66
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -7
- package/src/lib/cms-routing.module.ts +0 -111
- package/src/lib/cms.module.ts +0 -119
- package/src/lib/components/admin/entries/create-or-edit-entries.component.html +0 -115
- package/src/lib/components/admin/entries/create-or-edit-entries.component.scss +0 -25
- 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 -287
- package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +0 -36
- package/src/lib/components/admin/entries/create.component.html +0 -13
- package/src/lib/components/admin/entries/create.component.scss +0 -21
- package/src/lib/components/admin/entries/create.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/create.component.ts +0 -103
- package/src/lib/components/admin/entries/edit.component.html +0 -9
- package/src/lib/components/admin/entries/edit.component.scss +0 -26
- package/src/lib/components/admin/entries/edit.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/edit.component.ts +0 -103
- package/src/lib/components/admin/entries/entries.component.html +0 -106
- package/src/lib/components/admin/entries/entries.component.scss +0 -80
- package/src/lib/components/admin/entries/entries.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/entries.component.ts +0 -216
- 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 -10
- package/src/lib/components/admin/fields/create-field.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/create-field.component.ts +0 -68
- 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 -119
- 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 -13
- 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 -100
- 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 -132
- package/src/lib/components/admin/fields/fields.component.html +0 -73
- package/src/lib/components/admin/fields/fields.component.scss +0 -11
- package/src/lib/components/admin/fields/fields.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/fields.component.ts +0 -111
- package/src/lib/components/admin/fields/index.ts +0 -6
- package/src/lib/components/admin/index.ts +0 -4
- package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +0 -36
- package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts +0 -79
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.html +0 -191
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.scss +0 -24
- 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 -412
- 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 -191
- package/src/lib/components/admin/sections/sections.component.scss +0 -26
- package/src/lib/components/admin/sections/sections.component.spec.ts +0 -21
- package/src/lib/components/admin/sections/sections.component.ts +0 -334
- package/src/lib/components/admin/sites/create-or-update-sites-input-base.ts +0 -31
- package/src/lib/components/admin/sites/index.ts +0 -2
- package/src/lib/components/admin/sites/sites.component.html +0 -154
- package/src/lib/components/admin/sites/sites.component.scss +0 -19
- package/src/lib/components/admin/sites/sites.component.spec.ts +0 -21
- package/src/lib/components/admin/sites/sites.component.ts +0 -293
- package/src/lib/components/dynamic-form/entry/entry-config.component.html +0 -36
- 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 +0 -21
- package/src/lib/components/dynamic-form/entry/entry-config.component.ts +0 -115
- package/src/lib/components/dynamic-form/entry/entry-config.ts +0 -24
- package/src/lib/components/dynamic-form/entry/entry-control.component.html +0 -26
- package/src/lib/components/dynamic-form/entry/entry-control.component.scss +0 -20
- 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 -110
- package/src/lib/components/dynamic-form/entry/index.ts +0 -3
- package/src/lib/components/dynamic-form/form-control-group.ts +0 -31
- 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 -147
- 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 -238
- 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 -104
- 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 -170
- package/src/lib/components/dynamic-form/table/table-config.ts +0 -45
- package/src/lib/components/dynamic-form/table/table-control.component.html +0 -55
- package/src/lib/components/dynamic-form/table/table-control.component.scss +0 -10
- 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 -107
- package/src/lib/components/index.ts +0 -2
- package/src/lib/constants/index.ts +0 -1
- package/src/lib/constants/styles.ts +0 -31
- 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/admin/dynamic-forms/form-admin.service.ts +0 -21
- package/src/lib/proxy/admin/dynamic-forms/models.ts +0 -5
- package/src/lib/proxy/admin/entries/entry-admin.service.ts +0 -100
- package/src/lib/proxy/admin/entries/models.ts +0 -73
- package/src/lib/proxy/admin/fields/field-admin.service.ts +0 -64
- package/src/lib/proxy/admin/fields/field-group-admin.service.ts +0 -56
- package/src/lib/proxy/admin/sections/entry-type-admin.service.ts +0 -55
- package/src/lib/proxy/admin/sections/section-admin.service.ts +0 -74
- package/src/lib/proxy/admin/sites/site-admin.service.ts +0 -72
- package/src/lib/proxy/dignite/abp/data/models.ts +0 -4
- package/src/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.ts +0 -65
- package/src/lib/proxy/dignite/file-explorer/files/file-descriptor.service.ts +0 -86
- package/src/lib/proxy/dignite/file-explorer/files/models.ts +0 -57
- package/src/lib/proxy/entries/entry-status.enum.ts +0 -8
- package/src/lib/proxy/fields/models.ts +0 -9
- package/src/lib/proxy/generate-proxy.json +0 -11821
- package/src/lib/proxy/microsoft/extensions/primitives/models.ts +0 -9
- package/src/lib/proxy/sections/models.ts +0 -14
- package/src/lib/proxy/sections/section-type.enum.ts +0 -9
- package/src/lib/proxy/sites/models.ts +0 -5
- package/src/lib/proxy/volo/abp/content/models.ts +0 -6
- package/src/lib/services/appent-content.ts +0 -13
- package/src/lib/services/cms-api.service.ts +0 -71
- package/src/lib/services/cms.service.ts +0 -18
- package/src/lib/services/field-abstracts.service.ts +0 -41
- package/src/lib/services/index.ts +0 -4
- package/src/lib/services/simple-reuse-strategy.ts +0 -49
- package/src/lib/services/update-list.service.ts +0 -15
- package/src/lib/toolbar/index.ts +0 -2
- package/src/lib/toolbar/toolbar-btn-default-action.ts +0 -171
- package/src/lib/toolbar/toolbar-config.ts +0 -95
- package/src/test.ts +0 -26
- package/tsconfig.lib.json +0 -20
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
- /package/{src/lib/proxy/admin/dynamic-forms/index.ts → lib/proxy/admin/dynamic-forms/index.d.ts} +0 -0
- /package/{src/lib/proxy/admin/entries/index.ts → lib/proxy/admin/entries/index.d.ts} +0 -0
- /package/{src/lib/proxy/admin/fields/index.ts → lib/proxy/admin/fields/index.d.ts} +0 -0
- /package/{src/lib/proxy/admin/index.ts → lib/proxy/admin/index.d.ts} +0 -0
- /package/{src/lib/proxy/admin/sections/index.ts → lib/proxy/admin/sections/index.d.ts} +0 -0
- /package/{src/lib/proxy/admin/sites/index.ts → lib/proxy/admin/sites/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/abp/data/index.ts → lib/proxy/dignite/abp/data/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/abp/index.ts → lib/proxy/dignite/abp/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/file-explorer/directories/index.ts → lib/proxy/dignite/file-explorer/directories/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/file-explorer/files/index.ts → lib/proxy/dignite/file-explorer/files/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/file-explorer/index.ts → lib/proxy/dignite/file-explorer/index.d.ts} +0 -0
- /package/{src/lib/proxy/dignite/index.ts → lib/proxy/dignite/index.d.ts} +0 -0
- /package/{src/lib/proxy/entries/index.ts → lib/proxy/entries/index.d.ts} +0 -0
- /package/{src/lib/proxy/fields/index.ts → lib/proxy/fields/index.d.ts} +0 -0
- /package/{src/lib/proxy/index.ts → lib/proxy/index.d.ts} +0 -0
- /package/{src/lib/proxy/microsoft/asp-net-core/index.ts → lib/proxy/microsoft/asp-net-core/index.d.ts} +0 -0
- /package/{src/lib/proxy/microsoft/asp-net-core/mvc/index.ts → lib/proxy/microsoft/asp-net-core/mvc/index.d.ts} +0 -0
- /package/{src/lib/proxy/microsoft/extensions/index.ts → lib/proxy/microsoft/extensions/index.d.ts} +0 -0
- /package/{src/lib/proxy/microsoft/extensions/primitives/index.ts → lib/proxy/microsoft/extensions/primitives/index.d.ts} +0 -0
- /package/{src/lib/proxy/microsoft/index.ts → lib/proxy/microsoft/index.d.ts} +0 -0
- /package/{src/lib/proxy/microsoft/net/http/headers/index.ts → lib/proxy/microsoft/net/http/headers/index.d.ts} +0 -0
- /package/{src/lib/proxy/microsoft/net/http/index.ts → lib/proxy/microsoft/net/http/index.d.ts} +0 -0
- /package/{src/lib/proxy/microsoft/net/index.ts → lib/proxy/microsoft/net/index.d.ts} +0 -0
- /package/{src/lib/proxy/sections/index.ts → lib/proxy/sections/index.d.ts} +0 -0
- /package/{src/lib/proxy/sites/index.ts → lib/proxy/sites/index.d.ts} +0 -0
- /package/{src/lib/proxy/volo/abp/content/index.ts → lib/proxy/volo/abp/content/index.d.ts} +0 -0
- /package/{src/lib/proxy/volo/abp/index.ts → lib/proxy/volo/abp/index.d.ts} +0 -0
- /package/{src/lib/proxy/volo/cms-kit/index.ts → lib/proxy/volo/cms-kit/index.d.ts} +0 -0
- /package/{src/lib/proxy/volo/cms-kit/users/index.ts → lib/proxy/volo/cms-kit/users/index.d.ts} +0 -0
- /package/{src/lib/proxy/volo/index.ts → lib/proxy/volo/index.d.ts} +0 -0
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { Component, ElementRef, OnInit, ViewChild, inject } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import { FieldAbstractsService } from '../../../services/field-abstracts.service';
|
|
4
|
-
import { CreateOrUpdateFieldInputBase } from './create-or-update-field-input-base';
|
|
5
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
|
-
import { FieldAdminService } from '../../../proxy/admin/fields';
|
|
7
|
-
import { ToasterService } from '@abp/ng.theme.shared';
|
|
8
|
-
import { Location } from '@angular/common';
|
|
9
|
-
import { LocalizationService } from '@abp/ng.core';
|
|
10
|
-
import { EXTENSIONS_IDENTIFIER } from '@abp/ng.theme.shared/extensions';
|
|
11
|
-
import { ECmsComponent } from '../../../enums';
|
|
12
|
-
import { CmsApiService } from '../../../services';
|
|
13
|
-
import { UpdateListService } from '../../../services/update-list.service';
|
|
14
|
-
|
|
15
|
-
@Component({
|
|
16
|
-
selector: 'cms-edit-field',
|
|
17
|
-
templateUrl: './edit-field.component.html',
|
|
18
|
-
styleUrls: ['./edit-field.component.scss'],
|
|
19
|
-
providers: [
|
|
20
|
-
{
|
|
21
|
-
provide: EXTENSIONS_IDENTIFIER,
|
|
22
|
-
useValue: ECmsComponent.FieldsEdit,
|
|
23
|
-
},
|
|
24
|
-
]
|
|
25
|
-
})
|
|
26
|
-
export class EditFieldComponent implements OnInit {
|
|
27
|
-
|
|
28
|
-
constructor(
|
|
29
|
-
private fb: FormBuilder,
|
|
30
|
-
public _FieldAbstractsService: FieldAbstractsService,
|
|
31
|
-
public _FieldAdminService: FieldAdminService,
|
|
32
|
-
private route: ActivatedRoute,
|
|
33
|
-
private toaster: ToasterService,
|
|
34
|
-
public _location: Location,
|
|
35
|
-
public _LocalizationService: LocalizationService,
|
|
36
|
-
public _CmsApiService: CmsApiService,
|
|
37
|
-
private router: Router,
|
|
38
|
-
) { }
|
|
39
|
-
|
|
40
|
-
/**表单实体 */
|
|
41
|
-
newEntity: FormGroup | undefined
|
|
42
|
-
|
|
43
|
-
/**字段id */
|
|
44
|
-
fieldId: string = '';
|
|
45
|
-
|
|
46
|
-
/**字段详情 */
|
|
47
|
-
fieldDetails: any;
|
|
48
|
-
|
|
49
|
-
/**获取提交按钮替身,用于真实触发表单提交 */
|
|
50
|
-
@ViewChild('submitclick', { static: true }) submitclick: ElementRef;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
async ngOnInit(): Promise<void> {
|
|
54
|
-
const _fieldId = this.route.snapshot.params.id;
|
|
55
|
-
if (_fieldId) {
|
|
56
|
-
this.fieldId = _fieldId;
|
|
57
|
-
this.newEntity = this.fb.group(new CreateOrUpdateFieldInputBase());
|
|
58
|
-
await Promise.all([
|
|
59
|
-
this._FieldAbstractsService.getFromControlList(),
|
|
60
|
-
this.getFieldEdit(),
|
|
61
|
-
]);
|
|
62
|
-
this.newEntity.patchValue({
|
|
63
|
-
...this.fieldDetails,
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**获取字段详情 */
|
|
69
|
-
getFieldEdit() {
|
|
70
|
-
return new Promise((resolve, reject) => {
|
|
71
|
-
this._FieldAdminService.get(this.fieldId).subscribe(res => {
|
|
72
|
-
res.groupId = res.groupId ? res.groupId : ''
|
|
73
|
-
this.fieldDetails = res
|
|
74
|
-
resolve(res)
|
|
75
|
-
})
|
|
76
|
-
})
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**触发提交按钮 */
|
|
80
|
-
submitclickBtn() {
|
|
81
|
-
this.submitclick.nativeElement.click()
|
|
82
|
-
}
|
|
83
|
-
private _UpdateListService=inject(UpdateListService)
|
|
84
|
-
|
|
85
|
-
/**保存表单 */
|
|
86
|
-
save() {
|
|
87
|
-
let input = this.newEntity.value
|
|
88
|
-
if (!this.newEntity.valid) return
|
|
89
|
-
this._FieldAdminService.update(this.fieldId, input).subscribe((res => {
|
|
90
|
-
this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
|
|
91
|
-
this.router.navigateByUrl('', { skipLocationChange: true }).then(() => {
|
|
92
|
-
this.router.navigate([`/cms/admin/fields`]);
|
|
93
|
-
this._UpdateListService.updateList();
|
|
94
|
-
});
|
|
95
|
-
}))
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
<div class="card-header px-2 py-sm-2 d-flex justify-content-between align-items-center">
|
|
2
|
-
<h6 class="h6 mb-0">{{'Cms::FieldGroup' | abpLocalization}}</h6>
|
|
3
|
-
<button type="button" class="btn btn-link btn-sm ms-2"><i class="fas fa-plus-circle" aria-hidden="true"
|
|
4
|
-
(click)="createGroupBtn()"></i></button>
|
|
5
|
-
</div>
|
|
6
|
-
<div class="card-body p-0">
|
|
7
|
-
<div class="container-height overflow-auto">
|
|
8
|
-
<ul class="list-group list-group-flush">
|
|
9
|
-
<li class="list-group-item list-group-item-action active" [class.active]="fieldGroupId===''"
|
|
10
|
-
(click)="fieldGroupChange('')">{{'Cms::AllFields' | abpLocalization}}</li>
|
|
11
|
-
<ng-container *ngFor="let item of _FieldAbstractsService.fieldGroupList">
|
|
12
|
-
<li class="list-group-item list-group-item-action d-flex justify-content-between align-items-center"
|
|
13
|
-
[class.active]="fieldGroupId===item.id" (click)="fieldGroupChange(item.id)">
|
|
14
|
-
<div>{{item.name}}</div>
|
|
15
|
-
<div *ngIf="fieldGroupId===item.id">
|
|
16
|
-
<i class="fas fa-trash px-1" role="button" (click.stop)="deleteGroupbtn(item)"></i>
|
|
17
|
-
<i class="fas fa-edit px-1" role="button" (click.stop)="editGroupBtn(item.name)"></i>
|
|
18
|
-
</div>
|
|
19
|
-
</li>
|
|
20
|
-
</ng-container>
|
|
21
|
-
</ul>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
|
|
25
|
-
<abp-modal [(visible)]="createGroupOpen" [busy]="modalBusy" (visibleChange)="createGroupVisibleChange($event)">
|
|
26
|
-
<ng-template #abpHeader>
|
|
27
|
-
<h3>{{'Cms::New' | abpLocalization}}</h3>
|
|
28
|
-
</ng-template>
|
|
29
|
-
<ng-template #abpBody>
|
|
30
|
-
<ng-template #loaderRef>
|
|
31
|
-
<div class="text-center"><i class="fa fa-pulse fa-spinner" aria-hidden="true"></i></div>
|
|
32
|
-
</ng-template>
|
|
33
|
-
<form *ngIf="createForm; else loaderRef" [formGroup]="createForm" (ngSubmit)="createSave()">
|
|
34
|
-
<div class="mb-3">
|
|
35
|
-
<label for="exampleFormControlInput1" class="form-label">{{'Cms::Name' | abpLocalization}}</label>
|
|
36
|
-
<input type="text" class="form-control" id="exampleFormControlInput1" formControlName="name"
|
|
37
|
-
placeholder="">
|
|
38
|
-
</div>
|
|
39
|
-
</form>
|
|
40
|
-
</ng-template>
|
|
41
|
-
|
|
42
|
-
<ng-template #abpFooter>
|
|
43
|
-
<button type="button" class="btn btn-secondary" abpClose>{{'AbpUi::Close' | abpLocalization}}</button>
|
|
44
|
-
<abp-button iconClass="fa fa-check" [disabled]="createForm?.invalid" (click)="createSave()">{{'AbpUi::Save' | abpLocalization}}</abp-button>
|
|
45
|
-
</ng-template>
|
|
46
|
-
</abp-modal>
|
|
47
|
-
|
|
48
|
-
<abp-modal [(visible)]="editGroupOpen" [busy]="modalBusy" (visibleChange)="editGroupVisibleChange($event)">
|
|
49
|
-
<ng-template #abpHeader>
|
|
50
|
-
<h3>{{'AbpUi::Edit' | abpLocalization}}</h3>
|
|
51
|
-
</ng-template>
|
|
52
|
-
<ng-template #abpBody>
|
|
53
|
-
<ng-template #loaderRef>
|
|
54
|
-
<div class="text-center"><i class="fa fa-pulse fa-spinner" aria-hidden="true"></i></div>
|
|
55
|
-
</ng-template>
|
|
56
|
-
<form *ngIf="editGroupForm; else loaderRef" [formGroup]="editGroupForm" (ngSubmit)="editSave()">
|
|
57
|
-
<div class="mb-3">
|
|
58
|
-
<label for="exampleFormControlInput1" class="form-label">{{'Cms::Name' | abpLocalization}}</label>
|
|
59
|
-
<input type="text" class="form-control" id="exampleFormControlInput1" formControlName="name"
|
|
60
|
-
placeholder="">
|
|
61
|
-
</div>
|
|
62
|
-
</form>
|
|
63
|
-
</ng-template>
|
|
64
|
-
|
|
65
|
-
<ng-template #abpFooter>
|
|
66
|
-
<button type="button" class="btn btn-secondary" abpClose>{{'AbpUi::Close' | abpLocalization}}</button>
|
|
67
|
-
<abp-button iconClass="fa fa-check" [disabled]="editGroupForm?.invalid" (click)="editSave()">{{'AbpUi::Save' | abpLocalization}}</abp-button>
|
|
68
|
-
</ng-template>
|
|
69
|
-
</abp-modal>
|
|
File without changes
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { FieldGroupComponent } from './field-group.component';
|
|
4
|
-
|
|
5
|
-
describe('FieldGroupComponent', () => {
|
|
6
|
-
let component: FieldGroupComponent;
|
|
7
|
-
let fixture: ComponentFixture<FieldGroupComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
TestBed.configureTestingModule({
|
|
11
|
-
declarations: [FieldGroupComponent]
|
|
12
|
-
});
|
|
13
|
-
fixture = TestBed.createComponent(FieldGroupComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, OnInit, Output } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
|
3
|
-
import { FieldGroupAdminService, FieldGroupDto } from '../../../proxy/admin/fields';
|
|
4
|
-
import { Confirmation, ConfirmationService, ToasterService } from '@abp/ng.theme.shared';
|
|
5
|
-
import { finalize, switchMap, tap } from 'rxjs/operators';
|
|
6
|
-
import { FieldAbstractsService } from '../../../services/field-abstracts.service';
|
|
7
|
-
import { LocalizationService } from '@abp/ng.core';
|
|
8
|
-
|
|
9
|
-
@Component({
|
|
10
|
-
selector: 'cms-field-group',
|
|
11
|
-
templateUrl: './field-group.component.html',
|
|
12
|
-
styleUrls: ['./field-group.component.scss']
|
|
13
|
-
})
|
|
14
|
-
export class FieldGroupComponent implements OnInit {
|
|
15
|
-
constructor(
|
|
16
|
-
private fb: FormBuilder,
|
|
17
|
-
private _FieldGroupAdminService: FieldGroupAdminService,
|
|
18
|
-
private toaster: ToasterService,
|
|
19
|
-
private confirmation: ConfirmationService,
|
|
20
|
-
public _FieldAbstractsService: FieldAbstractsService,
|
|
21
|
-
public _LocalizationService: LocalizationService,
|
|
22
|
-
) { }
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
/**创建分组表单 */
|
|
26
|
-
createForm: FormGroup | undefined;
|
|
27
|
-
|
|
28
|
-
/** 编辑分组表单*/
|
|
29
|
-
editGroupForm: FormGroup | undefined;
|
|
30
|
-
|
|
31
|
-
/**表单已存在的值 */
|
|
32
|
-
selected = {} as any;
|
|
33
|
-
|
|
34
|
-
/**选择的字段分组id */
|
|
35
|
-
fieldGroupId: string | undefined = ''
|
|
36
|
-
|
|
37
|
-
/**创建分组模态框状态 */
|
|
38
|
-
createGroupOpen = false
|
|
39
|
-
|
|
40
|
-
/**用于确定模态的繁忙状态是否为真 */
|
|
41
|
-
modalBusy: boolean = false
|
|
42
|
-
|
|
43
|
-
/**编辑分组模态框状态 */
|
|
44
|
-
editGroupOpen: boolean = false
|
|
45
|
-
|
|
46
|
-
/**点击分组回调 */
|
|
47
|
-
@Output() OnGroupClickBack = new EventEmitter();
|
|
48
|
-
|
|
49
|
-
ngOnInit(): void {
|
|
50
|
-
this._FieldAbstractsService.getfieldGroupList()
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**创建字段分组 */
|
|
54
|
-
createGroupBtn() {
|
|
55
|
-
this.createGroupOpen = true
|
|
56
|
-
this.createForm = this.fb.group({
|
|
57
|
-
name: ['', [Validators.required]],
|
|
58
|
-
})
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**创建分组模态框状态改变 */
|
|
62
|
-
createGroupVisibleChange(event) {
|
|
63
|
-
if (!event) {
|
|
64
|
-
return
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**编辑字段分组 */
|
|
69
|
-
editGroupBtn(itemName: string) {
|
|
70
|
-
this.editGroupOpen = true
|
|
71
|
-
this.editGroupForm = this.fb.group({
|
|
72
|
-
name: [itemName, [Validators.required]],
|
|
73
|
-
})
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**编辑分组模态框状态改变 */
|
|
77
|
-
editGroupVisibleChange(event) {
|
|
78
|
-
if (!event) {
|
|
79
|
-
return
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**创建字段分组保存 */
|
|
84
|
-
createSave() {
|
|
85
|
-
let input = this.createForm.value
|
|
86
|
-
this.modalBusy = true
|
|
87
|
-
this._FieldGroupAdminService.create(input).pipe(finalize(() => {
|
|
88
|
-
this.modalBusy = false
|
|
89
|
-
this.createGroupOpen = false
|
|
90
|
-
})).subscribe(res => {
|
|
91
|
-
this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
|
|
92
|
-
this._FieldAbstractsService.getfieldGroupList()
|
|
93
|
-
})
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**编辑字段分组保存 */
|
|
97
|
-
editSave() {
|
|
98
|
-
let input = this.editGroupForm.value
|
|
99
|
-
this.modalBusy = true
|
|
100
|
-
this._FieldGroupAdminService.update(this.fieldGroupId, input).pipe(finalize(() => {
|
|
101
|
-
this.modalBusy = false
|
|
102
|
-
this.editGroupOpen = false
|
|
103
|
-
})).subscribe(res => {
|
|
104
|
-
this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
|
|
105
|
-
this._FieldAbstractsService.getfieldGroupList()
|
|
106
|
-
})
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**删除字段分组1 */
|
|
110
|
-
deleteGroupbtn(fieldGroupitem: any) {
|
|
111
|
-
this.confirmation.warn(
|
|
112
|
-
fieldGroupitem.name,
|
|
113
|
-
this._LocalizationService.instant(`AbpUi::ItemWillBeDeletedMessage`),
|
|
114
|
-
).subscribe((status: Confirmation.Status) => {
|
|
115
|
-
if (status == 'confirm') {
|
|
116
|
-
this._FieldGroupAdminService.delete(this.fieldGroupId).pipe(finalize(() => {
|
|
117
|
-
})).subscribe(res => {
|
|
118
|
-
this.toaster.success(this._LocalizationService.instant(`AbpUi::SuccessfullyDeleted`));
|
|
119
|
-
this.fieldGroupId = ''
|
|
120
|
-
this._FieldAbstractsService.getfieldGroupList()
|
|
121
|
-
})
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/**字段分组改变 */
|
|
127
|
-
fieldGroupChange(event) {
|
|
128
|
-
this.fieldGroupId = event
|
|
129
|
-
this.OnGroupClickBack.emit(event)
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
<abp-page [title]="'Cms::Fields' | abpLocalization" [toolbar]="true">
|
|
2
|
-
<div class="fields-page">
|
|
3
|
-
<div class="row ">
|
|
4
|
-
<div class="col-3">
|
|
5
|
-
<div class="card mb-0" style="height: 100%;">
|
|
6
|
-
<cms-field-group (OnGroupClickBack)="fieldGroupChange($event)"></cms-field-group>
|
|
7
|
-
</div>
|
|
8
|
-
</div>
|
|
9
|
-
<div class="col-9">
|
|
10
|
-
<div class="card mb-0">
|
|
11
|
-
<div class="card-header px-2 py-sm-2 border-bottom">
|
|
12
|
-
<div class="input-group">
|
|
13
|
-
<input type="text" class="form-control" [(ngModel)]="filters.filter"
|
|
14
|
-
[placeholder]="'AbpUi::Search' | abpLocalization">
|
|
15
|
-
<button class="btn btn-primary px-3" type="button" id="button-addon2"
|
|
16
|
-
(click)="list.get()"><i class="fa fa-search"></i></button>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
<div class="card-body p-0">
|
|
20
|
-
<div class="table-responsive table-fixed-header">
|
|
21
|
-
<ngx-datatable class="material container-height" [rows]="data.items" [list]="list"
|
|
22
|
-
[columnMode]="'force'" [headerHeight]="50" [footerHeight]="50" rowHeight="auto"
|
|
23
|
-
[scrollbarV]="true" [virtualization]="false" [externalPaging]="true"
|
|
24
|
-
[count]="data.totalCount">
|
|
25
|
-
<ngx-datatable-column [name]="'Cms::DisplayName' | abpLocalization" prop="displayName">
|
|
26
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
27
|
-
{{ value }}
|
|
28
|
-
</ng-template>
|
|
29
|
-
</ngx-datatable-column>
|
|
30
|
-
<ngx-datatable-column [name]="'Cms::Name' | abpLocalization" prop="name">
|
|
31
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
32
|
-
{{ value }}
|
|
33
|
-
</ng-template>
|
|
34
|
-
</ngx-datatable-column>
|
|
35
|
-
<ngx-datatable-column [name]="'Cms::FormControlName' | abpLocalization"
|
|
36
|
-
prop="formControlName">
|
|
37
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
38
|
-
{{ value }}
|
|
39
|
-
</ng-template>
|
|
40
|
-
</ngx-datatable-column>
|
|
41
|
-
<ngx-datatable-column [name]="'Cms::Group' | abpLocalization" prop="groupId">
|
|
42
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
43
|
-
{{row.groupName}}
|
|
44
|
-
</ng-template>
|
|
45
|
-
</ngx-datatable-column>
|
|
46
|
-
<ngx-datatable-column [name]="'Cms::CreationTime' | abpLocalization" prop="creationTime">
|
|
47
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
48
|
-
{{ value|date:'YYYY/MM/dd HH:m:s' }}
|
|
49
|
-
</ng-template>
|
|
50
|
-
</ngx-datatable-column>
|
|
51
|
-
<ngx-datatable-column [sortable]="false">
|
|
52
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
53
|
-
<div ngbDropdown container="body">
|
|
54
|
-
<button type="button" class="btn btn-outline-primary btn-sm"
|
|
55
|
-
ngbDropdownToggle> {{'AbpUi::Actions' | abpLocalization}}</button>
|
|
56
|
-
<div ngbDropdownMenu>
|
|
57
|
-
<button ngbDropdownItem
|
|
58
|
-
routerLink="/cms/admin/fields/{{row.id}}/edit">{{'AbpUi::Edit' | abpLocalization}}</button>
|
|
59
|
-
<button ngbDropdownItem
|
|
60
|
-
(click.stop)="deletefield(row)">{{'AbpUi::Delete' | abpLocalization}}</button>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
</ng-template>
|
|
64
|
-
</ngx-datatable-column>
|
|
65
|
-
</ngx-datatable>
|
|
66
|
-
</div>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
|
|
73
|
-
</abp-page>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { FieldsComponent } from './fields.component';
|
|
4
|
-
|
|
5
|
-
describe('FieldsComponent', () => {
|
|
6
|
-
let component: FieldsComponent;
|
|
7
|
-
let fixture: ComponentFixture<FieldsComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
TestBed.configureTestingModule({
|
|
11
|
-
declarations: [FieldsComponent]
|
|
12
|
-
});
|
|
13
|
-
fixture = TestBed.createComponent(FieldsComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { ABP, LIST_QUERY_DEBOUNCE_TIME, ListService, LocalizationService, PagedResultDto } from '@abp/ng.core';
|
|
3
|
-
import { ToasterService, ConfirmationService, Confirmation } from '@abp/ng.theme.shared';
|
|
4
|
-
import { Component, OnDestroy, OnInit, inject } from '@angular/core';
|
|
5
|
-
import { Router } from '@angular/router';
|
|
6
|
-
import { FieldAdminService, FieldDto, GetFieldsInput } from '../../../proxy/admin/fields';
|
|
7
|
-
import { ColumnMode } from "@swimlane/ngx-datatable";
|
|
8
|
-
import { finalize } from 'rxjs/operators';
|
|
9
|
-
import { EXTENSIONS_IDENTIFIER } from '@abp/ng.theme.shared/extensions';
|
|
10
|
-
import { ECmsComponent } from '../../../enums';
|
|
11
|
-
import { CmsApiService } from '../../../services';
|
|
12
|
-
import { UpdateListService } from '../../../services/update-list.service';
|
|
13
|
-
|
|
14
|
-
@Component({
|
|
15
|
-
selector: 'cms-fields',
|
|
16
|
-
templateUrl: './fields.component.html',
|
|
17
|
-
styleUrls: ['./fields.component.scss'],
|
|
18
|
-
providers: [
|
|
19
|
-
// [Required]
|
|
20
|
-
ListService,
|
|
21
|
-
// [Optional]
|
|
22
|
-
// Provide this token if you want a different debounce time.
|
|
23
|
-
// Default is 300. Cannot be 0. Any value below 100 is not recommended.
|
|
24
|
-
{ provide: LIST_QUERY_DEBOUNCE_TIME, useValue: 500 },
|
|
25
|
-
{
|
|
26
|
-
provide: EXTENSIONS_IDENTIFIER,
|
|
27
|
-
useValue: ECmsComponent.Fields,
|
|
28
|
-
},
|
|
29
|
-
]
|
|
30
|
-
})
|
|
31
|
-
export class FieldsComponent implements OnInit {
|
|
32
|
-
|
|
33
|
-
constructor(
|
|
34
|
-
public readonly list: ListService,
|
|
35
|
-
private _FieldAdminService: FieldAdminService,
|
|
36
|
-
private toaster: ToasterService,
|
|
37
|
-
private confirmation: ConfirmationService,
|
|
38
|
-
private _LocalizationService: LocalizationService,
|
|
39
|
-
private router: Router,
|
|
40
|
-
private _CmsApiService: CmsApiService,
|
|
41
|
-
) {
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
private _UpdateListService=inject(UpdateListService)
|
|
45
|
-
/**表格单元格布局类型 */
|
|
46
|
-
ColumnMode = ColumnMode;
|
|
47
|
-
|
|
48
|
-
/**表格数据 */
|
|
49
|
-
data: PagedResultDto<FieldDto> = {
|
|
50
|
-
items: [],
|
|
51
|
-
totalCount: 0,
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
/**过滤器 */
|
|
55
|
-
filters = {} as GetFieldsInput;
|
|
56
|
-
|
|
57
|
-
ngOnInit(): void {
|
|
58
|
-
this.hookToQuery()
|
|
59
|
-
this._UpdateListService.updateListEvent.subscribe(() => {
|
|
60
|
-
this.list.get()
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
getData(){
|
|
64
|
-
this.list.get()
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
/**字段分组选择回调 */
|
|
69
|
-
fieldGroupChange(event) {
|
|
70
|
-
this.filters.groupId = event
|
|
71
|
-
this.list.page=0
|
|
72
|
-
this.list.get()
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
/**使用abp的list获取表格的字段数据列表 */
|
|
78
|
-
hookToQuery() {
|
|
79
|
-
const getData = (query: ABP.PageQueryParams) => this._FieldAdminService.getList({
|
|
80
|
-
...query,
|
|
81
|
-
...this.filters,
|
|
82
|
-
});
|
|
83
|
-
const setData = (list: PagedResultDto<FieldDto>) => (this.data = list);
|
|
84
|
-
this.list.hookToQuery(getData).subscribe(setData);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**新建字段按钮 */
|
|
88
|
-
toFieldsCreateBtn() {
|
|
89
|
-
this.router.navigate(['/cms/admin/fields/create'],
|
|
90
|
-
{
|
|
91
|
-
queryParams: {}
|
|
92
|
-
}
|
|
93
|
-
)
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**删除字段 */
|
|
97
|
-
deletefield(row: any) {
|
|
98
|
-
this.confirmation.warn(
|
|
99
|
-
row.displayName,
|
|
100
|
-
this._LocalizationService.instant(`AbpUi::ItemWillBeDeletedMessage`),
|
|
101
|
-
).subscribe((status: Confirmation.Status) => {
|
|
102
|
-
if (status == 'confirm') {
|
|
103
|
-
this._FieldAdminService.delete(row.id).pipe(finalize(() => {
|
|
104
|
-
})).subscribe(res => {
|
|
105
|
-
this.toaster.success(this._LocalizationService.instant(`AbpUi::SuccessfullyDeleted`));
|
|
106
|
-
this.list.get()
|
|
107
|
-
})
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormArray, FormBuilder, FormControl, FormGroup, Validators } from "@angular/forms";
|
|
3
|
-
|
|
4
|
-
export class CreateOrUpdateSectionsInputBase {
|
|
5
|
-
/**版块类型 */
|
|
6
|
-
type: any = [0, [Validators.required]];
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**字段名称 Display name of this field */
|
|
10
|
-
displayName: any = ['', [Validators.required]];
|
|
11
|
-
|
|
12
|
-
/**字段唯一名称 Unique Name*/
|
|
13
|
-
name: any = ['', [Validators.required]];
|
|
14
|
-
|
|
15
|
-
/**条目路由 */
|
|
16
|
-
route: any = ['', [Validators.required]];
|
|
17
|
-
/**页面模板 */
|
|
18
|
-
template: any = ['', [Validators.required]];
|
|
19
|
-
/**是否默认 */
|
|
20
|
-
isDefault: any = [false, []];
|
|
21
|
-
/**是否激活 */
|
|
22
|
-
isActive: any = [true, []];
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
constructor(data?: CreateOrUpdateSectionsInputBase) {
|
|
27
|
-
if (data) {
|
|
28
|
-
for (const key in data) {
|
|
29
|
-
if (data.hasOwnProperty(key)) {
|
|
30
|
-
this[key] = data[key];
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
}
|
package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { FormArray, FormBuilder, FormControl, FormGroup, Validators } from "@angular/forms";
|
|
2
|
-
|
|
3
|
-
export class CreateOrEditEntryTypeInputBase {
|
|
4
|
-
/**显示名称 Display name of this field */
|
|
5
|
-
displayName: any = ['', [Validators.required]];
|
|
6
|
-
|
|
7
|
-
/**名称 Unique Name*/
|
|
8
|
-
name: any = ['', [Validators.required]];
|
|
9
|
-
/**条目路由 */
|
|
10
|
-
fieldTabs: any = new FormArray([])
|
|
11
|
-
|
|
12
|
-
constructor(data?: CreateOrEditEntryTypeInputBase) {
|
|
13
|
-
if (data) {
|
|
14
|
-
for (const key in data) {
|
|
15
|
-
if (data.hasOwnProperty(key)) {
|
|
16
|
-
this[key] = data[key];
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export class fieldTabsBase {
|
|
23
|
-
/**名称 Unique Name*/
|
|
24
|
-
name: any = ['', [Validators.required]];
|
|
25
|
-
fields?: any = [[], []]
|
|
26
|
-
constructor(data?: fieldTabsBase) {
|
|
27
|
-
if (data) {
|
|
28
|
-
for (const key in data) {
|
|
29
|
-
if (data.hasOwnProperty(key)) {
|
|
30
|
-
this[key] = data[key];
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
export class fieldsBase {
|
|
37
|
-
/**字段id Unique Name*/
|
|
38
|
-
fieldId: any = ['', [Validators.required]];
|
|
39
|
-
/**显示名称 Unique Name*/
|
|
40
|
-
displayName: any = ['', [Validators.required]];
|
|
41
|
-
/**必填 Unique Name*/
|
|
42
|
-
required: any = [false, []];
|
|
43
|
-
/**是否在列表中显示 Unique Name*/
|
|
44
|
-
showOnList: any = [false, []];
|
|
45
|
-
|
|
46
|
-
constructor(data?: fieldsBase) {
|
|
47
|
-
if (data) {
|
|
48
|
-
for (const key in data) {
|
|
49
|
-
if (data.hasOwnProperty(key)) {
|
|
50
|
-
this[key] = data[key];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export class fieldsInputBase {
|
|
59
|
-
/**字段id */
|
|
60
|
-
fieldId = ['', [Validators.required]];
|
|
61
|
-
/**显示名称 Display name of this field */
|
|
62
|
-
displayName: any = ['', [Validators.required]];
|
|
63
|
-
|
|
64
|
-
/**是否必填 Unique Name*/
|
|
65
|
-
required: any = [false, []];
|
|
66
|
-
/**在列表中展示 Unique Name*/
|
|
67
|
-
showOnList: any = [false, []];
|
|
68
|
-
constructor(data?: fieldsInputBase) {
|
|
69
|
-
if (data) {
|
|
70
|
-
for (const key in data) {
|
|
71
|
-
if (data.hasOwnProperty(key)) {
|
|
72
|
-
this[key] = data[key];
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|