@dignite-ng/expand.cms 2.0.0-rc.10 → 2.0.0-rc.12

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.
Files changed (323) hide show
  1. package/config/cms-config.module.d.ts +8 -0
  2. package/config/{src/enums/index.ts → enums/index.d.ts} +1 -1
  3. package/config/enums/route-names.d.ts +7 -0
  4. package/config/index.d.ts +5 -0
  5. package/config/{src/providers/index.ts → providers/index.d.ts} +1 -1
  6. package/config/providers/route.provider.d.ts +9 -0
  7. package/config/{src/public-api.ts → public-api.d.ts} +3 -3
  8. package/esm2022/config/cms-config.module.mjs +19 -0
  9. package/esm2022/config/dignite-ng-expand.cms-config.mjs +5 -0
  10. package/esm2022/config/enums/index.mjs +2 -0
  11. package/esm2022/config/enums/route-names.mjs +9 -0
  12. package/esm2022/config/providers/index.mjs +2 -0
  13. package/esm2022/config/providers/route.provider.mjs +60 -0
  14. package/esm2022/config/public-api.mjs +4 -0
  15. package/esm2022/dignite-ng-expand.cms.mjs +5 -0
  16. package/esm2022/lib/cms-routing.module.mjs +94 -0
  17. package/esm2022/lib/cms.module.mjs +146 -0
  18. package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +226 -0
  19. package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +25 -0
  20. package/esm2022/lib/components/admin/entries/create.component.mjs +136 -0
  21. package/esm2022/lib/components/admin/entries/edit.component.mjs +138 -0
  22. package/esm2022/lib/components/admin/entries/entries.component.mjs +367 -0
  23. package/esm2022/lib/components/admin/entries/index.mjs +5 -0
  24. package/esm2022/lib/components/admin/fields/create-field.component.mjs +87 -0
  25. package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +116 -0
  26. package/esm2022/lib/components/admin/fields/create-or-update-field-input-base.mjs +25 -0
  27. package/esm2022/lib/components/admin/fields/edit-field.component.mjs +109 -0
  28. package/esm2022/lib/components/admin/fields/field-group.component.mjs +131 -0
  29. package/esm2022/lib/components/admin/fields/fields.component.mjs +107 -0
  30. package/esm2022/lib/components/admin/fields/index.mjs +7 -0
  31. package/esm2022/lib/components/admin/index.mjs +4 -0
  32. package/esm2022/lib/components/admin/sections/create-or-edit-sections-modal.component.mjs +210 -0
  33. package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +22 -0
  34. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +47 -0
  35. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +423 -0
  36. package/esm2022/lib/components/admin/sections/entry-types/index.mjs +3 -0
  37. package/esm2022/lib/components/admin/sections/index.mjs +4 -0
  38. package/esm2022/lib/components/admin/sections/sections.component.mjs +138 -0
  39. package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +117 -0
  40. package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +18 -0
  41. package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +105 -0
  42. package/esm2022/lib/components/dynamic-form/entry/entry-view.component.mjs +60 -0
  43. package/esm2022/lib/components/dynamic-form/entry/index.mjs +4 -0
  44. package/esm2022/lib/components/dynamic-form/form-control-group.mjs +34 -0
  45. package/esm2022/lib/components/dynamic-form/index.mjs +5 -0
  46. package/esm2022/lib/components/dynamic-form/matrix/index.mjs +4 -0
  47. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +219 -0
  48. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +50 -0
  49. package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +108 -0
  50. package/esm2022/lib/components/dynamic-form/matrix/matrix-view.component.mjs +40 -0
  51. package/esm2022/lib/components/dynamic-form/table/index.mjs +4 -0
  52. package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +158 -0
  53. package/esm2022/lib/components/dynamic-form/table/table-config.mjs +38 -0
  54. package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +118 -0
  55. package/esm2022/lib/components/dynamic-form/table/table-view.component.mjs +40 -0
  56. package/esm2022/lib/components/index.mjs +3 -0
  57. package/esm2022/lib/constants/styles.mjs +19 -0
  58. package/esm2022/lib/enums/ecms-component.mjs +13 -0
  59. package/esm2022/lib/enums/index.mjs +2 -0
  60. package/esm2022/lib/proxy/dignite/abp/data/models.mjs +2 -0
  61. package/esm2022/lib/proxy/dignite/abp/regionalization-management/index.mjs +3 -0
  62. package/esm2022/lib/proxy/dignite/abp/regionalization-management/models.mjs +2 -0
  63. package/esm2022/lib/proxy/dignite/abp/regionalization-management/regionalization.service.mjs +27 -0
  64. package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.mjs +22 -0
  65. package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/index.mjs +3 -0
  66. package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/models.mjs +2 -0
  67. package/esm2022/lib/proxy/dignite/cms/admin/entries/entry-admin.service.mjs +70 -0
  68. package/esm2022/lib/proxy/dignite/cms/admin/entries/index.mjs +3 -0
  69. package/esm2022/lib/proxy/dignite/cms/admin/entries/models.mjs +2 -0
  70. package/esm2022/lib/proxy/dignite/cms/admin/fields/field-admin.service.mjs +45 -0
  71. package/esm2022/lib/proxy/dignite/cms/admin/fields/field-group-admin.service.mjs +41 -0
  72. package/esm2022/lib/proxy/dignite/cms/admin/fields/index.mjs +4 -0
  73. package/esm2022/lib/proxy/dignite/cms/admin/fields/models.mjs +2 -0
  74. package/esm2022/lib/proxy/dignite/cms/admin/sections/entry-type-admin.service.mjs +41 -0
  75. package/esm2022/lib/proxy/dignite/cms/admin/sections/index.mjs +4 -0
  76. package/esm2022/lib/proxy/dignite/cms/admin/sections/models.mjs +2 -0
  77. package/esm2022/lib/proxy/dignite/cms/admin/sections/section-admin.service.mjs +51 -0
  78. package/esm2022/lib/proxy/dignite/cms/entries/entry-status.enum.mjs +8 -0
  79. package/esm2022/lib/proxy/dignite/cms/entries/index.mjs +2 -0
  80. package/esm2022/lib/proxy/dignite/cms/fields/models.mjs +2 -0
  81. package/esm2022/lib/proxy/dignite/cms/sections/index.mjs +3 -0
  82. package/esm2022/lib/proxy/dignite/cms/sections/models.mjs +2 -0
  83. package/esm2022/lib/proxy/dignite/cms/sections/section-type.enum.mjs +9 -0
  84. package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +2 -0
  85. package/esm2022/lib/resolvers/extensions-props-action-token.resolver.mjs +136 -0
  86. package/esm2022/lib/resolvers/page-default-toolbar-actions.mjs +160 -0
  87. package/esm2022/lib/resolvers/table-default-entity-actions.mjs +28 -0
  88. package/esm2022/lib/resolvers/table-default-entity-props.mjs +53 -0
  89. package/esm2022/lib/services/appent-content.mjs +15 -0
  90. package/esm2022/lib/services/cms-api.service.mjs +93 -0
  91. package/esm2022/lib/services/cms.service.mjs +21 -0
  92. package/esm2022/lib/services/field-abstracts.service.mjs +42 -0
  93. package/esm2022/lib/services/form-controls.service.mjs +40 -0
  94. package/esm2022/lib/services/index.mjs +4 -0
  95. package/esm2022/public-api.mjs +7 -0
  96. package/fesm2022/dignite-ng-expand.cms-config.mjs +92 -0
  97. package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -0
  98. package/fesm2022/dignite-ng-expand.cms.mjs +4250 -0
  99. package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -0
  100. package/index.d.ts +5 -0
  101. package/lib/cms-routing.module.d.ts +7 -0
  102. package/lib/cms.module.d.ts +40 -0
  103. package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +63 -0
  104. package/lib/components/admin/entries/create-or-update-entry-input-base.d.ts +23 -0
  105. package/lib/components/admin/entries/create.component.d.ts +50 -0
  106. package/lib/components/admin/entries/edit.component.d.ts +53 -0
  107. package/lib/components/admin/entries/entries.component.d.ts +101 -0
  108. package/lib/components/admin/entries/index.d.ts +4 -0
  109. package/lib/components/admin/fields/create-field.component.d.ts +37 -0
  110. package/lib/components/admin/fields/create-or-edit-field.component.d.ts +37 -0
  111. package/lib/components/admin/fields/create-or-update-field-input-base.d.ts +16 -0
  112. package/lib/components/admin/fields/edit-field.component.d.ts +46 -0
  113. package/lib/components/admin/fields/field-group.component.d.ts +58 -0
  114. package/lib/components/admin/fields/fields.component.d.ts +35 -0
  115. package/lib/components/admin/fields/index.d.ts +6 -0
  116. package/lib/components/admin/index.d.ts +3 -0
  117. package/lib/components/admin/sections/create-or-edit-sections-modal.component.d.ts +49 -0
  118. package/lib/components/admin/sections/create-or-update-sections-input-base.d.ts +20 -0
  119. package/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.d.ts +28 -0
  120. package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +147 -0
  121. package/lib/components/admin/sections/entry-types/index.d.ts +2 -0
  122. package/lib/components/admin/sections/index.d.ts +3 -0
  123. package/lib/components/admin/sections/sections.component.d.ts +46 -0
  124. package/lib/components/dynamic-form/entry/entry-config.component.d.ts +40 -0
  125. package/lib/components/dynamic-form/entry/entry-config.d.ts +9 -0
  126. package/lib/components/dynamic-form/entry/entry-control.component.d.ts +36 -0
  127. package/lib/components/dynamic-form/entry/entry-view.component.d.ts +22 -0
  128. package/lib/components/dynamic-form/entry/index.d.ts +3 -0
  129. package/lib/components/dynamic-form/form-control-group.d.ts +4 -0
  130. package/lib/components/dynamic-form/index.d.ts +4 -0
  131. package/lib/components/dynamic-form/matrix/index.d.ts +3 -0
  132. package/lib/components/dynamic-form/matrix/matrix-config.component.d.ts +74 -0
  133. package/lib/components/dynamic-form/matrix/matrix-config.d.ts +24 -0
  134. package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +42 -0
  135. package/lib/components/dynamic-form/matrix/matrix-view.component.d.ts +17 -0
  136. package/lib/components/dynamic-form/table/index.d.ts +3 -0
  137. package/lib/components/dynamic-form/table/table-config.component.d.ts +59 -0
  138. package/lib/components/dynamic-form/table/table-config.d.ts +18 -0
  139. package/lib/components/dynamic-form/table/table-control.component.d.ts +42 -0
  140. package/lib/components/dynamic-form/table/table-view.component.d.ts +17 -0
  141. package/lib/components/index.d.ts +2 -0
  142. package/lib/constants/styles.d.ts +2 -0
  143. package/lib/enums/ecms-component.d.ts +11 -0
  144. package/lib/enums/index.d.ts +1 -0
  145. package/lib/proxy/dignite/abp/data/models.d.ts +3 -0
  146. package/lib/proxy/dignite/abp/regionalization-management/models.d.ts +8 -0
  147. package/lib/proxy/dignite/abp/regionalization-management/regionalization.service.d.ts +12 -0
  148. package/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.d.ts +12 -0
  149. package/lib/proxy/dignite/cms/admin/dynamic-forms/models.d.ts +5 -0
  150. package/lib/proxy/dignite/cms/admin/entries/entry-admin.service.d.ts +22 -0
  151. package/lib/proxy/dignite/cms/admin/entries/models.d.ts +61 -0
  152. package/lib/proxy/dignite/cms/admin/fields/field-admin.service.d.ts +17 -0
  153. package/lib/proxy/dignite/cms/admin/fields/field-group-admin.service.d.ts +16 -0
  154. package/{src/lib/proxy/dignite/cms/admin/fields/models.ts → lib/proxy/dignite/cms/admin/fields/models.d.ts} +34 -42
  155. package/lib/proxy/dignite/cms/admin/sections/entry-type-admin.service.d.ts +15 -0
  156. package/{src/lib/proxy/dignite/cms/admin/sections/models.ts → lib/proxy/dignite/cms/admin/sections/models.d.ts} +68 -82
  157. package/lib/proxy/dignite/cms/admin/sections/section-admin.service.d.ts +18 -0
  158. package/lib/proxy/dignite/cms/entries/entry-status.enum.d.ts +5 -0
  159. package/lib/proxy/dignite/cms/fields/models.d.ts +8 -0
  160. package/lib/proxy/dignite/cms/sections/models.d.ts +13 -0
  161. package/lib/proxy/dignite/cms/sections/section-type.enum.d.ts +6 -0
  162. package/{src/lib/proxy/volo/cms-kit/users/models.ts → lib/proxy/volo/cms-kit/users/models.d.ts} +7 -8
  163. package/lib/resolvers/extensions-props-action-token.resolver.d.ts +75 -0
  164. package/lib/resolvers/page-default-toolbar-actions.d.ts +18 -0
  165. package/lib/resolvers/table-default-entity-actions.d.ts +5 -0
  166. package/lib/resolvers/table-default-entity-props.d.ts +5 -0
  167. package/lib/services/appent-content.d.ts +1 -0
  168. package/lib/services/cms-api.service.d.ts +23 -0
  169. package/lib/services/cms.service.d.ts +10 -0
  170. package/lib/services/field-abstracts.service.d.ts +19 -0
  171. package/lib/services/form-controls.service.d.ts +16 -0
  172. package/lib/services/index.d.ts +3 -0
  173. package/package.json +22 -7
  174. package/{src/public-api.ts → public-api.d.ts} +3 -7
  175. package/config/ng-package.json +0 -6
  176. package/config/src/cms-config.module.ts +0 -13
  177. package/config/src/enums/route-names.ts +0 -7
  178. package/config/src/providers/route.provider.ts +0 -68
  179. package/ng-package.json +0 -10
  180. package/src/lib/cms-routing.module.ts +0 -102
  181. package/src/lib/cms.module.ts +0 -113
  182. package/src/lib/components/admin/entries/create-or-edit-entries.component.html +0 -137
  183. package/src/lib/components/admin/entries/create-or-edit-entries.component.scss +0 -0
  184. package/src/lib/components/admin/entries/create-or-edit-entries.component.spec.ts +0 -21
  185. package/src/lib/components/admin/entries/create-or-edit-entries.component.ts +0 -216
  186. package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +0 -26
  187. package/src/lib/components/admin/entries/create.component.html +0 -16
  188. package/src/lib/components/admin/entries/create.component.scss +0 -0
  189. package/src/lib/components/admin/entries/create.component.spec.ts +0 -21
  190. package/src/lib/components/admin/entries/create.component.ts +0 -130
  191. package/src/lib/components/admin/entries/edit.component.html +0 -9
  192. package/src/lib/components/admin/entries/edit.component.scss +0 -0
  193. package/src/lib/components/admin/entries/edit.component.spec.ts +0 -21
  194. package/src/lib/components/admin/entries/edit.component.ts +0 -134
  195. package/src/lib/components/admin/entries/entries.component.html +0 -225
  196. package/src/lib/components/admin/entries/entries.component.scss +0 -109
  197. package/src/lib/components/admin/entries/entries.component.spec.ts +0 -21
  198. package/src/lib/components/admin/entries/entries.component.ts +0 -394
  199. package/src/lib/components/admin/entries/index.ts +0 -4
  200. package/src/lib/components/admin/fields/create-field.component.html +0 -12
  201. package/src/lib/components/admin/fields/create-field.component.scss +0 -1
  202. package/src/lib/components/admin/fields/create-field.component.spec.ts +0 -21
  203. package/src/lib/components/admin/fields/create-field.component.ts +0 -85
  204. package/src/lib/components/admin/fields/create-or-edit-field.component.html +0 -39
  205. package/src/lib/components/admin/fields/create-or-edit-field.component.scss +0 -0
  206. package/src/lib/components/admin/fields/create-or-edit-field.component.spec.ts +0 -21
  207. package/src/lib/components/admin/fields/create-or-edit-field.component.ts +0 -140
  208. package/src/lib/components/admin/fields/create-or-update-field-input-base.ts +0 -33
  209. package/src/lib/components/admin/fields/edit-field.component.html +0 -14
  210. package/src/lib/components/admin/fields/edit-field.component.scss +0 -0
  211. package/src/lib/components/admin/fields/edit-field.component.spec.ts +0 -21
  212. package/src/lib/components/admin/fields/edit-field.component.ts +0 -112
  213. package/src/lib/components/admin/fields/field-group.component.html +0 -69
  214. package/src/lib/components/admin/fields/field-group.component.scss +0 -0
  215. package/src/lib/components/admin/fields/field-group.component.spec.ts +0 -21
  216. package/src/lib/components/admin/fields/field-group.component.ts +0 -151
  217. package/src/lib/components/admin/fields/fields.component.html +0 -25
  218. package/src/lib/components/admin/fields/fields.component.scss +0 -1
  219. package/src/lib/components/admin/fields/fields.component.spec.ts +0 -21
  220. package/src/lib/components/admin/fields/fields.component.ts +0 -109
  221. package/src/lib/components/admin/fields/index.ts +0 -6
  222. package/src/lib/components/admin/index.ts +0 -3
  223. package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.html +0 -81
  224. package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.scss +0 -0
  225. package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.spec.ts +0 -23
  226. package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.ts +0 -239
  227. package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +0 -23
  228. package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts +0 -52
  229. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.html +0 -195
  230. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.scss +0 -1
  231. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.spec.ts +0 -21
  232. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.ts +0 -442
  233. package/src/lib/components/admin/sections/entry-types/index.ts +0 -2
  234. package/src/lib/components/admin/sections/index.ts +0 -3
  235. package/src/lib/components/admin/sections/sections.component.html +0 -189
  236. package/src/lib/components/admin/sections/sections.component.scss +0 -1
  237. package/src/lib/components/admin/sections/sections.component.spec.ts +0 -21
  238. package/src/lib/components/admin/sections/sections.component.ts +0 -136
  239. package/src/lib/components/dynamic-form/entry/entry-config.component.html +0 -26
  240. package/src/lib/components/dynamic-form/entry/entry-config.component.scss +0 -27
  241. package/src/lib/components/dynamic-form/entry/entry-config.component.spec.ts +0 -21
  242. package/src/lib/components/dynamic-form/entry/entry-config.component.ts +0 -119
  243. package/src/lib/components/dynamic-form/entry/entry-config.ts +0 -22
  244. package/src/lib/components/dynamic-form/entry/entry-control.component.html +0 -25
  245. package/src/lib/components/dynamic-form/entry/entry-control.component.scss +0 -35
  246. package/src/lib/components/dynamic-form/entry/entry-control.component.spec.ts +0 -21
  247. package/src/lib/components/dynamic-form/entry/entry-control.component.ts +0 -111
  248. package/src/lib/components/dynamic-form/entry/index.ts +0 -3
  249. package/src/lib/components/dynamic-form/form-control-group.ts +0 -27
  250. package/src/lib/components/dynamic-form/index.ts +0 -4
  251. package/src/lib/components/dynamic-form/matrix/index.ts +0 -3
  252. package/src/lib/components/dynamic-form/matrix/matrix-config.component.html +0 -148
  253. package/src/lib/components/dynamic-form/matrix/matrix-config.component.scss +0 -0
  254. package/src/lib/components/dynamic-form/matrix/matrix-config.component.spec.ts +0 -21
  255. package/src/lib/components/dynamic-form/matrix/matrix-config.component.ts +0 -244
  256. package/src/lib/components/dynamic-form/matrix/matrix-config.ts +0 -63
  257. package/src/lib/components/dynamic-form/matrix/matrix-control.component.html +0 -42
  258. package/src/lib/components/dynamic-form/matrix/matrix-control.component.scss +0 -0
  259. package/src/lib/components/dynamic-form/matrix/matrix-control.component.spec.ts +0 -21
  260. package/src/lib/components/dynamic-form/matrix/matrix-control.component.ts +0 -118
  261. package/src/lib/components/dynamic-form/table/index.ts +0 -3
  262. package/src/lib/components/dynamic-form/table/table-config.component.html +0 -85
  263. package/src/lib/components/dynamic-form/table/table-config.component.scss +0 -10
  264. package/src/lib/components/dynamic-form/table/table-config.component.spec.ts +0 -21
  265. package/src/lib/components/dynamic-form/table/table-config.component.ts +0 -177
  266. package/src/lib/components/dynamic-form/table/table-config.ts +0 -45
  267. package/src/lib/components/dynamic-form/table/table-control.component.html +0 -54
  268. package/src/lib/components/dynamic-form/table/table-control.component.scss +0 -1
  269. package/src/lib/components/dynamic-form/table/table-control.component.spec.ts +0 -21
  270. package/src/lib/components/dynamic-form/table/table-control.component.ts +0 -127
  271. package/src/lib/components/index.ts +0 -2
  272. package/src/lib/constants/index.ts +0 -1
  273. package/src/lib/constants/styles.ts +0 -18
  274. package/src/lib/enums/ecms-component.ts +0 -11
  275. package/src/lib/enums/index.ts +0 -1
  276. package/src/lib/proxy/README.md +0 -17
  277. package/src/lib/proxy/dignite/abp/data/index.ts +0 -1
  278. package/src/lib/proxy/dignite/abp/data/models.ts +0 -4
  279. package/src/lib/proxy/dignite/abp/index.ts +0 -3
  280. package/src/lib/proxy/dignite/abp/regionalization-management/models.ts +0 -10
  281. package/src/lib/proxy/dignite/abp/regionalization-management/regionalization.service.ts +0 -29
  282. package/src/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.ts +0 -20
  283. package/src/lib/proxy/dignite/cms/admin/dynamic-forms/models.ts +0 -6
  284. package/src/lib/proxy/dignite/cms/admin/entries/entry-admin.service.ts +0 -109
  285. package/src/lib/proxy/dignite/cms/admin/entries/models.ts +0 -69
  286. package/src/lib/proxy/dignite/cms/admin/fields/field-admin.service.ts +0 -64
  287. package/src/lib/proxy/dignite/cms/admin/fields/field-group-admin.service.ts +0 -56
  288. package/src/lib/proxy/dignite/cms/admin/index.ts +0 -5
  289. package/src/lib/proxy/dignite/cms/admin/sections/entry-type-admin.service.ts +0 -55
  290. package/src/lib/proxy/dignite/cms/admin/sections/section-admin.service.ts +0 -74
  291. package/src/lib/proxy/dignite/cms/entries/entry-status.enum.ts +0 -8
  292. package/src/lib/proxy/dignite/cms/fields/index.ts +0 -1
  293. package/src/lib/proxy/dignite/cms/fields/models.ts +0 -9
  294. package/src/lib/proxy/dignite/cms/index.ts +0 -5
  295. package/src/lib/proxy/dignite/cms/sections/models.ts +0 -15
  296. package/src/lib/proxy/dignite/cms/sections/section-type.enum.ts +0 -9
  297. package/src/lib/proxy/dignite/index.ts +0 -3
  298. package/src/lib/proxy/generate-proxy.json +0 -54593
  299. package/src/lib/proxy/index.ts +0 -3
  300. package/src/lib/proxy/volo/cms-kit/index.ts +0 -2
  301. package/src/lib/proxy/volo/cms-kit/users/index.ts +0 -1
  302. package/src/lib/proxy/volo/index.ts +0 -2
  303. package/src/lib/resolvers/extensions-props-action-token.resolver.ts +0 -182
  304. package/src/lib/resolvers/page-default-toolbar-actions.ts +0 -173
  305. package/src/lib/resolvers/table-default-entity-actions.ts +0 -29
  306. package/src/lib/resolvers/table-default-entity-props.ts +0 -62
  307. package/src/lib/services/appent-content.ts +0 -13
  308. package/src/lib/services/cms-api.service.ts +0 -90
  309. package/src/lib/services/cms.service.ts +0 -18
  310. package/src/lib/services/field-abstracts.service.ts +0 -39
  311. package/src/lib/services/index.ts +0 -3
  312. package/src/lib/services/validator.ts +0 -10
  313. package/src/test.ts +0 -26
  314. package/tsconfig.lib.json +0 -16
  315. package/tsconfig.lib.prod.json +0 -10
  316. package/tsconfig.spec.json +0 -17
  317. /package/{src/lib/proxy/dignite/abp/regionalization-management/index.ts → lib/proxy/dignite/abp/regionalization-management/index.d.ts} +0 -0
  318. /package/{src/lib/proxy/dignite/cms/admin/dynamic-forms/index.ts → lib/proxy/dignite/cms/admin/dynamic-forms/index.d.ts} +0 -0
  319. /package/{src/lib/proxy/dignite/cms/admin/entries/index.ts → lib/proxy/dignite/cms/admin/entries/index.d.ts} +0 -0
  320. /package/{src/lib/proxy/dignite/cms/admin/fields/index.ts → lib/proxy/dignite/cms/admin/fields/index.d.ts} +0 -0
  321. /package/{src/lib/proxy/dignite/cms/admin/sections/index.ts → lib/proxy/dignite/cms/admin/sections/index.d.ts} +0 -0
  322. /package/{src/lib/proxy/dignite/cms/entries/index.ts → lib/proxy/dignite/cms/entries/index.d.ts} +0 -0
  323. /package/{src/lib/proxy/dignite/cms/sections/index.ts → lib/proxy/dignite/cms/sections/index.d.ts} +0 -0
