@dignite-ng/expand.cms 0.0.33 → 0.0.34

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 (361) 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 +2 -0
  12. package/esm2022/config/providers/index.mjs +2 -0
  13. package/esm2022/config/providers/route.provider.mjs +78 -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 +100 -0
  17. package/esm2022/lib/cms.module.mjs +132 -0
  18. package/esm2022/lib/components/admin/domains/domains.component.mjs +90 -0
  19. package/esm2022/lib/components/admin/domains/index.mjs +2 -0
  20. package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +286 -0
  21. package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +32 -0
  22. package/esm2022/lib/components/admin/entries/create.component.mjs +108 -0
  23. package/esm2022/lib/components/admin/entries/edit.component.mjs +107 -0
  24. package/esm2022/lib/components/admin/entries/entries.component.mjs +211 -0
  25. package/esm2022/lib/components/admin/entries/index.mjs +5 -0
  26. package/esm2022/lib/components/admin/fields/create-field.component.mjs +82 -0
  27. package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +119 -0
  28. package/esm2022/lib/components/admin/fields/create-or-update-field-input-base.mjs +25 -0
  29. package/esm2022/lib/components/admin/fields/edit-field.component.mjs +110 -0
  30. package/esm2022/lib/components/admin/fields/field-group.component.mjs +124 -0
  31. package/esm2022/lib/components/admin/fields/fields.component.mjs +119 -0
  32. package/esm2022/lib/components/admin/fields/index.mjs +7 -0
  33. package/esm2022/lib/components/admin/index.mjs +6 -0
  34. package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +27 -0
  35. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +71 -0
  36. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +416 -0
  37. package/esm2022/lib/components/admin/sections/entry-types/index.mjs +3 -0
  38. package/esm2022/lib/components/admin/sections/index.mjs +4 -0
  39. package/esm2022/lib/components/admin/sections/sections.component.mjs +344 -0
  40. package/esm2022/lib/components/admin/sites/create-or-update-sites-input-base.mjs +18 -0
  41. package/esm2022/lib/components/admin/sites/index.mjs +3 -0
  42. package/esm2022/lib/components/admin/sites/sites.component.mjs +29 -0
  43. package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +124 -0
  44. package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +18 -0
  45. package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +115 -0
  46. package/esm2022/lib/components/dynamic-form/entry/index.mjs +4 -0
  47. package/esm2022/lib/components/dynamic-form/form-control-group.mjs +28 -0
  48. package/esm2022/lib/components/dynamic-form/index.mjs +5 -0
  49. package/esm2022/lib/components/dynamic-form/matrix/index.mjs +4 -0
  50. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +227 -0
  51. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +50 -0
  52. package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +111 -0
  53. package/esm2022/lib/components/dynamic-form/table/index.mjs +4 -0
  54. package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +173 -0
  55. package/esm2022/lib/components/dynamic-form/table/table-config.mjs +38 -0
  56. package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +121 -0
  57. package/esm2022/lib/components/index.mjs +3 -0
  58. package/esm2022/lib/constants/styles.mjs +14 -0
  59. package/esm2022/lib/enums/ecms-component.mjs +13 -0
  60. package/esm2022/lib/enums/index.mjs +2 -0
  61. package/esm2022/lib/proxy/admin/domains/domain-admin.service.mjs +34 -0
  62. package/esm2022/lib/proxy/admin/domains/index.mjs +3 -0
  63. package/esm2022/lib/proxy/admin/domains/models.mjs +2 -0
  64. package/esm2022/lib/proxy/admin/dynamic-forms/form-admin.service.mjs +24 -0
  65. package/esm2022/lib/proxy/admin/dynamic-forms/index.mjs +3 -0
  66. package/esm2022/lib/proxy/admin/dynamic-forms/models.mjs +2 -0
  67. package/esm2022/lib/proxy/admin/entries/entry-admin.service.mjs +72 -0
  68. package/esm2022/lib/proxy/admin/entries/index.mjs +3 -0
  69. package/esm2022/lib/proxy/admin/entries/models.mjs +2 -0
  70. package/esm2022/lib/proxy/admin/fields/field-admin.service.mjs +47 -0
  71. package/esm2022/lib/proxy/admin/fields/field-group-admin.service.mjs +43 -0
  72. package/esm2022/lib/proxy/admin/fields/index.mjs +4 -0
  73. package/esm2022/lib/proxy/admin/fields/models.mjs +2 -0
  74. package/esm2022/lib/proxy/admin/sections/entry-type-admin.service.mjs +43 -0
  75. package/esm2022/lib/proxy/admin/sections/index.mjs +4 -0
  76. package/esm2022/lib/proxy/admin/sections/models.mjs +2 -0
  77. package/esm2022/lib/proxy/admin/sections/section-admin.service.mjs +53 -0
  78. package/esm2022/lib/proxy/admin/settings/index.mjs +2 -0
  79. package/esm2022/lib/proxy/admin/settings/site-settings-admin.service.mjs +33 -0
  80. package/esm2022/lib/proxy/dignite/abp/data/models.mjs +2 -0
  81. package/esm2022/lib/proxy/entries/entry-status.enum.mjs +8 -0
  82. package/esm2022/lib/proxy/entries/index.mjs +2 -0
  83. package/esm2022/lib/proxy/fields/models.mjs +2 -0
  84. package/esm2022/lib/proxy/sections/index.mjs +3 -0
  85. package/esm2022/lib/proxy/sections/models.mjs +2 -0
  86. package/esm2022/lib/proxy/sections/section-type.enum.mjs +9 -0
  87. package/esm2022/lib/proxy/settings/models.mjs +2 -0
  88. package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +2 -0
  89. package/esm2022/lib/services/appent-content.mjs +15 -0
  90. package/esm2022/lib/services/cms-api.service.mjs +80 -0
  91. package/esm2022/lib/services/cms.service.mjs +23 -0
  92. package/esm2022/lib/services/field-abstracts.service.mjs +45 -0
  93. package/esm2022/lib/services/index.mjs +5 -0
  94. package/esm2022/lib/services/simple-reuse-strategy.mjs +43 -0
  95. package/esm2022/lib/services/update-list.service.mjs +19 -0
  96. package/esm2022/lib/toolbar/index.mjs +3 -0
  97. package/esm2022/lib/toolbar/toolbar-btn-default-action.mjs +160 -0
  98. package/esm2022/lib/toolbar/toolbar-config.mjs +79 -0
  99. package/esm2022/public-api.mjs +10 -0
  100. package/fesm2022/dignite-ng-expand.cms-config.mjs +101 -0
  101. package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -0
  102. package/fesm2022/dignite-ng-expand.cms.mjs +4079 -0
  103. package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -0
  104. package/index.d.ts +5 -0
  105. package/lib/cms-routing.module.d.ts +7 -0
  106. package/lib/cms.module.d.ts +35 -0
  107. package/lib/components/admin/domains/domains.component.d.ts +21 -0
  108. package/lib/components/admin/domains/index.d.ts +1 -0
  109. package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +92 -0
  110. package/lib/components/admin/entries/create-or-update-entry-input-base.d.ts +23 -0
  111. package/lib/components/admin/entries/create.component.d.ts +40 -0
  112. package/lib/components/admin/entries/edit.component.d.ts +40 -0
  113. package/lib/components/admin/entries/entries.component.d.ts +66 -0
  114. package/lib/components/admin/entries/index.d.ts +4 -0
  115. package/lib/components/admin/fields/create-field.component.d.ts +31 -0
  116. package/lib/components/admin/fields/create-or-edit-field.component.d.ts +36 -0
  117. package/lib/components/admin/fields/create-or-update-field-input-base.d.ts +16 -0
  118. package/lib/components/admin/fields/edit-field.component.d.ts +40 -0
  119. package/lib/components/admin/fields/field-group.component.d.ts +51 -0
  120. package/lib/components/admin/fields/fields.component.d.ts +37 -0
  121. package/lib/components/admin/fields/index.d.ts +6 -0
  122. package/lib/components/admin/index.d.ts +5 -0
  123. package/lib/components/admin/sections/create-or-update-sections-input-base.d.ts +17 -0
  124. package/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.d.ts +38 -0
  125. package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +132 -0
  126. package/lib/components/admin/sections/entry-types/index.d.ts +2 -0
  127. package/lib/components/admin/sections/index.d.ts +3 -0
  128. package/lib/components/admin/sections/sections.component.d.ts +90 -0
  129. package/lib/components/admin/sites/create-or-update-sites-input-base.d.ts +8 -0
  130. package/lib/components/admin/sites/index.d.ts +2 -0
  131. package/lib/components/admin/sites/sites.component.d.ts +5 -0
  132. package/lib/components/dynamic-form/entry/entry-config.component.d.ts +39 -0
  133. package/lib/components/dynamic-form/entry/entry-config.d.ts +9 -0
  134. package/lib/components/dynamic-form/entry/entry-control.component.d.ts +35 -0
  135. package/lib/components/dynamic-form/entry/index.d.ts +3 -0
  136. package/lib/components/dynamic-form/form-control-group.d.ts +4 -0
  137. package/lib/components/dynamic-form/index.d.ts +4 -0
  138. package/lib/components/dynamic-form/matrix/index.d.ts +3 -0
  139. package/lib/components/dynamic-form/matrix/matrix-config.component.d.ts +73 -0
  140. package/lib/components/dynamic-form/matrix/matrix-config.d.ts +24 -0
  141. package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +39 -0
  142. package/lib/components/dynamic-form/table/index.d.ts +3 -0
  143. package/lib/components/dynamic-form/table/table-config.component.d.ts +58 -0
  144. package/lib/components/dynamic-form/table/table-config.d.ts +18 -0
  145. package/lib/components/dynamic-form/table/table-control.component.d.ts +39 -0
  146. package/lib/components/index.d.ts +2 -0
  147. package/lib/constants/styles.d.ts +2 -0
  148. package/lib/enums/ecms-component.d.ts +11 -0
  149. package/lib/enums/index.d.ts +1 -0
  150. package/lib/proxy/admin/domains/domain-admin.service.d.ts +13 -0
  151. package/{src/lib/proxy/admin/domains/models.ts → lib/proxy/admin/domains/models.d.ts} +7 -9
  152. package/lib/proxy/admin/dynamic-forms/form-admin.service.d.ts +12 -0
  153. package/lib/proxy/admin/dynamic-forms/models.d.ts +4 -0
  154. package/lib/proxy/admin/entries/entry-admin.service.d.ts +22 -0
  155. package/lib/proxy/admin/entries/models.d.ts +60 -0
  156. package/lib/proxy/admin/fields/field-admin.service.d.ts +17 -0
  157. package/lib/proxy/admin/fields/field-group-admin.service.d.ts +16 -0
  158. package/{src/lib/proxy/admin/fields/models.ts → lib/proxy/admin/fields/models.d.ts} +34 -42
  159. package/lib/proxy/admin/sections/entry-type-admin.service.d.ts +15 -0
  160. package/{src/lib/proxy/admin/sections/models.ts → lib/proxy/admin/sections/models.d.ts} +67 -81
  161. package/lib/proxy/admin/sections/section-admin.service.d.ts +18 -0
  162. package/lib/proxy/admin/settings/site-settings-admin.service.d.ts +13 -0
  163. package/lib/proxy/dignite/abp/data/models.d.ts +3 -0
  164. package/lib/proxy/entries/entry-status.enum.d.ts +5 -0
  165. package/lib/proxy/fields/models.d.ts +8 -0
  166. package/lib/proxy/sections/models.d.ts +12 -0
  167. package/lib/proxy/sections/section-type.enum.d.ts +6 -0
  168. package/lib/proxy/settings/models.d.ts +5 -0
  169. package/{src/lib/proxy/volo/cms-kit/users/models.ts → lib/proxy/volo/cms-kit/users/models.d.ts} +7 -8
  170. package/lib/services/appent-content.d.ts +1 -0
  171. package/lib/services/cms-api.service.d.ts +20 -0
  172. package/lib/services/cms.service.d.ts +10 -0
  173. package/lib/services/field-abstracts.service.d.ts +20 -0
  174. package/lib/services/index.d.ts +4 -0
  175. package/lib/services/simple-reuse-strategy.d.ts +11 -0
  176. package/lib/services/update-list.service.d.ts +9 -0
  177. package/lib/toolbar/index.d.ts +2 -0
  178. package/lib/toolbar/toolbar-btn-default-action.d.ts +18 -0
  179. package/lib/toolbar/toolbar-config.d.ts +56 -0
  180. package/package.json +21 -6
  181. package/{src/public-api.ts → public-api.d.ts} +4 -10
  182. package/config/ng-package.json +0 -7
  183. package/config/src/cms-config.module.ts +0 -12
  184. package/config/src/enums/route-names.ts +0 -8
  185. package/config/src/providers/route.provider.ts +0 -82
  186. package/ng-package.json +0 -7
  187. package/src/lib/cms-routing.module.ts +0 -108
  188. package/src/lib/cms.module.ts +0 -108
  189. package/src/lib/components/admin/domains/domains.component.html +0 -19
  190. package/src/lib/components/admin/domains/domains.component.scss +0 -0
  191. package/src/lib/components/admin/domains/domains.component.spec.ts +0 -21
  192. package/src/lib/components/admin/domains/domains.component.ts +0 -99
  193. package/src/lib/components/admin/domains/index.ts +0 -1
  194. package/src/lib/components/admin/entries/create-or-edit-entries.component.html +0 -113
  195. package/src/lib/components/admin/entries/create-or-edit-entries.component.scss +0 -1
  196. package/src/lib/components/admin/entries/create-or-edit-entries.component.spec.ts +0 -21
  197. package/src/lib/components/admin/entries/create-or-edit-entries.component.ts +0 -284
  198. package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +0 -33
  199. package/src/lib/components/admin/entries/create.component.html +0 -13
  200. package/src/lib/components/admin/entries/create.component.scss +0 -1
  201. package/src/lib/components/admin/entries/create.component.spec.ts +0 -21
  202. package/src/lib/components/admin/entries/create.component.ts +0 -104
  203. package/src/lib/components/admin/entries/edit.component.html +0 -9
  204. package/src/lib/components/admin/entries/edit.component.scss +0 -1
  205. package/src/lib/components/admin/entries/edit.component.spec.ts +0 -21
  206. package/src/lib/components/admin/entries/edit.component.ts +0 -98
  207. package/src/lib/components/admin/entries/entries.component.html +0 -112
  208. package/src/lib/components/admin/entries/entries.component.scss +0 -1
  209. package/src/lib/components/admin/entries/entries.component.spec.ts +0 -21
  210. package/src/lib/components/admin/entries/entries.component.ts +0 -219
  211. package/src/lib/components/admin/entries/index.ts +0 -4
  212. package/src/lib/components/admin/fields/create-field.component.html +0 -12
  213. package/src/lib/components/admin/fields/create-field.component.scss +0 -1
  214. package/src/lib/components/admin/fields/create-field.component.spec.ts +0 -21
  215. package/src/lib/components/admin/fields/create-field.component.ts +0 -68
  216. package/src/lib/components/admin/fields/create-or-edit-field.component.html +0 -39
  217. package/src/lib/components/admin/fields/create-or-edit-field.component.scss +0 -0
  218. package/src/lib/components/admin/fields/create-or-edit-field.component.spec.ts +0 -21
  219. package/src/lib/components/admin/fields/create-or-edit-field.component.ts +0 -116
  220. package/src/lib/components/admin/fields/create-or-update-field-input-base.ts +0 -33
  221. package/src/lib/components/admin/fields/edit-field.component.html +0 -13
  222. package/src/lib/components/admin/fields/edit-field.component.scss +0 -0
  223. package/src/lib/components/admin/fields/edit-field.component.spec.ts +0 -21
  224. package/src/lib/components/admin/fields/edit-field.component.ts +0 -100
  225. package/src/lib/components/admin/fields/field-group.component.html +0 -69
  226. package/src/lib/components/admin/fields/field-group.component.scss +0 -0
  227. package/src/lib/components/admin/fields/field-group.component.spec.ts +0 -21
  228. package/src/lib/components/admin/fields/field-group.component.ts +0 -132
  229. package/src/lib/components/admin/fields/fields.component.html +0 -74
  230. package/src/lib/components/admin/fields/fields.component.scss +0 -1
  231. package/src/lib/components/admin/fields/fields.component.spec.ts +0 -21
  232. package/src/lib/components/admin/fields/fields.component.ts +0 -111
  233. package/src/lib/components/admin/fields/index.ts +0 -6
  234. package/src/lib/components/admin/index.ts +0 -5
  235. package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +0 -36
  236. package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts +0 -79
  237. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.html +0 -191
  238. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.scss +0 -1
  239. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.spec.ts +0 -21
  240. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.ts +0 -408
  241. package/src/lib/components/admin/sections/entry-types/index.ts +0 -2
  242. package/src/lib/components/admin/sections/index.ts +0 -3
  243. package/src/lib/components/admin/sections/sections.component.html +0 -190
  244. package/src/lib/components/admin/sections/sections.component.scss +0 -1
  245. package/src/lib/components/admin/sections/sections.component.spec.ts +0 -21
  246. package/src/lib/components/admin/sections/sections.component.ts +0 -370
  247. package/src/lib/components/admin/sites/create-or-update-sites-input-base.ts +0 -18
  248. package/src/lib/components/admin/sites/index.ts +0 -2
  249. package/src/lib/components/admin/sites/sites.component.html +0 -136
  250. package/src/lib/components/admin/sites/sites.component.scss +0 -1
  251. package/src/lib/components/admin/sites/sites.component.spec.ts +0 -21
  252. package/src/lib/components/admin/sites/sites.component.ts +0 -250
  253. package/src/lib/components/dynamic-form/entry/entry-config.component.html +0 -36
  254. package/src/lib/components/dynamic-form/entry/entry-config.component.scss +0 -0
  255. package/src/lib/components/dynamic-form/entry/entry-config.component.spec.ts +0 -21
  256. package/src/lib/components/dynamic-form/entry/entry-config.component.ts +0 -115
  257. package/src/lib/components/dynamic-form/entry/entry-config.ts +0 -24
  258. package/src/lib/components/dynamic-form/entry/entry-control.component.html +0 -26
  259. package/src/lib/components/dynamic-form/entry/entry-control.component.scss +0 -1
  260. package/src/lib/components/dynamic-form/entry/entry-control.component.spec.ts +0 -21
  261. package/src/lib/components/dynamic-form/entry/entry-control.component.ts +0 -109
  262. package/src/lib/components/dynamic-form/entry/index.ts +0 -3
  263. package/src/lib/components/dynamic-form/form-control-group.ts +0 -27
  264. package/src/lib/components/dynamic-form/index.ts +0 -4
  265. package/src/lib/components/dynamic-form/matrix/index.ts +0 -3
  266. package/src/lib/components/dynamic-form/matrix/matrix-config.component.html +0 -147
  267. package/src/lib/components/dynamic-form/matrix/matrix-config.component.scss +0 -0
  268. package/src/lib/components/dynamic-form/matrix/matrix-config.component.spec.ts +0 -21
  269. package/src/lib/components/dynamic-form/matrix/matrix-config.component.ts +0 -236
  270. package/src/lib/components/dynamic-form/matrix/matrix-config.ts +0 -63
  271. package/src/lib/components/dynamic-form/matrix/matrix-control.component.html +0 -42
  272. package/src/lib/components/dynamic-form/matrix/matrix-control.component.scss +0 -0
  273. package/src/lib/components/dynamic-form/matrix/matrix-control.component.spec.ts +0 -21
  274. package/src/lib/components/dynamic-form/matrix/matrix-control.component.ts +0 -104
  275. package/src/lib/components/dynamic-form/table/index.ts +0 -3
  276. package/src/lib/components/dynamic-form/table/table-config.component.html +0 -85
  277. package/src/lib/components/dynamic-form/table/table-config.component.scss +0 -10
  278. package/src/lib/components/dynamic-form/table/table-config.component.spec.ts +0 -21
  279. package/src/lib/components/dynamic-form/table/table-config.component.ts +0 -170
  280. package/src/lib/components/dynamic-form/table/table-config.ts +0 -45
  281. package/src/lib/components/dynamic-form/table/table-control.component.html +0 -54
  282. package/src/lib/components/dynamic-form/table/table-control.component.scss +0 -1
  283. package/src/lib/components/dynamic-form/table/table-control.component.spec.ts +0 -21
  284. package/src/lib/components/dynamic-form/table/table-control.component.ts +0 -115
  285. package/src/lib/components/index.ts +0 -2
  286. package/src/lib/constants/index.ts +0 -1
  287. package/src/lib/constants/styles.ts +0 -13
  288. package/src/lib/enums/ecms-component.ts +0 -11
  289. package/src/lib/enums/index.ts +0 -1
  290. package/src/lib/proxy/README.md +0 -17
  291. package/src/lib/proxy/admin/domains/domain-admin.service.ts +0 -38
  292. package/src/lib/proxy/admin/dynamic-forms/form-admin.service.ts +0 -21
  293. package/src/lib/proxy/admin/dynamic-forms/models.ts +0 -5
  294. package/src/lib/proxy/admin/entries/entry-admin.service.ts +0 -109
  295. package/src/lib/proxy/admin/entries/models.ts +0 -68
  296. package/src/lib/proxy/admin/fields/field-admin.service.ts +0 -64
  297. package/src/lib/proxy/admin/fields/field-group-admin.service.ts +0 -56
  298. package/src/lib/proxy/admin/index.ts +0 -7
  299. package/src/lib/proxy/admin/sections/entry-type-admin.service.ts +0 -55
  300. package/src/lib/proxy/admin/sections/section-admin.service.ts +0 -74
  301. package/src/lib/proxy/admin/settings/site-settings-admin.service.ts +0 -37
  302. package/src/lib/proxy/dignite/abp/data/index.ts +0 -1
  303. package/src/lib/proxy/dignite/abp/data/models.ts +0 -4
  304. package/src/lib/proxy/dignite/abp/index.ts +0 -2
  305. package/src/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.ts +0 -65
  306. package/src/lib/proxy/dignite/file-explorer/directories/index.ts +0 -2
  307. package/src/lib/proxy/dignite/file-explorer/directories/models.ts +0 -35
  308. package/src/lib/proxy/dignite/file-explorer/files/file-descriptor.service.ts +0 -86
  309. package/src/lib/proxy/dignite/file-explorer/files/index.ts +0 -2
  310. package/src/lib/proxy/dignite/file-explorer/files/models.ts +0 -58
  311. package/src/lib/proxy/dignite/file-explorer/index.ts +0 -3
  312. package/src/lib/proxy/dignite/index.ts +0 -3
  313. package/src/lib/proxy/entries/entry-status.enum.ts +0 -8
  314. package/src/lib/proxy/fields/index.ts +0 -1
  315. package/src/lib/proxy/fields/models.ts +0 -9
  316. package/src/lib/proxy/generate-proxy.json +0 -11425
  317. package/src/lib/proxy/index.ts +0 -9
  318. package/src/lib/proxy/microsoft/asp-net-core/index.ts +0 -2
  319. package/src/lib/proxy/microsoft/asp-net-core/mvc/index.ts +0 -1
  320. package/src/lib/proxy/microsoft/asp-net-core/mvc/models.ts +0 -12
  321. package/src/lib/proxy/microsoft/extensions/index.ts +0 -2
  322. package/src/lib/proxy/microsoft/extensions/primitives/index.ts +0 -1
  323. package/src/lib/proxy/microsoft/extensions/primitives/models.ts +0 -9
  324. package/src/lib/proxy/microsoft/index.ts +0 -4
  325. package/src/lib/proxy/microsoft/net/http/headers/index.ts +0 -1
  326. package/src/lib/proxy/microsoft/net/http/headers/models.ts +0 -7
  327. package/src/lib/proxy/microsoft/net/http/index.ts +0 -2
  328. package/src/lib/proxy/microsoft/net/index.ts +0 -2
  329. package/src/lib/proxy/sections/models.ts +0 -14
  330. package/src/lib/proxy/sections/section-type.enum.ts +0 -9
  331. package/src/lib/proxy/settings/index.ts +0 -1
  332. package/src/lib/proxy/settings/models.ts +0 -6
  333. package/src/lib/proxy/volo/abp/content/index.ts +0 -1
  334. package/src/lib/proxy/volo/abp/content/models.ts +0 -6
  335. package/src/lib/proxy/volo/abp/index.ts +0 -2
  336. package/src/lib/proxy/volo/cms-kit/index.ts +0 -2
  337. package/src/lib/proxy/volo/cms-kit/users/index.ts +0 -1
  338. package/src/lib/proxy/volo/index.ts +0 -3
  339. package/src/lib/proxy.zip +0 -0
  340. package/src/lib/services/appent-content.ts +0 -13
  341. package/src/lib/services/cms-api.service.ts +0 -71
  342. package/src/lib/services/cms.service.ts +0 -18
  343. package/src/lib/services/field-abstracts.service.ts +0 -40
  344. package/src/lib/services/index.ts +0 -4
  345. package/src/lib/services/simple-reuse-strategy.ts +0 -49
  346. package/src/lib/services/update-list.service.ts +0 -15
  347. package/src/lib/toolbar/index.ts +0 -2
  348. package/src/lib/toolbar/toolbar-btn-default-action.ts +0 -171
  349. package/src/lib/toolbar/toolbar-config.ts +0 -93
  350. package/src/test.ts +0 -26
  351. package/tsconfig.lib.json +0 -34
  352. package/tsconfig.lib.prod.json +0 -10
  353. package/tsconfig.spec.json +0 -17
  354. /package/{src/lib/proxy/admin/domains/index.ts → lib/proxy/admin/domains/index.d.ts} +0 -0
  355. /package/{src/lib/proxy/admin/dynamic-forms/index.ts → lib/proxy/admin/dynamic-forms/index.d.ts} +0 -0
  356. /package/{src/lib/proxy/admin/entries/index.ts → lib/proxy/admin/entries/index.d.ts} +0 -0
  357. /package/{src/lib/proxy/admin/fields/index.ts → lib/proxy/admin/fields/index.d.ts} +0 -0
  358. /package/{src/lib/proxy/admin/sections/index.ts → lib/proxy/admin/sections/index.d.ts} +0 -0
  359. /package/{src/lib/proxy/admin/settings/index.ts → lib/proxy/admin/settings/index.d.ts} +0 -0
  360. /package/{src/lib/proxy/entries/index.ts → lib/proxy/entries/index.d.ts} +0 -0
  361. /package/{src/lib/proxy/sections/index.ts → lib/proxy/sections/index.d.ts} +0 -0
