@progress/kendo-themes-html 6.2.1-dev.154 → 6.2.1-dev.170

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 (133) hide show
  1. package/dist/context-menu/tests/context-menu-in-window.js +1 -4
  2. package/dist/context-menu/tests/context-menu-in-window.js.map +2 -2
  3. package/dist/datetime-selector/datetime-selector.spec.js +2 -2
  4. package/dist/datetime-selector/datetime-selector.spec.js.map +2 -2
  5. package/dist/datetime-selector/tests/datetime-selector.js +2 -2
  6. package/dist/datetime-selector/tests/datetime-selector.js.map +2 -2
  7. package/dist/datetimepicker/datetimepicker.spec.js +2 -2
  8. package/dist/datetimepicker/datetimepicker.spec.js.map +2 -2
  9. package/dist/datetimepicker/tests/datetimepicker-opened.js +2 -2
  10. package/dist/datetimepicker/tests/datetimepicker-opened.js.map +2 -2
  11. package/dist/datetimepicker/tests/datetimepicker.js +2 -2
  12. package/dist/datetimepicker/tests/datetimepicker.js.map +2 -2
  13. package/dist/dialog/dialog.spec.js +1 -4
  14. package/dist/dialog/dialog.spec.js.map +2 -2
  15. package/dist/dialog/tests/dialog-action-buttons.js +82 -73
  16. package/dist/dialog/tests/dialog-action-buttons.js.map +3 -3
  17. package/dist/dialog/tests/dialog-in-window.js +2 -8
  18. package/dist/dialog/tests/dialog-in-window.js.map +2 -2
  19. package/dist/dialog/tests/dialog-modal.js +70 -70
  20. package/dist/dialog/tests/dialog-modal.js.map +3 -3
  21. package/dist/dialog/tests/dialog-theme-colors.js +82 -73
  22. package/dist/dialog/tests/dialog-theme-colors.js.map +3 -3
  23. package/dist/dialog/tests/dialog.js +86 -74
  24. package/dist/dialog/tests/dialog.js.map +3 -3
  25. package/dist/editor/tests/editor-find-replace.js +1 -4
  26. package/dist/editor/tests/editor-find-replace.js.map +2 -2
  27. package/dist/editor/tests/editor-image-editor.js +276 -276
  28. package/dist/editor/tests/editor-image-editor.js.map +4 -4
  29. package/dist/editor/tests/editor-table-wizard-accessibility.js +5 -5
  30. package/dist/editor/tests/editor-table-wizard-accessibility.js.map +2 -2
  31. package/dist/editor/tests/editor-view-source.js +5 -5
  32. package/dist/editor/tests/editor-view-source.js.map +2 -2
  33. package/dist/filemanager/tests/filemanager-dialogs.js +79 -73
  34. package/dist/filemanager/tests/filemanager-dialogs.js.map +3 -3
  35. package/dist/form/tests/form-field-dateinputs.js +4 -4
  36. package/dist/form/tests/form-field-dateinputs.js.map +2 -2
  37. package/dist/gantt/tests/gantt-editing-popup-general.js +2300 -0
  38. package/dist/gantt/tests/gantt-editing-popup-general.js.map +7 -0
  39. package/dist/gantt/tests/gantt-editing-popup-other.js +2035 -0
  40. package/dist/gantt/tests/gantt-editing-popup-other.js.map +7 -0
  41. package/dist/gantt/tests/gantt-editing-popup-predecessors.js +1895 -0
  42. package/dist/gantt/tests/gantt-editing-popup-predecessors.js.map +7 -0
  43. package/dist/gantt/tests/gantt-editing-popup-resources.js +2195 -0
  44. package/dist/gantt/tests/gantt-editing-popup-resources.js.map +7 -0
  45. package/dist/gantt/tests/gantt-editing-popup-successors.js +1895 -0
  46. package/dist/gantt/tests/gantt-editing-popup-successors.js.map +7 -0
  47. package/dist/grid/tests/grid-column-menu-rtl.js +8 -8
  48. package/dist/grid/tests/grid-column-menu-rtl.js.map +2 -2
  49. package/dist/grid/tests/grid-column-menu-tabbed.js +1331 -0
  50. package/dist/grid/tests/grid-column-menu-tabbed.js.map +7 -0
  51. package/dist/grid/tests/grid-column-menu.js +8 -8
  52. package/dist/grid/tests/grid-column-menu.js.map +2 -2
  53. package/dist/grid/tests/grid-editing-custom-editor.js +4 -4
  54. package/dist/grid/tests/grid-editing-custom-editor.js.map +2 -2
  55. package/dist/grid/tests/grid-editing-popup.js +724 -338
  56. package/dist/grid/tests/grid-editing-popup.js.map +4 -4
  57. package/dist/grid/tests/grid-filter-menu-multi-checkbox.js +8 -8
  58. package/dist/grid/tests/grid-filter-menu-multi-checkbox.js.map +2 -2
  59. package/dist/grid/tests/grid-filter-menu.js +2 -2
  60. package/dist/grid/tests/grid-filter-menu.js.map +2 -2
  61. package/dist/grid/tests/grid-filter-row.js +4 -4
  62. package/dist/grid/tests/grid-filter-row.js.map +2 -2
  63. package/dist/grid/tests/grid-rows-resizing.js +2 -2
  64. package/dist/grid/tests/grid-rows-resizing.js.map +2 -2
  65. package/dist/grid/tests/grid-selection-aggregates.js +1348 -0
  66. package/dist/grid/tests/grid-selection-aggregates.js.map +7 -0
  67. package/dist/imageeditor/tests/imageeditor-crop-pane.js +48 -32
  68. package/dist/imageeditor/tests/imageeditor-crop-pane.js.map +2 -2
  69. package/dist/imageeditor/tests/imageeditor-resize-pane.js +45 -22
  70. package/dist/imageeditor/tests/imageeditor-resize-pane.js.map +2 -2
  71. package/dist/index.js +6 -12
  72. package/dist/index.js.map +2 -2
  73. package/dist/scheduler/tests/scheduler-edit-dialog.js +1394 -882
  74. package/dist/scheduler/tests/scheduler-edit-dialog.js.map +4 -4
  75. package/dist/scheduler/tests/scheduler-editing-weekly.js +2964 -0
  76. package/dist/scheduler/tests/scheduler-editing-weekly.js.map +7 -0
  77. package/dist/spreadsheet/tests/spreadsheet-dialog.js +10 -7
  78. package/dist/spreadsheet/tests/spreadsheet-dialog.js.map +2 -2
  79. package/dist/timepicker/tests/timepicker-flat.js +2 -2
  80. package/dist/timepicker/tests/timepicker-flat.js.map +2 -2
  81. package/dist/timepicker/tests/timepicker-opened.js +2 -2
  82. package/dist/timepicker/tests/timepicker-opened.js.map +2 -2
  83. package/dist/timepicker/tests/timepicker-outline.js +2 -2
  84. package/dist/timepicker/tests/timepicker-outline.js.map +2 -2
  85. package/dist/timepicker/tests/timepicker.js +2 -2
  86. package/dist/timepicker/tests/timepicker.js.map +2 -2
  87. package/dist/timepicker/timepicker.spec.js +2 -2
  88. package/dist/timepicker/timepicker.spec.js.map +2 -2
  89. package/dist/treelist/tests/treelist-editing-popup.js +1939 -0
  90. package/dist/treelist/tests/treelist-editing-popup.js.map +7 -0
  91. package/dist/window/tests/window-action-buttons.js +82 -73
  92. package/dist/window/tests/window-action-buttons.js.map +3 -3
  93. package/dist/window/tests/window-rtl.js +1 -4
  94. package/dist/window/tests/window-rtl.js.map +2 -2
  95. package/dist/window/tests/window-theme-colors.js +1 -4
  96. package/dist/window/tests/window-theme-colors.js.map +2 -2
  97. package/dist/window/tests/window.js +1 -4
  98. package/dist/window/tests/window.js.map +2 -2
  99. package/dist/window/window.spec.js +1 -4
  100. package/dist/window/window.spec.js.map +2 -2
  101. package/package.json +2 -2
  102. package/src/datetime-selector/datetime-selector.spec.tsx +1 -1
  103. package/src/dialog/dialog.spec.tsx +2 -3
  104. package/src/dialog/tests/dialog-action-buttons.tsx +25 -4
  105. package/src/dialog/tests/dialog-modal.tsx +7 -1
  106. package/src/dialog/tests/dialog-theme-colors.tsx +25 -4
  107. package/src/dialog/tests/dialog.tsx +31 -5
  108. package/src/editor/tests/editor-image-editor.tsx +8 -2
  109. package/src/editor/tests/editor-table-wizard-accessibility.tsx +7 -1
  110. package/src/editor/tests/editor-view-source.tsx +7 -1
  111. package/src/filemanager/tests/filemanager-dialogs.tsx +19 -3
  112. package/src/gantt/tests/gantt-editing-popup-general.tsx +97 -0
  113. package/src/gantt/tests/gantt-editing-popup-other.tsx +92 -0
  114. package/src/gantt/tests/gantt-editing-popup-predecessors.tsx +113 -0
  115. package/src/gantt/tests/gantt-editing-popup-resources.tsx +180 -0
  116. package/src/gantt/tests/gantt-editing-popup-successors.tsx +113 -0
  117. package/src/grid/tests/grid-column-menu-rtl.tsx +4 -4
  118. package/src/grid/tests/grid-column-menu-tabbed.tsx +337 -0
  119. package/src/grid/tests/grid-column-menu.tsx +4 -4
  120. package/src/grid/tests/grid-editing-popup.tsx +18 -30
  121. package/src/grid/tests/grid-filter-menu-multi-checkbox.tsx +4 -4
  122. package/src/grid/tests/grid-filter-menu.tsx +1 -1
  123. package/src/grid/tests/grid-rows-resizing.tsx +6 -3
  124. package/src/grid/tests/grid-selection-aggregates.tsx +192 -0
  125. package/src/imageeditor/tests/imageeditor-crop-pane.tsx +35 -20
  126. package/src/imageeditor/tests/imageeditor-resize-pane.tsx +31 -16
  127. package/src/scheduler/tests/scheduler-edit-dialog.tsx +32 -34
  128. package/src/scheduler/tests/scheduler-editing-weekly.tsx +137 -0
  129. package/src/spreadsheet/tests/spreadsheet-dialog.tsx +15 -4
  130. package/src/timepicker/timepicker.spec.tsx +1 -1
  131. package/src/treelist/tests/treelist-editing-popup.tsx +66 -0
  132. package/src/window/tests/window-action-buttons.tsx +25 -4
  133. package/src/window/window.spec.tsx +2 -3
