@dignite-ng/expand.cms 0.0.19 → 0.0.20
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 +7 -0
- package/config/src/cms-config.module.ts +12 -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 +66 -0
- package/config/{public-api.d.ts → src/public-api.ts} +3 -3
- package/karma.conf.js +44 -0
- package/ng-package.json +7 -0
- package/package.json +19 -38
- package/src/lib/cms-routing.module.ts +111 -0
- package/src/lib/cms.module.ts +119 -0
- package/src/lib/components/admin/entries/create-or-edit-entries.component.html +115 -0
- package/src/lib/components/admin/entries/create-or-edit-entries.component.scss +25 -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 +287 -0
- package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +36 -0
- package/src/lib/components/admin/entries/create.component.html +13 -0
- package/src/lib/components/admin/entries/create.component.scss +21 -0
- package/src/lib/components/admin/entries/create.component.spec.ts +21 -0
- package/src/lib/components/admin/entries/create.component.ts +103 -0
- package/src/lib/components/admin/entries/edit.component.html +9 -0
- package/src/lib/components/admin/entries/edit.component.scss +26 -0
- package/src/lib/components/admin/entries/edit.component.spec.ts +21 -0
- package/src/lib/components/admin/entries/edit.component.ts +103 -0
- package/src/lib/components/admin/entries/entries.component.html +106 -0
- package/src/lib/components/admin/entries/entries.component.scss +80 -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 +10 -0
- package/src/lib/components/admin/fields/create-field.component.spec.ts +21 -0
- package/src/lib/components/admin/fields/create-field.component.ts +68 -0
- package/src/lib/components/admin/fields/create-or-edit-field.component.html +39 -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 +119 -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 +13 -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 +100 -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 +132 -0
- package/src/lib/components/admin/fields/fields.component.html +73 -0
- package/src/lib/components/admin/fields/fields.component.scss +11 -0
- package/src/lib/components/admin/fields/fields.component.spec.ts +21 -0
- package/src/lib/components/admin/fields/fields.component.ts +111 -0
- package/src/lib/components/admin/fields/index.ts +6 -0
- package/src/lib/components/admin/index.ts +4 -0
- package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +36 -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 +191 -0
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.scss +24 -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 +412 -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 +191 -0
- package/src/lib/components/admin/sections/sections.component.scss +26 -0
- package/src/lib/components/admin/sections/sections.component.spec.ts +21 -0
- package/src/lib/components/admin/sections/sections.component.ts +334 -0
- package/src/lib/components/admin/sites/create-or-update-sites-input-base.ts +31 -0
- package/src/lib/components/admin/sites/index.ts +2 -0
- package/src/lib/components/admin/sites/sites.component.html +154 -0
- package/src/lib/components/admin/sites/sites.component.scss +19 -0
- package/src/lib/components/admin/sites/sites.component.spec.ts +21 -0
- package/src/lib/components/admin/sites/sites.component.ts +293 -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 +0 -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 +115 -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 +20 -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 +110 -0
- package/src/lib/components/dynamic-form/entry/index.ts +3 -0
- package/src/lib/components/dynamic-form/form-control-group.ts +31 -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 +147 -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 +238 -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 +104 -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 +55 -0
- package/src/lib/components/dynamic-form/table/table-control.component.scss +10 -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 +107 -0
- package/src/lib/components/index.ts +2 -0
- package/src/lib/constants/index.ts +1 -0
- package/src/lib/constants/styles.ts +31 -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/dynamic-forms/form-admin.service.ts +21 -0
- package/src/lib/proxy/admin/dynamic-forms/models.ts +5 -0
- package/src/lib/proxy/admin/entries/entry-admin.service.ts +100 -0
- package/src/lib/proxy/admin/entries/models.ts +73 -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/{lib/proxy/admin/fields/models.d.ts → src/lib/proxy/admin/fields/models.ts} +42 -34
- package/src/lib/proxy/admin/sections/entry-type-admin.service.ts +55 -0
- package/{lib/proxy/admin/sections/models.d.ts → src/lib/proxy/admin/sections/models.ts} +88 -74
- package/src/lib/proxy/admin/sections/section-admin.service.ts +74 -0
- package/{lib/proxy/admin/sites/models.d.ts → src/lib/proxy/admin/sites/models.ts} +36 -30
- package/src/lib/proxy/admin/sites/site-admin.service.ts +72 -0
- package/src/lib/proxy/dignite/abp/data/models.ts +4 -0
- package/src/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.ts +65 -0
- package/{lib/proxy/dignite/file-explorer/directories/models.d.ts → src/lib/proxy/dignite/file-explorer/directories/models.ts} +35 -29
- package/src/lib/proxy/dignite/file-explorer/files/file-descriptor.service.ts +86 -0
- package/src/lib/proxy/dignite/file-explorer/files/models.ts +57 -0
- package/src/lib/proxy/entries/entry-status.enum.ts +8 -0
- package/src/lib/proxy/fields/models.ts +9 -0
- package/src/lib/proxy/generate-proxy.json +11821 -0
- package/{lib/proxy/microsoft/asp-net-core/mvc/models.d.ts → src/lib/proxy/microsoft/asp-net-core/mvc/models.ts} +12 -10
- package/src/lib/proxy/microsoft/extensions/primitives/models.ts +9 -0
- package/{lib/proxy/microsoft/net/http/headers/models.d.ts → src/lib/proxy/microsoft/net/http/headers/models.ts} +7 -6
- package/src/lib/proxy/sections/models.ts +14 -0
- package/src/lib/proxy/sections/section-type.enum.ts +9 -0
- package/src/lib/proxy/sites/models.ts +5 -0
- package/src/lib/proxy/volo/abp/content/models.ts +6 -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/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 +41 -0
- package/src/lib/services/index.ts +4 -0
- package/src/lib/services/simple-reuse-strategy.ts +49 -0
- package/src/lib/services/update-list.service.ts +15 -0
- package/src/lib/toolbar/index.ts +2 -0
- package/src/lib/toolbar/toolbar-btn-default-action.ts +171 -0
- package/src/lib/toolbar/toolbar-config.ts +95 -0
- package/{public-api.d.ts → src/public-api.ts} +12 -8
- package/src/test.ts +26 -0
- package/tsconfig.lib.json +20 -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/enums/route-names.d.ts +0 -8
- package/config/index.d.ts +0 -5
- package/config/providers/route.provider.d.ts +0 -8
- package/esm2022/config/cms-config.module.mjs +0 -19
- 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 -2
- package/esm2022/config/providers/index.mjs +0 -2
- package/esm2022/config/providers/route.provider.mjs +0 -64
- package/esm2022/config/public-api.mjs +0 -4
- package/esm2022/dignite-ng-expand.cms.mjs +0 -5
- package/esm2022/lib/cms-routing.module.mjs +0 -100
- package/esm2022/lib/cms.module.mjs +0 -156
- package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +0 -285
- 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 -107
- package/esm2022/lib/components/admin/entries/edit.component.mjs +0 -110
- package/esm2022/lib/components/admin/entries/entries.component.mjs +0 -212
- package/esm2022/lib/components/admin/entries/index.mjs +0 -5
- package/esm2022/lib/components/admin/fields/create-field.component.mjs +0 -82
- package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +0 -121
- 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 -110
- package/esm2022/lib/components/admin/fields/field-group.component.mjs +0 -124
- package/esm2022/lib/components/admin/fields/fields.component.mjs +0 -119
- package/esm2022/lib/components/admin/fields/index.mjs +0 -7
- package/esm2022/lib/components/admin/index.mjs +0 -5
- 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 -418
- 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 -334
- package/esm2022/lib/components/admin/sites/create-or-update-sites-input-base.mjs +0 -23
- package/esm2022/lib/components/admin/sites/index.mjs +0 -3
- package/esm2022/lib/components/admin/sites/sites.component.mjs +0 -285
- package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +0 -125
- package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +0 -18
- package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +0 -115
- package/esm2022/lib/components/dynamic-form/entry/index.mjs +0 -4
- package/esm2022/lib/components/dynamic-form/form-control-group.mjs +0 -31
- 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 -229
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +0 -50
- package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +0 -111
- package/esm2022/lib/components/dynamic-form/table/index.mjs +0 -4
- package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +0 -174
- package/esm2022/lib/components/dynamic-form/table/table-config.mjs +0 -38
- package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +0 -114
- package/esm2022/lib/components/index.mjs +0 -3
- package/esm2022/lib/constants/index.mjs +0 -2
- package/esm2022/lib/constants/styles.mjs +0 -32
- 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 -24
- 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 -67
- 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 -47
- package/esm2022/lib/proxy/admin/fields/field-group-admin.service.mjs +0 -43
- 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/index.mjs +0 -7
- package/esm2022/lib/proxy/admin/sections/entry-type-admin.service.mjs +0 -43
- 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 -53
- package/esm2022/lib/proxy/admin/sites/index.mjs +0 -3
- package/esm2022/lib/proxy/admin/sites/models.mjs +0 -2
- package/esm2022/lib/proxy/admin/sites/site-admin.service.mjs +0 -51
- package/esm2022/lib/proxy/dignite/abp/data/index.mjs +0 -2
- package/esm2022/lib/proxy/dignite/abp/data/models.mjs +0 -2
- package/esm2022/lib/proxy/dignite/abp/index.mjs +0 -3
- package/esm2022/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.mjs +0 -48
- package/esm2022/lib/proxy/dignite/file-explorer/directories/index.mjs +0 -3
- package/esm2022/lib/proxy/dignite/file-explorer/directories/models.mjs +0 -2
- package/esm2022/lib/proxy/dignite/file-explorer/files/file-descriptor.service.mjs +0 -60
- package/esm2022/lib/proxy/dignite/file-explorer/files/index.mjs +0 -3
- package/esm2022/lib/proxy/dignite/file-explorer/files/models.mjs +0 -2
- package/esm2022/lib/proxy/dignite/file-explorer/index.mjs +0 -4
- package/esm2022/lib/proxy/dignite/index.mjs +0 -4
- 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/index.mjs +0 -2
- package/esm2022/lib/proxy/fields/models.mjs +0 -2
- package/esm2022/lib/proxy/index.mjs +0 -10
- package/esm2022/lib/proxy/microsoft/asp-net-core/index.mjs +0 -3
- package/esm2022/lib/proxy/microsoft/asp-net-core/mvc/index.mjs +0 -2
- package/esm2022/lib/proxy/microsoft/asp-net-core/mvc/models.mjs +0 -2
- package/esm2022/lib/proxy/microsoft/extensions/index.mjs +0 -3
- package/esm2022/lib/proxy/microsoft/extensions/primitives/index.mjs +0 -2
- package/esm2022/lib/proxy/microsoft/extensions/primitives/models.mjs +0 -2
- package/esm2022/lib/proxy/microsoft/index.mjs +0 -5
- package/esm2022/lib/proxy/microsoft/net/http/headers/index.mjs +0 -2
- package/esm2022/lib/proxy/microsoft/net/http/headers/models.mjs +0 -2
- package/esm2022/lib/proxy/microsoft/net/http/index.mjs +0 -3
- package/esm2022/lib/proxy/microsoft/net/index.mjs +0 -3
- 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/sites/index.mjs +0 -2
- package/esm2022/lib/proxy/sites/models.mjs +0 -2
- package/esm2022/lib/proxy/volo/abp/content/index.mjs +0 -2
- package/esm2022/lib/proxy/volo/abp/content/models.mjs +0 -2
- package/esm2022/lib/proxy/volo/abp/index.mjs +0 -3
- package/esm2022/lib/proxy/volo/cms-kit/index.mjs +0 -3
- package/esm2022/lib/proxy/volo/cms-kit/users/index.mjs +0 -2
- package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +0 -2
- package/esm2022/lib/proxy/volo/index.mjs +0 -4
- package/esm2022/lib/services/appent-content.mjs +0 -15
- package/esm2022/lib/services/cms-api.service.mjs +0 -80
- package/esm2022/lib/services/cms.service.mjs +0 -23
- package/esm2022/lib/services/field-abstracts.service.mjs +0 -45
- package/esm2022/lib/services/index.mjs +0 -4
- package/esm2022/lib/services/simple-reuse-strategy.mjs +0 -43
- package/esm2022/lib/services/update-list.service.mjs +0 -19
- package/esm2022/lib/toolbar/index.mjs +0 -3
- package/esm2022/lib/toolbar/toolbar-btn-default-action.mjs +0 -160
- package/esm2022/lib/toolbar/toolbar-config.mjs +0 -81
- package/esm2022/public-api.mjs +0 -12
- package/fesm2022/dignite-ng-expand.cms-config.mjs +0 -87
- package/fesm2022/dignite-ng-expand.cms-config.mjs.map +0 -1
- package/fesm2022/dignite-ng-expand.cms.mjs +0 -4515
- 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 -40
- package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +0 -91
- 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 -40
- package/lib/components/admin/entries/edit.component.d.ts +0 -42
- 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 -31
- package/lib/components/admin/fields/create-or-edit-field.component.d.ts +0 -37
- 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 -40
- package/lib/components/admin/fields/field-group.component.d.ts +0 -51
- package/lib/components/admin/fields/fields.component.d.ts +0 -37
- package/lib/components/admin/fields/index.d.ts +0 -6
- package/lib/components/admin/index.d.ts +0 -4
- 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 -132
- 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 -95
- package/lib/components/admin/sites/create-or-update-sites-input-base.d.ts +0 -12
- package/lib/components/admin/sites/index.d.ts +0 -2
- package/lib/components/admin/sites/sites.component.d.ts +0 -72
- package/lib/components/dynamic-form/entry/entry-config.component.d.ts +0 -42
- 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 -36
- package/lib/components/index.d.ts +0 -2
- package/lib/constants/index.d.ts +0 -1
- 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 -21
- package/lib/proxy/admin/entries/models.d.ts +0 -65
- 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/sites/site-admin.service.d.ts +0 -18
- package/lib/proxy/dignite/abp/data/models.d.ts +0 -3
- package/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.d.ts +0 -17
- package/lib/proxy/dignite/file-explorer/files/file-descriptor.service.d.ts +0 -20
- package/lib/proxy/dignite/file-explorer/files/models.d.ts +0 -50
- package/lib/proxy/entries/entry-status.enum.d.ts +0 -5
- package/lib/proxy/fields/models.d.ts +0 -8
- package/lib/proxy/microsoft/extensions/primitives/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/sites/models.d.ts +0 -4
- package/lib/proxy/volo/abp/content/models.d.ts +0 -5
- 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 -3
- package/lib/services/simple-reuse-strategy.d.ts +0 -11
- package/lib/services/update-list.service.d.ts +0 -9
- package/lib/toolbar/index.d.ts +0 -2
- package/lib/toolbar/toolbar-btn-default-action.d.ts +0 -19
- package/lib/toolbar/toolbar-config.d.ts +0 -57
- /package/{lib/proxy/admin/dynamic-forms/index.d.ts → src/lib/proxy/admin/dynamic-forms/index.ts} +0 -0
- /package/{lib/proxy/admin/entries/index.d.ts → src/lib/proxy/admin/entries/index.ts} +0 -0
- /package/{lib/proxy/admin/fields/index.d.ts → src/lib/proxy/admin/fields/index.ts} +0 -0
- /package/{lib/proxy/admin/index.d.ts → src/lib/proxy/admin/index.ts} +0 -0
- /package/{lib/proxy/admin/sections/index.d.ts → src/lib/proxy/admin/sections/index.ts} +0 -0
- /package/{lib/proxy/admin/sites/index.d.ts → src/lib/proxy/admin/sites/index.ts} +0 -0
- /package/{lib/proxy/dignite/abp/data/index.d.ts → src/lib/proxy/dignite/abp/data/index.ts} +0 -0
- /package/{lib/proxy/dignite/abp/index.d.ts → src/lib/proxy/dignite/abp/index.ts} +0 -0
- /package/{lib/proxy/dignite/file-explorer/directories/index.d.ts → src/lib/proxy/dignite/file-explorer/directories/index.ts} +0 -0
- /package/{lib/proxy/dignite/file-explorer/files/index.d.ts → src/lib/proxy/dignite/file-explorer/files/index.ts} +0 -0
- /package/{lib/proxy/dignite/file-explorer/index.d.ts → src/lib/proxy/dignite/file-explorer/index.ts} +0 -0
- /package/{lib/proxy/dignite/index.d.ts → src/lib/proxy/dignite/index.ts} +0 -0
- /package/{lib/proxy/entries/index.d.ts → src/lib/proxy/entries/index.ts} +0 -0
- /package/{lib/proxy/fields/index.d.ts → src/lib/proxy/fields/index.ts} +0 -0
- /package/{lib/proxy/index.d.ts → src/lib/proxy/index.ts} +0 -0
- /package/{lib/proxy/microsoft/asp-net-core/index.d.ts → src/lib/proxy/microsoft/asp-net-core/index.ts} +0 -0
- /package/{lib/proxy/microsoft/asp-net-core/mvc/index.d.ts → src/lib/proxy/microsoft/asp-net-core/mvc/index.ts} +0 -0
- /package/{lib/proxy/microsoft/extensions/index.d.ts → src/lib/proxy/microsoft/extensions/index.ts} +0 -0
- /package/{lib/proxy/microsoft/extensions/primitives/index.d.ts → src/lib/proxy/microsoft/extensions/primitives/index.ts} +0 -0
- /package/{lib/proxy/microsoft/index.d.ts → src/lib/proxy/microsoft/index.ts} +0 -0
- /package/{lib/proxy/microsoft/net/http/headers/index.d.ts → src/lib/proxy/microsoft/net/http/headers/index.ts} +0 -0
- /package/{lib/proxy/microsoft/net/http/index.d.ts → src/lib/proxy/microsoft/net/http/index.ts} +0 -0
- /package/{lib/proxy/microsoft/net/index.d.ts → src/lib/proxy/microsoft/net/index.ts} +0 -0
- /package/{lib/proxy/sections/index.d.ts → src/lib/proxy/sections/index.ts} +0 -0
- /package/{lib/proxy/sites/index.d.ts → src/lib/proxy/sites/index.ts} +0 -0
- /package/{lib/proxy/volo/abp/content/index.d.ts → src/lib/proxy/volo/abp/content/index.ts} +0 -0
- /package/{lib/proxy/volo/abp/index.d.ts → src/lib/proxy/volo/abp/index.ts} +0 -0
- /package/{lib/proxy/volo/cms-kit/index.d.ts → src/lib/proxy/volo/cms-kit/index.ts} +0 -0
- /package/{lib/proxy/volo/cms-kit/users/index.d.ts → src/lib/proxy/volo/cms-kit/users/index.ts} +0 -0
- /package/{lib/proxy/volo/index.d.ts → src/lib/proxy/volo/index.ts} +0 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
|
|
2
|
+
import { ABP, LIST_QUERY_DEBOUNCE_TIME, ListService, LocalizationService, PagedResultDto } from '@abp/ng.core';
|
|
3
|
+
import { ToasterService, ConfirmationService, Confirmation } from '@abp/ng.theme.shared';
|
|
4
|
+
import { Component, OnDestroy, OnInit, inject } from '@angular/core';
|
|
5
|
+
import { Router } from '@angular/router';
|
|
6
|
+
import { FieldAdminService, FieldDto, GetFieldsInput } from '../../../proxy/admin/fields';
|
|
7
|
+
import { ColumnMode } from "@swimlane/ngx-datatable";
|
|
8
|
+
import { finalize } from 'rxjs/operators';
|
|
9
|
+
import { EXTENSIONS_IDENTIFIER } from '@abp/ng.theme.shared/extensions';
|
|
10
|
+
import { ECmsComponent } from '../../../enums';
|
|
11
|
+
import { CmsApiService } from '../../../services';
|
|
12
|
+
import { UpdateListService } from '../../../services/update-list.service';
|
|
13
|
+
|
|
14
|
+
@Component({
|
|
15
|
+
selector: 'cms-fields',
|
|
16
|
+
templateUrl: './fields.component.html',
|
|
17
|
+
styleUrls: ['./fields.component.scss'],
|
|
18
|
+
providers: [
|
|
19
|
+
// [Required]
|
|
20
|
+
ListService,
|
|
21
|
+
// [Optional]
|
|
22
|
+
// Provide this token if you want a different debounce time.
|
|
23
|
+
// Default is 300. Cannot be 0. Any value below 100 is not recommended.
|
|
24
|
+
{ provide: LIST_QUERY_DEBOUNCE_TIME, useValue: 500 },
|
|
25
|
+
{
|
|
26
|
+
provide: EXTENSIONS_IDENTIFIER,
|
|
27
|
+
useValue: ECmsComponent.Fields,
|
|
28
|
+
},
|
|
29
|
+
]
|
|
30
|
+
})
|
|
31
|
+
export class FieldsComponent implements OnInit {
|
|
32
|
+
|
|
33
|
+
constructor(
|
|
34
|
+
public readonly list: ListService,
|
|
35
|
+
private _FieldAdminService: FieldAdminService,
|
|
36
|
+
private toaster: ToasterService,
|
|
37
|
+
private confirmation: ConfirmationService,
|
|
38
|
+
private _LocalizationService: LocalizationService,
|
|
39
|
+
private router: Router,
|
|
40
|
+
private _CmsApiService: CmsApiService,
|
|
41
|
+
) {
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
private _UpdateListService=inject(UpdateListService)
|
|
45
|
+
/**表格单元格布局类型 */
|
|
46
|
+
ColumnMode = ColumnMode;
|
|
47
|
+
|
|
48
|
+
/**表格数据 */
|
|
49
|
+
data: PagedResultDto<FieldDto> = {
|
|
50
|
+
items: [],
|
|
51
|
+
totalCount: 0,
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**过滤器 */
|
|
55
|
+
filters = {} as GetFieldsInput;
|
|
56
|
+
|
|
57
|
+
ngOnInit(): void {
|
|
58
|
+
this.hookToQuery()
|
|
59
|
+
this._UpdateListService.updateListEvent.subscribe(() => {
|
|
60
|
+
this.list.get()
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
getData(){
|
|
64
|
+
this.list.get()
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
/**字段分组选择回调 */
|
|
69
|
+
fieldGroupChange(event) {
|
|
70
|
+
this.filters.groupId = event
|
|
71
|
+
this.list.page=0
|
|
72
|
+
this.list.get()
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/**使用abp的list获取表格的字段数据列表 */
|
|
78
|
+
hookToQuery() {
|
|
79
|
+
const getData = (query: ABP.PageQueryParams) => this._FieldAdminService.getList({
|
|
80
|
+
...query,
|
|
81
|
+
...this.filters,
|
|
82
|
+
});
|
|
83
|
+
const setData = (list: PagedResultDto<FieldDto>) => (this.data = list);
|
|
84
|
+
this.list.hookToQuery(getData).subscribe(setData);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**新建字段按钮 */
|
|
88
|
+
toFieldsCreateBtn() {
|
|
89
|
+
this.router.navigate(['/cms/admin/fields/create'],
|
|
90
|
+
{
|
|
91
|
+
queryParams: {}
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**删除字段 */
|
|
97
|
+
deletefield(row: any) {
|
|
98
|
+
this.confirmation.warn(
|
|
99
|
+
row.displayName,
|
|
100
|
+
this._LocalizationService.instant(`AbpUi::ItemWillBeDeletedMessage`),
|
|
101
|
+
).subscribe((status: Confirmation.Status) => {
|
|
102
|
+
if (status == 'confirm') {
|
|
103
|
+
this._FieldAdminService.delete(row.id).pipe(finalize(() => {
|
|
104
|
+
})).subscribe(res => {
|
|
105
|
+
this.toaster.success(this._LocalizationService.instant(`AbpUi::SuccessfullyDeleted`));
|
|
106
|
+
this.list.get()
|
|
107
|
+
})
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
import { FormArray, FormBuilder, FormControl, FormGroup, Validators } from "@angular/forms";
|
|
3
|
+
|
|
4
|
+
export class CreateOrUpdateSectionsInputBase {
|
|
5
|
+
/**版块类型 */
|
|
6
|
+
type: any = [0, [Validators.required]];
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**字段名称 Display name of this field */
|
|
10
|
+
displayName: any = ['', [Validators.required]];
|
|
11
|
+
|
|
12
|
+
/**字段唯一名称 Unique Name*/
|
|
13
|
+
name: any = ['', [Validators.required]];
|
|
14
|
+
|
|
15
|
+
/**条目路由 */
|
|
16
|
+
route: any = ['', [Validators.required]];
|
|
17
|
+
/**页面模板 */
|
|
18
|
+
template: any = ['', [Validators.required]];
|
|
19
|
+
/**是否默认 */
|
|
20
|
+
isDefault: any = [false, []];
|
|
21
|
+
/**是否激活 */
|
|
22
|
+
isActive: any = [true, []];
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
constructor(data?: CreateOrUpdateSectionsInputBase) {
|
|
27
|
+
if (data) {
|
|
28
|
+
for (const key in data) {
|
|
29
|
+
if (data.hasOwnProperty(key)) {
|
|
30
|
+
this[key] = data[key];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
}
|
package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { FormArray, FormBuilder, FormControl, FormGroup, Validators } from "@angular/forms";
|
|
2
|
+
|
|
3
|
+
export class CreateOrEditEntryTypeInputBase {
|
|
4
|
+
/**显示名称 Display name of this field */
|
|
5
|
+
displayName: any = ['', [Validators.required]];
|
|
6
|
+
|
|
7
|
+
/**名称 Unique Name*/
|
|
8
|
+
name: any = ['', [Validators.required]];
|
|
9
|
+
/**条目路由 */
|
|
10
|
+
fieldTabs: any = new FormArray([])
|
|
11
|
+
|
|
12
|
+
constructor(data?: CreateOrEditEntryTypeInputBase) {
|
|
13
|
+
if (data) {
|
|
14
|
+
for (const key in data) {
|
|
15
|
+
if (data.hasOwnProperty(key)) {
|
|
16
|
+
this[key] = data[key];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export class fieldTabsBase {
|
|
23
|
+
/**名称 Unique Name*/
|
|
24
|
+
name: any = ['', [Validators.required]];
|
|
25
|
+
fields?: any = [[], []]
|
|
26
|
+
constructor(data?: fieldTabsBase) {
|
|
27
|
+
if (data) {
|
|
28
|
+
for (const key in data) {
|
|
29
|
+
if (data.hasOwnProperty(key)) {
|
|
30
|
+
this[key] = data[key];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export class fieldsBase {
|
|
37
|
+
/**字段id Unique Name*/
|
|
38
|
+
fieldId: any = ['', [Validators.required]];
|
|
39
|
+
/**显示名称 Unique Name*/
|
|
40
|
+
displayName: any = ['', [Validators.required]];
|
|
41
|
+
/**必填 Unique Name*/
|
|
42
|
+
required: any = [false, []];
|
|
43
|
+
/**是否在列表中显示 Unique Name*/
|
|
44
|
+
showOnList: any = [false, []];
|
|
45
|
+
|
|
46
|
+
constructor(data?: fieldsBase) {
|
|
47
|
+
if (data) {
|
|
48
|
+
for (const key in data) {
|
|
49
|
+
if (data.hasOwnProperty(key)) {
|
|
50
|
+
this[key] = data[key];
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export class fieldsInputBase {
|
|
59
|
+
/**字段id */
|
|
60
|
+
fieldId = ['', [Validators.required]];
|
|
61
|
+
/**显示名称 Display name of this field */
|
|
62
|
+
displayName: any = ['', [Validators.required]];
|
|
63
|
+
|
|
64
|
+
/**是否必填 Unique Name*/
|
|
65
|
+
required: any = [false, []];
|
|
66
|
+
/**在列表中展示 Unique Name*/
|
|
67
|
+
showOnList: any = [false, []];
|
|
68
|
+
constructor(data?: fieldsInputBase) {
|
|
69
|
+
if (data) {
|
|
70
|
+
for (const key in data) {
|
|
71
|
+
if (data.hasOwnProperty(key)) {
|
|
72
|
+
this[key] = data[key];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
<form class="row g-3 needs-validation" [formGroup]="newEntity" (ngSubmit)="save()">
|
|
2
|
+
<abp-page [title]="entryTypesId ? ('AbpUi::Edit' | abpLocalization):('Cms::New' | abpLocalization)" [toolbar]="true">
|
|
3
|
+
<div class="create-or-edit-entry-type-page">
|
|
4
|
+
<div class="card">
|
|
5
|
+
<button type="submit" style="display: none;" #submitclick></button>
|
|
6
|
+
<div class="card-body">
|
|
7
|
+
<div class="">
|
|
8
|
+
<div class="mb-2">
|
|
9
|
+
<label class="form-label">{{'Cms::DisplayName' | abpLocalization}}</label>
|
|
10
|
+
<input type="text" class="form-control" formControlName="displayName"
|
|
11
|
+
(blur)="disPlayNameInputBlur($event)" placeholder="" />
|
|
12
|
+
</div>
|
|
13
|
+
<div class="mb-2">
|
|
14
|
+
<label class="form-label">{{'Cms::Name' | abpLocalization}}</label>
|
|
15
|
+
<input type="text" class="form-control" formControlName="name" placeholder="" />
|
|
16
|
+
</div>
|
|
17
|
+
<div formArrayName="fieldTabs">
|
|
18
|
+
<div class="mb-2">
|
|
19
|
+
<label class="form-label">{{'Cms::FieldLayout' | abpLocalization}}</label>
|
|
20
|
+
<div class="container">
|
|
21
|
+
<!-- -->
|
|
22
|
+
<div class="row">
|
|
23
|
+
<div class="col-sm-8">
|
|
24
|
+
<ul ngbNav #nav="ngbNav" [(activeId)]="navActive" class="nav nav-tabs">
|
|
25
|
+
<ng-container *ngFor="let item of resultSource; let i = index">
|
|
26
|
+
<li [ngbNavItem]="i">
|
|
27
|
+
<button type="button" ngbDropdown ngbNavLink>
|
|
28
|
+
{{ item.name }}
|
|
29
|
+
<span class="ms-1" (click.stop)="$event.stopPropagation()"
|
|
30
|
+
ngbDropdownToggle></span>
|
|
31
|
+
<div ngbDropdownMenu style="z-index: 999;">
|
|
32
|
+
<li ngbDropdownItem type="button"
|
|
33
|
+
(click.stop)="editFieldTabs(item,i)">
|
|
34
|
+
<i class="fas fa-edit"></i>
|
|
35
|
+
{{'AbpUi::Edit' | abpLocalization}}
|
|
36
|
+
</li>
|
|
37
|
+
<li ngbDropdownItem
|
|
38
|
+
*ngIf="resultSource.length !== 1" type="button"
|
|
39
|
+
(click.stop)="deleteFieldTabs(i)">
|
|
40
|
+
<i class="fas fa-trash"></i>
|
|
41
|
+
{{'AbpUi::Delete' | abpLocalization}}
|
|
42
|
+
</li>
|
|
43
|
+
</div>
|
|
44
|
+
</button>
|
|
45
|
+
<ng-template ngbNavContent>
|
|
46
|
+
<div class="p-2" ondragover="event.preventDefault();"
|
|
47
|
+
(drop)="dragToResultSourceDropped(item,i)" style="height: 100%;">
|
|
48
|
+
<p class="form-text" *ngIf="item.fields.length === 0">
|
|
49
|
+
{{'Cms::DragAndDropFieldTips' | abpLocalization}}
|
|
50
|
+
</p>
|
|
51
|
+
<ul class="list-group" style="height: 100%;">
|
|
52
|
+
<ng-container
|
|
53
|
+
*ngFor="let el of item.fields; let iel = index">
|
|
54
|
+
<li draggable="true"
|
|
55
|
+
(dragstart)="fromResultSourceDragStart(el)"
|
|
56
|
+
(drop)="dragToResultSourceItemDropped(iel)"
|
|
57
|
+
class="list-group-item d-flex align-items-center justify-content-between py-1" style="position: unset;">
|
|
58
|
+
{{ el.displayName }}
|
|
59
|
+
<button class="p-0 btn btn-sm btn-light"
|
|
60
|
+
(click.stop)="EditFieldModalOpen(el,iel)"
|
|
61
|
+
type="button"><i
|
|
62
|
+
class="fas fa-wrench p-sm-1"
|
|
63
|
+
role="button"></i></button>
|
|
64
|
+
</li>
|
|
65
|
+
</ng-container>
|
|
66
|
+
</ul>
|
|
67
|
+
|
|
68
|
+
</div>
|
|
69
|
+
</ng-template>
|
|
70
|
+
</li>
|
|
71
|
+
</ng-container>
|
|
72
|
+
<li class="nav-item" role="presentation">
|
|
73
|
+
<button type="button" class="nav-link"
|
|
74
|
+
(click.stop)="addFieldTabs()">
|
|
75
|
+
<i class="fas fa-plus-circle"></i>
|
|
76
|
+
{{'Cms::NewTab' | abpLocalization}}
|
|
77
|
+
</button>
|
|
78
|
+
</li>
|
|
79
|
+
</ul>
|
|
80
|
+
<div [ngbNavOutlet]="nav" class="mt-2 bordernNavs p-0"></div>
|
|
81
|
+
</div>
|
|
82
|
+
<div class="col-sm-4">
|
|
83
|
+
<div ngbAccordion #accordion="ngbAccordion"
|
|
84
|
+
ondragover="event.preventDefault();" (drop)="dragToDataSourceDropped()"
|
|
85
|
+
style="min-height: 80px;">
|
|
86
|
+
<ng-container *ngFor="let item of fieldGroupList; let i = index">
|
|
87
|
+
<div [ngbAccordionItem]="item.name" *ngIf="item.fields.length > 0">
|
|
88
|
+
<h2 ngbAccordionHeader>
|
|
89
|
+
<button ngbAccordionButton>{{
|
|
90
|
+
('Cms::'+item.name) | abpLocalization }}</button>
|
|
91
|
+
</h2>
|
|
92
|
+
<div ngbAccordionCollapse>
|
|
93
|
+
<div ngbAccordionBody>
|
|
94
|
+
<ng-template>
|
|
95
|
+
<ul class="list-group">
|
|
96
|
+
<ng-container
|
|
97
|
+
*ngFor="let el of item.fields; let ii = index">
|
|
98
|
+
<li draggable="true"
|
|
99
|
+
(dragstart)="fromDataSourceDragStart(el,ii,i)"
|
|
100
|
+
class="list-group-item">
|
|
101
|
+
{{ el.displayName }}
|
|
102
|
+
</li>
|
|
103
|
+
</ng-container>
|
|
104
|
+
</ul>
|
|
105
|
+
</ng-template>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
</ng-container>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
</div>
|
|
124
|
+
</abp-page>
|
|
125
|
+
|
|
126
|
+
</form>
|
|
127
|
+
|
|
128
|
+
<abp-modal [(visible)]="visibleTabsOpen" [busy]="modalBusy" (visibleChange)="VisibleTabsChange($event)">
|
|
129
|
+
<ng-template #abpHeader>
|
|
130
|
+
<h3>{{ editFieldTabsSelect ? ('AbpUi::Edit' | abpLocalization):('Cms::New' | abpLocalization)}}</h3>
|
|
131
|
+
</ng-template>
|
|
132
|
+
<ng-template #abpBody>
|
|
133
|
+
<ng-template #loaderRef>
|
|
134
|
+
<div class="text-center"><i class="fa fa-pulse fa-spinner" aria-hidden="true"></i></div>
|
|
135
|
+
</ng-template>
|
|
136
|
+
<ng-container *ngIf="editFieldTabsFrom; else loaderRef">
|
|
137
|
+
<form class="sites-modal-form" [formGroup]="editFieldTabsFrom" (ngSubmit)="editFieldTabsSave()">
|
|
138
|
+
<button type="submit" #editFieldTabsModalSubmitBtn style="display: none"></button>
|
|
139
|
+
<div class="mb-2">
|
|
140
|
+
<label class="form-label">{{'Cms::Name' | abpLocalization}}</label>
|
|
141
|
+
<input type="text" class="form-control" formControlName="name" placeholder="" />
|
|
142
|
+
</div>
|
|
143
|
+
</form>
|
|
144
|
+
</ng-container>
|
|
145
|
+
</ng-template>
|
|
146
|
+
<ng-template #abpFooter>
|
|
147
|
+
<button type="button" class="btn btn-secondary" abpClose>{{'AbpUi::Close' | abpLocalization}}</button>
|
|
148
|
+
<abp-button iconClass="fa fa-check" [disabled]="!editFieldTabsFrom.valid"
|
|
149
|
+
(click)="editFieldTabsModalSubmitBtn.nativeElement.click()">{{'AbpUi::Save' | abpLocalization}}</abp-button>
|
|
150
|
+
</ng-template>
|
|
151
|
+
</abp-modal>
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
<abp-modal [(visible)]="visibleEditFieldOpen" [busy]="modalBusy" (visibleChange)="VisibleEditFieldChange($event)">
|
|
155
|
+
<ng-template #abpHeader>
|
|
156
|
+
<h3>{{'AbpUi::Edit' | abpLocalization}}</h3>
|
|
157
|
+
</ng-template>
|
|
158
|
+
<ng-template #abpBody>
|
|
159
|
+
<ng-template #loaderRef>
|
|
160
|
+
<div class="text-center"><i class="fa fa-pulse fa-spinner" aria-hidden="true"></i></div>
|
|
161
|
+
</ng-template>
|
|
162
|
+
<ng-container *ngIf="editFieldFrom; else loaderRef">
|
|
163
|
+
<form class="sites-modal-form" [formGroup]="editFieldFrom" (ngSubmit)="editFieldSave()">
|
|
164
|
+
<button type="submit" #editFieldModalSubmitBtn style="display: none"></button>
|
|
165
|
+
<div class="mb-2">
|
|
166
|
+
<label class="form-label">{{'Cms::DisplayName' | abpLocalization}}</label>
|
|
167
|
+
<input type="text" class="form-control" formControlName="displayName" placeholder="" />
|
|
168
|
+
</div>
|
|
169
|
+
<div class="mb-2">
|
|
170
|
+
<div class="form-check form-check-inline">
|
|
171
|
+
<input class="form-check-input" type="checkbox" value="true" formControlName="required"
|
|
172
|
+
id="required" />
|
|
173
|
+
<label class="form-check-label" for="required"> {{'Cms::Required' | abpLocalization}} </label>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="mb-2">
|
|
177
|
+
<div class="form-check form-check-inline">
|
|
178
|
+
<input class="form-check-input" type="checkbox" value="true" formControlName="showOnList"
|
|
179
|
+
id="showOnList" />
|
|
180
|
+
<label class="form-check-label" for="showOnList"> {{'Cms::ShowOnList' | abpLocalization}} </label>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
</form>
|
|
184
|
+
</ng-container>
|
|
185
|
+
</ng-template>
|
|
186
|
+
<ng-template #abpFooter>
|
|
187
|
+
<button type="button" class="btn btn-secondary" abpClose>{{'AbpUi::Close' | abpLocalization}}</button>
|
|
188
|
+
<abp-button iconClass="fa fa-check" [disabled]="!editFieldFrom.valid"
|
|
189
|
+
(click)="editFieldModalSubmitBtn.nativeElement.click()">{{'AbpUi::Save' | abpLocalization}}</abp-button>
|
|
190
|
+
</ng-template>
|
|
191
|
+
</abp-modal>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
::ng-deep .create-or-edit-entry-type-page {
|
|
2
|
+
.dignite_page {
|
|
3
|
+
height: calc(100vh - 32px - 53px - 40px);
|
|
4
|
+
overflow: auto;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.form-control,
|
|
8
|
+
.form-select {
|
|
9
|
+
padding: 0.475rem 1.25rem;
|
|
10
|
+
}
|
|
11
|
+
.cursor-move{
|
|
12
|
+
cursor: move;
|
|
13
|
+
}
|
|
14
|
+
.bordernNavs{
|
|
15
|
+
border: var(--bs-border-width) solid var(--lpx-border-color);
|
|
16
|
+
padding-left: inherit;
|
|
17
|
+
padding-right: inherit;
|
|
18
|
+
height: calc(100% - 60px);
|
|
19
|
+
}
|
|
20
|
+
.tab-pane{
|
|
21
|
+
height: 100%;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { CreateOrEditComponent } from './create-or-edit.component';
|
|
4
|
+
|
|
5
|
+
describe('CreateOrEditComponent', () => {
|
|
6
|
+
let component: CreateOrEditComponent;
|
|
7
|
+
let fixture: ComponentFixture<CreateOrEditComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [CreateOrEditComponent]
|
|
12
|
+
});
|
|
13
|
+
fixture = TestBed.createComponent(CreateOrEditComponent);
|
|
14
|
+
component = fixture.componentInstance;
|
|
15
|
+
fixture.detectChanges();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should create', () => {
|
|
19
|
+
expect(component).toBeTruthy();
|
|
20
|
+
});
|
|
21
|
+
});
|