@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
@@ -204,7 +204,6 @@
204
204
  ActionButtons.options = options;
205
205
  ActionButtons.className = ACTIONBUTTONS_CLASSNAME;
206
206
  ActionButtons.defaultProps = defaultProps;
207
- var action_buttons_spec_default = ActionButtons;
208
207
 
209
208
  // src/icon/icon.spec.tsx
210
209
  var import_jsx_runtime2 = __require("react/jsx-runtime");
@@ -434,10 +433,7 @@
434
433
  "k-hidden": minimized
435
434
  }
436
435
  ), children: props.children }),
437
- actionButtons && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(ActionButtons, { alignment: actionButtonsAlign, className: "k-window-actions", children: [
438
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Button, { children: "Cancel" }),
439
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Button, { themeColor: "primary", children: "Update" })
440
- ] })
436
+ actionButtons && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ActionButtons, { alignment: actionButtonsAlign, className: "k-window-actions", children: actionButtons })
441
437
  ]
442
438
  })
443
439
  );
@@ -1130,401 +1126,816 @@
1130
1126
  Textbox.className = TEXTBOX_CLASSNAME;
1131
1127
  Textbox.defaultProps = defaultProps12;
1132
1128
 
1133
- // src/upload/upload-dropzone.tsx
1129
+ // src/popup/popup.spec.tsx
1134
1130
  var import_jsx_runtime19 = __require("react/jsx-runtime");
1135
- var UPLOADDROPZONE_CLASSNAME = `k-upload-dropzone`;
1136
- var states16 = [
1137
- States.hover
1138
- ];
1139
- var UploadDropzone = (props) => {
1140
- const _a = props, {
1141
- hover,
1142
- status
1143
- } = _a, other = __objRest(_a, [
1144
- "hover",
1145
- "status"
1146
- ]);
1147
- let statusMsg = /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jsx_runtime19.Fragment, {});
1148
- switch (status) {
1149
- case "uploading":
1150
- statusMsg = /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
1151
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { name: "upload" }),
1152
- "Uploading..."
1153
- ] });
1154
- break;
1155
- case "done":
1156
- statusMsg = /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
1157
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { name: "check" }),
1158
- "Done"
1159
- ] });
1160
- break;
1161
- case "failed":
1162
- statusMsg = /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
1163
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { name: "warning" }),
1164
- "Done"
1165
- ] });
1166
- break;
1167
- default:
1168
- statusMsg = /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jsx_runtime19.Fragment, {});
1169
- break;
1170
- }
1171
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
1172
- "div",
1173
- __spreadProps(__spreadValues({}, other), {
1174
- className: classNames(
1175
- props.className,
1176
- UPLOADDROPZONE_CLASSNAME,
1177
- "k-dropzone",
1178
- stateClassNames(UPLOADDROPZONE_CLASSNAME, {
1179
- hover
1180
- })
1181
- ),
1182
- children: [
1183
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "k-upload-button-wrap", children: [
1184
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { className: "k-upload-button", children: "Select files..." }),
1185
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("input", { id: "upload-input", className: "k-hidden" })
1186
- ] }),
1187
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1188
- "span",
1189
- {
1190
- className: classNames(
1191
- "k-dropzone-hint",
1192
- {
1193
- "k-hidden": status !== "upload"
1194
- }
1195
- ),
1196
- children: "Drop files here to upload"
1197
- }
1198
- ),
1199
- status !== "upload" && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "k-upload-status", children: statusMsg })
1200
- ]
1201
- })
1202
- );
1131
+ var POPUP_CLASSNAME = `k-popup`;
1132
+ var states16 = [];
1133
+ var options15 = {};
1134
+ var defaultProps13 = {};
1135
+ var Popup = (props) => {
1136
+ const other = __objRest(props, []);
1137
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", __spreadProps(__spreadValues({}, other), { className: classNames(props.className, POPUP_CLASSNAME), children: props.children }));
1203
1138
  };
1139
+ Popup.states = states16;
1140
+ Popup.options = options15;
1141
+ Popup.className = POPUP_CLASSNAME;
1142
+ Popup.defaultProps = defaultProps13;
1204
1143
 
1205
- // src/upload/upload.spec.tsx
1144
+ // src/dropdownlist/dropdownlist.spec.tsx
1206
1145
  var import_jsx_runtime20 = __require("react/jsx-runtime");
1207
- var UPLOAD_CLASSNAME = `k-upload`;
1146
+ var DROPDOWNLIST_CLASSNAME = `k-dropdownlist`;
1208
1147
  var states17 = [
1209
1148
  States.hover,
1210
- States.disabled
1149
+ States.focus,
1150
+ States.valid,
1151
+ States.invalid,
1152
+ States.required,
1153
+ States.disabled,
1154
+ States.loading,
1155
+ States.readonly
1211
1156
  ];
