pixel-react 1.2.7 → 1.2.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. package/lib/components/Drawer/Types.d.ts +23 -12
  2. package/lib/components/Editor/Editor.d.ts +5 -0
  3. package/lib/components/Editor/Editor.stories.d.ts +6 -0
  4. package/lib/components/Editor/VariableDropdown.d.ts +5 -0
  5. package/lib/components/Editor/constants.d.ts +3 -0
  6. package/lib/components/Editor/index.d.ts +1 -0
  7. package/lib/components/Editor/types.d.ts +71 -0
  8. package/lib/components/Excel/ContextMenu/ContextMenu.d.ts +4 -0
  9. package/lib/components/Excel/ExcelFile/ExcelFile.d.ts +20 -0
  10. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.d.ts +7 -0
  11. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Cell.d.ts +4 -0
  12. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.d.ts +5 -0
  13. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Copied.d.ts +3 -0
  14. package/lib/components/Excel/ExcelFile/ExcelFileComponents/CornerIndicator.d.ts +5 -0
  15. package/lib/components/Excel/ExcelFile/ExcelFileComponents/DataEditor.d.ts +5 -0
  16. package/lib/components/Excel/ExcelFile/ExcelFileComponents/DataViewer.d.ts +8 -0
  17. package/lib/components/Excel/ExcelFile/ExcelFileComponents/FloatingRect.d.ts +10 -0
  18. package/lib/components/Excel/ExcelFile/ExcelFileComponents/HeaderRow.d.ts +3 -0
  19. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Row.d.ts +3 -0
  20. package/lib/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.d.ts +5 -0
  21. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Selected.d.ts +3 -0
  22. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.d.ts +80 -0
  23. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Table.d.ts +3 -0
  24. package/lib/components/Excel/ExcelFile/ExcelFileComponents/actions.d.ts +203 -0
  25. package/lib/components/Excel/ExcelFile/ExcelFileComponents/areModelsEqual.d.ts +1 -0
  26. package/lib/components/Excel/ExcelFile/ExcelFileComponents/context.d.ts +8 -0
  27. package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/engine.d.ts +22 -0
  28. package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/formula.d.ts +17 -0
  29. package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/index.d.ts +2 -0
  30. package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/point-graph.d.ts +21 -0
  31. package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/point-hash.d.ts +3 -0
  32. package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/point-set.d.ts +24 -0
  33. package/lib/components/Excel/ExcelFile/ExcelFileComponents/index.d.ts +13 -0
  34. package/lib/components/Excel/ExcelFile/ExcelFileComponents/matrix.d.ts +67 -0
  35. package/lib/components/Excel/ExcelFile/ExcelFileComponents/point-range.d.ts +22 -0
  36. package/lib/components/Excel/ExcelFile/ExcelFileComponents/point.d.ts +11 -0
  37. package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.d.ts +4 -0
  38. package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.d.ts +40 -0
  39. package/lib/components/Excel/ExcelFile/ExcelFileComponents/selection.d.ts +95 -0
  40. package/lib/components/Excel/ExcelFile/ExcelFileComponents/types.d.ts +178 -0
  41. package/lib/components/Excel/ExcelFile/ExcelFileComponents/use-dispatch.d.ts +3 -0
  42. package/lib/components/Excel/ExcelFile/ExcelFileComponents/use-selector.d.ts +3 -0
  43. package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.d.ts +44 -0
  44. package/lib/components/Excel/ExcelFile.stories.d.ts +6 -0
  45. package/lib/components/Excel/ExcelToolBar/ExcelToolBar.d.ts +19 -0
  46. package/lib/components/Excel/Types.d.ts +129 -0
  47. package/lib/components/Excel/index.d.ts +1 -0
  48. package/lib/components/ExcelFile/ColorBarselector/ColorBarSelector.d.ts +8 -0
  49. package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +2 -2
  50. package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +2 -2
  51. package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +1 -1
  52. package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +2 -2
  53. package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +2 -2
  54. package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +2 -2
  55. package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +2 -2
  56. package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +1 -1
  57. package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +1 -1
  58. package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +2 -2
  59. package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +1 -1
  60. package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +7 -6
  61. package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +1 -1
  62. package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +5 -49
  63. package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +3 -3
  64. package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +5 -5
  65. package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +6 -6
  66. package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +2 -2
  67. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +2 -2
  68. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +1 -1
  69. package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +1 -1
  70. package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +11 -11
  71. package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +1 -1
  72. package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +1 -1
  73. package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +5 -5
  74. package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +3 -3
  75. package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +48 -11
  76. package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +1 -1
  77. package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +1 -1
  78. package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +12 -11
  79. package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +0 -16
  80. package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +3 -0
  81. package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +0 -12
  82. package/lib/components/ExcelFile/Types.d.ts +49 -2
  83. package/lib/components/InputWithDropdown/InputWithDropdown.d.ts +1 -1
  84. package/lib/components/InputWithDropdown/types.d.ts +3 -1
  85. package/lib/components/MenuOption/MenuOption.d.ts +1 -1
  86. package/lib/components/MenuOption/types.d.ts +4 -0
  87. package/lib/components/Select/Select.d.ts +3 -2
  88. package/lib/components/Select/Select.stories.d.ts +1 -0
  89. package/lib/components/Select/components/Dropdown.d.ts +5 -0
  90. package/lib/components/Select/components/types.d.ts +18 -0
  91. package/lib/components/Select/types.d.ts +2 -42
  92. package/lib/components/Toastify/Toastify.d.ts +5 -4
  93. package/lib/components/Toastify/types.d.ts +1 -0
  94. package/lib/index.d.ts +75 -30
  95. package/lib/index.esm.js +1734 -1441
  96. package/lib/index.esm.js.map +1 -1
  97. package/lib/index.js +1734 -1440
  98. package/lib/index.js.map +1 -1
  99. package/lib/tsconfig.tsbuildinfo +1 -1
  100. package/lib/utils/getSequentialPayload/getSequentialPayload.d.ts +2 -0
  101. package/lib/utils/getSequentialPayload/getSequentialPayload.stories.d.ts +10 -0
  102. package/lib/utils/getSequentialPayload/types.d.ts +30 -0
  103. package/package.json +1 -1
  104. package/src/assets/Themes/BaseTheme.scss +5 -0
  105. package/src/assets/Themes/DarkTheme.scss +2 -0
  106. package/src/assets/icons/maximize_icon.svg +5 -0
  107. package/src/assets/styles/_fonts.scss +1 -1
  108. package/src/components/AllProjectsDropdown/AllProjectsDropdown.scss +15 -6
  109. package/src/components/AllProjectsDropdown/AllProjectsDropdown.stories.tsx +0 -5
  110. package/src/components/AllProjectsDropdown/AllProjectsDropdown.tsx +20 -10
  111. package/src/components/Drawer/Drawer.scss +1 -0
  112. package/src/components/Drawer/Types.ts +24 -13
  113. package/src/components/Excel/ExcelFile/ExcelFile.scss +62 -0
  114. package/src/components/Excel/ExcelFile/ExcelFile.tsx +312 -0
  115. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/ActiveCell.tsx +2 -2
  116. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/Cell.tsx +3 -3
  117. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/ColumnIndicator.tsx +4 -4
  118. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/CornerIndicator.tsx +2 -2
  119. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/DataEditor.tsx +1 -1
  120. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/DataViewer.tsx +3 -3
  121. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/FloatingRect.tsx +4 -4
  122. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/RowIndicator.tsx +4 -4
  123. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/Spreadsheet.scss +26 -24
  124. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/Spreadsheet.tsx +13 -45
  125. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/Table.tsx +1 -1
  126. package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/actions.ts +88 -20
  127. package/src/components/Excel/ExcelFile/ExcelFileComponents/reducer.ts +495 -0
  128. package/src/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.ts +758 -0
  129. package/src/components/{ExcelFile → Excel}/ExcelFile.stories.tsx +45 -0
  130. package/src/components/Excel/ExcelToolBar/ExcelToolBar.scss +36 -0
  131. package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +346 -0
  132. package/src/components/Form/Form.scss +54 -35
  133. package/src/components/Form/Form.stories.tsx +264 -225
  134. package/src/components/Icon/Icons.scss +4 -0
  135. package/src/components/Icon/iconList.ts +2 -1
  136. package/src/components/Input/Input.tsx +0 -1
  137. package/src/components/InputWithDropdown/InputWithDropdown.scss +30 -1
  138. package/src/components/InputWithDropdown/InputWithDropdown.tsx +45 -16
  139. package/src/components/InputWithDropdown/types.ts +5 -1
  140. package/src/components/MenuOption/MenuOption.scss +0 -1
  141. package/src/components/MenuOption/MenuOption.stories.tsx +3 -0
  142. package/src/components/MenuOption/MenuOption.tsx +5 -4
  143. package/src/components/MenuOption/types.ts +4 -0
  144. package/src/components/MultiSelect/MultiSelect.scss +5 -1
  145. package/src/components/MultiSelect/MultiSelect.stories.tsx +17 -13
  146. package/src/components/MultiSelect/MultiSelect.tsx +27 -14
  147. package/src/components/Select/Select.scss +121 -188
  148. package/src/components/Select/Select.stories.tsx +164 -18
  149. package/src/components/Select/Select.tsx +142 -290
  150. package/src/components/Select/components/Dropdown.scss +50 -0
  151. package/src/components/Select/components/Dropdown.tsx +94 -0
  152. package/src/components/Select/components/types.ts +20 -0
  153. package/src/components/Select/types.ts +15 -39
  154. package/src/components/Table/Table.scss +6 -5
  155. package/src/components/Table/Table.stories.tsx +0 -9
  156. package/src/components/Table/Table.tsx +2 -2
  157. package/src/components/TableTree/TableTree.scss +1 -1
  158. package/src/components/TableTree/TableTree.tsx +3 -1
  159. package/src/components/Toastify/Toastify.stories.tsx +29 -10
  160. package/src/components/Toastify/Toastify.tsx +42 -16
  161. package/src/components/Toastify/types.ts +2 -0
  162. package/src/index.ts +4 -2
  163. package/src/utils/getSelectOptionValue/getSelectOptionValue.ts +1 -1
  164. package/src/utils/getSequentialPayload/getSequentialPayload.stories.tsx +75 -0
  165. package/src/utils/getSequentialPayload/getSequentialPayload.ts +29 -0
  166. package/src/utils/getSequentialPayload/types.ts +35 -0
  167. package/src/components/ExcelFile/ExcelFile/Excel/reducer.ts +0 -952
  168. package/src/components/ExcelFile/ExcelFile/ExcelFile.scss +0 -24
  169. package/src/components/ExcelFile/ExcelFile/ExcelFile.tsx +0 -162
  170. package/src/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.scss +0 -16
  171. package/src/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.tsx +0 -68
  172. package/src/components/ExcelFile/ExcelToolBar/ExcelToolBar.scss +0 -19
  173. package/src/components/ExcelFile/ExcelToolBar/ExcelToolBar.tsx +0 -291
  174. package/src/fonts/Montserrat/Montserrat-Medium.ttf +0 -0
  175. package/src/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  176. package/src/fonts/Montserrat/Montserrat-SemiBold.ttf +0 -0
  177. package/src/fonts/Poppins/Poppins-Black.ttf +0 -0
  178. package/src/fonts/Poppins/Poppins-BlackItalic.ttf +0 -0
  179. package/src/fonts/Poppins/Poppins-BoldItalic.ttf +0 -0
  180. package/src/fonts/Poppins/Poppins-ExtraBold.ttf +0 -0
  181. package/src/fonts/Poppins/Poppins-ExtraBoldItalic.ttf +0 -0
  182. package/src/fonts/Poppins/Poppins-ExtraLight.ttf +0 -0
  183. package/src/fonts/Poppins/Poppins-ExtraLightItalic.ttf +0 -0
  184. package/src/fonts/Poppins/Poppins-Italic.ttf +0 -0
  185. package/src/fonts/Poppins/Poppins-Light.ttf +0 -0
  186. package/src/fonts/Poppins/Poppins-LightItalic.ttf +0 -0
  187. package/src/fonts/Poppins/Poppins-MediumItalic.ttf +0 -0
  188. package/src/fonts/Poppins/Poppins-SemiBoldItalic.ttf +0 -0
  189. package/src/fonts/Poppins/Poppins-Thin.ttf +0 -0
  190. package/src/fonts/Poppins/Poppins-ThinItalic.ttf +0 -0
  191. /package/lib/components/{ExcelFile → Excel}/ColorBarSelector/ColorBarSelector.d.ts +0 -0
  192. /package/src/components/{ExcelFile/ColorBarselector → Excel/ColorBarSelector}/ColorBarSelector.scss +0 -0
  193. /package/src/components/{ExcelFile/ColorBarselector → Excel/ColorBarSelector}/ColorBarSelector.tsx +0 -0
  194. /package/src/components/{ExcelFile → Excel}/ContextMenu/ContextMenu.scss +0 -0
  195. /package/src/components/{ExcelFile → Excel}/ContextMenu/ContextMenu.tsx +0 -0
  196. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/Copied.tsx +0 -0
  197. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/HeaderRow.tsx +0 -0
  198. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/Row.tsx +0 -0
  199. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/Selected.tsx +0 -0
  200. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/areModelsEqual.ts +0 -0
  201. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/context.ts +0 -0
  202. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/engine/engine.ts +0 -0
  203. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/engine/formula.ts +0 -0
  204. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/engine/index.ts +0 -0
  205. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/engine/point-graph.ts +0 -0
  206. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/engine/point-hash.ts +0 -0
  207. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/engine/point-set.ts +0 -0
  208. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/index.ts +0 -0
  209. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/matrix.ts +0 -0
  210. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/point-range.ts +0 -0
  211. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/point.ts +0 -0
  212. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/selection.ts +0 -0
  213. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/types.ts +0 -0
  214. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/typings/fast-formula-parser.d.ts +0 -0
  215. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/use-dispatch.ts +0 -0
  216. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/use-selector.ts +0 -0
  217. /package/src/components/{ExcelFile/ExcelFile/Excel → Excel/ExcelFile/ExcelFileComponents}/util.ts +0 -0
  218. /package/src/components/{ExcelFile → Excel}/Types.ts +0 -0
  219. /package/src/components/{ExcelFile → Excel}/index.ts +0 -0
