@progress/kendo-themes-html 7.0.3-dev.1 → 7.0.3-dev.2
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.
- package/dist/cjs/dropzone/dropzone.spec.js +11 -9
- package/dist/cjs/dropzone/templates/dropzone-normal.js +4364 -0
- package/dist/cjs/dropzone/templates/dropzone-with-note.js +4370 -0
- package/dist/cjs/dropzone/tests/dropzone-states.js +4386 -0
- package/dist/cjs/dropzone/tests/dropzone.js +37 -19
- package/dist/cjs/index.js +1886 -1826
- package/dist/cjs/pdf-viewer/tests/pdf-viewer-blank-page.js +28 -21
- package/dist/cjs/spreadsheet/tests/spreadsheet-file-dialogs.js +34 -27
- package/dist/cjs/spreadsheet/tests/spreadsheet-insert-dialogs.js +68 -55
- package/dist/esm/dropzone/dropzone.spec.js +11 -9
- package/dist/esm/dropzone/templates/dropzone-normal.js +4348 -0
- package/dist/esm/dropzone/templates/dropzone-with-note.js +4354 -0
- package/dist/esm/dropzone/tests/dropzone-states.js +4370 -0
- package/dist/esm/dropzone/tests/dropzone.js +34 -16
- package/dist/esm/index.js +1879 -1819
- package/dist/esm/pdf-viewer/tests/pdf-viewer-blank-page.js +26 -19
- package/dist/esm/spreadsheet/tests/spreadsheet-file-dialogs.js +31 -24
- package/dist/esm/spreadsheet/tests/spreadsheet-insert-dialogs.js +63 -50
- package/dist/types/dropzone/dropzone.spec.d.ts +12 -3
- package/dist/types/dropzone/index.d.ts +2 -0
- package/dist/types/dropzone/templates/dropzone-normal.d.ts +1 -0
- package/dist/types/dropzone/templates/dropzone-with-note.d.ts +1 -0
- package/dist/types/dropzone/tests/dropzone-states.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
- package/src/dropzone/dropzone.spec.tsx +13 -5
- package/src/dropzone/index.ts +2 -0
- package/src/dropzone/templates/dropzone-normal.tsx +3 -0
- package/src/dropzone/templates/dropzone-with-note.tsx +7 -0
- package/src/dropzone/tests/dropzone-states.tsx +22 -0
- package/src/dropzone/tests/dropzone.tsx +11 -9
- package/src/index.ts +1 -1
- package/src/pdf-viewer/tests/pdf-viewer-blank-page.tsx +2 -2
- package/src/spreadsheet/tests/spreadsheet-file-dialogs.tsx +2 -2
- package/src/spreadsheet/tests/spreadsheet-insert-dialogs.tsx +2 -2
|
@@ -8219,13 +8219,14 @@ var states54 = [
|
|
|
8219
8219
|
];
|
|
8220
8220
|
var defaultProps48 = {
|
|
8221
8221
|
icon: "upload",
|
|
8222
|
-
|
|
8222
|
+
hint: "Drag and drop files here to upload"
|
|
8223
8223
|
};
|
|
8224
8224
|
var Dropzone = (props) => {
|
|
8225
8225
|
const {
|
|
8226
8226
|
hover,
|
|
8227
8227
|
icon = defaultProps48.icon,
|
|
8228
|
-
|
|
8228
|
+
hint = defaultProps48.hint,
|
|
8229
|
+
note,
|
|
8229
8230
|
...other
|
|
8230
8231
|
} = props;
|
|
8231
8232
|
return /* @__PURE__ */ jsx135(
|
|
@@ -8242,19 +8243,25 @@ var Dropzone = (props) => {
|
|
|
8242
8243
|
),
|
|
8243
8244
|
children: /* @__PURE__ */ jsxs58("div", { className: "k-dropzone-inner", children: [
|
|
8244
8245
|
icon && /* @__PURE__ */ jsx135(Icon, { icon, className: "k-dropzone-icon", size: "xxxlarge" }),
|
|
8245
|
-
/* @__PURE__ */ jsx135("span", { className: "k-dropzone-hint", children:
|
|
8246
|
-
note && /* @__PURE__ */
|
|
8247
|
-
" ",
|
|
8248
|
-
note,
|
|
8249
|
-
" "
|
|
8250
|
-
] })
|
|
8246
|
+
hint && /* @__PURE__ */ jsx135("span", { className: "k-dropzone-hint", children: hint }),
|
|
8247
|
+
note && /* @__PURE__ */ jsx135("span", { className: "k-dropzone-note", children: note })
|
|
8251
8248
|
] })
|
|
8252
8249
|
}
|
|
8253
8250
|
);
|
|
8254
8251
|
};
|
|
8252
|
+
Dropzone.states = states54;
|
|
8253
|
+
Dropzone.className = DROPZONE_CLASSNAME;
|
|
8254
|
+
Dropzone.defaultProps = defaultProps48;
|
|
8255
|
+
|
|
8256
|
+
// src/dropzone/templates/dropzone-normal.tsx
|
|
8257
|
+
import { jsx as jsx136 } from "react/jsx-runtime";
|
|
8258
|
+
var DropzoneNormal = (props) => /* @__PURE__ */ jsx136(Dropzone, { ...props });
|
|
8259
|
+
|
|
8260
|
+
// src/dropzone/templates/dropzone-with-note.tsx
|
|
8261
|
+
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
8255
8262
|
|
|
8256
8263
|
// src/pdf-viewer/tests/pdf-viewer-blank-page.tsx
|
|
8257
|
-
import { Fragment as Fragment35, jsx as
|
|
8264
|
+
import { Fragment as Fragment35, jsx as jsx138, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
8258
8265
|
var styles = `
|
|
8259
8266
|
#test-area .k-pdf-viewer {
|
|
8260
8267
|
height: 600px;
|
|
@@ -8264,18 +8271,18 @@ var styles = `
|
|
|
8264
8271
|
}
|
|
8265
8272
|
`;
|
|
8266
8273
|
var pdf_viewer_blank_page_default = () => /* @__PURE__ */ jsxs59(Fragment35, { children: [
|
|
8267
|
-
/* @__PURE__ */
|
|
8268
|
-
/* @__PURE__ */
|
|
8274
|
+
/* @__PURE__ */ jsx138("style", { children: styles }),
|
|
8275
|
+
/* @__PURE__ */ jsx138("div", { id: "test-area", className: "k-d-grid k-grid-cols-1", children: /* @__PURE__ */ jsxs59("div", { className: "k-widget k-pdf-viewer", children: [
|
|
8269
8276
|
/* @__PURE__ */ jsxs59(Toolbar, { resizable: true, children: [
|
|
8270
|
-
/* @__PURE__ */
|
|
8271
|
-
/* @__PURE__ */
|
|
8272
|
-
/* @__PURE__ */
|
|
8273
|
-
/* @__PURE__ */
|
|
8274
|
-
/* @__PURE__ */
|
|
8277
|
+
/* @__PURE__ */ jsx138(Pager, { type: "input", pageSizes: false, refresh: false, info: false }),
|
|
8278
|
+
/* @__PURE__ */ jsx138("span", { className: "k-spacer" }),
|
|
8279
|
+
/* @__PURE__ */ jsx138(Button, { fillMode: "flat", icon: "file-pdf" }),
|
|
8280
|
+
/* @__PURE__ */ jsx138(Button, { fillMode: "flat", icon: "print" }),
|
|
8281
|
+
/* @__PURE__ */ jsx138(Button, { fillMode: "flat", icon: "fullscreen" })
|
|
8275
8282
|
] }),
|
|
8276
|
-
/* @__PURE__ */
|
|
8277
|
-
/* @__PURE__ */
|
|
8278
|
-
/* @__PURE__ */
|
|
8283
|
+
/* @__PURE__ */ jsx138("div", { className: "k-canvas k-pdf-viewer-canvas k-pos-relative k-overflow-auto k-enable-text-select", children: /* @__PURE__ */ jsx138("div", { className: "k-pdf-viewer-pages", children: /* @__PURE__ */ jsxs59("div", { className: "k-page k-blank-page", children: [
|
|
8284
|
+
/* @__PURE__ */ jsx138(DropzoneNormal, {}),
|
|
8285
|
+
/* @__PURE__ */ jsx138(UploadNormal, { empty: true, status: "upload" })
|
|
8279
8286
|
] }) }) })
|
|
8280
8287
|
] }) })
|
|
8281
8288
|
] });
|
|
@@ -6300,13 +6300,14 @@ var states35 = [
|
|
|
6300
6300
|
];
|
|
6301
6301
|
var defaultProps30 = {
|
|
6302
6302
|
icon: "upload",
|
|
6303
|
-
|
|
6303
|
+
hint: "Drag and drop files here to upload"
|
|
6304
6304
|
};
|
|
6305
6305
|
var Dropzone = (props) => {
|
|
6306
6306
|
const {
|
|
6307
6307
|
hover,
|
|
6308
6308
|
icon = defaultProps30.icon,
|
|
6309
|
-
|
|
6309
|
+
hint = defaultProps30.hint,
|
|
6310
|
+
note,
|
|
6310
6311
|
...other
|
|
6311
6312
|
} = props;
|
|
6312
6313
|
return /* @__PURE__ */ jsx82(
|
|
@@ -6323,19 +6324,25 @@ var Dropzone = (props) => {
|
|
|
6323
6324
|
),
|
|
6324
6325
|
children: /* @__PURE__ */ jsxs40("div", { className: "k-dropzone-inner", children: [
|
|
6325
6326
|
icon && /* @__PURE__ */ jsx82(Icon, { icon, className: "k-dropzone-icon", size: "xxxlarge" }),
|
|
6326
|
-
/* @__PURE__ */ jsx82("span", { className: "k-dropzone-hint", children:
|
|
6327
|
-
note && /* @__PURE__ */
|
|
6328
|
-
" ",
|
|
6329
|
-
note,
|
|
6330
|
-
" "
|
|
6331
|
-
] })
|
|
6327
|
+
hint && /* @__PURE__ */ jsx82("span", { className: "k-dropzone-hint", children: hint }),
|
|
6328
|
+
note && /* @__PURE__ */ jsx82("span", { className: "k-dropzone-note", children: note })
|
|
6332
6329
|
] })
|
|
6333
6330
|
}
|
|
6334
6331
|
);
|
|
6335
6332
|
};
|
|
6333
|
+
Dropzone.states = states35;
|
|
6334
|
+
Dropzone.className = DROPZONE_CLASSNAME;
|
|
6335
|
+
Dropzone.defaultProps = defaultProps30;
|
|
6336
|
+
|
|
6337
|
+
// src/dropzone/templates/dropzone-normal.tsx
|
|
6338
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
6339
|
+
var DropzoneNormal = (props) => /* @__PURE__ */ jsx83(Dropzone, { ...props });
|
|
6340
|
+
|
|
6341
|
+
// src/dropzone/templates/dropzone-with-note.tsx
|
|
6342
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
|
6336
6343
|
|
|
6337
6344
|
// src/spreadsheet/tests/spreadsheet-file-dialogs.tsx
|
|
6338
|
-
import { Fragment as Fragment32, jsx as
|
|
6345
|
+
import { Fragment as Fragment32, jsx as jsx85, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
6339
6346
|
var style = `
|
|
6340
6347
|
.k-window {
|
|
6341
6348
|
min-width: 400px;
|
|
@@ -6343,25 +6350,25 @@ var style = `
|
|
|
6343
6350
|
}
|
|
6344
6351
|
`;
|
|
6345
6352
|
var spreadsheet_file_dialogs_default = () => /* @__PURE__ */ jsxs41(Fragment32, { children: [
|
|
6346
|
-
/* @__PURE__ */
|
|
6353
|
+
/* @__PURE__ */ jsx85("style", { children: style }),
|
|
6347
6354
|
/* @__PURE__ */ jsxs41("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
|
|
6348
|
-
/* @__PURE__ */
|
|
6349
|
-
/* @__PURE__ */
|
|
6350
|
-
/* @__PURE__ */
|
|
6351
|
-
] }), children: /* @__PURE__ */
|
|
6352
|
-
/* @__PURE__ */
|
|
6353
|
-
/* @__PURE__ */
|
|
6354
|
-
/* @__PURE__ */
|
|
6355
|
+
/* @__PURE__ */ jsx85("section", { children: /* @__PURE__ */ jsx85(WindowNormal, { title: "Create new file", actions: ["x"], className: "k-spreadsheet-window", actionButtonsAlign: "stretched", actionButtons: /* @__PURE__ */ jsxs41(Fragment32, { children: [
|
|
6356
|
+
/* @__PURE__ */ jsx85(Button, { themeColor: "primary", children: "Create new file" }),
|
|
6357
|
+
/* @__PURE__ */ jsx85(Button, { children: "Cancel" })
|
|
6358
|
+
] }), children: /* @__PURE__ */ jsx85("p", { children: "Are you sure you want to close this file without saving it and create a new one?" }) }) }),
|
|
6359
|
+
/* @__PURE__ */ jsx85("section", { children: /* @__PURE__ */ jsx85(WindowNormal, { title: "Save", actions: ["x"], className: "k-spreadsheet-window", actionButtonsAlign: "start", actionButtons: /* @__PURE__ */ jsxs41(Fragment32, { children: [
|
|
6360
|
+
/* @__PURE__ */ jsx85(Button, { themeColor: "primary", children: "Save" }),
|
|
6361
|
+
/* @__PURE__ */ jsx85(Button, { children: "Cancel" })
|
|
6355
6362
|
] }), children: /* @__PURE__ */ jsxs41(FormNormal, { formButtons: null, children: [
|
|
6356
|
-
/* @__PURE__ */
|
|
6357
|
-
/* @__PURE__ */
|
|
6363
|
+
/* @__PURE__ */ jsx85(FormField, { label: "File name", editor: /* @__PURE__ */ jsx85(Textbox, { placeholder: "Workbook" }) }),
|
|
6364
|
+
/* @__PURE__ */ jsx85(FormField, { label: "Save as type", editor: /* @__PURE__ */ jsx85(DropdownList, { placeholder: "Excel Workbook (.xlsx)" }) })
|
|
6358
6365
|
] }) }) }),
|
|
6359
|
-
/* @__PURE__ */
|
|
6360
|
-
/* @__PURE__ */
|
|
6361
|
-
/* @__PURE__ */
|
|
6366
|
+
/* @__PURE__ */ jsx85("section", { children: /* @__PURE__ */ jsxs41(WindowNormal, { title: "Open file", actions: ["x"], className: "k-spreadsheet-window", actionButtonsAlign: "start", actionButtons: /* @__PURE__ */ jsxs41(Fragment32, { children: [
|
|
6367
|
+
/* @__PURE__ */ jsx85(Button, { themeColor: "primary", children: "Open" }),
|
|
6368
|
+
/* @__PURE__ */ jsx85(Button, { children: "Cancel" })
|
|
6362
6369
|
] }), children: [
|
|
6363
|
-
/* @__PURE__ */
|
|
6364
|
-
/* @__PURE__ */
|
|
6370
|
+
/* @__PURE__ */ jsx85(DropzoneNormal, {}),
|
|
6371
|
+
/* @__PURE__ */ jsx85(UploadNormal, { status: "upload" })
|
|
6365
6372
|
] }) })
|
|
6366
6373
|
] })
|
|
6367
6374
|
] });
|
|
@@ -6374,13 +6374,14 @@ var states36 = [
|
|
|
6374
6374
|
];
|
|
6375
6375
|
var defaultProps31 = {
|
|
6376
6376
|
icon: "upload",
|
|
6377
|
-
|
|
6377
|
+
hint: "Drag and drop files here to upload"
|
|
6378
6378
|
};
|
|
6379
6379
|
var Dropzone = (props) => {
|
|
6380
6380
|
const {
|
|
6381
6381
|
hover,
|
|
6382
6382
|
icon = defaultProps31.icon,
|
|
6383
|
-
|
|
6383
|
+
hint = defaultProps31.hint,
|
|
6384
|
+
note,
|
|
6384
6385
|
...other
|
|
6385
6386
|
} = props;
|
|
6386
6387
|
return /* @__PURE__ */ jsx84(
|
|
@@ -6397,19 +6398,31 @@ var Dropzone = (props) => {
|
|
|
6397
6398
|
),
|
|
6398
6399
|
children: /* @__PURE__ */ jsxs40("div", { className: "k-dropzone-inner", children: [
|
|
6399
6400
|
icon && /* @__PURE__ */ jsx84(Icon, { icon, className: "k-dropzone-icon", size: "xxxlarge" }),
|
|
6400
|
-
/* @__PURE__ */ jsx84("span", { className: "k-dropzone-hint", children:
|
|
6401
|
-
note && /* @__PURE__ */
|
|
6402
|
-
" ",
|
|
6403
|
-
note,
|
|
6404
|
-
" "
|
|
6405
|
-
] })
|
|
6401
|
+
hint && /* @__PURE__ */ jsx84("span", { className: "k-dropzone-hint", children: hint }),
|
|
6402
|
+
note && /* @__PURE__ */ jsx84("span", { className: "k-dropzone-note", children: note })
|
|
6406
6403
|
] })
|
|
6407
6404
|
}
|
|
6408
6405
|
);
|
|
6409
6406
|
};
|
|
6407
|
+
Dropzone.states = states36;
|
|
6408
|
+
Dropzone.className = DROPZONE_CLASSNAME;
|
|
6409
|
+
Dropzone.defaultProps = defaultProps31;
|
|
6410
|
+
|
|
6411
|
+
// src/dropzone/templates/dropzone-normal.tsx
|
|
6412
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
6413
|
+
|
|
6414
|
+
// src/dropzone/templates/dropzone-with-note.tsx
|
|
6415
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
6416
|
+
var DropzoneWithNote = (props) => /* @__PURE__ */ jsx86(
|
|
6417
|
+
Dropzone,
|
|
6418
|
+
{
|
|
6419
|
+
note: "Only JPEG, PNG and SVG files are allowed.",
|
|
6420
|
+
...props
|
|
6421
|
+
}
|
|
6422
|
+
);
|
|
6410
6423
|
|
|
6411
6424
|
// src/listbox/listbox.spec.tsx
|
|
6412
|
-
import { jsx as
|
|
6425
|
+
import { jsx as jsx87, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
6413
6426
|
var LISTBOX_CLASSNAME = `k-listbox`;
|
|
6414
6427
|
var states37 = [
|
|
6415
6428
|
States.disabled
|
|
@@ -6450,7 +6463,7 @@ var ListBox = (props) => {
|
|
|
6450
6463
|
}
|
|
6451
6464
|
),
|
|
6452
6465
|
children: [
|
|
6453
|
-
actions && /* @__PURE__ */
|
|
6466
|
+
actions && /* @__PURE__ */ jsx87("div", { className: "k-listbox-actions", children: actions.map((action) => {
|
|
6454
6467
|
const actionsIconMap = {
|
|
6455
6468
|
"left": dir !== "rtl" ? "caret-alt-left" : "caret-alt-right",
|
|
6456
6469
|
"right": dir !== "rtl" ? "caret-alt-right" : "caret-alt-left",
|
|
@@ -6460,12 +6473,12 @@ var ListBox = (props) => {
|
|
|
6460
6473
|
"down": "caret-alt-down",
|
|
6461
6474
|
"x": "x"
|
|
6462
6475
|
};
|
|
6463
|
-
return /* @__PURE__ */
|
|
6476
|
+
return /* @__PURE__ */ jsx87(Button, { icon: actionsIconMap[action], size });
|
|
6464
6477
|
}) }),
|
|
6465
|
-
/* @__PURE__ */
|
|
6478
|
+
/* @__PURE__ */ jsx87("div", { className: classNames(
|
|
6466
6479
|
"k-list-scroller",
|
|
6467
6480
|
"k-selectable"
|
|
6468
|
-
), children: /* @__PURE__ */
|
|
6481
|
+
), children: /* @__PURE__ */ jsx87(list_spec_default, { size, children }) })
|
|
6469
6482
|
]
|
|
6470
6483
|
}
|
|
6471
6484
|
);
|
|
@@ -6476,10 +6489,10 @@ ListBox.className = LISTBOX_CLASSNAME;
|
|
|
6476
6489
|
ListBox.defaultProps = defaultProps32;
|
|
6477
6490
|
|
|
6478
6491
|
// src/listbox/templates/listbox-normal.tsx
|
|
6479
|
-
import { jsx as
|
|
6492
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
6480
6493
|
|
|
6481
6494
|
// src/spreadsheet/tests/spreadsheet-insert-dialogs.tsx
|
|
6482
|
-
import { Fragment as Fragment32, jsx as
|
|
6495
|
+
import { Fragment as Fragment32, jsx as jsx89, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
6483
6496
|
var style = `
|
|
6484
6497
|
.k-window {
|
|
6485
6498
|
min-width: 400px;
|
|
@@ -6487,49 +6500,49 @@ var style = `
|
|
|
6487
6500
|
}
|
|
6488
6501
|
`;
|
|
6489
6502
|
var spreadsheet_insert_dialogs_default = () => /* @__PURE__ */ jsxs42(Fragment32, { children: [
|
|
6490
|
-
/* @__PURE__ */
|
|
6503
|
+
/* @__PURE__ */ jsx89("style", { children: style }),
|
|
6491
6504
|
/* @__PURE__ */ jsxs42("div", { id: "test-area", className: "k-d-grid k-grid-cols-2", children: [
|
|
6492
|
-
/* @__PURE__ */
|
|
6493
|
-
/* @__PURE__ */
|
|
6494
|
-
/* @__PURE__ */
|
|
6495
|
-
/* @__PURE__ */
|
|
6496
|
-
/* @__PURE__ */
|
|
6497
|
-
] }), children: /* @__PURE__ */
|
|
6498
|
-
/* @__PURE__ */
|
|
6499
|
-
/* @__PURE__ */
|
|
6500
|
-
/* @__PURE__ */
|
|
6505
|
+
/* @__PURE__ */ jsx89("section", { children: /* @__PURE__ */ jsx89(WindowNormal, { title: "Insert comment", actions: ["x"], className: "k-spreadsheet-window", actionButtonsAlign: "start", actionButtons: /* @__PURE__ */ jsxs42(Fragment32, { children: [
|
|
6506
|
+
/* @__PURE__ */ jsx89(Button, { themeColor: "primary", children: "Insert" }),
|
|
6507
|
+
/* @__PURE__ */ jsx89(Button, { children: "Cancel" }),
|
|
6508
|
+
/* @__PURE__ */ jsx89("span", { className: "k-spacer" }),
|
|
6509
|
+
/* @__PURE__ */ jsx89(Button, { fillMode: "clear", themeColor: "primary", children: "Remove comment" })
|
|
6510
|
+
] }), children: /* @__PURE__ */ jsx89(FormNormal, { formButtons: null, children: /* @__PURE__ */ jsx89(FormField, { label: "Comment", editor: /* @__PURE__ */ jsx89(Textarea, {}) }) }) }) }),
|
|
6511
|
+
/* @__PURE__ */ jsx89("section", { children: /* @__PURE__ */ jsxs42(WindowNormal, { title: "Insert image", actions: ["x"], className: "k-spreadsheet-window", actionButtonsAlign: "start", actionButtons: /* @__PURE__ */ jsxs42(Fragment32, { children: [
|
|
6512
|
+
/* @__PURE__ */ jsx89(Button, { themeColor: "primary", children: "Insert" }),
|
|
6513
|
+
/* @__PURE__ */ jsx89(Button, { children: "Cancel" })
|
|
6501
6514
|
] }), children: [
|
|
6502
|
-
/* @__PURE__ */
|
|
6503
|
-
/* @__PURE__ */
|
|
6515
|
+
/* @__PURE__ */ jsx89(DropzoneWithNote, {}),
|
|
6516
|
+
/* @__PURE__ */ jsx89(UploadNormal, { status: "upload" })
|
|
6504
6517
|
] }) }),
|
|
6505
|
-
/* @__PURE__ */
|
|
6506
|
-
/* @__PURE__ */
|
|
6507
|
-
/* @__PURE__ */
|
|
6508
|
-
/* @__PURE__ */
|
|
6509
|
-
/* @__PURE__ */
|
|
6518
|
+
/* @__PURE__ */ jsx89("section", { children: /* @__PURE__ */ jsx89(WindowNormal, { title: "Insert Link", actions: ["x"], className: "k-spreadsheet-window", actionButtonsAlign: "start", actionButtons: /* @__PURE__ */ jsxs42(Fragment32, { children: [
|
|
6519
|
+
/* @__PURE__ */ jsx89(Button, { themeColor: "primary", children: "Insert" }),
|
|
6520
|
+
/* @__PURE__ */ jsx89(Button, { children: "Cancel" }),
|
|
6521
|
+
/* @__PURE__ */ jsx89("span", { className: "k-spacer" }),
|
|
6522
|
+
/* @__PURE__ */ jsx89(Button, { fillMode: "clear", themeColor: "primary", children: "Remove link" })
|
|
6510
6523
|
] }), children: /* @__PURE__ */ jsxs42(FormNormal, { formButtons: null, children: [
|
|
6511
|
-
/* @__PURE__ */
|
|
6512
|
-
/* @__PURE__ */
|
|
6524
|
+
/* @__PURE__ */ jsx89(FormField, { label: "Select link", editor: /* @__PURE__ */ jsx89(DropdownList, { value: "URL" }) }),
|
|
6525
|
+
/* @__PURE__ */ jsx89(FormField, { label: "URL address", editor: /* @__PURE__ */ jsx89(Textbox, { value: "Input value" }) })
|
|
6513
6526
|
] }) }) }),
|
|
6514
|
-
/* @__PURE__ */
|
|
6515
|
-
/* @__PURE__ */
|
|
6516
|
-
/* @__PURE__ */
|
|
6517
|
-
/* @__PURE__ */
|
|
6518
|
-
/* @__PURE__ */
|
|
6527
|
+
/* @__PURE__ */ jsx89("section", { children: /* @__PURE__ */ jsx89(WindowNormal, { title: "Insert Link", actions: ["x"], className: "k-spreadsheet-window", actionButtonsAlign: "start", actionButtons: /* @__PURE__ */ jsxs42(Fragment32, { children: [
|
|
6528
|
+
/* @__PURE__ */ jsx89(Button, { themeColor: "primary", children: "Insert" }),
|
|
6529
|
+
/* @__PURE__ */ jsx89(Button, { children: "Cancel" }),
|
|
6530
|
+
/* @__PURE__ */ jsx89("span", { className: "k-spacer" }),
|
|
6531
|
+
/* @__PURE__ */ jsx89(Button, { fillMode: "clear", themeColor: "primary", children: "Remove link" })
|
|
6519
6532
|
] }), children: /* @__PURE__ */ jsxs42(FormNormal, { formButtons: null, children: [
|
|
6520
|
-
/* @__PURE__ */
|
|
6521
|
-
/* @__PURE__ */
|
|
6522
|
-
/* @__PURE__ */
|
|
6523
|
-
/* @__PURE__ */
|
|
6524
|
-
/* @__PURE__ */
|
|
6525
|
-
/* @__PURE__ */
|
|
6526
|
-
/* @__PURE__ */
|
|
6533
|
+
/* @__PURE__ */ jsx89(FormField, { label: "Select link", editor: /* @__PURE__ */ jsx89(DropdownList, { value: "Internal" }) }),
|
|
6534
|
+
/* @__PURE__ */ jsx89(FormField, { label: "Cell reference", editor: /* @__PURE__ */ jsx89(Textbox, { value: "B3:B11" }) }),
|
|
6535
|
+
/* @__PURE__ */ jsx89(FormField, { label: "From sheet", editor: /* @__PURE__ */ jsxs42(ListBox, { style: { width: "100%" }, children: [
|
|
6536
|
+
/* @__PURE__ */ jsx89(ListItem, { children: "Sheet 1" }),
|
|
6537
|
+
/* @__PURE__ */ jsx89(ListItem, { children: "Sheet 2" }),
|
|
6538
|
+
/* @__PURE__ */ jsx89(ListItem, { children: "Sheet 3" }),
|
|
6539
|
+
/* @__PURE__ */ jsx89(ListItem, { children: "Sheet 4" })
|
|
6527
6540
|
] }) })
|
|
6528
6541
|
] }) }) }),
|
|
6529
|
-
/* @__PURE__ */
|
|
6530
|
-
/* @__PURE__ */
|
|
6531
|
-
/* @__PURE__ */
|
|
6532
|
-
] }), children: /* @__PURE__ */
|
|
6542
|
+
/* @__PURE__ */ jsx89("section", { children: /* @__PURE__ */ jsx89(WindowNormal, { title: "Insert Chart", actions: ["x"], className: "k-spreadsheet-window", actionButtonsAlign: "start", actionButtons: /* @__PURE__ */ jsxs42(Fragment32, { children: [
|
|
6543
|
+
/* @__PURE__ */ jsx89(Button, { themeColor: "primary", children: "Insert" }),
|
|
6544
|
+
/* @__PURE__ */ jsx89(Button, { children: "Cancel" })
|
|
6545
|
+
] }), children: /* @__PURE__ */ jsx89(FormNormal, { formButtons: null, children: /* @__PURE__ */ jsx89(FormField, { label: "Select chart type", editor: /* @__PURE__ */ jsx89(DropdownList, { value: "Donut" }) }) }) }) })
|
|
6533
6546
|
] })
|
|
6534
6547
|
] });
|
|
6535
6548
|
export {
|
|
@@ -2,10 +2,19 @@ export declare const DROPZONE_CLASSNAME = "k-external-dropzone";
|
|
|
2
2
|
declare const states: "hover"[];
|
|
3
3
|
export type KendoDropzoneProps = {
|
|
4
4
|
icon?: string;
|
|
5
|
-
|
|
5
|
+
hint?: string | boolean;
|
|
6
|
+
note?: string;
|
|
6
7
|
};
|
|
7
8
|
export type KendoDropzoneState = {
|
|
8
9
|
[K in (typeof states)[number]]?: boolean;
|
|
9
10
|
};
|
|
10
|
-
export declare const Dropzone:
|
|
11
|
-
|
|
11
|
+
export declare const Dropzone: {
|
|
12
|
+
(props: KendoDropzoneProps & KendoDropzoneState & React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
states: "hover"[];
|
|
14
|
+
className: string;
|
|
15
|
+
defaultProps: {
|
|
16
|
+
icon: string;
|
|
17
|
+
hint: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default Dropzone;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DropzoneNormal: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DropzoneWithNote: (props: any) => import("react/jsx-runtime").JSX.Element;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export * from './numerictextbox/index';
|
|
|
46
46
|
export * from './searchbox/index';
|
|
47
47
|
export * from './switch/index';
|
|
48
48
|
export * from './upload/index';
|
|
49
|
+
export * from './dropzone/index';
|
|
49
50
|
export * from './fab/index';
|
|
50
51
|
export * from './menu/index';
|
|
51
52
|
export * from './toolbar/index';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-themes-html",
|
|
3
3
|
"description": "A collection of HTML helpers used for developing Kendo UI themes",
|
|
4
|
-
"version": "7.0.3-dev.
|
|
4
|
+
"version": "7.0.3-dev.2",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/react": "^18.0.2"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "00fbdd430c74d792dadbb35dc7f15107c8973d09"
|
|
56
56
|
}
|
|
@@ -9,14 +9,15 @@ const states = [
|
|
|
9
9
|
|
|
10
10
|
export type KendoDropzoneProps = {
|
|
11
11
|
icon?: string;
|
|
12
|
-
|
|
12
|
+
hint?: string | boolean;
|
|
13
|
+
note?: string;
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
export type KendoDropzoneState = { [K in (typeof states)[number]]?: boolean };
|
|
16
17
|
|
|
17
18
|
const defaultProps = {
|
|
18
19
|
icon: "upload",
|
|
19
|
-
|
|
20
|
+
hint: "Drag and drop files here to upload",
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
export const Dropzone = (
|
|
@@ -27,7 +28,8 @@ export const Dropzone = (
|
|
|
27
28
|
const {
|
|
28
29
|
hover,
|
|
29
30
|
icon = defaultProps.icon,
|
|
30
|
-
|
|
31
|
+
hint = defaultProps.hint,
|
|
32
|
+
note,
|
|
31
33
|
...other
|
|
32
34
|
} = props;
|
|
33
35
|
|
|
@@ -45,9 +47,15 @@ export const Dropzone = (
|
|
|
45
47
|
>
|
|
46
48
|
<div className="k-dropzone-inner">
|
|
47
49
|
{icon && <Icon icon={icon} className="k-dropzone-icon" size={"xxxlarge"} />}
|
|
48
|
-
<span className="k-dropzone-hint">
|
|
49
|
-
{note && <span className="k-dropzone-note">
|
|
50
|
+
{hint && <span className="k-dropzone-hint">{hint}</span>}
|
|
51
|
+
{note && <span className="k-dropzone-note">{note}</span>}
|
|
50
52
|
</div>
|
|
51
53
|
</div>
|
|
52
54
|
);
|
|
53
55
|
};
|
|
56
|
+
|
|
57
|
+
Dropzone.states = states;
|
|
58
|
+
Dropzone.className = DROPZONE_CLASSNAME;
|
|
59
|
+
Dropzone.defaultProps = defaultProps;
|
|
60
|
+
|
|
61
|
+
export default Dropzone;
|
package/src/dropzone/index.ts
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Dropzone, DropzoneWithNote } from '..';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export default () =>(
|
|
5
|
+
<>
|
|
6
|
+
<div id="test-area" className="k-d-grid k-grid-cols-2">
|
|
7
|
+
|
|
8
|
+
{ [ "normal", ...Dropzone.states ].map((state) => (
|
|
9
|
+
<section>
|
|
10
|
+
<p>External dropzone {state}</p>
|
|
11
|
+
<DropzoneWithNote { ...{ [state]: true }}/>
|
|
12
|
+
</section>
|
|
13
|
+
))}
|
|
14
|
+
|
|
15
|
+
<section>
|
|
16
|
+
<p>External dropzone custom size</p>
|
|
17
|
+
<DropzoneWithNote style={{ height: "350px", width: "400px" }} />
|
|
18
|
+
</section>
|
|
19
|
+
|
|
20
|
+
</div>
|
|
21
|
+
</>
|
|
22
|
+
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DropzoneNormal, DropzoneWithNote } from '..';
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
export default () =>(
|
|
@@ -6,22 +6,24 @@ export default () =>(
|
|
|
6
6
|
<div id="test-area" className="k-d-grid k-grid-cols-2">
|
|
7
7
|
|
|
8
8
|
<section>
|
|
9
|
-
<p>External dropzone</p>
|
|
10
|
-
<
|
|
9
|
+
<p>External dropzone Empty</p>
|
|
10
|
+
<DropzoneNormal hint={false} />
|
|
11
11
|
</section>
|
|
12
12
|
|
|
13
13
|
<section>
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
<Dropzone hover />
|
|
14
|
+
<p>External dropzone with only Hint</p>
|
|
15
|
+
<DropzoneNormal />
|
|
17
16
|
</section>
|
|
18
17
|
|
|
19
18
|
<section>
|
|
20
|
-
|
|
21
|
-
<
|
|
22
|
-
<Dropzone style={{ height: "400px" }} />
|
|
19
|
+
<p>External dropzone with only Note</p>
|
|
20
|
+
<DropzoneWithNote hint={false} />
|
|
23
21
|
</section>
|
|
24
22
|
|
|
23
|
+
<section>
|
|
24
|
+
<p>External dropzone with Hind & Note</p>
|
|
25
|
+
<DropzoneWithNote />
|
|
26
|
+
</section>
|
|
25
27
|
</div>
|
|
26
28
|
</>
|
|
27
29
|
);
|
package/src/index.ts
CHANGED
|
@@ -60,7 +60,7 @@ export * from './numerictextbox/index';
|
|
|
60
60
|
export * from './searchbox/index';
|
|
61
61
|
export * from './switch/index';
|
|
62
62
|
export * from './upload/index';
|
|
63
|
-
|
|
63
|
+
export * from './dropzone/index';
|
|
64
64
|
|
|
65
65
|
// Command interfaces
|
|
66
66
|
export * from './fab/index';
|
|
@@ -2,7 +2,7 @@ import { Button } from '../../button';
|
|
|
2
2
|
import { UploadNormal } from '../../upload';
|
|
3
3
|
import { Toolbar } from '../../toolbar';
|
|
4
4
|
import { Pager } from '../../pager';
|
|
5
|
-
import {
|
|
5
|
+
import { DropzoneNormal } from '../../dropzone';
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
const styles = `
|
|
@@ -30,7 +30,7 @@ export default () =>(
|
|
|
30
30
|
<div className="k-canvas k-pdf-viewer-canvas k-pos-relative k-overflow-auto k-enable-text-select">
|
|
31
31
|
<div className="k-pdf-viewer-pages">
|
|
32
32
|
<div className="k-page k-blank-page">
|
|
33
|
-
<
|
|
33
|
+
<DropzoneNormal />
|
|
34
34
|
<UploadNormal empty status="upload"></UploadNormal>
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
@@ -4,7 +4,7 @@ import { FormNormal, FormField } from '../../form';
|
|
|
4
4
|
import { Textbox } from '../../textbox';
|
|
5
5
|
import { DropdownList } from '../../dropdownlist';
|
|
6
6
|
import { UploadNormal } from '../../upload';
|
|
7
|
-
import {
|
|
7
|
+
import { DropzoneNormal } from '../../dropzone';
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
const style = `
|
|
@@ -52,7 +52,7 @@ export default () =>(
|
|
|
52
52
|
<Button>Cancel</Button>
|
|
53
53
|
</>
|
|
54
54
|
}>
|
|
55
|
-
<
|
|
55
|
+
<DropzoneNormal />
|
|
56
56
|
|
|
57
57
|
<UploadNormal status="upload"/>
|
|
58
58
|
</WindowNormal>
|
|
@@ -4,7 +4,7 @@ import { Button } from '../../button';
|
|
|
4
4
|
import { FormNormal, FormField } from '../../form';
|
|
5
5
|
import { Textbox } from '../../textbox';
|
|
6
6
|
import { UploadNormal } from '../../upload';
|
|
7
|
-
import {
|
|
7
|
+
import { DropzoneWithNote } from '../../dropzone';
|
|
8
8
|
import { DropdownList } from '../../dropdownlist';
|
|
9
9
|
import { ListBox } from '../../listbox';
|
|
10
10
|
import { ListItem } from '../../list';
|
|
@@ -44,7 +44,7 @@ export default () =>(
|
|
|
44
44
|
<Button>Cancel</Button>
|
|
45
45
|
</>
|
|
46
46
|
}>
|
|
47
|
-
<
|
|
47
|
+
<DropzoneWithNote />
|
|
48
48
|
|
|
49
49
|
<UploadNormal status="upload"></UploadNormal>
|
|
50
50
|
</WindowNormal>
|