@progress/kendo-react-spreadsheet 6.1.1 → 7.0.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 (147) hide show
  1. package/FormulaInput.d.ts +9 -0
  2. package/LICENSE.md +1 -1
  3. package/List.d.ts +9 -0
  4. package/NameBox.d.ts +9 -0
  5. package/SheetsBar.d.ts +8 -0
  6. package/{dist/npm/Spreadsheet.d.ts → Spreadsheet.d.ts} +4 -0
  7. package/{dist/npm/SpreadsheetProps.d.ts → SpreadsheetProps.d.ts} +5 -2
  8. package/dist/cdn/js/kendo-react-spreadsheet.js +5 -1
  9. package/index.d.ts +8 -0
  10. package/index.js +5 -0
  11. package/index.mjs +1357 -0
  12. package/{dist/npm/messages.d.ts → messages.d.ts} +4 -0
  13. package/package-metadata.d.ts +9 -0
  14. package/package.json +43 -57
  15. package/{dist/npm/tools → tools}/adjustDecimals.d.ts +4 -0
  16. package/{dist/npm/tools → tools}/align.d.ts +4 -0
  17. package/tools/backgroundColor.d.ts +14 -0
  18. package/tools/bold.d.ts +14 -0
  19. package/tools/cleanFormat.d.ts +15 -0
  20. package/tools/defaultTools.d.ts +9 -0
  21. package/tools/export.d.ts +15 -0
  22. package/tools/fontFamily.d.ts +15 -0
  23. package/{dist/es/tools → tools}/fontSize.d.ts +4 -0
  24. package/tools/format.d.ts +15 -0
  25. package/{dist/es/tools → tools}/gridLines.d.ts +4 -0
  26. package/{dist/es/tools → tools}/index.d.ts +5 -1
  27. package/tools/italic.d.ts +14 -0
  28. package/tools/open.d.ts +15 -0
  29. package/tools/redo.d.ts +14 -0
  30. package/{dist/npm/tools → tools}/tableTools.d.ts +4 -0
  31. package/tools/textColor.d.ts +14 -0
  32. package/{dist/es/tools → tools}/textWrap.d.ts +4 -0
  33. package/tools/underline.d.ts +14 -0
  34. package/tools/undo.d.ts +14 -0
  35. package/{dist/npm/tools → tools}/utils.d.ts +4 -0
  36. package/about.md +0 -3
  37. package/dist/es/FormulaInput.d.ts +0 -5
  38. package/dist/es/FormulaInput.js +0 -116
  39. package/dist/es/List.d.ts +0 -5
  40. package/dist/es/List.js +0 -22
  41. package/dist/es/NameBox.d.ts +0 -5
  42. package/dist/es/NameBox.js +0 -91
  43. package/dist/es/SheetsBar.d.ts +0 -5
  44. package/dist/es/SheetsBar.js +0 -246
  45. package/dist/es/Spreadsheet.d.ts +0 -47
  46. package/dist/es/Spreadsheet.js +0 -286
  47. package/dist/es/SpreadsheetProps.d.ts +0 -189
  48. package/dist/es/SpreadsheetProps.js +0 -2
  49. package/dist/es/main.d.ts +0 -4
  50. package/dist/es/main.js +0 -4
  51. package/dist/es/messages.d.ts +0 -110
  52. package/dist/es/messages.js +0 -310
  53. package/dist/es/package-metadata.d.ts +0 -5
  54. package/dist/es/package-metadata.js +0 -11
  55. package/dist/es/tools/adjustDecimals.d.ts +0 -20
  56. package/dist/es/tools/adjustDecimals.js +0 -39
  57. package/dist/es/tools/align.d.ts +0 -44
  58. package/dist/es/tools/align.js +0 -96
  59. package/dist/es/tools/backgroundColor.d.ts +0 -11
  60. package/dist/es/tools/backgroundColor.js +0 -15
  61. package/dist/es/tools/bold.d.ts +0 -11
  62. package/dist/es/tools/bold.js +0 -9
  63. package/dist/es/tools/cleanFormat.d.ts +0 -11
  64. package/dist/es/tools/cleanFormat.js +0 -17
  65. package/dist/es/tools/defaultTools.d.ts +0 -5
  66. package/dist/es/tools/defaultTools.js +0 -66
  67. package/dist/es/tools/export.d.ts +0 -11
  68. package/dist/es/tools/export.js +0 -19
  69. package/dist/es/tools/fontFamily.d.ts +0 -11
  70. package/dist/es/tools/fontFamily.js +0 -21
  71. package/dist/es/tools/fontSize.js +0 -82
  72. package/dist/es/tools/format.d.ts +0 -11
  73. package/dist/es/tools/format.js +0 -26
  74. package/dist/es/tools/gridLines.js +0 -25
  75. package/dist/es/tools/index.js +0 -18
  76. package/dist/es/tools/italic.d.ts +0 -11
  77. package/dist/es/tools/italic.js +0 -9
  78. package/dist/es/tools/open.d.ts +0 -11
  79. package/dist/es/tools/open.js +0 -36
  80. package/dist/es/tools/redo.d.ts +0 -11
  81. package/dist/es/tools/redo.js +0 -9
  82. package/dist/es/tools/tableTools.d.ts +0 -64
  83. package/dist/es/tools/tableTools.js +0 -102
  84. package/dist/es/tools/textColor.d.ts +0 -11
  85. package/dist/es/tools/textColor.js +0 -15
  86. package/dist/es/tools/textWrap.js +0 -26
  87. package/dist/es/tools/underline.d.ts +0 -11
  88. package/dist/es/tools/underline.js +0 -9
  89. package/dist/es/tools/undo.d.ts +0 -11
  90. package/dist/es/tools/undo.js +0 -9
  91. package/dist/es/tools/utils.d.ts +0 -91
  92. package/dist/es/tools/utils.js +0 -102
  93. package/dist/npm/FormulaInput.d.ts +0 -5
  94. package/dist/npm/FormulaInput.js +0 -119
  95. package/dist/npm/List.d.ts +0 -5
  96. package/dist/npm/List.js +0 -25
  97. package/dist/npm/NameBox.d.ts +0 -5
  98. package/dist/npm/NameBox.js +0 -94
  99. package/dist/npm/SheetsBar.d.ts +0 -5
  100. package/dist/npm/SheetsBar.js +0 -250
  101. package/dist/npm/Spreadsheet.js +0 -289
  102. package/dist/npm/SpreadsheetProps.js +0 -9
  103. package/dist/npm/main.d.ts +0 -4
  104. package/dist/npm/main.js +0 -39
  105. package/dist/npm/messages.js +0 -313
  106. package/dist/npm/package-metadata.d.ts +0 -5
  107. package/dist/npm/package-metadata.js +0 -14
  108. package/dist/npm/tools/adjustDecimals.js +0 -42
  109. package/dist/npm/tools/align.js +0 -100
  110. package/dist/npm/tools/backgroundColor.d.ts +0 -11
  111. package/dist/npm/tools/backgroundColor.js +0 -18
  112. package/dist/npm/tools/bold.d.ts +0 -11
  113. package/dist/npm/tools/bold.js +0 -12
  114. package/dist/npm/tools/cleanFormat.d.ts +0 -11
  115. package/dist/npm/tools/cleanFormat.js +0 -21
  116. package/dist/npm/tools/defaultTools.d.ts +0 -5
  117. package/dist/npm/tools/defaultTools.js +0 -69
  118. package/dist/npm/tools/export.d.ts +0 -11
  119. package/dist/npm/tools/export.js +0 -23
  120. package/dist/npm/tools/fontFamily.d.ts +0 -11
  121. package/dist/npm/tools/fontFamily.js +0 -25
  122. package/dist/npm/tools/fontSize.d.ts +0 -39
  123. package/dist/npm/tools/fontSize.js +0 -86
  124. package/dist/npm/tools/format.d.ts +0 -11
  125. package/dist/npm/tools/format.js +0 -30
  126. package/dist/npm/tools/gridLines.d.ts +0 -15
  127. package/dist/npm/tools/gridLines.js +0 -29
  128. package/dist/npm/tools/index.d.ts +0 -19
  129. package/dist/npm/tools/index.js +0 -34
  130. package/dist/npm/tools/italic.d.ts +0 -11
  131. package/dist/npm/tools/italic.js +0 -12
  132. package/dist/npm/tools/open.d.ts +0 -11
  133. package/dist/npm/tools/open.js +0 -40
  134. package/dist/npm/tools/redo.d.ts +0 -11
  135. package/dist/npm/tools/redo.js +0 -12
  136. package/dist/npm/tools/tableTools.js +0 -105
  137. package/dist/npm/tools/textColor.d.ts +0 -11
  138. package/dist/npm/tools/textColor.js +0 -18
  139. package/dist/npm/tools/textWrap.d.ts +0 -15
  140. package/dist/npm/tools/textWrap.js +0 -30
  141. package/dist/npm/tools/underline.d.ts +0 -11
  142. package/dist/npm/tools/underline.js +0 -12
  143. package/dist/npm/tools/undo.d.ts +0 -11
  144. package/dist/npm/tools/undo.js +0 -12
  145. package/dist/npm/tools/utils.js +0 -108
  146. package/dist/systemjs/kendo-react-spreadsheet.js +0 -1
  147. package/e2e-next/basic.tests.ts +0 -24
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  /**
2
6
  * @hidden
3
7
  */
