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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/config/cms-config.module.d.ts +8 -0
  2. package/config/{src/enums/index.ts → enums/index.d.ts} +1 -1
  3. package/config/enums/route-names.d.ts +7 -0
  4. package/config/index.d.ts +5 -0
  5. package/config/{src/providers/index.ts → providers/index.d.ts} +1 -1
  6. package/config/providers/route.provider.d.ts +9 -0
  7. package/config/{src/public-api.ts → public-api.d.ts} +3 -3
  8. package/esm2022/config/cms-config.module.mjs +19 -0
  9. package/esm2022/config/dignite-ng-expand.cms-config.mjs +5 -0
  10. package/esm2022/config/enums/index.mjs +2 -0
  11. package/esm2022/config/enums/route-names.mjs +9 -0
  12. package/esm2022/config/providers/index.mjs +2 -0
  13. package/esm2022/config/providers/route.provider.mjs +60 -0
  14. package/esm2022/config/public-api.mjs +4 -0
  15. package/esm2022/dignite-ng-expand.cms.mjs +5 -0
  16. package/esm2022/lib/cms-routing.module.mjs +94 -0
  17. package/esm2022/lib/cms.module.mjs +146 -0
  18. package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +226 -0
  19. package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +25 -0
  20. package/esm2022/lib/components/admin/entries/create.component.mjs +136 -0
  21. package/esm2022/lib/components/admin/entries/edit.component.mjs +138 -0
  22. package/esm2022/lib/components/admin/entries/entries.component.mjs +367 -0
  23. package/esm2022/lib/components/admin/entries/index.mjs +5 -0
  24. package/esm2022/lib/components/admin/fields/create-field.component.mjs +87 -0
  25. package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +116 -0
  26. package/esm2022/lib/components/admin/fields/create-or-update-field-input-base.mjs +25 -0
  27. package/esm2022/lib/components/admin/fields/edit-field.component.mjs +109 -0
  28. package/esm2022/lib/components/admin/fields/field-group.component.mjs +131 -0
  29. package/esm2022/lib/components/admin/fields/fields.component.mjs +107 -0
  30. package/esm2022/lib/components/admin/fields/index.mjs +7 -0
  31. package/esm2022/lib/components/admin/index.mjs +4 -0
  32. package/esm2022/lib/components/admin/sections/create-or-edit-sections-modal.component.mjs +210 -0
  33. package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +22 -0
  34. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +47 -0
  35. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +423 -0
  36. package/esm2022/lib/components/admin/sections/entry-types/index.mjs +3 -0
  37. package/esm2022/lib/components/admin/sections/index.mjs +4 -0
  38. package/esm2022/lib/components/admin/sections/sections.component.mjs +138 -0
  39. package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +117 -0
  40. package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +18 -0
  41. package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +105 -0
  42. package/esm2022/lib/components/dynamic-form/entry/entry-view.component.mjs +60 -0
  43. package/esm2022/lib/components/dynamic-form/entry/index.mjs +4 -0
  44. package/esm2022/lib/components/dynamic-form/form-control-group.mjs +34 -0
  45. package/esm2022/lib/components/dynamic-form/index.mjs +5 -0
  46. package/esm2022/lib/components/dynamic-form/matrix/index.mjs +4 -0
  47. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +219 -0
  48. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +50 -0
  49. package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +108 -0
  50. package/esm2022/lib/components/dynamic-form/matrix/matrix-view.component.mjs +40 -0
  51. package/esm2022/lib/components/dynamic-form/table/index.mjs +4 -0
  52. package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +158 -0
  53. package/esm2022/lib/components/dynamic-form/table/table-config.mjs +38 -0
  54. package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +118 -0
  55. package/esm2022/lib/components/dynamic-form/table/table-view.component.mjs +40 -0
  56. package/esm2022/lib/components/index.mjs +3 -0
  57. package/esm2022/lib/constants/styles.mjs +19 -0
  58. package/esm2022/lib/enums/ecms-component.mjs +13 -0
  59. package/esm2022/lib/enums/index.mjs +2 -0
  60. package/esm2022/lib/proxy/dignite/abp/data/models.mjs +2 -0
  61. package/esm2022/lib/proxy/dignite/abp/regionalization-management/index.mjs +3 -0
  62. package/esm2022/lib/proxy/dignite/abp/regionalization-management/models.mjs +2 -0
  63. package/esm2022/lib/proxy/dignite/abp/regionalization-management/regionalization.service.mjs +27 -0
  64. package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.mjs +22 -0
  65. package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/index.mjs +3 -0
  66. package/esm2022/lib/proxy/dignite/cms/admin/dynamic-forms/models.mjs +2 -0
  67. package/esm2022/lib/proxy/dignite/cms/admin/entries/entry-admin.service.mjs +70 -0
  68. package/esm2022/lib/proxy/dignite/cms/admin/entries/index.mjs +3 -0
  69. package/esm2022/lib/proxy/dignite/cms/admin/entries/models.mjs +2 -0
  70. package/esm2022/lib/proxy/dignite/cms/admin/fields/field-admin.service.mjs +45 -0
  71. package/esm2022/lib/proxy/dignite/cms/admin/fields/field-group-admin.service.mjs +41 -0
  72. package/esm2022/lib/proxy/dignite/cms/admin/fields/index.mjs +4 -0
  73. package/esm2022/lib/proxy/dignite/cms/admin/fields/models.mjs +2 -0
  74. package/esm2022/lib/proxy/dignite/cms/admin/sections/entry-type-admin.service.mjs +41 -0
  75. package/esm2022/lib/proxy/dignite/cms/admin/sections/index.mjs +4 -0
  76. package/esm2022/lib/proxy/dignite/cms/admin/sections/models.mjs +2 -0
  77. package/esm2022/lib/proxy/dignite/cms/admin/sections/section-admin.service.mjs +51 -0
  78. package/esm2022/lib/proxy/dignite/cms/entries/entry-status.enum.mjs +8 -0
  79. package/esm2022/lib/proxy/dignite/cms/entries/index.mjs +2 -0
  80. package/esm2022/lib/proxy/dignite/cms/fields/models.mjs +2 -0
  81. package/esm2022/lib/proxy/dignite/cms/sections/index.mjs +3 -0
  82. package/esm2022/lib/proxy/dignite/cms/sections/models.mjs +2 -0
  83. package/esm2022/lib/proxy/dignite/cms/sections/section-type.enum.mjs +9 -0
  84. package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +2 -0
  85. package/esm2022/lib/resolvers/extensions-props-action-token.resolver.mjs +136 -0
  86. package/esm2022/lib/resolvers/page-default-toolbar-actions.mjs +160 -0
  87. package/esm2022/lib/resolvers/table-default-entity-actions.mjs +28 -0
  88. package/esm2022/lib/resolvers/table-default-entity-props.mjs +53 -0
  89. package/esm2022/lib/services/appent-content.mjs +15 -0
  90. package/esm2022/lib/services/cms-api.service.mjs +93 -0
  91. package/esm2022/lib/services/cms.service.mjs +21 -0
  92. package/esm2022/lib/services/field-abstracts.service.mjs +42 -0
  93. package/esm2022/lib/services/form-controls.service.mjs +40 -0
  94. package/esm2022/lib/services/index.mjs +4 -0
  95. package/esm2022/public-api.mjs +7 -0
  96. package/fesm2022/dignite-ng-expand.cms-config.mjs +92 -0
  97. package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -0
  98. package/fesm2022/dignite-ng-expand.cms.mjs +4250 -0
  99. package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -0
  100. package/index.d.ts +5 -0
  101. package/lib/cms-routing.module.d.ts +7 -0
  102. package/lib/cms.module.d.ts +40 -0
  103. package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +63 -0
  104. package/lib/components/admin/entries/create-or-update-entry-input-base.d.ts +23 -0
  105. package/lib/components/admin/entries/create.component.d.ts +50 -0
  106. package/lib/components/admin/entries/edit.component.d.ts +53 -0
  107. package/lib/components/admin/entries/entries.component.d.ts +101 -0
  108. package/lib/components/admin/entries/index.d.ts +4 -0
  109. package/lib/components/admin/fields/create-field.component.d.ts +37 -0
  110. package/lib/components/admin/fields/create-or-edit-field.component.d.ts +37 -0
  111. package/lib/components/admin/fields/create-or-update-field-input-base.d.ts +16 -0
  112. package/lib/components/admin/fields/edit-field.component.d.ts +46 -0
  113. package/lib/components/admin/fields/field-group.component.d.ts +58 -0
  114. package/lib/components/admin/fields/fields.component.d.ts +35 -0
  115. package/lib/components/admin/fields/index.d.ts +6 -0
  116. package/lib/components/admin/index.d.ts +3 -0
  117. package/lib/components/admin/sections/create-or-edit-sections-modal.component.d.ts +49 -0
  118. package/lib/components/admin/sections/create-or-update-sections-input-base.d.ts +20 -0
  119. package/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.d.ts +28 -0
  120. package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +147 -0
  121. package/lib/components/admin/sections/entry-types/index.d.ts +2 -0
  122. package/lib/components/admin/sections/index.d.ts +3 -0
  123. package/lib/components/admin/sections/sections.component.d.ts +46 -0
  124. package/lib/components/dynamic-form/entry/entry-config.component.d.ts +40 -0
  125. package/lib/components/dynamic-form/entry/entry-config.d.ts +9 -0
  126. package/lib/components/dynamic-form/entry/entry-control.component.d.ts +36 -0
  127. package/lib/components/dynamic-form/entry/entry-view.component.d.ts +22 -0
  128. package/lib/components/dynamic-form/entry/index.d.ts +3 -0
  129. package/lib/components/dynamic-form/form-control-group.d.ts +4 -0
  130. package/lib/components/dynamic-form/index.d.ts +4 -0
  131. package/lib/components/dynamic-form/matrix/index.d.ts +3 -0
  132. package/lib/components/dynamic-form/matrix/matrix-config.component.d.ts +74 -0
  133. package/lib/components/dynamic-form/matrix/matrix-config.d.ts +24 -0
  134. package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +42 -0
  135. package/lib/components/dynamic-form/matrix/matrix-view.component.d.ts +17 -0
  136. package/lib/components/dynamic-form/table/index.d.ts +3 -0
  137. package/lib/components/dynamic-form/table/table-config.component.d.ts +59 -0
  138. package/lib/components/dynamic-form/table/table-config.d.ts +18 -0
  139. package/lib/components/dynamic-form/table/table-control.component.d.ts +42 -0
  140. package/lib/components/dynamic-form/table/table-view.component.d.ts +17 -0
  141. package/lib/components/index.d.ts +2 -0
  142. package/lib/constants/styles.d.ts +2 -0
  143. package/lib/enums/ecms-component.d.ts +11 -0
  144. package/lib/enums/index.d.ts +1 -0
  145. package/lib/proxy/dignite/abp/data/models.d.ts +3 -0
  146. package/lib/proxy/dignite/abp/regionalization-management/models.d.ts +8 -0
  147. package/lib/proxy/dignite/abp/regionalization-management/regionalization.service.d.ts +12 -0
  148. package/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.d.ts +12 -0
  149. package/lib/proxy/dignite/cms/admin/dynamic-forms/models.d.ts +5 -0
  150. package/lib/proxy/dignite/cms/admin/entries/entry-admin.service.d.ts +22 -0
  151. package/lib/proxy/dignite/cms/admin/entries/models.d.ts +61 -0
  152. package/lib/proxy/dignite/cms/admin/fields/field-admin.service.d.ts +17 -0
  153. package/lib/proxy/dignite/cms/admin/fields/field-group-admin.service.d.ts +16 -0
  154. package/{src/lib/proxy/dignite/cms/admin/fields/models.ts → lib/proxy/dignite/cms/admin/fields/models.d.ts} +34 -42
  155. package/lib/proxy/dignite/cms/admin/sections/entry-type-admin.service.d.ts +15 -0
  156. package/{src/lib/proxy/dignite/cms/admin/sections/models.ts → lib/proxy/dignite/cms/admin/sections/models.d.ts} +68 -82
  157. package/lib/proxy/dignite/cms/admin/sections/section-admin.service.d.ts +18 -0
  158. package/lib/proxy/dignite/cms/entries/entry-status.enum.d.ts +5 -0
  159. package/lib/proxy/dignite/cms/fields/models.d.ts +8 -0
  160. package/lib/proxy/dignite/cms/sections/models.d.ts +13 -0
  161. package/lib/proxy/dignite/cms/sections/section-type.enum.d.ts +6 -0
  162. package/{src/lib/proxy/volo/cms-kit/users/models.ts → lib/proxy/volo/cms-kit/users/models.d.ts} +7 -8
  163. package/lib/resolvers/extensions-props-action-token.resolver.d.ts +75 -0
  164. package/lib/resolvers/page-default-toolbar-actions.d.ts +18 -0
  165. package/lib/resolvers/table-default-entity-actions.d.ts +5 -0
  166. package/lib/resolvers/table-default-entity-props.d.ts +5 -0
  167. package/lib/services/appent-content.d.ts +1 -0
  168. package/lib/services/cms-api.service.d.ts +23 -0
  169. package/lib/services/cms.service.d.ts +10 -0
  170. package/lib/services/field-abstracts.service.d.ts +19 -0
  171. package/lib/services/form-controls.service.d.ts +16 -0
  172. package/lib/services/index.d.ts +3 -0
  173. package/package.json +22 -7
  174. package/{src/public-api.ts → public-api.d.ts} +3 -7
  175. package/config/ng-package.json +0 -6
  176. package/config/src/cms-config.module.ts +0 -13
  177. package/config/src/enums/route-names.ts +0 -7
  178. package/config/src/providers/route.provider.ts +0 -68
  179. package/ng-package.json +0 -10
  180. package/src/lib/cms-routing.module.ts +0 -102
  181. package/src/lib/cms.module.ts +0 -113
  182. package/src/lib/components/admin/entries/create-or-edit-entries.component.html +0 -137
  183. package/src/lib/components/admin/entries/create-or-edit-entries.component.scss +0 -0
  184. package/src/lib/components/admin/entries/create-or-edit-entries.component.spec.ts +0 -21
  185. package/src/lib/components/admin/entries/create-or-edit-entries.component.ts +0 -216
  186. package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +0 -26
  187. package/src/lib/components/admin/entries/create.component.html +0 -16
  188. package/src/lib/components/admin/entries/create.component.scss +0 -0
  189. package/src/lib/components/admin/entries/create.component.spec.ts +0 -21
  190. package/src/lib/components/admin/entries/create.component.ts +0 -130
  191. package/src/lib/components/admin/entries/edit.component.html +0 -9
  192. package/src/lib/components/admin/entries/edit.component.scss +0 -0
  193. package/src/lib/components/admin/entries/edit.component.spec.ts +0 -21
  194. package/src/lib/components/admin/entries/edit.component.ts +0 -134
  195. package/src/lib/components/admin/entries/entries.component.html +0 -225
  196. package/src/lib/components/admin/entries/entries.component.scss +0 -109
  197. package/src/lib/components/admin/entries/entries.component.spec.ts +0 -21
  198. package/src/lib/components/admin/entries/entries.component.ts +0 -394
  199. package/src/lib/components/admin/entries/index.ts +0 -4
  200. package/src/lib/components/admin/fields/create-field.component.html +0 -12
  201. package/src/lib/components/admin/fields/create-field.component.scss +0 -1
  202. package/src/lib/components/admin/fields/create-field.component.spec.ts +0 -21
  203. package/src/lib/components/admin/fields/create-field.component.ts +0 -85
  204. package/src/lib/components/admin/fields/create-or-edit-field.component.html +0 -39
  205. package/src/lib/components/admin/fields/create-or-edit-field.component.scss +0 -0
  206. package/src/lib/components/admin/fields/create-or-edit-field.component.spec.ts +0 -21
  207. package/src/lib/components/admin/fields/create-or-edit-field.component.ts +0 -140
  208. package/src/lib/components/admin/fields/create-or-update-field-input-base.ts +0 -33
  209. package/src/lib/components/admin/fields/edit-field.component.html +0 -14
  210. package/src/lib/components/admin/fields/edit-field.component.scss +0 -0
  211. package/src/lib/components/admin/fields/edit-field.component.spec.ts +0 -21
  212. package/src/lib/components/admin/fields/edit-field.component.ts +0 -112
  213. package/src/lib/components/admin/fields/field-group.component.html +0 -69
  214. package/src/lib/components/admin/fields/field-group.component.scss +0 -0
  215. package/src/lib/components/admin/fields/field-group.component.spec.ts +0 -21
  216. package/src/lib/components/admin/fields/field-group.component.ts +0 -151
  217. package/src/lib/components/admin/fields/fields.component.html +0 -25
  218. package/src/lib/components/admin/fields/fields.component.scss +0 -1
  219. package/src/lib/components/admin/fields/fields.component.spec.ts +0 -21
  220. package/src/lib/components/admin/fields/fields.component.ts +0 -109
  221. package/src/lib/components/admin/fields/index.ts +0 -6
  222. package/src/lib/components/admin/index.ts +0 -3
  223. package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.html +0 -81
  224. package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.scss +0 -0
  225. package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.spec.ts +0 -23
  226. package/src/lib/components/admin/sections/create-or-edit-sections-modal.component.ts +0 -239
  227. package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +0 -23
  228. package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts +0 -52
  229. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.html +0 -195
  230. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.scss +0 -1
  231. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.spec.ts +0 -21
  232. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.ts +0 -442
  233. package/src/lib/components/admin/sections/entry-types/index.ts +0 -2
  234. package/src/lib/components/admin/sections/index.ts +0 -3
  235. package/src/lib/components/admin/sections/sections.component.html +0 -189
  236. package/src/lib/components/admin/sections/sections.component.scss +0 -1
  237. package/src/lib/components/admin/sections/sections.component.spec.ts +0 -21
  238. package/src/lib/components/admin/sections/sections.component.ts +0 -136
  239. package/src/lib/components/dynamic-form/entry/entry-config.component.html +0 -26
  240. package/src/lib/components/dynamic-form/entry/entry-config.component.scss +0 -27
  241. package/src/lib/components/dynamic-form/entry/entry-config.component.spec.ts +0 -21
  242. package/src/lib/components/dynamic-form/entry/entry-config.component.ts +0 -119
  243. package/src/lib/components/dynamic-form/entry/entry-config.ts +0 -22
  244. package/src/lib/components/dynamic-form/entry/entry-control.component.html +0 -25
  245. package/src/lib/components/dynamic-form/entry/entry-control.component.scss +0 -35
  246. package/src/lib/components/dynamic-form/entry/entry-control.component.spec.ts +0 -21
  247. package/src/lib/components/dynamic-form/entry/entry-control.component.ts +0 -111
  248. package/src/lib/components/dynamic-form/entry/index.ts +0 -3
  249. package/src/lib/components/dynamic-form/form-control-group.ts +0 -27
  250. package/src/lib/components/dynamic-form/index.ts +0 -4
  251. package/src/lib/components/dynamic-form/matrix/index.ts +0 -3
  252. package/src/lib/components/dynamic-form/matrix/matrix-config.component.html +0 -148
  253. package/src/lib/components/dynamic-form/matrix/matrix-config.component.scss +0 -0
  254. package/src/lib/components/dynamic-form/matrix/matrix-config.component.spec.ts +0 -21
  255. package/src/lib/components/dynamic-form/matrix/matrix-config.component.ts +0 -244
  256. package/src/lib/components/dynamic-form/matrix/matrix-config.ts +0 -63
  257. package/src/lib/components/dynamic-form/matrix/matrix-control.component.html +0 -42
  258. package/src/lib/components/dynamic-form/matrix/matrix-control.component.scss +0 -0
  259. package/src/lib/components/dynamic-form/matrix/matrix-control.component.spec.ts +0 -21
  260. package/src/lib/components/dynamic-form/matrix/matrix-control.component.ts +0 -118
  261. package/src/lib/components/dynamic-form/table/index.ts +0 -3
  262. package/src/lib/components/dynamic-form/table/table-config.component.html +0 -85
  263. package/src/lib/components/dynamic-form/table/table-config.component.scss +0 -10
  264. package/src/lib/components/dynamic-form/table/table-config.component.spec.ts +0 -21
  265. package/src/lib/components/dynamic-form/table/table-config.component.ts +0 -177
  266. package/src/lib/components/dynamic-form/table/table-config.ts +0 -45
  267. package/src/lib/components/dynamic-form/table/table-control.component.html +0 -54
  268. package/src/lib/components/dynamic-form/table/table-control.component.scss +0 -1
  269. package/src/lib/components/dynamic-form/table/table-control.component.spec.ts +0 -21
  270. package/src/lib/components/dynamic-form/table/table-control.component.ts +0 -127
  271. package/src/lib/components/index.ts +0 -2
  272. package/src/lib/constants/index.ts +0 -1
  273. package/src/lib/constants/styles.ts +0 -18
  274. package/src/lib/enums/ecms-component.ts +0 -11
  275. package/src/lib/enums/index.ts +0 -1
  276. package/src/lib/proxy/README.md +0 -17
  277. package/src/lib/proxy/dignite/abp/data/index.ts +0 -1
  278. package/src/lib/proxy/dignite/abp/data/models.ts +0 -4
  279. package/src/lib/proxy/dignite/abp/index.ts +0 -3
  280. package/src/lib/proxy/dignite/abp/regionalization-management/models.ts +0 -10
  281. package/src/lib/proxy/dignite/abp/regionalization-management/regionalization.service.ts +0 -29
  282. package/src/lib/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.ts +0 -20
  283. package/src/lib/proxy/dignite/cms/admin/dynamic-forms/models.ts +0 -6
  284. package/src/lib/proxy/dignite/cms/admin/entries/entry-admin.service.ts +0 -109
  285. package/src/lib/proxy/dignite/cms/admin/entries/models.ts +0 -69
  286. package/src/lib/proxy/dignite/cms/admin/fields/field-admin.service.ts +0 -64
  287. package/src/lib/proxy/dignite/cms/admin/fields/field-group-admin.service.ts +0 -56
  288. package/src/lib/proxy/dignite/cms/admin/index.ts +0 -5
  289. package/src/lib/proxy/dignite/cms/admin/sections/entry-type-admin.service.ts +0 -55
  290. package/src/lib/proxy/dignite/cms/admin/sections/section-admin.service.ts +0 -74
  291. package/src/lib/proxy/dignite/cms/entries/entry-status.enum.ts +0 -8
  292. package/src/lib/proxy/dignite/cms/fields/index.ts +0 -1
  293. package/src/lib/proxy/dignite/cms/fields/models.ts +0 -9
  294. package/src/lib/proxy/dignite/cms/index.ts +0 -5
  295. package/src/lib/proxy/dignite/cms/sections/models.ts +0 -15
  296. package/src/lib/proxy/dignite/cms/sections/section-type.enum.ts +0 -9
  297. package/src/lib/proxy/dignite/index.ts +0 -3
  298. package/src/lib/proxy/generate-proxy.json +0 -54593
  299. package/src/lib/proxy/index.ts +0 -3
  300. package/src/lib/proxy/volo/cms-kit/index.ts +0 -2
  301. package/src/lib/proxy/volo/cms-kit/users/index.ts +0 -1
  302. package/src/lib/proxy/volo/index.ts +0 -2
  303. package/src/lib/resolvers/extensions-props-action-token.resolver.ts +0 -182
  304. package/src/lib/resolvers/page-default-toolbar-actions.ts +0 -173
  305. package/src/lib/resolvers/table-default-entity-actions.ts +0 -29
  306. package/src/lib/resolvers/table-default-entity-props.ts +0 -62
  307. package/src/lib/services/appent-content.ts +0 -13
  308. package/src/lib/services/cms-api.service.ts +0 -90
  309. package/src/lib/services/cms.service.ts +0 -18
  310. package/src/lib/services/field-abstracts.service.ts +0 -39
  311. package/src/lib/services/index.ts +0 -3
  312. package/src/lib/services/validator.ts +0 -10
  313. package/src/test.ts +0 -26
  314. package/tsconfig.lib.json +0 -16
  315. package/tsconfig.lib.prod.json +0 -10
  316. package/tsconfig.spec.json +0 -17
  317. /package/{src/lib/proxy/dignite/abp/regionalization-management/index.ts → lib/proxy/dignite/abp/regionalization-management/index.d.ts} +0 -0
  318. /package/{src/lib/proxy/dignite/cms/admin/dynamic-forms/index.ts → lib/proxy/dignite/cms/admin/dynamic-forms/index.d.ts} +0 -0
  319. /package/{src/lib/proxy/dignite/cms/admin/entries/index.ts → lib/proxy/dignite/cms/admin/entries/index.d.ts} +0 -0
  320. /package/{src/lib/proxy/dignite/cms/admin/fields/index.ts → lib/proxy/dignite/cms/admin/fields/index.d.ts} +0 -0
  321. /package/{src/lib/proxy/dignite/cms/admin/sections/index.ts → lib/proxy/dignite/cms/admin/sections/index.d.ts} +0 -0
  322. /package/{src/lib/proxy/dignite/cms/entries/index.ts → lib/proxy/dignite/cms/entries/index.d.ts} +0 -0
  323. /package/{src/lib/proxy/dignite/cms/sections/index.ts → lib/proxy/dignite/cms/sections/index.d.ts} +0 -0
