@progress/kendo-react-spreadsheet 9.4.0-develop.5 → 9.4.0-develop.7

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 (57) 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/index.js +2 -1
  12. package/index.mjs +12 -12
  13. package/messages.js +1 -1
  14. package/messages.mjs +0 -1
  15. package/package-metadata.js +1 -1
  16. package/package-metadata.mjs +2 -3
  17. package/package.json +12 -12
  18. package/tools/adjustDecimals.js +1 -1
  19. package/tools/adjustDecimals.mjs +5 -6
  20. package/tools/align.js +1 -1
  21. package/tools/align.mjs +0 -1
  22. package/tools/backgroundColor.js +1 -1
  23. package/tools/backgroundColor.mjs +0 -1
  24. package/tools/bold.js +1 -1
  25. package/tools/bold.mjs +4 -5
  26. package/tools/cleanFormat.js +1 -1
  27. package/tools/cleanFormat.mjs +6 -7
  28. package/tools/defaultTools.js +1 -1
  29. package/tools/defaultTools.mjs +6 -7
  30. package/tools/export.js +1 -1
  31. package/tools/export.mjs +0 -1
  32. package/tools/fontFamily.js +1 -1
  33. package/tools/fontFamily.mjs +0 -1
  34. package/tools/fontSize.js +1 -1
  35. package/tools/fontSize.mjs +12 -13
  36. package/tools/format.js +1 -1
  37. package/tools/format.mjs +9 -10
  38. package/tools/gridLines.js +1 -1
  39. package/tools/gridLines.mjs +9 -10
  40. package/tools/italic.js +1 -1
  41. package/tools/italic.mjs +3 -4
  42. package/tools/open.js +1 -1
  43. package/tools/open.mjs +0 -1
  44. package/tools/redo.js +1 -1
  45. package/tools/redo.mjs +2 -3
  46. package/tools/tableTools.js +1 -1
  47. package/tools/tableTools.mjs +0 -1
  48. package/tools/textColor.js +1 -1
  49. package/tools/textColor.mjs +0 -1
  50. package/tools/textWrap.js +1 -1
  51. package/tools/textWrap.mjs +12 -13
  52. package/tools/underline.js +1 -1
  53. package/tools/underline.mjs +0 -1
  54. package/tools/undo.js +1 -1
  55. package/tools/undo.mjs +0 -1
  56. package/tools/utils.js +1 -1
  57. package/tools/utils.mjs +0 -1
