@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
@@ -0,0 +1,56 @@
1
+ import { InjectionToken } from "@angular/core";
2
+ import { ResolveFn } from "@angular/router";
3
+ export declare const ActionGroup: {
4
+ Entries: import("@abp/ng.theme.shared/extensions").ToolbarAction<any[]>[];
5
+ Entries_Create: import("@abp/ng.theme.shared/extensions").ToolbarAction<any[]>[];
6
+ Entries_Edit: import("@abp/ng.theme.shared/extensions").ToolbarAction<any[]>[];
7
+ Fields: import("@abp/ng.theme.shared/extensions").ToolbarAction<any[]>[];
8
+ FieldsCreate: import("@abp/ng.theme.shared/extensions").ToolbarAction<any[]>[];
9
+ FieldsEdit: import("@abp/ng.theme.shared/extensions").ToolbarAction<any[]>[];
10
+ Sections: import("@abp/ng.theme.shared/extensions").ToolbarAction<any[]>[];
11
+ SectionsCreateOrEdit: import("@abp/ng.theme.shared/extensions").ToolbarAction<any[]>[];
12
+ };
13
+ /**用于路由守卫增加工具栏按钮 */
14
+ export declare const Cms_Default_Toolbar_Actions: {};
15
+ /**
16
+ *
17
+ * @param 在identityExtensionsResolver方法中使用
18
+ *
19
+ * @param 在cms.module.ts中使用,
20
+ export class CmsModule {
21
+ static forChild(options: any = {}): ModuleWithProviders<CmsModule> {
22
+ return {
23
+ ngModule: CmsModule,
24
+ providers: [
25
+ {
26
+ provide: CMS_TOOLBAR_ACTION_CONTRIBUTORS,
27
+ useValue: options.toolbarActionContributors,
28
+ // useValue: identityToolbarActionContributors,
29
+ },
30
+ // IdentityExtensionsGuard,
31
+ ]
32
+ };
33
+ }
34
+ static forLazy(options: any = {}): NgModuleFactory<CmsModule> {
35
+ return new LazyModuleFactory(CmsModule.forChild(options));
36
+ }
37
+ }
38
+ *
39
+ *
40
+ */
41
+ export declare const CMS_TOOLBAR_ACTION_CONTRIBUTORS: InjectionToken<any>;
42
+ /**用于放在cms-routing.module.ts路由守卫中
43
+ *
44
+ *
45
+ const routes: Routes = [
46
+ {
47
+ path: 'demo',
48
+ canActivate: [AuthGuard, PermissionGuard],
49
+ resolve: [identityExtensionsResolver],
50
+ children: []
51
+ },
52
+ ]
53
+ *
54
+ *
55
+ */
56
+ export declare const CmsExtensionsResolver: ResolveFn<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dignite-ng/expand.cms",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.2.0",
6
6
  "@angular/core": "^16.2.0",
@@ -13,9 +13,24 @@
13
13
  "publishConfig": {
14
14
  "access": "public",
15
15
  "registry": "https://registry.npmjs.org/"
16
+ },
17
+ "module": "fesm2022/dignite-ng-expand.cms.mjs",
18
+ "typings": "index.d.ts",
19
+ "exports": {
20
+ "./package.json": {
21
+ "default": "./package.json"
22
+ },
23
+ ".": {
24
+ "types": "./index.d.ts",
25
+ "esm2022": "./esm2022/dignite-ng-expand.cms.mjs",
26
+ "esm": "./esm2022/dignite-ng-expand.cms.mjs",
27
+ "default": "./fesm2022/dignite-ng-expand.cms.mjs"
28
+ },
29
+ "./config": {
30
+ "types": "./config/index.d.ts",
31
+ "esm2022": "./esm2022/config/dignite-ng-expand.cms-config.mjs",
32
+ "esm": "./esm2022/config/dignite-ng-expand.cms-config.mjs",
33
+ "default": "./fesm2022/dignite-ng-expand.cms-config.mjs"
34
+ }
16
35
  }
