@dignite-ng/expand.cms 0.0.20 → 0.0.21

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 (385) 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 +8 -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 +8 -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 +64 -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 +101 -0
  17. package/esm2022/lib/cms.module.mjs +156 -0
  18. package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +285 -0
  19. package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +32 -0
  20. package/esm2022/lib/components/admin/entries/create.component.mjs +107 -0
  21. package/esm2022/lib/components/admin/entries/edit.component.mjs +110 -0
  22. package/esm2022/lib/components/admin/entries/entries.component.mjs +212 -0
  23. package/esm2022/lib/components/admin/entries/index.mjs +5 -0
  24. package/esm2022/lib/components/admin/fields/create-field.component.mjs +82 -0
  25. package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +121 -0
  26. package/esm2022/lib/components/admin/fields/create-or-update-field-input-base.mjs +25 -0
  27. package/esm2022/lib/components/admin/fields/edit-field.component.mjs +110 -0
  28. package/esm2022/lib/components/admin/fields/field-group.component.mjs +124 -0
  29. package/esm2022/lib/components/admin/fields/fields.component.mjs +119 -0
  30. package/esm2022/lib/components/admin/fields/index.mjs +7 -0
  31. package/esm2022/lib/components/admin/index.mjs +5 -0
  32. package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +27 -0
  33. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +71 -0
  34. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +418 -0
  35. package/esm2022/lib/components/admin/sections/entry-types/index.mjs +3 -0
  36. package/esm2022/lib/components/admin/sections/index.mjs +4 -0
  37. package/esm2022/lib/components/admin/sections/sections.component.mjs +334 -0
  38. package/esm2022/lib/components/admin/sites/create-or-update-sites-input-base.mjs +23 -0
  39. package/esm2022/lib/components/admin/sites/index.mjs +3 -0
  40. package/esm2022/lib/components/admin/sites/sites.component.mjs +285 -0
  41. package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +125 -0
  42. package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +18 -0
  43. package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +115 -0
  44. package/esm2022/lib/components/dynamic-form/entry/index.mjs +4 -0
  45. package/esm2022/lib/components/dynamic-form/form-control-group.mjs +31 -0
  46. package/esm2022/lib/components/dynamic-form/index.mjs +5 -0
  47. package/esm2022/lib/components/dynamic-form/matrix/index.mjs +4 -0
  48. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +229 -0
  49. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +50 -0
  50. package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +111 -0
  51. package/esm2022/lib/components/dynamic-form/table/index.mjs +4 -0
  52. package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +174 -0
  53. package/esm2022/lib/components/dynamic-form/table/table-config.mjs +38 -0
  54. package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +114 -0
  55. package/esm2022/lib/components/index.mjs +3 -0
  56. package/esm2022/lib/constants/index.mjs +2 -0
  57. package/esm2022/lib/constants/styles.mjs +32 -0
  58. package/esm2022/lib/enums/ecms-component.mjs +13 -0
  59. package/esm2022/lib/enums/index.mjs +2 -0
  60. package/esm2022/lib/proxy/admin/dynamic-forms/form-admin.service.mjs +24 -0
  61. package/esm2022/lib/proxy/admin/dynamic-forms/index.mjs +3 -0
  62. package/esm2022/lib/proxy/admin/dynamic-forms/models.mjs +2 -0
  63. package/esm2022/lib/proxy/admin/entries/entry-admin.service.mjs +67 -0
  64. package/esm2022/lib/proxy/admin/entries/index.mjs +3 -0
  65. package/esm2022/lib/proxy/admin/entries/models.mjs +2 -0
  66. package/esm2022/lib/proxy/admin/fields/field-admin.service.mjs +47 -0
  67. package/esm2022/lib/proxy/admin/fields/field-group-admin.service.mjs +43 -0
  68. package/esm2022/lib/proxy/admin/fields/index.mjs +4 -0
  69. package/esm2022/lib/proxy/admin/fields/models.mjs +2 -0
  70. package/esm2022/lib/proxy/admin/index.mjs +7 -0
  71. package/esm2022/lib/proxy/admin/sections/entry-type-admin.service.mjs +43 -0
  72. package/esm2022/lib/proxy/admin/sections/index.mjs +4 -0
  73. package/esm2022/lib/proxy/admin/sections/models.mjs +2 -0
  74. package/esm2022/lib/proxy/admin/sections/section-admin.service.mjs +53 -0
  75. package/esm2022/lib/proxy/admin/sites/index.mjs +3 -0
  76. package/esm2022/lib/proxy/admin/sites/models.mjs +2 -0
  77. package/esm2022/lib/proxy/admin/sites/site-admin.service.mjs +51 -0
  78. package/esm2022/lib/proxy/dignite/abp/data/index.mjs +2 -0
  79. package/esm2022/lib/proxy/dignite/abp/data/models.mjs +2 -0
  80. package/esm2022/lib/proxy/dignite/abp/index.mjs +3 -0
  81. package/esm2022/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.mjs +48 -0
  82. package/esm2022/lib/proxy/dignite/file-explorer/directories/index.mjs +3 -0
  83. package/esm2022/lib/proxy/dignite/file-explorer/directories/models.mjs +2 -0
  84. package/esm2022/lib/proxy/dignite/file-explorer/files/file-descriptor.service.mjs +60 -0
  85. package/esm2022/lib/proxy/dignite/file-explorer/files/index.mjs +3 -0
  86. package/esm2022/lib/proxy/dignite/file-explorer/files/models.mjs +2 -0
  87. package/esm2022/lib/proxy/dignite/file-explorer/index.mjs +4 -0
  88. package/esm2022/lib/proxy/dignite/index.mjs +4 -0
  89. package/esm2022/lib/proxy/entries/entry-status.enum.mjs +8 -0
  90. package/esm2022/lib/proxy/entries/index.mjs +2 -0
  91. package/esm2022/lib/proxy/fields/index.mjs +2 -0
  92. package/esm2022/lib/proxy/fields/models.mjs +2 -0
  93. package/esm2022/lib/proxy/index.mjs +10 -0
  94. package/esm2022/lib/proxy/microsoft/asp-net-core/index.mjs +3 -0
  95. package/esm2022/lib/proxy/microsoft/asp-net-core/mvc/index.mjs +2 -0
  96. package/esm2022/lib/proxy/microsoft/asp-net-core/mvc/models.mjs +2 -0
  97. package/esm2022/lib/proxy/microsoft/extensions/index.mjs +3 -0
  98. package/esm2022/lib/proxy/microsoft/extensions/primitives/index.mjs +2 -0
  99. package/esm2022/lib/proxy/microsoft/extensions/primitives/models.mjs +2 -0
  100. package/esm2022/lib/proxy/microsoft/index.mjs +5 -0
  101. package/esm2022/lib/proxy/microsoft/net/http/headers/index.mjs +2 -0
  102. package/esm2022/lib/proxy/microsoft/net/http/headers/models.mjs +2 -0
  103. package/esm2022/lib/proxy/microsoft/net/http/index.mjs +3 -0
  104. package/esm2022/lib/proxy/microsoft/net/index.mjs +3 -0
  105. package/esm2022/lib/proxy/sections/index.mjs +3 -0
  106. package/esm2022/lib/proxy/sections/models.mjs +2 -0
  107. package/esm2022/lib/proxy/sections/section-type.enum.mjs +9 -0
  108. package/esm2022/lib/proxy/sites/index.mjs +2 -0
  109. package/esm2022/lib/proxy/sites/models.mjs +2 -0
  110. package/esm2022/lib/proxy/volo/abp/content/index.mjs +2 -0
  111. package/esm2022/lib/proxy/volo/abp/content/models.mjs +2 -0
  112. package/esm2022/lib/proxy/volo/abp/index.mjs +3 -0
  113. package/esm2022/lib/proxy/volo/cms-kit/index.mjs +3 -0
  114. package/esm2022/lib/proxy/volo/cms-kit/users/index.mjs +2 -0
  115. package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +2 -0
  116. package/esm2022/lib/proxy/volo/index.mjs +4 -0
  117. package/esm2022/lib/services/appent-content.mjs +15 -0
  118. package/esm2022/lib/services/cms-api.service.mjs +80 -0
  119. package/esm2022/lib/services/cms.service.mjs +23 -0
  120. package/esm2022/lib/services/field-abstracts.service.mjs +45 -0
  121. package/esm2022/lib/services/index.mjs +5 -0
  122. package/esm2022/lib/services/simple-reuse-strategy.mjs +43 -0
  123. package/esm2022/lib/services/update-list.service.mjs +19 -0
  124. package/esm2022/lib/toolbar/index.mjs +3 -0
  125. package/esm2022/lib/toolbar/toolbar-btn-default-action.mjs +160 -0
  126. package/esm2022/lib/toolbar/toolbar-config.mjs +81 -0
  127. package/esm2022/public-api.mjs +12 -0
  128. package/fesm2022/dignite-ng-expand.cms-config.mjs +87 -0
  129. package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -0
  130. package/fesm2022/dignite-ng-expand.cms.mjs +4516 -0
  131. package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -0
  132. package/index.d.ts +5 -0
  133. package/lib/cms-routing.module.d.ts +7 -0
  134. package/lib/cms.module.d.ts +40 -0
  135. package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +91 -0
  136. package/lib/components/admin/entries/create-or-update-entry-input-base.d.ts +23 -0
  137. package/lib/components/admin/entries/create.component.d.ts +40 -0
  138. package/lib/components/admin/entries/edit.component.d.ts +42 -0
  139. package/lib/components/admin/entries/entries.component.d.ts +66 -0
  140. package/lib/components/admin/entries/index.d.ts +4 -0
  141. package/lib/components/admin/fields/create-field.component.d.ts +31 -0
  142. package/lib/components/admin/fields/create-or-edit-field.component.d.ts +37 -0
  143. package/lib/components/admin/fields/create-or-update-field-input-base.d.ts +16 -0
  144. package/lib/components/admin/fields/edit-field.component.d.ts +40 -0
  145. package/lib/components/admin/fields/field-group.component.d.ts +51 -0
  146. package/lib/components/admin/fields/fields.component.d.ts +37 -0
  147. package/lib/components/admin/fields/index.d.ts +6 -0
  148. package/lib/components/admin/index.d.ts +4 -0
  149. package/lib/components/admin/sections/create-or-update-sections-input-base.d.ts +17 -0
  150. package/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.d.ts +38 -0
  151. package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +132 -0
  152. package/lib/components/admin/sections/entry-types/index.d.ts +2 -0
  153. package/lib/components/admin/sections/index.d.ts +3 -0
  154. package/lib/components/admin/sections/sections.component.d.ts +95 -0
  155. package/lib/components/admin/sites/create-or-update-sites-input-base.d.ts +12 -0
  156. package/lib/components/admin/sites/index.d.ts +2 -0
  157. package/lib/components/admin/sites/sites.component.d.ts +72 -0
  158. package/lib/components/dynamic-form/entry/entry-config.component.d.ts +42 -0
  159. package/lib/components/dynamic-form/entry/entry-config.d.ts +9 -0
  160. package/lib/components/dynamic-form/entry/entry-control.component.d.ts +35 -0
  161. package/lib/components/dynamic-form/entry/index.d.ts +3 -0
  162. package/lib/components/dynamic-form/form-control-group.d.ts +4 -0
  163. package/lib/components/dynamic-form/index.d.ts +4 -0
  164. package/lib/components/dynamic-form/matrix/index.d.ts +3 -0
  165. package/lib/components/dynamic-form/matrix/matrix-config.component.d.ts +73 -0
  166. package/lib/components/dynamic-form/matrix/matrix-config.d.ts +24 -0
  167. package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +39 -0
  168. package/lib/components/dynamic-form/table/index.d.ts +3 -0
  169. package/lib/components/dynamic-form/table/table-config.component.d.ts +58 -0
  170. package/lib/components/dynamic-form/table/table-config.d.ts +18 -0
  171. package/lib/components/dynamic-form/table/table-control.component.d.ts +36 -0
  172. package/lib/components/index.d.ts +2 -0
  173. package/lib/constants/index.d.ts +1 -0
  174. package/lib/constants/styles.d.ts +2 -0
  175. package/lib/enums/ecms-component.d.ts +11 -0
  176. package/lib/enums/index.d.ts +1 -0
  177. package/lib/proxy/admin/dynamic-forms/form-admin.service.d.ts +12 -0
  178. package/lib/proxy/admin/dynamic-forms/models.d.ts +4 -0
  179. package/lib/proxy/admin/entries/entry-admin.service.d.ts +21 -0
  180. package/lib/proxy/admin/entries/models.d.ts +65 -0
  181. package/lib/proxy/admin/fields/field-admin.service.d.ts +17 -0
  182. package/lib/proxy/admin/fields/field-group-admin.service.d.ts +16 -0
  183. package/{src/lib/proxy/admin/fields/models.ts → lib/proxy/admin/fields/models.d.ts} +34 -42
  184. package/lib/proxy/admin/sections/entry-type-admin.service.d.ts +15 -0
  185. package/{src/lib/proxy/admin/sections/models.ts → lib/proxy/admin/sections/models.d.ts} +74 -88
  186. package/lib/proxy/admin/sections/section-admin.service.d.ts +18 -0
  187. package/{src/lib/proxy/admin/sites/models.ts → lib/proxy/admin/sites/models.d.ts} +30 -36
  188. package/lib/proxy/admin/sites/site-admin.service.d.ts +18 -0
  189. package/lib/proxy/dignite/abp/data/models.d.ts +3 -0
  190. package/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.d.ts +17 -0
  191. package/{src/lib/proxy/dignite/file-explorer/directories/models.ts → lib/proxy/dignite/file-explorer/directories/models.d.ts} +29 -35
  192. package/lib/proxy/dignite/file-explorer/files/file-descriptor.service.d.ts +20 -0
  193. package/lib/proxy/dignite/file-explorer/files/models.d.ts +50 -0
  194. package/lib/proxy/entries/entry-status.enum.d.ts +5 -0
  195. package/lib/proxy/fields/models.d.ts +8 -0
  196. package/{src/lib/proxy/microsoft/asp-net-core/mvc/models.ts → lib/proxy/microsoft/asp-net-core/mvc/models.d.ts} +10 -12
  197. package/lib/proxy/microsoft/extensions/primitives/models.d.ts +8 -0
  198. package/{src/lib/proxy/microsoft/net/http/headers/models.ts → lib/proxy/microsoft/net/http/headers/models.d.ts} +6 -7
  199. package/lib/proxy/sections/models.d.ts +12 -0
  200. package/lib/proxy/sections/section-type.enum.d.ts +6 -0
  201. package/lib/proxy/sites/models.d.ts +4 -0
  202. package/lib/proxy/volo/abp/content/models.d.ts +5 -0
  203. package/{src/lib/proxy/volo/cms-kit/users/models.ts → lib/proxy/volo/cms-kit/users/models.d.ts} +7 -8
  204. package/lib/services/appent-content.d.ts +1 -0
  205. package/lib/services/cms-api.service.d.ts +20 -0
  206. package/lib/services/cms.service.d.ts +10 -0
  207. package/lib/services/field-abstracts.service.d.ts +20 -0
  208. package/lib/services/index.d.ts +4 -0
  209. package/lib/services/simple-reuse-strategy.d.ts +11 -0
  210. package/lib/services/update-list.service.d.ts +9 -0
  211. package/lib/toolbar/index.d.ts +2 -0
  212. package/lib/toolbar/toolbar-btn-default-action.d.ts +19 -0
  213. package/lib/toolbar/toolbar-config.d.ts +57 -0
  214. package/package.json +38 -19
  215. package/{src/public-api.ts → public-api.d.ts} +8 -12
  216. package/config/ng-package.json +0 -7
  217. package/config/src/cms-config.module.ts +0 -12
  218. package/config/src/enums/route-names.ts +0 -8
  219. package/config/src/providers/route.provider.ts +0 -66
  220. package/karma.conf.js +0 -44
  221. package/ng-package.json +0 -7
  222. package/src/lib/cms-routing.module.ts +0 -111
  223. package/src/lib/cms.module.ts +0 -119
  224. package/src/lib/components/admin/entries/create-or-edit-entries.component.html +0 -115
  225. package/src/lib/components/admin/entries/create-or-edit-entries.component.scss +0 -25
  226. package/src/lib/components/admin/entries/create-or-edit-entries.component.spec.ts +0 -21
  227. package/src/lib/components/admin/entries/create-or-edit-entries.component.ts +0 -287
  228. package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +0 -36
  229. package/src/lib/components/admin/entries/create.component.html +0 -13
  230. package/src/lib/components/admin/entries/create.component.scss +0 -21
  231. package/src/lib/components/admin/entries/create.component.spec.ts +0 -21
  232. package/src/lib/components/admin/entries/create.component.ts +0 -103
  233. package/src/lib/components/admin/entries/edit.component.html +0 -9
  234. package/src/lib/components/admin/entries/edit.component.scss +0 -26
  235. package/src/lib/components/admin/entries/edit.component.spec.ts +0 -21
  236. package/src/lib/components/admin/entries/edit.component.ts +0 -103
  237. package/src/lib/components/admin/entries/entries.component.html +0 -106
  238. package/src/lib/components/admin/entries/entries.component.scss +0 -80
  239. package/src/lib/components/admin/entries/entries.component.spec.ts +0 -21
  240. package/src/lib/components/admin/entries/entries.component.ts +0 -216
  241. package/src/lib/components/admin/entries/index.ts +0 -4
  242. package/src/lib/components/admin/fields/create-field.component.html +0 -12
  243. package/src/lib/components/admin/fields/create-field.component.scss +0 -10
  244. package/src/lib/components/admin/fields/create-field.component.spec.ts +0 -21
  245. package/src/lib/components/admin/fields/create-field.component.ts +0 -68
  246. package/src/lib/components/admin/fields/create-or-edit-field.component.html +0 -39
  247. package/src/lib/components/admin/fields/create-or-edit-field.component.scss +0 -0
  248. package/src/lib/components/admin/fields/create-or-edit-field.component.spec.ts +0 -21
  249. package/src/lib/components/admin/fields/create-or-edit-field.component.ts +0 -119
  250. package/src/lib/components/admin/fields/create-or-update-field-input-base.ts +0 -33
  251. package/src/lib/components/admin/fields/edit-field.component.html +0 -13
  252. package/src/lib/components/admin/fields/edit-field.component.scss +0 -0
  253. package/src/lib/components/admin/fields/edit-field.component.spec.ts +0 -21
  254. package/src/lib/components/admin/fields/edit-field.component.ts +0 -100
  255. package/src/lib/components/admin/fields/field-group.component.html +0 -69
  256. package/src/lib/components/admin/fields/field-group.component.scss +0 -0
  257. package/src/lib/components/admin/fields/field-group.component.spec.ts +0 -21
  258. package/src/lib/components/admin/fields/field-group.component.ts +0 -132
  259. package/src/lib/components/admin/fields/fields.component.html +0 -73
  260. package/src/lib/components/admin/fields/fields.component.scss +0 -11
  261. package/src/lib/components/admin/fields/fields.component.spec.ts +0 -21
  262. package/src/lib/components/admin/fields/fields.component.ts +0 -111
  263. package/src/lib/components/admin/fields/index.ts +0 -6
  264. package/src/lib/components/admin/index.ts +0 -4
  265. package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +0 -36
  266. package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts +0 -79
  267. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.html +0 -191
  268. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.scss +0 -24
  269. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.spec.ts +0 -21
  270. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.ts +0 -412
  271. package/src/lib/components/admin/sections/entry-types/index.ts +0 -2
  272. package/src/lib/components/admin/sections/index.ts +0 -3
  273. package/src/lib/components/admin/sections/sections.component.html +0 -191
  274. package/src/lib/components/admin/sections/sections.component.scss +0 -26
  275. package/src/lib/components/admin/sections/sections.component.spec.ts +0 -21
  276. package/src/lib/components/admin/sections/sections.component.ts +0 -334
  277. package/src/lib/components/admin/sites/create-or-update-sites-input-base.ts +0 -31
  278. package/src/lib/components/admin/sites/index.ts +0 -2
  279. package/src/lib/components/admin/sites/sites.component.html +0 -154
  280. package/src/lib/components/admin/sites/sites.component.scss +0 -19
  281. package/src/lib/components/admin/sites/sites.component.spec.ts +0 -21
  282. package/src/lib/components/admin/sites/sites.component.ts +0 -293
  283. package/src/lib/components/dynamic-form/entry/entry-config.component.html +0 -36
  284. package/src/lib/components/dynamic-form/entry/entry-config.component.scss +0 -0
  285. package/src/lib/components/dynamic-form/entry/entry-config.component.spec.ts +0 -21
  286. package/src/lib/components/dynamic-form/entry/entry-config.component.ts +0 -115
  287. package/src/lib/components/dynamic-form/entry/entry-config.ts +0 -24
  288. package/src/lib/components/dynamic-form/entry/entry-control.component.html +0 -26
  289. package/src/lib/components/dynamic-form/entry/entry-control.component.scss +0 -20
  290. package/src/lib/components/dynamic-form/entry/entry-control.component.spec.ts +0 -21
  291. package/src/lib/components/dynamic-form/entry/entry-control.component.ts +0 -110
  292. package/src/lib/components/dynamic-form/entry/index.ts +0 -3
  293. package/src/lib/components/dynamic-form/form-control-group.ts +0 -31
  294. package/src/lib/components/dynamic-form/index.ts +0 -4
  295. package/src/lib/components/dynamic-form/matrix/index.ts +0 -3
  296. package/src/lib/components/dynamic-form/matrix/matrix-config.component.html +0 -147
  297. package/src/lib/components/dynamic-form/matrix/matrix-config.component.scss +0 -0
  298. package/src/lib/components/dynamic-form/matrix/matrix-config.component.spec.ts +0 -21
  299. package/src/lib/components/dynamic-form/matrix/matrix-config.component.ts +0 -238
  300. package/src/lib/components/dynamic-form/matrix/matrix-config.ts +0 -63
  301. package/src/lib/components/dynamic-form/matrix/matrix-control.component.html +0 -42
  302. package/src/lib/components/dynamic-form/matrix/matrix-control.component.scss +0 -0
  303. package/src/lib/components/dynamic-form/matrix/matrix-control.component.spec.ts +0 -21
  304. package/src/lib/components/dynamic-form/matrix/matrix-control.component.ts +0 -104
  305. package/src/lib/components/dynamic-form/table/index.ts +0 -3
  306. package/src/lib/components/dynamic-form/table/table-config.component.html +0 -85
  307. package/src/lib/components/dynamic-form/table/table-config.component.scss +0 -10
  308. package/src/lib/components/dynamic-form/table/table-config.component.spec.ts +0 -21
  309. package/src/lib/components/dynamic-form/table/table-config.component.ts +0 -170
  310. package/src/lib/components/dynamic-form/table/table-config.ts +0 -45
  311. package/src/lib/components/dynamic-form/table/table-control.component.html +0 -55
  312. package/src/lib/components/dynamic-form/table/table-control.component.scss +0 -10
  313. package/src/lib/components/dynamic-form/table/table-control.component.spec.ts +0 -21
  314. package/src/lib/components/dynamic-form/table/table-control.component.ts +0 -107
  315. package/src/lib/components/index.ts +0 -2
  316. package/src/lib/constants/index.ts +0 -1
  317. package/src/lib/constants/styles.ts +0 -31
  318. package/src/lib/enums/ecms-component.ts +0 -11
  319. package/src/lib/enums/index.ts +0 -1
  320. package/src/lib/proxy/README.md +0 -17
  321. package/src/lib/proxy/admin/dynamic-forms/form-admin.service.ts +0 -21
  322. package/src/lib/proxy/admin/dynamic-forms/models.ts +0 -5
  323. package/src/lib/proxy/admin/entries/entry-admin.service.ts +0 -100
  324. package/src/lib/proxy/admin/entries/models.ts +0 -73
  325. package/src/lib/proxy/admin/fields/field-admin.service.ts +0 -64
  326. package/src/lib/proxy/admin/fields/field-group-admin.service.ts +0 -56
  327. package/src/lib/proxy/admin/sections/entry-type-admin.service.ts +0 -55
  328. package/src/lib/proxy/admin/sections/section-admin.service.ts +0 -74
  329. package/src/lib/proxy/admin/sites/site-admin.service.ts +0 -72
  330. package/src/lib/proxy/dignite/abp/data/models.ts +0 -4
  331. package/src/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.ts +0 -65
  332. package/src/lib/proxy/dignite/file-explorer/files/file-descriptor.service.ts +0 -86
  333. package/src/lib/proxy/dignite/file-explorer/files/models.ts +0 -57
  334. package/src/lib/proxy/entries/entry-status.enum.ts +0 -8
  335. package/src/lib/proxy/fields/models.ts +0 -9
  336. package/src/lib/proxy/generate-proxy.json +0 -11821
  337. package/src/lib/proxy/microsoft/extensions/primitives/models.ts +0 -9
  338. package/src/lib/proxy/sections/models.ts +0 -14
  339. package/src/lib/proxy/sections/section-type.enum.ts +0 -9
  340. package/src/lib/proxy/sites/models.ts +0 -5
  341. package/src/lib/proxy/volo/abp/content/models.ts +0 -6
  342. package/src/lib/services/appent-content.ts +0 -13
  343. package/src/lib/services/cms-api.service.ts +0 -71
  344. package/src/lib/services/cms.service.ts +0 -18
  345. package/src/lib/services/field-abstracts.service.ts +0 -41
  346. package/src/lib/services/index.ts +0 -4
  347. package/src/lib/services/simple-reuse-strategy.ts +0 -49
  348. package/src/lib/services/update-list.service.ts +0 -15
  349. package/src/lib/toolbar/index.ts +0 -2
  350. package/src/lib/toolbar/toolbar-btn-default-action.ts +0 -171
  351. package/src/lib/toolbar/toolbar-config.ts +0 -95
  352. package/src/test.ts +0 -26
  353. package/tsconfig.lib.json +0 -20
  354. package/tsconfig.lib.prod.json +0 -10
  355. package/tsconfig.spec.json +0 -17
  356. /package/{src/lib/proxy/admin/dynamic-forms/index.ts → lib/proxy/admin/dynamic-forms/index.d.ts} +0 -0
  357. /package/{src/lib/proxy/admin/entries/index.ts → lib/proxy/admin/entries/index.d.ts} +0 -0
  358. /package/{src/lib/proxy/admin/fields/index.ts → lib/proxy/admin/fields/index.d.ts} +0 -0
  359. /package/{src/lib/proxy/admin/index.ts → lib/proxy/admin/index.d.ts} +0 -0
  360. /package/{src/lib/proxy/admin/sections/index.ts → lib/proxy/admin/sections/index.d.ts} +0 -0
  361. /package/{src/lib/proxy/admin/sites/index.ts → lib/proxy/admin/sites/index.d.ts} +0 -0
  362. /package/{src/lib/proxy/dignite/abp/data/index.ts → lib/proxy/dignite/abp/data/index.d.ts} +0 -0
  363. /package/{src/lib/proxy/dignite/abp/index.ts → lib/proxy/dignite/abp/index.d.ts} +0 -0
  364. /package/{src/lib/proxy/dignite/file-explorer/directories/index.ts → lib/proxy/dignite/file-explorer/directories/index.d.ts} +0 -0
  365. /package/{src/lib/proxy/dignite/file-explorer/files/index.ts → lib/proxy/dignite/file-explorer/files/index.d.ts} +0 -0
  366. /package/{src/lib/proxy/dignite/file-explorer/index.ts → lib/proxy/dignite/file-explorer/index.d.ts} +0 -0
  367. /package/{src/lib/proxy/dignite/index.ts → lib/proxy/dignite/index.d.ts} +0 -0
  368. /package/{src/lib/proxy/entries/index.ts → lib/proxy/entries/index.d.ts} +0 -0
  369. /package/{src/lib/proxy/fields/index.ts → lib/proxy/fields/index.d.ts} +0 -0
  370. /package/{src/lib/proxy/index.ts → lib/proxy/index.d.ts} +0 -0
  371. /package/{src/lib/proxy/microsoft/asp-net-core/index.ts → lib/proxy/microsoft/asp-net-core/index.d.ts} +0 -0
  372. /package/{src/lib/proxy/microsoft/asp-net-core/mvc/index.ts → lib/proxy/microsoft/asp-net-core/mvc/index.d.ts} +0 -0
  373. /package/{src/lib/proxy/microsoft/extensions/index.ts → lib/proxy/microsoft/extensions/index.d.ts} +0 -0
  374. /package/{src/lib/proxy/microsoft/extensions/primitives/index.ts → lib/proxy/microsoft/extensions/primitives/index.d.ts} +0 -0
  375. /package/{src/lib/proxy/microsoft/index.ts → lib/proxy/microsoft/index.d.ts} +0 -0
  376. /package/{src/lib/proxy/microsoft/net/http/headers/index.ts → lib/proxy/microsoft/net/http/headers/index.d.ts} +0 -0
  377. /package/{src/lib/proxy/microsoft/net/http/index.ts → lib/proxy/microsoft/net/http/index.d.ts} +0 -0
  378. /package/{src/lib/proxy/microsoft/net/index.ts → lib/proxy/microsoft/net/index.d.ts} +0 -0
  379. /package/{src/lib/proxy/sections/index.ts → lib/proxy/sections/index.d.ts} +0 -0
  380. /package/{src/lib/proxy/sites/index.ts → lib/proxy/sites/index.d.ts} +0 -0
  381. /package/{src/lib/proxy/volo/abp/content/index.ts → lib/proxy/volo/abp/content/index.d.ts} +0 -0
  382. /package/{src/lib/proxy/volo/abp/index.ts → lib/proxy/volo/abp/index.d.ts} +0 -0
  383. /package/{src/lib/proxy/volo/cms-kit/index.ts → lib/proxy/volo/cms-kit/index.d.ts} +0 -0
  384. /package/{src/lib/proxy/volo/cms-kit/users/index.ts → lib/proxy/volo/cms-kit/users/index.d.ts} +0 -0
  385. /package/{src/lib/proxy/volo/index.ts → lib/proxy/volo/index.d.ts} +0 -0
