@progress/kendo-react-spreadsheet 9.3.1 → 9.4.0-develop.10

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 (58) hide show
  1. package/FormulaInput.js +1 -1
  2. package/FormulaInput.mjs +0 -1
  3. package/List.js +1 -1
  4. package/List.mjs +7 -8
  5. package/NameBox.js +1 -1
  6. package/NameBox.mjs +0 -1
  7. package/SheetsBar.js +1 -1
  8. package/SheetsBar.mjs +0 -1
  9. package/Spreadsheet.js +1 -1
  10. package/Spreadsheet.mjs +0 -1
  11. package/dist/cdn/js/kendo-react-spreadsheet.js +8 -1
  12. package/index.js +2 -1
  13. package/index.mjs +12 -12
  14. package/messages.js +1 -1
  15. package/messages.mjs +0 -1
  16. package/package-metadata.js +1 -1
  17. package/package-metadata.mjs +2 -3
  18. package/package.json +12 -12
  19. package/tools/adjustDecimals.js +1 -1
  20. package/tools/adjustDecimals.mjs +5 -6
  21. package/tools/align.js +1 -1
  22. package/tools/align.mjs +0 -1
  23. package/tools/backgroundColor.js +1 -1
  24. package/tools/backgroundColor.mjs +0 -1
  25. package/tools/bold.js +1 -1
  26. package/tools/bold.mjs +4 -5
  27. package/tools/cleanFormat.js +1 -1
  28. package/tools/cleanFormat.mjs +6 -7
  29. package/tools/defaultTools.js +1 -1
  30. package/tools/defaultTools.mjs +6 -7
  31. package/tools/export.js +1 -1
  32. package/tools/export.mjs +0 -1
  33. package/tools/fontFamily.js +1 -1
  34. package/tools/fontFamily.mjs +0 -1
  35. package/tools/fontSize.js +1 -1
  36. package/tools/fontSize.mjs +12 -13
  37. package/tools/format.js +1 -1
  38. package/tools/format.mjs +9 -10
  39. package/tools/gridLines.js +1 -1
  40. package/tools/gridLines.mjs +9 -10
  41. package/tools/italic.js +1 -1
  42. package/tools/italic.mjs +3 -4
  43. package/tools/open.js +1 -1
  44. package/tools/open.mjs +0 -1
  45. package/tools/redo.js +1 -1
  46. package/tools/redo.mjs +2 -3
  47. package/tools/tableTools.js +1 -1
  48. package/tools/tableTools.mjs +0 -1
  49. package/tools/textColor.js +1 -1
  50. package/tools/textColor.mjs +0 -1
  51. package/tools/textWrap.js +1 -1
  52. package/tools/textWrap.mjs +12 -13
  53. package/tools/underline.js +1 -1
  54. package/tools/underline.mjs +0 -1
  55. package/tools/undo.js +1 -1
  56. package/tools/undo.mjs +0 -1
  57. package/tools/utils.js +1 -1
  58. package/tools/utils.mjs +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-spreadsheet",
3
- "version": "9.3.1",
3
+ "version": "9.4.0-develop.10",
4
4
  "description": "KendoReact Spreadsheet package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -32,16 +32,16 @@
32
32
  "@progress/kendo-file-saver": "^1.1.1",
33
33
  "@progress/kendo-licensing": "^1.3.4",
34
34
  "@progress/kendo-ooxml": "^1.7.0",
35
- "@progress/kendo-react-buttons": "9.3.1",
36
- "@progress/kendo-react-common": "9.3.1",
37
- "@progress/kendo-react-dialogs": "9.3.1",
38
- "@progress/kendo-react-dropdowns": "9.3.1",
39
- "@progress/kendo-react-inputs": "9.3.1",
40
- "@progress/kendo-react-intl": "9.3.1",
41
- "@progress/kendo-react-layout": "9.3.1",
42
- "@progress/kendo-react-popup": "9.3.1",
43
- "@progress/kendo-react-sortable": "9.3.1",
44
- "@progress/kendo-react-upload": "9.3.1",
35
+ "@progress/kendo-react-buttons": "9.4.0-develop.10",
36
+ "@progress/kendo-react-common": "9.4.0-develop.10",
37
+ "@progress/kendo-react-dialogs": "9.4.0-develop.10",
38
+ "@progress/kendo-react-dropdowns": "9.4.0-develop.10",
39
+ "@progress/kendo-react-inputs": "9.4.0-develop.10",
40
+ "@progress/kendo-react-intl": "9.4.0-develop.10",
41
+ "@progress/kendo-react-layout": "9.4.0-develop.10",
42
+ "@progress/kendo-react-popup": "9.4.0-develop.10",
43
+ "@progress/kendo-react-sortable": "9.4.0-develop.10",
44
+ "@progress/kendo-react-upload": "9.4.0-develop.10",
45
45
  "@progress/kendo-spreadsheet-common": "^1.2.2",
