@omniumretail/component-library 1.2.71 → 1.2.73

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 (191) hide show
  1. package/package.json +6 -3
  2. package/NPMPUBLISH.md +0 -29
  3. package/bitbucket-pipelines.yml +0 -95
  4. package/dist/components/AnalyticsBar/AnalyticsBar.stories.d.ts +0 -5
  5. package/dist/components/BellNotifications/BellNotifications.stories.d.ts +0 -5
  6. package/dist/components/Button/Button.stories.d.ts +0 -6
  7. package/dist/components/Category/Category.stories.d.ts +0 -3
  8. package/dist/components/CategoryReadOnly/CategoryReadOnly.stories.d.ts +0 -3
  9. package/dist/components/CategoryResponse/CategoryResponse.stories.d.ts +0 -3
  10. package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -5
  11. package/dist/components/DatePickerTag/DatePickerTag.stories.d.ts +0 -5
  12. package/dist/components/DropdownButton/DropdownButton.stories.d.ts +0 -5
  13. package/dist/components/ExportTableData/ExportTableData.stories.d.ts +0 -3
  14. package/dist/components/Footer/Footer.stories.d.ts +0 -5
  15. package/dist/components/Footer2/Footer.stories.d.ts +0 -6
  16. package/dist/components/Header/Header.stories.d.ts +0 -5
  17. package/dist/components/Input/Input.stories.d.ts +0 -5
  18. package/dist/components/InputCountryCode/inputCountryCode.stories.d.ts +0 -5
  19. package/dist/components/Label/Label.stories.d.ts +0 -6
  20. package/dist/components/Link/Link.stories.d.ts +0 -7
  21. package/dist/components/Menu/Menu.stories.d.ts +0 -5
  22. package/dist/components/MobileTable/MobileTable.stories.d.ts +0 -5
  23. package/dist/components/ModalConfirmation/ModalConfirmation.stories.d.ts +0 -5
  24. package/dist/components/ModalWithTable/ModalWithTable.stories.d.ts +0 -5
  25. package/dist/components/Navigation/Navigation.stories.d.ts +0 -5
  26. package/dist/components/Notification/Notification.stories.d.ts +0 -5
  27. package/dist/components/Questions/Questions.stories.d.ts +0 -3
  28. package/dist/components/Radio/Radio.stories.d.ts +0 -5
  29. package/dist/components/ResponseType/ResponseType.stories.d.ts +0 -3
  30. package/dist/components/ResponsiveTable/ResponsiveTable.stories.d.ts +0 -9
  31. package/dist/components/Select/Select.stories.d.ts +0 -6
  32. package/dist/components/Separator/Separator.stories.d.ts +0 -6
  33. package/dist/components/Sidebar/Sidebar.stories.d.ts +0 -6
  34. package/dist/components/Switch/Switch.stories.d.ts +0 -5
  35. package/dist/components/Table/Table.stories.d.ts +0 -9
  36. package/dist/components/Tag/Tag.stories.d.ts +0 -5
  37. package/dist/components/Upload/Upload.stories.d.ts +0 -3
  38. package/dist/components/UserInfo/UserInfo.stories.d.ts +0 -3
  39. package/dist/components/WebCam/WebCam.stories.d.ts +0 -3
  40. package/dist/types/index.d.ts +0 -2
  41. package/public/index.ts +0 -0
  42. package/src/assets/code-brackets.svg +0 -1
  43. package/src/assets/colors.svg +0 -1
  44. package/src/assets/comments.svg +0 -1
  45. package/src/assets/direction.svg +0 -1
  46. package/src/assets/flow.svg +0 -1
  47. package/src/assets/fonts/Silka-Bold.woff2 +0 -0
  48. package/src/assets/fonts/Silka-Regular.woff2 +0 -0
  49. package/src/assets/images/A2AI-logo.png +0 -0
  50. package/src/assets/images/omnium-retail-logo-white.png +0 -0
  51. package/src/assets/images/omnium-retail-logo.png +0 -0
  52. package/src/assets/images/omnium-retail_icon.png +0 -0
  53. package/src/assets/plugin.svg +0 -1
  54. package/src/assets/repo.svg +0 -1
  55. package/src/assets/scss/_combinations.scss +0 -0
  56. package/src/assets/scss/_global.scss +0 -89
  57. package/src/assets/scss/index.scss +0 -2
  58. package/src/assets/stackalt.svg +0 -1
  59. package/src/components/AnalyticsBar/AnalyticsBar.stories.tsx +0 -236
  60. package/src/components/AnalyticsBar/helpers/codeMutation.tsx +0 -19
  61. package/src/components/AnalyticsBar/index.tsx +0 -76
  62. package/src/components/AnalyticsBar/interfaces/analyticsBar.tsx +0 -13
  63. package/src/components/AnalyticsBar/styles.module.scss +0 -137
  64. package/src/components/BellNotifications/BellNotifications.stories.tsx +0 -200
  65. package/src/components/BellNotifications/index.tsx +0 -154
  66. package/src/components/BellNotifications/styles.module.scss +0 -239
  67. package/src/components/Button/Button.stories.tsx +0 -26
  68. package/src/components/Button/index.tsx +0 -24
  69. package/src/components/Button/styles.module.scss +0 -70
  70. package/src/components/Category/Category.stories.tsx +0 -371
  71. package/src/components/Category/CategoryContent/index.tsx +0 -255
  72. package/src/components/Category/CategoryContent/styles.module.scss +0 -69
  73. package/src/components/Category/CategorySidebar/index.tsx +0 -344
  74. package/src/components/Category/CategorySidebar/styles.module.scss +0 -28
  75. package/src/components/Category/index.tsx +0 -58
  76. package/src/components/Category/styles.module.scss +0 -13
  77. package/src/components/CategoryReadOnly/CategoryReadOnly.stories.tsx +0 -274
  78. package/src/components/CategoryReadOnly/evaluationOptions.tsx +0 -81
  79. package/src/components/CategoryReadOnly/index.tsx +0 -328
  80. package/src/components/CategoryReadOnly/styles.module.scss +0 -214
  81. package/src/components/CategoryResponse/CategoryResponse.stories.tsx +0 -311
  82. package/src/components/CategoryResponse/evaluationOptions.tsx +0 -81
  83. package/src/components/CategoryResponse/index.tsx +0 -502
  84. package/src/components/CategoryResponse/styles.module.scss +0 -365
  85. package/src/components/DatePicker/DatePicker.stories.tsx +0 -16
  86. package/src/components/DatePicker/index.tsx +0 -38
  87. package/src/components/DatePicker/styles.module.scss +0 -3
  88. package/src/components/DatePickerTag/DatePickerTag.stories.tsx +0 -19
  89. package/src/components/DatePickerTag/index.tsx +0 -91
  90. package/src/components/DatePickerTag/styles.module.scss +0 -32
  91. package/src/components/DropdownButton/DropdownButton.stories.tsx +0 -24
  92. package/src/components/DropdownButton/index.tsx +0 -36
  93. package/src/components/DropdownButton/styles.module.scss +0 -9
  94. package/src/components/ExportTableData/ExportTableData.stories.tsx +0 -43
  95. package/src/components/ExportTableData/index.tsx +0 -37
  96. package/src/components/ExportTableData/styles.module.scss +0 -4
  97. package/src/components/Footer/Footer.stories.tsx +0 -15
  98. package/src/components/Footer/index.tsx +0 -45
  99. package/src/components/Footer/styles.module.scss +0 -38
  100. package/src/components/Footer2/Footer.stories.tsx +0 -184
  101. package/src/components/Footer2/index.tsx +0 -322
  102. package/src/components/Footer2/styles.module.scss +0 -292
  103. package/src/components/Header/Header.data.ts +0 -26
  104. package/src/components/Header/Header.stories.tsx +0 -236
  105. package/src/components/Header/Header.types.ts +0 -32
  106. package/src/components/Header/README.md +0 -38
  107. package/src/components/Header/index.tsx +0 -200
  108. package/src/components/Header/styles.module.scss +0 -216
  109. package/src/components/Input/Input.stories.tsx +0 -13
  110. package/src/components/Input/index.tsx +0 -31
  111. package/src/components/Input/styles.module.scss +0 -8
  112. package/src/components/InputCountryCode/index.tsx +0 -79
  113. package/src/components/InputCountryCode/inputCountryCode.stories.tsx +0 -55
  114. package/src/components/InputCountryCode/styles.module.scss +0 -3
  115. package/src/components/Label/Label.stories.tsx +0 -21
  116. package/src/components/Label/index.tsx +0 -19
  117. package/src/components/Label/styles.module.scss +0 -17
  118. package/src/components/Link/Link.stories.tsx +0 -30
  119. package/src/components/Link/index.tsx +0 -21
  120. package/src/components/Link/styles.module.scss +0 -24
  121. package/src/components/Menu/Menu.stories.tsx +0 -178
  122. package/src/components/Menu/helpers/codeMutation.tsx +0 -19
  123. package/src/components/Menu/index.tsx +0 -24
  124. package/src/components/Menu/styles.module.scss +0 -0
  125. package/src/components/MobileTable/MobileTable.stories.tsx +0 -27
  126. package/src/components/MobileTable/index.tsx +0 -102
  127. package/src/components/MobileTable/styles.module.scss +0 -75
  128. package/src/components/ModalConfirmation/ModalConfirmation.stories.tsx +0 -40
  129. package/src/components/ModalConfirmation/ModalStatusList.tsx +0 -5
  130. package/src/components/ModalConfirmation/index.tsx +0 -71
  131. package/src/components/ModalConfirmation/styles.module.scss +0 -62
  132. package/src/components/ModalWithTable/ModalWithTable.stories.tsx +0 -99
  133. package/src/components/ModalWithTable/index.tsx +0 -238
  134. package/src/components/ModalWithTable/styles.module.scss +0 -77
  135. package/src/components/Navigation/Navigation.stories.tsx +0 -21
  136. package/src/components/Navigation/index.tsx +0 -91
  137. package/src/components/Navigation/styles.module.scss +0 -91
  138. package/src/components/Notification/Notification.stories.tsx +0 -32
  139. package/src/components/Notification/index.tsx +0 -28
  140. package/src/components/Questions/Questions.stories.tsx +0 -37
  141. package/src/components/Questions/SingleQuestion/index.tsx +0 -337
  142. package/src/components/Questions/SingleQuestion/styles.module.scss +0 -142
  143. package/src/components/Questions/index.tsx +0 -124
  144. package/src/components/Questions/styles.modules.scss +0 -0
  145. package/src/components/Radio/Radio.stories.tsx +0 -43
  146. package/src/components/Radio/index.tsx +0 -26
  147. package/src/components/Radio/styles.module.scss +0 -24
  148. package/src/components/ResponseType/ResponseType.stories.tsx +0 -393
  149. package/src/components/ResponseType/index.tsx +0 -100
  150. package/src/components/ResponseType/styles.module.scss +0 -31
  151. package/src/components/ResponsiveTable/ResponsiveTable.stories.tsx +0 -386
  152. package/src/components/ResponsiveTable/index.tsx +0 -389
  153. package/src/components/ResponsiveTable/styles.module.scss +0 -153
  154. package/src/components/Select/Select.stories.tsx +0 -39
  155. package/src/components/Select/index.tsx +0 -27
  156. package/src/components/Select/styles.module.scss +0 -19
  157. package/src/components/Separator/Separator.stories.tsx +0 -22
  158. package/src/components/Separator/index.tsx +0 -27
  159. package/src/components/Separator/styles.module.scss +0 -25
  160. package/src/components/Sidebar/Sidebar.stories.tsx +0 -85
  161. package/src/components/Sidebar/index.tsx +0 -127
  162. package/src/components/Sidebar/styles.module.scss +0 -141
  163. package/src/components/Switch/Switch.stories.tsx +0 -14
  164. package/src/components/Switch/index.tsx +0 -18
  165. package/src/components/Switch/styles.module.scss +0 -7
  166. package/src/components/Table/Table.stories.tsx +0 -337
  167. package/src/components/Table/index.tsx +0 -313
  168. package/src/components/Table/styles.module.scss +0 -97
  169. package/src/components/Tag/Tag.stories.tsx +0 -32
  170. package/src/components/Tag/index.tsx +0 -295
  171. package/src/components/Tag/styles.module.scss +0 -104
  172. package/src/components/Upload/Upload.stories.tsx +0 -45
  173. package/src/components/Upload/index.tsx +0 -112
  174. package/src/components/Upload/styles.module.scss +0 -29
  175. package/src/components/UserInfo/UserInfo.stories.tsx +0 -38
  176. package/src/components/UserInfo/index.tsx +0 -77
  177. package/src/components/UserInfo/styles.module.scss +0 -35
  178. package/src/components/WebCam/WebCam.stories.tsx +0 -24
  179. package/src/components/WebCam/index.tsx +0 -73
  180. package/src/components/WebCam/styles.module.scss +0 -37
  181. package/src/components/index.tsx +0 -34
  182. package/src/constants/i18n.ts +0 -25
  183. package/src/constants/logoCompanyHelper.ts +0 -52
  184. package/src/constants/translationHelper.ts +0 -7
  185. package/src/index.ts +0 -3
  186. package/src/locales/en.json +0 -142
  187. package/src/locales/es.json +0 -142
  188. package/src/locales/pt.json +0 -142
  189. package/src/types/Global.d.ts +0 -4
  190. package/tsconfig.json +0 -24
  191. package/vite.config.js +0 -51
