@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,1348 @@
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/grid/tests/grid-selection-aggregates.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/input/input.spec.tsx
348
+ var import_jsx_runtime3 = __require("react/jsx-runtime");
349
+ var INPUT_CLASSNAME = `k-input`;
350
+ var states3 = [
351
+ States.hover,
352
+ States.focus,
353
+ States.valid,
354
+ States.invalid,
355
+ States.required,
356
+ States.disabled,
357
+ States.loading,
358
+ States.readonly
359
+ ];
360
+ var options3 = {
361
+ size: [Size.small, Size.medium, Size.large],
362
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
363
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
364
+ };
365
+ var defaultProps3 = {
366
+ size: Size.medium,
367
+ rounded: Size.medium,
368
+ fillMode: FillMode.solid
369
+ };
370
+ var Input = (props) => {
371
+ const _a = props, {
372
+ hover,
373
+ focus,
374
+ disabled,
375
+ invalid,
376
+ valid,
377
+ loading,
378
+ readonly,
379
+ size = defaultProps3.size,
380
+ rounded = defaultProps3.rounded,
381
+ fillMode = defaultProps3.fillMode
382
+ } = _a, other = __objRest(_a, [
383
+ "hover",
384
+ "focus",
385
+ "disabled",
386
+ "invalid",
387
+ "valid",
388
+ "loading",
389
+ "readonly",
390
+ "size",
391
+ "rounded",
392
+ "fillMode"
393
+ ]);
394
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
395
+ "span",
396
+ __spreadProps(__spreadValues({}, other), {
397
+ className: classNames(
398
+ props.className,
399
+ INPUT_CLASSNAME,
400
+ optionClassNames(INPUT_CLASSNAME, { size, rounded, fillMode }),
401
+ stateClassNames(INPUT_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
402
+ )
403
+ })
404
+ );
405
+ };
406
+ Input.states = states3;
407
+ Input.options = options3;
408
+ Input.className = INPUT_CLASSNAME;
409
+ Input.defaultProps = defaultProps3;
410
+
411
+ // src/input/picker.spec.tsx
412
+ var import_jsx_runtime4 = __require("react/jsx-runtime");
413
+ var PICKER_CLASSNAME = `k-picker`;
414
+ var pickerStates = [
415
+ States.hover,
416
+ States.focus,
417
+ States.valid,
418
+ States.invalid,
419
+ States.required,
420
+ States.disabled,
421
+ States.loading,
422
+ States.readonly
423
+ ];
424
+ var pickerOptions = {
425
+ size: [Size.small, Size.medium, Size.large],
426
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
427
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
428
+ };
429
+ var defaultProps4 = {
430
+ size: Size.medium,
431
+ rounded: Roundness.medium,
432
+ fillMode: FillMode.solid
433
+ };
434
+ var Picker = (props) => {
435
+ const _a = props, {
436
+ hover,
437
+ focus,
438
+ disabled,
439
+ invalid,
440
+ valid,
441
+ loading,
442
+ readonly,
443
+ size = defaultProps4.size,
444
+ rounded = defaultProps4.rounded,
445
+ fillMode = defaultProps4.fillMode
446
+ } = _a, other = __objRest(_a, [
447
+ "hover",
448
+ "focus",
449
+ "disabled",
450
+ "invalid",
451
+ "valid",
452
+ "loading",
453
+ "readonly",
454
+ "size",
455
+ "rounded",
456
+ "fillMode"
457
+ ]);
458
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
459
+ "span",
460
+ __spreadProps(__spreadValues({}, other), {
461
+ className: classNames(
462
+ props.className,
463
+ PICKER_CLASSNAME,
464
+ optionClassNames(PICKER_CLASSNAME, { size, rounded, fillMode }),
465
+ stateClassNames(PICKER_CLASSNAME, { hover, focus, disabled, invalid, valid, loading, readonly })
466
+ ),
467
+ children: props.children
468
+ })
469
+ );
470
+ };
471
+ Picker.states = pickerStates;
472
+ Picker.options = pickerOptions;
473
+ Picker.className = PICKER_CLASSNAME;
474
+ Picker.defaultProps = defaultProps4;
475
+
476
+ // src/input/input-clear-value.tsx
477
+ var import_jsx_runtime5 = __require("react/jsx-runtime");
478
+ var className = `k-clear-value`;
479
+ var states4 = [
480
+ States.disabled,
481
+ States.loading,
482
+ States.readonly
483
+ ];
484
+ var options4 = {};
485
+ var InputClearValue = (props) => {
486
+ const {
487
+ disabled,
488
+ loading,
489
+ readonly,
490
+ value
491
+ } = props;
492
+ if (disabled || readonly || loading || !value) {
493
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, {});
494
+ }
495
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: classNames(props.className, className), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "x" }) });
496
+ };
497
+ InputClearValue.states = states4;
498
+ InputClearValue.options = options4;
499
+ InputClearValue.className = className;
500
+
501
+ // src/input/input-inner-input.tsx
502
+ var import_jsx_runtime6 = __require("react/jsx-runtime");
503
+ var className2 = `k-input-inner`;
504
+ var states5 = [];
505
+ var options5 = {};
506
+ var defaultProps5 = {
507
+ type: "text",
508
+ autocomplete: "off",
509
+ value: "",
510
+ placeholder: ""
511
+ };
512
+ var InputInnerInput = (props) => {
513
+ const _a = props, {
514
+ value = defaultProps5.value,
515
+ type = defaultProps5.type,
516
+ placeholder = defaultProps5.placeholder,
517
+ autocomplete = defaultProps5.autocomplete
518
+ } = _a, other = __objRest(_a, [
519
+ "value",
520
+ "type",
521
+ "placeholder",
522
+ "autocomplete"
523
+ ]);
524
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
525
+ "input",
526
+ __spreadProps(__spreadValues({}, other), {
527
+ type,
528
+ className: classNames(props.className, className2, optionClassNames(className2, props)),
529
+ placeholder,
530
+ autoComplete: autocomplete,
531
+ defaultValue: value
532
+ })
533
+ );
534
+ };
535
+ InputInnerInput.states = states5;
536
+ InputInnerInput.options = options5;
537
+ InputInnerInput.className = className2;
538
+
539
+ // src/input/input-inner-span.tsx
540
+ var import_jsx_runtime7 = __require("react/jsx-runtime");
541
+ var className3 = `k-input-inner`;
542
+ var states6 = [];
543
+ var options6 = {};
544
+ var InputInnerSpan = (props) => {
545
+ const _a = props, {
546
+ value,
547
+ placeholder,
548
+ showValue,
549
+ valueIcon,
550
+ valueIconName
551
+ } = _a, other = __objRest(_a, [
552
+ "value",
553
+ "placeholder",
554
+ "showValue",
555
+ "valueIcon",
556
+ "valueIconName"
557
+ ]);
558
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
559
+ "span",
560
+ __spreadProps(__spreadValues({}, other), {
561
+ className: classNames(props.className, className3, optionClassNames(className3, props)),
562
+ children: [
563
+ valueIcon,
564
+ !valueIcon && valueIconName && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { className: "k-input-value-icon", name: valueIconName }),
565
+ showValue && !value && placeholder,
566
+ showValue && value && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "k-input-value-text", children: value })
567
+ ]
568
+ })
569
+ );
570
+ };
571
+ InputInnerSpan.states = states6;
572
+ InputInnerSpan.options = options6;
573
+ InputInnerSpan.className = className3;
574
+
575
+ // src/input/input-inner-textarea.tsx
576
+ var import_jsx_runtime8 = __require("react/jsx-runtime");
577
+ var defaultProps6 = {
578
+ value: "",
579
+ placeholder: ""
580
+ };
581
+ var className4 = `k-input-inner`;
582
+ var states7 = [];
583
+ var options7 = {};
584
+ var InputInnerTextarea = (props) => {
585
+ const _a = props, {
586
+ value = defaultProps6.value,
587
+ placeholder = defaultProps6.placeholder,
588
+ rows
589
+ } = _a, other = __objRest(_a, [
590
+ "value",
591
+ "placeholder",
592
+ "rows"
593
+ ]);
594
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
595
+ "textarea",
596
+ __spreadProps(__spreadValues({}, other), {
597
+ className: classNames(props.className, className4, optionClassNames(className4, props)),
598
+ placeholder,
599
+ rows,
600
+ children: value
601
+ })
602
+ );
603
+ };
604
+ InputInnerTextarea.states = states7;
605
+ InputInnerTextarea.options = options7;
606
+ InputInnerTextarea.className = className4;
607
+
608
+ // src/input/input-loading-icon.tsx
609
+ var import_jsx_runtime9 = __require("react/jsx-runtime");
610
+ var className5 = `k-input-loading-icon`;
611
+ var states8 = [
612
+ States.disabled,
613
+ States.loading
614
+ ];
615
+ var InputLoadingIcon = (props) => {
616
+ const {
617
+ disabled,
618
+ loading
619
+ } = props;
620
+ if (disabled || !loading) {
621
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, {});
622
+ }
623
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, { className: classNames(props.className, className5), name: "loading" });
624
+ };
625
+
626
+ // src/input/input-validation-icon.tsx
627
+ var import_jsx_runtime10 = __require("react/jsx-runtime");
628
+ var className6 = `k-input-validation-icon`;
629
+ var states9 = [
630
+ States.valid,
631
+ States.invalid,
632
+ States.disabled,
633
+ States.loading
634
+ ];
635
+ var options8 = {};
636
+ var InputValidationIcon = (props) => {
637
+ const {
638
+ valid,
639
+ invalid,
640
+ disabled,
641
+ loading
642
+ } = props;
643
+ const iconName = invalid ? "warning" : "check";
644
+ const renderValidationIcon = Boolean(valid || invalid);
645
+ if (disabled || loading || !renderValidationIcon) {
646
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, {});
647
+ }
648
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { className: classNames(className6), name: iconName });
649
+ };
650
+ InputValidationIcon.states = states9;
651
+ InputValidationIcon.options = options8;
652
+ InputValidationIcon.className = className6;
653
+
654
+ // src/input/input-prefix.tsx
655
+ var import_jsx_runtime11 = __require("react/jsx-runtime");
656
+ var className7 = `k-input-prefix`;
657
+ var InputPrefix = (props) => {
658
+ if (!props.children) {
659
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, {});
660
+ }
661
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: classNames(className7, props.className), children: props.children });
662
+ };
663
+
664
+ // src/input/input-suffix.tsx
665
+ var import_jsx_runtime12 = __require("react/jsx-runtime");
666
+ var className8 = `k-input-suffix`;
667
+ var InputSuffix = (props) => {
668
+ if (!props.children) {
669
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, {});
670
+ }
671
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: classNames(className8, props.className), children: props.children });
672
+ };
673
+
674
+ // src/popup/popup.spec.tsx
675
+ var import_jsx_runtime13 = __require("react/jsx-runtime");
676
+ var POPUP_CLASSNAME = `k-popup`;
677
+ var states10 = [];
678
+ var options9 = {};
679
+ var defaultProps7 = {};
680
+ var Popup = (props) => {
681
+ const other = __objRest(props, []);
682
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", __spreadProps(__spreadValues({}, other), { className: classNames(props.className, POPUP_CLASSNAME), children: props.children }));
683
+ };
684
+ Popup.states = states10;
685
+ Popup.options = options9;
686
+ Popup.className = POPUP_CLASSNAME;
687
+ Popup.defaultProps = defaultProps7;
688
+
689
+ // src/dropdownlist/dropdownlist.spec.tsx
690
+ var import_jsx_runtime14 = __require("react/jsx-runtime");
691
+ var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
692
+ var states11 = [
693
+ States.hover,
694
+ States.focus,
695
+ States.valid,
696
+ States.invalid,
697
+ States.required,
698
+ States.disabled,
699
+ States.loading,
700
+ States.readonly
701
+ ];
702
+ var options10 = {
703
+ size: [Size.small, Size.medium, Size.large],
704
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
705
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
706
+ };
707
+ var defaultProps8 = {
708
+ showValue: true,
709
+ arrowIconName: "arrow-s",
710
+ size: Size.medium,
711
+ rounded: Roundness.medium,
712
+ fillMode: FillMode.solid
713
+ };
714
+ var DropdownList = (props) => {
715
+ const _a = props, {
716
+ valueIconName,
717
+ arrowIconName = defaultProps8.arrowIconName,
718
+ prefix,
719
+ suffix,
720
+ value,
721
+ placeholder,
722
+ size,
723
+ rounded,
724
+ fillMode,
725
+ hover,
726
+ focus,
727
+ valid,
728
+ invalid,
729
+ required,
730
+ loading,
731
+ disabled,
732
+ readonly,
733
+ showValue = defaultProps8.showValue,
734
+ popup,
735
+ opened
736
+ } = _a, other = __objRest(_a, [
737
+ "valueIconName",
738
+ "arrowIconName",
739
+ "prefix",
740
+ "suffix",
741
+ "value",
742
+ "placeholder",
743
+ "size",
744
+ "rounded",
745
+ "fillMode",
746
+ "hover",
747
+ "focus",
748
+ "valid",
749
+ "invalid",
750
+ "required",
751
+ "loading",
752
+ "disabled",
753
+ "readonly",
754
+ "showValue",
755
+ "popup",
756
+ "opened"
757
+ ]);
758
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
759
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
760
+ Picker,
761
+ __spreadProps(__spreadValues({}, other), {
762
+ size,
763
+ rounded,
764
+ fillMode,
765
+ hover,
766
+ focus,
767
+ valid,
768
+ invalid,
769
+ required,
770
+ loading,
771
+ disabled,
772
+ readonly,
773
+ className: classNames(
774
+ props.className,
775
+ DROPDOWNLIST_CLASSNAME,
776
+ {
777
+ "k-icon-picker": !showValue && valueIconName
778
+ }
779
+ ),
780
+ children: [
781
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(InputPrefix, { children: prefix }),
782
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
783
+ InputInnerSpan,
784
+ {
785
+ placeholder,
786
+ value,
787
+ showValue,
788
+ valueIconName
789
+ }
790
+ ),
791
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
792
+ InputValidationIcon,
793
+ {
794
+ valid,
795
+ invalid,
796
+ loading,
797
+ disabled
798
+ }
799
+ ),
800
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
801
+ InputLoadingIcon,
802
+ {
803
+ loading,
804
+ disabled
805
+ }
806
+ ),
807
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(InputSuffix, { children: suffix }),
808
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
809
+ Button,
810
+ {
811
+ className: "k-input-button",
812
+ icon: arrowIconName,
813
+ rounded: null,
814
+ size: props.size,
815
+ fillMode: props.fillMode
816
+ }
817
+ )
818
+ ]
819
+ })
820
+ ),
821
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Popup, { className: "k-dropdownlist-popup", children: popup })
822
+ ] });
823
+ };
824
+ DropdownList.states = states11;
825
+ DropdownList.options = options10;
826
+ DropdownList.className = DROPDOWNLIST_CLASSNAME;
827
+ DropdownList.defaultProps = defaultProps8;
828
+
829
+ // src/textbox/textbox.spec.tsx
830
+ var import_jsx_runtime15 = __require("react/jsx-runtime");
831
+ var TEXTBOX_CLASSNAME = `k-textbox`;
832
+ var states12 = [
833
+ States.hover,
834
+ States.focus,
835
+ States.valid,
836
+ States.invalid,
837
+ States.required,
838
+ States.disabled,
839
+ States.loading,
840
+ States.readonly
841
+ ];
842
+ var options11 = {
843
+ size: [Size.small, Size.medium, Size.large],
844
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
845
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
846
+ };
847
+ var defaultProps9 = {
848
+ showClearButton: true,
849
+ size: Input.defaultProps.size,
850
+ rounded: Input.defaultProps.rounded,
851
+ fillMode: Input.defaultProps.fillMode
852
+ };
853
+ var Textbox = (props) => {
854
+ const _a = props, {
855
+ prefix,
856
+ suffix,
857
+ value,
858
+ placeholder,
859
+ size,
860
+ rounded,
861
+ fillMode,
862
+ hover,
863
+ focus,
864
+ valid,
865
+ invalid,
866
+ required,
867
+ loading,
868
+ disabled,
869
+ readonly,
870
+ showClearButton = defaultProps9.showClearButton
871
+ } = _a, other = __objRest(_a, [
872
+ "prefix",
873
+ "suffix",
874
+ "value",
875
+ "placeholder",
876
+ "size",
877
+ "rounded",
878
+ "fillMode",
879
+ "hover",
880
+ "focus",
881
+ "valid",
882
+ "invalid",
883
+ "required",
884
+ "loading",
885
+ "disabled",
886
+ "readonly",
887
+ "showClearButton"
888
+ ]);
889
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
890
+ Input,
891
+ __spreadProps(__spreadValues({}, other), {
892
+ size,
893
+ rounded,
894
+ fillMode,
895
+ hover,
896
+ focus,
897
+ valid,
898
+ invalid,
899
+ required,
900
+ loading,
901
+ disabled,
902
+ readonly,
903
+ className: classNames(props.className, TEXTBOX_CLASSNAME),
904
+ children: [
905
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(InputPrefix, { children: prefix }),
906
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(InputInnerInput, { placeholder, value }),
907
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
908
+ InputValidationIcon,
909
+ {
910
+ valid,
911
+ invalid,
912
+ loading,
913
+ disabled
914
+ }
915
+ ),
916
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
917
+ InputLoadingIcon,
918
+ {
919
+ loading,
920
+ disabled
921
+ }
922
+ ),
923
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
924
+ InputClearValue,
925
+ {
926
+ loading,
927
+ disabled,
928
+ readonly,
929
+ value
930
+ }
931
+ ),
932
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(InputSuffix, { children: suffix })
933
+ ]
934
+ })
935
+ );
936
+ };
937
+ Textbox.states = states12;
938
+ Textbox.options = options11;
939
+ Textbox.className = TEXTBOX_CLASSNAME;
940
+ Textbox.defaultProps = defaultProps9;
941
+
942
+ // src/pager/pager.spec.tsx
943
+ var import_jsx_runtime16 = __require("react/jsx-runtime");
944
+ var PAGER_CLASSNAME = `k-pager`;
945
+ var states13 = [
946
+ States.focus,
947
+ States.disabled
948
+ ];
949
+ var options12 = {
950
+ size: [Size.small, Size.medium, Size.large]
951
+ };
952
+ var defaultProps10 = {
953
+ size: Size.medium,
954
+ mobile: null,
955
+ type: "numeric",
956
+ pageSizes: true,
957
+ refresh: true,
958
+ info: true
959
+ };
960
+ var Pager = (props) => {
961
+ const _a = props, {
962
+ size = defaultProps10.size,
963
+ mobile = defaultProps10.mobile,
964
+ type = defaultProps10.type,
965
+ pageSizes = defaultProps10.pageSizes,
966
+ refresh = defaultProps10.refresh,
967
+ info = defaultProps10.info,
968
+ focus,
969
+ disabled
970
+ } = _a, other = __objRest(_a, [
971
+ "size",
972
+ "mobile",
973
+ "type",
974
+ "pageSizes",
975
+ "refresh",
976
+ "info",
977
+ "focus",
978
+ "disabled"
979
+ ]);
980
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
981
+ "div",
982
+ __spreadProps(__spreadValues({}, other), {
983
+ className: classNames(
984
+ props.className,
985
+ PAGER_CLASSNAME,
986
+ optionClassNames(PAGER_CLASSNAME, {
987
+ size
988
+ }),
989
+ stateClassNames(PAGER_CLASSNAME, {
990
+ focus,
991
+ disabled
992
+ }),
993
+ {
994
+ "k-pager-mobile-md": mobile === "medium",
995
+ "k-pager-mobile-sm": mobile === "small"
996
+ }
997
+ ),
998
+ children: [
999
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1000
+ "div",
1001
+ {
1002
+ className: classNames(
1003
+ "k-pager-numbers-wrap"
1004
+ ),
1005
+ children: [
1006
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1007
+ Button,
1008
+ {
1009
+ className: classNames(
1010
+ "k-pager-nav",
1011
+ "k-pager-first"
1012
+ ),
1013
+ disabled: true,
1014
+ fillMode: "flat",
1015
+ size,
1016
+ rounded: null,
1017
+ icon: "caret-alt-to-left"
1018
+ }
1019
+ ),
1020
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1021
+ Button,
1022
+ {
1023
+ className: classNames(
1024
+ "k-pager-nav"
1025
+ ),
1026
+ focus: true,
1027
+ fillMode: "flat",
1028
+ size,
1029
+ rounded: null,
1030
+ icon: "caret-alt-left"
1031
+ }
1032
+ ),
1033
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1034
+ "select",
1035
+ {
1036
+ className: classNames(
1037
+ "k-picker",
1038
+ "k-picker-solid",
1039
+ "k-dropdown-list",
1040
+ "k-dropdown",
1041
+ "k-rounded-md",
1042
+ optionClassNames("k-picker", {
1043
+ size
1044
+ })
1045
+ ),
1046
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("option", { children: "1" })
1047
+ }
1048
+ ),
1049
+ type === "numeric" && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1050
+ "div",
1051
+ {
1052
+ className: classNames(
1053
+ "k-pager-numbers"
1054
+ ),
1055
+ children: [
1056
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1057
+ Button,
1058
+ {
1059
+ fillMode: "flat",
1060
+ themeColor: "primary",
1061
+ size,
1062
+ rounded: null,
1063
+ children: "1"
1064
+ }
1065
+ ),
1066
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1067
+ Button,
1068
+ {
1069
+ hover: true,
1070
+ fillMode: "flat",
1071
+ themeColor: "primary",
1072
+ size,
1073
+ rounded: null,
1074
+ children: "2"
1075
+ }
1076
+ ),
1077
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1078
+ Button,
1079
+ {
1080
+ focus: true,
1081
+ fillMode: "flat",
1082
+ themeColor: "primary",
1083
+ size,
1084
+ rounded: null,
1085
+ children: "3"
1086
+ }
1087
+ ),
1088
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1089
+ Button,
1090
+ {
1091
+ selected: true,
1092
+ fillMode: "flat",
1093
+ themeColor: "primary",
1094
+ size,
1095
+ rounded: null,
1096
+ children: "4"
1097
+ }
1098
+ ),
1099
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1100
+ Button,
1101
+ {
1102
+ hover: true,
1103
+ focus: true,
1104
+ fillMode: "flat",
1105
+ themeColor: "primary",
1106
+ size,
1107
+ rounded: null,
1108
+ children: "5"
1109
+ }
1110
+ ),
1111
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1112
+ Button,
1113
+ {
1114
+ selected: true,
1115
+ focus: true,
1116
+ fillMode: "flat",
1117
+ themeColor: "primary",
1118
+ size,
1119
+ rounded: null,
1120
+ children: "6"
1121
+ }
1122
+ )
1123
+ ]
1124
+ }
1125
+ ),
1126
+ type === "input" && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1127
+ "span",
1128
+ {
1129
+ className: classNames(
1130
+ "k-pager-input"
1131
+ ),
1132
+ children: [
1133
+ "Page",
1134
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Textbox, { showClearButton: false, size, value: "999" }),
1135
+ "of 8"
1136
+ ]
1137
+ }
1138
+ ),
1139
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1140
+ Button,
1141
+ {
1142
+ className: classNames(
1143
+ "k-pager-nav"
1144
+ ),
1145
+ hover: true,
1146
+ fillMode: "flat",
1147
+ size,
1148
+ rounded: null,
1149
+ icon: "caret-alt-right"
1150
+ }
1151
+ ),
1152
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1153
+ Button,
1154
+ {
1155
+ className: classNames(
1156
+ "k-pager-nav",
1157
+ "k-pager-last"
1158
+ ),
1159
+ fillMode: "flat",
1160
+ size,
1161
+ rounded: null,
1162
+ icon: "caret-alt-to-right"
1163
+ }
1164
+ )
1165
+ ]
1166
+ }
1167
+ ),
1168
+ pageSizes && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1169
+ "span",
1170
+ {
1171
+ className: classNames(
1172
+ "k-pager-sizes"
1173
+ ),
1174
+ children: [
1175
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DropdownList, { value: "20", size }),
1176
+ "items per page"
1177
+ ]
1178
+ }
1179
+ ),
1180
+ refresh && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1181
+ Button,
1182
+ {
1183
+ className: classNames(
1184
+ "k-pager-refresh"
1185
+ ),
1186
+ fillMode: "flat",
1187
+ size,
1188
+ rounded: null,
1189
+ icon: "arrow-rotate-cw"
1190
+ }
1191
+ ),
1192
+ info && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1193
+ "span",
1194
+ {
1195
+ className: classNames(
1196
+ "k-pager-info"
1197
+ ),
1198
+ children: "1 - 20 of 91 items"
1199
+ }
1200
+ )
1201
+ ]
1202
+ })
1203
+ );
1204
+ };
1205
+ Pager.states = states13;
1206
+ Pager.options = options12;
1207
+ Pager.className = PAGER_CLASSNAME;
1208
+ Pager.defaultProps = defaultProps10;
1209
+
1210
+ // src/grid/tests/grid-selection-aggregates.tsx
1211
+ var import_jsx_runtime17 = __require("react/jsx-runtime");
1212
+ var root = import_client.default.createRoot(
1213
+ document.getElementById("app")
1214
+ );
1215
+ root.render(
1216
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
1217
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "col-2", children: "Grid with selection aggregates container" }),
1218
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("section", { className: "col-2", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "k-grid k-grid-md k-grid-no-scrollbar", children: [
1219
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "k-grid-header", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "k-grid-header-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("table", { className: "k-table k-table-md k-grid-header-table", children: [
1220
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("colgroup", { children: [
1221
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("col", { style: { width: "100px" } }),
1222
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("col", {})
1223
+ ] }),
1224
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("thead", { className: "k-table-thead", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: "k-table-row", children: [
1225
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("th", { className: "k-table-th k-header", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-cell-inner", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-link", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-column-title", children: "100px" }) }) }) }),
1226
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("th", { className: "k-table-th k-header", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-cell-inner", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-link", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-column-title", children: "no width" }) }) }) })
1227
+ ] }) })
1228
+ ] }) }) }),
1229
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "k-grid-content", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("table", { className: "k-table k-table-md k-grid-table", children: [
1230
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("colgroup", { children: [
1231
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("col", { style: { width: "100px" } }),
1232
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("col", {})
1233
+ ] }),
1234
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tbody", { className: "k-table-tbody", children: [
1235
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: "k-table-row", children: [
1236
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td", children: "1" }),
1237
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td", children: "Row" })
1238
+ ] }),
1239
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: "k-table-row k-table-alt-row k-alt", children: [
1240
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td k-selected", children: "2" }),
1241
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td k-selected", children: "Alt row" })
1242
+ ] }),
1243
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: "k-table-row", children: [
1244
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td k-selected", children: "3" }),
1245
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td", children: "This text continues to the end of the grid to test overflow behavior of row contents, as well as line height and vertical alignment." })
1246
+ ] }),
1247
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: "k-table-row k-table-alt-row k-alt", children: [
1248
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td k-selected", children: "4" }),
1249
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-placeholder-line" }) })
1250
+ ] }),
1251
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: "k-table-row", children: [
1252
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td", children: "5" }),
1253
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-placeholder-line" }) })
1254
+ ] })
1255
+ ] })
1256
+ ] }) }),
1257
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "k-selection-aggregates k-grid-selection-aggregates", children: [
1258
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "k-selection-aggregates-item", children: [
1259
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-text", children: "Sum: " }),
1260
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-value", children: "9.00" })
1261
+ ] }),
1262
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "k-selection-aggregates-item", children: [
1263
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-text", children: "Avg: " }),
1264
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-value", children: "3.00" })
1265
+ ] }),
1266
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "k-selection-aggregates-item", children: [
1267
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-text", children: "Min: " }),
1268
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-value", children: "2.00" })
1269
+ ] }),
1270
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "k-selection-aggregates-item", children: [
1271
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-text", children: "Max: " }),
1272
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-value", children: "4.00" })
1273
+ ] }),
1274
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "k-selection-aggregates-item", children: [
1275
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-text", children: "Count: " }),
1276
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-value", children: "4" })
1277
+ ] })
1278
+ ] }),
1279
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Pager, { className: "k-grid-pager" })
1280
+ ] }) }),
1281
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "col-2", children: "Grid with selection aggregates container (RTL)" }),
1282
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("section", { className: "col-2 k-rtl", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "k-grid k-grid-md k-grid-no-scrollbar", children: [
1283
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "k-grid-header", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "k-grid-header-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("table", { className: "k-table k-table-md k-grid-header-table", children: [
1284
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("colgroup", { children: [
1285
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("col", { style: { width: "100px" } }),
1286
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("col", {})
1287
+ ] }),
1288
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("thead", { className: "k-table-thead", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: "k-table-row", children: [
1289
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("th", { className: "k-table-th k-header", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-cell-inner", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-link", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-column-title", children: "100px" }) }) }) }),
1290
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("th", { className: "k-table-th k-header", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-cell-inner", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-link", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-column-title", children: "no width" }) }) }) })
1291
+ ] }) })
1292
+ ] }) }) }),
1293
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "k-grid-content", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("table", { className: "k-table k-table-md k-grid-table", children: [
1294
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("colgroup", { children: [
1295
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("col", { style: { width: "100px" } }),
1296
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("col", {})
1297
+ ] }),
1298
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tbody", { className: "k-table-tbody", children: [
1299
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: "k-table-row", children: [
1300
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td", children: "1" }),
1301
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td", children: "Row" })
1302
+ ] }),
1303
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: "k-table-row k-table-alt-row k-alt", children: [
1304
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td k-selected", children: "2" }),
1305
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td k-selected", children: "Alt row" })
1306
+ ] }),
1307
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: "k-table-row", children: [
1308
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td k-selected", children: "3" }),
1309
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td", children: "This text continues to the end of the grid to test overflow behavior of row contents, as well as line height and vertical alignment." })
1310
+ ] }),
1311
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: "k-table-row k-table-alt-row k-alt", children: [
1312
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td k-selected", children: "4" }),
1313
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-placeholder-line" }) })
1314
+ ] }),
1315
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: "k-table-row", children: [
1316
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td", children: "5" }),
1317
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { className: "k-table-td", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-placeholder-line" }) })
1318
+ ] })
1319
+ ] })
1320
+ ] }) }),
1321
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "k-selection-aggregates k-grid-selection-aggregates", children: [
1322
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "k-selection-aggregates-item", children: [
1323
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-text", children: "Sum: " }),
1324
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-value", children: "9.00" })
1325
+ ] }),
1326
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "k-selection-aggregates-item", children: [
1327
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-text", children: "Avg: " }),
1328
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-value", children: "3.00" })
1329
+ ] }),
1330
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "k-selection-aggregates-item", children: [
1331
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-text", children: "Min: " }),
1332
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-value", children: "2.00" })
1333
+ ] }),
1334
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "k-selection-aggregates-item", children: [
1335
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-text", children: "Max: " }),
1336
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-value", children: "4.00" })
1337
+ ] }),
1338
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "k-selection-aggregates-item", children: [
1339
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-text", children: "Count: " }),
1340
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "k-selection-aggregates-item-value", children: "4" })
1341
+ ] })
1342
+ ] }),
1343
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Pager, { className: "k-grid-pager" })
1344
+ ] }) })
1345
+ ] }) })
1346
+ );
1347
+ })();
1348
+ //# sourceMappingURL=grid-selection-aggregates.js.map