@strapi/content-manager 5.52.2 → 5.53.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/dist/admin/history/components/VersionInputRenderer.js +5 -1
- package/dist/admin/history/components/VersionInputRenderer.js.map +1 -1
- package/dist/admin/history/components/VersionInputRenderer.mjs +5 -1
- package/dist/admin/history/components/VersionInputRenderer.mjs.map +1 -1
- package/dist/admin/hooks/usePersistentQueryParams.js +10 -2
- package/dist/admin/hooks/usePersistentQueryParams.js.map +1 -1
- package/dist/admin/hooks/usePersistentQueryParams.mjs +11 -3
- package/dist/admin/hooks/usePersistentQueryParams.mjs.map +1 -1
- package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/Blocks/Link.js +25 -16
- package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/Blocks/Link.js.map +1 -1
- package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/Blocks/Link.mjs +25 -16
- package/dist/admin/pages/EditView/components/FormInputs/BlocksInput/Blocks/Link.mjs.map +1 -1
- package/dist/admin/pages/EditView/components/FormInputs/Relations/Relations.js +29 -11
- package/dist/admin/pages/EditView/components/FormInputs/Relations/Relations.js.map +1 -1
- package/dist/admin/pages/EditView/components/FormInputs/Relations/Relations.mjs +29 -11
- package/dist/admin/pages/EditView/components/FormInputs/Relations/Relations.mjs.map +1 -1
- package/dist/admin/pages/ListView/ListViewPage.js +3 -3
- package/dist/admin/pages/ListView/ListViewPage.js.map +1 -1
- package/dist/admin/pages/ListView/ListViewPage.mjs +4 -4
- package/dist/admin/pages/ListView/ListViewPage.mjs.map +1 -1
- package/dist/admin/pages/ListView/components/TableCells/Relations.js +11 -2
- package/dist/admin/pages/ListView/components/TableCells/Relations.js.map +1 -1
- package/dist/admin/pages/ListView/components/TableCells/Relations.mjs +11 -2
- package/dist/admin/pages/ListView/components/TableCells/Relations.mjs.map +1 -1
- package/dist/admin/src/utils/relations.d.ts +4 -3
- package/dist/admin/translations/cs.json.js +1 -0
- package/dist/admin/translations/cs.json.js.map +1 -1
- package/dist/admin/translations/cs.json.mjs +1 -0
- package/dist/admin/translations/cs.json.mjs.map +1 -1
- package/dist/admin/translations/de.json.js +1 -0
- package/dist/admin/translations/de.json.js.map +1 -1
- package/dist/admin/translations/de.json.mjs +1 -0
- package/dist/admin/translations/de.json.mjs.map +1 -1
- package/dist/admin/translations/en.json.js +1 -0
- package/dist/admin/translations/en.json.js.map +1 -1
- package/dist/admin/translations/en.json.mjs +1 -0
- package/dist/admin/translations/en.json.mjs.map +1 -1
- package/dist/admin/translations/fr.json.js +1 -0
- package/dist/admin/translations/fr.json.js.map +1 -1
- package/dist/admin/translations/fr.json.mjs +1 -0
- package/dist/admin/translations/fr.json.mjs.map +1 -1
- package/dist/admin/translations/ja.json.js +1 -0
- package/dist/admin/translations/ja.json.js.map +1 -1
- package/dist/admin/translations/ja.json.mjs +1 -0
- package/dist/admin/translations/ja.json.mjs.map +1 -1
- package/dist/admin/translations/ko.json.js +1 -0
- package/dist/admin/translations/ko.json.js.map +1 -1
- package/dist/admin/translations/ko.json.mjs +1 -0
- package/dist/admin/translations/ko.json.mjs.map +1 -1
- package/dist/admin/translations/nl.json.js +1 -0
- package/dist/admin/translations/nl.json.js.map +1 -1
- package/dist/admin/translations/nl.json.mjs +1 -0
- package/dist/admin/translations/nl.json.mjs.map +1 -1
- package/dist/admin/translations/pl.json.js +1 -0
- package/dist/admin/translations/pl.json.js.map +1 -1
- package/dist/admin/translations/pl.json.mjs +1 -0
- package/dist/admin/translations/pl.json.mjs.map +1 -1
- package/dist/admin/translations/sk.json.js +1 -0
- package/dist/admin/translations/sk.json.js.map +1 -1
- package/dist/admin/translations/sk.json.mjs +1 -0
- package/dist/admin/translations/sk.json.mjs.map +1 -1
- package/dist/admin/utils/relations.js +9 -4
- package/dist/admin/utils/relations.js.map +1 -1
- package/dist/admin/utils/relations.mjs +9 -4
- package/dist/admin/utils/relations.mjs.map +1 -1
- package/dist/server/services/permission-checker.js +0 -4
- package/dist/server/services/permission-checker.js.map +1 -1
- package/dist/server/services/permission-checker.mjs +0 -4
- package/dist/server/services/permission-checker.mjs.map +1 -1
- package/dist/server/src/index.d.ts +4 -4
- package/dist/server/src/index.d.ts.map +1 -1
- package/dist/server/src/services/index.d.ts +4 -4
- package/dist/server/src/services/index.d.ts.map +1 -1
- package/dist/server/src/services/permission-checker.d.ts +2 -2
- package/dist/server/src/services/permission-checker.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Relations.js","sources":["../../../../../../admin/src/pages/ListView/components/TableCells/Relations.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { useQueryParams } from '@strapi/admin/strapi-admin';\nimport { Typography, Loader, useNotifyAT, Menu } from '@strapi/design-system';\nimport { useIntl } from 'react-intl';\n\nimport { useDoc } from '../../../../hooks/useDocument';\nimport { useGetRelationsQuery } from '../../../../services/relations';\nimport { getRelationLabel } from '../../../../utils/relations';\nimport { getTranslation } from '../../../../utils/translations';\n\nimport type { CellContentProps } from './CellContent';\n\n/* -------------------------------------------------------------------------------------------------\n * RelationSingle\n * -----------------------------------------------------------------------------------------------*/\n\ninterface RelationSingleProps extends Pick<CellContentProps, 'mainField' | 'content'> {}\n\nconst RelationSingle = ({ mainField, content }: RelationSingleProps) => {\n return (\n <Typography maxWidth=\"50rem\" textColor=\"neutral800\" ellipsis>\n {getRelationLabel(content, mainField)}\n </Typography>\n );\n};\n\n/* -------------------------------------------------------------------------------------------------\n * RelationMultiple\n * -----------------------------------------------------------------------------------------------*/\n\ninterface RelationMultipleProps\n extends Pick<CellContentProps, 'mainField' | 'content' | 'name' | 'rowId'> {}\n\nconst RelationMultiple = ({ mainField, content, rowId, name }: RelationMultipleProps) => {\n const { model } = useDoc();\n const { formatMessage } = useIntl();\n const { notifyStatus } = useNotifyAT();\n const [isOpen, setIsOpen] = React.useState(false);\n const [{ query }] = useQueryParams<{ plugins?: { i18n?: { locale?: string } } }>();\n const locale = query.plugins?.i18n?.locale;\n\n const [targetField] = name.split('.');\n\n const { data, isLoading } = useGetRelationsQuery(\n {\n model,\n id: rowId,\n targetField,\n params: { locale },\n },\n {\n skip: !isOpen,\n refetchOnMountOrArgChange: true,\n }\n );\n\n const contentCount = Array.isArray(content) ? content.length : content.count;\n\n React.useEffect(() => {\n if (data) {\n notifyStatus(\n formatMessage({\n id: getTranslation('ListViewTable.relation-loaded'),\n defaultMessage: 'Relations have been loaded',\n })\n );\n }\n }, [data, formatMessage, notifyStatus]);\n\n return (\n <Menu.Root onOpenChange={(isOpen) => setIsOpen(isOpen)}>\n <Menu.Trigger onClick={(e) => e.stopPropagation()}>\n <Typography style={{ cursor: 'pointer' }} textColor=\"neutral800\" fontWeight=\"regular\">\n {contentCount > 0\n ? formatMessage(\n {\n id: 'content-manager.containers.list.items',\n defaultMessage: '{number} {number, plural, =0 {items} one {item} other {items}}',\n },\n { number: contentCount }\n )\n : '-'}\n </Typography>\n </Menu.Trigger>\n <Menu.Content>\n {isLoading && (\n <Menu.Item disabled>\n <Loader small>\n {formatMessage({\n id: getTranslation('ListViewTable.relation-loading'),\n defaultMessage: 'Relations are loading',\n })}\n </Loader>\n </Menu.Item>\n )}\n {data?.results && (\n <>\n {data.results.map((entry) => (\n <Menu.Item key={entry.documentId}>\n <Typography maxWidth=\"50rem\" ellipsis>\n {getRelationLabel(entry, mainField)}\n </Typography>\n </Menu.Item>\n ))}\n\n {data?.pagination && data?.pagination.total > 10 && (\n <Menu.Item\n aria-disabled\n aria-label={formatMessage({\n id: getTranslation('ListViewTable.relation-more'),\n defaultMessage: 'This relation contains more entities than displayed',\n })}\n >\n <Typography>…</Typography>\n </Menu.Item>\n )}\n </>\n )}\n </Menu.Content>\n </Menu.Root>\n );\n};\n\nexport { RelationSingle, RelationMultiple };\nexport type { RelationSingleProps, RelationMultipleProps };\n"],"names":["RelationSingle","mainField","content","_jsx","Typography","maxWidth","textColor","ellipsis","getRelationLabel","RelationMultiple","rowId","name","model","useDoc","
|
|
1
|
+
{"version":3,"file":"Relations.js","sources":["../../../../../../admin/src/pages/ListView/components/TableCells/Relations.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { useQueryParams } from '@strapi/admin/strapi-admin';\nimport { Typography, Loader, useNotifyAT, Menu } from '@strapi/design-system';\nimport { useIntl } from 'react-intl';\n\nimport { useDoc } from '../../../../hooks/useDocument';\nimport { useGetRelationsQuery } from '../../../../services/relations';\nimport { getRelationLabel } from '../../../../utils/relations';\nimport { getTranslation } from '../../../../utils/translations';\n\nimport type { CellContentProps } from './CellContent';\n\n/* -------------------------------------------------------------------------------------------------\n * RelationSingle\n * -----------------------------------------------------------------------------------------------*/\n\ninterface RelationSingleProps extends Pick<CellContentProps, 'mainField' | 'content'> {}\n\nconst RelationSingle = ({ mainField, content }: RelationSingleProps) => {\n const { formatMessage } = useIntl();\n const emptyLabel = formatMessage({\n id: 'content-manager.containers.empty-label',\n defaultMessage: 'Untitled',\n });\n\n return (\n <Typography maxWidth=\"50rem\" textColor=\"neutral800\" ellipsis>\n {getRelationLabel(content, mainField, emptyLabel)}\n </Typography>\n );\n};\n\n/* -------------------------------------------------------------------------------------------------\n * RelationMultiple\n * -----------------------------------------------------------------------------------------------*/\n\ninterface RelationMultipleProps\n extends Pick<CellContentProps, 'mainField' | 'content' | 'name' | 'rowId'> {}\n\nconst RelationMultiple = ({ mainField, content, rowId, name }: RelationMultipleProps) => {\n const { model } = useDoc();\n const { formatMessage } = useIntl();\n const emptyLabel = formatMessage({\n id: 'content-manager.containers.empty-label',\n defaultMessage: 'Untitled',\n });\n const { notifyStatus } = useNotifyAT();\n const [isOpen, setIsOpen] = React.useState(false);\n const [{ query }] = useQueryParams<{ plugins?: { i18n?: { locale?: string } } }>();\n const locale = query.plugins?.i18n?.locale;\n\n const [targetField] = name.split('.');\n\n const { data, isLoading } = useGetRelationsQuery(\n {\n model,\n id: rowId,\n targetField,\n params: { locale },\n },\n {\n skip: !isOpen,\n refetchOnMountOrArgChange: true,\n }\n );\n\n const contentCount = Array.isArray(content) ? content.length : content.count;\n\n React.useEffect(() => {\n if (data) {\n notifyStatus(\n formatMessage({\n id: getTranslation('ListViewTable.relation-loaded'),\n defaultMessage: 'Relations have been loaded',\n })\n );\n }\n }, [data, formatMessage, notifyStatus]);\n\n return (\n <Menu.Root onOpenChange={(isOpen) => setIsOpen(isOpen)}>\n <Menu.Trigger onClick={(e) => e.stopPropagation()}>\n <Typography style={{ cursor: 'pointer' }} textColor=\"neutral800\" fontWeight=\"regular\">\n {contentCount > 0\n ? formatMessage(\n {\n id: 'content-manager.containers.list.items',\n defaultMessage: '{number} {number, plural, =0 {items} one {item} other {items}}',\n },\n { number: contentCount }\n )\n : '-'}\n </Typography>\n </Menu.Trigger>\n <Menu.Content>\n {isLoading && (\n <Menu.Item disabled>\n <Loader small>\n {formatMessage({\n id: getTranslation('ListViewTable.relation-loading'),\n defaultMessage: 'Relations are loading',\n })}\n </Loader>\n </Menu.Item>\n )}\n {data?.results && (\n <>\n {data.results.map((entry) => (\n <Menu.Item key={entry.documentId}>\n <Typography maxWidth=\"50rem\" ellipsis>\n {getRelationLabel(entry, mainField, emptyLabel)}\n </Typography>\n </Menu.Item>\n ))}\n\n {data?.pagination && data?.pagination.total > 10 && (\n <Menu.Item\n aria-disabled\n aria-label={formatMessage({\n id: getTranslation('ListViewTable.relation-more'),\n defaultMessage: 'This relation contains more entities than displayed',\n })}\n >\n <Typography>…</Typography>\n </Menu.Item>\n )}\n </>\n )}\n </Menu.Content>\n </Menu.Root>\n );\n};\n\nexport { RelationSingle, RelationMultiple };\nexport type { RelationSingleProps, RelationMultipleProps };\n"],"names":["RelationSingle","mainField","content","formatMessage","useIntl","emptyLabel","id","defaultMessage","_jsx","Typography","maxWidth","textColor","ellipsis","getRelationLabel","RelationMultiple","rowId","name","model","useDoc","notifyStatus","useNotifyAT","isOpen","setIsOpen","React","useState","query","useQueryParams","locale","plugins","i18n","targetField","split","data","isLoading","useGetRelationsQuery","params","skip","refetchOnMountOrArgChange","contentCount","Array","isArray","length","count","useEffect","getTranslation","_jsxs","Menu","Root","onOpenChange","Trigger","onClick","e","stopPropagation","style","cursor","fontWeight","number","Content","Item","disabled","Loader","small","results","_Fragment","map","entry","documentId","pagination","total","aria-disabled","aria-label"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,MAAMA,iBAAiB,CAAC,EAAEC,SAAS,EAAEC,OAAO,EAAuB,GAAA;IACjE,MAAM,EAAEC,aAAa,EAAE,GAAGC,iBAAAA,EAAAA;AAC1B,IAAA,MAAMC,aAAaF,aAAAA,CAAc;QAC/BG,EAAAA,EAAI,wCAAA;QACJC,cAAAA,EAAgB;AAClB,KAAA,CAAA;AAEA,IAAA,qBACEC,cAAA,CAACC,uBAAAA,EAAAA;QAAWC,QAAAA,EAAS,OAAA;QAAQC,SAAAA,EAAU,YAAA;QAAaC,QAAQ,EAAA,IAAA;AACzDC,QAAAA,QAAAA,EAAAA,0BAAAA,CAAiBX,SAASD,SAAAA,EAAWI,UAAAA;;AAG5C;AASA,MAAMS,gBAAAA,GAAmB,CAAC,EAAEb,SAAS,EAAEC,OAAO,EAAEa,KAAK,EAAEC,IAAI,EAAyB,GAAA;IAClF,MAAM,EAAEC,KAAK,EAAE,GAAGC,kBAAAA,EAAAA;IAClB,MAAM,EAAEf,aAAa,EAAE,GAAGC,iBAAAA,EAAAA;AAC1B,IAAA,MAAMC,aAAaF,aAAAA,CAAc;QAC/BG,EAAAA,EAAI,wCAAA;QACJC,cAAAA,EAAgB;AAClB,KAAA,CAAA;IACA,MAAM,EAAEY,YAAY,EAAE,GAAGC,wBAAAA,EAAAA;AACzB,IAAA,MAAM,CAACC,MAAAA,EAAQC,SAAAA,CAAU,GAAGC,gBAAAA,CAAMC,QAAQ,CAAC,KAAA,CAAA;AAC3C,IAAA,MAAM,CAAC,EAAEC,KAAK,EAAE,CAAC,GAAGC,0BAAAA,EAAAA;AACpB,IAAA,MAAMC,MAAAA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rC,cAAAA,EAAgB;AAClB,iCAAA,CAAA;AAEA,gCAAA,QAAA,gBAAAC,cAAA,CAACC,uBAAAA,EAAAA;AAAW,oCAAA,QAAA,EAAA;;;;;;;;;AAQ5B;;;;;"}
|
|
@@ -9,16 +9,25 @@ import { getRelationLabel } from '../../../../utils/relations.mjs';
|
|
|
9
9
|
import { getTranslation } from '../../../../utils/translations.mjs';
|
|
10
10
|
|
|
11
11
|
const RelationSingle = ({ mainField, content })=>{
|
|
12
|
+
const { formatMessage } = useIntl();
|
|
13
|
+
const emptyLabel = formatMessage({
|
|
14
|
+
id: 'content-manager.containers.empty-label',
|
|
15
|
+
defaultMessage: 'Untitled'
|
|
16
|
+
});
|
|
12
17
|
return /*#__PURE__*/ jsx(Typography, {
|
|
13
18
|
maxWidth: "50rem",
|
|
14
19
|
textColor: "neutral800",
|
|
15
20
|
ellipsis: true,
|
|
16
|
-
children: getRelationLabel(content, mainField)
|
|
21
|
+
children: getRelationLabel(content, mainField, emptyLabel)
|
|
17
22
|
});
|
|
18
23
|
};
|
|
19
24
|
const RelationMultiple = ({ mainField, content, rowId, name })=>{
|
|
20
25
|
const { model } = useDoc();
|
|
21
26
|
const { formatMessage } = useIntl();
|
|
27
|
+
const emptyLabel = formatMessage({
|
|
28
|
+
id: 'content-manager.containers.empty-label',
|
|
29
|
+
defaultMessage: 'Untitled'
|
|
30
|
+
});
|
|
22
31
|
const { notifyStatus } = useNotifyAT();
|
|
23
32
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
24
33
|
const [{ query }] = useQueryParams();
|
|
@@ -85,7 +94,7 @@ const RelationMultiple = ({ mainField, content, rowId, name })=>{
|
|
|
85
94
|
children: /*#__PURE__*/ jsx(Typography, {
|
|
86
95
|
maxWidth: "50rem",
|
|
87
96
|
ellipsis: true,
|
|
88
|
-
children: getRelationLabel(entry, mainField)
|
|
97
|
+
children: getRelationLabel(entry, mainField, emptyLabel)
|
|
89
98
|
})
|
|
90
99
|
}, entry.documentId)),
|
|
91
100
|
data?.pagination && data?.pagination.total > 10 && /*#__PURE__*/ jsx(Menu.Item, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Relations.mjs","sources":["../../../../../../admin/src/pages/ListView/components/TableCells/Relations.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { useQueryParams } from '@strapi/admin/strapi-admin';\nimport { Typography, Loader, useNotifyAT, Menu } from '@strapi/design-system';\nimport { useIntl } from 'react-intl';\n\nimport { useDoc } from '../../../../hooks/useDocument';\nimport { useGetRelationsQuery } from '../../../../services/relations';\nimport { getRelationLabel } from '../../../../utils/relations';\nimport { getTranslation } from '../../../../utils/translations';\n\nimport type { CellContentProps } from './CellContent';\n\n/* -------------------------------------------------------------------------------------------------\n * RelationSingle\n * -----------------------------------------------------------------------------------------------*/\n\ninterface RelationSingleProps extends Pick<CellContentProps, 'mainField' | 'content'> {}\n\nconst RelationSingle = ({ mainField, content }: RelationSingleProps) => {\n return (\n <Typography maxWidth=\"50rem\" textColor=\"neutral800\" ellipsis>\n {getRelationLabel(content, mainField)}\n </Typography>\n );\n};\n\n/* -------------------------------------------------------------------------------------------------\n * RelationMultiple\n * -----------------------------------------------------------------------------------------------*/\n\ninterface RelationMultipleProps\n extends Pick<CellContentProps, 'mainField' | 'content' | 'name' | 'rowId'> {}\n\nconst RelationMultiple = ({ mainField, content, rowId, name }: RelationMultipleProps) => {\n const { model } = useDoc();\n const { formatMessage } = useIntl();\n const { notifyStatus } = useNotifyAT();\n const [isOpen, setIsOpen] = React.useState(false);\n const [{ query }] = useQueryParams<{ plugins?: { i18n?: { locale?: string } } }>();\n const locale = query.plugins?.i18n?.locale;\n\n const [targetField] = name.split('.');\n\n const { data, isLoading } = useGetRelationsQuery(\n {\n model,\n id: rowId,\n targetField,\n params: { locale },\n },\n {\n skip: !isOpen,\n refetchOnMountOrArgChange: true,\n }\n );\n\n const contentCount = Array.isArray(content) ? content.length : content.count;\n\n React.useEffect(() => {\n if (data) {\n notifyStatus(\n formatMessage({\n id: getTranslation('ListViewTable.relation-loaded'),\n defaultMessage: 'Relations have been loaded',\n })\n );\n }\n }, [data, formatMessage, notifyStatus]);\n\n return (\n <Menu.Root onOpenChange={(isOpen) => setIsOpen(isOpen)}>\n <Menu.Trigger onClick={(e) => e.stopPropagation()}>\n <Typography style={{ cursor: 'pointer' }} textColor=\"neutral800\" fontWeight=\"regular\">\n {contentCount > 0\n ? formatMessage(\n {\n id: 'content-manager.containers.list.items',\n defaultMessage: '{number} {number, plural, =0 {items} one {item} other {items}}',\n },\n { number: contentCount }\n )\n : '-'}\n </Typography>\n </Menu.Trigger>\n <Menu.Content>\n {isLoading && (\n <Menu.Item disabled>\n <Loader small>\n {formatMessage({\n id: getTranslation('ListViewTable.relation-loading'),\n defaultMessage: 'Relations are loading',\n })}\n </Loader>\n </Menu.Item>\n )}\n {data?.results && (\n <>\n {data.results.map((entry) => (\n <Menu.Item key={entry.documentId}>\n <Typography maxWidth=\"50rem\" ellipsis>\n {getRelationLabel(entry, mainField)}\n </Typography>\n </Menu.Item>\n ))}\n\n {data?.pagination && data?.pagination.total > 10 && (\n <Menu.Item\n aria-disabled\n aria-label={formatMessage({\n id: getTranslation('ListViewTable.relation-more'),\n defaultMessage: 'This relation contains more entities than displayed',\n })}\n >\n <Typography>…</Typography>\n </Menu.Item>\n )}\n </>\n )}\n </Menu.Content>\n </Menu.Root>\n );\n};\n\nexport { RelationSingle, RelationMultiple };\nexport type { RelationSingleProps, RelationMultipleProps };\n"],"names":["RelationSingle","mainField","content","_jsx","Typography","maxWidth","textColor","ellipsis","getRelationLabel","RelationMultiple","rowId","name","model","useDoc","
|
|
1
|
+
{"version":3,"file":"Relations.mjs","sources":["../../../../../../admin/src/pages/ListView/components/TableCells/Relations.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { useQueryParams } from '@strapi/admin/strapi-admin';\nimport { Typography, Loader, useNotifyAT, Menu } from '@strapi/design-system';\nimport { useIntl } from 'react-intl';\n\nimport { useDoc } from '../../../../hooks/useDocument';\nimport { useGetRelationsQuery } from '../../../../services/relations';\nimport { getRelationLabel } from '../../../../utils/relations';\nimport { getTranslation } from '../../../../utils/translations';\n\nimport type { CellContentProps } from './CellContent';\n\n/* -------------------------------------------------------------------------------------------------\n * RelationSingle\n * -----------------------------------------------------------------------------------------------*/\n\ninterface RelationSingleProps extends Pick<CellContentProps, 'mainField' | 'content'> {}\n\nconst RelationSingle = ({ mainField, content }: RelationSingleProps) => {\n const { formatMessage } = useIntl();\n const emptyLabel = formatMessage({\n id: 'content-manager.containers.empty-label',\n defaultMessage: 'Untitled',\n });\n\n return (\n <Typography maxWidth=\"50rem\" textColor=\"neutral800\" ellipsis>\n {getRelationLabel(content, mainField, emptyLabel)}\n </Typography>\n );\n};\n\n/* -------------------------------------------------------------------------------------------------\n * RelationMultiple\n * -----------------------------------------------------------------------------------------------*/\n\ninterface RelationMultipleProps\n extends Pick<CellContentProps, 'mainField' | 'content' | 'name' | 'rowId'> {}\n\nconst RelationMultiple = ({ mainField, content, rowId, name }: RelationMultipleProps) => {\n const { model } = useDoc();\n const { formatMessage } = useIntl();\n const emptyLabel = formatMessage({\n id: 'content-manager.containers.empty-label',\n defaultMessage: 'Untitled',\n });\n const { notifyStatus } = useNotifyAT();\n const [isOpen, setIsOpen] = React.useState(false);\n const [{ query }] = useQueryParams<{ plugins?: { i18n?: { locale?: string } } }>();\n const locale = query.plugins?.i18n?.locale;\n\n const [targetField] = name.split('.');\n\n const { data, isLoading } = useGetRelationsQuery(\n {\n model,\n id: rowId,\n targetField,\n params: { locale },\n },\n {\n skip: !isOpen,\n refetchOnMountOrArgChange: true,\n }\n );\n\n const contentCount = Array.isArray(content) ? content.length : content.count;\n\n React.useEffect(() => {\n if (data) {\n notifyStatus(\n formatMessage({\n id: getTranslation('ListViewTable.relation-loaded'),\n defaultMessage: 'Relations have been loaded',\n })\n );\n }\n }, [data, formatMessage, notifyStatus]);\n\n return (\n <Menu.Root onOpenChange={(isOpen) => setIsOpen(isOpen)}>\n <Menu.Trigger onClick={(e) => e.stopPropagation()}>\n <Typography style={{ cursor: 'pointer' }} textColor=\"neutral800\" fontWeight=\"regular\">\n {contentCount > 0\n ? formatMessage(\n {\n id: 'content-manager.containers.list.items',\n defaultMessage: '{number} {number, plural, =0 {items} one {item} other {items}}',\n },\n { number: contentCount }\n )\n : '-'}\n </Typography>\n </Menu.Trigger>\n <Menu.Content>\n {isLoading && (\n <Menu.Item disabled>\n <Loader small>\n {formatMessage({\n id: getTranslation('ListViewTable.relation-loading'),\n defaultMessage: 'Relations are loading',\n })}\n </Loader>\n </Menu.Item>\n )}\n {data?.results && (\n <>\n {data.results.map((entry) => (\n <Menu.Item key={entry.documentId}>\n <Typography maxWidth=\"50rem\" ellipsis>\n {getRelationLabel(entry, mainField, emptyLabel)}\n </Typography>\n </Menu.Item>\n ))}\n\n {data?.pagination && data?.pagination.total > 10 && (\n <Menu.Item\n aria-disabled\n aria-label={formatMessage({\n id: getTranslation('ListViewTable.relation-more'),\n defaultMessage: 'This relation contains more entities than displayed',\n })}\n >\n <Typography>…</Typography>\n </Menu.Item>\n )}\n </>\n )}\n </Menu.Content>\n </Menu.Root>\n );\n};\n\nexport { RelationSingle, RelationMultiple };\nexport type { RelationSingleProps, RelationMultipleProps };\n"],"names":["RelationSingle","mainField","content","formatMessage","useIntl","emptyLabel","id","defaultMessage","_jsx","Typography","maxWidth","textColor","ellipsis","getRelationLabel","RelationMultiple","rowId","name","model","useDoc","notifyStatus","useNotifyAT","isOpen","setIsOpen","React","useState","query","useQueryParams","locale","plugins","i18n","targetField","split","data","isLoading","useGetRelationsQuery","params","skip","refetchOnMountOrArgChange","contentCount","Array","isArray","length","count","useEffect","getTranslation","_jsxs","Menu","Root","onOpenChange","Trigger","onClick","e","stopPropagation","style","cursor","fontWeight","number","Content","Item","disabled","Loader","small","results","_Fragment","map","entry","documentId","pagination","total","aria-disabled","aria-label"],"mappings":";;;;;;;;;;AAmBA,MAAMA,iBAAiB,CAAC,EAAE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zB,GAAA,CAACsC,KAAKY,IAAI,EAAA;wBAACC,QAAQ,EAAA,IAAA;AACjB,wBAAA,QAAA,gBAAAnD,GAAA,CAACoD,MAAAA,EAAAA;4BAAOC,KAAK,EAAA,IAAA;sCACV1D,aAAAA,CAAc;AACbG,gCAAAA,EAAAA,EAAIsC,cAAAA,CAAe,gCAAA,CAAA;gCACnBrC,cAAAA,EAAgB;AAClB,6BAAA;;;AAILyB,oBAAAA,IAAAA,EAAM8B,OAAAA,kBACLjB,IAAA,CAAAkB,QAAA,EAAA;;4BACG/B,IAAAA,CAAK8B,OAAO,CAACE,GAAG,CAAC,CAACC,KAAAA,iBACjBzD,GAAA,CAACsC,KAAKY,IAAI,EAAA;AACR,oCAAA,QAAA,gBAAAlD,GAAA,CAACC,UAAAA,EAAAA;wCAAWC,QAAAA,EAAS,OAAA;wCAAQE,QAAQ,EAAA,IAAA;AAClCC,wCAAAA,QAAAA,EAAAA,gBAAAA,CAAiBoD,OAAOhE,SAAAA,EAAWI,UAAAA;;AAFxB4D,iCAAAA,EAAAA,KAAAA,CAAMC,UAAU,CAAA,CAAA;AAOjClC,4BAAAA,IAAAA,EAAMmC,cAAcnC,IAAAA,EAAMmC,UAAAA,CAAWC,QAAQ,EAAA,kBAC5C5D,GAAA,CAACsC,KAAKY,IAAI,EAAA;gCACRW,eAAa,EAAA,IAAA;AACbC,gCAAAA,YAAAA,EAAYnE,aAAAA,CAAc;AACxBG,oCAAAA,EAAAA,EAAIsC,cAAAA,CAAe,6BAAA,CAAA;oCACnBrC,cAAAA,EAAgB;AAClB,iCAAA,CAAA;AAEA,gCAAA,QAAA,gBAAAC,GAAA,CAACC,UAAAA,EAAAA;AAAW,oCAAA,QAAA,EAAA;;;;;;;;;AAQ5B;;;;"}
|
|
@@ -4,9 +4,10 @@ import type { RelationResult } from '../../../shared/contracts/relations';
|
|
|
4
4
|
* @internal
|
|
5
5
|
* @description Get the label of a relation, the contract has [key: string]: unknown,
|
|
6
6
|
* so we need to check if the mainFieldKey is defined and if the relation has a value
|
|
7
|
-
* under that property. If it does, we then verify
|
|
7
|
+
* under that property. If it does, we then verify its type and return it.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
9
|
+
* An empty string or null uses a neutral label instead of exposing the documentId. Other missing
|
|
10
|
+
* or unsupported values fallback to the documentId.
|
|
10
11
|
*/
|
|
11
|
-
declare const getRelationLabel: (relation: RelationResult, mainField?: MainField) => string;
|
|
12
|
+
declare const getRelationLabel: (relation: RelationResult, mainField?: MainField, emptyLabel?: string) => string;
|
|
12
13
|
export { getRelationLabel };
|
|
@@ -187,6 +187,7 @@ var cs = {
|
|
|
187
187
|
"containers.SettingsPage.pluginHeaderDescription": "Nakonfigurujte nastavení pro všechny své Collection Types a skupiny",
|
|
188
188
|
"containers.SettingsView.list.subtitle": "Nakonfigurujte rozložení a zobrazení svých Collection Types a skupin",
|
|
189
189
|
"containers.SettingsView.list.title": "Zobrazit nastavení",
|
|
190
|
+
"containers.empty-label": "Bez názvu",
|
|
190
191
|
"containers.untitled": "Bez názvu",
|
|
191
192
|
"dnd.cancel-item": "{item}, puštěno. Změna pořadí zrušena.",
|
|
192
193
|
"dnd.drop-item": "{item}, puštěno. Konečná pozice v seznamu: {position}.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cs.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cs.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -183,6 +183,7 @@ var cs = {
|
|
|
183
183
|
"containers.SettingsPage.pluginHeaderDescription": "Nakonfigurujte nastavení pro všechny své Collection Types a skupiny",
|
|
184
184
|
"containers.SettingsView.list.subtitle": "Nakonfigurujte rozložení a zobrazení svých Collection Types a skupin",
|
|
185
185
|
"containers.SettingsView.list.title": "Zobrazit nastavení",
|
|
186
|
+
"containers.empty-label": "Bez názvu",
|
|
186
187
|
"containers.untitled": "Bez názvu",
|
|
187
188
|
"dnd.cancel-item": "{item}, puštěno. Změna pořadí zrušena.",
|
|
188
189
|
"dnd.drop-item": "{item}, puštěno. Konečná pozice v seznamu: {position}.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cs.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cs.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -163,6 +163,7 @@ var de = {
|
|
|
163
163
|
"containers.SettingsPage.pluginHeaderDescription": "Einstellungen für alle Sammlungen und Gruppen konfigurieren",
|
|
164
164
|
"containers.SettingsView.list.subtitle": "Layout und Darstellung für alle Sammlungen und Gruppen konfigurieren",
|
|
165
165
|
"containers.SettingsView.list.title": "Darstellungsoptionen",
|
|
166
|
+
"containers.empty-label": "Unbenannt",
|
|
166
167
|
"containers.untitled": "Unbenannt",
|
|
167
168
|
"dnd.cancel-item": "{item}, fallen gelassen. Neuordnung abgebrochen.",
|
|
168
169
|
"dnd.drop-item": "{item}, fallen gelassen. Endposition in der Liste: {position}.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"de.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -159,6 +159,7 @@ var de = {
|
|
|
159
159
|
"containers.SettingsPage.pluginHeaderDescription": "Einstellungen für alle Sammlungen und Gruppen konfigurieren",
|
|
160
160
|
"containers.SettingsView.list.subtitle": "Layout und Darstellung für alle Sammlungen und Gruppen konfigurieren",
|
|
161
161
|
"containers.SettingsView.list.title": "Darstellungsoptionen",
|
|
162
|
+
"containers.empty-label": "Unbenannt",
|
|
162
163
|
"containers.untitled": "Unbenannt",
|
|
163
164
|
"dnd.cancel-item": "{item}, fallen gelassen. Neuordnung abgebrochen.",
|
|
164
165
|
"dnd.drop-item": "{item}, fallen gelassen. Endposition in der Liste: {position}.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"de.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -180,6 +180,7 @@ var en = {
|
|
|
180
180
|
"containers.SettingsPage.pluginHeaderDescription": "Configure the settings for all your Collection Types and Groups",
|
|
181
181
|
"containers.SettingsView.list.subtitle": "Configure the layout and display of your Collection Types and Groups",
|
|
182
182
|
"containers.SettingsView.list.title": "Display configurations",
|
|
183
|
+
"containers.empty-label": "Untitled",
|
|
183
184
|
"containers.untitled": "Untitled",
|
|
184
185
|
"dnd.cancel-item": "{item}, dropped. Re-order cancelled.",
|
|
185
186
|
"dnd.drop-item": "{item}, dropped. Final position in list: {position}.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -176,6 +176,7 @@ var en = {
|
|
|
176
176
|
"containers.SettingsPage.pluginHeaderDescription": "Configure the settings for all your Collection Types and Groups",
|
|
177
177
|
"containers.SettingsView.list.subtitle": "Configure the layout and display of your Collection Types and Groups",
|
|
178
178
|
"containers.SettingsView.list.title": "Display configurations",
|
|
179
|
+
"containers.empty-label": "Untitled",
|
|
179
180
|
"containers.untitled": "Untitled",
|
|
180
181
|
"dnd.cancel-item": "{item}, dropped. Re-order cancelled.",
|
|
181
182
|
"dnd.drop-item": "{item}, dropped. Final position in list: {position}.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"en.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -266,6 +266,7 @@ var fr = {
|
|
|
266
266
|
"containers.edit-settings.modal-form.placeholder": "Placeholder",
|
|
267
267
|
"containers.edit-settings.modal-form.mainField": "Titre de l'entrée",
|
|
268
268
|
"containers.edit-settings.modal-form.editable": "Champ modifiable",
|
|
269
|
+
"containers.empty-label": "Sans titre",
|
|
269
270
|
"containers.untitled": "Sans titre",
|
|
270
271
|
"dnd.cancel-item": "{item}, , abandonné. Annulation de la réorganisation.",
|
|
271
272
|
"dnd.drop-item": "{item}, abandonné. Position finale dans la liste : {position}",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fr.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -262,6 +262,7 @@ var fr = {
|
|
|
262
262
|
"containers.edit-settings.modal-form.placeholder": "Placeholder",
|
|
263
263
|
"containers.edit-settings.modal-form.mainField": "Titre de l'entrée",
|
|
264
264
|
"containers.edit-settings.modal-form.editable": "Champ modifiable",
|
|
265
|
+
"containers.empty-label": "Sans titre",
|
|
265
266
|
"containers.untitled": "Sans titre",
|
|
266
267
|
"dnd.cancel-item": "{item}, , abandonné. Annulation de la réorganisation.",
|
|
267
268
|
"dnd.drop-item": "{item}, abandonné. Position finale dans la liste : {position}",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fr.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -198,6 +198,7 @@ var ja = {
|
|
|
198
198
|
"containers.SettingsView.list.subtitle": "コレクションタイプとグループのレイアウトと表示を設定",
|
|
199
199
|
"containers.SettingsView.list.title": "表示設定",
|
|
200
200
|
"containers.SettingViewModel.pluginHeader.title": "コンテンツ管理 - {name}",
|
|
201
|
+
"containers.empty-label": "無題",
|
|
201
202
|
"containers.untitled": "無題",
|
|
202
203
|
"dnd.cancel-item": "{item}をドロップしました。並べ替えがキャンセルされました。",
|
|
203
204
|
"dnd.drop-item": "{item}をドロップしました。リスト内の最終位置: {position}。",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ja.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ja.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -194,6 +194,7 @@ var ja = {
|
|
|
194
194
|
"containers.SettingsView.list.subtitle": "コレクションタイプとグループのレイアウトと表示を設定",
|
|
195
195
|
"containers.SettingsView.list.title": "表示設定",
|
|
196
196
|
"containers.SettingViewModel.pluginHeader.title": "コンテンツ管理 - {name}",
|
|
197
|
+
"containers.empty-label": "無題",
|
|
197
198
|
"containers.untitled": "無題",
|
|
198
199
|
"dnd.cancel-item": "{item}をドロップしました。並べ替えがキャンセルされました。",
|
|
199
200
|
"dnd.drop-item": "{item}をドロップしました。リスト内の最終位置: {position}。",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ja.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ja.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -270,6 +270,7 @@ var ko = {
|
|
|
270
270
|
"containers.SettingPage.editSettings.relationOpenMode.newTab": "새 탭에서 열기",
|
|
271
271
|
"containers.SettingPage.editSettings.relationOpenMode.page": "페이지로 이동",
|
|
272
272
|
"containers.SettingPage.relations": "관련 필드",
|
|
273
|
+
"containers.empty-label": "제목 없음",
|
|
273
274
|
"containers.untitled": "제목 없음",
|
|
274
275
|
"dnd.cancel-item": "{item}, 놓았습니다. 순서 변경이 취소되었습니다.",
|
|
275
276
|
"dnd.drop-item": "{item}, 놓았습니다. 목록에서의 최종 위치: {position}.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ko.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ko.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -266,6 +266,7 @@ var ko = {
|
|
|
266
266
|
"containers.SettingPage.editSettings.relationOpenMode.newTab": "새 탭에서 열기",
|
|
267
267
|
"containers.SettingPage.editSettings.relationOpenMode.page": "페이지로 이동",
|
|
268
268
|
"containers.SettingPage.relations": "관련 필드",
|
|
269
|
+
"containers.empty-label": "제목 없음",
|
|
269
270
|
"containers.untitled": "제목 없음",
|
|
270
271
|
"dnd.cancel-item": "{item}, 놓았습니다. 순서 변경이 취소되었습니다.",
|
|
271
272
|
"dnd.drop-item": "{item}, 놓았습니다. 목록에서의 최종 위치: {position}.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ko.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ko.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -202,6 +202,7 @@ var nl = {
|
|
|
202
202
|
"containers.list.selectedEntriesModal.title": "Items publiceren",
|
|
203
203
|
"containers.list.table-headers.publishedAt": "Status",
|
|
204
204
|
"containers.list.table.row-actions": "Rijacties",
|
|
205
|
+
"containers.empty-label": "Naamloos",
|
|
205
206
|
"containers.untitled": "Naamloos",
|
|
206
207
|
"dnd.cancel-item": "{item}, losgelaten. Herschikking geannuleerd.",
|
|
207
208
|
"dnd.drop-item": "{item}, losgelaten. Uiteindelijke positie in lijst: {position}.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nl.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nl.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -198,6 +198,7 @@ var nl = {
|
|
|
198
198
|
"containers.list.selectedEntriesModal.title": "Items publiceren",
|
|
199
199
|
"containers.list.table-headers.publishedAt": "Status",
|
|
200
200
|
"containers.list.table.row-actions": "Rijacties",
|
|
201
|
+
"containers.empty-label": "Naamloos",
|
|
201
202
|
"containers.untitled": "Naamloos",
|
|
202
203
|
"dnd.cancel-item": "{item}, losgelaten. Herschikking geannuleerd.",
|
|
203
204
|
"dnd.drop-item": "{item}, losgelaten. Uiteindelijke positie in lijst: {position}.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nl.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nl.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -178,6 +178,7 @@ var pl = {
|
|
|
178
178
|
"containers.SettingsPage.pluginHeaderDescription": "Skonfiguruj domyślne opcje wszystkich twoich modeli",
|
|
179
179
|
"containers.SettingsView.list.subtitle": "Skonfiguruj układ i wyświetlanie modeli i grup",
|
|
180
180
|
"containers.SettingsView.list.title": "Wyświetl ustawienia",
|
|
181
|
+
"containers.empty-label": "Bez tytułu",
|
|
181
182
|
"containers.untitled": "Bez tytułu",
|
|
182
183
|
"dnd.cancel-item": "{item}, upuszczony. Anulowano zmianę kolejności.",
|
|
183
184
|
"dnd.drop-item": "{item}, upuszczony. Finalna pozycja na liście: {position}.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pl.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pl.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -174,6 +174,7 @@ var pl = {
|
|
|
174
174
|
"containers.SettingsPage.pluginHeaderDescription": "Skonfiguruj domyślne opcje wszystkich twoich modeli",
|
|
175
175
|
"containers.SettingsView.list.subtitle": "Skonfiguruj układ i wyświetlanie modeli i grup",
|
|
176
176
|
"containers.SettingsView.list.title": "Wyświetl ustawienia",
|
|
177
|
+
"containers.empty-label": "Bez tytułu",
|
|
177
178
|
"containers.untitled": "Bez tytułu",
|
|
178
179
|
"dnd.cancel-item": "{item}, upuszczony. Anulowano zmianę kolejności.",
|
|
179
180
|
"dnd.drop-item": "{item}, upuszczony. Finalna pozycja na liście: {position}.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pl.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pl.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -196,6 +196,7 @@ var sk = {
|
|
|
196
196
|
"containers.SettingsPage.pluginHeaderDescription": "Konfigurovať nastavenia pre všetky Vaše kolekcie a skupiny",
|
|
197
197
|
"containers.SettingsView.list.subtitle": "Konfigurovať rozloženie a zobrazenie stránky Vaších kolekcií a skupín",
|
|
198
198
|
"containers.SettingsView.list.title": "Zobraziť nastavenia",
|
|
199
|
+
"containers.empty-label": "Bez názvu",
|
|
199
200
|
"containers.untitled": "Bez názvu",
|
|
200
201
|
"dnd.cancel-item": "{item}, pustené. Zmena poradia zrušená.",
|
|
201
202
|
"dnd.drop-item": "{item}, pustené. Konečná pozícia v zozname: {position}.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sk.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sk.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -192,6 +192,7 @@ var sk = {
|
|
|
192
192
|
"containers.SettingsPage.pluginHeaderDescription": "Konfigurovať nastavenia pre všetky Vaše kolekcie a skupiny",
|
|
193
193
|
"containers.SettingsView.list.subtitle": "Konfigurovať rozloženie a zobrazenie stránky Vaších kolekcií a skupín",
|
|
194
194
|
"containers.SettingsView.list.title": "Zobraziť nastavenia",
|
|
195
|
+
"containers.empty-label": "Bez názvu",
|
|
195
196
|
"containers.untitled": "Bez názvu",
|
|
196
197
|
"dnd.cancel-item": "{item}, pustené. Zmena poradia zrušená.",
|
|
197
198
|
"dnd.drop-item": "{item}, pustené. Konečná pozícia v zozname: {position}.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sk.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sk.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -4,11 +4,16 @@
|
|
|
4
4
|
* @internal
|
|
5
5
|
* @description Get the label of a relation, the contract has [key: string]: unknown,
|
|
6
6
|
* so we need to check if the mainFieldKey is defined and if the relation has a value
|
|
7
|
-
* under that property. If it does, we then verify
|
|
7
|
+
* under that property. If it does, we then verify its type and return it.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
* An empty string or null uses a neutral label instead of exposing the documentId. Other missing
|
|
10
|
+
* or unsupported values fallback to the documentId.
|
|
11
|
+
*/ const getRelationLabel = (relation, mainField, emptyLabel = 'Untitled')=>{
|
|
12
|
+
const mainFieldValue = mainField ? relation[mainField.name] : undefined;
|
|
13
|
+
if (mainFieldValue === '' || mainFieldValue === null) {
|
|
14
|
+
return emptyLabel;
|
|
15
|
+
}
|
|
16
|
+
const label = mainFieldValue || null;
|
|
12
17
|
if (typeof label === 'string') {
|
|
13
18
|
return label;
|
|
14
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relations.js","sources":["../../../admin/src/utils/relations.ts"],"sourcesContent":["import type { MainField } from './attributes';\nimport type { RelationResult } from '../../../shared/contracts/relations';\n\n/**\n * @internal\n * @description Get the label of a relation, the contract has [key: string]: unknown,\n * so we need to check if the mainFieldKey is defined and if the relation has a value\n * under that property. If it does, we then verify
|
|
1
|
+
{"version":3,"file":"relations.js","sources":["../../../admin/src/utils/relations.ts"],"sourcesContent":["import type { MainField } from './attributes';\nimport type { RelationResult } from '../../../shared/contracts/relations';\n\n/**\n * @internal\n * @description Get the label of a relation, the contract has [key: string]: unknown,\n * so we need to check if the mainFieldKey is defined and if the relation has a value\n * under that property. If it does, we then verify its type and return it.\n *\n * An empty string or null uses a neutral label instead of exposing the documentId. Other missing\n * or unsupported values fallback to the documentId.\n */\nconst getRelationLabel = (\n relation: RelationResult,\n mainField?: MainField,\n emptyLabel = 'Untitled'\n): string => {\n const mainFieldValue = mainField ? relation[mainField.name] : undefined;\n\n if (mainFieldValue === '' || mainFieldValue === null) {\n return emptyLabel;\n }\n\n const label = mainFieldValue || null;\n\n if (typeof label === 'string') {\n return label;\n }\n\n // Return numeric labels except for the internal 'id' field.\n if (typeof label === 'number' && mainField?.name !== 'id') {\n return String(label);\n }\n\n return relation.documentId;\n};\n\nexport { getRelationLabel };\n"],"names":["getRelationLabel","relation","mainField","emptyLabel","mainFieldValue","name","undefined","label","String","documentId"],"mappings":";;AAGA;;;;;;;;AAQC,UACKA,gBAAAA,GAAmB,CACvBC,QAAAA,EACAC,SAAAA,EACAC,aAAa,UAAU,GAAA;AAEvB,IAAA,MAAMC,iBAAiBF,SAAAA,GAAYD,QAAQ,CAACC,SAAAA,CAAUG,IAAI,CAAC,GAAGC,SAAAA;IAE9D,IAAIF,cAAAA,KAAmB,EAAA,IAAMA,cAAAA,KAAmB,IAAA,EAAM;QACpD,OAAOD,UAAAA;AACT,IAAA;AAEA,IAAA,MAAMI,QAAQH,cAAAA,IAAkB,IAAA;IAEhC,IAAI,OAAOG,UAAU,QAAA,EAAU;QAC7B,OAAOA,KAAAA;AACT,IAAA;;AAGA,IAAA,IAAI,OAAOA,KAAAA,KAAU,QAAA,IAAYL,SAAAA,EAAWG,SAAS,IAAA,EAAM;AACzD,QAAA,OAAOG,MAAAA,CAAOD,KAAAA,CAAAA;AAChB,IAAA;AAEA,IAAA,OAAON,SAASQ,UAAU;AAC5B;;;;"}
|
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
* @internal
|
|
3
3
|
* @description Get the label of a relation, the contract has [key: string]: unknown,
|
|
4
4
|
* so we need to check if the mainFieldKey is defined and if the relation has a value
|
|
5
|
-
* under that property. If it does, we then verify
|
|
5
|
+
* under that property. If it does, we then verify its type and return it.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
* An empty string or null uses a neutral label instead of exposing the documentId. Other missing
|
|
8
|
+
* or unsupported values fallback to the documentId.
|
|
9
|
+
*/ const getRelationLabel = (relation, mainField, emptyLabel = 'Untitled')=>{
|
|
10
|
+
const mainFieldValue = mainField ? relation[mainField.name] : undefined;
|
|
11
|
+
if (mainFieldValue === '' || mainFieldValue === null) {
|
|
12
|
+
return emptyLabel;
|
|
13
|
+
}
|
|
14
|
+
const label = mainFieldValue || null;
|
|
10
15
|
if (typeof label === 'string') {
|
|
11
16
|
return label;
|
|
12
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relations.mjs","sources":["../../../admin/src/utils/relations.ts"],"sourcesContent":["import type { MainField } from './attributes';\nimport type { RelationResult } from '../../../shared/contracts/relations';\n\n/**\n * @internal\n * @description Get the label of a relation, the contract has [key: string]: unknown,\n * so we need to check if the mainFieldKey is defined and if the relation has a value\n * under that property. If it does, we then verify
|
|
1
|
+
{"version":3,"file":"relations.mjs","sources":["../../../admin/src/utils/relations.ts"],"sourcesContent":["import type { MainField } from './attributes';\nimport type { RelationResult } from '../../../shared/contracts/relations';\n\n/**\n * @internal\n * @description Get the label of a relation, the contract has [key: string]: unknown,\n * so we need to check if the mainFieldKey is defined and if the relation has a value\n * under that property. If it does, we then verify its type and return it.\n *\n * An empty string or null uses a neutral label instead of exposing the documentId. Other missing\n * or unsupported values fallback to the documentId.\n */\nconst getRelationLabel = (\n relation: RelationResult,\n mainField?: MainField,\n emptyLabel = 'Untitled'\n): string => {\n const mainFieldValue = mainField ? relation[mainField.name] : undefined;\n\n if (mainFieldValue === '' || mainFieldValue === null) {\n return emptyLabel;\n }\n\n const label = mainFieldValue || null;\n\n if (typeof label === 'string') {\n return label;\n }\n\n // Return numeric labels except for the internal 'id' field.\n if (typeof label === 'number' && mainField?.name !== 'id') {\n return String(label);\n }\n\n return relation.documentId;\n};\n\nexport { getRelationLabel };\n"],"names":["getRelationLabel","relation","mainField","emptyLabel","mainFieldValue","name","undefined","label","String","documentId"],"mappings":"AAGA;;;;;;;;AAQC,UACKA,gBAAAA,GAAmB,CACvBC,QAAAA,EACAC,SAAAA,EACAC,aAAa,UAAU,GAAA;AAEvB,IAAA,MAAMC,iBAAiBF,SAAAA,GAAYD,QAAQ,CAACC,SAAAA,CAAUG,IAAI,CAAC,GAAGC,SAAAA;IAE9D,IAAIF,cAAAA,KAAmB,EAAA,IAAMA,cAAAA,KAAmB,IAAA,EAAM;QACpD,OAAOD,UAAAA;AACT,IAAA;AAEA,IAAA,MAAMI,QAAQH,cAAAA,IAAkB,IAAA;IAEhC,IAAI,OAAOG,UAAU,QAAA,EAAU;QAC7B,OAAOA,KAAAA;AACT,IAAA;;AAGA,IAAA,IAAI,OAAOA,KAAAA,KAAU,QAAA,IAAYL,SAAAA,EAAWG,SAAS,IAAA,EAAM;AACzD,QAAA,OAAOG,MAAAA,CAAOD,KAAAA,CAAAA;AAChB,IAAA;AAEA,IAAA,OAAON,SAASQ,UAAU;AAC5B;;;;"}
|
|
@@ -23,8 +23,6 @@ const createPermissionChecker = (strapi)=>({ userAbility, model })=>{
|
|
|
23
23
|
const toSubject = (entity)=>{
|
|
24
24
|
return entity ? permissionsManager.toSubject(entity, model) : model;
|
|
25
25
|
};
|
|
26
|
-
// @ts-expect-error preserve the parameter order
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/default-param-last
|
|
28
26
|
const can = (action, entity, field)=>{
|
|
29
27
|
const subject = toSubject(entity);
|
|
30
28
|
const aliases = actionProvider.unstable_aliases(action, model);
|
|
@@ -32,8 +30,6 @@ const createPermissionChecker = (strapi)=>({ userAbility, model })=>{
|
|
|
32
30
|
userAbility.can(action, subject, field) || // Else try every known alias if at least one of them succeed, then the user "can"
|
|
33
31
|
aliases.some((alias)=>userAbility.can(alias, subject, field)));
|
|
34
32
|
};
|
|
35
|
-
// @ts-expect-error preserve the parameter order
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/default-param-last
|
|
37
33
|
const cannot = (action, entity, field)=>{
|
|
38
34
|
const subject = toSubject(entity);
|
|
39
35
|
const aliases = actionProvider.unstable_aliases(action, model);
|