@dignite-ng/expand.cms 0.0.33 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/config/cms-config.module.d.ts +8 -0
  2. package/config/{src/enums/index.ts → enums/index.d.ts} +1 -1
  3. package/config/enums/route-names.d.ts +7 -0
  4. package/config/index.d.ts +5 -0
  5. package/config/{src/providers/index.ts → providers/index.d.ts} +1 -1
  6. package/config/providers/route.provider.d.ts +9 -0
  7. package/config/{src/public-api.ts → public-api.d.ts} +3 -3
  8. package/esm2022/config/cms-config.module.mjs +19 -0
  9. package/esm2022/config/dignite-ng-expand.cms-config.mjs +5 -0
  10. package/esm2022/config/enums/index.mjs +2 -0
  11. package/esm2022/config/enums/route-names.mjs +2 -0
  12. package/esm2022/config/providers/index.mjs +2 -0
  13. package/esm2022/config/providers/route.provider.mjs +78 -0
  14. package/esm2022/config/public-api.mjs +4 -0
  15. package/esm2022/dignite-ng-expand.cms.mjs +5 -0
  16. package/esm2022/lib/cms-routing.module.mjs +100 -0
  17. package/esm2022/lib/cms.module.mjs +132 -0
  18. package/esm2022/lib/components/admin/domains/domains.component.mjs +90 -0
  19. package/esm2022/lib/components/admin/domains/index.mjs +2 -0
  20. package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +286 -0
  21. package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +32 -0
  22. package/esm2022/lib/components/admin/entries/create.component.mjs +108 -0
  23. package/esm2022/lib/components/admin/entries/edit.component.mjs +107 -0
  24. package/esm2022/lib/components/admin/entries/entries.component.mjs +211 -0
  25. package/esm2022/lib/components/admin/entries/index.mjs +5 -0
  26. package/esm2022/lib/components/admin/fields/create-field.component.mjs +82 -0
  27. package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +119 -0
  28. package/esm2022/lib/components/admin/fields/create-or-update-field-input-base.mjs +25 -0
  29. package/esm2022/lib/components/admin/fields/edit-field.component.mjs +113 -0
  30. package/esm2022/lib/components/admin/fields/field-group.component.mjs +124 -0
  31. package/esm2022/lib/components/admin/fields/fields.component.mjs +119 -0
  32. package/esm2022/lib/components/admin/fields/index.mjs +7 -0
  33. package/esm2022/lib/components/admin/index.mjs +6 -0
  34. package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +27 -0
  35. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +71 -0
  36. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +416 -0
  37. package/esm2022/lib/components/admin/sections/entry-types/index.mjs +3 -0
  38. package/esm2022/lib/components/admin/sections/index.mjs +4 -0
  39. package/esm2022/lib/components/admin/sections/sections.component.mjs +348 -0
  40. package/esm2022/lib/components/admin/sites/create-or-update-sites-input-base.mjs +18 -0
  41. package/esm2022/lib/components/admin/sites/index.mjs +3 -0
  42. package/esm2022/lib/components/admin/sites/sites.component.mjs +29 -0
  43. package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +124 -0
  44. package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +18 -0
  45. package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +116 -0
  46. package/esm2022/lib/components/dynamic-form/entry/index.mjs +4 -0
  47. package/esm2022/lib/components/dynamic-form/form-control-group.mjs +28 -0
  48. package/esm2022/lib/components/dynamic-form/index.mjs +5 -0
  49. package/esm2022/lib/components/dynamic-form/matrix/index.mjs +4 -0
  50. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +228 -0
  51. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +50 -0
  52. package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +115 -0
  53. package/esm2022/lib/components/dynamic-form/table/index.mjs +4 -0
  54. package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +174 -0
  55. package/esm2022/lib/components/dynamic-form/table/table-config.mjs +38 -0
  56. package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +121 -0
  57. package/esm2022/lib/components/index.mjs +3 -0
  58. package/esm2022/lib/constants/styles.mjs +18 -0
  59. package/esm2022/lib/enums/ecms-component.mjs +13 -0
  60. package/esm2022/lib/enums/index.mjs +2 -0
  61. package/esm2022/lib/proxy/admin/domains/domain-admin.service.mjs +34 -0
  62. package/esm2022/lib/proxy/admin/domains/index.mjs +3 -0
  63. package/esm2022/lib/proxy/admin/domains/models.mjs +2 -0
  64. package/esm2022/lib/proxy/admin/dynamic-forms/form-admin.service.mjs +24 -0
  65. package/esm2022/lib/proxy/admin/dynamic-forms/index.mjs +3 -0
  66. package/esm2022/lib/proxy/admin/dynamic-forms/models.mjs +2 -0
  67. package/esm2022/lib/proxy/admin/entries/entry-admin.service.mjs +72 -0
  68. package/esm2022/lib/proxy/admin/entries/index.mjs +3 -0
  69. package/esm2022/lib/proxy/admin/entries/models.mjs +2 -0
  70. package/esm2022/lib/proxy/admin/fields/field-admin.service.mjs +47 -0
  71. package/esm2022/lib/proxy/admin/fields/field-group-admin.service.mjs +43 -0
  72. package/esm2022/lib/proxy/admin/fields/index.mjs +4 -0
  73. package/esm2022/lib/proxy/admin/fields/models.mjs +2 -0
  74. package/esm2022/lib/proxy/admin/sections/entry-type-admin.service.mjs +43 -0
  75. package/esm2022/lib/proxy/admin/sections/index.mjs +4 -0
  76. package/esm2022/lib/proxy/admin/sections/models.mjs +2 -0
  77. package/esm2022/lib/proxy/admin/sections/section-admin.service.mjs +53 -0
  78. package/esm2022/lib/proxy/admin/settings/index.mjs +2 -0
  79. package/esm2022/lib/proxy/admin/settings/site-settings-admin.service.mjs +33 -0
  80. package/esm2022/lib/proxy/dignite/abp/data/models.mjs +2 -0
  81. package/esm2022/lib/proxy/entries/entry-status.enum.mjs +8 -0
  82. package/esm2022/lib/proxy/entries/index.mjs +2 -0
  83. package/esm2022/lib/proxy/fields/models.mjs +2 -0
  84. package/esm2022/lib/proxy/sections/index.mjs +3 -0
  85. package/esm2022/lib/proxy/sections/models.mjs +2 -0
  86. package/esm2022/lib/proxy/sections/section-type.enum.mjs +9 -0
  87. package/esm2022/lib/proxy/settings/models.mjs +2 -0
  88. package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +2 -0
  89. package/esm2022/lib/services/appent-content.mjs +15 -0
  90. package/esm2022/lib/services/cms-api.service.mjs +80 -0
  91. package/esm2022/lib/services/cms.service.mjs +23 -0
  92. package/esm2022/lib/services/field-abstracts.service.mjs +45 -0
  93. package/esm2022/lib/services/index.mjs +5 -0
  94. package/esm2022/lib/services/simple-reuse-strategy.mjs +43 -0
  95. package/esm2022/lib/services/update-list.service.mjs +19 -0
  96. package/esm2022/lib/toolbar/index.mjs +3 -0
  97. package/esm2022/lib/toolbar/toolbar-btn-default-action.mjs +160 -0
  98. package/esm2022/lib/toolbar/toolbar-config.mjs +79 -0
  99. package/esm2022/public-api.mjs +10 -0
  100. package/fesm2022/dignite-ng-expand.cms-config.mjs +101 -0
  101. package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -0
  102. package/fesm2022/dignite-ng-expand.cms.mjs +4097 -0
  103. package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -0
  104. package/index.d.ts +5 -0
  105. package/lib/cms-routing.module.d.ts +7 -0
  106. package/lib/cms.module.d.ts +35 -0
  107. package/lib/components/admin/domains/domains.component.d.ts +21 -0
  108. package/lib/components/admin/domains/index.d.ts +1 -0
  109. package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +92 -0
  110. package/lib/components/admin/entries/create-or-update-entry-input-base.d.ts +23 -0
  111. package/lib/components/admin/entries/create.component.d.ts +40 -0
  112. package/lib/components/admin/entries/edit.component.d.ts +40 -0
  113. package/lib/components/admin/entries/entries.component.d.ts +66 -0
  114. package/lib/components/admin/entries/index.d.ts +4 -0
  115. package/lib/components/admin/fields/create-field.component.d.ts +31 -0
  116. package/lib/components/admin/fields/create-or-edit-field.component.d.ts +36 -0
  117. package/lib/components/admin/fields/create-or-update-field-input-base.d.ts +16 -0
  118. package/lib/components/admin/fields/edit-field.component.d.ts +40 -0
  119. package/lib/components/admin/fields/field-group.component.d.ts +51 -0
  120. package/lib/components/admin/fields/fields.component.d.ts +37 -0
  121. package/lib/components/admin/fields/index.d.ts +6 -0
  122. package/lib/components/admin/index.d.ts +5 -0
  123. package/lib/components/admin/sections/create-or-update-sections-input-base.d.ts +17 -0
  124. package/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.d.ts +38 -0
  125. package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +132 -0
  126. package/lib/components/admin/sections/entry-types/index.d.ts +2 -0
  127. package/lib/components/admin/sections/index.d.ts +3 -0
  128. package/lib/components/admin/sections/sections.component.d.ts +90 -0
  129. package/lib/components/admin/sites/create-or-update-sites-input-base.d.ts +8 -0
  130. package/lib/components/admin/sites/index.d.ts +2 -0
  131. package/lib/components/admin/sites/sites.component.d.ts +5 -0
  132. package/lib/components/dynamic-form/entry/entry-config.component.d.ts +39 -0
  133. package/lib/components/dynamic-form/entry/entry-config.d.ts +9 -0
  134. package/lib/components/dynamic-form/entry/entry-control.component.d.ts +35 -0
  135. package/lib/components/dynamic-form/entry/index.d.ts +3 -0
  136. package/lib/components/dynamic-form/form-control-group.d.ts +4 -0
  137. package/lib/components/dynamic-form/index.d.ts +4 -0
  138. package/lib/components/dynamic-form/matrix/index.d.ts +3 -0
  139. package/lib/components/dynamic-form/matrix/matrix-config.component.d.ts +73 -0
  140. package/lib/components/dynamic-form/matrix/matrix-config.d.ts +24 -0
  141. package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +39 -0
  142. package/lib/components/dynamic-form/table/index.d.ts +3 -0
  143. package/lib/components/dynamic-form/table/table-config.component.d.ts +58 -0
  144. package/lib/components/dynamic-form/table/table-config.d.ts +18 -0
  145. package/lib/components/dynamic-form/table/table-control.component.d.ts +39 -0
  146. package/lib/components/index.d.ts +2 -0
  147. package/lib/constants/styles.d.ts +2 -0
  148. package/lib/enums/ecms-component.d.ts +11 -0
  149. package/lib/enums/index.d.ts +1 -0
  150. package/lib/proxy/admin/domains/domain-admin.service.d.ts +13 -0
  151. package/{src/lib/proxy/admin/domains/models.ts → lib/proxy/admin/domains/models.d.ts} +7 -9
  152. package/lib/proxy/admin/dynamic-forms/form-admin.service.d.ts +12 -0
  153. package/lib/proxy/admin/dynamic-forms/models.d.ts +4 -0
  154. package/lib/proxy/admin/entries/entry-admin.service.d.ts +22 -0
  155. package/lib/proxy/admin/entries/models.d.ts +60 -0
  156. package/lib/proxy/admin/fields/field-admin.service.d.ts +17 -0
  157. package/lib/proxy/admin/fields/field-group-admin.service.d.ts +16 -0
  158. package/{src/lib/proxy/admin/fields/models.ts → lib/proxy/admin/fields/models.d.ts} +34 -42
  159. package/lib/proxy/admin/sections/entry-type-admin.service.d.ts +15 -0
  160. package/{src/lib/proxy/admin/sections/models.ts → lib/proxy/admin/sections/models.d.ts} +67 -81
  161. package/lib/proxy/admin/sections/section-admin.service.d.ts +18 -0
  162. package/lib/proxy/admin/settings/site-settings-admin.service.d.ts +13 -0
  163. package/lib/proxy/dignite/abp/data/models.d.ts +3 -0
  164. package/lib/proxy/entries/entry-status.enum.d.ts +5 -0
  165. package/lib/proxy/fields/models.d.ts +8 -0
  166. package/lib/proxy/sections/models.d.ts +12 -0
  167. package/lib/proxy/sections/section-type.enum.d.ts +6 -0
  168. package/lib/proxy/settings/models.d.ts +5 -0
  169. package/{src/lib/proxy/volo/cms-kit/users/models.ts → lib/proxy/volo/cms-kit/users/models.d.ts} +7 -8
  170. package/lib/services/appent-content.d.ts +1 -0
  171. package/lib/services/cms-api.service.d.ts +20 -0
  172. package/lib/services/cms.service.d.ts +10 -0
  173. package/lib/services/field-abstracts.service.d.ts +20 -0
  174. package/lib/services/index.d.ts +4 -0
  175. package/lib/services/simple-reuse-strategy.d.ts +11 -0
  176. package/lib/services/update-list.service.d.ts +9 -0
  177. package/lib/toolbar/index.d.ts +2 -0
  178. package/lib/toolbar/toolbar-btn-default-action.d.ts +18 -0
  179. package/lib/toolbar/toolbar-config.d.ts +56 -0
  180. package/package.json +21 -6
  181. package/{src/public-api.ts → public-api.d.ts} +4 -10
  182. package/config/ng-package.json +0 -7
  183. package/config/src/cms-config.module.ts +0 -12
  184. package/config/src/enums/route-names.ts +0 -8
  185. package/config/src/providers/route.provider.ts +0 -82
  186. package/ng-package.json +0 -7
  187. package/src/lib/cms-routing.module.ts +0 -108
  188. package/src/lib/cms.module.ts +0 -108
  189. package/src/lib/components/admin/domains/domains.component.html +0 -19
  190. package/src/lib/components/admin/domains/domains.component.scss +0 -0
  191. package/src/lib/components/admin/domains/domains.component.spec.ts +0 -21
  192. package/src/lib/components/admin/domains/domains.component.ts +0 -99
  193. package/src/lib/components/admin/domains/index.ts +0 -1
  194. package/src/lib/components/admin/entries/create-or-edit-entries.component.html +0 -113
  195. package/src/lib/components/admin/entries/create-or-edit-entries.component.scss +0 -1
  196. package/src/lib/components/admin/entries/create-or-edit-entries.component.spec.ts +0 -21
  197. package/src/lib/components/admin/entries/create-or-edit-entries.component.ts +0 -284
  198. package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +0 -33
  199. package/src/lib/components/admin/entries/create.component.html +0 -13
  200. package/src/lib/components/admin/entries/create.component.scss +0 -1
  201. package/src/lib/components/admin/entries/create.component.spec.ts +0 -21
  202. package/src/lib/components/admin/entries/create.component.ts +0 -104
  203. package/src/lib/components/admin/entries/edit.component.html +0 -9
  204. package/src/lib/components/admin/entries/edit.component.scss +0 -1
  205. package/src/lib/components/admin/entries/edit.component.spec.ts +0 -21
  206. package/src/lib/components/admin/entries/edit.component.ts +0 -98
  207. package/src/lib/components/admin/entries/entries.component.html +0 -112
  208. package/src/lib/components/admin/entries/entries.component.scss +0 -1
  209. package/src/lib/components/admin/entries/entries.component.spec.ts +0 -21
  210. package/src/lib/components/admin/entries/entries.component.ts +0 -219
  211. package/src/lib/components/admin/entries/index.ts +0 -4
  212. package/src/lib/components/admin/fields/create-field.component.html +0 -12
  213. package/src/lib/components/admin/fields/create-field.component.scss +0 -1
  214. package/src/lib/components/admin/fields/create-field.component.spec.ts +0 -21
  215. package/src/lib/components/admin/fields/create-field.component.ts +0 -68
  216. package/src/lib/components/admin/fields/create-or-edit-field.component.html +0 -39
  217. package/src/lib/components/admin/fields/create-or-edit-field.component.scss +0 -0
  218. package/src/lib/components/admin/fields/create-or-edit-field.component.spec.ts +0 -21
  219. package/src/lib/components/admin/fields/create-or-edit-field.component.ts +0 -116
  220. package/src/lib/components/admin/fields/create-or-update-field-input-base.ts +0 -33
  221. package/src/lib/components/admin/fields/edit-field.component.html +0 -13
  222. package/src/lib/components/admin/fields/edit-field.component.scss +0 -0
  223. package/src/lib/components/admin/fields/edit-field.component.spec.ts +0 -21
  224. package/src/lib/components/admin/fields/edit-field.component.ts +0 -100
  225. package/src/lib/components/admin/fields/field-group.component.html +0 -69
  226. package/src/lib/components/admin/fields/field-group.component.scss +0 -0
  227. package/src/lib/components/admin/fields/field-group.component.spec.ts +0 -21
  228. package/src/lib/components/admin/fields/field-group.component.ts +0 -132
  229. package/src/lib/components/admin/fields/fields.component.html +0 -74
  230. package/src/lib/components/admin/fields/fields.component.scss +0 -1
  231. package/src/lib/components/admin/fields/fields.component.spec.ts +0 -21
  232. package/src/lib/components/admin/fields/fields.component.ts +0 -111
  233. package/src/lib/components/admin/fields/index.ts +0 -6
  234. package/src/lib/components/admin/index.ts +0 -5
  235. package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +0 -36
  236. package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts +0 -79
  237. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.html +0 -191
  238. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.scss +0 -1
  239. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.spec.ts +0 -21
  240. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.ts +0 -408
  241. package/src/lib/components/admin/sections/entry-types/index.ts +0 -2
  242. package/src/lib/components/admin/sections/index.ts +0 -3
  243. package/src/lib/components/admin/sections/sections.component.html +0 -190
  244. package/src/lib/components/admin/sections/sections.component.scss +0 -1
  245. package/src/lib/components/admin/sections/sections.component.spec.ts +0 -21
  246. package/src/lib/components/admin/sections/sections.component.ts +0 -370
  247. package/src/lib/components/admin/sites/create-or-update-sites-input-base.ts +0 -18
  248. package/src/lib/components/admin/sites/index.ts +0 -2
  249. package/src/lib/components/admin/sites/sites.component.html +0 -136
  250. package/src/lib/components/admin/sites/sites.component.scss +0 -1
  251. package/src/lib/components/admin/sites/sites.component.spec.ts +0 -21
  252. package/src/lib/components/admin/sites/sites.component.ts +0 -250
  253. package/src/lib/components/dynamic-form/entry/entry-config.component.html +0 -36
  254. package/src/lib/components/dynamic-form/entry/entry-config.component.scss +0 -0
  255. package/src/lib/components/dynamic-form/entry/entry-config.component.spec.ts +0 -21
  256. package/src/lib/components/dynamic-form/entry/entry-config.component.ts +0 -115
  257. package/src/lib/components/dynamic-form/entry/entry-config.ts +0 -24
  258. package/src/lib/components/dynamic-form/entry/entry-control.component.html +0 -26
  259. package/src/lib/components/dynamic-form/entry/entry-control.component.scss +0 -1
  260. package/src/lib/components/dynamic-form/entry/entry-control.component.spec.ts +0 -21
  261. package/src/lib/components/dynamic-form/entry/entry-control.component.ts +0 -109
  262. package/src/lib/components/dynamic-form/entry/index.ts +0 -3
  263. package/src/lib/components/dynamic-form/form-control-group.ts +0 -27
  264. package/src/lib/components/dynamic-form/index.ts +0 -4
  265. package/src/lib/components/dynamic-form/matrix/index.ts +0 -3
  266. package/src/lib/components/dynamic-form/matrix/matrix-config.component.html +0 -147
  267. package/src/lib/components/dynamic-form/matrix/matrix-config.component.scss +0 -0
  268. package/src/lib/components/dynamic-form/matrix/matrix-config.component.spec.ts +0 -21
  269. package/src/lib/components/dynamic-form/matrix/matrix-config.component.ts +0 -236
  270. package/src/lib/components/dynamic-form/matrix/matrix-config.ts +0 -63
  271. package/src/lib/components/dynamic-form/matrix/matrix-control.component.html +0 -42
  272. package/src/lib/components/dynamic-form/matrix/matrix-control.component.scss +0 -0
  273. package/src/lib/components/dynamic-form/matrix/matrix-control.component.spec.ts +0 -21
  274. package/src/lib/components/dynamic-form/matrix/matrix-control.component.ts +0 -104
  275. package/src/lib/components/dynamic-form/table/index.ts +0 -3
  276. package/src/lib/components/dynamic-form/table/table-config.component.html +0 -85
  277. package/src/lib/components/dynamic-form/table/table-config.component.scss +0 -10
  278. package/src/lib/components/dynamic-form/table/table-config.component.spec.ts +0 -21
  279. package/src/lib/components/dynamic-form/table/table-config.component.ts +0 -170
  280. package/src/lib/components/dynamic-form/table/table-config.ts +0 -45
  281. package/src/lib/components/dynamic-form/table/table-control.component.html +0 -54
  282. package/src/lib/components/dynamic-form/table/table-control.component.scss +0 -1
  283. package/src/lib/components/dynamic-form/table/table-control.component.spec.ts +0 -21
  284. package/src/lib/components/dynamic-form/table/table-control.component.ts +0 -115
  285. package/src/lib/components/index.ts +0 -2
  286. package/src/lib/constants/index.ts +0 -1
  287. package/src/lib/constants/styles.ts +0 -13
  288. package/src/lib/enums/ecms-component.ts +0 -11
  289. package/src/lib/enums/index.ts +0 -1
  290. package/src/lib/proxy/README.md +0 -17
  291. package/src/lib/proxy/admin/domains/domain-admin.service.ts +0 -38
  292. package/src/lib/proxy/admin/dynamic-forms/form-admin.service.ts +0 -21
  293. package/src/lib/proxy/admin/dynamic-forms/models.ts +0 -5
  294. package/src/lib/proxy/admin/entries/entry-admin.service.ts +0 -109
  295. package/src/lib/proxy/admin/entries/models.ts +0 -68
  296. package/src/lib/proxy/admin/fields/field-admin.service.ts +0 -64
  297. package/src/lib/proxy/admin/fields/field-group-admin.service.ts +0 -56
  298. package/src/lib/proxy/admin/index.ts +0 -7
  299. package/src/lib/proxy/admin/sections/entry-type-admin.service.ts +0 -55
  300. package/src/lib/proxy/admin/sections/section-admin.service.ts +0 -74
  301. package/src/lib/proxy/admin/settings/site-settings-admin.service.ts +0 -37
  302. package/src/lib/proxy/dignite/abp/data/index.ts +0 -1
  303. package/src/lib/proxy/dignite/abp/data/models.ts +0 -4
  304. package/src/lib/proxy/dignite/abp/index.ts +0 -2
  305. package/src/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.ts +0 -65
  306. package/src/lib/proxy/dignite/file-explorer/directories/index.ts +0 -2
  307. package/src/lib/proxy/dignite/file-explorer/directories/models.ts +0 -35
  308. package/src/lib/proxy/dignite/file-explorer/files/file-descriptor.service.ts +0 -86
  309. package/src/lib/proxy/dignite/file-explorer/files/index.ts +0 -2
  310. package/src/lib/proxy/dignite/file-explorer/files/models.ts +0 -58
  311. package/src/lib/proxy/dignite/file-explorer/index.ts +0 -3
  312. package/src/lib/proxy/dignite/index.ts +0 -3
  313. package/src/lib/proxy/entries/entry-status.enum.ts +0 -8
  314. package/src/lib/proxy/fields/index.ts +0 -1
  315. package/src/lib/proxy/fields/models.ts +0 -9
  316. package/src/lib/proxy/generate-proxy.json +0 -11425
  317. package/src/lib/proxy/index.ts +0 -9
  318. package/src/lib/proxy/microsoft/asp-net-core/index.ts +0 -2
  319. package/src/lib/proxy/microsoft/asp-net-core/mvc/index.ts +0 -1
  320. package/src/lib/proxy/microsoft/asp-net-core/mvc/models.ts +0 -12
  321. package/src/lib/proxy/microsoft/extensions/index.ts +0 -2
  322. package/src/lib/proxy/microsoft/extensions/primitives/index.ts +0 -1
  323. package/src/lib/proxy/microsoft/extensions/primitives/models.ts +0 -9
  324. package/src/lib/proxy/microsoft/index.ts +0 -4
  325. package/src/lib/proxy/microsoft/net/http/headers/index.ts +0 -1
  326. package/src/lib/proxy/microsoft/net/http/headers/models.ts +0 -7
  327. package/src/lib/proxy/microsoft/net/http/index.ts +0 -2
  328. package/src/lib/proxy/microsoft/net/index.ts +0 -2
  329. package/src/lib/proxy/sections/models.ts +0 -14
  330. package/src/lib/proxy/sections/section-type.enum.ts +0 -9
  331. package/src/lib/proxy/settings/index.ts +0 -1
  332. package/src/lib/proxy/settings/models.ts +0 -6
  333. package/src/lib/proxy/volo/abp/content/index.ts +0 -1
  334. package/src/lib/proxy/volo/abp/content/models.ts +0 -6
  335. package/src/lib/proxy/volo/abp/index.ts +0 -2
  336. package/src/lib/proxy/volo/cms-kit/index.ts +0 -2
  337. package/src/lib/proxy/volo/cms-kit/users/index.ts +0 -1
  338. package/src/lib/proxy/volo/index.ts +0 -3
  339. package/src/lib/proxy.zip +0 -0
  340. package/src/lib/services/appent-content.ts +0 -13
  341. package/src/lib/services/cms-api.service.ts +0 -71
  342. package/src/lib/services/cms.service.ts +0 -18
  343. package/src/lib/services/field-abstracts.service.ts +0 -40
  344. package/src/lib/services/index.ts +0 -4
  345. package/src/lib/services/simple-reuse-strategy.ts +0 -49
  346. package/src/lib/services/update-list.service.ts +0 -15
  347. package/src/lib/toolbar/index.ts +0 -2
  348. package/src/lib/toolbar/toolbar-btn-default-action.ts +0 -171
  349. package/src/lib/toolbar/toolbar-config.ts +0 -93
  350. package/src/test.ts +0 -26
  351. package/tsconfig.lib.json +0 -34
  352. package/tsconfig.lib.prod.json +0 -10
  353. package/tsconfig.spec.json +0 -17
  354. /package/{src/lib/proxy/admin/domains/index.ts → lib/proxy/admin/domains/index.d.ts} +0 -0
  355. /package/{src/lib/proxy/admin/dynamic-forms/index.ts → lib/proxy/admin/dynamic-forms/index.d.ts} +0 -0
  356. /package/{src/lib/proxy/admin/entries/index.ts → lib/proxy/admin/entries/index.d.ts} +0 -0
  357. /package/{src/lib/proxy/admin/fields/index.ts → lib/proxy/admin/fields/index.d.ts} +0 -0
  358. /package/{src/lib/proxy/admin/sections/index.ts → lib/proxy/admin/sections/index.d.ts} +0 -0
  359. /package/{src/lib/proxy/admin/settings/index.ts → lib/proxy/admin/settings/index.d.ts} +0 -0
  360. /package/{src/lib/proxy/entries/index.ts → lib/proxy/entries/index.d.ts} +0 -0
  361. /package/{src/lib/proxy/sections/index.ts → lib/proxy/sections/index.d.ts} +0 -0