@@ -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
@@ -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 y=require("react"),v=require("@progress/kendo-react-buttons"),t=require("@progress/kendo-svg-icons"),o=require("../messages.js"),A=require("@progress/kendo-react-intl");function g(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const d=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(a,l,d.get?d:{enumerable:!0,get:()=>e[l]})}}return a.default=e,Object.freeze(a)}const s=g(y),n=e=>l=>{const{spreadsheetRef:d,value:c}=l,R=s.useCallback(()=>{if(d.current){const C={command:e.command,options:{value:e.value}};d.current.executeCommand(C)}},[]);return s.createElement(v.Button,{type:"button",icon:e.icon,svgIcon:e.svgIcon,fillMode:"flat",title:A.useLocalization().toLanguageString(e.titleKey,o.messages[e.titleKey]),onClick:R,disabled:c&&e.disabled(c)})},f={command:"AddColumnCommand",value:"left",icon:"table-column-insert-left",svgIcon:t.tableColumnInsertLeftIcon,titleKey:o.keys.addColumnLeft,disabled:e=>e.allCols,displayName:"AddColumnLeft"},p={command:"AddColumnCommand",value:"right",icon:"table-column-insert-right",svgIcon:t.tableColumnInsertRightIcon,titleKey:o.keys.addColumnRight,disabled:e=>e.allCols,displayName:"AddColumnRight"},I={command:"AddRowCommand",value:"below",icon:"table-row-insert-below",svgIcon:t.tableRowInsertBelowIcon,titleKey:o.keys.addRowBelow,disabled:e=>e.allRows,displayName:"AddRowBelow"},D={command:"AddRowCommand",value:"above",icon:"table-row-insert-above",svgIcon:t.tableRowInsertAboveIcon,titleKey:o.keys.addRowAbove,disabled:e=>e.allRows,displayName:"AddRowAbove"},N={command:"DeleteColumnCommand",icon:"table-column-delete",svgIcon:t.tableColumnDeleteIcon,titleKey:o.keys.deleteColumn,disabled:e=>e.allCols,displayName:"DeleteColumn"},k={command:"DeleteRowCommand",icon:"table-row-delete",svgIcon:t.tableRowDeleteIcon,titleKey:o.keys.deleteRow,disabled:e=>e.allRows,displayName:"DeleteRow"},m=n(f),i=n(p),u=n(I),r=n(D),b=n(N),w=n(k);m.displayName="AddColumnLeft";i.displayName="AddColumnRight";u.displayName="AddRowBelow";r.displayName="AddRowAbove";b.displayName="DeleteColumn";w.displayName="DeleteRow";exports.AddColumnLeft=m;exports.AddColumnRight=i;exports.AddRowAbove=r;exports.AddRowBelow=u;exports.DeleteColumn=b;exports.DeleteRow=w;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),v=require("@progress/kendo-react-buttons"),t=require("@progress/kendo-svg-icons"),o=require("../messages.js"),A=require("@progress/kendo-react-intl");function g(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const d=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(a,l,d.get?d:{enumerable:!0,get:()=>e[l]})}}return a.default=e,Object.freeze(a)}const s=g(y),n=e=>l=>{const{spreadsheetRef:d,value:c}=l,R=s.useCallback(()=>{if(d.current){const C={command:e.command,options:{value:e.value}};d.current.executeCommand(C)}},[]);return s.createElement(v.Button,{type:"button",icon:e.icon,svgIcon:e.svgIcon,fillMode:"flat",title:A.useLocalization().toLanguageString(e.titleKey,o.messages[e.titleKey]),onClick:R,disabled:c&&e.disabled(c)})},f={command:"AddColumnCommand",value:"left",icon:"table-column-insert-left",svgIcon:t.tableColumnInsertLeftIcon,titleKey:o.keys.addColumnLeft,disabled:e=>e.allCols,displayName:"AddColumnLeft"},p={command:"AddColumnCommand",value:"right",icon:"table-column-insert-right",svgIcon:t.tableColumnInsertRightIcon,titleKey:o.keys.addColumnRight,disabled:e=>e.allCols,displayName:"AddColumnRight"},I={command:"AddRowCommand",value:"below",icon:"table-row-insert-below",svgIcon:t.tableRowInsertBelowIcon,titleKey:o.keys.addRowBelow,disabled:e=>e.allRows,displayName:"AddRowBelow"},D={command:"AddRowCommand",value:"above",icon:"table-row-insert-above",svgIcon:t.tableRowInsertAboveIcon,titleKey:o.keys.addRowAbove,disabled:e=>e.allRows,displayName:"AddRowAbove"},N={command:"DeleteColumnCommand",icon:"table-column-delete",svgIcon:t.tableColumnDeleteIcon,titleKey:o.keys.deleteColumn,disabled:e=>e.allCols,displayName:"DeleteColumn"},k={command:"DeleteRowCommand",icon:"table-row-delete",svgIcon:t.tableRowDeleteIcon,titleKey:o.keys.deleteRow,disabled:e=>e.allRows,displayName:"DeleteRow"},m=n(f),i=n(p),u=n(I),r=n(D),b=n(N),w=n(k);m.displayName="AddColumnLeft";i.displayName="AddColumnRight";u.displayName="AddRowBelow";r.displayName="AddRowAbove";b.displayName="DeleteColumn";w.displayName="DeleteRow";exports.AddColumnLeft=m;exports.AddColumnRight=i;exports.AddRowAbove=r;exports.AddRowBelow=u;exports.DeleteColumn=b;exports.DeleteRow=w;
@@ -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 a from "react";
10
9
  import { Button as s } from "@progress/kendo-react-buttons";
