@dignite-ng/expand.cms 0.0.51 → 0.0.52
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/ng-package.json +6 -0
- package/config/src/cms-config.module.ts +12 -0
- package/config/src/components/domains/domains.component.html +17 -0
- package/config/src/components/domains/domains.component.scss +0 -0
- package/config/src/components/domains/domains.component.spec.ts +21 -0
- package/config/src/components/domains/domains.component.ts +109 -0
- package/config/src/components/site-language/site-language.component.html +31 -0
- package/config/src/components/site-language/site-language.component.scss +0 -0
- package/config/src/components/site-language/site-language.component.spec.ts +21 -0
- package/config/src/components/site-language/site-language.component.ts +117 -0
- package/config/{enums/index.d.ts → src/enums/index.ts} +1 -1
- package/config/src/enums/route-names.ts +8 -0
- package/config/{providers/index.d.ts → src/providers/index.ts} +1 -1
- package/config/src/providers/route.provider.ts +82 -0
- package/config/src/proxy/admin/domains/domain-admin.service.ts +38 -0
- package/config/{proxy/admin/domains/models.d.ts → src/proxy/admin/domains/models.ts} +9 -7
- package/config/src/proxy/dignite/abp/data/index.ts +1 -0
- package/config/src/proxy/dignite/abp/data/models.ts +4 -0
- package/config/src/proxy/dignite/abp/index.ts +2 -0
- package/config/src/proxy/dignite/cms/admin/domains/domain-admin.service.ts +47 -0
- package/config/src/proxy/dignite/cms/admin/domains/index.ts +2 -0
- package/config/src/proxy/dignite/cms/admin/domains/models.ts +9 -0
- package/config/src/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.ts +21 -0
- package/config/src/proxy/dignite/cms/admin/dynamic-forms/models.ts +5 -0
- package/config/src/proxy/dignite/cms/admin/entries/entry-admin.service.ts +109 -0
- package/config/src/proxy/dignite/cms/admin/entries/models.ts +68 -0
- package/config/src/proxy/dignite/cms/admin/fields/field-admin.service.ts +64 -0
- package/config/src/proxy/dignite/cms/admin/fields/field-group-admin.service.ts +56 -0
- package/config/src/proxy/dignite/cms/admin/fields/models.ts +42 -0
- package/config/src/proxy/dignite/cms/admin/index.ts +7 -0
- package/config/src/proxy/dignite/cms/admin/sections/entry-type-admin.service.ts +55 -0
- package/{lib/proxy/admin/sections/models.d.ts → config/src/proxy/dignite/cms/admin/sections/models.ts} +81 -67
- package/config/src/proxy/dignite/cms/admin/sections/section-admin.service.ts +74 -0
- package/config/src/proxy/dignite/cms/admin/sites/models.ts +5 -0
- package/config/src/proxy/dignite/cms/admin/sites/site-admin.service.ts +30 -0
- package/config/src/proxy/dignite/cms/entries/entry-status.enum.ts +8 -0
- package/config/src/proxy/dignite/cms/fields/index.ts +1 -0
- package/config/src/proxy/dignite/cms/fields/models.ts +9 -0
- package/config/src/proxy/dignite/cms/index.ts +6 -0
- package/config/src/proxy/dignite/cms/sections/models.ts +14 -0
- package/config/src/proxy/dignite/cms/sections/section-type.enum.ts +9 -0
- package/config/src/proxy/dignite/cms/sites/index.ts +1 -0
- package/config/src/proxy/dignite/cms/sites/models.ts +5 -0
- package/config/src/proxy/dignite/cms-kit/admin/brand/brand-admin.service.ts +21 -0
- package/config/src/proxy/dignite/cms-kit/admin/brand/index.ts +2 -0
- package/config/src/proxy/dignite/cms-kit/admin/brand/models.ts +7 -0
- package/config/src/proxy/dignite/cms-kit/admin/index.ts +2 -0
- package/config/src/proxy/dignite/cms-kit/brand/brand.service.ts +20 -0
- package/config/src/proxy/dignite/cms-kit/brand/index.ts +2 -0
- package/config/src/proxy/dignite/cms-kit/brand/models.ts +7 -0
- package/config/src/proxy/dignite/cms-kit/index.ts +3 -0
- package/config/src/proxy/dignite/file-explorer/directories/file-descriptor.service.ts +65 -0
- package/config/src/proxy/dignite/file-explorer/directories/index.ts +2 -0
- package/config/src/proxy/dignite/file-explorer/directories/models.ts +35 -0
- package/config/src/proxy/dignite/file-explorer/files/file-descriptor.service.ts +101 -0
- package/config/src/proxy/dignite/file-explorer/files/index.ts +2 -0
- package/config/src/proxy/dignite/file-explorer/files/models.ts +61 -0
- package/config/src/proxy/dignite/file-explorer/index.ts +3 -0
- package/config/src/proxy/dignite/index.ts +6 -0
- package/config/src/proxy/dignite/travely/areas/index.ts +1 -0
- package/config/src/proxy/dignite/travely/areas/models.ts +5 -0
- package/config/src/proxy/dignite/travely/common/index.ts +1 -0
- package/config/src/proxy/dignite/travely/common/models.ts +5 -0
- package/config/src/proxy/dignite/travely/entity-snapshots/index.ts +1 -0
- package/config/src/proxy/dignite/travely/entity-snapshots/models.ts +7 -0
- package/config/src/proxy/dignite/travely/guides/index.ts +1 -0
- package/config/src/proxy/dignite/travely/guides/models.ts +26 -0
- package/config/src/proxy/dignite/travely/index.ts +9 -0
- package/config/src/proxy/dignite/travely/merchants/index.ts +1 -0
- package/config/src/proxy/dignite/travely/merchants/models.ts +9 -0
- package/config/src/proxy/dignite/travely/orders/index.ts +1 -0
- package/config/src/proxy/dignite/travely/orders/models.ts +52 -0
- package/config/src/proxy/dignite/travely/payment/index.ts +1 -0
- package/config/src/proxy/dignite/travely/payment/models.ts +9 -0
- package/config/src/proxy/dignite/travely/tours/booking-time-type.enum.ts +9 -0
- package/config/src/proxy/dignite/travely/tours/index.ts +5 -0
- package/config/src/proxy/dignite/travely/tours/models.ts +77 -0
- package/config/src/proxy/dignite/travely/tours/period-type.enum.ts +9 -0
- package/config/src/proxy/dignite/travely/tours/tour-recommendation-rank.enum.ts +12 -0
- package/config/src/proxy/dignite/travely/tours/tourist-type.enum.ts +8 -0
- package/config/src/proxy/microsoft/asp-net-core/index.ts +2 -0
- package/config/src/proxy/microsoft/asp-net-core/mvc/index.ts +1 -0
- package/config/src/proxy/microsoft/asp-net-core/mvc/models.ts +12 -0
- package/config/src/proxy/microsoft/extensions/index.ts +2 -0
- package/config/src/proxy/microsoft/extensions/primitives/index.ts +1 -0
- package/config/src/proxy/microsoft/extensions/primitives/models.ts +9 -0
- package/config/src/proxy/microsoft/index.ts +4 -0
- package/config/src/proxy/microsoft/net/http/headers/index.ts +1 -0
- package/config/src/proxy/microsoft/net/http/headers/models.ts +7 -0
- package/config/src/proxy/microsoft/net/http/index.ts +2 -0
- package/config/src/proxy/microsoft/net/index.ts +2 -0
- package/config/{public-api.d.ts → src/public-api.ts} +3 -3
- package/config/src/services/validators.service.ts +80 -0
- package/ng-package.json +10 -0
- package/package.json +7 -22
- package/src/lib/cms-routing.module.ts +102 -0
- package/src/lib/cms.module.ts +109 -0
- package/src/lib/components/admin/entries/create-or-edit-entries.component.html +137 -0
- package/src/lib/components/admin/entries/create-or-edit-entries.component.scss +1 -0
- package/src/lib/components/admin/entries/create-or-edit-entries.component.spec.ts +21 -0
- package/src/lib/components/admin/entries/create-or-edit-entries.component.ts +318 -0
- package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +33 -0
- package/src/lib/components/admin/entries/create.component.html +13 -0
- package/src/lib/components/admin/entries/create.component.scss +1 -0
- package/src/lib/components/admin/entries/create.component.spec.ts +21 -0
- package/src/lib/components/admin/entries/create.component.ts +110 -0
- package/src/lib/components/admin/entries/edit.component.html +9 -0
- package/src/lib/components/admin/entries/edit.component.scss +1 -0
- package/src/lib/components/admin/entries/edit.component.spec.ts +21 -0
- package/src/lib/components/admin/entries/edit.component.ts +111 -0
- package/src/lib/components/admin/entries/entries.component.html +112 -0
- package/src/lib/components/admin/entries/entries.component.scss +1 -0
- package/src/lib/components/admin/entries/entries.component.spec.ts +21 -0
- package/src/lib/components/admin/entries/entries.component.ts +216 -0
- package/src/lib/components/admin/entries/index.ts +4 -0
- package/src/lib/components/admin/fields/create-field.component.html +12 -0
- package/src/lib/components/admin/fields/create-field.component.scss +1 -0
- package/src/lib/components/admin/fields/create-field.component.spec.ts +21 -0
- package/src/lib/components/admin/fields/create-field.component.ts +82 -0
- package/src/lib/components/admin/fields/create-or-edit-field.component.html +40 -0
- 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 +21 -0
- package/src/lib/components/admin/fields/create-or-edit-field.component.ts +121 -0
- package/src/lib/components/admin/fields/create-or-update-field-input-base.ts +33 -0
- package/src/lib/components/admin/fields/edit-field.component.html +16 -0
- package/src/lib/components/admin/fields/edit-field.component.scss +0 -0
- package/src/lib/components/admin/fields/edit-field.component.spec.ts +21 -0
- package/src/lib/components/admin/fields/edit-field.component.ts +101 -0
- package/src/lib/components/admin/fields/field-group.component.html +69 -0
- package/src/lib/components/admin/fields/field-group.component.scss +0 -0
- package/src/lib/components/admin/fields/field-group.component.spec.ts +21 -0
- package/src/lib/components/admin/fields/field-group.component.ts +151 -0
- package/src/lib/components/admin/fields/fields.component.html +74 -0
- package/src/lib/components/admin/fields/fields.component.scss +1 -0
- package/src/lib/components/admin/fields/fields.component.spec.ts +21 -0
- package/src/lib/components/admin/fields/fields.component.ts +109 -0
- package/src/lib/components/admin/fields/index.ts +6 -0
- package/src/lib/components/admin/index.ts +3 -0
- package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +32 -0
- package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts +79 -0
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.html +187 -0
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.scss +1 -0
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.spec.ts +21 -0
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.ts +424 -0
- package/src/lib/components/admin/sections/entry-types/index.ts +2 -0
- package/src/lib/components/admin/sections/index.ts +3 -0
- package/src/lib/components/admin/sections/sections.component.html +188 -0
- package/src/lib/components/admin/sections/sections.component.scss +1 -0
- package/src/lib/components/admin/sections/sections.component.spec.ts +21 -0
- package/src/lib/components/admin/sections/sections.component.ts +302 -0
- package/src/lib/components/dynamic-form/entry/entry-config.component.html +36 -0
- package/src/lib/components/dynamic-form/entry/entry-config.component.scss +27 -0
- package/src/lib/components/dynamic-form/entry/entry-config.component.spec.ts +21 -0
- package/src/lib/components/dynamic-form/entry/entry-config.component.ts +114 -0
- package/src/lib/components/dynamic-form/entry/entry-config.ts +24 -0
- package/src/lib/components/dynamic-form/entry/entry-control.component.html +26 -0
- package/src/lib/components/dynamic-form/entry/entry-control.component.scss +1 -0
- package/src/lib/components/dynamic-form/entry/entry-control.component.spec.ts +21 -0
- package/src/lib/components/dynamic-form/entry/entry-control.component.ts +111 -0
- package/src/lib/components/dynamic-form/entry/index.ts +3 -0
- package/src/lib/components/dynamic-form/form-control-group.ts +27 -0
- package/src/lib/components/dynamic-form/index.ts +4 -0
- package/src/lib/components/dynamic-form/matrix/index.ts +3 -0
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.html +148 -0
- 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 +21 -0
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.ts +239 -0
- package/src/lib/components/dynamic-form/matrix/matrix-config.ts +63 -0
- package/src/lib/components/dynamic-form/matrix/matrix-control.component.html +42 -0
- 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 +21 -0
- package/src/lib/components/dynamic-form/matrix/matrix-control.component.ts +106 -0
- package/src/lib/components/dynamic-form/table/index.ts +3 -0
- package/src/lib/components/dynamic-form/table/table-config.component.html +85 -0
- package/src/lib/components/dynamic-form/table/table-config.component.scss +10 -0
- package/src/lib/components/dynamic-form/table/table-config.component.spec.ts +21 -0
- package/src/lib/components/dynamic-form/table/table-config.component.ts +170 -0
- package/src/lib/components/dynamic-form/table/table-config.ts +45 -0
- package/src/lib/components/dynamic-form/table/table-control.component.html +54 -0
- package/src/lib/components/dynamic-form/table/table-control.component.scss +1 -0
- package/src/lib/components/dynamic-form/table/table-control.component.spec.ts +21 -0
- package/src/lib/components/dynamic-form/table/table-control.component.ts +114 -0
- package/src/lib/components/index.ts +2 -0
- package/src/lib/constants/index.ts +1 -0
- package/src/lib/constants/styles.ts +20 -0
- package/src/lib/enums/ecms-component.ts +11 -0
- package/src/lib/enums/index.ts +1 -0
- package/src/lib/proxy/README.md +17 -0
- package/src/lib/proxy/admin/domains/domain-admin.service.ts +38 -0
- package/src/lib/proxy/admin/domains/index.ts +2 -0
- package/src/lib/proxy/admin/domains/models.ts +9 -0
- package/src/lib/proxy/admin/dynamic-forms/form-admin.service.ts +21 -0
- package/src/lib/proxy/admin/dynamic-forms/index.ts +2 -0
- package/src/lib/proxy/admin/dynamic-forms/models.ts +5 -0
- package/src/lib/proxy/admin/entries/entry-admin.service.ts +109 -0
- package/src/lib/proxy/admin/entries/index.ts +2 -0
- package/src/lib/proxy/admin/entries/models.ts +68 -0
- package/src/lib/proxy/admin/fields/field-admin.service.ts +64 -0
- package/src/lib/proxy/admin/fields/field-group-admin.service.ts +56 -0
- package/src/lib/proxy/admin/fields/index.ts +3 -0
- package/{lib/proxy/admin/fields/models.d.ts → src/lib/proxy/admin/fields/models.ts} +42 -34
- package/src/lib/proxy/admin/index.ts +7 -0
- package/src/lib/proxy/admin/sections/entry-type-admin.service.ts +55 -0
- package/src/lib/proxy/admin/sections/index.ts +3 -0
- package/src/lib/proxy/admin/sections/models.ts +81 -0
- package/src/lib/proxy/admin/sections/section-admin.service.ts +74 -0
- package/src/lib/proxy/admin/settings/site-settings-admin.service.ts +37 -0
- package/src/lib/proxy/dignite/abp/data/index.ts +1 -0
- package/src/lib/proxy/dignite/abp/data/models.ts +4 -0
- package/src/lib/proxy/dignite/abp/index.ts +2 -0
- package/src/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.ts +65 -0
- package/src/lib/proxy/dignite/file-explorer/directories/index.ts +2 -0
- package/src/lib/proxy/dignite/file-explorer/directories/models.ts +35 -0
- package/src/lib/proxy/dignite/file-explorer/files/file-descriptor.service.ts +86 -0
- package/src/lib/proxy/dignite/file-explorer/files/index.ts +2 -0
- package/src/lib/proxy/dignite/file-explorer/files/models.ts +58 -0
- package/src/lib/proxy/dignite/file-explorer/index.ts +3 -0
- package/src/lib/proxy/dignite/index.ts +3 -0
- package/src/lib/proxy/entries/entry-status.enum.ts +8 -0
- package/src/lib/proxy/entries/index.ts +1 -0
- package/src/lib/proxy/fields/index.ts +1 -0
- package/src/lib/proxy/fields/models.ts +9 -0
- package/src/lib/proxy/generate-proxy.json +11425 -0
- package/src/lib/proxy/index.ts +9 -0
- package/src/lib/proxy/microsoft/asp-net-core/index.ts +2 -0
- package/src/lib/proxy/microsoft/asp-net-core/mvc/index.ts +1 -0
- package/src/lib/proxy/microsoft/asp-net-core/mvc/models.ts +12 -0
- package/src/lib/proxy/microsoft/extensions/index.ts +2 -0
- package/src/lib/proxy/microsoft/extensions/primitives/index.ts +1 -0
- package/src/lib/proxy/microsoft/extensions/primitives/models.ts +9 -0
- package/src/lib/proxy/microsoft/index.ts +4 -0
- package/src/lib/proxy/microsoft/net/http/headers/index.ts +1 -0
- package/src/lib/proxy/microsoft/net/http/headers/models.ts +7 -0
- package/src/lib/proxy/microsoft/net/http/index.ts +2 -0
- package/src/lib/proxy/microsoft/net/index.ts +2 -0
- package/src/lib/proxy/sections/index.ts +2 -0
- package/src/lib/proxy/sections/models.ts +14 -0
- package/src/lib/proxy/sections/section-type.enum.ts +9 -0
- package/src/lib/proxy/settings/index.ts +1 -0
- package/src/lib/proxy/settings/models.ts +6 -0
- package/src/lib/proxy/volo/abp/content/index.ts +1 -0
- package/src/lib/proxy/volo/abp/content/models.ts +6 -0
- package/src/lib/proxy/volo/abp/index.ts +2 -0
- package/src/lib/proxy/volo/cms-kit/index.ts +2 -0
- package/src/lib/proxy/volo/cms-kit/users/index.ts +1 -0
- package/{lib/proxy/volo/cms-kit/users/models.d.ts → src/lib/proxy/volo/cms-kit/users/models.ts} +8 -7
- package/src/lib/proxy/volo/index.ts +3 -0
- package/src/lib/resolvers/extensions-props-action-token.resolver.ts +178 -0
- package/src/lib/resolvers/page-default-toolbar-actions.ts +170 -0
- package/src/lib/resolvers/table-default-entity-actions.ts +24 -0
- package/src/lib/resolvers/table-default-entity-props.ts +36 -0
- package/src/lib/services/appent-content.ts +13 -0
- package/src/lib/services/cms-api.service.ts +71 -0
- package/src/lib/services/cms.service.ts +18 -0
- package/src/lib/services/field-abstracts.service.ts +40 -0
- package/src/lib/services/index.ts +4 -0
- package/src/lib/services/simple-reuse-strategy.ts +74 -0
- package/src/lib/services/update-list.service.ts +15 -0
- package/src/lib/services/validators.service.ts +82 -0
- package/{public-api.d.ts → src/public-api.ts} +6 -2
- package/src/test.ts +26 -0
- package/tsconfig.lib.json +16 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/config/cms-config.module.d.ts +0 -8
- package/config/components/domains/domains.component.d.ts +0 -29
- package/config/components/site-language/site-language.component.d.ts +0 -29
- package/config/enums/route-names.d.ts +0 -8
- package/config/index.d.ts +0 -5
- package/config/providers/route.provider.d.ts +0 -9
- package/config/proxy/admin/domains/domain-admin.service.d.ts +0 -13
- package/config/proxy/dignite/cms/admin/sites/models.d.ts +0 -4
- package/config/proxy/dignite/cms/admin/sites/site-admin.service.d.ts +0 -13
- package/config/proxy/dignite/cms/sites/models.d.ts +0 -4
- package/config/services/validators.service.d.ts +0 -16
- package/esm2022/config/cms-config.module.mjs +0 -18
- package/esm2022/config/components/domains/domains.component.mjs +0 -102
- package/esm2022/config/components/site-language/site-language.component.mjs +0 -108
- package/esm2022/config/dignite-ng-expand.cms-config.mjs +0 -5
- package/esm2022/config/enums/index.mjs +0 -2
- package/esm2022/config/enums/route-names.mjs +0 -10
- package/esm2022/config/providers/index.mjs +0 -2
- package/esm2022/config/providers/route.provider.mjs +0 -74
- package/esm2022/config/proxy/admin/domains/domain-admin.service.mjs +0 -32
- package/esm2022/config/proxy/admin/domains/index.mjs +0 -3
- package/esm2022/config/proxy/admin/domains/models.mjs +0 -2
- package/esm2022/config/proxy/dignite/cms/admin/sites/index.mjs +0 -3
- package/esm2022/config/proxy/dignite/cms/admin/sites/models.mjs +0 -2
- package/esm2022/config/proxy/dignite/cms/admin/sites/site-admin.service.mjs +0 -27
- package/esm2022/config/proxy/dignite/cms/sites/models.mjs +0 -2
- package/esm2022/config/public-api.mjs +0 -4
- package/esm2022/config/services/validators.service.mjs +0 -83
- package/esm2022/dignite-ng-expand.cms.mjs +0 -5
- package/esm2022/lib/cms-routing.module.mjs +0 -94
- package/esm2022/lib/cms.module.mjs +0 -130
- package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +0 -303
- package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +0 -32
- package/esm2022/lib/components/admin/entries/create.component.mjs +0 -108
- package/esm2022/lib/components/admin/entries/edit.component.mjs +0 -109
- package/esm2022/lib/components/admin/entries/entries.component.mjs +0 -198
- package/esm2022/lib/components/admin/entries/index.mjs +0 -5
- package/esm2022/lib/components/admin/fields/create-field.component.mjs +0 -80
- package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +0 -112
- package/esm2022/lib/components/admin/fields/create-or-update-field-input-base.mjs +0 -25
- package/esm2022/lib/components/admin/fields/edit-field.component.mjs +0 -103
- package/esm2022/lib/components/admin/fields/field-group.component.mjs +0 -131
- package/esm2022/lib/components/admin/fields/fields.component.mjs +0 -109
- package/esm2022/lib/components/admin/fields/index.mjs +0 -7
- package/esm2022/lib/components/admin/index.mjs +0 -4
- package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +0 -27
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +0 -71
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +0 -389
- package/esm2022/lib/components/admin/sections/entry-types/index.mjs +0 -3
- package/esm2022/lib/components/admin/sections/index.mjs +0 -4
- package/esm2022/lib/components/admin/sections/sections.component.mjs +0 -292
- package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +0 -112
- package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +0 -18
- package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +0 -105
- package/esm2022/lib/components/dynamic-form/entry/index.mjs +0 -4
- package/esm2022/lib/components/dynamic-form/form-control-group.mjs +0 -28
- package/esm2022/lib/components/dynamic-form/index.mjs +0 -5
- package/esm2022/lib/components/dynamic-form/matrix/index.mjs +0 -4
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +0 -214
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +0 -50
- package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +0 -98
- package/esm2022/lib/components/dynamic-form/table/index.mjs +0 -4
- package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +0 -151
- package/esm2022/lib/components/dynamic-form/table/table-config.mjs +0 -38
- package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +0 -105
- package/esm2022/lib/components/index.mjs +0 -3
- package/esm2022/lib/constants/styles.mjs +0 -21
- package/esm2022/lib/enums/ecms-component.mjs +0 -13
- package/esm2022/lib/enums/index.mjs +0 -2
- package/esm2022/lib/proxy/admin/dynamic-forms/form-admin.service.mjs +0 -22
- package/esm2022/lib/proxy/admin/dynamic-forms/index.mjs +0 -3
- package/esm2022/lib/proxy/admin/dynamic-forms/models.mjs +0 -2
- package/esm2022/lib/proxy/admin/entries/entry-admin.service.mjs +0 -70
- package/esm2022/lib/proxy/admin/entries/index.mjs +0 -3
- package/esm2022/lib/proxy/admin/entries/models.mjs +0 -2
- package/esm2022/lib/proxy/admin/fields/field-admin.service.mjs +0 -45
- package/esm2022/lib/proxy/admin/fields/field-group-admin.service.mjs +0 -41
- package/esm2022/lib/proxy/admin/fields/index.mjs +0 -4
- package/esm2022/lib/proxy/admin/fields/models.mjs +0 -2
- package/esm2022/lib/proxy/admin/sections/entry-type-admin.service.mjs +0 -41
- package/esm2022/lib/proxy/admin/sections/index.mjs +0 -4
- package/esm2022/lib/proxy/admin/sections/models.mjs +0 -2
- package/esm2022/lib/proxy/admin/sections/section-admin.service.mjs +0 -51
- package/esm2022/lib/proxy/admin/settings/index.mjs +0 -2
- package/esm2022/lib/proxy/admin/settings/site-settings-admin.service.mjs +0 -31
- package/esm2022/lib/proxy/dignite/abp/data/models.mjs +0 -2
- package/esm2022/lib/proxy/entries/entry-status.enum.mjs +0 -8
- package/esm2022/lib/proxy/entries/index.mjs +0 -2
- package/esm2022/lib/proxy/fields/models.mjs +0 -2
- package/esm2022/lib/proxy/sections/index.mjs +0 -3
- package/esm2022/lib/proxy/sections/models.mjs +0 -2
- package/esm2022/lib/proxy/sections/section-type.enum.mjs +0 -9
- package/esm2022/lib/proxy/settings/models.mjs +0 -2
- package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +0 -2
- package/esm2022/lib/resolvers/extensions-props-action-token.resolver.mjs +0 -132
- package/esm2022/lib/resolvers/page-default-toolbar-actions.mjs +0 -160
- package/esm2022/lib/services/appent-content.mjs +0 -15
- package/esm2022/lib/services/cms-api.service.mjs +0 -78
- package/esm2022/lib/services/cms.service.mjs +0 -21
- package/esm2022/lib/services/field-abstracts.service.mjs +0 -42
- package/esm2022/lib/services/index.mjs +0 -5
- package/esm2022/lib/services/simple-reuse-strategy.mjs +0 -64
- package/esm2022/lib/services/update-list.service.mjs +0 -19
- package/esm2022/lib/services/validators.service.mjs +0 -85
- package/esm2022/public-api.mjs +0 -6
- package/fesm2022/dignite-ng-expand.cms-config.mjs +0 -428
- package/fesm2022/dignite-ng-expand.cms-config.mjs.map +0 -1
- package/fesm2022/dignite-ng-expand.cms.mjs +0 -3913
- package/fesm2022/dignite-ng-expand.cms.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/cms-routing.module.d.ts +0 -7
- package/lib/cms.module.d.ts +0 -34
- package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +0 -96
- package/lib/components/admin/entries/create-or-update-entry-input-base.d.ts +0 -23
- package/lib/components/admin/entries/create.component.d.ts +0 -47
- package/lib/components/admin/entries/edit.component.d.ts +0 -47
- package/lib/components/admin/entries/entries.component.d.ts +0 -66
- package/lib/components/admin/entries/index.d.ts +0 -4
- package/lib/components/admin/fields/create-field.component.d.ts +0 -37
- package/lib/components/admin/fields/create-or-edit-field.component.d.ts +0 -38
- package/lib/components/admin/fields/create-or-update-field-input-base.d.ts +0 -16
- package/lib/components/admin/fields/edit-field.component.d.ts +0 -46
- package/lib/components/admin/fields/field-group.component.d.ts +0 -58
- package/lib/components/admin/fields/fields.component.d.ts +0 -35
- package/lib/components/admin/fields/index.d.ts +0 -6
- package/lib/components/admin/index.d.ts +0 -3
- package/lib/components/admin/sections/create-or-update-sections-input-base.d.ts +0 -17
- package/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.d.ts +0 -38
- package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +0 -138
- package/lib/components/admin/sections/entry-types/index.d.ts +0 -2
- package/lib/components/admin/sections/index.d.ts +0 -3
- package/lib/components/admin/sections/sections.component.d.ts +0 -64
- package/lib/components/dynamic-form/entry/entry-config.component.d.ts +0 -39
- package/lib/components/dynamic-form/entry/entry-config.d.ts +0 -9
- package/lib/components/dynamic-form/entry/entry-control.component.d.ts +0 -35
- package/lib/components/dynamic-form/entry/index.d.ts +0 -3
- package/lib/components/dynamic-form/form-control-group.d.ts +0 -4
- package/lib/components/dynamic-form/index.d.ts +0 -4
- package/lib/components/dynamic-form/matrix/index.d.ts +0 -3
- package/lib/components/dynamic-form/matrix/matrix-config.component.d.ts +0 -73
- package/lib/components/dynamic-form/matrix/matrix-config.d.ts +0 -24
- package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +0 -39
- package/lib/components/dynamic-form/table/index.d.ts +0 -3
- package/lib/components/dynamic-form/table/table-config.component.d.ts +0 -58
- package/lib/components/dynamic-form/table/table-config.d.ts +0 -18
- package/lib/components/dynamic-form/table/table-control.component.d.ts +0 -39
- package/lib/components/index.d.ts +0 -2
- package/lib/constants/styles.d.ts +0 -2
- package/lib/enums/ecms-component.d.ts +0 -11
- package/lib/enums/index.d.ts +0 -1
- package/lib/proxy/admin/dynamic-forms/form-admin.service.d.ts +0 -12
- package/lib/proxy/admin/dynamic-forms/models.d.ts +0 -4
- package/lib/proxy/admin/entries/entry-admin.service.d.ts +0 -22
- package/lib/proxy/admin/entries/models.d.ts +0 -60
- package/lib/proxy/admin/fields/field-admin.service.d.ts +0 -17
- package/lib/proxy/admin/fields/field-group-admin.service.d.ts +0 -16
- package/lib/proxy/admin/sections/entry-type-admin.service.d.ts +0 -15
- package/lib/proxy/admin/sections/section-admin.service.d.ts +0 -18
- package/lib/proxy/admin/settings/site-settings-admin.service.d.ts +0 -13
- package/lib/proxy/dignite/abp/data/models.d.ts +0 -3
- package/lib/proxy/entries/entry-status.enum.d.ts +0 -5
- package/lib/proxy/fields/models.d.ts +0 -8
- package/lib/proxy/sections/models.d.ts +0 -12
- package/lib/proxy/sections/section-type.enum.d.ts +0 -6
- package/lib/proxy/settings/models.d.ts +0 -5
- package/lib/resolvers/extensions-props-action-token.resolver.d.ts +0 -71
- package/lib/resolvers/page-default-toolbar-actions.d.ts +0 -18
- package/lib/services/appent-content.d.ts +0 -1
- package/lib/services/cms-api.service.d.ts +0 -20
- package/lib/services/cms.service.d.ts +0 -10
- package/lib/services/field-abstracts.service.d.ts +0 -20
- package/lib/services/index.d.ts +0 -4
- package/lib/services/simple-reuse-strategy.d.ts +0 -13
- package/lib/services/update-list.service.d.ts +0 -9
- package/lib/services/validators.service.d.ts +0 -17
- /package/config/{proxy/admin/domains/index.d.ts → src/proxy/admin/domains/index.ts} +0 -0
- /package/{lib/proxy/admin/dynamic-forms/index.d.ts → config/src/proxy/dignite/cms/admin/dynamic-forms/index.ts} +0 -0
- /package/{lib/proxy/admin/entries/index.d.ts → config/src/proxy/dignite/cms/admin/entries/index.ts} +0 -0
- /package/{lib/proxy/admin/fields/index.d.ts → config/src/proxy/dignite/cms/admin/fields/index.ts} +0 -0
- /package/{lib/proxy/admin/sections/index.d.ts → config/src/proxy/dignite/cms/admin/sections/index.ts} +0 -0
- /package/config/{proxy/dignite/cms/admin/sites/index.d.ts → src/proxy/dignite/cms/admin/sites/index.ts} +0 -0
- /package/{lib/proxy/entries/index.d.ts → config/src/proxy/dignite/cms/entries/index.ts} +0 -0
- /package/{lib/proxy/sections/index.d.ts → config/src/proxy/dignite/cms/sections/index.ts} +0 -0
- /package/{lib/proxy/admin/settings/index.d.ts → src/lib/proxy/admin/settings/index.ts} +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* eslint-disable @angular-eslint/component-selector */
|
|
2
|
+
import { Component, ElementRef, Input, ViewChild } from '@angular/core';
|
|
3
|
+
import { FormArray, FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'df-matrix-control',
|
|
7
|
+
templateUrl: './matrix-control.component.html',
|
|
8
|
+
styleUrls: ['./matrix-control.component.scss']
|
|
9
|
+
})
|
|
10
|
+
export class MatrixControlComponent {
|
|
11
|
+
|
|
12
|
+
constructor(
|
|
13
|
+
private fb: FormBuilder,
|
|
14
|
+
) { }
|
|
15
|
+
|
|
16
|
+
/**表单实体 */
|
|
17
|
+
_entity: FormGroup | undefined
|
|
18
|
+
@Input()
|
|
19
|
+
public set entity(v: any) {
|
|
20
|
+
this._entity = v;
|
|
21
|
+
this.dataLoaded()
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**字段配置列表 */
|
|
25
|
+
_fields: any = ''
|
|
26
|
+
@Input()
|
|
27
|
+
public set fields(v: any) {
|
|
28
|
+
this._fields = v;
|
|
29
|
+
this.dataLoaded()
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**父级字段名称,用于为表单设置控件赋值 */
|
|
33
|
+
_parentFiledName: any
|
|
34
|
+
@Input()
|
|
35
|
+
public set parentFiledName(v: any) {
|
|
36
|
+
this._parentFiledName = v;
|
|
37
|
+
this.dataLoaded()
|
|
38
|
+
}
|
|
39
|
+
/**父级字段名称,用于为表单设置控件赋值 */
|
|
40
|
+
_selected: any
|
|
41
|
+
@Input()
|
|
42
|
+
public set selected(v: any) {
|
|
43
|
+
this._selected = v;
|
|
44
|
+
if (v) { this.dataLoaded() }
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
/**语言 */
|
|
48
|
+
_culture: any
|
|
49
|
+
@Input()
|
|
50
|
+
public set culture(v: any) {
|
|
51
|
+
this._culture = v;
|
|
52
|
+
}
|
|
53
|
+
@ViewChild('submitclick', { static: true }) submitclick: ElementRef;
|
|
54
|
+
|
|
55
|
+
/** 获取父级字段代表的表单组*/
|
|
56
|
+
extraProperties: FormGroup | undefined
|
|
57
|
+
|
|
58
|
+
/**数据加载完成 */
|
|
59
|
+
async dataLoaded() {
|
|
60
|
+
if (this._fields && this._entity && this._parentFiledName) {
|
|
61
|
+
this.extraProperties = this._entity.get(this._parentFiledName) as FormGroup
|
|
62
|
+
await this.AfterInit()
|
|
63
|
+
this.submitclick.nativeElement.click();
|
|
64
|
+
if (this._selected) this.fieldNameControl.patchValue(this._selected);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
formConfiguration: any
|
|
69
|
+
/**获取表格字段代表的控件 */
|
|
70
|
+
fieldNameControl: FormArray | undefined
|
|
71
|
+
|
|
72
|
+
AfterInit() {
|
|
73
|
+
return new Promise((resolve, rejects) => {
|
|
74
|
+
let formConfiguration = this._fields.field.formConfiguration
|
|
75
|
+
let newArrayGroup = this.fb.array([])
|
|
76
|
+
this.extraProperties.setControl(this._fields.field.name, newArrayGroup)
|
|
77
|
+
this.fieldNameControl = this.extraProperties.get(this._fields.field.name) as FormArray
|
|
78
|
+
if (this._selected) {
|
|
79
|
+
this._selected.forEach(el => {
|
|
80
|
+
this.addMatrixControl(formConfiguration.MatrixBlockTypes.find(item => item.name == el.matrixBlockTypeName))
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
this.MatrixBlockTypesList = formConfiguration.MatrixBlockTypes
|
|
84
|
+
|
|
85
|
+
resolve(true)
|
|
86
|
+
})
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**矩阵列表 */
|
|
90
|
+
MatrixBlockTypesList: any[] = []
|
|
91
|
+
|
|
92
|
+
/**增加指定矩阵控件项 */
|
|
93
|
+
addMatrixControl(item) {
|
|
94
|
+
this.fieldNameControl.push(this.fb.group({
|
|
95
|
+
extraProperties: new FormGroup({
|
|
96
|
+
name:new FormControl('')
|
|
97
|
+
}),
|
|
98
|
+
matrixBlockTypeName: [item.name],
|
|
99
|
+
displayName: [item.displayName]
|
|
100
|
+
}))
|
|
101
|
+
}
|
|
102
|
+
/**删除矩阵控件 */
|
|
103
|
+
deleteMatrixControl(index) {
|
|
104
|
+
this.fieldNameControl.removeAt(index)
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<form [formGroup]="_Entity">
|
|
2
|
+
<div formGroupName="formConfiguration">
|
|
3
|
+
<div class="mb-2">
|
|
4
|
+
<label class="form-label">{{'DigniteAbpForms::SelectListItem' | abpLocalization}}</label>
|
|
5
|
+
<table class="table">
|
|
6
|
+
<thead>
|
|
7
|
+
<tr>
|
|
8
|
+
<th scope="col">{{'Cms::TableColumnDisplayName' | abpLocalization}}</th>
|
|
9
|
+
<th scope="col">{{'Cms::TableColumnName' | abpLocalization}}</th>
|
|
10
|
+
<th scope="col">{{'Cms::TableColumnForm' | abpLocalization}}</th>
|
|
11
|
+
<th scope="col" class="flex-end">
|
|
12
|
+
<button class="btn btn-light btn-sm" (click.stop)="addTableColumns()">
|
|
13
|
+
<i class="fas fa-plus-circle"></i>
|
|
14
|
+
</button>
|
|
15
|
+
</th>
|
|
16
|
+
</tr>
|
|
17
|
+
</thead>
|
|
18
|
+
<tbody formArrayName="TableColumns">
|
|
19
|
+
<ng-container *ngFor="let item of TableColumns.controls;let i=index">
|
|
20
|
+
<tr [formGroupName]="i">
|
|
21
|
+
<td><input type="text" class="form-control" formControlName="displayName" (blur)="disPlayNameInputBlur($event,item)" ></td>
|
|
22
|
+
<td><input type="text" class="form-control" formControlName="name"></td>
|
|
23
|
+
<td>
|
|
24
|
+
<select class="form-select" formControlName="formControlName"
|
|
25
|
+
(change)="selectTableControl($event,i,item)">
|
|
26
|
+
<option value="">SelectFrom</option>
|
|
27
|
+
<ng-container *ngFor="let item_f of _fieldControlGroup;let i_f =index">
|
|
28
|
+
<option [value]="item_f.name">{{item_f.displayName}}</option>
|
|
29
|
+
</ng-container>
|
|
30
|
+
</select>
|
|
31
|
+
</td>
|
|
32
|
+
<td scope="row">
|
|
33
|
+
<div class="flex-start">
|
|
34
|
+
<button class="btn btn-light btn-sm " (click.stop)="EditSitesBtn(item,i)">
|
|
35
|
+
<i class="fas fa-edit"></i>
|
|
36
|
+
</button>
|
|
37
|
+
<button class="btn btn-light btn-sm ms-1" (click.stop)="deleteTableColumns(i)">
|
|
38
|
+
<i class="fas fa-minus"></i>
|
|
39
|
+
</button>
|
|
40
|
+
<button class="btn btn-light btn-sm ms-1" *ngIf="i!==0"
|
|
41
|
+
(click.stop)="TableArrowUpOrDown('up',i)">
|
|
42
|
+
<i class="fas fa-arrow-up"></i>
|
|
43
|
+
</button>
|
|
44
|
+
<button class="btn btn-light btn-sm ms-1" *ngIf="i!==TableColumns.controls.length-1"
|
|
45
|
+
(click.stop)="TableArrowUpOrDown('down',i)">
|
|
46
|
+
<i class="fas fa-arrow-down"></i>
|
|
47
|
+
</button>
|
|
48
|
+
</div>
|
|
49
|
+
</td>
|
|
50
|
+
</tr>
|
|
51
|
+
</ng-container>
|
|
52
|
+
</tbody>
|
|
53
|
+
</table>
|
|
54
|
+
</div>
|
|
55
|
+
<button type="submit" (abpInit)="submitclick?.nativeElement?.click()" style="display: none;"
|
|
56
|
+
#submitclick></button>
|
|
57
|
+
</div>
|
|
58
|
+
</form>
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
<abp-modal [(visible)]="tableSelectOpen" [busy]="modalBusy" (visibleChange)="tableSelectVisibleChange($event)" [options]="{ size: CurrentSelectionTableControlName=='Matrix'?'xl':'' ,scrollable:false }">
|
|
62
|
+
<ng-template #abpHeader>
|
|
63
|
+
<h3>{{_tableSelected?('AbpUi::Edit' | abpLocalization):('Cms::New' | abpLocalization)}}</h3>
|
|
64
|
+
</ng-template>
|
|
65
|
+
<ng-template #abpBody>
|
|
66
|
+
<ng-template #loaderRef>
|
|
67
|
+
<div class="text-center"><i class="fa fa-pulse fa-spinner" aria-hidden="true"></i></div>
|
|
68
|
+
</ng-template>
|
|
69
|
+
<ng-container *ngIf="tableSelectForm; else loaderRef">
|
|
70
|
+
<form class="sites-modal-form" #myForm="ngForm" [formGroup]="tableSelectForm"
|
|
71
|
+
(keydown.enter)="$event.preventDefault()" (submit)="createOrEditSave()">
|
|
72
|
+
<button type="submit" #tableSelectModalSubmit style="display: none"></button>
|
|
73
|
+
<ng-container *ngIf="CurrentSelectionTableControlName&&tableSelectForm">
|
|
74
|
+
<df-dynamic [type]="CurrentSelectionTableControlName" [entity]="tableSelectForm"
|
|
75
|
+
[selected]="_tableSelected" [formGroup]="tableSelectForm"></df-dynamic>
|
|
76
|
+
</ng-container>
|
|
77
|
+
</form>
|
|
78
|
+
</ng-container>
|
|
79
|
+
</ng-template>
|
|
80
|
+
<ng-template #abpFooter>
|
|
81
|
+
<button type="button" class="btn btn-secondary" abpClose>{{'AbpUi::Close' | abpLocalization}}</button>
|
|
82
|
+
<abp-button iconClass="fa fa-check"
|
|
83
|
+
(click)="tableSelectModalSubmit.nativeElement.click()">{{'AbpUi::Save' | abpLocalization}}</abp-button>
|
|
84
|
+
</ng-template>
|
|
85
|
+
</abp-modal>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { TableConfigComponent } from './table-config.component';
|
|
4
|
+
|
|
5
|
+
describe('TableConfigComponent', () => {
|
|
6
|
+
let component: TableConfigComponent;
|
|
7
|
+
let fixture: ComponentFixture<TableConfigComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [TableConfigComponent]
|
|
12
|
+
});
|
|
13
|
+
fixture = TestBed.createComponent(TableConfigComponent);
|
|
14
|
+
component = fixture.componentInstance;
|
|
15
|
+
fixture.detectChanges();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should create', () => {
|
|
19
|
+
expect(component).toBeTruthy();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/* eslint-disable @angular-eslint/component-selector */
|
|
2
|
+
import { Component, ElementRef, Input, ViewChild } from '@angular/core';
|
|
3
|
+
import { FormArray, FormBuilder, FormGroup } from '@angular/forms';
|
|
4
|
+
import { TableConfig, TableFormControl } from './table-config';
|
|
5
|
+
import { CmsApiService, FieldAbstractsService } from '../../../services';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'df-table-config',
|
|
9
|
+
templateUrl: './table-config.component.html',
|
|
10
|
+
styleUrls: ['./table-config.component.scss']
|
|
11
|
+
})
|
|
12
|
+
export class TableConfigComponent {
|
|
13
|
+
constructor(
|
|
14
|
+
private fb: FormBuilder,
|
|
15
|
+
private _CmsApiService: CmsApiService,
|
|
16
|
+
private _FieldAbstractsService: FieldAbstractsService,
|
|
17
|
+
) { }
|
|
18
|
+
/**表单实体 */
|
|
19
|
+
_Entity: FormGroup | undefined
|
|
20
|
+
@Input()
|
|
21
|
+
public set Entity(v: FormGroup) {
|
|
22
|
+
this._Entity = v;
|
|
23
|
+
this.dataLoaded()
|
|
24
|
+
}
|
|
25
|
+
/**选择的表单信息 */
|
|
26
|
+
_selected: any
|
|
27
|
+
@Input()
|
|
28
|
+
public set selected(v: any) {
|
|
29
|
+
if (v) {
|
|
30
|
+
this._selected = v
|
|
31
|
+
this.dataLoaded()
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/**表单控件组 */
|
|
35
|
+
_fieldControlGroup: any[]
|
|
36
|
+
|
|
37
|
+
/**表单控件类型 */
|
|
38
|
+
_type: any
|
|
39
|
+
@Input()
|
|
40
|
+
public set type(v: any) {
|
|
41
|
+
this._type = v
|
|
42
|
+
this.dataLoaded()
|
|
43
|
+
}
|
|
44
|
+
get formConfiguration() {
|
|
45
|
+
return this._Entity.get('formConfiguration') as FormGroup
|
|
46
|
+
}
|
|
47
|
+
get TableColumns() {
|
|
48
|
+
return this.formConfiguration.controls['TableColumns'] as FormArray
|
|
49
|
+
}
|
|
50
|
+
@ViewChild('submitclick', { static: true }) submitclick: ElementRef;
|
|
51
|
+
|
|
52
|
+
async dataLoaded() {
|
|
53
|
+
if (this._Entity && this._type) {
|
|
54
|
+
await this.AfterInit()
|
|
55
|
+
this.submitclick.nativeElement.click();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/**增加选项 */
|
|
59
|
+
addTableColumns() {
|
|
60
|
+
this.TableColumns.push(this.fb.group({
|
|
61
|
+
...new TableFormControl(),
|
|
62
|
+
formConfiguration: [{}]
|
|
63
|
+
}))
|
|
64
|
+
}
|
|
65
|
+
/**删除某个选项 */
|
|
66
|
+
deleteTableColumns(index) {
|
|
67
|
+
this.TableColumns.removeAt(index)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
AfterInit() {
|
|
71
|
+
return new Promise((resolve, rejects) => {
|
|
72
|
+
this._Entity.setControl('formConfiguration', this.fb.group(new TableConfig()))
|
|
73
|
+
this._fieldControlGroup = this._FieldAbstractsService.getExcludeAssignControl(this._type)
|
|
74
|
+
if (this._selected && this._selected.formControlName == this._type) {
|
|
75
|
+
this._selected.formConfiguration['TableColumns'].forEach(el => {
|
|
76
|
+
this.addTableColumns()
|
|
77
|
+
});
|
|
78
|
+
this.formConfiguration.patchValue(this._selected.formConfiguration)
|
|
79
|
+
} else {
|
|
80
|
+
this.addTableColumns()
|
|
81
|
+
}
|
|
82
|
+
resolve(true)
|
|
83
|
+
})
|
|
84
|
+
}
|
|
85
|
+
itemForm: any
|
|
86
|
+
/**选择表格的表单控件 */
|
|
87
|
+
selectTableControl(event, i, item) {
|
|
88
|
+
this.CurrentSelectionTableControlName = event.target.value
|
|
89
|
+
this.tableSelectOpen = true
|
|
90
|
+
this.tableSelectForm = this.fb.group(new TableFormControl())
|
|
91
|
+
this.TableColumnsIndex = i
|
|
92
|
+
this.itemForm = item
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
CurrentSelectionTableControlName: any
|
|
96
|
+
|
|
97
|
+
/**正在创建或编辑的表格项下标 */
|
|
98
|
+
TableColumnsIndex: any
|
|
99
|
+
/**创建站点模态框状态 */
|
|
100
|
+
tableSelectOpen: boolean = false
|
|
101
|
+
|
|
102
|
+
/**用于确定模态的繁忙状态是否为真 */
|
|
103
|
+
modalBusy: boolean = false
|
|
104
|
+
/**创建站点表单 */
|
|
105
|
+
tableSelectForm: FormGroup | undefined;
|
|
106
|
+
|
|
107
|
+
/**表格已选择数据 */
|
|
108
|
+
_tableSelected: any
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
/**表单控件模板-动态赋值表单控件 */
|
|
112
|
+
@ViewChild('tableSelectModalSubmit', { static: false }) tableSelectModalSubmit: ElementRef;
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
/**创建站点模态框状态改变 */
|
|
116
|
+
tableSelectVisibleChange(event) {
|
|
117
|
+
if (!event) {
|
|
118
|
+
this._tableSelected = undefined
|
|
119
|
+
this.tableSelectForm = undefined
|
|
120
|
+
this.CurrentSelectionTableControlName = undefined
|
|
121
|
+
this.TableColumnsIndex = undefined
|
|
122
|
+
return
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
/**表单保存提交 */
|
|
126
|
+
createOrEditSave() {
|
|
127
|
+
const formGroup = this.TableColumns.at(this.TableColumnsIndex) as FormGroup;
|
|
128
|
+
let formConfigurationgroup = formGroup.get('formConfiguration') as FormGroup
|
|
129
|
+
|
|
130
|
+
formConfigurationgroup.setValue({
|
|
131
|
+
...this.tableSelectForm.value['formConfiguration'],
|
|
132
|
+
});
|
|
133
|
+
this.tableSelectOpen = false
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**编辑站点按钮 */
|
|
137
|
+
EditSitesBtn(rows, i) {
|
|
138
|
+
|
|
139
|
+
this.CurrentSelectionTableControlName = rows.get('formControlName').value
|
|
140
|
+
this.tableSelectForm = this.fb.group(new TableFormControl())
|
|
141
|
+
this.tableSelectForm.patchValue({
|
|
142
|
+
...rows.value
|
|
143
|
+
})
|
|
144
|
+
this.tableSelectForm.get('formConfiguration').patchValue({
|
|
145
|
+
...rows.value['formConfiguration']
|
|
146
|
+
})
|
|
147
|
+
this._tableSelected = rows.value
|
|
148
|
+
this.TableColumnsIndex = i
|
|
149
|
+
this.tableSelectOpen = true
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
/**调整表格位置 */
|
|
154
|
+
TableArrowUpOrDown(type, index) {
|
|
155
|
+
let controlAt = this.TableColumns.at(index)
|
|
156
|
+
this.TableColumns.removeAt(index)
|
|
157
|
+
let lastindex = type == 'up' ? index - 1 : index + 1
|
|
158
|
+
this.TableColumns.insert(lastindex, controlAt)
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
/**字段标签input失去标点生成字段名字 */
|
|
163
|
+
disPlayNameInputBlur(event, item) {
|
|
164
|
+
let value = event.target.value
|
|
165
|
+
let pinyin = this._CmsApiService.chineseToPinyin(value)
|
|
166
|
+
let nameInput = item.get('name')
|
|
167
|
+
if (nameInput.value) return
|
|
168
|
+
nameInput.patchValue(pinyin)
|
|
169
|
+
}
|
|
170
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { FormArray, FormControl, FormGroup, Validators } from "@angular/forms";
|
|
2
|
+
|
|
3
|
+
export class TableConfig {
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// 选项
|
|
8
|
+
TableColumns: any = new FormArray([])
|
|
9
|
+
|
|
10
|
+
constructor(data?: TableConfig) {
|
|
11
|
+
if (data) {
|
|
12
|
+
for (const key in data) {
|
|
13
|
+
if (data.hasOwnProperty(key)) {
|
|
14
|
+
this[key] = data[key];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export class TableFormControl {
|
|
21
|
+
/**列标题 */
|
|
22
|
+
displayName: any = ['', [Validators.required]];
|
|
23
|
+
/**空间配置 */
|
|
24
|
+
formConfiguration: any = new FormGroup({})
|
|
25
|
+
/**列名 */
|
|
26
|
+
name: any = ['', [Validators.required]];
|
|
27
|
+
//控件标识
|
|
28
|
+
formControlName: any = ['', [Validators.required]];
|
|
29
|
+
|
|
30
|
+
/**是否必填 */
|
|
31
|
+
required: any = [false];
|
|
32
|
+
/**描述 */
|
|
33
|
+
description: any = [''];
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
constructor(data?: TableConfig) {
|
|
37
|
+
if (data) {
|
|
38
|
+
for (const key in data) {
|
|
39
|
+
if (data.hasOwnProperty(key)) {
|
|
40
|
+
this[key] = data[key];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<form [formGroup]="_entity">
|
|
2
|
+
<div formGroupName="extraProperties">
|
|
3
|
+
<div class="mb-2">
|
|
4
|
+
<label class="form-label" *ngIf="_fields.displayName">{{ _fields.displayName }}</label>
|
|
5
|
+
<table class="table">
|
|
6
|
+
<thead>
|
|
7
|
+
<tr>
|
|
8
|
+
<ng-container *ngFor="let item of formConfiguration.TableColumns">
|
|
9
|
+
<th scope="col">{{ item.displayName }}</th>
|
|
10
|
+
</ng-container>
|
|
11
|
+
<th scope="col" class="flex-end">
|
|
12
|
+
<button class="btn btn-light btn-sm" (click.stop)="addTableControlItem()">
|
|
13
|
+
<i class="fas fa-plus-circle"></i>
|
|
14
|
+
</button>
|
|
15
|
+
</th>
|
|
16
|
+
</tr>
|
|
17
|
+
</thead>
|
|
18
|
+
<tbody [formArrayName]="_fields.field.name">
|
|
19
|
+
<ng-container *ngFor="let item of fieldNameControl.controls; let i = index">
|
|
20
|
+
<tr>
|
|
21
|
+
<ng-container *ngFor="let el of formConfiguration.TableColumns">
|
|
22
|
+
<td>
|
|
23
|
+
<ng-container *ngIf="item&&el">
|
|
24
|
+
<df-dynamic [entity]="item" [fields]="{ field: el }"
|
|
25
|
+
[selected]="_selected[i]?.extraProperties[''+el.name+'']"
|
|
26
|
+
[parentFiledName]="'extraProperties'" [culture]="_culture"></df-dynamic>
|
|
27
|
+
</ng-container>
|
|
28
|
+
</td>
|
|
29
|
+
</ng-container>
|
|
30
|
+
<td scope="row" class="">
|
|
31
|
+
<div class="flex-end mb-2">
|
|
32
|
+
<button class="btn btn-light btn-sm ms-1" (click.stop)="minusTableControlItem(i)">
|
|
33
|
+
<i class="fas fa-minus"></i>
|
|
34
|
+
</button>
|
|
35
|
+
<button class="btn btn-light btn-sm ms-1" (click.stop)="TableArrowUpOrDown('up',i)"
|
|
36
|
+
*ngIf="i!==0">
|
|
37
|
+
<i class="fas fa-arrow-up"></i>
|
|
38
|
+
</button>
|
|
39
|
+
<button class="btn btn-light btn-sm ms-1"
|
|
40
|
+
(click.stop)="TableArrowUpOrDown('down',i)"
|
|
41
|
+
*ngIf="i!==fieldNameControl.controls.length-1">
|
|
42
|
+
<i class="fas fa-arrow-down"></i>
|
|
43
|
+
</button>
|
|
44
|
+
</div>
|
|
45
|
+
</td>
|
|
46
|
+
</tr>
|
|
47
|
+
</ng-container>
|
|
48
|
+
</tbody>
|
|
49
|
+
</table>
|
|
50
|
+
<div class="form-text" *ngIf="_fields.field.description">{{_fields.field.description}}</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
<button type="submit" style="display: none" #submitclick></button>
|
|
54
|
+
</form>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.flex-end{display:flex;align-items:center;justify-content:flex-end}.flex-start{display:flex;align-items:center;justify-content:flex-start}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { TableControlComponent } from './table-control.component';
|
|
4
|
+
|
|
5
|
+
describe('TableControlComponent', () => {
|
|
6
|
+
let component: TableControlComponent;
|
|
7
|
+
let fixture: ComponentFixture<TableControlComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [TableControlComponent]
|
|
12
|
+
});
|
|
13
|
+
fixture = TestBed.createComponent(TableControlComponent);
|
|
14
|
+
component = fixture.componentInstance;
|
|
15
|
+
fixture.detectChanges();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should create', () => {
|
|
19
|
+
expect(component).toBeTruthy();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { Component, ElementRef, Input, ViewChild, inject } from '@angular/core';
|
|
2
|
+
import { FormArray, FormBuilder, FormGroup, Validators } from '@angular/forms';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
6
|
+
selector: 'df-table-control',
|
|
7
|
+
templateUrl: './table-control.component.html',
|
|
8
|
+
styleUrls: ['./table-control.component.scss']
|
|
9
|
+
})
|
|
10
|
+
export class TableControlComponent {
|
|
11
|
+
|
|
12
|
+
constructor(
|
|
13
|
+
// private fb: FormBuilder,
|
|
14
|
+
) {
|
|
15
|
+
}
|
|
16
|
+
private fb=inject(FormBuilder)
|
|
17
|
+
|
|
18
|
+
/**表单实体 */
|
|
19
|
+
_entity: FormGroup | undefined
|
|
20
|
+
@Input()
|
|
21
|
+
public set entity(v: any) {
|
|
22
|
+
this._entity = v;
|
|
23
|
+
this.dataLoaded()
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**字段配置列表 */
|
|
27
|
+
_fields: any = ''
|
|
28
|
+
@Input()
|
|
29
|
+
public set fields(v: any) {
|
|
30
|
+
this._fields = v;
|
|
31
|
+
this.dataLoaded()
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**父级字段名称,用于为表单设置控件赋值 */
|
|
35
|
+
_parentFiledName: any
|
|
36
|
+
@Input()
|
|
37
|
+
public set parentFiledName(v: any) {
|
|
38
|
+
this._parentFiledName = v;
|
|
39
|
+
this.dataLoaded()
|
|
40
|
+
}
|
|
41
|
+
/**父级字段名称,用于为表单设置控件赋值 */
|
|
42
|
+
_selected: any
|
|
43
|
+
@Input()
|
|
44
|
+
public set selected(v: any) {
|
|
45
|
+
this._selected = v ;
|
|
46
|
+
if (v) { this.dataLoaded() }
|
|
47
|
+
|
|
48
|
+
}
|
|
49
|
+
/**语言 */
|
|
50
|
+
_culture: any
|
|
51
|
+
@Input()
|
|
52
|
+
public set culture(v: any) {
|
|
53
|
+
this._culture = v;
|
|
54
|
+
}
|
|
55
|
+
@ViewChild('submitclick', { static: true }) submitclick: ElementRef;
|
|
56
|
+
|
|
57
|
+
/** 获取父级字段代表的表单组*/
|
|
58
|
+
extraProperties: FormGroup | undefined
|
|
59
|
+
|
|
60
|
+
/**数据加载完成 */
|
|
61
|
+
async dataLoaded() {
|
|
62
|
+
if (this._fields && this._entity && this._parentFiledName) {
|
|
63
|
+
this.extraProperties = this._entity.get(this._parentFiledName) as FormGroup
|
|
64
|
+
await this.AfterInit()
|
|
65
|
+
this.submitclick.nativeElement.click();
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
formConfiguration: any
|
|
70
|
+
/**获取表格字段代表的控件 */
|
|
71
|
+
fieldNameControl: FormArray | undefined
|
|
72
|
+
|
|
73
|
+
AfterInit() {
|
|
74
|
+
return new Promise((resolve, rejects) => {
|
|
75
|
+
let ValidatorsArray = []
|
|
76
|
+
if (this._fields.required) {
|
|
77
|
+
ValidatorsArray.push(Validators.required)
|
|
78
|
+
}
|
|
79
|
+
let formConfiguration = this._fields.field.formConfiguration
|
|
80
|
+
this.formConfiguration = formConfiguration
|
|
81
|
+
let newArrayGroup = this.fb.array([])
|
|
82
|
+
this.extraProperties.setControl(this._fields.field.name, newArrayGroup)
|
|
83
|
+
this.fieldNameControl = this.extraProperties.get(this._fields.field.name) as FormArray
|
|
84
|
+
if (this._selected) {
|
|
85
|
+
this._selected.forEach(el => {
|
|
86
|
+
this.addTableControlItem()
|
|
87
|
+
});
|
|
88
|
+
this.fieldNameControl.patchValue(this._selected)
|
|
89
|
+
} else {
|
|
90
|
+
this.addTableControlItem()
|
|
91
|
+
}
|
|
92
|
+
resolve(true)
|
|
93
|
+
})
|
|
94
|
+
}
|
|
95
|
+
/**增加表格项 */
|
|
96
|
+
addTableControlItem(){
|
|
97
|
+
this.fieldNameControl.push(this.fb.group({
|
|
98
|
+
'extraProperties':this.fb.group({})
|
|
99
|
+
}))
|
|
100
|
+
}
|
|
101
|
+
/**删除表格项 */
|
|
102
|
+
minusTableControlItem(index){
|
|
103
|
+
this.fieldNameControl.removeAt(index)
|
|
104
|
+
}
|
|
105
|
+
/**调整表格位置 */
|
|
106
|
+
TableArrowUpOrDown(type, index) {
|
|
107
|
+
let controlAt = this.fieldNameControl.at(index)
|
|
108
|
+
this.fieldNameControl.removeAt(index)
|
|
109
|
+
let lastindex = type == 'up' ? index - 1 : index + 1
|
|
110
|
+
this.fieldNameControl.insert(lastindex, controlAt)
|
|
111
|
+
this._selected=this.fieldNameControl.value
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './styles'
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default `
|
|
2
|
+
.lpx-content-container .lpx-content{min-height:calc(100vh - 34px);padding:1.25em 2em 1.25em}h1,h2,h3,h4,h5,h6{color:inherit}.lpx-settings .lpx-context-menu{overflow:auto}
|
|
3
|
+
a {
|
|
4
|
+
text-decoration: unset;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.form-label{
|
|
8
|
+
font-size: 12px;
|
|
9
|
+
}
|
|
10
|
+
:root select{
|
|
11
|
+
cursor: pointer; /* this will show the pointer when hovering */
|
|
12
|
+
}
|
|
13
|
+
.cdk-global-overlay-wrapper, .cdk-overlay-container {pointer-events: none;top: 0;left: 0;height: 100%;width: 100% }.cdk-overlay-container {position: fixed;z-index: 1000 }.cdk-overlay-container:empty {display: none }.cdk-global-overlay-wrapper, .cdk-overlay-connected-position-bounding-box, .cdk-overlay-pane {position: absolute;z-index: 1000;display: flex }.cdk-overlay-pane {pointer-events: auto;box-sizing: border-box;max-width: 100%;max-height: 100% }.cdk-overlay-backdrop {position: absolute;top: 0;bottom: 0;left: 0;right: 0;z-index: 1000;pointer-events: auto;transition: opacity .4s cubic-bezier(.25, .8, .25, 1);opacity: 0 }.cdk-overlay-backdrop.cdk-overlay-backdrop-showing {opacity: 1 }.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing {opacity: .6 }.cdk-overlay-dark-backdrop {background: rgba(0, 0, 0, .32) }.cdk-overlay-transparent-backdrop {transition: visibility 1ms linear, opacity 1ms linear;visibility: hidden;opacity: 1 }.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing {opacity: 0;visibility: visible }.cdk-overlay-backdrop-noop-animation {transition: none }.cdk-overlay-connected-position-bounding-box {flex-direction: column;min-width: 1px;min-height: 1px }.cdk-global-scrollblock {position: fixed;width: 100%;overflow-y: scroll }.cdk-visually-hidden {border: 0;clip: rect(0 0 0 0);height: 1px;margin: -1px;overflow: hidden;padding: 0;position: absolute;width: 1px;outline: 0;-webkit-appearance: none;-moz-appearance: none }.nz-overlay-transparent-backdrop, .nz-overlay-transparent-backdrop.cdk-overlay-backdrop-showing {opacity: 0 }.ant-select, .ant-select-dropdown {margin: 0;line-height: 1.5715;box-sizing: border-box;font-feature-settings: 'tnum';list-style: none }.ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottom, .ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomLeft, .ant-dropdown.ant-slide-down-appear.ant-slide-down-appear-active.ant-dropdown-placement-bottomRight, .ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottom, .ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomLeft, .ant-dropdown.ant-slide-down-enter.ant-slide-down-enter-active.ant-dropdown-placement-bottomRight, .ant-select-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-select-dropdown-placement-bottomLeft, .ant-select-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-select-dropdown-placement-bottomLeft {animation-name: antSlideUpIn }.ant-select-dropdown.ant-select-tree-dropdown {top: 100%;left: 0;position: relative;width: 100%;margin-top: 4px;margin-bottom: 4px;overflow: auto }.ant-select-dropdown-hidden, .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-delete, .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-eye, .ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info::before {display: none }.ant-select-dropdown {top: 100%;left: 0;position: relative;width: 100%;margin-top: 4px;margin-bottom: 4px;display: block }.ant-select-dropdown .cdk-virtual-scroll-content-wrapper {right: 0 }.ant-select-dropdown .full-width {contain: initial }.ant-select-dropdown .full-width .cdk-virtual-scroll-content-wrapper {position: static }.ant-select-dropdown .full-width .cdk-virtual-scroll-spacer {position: absolute;top: 0;width: 1px }.ant-select-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-select-dropdown-placement-topLeft, .ant-select-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-select-dropdown-placement-topLeft {animation-name: antSlideDownIn }.ant-select-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-select-dropdown-placement-bottomLeft {animation-name: antSlideUpOut }.ant-select-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-select-dropdown-placement-topLeft {animation-name: antSlideDownOut }
|
|
14
|
+
|
|
15
|
+
/*** 表单验证样式 start */
|
|
16
|
+
.was-validated .form-control:invalid, .form-control.is-invalid{
|
|
17
|
+
border-color: #c00d49 !important;
|
|
18
|
+
}
|
|
19
|
+
/*** 表单验证样式 end */
|
|
20
|
+
`;
|