@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,250 +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, ViewChild, OnInit, ElementRef } from '@angular/core';
4
- import { AbstractControl, FormBuilder, FormControl, FormGroup, ValidationErrors, Validators } from '@angular/forms';
5
- // import { GetSitesInput, SiteDto, SiteAdminService } from '../../../proxy/admin/sites';
6
- import { ColumnMode } from "@swimlane/ngx-datatable";
7
- import { finalize } from 'rxjs/operators';
8
- import { CreateOrUpdateSitesInputBase } from './create-or-update-sites-input-base';
9
- import { EXTENSIONS_IDENTIFIER } from '@abp/ng.theme.shared/extensions';
10
- import { ECmsComponent } from '../../../enums';
11
- import { CmsApiService } from '../../../services/cms-api.service';
12
- import { Observable } from 'rxjs';
13
-
14
- @Component({
15
- selector: 'cms-sites',
16
- templateUrl: './sites.component.html',
17
- styleUrls: ['./sites.component.scss'],
18
- providers: [
19
- ListService,
20
- { provide: LIST_QUERY_DEBOUNCE_TIME, useValue: 500 },
21
- {
22
- provide: EXTENSIONS_IDENTIFIER,
23
- useValue: ECmsComponent.Sites,
24
- },
25
- ]
26
- })
27
- export class SitesComponent {
28
- // constructor(
29
- // public readonly list: ListService,
30
- // // private _SiteAdminService: SiteAdminService,
31
- // private toaster: ToasterService,
32
- // private confirmation: ConfirmationService,
33
- // private fb: FormBuilder,
34
- // private configState: ConfigStateService,
35
- // private _LocalizationService: LocalizationService,
36
- // private _CmsApiService: CmsApiService,
37
- // ) {}
38
- // /**创建站点模态框状态 */
39
- // createSitesOpen: boolean = false
40
- // /**用于确定模态的繁忙状态是否为真 */
41
- // modalBusy: boolean = false
42
- // /**创建站点表单 */
43
- // createOrEditForm: FormGroup | undefined;
44
- // get languagesInput() {
45
- // return this.createOrEditForm.get('languages').value
46
- // }
47
- // /**语言列表 */
48
- // languages: any[]
49
- // /**站点给定的表单值 */
50
- // selected: any
51
- // /**表单控件模板-动态赋值表单控件 */
52
- // @ViewChild('createModalSubmit', { static: false }) createModalSubmit: ElementRef;
53
- // ColumnMode = ColumnMode;
54
- // data: PagedResultDto<SiteDto> = {
55
- // items: [],
56
- // totalCount: 0,
57
- // };
58
- // filters = {} as GetSitesInput;
59
- // ngOnInit(): void {
60
- // this.hookToQuery()
61
- // }
62
- // hookToQuery() {
63
- // const getData = (query: ABP.PageQueryParams) => this._SiteAdminService.getList({
64
- // ...query,
65
- // ...this.filters,
66
- // });
67
- // const setData = (list: PagedResultDto<SiteDto>) => (this.data = list);
68
- // this.list.hookToQuery(getData).subscribe(setData);
69
- // }
70
- // /**删除字段 */
71
- // deletefield(row: any) {
72
- // this.confirmation.warn(
73
- // row.displayName,
74
- // this._LocalizationService.instant(`AbpUi::ItemWillBeDeletedMessage`),
75
- // ).subscribe((status: Confirmation.Status) => {
76
- // if (status == 'confirm') {
77
- // this._SiteAdminService.delete(row.id).pipe(finalize(() => {
78
- // })).subscribe(res => {
79
- // this.toaster.success(this._LocalizationService.instant(`AbpUi::SuccessfullyDeleted`));
80
- // this.list.get()
81
- // })
82
- // }
83
- // });
84
- // }
85
- // /**创建站点模态框状态改变 */
86
- // createGroupVisibleChange(event) {
87
- // if (!event) {
88
- // this.selected = ''
89
- // return
90
- // }
91
- // }
92
- // /**选择语言改变 */
93
- // languagesChange(event) {
94
- // let checked = event.target.checked
95
- // let value = event.target.value
96
- // this.languages.forEach(el => {
97
- // el.ischecked = el.cultureName === value ? checked : el.ischecked;
98
- // })
99
- // this.setFromLangguages()
100
- // }
101
- // /**设置默认语言 */
102
- // setDefault(items) {
103
- // this.languages.forEach(el => {
104
- // el.isDefault = el.cultureName === items.cultureName;
105
- // })
106
- // this.setFromLangguages()
107
- // }
108
- // /**设置表单中的语言 */
109
- // setFromLangguages() {
110
- // let languagesSelect = this.languages.filter(el => el.ischecked == true)
111
- // this.createOrEditForm.patchValue({
112
- // languages: languagesSelect
113
- // })
114
- // if (languagesSelect.length == 0) {
115
- // this.languages.forEach(el => {
116
- // el.isDefault = false
117
- // })
118
- // }
119
- // }
120
- // /**表单保存提交 */
121
- // createOrEditSave() {
122
- // if (!this.createOrEditForm.valid) return
123
- // if (this.selected) {
124
- // return this.EditSave()
125
- // }
126
- // this.createSave()
127
- // }
128
- // /**创建站点保存 */
129
- // createSave() {
130
- // let input = this.createOrEditForm.value
131
- // this.modalBusy = true
132
- // if (!this.createOrEditForm.valid) return
133
- // this._SiteAdminService.create(input).pipe(finalize(() => {
134
- // this.modalBusy = false
135
- // this.createSitesOpen = false
136
- // })).subscribe(res => {
137
- // this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
138
- // this.list.get()
139
- // })
140
- // }
141
- // /**编辑站点保存 */
142
- // EditSave() {
143
- // let input = this.createOrEditForm.value
144
- // this.modalBusy = true
145
- // this._SiteAdminService.update(this.selected.id, input).pipe(finalize(() => {
146
- // this.modalBusy = false
147
- // this.createSitesOpen = false
148
- // })).subscribe(res => {
149
- // this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
150
- // this.list.get()
151
- // })
152
- // }
153
- // /**创建站点按钮 */
154
- // createSitesBtn() {
155
- // this.createSitesOpen = true
156
- // this.createOrEditForm = this.fb.group(new CreateOrUpdateSitesInputBase())
157
- // this.setAsyncValidatorsFn()
158
- // this.languages = this.configState.getDeep('localization.languages')
159
- // this.languages.forEach((el, index) => {
160
- // el.isDefault = index === 0
161
- // el.ischecked = index === 0
162
- // })
163
- // this.setFromLangguages()
164
- // }
165
- // /**编辑站点按钮 */
166
- // EditSitesBtn(rows) {
167
- // this.createSitesOpen = true
168
- // this.languages = this.configState.getDeep('localization.languages')
169
- // this._SiteAdminService.get(rows.id).subscribe(res => {
170
- // this.selected = rows
171
- // this.createOrEditForm = this.fb.group(new CreateOrUpdateSitesInputBase())
172
- // this.createOrEditForm.patchValue(rows)
173
- // this.setAsyncValidatorsFn()
174
- // // 更新语言和默认状态
175
- // this.updateLanguages(res.languages);
176
- // // 设置表单语言
177
- // this.setFromLangguages()
178
- // })
179
- // }
180
- // /**设置字段控件异步验证 */
181
- // setAsyncValidatorsFn() {
182
- // this.createOrEditForm.setControl('name', new FormControl(this.nameInput.value || '', {
183
- // validators: Validators.required,
184
- // asyncValidators: this.nameRepetitionAsyncValidator(),
185
- // updateOn: 'blur'
186
- // }))
187
- // }
188
- // /**更新语言和默认状态 */
189
- // updateLanguages(siteLanguages) {
190
- // this.languages.forEach(language => {
191
- // const siteLanguage = siteLanguages.find(sl => sl.cultureName === language.cultureName);
192
- // if (siteLanguage) {
193
- // language.ischecked = true;
194
- // language.isDefault = siteLanguage.isDefault;
195
- // }
196
- // });
197
- // }
198
- // get nameInput() {
199
- // return this.createOrEditForm.get('name')
200
- // }
201
- // get hostInput() {
202
- // return this.createOrEditForm.get('host')
203
- // }
204
- // /**字段标签input失去标点生成字段名字 */
205
- // disPlayNameInputBlur(event) {
206
- // let value = event.target.value
207
- // let pinyin = this._CmsApiService.chineseToPinyin(value)
208
- // let nameInput = this.nameInput
209
- // if (nameInput.value) return
210
- // nameInput.patchValue(pinyin)
211
- // }
212
- // /**name定义自定义异步验证 */
213
- // nameRepetitionAsyncValidator() {
214
- // return (ctrl: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => {
215
- // return new Promise(resolve => {
216
- // let subslug = this.createOrEditForm?.get('name').value
217
- // if (subslug == this.selected?.name) {
218
- // resolve(null);
219
- // return
220
- // }
221
- // this._SiteAdminService.nameExists(subslug).subscribe(res => {
222
- // if (res) {
223
- // resolve({ repetition: this._LocalizationService.instant(`Cms::SiteName{0}AlreadyExist`, ctrl.value) });
224
- // } else {
225
- // resolve(null);
226
- // }
227
- // })
228
- // });
229
- // };
230
- // }
231
- // /**host定义自定义异步验证 */
232
- // hostRepetitionAsyncValidator() {
233
- // return (ctrl: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => {
234
- // return new Promise(resolve => {
235
- // let subslug = this.createOrEditForm?.get('host').value
236
- // if (subslug == this.selected?.host || subslug == 'https://') {
237
- // resolve(null);
238
- // return
239
- // }
240
- // this._SiteAdminService.hostExists(subslug).subscribe(res => {
241
- // if (res) {
242
- // resolve({ repetition: this._LocalizationService.instant(`Cms::SiteHost{0}AlreadyExist`, ctrl.value) });
243
- // } else {
244
- // resolve(null);
245
- // }
246
- // })
247
- // });
248
- // };
249
- // }
250
- }
@@ -1,36 +0,0 @@
1
- <div class="mb-2">
2
- <label class="form-label">{{'Cms::Sites' | abpLocalization}}</label>
3
- <select class="form-select col-auto" [(ngModel)]="siteId" (change)="siteIdChange()">
4
- <ng-container *ngFor="let item of siteList">
5
- <option [value]="item.id">{{item.displayName}}</option>
6
- </ng-container>
7
- </select>
8
- </div>
9
- <form [formGroup]="_Entity">
10
- <div formGroupName="formConfiguration">
11
-
12
- <div class="mb-2">
13
- <label class="form-label">{{'Cms::Sections' | abpLocalization}}</label>
14
- <select class="form-select col-auto" formControlName="Entry.SectionId">
15
- <ng-container *ngFor="let item of SiteOfSectionList">
16
- <option [value]="item.id">{{item.displayName}}</option>
17
- </ng-container>
18
- </select>
19
- </div>
20
-
21
- <div class="mb-2">
22
- <div class="form-check form-check-inline">
23
- <input class="form-check-input" type="checkbox" formControlName="Entry.Multiple" id="Multiple">
24
- <label class="form-check-label" for="Multiple">
25
- {{'Cms::Multiple' | abpLocalization}}
26
- </label>
27
- </div>
28
- </div>
29
- <div class="mb-2">
30
- <label class="form-label">{{'Cms::Placeholder' | abpLocalization}}</label>
31
- <input type="text" class="form-control" formControlName="Entry.Placeholder">
32
- </div>
33
- <button type="submit" (abpInit)="submitclick?.nativeElement?.click()" style="display: none;"
34
- #submitclick></button>
35
- </div>
36
- </form>
@@ -1,21 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { EntryConfigComponent } from './entry-config.component';
4
-
5
- describe('EntryConfigComponent', () => {
6
- let component: EntryConfigComponent;
7
- let fixture: ComponentFixture<EntryConfigComponent>;
8
-
9
- beforeEach(() => {
10
- TestBed.configureTestingModule({
11
- declarations: [EntryConfigComponent]
12
- });
13
- fixture = TestBed.createComponent(EntryConfigComponent);
14
- component = fixture.componentInstance;
15
- fixture.detectChanges();
16
- });
17
-
18
- it('should create', () => {
19
- expect(component).toBeTruthy();
20
- });
21
- });
@@ -1,115 +0,0 @@
1
- import { AfterContentInit, Component, ElementRef, Input, ViewChild } from '@angular/core';
2
- import { FormBuilder, FormControl, FormGroup} from '@angular/forms';
3
- import { EntryConfig } from './entry-config';
4
- // import { SiteAdminService } from '../../../proxy/admin/sites';
5
- import { SectionAdminService } from '../../../proxy/admin/sections';
6
- @Component({
7
- selector: 'cms-entry-config',
8
- templateUrl: './entry-config.component.html',
9
- styleUrls: ['./entry-config.component.scss']
10
- })
11
- export class EntryConfigComponent implements AfterContentInit{
12
- constructor(
13
- private fb: FormBuilder,
14
- // private _SiteAdminService: SiteAdminService,
15
- private _SectionAdminService: SectionAdminService,
16
- ) {
17
- }
18
- /**表单控件类型 */
19
- _type: any
20
- @Input()
21
- public set type(v: any) {
22
- if (v == this._type) return
23
-
24
- this._type = v
25
- }
26
- /**表单实体 */
27
- _Entity: FormGroup | undefined
28
- @Input()
29
- public set Entity(v: FormGroup) {
30
- this._Entity = v;
31
- }
32
- /**选择的表单信息 */
33
- _selected: any
34
- @Input()
35
- public set selected(v: any) {
36
- this._selected = v
37
- }
38
- /**语言 */
39
- _culture: any
40
- @Input()
41
- public set culture(v: any) {
42
- this._culture = v
43
- }
44
- get formConfiguration() {
45
- return this._Entity.get('formConfiguration') as FormGroup
46
- }
47
- @ViewChild('submitclick', { static: true }) submitclick: ElementRef;
48
-
49
- /**站点列表 */
50
- siteList: any[any] = []
51
-
52
- /**选择的站点id */
53
- // siteId: string = ''
54
- siteId: any = new FormControl('')
55
- /**站点下的版块 */
56
- SiteOfSectionList: any[any] = []
57
-
58
- ngAfterContentInit(): void {
59
- //Called after ngOnInit when the component's or directive's content has been initialized.
60
- //Add 'implements AfterContentInit' to the class.
61
- this.dataLoaded(2)
62
- }
63
-
64
- async dataLoaded(val) {
65
- if (this._Entity && this._type) {
66
- await this.AfterInit()
67
- this.submitclick.nativeElement.click();
68
- }
69
- }
70
-
71
- AfterInit() {
72
- return new Promise(async (resolve, rejects) => {
73
- this._Entity.setControl('formConfiguration', this.fb.group(new EntryConfig()))
74
- // await this.getsiteList()
75
- await this.getSiteOfSectionList()
76
- if (this._selected) {
77
- this.formConfiguration.patchValue({
78
- ...this._selected.formConfiguration
79
- })
80
- }
81
- resolve(true)
82
- })
83
- }
84
-
85
- /**获取站点列表 */
86
- // getsiteList() {
87
- // return new Promise((resolve, rejects) => {
88
- // this._SiteAdminService.getList({}).subscribe(res => {
89
- // this.siteList = res.items
90
- // this.siteId = res.items[0]?.id || ''
91
- // resolve(res.items)
92
- // })
93
- // })
94
- // }
95
- /**获取站点下的版块 */
96
- getSiteOfSectionList() {
97
- return new Promise((resolve, rejects) => {
98
- this._SectionAdminService.getList({
99
- maxResultCount: 1000,
100
- // siteId: this.siteId
101
- }).subscribe(res => {
102
- this.SiteOfSectionList = res.items
103
- this.formConfiguration.patchValue({
104
- 'Entry.SectionId': res.items[0]?.id || ''
105
- })
106
- resolve(res.items)
107
- })
108
- })
109
- }
110
-
111
- /**切换站点 */
112
- async siteIdChange() {
113
- await this.getSiteOfSectionList()
114
- }
115
- }
@@ -1,24 +0,0 @@
1
- import { FormControl, Validators } from "@angular/forms";
2
-
3
- export class EntryConfig {
4
-
5
-
6
- /**多选 */
7
- 'Entry.Multiple': any = [false, []];
8
- /**占位符 */
9
- 'Entry.Placeholder': any = ['', []];
10
- /**版块id */
11
- 'Entry.SectionId': any = ['', []];
12
-
13
- constructor(data?: EntryConfig) {
14
- if (data) {
15
- for (const key in data) {
16
- if (data.hasOwnProperty(key)) {
17
- this[key] = data[key];
18
- }
19
- }
20
- }
21
-
22
-
23
- }
24
- }
@@ -1,26 +0,0 @@
1
- <form [formGroup]="_entity">
2
- <div [formGroupName]="_parentFiledName" class="entry-control-page">
3
- <div class="mb-2">
4
- <label class="form-label" *ngIf="_fields.displayName">{{ _fields.displayName }}</label>
5
- <ng-container *ngIf="_fields.field.formConfiguration['Entry.Multiple']; else elseTemplate">
6
- <div class="form-select">
7
- <nz-select [nzMaxTagCount]="5" (nzOnSearch)="SelectChange($event)" nzShowSearch nzMode="multiple" [nzPlaceHolder]="_fields.field.formConfiguration['Entry.Placeholder']"
8
- formControlName="{{_fields.field.name}}">
9
- <nz-option *ngFor="let item of listOfOption" [nzLabel]="item.title" [nzValue]="item.id"></nz-option>
10
- </nz-select>
11
- </div>
12
- </ng-container>
13
- <ng-template #elseTemplate>
14
- <div class="form-select">
15
- <nz-select nzShowSearch (nzOnSearch)="SelectChange($event)" [nzMaxMultipleCount]="1" nzMode="multiple" [nzPlaceHolder]="_fields.field.formConfiguration['Entry.Placeholder']"
16
- formControlName="{{_fields.field.name}}">
17
- <nz-option *ngFor="let item of listOfOption" [nzLabel]="item.title" [nzValue]="item.id"></nz-option>
18
- </nz-select>
19
- </div>
20
- </ng-template>
21
-
22
- <div class="form-text" *ngIf="_fields.field.description">{{_fields.field.description}}</div>
23
- </div>
24
- </div>
25
- <button type="submit" style="display: none;" #submitclick></button>
26
- </form>
@@ -1 +0,0 @@
1
- ::ng-deep .entry-control-page{.form-select{padding:0}nz-select{width:100%;.ant-select-selector{background:transparent!important;border:none!important;padding:.275rem 1.25rem!important;box-shadow:none!important;height:auto!important}.anticon-search,.anticon-down{display:none}}}
@@ -1,21 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { EntryControlComponent } from './entry-control.component';
4
-
5
- describe('EntryControlComponent', () => {
6
- let component: EntryControlComponent;
7
- let fixture: ComponentFixture<EntryControlComponent>;
8
-
9
- beforeEach(() => {
10
- TestBed.configureTestingModule({
11
- declarations: [EntryControlComponent]
12
- });
13
- fixture = TestBed.createComponent(EntryControlComponent);
14
- component = fixture.componentInstance;
15
- fixture.detectChanges();
16
- });
17
-
18
- it('should create', () => {
19
- expect(component).toBeTruthy();
20
- });
21
- });
@@ -1,109 +0,0 @@
1
- import { Component, ElementRef, Input, ViewChild, inject } from '@angular/core';
2
- import { FormBuilder, FormGroup, Validators } from '@angular/forms';
3
- import { EntryAdminService } from '../../../proxy/admin/entries';
4
- import { EntryStatus } from '../../../proxy/entries/entry-status.enum';
5
-
6
-
7
- @Component({
8
- selector: 'cms-entry-control',
9
- templateUrl: './entry-control.component.html',
10
- styleUrls: ['./entry-control.component.scss']
11
- })
12
- export class EntryControlComponent {
13
-
14
-
15
- constructor(
16
- ) {
17
- }
18
- private fb=inject(FormBuilder)
19
- private _EntryAdminService=inject(EntryAdminService)
20
-
21
- /**表单实体 */
22
- _entity: FormGroup | undefined
23
- @Input()
24
- public set entity(v: any) {
25
- this._entity = v;
26
-
27
- if (v) this.dataLoaded()
28
- }
29
-
30
- /**字段配置列表 */
31
- _fields: any = ''
32
- @Input()
33
- public set fields(v: any) {
34
- this._fields = v;
35
- if (v) this.dataLoaded()
36
- }
37
-
38
- /**父级字段名称,用于为表单设置控件赋值 */
39
- _parentFiledName: any
40
- @Input()
41
- public set parentFiledName(v: any) {
42
- this._parentFiledName = v;
43
- if (v) this.dataLoaded()
44
- }
45
- /**父级字段名称,用于为表单设置控件赋值 */
46
- _selected: any
47
- @Input()
48
- public set selected(v: any) {
49
- this._selected = v || [];
50
- if (v) this.dataLoaded()
51
- }
52
- /**语言 */
53
- _culture: any
54
- @Input()
55
- public set culture(v: any) {
56
- if (v) {
57
- this._culture = v ;
58
- this.dataLoaded()
59
- }
60
- }
61
- @ViewChild('submitclick', { static: true }) submitclick: ElementRef;
62
-
63
- extraProperties: FormGroup | undefined
64
-
65
- /** */
66
- listOfOption: any[] = [];
67
- async dataLoaded() {
68
- if (this._fields && this._entity && this._parentFiledName&&this._culture) {
69
- await this.AfterInit()
70
- await this.getEntryAssignList()
71
- this.submitclick.nativeElement.click();
72
- }
73
- }
74
-
75
- AfterInit() {
76
- return new Promise((resolve, rejects) => {
77
- let ValidatorsArray = []
78
- if (this._fields.required) {
79
- ValidatorsArray.push(Validators.required)
80
- }
81
- let newControl = this.fb.control(this._selected, ValidatorsArray)
82
- let extraProperties = this._entity.get(this._parentFiledName) as FormGroup
83
- extraProperties.setControl(this._fields.field.name, newControl)
84
- resolve(true)
85
- })
86
- }
87
-
88
- /**获取对应的条目 */
89
- getEntryAssignList(filter = '') {
90
- return new Promise((resolve, rejects) => {
91
- this._EntryAdminService.getList({
92
- culture: this._culture,
93
- sectionId: this._fields.field.formConfiguration['Entry.SectionId'],
94
- skipCount: 0,
95
- maxResultCount: 30,
96
- status: EntryStatus.Published,
97
- filter: filter
98
- }).subscribe(res => {
99
- this.listOfOption = res.items
100
- resolve(true)
101
- })
102
- })
103
- }
104
-
105
- /** */
106
- async SelectChange(event) {
107
- await this.getEntryAssignList(event)
108
- }
109
- }
@@ -1,3 +0,0 @@
1
- export * from './entry-config'
2
- export * from './entry-config.component'
3
- export * from './entry-control.component'
@@ -1,27 +0,0 @@
1
- import { EntryConfigComponent, EntryControlComponent } from "./entry";
2
- import { MatrixConfigComponent } from "./matrix/matrix-config.component";
3
- import { MatrixControlComponent } from "./matrix/matrix-control.component";
4
- import { TableConfigComponent, TableControlComponent } from "./table";
5
- /**
6
- * 表单控件分组-包含配置,控件,显示的数组
7
- */
8
- export const FieldControlGroup: any[] = [
9
- {
10
- displayName: '表格',
11
- name: 'Table',
12
- fieldConfigComponent: TableConfigComponent,
13
- fieldComponent: TableControlComponent,
14
- },
15
- {
16
- displayName: '矩阵',
17
- name: 'Matrix',
18
- fieldConfigComponent: MatrixConfigComponent,
19
- fieldComponent: MatrixControlComponent,
20
- },
21
- {
22
- displayName: '条目',
23
- name: 'Entry',
24
- fieldConfigComponent: EntryConfigComponent,
25
- fieldComponent: EntryControlComponent,
26
- },
27
- ];
@@ -1,4 +0,0 @@
1
- export * from './form-control-group'
2
- export * from './entry'
3
- export * from './matrix'
4
- export * from './table'
@@ -1,3 +0,0 @@
1
- export * from './matrix-config'
2
- export * from './matrix-control.component'
3
- export * from './matrix-config.component'