@webbio/strapi-plugin-page-builder 0.14.0-platform → 0.14.1-platform
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/README.md +3 -2
- package/admin/src/components/PlatformFilteredSelectField/styles.tsx +1 -1
- package/admin/src/components/StrapiCore/admin/admin/src/content-manager/components/Relations/RelationInput.tsx +4 -6
- package/admin/src/components/StrapiCore/admin/admin/src/content-manager/components/Relations/utils/normalizeRelations.ts +1 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.server.tsbuildinfo +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -134,14 +134,15 @@ Ik wil een lijst van vacature relaties selecteren. Deze vacatures moeten van het
|
|
|
134
134
|
"targetField": "vacatures",
|
|
135
135
|
// (Default: undefined) Adds filters to the $and query for result filtering
|
|
136
136
|
"customFilters": [{ "title": { "$contains": "Hoi" } }],
|
|
137
|
-
// (Default:
|
|
137
|
+
// (Default: false). Disables result filtering by globally selected platform
|
|
138
138
|
"disablePlatformFilter": boolean,
|
|
139
139
|
// (Default: false) Hides id of the entity that is edited if it's the same as the targetField uid. So if this is enabled on a vacancy entity and also targets other vacancies, the current vacancy that is edited will not be shown.
|
|
140
140
|
"hideSameEntity": boolean,
|
|
141
141
|
// (Default: ['title']) Defines searchable fields
|
|
142
142
|
"searchableFields": string[],
|
|
143
|
-
// If set the field will show a subtitle with the value that results in following this path.
|
|
143
|
+
// (Default: undefined) If set the field will show a subtitle with the value that results in following this path.
|
|
144
144
|
"subTitlePath": string,
|
|
145
|
+
// (Default: undefined)
|
|
145
146
|
// Conditional filters add the posibility to who results based on values from other fields.
|
|
146
147
|
// For now this only works for fields on the same level as the targetfield.
|
|
147
148
|
// The value found will be replacing the '${value}' string.
|
|
@@ -34,7 +34,7 @@ const CustomOption = styled(Box)`
|
|
|
34
34
|
const CustomOptionSubTitle = styled(Box)`
|
|
35
35
|
${({ theme, disabled }) => css`
|
|
36
36
|
font-size: ${theme.fontSizes[1]};
|
|
37
|
-
|
|
37
|
+
color: ${theme.colors.neutral400};
|
|
38
38
|
white-space: nowrap;
|
|
39
39
|
overflow: hidden;
|
|
40
40
|
text-overflow: ellipsis;
|
|
@@ -312,8 +312,7 @@ const RelationInput = ({
|
|
|
312
312
|
onRelationDisconnect,
|
|
313
313
|
publicationStateTranslations,
|
|
314
314
|
relations,
|
|
315
|
-
updatePositionOfRelation: handleUpdatePositionOfRelation
|
|
316
|
-
subTitle: 'ho'
|
|
315
|
+
updatePositionOfRelation: handleUpdatePositionOfRelation
|
|
317
316
|
}}
|
|
318
317
|
itemKey={(index) => `${relations[index].mainField}_${relations[index].id}`}
|
|
319
318
|
innerElementType="ol"
|
|
@@ -452,7 +451,6 @@ interface ListItemProps extends Pick<RelationItemProps, 'index' | 'style'> {
|
|
|
452
451
|
published: string;
|
|
453
452
|
};
|
|
454
453
|
relations: NormalizedRelation[];
|
|
455
|
-
subTitle?: string;
|
|
456
454
|
};
|
|
457
455
|
}
|
|
458
456
|
|
|
@@ -472,7 +470,7 @@ const ListItem = ({ data, index, style }: ListItemProps) => {
|
|
|
472
470
|
relations,
|
|
473
471
|
updatePositionOfRelation
|
|
474
472
|
} = data;
|
|
475
|
-
const { publicationState, href, mainField, id } = relations[index];
|
|
473
|
+
const { publicationState, href, mainField, id, subTitle } = relations[index];
|
|
476
474
|
const statusColor = publicationState === 'draft' ? 'secondary' : 'success';
|
|
477
475
|
|
|
478
476
|
return (
|
|
@@ -512,14 +510,14 @@ const ListItem = ({ data, index, style }: ListItemProps) => {
|
|
|
512
510
|
{href ? (
|
|
513
511
|
<Flex direction="column" alignItems="start" gap={0}>
|
|
514
512
|
<LinkEllipsis to={href}>{mainField ?? id}</LinkEllipsis>
|
|
515
|
-
{
|
|
513
|
+
{subTitle && <S.CustomOptionSubTitle>{subTitle}</S.CustomOptionSubTitle>}
|
|
516
514
|
</Flex>
|
|
517
515
|
) : (
|
|
518
516
|
<Flex direction="column" alignItems="start" gap={0}>
|
|
519
517
|
<Typography textColor={disabled ? 'neutral600' : 'primary600'} ellipsis>
|
|
520
518
|
{mainField ?? id}
|
|
521
519
|
</Typography>
|
|
522
|
-
{
|
|
520
|
+
{subTitle && <S.CustomOptionSubTitle>{subTitle}</S.CustomOptionSubTitle>}
|
|
523
521
|
</Flex>
|
|
524
522
|
)}
|
|
525
523
|
</Tooltip>
|
package/dist/package.json
CHANGED