1212
- var options15 = {};
1213
- var defaultProps13 = {};
1214
- var Upload = (props) => {
1157
+ var options16 = {
1158
+ size: [Size.small, Size.medium, Size.large],
1159
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1160
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
1161
+ };
1162
+ var defaultProps14 = {
1163
+ showValue: true,
1164
+ arrowIconName: "arrow-s",
1165
+ size: Size.medium,
1166
+ rounded: Roundness.medium,
1167
+ fillMode: FillMode.solid
1168
+ };
1169
+ var DropdownList = (props) => {
1215
1170
  const _a = props, {
1216
- async,
1217
- empty,
1218
- actions,
1171
+ valueIconName,
1172
+ arrowIconName = defaultProps14.arrowIconName,
1173
+ prefix,
1174
+ suffix,
1175
+ value,
1176
+ placeholder,
1177
+ size,
1178
+ rounded,
1179
+ fillMode,
1219
1180
  hover,
1220
- status,
1221
- disabled
1181
+ focus,
1182
+ valid,
1183
+ invalid,
1184
+ required,
1185
+ loading,
1186
+ disabled,
1187
+ readonly,
1188
+ showValue = defaultProps14.showValue,
1189
+ popup,
1190
+ opened
1222
1191
  } = _a, other = __objRest(_a, [
1223
- "async",
1224
- "empty",
1225
- "actions",
1192
+ "valueIconName",
1193
+ "arrowIconName",
1194
+ "prefix",
1195
+ "suffix",
1196
+ "value",
1197
+ "placeholder",
1198
+ "size",
1199
+ "rounded",
1200
+ "fillMode",
1226
1201
  "hover",
1227
- "status",
1228
- "disabled"
1202
+ "focus",
1203
+ "valid",
1204
+ "invalid",
1205
+ "required",
1206
+ "loading",
1207
+ "disabled",
1208
+ "readonly",
1209
+ "showValue",
1210
+ "popup",
1211
+ "opened"
1229
1212
  ]);
1230
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1231
- "div",
1232
- __spreadProps(__spreadValues({}, other), {
1233
- className: classNames(
1234
- props.className,
1235
- UPLOAD_CLASSNAME,
1236
- stateClassNames(UPLOAD_CLASSNAME, {
1237
- disabled
1238
- }),
1239
- {
1240
- "k-upload-async": async,
1241
- "k-upload-empty": empty
1242
- }
1243
- ),
1244
- children: [
1245
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(UploadDropzone, { status, hover }),
1246
- props.children && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("ul", { className: "k-upload-files", children: props.children }),
1247
- actions && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(action_buttons_spec_default, { alignment: "end", orientation: "horizontal", children: [
1248
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { className: "k-clear-selected", children: "Clear" }),
1249
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { themeColor: "primary", className: "k-upload-selected", children: "Update" })
1250
- ] })
1251
- ]
1252
- })
1253
- );
1213
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
1214
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1215
+ Picker,
1216
+ __spreadProps(__spreadValues({}, other), {
1217
+ size,
1218
+ rounded,
1219
+ fillMode,
1220
+ hover,
1221
+ focus,
1222
+ valid,
1223
+ invalid,
1224
+ required,
1225
+ loading,
1226
+ disabled,
1227
+ readonly,
1228
+ className: classNames(
1229
+ props.className,
1230
+ DROPDOWNLIST_CLASSNAME,
1231
+ {
1232
+ "k-icon-picker": !showValue && valueIconName
1233
+ }
1234
+ ),
1235
+ children: [
1236
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InputPrefix, { children: prefix }),
1237
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1238
+ InputInnerSpan,
1239
+ {
1240
+ placeholder,
1241
+ value,
1242
+ showValue,
1243
+ valueIconName
1244
+ }
1245
+ ),
1246
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1247
+ InputValidationIcon,
1248
+ {
1249
+ valid,
1250
+ invalid,
1251
+ loading,
1252
+ disabled
1253
+ }
1254
+ ),
1255
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1256
+ InputLoadingIcon,
1257
+ {
1258
+ loading,
1259
+ disabled
1260
+ }
1261
+ ),
1262
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InputSuffix, { children: suffix }),
1263
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1264
+ Button,
1265
+ {
1266
+ className: "k-input-button",
1267
+ icon: arrowIconName,
1268
+ rounded: null,
1269
+ size: props.size,
1270
+ fillMode: props.fillMode
1271
+ }
1272
+ )
1273
+ ]
1274
+ })
1275
+ ),
1276
+ opened && popup && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Popup, { className: "k-dropdownlist-popup", children: popup })
1277
+ ] });
1254
1278
  };
1255
- Upload.states = states17;
1256
- Upload.options = options15;
1257
- Upload.className = UPLOAD_CLASSNAME;
1258
- Upload.defaultProps = defaultProps13;
1279
+ DropdownList.states = states17;
1280
+ DropdownList.options = options16;
1281
+ DropdownList.className = DROPDOWNLIST_CLASSNAME;
1282
+ DropdownList.defaultProps = defaultProps14;
1259
1283
 
1260
- // src/progressbar/progressbar.spec.tsx
1284
+ // src/calendar/calendar.spec.tsx
1261
1285
  var import_jsx_runtime21 = __require("react/jsx-runtime");
