@public-ui/sample-react 2.0.9 → 2.0.10

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 (231) hide show
  1. package/dist/1051.js +2 -0
  2. package/dist/1278.js +2 -0
  3. package/dist/1499.js +2 -0
  4. package/dist/{5027.js → 1502.js} +2 -2
  5. package/dist/1517.js +1 -1
  6. package/dist/{9727.js → 1699.js} +2 -2
  7. package/dist/1731.js +2 -0
  8. package/dist/1848.js +2 -0
  9. package/dist/1940.js +2 -0
  10. package/dist/2015.js +2 -0
  11. package/dist/2156.js +2 -0
  12. package/dist/2182.js +2 -0
  13. package/dist/{3034.js → 2186.js} +2 -2
  14. package/dist/2439.js +2 -0
  15. package/dist/2563.js +2 -0
  16. package/dist/2619.js +2 -0
  17. package/dist/2624.js +2 -0
  18. package/dist/2671.js +2 -0
  19. package/dist/2926.js +2 -0
  20. package/dist/3028.js +2 -0
  21. package/dist/{3845.js → 3073.js} +2 -2
  22. package/dist/351.js +2 -0
  23. package/dist/3625.js +2 -0
  24. package/dist/4619.js +2 -0
  25. package/dist/{9681.js → 4627.js} +2 -2
  26. package/dist/4937.js +2 -0
  27. package/dist/5172.js +2 -0
  28. package/dist/528.js +2 -0
  29. package/dist/5342.js +2 -0
  30. package/dist/5431.js +2 -0
  31. package/dist/{4279.js → 5784.js} +2 -2
  32. package/dist/5896.js +2 -0
  33. package/dist/6114.js +2 -0
  34. package/dist/6329.js +2 -0
  35. package/dist/6357.js +2 -0
  36. package/dist/6511.js +2 -0
  37. package/dist/{8734.js → 7086.js} +2 -2
  38. package/dist/710.js +2 -0
  39. package/dist/7160.js +2 -0
  40. package/dist/{5324.js → 7240.js} +2 -2
  41. package/dist/{1218.js → 7435.js} +2 -2
  42. package/dist/7628.js +2 -0
  43. package/dist/{3466.js → 7732.js} +2 -2
  44. package/dist/{6826.js → 7748.js} +2 -2
  45. package/dist/7950.js +2 -0
  46. package/dist/7986.js +2 -0
  47. package/dist/8240.js +2 -0
  48. package/dist/8247.js +2 -0
  49. package/dist/8256.js +2 -0
  50. package/dist/8494.js +2 -0
  51. package/dist/8507.js +2 -0
  52. package/dist/9014.js +2 -0
  53. package/dist/{1181.js → 9035.js} +2 -2
  54. package/dist/{1596.js → 9094.js} +2 -2
  55. package/dist/{9865.js → 9179.js} +2 -2
  56. package/dist/9183.js +2 -0
  57. package/dist/{2079.js → 9190.js} +2 -2
  58. package/dist/{2643.js → 9237.js} +2 -2
  59. package/dist/9246.js +2 -0
  60. package/dist/9424.js +2 -0
  61. package/dist/9456.js +2 -0
  62. package/dist/9483.js +2 -0
  63. package/dist/{5373.js → 9485.js} +2 -2
  64. package/dist/{2163.js → 9528.js} +2 -2
  65. package/dist/9622.js +2 -0
  66. package/dist/97.js +2 -0
  67. package/dist/9758.js +2 -0
  68. package/dist/{4463.js → 9829.js} +2 -2
  69. package/dist/9829.js.LICENSE.txt +3 -0
  70. package/dist/9918.js +2 -0
  71. package/dist/9918.js.LICENSE.txt +3 -0
  72. package/dist/{3600.js → 9993.js} +2 -2
  73. package/dist/9993.js.LICENSE.txt +3 -0
  74. package/dist/main.css +1 -1
  75. package/dist/main.js +1 -1
  76. package/package.json +13 -13
  77. package/src/App.tsx +6 -5
  78. package/src/components/handout/basic.tsx +50 -19
  79. package/src/components/input-checkbox/partials/cases.tsx +1 -1
  80. package/src/components/input-color/partials/cases.tsx +8 -2
  81. package/src/components/input-date/partials/cases.tsx +9 -1
  82. package/src/components/input-email/partials/cases.tsx +2 -2
  83. package/src/components/input-file/partials/cases.tsx +2 -2
  84. package/src/components/input-number/partials/cases.tsx +1 -1
  85. package/src/components/input-password/partials/cases.tsx +2 -2
  86. package/src/components/input-radio/objectValue.tsx +37 -0
  87. package/src/components/input-radio/partials/cases.tsx +2 -2
  88. package/src/components/input-radio/routes.ts +2 -0
  89. package/src/components/input-radio/select.tsx +1 -1
  90. package/src/components/input-range/partials/cases.tsx +12 -2
  91. package/src/components/input-text/hide-errors.tsx +3 -3
  92. package/src/components/input-text/partials/cases.tsx +4 -4
  93. package/src/components/nav/links.ts +18 -2
  94. package/src/components/select/partials/cases.tsx +10 -2
  95. package/src/components/spin/custom.tsx +4 -1
  96. package/src/components/split-button/basic.tsx +1 -1
  97. package/src/components/textarea/counter.tsx +7 -1
  98. package/src/components/textarea/disabled.tsx +6 -1
  99. package/src/components/textarea/partials/cases.tsx +1 -1
  100. package/src/components/textarea/readonly.tsx +6 -1
  101. package/src/components/toast/basic.tsx +1 -1
  102. package/src/react.main.tsx +40 -22
  103. package/src/scenarios/appointment-form/AvailableAppointmentsForm.tsx +11 -4
  104. package/src/scenarios/appointment-form/DistrictForm.tsx +9 -2
  105. package/src/scenarios/appointment-form/PersonalInformationForm.tsx +8 -2
  106. package/src/scenarios/appointment-form/formUtils.ts +6 -0
  107. package/src/scenarios/routes.ts +0 -2
  108. package/src/shares/store.ts +5 -5
  109. package/src/shares/theme.ts +6 -5
  110. package/webpack.config.js +1 -0
  111. package/dist/1090.js +0 -2
  112. package/dist/1280.js +0 -2
  113. package/dist/1338.js +0 -2
  114. package/dist/2415.js +0 -2
  115. package/dist/2594.js +0 -2
  116. package/dist/2611.js +0 -2
  117. package/dist/3099.js +0 -2
  118. package/dist/3145.js +0 -2
  119. package/dist/3345.js +0 -2
  120. package/dist/3388.js +0 -2
  121. package/dist/3580.js +0 -2
  122. package/dist/3619.js +0 -2
  123. package/dist/3776.js +0 -2
  124. package/dist/4150.js +0 -2
  125. package/dist/42.js +0 -2
  126. package/dist/4669.js +0 -2
  127. package/dist/4686.js +0 -2
  128. package/dist/4689.js +0 -2
  129. package/dist/4756.js +0 -2
  130. package/dist/521.js +0 -2
  131. package/dist/5518.js +0 -2
  132. package/dist/5615.js +0 -2
  133. package/dist/5853.js +0 -2
  134. package/dist/6010.js +0 -2
  135. package/dist/6308.js +0 -2
  136. package/dist/7170.js +0 -2
  137. package/dist/755.js +0 -2
  138. package/dist/7654.js +0 -2
  139. package/dist/8037.js +0 -2
  140. package/dist/817.js +0 -2
  141. package/dist/8180.js +0 -2
  142. package/dist/8341.js +0 -2
  143. package/dist/8612.js +0 -2
  144. package/dist/881.js +0 -2
  145. package/dist/8869.js +0 -2
  146. package/dist/892.js +0 -2
  147. package/dist/8948.js +0 -2
  148. package/dist/8951.js +0 -2
  149. package/dist/9150.js +0 -2
  150. package/dist/9317.js +0 -2
  151. package/dist/9330.js +0 -2
  152. package/dist/9700.js +0 -2
  153. package/dist/9797.js +0 -2
  154. package/dist/9886.js +0 -2
  155. package/dist/9912.js +0 -2
  156. package/dist/9984.js +0 -2
  157. package/src/components/abbr/basic.html +0 -6
  158. package/src/scenarios/complex-form/common/form/component.tsx +0 -25
  159. package/src/scenarios/complex-form/common/form/types.ts +0 -13
  160. package/src/scenarios/complex-form/component.tsx +0 -164
  161. package/src/scenarios/complex-form/kopfdaten/component.tsx +0 -52
  162. package/src/scenarios/complex-form/location/component.tsx +0 -18
  163. package/src/scenarios/complex-form/location/location.form.ts +0 -22
  164. package/src/scenarios/complex-form/schedule/component.tsx +0 -18
  165. package/src/scenarios/complex-form/schedule/schedule.form.ts +0 -34
  166. /package/dist/{1090.js.LICENSE.txt → 1051.js.LICENSE.txt} +0 -0
  167. /package/dist/{1181.js.LICENSE.txt → 1278.js.LICENSE.txt} +0 -0
  168. /package/dist/{1218.js.LICENSE.txt → 1499.js.LICENSE.txt} +0 -0
  169. /package/dist/{1280.js.LICENSE.txt → 1502.js.LICENSE.txt} +0 -0
  170. /package/dist/{1338.js.LICENSE.txt → 1699.js.LICENSE.txt} +0 -0
  171. /package/dist/{1596.js.LICENSE.txt → 1731.js.LICENSE.txt} +0 -0
  172. /package/dist/{2079.js.LICENSE.txt → 1848.js.LICENSE.txt} +0 -0
  173. /package/dist/{2163.js.LICENSE.txt → 1940.js.LICENSE.txt} +0 -0
  174. /package/dist/{2415.js.LICENSE.txt → 2015.js.LICENSE.txt} +0 -0
  175. /package/dist/{2594.js.LICENSE.txt → 2156.js.LICENSE.txt} +0 -0
  176. /package/dist/{2611.js.LICENSE.txt → 2182.js.LICENSE.txt} +0 -0
  177. /package/dist/{2643.js.LICENSE.txt → 2186.js.LICENSE.txt} +0 -0
  178. /package/dist/{3034.js.LICENSE.txt → 2439.js.LICENSE.txt} +0 -0
  179. /package/dist/{3099.js.LICENSE.txt → 2563.js.LICENSE.txt} +0 -0
  180. /package/dist/{3145.js.LICENSE.txt → 2619.js.LICENSE.txt} +0 -0
  181. /package/dist/{3345.js.LICENSE.txt → 2624.js.LICENSE.txt} +0 -0
  182. /package/dist/{3388.js.LICENSE.txt → 2671.js.LICENSE.txt} +0 -0
  183. /package/dist/{3466.js.LICENSE.txt → 2926.js.LICENSE.txt} +0 -0
  184. /package/dist/{3580.js.LICENSE.txt → 3028.js.LICENSE.txt} +0 -0
  185. /package/dist/{3600.js.LICENSE.txt → 3073.js.LICENSE.txt} +0 -0
  186. /package/dist/{3619.js.LICENSE.txt → 351.js.LICENSE.txt} +0 -0
  187. /package/dist/{3776.js.LICENSE.txt → 3625.js.LICENSE.txt} +0 -0
  188. /package/dist/{3845.js.LICENSE.txt → 4619.js.LICENSE.txt} +0 -0
  189. /package/dist/{4150.js.LICENSE.txt → 4627.js.LICENSE.txt} +0 -0
  190. /package/dist/{42.js.LICENSE.txt → 4937.js.LICENSE.txt} +0 -0
  191. /package/dist/{4279.js.LICENSE.txt → 5172.js.LICENSE.txt} +0 -0
  192. /package/dist/{4463.js.LICENSE.txt → 528.js.LICENSE.txt} +0 -0
  193. /package/dist/{4669.js.LICENSE.txt → 5342.js.LICENSE.txt} +0 -0
  194. /package/dist/{4686.js.LICENSE.txt → 5431.js.LICENSE.txt} +0 -0
  195. /package/dist/{4689.js.LICENSE.txt → 5784.js.LICENSE.txt} +0 -0
  196. /package/dist/{4756.js.LICENSE.txt → 5896.js.LICENSE.txt} +0 -0
  197. /package/dist/{5027.js.LICENSE.txt → 6114.js.LICENSE.txt} +0 -0
  198. /package/dist/{521.js.LICENSE.txt → 6329.js.LICENSE.txt} +0 -0
  199. /package/dist/{5324.js.LICENSE.txt → 6357.js.LICENSE.txt} +0 -0
  200. /package/dist/{5373.js.LICENSE.txt → 6511.js.LICENSE.txt} +0 -0
  201. /package/dist/{5518.js.LICENSE.txt → 7086.js.LICENSE.txt} +0 -0
  202. /package/dist/{5615.js.LICENSE.txt → 710.js.LICENSE.txt} +0 -0
  203. /package/dist/{5853.js.LICENSE.txt → 7160.js.LICENSE.txt} +0 -0
  204. /package/dist/{6010.js.LICENSE.txt → 7240.js.LICENSE.txt} +0 -0
  205. /package/dist/{6308.js.LICENSE.txt → 7435.js.LICENSE.txt} +0 -0
  206. /package/dist/{6826.js.LICENSE.txt → 7628.js.LICENSE.txt} +0 -0
  207. /package/dist/{7170.js.LICENSE.txt → 7732.js.LICENSE.txt} +0 -0
  208. /package/dist/{755.js.LICENSE.txt → 7748.js.LICENSE.txt} +0 -0
  209. /package/dist/{7654.js.LICENSE.txt → 7950.js.LICENSE.txt} +0 -0
  210. /package/dist/{8037.js.LICENSE.txt → 7986.js.LICENSE.txt} +0 -0
  211. /package/dist/{817.js.LICENSE.txt → 8240.js.LICENSE.txt} +0 -0
  212. /package/dist/{8180.js.LICENSE.txt → 8247.js.LICENSE.txt} +0 -0
  213. /package/dist/{8341.js.LICENSE.txt → 8256.js.LICENSE.txt} +0 -0
  214. /package/dist/{8612.js.LICENSE.txt → 8494.js.LICENSE.txt} +0 -0
  215. /package/dist/{8734.js.LICENSE.txt → 8507.js.LICENSE.txt} +0 -0
  216. /package/dist/{881.js.LICENSE.txt → 9014.js.LICENSE.txt} +0 -0
  217. /package/dist/{8869.js.LICENSE.txt → 9035.js.LICENSE.txt} +0 -0
  218. /package/dist/{892.js.LICENSE.txt → 9094.js.LICENSE.txt} +0 -0
  219. /package/dist/{8948.js.LICENSE.txt → 9179.js.LICENSE.txt} +0 -0
  220. /package/dist/{8951.js.LICENSE.txt → 9183.js.LICENSE.txt} +0 -0
  221. /package/dist/{9150.js.LICENSE.txt → 9190.js.LICENSE.txt} +0 -0
  222. /package/dist/{9317.js.LICENSE.txt → 9237.js.LICENSE.txt} +0 -0
  223. /package/dist/{9330.js.LICENSE.txt → 9246.js.LICENSE.txt} +0 -0
  224. /package/dist/{9681.js.LICENSE.txt → 9424.js.LICENSE.txt} +0 -0
  225. /package/dist/{9700.js.LICENSE.txt → 9456.js.LICENSE.txt} +0 -0
  226. /package/dist/{9727.js.LICENSE.txt → 9483.js.LICENSE.txt} +0 -0
  227. /package/dist/{9797.js.LICENSE.txt → 9485.js.LICENSE.txt} +0 -0
  228. /package/dist/{9865.js.LICENSE.txt → 9528.js.LICENSE.txt} +0 -0
  229. /package/dist/{9886.js.LICENSE.txt → 9622.js.LICENSE.txt} +0 -0
  230. /package/dist/{9912.js.LICENSE.txt → 97.js.LICENSE.txt} +0 -0
  231. /package/dist/{9984.js.LICENSE.txt → 9758.js.LICENSE.txt} +0 -0
