@progress/kendo-themes-html 14.4.1-dev.0 → 14.4.1-dev.2

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 (232) hide show
  1. package/dist/cjs/agent-response/agent-step.js +1 -1
  2. package/dist/cjs/agent-response/chain-of-thought.spec.js +1 -1
  3. package/dist/cjs/agent-response/reasoning.spec.js +1 -1
  4. package/dist/cjs/agent-response/templates/chain-of-thought-expanded.js +1 -1
  5. package/dist/cjs/agent-response/templates/chain-of-thought-normal.js +1 -1
  6. package/dist/cjs/agent-response/templates/reasoning-expanded.js +1 -1
  7. package/dist/cjs/agent-response/templates/reasoning-normal.js +1 -1
  8. package/dist/cjs/agent-response/templates/tool-call-expanded.js +1 -1
  9. package/dist/cjs/agent-response/templates/tool-call-normal.js +1 -1
  10. package/dist/cjs/agent-response/thought.spec.js +1 -1
  11. package/dist/cjs/agent-response/tool-call.spec.js +1 -1
  12. package/dist/cjs/chart-wizard/templates/chart-wizard-data.js +1 -1
  13. package/dist/cjs/chart-wizard/templates/chart-wizard-format.js +1 -1
  14. package/dist/cjs/chart-wizard/templates/chart-wizard-normal.js +1 -1
  15. package/dist/cjs/citation/citation-popover-view.spec.js +1 -0
  16. package/dist/cjs/citation/citation-popover.spec.js +1 -1
  17. package/dist/cjs/citation/templates/citation-opened.js +1 -1
  18. package/dist/cjs/datepicker/datepicker.spec.js +1 -1
  19. package/dist/cjs/datepicker/demos/datepicker.js +1 -1
  20. package/dist/cjs/datepicker/templates/datepicker-adaptive.js +1 -1
  21. package/dist/cjs/datepicker/templates/datepicker-disabled.js +1 -1
  22. package/dist/cjs/datepicker/templates/datepicker-invalid.js +1 -1
  23. package/dist/cjs/datepicker/templates/datepicker-normal.js +1 -1
  24. package/dist/cjs/datepicker/templates/datepicker-popup.js +1 -1
  25. package/dist/cjs/filter/demos/filter.js +1 -1
  26. package/dist/cjs/filter/templates/filter-normal.js +1 -1
  27. package/dist/cjs/filter/templates/filter-preview.js +1 -1
  28. package/dist/cjs/form/demos/form.js +1 -1
  29. package/dist/cjs/form/form-field.js +1 -1
  30. package/dist/cjs/form/form.spec.js +1 -1
  31. package/dist/cjs/form/templates/form-grid-layout.js +1 -1
  32. package/dist/cjs/form/templates/form-horizontal.js +1 -1
  33. package/dist/cjs/form/templates/form-normal.js +1 -1
  34. package/dist/cjs/form/templates/form-with-hints.js +1 -1
  35. package/dist/cjs/grid/templates/grid-hierarchy.js +1 -1
  36. package/dist/cjs/imageeditor/templates/imageeditor-crop.js +1 -1
  37. package/dist/cjs/imageeditor/templates/imageeditor-normal.js +1 -1
  38. package/dist/cjs/imageeditor/templates/imageeditor-resize.js +1 -1
  39. package/dist/cjs/index.js +8 -8
  40. package/dist/cjs/pivotgrid/demos/pivotgrid.js +1 -1
  41. package/dist/cjs/pivotgrid/templates/pivotgrid-normal.js +1 -1
  42. package/dist/cjs/pivotgrid/templates/pivotgrid-with-configurator-disabled-actions.js +1 -1
  43. package/dist/cjs/pivotgrid/templates/pivotgrid-with-configurator-opened.js +1 -1
  44. package/dist/cjs/pivotgrid/templates/pivotgrid-with-configurator.js +1 -1
  45. package/dist/cjs/scheduler/demos/scheduler.js +1 -1
  46. package/dist/cjs/scheduler/scheduler-cell.spec.js +1 -1
  47. package/dist/cjs/scheduler/scheduler-event.spec.js +1 -1
  48. package/dist/cjs/scheduler/scheduler-toolbar.spec.js +1 -1
  49. package/dist/cjs/scheduler/templates/scheduler-agenda.js +1 -1
  50. package/dist/cjs/scheduler/templates/scheduler-day.js +1 -1
  51. package/dist/cjs/scheduler/templates/scheduler-flex-agenda.js +1 -1
  52. package/dist/cjs/scheduler/templates/scheduler-flex-day.js +1 -1
  53. package/dist/cjs/scheduler/templates/scheduler-flex-horizontal-grouping.js +1 -1
  54. package/dist/cjs/scheduler/templates/scheduler-flex-month.js +1 -1
  55. package/dist/cjs/scheduler/templates/scheduler-flex-timeline.js +1 -1
  56. package/dist/cjs/scheduler/templates/scheduler-flex-vertical-grouping.js +1 -1
  57. package/dist/cjs/scheduler/templates/scheduler-flex-week.js +1 -1
  58. package/dist/cjs/scheduler/templates/scheduler-flex-year.js +1 -1
  59. package/dist/cjs/scheduler/templates/scheduler-horizontal-grouping.js +1 -1
  60. package/dist/cjs/scheduler/templates/scheduler-month.js +1 -1
  61. package/dist/cjs/scheduler/templates/scheduler-timeline.js +1 -1
  62. package/dist/cjs/scheduler/templates/scheduler-vertical-grouping.js +1 -1
  63. package/dist/cjs/scheduler/templates/scheduler-week.js +1 -1
  64. package/dist/cjs/taskboard/demos/taskboard.js +1 -1
  65. package/dist/cjs/taskboard/taskboard.spec.js +1 -1
  66. package/dist/cjs/taskboard/templates/taskboard-normal.js +1 -1
  67. package/dist/cjs/taskboard/templates/taskboard-pane.js +1 -1
  68. package/dist/cjs/timepicker/demos/timepicker.js +1 -1
  69. package/dist/cjs/timepicker/templates/timepicker-adaptive.js +1 -1
  70. package/dist/cjs/timepicker/templates/timepicker-disabled.js +1 -1
  71. package/dist/cjs/timepicker/templates/timepicker-invalid.js +1 -1
  72. package/dist/cjs/timepicker/templates/timepicker-normal.js +1 -1
  73. package/dist/cjs/timepicker/templates/timepicker-popup.js +1 -1
  74. package/dist/cjs/timepicker/timepicker.spec.js +1 -1
  75. package/dist/esm/agent-response/agent-step.mjs +1 -1
  76. package/dist/esm/agent-response/chain-of-thought.spec.mjs +1 -1
  77. package/dist/esm/agent-response/reasoning.spec.mjs +1 -1
  78. package/dist/esm/agent-response/templates/chain-of-thought-expanded.mjs +1 -1
  79. package/dist/esm/agent-response/templates/chain-of-thought-normal.mjs +1 -1
  80. package/dist/esm/agent-response/templates/reasoning-expanded.mjs +1 -1
  81. package/dist/esm/agent-response/templates/reasoning-normal.mjs +1 -1
  82. package/dist/esm/agent-response/templates/tool-call-expanded.mjs +1 -1
  83. package/dist/esm/agent-response/templates/tool-call-normal.mjs +1 -1
  84. package/dist/esm/agent-response/thought.spec.mjs +1 -1
  85. package/dist/esm/agent-response/tool-call.spec.mjs +1 -1
  86. package/dist/esm/chart-wizard/templates/chart-wizard-data.mjs +1 -1
  87. package/dist/esm/chart-wizard/templates/chart-wizard-format.mjs +1 -1
  88. package/dist/esm/chart-wizard/templates/chart-wizard-normal.mjs +1 -1
  89. package/dist/esm/citation/citation-popover-view.spec.mjs +1 -0
  90. package/dist/esm/citation/citation-popover.spec.mjs +1 -1
  91. package/dist/esm/citation/templates/citation-opened.mjs +1 -1
  92. package/dist/esm/datepicker/datepicker.spec.mjs +1 -1
  93. package/dist/esm/datepicker/demos/datepicker.mjs +1 -1
  94. package/dist/esm/datepicker/templates/datepicker-adaptive.mjs +1 -1
  95. package/dist/esm/datepicker/templates/datepicker-disabled.mjs +1 -1
  96. package/dist/esm/datepicker/templates/datepicker-invalid.mjs +1 -1
  97. package/dist/esm/datepicker/templates/datepicker-normal.mjs +1 -1
  98. package/dist/esm/datepicker/templates/datepicker-popup.mjs +1 -1
  99. package/dist/esm/filter/demos/filter.mjs +1 -1
  100. package/dist/esm/filter/templates/filter-normal.mjs +1 -1
  101. package/dist/esm/filter/templates/filter-preview.mjs +1 -1
  102. package/dist/esm/form/demos/form.mjs +1 -1
  103. package/dist/esm/form/form-field.mjs +1 -1
  104. package/dist/esm/form/form.spec.mjs +1 -1
  105. package/dist/esm/form/templates/form-grid-layout.mjs +1 -1
  106. package/dist/esm/form/templates/form-horizontal.mjs +1 -1
  107. package/dist/esm/form/templates/form-normal.mjs +1 -1
  108. package/dist/esm/form/templates/form-with-hints.mjs +1 -1
  109. package/dist/esm/grid/templates/grid-hierarchy.mjs +1 -1
  110. package/dist/esm/imageeditor/templates/imageeditor-crop.mjs +1 -1
  111. package/dist/esm/imageeditor/templates/imageeditor-normal.mjs +1 -1
  112. package/dist/esm/imageeditor/templates/imageeditor-resize.mjs +1 -1
  113. package/dist/esm/index.mjs +8 -8
  114. package/dist/esm/pivotgrid/demos/pivotgrid.mjs +1 -1
  115. package/dist/esm/pivotgrid/templates/pivotgrid-normal.mjs +1 -1
  116. package/dist/esm/pivotgrid/templates/pivotgrid-with-configurator-disabled-actions.mjs +1 -1
  117. package/dist/esm/pivotgrid/templates/pivotgrid-with-configurator-opened.mjs +1 -1
  118. package/dist/esm/pivotgrid/templates/pivotgrid-with-configurator.mjs +1 -1
  119. package/dist/esm/scheduler/demos/scheduler.mjs +1 -1
  120. package/dist/esm/scheduler/scheduler-cell.spec.mjs +1 -1
  121. package/dist/esm/scheduler/scheduler-event.spec.mjs +1 -1
  122. package/dist/esm/scheduler/scheduler-toolbar.spec.mjs +1 -1
  123. package/dist/esm/scheduler/templates/scheduler-agenda.mjs +1 -1
  124. package/dist/esm/scheduler/templates/scheduler-day.mjs +1 -1
  125. package/dist/esm/scheduler/templates/scheduler-flex-agenda.mjs +1 -1
  126. package/dist/esm/scheduler/templates/scheduler-flex-day.mjs +1 -1
  127. package/dist/esm/scheduler/templates/scheduler-flex-horizontal-grouping.mjs +1 -1
  128. package/dist/esm/scheduler/templates/scheduler-flex-month.mjs +1 -1
  129. package/dist/esm/scheduler/templates/scheduler-flex-timeline.mjs +1 -1
  130. package/dist/esm/scheduler/templates/scheduler-flex-vertical-grouping.mjs +1 -1
  131. package/dist/esm/scheduler/templates/scheduler-flex-week.mjs +1 -1
  132. package/dist/esm/scheduler/templates/scheduler-flex-year.mjs +1 -1
  133. package/dist/esm/scheduler/templates/scheduler-horizontal-grouping.mjs +1 -1
  134. package/dist/esm/scheduler/templates/scheduler-month.mjs +1 -1
  135. package/dist/esm/scheduler/templates/scheduler-timeline.mjs +1 -1
  136. package/dist/esm/scheduler/templates/scheduler-vertical-grouping.mjs +1 -1
  137. package/dist/esm/scheduler/templates/scheduler-week.mjs +1 -1
  138. package/dist/esm/taskboard/demos/taskboard.mjs +1 -1
  139. package/dist/esm/taskboard/taskboard.spec.mjs +1 -1
  140. package/dist/esm/taskboard/templates/taskboard-normal.mjs +1 -1
  141. package/dist/esm/taskboard/templates/taskboard-pane.mjs +1 -1
  142. package/dist/esm/timepicker/demos/timepicker.mjs +1 -1
  143. package/dist/esm/timepicker/templates/timepicker-adaptive.mjs +1 -1
  144. package/dist/esm/timepicker/templates/timepicker-disabled.mjs +1 -1
  145. package/dist/esm/timepicker/templates/timepicker-invalid.mjs +1 -1
  146. package/dist/esm/timepicker/templates/timepicker-normal.mjs +1 -1
  147. package/dist/esm/timepicker/templates/timepicker-popup.mjs +1 -1
  148. package/dist/esm/timepicker/timepicker.spec.mjs +1 -1
  149. package/dist/types/agent-response/agent-step.d.ts +6 -3
  150. package/dist/types/agent-response/chain-of-thought.spec.d.ts +4 -2
  151. package/dist/types/agent-response/reasoning.spec.d.ts +4 -2
  152. package/dist/types/agent-response/thought.spec.d.ts +0 -2
  153. package/dist/types/agent-response/tool-call.spec.d.ts +4 -2
  154. package/dist/types/citation/citation-popover-view.spec.d.ts +18 -0
  155. package/dist/types/citation/citation-popover.spec.d.ts +0 -1
  156. package/dist/types/citation/index.d.ts +1 -0
  157. package/dist/types/datepicker/datepicker.spec.d.ts +1 -0
  158. package/dist/types/form/form-field.d.ts +1 -1
  159. package/dist/types/scheduler/scheduler-cell.spec.d.ts +1 -0
  160. package/dist/types/scheduler/scheduler-event.spec.d.ts +9 -3
  161. package/dist/types/scheduler/scheduler.spec.d.ts +19 -2
  162. package/dist/types/timepicker/timepicker.spec.d.ts +1 -0
  163. package/package.json +1 -1
  164. package/src/agent-response/agent-step.tsx +11 -13
  165. package/src/agent-response/chain-of-thought.spec.tsx +9 -4
  166. package/src/agent-response/reasoning.spec.tsx +9 -4
  167. package/src/agent-response/templates/chain-of-thought-expanded.tsx +1 -1
  168. package/src/agent-response/templates/chain-of-thought-normal.tsx +1 -1
  169. package/src/agent-response/templates/reasoning-expanded.tsx +1 -1
  170. package/src/agent-response/templates/reasoning-normal.tsx +1 -1
  171. package/src/agent-response/templates/tool-call-expanded.tsx +7 -12
  172. package/src/agent-response/templates/tool-call-normal.tsx +1 -1
  173. package/src/agent-response/tests/chain-of-thought.tsx +6 -3
  174. package/src/agent-response/tests/reasoning.tsx +5 -2
  175. package/src/agent-response/tests/tool-call.tsx +22 -35
  176. package/src/agent-response/thought.spec.tsx +1 -9
  177. package/src/agent-response/tool-call.spec.tsx +9 -4
  178. package/src/citation/citation-popover-view.spec.tsx +54 -0
  179. package/src/citation/citation-popover.spec.tsx +5 -7
  180. package/src/citation/index.ts +1 -0
  181. package/src/citation/templates/citation-opened.tsx +3 -6
  182. package/src/citation/tests/citation.tsx +19 -19
  183. package/src/datepicker/datepicker.spec.tsx +5 -2
  184. package/src/form/form-field.tsx +1 -1
  185. package/src/form/form.spec.tsx +4 -2
  186. package/src/grid/templates/grid-hierarchy.tsx +1 -1
  187. package/src/scheduler/scheduler-cell.spec.tsx +13 -6
  188. package/src/scheduler/scheduler-event.spec.tsx +108 -88
  189. package/src/scheduler/scheduler-toolbar.spec.tsx +7 -8
  190. package/src/scheduler/scheduler.spec.tsx +19 -2
  191. package/src/scheduler/templates/scheduler-agenda.tsx +9 -7
  192. package/src/scheduler/templates/scheduler-day.tsx +3 -6
  193. package/src/scheduler/templates/scheduler-flex-agenda.tsx +8 -6
  194. package/src/scheduler/templates/scheduler-flex-day.tsx +10 -11
  195. package/src/scheduler/templates/scheduler-flex-horizontal-grouping.tsx +6 -12
  196. package/src/scheduler/templates/scheduler-flex-month.tsx +13 -35
  197. package/src/scheduler/templates/scheduler-flex-timeline.tsx +8 -6
  198. package/src/scheduler/templates/scheduler-flex-vertical-grouping.tsx +4 -10
  199. package/src/scheduler/templates/scheduler-flex-week.tsx +15 -13
  200. package/src/scheduler/templates/scheduler-flex-year.tsx +9 -5
  201. package/src/scheduler/templates/scheduler-horizontal-grouping.tsx +5 -11
  202. package/src/scheduler/templates/scheduler-month.tsx +14 -35
  203. package/src/scheduler/templates/scheduler-timeline.tsx +9 -7
  204. package/src/scheduler/templates/scheduler-vertical-grouping.tsx +2 -2
  205. package/src/scheduler/templates/scheduler-week.tsx +19 -26
  206. package/src/scheduler/tests/scheduler-adaptive-agenda.tsx +17 -12
  207. package/src/scheduler/tests/scheduler-adaptive-day-resource-group.tsx +18 -27
  208. package/src/scheduler/tests/scheduler-adaptive-day.tsx +18 -27
  209. package/src/scheduler/tests/scheduler-adaptive-edit-no-height.tsx +9 -3
  210. package/src/scheduler/tests/scheduler-adaptive-edit-time-zones.tsx +10 -4
  211. package/src/scheduler/tests/scheduler-adaptive-edit.tsx +9 -3
  212. package/src/scheduler/tests/scheduler-adaptive-month.tsx +21 -28
  213. package/src/scheduler/tests/scheduler-agenda-view.tsx +7 -0
  214. package/src/scheduler/tests/scheduler-current-time-marker.tsx +28 -34
  215. package/src/scheduler/tests/scheduler-day-view.tsx +7 -0
  216. package/src/scheduler/tests/scheduler-edit-event-dialog.tsx +144 -0
  217. package/src/scheduler/tests/scheduler-events-popover.tsx +122 -0
  218. package/src/scheduler/tests/scheduler-events-responsive.tsx +71 -0
  219. package/src/scheduler/tests/scheduler-events.tsx +503 -508
  220. package/src/scheduler/tests/scheduler-month-view.tsx +7 -0
  221. package/src/scheduler/tests/scheduler-new-event-dialog.tsx +191 -0
  222. package/src/scheduler/tests/scheduler-quick-actions-popover.tsx +114 -0
  223. package/src/scheduler/tests/scheduler-react-timeline-multi.tsx +568 -673
  224. package/src/scheduler/tests/scheduler-recurrence-dialog.tsx +437 -0
  225. package/src/scheduler/tests/scheduler-timeline-view.tsx +7 -0
  226. package/src/scheduler/tests/scheduler-toolbar-responsive.tsx +226 -0
  227. package/src/scheduler/tests/scheduler-week-view.tsx +7 -0
  228. package/src/scheduler/tests/scheduler-year-view.tsx +3 -0
  229. package/src/timepicker/timepicker.spec.tsx +5 -2
  230. package/src/scheduler/tests/scheduler-edit-dialog.tsx +0 -103
  231. package/src/scheduler/tests/scheduler-editing-weekly.tsx +0 -128
  232. package/src/scheduler/tests/scheduler-tooltip.tsx +0 -82
