@dignite-ng/expand.cms 0.0.52 → 0.0.54

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 (448) hide show
  1. package/config/cms-config.module.d.ts +8 -0
  2. package/config/components/domains/domains.component.d.ts +29 -0
  3. package/config/components/site-language/site-language.component.d.ts +29 -0
  4. package/config/{src/enums/index.ts → enums/index.d.ts} +1 -1
  5. package/config/enums/route-names.d.ts +8 -0
  6. package/config/index.d.ts +5 -0
  7. package/config/{src/providers/index.ts → providers/index.d.ts} +1 -1
  8. package/config/providers/route.provider.d.ts +9 -0
  9. package/config/proxy/admin/domains/domain-admin.service.d.ts +13 -0
  10. package/config/{src/proxy/dignite/cms/admin/domains/models.ts → proxy/admin/domains/models.d.ts} +7 -9
  11. package/config/proxy/dignite/cms/admin/sites/models.d.ts +4 -0
  12. package/config/proxy/dignite/cms/admin/sites/site-admin.service.d.ts +13 -0
  13. package/config/proxy/dignite/cms/sites/models.d.ts +4 -0
  14. package/config/{src/public-api.ts → public-api.d.ts} +3 -3
  15. package/config/services/validators.service.d.ts +16 -0
  16. package/esm2022/config/cms-config.module.mjs +18 -0
  17. package/esm2022/config/components/domains/domains.component.mjs +102 -0
  18. package/esm2022/config/components/site-language/site-language.component.mjs +105 -0
  19. package/esm2022/config/dignite-ng-expand.cms-config.mjs +5 -0
  20. package/esm2022/config/enums/index.mjs +2 -0
  21. package/esm2022/config/enums/route-names.mjs +10 -0
  22. package/esm2022/config/providers/index.mjs +2 -0
  23. package/esm2022/config/providers/route.provider.mjs +74 -0
  24. package/esm2022/config/proxy/admin/domains/domain-admin.service.mjs +32 -0
  25. package/esm2022/config/proxy/admin/domains/index.mjs +3 -0
  26. package/esm2022/config/proxy/admin/domains/models.mjs +2 -0
  27. package/esm2022/config/proxy/dignite/cms/admin/sites/index.mjs +3 -0
  28. package/esm2022/config/proxy/dignite/cms/admin/sites/models.mjs +2 -0
  29. package/esm2022/config/proxy/dignite/cms/admin/sites/site-admin.service.mjs +27 -0
  30. package/esm2022/config/proxy/dignite/cms/sites/models.mjs +2 -0
  31. package/esm2022/config/public-api.mjs +4 -0
  32. package/esm2022/config/services/validators.service.mjs +83 -0
  33. package/esm2022/dignite-ng-expand.cms.mjs +5 -0
  34. package/esm2022/lib/cms-routing.module.mjs +94 -0
  35. package/esm2022/lib/cms.module.mjs +133 -0
  36. package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +303 -0
  37. package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +32 -0
  38. package/esm2022/lib/components/admin/entries/create.component.mjs +110 -0
  39. package/esm2022/lib/components/admin/entries/edit.component.mjs +110 -0
  40. package/esm2022/lib/components/admin/entries/entries.component.mjs +199 -0
  41. package/esm2022/lib/components/admin/entries/index.mjs +5 -0
  42. package/esm2022/lib/components/admin/fields/create-field.component.mjs +80 -0
  43. package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +114 -0
  44. package/esm2022/lib/components/admin/fields/create-or-update-field-input-base.mjs +25 -0
  45. package/esm2022/lib/components/admin/fields/edit-field.component.mjs +103 -0
  46. package/esm2022/lib/components/admin/fields/field-group.component.mjs +131 -0
  47. package/esm2022/lib/components/admin/fields/fields.component.mjs +108 -0
  48. package/esm2022/lib/components/admin/fields/index.mjs +7 -0
  49. package/esm2022/lib/components/admin/index.mjs +4 -0
  50. package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +27 -0
  51. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +71 -0
  52. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +389 -0
  53. package/esm2022/lib/components/admin/sections/entry-types/index.mjs +3 -0
  54. package/esm2022/lib/components/admin/sections/index.mjs +4 -0
  55. package/esm2022/lib/components/admin/sections/sections.component.mjs +292 -0
  56. package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +112 -0
  57. package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +18 -0
  58. package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +105 -0
  59. package/esm2022/lib/components/dynamic-form/entry/index.mjs +4 -0
  60. package/esm2022/lib/components/dynamic-form/form-control-group.mjs +28 -0
  61. package/esm2022/lib/components/dynamic-form/index.mjs +5 -0
  62. package/esm2022/lib/components/dynamic-form/matrix/index.mjs +4 -0
  63. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +214 -0
  64. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +50 -0
  65. package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +98 -0
  66. package/esm2022/lib/components/dynamic-form/table/index.mjs +4 -0
  67. package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +151 -0
  68. package/esm2022/lib/components/dynamic-form/table/table-config.mjs +38 -0
  69. package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +105 -0
  70. package/esm2022/lib/components/index.mjs +3 -0
  71. package/esm2022/lib/constants/styles.mjs +21 -0
  72. package/esm2022/lib/enums/ecms-component.mjs +13 -0
  73. package/esm2022/lib/enums/index.mjs +2 -0
  74. package/esm2022/lib/proxy/admin/dynamic-forms/form-admin.service.mjs +22 -0
  75. package/esm2022/lib/proxy/admin/dynamic-forms/index.mjs +3 -0
  76. package/esm2022/lib/proxy/admin/dynamic-forms/models.mjs +2 -0
  77. package/esm2022/lib/proxy/admin/entries/entry-admin.service.mjs +70 -0
  78. package/esm2022/lib/proxy/admin/entries/index.mjs +3 -0
  79. package/esm2022/lib/proxy/admin/entries/models.mjs +2 -0
  80. package/esm2022/lib/proxy/admin/fields/field-admin.service.mjs +45 -0
  81. package/esm2022/lib/proxy/admin/fields/field-group-admin.service.mjs +41 -0
  82. package/esm2022/lib/proxy/admin/fields/index.mjs +4 -0
  83. package/esm2022/lib/proxy/admin/fields/models.mjs +2 -0
  84. package/esm2022/lib/proxy/admin/sections/entry-type-admin.service.mjs +41 -0
  85. package/esm2022/lib/proxy/admin/sections/index.mjs +4 -0
  86. package/esm2022/lib/proxy/admin/sections/models.mjs +2 -0
  87. package/esm2022/lib/proxy/admin/sections/section-admin.service.mjs +51 -0
  88. package/esm2022/lib/proxy/admin/settings/index.mjs +2 -0
  89. package/esm2022/lib/proxy/admin/settings/site-settings-admin.service.mjs +31 -0
  90. package/esm2022/lib/proxy/dignite/abp/data/models.mjs +2 -0
  91. package/esm2022/lib/proxy/entries/entry-status.enum.mjs +8 -0
  92. package/esm2022/lib/proxy/entries/index.mjs +2 -0
  93. package/esm2022/lib/proxy/fields/models.mjs +2 -0
  94. package/esm2022/lib/proxy/sections/index.mjs +3 -0
  95. package/esm2022/lib/proxy/sections/models.mjs +2 -0
  96. package/esm2022/lib/proxy/sections/section-type.enum.mjs +9 -0
  97. package/esm2022/lib/proxy/settings/models.mjs +2 -0
  98. package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +2 -0
  99. package/esm2022/lib/resolvers/extensions-props-action-token.resolver.mjs +136 -0
  100. package/esm2022/lib/resolvers/page-default-toolbar-actions.mjs +160 -0
  101. package/esm2022/lib/resolvers/table-default-entity-actions.mjs +49 -0
  102. package/esm2022/lib/resolvers/table-default-entity-props.mjs +54 -0
  103. package/esm2022/lib/services/appent-content.mjs +15 -0
  104. package/esm2022/lib/services/cms-api.service.mjs +70 -0
  105. package/esm2022/lib/services/cms.service.mjs +21 -0
  106. package/esm2022/lib/services/field-abstracts.service.mjs +42 -0
  107. package/esm2022/lib/services/index.mjs +4 -0
  108. package/esm2022/lib/services/validators.service.mjs +83 -0
  109. package/esm2022/public-api.mjs +6 -0
  110. package/fesm2022/dignite-ng-expand.cms-config.mjs +426 -0
  111. package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -0
  112. package/fesm2022/dignite-ng-expand.cms.mjs +3932 -0
  113. package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -0
  114. package/index.d.ts +5 -0
  115. package/lib/cms-routing.module.d.ts +7 -0
  116. package/lib/cms.module.d.ts +35 -0
  117. package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +96 -0
  118. package/lib/components/admin/entries/create-or-update-entry-input-base.d.ts +23 -0
  119. package/lib/components/admin/entries/create.component.d.ts +47 -0
  120. package/lib/components/admin/entries/edit.component.d.ts +47 -0
  121. package/lib/components/admin/entries/entries.component.d.ts +66 -0
  122. package/lib/components/admin/entries/index.d.ts +4 -0
  123. package/lib/components/admin/fields/create-field.component.d.ts +37 -0
  124. package/lib/components/admin/fields/create-or-edit-field.component.d.ts +38 -0
  125. package/lib/components/admin/fields/create-or-update-field-input-base.d.ts +16 -0
  126. package/lib/components/admin/fields/edit-field.component.d.ts +46 -0
  127. package/lib/components/admin/fields/field-group.component.d.ts +58 -0
  128. package/lib/components/admin/fields/fields.component.d.ts +35 -0
  129. package/lib/components/admin/fields/index.d.ts +6 -0
  130. package/lib/components/admin/index.d.ts +3 -0
  131. package/lib/components/admin/sections/create-or-update-sections-input-base.d.ts +17 -0
  132. package/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.d.ts +38 -0
  133. package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +138 -0
  134. package/lib/components/admin/sections/entry-types/index.d.ts +2 -0
  135. package/lib/components/admin/sections/index.d.ts +3 -0
  136. package/lib/components/admin/sections/sections.component.d.ts +64 -0
  137. package/lib/components/dynamic-form/entry/entry-config.component.d.ts +39 -0
  138. package/lib/components/dynamic-form/entry/entry-config.d.ts +9 -0
  139. package/lib/components/dynamic-form/entry/entry-control.component.d.ts +35 -0
  140. package/lib/components/dynamic-form/entry/index.d.ts +3 -0
  141. package/lib/components/dynamic-form/form-control-group.d.ts +4 -0
  142. package/lib/components/dynamic-form/index.d.ts +4 -0
  143. package/lib/components/dynamic-form/matrix/index.d.ts +3 -0
  144. package/lib/components/dynamic-form/matrix/matrix-config.component.d.ts +73 -0
  145. package/lib/components/dynamic-form/matrix/matrix-config.d.ts +24 -0
  146. package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +39 -0
  147. package/lib/components/dynamic-form/table/index.d.ts +3 -0
  148. package/lib/components/dynamic-form/table/table-config.component.d.ts +58 -0
  149. package/lib/components/dynamic-form/table/table-config.d.ts +18 -0
  150. package/lib/components/dynamic-form/table/table-control.component.d.ts +39 -0
  151. package/lib/components/index.d.ts +2 -0
  152. package/lib/constants/styles.d.ts +2 -0
  153. package/lib/enums/ecms-component.d.ts +11 -0
  154. package/lib/enums/index.d.ts +1 -0
  155. package/lib/proxy/admin/dynamic-forms/form-admin.service.d.ts +12 -0
  156. package/lib/proxy/admin/dynamic-forms/models.d.ts +4 -0
  157. package/lib/proxy/admin/entries/entry-admin.service.d.ts +22 -0
  158. package/lib/proxy/admin/entries/models.d.ts +60 -0
  159. package/lib/proxy/admin/fields/field-admin.service.d.ts +17 -0
  160. package/lib/proxy/admin/fields/field-group-admin.service.d.ts +16 -0
  161. package/{src/lib/proxy/admin/fields/models.ts → lib/proxy/admin/fields/models.d.ts} +34 -42
  162. package/lib/proxy/admin/sections/entry-type-admin.service.d.ts +15 -0
  163. package/{src/lib/proxy/admin/sections/models.ts → lib/proxy/admin/sections/models.d.ts} +67 -81
  164. package/lib/proxy/admin/sections/section-admin.service.d.ts +18 -0
  165. package/lib/proxy/admin/settings/site-settings-admin.service.d.ts +13 -0
  166. package/lib/proxy/dignite/abp/data/models.d.ts +3 -0
  167. package/lib/proxy/entries/entry-status.enum.d.ts +5 -0
  168. package/lib/proxy/fields/models.d.ts +8 -0
  169. package/lib/proxy/sections/models.d.ts +12 -0
  170. package/lib/proxy/sections/section-type.enum.d.ts +6 -0
  171. package/lib/proxy/settings/models.d.ts +5 -0
  172. package/{src/lib/proxy/volo/cms-kit/users/models.ts → lib/proxy/volo/cms-kit/users/models.d.ts} +7 -8
  173. package/lib/resolvers/extensions-props-action-token.resolver.d.ts +75 -0
  174. package/lib/resolvers/page-default-toolbar-actions.d.ts +18 -0
  175. package/lib/resolvers/table-default-entity-actions.d.ts +5 -0
  176. package/lib/resolvers/table-default-entity-props.d.ts +5 -0
  177. package/lib/services/appent-content.d.ts +1 -0
  178. package/lib/services/cms-api.service.d.ts +16 -0
  179. package/lib/services/cms.service.d.ts +10 -0
  180. package/lib/services/field-abstracts.service.d.ts +20 -0
  181. package/lib/services/index.d.ts +3 -0
  182. package/lib/services/validators.service.d.ts +15 -0
  183. package/package.json +22 -7
  184. package/{src/public-api.ts → public-api.d.ts} +2 -6
  185. package/config/ng-package.json +0 -6
  186. package/config/src/cms-config.module.ts +0 -12
  187. package/config/src/components/domains/domains.component.html +0 -17
  188. package/config/src/components/domains/domains.component.scss +0 -0
  189. package/config/src/components/domains/domains.component.spec.ts +0 -21
  190. package/config/src/components/domains/domains.component.ts +0 -109
  191. package/config/src/components/site-language/site-language.component.html +0 -31
  192. package/config/src/components/site-language/site-language.component.scss +0 -0
  193. package/config/src/components/site-language/site-language.component.spec.ts +0 -21
  194. package/config/src/components/site-language/site-language.component.ts +0 -117
  195. package/config/src/enums/route-names.ts +0 -8
  196. package/config/src/providers/route.provider.ts +0 -82
  197. package/config/src/proxy/admin/domains/domain-admin.service.ts +0 -38
  198. package/config/src/proxy/admin/domains/models.ts +0 -9
  199. package/config/src/proxy/dignite/abp/data/index.ts +0 -1
  200. package/config/src/proxy/dignite/abp/data/models.ts +0 -4
  201. package/config/src/proxy/dignite/abp/index.ts +0 -2
  202. package/config/src/proxy/dignite/cms/admin/domains/domain-admin.service.ts +0 -47
  203. package/config/src/proxy/dignite/cms/admin/domains/index.ts +0 -2
  204. package/config/src/proxy/dignite/cms/admin/dynamic-forms/form-admin.service.ts +0 -21
  205. package/config/src/proxy/dignite/cms/admin/dynamic-forms/models.ts +0 -5
  206. package/config/src/proxy/dignite/cms/admin/entries/entry-admin.service.ts +0 -109
  207. package/config/src/proxy/dignite/cms/admin/entries/models.ts +0 -68
  208. package/config/src/proxy/dignite/cms/admin/fields/field-admin.service.ts +0 -64
  209. package/config/src/proxy/dignite/cms/admin/fields/field-group-admin.service.ts +0 -56
  210. package/config/src/proxy/dignite/cms/admin/fields/models.ts +0 -42
  211. package/config/src/proxy/dignite/cms/admin/index.ts +0 -7
  212. package/config/src/proxy/dignite/cms/admin/sections/entry-type-admin.service.ts +0 -55
  213. package/config/src/proxy/dignite/cms/admin/sections/models.ts +0 -81
  214. package/config/src/proxy/dignite/cms/admin/sections/section-admin.service.ts +0 -74
  215. package/config/src/proxy/dignite/cms/admin/sites/models.ts +0 -5
  216. package/config/src/proxy/dignite/cms/admin/sites/site-admin.service.ts +0 -30
  217. package/config/src/proxy/dignite/cms/entries/entry-status.enum.ts +0 -8
  218. package/config/src/proxy/dignite/cms/fields/index.ts +0 -1
  219. package/config/src/proxy/dignite/cms/fields/models.ts +0 -9
  220. package/config/src/proxy/dignite/cms/index.ts +0 -6
  221. package/config/src/proxy/dignite/cms/sections/models.ts +0 -14
  222. package/config/src/proxy/dignite/cms/sections/section-type.enum.ts +0 -9
  223. package/config/src/proxy/dignite/cms/sites/index.ts +0 -1
  224. package/config/src/proxy/dignite/cms/sites/models.ts +0 -5
  225. package/config/src/proxy/dignite/cms-kit/admin/brand/brand-admin.service.ts +0 -21
  226. package/config/src/proxy/dignite/cms-kit/admin/brand/index.ts +0 -2
  227. package/config/src/proxy/dignite/cms-kit/admin/brand/models.ts +0 -7
  228. package/config/src/proxy/dignite/cms-kit/admin/index.ts +0 -2
  229. package/config/src/proxy/dignite/cms-kit/brand/brand.service.ts +0 -20
  230. package/config/src/proxy/dignite/cms-kit/brand/index.ts +0 -2
  231. package/config/src/proxy/dignite/cms-kit/brand/models.ts +0 -7
  232. package/config/src/proxy/dignite/cms-kit/index.ts +0 -3
  233. package/config/src/proxy/dignite/file-explorer/directories/file-descriptor.service.ts +0 -65
  234. package/config/src/proxy/dignite/file-explorer/directories/index.ts +0 -2
  235. package/config/src/proxy/dignite/file-explorer/directories/models.ts +0 -35
  236. package/config/src/proxy/dignite/file-explorer/files/file-descriptor.service.ts +0 -101
  237. package/config/src/proxy/dignite/file-explorer/files/index.ts +0 -2
  238. package/config/src/proxy/dignite/file-explorer/files/models.ts +0 -61
  239. package/config/src/proxy/dignite/file-explorer/index.ts +0 -3
  240. package/config/src/proxy/dignite/index.ts +0 -6
  241. package/config/src/proxy/dignite/travely/areas/index.ts +0 -1
  242. package/config/src/proxy/dignite/travely/areas/models.ts +0 -5
  243. package/config/src/proxy/dignite/travely/common/index.ts +0 -1
  244. package/config/src/proxy/dignite/travely/common/models.ts +0 -5
  245. package/config/src/proxy/dignite/travely/entity-snapshots/index.ts +0 -1
  246. package/config/src/proxy/dignite/travely/entity-snapshots/models.ts +0 -7
  247. package/config/src/proxy/dignite/travely/guides/index.ts +0 -1
  248. package/config/src/proxy/dignite/travely/guides/models.ts +0 -26
  249. package/config/src/proxy/dignite/travely/index.ts +0 -9
  250. package/config/src/proxy/dignite/travely/merchants/index.ts +0 -1
  251. package/config/src/proxy/dignite/travely/merchants/models.ts +0 -9
  252. package/config/src/proxy/dignite/travely/orders/index.ts +0 -1
  253. package/config/src/proxy/dignite/travely/orders/models.ts +0 -52
  254. package/config/src/proxy/dignite/travely/payment/index.ts +0 -1
  255. package/config/src/proxy/dignite/travely/payment/models.ts +0 -9
  256. package/config/src/proxy/dignite/travely/tours/booking-time-type.enum.ts +0 -9
  257. package/config/src/proxy/dignite/travely/tours/index.ts +0 -5
  258. package/config/src/proxy/dignite/travely/tours/models.ts +0 -77
  259. package/config/src/proxy/dignite/travely/tours/period-type.enum.ts +0 -9
  260. package/config/src/proxy/dignite/travely/tours/tour-recommendation-rank.enum.ts +0 -12
  261. package/config/src/proxy/dignite/travely/tours/tourist-type.enum.ts +0 -8
  262. package/config/src/proxy/microsoft/asp-net-core/index.ts +0 -2
  263. package/config/src/proxy/microsoft/asp-net-core/mvc/index.ts +0 -1
  264. package/config/src/proxy/microsoft/asp-net-core/mvc/models.ts +0 -12
  265. package/config/src/proxy/microsoft/extensions/index.ts +0 -2
  266. package/config/src/proxy/microsoft/extensions/primitives/index.ts +0 -1
  267. package/config/src/proxy/microsoft/extensions/primitives/models.ts +0 -9
  268. package/config/src/proxy/microsoft/index.ts +0 -4
  269. package/config/src/proxy/microsoft/net/http/headers/index.ts +0 -1
  270. package/config/src/proxy/microsoft/net/http/headers/models.ts +0 -7
  271. package/config/src/proxy/microsoft/net/http/index.ts +0 -2
  272. package/config/src/proxy/microsoft/net/index.ts +0 -2
  273. package/config/src/services/validators.service.ts +0 -80
  274. package/ng-package.json +0 -10
  275. package/src/lib/cms-routing.module.ts +0 -102
  276. package/src/lib/cms.module.ts +0 -109
  277. package/src/lib/components/admin/entries/create-or-edit-entries.component.html +0 -137
  278. package/src/lib/components/admin/entries/create-or-edit-entries.component.scss +0 -1
  279. package/src/lib/components/admin/entries/create-or-edit-entries.component.spec.ts +0 -21
  280. package/src/lib/components/admin/entries/create-or-edit-entries.component.ts +0 -318
  281. package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +0 -33
  282. package/src/lib/components/admin/entries/create.component.html +0 -13
  283. package/src/lib/components/admin/entries/create.component.scss +0 -1
  284. package/src/lib/components/admin/entries/create.component.spec.ts +0 -21
  285. package/src/lib/components/admin/entries/create.component.ts +0 -110
  286. package/src/lib/components/admin/entries/edit.component.html +0 -9
  287. package/src/lib/components/admin/entries/edit.component.scss +0 -1
  288. package/src/lib/components/admin/entries/edit.component.spec.ts +0 -21
  289. package/src/lib/components/admin/entries/edit.component.ts +0 -111
  290. package/src/lib/components/admin/entries/entries.component.html +0 -112
  291. package/src/lib/components/admin/entries/entries.component.scss +0 -1
  292. package/src/lib/components/admin/entries/entries.component.spec.ts +0 -21
  293. package/src/lib/components/admin/entries/entries.component.ts +0 -216
  294. package/src/lib/components/admin/entries/index.ts +0 -4
  295. package/src/lib/components/admin/fields/create-field.component.html +0 -12
  296. package/src/lib/components/admin/fields/create-field.component.scss +0 -1
  297. package/src/lib/components/admin/fields/create-field.component.spec.ts +0 -21
  298. package/src/lib/components/admin/fields/create-field.component.ts +0 -82
  299. package/src/lib/components/admin/fields/create-or-edit-field.component.html +0 -40
  300. package/src/lib/components/admin/fields/create-or-edit-field.component.scss +0 -0
  301. package/src/lib/components/admin/fields/create-or-edit-field.component.spec.ts +0 -21
  302. package/src/lib/components/admin/fields/create-or-edit-field.component.ts +0 -121
  303. package/src/lib/components/admin/fields/create-or-update-field-input-base.ts +0 -33
  304. package/src/lib/components/admin/fields/edit-field.component.html +0 -16
  305. package/src/lib/components/admin/fields/edit-field.component.scss +0 -0
  306. package/src/lib/components/admin/fields/edit-field.component.spec.ts +0 -21
  307. package/src/lib/components/admin/fields/edit-field.component.ts +0 -101
  308. package/src/lib/components/admin/fields/field-group.component.html +0 -69
  309. package/src/lib/components/admin/fields/field-group.component.scss +0 -0
  310. package/src/lib/components/admin/fields/field-group.component.spec.ts +0 -21
  311. package/src/lib/components/admin/fields/field-group.component.ts +0 -151
  312. package/src/lib/components/admin/fields/fields.component.html +0 -74
  313. package/src/lib/components/admin/fields/fields.component.scss +0 -1
  314. package/src/lib/components/admin/fields/fields.component.spec.ts +0 -21
  315. package/src/lib/components/admin/fields/fields.component.ts +0 -109
  316. package/src/lib/components/admin/fields/index.ts +0 -6
  317. package/src/lib/components/admin/index.ts +0 -3
  318. package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +0 -32
  319. package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts +0 -79
  320. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.html +0 -187
  321. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.scss +0 -1
  322. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.spec.ts +0 -21
  323. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.ts +0 -424
  324. package/src/lib/components/admin/sections/entry-types/index.ts +0 -2
  325. package/src/lib/components/admin/sections/index.ts +0 -3
  326. package/src/lib/components/admin/sections/sections.component.html +0 -188
  327. package/src/lib/components/admin/sections/sections.component.scss +0 -1
  328. package/src/lib/components/admin/sections/sections.component.spec.ts +0 -21
  329. package/src/lib/components/admin/sections/sections.component.ts +0 -302
  330. package/src/lib/components/dynamic-form/entry/entry-config.component.html +0 -36
  331. package/src/lib/components/dynamic-form/entry/entry-config.component.scss +0 -27
  332. package/src/lib/components/dynamic-form/entry/entry-config.component.spec.ts +0 -21
  333. package/src/lib/components/dynamic-form/entry/entry-config.component.ts +0 -114
  334. package/src/lib/components/dynamic-form/entry/entry-config.ts +0 -24
  335. package/src/lib/components/dynamic-form/entry/entry-control.component.html +0 -26
  336. package/src/lib/components/dynamic-form/entry/entry-control.component.scss +0 -1
  337. package/src/lib/components/dynamic-form/entry/entry-control.component.spec.ts +0 -21
  338. package/src/lib/components/dynamic-form/entry/entry-control.component.ts +0 -111
  339. package/src/lib/components/dynamic-form/entry/index.ts +0 -3
  340. package/src/lib/components/dynamic-form/form-control-group.ts +0 -27
  341. package/src/lib/components/dynamic-form/index.ts +0 -4
  342. package/src/lib/components/dynamic-form/matrix/index.ts +0 -3
  343. package/src/lib/components/dynamic-form/matrix/matrix-config.component.html +0 -148
  344. package/src/lib/components/dynamic-form/matrix/matrix-config.component.scss +0 -0
  345. package/src/lib/components/dynamic-form/matrix/matrix-config.component.spec.ts +0 -21
  346. package/src/lib/components/dynamic-form/matrix/matrix-config.component.ts +0 -239
  347. package/src/lib/components/dynamic-form/matrix/matrix-config.ts +0 -63
  348. package/src/lib/components/dynamic-form/matrix/matrix-control.component.html +0 -42
  349. package/src/lib/components/dynamic-form/matrix/matrix-control.component.scss +0 -0
  350. package/src/lib/components/dynamic-form/matrix/matrix-control.component.spec.ts +0 -21
  351. package/src/lib/components/dynamic-form/matrix/matrix-control.component.ts +0 -106
  352. package/src/lib/components/dynamic-form/table/index.ts +0 -3
  353. package/src/lib/components/dynamic-form/table/table-config.component.html +0 -85
  354. package/src/lib/components/dynamic-form/table/table-config.component.scss +0 -10
  355. package/src/lib/components/dynamic-form/table/table-config.component.spec.ts +0 -21
  356. package/src/lib/components/dynamic-form/table/table-config.component.ts +0 -170
  357. package/src/lib/components/dynamic-form/table/table-config.ts +0 -45
  358. package/src/lib/components/dynamic-form/table/table-control.component.html +0 -54
  359. package/src/lib/components/dynamic-form/table/table-control.component.scss +0 -1
  360. package/src/lib/components/dynamic-form/table/table-control.component.spec.ts +0 -21
  361. package/src/lib/components/dynamic-form/table/table-control.component.ts +0 -114
  362. package/src/lib/components/index.ts +0 -2
  363. package/src/lib/constants/index.ts +0 -1
  364. package/src/lib/constants/styles.ts +0 -20
  365. package/src/lib/enums/ecms-component.ts +0 -11
  366. package/src/lib/enums/index.ts +0 -1
  367. package/src/lib/proxy/README.md +0 -17
  368. package/src/lib/proxy/admin/domains/domain-admin.service.ts +0 -38
  369. package/src/lib/proxy/admin/domains/index.ts +0 -2
  370. package/src/lib/proxy/admin/domains/models.ts +0 -9
  371. package/src/lib/proxy/admin/dynamic-forms/form-admin.service.ts +0 -21
  372. package/src/lib/proxy/admin/dynamic-forms/index.ts +0 -2
  373. package/src/lib/proxy/admin/dynamic-forms/models.ts +0 -5
  374. package/src/lib/proxy/admin/entries/entry-admin.service.ts +0 -109
  375. package/src/lib/proxy/admin/entries/index.ts +0 -2
  376. package/src/lib/proxy/admin/entries/models.ts +0 -68
  377. package/src/lib/proxy/admin/fields/field-admin.service.ts +0 -64
  378. package/src/lib/proxy/admin/fields/field-group-admin.service.ts +0 -56
  379. package/src/lib/proxy/admin/fields/index.ts +0 -3
  380. package/src/lib/proxy/admin/index.ts +0 -7
  381. package/src/lib/proxy/admin/sections/entry-type-admin.service.ts +0 -55
  382. package/src/lib/proxy/admin/sections/index.ts +0 -3
  383. package/src/lib/proxy/admin/sections/section-admin.service.ts +0 -74
  384. package/src/lib/proxy/admin/settings/site-settings-admin.service.ts +0 -37
  385. package/src/lib/proxy/dignite/abp/data/index.ts +0 -1
  386. package/src/lib/proxy/dignite/abp/data/models.ts +0 -4
  387. package/src/lib/proxy/dignite/abp/index.ts +0 -2
  388. package/src/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.ts +0 -65
  389. package/src/lib/proxy/dignite/file-explorer/directories/index.ts +0 -2
  390. package/src/lib/proxy/dignite/file-explorer/directories/models.ts +0 -35
  391. package/src/lib/proxy/dignite/file-explorer/files/file-descriptor.service.ts +0 -86
  392. package/src/lib/proxy/dignite/file-explorer/files/index.ts +0 -2
  393. package/src/lib/proxy/dignite/file-explorer/files/models.ts +0 -58
  394. package/src/lib/proxy/dignite/file-explorer/index.ts +0 -3
  395. package/src/lib/proxy/dignite/index.ts +0 -3
  396. package/src/lib/proxy/entries/entry-status.enum.ts +0 -8
  397. package/src/lib/proxy/entries/index.ts +0 -1
  398. package/src/lib/proxy/fields/index.ts +0 -1
  399. package/src/lib/proxy/fields/models.ts +0 -9
  400. package/src/lib/proxy/generate-proxy.json +0 -11425
  401. package/src/lib/proxy/index.ts +0 -9
  402. package/src/lib/proxy/microsoft/asp-net-core/index.ts +0 -2
  403. package/src/lib/proxy/microsoft/asp-net-core/mvc/index.ts +0 -1
  404. package/src/lib/proxy/microsoft/asp-net-core/mvc/models.ts +0 -12
  405. package/src/lib/proxy/microsoft/extensions/index.ts +0 -2
  406. package/src/lib/proxy/microsoft/extensions/primitives/index.ts +0 -1
  407. package/src/lib/proxy/microsoft/extensions/primitives/models.ts +0 -9
  408. package/src/lib/proxy/microsoft/index.ts +0 -4
  409. package/src/lib/proxy/microsoft/net/http/headers/index.ts +0 -1
  410. package/src/lib/proxy/microsoft/net/http/headers/models.ts +0 -7
  411. package/src/lib/proxy/microsoft/net/http/index.ts +0 -2
  412. package/src/lib/proxy/microsoft/net/index.ts +0 -2
  413. package/src/lib/proxy/sections/index.ts +0 -2
  414. package/src/lib/proxy/sections/models.ts +0 -14
  415. package/src/lib/proxy/sections/section-type.enum.ts +0 -9
  416. package/src/lib/proxy/settings/index.ts +0 -1
  417. package/src/lib/proxy/settings/models.ts +0 -6
  418. package/src/lib/proxy/volo/abp/content/index.ts +0 -1
  419. package/src/lib/proxy/volo/abp/content/models.ts +0 -6
  420. package/src/lib/proxy/volo/abp/index.ts +0 -2
  421. package/src/lib/proxy/volo/cms-kit/index.ts +0 -2
  422. package/src/lib/proxy/volo/cms-kit/users/index.ts +0 -1
  423. package/src/lib/proxy/volo/index.ts +0 -3
  424. package/src/lib/resolvers/extensions-props-action-token.resolver.ts +0 -178
  425. package/src/lib/resolvers/page-default-toolbar-actions.ts +0 -170
  426. package/src/lib/resolvers/table-default-entity-actions.ts +0 -24
  427. package/src/lib/resolvers/table-default-entity-props.ts +0 -36
  428. package/src/lib/services/appent-content.ts +0 -13
  429. package/src/lib/services/cms-api.service.ts +0 -71
  430. package/src/lib/services/cms.service.ts +0 -18
  431. package/src/lib/services/field-abstracts.service.ts +0 -40
  432. package/src/lib/services/index.ts +0 -4
  433. package/src/lib/services/simple-reuse-strategy.ts +0 -74
  434. package/src/lib/services/update-list.service.ts +0 -15
  435. package/src/lib/services/validators.service.ts +0 -82
  436. package/src/test.ts +0 -26
  437. package/tsconfig.lib.json +0 -16
  438. package/tsconfig.lib.prod.json +0 -10
  439. package/tsconfig.spec.json +0 -17
  440. /package/config/{src/proxy/admin/domains/index.ts → proxy/admin/domains/index.d.ts} +0 -0
  441. /package/config/{src/proxy/dignite/cms/admin/sites/index.ts → proxy/dignite/cms/admin/sites/index.d.ts} +0 -0
  442. /package/{config/src/proxy/dignite/cms/admin/dynamic-forms/index.ts → lib/proxy/admin/dynamic-forms/index.d.ts} +0 -0
  443. /package/{config/src/proxy/dignite/cms/admin/entries/index.ts → lib/proxy/admin/entries/index.d.ts} +0 -0
  444. /package/{config/src/proxy/dignite/cms/admin/fields/index.ts → lib/proxy/admin/fields/index.d.ts} +0 -0
  445. /package/{config/src/proxy/dignite/cms/admin/sections/index.ts → lib/proxy/admin/sections/index.d.ts} +0 -0
  446. /package/{src/lib/proxy/admin/settings/index.ts → lib/proxy/admin/settings/index.d.ts} +0 -0
  447. /package/{config/src/proxy/dignite/cms/entries/index.ts → lib/proxy/entries/index.d.ts} +0 -0
  448. /package/{config/src/proxy/dignite/cms/sections/index.ts → lib/proxy/sections/index.d.ts} +0 -0