11
10
  import { tableColumnInsertLeftIcon as i, tableColumnInsertRightIcon as u, tableRowInsertBelowIcon as r, tableRowInsertAboveIcon as w, tableColumnDeleteIcon as b, tableRowDeleteIcon as C } from "@progress/kendo-svg-icons";
@@ -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:"foreground-color",svgIcon:t.foregroundColorIcon,view:"palette",property:"color",titleKey:e.keys.textColor,ariaLabel:"Text Color"});o.displayName="TextColor";exports.TextColor=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:"foreground-color",svgIcon:t.foregroundColorIcon,view:"palette",property:"color",titleKey:e.keys.textColor,ariaLabel:"Text Color"});o.displayName="TextColor";exports.TextColor=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 { foregroundColorIcon as e } from "@progress/kendo-svg-icons";
package/tools/textWrap.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"),i=require("@progress/kendo-react-buttons"),p=require("@progress/kendo-svg-icons"),g=require("@progress/kendo-react-intl"),a=require("../messages.js");function d(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const c=d(l),s=t=>{const{value:n,spreadsheetRef:e}=t,r=c.useCallback(()=>{if(e.current){const o=e.current.activeSheet();if(o){const u={command:"TextWrapCommand",options:{property:"wrap",value:!o.range(o.activeCell()).wrap()}};e.current.executeCommand(u)}}},[]);return c.createElement(i.Button,{type:"button",togglable:!0,icon:"text-wrap",svgIcon:p.textWrapIcon,fillMode:"flat",title:g.useLocalization().toLanguageString(a.keys.textWrap,a.messages[a.keys.textWrap]),onClick:r,selected:n})};s.displayName="TextWrap";exports.TextWrap=s;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),i=require("@progress/kendo-react-buttons"),p=require("@progress/kendo-svg-icons"),g=require("@progress/kendo-react-intl"),a=require("../messages.js");function d(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const c=d(l),s=t=>{const{value:n,spreadsheetRef:e}=t,r=c.useCallback(()=>{if(e.current){const o=e.current.activeSheet();if(o){const u={command:"TextWrapCommand",options:{property:"wrap",value:!o.range(o.activeCell()).wrap()}};e.current.executeCommand(u)}}},[]);return c.createElement(i.Button,{type:"button",togglable:!0,icon:"text-wrap",svgIcon:p.textWrapIcon,fillMode:"flat",title:g.useLocalization().toLanguageString(a.keys.textWrap,a.messages[a.keys.textWrap]),onClick:r,selected:n})};s.displayName="TextWrap";exports.TextWrap=s;
@@ -5,34 +5,33 @@
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 o from "react";
10
- import { Button as p } from "@progress/kendo-react-buttons";
9
+ import { Button as s } from "@progress/kendo-react-buttons";
11
10
  import { textWrapIcon as i } from "@progress/kendo-svg-icons";