@@ -0,0 +1,9 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { PackageMetadata } from '@progress/kendo-licensing';
6
+ /**
7
+ * @hidden
8
+ */
9
+ export declare const packageMetadata: PackageMetadata;
package/package.json CHANGED
@@ -1,21 +1,45 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-spreadsheet",
3
+ "version": "7.0.0-develop.10",
3
4
  "description": "KendoReact Spreadsheet package",
4
- "version": "6.1.1",
5
- "repository": {
6
- "type": "git",
7
- "url": "https://github.com/telerik/kendo-react.git"
5
+ "author": "Progress",
6
+ "license": "SEE LICENSE IN LICENSE.md",
7
+ "homepage": "https://www.telerik.com/kendo-react-ui",
8
+ "main": "./index.js",
9
+ "types": "./index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./index.mjs",
13
+ "require": "./index.js"
14
+ }
15
+ },
16
+ "sideEffects": false,
17
+ "peerDependencies": {
18
+ "@progress/jszip-esm": "^1.0.3",
19
+ "@progress/kendo-common": "^0.2.2",
20
+ "@progress/kendo-date-math": "^1.5.10",
21
+ "@progress/kendo-drawing": "^1.17.5",
22
+ "@progress/kendo-file-saver": "^1.1.1",
23
+ "@progress/kendo-licensing": "^1.3.0",
24
+ "@progress/kendo-ooxml": "^1.7.0",
25
+ "@progress/kendo-react-buttons": "7.0.0-develop.10",
26
+ "@progress/kendo-react-common": "7.0.0-develop.10",
27
+ "@progress/kendo-react-dialogs": "7.0.0-develop.10",
28
+ "@progress/kendo-react-dropdowns": "7.0.0-develop.10",
29
+ "@progress/kendo-react-inputs": "7.0.0-develop.10",
30
+ "@progress/kendo-react-intl": "7.0.0-develop.10",
31
+ "@progress/kendo-react-layout": "7.0.0-develop.10",
32
+ "@progress/kendo-react-popup": "7.0.0-develop.10",
33
+ "@progress/kendo-react-sortable": "7.0.0-develop.10",
34
+ "@progress/kendo-react-upload": "7.0.0-develop.10",
35
+ "@progress/kendo-spreadsheet-common": "v1.0.1",
36
+ "@progress/kendo-svg-icons": "^2.0.0",
37
+ "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
38
+ "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
8
39
  },