@@ -1,109 +0,0 @@
1
-
2
- import { EXTENSIONS_IDENTIFIER } from "@abp/ng.components/extensible";
3
- import { ListService, LIST_QUERY_DEBOUNCE_TIME, LocalizationService, PagedResultDto, ABP } from "@abp/ng.core";
4
- import { ToasterService, ConfirmationService, Confirmation } from "@abp/ng.theme.shared";
5
- import { Component, OnInit, inject } from "@angular/core";
6
- import { Router } from "@angular/router";
7
- import { ColumnMode } from "@swimlane/ngx-datatable";
8
- import { finalize } from "rxjs";
9
- import { ECmsComponent } from "../../../enums";
10
- import { UpdateListService } from "@dignite-ng/expand.core";
11
- import { FieldAdminService, FieldDto, GetFieldsInput } from "../../../proxy/dignite/cms/admin/fields";
12
-
13
- @Component({
14
- selector: 'cms-fields',
15
- templateUrl: './fields.component.html',
16
- styleUrls: ['./fields.component.scss'],
17
- providers: [
18
- // [Required]
19
- ListService,
20
- // [Optional]
21
- // Provide this token if you want a different debounce time.
22
- // Default is 300. Cannot be 0. Any value below 100 is not recommended.
23
- { provide: LIST_QUERY_DEBOUNCE_TIME, useValue: 500 },
24
- {
25
- provide: EXTENSIONS_IDENTIFIER,
26
- useValue: ECmsComponent.Fields,
27
- },
28
- ]
29
- })
30
- export class FieldsComponent implements OnInit {
31
-
32
- constructor(
33
- public readonly list: ListService,
34
- private _FieldAdminService: FieldAdminService,
35
- private toaster: ToasterService,
36
- private confirmation: ConfirmationService,
37
- private _LocalizationService: LocalizationService,
38
- private router: Router,
39
- ) {
40
-
41
- }
42
- private _UpdateListService=inject(UpdateListService)
43
- /**表格单元格布局类型 */
44
- ColumnMode = ColumnMode;
45
-
46
- /**表格数据 */
47
- data: PagedResultDto<FieldDto> = {
48
- items: [],
49
- totalCount: 0,
50
- };
51
-
52
- /**过滤器 */
53
- filters = {} as GetFieldsInput;
54
-
55
- ngOnInit(): void {
56
- this.hookToQuery()
57
- this._UpdateListService.updateListEvent.subscribe(() => {
58
- this.list.get()
59
- });
60
- }
61
- getData(){
62
- this.list.get()
63
- }
64
-
65
-
66
- /**字段分组选择回调 */
67
- fieldGroupChange(event) {
68
- this.filters.groupId = event
69
- this.list.page=0
70
- this.list.get()
71
- }
72
-
73
-
74
-
75
- /**使用abp的list获取表格的字段数据列表 */
76
- hookToQuery() {
77
- const getData = (query: ABP.PageQueryParams) => this._FieldAdminService.getList({
78
- ...query,
79
- ...this.filters,
80
- });
81
- const setData = (list: PagedResultDto<FieldDto>) => (this.data = list);
82
- this.list.hookToQuery(getData).subscribe(setData);
83
- }
84
-
85
- /**新建字段按钮 */
86
- toFieldsCreateBtn() {
87
- this.router.navigate(['/cms/admin/fields/create'],
88
- {
89
- queryParams: {}
90
- }
91
- )
92
- }
93
-
94
- /**删除字段 */
95
- deletefield(row: any) {
96
- this.confirmation.warn(
97
- row.displayName,
98
- this._LocalizationService.instant(`AbpUi::ItemWillBeDeletedMessage`),
99
- ).subscribe((status: Confirmation.Status) => {
100
- if (status == 'confirm') {
101
- this._FieldAdminService.delete(row.id).pipe(finalize(() => {
102
- })).subscribe(res => {
103
- this.toaster.success(this._LocalizationService.instant(`AbpUi::DeletedSuccessfully`));
104
- this.list.get()
105
- })
106
- }
107
- });
108
- }
109
- }
@@ -1,6 +0,0 @@
1
- export * from './fields.component'
2
- export * from './field-group.component'
3
- export * from './create-field.component'
4
- export * from './create-or-edit-field.component'
5
- export * from './edit-field.component'
6
- export * from './create-or-update-field-input-base'
@@ -1,3 +0,0 @@
1
- export * from './entries'
2
- export * from './fields'
3
- export * from './sections'
@@ -1,81 +0,0 @@
1
- <abp-modal [(visible)]="ModalOpen" [busy]="ModalBusy" (visibleChange)="ModalVisibleChange($event)">
2
- <ng-template #abpHeader>
3
- <h3>{{selected?('AbpUi::Edit' | abpLocalization):('Cms::New' | abpLocalization)}}</h3>
4
- </ng-template>
5
- <ng-template #abpBody>
6
- <ng-template #loaderRef>
7
- <div class="text-center"><i class="fa fa-pulse fa-spinner" aria-hidden="true"></i></div>
8
- </ng-template>
9
- <ng-container *ngIf="ModalForm; else loaderRef">
10
- <form class="sites-modal-form" [formGroup]="ModalForm" (keydown.enter)="$event.preventDefault()"
11
- [class]="{'was-validated':formValidation}" (submit)="save()">
12
- <button type="submit" #ModalFormSubmit style="display: none"></button>
13
- <div class="mb-3">
14
- <label class="form-label">{{'Cms::EntryType' | abpLocalization}}</label>
15
- <div>
16
- <ng-container *ngFor="let item of _sectionTypeOptions;let i =index">
17
- <div class="form-check form-check-inline">
18
- <input class="form-check-input" type="radio" [value]="item.value"
19
- (change)="radiochange()" formControlName="type" id="flexRadioDefault{{i}}">
20
- <label class="form-check-label" for="flexRadioDefault{{i}}">
21
- {{ 'Cms::Enum:SectionType:'+item.key | abpLocalization }}
22
- </label>
23
- </div>
24
- </ng-container>
25
- </div>
26
- </div>
27
- <div class="mb-3">
28
- <label class="form-label">{{'Cms::DisplayName' | abpLocalization}}</label>
29
- <input type="text" class="form-control" formControlName="displayName"
30
- (blur)="disPlayNameInputBlur($event)" placeholder="" />
31
- </div>
32
- <div class="mb-3">
33
- <label class="form-label">{{'Cms::Name' | abpLocalization}}</label>
34
- <input type="text" class="form-control" formControlName="name" placeholder="" />
35
- <div class="text-danger invalid-feedback" *ngIf="nameInput.errors?.repetition">
36
- {{nameInput.errors?.repetition}}
37
- </div>
38
- </div>
39
- <div class="mb-3">
40
- <label class="form-label">{{'Cms::Route' | abpLocalization}} </label>
41
- <input type="text" class="form-control" formControlName="route" placeholder="" />
42
- <div class="text-danger invalid-feedback" *ngIf="routeInput.errors?.repetition">
43
- {{routeInput.errors?.repetition}}
44
- </div>
45
- <small class="form-text text-muted d-block">
46
- {{'Cms::RouteTips' | abpLocalization}}<br>
47
- &nbsp;&nbsp;blog<br>
48
- &nbsp;&nbsp;{{'blog/{slug}'}}<br>
49
- &nbsp;&nbsp;{{'blog/{publishTime:yyyy}/{publishTime:MM}/{slug}'}}
50
- </small>
51
- </div>
52
- <div class="mb-3">
53
- <label class="form-label">{{'Cms::Template' | abpLocalization}} </label>
54
- <input type="text" class="form-control" formControlName="template" placeholder="" />
55
- <small class="form-text text-muted d-block">
56
- {{"Cms::TemplateTips" | abpLocalization}}
57
- </small>
58
- </div>
59
- <div class="mb-3">
60
- <div class="form-check form-check-inline">
61
- <input class="form-check-input" type="checkbox" value="true" formControlName="isDefault"
62
- id="isDefault" />
63
- <label class="form-check-label" for="isDefault"> {{'Cms::Default' | abpLocalization}} </label>
64
- </div>
65
- </div>
66
- <div class="mb-3">
67
- <div class="form-check form-check-inline">
68
- <input class="form-check-input" type="checkbox" value="true" formControlName="isActive"
69
- id="isActive" />
70
- <label class="form-check-label" for="isActive"> {{'Cms::IsActive' | abpLocalization}}</label>
71
- </div>
72
- </div>
73
- </form>
74
- </ng-container>
75
- </ng-template>
76
- <ng-template #abpFooter>
77
- <button type="button" class="btn btn-secondary" abpClose>{{'AbpUi::Close' | abpLocalization}}</button>
78
- <abp-button iconClass="fa fa-check" type="button" [loading]="ModalBusy" [disabled]="ModalBusy"
79
- (click)="ModalFormSubmit?.nativeElement?.click()">{{'AbpUi::Save'|abpLocalization}}</abp-button>
80
- </ng-template>
81
- </abp-modal>
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { CreateOrEditSectionsModalComponent } from './create-or-edit-sections-modal.component';
4
-
5
- describe('CreateOrEditSectionsModalComponent', () => {
6
- let component: CreateOrEditSectionsModalComponent;
7
- let fixture: ComponentFixture<CreateOrEditSectionsModalComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- declarations: [CreateOrEditSectionsModalComponent]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(CreateOrEditSectionsModalComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,239 +0,0 @@
1
- import { LocalizationService } from '@abp/ng.core';
2
- import {
3
- Component,
4
- ElementRef,
5
- EventEmitter,
6
- inject,
7
- Input,
8
- Output,
9
- ViewChild,
10
- } from '@angular/core';
11
- import {
12
- AbstractControl,
13
- FormControl,
14
- FormGroup,
15
- ValidationErrors,
16
- ValidatorFn,
17
- Validators,
18
- } from '@angular/forms';
19
- import { ValidatorsService, UpdateListService } from '@dignite-ng/expand.core';
20
- import { finalize, Observable } from 'rxjs';
21
- import { ToasterService } from '@abp/ng.theme.shared';
22
- import { CmsApiService } from '../../../services';
23
- import { SectionAdminService } from '../../../proxy/dignite/cms/admin/sections';
24
- import { SectionType, sectionTypeOptions } from '../../../proxy/dignite/cms/sections';
25
-
26
- @Component({
27
- selector: 'cms-create-or-edit-sections-modal',
28
- templateUrl: './create-or-edit-sections-modal.component.html',
29
- styleUrl: './create-or-edit-sections-modal.component.scss',
30
- })
31
- export class CreateOrEditSectionsModalComponent {
32
- private _LocalizationService = inject(LocalizationService);
33
- private toaster = inject(ToasterService);
34
- private _ValidatorsService = inject(ValidatorsService);
35
- private _UpdateListService = inject(UpdateListService);
36
- private _SectionAdminService = inject(SectionAdminService);
37
- private _CmsApiService = inject(CmsApiService);
38
- _SectionType = SectionType;
39
- _sectionTypeOptions = sectionTypeOptions;
40
- /**表单验证状态 */
41
- formValidation: any = '';
42
-
43
- /**模态框-状态-是否打开 */
44
- ModalOpen: boolean = false;
45
- @Input()
46
- public set visible(v: boolean) {
47
- this.ModalOpen = v;
48
- }
49
-
50
- /**模态框-繁忙状态-用于确定模态的繁忙状态是否为真 */
51
- ModalBusy: boolean = false;
52
- /**初始值 */
53
- selected: any = '';
54
- /**模态框-表单 */
55
- ModalForm: FormGroup | undefined;
56
- @Input()
57
- public set formEntity(v: FormGroup | undefined) {
58
- this.ModalForm = v;
59
- if (v) {
60
- this.selected = v?.value;
61
- this.setAsyncValidatorsFn();
62
- }
63
- }
64
- get idInput() {
65
- return this.ModalForm?.get('id') as FormControl;
66
- }
67
- get displayNameInput() {
68
- return this.ModalForm.get('displayName') as FormControl;
69
- }
70
- get nameInput() {
71
- return this.ModalForm.get('name') as FormControl;
72
- }
73
- get routeInput() {
74
- return this.ModalForm.get('route') as FormControl;
75
- }
76
- get templateInput() {
77
- return this.ModalForm.get('template') as FormControl;
78
- }
79
- get typeInput() {
80
- return this.ModalForm.get('type') as FormControl;
81
- }
82
- radiochange() {
83
- this.routeInput.patchValue(this.routeInput.value);
84
- }
85
-
86
- /**模态框-表单--控件模板-动态赋值表单控件 */
87
- @ViewChild('ModalFormSubmit', { static: false }) ModalFormSubmit: ElementRef;
88
- @Output() visibleChange = new EventEmitter();
89
- /**模态框-状态改变回调 */
90
- ModalVisibleChange(event) {
91
- this.ModalOpen = event;
92
- this.visibleChange.emit(event);
93
- if (!event) {
94
- return;
95
- }
96
- }
97
- /**保存 */
98
- save() {
99
- this.formValidation = this._ValidatorsService.getFormValidationStatus(this.ModalForm);
100
- if (this._ValidatorsService.isCheckForm(this.formValidation, 'Cms')) return;
101
-
102
- if (this.ModalBusy) return;
103
- this.ModalBusy = true;
104
- if (!this.ModalForm.valid) return;
105
- let input = this.ModalForm.value;
106
- if (this.idInput.value) {
107
- this._SectionAdminService
108
- .update(this.idInput.value, input)
109
- .pipe(
110
- finalize(() => {
111
- this.reset();
112
- })
113
- )
114
- .subscribe(res => {
115
- this.toaster.success(this._LocalizationService.instant(`AbpUi::SavedSuccessfully`));
116
- this.visibleChange.emit(false);
117
- this.formValidation='';
118
- });
119
- return;
120
- }
121
- this._SectionAdminService
122
- .create(input)
123
- .pipe(
124
- finalize(() => {
125
- this.reset();
126
- })
127
- )
128
- .subscribe(res => {
129
- this.toaster.success(this._LocalizationService.instant(`AbpUi::SavedSuccessfully`));
130
- this.visibleChange.emit(false);
131
- this.formValidation='';
132
- });
133
- }
134
- reset(){
135
- this.ModalBusy = false;
136
- this._UpdateListService.updateList();
137
- }
138
-
139
- disPlayNameInputBlur(event) {
140
- let value = event.target.value;
141
- let pinyin = this._CmsApiService.chineseToPinyin(value);
142
- let nameInput = this.nameInput;
143
- let routeInput = this.routeInput;
144
- let templateInput = this.templateInput;
145
- if (nameInput.value) return;
146
- nameInput.patchValue(pinyin);
147
- if (routeInput.value) return;
148
- routeInput.patchValue(pinyin + (this.typeInput.value === 0 ? '' : '/{slug}'));
149
- if (templateInput.value) return;
150
- templateInput.patchValue(pinyin + '/index');
151
- }
152
-
153
- setAsyncValidatorsFn() {
154
- this.ModalForm?.setControl(
155
- 'name',
156
- new FormControl(this.nameInput.value || '', {
157
- validators: Validators.required,
158
- asyncValidators: this.nameRepetitionAsyncValidator(),
159
- })
160
- );
161
- this.ModalForm?.setControl(
162
- 'route',
163
- new FormControl(this.routeInput.value || '', {
164
- validators: [Validators.required, this.forbiddenNameValidator()],
165
- asyncValidators: [this.routeRepetitionAsyncValidator()],
166
- updateOn: 'change',
167
- })
168
- );
169
- }
170
- forbiddenNameValidator(): ValidatorFn {
171
- return (control: AbstractControl): ValidationErrors | null => {
172
- let inputValue = control.value.toLocaleLowerCase();
173
- let forbidden =
174
- this.typeInput.value == 0 ? false : inputValue.includes('{slug}') ? false : true;
175
- return forbidden
176
- ? {
177
- repetition: this._LocalizationService.instant(
178
- `Cms::RouteVerificationTips`,
179
- this._LocalizationService.instant(
180
- `Cms::Enum:SectionType:` + SectionType[this.typeInput.value]
181
- ),
182
- '{slug}'
183
- ),
184
- }
185
- : null;
186
- };
187
- }
188
- nameRepetitionAsyncValidator() {
189
- return (
190
- ctrl: AbstractControl
191
- ): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => {
192
- return new Promise(resolve => {
193
- let subslug = this.ModalForm?.get('name');
194
-
195
- if (subslug.value == this.selected?.name) {
196
- resolve(null);
197
- return;
198
- }
199
- this._SectionAdminService.nameExists({ name: subslug.value }).subscribe(res => {
200
- if (res) {
201
- resolve({
202
- repetition: this._LocalizationService.instant(
203
- `Cms::SectionName{0}AlreadyExist`,
204
- ctrl.value
205
- ),
206
- });
207
- } else {
208
- resolve(null);
209
- }
210
- });
211
- });
212
- };
213
- }
214
- routeRepetitionAsyncValidator() {
215
- return (
216
- ctrl: AbstractControl
217
- ): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => {
218
- return new Promise(resolve => {
219
- let subslug = this.ModalForm?.get('route').value;
220
- if (subslug == this.selected?.route) {
221
- resolve(null);
222
- return;
223
- }
224
- this._SectionAdminService.routeExists({ route: subslug }).subscribe(res => {
225
- if (res) {
226
- resolve({
227
- repetition: this._LocalizationService.instant(
228
- `Cms::SectionRoute{0}AlreadyExist`,
229
- ctrl.value
230
- ),
231
- });
232
- } else {
233
- resolve(null);
234
- }
235
- });
236
- });
237
- };
238
- }
239
- }
@@ -1,23 +0,0 @@
1
-
2
- import {Validators } from "@angular/forms";
3
-
4
- export class CreateOrUpdateSectionsInputBase {
5
- id: string | Validators[] = [''];
6
- /**版块类型 */
7
- type: any = [0, [Validators.required]];
8
- /**字段名称 Display name of this field */
9
- displayName: any = ['', [Validators.required]];
10
- /**字段唯一名称 Unique Name*/
11
- name: any = ['', [Validators.required]];
12
- /**条目路由 */
13
- route: any = ['', [Validators.required]];
14
- /**页面模板 */
15
- template: any = ['', [Validators.required]];
16
- /**是否默认 */
17
- isDefault: any = [false, []];
18
- /**是否激活 */
19
- isActive: any = [true, []];
20
- concurrencyStamp: string | Validators[] = [''];
21
-
22
- constructor() {}
23
- }
@@ -1,52 +0,0 @@
1
- import { FormArray, Validators } from "@angular/forms";
2
-
3
- export class CreateOrEditEntryTypeInputBase {
4
- /**显示名称 Display name of this field */
5
- displayName: any = ['', [Validators.required]];
6
-
7
- /**名称 Unique Name*/
8
- name: any = ['', [Validators.required]];
9
- /**条目路由 */
10
- fieldTabs: any = new FormArray([])
11
-
12
- constructor(data?: CreateOrEditEntryTypeInputBase) {
13
- if (data) {
14
- for (const key in data) {
15
- if (data.hasOwnProperty(key)) {
16
- this[key] = data[key];
17
- }
18
- }
19
- }
20
- }
21
- }
22
- export class fieldTabsBase {
23
- /**名称 Unique Name*/
24
- name: any = ['', [Validators.required]];
25
- fields?: any = [[], []]
26
- constructor(data?: fieldTabsBase) {
27
- if (data) {
28
- for (const key in data) {
29
- if (data.hasOwnProperty(key)) {
30
- this[key] = data[key];
31
- }
32
- }
33
- }
34
- }
35
- }
36
- export class fieldsBase {
37
- /**字段id Unique Name*/
38
- fieldId: any = ['', [Validators.required]];
39
- /**显示名称 Unique Name*/
40
- displayName: any = ['', [Validators.required]];
41
- /**必填 Unique Name*/
42
- required: any = [false, []];
43
- /**是否在列表中显示 Unique Name*/
44
- showInList: any = [false, []];
45
- /**是否启用搜索 */
46
- enableSearch: any = [false, []];
47
-
48
- constructor() {
49
- }
50
- }
51
-
52
-