@@ -1,154 +0,0 @@
1
- <abp-page [title]="'Cms::Sites' | abpLocalization" [toolbar]="true">
2
- <div class="sites-page">
3
- <div class="card">
4
- <div class="card-body px-2 py-sm-2 border-bottom">
5
- <div class="input-group">
6
- <input type="text" class="form-control" [(ngModel)]="filters.filter"
7
- [placeholder]="'AbpUi::Search' | abpLocalization" />
8
- <button class="btn btn-primary px-3" type="button" id="button-addon2" (click)="list.get()">
9
- <i class="fa fa-search"></i>
10
- </button>
11
- </div>
12
- </div>
13
- </div>
14
- <div class="card mb-0">
15
- <div class="card-body p-0">
16
- <div class="table-responsive table-fixed-header">
17
- <ngx-datatable class="material container-height" [rows]="data.items" [list]="list"
18
- [columnMode]="'force'" [headerHeight]="50" [footerHeight]="50" rowHeight="auto"
19
- [scrollbarV]="true" [virtualization]="false" [externalPaging]="true" [count]="data.totalCount">
20
- <ngx-datatable-column [name]="'Cms::DisplayName' | abpLocalization" prop="displayName">
21
- <ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
22
- {{ value }}
23
- </ng-template>
24
- </ngx-datatable-column>
25
- <ngx-datatable-column [name]="'Cms::Name' | abpLocalization" prop="name">
26
- <ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
27
- {{ value }}
28
- </ng-template>
29
- </ngx-datatable-column>
30
- <ngx-datatable-column [name]="'Cms::IsActive' | abpLocalization" prop="isActive">
31
- <ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
32
- <i class="fas fa-check text-success" *ngIf="value"></i>
33
- <i class="fas fa-times text-danger" *ngIf="!value"></i>
34
- </ng-template>
35
- </ngx-datatable-column>
36
- <ngx-datatable-column [name]="'Cms::Host' | abpLocalization" prop="host">
37
- <ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
38
- {{ value }}
39
- </ng-template>
40
- </ngx-datatable-column>
41
- <ngx-datatable-column [name]="'Cms::CreationTime' | abpLocalization" prop="creationTime">
42
- <ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
43
- {{ value | date : 'yyyy-MM-dd hh-mm-ss' }}
44
- </ng-template>
45
- </ngx-datatable-column>
46
- <ngx-datatable-column [sortable]="false">
47
- <ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
48
- <div ngbDropdown container="body">
49
- <button type="button" class="btn btn-outline-primary btn-sm" ngbDropdownToggle>
50
- {{'AbpUi::Actions' | abpLocalization}}
51
- </button>
52
- <div ngbDropdownMenu>
53
- <button ngbDropdownItem
54
- (click)="EditSitesBtn(row)">{{'AbpUi::Edit' | abpLocalization}}</button>
55
- <button ngbDropdownItem
56
- (click)="deletefield(row)">{{'AbpUi::Delete' | abpLocalization}}</button>
57
- </div>
58
- </div>
59
- </ng-template>
60
- </ngx-datatable-column>
61
- </ngx-datatable>
62
- </div>
63
- </div>
64
- </div>
65
-
66
-
67
- </div>
68
-
69
-
70
-
71
- </abp-page>
72
-
73
-
74
- <!-- <dignite-page [title]="'Cms::Sites' | abpLocalization" [back]="false" [class]="'sites-page'">
75
- <ng-template #pageHeader>
76
- <button type="button" class="btn btn-primary btn-sm ms-2" (click.stop)="createSitesBtn()">
77
- <i class="fa fa-plus pe-1" aria-hidden="true"></i>{{'Cms::New' | abpLocalization}}
78
- </button>
79
- </ng-template>
80
- <ng-template #pageBody>
81
-
82
- </ng-template>
83
- </dignite-page> -->
84
-
85
- <abp-modal [(visible)]="createSitesOpen" [busy]="modalBusy" (visibleChange)="createGroupVisibleChange($event)">
86
- <ng-template #abpHeader>
87
- <h3>{{selected?('AbpUi::Edit' | abpLocalization):('Cms::New' | abpLocalization)}}</h3>
88
- </ng-template>
89
- <ng-template #abpBody>
90
- <ng-template #loaderRef>
91
- <div class="text-center"><i class="fa fa-pulse fa-spinner" aria-hidden="true"></i></div>
92
- </ng-template>
93
- <ng-container *ngIf="createOrEditForm; else loaderRef">
94
- <form class="sites-modal-form" #myForm="ngForm" [formGroup]="createOrEditForm"
95
- (ngSubmit)="createOrEditSave()">
96
- <button type="submit" #createModalSubmit style="display: none"></button>
97
- <div class="mb-2">
98
- <label class="form-label">{{'Cms::DisplayName' | abpLocalization}}</label>
99
- <input type="text" class="form-control" formControlName="displayName"
100
- (blur)="disPlayNameInputBlur($event)" />
101
- </div>
102
- <div class="mb-2">
103
- <label class="form-label">{{'Cms::Name' | abpLocalization}}</label>
104
- <input type="text" class="form-control" formControlName="name" />
105
- <div class="text-danger invalid-feedback" *ngIf="nameInput.errors?.repetition">
106
- {{nameInput.errors?.repetition}}
107
- </div>
108
- </div>
109
- <div class="mb-2">
110
- <label class="form-label">{{'Cms::Host' | abpLocalization}}</label>
111
- <input type="text" class="form-control" formControlName="host" />
112
- <div class="text-danger invalid-feedback" *ngIf="hostInput.errors?.repetition">
113
- {{hostInput.errors?.repetition}}
114
- </div>
115
- </div>
116
- <div class="mb-2">
117
- <div class="form-check form-check-inline">
118
- <input class="form-check-input" type="checkbox" value="true" formControlName="isActive"
119
- id="flexRadioDefault1" />
120
- <label class="form-check-label" for="flexRadioDefault1"> {{'Cms::IsActive' | abpLocalization}}
121
- </label>
122
- </div>
123
- </div>
124
- <div class="mb-2">
125
- <label class="form-label">{{'Cms::Languages' | abpLocalization}}</label>
126
- <ul class="list-group list-group-flush">
127
- <ng-container *ngFor="let item of languages; let i = index">
128
- <li class="list-group-item d-flex justify-content-between align-items-center">
129
- <div>
130
- <input class="form-check-input me-1" type="checkbox" [value]="item.cultureName"
131
- id="firstRadio{{ i }}" [checked]="item.ischecked"
132
- (change)="languagesChange($event);!item.ischecked" />
133
- <label class="form-check-label" for="firstRadio{{ i }}">{{ item.displayName
134
- }}</label>
135
- </div>
136
- <ng-container *ngIf="item.ischecked">
137
- <div class="text-primary" *ngIf="item.isDefault">{{'Cms::Default' | abpLocalization}}
138
- </div>
139
- <div (click.stop)="setDefault(item)" *ngIf="!item.isDefault">
140
- {{'Cms::SetDefault' | abpLocalization}}</div>
141
- </ng-container>
142
- </li>
143
- </ng-container>
144
- </ul>
145
- </div>
146
- </form>
147
- </ng-container>
148
- </ng-template>
149
- <ng-template #abpFooter>
150
- <button type="button" class="btn btn-secondary" abpClose>{{'AbpUi::Close' | abpLocalization}}</button>
151
- <abp-button iconClass="fa fa-check"
152
- (click)="createModalSubmit.nativeElement.click()">{{'AbpUi::Save' | abpLocalization}}</abp-button>
153
- </ng-template>
154
- </abp-modal>
@@ -1,19 +0,0 @@
1
- ::ng-deep.sites-page {
2
- .dignite_page{
3
- background: transparent;
4
- }
5
- .list-group-flush > .list-group-item:first-child{
6
- border-top-width:var(--bs-list-group-border-width);
7
- }
8
-
9
- .container-height{
10
- height: calc(100vh - 220px);
11
- }
12
-
13
-
14
- }
15
- ::ng-deep.sites-modal-form{
16
- .form-control{
17
- padding: 0.4rem 1.25rem;
18
- }
19
- }
@@ -1,21 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { SitesComponent } from './sites.component';
4
-
5
- describe('SitesComponent', () => {
6
- let component: SitesComponent;
7
- let fixture: ComponentFixture<SitesComponent>;
8
-
9
- beforeEach(() => {
10
- TestBed.configureTestingModule({
11
- declarations: [SitesComponent]
12
- });
13
- fixture = TestBed.createComponent(SitesComponent);
14
- component = fixture.componentInstance;
15
- fixture.detectChanges();
16
- });
17
-
18
- it('should create', () => {
19
- expect(component).toBeTruthy();
20
- });
21
- });
@@ -1,293 +0,0 @@
1
- /* eslint-disable @angular-eslint/use-lifecycle-interface */
2
- import { ABP, ConfigStateService, LIST_QUERY_DEBOUNCE_TIME, ListService, LocalizationService, PagedResultDto } from '@abp/ng.core';
3
- import { ToasterService, ConfirmationService, Confirmation } from '@abp/ng.theme.shared';
4
- import { Component, ViewChild, OnInit, ViewContainerRef, ElementRef } from '@angular/core';
5
- import { AbstractControl, FormBuilder, FormControl, FormGroup, NgForm, ValidationErrors, Validators } from '@angular/forms';
6
- import { GetSitesInput, SiteDto, SiteAdminService } from '../../../proxy/admin/sites';
7
- import { ColumnMode } from "@swimlane/ngx-datatable";
8
- import { finalize } from 'rxjs/operators';
9
- import { CreateOrUpdateSitesInputBase } from './create-or-update-sites-input-base';
10
- import { EXTENSIONS_IDENTIFIER } from '@abp/ng.theme.shared/extensions';
11
- import { ECmsComponent } from '../../../enums';
12
- import { CmsApiService } from '../../../services/cms-api.service';
13
- import { Observable } from 'rxjs';
14
-
15
- @Component({
16
- selector: 'cms-sites',
17
- templateUrl: './sites.component.html',
18
- styleUrls: ['./sites.component.scss'],
19
- providers: [
20
- // [Required]
21
- ListService,
22
- // [Optional]
23
- // Provide this token if you want a different debounce time.
24
- // Default is 300. Cannot be 0. Any value below 100 is not recommended.
25
- { provide: LIST_QUERY_DEBOUNCE_TIME, useValue: 500 },
26
- {
27
- provide: EXTENSIONS_IDENTIFIER,
28
- useValue: ECmsComponent.Sites,
29
- },
30
- ]
31
- })
32
- export class SitesComponent implements OnInit {
33
- constructor(
34
- public readonly list: ListService,
35
- private _SiteAdminService: SiteAdminService,
36
- private toaster: ToasterService,
37
- private confirmation: ConfirmationService,
38
- private fb: FormBuilder,
39
- private configState: ConfigStateService,
40
- private _LocalizationService: LocalizationService,
41
- private _CmsApiService: CmsApiService,
42
- ) {
43
- }
44
-
45
-
46
-
47
-
48
-
49
- /**创建站点模态框状态 */
50
- createSitesOpen: boolean = false
51
-
52
- /**用于确定模态的繁忙状态是否为真 */
53
- modalBusy: boolean = false
54
- /**创建站点表单 */
55
- createOrEditForm: FormGroup | undefined;
56
-
57
- get languagesInput() {
58
- return this.createOrEditForm.get('languages').value
59
- }
60
-
61
- /**语言列表 */
62
- languages: any[]
63
-
64
- /**站点给定的表单值 */
65
- selected: any
66
-
67
- /**表单控件模板-动态赋值表单控件 */
68
- @ViewChild('createModalSubmit', { static: false }) createModalSubmit: ElementRef;
69
-
70
-
71
- ColumnMode = ColumnMode;
72
- data: PagedResultDto<SiteDto> = {
73
- items: [],
74
- totalCount: 0,
75
- };
76
-
77
- filters = {} as GetSitesInput;
78
-
79
-
80
- ngOnInit(): void {
81
- this.hookToQuery()
82
- }
83
-
84
- hookToQuery() {
85
- const getData = (query: ABP.PageQueryParams) => this._SiteAdminService.getList({
86
- ...query,
87
- ...this.filters,
88
- });
89
-
90
- const setData = (list: PagedResultDto<SiteDto>) => (this.data = list);
91
- this.list.hookToQuery(getData).subscribe(setData);
92
- }
93
-
94
-
95
- /**删除字段 */
96
- deletefield(row: any) {
97
- this.confirmation.warn(
98
- row.displayName,
99
- this._LocalizationService.instant(`AbpUi::ItemWillBeDeletedMessage`),
100
- ).subscribe((status: Confirmation.Status) => {
101
- if (status == 'confirm') {
102
- this._SiteAdminService.delete(row.id).pipe(finalize(() => {
103
- })).subscribe(res => {
104
- this.toaster.success(this._LocalizationService.instant(`AbpUi::SuccessfullyDeleted`));
105
- this.list.get()
106
- })
107
- }
108
-
109
- });
110
- }
111
-
112
- /**创建站点模态框状态改变 */
113
- createGroupVisibleChange(event) {
114
- if (!event) {
115
- this.selected = ''
116
- return
117
- }
118
- }
119
-
120
- /**选择语言改变 */
121
- languagesChange(event) {
122
- let checked = event.target.checked
123
- let value = event.target.value
124
- this.languages.forEach(el => {
125
- el.ischecked = el.cultureName === value ? checked : el.ischecked;
126
- })
127
- this.setFromLangguages()
128
- }
129
- /**设置默认语言 */
130
- setDefault(items) {
131
- this.languages.forEach(el => {
132
- el.isDefault = el.cultureName === items.cultureName;
133
- })
134
- this.setFromLangguages()
135
- }
136
- /**设置表单中的语言 */
137
- setFromLangguages() {
138
- let languagesSelect = this.languages.filter(el => el.ischecked == true)
139
- this.createOrEditForm.patchValue({
140
- languages: languagesSelect
141
- })
142
- if (languagesSelect.length == 0) {
143
- this.languages.forEach(el => {
144
- el.isDefault = false
145
- })
146
- }
147
- }
148
- /**表单保存提交 */
149
- createOrEditSave() {
150
- if (this.selected) {
151
- return this.EditSave()
152
- }
153
- this.createSave()
154
- }
155
-
156
- /**创建站点保存 */
157
- createSave() {
158
- let input = this.createOrEditForm.value
159
- this.modalBusy = true
160
- if (!this.createOrEditForm.valid) return
161
- this._SiteAdminService.create(input).pipe(finalize(() => {
162
- this.modalBusy = false
163
- this.createSitesOpen = false
164
- })).subscribe(res => {
165
- this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
166
- this.list.get()
167
- })
168
- }
169
- /**编辑站点保存 */
170
- EditSave() {
171
- let input = this.createOrEditForm.value
172
- this.modalBusy = true
173
- this._SiteAdminService.update(this.selected.id, input).pipe(finalize(() => {
174
- this.modalBusy = false
175
- this.createSitesOpen = false
176
- })).subscribe(res => {
177
- this.toaster.success(this._LocalizationService.instant(`CmsKit::SavedSuccessfully`));
178
- this.list.get()
179
- })
180
- }
181
-
182
-
183
-
184
- /**创建站点按钮 */
185
- createSitesBtn() {
186
- this.createSitesOpen = true
187
- this.createOrEditForm = this.fb.group(new CreateOrUpdateSitesInputBase())
188
- this.setAsyncValidatorsFn()
189
- this.languages = this.configState.getDeep('localization.languages')
190
- this.languages.forEach((el, index) => {
191
- el.isDefault = index === 0
192
- el.ischecked = index === 0
193
- })
194
- this.setFromLangguages()
195
- }
196
-
197
-
198
-
199
- /**编辑站点按钮 */
200
- EditSitesBtn(rows) {
201
- this.createSitesOpen = true
202
- this.languages = this.configState.getDeep('localization.languages')
203
- this._SiteAdminService.get(rows.id).subscribe(res => {
204
- this.selected = rows
205
- this.createOrEditForm = this.fb.group(new CreateOrUpdateSitesInputBase())
206
- this.createOrEditForm.patchValue(rows)
207
- this.setAsyncValidatorsFn()
208
- // 更新语言和默认状态
209
- this.updateLanguages(res.languages);
210
- // 设置表单语言
211
- this.setFromLangguages()
212
- })
213
- }
214
-
215
- /**设置字段控件异步验证 */
216
- setAsyncValidatorsFn() {
217
- this.createOrEditForm.setControl('name', new FormControl(this.nameInput.value || '', {
218
- validators: Validators.required,
219
- asyncValidators: this.nameRepetitionAsyncValidator(),
220
- updateOn: 'blur'
221
- }))
222
- }
223
-
224
-
225
-
226
- /**更新语言和默认状态 */
227
- updateLanguages(siteLanguages) {
228
- this.languages.forEach(language => {
229
- const siteLanguage = siteLanguages.find(sl => sl.cultureName === language.cultureName);
230
- if (siteLanguage) {
231
- language.ischecked = true;
232
- language.isDefault = siteLanguage.isDefault;
233
- }
234
- });
235
- }
236
-
237
-
238
- get nameInput() {
239
- return this.createOrEditForm.get('name')
240
- }
241
- get hostInput() {
242
- return this.createOrEditForm.get('host')
243
- }
244
-
245
- /**字段标签input失去标点生成字段名字 */
246
- disPlayNameInputBlur(event) {
247
- let value = event.target.value
248
- let pinyin = this._CmsApiService.chineseToPinyin(value)
249
- let nameInput = this.nameInput
250
- if (nameInput.value) return
251
- nameInput.patchValue(pinyin)
252
- }
253
-
254
- /**name定义自定义异步验证 */
255
- nameRepetitionAsyncValidator() {
256
- return (ctrl: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => {
257
- return new Promise(resolve => {
258
- let subslug = this.createOrEditForm?.get('name').value
259
- if (subslug == this.selected?.name) {
260
- resolve(null);
261
- return
262
- }
263
- this._SiteAdminService.nameExists(subslug).subscribe(res => {
264
- if (res) {
265
- resolve({ repetition: this._LocalizationService.instant(`Cms::SiteName{0}AlreadyExist`, ctrl.value) });
266
- } else {
267
- resolve(null);
268
- }
269
- })
270
- });
271
- };
272
- }
273
- /**host定义自定义异步验证 */
274
- hostRepetitionAsyncValidator() {
275
- return (ctrl: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => {
276
- return new Promise(resolve => {
277
- let subslug = this.createOrEditForm?.get('host').value
278
- if (subslug == this.selected?.host || subslug == 'https://') {
279
- resolve(null);
280
- return
281
- }
282
- this._SiteAdminService.hostExists(subslug).subscribe(res => {
283
- if (res) {
284
- resolve({ repetition: this._LocalizationService.instant(`Cms::SiteHost{0}AlreadyExist`, ctrl.value) });
285
- } else {
286
- resolve(null);
287
- }
288
- })
289
- });
290
- };
291
- }
292
-
293
- }
@@ -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, Validators } 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
- }