@@ -1,137 +0,0 @@
1
- <form [formGroup]="formEntity">
2
- <div class="row">
3
- <div class="col-md-8">
4
- <div class="card">
5
- <div class="card-body">
6
- <div class="mb-3">
7
- <div class="form-label">{{'Cms::Title' | abpLocalization}}</div>
8
- <input type="text" class="form-control" formControlName="title"
9
- (blur)="setTitleToSlugBlur($event)">
10
- </div>
11
- <ng-container *ngIf="isLoad">
12
- <ng-container *ngFor="let item of showEntryType?.fieldTabs;let i =index">
13
- <ng-container *ngFor="let el of item.fields;let i1 =index">
14
- <ng-container *ngIf="el&&formEntity">
15
- <df-dynamic [fields]="el"
16
- [selected]="entryInfo ? entryInfo.extraProperties[el.field.name] : ''"
17
- [parentFiledName]="'extraProperties'"
18
- [culture]="cultureInput.value" [entity]="formEntity"></df-dynamic>
19
- </ng-container>
20
- </ng-container>
21
- </ng-container>
22
- </ng-container>
23
- </div>
24
- </div>
25
- </div>
26
- <div class="col-md-4">
27
- <div class="card">
28
- <div class="card-body">
29
- <div class="mb-3">
30
- <div class="form-label">{{'Cms::Slug' | abpLocalization}}</div>
31
- <input type="text" class="form-control" formControlName="slug">
32
- </div>
33
- <div class="mb-3">
34
- <div class="form-label">{{'AbpUi::Languages' | abpLocalization}}</div>
35
- <select class="form-select form-select-multiple" formControlName="culture">
36
- <ng-container *ngFor="let item of languagesList;let i =index">
37
- <option [value]="item.cultureName">{{item.displayName}}</option>
38
- </ng-container>
39
- </select>
40
- <div class="text-danger" *ngIf="cultureInput.dirty">
41
- {{cultureInput?.errors?.repetition}}
42
- </div>
43
- </div>
44
- <div class="mb-3" *ngIf="sectionInfo.type===1">
45
- <label class="form-label" for="parentId">{{'Cms::ParentEntry' | abpLocalization}}</label>
46
- <select class="form-select " formControlName="parentId">
47
- <option value=""></option>
48
- <ng-container *ngFor="let item of entryList;let i =index">
49
- <option [value]="item.id">{{item.title}}</option>
50
- <ng-container *ngFor="let el of item.children">
51
- <ng-container *ngTemplateOutlet="childTemplate; context: {
52
- $implicit: {
53
- value: el,
54
- }
55
- }"></ng-container>
56
- <ng-template #childTemplate let-data>
57
- <option [value]="data.value.id">
58
- <ng-container *ngFor="let item of data.value.layer">--</ng-container>
59
- {{data.value.title}}
60
- </option>
61
- <ng-container *ngFor="let el of data.value.children">
62
- <ng-container *ngTemplateOutlet="childTemplate; context: {
63
- $implicit: {
64
- value: el,
65
- }
66
- }"></ng-container>
67
- </ng-container>
68
- </ng-template>
69
- </ng-container>
70
- </ng-container>
71
- </select>
72
- </div>
73
- <div class="mb-3">
74
- <label class="form-label" for="publishTime">{{'Cms::PublishTime' | abpLocalization}}</label>
75
- <input type="datetime-local" class="form-control" step="1" formControlName="publishTime">
76
- </div>
77
- <div class="mb-3" *ngIf="isEdit">
78
- <label class="form-label" for="Version">{{'Cms::Version' | abpLocalization}}</label>
79
- <ul class="list-group">
80
- <ng-container *ngFor="let item of AllVersionsList">
81
- <li
82
- class="list-group-item flex-between d-flex align-items-center justify-content-between">
83
- <div>
84
- {{item.initialVersionId?(item.creationTime| date: 'YYYY/MM/dd HH:mm:s'):('Cms::InitialVersion' | abpLocalization)}}
85
- <span class="badge text-bg-success ms-1"
86
- *ngIf="item.isActivatedVersion">{{'Cms::IsActive' | abpLocalization}}</span>
87
- <span class="badge text-bg-primary ms-1"
88
- *ngIf="item.id === entryVersionId">{{'Cms::Editing' |
89
- abpLocalization}}</span>
90
- </div>
91
- <div>
92
- <div ngbDropdown class="d-inline-block">
93
- <button type="button" class="btn btn-link-primary p-2 "
94
- style="line-height: 0;" id="dropdownBasic1" ngbDropdownToggle>
95
- </button>
96
- <div ngbDropdownMenu aria-labelledby="dropdownBasic1">
97
- <button ngbDropdownItem type="button" *ngIf="!item.isActivatedVersion"
98
- (click)="ActivatedVersion(item.id)">
99
- <i class="fas fa-check me-1"></i>{{'Cms::IsActive' |
100
- abpLocalization}}
101
- </button>
102
- <button ngbDropdownItem type="button"
103
- routerLink="/cms/admin/entries/create"
104
- [queryParams]="{entryVersionId:item.id}">
105
- <i class="fas fa-plus me-1"></i>{{'Cms::NewVersion' |
106
- abpLocalization}}
107
- </button>
108
- <button ngbDropdownItem type="button" (click.stop)="toEditUrl(item.id)"
109
- *ngIf="item.id !== entryVersionId">
110
- <i class="fas fa-edit me-1"></i>{{'AbpUi::Edit' | abpLocalization}}
111
- </button>
112
- <button ngbDropdownItem type="button"
113
- (click.stop)="delectVersion(item.id)"
114
- *ngIf="item.initialVersionId&&!item.isActivatedVersion&&item.id !== entryVersionId">
115
- <i class="fas fa-trash me-1"></i>{{'AbpUi::Delete' |
116
- abpLocalization}}
117
- </button>
118
- </div>
119
- </div>
120
- </div>
121
- </li>
122
- </ng-container>
123
- </ul>
124
- </div>
125
- <div class="mb-3" *ngIf="entryInfo">
126
- <label class="form-label" for="versionNotes">{{'Cms::RevisionNotes' | abpLocalization}}</label>
127
- <textarea class="form-control" formControlName="versionNotes" rows="3"></textarea>
128
- </div>
129
-
130
-
131
-
132
- </div>
133
- </div>
134
- </div>
135
- </div>
136
- <button type="submit" style="display: none;" #submitclick></button>
137
- </form>
@@ -1,21 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { CreateOrEditEntriesComponent } from './create-or-edit-entries.component';
4
-
5
- describe('CreateOrEditEntriesComponent', () => {
6
- let component: CreateOrEditEntriesComponent;
7
- let fixture: ComponentFixture<CreateOrEditEntriesComponent>;
8
-
9
- beforeEach(() => {
10
- TestBed.configureTestingModule({
11
- declarations: [CreateOrEditEntriesComponent]
12
- });
13
- fixture = TestBed.createComponent(CreateOrEditEntriesComponent);
14
- component = fixture.componentInstance;
15
- fixture.detectChanges();
16
- });
17
-
18
- it('should create', () => {
19
- expect(component).toBeTruthy();
20
- });
21
- });
@@ -1,216 +0,0 @@
1
- import { ConfigStateService, LocalizationService } from '@abp/ng.core';
2
- import { ToasterService } from '@abp/ng.theme.shared';
3
- import { Component, ElementRef, inject, Input, ViewChild } from '@angular/core';
4
- import { FormControl, FormGroup } from '@angular/forms';
5
- import { Router } from '@angular/router';
6
- import { DatePipe, Location } from '@angular/common';
7
- import { CmsApiService } from '../../../services';
8
- import { SectionAdminService } from '../../../proxy/dignite/cms/admin/sections';
9
- import { EntryAdminService } from '../../../proxy/dignite/cms/admin/entries';
10
-
11
- @Component({
12
- selector: 'cms-create-or-edit-entries',
13
- templateUrl: './create-or-edit-entries.component.html',
14
- styleUrls: ['./create-or-edit-entries.component.scss'],
15
- })
16
- export class CreateOrEditEntriesComponent {
17
- private toaster = inject(ToasterService);
18
- public _location = inject(Location);
19
- private configState = inject(ConfigStateService);
20
- private _SectionAdminService = inject(SectionAdminService);
21
- private _EntryAdminService = inject(EntryAdminService);
22
- private datePipe = inject(DatePipe);
23
- private _LocalizationService = inject(LocalizationService);
24
- private router = inject(Router);
25
- private _CmsApiService = inject(CmsApiService);
26
-
27
- /**语言列表 */
28
- languagesList: any[] = [];
29
- /**条目列表-选择上级条目 */
30
- entryList: any[] = [];
31
- /**条目信息 */
32
- entryInfo: any = '';
33
- /**版本信息 */
34
- sectionInfo: any = '';
35
- /**需要展示的b板块下条目类型 */
36
- showEntryType: any = '';
37
- /**版本条目id */
38
- entryVersionId: any = '';
39
- /**版本列表 */
40
- AllVersionsList: any[] = [];
41
-
42
- @Input() isEdit: boolean = false;
43
-
44
- @Input() sectionId: string = '';
45
- @Input() entryTypeId: string = '';
46
- @Input() public set select(v: any) {
47
- this.entryVersionId = v.id;
48
- this.entryInfo = v;
49
- }
50
-
51
- formEntity: FormGroup | undefined;
52
- @Input() set entity(value: FormGroup | undefined) {
53
- this.formEntity = value;
54
- if (value) {
55
- let languages = this.configState.getDeep('localization.languages');
56
- this.languagesList = languages;
57
- this.loadData();
58
- }
59
- }
60
- /**是否加载完成 */
61
- isLoad: boolean = false;
62
-
63
- /**语言控件 */
64
- get cultureInput(): FormControl {
65
- return this.formEntity?.get('culture') as FormControl;
66
- }
67
-
68
- /**获取提交按钮替身,用于真实触发表单提交 */
69
- @ViewChild('submitclick', { static: true }) submitclick: ElementRef;
70
-
71
- /**加载数据 */
72
- async loadData() {
73
- if (this.sectionId) {
74
- await this.getSectionInfo();
75
- await this.getEntryList();
76
- }
77
- this.cultureInput.disable();
78
- let repetition = await this.cultureAsyncValidator();
79
- if (repetition) this.cultureInput.setErrors(repetition);
80
- if (this.entryInfo) {
81
- await this.getAllVersionsList();
82
- this.formEntity.patchValue({
83
- entryTypeId: this.entryInfo.entryTypeId,
84
- publishTime: this.datePipe.transform(this.entryInfo.publishTime, 'yyyy-MM-dd HH:mm:ss'),
85
- title: this.entryInfo.title,
86
- slug: this.entryInfo.slug,
87
- parentId: this.entryInfo.parentId,
88
- versionNotes: this.entryInfo.versionNotes,
89
- initialVersionId: this.entryInfo.id,
90
- });
91
- } else {
92
- this.formEntity.patchValue({
93
- entryTypeId: this.entryTypeId,
94
- publishTime: this.datePipe.transform(new Date(), 'yyyy-MM-dd HH:mm:ss'),
95
- });
96
- }
97
- this.isLoad = true;
98
- setTimeout(() => {
99
- this.submitclick?.nativeElement.click();
100
- }, 0);
101
- }
102
-
103
- /**定义自定义异步验证 */
104
- cultureAsyncValidator() {
105
- return new Promise(resolve => {
106
- let culture = this.cultureInput.value;
107
- if (culture == this.entryInfo?.culture || this.sectionInfo.type !== 0) return resolve(null);
108
- this._EntryAdminService
109
- .cultureExistWithSingleSection({
110
- culture: culture,
111
- sectionId: this.sectionId,
112
- entryTypeId: this.entryTypeId,
113
- })
114
- .subscribe(res => {
115
- if (res) {
116
- resolve({
117
- repetition: this._LocalizationService.instant(
118
- `Cms::EntriesAlreadyExistEntryType`,
119
- '',
120
- this.languagesList.find(el => el.cultureName == culture).displayName
121
- ),
122
- });
123
- } else {
124
- resolve(null);
125
- }
126
- });
127
- });
128
- }
129
-
130
- /**获取板块信息 */
131
- getSectionInfo() {
132
- return new Promise((resolve, reject) => {
133
- this._SectionAdminService.get(this.sectionId).subscribe(res => {
134
- this.showEntryType = res.entryTypes.find(el => el.id == this.entryTypeId);
135
- this.sectionInfo = res;
136
- resolve(res);
137
- });
138
- });
139
- }
140
- /**获取板块下所有条目 */
141
- getEntryList() {
142
- return new Promise((resolve, rejects) => {
143
- this._EntryAdminService
144
- .getList({
145
- sectionId: this.sectionId,
146
- maxResultCount: 1000,
147
- culture: this.cultureInput.value,
148
- })
149
- .subscribe((res: any) => {
150
- let entryList = res.items.filter(el => el.id !== this.entryInfo?.id);
151
- let parentList = entryList.filter(el => !el.parentId);
152
- parentList.forEach(el => {
153
- let layer: number = 0;
154
- el.layer = new Array(layer);
155
- el.children = this.groupByParentId(entryList, el.id, layer + 1);
156
- });
157
- this.entryList = parentList;
158
- resolve(res);
159
- });
160
- });
161
- }
162
- /**对数组按照父子关系进行分组 */
163
- groupByParentId(arr, id = '', layer) {
164
- let result = [];
165
- result = arr.filter(el => el.parentId == id);
166
- result.forEach(el => {
167
- el.layer = new Array(layer);
168
- el.children = this.groupByParentId(arr, el.id, layer + 1);
169
- });
170
- return result;
171
- }
172
- /**标题转化别名 */
173
- setTitleToSlugBlur(event) {
174
- let val = event.target.value;
175
- let slug = this.formEntity.get('slug');
176
- let pinyinstr = '';
177
- if (slug.value) return;
178
- pinyinstr = this._CmsApiService.chineseToPinyin(val);
179
- this.formEntity.patchValue({
180
- slug: pinyinstr || val,
181
- });
182
- }
183
-
184
- /**获取条目版本列表 */
185
- getAllVersionsList() {
186
- return new Promise((resolve, rejects) => {
187
- this._EntryAdminService.getAllVersions(this.entryInfo.id).subscribe(res => {
188
- this.AllVersionsList = res.items;
189
- resolve(res);
190
- });
191
- });
192
- }
193
-
194
- /**激活 */
195
- ActivatedVersion(VersionId) {
196
- this._EntryAdminService.activate(VersionId).subscribe(res => {
197
- this.AllVersionsList.forEach(el => {
198
- el.isActivatedVersion = el.id === VersionId;
199
- });
200
- return;
201
- });
202
- }
203
- /**编辑版本 */
204
- toEditUrl(id) {
205
- this.router.navigateByUrl('', { skipLocationChange: true }).then(() => {
206
- this.router.navigate([`/cms/admin/entries/${id}/edit`]);
207
- });
208
- }
209
- /**删除版本 */
210
- delectVersion(vid) {
211
- this._EntryAdminService.delete(vid).subscribe(res => {
212
- this.toaster.success(this._LocalizationService.instant(`AbpUi::DeletedSuccessfully`));
213
- this.getAllVersionsList();
214
- });
215
- }
216
- }
@@ -1,26 +0,0 @@
1
- import { FormGroup, Validators } from "@angular/forms";
2
-
3
- export class CreateOrUpdateEntryInputBase {
4
-
5
- /**条目id */
6
- entryTypeId: any = ['']
7
- /**标题 */
8
- title: any = ['', [Validators.required]]
9
- /**别名 */
10
- slug: any = ['', [Validators.required]]
11
- /**语言 */
12
- culture: any = ['']
13
- /**是否是草稿 */
14
- draft: any = ['', []]
15
- /**发布时间 */
16
- publishTime: any = ['', [Validators.required]]
17
- /**上级目录 */
18
- parentId: any = [null]
19
- /**修订说明 */
20
- versionNotes: any = [null]
21
- /**版本 */
22
- initialVersionId: any = [null]
23
- extraProperties: FormGroup | undefined = new FormGroup({})
24
- constructor() { }
25
- }
26
-
@@ -1,16 +0,0 @@
1
- <abp-page [title]="'Cms::New'| abpLocalization" [toolbar]="true">
2
- <form class="row g-3 needs-validation" [formGroup]="formEntity" (keydown.enter)="$event.preventDefault()"
3
- [class]="{'was-validated':formValidation}" (submit)="save()">
4
- <button type="submit" style="display: none;" #submitclick></button>
5
- <ng-container *ngIf="formEntity">
6
- <ng-container *ngIf="entryVersionId; else elseTemplate">
7
- <cms-create-or-edit-entries [sectionId]="sectionId" [entryTypeId]="entryTypeId" [select]="entryInfo" [entity]="formEntity"></cms-create-or-edit-entries>
8
- </ng-container>
9
- <ng-template #elseTemplate>
10
- <cms-create-or-edit-entries [sectionId]="sectionId" [entryTypeId]="entryTypeId" [entity]="formEntity"></cms-create-or-edit-entries>
11
- </ng-template>
12
- </ng-container>
13
-
14
- </form>
15
-
16
- </abp-page>
@@ -1,21 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { CreateComponent } from './create.component';
4
-
5
- describe('CreateComponent', () => {
6
- let component: CreateComponent;
7
- let fixture: ComponentFixture<CreateComponent>;
8
-
9
- beforeEach(() => {
10
- TestBed.configureTestingModule({
11
- declarations: [CreateComponent]
12
- });
13
- fixture = TestBed.createComponent(CreateComponent);
14
- component = fixture.componentInstance;
15
- fixture.detectChanges();
16
- });
17
-
18
- it('should create', () => {
19
- expect(component).toBeTruthy();
20
- });
21
- });
@@ -1,130 +0,0 @@
1
- import { EXTENSIONS_IDENTIFIER } from '@abp/ng.components/extensible';
2
- import { LocalizationService } from '@abp/ng.core';
3
- import { ToasterService } from '@abp/ng.theme.shared';
4
- import { DatePipe, Location } from '@angular/common';
5
- import { Component, OnInit, inject, ViewChild, ElementRef } from '@angular/core';
6
- import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
7
- import { ActivatedRoute } from '@angular/router';
8
- // import { EntryAdminService } from '../../../proxy/admin/entries';
9
- import { ECmsComponent } from '../../../enums';
10
- import { CreateOrUpdateEntryInputBase } from './create-or-update-entry-input-base';
11
- import { ValidatorsService, UpdateListService } from '@dignite-ng/expand.core';
12
- import { finalize } from 'rxjs';
13
- import { EntryAdminService } from '../../../proxy/dignite/cms/admin/entries';
14
-
15
- @Component({
16
- selector: 'cms-create',
17
- templateUrl: './create.component.html',
18
- styleUrls: ['./create.component.scss'],
19
- providers: [
20
- {
21
- provide: EXTENSIONS_IDENTIFIER,
22
- useValue: ECmsComponent.Entries_Create,
23
- },
24
- ],
25
- })
26
- export class CreateComponent implements OnInit {
27
- private fb = inject(FormBuilder);
28
- private _updateListService = inject(UpdateListService);
29
- private toaster = inject(ToasterService);
30
- public _location = inject(Location);
31
- private route = inject(ActivatedRoute);
32
- private _EntryAdminService = inject(EntryAdminService);
33
- private _LocalizationService = inject(LocalizationService);
34
- private _ValidatorsService = inject(ValidatorsService);
35
-
36
- /**获取提交按钮替身,用于真实触发表单提交 */
37
- @ViewChild('submitclick', { static: true }) submitclick: ElementRef;
38
-
39
- /**表单验证状态
40
- * {
41
- * title:true,
42
- * }
43
- */
44
- formValidation: any = '';
45
- /**表单实体 */
46
- formEntity: FormGroup | undefined;
47
- /**语言 */
48
- cultureName: string = '';
49
- /**条目类型id */
50
- entryTypeId: string = '';
51
- /**版块id */
52
- sectionId: string = '';
53
- /**条目版本id */
54
- entryVersionId: string = '';
55
- /**条目信息 */
56
- entryInfo: any = '';
57
-
58
- /**是否草稿控件*/
59
- get draftInput() {
60
- return this.formEntity?.get('draft') as FormControl;
61
- }
62
- /**语言控件 */
63
- get cultureInput(): FormControl {
64
- return this.formEntity?.get('culture') as FormControl;
65
- }
66
-
67
- async ngOnInit(): Promise<void> {
68
- let queryParams = this.route.snapshot.queryParams;
69
-
70
- this.cultureName = queryParams.cultureName;
71
- this.entryTypeId = queryParams.entryTypeId;
72
- this.sectionId = queryParams.sectionId;
73
- this.entryVersionId = queryParams.entryVersionId;
74
- this.formEntity = this.fb.group(new CreateOrUpdateEntryInputBase());
75
- if (this.entryVersionId) await this.getEntryInfo();
76
- this.cultureInput.patchValue(this.cultureName);
77
- }
78
-
79
- /**获取条目信息 */
80
- getEntryInfo() {
81
- return new Promise((resolve, rejects) => {
82
- this._EntryAdminService.get(this.entryVersionId).subscribe(res => {
83
- this.cultureName = res.culture;
84
- this.entryTypeId = res.entryTypeId;
85
- this.sectionId = res.sectionId;
86
- this.entryInfo = res;
87
- resolve(res);
88
- });
89
- });
90
- }
91
- /**提交 */
92
- save() {
93
- this.formValidation = this._ValidatorsService.getFormValidationStatus(this.formEntity);
94
-
95
- if (this._ValidatorsService.isCheckForm(this.formValidation, 'Cms')){
96
- this.isSubmit = false;
97
- return this.cultureInput.disable();
98
- }
99
- let input = this.formEntity?.value;
100
- input.culture = this.cultureName;
101
- input.publishTime = new Date(
102
- new Date(input.publishTime).getTime() + 8 * 60 * 60 * 1000
103
- ).toISOString();
104
- if (!this.formEntity.valid) return;
105
- this._EntryAdminService
106
- .create(input)
107
- .pipe(finalize(() => {
108
- this.isSubmit = false;
109
- }))
110
- .subscribe(res => {
111
- this.toaster.success(this._LocalizationService.instant(`AbpUi::SavedSuccessfully`));
112
- this._location.back();
113
- this._updateListService.updateList();
114
- });
115
- }
116
- isSubmit: boolean = false;
117
- /**点击提交 */
118
- clickSubmit(type) {
119
- if (this.isSubmit) return;
120
- this.isSubmit = true;
121
- this.draftInput.patchValue(type);
122
- this.cultureInput.enable();
123
- this.submitclick?.nativeElement?.click();
124
- }
125
-
126
- /**返回上一页 */
127
- backTo() {
128
- this._location.back();
129
- }
130
- }
@@ -1,9 +0,0 @@
1
- <abp-page [title]="'Cms::Edit'| abpLocalization" [toolbar]="true">
2
- <form class="row g-3 needs-validation" [formGroup]="formEntity" (keydown.enter)="$event.preventDefault()"
3
- [class]="{'was-validated':formValidation}" (submit)="save()">
4
- <button type="submit" style="display: none;" #submitclick></button>
5
- <ng-container *ngIf="formEntity&&entryInfo">
6
- <cms-create-or-edit-entries [sectionId]="sectionId" [entryTypeId]="entryTypeId" [isEdit]="true" [select]="entryInfo" [entity]="formEntity"></cms-create-or-edit-entries>
7
- </ng-container>
8
- </form>
9
- </abp-page>
@@ -1,21 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { EditComponent } from './edit.component';
4
-
5
- describe('EditComponent', () => {
6
- let component: EditComponent;
7
- let fixture: ComponentFixture<EditComponent>;
8
-
9
- beforeEach(() => {
10
- TestBed.configureTestingModule({
11
- declarations: [EditComponent]
12
- });
13
- fixture = TestBed.createComponent(EditComponent);
14
- component = fixture.componentInstance;
15
- fixture.detectChanges();
16
- });
17
-
18
- it('should create', () => {
19
- expect(component).toBeTruthy();
20
- });
21
- });