@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,2035 @@
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-other.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/textarea/textarea.spec.tsx
774
+ var import_jsx_runtime15 = __require("react/jsx-runtime");
775
+ var TEXTAREA_CLASSNAME = `k-textarea`;
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
+ ];
785
+ var options11 = {
786
+ size: [Size.small, Size.medium, Size.large],
787
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
788
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
789
+ };
790
+ var defaultProps9 = {
791
+ size: Input.defaultProps.size,
792
+ rounded: Input.defaultProps.rounded,
793
+ fillMode: Input.defaultProps.fillMode
794
+ };
795
+ var Textarea = (props) => {
796
+ const _a = props, {
797
+ rows,
798
+ value,
799
+ placeholder,
800
+ size,
801
+ rounded,
802
+ fillMode,
803
+ hover,
804
+ focus,
805
+ valid,
806
+ invalid,
807
+ required,
808
+ loading,
809
+ disabled
810
+ } = _a, other = __objRest(_a, [
811
+ "rows",
812
+ "value",
813
+ "placeholder",
814
+ "size",
815
+ "rounded",
816
+ "fillMode",
817
+ "hover",
818
+ "focus",
819
+ "valid",
820
+ "invalid",
821
+ "required",
822
+ "loading",
823
+ "disabled"
824
+ ]);
825
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
826
+ Input,
827
+ __spreadProps(__spreadValues({}, other), {
828
+ size,
829
+ rounded,
830
+ fillMode,
831
+ hover,
832
+ focus,
833
+ valid,
834
+ invalid,
835
+ required,
836
+ loading,
837
+ disabled,
838
+ className: classNames(props.className, TEXTAREA_CLASSNAME),
839
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
840
+ InputInnerTextarea,
841
+ {
842
+ className: "!k-overflow-auto",
843
+ value,
844
+ placeholder,
845
+ rows
846
+ }
847
+ )
848
+ })
849
+ );
850
+ };
851
+ Textarea.states = states12;
852
+ Textarea.options = options11;
853
+ Textarea.className = TEXTAREA_CLASSNAME;
854
+ Textarea.defaultProps = defaultProps9;
855
+
856
+ // src/textbox/textbox.spec.tsx
857
+ var import_jsx_runtime16 = __require("react/jsx-runtime");
858
+ var TEXTBOX_CLASSNAME = `k-textbox`;
859
+ var states13 = [
860
+ States.hover,
861
+ States.focus,
862
+ States.valid,
863
+ States.invalid,
864
+ States.required,
865
+ States.disabled,
866
+ States.loading,
867
+ States.readonly
868
+ ];
869
+ var options12 = {
870
+ size: [Size.small, Size.medium, Size.large],
871
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
872
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
873
+ };
874
+ var defaultProps10 = {
875
+ showClearButton: true,
876
+ size: Input.defaultProps.size,
877
+ rounded: Input.defaultProps.rounded,
878
+ fillMode: Input.defaultProps.fillMode
879
+ };
880
+ var Textbox = (props) => {
881
+ const _a = props, {
882
+ prefix,
883
+ suffix,
884
+ value,
885
+ placeholder,
886
+ size,
887
+ rounded,
888
+ fillMode,
889
+ hover,
890
+ focus,
891
+ valid,
892
+ invalid,
893
+ required,
894
+ loading,
895
+ disabled,
896
+ readonly,
897
+ showClearButton = defaultProps10.showClearButton
898
+ } = _a, other = __objRest(_a, [
899
+ "prefix",
900
+ "suffix",
901
+ "value",
902
+ "placeholder",
903
+ "size",
904
+ "rounded",
905
+ "fillMode",
906
+ "hover",
907
+ "focus",
908
+ "valid",
909
+ "invalid",
910
+ "required",
911
+ "loading",
912
+ "disabled",
913
+ "readonly",
914
+ "showClearButton"
915
+ ]);
916
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
917
+ Input,
918
+ __spreadProps(__spreadValues({}, other), {
919
+ size,
920
+ rounded,
921
+ fillMode,
922
+ hover,
923
+ focus,
924
+ valid,
925
+ invalid,
926
+ required,
927
+ loading,
928
+ disabled,
929
+ readonly,
930
+ className: classNames(props.className, TEXTBOX_CLASSNAME),
931
+ children: [
932
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(InputPrefix, { children: prefix }),
933
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(InputInnerInput, { placeholder, value }),
934
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
935
+ InputValidationIcon,
936
+ {
937
+ valid,
938
+ invalid,
939
+ loading,
940
+ disabled
941
+ }
942
+ ),
943
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
944
+ InputLoadingIcon,
945
+ {
946
+ loading,
947
+ disabled
948
+ }
949
+ ),
950
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
951
+ InputClearValue,
952
+ {
953
+ loading,
954
+ disabled,
955
+ readonly,
956
+ value
957
+ }
958
+ ),
959
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(InputSuffix, { children: suffix })
960
+ ]
961
+ })
962
+ );
963
+ };
964
+ Textbox.states = states13;
965
+ Textbox.options = options12;
966
+ Textbox.className = TEXTBOX_CLASSNAME;
967
+ Textbox.defaultProps = defaultProps10;
968
+
969
+ // src/popup/popup.spec.tsx
970
+ var import_jsx_runtime17 = __require("react/jsx-runtime");
971
+ var POPUP_CLASSNAME = `k-popup`;
972
+ var states14 = [];
973
+ var options13 = {};
974
+ var defaultProps11 = {};
975
+ var Popup = (props) => {
976
+ const other = __objRest(props, []);
977
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", __spreadProps(__spreadValues({}, other), { className: classNames(props.className, POPUP_CLASSNAME), children: props.children }));
978
+ };
979
+ Popup.states = states14;
980
+ Popup.options = options13;
981
+ Popup.className = POPUP_CLASSNAME;
982
+ Popup.defaultProps = defaultProps11;
983
+
984
+ // src/calendar/calendar.spec.tsx
985
+ var import_jsx_runtime18 = __require("react/jsx-runtime");
986
+ var CALENDAR_CLASSNAME = `k-calendar`;
987
+ var states15 = [];
988
+ var options14 = {
989
+ size: [Size.small, Size.medium, Size.large]
990
+ };
991
+ var defaultProps12 = {
992
+ size: Size.medium,
993
+ viewsCount: 1,
994
+ orientation: "horizontal",
995
+ calendarView: "month",
996
+ calendarHeaderText: "October 2021"
997
+ };
998
+ var Calendar = (props) => {
999
+ const _a = props, {
1000
+ size = defaultProps12.size,
1001
+ orientation = defaultProps12.orientation,
1002
+ calendarView = defaultProps12.calendarView,
1003
+ calendarHeaderText = defaultProps12.calendarHeaderText,
1004
+ viewsCount = defaultProps12.viewsCount,
1005
+ showWeek,
1006
+ showOtherMonth,
1007
+ showCalendarCaption,
1008
+ showCalendarFooter,
1009
+ selectedRange
1010
+ } = _a, other = __objRest(_a, [
1011
+ "size",
1012
+ "orientation",
1013
+ "calendarView",
1014
+ "calendarHeaderText",
1015
+ "viewsCount",
1016
+ "showWeek",
1017
+ "showOtherMonth",
1018
+ "showCalendarCaption",
1019
+ "showCalendarFooter",
1020
+ "selectedRange"
1021
+ ]);
1022
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1023
+ "div",
1024
+ __spreadProps(__spreadValues({}, other), {
1025
+ className: classNames(
1026
+ props.className,
1027
+ CALENDAR_CLASSNAME,
1028
+ optionClassNames(CALENDAR_CLASSNAME, {
1029
+ size
1030
+ }),
1031
+ {
1032
+ "k-week-number": showWeek
1033
+ }
1034
+ ),
1035
+ children: [
1036
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1037
+ CalendarHeader,
1038
+ {
1039
+ showToday: showCalendarFooter ? false : true,
1040
+ calendarHeaderText,
1041
+ orientation,
1042
+ size
1043
+ }
1044
+ ),
1045
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1046
+ CalendarView,
1047
+ {
1048
+ calendarView,
1049
+ viewsCount,
1050
+ orientation,
1051
+ showWeek,
1052
+ showOtherMonth,
1053
+ showCalendarCaption,
1054
+ selectedRange
1055
+ }
1056
+ ),
1057
+ showCalendarFooter && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CalendarFooter, {})
1058
+ ]
1059
+ })
1060
+ );
1061
+ };
1062
+ Calendar.states = states15;
1063
+ Calendar.options = options14;
1064
+ Calendar.className = CALENDAR_CLASSNAME;
1065
+ Calendar.defaultProps = defaultProps12;
1066
+
1067
+ // src/calendar/calendar-cell.tsx
1068
+ var import_jsx_runtime19 = __require("react/jsx-runtime");
1069
+ var states16 = [
1070
+ States.hover,
1071
+ States.focus,
1072
+ States.active,
1073
+ States.selected,
1074
+ States.disabled
1075
+ ];
1076
+ var CalendarCell = (props) => {
1077
+ const _a = props, {
1078
+ text,
1079
+ headerCell,
1080
+ today,
1081
+ weekend,
1082
+ otherMonth,
1083
+ showOtherMonth,
1084
+ weekCell,
1085
+ rangeStart,
1086
+ rangeMid,
1087
+ rangeEnd,
1088
+ hover,
1089
+ focus,
1090
+ active,
1091
+ selected,
1092
+ disabled
1093
+ } = _a, other = __objRest(_a, [
1094
+ "text",
1095
+ "headerCell",
1096
+ "today",
1097
+ "weekend",
1098
+ "otherMonth",
1099
+ "showOtherMonth",
1100
+ "weekCell",
1101
+ "rangeStart",
1102
+ "rangeMid",
1103
+ "rangeEnd",
1104
+ "hover",
1105
+ "focus",
1106
+ "active",
1107
+ "selected",
1108
+ "disabled"
1109
+ ]);
1110
+ const cellType = headerCell ? "th" : "td";
1111
+ const CALENDARCELL_CLASSNAME = `k-calendar-${cellType}`;
1112
+ const calendarCellClasses = [
1113
+ props.className,
1114
+ CALENDARCELL_CLASSNAME,
1115
+ stateClassNames(CALENDARCELL_CLASSNAME, {
1116
+ hover,
1117
+ focus,
1118
+ active,
1119
+ selected,
1120
+ disabled
1121
+ }),
1122
+ {
1123
+ "k-today": today,
1124
+ "k-weekend": weekend,
1125
+ "k-other-month": otherMonth,
1126
+ "k-alt": weekCell,
1127
+ "k-range-start": rangeStart,
1128
+ "k-range-mid": rangeMid,
1129
+ "k-range-end": rangeEnd
1130
+ }
1131
+ ];
1132
+ if (headerCell) {
1133
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("th", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: text }));
1134
+ }
1135
+ if (weekCell) {
1136
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("td", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: text }));
1137
+ }
1138
+ 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 }) }));
1139
+ };
1140
+
1141
+ // src/calendar/calendar-header.tsx
1142
+ var import_jsx_runtime20 = __require("react/jsx-runtime");
1143
+ var className9 = `k-calendar-header`;
1144
+ var options15 = {
1145
+ size: [Size.small, Size.medium, Size.large]
1146
+ };
1147
+ var defaultProps13 = {
1148
+ calendarHeaderText: "October 2021",
1149
+ showToday: true,
1150
+ orientation: "horizontal",
1151
+ size: Size.medium
1152
+ };
1153
+ var CalendarHeader = (props) => {
1154
+ const _a = props, {
1155
+ calendarHeaderText = defaultProps13.calendarHeaderText,
1156
+ showToday = defaultProps13.showToday,
1157
+ orientation = defaultProps13.orientation,
1158
+ size = defaultProps13.size
1159
+ } = _a, other = __objRest(_a, [
1160
+ "calendarHeaderText",
1161
+ "showToday",
1162
+ "orientation",
1163
+ "size"
1164
+ ]);
1165
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1166
+ "div",
1167
+ __spreadProps(__spreadValues({}, other), {
1168
+ className: classNames(
1169
+ props.className,
1170
+ className9,
1171
+ {
1172
+ "k-vstack": orientation === "vertical"
1173
+ }
1174
+ ),
1175
+ children: [
1176
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { className: "k-calendar-title", text: calendarHeaderText, size, fillMode: "flat" }),
1177
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "k-spacer" }),
1178
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: "k-calendar-nav", children: [
1179
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { className: "k-calendar-nav-prev", icon: "arrow-chevron-left", size, fillMode: "flat" }),
1180
+ showToday && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { size, fillMode: "flat", themeColor: "primary", className: "k-calendar-nav-today", children: "Today" }),
1181
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { className: "k-calendar-nav-next", icon: "arrow-chevron-right", size, fillMode: "flat" })
1182
+ ] })
1183
+ ]
1184
+ })
1185
+ );
1186
+ };
1187
+
1188
+ // src/calendar/calendar-footer.tsx
1189
+ var import_jsx_runtime21 = __require("react/jsx-runtime");
1190
+ var className10 = `k-calendar-footer`;
1191
+ 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" }) }));
1192
+
1193
+ // src/calendar/calendar-table.tsx
1194
+ var import_jsx_runtime22 = __require("react/jsx-runtime");
1195
+ var CALENDARTABLE_CLASSNAME = `k-calendar-table`;
1196
+ var CalendarTable = (props) => {
1197
+ const _a = props, {
1198
+ calendarView,
1199
+ showOtherMonth,
1200
+ showWeek,
1201
+ showCalendarCaption,
1202
+ selectedRange
1203
+ } = _a, other = __objRest(_a, [
1204
+ "calendarView",
1205
+ "showOtherMonth",
1206
+ "showWeek",
1207
+ "showCalendarCaption",
1208
+ "selectedRange"
1209
+ ]);
1210
+ if (calendarView === "year") {
1211
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1212
+ "table",
1213
+ __spreadProps(__spreadValues({}, other), {
1214
+ className: classNames(
1215
+ props.className,
1216
+ CALENDARTABLE_CLASSNAME
1217
+ ),
1218
+ children: [
1219
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("caption", { className: "k-calendar-caption", children: "2022" }),
1220
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1221
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1222
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Jan" }),
1223
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Feb" }),
1224
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Mar" }),
1225
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Apr" })
1226
+ ] }),
1227
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1228
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "May" }),
1229
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Jun", hover: true }),
1230
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Jul", focus: true }),
1231
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Au", selected: true })
1232
+ ] }),
1233
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1234
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Sep" }),
1235
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Oct", today: true }),
1236
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Nov" }),
1237
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "Dec" })
1238
+ ] })
1239
+ ] })
1240
+ ]
1241
+ })
1242
+ );
1243
+ }
1244
+ if (calendarView === "decade") {
1245
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1246
+ "table",
1247
+ __spreadProps(__spreadValues({}, other), {
1248
+ className: classNames(
1249
+ props.className,
1250
+ CALENDARTABLE_CLASSNAME
1251
+ ),
1252
+ children: [
1253
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("caption", { className: "k-calendar-caption", children: "2020 - 2029" }),
1254
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1255
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1256
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { className: "k-out-of-range" }),
1257
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2020" }),
1258
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2021", today: true }),
1259
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2022" })
1260
+ ] }),
1261
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1262
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2023" }),
1263
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2024", hover: true }),
1264
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2025", focus: true }),
1265
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2026", selected: true })
1266
+ ] }),
1267
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1268
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2027" }),
1269
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2028" }),
1270
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2029" }),
1271
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { className: "k-out-of-range" })
1272
+ ] })
1273
+ ] })
1274
+ ]
1275
+ })
1276
+ );
1277
+ }
1278
+ if (calendarView === "century") {
1279
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1280
+ "table",
1281
+ __spreadProps(__spreadValues({}, other), {
1282
+ className: classNames(
1283
+ props.className,
1284
+ CALENDARTABLE_CLASSNAME
1285
+ ),
1286
+ children: [
1287
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("caption", { className: "k-calendar-caption", children: "2000 - 2099" }),
1288
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1289
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1290
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "1990 - 1999" }),
1291
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2000 - 2009" }),
1292
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2010 - 2019", today: true }),
1293
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2020 - 2029" })
1294
+ ] }),
1295
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1296
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2030 - 2039" }),
1297
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2040 - 2049", hover: true }),
1298
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2050 - 2059", focus: true }),
1299
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2060 - 2069", selected: true })
1300
+ ] }),
1301
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1302
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2070 - 2079" }),
1303
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2080 - 2089" }),
1304
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2090 - 2099" }),
1305
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { className: "k-out-of-range" })
1306
+ ] })
1307
+ ] })
1308
+ ]
1309
+ })
1310
+ );
1311
+ }
1312
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1313
+ "table",
1314
+ __spreadProps(__spreadValues({}, other), {
1315
+ className: classNames(
1316
+ props.className,
1317
+ CALENDARTABLE_CLASSNAME
1318
+ ),
1319
+ children: [
1320
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("caption", { className: "k-calendar-caption", children: "October 2021" }),
1321
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarTableHead, { showWeek }),
1322
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1323
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1324
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "39", weekCell: true }),
1325
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "30", otherMonth: true, showOtherMonth }),
1326
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "1" }),
1327
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2" }),
1328
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "3" }),
1329
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "4" }),
1330
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "5" }),
1331
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "6", weekend: true })
1332
+ ] }),
1333
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1334
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "40", weekCell: true }),
1335
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "7", weekend: true }),
1336
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "8", hover: true }),
1337
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "9", focus: true }),
1338
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "10", selected: true }),
1339
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "11", hover: true, focus: true }),
1340
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "12", hover: true, selected: true }),
1341
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "13", weekend: true })
1342
+ ] }),
1343
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1344
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "41", weekCell: true }),
1345
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "14", weekend: true }),
1346
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "15" }),
1347
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "16", today: true }),
1348
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "17" }),
1349
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "18" }),
1350
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "19" }),
1351
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "20", weekend: true })
1352
+ ] }),
1353
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1354
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "42", weekCell: true }),
1355
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "21", weekend: true }),
1356
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "22" }),
1357
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "23" }),
1358
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "24" }),
1359
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "25", rangeStart: selectedRange, selected: selectedRange }),
1360
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "26", rangeMid: selectedRange }),
1361
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "27", weekend: true, rangeMid: selectedRange })
1362
+ ] }),
1363
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1364
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "43", weekCell: true }),
1365
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "28", weekend: true, rangeMid: selectedRange }),
1366
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "29", rangeEnd: selectedRange, focus: selectedRange, selected: selectedRange }),
1367
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "30" }),
1368
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "31" }),
1369
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "1", otherMonth: true, showOtherMonth }),
1370
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "2", otherMonth: true, showOtherMonth }),
1371
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "3", otherMonth: true, weekend: true, showOtherMonth })
1372
+ ] }),
1373
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("tr", { className: "k-calendar-tr", children: [
1374
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "44", weekCell: true }),
1375
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "4", otherMonth: true, weekend: true, showOtherMonth }),
1376
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "5", otherMonth: true, showOtherMonth }),
1377
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "6", otherMonth: true, showOtherMonth }),
1378
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "7", otherMonth: true, showOtherMonth }),
1379
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "8", otherMonth: true, showOtherMonth }),
1380
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "9", otherMonth: true, showOtherMonth }),
1381
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CalendarCell, { text: "10", otherMonth: true, weekend: true, showOtherMonth })
1382
+ ] })
1383
+ ] })
1384
+ ]
1385
+ })
1386
+ );
1387
+ };
1388
+
1389
+ // src/calendar/calendar-table-head.tsx
1390
+ var import_jsx_runtime23 = __require("react/jsx-runtime");
1391
+ var className11 = `k-calendar-thead`;
1392
+ var CalendarTableHead = (props) => {
1393
+ const _a = props, {
1394
+ showWeek
1395
+ } = _a, other = __objRest(_a, [
1396
+ "showWeek"
1397
+ ]);
1398
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1399
+ "thead",
1400
+ __spreadProps(__spreadValues({}, other), {
1401
+ className: classNames(props.className, className11),
1402
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("tr", { className: "k-calendar-tr", children: [
1403
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarCell, { weekCell: true, headerCell: true }),
1404
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarCell, { text: "Su", headerCell: true }),
1405
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarCell, { text: "Mo", headerCell: true }),
1406
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarCell, { text: "Tu", headerCell: true }),
1407
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarCell, { text: "We", headerCell: true }),
1408
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarCell, { text: "Th", headerCell: true }),
1409
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarCell, { text: "Fr", headerCell: true }),
1410
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CalendarCell, { text: "Sa", headerCell: true })
1411
+ ] })
1412
+ })
1413
+ );
1414
+ };
1415
+
1416
+ // src/calendar/calendar-view.tsx
1417
+ var import_jsx_runtime24 = __require("react/jsx-runtime");
1418
+ var className12 = `k-calendar-view`;
1419
+ var defaultProps14 = {
1420
+ viewsCount: 1,
1421
+ orientation: "horizontal",
1422
+ calendarView: "month"
1423
+ };
1424
+ var CalendarView = (props) => {
1425
+ const _a = props, {
1426
+ orientation = defaultProps14.orientation,
1427
+ calendarView = defaultProps14.calendarView,
1428
+ viewsCount = defaultProps14.viewsCount,
1429
+ showWeek,
1430
+ showOtherMonth,
1431
+ showCalendarCaption,
1432
+ selectedRange
1433
+ } = _a, other = __objRest(_a, [
1434
+ "orientation",
1435
+ "calendarView",
1436
+ "viewsCount",
1437
+ "showWeek",
1438
+ "showOtherMonth",
1439
+ "showCalendarCaption",
1440
+ "selectedRange"
1441
+ ]);
1442
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1443
+ "div",
1444
+ __spreadProps(__spreadValues({}, other), {
1445
+ className: classNames(
1446
+ props.className,
1447
+ className12,
1448
+ `k-calendar-${calendarView}view`,
1449
+ "k-align-items-start",
1450
+ "k-justify-content-center",
1451
+ {
1452
+ "k-hstack": orientation === "horizontal",
1453
+ "k-vstack": orientation === "vertical"
1454
+ }
1455
+ ),
1456
+ children: [...Array(viewsCount)].map(
1457
+ (_e, i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1458
+ CalendarTable,
1459
+ {
1460
+ calendarView,
1461
+ showWeek,
1462
+ showOtherMonth,
1463
+ showCalendarCaption,
1464
+ selectedRange
1465
+ },
1466
+ i
1467
+ )
1468
+ )
1469
+ })
1470
+ );
1471
+ };
1472
+
1473
+ // src/datepicker/datepicker.spec.tsx
1474
+ var import_jsx_runtime25 = __require("react/jsx-runtime");
1475
+ var DATEPICKER_CLASSNAME = `k-datepicker`;
1476
+ var states17 = [
1477
+ States.hover,
1478
+ States.focus,
1479
+ States.valid,
1480
+ States.invalid,
1481
+ States.required,
1482
+ States.disabled,
1483
+ States.loading,
1484
+ States.readonly
1485
+ ];
1486
+ var options16 = {
1487
+ size: [Size.small, Size.medium, Size.large],
1488
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1489
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
1490
+ };
1491
+ var defaultProps15 = {
1492
+ size: Input.defaultProps.size,
1493
+ rounded: Input.defaultProps.rounded,
1494
+ fillMode: Input.defaultProps.fillMode
1495
+ };
1496
+ var DatePicker = (props) => {
1497
+ const _a = props, {
1498
+ prefix,
1499
+ suffix,
1500
+ value,
1501
+ placeholder,
1502
+ size,
1503
+ rounded,
1504
+ fillMode,
1505
+ hover,
1506
+ focus,
1507
+ valid,
1508
+ invalid,
1509
+ required,
1510
+ loading,
1511
+ disabled,
1512
+ readonly,
1513
+ opened
1514
+ } = _a, other = __objRest(_a, [
1515
+ "prefix",
1516
+ "suffix",
1517
+ "value",
1518
+ "placeholder",
1519
+ "size",
1520
+ "rounded",
1521
+ "fillMode",
1522
+ "hover",
1523
+ "focus",
1524
+ "valid",
1525
+ "invalid",
1526
+ "required",
1527
+ "loading",
1528
+ "disabled",
1529
+ "readonly",
1530
+ "opened"
1531
+ ]);
1532
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
1533
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1534
+ Input,
1535
+ __spreadProps(__spreadValues({}, other), {
1536
+ size,
1537
+ rounded,
1538
+ fillMode,
1539
+ hover,
1540
+ focus,
1541
+ valid,
1542
+ invalid,
1543
+ required,
1544
+ loading,
1545
+ disabled,
1546
+ readonly,
1547
+ className: classNames(props.className, DATEPICKER_CLASSNAME),
1548
+ children: [
1549
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(InputPrefix, { children: prefix }),
1550
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(InputInnerInput, { placeholder, value }),
1551
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1552
+ InputValidationIcon,
1553
+ {
1554
+ valid,
1555
+ invalid,
1556
+ loading,
1557
+ disabled
1558
+ }
1559
+ ),
1560
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1561
+ InputLoadingIcon,
1562
+ {
1563
+ loading,
1564
+ disabled
1565
+ }
1566
+ ),
1567
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1568
+ InputClearValue,
1569
+ {
1570
+ loading,
1571
+ disabled,
1572
+ readonly,
1573
+ value
1574
+ }
1575
+ ),
1576
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(InputSuffix, { children: suffix }),
1577
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1578
+ Button,
1579
+ {
1580
+ className: "k-input-button",
1581
+ icon: "calendar",
1582
+ rounded: null,
1583
+ size,
1584
+ fillMode
1585
+ }
1586
+ )
1587
+ ]
1588
+ })
1589
+ ),
1590
+ opened && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Popup, { className: "k-datepicker-popup", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Calendar, {}) })
1591
+ ] });
1592
+ };
1593
+ DatePicker.states = states17;
1594
+ DatePicker.options = options16;
1595
+ DatePicker.className = DATEPICKER_CLASSNAME;
1596
+ DatePicker.defaultProps = defaultProps15;
1597
+
1598
+ // src/spinbutton/spinbutton.spec.tsx
1599
+ var import_jsx_runtime26 = __require("react/jsx-runtime");
1600
+ var SPINBUTTON_CLASSNAME = `k-spin-button`;
1601
+ var states18 = [];
1602
+ var options17 = {
1603
+ size: [Size.small, Size.medium, Size.large],
1604
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
1605
+ };
1606
+ var defaultProps16 = {
1607
+ size: Size.medium,
1608
+ fillMode: FillMode.solid
1609
+ };
1610
+ var SpinButton = (props) => {
1611
+ const _a = props, {
1612
+ size = defaultProps16.size,
1613
+ fillMode = defaultProps16.fillMode
1614
+ } = _a, other = __objRest(_a, [
1615
+ "size",
1616
+ "fillMode"
1617
+ ]);
1618
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1619
+ "span",
1620
+ __spreadProps(__spreadValues({}, other), {
1621
+ className: classNames(
1622
+ SPINBUTTON_CLASSNAME,
1623
+ props.className
1624
+ ),
1625
+ children: [
1626
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1627
+ Button,
1628
+ {
1629
+ className: "k-spinner-increase",
1630
+ icon: "arrow-n",
1631
+ rounded: null,
1632
+ size,
1633
+ fillMode
1634
+ }
1635
+ ),
1636
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1637
+ Button,
1638
+ {
1639
+ className: "k-spinner-decrease",
1640
+ icon: "arrow-s",
1641
+ rounded: null,
1642
+ size,
1643
+ fillMode
1644
+ }
1645
+ )
1646
+ ]
1647
+ })
1648
+ );
1649
+ };
1650
+ SpinButton.states = states18;
1651
+ SpinButton.options = options17;
1652
+ SpinButton.className = SPINBUTTON_CLASSNAME;
1653
+ SpinButton.defaultProps = defaultProps16;
1654
+
1655
+ // src/numerictextbox/numerictextbox.spec.tsx
1656
+ var import_jsx_runtime27 = __require("react/jsx-runtime");
1657
+ var NUMERICTEXTBOX_CLASSNAME = `k-numerictextbox`;
1658
+ var states19 = [
1659
+ States.hover,
1660
+ States.focus,
1661
+ States.valid,
1662
+ States.invalid,
1663
+ States.loading,
1664
+ States.required,
1665
+ States.disabled,
1666
+ States.readonly
1667
+ ];
1668
+ var options18 = {
1669
+ size: [Size.small, Size.medium, Size.large],
1670
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1671
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
1672
+ };
1673
+ var defaultProps17 = {
1674
+ showSpinButton: true,
1675
+ showClearButton: true,
1676
+ size: Input.defaultProps.size,
1677
+ rounded: Input.defaultProps.rounded,
1678
+ fillMode: Input.defaultProps.fillMode
1679
+ };
1680
+ var NumericTextbox = (props) => {
1681
+ const _a = props, {
1682
+ value,
1683
+ placeholder,
1684
+ size,
1685
+ rounded,
1686
+ fillMode,
1687
+ hover,
1688
+ focus,
1689
+ valid,
1690
+ invalid,
1691
+ required,
1692
+ loading,
1693
+ disabled,
1694
+ readonly,
1695
+ showClearButton = defaultProps17.showClearButton,
1696
+ showSpinButton = defaultProps17.showSpinButton
1697
+ } = _a, other = __objRest(_a, [
1698
+ "value",
1699
+ "placeholder",
1700
+ "size",
1701
+ "rounded",
1702
+ "fillMode",
1703
+ "hover",
1704
+ "focus",
1705
+ "valid",
1706
+ "invalid",
1707
+ "required",
1708
+ "loading",
1709
+ "disabled",
1710
+ "readonly",
1711
+ "showClearButton",
1712
+ "showSpinButton"
1713
+ ]);
1714
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
1715
+ Input,
1716
+ __spreadProps(__spreadValues({}, other), {
1717
+ size,
1718
+ rounded,
1719
+ fillMode,
1720
+ hover,
1721
+ focus,
1722
+ valid,
1723
+ invalid,
1724
+ required,
1725
+ loading,
1726
+ disabled,
1727
+ readonly,
1728
+ className: classNames(props.className, NUMERICTEXTBOX_CLASSNAME),
1729
+ children: [
1730
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(InputInnerInput, { placeholder, value }),
1731
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1732
+ InputValidationIcon,
1733
+ {
1734
+ valid,
1735
+ invalid,
1736
+ loading,
1737
+ disabled
1738
+ }
1739
+ ),
1740
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1741
+ InputLoadingIcon,
1742
+ {
1743
+ loading,
1744
+ disabled
1745
+ }
1746
+ ),
1747
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1748
+ InputClearValue,
1749
+ {
1750
+ loading,
1751
+ disabled,
1752
+ readonly,
1753
+ value
1754
+ }
1755
+ ),
1756
+ showSpinButton && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1757
+ SpinButton,
1758
+ {
1759
+ className: "k-input-spinner",
1760
+ size,
1761
+ fillMode
1762
+ }
1763
+ )
1764
+ ]
1765
+ })
1766
+ );
1767
+ };
1768
+ NumericTextbox.states = states19;
1769
+ NumericTextbox.options = options18;
1770
+ NumericTextbox.className = NUMERICTEXTBOX_CLASSNAME;
1771
+ NumericTextbox.defaultProps = defaultProps17;
1772
+
1773
+ // src/checkbox/checkbox.spec.tsx
1774
+ var import_jsx_runtime28 = __require("react/jsx-runtime");
1775
+ var CHECKBOX_CLASSNAME = `k-checkbox`;
1776
+ var states20 = [
1777
+ States.hover,
1778
+ States.focus,
1779
+ States.valid,
1780
+ States.invalid,
1781
+ States.required,
1782
+ States.disabled,
1783
+ States.checked,
1784
+ States.indeterminate
1785
+ ];
1786
+ var options19 = {
1787
+ size: [Size.small, Size.medium, Size.large],
1788
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full]
1789
+ };
1790
+ var defaultProps18 = {
1791
+ size: Size.medium,
1792
+ rounded: Roundness.medium
1793
+ };
1794
+ var Checkbox = (props) => {
1795
+ const _a = props, {
1796
+ id,
1797
+ checked,
1798
+ indeterminate,
1799
+ hover,
1800
+ focus,
1801
+ disabled,
1802
+ invalid,
1803
+ valid,
1804
+ required,
1805
+ size = defaultProps18.size,
1806
+ rounded = defaultProps18.rounded
1807
+ } = _a, other = __objRest(_a, [
1808
+ "id",
1809
+ "checked",
1810
+ "indeterminate",
1811
+ "hover",
1812
+ "focus",
1813
+ "disabled",
1814
+ "invalid",
1815
+ "valid",
1816
+ "required",
1817
+ "size",
1818
+ "rounded"
1819
+ ]);
1820
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "k-checkbox-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1821
+ "input",
1822
+ __spreadProps(__spreadValues({}, other), {
1823
+ id,
1824
+ type: "checkbox",
1825
+ checked,
1826
+ required,
1827
+ className: classNames(
1828
+ props.className,
1829
+ CHECKBOX_CLASSNAME,
1830
+ optionClassNames(CHECKBOX_CLASSNAME, { size, rounded }),
1831
+ stateClassNames(CHECKBOX_CLASSNAME, { hover, focus, disabled, invalid, valid, indeterminate, checked })
1832
+ )
1833
+ })
1834
+ ) });
1835
+ };
1836
+ Checkbox.states = states20;
1837
+ Checkbox.options = options19;
1838
+ Checkbox.className = CHECKBOX_CLASSNAME;
1839
+ Checkbox.defaultProps = defaultProps18;
1840
+
1841
+ // src/form/fieldset.tsx
1842
+ var import_jsx_runtime29 = __require("react/jsx-runtime");
1843
+ var FIELDSET_CLASSNAME = "k-form-fieldset";
1844
+ var Fieldset = (props) => {
1845
+ const {
1846
+ legend
1847
+ } = props;
1848
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("fieldset", { className: classNames(FIELDSET_CLASSNAME), children: [
1849
+ legend && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("legend", { className: "k-form-legend", children: legend }),
1850
+ props.children
1851
+ ] });
1852
+ };
1853
+ Fieldset.className = FIELDSET_CLASSNAME;
1854
+
1855
+ // src/form/form.spec.tsx
1856
+ var import_jsx_runtime30 = __require("react/jsx-runtime");
1857
+ var FORM_CLASSNAME = "k-form";
1858
+ var states21 = [];
1859
+ var options20 = {
1860
+ size: [Size.small, Size.medium, Size.large]
1861
+ };
1862
+ var defaultProps19 = {
1863
+ size: Size.medium,
1864
+ layout: "basic",
1865
+ tag: "form"
1866
+ };
1867
+ var Form = (props) => {
1868
+ const {
1869
+ size = defaultProps19.size,
1870
+ orientation,
1871
+ layout = defaultProps19.layout,
1872
+ formButtons,
1873
+ legend,
1874
+ cols,
1875
+ gapX,
1876
+ gapY,
1877
+ tag = defaultProps19.tag
1878
+ } = props;
1879
+ const ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : children;
1880
+ const Parent = ({ tag: tag2, className: className13, children }) => tag2 === "form" ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("form", { className: className13, children }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: className13, children });
1881
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Parent, { tag, className: classNames(
1882
+ props.className,
1883
+ FORM_CLASSNAME,
1884
+ optionClassNames(FORM_CLASSNAME, {
1885
+ size
1886
+ }),
1887
+ {
1888
+ [`${FORM_CLASSNAME}-${orientation}`]: orientation
1889
+ }
1890
+ ), children: [
1891
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1892
+ ConditionalWrapper,
1893
+ {
1894
+ condition: layout === "grid",
1895
+ wrapper: (children) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Fieldset, { legend, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: classNames(
1896
+ "k-form-layout",
1897
+ "k-d-grid",
1898
+ {
1899
+ [`k-grid-cols-${cols}`]: cols,
1900
+ [`k-gap-x-${gapX}`]: gapX,
1901
+ [`k-gap-y-${gapY}`]: gapY
1902
+ }
1903
+ ), children }) }),
1904
+ children: props.children
1905
+ }
1906
+ ),
1907
+ formButtons && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "k-form-buttons", children: formButtons })
1908
+ ] });
1909
+ };
1910
+ Form.states = states21;
1911
+ Form.options = options20;
1912
+ Form.className = FORM_CLASSNAME;
1913
+ Form.defaultProps = defaultProps19;
1914
+
1915
+ // src/form/form-field.tsx
1916
+ var import_jsx_runtime31 = __require("react/jsx-runtime");
1917
+ var FORMFIELD_CLASSNAME = "k-form-field";
1918
+ var states22 = [
1919
+ States.disabled
1920
+ ];
1921
+ var FormField = (props) => {
1922
+ const {
1923
+ label,
1924
+ optional,
1925
+ editor,
1926
+ hint,
1927
+ error,
1928
+ info,
1929
+ disabled,
1930
+ dir
1931
+ } = props;
1932
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1933
+ "div",
1934
+ {
1935
+ className: classNames(
1936
+ FORMFIELD_CLASSNAME,
1937
+ props.className,
1938
+ stateClassNames(FORMFIELD_CLASSNAME, { disabled })
1939
+ ),
1940
+ dir,
1941
+ children: [
1942
+ label && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: classNames(
1943
+ "k-label",
1944
+ "k-form-label",
1945
+ {
1946
+ "k-label-empty": label === " "
1947
+ }
1948
+ ), children: [
1949
+ label,
1950
+ optional && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "k-label-optional", children: "(Optional)" }),
1951
+ info && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "k-field-info", children: "(field info)" })
1952
+ ] }),
1953
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "k-form-field-wrap", children: [
1954
+ editor,
1955
+ hint && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-form-hint", children: hint }),
1956
+ error && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-form-error", children: error })
1957
+ ] })
1958
+ ]
1959
+ }
1960
+ );
1961
+ };
1962
+ FormField.className = FORMFIELD_CLASSNAME;
1963
+
1964
+ // src/gantt/tests/gantt-editing-popup-other.tsx
1965
+ var import_jsx_runtime32 = __require("react/jsx-runtime");
1966
+ var root = import_client.default.createRoot(
1967
+ document.getElementById("app")
1968
+ );
1969
+ var styles = `
1970
+ .k-window {
1971
+ min-width: 580px;
1972
+ position: relative;
1973
+ }
1974
+ `;
1975
+ root.render(
1976
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
1977
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("style", { children: styles }),
1978
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Window, { title: "Edit task", actions: ["window-minimize", "window-maximize", "close"], actionButtons: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
1979
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { icon: "save", themeColor: "primary", children: "Save" }),
1980
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { icon: "cancel", children: "Cancel" }),
1981
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "k-spacer" }),
1982
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { icon: "delete", fillMode: "flat", themeColor: "primary", children: "Delete" })
1983
+ ] }), children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "k-tabstrip k-tabstrip-top", children: [
1984
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "k-tabstrip-items-wrapper k-hstack", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("ul", { className: "k-reset k-tabstrip-items", children: [
1985
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("li", { className: "k-item k-first", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "k-link", children: "General" }) }),
1986
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("li", { className: "k-item", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "k-link", children: "Resources" }) }),
1987
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("li", { className: "k-item", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "k-link", children: "Predecessors" }) }),
1988
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("li", { className: "k-item", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "k-link", children: "Successors" }) }),
1989
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("li", { className: "k-item k-last k-active", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "k-link", children: "Other" }) })
1990
+ ] }) }),
1991
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "k-tabstrip-content k-active", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Form, { orientation: "vertical", children: [
1992
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1993
+ FormField,
1994
+ {
1995
+ label: "Notes",
1996
+ optional: true,
1997
+ editor: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Textarea, { placeholder: "Placeholder" })
1998
+ }
1999
+ ),
2000
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2001
+ FormField,
2002
+ {
2003
+ label: "Text data field label",
2004
+ editor: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Textbox, { placeholder: "Placeholder" })
2005
+ }
2006
+ ),
2007
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2008
+ FormField,
2009
+ {
2010
+ label: "Date data field label",
2011
+ editor: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePicker, { placeholder: "dd/MM/yyyy" })
2012
+ }
2013
+ ),
2014
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2015
+ FormField,
2016
+ {
2017
+ label: "Numeric data field label",
2018
+ editor: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(NumericTextbox, { placeholder: "##,##" })
2019
+ }
2020
+ ),
2021
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2022
+ FormField,
2023
+ {
2024
+ editor: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
2025
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Checkbox, { checked: true }),
2026
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { className: "k-checkbox-label", children: "Boolean data field label" })
2027
+ ] })
2028
+ }
2029
+ )
2030
+ ] }) })
2031
+ ] }) }) }) })
2032
+ ] })
2033
+ );
2034
+ })();
2035
+ //# sourceMappingURL=gantt-editing-popup-other.js.map