@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,36 +0,0 @@
|
|
|
1
|
-
import { FormGroup, Validators } from "@angular/forms";
|
|
2
|
-
|
|
3
|
-
export class CreateOrUpdateEntryInputBase {
|
|
4
|
-
/**语言 */
|
|
5
|
-
culture: any = ['', [Validators.required]]
|
|
6
|
-
/**条目id */
|
|
7
|
-
entryTypeId: any = ['']
|
|
8
|
-
/**标题 */
|
|
9
|
-
title: any = ['', [Validators.required]]
|
|
10
|
-
/**别名 */
|
|
11
|
-
slug: any = ['', [Validators.required]]
|
|
12
|
-
/**是否是草稿 */
|
|
13
|
-
draft: any = ['', []]
|
|
14
|
-
/**发布时间 */
|
|
15
|
-
publishTime: any = ['', [Validators.required]]
|
|
16
|
-
/**上级目录 */
|
|
17
|
-
parentId:any=[null]
|
|
18
|
-
/**修订说明 */
|
|
19
|
-
versionNotes:any=[null]
|
|
20
|
-
/**版本 */
|
|
21
|
-
initialVersionId: any = [null]
|
|
22
|
-
|
|
23
|
-
extraProperties: FormGroup | undefined = new FormGroup({})
|
|
24
|
-
|
|
25
|
-
constructor(data?: CreateOrUpdateEntryInputBase) {
|
|
26
|
-
if (data) {
|
|
27
|
-
for (const key in data) {
|
|
28
|
-
if (data.hasOwnProperty(key)) {
|
|
29
|
-
this[key] = data[key];
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<form class="row g-3 needs-validation" [formGroup]="newEntity" (ngSubmit)="save(draftType)">
|
|
2
|
-
<abp-page [title]="'Cms::New'| abpLocalization" [toolbar]="true">
|
|
3
|
-
<button type="submit" style="display: none;" #submitclick></button>
|
|
4
|
-
<ng-container *ngIf="entrySelect; else elseTemplate">
|
|
5
|
-
<cms-create-or-edit-entries [entity]="newEntity" [ParentQueryParams]="queryParams"
|
|
6
|
-
[parentEntrySelect]="entrySelect" ></cms-create-or-edit-entries>
|
|
7
|
-
</ng-container>
|
|
8
|
-
<ng-template #elseTemplate>
|
|
9
|
-
<cms-create-or-edit-entries [entity]="newEntity"
|
|
10
|
-
[ParentQueryParams]="queryParams" ></cms-create-or-edit-entries>
|
|
11
|
-
</ng-template>
|
|
12
|
-
</abp-page>
|
|
13
|
-
</form>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
::ng-deep .create-or-edit-entry-page {
|
|
2
|
-
.dignite_page {
|
|
3
|
-
height: calc(100vh - 32px - 53px - 40px);
|
|
4
|
-
overflow: auto;
|
|
5
|
-
background: transparent;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.form-control,
|
|
9
|
-
.form-select {
|
|
10
|
-
padding: 0.475rem 1.25rem;
|
|
11
|
-
}
|
|
12
|
-
.cursor-move{
|
|
13
|
-
cursor: move;
|
|
14
|
-
}
|
|
15
|
-
.bordernNavs{
|
|
16
|
-
border: var(--bs-border-width) solid var(--lpx-border-color);
|
|
17
|
-
padding-left: inherit;
|
|
18
|
-
padding-right: inherit;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { CreateComponent } from './create.component';
|
|
4
|
-
|
|
5
|
-
describe('CreateComponent', () => {
|
|
6
|
-
let component: CreateComponent;
|
|
7
|
-
let fixture: ComponentFixture<CreateComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
TestBed.configureTestingModule({
|
|
11
|
-
declarations: [CreateComponent]
|
|
12
|
-
});
|
|
13
|
-
fixture = TestBed.createComponent(CreateComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { ToasterService } from '@abp/ng.theme.shared';
|
|
2
|
-
import { Component, ElementRef, OnInit, ViewChild, inject } from '@angular/core';
|
|
3
|
-
import { FormBuilder, FormGroup} from '@angular/forms';
|
|
4
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
|
-
import { Location } from '@angular/common';
|
|
6
|
-
import { CreateOrUpdateEntryInputBase } from './create-or-update-entry-input-base';
|
|
7
|
-
import { LocalizationService } from '@abp/ng.core';
|
|
8
|
-
import { EntryAdminService } from '../../../proxy/admin/entries';
|
|
9
|
-
import { EXTENSIONS_IDENTIFIER } from '@abp/ng.theme.shared/extensions';
|
|
10
|
-
import { ECmsComponent } from '../../../enums/ecms-component';
|
|
11
|
-
import { CmsApiService } from '../../../services';
|
|
12
|
-
import { UpdateListService } from '../../../services/update-list.service';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@Component({
|
|
17
|
-
selector: 'cms-create',
|
|
18
|
-
templateUrl: './create.component.html',
|
|
19
|
-
styleUrls: ['./create.component.scss'],
|
|
20
|
-
providers: [
|
|
21
|
-
{
|
|
22
|
-
provide: EXTENSIONS_IDENTIFIER,
|
|
23
|
-
useValue: ECmsComponent.Entries_Create,
|
|
24
|
-
},
|
|
25
|
-
]
|
|
26
|
-
})
|
|
27
|
-
export class CreateComponent implements OnInit {
|
|
28
|
-
constructor(
|
|
29
|
-
private toaster: ToasterService,
|
|
30
|
-
public _location: Location,
|
|
31
|
-
private route: ActivatedRoute,
|
|
32
|
-
private _EntryAdminService: EntryAdminService,
|
|
33
|
-
private _LocalizationService: LocalizationService,
|
|
34
|
-
private router: Router,
|
|
35
|
-
) { }
|
|
36
|
-
private fb=inject(FormBuilder)
|
|
37
|
-
private _updateListService=inject(UpdateListService)
|
|
38
|
-
|
|
39
|
-
/**表单实体 */
|
|
40
|
-
newEntity: FormGroup | undefined
|
|
41
|
-
|
|
42
|
-
/**是否是草稿 */
|
|
43
|
-
draftType: boolean = false
|
|
44
|
-
/**页面传值用于传递到子组件 */
|
|
45
|
-
queryParams: any = ''
|
|
46
|
-
|
|
47
|
-
/**指定id的条目信息 */
|
|
48
|
-
entrySelect: any = ''
|
|
49
|
-
|
|
50
|
-
/**获取提交按钮替身,用于真实触发表单提交 */
|
|
51
|
-
@ViewChild('submitclick', { static: true }) submitclick: ElementRef;
|
|
52
|
-
|
|
53
|
-
async ngOnInit(): Promise<void> {
|
|
54
|
-
this.queryParams = this.route.snapshot.queryParams
|
|
55
|
-
this.newEntity = this.fb.group(new CreateOrUpdateEntryInputBase())
|
|
56
|
-
if(this.queryParams.RevisionEntryId) await this.getEntrySelect();
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**获取条目信息 */
|
|
60
|
-
getEntrySelect() {
|
|
61
|
-
return new Promise((resolve, rejects) => {
|
|
62
|
-
this._EntryAdminService.get(this.queryParams.RevisionEntryId).subscribe(res => {
|
|
63
|
-
this.entrySelect = res
|
|
64
|
-
|
|
65
|
-
resolve(res)
|
|
66
|
-
})
|
|
67
|
-
})
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
/**保存 */
|
|
73
|
-
save(draft) {
|
|
74
|
-
this.newEntity.patchValue({
|
|
75
|
-
draft: draft
|
|
76
|
-
})
|
|
77
|
-
let input = this.newEntity.value
|
|
78
|
-
input.publishTime = new Date(new Date(input.publishTime).getTime() + (8 * 60 * 60 * 1000)).toISOString()
|
|
79
|
-
input.culture=this.newEntity.get('culture').value
|
|
80
|
-
if (!this.newEntity.valid) return
|
|
81
|
-
this._EntryAdminService.create(input).subscribe(res => {
|
|
82
|
-
this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
|
|
83
|
-
this.router.navigateByUrl('', { skipLocationChange: true }).then(() => {
|
|
84
|
-
this.router.navigate([`/cms/admin/entries`]);
|
|
85
|
-
this._updateListService.updateList();
|
|
86
|
-
});
|
|
87
|
-
})
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**触发点击按钮替身 */
|
|
91
|
-
clickSubmit(type) {
|
|
92
|
-
this.draftType = type
|
|
93
|
-
this.submitclick.nativeElement.click()
|
|
94
|
-
}
|
|
95
|
-
/**返回上一页 */
|
|
96
|
-
backTo() {
|
|
97
|
-
this._location.back()
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<form class="row g-3 needs-validation" [formGroup]="newEntity" (ngSubmit)="save(draftType)">
|
|
2
|
-
<abp-page [title]="'AbpUi::Edit'| abpLocalization" [toolbar]="true">
|
|
3
|
-
<button type="submit" style="display: none;" #submitclick></button>
|
|
4
|
-
<ng-container *ngIf="entrySelect">
|
|
5
|
-
<cms-create-or-edit-entries [entity]="newEntity" [ParentQueryParams]="queryParams" [parentEntrySelect]="entrySelect" [isEdit]="true"></cms-create-or-edit-entries>
|
|
6
|
-
</ng-container>
|
|
7
|
-
</abp-page>
|
|
8
|
-
</form>
|
|
9
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
::ng-deep .edit-entry-page {
|
|
2
|
-
.dignite_page {
|
|
3
|
-
height: calc(100vh - 32px - 53px - 40px);
|
|
4
|
-
overflow: auto;
|
|
5
|
-
background: transparent;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.form-control,
|
|
9
|
-
.form-select {
|
|
10
|
-
padding: 0.475rem 1.25rem;
|
|
11
|
-
}
|
|
12
|
-
.cursor-move{
|
|
13
|
-
cursor: move;
|
|
14
|
-
}
|
|
15
|
-
.bordernNavs{
|
|
16
|
-
border: var(--bs-border-width) solid var(--lpx-border-color);
|
|
17
|
-
padding-left: inherit;
|
|
18
|
-
padding-right: inherit;
|
|
19
|
-
}
|
|
20
|
-
.flex-between{
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
justify-content: space-between;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { EditComponent } from './edit.component';
|
|
4
|
-
|
|
5
|
-
describe('EditComponent', () => {
|
|
6
|
-
let component: EditComponent;
|
|
7
|
-
let fixture: ComponentFixture<EditComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
TestBed.configureTestingModule({
|
|
11
|
-
declarations: [EditComponent]
|
|
12
|
-
});
|
|
13
|
-
fixture = TestBed.createComponent(EditComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @angular-eslint/use-lifecycle-interface */
|
|
2
|
-
import { ToasterService } from '@abp/ng.theme.shared';
|
|
3
|
-
import { Component, ElementRef, OnInit, ViewChild, inject } from '@angular/core';
|
|
4
|
-
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
5
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
|
-
import { Location } from '@angular/common';
|
|
7
|
-
import { CreateOrUpdateEntryInputBase } from './create-or-update-entry-input-base';
|
|
8
|
-
import { LocalizationService } from '@abp/ng.core';
|
|
9
|
-
import { EntryAdminService } from '../../../proxy/admin/entries';
|
|
10
|
-
import { EXTENSIONS_IDENTIFIER } from '@abp/ng.theme.shared/extensions';
|
|
11
|
-
import { ECmsComponent } from '../../../enums/ecms-component';
|
|
12
|
-
import { CmsApiService } from '../../../services';
|
|
13
|
-
import { UpdateListService } from '../../../services/update-list.service';
|
|
14
|
-
|
|
15
|
-
@Component({
|
|
16
|
-
selector: 'cms-edit',
|
|
17
|
-
templateUrl: './edit.component.html',
|
|
18
|
-
styleUrls: ['./edit.component.scss'],
|
|
19
|
-
providers: [
|
|
20
|
-
{
|
|
21
|
-
provide: EXTENSIONS_IDENTIFIER,
|
|
22
|
-
useValue: ECmsComponent.Entries_Edit,
|
|
23
|
-
},
|
|
24
|
-
]
|
|
25
|
-
})
|
|
26
|
-
export class EditComponent implements OnInit {
|
|
27
|
-
|
|
28
|
-
constructor(
|
|
29
|
-
private toaster: ToasterService,
|
|
30
|
-
public _location: Location,
|
|
31
|
-
private route: ActivatedRoute,
|
|
32
|
-
private _EntryAdminService: EntryAdminService,
|
|
33
|
-
private router: Router,
|
|
34
|
-
private _LocalizationService: LocalizationService,
|
|
35
|
-
private _CmsApiService: CmsApiService,
|
|
36
|
-
) { }
|
|
37
|
-
private fb=inject(FormBuilder)
|
|
38
|
-
private _updateListService=inject(UpdateListService)
|
|
39
|
-
/**表单实体 */
|
|
40
|
-
newEntity: FormGroup | undefined
|
|
41
|
-
|
|
42
|
-
/**是否是草稿 */
|
|
43
|
-
draftType: boolean = false
|
|
44
|
-
|
|
45
|
-
/**页面传值用于传递到子组件 */
|
|
46
|
-
queryParams: any = '' || {}
|
|
47
|
-
|
|
48
|
-
/**指定id的条目信息 */
|
|
49
|
-
entrySelect: any = ''
|
|
50
|
-
|
|
51
|
-
/**获取提交按钮替身,用于真实触发表单提交 */
|
|
52
|
-
@ViewChild('submitclick', { static: true }) submitclick: ElementRef;
|
|
53
|
-
|
|
54
|
-
async ngOnInit() {
|
|
55
|
-
this.queryParams.RevisionEntryId = this.route.snapshot.params.entrieId
|
|
56
|
-
this.newEntity = this.fb.group(new CreateOrUpdateEntryInputBase())
|
|
57
|
-
await this.getEntrySelect()
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**获取条目信息 */
|
|
61
|
-
getEntrySelect() {
|
|
62
|
-
return new Promise((resolve, rejects) => {
|
|
63
|
-
this._EntryAdminService.get(this.queryParams.RevisionEntryId).subscribe(res => {
|
|
64
|
-
this.entrySelect = res
|
|
65
|
-
resolve(res)
|
|
66
|
-
})
|
|
67
|
-
})
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/**保存 */
|
|
74
|
-
save(draft) {
|
|
75
|
-
|
|
76
|
-
this.newEntity.patchValue({
|
|
77
|
-
draft: draft
|
|
78
|
-
})
|
|
79
|
-
let input = this.newEntity.value
|
|
80
|
-
input.publishTime = new Date(new Date(input.publishTime).getTime() + (8 * 60 * 60 * 1000)).toISOString()
|
|
81
|
-
input.culture=this.newEntity.get('culture').value
|
|
82
|
-
input.concurrencyStamp = this.entrySelect.concurrencyStamp
|
|
83
|
-
if (!this.newEntity.valid) return
|
|
84
|
-
this._EntryAdminService.update(this.entrySelect.id, input).subscribe(res => {
|
|
85
|
-
this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
|
|
86
|
-
this.router.navigateByUrl('', { skipLocationChange: true }).then(() => {
|
|
87
|
-
this.router.navigate([`/cms/admin/entries`]);
|
|
88
|
-
this._updateListService.updateList();
|
|
89
|
-
});
|
|
90
|
-
})
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**触发点击按钮替身 */
|
|
94
|
-
clickSubmit(type) {
|
|
95
|
-
this.draftType = type
|
|
96
|
-
this.submitclick.nativeElement.click()
|
|
97
|
-
}
|
|
98
|
-
/**返回上一页 */
|
|
99
|
-
backTo() {
|
|
100
|
-
this._location.back()
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
<abp-page [title]="'Cms::Entries' | abpLocalization" [toolbar]="true">
|
|
2
|
-
<abp-page-toolbar-container *ngIf="entryTypeList.length < 1" class="col "></abp-page-toolbar-container>
|
|
3
|
-
<abp-page-toolbar-container *ngIf="entryTypeList.length > 1" class="col ">
|
|
4
|
-
<div class="row justify-content-end mx-0 gap-2" *abpPermission="'CmsAdmin.Entry.Create'">
|
|
5
|
-
<div class="col-auto px-0 pt-0">
|
|
6
|
-
<div ngbDropdown class="d-inline-block">
|
|
7
|
-
<button type="button" class="btn btn-primary btn-sm ms-2" id="dropdownBasic1" ngbDropdownToggle>
|
|
8
|
-
<i class="fa fa-plus pe-1" aria-hidden="true"></i>{{'Cms::New' | abpLocalization}}
|
|
9
|
-
</button>
|
|
10
|
-
<div ngbDropdownMenu aria-labelledby="dropdownBasic1">
|
|
11
|
-
<ng-container *ngFor="let item of entryTypeList">
|
|
12
|
-
<button ngbDropdownItem [routerLink]="['/cms/admin/entries/create']"
|
|
13
|
-
[queryParams]="{cultureName: filters.culture,sectionId:filters.sectionId,entryTypeId:item.id}">{{item.displayName}}</button>
|
|
14
|
-
</ng-container>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
</abp-page-toolbar-container>
|
|
20
|
-
<div id="sites-page" class="sites-page">
|
|
21
|
-
<div class="card">
|
|
22
|
-
<div class="card-body px-2 py-sm-2 border-bottom">
|
|
23
|
-
<div class="input-group" [formGroup]="filtersForm">
|
|
24
|
-
<select class="form-select col-auto" formControlName="siteId" (change)="siteIdChange()">
|
|
25
|
-
<ng-container *ngFor="let item of siteList">
|
|
26
|
-
<option [value]="item.id">{{item.displayName}}</option>
|
|
27
|
-
</ng-container>
|
|
28
|
-
</select>
|
|
29
|
-
<select class="form-select col-auto" formControlName="sectionId" (change)="sectionIdChange()">
|
|
30
|
-
<ng-container *ngFor="let item of SiteOfSectionList">
|
|
31
|
-
<option [value]="item.id">{{item.displayName}}</option>
|
|
32
|
-
</ng-container>
|
|
33
|
-
</select>
|
|
34
|
-
<select class="form-select col-auto" formControlName="culture" (change)="cultureChange()">
|
|
35
|
-
<ng-container *ngFor="let item of sectionLanguagesList">
|
|
36
|
-
<option [value]="item.cultureName">{{item.displayName}}</option>
|
|
37
|
-
</ng-container>
|
|
38
|
-
</select>
|
|
39
|
-
<input type="text" class="form-control" formControlName="filter"
|
|
40
|
-
[placeholder]="'AbpUi::Search' | abpLocalization" />
|
|
41
|
-
<button class="btn btn-primary px-3" type="button" id="button-addon2" (click)="resetData()">
|
|
42
|
-
<i class="fa fa-search"></i>
|
|
43
|
-
</button>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
<div class="card mb-0">
|
|
48
|
-
|
|
49
|
-
<div class="card-body p-0">
|
|
50
|
-
<div class="table-responsive table-fixed-header">
|
|
51
|
-
<ngx-datatable class="material container-height" [rows]="data.items" [list]="list"
|
|
52
|
-
[columnMode]="'force'" [headerHeight]="50" [footerHeight]="50" rowHeight="auto"
|
|
53
|
-
[scrollbarV]="true" [virtualization]="false" [externalPaging]="true"
|
|
54
|
-
[count]="data.totalCount">
|
|
55
|
-
<ngx-datatable-column [name]="'Cms::EntryType' | abpLocalization" prop="entryTypeId">
|
|
56
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
57
|
-
<ng-container *ngFor="let item of entryTypeList">
|
|
58
|
-
<ng-container *ngIf="item.id === value">{{item.displayName}}</ng-container>
|
|
59
|
-
</ng-container>
|
|
60
|
-
</ng-template>
|
|
61
|
-
</ngx-datatable-column>
|
|
62
|
-
<ngx-datatable-column [name]="'Cms::Title' | abpLocalization" prop="title">
|
|
63
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
64
|
-
{{ value }}
|
|
65
|
-
</ng-template>
|
|
66
|
-
</ngx-datatable-column>
|
|
67
|
-
<ngx-datatable-column [name]="'Cms::Slug' | abpLocalization" prop="slug">
|
|
68
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
69
|
-
{{ value }}
|
|
70
|
-
</ng-template>
|
|
71
|
-
</ngx-datatable-column>
|
|
72
|
-
<ngx-datatable-column [name]="'Cms::Status' | abpLocalization" prop="status">
|
|
73
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
74
|
-
<ng-container *ngFor="let item of _entryStatusOptions">
|
|
75
|
-
<ng-container *ngIf="item.value=== value">{{ 'Cms::Enum:EntryStatus:'+item.key |
|
|
76
|
-
abpLocalization }}</ng-container>
|
|
77
|
-
</ng-container>
|
|
78
|
-
</ng-template>
|
|
79
|
-
</ngx-datatable-column>
|
|
80
|
-
<ngx-datatable-column [name]="'Cms::PublishTime' | abpLocalization" prop="publishTime">
|
|
81
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
82
|
-
{{value | date: 'YYYY/MM/dd HH:m:s' }}
|
|
83
|
-
</ng-template>
|
|
84
|
-
</ngx-datatable-column>
|
|
85
|
-
<ngx-datatable-column [sortable]="false">
|
|
86
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
87
|
-
<div ngbDropdown container="body">
|
|
88
|
-
<button type="button" class="btn btn-outline-primary btn-sm" ngbDropdownToggle>
|
|
89
|
-
{{'AbpUi::Actions' | abpLocalization}}
|
|
90
|
-
</button>
|
|
91
|
-
<div ngbDropdownMenu>
|
|
92
|
-
<button ngbDropdownItem
|
|
93
|
-
routerLink="/cms/admin/entries/{{row.id}}/edit">{{'AbpUi::Edit' |
|
|
94
|
-
abpLocalization}}</button>
|
|
95
|
-
<button ngbDropdownItem (click)="deletefield(row)">{{'AbpUi::Delete' |
|
|
96
|
-
abpLocalization}}</button>
|
|
97
|
-
</div>
|
|
98
|
-
</div>
|
|
99
|
-
</ng-template>
|
|
100
|
-
</ngx-datatable-column>
|
|
101
|
-
</ngx-datatable>
|
|
102
|
-
</div>
|
|
103
|
-
</div>
|
|
104
|
-
</div>
|
|
105
|
-
</div>
|
|
106
|
-
</abp-page>
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
::ng-deep.sites-page {
|
|
2
|
-
.dignite_page {
|
|
3
|
-
background: transparent;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.list-group-flush>.list-group-item:first-child {
|
|
7
|
-
border-top-width: var(--bs-list-group-border-width);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.card-header {
|
|
11
|
-
|
|
12
|
-
input {
|
|
13
|
-
flex: 2 1 auto;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.form-select {
|
|
17
|
-
padding: 0.475rem 3.75rem 0.475rem 1.25rem;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.container-height {
|
|
22
|
-
height: calc(100vh - 220px);
|
|
23
|
-
}
|
|
24
|
-
.morentr{
|
|
25
|
-
border: 2px solid transparent;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.borderdrag {
|
|
29
|
-
border: 2px solid var(--ck-color-selector-column-resizer-hover) !important;
|
|
30
|
-
}
|
|
31
|
-
.borderdragtd{
|
|
32
|
-
background-color: var(--ck-color-selector-column-resizer-hover) !important;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.testtr {
|
|
36
|
-
border-color: transparent;
|
|
37
|
-
td {
|
|
38
|
-
padding: 2px;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
.testtr:hover{
|
|
42
|
-
background-color: transparent;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.cdk-drag-preview {
|
|
50
|
-
display: table;
|
|
51
|
-
box-sizing: border-box;
|
|
52
|
-
border-radius: 4px;
|
|
53
|
-
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
|
|
54
|
-
0 8px 10px 1px rgba(0, 0, 0, 0.14),
|
|
55
|
-
0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
.cdk-drag-placeholder {
|
|
60
|
-
opacity: 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.cdk-drag-animating {
|
|
64
|
-
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.example-box:last-child {
|
|
68
|
-
border: none;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.example-list.cdk-drop-list-dragging .example-box:not(.cdk-drag-placeholder) {
|
|
72
|
-
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
::ng-deep.sites-modal-form {
|
|
77
|
-
.form-control {
|
|
78
|
-
padding: 0.4rem 1.25rem;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { EntriesComponent } from './entries.component';
|
|
4
|
-
|
|
5
|
-
describe('EntriesComponent', () => {
|
|
6
|
-
let component: EntriesComponent;
|
|
7
|
-
let fixture: ComponentFixture<EntriesComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
TestBed.configureTestingModule({
|
|
11
|
-
declarations: [EntriesComponent]
|
|
12
|
-
});
|
|
13
|
-
fixture = TestBed.createComponent(EntriesComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|