pixel-react 1.9.1 → 1.9.3
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/.yarn/install-state.gz +0 -0
- package/lib/components/Charts/BarChart/BarChart.d.ts +1 -0
- package/lib/components/Charts/MultiRadialChart/types.d.ts +2 -0
- package/lib/components/Excel/ExcelFile/ExcelFile.d.ts +1 -3
- package/lib/components/Excel/Types.d.ts +1 -1
- package/lib/components/Table/Table.d.ts +1 -1
- package/lib/components/Table/Types.d.ts +8 -0
- package/lib/components/TableTree/Components/TableCell.d.ts +1 -1
- package/lib/components/TableTree/Components/TableRow.d.ts +1 -1
- package/lib/components/TableTree/data.d.ts +54 -262
- package/lib/components/TableTree/types.d.ts +0 -6
- package/lib/index.d.ts +18 -7
- package/lib/index.esm.js +21547 -21727
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +21554 -21733
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/indexDBStore/indexDB.d.ts +2 -2
- package/lib/utils/swapArrayItem/dragAndDropUtils.d.ts +1 -0
- package/package.json +1 -2
- package/src/StyleGuide/ColorPalette/colorPaletteList.ts +55 -0
- package/src/assets/Themes/BaseTheme.scss +17 -6
- package/src/assets/Themes/BlueTheme.scss +12 -0
- package/src/assets/Themes/DarkTheme.scss +20 -6
- package/src/assets/icons/approval_pending.svg +8 -8
- package/src/assets/icons/azure.svg +9 -0
- package/src/assets/icons/bitbucket.svg +9 -0
- package/src/assets/icons/clear_history.svg +6 -0
- package/src/assets/icons/code.svg +4 -0
- package/src/assets/icons/code_colored.svg +4 -0
- package/src/assets/icons/configuration.svg +3 -3
- package/src/assets/icons/csharp.svg +9 -0
- package/src/assets/icons/cypress.svg +9 -0
- package/src/assets/icons/defects.svg +8 -8
- package/src/assets/icons/delete_filled.svg +12 -0
- package/src/assets/icons/design_link.svg +7 -0
- package/src/assets/icons/disable_icon.svg +3 -0
- package/src/assets/icons/element.svg +4 -4
- package/src/assets/icons/enable_icon.svg +3 -0
- package/src/assets/icons/file_colored.svg +5 -0
- package/src/assets/icons/github.svg +9 -0
- package/src/assets/icons/gitlab.svg +9 -0
- package/src/assets/icons/java.svg +4 -0
- package/src/assets/icons/javascript.svg +11 -0
- package/src/assets/icons/jenkins.svg +9 -0
- package/src/assets/icons/jira_colored.svg +15 -0
- package/src/assets/icons/jira_logo.svg +9 -0
- package/src/assets/icons/mic.svg +4 -0
- package/src/assets/icons/mic_filled.svg +28 -0
- package/src/assets/icons/playwright.svg +9 -0
- package/src/assets/icons/primary_calendar_icon.svg +3 -0
- package/src/assets/icons/project_element.svg +4 -4
- package/src/assets/icons/python.svg +19 -0
- package/src/assets/icons/regenerate.svg +4 -0
- package/src/assets/icons/right_arrow_filled_icon.svg +5 -0
- package/src/assets/icons/screenshot.svg +7 -0
- package/src/assets/icons/slack.svg +9 -0
- package/src/assets/icons/step_group.svg +10 -10
- package/src/assets/icons/variable.svg +3 -3
- package/src/assets/icons/web_service_icon.svg +3 -3
- package/src/components/Button/Button.tsx +2 -0
- package/src/components/Charts/BarChart/BarChart.stories.tsx +2 -1
- package/src/components/Charts/BarChart/BarChart.tsx +6 -2
- package/src/components/Charts/MultiRadialChart/MultiRadialChart.scss +0 -2
- package/src/components/Charts/MultiRadialChart/MultiRadialChart.stories.tsx +7 -1
- package/src/components/Charts/MultiRadialChart/MultiRadialChart.tsx +5 -2
- package/src/components/Charts/MultiRadialChart/types.ts +2 -0
- package/src/components/DatePicker/DatePicker.scss +379 -632
- package/src/components/DatePicker/DatePicker.tsx +130 -98
- package/src/components/DatePicker/Timepicker.tsx +1 -13
- package/src/components/Excel/ExcelFile/ExcelFile.tsx +48 -42
- package/src/components/Excel/ExcelFile.stories.tsx +98 -96
- package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +65 -28
- package/src/components/Excel/Types.ts +1 -1
- package/src/components/Excel/dataConversion.ts +8 -10
- package/src/components/Icon/iconList.ts +60 -3
- package/src/components/Table/Table.scss +44 -11
- package/src/components/Table/Table.stories.tsx +60 -1
- package/src/components/Table/Table.tsx +190 -123
- package/src/components/Table/Types.ts +8 -0
- package/src/components/TableTree/Components/TableBody.tsx +18 -20
- package/src/components/TableTree/Components/TableCell.tsx +28 -16
- package/src/components/TableTree/Components/TableRow.tsx +4 -7
- package/src/components/TableTree/TableTree.stories.tsx +10 -10
- package/src/components/TableTree/TableTree.tsx +19 -16
- package/src/components/TableTree/data.ts +53 -362
- package/src/components/TableTree/types.ts +0 -6
- package/src/components/TextArea/Textarea.scss +24 -6
- package/src/index.ts +3 -1
- package/src/utils/indexDBStore/indexDB.ts +63 -33
- package/src/utils/swapArrayItem/dragAndDropUtils.ts +11 -0
- package/lib/1fb4472b34e4fe07.css +0 -1
- package/lib/StyleGuide/ColorPalette/ColorPalette.stories.d.ts +0 -6
- package/lib/StyleGuide/Typography/Typography.stories.d.ts +0 -6
- package/lib/assets/fonts/Poppins-Bold.ttf +0 -0
- package/lib/assets/fonts/Poppins-Medium.ttf +0 -0
- package/lib/assets/fonts/Poppins-Regular.ttf +0 -0
- package/lib/assets/fonts/Poppins-SemiBold.ttf +0 -0
- package/lib/components/Accordion/Accordion.stories.d.ts +0 -6
- package/lib/components/AddButton/AddButton.d.ts +0 -5
- package/lib/components/AddButton/AddButton.stories.d.ts +0 -6
- package/lib/components/AddButton/index.d.ts +0 -1
- package/lib/components/AddButton/types.d.ts +0 -4
- package/lib/components/AddResourceButton/AddButton.stories.d.ts +0 -8
- package/lib/components/AddVariables/AddVariables.d.ts +0 -5
- package/lib/components/AddVariables/index.d.ts +0 -1
- package/lib/components/AddVariables/types.d.ts +0 -35
- package/lib/components/AllProjectsDropdown/AllProjectsDropdown.stories.d.ts +0 -7
- package/lib/components/AppHeader/AppHeader.stories.d.ts +0 -7
- package/lib/components/AttachImage/AttachImage.stories.d.ts +0 -7
- package/lib/components/AttachmentButton/AttachmentButton.stories.d.ts +0 -9
- package/lib/components/Avatar/Avatar.stories.d.ts +0 -10
- package/lib/components/Button/Button.stories.d.ts +0 -13
- package/lib/components/Charts/BarChart/BarChart.stories.d.ts +0 -6
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.d.ts +0 -7
- package/lib/components/Charts/DonutChart/DonutChart.stories.d.ts +0 -6
- package/lib/components/Charts/IconRadialChart/IconRadialChart.stories.d.ts +0 -8
- package/lib/components/Charts/LineChart/LineChart.stories.d.ts +0 -7
- package/lib/components/Charts/MultiRadialChart/MultiRadialChart.stories.d.ts +0 -8
- package/lib/components/Charts/PieChart/PieChart.stories.d.ts +0 -7
- package/lib/components/Charts/RadialChart/RadialChart.stories.d.ts +0 -6
- package/lib/components/Checkbox/Checkbox.stories.d.ts +0 -8
- package/lib/components/Chip/Chip.stories.d.ts +0 -14
- package/lib/components/ConnectingBranch/ConnectingBranch.stories.d.ts +0 -6
- package/lib/components/DatePicker/DatePicker.stories.d.ts +0 -9
- package/lib/components/DragAndDrop/DragAndDrop.stories.d.ts +0 -6
- package/lib/components/Drawer/Drawer.stories.d.ts +0 -12
- package/lib/components/EditTextField/EditTextField.stories.d.ts +0 -10
- package/lib/components/Editor/Editor.stories.d.ts +0 -6
- package/lib/components/Excel/ContextMenu/ContextMenu.d.ts +0 -4
- package/lib/components/Excel/ExcelFile.stories.d.ts +0 -6
- package/lib/components/ExcelFile/ChangeExcelStyles.d.ts +0 -14
- package/lib/components/ExcelFile/ColorBarSelector/ColorBarSelector.d.ts +0 -8
- package/lib/components/ExcelFile/ContextMenu/ContextMenu.d.ts +0 -4
- package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +0 -7
- package/lib/components/ExcelFile/ExcelFile/Excel/Cell.d.ts +0 -4
- package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +0 -5
- package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +0 -5
- package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +0 -5
- package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +0 -8
- package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +0 -10
- package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +0 -5
- package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +0 -80
- package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +0 -174
- package/lib/components/ExcelFile/ExcelFile/Excel/areModelsEqual.d.ts +0 -1
- package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +0 -8
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +0 -22
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +0 -17
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +0 -2
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +0 -21
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +0 -24
- package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +0 -13
- package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +0 -67
- package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +0 -22
- package/lib/components/ExcelFile/ExcelFile/Excel/point.d.ts +0 -11
- package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +0 -27
- package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +0 -95
- package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +0 -178
- package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +0 -3
- package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +0 -44
- package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +0 -19
- package/lib/components/ExcelFile/ExcelFile.stories.d.ts +0 -6
- package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +0 -12
- package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +0 -15
- package/lib/components/ExcelFile/ImportExcelStyles.d.ts +0 -24
- package/lib/components/ExcelFile/Types.d.ts +0 -129
- package/lib/components/ExcelFile/index.d.ts +0 -1
- package/lib/components/ExpandableMenu/ExpandableMenu.stories.d.ts +0 -7
- package/lib/components/FF_Captcha/captcha.stories.d.ts +0 -8
- package/lib/components/FileDropzone/FileDropzone.stories.d.ts +0 -8
- package/lib/components/Form/Form.stories.d.ts +0 -7
- package/lib/components/GridLayout/GridLayout.stories.d.ts +0 -8
- package/lib/components/HighlightText/HighlightText.stories.d.ts +0 -6
- package/lib/components/Icon/Icon.stories.d.ts +0 -8
- package/lib/components/IconButton/IconButton.stories.d.ts +0 -7
- package/lib/components/IconRadioGroup/IconRadioGroup.stories.d.ts +0 -7
- package/lib/components/Input/Input.stories.d.ts +0 -9
- package/lib/components/InputWithDropdown/InputWithDropdown.stories.d.ts +0 -9
- package/lib/components/LabelEditTextField/LabelEditTextField.stories.d.ts +0 -13
- package/lib/components/LazyLoad/LazyLoad.stories.d.ts +0 -6
- package/lib/components/MachineInputField/MachineInputField.stories.d.ts +0 -6
- package/lib/components/MenuOption/MenuOption.stories.d.ts +0 -16
- package/lib/components/MiniModal/MiniModal.stories.d.ts +0 -10
- package/lib/components/Modal/Modal.stories.d.ts +0 -7
- package/lib/components/ModulesChip/ModuleChip.stories.d.ts +0 -6
- package/lib/components/MultiSelect/MultiSelect.stories.d.ts +0 -11
- package/lib/components/NLPInput/NlpInput.stories.d.ts +0 -7
- package/lib/components/NLPInput/type.d.ts +0 -70
- package/lib/components/Paper/Paper.stories.d.ts +0 -11
- package/lib/components/RadioButton/RadioButton.stories.d.ts +0 -10
- package/lib/components/RadioGroup/RadioGroup.stories.d.ts +0 -9
- package/lib/components/Search/Search.stories.d.ts +0 -6
- package/lib/components/Select/Select.stories.d.ts +0 -14
- package/lib/components/Select/components/Dropdown/Dropdown.d.ts +0 -4
- package/lib/components/Select/components/Dropdown/dropdownTypes.d.ts +0 -17
- package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.stories.d.ts +0 -6
- package/lib/components/SequentialConnectingBranch/components/AddBrowserModal/AddBrowserModal.d.ts +0 -4
- package/lib/components/SequentialConnectingBranch/components/AddBrowserModal/types.d.ts +0 -3
- package/lib/components/SequentialConnectingBranch/components/DatasetListModal/DatasetListModal.d.ts +0 -4
- package/lib/components/SequentialConnectingBranch/components/DatasetListModal/types.d.ts +0 -3
- package/lib/components/StateDropdown/StateDropdown.stories.d.ts +0 -10
- package/lib/components/StatusButton/StatusButton.stories.d.ts +0 -14
- package/lib/components/StatusCard/StatusCard.stories.d.ts +0 -11
- package/lib/components/Table/Table.stories.d.ts +0 -13
- package/lib/components/TableTree/TableTree.stories.d.ts +0 -7
- package/lib/components/Tabs/Tabs.stories.d.ts +0 -9
- package/lib/components/TextArea/Textarea.stories.d.ts +0 -9
- package/lib/components/Toast/Toast.stories.d.ts +0 -6
- package/lib/components/Toastify/Toastify.stories.d.ts +0 -6
- package/lib/components/Toggle/Toggle.stories.d.ts +0 -12
- package/lib/components/Tooltip/Tooltip.stories.d.ts +0 -15
- package/lib/components/Typography/Typography.stories.d.ts +0 -10
- package/lib/components/VariableInput/VariableInput.stories.d.ts +0 -6
- package/lib/utils/checkEmpty/checkEmpty.stories.d.ts +0 -6
- package/lib/utils/compareArrays/compareArrays.stories.d.ts +0 -6
- package/lib/utils/compareObjects/compareObjects.stories.d.ts +0 -6
- package/lib/utils/debounce/debounce.stories.d.ts +0 -6
- package/lib/utils/ffID/ffID.stories.d.ts +0 -6
- package/lib/utils/find/findAndInsert.d.ts +0 -7
- package/lib/utils/find/findAndInsert.stories.d.ts +0 -7
- package/lib/utils/findAndInsert/findAndInsert.stories.d.ts +0 -7
- package/lib/utils/getEncryptedData/getEncryptedData.stories.d.ts +0 -6
- package/lib/utils/getExtension/getExtension.stories.d.ts +0 -6
- package/lib/utils/getSequentialPayload/getSequentialPayload.stories.d.ts +0 -10
- package/lib/utils/throttle/throttle.stories.d.ts +0 -6
- package/lib/utils/truncateText/truncateText.stories.d.ts +0 -6
@@ -1,367 +1,58 @@
|
|
1
1
|
const data = [
|
2
2
|
{
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
folder: true,
|
57
|
-
moduleLevelScriptCount: 0,
|
58
|
-
name: 'Root Module',
|
59
|
-
parentId: 'MOD1001', // Root has no parent
|
60
|
-
id: 'MOD1002', // Unique ID
|
61
|
-
},
|
62
|
-
parentSiblings: [true, false],
|
63
|
-
lines: 1,
|
64
|
-
},
|
65
|
-
{
|
66
|
-
node: {
|
67
|
-
subModuleCount: 10,
|
68
|
-
title: 'Home',
|
69
|
-
scriptCount: 0,
|
70
|
-
path: '/Root/Home',
|
71
|
-
expanded: true,
|
72
|
-
modifiedOn: '19-12-2023 15:43',
|
73
|
-
folder: true,
|
74
|
-
children: false,
|
75
|
-
parentId: 'MOD1001', // Parent is '/Root'
|
76
|
-
id: 'MOD1003', // Unique ID
|
77
|
-
},
|
78
|
-
level: 1,
|
79
|
-
parentSiblings: [true, false],
|
80
|
-
},
|
81
|
-
{
|
82
|
-
node: {
|
83
|
-
ver: 1,
|
84
|
-
hierarchy: 2,
|
85
|
-
subModuleCount: 4,
|
86
|
-
assigneeCount: 0,
|
87
|
-
searchKey: '/MOD1001/MOD1002/MOD10031111',
|
88
|
-
modifiedByUname: '--',
|
89
|
-
title: 'Setup',
|
90
|
-
scriptCount: 0,
|
91
|
-
executionOrder: 1,
|
92
|
-
createdByUname: 'Shivaprasad',
|
93
|
-
parentId: 'MOD1003', // Parent is 'Home'
|
94
|
-
path: '/Root/Home/Setup',
|
95
|
-
expanded: false,
|
96
|
-
modifiedOn: '19-12-2023 16:40',
|
97
|
-
parentName: 'Home',
|
98
|
-
moduleLevelScriptCount: 0,
|
99
|
-
lastExecutionOrder: 0,
|
100
|
-
imported: false,
|
101
|
-
name: 'Setup',
|
102
|
-
modifiedBy: '--',
|
103
|
-
moduleCountWithScript: 0,
|
104
|
-
state: 'NEW',
|
105
|
-
key: 'MOD1003',
|
106
|
-
folder: true,
|
107
|
-
children: false,
|
108
|
-
id: 'MOD1004', // Unique ID
|
109
|
-
},
|
110
|
-
level: 2,
|
111
|
-
parentSiblings: [true, true, false],
|
112
|
-
},
|
113
|
-
{
|
114
|
-
node: {
|
115
|
-
ver: 1,
|
116
|
-
hierarchy: 3,
|
117
|
-
subModuleCount: 0,
|
118
|
-
assigneeCount: 0,
|
119
|
-
searchKey: '/MOD1001/MOD1002/MOD1003/MOD1101',
|
120
|
-
modifiedByUname: '--',
|
121
|
-
title: 'Initial Setup',
|
122
|
-
scriptCount: 0,
|
123
|
-
executionOrder: 1,
|
124
|
-
createdByUname: 'Shivaprasad',
|
125
|
-
parentId: 'MOD1004', // Parent is 'Setup'
|
126
|
-
path: '/Root/Home/Setup/Initial Setup',
|
127
|
-
expanded: false,
|
128
|
-
modifiedOn: '20-12-2023 09:00',
|
129
|
-
parentName: 'Setup',
|
130
|
-
moduleLevelScriptCount: 0,
|
131
|
-
lastExecutionOrder: 0,
|
132
|
-
imported: false,
|
133
|
-
name: 'Initial Setup',
|
134
|
-
modifiedBy: '--',
|
135
|
-
moduleCountWithScript: 0,
|
136
|
-
state: 'NEW',
|
137
|
-
key: 'MOD1101',
|
138
|
-
children: true,
|
139
|
-
id: 'MOD1101', // Unique ID
|
140
|
-
},
|
141
|
-
level: 3,
|
142
|
-
parentSiblings: [true, true, true, false],
|
143
|
-
},
|
144
|
-
{
|
145
|
-
node: {
|
146
|
-
ver: 1,
|
147
|
-
hierarchy: 3,
|
148
|
-
subModuleCount: 0,
|
149
|
-
assigneeCount: 0,
|
150
|
-
searchKey: '/MOD1001/MOD1002/MOD1003/MOD1102',
|
151
|
-
modifiedByUname: '--',
|
152
|
-
title: 'Advanced Setup',
|
153
|
-
scriptCount: 0,
|
154
|
-
executionOrder: 2,
|
155
|
-
createdByUname: 'Shivaprasad',
|
156
|
-
parentId: 'MOD1004', // Parent is 'Setup'
|
157
|
-
path: '/Root/Home/Setup/Advanced Setup',
|
158
|
-
expanded: false,
|
159
|
-
modifiedOn: '20-12-2023 09:30',
|
160
|
-
parentName: 'Setup',
|
161
|
-
moduleLevelScriptCount: 0,
|
162
|
-
lastExecutionOrder: 0,
|
163
|
-
imported: false,
|
164
|
-
name: 'Advanced Setup',
|
165
|
-
modifiedBy: '--',
|
166
|
-
moduleCountWithScript: 0,
|
167
|
-
state: 'NEW',
|
168
|
-
key: 'MOD1102',
|
169
|
-
children: true,
|
170
|
-
id: 'MOD1102', // Unique ID
|
171
|
-
},
|
172
|
-
level: 3,
|
173
|
-
parentSiblings: [true, true, true, false],
|
174
|
-
},
|
175
|
-
{
|
176
|
-
node: {
|
177
|
-
ver: 1,
|
178
|
-
hierarchy: 3,
|
179
|
-
subModuleCount: 0,
|
180
|
-
assigneeCount: 0,
|
181
|
-
searchKey: '/MOD1001/MOD1002/MOD1003/MOD1103',
|
182
|
-
modifiedByUname: '--',
|
183
|
-
title: 'Setup Review',
|
184
|
-
scriptCount: 0,
|
185
|
-
executionOrder: 3,
|
186
|
-
createdByUname: 'Shivaprasad',
|
187
|
-
parentId: 'MOD1004', // Parent is 'Setup'
|
188
|
-
path: '/Root/Home/Setup/Setup Review',
|
189
|
-
expanded: false,
|
190
|
-
modifiedOn: '20-12-2023 10:00',
|
191
|
-
parentName: 'Setup',
|
192
|
-
moduleLevelScriptCount: 0,
|
193
|
-
lastExecutionOrder: 0,
|
194
|
-
imported: false,
|
195
|
-
name: 'Setup Review',
|
196
|
-
modifiedBy: '--',
|
197
|
-
moduleCountWithScript: 0,
|
198
|
-
state: 'NEW',
|
199
|
-
key: 'MOD1103',
|
200
|
-
children: true,
|
201
|
-
id: 'MOD1103', // Unique ID
|
202
|
-
},
|
203
|
-
level: 3,
|
204
|
-
parentSiblings: [true, true, true, false],
|
205
|
-
isLast: true,
|
206
|
-
},
|
207
|
-
{
|
208
|
-
node: {
|
209
|
-
ver: 1,
|
210
|
-
hierarchy: 2,
|
211
|
-
subModuleCount: 4,
|
212
|
-
assigneeCount: 0,
|
213
|
-
searchKey: '/MOD1001/MOD1002/MOD1004',
|
214
|
-
modifiedByUname: '--',
|
215
|
-
title: 'Authoring Cycle',
|
216
|
-
scriptCount: 0,
|
217
|
-
executionOrder: 2,
|
218
|
-
createdByUname: 'Shivaprasad',
|
219
|
-
parentId: 'MOD1003', // Parent is 'Home'
|
220
|
-
path: '/Root/Home/Authoring Cycle',
|
221
|
-
expanded: false,
|
222
|
-
modifiedOn: '19-12-2023 16:40',
|
223
|
-
parentName: 'Home',
|
224
|
-
moduleLevelScriptCount: 0,
|
225
|
-
lastExecutionOrder: 0,
|
226
|
-
imported: false,
|
227
|
-
name: 'Authoring Cycle',
|
228
|
-
modifiedBy: '--',
|
229
|
-
moduleCountWithScript: 0,
|
230
|
-
state: 'NEW',
|
231
|
-
key: 'MOD1004',
|
232
|
-
folder: true,
|
233
|
-
children: false,
|
234
|
-
id: 'MOD1005', // Unique ID
|
235
|
-
},
|
236
|
-
level: 2,
|
237
|
-
parentSiblings: [true, true, false],
|
238
|
-
isLast: true,
|
239
|
-
},
|
240
|
-
{
|
241
|
-
node: {
|
242
|
-
ver: 1,
|
243
|
-
hierarchy: 3,
|
244
|
-
subModuleCount: 0,
|
245
|
-
assigneeCount: 0,
|
246
|
-
searchKey: '/MOD1001/MOD1002/MOD1004/MOD1201',
|
247
|
-
modifiedByUname: '--',
|
248
|
-
title: 'Draft Authoring',
|
249
|
-
scriptCount: 0,
|
250
|
-
executionOrder: 1,
|
251
|
-
createdByUname: 'Shivaprasad',
|
252
|
-
parentId: 'MOD1005', // Parent is 'Authoring Cycle'
|
253
|
-
path: '/Root/Home/Authoring Cycle/Draft Authoring',
|
254
|
-
expanded: false,
|
255
|
-
modifiedOn: '21-12-2023 11:00',
|
256
|
-
parentName: 'Authoring Cycle',
|
257
|
-
moduleLevelScriptCount: 0,
|
258
|
-
lastExecutionOrder: 0,
|
259
|
-
imported: false,
|
260
|
-
name: 'Draft Authoring',
|
261
|
-
modifiedBy: '--',
|
262
|
-
moduleCountWithScript: 0,
|
263
|
-
state: 'NEW',
|
264
|
-
key: 'MOD1201',
|
265
|
-
children: true,
|
266
|
-
id: 'MOD1201', // Unique ID
|
267
|
-
},
|
268
|
-
level: 3,
|
269
|
-
parentSiblings: [true, false, true, false],
|
270
|
-
},
|
271
|
-
{
|
272
|
-
node: {
|
273
|
-
ver: 1,
|
274
|
-
hierarchy: 3,
|
275
|
-
subModuleCount: 0,
|
276
|
-
assigneeCount: 0,
|
277
|
-
searchKey: '/MOD1001/MOD1002/MOD1004/MOD1202',
|
278
|
-
modifiedByUname: '--',
|
279
|
-
title: 'Peer Review',
|
280
|
-
scriptCount: 0,
|
281
|
-
executionOrder: 2,
|
282
|
-
createdByUname: 'Shivaprasad',
|
283
|
-
parentId: 'MOD1005', // Parent is 'Authoring Cycle'
|
284
|
-
path: '/Root/Home/Authoring Cycle/Peer Review',
|
285
|
-
expanded: false,
|
286
|
-
modifiedOn: '21-12-2023 12:00',
|
287
|
-
parentName: 'Authoring Cycle',
|
288
|
-
moduleLevelScriptCount: 0,
|
289
|
-
lastExecutionOrder: 0,
|
290
|
-
imported: false,
|
291
|
-
name: 'Peer Review',
|
292
|
-
modifiedBy: '--',
|
293
|
-
moduleCountWithScript: 0,
|
294
|
-
state: 'NEW',
|
295
|
-
key: 'MOD1202',
|
296
|
-
children: true,
|
297
|
-
id: 'MOD1202', // Unique ID
|
298
|
-
},
|
299
|
-
level: 3,
|
300
|
-
parentSiblings: [true, false, true, false],
|
301
|
-
},
|
302
|
-
{
|
303
|
-
node: {
|
304
|
-
ver: 1,
|
305
|
-
hierarchy: 3,
|
306
|
-
subModuleCount: 0,
|
307
|
-
assigneeCount: 0,
|
308
|
-
searchKey: '/MOD1001/MOD1002/MOD1004/MOD1203',
|
309
|
-
modifiedByUname: '--',
|
310
|
-
title: 'Final Review',
|
311
|
-
scriptCount: 0,
|
312
|
-
executionOrder: 3,
|
313
|
-
createdByUname: 'Shivaprasad',
|
314
|
-
parentId: 'MOD1005', // Parent is 'Authoring Cycle'
|
315
|
-
path: '/Root/Home/Authoring Cycle/Final Review',
|
316
|
-
expanded: false,
|
317
|
-
modifiedOn: '21-12-2023 13:00',
|
318
|
-
parentName: 'Authoring Cycle',
|
319
|
-
moduleLevelScriptCount: 0,
|
320
|
-
lastExecutionOrder: 0,
|
321
|
-
imported: false,
|
322
|
-
name: 'Final Review',
|
323
|
-
modifiedBy: '--',
|
324
|
-
moduleCountWithScript: 0,
|
325
|
-
state: 'NEW',
|
326
|
-
key: 'MOD1203',
|
327
|
-
children: true,
|
328
|
-
id: 'MOD1203', // Unique ID
|
329
|
-
},
|
330
|
-
level: 3,
|
331
|
-
parentSiblings: [true, false, true, false],
|
332
|
-
isLast: true,
|
333
|
-
},
|
334
|
-
{
|
335
|
-
node: {
|
336
|
-
subModuleCount: 15,
|
337
|
-
title: 'mod3',
|
338
|
-
scriptCount: 0,
|
339
|
-
path: '/Root',
|
340
|
-
expanded: true,
|
341
|
-
modifiedOn: '19-12-2023 15:32',
|
342
|
-
children: false,
|
343
|
-
lastExecutionOrder: 3,
|
344
|
-
imported: false,
|
345
|
-
modifiedBy: '--',
|
346
|
-
moduleCountWithScript: 1,
|
347
|
-
state: 'NEW',
|
348
|
-
key: 'MOD1001',
|
349
|
-
ver: 1,
|
350
|
-
hierarchy: 0,
|
351
|
-
assigneeCount: 0,
|
352
|
-
searchKey: '/MOD1001111110000000000',
|
353
|
-
modifiedByUname: '--',
|
354
|
-
executionOrder: 0,
|
355
|
-
createdByUname: 'Shivaprasad',
|
356
|
-
folder: true,
|
357
|
-
moduleLevelScriptCount: 0,
|
358
|
-
name: 'Root Module111',
|
359
|
-
parentId: 'MOD1001', // Root has no parent
|
360
|
-
id: 'MOD100222', // Unique ID
|
361
|
-
},
|
362
|
-
level: 1,
|
363
|
-
parentSiblings: [true, false],
|
364
|
-
isLast: true,
|
3
|
+
createdBy: 'USR4705',
|
4
|
+
modifiedBy: '--',
|
5
|
+
createdByUname: 'Saqeb',
|
6
|
+
modifiedByUname: '--',
|
7
|
+
createdOn: '2023-05-31T10:54:33.296Z',
|
8
|
+
modifiedOn: '2023-05-31T10:54:33.296Z',
|
9
|
+
state: 'APPROVED',
|
10
|
+
path: '/Root',
|
11
|
+
searchKey: '/PAG1010',
|
12
|
+
key: 'PAG1010',
|
13
|
+
name: 'Root',
|
14
|
+
projectId: 'PJT1006',
|
15
|
+
hierarchy: 0,
|
16
|
+
executionOrder: 0,
|
17
|
+
subContainerCount: 1,
|
18
|
+
resourceCount: 0,
|
19
|
+
totalSubContainerCount: 1,
|
20
|
+
totalResourceCount: 2,
|
21
|
+
totalProjectElementCount: 0,
|
22
|
+
totalSharedElementCount: 0,
|
23
|
+
container: false,
|
24
|
+
localDelete: false,
|
25
|
+
defaultEntity: false,
|
26
|
+
lastResource: false,
|
27
|
+
platform: '',
|
28
|
+
},
|
29
|
+
{
|
30
|
+
createdBy: 'USR4705',
|
31
|
+
modifiedBy: '--',
|
32
|
+
createdByUname: 'Saqeb',
|
33
|
+
modifiedByUname: '--',
|
34
|
+
createdOn: '2023-05-31T10:57:31.721Z',
|
35
|
+
modifiedOn: '2023-05-31T10:57:31.721Z',
|
36
|
+
state: 'APPROVED',
|
37
|
+
path: '/Root/page1',
|
38
|
+
searchKey: '/PAG1010/PAG1011',
|
39
|
+
parentId: 'PAG1010',
|
40
|
+
parentName: 'Root Page',
|
41
|
+
key: 'PAG1011',
|
42
|
+
name: 'page1',
|
43
|
+
projectId: 'PJT1006',
|
44
|
+
hierarchy: 0,
|
45
|
+
executionOrder: 1,
|
46
|
+
subContainerCount: 0,
|
47
|
+
resourceCount: 3,
|
48
|
+
totalSubContainerCount: 0,
|
49
|
+
totalResourceCount: 1,
|
50
|
+
totalProjectElementCount: 0,
|
51
|
+
totalSharedElementCount: 0,
|
52
|
+
container: false,
|
53
|
+
localDelete: false,
|
54
|
+
defaultEntity: false,
|
55
|
+
lastResource: true,
|
365
56
|
},
|
366
57
|
];
|
367
58
|
|
@@ -12,13 +12,10 @@ declare type JSX = ReactNode | JSX.Element[] | string | null;
|
|
12
12
|
export interface TableCellProps {
|
13
13
|
col: any;
|
14
14
|
node: any;
|
15
|
-
level: number;
|
16
15
|
selected: string[];
|
17
16
|
select: string | null;
|
18
17
|
onCheckBoxChange: (e: any, node: string[] | any) => void;
|
19
18
|
onToggleExpand: (node: any) => void;
|
20
|
-
parentSiblings: boolean[];
|
21
|
-
isLast: boolean | undefined;
|
22
19
|
}
|
23
20
|
|
24
21
|
export interface TableHeadProps {
|
@@ -37,15 +34,12 @@ export interface TableBodyProps {
|
|
37
34
|
|
38
35
|
export interface TableRowProps {
|
39
36
|
node: any;
|
40
|
-
level: number;
|
41
37
|
columnsData: any[];
|
42
38
|
selected: string[];
|
43
39
|
select: string | null;
|
44
40
|
onRowClick: (e: any, node: any) => void;
|
45
41
|
onToggleExpand: (node: any) => void;
|
46
42
|
onCheckBoxChange: (e: any, node: string[] | any) => void;
|
47
|
-
parentSiblings: boolean[];
|
48
|
-
isLast: boolean | undefined;
|
49
43
|
}
|
50
44
|
|
51
45
|
export interface Column {
|
@@ -5,26 +5,36 @@
|
|
5
5
|
flex-direction: column;
|
6
6
|
position: relative;
|
7
7
|
gap: 5px;
|
8
|
+
|
8
9
|
@extend .fontSm;
|
10
|
+
|
9
11
|
.msg-character-count {
|
10
12
|
@extend .font-size-8;
|
11
13
|
display: flex;
|
12
14
|
color: var(--text-area-default-color);
|
13
15
|
justify-content: flex-end;
|
14
16
|
}
|
17
|
+
|
15
18
|
.ff-textarea {
|
16
19
|
padding: 8px;
|
17
|
-
width: 100%;
|
18
|
-
min-height: 80px;
|
19
20
|
gap: 0px;
|
20
21
|
border: 1px solid var(--default-icon-color);
|
21
22
|
border-radius: 4px;
|
22
23
|
outline: none;
|
23
24
|
line-height: 18px;
|
24
25
|
font-weight: 400;
|
26
|
+
overflow: auto;
|
25
27
|
&--resize {
|
26
28
|
resize: none;
|
27
29
|
}
|
30
|
+
|
31
|
+
::-webkit-scrollbar {
|
32
|
+
display: none;
|
33
|
+
}
|
34
|
+
|
35
|
+
-ms-overflow-style: none;
|
36
|
+
scrollbar-width: none;
|
37
|
+
|
28
38
|
&:disabled {
|
29
39
|
opacity: 0.5;
|
30
40
|
cursor: not-allowed;
|
@@ -33,12 +43,15 @@
|
|
33
43
|
color: inherit;
|
34
44
|
}
|
35
45
|
}
|
46
|
+
|
36
47
|
&::placeholder {
|
37
48
|
opacity: 0;
|
38
49
|
}
|
50
|
+
|
39
51
|
&--danger {
|
40
|
-
border-color: var(--
|
52
|
+
border-color: var(--ff-error-light);
|
41
53
|
}
|
54
|
+
|
42
55
|
&--transparentBackground {
|
43
56
|
background: transparent;
|
44
57
|
}
|
@@ -60,14 +73,15 @@
|
|
60
73
|
background-color: var(--drawer-footer-bg);
|
61
74
|
color: var(--text-area-default-color);
|
62
75
|
&--danger {
|
63
|
-
color: var(--
|
76
|
+
color: var(--ff-error-light);
|
64
77
|
}
|
65
78
|
}
|
66
79
|
|
67
80
|
.required-asterisk {
|
68
|
-
color: var(--
|
81
|
+
color: var(--ff-error-light);
|
69
82
|
}
|
70
83
|
}
|
84
|
+
|
71
85
|
&:hover {
|
72
86
|
.ff-textarea-label {
|
73
87
|
color: var(--text-color);
|
@@ -76,6 +90,7 @@
|
|
76
90
|
border-color: var(--text-color);
|
77
91
|
}
|
78
92
|
}
|
93
|
+
|
79
94
|
&:focus-within {
|
80
95
|
.ff-textarea-label-container {
|
81
96
|
font-weight: 400;
|
@@ -88,11 +103,13 @@
|
|
88
103
|
padding: 0px 2px;
|
89
104
|
margin-left: 7px;
|
90
105
|
}
|
106
|
+
|
91
107
|
.ff-textarea-label {
|
92
108
|
&--primary {
|
93
109
|
color: var(--brand-color);
|
94
110
|
}
|
95
111
|
}
|
112
|
+
|
96
113
|
.ff-textarea {
|
97
114
|
&--primary {
|
98
115
|
border-color: var(--brand-color);
|
@@ -112,7 +129,7 @@
|
|
112
129
|
margin-left: 8px;
|
113
130
|
line-height: 12px;
|
114
131
|
&--danger {
|
115
|
-
color: var(--
|
132
|
+
color: var(--ff-error-light);
|
116
133
|
}
|
117
134
|
}
|
118
135
|
|
@@ -127,6 +144,7 @@
|
|
127
144
|
margin-left: 7px;
|
128
145
|
}
|
129
146
|
}
|
147
|
+
|
130
148
|
&--disabled {
|
131
149
|
&:hover {
|
132
150
|
.ff-textarea-label {
|
package/src/index.ts
CHANGED
@@ -105,6 +105,7 @@ import ConditionalDropdown from './components/ConditionalDropdown/ConditionalDro
|
|
105
105
|
import { hasDuplicateFile } from './utils/checkDuplicates/checkDuplicates';
|
106
106
|
import PhoneInputField from './components/PhoneInput';
|
107
107
|
import { useKeyboardActions } from './utils/keyBoardActionUtil/UseKeyboardActions';
|
108
|
+
import { rearrangeDragItem } from './utils/swapArrayItem/dragAndDropUtils'
|
108
109
|
import {
|
109
110
|
EMAIL_REGEX,
|
110
111
|
URL_REGEX,
|
@@ -273,7 +274,8 @@ export {
|
|
273
274
|
useKeyboardActions,
|
274
275
|
saveToIndexedDB,
|
275
276
|
getFromIndexedDB,
|
276
|
-
|
277
|
+
rearrangeDragItem,
|
278
|
+
|
277
279
|
EMAIL_REGEX,
|
278
280
|
URL_REGEX,
|
279
281
|
PHONE_REGEX,
|
@@ -1,37 +1,67 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
//
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
//Encoding utility
|
2
|
+
const encode = (data: string): string => btoa(unescape(encodeURIComponent(data))); // Example: Base64 encoding
|
3
|
+
//Decoding utility
|
4
|
+
const decode = (data: string): string => decodeURIComponent(escape(atob(data)));
|
5
|
+
|
6
|
+
|
7
|
+
function openIndexedDB(): Promise<IDBDatabase> {
|
8
|
+
return new Promise((resolve, reject) => {
|
9
|
+
const request = indexedDB.open('myDatabase', 1);
|
10
|
+
|
11
|
+
request.onupgradeneeded = (event) => {
|
12
|
+
const db = (event.target as IDBOpenDBRequest).result;
|
13
|
+
|
14
|
+
// Create an object store if it doesn't already exist
|
15
|
+
if (!db.objectStoreNames.contains('keyValueStore')) {
|
16
|
+
db.createObjectStore('keyValueStore', { keyPath: 'key' });
|
17
|
+
}
|
18
|
+
};
|
19
|
+
|
20
|
+
request.onsuccess = (event) => {
|
21
|
+
const db = (event.target as IDBOpenDBRequest).result;
|
22
|
+
resolve(db);
|
23
|
+
};
|
24
|
+
|
25
|
+
request.onerror = (event) => {
|
26
|
+
reject(`Error opening IndexedDB: ${(event.target as IDBOpenDBRequest).error}`);
|
27
|
+
};
|
28
|
+
});
|
9
29
|
}
|
10
30
|
|
11
|
-
|
12
|
-
const
|
13
|
-
upgrade(db) {
|
14
|
-
if (!db.objectStoreNames.contains('items')) {
|
15
|
-
db.createObjectStore('items');
|
16
|
-
}
|
17
|
-
},
|
18
|
-
});
|
31
|
+
export async function saveToIndexedDB(key: string, value: string): Promise<void> {
|
32
|
+
const db = await openIndexedDB();
|
19
33
|
|
20
|
-
|
21
|
-
const
|
22
|
-
|
23
|
-
|
34
|
+
return new Promise((resolve, reject) => {
|
35
|
+
const transaction = db.transaction('keyValueStore', 'readwrite');
|
36
|
+
const store = transaction.objectStore('keyValueStore');
|
37
|
+
|
38
|
+
const encodedValue = encode(value); // Encode the data
|
39
|
+
const request = store.put({ key, value: encodedValue });
|
40
|
+
|
41
|
+
request.onsuccess = () => resolve();
|
42
|
+
request.onerror = () => reject('Failed to save data');
|
43
|
+
});
|
44
|
+
}
|
45
|
+
|
46
|
+
export async function getFromIndexedDB(key: string): Promise<string | null> {
|
47
|
+
const db = await openIndexedDB();
|
48
|
+
|
49
|
+
return new Promise((resolve, reject) => {
|
50
|
+
const transaction = db.transaction('keyValueStore', 'readonly');
|
51
|
+
const store = transaction.objectStore('keyValueStore');
|
52
|
+
|
53
|
+
const request = store.get(key);
|
54
|
+
|
55
|
+
request.onsuccess = (event) => {
|
56
|
+
const result = (event.target as IDBRequest).result;
|
57
|
+
if (result && result.value) {
|
58
|
+
resolve(decode(result.value)); // Decode the data
|
59
|
+
} else {
|
60
|
+
resolve(null);
|
61
|
+
}
|
62
|
+
};
|
63
|
+
|
64
|
+
request.onerror = () => reject('Failed to retrieve data');
|
65
|
+
});
|
66
|
+
}
|
24
67
|
|
25
|
-
// Save data to IndexedDB
|
26
|
-
export const saveToIndexedDB = async (key: string, value: string): Promise<void> => {
|
27
|
-
const db = await dbPromise;
|
28
|
-
const encodedValue = encode(value);
|
29
|
-
await db.put('items', encodedValue, key);
|
30
|
-
};
|
31
|
-
|
32
|
-
// Get data from IndexedDB
|
33
|
-
export const getFromIndexedDB = async (key: string): Promise<string | null> => {
|
34
|
-
const db = await dbPromise;
|
35
|
-
const encodedValue = await db.get('items', key);
|
36
|
-
return encodedValue ? decode(encodedValue) : null;
|
37
|
-
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export const rearrangeDragItem = (
|
2
|
+
initialArray: any[],
|
3
|
+
oldIndex: number,
|
4
|
+
newIndex: number
|
5
|
+
): any[] => {
|
6
|
+
const updatedData = [...initialArray];
|
7
|
+
const movedItem = updatedData[oldIndex];
|
8
|
+
updatedData.splice(oldIndex, 1);
|
9
|
+
updatedData.splice(newIndex, 0, movedItem);
|
10
|
+
return updatedData;
|
11
|
+
};
|