@dignite-ng/expand.cms 0.0.52 → 0.0.54
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/components/domains/domains.component.d.ts +29 -0
- package/config/components/site-language/site-language.component.d.ts +29 -0
- package/config/{src/enums/index.ts → enums/index.d.ts} +1 -1
- package/config/enums/route-names.d.ts +8 -0
- package/config/index.d.ts +5 -0
- package/config/{src/providers/index.ts → providers/index.d.ts} +1 -1
- package/config/providers/route.provider.d.ts +9 -0
- package/config/proxy/admin/domains/domain-admin.service.d.ts +13 -0
- package/config/{src/proxy/dignite/cms/admin/domains/models.ts → proxy/admin/domains/models.d.ts} +7 -9
- package/config/proxy/dignite/cms/admin/sites/models.d.ts +4 -0
- package/config/proxy/dignite/cms/admin/sites/site-admin.service.d.ts +13 -0
- package/config/proxy/dignite/cms/sites/models.d.ts +4 -0
- package/config/{src/public-api.ts → public-api.d.ts} +3 -3
- package/config/services/validators.service.d.ts +16 -0
- package/esm2022/config/cms-config.module.mjs +18 -0
- package/esm2022/config/components/domains/domains.component.mjs +102 -0
- package/esm2022/config/components/site-language/site-language.component.mjs +105 -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 +10 -0
- package/esm2022/config/providers/index.mjs +2 -0
- package/esm2022/config/providers/route.provider.mjs +74 -0
- package/esm2022/config/proxy/admin/domains/domain-admin.service.mjs +32 -0
- package/esm2022/config/proxy/admin/domains/index.mjs +3 -0
- package/esm2022/config/proxy/admin/domains/models.mjs +2 -0
- package/esm2022/config/proxy/dignite/cms/admin/sites/index.mjs +3 -0
- package/esm2022/config/proxy/dignite/cms/admin/sites/models.mjs +2 -0
- package/esm2022/config/proxy/dignite/cms/admin/sites/site-admin.service.mjs +27 -0
- package/esm2022/config/proxy/dignite/cms/sites/models.mjs +2 -0
- package/esm2022/config/public-api.mjs +4 -0
- package/esm2022/config/services/validators.service.mjs +83 -0
- package/esm2022/dignite-ng-expand.cms.mjs +5 -0
- package/esm2022/lib/cms-routing.module.mjs +94 -0
- package/esm2022/lib/cms.module.mjs +133 -0
- package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +303 -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 +110 -0
- package/esm2022/lib/components/admin/entries/edit.component.mjs +110 -0
- package/esm2022/lib/components/admin/entries/entries.component.mjs +199 -0
- package/esm2022/lib/components/admin/entries/index.mjs +5 -0
- package/esm2022/lib/components/admin/fields/create-field.component.mjs +80 -0
- package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +114 -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 +103 -0
- package/esm2022/lib/components/admin/fields/field-group.component.mjs +131 -0
- package/esm2022/lib/components/admin/fields/fields.component.mjs +108 -0
- package/esm2022/lib/components/admin/fields/index.mjs +7 -0
- package/esm2022/lib/components/admin/index.mjs +4 -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 +389 -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 +292 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +112 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +18 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +105 -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 +214 -0
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +50 -0
- package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +98 -0
- package/esm2022/lib/components/dynamic-form/table/index.mjs +4 -0
- package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +151 -0
- package/esm2022/lib/components/dynamic-form/table/table-config.mjs +38 -0
- package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +105 -0
- package/esm2022/lib/components/index.mjs +3 -0
- package/esm2022/lib/constants/styles.mjs +21 -0
- package/esm2022/lib/enums/ecms-component.mjs +13 -0
- package/esm2022/lib/enums/index.mjs +2 -0
- package/esm2022/lib/proxy/admin/dynamic-forms/form-admin.service.mjs +22 -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 +70 -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 +45 -0
- package/esm2022/lib/proxy/admin/fields/field-group-admin.service.mjs +41 -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 +41 -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 +51 -0
- package/esm2022/lib/proxy/admin/settings/index.mjs +2 -0
- package/esm2022/lib/proxy/admin/settings/site-settings-admin.service.mjs +31 -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/resolvers/extensions-props-action-token.resolver.mjs +136 -0
- package/esm2022/lib/resolvers/page-default-toolbar-actions.mjs +160 -0
- package/esm2022/lib/resolvers/table-default-entity-actions.mjs +49 -0
- package/esm2022/lib/resolvers/table-default-entity-props.mjs +54 -0
- package/esm2022/lib/services/appent-content.mjs +15 -0
- package/esm2022/lib/services/cms-api.service.mjs +70 -0
- package/esm2022/lib/services/cms.service.mjs +21 -0
- package/esm2022/lib/services/field-abstracts.service.mjs +42 -0
- package/esm2022/lib/services/index.mjs +4 -0
- package/esm2022/lib/services/validators.service.mjs +83 -0
- package/esm2022/public-api.mjs +6 -0
- package/fesm2022/dignite-ng-expand.cms-config.mjs +426 -0
- package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -0
- package/fesm2022/dignite-ng-expand.cms.mjs +3932 -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/entries/create-or-edit-entries.component.d.ts +96 -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 +47 -0
- package/lib/components/admin/entries/edit.component.d.ts +47 -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 +37 -0
- package/lib/components/admin/fields/create-or-edit-field.component.d.ts +38 -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 +46 -0
- package/lib/components/admin/fields/field-group.component.d.ts +58 -0
- package/lib/components/admin/fields/fields.component.d.ts +35 -0
- package/lib/components/admin/fields/index.d.ts +6 -0
- package/lib/components/admin/index.d.ts +3 -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 +138 -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 +64 -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/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/resolvers/extensions-props-action-token.resolver.d.ts +75 -0
- package/lib/resolvers/page-default-toolbar-actions.d.ts +18 -0
- package/lib/resolvers/table-default-entity-actions.d.ts +5 -0
- package/lib/resolvers/table-default-entity-props.d.ts +5 -0
- package/lib/services/appent-content.d.ts +1 -0
- package/lib/services/cms-api.service.d.ts +16 -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 +3 -0
- package/lib/services/validators.service.d.ts +15 -0
- package/package.json +22 -7
- package/{src/public-api.ts → public-api.d.ts} +2 -6
- package/config/ng-package.json +0 -6
- package/config/src/cms-config.module.ts +0 -12
- package/config/src/components/domains/domains.component.html +0 -17
- package/config/src/components/domains/domains.component.scss +0 -0
- package/config/src/components/domains/domains.component.spec.ts +0 -21
- package/config/src/components/domains/domains.component.ts +0 -109
- package/config/src/components/site-language/site-language.component.html +0 -31
- package/config/src/components/site-language/site-language.component.scss +0 -0
- package/config/src/components/site-language/site-language.component.spec.ts +0 -21
- package/config/src/components/site-language/site-language.component.ts +0 -117
- package/config/src/enums/route-names.ts +0 -8
- package/config/src/providers/route.provider.ts +0 -82
- package/config/src/proxy/admin/domains/domain-admin.service.ts +0 -38
- package/config/src/proxy/admin/domains/models.ts +0 -9
- package/config/src/proxy/dignite/abp/data/index.ts +0 -1
- package/config/src/proxy/dignite/abp/data/models.ts +0 -4
- package/config/src/proxy/dignite/abp/index.ts +0 -2
- package/config/src/proxy/dignite/cms/admin/domains/domain-admin.service.ts +0 -47
- package/config/src/proxy/dignite/cms/admin/domains/index.ts +0 -2
- package/config/src/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.ts +0 -21
- package/config/src/proxy/dignite/cms/admin/dynamic-forms/models.ts +0 -5
- package/config/src/proxy/dignite/cms/admin/entries/entry-admin.service.ts +0 -109
- package/config/src/proxy/dignite/cms/admin/entries/models.ts +0 -68
- package/config/src/proxy/dignite/cms/admin/fields/field-admin.service.ts +0 -64
- package/config/src/proxy/dignite/cms/admin/fields/field-group-admin.service.ts +0 -56
- package/config/src/proxy/dignite/cms/admin/fields/models.ts +0 -42
- package/config/src/proxy/dignite/cms/admin/index.ts +0 -7
- package/config/src/proxy/dignite/cms/admin/sections/entry-type-admin.service.ts +0 -55
- package/config/src/proxy/dignite/cms/admin/sections/models.ts +0 -81
- package/config/src/proxy/dignite/cms/admin/sections/section-admin.service.ts +0 -74
- package/config/src/proxy/dignite/cms/admin/sites/models.ts +0 -5
- package/config/src/proxy/dignite/cms/admin/sites/site-admin.service.ts +0 -30
- package/config/src/proxy/dignite/cms/entries/entry-status.enum.ts +0 -8
- package/config/src/proxy/dignite/cms/fields/index.ts +0 -1
- package/config/src/proxy/dignite/cms/fields/models.ts +0 -9
- package/config/src/proxy/dignite/cms/index.ts +0 -6
- package/config/src/proxy/dignite/cms/sections/models.ts +0 -14
- package/config/src/proxy/dignite/cms/sections/section-type.enum.ts +0 -9
- package/config/src/proxy/dignite/cms/sites/index.ts +0 -1
- package/config/src/proxy/dignite/cms/sites/models.ts +0 -5
- package/config/src/proxy/dignite/cms-kit/admin/brand/brand-admin.service.ts +0 -21
- package/config/src/proxy/dignite/cms-kit/admin/brand/index.ts +0 -2
- package/config/src/proxy/dignite/cms-kit/admin/brand/models.ts +0 -7
- package/config/src/proxy/dignite/cms-kit/admin/index.ts +0 -2
- package/config/src/proxy/dignite/cms-kit/brand/brand.service.ts +0 -20
- package/config/src/proxy/dignite/cms-kit/brand/index.ts +0 -2
- package/config/src/proxy/dignite/cms-kit/brand/models.ts +0 -7
- package/config/src/proxy/dignite/cms-kit/index.ts +0 -3
- package/config/src/proxy/dignite/file-explorer/directories/file-descriptor.service.ts +0 -65
- package/config/src/proxy/dignite/file-explorer/directories/index.ts +0 -2
- package/config/src/proxy/dignite/file-explorer/directories/models.ts +0 -35
- package/config/src/proxy/dignite/file-explorer/files/file-descriptor.service.ts +0 -101
- package/config/src/proxy/dignite/file-explorer/files/index.ts +0 -2
- package/config/src/proxy/dignite/file-explorer/files/models.ts +0 -61
- package/config/src/proxy/dignite/file-explorer/index.ts +0 -3
- package/config/src/proxy/dignite/index.ts +0 -6
- package/config/src/proxy/dignite/travely/areas/index.ts +0 -1
- package/config/src/proxy/dignite/travely/areas/models.ts +0 -5
- package/config/src/proxy/dignite/travely/common/index.ts +0 -1
- package/config/src/proxy/dignite/travely/common/models.ts +0 -5
- package/config/src/proxy/dignite/travely/entity-snapshots/index.ts +0 -1
- package/config/src/proxy/dignite/travely/entity-snapshots/models.ts +0 -7
- package/config/src/proxy/dignite/travely/guides/index.ts +0 -1
- package/config/src/proxy/dignite/travely/guides/models.ts +0 -26
- package/config/src/proxy/dignite/travely/index.ts +0 -9
- package/config/src/proxy/dignite/travely/merchants/index.ts +0 -1
- package/config/src/proxy/dignite/travely/merchants/models.ts +0 -9
- package/config/src/proxy/dignite/travely/orders/index.ts +0 -1
- package/config/src/proxy/dignite/travely/orders/models.ts +0 -52
- package/config/src/proxy/dignite/travely/payment/index.ts +0 -1
- package/config/src/proxy/dignite/travely/payment/models.ts +0 -9
- package/config/src/proxy/dignite/travely/tours/booking-time-type.enum.ts +0 -9
- package/config/src/proxy/dignite/travely/tours/index.ts +0 -5
- package/config/src/proxy/dignite/travely/tours/models.ts +0 -77
- package/config/src/proxy/dignite/travely/tours/period-type.enum.ts +0 -9
- package/config/src/proxy/dignite/travely/tours/tour-recommendation-rank.enum.ts +0 -12
- package/config/src/proxy/dignite/travely/tours/tourist-type.enum.ts +0 -8
- package/config/src/proxy/microsoft/asp-net-core/index.ts +0 -2
- package/config/src/proxy/microsoft/asp-net-core/mvc/index.ts +0 -1
- package/config/src/proxy/microsoft/asp-net-core/mvc/models.ts +0 -12
- package/config/src/proxy/microsoft/extensions/index.ts +0 -2
- package/config/src/proxy/microsoft/extensions/primitives/index.ts +0 -1
- package/config/src/proxy/microsoft/extensions/primitives/models.ts +0 -9
- package/config/src/proxy/microsoft/index.ts +0 -4
- package/config/src/proxy/microsoft/net/http/headers/index.ts +0 -1
- package/config/src/proxy/microsoft/net/http/headers/models.ts +0 -7
- package/config/src/proxy/microsoft/net/http/index.ts +0 -2
- package/config/src/proxy/microsoft/net/index.ts +0 -2
- package/config/src/services/validators.service.ts +0 -80
- package/ng-package.json +0 -10
- package/src/lib/cms-routing.module.ts +0 -102
- package/src/lib/cms.module.ts +0 -109
- package/src/lib/components/admin/entries/create-or-edit-entries.component.html +0 -137
- 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 -318
- 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 -110
- 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 -111
- 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 -216
- package/src/lib/components/admin/entries/index.ts +0 -4
- package/src/lib/components/admin/fields/create-field.component.html +0 -12
- package/src/lib/components/admin/fields/create-field.component.scss +0 -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 -82
- package/src/lib/components/admin/fields/create-or-edit-field.component.html +0 -40
- 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 -121
- 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 -16
- 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 -101
- 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 -151
- 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 -109
- package/src/lib/components/admin/fields/index.ts +0 -6
- package/src/lib/components/admin/index.ts +0 -3
- package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +0 -32
- 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 -187
- 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 -424
- 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 -188
- 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 -302
- 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 -27
- 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 -114
- 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 -111
- 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 -148
- 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 -239
- 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 -106
- 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 -114
- package/src/lib/components/index.ts +0 -2
- package/src/lib/constants/index.ts +0 -1
- package/src/lib/constants/styles.ts +0 -20
- 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/domains/index.ts +0 -2
- package/src/lib/proxy/admin/domains/models.ts +0 -9
- package/src/lib/proxy/admin/dynamic-forms/form-admin.service.ts +0 -21
- package/src/lib/proxy/admin/dynamic-forms/index.ts +0 -2
- 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/index.ts +0 -2
- 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/fields/index.ts +0 -3
- 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/index.ts +0 -3
- 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/entries/index.ts +0 -1
- 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/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/resolvers/extensions-props-action-token.resolver.ts +0 -178
- package/src/lib/resolvers/page-default-toolbar-actions.ts +0 -170
- package/src/lib/resolvers/table-default-entity-actions.ts +0 -24
- package/src/lib/resolvers/table-default-entity-props.ts +0 -36
- 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 -74
- package/src/lib/services/update-list.service.ts +0 -15
- package/src/lib/services/validators.service.ts +0 -82
- package/src/test.ts +0 -26
- package/tsconfig.lib.json +0 -16
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
- /package/config/{src/proxy/admin/domains/index.ts → proxy/admin/domains/index.d.ts} +0 -0
- /package/config/{src/proxy/dignite/cms/admin/sites/index.ts → proxy/dignite/cms/admin/sites/index.d.ts} +0 -0
- /package/{config/src/proxy/dignite/cms/admin/dynamic-forms/index.ts → lib/proxy/admin/dynamic-forms/index.d.ts} +0 -0
- /package/{config/src/proxy/dignite/cms/admin/entries/index.ts → lib/proxy/admin/entries/index.d.ts} +0 -0
- /package/{config/src/proxy/dignite/cms/admin/fields/index.ts → lib/proxy/admin/fields/index.d.ts} +0 -0
- /package/{config/src/proxy/dignite/cms/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/{config/src/proxy/dignite/cms/entries/index.ts → lib/proxy/entries/index.d.ts} +0 -0
- /package/{config/src/proxy/dignite/cms/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';
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps } from "@abp/ng.components/extensible";
|
|
2
|
-
import { ConfigStateService } from "@abp/ng.core";
|
|
3
|
-
import { inject, InjectionToken } from "@angular/core";
|
|
4
|
-
import { ResolveFn } from "@angular/router";
|
|
5
|
-
import { map, tap } from "rxjs";
|
|
6
|
-
import { ECmsComponent } from "../enums";
|
|
7
|
-
import { Entries_Create_Defaults_Toolbar_Action, Entries_Defaults_Toolbar_Action, Entries_Edit_Defaults_Toolbar_Action, Fields_Create_Defaults_Toolbar_Action, Fields_Defaults_Toolbar_Action, Fields_Edit_Defaults_Toolbar_Action, Sections_Create_Or_Edit_Defaults_Toolbar_Action, Sections_Defaults_Toolbar_Action } from "./page-default-toolbar-actions";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/**默认-实体-操作 */
|
|
15
|
-
export const Default_Entity_Actions = {
|
|
16
|
-
// [ModuleComponent.AbpTable]: Abp_Table_Entity_Action,
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/**默认实体属性-表格列名 */
|
|
20
|
-
export const Default_Entity_Props = {
|
|
21
|
-
// [PageName.Guides]: Guides_Entity_Props,
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/**默认-工具栏-操作 */
|
|
25
|
-
export const Default_Toolbar_Actions = {
|
|
26
|
-
// [ModuleComponent.Page]: Page_Toolbar_Action,
|
|
27
|
-
// [eCmsKitPageName.FaqQuestion]:FaqQuestion_Toolbar_Action
|
|
28
|
-
[ECmsComponent.Entries]: Entries_Defaults_Toolbar_Action,
|
|
29
|
-
[ECmsComponent.Entries_Create]: Entries_Create_Defaults_Toolbar_Action,
|
|
30
|
-
[ECmsComponent.Entries_Edit]: Entries_Edit_Defaults_Toolbar_Action,
|
|
31
|
-
[ECmsComponent.Fields]: Fields_Defaults_Toolbar_Action,
|
|
32
|
-
[ECmsComponent.FieldsCreate]: Fields_Create_Defaults_Toolbar_Action,
|
|
33
|
-
[ECmsComponent.FieldsEdit]: Fields_Edit_Defaults_Toolbar_Action,
|
|
34
|
-
[ECmsComponent.Sections]: Sections_Defaults_Toolbar_Action,
|
|
35
|
-
[ECmsComponent.SectionsCreateOrEdit]: Sections_Create_Or_Edit_Defaults_Toolbar_Action,
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @param 在Extensions_Props_Action_Token_Resolver方法中使用
|
|
42
|
-
* @param 在.module.ts中使用,
|
|
43
|
-
export class CmsModule {
|
|
44
|
-
static forChild(options: any = {}): ModuleWithProviders<CmsModule> {
|
|
45
|
-
return {
|
|
46
|
-
ngModule: CmsModule,
|
|
47
|
-
providers: [
|
|
48
|
-
{
|
|
49
|
-
provide: Toolbar_Action_Contributors,
|
|
50
|
-
useValue: options.toolbarActionContributors,
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
provide: Entity_Action_Contributors,
|
|
54
|
-
useValue: options.entityActionContributors,
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
provide: Entity_Props_Contributors,
|
|
58
|
-
useValue: options.entityPropContributors,
|
|
59
|
-
},
|
|
60
|
-
]
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
static forLazy(options: any = {}): NgModuleFactory<CmsModule> {
|
|
64
|
-
return new LazyModuleFactory(CmsModule.forChild(options));
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*/
|
|
70
|
-
/**实体-操作-贡献者 */
|
|
71
|
-
export const Entity_Action_Contributors =
|
|
72
|
-
new InjectionToken<any>('Entity_Action_Contributors');
|
|
73
|
-
|
|
74
|
-
/**实体-属性-贡献者 */
|
|
75
|
-
export const Entity_Props_Contributors =
|
|
76
|
-
new InjectionToken<any>('Entity_Props_Contributors');
|
|
77
|
-
|
|
78
|
-
export const Toolbar_Action_Contributors = new InjectionToken<any>(
|
|
79
|
-
'Toolbar_Action_Contributors'
|
|
80
|
-
);
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* 属性-操作-贡献者-解析器
|
|
84
|
-
*
|
|
85
|
-
* 用于放在-routing.module.ts路由守卫中
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
const routes: Routes = [
|
|
89
|
-
{
|
|
90
|
-
path: 'demo',
|
|
91
|
-
canActivate: [AuthGuard, PermissionGuard],
|
|
92
|
-
resolve: [Extensions_Props_Action_Token_Resolver],
|
|
93
|
-
children: []
|
|
94
|
-
},
|
|
95
|
-
]
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*/
|
|
99
|
-
|
|
100
|
-
export const Extensions_Props_Action_Token_Resolver: ResolveFn<any> = () => {
|
|
101
|
-
const configState = inject(ConfigStateService);
|
|
102
|
-
const extensions = inject(ExtensionsService);
|
|
103
|
-
|
|
104
|
-
const config = { optional: true };
|
|
105
|
-
|
|
106
|
-
const actionContributors = inject(Entity_Action_Contributors, config) || {};
|
|
107
|
-
const propContributors = inject(Entity_Props_Contributors, config) || {};
|
|
108
|
-
const toolbarContributors = inject(Toolbar_Action_Contributors, config) || {};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
return getObjectExtensionEntitiesFromStore(configState, 'TenantManagement').pipe(
|
|
112
|
-
map(entities => ({
|
|
113
|
-
// [ModuleComponent.AbpTable]: entities.Tenant,
|
|
114
|
-
})),
|
|
115
|
-
mapEntitiesToContributors(configState, 'TenantManagement'),
|
|
116
|
-
tap(objectExtensionContributors => {
|
|
117
|
-
//actions
|
|
118
|
-
mergeWithDefaultActions(
|
|
119
|
-
extensions.entityActions,
|
|
120
|
-
Default_Entity_Actions,
|
|
121
|
-
actionContributors,
|
|
122
|
-
);
|
|
123
|
-
//props
|
|
124
|
-
mergeWithDefaultProps(
|
|
125
|
-
extensions.entityProps,
|
|
126
|
-
Default_Entity_Props,
|
|
127
|
-
objectExtensionContributors.prop,
|
|
128
|
-
propContributors,
|
|
129
|
-
);
|
|
130
|
-
//Toolbar
|
|
131
|
-
mergeWithDefaultActions(
|
|
132
|
-
extensions.toolbarActions,
|
|
133
|
-
Default_Toolbar_Actions,
|
|
134
|
-
toolbarContributors
|
|
135
|
-
);
|
|
136
|
-
|
|
137
|
-
}),
|
|
138
|
-
);
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
// /**
|
|
143
|
-
// * @deprecated Use `tenantManagementExtensions_Props_Action_Token_Resolver` *function* instead.
|
|
144
|
-
// */
|
|
145
|
-
// @Injectable()
|
|
146
|
-
// export class TenantManagementExtensionsGuard implements IAbpGuard {
|
|
147
|
-
// protected readonly configState = inject(ConfigStateService);
|
|
148
|
-
// protected readonly extensions = inject(ExtensionsService);
|
|
149
|
-
|
|
150
|
-
// canActivate(): Observable<boolean> {
|
|
151
|
-
// const config = { optional: true };
|
|
152
|
-
|
|
153
|
-
// const actionContributors = inject(TENANT_MANAGEMENT_Entity_Action_Contributors, config) || {};
|
|
154
|
-
// const propContributors = inject(TENANT_MANAGEMENT_Entity_Props_Contributors, config) || {};
|
|
155
|
-
|
|
156
|
-
// return getObjectExtensionEntitiesFromStore(this.configState, 'TenantManagement').pipe(
|
|
157
|
-
// map(entities => ({
|
|
158
|
-
// // [eTenantManagementComponents.Tenants]: entities.Tenant,
|
|
159
|
-
// })),
|
|
160
|
-
// mapEntitiesToContributors(this.configState, 'TenantManagement'),
|
|
161
|
-
// tap(objectExtensionContributors => {
|
|
162
|
-
// mergeWithDefaultActions(
|
|
163
|
-
// this.extensions.entityActions,
|
|
164
|
-
// DEFAULT_TENANT_MANAGEMENT_ENTITY_ACTIONS,
|
|
165
|
-
// actionContributors,
|
|
166
|
-
// );
|
|
167
|
-
// mergeWithDefaultProps(
|
|
168
|
-
// this.extensions.entityProps,
|
|
169
|
-
// DEFAULT_TENANT_MANAGEMENT_ENTITY_PROPS,
|
|
170
|
-
// objectExtensionContributors.prop,
|
|
171
|
-
// propContributors,
|
|
172
|
-
// );
|
|
173
|
-
// }),
|
|
174
|
-
// map(() => true),
|
|
175
|
-
// );
|
|
176
|
-
// }
|
|
177
|
-
// }
|
|
178
|
-
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { ToolbarAction } from '@abp/ng.components/extensible';
|
|
2
|
-
import {
|
|
3
|
-
SectionsComponent,
|
|
4
|
-
CreateOrEditComponent,
|
|
5
|
-
FieldsComponent,
|
|
6
|
-
CreateFieldComponent,
|
|
7
|
-
EditFieldComponent,
|
|
8
|
-
EntriesComponent,
|
|
9
|
-
CreateComponent,
|
|
10
|
-
EditComponent,
|
|
11
|
-
} from '../components';
|
|
12
|
-
|
|
13
|
-
/**版块 */
|
|
14
|
-
export const Sections_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
15
|
-
{
|
|
16
|
-
text: 'Cms::New',
|
|
17
|
-
action: data => {
|
|
18
|
-
const component = data.getInjected(SectionsComponent);
|
|
19
|
-
component.createSectionBtn();
|
|
20
|
-
},
|
|
21
|
-
btnClass: '',
|
|
22
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
23
|
-
icon: 'fa fa-plus',
|
|
24
|
-
},
|
|
25
|
-
]);
|
|
26
|
-
/**版块-创建-编辑 */
|
|
27
|
-
export const Sections_Create_Or_Edit_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
28
|
-
{
|
|
29
|
-
text: 'AbpUi::Save',
|
|
30
|
-
action: data => {
|
|
31
|
-
const component = data.getInjected(CreateOrEditComponent);
|
|
32
|
-
component.submitclickBtn();
|
|
33
|
-
},
|
|
34
|
-
btnClass: '',
|
|
35
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
36
|
-
icon: 'fas fa-save',
|
|
37
|
-
},
|
|
38
|
-
]);
|
|
39
|
-
/**站点 */
|
|
40
|
-
// export const Sites_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
41
|
-
// {
|
|
42
|
-
// text: 'Cms::New',
|
|
43
|
-
// action: data => {
|
|
44
|
-
// const component = data.getInjected(SitesComponent);
|
|
45
|
-
// // component.createSitesBtn();
|
|
46
|
-
// },
|
|
47
|
-
// btnClass: '',
|
|
48
|
-
// permission: 'CmsAdmin.Entry.Create',
|
|
49
|
-
// icon: 'fa fa-plus',
|
|
50
|
-
// },
|
|
51
|
-
// ]);
|
|
52
|
-
/**字段 */
|
|
53
|
-
export const Fields_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
54
|
-
{
|
|
55
|
-
text: 'Cms::New',
|
|
56
|
-
action: data => {
|
|
57
|
-
const component = data.getInjected(FieldsComponent);
|
|
58
|
-
component.toFieldsCreateBtn();
|
|
59
|
-
},
|
|
60
|
-
btnClass: '',
|
|
61
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
62
|
-
icon: 'fa fa-plus',
|
|
63
|
-
},
|
|
64
|
-
]);
|
|
65
|
-
/**字段-创建 */
|
|
66
|
-
export const Fields_Create_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
67
|
-
{
|
|
68
|
-
text: 'AbpUi::Save',
|
|
69
|
-
action: data => {
|
|
70
|
-
const component = data.getInjected(CreateFieldComponent);
|
|
71
|
-
component.submitclickBtn();
|
|
72
|
-
},
|
|
73
|
-
btnClass: '',
|
|
74
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
75
|
-
icon: 'fas fa-save',
|
|
76
|
-
},
|
|
77
|
-
]);
|
|
78
|
-
/**字段-创建 */
|
|
79
|
-
export const Fields_Edit_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
80
|
-
{
|
|
81
|
-
text: 'AbpUi::Save',
|
|
82
|
-
action: data => {
|
|
83
|
-
const component = data.getInjected(EditFieldComponent);
|
|
84
|
-
component.submitclickBtn();
|
|
85
|
-
},
|
|
86
|
-
btnClass: '',
|
|
87
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
88
|
-
icon: 'fas fa-save',
|
|
89
|
-
},
|
|
90
|
-
]);
|
|
91
|
-
|
|
92
|
-
/**条目 */
|
|
93
|
-
export const Entries_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
94
|
-
{
|
|
95
|
-
text: 'Cms::New',
|
|
96
|
-
action: data => {
|
|
97
|
-
const component = data.getInjected(EntriesComponent);
|
|
98
|
-
component.createEntriesBtn();
|
|
99
|
-
},
|
|
100
|
-
btnClass: '',
|
|
101
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
102
|
-
icon: 'fa fa-plus',
|
|
103
|
-
},
|
|
104
|
-
]);
|
|
105
|
-
/**条目-创建 */
|
|
106
|
-
export const Entries_Create_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
107
|
-
{
|
|
108
|
-
text: 'AbpUi::Cancel',
|
|
109
|
-
action: data => {
|
|
110
|
-
const component = data.getInjected(CreateComponent);
|
|
111
|
-
component.backTo();
|
|
112
|
-
},
|
|
113
|
-
btnClass: 'btn btn-light btn-sm',
|
|
114
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
115
|
-
icon: '',
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
text: 'AbpUi::Save',
|
|
119
|
-
action: data => {
|
|
120
|
-
const component = data.getInjected(CreateComponent);
|
|
121
|
-
component.clickSubmit(true);
|
|
122
|
-
},
|
|
123
|
-
btnClass: 'btn btn-info btn-sm',
|
|
124
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
125
|
-
icon: 'fas fa-save',
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
text: 'Cms::Publish',
|
|
129
|
-
action: data => {
|
|
130
|
-
const component = data.getInjected(CreateComponent);
|
|
131
|
-
component.clickSubmit(false);
|
|
132
|
-
},
|
|
133
|
-
btnClass: '',
|
|
134
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
135
|
-
icon: 'fa fa-paper-plane',
|
|
136
|
-
},
|
|
137
|
-
]);
|
|
138
|
-
/**条目编辑 */
|
|
139
|
-
export const Entries_Edit_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
|
|
140
|
-
{
|
|
141
|
-
text: 'AbpUi::Cancel',
|
|
142
|
-
action: data => {
|
|
143
|
-
const component = data.getInjected(EditComponent);
|
|
144
|
-
component.backTo();
|
|
145
|
-
},
|
|
146
|
-
btnClass: 'btn btn-light btn-sm',
|
|
147
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
148
|
-
icon: '',
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
text: 'AbpUi::Save',
|
|
152
|
-
action: data => {
|
|
153
|
-
const component = data.getInjected(EditComponent);
|
|
154
|
-
component.clickSubmit(true);
|
|
155
|
-
},
|
|
156
|
-
btnClass: 'btn btn-info btn-sm',
|
|
157
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
158
|
-
icon: 'fas fa-save',
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
text: 'Cms::Publish',
|
|
162
|
-
action: data => {
|
|
163
|
-
const component = data.getInjected(EditComponent);
|
|
164
|
-
component.clickSubmit(false);
|
|
165
|
-
},
|
|
166
|
-
btnClass: '',
|
|
167
|
-
permission: 'CmsAdmin.Entry.Create',
|
|
168
|
-
icon: 'fa fa-paper-plane',
|
|
169
|
-
},
|
|
170
|
-
]);
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { EntityAction } from "@abp/ng.components/extensible";
|
|
2
|
-
// import { AbpTableComponent } from "../view/table/abp-table.component";
|
|
3
|
-
|
|
4
|
-
// [PageName.Area]:Area_Entity_Action,
|
|
5
|
-
// export const Area_Entity_Action = EntityAction.createMany<any>([
|
|
6
|
-
// {
|
|
7
|
-
// text: 'AbpUi::Edit',
|
|
8
|
-
// action: data => {
|
|
9
|
-
// const component = data.getInjected(AreaComponent);
|
|
10
|
-
// // component.clickbtn({ data, type: 'edit' })
|
|
11
|
-
// component.createOrEditArea(data.record)
|
|
12
|
-
// },
|
|
13
|
-
// permission: 'TravelyAdmin.Area.Update',
|
|
14
|
-
// },
|
|
15
|
-
// {
|
|
16
|
-
// text: 'AbpUi::Delete',
|
|
17
|
-
// action: data => {
|
|
18
|
-
// const component = data.getInjected(AreaComponent);
|
|
19
|
-
// // component.clickbtn({ data, type: 'delete' })
|
|
20
|
-
// component.deleteArea(data.record)
|
|
21
|
-
// },
|
|
22
|
-
// permission: 'TravelyAdmin.Area.Delete',
|
|
23
|
-
// },
|
|
24
|
-
// ]);
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { EntityProp, ePropType } from '@abp/ng.components/extensible';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**[PageName.Area]: Area_Entity_Props,*/
|
|
5
|
-
// export const Area_Entity_Props = EntityProp.createMany<any>([
|
|
6
|
-
// {
|
|
7
|
-
// type: ePropType.String,
|
|
8
|
-
// name: 'name',
|
|
9
|
-
// displayName: 'Travely::名称',
|
|
10
|
-
// sortable: true,
|
|
11
|
-
// },
|
|
12
|
-
// ])
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
// PageName.Guides
|
|
19
|
-
// export const Guides_Entity_Props = EntityProp.createMany<any>([
|
|
20
|
-
// {
|
|
21
|
-
// type: ePropType.String,
|
|
22
|
-
// name: 'fullName',
|
|
23
|
-
// displayName: 'AbpTenantManagement::全称',
|
|
24
|
-
// sortable: true,
|
|
25
|
-
// // valueResolver: (data: any) => {
|
|
26
|
-
// // let sss = `<a href="/guides/${data.record.id}" class="underline-animate" title="${data.record.fullName}">${data.record.fullName}</a>`
|
|
27
|
-
// // return of(sss);
|
|
28
|
-
// // },
|
|
29
|
-
// action: data => {
|
|
30
|
-
// //EntriesComponent对应的工具栏页面
|
|
31
|
-
// console.log(111111, 'data',data);
|
|
32
|
-
|
|
33
|
-
// },
|
|
34
|
-
// },
|
|
35
|
-
|
|
36
|
-
// ]);
|
|
@@ -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
|
-
}
|