Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

400 строки
14 KiB

  1. import { FormGroup, FormControl, Validators } from '@angular/forms';
  2. export const commentForm = new FormGroup({
  3. message: new FormControl(null, [Validators.required]),
  4. owner: new FormControl(null, []),
  5. ownerName: new FormControl(null, []),
  6. post: new FormControl(null, []),
  7. createdAt: new FormControl(null, [])
  8. });
  9. export const commentJsonhalForm = new FormGroup({
  10. _links: new FormControl(null, []),
  11. message: new FormControl(null, [Validators.required]),
  12. owner: new FormControl(null, []),
  13. ownerName: new FormControl(null, []),
  14. post: new FormControl(null, []),
  15. createdAt: new FormControl(null, [])
  16. });
  17. export const commentJsonldForm = new FormGroup({
  18. message: new FormControl(null, [Validators.required]),
  19. owner: new FormControl(null, []),
  20. ownerName: new FormControl(null, []),
  21. post: new FormControl(null, []),
  22. createdAt: new FormControl(null, [])
  23. });
  24. export const contactForm = new FormGroup({
  25. firstName: new FormControl(null, [Validators.required]),
  26. lastName: new FormControl(null, [Validators.required]),
  27. partner: new FormControl(null, [Validators.required]),
  28. birthday: new FormControl(null, []),
  29. image: new FormControl(null, []),
  30. imageUrl: new FormControl(null, []),
  31. position: new FormControl(null, []),
  32. phone: new FormControl(null, []),
  33. email: new FormControl(null, [Validators.email]),
  34. posts: new FormControl(null, []),
  35. createdAt: new FormControl(null, [])
  36. });
  37. export const contactJsonhalForm = new FormGroup({
  38. _links: new FormControl(null, []),
  39. firstName: new FormControl(null, [Validators.required]),
  40. lastName: new FormControl(null, [Validators.required]),
  41. partner: new FormControl(null, [Validators.required]),
  42. birthday: new FormControl(null, []),
  43. image: new FormControl(null, []),
  44. imageUrl: new FormControl(null, []),
  45. position: new FormControl(null, []),
  46. phone: new FormControl(null, []),
  47. email: new FormControl(null, [Validators.email]),
  48. posts: new FormControl(null, []),
  49. createdAt: new FormControl(null, [])
  50. });
  51. export const contactJsonldForm = new FormGroup({
  52. firstName: new FormControl(null, [Validators.required]),
  53. lastName: new FormControl(null, [Validators.required]),
  54. partner: new FormControl(null, [Validators.required]),
  55. birthday: new FormControl(null, []),
  56. image: new FormControl(null, []),
  57. imageUrl: new FormControl(null, []),
  58. position: new FormControl(null, []),
  59. phone: new FormControl(null, []),
  60. email: new FormControl(null, [Validators.email]),
  61. posts: new FormControl(null, []),
  62. createdAt: new FormControl(null, [])
  63. });
  64. export const mediaMediaObjectReadForm = new FormGroup({
  65. contentUrl: new FormControl(null, [])
  66. });
  67. export const mediaJsonhalMediaObjectReadForm = new FormGroup({
  68. _links: new FormControl(null, []),
  69. contentUrl: new FormControl(null, [])
  70. });
  71. export const mediaJsonldMediaObjectReadForm = new FormGroup({
  72. contentUrl: new FormControl(null, [])
  73. });
  74. export const partnerForm = new FormGroup({
  75. name: new FormControl(null, [Validators.required]),
  76. partnerType: new FormControl(null, [Validators.required]),
  77. street: new FormControl(null, []),
  78. streetNo: new FormControl(null, []),
  79. zip: new FormControl(null, []),
  80. city: new FormControl(null, []),
  81. country: new FormControl(null, []),
  82. website: new FormControl(null, []),
  83. logo: new FormControl(null, []),
  84. logoUrl: new FormControl(null, []),
  85. createdAt: new FormControl(null, []),
  86. posts: new FormControl(null, []),
  87. contacts: new FormControl(null, [])
  88. });
  89. export const partnerJsonhalForm = new FormGroup({
  90. _links: new FormControl(null, []),
  91. name: new FormControl(null, [Validators.required]),
  92. partnerType: new FormControl(null, [Validators.required]),
  93. street: new FormControl(null, []),
  94. streetNo: new FormControl(null, []),
  95. zip: new FormControl(null, []),
  96. city: new FormControl(null, []),
  97. country: new FormControl(null, []),
  98. website: new FormControl(null, []),
  99. logo: new FormControl(null, []),
  100. logoUrl: new FormControl(null, []),
  101. createdAt: new FormControl(null, []),
  102. posts: new FormControl(null, []),
  103. contacts: new FormControl(null, [])
  104. });
  105. export const partnerJsonldForm = new FormGroup({
  106. name: new FormControl(null, [Validators.required]),
  107. partnerType: new FormControl(null, [Validators.required]),
  108. street: new FormControl(null, []),
  109. streetNo: new FormControl(null, []),
  110. zip: new FormControl(null, []),
  111. city: new FormControl(null, []),
  112. country: new FormControl(null, []),
  113. website: new FormControl(null, []),
  114. logo: new FormControl(null, []),
  115. logoUrl: new FormControl(null, []),
  116. createdAt: new FormControl(null, []),
  117. posts: new FormControl(null, []),
  118. contacts: new FormControl(null, [])
  119. });
  120. export const postForm = new FormGroup({
  121. headline: new FormControl(null, [Validators.required]),
  122. message: new FormControl(null, [Validators.required]),
  123. owner: new FormControl(null, []),
  124. ownerName: new FormControl(null, []),
  125. partner: new FormControl(null, []),
  126. contact: new FormControl(null, []),
  127. sale: new FormControl(null, []),
  128. comments: new FormControl(null, []),
  129. createdAt: new FormControl(null, [])
  130. });
  131. export const postPostingCreateForm = new FormGroup({
  132. headline: new FormControl(null, [Validators.required]),
  133. message: new FormControl(null, [Validators.required]),
  134. partner: new FormControl(null, []),
  135. contact: new FormControl(null, []),
  136. sale: new FormControl(null, [])
  137. });
  138. export const postPostingPatchForm = new FormGroup({
  139. headline: new FormControl(null, [Validators.required]),
  140. message: new FormControl(null, [Validators.required])
  141. });
  142. export const postJsonhalForm = new FormGroup({
  143. _links: new FormControl(null, []),
  144. headline: new FormControl(null, [Validators.required]),
  145. message: new FormControl(null, [Validators.required]),
  146. owner: new FormControl(null, []),
  147. ownerName: new FormControl(null, []),
  148. partner: new FormControl(null, []),
  149. contact: new FormControl(null, []),
  150. sale: new FormControl(null, []),
  151. comments: new FormControl(null, []),
  152. createdAt: new FormControl(null, [])
  153. });
  154. export const postJsonhalPostingCreateForm = new FormGroup({
  155. _links: new FormControl(null, []),
  156. headline: new FormControl(null, [Validators.required]),
  157. message: new FormControl(null, [Validators.required]),
  158. partner: new FormControl(null, []),
  159. contact: new FormControl(null, []),
  160. sale: new FormControl(null, [])
  161. });
  162. export const postJsonldForm = new FormGroup({
  163. headline: new FormControl(null, [Validators.required]),
  164. message: new FormControl(null, [Validators.required]),
  165. owner: new FormControl(null, []),
  166. ownerName: new FormControl(null, []),
  167. partner: new FormControl(null, []),
  168. contact: new FormControl(null, []),
  169. sale: new FormControl(null, []),
  170. comments: new FormControl(null, []),
  171. createdAt: new FormControl(null, [])
  172. });
  173. export const postJsonldPostingCreateForm = new FormGroup({
  174. headline: new FormControl(null, [Validators.required]),
  175. message: new FormControl(null, [Validators.required]),
  176. partner: new FormControl(null, []),
  177. contact: new FormControl(null, []),
  178. sale: new FormControl(null, [])
  179. });
  180. export const productForm = new FormGroup({
  181. name: new FormControl(null, [Validators.required]),
  182. description: new FormControl(null, []),
  183. image: new FormControl(null, []),
  184. imageUrl: new FormControl(null, []),
  185. createdAt: new FormControl(null, [])
  186. });
  187. export const productJsonhalForm = new FormGroup({
  188. _links: new FormControl(null, []),
  189. name: new FormControl(null, [Validators.required]),
  190. description: new FormControl(null, []),
  191. image: new FormControl(null, []),
  192. imageUrl: new FormControl(null, []),
  193. createdAt: new FormControl(null, [])
  194. });
  195. export const productJsonldForm = new FormGroup({
  196. name: new FormControl(null, [Validators.required]),
  197. description: new FormControl(null, []),
  198. image: new FormControl(null, []),
  199. imageUrl: new FormControl(null, []),
  200. createdAt: new FormControl(null, [])
  201. });
  202. export const saleForm = new FormGroup({
  203. owner: new FormControl(null, []),
  204. ownerName: new FormControl(null, []),
  205. partner: new FormControl(null, []),
  206. partnerName: new FormControl(null, []),
  207. product: new FormControl(null, []),
  208. productName: new FormControl(null, []),
  209. turnover: new FormControl(null, [Validators.required]),
  210. profit: new FormControl(null, []),
  211. comment: new FormControl(null, []),
  212. createdAt: new FormControl(null, []),
  213. posts: new FormControl(null, [])
  214. });
  215. export const saleJsonhalForm = new FormGroup({
  216. _links: new FormControl(null, []),
  217. owner: new FormControl(null, []),
  218. ownerName: new FormControl(null, []),
  219. partner: new FormControl(null, []),
  220. partnerName: new FormControl(null, []),
  221. product: new FormControl(null, []),
  222. productName: new FormControl(null, []),
  223. turnover: new FormControl(null, [Validators.required]),
  224. profit: new FormControl(null, []),
  225. comment: new FormControl(null, []),
  226. createdAt: new FormControl(null, []),
  227. posts: new FormControl(null, [])
  228. });
  229. export const saleJsonldForm = new FormGroup({
  230. owner: new FormControl(null, []),
  231. ownerName: new FormControl(null, []),
  232. partner: new FormControl(null, []),
  233. partnerName: new FormControl(null, []),
  234. product: new FormControl(null, []),
  235. productName: new FormControl(null, []),
  236. turnover: new FormControl(null, [Validators.required]),
  237. profit: new FormControl(null, []),
  238. comment: new FormControl(null, []),
  239. createdAt: new FormControl(null, []),
  240. posts: new FormControl(null, [])
  241. });
  242. export const saleSummaryForm = new FormGroup({
  243. owner: new FormControl(null, []),
  244. ownerName: new FormControl(null, []),
  245. turnover: new FormControl(null, []),
  246. profit: new FormControl(null, [])
  247. });
  248. export const saleSummaryJsonhalForm = new FormGroup({
  249. _links: new FormControl(null, []),
  250. owner: new FormControl(null, []),
  251. ownerName: new FormControl(null, []),
  252. turnover: new FormControl(null, []),
  253. profit: new FormControl(null, [])
  254. });
  255. export const saleSummaryJsonldForm = new FormGroup({
  256. owner: new FormControl(null, []),
  257. ownerName: new FormControl(null, []),
  258. turnover: new FormControl(null, []),
  259. profit: new FormControl(null, [])
  260. });
  261. export const taskForm = new FormGroup({
  262. headline: new FormControl(null, [Validators.required]),
  263. description: new FormControl(null, [Validators.required]),
  264. createdBy: new FormControl(null, []),
  265. createdByName: new FormControl(null, []),
  266. assignedTo: new FormControl(null, [Validators.required]),
  267. assignedToName: new FormControl(null, []),
  268. dueAt: new FormControl(null, [Validators.required]),
  269. partner: new FormControl(null, []),
  270. partnerName: new FormControl(null, []),
  271. contact: new FormControl(null, []),
  272. contactName: new FormControl(null, []),
  273. prio: new FormControl(null, [Validators.required]),
  274. completed: new FormControl(null, [Validators.required]),
  275. taskNotes: new FormControl(null, []),
  276. createdAt: new FormControl(null, [])
  277. });
  278. export const taskJsonhalForm = new FormGroup({
  279. _links: new FormControl(null, []),
  280. headline: new FormControl(null, [Validators.required]),
  281. description: new FormControl(null, [Validators.required]),
  282. createdBy: new FormControl(null, []),
  283. createdByName: new FormControl(null, []),
  284. assignedTo: new FormControl(null, [Validators.required]),
  285. assignedToName: new FormControl(null, []),
  286. dueAt: new FormControl(null, [Validators.required]),
  287. partner: new FormControl(null, []),
  288. partnerName: new FormControl(null, []),
  289. contact: new FormControl(null, []),
  290. contactName: new FormControl(null, []),
  291. prio: new FormControl(null, [Validators.required]),
  292. completed: new FormControl(null, [Validators.required]),
  293. taskNotes: new FormControl(null, []),
  294. createdAt: new FormControl(null, [])
  295. });
  296. export const taskJsonldForm = new FormGroup({
  297. headline: new FormControl(null, [Validators.required]),
  298. description: new FormControl(null, [Validators.required]),
  299. createdBy: new FormControl(null, []),
  300. createdByName: new FormControl(null, []),
  301. assignedTo: new FormControl(null, [Validators.required]),
  302. assignedToName: new FormControl(null, []),
  303. dueAt: new FormControl(null, [Validators.required]),
  304. partner: new FormControl(null, []),
  305. partnerName: new FormControl(null, []),
  306. contact: new FormControl(null, []),
  307. contactName: new FormControl(null, []),
  308. prio: new FormControl(null, [Validators.required]),
  309. completed: new FormControl(null, [Validators.required]),
  310. taskNotes: new FormControl(null, []),
  311. createdAt: new FormControl(null, [])
  312. });
  313. export const taskNoteForm = new FormGroup({
  314. message: new FormControl(null, [Validators.required]),
  315. owner: new FormControl(null, []),
  316. ownerName: new FormControl(null, []),
  317. task: new FormControl(null, []),
  318. createdAt: new FormControl(null, [])
  319. });
  320. export const taskNoteJsonhalForm = new FormGroup({
  321. _links: new FormControl(null, []),
  322. message: new FormControl(null, [Validators.required]),
  323. owner: new FormControl(null, []),
  324. ownerName: new FormControl(null, []),
  325. task: new FormControl(null, []),
  326. createdAt: new FormControl(null, [])
  327. });
  328. export const taskNoteJsonldForm = new FormGroup({
  329. message: new FormControl(null, [Validators.required]),
  330. owner: new FormControl(null, []),
  331. ownerName: new FormControl(null, []),
  332. task: new FormControl(null, []),
  333. createdAt: new FormControl(null, [])
  334. });
  335. export const userForm = new FormGroup({
  336. email: new FormControl(null, [Validators.required, Validators.email]),
  337. firstName: new FormControl(null, [Validators.required]),
  338. lastName: new FormControl(null, [Validators.required]),
  339. image: new FormControl(null, []),
  340. password: new FormControl(null, []),
  341. active: new FormControl(null, []),
  342. createdAt: new FormControl(null, [])
  343. });
  344. export const userJsonhalForm = new FormGroup({
  345. _links: new FormControl(null, []),
  346. email: new FormControl(null, [Validators.required, Validators.email]),
  347. firstName: new FormControl(null, [Validators.required]),
  348. lastName: new FormControl(null, [Validators.required]),
  349. image: new FormControl(null, []),
  350. password: new FormControl(null, []),
  351. active: new FormControl(null, []),
  352. createdAt: new FormControl(null, [])
  353. });
  354. export const userJsonldForm = new FormGroup({
  355. email: new FormControl(null, [Validators.required, Validators.email]),
  356. firstName: new FormControl(null, [Validators.required]),
  357. lastName: new FormControl(null, [Validators.required]),
  358. image: new FormControl(null, []),
  359. password: new FormControl(null, []),
  360. active: new FormControl(null, []),
  361. createdAt: new FormControl(null, [])
  362. });