1262
- var PROGRESSBAR_CLASSNAME = `k-progressbar`;
1263
- var states18 = [
1264
- States.disabled,
1265
- States.indeterminate
1266
- ];
1267
- var options16 = {};
1268
- var defaultProps14 = {
1269
- indeterminate: false,
1270
- label: true,
1271
- labelPosition: "start",
1286
+ var CALENDAR_CLASSNAME = `k-calendar`;
1287
+ var states18 = [];
1288
+ var options17 = {
1289
+ size: [Size.small, Size.medium, Size.large]
1290
+ };
1291
+ var defaultProps15 = {
1292
+ size: Size.medium,
1293
+ viewsCount: 1,
1272
1294
  orientation: "horizontal",
1273
- reverse: false,
1274
- value: "0"
1295
+ calendarView: "month",
1296
+ calendarHeaderText: "October 2021"
1275
1297
  };
1276
- var ProgressBar = (props) => {
1298
+ var Calendar = (props) => {
1277
1299
  const _a = props, {
1278
- disabled,
1279
- height,
1280
- indeterminate = defaultProps14.indeterminate,
1281
- label = defaultProps14.label,
1282
- labelPosition = defaultProps14.labelPosition,
1283
- orientation = defaultProps14.orientation,
1284
- reverse = defaultProps14.reverse,
1285
- value = defaultProps14.value,
1286
- width
1300
+ size = defaultProps15.size,
1301
+ orientation = defaultProps15.orientation,
1302
+ calendarView = defaultProps15.calendarView,
1303
+ calendarHeaderText = defaultProps15.calendarHeaderText,
1304
+ viewsCount = defaultProps15.viewsCount,
1305
+ showWeek,
1306
+ showOtherMonth,
1307
+ showCalendarCaption,
1308
+ showCalendarFooter,
1309
+ selectedRange
1287
1310
  } = _a, other = __objRest(_a, [
1288
- "disabled",
1289
- "height",
1290
- "indeterminate",
1291
- "label",
1292
- "labelPosition",
1311
+ "size",
1293
1312
  "orientation",
1294
- "reverse",
1295
- "value",
1296
- "width"
1313
+ "calendarView",
1314
+ "calendarHeaderText",
1315
+ "viewsCount",
1316
+ "showWeek",
1317
+ "showOtherMonth",
1318
+ "showCalendarCaption",
1319
+ "showCalendarFooter",
1320
+ "selectedRange"
1297
1321
  ]);
1298
1322
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1299
1323
  "div",
1300
1324
  __spreadProps(__spreadValues({}, other), {
1301
1325
  className: classNames(
1302
1326
  props.className,
1303
- PROGRESSBAR_CLASSNAME,
1304
- stateClassNames(PROGRESSBAR_CLASSNAME, {
1305
- disabled
1327
+ CALENDAR_CLASSNAME,
1328
+ optionClassNames(CALENDAR_CLASSNAME, {
1329
+ size
1306
1330
  }),
1307
1331
  {
1308
- [`${PROGRESSBAR_CLASSNAME}-${orientation}`]: orientation,
1309
- [`${PROGRESSBAR_CLASSNAME}-indeterminate`]: indeterminate,
1310
- [`${PROGRESSBAR_CLASSNAME}-reverse`]: reverse
1332
+ "k-week-number": showWeek
1311
1333
  }
1312
1334
  ),
1313
- style: orientation === "horizontal" ? { "--kendo-progressbar-value": value, height } : { "--kendo-progressbar-value": value, width },
1314
1335
  children: [
1315
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: classNames(
1316
- "k-progress-status-wrap",
1336
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1337
+ CalendarHeader,
1317
1338
  {
1318
- [`k-progress-${labelPosition}`]: labelPosition && !indeterminate
1339
+ showToday: showCalendarFooter ? false : true,
1340
+ calendarHeaderText,
1341
+ orientation,
1342
+ size
1319
1343
  }
1320
- ), children: label && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: "k-progress-status", children: [
1321
- value,
1322
- "%"
1323
- ] }) }),
1324
- !indeterminate && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "k-progressbar-value k-selected", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: classNames(
1325
- "k-progress-status-wrap",
1344
+ ),
1345
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1346
+ CalendarView,
1326
1347
  {
1327
- [`k-progress-${labelPosition}`]: labelPosition
1348
+ calendarView,
1349
+ viewsCount,
1350
+ orientation,
1351
+ showWeek,
1352
+ showOtherMonth,
1353
+ showCalendarCaption,
1354
+ selectedRange
1328
1355
  }
1329
- ), children: label && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: "k-progress-status", children: [
1330
- props.value,
1331
- "%"
1332
- ] }) }) })
1356
+ ),
1357
+ showCalendarFooter && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CalendarFooter, {})
1333
1358
  ]
1334
1359
  })
1335
1360
  );
1336
1361
  };
1337
- ProgressBar.states = states18;
1338
- ProgressBar.options = options16;
1339
- ProgressBar.className = PROGRESSBAR_CLASSNAME;
1340
- ProgressBar.defaultProps = defaultProps14;
1362
+ Calendar.states = states18;
1363
+ Calendar.options = options17;
1364
+ Calendar.className = CALENDAR_CLASSNAME;
1365
+ Calendar.defaultProps = defaultProps15;
1341
1366
 
1342
- // src/progressbar/chunk-progressbar.spec.tsx
1367
+ // src/calendar/calendar-cell.tsx
1343
1368
  var import_jsx_runtime22 = __require("react/jsx-runtime");
1344
- var CHUNKPROGRESSBAR_CLASSNAME = `k-chunk-progressbar`;
1345
- var isSelected = (progress, index) => index <= progress - 1 ? true : false;
1346
1369
  var states19 = [
1347
- States.indeterminate
1370
+ States.hover,
1371
+ States.focus,
1372
+ States.active,
1373
+ States.selected,
1374
+ States.disabled
1348
1375
  ];
1349
- var options17 = {};
1350
- var defaultProps15 = {
1351
- chunkCount: 5,
1376
+ var CalendarCell = (props) => {
1377
+ const _a = props, {
1378
+ text,
1379
+ headerCell,
1380
+ today,
1381
+ weekend,
1382
+ otherMonth,
1383
+ showOtherMonth,
1384
+ weekCell,
1385
+ rangeStart,
1386
+ rangeMid,
1387
+ rangeEnd,
1388
+ hover,
1389
+ focus,
1390
+ active,
1391
+ selected,
1392
+ disabled
1393
+ } = _a, other = __objRest(_a, [
1394
+ "text",
1395
+ "headerCell",
1396
+ "today",
1397
+ "weekend",
1398
+ "otherMonth",
1399
+ "showOtherMonth",
1400
+ "weekCell",
1401
+ "rangeStart",
1402
+ "rangeMid",
1403
+ "rangeEnd",
1404
+ "hover",
1405
+ "focus",
1406
+ "active",
1407
+ "selected",
1408
+ "disabled"
1409
+ ]);
1410
+ const cellType = headerCell ? "th" : "td";
1411
+ const CALENDARCELL_CLASSNAME = `k-calendar-${cellType}`;
1412
+ const calendarCellClasses = [
1413
+ props.className,
1414
+ CALENDARCELL_CLASSNAME,
1415
+ stateClassNames(CALENDARCELL_CLASSNAME, {
1416
+ hover,
1417
+ focus,
1418
+ active,
1419
+ selected,
1420
+ disabled
1421
+ }),
1422
+ {
1423
+ "k-today": today,
1424
+ "k-weekend": weekend,
1425
+ "k-other-month": otherMonth,
1426
+ "k-alt": weekCell,
1427
+ "k-range-start": rangeStart,
1428
+ "k-range-mid": rangeMid,
1429
+ "k-range-end": rangeEnd
1430
+ }
1431
+ ];
1432
+ if (headerCell) {
1433
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("th", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: text }));
1434
+ }
1435
+ if (weekCell) {
1436
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("td", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: text }));
1437
+ }
1438
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("td", __spreadProps(__spreadValues({}, other), { className: classNames(calendarCellClasses), children: otherMonth && !showOtherMonth ? "" : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "k-link", children: text }) }));
1439
+ };
1440
+
1441
+ // src/calendar/calendar-header.tsx
1442
+ var import_jsx_runtime23 = __require("react/jsx-runtime");
1443
+ var className9 = `k-calendar-header`;
1444
+ var options18 = {
1445
+ size: [Size.small, Size.medium, Size.large]
1446
+ };
1447
+ var defaultProps16 = {
1448
+ calendarHeaderText: "October 2021",
1449
+ showToday: true,
1352
1450
  orientation: "horizontal",
1353
- progress: 0
1451
+ size: Size.medium
1354
1452
  };