@@ -0,0 +1,2300 @@
1
+ (() => {
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b ||= {})
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
26
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
27
+ }) : x)(function(x) {
28
+ if (typeof require !== "undefined")
29
+ return require.apply(this, arguments);
30
+ throw new Error('Dynamic require of "' + x + '" is not supported');
31
+ });
32
+ var __objRest = (source, exclude) => {
33
+ var target = {};
34
+ for (var prop in source)
35
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
36
+ target[prop] = source[prop];
37
+ if (source != null && __getOwnPropSymbols)
38
+ for (var prop of __getOwnPropSymbols(source)) {
39
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
40
+ target[prop] = source[prop];
41
+ }
42
+ return target;
43
+ };
44
+ var __copyProps = (to, from, except, desc) => {
45
+ if (from && typeof from === "object" || typeof from === "function") {
46
+ for (let key of __getOwnPropNames(from))
47
+ if (!__hasOwnProp.call(to, key) && key !== except)
48
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
49
+ }
50
+ return to;
51
+ };
52
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
53
+ // If the importer is in node compatibility mode or this is not an ESM
54
+ // file that has been converted to a CommonJS file using a Babel-
55
+ // compatible transform (i.e. "__esModule" has not been set), then set
56
+ // "default" to the CommonJS "module.exports" for node compatibility.
57
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
58
+ mod
59
+ ));
60
+
61
+ // src/gantt/tests/gantt-editing-popup-general.tsx
62
+ var import_client = __toESM(__require("react-dom/client"));
63
+
64
+ // src/utils/class-names.ts
65
+ var classNames = (...args) => {
66
+ return args.filter((arg) => arg !== true && Boolean(arg)).map((arg) => {
67
+ return Array.isArray(arg) ? classNames(...arg) : typeof arg === "object" ? Object.keys(arg).map((key, idx) => arg[idx] || arg[key] && key || null).filter((el) => el !== null).join(" ") : arg;
68
+ }).filter((arg) => Boolean(arg)).join(" ");
69
+ };
70
+
71
+ // src/utils/component-class-names.ts
72
+ var optionClassNames = (componentClassName, props) => {
73
+ return classNames(
74
+ {
75
+ [`${componentClassName}-xs`]: props.size === "xsmall",
76
+ [`${componentClassName}-sm`]: props.size === "small",
77
+ [`${componentClassName}-md`]: props.size === "medium",
78
+ [`${componentClassName}-lg`]: props.size === "large",
79
+ [`${componentClassName}-xl`]: props.size === "xlarge",
80
+ [`${componentClassName}-xxl`]: props.size === "xxlarge",
81
+ [`${componentClassName}-xxxl`]: props.size === "xxxlarge"
82
+ },
83
+ {
84
+ [`${componentClassName}-${props.fillMode}`]: props.fillMode
85
+ },
86
+ {
87
+ [`${componentClassName}-${props.fillMode}-${props.themeColor}`]: props.fillMode && props.themeColor
88
+ },
89
+ {
90
+ [`${componentClassName}-${props.themeColor}`]: props.themeColor && props.fillMode === void 0
91
+ },
92
+ {
93
+ "k-rounded-sm": props.rounded === "small",
94
+ "k-rounded-md": props.rounded === "medium",
95
+ "k-rounded-lg": props.rounded === "large",
96
+ "k-rounded-full": props.rounded === "full"
97
+ }
98
+ );
99
+ };
100
+ var stateClassNames = (_componentClassName, props) => {
101
+ return classNames({
102
+ "k-valid": props.valid,
103
+ "k-invalid": props.invalid,
104
+ "k-hover": props.hover,
105
+ "k-focus": props.focus,
106
+ "k-checked": props.checked,
107
+ "k-active": props.active,
108
+ "k-selected": props.selected,
109
+ "k-disabled": props.disabled,
110
+ "k-indeterminate": props.indeterminate && !props.checked,
111
+ "k-loading": props.loading,
112
+ "k-empty": props.empty,
113
+ "k-readonly": props.readonly
114
+ });
115
+ };
116
+
117
+ // src/utils/theme.ts
118
+ var Size = {
119
+ "xsmall": "xsmall",
120
+ "small": "small",
121
+ "medium": "medium",
122
+ "large": "large",
123
+ "xlarge": "xlarge",
124
+ "xxlarge": "xxlarge",
125
+ "xxxlarge": "xxxlarge"
126
+ };
127
+ var Roundness = {
128
+ "small": "small",
129
+ "medium": "medium",
130
+ "large": "large",
131
+ "full": "full"
132
+ };
133
+ var FillMode = {
134
+ "solid": "solid",
135
+ "flat": "flat",
136
+ "outline": "outline",
137
+ "clear": "clear",
138
+ "link": "link"
139
+ };
140
+ var ThemeColor = {
141
+ "inherit": "inherit",
142
+ "base": "base",
143
+ "primary": "primary",
144
+ "secondary": "secondary",
145
+ "tertiary": "tertiary",
146
+ "info": "info",
147
+ "success": "success",
148
+ "warning": "warning",
149
+ "error": "error",
150
+ "dark": "dark",
151
+ "light": "light",
152
+ "inverse": "inverse"
153
+ };
154
+ var States = {
155
+ "open": "open",
156
+ "hover": "hover",
157
+ "focus": "focus",
158
+ "active": "active",
159
+ "selected": "selected",
160
+ "disabled": "disabled",
161
+ "valid": "valid",
162
+ "invalid": "invalid",
163
+ "loading": "loading",
164
+ "required": "required",
165
+ "empty": "empty",
166
+ "indeterminate": "indeterminate",
167
+ "checked": "checked",
168
+ "readonly": "readonly"
169
+ };
170
+
171
+ // src/icon/icon.spec.tsx
172
+ var import_jsx_runtime = __require("react/jsx-runtime");
173
+ var ICON_CLASSNAME = `k-icon`;
174
+ var states = [];
175
+ var options = {
176
+ size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
177
+ themeColor: [
178
+ ThemeColor.base,
179
+ ThemeColor.primary,
180
+ ThemeColor.secondary,
181
+ ThemeColor.tertiary,
182
+ ThemeColor.success,
183
+ ThemeColor.warning,
184
+ ThemeColor.error,
185
+ ThemeColor.info,
186
+ ThemeColor.light,
187
+ ThemeColor.dark
188
+ ]
189
+ };
190
+ var defaultProps = {};
191
+ var Icon = (props) => {
192
+ const _a = props, {
193
+ size,
194
+ themeColor,
195
+ name,
196
+ rotate,
197
+ flip
198
+ } = _a, other = __objRest(_a, [
199
+ "size",
200
+ "themeColor",
201
+ "name",
202
+ "rotate",
203
+ "flip"
204
+ ]);
205
+ if (!name) {
206
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {});
207
+ }
208
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
209
+ "span",
210
+ __spreadProps(__spreadValues({}, other), {
211
+ className: classNames(
212
+ props.className,
213
+ ICON_CLASSNAME,
214
+ optionClassNames(ICON_CLASSNAME, {
215
+ size,
216
+ themeColor
217
+ }),
218
+ {
219
+ [`k-i-${name}`]: name,
220
+ [`k-rotate-${rotate}`]: rotate,
221
+ [`k-flip-${flip}`]: flip
222
+ }
223
+ )
224
+ })
225
+ );
226
+ };
227
+ Icon.states = states;
228
+ Icon.options = options;
229
+ Icon.className = ICON_CLASSNAME;
230
+ Icon.defaultProps = defaultProps;
231
+
232
+ // src/button/button.spec.tsx
233
+ var import_jsx_runtime2 = __require("react/jsx-runtime");
234
+ var BUTTON_CLASSNAME = `k-button`;
235
+ var states2 = [
236
+ States.hover,
237
+ States.focus,
238
+ States.active,
239
+ States.selected,
240
+ States.disabled
241
+ ];
242
+ var options2 = {
243
+ size: [Size.small, Size.medium, Size.large],
244
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
245
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
246
+ themeColor: [
247
+ ThemeColor.base,
248
+ ThemeColor.primary,
249
+ ThemeColor.secondary,
250
+ ThemeColor.tertiary,
251
+ ThemeColor.success,
252
+ ThemeColor.warning,
253
+ ThemeColor.error,
254
+ ThemeColor.info,
255
+ ThemeColor.light,
256
+ ThemeColor.dark,
257
+ ThemeColor.inverse
258
+ ]
259
+ };
260
+ var defaultProps2 = {
261
+ size: Size.medium,
262
+ rounded: Roundness.medium,
263
+ fillMode: FillMode.solid,
264
+ themeColor: ThemeColor.base,
265
+ showArrow: false,
266
+ arrowIconName: "arrow-s"
267
+ };
268
+ var Button = (props) => {
269
+ const _a = props, {
270
+ size = defaultProps2.size,
271
+ rounded = defaultProps2.rounded,
272
+ fillMode = defaultProps2.fillMode,
273
+ themeColor = defaultProps2.themeColor,
274
+ hover,
275
+ focus,
276
+ active,
277
+ selected,
278
+ disabled,
279
+ icon,
280
+ text,
281
+ iconClassName,
282
+ showArrow = defaultProps2.showArrow,
283
+ arrowIconName = defaultProps2.arrowIconName
284
+ } = _a, other = __objRest(_a, [
285
+ "size",
286
+ "rounded",
287
+ "fillMode",
288
+ "themeColor",
289
+ "hover",
290
+ "focus",
291
+ "active",
292
+ "selected",
293
+ "disabled",
294
+ "icon",
295
+ "text",
296
+ "iconClassName",
297
+ "showArrow",
298
+ "arrowIconName"
299
+ ]);
300
+ const hasIcon = icon !== void 0;
301
+ const hasChildren = props.children !== void 0;
302
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
303
+ "button",
304
+ __spreadProps(__spreadValues({}, other), {
305
+ className: classNames(
306
+ props.className,
307
+ BUTTON_CLASSNAME,
308
+ optionClassNames(BUTTON_CLASSNAME, {
309
+ size,
310
+ rounded,
311
+ fillMode,
312
+ themeColor
313
+ }),
314
+ stateClassNames(BUTTON_CLASSNAME, {
315
+ hover,
316
+ focus,
317
+ active,
318
+ disabled,
319
+ selected
320
+ }),
321
+ {
322
+ ["k-icon-button"]: !text && !hasChildren && hasIcon
323
+ }
324
+ ),
325
+ children: [
326
+ icon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
327
+ Icon,
328
+ {
329
+ className: classNames(iconClassName, "k-button-icon"),
330
+ name: icon
331
+ }
332
+ ),
333
+ text ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
334
+ text && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "k-button-text", children: text }),
335
+ props.children
336
+ ] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "k-button-text", children: props.children }),
337
+ showArrow && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Icon, { name: arrowIconName }) })
338
+ ]
339
+ })
340
+ );
341
+ };
342
+ Button.states = states2;
343
+ Button.options = options2;
344
+ Button.className = BUTTON_CLASSNAME;
345
+ Button.defaultProps = defaultProps2;
346
+
347
+ // src/action-buttons/action-buttons.spec.tsx
348
+ var import_jsx_runtime3 = __require("react/jsx-runtime");
349
+ var ACTIONBUTTONS_CLASSNAME = `k-actions`;
350
+ var states3 = [];
351
+ var options3 = {};
352
+ var defaultProps3 = {
353
+ alignment: "start",
354
+ orientation: "horizontal"
355
+ };
356
+ var ActionButtons = (props) => {
357
+ const _a = props, {
358
+ alignment = defaultProps3.alignment,
359
+ orientation = defaultProps3.orientation
360
+ } = _a, other = __objRest(_a, [
361
+ "alignment",
362
+ "orientation"
363
+ ]);
364
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
365
+ "div",
366
+ __spreadProps(__spreadValues({}, other), {
367
+ className: classNames(
368
+ ACTIONBUTTONS_CLASSNAME,
369
+ {
370
+ [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
371
+ [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
372
+ },
373
+ props.className
374
+ ),
375
+ children: props.children
376
+ })
377
+ );
378
+ };
379
+ ActionButtons.states = states3;
380
+ ActionButtons.options = options3;
381
+ ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
382
+ ActionButtons.defaultProps = defaultProps3;
383
+
384
+ // src/window/window.spec.tsx
385
+ var import_jsx_runtime4 = __require("react/jsx-runtime");
386
+ var WINDOW_CLASSNAME = `k-window`;
387
+ var states4 = [];
388
+ var options4 = {
389
+ themeColor: [
390
+ ThemeColor.primary,
391
+ ThemeColor.light,
392
+ ThemeColor.dark
393
+ ]
394
+ };
395
+ var defaultProps4 = {};
396
+ var Window = (props) => {
397
+ const _a = props, {
398
+ title,
399
+ actions,
400
+ minimized,
401
+ themeColor,
402
+ actionButtons,
403
+ actionButtonsAlign
404
+ } = _a, other = __objRest(_a, [
405
+ "title",
406
+ "actions",
407
+ "minimized",
408
+ "themeColor",
409
+ "actionButtons",
410
+ "actionButtonsAlign"
411
+ ]);
412
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
413
+ "div",
414
+ __spreadProps(__spreadValues({}, other), {
415
+ className: classNames(
416
+ props.className,
417
+ WINDOW_CLASSNAME,
418
+ optionClassNames(WINDOW_CLASSNAME, { themeColor }),
419
+ {
420
+ [`${WINDOW_CLASSNAME}-minimized`]: minimized
421
+ }
422
+ ),
423
+ children: [
424
+ (title !== void 0 || actions) && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "k-window-titlebar", children: [
425
+ title !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "k-window-title", children: title }),
426
+ actions && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "k-window-titlebar-actions", children: actions.map(
427
+ (actionName) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Button, { icon: actionName, fillMode: "flat", className: "k-window-titlebar-action" }, actionName)
428
+ ) }) })
429
+ ] }),
430
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: classNames(
431
+ "k-window-content",
432
+ {
433
+ "k-hidden": minimized
434
+ }
435
+ ), children: props.children }),
436
+ actionButtons && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ActionButtons, { alignment: actionButtonsAlign, className: "k-window-actions", children: actionButtons })
437
+ ]
438
+ })
439
+ );
440
+ };
441
+ Window.states = states4;
442
+ Window.options = options4;
443
+ Window.className = WINDOW_CLASSNAME;
444
+ Window.defaultProps = defaultProps4;
445
+
446
+ // src/input/input.spec.tsx
447
+ var import_jsx_runtime5 = __require("react/jsx-runtime");
448
+ var INPUT_CLASSNAME = `k-input`;
449
+ var states5 = [
450
+ States.hover,
451
+ States.focus,
452
+ States.valid,
453
+ States.invalid,
454
+ States.required,
455
+ States.disabled,
456
+ States.loading,
457
+ States.readonly
458
+ ];
459
+ var options5 = {
460
+ size: [Size.small, Size.medium, Size.large],
461
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
462
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
463
+ };
464
+ var defaultProps5 = {
465
+ size: Size.medium,
466
+ rounded: Size.medium,
467
+ fillMode: FillMode.solid
468
+ };
469
+ var Input = (props) => {
470
+ const _a = props, {
471
+ hover,
472
+ focus,
473
+ disabled,
474
+ invalid,
475
+ valid,
476
+ loading,
477
+ readonly,
478
+ size = defaultProps5.size,
479
+ rounded = defaultProps5.rounded,
480
+ fillMode = defaultProps5.fillMode
481
+ } = _a, other = __objRest(_a, [
482
+ "hover",
483
+ "focus",
484
+ "disabled",
485
+ "invalid",
486
+ "valid",
487
+ "loading",
488
+ "readonly",
489
+ "size",
490
+ "rounded",
491
+ "fillMode"
492
+ ]);
493
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
494
+ "span",
495
+ __spreadProps(__spreadValues({}, other), {
496
+ className: classNames(
497
+ props.className,
498
+ INPUT_CLASSNAME,
499
+ optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
500
+ stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
501
+ )
502
+ })
503
+ );
504
+ };
505
+ Input.states = states5;
506
+ Input.options = options5;
507
+ Input.className = INPUT_CLASSNAME;
508
+ Input.defaultProps = defaultProps5;
509
+
510
+ // src/input/picker.spec.tsx
511
+ var import_jsx_runtime6 = __require("react/jsx-runtime");
512
+ var PICKER_CLASSNAME = `k-picker`;
513
+ var pickerStates = [
514
+ States.hover,
515
+ States.focus,
516
+ States.valid,
517
+ States.invalid,
518
+ States.required,
519
+ States.disabled,
520
+ States.loading,
521
+ States.readonly
522
+ ];
523
+ var pickerOptions = {
524
+ size: [Size.small, Size.medium, Size.large],
525
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
526
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
527
+ };
528
+ var defaultProps6 = {
529
+ size: Size.medium,
530
+ rounded: Roundness.medium,
531
+ fillMode: FillMode.solid
532
+ };
533
+ var Picker = (props) => {
534
+ const _a = props, {
535
+ hover,
536
+ focus,
537
+ disabled,
538
+ invalid,
539
+ valid,
540
+ loading,
541
+ readonly,
542
+ size = defaultProps6.size,
543
+ rounded = defaultProps6.rounded,
544
+ fillMode = defaultProps6.fillMode
545
+ } = _a, other = __objRest(_a, [
546
+ "hover",
547
+ "focus",
548
+ "disabled",
549
+ "invalid",
550
+ "valid",
551
+ "loading",
552
+ "readonly",
553
+ "size",
554
+ "rounded",
555
+ "fillMode"
556
+ ]);
557
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
558
+ "span",
559
+ __spreadProps(__spreadValues({}, other), {
560
+ className: classNames(
561
+ props.className,
562
+ PICKER_CLASSNAME,
563
+ optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
564
+ stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
565
+ ),
566
+ children: props.children
567
+ })
568
+ );
569
+ };
570
+ Picker.states = pickerStates;
571
+ Picker.options = pickerOptions;
572
+ Picker.className = PICKER_CLASSNAME;
573
+ Picker.defaultProps = defaultProps6;
574
+
575
+ // src/input/input-clear-value.tsx
576
+ var import_jsx_runtime7 = __require("react/jsx-runtime");
577
+ var className = `k-clear-value`;
578
+ var states6 = [
579
+ States.disabled,
580
+ States.loading,
581
+ States.readonly
582
+ ];
583
+ var options6 = {};
584
+ var InputClearValue = (props) => {
585
+ const {
586
+ disabled,
587
+ loading,
588
+ readonly,
589
+ value
590
+ } = props;
591
+ if (disabled || readonly || loading || !value) {
592
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, {});
593
+ }
594
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: classNames(props.className, className), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "x" }) });
595
+ };
596
+ InputClearValue.states = states6;
597
+ InputClearValue.options = options6;
598
+ InputClearValue.className = className;
599
+
600
+ // src/input/input-inner-input.tsx
601
+ var import_jsx_runtime8 = __require("react/jsx-runtime");
602
+ var className2 = `k-input-inner`;
603
+ var states7 = [];
604
+ var options7 = {};
605
+ var defaultProps7 = {
606
+ type: "text",
607
+ autocomplete: "off",
608
+ value: "",
609
+ placeholder: ""
610
+ };
611
+ var InputInnerInput = (props) => {
612
+ const _a = props, {
613
+ value = defaultProps7.value,
614
+ type = defaultProps7.type,
615
+ placeholder = defaultProps7.placeholder,
616
+ autocomplete = defaultProps7.autocomplete
617
+ } = _a, other = __objRest(_a, [
618
+ "value",
619
+ "type",
620
+ "placeholder",
621
+ "autocomplete"
622
+ ]);
623
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
624
+ "input",
625
+ __spreadProps(__spreadValues({}, other), {
626
+ type,
627
+ className: classNames(props.className, className2, optionClassNames(className2, props)),
628
+ placeholder,
629
+ autoComplete: autocomplete,
630
+ defaultValue: value
631
+ })
632
+ );
633
+ };
634
+ InputInnerInput.states = states7;
635
+ InputInnerInput.options = options7;
636
+ InputInnerInput.className = className2;
637
+
638
+ // src/input/input-inner-span.tsx
639
+ var import_jsx_runtime9 = __require("react/jsx-runtime");
640
+ var className3 = `k-input-inner`;
641
+ var states8 = [];
642
+ var options8 = {};
643
+ var InputInnerSpan = (props) => {
644
+ const _a = props, {
645
+ value,
646
+ placeholder,
647
+ showValue,
648
+ valueIcon,
649
+ valueIconName
650
+ } = _a, other = __objRest(_a, [
651
+ "value",
652
+ "placeholder",
653
+ "showValue",
654
+ "valueIcon",
655
+ "valueIconName"
656
+ ]);
657
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
658
+ "span",
659
+ __spreadProps(__spreadValues({}, other), {
660
+ className: classNames(props.className, className3, optionClassNames(className3, props)),
661
+ children: [
662
+ valueIcon,
663
+ !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { className: "k-input-value-icon", name: valueIconName }),
664
+ showValue && !value && placeholder,
665
+ showValue && value && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "k-input-value-text", children: value })
666
+ ]
667
+ })
668
+ );
669
+ };
670
+ InputInnerSpan.states = states8;
671
+ InputInnerSpan.options = options8;
672
+ InputInnerSpan.className = className3;
673
+
674
+ // src/input/input-inner-textarea.tsx
675
+ var import_jsx_runtime10 = __require("react/jsx-runtime");
676
+ var defaultProps8 = {
677
+ value: "",
678
+ placeholder: ""
679
+ };
680
+ var className4 = `k-input-inner`;
681
+ var states9 = [];
682
+ var options9 = {};
683
+ var InputInnerTextarea = (props) => {
684
+ const _a = props, {
685
+ value = defaultProps8.value,
686
+ placeholder = defaultProps8.placeholder,
687
+ rows
688
+ } = _a, other = __objRest(_a, [
689
+ "value",
690
+ "placeholder",
691
+ "rows"
692
+ ]);
693
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
694
+ "textarea",
695
+ __spreadProps(__spreadValues({}, other), {
696
+ className: classNames(props.className, className4, optionClassNames(className4, props)),
697
+ placeholder,
698
+ rows,
699
+ children: value
700
+ })
701
+ );
702
+ };
703
+ InputInnerTextarea.states = states9;
704
+ InputInnerTextarea.options = options9;
705
+ InputInnerTextarea.className = className4;
706
+
707
+ // src/input/input-loading-icon.tsx
708
+ var import_jsx_runtime11 = __require("react/jsx-runtime");
709
+ var className5 = `k-input-loading-icon`;
710
+ var states10 = [
711
+ States.disabled,
712
+ States.loading
713
+ ];
714
+ var InputLoadingIcon = (props) => {
715
+ const {
716
+ disabled,
717
+ loading
718
+ } = props;
719
+ if (disabled || !loading) {
720
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, {});
721
+ }
722
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { className: classNames(props.className, className5), name: "loading" });
723
+ };
724
+
725
+ // src/input/input-validation-icon.tsx
726
+ var import_jsx_runtime12 = __require("react/jsx-runtime");
727
+ var className6 = `k-input-validation-icon`;
728
+ var states11 = [
729
+ States.valid,
730
+ States.invalid,
731
+ States.disabled,
732
+ States.loading
733
+ ];
734
+ var options10 = {};
735
+ var InputValidationIcon = (props) => {
736
+ const {
737
+ valid,
738
+ invalid,
739
+ disabled,
740
+ loading
741
+ } = props;
742
+ const iconName = invalid ? "warning" : "check";
743
+ const renderValidationIcon = Boolean(valid || invalid);
744
+ if (disabled || loading || !renderValidationIcon) {
745
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, {});
746
+ }
747
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { className: classNames(className6), name: iconName });
748
+ };
749
+ InputValidationIcon.states = states11;
750
+ InputValidationIcon.options = options10;
751
+ InputValidationIcon.className = className6;
752
+
753
+ // src/input/input-prefix.tsx
754
+ var import_jsx_runtime13 = __require("react/jsx-runtime");
755
+ var className7 = `k-input-prefix`;
756
+ var InputPrefix = (props) => {
757
+ if (!props.children) {
758
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, {});
759
+ }
760
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: classNames(className7, props.className), children: props.children });
761
+ };
762
+
763
+ // src/input/input-suffix.tsx
764
+ var import_jsx_runtime14 = __require("react/jsx-runtime");
765
+ var className8 = `k-input-suffix`;
766
+ var InputSuffix = (props) => {
767
+ if (!props.children) {
768
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jsx_runtime14.Fragment, {});
769
+ }
770
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: classNames(className8, props.className), children: props.children });
771
+ };
772
+
773
+ // src/textbox/textbox.spec.tsx
774
+ var import_jsx_runtime15 = __require("react/jsx-runtime");
775
+ var TEXTBOX_CLASSNAME = `k-textbox`;
776
+ var states12 = [
777
+ States.hover,
778
+ States.focus,
779
+ States.valid,
780
+ States.invalid,
781
+ States.required,
782
+ States.disabled,
783
+ States.loading,
784
+ States.readonly
785
+ ];
786
+ var options11 = {
787
+ size: [Size.small, Size.medium, Size.large],
788
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
789
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
790
+ };
791
+ var defaultProps9 = {
792
+ showClearButton: true,
793
+ size: Input.defaultProps.size,
794
+ rounded: Input.defaultProps.rounded,
795
+ fillMode: Input.defaultProps.fillMode
796
+ };
797
+ var Textbox = (props) => {
798
+ const _a = props, {
799
+ prefix,
800
+ suffix,
801
+ value,
802
+ placeholder,
803
+ size,
804
+ rounded,
805
+ fillMode,
806
+ hover,
807
+ focus,
808
+ valid,
809
+ invalid,
810
+ required,
811
+ loading,
812
+ disabled,
813
+ readonly,
814
+ showClearButton = defaultProps9.showClearButton
815
+ } = _a, other = __objRest(_a, [
816
+ "prefix",
817
+ "suffix",
818
+ "value",
819
+ "placeholder",
820
+ "size",
821
+ "rounded",
822
+ "fillMode",
823
+ "hover",
824
+ "focus",
825
+ "valid",
826
+ "invalid",
827
+ "required",
828
+ "loading",
829
+ "disabled",
830
+ "readonly",
831
+ "showClearButton"
832
+ ]);
833
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
834
+ Input,
835
+ __spreadProps(__spreadValues({}, other), {
836
+ size,
837
+ rounded,
838
+ fillMode,
839
+ hover,
840
+ focus,
841
+ valid,
842
+ invalid,
843
+ required,
844
+ loading,
845
+ disabled,
846
+ readonly,
847
+ className: classNames(props.className, TEXTBOX_CLASSNAME),
848
+ children: [
849
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(InputPrefix, { children: prefix }),
850
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(InputInnerInput, { placeholder, value }),
851
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
852
+ InputValidationIcon,
853
+ {
854
+ valid,
855
+ invalid,
856
+ loading,
857
+ disabled
858
+ }
859
+ ),
860
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
861
+ InputLoadingIcon,
862
+ {
863
+ loading,
864
+ disabled
865
+ }
866
+ ),
867
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
868
+ InputClearValue,
869
+ {
870
+ loading,
871
+ disabled,
872
+ readonly,
873
+ value
874
+ }
875
+ ),
876
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(InputSuffix, { children: suffix })
877
+ ]
878
+ })
879
+ );
880
+ };
881
+ Textbox.states = states12;
882
+ Textbox.options = options11;
883
+ Textbox.className = TEXTBOX_CLASSNAME;
884
+ Textbox.defaultProps = defaultProps9;
885
+
886
+ // src/popup/popup.spec.tsx
887
+ var import_jsx_runtime16 = __require("react/jsx-runtime");
888
+ var POPUP_CLASSNAME = `k-popup`;
889
+ var states13 = [];
890
+ var options12 = {};
891
+ var defaultProps10 = {};
892
+ var Popup = (props) => {
893
+ const other = __objRest(props, []);
894
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", __spreadProps(__spreadValues({}, other), { className: classNames(props.className, POPUP_CLASSNAME), children: props.children }));
895
+ };
896
+ Popup.states = states13;
897
+ Popup.options = options12;
898
+ Popup.className = POPUP_CLASSNAME;
899
+ Popup.defaultProps = defaultProps10;
900
+
901
+ // src/button-group/button-group.spec.tsx
902
+ var import_jsx_runtime17 = __require("react/jsx-runtime");
903
+ var BUTTONGROUP_CLASSNAME = `k-button-group`;
904
+ var states14 = [
905
+ States.disabled
906
+ ];
907
+ var options13 = {
908
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
909
+ };
910
+ var defaultProps11 = {
911
+ fillMode: FillMode.solid
912
+ };
913
+ var ButtonGroup = (props) => {
914
+ const _a = props, {
915
+ fillMode = defaultProps11.fillMode,
916
+ disabled,
917
+ stretched
918
+ } = _a, other = __objRest(_a, [
919
+ "fillMode",
920
+ "disabled",
921
+ "stretched"
922
+ ]);
923
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
924
+ "div",
925
+ __spreadProps(__spreadValues({}, other), {
926
+ className: classNames(
927
+ props.className,
928
+ BUTTONGROUP_CLASSNAME,
929
+ optionClassNames(BUTTONGROUP_CLASSNAME, {
930
+ fillMode
931
+ }),
932
+ stateClassNames(BUTTONGROUP_CLASSNAME, {
933
+ disabled
934
+ }),
935
+ {
936
+ [`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
937
+ }
938
+ ),
939
+ children: props.children
940
+ })
941
+ );
942
+ };
943
+ ButtonGroup.states = states14;
944
+ ButtonGroup.options = options13;
945
+ ButtonGroup.className = BUTTONGROUP_CLASSNAME;
946
+ ButtonGroup.defaultProps = defaultProps11;
947
+
948
+ // src/calendar/calendar.spec.tsx
949
+ var import_jsx_runtime18 = __require("react/jsx-runtime");
950
+ var CALENDAR_CLASSNAME = `k-calendar`;
951
+ var states15 = [];
952
+ var options14 = {
953
+ size: [Size.small, Size.medium, Size.large]
954
+ };
955
+ var defaultProps12 = {
956
+ size: Size.medium,
957
+ viewsCount: 1,
958
+ orientation: "horizontal",
959
+ calendarView: "month",
960
+ calendarHeaderText: "October 2021"
961
+ };
962
+ var Calendar = (props) => {
963
+ const _a = props, {
964
+ size = defaultProps12.size,
965
+ orientation = defaultProps12.orientation,
966
+ calendarView = defaultProps12.calendarView,
967
+ calendarHeaderText = defaultProps12.calendarHeaderText,
968
+ viewsCount = defaultProps12.viewsCount,
969
+ showWeek,
970
+ showOtherMonth,
971
+ showCalendarCaption,
972
+ showCalendarFooter,
973
+ selectedRange
974
+ } = _a, other = __objRest(_a, [
975
+ "size",
976
+ "orientation",
977
+ "calendarView",
978
+ "calendarHeaderText",
979
+ "viewsCount",
980
+ "showWeek",
981
+ "showOtherMonth",
982
+ "showCalendarCaption",
983
+ "showCalendarFooter",
984
+ "selectedRange"
985
+ ]);
986
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
987
+ "div",
988
+ __spreadProps(__spreadValues({}, other), {
989
+ className: classNames(
990
+ props.className,
991
+ CALENDAR_CLASSNAME,
992
+ optionClassNames(CALENDAR_CLASSNAME, {
993
+ size
994
+ }),
995
+ {
996
+ "k-week-number": showWeek
997
+ }
998
+ ),
999
+ children: [
1000
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1001
+ CalendarHeader,
1002
+ {
1003
+ showToday: showCalendarFooter ? false : true,
1004
+ calendarHeaderText,
1005
+ orientation,
1006
+ size
1007
+ }
1008
+ ),
1009
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1010
+ CalendarView,
1011
+ {
1012
+ calendarView,
1013
+ viewsCount,
1014
+ orientation,
1015
+ showWeek,
1016
+ showOtherMonth,
1017
+ showCalendarCaption,
1018
+ selectedRange
1019
+ }
1020
+ ),
1021
+ showCalendarFooter && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CalendarFooter, {})
1022
+ ]
1023
+ })
1024
+ );
1025
+ };
1026
+ Calendar.states = states15;
1027
+ Calendar.options = options14;
1028
+ Calendar.className = CALENDAR_CLASSNAME;
1029
+ Calendar.defaultProps = defaultProps12;
1030
+
1031
+ // src/calendar/calendar-cell.tsx
1032
+ var import_jsx_runtime19 = __require("react/jsx-runtime");
1033
+ var states16 = [
1034
+ States.hover,
1035
+ States.focus,
1036
+ States.active,
1037
+ States.selected,
1038
+ States.disabled
1039
+ ];
1040
+ var CalendarCell = (props) => {
1041
+ const _a = props, {
1042
+ text,
1043
+ headerCell,
1044
+ today,
1045
+ weekend,
1046
+ otherMonth,
1047
+ showOtherMonth,
1048
+ weekCell,
1049
+ rangeStart,
1050
+ rangeMid,
1051
+ rangeEnd,
1052
+ hover,
1053
+ focus,
1054
+ active,
1055
+ selected,
1056
+ disabled
1057
+ } = _a, other = __objRest(_a, [
1058
+ "text",
1059
+ "headerCell",
1060
+ "today",
1061
+ "weekend",
1062
+ "otherMonth",
1063
+ "showOtherMonth",
1064
+ "weekCell",
1065
+ "rangeStart",
1066
+ "rangeMid",
1067
+ "rangeEnd",
1068
+ "hover",
1069
+ "focus",
1070
+ "active",
1071
+ "selected",
1072
+ "disabled"
1073
+ ]);
1074
+ const cellType = headerCell ? "th" : "td";
1075
+ const CALENDARCELL_CLASSNAME = `k-calendar-${cellType}`;
1076
+ const calendarCellClasses = [
1077
+ props.className,
1078
+ CALENDARCELL_CLASSNAME,
1079
+ stateClassNames(CALENDARCELL_CLASSNAME, {
1080
+ hover,
1081
+ focus,
1082
+ active,
1083
+ selected,
1084
+ disabled
1085
+ }),
1086
+ {
1087
+ "k-today": today,
1088
+ "k-weekend": weekend,
1089
+ "k-other-month": otherMonth,
1090
+ "k-alt": weekCell,
1091
+ "k-range-start": rangeStart,
1092
+ "k-range-mid": rangeMid,
1093
+ "k-range-end": rangeEnd
1094
+ }
1095
+ ];
1096
+ if (headerCell) {
1097
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("th", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: text }));
1098
+ }
1099
+ if (weekCell) {
1100
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("td", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: text }));
1101
+ }
1102
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("td", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: otherMonth && !showOtherMonth ? "" : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "k-link", children: text }) }));
1103
+ };
1104
+
1105
+ // src/calendar/calendar-header.tsx
1106
+ var import_jsx_runtime20 = __require("react/jsx-runtime");
1107
+ var className9 = `k-calendar-header`;
1108
+ var options15 = {
1109
+ size: [Size.small, Size.medium, Size.large]
1110
+ };
1111
+ var defaultProps13 = {
1112
+ calendarHeaderText: "October 2021",
1113
+ showToday: true,
1114
+ orientation: "horizontal",
1115
+ size: Size.medium
1116
+ };
1117
+ var CalendarHeader = (props) => {
1118
+ const _a = props, {
1119
+ calendarHeaderText = defaultProps13.calendarHeaderText,
1120
+ showToday = defaultProps13.showToday,
1121
+ orientation = defaultProps13.orientation,
1122
+ size = defaultProps13.size
1123
+ } = _a, other = __objRest(_a, [
1124
+ "calendarHeaderText",
1125
+ "showToday",
1126
+ "orientation",
1127
+ "size"
1128
+ ]);
1129
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1130
+ "div",
1131
+ __spreadProps(__spreadValues({}, other), {
1132
+ className: classNames(
1133
+ props.className,
1134
+ className9,
1135
+ {
1136
+ "k-vstack": orientation === "vertical"
1137
+ }
1138
+ ),
1139
+ children: [
1140
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { className: "k-calendar-title", text: calendarHeaderText, size, fillMode: "flat" }),
1141
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "k-spacer" }),
1142
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: "k-calendar-nav", children: [
1143
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { className: "k-calendar-nav-prev", icon: "arrow-chevron-left", size, fillMode: "flat" }),
1144
+ showToday && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { size, fillMode: "flat", themeColor: "primary", className: "k-calendar-nav-today", children: "Today" }),
1145
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { className: "k-calendar-nav-next", icon: "arrow-chevron-right", size, fillMode: "flat" })
1146
+ ] })
1147
+ ]
1148
+ })
1149
+ );
1150
+ };
1151
+
1152
+ // src/calendar/calendar-footer.tsx
1153
+ var import_jsx_runtime21 = __require("react/jsx-runtime");
1154
+ var className10 = `k-calendar-footer`;
1155
+ var CalendarFooter = (props) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", __spreadProps(__spreadValues({}, props), { className: classNames(props.className, className10), children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Button, { fillMode: "flat", themeColor: "primary", className: "k-calendar-nav-today", children: "Monday, October 29, 2021" }) }));
1156
+
1157
+ // src/calendar/calendar-table.tsx
1158
+ var import_jsx_runtime22 = __require("react/jsx-runtime");
1159
+ var CALENDARTABLE_CLASSNAME = `k-calendar-table`;
1160
+ var CalendarTable = (props) => {
1161
+ const _a = props, {
1162
+ calendarView,
1163
+ showOtherMonth,
1164
+ showWeek,
1165
+ showCalendarCaption,
1166
+ selectedRange
1167
+ } = _a, other = __objRest(_a, [
1168
+ "calendarView",
1169
+ "showOtherMonth",
1170
+ "showWeek",
1171
+ "showCalendarCaption",
1172
+ "selectedRange"
1173
+ ]);
1174
+ if (calendarView === "year") {
1175
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1176
+ "table",
1177
+ __spreadProps(__spreadValues({}, other), {
1178
+ className: classNames(
1179
+ props.className,
1180
+ CALENDARTABLE_CLASSNAME
1181
+ ),
1182
+ children: [
1183
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("caption", { className: "k-calendar-caption", children: "2022" }),
1184
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1185
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1186
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Jan" }),
1187
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Feb" }),
1188
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Mar" }),
1189
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Apr" })
1190
+ ] }),
1191
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1192
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "May" }),
1193
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Jun", hover: true }),
1194
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Jul", focus: true }),
1195
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Au", selected: true })
1196
+ ] }),
1197
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1198
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Sep" }),
1199
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Oct", today: true }),
1200
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Nov" }),
1201
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Dec" })
1202
+ ] })
1203
+ ] })
1204
+ ]
1205
+ })
1206
+ );
1207
+ }
1208
+ if (calendarView === "decade") {
1209
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1210
+ "table",
1211
+ __spreadProps(__spreadValues({}, other), {
1212
+ className: classNames(
1213
+ props.className,
1214
+ CALENDARTABLE_CLASSNAME
1215
+ ),
1216
+ children: [
1217
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("caption", { className: "k-calendar-caption", children: "2020 - 2029" }),
1218
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1219
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1220
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { className: "k-out-of-range" }),
1221
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2020" }),
1222
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2021", today: true }),
1223
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2022" })
1224
+ ] }),
1225
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1226
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2023" }),
1227
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2024", hover: true }),
1228
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2025", focus: true }),
1229
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2026", selected: true })
1230
+ ] }),
1231
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1232
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2027" }),
1233
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2028" }),
1234
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2029" }),
1235
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { className: "k-out-of-range" })
1236
+ ] })
1237
+ ] })
1238
+ ]
1239
+ })
1240
+ );
1241
+ }
1242
+ if (calendarView === "century") {
1243
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1244
+ "table",
1245
+ __spreadProps(__spreadValues({}, other), {
1246
+ className: classNames(
1247
+ props.className,
1248
+ CALENDARTABLE_CLASSNAME
1249
+ ),
1250
+ children: [
1251
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("caption", { className: "k-calendar-caption", children: "2000 - 2099" }),
1252
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1253
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1254
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "1990 - 1999" }),
1255
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2000 - 2009" }),
1256
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2010 - 2019", today: true }),
1257
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2020 - 2029" })
1258
+ ] }),
1259
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1260
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2030 - 2039" }),
1261
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2040 - 2049", hover: true }),
1262
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2050 - 2059", focus: true }),
1263
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2060 - 2069", selected: true })
1264
+ ] }),
1265
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1266
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2070 - 2079" }),
1267
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2080 - 2089" }),
1268
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2090 - 2099" }),
1269
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { className: "k-out-of-range" })
1270
+ ] })
1271
+ ] })
1272
+ ]
1273
+ })
1274
+ );
1275
+ }
1276
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1277
+ "table",
1278
+ __spreadProps(__spreadValues({}, other), {
1279
+ className: classNames(
1280
+ props.className,
1281
+ CALENDARTABLE_CLASSNAME
1282
+ ),
1283
+ children: [
1284
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("caption", { className: "k-calendar-caption", children: "October 2021" }),
1285
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarTableHead, { showWeek }),
1286
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1287
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1288
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "39", weekCell: true }),
1289
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "30", otherMonth: true, showOtherMonth }),
1290
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "1" }),
1291
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2" }),
1292
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "3" }),
1293
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "4" }),
1294
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "5" }),
1295
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "6", weekend: true })
1296
+ ] }),
1297
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1298
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "40", weekCell: true }),
1299
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "7", weekend: true }),
1300
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "8", hover: true }),
1301
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "9", focus: true }),
1302
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "10", selected: true }),
1303
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "11", hover: true, focus: true }),
1304
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "12", hover: true, selected: true }),
1305
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "13", weekend: true })
1306
+ ] }),
1307
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1308
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "41", weekCell: true }),
1309
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "14", weekend: true }),
1310
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "15" }),
1311
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "16", today: true }),
1312
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "17" }),
1313
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "18" }),
1314
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "19" }),
1315
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "20", weekend: true })
1316
+ ] }),
1317
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1318
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "42", weekCell: true }),
1319
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "21", weekend: true }),
1320
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "22" }),
1321
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "23" }),
1322
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "24" }),
1323
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "25", rangeStart: selectedRange, selected: selectedRange }),
1324
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "26", rangeMid: selectedRange }),
1325
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "27", weekend: true, rangeMid: selectedRange })
1326
+ ] }),
1327
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1328
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "43", weekCell: true }),
1329
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "28", weekend: true, rangeMid: selectedRange }),
1330
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "29", rangeEnd: selectedRange, focus: selectedRange, selected: selectedRange }),
1331
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "30" }),
1332
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "31" }),
1333
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "1", otherMonth: true, showOtherMonth }),
1334
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2", otherMonth: true, showOtherMonth }),
1335
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "3", otherMonth: true, weekend: true, showOtherMonth })
1336
+ ] }),
1337
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1338
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "44", weekCell: true }),
1339
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "4", otherMonth: true, weekend: true, showOtherMonth }),
1340
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "5", otherMonth: true, showOtherMonth }),
1341
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "6", otherMonth: true, showOtherMonth }),
1342
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "7", otherMonth: true, showOtherMonth }),
1343
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "8", otherMonth: true, showOtherMonth }),
1344
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "9", otherMonth: true, showOtherMonth }),
1345
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "10", otherMonth: true, weekend: true, showOtherMonth })
1346
+ ] })
1347
+ ] })
1348
+ ]
1349
+ })
1350
+ );
1351
+ };
1352
+
1353
+ // src/calendar/calendar-table-head.tsx
1354
+ var import_jsx_runtime23 = __require("react/jsx-runtime");
1355
+ var className11 = `k-calendar-thead`;
1356
+ var CalendarTableHead = (props) => {
1357
+ const _a = props, {
1358
+ showWeek
1359
+ } = _a, other = __objRest(_a, [
1360
+ "showWeek"
1361
+ ]);
1362
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1363
+ "thead",
1364
+ __spreadProps(__spreadValues({}, other), {
1365
+ className: classNames(props.className, className11),
1366
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("tr", { className: "k-calendar-tr", children: [
1367
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarCell, { weekCell: true, headerCell: true }),
1368
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarCell, { text: "Su", headerCell: true }),
1369
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarCell, { text: "Mo", headerCell: true }),
1370
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarCell, { text: "Tu", headerCell: true }),
1371
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarCell, { text: "We", headerCell: true }),
1372
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarCell, { text: "Th", headerCell: true }),
1373
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarCell, { text: "Fr", headerCell: true }),
1374
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarCell, { text: "Sa", headerCell: true })
1375
+ ] })
1376
+ })
1377
+ );
1378
+ };
1379
+
1380
+ // src/calendar/calendar-view.tsx
1381
+ var import_jsx_runtime24 = __require("react/jsx-runtime");
1382
+ var className12 = `k-calendar-view`;
1383
+ var defaultProps14 = {
1384
+ viewsCount: 1,
1385
+ orientation: "horizontal",
1386
+ calendarView: "month"
1387
+ };
1388
+ var CalendarView = (props) => {
1389
+ const _a = props, {
1390
+ orientation = defaultProps14.orientation,
1391
+ calendarView = defaultProps14.calendarView,
1392
+ viewsCount = defaultProps14.viewsCount,
1393
+ showWeek,
1394
+ showOtherMonth,
1395
+ showCalendarCaption,
1396
+ selectedRange
1397
+ } = _a, other = __objRest(_a, [
1398
+ "orientation",
1399
+ "calendarView",
1400
+ "viewsCount",
1401
+ "showWeek",
1402
+ "showOtherMonth",
1403
+ "showCalendarCaption",
1404
+ "selectedRange"
1405
+ ]);
1406
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1407
+ "div",
1408
+ __spreadProps(__spreadValues({}, other), {
1409
+ className: classNames(
1410
+ props.className,
1411
+ className12,
1412
+ `k-calendar-${calendarView}view`,
1413
+ "k-align-items-start",
1414
+ "k-justify-content-center",
1415
+ {
1416
+ "k-hstack": orientation === "horizontal",
1417
+ "k-vstack": orientation === "vertical"
1418
+ }
1419
+ ),
1420
+ children: [...Array(viewsCount)].map(
1421
+ (_e, i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1422
+ CalendarTable,
1423
+ {
1424
+ calendarView,
1425
+ showWeek,
1426
+ showOtherMonth,
1427
+ showCalendarCaption,
1428
+ selectedRange
1429
+ },
1430
+ i
1431
+ )
1432
+ )
1433
+ })
1434
+ );
1435
+ };
1436
+
1437
+ // src/time-selector/time-selector.spec.tsx
1438
+ var import_jsx_runtime25 = __require("react/jsx-runtime");
1439
+ var TIMESELECTOR_CLASSNAME = `k-timeselector`;
1440
+ var states17 = [];
1441
+ var options16 = {
1442
+ size: [Size.small, Size.medium, Size.large]
1443
+ };
1444
+ var defaultProps15 = {
1445
+ size: Size.medium
1446
+ };
1447
+ var TimeSelector = (props) => {
1448
+ const _a = props, {
1449
+ size = defaultProps15.size,
1450
+ header,
1451
+ fastSelection,
1452
+ columns,
1453
+ focusedColumn
1454
+ } = _a, other = __objRest(_a, [
1455
+ "size",
1456
+ "header",
1457
+ "fastSelection",
1458
+ "columns",
1459
+ "focusedColumn"
1460
+ ]);
1461
+ const columnsDom = columns.map(function(columnType, index) {
1462
+ let focus = false;
1463
+ let separator = true;
1464
+ if (columnType === focusedColumn) {
1465
+ focus = true;
1466
+ }
1467
+ if (index === 0 || columnType === "tt") {
1468
+ separator = false;
1469
+ }
1470
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx_runtime25.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TimeSelectorColumn, { type: columnType, focus, separator }) });
1471
+ });
1472
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1473
+ "div",
1474
+ __spreadProps(__spreadValues({}, other), {
1475
+ className: classNames(
1476
+ props.className,
1477
+ TIMESELECTOR_CLASSNAME,
1478
+ optionClassNames(TIMESELECTOR_CLASSNAME, {
1479
+ size
1480
+ })
1481
+ ),
1482
+ children: [
1483
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx_runtime25.Fragment, { children: header }),
1484
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx_runtime25.Fragment, { children: fastSelection }),
1485
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "k-time-list-container", children: [
1486
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "k-time-highlight" }),
1487
+ columnsDom
1488
+ ] })
1489
+ ]
1490
+ })
1491
+ );
1492
+ };
1493
+ TimeSelector.states = states17;
1494
+ TimeSelector.options = options16;
1495
+ TimeSelector.className = TIMESELECTOR_CLASSNAME;
1496
+ TimeSelector.defaultProps = defaultProps15;
1497
+
1498
+ // src/time-selector/time-selector-column.tsx
1499
+ var import_jsx_runtime26 = __require("react/jsx-runtime");
1500
+ var states18 = [
1501
+ States.focus
1502
+ ];
1503
+ var TimeSelectorColumn = (props) => {
1504
+ const _a = props, {
1505
+ type,
1506
+ focus,
1507
+ separator
1508
+ } = _a, other = __objRest(_a, [
1509
+ "type",
1510
+ "focus",
1511
+ "separator"
1512
+ ]);
1513
+ let text;
1514
+ let columnData = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09"];
1515
+ switch (type) {
1516
+ case "dd":
1517
+ text = "Day";
1518
+ break;
1519
+ case "HH":
1520
+ text = "Hour";
1521
+ break;
1522
+ case "mm":
1523
+ text = "Minute";
1524
+ break;
1525
+ case "ss":
1526
+ text = "Second";
1527
+ break;
1528
+ case "SSS":
1529
+ text = "Millisecond";
1530
+ columnData = ["000", "001", "002", "003", "004", "005", "006", "007", "008", "009"];
1531
+ break;
1532
+ case "tt":
1533
+ text = "AM/PM";
1534
+ columnData = ["AM", "PM"];
1535
+ break;
1536
+ default:
1537
+ text = "Column Name";
1538
+ break;
1539
+ }
1540
+ const items = columnData.map(
1541
+ (data) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jsx_runtime26.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("li", { className: "k-item", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: data }) }) })
1542
+ );
1543
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
1544
+ separator && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "k-time-separator", children: ":" }),
1545
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1546
+ "div",
1547
+ __spreadProps(__spreadValues({}, other), {
1548
+ className: classNames(
1549
+ props.className,
1550
+ "k-time-list-wrapper",
1551
+ stateClassNames("k-time-list-wrapper", {
1552
+ focus
1553
+ })
1554
+ ),
1555
+ children: [
1556
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "k-title", children: text }),
1557
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "k-time-list", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "k-content k-scrollable k-time-container", children: [
1558
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("ul", { className: "k-reset", style: { transform: "translateY(97px)" }, children: items }),
1559
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "k-scrollable-placeholder" })
1560
+ ] }) })
1561
+ ]
1562
+ })
1563
+ )
1564
+ ] });
1565
+ };
1566
+
1567
+ // src/time-selector/time-selector-header.tsx
1568
+ var import_jsx_runtime27 = __require("react/jsx-runtime");
1569
+ var className13 = `k-time-header`;
1570
+ var TimeSelectorHeader = (props) => {
1571
+ const _a = props, {
1572
+ title
1573
+ } = _a, other = __objRest(_a, [
1574
+ "title"
1575
+ ]);
1576
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
1577
+ "div",
1578
+ __spreadProps(__spreadValues({}, other), {
1579
+ className: classNames(
1580
+ props.className,
1581
+ className13
1582
+ ),
1583
+ children: [
1584
+ title != null && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-title", children: title }),
1585
+ props.children
1586
+ ]
1587
+ })
1588
+ );
1589
+ };
1590
+
1591
+ // src/time-selector/time-selector-fast-selection.tsx
1592
+ var import_jsx_runtime28 = __require("react/jsx-runtime");
1593
+
1594
+ // src/datetime-selector/datetime-selector.spec.tsx
1595
+ var import_jsx_runtime29 = __require("react/jsx-runtime");
1596
+ var DATETIMESELECTOR_CLASSNAME = `k-datetime-wrap`;
1597
+ var states19 = [];
1598
+ var options17 = {};
1599
+ var defaultProps16 = {
1600
+ tab: "date"
1601
+ };
1602
+ var DateTimeSelector = (props) => {
1603
+ const _a = props, {
1604
+ tab = defaultProps16.tab
1605
+ } = _a, other = __objRest(_a, [
1606
+ "tab"
1607
+ ]);
1608
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1609
+ "div",
1610
+ __spreadProps(__spreadValues({}, other), {
1611
+ className: classNames(
1612
+ props.className,
1613
+ DATETIMESELECTOR_CLASSNAME,
1614
+ {
1615
+ "k-date-tab": tab === "date",
1616
+ "k-time-tab": tab === "time"
1617
+ }
1618
+ ),
1619
+ children: [
1620
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "k-datetime-buttongroup", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(ButtonGroup, { stretched: true, children: [
1621
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { className: "k-group-start", selected: tab === "date", children: "Date" }),
1622
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { className: "k-group-end", selected: tab === "time", children: "Time" })
1623
+ ] }) }),
1624
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "k-datetime-selector", children: tab === "time" ? /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
1625
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "k-datetime-calendar-wrap" }),
1626
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "k-datetime-time-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TimeSelector, { columns: ["HH", "mm", "ss", "tt"], focusedColumn: "mm", header: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TimeSelectorHeader, { title: "10:00:00 AM", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { fillMode: "flat", className: "k-time-now", children: "Now" }) }) }) })
1627
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
1628
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "k-datetime-calendar-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Calendar, { showOtherMonth: true }) }),
1629
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "k-datetime-time-wrap" })
1630
+ ] }) }),
1631
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(ActionButtons, { className: "k-datetime-footer", alignment: "stretched", children: [
1632
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { themeColor: "primary", className: "k-time-accept", children: "Set" }),
1633
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { className: "k-time-cancel", children: "Cancel" })
1634
+ ] })
1635
+ ]
1636
+ })
1637
+ );
1638
+ };
1639
+ DateTimeSelector.states = states19;
1640
+ DateTimeSelector.options = options17;
1641
+ DateTimeSelector.className = DATETIMESELECTOR_CLASSNAME;
1642
+ DateTimeSelector.defaultProps = defaultProps16;
1643
+
1644
+ // src/datetimepicker/datetimepicker.spec.tsx
1645
+ var import_jsx_runtime30 = __require("react/jsx-runtime");
1646
+ var DATETIMEPICKER_CLASSNAME = `k-datetimepicker`;
1647
+ var states20 = [
1648
+ States.hover,
1649
+ States.focus,
1650
+ States.valid,
1651
+ States.invalid,
1652
+ States.required,
1653
+ States.disabled,
1654
+ States.loading,
1655
+ States.readonly
1656
+ ];
1657
+ var options18 = {
1658
+ size: [Size.small, Size.medium, Size.large],
1659
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1660
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
1661
+ };
1662
+ var defaultProps17 = {
1663
+ tab: "date",
1664
+ size: Input.defaultProps.size,
1665
+ rounded: Input.defaultProps.rounded,
1666
+ fillMode: Input.defaultProps.fillMode
1667
+ };
1668
+ var DateTimePicker = (props) => {
1669
+ const _a = props, {
1670
+ prefix,
1671
+ suffix,
1672
+ value,
1673
+ placeholder,
1674
+ size,
1675
+ rounded,
1676
+ fillMode,
1677
+ hover,
1678
+ focus,
1679
+ valid,
1680
+ invalid,
1681
+ required,
1682
+ loading,
1683
+ disabled,
1684
+ readonly,
1685
+ opened,
1686
+ tab = defaultProps17.tab
1687
+ } = _a, other = __objRest(_a, [
1688
+ "prefix",
1689
+ "suffix",
1690
+ "value",
1691
+ "placeholder",
1692
+ "size",
1693
+ "rounded",
1694
+ "fillMode",
1695
+ "hover",
1696
+ "focus",
1697
+ "valid",
1698
+ "invalid",
1699
+ "required",
1700
+ "loading",
1701
+ "disabled",
1702
+ "readonly",
1703
+ "opened",
1704
+ "tab"
1705
+ ]);
1706
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
1707
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1708
+ Input,
1709
+ __spreadProps(__spreadValues({}, other), {
1710
+ size,
1711
+ rounded,
1712
+ fillMode,
1713
+ hover,
1714
+ focus,
1715
+ valid,
1716
+ invalid,
1717
+ required,
1718
+ loading,
1719
+ disabled,
1720
+ readonly,
1721
+ className: classNames(props.className, DATETIMEPICKER_CLASSNAME),
1722
+ children: [
1723
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(InputPrefix, { children: prefix }),
1724
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(InputInnerInput, { placeholder, value }),
1725
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1726
+ InputValidationIcon,
1727
+ {
1728
+ valid,
1729
+ invalid,
1730
+ loading,
1731
+ disabled
1732
+ }
1733
+ ),
1734
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1735
+ InputLoadingIcon,
1736
+ {
1737
+ loading,
1738
+ disabled
1739
+ }
1740
+ ),
1741
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1742
+ InputClearValue,
1743
+ {
1744
+ loading,
1745
+ disabled,
1746
+ readonly,
1747
+ value
1748
+ }
1749
+ ),
1750
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(InputSuffix, { children: suffix }),
1751
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1752
+ Button,
1753
+ {
1754
+ className: "k-input-button",
1755
+ icon: tab === "time" ? "clock" : "calendar",
1756
+ rounded: null,
1757
+ size,
1758
+ fillMode
1759
+ }
1760
+ )
1761
+ ]
1762
+ })
1763
+ ),
1764
+ opened && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Popup, { className: "k-datetimepicker-popup", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DateTimeSelector, { tab }) })
1765
+ ] });
1766
+ };
1767
+ DateTimePicker.states = states20;
1768
+ DateTimePicker.options = options18;
1769
+ DateTimePicker.className = DATETIMEPICKER_CLASSNAME;
1770
+ DateTimePicker.defaultProps = defaultProps17;
1771
+
1772
+ // src/spinbutton/spinbutton.spec.tsx
1773
+ var import_jsx_runtime31 = __require("react/jsx-runtime");
1774
+ var SPINBUTTON_CLASSNAME = `k-spin-button`;
1775
+ var states21 = [];
1776
+ var options19 = {
1777
+ size: [Size.small, Size.medium, Size.large],
1778
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
1779
+ };
1780
+ var defaultProps18 = {
1781
+ size: Size.medium,
1782
+ fillMode: FillMode.solid
1783
+ };
1784
+ var SpinButton = (props) => {
1785
+ const _a = props, {
1786
+ size = defaultProps18.size,
1787
+ fillMode = defaultProps18.fillMode
1788
+ } = _a, other = __objRest(_a, [
1789
+ "size",
1790
+ "fillMode"
1791
+ ]);
1792
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1793
+ "span",
1794
+ __spreadProps(__spreadValues({}, other), {
1795
+ className: classNames(
1796
+ SPINBUTTON_CLASSNAME,
1797
+ props.className
1798
+ ),
1799
+ children: [
1800
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1801
+ Button,
1802
+ {
1803
+ className: "k-spinner-increase",
1804
+ icon: "arrow-n",
1805
+ rounded: null,
1806
+ size,
1807
+ fillMode
1808
+ }
1809
+ ),
1810
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1811
+ Button,
1812
+ {
1813
+ className: "k-spinner-decrease",
1814
+ icon: "arrow-s",
1815
+ rounded: null,
1816
+ size,
1817
+ fillMode
1818
+ }
1819
+ )
1820
+ ]
1821
+ })
1822
+ );
1823
+ };
1824
+ SpinButton.states = states21;
1825
+ SpinButton.options = options19;
1826
+ SpinButton.className = SPINBUTTON_CLASSNAME;
1827
+ SpinButton.defaultProps = defaultProps18;
1828
+
1829
+ // src/numerictextbox/numerictextbox.spec.tsx
1830
+ var import_jsx_runtime32 = __require("react/jsx-runtime");
1831
+ var NUMERICTEXTBOX_CLASSNAME = `k-numerictextbox`;
1832
+ var states22 = [
1833
+ States.hover,
1834
+ States.focus,
1835
+ States.valid,
1836
+ States.invalid,
1837
+ States.loading,
1838
+ States.required,
1839
+ States.disabled,
1840
+ States.readonly
1841
+ ];
1842
+ var options20 = {
1843
+ size: [Size.small, Size.medium, Size.large],
1844
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1845
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
1846
+ };
1847
+ var defaultProps19 = {
1848
+ showSpinButton: true,
1849
+ showClearButton: true,
1850
+ size: Input.defaultProps.size,
1851
+ rounded: Input.defaultProps.rounded,
1852
+ fillMode: Input.defaultProps.fillMode
1853
+ };
1854
+ var NumericTextbox = (props) => {
1855
+ const _a = props, {
1856
+ value,
1857
+ placeholder,
1858
+ size,
1859
+ rounded,
1860
+ fillMode,
1861
+ hover,
1862
+ focus,
1863
+ valid,
1864
+ invalid,
1865
+ required,
1866
+ loading,
1867
+ disabled,
1868
+ readonly,
1869
+ showClearButton = defaultProps19.showClearButton,
1870
+ showSpinButton = defaultProps19.showSpinButton
1871
+ } = _a, other = __objRest(_a, [
1872
+ "value",
1873
+ "placeholder",
1874
+ "size",
1875
+ "rounded",
1876
+ "fillMode",
1877
+ "hover",
1878
+ "focus",
1879
+ "valid",
1880
+ "invalid",
1881
+ "required",
1882
+ "loading",
1883
+ "disabled",
1884
+ "readonly",
1885
+ "showClearButton",
1886
+ "showSpinButton"
1887
+ ]);
1888
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
1889
+ Input,
1890
+ __spreadProps(__spreadValues({}, other), {
1891
+ size,
1892
+ rounded,
1893
+ fillMode,
1894
+ hover,
1895
+ focus,
1896
+ valid,
1897
+ invalid,
1898
+ required,
1899
+ loading,
1900
+ disabled,
1901
+ readonly,
1902
+ className: classNames(props.className, NUMERICTEXTBOX_CLASSNAME),
1903
+ children: [
1904
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(InputInnerInput, { placeholder, value }),
1905
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1906
+ InputValidationIcon,
1907
+ {
1908
+ valid,
1909
+ invalid,
1910
+ loading,
1911
+ disabled
1912
+ }
1913
+ ),
1914
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1915
+ InputLoadingIcon,
1916
+ {
1917
+ loading,
1918
+ disabled
1919
+ }
1920
+ ),
1921
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1922
+ InputClearValue,
1923
+ {
1924
+ loading,
1925
+ disabled,
1926
+ readonly,
1927
+ value
1928
+ }
1929
+ ),
1930
+ showSpinButton && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1931
+ SpinButton,
1932
+ {
1933
+ className: "k-input-spinner",
1934
+ size,
1935
+ fillMode
1936
+ }
1937
+ )
1938
+ ]
1939
+ })
1940
+ );
1941
+ };
1942
+ NumericTextbox.states = states22;
1943
+ NumericTextbox.options = options20;
1944
+ NumericTextbox.className = NUMERICTEXTBOX_CLASSNAME;
1945
+ NumericTextbox.defaultProps = defaultProps19;
1946
+
1947
+ // src/dropdownlist/dropdownlist.spec.tsx
1948
+ var import_jsx_runtime33 = __require("react/jsx-runtime");
1949
+ var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
1950
+ var states23 = [
1951
+ States.hover,
1952
+ States.focus,
1953
+ States.valid,
1954
+ States.invalid,
1955
+ States.required,
1956
+ States.disabled,
1957
+ States.loading,
1958
+ States.readonly
1959
+ ];
1960
+ var options21 = {
1961
+ size: [Size.small, Size.medium, Size.large],
1962
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1963
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
1964
+ };
1965
+ var defaultProps20 = {
1966
+ showValue: true,
1967
+ arrowIconName: "arrow-s",
1968
+ size: Size.medium,
1969
+ rounded: Roundness.medium,
1970
+ fillMode: FillMode.solid
1971
+ };
1972
+ var DropdownList = (props) => {
1973
+ const _a = props, {
1974
+ valueIconName,
1975
+ arrowIconName = defaultProps20.arrowIconName,
1976
+ prefix,
1977
+ suffix,
1978
+ value,
1979
+ placeholder,
1980
+ size,
1981
+ rounded,
1982
+ fillMode,
1983
+ hover,
1984
+ focus,
1985
+ valid,
1986
+ invalid,
1987
+ required,
1988
+ loading,
1989
+ disabled,
1990
+ readonly,
1991
+ showValue = defaultProps20.showValue,
1992
+ popup,
1993
+ opened
1994
+ } = _a, other = __objRest(_a, [
1995
+ "valueIconName",
1996
+ "arrowIconName",
1997
+ "prefix",
1998
+ "suffix",
1999
+ "value",
2000
+ "placeholder",
2001
+ "size",
2002
+ "rounded",
2003
+ "fillMode",
2004
+ "hover",
2005
+ "focus",
2006
+ "valid",
2007
+ "invalid",
2008
+ "required",
2009
+ "loading",
2010
+ "disabled",
2011
+ "readonly",
2012
+ "showValue",
2013
+ "popup",
2014
+ "opened"
2015
+ ]);
2016
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
2017
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
2018
+ Picker,
2019
+ __spreadProps(__spreadValues({}, other), {
2020
+ size,
2021
+ rounded,
2022
+ fillMode,
2023
+ hover,
2024
+ focus,
2025
+ valid,
2026
+ invalid,
2027
+ required,
2028
+ loading,
2029
+ disabled,
2030
+ readonly,
2031
+ className: classNames(
2032
+ props.className,
2033
+ DROPDOWNLIST_CLASSNAME,
2034
+ {
2035
+ "k-icon-picker": !showValue && valueIconName
2036
+ }
2037
+ ),
2038
+ children: [
2039
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(InputPrefix, { children: prefix }),
2040
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2041
+ InputInnerSpan,
2042
+ {
2043
+ placeholder,
2044
+ value,
2045
+ showValue,
2046
+ valueIconName
2047
+ }
2048
+ ),
2049
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2050
+ InputValidationIcon,
2051
+ {
2052
+ valid,
2053
+ invalid,
2054
+ loading,
2055
+ disabled
2056
+ }
2057
+ ),
2058
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2059
+ InputLoadingIcon,
2060
+ {
2061
+ loading,
2062
+ disabled
2063
+ }
2064
+ ),
2065
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(InputSuffix, { children: suffix }),
2066
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2067
+ Button,
2068
+ {
2069
+ className: "k-input-button",
2070
+ icon: arrowIconName,
2071
+ rounded: null,
2072
+ size: props.size,
2073
+ fillMode: props.fillMode
2074
+ }
2075
+ )
2076
+ ]
2077
+ })
2078
+ ),
2079
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Popup, { className: "k-dropdownlist-popup", children: popup })
2080
+ ] });
2081
+ };
2082
+ DropdownList.states = states23;
2083
+ DropdownList.options = options21;
2084
+ DropdownList.className = DROPDOWNLIST_CLASSNAME;
2085
+ DropdownList.defaultProps = defaultProps20;
2086
+
2087
+ // src/form/fieldset.tsx
2088
+ var import_jsx_runtime34 = __require("react/jsx-runtime");
2089
+ var FIELDSET_CLASSNAME = "k-form-fieldset";
2090
+ var Fieldset = (props) => {
2091
+ const {
2092
+ legend
2093
+ } = props;
2094
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("fieldset", { className: classNames(FIELDSET_CLASSNAME), children: [
2095
+ legend && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("legend", { className: "k-form-legend", children: legend }),
2096
+ props.children
2097
+ ] });
2098
+ };
2099
+ Fieldset.className = FIELDSET_CLASSNAME;
2100
+
2101
+ // src/form/form.spec.tsx
2102
+ var import_jsx_runtime35 = __require("react/jsx-runtime");
2103
+ var FORM_CLASSNAME = "k-form";
2104
+ var states24 = [];
2105
+ var options22 = {
2106
+ size: [Size.small, Size.medium, Size.large]
2107
+ };
2108
+ var defaultProps21 = {
2109
+ size: Size.medium,
2110
+ layout: "basic",
2111
+ tag: "form"
2112
+ };
2113
+ var Form = (props) => {
2114
+ const {
2115
+ size = defaultProps21.size,
2116
+ orientation,
2117
+ layout = defaultProps21.layout,
2118
+ formButtons,
2119
+ legend,
2120
+ cols,
2121
+ gapX,
2122
+ gapY,
2123
+ tag = defaultProps21.tag
2124
+ } = props;
2125
+ const ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : children;
2126
+ const Parent = ({ tag: tag2, className: className14, children }) => tag2 === "form" ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("form", { className: className14, children }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: className14, children });
2127
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Parent, { tag, className: classNames(
2128
+ props.className,
2129
+ FORM_CLASSNAME,
2130
+ optionClassNames(FORM_CLASSNAME, {
2131
+ size
2132
+ }),
2133
+ {
2134
+ [`${FORM_CLASSNAME}-${orientation}`]: orientation
2135
+ }
2136
+ ), children: [
2137
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2138
+ ConditionalWrapper,
2139
+ {
2140
+ condition: layout === "grid",
2141
+ wrapper: (children) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Fieldset, { legend, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: classNames(
2142
+ "k-form-layout",
2143
+ "k-d-grid",
2144
+ {
2145
+ [`k-grid-cols-${cols}`]: cols,
2146
+ [`k-gap-x-${gapX}`]: gapX,
2147
+ [`k-gap-y-${gapY}`]: gapY
2148
+ }
2149
+ ), children }) }),
2150
+ children: props.children
2151
+ }
2152
+ ),
2153
+ formButtons && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "k-form-buttons", children: formButtons })
2154
+ ] });
2155
+ };
2156
+ Form.states = states24;
2157
+ Form.options = options22;
2158
+ Form.className = FORM_CLASSNAME;
2159
+ Form.defaultProps = defaultProps21;
2160
+
2161
+ // src/form/form-field.tsx
2162
+ var import_jsx_runtime36 = __require("react/jsx-runtime");
2163
+ var FORMFIELD_CLASSNAME = "k-form-field";
2164
+ var states25 = [
2165
+ States.disabled
2166
+ ];
2167
+ var FormField = (props) => {
2168
+ const {
2169
+ label,
2170
+ optional,
2171
+ editor,
2172
+ hint,
2173
+ error,
2174
+ info,
2175
+ disabled,
2176
+ dir
2177
+ } = props;
2178
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2179
+ "div",
2180
+ {
2181
+ className: classNames(
2182
+ FORMFIELD_CLASSNAME,
2183
+ props.className,
2184
+ stateClassNames(FORMFIELD_CLASSNAME, { disabled })
2185
+ ),
2186
+ dir,
2187
+ children: [
2188
+ label && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("label", { className: classNames(
2189
+ "k-label",
2190
+ "k-form-label",
2191
+ {
2192
+ "k-label-empty": label === " "
2193
+ }
2194
+ ), children: [
2195
+ label,
2196
+ optional && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "k-label-optional", children: "(Optional)" }),
2197
+ info && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "k-field-info", children: "(field info)" })
2198
+ ] }),
2199
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "k-form-field-wrap", children: [
2200
+ editor,
2201
+ hint && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "k-form-hint", children: hint }),
2202
+ error && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "k-form-error", children: error })
2203
+ ] })
2204
+ ]
2205
+ }
2206
+ );
2207
+ };
2208
+ FormField.className = FORMFIELD_CLASSNAME;
2209
+
2210
+ // src/gantt/tests/gantt-editing-popup-general.tsx
2211
+ var import_jsx_runtime37 = __require("react/jsx-runtime");
2212
+ var root = import_client.default.createRoot(
2213
+ document.getElementById("app")
2214
+ );
2215
+ var styles = `
2216
+ .k-window {
2217
+ min-width: 580px;
2218
+ position: relative;
2219
+ }
2220
+ `;
2221
+ root.render(
2222
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
2223
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("style", { children: styles }),
2224
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Window, { title: "Edit task", actions: ["window-minimize", "window-maximize", "close"], actionButtons: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
2225
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Button, { icon: "save", themeColor: "primary", children: "Save" }),
2226
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Button, { icon: "cancel", children: "Cancel" }),
2227
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "k-spacer" }),
2228
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Button, { icon: "delete", fillMode: "flat", themeColor: "primary", children: "Delete" })
2229
+ ] }), children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "k-tabstrip k-tabstrip-top", children: [
2230
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "k-tabstrip-items-wrapper k-hstack", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("ul", { className: "k-reset k-tabstrip-items", children: [
2231
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("li", { className: "k-item k-first k-active", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "k-link", children: "General" }) }),
2232
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("li", { className: "k-item", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "k-link", children: "Resources" }) }),
2233
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("li", { className: "k-item", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "k-link", children: "Predecessors" }) }),
2234
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("li", { className: "k-item k-last", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "k-link", children: "Successors" }) })
2235
+ ] }) }),
2236
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "k-tabstrip-content k-active", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Form, { layout: "grid", cols: 4, gapX: 2, children: [
2237
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2238
+ FormField,
2239
+ {
2240
+ className: "k-form-field-error k-col-span-full",
2241
+ label: "Title",
2242
+ error: "Error",
2243
+ editor: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Textbox, { invalid: true, value: "Invalid" })
2244
+ }
2245
+ ),
2246
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2247
+ FormField,
2248
+ {
2249
+ className: "k-col-span-2",
2250
+ label: "Planned Start Date",
2251
+ editor: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DateTimePicker, { placeholder: "dd/MM/yyyy hh:mm AM" })
2252
+ }
2253
+ ),
2254
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2255
+ FormField,
2256
+ {
2257
+ className: "k-col-span-2",
2258
+ label: "Planned End Date",
2259
+ editor: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DateTimePicker, { placeholder: "dd/MM/yyyy hh:mm AM" })
2260
+ }
2261
+ ),
2262
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2263
+ FormField,
2264
+ {
2265
+ className: "k-col-span-2",
2266
+ label: "Actual Start Date",
2267
+ editor: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DateTimePicker, { placeholder: "dd/MM/yyyy hh:mm AM" })
2268
+ }
2269
+ ),
2270
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2271
+ FormField,
2272
+ {
2273
+ className: "k-col-span-2",
2274
+ label: "Actual End Date",
2275
+ editor: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DateTimePicker, { placeholder: "dd/MM/yyyy hh:mm AM" })
2276
+ }
2277
+ ),
2278
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2279
+ FormField,
2280
+ {
2281
+ className: "k-col-span-1",
2282
+ label: "Complete",
2283
+ editor: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(NumericTextbox, {}),
2284
+ hint: "value from 0 to 1"
2285
+ }
2286
+ ),
2287
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2288
+ FormField,
2289
+ {
2290
+ className: "k-col-span-full",
2291
+ label: "Parent",
2292
+ editor: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DropdownList, { placeholder: "-None-" })
2293
+ }
2294
+ )
2295
+ ] }) })
2296
+ ] }) }) }) })
2297
+ ] })
2298
+ );
2299
+ })();
2300
+ //# sourceMappingURL=gantt-editing-popup-general.js.map