9
- "main": "dist/npm/main.js",
10
- "types": "dist/npm/main.d.ts",
11
- "module": "dist/es/main.js",
12
- "jsnext:main": "dist/es/main.js",
13
- "scripts": {
14
- "test": "cd ../../ && npm run test -- --testPathPattern=/packages/spreadsheet/.*",
15
- "start": "gulp start",
16
- "build-package": "gulp build-package"
40
+ "dependencies": {
41
+ "prop-types": "^15.6.0"
17
42
  },
18
- "homepage": "https://www.telerik.com/kendo-react-ui",
19
43
  "keywords": [
20
44
  "Kendo UI",
21
45
  "React",
@@ -28,53 +52,15 @@
28
52
  "React component",
29
53
  "Telerik"
30
54
  ],
31
- "peerDependencies": {
32
- "@progress/kendo-licensing": "^1.3.0",
33
- "@progress/kendo-react-buttons": "^6.0.0",
34
- "@progress/kendo-react-dialogs": "^6.0.0",
35
- "@progress/kendo-react-dropdowns": "^6.0.0",
36
- "@progress/kendo-react-inputs": "^6.0.0",
37
- "@progress/kendo-react-intl": "^6.0.0",
38
- "@progress/kendo-react-layout": "^6.0.0",
39
- "@progress/kendo-react-popup": "^6.0.0",
40
- "@progress/kendo-react-sortable": "^6.0.0",
41
- "@progress/kendo-react-upload": "^6.0.0",
42
- "@progress/kendo-svg-icons": "^2.0.0",
43
- "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
44
- "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
45
- },
46
- "dependencies": {
47
- "@progress/jszip-esm": "^1.0.3",
48
- "@progress/kendo-common": "^0.2.2",
49
- "@progress/kendo-date-math": "^1.5.10",
50
- "@progress/kendo-drawing": "^1.17.5",
51
- "@progress/kendo-file-saver": "^1.1.1",
52
- "@progress/kendo-ooxml": "^1.7.0",
53
- "@progress/kendo-react-common": "6.1.1",
54
- "@progress/kendo-spreadsheet-common": "v1.0.0",
55
- "prop-types": "^15.6.0"
56
- },
57
- "devDependencies": {
58
- "@progress/kendo-licensing": "^1.3.0",
59
- "@progress/kendo-react-buttons": "6.1.1",
60
- "@progress/kendo-react-dialogs": "6.1.1",
61
- "@progress/kendo-react-dropdowns": "6.1.1",
62
- "@progress/kendo-react-inputs": "6.1.1",
63
- "@progress/kendo-react-intl": "6.1.1",
64
- "@progress/kendo-react-layout": "6.1.1",
65
- "@progress/kendo-react-popup": "6.1.1",
66
- "@progress/kendo-react-sortable": "6.1.1",
67
- "@progress/kendo-react-upload": "6.1.1",
68
- "@progress/kendo-svg-icons": "^2.0.0"
69
- },
70
55
  "@progress": {
71
56
  "friendlyName": "Spreadsheet",
72
57
  "framework": "KendoReact"
73
58
  },
74
- "author": "Progress",
75
- "license": "SEE LICENSE IN LICENSE.md",
59
+ "repository": {
60
+ "type": "git",
61
+ "url": "git+https://github.com/telerik/kendo-react.git"
62
+ },
76
63
  "publishConfig": {
77
64
  "access": "public"
78
- },
79
- "sideEffects": false
80
- }
65
+ }
66
+ }
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  import * as React from 'react';
2
6
  import { SpreadsheetToolProps } from './utils';