1355
- var ChunkProgressBar = (props) => {
1453
+ var CalendarHeader = (props) => {
1356
1454
  const _a = props, {
1357
- chunkCount = defaultProps15.chunkCount,
1358
- indeterminate,
1359
- orientation = defaultProps15.orientation,
1360
- progress = defaultProps15.progress,
1361
- reverse
1455
+ calendarHeaderText = defaultProps16.calendarHeaderText,
1456
+ showToday = defaultProps16.showToday,
1457
+ orientation = defaultProps16.orientation,
1458
+ size = defaultProps16.size
1362
1459
  } = _a, other = __objRest(_a, [
1363
- "chunkCount",
1364
- "indeterminate",
1460
+ "calendarHeaderText",
1461
+ "showToday",
1365
1462
  "orientation",
1366
- "progress",
1367
- "reverse"
1463
+ "size"
1368
1464
  ]);
1369
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1465
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1370
1466
  "div",
1371
1467
  __spreadProps(__spreadValues({}, other), {
1372
1468
  className: classNames(
1373
1469
  props.className,
1374
- PROGRESSBAR_CLASSNAME,
1375
- CHUNKPROGRESSBAR_CLASSNAME,
1470
+ className9,
1376
1471
  {
1377
- [`${PROGRESSBAR_CLASSNAME}-${orientation}`]: orientation,
1378
- [`${PROGRESSBAR_CLASSNAME}-indeterminate`]: indeterminate,
1379
- [`${PROGRESSBAR_CLASSNAME}-reverse`]: reverse
1472
+ "k-vstack": orientation === "vertical"
1380
1473
  }
1381
1474
  ),
1382
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("ul", { className: "k-progressbar-chunks k-reset", children: [...Array(chunkCount)].map(
1383
- (_el, i) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("li", { className: classNames(
1384
- "k-progressbar-chunk",
1385
- {
1386
- "k-first": i === 0,
1387
- "k-last": i === [...Array(chunkCount)].length - 1,
1388
- "k-selected": isSelected(progress, i)
1389
- }
1390
- ) }, i)
1391
- ) })
1475
+ children: [
1476
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Button, { className: "k-calendar-title", text: calendarHeaderText, size, fillMode: "flat" }),
1477
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "k-spacer" }),
1478
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("span", { className: "k-calendar-nav", children: [
1479
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Button, { className: "k-calendar-nav-prev", icon: "arrow-chevron-left", size, fillMode: "flat" }),
1480
+ showToday && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Button, { size, fillMode: "flat", themeColor: "primary", className: "k-calendar-nav-today", children: "Today" }),
1481
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Button, { className: "k-calendar-nav-next", icon: "arrow-chevron-right", size, fillMode: "flat" })
1482
+ ] })
1483
+ ]
1392
1484
  })
1393
1485
  );
1394
1486
  };
1395
- ChunkProgressBar.states = states19;
1396
- ChunkProgressBar.options = options17;
1397
- ChunkProgressBar.className = CHUNKPROGRESSBAR_CLASSNAME;
1398
- ChunkProgressBar.defaultProps = defaultProps15;
1399
1487
 
