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

481 строка
17 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 documentForm = new FormGroup({
  65. createdBy: new FormControl(null, []),
  66. createdByName: new FormControl(null, []),
  67. name: new FormControl(null, [Validators.required]),
  68. description: new FormControl(null, []),
  69. partner: new FormControl(null, []),
  70. partnerName: new FormControl(null, []),
  71. product: new FormControl(null, []),
  72. productName: new FormControl(null, []),
  73. documentObject: new FormControl(null, [Validators.required]),
  74. documentUrl: new FormControl(null, []),
  75. createdAt: new FormControl(null, [])
  76. });
  77. export const documentJsonhalForm = new FormGroup({
  78. _links: new FormControl(null, []),
  79. createdBy: new FormControl(null, []),
  80. createdByName: new FormControl(null, []),
  81. name: new FormControl(null, [Validators.required]),
  82. description: new FormControl(null, []),
  83. partner: new FormControl(null, []),
  84. partnerName: new FormControl(null, []),
  85. product: new FormControl(null, []),
  86. productName: new FormControl(null, []),
  87. documentObject: new FormControl(null, [Validators.required]),
  88. documentUrl: new FormControl(null, []),
  89. createdAt: new FormControl(null, [])
  90. });
  91. export const documentJsonldForm = new FormGroup({
  92. createdBy: new FormControl(null, []),
  93. createdByName: new FormControl(null, []),
  94. name: new FormControl(null, [Validators.required]),
  95. description: new FormControl(null, []),
  96. partner: new FormControl(null, []),
  97. partnerName: new FormControl(null, []),
  98. product: new FormControl(null, []),
  99. productName: new FormControl(null, []),
  100. documentObject: new FormControl(null, [Validators.required]),
  101. documentUrl: new FormControl(null, []),
  102. createdAt: new FormControl(null, [])
  103. });
  104. export const documentObjectDocumentObjectReadForm = new FormGroup({
  105. contentUrl: new FormControl(null, [])
  106. });
  107. export const documentObjectJsonhalDocumentObjectReadForm = new FormGroup({
  108. _links: new FormControl(null, []),
  109. contentUrl: new FormControl(null, [])
  110. });
  111. export const documentObjectJsonldDocumentObjectReadForm = new FormGroup({
  112. contentUrl: new FormControl(null, [])
  113. });
  114. export const mediaObjectMediaObjectReadForm = new FormGroup({
  115. contentUrl: new FormControl(null, [])
  116. });
  117. export const mediaObjectJsonhalMediaObjectReadForm = new FormGroup({
  118. _links: new FormControl(null, []),
  119. contentUrl: new FormControl(null, [])
  120. });
  121. export const mediaObjectJsonldMediaObjectReadForm = new FormGroup({
  122. contentUrl: new FormControl(null, [])
  123. });
  124. export const partnerForm = new FormGroup({
  125. name: new FormControl(null, [Validators.required]),
  126. partnerType: new FormControl(null, [Validators.required]),
  127. street: new FormControl(null, []),
  128. streetNo: new FormControl(null, []),
  129. zip: new FormControl(null, []),
  130. city: new FormControl(null, []),
  131. country: new FormControl(null, []),
  132. website: new FormControl(null, []),
  133. logo: new FormControl(null, []),
  134. logoUrl: new FormControl(null, []),
  135. createdAt: new FormControl(null, []),
  136. posts: new FormControl(null, []),
  137. contacts: new FormControl(null, [])
  138. });
  139. export const partnerJsonhalForm = new FormGroup({
  140. _links: new FormControl(null, []),
  141. name: new FormControl(null, [Validators.required]),
  142. partnerType: new FormControl(null, [Validators.required]),
  143. street: new FormControl(null, []),
  144. streetNo: new FormControl(null, []),
  145. zip: new FormControl(null, []),
  146. city: new FormControl(null, []),
  147. country: new FormControl(null, []),
  148. website: new FormControl(null, []),
  149. logo: new FormControl(null, []),
  150. logoUrl: new FormControl(null, []),
  151. createdAt: new FormControl(null, []),
  152. posts: new FormControl(null, []),
  153. contacts: new FormControl(null, [])
  154. });
  155. export const partnerJsonldForm = new FormGroup({
  156. name: new FormControl(null, [Validators.required]),
  157. partnerType: new FormControl(null, [Validators.required]),
  158. street: new FormControl(null, []),
  159. streetNo: new FormControl(null, []),
  160. zip: new FormControl(null, []),
  161. city: new FormControl(null, []),
  162. country: new FormControl(null, []),
  163. website: new FormControl(null, []),
  164. logo: new FormControl(null, []),
  165. logoUrl: new FormControl(null, []),
  166. createdAt: new FormControl(null, []),
  167. posts: new FormControl(null, []),
  168. contacts: new FormControl(null, [])
  169. });
  170. export const partnerFollowForm = new FormGroup({
  171. user: new FormControl(null, []),
  172. userName: new FormControl(null, []),
  173. partner: new FormControl(null, [Validators.required]),
  174. partnerName: new FormControl(null, []),
  175. createdAt: new FormControl(null, [])
  176. });
  177. export const partnerFollowJsonhalForm = new FormGroup({
  178. _links: new FormControl(null, []),
  179. user: new FormControl(null, []),
  180. userName: new FormControl(null, []),
  181. partner: new FormControl(null, [Validators.required]),
  182. partnerName: new FormControl(null, []),
  183. createdAt: new FormControl(null, [])
  184. });
  185. export const partnerFollowJsonldForm = new FormGroup({
  186. user: new FormControl(null, []),
  187. userName: new FormControl(null, []),
  188. partner: new FormControl(null, [Validators.required]),
  189. partnerName: new FormControl(null, []),
  190. createdAt: new FormControl(null, [])
  191. });
  192. export const postForm = new FormGroup({
  193. headline: new FormControl(null, [Validators.required]),
  194. message: new FormControl(null, [Validators.required]),
  195. owner: new FormControl(null, []),
  196. ownerName: new FormControl(null, []),
  197. partner: new FormControl(null, []),
  198. contact: new FormControl(null, []),
  199. sale: new FormControl(null, []),
  200. comments: new FormControl(null, []),
  201. createdAt: new FormControl(null, [])
  202. });
  203. export const postPostingCreateForm = new FormGroup({
  204. headline: new FormControl(null, [Validators.required]),
  205. message: new FormControl(null, [Validators.required]),
  206. partner: new FormControl(null, []),
  207. contact: new FormControl(null, []),
  208. sale: new FormControl(null, [])
  209. });
  210. export const postPostingPatchForm = new FormGroup({
  211. headline: new FormControl(null, [Validators.required]),
  212. message: new FormControl(null, [Validators.required])
  213. });
  214. export const postJsonhalForm = new FormGroup({
  215. _links: new FormControl(null, []),
  216. headline: new FormControl(null, [Validators.required]),
  217. message: new FormControl(null, [Validators.required]),
  218. owner: new FormControl(null, []),
  219. ownerName: new FormControl(null, []),
  220. partner: new FormControl(null, []),
  221. contact: new FormControl(null, []),
  222. sale: new FormControl(null, []),
  223. comments: new FormControl(null, []),
  224. createdAt: new FormControl(null, [])
  225. });
  226. export const postJsonhalPostingCreateForm = new FormGroup({
  227. _links: new FormControl(null, []),
  228. headline: new FormControl(null, [Validators.required]),
  229. message: new FormControl(null, [Validators.required]),
  230. partner: new FormControl(null, []),
  231. contact: new FormControl(null, []),
  232. sale: new FormControl(null, [])
  233. });
  234. export const postJsonldForm = new FormGroup({
  235. headline: new FormControl(null, [Validators.required]),
  236. message: new FormControl(null, [Validators.required]),
  237. owner: new FormControl(null, []),
  238. ownerName: new FormControl(null, []),
  239. partner: new FormControl(null, []),
  240. contact: new FormControl(null, []),
  241. sale: new FormControl(null, []),
  242. comments: new FormControl(null, []),
  243. createdAt: new FormControl(null, [])
  244. });
  245. export const postJsonldPostingCreateForm = new FormGroup({
  246. headline: new FormControl(null, [Validators.required]),
  247. message: new FormControl(null, [Validators.required]),
  248. partner: new FormControl(null, []),
  249. contact: new FormControl(null, []),
  250. sale: new FormControl(null, [])
  251. });
  252. export const productForm = new FormGroup({
  253. name: new FormControl(null, [Validators.required]),
  254. description: new FormControl(null, []),
  255. image: new FormControl(null, []),
  256. imageUrl: new FormControl(null, []),
  257. createdAt: new FormControl(null, [])
  258. });
  259. export const productJsonhalForm = new FormGroup({
  260. _links: new FormControl(null, []),
  261. name: new FormControl(null, [Validators.required]),
  262. description: new FormControl(null, []),
  263. image: new FormControl(null, []),
  264. imageUrl: new FormControl(null, []),
  265. createdAt: new FormControl(null, [])
  266. });
  267. export const productJsonldForm = new FormGroup({
  268. name: new FormControl(null, [Validators.required]),
  269. description: new FormControl(null, []),
  270. image: new FormControl(null, []),
  271. imageUrl: new FormControl(null, []),
  272. createdAt: new FormControl(null, [])
  273. });
  274. export const saleForm = new FormGroup({
  275. owner: new FormControl(null, []),
  276. ownerName: new FormControl(null, []),
  277. partner: new FormControl(null, []),
  278. partnerName: new FormControl(null, []),
  279. product: new FormControl(null, []),
  280. productName: new FormControl(null, []),
  281. turnover: new FormControl(null, [Validators.required]),
  282. profit: new FormControl(null, []),
  283. comment: new FormControl(null, []),
  284. createdAt: new FormControl(null, []),
  285. posts: new FormControl(null, [])
  286. });
  287. export const saleJsonhalForm = new FormGroup({
  288. _links: new FormControl(null, []),
  289. owner: new FormControl(null, []),
  290. ownerName: new FormControl(null, []),
  291. partner: new FormControl(null, []),
  292. partnerName: new FormControl(null, []),
  293. product: new FormControl(null, []),
  294. productName: new FormControl(null, []),
  295. turnover: new FormControl(null, [Validators.required]),
  296. profit: new FormControl(null, []),
  297. comment: new FormControl(null, []),
  298. createdAt: new FormControl(null, []),
  299. posts: new FormControl(null, [])
  300. });
  301. export const saleJsonldForm = new FormGroup({
  302. owner: new FormControl(null, []),
  303. ownerName: new FormControl(null, []),
  304. partner: new FormControl(null, []),
  305. partnerName: new FormControl(null, []),
  306. product: new FormControl(null, []),
  307. productName: new FormControl(null, []),
  308. turnover: new FormControl(null, [Validators.required]),
  309. profit: new FormControl(null, []),
  310. comment: new FormControl(null, []),
  311. createdAt: new FormControl(null, []),
  312. posts: new FormControl(null, [])
  313. });
  314. export const saleSummaryForm = new FormGroup({
  315. owner: new FormControl(null, []),
  316. ownerName: new FormControl(null, []),
  317. turnover: new FormControl(null, []),
  318. profit: new FormControl(null, [])
  319. });
  320. export const saleSummaryJsonhalForm = new FormGroup({
  321. _links: new FormControl(null, []),
  322. owner: new FormControl(null, []),
  323. ownerName: new FormControl(null, []),
  324. turnover: new FormControl(null, []),
  325. profit: new FormControl(null, [])
  326. });
  327. export const saleSummaryJsonldForm = new FormGroup({
  328. owner: new FormControl(null, []),
  329. ownerName: new FormControl(null, []),
  330. turnover: new FormControl(null, []),
  331. profit: new FormControl(null, [])
  332. });
  333. export const taskForm = new FormGroup({
  334. headline: new FormControl(null, [Validators.required]),
  335. description: new FormControl(null, [Validators.required]),
  336. createdBy: new FormControl(null, []),
  337. createdByName: new FormControl(null, []),
  338. assignedTo: new FormControl(null, [Validators.required]),
  339. assignedToName: new FormControl(null, []),
  340. dueAt: new FormControl(null, [Validators.required]),
  341. partner: new FormControl(null, []),
  342. partnerName: new FormControl(null, []),
  343. contact: new FormControl(null, []),
  344. contactName: new FormControl(null, []),
  345. prio: new FormControl(null, [Validators.required]),
  346. completed: new FormControl(null, [Validators.required]),
  347. taskNotes: new FormControl(null, []),
  348. createdAt: new FormControl(null, [])
  349. });
  350. export const taskJsonhalForm = new FormGroup({
  351. _links: new FormControl(null, []),
  352. headline: new FormControl(null, [Validators.required]),
  353. description: new FormControl(null, [Validators.required]),
  354. createdBy: new FormControl(null, []),
  355. createdByName: new FormControl(null, []),
  356. assignedTo: new FormControl(null, [Validators.required]),
  357. assignedToName: new FormControl(null, []),
  358. dueAt: new FormControl(null, [Validators.required]),
  359. partner: new FormControl(null, []),
  360. partnerName: new FormControl(null, []),
  361. contact: new FormControl(null, []),
  362. contactName: new FormControl(null, []),
  363. prio: new FormControl(null, [Validators.required]),
  364. completed: new FormControl(null, [Validators.required]),
  365. taskNotes: new FormControl(null, []),
  366. createdAt: new FormControl(null, [])
  367. });
  368. export const taskJsonldForm = new FormGroup({
  369. headline: new FormControl(null, [Validators.required]),
  370. description: new FormControl(null, [Validators.required]),
  371. createdBy: new FormControl(null, []),
  372. createdByName: new FormControl(null, []),
  373. assignedTo: new FormControl(null, [Validators.required]),
  374. assignedToName: new FormControl(null, []),
  375. dueAt: new FormControl(null, [Validators.required]),
  376. partner: new FormControl(null, []),
  377. partnerName: new FormControl(null, []),
  378. contact: new FormControl(null, []),
  379. contactName: new FormControl(null, []),
  380. prio: new FormControl(null, [Validators.required]),
  381. completed: new FormControl(null, [Validators.required]),
  382. taskNotes: new FormControl(null, []),
  383. createdAt: new FormControl(null, [])
  384. });
  385. export const taskNoteForm = new FormGroup({
  386. message: new FormControl(null, [Validators.required]),
  387. owner: new FormControl(null, []),
  388. ownerName: new FormControl(null, []),
  389. task: new FormControl(null, []),
  390. createdAt: new FormControl(null, [])
  391. });
  392. export const taskNoteJsonhalForm = new FormGroup({
  393. _links: new FormControl(null, []),
  394. message: new FormControl(null, [Validators.required]),
  395. owner: new FormControl(null, []),
  396. ownerName: new FormControl(null, []),
  397. task: new FormControl(null, []),
  398. createdAt: new FormControl(null, [])
  399. });
  400. export const taskNoteJsonldForm = new FormGroup({
  401. message: new FormControl(null, [Validators.required]),
  402. owner: new FormControl(null, []),
  403. ownerName: new FormControl(null, []),
  404. task: new FormControl(null, []),
  405. createdAt: new FormControl(null, [])
  406. });
  407. export const userForm = new FormGroup({
  408. email: new FormControl(null, [Validators.required, Validators.email]),
  409. firstName: new FormControl(null, [Validators.required]),
  410. lastName: new FormControl(null, [Validators.required]),
  411. image: new FormControl(null, []),
  412. password: new FormControl(null, []),
  413. active: new FormControl(null, []),
  414. createdAt: new FormControl(null, [])
  415. });
  416. export const userJsonhalForm = new FormGroup({
  417. _links: new FormControl(null, []),
  418. email: new FormControl(null, [Validators.required, Validators.email]),
  419. firstName: new FormControl(null, [Validators.required]),
  420. lastName: new FormControl(null, [Validators.required]),
  421. image: new FormControl(null, []),
  422. password: new FormControl(null, []),
  423. active: new FormControl(null, []),
  424. createdAt: new FormControl(null, [])
  425. });
  426. export const userJsonldForm = new FormGroup({
  427. email: new FormControl(null, [Validators.required, Validators.email]),
  428. firstName: new FormControl(null, [Validators.required]),
  429. lastName: new FormControl(null, [Validators.required]),
  430. image: new FormControl(null, []),
  431. password: new FormControl(null, []),
  432. active: new FormControl(null, []),
  433. createdAt: new FormControl(null, [])
  434. });