3
7
  /**
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  import * as React from 'react';
2
6
  import { SpreadsheetToolProps } from './utils';
3
7
  /**
@@ -0,0 +1,14 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ColorToolProps } from './utils';
6
+ /**
7
+ * The props of the BackgroundColor tool component.
8
+ */
9
+ export interface BackgroundColorProps extends ColorToolProps {
10
+ }
11
+ /**
12
+ * The BackgroundColor tool component.
13
+ */
14
+ export declare const BackgroundColor: React.FunctionComponent<BackgroundColorProps>;
@@ -0,0 +1,14 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { PropertyChangeToolProps } from './utils';
6
+ /**
7
+ * The props of the Bold tool component.
8
+ */
9
+ export interface BoldProps extends PropertyChangeToolProps {
10
+ }
11
+ /**
12
+ * The Bold tool component.
13
+ */
14
+ export declare const Bold: React.FunctionComponent<BoldProps>;
@@ -0,0 +1,15 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import * as React from 'react';
6
+ import { PropertyChangeToolProps } from './utils';
7
+ /**
8
+ * @hidden
9
+ */
10
+ export interface CleanFormattingProps extends PropertyChangeToolProps {
11
+ }
12
+ /**
13
+ * @hidden
14
+ */
15
+ export declare const CleanFormatting: React.FunctionComponent<CleanFormattingProps>;
@@ -0,0 +1,9 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { SpreadsheetTab } from '../SpreadsheetProps';
6
+ /**
7
+ * The default toolbar configuration.
8
+ */
9
+ export declare const defaultTabs: SpreadsheetTab[];
@@ -0,0 +1,15 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import * as React from 'react';
6
+ import { SpreadsheetToolProps } from './utils';
7
+ /**
8
+ * The props of the ExcelExport tool component.
9
+ */
10
+ export interface ExcelExportProps extends SpreadsheetToolProps {
11
+ }
12
+ /**
13
+ * The ExcelExport tool component.
14
+ */
15
+ export declare const ExcelExport: React.FunctionComponent<ExcelExportProps>;
@@ -0,0 +1,15 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import * as React from 'react';
6
+ import { DropDownToolProps } from './utils';
7
+ /**
8
+ * The props of the FontFamily tool component.
9
+ */
10
+ export interface FontFamilyProps extends DropDownToolProps {
11
+ }
12
+ /**
13
+ * The FontFamily tool component.
14
+ */
15
+ export declare const FontFamily: React.FunctionComponent<FontFamilyProps>;
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  import * as React from 'react';
2
6
  import { DropDownToolProps, SpreadsheetToolProps } from './utils';
