@progress/kendo-themes-html 5.5.1-dev.1 → 5.5.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 (52) hide show
  1. package/dist/calendar/calendar-footer.js +1 -2
  2. package/dist/calendar/calendar-footer.js.map +2 -2
  3. package/dist/calendar/calendar-table-head.js +4 -2
  4. package/dist/calendar/calendar-table-head.js.map +2 -2
  5. package/dist/calendar/calendar-table.js +4 -2
  6. package/dist/calendar/calendar-table.js.map +2 -2
  7. package/dist/calendar/calendar-view.js +4 -2
  8. package/dist/calendar/calendar-view.js.map +2 -2
  9. package/dist/calendar/calendar.js +4 -2
  10. package/dist/calendar/calendar.js.map +2 -2
  11. package/dist/calendar/tests/calendar-classic-jquery.js +5 -5
  12. package/dist/calendar/tests/calendar-classic-jquery.js.map +2 -2
  13. package/dist/calendar/tests/calendar-modern-angular.js +4 -2
  14. package/dist/calendar/tests/calendar-modern-angular.js.map +2 -2
  15. package/dist/calendar/tests/calendar-modern-jquery.js +4 -2
  16. package/dist/calendar/tests/calendar-modern-jquery.js.map +2 -2
  17. package/dist/datepicker/tests/datepicker-adaptive.js +779 -0
  18. package/dist/datepicker/tests/datepicker-adaptive.js.map +7 -0
  19. package/dist/datetime-selector/tests/datetime-selector.js +4 -2
  20. package/dist/datetime-selector/tests/datetime-selector.js.map +2 -2
  21. package/dist/dropdownlist/tests/dropdownlist-adaptive.js +488 -0
  22. package/dist/dropdownlist/tests/dropdownlist-adaptive.js.map +7 -0
  23. package/dist/multiviewcalendar/multiviewcalendar.js +4 -2
  24. package/dist/multiviewcalendar/multiviewcalendar.js.map +2 -2
  25. package/dist/multiviewcalendar/tests/multiviewcalendar-angular.js +4 -2
  26. package/dist/multiviewcalendar/tests/multiviewcalendar-angular.js.map +2 -2
  27. package/dist/multiviewcalendar/tests/multiviewcalendar-jquery.js +4 -2
  28. package/dist/multiviewcalendar/tests/multiviewcalendar-jquery.js.map +2 -2
  29. package/dist/multiviewcalendar/tests/multiviewcalendar-react.js +4 -2
  30. package/dist/multiviewcalendar/tests/multiviewcalendar-react.js.map +2 -2
  31. package/dist/multiviewcalendar/tests/multiviewcalendar-vertical-angular.js +4 -2
  32. package/dist/multiviewcalendar/tests/multiviewcalendar-vertical-angular.js.map +2 -2
  33. package/dist/multiviewcalendar/tests/multiviewcalendar-vertical-jquery.js +4 -2
  34. package/dist/multiviewcalendar/tests/multiviewcalendar-vertical-jquery.js.map +2 -2
  35. package/dist/multiviewcalendar/tests/multiviewcalendar-vertical-react.js +4 -2
  36. package/dist/multiviewcalendar/tests/multiviewcalendar-vertical-react.js.map +2 -2
  37. package/dist/progressbar/tests/circular-progressbar-angular.js +59 -0
  38. package/dist/progressbar/tests/circular-progressbar-angular.js.map +7 -0
  39. package/dist/time-selector/time-selector.js +294 -0
  40. package/dist/time-selector/time-selector.js.map +7 -0
  41. package/dist/timepicker/tests/timepicker-adaptive.js +363 -0
  42. package/dist/timepicker/tests/timepicker-adaptive.js.map +7 -0
  43. package/package.json +2 -2
  44. package/src/calendar/calendar-footer.tsx +1 -1
  45. package/src/calendar/calendar.tsx +5 -1
  46. package/src/calendar/tests/calendar-classic-jquery.tsx +5 -5
  47. package/src/datepicker/tests/datepicker-adaptive.tsx +76 -0
  48. package/src/dropdownlist/tests/dropdownlist-adaptive.tsx +96 -0
  49. package/src/progressbar/tests/circular-progressbar-angular.tsx +35 -0
  50. package/src/time-selector/index.ts +1 -0
  51. package/src/time-selector/time-selector.tsx +186 -0
  52. package/src/timepicker/tests/timepicker-adaptive.tsx +76 -0
