@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.
- package/package.json +6 -3
- package/NPMPUBLISH.md +0 -29
- package/bitbucket-pipelines.yml +0 -95
- package/dist/components/AnalyticsBar/AnalyticsBar.stories.d.ts +0 -5
- package/dist/components/BellNotifications/BellNotifications.stories.d.ts +0 -5
- package/dist/components/Button/Button.stories.d.ts +0 -6
- package/dist/components/Category/Category.stories.d.ts +0 -3
- package/dist/components/CategoryReadOnly/CategoryReadOnly.stories.d.ts +0 -3
- package/dist/components/CategoryResponse/CategoryResponse.stories.d.ts +0 -3
- package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -5
- package/dist/components/DatePickerTag/DatePickerTag.stories.d.ts +0 -5
- package/dist/components/DropdownButton/DropdownButton.stories.d.ts +0 -5
- package/dist/components/ExportTableData/ExportTableData.stories.d.ts +0 -3
- package/dist/components/Footer/Footer.stories.d.ts +0 -5
- package/dist/components/Footer2/Footer.stories.d.ts +0 -6
- package/dist/components/Header/Header.stories.d.ts +0 -5
- package/dist/components/Input/Input.stories.d.ts +0 -5
- package/dist/components/InputCountryCode/inputCountryCode.stories.d.ts +0 -5
- package/dist/components/Label/Label.stories.d.ts +0 -6
- package/dist/components/Link/Link.stories.d.ts +0 -7
- package/dist/components/Menu/Menu.stories.d.ts +0 -5
- package/dist/components/MobileTable/MobileTable.stories.d.ts +0 -5
- package/dist/components/ModalConfirmation/ModalConfirmation.stories.d.ts +0 -5
- package/dist/components/ModalWithTable/ModalWithTable.stories.d.ts +0 -5
- package/dist/components/Navigation/Navigation.stories.d.ts +0 -5
- package/dist/components/Notification/Notification.stories.d.ts +0 -5
- package/dist/components/Questions/Questions.stories.d.ts +0 -3
- package/dist/components/Radio/Radio.stories.d.ts +0 -5
- package/dist/components/ResponseType/ResponseType.stories.d.ts +0 -3
- package/dist/components/ResponsiveTable/ResponsiveTable.stories.d.ts +0 -9
- package/dist/components/Select/Select.stories.d.ts +0 -6
- package/dist/components/Separator/Separator.stories.d.ts +0 -6
- package/dist/components/Sidebar/Sidebar.stories.d.ts +0 -6
- package/dist/components/Switch/Switch.stories.d.ts +0 -5
- package/dist/components/Table/Table.stories.d.ts +0 -9
- package/dist/components/Tag/Tag.stories.d.ts +0 -5
- package/dist/components/Upload/Upload.stories.d.ts +0 -3
- package/dist/components/UserInfo/UserInfo.stories.d.ts +0 -3
- package/dist/components/WebCam/WebCam.stories.d.ts +0 -3
- package/dist/types/index.d.ts +0 -2
- package/public/index.ts +0 -0
- 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 -311
- 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/locales/en.json +0 -142
- package/src/locales/es.json +0 -142
- package/src/locales/pt.json +0 -142
- package/src/types/Global.d.ts +0 -4
- package/tsconfig.json +0 -24
- package/vite.config.js +0 -51
|
@@ -1,386 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from "@storybook/react-vite";
|
|
2
|
-
import { ResponsiveTable, ResponsiveTableCustomProps } from '.';
|
|
3
|
-
import { useState } from "react";
|
|
4
|
-
import { useTranslation } from "react-i18next";
|
|
5
|
-
import { DownloadOutlined } from "@ant-design/icons";
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'ResponsiveTable',
|
|
9
|
-
component: ResponsiveTable,
|
|
10
|
-
} as Meta;
|
|
11
|
-
|
|
12
|
-
const Template: StoryFn<ResponsiveTableCustomProps> = (args: any) => {
|
|
13
|
-
const { t } = useTranslation();
|
|
14
|
-
const [pageInfo, setPageInfo] = useState<any>({});
|
|
15
|
-
const [rowSelectionInfo, setRowSelectionInfo] = useState<any>({});
|
|
16
|
-
const [sortBy, setSortBy] = useState<string[]>(['id', 'desc']);
|
|
17
|
-
const [clearRowSelection, setClearRowSelection] = useState<boolean>(false);
|
|
18
|
-
|
|
19
|
-
const handleSortByColumnChange = (sortState: any) => {
|
|
20
|
-
console.log('handleSortChange called with:', sortState);
|
|
21
|
-
// Do something with the new sort state
|
|
22
|
-
// For example, trigger an API call
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const getButtonLabel = (record: any) => {
|
|
26
|
-
return (record as any)?.type === "Efetivo" ? "Pog" : null;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
const getActionsForRecord = (record: any) => {
|
|
30
|
-
return (record as any)?.role === "Gerente"
|
|
31
|
-
? [
|
|
32
|
-
{
|
|
33
|
-
key: '1', label: `${t('actions.one')}`, onClick: () => {
|
|
34
|
-
setClearRowSelection(true);
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
{ key: '2', label: `${t('actions.two')}` },
|
|
38
|
-
{
|
|
39
|
-
key: '3', label: 'label 3'
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
: [
|
|
43
|
-
{
|
|
44
|
-
key: '1', label: `${t('actions.one')}`, onClick: () => {
|
|
45
|
-
setClearRowSelection(true);
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
{ key: '2', label: `${t('actions.two')}` },
|
|
49
|
-
{
|
|
50
|
-
key: '3', label: 'label 3'
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
key: '4', label: 'label 4'
|
|
54
|
-
}
|
|
55
|
-
];
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
const getIcon = (record: any) => {
|
|
59
|
-
return record.id === "1"
|
|
60
|
-
? <DownloadOutlined />
|
|
61
|
-
: record.id === "3"
|
|
62
|
-
? <DownloadOutlined />
|
|
63
|
-
: null;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
const actionsArray = [{ key: '1', label: `` }];
|
|
67
|
-
|
|
68
|
-
return <ResponsiveTable
|
|
69
|
-
cleanRowSelection={clearRowSelection}
|
|
70
|
-
onRow={(record: any) => {
|
|
71
|
-
return {
|
|
72
|
-
style: {
|
|
73
|
-
opacity: (record.Status === "I" || record.Status === "Draft") ? 0.5 : 1,
|
|
74
|
-
boxShadow: record.Status === "Draft" ? "inset 2px 0 0 #FF674C" : "none",
|
|
75
|
-
backgroundColor: record.Status === "Draft" ? "#FF674C" : "none"
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
}}
|
|
79
|
-
columnsSortChange={handleSortByColumnChange} paginationInfo={setPageInfo} headingTranslationsKey={'tableHeadings'} rowSelectionInfo={setRowSelectionInfo}
|
|
80
|
-
actionsArray={actionsArray}
|
|
81
|
-
fixedColumns={[{ dataIndex: 'action', side: 'right' }]} buttonActionIcon={getIcon} {...args}>
|
|
82
|
-
</ResponsiveTable>;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
export const Primary = Template.bind({});
|
|
86
|
-
Primary.args = {
|
|
87
|
-
selectPlaceholder: 'Order by',
|
|
88
|
-
rowKeyValue: 'mecanographicNumber',
|
|
89
|
-
dataSource: [
|
|
90
|
-
{
|
|
91
|
-
id: `1`,
|
|
92
|
-
name: `João Cachulo`,
|
|
93
|
-
mecanographicNumber: "232",
|
|
94
|
-
store: `Levi's Sta Catarina`,
|
|
95
|
-
role: `Gerente`,
|
|
96
|
-
type: `Efetivo`,
|
|
97
|
-
Status: "A"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
id: `2`,
|
|
101
|
-
name: `Filipe Martins`,
|
|
102
|
-
mecanographicNumber: "32",
|
|
103
|
-
store: `Levi's Sta Catarina`,
|
|
104
|
-
role: `Comercial`,
|
|
105
|
-
type: `NEfetivo`,
|
|
106
|
-
Status: "Draft"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
id: `3`,
|
|
110
|
-
name: `Anna Astori`,
|
|
111
|
-
mecanographicNumber: "3212",
|
|
112
|
-
store: `Levi's Sta Catarina`,
|
|
113
|
-
role: `Funcionário`,
|
|
114
|
-
type: `NEfetivo`,
|
|
115
|
-
Status: "I"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
id: `4`,
|
|
119
|
-
name: `Yield Ona`,
|
|
120
|
-
mecanographicNumber: "21232",
|
|
121
|
-
store: `Adidas Restaurantes`,
|
|
122
|
-
role: `Gerente`,
|
|
123
|
-
type: `Efetivo`
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
id: `5`,
|
|
127
|
-
name: `João Cachulo`,
|
|
128
|
-
mecanographicNumber: "232",
|
|
129
|
-
store: `Levi's Sta Catarina`,
|
|
130
|
-
role: `Gerente`,
|
|
131
|
-
type: `Efetivo`
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
id: `6`,
|
|
135
|
-
name: `Filipe Martins`,
|
|
136
|
-
mecanographicNumber: "32",
|
|
137
|
-
store: `Levi's Sta Catarina`,
|
|
138
|
-
role: `Comercial`,
|
|
139
|
-
type: `Efetivo`
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
id: `7`,
|
|
143
|
-
name: `Anna Astori`,
|
|
144
|
-
mecanographicNumber: "3212",
|
|
145
|
-
store: `Levi's Sta Catarina`,
|
|
146
|
-
role: `Funcionário`,
|
|
147
|
-
type: `Efetivo`
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
id: `8`,
|
|
151
|
-
name: `Yield Ona`,
|
|
152
|
-
mecanographicNumber: "21232",
|
|
153
|
-
store: `Adidas Restaurantes`,
|
|
154
|
-
role: `Gerente`,
|
|
155
|
-
type: `Efetivo`
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
id: `9`,
|
|
159
|
-
name: `João Cachulo`,
|
|
160
|
-
mecanographicNumber: "232",
|
|
161
|
-
store: `Levi's Sta Catarina`,
|
|
162
|
-
role: `Gerente`,
|
|
163
|
-
type: `Efetivo`
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
id: `10`,
|
|
167
|
-
name: `Filipe Martins`,
|
|
168
|
-
mecanographicNumber: "32",
|
|
169
|
-
store: `Levi's Sta Catarina`,
|
|
170
|
-
role: `Comercial`,
|
|
171
|
-
type: `Efetivo`
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
id: `11`,
|
|
175
|
-
name: `Anna Astori`,
|
|
176
|
-
mecanographicNumber: "3212",
|
|
177
|
-
store: `Levi's Sta Catarina`,
|
|
178
|
-
role: `Funcionário`,
|
|
179
|
-
type: `Efetivo`
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
id: `12`,
|
|
183
|
-
name: `Yield Ona`,
|
|
184
|
-
mecanographicNumber: "21232",
|
|
185
|
-
store: `Adidas Restaurantes`,
|
|
186
|
-
role: `Gerente`,
|
|
187
|
-
type: `Efetivo`
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
id: `13`,
|
|
191
|
-
name: `João Cachulo`,
|
|
192
|
-
mecanographicNumber: "232",
|
|
193
|
-
store: `Levi's Sta Catarina`,
|
|
194
|
-
role: `Gerente`,
|
|
195
|
-
type: `Efetivo`
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
id: `14`,
|
|
199
|
-
name: `João Cachulo`,
|
|
200
|
-
mecanographicNumber: "232",
|
|
201
|
-
store: `Levi's Sta Catarina`,
|
|
202
|
-
role: `Gerente`,
|
|
203
|
-
type: `Efetivo`
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
id: `15`,
|
|
207
|
-
name: `João Cachulo`,
|
|
208
|
-
mecanographicNumber: "232",
|
|
209
|
-
store: `Levi's Sta Catarina`,
|
|
210
|
-
role: `Gerente`,
|
|
211
|
-
type: `Efetivo`
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
id: `16`,
|
|
215
|
-
name: `João Cachulo`,
|
|
216
|
-
mecanographicNumber: "232",
|
|
217
|
-
store: `Levi's Sta Catarina`,
|
|
218
|
-
role: `Gerente`,
|
|
219
|
-
type: `Efetivo`
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
id: `17`,
|
|
223
|
-
name: `João Cachulo`,
|
|
224
|
-
mecanographicNumber: "232",
|
|
225
|
-
store: `Levi's Sta Catarina`,
|
|
226
|
-
role: `Gerente`,
|
|
227
|
-
type: `Efetivo`
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
id: `18`,
|
|
231
|
-
name: `João Cachulo`,
|
|
232
|
-
mecanographicNumber: "232",
|
|
233
|
-
store: `Levi's Sta Catarina`,
|
|
234
|
-
role: `Gerente`,
|
|
235
|
-
type: `Efetivo`
|
|
236
|
-
},
|
|
237
|
-
],
|
|
238
|
-
pagination: {
|
|
239
|
-
total: 24,
|
|
240
|
-
pageSize: 4
|
|
241
|
-
},
|
|
242
|
-
hiddenColumns: ['id'],
|
|
243
|
-
sortByColumns: true,
|
|
244
|
-
columnsToSort: ["name", "mecanographicNumber"]
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
export const Secondary = Template.bind({});
|
|
248
|
-
Secondary.args = {
|
|
249
|
-
dataSource: [
|
|
250
|
-
{
|
|
251
|
-
key: `1`,
|
|
252
|
-
name: `as John Brown`,
|
|
253
|
-
mecanographicNumber: 232,
|
|
254
|
-
store: `Levi's Sta Catarina`,
|
|
255
|
-
role: `Gerente`,
|
|
256
|
-
type: `Efetivo`
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
key: `2`,
|
|
260
|
-
name: `bv Mary Brown`,
|
|
261
|
-
mecanographicNumber: 32,
|
|
262
|
-
store: `Levi's Sta Catarina`,
|
|
263
|
-
role: `Comercial`,
|
|
264
|
-
type: `Efetivo`
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
key: `3`,
|
|
268
|
-
name: `as Anna Astori`,
|
|
269
|
-
mecanographicNumber: 3212,
|
|
270
|
-
store: `Levi's Sta Catarina`,
|
|
271
|
-
role: `Funcionário`,
|
|
272
|
-
type: `Efetivo`
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
key: `4`,
|
|
276
|
-
name: `bv Yield Ona`,
|
|
277
|
-
mecanographicNumber: 21232,
|
|
278
|
-
store: `Adidas Restaurantes`,
|
|
279
|
-
role: `Gerente`,
|
|
280
|
-
type: `Efetivo`
|
|
281
|
-
},
|
|
282
|
-
],
|
|
283
|
-
pagination: {
|
|
284
|
-
total: 4,
|
|
285
|
-
pageSize: 10
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
|
|
289
|
-
export const WithCheckbox = Template.bind({});
|
|
290
|
-
WithCheckbox.args = {
|
|
291
|
-
dataSource: [
|
|
292
|
-
{
|
|
293
|
-
key: `1`,
|
|
294
|
-
name: `John Brown`,
|
|
295
|
-
mecanographicNumber: 232,
|
|
296
|
-
store: `Levi's Sta Catarina`,
|
|
297
|
-
role: `Gerente`,
|
|
298
|
-
type: `Efetivo`
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
key: `2`,
|
|
302
|
-
name: `Mary Brown`,
|
|
303
|
-
mecanographicNumber: 32,
|
|
304
|
-
store: `Levi's Sta Catarina`,
|
|
305
|
-
role: `Comercial`,
|
|
306
|
-
type: `Efetivo`
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
key: `3`,
|
|
310
|
-
name: `Anna Astori`,
|
|
311
|
-
mecanographicNumber: 3212,
|
|
312
|
-
store: `Levi's Sta Catarina`,
|
|
313
|
-
role: `Funcionário`,
|
|
314
|
-
type: `Efetivo`
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
key: `4`,
|
|
318
|
-
name: `Yield Ona`,
|
|
319
|
-
mecanographicNumber: 21232,
|
|
320
|
-
store: `Adidas Restaurantes`,
|
|
321
|
-
role: `Gerente`,
|
|
322
|
-
type: `Efetivo`
|
|
323
|
-
},
|
|
324
|
-
],
|
|
325
|
-
};
|
|
326
|
-
|
|
327
|
-
export const withActions = Template.bind({});
|
|
328
|
-
withActions.args = {
|
|
329
|
-
fieldsToSort: ['store', 'mecanographicNumber'],
|
|
330
|
-
selectPlaceholder: 'Order by',
|
|
331
|
-
dataSource: [
|
|
332
|
-
{
|
|
333
|
-
key: `1`,
|
|
334
|
-
name: `John Brown`,
|
|
335
|
-
mecanographicNumber: "232",
|
|
336
|
-
store: `Levi's Sta Catarina`,
|
|
337
|
-
role: `Gerente`,
|
|
338
|
-
type: `Efetivo`
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
key: `2`,
|
|
342
|
-
name: `Mary Brown`,
|
|
343
|
-
mecanographicNumber: "32",
|
|
344
|
-
store: `Levi's Sta Catarina`,
|
|
345
|
-
role: `Comercial`,
|
|
346
|
-
type: `Efetivo`
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
key: `3`,
|
|
350
|
-
name: `Anna Astori`,
|
|
351
|
-
mecanographicNumber: "3212",
|
|
352
|
-
store: `Levi's Sta Catarina`,
|
|
353
|
-
role: `Funcionário`,
|
|
354
|
-
type: `Efetivo`
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
key: `4`,
|
|
358
|
-
name: `Yield Ona`,
|
|
359
|
-
mecanographicNumber: "21232",
|
|
360
|
-
store: `Adidas Restaurantes`,
|
|
361
|
-
role: `Gerente`,
|
|
362
|
-
type: `Efetivo`
|
|
363
|
-
},
|
|
364
|
-
],
|
|
365
|
-
pagination: {
|
|
366
|
-
total: 24,
|
|
367
|
-
pageSize: 4
|
|
368
|
-
},
|
|
369
|
-
rowSelection: {
|
|
370
|
-
type: 'checkbox',
|
|
371
|
-
selectedRowKeys: ['1']
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
export const NoData = Template.bind({});
|
|
376
|
-
NoData.args = {
|
|
377
|
-
fieldsToSort: ['store', 'mecanographicNumber'],
|
|
378
|
-
selectPlaceholder: 'Order by',
|
|
379
|
-
rowKeyValue: 'mecanographicNumber',
|
|
380
|
-
dataSource: undefined,
|
|
381
|
-
pagination: {
|
|
382
|
-
total: 24,
|
|
383
|
-
pageSize: 4
|
|
384
|
-
},
|
|
385
|
-
hiddenColumns: ['id']
|
|
386
|
-
};
|