@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,7 @@
1
+ {
2
+ "$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../dist/cms/config",
4
+ "lib": {
5
+ "entryFile": "src/public-api.ts"
6
+ }
7
+ }
@@ -0,0 +1,12 @@
1
+ import { ModuleWithProviders, NgModule } from '@angular/core';
2
+ import { CMS_ROUTE_PROVIDERS } from './providers/route.provider';
3
+
4
+ @NgModule()
5
+ export class CmsConfigModule {
6
+ static forRoot(): ModuleWithProviders<CmsConfigModule> {
7
+ return {
8
+ ngModule: CmsConfigModule,
9
+ providers: [CMS_ROUTE_PROVIDERS],
10
+ };
11
+ }
12
+ }
@@ -1 +1 @@
1
- export * from './route-names';
1
+ export * from './route-names';
@@ -0,0 +1,8 @@
1
+ export const enum eCmsRouteNames {
2
+ Cms = 'Cms::Menu:Cms',
3
+ Entries = 'Cms::FormControl:Entry',
4
+ Settings = "Cms::Menu:Settings",
5
+ Fields = "Cms::Fields",
6
+ // Sites = "Cms::Sites",
7
+ Sections = "Cms::Sections",
8
+ }
@@ -1 +1 @@
1
- export * from './route.provider';
1
+ export * from './route.provider';
@@ -0,0 +1,82 @@
1
+ import { eLayoutType, RoutesService } from '@abp/ng.core';
2
+ import { APP_INITIALIZER } from '@angular/core';
3
+ import { eCmsRouteNames } from '../enums/route-names';
4
+ import { eThemeSharedRouteNames } from '@abp/ng.theme.shared';
5
+ import { SettingTabsService } from '@abp/ng.setting-management/config';
6
+ import { DomainsComponent } from '@dignite-ng/expand.cms';
7
+ // import { DomainsComponent } from '@dignite-ng/expand.cms';
8
+
9
+ export const CMS_ROUTE_PROVIDERS = [
10
+ {
11
+ provide: APP_INITIALIZER,
12
+ useFactory: configureRoutes,
13
+ deps: [RoutesService, SettingTabsService],
14
+ multi: true,
15
+ },
16
+ ];
17
+
18
+
19
+ export function configureRoutes(routesService: RoutesService, settingTabs: SettingTabsService) {
20
+ return () => {
21
+ settingTabs.add([
22
+ {
23
+ name: 'Cms::Domain',
24
+ order: 1,
25
+ requiredPolicy: 'CmsAdmin.Domain',
26
+ component: DomainsComponent,
27
+ },
28
+ ]);
29
+ routesService.add([
30
+ {
31
+ path: '/cms',
32
+ name: eCmsRouteNames.Cms,
33
+ iconClass: 'bi-archive-fill',
34
+ layout: eLayoutType.application,
35
+ requiredPolicy: 'CmsAdmin.Entry || CmsAdmin.Field || CmsAdmin.Site || CmsAdmin.Section',
36
+ },
37
+ {
38
+ path: '/cms/admin/entries',
39
+ name: eCmsRouteNames.Entries,
40
+ parentName: eCmsRouteNames.Cms,
41
+ iconClass: 'bi-file-earmark-text-fill',
42
+ layout: eLayoutType.application,
43
+ requiredPolicy: 'CmsAdmin.Entry',
44
+ },
45
+ {
46
+ path: '',
47
+ name: eCmsRouteNames.Settings,
48
+ parentName: eCmsRouteNames.Cms,
49
+ iconClass: 'fas fa fa-cog',
50
+ layout: eLayoutType.application,
51
+ requiredPolicy: 'CmsAdmin.Field || CmsAdmin.Section',
52
+ },
53
+ {
54
+ path: '/cms/admin/fields',
55
+ name: eCmsRouteNames.Fields,
56
+ parentName: eCmsRouteNames.Settings,
57
+ iconClass: 'bi-file-earmark-text-fill',
58
+ layout: eLayoutType.application,
59
+ order: 1,
60
+ requiredPolicy: 'CmsAdmin.Field',
61
+ },
62
+ // {
63
+ // path: '/cms/admin/sites',
64
+ // name: eCmsRouteNames.Sites,
65
+ // parentName:eCmsRouteNames.Settings,
66
+ // iconClass: 'fas fa fa-globe ',
67
+ // layout: eLayoutType.application,
68
+ // order: 2,
69
+ // requiredPolicy:'CmsAdmin.Site',
70
+ // },
71
+ {
72
+ path: '/cms/admin/sections',
73
+ name: eCmsRouteNames.Sections,
74
+ parentName: eCmsRouteNames.Settings,
75
+ iconClass: 'bi bi-menu-button-wide-fill',
76
+ layout: eLayoutType.application,
77
+ order: 3,
78
+ requiredPolicy: 'CmsAdmin.Section',
79
+ },
80
+ ]);
81
+ };
82
+ }
@@ -1,3 +1,3 @@
1
- export * from './enums';
2
- export * from './cms-config.module';
3
- export * from './providers';
1
+ export * from './enums';
2
+ export * from './cms-config.module';
3
+ export * from './providers';
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../dist/cms",
4
+ "lib": {
5
+ "entryFile": "src/public-api.ts"
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dignite-ng/expand.cms",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.2.0",
6
6
  "@angular/core": "^16.2.0",
@@ -13,24 +13,9 @@
13
13
  "publishConfig": {
14
14
  "access": "public",
15
15
  "registry": "https://registry.npmjs.org/"
16
- },
17
- "module": "fesm2022/dignite-ng-expand.cms.mjs",
18
- "typings": "index.d.ts",
19
- "exports": {
20
- "./package.json": {
21
- "default": "./package.json"
22
- },
23
- ".": {
24
- "types": "./index.d.ts",
25
- "esm2022": "./esm2022/dignite-ng-expand.cms.mjs",
26
- "esm": "./esm2022/dignite-ng-expand.cms.mjs",
27
- "default": "./fesm2022/dignite-ng-expand.cms.mjs"
28
- },
29
- "./config": {
30
- "types": "./config/index.d.ts",
31
- "esm2022": "./esm2022/config/dignite-ng-expand.cms-config.mjs",
32
- "esm": "./esm2022/config/dignite-ng-expand.cms-config.mjs",
33
- "default": "./fesm2022/dignite-ng-expand.cms-config.mjs"
34
- }
35
16
  }
36
- }
17
+ }
18
+
19
+
20
+
21
+
@@ -0,0 +1,108 @@
1
+ import { NgModule} from '@angular/core';
2
+ import { Routes, RouterModule} from '@angular/router';
3
+ import {
4
+ CreateComponent,
5
+ CreateFieldComponent,
6
+ CreateOrEditComponent,
7
+ EditComponent,
8
+ EditFieldComponent,
9
+ EntriesComponent,
10
+ FieldsComponent,
11
+ SectionsComponent,
12
+ SitesComponent,
13
+ } from './components';
14
+ import {
15
+ AuthGuard,
16
+ PermissionGuard,
17
+ } from '@abp/ng.core';
18
+ import { CmsExtensionsResolver } from './toolbar';
19
+ import { appentStyle } from './services/appent-content';
20
+
21
+
22
+ const routes: Routes = [
23
+ {
24
+ path: 'admin',
25
+ canActivate: [AuthGuard, PermissionGuard],
26
+ resolve: [CmsExtensionsResolver, appentStyle],
27
+ children: [
28
+ {
29
+ path: 'entries',
30
+
31
+ children: [
32
+ {
33
+ path: '',
34
+ component: EntriesComponent,
35
+ data: { keep: true }
36
+ },
37
+ {
38
+ path: 'create',
39
+ component: CreateComponent,
40
+ },
41
+ {
42
+ path: ':entrieId/edit',
43
+ component: EditComponent,
44
+ },
45
+ ],
46
+ },
47
+ {
48
+ path: '',
49
+ children: [
50
+ {
51
+ path: 'fields',
52
+ children: [
53
+ {
54
+ path: '',
55
+ component: FieldsComponent,
56
+ data: { keep: true }
57
+ },
58
+ {
59
+ path: 'create',
60
+ component: CreateFieldComponent,
61
+ },
62
+ {
63
+ path: ':id/edit',
64
+ component: EditFieldComponent,
65
+ },
66
+ ],
67
+ },
68
+ // {
69
+ // path: 'sites',
70
+ // component: SitesComponent,
71
+ // data: { keep: true }
72
+ // },
73
+ {
74
+ path: 'sections',
75
+ children: [
76
+ {
77
+ path: '',
78
+ data: { keep: true },
79
+ component: SectionsComponent,
80
+ },
81
+ {
82
+ path: ':sectionsId/entry-types',
83
+ children: [
84
+ {
85
+ path: 'create',
86
+ component: CreateOrEditComponent,
87
+ },
88
+ {
89
+ path: ':entryTypesId/edit',
90
+ component: CreateOrEditComponent,
91
+ },
92
+ ],
93
+ },
94
+ ],
95
+ },
96
+ ],
97
+ },
98
+ ],
99
+ },
100
+ ];
101
+
102
+
103
+ @NgModule({
104
+ imports: [RouterModule.forChild(routes)],
105
+ exports: [RouterModule],
106
+ })
107
+ export class CmsRoutingModule {
108
+ }
@@ -0,0 +1,108 @@
1
+ import { NgModule, NgModuleFactory, ModuleWithProviders } from '@angular/core';
2
+ import { CoreModule, LazyModuleFactory } from '@abp/ng.core';
3
+ import { ThemeSharedModule } from '@abp/ng.theme.shared';
4
+ import { CmsRoutingModule } from './cms-routing.module';
5
+ import {
6
+ CreateComponent,
7
+ CreateFieldComponent,
8
+ CreateOrEditComponent,
9
+ CreateOrEditEntriesComponent,
10
+ CreateOrEditFieldComponent,
11
+ EditComponent,
12
+ EditFieldComponent,
13
+ EntriesComponent,
14
+ FieldGroupComponent,
15
+ FieldsComponent,
16
+ SectionsComponent,
17
+ // SitesComponent,
18
+ MatrixConfigComponent,
19
+ MatrixControlComponent,
20
+ TableConfigComponent,
21
+ TableControlComponent,
22
+ EntryConfigComponent,
23
+ EntryControlComponent,
24
+ FieldControlGroup
25
+ } from './components';
26
+ import {
27
+ NgbDropdownModule,
28
+ NgbNavModule,
29
+ NgbAccordionModule,
30
+ } from '@ng-bootstrap/ng-bootstrap';
31
+ import { FormsModule } from '@angular/forms';
32
+ import { PageModule } from '@abp/ng.components/page';
33
+ import { CMS_TOOLBAR_ACTION_CONTRIBUTORS } from './toolbar';
34
+ import { NzSelectModule } from 'ng-zorro-antd/select';
35
+ import { DynamicFormModule } from '@dignite-ng/expand.dynamic-form';
36
+ import { fielFieldControlGroup } from '@dignite-ng/expand.file-explorer';
37
+ import { ckEditorFieldControlGroup } from '@dignite-ng/expand.ck-editor';
38
+ import { DomainsComponent } from './components/admin/domains/domains.component';
39
+ import { SettingTabsService } from '@abp/ng.setting-management/config';
40
+
41
+ @NgModule({
42
+ declarations: [
43
+ EntriesComponent,
44
+ FieldsComponent,
45
+ // SitesComponent,
46
+ SectionsComponent,
47
+ FieldGroupComponent,
48
+ CreateFieldComponent,
49
+ EditFieldComponent,
50
+ CreateOrEditFieldComponent,
51
+ CreateOrEditComponent,
52
+ CreateComponent,
53
+ EditComponent,
54
+ CreateOrEditEntriesComponent,
55
+ TableConfigComponent,
56
+ TableControlComponent,
57
+ MatrixConfigComponent,
58
+ MatrixControlComponent,
59
+ EntryConfigComponent,
60
+ EntryControlComponent,
61
+ DomainsComponent,
62
+ ],
63
+ imports: [
64
+ CoreModule,
65
+ ThemeSharedModule,
66
+ CmsRoutingModule,
67
+ FormsModule,
68
+ NgbNavModule,
69
+ NgbAccordionModule,
70
+ NgbDropdownModule,
71
+ PageModule,
72
+ NzSelectModule,
73
+ DynamicFormModule.forRoot({
74
+ cmsFieldControlGroup: [...FieldControlGroup, ...fielFieldControlGroup, ...ckEditorFieldControlGroup]
75
+ }),
76
+ ],
77
+ exports: [
78
+ TableConfigComponent,
79
+ TableControlComponent,
80
+ MatrixConfigComponent,
81
+ MatrixControlComponent,
82
+ EntryConfigComponent,
83
+ EntryControlComponent,
84
+ DomainsComponent
85
+ ],
86
+ providers: [
87
+ ],
88
+
89
+ })
90
+ export class CmsModule {
91
+
92
+
93
+
94
+ static forChild(options: any = {}): ModuleWithProviders<CmsModule> {
95
+ return {
96
+ ngModule: CmsModule,
97
+ providers: [
98
+ {
99
+ provide: CMS_TOOLBAR_ACTION_CONTRIBUTORS,
100
+ useValue: options.toolbarActionContributors,
101
+ },
102
+ ],
103
+ };
104
+ }
105
+ static forLazy(options: any = {}): NgModuleFactory<CmsModule> {
106
+ return new LazyModuleFactory(CmsModule.forChild(options));
107
+ }
108
+ }
@@ -0,0 +1,19 @@
1
+ <form [formGroup]="newEntity" (ngSubmit)="SaveSubmit()">
2
+
3
+ <div class="d-flex align-items-center justify-content-between">
4
+ <h2>{{'Cms::Domain'|abpLocalization}}</h2>
5
+ <button class="btn btn-primary btn-sm" type="submit"><i
6
+ class="me-1 fas fa-save"></i>{{'AbpUi::Save'|abpLocalization}}</button>
7
+ </div>
8
+ <hr class="my-3" />
9
+ <div class="mb-2">
10
+ <!-- <label class="form-label" for="title">{{'Cms::Domain' | abpLocalization}}</label> -->
11
+ <input type="text" class="form-control" formControlName="domainName">
12
+ <div class="text-danger invalid-feedback" *ngIf="domainNameInput.errors?.repetition">
13
+ {{domainNameInput.errors?.repetition}}
14
+ </div>
15
+ <div class="form-text">此处是填写域名的描述,需要一个字段统一配置域名多语言,</div>
16
+
17
+ </div>
18
+ <hr class="my-3" />
19
+ </form>
@@ -0,0 +1,21 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+
3
+ import { DomainsComponent } from './domains.component';
4
+
5
+ describe('DomainsComponent', () => {
6
+ let component: DomainsComponent;
7
+ let fixture: ComponentFixture<DomainsComponent>;
8
+
9
+ beforeEach(() => {
10
+ TestBed.configureTestingModule({
11
+ declarations: [DomainsComponent]
12
+ });
13
+ fixture = TestBed.createComponent(DomainsComponent);
14
+ component = fixture.componentInstance;
15
+ fixture.detectChanges();
16
+ });
17
+
18
+ it('should create', () => {
19
+ expect(component).toBeTruthy();
20
+ });
21
+ });
@@ -0,0 +1,99 @@
1
+ import { Component, inject } from '@angular/core';
2
+ import { AbstractControl, FormControl, FormGroup, ValidationErrors } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
4
+ import { DomainAdminService } from '../../../proxy/admin/domains';
5
+ import { LocalizationService } from '@abp/ng.core';
6
+ import { ToasterService } from '@abp/ng.theme.shared';
7
+
8
+ @Component({
9
+ selector: 'cms-domains',
10
+ templateUrl: './domains.component.html',
11
+ styleUrls: ['./domains.component.scss']
12
+ })
13
+ export class DomainsComponent {
14
+
15
+ private toaster = inject(ToasterService)
16
+ private _DomainAdminService = inject(DomainAdminService);
17
+ private _LocalizationService = inject(LocalizationService);
18
+
19
+
20
+
21
+ /**表单实体 */
22
+ newEntity: FormGroup | undefined;
23
+
24
+ /**domain详情 */
25
+ domainInfo:any=''
26
+ get domainNameInput() {
27
+ return this.newEntity.get('domainName')
28
+ }
29
+
30
+ async ngOnInit(): Promise<void> {
31
+ //Called after the constructor, initializing input properties, and the first call to ngOnChanges.
32
+ //Add 'implements OnInit' to the class.
33
+
34
+ this.newEntity = new FormGroup({
35
+ domainName: new FormControl('', {
36
+ asyncValidators: this.repetitionAsyncValidator(),
37
+ updateOn: 'blur'
38
+ })
39
+ })
40
+ await this.getDomainsBound()
41
+
42
+ }
43
+
44
+ /**用于获取已绑定的域名 */
45
+ getDomainsBound(){
46
+ return new Promise((resolve,rejects)=>{
47
+ this._DomainAdminService.getBound().subscribe(res=>{
48
+ this.domainNameInput.patchValue(res?.domainName||'')
49
+ this.domainInfo=res
50
+ resolve(res)
51
+ })
52
+ })
53
+ }
54
+
55
+ //检验域名是否已经绑定
56
+ repetitionAsyncValidator() {
57
+ return (ctrl: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => {
58
+ return new Promise(resolve => {
59
+ let domainNameInput = this.domainNameInput.value
60
+ if (!domainNameInput) {
61
+ resolve(null);
62
+ return
63
+ }
64
+ if (this.domainInfo?.domainName===domainNameInput) {
65
+ resolve(null);
66
+ return
67
+ }
68
+ var patt = /^(?!-)[A-Za-z0-9-]{1,63}(?<!-)\.[A-Za-z]{2,6}$/;
69
+ if(!patt.test(domainNameInput)){
70
+
71
+ resolve({ repetition: this._LocalizationService.instant(`AbpValidation::ThisFieldMustMatchTheRegularExpression{0}`, patt.toString()) });
72
+ console.log(this.newEntity,'newEntity');
73
+ return
74
+ }
75
+
76
+
77
+ this._DomainAdminService.nameExists(domainNameInput).subscribe(res => {
78
+ if (res) {
79
+ resolve({ repetition: this._LocalizationService.instant(`Cms::DomainName{0}AlreadyExist`, ctrl.value) });
80
+ } else {
81
+ resolve(null);
82
+ }
83
+ })
84
+ });
85
+ };
86
+ }
87
+
88
+ /**保存 */
89
+ SaveSubmit() {
90
+ let input = this.newEntity.value
91
+ console.log(input, '保存');
92
+ this._DomainAdminService.update(input).subscribe(async(res)=>{
93
+ this.toaster.success(this._LocalizationService.instant(`AbpUi::保存成功`));
94
+ await this.getDomainsBound()
95
+ })
96
+ }
97
+
98
+
99
+ }
@@ -0,0 +1 @@
1
+ export * from './domains.component'
@@ -0,0 +1,113 @@
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>
@@ -0,0 +1 @@
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}}