pixel-react-excel-sheet 1.0.20 → 1.0.22

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 (109) hide show
  1. package/lib/components/Chip/types.d.ts +1 -1
  2. package/lib/components/ConditionalDropdown/OptionsDropdown.d.ts +5 -0
  3. package/lib/components/ConditionalDropdown/types.d.ts +50 -4
  4. package/lib/components/LabelEditTextField/types.d.ts +1 -0
  5. package/lib/components/MachineInputField/types.d.ts +1 -0
  6. package/lib/components/MenuOption/MenuOption.d.ts +1 -1
  7. package/lib/components/MenuOption/types.d.ts +2 -1
  8. package/lib/components/MiniModal/types.d.ts +1 -0
  9. package/lib/components/NLPInput/NlpInput.d.ts +2 -2
  10. package/lib/components/NLPInput/components/NlpDropDown/NlpDropDownType.d.ts +6 -3
  11. package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.d.ts +1 -1
  12. package/lib/components/NLPInput/sampleData.d.ts +104 -0
  13. package/lib/components/NLPInput/types.d.ts +80 -0
  14. package/lib/components/ProgressBar/ProgressBar.d.ts +5 -0
  15. package/lib/components/ProgressBar/index.d.ts +1 -0
  16. package/lib/components/ProgressBar/types.d.ts +12 -0
  17. package/lib/components/SequentialConnectingBranch/components/Branches/Branches.d.ts +1 -1
  18. package/lib/components/SequentialConnectingBranch/components/Branches/types.d.ts +1 -0
  19. package/lib/components/SequentialConnectingBranch/components/ConnectingBranches/ConnectingBranches.d.ts +1 -1
  20. package/lib/components/SequentialConnectingBranch/components/ConnectingBranches/types.d.ts +1 -0
  21. package/lib/components/SequentialConnectingBranch/types.d.ts +1 -1
  22. package/lib/components/TableTree/types.d.ts +1 -1
  23. package/lib/hooks/useIntersectionObserver.d.ts +9 -0
  24. package/lib/index.d.ts +80 -28
  25. package/lib/index.esm.js +725 -408
  26. package/lib/index.esm.js.map +1 -1
  27. package/lib/index.js +725 -407
  28. package/lib/index.js.map +1 -1
  29. package/lib/tsconfig.tsbuildinfo +1 -1
  30. package/lib/utils/functionCheck/functionCheck.d.ts +2 -0
  31. package/package.json +1 -1
  32. package/src/StyleGuide/ColorPalette/colorPaletteList.ts +5 -0
  33. package/src/assets/Themes/BaseTheme.scss +18 -3
  34. package/src/assets/Themes/DarkTheme.scss +15 -2
  35. package/src/assets/icons/ai_search.svg +9 -0
  36. package/src/assets/icons/help_icon.svg +10 -0
  37. package/src/assets/icons/ios_icon.svg +11 -0
  38. package/src/assets/icons/plus_round_icon.svg +38 -0
  39. package/src/assets/icons/tick_icon.svg +2 -2
  40. package/src/assets/styles/_colors.scss +1 -1
  41. package/src/components/AttachmentButton/AttachmentButton.tsx +1 -1
  42. package/src/components/Checkbox/Checkbox.scss +3 -1
  43. package/src/components/Checkbox/Checkbox.stories.tsx +32 -77
  44. package/src/components/Checkbox/Checkbox.tsx +3 -4
  45. package/src/components/Chip/Chip.scss +15 -5
  46. package/src/components/Chip/Chip.stories.tsx +10 -1
  47. package/src/components/Chip/Chip.tsx +5 -1
  48. package/src/components/Chip/types.ts +1 -1
  49. package/src/components/ConditionalDropdown/ConditionalDropdown.scss +4 -0
  50. package/src/components/ConditionalDropdown/ConditionalDropdown.stories.tsx +67 -2
  51. package/src/components/ConditionalDropdown/ConditionalDropdown.tsx +58 -28
  52. package/src/components/ConditionalDropdown/OptionsDropdown.tsx +44 -0
  53. package/src/components/ConditionalDropdown/types.ts +61 -4
  54. package/src/components/EditTextField/EditTextField.scss +1 -1
  55. package/src/components/EditTextField/EditTextField.tsx +14 -20
  56. package/src/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.tsx +0 -3
  57. package/src/components/Excel/ExcelFile/ExcelFileComponents/HeaderRow.tsx +1 -1
  58. package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.scss +1 -0
  59. package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.tsx +30 -1
  60. package/src/components/Form/Forms.tsx +0 -2
  61. package/src/components/Icon/iconList.ts +9 -0
  62. package/src/components/LabelEditTextField/LabelEditTextField.scss +1 -1
  63. package/src/components/LabelEditTextField/LabelEditTextField.tsx +29 -36
  64. package/src/components/LabelEditTextField/types.ts +1 -0
  65. package/src/components/MachineInputField/MachineInputField.scss +1 -5
  66. package/src/components/MachineInputField/MachineInputField.stories.tsx +4 -4
  67. package/src/components/MachineInputField/MachineInputField.tsx +4 -1
  68. package/src/components/MachineInputField/types.ts +1 -0
  69. package/src/components/MenuOption/MenuOption.scss +7 -7
  70. package/src/components/MenuOption/MenuOption.stories.tsx +83 -28
  71. package/src/components/MenuOption/MenuOption.tsx +9 -13
  72. package/src/components/MenuOption/types.ts +3 -2
  73. package/src/components/MiniModal/MiniModal.scss +0 -1
  74. package/src/components/MiniModal/MiniModal.stories.tsx +6 -1
  75. package/src/components/MiniModal/MiniModal.tsx +3 -1
  76. package/src/components/MiniModal/types.ts +1 -0
  77. package/src/components/MultiSelect/Dropdown.scss +3 -4
  78. package/src/components/MultiSelect/Dropdown.tsx +4 -3
  79. package/src/components/MultiSelect/MultiSelect.scss +1 -0
  80. package/src/components/MultiSelect/MultiSelect.tsx +1 -0
  81. package/src/components/NLPInput/NLPInput.scss +77 -21
  82. package/src/components/NLPInput/NlpInput.stories.tsx +43 -109
  83. package/src/components/NLPInput/NlpInput.tsx +95 -59
  84. package/src/components/NLPInput/components/NlpDropDown/NlpDropDownType.ts +6 -4
  85. package/src/components/NLPInput/components/NlpDropDown/NlpDropdown.scss +86 -35
  86. package/src/components/NLPInput/components/NlpDropDown/NlpDropdown.tsx +220 -80
  87. package/src/components/NLPInput/sampleData.ts +162 -0
  88. package/src/components/NLPInput/{type.tsx → types.tsx} +23 -11
  89. package/src/components/ProgressBar/ProgressBar.scss +46 -0
  90. package/src/components/ProgressBar/ProgressBar.stories.tsx +22 -0
  91. package/src/components/ProgressBar/ProgressBar.tsx +61 -0
  92. package/src/components/ProgressBar/index.ts +1 -0
  93. package/src/components/ProgressBar/types.ts +12 -0
  94. package/src/components/Search/Search.tsx +9 -1
  95. package/src/components/SequentialConnectingBranch/SequentialConnectingBranch.tsx +2 -0
  96. package/src/components/SequentialConnectingBranch/components/Branches/Branches.tsx +8 -0
  97. package/src/components/SequentialConnectingBranch/components/Branches/types.ts +1 -0
  98. package/src/components/SequentialConnectingBranch/components/ConnectingBranches/ConnectingBranches.tsx +2 -0
  99. package/src/components/SequentialConnectingBranch/components/ConnectingBranches/types.ts +1 -0
  100. package/src/components/SequentialConnectingBranch/types.ts +1 -1
  101. package/src/components/Table/Table.scss +1 -0
  102. package/src/components/TableTree/Components/TableBody.tsx +3 -1
  103. package/src/components/TableTree/TableTree.stories.tsx +2 -2
  104. package/src/components/TableTree/TableTree.tsx +24 -14
  105. package/src/components/TableTree/data.ts +45 -0
  106. package/src/components/TableTree/types.ts +1 -1
  107. package/src/hooks/useIntersectionObserver.tsx +56 -0
  108. package/src/index.ts +2 -0
  109. package/src/utils/functionCheck/functionCheck.ts +8 -0