1400
- // src/upload/upload-file-info.tsx
1401
- var import_jsx_runtime23 = __require("react/jsx-runtime");
1402
- var UPLOADFILEINFO_CLASSNAME = `k-file-info`;
1403
- var UploadFileInfo = (props) => {
1488
+ // src/calendar/calendar-footer.tsx
1489
+ var import_jsx_runtime24 = __require("react/jsx-runtime");
1490
+ var className10 = `k-calendar-footer`;
1491
+ var CalendarFooter = (props) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", __spreadProps(__spreadValues({}, props), { className: classNames(props.className, className10), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Button, { fillMode: "flat", themeColor: "primary", className: "k-calendar-nav-today", children: "Monday, October 29, 2021" }) }));
1492
+
1493
+ // src/calendar/calendar-table.tsx
1494
+ var import_jsx_runtime25 = __require("react/jsx-runtime");
1495
+ var CALENDARTABLE_CLASSNAME = `k-calendar-table`;
1496
+ var CalendarTable = (props) => {
1404
1497
  const _a = props, {
1405
- name,
1406
- size,
1407
- validationMsg
1498
+ calendarView,
1499
+ showOtherMonth,
1500
+ showWeek,
1501
+ showCalendarCaption,
1502
+ selectedRange
1408
1503
  } = _a, other = __objRest(_a, [
1409
- "name",
1410
- "size",
1411
- "validationMsg"
1504
+ "calendarView",
1505
+ "showOtherMonth",
1506
+ "showWeek",
1507
+ "showCalendarCaption",
1508
+ "selectedRange"
1412
1509
  ]);
1413
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1414
- "div",
1510
+ if (calendarView === "year") {
1511
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1512
+ "table",
1513
+ __spreadProps(__spreadValues({}, other), {
1514
+ className: classNames(
1515
+ props.className,
1516
+ CALENDARTABLE_CLASSNAME
1517
+ ),
1518
+ children: [
1519
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("caption", { className: "k-calendar-caption", children: "2022" }),
1520
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1521
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1522
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Jan" }),
1523
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Feb" }),
1524
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Mar" }),
1525
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Apr" })
1526
+ ] }),
1527
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1528
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "May" }),
1529
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Jun", hover: true }),
1530
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Jul", focus: true }),
1531
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Au", selected: true })
1532
+ ] }),
1533
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1534
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Sep" }),
1535
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Oct", today: true }),
1536
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Nov" }),
1537
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "Dec" })
1538
+ ] })
1539
+ ] })
1540
+ ]
1541
+ })
1542
+ );
1543
+ }
1544
+ if (calendarView === "decade") {
1545
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1546
+ "table",
1547
+ __spreadProps(__spreadValues({}, other), {
1548
+ className: classNames(
1549
+ props.className,
1550
+ CALENDARTABLE_CLASSNAME
1551
+ ),
1552
+ children: [
1553
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("caption", { className: "k-calendar-caption", children: "2020 - 2029" }),
1554
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1555
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1556
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { className: "k-out-of-range" }),
1557
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2020" }),
1558
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2021", today: true }),
1559
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2022" })
1560
+ ] }),
1561
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1562
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2023" }),
1563
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2024", hover: true }),
1564
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2025", focus: true }),
1565
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2026", selected: true })
1566
+ ] }),
1567
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1568
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2027" }),
1569
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2028" }),
1570
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2029" }),
1571
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { className: "k-out-of-range" })
1572
+ ] })
1573
+ ] })
1574
+ ]
1575
+ })
1576
+ );
1577
+ }
1578
+ if (calendarView === "century") {
1579
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1580
+ "table",
1581
+ __spreadProps(__spreadValues({}, other), {
1582
+ className: classNames(
1583
+ props.className,
1584
+ CALENDARTABLE_CLASSNAME
1585
+ ),
1586
+ children: [
1587
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("caption", { className: "k-calendar-caption", children: "2000 - 2099" }),
1588
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1589
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1590
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "1990 - 1999" }),
1591
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2000 - 2009" }),
1592
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2010 - 2019", today: true }),
1593
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2020 - 2029" })
1594
+ ] }),
1595
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1596
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2030 - 2039" }),
1597
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2040 - 2049", hover: true }),
1598
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2050 - 2059", focus: true }),
1599
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2060 - 2069", selected: true })
1600
+ ] }),
1601
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1602
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2070 - 2079" }),
1603
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2080 - 2089" }),
1604
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2090 - 2099" }),
1605
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { className: "k-out-of-range" })
1606
+ ] })
1607
+ ] })
1608
+ ]
1609
+ })
1610
+ );
1611
+ }
1612
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1613
+ "table",
1415
1614
  __spreadProps(__spreadValues({}, other), {
1416
1615
  className: classNames(
1417
1616
  props.className,
1418
- UPLOADFILEINFO_CLASSNAME
1617
+ CALENDARTABLE_CLASSNAME
1419
1618
  ),
1420
1619
  children: [
1421
- name && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "k-file-name", children: name }),
1422
- size && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "k-file-size", children: size }),
1423
- validationMsg && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "k-file-validation-message", children: validationMsg })
1620
+ showCalendarCaption && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("caption", { className: "k-calendar-caption", children: "October 2021" }),
1621
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarTableHead, { showWeek }),
1622
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tbody", { className: "k-calendar-tbody", children: [
1623
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1624
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "39", weekCell: true }),
1625
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "30", otherMonth: true, showOtherMonth }),
1626
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "1" }),
1627
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2" }),
1628
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "3" }),
1629
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "4" }),
1630
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "5" }),
1631
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "6", weekend: true })
1632
+ ] }),
1633
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1634
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "40", weekCell: true }),
1635
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "7", weekend: true }),
1636
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "8", hover: true }),
1637
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "9", focus: true }),
1638
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "10", selected: true }),
1639
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "11", hover: true, focus: true }),
1640
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "12", hover: true, selected: true }),
1641
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "13", weekend: true })
1642
+ ] }),
1643
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1644
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "41", weekCell: true }),
1645
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "14", weekend: true }),
1646
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "15" }),
1647
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "16", today: true }),
1648
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "17" }),
1649
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "18" }),
1650
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "19" }),
1651
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "20", weekend: true })
1652
+ ] }),
1653
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1654
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "42", weekCell: true }),
1655
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "21", weekend: true }),
1656
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "22" }),
1657
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "23" }),
1658
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "24" }),
1659
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "25", rangeStart: selectedRange, selected: selectedRange }),
1660
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "26", rangeMid: selectedRange }),
1661
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "27", weekend: true, rangeMid: selectedRange })
1662
+ ] }),
1663
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1664
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "43", weekCell: true }),
1665
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "28", weekend: true, rangeMid: selectedRange }),
1666
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "29", rangeEnd: selectedRange, focus: selectedRange, selected: selectedRange }),
1667
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "30" }),
1668
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "31" }),
1669
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "1", otherMonth: true, showOtherMonth }),
1670
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "2", otherMonth: true, showOtherMonth }),
1671
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "3", otherMonth: true, weekend: true, showOtherMonth })
1672
+ ] }),
1673
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "k-calendar-tr", children: [
1674
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "44", weekCell: true }),
1675
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "4", otherMonth: true, weekend: true, showOtherMonth }),
1676
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "5", otherMonth: true, showOtherMonth }),
1677
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "6", otherMonth: true, showOtherMonth }),
1678
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "7", otherMonth: true, showOtherMonth }),
1679
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "8", otherMonth: true, showOtherMonth }),
1680
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "9", otherMonth: true, showOtherMonth }),
1681
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CalendarCell, { text: "10", otherMonth: true, weekend: true, showOtherMonth })
1682
+ ] })
1683
+ ] })
1424
1684
  ]
1425
1685
  })
1426
1686
  );
1427
1687
  };
1428
1688
 
