@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,154 +0,0 @@
|
|
|
1
|
-
<abp-page [title]="'Cms::Sites' | abpLocalization" [toolbar]="true">
|
|
2
|
-
<div class="sites-page">
|
|
3
|
-
<div class="card">
|
|
4
|
-
<div class="card-body px-2 py-sm-2 border-bottom">
|
|
5
|
-
<div class="input-group">
|
|
6
|
-
<input type="text" class="form-control" [(ngModel)]="filters.filter"
|
|
7
|
-
[placeholder]="'AbpUi::Search' | abpLocalization" />
|
|
8
|
-
<button class="btn btn-primary px-3" type="button" id="button-addon2" (click)="list.get()">
|
|
9
|
-
<i class="fa fa-search"></i>
|
|
10
|
-
</button>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="card mb-0">
|
|
15
|
-
<div class="card-body p-0">
|
|
16
|
-
<div class="table-responsive table-fixed-header">
|
|
17
|
-
<ngx-datatable class="material container-height" [rows]="data.items" [list]="list"
|
|
18
|
-
[columnMode]="'force'" [headerHeight]="50" [footerHeight]="50" rowHeight="auto"
|
|
19
|
-
[scrollbarV]="true" [virtualization]="false" [externalPaging]="true" [count]="data.totalCount">
|
|
20
|
-
<ngx-datatable-column [name]="'Cms::DisplayName' | abpLocalization" prop="displayName">
|
|
21
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
22
|
-
{{ value }}
|
|
23
|
-
</ng-template>
|
|
24
|
-
</ngx-datatable-column>
|
|
25
|
-
<ngx-datatable-column [name]="'Cms::Name' | abpLocalization" prop="name">
|
|
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::IsActive' | abpLocalization" prop="isActive">
|
|
31
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
32
|
-
<i class="fas fa-check text-success" *ngIf="value"></i>
|
|
33
|
-
<i class="fas fa-times text-danger" *ngIf="!value"></i>
|
|
34
|
-
</ng-template>
|
|
35
|
-
</ngx-datatable-column>
|
|
36
|
-
<ngx-datatable-column [name]="'Cms::Host' | abpLocalization" prop="host">
|
|
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::CreationTime' | abpLocalization" prop="creationTime">
|
|
42
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
43
|
-
{{ value | date : 'yyyy-MM-dd hh-mm-ss' }}
|
|
44
|
-
</ng-template>
|
|
45
|
-
</ngx-datatable-column>
|
|
46
|
-
<ngx-datatable-column [sortable]="false">
|
|
47
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
48
|
-
<div ngbDropdown container="body">
|
|
49
|
-
<button type="button" class="btn btn-outline-primary btn-sm" ngbDropdownToggle>
|
|
50
|
-
{{'AbpUi::Actions' | abpLocalization}}
|
|
51
|
-
</button>
|
|
52
|
-
<div ngbDropdownMenu>
|
|
53
|
-
<button ngbDropdownItem
|
|
54
|
-
(click)="EditSitesBtn(row)">{{'AbpUi::Edit' | abpLocalization}}</button>
|
|
55
|
-
<button ngbDropdownItem
|
|
56
|
-
(click)="deletefield(row)">{{'AbpUi::Delete' | abpLocalization}}</button>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
</ng-template>
|
|
60
|
-
</ngx-datatable-column>
|
|
61
|
-
</ngx-datatable>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
</div>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
</abp-page>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
<!-- <dignite-page [title]="'Cms::Sites' | abpLocalization" [back]="false" [class]="'sites-page'">
|
|
75
|
-
<ng-template #pageHeader>
|
|
76
|
-
<button type="button" class="btn btn-primary btn-sm ms-2" (click.stop)="createSitesBtn()">
|
|
77
|
-
<i class="fa fa-plus pe-1" aria-hidden="true"></i>{{'Cms::New' | abpLocalization}}
|
|
78
|
-
</button>
|
|
79
|
-
</ng-template>
|
|
80
|
-
<ng-template #pageBody>
|
|
81
|
-
|
|
82
|
-
</ng-template>
|
|
83
|
-
</dignite-page> -->
|
|
84
|
-
|
|
85
|
-
<abp-modal [(visible)]="createSitesOpen" [busy]="modalBusy" (visibleChange)="createGroupVisibleChange($event)">
|
|
86
|
-
<ng-template #abpHeader>
|
|
87
|
-
<h3>{{selected?('AbpUi::Edit' | abpLocalization):('Cms::New' | abpLocalization)}}</h3>
|
|
88
|
-
</ng-template>
|
|
89
|
-
<ng-template #abpBody>
|
|
90
|
-
<ng-template #loaderRef>
|
|
91
|
-
<div class="text-center"><i class="fa fa-pulse fa-spinner" aria-hidden="true"></i></div>
|
|
92
|
-
</ng-template>
|
|
93
|
-
<ng-container *ngIf="createOrEditForm; else loaderRef">
|
|
94
|
-
<form class="sites-modal-form" #myForm="ngForm" [formGroup]="createOrEditForm"
|
|
95
|
-
(ngSubmit)="createOrEditSave()">
|
|
96
|
-
<button type="submit" #createModalSubmit style="display: none"></button>
|
|
97
|
-
<div class="mb-2">
|
|
98
|
-
<label class="form-label">{{'Cms::DisplayName' | abpLocalization}}</label>
|
|
99
|
-
<input type="text" class="form-control" formControlName="displayName"
|
|
100
|
-
(blur)="disPlayNameInputBlur($event)" />
|
|
101
|
-
</div>
|
|
102
|
-
<div class="mb-2">
|
|
103
|
-
<label class="form-label">{{'Cms::Name' | abpLocalization}}</label>
|
|
104
|
-
<input type="text" class="form-control" formControlName="name" />
|
|
105
|
-
<div class="text-danger invalid-feedback" *ngIf="nameInput.errors?.repetition">
|
|
106
|
-
{{nameInput.errors?.repetition}}
|
|
107
|
-
</div>
|
|
108
|
-
</div>
|
|
109
|
-
<div class="mb-2">
|
|
110
|
-
<label class="form-label">{{'Cms::Host' | abpLocalization}}</label>
|
|
111
|
-
<input type="text" class="form-control" formControlName="host" />
|
|
112
|
-
<div class="text-danger invalid-feedback" *ngIf="hostInput.errors?.repetition">
|
|
113
|
-
{{hostInput.errors?.repetition}}
|
|
114
|
-
</div>
|
|
115
|
-
</div>
|
|
116
|
-
<div class="mb-2">
|
|
117
|
-
<div class="form-check form-check-inline">
|
|
118
|
-
<input class="form-check-input" type="checkbox" value="true" formControlName="isActive"
|
|
119
|
-
id="flexRadioDefault1" />
|
|
120
|
-
<label class="form-check-label" for="flexRadioDefault1"> {{'Cms::IsActive' | abpLocalization}}
|
|
121
|
-
</label>
|
|
122
|
-
</div>
|
|
123
|
-
</div>
|
|
124
|
-
<div class="mb-2">
|
|
125
|
-
<label class="form-label">{{'Cms::Languages' | abpLocalization}}</label>
|
|
126
|
-
<ul class="list-group list-group-flush">
|
|
127
|
-
<ng-container *ngFor="let item of languages; let i = index">
|
|
128
|
-
<li class="list-group-item d-flex justify-content-between align-items-center">
|
|
129
|
-
<div>
|
|
130
|
-
<input class="form-check-input me-1" type="checkbox" [value]="item.cultureName"
|
|
131
|
-
id="firstRadio{{ i }}" [checked]="item.ischecked"
|
|
132
|
-
(change)="languagesChange($event);!item.ischecked" />
|
|
133
|
-
<label class="form-check-label" for="firstRadio{{ i }}">{{ item.displayName
|
|
134
|
-
}}</label>
|
|
135
|
-
</div>
|
|
136
|
-
<ng-container *ngIf="item.ischecked">
|
|
137
|
-
<div class="text-primary" *ngIf="item.isDefault">{{'Cms::Default' | abpLocalization}}
|
|
138
|
-
</div>
|
|
139
|
-
<div (click.stop)="setDefault(item)" *ngIf="!item.isDefault">
|
|
140
|
-
{{'Cms::SetDefault' | abpLocalization}}</div>
|
|
141
|
-
</ng-container>
|
|
142
|
-
</li>
|
|
143
|
-
</ng-container>
|
|
144
|
-
</ul>
|
|
145
|
-
</div>
|
|
146
|
-
</form>
|
|
147
|
-
</ng-container>
|
|
148
|
-
</ng-template>
|
|
149
|
-
<ng-template #abpFooter>
|
|
150
|
-
<button type="button" class="btn btn-secondary" abpClose>{{'AbpUi::Close' | abpLocalization}}</button>
|
|
151
|
-
<abp-button iconClass="fa fa-check"
|
|
152
|
-
(click)="createModalSubmit.nativeElement.click()">{{'AbpUi::Save' | abpLocalization}}</abp-button>
|
|
153
|
-
</ng-template>
|
|
154
|
-
</abp-modal>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
::ng-deep.sites-page {
|
|
2
|
-
.dignite_page{
|
|
3
|
-
background: transparent;
|
|
4
|
-
}
|
|
5
|
-
.list-group-flush > .list-group-item:first-child{
|
|
6
|
-
border-top-width:var(--bs-list-group-border-width);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.container-height{
|
|
10
|
-
height: calc(100vh - 220px);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
::ng-deep.sites-modal-form{
|
|
16
|
-
.form-control{
|
|
17
|
-
padding: 0.4rem 1.25rem;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { SitesComponent } from './sites.component';
|
|
4
|
-
|
|
5
|
-
describe('SitesComponent', () => {
|
|
6
|
-
let component: SitesComponent;
|
|
7
|
-
let fixture: ComponentFixture<SitesComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
TestBed.configureTestingModule({
|
|
11
|
-
declarations: [SitesComponent]
|
|
12
|
-
});
|
|
13
|
-
fixture = TestBed.createComponent(SitesComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @angular-eslint/use-lifecycle-interface */
|
|
2
|
-
import { ABP, ConfigStateService, LIST_QUERY_DEBOUNCE_TIME, ListService, LocalizationService, PagedResultDto } from '@abp/ng.core';
|
|
3
|
-
import { ToasterService, ConfirmationService, Confirmation } from '@abp/ng.theme.shared';
|
|
4
|
-
import { Component, ViewChild, OnInit, ViewContainerRef, ElementRef } from '@angular/core';
|
|
5
|
-
import { AbstractControl, FormBuilder, FormControl, FormGroup, NgForm, ValidationErrors, Validators } from '@angular/forms';
|
|
6
|
-
import { GetSitesInput, SiteDto, SiteAdminService } from '../../../proxy/admin/sites';
|
|
7
|
-
import { ColumnMode } from "@swimlane/ngx-datatable";
|
|
8
|
-
import { finalize } from 'rxjs/operators';
|
|
9
|
-
import { CreateOrUpdateSitesInputBase } from './create-or-update-sites-input-base';
|
|
10
|
-
import { EXTENSIONS_IDENTIFIER } from '@abp/ng.theme.shared/extensions';
|
|
11
|
-
import { ECmsComponent } from '../../../enums';
|
|
12
|
-
import { CmsApiService } from '../../../services/cms-api.service';
|
|
13
|
-
import { Observable } from 'rxjs';
|
|
14
|
-
|
|
15
|
-
@Component({
|
|
16
|
-
selector: 'cms-sites',
|
|
17
|
-
templateUrl: './sites.component.html',
|
|
18
|
-
styleUrls: ['./sites.component.scss'],
|
|
19
|
-
providers: [
|
|
20
|
-
// [Required]
|
|
21
|
-
ListService,
|
|
22
|
-
// [Optional]
|
|
23
|
-
// Provide this token if you want a different debounce time.
|
|
24
|
-
// Default is 300. Cannot be 0. Any value below 100 is not recommended.
|
|
25
|
-
{ provide: LIST_QUERY_DEBOUNCE_TIME, useValue: 500 },
|
|
26
|
-
{
|
|
27
|
-
provide: EXTENSIONS_IDENTIFIER,
|
|
28
|
-
useValue: ECmsComponent.Sites,
|
|
29
|
-
},
|
|
30
|
-
]
|
|
31
|
-
})
|
|
32
|
-
export class SitesComponent implements OnInit {
|
|
33
|
-
constructor(
|
|
34
|
-
public readonly list: ListService,
|
|
35
|
-
private _SiteAdminService: SiteAdminService,
|
|
36
|
-
private toaster: ToasterService,
|
|
37
|
-
private confirmation: ConfirmationService,
|
|
38
|
-
private fb: FormBuilder,
|
|
39
|
-
private configState: ConfigStateService,
|
|
40
|
-
private _LocalizationService: LocalizationService,
|
|
41
|
-
private _CmsApiService: CmsApiService,
|
|
42
|
-
) {
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/**创建站点模态框状态 */
|
|
50
|
-
createSitesOpen: boolean = false
|
|
51
|
-
|
|
52
|
-
/**用于确定模态的繁忙状态是否为真 */
|
|
53
|
-
modalBusy: boolean = false
|
|
54
|
-
/**创建站点表单 */
|
|
55
|
-
createOrEditForm: FormGroup | undefined;
|
|
56
|
-
|
|
57
|
-
get languagesInput() {
|
|
58
|
-
return this.createOrEditForm.get('languages').value
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**语言列表 */
|
|
62
|
-
languages: any[]
|
|
63
|
-
|
|
64
|
-
/**站点给定的表单值 */
|
|
65
|
-
selected: any
|
|
66
|
-
|
|
67
|
-
/**表单控件模板-动态赋值表单控件 */
|
|
68
|
-
@ViewChild('createModalSubmit', { static: false }) createModalSubmit: ElementRef;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
ColumnMode = ColumnMode;
|
|
72
|
-
data: PagedResultDto<SiteDto> = {
|
|
73
|
-
items: [],
|
|
74
|
-
totalCount: 0,
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
filters = {} as GetSitesInput;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
ngOnInit(): void {
|
|
81
|
-
this.hookToQuery()
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
hookToQuery() {
|
|
85
|
-
const getData = (query: ABP.PageQueryParams) => this._SiteAdminService.getList({
|
|
86
|
-
...query,
|
|
87
|
-
...this.filters,
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
const setData = (list: PagedResultDto<SiteDto>) => (this.data = list);
|
|
91
|
-
this.list.hookToQuery(getData).subscribe(setData);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
/**删除字段 */
|
|
96
|
-
deletefield(row: any) {
|
|
97
|
-
this.confirmation.warn(
|
|
98
|
-
row.displayName,
|
|
99
|
-
this._LocalizationService.instant(`AbpUi::ItemWillBeDeletedMessage`),
|
|
100
|
-
).subscribe((status: Confirmation.Status) => {
|
|
101
|
-
if (status == 'confirm') {
|
|
102
|
-
this._SiteAdminService.delete(row.id).pipe(finalize(() => {
|
|
103
|
-
})).subscribe(res => {
|
|
104
|
-
this.toaster.success(this._LocalizationService.instant(`AbpUi::SuccessfullyDeleted`));
|
|
105
|
-
this.list.get()
|
|
106
|
-
})
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/**创建站点模态框状态改变 */
|
|
113
|
-
createGroupVisibleChange(event) {
|
|
114
|
-
if (!event) {
|
|
115
|
-
this.selected = ''
|
|
116
|
-
return
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**选择语言改变 */
|
|
121
|
-
languagesChange(event) {
|
|
122
|
-
let checked = event.target.checked
|
|
123
|
-
let value = event.target.value
|
|
124
|
-
this.languages.forEach(el => {
|
|
125
|
-
el.ischecked = el.cultureName === value ? checked : el.ischecked;
|
|
126
|
-
})
|
|
127
|
-
this.setFromLangguages()
|
|
128
|
-
}
|
|
129
|
-
/**设置默认语言 */
|
|
130
|
-
setDefault(items) {
|
|
131
|
-
this.languages.forEach(el => {
|
|
132
|
-
el.isDefault = el.cultureName === items.cultureName;
|
|
133
|
-
})
|
|
134
|
-
this.setFromLangguages()
|
|
135
|
-
}
|
|
136
|
-
/**设置表单中的语言 */
|
|
137
|
-
setFromLangguages() {
|
|
138
|
-
let languagesSelect = this.languages.filter(el => el.ischecked == true)
|
|
139
|
-
this.createOrEditForm.patchValue({
|
|
140
|
-
languages: languagesSelect
|
|
141
|
-
})
|
|
142
|
-
if (languagesSelect.length == 0) {
|
|
143
|
-
this.languages.forEach(el => {
|
|
144
|
-
el.isDefault = false
|
|
145
|
-
})
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
/**表单保存提交 */
|
|
149
|
-
createOrEditSave() {
|
|
150
|
-
if (this.selected) {
|
|
151
|
-
return this.EditSave()
|
|
152
|
-
}
|
|
153
|
-
this.createSave()
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**创建站点保存 */
|
|
157
|
-
createSave() {
|
|
158
|
-
let input = this.createOrEditForm.value
|
|
159
|
-
this.modalBusy = true
|
|
160
|
-
if (!this.createOrEditForm.valid) return
|
|
161
|
-
this._SiteAdminService.create(input).pipe(finalize(() => {
|
|
162
|
-
this.modalBusy = false
|
|
163
|
-
this.createSitesOpen = false
|
|
164
|
-
})).subscribe(res => {
|
|
165
|
-
this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
|
|
166
|
-
this.list.get()
|
|
167
|
-
})
|
|
168
|
-
}
|
|
169
|
-
/**编辑站点保存 */
|
|
170
|
-
EditSave() {
|
|
171
|
-
let input = this.createOrEditForm.value
|
|
172
|
-
this.modalBusy = true
|
|
173
|
-
this._SiteAdminService.update(this.selected.id, input).pipe(finalize(() => {
|
|
174
|
-
this.modalBusy = false
|
|
175
|
-
this.createSitesOpen = false
|
|
176
|
-
})).subscribe(res => {
|
|
177
|
-
this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
|
|
178
|
-
this.list.get()
|
|
179
|
-
})
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
/**创建站点按钮 */
|
|
185
|
-
createSitesBtn() {
|
|
186
|
-
this.createSitesOpen = true
|
|
187
|
-
this.createOrEditForm = this.fb.group(new CreateOrUpdateSitesInputBase())
|
|
188
|
-
this.setAsyncValidatorsFn()
|
|
189
|
-
this.languages = this.configState.getDeep('localization.languages')
|
|
190
|
-
this.languages.forEach((el, index) => {
|
|
191
|
-
el.isDefault = index === 0
|
|
192
|
-
el.ischecked = index === 0
|
|
193
|
-
})
|
|
194
|
-
this.setFromLangguages()
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
/**编辑站点按钮 */
|
|
200
|
-
EditSitesBtn(rows) {
|
|
201
|
-
this.createSitesOpen = true
|
|
202
|
-
this.languages = this.configState.getDeep('localization.languages')
|
|
203
|
-
this._SiteAdminService.get(rows.id).subscribe(res => {
|
|
204
|
-
this.selected = rows
|
|
205
|
-
this.createOrEditForm = this.fb.group(new CreateOrUpdateSitesInputBase())
|
|
206
|
-
this.createOrEditForm.patchValue(rows)
|
|
207
|
-
this.setAsyncValidatorsFn()
|
|
208
|
-
// 更新语言和默认状态
|
|
209
|
-
this.updateLanguages(res.languages);
|
|
210
|
-
// 设置表单语言
|
|
211
|
-
this.setFromLangguages()
|
|
212
|
-
})
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
/**设置字段控件异步验证 */
|
|
216
|
-
setAsyncValidatorsFn() {
|
|
217
|
-
this.createOrEditForm.setControl('name', new FormControl(this.nameInput.value || '', {
|
|
218
|
-
validators: Validators.required,
|
|
219
|
-
asyncValidators: this.nameRepetitionAsyncValidator(),
|
|
220
|
-
updateOn: 'blur'
|
|
221
|
-
}))
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
/**更新语言和默认状态 */
|
|
227
|
-
updateLanguages(siteLanguages) {
|
|
228
|
-
this.languages.forEach(language => {
|
|
229
|
-
const siteLanguage = siteLanguages.find(sl => sl.cultureName === language.cultureName);
|
|
230
|
-
if (siteLanguage) {
|
|
231
|
-
language.ischecked = true;
|
|
232
|
-
language.isDefault = siteLanguage.isDefault;
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
get nameInput() {
|
|
239
|
-
return this.createOrEditForm.get('name')
|
|
240
|
-
}
|
|
241
|
-
get hostInput() {
|
|
242
|
-
return this.createOrEditForm.get('host')
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
/**字段标签input失去标点生成字段名字 */
|
|
246
|
-
disPlayNameInputBlur(event) {
|
|
247
|
-
let value = event.target.value
|
|
248
|
-
let pinyin = this._CmsApiService.chineseToPinyin(value)
|
|
249
|
-
let nameInput = this.nameInput
|
|
250
|
-
if (nameInput.value) return
|
|
251
|
-
nameInput.patchValue(pinyin)
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/**name定义自定义异步验证 */
|
|
255
|
-
nameRepetitionAsyncValidator() {
|
|
256
|
-
return (ctrl: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => {
|
|
257
|
-
return new Promise(resolve => {
|
|
258
|
-
let subslug = this.createOrEditForm?.get('name').value
|
|
259
|
-
if (subslug == this.selected?.name) {
|
|
260
|
-
resolve(null);
|
|
261
|
-
return
|
|
262
|
-
}
|
|
263
|
-
this._SiteAdminService.nameExists(subslug).subscribe(res => {
|
|
264
|
-
if (res) {
|
|
265
|
-
resolve({ repetition: this._LocalizationService.instant(`Cms::SiteName{0}AlreadyExist`, ctrl.value) });
|
|
266
|
-
} else {
|
|
267
|
-
resolve(null);
|
|
268
|
-
}
|
|
269
|
-
})
|
|
270
|
-
});
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
/**host定义自定义异步验证 */
|
|
274
|
-
hostRepetitionAsyncValidator() {
|
|
275
|
-
return (ctrl: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => {
|
|
276
|
-
return new Promise(resolve => {
|
|
277
|
-
let subslug = this.createOrEditForm?.get('host').value
|
|
278
|
-
if (subslug == this.selected?.host || subslug == 'https://') {
|
|
279
|
-
resolve(null);
|
|
280
|
-
return
|
|
281
|
-
}
|
|
282
|
-
this._SiteAdminService.hostExists(subslug).subscribe(res => {
|
|
283
|
-
if (res) {
|
|
284
|
-
resolve({ repetition: this._LocalizationService.instant(`Cms::SiteHost{0}AlreadyExist`, ctrl.value) });
|
|
285
|
-
} else {
|
|
286
|
-
resolve(null);
|
|
287
|
-
}
|
|
288
|
-
})
|
|
289
|
-
});
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
<div class="mb-2">
|
|
2
|
-
<label class="form-label">{{'Cms::Sites' | abpLocalization}}</label>
|
|
3
|
-
<select class="form-select col-auto" [(ngModel)]="siteId" (change)="siteIdChange()">
|
|
4
|
-
<ng-container *ngFor="let item of siteList">
|
|
5
|
-
<option [value]="item.id">{{item.displayName}}</option>
|
|
6
|
-
</ng-container>
|
|
7
|
-
</select>
|
|
8
|
-
</div>
|
|
9
|
-
<form [formGroup]="_Entity">
|
|
10
|
-
<div formGroupName="formConfiguration">
|
|
11
|
-
|
|
12
|
-
<div class="mb-2">
|
|
13
|
-
<label class="form-label">{{'Cms::Sections' | abpLocalization}}</label>
|
|
14
|
-
<select class="form-select col-auto" formControlName="Entry.SectionId">
|
|
15
|
-
<ng-container *ngFor="let item of SiteOfSectionList">
|
|
16
|
-
<option [value]="item.id">{{item.displayName}}</option>
|
|
17
|
-
</ng-container>
|
|
18
|
-
</select>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<div class="mb-2">
|
|
22
|
-
<div class="form-check form-check-inline">
|
|
23
|
-
<input class="form-check-input" type="checkbox" formControlName="Entry.Multiple" id="Multiple">
|
|
24
|
-
<label class="form-check-label" for="Multiple">
|
|
25
|
-
{{'Cms::Multiple' | abpLocalization}}
|
|
26
|
-
</label>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
<div class="mb-2">
|
|
30
|
-
<label class="form-label">{{'Cms::Placeholder' | abpLocalization}}</label>
|
|
31
|
-
<input type="text" class="form-control" formControlName="Entry.Placeholder">
|
|
32
|
-
</div>
|
|
33
|
-
<button type="submit" (abpInit)="submitclick?.nativeElement?.click()" style="display: none;"
|
|
34
|
-
#submitclick></button>
|
|
35
|
-
</div>
|
|
36
|
-
</form>
|
|
File without changes
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { EntryConfigComponent } from './entry-config.component';
|
|
4
|
-
|
|
5
|
-
describe('EntryConfigComponent', () => {
|
|
6
|
-
let component: EntryConfigComponent;
|
|
7
|
-
let fixture: ComponentFixture<EntryConfigComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
TestBed.configureTestingModule({
|
|
11
|
-
declarations: [EntryConfigComponent]
|
|
12
|
-
});
|
|
13
|
-
fixture = TestBed.createComponent(EntryConfigComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { AfterContentInit, Component, ElementRef, Input, ViewChild } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
|
|
3
|
-
import { EntryConfig } from './entry-config';
|
|
4
|
-
import { SiteAdminService } from '../../../proxy/admin/sites';
|
|
5
|
-
import { SectionAdminService } from '../../../proxy/admin/sections';
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'cms-entry-config',
|
|
8
|
-
templateUrl: './entry-config.component.html',
|
|
9
|
-
styleUrls: ['./entry-config.component.scss']
|
|
10
|
-
})
|
|
11
|
-
export class EntryConfigComponent implements AfterContentInit{
|
|
12
|
-
constructor(
|
|
13
|
-
private fb: FormBuilder,
|
|
14
|
-
private _SiteAdminService: SiteAdminService,
|
|
15
|
-
private _SectionAdminService: SectionAdminService,
|
|
16
|
-
) {
|
|
17
|
-
}
|
|
18
|
-
/**表单控件类型 */
|
|
19
|
-
_type: any
|
|
20
|
-
@Input()
|
|
21
|
-
public set type(v: any) {
|
|
22
|
-
if (v == this._type) return
|
|
23
|
-
|
|
24
|
-
this._type = v
|
|
25
|
-
}
|
|
26
|
-
/**表单实体 */
|
|
27
|
-
_Entity: FormGroup | undefined
|
|
28
|
-
@Input()
|
|
29
|
-
public set Entity(v: FormGroup) {
|
|
30
|
-
this._Entity = v;
|
|
31
|
-
}
|
|
32
|
-
/**选择的表单信息 */
|
|
33
|
-
_selected: any
|
|
34
|
-
@Input()
|
|
35
|
-
public set selected(v: any) {
|
|
36
|
-
this._selected = v
|
|
37
|
-
}
|
|
38
|
-
/**语言 */
|
|
39
|
-
_culture: any
|
|
40
|
-
@Input()
|
|
41
|
-
public set culture(v: any) {
|
|
42
|
-
this._culture = v
|
|
43
|
-
}
|
|
44
|
-
get formConfiguration() {
|
|
45
|
-
return this._Entity.get('formConfiguration') as FormGroup
|
|
46
|
-
}
|
|
47
|
-
@ViewChild('submitclick', { static: true }) submitclick: ElementRef;
|
|
48
|
-
|
|
49
|
-
/**站点列表 */
|
|
50
|
-
siteList: any[any] = []
|
|
51
|
-
|
|
52
|
-
/**选择的站点id */
|
|
53
|
-
// siteId: string = ''
|
|
54
|
-
siteId: any = new FormControl('')
|
|
55
|
-
/**站点下的版块 */
|
|
56
|
-
SiteOfSectionList: any[any] = []
|
|
57
|
-
|
|
58
|
-
ngAfterContentInit(): void {
|
|
59
|
-
//Called after ngOnInit when the component's or directive's content has been initialized.
|
|
60
|
-
//Add 'implements AfterContentInit' to the class.
|
|
61
|
-
this.dataLoaded(2)
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
async dataLoaded(val) {
|
|
65
|
-
if (this._Entity && this._type) {
|
|
66
|
-
await this.AfterInit()
|
|
67
|
-
this.submitclick.nativeElement.click();
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
AfterInit() {
|
|
72
|
-
return new Promise(async (resolve, rejects) => {
|
|
73
|
-
this._Entity.setControl('formConfiguration', this.fb.group(new EntryConfig()))
|
|
74
|
-
await this.getsiteList()
|
|
75
|
-
await this.getSiteOfSectionList()
|
|
76
|
-
if (this._selected) {
|
|
77
|
-
this.formConfiguration.patchValue({
|
|
78
|
-
...this._selected.formConfiguration
|
|
79
|
-
})
|
|
80
|
-
}
|
|
81
|
-
resolve(true)
|
|
82
|
-
})
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**获取站点列表 */
|
|
86
|
-
getsiteList() {
|
|
87
|
-
return new Promise((resolve, rejects) => {
|
|
88
|
-
this._SiteAdminService.getList({}).subscribe(res => {
|
|
89
|
-
this.siteList = res.items
|
|
90
|
-
this.siteId = res.items[0]?.id || ''
|
|
91
|
-
resolve(res.items)
|
|
92
|
-
})
|
|
93
|
-
})
|
|
94
|
-
}
|
|
95
|
-
/**获取站点下的版块 */
|
|
96
|
-
getSiteOfSectionList() {
|
|
97
|
-
return new Promise((resolve, rejects) => {
|
|
98
|
-
this._SectionAdminService.getList({
|
|
99
|
-
maxResultCount: 1000,
|
|
100
|
-
siteId: this.siteId
|
|
101
|
-
}).subscribe(res => {
|
|
102
|
-
this.SiteOfSectionList = res.items
|
|
103
|
-
this.formConfiguration.patchValue({
|
|
104
|
-
'Entry.SectionId': res.items[0]?.id || ''
|
|
105
|
-
})
|
|
106
|
-
resolve(res.items)
|
|
107
|
-
})
|
|
108
|
-
})
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**切换站点 */
|
|
112
|
-
async siteIdChange() {
|
|
113
|
-
await this.getSiteOfSectionList()
|
|
114
|
-
}
|
|
115
|
-
}
|