12
- import { useLocalization as l } from "@progress/kendo-react-intl";
13
- import { keys as r, messages as m } from "../messages.mjs";
11
+ import { useLocalization as m } from "@progress/kendo-react-intl";
12
+ import { keys as r, messages as l } from "../messages.mjs";
14
13
  const u = (a) => {
15
- const { value: n, spreadsheetRef: e } = a, c = o.useCallback(() => {
16
- if (e.current) {
17
- const t = e.current.activeSheet();
18
- if (t) {
19
- const s = {
14
+ const { value: n, spreadsheetRef: t } = a, c = o.useCallback(() => {
15
+ if (t.current) {
16
+ const e = t.current.activeSheet();
17
+ if (e) {
18
+ const p = {
20
19
  command: "TextWrapCommand",
21
- options: { property: "wrap", value: !t.range(t.activeCell()).wrap() }
20
+ options: { property: "wrap", value: !e.range(e.activeCell()).wrap() }
22
21
  };
23
- e.current.executeCommand(s);
22
+ t.current.executeCommand(p);
24
23
  }
25
24
  }
26
25
  }, []);
27
26
  return /* @__PURE__ */ o.createElement(
28
- p,
27
+ s,
29
28
  {
30
29
  type: "button",
31
30
  togglable: !0,
32
31
  icon: "text-wrap",
33
32
  svgIcon: i,
34
33
  fillMode: "flat",
35
- title: l().toLanguageString(r.textWrap, m[r.textWrap]),
34
+ title: m().toLanguageString(r.textWrap, l[r.textWrap]),
36
35
  onClick: c,
37
36
  selected: n
38
37
  }
@@ -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("@progress/kendo-svg-icons"),r=require("./utils.js"),i=require("../messages.js"),t={property:"underline",icon:"underline",svgIcon:n.underlineIcon,titleKey:i.keys.underline},e=r.PropertyChangeTool(t);e.displayName="Underline";exports.Underline=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@progress/kendo-svg-icons"),r=require("./utils.js"),i=require("../messages.js"),o={property:"underline",icon:"underline",svgIcon:n.underlineIcon,titleKey:i.keys.underline},e=r.PropertyChangeTool(o);e.displayName="Underline";exports.Underline=e;
@@ -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 { underlineIcon as e } from "@progress/kendo-svg-icons";
10
9
  import { PropertyChangeTool as n } from "./utils.mjs";
11
10
  import { keys as r } from "../messages.mjs";
package/tools/undo.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"),n=require("./utils.js"),t=require("../messages.js"),s={action:"undo",icon:"reset",svgIcon:o.arrowRotateCcwIcon,titleKey:t.keys.undo},e=n.UndoRedo(s);e.displayName="Undo";exports.Undo=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@progress/kendo-svg-icons"),n=require("./utils.js"),t=require("../messages.js"),s={action:"undo",icon:"reset",svgIcon:o.arrowRotateCcwIcon,titleKey:t.keys.undo},e=n.UndoRedo(s);e.displayName="Undo";exports.Undo=e;
package/tools/undo.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 { arrowRotateCcwIcon as o } from "@progress/kendo-svg-icons";
10
9
  import { UndoRedo as t } from "./utils.mjs";
11
10
  import { keys as n } from "../messages.mjs";
package/tools/utils.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 y=require("react"),g=require("@progress/kendo-react-buttons"),f=require("@progress/kendo-react-inputs"),m=require("@progress/kendo-react-intl"),d=require("../messages.js");function v(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const c=v(y),_=["Arial","Courier New","Georgia","Times New Roman","Trebuchet MS","Verdana"],C="Arial",b=[8,9,10,11,12,13,14,16,18,20,22,24,26,28,36,48,72],k=12,F=[{text:"Automatic",value:null},{text:"Text",value:"@"},{text:"Number",value:"#,0.00"},{text:"Percent",value:"0.00%"},{text:"Financial",value:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)'},{text:"Currency",value:"$#,##0.00;[Red]$#,##0.00"},{text:"Date",value:"m/d/yyyy"},{text:"Time",value:"h:mm:ss AM/PM"},{text:"Date time",value:"m/d/yyyy h:mm"},{text:"Duration",value:"[h]:mm:ss"}],S=e=>t=>{const{property:o,icon:r,svgIcon:u,titleKey:l}=e,{spreadsheetRef:s,value:a}=t,i=c.useCallback(()=>{if(s.current){const p={command:"PropertyChangeCommand",options:{property:o,value:!a}};s.current.executeCommand(p)}},[a]);return c.createElement(g.Button,{type:"button",icon:r,svgIcon:u,fillMode:"flat",togglable:!0,onClick:i,selected:!!a,title:m.useLocalization().toLanguageString(l,d.messages[l])})},O=e=>t=>{const{property:o,titleKey:r,...u}=e,{spreadsheetRef:l,value:s}=t,a=c.useCallback(i=>{if(l.current){const T={command:"PropertyChangeCommand",options:{property:o,value:i.value||null}};l.current.executeCommand(T)}},[o]);return c.createElement(f.ColorPicker,{onChange:a,onActiveColorClick:a,fillMode:"flat",...u,title:m.useLocalization().toLanguageString(r,d.messages[r]),value:s})},A=e=>t=>{const{spreadsheetRef:o}=t,r=c.useCallback(()=>{o.current&&o.current.workbook.undoRedoStack[e.action]()},[]);return c.createElement(g.Button,{type:"button",icon:e.icon,svgIcon:e.svgIcon,fillMode:"flat",title:m.useLocalization().toLanguageString(e.titleKey,d.messages[e.titleKey]),onClick:r,togglable:!0})};exports.ColorTool=O;exports.DEFAULT_FONT_FAMILY=C;exports.DEFAULT_FONT_SIZE=k;exports.FONT_FAMILIES=_;exports.FONT_SIZES=b;exports.FORMATS=F;exports.PropertyChangeTool=S;exports.UndoRedo=A;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),g=require("@progress/kendo-react-buttons"),f=require("@progress/kendo-react-inputs"),m=require("@progress/kendo-react-intl"),d=require("../messages.js");function v(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const c=v(y),_=["Arial","Courier New","Georgia","Times New Roman","Trebuchet MS","Verdana"],C="Arial",b=[8,9,10,11,12,13,14,16,18,20,22,24,26,28,36,48,72],k=12,F=[{text:"Automatic",value:null},{text:"Text",value:"@"},{text:"Number",value:"#,0.00"},{text:"Percent",value:"0.00%"},{text:"Financial",value:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)'},{text:"Currency",value:"$#,##0.00;[Red]$#,##0.00"},{text:"Date",value:"m/d/yyyy"},{text:"Time",value:"h:mm:ss AM/PM"},{text:"Date time",value:"m/d/yyyy h:mm"},{text:"Duration",value:"[h]:mm:ss"}],S=e=>t=>{const{property:o,icon:r,svgIcon:u,titleKey:l}=e,{spreadsheetRef:s,value:a}=t,i=c.useCallback(()=>{if(s.current){const p={command:"PropertyChangeCommand",options:{property:o,value:!a}};s.current.executeCommand(p)}},[a]);return c.createElement(g.Button,{type:"button",icon:r,svgIcon:u,fillMode:"flat",togglable:!0,onClick:i,selected:!!a,title:m.useLocalization().toLanguageString(l,d.messages[l])})},O=e=>t=>{const{property:o,titleKey:r,...u}=e,{spreadsheetRef:l,value:s}=t,a=c.useCallback(i=>{if(l.current){const T={command:"PropertyChangeCommand",options:{property:o,value:i.value||null}};l.current.executeCommand(T)}},[o]);return c.createElement(f.ColorPicker,{onChange:a,onActiveColorClick:a,fillMode:"flat",...u,title:m.useLocalization().toLanguageString(r,d.messages[r]),value:s})},A=e=>t=>{const{spreadsheetRef:o}=t,r=c.useCallback(()=>{o.current&&o.current.workbook.undoRedoStack[e.action]()},[]);return c.createElement(g.Button,{type:"button",icon:e.icon,svgIcon:e.svgIcon,fillMode:"flat",title:m.useLocalization().toLanguageString(e.titleKey,d.messages[e.titleKey]),onClick:r,togglable:!0})};exports.ColorTool=O;exports.DEFAULT_FONT_FAMILY=C;exports.DEFAULT_FONT_SIZE=k;exports.FONT_FAMILIES=_;exports.FONT_SIZES=b;exports.FORMATS=F;exports.PropertyChangeTool=S;exports.UndoRedo=A;
package/tools/utils.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 r from "react";
10
9
  import { Button as v } from "@progress/kendo-react-buttons";
11
10
  import { ColorPicker as C } from "@progress/kendo-react-inputs";