pixel-react-excel-sheet 1.0.19 → 1.0.20

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 (40) hide show
  1. package/lib/components/ConditionalDropdown/ConditionalDropdown.d.ts +5 -0
  2. package/lib/components/ConditionalDropdown/index.d.ts +1 -0
  3. package/lib/components/ConditionalDropdown/types.d.ts +99 -0
  4. package/lib/components/CreateVariable/types.d.ts +2 -2
  5. package/lib/components/InputWithDropdown/InputWithDropdown.d.ts +1 -1
  6. package/lib/components/Modal/types.d.ts +1 -1
  7. package/lib/components/PopUpModal/types.d.ts +2 -1
  8. package/lib/components/TableTree/TableTree.d.ts +2 -2
  9. package/lib/components/TableTree/Utils/getAllChildIds.d.ts +1 -0
  10. package/lib/index.d.ts +77 -12
  11. package/lib/index.esm.js +119 -120
  12. package/lib/index.esm.js.map +1 -1
  13. package/lib/index.js +119 -120
  14. package/lib/index.js.map +1 -1
  15. package/lib/tsconfig.tsbuildinfo +1 -1
  16. package/package.json +1 -1
  17. package/src/assets/icons/import_icon.svg +4 -0
  18. package/src/components/ConditionalDropdown/ConditionalDropdown.stories.tsx +82 -0
  19. package/src/components/{AddVariables/AddVariables.tsx → ConditionalDropdown/ConditionalDropdown.tsx} +30 -14
  20. package/src/components/ConditionalDropdown/index.ts +1 -0
  21. package/src/components/ConditionalDropdown/types.ts +103 -0
  22. package/src/components/CreateVariable/CreateVariableSlider.tsx +2 -2
  23. package/src/components/CreateVariable/types.ts +2 -2
  24. package/src/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.tsx +9 -26
  25. package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.scss +4 -2
  26. package/src/components/Excel/ExcelFile.stories.tsx +1 -1
  27. package/src/components/Icon/iconList.ts +3 -0
  28. package/src/components/InputWithDropdown/InputWithDropdown.tsx +102 -95
  29. package/src/components/Modal/types.ts +1 -1
  30. package/src/components/PopUpModal/PopUpModal.stories.tsx +15 -10
  31. package/src/components/PopUpModal/PopUpModal.tsx +5 -4
  32. package/src/components/PopUpModal/types.ts +2 -1
  33. package/src/components/TableTree/TableTree.stories.tsx +2 -5
  34. package/src/components/TableTree/TableTree.tsx +5 -167
  35. package/src/components/TableTree/Utils/getAllChildIds.ts +2 -0
  36. package/src/index.ts +2 -3
  37. package/src/components/AddVariables/AddVariables.stories.tsx +0 -44
  38. package/src/components/AddVariables/index.ts +0 -1
  39. package/src/components/AddVariables/types.ts +0 -36
  40. /package/src/components/{AddVariables/AddVariables.scss → ConditionalDropdown/ConditionalDropdown.scss} +0 -0