1429
- // src/upload/upload-file.tsx
1430
- var import_jsx_runtime24 = __require("react/jsx-runtime");
1431
- var UPLOADFILE_CLASSNAME = `k-file`;
1432
- var UploadFile = (props) => {
1689
+ // src/calendar/calendar-table-head.tsx
1690
+ var import_jsx_runtime26 = __require("react/jsx-runtime");
1691
+ var className11 = `k-calendar-thead`;
1692
+ var CalendarTableHead = (props) => {
1433
1693
  const _a = props, {
1434
- status,
1435
- progress,
1436
- name,
1437
- icon,
1438
- size,
1439
- state,
1440
- validationMsg
1694
+ showWeek
1441
1695
  } = _a, other = __objRest(_a, [
1442
- "status",
1443
- "progress",
1444
- "name",
1445
- "icon",
1446
- "size",
1447
- "state",
1448
- "validationMsg"
1696
+ "showWeek"
1449
1697
  ]);
1450
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1451
- "li",
1698
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1699
+ "thead",
1700
+ __spreadProps(__spreadValues({}, other), {
1701
+ className: classNames(props.className, className11),
1702
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("tr", { className: "k-calendar-tr", children: [
1703
+ showWeek && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CalendarCell, { weekCell: true, headerCell: true }),
1704
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CalendarCell, { text: "Su", headerCell: true }),
1705
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CalendarCell, { text: "Mo", headerCell: true }),
1706
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CalendarCell, { text: "Tu", headerCell: true }),
1707
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CalendarCell, { text: "We", headerCell: true }),
1708
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CalendarCell, { text: "Th", headerCell: true }),
1709
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CalendarCell, { text: "Fr", headerCell: true }),
1710
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CalendarCell, { text: "Sa", headerCell: true })
1711
+ ] })
1712
+ })
1713
+ );
1714
+ };
1715
+
1716
+ // src/calendar/calendar-view.tsx
1717
+ var import_jsx_runtime27 = __require("react/jsx-runtime");
1718
+ var className12 = `k-calendar-view`;
1719
+ var defaultProps17 = {
1720
+ viewsCount: 1,
1721
+ orientation: "horizontal",
1722
+ calendarView: "month"
1723
+ };
1724
+ var CalendarView = (props) => {
1725
+ const _a = props, {
1726
+ orientation = defaultProps17.orientation,
1727
+ calendarView = defaultProps17.calendarView,
1728
+ viewsCount = defaultProps17.viewsCount,
1729
+ showWeek,
1730
+ showOtherMonth,
1731
+ showCalendarCaption,
1732
+ selectedRange
1733
+ } = _a, other = __objRest(_a, [
1734
+ "orientation",
1735
+ "calendarView",
1736
+ "viewsCount",
1737
+ "showWeek",
1738
+ "showOtherMonth",
1739
+ "showCalendarCaption",
1740
+ "selectedRange"
1741
+ ]);
1742
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1743
+ "div",
1452
1744
  __spreadProps(__spreadValues({}, other), {
1453
1745
  className: classNames(
1454
1746
  props.className,
1455
- UPLOADFILE_CLASSNAME,
1747
+ className12,
1748
+ `k-calendar-${calendarView}view`,
1749
+ "k-align-items-start",
1750
+ "k-justify-content-center",
1456
1751
  {
1457
- [`k-file-${status}`]: status
1752
+ "k-hstack": orientation === "horizontal",
1753
+ "k-vstack": orientation === "vertical"
1458
1754
  }
1459
1755
  ),
1460
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "k-file-single", children: [
1461
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ProgressBar, { className: classNames(
1756
+ children: [...Array(viewsCount)].map(
1757
+ (_e, i) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1758
+ CalendarTable,
1462
1759
  {
1463
- "k-hidden": status !== "progress"
1464
- }
1465
- ), value: progress, label: false }),
1466
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { className: "k-file-icon-wrapper", children: [
1467
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon, { className: "k-file-icon", name: icon }),
1468
- state && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "k-file-state", children: state })
1469
- ] }),
1470
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(UploadFileInfo, { name, size, validationMsg }),
1471
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "k-upload-actions", children: status === "progress" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
1472
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { className: "k-upload-pct", children: [
1473
- progress,
1474
- "%"
1475
- ] }),
1476
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Button, { icon: "pause-sm", fillMode: "flat", className: "k-upload-action" }),
1477
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Button, { icon: "cancel", fillMode: "flat", className: "k-upload-action" })
1478
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Button, { icon: "close", fillMode: "flat", className: "k-upload-action" }) })
1479
- ] })
1760
+ calendarView,
1761
+ showWeek,
1762
+ showOtherMonth,
1763
+ showCalendarCaption,
1764
+ selectedRange
1765
+ },
1766
+ i
1767
+ )
1768
+ )
1480
1769
  })
1481
1770
  );
1482
1771
  };
1483
1772
 
