@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
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { InjectionToken } from "@angular/core";
|
|
2
|
+
import { ResolveFn } from "@angular/router";
|
|
3
|
+
export declare const ActionGroup: {
|
|
4
|
+
Entries: import("@abp/ng.theme.shared/extensions").ToolbarAction<any[]>[];
|
|
5
|
+
Entries_Create: import("@abp/ng.theme.shared/extensions").ToolbarAction<any[]>[];
|
|
6
|
+
Entries_Edit: import("@abp/ng.theme.shared/extensions").ToolbarAction<any[]>[];
|
|
7
|
+
Fields: import("@abp/ng.theme.shared/extensions").ToolbarAction<any[]>[];
|
|
8
|
+
FieldsCreate: import("@abp/ng.theme.shared/extensions").ToolbarAction<any[]>[];
|
|
9
|
+
FieldsEdit: import("@abp/ng.theme.shared/extensions").ToolbarAction<any[]>[];
|
|
10
|
+
Sections: import("@abp/ng.theme.shared/extensions").ToolbarAction<any[]>[];
|
|
11
|
+
SectionsCreateOrEdit: import("@abp/ng.theme.shared/extensions").ToolbarAction<any[]>[];
|
|
12
|
+
};
|
|
13
|
+
/**用于路由守卫增加工具栏按钮 */
|
|
14
|
+
export declare const Cms_Default_Toolbar_Actions: {};
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @param 在identityExtensionsResolver方法中使用
|
|
18
|
+
*
|
|
19
|
+
* @param 在cms.module.ts中使用,
|
|
20
|
+
export class CmsModule {
|
|
21
|
+
static forChild(options: any = {}): ModuleWithProviders<CmsModule> {
|
|
22
|
+
return {
|
|
23
|
+
ngModule: CmsModule,
|
|
24
|
+
providers: [
|
|
25
|
+
{
|
|
26
|
+
provide: CMS_TOOLBAR_ACTION_CONTRIBUTORS,
|
|
27
|
+
useValue: options.toolbarActionContributors,
|
|
28
|
+
// useValue: identityToolbarActionContributors,
|
|
29
|
+
},
|
|
30
|
+
// IdentityExtensionsGuard,
|
|
31
|
+
]
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
static forLazy(options: any = {}): NgModuleFactory<CmsModule> {
|
|
35
|
+
return new LazyModuleFactory(CmsModule.forChild(options));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
*
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export declare const CMS_TOOLBAR_ACTION_CONTRIBUTORS: InjectionToken<any>;
|
|
42
|
+
/**用于放在cms-routing.module.ts路由守卫中
|
|
43
|
+
*
|
|
44
|
+
*
|
|
45
|
+
const routes: Routes = [
|
|
46
|
+
{
|
|
47
|
+
path: 'demo',
|
|
48
|
+
canActivate: [AuthGuard, PermissionGuard],
|
|
49
|
+
resolve: [identityExtensionsResolver],
|
|
50
|
+
children: []
|
|
51
|
+
},
|
|
52
|
+
]
|
|
53
|
+
*
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
export declare const CmsExtensionsResolver: ResolveFn<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dignite-ng/expand.cms",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.35",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^16.2.0",
|
|
6
6
|
"@angular/core": "^16.2.0",
|
|
@@ -13,9 +13,24 @@
|
|
|
13
13
|
"publishConfig": {
|
|
14
14
|
"access": "public",
|
|
15
15
|
"registry": "https://registry.npmjs.org/"
|
|
16
|
+
},
|
|
17
|
+
"module": "fesm2022/dignite-ng-expand.cms.mjs",
|
|
18
|
+
"typings": "index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
"./package.json": {
|
|
21
|
+
"default": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./index.d.ts",
|
|
25
|
+
"esm2022": "./esm2022/dignite-ng-expand.cms.mjs",
|
|
26
|
+
"esm": "./esm2022/dignite-ng-expand.cms.mjs",
|
|
27
|
+
"default": "./fesm2022/dignite-ng-expand.cms.mjs"
|
|
28
|
+
},
|
|
29
|
+
"./config": {
|
|
30
|
+
"types": "./config/index.d.ts",
|
|
31
|
+
"esm2022": "./esm2022/config/dignite-ng-expand.cms-config.mjs",
|
|
32
|
+
"esm": "./esm2022/config/dignite-ng-expand.cms-config.mjs",
|
|
33
|
+
"default": "./fesm2022/dignite-ng-expand.cms-config.mjs"
|
|
34
|
+
}
|
|
16
35
|
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
36
|
+
}
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export * from './lib/cms.module';
|
|
6
|
-
// export * from './lib/cms-routing.module';
|
|
7
|
-
export * from './lib/components/dynamic-form';
|
|
8
|
-
// export * from './lib/proxy';
|
|
9
|
-
export * from './lib/services/simple-reuse-strategy';
|
|
10
|
-
export * from './lib/components/admin/domains';
|
|
1
|
+
export * from './lib/cms.module';
|
|
2
|
+
export * from './lib/components/dynamic-form';
|
|
3
|
+
export * from './lib/services/simple-reuse-strategy';
|
|
4
|
+
export * from './lib/components/admin/domains';
|
package/config/ng-package.json
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders, NgModule } from '@angular/core';
|
|
2
|
-
import { CMS_ROUTE_PROVIDERS } from './providers/route.provider';
|
|
3
|
-
|
|
4
|
-
@NgModule()
|
|
5
|
-
export class CmsConfigModule {
|
|
6
|
-
static forRoot(): ModuleWithProviders<CmsConfigModule> {
|
|
7
|
-
return {
|
|
8
|
-
ngModule: CmsConfigModule,
|
|
9
|
-
providers: [CMS_ROUTE_PROVIDERS],
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { eLayoutType, RoutesService } from '@abp/ng.core';
|
|
2
|
-
import { APP_INITIALIZER } from '@angular/core';
|
|
3
|
-
import { eCmsRouteNames } from '../enums/route-names';
|
|
4
|
-
import { eThemeSharedRouteNames } from '@abp/ng.theme.shared';
|
|
5
|
-
import { SettingTabsService } from '@abp/ng.setting-management/config';
|
|
6
|
-
import { DomainsComponent } from '@dignite-ng/expand.cms';
|
|
7
|
-
// import { DomainsComponent } from '@dignite-ng/expand.cms';
|
|
8
|
-
|
|
9
|
-
export const CMS_ROUTE_PROVIDERS = [
|
|
10
|
-
{
|
|
11
|
-
provide: APP_INITIALIZER,
|
|
12
|
-
useFactory: configureRoutes,
|
|
13
|
-
deps: [RoutesService, SettingTabsService],
|
|
14
|
-
multi: true,
|
|
15
|
-
},
|
|
16
|
-
];
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export function configureRoutes(routesService: RoutesService, settingTabs: SettingTabsService) {
|
|
20
|
-
return () => {
|
|
21
|
-
settingTabs.add([
|
|
22
|
-
{
|
|
23
|
-
name: 'Cms::Domain',
|
|
24
|
-
order: 1,
|
|
25
|
-
requiredPolicy: 'CmsAdmin.Domain',
|
|
26
|
-
component: DomainsComponent,
|
|
27
|
-
},
|
|
28
|
-
]);
|
|
29
|
-
routesService.add([
|
|
30
|
-
{
|
|
31
|
-
path: '/cms',
|
|
32
|
-
name: eCmsRouteNames.Cms,
|
|
33
|
-
iconClass: 'bi-archive-fill',
|
|
34
|
-
layout: eLayoutType.application,
|
|
35
|
-
requiredPolicy: 'CmsAdmin.Entry || CmsAdmin.Field || CmsAdmin.Site || CmsAdmin.Section',
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
path: '/cms/admin/entries',
|
|
39
|
-
name: eCmsRouteNames.Entries,
|
|
40
|
-
parentName: eCmsRouteNames.Cms,
|
|
41
|
-
iconClass: 'bi-file-earmark-text-fill',
|
|
42
|
-
layout: eLayoutType.application,
|
|
43
|
-
requiredPolicy: 'CmsAdmin.Entry',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
path: '',
|
|
47
|
-
name: eCmsRouteNames.Settings,
|
|
48
|
-
parentName: eCmsRouteNames.Cms,
|
|
49
|
-
iconClass: 'fas fa fa-cog',
|
|
50
|
-
layout: eLayoutType.application,
|
|
51
|
-
requiredPolicy: 'CmsAdmin.Field || CmsAdmin.Section',
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
path: '/cms/admin/fields',
|
|
55
|
-
name: eCmsRouteNames.Fields,
|
|
56
|
-
parentName: eCmsRouteNames.Settings,
|
|
57
|
-
iconClass: 'bi-file-earmark-text-fill',
|
|
58
|
-
layout: eLayoutType.application,
|
|
59
|
-
order: 1,
|
|
60
|
-
requiredPolicy: 'CmsAdmin.Field',
|
|
61
|
-
},
|
|
62
|
-
// {
|
|
63
|
-
// path: '/cms/admin/sites',
|
|
64
|
-
// name: eCmsRouteNames.Sites,
|
|
65
|
-
// parentName:eCmsRouteNames.Settings,
|
|
66
|
-
// iconClass: 'fas fa fa-globe ',
|
|
67
|
-
// layout: eLayoutType.application,
|
|
68
|
-
// order: 2,
|
|
69
|
-
// requiredPolicy:'CmsAdmin.Site',
|
|
70
|
-
// },
|
|
71
|
-
{
|
|
72
|
-
path: '/cms/admin/sections',
|
|
73
|
-
name: eCmsRouteNames.Sections,
|
|
74
|
-
parentName: eCmsRouteNames.Settings,
|
|
75
|
-
iconClass: 'bi bi-menu-button-wide-fill',
|
|
76
|
-
layout: eLayoutType.application,
|
|
77
|
-
order: 3,
|
|
78
|
-
requiredPolicy: 'CmsAdmin.Section',
|
|
79
|
-
},
|
|
80
|
-
]);
|
|
81
|
-
};
|
|
82
|
-
}
|
package/ng-package.json
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { NgModule} from '@angular/core';
|
|
2
|
-
import { Routes, RouterModule} from '@angular/router';
|
|
3
|
-
import {
|
|
4
|
-
CreateComponent,
|
|
5
|
-
CreateFieldComponent,
|
|
6
|
-
CreateOrEditComponent,
|
|
7
|
-
EditComponent,
|
|
8
|
-
EditFieldComponent,
|
|
9
|
-
EntriesComponent,
|
|
10
|
-
FieldsComponent,
|
|
11
|
-
SectionsComponent,
|
|
12
|
-
SitesComponent,
|
|
13
|
-
} from './components';
|
|
14
|
-
import {
|
|
15
|
-
AuthGuard,
|
|
16
|
-
PermissionGuard,
|
|
17
|
-
} from '@abp/ng.core';
|
|
18
|
-
import { CmsExtensionsResolver } from './toolbar';
|
|
19
|
-
import { appentStyle } from './services/appent-content';
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const routes: Routes = [
|
|
23
|
-
{
|
|
24
|
-
path: 'admin',
|
|
25
|
-
canActivate: [AuthGuard, PermissionGuard],
|
|
26
|
-
resolve: [CmsExtensionsResolver, appentStyle],
|
|
27
|
-
children: [
|
|
28
|
-
{
|
|
29
|
-
path: 'entries',
|
|
30
|
-
|
|
31
|
-
children: [
|
|
32
|
-
{
|
|
33
|
-
path: '',
|
|
34
|
-
component: EntriesComponent,
|
|
35
|
-
data: { keep: true }
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
path: 'create',
|
|
39
|
-
component: CreateComponent,
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
path: ':entrieId/edit',
|
|
43
|
-
component: EditComponent,
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
path: '',
|
|
49
|
-
children: [
|
|
50
|
-
{
|
|
51
|
-
path: 'fields',
|
|
52
|
-
children: [
|
|
53
|
-
{
|
|
54
|
-
path: '',
|
|
55
|
-
component: FieldsComponent,
|
|
56
|
-
data: { keep: true }
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
path: 'create',
|
|
60
|
-
component: CreateFieldComponent,
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
path: ':id/edit',
|
|
64
|
-
component: EditFieldComponent,
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
// {
|
|
69
|
-
// path: 'sites',
|
|
70
|
-
// component: SitesComponent,
|
|
71
|
-
// data: { keep: true }
|
|
72
|
-
// },
|
|
73
|
-
{
|
|
74
|
-
path: 'sections',
|
|
75
|
-
children: [
|
|
76
|
-
{
|
|
77
|
-
path: '',
|
|
78
|
-
data: { keep: true },
|
|
79
|
-
component: SectionsComponent,
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
path: ':sectionsId/entry-types',
|
|
83
|
-
children: [
|
|
84
|
-
{
|
|
85
|
-
path: 'create',
|
|
86
|
-
component: CreateOrEditComponent,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
path: ':entryTypesId/edit',
|
|
90
|
-
component: CreateOrEditComponent,
|
|
91
|
-
},
|
|
92
|
-
],
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
},
|
|
100
|
-
];
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
@NgModule({
|
|
104
|
-
imports: [RouterModule.forChild(routes)],
|
|
105
|
-
exports: [RouterModule],
|
|
106
|
-
})
|
|
107
|
-
export class CmsRoutingModule {
|
|
108
|
-
}
|
package/src/lib/cms.module.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { NgModule, NgModuleFactory, ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { CoreModule, LazyModuleFactory } from '@abp/ng.core';
|
|
3
|
-
import { ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
4
|
-
import { CmsRoutingModule } from './cms-routing.module';
|
|
5
|
-
import {
|
|
6
|
-
CreateComponent,
|
|
7
|
-
CreateFieldComponent,
|
|
8
|
-
CreateOrEditComponent,
|
|
9
|
-
CreateOrEditEntriesComponent,
|
|
10
|
-
CreateOrEditFieldComponent,
|
|
11
|
-
EditComponent,
|
|
12
|
-
EditFieldComponent,
|
|
13
|
-
EntriesComponent,
|
|
14
|
-
FieldGroupComponent,
|
|
15
|
-
FieldsComponent,
|
|
16
|
-
SectionsComponent,
|
|
17
|
-
// SitesComponent,
|
|
18
|
-
MatrixConfigComponent,
|
|
19
|
-
MatrixControlComponent,
|
|
20
|
-
TableConfigComponent,
|
|
21
|
-
TableControlComponent,
|
|
22
|
-
EntryConfigComponent,
|
|
23
|
-
EntryControlComponent,
|
|
24
|
-
FieldControlGroup
|
|
25
|
-
} from './components';
|
|
26
|
-
import {
|
|
27
|
-
NgbDropdownModule,
|
|
28
|
-
NgbNavModule,
|
|
29
|
-
NgbAccordionModule,
|
|
30
|
-
} from '@ng-bootstrap/ng-bootstrap';
|
|
31
|
-
import { FormsModule } from '@angular/forms';
|
|
32
|
-
import { PageModule } from '@abp/ng.components/page';
|
|
33
|
-
import { CMS_TOOLBAR_ACTION_CONTRIBUTORS } from './toolbar';
|
|
34
|
-
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
35
|
-
import { DynamicFormModule } from '@dignite-ng/expand.dynamic-form';
|
|
36
|
-
import { fielFieldControlGroup } from '@dignite-ng/expand.file-explorer';
|
|
37
|
-
import { ckEditorFieldControlGroup } from '@dignite-ng/expand.ck-editor';
|
|
38
|
-
import { DomainsComponent } from './components/admin/domains/domains.component';
|
|
39
|
-
import { SettingTabsService } from '@abp/ng.setting-management/config';
|
|
40
|
-
|
|
41
|
-
@NgModule({
|
|
42
|
-
declarations: [
|
|
43
|
-
EntriesComponent,
|
|
44
|
-
FieldsComponent,
|
|
45
|
-
// SitesComponent,
|
|
46
|
-
SectionsComponent,
|
|
47
|
-
FieldGroupComponent,
|
|
48
|
-
CreateFieldComponent,
|
|
49
|
-
EditFieldComponent,
|
|
50
|
-
CreateOrEditFieldComponent,
|
|
51
|
-
CreateOrEditComponent,
|
|
52
|
-
CreateComponent,
|
|
53
|
-
EditComponent,
|
|
54
|
-
CreateOrEditEntriesComponent,
|
|
55
|
-
TableConfigComponent,
|
|
56
|
-
TableControlComponent,
|
|
57
|
-
MatrixConfigComponent,
|
|
58
|
-
MatrixControlComponent,
|
|
59
|
-
EntryConfigComponent,
|
|
60
|
-
EntryControlComponent,
|
|
61
|
-
DomainsComponent,
|
|
62
|
-
],
|
|
63
|
-
imports: [
|
|
64
|
-
CoreModule,
|
|
65
|
-
ThemeSharedModule,
|
|
66
|
-
CmsRoutingModule,
|
|
67
|
-
FormsModule,
|
|
68
|
-
NgbNavModule,
|
|
69
|
-
NgbAccordionModule,
|
|
70
|
-
NgbDropdownModule,
|
|
71
|
-
PageModule,
|
|
72
|
-
NzSelectModule,
|
|
73
|
-
DynamicFormModule.forRoot({
|
|
74
|
-
cmsFieldControlGroup: [...FieldControlGroup, ...fielFieldControlGroup, ...ckEditorFieldControlGroup]
|
|
75
|
-
}),
|
|
76
|
-
],
|
|
77
|
-
exports: [
|
|
78
|
-
TableConfigComponent,
|
|
79
|
-
TableControlComponent,
|
|
80
|
-
MatrixConfigComponent,
|
|
81
|
-
MatrixControlComponent,
|
|
82
|
-
EntryConfigComponent,
|
|
83
|
-
EntryControlComponent,
|
|
84
|
-
DomainsComponent
|
|
85
|
-
],
|
|
86
|
-
providers: [
|
|
87
|
-
],
|
|
88
|
-
|
|
89
|
-
})
|
|
90
|
-
export class CmsModule {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
static forChild(options: any = {}): ModuleWithProviders<CmsModule> {
|
|
95
|
-
return {
|
|
96
|
-
ngModule: CmsModule,
|
|
97
|
-
providers: [
|
|
98
|
-
{
|
|
99
|
-
provide: CMS_TOOLBAR_ACTION_CONTRIBUTORS,
|
|
100
|
-
useValue: options.toolbarActionContributors,
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
static forLazy(options: any = {}): NgModuleFactory<CmsModule> {
|
|
106
|
-
return new LazyModuleFactory(CmsModule.forChild(options));
|
|
107
|
-
}
|
|
108
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<form [formGroup]="newEntity" (ngSubmit)="SaveSubmit()">
|
|
2
|
-
|
|
3
|
-
<div class="d-flex align-items-center justify-content-between">
|
|
4
|
-
<h2>{{'Cms::Domain'|abpLocalization}}</h2>
|
|
5
|
-
<button class="btn btn-primary btn-sm" type="submit"><i
|
|
6
|
-
class="me-1 fas fa-save"></i>{{'AbpUi::Save'|abpLocalization}}</button>
|
|
7
|
-
</div>
|
|
8
|
-
<hr class="my-3" />
|
|
9
|
-
<div class="mb-2">
|
|
10
|
-
<!-- <label class="form-label" for="title">{{'Cms::Domain' | abpLocalization}}</label> -->
|
|
11
|
-
<input type="text" class="form-control" formControlName="domainName">
|
|
12
|
-
<div class="text-danger invalid-feedback" *ngIf="domainNameInput.errors?.repetition">
|
|
13
|
-
{{domainNameInput.errors?.repetition}}
|
|
14
|
-
</div>
|
|
15
|
-
<div class="form-text">此处是填写域名的描述,需要一个字段统一配置域名多语言,</div>
|
|
16
|
-
|
|
17
|
-
</div>
|
|
18
|
-
<hr class="my-3" />
|
|
19
|
-
</form>
|
|
File without changes
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { DomainsComponent } from './domains.component';
|
|
4
|
-
|
|
5
|
-
describe('DomainsComponent', () => {
|
|
6
|
-
let component: DomainsComponent;
|
|
7
|
-
let fixture: ComponentFixture<DomainsComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
TestBed.configureTestingModule({
|
|
11
|
-
declarations: [DomainsComponent]
|
|
12
|
-
});
|
|
13
|
-
fixture = TestBed.createComponent(DomainsComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { Component, inject } from '@angular/core';
|
|
2
|
-
import { AbstractControl, FormControl, FormGroup, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { DomainAdminService } from '../../../proxy/admin/domains';
|
|
5
|
-
import { LocalizationService } from '@abp/ng.core';
|
|
6
|
-
import { ToasterService } from '@abp/ng.theme.shared';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
selector: 'cms-domains',
|
|
10
|
-
templateUrl: './domains.component.html',
|
|
11
|
-
styleUrls: ['./domains.component.scss']
|
|
12
|
-
})
|
|
13
|
-
export class DomainsComponent {
|
|
14
|
-
|
|
15
|
-
private toaster = inject(ToasterService)
|
|
16
|
-
private _DomainAdminService = inject(DomainAdminService);
|
|
17
|
-
private _LocalizationService = inject(LocalizationService);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/**表单实体 */
|
|
22
|
-
newEntity: FormGroup | undefined;
|
|
23
|
-
|
|
24
|
-
/**domain详情 */
|
|
25
|
-
domainInfo:any=''
|
|
26
|
-
get domainNameInput() {
|
|
27
|
-
return this.newEntity.get('domainName')
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
async ngOnInit(): Promise<void> {
|
|
31
|
-
//Called after the constructor, initializing input properties, and the first call to ngOnChanges.
|
|
32
|
-
//Add 'implements OnInit' to the class.
|
|
33
|
-
|
|
34
|
-
this.newEntity = new FormGroup({
|
|
35
|
-
domainName: new FormControl('', {
|
|
36
|
-
asyncValidators: this.repetitionAsyncValidator(),
|
|
37
|
-
updateOn: 'blur'
|
|
38
|
-
})
|
|
39
|
-
})
|
|
40
|
-
await this.getDomainsBound()
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**用于获取已绑定的域名 */
|
|
45
|
-
getDomainsBound(){
|
|
46
|
-
return new Promise((resolve,rejects)=>{
|
|
47
|
-
this._DomainAdminService.getBound().subscribe(res=>{
|
|
48
|
-
this.domainNameInput.patchValue(res?.domainName||'')
|
|
49
|
-
this.domainInfo=res
|
|
50
|
-
resolve(res)
|
|
51
|
-
})
|
|
52
|
-
})
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
//检验域名是否已经绑定
|
|
56
|
-
repetitionAsyncValidator() {
|
|
57
|
-
return (ctrl: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => {
|
|
58
|
-
return new Promise(resolve => {
|
|
59
|
-
let domainNameInput = this.domainNameInput.value
|
|
60
|
-
if (!domainNameInput) {
|
|
61
|
-
resolve(null);
|
|
62
|
-
return
|
|
63
|
-
}
|
|
64
|
-
if (this.domainInfo?.domainName===domainNameInput) {
|
|
65
|
-
resolve(null);
|
|
66
|
-
return
|
|
67
|
-
}
|
|
68
|
-
var patt = /^(?!-)[A-Za-z0-9-]{1,63}(?<!-)\.[A-Za-z]{2,6}$/;
|
|
69
|
-
if(!patt.test(domainNameInput)){
|
|
70
|
-
|
|
71
|
-
resolve({ repetition: this._LocalizationService.instant(`AbpValidation::ThisFieldMustMatchTheRegularExpression{0}`, patt.toString()) });
|
|
72
|
-
console.log(this.newEntity,'newEntity');
|
|
73
|
-
return
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
this._DomainAdminService.nameExists(domainNameInput).subscribe(res => {
|
|
78
|
-
if (res) {
|
|
79
|
-
resolve({ repetition: this._LocalizationService.instant(`Cms::DomainName{0}AlreadyExist`, ctrl.value) });
|
|
80
|
-
} else {
|
|
81
|
-
resolve(null);
|
|
82
|
-
}
|
|
83
|
-
})
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**保存 */
|
|
89
|
-
SaveSubmit() {
|
|
90
|
-
let input = this.newEntity.value
|
|
91
|
-
console.log(input, '保存');
|
|
92
|
-
this._DomainAdminService.update(input).subscribe(async(res)=>{
|
|
93
|
-
this.toaster.success(this._LocalizationService.instant(`AbpUi::保存成功`));
|
|
94
|
-
await this.getDomainsBound()
|
|
95
|
-
})
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './domains.component'
|