@@ -1,98 +0,0 @@
1
- /* eslint-disable @angular-eslint/use-lifecycle-interface */
2
- import { ToasterService } from '@abp/ng.theme.shared';
3
- import { Component, ElementRef, OnInit, ViewChild, inject } from '@angular/core';
4
- import { FormBuilder, FormGroup } from '@angular/forms';
5
- import { ActivatedRoute, Router } from '@angular/router';
6
- import { Location } from '@angular/common';
7
- import { CreateOrUpdateEntryInputBase } from './create-or-update-entry-input-base';
8
- import { LocalizationService } from '@abp/ng.core';
9
- import { EntryAdminService } from '../../../proxy/admin/entries';
10
- import { EXTENSIONS_IDENTIFIER } from '@abp/ng.theme.shared/extensions';
11
- import { ECmsComponent } from '../../../enums/ecms-component';
12
- import { UpdateListService } from '../../../services/update-list.service';
13
-
14
- @Component({
15
- selector: 'cms-edit',
16
- templateUrl: './edit.component.html',
17
- styleUrls: ['./edit.component.scss'],
18
- providers: [
19
- {
20
- provide: EXTENSIONS_IDENTIFIER,
21
- useValue: ECmsComponent.Entries_Edit,
22
- },
23
- ],
24
- })
25
- export class EditComponent implements OnInit {
26
- constructor(
27
- private toaster: ToasterService,
28
- public _location: Location,
29
- private route: ActivatedRoute,
30
- private _EntryAdminService: EntryAdminService,
31
- private router: Router,
32
- private _LocalizationService: LocalizationService
33
- ) {}
34
- private fb = inject(FormBuilder);
35
- private _updateListService = inject(UpdateListService);
36
-
37
- /**表单实体 */
38
- newEntity: FormGroup | undefined;
39
-
40
- /**是否是草稿 */
41
- draftType: boolean = false;
42
-
43
- /**页面传值用于传递到子组件 */
44
- queryParams: any = '' || {};
45
-
46
- /**指定id的条目信息 */
47
- entrySelect: any = '';
48
-
49
- /**获取提交按钮替身,用于真实触发表单提交 */
50
- @ViewChild('submitclick', { static: true }) submitclick: ElementRef;
51
-
52
- async ngOnInit() {
53
- this.queryParams.RevisionEntryId = this.route.snapshot.params.entrieId;
54
- this.newEntity = this.fb.group(new CreateOrUpdateEntryInputBase());
55
- await this.getEntrySelect();
56
- }
57
-
58
- /**获取条目信息 */
59
- getEntrySelect() {
60
- return new Promise((resolve, rejects) => {
61
- this._EntryAdminService.get(this.queryParams.RevisionEntryId).subscribe(res => {
62
- this.entrySelect = res;
63
- resolve(res);
64
- });
65
- });
66
- }
67
-
68
- /**保存 */
69
- save(draft) {
70
- this.newEntity.patchValue({
71
- draft: draft,
72
- });
73
- let input = this.newEntity.value;
74
- input.publishTime = new Date(
75
- new Date(input.publishTime).getTime() + 8 * 60 * 60 * 1000
76
- ).toISOString();
77
- input.culture = this.newEntity.get('culture').value;
78
- input.concurrencyStamp = this.entrySelect.concurrencyStamp;
79
- if (!this.newEntity.valid) return;
80
- this._EntryAdminService.update(this.entrySelect.id, input).subscribe(res => {
81
- this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
82
- this.router.navigateByUrl('', { skipLocationChange: true }).then(() => {
83
- this.router.navigate([`/cms/admin/entries`]);
84
- this._updateListService.updateList();
85
- });
86
- });
87
- }
88
-
89
- /**触发点击按钮替身 */
90
- clickSubmit(type) {
91
- this.draftType = type;
92
- this.submitclick.nativeElement.click();
93
- }
94
- /**返回上一页 */
95
- backTo() {
96
- this._location.back();
97
- }
98
- }
@@ -1,112 +0,0 @@
1
- <abp-page [title]="'Cms::Entries' | abpLocalization" [toolbar]="true">
2
- <abp-page-toolbar-container *ngIf="entryTypeList.length < 1" class="col "></abp-page-toolbar-container>
3
- <abp-page-toolbar-container *ngIf="entryTypeList.length > 1" class="col ">
4
- <div class="row justify-content-end mx-0 gap-2" *abpPermission="'CmsAdmin.Entry.Create'">
5
- <div class="col-auto px-0 pt-0">
6
- <div ngbDropdown class="d-inline-block">
7
- <button type="button" class="btn btn-primary btn-sm ms-2" id="dropdownBasic1" ngbDropdownToggle>
8
- <i class="fa fa-plus pe-1" aria-hidden="true"></i>{{'Cms::New' | abpLocalization}}
9
- </button>
10
- <div ngbDropdownMenu aria-labelledby="dropdownBasic1">
11
- <ng-container *ngFor="let item of entryTypeList">
12
- <button ngbDropdownItem [routerLink]="['/cms/admin/entries/create']"
13
- [queryParams]="{cultureName: filters.culture,sectionId:filters.sectionId,entryTypeId:item.id}">{{item.displayName}}</button>
14
- </ng-container>
15
- </div>
16
- </div>
17
- </div>
18
- </div>
19
- </abp-page-toolbar-container>
20
- <div id="sites-page" class="sites-page">
21
- <div class="card">
22
- <div class="card-body px-2 py-sm-2 border-bottom" [formGroup]="filtersForm">
23
- <div class="row align-items-end">
24
- <div class="mb-2 col-3">
25
- <label class="form-label">{{'Cms::Sections' | abpLocalization}}:</label>
26
- <select class="form-select col-auto" formControlName="sectionId" (change)="sectionIdChange()">
27
- <ng-container *ngFor="let item of SiteOfSectionList">
28
- <option [value]="item.id">{{item.displayName}}</option>
29
- </ng-container>
30
- </select>
31
- </div>
32
- <div class="mb-2 col-3">
33
- <label class="form-label">{{'AbpUi::Languages' | abpLocalization}}:</label>
34
- <select class="form-select col-auto" formControlName="culture" (change)="cultureChange()">
35
- <ng-container *ngFor="let item of sectionLanguagesList">
36
- <option [value]="item.cultureName">{{item.displayName}}</option>
37
- </ng-container>
38
- </select>
39
- </div>
40
-
41
- <div class="mb-2 col-3">
42
- <label class="form-label">{{'AbpUi::Search' | abpLocalization}}:</label>
43
- <input type="text" class="form-control" formControlName="filter"
44
- [placeholder]="'AbpUi::Search' | abpLocalization" />
45
- </div>
46
- <div class="mb-2 col-3">
47
- <button class="btn btn-primary px-3" type="button" id="button-addon2" (click)="resetData()">
48
- <i class="fa fa-search"></i>
49
- </button>
50
- </div>
51
- </div>
52
- </div>
53
- </div>
54
- <div class="card mb-0">
55
- <div class="card-body p-0">
56
- <div class="table-responsive table-fixed-header">
57
- <ngx-datatable class="material " [rows]="data.items" [list]="list"
58
- [columnMode]="ColumnMode.force" [headerHeight]="50" [footerHeight]="50" rowHeight="auto"
59
- [virtualization]="false" [externalPaging]="true" [count]="data.totalCount" [scrollbarH]="true">
60
- <ngx-datatable-column [name]="'Cms::EntryType' | abpLocalization" prop="entryTypeId">
61
- <ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
62
- <ng-container *ngFor="let item of entryTypeList">
63
- <ng-container *ngIf="item.id === value">{{item.displayName}}</ng-container>
64
- </ng-container>
65
- </ng-template>
66
- </ngx-datatable-column>
67
- <ngx-datatable-column [name]="'Cms::Title' | abpLocalization" prop="title">
68
- <ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
69
- {{ value }}
70
- </ng-template>
71
- </ngx-datatable-column>
72
- <ngx-datatable-column [name]="'Cms::Slug' | abpLocalization" prop="slug">
73
- <ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
74
- {{ value }}
75
- </ng-template>
76
- </ngx-datatable-column>
77
- <ngx-datatable-column [name]="'Cms::Status' | abpLocalization" prop="status" [width]="80">
78
- <ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
79
- <ng-container *ngFor="let item of _entryStatusOptions">
80
- <ng-container *ngIf="item.value=== value">{{ 'Cms::Enum:EntryStatus:'+item.key |
81
- abpLocalization }}</ng-container>
82
- </ng-container>
83
- </ng-template>
84
- </ngx-datatable-column>
85
- <ngx-datatable-column [name]="'Cms::PublishTime' | abpLocalization" prop="publishTime" [width]="190">
86
- <ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
87
- {{value | date: 'YYYY/MM/dd HH:mm:s' }}
88
- </ng-template>
89
- </ngx-datatable-column>
90
- <ngx-datatable-column [sortable]="false" [name]="'AbpUi::Actions' | abpLocalization"
91
- cellClass="cellClassRight" [frozenRight]="true" [width]="110">
92
- <ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
93
- <div ngbDropdown container="body">
94
- <button type="button" class="btn btn-primary btn-sm" ngbDropdownToggle>
95
- <i class="me-1 fa fa-cog"></i> {{'AbpUi::Actions' | abpLocalization}}
96
- </button>
97
- <div ngbDropdownMenu>
98
- <button ngbDropdownItem
99
- routerLink="/cms/admin/entries/{{row.id}}/edit">{{'AbpUi::Edit' |
100
- abpLocalization}}</button>
101
- <button ngbDropdownItem (click)="deletefield(row)">{{'AbpUi::Delete' |
102
- abpLocalization}}</button>
103
- </div>
104
- </div>
105
- </ng-template>
106
- </ngx-datatable-column>
107
- </ngx-datatable>
108
- </div>
109
- </div>
110
- </div>
111
- </div>
112
- </abp-page>
@@ -1 +0,0 @@
1
- ::ng-deep.sites-page{.dignite_page{background:transparent}.list-group-flush>.list-group-item:first-child{border-top-width:var(--bs-list-group-border-width)}.card-header{input{flex:2 1 auto}.form-select{padding:.475rem 3.75rem .475rem 1.25rem}}.morentr{border:2px solid transparent}.borderdrag{border:2px solid var(--ck-color-selector-column-resizer-hover)!important}.borderdragtd{background-color:var(--ck-color-selector-column-resizer-hover)!important}.testtr{border-color:transparent;td{padding:2px}}.testtr:hover{background-color:transparent}}.cdk-drag-preview{display:table;box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,0.2),0 8px 10px 1px rgba(0,0,0,0.14),0 3px 14px 2px rgba(0,0,0,0.12)}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform 250ms cubic-bezier(0,0,0.2,1)}.example-box:last-child{border:0}.example-list.cdk-drop-list-dragging .example-box:not(.cdk-drag-placeholder){transition:transform 250ms cubic-bezier(0,0,0.2,1)}::ng-deep.sites-modal-form{.form-control{padding:.4rem 1.25rem}}
@@ -1,21 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { EntriesComponent } from './entries.component';
4
-
5
- describe('EntriesComponent', () => {
6
- let component: EntriesComponent;
7
- let fixture: ComponentFixture<EntriesComponent>;
8
-
9
- beforeEach(() => {
10
- TestBed.configureTestingModule({
11
- declarations: [EntriesComponent]
12
- });
13
- fixture = TestBed.createComponent(EntriesComponent);
14
- component = fixture.componentInstance;
15
- fixture.detectChanges();
16
- });
17
-
18
- it('should create', () => {
19
- expect(component).toBeTruthy();
20
- });
21
- });
@@ -1,219 +0,0 @@
1
- import { ABP, ConfigStateService, LIST_QUERY_DEBOUNCE_TIME, ListService, LocalizationService, PagedResultDto } from '@abp/ng.core';
2
- import { ToasterService, ConfirmationService, Confirmation } from '@abp/ng.theme.shared';
3
- import { Component, OnInit, inject } from '@angular/core';
4
- import { FormBuilder, FormGroup } from '@angular/forms';
5
- import { EntryAdminService, EntryDto, GetEntriesInput } from '../../../proxy/admin/entries';
6
- import { ColumnMode } from "@swimlane/ngx-datatable";
7
- import { finalize } from 'rxjs/operators';
8
- // import { SiteAdminService } from '../../../proxy/admin/sites';
9
- import { SectionAdminService } from '../../../proxy/admin/sections';
10
- import { entryStatusOptions } from '../../../proxy/entries';
11
- import { EXTENSIONS_IDENTIFIER } from '@abp/ng.theme.shared/extensions';
12
- import { ECmsComponent } from '../../../enums/ecms-component';
13
- import { Router } from '@angular/router';
14
- import { UpdateListService } from '../../../services/update-list.service';
15
- import { SiteSettingsAdminService } from '../../../proxy/admin/settings';
16
-
17
-
18
- @Component({
19
- selector: 'cms-entries',
20
- templateUrl: './entries.component.html',
21
- styleUrls: ['./entries.component.scss'],
22
- providers: [
23
- ListService,
24
- // Provide this token if you want a different debounce time.
25
- // Default is 300. Cannot be 0. Any value below 100 is not recommended.
26
- { provide: LIST_QUERY_DEBOUNCE_TIME, useValue: 500 },
27
- {
28
- provide: EXTENSIONS_IDENTIFIER,
29
- useValue: ECmsComponent.Entries,
30
- },
31
- ]
32
- })
33
- export class EntriesComponent implements OnInit {
34
-
35
- constructor(
36
- private _EntryAdminService: EntryAdminService,
37
- // private _SiteAdminService: SiteAdminService,
38
- private _SectionAdminService: SectionAdminService,
39
- private toaster: ToasterService,
40
- private confirmation: ConfirmationService,
41
- private configState: ConfigStateService,
42
- private router: Router,
43
- private _LocalizationService: LocalizationService,
44
- ) {
45
- }
46
-
47
- private fb = inject(FormBuilder)
48
- private _UpdateListService = inject(UpdateListService)
49
- public readonly list = inject(ListService)
50
-
51
-
52
- ngOnInit(): void {
53
- this.getPageDate()
54
- this._UpdateListService.updateListEvent.subscribe(() => {
55
- this.list.get()
56
- });
57
- }
58
-
59
- /**站点列表 */
60
- // siteList: any[any] = []
61
- /**选择的站点id */
62
- // siteId: string = ''
63
- /**站点下的版块 */
64
- SiteOfSectionList: any[any] = []
65
-
66
-
67
- /**版块下的语言列表 */
68
- sectionLanguagesList: any[any] = []
69
- /**版块下的条目类型列表 */
70
- entryTypeList: any[any] = []
71
- /**状态编码 */
72
- _entryStatusOptions = entryStatusOptions
73
-
74
- /**获取页面数据 */
75
- async getPageDate() {
76
- // await this.getsiteList()
77
- await this.getSiteOfSectionList()
78
- await this.getSectionLanguagesList()
79
- this.filters = this.filtersForm.value
80
- this.hookToQuery()
81
- }
82
-
83
-
84
- /**切换板块 */
85
- async sectionIdChange() {
86
- this.getSectionOfEntryType()
87
- await this.getSectionLanguagesList()
88
- this.resetData()
89
- }
90
- /**切换语言 */
91
- async cultureChange() {
92
- this.resetData()
93
- }
94
-
95
-
96
- /**获取站点下的版块 */
97
- getSiteOfSectionList() {
98
- return new Promise((resolve, rejects) => {
99
- // let siteId = this.filtersForm.get('siteId').value
100
- this._SectionAdminService.getList({
101
- maxResultCount: 1000,
102
- // siteId: siteId
103
- }).subscribe(res => {
104
- this.SiteOfSectionList = res.items
105
- this.filtersForm.get('sectionId').patchValue(res.items[0]?.id || '')
106
- this.getSectionOfEntryType()
107
- resolve(res.items)
108
- })
109
- })
110
- }
111
-
112
- /**获取版块下的条目类型 */
113
- getSectionOfEntryType() {
114
- let sectionId = this.filtersForm.get('sectionId').value
115
- this.entryTypeList = this.SiteOfSectionList.find(el => el.id == sectionId)?.entryTypes || []
116
- }
117
-
118
- private config = inject(ConfigStateService)
119
- private _SiteSettingsAdminService = inject(SiteSettingsAdminService)
120
- /**获取版块下的语言列表 */
121
- getSectionLanguagesList() {
122
- return new Promise(async (resolve, rejects) => {
123
- //获取所有语言 */
124
- let languagesSystem = this.configState.getDeep('localization.languages')
125
- //获取系统默认语言 */
126
- let DefaultLanguage = this.config.getSetting("Abp.Localization.DefaultLanguage");
127
- const configCmsSiteLanguages = this.config.getSetting("Cms.Site.Languages")
128
- if(!configCmsSiteLanguages){
129
- await this.getSiteSettingsLanguages()
130
- }
131
- const LanguagesSite = (configCmsSiteLanguages ? configCmsSiteLanguages.split(',') : '') || this.SiteSettingsAdminLanguages
132
- let LanguagesArray = languagesSystem.filter(el => LanguagesSite.includes(el.cultureName))
133
- //获取当前选择的语言
134
- let nowculture = this.filtersForm.get('culture').value
135
- //当前选择的语言,是否在版块的的语言列表中
136
- let isexist = LanguagesArray.find(el => el.cultureName == nowculture)
137
- this.filtersForm.get('culture').patchValue(nowculture ? isexist ? nowculture : DefaultLanguage : DefaultLanguage)
138
- this.sectionLanguagesList = LanguagesArray
139
- resolve(LanguagesArray)
140
- })
141
- }
142
-
143
- /**站点设置语言 */
144
- SiteSettingsAdminLanguages: any[] = []
145
- /**
146
- * 获取站点设置语言
147
- */
148
- getSiteSettingsLanguages() {
149
- return new Promise((resolve, rejects) => {
150
- this._SiteSettingsAdminService.getAllLanguages().subscribe(res => {
151
- this.SiteSettingsAdminLanguages = res
152
- resolve(res)
153
- })
154
- })
155
- }
156
-
157
-
158
-
159
- resetData() {
160
- this.filters = this.filtersForm.value
161
- this.list.page = 0
162
- this.data.items = []
163
- this.list.get()
164
- }
165
-
166
- /**新增-单个 */
167
- createEntriesBtn() {
168
- this.router.navigate(['/cms/admin/entries/create'], {
169
- queryParams: { cultureName: this.filters.culture, sectionId: this.filters.sectionId, entryTypeId: this.entryTypeList[0].id }
170
- })
171
- }
172
-
173
- /**列表相关 */
174
- ColumnMode = ColumnMode;
175
- data: PagedResultDto<EntryDto> = {
176
- items: [],
177
- totalCount: 0,
178
- };
179
-
180
- filters = {} as GetEntriesInput;
181
- filtersForm: FormGroup = this.fb.group({
182
- siteId: [''],
183
- sectionId: [''],
184
- culture: [''],
185
- filter: [''],
186
- })
187
-
188
- hookToQuery() {
189
-
190
- const getData = (query: ABP.PageQueryParams) => this._EntryAdminService.getList({
191
- ...query,
192
- ...this.filters,
193
- });
194
- const setData = (list: PagedResultDto<EntryDto>) => {
195
- this.data = list
196
- };
197
- this.list.hookToQuery(getData).subscribe(setData);
198
- }
199
-
200
-
201
- /**删除条目 */
202
- deletefield(row: any) {
203
- this.confirmation.warn(
204
- row.displayName,
205
- this._LocalizationService.instant(`AbpUi::ItemWillBeDeletedMessage`),
206
- ).subscribe((status: Confirmation.Status) => {
207
- if (status == 'confirm') {
208
- this._EntryAdminService.delete(row.id).pipe(finalize(() => {
209
- })).subscribe(res => {
210
- this.toaster.success(this._LocalizationService.instant(`AbpUi::SuccessfullyDeleted`));
211
- this.list.get()
212
- })
213
- }
214
-
215
- });
216
- }
217
-
218
-
219
- }
@@ -1,4 +0,0 @@
1
- export * from './entries.component'
2
- export * from './create.component'
3
- export * from './edit.component'
4
- export * from './create-or-edit-entries.component'
@@ -1,12 +0,0 @@
1
- <form class="row g-3 needs-validation" [formGroup]="newEntity" (ngSubmit)="save()">
2
- <abp-page [title]="'Cms::CreateField' | abpLocalization" [toolbar]="true">
3
- <div class="create-field-page">
4
- <button type="submit" style="display: none;" #submitclick></button>
5
- <div class="card">
6
- <div class="card-body">
7
- <cms-create-or-edit-field [Entity]="newEntity"></cms-create-or-edit-field>
8
- </div>
9
- </div>
10
- </div>
11
- </abp-page>
12
- </form>
@@ -1 +0,0 @@
1
- ::ng-deep .create-field-page{.dignite_page{height:calc(100vh - 32px - 53px - 40px);overflow:auto}.form-control,.form-select{padding:.475rem 1.25rem}}
@@ -1,21 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { CreateFieldComponent } from './create-field.component';
4
-
5
- describe('CreateFieldComponent', () => {
6
- let component: CreateFieldComponent;
7
- let fixture: ComponentFixture<CreateFieldComponent>;
8
-
9
- beforeEach(() => {
10
- TestBed.configureTestingModule({
11
- declarations: [CreateFieldComponent]
12
- });
13
- fixture = TestBed.createComponent(CreateFieldComponent);
14
- component = fixture.componentInstance;
15
- fixture.detectChanges();
16
- });
17
-
18
- it('should create', () => {
19
- expect(component).toBeTruthy();
20
- });
21
- });
@@ -1,68 +0,0 @@
1
- import { Component, ElementRef, ViewChild, inject } from '@angular/core';
2
- import { CreateOrUpdateFieldInputBase } from './create-or-update-field-input-base';
3
- import { FormBuilder, FormGroup } from '@angular/forms';
4
- import { ToasterService } from '@abp/ng.theme.shared';
5
- import { FieldAdminService } from '../../../proxy/admin/fields';
6
- import { Location } from '@angular/common';
7
- import { LocalizationService } from '@abp/ng.core';
8
- import { EXTENSIONS_IDENTIFIER } from '@abp/ng.theme.shared/extensions';
9
- import { ECmsComponent } from '../../../enums';
10
- import { CmsApiService } from '../../../services';
11
- import { Router } from '@angular/router';
12
- import { UpdateListService } from '../../../services/update-list.service';
13
-
14
- @Component({
15
- selector: 'cms-create-field',
16
- templateUrl: './create-field.component.html',
17
- styleUrls: ['./create-field.component.scss'],
18
- providers: [
19
- {
20
- provide: EXTENSIONS_IDENTIFIER,
21
- useValue: ECmsComponent.FieldsCreate,
22
- },
23
- ]
24
- })
25
- export class CreateFieldComponent {
26
-
27
- constructor(
28
- private fb: FormBuilder,
29
- public _FieldAdminService: FieldAdminService,
30
- private toaster: ToasterService,
31
- public _location: Location,
32
- public _LocalizationService: LocalizationService,
33
- public _CmsApiService: CmsApiService,
34
- private router: Router,
35
-
36
- ) { }
37
- private _UpdateListService=inject(UpdateListService)
38
-
39
- /**表单实体 */
40
- newEntity: FormGroup | undefined
41
-
42
- /**获取提交按钮替身,用于真实触发表单提交 */
43
- @ViewChild('submitclick', { static: true }) submitclick: ElementRef;
44
-
45
- ngOnInit(): void {
46
- //Called after the constructor, initializing input properties, and the first call to ngOnChanges.
47
- //Add 'implements OnInit' to the class.
48
- this.newEntity= this.fb.group(new CreateOrUpdateFieldInputBase())
49
- }
50
-
51
- /**触发提交按钮 */
52
- submitclickBtn(){
53
- this.submitclick.nativeElement.click()
54
- }
55
- /**保存表单 */
56
- save() {
57
- let input = this.newEntity.value
58
- if (!this.newEntity.valid) return
59
- this._FieldAdminService.create(input).subscribe(res => {
60
- this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
61
- this.router.navigateByUrl('', { skipLocationChange: true }).then(() => {
62
- this.router.navigate([`/cms/admin/fields`]);
63
- this._UpdateListService.updateList();
64
- });
65
- })
66
- }
67
-
68
- }
@@ -1,39 +0,0 @@
1
- <form [formGroup]="_Entity">
2
- <div class="mb-2">
3
- <label class="form-label" for="groupId">{{'Cms::FieldGroup' | abpLocalization}}</label>
4
- <select class="form-select" formControlName="groupId">
5
- <option value="">{{'Cms::OptionalGrouping' | abpLocalization}}</option>
6
- <ng-container *ngFor="let item of _FieldAbstractsService.fieldGroupList">
7
- <option [value]="item.id">{{item.name}}</option>
8
- </ng-container>
9
- </select>
10
- </div>
11
- <div class="mb-2">
12
- <label class="form-label" for="displayName">{{'DigniteAbpForms::FieldDisplayName' | abpLocalization}}</label>
13
- <input type="text" class="form-control" formControlName="displayName" (blur)="disPlayNameInputBlur($event)">
14
- </div>
15
- <div class="mb-2">
16
- <label class="form-label" for="name">{{'DigniteAbpForms::FieldName' | abpLocalization}}</label>
17
- <input type="text" class="form-control" formControlName="name" (input)="nameInputBlur($event)">
18
- <div class="text-danger invalid-feedback" *ngIf="nameInput.errors?.repetition">
19
- {{nameInput.errors?.repetition}}
20
- </div>
21
- <div class="form-text">{{'DigniteAbpForms::FieldNameHelpText' | abpLocalization}}</div>
22
- </div>
23
- <div class="mb-2">
24
- <label class="form-label" for="description">{{'Cms::Description' | abpLocalization}}</label>
25
- <input type="text" class="form-control" formControlName="description">
26
- </div>
27
- <div class="mb-2">
28
- <label class="form-label" for="formControlName">{{'Cms::FieldType' | abpLocalization}}</label>
29
- <select class="form-select" formControlName="formControlName" (change)="formControlNameChange()">
30
- <ng-container *ngFor="let item of _FieldAbstractsService.fromControlList;let i =index">
31
- <option [value]="item.name">{{item.displayName}}</option>
32
- </ng-container>
33
- </select>
34
- </div>
35
- <ng-container *ngIf="_Entity.value.formControlName&&_Entity">
36
- <df-dynamic [type]="_Entity.value.formControlName" [entity]="_Entity" [selected]="_selected"></df-dynamic>
37
- </ng-container>
38
-
39
- </form>
@@ -1,21 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { CreateOrEditFieldComponent } from './create-or-edit-field.component';
4
-
5
- describe('CreateOrEditFieldComponent', () => {
6
- let component: CreateOrEditFieldComponent;
7
- let fixture: ComponentFixture<CreateOrEditFieldComponent>;
8
-
9
- beforeEach(() => {
10
- TestBed.configureTestingModule({
11
- declarations: [CreateOrEditFieldComponent]
12
- });
13
- fixture = TestBed.createComponent(CreateOrEditFieldComponent);
14
- component = fixture.componentInstance;
15
- fixture.detectChanges();
16
- });
17
-
18
- it('should create', () => {
19
- expect(component).toBeTruthy();
20
- });
21
- });