cozy-ui-plus 12.3.14 → 13.0.0
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/CHANGELOG.md +27 -0
- package/package.json +3 -3
- package/dist/ListItem/ExpandedAttributes/ExpandedAttribute.js +0 -62
- package/dist/ListItem/ExpandedAttributes/helpers.js +0 -263
- package/dist/ListItem/ExpandedAttributes/index.js +0 -90
- package/dist/ListItem/ListItemBase/Renaming/RenameDialog.js +0 -52
- package/dist/ListItem/ListItemBase/Renaming/RenameInput.js +0 -319
- package/dist/ListItem/ListItemBase/Renaming/helpers.js +0 -73
- package/dist/ListItem/ListItemBase/index.js +0 -151
- package/dist/ListItem/ListItemByDoc/index.js +0 -109
- package/dist/ListItem/ListItemContact/helpers.js +0 -39
- package/dist/ListItem/ListItemContact/index.js +0 -85
- package/dist/ListItem/ListItemContact/useActions.js +0 -28
- package/dist/ListItem/ListItemFile/ExpirationAnnotation.js +0 -54
- package/dist/ListItem/ListItemFile/ItemIcon.js +0 -64
- package/dist/ListItem/ListItemFile/PrimaryText.js +0 -47
- package/dist/ListItem/ListItemFile/SecondaryText.js +0 -41
- package/dist/ListItem/ListItemFile/index.js +0 -96
- package/dist/ListItem/hoc/withListItemLocales.js +0 -320
- package/dist/Qualification/QualificationGrid/helpers.js +0 -16
- package/dist/Qualification/QualificationGrid/index.js +0 -118
- package/dist/Qualification/QualificationGrid/locales/withLocales.js +0 -80
- package/dist/Qualification/QualificationItem/index.js +0 -76
- package/dist/providers/Intent/index.js +0 -130
- package/dist/src/ListItem/ExpandedAttributes/ExpandedAttribute.d.ts +0 -14
- package/dist/src/ListItem/ExpandedAttributes/helpers.d.ts +0 -43
- package/dist/src/ListItem/ExpandedAttributes/helpers.spec.d.ts +0 -1
- package/dist/src/ListItem/ExpandedAttributes/index.d.ts +0 -2
- package/dist/src/ListItem/ListItemBase/Renaming/RenameDialog.d.ts +0 -2
- package/dist/src/ListItem/ListItemBase/Renaming/RenameInput.d.ts +0 -12
- package/dist/src/ListItem/ListItemBase/Renaming/helpers.d.ts +0 -1
- package/dist/src/ListItem/ListItemBase/index.d.ts +0 -2
- package/dist/src/ListItem/ListItemByDoc/index.d.ts +0 -46
- package/dist/src/ListItem/ListItemContact/helpers.d.ts +0 -1
- package/dist/src/ListItem/ListItemContact/helpers.spec.d.ts +0 -1
- package/dist/src/ListItem/ListItemContact/index.d.ts +0 -35
- package/dist/src/ListItem/ListItemContact/useActions.d.ts +0 -2
- package/dist/src/ListItem/ListItemFile/ExpirationAnnotation.d.ts +0 -2
- package/dist/src/ListItem/ListItemFile/ItemIcon.d.ts +0 -12
- package/dist/src/ListItem/ListItemFile/PrimaryText.d.ts +0 -12
- package/dist/src/ListItem/ListItemFile/SecondaryText.d.ts +0 -12
- package/dist/src/ListItem/ListItemFile/index.d.ts +0 -37
- package/dist/src/ListItem/hoc/withListItemLocales.d.ts +0 -12
- package/dist/src/Qualification/QualificationGrid/helpers.d.ts +0 -1
- package/dist/src/Qualification/QualificationGrid/index.d.ts +0 -2
- package/dist/src/Qualification/QualificationGrid/locales/withLocales.d.ts +0 -12
- package/dist/src/Qualification/QualificationItem/index.d.ts +0 -17
- package/dist/src/providers/Intent/index.d.ts +0 -9
- package/src/ListItem/ExpandedAttributes/ExpandedAttribute.jsx +0 -39
- package/src/ListItem/ExpandedAttributes/helpers.js +0 -214
- package/src/ListItem/ExpandedAttributes/helpers.spec.js +0 -175
- package/src/ListItem/ExpandedAttributes/index.jsx +0 -62
- package/src/ListItem/ListItemBase/Renaming/RenameDialog.jsx +0 -38
- package/src/ListItem/ListItemBase/Renaming/RenameInput.jsx +0 -134
- package/src/ListItem/ListItemBase/Renaming/helpers.js +0 -35
- package/src/ListItem/ListItemBase/index.jsx +0 -115
- package/src/ListItem/ListItemByDoc/index.jsx +0 -103
- package/src/ListItem/ListItemContact/helpers.js +0 -28
- package/src/ListItem/ListItemContact/helpers.spec.js +0 -41
- package/src/ListItem/ListItemContact/index.jsx +0 -67
- package/src/ListItem/ListItemContact/useActions.jsx +0 -22
- package/src/ListItem/ListItemFile/ExpirationAnnotation.jsx +0 -39
- package/src/ListItem/ListItemFile/ItemIcon.jsx +0 -55
- package/src/ListItem/ListItemFile/PrimaryText.jsx +0 -38
- package/src/ListItem/ListItemFile/SecondaryText.jsx +0 -36
- package/src/ListItem/ListItemFile/index.jsx +0 -75
- package/src/ListItem/Readme.md +0 -211
- package/src/ListItem/hoc/withListItemLocales.jsx +0 -15
- package/src/ListItem/locales/en.json +0 -75
- package/src/ListItem/locales/fr.json +0 -75
- package/src/ListItem/locales/ru.json +0 -75
- package/src/ListItem/locales/vi.json +0 -75
- package/src/Qualification/QualificationGrid/Readme.md +0 -26
- package/src/Qualification/QualificationGrid/helpers.js +0 -4
- package/src/Qualification/QualificationGrid/index.jsx +0 -93
- package/src/Qualification/QualificationGrid/locales/en.json +0 -15
- package/src/Qualification/QualificationGrid/locales/fr.json +0 -15
- package/src/Qualification/QualificationGrid/locales/ru.json +0 -15
- package/src/Qualification/QualificationGrid/locales/vi.json +0 -15
- package/src/Qualification/QualificationGrid/locales/withLocales.jsx +0 -15
- package/src/Qualification/QualificationItem/Readme.md +0 -8
- package/src/Qualification/QualificationItem/index.jsx +0 -63
- package/src/providers/Intent/index.jsx +0 -83
package/src/ListItem/Readme.md
DELETED
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
```jsx
|
|
2
|
-
import Variants from 'cozy-ui/docs/components/Variants'
|
|
3
|
-
import List from 'cozy-ui/transpiled/react/List'
|
|
4
|
-
import ListSubheader from 'cozy-ui/transpiled/react/ListSubheader'
|
|
5
|
-
import ListItem from 'cozy-ui/transpiled/react/ListItem'
|
|
6
|
-
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
7
|
-
import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
|
|
8
|
-
import ListItemSecondaryAction from 'cozy-ui/transpiled/react/ListItemSecondaryAction'
|
|
9
|
-
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
10
|
-
import IconButton from 'cozy-ui/transpiled/react/IconButton'
|
|
11
|
-
import CommentIcon from 'cozy-ui/transpiled/react/Icons/Comment'
|
|
12
|
-
import PeopleIcon from 'cozy-ui/transpiled/react/Icons/People'
|
|
13
|
-
import RightIcon from 'cozy-ui/transpiled/react/Icons/Right'
|
|
14
|
-
import DotsIcon from "cozy-ui/transpiled/react/Icons/Dots"
|
|
15
|
-
import PenIcon from "cozy-ui/transpiled/react/Icons/Pen"
|
|
16
|
-
import TrashIcon from "cozy-ui/transpiled/react/Icons/Trash"
|
|
17
|
-
import Radio from 'cozy-ui/transpiled/react/Radios'
|
|
18
|
-
import Checkbox from 'cozy-ui/transpiled/react/Checkbox'
|
|
19
|
-
|
|
20
|
-
const initialVariants = [{
|
|
21
|
-
dense: false,
|
|
22
|
-
longText: false,
|
|
23
|
-
disabledGutters: false,
|
|
24
|
-
doubleGutters: false,
|
|
25
|
-
small: false,
|
|
26
|
-
large: false,
|
|
27
|
-
bigIcons: false,
|
|
28
|
-
smallIcons: false,
|
|
29
|
-
multipleLeftIcons: false,
|
|
30
|
-
multipleRightIcons: false,
|
|
31
|
-
withActions: false,
|
|
32
|
-
ellipsis: true
|
|
33
|
-
}]
|
|
34
|
-
|
|
35
|
-
;
|
|
36
|
-
|
|
37
|
-
<Variants initialVariants={initialVariants} screenshotAllVariants>
|
|
38
|
-
{variant => {
|
|
39
|
-
const gutters = variant.disabledGutters ? 'disabled' : variant.doubleGutters ? 'double' : 'default'
|
|
40
|
-
const size = variant.small ? 'small' : variant.large ? 'large' : 'medium'
|
|
41
|
-
const listItemProps = { gutters, size, ellipsis: variant.ellipsis }
|
|
42
|
-
|
|
43
|
-
const iconSize = variant.smallIcons ? 8 : variant.bigIcons ? 32 : 16
|
|
44
|
-
const text = variant.longText ? content.ada.short : "I'm a primary text"
|
|
45
|
-
|
|
46
|
-
return (
|
|
47
|
-
<>
|
|
48
|
-
<List dense={variant.dense} subheader={<ListSubheader>Section 1</ListSubheader>}>
|
|
49
|
-
<ListItem {...listItemProps} button>
|
|
50
|
-
<ListItemIcon>
|
|
51
|
-
<Icon icon={CommentIcon} size={iconSize} />
|
|
52
|
-
</ListItemIcon>
|
|
53
|
-
{variant.multipleLeftIcons && (
|
|
54
|
-
<>
|
|
55
|
-
<ListItemIcon>
|
|
56
|
-
<Icon icon={PeopleIcon} size={iconSize} />
|
|
57
|
-
</ListItemIcon>
|
|
58
|
-
<ListItemIcon>
|
|
59
|
-
<Radio />
|
|
60
|
-
</ListItemIcon>
|
|
61
|
-
<ListItemIcon>
|
|
62
|
-
<Checkbox />
|
|
63
|
-
</ListItemIcon>
|
|
64
|
-
</>
|
|
65
|
-
)}
|
|
66
|
-
<ListItemText primary={text} />
|
|
67
|
-
{variant.multipleRightIcons && (
|
|
68
|
-
<>
|
|
69
|
-
<ListItemIcon>
|
|
70
|
-
<Icon icon={RightIcon} size={iconSize} />
|
|
71
|
-
</ListItemIcon>
|
|
72
|
-
<ListItemIcon>
|
|
73
|
-
<Radio />
|
|
74
|
-
</ListItemIcon>
|
|
75
|
-
<ListItemIcon>
|
|
76
|
-
<Checkbox />
|
|
77
|
-
</ListItemIcon>
|
|
78
|
-
</>
|
|
79
|
-
)}
|
|
80
|
-
{variant.withActions && (
|
|
81
|
-
<ListItemSecondaryAction>
|
|
82
|
-
<IconButton>
|
|
83
|
-
<Icon icon={PenIcon} />
|
|
84
|
-
</IconButton>
|
|
85
|
-
<IconButton>
|
|
86
|
-
<Icon icon={TrashIcon} />
|
|
87
|
-
</IconButton>
|
|
88
|
-
<IconButton>
|
|
89
|
-
<Icon icon={DotsIcon} />
|
|
90
|
-
</IconButton>
|
|
91
|
-
</ListItemSecondaryAction>
|
|
92
|
-
)}
|
|
93
|
-
</ListItem>
|
|
94
|
-
</List>
|
|
95
|
-
</>
|
|
96
|
-
)
|
|
97
|
-
}}
|
|
98
|
-
</Variants>
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
### Contextualized items
|
|
102
|
-
|
|
103
|
-
```jsx
|
|
104
|
-
import { BreakpointsProvider } from 'cozy-ui/transpiled/react/providers/Breakpoints'
|
|
105
|
-
import List from 'cozy-ui/transpiled/react/List'
|
|
106
|
-
import ListItemByDoc from 'cozy-ui/transpiled/react/ListItem/ListItemByDoc'
|
|
107
|
-
import ListItem from 'cozy-ui/transpiled/react/ListItem'
|
|
108
|
-
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
109
|
-
import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
|
|
110
|
-
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
111
|
-
import Divider from 'cozy-ui/transpiled/react/Divider'
|
|
112
|
-
import FiletypeTextIcon from 'cozy-ui/transpiled/react/Icons/FileTypeText'
|
|
113
|
-
import DemoProvider from 'cozy-ui/docs/components/DemoProvider'
|
|
114
|
-
|
|
115
|
-
const mockClient = {
|
|
116
|
-
plugins: {
|
|
117
|
-
realtime: {
|
|
118
|
-
subscribe: () => {},
|
|
119
|
-
unsubscribe: () => {},
|
|
120
|
-
unsubscribeAll: () => {}
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
getStackClient: () => ({
|
|
124
|
-
uri: 'https://cozy.io/'
|
|
125
|
-
}),
|
|
126
|
-
getInstanceOptions: () => ({
|
|
127
|
-
subdomain: ''
|
|
128
|
-
})
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
const contacts = [
|
|
132
|
-
{
|
|
133
|
-
_id: 'id01',
|
|
134
|
-
_type: 'io.cozy.contacts',
|
|
135
|
-
displayName: 'John Doe',
|
|
136
|
-
birthday: '25/10/2022',
|
|
137
|
-
email: [{ address: 'johndoe@cozy.cc', primary: true }],
|
|
138
|
-
phone: [{ number: '0102030405', primary: true }]
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
_id: 'id02',
|
|
142
|
-
_type: 'io.cozy.contacts',
|
|
143
|
-
displayName: 'Jason Bourne',
|
|
144
|
-
birthday: '01/01/2020',
|
|
145
|
-
email: [{ address: 'jbourne@cozy.cc', primary: true }]
|
|
146
|
-
}
|
|
147
|
-
]
|
|
148
|
-
|
|
149
|
-
const files = [
|
|
150
|
-
{
|
|
151
|
-
_type: 'io.cozy.files',
|
|
152
|
-
name: 'File01.pdf',
|
|
153
|
-
metadata: {
|
|
154
|
-
number: 12345,
|
|
155
|
-
refTaxIncome: '153',
|
|
156
|
-
datetime: '2024-01-11T12:00:00.000Z',
|
|
157
|
-
datetimeLabel: 'expirationDate',
|
|
158
|
-
referencedDate: '2024-01-01T12:00:00.000Z',
|
|
159
|
-
expirationDate: '2024-01-11T12:00:00.000Z',
|
|
160
|
-
issueDate: '2024-01-11T12:00:00.000Z',
|
|
161
|
-
noticePeriod: '30',
|
|
162
|
-
qualification: {
|
|
163
|
-
label: 'driver_license'
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
_type: 'io.cozy.files',
|
|
169
|
-
type: 'file',
|
|
170
|
-
name: 'Note01.cozy-note',
|
|
171
|
-
metadata: {
|
|
172
|
-
title: 'note title',
|
|
173
|
-
version: 0
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
]
|
|
177
|
-
|
|
178
|
-
;
|
|
179
|
-
|
|
180
|
-
<DemoProvider client={mockClient}>
|
|
181
|
-
<List>
|
|
182
|
-
<ListItemByDoc
|
|
183
|
-
doc={contacts[0]}
|
|
184
|
-
expandedAttributesProps={{
|
|
185
|
-
isExpandedAttributesActive: true,
|
|
186
|
-
expandedAttributes: ['email', 'birthday']
|
|
187
|
-
}}
|
|
188
|
-
onClick={() => {}}
|
|
189
|
-
/>
|
|
190
|
-
<Divider variant="inset" />
|
|
191
|
-
<ListItemByDoc
|
|
192
|
-
doc={files[0]}
|
|
193
|
-
expandedAttributesProps={{
|
|
194
|
-
isExpandedAttributesActive: true,
|
|
195
|
-
expandedAttributes: ['metadata.number']
|
|
196
|
-
}}
|
|
197
|
-
onClick={() => {}}
|
|
198
|
-
/>
|
|
199
|
-
<ListItemByDoc
|
|
200
|
-
doc={files[0]}
|
|
201
|
-
expandedAttributesProps={{ isExpandedAttributesActive: true }}
|
|
202
|
-
onClick={() => {}}
|
|
203
|
-
/>
|
|
204
|
-
<Divider variant="inset" />
|
|
205
|
-
<ListItemByDoc
|
|
206
|
-
doc={files[1]}
|
|
207
|
-
onClick={() => {}}
|
|
208
|
-
/>
|
|
209
|
-
</List>
|
|
210
|
-
</DemoProvider>
|
|
211
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { withLocales } from 'twake-i18n'
|
|
2
|
-
|
|
3
|
-
import en from '../locales/en.json'
|
|
4
|
-
import fr from '../locales/fr.json'
|
|
5
|
-
import ru from '../locales/ru.json'
|
|
6
|
-
import vi from '../locales/vi.json'
|
|
7
|
-
|
|
8
|
-
export const locales = {
|
|
9
|
-
en,
|
|
10
|
-
fr,
|
|
11
|
-
ru,
|
|
12
|
-
vi
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default withLocales(locales)
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"common": {
|
|
3
|
-
"day": "%{smart_count} day |||| %{smart_count} days"
|
|
4
|
-
},
|
|
5
|
-
"ListItem": {
|
|
6
|
-
"attributes": {
|
|
7
|
-
"birthday": "Birthday",
|
|
8
|
-
"birthcity": "Birth city",
|
|
9
|
-
"address": "Address",
|
|
10
|
-
"email": "Email address",
|
|
11
|
-
"phone": "Phone number",
|
|
12
|
-
"company": "Company",
|
|
13
|
-
"jobTitle": "Job title",
|
|
14
|
-
"metadata": {
|
|
15
|
-
"datetime": "Added on",
|
|
16
|
-
"issueDate": "Delivered on",
|
|
17
|
-
"expirationDate": "Expiration date",
|
|
18
|
-
"referencedDate": "Referenced date",
|
|
19
|
-
"shootingDate": "Shooting date",
|
|
20
|
-
"obtentionDate": "Date obtained",
|
|
21
|
-
"date": "Document date",
|
|
22
|
-
"country": "Country of delivery",
|
|
23
|
-
"refTaxIncome": "Reference tax income",
|
|
24
|
-
"contractType": "Contract type",
|
|
25
|
-
"noticePeriod": "Expiration alert",
|
|
26
|
-
"cafFileNumber": "CAF file number",
|
|
27
|
-
"vinNumber": "Vehicle registration number (VIN)",
|
|
28
|
-
"cardNumber": "National ID card number",
|
|
29
|
-
"ibanNumber": "IBAN number",
|
|
30
|
-
"bicNumber": "BIC number",
|
|
31
|
-
"passportNumber": "Passport number",
|
|
32
|
-
"netSocialAmount": "Net social amount",
|
|
33
|
-
"vehicle": {
|
|
34
|
-
"licenseNumber": "Vehicle registration number",
|
|
35
|
-
"confidentialNumber": "Confidential vehicle registration code"
|
|
36
|
-
},
|
|
37
|
-
"number": {
|
|
38
|
-
"pay_sheet": "Gross remuneration",
|
|
39
|
-
"tax_return": "Reference tax number",
|
|
40
|
-
"tax_notice": "Reference tax number",
|
|
41
|
-
"real_estate_tax": "Reference tax number",
|
|
42
|
-
"tax_timetable": "Reference tax number",
|
|
43
|
-
"fine": "Amount of the fine",
|
|
44
|
-
"fidelity_card": "Card number",
|
|
45
|
-
"driver_license": "License number",
|
|
46
|
-
"caf": "CAF file number",
|
|
47
|
-
"payment_proof_family_allowance": "CAF file number",
|
|
48
|
-
"vehicle_registration": "Vehicle registration number (VIN)",
|
|
49
|
-
"national_id_card": "National ID card number",
|
|
50
|
-
"bank_details": "IBAN number",
|
|
51
|
-
"passport": "Passport number",
|
|
52
|
-
"residence_permit": "License number"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"file": {
|
|
57
|
-
"page": {
|
|
58
|
-
"back": "Back side",
|
|
59
|
-
"front": "Front side"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"snackbar": {
|
|
63
|
-
"copyToClipboard": {
|
|
64
|
-
"success": "Copied to clipboard",
|
|
65
|
-
"error": "Cannot copy to clipboard"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"renameModal": {
|
|
69
|
-
"title": "Rename",
|
|
70
|
-
"content": "You are about to change the file extension. Do you want to continue?",
|
|
71
|
-
"cancel": "Cancel",
|
|
72
|
-
"submit": "Continue"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"common": {
|
|
3
|
-
"day": "%{smart_count} jour |||| %{smart_count} jours"
|
|
4
|
-
},
|
|
5
|
-
"ListItem": {
|
|
6
|
-
"attributes": {
|
|
7
|
-
"birthday": "Date de naissance",
|
|
8
|
-
"birthcity": "Lieu de naissance",
|
|
9
|
-
"address": "Adresse",
|
|
10
|
-
"email": "Adresse e-mail",
|
|
11
|
-
"phone": "Numéro de téléphone",
|
|
12
|
-
"company": "Entreprise",
|
|
13
|
-
"jobTitle": "Fonction",
|
|
14
|
-
"metadata": {
|
|
15
|
-
"datetime": "Ajouté le",
|
|
16
|
-
"issueDate": "Délivré le",
|
|
17
|
-
"expirationDate": "Date d'expiration",
|
|
18
|
-
"referencedDate": "Date de référence",
|
|
19
|
-
"shootingDate": "Date de prise de vue",
|
|
20
|
-
"obtentionDate": "Date d'obtention",
|
|
21
|
-
"date": "Date du document",
|
|
22
|
-
"country": "Pays de délivrance",
|
|
23
|
-
"refTaxIncome": "Revenu fiscal de référence",
|
|
24
|
-
"contractType": "Type de contrat",
|
|
25
|
-
"noticePeriod": "Alerte d’expiration",
|
|
26
|
-
"cafFileNumber": "Numéro de dossier CAF",
|
|
27
|
-
"vinNumber": "Numéro de la carte grise (VIN)",
|
|
28
|
-
"cardNumber": "Numéro de la carte d'identité",
|
|
29
|
-
"ibanNumber": "Numéro d'IBAN",
|
|
30
|
-
"bicNumber": "Numéro BIC",
|
|
31
|
-
"passportNumber": "Numéro du passeport",
|
|
32
|
-
"netSocialAmount": "Montant net social",
|
|
33
|
-
"vehicle": {
|
|
34
|
-
"licenseNumber": "Plaque d'immatriculation",
|
|
35
|
-
"confidentialNumber": "Code confidentiel de la carte grise"
|
|
36
|
-
},
|
|
37
|
-
"number": {
|
|
38
|
-
"pay_sheet": "Rémunération brute",
|
|
39
|
-
"tax_return": "Numéro fiscal de référence",
|
|
40
|
-
"tax_notice": "Numéro fiscal de référence",
|
|
41
|
-
"real_estate_tax": "Numéro fiscal de référence",
|
|
42
|
-
"tax_timetable": "Numéro fiscal de référence",
|
|
43
|
-
"fine": "Montant de l'amende",
|
|
44
|
-
"fidelity_card": "Numéro de la carte",
|
|
45
|
-
"driver_license": "Numéro du permis",
|
|
46
|
-
"caf": "Numéro de dossier CAF",
|
|
47
|
-
"payment_proof_family_allowance": "Numéro de dossier CAF",
|
|
48
|
-
"vehicle_registration": "Numéro de la carte grise (VIN)",
|
|
49
|
-
"national_id_card": "Numéro de la carte d'identité",
|
|
50
|
-
"bank_details": "Numéro d'IBAN",
|
|
51
|
-
"passport": "Numéro du passeport",
|
|
52
|
-
"residence_permit": "Numéro du permis"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"file": {
|
|
57
|
-
"page": {
|
|
58
|
-
"back": "Face arrière",
|
|
59
|
-
"front": "Face avant"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"snackbar": {
|
|
63
|
-
"copyToClipboard": {
|
|
64
|
-
"success": "Copié dans le presse-papier",
|
|
65
|
-
"error": "Impossible de copier dans le presse-papier"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"renameModal": {
|
|
69
|
-
"title": "Renommer",
|
|
70
|
-
"content": "Vous êtes sur le point de changer l'extension du fichier. Voulez-vous continuer ?",
|
|
71
|
-
"cancel": "Annuler",
|
|
72
|
-
"submit": "Continuer"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"common": {
|
|
3
|
-
"day": "%{smart_count} день |||| %{smart_count} дней"
|
|
4
|
-
},
|
|
5
|
-
"ListItem": {
|
|
6
|
-
"attributes": {
|
|
7
|
-
"birthday": "День рождения",
|
|
8
|
-
"birthcity": "Город рождения",
|
|
9
|
-
"address": "Адрес",
|
|
10
|
-
"email": "Адрес электронной почты",
|
|
11
|
-
"phone": "Номер телефона",
|
|
12
|
-
"company": "Компания",
|
|
13
|
-
"jobTitle": "Должность",
|
|
14
|
-
"metadata": {
|
|
15
|
-
"datetime": "Добавлено",
|
|
16
|
-
"issueDate": "Выдано",
|
|
17
|
-
"expirationDate": "Срок истечения",
|
|
18
|
-
"referencedDate": "Дата ссылки",
|
|
19
|
-
"shootingDate": "Дата съемки",
|
|
20
|
-
"obtentionDate": "Дата получения",
|
|
21
|
-
"date": "Дата документа",
|
|
22
|
-
"country": "Страна выдачи",
|
|
23
|
-
"refTaxIncome": "Референсный налоговый доход",
|
|
24
|
-
"contractType": "Тип контракта",
|
|
25
|
-
"noticePeriod": "Предупреждение об истечении",
|
|
26
|
-
"cafFileNumber": "Номер файла CAF",
|
|
27
|
-
"vinNumber": "Регистрационный номер транспортного средства (VIN)",
|
|
28
|
-
"cardNumber": "Номер удостоверения личности",
|
|
29
|
-
"ibanNumber": "Номер IBAN",
|
|
30
|
-
"bicNumber": "Номер BIC",
|
|
31
|
-
"passportNumber": "Номер паспорта",
|
|
32
|
-
"netSocialAmount": "Чистая социальная сумма",
|
|
33
|
-
"vehicle": {
|
|
34
|
-
"licenseNumber": "Регистрационный номер транспортного средства",
|
|
35
|
-
"confidentialNumber": "Конфиденциальный код регистрации транспортного средства"
|
|
36
|
-
},
|
|
37
|
-
"number": {
|
|
38
|
-
"pay_sheet": "Валовое вознаграждение",
|
|
39
|
-
"tax_return": "Референсный налоговый номер",
|
|
40
|
-
"tax_notice": "Референсный налоговый номер",
|
|
41
|
-
"real_estate_tax": "Референсный налоговый номер",
|
|
42
|
-
"tax_timetable": "Референсный налоговый номер",
|
|
43
|
-
"fine": "Размер штрафа",
|
|
44
|
-
"fidelity_card": "Номер карты",
|
|
45
|
-
"driver_license": "Номер лицензии",
|
|
46
|
-
"caf": "Номер файла CAF",
|
|
47
|
-
"payment_proof_family_allowance": "Номер файла CAF",
|
|
48
|
-
"vehicle_registration": "Регистрационный номер транспортного средства (VIN)",
|
|
49
|
-
"national_id_card": "Номер удостоверения личности",
|
|
50
|
-
"bank_details": "Номер IBAN",
|
|
51
|
-
"passport": "Номер паспорта",
|
|
52
|
-
"residence_permit": "Номер лицензии"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"file": {
|
|
57
|
-
"page": {
|
|
58
|
-
"back": "Обратная сторона",
|
|
59
|
-
"front": "Лицевая сторона"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"snackbar": {
|
|
63
|
-
"copyToClipboard": {
|
|
64
|
-
"success": "Скопировано в буфер обмена",
|
|
65
|
-
"error": "Не удается скопировать в буфер обмена"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"renameModal": {
|
|
69
|
-
"title": "Переименовать",
|
|
70
|
-
"content": "Вы собираетесь изменить расширение файла. Хотите продолжить?",
|
|
71
|
-
"cancel": "Отменить",
|
|
72
|
-
"submit": "Продолжить"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"common": {
|
|
3
|
-
"day": "%{smart_count} ngày |||| %{smart_count} ngày"
|
|
4
|
-
},
|
|
5
|
-
"ListItem": {
|
|
6
|
-
"attributes": {
|
|
7
|
-
"birthday": "Sinh nhật",
|
|
8
|
-
"birthcity": "Thành phố sinh",
|
|
9
|
-
"address": "Địa chỉ",
|
|
10
|
-
"email": "Địa chỉ email",
|
|
11
|
-
"phone": "Số điện thoại",
|
|
12
|
-
"company": "Công ty",
|
|
13
|
-
"jobTitle": "Chức vụ",
|
|
14
|
-
"metadata": {
|
|
15
|
-
"datetime": "Được thêm vào",
|
|
16
|
-
"issueDate": "Được giao vào",
|
|
17
|
-
"expirationDate": "Ngày hết hạn",
|
|
18
|
-
"referencedDate": "Ngày tham chiếu",
|
|
19
|
-
"shootingDate": "Ngày chụp",
|
|
20
|
-
"obtentionDate": "Ngày có được",
|
|
21
|
-
"date": "Ngày tài liệu",
|
|
22
|
-
"country": "Quốc gia phát hành",
|
|
23
|
-
"refTaxIncome": "Thu nhập thuế tham chiếu",
|
|
24
|
-
"contractType": "Loại hợp đồng",
|
|
25
|
-
"noticePeriod": "Cảnh báo hết hạn",
|
|
26
|
-
"cafFileNumber": "Số hồ sơ CAF",
|
|
27
|
-
"vinNumber": "Số đăng ký xe (VIN)",
|
|
28
|
-
"cardNumber": "Số thẻ căn cước",
|
|
29
|
-
"ibanNumber": "Số IBAN",
|
|
30
|
-
"bicNumber": "Số BIC",
|
|
31
|
-
"passportNumber": "Số hộ chiếu",
|
|
32
|
-
"netSocialAmount": "Số tiền xã hội ròng",
|
|
33
|
-
"vehicle": {
|
|
34
|
-
"licenseNumber": "Số đăng ký xe",
|
|
35
|
-
"confidentialNumber": "Mã đăng ký xe bí mật"
|
|
36
|
-
},
|
|
37
|
-
"number": {
|
|
38
|
-
"pay_sheet": "Thù lao gốc",
|
|
39
|
-
"tax_return": "Số thuế tham chiếu",
|
|
40
|
-
"tax_notice": "Số thuế tham chiếu",
|
|
41
|
-
"real_estate_tax": "Số thuế tham chiếu",
|
|
42
|
-
"tax_timetable": "Số thuế tham chiếu",
|
|
43
|
-
"fine": "Số tiền phạt",
|
|
44
|
-
"fidelity_card": "Số thẻ",
|
|
45
|
-
"driver_license": "Số giấy phép",
|
|
46
|
-
"caf": "Số hồ sơ CAF",
|
|
47
|
-
"payment_proof_family_allowance": "Số hồ sơ CAF",
|
|
48
|
-
"vehicle_registration": "Số đăng ký xe (VIN)",
|
|
49
|
-
"national_id_card": "Số thẻ căn cước",
|
|
50
|
-
"bank_details": "Số IBAN",
|
|
51
|
-
"passport": "Số hộ chiếu",
|
|
52
|
-
"residence_permit": "Số giấy phép"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"file": {
|
|
57
|
-
"page": {
|
|
58
|
-
"back": "Mặt sau",
|
|
59
|
-
"front": "Mặt trước"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"snackbar": {
|
|
63
|
-
"copyToClipboard": {
|
|
64
|
-
"success": "Đã sao chép vào clipboard",
|
|
65
|
-
"error": "Không thể sao chép vào clipboard"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"renameModal": {
|
|
69
|
-
"title": "Đổi tên",
|
|
70
|
-
"content": "Bạn sắp thay đổi phần mở rộng tập tin. Bạn có muốn tiếp tục không?",
|
|
71
|
-
"cancel": "Hủy",
|
|
72
|
-
"submit": "Tiếp tục"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
```jsx
|
|
2
|
-
import DemoProvider from 'cozy-ui/docs/components/DemoProvider'
|
|
3
|
-
import QualificationGrid from 'cozy-ui/transpiled/react/QualificationGrid'
|
|
4
|
-
import Variants from 'cozy-ui/docs/components/Variants'
|
|
5
|
-
|
|
6
|
-
const initialVariants = [{ noUndefined: false, noOthers: false, noHealth: false }]
|
|
7
|
-
initialState = { selectedQualification: undefined }
|
|
8
|
-
|
|
9
|
-
;
|
|
10
|
-
|
|
11
|
-
<DemoProvider>
|
|
12
|
-
<Variants initialVariants={initialVariants} screenshotAllVariants>
|
|
13
|
-
{variant => (
|
|
14
|
-
<>
|
|
15
|
-
<div className="u-mb-1">Selected qualification: {state.selectedQualification}</div>
|
|
16
|
-
<QualificationGrid
|
|
17
|
-
noUndefined={variant.noUndefined}
|
|
18
|
-
noOthers={variant.noOthers}
|
|
19
|
-
noHealth={variant.noHealth}
|
|
20
|
-
onClick={qualification => setState({ selectedQualification: qualification })}
|
|
21
|
-
/>
|
|
22
|
-
</>
|
|
23
|
-
)}
|
|
24
|
-
</Variants>
|
|
25
|
-
</DemoProvider>
|
|
26
|
-
```
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Bank,
|
|
3
|
-
Bill,
|
|
4
|
-
Car,
|
|
5
|
-
Chess,
|
|
6
|
-
Dots,
|
|
7
|
-
Heart,
|
|
8
|
-
Home,
|
|
9
|
-
People,
|
|
10
|
-
Team,
|
|
11
|
-
Work
|
|
12
|
-
} from '@linagora/twake-icons'
|
|
13
|
-
import PropTypes from 'prop-types'
|
|
14
|
-
import React, { Fragment, useState } from 'react'
|
|
15
|
-
|
|
16
|
-
import Grid from 'cozy-ui/transpiled/react/Grid'
|
|
17
|
-
import { useI18n } from 'twake-i18n'
|
|
18
|
-
|
|
19
|
-
import { getThemesList } from './helpers'
|
|
20
|
-
import QualificationItem from '../QualificationItem'
|
|
21
|
-
import withLocales from './locales/withLocales'
|
|
22
|
-
|
|
23
|
-
const IconByName = {
|
|
24
|
-
people: People,
|
|
25
|
-
team: Team,
|
|
26
|
-
work: Work,
|
|
27
|
-
heart: Heart,
|
|
28
|
-
home: Home,
|
|
29
|
-
car: Car,
|
|
30
|
-
chess: Chess,
|
|
31
|
-
bank: Bank,
|
|
32
|
-
bill: Bill,
|
|
33
|
-
dots: Dots
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
const QualificationGrid = ({ noUndefined, noOthers, noHealth, onClick }) => {
|
|
37
|
-
const themesList = getThemesList(noHealth)
|
|
38
|
-
const { t } = useI18n()
|
|
39
|
-
const [selectedQualification, setSelectedQualification] = useState()
|
|
40
|
-
|
|
41
|
-
const handleClick = theme => {
|
|
42
|
-
onClick(theme?.label)
|
|
43
|
-
setSelectedQualification(theme?.label)
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return (
|
|
47
|
-
<Grid container spacing={1}>
|
|
48
|
-
{!noUndefined && (
|
|
49
|
-
<Grid item xs={3} sm={2}>
|
|
50
|
-
<QualificationItem
|
|
51
|
-
label={t('themes.undefined')}
|
|
52
|
-
isSelected={selectedQualification === undefined}
|
|
53
|
-
onClick={() => handleClick()}
|
|
54
|
-
/>
|
|
55
|
-
</Grid>
|
|
56
|
-
)}
|
|
57
|
-
{themesList.map((theme, index) => (
|
|
58
|
-
<Fragment key={index}>
|
|
59
|
-
{(!noOthers || theme.label !== 'others') && (
|
|
60
|
-
<Grid item xs={3} sm={2}>
|
|
61
|
-
<QualificationItem
|
|
62
|
-
label={t(`themes.${theme.label}`)}
|
|
63
|
-
icon={IconByName[theme.icon]}
|
|
64
|
-
isSelected={theme.label === selectedQualification}
|
|
65
|
-
onClick={() => handleClick(theme)}
|
|
66
|
-
/>
|
|
67
|
-
</Grid>
|
|
68
|
-
)}
|
|
69
|
-
</Fragment>
|
|
70
|
-
))}
|
|
71
|
-
</Grid>
|
|
72
|
-
)
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
QualificationGrid.defaultProps = {
|
|
76
|
-
noUndefined: false,
|
|
77
|
-
noOthers: false,
|
|
78
|
-
noHealth: false,
|
|
79
|
-
onClick: () => {}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
QualificationGrid.propTypes = {
|
|
83
|
-
/** Remove `undefined` theme */
|
|
84
|
-
noUndefined: PropTypes.bool,
|
|
85
|
-
/** Remove `others` theme */
|
|
86
|
-
noOthers: PropTypes.bool,
|
|
87
|
-
/** Remove `health` theme */
|
|
88
|
-
noHealth: PropTypes.bool,
|
|
89
|
-
/** Triggered when an item is clicked */
|
|
90
|
-
onClick: PropTypes.func
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export default withLocales(QualificationGrid)
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"themes": {
|
|
3
|
-
"activity": "Activity",
|
|
4
|
-
"family": "Family",
|
|
5
|
-
"finance": "Finance",
|
|
6
|
-
"health": "Health",
|
|
7
|
-
"home": "Home",
|
|
8
|
-
"identity": "Identity",
|
|
9
|
-
"invoice": "Invoice",
|
|
10
|
-
"others": "Others",
|
|
11
|
-
"transport": "Transport",
|
|
12
|
-
"undefined": "Undefined",
|
|
13
|
-
"work_study": "Work"
|
|
14
|
-
}
|
|
15
|
-
}
|