@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
package/src/lib/proxy/index.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as Admin from './admin';
|
|
2
|
-
import * as Dignite from './dignite';
|
|
3
|
-
import * as Entries from './entries';
|
|
4
|
-
import * as Fields from './fields';
|
|
5
|
-
import * as Microsoft from './microsoft';
|
|
6
|
-
import * as Sections from './sections';
|
|
7
|
-
import * as Settings from './settings';
|
|
8
|
-
import * as Volo from './volo';
|
|
9
|
-
export { Admin, Dignite, Entries, Fields, Microsoft, Sections, Settings, Volo };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './models';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { EntityTagHeaderValue } from '../../net/http/headers/models';
|
|
2
|
-
|
|
3
|
-
export interface ActionResult {
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface FileResult extends ActionResult {
|
|
7
|
-
contentType?: string;
|
|
8
|
-
fileDownloadName?: string;
|
|
9
|
-
lastModified?: string;
|
|
10
|
-
entityTag: EntityTagHeaderValue;
|
|
11
|
-
enableRangeProcessing: boolean;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './models';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './models';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { FieldDtoConfig } from '../fields/models';
|
|
2
|
-
|
|
3
|
-
export interface EntryFieldDto {
|
|
4
|
-
fieldId?: string;
|
|
5
|
-
field: FieldDtoConfig;
|
|
6
|
-
displayName?: string;
|
|
7
|
-
required: boolean;
|
|
8
|
-
showOnList: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface EntryFieldTabDto {
|
|
12
|
-
name?: string;
|
|
13
|
-
fields: EntryFieldDto[];
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './models';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './models';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './models';
|
package/src/lib/proxy.zip
DELETED
|
Binary file
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Renderer2, RendererFactory2, inject } from "@angular/core";
|
|
2
|
-
import styles from "../constants/styles";
|
|
3
|
-
let isAppentStyle = false
|
|
4
|
-
export function appentStyle() {
|
|
5
|
-
/**确保该路由守卫只会执行一次 */
|
|
6
|
-
if (isAppentStyle) return
|
|
7
|
-
isAppentStyle = true
|
|
8
|
-
const rendererFactory = inject(RendererFactory2);
|
|
9
|
-
let renderer: Renderer2=rendererFactory.createRenderer(null, null)
|
|
10
|
-
const style = renderer.createElement('style');
|
|
11
|
-
renderer.setProperty(style, 'innerHTML', styles);
|
|
12
|
-
renderer.appendChild(document.head, style);
|
|
13
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { Title } from '@angular/platform-browser';
|
|
3
|
-
import { pinyin } from 'pinyin-pro';
|
|
4
|
-
|
|
5
|
-
@Injectable({
|
|
6
|
-
providedIn: 'root'
|
|
7
|
-
})
|
|
8
|
-
export class CmsApiService {
|
|
9
|
-
|
|
10
|
-
constructor(
|
|
11
|
-
private titleService: Title,
|
|
12
|
-
) { }
|
|
13
|
-
/**动态设置浏览器标题 */
|
|
14
|
-
setBrowserTitle(title:string){
|
|
15
|
-
this.titleService.setTitle(title)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 识别中文转化为拼音,固定返回类型
|
|
21
|
-
* 汉字转拼音
|
|
22
|
-
* 大写转小写
|
|
23
|
-
*
|
|
24
|
-
* */
|
|
25
|
-
chineseToPinyin(value: any) {
|
|
26
|
-
//去除字符串中所有的空格
|
|
27
|
-
// let val = value
|
|
28
|
-
let val = value.replaceAll(' ', "-")
|
|
29
|
-
let array = val.split('')
|
|
30
|
-
let newArray = []
|
|
31
|
-
array.forEach((el: any, index: any) => {
|
|
32
|
-
//转化为小写
|
|
33
|
-
let elChange = el.toLowerCase()
|
|
34
|
-
let isChinese = (str) => {
|
|
35
|
-
return /^[\u4e00-\u9fa5]+$/.test(str);
|
|
36
|
-
}
|
|
37
|
-
if (isChinese(elChange)) {
|
|
38
|
-
const resultWithoutTone = pinyin(elChange, { toneType: 'none', type: 'array' });
|
|
39
|
-
elChange = resultWithoutTone.toString()
|
|
40
|
-
if (index < array.length - 1) elChange+='-'
|
|
41
|
-
};
|
|
42
|
-
newArray.push(elChange)
|
|
43
|
-
});
|
|
44
|
-
let pinyinstr = newArray.join('')
|
|
45
|
-
return pinyinstr || val
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* 深拷贝--方法 */
|
|
51
|
-
deepClone(obj) {
|
|
52
|
-
if (typeof obj !== 'object' || obj === null) return obj;
|
|
53
|
-
const result = Array.isArray(obj) ? [] : {};
|
|
54
|
-
for (let key in obj) {
|
|
55
|
-
if (obj.hasOwnProperty(key)) {
|
|
56
|
-
if (typeof obj[key] === 'object' && obj[key] !== null) {
|
|
57
|
-
if (obj[key] instanceof Date) {
|
|
58
|
-
result[key] = new Date(obj[key].getTime());
|
|
59
|
-
} else if (obj[key] instanceof RegExp) {
|
|
60
|
-
result[key] = new RegExp(obj[key]);
|
|
61
|
-
} else {
|
|
62
|
-
result[key] = this.deepClone(obj[key]);
|
|
63
|
-
}
|
|
64
|
-
} else {
|
|
65
|
-
result[key] = obj[key];
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return result;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { RestService } from '@abp/ng.core';
|
|
3
|
-
|
|
4
|
-
@Injectable({
|
|
5
|
-
providedIn: 'root',
|
|
6
|
-
})
|
|
7
|
-
export class CmsService {
|
|
8
|
-
apiName = 'Cms';
|
|
9
|
-
|
|
10
|
-
constructor(private restService: RestService) {}
|
|
11
|
-
|
|
12
|
-
sample() {
|
|
13
|
-
return this.restService.request<void, any>(
|
|
14
|
-
{ method: 'GET', url: '/api/Cms/sample' },
|
|
15
|
-
{ apiName: this.apiName }
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { FieldGroupAdminService } from '../proxy/admin/fields/field-group-admin.service';
|
|
3
|
-
import { FieldGroupDto } from '../proxy/admin/fields/models';
|
|
4
|
-
import { FormAdminService } from '../proxy/admin/dynamic-forms';
|
|
5
|
-
|
|
6
|
-
@Injectable({
|
|
7
|
-
providedIn: 'root'
|
|
8
|
-
})
|
|
9
|
-
export class FieldAbstractsService {
|
|
10
|
-
|
|
11
|
-
constructor(
|
|
12
|
-
private _FieldGroupAdminService: FieldGroupAdminService,
|
|
13
|
-
private _FormAdminService: FormAdminService,
|
|
14
|
-
) { }
|
|
15
|
-
/**字段分组列表 */
|
|
16
|
-
fieldGroupList: FieldGroupDto[] = []
|
|
17
|
-
/**获取字段分组列表 */
|
|
18
|
-
getfieldGroupList() {
|
|
19
|
-
this._FieldGroupAdminService.getList({}).subscribe(res => {
|
|
20
|
-
this.fieldGroupList = res.items
|
|
21
|
-
})
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**表单控件类型 */
|
|
25
|
-
fromControlList: any[] = []
|
|
26
|
-
/**获取表单控件类型 */
|
|
27
|
-
getFromControlList() {
|
|
28
|
-
return new Promise((resolve, reject) => {
|
|
29
|
-
this._FormAdminService.getFormControls({}).subscribe(res => {
|
|
30
|
-
this.fromControlList = res.items
|
|
31
|
-
resolve(res.items)
|
|
32
|
-
})
|
|
33
|
-
})
|
|
34
|
-
}
|
|
35
|
-
getExcludeAssignControl(typeName?) {
|
|
36
|
-
// return this.fromControlList.filter(el => el.name !== typeName)
|
|
37
|
-
return this.fromControlList
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { RouteReuseStrategy, ActivatedRouteSnapshot, DetachedRouteHandle } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
export class SimpleReuseStrategy implements RouteReuseStrategy {
|
|
5
|
-
|
|
6
|
-
public handlers: { [key: string]: DetachedRouteHandle } = {};
|
|
7
|
-
//表示对路由允许复用
|
|
8
|
-
shouldDetach(route: ActivatedRouteSnapshot): boolean {
|
|
9
|
-
//默认对所有路由复用 可通过给路由配置项增加data: { keep: true }来进行选择性使用,代码如下
|
|
10
|
-
//如果是懒加载路由需要在生命组件的位置进行配置
|
|
11
|
-
if (!route.data.keep) {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
return true;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
//当路由离开时会触发。按path作为key存储路由快照&组件当前实例对象
|
|
18
|
-
store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle): void {
|
|
19
|
-
const key = route.component.name
|
|
20
|
-
if (key) {
|
|
21
|
-
this.handlers[key] = handle;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
//若path在缓存中有的都认为允许还原路由
|
|
26
|
-
shouldAttach(route: ActivatedRouteSnapshot): boolean {
|
|
27
|
-
if (route.component?.name) {
|
|
28
|
-
return !!this.handlers[route.component?.name]
|
|
29
|
-
}
|
|
30
|
-
return false
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// 从缓存中获取快照,若无则返回null
|
|
34
|
-
retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle | null {
|
|
35
|
-
if (!route.routeConfig) return null;
|
|
36
|
-
//在loadChildren路径上通过修改自定义RouteReuseStrategy中的检索函数时从不检索分离的路由。
|
|
37
|
-
if (route.routeConfig.loadChildren) return null;
|
|
38
|
-
if (route.component?.name) {
|
|
39
|
-
return this.handlers[route.component?.name];
|
|
40
|
-
}
|
|
41
|
-
return null
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
//进入路由触发,判断是否同一路由
|
|
45
|
-
shouldReuseRoute(future: ActivatedRouteSnapshot, current: ActivatedRouteSnapshot): boolean {
|
|
46
|
-
return future.routeConfig === current.routeConfig;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, Injectable } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Injectable({
|
|
4
|
-
providedIn: 'root'
|
|
5
|
-
})
|
|
6
|
-
export class UpdateListService {
|
|
7
|
-
|
|
8
|
-
public updateListEvent: EventEmitter<any> = new EventEmitter();
|
|
9
|
-
|
|
10
|
-
constructor() { }
|
|
11
|
-
|
|
12
|
-
updateList() {
|
|
13
|
-
this.updateListEvent.emit();
|
|
14
|
-
}
|
|
15
|
-
}
|
package/src/lib/toolbar/index.ts
DELETED
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { ToolbarAction } from '@abp/ng.theme.shared/extensions';
|
|
2
|
-
import {
|
|
3
|
-
SectionsComponent,
|
|
4
|
-
CreateOrEditComponent,
|
|
5
|
-
SitesComponent,
|
|
6
|
-
FieldsComponent,
|
|
7
|
-
CreateFieldComponent,
|
|
8
|
-
EditFieldComponent,
|
|
9
|
-
EntriesComponent,
|
|
10
|
-
CreateComponent,
|
|
11
|
-
EditComponent,
|
|
12
|
-
} from '../components';
|
|
13
|
-
|
|
14
|
-
/**版块 */
|
|
15
|
-
export const Sections_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
16
|
-
{
|
|
17
|
-
text: 'Cms::New',
|
|
18
|
-
action: data => {
|
|
19
|
-
const component = data.getInjected(SectionsComponent);
|
|
20
|
-
component.createSectionBtn();
|
|
21
|
-
},
|
|
22
|
-
btnClass: '',
|
|
23
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
24
|
-
icon: 'fa fa-plus',
|
|
25
|
-
},
|
|
26
|
-
]);
|
|
27
|
-
/**版块-创建-编辑 */
|
|
28
|
-
export const Sections_Create_Or_Edit_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
29
|
-
{
|
|
30
|
-
text: 'AbpUi::Save',
|
|
31
|
-
action: data => {
|
|
32
|
-
const component = data.getInjected(CreateOrEditComponent);
|
|
33
|
-
component.submitclickBtn();
|
|
34
|
-
},
|
|
35
|
-
btnClass: '',
|
|
36
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
37
|
-
icon: 'fas fa-save',
|
|
38
|
-
},
|
|
39
|
-
]);
|
|
40
|
-
/**站点 */
|
|
41
|
-
// export const Sites_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
42
|
-
// {
|
|
43
|
-
// text: 'Cms::New',
|
|
44
|
-
// action: data => {
|
|
45
|
-
// const component = data.getInjected(SitesComponent);
|
|
46
|
-
// // component.createSitesBtn();
|
|
47
|
-
// },
|
|
48
|
-
// btnClass: '',
|
|
49
|
-
// permission: 'CmsAdmin.Entry.Create',
|
|
50
|
-
// icon: 'fa fa-plus',
|
|
51
|
-
// },
|
|
52
|
-
// ]);
|
|
53
|
-
/**字段 */
|
|
54
|
-
export const Fields_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
55
|
-
{
|
|
56
|
-
text: 'Cms::New',
|
|
57
|
-
action: data => {
|
|
58
|
-
const component = data.getInjected(FieldsComponent);
|
|
59
|
-
component.toFieldsCreateBtn();
|
|
60
|
-
},
|
|
61
|
-
btnClass: '',
|
|
62
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
63
|
-
icon: 'fa fa-plus',
|
|
64
|
-
},
|
|
65
|
-
]);
|
|
66
|
-
/**字段-创建 */
|
|
67
|
-
export const Fields_Create_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
68
|
-
{
|
|
69
|
-
text: 'AbpUi::Save',
|
|
70
|
-
action: data => {
|
|
71
|
-
const component = data.getInjected(CreateFieldComponent);
|
|
72
|
-
component.submitclickBtn();
|
|
73
|
-
},
|
|
74
|
-
btnClass: '',
|
|
75
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
76
|
-
icon: 'fas fa-save',
|
|
77
|
-
},
|
|
78
|
-
]);
|
|
79
|
-
/**字段-创建 */
|
|
80
|
-
export const Fields_Edit_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
81
|
-
{
|
|
82
|
-
text: 'AbpUi::Save',
|
|
83
|
-
action: data => {
|
|
84
|
-
const component = data.getInjected(EditFieldComponent);
|
|
85
|
-
component.submitclickBtn();
|
|
86
|
-
},
|
|
87
|
-
btnClass: '',
|
|
88
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
89
|
-
icon: 'fas fa-save',
|
|
90
|
-
},
|
|
91
|
-
]);
|
|
92
|
-
|
|
93
|
-
/**条目 */
|
|
94
|
-
export const Entries_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
95
|
-
{
|
|
96
|
-
text: 'Cms::New',
|
|
97
|
-
action: data => {
|
|
98
|
-
const component = data.getInjected(EntriesComponent);
|
|
99
|
-
component.createEntriesBtn();
|
|
100
|
-
},
|
|
101
|
-
btnClass: '',
|
|
102
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
103
|
-
icon: 'fa fa-plus',
|
|
104
|
-
},
|
|
105
|
-
]);
|
|
106
|
-
/**条目-创建 */
|
|
107
|
-
export const Entries_Create_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
108
|
-
{
|
|
109
|
-
text: 'AbpUi::Cancel',
|
|
110
|
-
action: data => {
|
|
111
|
-
const component = data.getInjected(CreateComponent);
|
|
112
|
-
component.backTo();
|
|
113
|
-
},
|
|
114
|
-
btnClass: 'btn btn-light btn-sm',
|
|
115
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
116
|
-
icon: '',
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
text: 'AbpUi::Save',
|
|
120
|
-
action: data => {
|
|
121
|
-
const component = data.getInjected(CreateComponent);
|
|
122
|
-
component.clickSubmit(true);
|
|
123
|
-
},
|
|
124
|
-
btnClass: 'btn btn-info btn-sm',
|
|
125
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
126
|
-
icon: 'fas fa-save',
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
text: 'Cms::Publish',
|
|
130
|
-
action: data => {
|
|
131
|
-
const component = data.getInjected(CreateComponent);
|
|
132
|
-
component.clickSubmit(false);
|
|
133
|
-
},
|
|
134
|
-
btnClass: '',
|
|
135
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
136
|
-
icon: 'fa fa-paper-plane',
|
|
137
|
-
},
|
|
138
|
-
]);
|
|
139
|
-
/**条目编辑 */
|
|
140
|
-
export const Entries_Edit_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
141
|
-
{
|
|
142
|
-
text: 'AbpUi::Cancel',
|
|
143
|
-
action: data => {
|
|
144
|
-
const component = data.getInjected(EditComponent);
|
|
145
|
-
component.backTo();
|
|
146
|
-
},
|
|
147
|
-
btnClass: 'btn btn-light btn-sm',
|
|
148
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
149
|
-
icon: '',
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
text: 'AbpUi::Save',
|
|
153
|
-
action: data => {
|
|
154
|
-
const component = data.getInjected(EditComponent);
|
|
155
|
-
component.clickSubmit(true);
|
|
156
|
-
},
|
|
157
|
-
btnClass: 'btn btn-info btn-sm',
|
|
158
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
159
|
-
icon: 'fas fa-save',
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
text: 'Cms::Publish',
|
|
163
|
-
action: data => {
|
|
164
|
-
const component = data.getInjected(EditComponent);
|
|
165
|
-
component.clickSubmit(false);
|
|
166
|
-
},
|
|
167
|
-
btnClass: '',
|
|
168
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
169
|
-
icon: 'fa fa-paper-plane',
|
|
170
|
-
},
|
|
171
|
-
]);
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { ConfigStateService } from "@abp/ng.core";
|
|
2
|
-
import { ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions } from "@abp/ng.theme.shared/extensions";
|
|
3
|
-
import { InjectionToken, inject } from "@angular/core";
|
|
4
|
-
import { ResolveFn } from "@angular/router";
|
|
5
|
-
import { map, tap } from "rxjs";
|
|
6
|
-
import { ECmsComponent } from "../enums";
|
|
7
|
-
import { Entries_Defaults_Toolbar_Action, Entries_Create_Defaults_Toolbar_Action, Entries_Edit_Defaults_Toolbar_Action, Fields_Defaults_Toolbar_Action, Fields_Create_Defaults_Toolbar_Action, Fields_Edit_Defaults_Toolbar_Action, Sections_Defaults_Toolbar_Action, Sections_Create_Or_Edit_Defaults_Toolbar_Action } from "./toolbar-btn-default-action";
|
|
8
|
-
|
|
9
|
-
export const ActionGroup = {
|
|
10
|
-
Entries: Entries_Defaults_Toolbar_Action,
|
|
11
|
-
Entries_Create: Entries_Create_Defaults_Toolbar_Action,
|
|
12
|
-
Entries_Edit: Entries_Edit_Defaults_Toolbar_Action,
|
|
13
|
-
Fields: Fields_Defaults_Toolbar_Action,
|
|
14
|
-
FieldsCreate: Fields_Create_Defaults_Toolbar_Action,
|
|
15
|
-
FieldsEdit: Fields_Edit_Defaults_Toolbar_Action,
|
|
16
|
-
Sections: Sections_Defaults_Toolbar_Action,
|
|
17
|
-
SectionsCreateOrEdit: Sections_Create_Or_Edit_Defaults_Toolbar_Action,
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const setCmsAction = () => {
|
|
21
|
-
let Cms_Default = {};
|
|
22
|
-
for (const iterator in ECmsComponent) {
|
|
23
|
-
Cms_Default[ECmsComponent[iterator]] = ActionGroup[iterator];
|
|
24
|
-
}
|
|
25
|
-
return Cms_Default;
|
|
26
|
-
};
|
|
27
|
-
/**用于路由守卫增加工具栏按钮 */
|
|
28
|
-
export const Cms_Default_Toolbar_Actions = setCmsAction();
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @param 在identityExtensionsResolver方法中使用
|
|
33
|
-
*
|
|
34
|
-
* @param 在cms.module.ts中使用,
|
|
35
|
-
export class CmsModule {
|
|
36
|
-
static forChild(options: any = {}): ModuleWithProviders<CmsModule> {
|
|
37
|
-
return {
|
|
38
|
-
ngModule: CmsModule,
|
|
39
|
-
providers: [
|
|
40
|
-
{
|
|
41
|
-
provide: CMS_TOOLBAR_ACTION_CONTRIBUTORS,
|
|
42
|
-
useValue: options.toolbarActionContributors,
|
|
43
|
-
// useValue: identityToolbarActionContributors,
|
|
44
|
-
},
|
|
45
|
-
// IdentityExtensionsGuard,
|
|
46
|
-
]
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
static forLazy(options: any = {}): NgModuleFactory<CmsModule> {
|
|
50
|
-
return new LazyModuleFactory(CmsModule.forChild(options));
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
56
|
-
export const CMS_TOOLBAR_ACTION_CONTRIBUTORS = new InjectionToken<any>(
|
|
57
|
-
'CMS_TOOLBAR_ACTION_CONTRIBUTORS'
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
/**用于放在cms-routing.module.ts路由守卫中
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
const routes: Routes = [
|
|
64
|
-
{
|
|
65
|
-
path: 'demo',
|
|
66
|
-
canActivate: [AuthGuard, PermissionGuard],
|
|
67
|
-
resolve: [identityExtensionsResolver],
|
|
68
|
-
children: []
|
|
69
|
-
},
|
|
70
|
-
]
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
export const CmsExtensionsResolver: ResolveFn<any> = () => {
|
|
75
|
-
const configState = inject(ConfigStateService);
|
|
76
|
-
const extensions = inject(ExtensionsService);
|
|
77
|
-
const config = { optional: true };
|
|
78
|
-
const toolbarContributors = inject(CMS_TOOLBAR_ACTION_CONTRIBUTORS, config) || {};
|
|
79
|
-
return getObjectExtensionEntitiesFromStore(configState, 'Cms').pipe(
|
|
80
|
-
map(entities => ({
|
|
81
|
-
// [ECmseComponents.UsePage]: entities.Role,
|
|
82
|
-
// [eIdentityComponents.Users]: entities.User,
|
|
83
|
-
})),
|
|
84
|
-
mapEntitiesToContributors(configState, 'Cms'),
|
|
85
|
-
tap(objectExtensionContributors => {
|
|
86
|
-
mergeWithDefaultActions(
|
|
87
|
-
extensions.toolbarActions,
|
|
88
|
-
Cms_Default_Toolbar_Actions,
|
|
89
|
-
toolbarContributors
|
|
90
|
-
);
|
|
91
|
-
})
|
|
92
|
-
);
|
|
93
|
-
};
|
package/src/test.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
|
2
|
-
|
|
3
|
-
import 'zone.js';
|
|
4
|
-
import 'zone.js/testing';
|
|
5
|
-
import { getTestBed } from '@angular/core/testing';
|
|
6
|
-
import {
|
|
7
|
-
BrowserDynamicTestingModule,
|
|
8
|
-
platformBrowserDynamicTesting
|
|
9
|
-
} from '@angular/platform-browser-dynamic/testing';
|
|
10
|
-
|
|
11
|
-
declare const require: {
|
|
12
|
-
context(path: string, deep?: boolean, filter?: RegExp): {
|
|
13
|
-
keys(): string[];
|
|
14
|
-
<T>(id: string): T;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
// First, initialize the Angular testing environment.
|
|
19
|
-
getTestBed().initTestEnvironment(
|
|
20
|
-
BrowserDynamicTestingModule,
|
|
21
|
-
platformBrowserDynamicTesting()
|
|
22
|
-
);
|
|
23
|
-
// Then we find all the tests.
|
|
24
|
-
const context = require.context('./', true, /\.spec\.ts$/);
|
|
25
|
-
// And load the modules.
|
|
26
|
-
context.keys().map(context);
|