@dignite-ng/expand.cms 0.0.32 → 0.0.33

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/ng-package.json +7 -0
  2. package/config/src/cms-config.module.ts +12 -0
  3. package/config/{enums/index.d.ts → src/enums/index.ts} +1 -1
  4. package/config/src/enums/route-names.ts +8 -0
  5. package/config/{providers/index.d.ts → src/providers/index.ts} +1 -1
  6. package/config/src/providers/route.provider.ts +82 -0
  7. package/config/{public-api.d.ts → src/public-api.ts} +3 -3
  8. package/ng-package.json +7 -0
  9. package/package.json +6 -21
  10. package/src/lib/cms-routing.module.ts +108 -0
  11. package/src/lib/cms.module.ts +108 -0
  12. package/src/lib/components/admin/domains/domains.component.html +19 -0
  13. package/src/lib/components/admin/domains/domains.component.scss +0 -0
  14. package/src/lib/components/admin/domains/domains.component.spec.ts +21 -0
  15. package/src/lib/components/admin/domains/domains.component.ts +99 -0
  16. package/src/lib/components/admin/domains/index.ts +1 -0
  17. package/src/lib/components/admin/entries/create-or-edit-entries.component.html +113 -0
  18. package/src/lib/components/admin/entries/create-or-edit-entries.component.scss +1 -0
  19. package/src/lib/components/admin/entries/create-or-edit-entries.component.spec.ts +21 -0
  20. package/src/lib/components/admin/entries/create-or-edit-entries.component.ts +284 -0
  21. package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +33 -0
  22. package/src/lib/components/admin/entries/create.component.html +13 -0
  23. package/src/lib/components/admin/entries/create.component.scss +1 -0
  24. package/src/lib/components/admin/entries/create.component.spec.ts +21 -0
  25. package/src/lib/components/admin/entries/create.component.ts +104 -0
  26. package/src/lib/components/admin/entries/edit.component.html +9 -0
  27. package/src/lib/components/admin/entries/edit.component.scss +1 -0
  28. package/src/lib/components/admin/entries/edit.component.spec.ts +21 -0
  29. package/src/lib/components/admin/entries/edit.component.ts +98 -0
  30. package/src/lib/components/admin/entries/entries.component.html +112 -0
  31. package/src/lib/components/admin/entries/entries.component.scss +1 -0
  32. package/src/lib/components/admin/entries/entries.component.spec.ts +21 -0
  33. package/src/lib/components/admin/entries/entries.component.ts +219 -0
  34. package/src/lib/components/admin/entries/index.ts +4 -0
  35. package/src/lib/components/admin/fields/create-field.component.html +12 -0
  36. package/src/lib/components/admin/fields/create-field.component.scss +1 -0
  37. package/src/lib/components/admin/fields/create-field.component.spec.ts +21 -0
  38. package/src/lib/components/admin/fields/create-field.component.ts +68 -0
  39. package/src/lib/components/admin/fields/create-or-edit-field.component.html +39 -0
  40. package/src/lib/components/admin/fields/create-or-edit-field.component.scss +0 -0
  41. package/src/lib/components/admin/fields/create-or-edit-field.component.spec.ts +21 -0
  42. package/src/lib/components/admin/fields/create-or-edit-field.component.ts +116 -0
  43. package/src/lib/components/admin/fields/create-or-update-field-input-base.ts +33 -0
  44. package/src/lib/components/admin/fields/edit-field.component.html +13 -0
  45. package/src/lib/components/admin/fields/edit-field.component.scss +0 -0
  46. package/src/lib/components/admin/fields/edit-field.component.spec.ts +21 -0
  47. package/src/lib/components/admin/fields/edit-field.component.ts +100 -0
  48. package/src/lib/components/admin/fields/field-group.component.html +69 -0
  49. package/src/lib/components/admin/fields/field-group.component.scss +0 -0
  50. package/src/lib/components/admin/fields/field-group.component.spec.ts +21 -0
  51. package/src/lib/components/admin/fields/field-group.component.ts +132 -0
  52. package/src/lib/components/admin/fields/fields.component.html +74 -0
  53. package/src/lib/components/admin/fields/fields.component.scss +1 -0
  54. package/src/lib/components/admin/fields/fields.component.spec.ts +21 -0
  55. package/src/lib/components/admin/fields/fields.component.ts +111 -0
  56. package/src/lib/components/admin/fields/index.ts +6 -0
  57. package/src/lib/components/admin/index.ts +5 -0
  58. package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +36 -0
  59. package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts +79 -0
  60. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.html +191 -0
  61. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.scss +1 -0
  62. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.spec.ts +21 -0
  63. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.ts +408 -0
  64. package/src/lib/components/admin/sections/entry-types/index.ts +2 -0
  65. package/src/lib/components/admin/sections/index.ts +3 -0
  66. package/src/lib/components/admin/sections/sections.component.html +190 -0
  67. package/src/lib/components/admin/sections/sections.component.scss +1 -0
  68. package/src/lib/components/admin/sections/sections.component.spec.ts +21 -0
  69. package/src/lib/components/admin/sections/sections.component.ts +370 -0
  70. package/src/lib/components/admin/sites/create-or-update-sites-input-base.ts +18 -0
  71. package/src/lib/components/admin/sites/index.ts +2 -0
  72. package/src/lib/components/admin/sites/sites.component.html +136 -0
  73. package/src/lib/components/admin/sites/sites.component.scss +1 -0
  74. package/src/lib/components/admin/sites/sites.component.spec.ts +21 -0
  75. package/src/lib/components/admin/sites/sites.component.ts +250 -0
  76. package/src/lib/components/dynamic-form/entry/entry-config.component.html +36 -0
  77. package/src/lib/components/dynamic-form/entry/entry-config.component.scss +0 -0
  78. package/src/lib/components/dynamic-form/entry/entry-config.component.spec.ts +21 -0
  79. package/src/lib/components/dynamic-form/entry/entry-config.component.ts +115 -0
  80. package/src/lib/components/dynamic-form/entry/entry-config.ts +24 -0
  81. package/src/lib/components/dynamic-form/entry/entry-control.component.html +26 -0
  82. package/src/lib/components/dynamic-form/entry/entry-control.component.scss +1 -0
  83. package/src/lib/components/dynamic-form/entry/entry-control.component.spec.ts +21 -0
  84. package/src/lib/components/dynamic-form/entry/entry-control.component.ts +109 -0
  85. package/src/lib/components/dynamic-form/entry/index.ts +3 -0
  86. package/src/lib/components/dynamic-form/form-control-group.ts +27 -0
  87. package/src/lib/components/dynamic-form/index.ts +4 -0
  88. package/src/lib/components/dynamic-form/matrix/index.ts +3 -0
  89. package/src/lib/components/dynamic-form/matrix/matrix-config.component.html +147 -0
  90. package/src/lib/components/dynamic-form/matrix/matrix-config.component.scss +0 -0
  91. package/src/lib/components/dynamic-form/matrix/matrix-config.component.spec.ts +21 -0
  92. package/src/lib/components/dynamic-form/matrix/matrix-config.component.ts +236 -0
  93. package/src/lib/components/dynamic-form/matrix/matrix-config.ts +63 -0
  94. package/src/lib/components/dynamic-form/matrix/matrix-control.component.html +42 -0
  95. package/src/lib/components/dynamic-form/matrix/matrix-control.component.scss +0 -0
  96. package/src/lib/components/dynamic-form/matrix/matrix-control.component.spec.ts +21 -0
  97. package/src/lib/components/dynamic-form/matrix/matrix-control.component.ts +104 -0
  98. package/src/lib/components/dynamic-form/table/index.ts +3 -0
  99. package/src/lib/components/dynamic-form/table/table-config.component.html +85 -0
  100. package/src/lib/components/dynamic-form/table/table-config.component.scss +10 -0
  101. package/src/lib/components/dynamic-form/table/table-config.component.spec.ts +21 -0
  102. package/src/lib/components/dynamic-form/table/table-config.component.ts +170 -0
  103. package/src/lib/components/dynamic-form/table/table-config.ts +45 -0
  104. package/src/lib/components/dynamic-form/table/table-control.component.html +54 -0
  105. package/src/lib/components/dynamic-form/table/table-control.component.scss +1 -0
  106. package/src/lib/components/dynamic-form/table/table-control.component.spec.ts +21 -0
  107. package/src/lib/components/dynamic-form/table/table-control.component.ts +115 -0
  108. package/src/lib/components/index.ts +2 -0
  109. package/src/lib/constants/index.ts +1 -0
  110. package/src/lib/constants/styles.ts +13 -0
  111. package/src/lib/enums/ecms-component.ts +11 -0
  112. package/src/lib/enums/index.ts +1 -0
  113. package/src/lib/proxy/README.md +17 -0
  114. package/src/lib/proxy/admin/domains/domain-admin.service.ts +38 -0
  115. package/{lib/proxy/admin/domains/models.d.ts → src/lib/proxy/admin/domains/models.ts} +9 -7
  116. package/src/lib/proxy/admin/dynamic-forms/form-admin.service.ts +21 -0
  117. package/src/lib/proxy/admin/dynamic-forms/models.ts +5 -0
  118. package/src/lib/proxy/admin/entries/entry-admin.service.ts +109 -0
  119. package/src/lib/proxy/admin/entries/models.ts +68 -0
  120. package/src/lib/proxy/admin/fields/field-admin.service.ts +64 -0
  121. package/src/lib/proxy/admin/fields/field-group-admin.service.ts +56 -0
  122. package/{lib/proxy/admin/fields/models.d.ts → src/lib/proxy/admin/fields/models.ts} +42 -34
  123. package/src/lib/proxy/admin/index.ts +7 -0
  124. package/src/lib/proxy/admin/sections/entry-type-admin.service.ts +55 -0
  125. package/{lib/proxy/admin/sections/models.d.ts → src/lib/proxy/admin/sections/models.ts} +81 -67
  126. package/src/lib/proxy/admin/sections/section-admin.service.ts +74 -0
  127. package/src/lib/proxy/admin/settings/site-settings-admin.service.ts +37 -0
  128. package/src/lib/proxy/dignite/abp/data/index.ts +1 -0
  129. package/src/lib/proxy/dignite/abp/data/models.ts +4 -0
  130. package/src/lib/proxy/dignite/abp/index.ts +2 -0
  131. package/src/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.ts +65 -0
  132. package/src/lib/proxy/dignite/file-explorer/directories/index.ts +2 -0
  133. package/src/lib/proxy/dignite/file-explorer/directories/models.ts +35 -0
  134. package/src/lib/proxy/dignite/file-explorer/files/file-descriptor.service.ts +86 -0
  135. package/src/lib/proxy/dignite/file-explorer/files/index.ts +2 -0
  136. package/src/lib/proxy/dignite/file-explorer/files/models.ts +58 -0
  137. package/src/lib/proxy/dignite/file-explorer/index.ts +3 -0
  138. package/src/lib/proxy/dignite/index.ts +3 -0
  139. package/src/lib/proxy/entries/entry-status.enum.ts +8 -0
  140. package/src/lib/proxy/fields/index.ts +1 -0
  141. package/src/lib/proxy/fields/models.ts +9 -0
  142. package/src/lib/proxy/generate-proxy.json +11425 -0
  143. package/src/lib/proxy/index.ts +9 -0
  144. package/src/lib/proxy/microsoft/asp-net-core/index.ts +2 -0
  145. package/src/lib/proxy/microsoft/asp-net-core/mvc/index.ts +1 -0
  146. package/src/lib/proxy/microsoft/asp-net-core/mvc/models.ts +12 -0
  147. package/src/lib/proxy/microsoft/extensions/index.ts +2 -0
  148. package/src/lib/proxy/microsoft/extensions/primitives/index.ts +1 -0
  149. package/src/lib/proxy/microsoft/extensions/primitives/models.ts +9 -0
  150. package/src/lib/proxy/microsoft/index.ts +4 -0
  151. package/src/lib/proxy/microsoft/net/http/headers/index.ts +1 -0
  152. package/src/lib/proxy/microsoft/net/http/headers/models.ts +7 -0
  153. package/src/lib/proxy/microsoft/net/http/index.ts +2 -0
  154. package/src/lib/proxy/microsoft/net/index.ts +2 -0
  155. package/src/lib/proxy/sections/models.ts +14 -0
  156. package/src/lib/proxy/sections/section-type.enum.ts +9 -0
  157. package/src/lib/proxy/settings/index.ts +1 -0
  158. package/src/lib/proxy/settings/models.ts +6 -0
  159. package/src/lib/proxy/volo/abp/content/index.ts +1 -0
  160. package/src/lib/proxy/volo/abp/content/models.ts +6 -0
  161. package/src/lib/proxy/volo/abp/index.ts +2 -0
  162. package/src/lib/proxy/volo/cms-kit/index.ts +2 -0
  163. package/src/lib/proxy/volo/cms-kit/users/index.ts +1 -0
  164. package/{lib/proxy/volo/cms-kit/users/models.d.ts → src/lib/proxy/volo/cms-kit/users/models.ts} +8 -7
  165. package/src/lib/proxy/volo/index.ts +3 -0
  166. package/src/lib/proxy.zip +0 -0
  167. package/src/lib/services/appent-content.ts +13 -0
  168. package/src/lib/services/cms-api.service.ts +71 -0
  169. package/src/lib/services/cms.service.ts +18 -0
  170. package/src/lib/services/field-abstracts.service.ts +40 -0
  171. package/src/lib/services/index.ts +4 -0
  172. package/src/lib/services/simple-reuse-strategy.ts +49 -0
  173. package/src/lib/services/update-list.service.ts +15 -0
  174. package/src/lib/toolbar/index.ts +2 -0
  175. package/src/lib/toolbar/toolbar-btn-default-action.ts +171 -0
  176. package/src/lib/toolbar/toolbar-config.ts +93 -0
  177. package/{public-api.d.ts → src/public-api.ts} +10 -4
  178. package/src/test.ts +26 -0
  179. package/tsconfig.lib.json +34 -0
  180. package/tsconfig.lib.prod.json +10 -0
  181. package/tsconfig.spec.json +17 -0
  182. package/config/cms-config.module.d.ts +0 -8
  183. package/config/enums/route-names.d.ts +0 -7
  184. package/config/index.d.ts +0 -5
  185. package/config/providers/route.provider.d.ts +0 -9
  186. package/esm2022/config/cms-config.module.mjs +0 -19
  187. package/esm2022/config/dignite-ng-expand.cms-config.mjs +0 -5
  188. package/esm2022/config/enums/index.mjs +0 -2
  189. package/esm2022/config/enums/route-names.mjs +0 -2
  190. package/esm2022/config/providers/index.mjs +0 -2
  191. package/esm2022/config/providers/route.provider.mjs +0 -78
  192. package/esm2022/config/public-api.mjs +0 -4
  193. package/esm2022/dignite-ng-expand.cms.mjs +0 -5
  194. package/esm2022/lib/cms-routing.module.mjs +0 -100
  195. package/esm2022/lib/cms.module.mjs +0 -132
  196. package/esm2022/lib/components/admin/domains/domains.component.mjs +0 -90
  197. package/esm2022/lib/components/admin/domains/index.mjs +0 -2
  198. package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +0 -286
  199. package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +0 -32
  200. package/esm2022/lib/components/admin/entries/create.component.mjs +0 -108
  201. package/esm2022/lib/components/admin/entries/edit.component.mjs +0 -107
  202. package/esm2022/lib/components/admin/entries/entries.component.mjs +0 -211
  203. package/esm2022/lib/components/admin/entries/index.mjs +0 -5
  204. package/esm2022/lib/components/admin/fields/create-field.component.mjs +0 -82
  205. package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +0 -119
  206. package/esm2022/lib/components/admin/fields/create-or-update-field-input-base.mjs +0 -25
  207. package/esm2022/lib/components/admin/fields/edit-field.component.mjs +0 -110
  208. package/esm2022/lib/components/admin/fields/field-group.component.mjs +0 -124
  209. package/esm2022/lib/components/admin/fields/fields.component.mjs +0 -119
  210. package/esm2022/lib/components/admin/fields/index.mjs +0 -7
  211. package/esm2022/lib/components/admin/index.mjs +0 -6
  212. package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +0 -27
  213. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +0 -71
  214. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +0 -416
  215. package/esm2022/lib/components/admin/sections/entry-types/index.mjs +0 -3
  216. package/esm2022/lib/components/admin/sections/index.mjs +0 -4
  217. package/esm2022/lib/components/admin/sections/sections.component.mjs +0 -344
  218. package/esm2022/lib/components/admin/sites/create-or-update-sites-input-base.mjs +0 -18
  219. package/esm2022/lib/components/admin/sites/index.mjs +0 -3
  220. package/esm2022/lib/components/admin/sites/sites.component.mjs +0 -29
  221. package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +0 -124
  222. package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +0 -18
  223. package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +0 -115
  224. package/esm2022/lib/components/dynamic-form/entry/index.mjs +0 -4
  225. package/esm2022/lib/components/dynamic-form/form-control-group.mjs +0 -28
  226. package/esm2022/lib/components/dynamic-form/index.mjs +0 -5
  227. package/esm2022/lib/components/dynamic-form/matrix/index.mjs +0 -4
  228. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +0 -227
  229. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +0 -50
  230. package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +0 -111
  231. package/esm2022/lib/components/dynamic-form/table/index.mjs +0 -4
  232. package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +0 -173
  233. package/esm2022/lib/components/dynamic-form/table/table-config.mjs +0 -38
  234. package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +0 -121
  235. package/esm2022/lib/components/index.mjs +0 -3
  236. package/esm2022/lib/constants/styles.mjs +0 -14
  237. package/esm2022/lib/enums/ecms-component.mjs +0 -13
  238. package/esm2022/lib/enums/index.mjs +0 -2
  239. package/esm2022/lib/proxy/admin/domains/domain-admin.service.mjs +0 -34
  240. package/esm2022/lib/proxy/admin/domains/index.mjs +0 -3
  241. package/esm2022/lib/proxy/admin/domains/models.mjs +0 -2
  242. package/esm2022/lib/proxy/admin/dynamic-forms/form-admin.service.mjs +0 -24
  243. package/esm2022/lib/proxy/admin/dynamic-forms/index.mjs +0 -3
  244. package/esm2022/lib/proxy/admin/dynamic-forms/models.mjs +0 -2
  245. package/esm2022/lib/proxy/admin/entries/entry-admin.service.mjs +0 -72
  246. package/esm2022/lib/proxy/admin/entries/index.mjs +0 -3
  247. package/esm2022/lib/proxy/admin/entries/models.mjs +0 -2
  248. package/esm2022/lib/proxy/admin/fields/field-admin.service.mjs +0 -47
  249. package/esm2022/lib/proxy/admin/fields/field-group-admin.service.mjs +0 -43
  250. package/esm2022/lib/proxy/admin/fields/index.mjs +0 -4
  251. package/esm2022/lib/proxy/admin/fields/models.mjs +0 -2
  252. package/esm2022/lib/proxy/admin/sections/entry-type-admin.service.mjs +0 -43
  253. package/esm2022/lib/proxy/admin/sections/index.mjs +0 -4
  254. package/esm2022/lib/proxy/admin/sections/models.mjs +0 -2
  255. package/esm2022/lib/proxy/admin/sections/section-admin.service.mjs +0 -53
  256. package/esm2022/lib/proxy/admin/settings/index.mjs +0 -2
  257. package/esm2022/lib/proxy/admin/settings/site-settings-admin.service.mjs +0 -33
  258. package/esm2022/lib/proxy/dignite/abp/data/models.mjs +0 -2
  259. package/esm2022/lib/proxy/entries/entry-status.enum.mjs +0 -8
  260. package/esm2022/lib/proxy/entries/index.mjs +0 -2
  261. package/esm2022/lib/proxy/fields/models.mjs +0 -2
  262. package/esm2022/lib/proxy/sections/index.mjs +0 -3
  263. package/esm2022/lib/proxy/sections/models.mjs +0 -2
  264. package/esm2022/lib/proxy/sections/section-type.enum.mjs +0 -9
  265. package/esm2022/lib/proxy/settings/models.mjs +0 -2
  266. package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +0 -2
  267. package/esm2022/lib/services/appent-content.mjs +0 -15
  268. package/esm2022/lib/services/cms-api.service.mjs +0 -80
  269. package/esm2022/lib/services/cms.service.mjs +0 -23
  270. package/esm2022/lib/services/field-abstracts.service.mjs +0 -45
  271. package/esm2022/lib/services/index.mjs +0 -5
  272. package/esm2022/lib/services/simple-reuse-strategy.mjs +0 -43
  273. package/esm2022/lib/services/update-list.service.mjs +0 -19
  274. package/esm2022/lib/toolbar/index.mjs +0 -3
  275. package/esm2022/lib/toolbar/toolbar-btn-default-action.mjs +0 -160
  276. package/esm2022/lib/toolbar/toolbar-config.mjs +0 -79
  277. package/esm2022/public-api.mjs +0 -10
  278. package/fesm2022/dignite-ng-expand.cms-config.mjs +0 -101
  279. package/fesm2022/dignite-ng-expand.cms-config.mjs.map +0 -1
  280. package/fesm2022/dignite-ng-expand.cms.mjs +0 -4079
  281. package/fesm2022/dignite-ng-expand.cms.mjs.map +0 -1
  282. package/index.d.ts +0 -5
  283. package/lib/cms-routing.module.d.ts +0 -7
  284. package/lib/cms.module.d.ts +0 -35
  285. package/lib/components/admin/domains/domains.component.d.ts +0 -21
  286. package/lib/components/admin/domains/index.d.ts +0 -1
  287. package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +0 -92
  288. package/lib/components/admin/entries/create-or-update-entry-input-base.d.ts +0 -23
  289. package/lib/components/admin/entries/create.component.d.ts +0 -40
  290. package/lib/components/admin/entries/edit.component.d.ts +0 -40
  291. package/lib/components/admin/entries/entries.component.d.ts +0 -66
  292. package/lib/components/admin/entries/index.d.ts +0 -4
  293. package/lib/components/admin/fields/create-field.component.d.ts +0 -31
  294. package/lib/components/admin/fields/create-or-edit-field.component.d.ts +0 -36
  295. package/lib/components/admin/fields/create-or-update-field-input-base.d.ts +0 -16
  296. package/lib/components/admin/fields/edit-field.component.d.ts +0 -40
  297. package/lib/components/admin/fields/field-group.component.d.ts +0 -51
  298. package/lib/components/admin/fields/fields.component.d.ts +0 -37
  299. package/lib/components/admin/fields/index.d.ts +0 -6
  300. package/lib/components/admin/index.d.ts +0 -5
  301. package/lib/components/admin/sections/create-or-update-sections-input-base.d.ts +0 -17
  302. package/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.d.ts +0 -38
  303. package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +0 -132
  304. package/lib/components/admin/sections/entry-types/index.d.ts +0 -2
  305. package/lib/components/admin/sections/index.d.ts +0 -3
  306. package/lib/components/admin/sections/sections.component.d.ts +0 -90
  307. package/lib/components/admin/sites/create-or-update-sites-input-base.d.ts +0 -8
  308. package/lib/components/admin/sites/index.d.ts +0 -2
  309. package/lib/components/admin/sites/sites.component.d.ts +0 -5
  310. package/lib/components/dynamic-form/entry/entry-config.component.d.ts +0 -39
  311. package/lib/components/dynamic-form/entry/entry-config.d.ts +0 -9
  312. package/lib/components/dynamic-form/entry/entry-control.component.d.ts +0 -35
  313. package/lib/components/dynamic-form/entry/index.d.ts +0 -3
  314. package/lib/components/dynamic-form/form-control-group.d.ts +0 -4
  315. package/lib/components/dynamic-form/index.d.ts +0 -4
  316. package/lib/components/dynamic-form/matrix/index.d.ts +0 -3
  317. package/lib/components/dynamic-form/matrix/matrix-config.component.d.ts +0 -73
  318. package/lib/components/dynamic-form/matrix/matrix-config.d.ts +0 -24
  319. package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +0 -39
  320. package/lib/components/dynamic-form/table/index.d.ts +0 -3
  321. package/lib/components/dynamic-form/table/table-config.component.d.ts +0 -58
  322. package/lib/components/dynamic-form/table/table-config.d.ts +0 -18
  323. package/lib/components/dynamic-form/table/table-control.component.d.ts +0 -39
  324. package/lib/components/index.d.ts +0 -2
  325. package/lib/constants/styles.d.ts +0 -2
  326. package/lib/enums/ecms-component.d.ts +0 -11
  327. package/lib/enums/index.d.ts +0 -1
  328. package/lib/proxy/admin/domains/domain-admin.service.d.ts +0 -13
  329. package/lib/proxy/admin/dynamic-forms/form-admin.service.d.ts +0 -12
  330. package/lib/proxy/admin/dynamic-forms/models.d.ts +0 -4
  331. package/lib/proxy/admin/entries/entry-admin.service.d.ts +0 -22
  332. package/lib/proxy/admin/entries/models.d.ts +0 -60
  333. package/lib/proxy/admin/fields/field-admin.service.d.ts +0 -17
  334. package/lib/proxy/admin/fields/field-group-admin.service.d.ts +0 -16
  335. package/lib/proxy/admin/sections/entry-type-admin.service.d.ts +0 -15
  336. package/lib/proxy/admin/sections/section-admin.service.d.ts +0 -18
  337. package/lib/proxy/admin/settings/site-settings-admin.service.d.ts +0 -13
  338. package/lib/proxy/dignite/abp/data/models.d.ts +0 -3
  339. package/lib/proxy/entries/entry-status.enum.d.ts +0 -5
  340. package/lib/proxy/fields/models.d.ts +0 -8
  341. package/lib/proxy/sections/models.d.ts +0 -12
  342. package/lib/proxy/sections/section-type.enum.d.ts +0 -6
  343. package/lib/proxy/settings/models.d.ts +0 -5
  344. package/lib/services/appent-content.d.ts +0 -1
  345. package/lib/services/cms-api.service.d.ts +0 -20
  346. package/lib/services/cms.service.d.ts +0 -10
  347. package/lib/services/field-abstracts.service.d.ts +0 -20
  348. package/lib/services/index.d.ts +0 -4
  349. package/lib/services/simple-reuse-strategy.d.ts +0 -11
  350. package/lib/services/update-list.service.d.ts +0 -9
  351. package/lib/toolbar/index.d.ts +0 -2
  352. package/lib/toolbar/toolbar-btn-default-action.d.ts +0 -18
  353. package/lib/toolbar/toolbar-config.d.ts +0 -56
  354. /package/{lib/proxy/admin/domains/index.d.ts → src/lib/proxy/admin/domains/index.ts} +0 -0
  355. /package/{lib/proxy/admin/dynamic-forms/index.d.ts → src/lib/proxy/admin/dynamic-forms/index.ts} +0 -0
  356. /package/{lib/proxy/admin/entries/index.d.ts → src/lib/proxy/admin/entries/index.ts} +0 -0
  357. /package/{lib/proxy/admin/fields/index.d.ts → src/lib/proxy/admin/fields/index.ts} +0 -0
  358. /package/{lib/proxy/admin/sections/index.d.ts → src/lib/proxy/admin/sections/index.ts} +0 -0
  359. /package/{lib/proxy/admin/settings/index.d.ts → src/lib/proxy/admin/settings/index.ts} +0 -0
  360. /package/{lib/proxy/entries/index.d.ts → src/lib/proxy/entries/index.ts} +0 -0
  361. /package/{lib/proxy/sections/index.d.ts → src/lib/proxy/sections/index.ts} +0 -0