46
46
  "@progress/kendo-svg-icons": "^4.0.0",
47
47
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
@@ -68,7 +68,7 @@
68
68
  "package": {
69
69
  "productName": "KendoReact",
70
70
  "productCode": "KENDOUIREACT",
71
- "publishDate": 1737534969,
71
+ "publishDate": 1738310635,
72
72
  "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"
73
73
  }
74
74
  },
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react"),p=require("@progress/kendo-react-buttons"),y=require("@progress/kendo-react-intl"),o=require("../messages.js"),a=require("@progress/kendo-svg-icons");function b(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=b(I),l=e=>t=>{const{icon:n,svgIcon:d,titleKey:s,value:D}=e,{spreadsheetRef:r}=t,g=i.useCallback(()=>{if(r.current){const f={command:"AdjustDecimalsCommand",options:{value:D}};r.current.executeCommand(f)}},[]);return i.createElement(p.Button,{type:"button",icon:n,svgIcon:d,fillMode:"flat",onClick:g,title:y.useLocalization().toLanguageString(s,o.messages[s])})},u=l({icon:a.decimalIncreaseIcon.name,svgIcon:a.decimalIncreaseIcon,value:1,titleKey:o.keys.increaseDecimal});u.displayName="IncreaseDecimal";const m=l({icon:a.decimalDecreaseIcon.name,svgIcon:a.decimalDecreaseIcon,value:-1,titleKey:o.keys.decreaseDecimal});m.displayName="DecreaseDecimal";exports.DecreaseDecimal=m;exports.IncreaseDecimal=u;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react"),p=require("@progress/kendo-react-buttons"),y=require("@progress/kendo-react-intl"),o=require("../messages.js"),a=require("@progress/kendo-svg-icons");function b(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=b(I),l=e=>t=>{const{icon:n,svgIcon:d,titleKey:s,value:D}=e,{spreadsheetRef:r}=t,g=i.useCallback(()=>{if(r.current){const f={command:"AdjustDecimalsCommand",options:{value:D}};r.current.executeCommand(f)}},[]);return i.createElement(p.Button,{type:"button",icon:n,svgIcon:d,fillMode:"flat",onClick:g,title:y.useLocalization().toLanguageString(s,o.messages[s])})},u=l({icon:a.decimalIncreaseIcon.name,svgIcon:a.decimalIncreaseIcon,value:1,titleKey:o.keys.increaseDecimal});u.displayName="IncreaseDecimal";const m=l({icon:a.decimalDecreaseIcon.name,svgIcon:a.decimalDecreaseIcon,value:-1,titleKey:o.keys.decreaseDecimal});m.displayName="DecreaseDecimal";exports.DecreaseDecimal=m;exports.IncreaseDecimal=u;
@@ -5,12 +5,11 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as t from "react";
10
9
  import { Button as D } from "@progress/kendo-react-buttons";
11
10
  import { useLocalization as f } from "@progress/kendo-react-intl";
12
11
  import { keys as n, messages as I } from "../messages.mjs";
13
- import { decimalIncreaseIcon as c, decimalDecreaseIcon as a } from "@progress/kendo-svg-icons";
12
+ import { decimalIncreaseIcon as a, decimalDecreaseIcon as c } from "@progress/kendo-svg-icons";
14
13
  const s = (i) => (m) => {
15
14
  const { icon: l, svgIcon: r, titleKey: e, value: u } = i, { spreadsheetRef: o } = m, d = t.useCallback(() => {
16
15
  if (o.current) {
@@ -33,15 +32,15 @@ const s = (i) => (m) => {
33
32
  }
34
33
  );
35
34
  }, g = s({
36
- icon: c.name,
37
- svgIcon: c,
35
+ icon: a.name,
36
+ svgIcon: a,
38
37
  value: 1,
39
38
  titleKey: n.increaseDecimal
40
39
  });
41
40
  g.displayName = "IncreaseDecimal";
42
41
  const y = s({
43
- icon: a.name,
44
- svgIcon: a,
42
+ icon: c.name,
43
+ svgIcon: c,
45
44
  value: -1,
46
45
  titleKey: n.decreaseDecimal
47
46
  });
package/tools/align.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
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;
8
+ "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 CHANGED
@@ -5,7 +5,6 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as c from "react";
10
9
  import { DropDownButton as v } from "@progress/kendo-react-buttons";
11
10
  import { IconWrap as x } from "@progress/kendo-react-common";
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
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;
8
+ "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;
@@ -5,7 +5,6 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import { keys as o } from "../messages.mjs";
10
9
  import { ColorTool as r } from "./utils.mjs";
11
10
  import { dropletIcon as e } from "@progress/kendo-svg-icons";
package/tools/bold.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
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;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@progress/kendo-svg-icons"),t=require("./utils.js"),s=require("../messages.js"),l={property:"bold",icon:"bold",svgIcon:e.boldIcon,titleKey:s.keys.bold},o=t.PropertyChangeTool(l);o.displayName="Bold";exports.Bold=o;
package/tools/bold.mjs CHANGED
@@ -5,12 +5,11 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import { boldIcon as o } from "@progress/kendo-svg-icons";
10
9
  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";
10
+ import { keys as r } from "../messages.mjs";
11
+ const l = { property: "bold", icon: "bold", svgIcon: o, titleKey: r.bold }, e = t(l);
12
+ e.displayName = "Bold";
14
13
  export {
15
- r as Bold
14
+ e as Bold
16
15
  };
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
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;
8
+ "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 r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=u(a),g=e=>{const{spreadsheetRef:t}=e,n=c.useCallback(()=>{t.current&&t.current.executeCommand({command:"PropertyCleanCommand"})},[]);return c.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;
@@ -5,28 +5,27 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as e from "react";
10
9
  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";
10
+ import { Button as m } from "@progress/kendo-react-buttons";
11
+ import { useLocalization as c } from "@progress/kendo-react-intl";
13
12
  import { keys as o, messages as s } from "../messages.mjs";
14
- const p = (n) => {
13
+ const u = (n) => {
15
14
  const { spreadsheetRef: t } = n, r = e.useCallback(() => {
16
15
  t.current && t.current.executeCommand({ command: "PropertyCleanCommand" });
17
16
  }, []);
18
17
  return /* @__PURE__ */ e.createElement(
19
- c,
18
+ m,
20
19
  {
21
20
  type: "button",
22
21
  icon: "clean-css",
23
22
  svgIcon: a,
24
23
  fillMode: "flat",
25
24
  onClick: r,
26
- title: m().toLanguageString(o.cleanFormatting, s[o.cleanFormatting])
25
+ title: c().toLanguageString(o.cleanFormatting, s[o.cleanFormatting])
27
26
  }
28
27
  );
29
28
  };
30
29
  export {
31
- p as CleanFormatting
30
+ u as CleanFormatting
32
31
  };
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
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;
8
+ "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;
@@ -5,7 +5,6 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import { ToolbarSeparator as o } from "@progress/kendo-react-buttons";
10
9
  import { ExcelExport as t } from "./export.mjs";
11
10
  import { Open as e } from "./open.mjs";
@@ -13,13 +12,13 @@ import { Bold as m } from "./bold.mjs";
13
12
  import { Italic as i } from "./italic.mjs";
14
13
  import { Underline as l } from "./underline.mjs";
15
14
  import { FontFamily as p } from "./fontFamily.mjs";
16
- import { FontSize as f, IncreaseFontSize as n, DecreaseFontSize as a } from "./fontSize.mjs";
15
+ import { FontSize as f, IncreaseFontSize as a, DecreaseFontSize as n } from "./fontSize.mjs";
17
16
  import { TextColor as d } from "./textColor.mjs";
18
17
  import { BackgroundColor as s } from "./backgroundColor.mjs";
19
18
  import { AlignHorizontally as c, AlignVertically as x } from "./align.mjs";
20
19
  import { TextWrap as y } from "./textWrap.mjs";
21
- import { GridLines as u } from "./gridLines.mjs";
22
- import { Format as A } from "./format.mjs";
20
+ import { GridLines as A } from "./gridLines.mjs";
21
+ import { Format as u } from "./format.mjs";
23
22
  import { AddColumnLeft as D, AddColumnRight as F, AddRowBelow as C, AddRowAbove as R, DeleteColumn as T, DeleteRow as b } from "./tableTools.mjs";
24
23
  import { keys as r } from "../messages.mjs";
25
24
  import { Undo as g } from "./undo.mjs";
@@ -38,8 +37,8 @@ const P = [
38
37
  o,
39
38
  p,
40
39
  f,
41
- n,
42
40
  a,
41
+ n,
43
42
  o,
44
43
  [m, i, l],
45
44
  d,
@@ -50,7 +49,7 @@ const P = [
50
49
  x,
51
50
  y,
52
51
  o,
53
- u
52
+ A
54
53
  ]
55
54
  },
56
55
  {
@@ -59,7 +58,7 @@ const P = [
59
58
  },
60
59
  {
61
60
  textKey: r.formatTab,
62
- tools: [A, [z, K]]
61
+ tools: [u, [z, K]]
63
62
  }
64
63
  ];
65
64
  export {
package/tools/export.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
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;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),l=require("@progress/kendo-react-buttons"),s=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(a),c=e=>{const{spreadsheetRef:t}=e,o=r.useCallback(()=>{t.current&&t.current.saveAsExcel({...t.current.options.excel,saveAs:s.saveAs,Workbook:u.Workbook})},[]);return r.createElement(l.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 CHANGED
@@ -5,7 +5,6 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as t from "react";
10
9
  import { Button as n } from "@progress/kendo-react-buttons";
11
10
  import { saveAs as c } from "@progress/kendo-file-saver";
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
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;
8
+ "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;
@@ -5,7 +5,6 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as t from "react";
10
9
  import { DropDownList as l } from "@progress/kendo-react-dropdowns";
11
10
  import { FONT_FAMILIES as s, DEFAULT_FONT_FAMILY as f } from "./utils.mjs";
package/tools/fontSize.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react"),v=require("@progress/kendo-react-dropdowns"),y=require("./utils.js"),i=require("../messages.js"),g=require("@progress/kendo-react-intl"),h=require("@progress/kendo-react-buttons"),z=require("@progress/kendo-svg-icons");function N(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const m=N(I),d=1,f=409,p=e=>typeof e=="string"?parseFloat(e):e,b=e=>{const{spreadsheetRef:o}=e,t=p(e.value),s=m.useCallback(r=>{var u;let n=r.value?p(r.value):t;n=isNaN(n)?t:n,n=Math.min(f,Math.max(d,n));const c={command:"PropertyChangeCommand",options:{property:"fontSize",value:n}};r.nativeEvent.type==="keydown"||r.nativeEvent.type==="focusout"?(u=o.current)==null||u.executeCommand(c):setTimeout(()=>{var a;(a=o.current)==null||a.executeCommand(c)},0)},[t]),l=g.useLocalization().toLanguageString(i.keys.fontSize,i.messages[i.keys.fontSize]);return m.createElement(v.ComboBox,{onChange:s,value:t,data:y.FONT_SIZES,defaultValue:y.DEFAULT_FONT_SIZE,allowCustom:!0,fillMode:"flat",title:l,tabIndex:-1,clearButton:!1,ariaLabel:l})};b.displayName="FontSize";const k=e=>{const o=t=>{const{property:s,icon:l,svgIcon:r,titleKey:n,step:c}=e,{spreadsheetRef:u}=t,a=p(t.value),F=m.useCallback(()=>{var S;const C={command:"PropertyChangeCommand",options:{property:s,value:Math.min(f,Math.max(d,a+c))}};(S=u.current)==null||S.executeCommand(C)},[a]);return m.createElement(h.Button,{type:"button",icon:l,svgIcon:r,fillMode:"flat",onClick:F,disabled:a+c<d||a+c>f,title:g.useLocalization().toLanguageString(n,i.messages[n])})};return o.displayName=e.displayName,o},x=k({property:"fontSize",icon:"font-grow",svgIcon:z.fontGrowIcon,titleKey:i.keys.fontSizeIncrease,displayName:"IncreaseFontSize",step:1}),T=k({property:"fontSize",icon:"font-shrink",svgIcon:z.fontShrinkIcon,titleKey:i.keys.fontSizeDecrease,displayName:"DecreaseFontSize",step:-1});exports.DecreaseFontSize=T;exports.FontSize=b;exports.IncreaseFontSize=x;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react"),v=require("@progress/kendo-react-dropdowns"),y=require("./utils.js"),i=require("../messages.js"),g=require("@progress/kendo-react-intl"),h=require("@progress/kendo-react-buttons"),z=require("@progress/kendo-svg-icons");function N(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const m=N(I),d=1,f=409,p=e=>typeof e=="string"?parseFloat(e):e,b=e=>{const{spreadsheetRef:o}=e,t=p(e.value),s=m.useCallback(r=>{var u;let n=r.value?p(r.value):t;n=isNaN(n)?t:n,n=Math.min(f,Math.max(d,n));const c={command:"PropertyChangeCommand",options:{property:"fontSize",value:n}};r.nativeEvent.type==="keydown"||r.nativeEvent.type==="focusout"?(u=o.current)==null||u.executeCommand(c):setTimeout(()=>{var a;(a=o.current)==null||a.executeCommand(c)},0)},[t]),l=g.useLocalization().toLanguageString(i.keys.fontSize,i.messages[i.keys.fontSize]);return m.createElement(v.ComboBox,{onChange:s,value:t,data:y.FONT_SIZES,defaultValue:y.DEFAULT_FONT_SIZE,allowCustom:!0,fillMode:"flat",title:l,tabIndex:-1,clearButton:!1,ariaLabel:l})};b.displayName="FontSize";const k=e=>{const o=t=>{const{property:s,icon:l,svgIcon:r,titleKey:n,step:c}=e,{spreadsheetRef:u}=t,a=p(t.value),F=m.useCallback(()=>{var S;const C={command:"PropertyChangeCommand",options:{property:s,value:Math.min(f,Math.max(d,a+c))}};(S=u.current)==null||S.executeCommand(C)},[a]);return m.createElement(h.Button,{type:"button",icon:l,svgIcon:r,fillMode:"flat",onClick:F,disabled:a+c<d||a+c>f,title:g.useLocalization().toLanguageString(n,i.messages[n])})};return o.displayName=e.displayName,o},x=k({property:"fontSize",icon:"font-grow",svgIcon:z.fontGrowIcon,titleKey:i.keys.fontSizeIncrease,displayName:"IncreaseFontSize",step:1}),T=k({property:"fontSize",icon:"font-shrink",svgIcon:z.fontShrinkIcon,titleKey:i.keys.fontSizeDecrease,displayName:"DecreaseFontSize",step:-1});exports.DecreaseFontSize=T;exports.FontSize=b;exports.IncreaseFontSize=x;
@@ -5,7 +5,6 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as l from "react";
10
9
  import { ComboBox as F } from "@progress/kendo-react-dropdowns";
11
10
  import { FONT_SIZES as I, DEFAULT_FONT_SIZE as v } from "./utils.mjs";
@@ -13,19 +12,19 @@ import { keys as m, messages as y } from "../messages.mjs";
13
12
  import { useLocalization as z } from "@progress/kendo-react-intl";
14
13
  import { Button as x } from "@progress/kendo-react-buttons";
15
14
  import { fontGrowIcon as N, fontShrinkIcon as b } from "@progress/kendo-svg-icons";
16
- const p = 1, f = 409, d = (e) => typeof e == "string" ? parseFloat(e) : e, k = (e) => {
17
- const { spreadsheetRef: r } = e, o = d(e.value), u = l.useCallback(
15
+ const u = 1, f = 409, d = (e) => typeof e == "string" ? parseFloat(e) : e, k = (e) => {
16
+ const { spreadsheetRef: i } = e, o = d(e.value), p = l.useCallback(
18
17
  (a) => {
19
18
  var c;
20
19
  let t = a.value ? d(a.value) : o;
21
- t = isNaN(t) ? o : t, t = Math.min(f, Math.max(p, t));
22
- const i = {
20
+ t = isNaN(t) ? o : t, t = Math.min(f, Math.max(u, t));
21
+ const r = {
23
22
  command: "PropertyChangeCommand",
24
23
  options: { property: "fontSize", value: t }
25
24
  };
26
- a.nativeEvent.type === "keydown" || a.nativeEvent.type === "focusout" ? (c = r.current) == null || c.executeCommand(i) : setTimeout(() => {
25
+ a.nativeEvent.type === "keydown" || a.nativeEvent.type === "focusout" ? (c = i.current) == null || c.executeCommand(r) : setTimeout(() => {
27
26
  var n;
28
- (n = r.current) == null || n.executeCommand(i);
27
+ (n = i.current) == null || n.executeCommand(r);
29
28
  }, 0);
30
29
  },
31
30
  [o]
@@ -33,7 +32,7 @@ const p = 1, f = 409, d = (e) => typeof e == "string" ? parseFloat(e) : e, k = (
33
32
  return /* @__PURE__ */ l.createElement(
34
33
  F,
35
34
  {
36
- onChange: u,
35
+ onChange: p,
37
36
  value: o,
38
37
  data: I,
39
38
  defaultValue: v,
@@ -48,12 +47,12 @@ const p = 1, f = 409, d = (e) => typeof e == "string" ? parseFloat(e) : e, k = (
48
47
  };
49
48
  k.displayName = "FontSize";
50
49
  const g = (e) => {
51
- const r = (o) => {
52
- const { property: u, icon: s, svgIcon: a, titleKey: t, step: i } = e, { spreadsheetRef: c } = o, n = d(o.value), C = l.useCallback(() => {
50
+ const i = (o) => {
51
+ const { property: p, icon: s, svgIcon: a, titleKey: t, step: r } = e, { spreadsheetRef: c } = o, n = d(o.value), C = l.useCallback(() => {
53
52
  var S;
54
53
  const h = {
55
54
  command: "PropertyChangeCommand",
56
- options: { property: u, value: Math.min(f, Math.max(p, n + i)) }
55
+ options: { property: p, value: Math.min(f, Math.max(u, n + r)) }
57
56
  };
58
57
  (S = c.current) == null || S.executeCommand(h);
59
58
  }, [n]);
@@ -65,12 +64,12 @@ const g = (e) => {
65
64
  svgIcon: a,
66
65
  fillMode: "flat",
67
66
  onClick: C,
68
- disabled: n + i < p || n + i > f,
67
+ disabled: n + r < u || n + r > f,
69
68
  title: z().toLanguageString(t, y[t])
70
69
  }
71
70
  );
72
71
  };
73
- return r.displayName = e.displayName, r;
72
+ return i.displayName = e.displayName, i;
74
73
  }, B = g({
75
74
  property: "fontSize",
76
75
  icon: "font-grow",
package/tools/format.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),m=require("@progress/kendo-react-buttons"),l=require("@progress/kendo-svg-icons"),d=require("./utils.js"),f=require("@progress/kendo-react-common"),g=require("@progress/kendo-react-intl"),r=require("../messages.js");function p(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 a=p(i),c=e=>{const{spreadsheetRef:t}=e,o=a.useCallback(n=>{const s=n.item.value||null;setTimeout(()=>{if(t.current){const u={command:"PropertyChangeCommand",options:{property:"format",value:s}};t.current.executeCommand(u)}},0)},[]);return a.createElement(m.DropDownButton,{icon:"custom-format",svgIcon:l.customFormatIcon,fillMode:"flat",onItemClick:o,items:d.FORMATS,title:g.useLocalization().toLanguageString(r.keys.format,r.messages[r.keys.format]),text:a.createElement(f.IconWrap,{name:"caret-alt-down"})})};c.displayName="Format";exports.Format=c;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),m=require("@progress/kendo-react-buttons"),l=require("@progress/kendo-svg-icons"),d=require("./utils.js"),f=require("@progress/kendo-react-common"),g=require("@progress/kendo-react-intl"),r=require("../messages.js");function p(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 a=p(i),c=e=>{const{spreadsheetRef:t}=e,o=a.useCallback(n=>{const s=n.item.value||null;setTimeout(()=>{if(t.current){const u={command:"PropertyChangeCommand",options:{property:"format",value:s}};t.current.executeCommand(u)}},0)},[]);return a.createElement(m.DropDownButton,{icon:"custom-format",svgIcon:l.customFormatIcon,fillMode:"flat",onItemClick:o,items:d.FORMATS,title:g.useLocalization().toLanguageString(r.keys.format,r.messages[r.keys.format]),text:a.createElement(f.IconWrap,{name:"caret-alt-down"})})};c.displayName="Format";exports.Format=c;
package/tools/format.mjs CHANGED
@@ -5,37 +5,36 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
- import * as t from "react";
8
+ import * as o from "react";
10
9
  import { DropDownButton as s } from "@progress/kendo-react-buttons";
11
10
  import { customFormatIcon as i } from "@progress/kendo-svg-icons";
12
- import { FORMATS as l } from "./utils.mjs";
13
- import { IconWrap as p } from "@progress/kendo-react-common";
11
+ import { FORMATS as p } from "./utils.mjs";
12
+ import { IconWrap as l } from "@progress/kendo-react-common";
14
13
  import { useLocalization as f } from "@progress/kendo-react-intl";
15
14
  import { keys as e, messages as u } from "../messages.mjs";
16
15
  const d = (r) => {
17
- const { spreadsheetRef: o } = r, m = t.useCallback((a) => {
16
+ const { spreadsheetRef: t } = r, m = o.useCallback((a) => {
18
17
  const n = a.item.value || null;
19
18
  setTimeout(() => {
20
- if (o.current) {
19
+ if (t.current) {
21
20
  const c = {
22
21
  command: "PropertyChangeCommand",
23
22
  options: { property: "format", value: n }
24
23
  };
25
- o.current.executeCommand(c);
24
+ t.current.executeCommand(c);
26
25
  }
27
26
  }, 0);
28
27
  }, []);
29
- return /* @__PURE__ */ t.createElement(
28
+ return /* @__PURE__ */ o.createElement(
30
29
  s,
31
30
  {
32
31
  icon: "custom-format",
33
32
  svgIcon: i,
34
33
  fillMode: "flat",
35
34
  onItemClick: m,
36
- items: l,
35
+ items: p,
37
36
  title: f().toLanguageString(e.format, u[e.format]),
38
- text: /* @__PURE__ */ t.createElement(p, { name: "caret-alt-down" })
37
+ text: /* @__PURE__ */ o.createElement(l, { name: "caret-alt-down" })
39
38
  }
40
39
  );
41
40
  };
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),l=require("@progress/kendo-react-buttons"),d=require("@progress/kendo-svg-icons"),g=require("@progress/kendo-react-intl"),r=require("../messages.js");function f(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const c=f(u),i=t=>{const{value:n,spreadsheetRef:e}=t,o=c.useCallback(()=>{if(e.current){const s=e.current.activeSheet();if(s){const a={command:"GridLinesChangeCommand",options:{property:"gridLines",value:!s.showGridLines()}};e.current.executeCommand(a)}}},[]);return c.createElement(l.Button,{type:"button",togglable:!0,icon:"borders-none",svgIcon:d.bordersNoneIcon,fillMode:"flat",title:g.useLocalization().toLanguageString(r.keys.gridLines,r.messages[r.keys.gridLines]),onClick:o,selected:n})};i.displayName="GridLines";exports.GridLines=i;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),l=require("@progress/kendo-react-buttons"),d=require("@progress/kendo-svg-icons"),g=require("@progress/kendo-react-intl"),r=require("../messages.js");function f(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const c=f(u),i=t=>{const{value:n,spreadsheetRef:e}=t,o=c.useCallback(()=>{if(e.current){const s=e.current.activeSheet();if(s){const a={command:"GridLinesChangeCommand",options:{property:"gridLines",value:!s.showGridLines()}};e.current.executeCommand(a)}}},[]);return c.createElement(l.Button,{type:"button",togglable:!0,icon:"borders-none",svgIcon:d.bordersNoneIcon,fillMode:"flat",title:g.useLocalization().toLanguageString(r.keys.gridLines,r.messages[r.keys.gridLines]),onClick:o,selected:n})};i.displayName="GridLines";exports.GridLines=i;
@@ -5,26 +5,25 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
- import * as o from "react";
8
+ import * as t from "react";
10
9
  import { Button as c } from "@progress/kendo-react-buttons";
11
10
  import { bordersNoneIcon as m } from "@progress/kendo-svg-icons";
12
- import { useLocalization as l } from "@progress/kendo-react-intl";
13
- import { keys as n, messages as d } from "../messages.mjs";
11
+ import { useLocalization as d } from "@progress/kendo-react-intl";
12
+ import { keys as n, messages as l } from "../messages.mjs";
14
13
  const u = (r) => {
15
- const { value: i, spreadsheetRef: e } = r, s = o.useCallback(() => {
14
+ const { value: i, spreadsheetRef: e } = r, s = t.useCallback(() => {
16
15
  if (e.current) {
17
- const t = e.current.activeSheet();
18
- if (t) {
16
+ const o = e.current.activeSheet();
17
+ if (o) {
19
18
  const a = {
20
19
  command: "GridLinesChangeCommand",
21
- options: { property: "gridLines", value: !t.showGridLines() }
20
+ options: { property: "gridLines", value: !o.showGridLines() }
22
21
  };
23
22
  e.current.executeCommand(a);
24
23
  }
25
24
  }
26
25
  }, []);
27
- return /* @__PURE__ */ o.createElement(
26
+ return /* @__PURE__ */ t.createElement(
28
27
  c,
29
28
  {
30
29
  type: "button",
@@ -32,7 +31,7 @@ const u = (r) => {
32
31
  icon: "borders-none",
33
32
  svgIcon: m,
34
33
  fillMode: "flat",
35
- title: l().toLanguageString(n.gridLines, d[n.gridLines]),
34
+ title: d().toLanguageString(n.gridLines, l[n.gridLines]),
36
35
  onClick: s,
37
36
  selected: i
38
37
  }
package/tools/italic.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@progress/kendo-svg-icons"),i=require("./utils.js"),c=require("../messages.js"),o={property:"italic",icon:"italic",svgIcon:e.italicIcon,titleKey:c.keys.italic},t=i.PropertyChangeTool(o);t.displayName="Italic";exports.Italic=t;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@progress/kendo-svg-icons"),i=require("./utils.js"),c=require("../messages.js"),o={property:"italic",icon:"italic",svgIcon:e.italicIcon,titleKey:c.keys.italic},t=i.PropertyChangeTool(o);t.displayName="Italic";exports.Italic=t;
package/tools/italic.mjs CHANGED
@@ -5,12 +5,11 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import { italicIcon as i } from "@progress/kendo-svg-icons";
10
9
  import { PropertyChangeTool as t } from "./utils.mjs";
11
10
  import { keys as o } from "../messages.mjs";
12
- const c = { property: "italic", icon: "italic", svgIcon: i, titleKey: o.italic }, e = t(c);
13
- e.displayName = "Italic";
11
+ const c = { property: "italic", icon: "italic", svgIcon: i, titleKey: o.italic }, r = t(c);
12
+ r.displayName = "Italic";
14
13
  export {
15
- e as Italic
14
+ r as Italic
16
15
  };
package/tools/open.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),p=require("@progress/kendo-react-buttons"),f=require("@progress/kendo-react-upload"),m=require("@progress/kendo-svg-icons"),g=require("@progress/kendo-react-intl"),r=require("../messages.js");function b(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const a=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(o,l,a.get?a:{enumerable:!0,get:()=>e[l]})}}return o.default=e,Object.freeze(o)}const n=b(d),u=e=>{const{spreadsheetRef:o}=e,l=n.useCallback(s=>{const t=s.target;if(t instanceof Element&&t.parentNode){const c=t.closest(".k-toolbar"),i=c&&c.querySelector(".k-upload input");i&&i.click()}},[]),a=n.useCallback(s=>{const t=s.newState;if(t[0]&&t[0].getRawFile){const c=t[0].getRawFile();o.current&&o.current.executeCommand({command:"OpenCommand",options:{file:c}})}},[]);return n.createElement(n.Fragment,null,n.createElement(p.Button,{className:"k-toolbar-button",title:g.useLocalization().toLanguageString(r.keys.open,r.messages[r.keys.open]),icon:"folder-open",svgIcon:m.folderOpenIcon,fillMode:"flat",onClick:l}),n.createElement("div",{style:{display:"none"}},n.createElement(f.Upload,{restrictions:{allowedExtensions:[".xlsx"]},onAdd:a,autoUpload:!1,defaultFiles:[],multiple:!1,accept:".xlsx,.XLSX",withCredentials:!1})))};u.displayName="Open";exports.Open=u;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),p=require("@progress/kendo-react-buttons"),f=require("@progress/kendo-react-upload"),m=require("@progress/kendo-svg-icons"),g=require("@progress/kendo-react-intl"),r=require("../messages.js");function b(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(o,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return o.default=e,Object.freeze(o)}const n=b(d),u=e=>{const{spreadsheetRef:o}=e,a=n.useCallback(s=>{const t=s.target;if(t instanceof Element&&t.parentNode){const c=t.closest(".k-toolbar"),i=c&&c.querySelector(".k-upload input");i&&i.click()}},[]),l=n.useCallback(s=>{const t=s.newState;if(t[0]&&t[0].getRawFile){const c=t[0].getRawFile();o.current&&o.current.executeCommand({command:"OpenCommand",options:{file:c}})}},[]);return n.createElement(n.Fragment,null,n.createElement(p.Button,{className:"k-toolbar-button",title:g.useLocalization().toLanguageString(r.keys.open,r.messages[r.keys.open]),icon:"folder-open",svgIcon:m.folderOpenIcon,fillMode:"flat",onClick:a}),n.createElement("div",{style:{display:"none"}},n.createElement(f.Upload,{restrictions:{allowedExtensions:[".xlsx"]},onAdd:l,autoUpload:!1,defaultFiles:[],multiple:!1,accept:".xlsx,.XLSX",withCredentials:!1})))};u.displayName="Open";exports.Open=u;
package/tools/open.mjs CHANGED
@@ -5,7 +5,6 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import * as t from "react";
10
9
  import { Button as m } from "@progress/kendo-react-buttons";
11
10
  import { Upload as p } from "@progress/kendo-react-upload";
package/tools/redo.js CHANGED
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
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"),n={action:"redo",icon:"reload",svgIcon:o.arrowRotateCwIcon,titleKey:s.keys.redo},e=t.UndoRedo(n);e.displayName="Redo";exports.Redo=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@progress/kendo-svg-icons"),t=require("./utils.js"),r=require("../messages.js"),s={action:"redo",icon:"reload",svgIcon:o.arrowRotateCwIcon,titleKey:r.keys.redo},e=t.UndoRedo(s);e.displayName="Redo";exports.Redo=e;
package/tools/redo.mjs CHANGED
@@ -5,11 +5,10 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use client";
9
8
  import { arrowRotateCwIcon as o } from "@progress/kendo-svg-icons";
10
9
  import { UndoRedo as e } from "./utils.mjs";
11
- import { keys as t } from "../messages.mjs";
12
- const r = { action: "redo", icon: "reload", svgIcon: o, titleKey: t.redo }, d = e(r);
10
+ import { keys as r } from "../messages.mjs";
11
+ const t = { action: "redo", icon: "reload", svgIcon: o, titleKey: r.redo }, d = e(t);
13
12
  d.displayName = "Redo";
14
13
  export {
15
14
  d as Redo