17
- }
18
-
19
-
20
-
21
-
36
+ }
@@ -1,10 +1,4 @@
1
- /*
2
- * Public API Surface of cms
3
- */
4
-
5
- export * from './lib/cms.module';
6
- // export * from './lib/cms-routing.module';
7
- export * from './lib/components/dynamic-form';
8
- // export * from './lib/proxy';
9
- export * from './lib/services/simple-reuse-strategy';
10
- export * from './lib/components/admin/domains';
1
+ export * from './lib/cms.module';
2
+ export * from './lib/components/dynamic-form';
3
+ export * from './lib/services/simple-reuse-strategy';
4
+ export * from './lib/components/admin/domains';
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/cms/config",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- }
7
- }
@@ -1,12 +0,0 @@
1
- import { ModuleWithProviders, NgModule } from '@angular/core';
2
- import { CMS_ROUTE_PROVIDERS } from './providers/route.provider';
3
-
4
- @NgModule()
5
- export class CmsConfigModule {
6
- static forRoot(): ModuleWithProviders<CmsConfigModule> {
7
- return {
8
- ngModule: CmsConfigModule,
9
- providers: [CMS_ROUTE_PROVIDERS],
10
- };
11
- }
12
- }
@@ -1,8 +0,0 @@
1
- export const enum eCmsRouteNames {
2
- Cms = 'Cms::Menu:Cms',
3
- Entries = 'Cms::FormControl:Entry',
4
- Settings = "Cms::Menu:Settings",
5
- Fields = "Cms::Fields",
6
- // Sites = "Cms::Sites",
7
- Sections = "Cms::Sections",
8
- }
@@ -1,82 +0,0 @@
1
- import { eLayoutType, RoutesService } from '@abp/ng.core';
2
- import { APP_INITIALIZER } from '@angular/core';
3
- import { eCmsRouteNames } from '../enums/route-names';
4
- import { eThemeSharedRouteNames } from '@abp/ng.theme.shared';
5
- import { SettingTabsService } from '@abp/ng.setting-management/config';
6
- import { DomainsComponent } from '@dignite-ng/expand.cms';
7
- // import { DomainsComponent } from '@dignite-ng/expand.cms';
8
-
9
- export const CMS_ROUTE_PROVIDERS = [
10
- {
11
- provide: APP_INITIALIZER,
12
- useFactory: configureRoutes,
13
- deps: [RoutesService, SettingTabsService],
14
- multi: true,
15
- },
16
- ];
17
-
18
-
19
- export function configureRoutes(routesService: RoutesService, settingTabs: SettingTabsService) {
20
- return () => {
21
- settingTabs.add([
22
- {
23
- name: 'Cms::Domain',
24
- order: 1,
25
- requiredPolicy: 'CmsAdmin.Domain',
26
- component: DomainsComponent,
27
- },
28
- ]);
29
- routesService.add([
30
- {
31
- path: '/cms',
32
- name: eCmsRouteNames.Cms,
33
- iconClass: 'bi-archive-fill',
34
- layout: eLayoutType.application,
35
- requiredPolicy: 'CmsAdmin.Entry || CmsAdmin.Field || CmsAdmin.Site || CmsAdmin.Section',
36
- },
37
- {
38
- path: '/cms/admin/entries',
39
- name: eCmsRouteNames.Entries,
40
- parentName: eCmsRouteNames.Cms,
41
- iconClass: 'bi-file-earmark-text-fill',
42
- layout: eLayoutType.application,
43
- requiredPolicy: 'CmsAdmin.Entry',
44
- },
45
- {
46
- path: '',
47
- name: eCmsRouteNames.Settings,
48
- parentName: eCmsRouteNames.Cms,
49
- iconClass: 'fas fa fa-cog',
50
- layout: eLayoutType.application,
51
- requiredPolicy: 'CmsAdmin.Field || CmsAdmin.Section',
52
- },
53
- {
54
- path: '/cms/admin/fields',
55
- name: eCmsRouteNames.Fields,
56
- parentName: eCmsRouteNames.Settings,
57
- iconClass: 'bi-file-earmark-text-fill',
58
- layout: eLayoutType.application,
59
- order: 1,
60
- requiredPolicy: 'CmsAdmin.Field',
61
- },
62
- // {
63
- // path: '/cms/admin/sites',
64
- // name: eCmsRouteNames.Sites,
65
- // parentName:eCmsRouteNames.Settings,
66
- // iconClass: 'fas fa fa-globe ',
67
- // layout: eLayoutType.application,
68
- // order: 2,
69
- // requiredPolicy:'CmsAdmin.Site',
70
- // },
71
- {
72
- path: '/cms/admin/sections',
73
- name: eCmsRouteNames.Sections,
74
- parentName: eCmsRouteNames.Settings,
75
- iconClass: 'bi bi-menu-button-wide-fill',
76
- layout: eLayoutType.application,
77
- order: 3,
78
- requiredPolicy: 'CmsAdmin.Section',
79
- },
80
- ]);
81
- };
82
- }
package/ng-package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/cms",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- }
7
- }
@@ -1,108 +0,0 @@
1
- import { NgModule} from '@angular/core';
2
- import { Routes, RouterModule} from '@angular/router';
3
- import {
4
- CreateComponent,
5
- CreateFieldComponent,
6
- CreateOrEditComponent,
7
- EditComponent,
8
- EditFieldComponent,
9
- EntriesComponent,
10
- FieldsComponent,
11
- SectionsComponent,
12
- SitesComponent,
13
- } from './components';
14
- import {
15
- AuthGuard,
16
- PermissionGuard,
17
- } from '@abp/ng.core';
18
- import { CmsExtensionsResolver } from './toolbar';
19
- import { appentStyle } from './services/appent-content';
20
-
21
-
22
- const routes: Routes = [
23
- {
24
- path: 'admin',
25
- canActivate: [AuthGuard, PermissionGuard],
26
- resolve: [CmsExtensionsResolver, appentStyle],
27
- children: [
28
- {
29
- path: 'entries',
30
-
31
- children: [
32
- {
33
- path: '',
34
- component: EntriesComponent,
35
- data: { keep: true }
36
- },
37
- {
38
- path: 'create',
39
- component: CreateComponent,
40
- },
41
- {
42
- path: ':entrieId/edit',
43
- component: EditComponent,
44
- },
45
- ],
46
- },
47
- {
48
- path: '',
49
- children: [
50
- {
51
- path: 'fields',
52
- children: [
53
- {
54
- path: '',
55
- component: FieldsComponent,
56
- data: { keep: true }
57
- },
58
- {
59
- path: 'create',
60
- component: CreateFieldComponent,
61
- },
62
- {
63
- path: ':id/edit',
64
- component: EditFieldComponent,
65
- },
66
- ],
67
- },
68
- // {
69
- // path: 'sites',
70
- // component: SitesComponent,
71
- // data: { keep: true }
72
- // },
73
- {
74
- path: 'sections',
75
- children: [
76
- {
77
- path: '',
78
- data: { keep: true },
79
- component: SectionsComponent,
80
- },
81
- {
82
- path: ':sectionsId/entry-types',
83
- children: [
84
- {
85
- path: 'create',
86
- component: CreateOrEditComponent,
87
- },
88
- {
89
- path: ':entryTypesId/edit',
90
- component: CreateOrEditComponent,
91
- },
92
- ],
93
- },
94
- ],
95
- },
96
- ],
97
- },
98
- ],
99
- },
100
- ];
101
-
102
-
103
- @NgModule({
104
- imports: [RouterModule.forChild(routes)],
105
- exports: [RouterModule],
106
- })
107
- export class CmsRoutingModule {
108
- }
@@ -1,108 +0,0 @@
1
- import { NgModule, NgModuleFactory, ModuleWithProviders } from '@angular/core';
2
- import { CoreModule, LazyModuleFactory } from '@abp/ng.core';
3
- import { ThemeSharedModule } from '@abp/ng.theme.shared';
4
- import { CmsRoutingModule } from './cms-routing.module';
5
- import {
6
- CreateComponent,
7
- CreateFieldComponent,
8
- CreateOrEditComponent,
9
- CreateOrEditEntriesComponent,
10
- CreateOrEditFieldComponent,
11
- EditComponent,
12
- EditFieldComponent,
13
- EntriesComponent,
14
- FieldGroupComponent,
15
- FieldsComponent,
16
- SectionsComponent,
17
- // SitesComponent,
18
- MatrixConfigComponent,
19
- MatrixControlComponent,
20
- TableConfigComponent,
21
- TableControlComponent,
22
- EntryConfigComponent,
23
- EntryControlComponent,
24
- FieldControlGroup
25
- } from './components';
26
- import {
27
- NgbDropdownModule,
28
- NgbNavModule,
29
- NgbAccordionModule,
30
- } from '@ng-bootstrap/ng-bootstrap';
31
- import { FormsModule } from '@angular/forms';
32
- import { PageModule } from '@abp/ng.components/page';
33
- import { CMS_TOOLBAR_ACTION_CONTRIBUTORS } from './toolbar';
34
- import { NzSelectModule } from 'ng-zorro-antd/select';
35
- import { DynamicFormModule } from '@dignite-ng/expand.dynamic-form';
36
- import { fielFieldControlGroup } from '@dignite-ng/expand.file-explorer';
37
- import { ckEditorFieldControlGroup } from '@dignite-ng/expand.ck-editor';
38
- import { DomainsComponent } from './components/admin/domains/domains.component';
39
- import { SettingTabsService } from '@abp/ng.setting-management/config';
40
-
41
- @NgModule({
42
- declarations: [
43
- EntriesComponent,
44
- FieldsComponent,
45
- // SitesComponent,
46
- SectionsComponent,
47
- FieldGroupComponent,
48
- CreateFieldComponent,
49
- EditFieldComponent,
50
- CreateOrEditFieldComponent,
51
- CreateOrEditComponent,
52
- CreateComponent,
53
- EditComponent,
54
- CreateOrEditEntriesComponent,
55
- TableConfigComponent,
56
- TableControlComponent,
57
- MatrixConfigComponent,
58
- MatrixControlComponent,
59
- EntryConfigComponent,
60
- EntryControlComponent,
61
- DomainsComponent,
62
- ],
63
- imports: [
64
- CoreModule,
65
- ThemeSharedModule,
66
- CmsRoutingModule,
67
- FormsModule,
68
- NgbNavModule,
69
- NgbAccordionModule,
70
- NgbDropdownModule,
71
- PageModule,
72
- NzSelectModule,
73
- DynamicFormModule.forRoot({
74
- cmsFieldControlGroup: [...FieldControlGroup, ...fielFieldControlGroup, ...ckEditorFieldControlGroup]
75
- }),
76
- ],
77
- exports: [
78
- TableConfigComponent,
79
- TableControlComponent,
80
- MatrixConfigComponent,
81
- MatrixControlComponent,
82
- EntryConfigComponent,
83
- EntryControlComponent,
84
- DomainsComponent
85
- ],
86
- providers: [
87
- ],
88
-
89
- })
90
- export class CmsModule {
91
-
92
-
93
-
94
- static forChild(options: any = {}): ModuleWithProviders<CmsModule> {
95
- return {
96
- ngModule: CmsModule,
97
- providers: [
98
- {
99
- provide: CMS_TOOLBAR_ACTION_CONTRIBUTORS,
100
- useValue: options.toolbarActionContributors,
101
- },
102
- ],
103
- };
104
- }
105
- static forLazy(options: any = {}): NgModuleFactory<CmsModule> {
106
- return new LazyModuleFactory(CmsModule.forChild(options));
107
- }
108
- }
@@ -1,19 +0,0 @@
1
- <form [formGroup]="newEntity" (ngSubmit)="SaveSubmit()">
2
-
3
- <div class="d-flex align-items-center justify-content-between">
4
- <h2>{{'Cms::Domain'|abpLocalization}}</h2>
5
- <button class="btn btn-primary btn-sm" type="submit"><i
6
- class="me-1 fas fa-save"></i>{{'AbpUi::Save'|abpLocalization}}</button>
7
- </div>
8
- <hr class="my-3" />
9
- <div class="mb-2">
10
- <!-- <label class="form-label" for="title">{{'Cms::Domain' | abpLocalization}}</label> -->
11
- <input type="text" class="form-control" formControlName="domainName">
12
- <div class="text-danger invalid-feedback" *ngIf="domainNameInput.errors?.repetition">
13
- {{domainNameInput.errors?.repetition}}
14
- </div>
15
- <div class="form-text">此处是填写域名的描述,需要一个字段统一配置域名多语言,</div>
16
-
17
- </div>
18
- <hr class="my-3" />
19
- </form>
@@ -1,21 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { DomainsComponent } from './domains.component';
4
-
5
- describe('DomainsComponent', () => {
6
- let component: DomainsComponent;
7
- let fixture: ComponentFixture<DomainsComponent>;
8
-
9
- beforeEach(() => {
10
- TestBed.configureTestingModule({
11
- declarations: [DomainsComponent]
12
- });
13
- fixture = TestBed.createComponent(DomainsComponent);
14
- component = fixture.componentInstance;
15
- fixture.detectChanges();
16
- });
17
-
18
- it('should create', () => {
19
- expect(component).toBeTruthy();
20
- });
21
- });
@@ -1,99 +0,0 @@
1
- import { Component, inject } from '@angular/core';
2
- import { AbstractControl, FormControl, FormGroup, ValidationErrors } from '@angular/forms';
3
- import { Observable } from 'rxjs';
4
- import { DomainAdminService } from '../../../proxy/admin/domains';
5
- import { LocalizationService } from '@abp/ng.core';
6
- import { ToasterService } from '@abp/ng.theme.shared';
7
-
8
- @Component({
9
- selector: 'cms-domains',
10
- templateUrl: './domains.component.html',
11
- styleUrls: ['./domains.component.scss']
12
- })
13
- export class DomainsComponent {
14
-
15
- private toaster = inject(ToasterService)
16
- private _DomainAdminService = inject(DomainAdminService);
17
- private _LocalizationService = inject(LocalizationService);
18
-
19
-
20
-
21
- /**表单实体 */
22
- newEntity: FormGroup | undefined;
23
-
24
- /**domain详情 */
25
- domainInfo:any=''
26
- get domainNameInput() {
27
- return this.newEntity.get('domainName')
28
- }
29
-
30
- async ngOnInit(): Promise<void> {
31
- //Called after the constructor, initializing input properties, and the first call to ngOnChanges.
32
- //Add 'implements OnInit' to the class.
33
-
34
- this.newEntity = new FormGroup({
35
- domainName: new FormControl('', {
36
- asyncValidators: this.repetitionAsyncValidator(),
37
- updateOn: 'blur'
38
- })
39
- })
40
- await this.getDomainsBound()
41
-
42
- }
43
-
44
- /**用于获取已绑定的域名 */
45
- getDomainsBound(){
46
- return new Promise((resolve,rejects)=>{
47
- this._DomainAdminService.getBound().subscribe(res=>{
48
- this.domainNameInput.patchValue(res?.domainName||'')
49
- this.domainInfo=res
50
- resolve(res)
51
- })
52
- })
53
- }
54
-
55
- //检验域名是否已经绑定
56
- repetitionAsyncValidator() {
57
- return (ctrl: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => {
58
- return new Promise(resolve => {
59
- let domainNameInput = this.domainNameInput.value
60
- if (!domainNameInput) {
61
- resolve(null);
62
- return
63
- }
64
- if (this.domainInfo?.domainName===domainNameInput) {
65
- resolve(null);
66
- return
67
- }
68
- var patt = /^(?!-)[A-Za-z0-9-]{1,63}(?<!-)\.[A-Za-z]{2,6}$/;
69
- if(!patt.test(domainNameInput)){
70
-
71
- resolve({ repetition: this._LocalizationService.instant(`AbpValidation::ThisFieldMustMatchTheRegularExpression{0}`, patt.toString()) });
72
- console.log(this.newEntity,'newEntity');
73
- return
74
- }
75
-
76
-
77
- this._DomainAdminService.nameExists(domainNameInput).subscribe(res => {
78
- if (res) {
79
- resolve({ repetition: this._LocalizationService.instant(`Cms::DomainName{0}AlreadyExist`, ctrl.value) });
80
- } else {
81
- resolve(null);
82
- }
83
- })
84
- });
85
- };
86
- }
87
-
88
- /**保存 */
89
- SaveSubmit() {
90
- let input = this.newEntity.value
91
- console.log(input, '保存');
92
- this._DomainAdminService.update(input).subscribe(async(res)=>{
93
- this.toaster.success(this._LocalizationService.instant(`AbpUi::保存成功`));
94
- await this.getDomainsBound()
95
- })
96
- }
97
-
98
-
99
- }
@@ -1 +0,0 @@
1
- export * from './domains.component'