@@ -1,113 +0,0 @@
1
- <div class="create-or-edit-entry-page" [formGroup]="_entity">
2
- <div class="container ">
3
- <div class="row">
4
- <div class="col-md-8 ">
5
- <div class="card p-2">
6
- <div class="mb-2">
7
- <label class="form-label" for="title">{{'Cms::Title' | abpLocalization}}</label>
8
- <input type="text" class="form-control" (blur)="setTitleToSlugBlur($event)"
9
- formControlName="title">
10
- </div>
11
- <template #FormDynamicRef></template>
12
- <ng-container *ngFor="let item of entryTypesItem?.fieldTabs;let i =index">
13
- <ng-container *ngFor="let el of item.fields;let i1 =index">
14
- <ng-container *ngIf="el&&_entity">
15
- <df-dynamic [entity]="_entity" [fields]="el"
16
- [selected]="entrySelect ? entrySelect.extraProperties[el.field.name] : ''"
17
- [parentFiledName]="'extraProperties'" [culture]="cultureinput.value"></df-dynamic>
18
- </ng-container>
19
- </ng-container>
20
- </ng-container>
21
- </div>
22
- </div>
23
- <div class="col-md-4 ">
24
- <div class="card mb-0 p-2">
25
- <div class="mb-2">
26
- <label class="form-label" for="slug">{{'Cms::Slug' | abpLocalization}}</label>
27
- <input type="text" class="form-control" formControlName="slug">
28
- <div class="text-danger invalid-feedback" *ngIf="sluginput.errors?.repetition">
29
- {{sluginput.errors?.repetition}}
30
- </div>
31
- </div>
32
- <div class="mb-2">
33
- <label class="form-label" for="culture">{{'AbpUi::Languages' | abpLocalization}}</label>
34
- <select class="form-select" formControlName="culture">
35
- <ng-container *ngFor="let item of languagesList;let i =index">
36
- <option [value]="item.cultureName">{{item.displayName}}</option>
37
- </ng-container>
38
- </select>
39
- <input type="text" formControlName="culture_shadow"
40
- style="position: absolute;z-index: -1;opacity: 0;">
41
- <div class="text-danger invalid-feedback" *ngIf="culture_shadowInput.errors?.repetition">
42
- {{culture_shadowInput.errors?.repetition}}
43
- </div>
44
- </div>
45
- <div class="mb-2">
46
- <label class="form-label" for="parentId">{{'Cms::ParentEntry' | abpLocalization}}</label>
47
- <select class="form-select" formControlName="parentId">
48
- <option value=""></option>
49
- <ng-container *ngFor="let item of entryTypesList;let i =index">
50
- <option [value]="item.id">{{item.displayName}}</option>
51
- </ng-container>
52
- </select>
53
- </div>
54
- <div class="mb-2">
55
- <label class="form-label" for="publishTime">{{'Cms::PublishTime' | abpLocalization}}</label>
56
- <input type="datetime-local" class="form-control" step="1" formControlName="publishTime">
57
- </div>
58
- <div class="mb-2" *ngIf="isEdit">
59
- <label class="form-label" for="publishTime">{{'Cms::Version' | abpLocalization}}</label>
60
- <ul class="list-group">
61
- <ng-container *ngFor="let item of AllVersionsList">
62
- <li class="list-group-item flex-between">
63
- <div>
64
- {{item.initialVersionId?(item.creationTime| date: 'YYYY/MM/dd HH:mm:s'):('Cms::InitialVersion' | abpLocalization)}}
65
- <span class="badge text-bg-success ms-1"
66
- *ngIf="item.isActivatedVersion">{{'Cms::IsActive' | abpLocalization}}</span>
67
- <span class="badge text-bg-primary ms-1"
68
- *ngIf="item.id === RevisionEntryId">{{'Cms::Editing' |
69
- abpLocalization}}</span>
70
- </div>
71
- <div>
72
- <div ngbDropdown class="d-inline-block">
73
- <button type="button" class="btn btn-link-primary p-2 "
74
- style="line-height: 0;" id="dropdownBasic1" ngbDropdownToggle>
75
- </button>
76
- <div ngbDropdownMenu aria-labelledby="dropdownBasic1">
77
- <button ngbDropdownItem type="button" *ngIf="!item.isActivatedVersion"
78
- (click)="ActivatedVersion(item.id)">
79
- <i class="fas fa-check me-1"></i>{{'Cms::IsActive' |
80
- abpLocalization}}
81
- </button>
82
- <button ngbDropdownItem type="button"
83
- routerLink="/cms/admin/entries/create"
84
- [queryParams]="{RevisionEntryId:item.id}">
85
- <i class="fas fa-plus me-1"></i>{{'Cms::NewVersion' |
86
- abpLocalization}}
87
- </button>
88
- <button ngbDropdownItem type="button" (click.stop)="toEditUrl(item.id)"
89
- *ngIf="item.id !== RevisionEntryId">
90
- <i class="fas fa-edit me-1"></i>{{'AbpUi::Edit' | abpLocalization}}
91
- </button>
92
- <button ngbDropdownItem type="button"
93
- (click.stop)="delectVersion(item.id)"
94
- *ngIf="item.initialVersionId&&!item.isActivatedVersion&&item.id !== RevisionEntryId">
95
- <i class="fas fa-trash me-1"></i>{{'AbpUi::Delete' |
96
- abpLocalization}}
97
- </button>
98
- </div>
99
- </div>
100
- </div>
101
- </li>
102
- </ng-container>
103
- </ul>
104
- </div>
105
- <div class="mb-2">
106
- <label class="form-label" for="versionNotes">{{'Cms::RevisionNotes' | abpLocalization}}</label>
107
- <textarea class="form-control" formControlName="versionNotes" rows="3"></textarea>
108
- </div>
109
- </div>
110
- </div>
111
- </div>
112
- </div>
113
- </div>
@@ -1 +0,0 @@
1
- ::ng-deep .create-or-edit-entry-page{.dignite_page{height:calc(100vh - 32px - 53px - 40px);overflow:auto;background:transparent}.form-control,.form-select{padding:.475rem 1.25rem}.cursor-move{cursor:move}.bordernNavs{border:var(--bs-border-width) solid var(--lpx-border-color);padding-left:inherit;padding-right:inherit}.flex-between{display:flex;align-items:center;justify-content:space-between}}
@@ -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,284 +0,0 @@
1
- import { ConfigStateService, LocalizationService } from '@abp/ng.core';
2
- import { ToasterService } from '@abp/ng.theme.shared';
3
- import { AfterContentInit, Component, inject, Input, QueryList, ViewChildren, ViewContainerRef } from '@angular/core';
4
- import { AbstractControl, FormControl, FormGroup, ValidationErrors, Validators } from '@angular/forms';
5
- import { Router } from '@angular/router';
6
- import { EntryAdminService } from '../../../proxy/admin/entries';
7
- import { SectionAdminService } from '../../../proxy/admin/sections';
8
- import { Observable } from 'rxjs';
9
- import { DatePipe, Location } from '@angular/common';
10
- import { CmsApiService } from '../../../services';
11
-
12
- @Component({
13
- selector: 'cms-create-or-edit-entries',
14
- templateUrl: './create-or-edit-entries.component.html',
15
- styleUrls: ['./create-or-edit-entries.component.scss']
16
- })
17
- export class CreateOrEditEntriesComponent implements AfterContentInit {
18
-
19
-
20
- constructor(
21
- private toaster: ToasterService,
22
- public _location: Location,
23
- private configState: ConfigStateService,
24
- private _SectionAdminService: SectionAdminService,
25
- private _EntryAdminService: EntryAdminService,
26
- private datePipe: DatePipe,
27
- private _LocalizationService: LocalizationService,
28
- private router: Router,
29
- private _CmsApiService: CmsApiService,
30
- ) { }
31
-
32
-
33
- /**语言 */
34
- cultureName: string = ''
35
- /**条目id */
36
- entryTypeId: string = ''
37
-
38
- /**新建版本的版本id,同条目id */
39
- RevisionEntryId: any = ''
40
- /**选择的条目项 */
41
- entryTypesItem: any = ''
42
- /**版块id */
43
- sectionId: string = ''
44
- /**版块详情 */
45
- SectionSelect: any = ''
46
- /**语言列表 */
47
- languagesList: any[] = []
48
- /**条目类型列表-用于选择上级条目 */
49
- entryTypesList: any[] = []
50
- /**版本列表 */
51
- AllVersionsList: any[] = []
52
-
53
- /**是否是编辑 */
54
- @Input() isEdit = false
55
-
56
- /**来自父组件的传值 */
57
- FromParentQueryParams: any = ''
58
- @Input()
59
- public set ParentQueryParams(v: any) {
60
- if (v) {
61
- this.FromParentQueryParams = v;
62
- }
63
- }
64
-
65
- /**表单实体 */
66
- _entity: FormGroup | undefined
67
- @Input()
68
- public set entity(v: any) {
69
- if (v) {
70
- this._entity = v;
71
- }
72
- }
73
- /**指定id的条目信息 */
74
- entrySelect: any = ''
75
- @Input()
76
- public set parentEntrySelect(v: any) {
77
- if (v) {
78
- let V_extraProperties = this._CmsApiService.deepClone(this.convertExtraProperties(v.extraProperties))
79
- v.extraProperties = V_extraProperties
80
- this.entrySelect = v;
81
- }
82
- }
83
- /**将对象中的ExtraProperties赋值到extraProperties */
84
- convertExtraProperties(obj) {
85
- for (let key in obj) {
86
- if (Array.isArray(obj[key])) {
87
- obj[key].forEach(item => {
88
- if (item.hasOwnProperty('ExtraProperties')) {
89
- item['extraProperties'] = item['ExtraProperties'];
90
- }
91
- });
92
- }
93
- }
94
- return obj;
95
- }
96
-
97
- /**别名表单实体 */
98
- get sluginput() {
99
- return this._entity.get('slug')
100
- }
101
- /**语言表单实体 */
102
- get cultureinput() {
103
- return this._entity.get('culture')
104
- }
105
- /**语言表单实体影子 */
106
- get culture_shadowInput() {
107
- return this._entity.get('culture_shadow')
108
- }
109
-
110
- /**extraProperties配置表单实体 */
111
- get extraProperties() {
112
- return this._entity.get('extraProperties') as FormGroup
113
- }
114
- async ngAfterContentInit(): Promise<void> {
115
- //Called after ngOnInit when the component's or directive's content has been initialized.
116
- //Add 'implements AfterContentInit' to the class.
117
- let queryParams = this.FromParentQueryParams
118
- if (this._entity && this.FromParentQueryParams) {
119
- this._entity.setControl('slug', new FormControl('', {
120
- validators: Validators.required,
121
- asyncValidators: this.repetitionAsyncValidator(),
122
- updateOn: 'blur'
123
- }))
124
- this._entity.setControl('culture_shadow', new FormControl('', {
125
- validators: [Validators.required],
126
- asyncValidators: this.cultureAsyncValidator_test(),
127
- }))
128
- this._entity.get('culture').disable();
129
- if (queryParams.RevisionEntryId && this.entrySelect) {
130
- this.RevisionEntryId = queryParams.RevisionEntryId
131
- this.setEntryconfig(this.entrySelect);
132
- } else {
133
- this.setEntryconfig(queryParams);
134
- }
135
- if (this.sectionId) await this.getSectionSelect();
136
- if (this.RevisionEntryId) await this.getAllVersionsList()
137
-
138
- }
139
-
140
-
141
- }
142
-
143
- /**表单控件模板-动态表单配置组件 */
144
- @ViewChildren('FormDynamicontrolRef', { read: ViewContainerRef }) FormDynamicontrolRef: QueryList<ViewContainerRef>;
145
-
146
-
147
-
148
-
149
-
150
- /**定义自定义异步验证 */
151
- cultureAsyncValidator_test() {
152
- return (ctrl: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => {
153
- return new Promise(resolve => {
154
- let subculture = this._entity?.get('culture').value
155
- if (subculture == this.entrySelect?.culture || this.SectionSelect.type !== 0) {
156
- resolve(null);
157
- return
158
- }
159
- this._EntryAdminService.cultureExistWithSingleSection({
160
- culture: subculture,
161
- sectionId: this.sectionId,
162
- entryTypeId: this.entryTypeId
163
- }).subscribe(res => {
164
- if (res) {
165
- resolve({ repetition: this._LocalizationService.instant(`Cms::EntriesAlreadyExistEntryType`, this.entryTypesItem.displayName, this.languagesList.find(el => el.cultureName == subculture).displayName) });
166
- } else {
167
- resolve(null);
168
- }
169
- })
170
- });
171
- };
172
- }
173
-
174
-
175
- /**
176
- * 设置条目详情
177
- * @param {object} source - 数据源对象
178
- */
179
- setEntryconfig(source: any) {
180
- this.entryTypeId = source.entryTypeId;
181
- this.cultureName = source.culture || source.cultureName;
182
- this.sectionId = source.sectionId;
183
- }
184
- time: number = 0
185
-
186
- /**定义自定义异步验证 */
187
- repetitionAsyncValidator() {
188
- return (ctrl: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => {
189
- return new Promise(resolve => {
190
- let subslug = this._entity?.get('slug').value
191
- if (subslug == this.entrySelect?.slug) {
192
- resolve(null);
193
- return
194
- }
195
- this._EntryAdminService.slugExists({
196
- culture: this.cultureName,
197
- sectionId: this.sectionId,
198
- slug: subslug
199
- }).subscribe(res => {
200
- if (res) {
201
- resolve({ repetition: this._LocalizationService.instant(`Cms::EntrySlug{0}AlreadyExist`, ctrl.value) });
202
- } else {
203
- resolve(null);
204
- }
205
- })
206
- });
207
- };
208
- }
209
-
210
- private config = inject(ConfigStateService)
211
-
212
- /**获取版块详情 */
213
- getSectionSelect() {
214
- return new Promise((resolve, rejects) => {
215
- this._SectionAdminService.get(this.sectionId).subscribe(async (res) => {
216
- let languages = this.configState.getDeep('localization.languages')
217
- this.languagesList = languages
218
- let entryTypesItem = res.entryTypes.find(el => el.id == this.entryTypeId)
219
- this.SectionSelect = res
220
- this.entryTypesItem = entryTypesItem
221
- this.entryTypesList = res.entryTypes.filter(el => el.id == this.entryTypeId)
222
- this._entity.patchValue({
223
- ...this.entrySelect,
224
- initialVersionId: this.entrySelect?.initialVersionId || this.RevisionEntryId || '',
225
- culture: this.cultureName,
226
- culture_shadow: this.cultureName,
227
- entryTypeId: this.entryTypeId,
228
- publishTime: this.datePipe.transform(new Date(), 'yyyy-MM-dd HH:mm:ss'),
229
- })
230
- resolve(true)
231
- })
232
- })
233
- }
234
-
235
- /**获取条目版本列表 */
236
- getAllVersionsList() {
237
- return new Promise((resolve, rejects) => {
238
- this._EntryAdminService.getAllVersions(this.RevisionEntryId).subscribe(res => {
239
- this.AllVersionsList = res.items
240
- resolve(res)
241
- })
242
- })
243
- }
244
-
245
- /**标题转化别名 */
246
- setTitleToSlugBlur(event) {
247
- let val = event.target.value
248
- let slug = this._entity.get('slug')
249
- let pinyinstr = ''
250
- if (slug.value) return
251
- pinyinstr = this._CmsApiService.chineseToPinyin(val)
252
- this._entity.patchValue({
253
- slug: pinyinstr || val
254
- })
255
- }
256
- /**使用Unicode编码范围判断是否是中文字符 */
257
- isChinese(str) {
258
- return /^[\u4e00-\u9fa5]+$/.test(str);
259
- }
260
-
261
- /**激活 */
262
- ActivatedVersion(VersionId) {
263
- this._EntryAdminService.activate(VersionId).subscribe((res) => {
264
- this.AllVersionsList.forEach(el => {
265
- el.isActivatedVersion = el.id === VersionId
266
- })
267
- return
268
- })
269
- }
270
- /**编辑版本 */
271
- toEditUrl(id) {
272
- this.router.navigateByUrl('', { skipLocationChange: true }).then(() => {
273
- this.router.navigate([`/cms/admin/entries/${id}/edit`]);
274
- });
275
- }
276
- /**删除版本 */
277
- delectVersion(vid) {
278
- this._EntryAdminService.delete(vid).subscribe(res => {
279
- this.toaster.success(this._LocalizationService.instant(`AbpUi::SuccessfullyDeleted`));
280
- this.getAllVersionsList()
281
- })
282
- }
283
-
284
- }
@@ -1,33 +0,0 @@
1
- import { FormGroup, Validators } from "@angular/forms";
2
-
3
- export class CreateOrUpdateEntryInputBase {
4
- /**语言 */
5
- culture: any = ['', [Validators.required]]
6
- /**条目id */
7
- entryTypeId: any = ['']
8
- /**标题 */
9
- title: any = ['', [Validators.required]]
10
- /**别名 */
11
- slug: any = ['', [Validators.required]]
12
- /**是否是草稿 */
13
- draft: any = ['', []]
14
- /**发布时间 */
15
- publishTime: any = ['', [Validators.required]]
16
- /**上级目录 */
17
- parentId:any=[null]
18
- /**修订说明 */
19
- versionNotes:any=[null]
20
- /**版本 */
21
- initialVersionId: any = [null]
22
- extraProperties: FormGroup | undefined = new FormGroup({})
23
- constructor(data?: CreateOrUpdateEntryInputBase) {
24
- if (data) {
25
- for (const key in data) {
26
- if (data.hasOwnProperty(key)) {
27
- this[key] = data[key];
28
- }
29
- }
30
- }
31
- }
32
- }
33
-
@@ -1,13 +0,0 @@
1
- <form class="row g-3 needs-validation" [formGroup]="newEntity" (ngSubmit)="save(draftType)">
2
- <abp-page [title]="'Cms::New'| abpLocalization" [toolbar]="true">
3
- <button type="submit" style="display: none;" #submitclick></button>
4
- <ng-container *ngIf="entrySelect; else elseTemplate">
5
- <cms-create-or-edit-entries [entity]="newEntity" [ParentQueryParams]="queryParams"
6
- [parentEntrySelect]="entrySelect" ></cms-create-or-edit-entries>
7
- </ng-container>
8
- <ng-template #elseTemplate>
9
- <cms-create-or-edit-entries [entity]="newEntity"
10
- [ParentQueryParams]="queryParams" ></cms-create-or-edit-entries>
11
- </ng-template>
12
- </abp-page>
13
- </form>
@@ -1 +0,0 @@
1
- ::ng-deep .create-or-edit-entry-page{.dignite_page{height:calc(100vh - 32px - 53px - 40px);overflow:auto;background:transparent}.form-control,.form-select{padding:.475rem 1.25rem}.cursor-move{cursor:move}.bordernNavs{border:var(--bs-border-width) solid var(--lpx-border-color);padding-left:inherit;padding-right:inherit}}
@@ -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,104 +0,0 @@
1
- import { ToasterService } from '@abp/ng.theme.shared';
2
- import { Component, ElementRef, OnInit, ViewChild, inject } from '@angular/core';
3
- import { FormBuilder, FormGroup} from '@angular/forms';
4
- import { ActivatedRoute, Router } from '@angular/router';
5
- import { Location } from '@angular/common';
6
- import { CreateOrUpdateEntryInputBase } from './create-or-update-entry-input-base';
7
- import { LocalizationService } from '@abp/ng.core';
8
- import { EntryAdminService } from '../../../proxy/admin/entries';
9
- import { EXTENSIONS_IDENTIFIER } from '@abp/ng.theme.shared/extensions';
10
- import { ECmsComponent } from '../../../enums/ecms-component';
11
- import { UpdateListService } from '../../../services/update-list.service';
12
-
13
-
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
- constructor(
28
- private toaster: ToasterService,
29
- public _location: Location,
30
- private route: ActivatedRoute,
31
- private _EntryAdminService: EntryAdminService,
32
- private _LocalizationService: LocalizationService,
33
- private router: Router,
34
- ) { }
35
- private fb=inject(FormBuilder)
36
- private _updateListService=inject(UpdateListService)
37
-
38
- /**表单实体 */
39
- newEntity: FormGroup | undefined
40
-
41
- /**是否是草稿 */
42
- draftType: boolean = false
43
- /**页面传值用于传递到子组件 */
44
- queryParams: any = ''
45
-
46
- /**指定id的条目信息 */
47
- entrySelect: any = ''
48
-
49
- /**获取提交按钮替身,用于真实触发表单提交 */
50
- @ViewChild('submitclick', { static: true }) submitclick: ElementRef;
51
-
52
- async ngOnInit(): Promise<void> {
53
- this.queryParams = this.route.snapshot.queryParams
54
- this.newEntity = this.fb.group(new CreateOrUpdateEntryInputBase())
55
- if(this.queryParams.RevisionEntryId) await this.getEntrySelect();
56
- }
57
-
58
- /**获取条目信息 */
59
- getEntrySelect() {
60
- return new Promise((resolve, rejects) => {
61
- this._EntryAdminService.get(this.queryParams.RevisionEntryId).subscribe(res => {
62
- this.entrySelect = res
63
-
64
- resolve(res)
65
- })
66
- })
67
- }
68
-
69
-
70
-
71
- /**保存 */
72
- save(draft) {
73
- this.newEntity.patchValue({
74
- draft: draft
75
- })
76
- let input = this.newEntity.value
77
- input.publishTime = new Date(new Date(input.publishTime).getTime() + (8 * 60 * 60 * 1000)).toISOString()
78
- input.culture=this.newEntity.get('culture').value
79
- console.log(input,'保存',this.newEntity);
80
-
81
- if (!this.newEntity.valid) return
82
- this._EntryAdminService.create(input).subscribe(res => {
83
- this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
84
- this.router.navigateByUrl('', { skipLocationChange: true }).then(() => {
85
- this.router.navigate([`/cms/admin/entries`]);
86
- this._updateListService.updateList();
87
- });
88
- })
89
- }
90
-
91
- /**触发点击按钮替身 */
92
- clickSubmit(type) {
93
- this.draftType = type
94
- this.submitclick.nativeElement.click()
95
- }
96
- /**返回上一页 */
97
- backTo() {
98
- this._location.back()
99
- }
100
-
101
-
102
-
103
-
104
- }
@@ -1,9 +0,0 @@
1
- <form class="row g-3 needs-validation" [formGroup]="newEntity" (ngSubmit)="save(draftType)">
2
- <abp-page [title]="'AbpUi::Edit' | abpLocalization" [toolbar]="true">
3
- <button type="submit" style="display: none" #submitclick></button>
4
- <ng-container *ngIf="entrySelect">
5
- <cms-create-or-edit-entries [entity]="newEntity" [ParentQueryParams]="queryParams"
6
- [parentEntrySelect]="entrySelect" [isEdit]="true"></cms-create-or-edit-entries>
7
- </ng-container>
8
- </abp-page>
9
- </form>
@@ -1 +0,0 @@
1
- ::ng-deep .edit-entry-page{.dignite_page{height:calc(100vh - 32px - 53px - 40px);overflow:auto;background:transparent}.form-control,.form-select{padding:.475rem 1.25rem}.cursor-move{cursor:move}.bordernNavs{border:var(--bs-border-width) solid var(--lpx-border-color);padding-left:inherit;padding-right:inherit}.flex-between{display:flex;align-items:center;justify-content:space-between}}
@@ -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
- });