@akemona-org/strapi-plugin-content-manager 3.13.2 → 3.14.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/admin/src/components/AddDropdown/components.js +3 -4
- package/admin/src/components/Block/components.js +2 -2
- package/admin/src/components/Block/index.js +15 -13
- package/admin/src/components/Container/index.js +1 -1
- package/admin/src/components/CustomInputCheckbox/components.js +8 -8
- package/admin/src/components/CustomTable/ActionCollapse/Delete.js +1 -1
- package/admin/src/components/CustomTable/ActionCollapse/DeleteAll.js +1 -1
- package/admin/src/components/CustomTable/Row/ActionContainer.js +1 -2
- package/admin/src/components/CustomTable/styledComponents.js +3 -3
- package/admin/src/components/DraggedField/GrabWrapper.js +2 -2
- package/admin/src/components/DraggedField/RemoveWrapper.js +2 -2
- package/admin/src/components/DraggedField/SubWrapper.js +0 -2
- package/admin/src/components/DraggedFieldWithPreview/Carret.js +1 -1
- package/admin/src/components/DraggedFieldWithPreview/DynamicZoneWrapper.js +1 -1
- package/admin/src/components/DraggedFieldWithPreview/Tooltip.js +1 -1
- package/admin/src/components/DynamicComponentCard/Wrapper.js +2 -2
- package/admin/src/components/DynamicZone/Button.js +2 -2
- package/admin/src/components/DynamicZone/Component/RoundCTA.js +3 -3
- package/admin/src/components/DynamicZone/ComponentWrapper.js +1 -1
- package/admin/src/components/DynamicZone/Label.js +2 -2
- package/admin/src/components/DynamicZone/Picker/Category/Banner/Wrapper.js +1 -1
- package/admin/src/components/DynamicZone/Picker/Wrapper.js +1 -1
- package/admin/src/components/DynamicZone/utils/connect.js +1 -1
- package/admin/src/components/FieldComponent/EmptyComponent.js +1 -1
- package/admin/src/components/FieldComponent/ResetComponent.js +2 -2
- package/admin/src/components/FieldComponent/utils/connect.js +1 -1
- package/admin/src/components/FilterOptionsCTA/index.js +1 -1
- package/admin/src/components/FilterPicker/components.js +2 -2
- package/admin/src/components/FilterPickerOption/components.js +4 -4
- package/admin/src/components/FormTitle/index.js +8 -4
- package/admin/src/components/FormWrapper/index.js +2 -2
- package/admin/src/components/InputUID/Options/index.js +13 -11
- package/admin/src/components/Inputs/utils/connect.js +1 -1
- package/admin/src/components/MediaPreviewList/StyledMediaPreviewList.js +2 -2
- package/admin/src/components/PlusButton/index.js +4 -4
- package/admin/src/components/PreviewCarret/components.js +0 -2
- package/admin/src/components/PreviewCarret/index.js +5 -3
- package/admin/src/components/PreviewWysiwyg/Wrapper.js +6 -7
- package/admin/src/components/RepeatableComponent/AddFieldButton.js +4 -7
- package/admin/src/components/RepeatableComponent/BannerWrapper.js +0 -5
- package/admin/src/components/RepeatableComponent/DraggedItem/utils/connect.js +1 -1
- package/admin/src/components/RepeatableComponent/EmptyComponent.js +1 -1
- package/admin/src/components/RepeatableComponent/FormWrapper.js +1 -4
- package/admin/src/components/RepeatableComponent/utils/connect.js +1 -1
- package/admin/src/components/SelectMany/components.js +14 -14
- package/admin/src/components/SelectWrapper/IndicatorSeparator.js +1 -1
- package/admin/src/components/SelectWrapper/utils/connect.js +1 -1
- package/admin/src/components/SettingFormWrapper/index.js +1 -1
- package/admin/src/components/Truncate/index.js +1 -0
- package/admin/src/components/Wysiwyg/EditorWrapper.js +3 -7
- package/admin/src/components/Wysiwyg/PreviewControlWrapper.js +2 -1
- package/admin/src/components/Wysiwyg/SelectWrapper.js +1 -1
- package/admin/src/components/Wysiwyg/ToggleModeWrapper.js +1 -1
- package/admin/src/components/Wysiwyg/previewControl.js +8 -6
- package/admin/src/components/WysiwygBottomControls/components.js +1 -1
- package/admin/src/components/WysiwygDropUpload/Label.js +2 -5
- package/admin/src/components/WysiwygInlineControls/StyledButton.js +5 -5
- package/admin/src/components/WysiwygInlineControls/Wrapper.js +1 -1
- package/admin/src/components/WysiwygWithErrors/Wrapper.js +1 -1
- package/admin/src/containers/EditView/DeleteLink/utils/connect.js +1 -1
- package/admin/src/containers/EditView/Header/utils/connect.js +1 -1
- package/admin/src/containers/EditView/components.js +3 -3
- package/admin/src/containers/EditViewDataManagerProvider/utils/schema.js +6 -6
- package/admin/src/containers/ListSettingsView/DragWrapper.js +1 -2
- package/admin/src/containers/ListSettingsView/MenuDropdown.js +2 -3
- package/admin/src/containers/ListSettingsView/Toggle.js +2 -3
- package/admin/src/containers/ListView/FieldPicker/ConfigureLink/StyledLink.js +0 -1
- package/admin/src/containers/ListView/FieldPicker/Fields/Wrapper.js +1 -1
- package/admin/src/containers/ListView/components.js +6 -6
- package/admin/src/containers/ListView/index.js +129 -131
- package/package.json +5 -5
|
@@ -349,143 +349,141 @@ function ListView({
|
|
|
349
349
|
|
|
350
350
|
return (
|
|
351
351
|
<ListViewProvider
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
352
|
+
_q={_q}
|
|
353
|
+
_sort={_sort}
|
|
354
|
+
data={data}
|
|
355
|
+
entriesToDelete={entriesToDelete}
|
|
356
|
+
filters={filters}
|
|
357
|
+
firstSortableHeader={firstSortableHeader}
|
|
358
|
+
label={label}
|
|
359
|
+
onChangeBulk={onChangeBulk}
|
|
360
|
+
onChangeBulkSelectall={onChangeBulkSelectall}
|
|
361
|
+
onClickDelete={handleClickDelete}
|
|
362
|
+
slug={slug}
|
|
363
|
+
toggleModalDeleteAll={handleToggleModalDeleteAll}
|
|
364
|
+
setQuery={setQuery}
|
|
365
|
+
>
|
|
366
|
+
<FilterPicker
|
|
367
|
+
contentType={contentType}
|
|
356
368
|
filters={filters}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
onClickDelete={handleClickDelete}
|
|
362
|
-
slug={slug}
|
|
363
|
-
toggleModalDeleteAll={handleToggleModalDeleteAll}
|
|
369
|
+
isOpen={isFilterPickerOpen}
|
|
370
|
+
metadatas={metadatas}
|
|
371
|
+
name={label}
|
|
372
|
+
toggleFilterPickerState={toggleFilterPickerState}
|
|
364
373
|
setQuery={setQuery}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
<
|
|
384
|
-
<
|
|
385
|
-
<
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
name={name}
|
|
410
|
-
toggleFilterPickerState={toggleFilterPickerState}
|
|
411
|
-
isFilterPickerOpen={isFilterPickerOpen}
|
|
412
|
-
setQuery={setQuery}
|
|
413
|
-
value={value}
|
|
414
|
-
/>
|
|
415
|
-
))}
|
|
416
|
-
</>
|
|
417
|
-
)}
|
|
418
|
-
</div>
|
|
374
|
+
slug={slug}
|
|
375
|
+
/>
|
|
376
|
+
<Container className="container-fluid">
|
|
377
|
+
{!isFilterPickerOpen && <Header {...headerProps} isLoading={isLoading && canRead} />}
|
|
378
|
+
{isSearchable && canRead && (
|
|
379
|
+
<Search changeParams={setQuery} initValue={_q} model={label} value={_q} />
|
|
380
|
+
)}
|
|
381
|
+
|
|
382
|
+
{!canRead && (
|
|
383
|
+
<Flex justifyContent="flex-end">
|
|
384
|
+
<Padded right size="sm">
|
|
385
|
+
<InjectionZone area={`${pluginId}.listView.actions`} />
|
|
386
|
+
</Padded>
|
|
387
|
+
</Flex>
|
|
388
|
+
)}
|
|
389
|
+
|
|
390
|
+
{canRead && (
|
|
391
|
+
<Wrapper>
|
|
392
|
+
<div className="row" style={{ marginBottom: '5px' }}>
|
|
393
|
+
<div className="col-9">
|
|
394
|
+
<div className="row" style={{ marginLeft: 0, marginRight: 0 }}>
|
|
395
|
+
{isFilterable && (
|
|
396
|
+
<>
|
|
397
|
+
<AddFilterCta type="button" onClick={toggleFilterPickerState}>
|
|
398
|
+
<FilterIcon />
|
|
399
|
+
<FormattedMessage id="app.utils.filters" />
|
|
400
|
+
</AddFilterCta>
|
|
401
|
+
{filters.map(({ filter: filterName, name, value }, key) => (
|
|
402
|
+
<Filter
|
|
403
|
+
contentType={contentType}
|
|
404
|
+
filterName={filterName}
|
|
405
|
+
filters={filters}
|
|
406
|
+
index={key}
|
|
407
|
+
key={key}
|
|
408
|
+
metadatas={metadatas}
|
|
409
|
+
name={name}
|
|
410
|
+
toggleFilterPickerState={toggleFilterPickerState}
|
|
411
|
+
isFilterPickerOpen={isFilterPickerOpen}
|
|
412
|
+
setQuery={setQuery}
|
|
413
|
+
value={value}
|
|
414
|
+
/>
|
|
415
|
+
))}
|
|
416
|
+
</>
|
|
417
|
+
)}
|
|
419
418
|
</div>
|
|
419
|
+
</div>
|
|
420
420
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
</div>
|
|
421
|
+
<div className="col-3">
|
|
422
|
+
<Flex justifyContent="flex-end">
|
|
423
|
+
<Padded right size="sm">
|
|
424
|
+
<InjectionZone area={`${pluginId}.listView.actions`} />
|
|
425
|
+
</Padded>
|
|
426
|
+
|
|
427
|
+
<CheckPermissions permissions={pluginPermissions.collectionTypesConfigurations}>
|
|
428
|
+
<FieldPicker
|
|
429
|
+
displayedHeaders={displayedHeaders}
|
|
430
|
+
items={allAllowedHeaders}
|
|
431
|
+
onChange={handleChangeListLabels}
|
|
432
|
+
onClickReset={onResetListHeaders}
|
|
433
|
+
slug={slug}
|
|
434
|
+
/>
|
|
435
|
+
</CheckPermissions>
|
|
436
|
+
</Flex>
|
|
438
437
|
</div>
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
438
|
+
</div>
|
|
439
|
+
<div className="row" style={{ paddingTop: '12px' }}>
|
|
440
|
+
<div className="col-12">
|
|
441
|
+
<CustomTable
|
|
442
|
+
data={data}
|
|
443
|
+
canCreate={canCreate}
|
|
444
|
+
canDelete={canDelete}
|
|
445
|
+
canUpdate={canUpdate}
|
|
446
|
+
displayedHeaders={displayedHeaders}
|
|
447
|
+
hasDraftAndPublish={hasDraftAndPublish}
|
|
448
|
+
isBulkable={isBulkable}
|
|
449
|
+
setQuery={setQuery}
|
|
450
|
+
showLoader={isLoading}
|
|
451
|
+
/>
|
|
452
|
+
<Footer count={total} params={query} onChange={setQuery} />
|
|
454
453
|
</div>
|
|
455
|
-
</
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
</ListViewProvider>
|
|
454
|
+
</div>
|
|
455
|
+
</Wrapper>
|
|
456
|
+
)}
|
|
457
|
+
</Container>
|
|
458
|
+
<PopUpWarning
|
|
459
|
+
isOpen={showWarningDelete}
|
|
460
|
+
toggleModal={toggleModalDelete}
|
|
461
|
+
content={{
|
|
462
|
+
message: getTrad('popUpWarning.bodyMessage.contentType.delete'),
|
|
463
|
+
}}
|
|
464
|
+
onConfirm={handleConfirmDeleteData}
|
|
465
|
+
popUpWarningType="danger"
|
|
466
|
+
onClosed={handleModalClose}
|
|
467
|
+
isConfirmButtonLoading={showModalConfirmButtonLoading}
|
|
468
|
+
>
|
|
469
|
+
<InjectionZoneList area={`${pluginId}.listView.deleteModalAdditionalInfos`} />
|
|
470
|
+
</PopUpWarning>
|
|
471
|
+
<PopUpWarning
|
|
472
|
+
isOpen={showWarningDeleteAll}
|
|
473
|
+
toggleModal={toggleModalDeleteAll}
|
|
474
|
+
content={{
|
|
475
|
+
message: getTrad(
|
|
476
|
+
`popUpWarning.bodyMessage.contentType.delete${entriesToDelete.length > 1 ? '.all' : ''}`
|
|
477
|
+
),
|
|
478
|
+
}}
|
|
479
|
+
popUpWarningType="danger"
|
|
480
|
+
onConfirm={handleConfirmDeleteAllData}
|
|
481
|
+
onClosed={handleModalClose}
|
|
482
|
+
isConfirmButtonLoading={showModalConfirmButtonLoading}
|
|
483
|
+
>
|
|
484
|
+
<InjectionZoneList area={`${pluginId}.listView.deleteModalAdditionalInfos`} />
|
|
485
|
+
</PopUpWarning>
|
|
486
|
+
</ListViewProvider>
|
|
489
487
|
);
|
|
490
488
|
}
|
|
491
489
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "3.
|
|
6
|
+
"version": "3.14.0",
|
|
7
7
|
"description": "A powerful UI to easily manage your data.",
|
|
8
8
|
"strapi": {
|
|
9
9
|
"name": "Content Manager",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"required": true
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@akemona-org/strapi-helper-plugin": "3.
|
|
16
|
-
"@akemona-org/strapi-utils": "3.
|
|
15
|
+
"@akemona-org/strapi-helper-plugin": "3.14.0",
|
|
16
|
+
"@akemona-org/strapi-utils": "3.14.0",
|
|
17
17
|
"@buffetjs/core": "3.3.8",
|
|
18
18
|
"@buffetjs/custom": "3.3.8",
|
|
19
19
|
"@buffetjs/hooks": "3.3.8",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"url": "git://github.com/akemona/strapi.git"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|
|
72
|
-
"node": ">=
|
|
72
|
+
"node": ">=18.17.0 <=20.x.x",
|
|
73
73
|
"npm": ">=6.0.0"
|
|
74
74
|
},
|
|
75
75
|
"license": "SEE LICENSE IN LICENSE",
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "241f7ad8f4277aa7f522f580557e15d65af4a0cc"
|
|
77
77
|
}
|