3
7
  /**
@@ -0,0 +1,15 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import * as React from 'react';
6
+ import { SpreadsheetToolProps } from './utils';
7
+ /**
8
+ * The props of the Format tool component.
9
+ */
10
+ export interface FormatProps extends SpreadsheetToolProps {
11
+ }
12
+ /**
13
+ * The Format tool component.
14
+ */
15
+ export declare const Format: React.FunctionComponent<FormatProps>;
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  import * as React from 'react';
2
6
  import { SpreadsheetToolProps } from './utils';
3
7
  /**
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  export * from './align';
2
6
  export * from './backgroundColor';
3
7
  export * from './bold';
@@ -16,4 +20,4 @@ export * from './textColor';
16
20
  export * from './textWrap';
17
21
  export * from './underline';
18
22
  export * from './undo';
19
- export { SpreadsheetToolProps } from './utils';
23
+ export { type SpreadsheetToolProps } from './utils';
@@ -0,0 +1,14 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { PropertyChangeToolProps } from './utils';
6
+ /**
7
+ * The props of the Italic tool component.
8
+ */
9
+ export interface ItalicProps extends PropertyChangeToolProps {
10
+ }
11
+ /**
12
+ * The Italic tool component.
13
+ */
14
+ export declare const Italic: React.FunctionComponent<ItalicProps>;
@@ -0,0 +1,15 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import * as React from 'react';
6
+ import { SpreadsheetToolProps } from './utils';
7
+ /**
8
+ * The props of the Open tool component.
9
+ */
10
+ export interface OpenProps extends SpreadsheetToolProps {
11
+ }
12
+ /**
13
+ * The Open tool component.
14
+ */
15
+ export declare const Open: React.FunctionComponent<OpenProps>;
@@ -0,0 +1,14 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { SpreadsheetToolProps } from './utils';
6
+ /**
7
+ * The props of the Redo tool component.
8
+ */
9
+ export interface RedoProps extends SpreadsheetToolProps {
10
+ }
11
+ /**
12
+ * The Redo tool component.
13
+ */
14
+ export declare const Redo: React.FunctionComponent<RedoProps>;
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  import * as React from 'react';
2
6
  import { SpreadsheetToolProps } from './utils';