1484
- // src/upload/upload-file-multiple.tsx
1485
- var import_jsx_runtime25 = __require("react/jsx-runtime");
1773
+ // src/datepicker/datepicker.spec.tsx
1774
+ var import_jsx_runtime28 = __require("react/jsx-runtime");
1775
+ var DATEPICKER_CLASSNAME = `k-datepicker`;
1776
+ var states20 = [
1777
+ States.hover,
1778
+ States.focus,
1779
+ States.valid,
1780
+ States.invalid,
1781
+ States.required,
1782
+ States.disabled,
1783
+ States.loading,
1784
+ States.readonly
1785
+ ];
1786
+ var options19 = {
1787
+ size: [Size.small, Size.medium, Size.large],
1788
+ rounded: [Roundness.small, Roundness.medium, Roundness.large, Roundness.full],
1789
+ fillMode: [FillMode.solid, FillMode.flat, FillMode.outline]
1790
+ };
1791
+ var defaultProps18 = {
1792
+ size: Input.defaultProps.size,
1793
+ rounded: Input.defaultProps.rounded,
1794
+ fillMode: Input.defaultProps.fillMode
1795
+ };
1796
+ var DatePicker = (props) => {
1797
+ const _a = props, {
1798
+ prefix,
1799
+ suffix,
1800
+ value,
1801
+ placeholder,
1802
+ size,
1803
+ rounded,
1804
+ fillMode,
1805
+ hover,
1806
+ focus,
1807
+ valid,
1808
+ invalid,
1809
+ required,
1810
+ loading,
1811
+ disabled,
1812
+ readonly,
1813
+ opened
1814
+ } = _a, other = __objRest(_a, [
1815
+ "prefix",
1816
+ "suffix",
1817
+ "value",
1818
+ "placeholder",
1819
+ "size",
1820
+ "rounded",
1821
+ "fillMode",
1822
+ "hover",
1823
+ "focus",
1824
+ "valid",
1825
+ "invalid",
1826
+ "required",
1827
+ "loading",
1828
+ "disabled",
1829
+ "readonly",
1830
+ "opened"
1831
+ ]);
1832
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
1833
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1834
+ Input,
1835
+ __spreadProps(__spreadValues({}, other), {
1836
+ size,
1837
+ rounded,
1838
+ fillMode,
1839
+ hover,
1840
+ focus,
1841
+ valid,
1842
+ invalid,
1843
+ required,
1844
+ loading,
1845
+ disabled,
1846
+ readonly,
1847
+ className: classNames(props.className, DATEPICKER_CLASSNAME),
1848
+ children: [
1849
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InputPrefix, { children: prefix }),
1850
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InputInnerInput, { placeholder, value }),
1851
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1852
+ InputValidationIcon,
1853
+ {
1854
+ valid,
1855
+ invalid,
1856
+ loading,
1857
+ disabled
1858
+ }
1859
+ ),
1860
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1861
+ InputLoadingIcon,
1862
+ {
1863
+ loading,
1864
+ disabled
1865
+ }
1866
+ ),
1867
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1868
+ InputClearValue,
1869
+ {
1870
+ loading,
1871
+ disabled,
1872
+ readonly,
1873
+ value
1874
+ }
1875
+ ),
1876
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InputSuffix, { children: suffix }),
1877
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1878
+ Button,
1879
+ {
1880
+ className: "k-input-button",
1881
+ icon: "calendar",
1882
+ rounded: null,
1883
+ size,
1884
+ fillMode
1885
+ }
1886
+ )
1887
+ ]
1888
+ })
1889
+ ),
1890
+ opened && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Popup, { className: "k-datepicker-popup", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Calendar, {}) })
1891
+ ] });
1892
+ };
1893
+ DatePicker.states = states20;
1894
+ DatePicker.options = options19;
1895
+ DatePicker.className = DATEPICKER_CLASSNAME;
1896
+ DatePicker.defaultProps = defaultProps18;
1486
1897
 
1487
1898
  // src/form/fieldset.tsx
1488
- var import_jsx_runtime26 = __require("react/jsx-runtime");
1899
+ var import_jsx_runtime29 = __require("react/jsx-runtime");
1489
1900
  var FIELDSET_CLASSNAME = "k-form-fieldset";
1490
1901
  var Fieldset = (props) => {
1491
1902
  const {
1492
1903
  legend
1493
1904
  } = props;
1494
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("fieldset", { className: classNames(FIELDSET_CLASSNAME), children: [
1495
- legend && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("legend", { className: "k-form-legend", children: legend }),
1905
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("fieldset", { className: classNames(FIELDSET_CLASSNAME), children: [
1906
+ legend && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("legend", { className: "k-form-legend", children: legend }),
1496
1907
  props.children
1497
1908
  ] });
1498
1909
  };
1499
1910
  Fieldset.className = FIELDSET_CLASSNAME;
1500
1911
 
1501
1912
  // src/form/form.spec.tsx
1502
- var import_jsx_runtime27 = __require("react/jsx-runtime");
1913
+ var import_jsx_runtime30 = __require("react/jsx-runtime");
1503
1914
  var FORM_CLASSNAME = "k-form";
1504
- var states20 = [];
1505
- var options18 = {
1915
+ var states21 = [];
1916
+ var options20 = {
1506
1917
  size: [Size.small, Size.medium, Size.large]
1507
1918
  };
1508
- var defaultProps16 = {
1919
+ var defaultProps19 = {
1509
1920
  size: Size.medium,
1510
1921
  layout: "basic",
1511
1922
  tag: "form"
1512
1923
  };
1513
1924
  var Form = (props) => {
1514
1925
  const {
1515
- size = defaultProps16.size,
1926
+ size = defaultProps19.size,
1516
1927
  orientation,
1517
- layout = defaultProps16.layout,
1928
+ layout = defaultProps19.layout,
1518
1929
  formButtons,
1519
1930
  legend,
1520
1931
  cols,
1521
1932
  gapX,
1522
1933
  gapY,
1523
- tag = defaultProps16.tag
1934
+ tag = defaultProps19.tag
1524
1935
  } = props;
1525
1936
  const ConditionalWrapper = ({ condition, wrapper, children }) => condition ? wrapper(children) : children;
1526
- const Parent = ({ tag: tag2, className: className9, children }) => tag2 === "form" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("form", { className: className9, children }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: className9, children });
1527
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Parent, { tag, className: classNames(
1937
+ const Parent = ({ tag: tag2, className: className13, children }) => tag2 === "form" ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("form", { className: className13, children }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: className13, children });
1938
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Parent, { tag, className: classNames(
1528
1939
  props.className,
1529
1940
  FORM_CLASSNAME,
1530
1941
  optionClassNames(FORM_CLASSNAME, {
@@ -1534,11 +1945,11 @@
1534
1945
  [`${FORM_CLASSNAME}-${orientation}`]: orientation
1535
1946
  }
1536
1947
  ), children: [
1537
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1948
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1538
1949
  ConditionalWrapper,
1539
1950
  {
1540
1951
  condition: layout === "grid",
1541
- wrapper: (children) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Fieldset, { legend, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: classNames(
1952
+ wrapper: (children) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Fieldset, { legend, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: classNames(
1542
1953
  "k-form-layout",
1543
1954
  "k-d-grid",
1544
1955
  {
@@ -1550,18 +1961,18 @@
1550
1961
  children: props.children
1551
1962
  }
1552
1963
  ),
1553
- formButtons && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "k-form-buttons", children: formButtons })
1964
+ formButtons && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "k-form-buttons", children: formButtons })
1554
1965
  ] });
1555
1966
  };
1556
- Form.states = states20;
1557
- Form.options = options18;
1967
+ Form.states = states21;
1968
+ Form.options = options20;
1558
1969
  Form.className = FORM_CLASSNAME;
1559
- Form.defaultProps = defaultProps16;
1970
+ Form.defaultProps = defaultProps19;
1560
1971
 
1561
1972
  // src/form/form-field.tsx
1562
- var import_jsx_runtime28 = __require("react/jsx-runtime");
1973
+ var import_jsx_runtime31 = __require("react/jsx-runtime");
1563
1974
  var FORMFIELD_CLASSNAME = "k-form-field";
1564
- var states21 = [
1975
+ var states22 = [
1565
1976
  States.disabled
1566
1977
  ];
1567
1978
  var FormField = (props) => {
@@ -1575,7 +1986,7 @@
1575
1986
  disabled,
1576
1987
  dir
1577
1988
  } = props;
1578
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1989
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1579
1990
  "div",
1580
1991
  {
1581
1992
  className: classNames(
@@ -1585,7 +1996,7 @@
1585
1996
  ),
1586
1997
  dir,
1587
1998
  children: [
1588
- label && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("label", { className: classNames(
1999
+ label && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("label", { className: classNames(
1589
2000
  "k-label",
1590
2001
  "k-form-label",
1591
2002
  {
@@ -1593,13 +2004,13 @@
1593
2004
  }
1594
2005
  ), children: [
1595
2006
  label,
1596
- optional && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "k-label-optional", children: "(Optional)" }),
1597
- info && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "k-field-info", children: "(field info)" })
2007
+ optional && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "k-label-optional", children: "(Optional)" }),
2008
+ info && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "k-field-info", children: "(field info)" })
1598
2009
  ] }),
1599
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "k-form-field-wrap", children: [
2010
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "k-form-field-wrap", children: [
1600
2011
  editor,
1601
- hint && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "k-form-hint", children: hint }),
1602
- error && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "k-form-error", children: error })
2012
+ hint && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-form-hint", children: hint }),
2013
+ error && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "k-form-error", children: error })
1603
2014
  ] })
