@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,1895 @@
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-predecessors.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/action-buttons/action-buttons.spec.tsx
172
+ var import_jsx_runtime = __require("react/jsx-runtime");
173
+ var ACTIONBUTTONS_CLASSNAME = `k-actions`;
174
+ var states = [];
175
+ var options = {};
176
+ var defaultProps = {
177
+ alignment: "start",
178
+ orientation: "horizontal"
179
+ };
180
+ var ActionButtons = (props) => {
181
+ const _a = props, {
182
+ alignment = defaultProps.alignment,
183
+ orientation = defaultProps.orientation
184
+ } = _a, other = __objRest(_a, [
185
+ "alignment",
186
+ "orientation"
187
+ ]);
188
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
189
+ "div",
190
+ __spreadProps(__spreadValues({}, other), {
191
+ className: classNames(
192
+ ACTIONBUTTONS_CLASSNAME,
193
+ {
194
+ [`${ACTIONBUTTONS_CLASSNAME}-${alignment}`]: alignment,
195
+ [`${ACTIONBUTTONS_CLASSNAME}-${orientation}`]: orientation
196
+ },
197
+ props.className
198
+ ),
199
+ children: props.children
200
+ })
201
+ );
202
+ };
203
+ ActionButtons.states = states;
204
+ ActionButtons.options = options;
205
+ ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
206
+ ActionButtons.defaultProps = defaultProps;
207
+
208
+ // src/icon/icon.spec.tsx
209
+ var import_jsx_runtime2 = __require("react/jsx-runtime");
210
+ var ICON_CLASSNAME = `k-icon`;
211
+ var states2 = [];
212
+ var options2 = {
213
+ size: [Size.xsmall, Size.small, Size.medium, Size.large, Size.xlarge, Size.xxlarge, Size.xxxlarge],
214
+ themeColor: [
215
+ ThemeColor.base,
216
+ ThemeColor.primary,
217
+ ThemeColor.secondary,
218
+ ThemeColor.tertiary,
219
+ ThemeColor.success,
220
+ ThemeColor.warning,
221
+ ThemeColor.error,
222
+ ThemeColor.info,
223
+ ThemeColor.light,
224
+ ThemeColor.dark
225
+ ]
226
+ };
227
+ var defaultProps2 = {};
228
+ var Icon = (props) => {
229
+ const _a = props, {
230
+ size,
231
+ themeColor,
232
+ name,
233
+ rotate,
234
+ flip
235
+ } = _a, other = __objRest(_a, [
236
+ "size",
237
+ "themeColor",
238
+ "name",
239
+ "rotate",
240
+ "flip"
241
+ ]);
242
+ if (!name) {
243
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, {});
244
+ }
245
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
246
+ "span",
247
+ __spreadProps(__spreadValues({}, other), {
248
+ className: classNames(
249
+ props.className,
250
+ ICON_CLASSNAME,
251
+ optionClassNames(ICON_CLASSNAME, {
252
+ size,
253
+ themeColor
254
+ }),
255
+ {
256
+ [`k-i-${name}`]: name,
257
+ [`k-rotate-${rotate}`]: rotate,
258
+ [`k-flip-${flip}`]: flip
259
+ }
260
+ )
261
+ })
262
+ );
263
+ };
264
+ Icon.states = states2;
265
+ Icon.options = options2;
266
+ Icon.className = ICON_CLASSNAME;
267
+ Icon.defaultProps = defaultProps2;
268
+
269
+ // src/button/button.spec.tsx
270
+ var import_jsx_runtime3 = __require("react/jsx-runtime");
271
+ var BUTTON_CLASSNAME = `k-button`;
272
+ var states3 = [
273
+ States.hover,
274
+ States.focus,
275
+ States.active,
276
+ States.selected,
277
+ States.disabled
278
+ ];
279
+ var options3 = {
280
+ size: [Size.small, Size.medium, Size.large],
281
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
282
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
283
+ themeColor: [
284
+ ThemeColor.base,
285
+ ThemeColor.primary,
286
+ ThemeColor.secondary,
287
+ ThemeColor.tertiary,
288
+ ThemeColor.success,
289
+ ThemeColor.warning,
290
+ ThemeColor.error,
291
+ ThemeColor.info,
292
+ ThemeColor.light,
293
+ ThemeColor.dark,
294
+ ThemeColor.inverse
295
+ ]
296
+ };
297
+ var defaultProps3 = {
298
+ size: Size.medium,
299
+ rounded: Roundness.medium,
300
+ fillMode: FillMode.solid,
301
+ themeColor: ThemeColor.base,
302
+ showArrow: false,
303
+ arrowIconName: "arrow-s"
304
+ };
305
+ var Button = (props) => {
306
+ const _a = props, {
307
+ size = defaultProps3.size,
308
+ rounded = defaultProps3.rounded,
309
+ fillMode = defaultProps3.fillMode,
310
+ themeColor = defaultProps3.themeColor,
311
+ hover,
312
+ focus,
313
+ active,
314
+ selected,
315
+ disabled,
316
+ icon,
317
+ text,
318
+ iconClassName,
319
+ showArrow = defaultProps3.showArrow,
320
+ arrowIconName = defaultProps3.arrowIconName
321
+ } = _a, other = __objRest(_a, [
322
+ "size",
323
+ "rounded",
324
+ "fillMode",
325
+ "themeColor",
326
+ "hover",
327
+ "focus",
328
+ "active",
329
+ "selected",
330
+ "disabled",
331
+ "icon",
332
+ "text",
333
+ "iconClassName",
334
+ "showArrow",
335
+ "arrowIconName"
336
+ ]);
337
+ const hasIcon = icon !== void 0;
338
+ const hasChildren = props.children !== void 0;
339
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
340
+ "button",
341
+ __spreadProps(__spreadValues({}, other), {
342
+ className: classNames(
343
+ props.className,
344
+ BUTTON_CLASSNAME,
345
+ optionClassNames(BUTTON_CLASSNAME, {
346
+ size,
347
+ rounded,
348
+ fillMode,
349
+ themeColor
350
+ }),
351
+ stateClassNames(BUTTON_CLASSNAME, {
352
+ hover,
353
+ focus,
354
+ active,
355
+ disabled,
356
+ selected
357
+ }),
358
+ {
359
+ ["k-icon-button"]: !text && !hasChildren && hasIcon
360
+ }
361
+ ),
362
+ children: [
363
+ icon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
364
+ Icon,
365
+ {
366
+ className: classNames(iconClassName, "k-button-icon"),
367
+ name: icon
368
+ }
369
+ ),
370
+ text ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
371
+ text && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "k-button-text", children: text }),
372
+ props.children
373
+ ] }) : props.children && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "k-button-text", children: props.children }),
374
+ showArrow && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "k-menu-button-arrow k-button-arrow", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: arrowIconName }) })
375
+ ]
376
+ })
377
+ );
378
+ };
379
+ Button.states = states3;
380
+ Button.options = options3;
381
+ Button.className = BUTTON_CLASSNAME;
382
+ Button.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/popup/popup.spec.tsx
774
+ var import_jsx_runtime15 = __require("react/jsx-runtime");
775
+ var POPUP_CLASSNAME = `k-popup`;
776
+ var states12 = [];
777
+ var options11 = {};
778
+ var defaultProps9 = {};
779
+ var Popup = (props) => {
780
+ const other = __objRest(props, []);
781
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", __spreadProps(__spreadValues({}, other), { className: classNames(props.className, POPUP_CLASSNAME), children: props.children }));
782
+ };
783
+ Popup.states = states12;
784
+ Popup.options = options11;
785
+ Popup.className = POPUP_CLASSNAME;
786
+ Popup.defaultProps = defaultProps9;
787
+
788
+ // src/dropdownlist/dropdownlist.spec.tsx
789
+ var import_jsx_runtime16 = __require("react/jsx-runtime");
790
+ var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
791
+ var states13 = [
792
+ States.hover,
793
+ States.focus,
794
+ States.valid,
795
+ States.invalid,
796
+ States.required,
797
+ States.disabled,
798
+ States.loading,
799
+ States.readonly
800
+ ];
801
+ var options12 = {
802
+ size: [Size.small, Size.medium, Size.large],
803
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
804
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
805
+ };
806
+ var defaultProps10 = {
807
+ showValue: true,
808
+ arrowIconName: "arrow-s",
809
+ size: Size.medium,
810
+ rounded: Roundness.medium,
811
+ fillMode: FillMode.solid
812
+ };
813
+ var DropdownList = (props) => {
814
+ const _a = props, {
815
+ valueIconName,
816
+ arrowIconName = defaultProps10.arrowIconName,
817
+ prefix,
818
+ suffix,
819
+ value,
820
+ placeholder,
821
+ size,
822
+ rounded,
823
+ fillMode,
824
+ hover,
825
+ focus,
826
+ valid,
827
+ invalid,
828
+ required,
829
+ loading,
830
+ disabled,
831
+ readonly,
832
+ showValue = defaultProps10.showValue,
833
+ popup,
834
+ opened
835
+ } = _a, other = __objRest(_a, [
836
+ "valueIconName",
837
+ "arrowIconName",
838
+ "prefix",
839
+ "suffix",
840
+ "value",
841
+ "placeholder",
842
+ "size",
843
+ "rounded",
844
+ "fillMode",
845
+ "hover",
846
+ "focus",
847
+ "valid",
848
+ "invalid",
849
+ "required",
850
+ "loading",
851
+ "disabled",
852
+ "readonly",
853
+ "showValue",
854
+ "popup",
855
+ "opened"
856
+ ]);
857
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
858
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
859
+ Picker,
860
+ __spreadProps(__spreadValues({}, other), {
861
+ size,
862
+ rounded,
863
+ fillMode,
864
+ hover,
865
+ focus,
866
+ valid,
867
+ invalid,
868
+ required,
869
+ loading,
870
+ disabled,
871
+ readonly,
872
+ className: classNames(
873
+ props.className,
874
+ DROPDOWNLIST_CLASSNAME,
875
+ {
876
+ "k-icon-picker": !showValue && valueIconName
877
+ }
878
+ ),
879
+ children: [
880
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(InputPrefix, { children: prefix }),
881
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
882
+ InputInnerSpan,
883
+ {
884
+ placeholder,
885
+ value,
886
+ showValue,
887
+ valueIconName
888
+ }
889
+ ),
890
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
891
+ InputValidationIcon,
892
+ {
893
+ valid,
894
+ invalid,
895
+ loading,
896
+ disabled
897
+ }
898
+ ),
899
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
900
+ InputLoadingIcon,
901
+ {
902
+ loading,
903
+ disabled
904
+ }
905
+ ),
906
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(InputSuffix, { children: suffix }),
907
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
908
+ Button,
909
+ {
910
+ className: "k-input-button",
911
+ icon: arrowIconName,
912
+ rounded: null,
913
+ size: props.size,
914
+ fillMode: props.fillMode
915
+ }
916
+ )
917
+ ]
918
+ })
919
+ ),
920
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Popup, { className: "k-dropdownlist-popup", children: popup })
921
+ ] });
922
+ };
923
+ DropdownList.states = states13;
924
+ DropdownList.options = options12;
925
+ DropdownList.className = DROPDOWNLIST_CLASSNAME;
926
+ DropdownList.defaultProps = defaultProps10;
927
+
928
+ // src/button-group/button-group.spec.tsx
929
+ var import_jsx_runtime17 = __require("react/jsx-runtime");
930
+ var BUTTONGROUP_CLASSNAME = `k-button-group`;
931
+ var states14 = [
932
+ States.disabled
933
+ ];
934
+ var options13 = {
935
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link]
936
+ };
937
+ var defaultProps11 = {
938
+ fillMode: FillMode.solid
939
+ };
940
+ var ButtonGroup = (props) => {
941
+ const _a = props, {
942
+ fillMode = defaultProps11.fillMode,
943
+ disabled,
944
+ stretched
945
+ } = _a, other = __objRest(_a, [
946
+ "fillMode",
947
+ "disabled",
948
+ "stretched"
949
+ ]);
950
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
951
+ "div",
952
+ __spreadProps(__spreadValues({}, other), {
953
+ className: classNames(
954
+ props.className,
955
+ BUTTONGROUP_CLASSNAME,
956
+ optionClassNames(BUTTONGROUP_CLASSNAME, {
957
+ fillMode
958
+ }),
959
+ stateClassNames(BUTTONGROUP_CLASSNAME, {
960
+ disabled
961
+ }),
962
+ {
963
+ [`${BUTTONGROUP_CLASSNAME}-stretched`]: stretched
964
+ }
965
+ ),
966
+ children: props.children
967
+ })
968
+ );
969
+ };
970
+ ButtonGroup.states = states14;
971
+ ButtonGroup.options = options13;
972
+ ButtonGroup.className = BUTTONGROUP_CLASSNAME;
973
+ ButtonGroup.defaultProps = defaultProps11;
974
+
975
+ // src/color-preview/color-preview.tsx
976
+ var import_jsx_runtime18 = __require("react/jsx-runtime");
977
+ var COLORPREVIEW_CLASSNAME = `k-color-preview`;
978
+ var states15 = [];
979
+ var options14 = {};
980
+ var ColorPreview = (props) => {
981
+ const _a = props, {
982
+ color,
983
+ iconName
984
+ } = _a, other = __objRest(_a, [
985
+ "color",
986
+ "iconName"
987
+ ]);
988
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
989
+ "span",
990
+ __spreadProps(__spreadValues({}, other), {
991
+ className: classNames(
992
+ props.className,
993
+ COLORPREVIEW_CLASSNAME,
994
+ {
995
+ "k-icon-color-preview": iconName,
996
+ "k-no-color": !color
997
+ }
998
+ ),
999
+ children: [
1000
+ iconName && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon, { name: iconName, className: "k-color-preview-icon" }),
1001
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1002
+ "span",
1003
+ {
1004
+ className: "k-color-preview-mask",
1005
+ style: { backgroundColor: color }
1006
+ }
1007
+ )
1008
+ ]
1009
+ })
1010
+ );
1011
+ };
1012
+ ColorPreview.states = states15;
1013
+ ColorPreview.options = options14;
1014
+ ColorPreview.className = COLORPREVIEW_CLASSNAME;
1015
+
1016
+ // src/colorpicker/colorpicker.spec.tsx
1017
+ var import_jsx_runtime19 = __require("react/jsx-runtime");
1018
+ var COLORPICKER_CLASSNAME = `k-colorpicker`;
1019
+ var states16 = [
1020
+ States.hover,
1021
+ States.focus,
1022
+ States.valid,
1023
+ States.invalid,
1024
+ States.required,
1025
+ States.disabled
1026
+ ];
1027
+ var options15 = {
1028
+ size: [Size.small, Size.medium, Size.large],
1029
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1030
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
1031
+ };
1032
+ var defaultProps12 = {
1033
+ arrowIconName: "arrow-s",
1034
+ size: Picker.defaultProps.size,
1035
+ rounded: Picker.defaultProps.rounded,
1036
+ fillMode: Picker.defaultProps.fillMode
1037
+ };
1038
+ var ColorPicker = (props) => {
1039
+ const _a = props, {
1040
+ prefix,
1041
+ suffix,
1042
+ value,
1043
+ placeholder,
1044
+ size,
1045
+ rounded,
1046
+ fillMode,
1047
+ hover,
1048
+ focus,
1049
+ valid,
1050
+ invalid,
1051
+ required,
1052
+ disabled,
1053
+ valueIconName,
1054
+ arrowIconName = defaultProps12.arrowIconName
1055
+ } = _a, other = __objRest(_a, [
1056
+ "prefix",
1057
+ "suffix",
1058
+ "value",
1059
+ "placeholder",
1060
+ "size",
1061
+ "rounded",
1062
+ "fillMode",
1063
+ "hover",
1064
+ "focus",
1065
+ "valid",
1066
+ "invalid",
1067
+ "required",
1068
+ "disabled",
1069
+ "valueIconName",
1070
+ "arrowIconName"
1071
+ ]);
1072
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1073
+ Picker,
1074
+ __spreadProps(__spreadValues({}, other), {
1075
+ size,
1076
+ rounded,
1077
+ fillMode,
1078
+ hover,
1079
+ focus,
1080
+ valid,
1081
+ invalid,
1082
+ required,
1083
+ disabled,
1084
+ className: classNames(
1085
+ props.className,
1086
+ COLORPICKER_CLASSNAME,
1087
+ "k-icon-picker"
1088
+ ),
1089
+ children: [
1090
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(InputPrefix, { children: prefix }),
1091
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1092
+ InputInnerSpan,
1093
+ {
1094
+ placeholder,
1095
+ value,
1096
+ showValue: false,
1097
+ valueIcon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1098
+ ColorPreview,
1099
+ {
1100
+ className: "k-value-icon",
1101
+ color: value,
1102
+ iconName: valueIconName
1103
+ }
1104
+ ),
1105
+ valueIconName
1106
+ }
1107
+ ),
1108
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(InputSuffix, { children: suffix }),
1109
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1110
+ Button,
1111
+ {
1112
+ className: "k-input-button",
1113
+ icon: arrowIconName,
1114
+ rounded: null,
1115
+ size,
1116
+ fillMode
1117
+ }
1118
+ )
1119
+ ]
1120
+ })
1121
+ );
1122
+ };
1123
+ ColorPicker.states = states16;
1124
+ ColorPicker.options = options15;
1125
+ ColorPicker.className = COLORPICKER_CLASSNAME;
1126
+ ColorPicker.defaultProps = defaultProps12;
1127
+
1128
+ // src/combobox/combobox.spec.tsx
1129
+ var import_jsx_runtime20 = __require("react/jsx-runtime");
1130
+ var COMBOBOX_CLASSNAME = `k-combobox`;
1131
+ var states17 = [
1132
+ States.hover,
1133
+ States.focus,
1134
+ States.valid,
1135
+ States.invalid,
1136
+ States.loading,
1137
+ States.required,
1138
+ States.disabled,
1139
+ States.readonly
1140
+ ];
1141
+ var defaultProps13 = {
1142
+ size: Input.defaultProps.size,
1143
+ rounded: Input.defaultProps.rounded,
1144
+ fillMode: Input.defaultProps.fillMode
1145
+ };
1146
+ var options16 = {
1147
+ size: [Size.small, Size.medium, Size.large],
1148
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1149
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
1150
+ };
1151
+ var Combobox = (props) => {
1152
+ const _a = props, {
1153
+ prefix,
1154
+ suffix,
1155
+ value,
1156
+ placeholder,
1157
+ size,
1158
+ rounded,
1159
+ fillMode,
1160
+ hover,
1161
+ focus,
1162
+ valid,
1163
+ invalid,
1164
+ required,
1165
+ loading,
1166
+ disabled,
1167
+ popup,
1168
+ opened,
1169
+ readonly
1170
+ } = _a, other = __objRest(_a, [
1171
+ "prefix",
1172
+ "suffix",
1173
+ "value",
1174
+ "placeholder",
1175
+ "size",
1176
+ "rounded",
1177
+ "fillMode",
1178
+ "hover",
1179
+ "focus",
1180
+ "valid",
1181
+ "invalid",
1182
+ "required",
1183
+ "loading",
1184
+ "disabled",
1185
+ "popup",
1186
+ "opened",
1187
+ "readonly"
1188
+ ]);
1189
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
1190
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1191
+ Input,
1192
+ __spreadProps(__spreadValues({}, other), {
1193
+ size,
1194
+ rounded,
1195
+ fillMode,
1196
+ hover,
1197
+ focus,
1198
+ valid,
1199
+ invalid,
1200
+ required,
1201
+ loading,
1202
+ disabled,
1203
+ readonly,
1204
+ className: classNames(props.className, COMBOBOX_CLASSNAME),
1205
+ children: [
1206
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InputPrefix, { children: prefix }),
1207
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InputInnerInput, { placeholder, value }),
1208
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1209
+ InputValidationIcon,
1210
+ {
1211
+ valid,
1212
+ invalid,
1213
+ loading,
1214
+ disabled
1215
+ }
1216
+ ),
1217
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1218
+ InputLoadingIcon,
1219
+ {
1220
+ loading,
1221
+ disabled
1222
+ }
1223
+ ),
1224
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1225
+ InputClearValue,
1226
+ {
1227
+ loading,
1228
+ disabled,
1229
+ readonly,
1230
+ value
1231
+ }
1232
+ ),
1233
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InputSuffix, { children: suffix }),
1234
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1235
+ Button,
1236
+ {
1237
+ className: "k-input-button",
1238
+ icon: "caret-alt-down",
1239
+ rounded: null,
1240
+ size,
1241
+ fillMode
1242
+ }
1243
+ )
1244
+ ]
1245
+ })
1246
+ ),
1247
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Popup, { className: "k-combobox-popup", children: popup })
1248
+ ] });
1249
+ };
1250
+ Combobox.states = states17;
1251
+ Combobox.options = options16;
1252
+ Combobox.className = COMBOBOX_CLASSNAME;
1253
+ Combobox.defaultProps = defaultProps13;
1254
+
1255
+ // src/menu-button/menu-button.spec.tsx
1256
+ var import_jsx_runtime21 = __require("react/jsx-runtime");
1257
+ var MENUBUTTON_CLASSNAME = `k-menu-button`;
1258
+ var states18 = [
1259
+ States.hover,
1260
+ States.focus,
1261
+ States.active,
1262
+ States.selected,
1263
+ States.disabled
1264
+ ];
1265
+ var options17 = {
1266
+ size: [Size.small, Size.medium, Size.large],
1267
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1268
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
1269
+ themeColor: [
1270
+ ThemeColor.base,
1271
+ ThemeColor.primary,
1272
+ ThemeColor.secondary,
1273
+ ThemeColor.tertiary,
1274
+ ThemeColor.success,
1275
+ ThemeColor.warning,
1276
+ ThemeColor.error,
1277
+ ThemeColor.info,
1278
+ ThemeColor.light,
1279
+ ThemeColor.dark,
1280
+ ThemeColor.inverse
1281
+ ]
1282
+ };
1283
+ var defaultProps14 = {
1284
+ size: Size.medium,
1285
+ rounded: Roundness.medium,
1286
+ fillMode: FillMode.solid,
1287
+ themeColor: ThemeColor.base,
1288
+ showArrow: true,
1289
+ arrowIconName: "arrow-s"
1290
+ };
1291
+ var MenuButton = (props) => {
1292
+ const _a = props, {
1293
+ size = defaultProps14.size,
1294
+ rounded = defaultProps14.rounded,
1295
+ fillMode = defaultProps14.fillMode,
1296
+ themeColor = defaultProps14.themeColor,
1297
+ hover,
1298
+ focus,
1299
+ active,
1300
+ selected,
1301
+ disabled,
1302
+ icon,
1303
+ text,
1304
+ showArrow = defaultProps14.showArrow,
1305
+ arrowIconName = defaultProps14.arrowIconName
1306
+ } = _a, other = __objRest(_a, [
1307
+ "size",
1308
+ "rounded",
1309
+ "fillMode",
1310
+ "themeColor",
1311
+ "hover",
1312
+ "focus",
1313
+ "active",
1314
+ "selected",
1315
+ "disabled",
1316
+ "icon",
1317
+ "text",
1318
+ "showArrow",
1319
+ "arrowIconName"
1320
+ ]);
1321
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1322
+ Button,
1323
+ __spreadProps(__spreadValues({}, other), {
1324
+ className: classNames(
1325
+ props.className,
1326
+ MENUBUTTON_CLASSNAME
1327
+ ),
1328
+ text,
1329
+ size,
1330
+ rounded,
1331
+ fillMode,
1332
+ themeColor,
1333
+ hover,
1334
+ focus,
1335
+ active,
1336
+ selected,
1337
+ disabled,
1338
+ icon,
1339
+ showArrow,
1340
+ arrowIconName
1341
+ })
1342
+ );
1343
+ };
1344
+ MenuButton.states = states18;
1345
+ MenuButton.options = options17;
1346
+ MenuButton.className = MENUBUTTON_CLASSNAME;
1347
+ MenuButton.defaultProps = defaultProps14;
1348
+
1349
+ // src/split-button/split-button.spec.tsx
1350
+ var import_jsx_runtime22 = __require("react/jsx-runtime");
1351
+ var SPLITBUTTON_CLASSNAME = `k-split-button`;
1352
+ var states19 = [
1353
+ States.hover,
1354
+ States.focus,
1355
+ States.active,
1356
+ States.selected,
1357
+ States.disabled
1358
+ ];
1359
+ var options18 = {
1360
+ size: [Size.small, Size.medium, Size.large],
1361
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1362
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline, FillMode.clear, FillMode.link],
1363
+ themeColor: [
1364
+ ThemeColor.base,
1365
+ ThemeColor.primary,
1366
+ ThemeColor.secondary,
1367
+ ThemeColor.tertiary,
1368
+ ThemeColor.success,
1369
+ ThemeColor.warning,
1370
+ ThemeColor.error,
1371
+ ThemeColor.info,
1372
+ ThemeColor.light,
1373
+ ThemeColor.dark,
1374
+ ThemeColor.inverse
1375
+ ]
1376
+ };
1377
+ var defaultProps15 = {
1378
+ size: Size.medium,
1379
+ rounded: Roundness.medium,
1380
+ fillMode: FillMode.solid,
1381
+ themeColor: ThemeColor.base,
1382
+ arrowIconName: "arrow-s"
1383
+ };
1384
+ var SplitButton = (props) => {
1385
+ const _a = props, {
1386
+ size = defaultProps15.size,
1387
+ rounded = defaultProps15.rounded,
1388
+ fillMode = defaultProps15.fillMode,
1389
+ themeColor = defaultProps15.themeColor,
1390
+ hover,
1391
+ focus,
1392
+ active,
1393
+ selected,
1394
+ disabled,
1395
+ icon,
1396
+ text,
1397
+ arrowIconName = defaultProps15.arrowIconName
1398
+ } = _a, other = __objRest(_a, [
1399
+ "size",
1400
+ "rounded",
1401
+ "fillMode",
1402
+ "themeColor",
1403
+ "hover",
1404
+ "focus",
1405
+ "active",
1406
+ "selected",
1407
+ "disabled",
1408
+ "icon",
1409
+ "text",
1410
+ "arrowIconName"
1411
+ ]);
1412
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1413
+ "div",
1414
+ __spreadProps(__spreadValues({}, other), {
1415
+ className: classNames(
1416
+ props.className,
1417
+ SPLITBUTTON_CLASSNAME,
1418
+ "k-button-group",
1419
+ optionClassNames(SPLITBUTTON_CLASSNAME, {
1420
+ rounded
1421
+ })
1422
+ ),
1423
+ children: [
1424
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1425
+ Button,
1426
+ {
1427
+ text,
1428
+ icon,
1429
+ size,
1430
+ rounded,
1431
+ fillMode,
1432
+ themeColor,
1433
+ hover,
1434
+ focus,
1435
+ active,
1436
+ selected,
1437
+ disabled,
1438
+ children: props.children
1439
+ }
1440
+ ),
1441
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1442
+ Button,
1443
+ {
1444
+ className: "k-split-button-arrow",
1445
+ icon: arrowIconName,
1446
+ size,
1447
+ rounded,
1448
+ fillMode,
1449
+ disabled
1450
+ }
1451
+ )
1452
+ ]
1453
+ })
1454
+ );
1455
+ };
1456
+ SplitButton.states = states19;
1457
+ SplitButton.options = options18;
1458
+ SplitButton.className = SPLITBUTTON_CLASSNAME;
1459
+ SplitButton.defaultProps = defaultProps15;
1460
+ var split_button_spec_default = SplitButton;
1461
+
1462
+ // src/toolbar/toolbar.spec.tsx
1463
+ var import_jsx_runtime23 = __require("react/jsx-runtime");
1464
+ var TOOLBAR_CLASSNAME = `k-toolbar`;
1465
+ var states20 = [
1466
+ States.focus
1467
+ ];
1468
+ var options19 = {
1469
+ size: [Size.small, Size.medium, Size.large]
1470
+ };
1471
+ var defaultProps16 = {
1472
+ size: Size.medium
1473
+ };
1474
+ var Toolbar = (props) => {
1475
+ const _a = props, {
1476
+ size = defaultProps16.size,
1477
+ focus,
1478
+ resizable
1479
+ } = _a, other = __objRest(_a, [
1480
+ "size",
1481
+ "focus",
1482
+ "resizable"
1483
+ ]);
1484
+ const toolbarChildren = [];
1485
+ const addUniqueToolClass = (child, index) => {
1486
+ const tempToolbarChildren = [];
1487
+ if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
1488
+ tempToolbarChildren.push(
1489
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1490
+ Button,
1491
+ __spreadProps(__spreadValues({}, child.props), {
1492
+ className: `${child.props.className ? child.props.className : ""}`
1493
+ }),
1494
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1495
+ )
1496
+ );
1497
+ } else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
1498
+ tempToolbarChildren.push(
1499
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1500
+ Button,
1501
+ __spreadProps(__spreadValues({}, child.props), {
1502
+ className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
1503
+ }),
1504
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1505
+ )
1506
+ );
1507
+ } else if (child.type === Button) {
1508
+ tempToolbarChildren.push(
1509
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1510
+ Button,
1511
+ __spreadProps(__spreadValues({}, child.props), {
1512
+ className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
1513
+ }),
1514
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1515
+ )
1516
+ );
1517
+ } else if (child.type === MenuButton) {
1518
+ tempToolbarChildren.push(
1519
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1520
+ MenuButton,
1521
+ __spreadProps(__spreadValues({}, child.props), {
1522
+ className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
1523
+ }),
1524
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1525
+ )
1526
+ );
1527
+ } else if (child.type === split_button_spec_default) {
1528
+ tempToolbarChildren.push(
1529
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1530
+ split_button_spec_default,
1531
+ __spreadProps(__spreadValues({}, child.props), {
1532
+ className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
1533
+ }),
1534
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1535
+ )
1536
+ );
1537
+ } else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
1538
+ const buttonGroupItems = [];
1539
+ const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
1540
+ childrenArray.forEach((button, bindex) => {
1541
+ buttonGroupItems.push(
1542
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1543
+ Button,
1544
+ __spreadProps(__spreadValues({}, button.props), {
1545
+ className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
1546
+ }),
1547
+ `${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
1548
+ )
1549
+ );
1550
+ });
1551
+ tempToolbarChildren.push(
1552
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1553
+ ButtonGroup,
1554
+ __spreadProps(__spreadValues({}, child.props), {
1555
+ className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
1556
+ children: buttonGroupItems
1557
+ }),
1558
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1559
+ )
1560
+ );
1561
+ } else if (child.type === Combobox) {
1562
+ tempToolbarChildren.push(
1563
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1564
+ Combobox,
1565
+ __spreadProps(__spreadValues({}, child.props), {
1566
+ className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
1567
+ }),
1568
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1569
+ )
1570
+ );
1571
+ } else if (child.type === DropdownList) {
1572
+ tempToolbarChildren.push(
1573
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1574
+ DropdownList,
1575
+ __spreadProps(__spreadValues({}, child.props), {
1576
+ className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
1577
+ }),
1578
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1579
+ )
1580
+ );
1581
+ } else if (child.type === ColorPicker) {
1582
+ tempToolbarChildren.push(
1583
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1584
+ ColorPicker,
1585
+ __spreadProps(__spreadValues({}, child.props), {
1586
+ className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
1587
+ }),
1588
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1589
+ )
1590
+ );
1591
+ } else {
1592
+ tempToolbarChildren.push(child);
1593
+ }
1594
+ tempToolbarChildren.forEach((item) => {
1595
+ toolbarChildren.push(item);
1596
+ });
1597
+ };
1598
+ if (props.children) {
1599
+ const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
1600
+ childrenArray.forEach((child, index) => {
1601
+ addUniqueToolClass(child, index);
1602
+ });
1603
+ }
1604
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1605
+ "div",
1606
+ __spreadProps(__spreadValues({}, other), {
1607
+ className: classNames(
1608
+ props.className,
1609
+ TOOLBAR_CLASSNAME,
1610
+ optionClassNames(TOOLBAR_CLASSNAME, {
1611
+ size
1612
+ }),
1613
+ stateClassNames(TOOLBAR_CLASSNAME, {
1614
+ focus
1615
+ }),
1616
+ {
1617
+ [`${TOOLBAR_CLASSNAME}-resizable`]: resizable
1618
+ }
1619
+ ),
1620
+ children: toolbarChildren
1621
+ })
1622
+ );
1623
+ };
1624
+ Toolbar.states = states20;
1625
+ Toolbar.options = options19;
1626
+ Toolbar.className = TOOLBAR_CLASSNAME;
1627
+ Toolbar.defaultProps = defaultProps16;
1628
+
1629
+ // src/toolbar/toolbar-angular.spec.tsx
1630
+ var import_jsx_runtime24 = __require("react/jsx-runtime");
1631
+ var TOOLBARANGULAR_CLASSNAME = `k-toolbar`;
1632
+ var states21 = [
1633
+ States.focus
1634
+ ];
1635
+ var options20 = {
1636
+ size: [Size.small, Size.medium, Size.large]
1637
+ };
1638
+ var defaultProps17 = {
1639
+ size: Size.medium
1640
+ };
1641
+ var ToolbarAngular = (props) => {
1642
+ const _a = props, {
1643
+ size = defaultProps17.size,
1644
+ focus,
1645
+ resizable
1646
+ } = _a, other = __objRest(_a, [
1647
+ "size",
1648
+ "focus",
1649
+ "resizable"
1650
+ ]);
1651
+ const toolbarChildren = [];
1652
+ const addUniqueToolClass = (child, index) => {
1653
+ const tempToolbarChildren = [];
1654
+ if (child.type === Button && child.props.className && child.props.className.includes("k-toolbar-overflow-button")) {
1655
+ tempToolbarChildren.push(
1656
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1657
+ Button,
1658
+ __spreadProps(__spreadValues({}, child.props), {
1659
+ className: `${child.props.className ? child.props.className : ""}`
1660
+ }),
1661
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1662
+ ) })
1663
+ );
1664
+ } else if (child.type === Button && child.props.className && child.props.className.includes("k-toggle-button")) {
1665
+ tempToolbarChildren.push(
1666
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1667
+ Button,
1668
+ __spreadProps(__spreadValues({}, child.props), {
1669
+ className: `k-toolbar-toggle-button ${child.props.className ? child.props.className : ""}`
1670
+ }),
1671
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1672
+ ) })
1673
+ );
1674
+ } else if (child.type === Button) {
1675
+ tempToolbarChildren.push(
1676
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1677
+ Button,
1678
+ __spreadProps(__spreadValues({}, child.props), {
1679
+ className: `k-toolbar-button ${child.props.className ? child.props.className : ""}`
1680
+ }),
1681
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1682
+ ) })
1683
+ );
1684
+ } else if (child.type === MenuButton) {
1685
+ tempToolbarChildren.push(
1686
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1687
+ MenuButton,
1688
+ __spreadProps(__spreadValues({}, child.props), {
1689
+ className: `k-toolbar-menu-button ${child.props.className ? child.props.className : ""}`
1690
+ }),
1691
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1692
+ ) })
1693
+ );
1694
+ } else if (child.type === split_button_spec_default) {
1695
+ tempToolbarChildren.push(
1696
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1697
+ split_button_spec_default,
1698
+ __spreadProps(__spreadValues({}, child.props), {
1699
+ className: `k-toolbar-split-button ${child.props.className ? child.props.className : ""}`
1700
+ }),
1701
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1702
+ ) })
1703
+ );
1704
+ } else if (child.type === ButtonGroup || child.props.className && child.props.className.includes("k-button-group")) {
1705
+ const buttonGroupItems = [];
1706
+ const childrenArray = Array.isArray(child.props.children) ? child.props.children : [child.props.children];
1707
+ childrenArray.forEach((button, bindex) => {
1708
+ buttonGroupItems.push(
1709
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1710
+ Button,
1711
+ __spreadProps(__spreadValues({}, button.props), {
1712
+ className: `k-toolbar-button ${button.props.className ? button.props.className : ""}`
1713
+ }),
1714
+ `${bindex}-${(/* @__PURE__ */ new Date()).getTime()}`
1715
+ )
1716
+ );
1717
+ });
1718
+ tempToolbarChildren.push(
1719
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1720
+ ButtonGroup,
1721
+ __spreadProps(__spreadValues({}, child.props), {
1722
+ className: `k-toolbar-button-group ${child.props.className ? child.props.className : ""}`,
1723
+ children: buttonGroupItems
1724
+ }),
1725
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1726
+ ) })
1727
+ );
1728
+ } else if (child.type === Combobox) {
1729
+ tempToolbarChildren.push(
1730
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1731
+ Combobox,
1732
+ __spreadProps(__spreadValues({}, child.props), {
1733
+ className: `k-toolbar-combobox ${child.props.className ? child.props.className : ""}`
1734
+ }),
1735
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1736
+ ) })
1737
+ );
1738
+ } else if (child.type === DropdownList) {
1739
+ tempToolbarChildren.push(
1740
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1741
+ DropdownList,
1742
+ __spreadProps(__spreadValues({}, child.props), {
1743
+ className: `k-toolbar-dropdownlist ${child.props.className ? child.props.className : ""}`
1744
+ }),
1745
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1746
+ ) })
1747
+ );
1748
+ } else if (child.type === ColorPicker) {
1749
+ tempToolbarChildren.push(
1750
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "k-toolbar-renderer", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1751
+ ColorPicker,
1752
+ __spreadProps(__spreadValues({}, child.props), {
1753
+ className: `k-toolbar-colorpicker ${child.props.className ? child.props.className : ""}`
1754
+ }),
1755
+ `${index}-${(/* @__PURE__ */ new Date()).getTime()}`
1756
+ ) })
1757
+ );
1758
+ } else {
1759
+ tempToolbarChildren.push(child);
1760
+ }
1761
+ tempToolbarChildren.forEach((item) => {
1762
+ toolbarChildren.push(item);
1763
+ });
1764
+ };
1765
+ if (props.children) {
1766
+ const childrenArray = Array.isArray(props.children) ? props.children : [props.children];
1767
+ childrenArray.forEach((child, index) => {
1768
+ addUniqueToolClass(child, index);
1769
+ });
1770
+ }
1771
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1772
+ "div",
1773
+ __spreadProps(__spreadValues({}, other), {
1774
+ className: classNames(
1775
+ props.className,
1776
+ TOOLBARANGULAR_CLASSNAME,
1777
+ optionClassNames(TOOLBARANGULAR_CLASSNAME, {
1778
+ size
1779
+ }),
1780
+ stateClassNames(TOOLBARANGULAR_CLASSNAME, {
1781
+ focus
1782
+ }),
1783
+ {
1784
+ [`${TOOLBARANGULAR_CLASSNAME}-resizable`]: resizable
1785
+ }
1786
+ ),
1787
+ children: toolbarChildren
1788
+ })
1789
+ );
1790
+ };
1791
+ ToolbarAngular.states = states21;
1792
+ ToolbarAngular.options = options20;
1793
+ ToolbarAngular.className = TOOLBARANGULAR_CLASSNAME;
1794
+ ToolbarAngular.defaultProps = defaultProps17;
1795
+
1796
+ // src/toolbar/toolbar-separator.tsx
1797
+ var import_jsx_runtime25 = __require("react/jsx-runtime");
1798
+
1799
+ // src/toolbar/toolbar-item.spec.tsx
1800
+ var import_jsx_runtime26 = __require("react/jsx-runtime");
1801
+ var TOOLBARITEM_CLASSNAME = `k-toolbar-item`;
1802
+ var states22 = [
1803
+ States.focus
1804
+ ];
1805
+ var options21 = {};
1806
+ var defaultProps18 = {};
1807
+ var ToolbarItem = (props) => {
1808
+ const _a = props, {
1809
+ focus
1810
+ } = _a, other = __objRest(_a, [
1811
+ "focus"
1812
+ ]);
1813
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1814
+ "div",
1815
+ __spreadProps(__spreadValues({}, other), {
1816
+ className: classNames(
1817
+ props.className,
1818
+ TOOLBARITEM_CLASSNAME,
1819
+ stateClassNames(TOOLBARITEM_CLASSNAME, {
1820
+ focus
1821
+ })
1822
+ ),
1823
+ children: props.children
1824
+ })
1825
+ );
1826
+ };
1827
+ ToolbarItem.states = states22;
1828
+ ToolbarItem.options = options21;
1829
+ ToolbarItem.className = TOOLBARITEM_CLASSNAME;
1830
+ ToolbarItem.defaultProps = defaultProps18;
1831
+
1832
+ // src/gantt/tests/gantt-editing-popup-predecessors.tsx
1833
+ var import_jsx_runtime27 = __require("react/jsx-runtime");
1834
+ var root = import_client.default.createRoot(
1835
+ document.getElementById("app")
1836
+ );
1837
+ var styles = `
1838
+ .k-window {
1839
+ min-width: 580px;
1840
+ min-height: 500px;
1841
+ position: relative;
1842
+ }
1843
+ `;
1844
+ root.render(
1845
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
1846
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("style", { children: styles }),
1847
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Window, { title: "Edit task", actions: ["window-minimize", "window-maximize", "close"], actionButtons: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
1848
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button, { icon: "save", themeColor: "primary", children: "Save" }),
1849
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button, { icon: "cancel", children: "Cancel" }),
1850
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-spacer" }),
1851
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button, { icon: "delete", fillMode: "flat", themeColor: "primary", children: "Delete" })
1852
+ ] }), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "k-tabstrip k-tabstrip-top", children: [
1853
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "k-tabstrip-items-wrapper k-hstack", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("ul", { className: "k-reset k-tabstrip-items", children: [
1854
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("li", { className: "k-item k-first", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-link", children: "General" }) }),
1855
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("li", { className: "k-item", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-link", children: "Resources" }) }),
1856
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("li", { className: "k-item k-active", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-link", children: "Predecessors" }) }),
1857
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("li", { className: "k-item k-last", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-link", children: "Successors" }) })
1858
+ ] }) }),
1859
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "k-tabstrip-content k-active", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "k-grid k-grid-md k-grid-no-scrollbar", children: [
1860
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Toolbar, { className: "k-grid-toolbar", children: [
1861
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button, { icon: "add", children: "Add" }),
1862
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button, { icon: "minus", children: "Remove" })
1863
+ ] }),
1864
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "k-grid-header", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "k-grid-header-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("table", { className: "k-table k-table-md k-grid-header-table", children: [
1865
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("colgroup", { children: [
1866
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("col", {}),
1867
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("col", {})
1868
+ ] }),
1869
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("thead", { className: "k-table-thead", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("tr", { className: "k-table-row", children: [
1870
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("th", { className: "k-table-th k-header", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-cell-inner", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { className: "k-link", children: [
1871
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-column-title", children: "Name" }),
1872
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-sort-icon", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon, { name: "sort-asc-small" }) })
1873
+ ] }) }) }),
1874
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("th", { className: "k-table-th k-header", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-cell-inner", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { className: "k-link", children: [
1875
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-column-title", children: "Type" }),
1876
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "k-sort-icon", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon, { name: "sort-asc-small" }) })
1877
+ ] }) }) })
1878
+ ] }) })
1879
+ ] }) }) }),
1880
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "k-grid-content", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("table", { className: "k-table k-table-md k-grid-table", children: [
1881
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("colgroup", { children: [
1882
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("col", {}),
1883
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("col", {})
1884
+ ] }),
1885
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("tbody", { className: "k-table-tbody", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("tr", { className: "k-table-row", children: [
1886
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("td", { className: "k-table-td", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DropdownList, { placeholder: "-Select task-" }) }),
1887
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("td", { className: "k-table-td", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DropdownList, { placeholder: "Finish-Start" }) })
1888
+ ] }) })
1889
+ ] }) })
1890
+ ] }) })
1891
+ ] }) }) }) })
1892
+ ] })
1893
+ );
1894
+ })();
1895
+ //# sourceMappingURL=gantt-editing-popup-predecessors.js.map