3
7
  import { SelectedHeaders } from '@progress/kendo-spreadsheet-common';
@@ -0,0 +1,14 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ColorToolProps } from './utils';
6
+ /**
7
+ * The props of the TextColor tool component.
8
+ */
9
+ export interface TextColorProps extends ColorToolProps {
10
+ }
11
+ /**
12
+ * The TextColor tool component.
13
+ */
14
+ export declare const TextColor: React.FunctionComponent<TextColorProps>;
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  import * as React from 'react';
2
6
  import { SpreadsheetToolProps } from './utils';
3
7
  /**
@@ -0,0 +1,14 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { PropertyChangeToolProps } from './utils';
6
+ /**
7
+ * The props of the Underline tool component.
8
+ */
9
+ export interface UnderlineProps extends PropertyChangeToolProps {
10
+ }
11
+ /**
12
+ * The Underline tool component.
13
+ */
14
+ export declare const Underline: React.FunctionComponent<UnderlineProps>;
@@ -0,0 +1,14 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { SpreadsheetToolProps } from './utils';
6
+ /**
7
+ * The props of the Undo tool component.
8
+ */
9
+ export interface UndoProps extends SpreadsheetToolProps {
10
+ }
11
+ /**
12
+ * The Undo tool component.
13
+ */
14
+ export declare const Undo: React.FunctionComponent<UndoProps>;
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  import * as React from 'react';
2
6
  import { SpreadsheetWidget } from './../SpreadsheetProps';
3
7
  import { ColorPickerProps } from '@progress/kendo-react-inputs';
