@dignite-ng/expand.cms 0.0.33 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/cms-config.module.d.ts +8 -0
- package/config/{src/enums/index.ts → enums/index.d.ts} +1 -1
- package/config/enums/route-names.d.ts +7 -0
- package/config/index.d.ts +5 -0
- package/config/{src/providers/index.ts → providers/index.d.ts} +1 -1
- package/config/providers/route.provider.d.ts +9 -0
- package/config/{src/public-api.ts → public-api.d.ts} +3 -3
- package/esm2022/config/cms-config.module.mjs +19 -0
- package/esm2022/config/dignite-ng-expand.cms-config.mjs +5 -0
- package/esm2022/config/enums/index.mjs +2 -0
- package/esm2022/config/enums/route-names.mjs +2 -0
- package/esm2022/config/providers/index.mjs +2 -0
- package/esm2022/config/providers/route.provider.mjs +78 -0
- package/esm2022/config/public-api.mjs +4 -0
- package/esm2022/dignite-ng-expand.cms.mjs +5 -0
- package/esm2022/lib/cms-routing.module.mjs +100 -0
- package/esm2022/lib/cms.module.mjs +132 -0
- package/esm2022/lib/components/admin/domains/domains.component.mjs +90 -0
- package/esm2022/lib/components/admin/domains/index.mjs +2 -0
- package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +286 -0
- package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +32 -0
- package/esm2022/lib/components/admin/entries/create.component.mjs +108 -0
- package/esm2022/lib/components/admin/entries/edit.component.mjs +107 -0
- package/esm2022/lib/components/admin/entries/entries.component.mjs +211 -0
- package/esm2022/lib/components/admin/entries/index.mjs +5 -0
- package/esm2022/lib/components/admin/fields/create-field.component.mjs +82 -0
- package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +119 -0
- package/esm2022/lib/components/admin/fields/create-or-update-field-input-base.mjs +25 -0
- package/esm2022/lib/components/admin/fields/edit-field.component.mjs +113 -0
- package/esm2022/lib/components/admin/fields/field-group.component.mjs +124 -0
- package/esm2022/lib/components/admin/fields/fields.component.mjs +119 -0
- package/esm2022/lib/components/admin/fields/index.mjs +7 -0
- package/esm2022/lib/components/admin/index.mjs +6 -0
- package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +27 -0
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +71 -0
- package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +416 -0
- package/esm2022/lib/components/admin/sections/entry-types/index.mjs +3 -0
- package/esm2022/lib/components/admin/sections/index.mjs +4 -0
- package/esm2022/lib/components/admin/sections/sections.component.mjs +348 -0
- package/esm2022/lib/components/admin/sites/create-or-update-sites-input-base.mjs +18 -0
- package/esm2022/lib/components/admin/sites/index.mjs +3 -0
- package/esm2022/lib/components/admin/sites/sites.component.mjs +29 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +124 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +18 -0
- package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +116 -0
- package/esm2022/lib/components/dynamic-form/entry/index.mjs +4 -0
- package/esm2022/lib/components/dynamic-form/form-control-group.mjs +28 -0
- package/esm2022/lib/components/dynamic-form/index.mjs +5 -0
- package/esm2022/lib/components/dynamic-form/matrix/index.mjs +4 -0
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +228 -0
- package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +50 -0
- package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +115 -0
- package/esm2022/lib/components/dynamic-form/table/index.mjs +4 -0
- package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +174 -0
- package/esm2022/lib/components/dynamic-form/table/table-config.mjs +38 -0
- package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +121 -0
- package/esm2022/lib/components/index.mjs +3 -0
- package/esm2022/lib/constants/styles.mjs +18 -0
- package/esm2022/lib/enums/ecms-component.mjs +13 -0
- package/esm2022/lib/enums/index.mjs +2 -0
- package/esm2022/lib/proxy/admin/domains/domain-admin.service.mjs +34 -0
- package/esm2022/lib/proxy/admin/domains/index.mjs +3 -0
- package/esm2022/lib/proxy/admin/domains/models.mjs +2 -0
- package/esm2022/lib/proxy/admin/dynamic-forms/form-admin.service.mjs +24 -0
- package/esm2022/lib/proxy/admin/dynamic-forms/index.mjs +3 -0
- package/esm2022/lib/proxy/admin/dynamic-forms/models.mjs +2 -0
- package/esm2022/lib/proxy/admin/entries/entry-admin.service.mjs +72 -0
- package/esm2022/lib/proxy/admin/entries/index.mjs +3 -0
- package/esm2022/lib/proxy/admin/entries/models.mjs +2 -0
- package/esm2022/lib/proxy/admin/fields/field-admin.service.mjs +47 -0
- package/esm2022/lib/proxy/admin/fields/field-group-admin.service.mjs +43 -0
- package/esm2022/lib/proxy/admin/fields/index.mjs +4 -0
- package/esm2022/lib/proxy/admin/fields/models.mjs +2 -0
- package/esm2022/lib/proxy/admin/sections/entry-type-admin.service.mjs +43 -0
- package/esm2022/lib/proxy/admin/sections/index.mjs +4 -0
- package/esm2022/lib/proxy/admin/sections/models.mjs +2 -0
- package/esm2022/lib/proxy/admin/sections/section-admin.service.mjs +53 -0
- package/esm2022/lib/proxy/admin/settings/index.mjs +2 -0
- package/esm2022/lib/proxy/admin/settings/site-settings-admin.service.mjs +33 -0
- package/esm2022/lib/proxy/dignite/abp/data/models.mjs +2 -0
- package/esm2022/lib/proxy/entries/entry-status.enum.mjs +8 -0
- package/esm2022/lib/proxy/entries/index.mjs +2 -0
- package/esm2022/lib/proxy/fields/models.mjs +2 -0
- package/esm2022/lib/proxy/sections/index.mjs +3 -0
- package/esm2022/lib/proxy/sections/models.mjs +2 -0
- package/esm2022/lib/proxy/sections/section-type.enum.mjs +9 -0
- package/esm2022/lib/proxy/settings/models.mjs +2 -0
- package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +2 -0
- package/esm2022/lib/services/appent-content.mjs +15 -0
- package/esm2022/lib/services/cms-api.service.mjs +80 -0
- package/esm2022/lib/services/cms.service.mjs +23 -0
- package/esm2022/lib/services/field-abstracts.service.mjs +45 -0
- package/esm2022/lib/services/index.mjs +5 -0
- package/esm2022/lib/services/simple-reuse-strategy.mjs +43 -0
- package/esm2022/lib/services/update-list.service.mjs +19 -0
- package/esm2022/lib/toolbar/index.mjs +3 -0
- package/esm2022/lib/toolbar/toolbar-btn-default-action.mjs +160 -0
- package/esm2022/lib/toolbar/toolbar-config.mjs +79 -0
- package/esm2022/public-api.mjs +10 -0
- package/fesm2022/dignite-ng-expand.cms-config.mjs +101 -0
- package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -0
- package/fesm2022/dignite-ng-expand.cms.mjs +4097 -0
- package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/cms-routing.module.d.ts +7 -0
- package/lib/cms.module.d.ts +35 -0
- package/lib/components/admin/domains/domains.component.d.ts +21 -0
- package/lib/components/admin/domains/index.d.ts +1 -0
- package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +92 -0
- package/lib/components/admin/entries/create-or-update-entry-input-base.d.ts +23 -0
- package/lib/components/admin/entries/create.component.d.ts +40 -0
- package/lib/components/admin/entries/edit.component.d.ts +40 -0
- package/lib/components/admin/entries/entries.component.d.ts +66 -0
- package/lib/components/admin/entries/index.d.ts +4 -0
- package/lib/components/admin/fields/create-field.component.d.ts +31 -0
- package/lib/components/admin/fields/create-or-edit-field.component.d.ts +36 -0
- package/lib/components/admin/fields/create-or-update-field-input-base.d.ts +16 -0
- package/lib/components/admin/fields/edit-field.component.d.ts +40 -0
- package/lib/components/admin/fields/field-group.component.d.ts +51 -0
- package/lib/components/admin/fields/fields.component.d.ts +37 -0
- package/lib/components/admin/fields/index.d.ts +6 -0
- package/lib/components/admin/index.d.ts +5 -0
- package/lib/components/admin/sections/create-or-update-sections-input-base.d.ts +17 -0
- package/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.d.ts +38 -0
- package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +132 -0
- package/lib/components/admin/sections/entry-types/index.d.ts +2 -0
- package/lib/components/admin/sections/index.d.ts +3 -0
- package/lib/components/admin/sections/sections.component.d.ts +90 -0
- package/lib/components/admin/sites/create-or-update-sites-input-base.d.ts +8 -0
- package/lib/components/admin/sites/index.d.ts +2 -0
- package/lib/components/admin/sites/sites.component.d.ts +5 -0
- package/lib/components/dynamic-form/entry/entry-config.component.d.ts +39 -0
- package/lib/components/dynamic-form/entry/entry-config.d.ts +9 -0
- package/lib/components/dynamic-form/entry/entry-control.component.d.ts +35 -0
- package/lib/components/dynamic-form/entry/index.d.ts +3 -0
- package/lib/components/dynamic-form/form-control-group.d.ts +4 -0
- package/lib/components/dynamic-form/index.d.ts +4 -0
- package/lib/components/dynamic-form/matrix/index.d.ts +3 -0
- package/lib/components/dynamic-form/matrix/matrix-config.component.d.ts +73 -0
- package/lib/components/dynamic-form/matrix/matrix-config.d.ts +24 -0
- package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +39 -0
- package/lib/components/dynamic-form/table/index.d.ts +3 -0
- package/lib/components/dynamic-form/table/table-config.component.d.ts +58 -0
- package/lib/components/dynamic-form/table/table-config.d.ts +18 -0
- package/lib/components/dynamic-form/table/table-control.component.d.ts +39 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/constants/styles.d.ts +2 -0
- package/lib/enums/ecms-component.d.ts +11 -0
- package/lib/enums/index.d.ts +1 -0
- package/lib/proxy/admin/domains/domain-admin.service.d.ts +13 -0
- package/{src/lib/proxy/admin/domains/models.ts → lib/proxy/admin/domains/models.d.ts} +7 -9
- package/lib/proxy/admin/dynamic-forms/form-admin.service.d.ts +12 -0
- package/lib/proxy/admin/dynamic-forms/models.d.ts +4 -0
- package/lib/proxy/admin/entries/entry-admin.service.d.ts +22 -0
- package/lib/proxy/admin/entries/models.d.ts +60 -0
- package/lib/proxy/admin/fields/field-admin.service.d.ts +17 -0
- package/lib/proxy/admin/fields/field-group-admin.service.d.ts +16 -0
- package/{src/lib/proxy/admin/fields/models.ts → lib/proxy/admin/fields/models.d.ts} +34 -42
- package/lib/proxy/admin/sections/entry-type-admin.service.d.ts +15 -0
- package/{src/lib/proxy/admin/sections/models.ts → lib/proxy/admin/sections/models.d.ts} +67 -81
- package/lib/proxy/admin/sections/section-admin.service.d.ts +18 -0
- package/lib/proxy/admin/settings/site-settings-admin.service.d.ts +13 -0
- package/lib/proxy/dignite/abp/data/models.d.ts +3 -0
- package/lib/proxy/entries/entry-status.enum.d.ts +5 -0
- package/lib/proxy/fields/models.d.ts +8 -0
- package/lib/proxy/sections/models.d.ts +12 -0
- package/lib/proxy/sections/section-type.enum.d.ts +6 -0
- package/lib/proxy/settings/models.d.ts +5 -0
- package/{src/lib/proxy/volo/cms-kit/users/models.ts → lib/proxy/volo/cms-kit/users/models.d.ts} +7 -8
- package/lib/services/appent-content.d.ts +1 -0
- package/lib/services/cms-api.service.d.ts +20 -0
- package/lib/services/cms.service.d.ts +10 -0
- package/lib/services/field-abstracts.service.d.ts +20 -0
- package/lib/services/index.d.ts +4 -0
- package/lib/services/simple-reuse-strategy.d.ts +11 -0
- package/lib/services/update-list.service.d.ts +9 -0
- package/lib/toolbar/index.d.ts +2 -0
- package/lib/toolbar/toolbar-btn-default-action.d.ts +18 -0
- package/lib/toolbar/toolbar-config.d.ts +56 -0
- package/package.json +21 -6
- package/{src/public-api.ts → public-api.d.ts} +4 -10
- package/config/ng-package.json +0 -7
- package/config/src/cms-config.module.ts +0 -12
- package/config/src/enums/route-names.ts +0 -8
- package/config/src/providers/route.provider.ts +0 -82
- package/ng-package.json +0 -7
- package/src/lib/cms-routing.module.ts +0 -108
- package/src/lib/cms.module.ts +0 -108
- package/src/lib/components/admin/domains/domains.component.html +0 -19
- package/src/lib/components/admin/domains/domains.component.scss +0 -0
- package/src/lib/components/admin/domains/domains.component.spec.ts +0 -21
- package/src/lib/components/admin/domains/domains.component.ts +0 -99
- package/src/lib/components/admin/domains/index.ts +0 -1
- package/src/lib/components/admin/entries/create-or-edit-entries.component.html +0 -113
- package/src/lib/components/admin/entries/create-or-edit-entries.component.scss +0 -1
- package/src/lib/components/admin/entries/create-or-edit-entries.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/create-or-edit-entries.component.ts +0 -284
- package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +0 -33
- package/src/lib/components/admin/entries/create.component.html +0 -13
- package/src/lib/components/admin/entries/create.component.scss +0 -1
- package/src/lib/components/admin/entries/create.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/create.component.ts +0 -104
- package/src/lib/components/admin/entries/edit.component.html +0 -9
- package/src/lib/components/admin/entries/edit.component.scss +0 -1
- package/src/lib/components/admin/entries/edit.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/edit.component.ts +0 -98
- package/src/lib/components/admin/entries/entries.component.html +0 -112
- package/src/lib/components/admin/entries/entries.component.scss +0 -1
- package/src/lib/components/admin/entries/entries.component.spec.ts +0 -21
- package/src/lib/components/admin/entries/entries.component.ts +0 -219
- package/src/lib/components/admin/entries/index.ts +0 -4
- package/src/lib/components/admin/fields/create-field.component.html +0 -12
- package/src/lib/components/admin/fields/create-field.component.scss +0 -1
- package/src/lib/components/admin/fields/create-field.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/create-field.component.ts +0 -68
- package/src/lib/components/admin/fields/create-or-edit-field.component.html +0 -39
- package/src/lib/components/admin/fields/create-or-edit-field.component.scss +0 -0
- package/src/lib/components/admin/fields/create-or-edit-field.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/create-or-edit-field.component.ts +0 -116
- package/src/lib/components/admin/fields/create-or-update-field-input-base.ts +0 -33
- package/src/lib/components/admin/fields/edit-field.component.html +0 -13
- package/src/lib/components/admin/fields/edit-field.component.scss +0 -0
- package/src/lib/components/admin/fields/edit-field.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/edit-field.component.ts +0 -100
- package/src/lib/components/admin/fields/field-group.component.html +0 -69
- package/src/lib/components/admin/fields/field-group.component.scss +0 -0
- package/src/lib/components/admin/fields/field-group.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/field-group.component.ts +0 -132
- package/src/lib/components/admin/fields/fields.component.html +0 -74
- package/src/lib/components/admin/fields/fields.component.scss +0 -1
- package/src/lib/components/admin/fields/fields.component.spec.ts +0 -21
- package/src/lib/components/admin/fields/fields.component.ts +0 -111
- package/src/lib/components/admin/fields/index.ts +0 -6
- package/src/lib/components/admin/index.ts +0 -5
- package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +0 -36
- package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts +0 -79
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.html +0 -191
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.scss +0 -1
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.spec.ts +0 -21
- package/src/lib/components/admin/sections/entry-types/create-or-edit.component.ts +0 -408
- package/src/lib/components/admin/sections/entry-types/index.ts +0 -2
- package/src/lib/components/admin/sections/index.ts +0 -3
- package/src/lib/components/admin/sections/sections.component.html +0 -190
- package/src/lib/components/admin/sections/sections.component.scss +0 -1
- package/src/lib/components/admin/sections/sections.component.spec.ts +0 -21
- package/src/lib/components/admin/sections/sections.component.ts +0 -370
- package/src/lib/components/admin/sites/create-or-update-sites-input-base.ts +0 -18
- package/src/lib/components/admin/sites/index.ts +0 -2
- package/src/lib/components/admin/sites/sites.component.html +0 -136
- package/src/lib/components/admin/sites/sites.component.scss +0 -1
- package/src/lib/components/admin/sites/sites.component.spec.ts +0 -21
- package/src/lib/components/admin/sites/sites.component.ts +0 -250
- package/src/lib/components/dynamic-form/entry/entry-config.component.html +0 -36
- package/src/lib/components/dynamic-form/entry/entry-config.component.scss +0 -0
- package/src/lib/components/dynamic-form/entry/entry-config.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/entry/entry-config.component.ts +0 -115
- package/src/lib/components/dynamic-form/entry/entry-config.ts +0 -24
- package/src/lib/components/dynamic-form/entry/entry-control.component.html +0 -26
- package/src/lib/components/dynamic-form/entry/entry-control.component.scss +0 -1
- package/src/lib/components/dynamic-form/entry/entry-control.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/entry/entry-control.component.ts +0 -109
- package/src/lib/components/dynamic-form/entry/index.ts +0 -3
- package/src/lib/components/dynamic-form/form-control-group.ts +0 -27
- package/src/lib/components/dynamic-form/index.ts +0 -4
- package/src/lib/components/dynamic-form/matrix/index.ts +0 -3
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.html +0 -147
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.scss +0 -0
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/matrix/matrix-config.component.ts +0 -236
- package/src/lib/components/dynamic-form/matrix/matrix-config.ts +0 -63
- package/src/lib/components/dynamic-form/matrix/matrix-control.component.html +0 -42
- package/src/lib/components/dynamic-form/matrix/matrix-control.component.scss +0 -0
- package/src/lib/components/dynamic-form/matrix/matrix-control.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/matrix/matrix-control.component.ts +0 -104
- package/src/lib/components/dynamic-form/table/index.ts +0 -3
- package/src/lib/components/dynamic-form/table/table-config.component.html +0 -85
- package/src/lib/components/dynamic-form/table/table-config.component.scss +0 -10
- package/src/lib/components/dynamic-form/table/table-config.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/table/table-config.component.ts +0 -170
- package/src/lib/components/dynamic-form/table/table-config.ts +0 -45
- package/src/lib/components/dynamic-form/table/table-control.component.html +0 -54
- package/src/lib/components/dynamic-form/table/table-control.component.scss +0 -1
- package/src/lib/components/dynamic-form/table/table-control.component.spec.ts +0 -21
- package/src/lib/components/dynamic-form/table/table-control.component.ts +0 -115
- package/src/lib/components/index.ts +0 -2
- package/src/lib/constants/index.ts +0 -1
- package/src/lib/constants/styles.ts +0 -13
- package/src/lib/enums/ecms-component.ts +0 -11
- package/src/lib/enums/index.ts +0 -1
- package/src/lib/proxy/README.md +0 -17
- package/src/lib/proxy/admin/domains/domain-admin.service.ts +0 -38
- package/src/lib/proxy/admin/dynamic-forms/form-admin.service.ts +0 -21
- package/src/lib/proxy/admin/dynamic-forms/models.ts +0 -5
- package/src/lib/proxy/admin/entries/entry-admin.service.ts +0 -109
- package/src/lib/proxy/admin/entries/models.ts +0 -68
- package/src/lib/proxy/admin/fields/field-admin.service.ts +0 -64
- package/src/lib/proxy/admin/fields/field-group-admin.service.ts +0 -56
- package/src/lib/proxy/admin/index.ts +0 -7
- package/src/lib/proxy/admin/sections/entry-type-admin.service.ts +0 -55
- package/src/lib/proxy/admin/sections/section-admin.service.ts +0 -74
- package/src/lib/proxy/admin/settings/site-settings-admin.service.ts +0 -37
- package/src/lib/proxy/dignite/abp/data/index.ts +0 -1
- package/src/lib/proxy/dignite/abp/data/models.ts +0 -4
- package/src/lib/proxy/dignite/abp/index.ts +0 -2
- package/src/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.ts +0 -65
- package/src/lib/proxy/dignite/file-explorer/directories/index.ts +0 -2
- package/src/lib/proxy/dignite/file-explorer/directories/models.ts +0 -35
- package/src/lib/proxy/dignite/file-explorer/files/file-descriptor.service.ts +0 -86
- package/src/lib/proxy/dignite/file-explorer/files/index.ts +0 -2
- package/src/lib/proxy/dignite/file-explorer/files/models.ts +0 -58
- package/src/lib/proxy/dignite/file-explorer/index.ts +0 -3
- package/src/lib/proxy/dignite/index.ts +0 -3
- package/src/lib/proxy/entries/entry-status.enum.ts +0 -8
- package/src/lib/proxy/fields/index.ts +0 -1
- package/src/lib/proxy/fields/models.ts +0 -9
- package/src/lib/proxy/generate-proxy.json +0 -11425
- package/src/lib/proxy/index.ts +0 -9
- package/src/lib/proxy/microsoft/asp-net-core/index.ts +0 -2
- package/src/lib/proxy/microsoft/asp-net-core/mvc/index.ts +0 -1
- package/src/lib/proxy/microsoft/asp-net-core/mvc/models.ts +0 -12
- package/src/lib/proxy/microsoft/extensions/index.ts +0 -2
- package/src/lib/proxy/microsoft/extensions/primitives/index.ts +0 -1
- package/src/lib/proxy/microsoft/extensions/primitives/models.ts +0 -9
- package/src/lib/proxy/microsoft/index.ts +0 -4
- package/src/lib/proxy/microsoft/net/http/headers/index.ts +0 -1
- package/src/lib/proxy/microsoft/net/http/headers/models.ts +0 -7
- package/src/lib/proxy/microsoft/net/http/index.ts +0 -2
- package/src/lib/proxy/microsoft/net/index.ts +0 -2
- package/src/lib/proxy/sections/models.ts +0 -14
- package/src/lib/proxy/sections/section-type.enum.ts +0 -9
- package/src/lib/proxy/settings/index.ts +0 -1
- package/src/lib/proxy/settings/models.ts +0 -6
- package/src/lib/proxy/volo/abp/content/index.ts +0 -1
- package/src/lib/proxy/volo/abp/content/models.ts +0 -6
- package/src/lib/proxy/volo/abp/index.ts +0 -2
- package/src/lib/proxy/volo/cms-kit/index.ts +0 -2
- package/src/lib/proxy/volo/cms-kit/users/index.ts +0 -1
- package/src/lib/proxy/volo/index.ts +0 -3
- package/src/lib/proxy.zip +0 -0
- package/src/lib/services/appent-content.ts +0 -13
- package/src/lib/services/cms-api.service.ts +0 -71
- package/src/lib/services/cms.service.ts +0 -18
- package/src/lib/services/field-abstracts.service.ts +0 -40
- package/src/lib/services/index.ts +0 -4
- package/src/lib/services/simple-reuse-strategy.ts +0 -49
- package/src/lib/services/update-list.service.ts +0 -15
- package/src/lib/toolbar/index.ts +0 -2
- package/src/lib/toolbar/toolbar-btn-default-action.ts +0 -171
- package/src/lib/toolbar/toolbar-config.ts +0 -93
- package/src/test.ts +0 -26
- package/tsconfig.lib.json +0 -34
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
- /package/{src/lib/proxy/admin/domains/index.ts → lib/proxy/admin/domains/index.d.ts} +0 -0
- /package/{src/lib/proxy/admin/dynamic-forms/index.ts → lib/proxy/admin/dynamic-forms/index.d.ts} +0 -0
- /package/{src/lib/proxy/admin/entries/index.ts → lib/proxy/admin/entries/index.d.ts} +0 -0
- /package/{src/lib/proxy/admin/fields/index.ts → lib/proxy/admin/fields/index.d.ts} +0 -0
- /package/{src/lib/proxy/admin/sections/index.ts → lib/proxy/admin/sections/index.d.ts} +0 -0
- /package/{src/lib/proxy/admin/settings/index.ts → lib/proxy/admin/settings/index.d.ts} +0 -0
- /package/{src/lib/proxy/entries/index.ts → lib/proxy/entries/index.d.ts} +0 -0
- /package/{src/lib/proxy/sections/index.ts → lib/proxy/sections/index.d.ts} +0 -0
|
@@ -1,370 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ABP,
|
|
3
|
-
LIST_QUERY_DEBOUNCE_TIME,
|
|
4
|
-
ListService,
|
|
5
|
-
LocalizationService,
|
|
6
|
-
PagedResultDto,
|
|
7
|
-
} from '@abp/ng.core';
|
|
8
|
-
import { ToasterService, ConfirmationService, Confirmation } from '@abp/ng.theme.shared';
|
|
9
|
-
import { Component, ElementRef, OnInit, ViewChild, inject } from '@angular/core';
|
|
10
|
-
import {
|
|
11
|
-
AbstractControl,
|
|
12
|
-
FormBuilder,
|
|
13
|
-
FormControl,
|
|
14
|
-
FormGroup,
|
|
15
|
-
ValidationErrors,
|
|
16
|
-
ValidatorFn,
|
|
17
|
-
Validators,
|
|
18
|
-
} from '@angular/forms';
|
|
19
|
-
import {
|
|
20
|
-
EntryTypeAdminService,
|
|
21
|
-
GetSectionsInput,
|
|
22
|
-
SectionAdminService,
|
|
23
|
-
SectionDto,
|
|
24
|
-
} from '../../../proxy/admin/sections';
|
|
25
|
-
import { ColumnMode } from '@swimlane/ngx-datatable';
|
|
26
|
-
import { finalize } from 'rxjs/operators';
|
|
27
|
-
import { CreateOrUpdateSectionsInputBase } from './create-or-update-sections-input-base';
|
|
28
|
-
import { SectionType, sectionTypeOptions } from '../../../proxy/sections';
|
|
29
|
-
import { EXTENSIONS_IDENTIFIER } from '@abp/ng.theme.shared/extensions';
|
|
30
|
-
import { ECmsComponent } from '../../../enums';
|
|
31
|
-
import { CmsApiService } from '../../../services/cms-api.service';
|
|
32
|
-
import { Observable } from 'rxjs';
|
|
33
|
-
import { Router } from '@angular/router';
|
|
34
|
-
import { UpdateListService } from '../../../services/update-list.service';
|
|
35
|
-
|
|
36
|
-
@Component({
|
|
37
|
-
selector: 'cms-sections',
|
|
38
|
-
templateUrl: './sections.component.html',
|
|
39
|
-
styleUrls: ['./sections.component.scss'],
|
|
40
|
-
providers: [
|
|
41
|
-
// [Required]
|
|
42
|
-
ListService,
|
|
43
|
-
// [Optional]
|
|
44
|
-
// Provide this token if you want a different debounce time.
|
|
45
|
-
// Default is 300. Cannot be 0. Any value below 100 is not recommended.
|
|
46
|
-
{ provide: LIST_QUERY_DEBOUNCE_TIME, useValue: 500 },
|
|
47
|
-
{
|
|
48
|
-
provide: EXTENSIONS_IDENTIFIER,
|
|
49
|
-
useValue: ECmsComponent.Sections,
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
})
|
|
53
|
-
export class SectionsComponent implements OnInit {
|
|
54
|
-
constructor(
|
|
55
|
-
public readonly list: ListService,
|
|
56
|
-
private _SectionAdminService: SectionAdminService,
|
|
57
|
-
// private _SiteAdminService: SiteAdminService,
|
|
58
|
-
private toaster: ToasterService,
|
|
59
|
-
private confirmation: ConfirmationService,
|
|
60
|
-
private fb: FormBuilder,
|
|
61
|
-
public _EntryTypeAdminService: EntryTypeAdminService,
|
|
62
|
-
public _LocalizationService: LocalizationService,
|
|
63
|
-
public _CmsApiService: CmsApiService,
|
|
64
|
-
private router: Router
|
|
65
|
-
) { }
|
|
66
|
-
private _UpdateListService = inject(UpdateListService);
|
|
67
|
-
|
|
68
|
-
/**跳转编辑 */
|
|
69
|
-
jumpSectionsEdit(row, item) {
|
|
70
|
-
this.router.navigate([`/cms/admin/sections/${row.id}/entry-types/${item.id}/edit`], {});
|
|
71
|
-
}
|
|
72
|
-
/**跳转新建 */
|
|
73
|
-
jumpSectionsCreate(row) {
|
|
74
|
-
this.router.navigate([`/cms/admin/sections/${row.id}/entry-types/create`], {});
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**版块列表 */
|
|
78
|
-
siteList: any[] = [];
|
|
79
|
-
/*** */
|
|
80
|
-
ColumnMode = ColumnMode;
|
|
81
|
-
data: PagedResultDto<SectionDto> = {
|
|
82
|
-
items: [],
|
|
83
|
-
totalCount: 0,
|
|
84
|
-
};
|
|
85
|
-
/** */
|
|
86
|
-
filters = {} as GetSectionsInput;
|
|
87
|
-
/**获取页面列表 */
|
|
88
|
-
hookToQuery() {
|
|
89
|
-
const getData = (query: ABP.PageQueryParams) => this._SectionAdminService.getList({
|
|
90
|
-
...query,
|
|
91
|
-
...this.filters,
|
|
92
|
-
});
|
|
93
|
-
const setData = (list: PagedResultDto<SectionDto>) => (this.data = list);
|
|
94
|
-
this.list.hookToQuery(getData).subscribe(setData);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
async ngOnInit(): Promise<void> {
|
|
98
|
-
this.hookToQuery();
|
|
99
|
-
this._UpdateListService.updateListEvent.subscribe(() => {
|
|
100
|
-
this.list.get();
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**站点切换 */
|
|
105
|
-
siteIdChange() {
|
|
106
|
-
this.list.page = 0;
|
|
107
|
-
this.list.get();
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
/**创建版块模态框状态 */
|
|
112
|
-
visibleOpen: boolean = false;
|
|
113
|
-
|
|
114
|
-
/**用于确定模态的繁忙状态是否为真 */
|
|
115
|
-
modalBusy: boolean = false;
|
|
116
|
-
/**创建版块表单 */
|
|
117
|
-
createOrEditForm: FormGroup | undefined;
|
|
118
|
-
|
|
119
|
-
/**版块给定的表单值 */
|
|
120
|
-
selected: any;
|
|
121
|
-
|
|
122
|
-
_SectionType = SectionType;
|
|
123
|
-
_sectionTypeOptions = sectionTypeOptions;
|
|
124
|
-
|
|
125
|
-
/**表单控件模板-动态赋值表单控件 */
|
|
126
|
-
@ViewChild('createOrEditModalSubmitBtn', { static: false })
|
|
127
|
-
createOrEditModalSubmitBtn: ElementRef;
|
|
128
|
-
|
|
129
|
-
/**创建版块模态框状态改变 */
|
|
130
|
-
VisibleChange(event) {
|
|
131
|
-
if (!event) {
|
|
132
|
-
this.selected = '';
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
/**创建版块,打开模态框 */
|
|
137
|
-
createSectionBtn() {
|
|
138
|
-
this.visibleOpen = true;
|
|
139
|
-
this.createOrEditForm = this.fb.group(new CreateOrUpdateSectionsInputBase());
|
|
140
|
-
this.setAsyncValidatorsFn();
|
|
141
|
-
}
|
|
142
|
-
/**编辑版块,打开模态框 */
|
|
143
|
-
editSectionBtn(row) {
|
|
144
|
-
this.visibleOpen = true;
|
|
145
|
-
this.createOrEditForm = this.fb.group(new CreateOrUpdateSectionsInputBase());
|
|
146
|
-
this.setAsyncValidatorsFn();
|
|
147
|
-
this._SectionAdminService.get(row.id).subscribe(res => {
|
|
148
|
-
this.createOrEditForm.patchValue(res);
|
|
149
|
-
this.selected = res;
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
/**删除某个条目类型 */
|
|
153
|
-
deleteEntryType(row) {
|
|
154
|
-
this.confirmation
|
|
155
|
-
.warn(row.displayName, this._LocalizationService.instant(`AbpUi::ItemWillBeDeletedMessage`))
|
|
156
|
-
.subscribe((status: Confirmation.Status) => {
|
|
157
|
-
if (status == 'confirm') {
|
|
158
|
-
this._EntryTypeAdminService
|
|
159
|
-
.delete(row.id)
|
|
160
|
-
.pipe(finalize(() => { }))
|
|
161
|
-
.subscribe(res => {
|
|
162
|
-
this.toaster.success(this._LocalizationService.instant(`AbpUi::SuccessfullyDeleted`));
|
|
163
|
-
this.list.get();
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**表单保存提交 */
|
|
170
|
-
createOrEditSave() {
|
|
171
|
-
if (this.selected) {
|
|
172
|
-
return this.EditSave();
|
|
173
|
-
}
|
|
174
|
-
this.createSave();
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/** */
|
|
178
|
-
createSave() {
|
|
179
|
-
let input = this.createOrEditForm.value;
|
|
180
|
-
// input.siteId = this.filters.siteId;
|
|
181
|
-
if (!this.createOrEditForm.valid) return;
|
|
182
|
-
this.modalBusy = true;
|
|
183
|
-
this._SectionAdminService
|
|
184
|
-
.create(input)
|
|
185
|
-
.pipe(
|
|
186
|
-
finalize(() => {
|
|
187
|
-
this.modalBusy = false;
|
|
188
|
-
this.visibleOpen = false;
|
|
189
|
-
})
|
|
190
|
-
)
|
|
191
|
-
.subscribe(res => {
|
|
192
|
-
this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
|
|
193
|
-
this.list.get();
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
/**创建版块保存 */
|
|
197
|
-
EditSave() {
|
|
198
|
-
let input = this.createOrEditForm.value;
|
|
199
|
-
// input.siteId = this.filters.siteId;
|
|
200
|
-
input.concurrencyStamp = this.selected.concurrencyStamp;
|
|
201
|
-
if (!this.createOrEditForm.valid) return;
|
|
202
|
-
this.modalBusy = true;
|
|
203
|
-
this._SectionAdminService
|
|
204
|
-
.update(this.selected.id, input)
|
|
205
|
-
.pipe(
|
|
206
|
-
finalize(() => {
|
|
207
|
-
this.modalBusy = false;
|
|
208
|
-
this.visibleOpen = false;
|
|
209
|
-
})
|
|
210
|
-
)
|
|
211
|
-
.subscribe(res => {
|
|
212
|
-
this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
|
|
213
|
-
this.list.get();
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
/**删除版块 */
|
|
217
|
-
deletefield(row) {
|
|
218
|
-
this.confirmation
|
|
219
|
-
.warn(row.displayName, this._LocalizationService.instant(`AbpUi::ItemWillBeDeletedMessage`))
|
|
220
|
-
.subscribe((status: Confirmation.Status) => {
|
|
221
|
-
if (status == 'confirm') {
|
|
222
|
-
this._SectionAdminService
|
|
223
|
-
.delete(row.id)
|
|
224
|
-
.pipe(finalize(() => { }))
|
|
225
|
-
.subscribe(res => {
|
|
226
|
-
this.toaster.success(this._LocalizationService.instant(`AbpUi::SuccessfullyDeleted`));
|
|
227
|
-
this.list.get();
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/**name表单控件 */
|
|
234
|
-
get displayNameInput() {
|
|
235
|
-
return this.createOrEditForm.get('displayName');
|
|
236
|
-
}
|
|
237
|
-
/**name表单控件 */
|
|
238
|
-
get nameInput() {
|
|
239
|
-
return this.createOrEditForm.get('name');
|
|
240
|
-
}
|
|
241
|
-
/**route表单控件 */
|
|
242
|
-
get routeInput() {
|
|
243
|
-
return this.createOrEditForm.get('route');
|
|
244
|
-
}
|
|
245
|
-
/**route表单控件 */
|
|
246
|
-
get templateInput() {
|
|
247
|
-
return this.createOrEditForm.get('template');
|
|
248
|
-
}
|
|
249
|
-
/**route表单控件 */
|
|
250
|
-
get typeInput() {
|
|
251
|
-
return this.createOrEditForm.get('type');
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
radiochange() {
|
|
255
|
-
this.routeInput.patchValue(this.routeInput.value);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/**字段标签input失去标点生成字段名字 */
|
|
259
|
-
disPlayNameInputBlur(event) {
|
|
260
|
-
let value = event.target.value;
|
|
261
|
-
let pinyin = this._CmsApiService.chineseToPinyin(value);
|
|
262
|
-
let nameInput = this.nameInput;
|
|
263
|
-
let routeInput = this.routeInput;
|
|
264
|
-
let templateInput = this.templateInput;
|
|
265
|
-
if (nameInput.value) return;
|
|
266
|
-
nameInput.patchValue(pinyin);
|
|
267
|
-
if (routeInput.value) return;
|
|
268
|
-
routeInput.patchValue(pinyin + (this.typeInput.value === 0 ? '' : '/{slug}'));
|
|
269
|
-
if (templateInput.value) return;
|
|
270
|
-
templateInput.patchValue(pinyin + '/index');
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
/**设置字段控件异步验证 */
|
|
274
|
-
setAsyncValidatorsFn() {
|
|
275
|
-
this.createOrEditForm.setControl(
|
|
276
|
-
'name',
|
|
277
|
-
new FormControl(this.nameInput.value || '', {
|
|
278
|
-
validators: Validators.required,
|
|
279
|
-
asyncValidators: this.nameRepetitionAsyncValidator(),
|
|
280
|
-
})
|
|
281
|
-
);
|
|
282
|
-
this.createOrEditForm.setControl(
|
|
283
|
-
'route',
|
|
284
|
-
new FormControl(this.routeInput.value || '', {
|
|
285
|
-
validators: [Validators.required, this.forbiddenNameValidator()],
|
|
286
|
-
asyncValidators: [this.routeRepetitionAsyncValidator()],
|
|
287
|
-
})
|
|
288
|
-
);
|
|
289
|
-
}
|
|
290
|
-
forbiddenNameValidator(): ValidatorFn {
|
|
291
|
-
return (control: AbstractControl): ValidationErrors | null => {
|
|
292
|
-
let inputValue = control.value.toLocaleLowerCase();
|
|
293
|
-
let forbidden =
|
|
294
|
-
this.typeInput.value == 0 ? false : inputValue.includes('{slug}') ? false : true;
|
|
295
|
-
return forbidden
|
|
296
|
-
? {
|
|
297
|
-
repetition: this._LocalizationService.instant(
|
|
298
|
-
`Cms::RouteVerificationTips`,
|
|
299
|
-
this._LocalizationService.instant(
|
|
300
|
-
`Cms::Enum:SectionType:` + SectionType[this.typeInput.value]
|
|
301
|
-
),
|
|
302
|
-
'{slug}'
|
|
303
|
-
),
|
|
304
|
-
}
|
|
305
|
-
: null;
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
/**定义异步验证方法 */
|
|
310
|
-
nameRepetitionAsyncValidator() {
|
|
311
|
-
return (
|
|
312
|
-
ctrl: AbstractControl
|
|
313
|
-
): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => {
|
|
314
|
-
return new Promise(resolve => {
|
|
315
|
-
let subslug = this.createOrEditForm?.get('name');
|
|
316
|
-
if (subslug.value == this.selected?.name) {
|
|
317
|
-
resolve(null);
|
|
318
|
-
return;
|
|
319
|
-
}
|
|
320
|
-
this._SectionAdminService
|
|
321
|
-
.nameExists({
|
|
322
|
-
name: subslug.value,
|
|
323
|
-
})
|
|
324
|
-
.subscribe(res => {
|
|
325
|
-
if (res) {
|
|
326
|
-
resolve({
|
|
327
|
-
repetition: this._LocalizationService.instant(
|
|
328
|
-
`Cms::SectionName{0}AlreadyExist`,
|
|
329
|
-
ctrl.value
|
|
330
|
-
),
|
|
331
|
-
});
|
|
332
|
-
} else {
|
|
333
|
-
resolve(null);
|
|
334
|
-
}
|
|
335
|
-
});
|
|
336
|
-
});
|
|
337
|
-
};
|
|
338
|
-
}
|
|
339
|
-
/**定义异步验证方法 */
|
|
340
|
-
routeRepetitionAsyncValidator() {
|
|
341
|
-
return (
|
|
342
|
-
ctrl: AbstractControl
|
|
343
|
-
): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => {
|
|
344
|
-
return new Promise(resolve => {
|
|
345
|
-
let subslug = this.createOrEditForm?.get('route').value;
|
|
346
|
-
if (subslug == this.selected?.route) {
|
|
347
|
-
resolve(null);
|
|
348
|
-
return;
|
|
349
|
-
}
|
|
350
|
-
this._SectionAdminService
|
|
351
|
-
.routeExists({
|
|
352
|
-
// siteId: this.filters.siteId,
|
|
353
|
-
route: subslug,
|
|
354
|
-
})
|
|
355
|
-
.subscribe(res => {
|
|
356
|
-
if (res) {
|
|
357
|
-
resolve({
|
|
358
|
-
repetition: this._LocalizationService.instant(
|
|
359
|
-
`Cms::SectionRoute{0}AlreadyExist`,
|
|
360
|
-
ctrl.value
|
|
361
|
-
),
|
|
362
|
-
});
|
|
363
|
-
} else {
|
|
364
|
-
resolve(null);
|
|
365
|
-
}
|
|
366
|
-
});
|
|
367
|
-
});
|
|
368
|
-
};
|
|
369
|
-
}
|
|
370
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Validators } from "@angular/forms";
|
|
2
|
-
export class CreateOrUpdateSitesInputBase {
|
|
3
|
-
displayName: any = ['', [Validators.required]];
|
|
4
|
-
name: any = ['', [Validators.required]];
|
|
5
|
-
host: any = ['https://', [Validators.required]];
|
|
6
|
-
isActive: any = [true, []];
|
|
7
|
-
languages:any = [[], [Validators.required]]
|
|
8
|
-
constructor(data?: CreateOrUpdateSitesInputBase) {
|
|
9
|
-
if (data) {
|
|
10
|
-
for (const key in data) {
|
|
11
|
-
if (data.hasOwnProperty(key)) {
|
|
12
|
-
this[key] = data[key];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
<!-- <abp-page [title]="'Cms::Sites' | abpLocalization" [toolbar]="true">
|
|
2
|
-
<div class="sites-page">
|
|
3
|
-
<div class="card">
|
|
4
|
-
<div class="card-body px-2 py-sm-2 border-bottom">
|
|
5
|
-
<div class="input-group">
|
|
6
|
-
<input type="text" class="form-control" [(ngModel)]="filters.filter"
|
|
7
|
-
[placeholder]="'AbpUi::Search' | abpLocalization" />
|
|
8
|
-
<button class="btn btn-primary px-3" type="button" id="button-addon2" (click)="list.get()">
|
|
9
|
-
<i class="fa fa-search"></i>
|
|
10
|
-
</button>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="card mb-0">
|
|
15
|
-
<div class="card-body p-0">
|
|
16
|
-
<div class="table-responsive table-fixed-header">
|
|
17
|
-
<ngx-datatable class="material container-height" [rows]="data.items" [list]="list"
|
|
18
|
-
[columnMode]="'force'" [headerHeight]="50" [footerHeight]="50" rowHeight="auto"
|
|
19
|
-
[scrollbarV]="true" [virtualization]="false" [externalPaging]="true" [count]="data.totalCount">
|
|
20
|
-
<ngx-datatable-column [name]="'Cms::DisplayName' | abpLocalization" prop="displayName">
|
|
21
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
22
|
-
{{ value }}
|
|
23
|
-
</ng-template>
|
|
24
|
-
</ngx-datatable-column>
|
|
25
|
-
<ngx-datatable-column [name]="'Cms::Name' | abpLocalization" prop="name">
|
|
26
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
27
|
-
{{ value }}
|
|
28
|
-
</ng-template>
|
|
29
|
-
</ngx-datatable-column>
|
|
30
|
-
<ngx-datatable-column [name]="'Cms::IsActive' | abpLocalization" prop="isActive">
|
|
31
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
32
|
-
<i class="fas fa-check text-success" *ngIf="value"></i>
|
|
33
|
-
<i class="fas fa-times text-danger" *ngIf="!value"></i>
|
|
34
|
-
</ng-template>
|
|
35
|
-
</ngx-datatable-column>
|
|
36
|
-
<ngx-datatable-column [name]="'Cms::Host' | abpLocalization" prop="host">
|
|
37
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
38
|
-
{{ value }}
|
|
39
|
-
</ng-template>
|
|
40
|
-
</ngx-datatable-column>
|
|
41
|
-
<ngx-datatable-column [name]="'Cms::CreationTime' | abpLocalization" prop="creationTime">
|
|
42
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
43
|
-
{{ value | date : 'yyyy-MM-dd hh:mm:ss' }}
|
|
44
|
-
</ng-template>
|
|
45
|
-
</ngx-datatable-column>
|
|
46
|
-
<ngx-datatable-column [sortable]="false">
|
|
47
|
-
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
|
|
48
|
-
<div ngbDropdown container="body">
|
|
49
|
-
<button type="button" class="btn btn-outline-primary btn-sm" ngbDropdownToggle>
|
|
50
|
-
{{'AbpUi::Actions' | abpLocalization}}
|
|
51
|
-
</button>
|
|
52
|
-
<div ngbDropdownMenu>
|
|
53
|
-
<button ngbDropdownItem
|
|
54
|
-
(click)="EditSitesBtn(row)">{{'AbpUi::Edit' | abpLocalization}}</button>
|
|
55
|
-
<button ngbDropdownItem
|
|
56
|
-
(click)="deletefield(row)">{{'AbpUi::Delete' | abpLocalization}}</button>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
</ng-template>
|
|
60
|
-
</ngx-datatable-column>
|
|
61
|
-
</ngx-datatable>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
</div>
|
|
66
|
-
</abp-page>
|
|
67
|
-
<abp-modal [(visible)]="createSitesOpen" [busy]="modalBusy" (visibleChange)="createGroupVisibleChange($event)">
|
|
68
|
-
<ng-template #abpHeader>
|
|
69
|
-
<h3>{{selected?('AbpUi::Edit' | abpLocalization):('Cms::New' | abpLocalization)}}</h3>
|
|
70
|
-
</ng-template>
|
|
71
|
-
<ng-template #abpBody>
|
|
72
|
-
<ng-template #loaderRef>
|
|
73
|
-
<div class="text-center"><i class="fa fa-pulse fa-spinner" aria-hidden="true"></i></div>
|
|
74
|
-
</ng-template>
|
|
75
|
-
<ng-container *ngIf="createOrEditForm; else loaderRef">
|
|
76
|
-
<form class="sites-modal-form" #myForm="ngForm" [formGroup]="createOrEditForm"
|
|
77
|
-
(ngSubmit)="createOrEditSave()">
|
|
78
|
-
<button type="submit" #createModalSubmit style="display: none"></button>
|
|
79
|
-
<div class="mb-2">
|
|
80
|
-
<label class="form-label">{{'Cms::DisplayName' | abpLocalization}}</label>
|
|
81
|
-
<input type="text" class="form-control" formControlName="displayName"
|
|
82
|
-
(blur)="disPlayNameInputBlur($event)" />
|
|
83
|
-
</div>
|
|
84
|
-
<div class="mb-2">
|
|
85
|
-
<label class="form-label">{{'Cms::Name' | abpLocalization}}</label>
|
|
86
|
-
<input type="text" class="form-control" formControlName="name" />
|
|
87
|
-
<div class="text-danger invalid-feedback" *ngIf="nameInput.errors?.repetition">
|
|
88
|
-
{{nameInput.errors?.repetition}}
|
|
89
|
-
</div>
|
|
90
|
-
</div>
|
|
91
|
-
<div class="mb-2">
|
|
92
|
-
<label class="form-label">{{'Cms::Host' | abpLocalization}}</label>
|
|
93
|
-
<input type="text" class="form-control" formControlName="host" />
|
|
94
|
-
<div class="text-danger invalid-feedback" *ngIf="hostInput.errors?.repetition">
|
|
95
|
-
{{hostInput.errors?.repetition}}
|
|
96
|
-
</div>
|
|
97
|
-
</div>
|
|
98
|
-
<div class="mb-2">
|
|
99
|
-
<div class="form-check form-check-inline">
|
|
100
|
-
<input class="form-check-input" type="checkbox" value="true" formControlName="isActive"
|
|
101
|
-
id="flexRadioDefault1" />
|
|
102
|
-
<label class="form-check-label" for="flexRadioDefault1"> {{'Cms::IsActive' | abpLocalization}}
|
|
103
|
-
</label>
|
|
104
|
-
</div>
|
|
105
|
-
</div>
|
|
106
|
-
<div class="mb-2">
|
|
107
|
-
<label class="form-label">{{'Cms::Languages' | abpLocalization}}</label>
|
|
108
|
-
<ul class="list-group list-group-flush">
|
|
109
|
-
<ng-container *ngFor="let item of languages; let i = index">
|
|
110
|
-
<li class="list-group-item d-flex justify-content-between align-items-center">
|
|
111
|
-
<div>
|
|
112
|
-
<input class="form-check-input me-1" type="checkbox" [value]="item.cultureName"
|
|
113
|
-
id="firstRadio{{ i }}" [checked]="item.ischecked"
|
|
114
|
-
(change)="languagesChange($event);!item.ischecked" />
|
|
115
|
-
<label class="form-check-label" for="firstRadio{{ i }}">{{ item.displayName
|
|
116
|
-
}}</label>
|
|
117
|
-
</div>
|
|
118
|
-
<ng-container *ngIf="item.ischecked">
|
|
119
|
-
<div class="text-primary" *ngIf="item.isDefault">{{'Cms::Default' | abpLocalization}}
|
|
120
|
-
</div>
|
|
121
|
-
<div (click.stop)="setDefault(item)" *ngIf="!item.isDefault">
|
|
122
|
-
{{'Cms::SetDefault' | abpLocalization}}</div>
|
|
123
|
-
</ng-container>
|
|
124
|
-
</li>
|
|
125
|
-
</ng-container>
|
|
126
|
-
</ul>
|
|
127
|
-
</div>
|
|
128
|
-
</form>
|
|
129
|
-
</ng-container>
|
|
130
|
-
</ng-template>
|
|
131
|
-
<ng-template #abpFooter>
|
|
132
|
-
<button type="button" class="btn btn-secondary" abpClose>{{'AbpUi::Close' | abpLocalization}}</button>
|
|
133
|
-
<abp-button iconClass="fa fa-check"
|
|
134
|
-
(click)="createModalSubmit.nativeElement.click()">{{'AbpUi::Save' | abpLocalization}}</abp-button>
|
|
135
|
-
</ng-template>
|
|
136
|
-
</abp-modal> -->
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
::ng-deep.sites-page{.dignite_page{background:transparent}.list-group-flush>.list-group-item:first-child{border-top-width:var(--bs-list-group-border-width)}.container-height{height:calc(100vh - 220px)}}::ng-deep.sites-modal-form{.form-control{padding:.4rem 1.25rem}}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { SitesComponent } from './sites.component';
|
|
4
|
-
|
|
5
|
-
describe('SitesComponent', () => {
|
|
6
|
-
let component: SitesComponent;
|
|
7
|
-
let fixture: ComponentFixture<SitesComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
TestBed.configureTestingModule({
|
|
11
|
-
declarations: [SitesComponent]
|
|
12
|
-
});
|
|
13
|
-
fixture = TestBed.createComponent(SitesComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|