@dignite-ng/expand.cms 0.0.33 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/config/cms-config.module.d.ts +8 -0
  2. package/config/{src/enums/index.ts → enums/index.d.ts} +1 -1
  3. package/config/enums/route-names.d.ts +7 -0
  4. package/config/index.d.ts +5 -0
  5. package/config/{src/providers/index.ts → providers/index.d.ts} +1 -1
  6. package/config/providers/route.provider.d.ts +9 -0
  7. package/config/{src/public-api.ts → public-api.d.ts} +3 -3
  8. package/esm2022/config/cms-config.module.mjs +19 -0
  9. package/esm2022/config/dignite-ng-expand.cms-config.mjs +5 -0
  10. package/esm2022/config/enums/index.mjs +2 -0
  11. package/esm2022/config/enums/route-names.mjs +2 -0
  12. package/esm2022/config/providers/index.mjs +2 -0
  13. package/esm2022/config/providers/route.provider.mjs +78 -0
  14. package/esm2022/config/public-api.mjs +4 -0
  15. package/esm2022/dignite-ng-expand.cms.mjs +5 -0
  16. package/esm2022/lib/cms-routing.module.mjs +100 -0
  17. package/esm2022/lib/cms.module.mjs +132 -0
  18. package/esm2022/lib/components/admin/domains/domains.component.mjs +90 -0
  19. package/esm2022/lib/components/admin/domains/index.mjs +2 -0
  20. package/esm2022/lib/components/admin/entries/create-or-edit-entries.component.mjs +286 -0
  21. package/esm2022/lib/components/admin/entries/create-or-update-entry-input-base.mjs +32 -0
  22. package/esm2022/lib/components/admin/entries/create.component.mjs +108 -0
  23. package/esm2022/lib/components/admin/entries/edit.component.mjs +107 -0
  24. package/esm2022/lib/components/admin/entries/entries.component.mjs +211 -0
  25. package/esm2022/lib/components/admin/entries/index.mjs +5 -0
  26. package/esm2022/lib/components/admin/fields/create-field.component.mjs +82 -0
  27. package/esm2022/lib/components/admin/fields/create-or-edit-field.component.mjs +119 -0
  28. package/esm2022/lib/components/admin/fields/create-or-update-field-input-base.mjs +25 -0
  29. package/esm2022/lib/components/admin/fields/edit-field.component.mjs +113 -0
  30. package/esm2022/lib/components/admin/fields/field-group.component.mjs +124 -0
  31. package/esm2022/lib/components/admin/fields/fields.component.mjs +119 -0
  32. package/esm2022/lib/components/admin/fields/index.mjs +7 -0
  33. package/esm2022/lib/components/admin/index.mjs +6 -0
  34. package/esm2022/lib/components/admin/sections/create-or-update-sections-input-base.mjs +27 -0
  35. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.mjs +71 -0
  36. package/esm2022/lib/components/admin/sections/entry-types/create-or-edit.component.mjs +416 -0
  37. package/esm2022/lib/components/admin/sections/entry-types/index.mjs +3 -0
  38. package/esm2022/lib/components/admin/sections/index.mjs +4 -0
  39. package/esm2022/lib/components/admin/sections/sections.component.mjs +348 -0
  40. package/esm2022/lib/components/admin/sites/create-or-update-sites-input-base.mjs +18 -0
  41. package/esm2022/lib/components/admin/sites/index.mjs +3 -0
  42. package/esm2022/lib/components/admin/sites/sites.component.mjs +29 -0
  43. package/esm2022/lib/components/dynamic-form/entry/entry-config.component.mjs +124 -0
  44. package/esm2022/lib/components/dynamic-form/entry/entry-config.mjs +18 -0
  45. package/esm2022/lib/components/dynamic-form/entry/entry-control.component.mjs +116 -0
  46. package/esm2022/lib/components/dynamic-form/entry/index.mjs +4 -0
  47. package/esm2022/lib/components/dynamic-form/form-control-group.mjs +28 -0
  48. package/esm2022/lib/components/dynamic-form/index.mjs +5 -0
  49. package/esm2022/lib/components/dynamic-form/matrix/index.mjs +4 -0
  50. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.component.mjs +228 -0
  51. package/esm2022/lib/components/dynamic-form/matrix/matrix-config.mjs +50 -0
  52. package/esm2022/lib/components/dynamic-form/matrix/matrix-control.component.mjs +115 -0
  53. package/esm2022/lib/components/dynamic-form/table/index.mjs +4 -0
  54. package/esm2022/lib/components/dynamic-form/table/table-config.component.mjs +174 -0
  55. package/esm2022/lib/components/dynamic-form/table/table-config.mjs +38 -0
  56. package/esm2022/lib/components/dynamic-form/table/table-control.component.mjs +121 -0
  57. package/esm2022/lib/components/index.mjs +3 -0
  58. package/esm2022/lib/constants/styles.mjs +18 -0
  59. package/esm2022/lib/enums/ecms-component.mjs +13 -0
  60. package/esm2022/lib/enums/index.mjs +2 -0
  61. package/esm2022/lib/proxy/admin/domains/domain-admin.service.mjs +34 -0
  62. package/esm2022/lib/proxy/admin/domains/index.mjs +3 -0
  63. package/esm2022/lib/proxy/admin/domains/models.mjs +2 -0
  64. package/esm2022/lib/proxy/admin/dynamic-forms/form-admin.service.mjs +24 -0
  65. package/esm2022/lib/proxy/admin/dynamic-forms/index.mjs +3 -0
  66. package/esm2022/lib/proxy/admin/dynamic-forms/models.mjs +2 -0
  67. package/esm2022/lib/proxy/admin/entries/entry-admin.service.mjs +72 -0
  68. package/esm2022/lib/proxy/admin/entries/index.mjs +3 -0
  69. package/esm2022/lib/proxy/admin/entries/models.mjs +2 -0
  70. package/esm2022/lib/proxy/admin/fields/field-admin.service.mjs +47 -0
  71. package/esm2022/lib/proxy/admin/fields/field-group-admin.service.mjs +43 -0
  72. package/esm2022/lib/proxy/admin/fields/index.mjs +4 -0
  73. package/esm2022/lib/proxy/admin/fields/models.mjs +2 -0
  74. package/esm2022/lib/proxy/admin/sections/entry-type-admin.service.mjs +43 -0
  75. package/esm2022/lib/proxy/admin/sections/index.mjs +4 -0
  76. package/esm2022/lib/proxy/admin/sections/models.mjs +2 -0
  77. package/esm2022/lib/proxy/admin/sections/section-admin.service.mjs +53 -0
  78. package/esm2022/lib/proxy/admin/settings/index.mjs +2 -0
  79. package/esm2022/lib/proxy/admin/settings/site-settings-admin.service.mjs +33 -0
  80. package/esm2022/lib/proxy/dignite/abp/data/models.mjs +2 -0
  81. package/esm2022/lib/proxy/entries/entry-status.enum.mjs +8 -0
  82. package/esm2022/lib/proxy/entries/index.mjs +2 -0
  83. package/esm2022/lib/proxy/fields/models.mjs +2 -0
  84. package/esm2022/lib/proxy/sections/index.mjs +3 -0
  85. package/esm2022/lib/proxy/sections/models.mjs +2 -0
  86. package/esm2022/lib/proxy/sections/section-type.enum.mjs +9 -0
  87. package/esm2022/lib/proxy/settings/models.mjs +2 -0
  88. package/esm2022/lib/proxy/volo/cms-kit/users/models.mjs +2 -0
  89. package/esm2022/lib/services/appent-content.mjs +15 -0
  90. package/esm2022/lib/services/cms-api.service.mjs +80 -0
  91. package/esm2022/lib/services/cms.service.mjs +23 -0
  92. package/esm2022/lib/services/field-abstracts.service.mjs +45 -0
  93. package/esm2022/lib/services/index.mjs +5 -0
  94. package/esm2022/lib/services/simple-reuse-strategy.mjs +43 -0
  95. package/esm2022/lib/services/update-list.service.mjs +19 -0
  96. package/esm2022/lib/toolbar/index.mjs +3 -0
  97. package/esm2022/lib/toolbar/toolbar-btn-default-action.mjs +160 -0
  98. package/esm2022/lib/toolbar/toolbar-config.mjs +79 -0
  99. package/esm2022/public-api.mjs +10 -0
  100. package/fesm2022/dignite-ng-expand.cms-config.mjs +101 -0
  101. package/fesm2022/dignite-ng-expand.cms-config.mjs.map +1 -0
  102. package/fesm2022/dignite-ng-expand.cms.mjs +4097 -0
  103. package/fesm2022/dignite-ng-expand.cms.mjs.map +1 -0
  104. package/index.d.ts +5 -0
  105. package/lib/cms-routing.module.d.ts +7 -0
  106. package/lib/cms.module.d.ts +35 -0
  107. package/lib/components/admin/domains/domains.component.d.ts +21 -0
  108. package/lib/components/admin/domains/index.d.ts +1 -0
  109. package/lib/components/admin/entries/create-or-edit-entries.component.d.ts +92 -0
  110. package/lib/components/admin/entries/create-or-update-entry-input-base.d.ts +23 -0
  111. package/lib/components/admin/entries/create.component.d.ts +40 -0
  112. package/lib/components/admin/entries/edit.component.d.ts +40 -0
  113. package/lib/components/admin/entries/entries.component.d.ts +66 -0
  114. package/lib/components/admin/entries/index.d.ts +4 -0
  115. package/lib/components/admin/fields/create-field.component.d.ts +31 -0
  116. package/lib/components/admin/fields/create-or-edit-field.component.d.ts +36 -0
  117. package/lib/components/admin/fields/create-or-update-field-input-base.d.ts +16 -0
  118. package/lib/components/admin/fields/edit-field.component.d.ts +40 -0
  119. package/lib/components/admin/fields/field-group.component.d.ts +51 -0
  120. package/lib/components/admin/fields/fields.component.d.ts +37 -0
  121. package/lib/components/admin/fields/index.d.ts +6 -0
  122. package/lib/components/admin/index.d.ts +5 -0
  123. package/lib/components/admin/sections/create-or-update-sections-input-base.d.ts +17 -0
  124. package/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.d.ts +38 -0
  125. package/lib/components/admin/sections/entry-types/create-or-edit.component.d.ts +132 -0
  126. package/lib/components/admin/sections/entry-types/index.d.ts +2 -0
  127. package/lib/components/admin/sections/index.d.ts +3 -0
  128. package/lib/components/admin/sections/sections.component.d.ts +90 -0
  129. package/lib/components/admin/sites/create-or-update-sites-input-base.d.ts +8 -0
  130. package/lib/components/admin/sites/index.d.ts +2 -0
  131. package/lib/components/admin/sites/sites.component.d.ts +5 -0
  132. package/lib/components/dynamic-form/entry/entry-config.component.d.ts +39 -0
  133. package/lib/components/dynamic-form/entry/entry-config.d.ts +9 -0
  134. package/lib/components/dynamic-form/entry/entry-control.component.d.ts +35 -0
  135. package/lib/components/dynamic-form/entry/index.d.ts +3 -0
  136. package/lib/components/dynamic-form/form-control-group.d.ts +4 -0
  137. package/lib/components/dynamic-form/index.d.ts +4 -0
  138. package/lib/components/dynamic-form/matrix/index.d.ts +3 -0
  139. package/lib/components/dynamic-form/matrix/matrix-config.component.d.ts +73 -0
  140. package/lib/components/dynamic-form/matrix/matrix-config.d.ts +24 -0
  141. package/lib/components/dynamic-form/matrix/matrix-control.component.d.ts +39 -0
  142. package/lib/components/dynamic-form/table/index.d.ts +3 -0
  143. package/lib/components/dynamic-form/table/table-config.component.d.ts +58 -0
  144. package/lib/components/dynamic-form/table/table-config.d.ts +18 -0
  145. package/lib/components/dynamic-form/table/table-control.component.d.ts +39 -0
  146. package/lib/components/index.d.ts +2 -0
  147. package/lib/constants/styles.d.ts +2 -0
  148. package/lib/enums/ecms-component.d.ts +11 -0
  149. package/lib/enums/index.d.ts +1 -0
  150. package/lib/proxy/admin/domains/domain-admin.service.d.ts +13 -0
  151. package/{src/lib/proxy/admin/domains/models.ts → lib/proxy/admin/domains/models.d.ts} +7 -9
  152. package/lib/proxy/admin/dynamic-forms/form-admin.service.d.ts +12 -0
  153. package/lib/proxy/admin/dynamic-forms/models.d.ts +4 -0
  154. package/lib/proxy/admin/entries/entry-admin.service.d.ts +22 -0
  155. package/lib/proxy/admin/entries/models.d.ts +60 -0
  156. package/lib/proxy/admin/fields/field-admin.service.d.ts +17 -0
  157. package/lib/proxy/admin/fields/field-group-admin.service.d.ts +16 -0
  158. package/{src/lib/proxy/admin/fields/models.ts → lib/proxy/admin/fields/models.d.ts} +34 -42
  159. package/lib/proxy/admin/sections/entry-type-admin.service.d.ts +15 -0
  160. package/{src/lib/proxy/admin/sections/models.ts → lib/proxy/admin/sections/models.d.ts} +67 -81
  161. package/lib/proxy/admin/sections/section-admin.service.d.ts +18 -0
  162. package/lib/proxy/admin/settings/site-settings-admin.service.d.ts +13 -0
  163. package/lib/proxy/dignite/abp/data/models.d.ts +3 -0
  164. package/lib/proxy/entries/entry-status.enum.d.ts +5 -0
  165. package/lib/proxy/fields/models.d.ts +8 -0
  166. package/lib/proxy/sections/models.d.ts +12 -0
  167. package/lib/proxy/sections/section-type.enum.d.ts +6 -0
  168. package/lib/proxy/settings/models.d.ts +5 -0
  169. package/{src/lib/proxy/volo/cms-kit/users/models.ts → lib/proxy/volo/cms-kit/users/models.d.ts} +7 -8
  170. package/lib/services/appent-content.d.ts +1 -0
  171. package/lib/services/cms-api.service.d.ts +20 -0
  172. package/lib/services/cms.service.d.ts +10 -0
  173. package/lib/services/field-abstracts.service.d.ts +20 -0
  174. package/lib/services/index.d.ts +4 -0
  175. package/lib/services/simple-reuse-strategy.d.ts +11 -0
  176. package/lib/services/update-list.service.d.ts +9 -0
  177. package/lib/toolbar/index.d.ts +2 -0
  178. package/lib/toolbar/toolbar-btn-default-action.d.ts +18 -0
  179. package/lib/toolbar/toolbar-config.d.ts +56 -0
  180. package/package.json +21 -6
  181. package/{src/public-api.ts → public-api.d.ts} +4 -10
  182. package/config/ng-package.json +0 -7
  183. package/config/src/cms-config.module.ts +0 -12
  184. package/config/src/enums/route-names.ts +0 -8
  185. package/config/src/providers/route.provider.ts +0 -82
  186. package/ng-package.json +0 -7
  187. package/src/lib/cms-routing.module.ts +0 -108
  188. package/src/lib/cms.module.ts +0 -108
  189. package/src/lib/components/admin/domains/domains.component.html +0 -19
  190. package/src/lib/components/admin/domains/domains.component.scss +0 -0
  191. package/src/lib/components/admin/domains/domains.component.spec.ts +0 -21
  192. package/src/lib/components/admin/domains/domains.component.ts +0 -99
  193. package/src/lib/components/admin/domains/index.ts +0 -1
  194. package/src/lib/components/admin/entries/create-or-edit-entries.component.html +0 -113
  195. package/src/lib/components/admin/entries/create-or-edit-entries.component.scss +0 -1
  196. package/src/lib/components/admin/entries/create-or-edit-entries.component.spec.ts +0 -21
  197. package/src/lib/components/admin/entries/create-or-edit-entries.component.ts +0 -284
  198. package/src/lib/components/admin/entries/create-or-update-entry-input-base.ts +0 -33
  199. package/src/lib/components/admin/entries/create.component.html +0 -13
  200. package/src/lib/components/admin/entries/create.component.scss +0 -1
  201. package/src/lib/components/admin/entries/create.component.spec.ts +0 -21
  202. package/src/lib/components/admin/entries/create.component.ts +0 -104
  203. package/src/lib/components/admin/entries/edit.component.html +0 -9
  204. package/src/lib/components/admin/entries/edit.component.scss +0 -1
  205. package/src/lib/components/admin/entries/edit.component.spec.ts +0 -21
  206. package/src/lib/components/admin/entries/edit.component.ts +0 -98
  207. package/src/lib/components/admin/entries/entries.component.html +0 -112
  208. package/src/lib/components/admin/entries/entries.component.scss +0 -1
  209. package/src/lib/components/admin/entries/entries.component.spec.ts +0 -21
  210. package/src/lib/components/admin/entries/entries.component.ts +0 -219
  211. package/src/lib/components/admin/entries/index.ts +0 -4
  212. package/src/lib/components/admin/fields/create-field.component.html +0 -12
  213. package/src/lib/components/admin/fields/create-field.component.scss +0 -1
  214. package/src/lib/components/admin/fields/create-field.component.spec.ts +0 -21
  215. package/src/lib/components/admin/fields/create-field.component.ts +0 -68
  216. package/src/lib/components/admin/fields/create-or-edit-field.component.html +0 -39
  217. package/src/lib/components/admin/fields/create-or-edit-field.component.scss +0 -0
  218. package/src/lib/components/admin/fields/create-or-edit-field.component.spec.ts +0 -21
  219. package/src/lib/components/admin/fields/create-or-edit-field.component.ts +0 -116
  220. package/src/lib/components/admin/fields/create-or-update-field-input-base.ts +0 -33
  221. package/src/lib/components/admin/fields/edit-field.component.html +0 -13
  222. package/src/lib/components/admin/fields/edit-field.component.scss +0 -0
  223. package/src/lib/components/admin/fields/edit-field.component.spec.ts +0 -21
  224. package/src/lib/components/admin/fields/edit-field.component.ts +0 -100
  225. package/src/lib/components/admin/fields/field-group.component.html +0 -69
  226. package/src/lib/components/admin/fields/field-group.component.scss +0 -0
  227. package/src/lib/components/admin/fields/field-group.component.spec.ts +0 -21
  228. package/src/lib/components/admin/fields/field-group.component.ts +0 -132
  229. package/src/lib/components/admin/fields/fields.component.html +0 -74
  230. package/src/lib/components/admin/fields/fields.component.scss +0 -1
  231. package/src/lib/components/admin/fields/fields.component.spec.ts +0 -21
  232. package/src/lib/components/admin/fields/fields.component.ts +0 -111
  233. package/src/lib/components/admin/fields/index.ts +0 -6
  234. package/src/lib/components/admin/index.ts +0 -5
  235. package/src/lib/components/admin/sections/create-or-update-sections-input-base.ts +0 -36
  236. package/src/lib/components/admin/sections/entry-types/create-or-edit.-entry-type-input-base.ts +0 -79
  237. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.html +0 -191
  238. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.scss +0 -1
  239. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.spec.ts +0 -21
  240. package/src/lib/components/admin/sections/entry-types/create-or-edit.component.ts +0 -408
  241. package/src/lib/components/admin/sections/entry-types/index.ts +0 -2
  242. package/src/lib/components/admin/sections/index.ts +0 -3
  243. package/src/lib/components/admin/sections/sections.component.html +0 -190
  244. package/src/lib/components/admin/sections/sections.component.scss +0 -1
  245. package/src/lib/components/admin/sections/sections.component.spec.ts +0 -21
  246. package/src/lib/components/admin/sections/sections.component.ts +0 -370
  247. package/src/lib/components/admin/sites/create-or-update-sites-input-base.ts +0 -18
  248. package/src/lib/components/admin/sites/index.ts +0 -2
  249. package/src/lib/components/admin/sites/sites.component.html +0 -136
  250. package/src/lib/components/admin/sites/sites.component.scss +0 -1
  251. package/src/lib/components/admin/sites/sites.component.spec.ts +0 -21
  252. package/src/lib/components/admin/sites/sites.component.ts +0 -250
  253. package/src/lib/components/dynamic-form/entry/entry-config.component.html +0 -36
  254. package/src/lib/components/dynamic-form/entry/entry-config.component.scss +0 -0
  255. package/src/lib/components/dynamic-form/entry/entry-config.component.spec.ts +0 -21
  256. package/src/lib/components/dynamic-form/entry/entry-config.component.ts +0 -115
  257. package/src/lib/components/dynamic-form/entry/entry-config.ts +0 -24
  258. package/src/lib/components/dynamic-form/entry/entry-control.component.html +0 -26
  259. package/src/lib/components/dynamic-form/entry/entry-control.component.scss +0 -1
  260. package/src/lib/components/dynamic-form/entry/entry-control.component.spec.ts +0 -21
  261. package/src/lib/components/dynamic-form/entry/entry-control.component.ts +0 -109
  262. package/src/lib/components/dynamic-form/entry/index.ts +0 -3
  263. package/src/lib/components/dynamic-form/form-control-group.ts +0 -27
  264. package/src/lib/components/dynamic-form/index.ts +0 -4
  265. package/src/lib/components/dynamic-form/matrix/index.ts +0 -3
  266. package/src/lib/components/dynamic-form/matrix/matrix-config.component.html +0 -147
  267. package/src/lib/components/dynamic-form/matrix/matrix-config.component.scss +0 -0
  268. package/src/lib/components/dynamic-form/matrix/matrix-config.component.spec.ts +0 -21
  269. package/src/lib/components/dynamic-form/matrix/matrix-config.component.ts +0 -236
  270. package/src/lib/components/dynamic-form/matrix/matrix-config.ts +0 -63
  271. package/src/lib/components/dynamic-form/matrix/matrix-control.component.html +0 -42
  272. package/src/lib/components/dynamic-form/matrix/matrix-control.component.scss +0 -0
  273. package/src/lib/components/dynamic-form/matrix/matrix-control.component.spec.ts +0 -21
  274. package/src/lib/components/dynamic-form/matrix/matrix-control.component.ts +0 -104
  275. package/src/lib/components/dynamic-form/table/index.ts +0 -3
  276. package/src/lib/components/dynamic-form/table/table-config.component.html +0 -85
  277. package/src/lib/components/dynamic-form/table/table-config.component.scss +0 -10
  278. package/src/lib/components/dynamic-form/table/table-config.component.spec.ts +0 -21
  279. package/src/lib/components/dynamic-form/table/table-config.component.ts +0 -170
  280. package/src/lib/components/dynamic-form/table/table-config.ts +0 -45
  281. package/src/lib/components/dynamic-form/table/table-control.component.html +0 -54
  282. package/src/lib/components/dynamic-form/table/table-control.component.scss +0 -1
  283. package/src/lib/components/dynamic-form/table/table-control.component.spec.ts +0 -21
  284. package/src/lib/components/dynamic-form/table/table-control.component.ts +0 -115
  285. package/src/lib/components/index.ts +0 -2
  286. package/src/lib/constants/index.ts +0 -1
  287. package/src/lib/constants/styles.ts +0 -13
  288. package/src/lib/enums/ecms-component.ts +0 -11
  289. package/src/lib/enums/index.ts +0 -1
  290. package/src/lib/proxy/README.md +0 -17
  291. package/src/lib/proxy/admin/domains/domain-admin.service.ts +0 -38
  292. package/src/lib/proxy/admin/dynamic-forms/form-admin.service.ts +0 -21
  293. package/src/lib/proxy/admin/dynamic-forms/models.ts +0 -5
  294. package/src/lib/proxy/admin/entries/entry-admin.service.ts +0 -109
  295. package/src/lib/proxy/admin/entries/models.ts +0 -68
  296. package/src/lib/proxy/admin/fields/field-admin.service.ts +0 -64
  297. package/src/lib/proxy/admin/fields/field-group-admin.service.ts +0 -56
  298. package/src/lib/proxy/admin/index.ts +0 -7
  299. package/src/lib/proxy/admin/sections/entry-type-admin.service.ts +0 -55
  300. package/src/lib/proxy/admin/sections/section-admin.service.ts +0 -74
  301. package/src/lib/proxy/admin/settings/site-settings-admin.service.ts +0 -37
  302. package/src/lib/proxy/dignite/abp/data/index.ts +0 -1
  303. package/src/lib/proxy/dignite/abp/data/models.ts +0 -4
  304. package/src/lib/proxy/dignite/abp/index.ts +0 -2
  305. package/src/lib/proxy/dignite/file-explorer/directories/file-descriptor.service.ts +0 -65
  306. package/src/lib/proxy/dignite/file-explorer/directories/index.ts +0 -2
  307. package/src/lib/proxy/dignite/file-explorer/directories/models.ts +0 -35
  308. package/src/lib/proxy/dignite/file-explorer/files/file-descriptor.service.ts +0 -86
  309. package/src/lib/proxy/dignite/file-explorer/files/index.ts +0 -2
  310. package/src/lib/proxy/dignite/file-explorer/files/models.ts +0 -58
  311. package/src/lib/proxy/dignite/file-explorer/index.ts +0 -3
  312. package/src/lib/proxy/dignite/index.ts +0 -3
  313. package/src/lib/proxy/entries/entry-status.enum.ts +0 -8
  314. package/src/lib/proxy/fields/index.ts +0 -1
  315. package/src/lib/proxy/fields/models.ts +0 -9
  316. package/src/lib/proxy/generate-proxy.json +0 -11425
  317. package/src/lib/proxy/index.ts +0 -9
  318. package/src/lib/proxy/microsoft/asp-net-core/index.ts +0 -2
  319. package/src/lib/proxy/microsoft/asp-net-core/mvc/index.ts +0 -1
  320. package/src/lib/proxy/microsoft/asp-net-core/mvc/models.ts +0 -12
  321. package/src/lib/proxy/microsoft/extensions/index.ts +0 -2
  322. package/src/lib/proxy/microsoft/extensions/primitives/index.ts +0 -1
  323. package/src/lib/proxy/microsoft/extensions/primitives/models.ts +0 -9
  324. package/src/lib/proxy/microsoft/index.ts +0 -4
  325. package/src/lib/proxy/microsoft/net/http/headers/index.ts +0 -1
  326. package/src/lib/proxy/microsoft/net/http/headers/models.ts +0 -7
  327. package/src/lib/proxy/microsoft/net/http/index.ts +0 -2
  328. package/src/lib/proxy/microsoft/net/index.ts +0 -2
  329. package/src/lib/proxy/sections/models.ts +0 -14
  330. package/src/lib/proxy/sections/section-type.enum.ts +0 -9
  331. package/src/lib/proxy/settings/index.ts +0 -1
  332. package/src/lib/proxy/settings/models.ts +0 -6
  333. package/src/lib/proxy/volo/abp/content/index.ts +0 -1
  334. package/src/lib/proxy/volo/abp/content/models.ts +0 -6
  335. package/src/lib/proxy/volo/abp/index.ts +0 -2
  336. package/src/lib/proxy/volo/cms-kit/index.ts +0 -2
  337. package/src/lib/proxy/volo/cms-kit/users/index.ts +0 -1
  338. package/src/lib/proxy/volo/index.ts +0 -3
  339. package/src/lib/proxy.zip +0 -0
  340. package/src/lib/services/appent-content.ts +0 -13
  341. package/src/lib/services/cms-api.service.ts +0 -71
  342. package/src/lib/services/cms.service.ts +0 -18
  343. package/src/lib/services/field-abstracts.service.ts +0 -40
  344. package/src/lib/services/index.ts +0 -4
  345. package/src/lib/services/simple-reuse-strategy.ts +0 -49
  346. package/src/lib/services/update-list.service.ts +0 -15
  347. package/src/lib/toolbar/index.ts +0 -2
  348. package/src/lib/toolbar/toolbar-btn-default-action.ts +0 -171
  349. package/src/lib/toolbar/toolbar-config.ts +0 -93
  350. package/src/test.ts +0 -26
  351. package/tsconfig.lib.json +0 -34
  352. package/tsconfig.lib.prod.json +0 -10
  353. package/tsconfig.spec.json +0 -17
  354. /package/{src/lib/proxy/admin/domains/index.ts → lib/proxy/admin/domains/index.d.ts} +0 -0
  355. /package/{src/lib/proxy/admin/dynamic-forms/index.ts → lib/proxy/admin/dynamic-forms/index.d.ts} +0 -0
  356. /package/{src/lib/proxy/admin/entries/index.ts → lib/proxy/admin/entries/index.d.ts} +0 -0
  357. /package/{src/lib/proxy/admin/fields/index.ts → lib/proxy/admin/fields/index.d.ts} +0 -0
  358. /package/{src/lib/proxy/admin/sections/index.ts → lib/proxy/admin/sections/index.d.ts} +0 -0
  359. /package/{src/lib/proxy/admin/settings/index.ts → lib/proxy/admin/settings/index.d.ts} +0 -0
  360. /package/{src/lib/proxy/entries/index.ts → lib/proxy/entries/index.d.ts} +0 -0
  361. /package/{src/lib/proxy/sections/index.ts → lib/proxy/sections/index.d.ts} +0 -0