@@ -1,7 +1,14 @@
1
1
  import { SchedulerMonth, SchedulerFlexMonth } from "..";
2
2
 
3
+ const style = `
4
+ #test-area {
5
+ max-width: 1080px;
6
+ }
7
+ `;
8
+
3
9
  export default () => (
4
10
  <>
11
+ <style>{style}</style>
5
12
  <div id="test-area" className="k-d-grid k-grid-cols-1">
6
13
  <span>Scheduler Table Layout</span>
7
14
  <SchedulerMonth />
@@ -0,0 +1,191 @@
1
+ import { Button } from "../../button";
2
+ import { Textbox } from "../../textbox";
3
+ import { TimePicker } from "../../timepicker";
4
+ import { Switch } from "../../switch";
5
+ import { Dialog } from "../../dialog";
6
+ import { Form, FormField } from "../../form";
7
+ import { Icon } from "../../icon";
8
+ import Textarea from "../../textarea/textarea.spec";
9
+ import { DatePicker } from "../../datepicker";
10
+ import { DropdownList } from "../../dropdownlist";
11
+
12
+ const style = `
13
+ #test-area {
14
+ gap: 32px;
15
+ }
16
+ .k-dialog-wrapper {
17
+ position: relative;
18
+ align-items: start;
19
+ }
20
+
21
+ .k-window {
22
+ position: relative;
23
+ }
24
+
25
+ .k-animation-container {
26
+ position: relative;
27
+ }
28
+ `;
29
+
30
+ export default () => (
31
+ <>
32
+ <style>{style}</style>
33
+ <div id="test-area" className="k-d-grid">
34
+ <section>
35
+ <span>Dialog - More options</span>
36
+ <Dialog
37
+ modal={false}
38
+ title="New event"
39
+ actions={["x"]}
40
+ actionButtonsAlign="end"
41
+ actionButtons={
42
+ <>
43
+ <Button>Cancel</Button>
44
+ <Button themeColor="primary">Save</Button>
45
+ </>
46
+ }
47
+ style={{ width: "650px" }}
48
+ >
49
+ <Form className="k-scheduler-edit-form" orientation="horizontal">
50
+ <FormField orientation="horizontal" label={<Icon size="xlarge" icon="right-double-quotes" />} editor={<Textbox placeholder="New event" aria-label="Event title" />} />
51
+
52
+ <FormField
53
+ label={<Icon size="xlarge" icon="clock" />}
54
+ editor={
55
+ <div className="k-scheduler-datetime-section">
56
+ <div className="k-scheduler-edit-form-row">
57
+ <Switch checked={false} aria-label="All day" />
58
+ <span>All day</span>
59
+ </div>
60
+ <div className="k-scheduler-datetime-grid">
61
+ <div className="k-scheduler-edit-form-row">
62
+ <DatePicker showClearButton={false} value="1/21/2021" aria-label="Start date" />
63
+ <span className="k-scheduler-datetime-label">from</span>
64
+ <TimePicker showClearButton={false} value="3:07 AM" aria-label="Start time" />
65
+ </div>
66
+ <Button className="k-col-span-2" title="Set Timezone" fillMode="flat" themeColor="primary" icon="globe">
67
+ Time zone
68
+ </Button>
69
+ <div className="k-scheduler-edit-form-row">
70
+ <DatePicker showClearButton={false} value="1/21/2021" aria-label="End date" />
71
+ <span className="k-scheduler-datetime-label">to</span>
72
+ <TimePicker showClearButton={false} value="3:07 AM" aria-label="End time" />
73
+ </div>
74
+ </div>
75
+ <div className="k-scheduler-edit-form-row">
76
+ <Button fillMode="flat" icon="arrow-rotate-cw" themeColor="primary">
77
+ Make recurring
78
+ </Button>
79
+ </div>
80
+ </div>
81
+ }
82
+ />
83
+
84
+ <FormField orientation="horizontal" label={<Icon size="xlarge" icon="comment" />} editor={<Textarea resize="y" placeholder="Add Description" aria-label="Description" />} />
85
+ </Form>
86
+ </Dialog>
87
+ </section>
88
+
89
+ <section>
90
+ <span>Dialog - More options, time zone</span>
91
+ <Dialog
92
+ modal={false}
93
+ title="New event"
94
+ actions={["x"]}
95
+ actionButtonsAlign="end"
96
+ actionButtons={
97
+ <>
98
+ <Button>Cancel</Button>
99
+ <Button themeColor="primary">Save</Button>
100
+ </>
101
+ }
102
+ style={{ width: "650px" }}
103
+ >
104
+ <Form className="k-scheduler-edit-form" orientation="horizontal">
105
+ <FormField orientation="horizontal" label={<Icon size="xlarge" icon="right-double-quotes" />} editor={<Textbox placeholder="New event" aria-label="Event title" />} />
106
+
107
+ <FormField
108
+ label={<Icon size="xlarge" icon="clock" />}
109
+ editor={
110
+ <div className="k-scheduler-datetime-section">
111
+ <div className="k-scheduler-edit-form-row">
112
+ <Switch checked={false} aria-label="All day" />
113
+ <span>All day</span>
114
+ </div>
115
+ <div className="k-scheduler-datetime-grid">
116
+ <div className="k-scheduler-edit-form-row">
117
+ <DatePicker showClearButton={false} value="1/21/2021" aria-label="Start date" />
118
+ <span className="k-scheduler-datetime-label">from</span>
119
+ <TimePicker showClearButton={false} value="3:07 AM" aria-label="Start time" />
120
+ </div>
121
+ <DropdownList value="(UTC+02:00)" aria-label="Start timezone" />
122
+ <Button fillMode="flat" title="Reset Timezone" themeColor="primary" icon="globe" aria-label="Reset timezone"></Button>
123
+ <div className="k-scheduler-edit-form-row">
124
+ <DatePicker showClearButton={false} value="1/21/2021" aria-label="End date" />
125
+ <span className="k-scheduler-datetime-label">to</span>
126
+ <TimePicker showClearButton={false} value="3:07 AM" aria-label="End time" />
127
+ </div>
128
+ <DropdownList value="(UTC+02:00)" aria-label="End timezone" />
129
+ </div>
130
+ <div className="k-scheduler-edit-form-row">
131
+ <Button fillMode="flat" icon="arrow-rotate-cw" themeColor="primary">
132
+ Make recurring
133
+ </Button>
134
+ </div>
135
+ </div>
136
+ }
137
+ />
138
+ <FormField orientation="horizontal" label={<Icon size="xlarge" icon="comment" />} editor={<Textarea resize="y" placeholder="Add description" aria-label="Description" />} />
139
+ </Form>
140
+ </Dialog>
141
+ </section>
142
+
143
+ <section>
144
+ <span>Dialog - More options, all day</span>
145
+ <Dialog
146
+ modal={false}
147
+ title="New event"
148
+ actions={["x"]}
149
+ actionButtonsAlign="end"
150
+ actionButtons={
151
+ <>
152
+ <Button>Cancel</Button>
153
+ <Button themeColor="primary">Save</Button>
154
+ </>
155
+ }
156
+ style={{ width: "650px" }}
157
+ >
158
+ <Form className="k-scheduler-edit-form" orientation="horizontal">
159
+ <FormField orientation="horizontal" label={<Icon size="xlarge" icon="right-double-quotes" />} editor={<Textbox placeholder="New event" aria-label="Event title" />} />
160
+
161
+ <FormField
162
+ label={<Icon size="xlarge" icon="clock" />}
163
+ editor={
164
+ <div className="k-scheduler-datetime-section">
165
+ <div className="k-scheduler-edit-form-row">
166
+ <Switch checked={true} aria-label="All day" />
167
+ <span>All day</span>
168
+ </div>
169
+ <div className="k-scheduler-datetime-grid">
170
+ <div className="k-scheduler-edit-form-row">
171
+ <DatePicker showClearButton={false} value="1/21/2021" aria-label="Start date" />
172
+ <span className="k-scheduler-datetime-label">to</span>
173
+ <DatePicker showClearButton={false} value="1/21/2021" aria-label="End date" />
174
+ </div>
175
+ </div>
176
+ <div className="k-scheduler-edit-form-row">
177
+ <Button fillMode="flat" icon="arrow-rotate-cw" themeColor="primary">
178
+ Make recurring
179
+ </Button>
180
+ </div>
181
+ </div>
182
+ }
183
+ />
184
+
185
+ <FormField orientation="horizontal" label={<Icon size="xlarge" icon="comment" />} editor={<Textarea resize="y" placeholder="Add description" aria-label="Description" />} />
186
+ </Form>
187
+ </Dialog>
188
+ </section>
189
+ </div>
190
+ </>
191
+ );
@@ -0,0 +1,114 @@
1
+ import { Button } from "../../button";
2
+ import { Form, FormField } from "../../form";
3
+ import { Icon } from "../../icon";
4
+ import Popover from "../../popover/popover.spec";
5
+ import ActionButtons from "../../action-buttons/action-buttons.spec";
6
+ import { Textbox } from "../../textbox/textbox.spec";
7
+
8
+ const style = `
9
+ #test-area {
10
+ gap: 32px;
11
+ }
12
+ .k-dialog-wrapper {
13
+ position: relative;
14
+ align-items: start;
15
+ }
16
+
17
+ .k-animation-container {
18
+ position: relative;
19
+ }
20
+ `;
21
+
22
+ export default () => (
23
+ <>
24
+ <style>{style}</style>
25
+ <div id="test-area" className="k-d-grid">
26
+ <section>
27
+ <span>Popover - Quick create</span>
28
+ <div style={{ position: "relative" }}>
29
+ <Popover
30
+ callout="left"
31
+ title="New event"
32
+ body={
33
+ <Form className="k-scheduler-edit-form" orientation="horizontal">
34
+ <FormField orientation="horizontal" label={<Icon size="xlarge" icon="right-double-quotes" />} editor={<Textbox placeholder="New event" aria-label="Event title" />} />
35
+
36
+ <FormField orientation="horizontal" label={<Icon size="xlarge" icon="clock" />} editor={<div className="k-scheduler-edit-form-row k-color-subtle">20 October, 11:00 - 11:30</div>} />
37
+ </Form>
38
+ }
39
+ style={{ width: "380px" }}
40
+ >
41
+ <ActionButtons className="k-popover-actions" alignment="stretched">
42
+ <Button fillMode="flat" themeColor="primary" icon="arrows-resizing">
43
+ More options
44
+ </Button>
45
+ <span className="k-spacer" />
46
+ <Button>Cancel</Button>
47
+ <Button themeColor="primary">Save</Button>
48
+ </ActionButtons>
49
+ </Popover>
50
+ </div>
51
+ </section>
52
+
53
+ <section>
54
+ <span>Popover Quick edit</span>
55
+ <div style={{ position: "relative" }}>
56
+ <Popover
57
+ callout="left"
58
+ title="Event Name"
59
+ body={
60
+ <Form className="k-scheduler-edit-form" orientation="horizontal">
61
+ <FormField orientation="horizontal" label={<Icon size="xlarge" icon="clock" />} editor={<div className="k-scheduler-edit-form-row k-color-subtle">20 October, 11:00 – 11:30</div>} />
62
+ </Form>
63
+ }
64
+ style={{ width: "380px" }}
65
+ >
66
+ <ActionButtons className="k-popover-actions" alignment="end">
67
+ <Button>Delete</Button>
68
+ <Button themeColor="primary">Edit</Button>
69
+ </ActionButtons>
70
+ </Popover>
71
+ </div>
72
+ </section>
73
+
74
+ <section>
75
+ <span>Popover Quick edit - with description</span>
76
+ <div style={{ position: "relative" }}>
77
+ <Popover
78
+ callout="left"
79
+ title="Event Name"
80
+ body={
81
+ <Form className="k-scheduler-edit-form" orientation="horizontal">
82
+ <FormField orientation="horizontal" label={<Icon size="xlarge" icon="clock" />} editor={<div className="k-scheduler-edit-form-row k-color-subtle">20 October, 11:00 – 11:30</div>} />
83
+
84
+ <FormField orientation="horizontal" label={<Icon size="xlarge" icon="comment" />} editor={<div className="k-scheduler-edit-form-row">This is a description of the event saying what the event will be about and other stuff.</div>} />
85
+ </Form>
86
+ }
87
+ style={{ width: "380px" }}
88
+ >
89
+ <ActionButtons className="k-popover-actions" alignment="end">
90
+ <Button>Delete</Button>
91
+ <Button themeColor="primary">Edit</Button>
92
+ </ActionButtons>
93
+ </Popover>
94
+ </div>
95
+ </section>
96
+
97
+ <section>
98
+ <span>Popover Quick Edit - readonly</span>
99
+ <div style={{ position: "relative" }}>
100
+ <Popover
101
+ callout="left"
102
+ title="Event Name"
103
+ body={
104
+ <Form className="k-scheduler-edit-form" orientation="horizontal">
105
+ <FormField orientation="horizontal" label={<Icon size="xlarge" icon="clock" />} editor={<div className="k-scheduler-edit-form-row k-color-subtle">20 October, 11:00 – 11:30</div>} />
106
+ </Form>
107
+ }
108
+ style={{ width: "380px" }}
109
+ />
110
+ </div>
111
+ </section>
112
+ </div>
113
+ </>
114
+ );