@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.
- package/FormulaInput.js +1 -1
- package/FormulaInput.mjs +0 -1
- package/List.js +1 -1
- package/List.mjs +7 -8
- package/NameBox.js +1 -1
- package/NameBox.mjs +0 -1
- package/SheetsBar.js +1 -1
- package/SheetsBar.mjs +0 -1
- package/Spreadsheet.js +1 -1
- package/Spreadsheet.mjs +0 -1
- package/dist/cdn/js/kendo-react-spreadsheet.js +8 -1
- package/index.js +2 -1
- package/index.mjs +12 -12
- package/messages.js +1 -1
- package/messages.mjs +0 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -3
- package/package.json +12 -12
- package/tools/adjustDecimals.js +1 -1
- package/tools/adjustDecimals.mjs +5 -6
- package/tools/align.js +1 -1
- package/tools/align.mjs +0 -1
- package/tools/backgroundColor.js +1 -1
- package/tools/backgroundColor.mjs +0 -1
- package/tools/bold.js +1 -1
- package/tools/bold.mjs +4 -5
- package/tools/cleanFormat.js +1 -1
- package/tools/cleanFormat.mjs +6 -7
- package/tools/defaultTools.js +1 -1
- package/tools/defaultTools.mjs +6 -7
- package/tools/export.js +1 -1
- package/tools/export.mjs +0 -1
- package/tools/fontFamily.js +1 -1
- package/tools/fontFamily.mjs +0 -1
- package/tools/fontSize.js +1 -1
- package/tools/fontSize.mjs +12 -13
- package/tools/format.js +1 -1
- package/tools/format.mjs +9 -10
- package/tools/gridLines.js +1 -1
- package/tools/gridLines.mjs +9 -10
- package/tools/italic.js +1 -1
- package/tools/italic.mjs +3 -4
- package/tools/open.js +1 -1
- package/tools/open.mjs +0 -1
- package/tools/redo.js +1 -1
- package/tools/redo.mjs +2 -3
- package/tools/tableTools.js +1 -1
- package/tools/tableTools.mjs +0 -1
- package/tools/textColor.js +1 -1
- package/tools/textColor.mjs +0 -1
- package/tools/textWrap.js +1 -1
- package/tools/textWrap.mjs +12 -13
- package/tools/underline.js +1 -1
- package/tools/underline.mjs +0 -1
- package/tools/undo.js +1 -1
- package/tools/undo.mjs +0 -1
- package/tools/utils.js +1 -1
- package/tools/utils.mjs +0 -1
package/tools/tableTools.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
|
|
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;
|
package/tools/tableTools.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 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";
|
package/tools/textColor.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
|
|
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;
|
package/tools/textColor.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 { 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
|
|
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;
|
package/tools/textWrap.mjs
CHANGED
|
@@ -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
|
|
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
|
|
13
|
-
import { keys as r, messages as
|
|
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:
|
|
16
|
-
if (
|
|
17
|
-
const
|
|
18
|
-
if (
|
|
19
|
-
const
|
|
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: !
|
|
20
|
+
options: { property: "wrap", value: !e.range(e.activeCell()).wrap() }
|
|
22
21
|
};
|
|
23
|
-
|
|
22
|
+
t.current.executeCommand(p);
|
|
24
23
|
}
|
|
25
24
|
}
|
|
26
25
|
}, []);
|
|
27
26
|
return /* @__PURE__ */ o.createElement(
|
|
28
|
-
|
|
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:
|
|
34
|
+
title: m().toLanguageString(r.textWrap, l[r.textWrap]),
|
|
36
35
|
onClick: c,
|
|
37
36
|
selected: n
|
|
38
37
|
}
|
package/tools/underline.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
|
|
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;
|
package/tools/underline.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 { 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
|
|
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
|
|
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";
|