@plone/volto 19.0.0-alpha.18 → 19.0.0-alpha.19
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 +22 -5
- package/locales/af.json +1 -1
- package/locales/ar.json +1 -1
- package/locales/bg.json +1 -1
- package/locales/bn.json +1 -1
- package/locales/ca/LC_MESSAGES/volto.po +33 -0
- package/locales/ca.json +1 -1
- package/locales/cs.json +1 -1
- package/locales/cy.json +1 -1
- package/locales/da.json +1 -1
- package/locales/de/LC_MESSAGES/volto.po +33 -0
- package/locales/de.json +1 -1
- package/locales/el.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +33 -0
- package/locales/en.json +1 -1
- package/locales/en_AU.json +1 -1
- package/locales/en_GB.json +1 -1
- package/locales/eo.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +33 -0
- package/locales/es.json +1 -1
- package/locales/et.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +33 -0
- package/locales/eu.json +1 -1
- package/locales/fa.json +1 -1
- package/locales/fi/LC_MESSAGES/volto.po +33 -0
- package/locales/fi.json +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +33 -0
- package/locales/fr.json +1 -1
- package/locales/fu.json +1 -1
- package/locales/gl.json +1 -1
- package/locales/he.json +1 -1
- package/locales/hi/LC_MESSAGES/volto.po +33 -0
- package/locales/hi.json +1 -1
- package/locales/hr.json +1 -1
- package/locales/hu.json +1 -1
- package/locales/hy.json +1 -1
- package/locales/id.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +33 -0
- package/locales/it.json +1 -1
- package/locales/ja/LC_MESSAGES/volto.po +33 -0
- package/locales/ja.json +1 -1
- package/locales/ka.json +1 -1
- package/locales/kn.json +1 -1
- package/locales/ko.json +1 -1
- package/locales/lt.json +1 -1
- package/locales/lv.json +1 -1
- package/locales/mi.json +1 -1
- package/locales/mk.json +1 -1
- package/locales/my.json +1 -1
- package/locales/nb_NO.json +1 -1
- package/locales/nl/LC_MESSAGES/volto.po +33 -0
- package/locales/nl.json +1 -1
- package/locales/nn.json +1 -1
- package/locales/pl.json +1 -1
- package/locales/pt/LC_MESSAGES/volto.po +33 -0
- package/locales/pt.json +1 -1
- package/locales/pt_BR/LC_MESSAGES/volto.po +33 -0
- package/locales/pt_BR.json +1 -1
- package/locales/rm.json +1 -1
- package/locales/ro/LC_MESSAGES/volto.po +33 -0
- package/locales/ro.json +1 -1
- package/locales/ru/LC_MESSAGES/volto.po +33 -0
- package/locales/ru.json +1 -1
- package/locales/sk.json +1 -1
- package/locales/sl.json +1 -1
- package/locales/sm.json +1 -1
- package/locales/sq.json +1 -1
- package/locales/sr.json +1 -1
- package/locales/sr@cyrl.json +1 -1
- package/locales/sr@latn.json +1 -1
- package/locales/sv.json +1 -1
- package/locales/ta.json +1 -1
- package/locales/te.json +1 -1
- package/locales/th.json +1 -1
- package/locales/to.json +1 -1
- package/locales/tr.json +1 -1
- package/locales/uk.json +1 -1
- package/locales/vi.json +1 -1
- package/locales/volto.pot +34 -1
- package/locales/zh_CN/LC_MESSAGES/volto.po +33 -0
- package/locales/zh_CN.json +1 -1
- package/locales/zh_Hant.json +1 -1
- package/locales/zh_Hant_HK.json +1 -1
- package/package.json +5 -5
- package/src/components/manage/BlockChooser/BlockChooser.jsx +1 -0
- package/src/components/manage/Contents/Contents.jsx +685 -671
- package/src/components/manage/Contents/DropZoneContent.jsx +323 -0
- package/src/components/manage/Form/ModalForm.jsx +12 -10
- package/src/components/manage/Form/ModalForm.test.jsx +26 -0
- package/src/components/manage/Sidebar/ObjectBrowser.jsx +3 -0
- package/src/components/manage/Sidebar/ObjectBrowserBody.jsx +13 -1
- package/src/components/manage/Widgets/ObjectBrowserWidget.jsx +5 -0
- package/src/components/manage/Widgets/QueryWidget.jsx +136 -9
- package/src/components/theme/Unauthorized/Unauthorized.jsx +5 -2
- package/src/components/theme/View/View.jsx +7 -0
- package/src/reducers/querystring/querystring.js +8 -1
- package/theme/themes/pastanaga/extras/contents.less +63 -0
- package/theme/themes/pastanaga/extras/widgets.less +34 -0
- package/types/components/manage/Contents/DropZoneContent.d.ts +2 -0
- package/types/components/manage/Controlpanels/Relations/RelationsMatrix.d.ts +1 -1
- package/types/components/manage/Multilingual/ManageTranslations.d.ts +1 -1
- package/types/components/manage/Sidebar/ObjectBrowser.d.ts +1 -1
- package/types/components/manage/Widgets/ImageWidget.d.ts +1 -1
- package/types/components/manage/Widgets/InternalUrlWidget.d.ts +1 -1
- package/types/components/manage/Widgets/ObjectBrowserWidget.d.ts +2 -0
- package/types/components/manage/Widgets/QueryWidget.d.ts +5 -2
- package/types/components/manage/Widgets/UrlWidget.d.ts +1 -1
- package/types/components/manage/Widgets/index.d.ts +3 -3
- package/types/components/theme/Unauthorized/Unauthorized.d.ts +2 -2
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Contents component.
|
|
3
|
-
* @module components/manage/Contents/Contents
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
1
|
import React, { Component } from 'react';
|
|
7
2
|
import PropTypes from 'prop-types';
|
|
8
3
|
import { connect } from 'react-redux';
|
|
@@ -90,6 +85,7 @@ import sortUpSVG from '@plone/volto/icons/sort-up.svg';
|
|
|
90
85
|
import downKeySVG from '@plone/volto/icons/down-key.svg';
|
|
91
86
|
import moreSVG from '@plone/volto/icons/more.svg';
|
|
92
87
|
import clearSVG from '@plone/volto/icons/clear.svg';
|
|
88
|
+
import DropzoneContent from './DropZoneContent';
|
|
93
89
|
|
|
94
90
|
const messages = defineMessages({
|
|
95
91
|
back: {
|
|
@@ -1153,699 +1149,717 @@ class Contents extends Component {
|
|
|
1153
1149
|
{this.props.intl.formatMessage(messages.loading)}
|
|
1154
1150
|
</Loader>
|
|
1155
1151
|
</Dimmer>
|
|
1156
|
-
|
|
1157
1152
|
<Helmet
|
|
1158
1153
|
title={this.props.intl.formatMessage(messages.contents)}
|
|
1159
1154
|
/>
|
|
1160
|
-
<
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
{this.state.showWorkflow && (
|
|
1207
|
-
<ContentsWorkflowModal
|
|
1208
|
-
open={this.state.showWorkflow}
|
|
1209
|
-
onCancel={this.onWorkflowCancel}
|
|
1210
|
-
onOk={this.onWorkflowOk}
|
|
1155
|
+
<DropzoneContent
|
|
1156
|
+
onOk={this.onUploadOk}
|
|
1157
|
+
onCancel={this.onUploadCancel}
|
|
1158
|
+
pathname={getBaseUrl(this.props.pathname)}
|
|
1159
|
+
>
|
|
1160
|
+
<div className="container">
|
|
1161
|
+
<article id="content">
|
|
1162
|
+
<ContentsDeleteModal
|
|
1163
|
+
open={this.state.showDelete}
|
|
1164
|
+
onCancel={this.onDeleteCancel}
|
|
1165
|
+
onOk={this.onDeleteOk}
|
|
1166
|
+
items={this.state.items}
|
|
1167
|
+
itemsToDelete={this.state.itemsToDelete}
|
|
1168
|
+
hasMultiplePages={
|
|
1169
|
+
Math.ceil(this.props.total / this.state.pageSize) > 1
|
|
1170
|
+
}
|
|
1171
|
+
/>
|
|
1172
|
+
<ContentsUploadModal
|
|
1173
|
+
open={this.state.showUpload}
|
|
1174
|
+
onCancel={this.onUploadCancel}
|
|
1175
|
+
onOk={this.onUploadOk}
|
|
1176
|
+
pathname={getBaseUrl(this.props.pathname)}
|
|
1177
|
+
/>
|
|
1178
|
+
<ContentsRenameModal
|
|
1179
|
+
open={this.state.showRename}
|
|
1180
|
+
onCancel={this.onRenameCancel}
|
|
1181
|
+
onOk={this.onRenameOk}
|
|
1182
|
+
items={map(this.state.selected, (item) => ({
|
|
1183
|
+
url: item,
|
|
1184
|
+
title: this.getFieldById(item, 'title'),
|
|
1185
|
+
id: this.getFieldById(item, 'id'),
|
|
1186
|
+
}))}
|
|
1187
|
+
/>
|
|
1188
|
+
<ContentsTagsModal
|
|
1189
|
+
open={this.state.showTags}
|
|
1190
|
+
onCancel={this.onTagsCancel}
|
|
1191
|
+
onOk={this.onTagsOk}
|
|
1192
|
+
items={map(this.state.selected, (item) => ({
|
|
1193
|
+
url: item,
|
|
1194
|
+
subjects: this.getFieldById(item, 'Subject'),
|
|
1195
|
+
}))}
|
|
1196
|
+
/>
|
|
1197
|
+
<ContentsPropertiesModal
|
|
1198
|
+
open={this.state.showProperties}
|
|
1199
|
+
onCancel={this.onPropertiesCancel}
|
|
1200
|
+
onOk={this.onPropertiesOk}
|
|
1211
1201
|
items={this.state.selected}
|
|
1202
|
+
values={map(this.state.selected, (id) =>
|
|
1203
|
+
find(this.state.items, { '@id': id }),
|
|
1204
|
+
).filter((item) => item)}
|
|
1212
1205
|
/>
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
name={uploadSVG}
|
|
1232
|
-
color="#007eb1"
|
|
1233
|
-
size="24px"
|
|
1206
|
+
{this.state.showWorkflow && (
|
|
1207
|
+
<ContentsWorkflowModal
|
|
1208
|
+
open={this.state.showWorkflow}
|
|
1209
|
+
onCancel={this.onWorkflowCancel}
|
|
1210
|
+
onOk={this.onWorkflowOk}
|
|
1211
|
+
items={this.state.selected}
|
|
1212
|
+
/>
|
|
1213
|
+
)}
|
|
1214
|
+
<section id="content-core">
|
|
1215
|
+
<Segment.Group raised>
|
|
1216
|
+
<Menu secondary attached className="top-menu">
|
|
1217
|
+
<Menu.Menu className="top-menu-menu">
|
|
1218
|
+
<Popup
|
|
1219
|
+
trigger={
|
|
1220
|
+
<Menu.Item
|
|
1221
|
+
icon
|
|
1222
|
+
as={Button}
|
|
1223
|
+
onClick={this.upload}
|
|
1234
1224
|
className="upload"
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
)}
|
|
1332
|
-
>
|
|
1333
|
-
<Icon
|
|
1334
|
-
name={propertiesSVG}
|
|
1335
|
-
color={selected ? '#826a6a' : 'grey'}
|
|
1336
|
-
size="24px"
|
|
1337
|
-
className="properties"
|
|
1338
|
-
/>
|
|
1339
|
-
</Menu.Item>
|
|
1340
|
-
}
|
|
1341
|
-
position="top center"
|
|
1342
|
-
content={this.props.intl.formatMessage(
|
|
1343
|
-
messages.properties,
|
|
1344
|
-
)}
|
|
1345
|
-
size="mini"
|
|
1346
|
-
/>
|
|
1347
|
-
</Menu.Menu>
|
|
1348
|
-
<Menu.Menu className="top-menu-menu">
|
|
1349
|
-
<Popup
|
|
1350
|
-
trigger={
|
|
1351
|
-
<Menu.Item
|
|
1352
|
-
icon
|
|
1353
|
-
as={Button}
|
|
1354
|
-
onClick={this.cut}
|
|
1355
|
-
disabled={!selected}
|
|
1356
|
-
aria-label={this.props.intl.formatMessage(
|
|
1357
|
-
messages.cut,
|
|
1358
|
-
)}
|
|
1359
|
-
>
|
|
1360
|
-
<Icon
|
|
1361
|
-
name={cutSVG}
|
|
1362
|
-
color={selected ? '#826a6a' : 'grey'}
|
|
1363
|
-
size="24px"
|
|
1364
|
-
className="cut"
|
|
1365
|
-
/>
|
|
1366
|
-
</Menu.Item>
|
|
1367
|
-
}
|
|
1368
|
-
position="top center"
|
|
1369
|
-
content={this.props.intl.formatMessage(
|
|
1370
|
-
messages.cut,
|
|
1371
|
-
)}
|
|
1372
|
-
size="mini"
|
|
1373
|
-
/>
|
|
1374
|
-
<Popup
|
|
1375
|
-
trigger={
|
|
1376
|
-
<Menu.Item
|
|
1377
|
-
icon
|
|
1378
|
-
as={Button}
|
|
1379
|
-
onClick={this.copy}
|
|
1380
|
-
disabled={!selected}
|
|
1381
|
-
aria-label={this.props.intl.formatMessage(
|
|
1382
|
-
messages.copy,
|
|
1383
|
-
)}
|
|
1384
|
-
>
|
|
1385
|
-
<Icon
|
|
1386
|
-
name={copySVG}
|
|
1387
|
-
color={selected ? '#826a6a' : 'grey'}
|
|
1388
|
-
size="24px"
|
|
1389
|
-
className="copy"
|
|
1390
|
-
/>
|
|
1391
|
-
</Menu.Item>
|
|
1392
|
-
}
|
|
1393
|
-
position="top center"
|
|
1394
|
-
content={this.props.intl.formatMessage(
|
|
1395
|
-
messages.copy,
|
|
1396
|
-
)}
|
|
1397
|
-
size="mini"
|
|
1398
|
-
/>
|
|
1399
|
-
|
|
1400
|
-
<Popup
|
|
1401
|
-
trigger={
|
|
1402
|
-
<Menu.Item
|
|
1403
|
-
icon
|
|
1404
|
-
as={Button}
|
|
1405
|
-
onClick={this.paste}
|
|
1406
|
-
disabled={!this.props.action}
|
|
1407
|
-
aria-label={this.props.intl.formatMessage(
|
|
1408
|
-
messages.paste,
|
|
1409
|
-
)}
|
|
1410
|
-
>
|
|
1411
|
-
<Icon
|
|
1412
|
-
name={pasteSVG}
|
|
1413
|
-
color={selected ? '#826a6a' : 'grey'}
|
|
1414
|
-
size="24px"
|
|
1415
|
-
className="paste"
|
|
1416
|
-
/>
|
|
1417
|
-
</Menu.Item>
|
|
1418
|
-
}
|
|
1419
|
-
position="top center"
|
|
1420
|
-
content={this.props.intl.formatMessage(
|
|
1421
|
-
messages.paste,
|
|
1422
|
-
)}
|
|
1423
|
-
size="mini"
|
|
1424
|
-
/>
|
|
1225
|
+
aria-controls="contents-table-wrapper"
|
|
1226
|
+
aria-label={this.props.intl.formatMessage(
|
|
1227
|
+
messages.filter,
|
|
1228
|
+
)}
|
|
1229
|
+
>
|
|
1230
|
+
<Icon
|
|
1231
|
+
name={uploadSVG}
|
|
1232
|
+
color="#007eb1"
|
|
1233
|
+
size="24px"
|
|
1234
|
+
className="upload"
|
|
1235
|
+
/>
|
|
1236
|
+
</Menu.Item>
|
|
1237
|
+
}
|
|
1238
|
+
position="top center"
|
|
1239
|
+
content={this.props.intl.formatMessage(
|
|
1240
|
+
messages.upload,
|
|
1241
|
+
)}
|
|
1242
|
+
size="mini"
|
|
1243
|
+
/>
|
|
1244
|
+
</Menu.Menu>
|
|
1245
|
+
<Menu.Menu className="top-menu-menu">
|
|
1246
|
+
<Popup
|
|
1247
|
+
trigger={
|
|
1248
|
+
<Menu.Item
|
|
1249
|
+
icon
|
|
1250
|
+
as={Button}
|
|
1251
|
+
onClick={this.rename}
|
|
1252
|
+
disabled={!selected}
|
|
1253
|
+
aria-label={this.props.intl.formatMessage(
|
|
1254
|
+
messages.rename,
|
|
1255
|
+
)}
|
|
1256
|
+
>
|
|
1257
|
+
<Icon
|
|
1258
|
+
name={renameSVG}
|
|
1259
|
+
color={selected ? '#826a6a' : 'grey'}
|
|
1260
|
+
size="24px"
|
|
1261
|
+
className="rename"
|
|
1262
|
+
/>
|
|
1263
|
+
</Menu.Item>
|
|
1264
|
+
}
|
|
1265
|
+
position="top center"
|
|
1266
|
+
content={this.props.intl.formatMessage(
|
|
1267
|
+
messages.rename,
|
|
1268
|
+
)}
|
|
1269
|
+
size="mini"
|
|
1270
|
+
/>
|
|
1271
|
+
<Popup
|
|
1272
|
+
trigger={
|
|
1273
|
+
<Menu.Item
|
|
1274
|
+
icon
|
|
1275
|
+
as={Button}
|
|
1276
|
+
onClick={this.workflow}
|
|
1277
|
+
disabled={!selected}
|
|
1278
|
+
aria-label={this.props.intl.formatMessage(
|
|
1279
|
+
messages.state,
|
|
1280
|
+
)}
|
|
1281
|
+
>
|
|
1282
|
+
<Icon
|
|
1283
|
+
name={semaphoreSVG}
|
|
1284
|
+
color={selected ? '#826a6a' : 'grey'}
|
|
1285
|
+
size="24px"
|
|
1286
|
+
className="semaphore"
|
|
1287
|
+
/>
|
|
1288
|
+
</Menu.Item>
|
|
1289
|
+
}
|
|
1290
|
+
position="top center"
|
|
1291
|
+
content={this.props.intl.formatMessage(
|
|
1292
|
+
messages.state,
|
|
1293
|
+
)}
|
|
1294
|
+
size="mini"
|
|
1295
|
+
/>
|
|
1296
|
+
<Popup
|
|
1297
|
+
trigger={
|
|
1298
|
+
<Menu.Item
|
|
1299
|
+
icon
|
|
1300
|
+
as={Button}
|
|
1301
|
+
onClick={this.tags}
|
|
1302
|
+
disabled={!selected}
|
|
1303
|
+
aria-label={this.props.intl.formatMessage(
|
|
1304
|
+
messages.tags,
|
|
1305
|
+
)}
|
|
1306
|
+
>
|
|
1307
|
+
<Icon
|
|
1308
|
+
name={tagSVG}
|
|
1309
|
+
color={selected ? '#826a6a' : 'grey'}
|
|
1310
|
+
size="24px"
|
|
1311
|
+
className="tag"
|
|
1312
|
+
/>
|
|
1313
|
+
</Menu.Item>
|
|
1314
|
+
}
|
|
1315
|
+
position="top center"
|
|
1316
|
+
content={this.props.intl.formatMessage(
|
|
1317
|
+
messages.tags,
|
|
1318
|
+
)}
|
|
1319
|
+
size="mini"
|
|
1320
|
+
/>
|
|
1425
1321
|
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
)}
|
|
1449
|
-
size="mini"
|
|
1450
|
-
/>
|
|
1451
|
-
</Menu.Menu>
|
|
1452
|
-
<Menu.Menu
|
|
1453
|
-
position="right"
|
|
1454
|
-
className="top-menu-searchbox"
|
|
1455
|
-
>
|
|
1456
|
-
<div className="ui right aligned category search item">
|
|
1457
|
-
<Input
|
|
1458
|
-
type="text"
|
|
1459
|
-
transparent
|
|
1460
|
-
placeholder={this.props.intl.formatMessage(
|
|
1461
|
-
messages.filter,
|
|
1322
|
+
<Popup
|
|
1323
|
+
trigger={
|
|
1324
|
+
<Menu.Item
|
|
1325
|
+
icon
|
|
1326
|
+
as={Button}
|
|
1327
|
+
onClick={this.properties}
|
|
1328
|
+
disabled={!selected}
|
|
1329
|
+
aria-label={this.props.intl.formatMessage(
|
|
1330
|
+
messages.properties,
|
|
1331
|
+
)}
|
|
1332
|
+
>
|
|
1333
|
+
<Icon
|
|
1334
|
+
name={propertiesSVG}
|
|
1335
|
+
color={selected ? '#826a6a' : 'grey'}
|
|
1336
|
+
size="24px"
|
|
1337
|
+
className="properties"
|
|
1338
|
+
/>
|
|
1339
|
+
</Menu.Item>
|
|
1340
|
+
}
|
|
1341
|
+
position="top center"
|
|
1342
|
+
content={this.props.intl.formatMessage(
|
|
1343
|
+
messages.properties,
|
|
1462
1344
|
)}
|
|
1463
|
-
size="
|
|
1464
|
-
value={this.state.filter}
|
|
1465
|
-
onChange={this.onChangeFilter}
|
|
1345
|
+
size="mini"
|
|
1466
1346
|
/>
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1347
|
+
</Menu.Menu>
|
|
1348
|
+
<Menu.Menu className="top-menu-menu">
|
|
1349
|
+
<Popup
|
|
1350
|
+
trigger={
|
|
1351
|
+
<Menu.Item
|
|
1352
|
+
icon
|
|
1353
|
+
as={Button}
|
|
1354
|
+
onClick={this.cut}
|
|
1355
|
+
disabled={!selected}
|
|
1356
|
+
aria-label={this.props.intl.formatMessage(
|
|
1357
|
+
messages.cut,
|
|
1358
|
+
)}
|
|
1359
|
+
>
|
|
1360
|
+
<Icon
|
|
1361
|
+
name={cutSVG}
|
|
1362
|
+
color={selected ? '#826a6a' : 'grey'}
|
|
1363
|
+
size="24px"
|
|
1364
|
+
className="cut"
|
|
1365
|
+
/>
|
|
1366
|
+
</Menu.Item>
|
|
1367
|
+
}
|
|
1368
|
+
position="top center"
|
|
1369
|
+
content={this.props.intl.formatMessage(
|
|
1370
|
+
messages.cut,
|
|
1371
|
+
)}
|
|
1372
|
+
size="mini"
|
|
1487
1373
|
/>
|
|
1488
|
-
<
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1374
|
+
<Popup
|
|
1375
|
+
trigger={
|
|
1376
|
+
<Menu.Item
|
|
1377
|
+
icon
|
|
1378
|
+
as={Button}
|
|
1379
|
+
onClick={this.copy}
|
|
1380
|
+
disabled={!selected}
|
|
1381
|
+
aria-label={this.props.intl.formatMessage(
|
|
1382
|
+
messages.copy,
|
|
1383
|
+
)}
|
|
1384
|
+
>
|
|
1385
|
+
<Icon
|
|
1386
|
+
name={copySVG}
|
|
1387
|
+
color={selected ? '#826a6a' : 'grey'}
|
|
1388
|
+
size="24px"
|
|
1389
|
+
className="copy"
|
|
1390
|
+
/>
|
|
1391
|
+
</Menu.Item>
|
|
1392
|
+
}
|
|
1393
|
+
position="top center"
|
|
1508
1394
|
content={this.props.intl.formatMessage(
|
|
1509
|
-
messages.
|
|
1395
|
+
messages.copy,
|
|
1510
1396
|
)}
|
|
1397
|
+
size="mini"
|
|
1511
1398
|
/>
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
{
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
<Icon
|
|
1536
|
-
name={checkboxUncheckedSVG}
|
|
1537
|
-
className={
|
|
1538
|
-
this.state.index.values[index].label
|
|
1539
|
-
}
|
|
1540
|
-
size="24px"
|
|
1541
|
-
/>
|
|
1542
|
-
)}
|
|
1543
|
-
<span>
|
|
1544
|
-
{' '}
|
|
1545
|
-
{this.props.intl.formatMessage({
|
|
1546
|
-
id: this.state.index.values[index]
|
|
1547
|
-
.label,
|
|
1548
|
-
defaultMessage:
|
|
1549
|
-
this.state.index.values[index].label,
|
|
1550
|
-
})}
|
|
1551
|
-
</span>
|
|
1552
|
-
</Dropdown.Item>
|
|
1553
|
-
),
|
|
1399
|
+
|
|
1400
|
+
<Popup
|
|
1401
|
+
trigger={
|
|
1402
|
+
<Menu.Item
|
|
1403
|
+
icon
|
|
1404
|
+
as={Button}
|
|
1405
|
+
onClick={this.paste}
|
|
1406
|
+
disabled={!this.props.action}
|
|
1407
|
+
aria-label={this.props.intl.formatMessage(
|
|
1408
|
+
messages.paste,
|
|
1409
|
+
)}
|
|
1410
|
+
>
|
|
1411
|
+
<Icon
|
|
1412
|
+
name={pasteSVG}
|
|
1413
|
+
color={selected ? '#826a6a' : 'grey'}
|
|
1414
|
+
size="24px"
|
|
1415
|
+
className="paste"
|
|
1416
|
+
/>
|
|
1417
|
+
</Menu.Item>
|
|
1418
|
+
}
|
|
1419
|
+
position="top center"
|
|
1420
|
+
content={this.props.intl.formatMessage(
|
|
1421
|
+
messages.paste,
|
|
1554
1422
|
)}
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1423
|
+
size="mini"
|
|
1424
|
+
/>
|
|
1425
|
+
|
|
1426
|
+
<Popup
|
|
1427
|
+
trigger={
|
|
1428
|
+
<Menu.Item
|
|
1429
|
+
icon
|
|
1430
|
+
as={Button}
|
|
1431
|
+
onClick={this.delete}
|
|
1432
|
+
disabled={!selected}
|
|
1433
|
+
aria-label={this.props.intl.formatMessage(
|
|
1434
|
+
messages.delete,
|
|
1435
|
+
)}
|
|
1436
|
+
>
|
|
1437
|
+
<Icon
|
|
1438
|
+
name={deleteSVG}
|
|
1439
|
+
color={selected ? '#e40166' : 'grey'}
|
|
1440
|
+
size="24px"
|
|
1441
|
+
className="delete"
|
|
1442
|
+
/>
|
|
1443
|
+
</Menu.Item>
|
|
1444
|
+
}
|
|
1445
|
+
position="top center"
|
|
1446
|
+
content={this.props.intl.formatMessage(
|
|
1447
|
+
messages.delete,
|
|
1448
|
+
)}
|
|
1449
|
+
size="mini"
|
|
1450
|
+
/>
|
|
1451
|
+
</Menu.Menu>
|
|
1452
|
+
<Menu.Menu
|
|
1453
|
+
position="right"
|
|
1454
|
+
className="top-menu-searchbox"
|
|
1455
|
+
>
|
|
1456
|
+
<div className="ui right aligned category search item">
|
|
1457
|
+
<Input
|
|
1458
|
+
type="text"
|
|
1459
|
+
transparent
|
|
1460
|
+
placeholder={this.props.intl.formatMessage(
|
|
1461
|
+
messages.filter,
|
|
1462
|
+
)}
|
|
1463
|
+
size="small"
|
|
1464
|
+
value={this.state.filter}
|
|
1465
|
+
onChange={this.onChangeFilter}
|
|
1466
|
+
/>
|
|
1467
|
+
{this.state.filter && (
|
|
1468
|
+
<Button
|
|
1469
|
+
className="icon icon-container"
|
|
1470
|
+
onClick={() => {
|
|
1471
|
+
this.onChangeFilter('', { value: '' });
|
|
1585
1472
|
}}
|
|
1586
|
-
trigger={
|
|
1587
|
-
<Icon
|
|
1588
|
-
name={configurationSVG}
|
|
1589
|
-
size="24px"
|
|
1590
|
-
color="#826a6a"
|
|
1591
|
-
className="dropdown-popup-trigger configuration-svg"
|
|
1592
|
-
/>
|
|
1593
|
-
}
|
|
1594
1473
|
>
|
|
1595
|
-
<
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1474
|
+
<Icon
|
|
1475
|
+
name={clearSVG}
|
|
1476
|
+
size="30px"
|
|
1477
|
+
color="#e40166"
|
|
1478
|
+
/>
|
|
1479
|
+
</Button>
|
|
1480
|
+
)}
|
|
1481
|
+
<Icon
|
|
1482
|
+
name={zoomSVG}
|
|
1483
|
+
size="30px"
|
|
1484
|
+
color="#007eb1"
|
|
1485
|
+
className="zoom"
|
|
1486
|
+
style={{ flexShrink: '0' }}
|
|
1487
|
+
/>
|
|
1488
|
+
<div className="results" />
|
|
1489
|
+
</div>
|
|
1490
|
+
</Menu.Menu>
|
|
1491
|
+
</Menu>
|
|
1492
|
+
<Segment
|
|
1493
|
+
secondary
|
|
1494
|
+
attached
|
|
1495
|
+
className="contents-breadcrumbs"
|
|
1496
|
+
>
|
|
1497
|
+
<ContentsBreadcrumbs items={this.props.breadcrumbs} />
|
|
1498
|
+
<Dropdown
|
|
1499
|
+
item
|
|
1500
|
+
upward={false}
|
|
1501
|
+
icon={
|
|
1502
|
+
<Icon
|
|
1503
|
+
name={moreSVG}
|
|
1504
|
+
size="24px"
|
|
1505
|
+
color="#826a6a"
|
|
1506
|
+
/>
|
|
1507
|
+
}
|
|
1508
|
+
className="right floating selectIndex"
|
|
1509
|
+
>
|
|
1510
|
+
<Dropdown.Menu className="left">
|
|
1511
|
+
<Dropdown.Header
|
|
1512
|
+
content={this.props.intl.formatMessage(
|
|
1513
|
+
messages.selectColumns,
|
|
1514
|
+
)}
|
|
1515
|
+
/>
|
|
1516
|
+
<Dropdown.Menu scrolling>
|
|
1517
|
+
{map(
|
|
1518
|
+
filter(
|
|
1519
|
+
this.state.index.order,
|
|
1520
|
+
(index) => index !== 'sortable_title',
|
|
1521
|
+
),
|
|
1522
|
+
(index) => (
|
|
1523
|
+
<Dropdown.Item
|
|
1524
|
+
key={index}
|
|
1525
|
+
value={index}
|
|
1526
|
+
onClick={this.onSelectIndex}
|
|
1527
|
+
className="iconAlign"
|
|
1528
|
+
>
|
|
1529
|
+
{this.state.index.values[index]
|
|
1530
|
+
.selected ? (
|
|
1531
|
+
<Icon
|
|
1532
|
+
name={checkboxCheckedSVG}
|
|
1533
|
+
size="24px"
|
|
1534
|
+
color="#007eb1"
|
|
1535
|
+
className={
|
|
1536
|
+
this.state.index.values[index].label
|
|
1622
1537
|
}
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1538
|
+
/>
|
|
1539
|
+
) : (
|
|
1540
|
+
<Icon
|
|
1541
|
+
name={checkboxUncheckedSVG}
|
|
1542
|
+
className={
|
|
1543
|
+
this.state.index.values[index].label
|
|
1544
|
+
}
|
|
1545
|
+
size="24px"
|
|
1546
|
+
/>
|
|
1547
|
+
)}
|
|
1548
|
+
<span>
|
|
1549
|
+
{' '}
|
|
1550
|
+
{this.props.intl.formatMessage({
|
|
1551
|
+
id: this.state.index.values[index]
|
|
1552
|
+
.label,
|
|
1553
|
+
defaultMessage:
|
|
1554
|
+
this.state.index.values[index]
|
|
1555
|
+
.label,
|
|
1556
|
+
})}
|
|
1557
|
+
</span>
|
|
1558
|
+
</Dropdown.Item>
|
|
1559
|
+
),
|
|
1560
|
+
)}
|
|
1561
|
+
</Dropdown.Menu>
|
|
1562
|
+
</Dropdown.Menu>
|
|
1563
|
+
</Dropdown>
|
|
1564
|
+
</Segment>
|
|
1565
|
+
<div
|
|
1566
|
+
id="contents-table-wrapper"
|
|
1567
|
+
className="contents-table-wrapper"
|
|
1568
|
+
role="region"
|
|
1569
|
+
>
|
|
1570
|
+
<span
|
|
1571
|
+
aria-live="polite"
|
|
1572
|
+
className="search-feedback"
|
|
1573
|
+
role="status"
|
|
1574
|
+
>
|
|
1575
|
+
{`${this.props.intl.formatMessage(
|
|
1576
|
+
messages.resultCount,
|
|
1577
|
+
)}: ${this.props.total || 0}`}
|
|
1578
|
+
</span>
|
|
1579
|
+
<Table selectable compact singleLine attached>
|
|
1580
|
+
<Table.Header>
|
|
1581
|
+
<Table.Row>
|
|
1582
|
+
<Table.HeaderCell>
|
|
1583
|
+
<Popup
|
|
1584
|
+
menu={true}
|
|
1585
|
+
position="bottom left"
|
|
1586
|
+
flowing={true}
|
|
1587
|
+
basic={true}
|
|
1588
|
+
on="click"
|
|
1589
|
+
popper={{
|
|
1590
|
+
className: 'dropdown-popup',
|
|
1591
|
+
}}
|
|
1592
|
+
trigger={
|
|
1593
|
+
<Icon
|
|
1594
|
+
name={configurationSVG}
|
|
1595
|
+
size="24px"
|
|
1596
|
+
color="#826a6a"
|
|
1597
|
+
className="dropdown-popup-trigger configuration-svg"
|
|
1598
|
+
/>
|
|
1599
|
+
}
|
|
1600
|
+
>
|
|
1601
|
+
<Menu vertical borderless fluid>
|
|
1602
|
+
<Menu.Header
|
|
1603
|
+
content={this.props.intl.formatMessage(
|
|
1604
|
+
messages.rearrangeBy,
|
|
1605
|
+
)}
|
|
1606
|
+
/>
|
|
1607
|
+
{map(
|
|
1608
|
+
[
|
|
1609
|
+
'id',
|
|
1610
|
+
'sortable_title',
|
|
1611
|
+
'EffectiveDate',
|
|
1612
|
+
'CreationDate',
|
|
1613
|
+
'ModificationDate',
|
|
1614
|
+
'portal_type',
|
|
1615
|
+
],
|
|
1616
|
+
(index) => (
|
|
1617
|
+
<Dropdown
|
|
1618
|
+
key={index}
|
|
1619
|
+
item
|
|
1620
|
+
simple
|
|
1621
|
+
className={`sort_${index} icon-align`}
|
|
1622
|
+
icon={
|
|
1647
1623
|
<Icon
|
|
1648
|
-
name={
|
|
1624
|
+
name={downKeySVG}
|
|
1649
1625
|
size="24px"
|
|
1650
|
-
|
|
1651
|
-
<FormattedMessage
|
|
1652
|
-
id="Descending"
|
|
1653
|
-
defaultMessage="Descending"
|
|
1626
|
+
className="left"
|
|
1654
1627
|
/>
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
<Menu.Header
|
|
1695
|
-
content={this.props.intl.formatMessage(
|
|
1696
|
-
messages.select,
|
|
1628
|
+
}
|
|
1629
|
+
text={this.props.intl.formatMessage(
|
|
1630
|
+
{
|
|
1631
|
+
id: Indexes[index].label,
|
|
1632
|
+
},
|
|
1633
|
+
)}
|
|
1634
|
+
>
|
|
1635
|
+
<Dropdown.Menu>
|
|
1636
|
+
<Dropdown.Item
|
|
1637
|
+
onClick={this.onSortItems}
|
|
1638
|
+
value={`${Indexes[index].sort_on}|ascending`}
|
|
1639
|
+
className={`sort_${Indexes[index].sort_on}_ascending icon-align`}
|
|
1640
|
+
>
|
|
1641
|
+
<Icon
|
|
1642
|
+
name={sortDownSVG}
|
|
1643
|
+
size="24px"
|
|
1644
|
+
/>{' '}
|
|
1645
|
+
<FormattedMessage
|
|
1646
|
+
id="Ascending"
|
|
1647
|
+
defaultMessage="Ascending"
|
|
1648
|
+
/>
|
|
1649
|
+
</Dropdown.Item>
|
|
1650
|
+
<Dropdown.Item
|
|
1651
|
+
onClick={this.onSortItems}
|
|
1652
|
+
value={`${Indexes[index].sort_on}|descending`}
|
|
1653
|
+
className={`sort_${Indexes[index].sort_on}_descending icon-align`}
|
|
1654
|
+
>
|
|
1655
|
+
<Icon
|
|
1656
|
+
name={sortUpSVG}
|
|
1657
|
+
size="24px"
|
|
1658
|
+
/>{' '}
|
|
1659
|
+
<FormattedMessage
|
|
1660
|
+
id="Descending"
|
|
1661
|
+
defaultMessage="Descending"
|
|
1662
|
+
/>
|
|
1663
|
+
</Dropdown.Item>
|
|
1664
|
+
</Dropdown.Menu>
|
|
1665
|
+
</Dropdown>
|
|
1666
|
+
),
|
|
1697
1667
|
)}
|
|
1698
|
-
|
|
1699
|
-
|
|
1668
|
+
</Menu>
|
|
1669
|
+
</Popup>
|
|
1670
|
+
</Table.HeaderCell>
|
|
1671
|
+
<Table.HeaderCell>
|
|
1672
|
+
<Popup
|
|
1673
|
+
menu={true}
|
|
1674
|
+
position="bottom left"
|
|
1675
|
+
flowing={true}
|
|
1676
|
+
basic={true}
|
|
1677
|
+
on="click"
|
|
1678
|
+
popper={{
|
|
1679
|
+
className: 'dropdown-popup',
|
|
1680
|
+
}}
|
|
1681
|
+
trigger={
|
|
1700
1682
|
<Icon
|
|
1701
|
-
name={
|
|
1702
|
-
|
|
1683
|
+
name={
|
|
1684
|
+
this.state.selected.length === 0
|
|
1685
|
+
? checkboxUncheckedSVG
|
|
1686
|
+
: this.state.selected.length ===
|
|
1687
|
+
this.state.items.length
|
|
1688
|
+
? checkboxCheckedSVG
|
|
1689
|
+
: checkboxIndeterminateSVG
|
|
1690
|
+
}
|
|
1691
|
+
color={
|
|
1692
|
+
this.state.selected.length > 0
|
|
1693
|
+
? '#007eb1'
|
|
1694
|
+
: '#826a6a'
|
|
1695
|
+
}
|
|
1696
|
+
className="dropdown-popup-trigger"
|
|
1703
1697
|
size="24px"
|
|
1704
|
-
/>{' '}
|
|
1705
|
-
<FormattedMessage
|
|
1706
|
-
id="All"
|
|
1707
|
-
defaultMessage="All"
|
|
1708
1698
|
/>
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
id="None"
|
|
1717
|
-
defaultMessage="None"
|
|
1699
|
+
}
|
|
1700
|
+
>
|
|
1701
|
+
<Menu vertical borderless fluid>
|
|
1702
|
+
<Menu.Header
|
|
1703
|
+
content={this.props.intl.formatMessage(
|
|
1704
|
+
messages.select,
|
|
1705
|
+
)}
|
|
1718
1706
|
/>
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
{
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1707
|
+
<Menu.Item onClick={this.onSelectAll}>
|
|
1708
|
+
<Icon
|
|
1709
|
+
name={checkboxCheckedSVG}
|
|
1710
|
+
color="#007eb1"
|
|
1711
|
+
size="24px"
|
|
1712
|
+
/>{' '}
|
|
1713
|
+
<FormattedMessage
|
|
1714
|
+
id="All"
|
|
1715
|
+
defaultMessage="All"
|
|
1716
|
+
/>
|
|
1717
|
+
</Menu.Item>
|
|
1718
|
+
<Menu.Item onClick={this.onSelectNone}>
|
|
1719
|
+
<Icon
|
|
1720
|
+
name={checkboxUncheckedSVG}
|
|
1721
|
+
size="24px"
|
|
1722
|
+
/>{' '}
|
|
1723
|
+
<FormattedMessage
|
|
1724
|
+
id="None"
|
|
1725
|
+
defaultMessage="None"
|
|
1726
|
+
/>
|
|
1727
|
+
</Menu.Item>
|
|
1728
|
+
<Divider />
|
|
1729
|
+
<Menu.Header
|
|
1730
|
+
content={this.props.intl.formatMessage(
|
|
1731
|
+
messages.selected,
|
|
1732
|
+
{
|
|
1733
|
+
count: this.state.selected.length,
|
|
1734
|
+
},
|
|
1735
|
+
)}
|
|
1736
|
+
/>
|
|
1737
|
+
<Input
|
|
1738
|
+
icon={
|
|
1739
|
+
<Icon name={zoomSVG} size="24px" />
|
|
1740
|
+
}
|
|
1741
|
+
iconPosition="left"
|
|
1742
|
+
className="item search"
|
|
1743
|
+
placeholder={this.props.intl.formatMessage(
|
|
1744
|
+
messages.filter,
|
|
1745
|
+
)}
|
|
1746
|
+
value={
|
|
1747
|
+
this.state.selectedMenuFilter || ''
|
|
1748
|
+
}
|
|
1749
|
+
onChange={this.onChangeSelected}
|
|
1750
|
+
onClick={(e) => {
|
|
1751
|
+
e.preventDefault();
|
|
1752
|
+
e.stopPropagation();
|
|
1753
|
+
}}
|
|
1754
|
+
/>
|
|
1755
|
+
<Menu.Menu scrolling>
|
|
1756
|
+
{map(filteredItems, (item) => (
|
|
1757
|
+
<Menu.Item
|
|
1758
|
+
key={item}
|
|
1759
|
+
value={item}
|
|
1760
|
+
onClick={this.onDeselect}
|
|
1761
|
+
>
|
|
1762
|
+
<Icon
|
|
1763
|
+
name={deleteSVG}
|
|
1764
|
+
color="#e40166"
|
|
1765
|
+
size="24px"
|
|
1766
|
+
/>{' '}
|
|
1767
|
+
{this.getFieldById(item, 'title')}
|
|
1768
|
+
</Menu.Item>
|
|
1769
|
+
))}
|
|
1770
|
+
</Menu.Menu>
|
|
1771
|
+
</Menu>
|
|
1772
|
+
</Popup>
|
|
1773
|
+
</Table.HeaderCell>
|
|
1774
|
+
<Table.HeaderCell
|
|
1775
|
+
width={Math.ceil(
|
|
1776
|
+
16 / this.state.index.selectedCount,
|
|
1777
|
+
)}
|
|
1778
|
+
>
|
|
1779
|
+
<FormattedMessage
|
|
1780
|
+
id="Title"
|
|
1781
|
+
defaultMessage="Title"
|
|
1782
|
+
/>
|
|
1783
|
+
</Table.HeaderCell>
|
|
1784
|
+
{map(
|
|
1785
|
+
this.state.index.order,
|
|
1786
|
+
(index, order) =>
|
|
1787
|
+
this.state.index.values[index].selected && (
|
|
1788
|
+
<ContentsIndexHeader
|
|
1789
|
+
key={index}
|
|
1790
|
+
width={Math.ceil(
|
|
1791
|
+
16 / this.state.index.selectedCount,
|
|
1792
|
+
)}
|
|
1793
|
+
label={
|
|
1794
|
+
this.state.index.values[index].label
|
|
1795
|
+
}
|
|
1796
|
+
order={order}
|
|
1797
|
+
onOrderIndex={this.onOrderIndex}
|
|
1798
|
+
/>
|
|
1799
|
+
),
|
|
1767
1800
|
)}
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1801
|
+
<Table.HeaderCell textAlign="right">
|
|
1802
|
+
<FormattedMessage
|
|
1803
|
+
id="Actions"
|
|
1804
|
+
defaultMessage="Actions"
|
|
1805
|
+
/>
|
|
1806
|
+
</Table.HeaderCell>
|
|
1807
|
+
</Table.Row>
|
|
1808
|
+
</Table.Header>
|
|
1809
|
+
<Table.Body>
|
|
1810
|
+
{this.state.items.map((item, order) => (
|
|
1811
|
+
<ContentsItem
|
|
1812
|
+
key={item['@id']}
|
|
1813
|
+
item={item}
|
|
1814
|
+
order={order}
|
|
1815
|
+
selected={
|
|
1816
|
+
indexOf(
|
|
1817
|
+
this.state.selected,
|
|
1818
|
+
item['@id'],
|
|
1819
|
+
) !== -1
|
|
1820
|
+
}
|
|
1821
|
+
onClick={this.onSelect}
|
|
1822
|
+
indexes={filter(
|
|
1823
|
+
map(this.state.index.order, (index) => ({
|
|
1824
|
+
id: index,
|
|
1825
|
+
type: this.state.index.values[index].type,
|
|
1826
|
+
})),
|
|
1827
|
+
(index) =>
|
|
1828
|
+
this.state.index.values[index.id]
|
|
1829
|
+
.selected,
|
|
1830
|
+
)}
|
|
1831
|
+
onCut={this.cut}
|
|
1832
|
+
onCopy={this.copy}
|
|
1833
|
+
onDelete={this.delete}
|
|
1834
|
+
onOrderItem={this.onOrderItem}
|
|
1835
|
+
onMoveToTop={this.onMoveToTop}
|
|
1836
|
+
onMoveToBottom={this.onMoveToBottom}
|
|
1795
1837
|
/>
|
|
1796
|
-
|
|
1797
|
-
</Table.
|
|
1798
|
-
</Table
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
onOrderItem={this.onOrderItem}
|
|
1822
|
-
onMoveToTop={this.onMoveToTop}
|
|
1823
|
-
onMoveToBottom={this.onMoveToBottom}
|
|
1824
|
-
/>
|
|
1825
|
-
))}
|
|
1826
|
-
</Table.Body>
|
|
1827
|
-
</Table>
|
|
1828
|
-
</div>
|
|
1829
|
-
|
|
1830
|
-
<div className="contents-pagination">
|
|
1831
|
-
<Pagination
|
|
1832
|
-
current={this.state.currentPage}
|
|
1833
|
-
total={Math.ceil(
|
|
1834
|
-
this.props.total / this.state.pageSize,
|
|
1835
|
-
)}
|
|
1836
|
-
pageSize={this.state.pageSize}
|
|
1837
|
-
pageSizes={[
|
|
1838
|
-
50,
|
|
1839
|
-
this.props.intl.formatMessage(messages.all),
|
|
1840
|
-
]}
|
|
1841
|
-
onChangePage={this.onChangePage}
|
|
1842
|
-
onChangePageSize={this.onChangePageSize}
|
|
1843
|
-
/>
|
|
1844
|
-
</div>
|
|
1845
|
-
</Segment.Group>
|
|
1846
|
-
</section>
|
|
1847
|
-
</article>
|
|
1848
|
-
</div>
|
|
1838
|
+
))}
|
|
1839
|
+
</Table.Body>
|
|
1840
|
+
</Table>
|
|
1841
|
+
</div>
|
|
1842
|
+
|
|
1843
|
+
<div className="contents-pagination">
|
|
1844
|
+
<Pagination
|
|
1845
|
+
current={this.state.currentPage}
|
|
1846
|
+
total={Math.ceil(
|
|
1847
|
+
this.props.total / this.state.pageSize,
|
|
1848
|
+
)}
|
|
1849
|
+
pageSize={this.state.pageSize}
|
|
1850
|
+
pageSizes={[
|
|
1851
|
+
50,
|
|
1852
|
+
this.props.intl.formatMessage(messages.all),
|
|
1853
|
+
]}
|
|
1854
|
+
onChangePage={this.onChangePage}
|
|
1855
|
+
onChangePageSize={this.onChangePageSize}
|
|
1856
|
+
/>
|
|
1857
|
+
</div>
|
|
1858
|
+
</Segment.Group>
|
|
1859
|
+
</section>
|
|
1860
|
+
</article>
|
|
1861
|
+
</div>
|
|
1862
|
+
</DropzoneContent>
|
|
1849
1863
|
{this.state.isClient &&
|
|
1850
1864
|
createPortal(
|
|
1851
1865
|
<Toolbar
|