@@ -1,9 +0,0 @@
1
- import * as Admin from './admin';
2
- import * as Dignite from './dignite';
3
- import * as Entries from './entries';
4
- import * as Fields from './fields';
5
- import * as Microsoft from './microsoft';
6
- import * as Sections from './sections';
7
- import * as Settings from './settings';
8
- import * as Volo from './volo';
9
- export { Admin, Dignite, Entries, Fields, Microsoft, Sections, Settings, Volo };
@@ -1,2 +0,0 @@
1
- import * as Mvc from './mvc';
2
- export { Mvc };
@@ -1 +0,0 @@
1
- export * from './models';
@@ -1,12 +0,0 @@
1
- import type { EntityTagHeaderValue } from '../../net/http/headers/models';
2
-
3
- export interface ActionResult {
4
- }
5
-
6
- export interface FileResult extends ActionResult {
7
- contentType?: string;
8
- fileDownloadName?: string;
9
- lastModified?: string;
10
- entityTag: EntityTagHeaderValue;
11
- enableRangeProcessing: boolean;
12
- }
@@ -1,2 +0,0 @@
1
- import * as Primitives from './primitives';
2
- export { Primitives };
@@ -1 +0,0 @@
1
- export * from './models';
@@ -1,9 +0,0 @@
1
-
2
- export interface StringSegment extends any {
3
- buffer?: string;
4
- offset: number;
5
- length: number;
6
- value?: string;
7
- hasValue: boolean;
8
- item?: string;
9
- }
@@ -1,4 +0,0 @@
1
- import * as AspNetCore from './asp-net-core';
2
- import * as Extensions from './extensions';
3
- import * as Net from './net';
4
- export { AspNetCore, Extensions, Net };
@@ -1 +0,0 @@
1
- export * from './models';
@@ -1,7 +0,0 @@
1
- import type { StringSegment } from '../../../extensions/primitives/models';
2
-
3
- export interface EntityTagHeaderValue {
4
- any: EntityTagHeaderValue;
5
- tag: StringSegment;
6
- isWeak: boolean;
7
- }
@@ -1,2 +0,0 @@
1
- import * as Headers from './headers';
2
- export { Headers };
@@ -1,2 +0,0 @@
1
- import * as Http from './http';
2
- export { Http };
@@ -1,14 +0,0 @@
1
- import type { FieldDtoConfig } from '../fields/models';
2
-
3
- export interface EntryFieldDto {
4
- fieldId?: string;
5
- field: FieldDtoConfig;
6
- displayName?: string;
7
- required: boolean;
8
- showOnList: boolean;
9
- }
10
-
11
- export interface EntryFieldTabDto {
12
- name?: string;
13
- fields: EntryFieldDto[];
14
- }
@@ -1,9 +0,0 @@
1
- import { mapEnumToOptions } from '@abp/ng.core';
2
-
3
- export enum SectionType {
4
- Single = 0,
5
- Structure = 1,
6
- Channel = 2,
7
- }
8
-
9
- export const sectionTypeOptions = mapEnumToOptions(SectionType);
@@ -1 +0,0 @@
1
- export * from './models';
@@ -1,6 +0,0 @@
1
-
2
- export interface BrandDto {
3
- appName?: string;
4
- logoUrl?: string;
5
- logoReverseUrl?: string;
6
- }
@@ -1 +0,0 @@
1
- export * from './models';
@@ -1,6 +0,0 @@
1
-
2
- export interface IRemoteStreamContent {
3
- fileName?: string;
4
- contentType?: string;
5
- contentLength?: number;
6
- }
@@ -1,2 +0,0 @@
1
- import * as Content from './content';
2
- export { Content };
@@ -1,2 +0,0 @@
1
- import * as Users from './users';
2
- export { Users };
@@ -1 +0,0 @@
1
- export * from './models';
@@ -1,3 +0,0 @@
1
- import * as Abp from './abp';
2
- import * as CmsKit from './cms-kit';
3
- export { Abp, CmsKit };
package/src/lib/proxy.zip DELETED
Binary file
@@ -1,13 +0,0 @@
1
- import { Renderer2, RendererFactory2, inject } from "@angular/core";
2
- import styles from "../constants/styles";
3
- let isAppentStyle = false
4
- export function appentStyle() {
5
- /**确保该路由守卫只会执行一次 */
6
- if (isAppentStyle) return
7
- isAppentStyle = true
8
- const rendererFactory = inject(RendererFactory2);
9
- let renderer: Renderer2=rendererFactory.createRenderer(null, null)
10
- const style = renderer.createElement('style');
11
- renderer.setProperty(style, 'innerHTML', styles);
12
- renderer.appendChild(document.head, style);
13
- }
@@ -1,71 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import { Title } from '@angular/platform-browser';
3
- import { pinyin } from 'pinyin-pro';
4
-
5
- @Injectable({
6
- providedIn: 'root'
7
- })
8
- export class CmsApiService {
9
-
10
- constructor(
11
- private titleService: Title,
12
- ) { }
13
- /**动态设置浏览器标题 */
14
- setBrowserTitle(title:string){
15
- this.titleService.setTitle(title)
16
- }
17
-
18
-
19
- /**
20
- * 识别中文转化为拼音,固定返回类型
21
- * 汉字转拼音
22
- * 大写转小写
23
- *
24
- * */
25
- chineseToPinyin(value: any) {
26
- //去除字符串中所有的空格
27
- // let val = value
28
- let val = value.replaceAll(' ', "-")
29
- let array = val.split('')
30
- let newArray = []
31
- array.forEach((el: any, index: any) => {
32
- //转化为小写
33
- let elChange = el.toLowerCase()
34
- let isChinese = (str) => {
35
- return /^[\u4e00-\u9fa5]+$/.test(str);
36
- }
37
- if (isChinese(elChange)) {
38
- const resultWithoutTone = pinyin(elChange, { toneType: 'none', type: 'array' });
39
- elChange = resultWithoutTone.toString()
40
- if (index < array.length - 1) elChange+='-'
41
- };
42
- newArray.push(elChange)
43
- });
44
- let pinyinstr = newArray.join('')
45
- return pinyinstr || val
46
- }
47
-
48
-
49
- /**
50
- * 深拷贝--方法 */
51
- deepClone(obj) {
52
- if (typeof obj !== 'object' || obj === null) return obj;
53
- const result = Array.isArray(obj) ? [] : {};
54
- for (let key in obj) {
55
- if (obj.hasOwnProperty(key)) {
56
- if (typeof obj[key] === 'object' && obj[key] !== null) {
57
- if (obj[key] instanceof Date) {
58
- result[key] = new Date(obj[key].getTime());
59
- } else if (obj[key] instanceof RegExp) {
60
- result[key] = new RegExp(obj[key]);
61
- } else {
62
- result[key] = this.deepClone(obj[key]);
63
- }
64
- } else {
65
- result[key] = obj[key];
66
- }
67
- }
68
- }
69
- return result;
70
- }
71
- }
@@ -1,18 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import { RestService } from '@abp/ng.core';
3
-
4
- @Injectable({
5
- providedIn: 'root',
6
- })
7
- export class CmsService {
8
- apiName = 'Cms';
9
-
10
- constructor(private restService: RestService) {}
11
-
12
- sample() {
13
- return this.restService.request<void, any>(
14
- { method: 'GET', url: '/api/Cms/sample' },
15
- { apiName: this.apiName }
16
- );
17
- }
18
- }
@@ -1,40 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import { FieldGroupAdminService } from '../proxy/admin/fields/field-group-admin.service';
3
- import { FieldGroupDto } from '../proxy/admin/fields/models';
4
- import { FormAdminService } from '../proxy/admin/dynamic-forms';
5
-
6
- @Injectable({
7
- providedIn: 'root'
8
- })
9
- export class FieldAbstractsService {
10
-
11
- constructor(
12
- private _FieldGroupAdminService: FieldGroupAdminService,
13
- private _FormAdminService: FormAdminService,
14
- ) { }
15
- /**字段分组列表 */
16
- fieldGroupList: FieldGroupDto[] = []
17
- /**获取字段分组列表 */
18
- getfieldGroupList() {
19
- this._FieldGroupAdminService.getList({}).subscribe(res => {
20
- this.fieldGroupList = res.items
21
- })
22
- }
23
-
24
- /**表单控件类型 */
25
- fromControlList: any[] = []
26
- /**获取表单控件类型 */
27
- getFromControlList() {
28
- return new Promise((resolve, reject) => {
29
- this._FormAdminService.getFormControls({}).subscribe(res => {
30
- this.fromControlList = res.items
31
- resolve(res.items)
32
- })
33
- })
34
- }
35
- getExcludeAssignControl(typeName?) {
36
- // return this.fromControlList.filter(el => el.name !== typeName)
37
- return this.fromControlList
38
- }
39
-
40
- }
@@ -1,4 +0,0 @@
1
- export * from './field-abstracts.service'
2
- export * from './cms.service'
3
- export * from './cms-api.service'
4
- export * from './simple-reuse-strategy'
@@ -1,49 +0,0 @@
1
-
2
- import { RouteReuseStrategy, ActivatedRouteSnapshot, DetachedRouteHandle } from '@angular/router';
3
-
4
- export class SimpleReuseStrategy implements RouteReuseStrategy {
5
-
6
- public handlers: { [key: string]: DetachedRouteHandle } = {};
7
- //表示对路由允许复用
8
- shouldDetach(route: ActivatedRouteSnapshot): boolean {
9
- //默认对所有路由复用 可通过给路由配置项增加data: { keep: true }来进行选择性使用,代码如下
10
- //如果是懒加载路由需要在生命组件的位置进行配置
11
- if (!route.data.keep) {
12
- return false;
13
- }
14
- return true;
15
- }
16
-
17
- //当路由离开时会触发。按path作为key存储路由快照&组件当前实例对象
18
- store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle): void {
19
- const key = route.component.name
20
- if (key) {
21
- this.handlers[key] = handle;
22
- }
23
- }
24
-
25
- //若path在缓存中有的都认为允许还原路由
26
- shouldAttach(route: ActivatedRouteSnapshot): boolean {
27
- if (route.component?.name) {
28
- return !!this.handlers[route.component?.name]
29
- }
30
- return false
31
- }
32
-
33
- // 从缓存中获取快照,若无则返回null
34
- retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle | null {
35
- if (!route.routeConfig) return null;
36
- //在loadChildren路径上通过修改自定义RouteReuseStrategy中的检索函数时从不检索分离的路由。
37
- if (route.routeConfig.loadChildren) return null;
38
- if (route.component?.name) {
39
- return this.handlers[route.component?.name];
40
- }
41
- return null
42
- }
43
-
44
- //进入路由触发,判断是否同一路由
45
- shouldReuseRoute(future: ActivatedRouteSnapshot, current: ActivatedRouteSnapshot): boolean {
46
- return future.routeConfig === current.routeConfig;
47
- }
48
-
49
- }
@@ -1,15 +0,0 @@
1
- import { EventEmitter, Injectable } from '@angular/core';
2
-
3
- @Injectable({
4
- providedIn: 'root'
5
- })
6
- export class UpdateListService {
7
-
8
- public updateListEvent: EventEmitter<any> = new EventEmitter();
9
-
10
- constructor() { }
11
-
12
- updateList() {
13
- this.updateListEvent.emit();
14
- }
15
- }
@@ -1,2 +0,0 @@
1
- export * from './toolbar-btn-default-action'
2
- export * from './toolbar-config'
@@ -1,171 +0,0 @@
1
- import { ToolbarAction } from '@abp/ng.theme.shared/extensions';
2
- import {
3
- SectionsComponent,
4
- CreateOrEditComponent,
5
- SitesComponent,
6
- FieldsComponent,
7
- CreateFieldComponent,
8
- EditFieldComponent,
9
- EntriesComponent,
10
- CreateComponent,
11
- EditComponent,
12
- } from '../components';
13
-
14
- /**版块 */
15
- export const Sections_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
16
- {
17
- text: 'Cms::New',
18
- action: data => {
19
- const component = data.getInjected(SectionsComponent);
20
- component.createSectionBtn();
21
- },
22
- btnClass: '',
23
- permission: 'CmsAdmin.Entry.Create',
24
- icon: 'fa fa-plus',
25
- },
26
- ]);
27
- /**版块-创建-编辑 */
28
- export const Sections_Create_Or_Edit_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
29
- {
30
- text: 'AbpUi::Save',
31
- action: data => {
32
- const component = data.getInjected(CreateOrEditComponent);
33
- component.submitclickBtn();
34
- },
35
- btnClass: '',
36
- permission: 'CmsAdmin.Entry.Create',
37
- icon: 'fas fa-save',
38
- },
39
- ]);
40
- /**站点 */
41
- // export const Sites_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
42
- // {
43
- // text: 'Cms::New',
44
- // action: data => {
45
- // const component = data.getInjected(SitesComponent);
46
- // // component.createSitesBtn();
47
- // },
48
- // btnClass: '',
49
- // permission: 'CmsAdmin.Entry.Create',
50
- // icon: 'fa fa-plus',
51
- // },
52
- // ]);
53
- /**字段 */
54
- export const Fields_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
55
- {
56
- text: 'Cms::New',
57
- action: data => {
58
- const component = data.getInjected(FieldsComponent);
59
- component.toFieldsCreateBtn();
60
- },
61
- btnClass: '',
62
- permission: 'CmsAdmin.Entry.Create',
63
- icon: 'fa fa-plus',
64
- },
65
- ]);
66
- /**字段-创建 */
67
- export const Fields_Create_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
68
- {
69
- text: 'AbpUi::Save',
70
- action: data => {
71
- const component = data.getInjected(CreateFieldComponent);
72
- component.submitclickBtn();
73
- },
74
- btnClass: '',
75
- permission: 'CmsAdmin.Entry.Create',
76
- icon: 'fas fa-save',
77
- },
78
- ]);
79
- /**字段-创建 */
80
- export const Fields_Edit_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
81
- {
82
- text: 'AbpUi::Save',
83
- action: data => {
84
- const component = data.getInjected(EditFieldComponent);
85
- component.submitclickBtn();
86
- },
87
- btnClass: '',
88
- permission: 'CmsAdmin.Entry.Create',
89
- icon: 'fas fa-save',
90
- },
91
- ]);
92
-
93
- /**条目 */
94
- export const Entries_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
95
- {
96
- text: 'Cms::New',
97
- action: data => {
98
- const component = data.getInjected(EntriesComponent);
99
- component.createEntriesBtn();
100
- },
101
- btnClass: '',
102
- permission: 'CmsAdmin.Entry.Create',
103
- icon: 'fa fa-plus',
104
- },
105
- ]);
106
- /**条目-创建 */
107
- export const Entries_Create_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
108
- {
109
- text: 'AbpUi::Cancel',
110
- action: data => {
111
- const component = data.getInjected(CreateComponent);
112
- component.backTo();
113
- },
114
- btnClass: 'btn btn-light btn-sm',
115
- permission: 'CmsAdmin.Entry.Create',
116
- icon: '',
117
- },
118
- {
119
- text: 'AbpUi::Save',
120
- action: data => {
121
- const component = data.getInjected(CreateComponent);
122
- component.clickSubmit(true);
123
- },
124
- btnClass: 'btn btn-info btn-sm',
125
- permission: 'CmsAdmin.Entry.Create',
126
- icon: 'fas fa-save',
127
- },
128
- {
129
- text: 'Cms::Publish',
130
- action: data => {
131
- const component = data.getInjected(CreateComponent);
132
- component.clickSubmit(false);
133
- },
134
- btnClass: '',
135
- permission: 'CmsAdmin.Entry.Create',
136
- icon: 'fa fa-paper-plane',
137
- },
138
- ]);
139
- /**条目编辑 */
140
- export const Entries_Edit_Defaults_Toolbar_Action = ToolbarAction.createMany<any[]>([
141
- {
142
- text: 'AbpUi::Cancel',
143
- action: data => {
144
- const component = data.getInjected(EditComponent);
145
- component.backTo();
146
- },
147
- btnClass: 'btn btn-light btn-sm',
148
- permission: 'CmsAdmin.Entry.Create',
149
- icon: '',
150
- },
151
- {
152
- text: 'AbpUi::Save',
153
- action: data => {
154
- const component = data.getInjected(EditComponent);
155
- component.clickSubmit(true);
156
- },
157
- btnClass: 'btn btn-info btn-sm',
158
- permission: 'CmsAdmin.Entry.Create',
159
- icon: 'fas fa-save',
160
- },
161
- {
162
- text: 'Cms::Publish',
163
- action: data => {
164
- const component = data.getInjected(EditComponent);
165
- component.clickSubmit(false);
166
- },
167
- btnClass: '',
168
- permission: 'CmsAdmin.Entry.Create',
169
- icon: 'fa fa-paper-plane',
170
- },
171
- ]);
@@ -1,93 +0,0 @@
1
- import { ConfigStateService } from "@abp/ng.core";
2
- import { ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions } from "@abp/ng.theme.shared/extensions";
3
- import { InjectionToken, inject } from "@angular/core";
4
- import { ResolveFn } from "@angular/router";
5
- import { map, tap } from "rxjs";
6
- import { ECmsComponent } from "../enums";
7
- import { Entries_Defaults_Toolbar_Action, Entries_Create_Defaults_Toolbar_Action, Entries_Edit_Defaults_Toolbar_Action, Fields_Defaults_Toolbar_Action, Fields_Create_Defaults_Toolbar_Action, Fields_Edit_Defaults_Toolbar_Action, Sections_Defaults_Toolbar_Action, Sections_Create_Or_Edit_Defaults_Toolbar_Action } from "./toolbar-btn-default-action";
8
-
9
- export const ActionGroup = {
10
- Entries: Entries_Defaults_Toolbar_Action,
11
- Entries_Create: Entries_Create_Defaults_Toolbar_Action,
12
- Entries_Edit: Entries_Edit_Defaults_Toolbar_Action,
13
- Fields: Fields_Defaults_Toolbar_Action,
14
- FieldsCreate: Fields_Create_Defaults_Toolbar_Action,
15
- FieldsEdit: Fields_Edit_Defaults_Toolbar_Action,
16
- Sections: Sections_Defaults_Toolbar_Action,
17
- SectionsCreateOrEdit: Sections_Create_Or_Edit_Defaults_Toolbar_Action,
18
- };
19
-
20
- const setCmsAction = () => {
21
- let Cms_Default = {};
22
- for (const iterator in ECmsComponent) {
23
- Cms_Default[ECmsComponent[iterator]] = ActionGroup[iterator];
24
- }
25
- return Cms_Default;
26
- };
27
- /**用于路由守卫增加工具栏按钮 */
28
- export const Cms_Default_Toolbar_Actions = setCmsAction();
29
-
30
- /**
31
- *
32
- * @param 在identityExtensionsResolver方法中使用
33
- *
34
- * @param 在cms.module.ts中使用,
35
- export class CmsModule {
36
- static forChild(options: any = {}): ModuleWithProviders<CmsModule> {
37
- return {
38
- ngModule: CmsModule,
39
- providers: [
40
- {
41
- provide: CMS_TOOLBAR_ACTION_CONTRIBUTORS,
42
- useValue: options.toolbarActionContributors,
43
- // useValue: identityToolbarActionContributors,
44
- },
45
- // IdentityExtensionsGuard,
46
- ]
47
- };
48
- }
49
- static forLazy(options: any = {}): NgModuleFactory<CmsModule> {
50
- return new LazyModuleFactory(CmsModule.forChild(options));
51
- }
52
- }
53
- *
54
- *
55
- */
56
- export const CMS_TOOLBAR_ACTION_CONTRIBUTORS = new InjectionToken<any>(
57
- 'CMS_TOOLBAR_ACTION_CONTRIBUTORS'
58
- );
59
-
60
- /**用于放在cms-routing.module.ts路由守卫中
61
- *
62
- *
63
- const routes: Routes = [
64
- {
65
- path: 'demo',
66
- canActivate: [AuthGuard, PermissionGuard],
67
- resolve: [identityExtensionsResolver],
68
- children: []
69
- },
70
- ]
71
- *
72
- *
73
- */
74
- export const CmsExtensionsResolver: ResolveFn<any> = () => {
75
- const configState = inject(ConfigStateService);
76
- const extensions = inject(ExtensionsService);
77
- const config = { optional: true };
78
- const toolbarContributors = inject(CMS_TOOLBAR_ACTION_CONTRIBUTORS, config) || {};
79
- return getObjectExtensionEntitiesFromStore(configState, 'Cms').pipe(
80
- map(entities => ({
81
- // [ECmseComponents.UsePage]: entities.Role,
82
- // [eIdentityComponents.Users]: entities.User,
83
- })),
84
- mapEntitiesToContributors(configState, 'Cms'),
85
- tap(objectExtensionContributors => {
86
- mergeWithDefaultActions(
87
- extensions.toolbarActions,
88
- Cms_Default_Toolbar_Actions,
89
- toolbarContributors
90
- );
91
- })
92
- );
93
- };
package/src/test.ts DELETED
@@ -1,26 +0,0 @@
1
- // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2
-
3
- import 'zone.js';
4
- import 'zone.js/testing';
5
- import { getTestBed } from '@angular/core/testing';
6
- import {
7
- BrowserDynamicTestingModule,
8
- platformBrowserDynamicTesting
9
- } from '@angular/platform-browser-dynamic/testing';
10
-
11
- declare const require: {
12
- context(path: string, deep?: boolean, filter?: RegExp): {
13
- keys(): string[];
14
- <T>(id: string): T;
15
- };
16
- };
17
-
18
- // First, initialize the Angular testing environment.
19
- getTestBed().initTestEnvironment(
20
- BrowserDynamicTestingModule,
21
- platformBrowserDynamicTesting()
22
- );
23
- // Then we find all the tests.
24
- const context = require.context('./', true, /\.spec\.ts$/);
25
- // And load the modules.
26
- context.keys().map(context);