@@ -0,0 +1,779 @@
1
+ (() => {
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined")
12
+ return require.apply(this, arguments);
13
+ throw new Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
24
+
25
+ // src/datepicker/tests/datepicker-adaptive.tsx
26
+ var import_react = __toESM(__require("react"));
27
+ var import_client = __toESM(__require("react-dom/client"));
28
+
29
+ // src/button/button.tsx
30
+ var React2 = __toESM(__require("react"));
31
+
32
+ // src/utils/classNames.ts
33
+ var classNames = (...args) => {
34
+ const result = {};
35
+ const addLeafKeys = (arg) => {
36
+ typeof arg === "object" ? Object.keys(arg).forEach((key) => {
37
+ result[key] = arg[key];
38
+ }) : result[arg] = true;
39
+ };
40
+ const addKeys = (list) => list.filter((arg) => arg !== true && Boolean(arg)).map((arg) => Array.isArray(arg) ? addKeys(arg) : addLeafKeys(arg));
41
+ addKeys(args);
42
+ return Object.keys(result).map((key) => result[key] && key || null).filter((el) => el !== null).join(" ");
43
+ };
44
+
45
+ // src/utils/theme.ts
46
+ var kendoThemeMaps = {
47
+ sizeMap: {
48
+ small: "sm",
49
+ medium: "md",
50
+ large: "lg"
51
+ },
52
+ roundedMap: {
53
+ small: "sm",
54
+ medium: "md",
55
+ large: "lg"
56
+ },
57
+ calloutMap: {
58
+ top: "n",
59
+ bottom: "s",
60
+ left: "w",
61
+ right: "e"
62
+ },
63
+ orientationMap: {
64
+ vertical: "vstack",
65
+ horizontal: "hstack"
66
+ }
67
+ };
68
+
69
+ // src/icon/icon.tsx
70
+ var React = __toESM(__require("react"));
71
+ var Icon = class extends React.Component {
72
+ render() {
73
+ const {
74
+ className,
75
+ style,
76
+ name
77
+ } = this.props;
78
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, name && /* @__PURE__ */ React.createElement("span", {
79
+ className: classNames(className, "k-icon", {
80
+ [`k-i-${name}`]: name
81
+ }),
82
+ style
83
+ }));
84
+ }
85
+ };
86
+
87
+ // src/button/button.tsx
88
+ var Button = class extends React2.Component {
89
+ render() {
90
+ const {
91
+ children,
92
+ className,
93
+ iconClassName,
94
+ text,
95
+ icon,
96
+ size,
97
+ rounded,
98
+ fillMode,
99
+ themeColor,
100
+ hover,
101
+ focus,
102
+ active,
103
+ selected,
104
+ disabled,
105
+ ...htmlAttributes
106
+ } = this.props;
107
+ const hasIcon = icon !== void 0;
108
+ const hasChildren = children !== void 0;
109
+ return /* @__PURE__ */ React2.createElement("button", {
110
+ style: this.props.style,
111
+ ...htmlAttributes,
112
+ dir: this.props.dir,
113
+ className: classNames(className, "k-button", {
114
+ [`k-button-${kendoThemeMaps.sizeMap[size] || size}`]: size,
115
+ [`k-button-${fillMode}`]: fillMode,
116
+ [`k-button-${fillMode}-${themeColor}`]: Boolean(fillMode && themeColor),
117
+ [`k-rounded-${kendoThemeMaps.roundedMap[rounded] || rounded}`]: rounded,
118
+ "k-icon-button": !hasChildren && hasIcon,
119
+ "k-hover": hover,
120
+ "k-focus": focus,
121
+ "k-active": active,
122
+ "k-selected": selected,
123
+ "k-disabled": disabled
124
+ })
125
+ }, icon && /* @__PURE__ */ React2.createElement(Icon, {
126
+ className: classNames(iconClassName, "k-button-icon"),
127
+ name: icon
128
+ }), text || hasIcon ? /* @__PURE__ */ React2.createElement(React2.Fragment, null, text && /* @__PURE__ */ React2.createElement("span", {
129
+ className: "k-button-text"
130
+ }, text), children) : children && /* @__PURE__ */ React2.createElement("span", {
131
+ className: "k-button-text"
132
+ }, children));
133
+ }
134
+ };
135
+ Button.defaultProps = {
136
+ size: "medium",
137
+ rounded: "medium",
138
+ fillMode: "solid",
139
+ themeColor: "base"
140
+ };
141
+
142
+ // src/calendar/calendar.tsx
143
+ var React3 = __toESM(__require("react"));
144
+ var Calendar = class extends React3.Component {
145
+ render() {
146
+ const {
147
+ className,
148
+ size,
149
+ orientation,
150
+ calendarView,
151
+ calendarHeaderText,
152
+ viewsCount,
153
+ showWeek,
154
+ showOtherMonth,
155
+ showCalendarCaption,
156
+ showCalendarFooter,
157
+ selectedRange,
158
+ ...htmlAttributes
159
+ } = this.props;
160
+ return /* @__PURE__ */ React3.createElement("div", {
161
+ ...htmlAttributes,
162
+ className: classNames(className, "k-calendar", {
163
+ [`k-calendar-${kendoThemeMaps.sizeMap[size] || size}`]: size,
164
+ "k-week-number": showWeek
165
+ })
166
+ }, /* @__PURE__ */ React3.createElement(CalendarHeader, {
167
+ showToday: showCalendarFooter ? false : true,
168
+ calendarHeaderText,
169
+ orientation
170
+ }), /* @__PURE__ */ React3.createElement(CalendarView, {
171
+ calendarView,
172
+ viewsCount,
173
+ orientation,
174
+ showWeek,
175
+ showOtherMonth,
176
+ showCalendarCaption,
177
+ selectedRange
178
+ }), showCalendarFooter && /* @__PURE__ */ React3.createElement(CalendarFooter, null));
179
+ }
180
+ };
181
+ Calendar.defaultProps = {
182
+ size: "medium",
183
+ viewsCount: "1",
184
+ orientation: "horizontal",
185
+ calendarView: "month",
186
+ calendarHeaderText: "October 2021"
187
+ };
188
+
189
+ // src/calendar/calendar-cell.tsx
190
+ var React4 = __toESM(__require("react"));
191
+ var CalendarCell = class extends React4.Component {
192
+ render() {
193
+ const {
194
+ className,
195
+ text,
196
+ headerCell,
197
+ today,
198
+ weekend,
199
+ otherMonth,
200
+ showOtherMonth,
201
+ weekCell,
202
+ hover,
203
+ focus,
204
+ active,
205
+ selected,
206
+ disabled,
207
+ rangeStart,
208
+ rangeMid,
209
+ rangeEnd,
210
+ ...htmlAttributes
211
+ } = this.props;
212
+ const cellType = headerCell ? "th" : "td";
213
+ const calendarCellClasses = [
214
+ className,
215
+ `k-calendar-${cellType}`,
216
+ {
217
+ "k-hover": hover,
218
+ "k-focus": focus,
219
+ "k-active": active,
220
+ "k-selected": selected,
221
+ "k-disabled": disabled,
222
+ "k-today": today,
223
+ "k-weekend": weekend,
224
+ "k-other-month": otherMonth,
225
+ "k-alt": weekCell,
226
+ "k-range-start": rangeStart,
227
+ "k-range-mid": rangeMid,
228
+ "k-range-end": rangeEnd
229
+ }
230
+ ];
231
+ if (headerCell) {
232
+ return /* @__PURE__ */ React4.createElement("th", {
233
+ ...htmlAttributes,
234
+ className: classNames(calendarCellClasses)
235
+ }, text);
236
+ }
237
+ if (weekCell) {
238
+ return /* @__PURE__ */ React4.createElement("td", {
239
+ ...htmlAttributes,
240
+ className: classNames(calendarCellClasses)
241
+ }, text);
242
+ }
243
+ return /* @__PURE__ */ React4.createElement("td", {
244
+ ...htmlAttributes,
245
+ className: classNames(calendarCellClasses)
246
+ }, otherMonth && !showOtherMonth ? "" : /* @__PURE__ */ React4.createElement("span", {
247
+ className: "k-link"
248
+ }, text));
249
+ }
250
+ };
251
+
252
+ // src/calendar/calendar-header.tsx
253
+ var React5 = __toESM(__require("react"));
254
+ var CalendarHeader = class extends React5.Component {
255
+ render() {
256
+ const {
257
+ className,
258
+ calendarHeaderText,
259
+ showToday,
260
+ orientation,
261
+ ...htmlAttributes
262
+ } = this.props;
263
+ return /* @__PURE__ */ React5.createElement("div", {
264
+ ...htmlAttributes,
265
+ className: classNames(className, "k-calendar-header", {
266
+ "k-vstack": orientation === "vertical"
267
+ })
268
+ }, /* @__PURE__ */ React5.createElement(Button, {
269
+ className: "k-calendar-title",
270
+ text: calendarHeaderText,
271
+ fillMode: "flat"
272
+ }), /* @__PURE__ */ React5.createElement("span", {
273
+ className: "k-spacer"
274
+ }), /* @__PURE__ */ React5.createElement("span", {
275
+ className: "k-calendar-nav"
276
+ }, /* @__PURE__ */ React5.createElement(Button, {
277
+ className: "k-nav-prev",
278
+ icon: "arrow-chevron-left",
279
+ fillMode: "flat"
280
+ }), showToday && /* @__PURE__ */ React5.createElement("span", {
281
+ className: "k-nav-today"
282
+ }, "Today"), /* @__PURE__ */ React5.createElement(Button, {
283
+ className: "k-nav-next",
284
+ icon: "arrow-chevron-right",
285
+ fillMode: "flat"
286
+ })));
287
+ }
288
+ };
289
+ CalendarHeader.defaultProps = {
290
+ calendarHeaderText: "October 2021",
291
+ showToday: true,
292
+ orientation: "horizontal"
293
+ };
294
+
295
+ // src/calendar/calendar-footer.tsx
296
+ var React6 = __toESM(__require("react"));
297
+ var CalendarFooter = class extends React6.Component {
298
+ render() {
299
+ const {
300
+ className,
301
+ ...htmlAttributes
302
+ } = this.props;
303
+ return /* @__PURE__ */ React6.createElement("div", {
304
+ ...htmlAttributes,
305
+ className: classNames(className, "k-calendar-footer")
306
+ }, /* @__PURE__ */ React6.createElement("a", {
307
+ className: "k-nav-today"
308
+ }, "Monday, October 29, 2021"));
309
+ }
310
+ };
311
+
312
+ // src/calendar/calendar-table.tsx
313
+ var React7 = __toESM(__require("react"));
314
+ var CalendarTable = class extends React7.Component {
315
+ render() {
316
+ const {
317
+ className,
318
+ calendarView,
319
+ showOtherMonth,
320
+ showWeek,
321
+ showCalendarCaption,
322
+ selectedRange,
323
+ ...htmlAttributes
324
+ } = this.props;
325
+ if (calendarView === "year") {
326
+ return /* @__PURE__ */ React7.createElement("table", {
327
+ ...htmlAttributes,
328
+ className: classNames(className, "k-calendar-table")
329
+ }, showCalendarCaption && /* @__PURE__ */ React7.createElement("caption", {
330
+ className: "k-calendar-caption"
331
+ }, "2022"), /* @__PURE__ */ React7.createElement("tbody", {
332
+ className: "k-calendar-tbody"
333
+ }, /* @__PURE__ */ React7.createElement("tr", {
334
+ className: "k-calendar-tr"
335
+ }, /* @__PURE__ */ React7.createElement(CalendarCell, {
336
+ text: "Jan"
337
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
338
+ text: "Feb"
339
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
340
+ text: "Mar"
341
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
342
+ text: "Apr"
343
+ })), /* @__PURE__ */ React7.createElement("tr", {
344
+ className: "k-calendar-tr"
345
+ }, /* @__PURE__ */ React7.createElement(CalendarCell, {
346
+ text: "May"
347
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
348
+ text: "Jun",
349
+ hover: true
350
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
351
+ text: "Jul",
352
+ focus: true
353
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
354
+ text: "Au",
355
+ selected: true
356
+ })), /* @__PURE__ */ React7.createElement("tr", {
357
+ className: "k-calendar-tr"
358
+ }, /* @__PURE__ */ React7.createElement(CalendarCell, {
359
+ text: "Sep"
360
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
361
+ text: "Oct",
362
+ today: true
363
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
364
+ text: "Nov"
365
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
366
+ text: "Dec"
367
+ }))));
368
+ }
369
+ if (calendarView === "decade") {
370
+ return /* @__PURE__ */ React7.createElement("table", {
371
+ ...htmlAttributes,
372
+ className: classNames(className, "k-calendar-table")
373
+ }, showCalendarCaption && /* @__PURE__ */ React7.createElement("caption", {
374
+ className: "k-calendar-caption"
375
+ }, "2020 - 2029"), /* @__PURE__ */ React7.createElement("tbody", {
376
+ className: "k-calendar-tbody"
377
+ }, /* @__PURE__ */ React7.createElement("tr", {
378
+ className: "k-calendar-tr"
379
+ }, /* @__PURE__ */ React7.createElement(CalendarCell, {
380
+ className: "k-out-of-range"
381
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
382
+ text: "2020"
383
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
384
+ text: "2021",
385
+ today: true
386
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
387
+ text: "2022"
388
+ })), /* @__PURE__ */ React7.createElement("tr", {
389
+ className: "k-calendar-tr"
390
+ }, /* @__PURE__ */ React7.createElement(CalendarCell, {
391
+ text: "2023"
392
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
393
+ text: "2024",
394
+ hover: true
395
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
396
+ text: "2025",
397
+ focus: true
398
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
399
+ text: "2026",
400
+ selected: true
401
+ })), /* @__PURE__ */ React7.createElement("tr", {
402
+ className: "k-calendar-tr"
403
+ }, /* @__PURE__ */ React7.createElement(CalendarCell, {
404
+ text: "2027"
405
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
406
+ text: "2028"
407
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
408
+ text: "2029"
409
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
410
+ className: "k-out-of-range"
411
+ }))));
412
+ }
413
+ if (calendarView === "century") {
414
+ return /* @__PURE__ */ React7.createElement("table", {
415
+ ...htmlAttributes,
416
+ className: classNames(className, "k-calendar-table")
417
+ }, showCalendarCaption && /* @__PURE__ */ React7.createElement("caption", {
418
+ className: "k-calendar-caption"
419
+ }, "2000 - 2099"), /* @__PURE__ */ React7.createElement("tbody", {
420
+ className: "k-calendar-tbody"
421
+ }, /* @__PURE__ */ React7.createElement("tr", {
422
+ className: "k-calendar-tr"
423
+ }, /* @__PURE__ */ React7.createElement(CalendarCell, {
424
+ text: "1990 - 1999"
425
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
426
+ text: "2000 - 2009"
427
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
428
+ text: "2010 - 2019",
429
+ today: true
430
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
431
+ text: "2020 - 2029"
432
+ })), /* @__PURE__ */ React7.createElement("tr", {
433
+ className: "k-calendar-tr"
434
+ }, /* @__PURE__ */ React7.createElement(CalendarCell, {
435
+ text: "2030 - 2039"
436
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
437
+ text: "2040 - 2049",
438
+ hover: true
439
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
440
+ text: "2050 - 2059",
441
+ focus: true
442
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
443
+ text: "2060 - 2069",
444
+ selected: true
445
+ })), /* @__PURE__ */ React7.createElement("tr", {
446
+ className: "k-calendar-tr"
447
+ }, /* @__PURE__ */ React7.createElement(CalendarCell, {
448
+ text: "2070 - 2079"
449
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
450
+ text: "2080 - 2089"
451
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
452
+ text: "2090 - 2099"
453
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
454
+ className: "k-out-of-range"
455
+ }))));
456
+ }
457
+ return /* @__PURE__ */ React7.createElement("table", {
458
+ ...htmlAttributes,
459
+ className: classNames(className, "k-calendar-table")
460
+ }, showCalendarCaption && /* @__PURE__ */ React7.createElement("caption", {
461
+ className: "k-calendar-caption"
462
+ }, "October 2021"), /* @__PURE__ */ React7.createElement(CalendarTableHead, {
463
+ showWeek
464
+ }), /* @__PURE__ */ React7.createElement("tbody", {
465
+ className: "k-calendar-tbody"
466
+ }, /* @__PURE__ */ React7.createElement("tr", {
467
+ className: "k-calendar-tr"
468
+ }, showWeek && /* @__PURE__ */ React7.createElement(CalendarCell, {
469
+ text: "39",
470
+ weekCell: true
471
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
472
+ text: "30",
473
+ otherMonth: true,
474
+ showOtherMonth
475
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
476
+ text: "1"
477
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
478
+ text: "2"
479
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
480
+ text: "3"
481
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
482
+ text: "4"
483
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
484
+ text: "5"
485
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
486
+ text: "6",
487
+ weekend: true
488
+ })), /* @__PURE__ */ React7.createElement("tr", {
489
+ className: "k-calendar-tr"
490
+ }, showWeek && /* @__PURE__ */ React7.createElement(CalendarCell, {
491
+ text: "40",
492
+ weekCell: true
493
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
494
+ text: "7",
495
+ weekend: true
496
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
497
+ text: "8",
498
+ hover: true
499
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
500
+ text: "9",
501
+ focus: true
502
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
503
+ text: "10",
504
+ selected: true
505
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
506
+ text: "11",
507
+ hover: true,
508
+ focus: true
509
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
510
+ text: "12",
511
+ hover: true,
512
+ selected: true
513
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
514
+ text: "13",
515
+ weekend: true
516
+ })), /* @__PURE__ */ React7.createElement("tr", {
517
+ className: "k-calendar-tr"
518
+ }, showWeek && /* @__PURE__ */ React7.createElement(CalendarCell, {
519
+ text: "41",
520
+ weekCell: true
521
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
522
+ text: "14",
523
+ weekend: true
524
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
525
+ text: "15"
526
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
527
+ text: "16",
528
+ today: true
529
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
530
+ text: "17"
531
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
532
+ text: "18"
533
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
534
+ text: "19"
535
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
536
+ text: "20",
537
+ weekend: true
538
+ })), /* @__PURE__ */ React7.createElement("tr", {
539
+ className: "k-calendar-tr"
540
+ }, showWeek && /* @__PURE__ */ React7.createElement(CalendarCell, {
541
+ text: "42",
542
+ weekCell: true
543
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
544
+ text: "21",
545
+ weekend: true
546
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
547
+ text: "22"
548
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
549
+ text: "23"
550
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
551
+ text: "24"
552
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
553
+ text: "25",
554
+ rangeStart: selectedRange,
555
+ selected: selectedRange
556
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
557
+ text: "26",
558
+ rangeMid: selectedRange
559
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
560
+ text: "27",
561
+ weekend: true,
562
+ rangeMid: selectedRange
563
+ })), /* @__PURE__ */ React7.createElement("tr", {
564
+ className: "k-calendar-tr"
565
+ }, showWeek && /* @__PURE__ */ React7.createElement(CalendarCell, {
566
+ text: "43",
567
+ weekCell: true
568
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
569
+ text: "28",
570
+ weekend: true,
571
+ rangeMid: selectedRange
572
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
573
+ text: "29",
574
+ rangeEnd: selectedRange,
575
+ focus: selectedRange,
576
+ selected: selectedRange
577
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
578
+ text: "30"
579
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
580
+ text: "31"
581
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
582
+ text: "1",
583
+ otherMonth: true,
584
+ showOtherMonth
585
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
586
+ text: "2",
587
+ otherMonth: true,
588
+ showOtherMonth
589
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
590
+ text: "3",
591
+ otherMonth: true,
592
+ weekend: true,
593
+ showOtherMonth
594
+ })), /* @__PURE__ */ React7.createElement("tr", {
595
+ className: "k-calendar-tr"
596
+ }, showWeek && /* @__PURE__ */ React7.createElement(CalendarCell, {
597
+ text: "44",
598
+ weekCell: true
599
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
600
+ text: "4",
601
+ otherMonth: true,
602
+ weekend: true,
603
+ showOtherMonth
604
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
605
+ text: "5",
606
+ otherMonth: true,
607
+ showOtherMonth
608
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
609
+ text: "6",
610
+ otherMonth: true,
611
+ showOtherMonth
612
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
613
+ text: "7",
614
+ otherMonth: true,
615
+ showOtherMonth
616
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
617
+ text: "8",
618
+ otherMonth: true,
619
+ showOtherMonth
620
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
621
+ text: "9",
622
+ otherMonth: true,
623
+ showOtherMonth
624
+ }), /* @__PURE__ */ React7.createElement(CalendarCell, {
625
+ text: "10",
626
+ otherMonth: true,
627
+ weekend: true,
628
+ showOtherMonth
629
+ }))));
630
+ }
631
+ };
632
+
633
+ // src/calendar/calendar-table-head.tsx
634
+ var React8 = __toESM(__require("react"));
635
+ var CalendarTableHead = class extends React8.Component {
636
+ render() {
637
+ const {
638
+ className,
639
+ showWeek,
640
+ ...htmlAttributes
641
+ } = this.props;
642
+ return /* @__PURE__ */ React8.createElement("thead", {
643
+ ...htmlAttributes,
644
+ className: classNames(className, "k-calendar-thead")
645
+ }, /* @__PURE__ */ React8.createElement("tr", {
646
+ className: "k-calendar-tr"
647
+ }, showWeek && /* @__PURE__ */ React8.createElement(CalendarCell, {
648
+ weekCell: true,
649
+ headerCell: true
650
+ }), /* @__PURE__ */ React8.createElement(CalendarCell, {
651
+ text: "Su",
652
+ headerCell: true
653
+ }), /* @__PURE__ */ React8.createElement(CalendarCell, {
654
+ text: "Mo",
655
+ headerCell: true
656
+ }), /* @__PURE__ */ React8.createElement(CalendarCell, {
657
+ text: "Tu",
658
+ headerCell: true
659
+ }), /* @__PURE__ */ React8.createElement(CalendarCell, {
660
+ text: "We",
661
+ headerCell: true
662
+ }), /* @__PURE__ */ React8.createElement(CalendarCell, {
663
+ text: "Th",
664
+ headerCell: true
665
+ }), /* @__PURE__ */ React8.createElement(CalendarCell, {
666
+ text: "Fr",
667
+ headerCell: true
668
+ }), /* @__PURE__ */ React8.createElement(CalendarCell, {
669
+ text: "Sa",
670
+ headerCell: true
671
+ })));
672
+ }
673
+ };
674
+
675
+ // src/calendar/calendar-view.tsx
676
+ var React9 = __toESM(__require("react"));
677
+ var CalendarView = class extends React9.Component {
678
+ render() {
679
+ const {
680
+ className,
681
+ orientation,
682
+ calendarView,
683
+ viewsCount,
684
+ showWeek,
685
+ showOtherMonth,
686
+ showCalendarCaption,
687
+ selectedRange,
688
+ ...htmlAttributes
689
+ } = this.props;
690
+ const views = Number(viewsCount);
691
+ return /* @__PURE__ */ React9.createElement("div", {
692
+ ...htmlAttributes,
693
+ className: classNames(className, "k-calendar-view", `k-calendar-${calendarView}view`, "k-align-items-start", "k-justify-content-center", {
694
+ [`k-${kendoThemeMaps.orientationMap[orientation] || orientation}`]: orientation
695
+ })
696
+ }, [...Array(views)].map((_e, i) => /* @__PURE__ */ React9.createElement(CalendarTable, {
697
+ key: i,
698
+ calendarView,
699
+ showWeek,
700
+ showOtherMonth,
701
+ showCalendarCaption,
702
+ selectedRange
703
+ })));
704
+ }
705
+ };
706
+ CalendarView.defaultProps = {
707
+ viewsCount: "1",
708
+ orientation: "horizontal",
709
+ calendarView: "month"
710
+ };
711
+
712
+ // src/datepicker/tests/datepicker-adaptive.tsx
713
+ var root = import_client.default.createRoot(document.getElementById("app"));
714
+ var styles = `
715
+ .k-actionsheet-container {
716
+ width: 100%;
717
+ height: 600px;
718
+ position: relative;
719
+ transform: translateZ(0);
720
+ }
721
+ `;
722
+ root.render(/* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("style", null, styles), /* @__PURE__ */ import_react.default.createElement("div", {
723
+ id: "test-area",
724
+ className: "k-d-grid k-grid-cols-2"
725
+ }, /* @__PURE__ */ import_react.default.createElement("span", null, "partial"), /* @__PURE__ */ import_react.default.createElement("span", null, "full screen"), /* @__PURE__ */ import_react.default.createElement("section", null, /* @__PURE__ */ import_react.default.createElement("div", {
726
+ className: "k-actionsheet-container"
727
+ }, /* @__PURE__ */ import_react.default.createElement("div", {
728
+ className: "k-overlay"
729
+ }), /* @__PURE__ */ import_react.default.createElement("div", {
730
+ className: "k-actionsheet k-actionsheet-bottom k-adaptive-actionsheet"
731
+ }, /* @__PURE__ */ import_react.default.createElement("div", {
732
+ className: "k-actionsheet-titlebar"
733
+ }, /* @__PURE__ */ import_react.default.createElement("div", {
734
+ className: "k-actionsheet-title k-text-center"
735
+ }, /* @__PURE__ */ import_react.default.createElement("div", null, "Select dates"), /* @__PURE__ */ import_react.default.createElement("div", {
736
+ className: "k-text-muted"
737
+ }, "DD / MM / YY")), /* @__PURE__ */ import_react.default.createElement("div", {
738
+ className: "k-actionsheet-actions"
739
+ }, /* @__PURE__ */ import_react.default.createElement(Button, {
740
+ icon: "x",
741
+ fillMode: "flat"
742
+ }))), /* @__PURE__ */ import_react.default.createElement("div", {
743
+ className: "k-actionsheet-content"
744
+ }, /* @__PURE__ */ import_react.default.createElement(Calendar, {
745
+ size: "large"
746
+ })), /* @__PURE__ */ import_react.default.createElement("div", {
747
+ className: "k-actionsheet-footer k-actions k-actions-stretched"
748
+ }, /* @__PURE__ */ import_react.default.createElement(Button, {
749
+ size: "large",
750
+ themeColor: "primary"
751
+ }, "Select date"))))), /* @__PURE__ */ import_react.default.createElement("section", null, /* @__PURE__ */ import_react.default.createElement("div", {
752
+ className: "k-actionsheet-container"
753
+ }, /* @__PURE__ */ import_react.default.createElement("div", {
754
+ className: "k-overlay"
755
+ }), /* @__PURE__ */ import_react.default.createElement("div", {
756
+ className: "k-actionsheet k-actionsheet-bottom k-actionsheet-fullscreen k-adaptive-actionsheet"
757
+ }, /* @__PURE__ */ import_react.default.createElement("div", {
758
+ className: "k-actionsheet-titlebar"
759
+ }, /* @__PURE__ */ import_react.default.createElement("div", {
760
+ className: "k-actionsheet-title k-text-center"
761
+ }, /* @__PURE__ */ import_react.default.createElement("div", null, "Select dates"), /* @__PURE__ */ import_react.default.createElement("div", {
762
+ className: "k-text-muted"
763
+ }, "DD / MM / YY")), /* @__PURE__ */ import_react.default.createElement("div", {
764
+ className: "k-actionsheet-actions"
765
+ }, /* @__PURE__ */ import_react.default.createElement(Button, {
766
+ icon: "x",
767
+ fillMode: "flat"
768
+ }))), /* @__PURE__ */ import_react.default.createElement("div", {
769
+ className: "k-actionsheet-content"
770
+ }, /* @__PURE__ */ import_react.default.createElement(Calendar, {
771
+ size: "large"
772
+ })), /* @__PURE__ */ import_react.default.createElement("div", {
773
+ className: "k-actionsheet-footer k-actions k-actions-stretched"
774
+ }, /* @__PURE__ */ import_react.default.createElement(Button, {
775
+ size: "large",
776
+ themeColor: "primary"
777
+ }, "Select date"))))))));
778
+ })();
779
+ //# sourceMappingURL=datepicker-adaptive.js.map