@@ -1,214 +0,0 @@
1
- .categoryResponse {
2
- display: grid;
3
- grid-template-columns: 300px auto;
4
- gap: 16px;
5
- height: 100%;
6
- }
7
-
8
- .sidebarWrapper {
9
- overflow: auto;
10
- background: #EBECED;
11
- }
12
-
13
- .contentWrapper {
14
- overflow: auto;
15
- background: var(--color-white);
16
- }
17
-
18
- .sidebarWrapper,
19
- .contentWrapper {
20
- padding: 20px;
21
- }
22
-
23
- .title {
24
- font-size: var(--font-size-body-4);
25
- color: var(--color-blue);
26
- margin-bottom: 36px;
27
- font-weight: var(--font-weight-semibold);
28
- text-transform: uppercase;
29
-
30
- }
31
-
32
- .label {
33
- padding-bottom: 15px;
34
- font-weight: var(--font-weight-bold);
35
- font-size: var(--font-size-body-4);
36
-
37
- @media(max-width: 767px) {
38
- font-size: var(--font-size-body-3);
39
- }
40
- }
41
-
42
- .cursorPointer {
43
- cursor: pointer;
44
- }
45
-
46
- .subCategory {
47
- padding-left: 16px;
48
-
49
- .label {
50
- font-weight: var(--font-weight-semibold);
51
- }
52
-
53
- .labelWrapper {
54
- .subCategory {
55
- .label {
56
- font-weight: var(--font-weight-light);
57
- }
58
- }
59
- }
60
- }
61
-
62
- .labelWrapper {
63
- display: block;
64
- }
65
-
66
- .active {
67
- color: var(--color-orange);
68
- }
69
-
70
- .details {
71
- margin-bottom: 4px;
72
- display: flex;
73
- justify-content: flex-end;
74
- align-items: center;
75
-
76
- @media(max-width: 767px) {
77
- margin-bottom: 20px;
78
- }
79
- }
80
-
81
- .categoryName {
82
- font-size: var(--font-size-body-4);
83
- color: var(--color-blue);
84
- font-weight: var(--font-weight-semibold);
85
- margin-bottom: 8px;
86
- }
87
-
88
- .categoryDescription {
89
- font-size: var(--font-size-body-3);
90
- font-weight: var(--font-weight-light);
91
- color: var(--color-black);
92
- }
93
-
94
- // Questions
95
- .questionWrapper {
96
- display: flex;
97
- flex-direction: row;
98
- gap: 36px;
99
- margin-bottom: 36px;
100
- border-bottom: 1px solid rgba(var(--color-blue-rgb), .2);
101
- padding-bottom: 4px;
102
- }
103
-
104
- .questionWrapperOpenAnswer {
105
- flex-direction: column;
106
- border-bottom: 1px solid rgba(var(--color-blue-rgb), .2);
107
- margin-bottom: 24px;
108
-
109
- .question {
110
- width: 100%;
111
- border-bottom: none;
112
- }
113
-
114
- .answer {
115
- width: 100%;
116
- height: auto;
117
-
118
- :global {
119
- .ant-input {
120
- min-height: 140px;
121
- }
122
-
123
- .ant-form-item {
124
- margin-bottom: 16px;
125
- }
126
- }
127
- }
128
- }
129
-
130
- .question {
131
- width: calc(100% - 149px);
132
- display: flex;
133
- align-items: center;
134
- }
135
-
136
- .answer {
137
- width: 130px;
138
- min-width: 130px;
139
- align-self: flex-end;
140
- display: flex;
141
- justify-content: space-between;
142
- padding-right: 15px;
143
- }
144
-
145
- .answerOpenAnswer {
146
- display: none;
147
- }
148
-
149
- .categoryGrades {
150
- min-width: 130px;
151
- align-self: flex-end;
152
- display: flex;
153
- justify-content: space-between;
154
- gap: 34px;
155
- }
156
-
157
- .subject {
158
- font-size: var(--font-size-body-4);
159
- font-weight: var(--font-weight-medium);
160
-
161
- @media(max-width: 767px) {
162
- font-size: var(--font-size-body-3);
163
- }
164
- }
165
-
166
- .description {
167
- font-weight: var(--font-weight-light);
168
- font-size: var(--font-size-body-3);
169
- margin-bottom: 4px;
170
-
171
- @media(max-width: 767px) {
172
- font-size: var(--font-size-body-2);
173
- }
174
- }
175
-
176
- .gradeBox {
177
- padding: 6px;
178
- font-size: var(--font-size-body-4);
179
- font-weight: var(--font-weight-medium);
180
- color: var(--color-white);
181
- border-radius: 5px;
182
- display: inline-flex;
183
- letter-spacing: 3px;
184
- }
185
-
186
- .categoryGradesWrapper {
187
- background-color: rgba(217, 217, 217, 0.5);
188
- border-radius: 5px;
189
- padding: 8px 15px;
190
- display: flex;
191
- flex-direction: row;
192
- gap: 50px;
193
- align-items: center;
194
-
195
- @media(max-width: 767px) {
196
- gap: 12px;
197
- padding: 4px 8px;
198
- }
199
- }
200
-
201
- .categoryGradesTitle {
202
- font-size: var(--font-size-body-3);
203
- font-weight: var(--font-weight-medium);
204
- color: var(--color-black);
205
- }
206
-
207
- .openAnswerContainer {
208
- display: flex;
209
- justify-content: space-between;
210
- margin-bottom: 12px;
211
- margin-left: 16px;
212
- gap: 40px;
213
- width: 100%;
214
- }
@@ -1,311 +0,0 @@
1
- import { Meta, StoryFn } from "@storybook/react-vite";
2
- import { Button } from "../Button";
3
- import { useEffect, useRef, useState } from "react";
4
- import { CategoryResponse } from '.';
5
- import { UploadFile } from "antd";
6
-
7
- export default {
8
- title: 'CategoryResponse',
9
- component: CategoryResponse,
10
- } as Meta;
11
-
12
- const Template: StoryFn<any> = (args: any) => {
13
- const [serverData, setServerData] = useState<any>();
14
- const categoryResponseRef = useRef(null);
15
- const [hasNext, setHasNext] = useState(true);
16
- const [hasPrevious, setHasPrevious] = useState(false);
17
- const [fileLists, setFileLists] = useState<Record<string, UploadFile[]>>({
18
- "CATEGORYID1_65562A64-A24B-425A-A345-560238CA2468": [
19
- {
20
- "uid": "iv919l10io",
21
- "name": "https://omnium-user-images.s3.eu-west-1.amazonaws.com/omnium-retail_icosssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssn.png",
22
- "status": "done",
23
- "url": "https://omnium-user-images.s3.eu-west-1.amazonaws.com/omnium-retail_icon.png"
24
- }
25
- ]
26
- });
27
-
28
- const handleNextCategoryAvailabilityChange = (hasNext: boolean) => {
29
- setHasNext(hasNext);
30
- };
31
-
32
- const handlePreviousCategoryAvailabilityChange = (hasPrevious: boolean) => {
33
- setHasPrevious(hasPrevious);
34
- };
35
-
36
- const handleNextClickOutside = () => {
37
- (categoryResponseRef.current as any).handleNextClick();
38
- }
39
-
40
- const handlePreviousClickOutside = () => {
41
- (categoryResponseRef.current as any).handlePreviousClick();
42
- }
43
-
44
- const handleAddAction = (questionId: string) => {
45
- console.log(`Ação adicionada para a pergunta com ID: ${questionId}`);
46
- // Sua lógica para adicionar a ação, como uma chamada de API ou atualização de estado
47
- };
48
-
49
- const handleOpenAction = (questionId: string) => {
50
- console.log(`Ação adicionada para a pergunta com ID: ${questionId}`);
51
- };
52
-
53
- useEffect(() => {
54
- console.log(serverData);
55
- }, [serverData])
56
-
57
- return (
58
- <div style={{ height: '600px' }}>
59
- <div>
60
- <CategoryResponse
61
- {...args}
62
- serverReadyData={setServerData}
63
- ref={categoryResponseRef}
64
- onNextCategoryAvailabilityChange={handleNextCategoryAvailabilityChange}
65
- onPreviousCategoryAvailabilityChange={handlePreviousCategoryAvailabilityChange}
66
- addButtons
67
- fileList={setFileLists}
68
- addAction={handleAddAction}
69
- openAction={handleOpenAction}
70
- initialFileList={fileLists}
71
- >
72
- </CategoryResponse>
73
- </div>
74
- <div>
75
-
76
- {hasPrevious && (
77
- <Button onClick={handlePreviousClickOutside}>Previous on Parent</Button>
78
- )}
79
-
80
- {hasNext && (
81
- <Button onClick={handleNextClickOutside}>Next on Parent</Button>
82
- )}
83
- </div>
84
- </div>
85
- )
86
- };
87
-
88
- export const Primary = Template.bind({});
89
- Primary.args = {
90
- data: {
91
- "Id": "E985B66B-5EA4-4A6F-81B9-0B12CAA99343",
92
- "EvaluationCycleId": "A3FE0C73-E771-40BB-B87D-1E40597841A6",
93
- "QuestionnaireId": "4C15A0A0-7DDF-4952-810C-B46105807CB7",
94
- "UserId": "A200F4C5-8E41-41D4-A90C-B15EEC448517",
95
- "TargetUserId": "A200F4C5-8E41-41D4-A90C-B15EEC448517",
96
- "StartDate": 1678707055,
97
- "EndDate": 1679707055,
98
- "Status": "A",
99
- "CategoryAnswers": [
100
- {
101
- "Title": "Competências",
102
- "Key": "0",
103
- "Data": {
104
- "Id": "57A06838-67F9-4726-BC36-719A0C797484",
105
- "CategoryId": "CATEGORYID1",
106
- "CategoryName": "Competências",
107
- "OpenAnswer": false,
108
- "GeneralEvaluationLevel": 2,
109
- "Grade": "0",
110
- "Description": "Inserir resposta numa escala numérica entre 1 e 5, sendo que 1 corresponde a “Mau” e 5 corresponde a “Excelente”",
111
- "Score": "0.000",
112
- "Key": "0",
113
- "Questions": [
114
- {
115
- "Id": "65562A64-A24B-425A-A345-560238CA2468",
116
- "QuestionId": "7D17A8A5-E299-47D3-AB49-684135DB23A3",
117
- "Subject": "Lorem ipsum dolor sit amet, consectetur adipiscing elit Lorem ipsum dolor sit amet, consectetur adipiscing elit",
118
- "Description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit Lorem ipsum dolor sit amet, consectetur adipiscing elit",
119
- "Grade": "0",
120
- "Note": "Lorem ipsum dolor sit amet, consectetur adipiscing elit Lorem ipsum dolor sit amet, consectetur adipiscing elit",
121
- "Answer": null,
122
- "ImagesList": [],
123
- "Actions": [
124
- {
125
- "Id": "05D49F7B-C293-48AD-980F-D6ED5B3C0DAB",
126
- "Name": "ettttt"
127
- },
128
- {
129
- "Id": "15D49F7B-C293-48AD-980F-D6ED5B3C0DAB",
130
- "Name": "uttttt"
131
- }
132
- ],
133
- "IsOpenAnswer": true,
134
- "IsNumerical": true,
135
- "IsMandatory": true
136
- },
137
- {
138
- "Id": "85562A64-A24B-425A-A345-560238CA2468",
139
- "QuestionId": "8D17A8A5-E299-47D3-AB49-684135DB23A3",
140
- "Subject": "Data",
141
- "Description": "This is a description ",
142
- "Grade": "0",
143
- "Note": "asasas",
144
- "Disabled": true,
145
- "Answer": [],
146
- "IsDate": true
147
- },
148
- {
149
- "Id": "85562A64-A24B-425A-A345-560238CA2468",
150
- "QuestionId": "8D17A8A5-E299-47D3-AB49-684135DB23A3",
151
- "Subject": "Data",
152
- "Description": "This is a description ",
153
- "Grade": "0",
154
- "Note": "asasas",
155
- "Disabled": false,
156
- "Answer": [],
157
- "IsNumerical": true
158
- }
159
- ]
160
- }
161
- },
162
- {
163
- "Title": "Category 2",
164
- "Key": "2",
165
- "Data": {
166
- "Id": "57A06838-67F9-4726-BC36-719A0C797484",
167
- "CategoryId": "CATEGORYID2",
168
- "CategoryName": "Category 2",
169
- "OpenAnswer": false,
170
- "GeneralEvaluationLevel": 0,
171
- "Grade": "100",
172
- "Description": "This is a description",
173
- "Score": "0.000",
174
- "Questions": []
175
- },
176
- "Children": [
177
- {
178
- "Title": "Category 2.1",
179
- "Key": "2.1",
180
- "Data": {
181
- "Id": "57A06838-67F9-4726-BC36-719A0C797484",
182
- "CategoryId": "1CDED10D-0984-46D4-A9B3-7EC518D74A63",
183
- "CategoryName": "Category 2.1",
184
- "OpenAnswer": false,
185
- "GeneralEvaluationLevel": 0,
186
- "Grade": "50",
187
- "Description": "This is a description",
188
- "Score": "0.000",
189
- "Questions": []
190
- },
191
- "Children": [
192
- {
193
- "Title": "Category 2.1.1",
194
- "Key": "2.1.1",
195
- "Data": {
196
- "Id": "37A06838-67F9-4726-BC36-719A0C797484",
197
- "CategoryId": "3CDED10D-0984-46D4-A9B3-7EC518D74A63",
198
- "CategoryName": "Category 2.1.1",
199
- "OpenAnswer": false,
200
- "GeneralEvaluationLevel": 0,
201
- "Grade": "50",
202
- "Description": "This is a description",
203
- "Score": "0.000",
204
- "Questions": [
205
- {
206
- "Id": "365562A64-A24B-425A-A345-560238CA2468",
207
- "QuestionId": "3D17A8A5-E299-47D3-AB49-684135DB23A3",
208
- "Subject": "This is a Subject",
209
- "Description": "This is a description",
210
- "Grade": "50",
211
- "Answer": []
212
- },
213
- {
214
- "Id": "35562A64-A24B-425A-A345-560238CA2468",
215
- "QuestionId": "1123D17A8A5-E299-47D3-AB49-684135DB23A3",
216
- "Subject": "This is a Subject",
217
- "Description": "This is a description",
218
- "Grade": "25",
219
- "Answer": ["1"],
220
- "IsMultipleChoise": false
221
- },
222
- {
223
- "Id": "35562A64-A24B-425A-A345-560238CA2468",
224
- "QuestionId": "3sssD17A8A5-E299-47D3-AB49-684135DB23A3",
225
- "Subject": "This is a Subject",
226
- "Description": "This is a description",
227
- "Grade": "25",
228
- "Answer": [],
229
- "IsMultipleChoise": true
230
- }
231
- ]
232
- }
233
- }
234
- ]
235
- },
236
- {
237
- "Title": "Category 2.2",
238
- "Key": "2.2",
239
- "Data": {
240
- "Id": "57A06838-67F9-4726-BC36-719A0C797484",
241
- "CategoryId": "PCDED10D-0984-46D4-A9B3-7EC518D74A63",
242
- "CategoryName": "Category 2.2",
243
- "OpenAnswer": false,
244
- "IsYesOrNo": true,
245
- "GeneralEvaluationLevel": 0,
246
- "Grade": "50",
247
- "Description": "This is a description",
248
- "Score": "0.000",
249
- "Questions": [
250
- {
251
- "Id": "P5562A64-A24B-425A-A345-560238CA2468",
252
- "QuestionId": "PD17A8A5-E299-47D3-AB49-684135DB23A3",
253
- "Subject": "This is a Subject",
254
- "Description": "This is a description",
255
- "Grade": "50",
256
- "Answer": null
257
- },
258
- {
259
- "Id": "P5562A64-A24B-425A-A345-560238CA2468",
260
- "QuestionId": "PD17A8A5-E299-47D3-AB49-684135DB23A3",
261
- "Subject": "This is a Subject",
262
- "Description": "This is a description",
263
- "Grade": "50",
264
- "Answer": "Yes"
265
- }
266
- ]
267
- },
268
- "Children": []
269
- }
270
- ]
271
- },
272
- {
273
- "Title": "Category 3",
274
- "Key": "3",
275
- "Data": {
276
- "Id": "97A06838-67F9-4726-BC36-719A0C797484",
277
- "CategoryId": "CATEGORYID3",
278
- "CategoryName": "Category 3",
279
- "OpenAnswer": false,
280
- "GeneralEvaluationLevel": 0,
281
- "Grade": "0",
282
- "Description": "This is a description",
283
- "Score": "0.000",
284
- "Questions": [
285
- {
286
- "Id": "95562A64-A24B-425A-A345-560238CA2468",
287
- "QuestionId": "9D17A8A5-E299-47D3-AB49-684135DB23A3",
288
- "Subject": "This is a Subject",
289
- "Description": "This is a description",
290
- "Grade": "0",
291
- "Answer": "dwjdiwjdiwjdi",
292
- "IsOpenAnswer": true
293
- },
294
- {
295
- "Id": "93862A64-A24B-425A-A345-560238CA2468",
296
- "QuestionId": "9D38A8A5-E299-47D3-AB49-684135DB23A3",
297
- "Subject": "This is a Subject",
298
- "Description": "This is a description",
299
- "Grade": "0",
300
- "Answer": null,
301
- "IsMultipleChoise": true
302
- }
303
- ]
304
- }
305
- },
306
- ]
307
- }
308
- };
309
-
310
-
311
-
@@ -1,81 +0,0 @@
1
- import translate from '../../constants/translationHelper';
2
-
3
- export type EvaluationOption = {
4
- value: string;
5
- label: string;
6
- };
7
-
8
- export type EvaluationOptions = {
9
- scale_0: EvaluationOption[];
10
- scale_1: EvaluationOption[];
11
- scale_2: EvaluationOption[];
12
- };
13
-
14
- export const evaluationOptions: EvaluationOptions = {
15
- scale_0: [
16
- {
17
- value: '1',
18
- label: '1',
19
- },
20
- {
21
- value: '2',
22
- label: '2',
23
- },
24
- {
25
- value: '3',
26
- label: '3',
27
- },
28
- {
29
- value: '4',
30
- label: '4',
31
- },
32
- {
33
- value: '5',
34
- label: '5',
35
- }
36
- ],
37
- scale_1: [
38
- {
39
- value: '1',
40
- label: '1',
41
- },
42
- {
43
- value: '2',
44
- label: '2',
45
- },
46
- {
47
- value: '3',
48
- label: '3',
49
- },
50
- {
51
- value: '4',
52
- label: '4',
53
- },
54
- ],
55
- scale_2: [
56
- {
57
- value: '1',
58
- label: '1',
59
- },
60
- {
61
- value: '2',
62
- label: '2',
63
- },
64
- {
65
- value: '3',
66
- label: '3',
67
- },
68
- {
69
- value: '4',
70
- label: '4',
71
- },
72
- {
73
- value: '5',
74
- label: '5',
75
- },
76
- {
77
- value: 'NA',
78
- label: 'NA'
79
- }
80
- ]
81
- }