@@ -7,57 +7,51 @@
7
7
  bottom: $bottom;
8
8
  left: $left;
9
9
  }
10
-
10
+ .ff-nlp-option {
11
+ color: var(--nlp-option-color);
12
+ display: flex;
13
+ gap: 4px;
14
+ align-items: center;
15
+ }
11
16
  .ff-nlp-dropdown-wrapper {
12
17
  .ff-nlp-options-wrapper {
13
- max-height: 160px;
18
+ max-height: 256px;
14
19
  z-index: 100;
15
20
  position: absolute;
16
- min-width: 100px;
17
- border: 1px solid var(--ff-select-option-border-color);
21
+ border: 1px solid var(--nlp-border-color);
18
22
  box-sizing: border-box;
19
23
  margin-top: 4px;
20
24
  border-radius: 4px;
21
- background-color: var(--ff-select-background-color);
22
- box-shadow: 0px 1px 4px 0px var(--ff-select-option-wrapper-box-shadow);
25
+ background-color: var(--primary-icon-color);
23
26
  overflow: hidden auto;
24
27
  display: flex;
25
28
  justify-content: space-between;
29
+ overflow: hidden;
26
30
 
27
- .ff-nlp-options-wrapper1 {
28
- max-height: 160px;
31
+ .ff-nlp-options-primary-wrapper {
32
+ max-height: 240px;
29
33
  z-index: 100;
30
- min-width: auto;
34
+ min-width: 290px;
31
35
  box-sizing: border-box;
36
+ overflow: scroll;
37
+ scrollbar-width: none;
38
+ flex-grow: 1;
32
39
  }
33
- &::-webkit-scrollbar {
34
- width: 4px;
35
- height: 12px;
36
-
37
- &-thumb {
38
- background-color: var(--ff-select-scroll-thumb-color);
39
- border-radius: 4px;
40
- }
41
-
42
- &-track {
43
- background-color: transparent;
44
- border-radius: 4px;
45
- }
40
+ .ff-nlp-options-primary-wrapper::-webkit-scrollbar {
41
+ display: none;
46
42
  }
47
43
 
48
44
  .ff-nlp-option {
49
- width: calc(100% - 18px);
45
+ width: calc(100% - 10px);
50
46
  border: 1px solid transparent;
51
- border-radius: 4px;
52
- padding: 0px 8px;
47
+ padding: 0 4px;
53
48
  overflow: hidden;
54
49
  white-space: nowrap;
50
+ height: 32px;
55
51
  text-overflow: ellipsis;
56
52
  cursor: pointer;
57
-
58
53
  &:hover {
59
- border-color: var(--ff-select-background-color);
60
- background-color: var(--ff-select-option-hover-color);
54
+ background-color: var(--nlp-hover-color);
61
55
  }
62
56
  }
63
57
 
@@ -65,19 +59,76 @@
65
59
  width: calc(100% - 16px);
66
60
  margin: 0;
67
61
  overflow: hidden;
68
- padding: 0px 8px;
62
+ padding: 0 8px;
69
63
  white-space: nowrap;
70
64
  text-overflow: ellipsis;
71
65
  cursor: not-allowed;
72
66
  }
73
67
  }
74
- .ff-nlp-data {
75
- width: 200px;
76
- height: 134px;
77
-
68
+ .ff-nlp-data-show {
69
+ width: 380px;
70
+ height: 235px;
78
71
  border: 1px solid transparent;
79
- border-radius: 5px;
80
- box-shadow: 0px 1px 4px 0px var(--ff-select-option-wrapper-box-shadow);
81
72
  overflow: scroll;
73
+ scrollbar-width: none;
74
+ padding: 8px;
75
+ border: 1px solid var(--nlp-border-color);
76
+ position: relative;
77
+ border-radius: 4px;
78
+ }
79
+ .ff-nlp-data-hide {
80
+ display: none;
81
+ }
82
+ .nlp-categories {
83
+ padding: 0px 2px;
84
+ gap: 10px;
85
+ border-radius: 2px;
86
+ background: var(--nlp-background-color);
87
+ color: var(--nlp-color);
88
+ }
89
+
90
+ .ff-nlp-data-side-menu {
91
+ display: flex;
92
+ flex-direction: column;
93
+ row-gap: 8px;
94
+ color: var(--nlp-option-color);
95
+ }
96
+ .ff-nlp-data-show::-webkit-scrollbar {
97
+ display: none;
82
98
  }
99
+
100
+ .nlp-details-header {
101
+ color: var(--status-skipped-text-color);
102
+ display: flex;
103
+ flex-direction: column;
104
+ }
105
+ .nlp-details {
106
+ color: var(--status-skipped-text-color);
107
+ }
108
+ .ff-nlp-options-wrapper-main {
109
+ display: flex;
110
+ flex-direction: column;
111
+ width: 302px;
112
+ justify-content: space-between;
113
+ flex-grow: 1;
114
+ }
115
+ }
116
+ .ff-nlp {
117
+ color: var(--nlp-color);
118
+ }
119
+
120
+ .ff-sg {
121
+ color: var(--nlp-step-group-color);
122
+ background-color: var(--nlp-step-group-background);
123
+ }
124
+
125
+ .ff-pe {
126
+ color: var(--nlp-pe-color);
127
+ background-color: var(--nlp-pe-background);
128
+ }
129
+
130
+ .ff-nlp-web-service-div {
131
+ display: flex;
132
+ justify-content: center;
133
+ align-items: center;
83
134
  }
@@ -10,14 +10,18 @@ import Typography from '../../../Typography';
10
10
  import { ffid } from '../../../../utils/ffID/ffid';
11
11
  import { ThemeContext } from '../../../ThemeProvider/ThemeProvider';
12
12
  import classNames from 'classnames';
13
+ import Icon from '../../../Icon';
14
+ import IconButton from '../../../IconButton';
13
15
 
14
16
  type OptionType = {
15
- label: ReactNode;
16
- value: string;
17
+ label?: ReactNode;
18
+ value?: string;
17
19
  displayName?: string;
20
+ videoSrc?: string;
18
21
  description?: string;
19
22
  nlpType?: string;
20
23
  path?: string;
24
+ platform?: string;
21
25
  stepInputs?: { type?: string; name?: string }[];
22
26
  returnType?: string;
23
27
  };
@@ -29,9 +33,11 @@ const NlpDropdown = ({
29
33
  options = [],
30
34
  optionZIndex = 100,
31
35
  inputRef,
36
+ webServiceClick = () => {},
37
+ containerWidth,
32
38
  }: NlpDropDownListProps) => {
33
- // const [nlpData, setNlpData] = useState<OptionType | null>(null); need to add setNlpData
34
- const [nlpData] = useState<OptionType | null>(null);
39
+ const [nlpData, setNlpData] = useState<OptionType | null>(null);
40
+ const [showNlpDetails, setShowNlpDetails] = useState('');
35
41
  const themeContext = useContext(ThemeContext);
36
42
  const currentTheme = themeContext?.currentTheme;
37
43
  const optionsWrapperRef = useRef<HTMLDivElement>(null);
@@ -69,107 +75,241 @@ const NlpDropdown = ({
69
75
  };
70
76
  };
71
77
 
78
+ const getNLPType = (nlpType: string): JSX.Element => {
79
+ let label = '';
80
+ let className = '';
81
+
82
+ if (nlpType === 'NLP') {
83
+ label = 'NLP';
84
+ className = 'ff-nlp'; // red color
85
+ } else if (nlpType === 'STEP_GROUP') {
86
+ label = 'SG';
87
+ className = 'ff-sg'; // green color
88
+ } else if (nlpType === 'PROGRAM_ELEMENTS') {
89
+ label = 'PE';
90
+ className = 'ff-pe'; // yellow color
91
+ } else {
92
+ label = '--';
93
+ className = 'nlp-default'; // default black color
94
+ }
95
+
96
+ return <span className={className}>{label}</span>;
97
+ };
98
+
99
+ const getPlatformIcon = (platform: string): JSX.Element | string => {
100
+ if (platform === 'Web') {
101
+ return <Icon name="web_icon" height={8} width={8} />;
102
+ } else if (platform === 'android') {
103
+ return <Icon name="android_icon" height={8} width={8} />;
104
+ } else if (platform === 'ios') {
105
+ return (
106
+ <Icon
107
+ name="ios_icon"
108
+ height={8}
109
+ width={8}
110
+ color="var(--dotted-border-color)"
111
+ />
112
+ );
113
+ } else if (platform === 'Generic') {
114
+ return <b className="platform-ios">Generic</b>;
115
+ } else {
116
+ return '--';
117
+ }
118
+ };
119
+
72
120
  return (
73
121
  <div className="ff-nlp-dropdown-wrapper">
74
122
  <div
75
123
  ref={optionsWrapperRef}
76
- style={updateDropdownPosition()}
124
+ style={{ ...updateDropdownPosition(), width: containerWidth }}
77
125
  className={classNames('ff-nlp-options-wrapper', currentTheme)}
126
+ onMouseLeave={() => setShowNlpDetails('hide')}
78
127
  >
79
- <div className="ff-nlp-options-wrapper1">
80
- {!checkEmpty(options) ? (
81
- options.map((option) => (
82
- // <div key={ffid()} onMouseEnter={() => setNlpData(option)}> need to add onMouseEnter
83
- <div key={ffid()}>
84
- <Typography
85
- as="div"
86
- lineHeight="30px"
87
- className={classNames('ff-nlp-option', currentTheme)}
88
- color="var(--ff-nlp-text-color)"
89
- onClick={() => onSelectOptionSelector(option)}
128
+ <div className="ff-nlp-options-wrapper-main">
129
+ <div className="ff-nlp-options-primary-wrapper">
130
+ {!checkEmpty(options) ? (
131
+ options.map((option) => (
132
+ <div
133
+ key={ffid()}
134
+ onMouseEnter={() => {
135
+ setNlpData(option as OptionType);
136
+ setShowNlpDetails('show');
137
+ }}
90
138
  >
91
- <span className="mr-2 fontPoppinsRegularMd">
92
- {option?.nlpType === 'NLP' ? (
93
- <b className="nlp-type-NLP">NLP</b>
94
- ) : option?.nlpType === 'STEP_GROUP' ? (
95
- <b className="nlp-type-step-group">SG</b>
96
- ) : option?.nlpType === 'PROGRAM_ELEMENTS' ? (
97
- <b className="nlp-type-program-elements">PE</b>
98
- ) : (
99
- '--'
100
- )}
101
- </span>
102
- <span className="mr-2 fontPoppinsRegularMd">
103
- {option?.platform === 'web' ? (
104
- <b className="platform-web">Web</b>
105
- ) : option?.platform === 'android' ? (
106
- <b className="platform-android">Android</b>
107
- ) : option?.platform === 'ios' ? (
108
- <b className="platform-ios">iOS</b>
109
- ) : option?.platform === 'Generic' ? (
110
- <b className="platform-ios">Generic</b>
111
- ) : (
112
- '--'
113
- )}
114
- </span>
115
- {option?.displayName}
116
- </Typography>
117
- </div>
118
- ))
119
- ) : (
139
+ <Typography
140
+ as="div"
141
+ lineHeight="30px"
142
+ fontSize={12}
143
+ className={classNames('ff-nlp-option', currentTheme)}
144
+ onClick={() => onSelectOptionSelector(option)}
145
+ >
146
+ <span>
147
+ <Typography
148
+ className="nlp-categories"
149
+ fontWeight="regular"
150
+ fontSize={8}
151
+ >
152
+ {getNLPType(option.nlpType)}
153
+ </Typography>
154
+ </span>
155
+
156
+ <span>{getPlatformIcon(option.platform)}</span>
157
+ {option?.displayName}
158
+ </Typography>
159
+ </div>
160
+ ))
161
+ ) : (
162
+ <Typography
163
+ textAlign="center"
164
+ lineHeight="32px"
165
+ as="p"
166
+ color="var(--ff-nlp-text-color)"
167
+ className="ff-nlp-no-option"
168
+ >
169
+ No Results Found
170
+ </Typography>
171
+ )}
172
+ </div>
173
+ <div>
174
+ <div className="ff-nlp-web-service-div ">
175
+ <IconButton
176
+ iconName="plus_user_icon"
177
+ label="Web Service"
178
+ onClick={webServiceClick}
179
+ />
180
+ </div>
181
+ </div>
182
+ </div>
183
+ <div
184
+ className={
185
+ showNlpDetails === 'show' ? 'ff-nlp-data-show' : 'ff-nlp-data-hide'
186
+ }
187
+ >
188
+ <div className="ff-nlp-data-side-menu">
189
+ {nlpData?.videoSrc && (
190
+ <Typography
191
+ className="nlp-details-header"
192
+ fontWeight="semi-bold"
193
+ fontSize={10}
194
+ >
195
+ Video
196
+ <div className="nlp-details ">
197
+ <video
198
+ src={nlpData.videoSrc}
199
+ controls
200
+ className="nlp-video-player"
201
+ width="100%"
202
+ >
203
+ Your browser does not support the video tag.
204
+ </video>
205
+ </div>
206
+ </Typography>
207
+ )}
208
+
120
209
  <Typography
121
- textAlign="center"
122
- lineHeight="32px"
123
- as="p"
124
- color="var(--ff-nlp-text-color)"
125
- className="ff-nlp-no-option"
210
+ className="nlp-details-header"
211
+ fontWeight="semi-bold"
212
+ fontSize={10}
126
213
  >
127
- No Results Found
214
+ NLP Details
215
+ <Typography
216
+ className="nlp-details"
217
+ fontWeight="regular"
218
+ fontSize={10}
219
+ >
220
+ {nlpData?.displayName || '--'}
221
+ </Typography>
128
222
  </Typography>
129
- )}
130
- <button>+ Web Services</button>
131
- </div>
132
- <div className="ff-nlp-data">
133
- <div>
134
- <div className="nlp-details-header mt-4">Name:</div>
135
- <div className="nlp-details nlpdiv-check">
136
- {nlpData?.displayName || '--'}
137
- </div>
138
- <div className="nlp-details-header mt-4">Description:</div>
139
- <div className="nlp-details nlpdiv-check">
140
- {nlpData?.description || '--'}
141
- </div>
223
+
224
+ <Typography
225
+ className="nlp-details-header"
226
+ fontWeight="semi-bold"
227
+ fontSize={10}
228
+ >
229
+ Description
230
+ <Typography
231
+ className="nlp-details"
232
+ fontWeight="regular"
233
+ fontSize={10}
234
+ >
235
+ {nlpData?.description || '--'}
236
+ </Typography>
237
+ </Typography>
238
+
142
239
  {nlpData?.nlpType === 'STEP_GROUP' && (
143
240
  <>
144
- <div className="nlp-details-header mt-4">Path:</div>
145
- <div className="nlp-details nlpdiv-check">
146
- {nlpData?.path ? nlpData?.path.slice(6) : '--'}
147
- </div>
241
+ <Typography
242
+ className="nlp-details-header"
243
+ fontWeight="semi-bold"
244
+ fontSize={10}
245
+ >
246
+ Path
247
+ <Typography
248
+ className="nlp-details"
249
+ fontWeight="regular"
250
+ fontSize={10}
251
+ >
252
+ {nlpData?.path ? nlpData?.path.slice(6) : '--'}
253
+ </Typography>
254
+ </Typography>
148
255
  </>
149
256
  )}
150
- <div className="nlp-details-header mt-4">Inputs:</div>
257
+ <Typography
258
+ className="nlp-details-header"
259
+ fontWeight="semi-bold"
260
+ fontSize={10}
261
+ >
262
+ Inputs
263
+ </Typography>
151
264
  {nlpData?.stepInputs?.length ? (
152
265
  nlpData.stepInputs.map((stepInput, index) => {
153
266
  const stepInputType = stepInput.type
154
- ? stepInput.type.split('.').pop()
267
+ ? stepInput?.type?.split('.')?.pop()
155
268
  : '--';
156
269
  return (
157
270
  <div key={index}>
158
- <div className="nlp-details-header">Input{index + 1}:</div>
159
- <div className="nlp-details">type: {stepInputType}</div>
160
- <div className="nlp-details mb-4">
161
- name: {stepInput.name || '--'}
162
- </div>
271
+ <Typography
272
+ className="nlp-details-header"
273
+ fontWeight="semi-bold"
274
+ fontSize={10}
275
+ >
276
+ Input{index + 1}
277
+ <Typography
278
+ className="nlp-details"
279
+ fontWeight="regular"
280
+ fontSize={10}
281
+ >
282
+ type: {stepInputType}
283
+ </Typography>
284
+ <Typography
285
+ className="nlp-details"
286
+ fontWeight="regular"
287
+ fontSize={10}
288
+ >
289
+ name: {stepInput.name || '--'}
290
+ </Typography>
291
+ </Typography>
163
292
  </div>
164
293
  );
165
294
  })
166
295
  ) : (
167
- <div className="nlp-details mb-4">--</div>
296
+ <div className="nlp-details">--</div>
168
297
  )}
169
- <div className="nlp-details-header">Output:</div>
170
- <div className="nlp-details mb-4">
171
- {nlpData?.returnType || '--'}
172
- </div>
298
+
299
+ <Typography
300
+ className="nlp-details-header"
301
+ fontWeight="semi-bold"
302
+ fontSize={10}
303
+ >
304
+ Output
305
+ <Typography
306
+ className="nlp-details "
307
+ fontWeight="regular"
308
+ fontSize={10}
309
+ >
310
+ {nlpData?.returnType || '--'}
311
+ </Typography>
312
+ </Typography>
173
313
  </div>
174
314
  </div>
175
315
  </div>
@@ -0,0 +1,162 @@
1
+ export const nlpList=
2
+ [
3
+ {
4
+ desc: 'randomNumber',
5
+ displayName:
6
+ 'PostgreSQL : Update value *setValues* into *tableName* table',
7
+ failMessage: 'randomNumber has failed',
8
+ isNonPE: false,
9
+ platform: 'Web',
10
+ name: 'randomNumber',
11
+ nlpName: 'randomNumber',
12
+ videoSrc: '',
13
+ nlpType: 'NLP',
14
+ packageName: 'com.tyss.optimize.programelement.LIC3813PJT1001.Logics',
15
+ parentId: 'PKJ1017',
16
+ passMessage: 'randomNumber has passed',
17
+ programElementId: 'PRG_ELE1001',
18
+ projectId: 'PJT1001',
19
+ returnType: 'java.lang.Integer',
20
+ searchName: 'randomNumber',
21
+ stepInputs: [{}],
22
+ toolTip: 'Logics : randomNumber',
23
+ _class: 'com.tyss.optimize.data.models.db.model.ProgramElementNlp',
24
+ _id: 'PE_NLPdbed27d0-b05a-4354-b9d3-c2f85307b4f2',
25
+ },
26
+ {
27
+ desc: 'randomNumber',
28
+ displayName: 'Wait for *element* until text contains *text*',
29
+ platform: 'android',
30
+
31
+ failMessage: 'randomNumber has failed',
32
+ isNonPE: false,
33
+ name: 'randomNumber',
34
+ nlpName: 'randomNumber',
35
+ nlpType: 'PROGRAM_ELEMENTS',
36
+ packageName: 'com.tyss.optimize.programelement.LIC3813PJT1001.Logics',
37
+ parentId: 'PKJ1017',
38
+ passMessage: 'randomNumber has passed',
39
+ programElementId: 'PRG_ELE1001',
40
+ projectId: 'PJT1001',
41
+ returnType: 'java.lang.Integer',
42
+ searchName: 'randomNumber',
43
+ stepInputs: [{}],
44
+ toolTip: 'Logics : randomNumber',
45
+ _class: 'com.tyss.optimize.data.models.db.model.ProgramElementNlp',
46
+ _id: 'PE_NLPdbed27d0-b05a-4354-b9d3-c2f85307b4f2',
47
+ },
48
+ {
49
+ desc: 'randomNumber',
50
+ platform: 'ios',
51
+
52
+ displayName:
53
+ 'String : Verify if string *string1* is equal to string *string2*',
54
+ failMessage: 'randomNumber has failed',
55
+ isNonPE: false,
56
+ name: 'randomNumber',
57
+ nlpName: 'randomNumber',
58
+ nlpType: 'STEP_GROUP',
59
+ packageName: 'com.tyss.optimize.programelement.LIC3813PJT1001.Logics',
60
+ parentId: 'PKJ1017',
61
+ passMessage: 'randomNumber has passed',
62
+ programElementId: 'PRG_ELE1001',
63
+ projectId: 'PJT1001',
64
+ returnType: 'java.lang.Integer',
65
+ searchName: 'randomNumber',
66
+ stepInputs: [{}],
67
+ toolTip: 'Logics : randomNumber',
68
+ _class: 'com.tyss.optimize.data.models.db.model.ProgramElementNlp',
69
+ _id: 'PE_NLPdbed27d0-b05a-4354-b9d3-c2f85307b4f2',
70
+ },
71
+ {
72
+ desc: 'randomNumber',
73
+ displayName:
74
+ 'Wait for page to load for maximum time limit of *time* second',
75
+ failMessage: 'randomNumber has failed',
76
+ isNonPE: false,
77
+ platform: 'android',
78
+
79
+ name: 'randomNumber',
80
+ nlpName: 'randomNumber',
81
+ nlpType: 'PROGRAM_ELEMENTS',
82
+ packageName: 'com.tyss.optimize.programelement.LIC3813PJT1001.Logics',
83
+ parentId: 'PKJ1017',
84
+ passMessage: 'randomNumber has passed',
85
+ programElementId: 'PRG_ELE1001',
86
+ projectId: 'PJT1001',
87
+ returnType: 'java.lang.Integer',
88
+ searchName: 'randomNumber',
89
+ stepInputs: [
90
+ { name: 'Range Of The Number', type: 'java.lang.Integer' },
91
+ ],
92
+ toolTip: 'Logics : randomNumber',
93
+ _class: 'com.tyss.optimize.data.models.db.model.ProgramElementNlp',
94
+ _id: 'PE_NLPdbed27d0-b05a-4354-b9d3-c2f85307b4f2',
95
+ },
96
+ {
97
+ description: '',
98
+ displayName:
99
+ 'Excel : Get string cell data for given *uniqueData* and *header* for single row table',
100
+ failMessage: 'Open Browser is failed',
101
+ imported: false,
102
+ libraryId: 'LIB1002',
103
+ name: 'Open Browser',
104
+ nlpName: 'Open Browser',
105
+ nlpType: 'STEP_GROUP',
106
+ parentId: 'STP_GRP1001',
107
+ passMessage: 'Open Browser is passed',
108
+ path: '/Root/Open and Close Browser/Open Browser',
109
+ platform: 'Web',
110
+ projectId: 'PJT1001',
111
+ returnType: 'void',
112
+ searchName: 'Open Browser',
113
+ stepInputs: [],
114
+ toolTip: 'Open and Close Browser : Open Browser : Web',
115
+ _class: 'com.tyss.optimize.data.models.db.model.StepGroupNlp',
116
+ _id: 'SG_NLP1001',
117
+ },
118
+ {
119
+ desc: 'randomNumber',
120
+ displayName:
121
+ 'PostgreSQL : Update value *setValues* into *tableName* table',
122
+ failMessage: 'randomNumber has failed',
123
+ isNonPE: false,
124
+ platform: 'Web',
125
+
126
+ name: 'randomNumber',
127
+ nlpName: 'randomNumber',
128
+ nlpType: 'PROGRAM_ELEMENTS',
129
+ packageName: 'com.tyss.optimize.programelement.LIC3813PJT1001.Logics',
130
+ parentId: 'PKJ1017',
131
+ passMessage: 'randomNumber has passed',
132
+ programElementId: 'PRG_ELE1001',
133
+ projectId: 'PJT1001',
134
+ returnType: 'java.lang.Integer',
135
+ searchName: 'randomNumber',
136
+ stepInputs: [{}],
137
+ toolTip: 'Logics : randomNumber',
138
+ _class: 'com.tyss.optimize.data.models.db.model.ProgramElementNlp',
139
+ _id: 'PE_NLPdbed27d0-b05a-4354-b9d3-c2f85307b4f2',
140
+ },
141
+ {
142
+ desc: 'randomNumber',
143
+ displayName: 'randomNumber',
144
+ failMessage: 'randomNumber has failed',
145
+ isNonPE: false,
146
+ name: 'randomNumber',
147
+ platform: 'Web',
148
+ nlpName: 'randomNumber',
149
+ nlpType: 'PROGRAM_ELEMENTS',
150
+ packageName: 'com.tyss.optimize.programelement.LIC3813PJT1001.Logics',
151
+ parentId: 'PKJ1017',
152
+ passMessage: 'randomNumber has passed',
153
+ programElementId: 'PRG_ELE1001',
154
+ projectId: 'PJT1001',
155
+ returnType: 'java.lang.Integer',
156
+ searchName: 'randomNumber',
157
+ stepInputs: [{}],
158
+ toolTip: 'Logics : randomNumber',
159
+ _class: 'com.tyss.optimize.data.models.db.model.ProgramElementNlp',
160
+ _id: 'PE_NLPdbed27d0-b05a-4354-b9d3-c2f85307b4f2',
161
+ }
162
+ ]