1604
2015
  ]
1605
2016
  }
@@ -1608,7 +2019,7 @@
1608
2019
  FormField.className = FORMFIELD_CLASSNAME;
1609
2020
 
1610
2021
  // src/grid/tests/grid-editing-popup.tsx
1611
- var import_jsx_runtime29 = __require("react/jsx-runtime");
2022
+ var import_jsx_runtime32 = __require("react/jsx-runtime");
1612
2023
  var root = import_client.default.createRoot(
1613
2024
  document.getElementById("app")
1614
2025
  );
@@ -1617,50 +2028,25 @@
1617
2028
  width: 500px;
1618
2029
  }
1619
2030
  .k-window {
1620
- width: 100%;
2031
+ min-width: 400px;
1621
2032
  position: relative;
1622
2033
  }
1623
2034
  `;
1624
2035
  root.render(
1625
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
1626
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("style", { children: styles }),
1627
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { id: "test-area", className: "k-d-grid k-grid-cols-1", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Window, { title: "Edit", actions: ["close"], actionButtons: true, actionButtonsAlign: "end", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Form, { tag: "div", orientation: "horizontal", children: [
1628
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(FormField, { label: "Product Name", editor: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Textbox, { value: "Chai" }) }),
1629
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1630
- FormField,
1631
- {
1632
- label: "Unit Price",
1633
- editor: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
1634
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(NumericTextbox, {}),
1635
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "k-tooltip k-tooltip-error k-validator-tooltip k-invalid-msg", children: [
1636
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon, { className: "k-tooltip-icon", name: "warning" }),
1637
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "k-tooltip-content", children: "Unit Price is required" }),
1638
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "k-callout k-callout-n" })
1639
- ] })
1640
- ] })
1641
- }
1642
- ),
1643
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(FormField, { label: "Units In Stock", editor: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(NumericTextbox, {}) }),
1644
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(FormField, { label: "Discontinued", editor: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
1645
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Checkbox, { id: "Discontinued" }),
1646
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("label", { className: "k-checkbox-label", children: "\u200B" })
2036
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
2037
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("style", { children: styles }),
2038
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { id: "test-area", className: "k-d-grid k-grid-cols-1", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Window, { title: "Edit task", actions: ["minimize", "maximize", "close"], actionButtonsAlign: "start", actionButtons: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
2039
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { themeColor: "primary", icon: "save", children: "Save" }),
2040
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { icon: "cancel", children: "Cancel" })
2041
+ ] }), children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Form, { tag: "div", orientation: "vertical", children: [
2042
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(FormField, { className: "k-form-field-error", label: "Text data field label", error: "Error", editor: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Textbox, { value: "Invalid", invalid: true, showClearButton: true }) }),
2043
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(FormField, { label: "Date data field label", editor: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DatePicker, { placeholder: "dd/MM/yyyy" }) }),
2044
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(FormField, { label: "Numeric data field label", editor: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(NumericTextbox, { placeholder: "##,###" }) }),
2045
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(FormField, { label: " ", editor: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
2046
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Checkbox, { checked: true }),
2047
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { className: "k-checkbox-label", children: "Boolean data field label" })
1647
2048
  ] }) }),
1648
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1649
- FormField,
1650
- {
1651
- label: "Files",
1652
- editor: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Upload, { async: true, status: "done", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1653
- UploadFile,
1654
- {
1655
- progress: "100",
1656
- status: "success",
1657
- name: "67409197_2322469807839836_4126207508270284800_n.png",
1658
- icon: "file-image",
1659
- size: "24.34 KB"
1660
- }
1661
- ) })
1662
- }
1663
- )
2049
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(FormField, { label: "Boolean data field label", editor: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DropdownList, { value: "True" }) })
1664
2050
  ] }) }) }) })
1665
2051
  ] })
1666
2052
  );