@@ -12,6 +12,17 @@ export interface BtnPropsCommon {
12
12
  * Onclick function for button
13
13
  */
14
14
  onClick?: () => void;
15
+ /**
16
+ * Button type
17
+ * @default 'button'
18
+ * @example 'submit'
19
+ * @example 'button'
20
+ */
21
+ type?: 'button' | 'submit';
22
+ /**
23
+ * form to accept id of form in string format
24
+ */
25
+ form?: string;
15
26
  }
16
27
  export interface DrawerProps {
17
28
  /**
@@ -23,12 +34,12 @@ export interface DrawerProps {
23
34
  */
24
35
  _isExpanded?: boolean;
25
36
  /**
26
- * To show and hide the back button of the Drawer
27
- */
37
+ * To show and hide the back button of the Drawer
38
+ */
28
39
  isBackButtonVisible?: boolean;
29
40
  /**
30
- * To show and hide the close button of the Drawer
31
- */
41
+ * To show and hide the close button of the Drawer
42
+ */
32
43
  _isCloseModalButtonVisible?: boolean;
33
44
  /**
34
45
  * Function to close the drawer
@@ -67,8 +78,8 @@ export interface DrawerProps {
67
78
  */
68
79
  leftSecondaryButtonProps?: BtnPropsCommon;
69
80
  /**
70
- * Left side Tertiary Button | Help button props
71
- */
81
+ * Left side Tertiary Button | Help button props
82
+ */
72
83
  leftTertiaryButtonProps?: BtnPropsCommon;
73
84
  /**
74
85
  * Right side Tertiary Button | More Info button props
@@ -105,14 +116,14 @@ export interface DrawerProps {
105
116
  */
106
117
  onCloseIconClick?: () => void;
107
118
  /**
108
- * Custom header for the drawer, replacing the default header.
109
- * If provided, this will render in place of the default header.
110
- */
119
+ * Custom header for the drawer, replacing the default header.
120
+ * If provided, this will render in place of the default header.
121
+ */
111
122
  customHeader?: ReactNode;
112
123
  /**
113
- * Custom footer for the drawer, replacing the default footer.
114
- * If provided, this will render in place of the default footer.
115
- */
124
+ * Custom footer for the drawer, replacing the default footer.
125
+ * If provided, this will render in place of the default footer.
126
+ */
116
127
  customFooter?: ReactNode;
117
128
  /**
118
129
  * Custom z-index for the drawer
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { EditorProps } from './types';
3
+ import './Editor.scss';
4
+ declare const Editor: React.FC<EditorProps>;
5
+ export default Editor;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { EditorProps } from './types';
3
+ declare const meta: Meta<EditorProps>;
4
+ export default meta;
5
+ type Story = StoryObj<EditorProps>;
6
+ export declare const Default: Story;
@@ -0,0 +1,5 @@
1
+ import type { FC } from 'react';
2
+ import { VariableDropdownProps } from './types';
3
+ import './VariableDropdown.scss';
4
+ declare const VariableDropdown: FC<VariableDropdownProps>;
5
+ export default VariableDropdown;
@@ -0,0 +1,3 @@
1
+ import { option, DyanamicObj } from './types';
2
+ export declare const optionsList: option[];
3
+ export declare const varibaleList: DyanamicObj[];
@@ -0,0 +1 @@
1
+ export { default } from './Editor';
@@ -0,0 +1,71 @@
1
+ import { ReactNode } from 'react';
2
+ import * as monaco from 'monaco-editor';
3
+ export interface DyanamicObj {
4
+ [key: string]: any;
5
+ }
6
+ export interface EditorProps {
7
+ /**
8
+ * Editor Content Type
9
+ */
10
+ language?: 'javascript' | 'html' | 'json' | 'plaintext' | 'xml';
11
+ /**
12
+ *
13
+ *Width of the editor
14
+ */
15
+ width: string;
16
+ /**
17
+ * Height of the editor
18
+ */
19
+ height: string;
20
+ /**
21
+ * Show toolbar
22
+ */
23
+ showToolbar?: boolean;
24
+ /**
25
+ * read only
26
+ */
27
+ readOnly?: boolean;
28
+ /**
29
+ * Variable options list
30
+ */
31
+ variableOptionsList?: [] | DyanamicObj[];
32
+ /**
33
+ *Value to set in the editor
34
+ */
35
+ value: string;
36
+ /**
37
+ *
38
+ * setter function to set the value for the editor
39
+ */
40
+ setValue: (value: string) => void;
41
+ /**
42
+ * onChange function to handle the input changes
43
+ */
44
+ handleChange: (value: string | undefined, event: monaco.editor.IModelContentChangedEvent) => {};
45
+ /**
46
+ * Theme
47
+ */
48
+ theme?: 'light' | 'vs-dark';
49
+ }
50
+ export interface dropdownPositionType {
51
+ top: number;
52
+ left: number;
53
+ }
54
+ export interface VariableDropdownProps {
55
+ /**
56
+ * List of variables
57
+ */
58
+ optionsList: {}[];
59
+ /**
60
+ * Function to handle click on variable
61
+ */
62
+ onSelectVariable: (variable: object) => void;
63
+ /**
64
+ * Dropdown postion used for dropdown placement
65
+ */
66
+ dropdownPosition: dropdownPositionType;
67
+ }
68
+ export interface option {
69
+ label: string | ReactNode;
70
+ value: string;
71
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './ContextMenu.scss';
3
+ declare const ContextMenu: React.FC<ContextMenuProps>;
4
+ export default ContextMenu;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import './ExcelFile.scss';
3
+ interface ExcelFileProps {
4
+ /** The Excel data containing sheets and their content */
5
+ excelData: {
6
+ sheets: WorkSheet[];
7
+ };
8
+ /** Optional: Provide context menu options for actions like right-click */
9
+ contextOption?: {
10
+ name: string;
11
+ title: React.ReactNode;
12
+ action: () => void;
13
+ }[];
14
+ /** Controls whether the toolbar is shown, disabled, or hidden */
15
+ toolbar?: 'show' | 'disable' | 'hide';
16
+ /** Callback function to save the Excel data */
17
+ onSave?: (excelData?: any) => void;
18
+ }
19
+ declare const ExcelFile: React.FC<ExcelFileProps>;
20
+ export default ExcelFile;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import * as Types from './types';
3
+ type Props = {
4
+ DataEditor: Types.DataEditorComponent;
5
+ };
6
+ declare const ActiveCell: React.FC<Props>;
7
+ export default ActiveCell;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import * as Types from './types';
3
+ export declare const Cell: React.FC<Types.CellComponentProps>;
4
+ export declare const enhance: (CellComponent: React.ComponentType<Types.CellComponentProps>) => React.FC<Omit<Types.CellComponentProps, "selected" | "active" | "copied" | "dragging" | "mode" | "data" | "select" | "activate" | "setCellDimensions">>;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import * as Types from './types';
3
+ declare const ColumnIndicator: Types.ColumnIndicatorComponent;
4
+ export default ColumnIndicator;
5
+ export declare const enhance: (ColumnIndicatorComponent: Types.ColumnIndicatorComponent) => React.FC<Omit<Types.ColumnIndicatorProps, "selected" | "onSelect">>;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const Copied: React.FC;
3
+ export default Copied;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import * as Types from './types';
3
+ declare const CornerIndicator: Types.CornerIndicatorComponent;
4
+ export default CornerIndicator;
5
+ export declare const enhance: (CornerIndicatorComponent: Types.CornerIndicatorComponent) => React.FC<Omit<Types.CornerIndicatorProps, "selected" | "onSelect">>;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import * as Types from './types';
3
+ /** The default Spreadsheet DataEditor component */
4
+ declare const DataEditor: React.FC<Types.DataEditorProps>;
5
+ export default DataEditor;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import * as Types from './types';
3
+ export declare const TRUE_TEXT = "TRUE";
4
+ export declare const FALSE_TEXT = "FALSE";
5
+ /** The default Spreadsheet DataViewer component */
6
+ declare const DataViewer: <Cell extends Types.CellBase<Value>, Value>({ cell, evaluatedCell, }: Types.DataViewerProps<Cell>) => React.ReactElement;
7
+ export default DataViewer;
8
+ export declare function convertBooleanToText(value: boolean): string;
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import * as Types from './types';
3
+ export type Props = {
4
+ variant?: string;
5
+ dimensions?: Types.Dimensions | null | undefined;
6
+ hidden?: boolean;
7
+ dragging?: boolean;
8
+ };
9
+ declare const FloatingRect: React.FC<Props>;
10
+ export default FloatingRect;
@@ -0,0 +1,3 @@
1
+ import * as Types from './types';
2
+ declare const HeaderRow: Types.HeaderRowComponent;
3
+ export default HeaderRow;
@@ -0,0 +1,3 @@
1
+ import * as Types from './types';
2
+ declare const Row: Types.RowComponent;
3
+ export default Row;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import * as Types from './types';
3
+ declare const RowIndicator: Types.RowIndicatorComponent;
4
+ export default RowIndicator;
5
+ export declare const enhance: (RowIndicatorComponent: Types.RowIndicatorComponent) => React.FC<Omit<Types.RowIndicatorProps, "selected" | "onSelect">>;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const Selected: React.FC;
3
+ export default Selected;
@@ -0,0 +1,80 @@
1
+ import * as React from 'react';
2
+ import * as Types from './types';
3
+ import * as Matrix from './matrix';
4
+ import * as Point from './point';
5
+ import { Selection } from './selection';
6
+ import './Spreadsheet.scss';
7
+ /** The Spreadsheet component props */
8
+ export type Props<CellType extends Types.CellBase> = {
9
+ /** The spreadsheet's data */
10
+ data: Matrix.Matrix<CellType>;
11
+ /** Class name to be added to the spreadsheet's root element */
12
+ className?: string;
13
+ /**
14
+ * Use dark colors that complement dark mode
15
+ * @defaultValue `false`
16
+ */
17
+ /**
18
+ * Function used to create the formula parser (instance of
19
+ * "fast-formula-parser") used by the Spreadsheet by getting the spreadsheet's
20
+ * data.
21
+ * @defaultValue function which creates a formula parser bound to the
22
+ * Spreadsheet's data.
23
+ * @see `createFormulaParser`
24
+ * @see https://www.npmjs.com/package/fast-formula-parser
25
+ */
26
+ createFormulaParser?: Types.CreateFormulaParser;
27
+ /**
28
+ * Labels to use in column indicators.
29
+ * @defaultValue alphabetical labels.
30
+ */
31
+ columnLabels?: string[];
32
+ /**
33
+ * Labels to use in row indicators.
34
+ * @defaultValue row index labels.
35
+ */
36
+ rowLabels?: string[];
37
+ /**
38
+ * If set to true, hides the row indicators of the spreadsheet.
39
+ * @defaultValue `false`.
40
+ */
41
+ hideRowIndicators?: boolean;
42
+ /**
43
+ * If set to true, hides the column indicators of the spreadsheet.
44
+ * @defaultValue `false`.
45
+ */
46
+ hideColumnIndicators?: boolean;
47
+ /** The selected cells in the worksheet. */
48
+ selected?: Selection;
49
+ /** Component rendered above each column. */
50
+ ColumnIndicator?: Types.ColumnIndicatorComponent;
51
+ /** Component rendered in the corner of row and column indicators. */
52
+ CornerIndicator?: Types.CornerIndicatorComponent;
53
+ /** Component rendered next to each row. */
54
+ RowIndicator?: Types.RowIndicatorComponent;
55
+ /** The Spreadsheet's table component. */
56
+ Table?: Types.TableComponent;
57
+ /** The Spreadsheet's row component. */
58
+ Row?: Types.RowComponent;
59
+ /** The spreadsheet's header row component */
60
+ HeaderRow?: Types.HeaderRowComponent;
61
+ /** The Spreadsheet's cell component. */
62
+ Cell?: Types.CellComponent<CellType>;
63
+ /** Component rendered for cells in view mode. */
64
+ DataViewer?: Types.DataViewerComponent<CellType>;
65
+ /** Component rendered for cells in edit mode. */
66
+ DataEditor?: Types.DataEditorComponent<CellType>;
67
+ /** Callback called on key down inside the spreadsheet. */
68
+ onKeyDown?: (event: React.KeyboardEvent) => void;
69
+ /** Callback called when the Spreadsheet's selection changes. */
70
+ onSelect?: (selected: Selection) => void;
71
+ /** Callback called when Spreadsheet's active cell changes. */
72
+ onActivate?: (active: Point.Point) => void;
73
+ /** Callback called when the Spreadsheet's evaluated data changes. */
74
+ onEvaluatedDataChange?: (data: Matrix.Matrix<CellType>) => void;
75
+ };
76
+ /**
77
+ * The Spreadsheet component
78
+ */
79
+ declare const Spreadsheet: <CellType extends Types.CellBase>(props: Props<CellType>) => React.ReactElement;
80
+ export default Spreadsheet;
@@ -0,0 +1,3 @@
1
+ import * as Types from './types';
2
+ declare const Table: Types.TableComponent;
3
+ export default Table;
@@ -0,0 +1,203 @@
1
+ import { Matrix } from './matrix';
2
+ import { Point } from './point';
3
+ import { CellBase, Dimensions, CommitChanges, CreateFormulaParser } from './types';
4
+ import { Selection } from './selection';
5
+ export declare const SET_DATA = "SET_DATA";
6
+ export declare const SET_CREATE_FORMULA_PARSER = "SET_CREATE_FORMULA_PARSER";
7
+ export declare const SELECT_ENTIRE_ROW = "SELECT_ENTIRE_ROW";
8
+ export declare const SELECT_ENTIRE_COLUMN = "SELECT_ENTIRE_COLUMN";
9
+ export declare const SELECT_ENTIRE_WORKSHEET = "SELECT_ENTIRE_WORKSHEET";
10
+ export declare const SET_SELECTION = "SET_SELECTION";
11
+ export declare const SELECT = "SELECT";
12
+ export declare const ACTIVATE = "ACTIVATE";
13
+ export declare const SET_CELL_DATA = "SET_CELL_DATA";
14
+ export declare const SET_CELL_DIMENSIONS = "SET_CELL_DIMENSIONS";
15
+ export declare const COPY = "COPY";
16
+ export declare const CUT = "CUT";
17
+ export declare const PASTE = "PASTE";
18
+ export declare const EDIT = "EDIT";
19
+ export declare const VIEW = "VIEW";
20
+ export declare const CLEAR = "CLEAR";
21
+ export declare const BLUR = "BLUR";
22
+ export declare const KEY_PRESS = "KEY_PRESS";
23
+ export declare const KEY_DOWN = "KEY_DOWN";
24
+ export declare const DRAG_START = "DRAG_START";
25
+ export declare const DRAG_END = "DRAG_END";
26
+ export declare const COMMIT = "COMMIT";
27
+ export declare const BOLD = "BOLD";
28
+ export declare const ITALIC = "ITALIC";
29
+ export declare const UNDERLINE_TYPE = "UNDERLINE_TYPE";
30
+ export declare const FONT_FAMILY = "FONT_FAMILY";
31
+ export declare const FONT_SIZE = "FONT_SIZE";
32
+ export declare const TEXT_ALIGN = "TEXT_ALIGN";
33
+ export declare const BORDER_TYPE = "BORDER_TYPE";
34
+ export declare const COLOR = "COLOR";
35
+ export declare const BACKGROUND_COLOR = "BACKGROUND_COLOR";
36
+ export declare const FORMATE_PAINTER = "FORMATE_PAINTER";
37
+ export type BaseAction<T extends string> = {
38
+ type: T;
39
+ };
40
+ export type BoldStyle = BaseAction<typeof BOLD> & {
41
+ payload: {
42
+ data: Matrix<CellBase>;
43
+ };
44
+ };
45
+ export declare function bold(data: Matrix<CellBase>): BoldStyle;
46
+ export type ItalicStyle = BaseAction<typeof ITALIC> & {
47
+ payload: {
48
+ data: Matrix<CellBase>;
49
+ };
50
+ };
51
+ export declare function italic(data: Matrix<CellBase>): ItalicStyle;
52
+ export type BorderType = BaseAction<typeof BORDER_TYPE> & {
53
+ payload: {
54
+ data: Matrix<CellBase>;
55
+ value: string;
56
+ color: string;
57
+ };
58
+ };
59
+ export declare function borderType(data: Matrix<CellBase>, value: string, color: string): BorderType;
60
+ export type UnderlineTypeStyle = BaseAction<typeof UNDERLINE_TYPE> & {
61
+ payload: {
62
+ data: Matrix<CellBase>;
63
+ value: string;
64
+ active: boolean;
65
+ };
66
+ };
67
+ export declare function underlineType(data: Matrix<CellBase>, value: string, active: boolean): UnderlineTypeStyle;
68
+ export type FontSize = BaseAction<typeof FONT_SIZE> & {
69
+ payload: {
70
+ data: Matrix<CellBase>;
71
+ value: string;
72
+ };
73
+ };
74
+ export declare function fontSize(data: Matrix<CellBase>, value: string): FontSize;
75
+ export type FontFamily = BaseAction<typeof FONT_FAMILY> & {
76
+ payload: {
77
+ data: Matrix<CellBase>;
78
+ value: string;
79
+ };
80
+ };
81
+ export declare function fontFamily(data: Matrix<CellBase>, value: string): FontFamily;
82
+ export type TextAlignType = BaseAction<typeof TEXT_ALIGN> & {
83
+ payload: {
84
+ data: Matrix<CellBase>;
85
+ value: string;
86
+ };
87
+ };
88
+ export declare function textAlign(data: Matrix<CellBase>, value: string): TextAlignType;
89
+ export type ColorStyle = BaseAction<typeof COLOR> & {
90
+ payload: {
91
+ data: Matrix<CellBase>;
92
+ value: string;
93
+ };
94
+ };
95
+ export declare function color(data: Matrix<CellBase>, value: string): ColorStyle;
96
+ export type BackgroundStyle = BaseAction<typeof BACKGROUND_COLOR> & {
97
+ payload: {
98
+ data: Matrix<CellBase>;
99
+ value: string;
100
+ };
101
+ };
102
+ export declare function backgroundStyle(data: Matrix<CellBase>, value: string): BackgroundStyle;
103
+ export type FormatePainterStyle = BaseAction<typeof FORMATE_PAINTER> & {
104
+ payload: {
105
+ data: Matrix<CellBase>;
106
+ };
107
+ };
108
+ export declare function formatePainter(data: Matrix<CellBase>): FormatePainterStyle;
109
+ export type SetDataAction = BaseAction<typeof SET_DATA> & {
110
+ payload: {
111
+ data: Matrix<CellBase>;
112
+ };
113
+ };
114
+ export declare function setData(data: Matrix<CellBase>): SetDataAction;
115
+ export type SetCreateFormulaParserAction = BaseAction<typeof SET_CREATE_FORMULA_PARSER> & {
116
+ payload: {
117
+ createFormulaParser: CreateFormulaParser;
118
+ };
119
+ };
120
+ export declare function setCreateFormulaParser(createFormulaParser: CreateFormulaParser): SetCreateFormulaParserAction;
121
+ export type SelectEntireRowAction = BaseAction<typeof SELECT_ENTIRE_ROW> & {
122
+ payload: {
123
+ row: number;
124
+ extend: boolean;
125
+ };
126
+ };
127
+ export declare function selectEntireRow(row: number, extend: boolean): SelectEntireRowAction;
128
+ export type SelectEntireColumnAction = BaseAction<typeof SELECT_ENTIRE_COLUMN> & {
129
+ payload: {
130
+ column: number;
131
+ extend: boolean;
132
+ };
133
+ };
134
+ export declare function selectEntireColumn(column: number, extend: boolean): SelectEntireColumnAction;
135
+ export type SelectEntireWorksheetAction = BaseAction<typeof SELECT_ENTIRE_WORKSHEET>;
136
+ export declare function selectEntireWorksheet(): SelectEntireWorksheetAction;
137
+ export type SetSelectionAction = BaseAction<typeof SET_SELECTION> & {
138
+ payload: {
139
+ selection: Selection;
140
+ };
141
+ };
142
+ export declare function setSelection(selection: Selection): SetSelectionAction;
143
+ export type SelectAction = BaseAction<typeof SELECT> & {
144
+ payload: {
145
+ point: Point;
146
+ };
147
+ };
148
+ export declare function select(point: Point): SelectAction;
149
+ export type ActivateAction = BaseAction<typeof ACTIVATE> & {
150
+ payload: {
151
+ point: Point;
152
+ };
153
+ };
154
+ export declare function activate(point: Point): ActivateAction;
155
+ export type SetCellDataAction = BaseAction<typeof SET_CELL_DATA> & {
156
+ payload: {
157
+ active: Point;
158
+ data: CellBase;
159
+ };
160
+ };
161
+ export declare function setCellData(active: Point, data: CellBase): SetCellDataAction;
162
+ export type SetCellDimensionsAction = BaseAction<typeof SET_CELL_DIMENSIONS> & {
163
+ payload: {
164
+ point: Point;
165
+ dimensions: Dimensions;
166
+ };
167
+ };
168
+ export declare function setCellDimensions(point: Point, dimensions: Dimensions): SetCellDimensionsAction;
169
+ export type PasteAction = BaseAction<typeof PASTE> & {
170
+ payload: {
171
+ data: string;
172
+ };
173
+ };
174
+ export declare function paste(data: string): PasteAction;
175
+ export type KeyDownAction = BaseAction<typeof KEY_DOWN> & {
176
+ payload: {
177
+ event: React.KeyboardEvent;
178
+ };
179
+ };
180
+ export declare function keyDown(event: React.KeyboardEvent): KeyDownAction;
181
+ export type DragStartAction = BaseAction<typeof DRAG_START>;
182
+ export declare function dragStart(): DragStartAction;
183
+ export type DragEndAction = BaseAction<typeof DRAG_END>;
184
+ export declare function dragEnd(): DragEndAction;
185
+ export type CommitAction = BaseAction<typeof COMMIT> & {
186
+ payload: {
187
+ changes: CommitChanges;
188
+ };
189
+ };
190
+ export declare function commit(changes: CommitChanges): CommitAction;
191
+ export type CopyAction = BaseAction<typeof COPY>;
192
+ export declare function copy(): CopyAction;
193
+ export type CutAction = BaseAction<typeof CUT>;
194
+ export declare function cut(): CutAction;
195
+ export type EditAction = BaseAction<typeof EDIT>;
196
+ export declare function edit(): EditAction;
197
+ export type ViewAction = BaseAction<typeof VIEW>;
198
+ export declare function view(): ViewAction;
199
+ export type ClearAction = BaseAction<typeof CLEAR>;
200
+ export declare function clear(): ClearAction;
201
+ export type BlurAction = BaseAction<typeof BLUR>;
202
+ export declare function blur(): BlurAction;
203
+ export type Action = SetDataAction | SetCreateFormulaParserAction | SelectEntireRowAction | SelectEntireColumnAction | SelectEntireWorksheetAction | SetSelectionAction | SelectAction | ActivateAction | SetCellDataAction | SetCellDimensionsAction | PasteAction | KeyDownAction | DragStartAction | DragEndAction | CommitAction | CopyAction | CutAction | EditAction | ViewAction | ClearAction | UnderlineTypeStyle | FontSize | FontFamily | TextAlignType | BorderType | ItalicStyle | BoldStyle | ColorStyle | BackgroundStyle | FormatePainterStyle | BlurAction;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import reducer from './reducer';
3
+ import { Action } from './actions';
4
+ export type ReducerState = React.ReducerState<typeof reducer>;
5
+ export type Dispatch = React.Dispatch<Action>;
6
+ export type Value = [ReducerState, Dispatch];
7
+ declare const context: import("use-context-selector").Context<Value>;
8
+ export default context;
@@ -0,0 +1,22 @@
1
+ import FormulaParser, { Value } from 'fast-formula-parser';
2
+ import * as Matrix from '../matrix';
3
+ import { Point } from '../point';
4
+ import { CellBase, CreateFormulaParser } from '../types';
5
+ import { PointGraph } from './point-graph';
6
+ export declare class Model<Cell extends CellBase> {
7
+ readonly data: Matrix.Matrix<Cell>;
8
+ readonly evaluatedData: Matrix.Matrix<Cell>;
9
+ readonly referenceGraph: PointGraph;
10
+ readonly createFormulaParser: CreateFormulaParser;
11
+ constructor(createFormulaParser: CreateFormulaParser, data: Matrix.Matrix<Cell>, referenceGraph?: PointGraph, evaluatedData?: Matrix.Matrix<Cell>);
12
+ }
13
+ export declare function updateCellValue<Cell extends CellBase>(model: Model<Cell>, point: Point, cell: Cell): Model<Cell>;
14
+ /**
15
+ *
16
+ * @param data - the spreadsheet data
17
+ * @returns the spreadsheet reference graph
18
+ */
19
+ export declare function createReferenceGraph(data: Matrix.Matrix<CellBase>): PointGraph;
20
+ export declare function createEvaluatedData<Cell extends CellBase>(data: Matrix.Matrix<Cell>, referenceGraph: PointGraph, createFormulaParser: CreateFormulaParser): Matrix.Matrix<Cell>;
21
+ /** Get the computed value of a formula cell */
22
+ export declare function getFormulaComputedValue(value: string, point: Point, formulaParser: FormulaParser): Value;
@@ -0,0 +1,17 @@
1
+ import FormulaParser, { FormulaParserConfig, Value } from 'fast-formula-parser';
2
+ import { Point } from '../point';
3
+ import * as Matrix from '../matrix';
4
+ import { CellBase } from '../types';
5
+ import { PointSet } from './point-set';
6
+ export declare const FORMULA_VALUE_PREFIX = "=";
7
+ /** Returns whether given value is a formula */
8
+ export declare function isFormulaValue(value: unknown): value is string;
9
+ /** Extracts formula from value */
10
+ export declare function extractFormula(value: string): string;
11
+ export declare function createFormulaParser(data: Matrix.Matrix<CellBase>, config?: Omit<FormulaParserConfig, 'onCell' | 'onRange'>): FormulaParser;
12
+ /**
13
+ * For given formula returns the cell references
14
+ * @param formula - formula to get references for
15
+ */
16
+ export declare function getReferences(formula: string, point: Point, data: Matrix.Matrix<CellBase>): PointSet;
17
+ export declare function evaluate(formula: string, point: Point, formulaParser: FormulaParser): Value;
@@ -0,0 +1,2 @@
1
+ export { Model, updateCellValue } from './engine';
2
+ export { createFormulaParser } from './formula';
@@ -0,0 +1,21 @@
1
+ import { Point } from '../point';
2
+ import { PointSet } from './point-set';
3
+ /**
4
+ * Immutable directed graph of points, where each point can have multiple
5
+ * edges to other points.
6
+ */
7
+ export declare class PointGraph {
8
+ private forwards;
9
+ private constructor();
10
+ /** Creates a new PointGraph instance from an array-like or iterable object */
11
+ static from(pairs: Iterable<[Point, PointSet]>): PointGraph;
12
+ set(node: Point, edges: PointSet): PointGraph;
13
+ get(node: Point): PointSet;
14
+ getBackwards(node: Point): PointSet;
15
+ getBackwardsRecursive(node: Point, visited?: PointSet): PointSet;
16
+ /** Determine whether the graph has a circular dependency, starting from given start point */
17
+ hasCircularDependency(startPoint: Point): boolean;
18
+ [Symbol.iterator](): Iterator<[Point, PointSet]>;
19
+ /** Get the points in the graph in a breadth-first order */
20
+ traverseBFSBackwards(): Generator<Point>;
21
+ }
@@ -0,0 +1,3 @@
1
+ import { Point } from '../point';
2
+ export declare function toString(point: Point): string;
3
+ export declare function fromString(point: string): Point;