@@ -1,25 +0,0 @@
1
- import React, { FC, ReactNode } from 'react';
2
-
3
- import { KolForm, KolLinkGroup } from '@public-ui/react';
4
-
5
- type Props = {
6
- submitted: boolean;
7
- children: ReactNode;
8
- onSubmit: (event: Event) => void;
9
- };
10
-
11
- export const FromComponent: FC<Props> = (props) => (
12
- <>
13
- {props.submitted === true && (
14
- <KolLinkGroup tabIndex={0} class="fehlerliste" data-removed-_label="Fehlerliste" _label="Fehlerliste" _level={3} _links={[]} />
15
- )}
16
- <KolForm
17
- className="block mb-2"
18
- _on={{
19
- onSubmit: props.onSubmit,
20
- }}
21
- >
22
- {props.children}
23
- </KolForm>
24
- </>
25
- );
@@ -1,13 +0,0 @@
1
- export type Fehler = {
2
- _label: string;
3
- _selector: string;
4
- };
5
-
6
- export type FormProps = {
7
- onSubmitted: (event: Event) => void;
8
- };
9
-
10
- export type FormState = {
11
- loader: boolean;
12
- touched: boolean;
13
- };
@@ -1,164 +0,0 @@
1
- import React from 'react';
2
- import type { FC } from 'react';
3
-
4
- import { KolHeading, KolProgress, KolTable, KolTabs } from '@public-ui/react';
5
-
6
- import { TerminKopfdatenComponent } from './kopfdaten/component';
7
- import { TerminLocationComponent } from './location/component';
8
- import { TerminScheduleComponent } from './schedule/component';
9
-
10
- type Zeiten = {
11
- stadtteil: string;
12
- zeiten: string;
13
- montag: string;
14
- dienstag: string;
15
- mittwoch: string;
16
- donnerstag: string;
17
- freitag: string;
18
- };
19
-
20
- export const TerminComponent: FC = () => (
21
- <>
22
- <div className="grid sm:grid-cols-1 gap-2 my-3">
23
- <KolHeading _label="Terminreservierung" />
24
- <KolHeading _label="Termine für Einwohnermelde- (incl. Pass- und Ausweisangelegenheiten) und Kraftfahrzeugangelegenheiten" _level={2} />
25
- <div style={{ fontFamily: 'Arial' }}>
26
- <p className="py-2">Derzeit kann generell nur mit vorheriger Terminvereinbarung bei den Bürgerdiensten vorgesprochen werden.</p>
27
- <p className="py-2">
28
- Die Termine für Einwohnermelde- und Kraftfahrzeugangelegenheiten werden täglich ab 07:00 Uhr für den gleichen Tag, für den gleichen Tag 7 Tage und für
29
- den gleichen Tag 14 Tage später freigegeben. So können Sie jeden Tag spontan Termine für den gleichen Tag und planbar Termine für eine Woche oder zwei
30
- Wochen später erhalten.
31
- </p>
32
- <p className="py-2">
33
- Sofern online keine Termine innerhalb der nächsten 14 Tage mehr verfügbar sind, führt auch eine darüber hinaus gehende telefonische Kontaktaufnahme
34
- leider zu keinem anderen Ergebnis. In diesem Fall versuchen Sie es bitte am nächsten Morgen erneut.
35
- </p>
36
- <p className="py-2">
37
- Bitte achten Sie darauf, den richtigen Kalender für Ihr Anliegen auszuwählen. Hinweis: Bitte geben Sie bei Ihrer Terminvereinbarung zur lückenlosen
38
- Kontaktverfolgung immer Ihre korrekte Telefonnummer und E-Mail Adresse an. Wir behalten uns vor, gebuchte Termine mit falschen Angaben zu löschen.
39
- </p>
40
- </div>
41
- </div>
42
- <div className="grid sm:grid-cols-1 gap-2">
43
- <KolTable
44
- _label="Öffnungszeiten"
45
- _data={
46
- [
47
- {
48
- stadtteil: 'Brackel',
49
- montag: '08:00 - 12:00, 14:00 - 16:00',
50
- dienstag: '08:00 - 12:00, 14:00 - 15:00',
51
- mittwoch: '08:00 - 12:00, 14:00 - 15:00',
52
- donnerstag: '08:00 - 12:00, 14:00 - 18:00',
53
- freitag: '08:00 - 12:00',
54
- },
55
- {
56
- stadtteil: 'Dorstfeld',
57
- montag: '09:00 - 12:00, 14:00 - 16:00',
58
- dienstag: '09:00 - 12:00, 14:00 - 15:00',
59
- mittwoch: '09:00 - 12:00, 14:00 - 15:00',
60
- donnerstag: '09:00 - 12:00, 14:00 - 18:00',
61
- freitag: '09:00 - 12:00',
62
- },
63
- {
64
- stadtteil: 'Aplerbeck',
65
- montag: '08:00 - 12:00, 14:00 - 16:00',
66
- dienstag: '08:00 - 12:00, 14:00 - 15:00',
67
- mittwoch: '08:00 - 12:00, 14:00 - 15:00',
68
- donnerstag: '08:00 - 12:00, 14:00 - 18:00',
69
- freitag: '08:00 - 12:00',
70
- },
71
- {
72
- stadtteil: 'Innenstadt Ost',
73
- montag: '07:00 - 12:00, 14:00 - 16:00',
74
- dienstag: '07:00 - 12:00, 14:00 - 15:00',
75
- mittwoch: '07:00 - 12:00, 14:00 - 15:00',
76
- donnerstag: '07:00 - 12:00, 14:00 - 18:00',
77
- freitag: '07:00 - 12:00, 13:00 - 16:00',
78
- },
79
- {
80
- stadtteil: 'Innenstadt West',
81
- montag: '07:00 - 12:00, 14:00 - 16:00',
82
- dienstag: '07:00 - 12:00, 14:00 - 15:00',
83
- mittwoch: '07:00 - 12:00, 14:00 - 15:00',
84
- donnerstag: '07:00 - 12:00, 14:00 - 18:00',
85
- freitag: '07:00 - 12:00, 13:00 - 16:00',
86
- /*render: (el, data) => {
87
- el.innerHTML = `<kol-badge _color="#ff0000" _label="NIX"></kol-badge>`;
88
- },*/
89
- },
90
- ] as Zeiten[]
91
- }
92
- _headers={{
93
- horizontal: [
94
- [
95
- { label: '', asTd: true },
96
- { label: 'Tag', colSpan: 5 },
97
- ],
98
- [
99
- {
100
- label: 'Stadtteil',
101
- key: 'stadtteil',
102
- textAlign: 'left',
103
- sort: (data: Zeiten[]) => {
104
- return data.sort((first, second) => {
105
- if (first.stadtteil < second.stadtteil) {
106
- return -1;
107
- }
108
- if (first.stadtteil > second.stadtteil) {
109
- return 1;
110
- }
111
- return 0;
112
- });
113
- },
114
- },
115
- { label: 'Montag', key: 'montag', textAlign: 'center' },
116
- { label: 'Dienstag', key: 'dienstag', textAlign: 'center' },
117
- { label: 'Mittwoch', key: 'mittwoch', textAlign: 'center' },
118
- { label: 'Donnerstag', key: 'donnerstag', textAlign: 'center' },
119
- { label: 'Freitag', key: 'freitag', textAlign: 'center' },
120
- ],
121
- ],
122
- }}
123
- _minWidth="50em"
124
- style={{
125
- display: 'inline-grid',
126
- width: '100%',
127
- }}
128
- ></KolTable>
129
- <KolTabs
130
- className="block mt-4"
131
- _ariaLabel="Registerkarten"
132
- _tabs={[
133
- {
134
- _label: '1. Einwohnermeldeämter',
135
- },
136
- {
137
- _label: '2. Freie Termine',
138
- },
139
- {
140
- _label: '3. Persönliche Daten',
141
- },
142
- ]}
143
- >
144
- <div>
145
- <KolHeading _level={2} _label="Wählen Sie einen Stadtteil aus" />
146
- <TerminLocationComponent onSubmitted={() => {}} />
147
- </div>
148
- <div>
149
- <KolHeading _level={2} _label="Wählen Sie einen Termin aus" />
150
- <TerminScheduleComponent onSubmitted={() => {}} />
151
- </div>
152
- <div>
153
- <KolHeading _level={2} _label="Geben Sie Ihre Kontaktdaten ein" />
154
- <TerminKopfdatenComponent onSubmitted={() => {}} />
155
- </div>
156
- </KolTabs>
157
- </div>
158
- <div className="grid sm:grid-cols-1 gap-2">
159
- <div className="border-top"></div>
160
- <KolHeading _level={3} _label="Fortschritt" />
161
- <KolProgress _value={0} _max={100} _unit="Prozent des Formulars"></KolProgress>
162
- </div>
163
- </>
164
- );
@@ -1,52 +0,0 @@
1
- import React from 'react';
2
- import type { FC } from 'react';
3
-
4
- import { KolAbbr, KolButton, KolInputEmail, KolInputRadio, KolInputText, KolSpin } from '@public-ui/react';
5
-
6
- import { FromComponent } from '../common/form/component';
7
- import { FormProps } from '../common/form/types';
8
-
9
- export const TerminKopfdatenComponent: FC<FormProps> = (props) => (
10
- <FromComponent submitted={true} onSubmit={() => {}}>
11
- <div className="grid grid-cols-2 gap-4">
12
- <KolInputRadio
13
- _id="anrede"
14
- _list={[
15
- { label: 'Herr', value: 'Herr' },
16
- { label: 'Frau', value: 'Frau' },
17
- ]}
18
- _touched={true}
19
- ></KolInputRadio>
20
- <KolInputText _id="termin_kopfdaten_vorname" _type="text" _autoComplete="on" _touched={true}></KolInputText>
21
- <KolInputText _id="termin_kopfdaten_nachname" _type="text" _autoComplete="on" _touched={true}></KolInputText>
22
- <KolInputText _id="termin_kopfdaten_strasse" _type="text" _autoComplete="on" _touched={true}></KolInputText>
23
- <div className="grid grid-cols-6 gap-4">
24
- <KolInputText _id="termin_kopfdaten_plz" _type="text" _autoComplete="on" _touched={true}>
25
- <KolAbbr _title="Postleitzahl" _tooltipAlign="right">
26
- PLZ
27
- </KolAbbr>
28
- </KolInputText>
29
- <KolInputText _id="termin_kopfdaten_ort" _type="text" _autoComplete="on" _touched={true}></KolInputText>
30
- </div>
31
- <KolInputText
32
- _id="termin_kopfdaten_telefon"
33
- _icon="icofont-phone"
34
- _list={['01234 / 567890']}
35
- _type="tel"
36
- _autoComplete="on"
37
- _touched={true}
38
- ></KolInputText>
39
- <KolInputEmail
40
- _id="termin_kopfdaten_email"
41
- _icon="icofont-email"
42
- _list={['elke.mustermann@test.de', 'max.mustermann@test.de']}
43
- _touched={true}
44
- _autoComplete="on"
45
- ></KolInputEmail>
46
- <div>
47
- <KolButton className="inline-block my-1" _icon="icofont-paper-plane" _type="submit" _label="Terminanfrage absenden"></KolButton>
48
- <KolSpin _show={true} className="ml-4" />
49
- </div>
50
- </div>
51
- </FromComponent>
52
- );
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import type { FC } from 'react';
3
-
4
- import { KolButton, KolSelect, KolSpin } from '@public-ui/react';
5
-
6
- import { FromComponent } from '../common/form/component';
7
- import { FormProps } from '../common/form/types';
8
- import { LOCATION_OPTIONS } from './location.form';
9
-
10
- export const TerminLocationComponent: FC<FormProps> = () => (
11
- <FromComponent submitted={true} onSubmit={() => {}}>
12
- <div className="grid sm:grid-cols-1 xl:grid-cols-2 gap-2 my-2">
13
- <KolSelect _id="termin-location-location" _list={LOCATION_OPTIONS} _touched={true}></KolSelect>
14
- </div>
15
- <KolButton className="inline-block my-1" _icon="icofont-arrow-right" _iconAlign="right" _label="Zur Terminauswahl" _type="submit"></KolButton>
16
- <KolSpin _show={true} className="ml-4" />
17
- </FromComponent>
18
- );
@@ -1,22 +0,0 @@
1
- export const LOCATION_OPTIONS = [
2
- {
3
- value: 'Aplerbeck',
4
- label: 'Aplerbeck',
5
- },
6
- {
7
- value: 'Brackel',
8
- label: 'Brackel',
9
- },
10
- {
11
- value: 'Dorstfeld',
12
- label: 'Dorstfeld',
13
- },
14
- {
15
- value: 'Innenstadt Ost',
16
- label: 'Innenstadt Ost',
17
- },
18
- {
19
- value: 'Innenstadt West',
20
- label: 'Innenstadt West',
21
- },
22
- ];
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import type { FC } from 'react';
3
-
4
- import { KolButton, KolInputDate, KolSpin } from '@public-ui/react';
5
-
6
- import { FromComponent } from '../common/form/component';
7
- import { FormProps } from '../common/form/types';
8
-
9
- export const TerminScheduleComponent: FC<FormProps> = (props) => (
10
- <FromComponent submitted={true} onSubmit={() => {}}>
11
- <div className="grid sm:grid-cols-1 xl:grid-cols-2 gap-2 my-2">
12
- <KolInputDate _id="termin-schedule-schedule" _type="date" _touched={true}></KolInputDate>
13
- <KolInputDate _id="termin-schedule-time" _type="time" _touched={true}></KolInputDate>
14
- </div>
15
- <KolButton className="inline-block my-1" _icon="icofont-arrow-right" _iconAlign="right" _label="Zu den Kontaktdaten" _type="submit"></KolButton>
16
- <KolSpin _show={true} className="ml-4" />
17
- </FromComponent>
18
- );
@@ -1,34 +0,0 @@
1
- import { FormControl, InputControl, RequiredValidator, ValidationHandler } from '@leanup/form';
2
-
3
- export interface Schedule {
4
- schedule: string;
5
- time: string;
6
- }
7
-
8
- export class ScheduleForm extends FormControl {
9
- public constructor() {
10
- super('schedule');
11
-
12
- this.addControl(
13
- new InputControl('schedule', {
14
- label: 'Datum',
15
- mandatory: true,
16
- }),
17
- );
18
-
19
- this.addControl(
20
- new InputControl('time', {
21
- label: 'Uhrzeit',
22
- mandatory: true,
23
- }),
24
- );
25
-
26
- const validationHandler = new ValidationHandler();
27
- validationHandler.validators.add([new RequiredValidator('Bitte wählen Sie ein Datum aus.')]);
28
- this.getInput('schedule')?.setValidationHandler(validationHandler);
29
-
30
- const timeHandler = new ValidationHandler();
31
- timeHandler.validators.add([new RequiredValidator('Bitte wählen Sie eine Uhrzeit aus.')]);
32
- this.getInput('time')?.setValidationHandler(timeHandler);
33
- }
34
- }
File without changes
File without changes