package/about.md DELETED
@@ -1,3 +0,0 @@
1
- <a href="https://www.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-spreadsheet&utm_content=banner" target="_blank">
2
- <img src="https://www.telerik.com/kendo-react-ui/components/npm-banner.svg" alt="KendoReact NPM Banner">
3
- </a>
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- /**
3
- * @hidden
4
- */
5
- export declare const FormulaInput: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
@@ -1,116 +0,0 @@
1
- import * as React from 'react';
2
- import { Popup } from '@progress/kendo-react-popup';
3
- import { List } from './List';
4
- import { classNames } from '@progress/kendo-react-common';
5
- /**
6
- * @hidden
7
- */
8
- export const FormulaInput = React.forwardRef((props, ref) => {
9
- const [showPopup, setShowPopup] = React.useState(false);
10
- const [popupContentKey, setPopupContentKey] = React.useState(0);
11
- const [data, setData] = React.useState([]);
12
- const memo = React.useMemo(() => ({}), []);
13
- memo.showPopup = showPopup;
14
- memo.popupContentKey = popupContentKey;
15
- memo.data = data;
16
- const target = React.useRef(null);
17
- const elementRef = React.useRef(null);
18
- const listRef = React.useRef(null);
19
- const focusedItem = React.useCallback(() => {
20
- if (listRef.current && listRef.current.element) {
21
- return listRef.current.element.querySelector('.k-focus');
22
- }
23
- }, []);
24
- const unfocus = React.useCallback(() => {
25
- const focused = focusedItem();
26
- if (focused) {
27
- focused.classList.remove('k-focus');
28
- }
29
- }, []);
30
- const focusNext = React.useCallback((dir) => {
31
- const items = Array.from((listRef.current && listRef.current.element.children) || []);
32
- const focused = focusedItem();
33
- let next;
34
- if (focused) {
35
- const index = items.indexOf(focused);
36
- focused.classList.remove('k-focus');
37
- next = items[index + dir] ? items[index + dir] : (dir === 1 ? items[0] : items[items.length - 1]);
38
- }
39
- else {
40
- next = (dir === 1 ? items[0] : items[items.length - 1]);
41
- }
42
- if (next) {
43
- next.classList.add('k-focus');
44
- }
45
- }, []);
46
- React.useImperativeHandle(target, () => ({
47
- element: elementRef.current,
48
- props,
49
- popup: {
50
- open: () => {
51
- setShowPopup(true);
52
- },
53
- close: () => {
54
- setShowPopup(false);
55
- },
56
- position: () => {
57
- setPopupContentKey(memo.popupContentKey + 1);
58
- },
59
- visible: () => {
60
- return memo.showPopup;
61
- }
62
- },
63
- list: {
64
- get element() { return listRef.current && listRef.current.element; },
65
- data: (d) => {
66
- if (d) {
67
- setData(d);
68
- }
69
- else {
70
- return memo.data;
71
- }
72
- },
73
- value: () => { return {}; },
74
- focus: () => {
75
- const items = Array.from((listRef.current && listRef.current.element && listRef.current.element.children) || []);
76
- return items.indexOf(focusedItem());
77
- },
78
- // select: (x) => {
79
- // console.log('select', x);
80
- // },
81
- focusNext: () => {
82
- focusNext(1);
83
- },
84
- focusPrev: () => {
85
- focusNext(-1);
86
- },
87
- focusFirst: () => {
88
- const list = listRef.current && listRef.current.element;
89
- if (list && list.children.item(0)) {
90
- unfocus();
91
- list.children.item(0).classList.add('k-focus');
92
- }
93
- },
94
- focusLast: () => {
95
- const list = listRef.current && listRef.current.element;
96
- if (list && list.children.length) {
97
- unfocus();
98
- list.children.item(list.children.length - 1).classList.add('k-focus');
99
- }
100
- },
101
- itemClick: (handler) => { memo.itemClick = handler; }
102
- }
103
- }), []);
104
- React.useImperativeHandle(ref, () => target.current, []);
105
- const onItemClick = React.useCallback((value) => {
106
- if (memo.itemClick) {
107
- memo.itemClick(value);
108
- }
109
- }, []);
110
- return (React.createElement(React.Fragment, null,
111
- React.createElement("div", { className: classNames('k-spreadsheet-formula-input', props.className), contentEditable: "true", spellCheck: "false", style: { whiteSpace: 'pre' }, ref: elementRef }),
112
- React.createElement(Popup, { show: showPopup, anchor: elementRef.current, animate: { openDuration: 100, closeDuration: 100 }, contentKey: popupContentKey, popupClass: "k-list-container" },
113
- React.createElement(List, { data: data, ref: listRef, onItemClick: onItemClick }))));
114
- });
115
- FormulaInput.displayName = 'FormulaInput';
116
- FormulaInput.propTypes = {};
package/dist/es/List.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- /**
3
- * @hidden
4
- */
5
- export declare const List: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
package/dist/es/List.js DELETED
@@ -1,22 +0,0 @@
1
- import * as React from 'react';
2
- import { IconWrap } from '@progress/kendo-react-common';
3
- import { formulaFxIcon } from '@progress/kendo-svg-icons';
4
- /**
5
- * @hidden
6
- */
7
- export const List = React.forwardRef((props, ref) => {
8
- const target = React.useRef(null);
9
- const ulRef = React.useRef(null);
10
- React.useImperativeHandle(target, () => ({
11
- element: ulRef.current,
12
- props
13
- }));
14
- React.useImperativeHandle(ref, () => target.current);
15
- return (React.createElement("div", { className: "k-list k-list-md" },
16
- React.createElement("div", { className: "k-list-content" },
17
- React.createElement("ul", { ref: ulRef, className: "k-spreadsheet-formula-list k-list-ul", onMouseDown: e => e.preventDefault(), style: { maxHeight: 280 } }, props.data.map((item) => (React.createElement("li", { key: item.text, className: "k-list-item", onClick: () => props.onItemClick(item.value) },
18
- React.createElement(IconWrap, { name: "formula-fx", icon: formulaFxIcon }),
19
- React.createElement("span", { className: "k-list-item-text" }, item.text))))))));
20
- });
21
- List.displayName = 'List';
22
- List.propTypes = {};
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- /**
3
- * @hidden
4
- */
5
- export declare const NameBox: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;