@dignite-ng/expand.cms 0.0.33 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/cms-config.module.d.ts +8 -0
- package/config/{src/enums/index.ts → enums/index.d.ts} +1 -1
- package/config/enums/route-names.d.ts +7 -0
- package/config/index.d.ts +5 -0
- package/config/{src/providers/index.ts → providers/index.d.ts} +1 -1
- package/config/providers/route.provider.d.ts +9 -0
- package/config/{src/public-api.ts → public-api.d.ts} +3 -3
- package/esm2022/config/cms-config.module.mjs +19 -0
- package/esm2022/config/dignite-ng-expand.cms-config.mjs +5 -0
- package/esm2022/config/enums/index.mjs +2 -0
- package/esm2022/config/enums/route-names.mjs +2 -0
- package/esm2022/config/providers/index.mjs +2 -0
- package/esm2022/config/providers/route.provider.mjs +78 -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 +100 -0
- package/esm2022/lib/cms.module.mjs +132 -0
- package/esm2022/lib/components/admin/domains/domains.component.mjs +90 -0
- package/esm2022/lib/components/admin/domains/index.mjs +2 -0
- package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +286 -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 +108 -0
- package/esm2022/lib/components/admin/entries/edit.component.mjs +107 -0
- package/esm2022/lib/components/admin/entries/entries.component.mjs +211 -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 +119 -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 +113 -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 +6 -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 +416 -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 +348 -0
- package/esm2022/lib/components/admin/sites/create-or-update-sites-input-base.mjs +18 -0
- package/esm2022/lib/components/admin/sites/index.mjs +3 -0
- package/esm2022/lib/components/admin/sites/sites.component.mjs +29 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +124 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +18 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +116 -0
- package/esm2022/lib/components/dynamic-form/entry/index.mjs +4 -0
- package/esm2022/lib/components/dynamic-form/form-control-group.mjs +28 -0
- package/esm2022/lib/components/dynamic-form/index.mjs +5 -0
- package/esm2022/lib/components/dynamic-form/matrix/index.mjs +4 -0
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +228 -0
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +50 -0
- package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +115 -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 +121 -0
- package/esm2022/lib/components/index.mjs +3 -0
- package/esm2022/lib/constants/styles.mjs +18 -0
- package/esm2022/lib/enums/ecms-component.mjs +13 -0
- package/esm2022/lib/enums/index.mjs +2 -0
- package/esm2022/lib/proxy/admin/domains/domain-admin.service.mjs +34 -0
- package/esm2022/lib/proxy/admin/domains/index.mjs +3 -0
- package/esm2022/lib/proxy/admin/domains/models.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 +72 -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/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/settings/index.mjs +2 -0
- package/esm2022/lib/proxy/admin/settings/site-settings-admin.service.mjs +33 -0
- package/esm2022/lib/proxy/dignite/abp/data/models.mjs +2 -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/models.mjs +2 -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/settings/models.mjs +2 -0
- package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +2 -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 +79 -0
- package/esm2022/public-api.mjs +10 -0
- package/fesm2022/dignite-ng-expand.cms-config.mjs +101 -0
- package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -0
- package/fesm2022/dignite-ng-expand.cms.mjs +4097 -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 +35 -0
- package/lib/components/admin/domains/domains.component.d.ts +21 -0
- package/lib/components/admin/domains/index.d.ts +1 -0
- package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +92 -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 +40 -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 +36 -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 +5 -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 +90 -0
- package/lib/components/admin/sites/create-or-update-sites-input-base.d.ts +8 -0
- package/lib/components/admin/sites/index.d.ts +2 -0
- package/lib/components/admin/sites/sites.component.d.ts +5 -0
- package/lib/components/dynamic-form/entry/entry-config.component.d.ts +39 -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 +39 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/constants/styles.d.ts +2 -0
- package/lib/enums/ecms-component.d.ts +11 -0
- package/lib/enums/index.d.ts +1 -0
- package/lib/proxy/admin/domains/domain-admin.service.d.ts +13 -0
- package/{src/lib/proxy/admin/domains/models.ts → lib/proxy/admin/domains/models.d.ts} +7 -9
- 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 +22 -0
- package/lib/proxy/admin/entries/models.d.ts +60 -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} +67 -81
- package/lib/proxy/admin/sections/section-admin.service.d.ts +18 -0
- package/lib/proxy/admin/settings/site-settings-admin.service.d.ts +13 -0
- package/lib/proxy/dignite/abp/data/models.d.ts +3 -0
- package/lib/proxy/entries/entry-status.enum.d.ts +5 -0
- package/lib/proxy/fields/models.d.ts +8 -0
- package/lib/proxy/sections/models.d.ts +12 -0
- package/lib/proxy/sections/section-type.enum.d.ts +6 -0
- package/lib/proxy/settings/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 +18 -0
- package/lib/toolbar/toolbar-config.d.ts +56 -0
- package/package.json +21 -6
- package/{src/public-api.ts → public-api.d.ts} +4 -10
- 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 -82
- package/ng-package.json +0 -7
- package/src/lib/cms-routing.module.ts +0 -108
- package/src/lib/cms.module.ts +0 -108
- package/src/lib/components/admin/domains/domains.component.html +0 -19
- package/src/lib/components/admin/domains/domains.component.scss +0 -0
- package/src/lib/components/admin/domains/domains.component.spec.ts +0 -21
- package/src/lib/components/admin/domains/domains.component.ts +0 -99
- package/src/lib/components/admin/domains/index.ts +0 -1
- package/src/lib/components/admin/entries/create-or-edit-entries.component.html +0 -113
- package/src/lib/components/admin/entries/create-or-edit-entries.component.scss +0 -1
- 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 -284
- package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +0 -33
- package/src/lib/components/admin/entries/create.component.html +0 -13
- package/src/lib/components/admin/entries/create.component.scss +0 -1
- package/src/lib/components/admin/entries/create.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/create.component.ts +0 -104
- package/src/lib/components/admin/entries/edit.component.html +0 -9
- package/src/lib/components/admin/entries/edit.component.scss +0 -1
- package/src/lib/components/admin/entries/edit.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/edit.component.ts +0 -98
- package/src/lib/components/admin/entries/entries.component.html +0 -112
- package/src/lib/components/admin/entries/entries.component.scss +0 -1
- package/src/lib/components/admin/entries/entries.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/entries.component.ts +0 -219
- package/src/lib/components/admin/entries/index.ts +0 -4
- package/src/lib/components/admin/fields/create-field.component.html +0 -12
- package/src/lib/components/admin/fields/create-field.component.scss +0 -1
- package/src/lib/components/admin/fields/create-field.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/create-field.component.ts +0 -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 -116
- 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 -74
- package/src/lib/components/admin/fields/fields.component.scss +0 -1
- package/src/lib/components/admin/fields/fields.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/fields.component.ts +0 -111
- package/src/lib/components/admin/fields/index.ts +0 -6
- package/src/lib/components/admin/index.ts +0 -5
- 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 -1
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.spec.ts +0 -21
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.ts +0 -408
- 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 -190
- package/src/lib/components/admin/sections/sections.component.scss +0 -1
- package/src/lib/components/admin/sections/sections.component.spec.ts +0 -21
- package/src/lib/components/admin/sections/sections.component.ts +0 -370
- package/src/lib/components/admin/sites/create-or-update-sites-input-base.ts +0 -18
- package/src/lib/components/admin/sites/index.ts +0 -2
- package/src/lib/components/admin/sites/sites.component.html +0 -136
- package/src/lib/components/admin/sites/sites.component.scss +0 -1
- package/src/lib/components/admin/sites/sites.component.spec.ts +0 -21
- package/src/lib/components/admin/sites/sites.component.ts +0 -250
- 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 -1
- 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 -109
- package/src/lib/components/dynamic-form/entry/index.ts +0 -3
- package/src/lib/components/dynamic-form/form-control-group.ts +0 -27
- package/src/lib/components/dynamic-form/index.ts +0 -4
- package/src/lib/components/dynamic-form/matrix/index.ts +0 -3
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.html +0 -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 -236
- 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 -54
- package/src/lib/components/dynamic-form/table/table-control.component.scss +0 -1
- package/src/lib/components/dynamic-form/table/table-control.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/table/table-control.component.ts +0 -115
- package/src/lib/components/index.ts +0 -2
- package/src/lib/constants/index.ts +0 -1
- package/src/lib/constants/styles.ts +0 -13
- 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/domains/domain-admin.service.ts +0 -38
- 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 -109
- package/src/lib/proxy/admin/entries/models.ts +0 -68
- 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/index.ts +0 -7
- 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/settings/site-settings-admin.service.ts +0 -37
- package/src/lib/proxy/dignite/abp/data/index.ts +0 -1
- package/src/lib/proxy/dignite/abp/data/models.ts +0 -4
- package/src/lib/proxy/dignite/abp/index.ts +0 -2
- package/src/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.ts +0 -65
- package/src/lib/proxy/dignite/file-explorer/directories/index.ts +0 -2
- package/src/lib/proxy/dignite/file-explorer/directories/models.ts +0 -35
- package/src/lib/proxy/dignite/file-explorer/files/file-descriptor.service.ts +0 -86
- package/src/lib/proxy/dignite/file-explorer/files/index.ts +0 -2
- package/src/lib/proxy/dignite/file-explorer/files/models.ts +0 -58
- package/src/lib/proxy/dignite/file-explorer/index.ts +0 -3
- package/src/lib/proxy/dignite/index.ts +0 -3
- package/src/lib/proxy/entries/entry-status.enum.ts +0 -8
- package/src/lib/proxy/fields/index.ts +0 -1
- package/src/lib/proxy/fields/models.ts +0 -9
- package/src/lib/proxy/generate-proxy.json +0 -11425
- package/src/lib/proxy/index.ts +0 -9
- package/src/lib/proxy/microsoft/asp-net-core/index.ts +0 -2
- package/src/lib/proxy/microsoft/asp-net-core/mvc/index.ts +0 -1
- package/src/lib/proxy/microsoft/asp-net-core/mvc/models.ts +0 -12
- package/src/lib/proxy/microsoft/extensions/index.ts +0 -2
- package/src/lib/proxy/microsoft/extensions/primitives/index.ts +0 -1
- package/src/lib/proxy/microsoft/extensions/primitives/models.ts +0 -9
- package/src/lib/proxy/microsoft/index.ts +0 -4
- package/src/lib/proxy/microsoft/net/http/headers/index.ts +0 -1
- package/src/lib/proxy/microsoft/net/http/headers/models.ts +0 -7
- package/src/lib/proxy/microsoft/net/http/index.ts +0 -2
- package/src/lib/proxy/microsoft/net/index.ts +0 -2
- package/src/lib/proxy/sections/models.ts +0 -14
- package/src/lib/proxy/sections/section-type.enum.ts +0 -9
- package/src/lib/proxy/settings/index.ts +0 -1
- package/src/lib/proxy/settings/models.ts +0 -6
- package/src/lib/proxy/volo/abp/content/index.ts +0 -1
- package/src/lib/proxy/volo/abp/content/models.ts +0 -6
- package/src/lib/proxy/volo/abp/index.ts +0 -2
- package/src/lib/proxy/volo/cms-kit/index.ts +0 -2
- package/src/lib/proxy/volo/cms-kit/users/index.ts +0 -1
- package/src/lib/proxy/volo/index.ts +0 -3
- package/src/lib/proxy.zip +0 -0
- 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 -40
- 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 -93
- package/src/test.ts +0 -26
- package/tsconfig.lib.json +0 -34
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
- /package/{src/lib/proxy/admin/domains/index.ts → lib/proxy/admin/domains/index.d.ts} +0 -0
- /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/sections/index.ts → lib/proxy/admin/sections/index.d.ts} +0 -0
- /package/{src/lib/proxy/admin/settings/index.ts → lib/proxy/admin/settings/index.d.ts} +0 -0
- /package/{src/lib/proxy/entries/index.ts → lib/proxy/entries/index.d.ts} +0 -0
- /package/{src/lib/proxy/sections/index.ts → lib/proxy/sections/index.d.ts} +0 -0
|
@@ -1,408 +0,0 @@
|
|
|
1
|
-
import { ToasterService } from '@abp/ng.theme.shared';
|
|
2
|
-
import { Component, ElementRef, OnInit, ViewChild, inject } from '@angular/core';
|
|
3
|
-
import { FormArray, FormBuilder, FormGroup } from '@angular/forms';
|
|
4
|
-
import { Location } from '@angular/common';
|
|
5
|
-
import { CreateOrEditEntryTypeInputBase, fieldTabsBase, fieldsBase } from './create-or-edit.-entry-type-input-base';
|
|
6
|
-
import { FieldGroupAdminService, FieldAdminService } from '../../../../proxy/admin/fields';
|
|
7
|
-
import { EntryTypeAdminService } from '../../../../proxy/admin/sections';
|
|
8
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
9
|
-
import { LocalizationService } from '@abp/ng.core';
|
|
10
|
-
import { EXTENSIONS_IDENTIFIER } from '@abp/ng.theme.shared/extensions';
|
|
11
|
-
import { ECmsComponent } from '../../../../enums';
|
|
12
|
-
import { CmsApiService } from '../../../../services/cms-api.service';
|
|
13
|
-
import { UpdateListService } from '../../../../services/update-list.service';
|
|
14
|
-
|
|
15
|
-
@Component({
|
|
16
|
-
selector: 'cms-create-or-edit',
|
|
17
|
-
templateUrl: './create-or-edit.component.html',
|
|
18
|
-
styleUrls: ['./create-or-edit.component.scss'],
|
|
19
|
-
providers: [
|
|
20
|
-
{
|
|
21
|
-
provide: EXTENSIONS_IDENTIFIER,
|
|
22
|
-
useValue: ECmsComponent.SectionsCreateOrEdit,
|
|
23
|
-
},
|
|
24
|
-
]
|
|
25
|
-
})
|
|
26
|
-
export class CreateOrEditComponent implements OnInit {
|
|
27
|
-
|
|
28
|
-
constructor(
|
|
29
|
-
// private fb: FormBuilder,
|
|
30
|
-
private toaster: ToasterService,
|
|
31
|
-
public _location: Location,
|
|
32
|
-
private route: ActivatedRoute,
|
|
33
|
-
public _FieldGroupAdminService: FieldGroupAdminService,
|
|
34
|
-
public _FieldAdminService: FieldAdminService,
|
|
35
|
-
public _EntryTypeAdminService: EntryTypeAdminService,
|
|
36
|
-
public _LocalizationService: LocalizationService,
|
|
37
|
-
public _CmsApiService: CmsApiService,
|
|
38
|
-
private router: Router,
|
|
39
|
-
) { }
|
|
40
|
-
private fb = inject(FormBuilder)
|
|
41
|
-
private _UpdateListService = inject(UpdateListService)
|
|
42
|
-
/**表单实体 */
|
|
43
|
-
newEntity: FormGroup | undefined = this.fb.group(new CreateOrEditEntryTypeInputBase())
|
|
44
|
-
/**版块id */
|
|
45
|
-
sectionId: string = ''
|
|
46
|
-
/**条目类型id */
|
|
47
|
-
entryTypesId: string = ''
|
|
48
|
-
/**条目类型详情 */
|
|
49
|
-
entryTypesSelect: any
|
|
50
|
-
|
|
51
|
-
get fieldTabs() {
|
|
52
|
-
return this.newEntity.get('fieldTabs') as FormArray;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**获取提交按钮替身,用于真实触发表单提交 */
|
|
56
|
-
@ViewChild('submitclick', { static: true }) submitclick: ElementRef;
|
|
57
|
-
|
|
58
|
-
/**触发提交按钮 */
|
|
59
|
-
submitclickBtn() {
|
|
60
|
-
this.submitclick.nativeElement.click()
|
|
61
|
-
}
|
|
62
|
-
ngOnInit() {
|
|
63
|
-
let sectionId = this.route.snapshot.params.sectionsId
|
|
64
|
-
this.entryTypesId = this.route.snapshot.params.entryTypesId || ''
|
|
65
|
-
if (sectionId) {
|
|
66
|
-
this.sectionId = sectionId
|
|
67
|
-
this.addControlToFieldTabs()
|
|
68
|
-
this.getFieldGroup()
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**给fieldTabs添加新控件 */
|
|
73
|
-
addControlToFieldTabs(nameValue = '') {
|
|
74
|
-
const newFormGroup = this.fb.group(new fieldTabsBase({
|
|
75
|
-
name: this.fieldTabs.length === 0 ? this._LocalizationService.instant(`Cms::FieldTab`) : nameValue,
|
|
76
|
-
}));
|
|
77
|
-
this.fieldTabs.push(newFormGroup)
|
|
78
|
-
this.resultSource.push(newFormGroup.value)
|
|
79
|
-
this.navActive = this.resultSource.length - 1
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/**获取字段分组 */
|
|
84
|
-
getFieldGroup() {
|
|
85
|
-
this._FieldGroupAdminService.getList({}).subscribe(async (res) => {
|
|
86
|
-
let fieldList: any = await this.getFieldList()
|
|
87
|
-
let fieldGroupList = res.items
|
|
88
|
-
fieldGroupList.unshift({
|
|
89
|
-
id: null,
|
|
90
|
-
name: 'UngroupedFields'
|
|
91
|
-
})
|
|
92
|
-
fieldGroupList.forEach((el: any, index) => {
|
|
93
|
-
el.fields = fieldList.filter(els => els.groupId === el.id)
|
|
94
|
-
});
|
|
95
|
-
this.fieldGroupList = fieldGroupList
|
|
96
|
-
this.fieldList = this.deepClone(fieldList)
|
|
97
|
-
let entryTypesId = this.entryTypesId
|
|
98
|
-
if (entryTypesId) {
|
|
99
|
-
this.entryTypesId = entryTypesId
|
|
100
|
-
this.getEntryTypes()
|
|
101
|
-
}
|
|
102
|
-
})
|
|
103
|
-
}
|
|
104
|
-
/**获取条目类型详情 */
|
|
105
|
-
getEntryTypes() {
|
|
106
|
-
let fieldList: any = this.deepClone(this.fieldList)
|
|
107
|
-
this._EntryTypeAdminService.get(this.entryTypesId).subscribe(res => {
|
|
108
|
-
res.fieldTabs.forEach(el => {
|
|
109
|
-
el.fields.forEach((eld: any) => {
|
|
110
|
-
eld.id = eld.fieldId
|
|
111
|
-
eld.groupId = fieldList.find(elfd => elfd.id == eld.fieldId).groupId
|
|
112
|
-
this.formRightGroup.push(eld)
|
|
113
|
-
let fieldindex = fieldList.findIndex(elfl => elfl.id == eld.fieldId)
|
|
114
|
-
fieldList.splice(fieldindex, 1)
|
|
115
|
-
})
|
|
116
|
-
})
|
|
117
|
-
this.fieldGroupList.forEach((el: any, index) => {
|
|
118
|
-
el.fields = fieldList.filter(els => els.groupId === el.id)
|
|
119
|
-
});
|
|
120
|
-
this.newEntity.patchValue(res)
|
|
121
|
-
this.entryTypesSelect = res
|
|
122
|
-
this.resultSource = res.fieldTabs
|
|
123
|
-
})
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* 深拷贝--方法
|
|
127
|
-
* $api.deepClone() */
|
|
128
|
-
deepClone(obj: any) {
|
|
129
|
-
if (typeof obj !== 'object' || obj === null) return obj;
|
|
130
|
-
const result = Array.isArray(obj) ? [] : {};
|
|
131
|
-
for (let key in obj) {
|
|
132
|
-
if (obj.hasOwnProperty(key)) {
|
|
133
|
-
if (typeof obj[key] === 'object' && obj[key] !== null) {
|
|
134
|
-
if (obj[key] instanceof Date) {
|
|
135
|
-
result[key] = new Date(obj[key].getTime());
|
|
136
|
-
} else if (obj[key] instanceof RegExp) {
|
|
137
|
-
result[key] = new RegExp(obj[key]);
|
|
138
|
-
} else {
|
|
139
|
-
result[key] = this.deepClone(obj[key]);
|
|
140
|
-
}
|
|
141
|
-
} else {
|
|
142
|
-
result[key] = obj[key];
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
return result;
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
*
|
|
150
|
-
* @param nameValue 获取所有字段
|
|
151
|
-
*/
|
|
152
|
-
getFieldList() {
|
|
153
|
-
return new Promise((resolve, rejects) => {
|
|
154
|
-
this._FieldAdminService.getList({
|
|
155
|
-
maxResultCount: 1000
|
|
156
|
-
}).subscribe((res: any) => {
|
|
157
|
-
res.items.forEach(el => {
|
|
158
|
-
el.required = false
|
|
159
|
-
el.showOnList = false
|
|
160
|
-
})
|
|
161
|
-
resolve(res.items)
|
|
162
|
-
})
|
|
163
|
-
})
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* 拖拽 功能*/
|
|
169
|
-
/**数据源 */
|
|
170
|
-
/**数据源-字段分组数据-包含字段数据 fields */
|
|
171
|
-
fieldGroupList: any[] = []
|
|
172
|
-
/**数据源-所有字段列表 */
|
|
173
|
-
fieldList: any[] = []
|
|
174
|
-
/**数据源拖拽的分组下标 */
|
|
175
|
-
DataSourceGroupIndex: number
|
|
176
|
-
/**数据源拖拽的字段下标 */
|
|
177
|
-
DataSourceFieldIndex: number
|
|
178
|
-
/**目标源 结果*/
|
|
179
|
-
resultSource: any[] = []
|
|
180
|
-
|
|
181
|
-
/**从数据源拖拽的元素 */
|
|
182
|
-
fromDataSourceDragEl: any
|
|
183
|
-
/**从目标源拖拽的元素 */
|
|
184
|
-
fromResultSourceDragEl: any
|
|
185
|
-
|
|
186
|
-
/**来自数据源的集合,用于从目标源拖回数据源时的判断,与取值 */
|
|
187
|
-
formRightGroup: any[] = []
|
|
188
|
-
/**从数据源开始拖拽 */
|
|
189
|
-
fromDataSourceDragStart(element, fieldIndex, groupIndex) {
|
|
190
|
-
this.fromDataSourceDragEl = element
|
|
191
|
-
this.DataSourceFieldIndex = fieldIndex
|
|
192
|
-
this.DataSourceGroupIndex = groupIndex
|
|
193
|
-
this.fromResultSourceDragEl = undefined
|
|
194
|
-
|
|
195
|
-
}
|
|
196
|
-
/**从目标源开始拖拽 */
|
|
197
|
-
fromResultSourceDragStart(element) {
|
|
198
|
-
this.fromResultSourceDragEl = element
|
|
199
|
-
this.fromDataSourceDragEl = undefined
|
|
200
|
-
this.DataSourceFieldIndex = undefined
|
|
201
|
-
this.DataSourceGroupIndex = undefined
|
|
202
|
-
}
|
|
203
|
-
/**拖拽到数据源时触发 */
|
|
204
|
-
dragToDataSourceDropped() {
|
|
205
|
-
//从数据源拖拽到数据源-排序
|
|
206
|
-
if (this.fromDataSourceDragEl) {
|
|
207
|
-
}
|
|
208
|
-
let _fromResultSourceDragEl = this.fromResultSourceDragEl
|
|
209
|
-
let formRightGroup = this.deepClone(this.formRightGroup)
|
|
210
|
-
let fieldList = this.deepClone(this.fieldList)
|
|
211
|
-
|
|
212
|
-
if (_fromResultSourceDragEl) {//移动
|
|
213
|
-
//从目标源拖拽到数据源
|
|
214
|
-
// 拖拽目标源的下标
|
|
215
|
-
let dragResultSourceIndex = this.resultSource[this.navActive].fields.findIndex(el => el.id == _fromResultSourceDragEl.id)
|
|
216
|
-
//删除目标源中的数据
|
|
217
|
-
this.resultSource[this.navActive].fields.splice(dragResultSourceIndex, 1)
|
|
218
|
-
formRightGroup.splice(formRightGroup.findIndex(el => el.id == _fromResultSourceDragEl.id), 1)
|
|
219
|
-
this.fieldGroupList.forEach(el => {
|
|
220
|
-
if (el.id == _fromResultSourceDragEl.groupId) {
|
|
221
|
-
const elFieldsAll = fieldList.filter(els => els.groupId === el.id)
|
|
222
|
-
el.fields = elFieldsAll.filter(item => !formRightGroup.some(itemB => item.id === itemB.id));
|
|
223
|
-
}
|
|
224
|
-
})
|
|
225
|
-
this.formRightGroup = formRightGroup
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
this.setfieldTabsFrom()
|
|
229
|
-
}
|
|
230
|
-
/**拖拽到目标源时触发
|
|
231
|
-
*
|
|
232
|
-
*/
|
|
233
|
-
dragToResultSourceDropped(fieldTabstem: any, fieldTabsIndex) {
|
|
234
|
-
const _fromDataSourceDragEl = this.fromDataSourceDragEl
|
|
235
|
-
//从数据源拖拽到目标源
|
|
236
|
-
if (_fromDataSourceDragEl) {
|
|
237
|
-
this.fieldGroupList[this.DataSourceGroupIndex].fields.splice(this.DataSourceFieldIndex, 1)
|
|
238
|
-
this.resultSource[fieldTabsIndex].fields.push(_fromDataSourceDragEl)
|
|
239
|
-
this.formRightGroup.push(_fromDataSourceDragEl)
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
this.setfieldTabsFrom()
|
|
243
|
-
}
|
|
244
|
-
/** 从目标源拖拽到目标源*/
|
|
245
|
-
dragToResultSourceItemDropped(fieldsIndex) {
|
|
246
|
-
const _fromResultSourceDragEl = this.fromResultSourceDragEl
|
|
247
|
-
if (_fromResultSourceDragEl) {
|
|
248
|
-
// 拖拽目标源的下标
|
|
249
|
-
let dragResultSourceIndex = this.resultSource[this.navActive].fields.findIndex(el => el.id == _fromResultSourceDragEl.id)
|
|
250
|
-
//删除目标源中的数据
|
|
251
|
-
this.resultSource[this.navActive].fields.splice(dragResultSourceIndex, 1)
|
|
252
|
-
this.resultSource[this.navActive].fields.splice(fieldsIndex, 0, _fromResultSourceDragEl)
|
|
253
|
-
}
|
|
254
|
-
this.setfieldTabsFrom()
|
|
255
|
-
}
|
|
256
|
-
/**设置formA表单 */
|
|
257
|
-
setfieldTabsFrom() {
|
|
258
|
-
let setArray = []
|
|
259
|
-
this.resultSource.forEach(el => {
|
|
260
|
-
let fieldsArray = []
|
|
261
|
-
el.fields.forEach(item => {
|
|
262
|
-
fieldsArray.push({
|
|
263
|
-
"fieldId": item.id || item.fieldId,
|
|
264
|
-
"displayName": item.displayName,
|
|
265
|
-
"required": item?.required,
|
|
266
|
-
"showOnList": item?.showOnList
|
|
267
|
-
})
|
|
268
|
-
})
|
|
269
|
-
setArray.push({
|
|
270
|
-
name: el.name,
|
|
271
|
-
fields: fieldsArray
|
|
272
|
-
})
|
|
273
|
-
})
|
|
274
|
-
this.newEntity.patchValue({
|
|
275
|
-
fieldTabs: setArray
|
|
276
|
-
})
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
/**保存表单 */
|
|
281
|
-
save() {
|
|
282
|
-
let input = this.newEntity.value
|
|
283
|
-
if (this.entryTypesSelect) {
|
|
284
|
-
this._EntryTypeAdminService.update(this.entryTypesSelect.id, input).subscribe(res => {
|
|
285
|
-
this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
|
|
286
|
-
this.router.navigateByUrl('', { skipLocationChange: true }).then(() => {
|
|
287
|
-
this.router.navigate([`/cms/admin/sections`]);
|
|
288
|
-
this._UpdateListService.updateList();
|
|
289
|
-
});
|
|
290
|
-
})
|
|
291
|
-
return
|
|
292
|
-
}
|
|
293
|
-
input.sectionId = this.sectionId
|
|
294
|
-
this._EntryTypeAdminService.create(input).subscribe(res => {
|
|
295
|
-
this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
|
|
296
|
-
this.router.navigateByUrl('', { skipLocationChange: true }).then(() => {
|
|
297
|
-
this.router.navigate([`/cms/admin/sections`]);
|
|
298
|
-
this._UpdateListService.updateList();
|
|
299
|
-
});
|
|
300
|
-
})
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
}
|
|
305
|
-
/**编辑Tabs表单 */
|
|
306
|
-
editFieldTabsFrom: FormGroup | undefined;
|
|
307
|
-
/**模态框状态 */
|
|
308
|
-
visibleTabsOpen: boolean = false
|
|
309
|
-
/**是否是忙碌状态 */
|
|
310
|
-
modalBusy: boolean = false
|
|
311
|
-
/**正在编辑的tabs */
|
|
312
|
-
editFieldTabsSelect: any
|
|
313
|
-
/**正在选中的nav */
|
|
314
|
-
navActive: any = 0
|
|
315
|
-
|
|
316
|
-
/**表单控件模板-动态赋值表单控件 */
|
|
317
|
-
@ViewChild('editFieldTabsModalSubmitBtn', { static: false }) editFieldTabsModalSubmitBtn: ElementRef;
|
|
318
|
-
|
|
319
|
-
/**模态框状态改变回调 */
|
|
320
|
-
VisibleTabsChange(event) {
|
|
321
|
-
if (!event) {
|
|
322
|
-
this.editFieldTabsSelect = ''
|
|
323
|
-
return
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
/**新建增加FieldTabs */
|
|
327
|
-
addFieldTabs() {
|
|
328
|
-
this.editFieldTabsFrom = this.fb.group(new fieldTabsBase());
|
|
329
|
-
this.visibleTabsOpen = true
|
|
330
|
-
|
|
331
|
-
}
|
|
332
|
-
/**正在编辑的tab下标 */
|
|
333
|
-
newEditFieldTabsIndex: number
|
|
334
|
-
/**编辑FieldTabs */
|
|
335
|
-
editFieldTabs(item, i) {
|
|
336
|
-
this.editFieldTabsFrom = this.fb.group(new fieldTabsBase({
|
|
337
|
-
name: item.name
|
|
338
|
-
}));
|
|
339
|
-
this.editFieldTabsSelect = item
|
|
340
|
-
this.visibleTabsOpen = true
|
|
341
|
-
this.newEditFieldTabsIndex = i
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
/**保存编辑tabs表单 */
|
|
345
|
-
editFieldTabsSave() {
|
|
346
|
-
//编辑
|
|
347
|
-
if (this.editFieldTabsSelect) {
|
|
348
|
-
this.resultSource[this.newEditFieldTabsIndex].name = this.editFieldTabsFrom.value.name
|
|
349
|
-
this.navActive = this.newEditFieldTabsIndex
|
|
350
|
-
} else {
|
|
351
|
-
//新建
|
|
352
|
-
this.addControlToFieldTabs(this.editFieldTabsFrom.value.name)
|
|
353
|
-
}
|
|
354
|
-
this.visibleTabsOpen = false
|
|
355
|
-
this.setfieldTabsFrom()
|
|
356
|
-
}
|
|
357
|
-
/**删除某个tabs表单 */
|
|
358
|
-
deleteFieldTabs(index) {
|
|
359
|
-
this.fieldTabs.removeAt(index)
|
|
360
|
-
this.resultSource.splice(index, 1)
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
/**编辑字段模态框状态 */
|
|
365
|
-
visibleEditFieldOpen: boolean = false
|
|
366
|
-
/**编辑字段模态框表单 */
|
|
367
|
-
editFieldFrom: FormGroup | undefined;
|
|
368
|
-
/**表单控件模板-动态赋值表单控件-编辑字段 */
|
|
369
|
-
@ViewChild('editFieldModalSubmitBtn', { static: false }) editFieldModalSubmitBtn: ElementRef;
|
|
370
|
-
/**正在编辑的字段下标 */
|
|
371
|
-
EditFieldIndex: number;
|
|
372
|
-
/**编辑字段模态框状态状态改变回调 */
|
|
373
|
-
VisibleEditFieldChange(event) {
|
|
374
|
-
if (!event) {
|
|
375
|
-
this.EditFieldIndex = undefined
|
|
376
|
-
return
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
/**打开编辑字段模态框 */
|
|
380
|
-
EditFieldModalOpen(items, elIndex) {
|
|
381
|
-
this.visibleEditFieldOpen = true
|
|
382
|
-
this.EditFieldIndex = elIndex
|
|
383
|
-
this.editFieldFrom = this.fb.group(new fieldsBase(this.fieldTabs.value[this.navActive].fields[elIndex]))
|
|
384
|
-
}
|
|
385
|
-
/**保存编辑字段 */
|
|
386
|
-
editFieldSave() {
|
|
387
|
-
let input = this.editFieldFrom.value
|
|
388
|
-
this.resultSource[this.navActive].fields[this.EditFieldIndex].displayName = input.displayName
|
|
389
|
-
this.resultSource[this.navActive].fields[this.EditFieldIndex].required = input.required
|
|
390
|
-
this.resultSource[this.navActive].fields[this.EditFieldIndex].showOnList = input.showOnList
|
|
391
|
-
this.visibleEditFieldOpen = false
|
|
392
|
-
this.setfieldTabsFrom()
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
/**name表单控件 */
|
|
396
|
-
get nameInput() {
|
|
397
|
-
return this.newEntity.get('name')
|
|
398
|
-
}
|
|
399
|
-
/**字段标签input失去标点生成字段名字 */
|
|
400
|
-
disPlayNameInputBlur(event) {
|
|
401
|
-
let value = event.target.value
|
|
402
|
-
let pinyin = this._CmsApiService.chineseToPinyin(value)
|
|
403
|
-
let nameInput = this.nameInput
|
|
404
|
-
if (nameInput.value) return
|
|
405
|
-
nameInput.patchValue(pinyin)
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
}
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
<abp-page [title]="'Cms::Sections' | abpLocalization" [toolbar]="true">
|
|
2
|
-
<div class="sections-page">
|
|
3
|
-
<div class="card " >
|
|
4
|
-
<div class="card-body px-2 py-sm-2 border-bottom">
|
|
5
|
-
<div class="row align-items-end">
|
|
6
|
-
<div class="mb-2 col-3">
|
|
7
|
-
<label class="form-label">{{'Cms::IsActive' | abpLocalization}}:</label>
|
|
8
|
-
<select class="form-select col-auto" [(ngModel)]="filters.isActive" (change)="siteIdChange()">
|
|
9
|
-
<option [value]=""></option>
|
|
10
|
-
<option [value]="true">是</option>
|
|
11
|
-
<option [value]="false">否</option>
|
|
12
|
-
</select>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="mb-2 col-3">
|
|
15
|
-
<label class="form-label">{{'AbpUi::Search' | abpLocalization}}:</label>
|
|
16
|
-
<input type="text" class="form-control" [(ngModel)]="filters.filter"
|
|
17
|
-
[placeholder]="'AbpUi::Search' | abpLocalization" />
|
|
18
|
-
</div>
|
|
19
|
-
<div class="mb-2 col-4">
|
|
20
|
-
<button class="btn btn-primary px-3" type="button" id="button-addon2" (click)="list.get()">
|
|
21
|
-
<i class="fa fa-search"></i>
|
|
22
|
-
</button>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="card mb-0">
|
|
28
|
-
<div class="card-body p-0">
|
|
29
|
-
<div class="table-responsive table-fixed-header">
|
|
30
|
-
<ngx-datatable class="material " [rows]="data.items" [list]="list"
|
|
31
|
-
[columnMode]="ColumnMode.force" [headerHeight]="50" [footerHeight]="50" rowHeight="auto"
|
|
32
|
-
[virtualization]="false" [externalPaging]="true" [count]="data.totalCount" [scrollbarH]="true">
|
|
33
|
-
<ngx-datatable-column [name]="'Cms::DisplayName' | abpLocalization" prop="displayName">
|
|
34
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
35
|
-
{{ value }}
|
|
36
|
-
</ng-template>
|
|
37
|
-
</ngx-datatable-column>
|
|
38
|
-
<ngx-datatable-column [name]="'Cms::Name' | abpLocalization" prop="name">
|
|
39
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
40
|
-
{{ value }}
|
|
41
|
-
</ng-template>
|
|
42
|
-
</ngx-datatable-column>
|
|
43
|
-
<ngx-datatable-column [name]="'Cms::SectionType' | abpLocalization" prop="type" [width]="80">
|
|
44
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
45
|
-
{{('Cms::Enum:SectionType:'+_SectionType[value]) | abpLocalization}}
|
|
46
|
-
</ng-template>
|
|
47
|
-
</ngx-datatable-column>
|
|
48
|
-
<ngx-datatable-column [name]="'Cms::IsDefault' | abpLocalization" prop="isDefault" [width]="60">
|
|
49
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
50
|
-
<i class="fas fa-check text-success" *ngIf="value"></i>
|
|
51
|
-
<i class="fas fa-times text-danger" *ngIf="!value"></i>
|
|
52
|
-
</ng-template>
|
|
53
|
-
</ngx-datatable-column>
|
|
54
|
-
<ngx-datatable-column [name]="'Cms::IsActive' | abpLocalization" prop="isActive" [width]="60">
|
|
55
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
56
|
-
<i class="fas fa-check text-success" *ngIf="value"></i>
|
|
57
|
-
<i class="fas fa-times text-danger" *ngIf="!value"></i>
|
|
58
|
-
</ng-template>
|
|
59
|
-
</ngx-datatable-column>
|
|
60
|
-
<ngx-datatable-column [name]="'Cms::EntryType' | abpLocalization" prop="SiteId" [width]="100">
|
|
61
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
62
|
-
<div ngbDropdown container="body">
|
|
63
|
-
<button type="button" class="btn btn-link" ngbDropdownToggle id="dropdownBasic1">
|
|
64
|
-
{{'Cms::EntryType' | abpLocalization}}
|
|
65
|
-
</button>
|
|
66
|
-
<div ngbDropdownMenu aria-labelledby="dropdownBasic1">
|
|
67
|
-
<ng-container *ngFor="let item of row.entryTypes;let i =index">
|
|
68
|
-
<li ngbDropdownItem
|
|
69
|
-
class="d-flex align-items-center justify-content-between"
|
|
70
|
-
(click.stop)="jumpSectionsEdit(row,item)">{{item.displayName}}
|
|
71
|
-
<button class="btn btn-light btn-sm p-0"
|
|
72
|
-
(click.stop)="deleteEntryType(item)"><i class="fas fa-trash p-sm-1"
|
|
73
|
-
style="font-size: 12px;" role="button"></i></button>
|
|
74
|
-
</li>
|
|
75
|
-
</ng-container>
|
|
76
|
-
<li ngbDropdownItem (click.stop)="jumpSectionsCreate(row)"><i
|
|
77
|
-
class="fas fa-plus-circle me-2"></i>{{'Cms::New' |
|
|
78
|
-
abpLocalization}}</li>
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
|
|
82
|
-
</ng-template>
|
|
83
|
-
</ngx-datatable-column>
|
|
84
|
-
<ngx-datatable-column [name]="'Cms::CreationTime' | abpLocalization" prop="creationTime" [minWidth]="190">
|
|
85
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
86
|
-
{{ value | date : 'yyyy/MM/dd hh:mm:ss' }}
|
|
87
|
-
</ng-template>
|
|
88
|
-
</ngx-datatable-column>
|
|
89
|
-
<ngx-datatable-column [sortable]="false" [frozenRight]="true" [name]="'AbpUi::Actions' | abpLocalization" cellClass="cellClassRight" [width]="100">
|
|
90
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
91
|
-
<div ngbDropdown container="body">
|
|
92
|
-
<button type="button" class="btn btn-primary btn-sm" ngbDropdownToggle>
|
|
93
|
-
<i class="me-1 fa fa-cog"></i> {{'AbpUi::Actions' | abpLocalization}}
|
|
94
|
-
</button>
|
|
95
|
-
<div ngbDropdownMenu>
|
|
96
|
-
<button ngbDropdownItem (click)="editSectionBtn(row)">{{'AbpUi::Edit' |
|
|
97
|
-
abpLocalization}}</button>
|
|
98
|
-
<button ngbDropdownItem (click)="deletefield(row)">{{'AbpUi::Delete' |
|
|
99
|
-
abpLocalization}}</button>
|
|
100
|
-
</div>
|
|
101
|
-
</div>
|
|
102
|
-
</ng-template>
|
|
103
|
-
</ngx-datatable-column>
|
|
104
|
-
</ngx-datatable>
|
|
105
|
-
</div>
|
|
106
|
-
</div>
|
|
107
|
-
</div>
|
|
108
|
-
</div>
|
|
109
|
-
</abp-page>
|
|
110
|
-
<abp-modal [(visible)]="visibleOpen" [busy]="modalBusy" (visibleChange)="VisibleChange($event)">
|
|
111
|
-
<ng-template #abpHeader>
|
|
112
|
-
<h3>{{selected?('AbpUi::Edit' | abpLocalization):('Cms::New' | abpLocalization)}}</h3>
|
|
113
|
-
</ng-template>
|
|
114
|
-
<ng-template #abpBody>
|
|
115
|
-
<ng-template #loaderRef>
|
|
116
|
-
<div class="text-center"><i class="fa fa-pulse fa-spinner" aria-hidden="true"></i></div>
|
|
117
|
-
</ng-template>
|
|
118
|
-
<ng-container *ngIf="createOrEditForm; else loaderRef">
|
|
119
|
-
<form class="sites-modal-form" [formGroup]="createOrEditForm" (ngSubmit)="createOrEditSave()">
|
|
120
|
-
<button type="submit" #createOrEditModalSubmitBtn style="display: none"></button>
|
|
121
|
-
<div class="mb-2">
|
|
122
|
-
<label class="form-label">{{'Cms::EntryType' | abpLocalization}}</label>
|
|
123
|
-
<div>
|
|
124
|
-
<ng-container *ngFor="let item of _sectionTypeOptions;let i =index">
|
|
125
|
-
<div class="form-check form-check-inline">
|
|
126
|
-
<input class="form-check-input" type="radio" [value]="item.value"
|
|
127
|
-
(change)="radiochange()" formControlName="type" id="flexRadioDefault{{i}}">
|
|
128
|
-
<label class="form-check-label" for="flexRadioDefault{{i}}">
|
|
129
|
-
{{ 'Cms::Enum:SectionType:'+item.key | abpLocalization }}
|
|
130
|
-
</label>
|
|
131
|
-
</div>
|
|
132
|
-
</ng-container>
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
<div class="mb-2">
|
|
136
|
-
<label class="form-label">{{'Cms::DisplayName' | abpLocalization}}</label>
|
|
137
|
-
<input type="text" class="form-control" formControlName="displayName"
|
|
138
|
-
(blur)="disPlayNameInputBlur($event)" placeholder="" />
|
|
139
|
-
</div>
|
|
140
|
-
<div class="mb-2">
|
|
141
|
-
<label class="form-label">{{'Cms::Name' | abpLocalization}}</label>
|
|
142
|
-
<input type="text" class="form-control" formControlName="name" placeholder="" />
|
|
143
|
-
<div class="text-danger invalid-feedback" *ngIf="nameInput.errors?.repetition">
|
|
144
|
-
{{nameInput.errors?.repetition}}
|
|
145
|
-
</div>
|
|
146
|
-
</div>
|
|
147
|
-
<div class="mb-2">
|
|
148
|
-
<label class="form-label">{{'Cms::Route' | abpLocalization}} </label>
|
|
149
|
-
<input type="text" class="form-control" formControlName="route" placeholder="" />
|
|
150
|
-
<div class="text-danger invalid-feedback" *ngIf="routeInput.errors?.repetition">
|
|
151
|
-
{{routeInput.errors?.repetition}}
|
|
152
|
-
</div>
|
|
153
|
-
<div class="form-text">
|
|
154
|
-
{{'Cms::RouteTips' | abpLocalization}}<br>
|
|
155
|
-
blog<br>
|
|
156
|
-
{{'blog/{slug}'}}<br>
|
|
157
|
-
{{'blog/{publishTime:yyyy}/{publishTime:MM}/{slug}'}}
|
|
158
|
-
</div>
|
|
159
|
-
</div>
|
|
160
|
-
<div class="mb-2">
|
|
161
|
-
<label class="form-label">{{'Cms::Template' | abpLocalization}} </label>
|
|
162
|
-
<input type="text" class="form-control" formControlName="template" placeholder="" />
|
|
163
|
-
<div class="form-text">
|
|
164
|
-
{{"Cms::TemplateTips" | abpLocalization}}
|
|
165
|
-
</div>
|
|
166
|
-
</div>
|
|
167
|
-
<div class="mb-2">
|
|
168
|
-
<div class="form-check form-check-inline">
|
|
169
|
-
<input class="form-check-input" type="checkbox" value="true" formControlName="isDefault"
|
|
170
|
-
id="isDefault" />
|
|
171
|
-
<label class="form-check-label" for="isDefault"> {{'Cms::Default' | abpLocalization}} </label>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
<div class="mb-2">
|
|
175
|
-
<div class="form-check form-check-inline">
|
|
176
|
-
<input class="form-check-input" type="checkbox" value="true" formControlName="isActive"
|
|
177
|
-
id="isActive" />
|
|
178
|
-
<label class="form-check-label" for="isActive"> {{'Cms::IsActive' | abpLocalization}}</label>
|
|
179
|
-
</div>
|
|
180
|
-
</div>
|
|
181
|
-
|
|
182
|
-
</form>
|
|
183
|
-
</ng-container>
|
|
184
|
-
</ng-template>
|
|
185
|
-
<ng-template #abpFooter>
|
|
186
|
-
<button type="button" class="btn btn-secondary" abpClose>{{'AbpUi::Close' | abpLocalization}}</button>
|
|
187
|
-
<abp-button iconClass="fa fa-check" (click)="createOrEditModalSubmitBtn.nativeElement.click()">{{'AbpUi::Save' |
|
|
188
|
-
abpLocalization}}</abp-button>
|
|
189
|
-
</ng-template>
|
|
190
|
-
</abp-modal>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
::ng-deep.sections-page{.dignite_page{background:transparent}.list-group-flush>.list-group-item:first-child{border-top-width:var(--bs-list-group-border-width)}.card-header{input{flex:2 1 auto}.form-select{padding:.475rem 3.75rem .475rem 1.25rem}}}::ng-deep.sites-modal-form{.form-control{padding:.4rem 1.25rem}}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { SectionsComponent } from './sections.component';
|
|
4
|
-
|
|
5
|
-
describe('SectionsComponent', () => {
|
|
6
|
-
let component: SectionsComponent;
|
|
7
|
-
let fixture: ComponentFixture<SectionsComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
TestBed.configureTestingModule({
|
|
11
|
-
declarations: [SectionsComponent]
|
|
12
|
-
});
|
|
13
|
-
fixture = TestBed.createComponent(SectionsComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|