@progress/kendo-react-spreadsheet 7.2.4-develop.3 → 7.3.0-develop.1
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/FormulaInput.js +8 -0
- package/FormulaInput.mjs +109 -0
- package/List.js +8 -0
- package/List.mjs +34 -0
- package/NameBox.js +8 -0
- package/NameBox.mjs +109 -0
- package/SheetsBar.js +8 -0
- package/SheetsBar.mjs +211 -0
- package/Spreadsheet.js +8 -0
- package/Spreadsheet.mjs +227 -0
- package/dist/cdn/js/kendo-react-spreadsheet.js +8 -5
- package/index.d.mts +715 -5
- package/index.d.ts +715 -8
- package/index.js +8 -5
- package/index.mjs +77 -1355
- package/messages.js +8 -0
- package/messages.mjs +115 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +11 -11
- package/tools/adjustDecimals.js +8 -0
- package/tools/adjustDecimals.mjs +49 -0
- package/tools/align.js +8 -0
- package/tools/align.mjs +95 -0
- package/tools/backgroundColor.js +8 -0
- package/tools/backgroundColor.mjs +23 -0
- package/tools/bold.js +8 -0
- package/tools/bold.mjs +16 -0
- package/tools/cleanFormat.js +8 -0
- package/tools/cleanFormat.mjs +32 -0
- package/tools/defaultTools.js +8 -0
- package/tools/defaultTools.mjs +77 -0
- package/tools/export.js +8 -0
- package/tools/export.mjs +37 -0
- package/tools/fontFamily.js +8 -0
- package/tools/fontFamily.mjs +40 -0
- package/tools/fontSize.js +8 -0
- package/tools/fontSize.mjs +89 -0
- package/tools/format.js +8 -0
- package/tools/format.mjs +45 -0
- package/tools/gridLines.js +8 -0
- package/tools/gridLines.mjs +44 -0
- package/tools/italic.js +8 -0
- package/tools/italic.mjs +16 -0
- package/tools/open.js +8 -0
- package/tools/open.mjs +55 -0
- package/tools/redo.js +8 -0
- package/tools/redo.mjs +16 -0
- package/tools/tableTools.js +8 -0
- package/tools/tableTools.mjs +96 -0
- package/tools/textColor.js +8 -0
- package/tools/textColor.mjs +23 -0
- package/tools/textWrap.js +8 -0
- package/tools/textWrap.mjs +44 -0
- package/tools/underline.js +8 -0
- package/tools/underline.mjs +16 -0
- package/tools/undo.js +8 -0
- package/tools/undo.mjs +16 -0
- package/tools/utils.js +8 -0
- package/tools/utils.mjs +97 -0
- package/FormulaInput.d.ts +0 -9
- package/List.d.ts +0 -9
- package/NameBox.d.ts +0 -9
- package/SheetsBar.d.ts +0 -8
- package/Spreadsheet.d.ts +0 -51
- package/SpreadsheetProps.d.ts +0 -192
- package/messages.d.ts +0 -114
- package/package-metadata.d.ts +0 -9
- package/tools/adjustDecimals.d.ts +0 -24
- package/tools/align.d.ts +0 -48
- package/tools/backgroundColor.d.ts +0 -14
- package/tools/bold.d.ts +0 -14
- package/tools/cleanFormat.d.ts +0 -15
- package/tools/defaultTools.d.ts +0 -9
- package/tools/export.d.ts +0 -15
- package/tools/fontFamily.d.ts +0 -15
- package/tools/fontSize.d.ts +0 -43
- package/tools/format.d.ts +0 -15
- package/tools/gridLines.d.ts +0 -19
- package/tools/index.d.ts +0 -23
- package/tools/italic.d.ts +0 -14
- package/tools/open.d.ts +0 -15
- package/tools/redo.d.ts +0 -14
- package/tools/tableTools.d.ts +0 -68
- package/tools/textColor.d.ts +0 -14
- package/tools/textWrap.d.ts +0 -19
- package/tools/underline.d.ts +0 -14
- package/tools/undo.d.ts +0 -14
- package/tools/utils.d.ts +0 -95
package/messages.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="spreadsheet.bold",t="spreadsheet.italic",s="spreadsheet.underline",o="spreadsheet.openFile",n="spreadsheet.textColor",a="spreadsheet.background",r="spreadsheet.addRowAbove",d="spreadsheet.addRowBelow",l="spreadsheet.addColumnLeft",i="spreadsheet.addColumnRight",c="spreadsheet.deleteRow",p="spreadsheet.deleteColumn",h="spreadsheet.undo",g="spreadsheet.redo",m="spreadsheet.fontSize",f="spreadsheet.fontSizeIncrease",u="spreadsheet.fontSizeDecrease",y="spreadsheet.fontName",x="spreadsheet.cleanFormatting",A="spreadsheet.format",b="spreadsheet.alignHorizontally",w="spreadsheet.alignVertically",C="spreadsheet.align",S="spreadsheet.alignLeft",z="spreadsheet.alignRight",D="spreadsheet.alignCenter",R="spreadsheet.center",T="spreadsheet.alignJustify",B="spreadsheet.justify",F="spreadsheet.alignTop",N="spreadsheet.alignMiddle",k="spreadsheet.alignBottom",M="spreadsheet.increaseDecimal",I="spreadsheet.decreaseDecimal",L="spreadsheet.textWrap",v="spreadsheet.gridLines",E="spreadsheet.exportToExcel",U="spreadsheet.nameBox",j="spreadsheet.defaultSheetName",H="spreadsheet.home",J="spreadsheet.file",O="spreadsheet.insert",P="spreadsheet.formatTab",W="spreadsheet.addNewSheet",V="spreadsheet.error",K="spreadsheet.ok",q="spreadsheet.modifyMerged",G="spreadsheet.cannotModifyDisabled",Q="spreadsheet.openUnsupported",X="spreadsheet.duplicateSheetName",Y={[e]:"Bold",[t]:"Italic",[s]:"Underline",[h]:"Undo",[g]:"Redo",[m]:"Font size",[f]:"Increase Font size",[u]:"Decrease Font size",[y]:"Font",[x]:"Clean formatting",[A]:"Custom format...",[b]:"Align horizontally",[w]:"Align vertically",[C]:"Align",[S]:"Align left",[z]:"Align right",[D]:"Align center",[T]:"Align justify",[R]:"Center",[B]:"Justify",[F]:"Align top",[N]:"Align middle",[k]:"Align bottom",[M]:"Increase decimal",[I]:"Decrease decimal",[n]:"Text Color",[a]:"Background color",[r]:"Add row above",[d]:"Add row below",[l]:"Add column left",[i]:"Add column right",[c]:"Delete row",[p]:"Delete column",[o]:"Open...",[E]:"Export to Excel",[L]:"Text Wrap",[v]:"Toggle gridlines",[U]:"Name Box",[j]:"Sheet",[H]:"Home",[J]:"File",[O]:"Insert",[W]:"Add new sheet",[P]:"Format",[q]:"Cannot change part of a merged cell.",[G]:"Cannot modify disabled cells.",[Q]:"Unsupported format. Please select an .xlsx file.",[X]:"There is an existing sheet with this name. Please enter another name.",[V]:"Error",[K]:"OK"},Z={bold:e,italic:t,underline:s,undo:h,redo:g,fontSize:m,fontSizeIncrease:f,fontSizeDecrease:u,fontName:y,cleanFormatting:x,format:A,alignHorizontally:b,alignVertically:w,align:C,alignLeft:S,alignRight:z,alignCenter:D,center:R,alignJustify:T,justify:B,alignTop:F,alignMiddle:N,alignBottom:k,increaseDecimal:M,decreaseDecimal:I,textColor:n,background:a,addRowAbove:r,addRowBelow:d,addColumnLeft:l,addColumnRight:i,deleteRow:c,deleteColumn:p,open:o,exportToExcel:E,textWrap:L,gridLines:v,nameBox:U,defaultSheetName:j,file:J,home:H,insert:O,addNewSheet:W,error:V,ok:K,modifyMerged:q,cannotModifyDisabled:G,openUnsupported:Q,duplicateSheetName:X,formatTab:P};exports.keys=Z;exports.messages=Y;
|
package/messages.mjs
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
const e = "spreadsheet.bold", t = "spreadsheet.italic", s = "spreadsheet.underline", o = "spreadsheet.openFile", n = "spreadsheet.textColor", a = "spreadsheet.background", r = "spreadsheet.addRowAbove", d = "spreadsheet.addRowBelow", l = "spreadsheet.addColumnLeft", i = "spreadsheet.addColumnRight", c = "spreadsheet.deleteRow", p = "spreadsheet.deleteColumn", h = "spreadsheet.undo", g = "spreadsheet.redo", m = "spreadsheet.fontSize", f = "spreadsheet.fontSizeIncrease", u = "spreadsheet.fontSizeDecrease", x = "spreadsheet.fontName", y = "spreadsheet.cleanFormatting", A = "spreadsheet.format", w = "spreadsheet.alignHorizontally", C = "spreadsheet.alignVertically", b = "spreadsheet.align", S = "spreadsheet.alignLeft", z = "spreadsheet.alignRight", D = "spreadsheet.alignCenter", R = "spreadsheet.center", T = "spreadsheet.alignJustify", B = "spreadsheet.justify", F = "spreadsheet.alignTop", N = "spreadsheet.alignMiddle", k = "spreadsheet.alignBottom", I = "spreadsheet.increaseDecimal", L = "spreadsheet.decreaseDecimal", M = "spreadsheet.textWrap", E = "spreadsheet.gridLines", U = "spreadsheet.exportToExcel", v = "spreadsheet.nameBox", j = "spreadsheet.defaultSheetName", H = "spreadsheet.home", J = "spreadsheet.file", W = "spreadsheet.insert", O = "spreadsheet.formatTab", P = "spreadsheet.addNewSheet", V = "spreadsheet.error", K = "spreadsheet.ok", q = "spreadsheet.modifyMerged", G = "spreadsheet.cannotModifyDisabled", Q = "spreadsheet.openUnsupported", X = "spreadsheet.duplicateSheetName", Y = {
|
|
10
|
+
[e]: "Bold",
|
|
11
|
+
[t]: "Italic",
|
|
12
|
+
[s]: "Underline",
|
|
13
|
+
[h]: "Undo",
|
|
14
|
+
[g]: "Redo",
|
|
15
|
+
[m]: "Font size",
|
|
16
|
+
[f]: "Increase Font size",
|
|
17
|
+
[u]: "Decrease Font size",
|
|
18
|
+
[x]: "Font",
|
|
19
|
+
[y]: "Clean formatting",
|
|
20
|
+
[A]: "Custom format...",
|
|
21
|
+
[w]: "Align horizontally",
|
|
22
|
+
[C]: "Align vertically",
|
|
23
|
+
[b]: "Align",
|
|
24
|
+
[S]: "Align left",
|
|
25
|
+
[z]: "Align right",
|
|
26
|
+
[D]: "Align center",
|
|
27
|
+
[T]: "Align justify",
|
|
28
|
+
[R]: "Center",
|
|
29
|
+
[B]: "Justify",
|
|
30
|
+
[F]: "Align top",
|
|
31
|
+
[N]: "Align middle",
|
|
32
|
+
[k]: "Align bottom",
|
|
33
|
+
[I]: "Increase decimal",
|
|
34
|
+
[L]: "Decrease decimal",
|
|
35
|
+
[n]: "Text Color",
|
|
36
|
+
[a]: "Background color",
|
|
37
|
+
[r]: "Add row above",
|
|
38
|
+
[d]: "Add row below",
|
|
39
|
+
[l]: "Add column left",
|
|
40
|
+
[i]: "Add column right",
|
|
41
|
+
[c]: "Delete row",
|
|
42
|
+
[p]: "Delete column",
|
|
43
|
+
[o]: "Open...",
|
|
44
|
+
[U]: "Export to Excel",
|
|
45
|
+
[M]: "Text Wrap",
|
|
46
|
+
[E]: "Toggle gridlines",
|
|
47
|
+
[v]: "Name Box",
|
|
48
|
+
[j]: "Sheet",
|
|
49
|
+
[H]: "Home",
|
|
50
|
+
[J]: "File",
|
|
51
|
+
[W]: "Insert",
|
|
52
|
+
[P]: "Add new sheet",
|
|
53
|
+
[O]: "Format",
|
|
54
|
+
[q]: "Cannot change part of a merged cell.",
|
|
55
|
+
[G]: "Cannot modify disabled cells.",
|
|
56
|
+
[Q]: "Unsupported format. Please select an .xlsx file.",
|
|
57
|
+
[X]: "There is an existing sheet with this name. Please enter another name.",
|
|
58
|
+
[V]: "Error",
|
|
59
|
+
[K]: "OK"
|
|
60
|
+
}, Z = {
|
|
61
|
+
bold: e,
|
|
62
|
+
italic: t,
|
|
63
|
+
underline: s,
|
|
64
|
+
undo: h,
|
|
65
|
+
redo: g,
|
|
66
|
+
fontSize: m,
|
|
67
|
+
fontSizeIncrease: f,
|
|
68
|
+
fontSizeDecrease: u,
|
|
69
|
+
fontName: x,
|
|
70
|
+
cleanFormatting: y,
|
|
71
|
+
format: A,
|
|
72
|
+
alignHorizontally: w,
|
|
73
|
+
alignVertically: C,
|
|
74
|
+
align: b,
|
|
75
|
+
alignLeft: S,
|
|
76
|
+
alignRight: z,
|
|
77
|
+
alignCenter: D,
|
|
78
|
+
center: R,
|
|
79
|
+
alignJustify: T,
|
|
80
|
+
justify: B,
|
|
81
|
+
alignTop: F,
|
|
82
|
+
alignMiddle: N,
|
|
83
|
+
alignBottom: k,
|
|
84
|
+
increaseDecimal: I,
|
|
85
|
+
decreaseDecimal: L,
|
|
86
|
+
textColor: n,
|
|
87
|
+
background: a,
|
|
88
|
+
addRowAbove: r,
|
|
89
|
+
addRowBelow: d,
|
|
90
|
+
addColumnLeft: l,
|
|
91
|
+
addColumnRight: i,
|
|
92
|
+
deleteRow: c,
|
|
93
|
+
deleteColumn: p,
|
|
94
|
+
open: o,
|
|
95
|
+
exportToExcel: U,
|
|
96
|
+
textWrap: M,
|
|
97
|
+
gridLines: E,
|
|
98
|
+
nameBox: v,
|
|
99
|
+
defaultSheetName: j,
|
|
100
|
+
file: J,
|
|
101
|
+
home: H,
|
|
102
|
+
insert: W,
|
|
103
|
+
addNewSheet: P,
|
|
104
|
+
error: V,
|
|
105
|
+
ok: K,
|
|
106
|
+
modifyMerged: q,
|
|
107
|
+
cannotModifyDisabled: G,
|
|
108
|
+
openUnsupported: Q,
|
|
109
|
+
duplicateSheetName: X,
|
|
110
|
+
formatTab: O
|
|
111
|
+
};
|
|
112
|
+
export {
|
|
113
|
+
Z as keys,
|
|
114
|
+
Y as messages
|
|
115
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-spreadsheet",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1683639393,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"};exports.packageMetadata=e;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
const e = {
|
|
10
|
+
name: "@progress/kendo-react-spreadsheet",
|
|
11
|
+
productName: "KendoReact",
|
|
12
|
+
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
+
publishDate: 1709715754,
|
|
14
|
+
version: "",
|
|
15
|
+
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
e as packageMetadata
|
|
19
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-spreadsheet",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0-develop.1",
|
|
4
4
|
"description": "KendoReact Spreadsheet package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"@progress/kendo-file-saver": "^1.1.1",
|
|
30
30
|
"@progress/kendo-licensing": "^1.3.4",
|
|
31
31
|
"@progress/kendo-ooxml": "^1.7.0",
|
|
32
|
-
"@progress/kendo-react-buttons": "7.
|
|
33
|
-
"@progress/kendo-react-common": "7.
|
|
34
|
-
"@progress/kendo-react-dialogs": "7.
|
|
35
|
-
"@progress/kendo-react-dropdowns": "7.
|
|
36
|
-
"@progress/kendo-react-inputs": "7.
|
|
37
|
-
"@progress/kendo-react-intl": "7.
|
|
38
|
-
"@progress/kendo-react-layout": "7.
|
|
39
|
-
"@progress/kendo-react-popup": "7.
|
|
40
|
-
"@progress/kendo-react-sortable": "7.
|
|
41
|
-
"@progress/kendo-react-upload": "7.
|
|
32
|
+
"@progress/kendo-react-buttons": "7.3.0-develop.1",
|
|
33
|
+
"@progress/kendo-react-common": "7.3.0-develop.1",
|
|
34
|
+
"@progress/kendo-react-dialogs": "7.3.0-develop.1",
|
|
35
|
+
"@progress/kendo-react-dropdowns": "7.3.0-develop.1",
|
|
36
|
+
"@progress/kendo-react-inputs": "7.3.0-develop.1",
|
|
37
|
+
"@progress/kendo-react-intl": "7.3.0-develop.1",
|
|
38
|
+
"@progress/kendo-react-layout": "7.3.0-develop.1",
|
|
39
|
+
"@progress/kendo-react-popup": "7.3.0-develop.1",
|
|
40
|
+
"@progress/kendo-react-sortable": "7.3.0-develop.1",
|
|
41
|
+
"@progress/kendo-react-upload": "7.3.0-develop.1",
|
|
42
42
|
"@progress/kendo-spreadsheet-common": "v1.1.1",
|
|
43
43
|
"@progress/kendo-svg-icons": "^2.1.0",
|
|
44
44
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),D=require("@progress/kendo-react-buttons"),I=require("@progress/kendo-react-intl"),a=require("../messages.js"),o=require("@progress/kendo-svg-icons");function p(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const i=p(f),l=e=>t=>{const{icon:n,svgIcon:u,titleKey:s,value:m}=e,{spreadsheetRef:r}=t,d=i.useCallback(()=>{if(r.current){const g={command:"AdjustDecimalsCommand",options:{value:m}};r.current.executeCommand(g)}},[]);return i.createElement(D.Button,{type:"button",icon:n,svgIcon:u,fillMode:"flat",onClick:d,title:I.useLocalization().toLanguageString(s,a.messages[s])})},y=l({icon:o.decimalIncreaseIcon.name,svgIcon:o.decimalIncreaseIcon,value:1,titleKey:a.keys.increaseDecimal}),b=l({icon:o.decimalDecreaseIcon.name,svgIcon:o.decimalDecreaseIcon,value:-1,titleKey:a.keys.decreaseDecimal});exports.DecreaseDecimal=b;exports.IncreaseDecimal=y;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as t from "react";
|
|
10
|
+
import { Button as f } from "@progress/kendo-react-buttons";
|
|
11
|
+
import { useLocalization as D } from "@progress/kendo-react-intl";
|
|
12
|
+
import { keys as a, messages as g } from "../messages.mjs";
|
|
13
|
+
import { decimalIncreaseIcon as c, decimalDecreaseIcon as n } from "@progress/kendo-svg-icons";
|
|
14
|
+
const s = (i) => (m) => {
|
|
15
|
+
const { icon: r, svgIcon: l, titleKey: e, value: u } = i, { spreadsheetRef: o } = m, d = t.useCallback(() => {
|
|
16
|
+
if (o.current) {
|
|
17
|
+
const p = {
|
|
18
|
+
command: "AdjustDecimalsCommand",
|
|
19
|
+
options: { value: u }
|
|
20
|
+
};
|
|
21
|
+
o.current.executeCommand(p);
|
|
22
|
+
}
|
|
23
|
+
}, []);
|
|
24
|
+
return /* @__PURE__ */ t.createElement(
|
|
25
|
+
f,
|
|
26
|
+
{
|
|
27
|
+
type: "button",
|
|
28
|
+
icon: r,
|
|
29
|
+
svgIcon: l,
|
|
30
|
+
fillMode: "flat",
|
|
31
|
+
onClick: d,
|
|
32
|
+
title: D().toLanguageString(e, g[e])
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}, K = s({
|
|
36
|
+
icon: c.name,
|
|
37
|
+
svgIcon: c,
|
|
38
|
+
value: 1,
|
|
39
|
+
titleKey: a.increaseDecimal
|
|
40
|
+
}), b = s({
|
|
41
|
+
icon: n.name,
|
|
42
|
+
svgIcon: n,
|
|
43
|
+
value: -1,
|
|
44
|
+
titleKey: a.decreaseDecimal
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
b as DecreaseDecimal,
|
|
48
|
+
K as IncreaseDecimal
|
|
49
|
+
};
|
package/tools/align.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),p=require("@progress/kendo-react-buttons"),v=require("@progress/kendo-react-common"),a=require("@progress/kendo-svg-icons"),I=require("@progress/kendo-react-intl"),t=require("../messages.js");function K(n){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const c in n)if(c!=="default"){const s=Object.getOwnPropertyDescriptor(n,c);Object.defineProperty(i,c,s.get?s:{enumerable:!0,get:()=>n[c]})}}return i.default=n,Object.freeze(i)}const g=K(N),r=[{icon:"align-left",svgIcon:a.alignLeftIcon,textKey:t.keys.alignLeft,commandName:"textAlign",value:"left",selected:!1},{icon:"align-center",svgIcon:a.alignCenterIcon,textKey:t.keys.alignCenter,commandName:"textAlign",value:"center",selected:!1},{icon:"align-right",svgIcon:a.alignRightIcon,textKey:t.keys.alignRight,commandName:"textAlign",value:"right",selected:!1},{icon:"align-justify",svgIcon:a.alignJustifyIcon,textKey:t.keys.alignJustify,commandName:"textAlign",value:"justify",selected:!1},{icon:"align-top",svgIcon:a.alignTopIcon,textKey:t.keys.alignTop,commandName:"verticalAlign",value:"top",selected:!1},{icon:"align-middle",svgIcon:a.alignMiddleIcon,textKey:t.keys.alignMiddle,commandName:"verticalAlign",value:"center",selected:!1},{icon:"align-bottom",svgIcon:a.alignBottomIcon,textKey:t.keys.alignBottom,commandName:"verticalAlign",value:"bottom",selected:!1}],b=[r[0],{...r[1],textKey:t.keys.center},r[2],{...r[3],textKey:t.keys.justify}],C=r.filter(n=>n.commandName==="verticalAlign"),x=n=>{const{value:i,spreadsheetRef:c}=n,{textAlign:s,verticalAlign:u}=i||{},d=I.useLocalization(),y=g.useCallback(e=>{if(c.current){const m=e.item,o={command:"PropertyChangeCommand",options:{property:m.commandName,value:m.value||null}};c.current.executeCommand(o)}},[]);let l=r.slice();return l=l.map(e=>({...e,text:d.toLanguageString(e.textKey,t.messages[e.textKey])})),s&&(l=l.map(e=>e.commandName==="textAlign"?{...e,selected:e.value===s}:e)),u&&(l=l.map(e=>e.commandName==="verticalAlign"?{...e,selected:e.value===u}:e)),g.createElement(p.DropDownButton,{icon:"align-left",svgIcon:a.alignLeftIcon,items:l,fillMode:"flat",onItemClick:y,title:d.toLanguageString(t.keys.align,t.messages[t.keys.align]),text:g.createElement(v.IconWrap,{name:"caret-alt-down",icon:a.caretAltDownIcon})})};x.displayName="Alignment";const L={items:b,icon:{icon:"align-left",svgIcon:a.alignLeftIcon},displayName:"AlignHorizontally",titleKey:t.keys.alignHorizontally},z={items:C,icon:{icon:"align-bottom",svgIcon:a.alignBottomIcon},displayName:"AlignVertically",titleKey:t.keys.alignVertically},A=n=>{const i=c=>{const{value:s,spreadsheetRef:u}=c,d=I.useLocalization(),y=g.useCallback(o=>{if(u.current){const f=o.item,k={command:"PropertyChangeCommand",options:{property:f.commandName,value:f.value||null}};u.current.executeCommand(k)}},[]);let l=n.items.slice();l=l.map(o=>({...o,text:d.toLanguageString(o.textKey,t.messages[o.textKey])})),l=l.map(o=>({...o,selected:o.value===s}));const e={...n.icon},m=l.find(o=>o.selected);return m&&(e.icon=m.icon,e.svgIcon=m.svgIcon),g.createElement(p.DropDownButton,{...e,items:l,fillMode:"flat",onItemClick:y,title:d.toLanguageString(n.titleKey,t.messages[n.titleKey]),text:g.createElement(v.IconWrap,{name:"caret-alt-down",icon:a.caretAltDownIcon})})};return i.displayName=n.displayName,i},R=A(L),S=A(z);exports.AlignHorizontally=R;exports.AlignVertically=S;exports.Alignment=x;
|
package/tools/align.mjs
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as c from "react";
|
|
10
|
+
import { DropDownButton as v } from "@progress/kendo-react-buttons";
|
|
11
|
+
import { IconWrap as x } from "@progress/kendo-react-common";
|
|
12
|
+
import { alignLeftIcon as f, caretAltDownIcon as I, alignCenterIcon as h, alignRightIcon as L, alignJustifyIcon as z, alignTopIcon as b, alignMiddleIcon as k, alignBottomIcon as A } from "@progress/kendo-svg-icons";
|
|
13
|
+
import { useLocalization as K } from "@progress/kendo-react-intl";
|
|
14
|
+
import { messages as u, keys as n } from "../messages.mjs";
|
|
15
|
+
const i = [
|
|
16
|
+
{ icon: "align-left", svgIcon: f, textKey: n.alignLeft, commandName: "textAlign", value: "left", selected: !1 },
|
|
17
|
+
{ icon: "align-center", svgIcon: h, textKey: n.alignCenter, commandName: "textAlign", value: "center", selected: !1 },
|
|
18
|
+
{ icon: "align-right", svgIcon: L, textKey: n.alignRight, commandName: "textAlign", value: "right", selected: !1 },
|
|
19
|
+
{ icon: "align-justify", svgIcon: z, textKey: n.alignJustify, commandName: "textAlign", value: "justify", selected: !1 },
|
|
20
|
+
{ icon: "align-top", svgIcon: b, textKey: n.alignTop, commandName: "verticalAlign", value: "top", selected: !1 },
|
|
21
|
+
{ icon: "align-middle", svgIcon: k, textKey: n.alignMiddle, commandName: "verticalAlign", value: "center", selected: !1 },
|
|
22
|
+
{ icon: "align-bottom", svgIcon: A, textKey: n.alignBottom, commandName: "verticalAlign", value: "bottom", selected: !1 }
|
|
23
|
+
], H = [
|
|
24
|
+
i[0],
|
|
25
|
+
{ ...i[1], textKey: n.center },
|
|
26
|
+
i[2],
|
|
27
|
+
{ ...i[3], textKey: n.justify }
|
|
28
|
+
], R = i.filter((a) => a.commandName === "verticalAlign"), V = (a) => {
|
|
29
|
+
const { value: g, spreadsheetRef: r } = a, { textAlign: d, verticalAlign: m } = g || {}, s = K(), y = c.useCallback((e) => {
|
|
30
|
+
if (r.current) {
|
|
31
|
+
const o = e.item, l = {
|
|
32
|
+
command: "PropertyChangeCommand",
|
|
33
|
+
options: { property: o.commandName, value: o.value || null }
|
|
34
|
+
};
|
|
35
|
+
r.current.executeCommand(l);
|
|
36
|
+
}
|
|
37
|
+
}, []);
|
|
38
|
+
let t = i.slice();
|
|
39
|
+
return t = t.map((e) => ({ ...e, text: s.toLanguageString(e.textKey, u[e.textKey]) })), d && (t = t.map((e) => e.commandName === "textAlign" ? { ...e, selected: e.value === d } : e)), m && (t = t.map((e) => e.commandName === "verticalAlign" ? { ...e, selected: e.value === m } : e)), /* @__PURE__ */ c.createElement(
|
|
40
|
+
v,
|
|
41
|
+
{
|
|
42
|
+
icon: "align-left",
|
|
43
|
+
svgIcon: f,
|
|
44
|
+
items: t,
|
|
45
|
+
fillMode: "flat",
|
|
46
|
+
onItemClick: y,
|
|
47
|
+
title: s.toLanguageString(n.align, u[n.align]),
|
|
48
|
+
text: /* @__PURE__ */ c.createElement(x, { name: "caret-alt-down", icon: I })
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
V.displayName = "Alignment";
|
|
53
|
+
const w = {
|
|
54
|
+
items: H,
|
|
55
|
+
icon: { icon: "align-left", svgIcon: f },
|
|
56
|
+
displayName: "AlignHorizontally",
|
|
57
|
+
titleKey: n.alignHorizontally
|
|
58
|
+
}, E = {
|
|
59
|
+
items: R,
|
|
60
|
+
icon: { icon: "align-bottom", svgIcon: A },
|
|
61
|
+
displayName: "AlignVertically",
|
|
62
|
+
titleKey: n.alignVertically
|
|
63
|
+
}, N = (a) => {
|
|
64
|
+
const g = (r) => {
|
|
65
|
+
const { value: d, spreadsheetRef: m } = r, s = K(), y = c.useCallback((l) => {
|
|
66
|
+
if (m.current) {
|
|
67
|
+
const p = l.item, C = {
|
|
68
|
+
command: "PropertyChangeCommand",
|
|
69
|
+
options: { property: p.commandName, value: p.value || null }
|
|
70
|
+
};
|
|
71
|
+
m.current.executeCommand(C);
|
|
72
|
+
}
|
|
73
|
+
}, []);
|
|
74
|
+
let t = a.items.slice();
|
|
75
|
+
t = t.map((l) => ({ ...l, text: s.toLanguageString(l.textKey, u[l.textKey]) })), t = t.map((l) => ({ ...l, selected: l.value === d }));
|
|
76
|
+
const e = { ...a.icon }, o = t.find((l) => l.selected);
|
|
77
|
+
return o && (e.icon = o.icon, e.svgIcon = o.svgIcon), /* @__PURE__ */ c.createElement(
|
|
78
|
+
v,
|
|
79
|
+
{
|
|
80
|
+
...e,
|
|
81
|
+
items: t,
|
|
82
|
+
fillMode: "flat",
|
|
83
|
+
onItemClick: y,
|
|
84
|
+
title: s.toLanguageString(a.titleKey, u[a.titleKey]),
|
|
85
|
+
text: /* @__PURE__ */ c.createElement(x, { name: "caret-alt-down", icon: I })
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
};
|
|
89
|
+
return g.displayName = a.displayName, g;
|
|
90
|
+
}, D = N(w), J = N(E);
|
|
91
|
+
export {
|
|
92
|
+
D as AlignHorizontally,
|
|
93
|
+
J as AlignVertically,
|
|
94
|
+
V as Alignment
|
|
95
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../messages.js"),r=require("./utils.js"),t=require("@progress/kendo-svg-icons"),o=r.ColorTool({icon:"droplet",svgIcon:t.dropletIcon,view:"palette",property:"background",titleKey:e.keys.background,ariaLabel:"Background"});o.displayName="BackgroundColor";exports.BackgroundColor=o;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { keys as o } from "../messages.mjs";
|
|
10
|
+
import { ColorTool as r } from "./utils.mjs";
|
|
11
|
+
import { dropletIcon as e } from "@progress/kendo-svg-icons";
|
|
12
|
+
const t = r({
|
|
13
|
+
icon: "droplet",
|
|
14
|
+
svgIcon: e,
|
|
15
|
+
view: "palette",
|
|
16
|
+
property: "background",
|
|
17
|
+
titleKey: o.background,
|
|
18
|
+
ariaLabel: "Background"
|
|
19
|
+
});
|
|
20
|
+
t.displayName = "BackgroundColor";
|
|
21
|
+
export {
|
|
22
|
+
t as BackgroundColor
|
|
23
|
+
};
|
package/tools/bold.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@progress/kendo-svg-icons"),t=require("./utils.js"),s=require("../messages.js"),l={property:"bold",icon:"bold",svgIcon:o.boldIcon,titleKey:s.keys.bold},e=t.PropertyChangeTool(l);e.displayName="Bold";exports.Bold=e;
|
package/tools/bold.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { boldIcon as o } from "@progress/kendo-svg-icons";
|
|
10
|
+
import { PropertyChangeTool as t } from "./utils.mjs";
|
|
11
|
+
import { keys as e } from "../messages.mjs";
|
|
12
|
+
const l = { property: "bold", icon: "bold", svgIcon: o, titleKey: e.bold }, r = t(l);
|
|
13
|
+
r.displayName = "Bold";
|
|
14
|
+
export {
|
|
15
|
+
r as Bold
|
|
16
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),s=require("@progress/kendo-svg-icons"),l=require("@progress/kendo-react-buttons"),i=require("@progress/kendo-react-intl"),o=require("../messages.js");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const r=u(a),g=e=>{const{spreadsheetRef:t}=e,n=r.useCallback(()=>{t.current&&t.current.executeCommand({command:"PropertyCleanCommand"})},[]);return r.createElement(l.Button,{type:"button",icon:"clean-css",svgIcon:s.clearCssIcon,fillMode:"flat",onClick:n,title:i.useLocalization().toLanguageString(o.keys.cleanFormatting,o.messages[o.keys.cleanFormatting])})};exports.CleanFormatting=g;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as e from "react";
|
|
10
|
+
import { clearCssIcon as a } from "@progress/kendo-svg-icons";
|
|
11
|
+
import { Button as c } from "@progress/kendo-react-buttons";
|
|
12
|
+
import { useLocalization as m } from "@progress/kendo-react-intl";
|
|
13
|
+
import { keys as o, messages as s } from "../messages.mjs";
|
|
14
|
+
const p = (n) => {
|
|
15
|
+
const { spreadsheetRef: t } = n, r = e.useCallback(() => {
|
|
16
|
+
t.current && t.current.executeCommand({ command: "PropertyCleanCommand" });
|
|
17
|
+
}, []);
|
|
18
|
+
return /* @__PURE__ */ e.createElement(
|
|
19
|
+
c,
|
|
20
|
+
{
|
|
21
|
+
type: "button",
|
|
22
|
+
icon: "clean-css",
|
|
23
|
+
svgIcon: a,
|
|
24
|
+
fillMode: "flat",
|
|
25
|
+
onClick: r,
|
|
26
|
+
title: m().toLanguageString(o.cleanFormatting, s[o.cleanFormatting])
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
p as CleanFormatting
|
|
32
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@progress/kendo-react-buttons"),i=require("./export.js"),l=require("./open.js"),s=require("./bold.js"),c=require("./italic.js"),u=require("./underline.js"),d=require("./fontFamily.js"),t=require("./fontSize.js"),q=require("./textColor.js"),b=require("./backgroundColor.js"),n=require("./align.js"),m=require("./textWrap.js"),y=require("./gridLines.js"),p=require("./format.js"),o=require("./tableTools.js"),r=require("../messages.js"),T=require("./undo.js"),S=require("./redo.js"),a=require("./adjustDecimals.js"),x=[{textKey:r.keys.file,tools:[l.Open,i.ExcelExport]},{textKey:r.keys.home,selected:!0,tools:[[T.Undo,S.Redo],e.ToolbarSeparator,d.FontFamily,t.FontSize,t.IncreaseFontSize,t.DecreaseFontSize,e.ToolbarSeparator,[s.Bold,c.Italic,u.Underline],q.TextColor,e.ToolbarSeparator,b.BackgroundColor,e.ToolbarSeparator,n.AlignHorizontally,n.AlignVertically,m.TextWrap,e.ToolbarSeparator,y.GridLines]},{textKey:r.keys.insert,tools:[[o.AddColumnLeft,o.AddColumnRight,o.AddRowBelow,o.AddRowAbove],e.ToolbarSeparator,[o.DeleteColumn,o.DeleteRow]]},{textKey:r.keys.formatTab,tools:[p.Format,[a.DecreaseDecimal,a.IncreaseDecimal]]}];exports.defaultTabs=x;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { ToolbarSeparator as o } from "@progress/kendo-react-buttons";
|
|
10
|
+
import { ExcelExport as t } from "./export.mjs";
|
|
11
|
+
import { Open as e } from "./open.mjs";
|
|
12
|
+
import { Bold as m } from "./bold.mjs";
|
|
13
|
+
import { Italic as i } from "./italic.mjs";
|
|
14
|
+
import { Underline as l } from "./underline.mjs";
|
|
15
|
+
import { FontFamily as p } from "./fontFamily.mjs";
|
|
16
|
+
import { FontSize as f, IncreaseFontSize as n, DecreaseFontSize as a } from "./fontSize.mjs";
|
|
17
|
+
import { TextColor as d } from "./textColor.mjs";
|
|
18
|
+
import { BackgroundColor as s } from "./backgroundColor.mjs";
|
|
19
|
+
import { AlignHorizontally as c, AlignVertically as x } from "./align.mjs";
|
|
20
|
+
import { TextWrap as y } from "./textWrap.mjs";
|
|
21
|
+
import { GridLines as u } from "./gridLines.mjs";
|
|
22
|
+
import { Format as A } from "./format.mjs";
|
|
23
|
+
import { AddColumnLeft as D, AddColumnRight as F, AddRowBelow as C, AddRowAbove as R, DeleteColumn as T, DeleteRow as b } from "./tableTools.mjs";
|
|
24
|
+
import { keys as r } from "../messages.mjs";
|
|
25
|
+
import { Undo as g } from "./undo.mjs";
|
|
26
|
+
import { Redo as w } from "./redo.mjs";
|
|
27
|
+
import { DecreaseDecimal as z, IncreaseDecimal as K } from "./adjustDecimals.mjs";
|
|
28
|
+
const P = [
|
|
29
|
+
{
|
|
30
|
+
textKey: r.file,
|
|
31
|
+
tools: [
|
|
32
|
+
e,
|
|
33
|
+
t
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
textKey: r.home,
|
|
38
|
+
selected: !0,
|
|
39
|
+
tools: [
|
|
40
|
+
[g, w],
|
|
41
|
+
o,
|
|
42
|
+
p,
|
|
43
|
+
f,
|
|
44
|
+
n,
|
|
45
|
+
a,
|
|
46
|
+
o,
|
|
47
|
+
[m, i, l],
|
|
48
|
+
d,
|
|
49
|
+
o,
|
|
50
|
+
s,
|
|
51
|
+
o,
|
|
52
|
+
c,
|
|
53
|
+
x,
|
|
54
|
+
y,
|
|
55
|
+
o,
|
|
56
|
+
u
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
textKey: r.insert,
|
|
61
|
+
tools: [
|
|
62
|
+
[D, F, C, R],
|
|
63
|
+
o,
|
|
64
|
+
[T, b]
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
textKey: r.formatTab,
|
|
69
|
+
tools: [
|
|
70
|
+
A,
|
|
71
|
+
[z, K]
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
];
|
|
75
|
+
export {
|
|
76
|
+
P as defaultTabs
|
|
77
|
+
};
|
package/tools/export.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),s=require("@progress/kendo-react-buttons"),a=require("@progress/kendo-file-saver"),u=require("@progress/kendo-ooxml"),i=require("@progress/kendo-svg-icons");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const r=d(l),c=e=>{const{spreadsheetRef:t}=e,o=r.useCallback(()=>{t.current&&t.current.saveAsExcel({...t.current.options.excel,saveAs:a.saveAs,Workbook:u.Workbook})},[]);return r.createElement(s.Button,{className:"k-toolbar-button",title:"Export...",icon:"download",fillMode:"flat",svgIcon:i.downloadIcon,onClick:o})};c.displayName="ExcelExport";exports.ExcelExport=c;
|
package/tools/export.mjs
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as t from "react";
|
|
10
|
+
import { Button as n } from "@progress/kendo-react-buttons";
|
|
11
|
+
import { saveAs as c } from "@progress/kendo-file-saver";
|
|
12
|
+
import { Workbook as l } from "@progress/kendo-ooxml";
|
|
13
|
+
import { downloadIcon as a } from "@progress/kendo-svg-icons";
|
|
14
|
+
const s = (e) => {
|
|
15
|
+
const { spreadsheetRef: o } = e, r = t.useCallback(() => {
|
|
16
|
+
o.current && o.current.saveAsExcel({
|
|
17
|
+
...o.current.options.excel,
|
|
18
|
+
saveAs: c,
|
|
19
|
+
Workbook: l
|
|
20
|
+
});
|
|
21
|
+
}, []);
|
|
22
|
+
return /* @__PURE__ */ t.createElement(
|
|
23
|
+
n,
|
|
24
|
+
{
|
|
25
|
+
className: "k-toolbar-button",
|
|
26
|
+
title: "Export...",
|
|
27
|
+
icon: "download",
|
|
28
|
+
fillMode: "flat",
|
|
29
|
+
svgIcon: a,
|
|
30
|
+
onClick: r
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
};
|
|
34
|
+
s.displayName = "ExcelExport";
|
|
35
|
+
export {
|
|
36
|
+
s as ExcelExport
|
|
37
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),m=require("@progress/kendo-react-dropdowns"),r=require("./utils.js"),f=require("@progress/kendo-react-intl"),a=require("../messages.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=d(u),l=e=>{const{spreadsheetRef:t,value:n}=e,o=s.useCallback(c=>{if(t.current){const i={command:"PropertyChangeCommand",options:{property:"fontFamily",value:c.value||null}};t.current.executeCommand(i)}},[]);return s.createElement(m.DropDownList,{onChange:o,value:n,data:r.FONT_FAMILIES,defaultValue:r.DEFAULT_FONT_FAMILY,fillMode:"flat",title:f.useLocalization().toLanguageString(a.keys.fontName,a.messages[a.keys.fontName]),leftRightKeysNavigation:!1})};l.displayName="FontFamily";exports.FontFamily=l;
|