@@ -0,0 +1,5 @@
1
+ import { ConditionalDropdownProps } from './types';
2
+ import './ConditionalDropdown.scss';
3
+ import React from 'react';
4
+ declare const ConditionalDropdown: React.FC<ConditionalDropdownProps>;
5
+ export default ConditionalDropdown;
@@ -0,0 +1 @@
1
+ export { default } from './ConditionalDropdown';
@@ -0,0 +1,99 @@
1
+ export type dynamicObject = {
2
+ [key: string]: any;
3
+ };
4
+ export interface ConditionalDropdownProps {
5
+ /**
6
+ * Label for the field
7
+ */
8
+ label?: string;
9
+ /**
10
+ * List of variables
11
+ */
12
+ variableList?: dynamicObject[];
13
+ /**
14
+ * Place holder for the input field
15
+ */
16
+ placeholder?: string;
17
+ /**
18
+ * Function to handle input change
19
+ * @param value
20
+ * @returns
21
+ */
22
+ onChange: (value: string) => void;
23
+ /**
24
+ * Function to handle create variable icon click
25
+ */
26
+ onCreateVariableClick?: () => void;
27
+ /**
28
+ * Width of the dropdown
29
+ */
30
+ dropdownWidth?: string;
31
+ /**
32
+ * Name | name of the input field
33
+ */
34
+ name: string;
35
+ /**
36
+ * value | input field value
37
+ */
38
+ value: string;
39
+ /**
40
+ * variants to set color/style of the input field
41
+ */
42
+ variant?: 'default' | 'primary';
43
+ /**
44
+ * type to set color/style of the input field
45
+ */
46
+ type: 'text' | 'password' | 'number' | 'email' | 'url' | 'time';
47
+ /**
48
+ * error | If true, error message will be displayed
49
+ */
50
+ error?: boolean;
51
+ /**
52
+ * helperText | error, success, warning message to be shown
53
+ */
54
+ helperText?: string;
55
+ /**
56
+ * to disable the input field
57
+ */
58
+ disabled?: boolean;
59
+ /**
60
+ * if true, input field will be mandatory
61
+ */
62
+ required?: boolean;
63
+ /**
64
+ * classnames to style the input field
65
+ */
66
+ className?: string;
67
+ /**
68
+ * noBorder prop 'true' removes border of input
69
+ */
70
+ noBorder?: boolean;
71
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
72
+ onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
73
+ onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
74
+ /**
75
+ * id to select the input field uniquely
76
+ */
77
+ id?: string;
78
+ /**
79
+ * if on, suggestion popup will be displayed
80
+ */
81
+ autoComplete?: 'on' | 'off';
82
+ /**
83
+ * minimum and maximum values for the number type input field and their functions
84
+ */
85
+ minValue?: number;
86
+ maxValue?: number;
87
+ /**
88
+ * background of the input field prop
89
+ */
90
+ transparentBackground?: boolean;
91
+ /**
92
+ * size for the input field
93
+ */
94
+ size?: 'small' | 'medium';
95
+ /**
96
+ * isLabelRequired for the input field without label,showing placeholder
97
+ */
98
+ isLabelRequired?: boolean;
99
+ }
@@ -36,11 +36,11 @@ export interface CreateVariableProps {
36
36
  /**
37
37
  * onChange of name
38
38
  */
39
- onNameChange: (value: string | boolean) => void;
39
+ onNameChange: (value: string) => void;
40
40
  /**
41
41
  * onChange of value
42
42
  */
43
- onValueChange: (value: string | boolean) => void;
43
+ onValueChange: (value: string) => void;
44
44
  /**
45
45
  * Hide value
46
46
  */
@@ -1,4 +1,4 @@
1
1
  import './InputWithDropdown.scss';
2
2
  import { InputWithDropdownProps } from './types';
3
- declare const InputWithDropdown: ({ name, label, value, disabled, required, placeholder, error, helperText, optionsList, selectedOption, autoComplete, onDropdownChangeHandler, onInputChangeHandler, onInputBlurHandler, optionsRequired, dropdownPosition, type, }: InputWithDropdownProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const InputWithDropdown: import("react").ForwardRefExoticComponent<InputWithDropdownProps & import("react").RefAttributes<HTMLInputElement>>;
4
4
  export default InputWithDropdown;
@@ -23,7 +23,7 @@ export interface ModalProps {
23
23
  /***Content to be displayed inside the modal */
24
24
  children: ReactNode;
25
25
  isFooterDisplayed: boolean;
26
- customWidth: string;
26
+ customWidth?: string;
27
27
  customHeight?: string;
28
28
  zIndex?: number;
29
29
  boxShadow?: string;
@@ -6,10 +6,11 @@ export interface PopUpModalProps {
6
6
  subTitleMessage?: string;
7
7
  iconName: string;
8
8
  modalMessage: string;
9
- footerMessage: string;
10
9
  firstButtonLabel?: string;
11
10
  secondButtonLabel: string;
12
11
  buttonVariant: any;
13
12
  border: string;
13
+ popupWidth?: string;
14
14
  colorForTitleMessage?: string;
15
+ footerContent?: React.ReactNode;
15
16
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import './TableTree.scss';
3
3
  import { TreeTableProps } from './types';
4
- declare const TreeTable: React.FC<TreeTableProps>;
5
- export default TreeTable;
4
+ declare const _default: React.NamedExoticComponent<TreeTableProps>;
5
+ export default _default;
@@ -1 +1,2 @@
1
1
  declare const getAllChildIds: (nodeId: string, data: any[]) => string[];
2
+ export default getAllChildIds;
package/lib/index.d.ts CHANGED
@@ -1429,7 +1429,7 @@ interface InputWithDropdownProps {
1429
1429
  dropdownPosition?: 'left' | 'right';
1430
1430
  }
1431
1431
 
1432
- declare const InputWithDropdown: ({ name, label, value, disabled, required, placeholder, error, helperText, optionsList, selectedOption, autoComplete, onDropdownChangeHandler, onInputChangeHandler, onInputBlurHandler, optionsRequired, dropdownPosition, type, }: InputWithDropdownProps) => react_jsx_runtime.JSX.Element;
1432
+ declare const InputWithDropdown: React$1.ForwardRefExoticComponent<InputWithDropdownProps & React$1.RefAttributes<HTMLInputElement>>;
1433
1433
 
1434
1434
  /**
1435
1435
  * Props for the RadioButton component.
@@ -1627,7 +1627,7 @@ interface TreeTableProps {
1627
1627
  onPagination?: (_direction: string) => void;
1628
1628
  }
1629
1629
 
1630
- declare const TreeTable: React__default.FC<TreeTableProps>;
1630
+ declare const _default: React__default.NamedExoticComponent<TreeTableProps>;
1631
1631
 
1632
1632
  interface TabsProps {
1633
1633
  /**
@@ -1834,7 +1834,7 @@ interface ModalProps {
1834
1834
  /***Content to be displayed inside the modal */
1835
1835
  children: ReactNode;
1836
1836
  isFooterDisplayed: boolean;
1837
- customWidth: string;
1837
+ customWidth?: string;
1838
1838
  customHeight?: string;
1839
1839
  zIndex?: number;
1840
1840
  boxShadow?: string;
@@ -2631,11 +2631,11 @@ interface CreateVariableProps {
2631
2631
  /**
2632
2632
  * onChange of name
2633
2633
  */
2634
- onNameChange: (value: string | boolean) => void;
2634
+ onNameChange: (value: string) => void;
2635
2635
  /**
2636
2636
  * onChange of value
2637
2637
  */
2638
- onValueChange: (value: string | boolean) => void;
2638
+ onValueChange: (value: string) => void;
2639
2639
  /**
2640
2640
  * Hide value
2641
2641
  */
@@ -2888,12 +2888,13 @@ interface PopUpModalProps {
2888
2888
  subTitleMessage?: string;
2889
2889
  iconName: string;
2890
2890
  modalMessage: string;
2891
- footerMessage: string;
2892
2891
  firstButtonLabel?: string;
2893
2892
  secondButtonLabel: string;
2894
2893
  buttonVariant: any;
2895
2894
  border: string;
2895
+ popupWidth?: string;
2896
2896
  colorForTitleMessage?: string;
2897
+ footerContent?: React.ReactNode;
2897
2898
  }
2898
2899
 
2899
2900
  declare const PopUpModal: FC<PopUpModalProps>;
@@ -2903,7 +2904,7 @@ declare function formatString(input: string, removeSections?: string[]): string;
2903
2904
  type dynamicObject = {
2904
2905
  [key: string]: any;
2905
2906
  };
2906
- interface AddVariableProps {
2907
+ interface ConditionalDropdownProps {
2907
2908
  /**
2908
2909
  * Label for the field
2909
2910
  */
@@ -2927,16 +2928,80 @@ interface AddVariableProps {
2927
2928
  */
2928
2929
  onCreateVariableClick?: () => void;
2929
2930
  /**
2930
- * Value of the input field
2931
+ * Width of the dropdown
2932
+ */
2933
+ dropdownWidth?: string;
2934
+ /**
2935
+ * Name | name of the input field
2936
+ */
2937
+ name: string;
2938
+ /**
2939
+ * value | input field value
2931
2940
  */
2932
2941
  value: string;
2933
2942
  /**
2934
- * Width of the dropdown
2943
+ * variants to set color/style of the input field
2935
2944
  */
2936
- dropdownWidth?: string;
2945
+ variant?: 'default' | 'primary';
2946
+ /**
2947
+ * type to set color/style of the input field
2948
+ */
2949
+ type: 'text' | 'password' | 'number' | 'email' | 'url' | 'time';
2950
+ /**
2951
+ * error | If true, error message will be displayed
2952
+ */
2953
+ error?: boolean;
2954
+ /**
2955
+ * helperText | error, success, warning message to be shown
2956
+ */
2957
+ helperText?: string;
2958
+ /**
2959
+ * to disable the input field
2960
+ */
2961
+ disabled?: boolean;
2962
+ /**
2963
+ * if true, input field will be mandatory
2964
+ */
2965
+ required?: boolean;
2966
+ /**
2967
+ * classnames to style the input field
2968
+ */
2969
+ className?: string;
2970
+ /**
2971
+ * noBorder prop 'true' removes border of input
2972
+ */
2973
+ noBorder?: boolean;
2974
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
2975
+ onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
2976
+ onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
2977
+ /**
2978
+ * id to select the input field uniquely
2979
+ */
2980
+ id?: string;
2981
+ /**
2982
+ * if on, suggestion popup will be displayed
2983
+ */
2984
+ autoComplete?: 'on' | 'off';
2985
+ /**
2986
+ * minimum and maximum values for the number type input field and their functions
2987
+ */
2988
+ minValue?: number;
2989
+ maxValue?: number;
2990
+ /**
2991
+ * background of the input field prop
2992
+ */
2993
+ transparentBackground?: boolean;
2994
+ /**
2995
+ * size for the input field
2996
+ */
2997
+ size?: 'small' | 'medium';
2998
+ /**
2999
+ * isLabelRequired for the input field without label,showing placeholder
3000
+ */
3001
+ isLabelRequired?: boolean;
2937
3002
  }
2938
3003
 
2939
- declare const AddVariables: React__default.FC<AddVariableProps>;
3004
+ declare const ConditionalDropdown: React__default.FC<ConditionalDropdownProps>;
2940
3005
 
2941
3006
  declare const hasDuplicateFile: (array: any[], property: string) => boolean;
2942
3007
 
@@ -2953,4 +3018,4 @@ interface PhoneInputProps {
2953
3018
 
2954
3019
  declare const PhoneInputField: React__default.FC<PhoneInputProps>;
2955
3020
 
2956
- export { Accordion, AddButton as AddResourceButton, AddVariables, AllProjectsDropdown, AppHeader, AttachImage, AttachmentButton, Avatar, BarChart, Button, Checkbox, Chip, Col, Comments, ConnectingBranch, Container, CreateVariableSlider, DashboardDonutChart, CustomDatePicker as DatePicker, DonutChart, DownloadClient, DragAndDrop, Drawer, Dropzone, EditTextField, Editor, ExcelFile as Excel, ExpandableMenu, FieldSet, FileDropzone, FilePreview, ForwardedForms as Form, formatString as FormatString, HighlightText, Icon, IconButton, IconRadialChart, IconRadioGroup, Input, InputWithDropdown, LabelEditTextField, LineChart, MachineInputField, MenuOption, MiniModal, Modal, ModuleChip, MultiRadialChart, MultiSelect, NlpInput as NLPInput, Paper, PhoneInputField, PieChart, PopUpModal, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, Search, Select, SequentialConnectingBranch, StateDropdown, StatusButton, StatusCard, Table, TreeTable as TableTree, TableWithAccordion, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toastify, Toggle, ToggleSwitch, Tooltip, Typography, VariableDropdown, VariableInput, capitalize, checkEmpty, compareArrays, compareObjects, debounce, ffid, findAndInsert, getEncryptedData, getExtension, getExtensionWithPeriod, getSequentialPayload, hasDuplicateFile, saveFileFromBlob, throttle, toast, truncateText, useFileDropzone, useTheme };
3021
+ export { Accordion, AddButton as AddResourceButton, AllProjectsDropdown, AppHeader, AttachImage, AttachmentButton, Avatar, BarChart, Button, Checkbox, Chip, Col, Comments, ConditionalDropdown, ConnectingBranch, Container, CreateVariableSlider, DashboardDonutChart, CustomDatePicker as DatePicker, DonutChart, DownloadClient, DragAndDrop, Drawer, Dropzone, EditTextField, Editor, ExcelFile as Excel, ExpandableMenu, FieldSet, FileDropzone, FilePreview, ForwardedForms as Form, formatString as FormatString, HighlightText, Icon, IconButton, IconRadialChart, IconRadioGroup, Input, InputWithDropdown, LabelEditTextField, LineChart, MachineInputField, MenuOption, MiniModal, Modal, ModuleChip, MultiRadialChart, MultiSelect, NlpInput as NLPInput, Paper, PhoneInputField, PieChart, PopUpModal, RadialChart, RadioButton, RadioGroup, Recaptcha, Row, Search, Select, SequentialConnectingBranch, StateDropdown, StatusButton, StatusCard, Table, _default as TableTree, TableWithAccordion, Tabs, Textarea as TextArea, ThemeProvider, Toaster, Toastify, Toggle, ToggleSwitch, Tooltip, Typography, VariableDropdown, VariableInput, capitalize, checkEmpty, compareArrays, compareObjects, debounce, ffid, findAndInsert, getEncryptedData, getExtension, getExtensionWithPeriod, getSequentialPayload, hasDuplicateFile, saveFileFromBlob, throttle, toast, truncateText, useFileDropzone, useTheme };