@@ -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'
@@ -1,148 +0,0 @@
1
- <form [formGroup]="_Entity">
2
- <div formGroupName="formConfiguration">
3
- <div class="mb-2">
4
- <label class="form-label">{{'Cms::::FormControl:Matrix' | abpLocalization}}</label>
5
- <div class="row">
6
- <div class="col-md-3">
7
- <div class="list-group">
8
- <li class="list-group-item d-flex align-items-center justify-content-between"
9
- aria-current="true">
10
- {{'Cms::MatrixBlockType' | abpLocalization}}
11
- <button class="btn btn-light btn-sm p-0" (click.stop)="addMatrixBlockType()">
12
- <i class="fas fa-plus-circle p-1"></i>
13
- </button>
14
- </li>
15
- <ng-container *ngFor="let item of MatrixBlockTypes.controls;let i =index">
16
- <button type="button" (click.stop)="selectMatrixBlockChange(i)"
17
- class="list-group-item d-flex align-items-center justify-content-between list-group-item-action "
18
- [class.active]="i===selectMatrixBlockIndex">
19
- <div>
20
- <div>{{item.value.displayName}}</div>
21
- <div>{{item.value.name}}</div>
22
- </div>
23
- <div ngbDropdown class="d-inline-block">
24
- <button type="button" class="btn btn-light btn-sm" id="dropdownBasic1"
25
- style="z-index: 8;" ngbDropdownToggle></button>
26
- <div ngbDropdownMenu aria-labelledby="dropdownBasic1" style="z-index: 9;">
27
- <button ngbDropdownItem
28
- (click.stop)="EditMatrixBlock(item.value)">{{'AbpUi::Edit' | abpLocalization}}</button>
29
- <button ngbDropdownItem
30
- (click.stop)="DeleteMatrixBlock(i)">{{'AbpUi::Delete' | abpLocalization}}</button>
31
- </div>
32
- </div>
33
- </button>
34
- </ng-container>
35
- </div>
36
- </div>
37
- <div class="col-md-3">
38
- <div class="list-group" *ngIf="MatrixBlockTypes?.controls.length>0">
39
- <li class="list-group-item d-flex align-items-center justify-content-between"
40
- aria-current="true">
41
- {{'Cms::Fields' | abpLocalization}}
42
- <button class="btn btn-light btn-sm p-0" (click.stop)="addMatrixField()">
43
- <i class="fas fa-plus-circle p-1"></i>
44
- </button>
45
- </li>
46
- <ng-container *ngFor="let item of MatrixBlockTypes.controls;let i =index">
47
- <ng-container *ngIf="i === selectMatrixBlockIndex">
48
- <ng-container *ngFor="let el of item.controls['fields'].controls;let fi =index">
49
- <button type="button" (click.stop)="selectMatrixFieldChange(i,fi)"
50
- class="list-group-item d-flex align-items-center justify-content-between list-group-item-action "
51
- [class.active]="fi===selectMatrixFieldIndex">
52
- <div>
53
- <div>{{el.value.displayName}}</div>
54
- <div>{{el.value.name}}</div>
55
- </div>
56
- <button type="button"
57
- (click.stop)="deleteMatrixField(item.controls['fields'],fi)"
58
- class="btn btn-sm btn-li">{{'AbpUi::Delete' | abpLocalization}}</button>
59
- </button>
60
- </ng-container>
61
- </ng-container>
62
- </ng-container>
63
- </div>
64
- </div>
65
- <div class="col-md-6" formArrayName="MatrixBlockTypes">
66
- <ng-container *ngFor="let item of MatrixBlockTypes.controls;let i =index">
67
- <div [formGroupName]="i" [hidden]="i !== selectMatrixBlockIndex">
68
- <div formArrayName="fields">
69
- <ng-container *ngFor="let itemf of item.controls['fields'].controls;let fi =index">
70
- <div [formGroupName]="fi" [hidden]="fi !== selectMatrixFieldIndex">
71
- <div class="mb-2">
72
- <label class="form-label"
73
- for="displayName">{{'Cms::DisplayName' | abpLocalization}}</label>
74
- <input type="text" class="form-control" formControlName="displayName"
75
- (blur)="MatrixFieldDisplayNameInputBlur($event)">
76
- </div>
77
- <div class="mb-2">
78
- <label class="form-label"
79
- for="name">{{'DigniteAbpForms::FieldName' | abpLocalization}}</label>
80
- <input type="text" class="form-control" formControlName="name">
81
- <div class="form-text">
82
- {{'DigniteAbpForms::FieldNameHelpText' | abpLocalization}}</div>
83
- </div>
84
- <div class="mb-2">
85
- <label class="form-label"
86
- for="description">{{'Cms::Description' | abpLocalization}}</label>
87
- <input type="text" class="form-control" formControlName="description">
88
- </div>
89
- <div class="mb-2">
90
- <label class="form-label"
91
- for="formControlName">{{'Cms::FieldType' | abpLocalization}}</label>
92
- <select class="form-select" formControlName="formControlName" (change)="setConfigComponent()">
93
- <ng-container *ngFor="let itemC of _FieldControlGroup;let i =index">
94
- <option [value]="itemC.name">{{itemC.displayName}}</option>
95
- </ng-container>
96
- </select>
97
- </div>
98
- <ng-container *ngIf="itemf.value.formControlName&&itemf">
99
- <df-dynamic [type]="itemf.value.formControlName" [entity]="itemf"
100
- [selected]="_selected?_selected.formConfiguration?.MatrixBlockTypes[i]?.fields[fi]:''"></df-dynamic>
101
-
102
- </ng-container>
103
- </div>
104
- </ng-container>
105
- </div>
106
- </div>
107
- </ng-container>
108
- </div>
109
-
110
- </div>
111
- </div>
112
- <button type="submit" (abpInit)="submitclick?.nativeElement?.click()" style="display: none;"
113
- #submitclick></button>
114
- </div>
115
- </form>
116
-
117
-
118
-
119
- <abp-modal [(visible)]="matrixModalOpen" [busy]="modalBusy" (visibleChange)="matrixModalVisibleChange($event)" >
120
- <ng-template #abpHeader>
121
- <h3>{{isMatrixEdit?('AbpUi::Edit' | abpLocalization):('Cms::New' | abpLocalization)}}</h3>
122
- </ng-template>
123
- <ng-template #abpBody>
124
- <ng-template #loaderRef>
125
- <div class="text-center"><i class="fa fa-pulse fa-spinner" aria-hidden="true"></i></div>
126
- </ng-template>
127
- <ng-container *ngIf="matrixModalForm; else loaderRef">
128
- <form class="sites-modal-form" #myForm="ngForm" [formGroup]="matrixModalForm"
129
- (keydown.enter)="$event.preventDefault()" (submit)="createOrEditSave()">
130
- <button type="submit" #matrixModalModalSubmit style="display: none"></button>
131
- <div class="mb-2">
132
- <label class="form-label" for="displayName">{{'Cms::DisplayName' | abpLocalization}}</label>
133
- <input type="text" class="form-control" formControlName="displayName"
134
- (blur)="displayNameInputBlur($event)">
135
- </div>
136
- <div class="mb-2">
137
- <label class="form-label" for="name">{{'Cms::Name' | abpLocalization}}</label>
138
- <input type="text" class="form-control" formControlName="name">
139
- </div>
140
- </form>
141
- </ng-container>
142
- </ng-template>
143
- <ng-template #abpFooter>
144
- <button type="button" class="btn btn-secondary" abpClose>{{'AbpUi::Close' | abpLocalization}}</button>
145
- <abp-button iconClass="fa fa-check"
146
- (click)="matrixModalModalSubmit.nativeElement.click()">{{'AbpUi::Save' | abpLocalization}}</abp-button>
147
- </ng-template>
148
- </abp-modal>
@@ -1,21 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { MatrixConfigComponent } from './matrix-config.component';
4
-
5
- describe('MatrixConfigComponent', () => {
6
- let component: MatrixConfigComponent;
7
- let fixture: ComponentFixture<MatrixConfigComponent>;
8
-
9
- beforeEach(() => {
10
- TestBed.configureTestingModule({
11
- declarations: [MatrixConfigComponent]
12
- });
13
- fixture = TestBed.createComponent(MatrixConfigComponent);
14
- component = fixture.componentInstance;
15
- fixture.detectChanges();
16
- });
17
-
18
- it('should create', () => {
19
- expect(component).toBeTruthy();
20
- });
21
- });
@@ -1,239 +0,0 @@
1
- /* eslint-disable @angular-eslint/component-selector */
2
- import { Component, ElementRef, Input, ViewChild, } from '@angular/core';
3
- import { FormArray, FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
4
- import { MatrixConfig, MatrixItemConfig } from './matrix-config';
5
- import { CmsApiService, FieldAbstractsService } from '../../../services';
6
-
7
- @Component({
8
- selector: 'df-matrix-config',
9
- templateUrl: './matrix-config.component.html',
10
- styleUrls: ['./matrix-config.component.scss']
11
- })
12
- export class MatrixConfigComponent {
13
-
14
- constructor(
15
- private fb: FormBuilder,
16
- private _CmsApiService: CmsApiService,
17
- private _FieldAbstractsService: FieldAbstractsService,
18
- ) { }
19
-
20
- /**表单控件组 */
21
- _FieldControlGroup: any[]
22
- /**表单控件类型 */
23
- _type: any
24
- @Input()
25
- public set type(v: any) {
26
- this._type = v
27
- this.dataLoaded()
28
- }
29
- /**表单实体 */
30
- _Entity: FormGroup | undefined
31
- @Input()
32
- public set Entity(v: FormGroup) {
33
- this._Entity = v;
34
- this.dataLoaded()
35
- }
36
-
37
-
38
- /**选择的表单信息 */
39
- _selected: any
40
- @Input()
41
- public set selected(v: any) {
42
- if (v) {
43
- this._selected = v
44
- this.dataLoaded()
45
- }
46
- }
47
-
48
-
49
- @ViewChild('submitclick', { static: true }) submitclick: ElementRef;
50
-
51
- async dataLoaded() {
52
- if (this._Entity && this._type) {
53
- await this.AfterInit()
54
-
55
-
56
- this.submitclick.nativeElement.click();
57
- }
58
- }
59
-
60
- AfterInit() {
61
- return new Promise(async (resolve, rejects) => {
62
- this._FieldControlGroup = this._FieldAbstractsService.getExcludeAssignControl(this._type)
63
- this._Entity.setControl('formConfiguration', this.fb.group(new MatrixConfig()))
64
- await this.setSelectValue()
65
- this.formConfiguration.patchValue(this._selected.formConfiguration)
66
- resolve(true)
67
- })
68
- }
69
-
70
- setSelectValue() {
71
- return new Promise((resolve, rejects) => {
72
- if (this._selected && this._selected.formControlName == this._type) {
73
- this._selected.formConfiguration['MatrixBlockTypes'].forEach(((el, index) => {
74
- this.addMatrixBlockTypeItem(el)
75
- el.fields.forEach((elf, indexf) => {
76
- this.addMatrixFieldItem(elf, index)
77
- })
78
- }))
79
- resolve(true)
80
- }
81
- })
82
- }
83
-
84
- /**获取表单配置 */
85
- get formConfiguration() {
86
- return this._Entity.get('formConfiguration') as FormGroup
87
- }
88
-
89
- /**获取表单配置下的矩阵块表单数组 */
90
- get MatrixBlockTypes() {
91
- return this.formConfiguration.controls['MatrixBlockTypes'] as FormArray
92
- }
93
-
94
-
95
- /**模态框-状态 */
96
- matrixModalOpen: boolean = false
97
- /**模态框-是否正在编辑 */
98
- isMatrixModalEdit: any = false
99
-
100
- /**模态框-用于确定模态的繁忙状态是否为真 */
101
- modalBusy: boolean = false
102
-
103
- /**模态框-表单 */
104
- matrixModalForm: FormGroup | undefined;
105
-
106
- /**表单控件模板-用于在form外提交submit */
107
- @ViewChild('matrixModalModalSubmit', { static: false }) matrixModalModalSubmit: ElementRef;
108
-
109
- /**矩阵块-选择的下标 */
110
- selectMatrixBlockIndex: any = 0
111
-
112
- /**矩阵块-选择的矩阵下字段的下标 */
113
- selectMatrixFieldIndex: any = 0
114
-
115
- /**模态框-状态改变 */
116
- matrixModalVisibleChange(event) {
117
- if (!event) {
118
- this.isMatrixModalEdit = false
119
- this.matrixModalForm = undefined
120
- return
121
- }
122
- }
123
-
124
-
125
- /**矩阵块--新增-打开模态框 */
126
- addMatrixBlockType() {
127
- this.matrixModalForm = this.fb.group(new MatrixItemConfig())
128
- this.matrixModalOpen = true
129
- }
130
-
131
-
132
-
133
- /**模态框--矩阵表单保存提交 */
134
- createOrEditSave() {
135
- let input = this.matrixModalForm.value
136
- if (!this.matrixModalForm.valid) return
137
- if (this.isMatrixModalEdit) {
138
- let MatrixBlockTypesItem = this.MatrixBlockTypes.at(this.selectMatrixBlockIndex) as FormGroup
139
- MatrixBlockTypesItem.patchValue({
140
- ...input
141
- })
142
- } else {
143
- this.addMatrixBlockTypeItem(input)
144
- }
145
- this.matrixModalOpen = false
146
- }
147
- /**新增矩阵块-向数组表单中增加项 */
148
- addMatrixBlockTypeItem(input) {
149
- this.MatrixBlockTypes.push(new FormGroup({
150
- displayName: new FormControl(input.displayName, Validators.required),
151
- name: new FormControl(input.name, Validators.required),
152
- fields: new FormArray([])
153
- }))
154
- }
155
- /**编辑矩阵块 */
156
- EditMatrixBlock(input) {
157
- this.matrixModalForm = this.fb.group(new MatrixItemConfig())
158
- this.matrixModalForm.patchValue({
159
- ...input
160
- })
161
- this.matrixModalOpen = true
162
- this.isMatrixModalEdit = true
163
- }
164
-
165
- /**删除矩阵块 */
166
- DeleteMatrixBlock(index) {
167
- this.MatrixBlockTypes.removeAt(index)
168
- }
169
-
170
- /**矩阵块-选择 */
171
- selectMatrixBlockChange(index) {
172
- this.selectMatrixBlockIndex = index
173
- }
174
-
175
- /**矩阵字段-新增 */
176
- addMatrixField() {
177
- this.addMatrixFieldItem('', this.selectMatrixBlockIndex)
178
- let MatrixBlockTypesItemForm = this.MatrixBlockTypes.at(this.selectMatrixBlockIndex) as FormGroup
179
- let MatrixFieldItemForm = MatrixBlockTypesItemForm.get('fields') as FormArray
180
- this.selectMatrixFieldChange(0, MatrixFieldItemForm.length - 1)
181
-
182
- }
183
- /**矩阵字段-新增矩阵字段项 */
184
- addMatrixFieldItem(input: any = '', selectMatrixBlockIndex) {
185
- /**矩阵下标的矩阵项Form */
186
- let MatrixBlockTypesItemForm = this.MatrixBlockTypes.at(selectMatrixBlockIndex) as FormGroup
187
- let MatrixFieldItemForm = MatrixBlockTypesItemForm.get('fields') as FormArray
188
- MatrixFieldItemForm.push(this.fb.group({
189
- /**字段名称 Display name of this field */
190
- displayName: [input.displayName, [Validators.required]],
191
- /**字段唯一名称 Unique Name*/
192
- name: [input.name, [Validators.required]],
193
- /**描述 说明 */
194
- description: [input.description, []],
195
- /**FieldType字段类型 表单控件名称 */
196
- formControlName: [input.formControlName || 'TextEdit', [Validators.required]],
197
- //动态表单配置
198
- formConfiguration: new FormGroup({}),
199
- }))
200
- //
201
- }
202
-
203
- /**删除矩阵字段项 */
204
- deleteMatrixField(MatrixFieldForm, index) {
205
- MatrixFieldForm.removeAt(index)
206
- this.selectMatrixFieldIndex = 0
207
- }
208
-
209
- /**矩阵字段-选择 */
210
- selectMatrixFieldChange(MatrixBlockIndex, MatrixFieldIndex) {
211
- this.selectMatrixFieldIndex = MatrixFieldIndex
212
- }
213
-
214
- get nameInput() {
215
- return this.matrixModalForm?.get('name')
216
- }
217
- get FieldnameInput() {
218
- let MatrixBlockTypesItemForm = this.MatrixBlockTypes.at(this.selectMatrixBlockIndex) as FormGroup
219
- let MatrixFieldItemForm = MatrixBlockTypesItemForm.get('fields') as FormArray
220
- return MatrixFieldItemForm.at(this.selectMatrixFieldIndex).get('name')
221
- }
222
-
223
- /**矩阵displayNameInput字段失去焦点 */
224
- displayNameInputBlur(event) {
225
- let value = event.target.value
226
- let pinyin = this._CmsApiService.chineseToPinyin(value)
227
- let nameInput = this.nameInput
228
- if (nameInput.value) return
229
- nameInput.patchValue(pinyin)
230
- }
231
- /**矩阵displayNameInput字段失去焦点 */
232
- MatrixFieldDisplayNameInputBlur(event) {
233
- let value = event.target.value
234
- let pinyin = this._CmsApiService.chineseToPinyin(value)
235
- let FieldnameInput = this.FieldnameInput
236
- if (FieldnameInput.value) return
237
- FieldnameInput.patchValue(pinyin)
238
- }
239
- }
@@ -1,63 +0,0 @@
1
- import { FormArray, FormControl, FormGroup, Validators } from "@angular/forms";
2
-
3
- export class MatrixConfig {
4
- // 矩阵类型
5
- 'MatrixBlockTypes': any = new FormArray([])
6
-
7
- constructor(data?: MatrixConfig) {
8
- if (data) {
9
- for (const key in data) {
10
- if (data.hasOwnProperty(key)) {
11
- this[key] = data[key];
12
- }
13
- }
14
- }
15
- }
16
- }
17
- export class MatrixItemConfig {
18
-
19
- displayName: any = ['', [Validators.required]];
20
- /**字段名字 */
21
- name: any = ['', [Validators.required]];
22
-
23
- constructor(data?: MatrixConfig) {
24
- if (data) {
25
- for (const key in data) {
26
- if (data.hasOwnProperty(key)) {
27
- this[key] = data[key];
28
- }
29
- }
30
- }
31
-
32
-
33
- }
34
- }
35
-
36
-
37
-
38
- export class matrixFieldInputBase {
39
-
40
-
41
- /**字段名称 Display name of this field */
42
- displayName: any = ['', [Validators.required]];
43
- /**字段唯一名称 Unique Name*/
44
- name: any = ['', [Validators.required]];
45
- /**描述 说明 */
46
- description: any = ['', []];
47
- /**FieldType字段类型 表单控件名称 */
48
- formControlName: any = ['TextEdit', [Validators.required]];
49
- /**动态表单配置 */
50
- formConfiguration: FormGroup | undefined = new FormGroup({})
51
-
52
-
53
- constructor(data?: matrixFieldInputBase) {
54
- if (data) {
55
- for (const key in data) {
56
- if (data.hasOwnProperty(key)) {
57
- this[key] = data[key];
58
- }
59
- }
60
- }
61
-
62
- }
63
- }
@@ -1,42 +0,0 @@
1
- <form [formGroup]="_entity">
2
- <div formGroupName="extraProperties">
3
- <div class="mb-2">
4
- <label class="form-label" *ngIf="_fields.displayName">{{ _fields.displayName }}</label>
5
- <div [formArrayName]="_fields.field.name">
6
- <ng-container *ngFor="let item of fieldNameControl.controls;let i=index">
7
- <div class="card mb-3 border " [formGroupName]="i">
8
- <div class="card-header d-flex align-items-center justify-content-between border-bottom pt-1">
9
- <div>{{item.value.displayName}}</div>
10
- <button class="btn btn-sm btn-light p-0" (click.stop)="deleteMatrixControl(i)"><i
11
- class="fas fa-trash p-2"></i></button>
12
- </div>
13
- <div class="card-body">
14
- <ng-container *ngFor="let el of MatrixBlockTypesList;let il =index">
15
- <ng-container *ngIf="el.name===item.value.matrixBlockTypeName">
16
- <ng-container *ngFor="let elf of el.fields; let fi=index">
17
- <ng-container *ngIf="item&&elf&&_culture">
18
- <df-dynamic [entity]="item"
19
- [fields]="{ field: elf,displayName:elf.displayName }"
20
- [selected]="_selected ? _selected[i]?_selected[i][_parentFiledName][elf.name]:'': ''"
21
- [parentFiledName]="'extraProperties'" [culture]="_culture"></df-dynamic>
22
- </ng-container>
23
- </ng-container>
24
- </ng-container>
25
- </ng-container>
26
- </div>
27
- </div>
28
- </ng-container>
29
- </div>
30
- <div>
31
- <div class="btn-group" role="group" aria-label="Basic example">
32
- <ng-container *ngFor="let item of MatrixBlockTypesList;let i =index">
33
- <button type="button" class="btn btn-primary btn-sm" (click.stop)="addMatrixControl(item)"><i
34
- class="fas fa-plus me-1"></i>{{item.displayName}}</button>
35
- </ng-container>
36
- </div>
37
- </div>
38
- <div class="form-text" *ngIf="_fields.field.description">{{_fields.field.description}}</div>
39
- </div>
40
- </div>
41
- <button type="submit" style="display: none" #submitclick></button>
42
- </form>
@@ -1,21 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { MatrixControlComponent } from './matrix-control.component';
4
-
5
- describe('MatrixControlComponent', () => {
6
- let component: MatrixControlComponent;
7
- let fixture: ComponentFixture<MatrixControlComponent>;
8
-
9
- beforeEach(() => {
10
- TestBed.configureTestingModule({
11
- declarations: [MatrixControlComponent]
12
- });
13
- fixture = TestBed.createComponent(MatrixControlComponent);
14
- component = fixture.componentInstance;
15
- fixture.detectChanges();
16
- });
17
-
18
- it('should create', () => {
19
- expect(component).toBeTruthy();
20
- });
21
- });