@@ -0,0 +1,109 @@
1
+ import type { CreateEntryInput, CultureExistWithSingleSectionInput, EntryDto, GetEntriesInput, MoveEntryInput, SlugExistsInput, UpdateEntryInput } from './models';
2
+ import { RestService, Rest } from '@abp/ng.core';
3
+ import type { ListResultDto, PagedResultDto } from '@abp/ng.core';
4
+ import { Injectable } from '@angular/core';
5
+
6
+ @Injectable({
7
+ providedIn: 'root',
8
+ })
9
+ export class EntryAdminService {
10
+ apiName = 'CmsAdmin';
11
+
12
+
13
+ activate = (id: string, config?: Partial<Rest.Config>) =>
14
+ this.restService.request<any, void>({
15
+ method: 'POST',
16
+ url: `/api/cms-admin/entries/activate/${id}`,
17
+ },
18
+ { apiName: this.apiName,...config });
19
+
20
+
21
+ create = (input: CreateEntryInput, config?: Partial<Rest.Config>) =>
22
+ this.restService.request<any, EntryDto>({
23
+ method: 'POST',
24
+ url: '/api/cms-admin/entries',
25
+ body: input,
26
+ },
27
+ { apiName: this.apiName,...config });
28
+
29
+
30
+ cultureExistWithSingleSection = (input: CultureExistWithSingleSectionInput, config?: Partial<Rest.Config>) =>
31
+ this.restService.request<any, boolean>({
32
+ method: 'GET',
33
+ url: '/api/cms-admin/entries/culture-exists-with-single-section',
34
+ params: { culture: input.culture, sectionId: input.sectionId, entryTypeId: input.entryTypeId },
35
+ },
36
+ { apiName: this.apiName,...config });
37
+
38
+
39
+ delete = (id: string, config?: Partial<Rest.Config>) =>
40
+ this.restService.request<any, void>({
41
+ method: 'DELETE',
42
+ url: `/api/cms-admin/entries/${id}`,
43
+ },
44
+ { apiName: this.apiName,...config });
45
+
46
+
47
+ get = (id: string, config?: Partial<Rest.Config>) =>
48
+ this.restService.request<any, EntryDto>({
49
+ method: 'GET',
50
+ url: `/api/cms-admin/entries/${id}`,
51
+ },
52
+ { apiName: this.apiName,...config });
53
+
54
+
55
+ getAllVersions = (id: string, config?: Partial<Rest.Config>) =>
56
+ this.restService.request<any, ListResultDto<EntryDto>>({
57
+ method: 'GET',
58
+ url: `/api/cms-admin/entries/${id}/all-versions`,
59
+ },
60
+ { apiName: this.apiName,...config });
61
+
62
+
63
+ getList = (input: GetEntriesInput, config?: Partial<Rest.Config>) =>
64
+ this.restService.request<any, PagedResultDto<EntryDto>>({
65
+ method: 'GET',
66
+ url: '/api/cms-admin/entries',
67
+ params: { culture: input.culture, sectionId: input.sectionId, entryTypeId: input.entryTypeId, startPublishDate: input.startPublishDate, expiryPublishDate: input.expiryPublishDate, filter: input.filter, status: input.status, creatorId: input.creatorId, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
68
+ },
69
+ { apiName: this.apiName,...config });
70
+
71
+
72
+ getListByIds = (sectionId: string, ids: string[], config?: Partial<Rest.Config>) =>
73
+ this.restService.request<any, ListResultDto<EntryDto>>({
74
+ method: 'GET',
75
+ url: '/api/cms-admin/entries/search-by-ids',
76
+ params: { sectionId, ids },
77
+ },
78
+ { apiName: this.apiName,...config });
79
+
80
+
81
+ move = (id: string, input: MoveEntryInput, config?: Partial<Rest.Config>) =>
82
+ this.restService.request<any, void>({
83
+ method: 'POST',
84
+ url: `/api/cms-admin/entries/move/${id}`,
85
+ body: input,
86
+ },
87
+ { apiName: this.apiName,...config });
88
+
89
+
90
+ slugExists = (input: SlugExistsInput, config?: Partial<Rest.Config>) =>
91
+ this.restService.request<any, boolean>({
92
+ method: 'GET',
93
+ url: '/api/cms-admin/entries/slug-exists',
94
+ params: { culture: input.culture, sectionId: input.sectionId, slug: input.slug },
95
+ },
96
+ { apiName: this.apiName,...config });
97
+
98
+
99
+ update = (id: string, input: UpdateEntryInput, config?: Partial<Rest.Config>) =>
100
+ this.restService.request<any, EntryDto>({
101
+ method: 'PUT',
102
+ url: '/api/cms-admin/entries',
103
+ params: { id },
104
+ body: input,
105
+ },
106
+ { apiName: this.apiName,...config });
107
+
108
+ constructor(private restService: RestService) {}
109
+ }
@@ -0,0 +1,68 @@
1
+ import type { CustomizableObject } from '../../dignite/abp/data/models';
2
+ import type { ExtensibleAuditedEntityDto, PagedAndSortedResultRequestDto } from '@abp/ng.core';
3
+ import type { EntryStatus } from '../../entries/entry-status.enum';
4
+ import type { CmsUserDto } from '../../volo/cms-kit/users/models';
5
+
6
+ export interface CreateEntryInput extends CreateOrUpdateEntryInputBase {
7
+ initialVersionId?: string;
8
+ }
9
+
10
+ export interface CreateOrUpdateEntryInputBase extends CustomizableObject {
11
+ entryTypeId: string;
12
+ culture: string;
13
+ title: string;
14
+ slug: string;
15
+ parentId?: string;
16
+ draft: boolean;
17
+ publishTime: string;
18
+ versionNotes?: string;
19
+ }
20
+
21
+ export interface CultureExistWithSingleSectionInput {
22
+ culture: string;
23
+ sectionId: string;
24
+ entryTypeId: string;
25
+ }
26
+
27
+ export interface EntryDto extends ExtensibleAuditedEntityDto<string> {
28
+ sectionId?: string;
29
+ entryTypeId?: string;
30
+ culture?: string;
31
+ title?: string;
32
+ slug?: string;
33
+ publishTime?: string;
34
+ status: EntryStatus;
35
+ parentId?: string;
36
+ order: number;
37
+ initialVersionId?: string;
38
+ isActivatedVersion: boolean;
39
+ versionNotes?: string;
40
+ author: CmsUserDto;
41
+ concurrencyStamp?: string;
42
+ }
43
+
44
+ export interface GetEntriesInput extends PagedAndSortedResultRequestDto {
45
+ culture: string;
46
+ sectionId: string;
47
+ entryTypeId?: string;
48
+ startPublishDate?: string;
49
+ expiryPublishDate?: string;
50
+ filter?: string;
51
+ status?: EntryStatus;
52
+ creatorId?: string;
53
+ }
54
+
55
+ export interface MoveEntryInput {
56
+ parentId?: string;
57
+ order: number;
58
+ }
59
+
60
+ export interface SlugExistsInput {
61
+ culture: string;
62
+ sectionId: string;
63
+ slug?: string;
64
+ }
65
+
66
+ export interface UpdateEntryInput extends CreateOrUpdateEntryInputBase {
67
+ concurrencyStamp?: string;
68
+ }
@@ -0,0 +1,64 @@
1
+ import type { CreateFieldInput, FieldDto, GetFieldsInput, UpdateFieldInput } from './models';
2
+ import { RestService, Rest } from '@abp/ng.core';
3
+ import type { PagedResultDto } from '@abp/ng.core';
4
+ import { Injectable } from '@angular/core';
5
+
6
+ @Injectable({
7
+ providedIn: 'root',
8
+ })
9
+ export class FieldAdminService {
10
+ apiName = 'CmsAdmin';
11
+
12
+
13
+ create = (input: CreateFieldInput, config?: Partial<Rest.Config>) =>
14
+ this.restService.request<any, FieldDto>({
15
+ method: 'POST',
16
+ url: '/api/cms-admin/fields',
17
+ body: input,
18
+ },
19
+ { apiName: this.apiName,...config });
20
+
21
+
22
+ delete = (id: string, config?: Partial<Rest.Config>) =>
23
+ this.restService.request<any, void>({
24
+ method: 'DELETE',
25
+ url: `/api/cms-admin/fields/${id}`,
26
+ },
27
+ { apiName: this.apiName,...config });
28
+
29
+
30
+ get = (id: string, config?: Partial<Rest.Config>) =>
31
+ this.restService.request<any, FieldDto>({
32
+ method: 'GET',
33
+ url: `/api/cms-admin/fields/${id}`,
34
+ },
35
+ { apiName: this.apiName,...config });
36
+
37
+
38
+ getList = (input: GetFieldsInput, config?: Partial<Rest.Config>) =>
39
+ this.restService.request<any, PagedResultDto<FieldDto>>({
40
+ method: 'GET',
41
+ url: '/api/cms-admin/fields',
42
+ params: { filter: input.filter, groupId: input.groupId, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
43
+ },
44
+ { apiName: this.apiName,...config });
45
+
46
+
47
+ nameExists = (name: string, config?: Partial<Rest.Config>) =>
48
+ this.restService.request<any, boolean>({
49
+ method: 'GET',
50
+ url: `/api/cms-admin/fields/name-exists/${name}`,
51
+ },
52
+ { apiName: this.apiName,...config });
53
+
54
+
55
+ update = (id: string, input: UpdateFieldInput, config?: Partial<Rest.Config>) =>
56
+ this.restService.request<any, FieldDto>({
57
+ method: 'PUT',
58
+ url: `/api/cms-admin/fields/${id}`,
59
+ body: input,
60
+ },
61
+ { apiName: this.apiName,...config });
62
+
63
+ constructor(private restService: RestService) {}
64
+ }
@@ -0,0 +1,56 @@
1
+ import type { CreateOrUpdateFieldGroupInput, FieldGroupDto, GetFieldGroupsInput } from './models';
2
+ import { RestService, Rest } from '@abp/ng.core';
3
+ import type { PagedResultDto } from '@abp/ng.core';
4
+ import { Injectable } from '@angular/core';
5
+
6
+ @Injectable({
7
+ providedIn: 'root',
8
+ })
9
+ export class FieldGroupAdminService {
10
+ apiName = 'CmsAdmin';
11
+
12
+
13
+ create = (input: CreateOrUpdateFieldGroupInput, config?: Partial<Rest.Config>) =>
14
+ this.restService.request<any, FieldGroupDto>({
15
+ method: 'POST',
16
+ url: '/api/cms-admin/field-groups',
17
+ body: input,
18
+ },
19
+ { apiName: this.apiName,...config });
20
+
21
+
22
+ delete = (id: string, config?: Partial<Rest.Config>) =>
23
+ this.restService.request<any, void>({
24
+ method: 'DELETE',
25
+ url: `/api/cms-admin/field-groups/${id}`,
26
+ },
27
+ { apiName: this.apiName,...config });
28
+
29
+
30
+ get = (id: string, config?: Partial<Rest.Config>) =>
31
+ this.restService.request<any, FieldGroupDto>({
32
+ method: 'GET',
33
+ url: `/api/cms-admin/field-groups/${id}`,
34
+ },
35
+ { apiName: this.apiName,...config });
36
+
37
+
38
+ getList = (input: GetFieldGroupsInput, config?: Partial<Rest.Config>) =>
39
+ this.restService.request<any, PagedResultDto<FieldGroupDto>>({
40
+ method: 'GET',
41
+ url: '/api/cms-admin/field-groups',
42
+ params: { input },
43
+ },
44
+ { apiName: this.apiName,...config });
45
+
46
+
47
+ update = (id: string, input: CreateOrUpdateFieldGroupInput, config?: Partial<Rest.Config>) =>
48
+ this.restService.request<any, FieldGroupDto>({
49
+ method: 'PUT',
50
+ url: `/api/cms-admin/field-groups/${id}`,
51
+ body: input,
52
+ },
53
+ { apiName: this.apiName,...config });
54
+
55
+ constructor(private restService: RestService) {}
56
+ }
@@ -1,34 +1,42 @@
1
- import type { FieldDtoConfig } from '../../fields/models';
2
- import type { EntityDto, PagedAndSortedResultRequestDto } from '@abp/ng.core';
3
- export interface CreateFieldInput extends CreateOrUpdateFieldInputBase {
4
- }
5
- export interface CreateOrUpdateFieldGroupInput {
6
- name: string;
7
- }
8
- export interface CreateOrUpdateFieldInputBase {
9
- groupId?: string;
10
- displayName: string;
11
- name: string;
12
- description?: string;
13
- formControlName: string;
14
- formConfiguration: Record<string, object>;
15
- }
16
- export interface FieldDto extends FieldDtoConfig {
17
- groupId?: string;
18
- groupName?: string;
19
- creationTime?: string;
20
- creatorId?: string;
21
- lastModifierId?: string;
22
- lastModificationTime?: string;
23
- }
24
- export interface FieldGroupDto extends EntityDto<string> {
25
- name?: string;
26
- }
27
- export interface GetFieldGroupsInput {
28
- }
29
- export interface GetFieldsInput extends PagedAndSortedResultRequestDto {
30
- filter?: string;
31
- groupId?: string;
32
- }
33
- export interface UpdateFieldInput extends CreateOrUpdateFieldInputBase {
34
- }
1
+ import type { FieldDtoConfig } from '../../fields/models';
2
+ import type { EntityDto, PagedAndSortedResultRequestDto } from '@abp/ng.core';
3
+
4
+ export interface CreateFieldInput extends CreateOrUpdateFieldInputBase {
5
+ }
6
+
7
+ export interface CreateOrUpdateFieldGroupInput {
8
+ name: string;
9
+ }
10
+
11
+ export interface CreateOrUpdateFieldInputBase {
12
+ groupId?: string;
13
+ displayName: string;
14
+ name: string;
15
+ description?: string;
16
+ formControlName: string;
17
+ formConfiguration: Record<string, object>;
18
+ }
19
+
20
+ export interface FieldDto extends FieldDtoConfig {
21
+ groupId?: string;
22
+ groupName?: string;
23
+ creationTime?: string;
24
+ creatorId?: string;
25
+ lastModifierId?: string;
26
+ lastModificationTime?: string;
27
+ }
28
+
29
+ export interface FieldGroupDto extends EntityDto<string> {
30
+ name?: string;
31
+ }
32
+
33
+ export interface GetFieldGroupsInput {
34
+ }
35
+
36
+ export interface GetFieldsInput extends PagedAndSortedResultRequestDto {
37
+ filter?: string;
38
+ groupId?: string;
39
+ }
40
+
41
+ export interface UpdateFieldInput extends CreateOrUpdateFieldInputBase {
42
+ }
@@ -0,0 +1,7 @@
1
+ import * as Domains from './domains';
2
+ import * as DynamicForms from './dynamic-forms';
3
+ import * as Entries from './entries';
4
+ import * as Fields from './fields';
5
+ import * as Sections from './sections';
6
+ import * as Settings from './settings';
7
+ export { Domains, DynamicForms, Entries, Fields, Sections, Settings };
@@ -0,0 +1,55 @@
1
+ import type { CreateEntryTypeInput, EntryTypeDto, EntryTypeNameExistsInput, UpdateEntryTypeInput } from './models';
2
+ import { RestService, Rest } from '@abp/ng.core';
3
+ import { Injectable } from '@angular/core';
4
+
5
+ @Injectable({
6
+ providedIn: 'root',
7
+ })
8
+ export class EntryTypeAdminService {
9
+ apiName = 'CmsAdmin';
10
+
11
+
12
+ create = (input: CreateEntryTypeInput, config?: Partial<Rest.Config>) =>
13
+ this.restService.request<any, EntryTypeDto>({
14
+ method: 'POST',
15
+ url: '/api/cms-admin/entry-types',
16
+ body: input,
17
+ },
18
+ { apiName: this.apiName,...config });
19
+
20
+
21
+ delete = (id: string, config?: Partial<Rest.Config>) =>
22
+ this.restService.request<any, void>({
23
+ method: 'DELETE',
24
+ url: `/api/cms-admin/entry-types/${id}`,
25
+ },
26
+ { apiName: this.apiName,...config });
27
+
28
+
29
+ get = (id: string, config?: Partial<Rest.Config>) =>
30
+ this.restService.request<any, EntryTypeDto>({
31
+ method: 'GET',
32
+ url: `/api/cms-admin/entry-types/${id}`,
33
+ },
34
+ { apiName: this.apiName,...config });
35
+
36
+
37
+ nameExists = (input: EntryTypeNameExistsInput, config?: Partial<Rest.Config>) =>
38
+ this.restService.request<any, boolean>({
39
+ method: 'GET',
40
+ url: '/api/cms-admin/entry-types/name-exists',
41
+ params: { sectionId: input.sectionId, name: input.name },
42
+ },
43
+ { apiName: this.apiName,...config });
44
+
45
+
46
+ update = (id: string, input: UpdateEntryTypeInput, config?: Partial<Rest.Config>) =>
47
+ this.restService.request<any, EntryTypeDto>({
48
+ method: 'PUT',
49
+ url: `/api/cms-admin/entry-types/${id}`,
50
+ body: input,
51
+ },
52
+ { apiName: this.apiName,...config });
53
+
54
+ constructor(private restService: RestService) {}
55
+ }
@@ -1,67 +1,81 @@
1
- import type { AuditedEntityDto, ExtensibleAuditedEntityDto, ExtensibleObject, PagedAndSortedResultRequestDto } from '@abp/ng.core';
2
- import type { SectionType } from '../../sections/section-type.enum';
3
- import type { EntryFieldTabDto } from '../../sections/models';
4
- export interface CreateEntryTypeInput extends CreateOrUpdateEntryTypeInputBase {
5
- sectionId: string;
6
- }
7
- export interface CreateOrUpdateEntryTypeInputBase {
8
- displayName: string;
9
- name: string;
10
- fieldTabs: EntryFieldTabInput[];
11
- }
12
- export interface CreateOrUpdateSectionInputBase extends ExtensibleObject {
13
- type: SectionType;
14
- displayName: string;
15
- name: string;
16
- isDefault: boolean;
17
- isActive: boolean;
18
- route?: string;
19
- template?: string;
20
- }
21
- export interface CreateSectionInput extends CreateOrUpdateSectionInputBase {
22
- }
23
- export interface EntryFieldInput {
24
- fieldId: string;
25
- displayName: string;
26
- required: boolean;
27
- showOnList: boolean;
28
- }
29
- export interface EntryFieldTabInput {
30
- name: string;
31
- fields: EntryFieldInput[];
32
- }
33
- export interface EntryTypeDto extends AuditedEntityDto<string> {
34
- displayName?: string;
35
- name?: string;
36
- fieldTabs: EntryFieldTabDto[];
37
- }
38
- export interface EntryTypeNameExistsInput {
39
- sectionId: string;
40
- name: string;
41
- }
42
- export interface GetSectionsInput extends PagedAndSortedResultRequestDto {
43
- filter?: string;
44
- isActive?: boolean;
45
- }
46
- export interface SectionDto extends ExtensibleAuditedEntityDto<string> {
47
- type: SectionType;
48
- displayName?: string;
49
- name?: string;
50
- isDefault: boolean;
51
- isActive: boolean;
52
- route?: string;
53
- template?: string;
54
- concurrencyStamp?: string;
55
- entryTypes: EntryTypeDto[];
56
- }
57
- export interface SectionNameExistsInput {
58
- name: string;
59
- }
60
- export interface SectionRouteExistsInput {
61
- route: string;
62
- }
63
- export interface UpdateEntryTypeInput extends CreateOrUpdateEntryTypeInputBase {
64
- }
65
- export interface UpdateSectionInput extends CreateOrUpdateSectionInputBase {
66
- concurrencyStamp?: string;
67
- }
1
+ import type { AuditedEntityDto, ExtensibleAuditedEntityDto, ExtensibleObject, PagedAndSortedResultRequestDto } from '@abp/ng.core';
2
+ import type { SectionType } from '../../sections/section-type.enum';
3
+ import type { EntryFieldTabDto } from '../../sections/models';
4
+
5
+ export interface CreateEntryTypeInput extends CreateOrUpdateEntryTypeInputBase {
6
+ sectionId: string;
7
+ }
8
+
9
+ export interface CreateOrUpdateEntryTypeInputBase {
10
+ displayName: string;
11
+ name: string;
12
+ fieldTabs: EntryFieldTabInput[];
13
+ }
14
+
15
+ export interface CreateOrUpdateSectionInputBase extends ExtensibleObject {
16
+ type: SectionType;
17
+ displayName: string;
18
+ name: string;
19
+ isDefault: boolean;
20
+ isActive: boolean;
21
+ route?: string;
22
+ template?: string;
23
+ }
24
+
25
+ export interface CreateSectionInput extends CreateOrUpdateSectionInputBase {
26
+ }
27
+
28
+ export interface EntryFieldInput {
29
+ fieldId: string;
30
+ displayName: string;
31
+ required: boolean;
32
+ showOnList: boolean;
33
+ }
34
+
35
+ export interface EntryFieldTabInput {
36
+ name: string;
37
+ fields: EntryFieldInput[];
38
+ }
39
+
40
+ export interface EntryTypeDto extends AuditedEntityDto<string> {
41
+ displayName?: string;
42
+ name?: string;
43
+ fieldTabs: EntryFieldTabDto[];
44
+ }
45
+
46
+ export interface EntryTypeNameExistsInput {
47
+ sectionId: string;
48
+ name: string;
49
+ }
50
+
51
+ export interface GetSectionsInput extends PagedAndSortedResultRequestDto {
52
+ filter?: string;
53
+ isActive?: boolean;
54
+ }
55
+
56
+ export interface SectionDto extends ExtensibleAuditedEntityDto<string> {
57
+ type: SectionType;
58
+ displayName?: string;
59
+ name?: string;
60
+ isDefault: boolean;
61
+ isActive: boolean;
62
+ route?: string;
63
+ template?: string;
64
+ concurrencyStamp?: string;
65
+ entryTypes: EntryTypeDto[];
66
+ }
67
+
68
+ export interface SectionNameExistsInput {
69
+ name: string;
70
+ }
71
+
72
+ export interface SectionRouteExistsInput {
73
+ route: string;
74
+ }
75
+
76
+ export interface UpdateEntryTypeInput extends CreateOrUpdateEntryTypeInputBase {
77
+ }
78
+
79
+ export interface UpdateSectionInput extends CreateOrUpdateSectionInputBase {
80
+ concurrencyStamp?: string;
81
+ }
@@ -0,0 +1,74 @@
1
+ import type { CreateSectionInput, GetSectionsInput, SectionDto, SectionNameExistsInput, SectionRouteExistsInput, UpdateSectionInput } from './models';
2
+ import { RestService, Rest } from '@abp/ng.core';
3
+ import type { PagedResultDto } from '@abp/ng.core';
4
+ import { Injectable } from '@angular/core';
5
+
6
+ @Injectable({
7
+ providedIn: 'root',
8
+ })
9
+ export class SectionAdminService {
10
+ apiName = 'CmsAdmin';
11
+
12
+
13
+ create = (input: CreateSectionInput, config?: Partial<Rest.Config>) =>
14
+ this.restService.request<any, SectionDto>({
15
+ method: 'POST',
16
+ url: '/api/cms-admin/sections',
17
+ body: input,
18
+ },
19
+ { apiName: this.apiName,...config });
20
+
21
+
22
+ delete = (id: string, config?: Partial<Rest.Config>) =>
23
+ this.restService.request<any, void>({
24
+ method: 'DELETE',
25
+ url: `/api/cms-admin/sections/${id}`,
26
+ },
27
+ { apiName: this.apiName,...config });
28
+
29
+
30
+ get = (id: string, config?: Partial<Rest.Config>) =>
31
+ this.restService.request<any, SectionDto>({
32
+ method: 'GET',
33
+ url: `/api/cms-admin/sections/${id}`,
34
+ },
35
+ { apiName: this.apiName,...config });
36
+
37
+
38
+ getList = (input: GetSectionsInput, config?: Partial<Rest.Config>) =>
39
+ this.restService.request<any, PagedResultDto<SectionDto>>({
40
+ method: 'GET',
41
+ url: '/api/cms-admin/sections',
42
+ params: { filter: input.filter, isActive: input.isActive, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
43
+ },
44
+ { apiName: this.apiName,...config });
45
+
46
+
47
+ nameExists = (input: SectionNameExistsInput, config?: Partial<Rest.Config>) =>
48
+ this.restService.request<any, boolean>({
49
+ method: 'GET',
50
+ url: '/api/cms-admin/sections/name-exists',
51
+ params: { name: input.name },
52
+ },
53
+ { apiName: this.apiName,...config });
54
+
55
+
56
+ routeExists = (input: SectionRouteExistsInput, config?: Partial<Rest.Config>) =>
57
+ this.restService.request<any, boolean>({
58
+ method: 'GET',
59
+ url: '/api/cms-admin/sections/route-exists',
60
+ params: { route: input.route },
61
+ },
62
+ { apiName: this.apiName,...config });
63
+
64
+
65
+ update = (id: string, input: UpdateSectionInput, config?: Partial<Rest.Config>) =>
66
+ this.restService.request<any, SectionDto>({
67
+ method: 'PUT',
68
+ url: `/api/cms-admin/sections/${id}`,
69
+ body: input,
70
+ },
71
+ { apiName: this.apiName,...config });
72
+
73
+ constructor(private restService: RestService) {}
74
+ }