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