Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

246 wiersze
8.5 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. type: 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. contacts: new FormControl(null, [])
  87. });
  88. export const partnerJsonhalForm = new FormGroup({
  89. _links: new FormControl(null, []),
  90. name: new FormControl(null, [Validators.required]),
  91. type: new FormControl(null, [Validators.required]),
  92. street: new FormControl(null, []),
  93. streetNo: new FormControl(null, []),
  94. zip: new FormControl(null, []),
  95. city: new FormControl(null, []),
  96. country: new FormControl(null, []),
  97. website: new FormControl(null, []),
  98. logo: new FormControl(null, []),
  99. logoUrl: new FormControl(null, []),
  100. createdAt: new FormControl(null, []),
  101. contacts: new FormControl(null, [])
  102. });
  103. export const partnerJsonldForm = new FormGroup({
  104. name: new FormControl(null, [Validators.required]),
  105. type: new FormControl(null, [Validators.required]),
  106. street: new FormControl(null, []),
  107. streetNo: new FormControl(null, []),
  108. zip: new FormControl(null, []),
  109. city: new FormControl(null, []),
  110. country: new FormControl(null, []),
  111. website: new FormControl(null, []),
  112. logo: new FormControl(null, []),
  113. logoUrl: new FormControl(null, []),
  114. createdAt: new FormControl(null, []),
  115. contacts: new FormControl(null, [])
  116. });
  117. export const postForm = new FormGroup({
  118. headline: new FormControl(null, [Validators.required]),
  119. message: new FormControl(null, [Validators.required]),
  120. owner: new FormControl(null, []),
  121. ownerName: new FormControl(null, []),
  122. partner: new FormControl(null, []),
  123. contact: new FormControl(null, []),
  124. comments: new FormControl(null, []),
  125. createdAt: new FormControl(null, [])
  126. });
  127. export const postPostingCreateForm = new FormGroup({
  128. headline: new FormControl(null, [Validators.required]),
  129. message: new FormControl(null, [Validators.required]),
  130. partner: new FormControl(null, []),
  131. contact: new FormControl(null, [])
  132. });
  133. export const postPostingPatchForm = new FormGroup({
  134. headline: new FormControl(null, [Validators.required]),
  135. message: new FormControl(null, [Validators.required])
  136. });
  137. export const postJsonhalForm = new FormGroup({
  138. _links: new FormControl(null, []),
  139. headline: new FormControl(null, [Validators.required]),
  140. message: new FormControl(null, [Validators.required]),
  141. owner: new FormControl(null, []),
  142. ownerName: new FormControl(null, []),
  143. partner: new FormControl(null, []),
  144. contact: new FormControl(null, []),
  145. comments: new FormControl(null, []),
  146. createdAt: new FormControl(null, [])
  147. });
  148. export const postJsonhalPostingCreateForm = new FormGroup({
  149. _links: new FormControl(null, []),
  150. headline: new FormControl(null, [Validators.required]),
  151. message: new FormControl(null, [Validators.required]),
  152. partner: new FormControl(null, []),
  153. contact: new FormControl(null, [])
  154. });
  155. export const postJsonldForm = new FormGroup({
  156. headline: new FormControl(null, [Validators.required]),
  157. message: new FormControl(null, [Validators.required]),
  158. owner: new FormControl(null, []),
  159. ownerName: new FormControl(null, []),
  160. partner: new FormControl(null, []),
  161. contact: new FormControl(null, []),
  162. comments: new FormControl(null, []),
  163. createdAt: new FormControl(null, [])
  164. });
  165. export const postJsonldPostingCreateForm = new FormGroup({
  166. headline: new FormControl(null, [Validators.required]),
  167. message: new FormControl(null, [Validators.required]),
  168. partner: new FormControl(null, []),
  169. contact: new FormControl(null, [])
  170. });
  171. export const productForm = new FormGroup({
  172. name: new FormControl(null, [Validators.required]),
  173. description: new FormControl(null, []),
  174. image: new FormControl(null, []),
  175. imageUrl: new FormControl(null, []),
  176. createdAt: new FormControl(null, [])
  177. });
  178. export const productJsonhalForm = new FormGroup({
  179. _links: new FormControl(null, []),
  180. name: new FormControl(null, [Validators.required]),
  181. description: new FormControl(null, []),
  182. image: new FormControl(null, []),
  183. imageUrl: new FormControl(null, []),
  184. createdAt: new FormControl(null, [])
  185. });
  186. export const productJsonldForm = new FormGroup({
  187. name: new FormControl(null, [Validators.required]),
  188. description: new FormControl(null, []),
  189. image: new FormControl(null, []),
  190. imageUrl: new FormControl(null, []),
  191. createdAt: new FormControl(null, [])
  192. });
  193. export const userForm = new FormGroup({
  194. email: new FormControl(null, [Validators.required, Validators.email]),
  195. firstName: new FormControl(null, [Validators.required]),
  196. lastName: new FormControl(null, [Validators.required]),
  197. image: new FormControl(null, []),
  198. password: new FormControl(null, []),
  199. active: new FormControl(null, []),
  200. createdAt: new FormControl(null, [])
  201. });
  202. export const userJsonhalForm = new FormGroup({
  203. _links: new FormControl(null, []),
  204. email: new FormControl(null, [Validators.required, Validators.email]),
  205. firstName: new FormControl(null, [Validators.required]),
  206. lastName: new FormControl(null, [Validators.required]),
  207. image: new FormControl(null, []),
  208. password: new FormControl(null, []),
  209. active: new FormControl(null, []),
  210. createdAt: new FormControl(null, [])
  211. });
  212. export const userJsonldForm = new FormGroup({
  213. email: new FormControl(null, [Validators.required, Validators.email]),
  214. firstName: new FormControl(null, [Validators.required]),
  215. lastName: new FormControl(null, [Validators.required]),
  216. image: new FormControl(null, []),
  217. password: new FormControl(null, []),
  218. active: new FormControl(null, []),
  219. createdAt: new FormControl(null, [])
  220. });