@blaze-cms/plugin-data-ui 0.139.0-alpha.0 → 0.139.0-core-styles.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -2
- package/README.md +42 -0
- package/lib/components/EntityDataListing/EntityDataListing.js +3 -24
- package/lib/components/EntityDataListing/EntityDataListing.js.map +1 -1
- package/lib/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js +39 -0
- package/lib/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js.map +1 -0
- package/lib/components/EntityManager/Entity/EntitiyNavLinks/index.js +12 -0
- package/lib/components/EntityManager/Entity/EntitiyNavLinks/index.js.map +1 -0
- package/lib/components/EntityManager/Entity/Entity.js +16 -3
- package/lib/components/EntityManager/Entity/Entity.js.map +1 -1
- package/lib/components/EntityManager/Entity/SideBarRelations/container/CustomSidebarInfoContainer.js +44 -0
- package/lib/components/EntityManager/Entity/SideBarRelations/container/CustomSidebarInfoContainer.js.map +1 -0
- package/lib/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js +32 -0
- package/lib/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js.map +1 -0
- package/lib/components/EntityManager/Entity/SideBarRelations/hooks/useCustomSidebarData.js +45 -0
- package/lib/components/EntityManager/Entity/SideBarRelations/hooks/useCustomSidebarData.js.map +1 -0
- package/lib/components/EntityManager/Entity/SideBarRelations/index.js +12 -2
- package/lib/components/EntityManager/Entity/SideBarRelations/index.js.map +1 -1
- package/lib/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js +38 -0
- package/lib/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js.map +1 -0
- package/lib/components/InfoBoxes/InfoBoxes.js +36 -0
- package/lib/components/InfoBoxes/InfoBoxes.js.map +1 -0
- package/lib/components/InfoBoxes/container/InfoBoxContainer.js +44 -0
- package/lib/components/InfoBoxes/container/InfoBoxContainer.js.map +1 -0
- package/lib/components/InfoBoxes/helpers/build-dynamic-query.js +25 -0
- package/lib/components/InfoBoxes/helpers/build-dynamic-query.js.map +1 -0
- package/lib/components/InfoBoxes/hooks/useData.js +42 -0
- package/lib/components/InfoBoxes/hooks/useData.js.map +1 -0
- package/lib/components/InfoBoxes/hooks/useInfoBox.js +26 -0
- package/lib/components/InfoBoxes/hooks/useInfoBox.js.map +1 -0
- package/lib/components/InfoBoxes/index.js +12 -0
- package/lib/components/InfoBoxes/index.js.map +1 -0
- package/lib/components/InfoBoxes/presentational/InfoBox.js +46 -0
- package/lib/components/InfoBoxes/presentational/InfoBox.js.map +1 -0
- package/lib/components/ListingTable/ListingTable.js +125 -80
- package/lib/components/ListingTable/ListingTable.js.map +1 -1
- package/lib/components/ListingTable/ListingTableContent/ListingTableContent.js +8 -20
- package/lib/components/ListingTable/ListingTableContent/ListingTableContent.js.map +1 -1
- package/lib/components/ListingTable/mappers/populate-rows.js +92 -26
- package/lib/components/ListingTable/mappers/populate-rows.js.map +1 -1
- package/lib/components/ListingTable/service/index.js +73 -11
- package/lib/components/ListingTable/service/index.js.map +1 -1
- package/lib/constants.js +11 -1
- package/lib/constants.js.map +1 -1
- package/lib/icons/ContentIcon.js +90 -0
- package/lib/icons/ContentIcon.js.map +1 -0
- package/lib/icons/SettingsIcon.js +66 -0
- package/lib/icons/SettingsIcon.js.map +1 -0
- package/lib/icons/TaxonomyIcon.js +90 -0
- package/lib/icons/TaxonomyIcon.js.map +1 -0
- package/lib/icons/UsersIcon.js +64 -0
- package/lib/icons/UsersIcon.js.map +1 -0
- package/lib/icons/index.js +36 -0
- package/lib/icons/index.js.map +1 -0
- package/lib/index.js +38 -11
- package/lib/index.js.map +1 -1
- package/lib/utils/add-content-menu-items.js +61 -13
- package/lib/utils/add-content-menu-items.js.map +1 -1
- package/lib/utils/build-listing-query.js +11 -2
- package/lib/utils/build-listing-query.js.map +1 -1
- package/lib/utils/get-default-query-params.js +3 -4
- package/lib/utils/get-default-query-params.js.map +1 -1
- package/lib-es/components/EntityDataListing/EntityDataListing.js +3 -14
- package/lib-es/components/EntityDataListing/EntityDataListing.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js +30 -0
- package/lib-es/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js.map +1 -0
- package/lib-es/components/EntityManager/Entity/EntitiyNavLinks/index.js +3 -0
- package/lib-es/components/EntityManager/Entity/EntitiyNavLinks/index.js.map +1 -0
- package/lib-es/components/EntityManager/Entity/Entity.js +16 -3
- package/lib-es/components/EntityManager/Entity/Entity.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/SideBarRelations/container/CustomSidebarInfoContainer.js +30 -0
- package/lib-es/components/EntityManager/Entity/SideBarRelations/container/CustomSidebarInfoContainer.js.map +1 -0
- package/lib-es/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js +26 -0
- package/lib-es/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js.map +1 -0
- package/lib-es/components/EntityManager/Entity/SideBarRelations/hooks/useCustomSidebarData.js +39 -0
- package/lib-es/components/EntityManager/Entity/SideBarRelations/hooks/useCustomSidebarData.js.map +1 -0
- package/lib-es/components/EntityManager/Entity/SideBarRelations/index.js +12 -2
- package/lib-es/components/EntityManager/Entity/SideBarRelations/index.js.map +1 -1
- package/lib-es/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js +24 -0
- package/lib-es/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js.map +1 -0
- package/lib-es/components/InfoBoxes/InfoBoxes.js +28 -0
- package/lib-es/components/InfoBoxes/InfoBoxes.js.map +1 -0
- package/lib-es/components/InfoBoxes/container/InfoBoxContainer.js +30 -0
- package/lib-es/components/InfoBoxes/container/InfoBoxContainer.js.map +1 -0
- package/lib-es/components/InfoBoxes/helpers/build-dynamic-query.js +25 -0
- package/lib-es/components/InfoBoxes/helpers/build-dynamic-query.js.map +1 -0
- package/lib-es/components/InfoBoxes/hooks/useData.js +37 -0
- package/lib-es/components/InfoBoxes/hooks/useData.js.map +1 -0
- package/lib-es/components/InfoBoxes/hooks/useInfoBox.js +19 -0
- package/lib-es/components/InfoBoxes/hooks/useInfoBox.js.map +1 -0
- package/lib-es/components/InfoBoxes/index.js +3 -0
- package/lib-es/components/InfoBoxes/index.js.map +1 -0
- package/lib-es/components/InfoBoxes/presentational/InfoBox.js +31 -0
- package/lib-es/components/InfoBoxes/presentational/InfoBox.js.map +1 -0
- package/lib-es/components/ListingTable/ListingTable.js +56 -50
- package/lib-es/components/ListingTable/ListingTable.js.map +1 -1
- package/lib-es/components/ListingTable/ListingTableContent/ListingTableContent.js +11 -19
- package/lib-es/components/ListingTable/ListingTableContent/ListingTableContent.js.map +1 -1
- package/lib-es/components/ListingTable/mappers/populate-rows.js +76 -24
- package/lib-es/components/ListingTable/mappers/populate-rows.js.map +1 -1
- package/lib-es/components/ListingTable/service/index.js +65 -7
- package/lib-es/components/ListingTable/service/index.js.map +1 -1
- package/lib-es/constants.js +9 -1
- package/lib-es/constants.js.map +1 -1
- package/lib-es/icons/ContentIcon.js +80 -0
- package/lib-es/icons/ContentIcon.js.map +1 -0
- package/lib-es/icons/SettingsIcon.js +56 -0
- package/lib-es/icons/SettingsIcon.js.map +1 -0
- package/lib-es/icons/TaxonomyIcon.js +80 -0
- package/lib-es/icons/TaxonomyIcon.js.map +1 -0
- package/lib-es/icons/UsersIcon.js +54 -0
- package/lib-es/icons/UsersIcon.js.map +1 -0
- package/lib-es/icons/index.js +6 -0
- package/lib-es/icons/index.js.map +1 -0
- package/lib-es/index.js +37 -9
- package/lib-es/index.js.map +1 -1
- package/lib-es/utils/add-content-menu-items.js +46 -5
- package/lib-es/utils/add-content-menu-items.js.map +1 -1
- package/lib-es/utils/build-listing-query.js +10 -1
- package/lib-es/utils/build-listing-query.js.map +1 -1
- package/lib-es/utils/get-default-query-params.js +1 -3
- package/lib-es/utils/get-default-query-params.js.map +1 -1
- package/package.json +10 -9
- package/src/components/EntityDataListing/EntityDataListing.js +3 -12
- package/src/components/EntityManager/Entity/EntitiyNavLinks/EntityNavLinks.js +26 -0
- package/src/components/EntityManager/Entity/EntitiyNavLinks/index.js +3 -0
- package/src/components/EntityManager/Entity/Entity.js +10 -1
- package/src/components/EntityManager/Entity/SideBarRelations/container/CustomSidebarInfoContainer.js +22 -0
- package/src/components/EntityManager/Entity/SideBarRelations/helpers/build-dynamic-query.js +33 -0
- package/src/components/EntityManager/Entity/SideBarRelations/hooks/useCustomSidebarData.js +28 -0
- package/src/components/EntityManager/Entity/SideBarRelations/index.js +34 -16
- package/src/components/EntityManager/Entity/SideBarRelations/presentational/CustomSidebarInfo.js +33 -0
- package/src/components/InfoBoxes/InfoBoxes.js +24 -0
- package/src/components/InfoBoxes/container/InfoBoxContainer.js +22 -0
- package/src/components/InfoBoxes/helpers/build-dynamic-query.js +25 -0
- package/src/components/InfoBoxes/hooks/useData.js +20 -0
- package/src/components/InfoBoxes/hooks/useInfoBox.js +13 -0
- package/src/components/InfoBoxes/index.js +3 -0
- package/src/components/InfoBoxes/presentational/InfoBox.js +34 -0
- package/src/components/ListingTable/ListingTable.js +73 -39
- package/src/components/ListingTable/ListingTableContent/ListingTableContent.js +8 -22
- package/src/components/ListingTable/mappers/populate-rows.js +83 -18
- package/src/components/ListingTable/service/index.js +42 -5
- package/src/constants.js +13 -1
- package/src/icons/ContentIcon.js +72 -0
- package/src/icons/SettingsIcon.js +53 -0
- package/src/icons/TaxonomyIcon.js +74 -0
- package/src/icons/UsersIcon.js +50 -0
- package/src/icons/index.js +6 -0
- package/src/index.js +36 -8
- package/src/utils/add-content-menu-items.js +42 -3
- package/src/utils/build-listing-query.js +11 -1
- package/src/utils/get-default-query-params.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"populate-rows.js","names":["React","Link","TableActions","ACTIONS","formatRows","rows","url","toggleModal","label","firstColumn","map","data","editUrl","id","_objectSpread","createElement","to","role","actions","showDeleteModal","getSanitizedColumnLabel","columnProp","sanitizedChar","index","length","toUpperCase","toLowerCase","
|
|
1
|
+
{"version":3,"file":"populate-rows.js","names":["React","Link","TableActions","ACTIONS","formatRows","rows","url","toggleModal","label","firstColumn","isEnquiry","map","data","editUrl","id","rowProps","_objectSpread","createElement","to","role","actions","showDeleteModal","getSanitizedColumnLabel","columnProp","sanitizedChar","index","length","toUpperCase","toLowerCase","buildArrayRowContent","rowData","className","rowGroup","value","buildArrayRowData","dataGroups","groups","Math","ceil","currentStart","slice","getParsedRowData","Object","keys","reduce","acc","key","parsedData","Array","isArray","getColumnsAndLabels","listingProperties","allProperties","columns","labels","forEach","listingProperty","propKey","includes","split","push","parsedRowData","populateRows","entitySchema","schemaId","properties","dynamicProperties","formProperties","columnOptions","identification","sort","orderBy"],"sources":["../../../../src/components/ListingTable/mappers/populate-rows.js"],"sourcesContent":["import React from 'react';\nimport { Link } from 'react-router-dom';\nimport TableActions from '../TableActions';\nimport { ACTIONS } from '../../../constants';\n\nconst formatRows = ({ rows, url, toggleModal, label, firstColumn = 'name', isEnquiry }) =>\n rows.map(data => {\n const editUrl = `${url}/update/${data.id}`;\n const rowProps = {\n ...data,\n [firstColumn]: (\n <Link to={editUrl} role=\"button\">\n {data[firstColumn]}\n </Link>\n )\n };\n if (!isEnquiry)\n rowProps.actions = (\n <TableActions editUrl={editUrl} data={data} showDeleteModal={toggleModal} />\n );\n return rowProps;\n });\n\nconst getSanitizedColumnLabel = columnProp => {\n let sanitizedChar = '';\n\n for (let index = 0; index < columnProp.length; index += 1) {\n if (index && columnProp[index] === columnProp[index].toUpperCase())\n sanitizedChar = `${sanitizedChar} ${columnProp[index].toLowerCase()}`;\n else sanitizedChar += columnProp[index];\n }\n return sanitizedChar;\n};\n\nconst buildArrayRowContent = rowData => (\n <div className=\"table-row-list\">\n {rowData.map(rowGroup => (\n <div className=\"table-row-list__group\">\n {rowGroup.map(({ label, value, url }) => (\n <div className=\"table-row-list__group__item\">\n <span className=\"table-row-list__group__item__label\"> {label}:</span>\n {url ? (\n <Link to={url} role=\"button\" className=\"table-row-list__group__item__value\">\n {value}\n </Link>\n ) : (\n <span className=\"table-row-list__group__item__value\"> {value}</span>\n )}\n </div>\n ))}\n </div>\n ))}\n </div>\n);\n\nconst buildArrayRowData = rowData => {\n const dataGroups = [];\n const groups = Math.ceil(rowData.length / 3) || 1;\n for (let index = 0; index < groups; index += 1) {\n const currentStart = index * groups;\n dataGroups[index] = rowData.slice(currentStart, currentStart + 3);\n }\n\n return buildArrayRowContent(dataGroups);\n};\n\nconst getParsedRowData = rows =>\n rows.map(rowData =>\n Object.keys(rowData).reduce((acc, key) => {\n const parsedData = Array.isArray(rowData[key])\n ? buildArrayRowData(rowData[key])\n : rowData[key];\n return { ...acc, [key]: parsedData };\n }, {})\n );\n\nconst getColumnsAndLabels = (listingProperties, allProperties, rows) => {\n const columns = [];\n const labels = {};\n\n listingProperties.forEach(listingProperty => {\n const propKey = listingProperty.includes(' ') ? listingProperty.split(' ')[0] : listingProperty;\n const { label } = allProperties[propKey] || {};\n columns.push(propKey);\n labels[propKey] = label || getSanitizedColumnLabel(propKey);\n });\n const parsedRowData = getParsedRowData(rows);\n\n return { columns, labels, parsedRowData };\n};\n\nconst populateRows = ({ toggleModal, url, entitySchema, rows }) => {\n const {\n id: schemaId,\n listingProperties,\n properties,\n dynamicProperties = {},\n formProperties\n } = entitySchema;\n\n const isEnquiry = schemaId === 'enquiry';\n const columnOptions = !isEnquiry ? [...listingProperties, ACTIONS] : [...listingProperties];\n\n const allProperties = { ...properties, ...dynamicProperties };\n const { columns, labels, parsedRowData } = getColumnsAndLabels(\n columnOptions,\n allProperties,\n rows\n );\n const [firstColumn] = columns;\n\n return {\n identification: 'id',\n sort: null,\n columns,\n labels,\n orderBy: [...formProperties],\n rows: formatRows({ firstColumn, rows: parsedRowData, url, toggleModal, isEnquiry }),\n isEnquiry\n };\n};\n\nexport { populateRows, formatRows, getParsedRowData };\n"],"mappings":";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E,MAAM;IACJS,EAAE,EAAEkD,QAAQ;IACZb,iBAAiB;IACjBc,UAAU;IACVC,iBAAiB,GAAG,CAAC,CAAC;IACtBC;EACF,CAAC,GAAGJ,YAAY;EAEhB,MAAMrD,SAAS,GAAGsD,QAAQ,KAAK,SAAS;EACxC,MAAMI,aAAa,GAAG,CAAC1D,SAAS,GAAG,CAAC,GAAGyC,iBAAiB,EAAEhD,OAAO,CAAC,GAAG,CAAC,GAAGgD,iBAAiB,CAAC;EAE3F,MAAMC,aAAa,GAAApC,aAAA,CAAAA,aAAA,KAAQiD,UAAU,GAAKC,iBAAiB,CAAE;EAC7D,MAAM;IAAEb,OAAO;IAAEC,MAAM;IAAEO;EAAc,CAAC,GAAGX,mBAAmB,CAC5DkB,aAAa,EACbhB,aAAa,EACb/C,IACF,CAAC;EACD,MAAM,CAACI,WAAW,CAAC,GAAG4C,OAAO;EAE7B,OAAO;IACLgB,cAAc,EAAE,IAAI;IACpBC,IAAI,EAAE,IAAI;IACVjB,OAAO;IACPC,MAAM;IACNiB,OAAO,EAAE,CAAC,GAAGJ,cAAc,CAAC;IAC5B9D,IAAI,EAAED,UAAU,CAAC;MAAEK,WAAW;MAAEJ,IAAI,EAAEwD,aAAa;MAAEvD,GAAG;MAAEC,WAAW;MAAEG;IAAU,CAAC,CAAC;IACnFA;EACF,CAAC;AACH,CAAC;AAED,SAASoD,YAAY,EAAE1D,UAAU,EAAEqC,gBAAgB"}
|
|
@@ -1,22 +1,80 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1
4
|
import buildListingQuery from '../../../utils/build-listing-query';
|
|
5
|
+
function buildVariables({
|
|
6
|
+
entitySchema,
|
|
7
|
+
isSearchQuery,
|
|
8
|
+
listFilters = [],
|
|
9
|
+
queryParams = {}
|
|
10
|
+
}) {
|
|
11
|
+
const {
|
|
12
|
+
identifier
|
|
13
|
+
} = entitySchema;
|
|
14
|
+
const {
|
|
15
|
+
sort,
|
|
16
|
+
offset,
|
|
17
|
+
limit,
|
|
18
|
+
where
|
|
19
|
+
} = queryParams;
|
|
20
|
+
const [{
|
|
21
|
+
property,
|
|
22
|
+
direction
|
|
23
|
+
}] = sort;
|
|
24
|
+
const parsedOffset = `${property}:${direction}`;
|
|
25
|
+
if (!isSearchQuery) return _objectSpread(_objectSpread({}, queryParams), {}, {
|
|
26
|
+
where: !Array.isArray(listFilters) ? listFilters : where
|
|
27
|
+
});
|
|
28
|
+
const rawQuery = {
|
|
29
|
+
bool: {
|
|
30
|
+
must: listFilters || [],
|
|
31
|
+
filter: [{
|
|
32
|
+
term: {
|
|
33
|
+
entityIdentifier: identifier
|
|
34
|
+
}
|
|
35
|
+
}]
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
return {
|
|
39
|
+
limit,
|
|
40
|
+
offset,
|
|
41
|
+
sort: parsedOffset,
|
|
42
|
+
where: JSON.stringify(rawQuery)
|
|
43
|
+
};
|
|
44
|
+
}
|
|
2
45
|
const fetchData = async ({
|
|
3
46
|
client,
|
|
4
47
|
querySettings: {
|
|
5
48
|
entitySchema,
|
|
6
49
|
queryParams
|
|
7
|
-
}
|
|
50
|
+
},
|
|
51
|
+
listFilters
|
|
8
52
|
}) => {
|
|
9
|
-
const query = buildListingQuery(entitySchema);
|
|
10
53
|
const {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
54
|
+
displayProperties: {
|
|
55
|
+
adminListings: {
|
|
56
|
+
dataSource: {
|
|
57
|
+
source
|
|
58
|
+
} = {}
|
|
59
|
+
} = {}
|
|
60
|
+
} = {}
|
|
61
|
+
} = entitySchema;
|
|
62
|
+
const isSearchQuery = source === 'search';
|
|
63
|
+
const query = buildListingQuery(entitySchema, isSearchQuery);
|
|
64
|
+
const variables = buildVariables({
|
|
65
|
+
entitySchema,
|
|
66
|
+
listFilters,
|
|
67
|
+
queryParams,
|
|
68
|
+
isSearchQuery
|
|
69
|
+
});
|
|
70
|
+
const {
|
|
71
|
+
data = {}
|
|
14
72
|
} = await client.query({
|
|
15
73
|
query,
|
|
16
|
-
variables
|
|
74
|
+
variables,
|
|
17
75
|
fetchPolicy: 'network-only'
|
|
18
76
|
});
|
|
19
|
-
return listingData;
|
|
77
|
+
return data.searchResults ? data.searchResults.results : data.listingData;
|
|
20
78
|
};
|
|
21
79
|
export { fetchData };
|
|
22
80
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["buildListingQuery","fetchData","client","querySettings","
|
|
1
|
+
{"version":3,"file":"index.js","names":["buildListingQuery","buildVariables","entitySchema","isSearchQuery","listFilters","queryParams","identifier","sort","offset","limit","where","property","direction","parsedOffset","_objectSpread","Array","isArray","rawQuery","bool","must","filter","term","entityIdentifier","JSON","stringify","fetchData","client","querySettings","displayProperties","adminListings","dataSource","source","query","variables","data","fetchPolicy","searchResults","results","listingData"],"sources":["../../../../src/components/ListingTable/service/index.js"],"sourcesContent":["import buildListingQuery from '../../../utils/build-listing-query';\n\nfunction buildVariables({ entitySchema, isSearchQuery, listFilters = [], queryParams = {} }) {\n const { identifier } = entitySchema;\n const { sort, offset, limit, where } = queryParams;\n const [{ property, direction }] = sort;\n const parsedOffset = `${property}:${direction}`;\n\n if (!isSearchQuery)\n return {\n ...queryParams,\n where: !Array.isArray(listFilters) ? listFilters : where\n };\n\n const rawQuery = {\n bool: {\n must: listFilters || [],\n filter: [\n {\n term: {\n entityIdentifier: identifier\n }\n }\n ]\n }\n };\n\n return {\n limit,\n offset,\n sort: parsedOffset,\n where: JSON.stringify(rawQuery)\n };\n}\n\nconst fetchData = async ({ client, querySettings: { entitySchema, queryParams }, listFilters }) => {\n const {\n displayProperties: { adminListings: { dataSource: { source } = {} } = {} } = {}\n } = entitySchema;\n\n const isSearchQuery = source === 'search';\n const query = buildListingQuery(entitySchema, isSearchQuery);\n const variables = buildVariables({ entitySchema, listFilters, queryParams, isSearchQuery });\n const { data = {} } = await client.query({ query, variables, fetchPolicy: 'network-only' });\n\n return data.searchResults ? data.searchResults.results : data.listingData;\n};\n\nexport { fetchData };\n"],"mappings":";;;AAAA,OAAOA,iBAAiB,MAAM,oCAAoC;AAElE,SAASC,cAAcA,CAAC;EAAEC,YAAY;EAAEC,aAAa;EAAEC,WAAW,GAAG,EAAE;EAAEC,WAAW,GAAG,CAAC;AAAE,CAAC,EAAE;EAC3F,MAAM;IAAEC;EAAW,CAAC,GAAGJ,YAAY;EACnC,MAAM;IAAEK,IAAI;IAAEC,MAAM;IAAEC,KAAK;IAAEC;EAAM,CAAC,GAAGL,WAAW;EAClD,MAAM,CAAC;IAAEM,QAAQ;IAAEC;EAAU,CAAC,CAAC,GAAGL,IAAI;EACtC,MAAMM,YAAY,GAAI,GAAEF,QAAS,IAAGC,SAAU,EAAC;EAE/C,IAAI,CAACT,aAAa,EAChB,OAAAW,aAAA,CAAAA,aAAA,KACKT,WAAW;IACdK,KAAK,EAAE,CAACK,KAAK,CAACC,OAAO,CAACZ,WAAW,CAAC,GAAGA,WAAW,GAAGM;EAAK;EAG5D,MAAMO,QAAQ,GAAG;IACfC,IAAI,EAAE;MACJC,IAAI,EAAEf,WAAW,IAAI,EAAE;MACvBgB,MAAM,EAAE,CACN;QACEC,IAAI,EAAE;UACJC,gBAAgB,EAAEhB;QACpB;MACF,CAAC;IAEL;EACF,CAAC;EAED,OAAO;IACLG,KAAK;IACLD,MAAM;IACND,IAAI,EAAEM,YAAY;IAClBH,KAAK,EAAEa,IAAI,CAACC,SAAS,CAACP,QAAQ;EAChC,CAAC;AACH;AAEA,MAAMQ,SAAS,GAAG,MAAAA,CAAO;EAAEC,MAAM;EAAEC,aAAa,EAAE;IAAEzB,YAAY;IAAEG;EAAY,CAAC;EAAED;AAAY,CAAC,KAAK;EACjG,MAAM;IACJwB,iBAAiB,EAAE;MAAEC,aAAa,EAAE;QAAEC,UAAU,EAAE;UAAEC;QAAO,CAAC,GAAG,CAAC;MAAE,CAAC,GAAG,CAAC;IAAE,CAAC,GAAG,CAAC;EAChF,CAAC,GAAG7B,YAAY;EAEhB,MAAMC,aAAa,GAAG4B,MAAM,KAAK,QAAQ;EACzC,MAAMC,KAAK,GAAGhC,iBAAiB,CAACE,YAAY,EAAEC,aAAa,CAAC;EAC5D,MAAM8B,SAAS,GAAGhC,cAAc,CAAC;IAAEC,YAAY;IAAEE,WAAW;IAAEC,WAAW;IAAEF;EAAc,CAAC,CAAC;EAC3F,MAAM;IAAE+B,IAAI,GAAG,CAAC;EAAE,CAAC,GAAG,MAAMR,MAAM,CAACM,KAAK,CAAC;IAAEA,KAAK;IAAEC,SAAS;IAAEE,WAAW,EAAE;EAAe,CAAC,CAAC;EAE3F,OAAOD,IAAI,CAACE,aAAa,GAAGF,IAAI,CAACE,aAAa,CAACC,OAAO,GAAGH,IAAI,CAACI,WAAW;AAC3E,CAAC;AAED,SAASb,SAAS"}
|
package/lib-es/constants.js
CHANGED
|
@@ -26,5 +26,13 @@ const PAGE_BUILDER_TAB = 'Page builder';
|
|
|
26
26
|
const PAGE_BUILDER_TAB_INDEX = 1;
|
|
27
27
|
const EDITOR_VIEW_TAB = 'Editor view';
|
|
28
28
|
const EDITOR_VIEW_TAB_INDEX = 0;
|
|
29
|
-
|
|
29
|
+
const ICON_SIZE = {
|
|
30
|
+
WIDTH: '25px',
|
|
31
|
+
HEIGHT: '25px'
|
|
32
|
+
};
|
|
33
|
+
const ICON_COLOR = {
|
|
34
|
+
STROKE: '#63779C',
|
|
35
|
+
FILL: '#63779C'
|
|
36
|
+
};
|
|
37
|
+
export { DATA_LISTING_PREFIX, ENTITY_PUBLISHED, KEY_TO_CHECK, LEAVE_PAGE_MESSAGE, MENU_PERMISSIONS, PAGE_BUILDER, PLUGIN_NAME, PREVIEW_INTERFACE, SELECT_DEFAULT_VALUE, TEXT_CONTENT_TYPE, PAGE_BUILDER_FIELD_ID, PAGE_BUILDER_TEMPLATE_FIELD_ID, ERROR, SUCCESS, PUBLISHED, UNPUBLISHED, SAVE_BUTTON_TEXTS, ACTIONS, PAGE_BUILDER_TAB_INDEX, EDITOR_VIEW_TAB_INDEX, EDITOR_VIEW_TAB, PAGE_BUILDER_TAB, UNPUBLISHED_WARNING, SAVE_BEFORE_PUBLISH_MESSAGE, ICON_SIZE, ICON_COLOR };
|
|
30
38
|
//# sourceMappingURL=constants.js.map
|
package/lib-es/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":["PLUGIN_NAME","DATA_LISTING_PREFIX","PAGE_BUILDER","TEXT_CONTENT_TYPE","ENTITY_PUBLISHED","SELECT_DEFAULT_VALUE","LEAVE_PAGE_MESSAGE","KEY_TO_CHECK","MENU_PERMISSIONS","PREVIEW_INTERFACE","PAGE_BUILDER_FIELD_ID","PAGE_BUILDER_TEMPLATE_FIELD_ID","ERROR","SUCCESS","PUBLISHED","UNPUBLISHED","SAVE_BUTTON_TEXTS","save","saved","saving","ACTIONS","UNPUBLISHED_WARNING","SAVE_BEFORE_PUBLISH_MESSAGE","PAGE_BUILDER_TAB","PAGE_BUILDER_TAB_INDEX","EDITOR_VIEW_TAB","EDITOR_VIEW_TAB_INDEX"],"sources":["../src/constants.js"],"sourcesContent":["const PLUGIN_NAME = 'data-ui';\nconst DATA_LISTING_PREFIX = '/data-listing';\nconst PAGE_BUILDER = 'pageBuilder';\nconst TEXT_CONTENT_TYPE = 'Publish';\nconst ENTITY_PUBLISHED = 'published';\nconst SELECT_DEFAULT_VALUE = 'Please Choose...';\nconst LEAVE_PAGE_MESSAGE = 'You are going to leave without saving. Are you sure you want to leave?';\nconst KEY_TO_CHECK = 'values.slug';\nconst MENU_PERMISSIONS = ['update:any', 'update:own', 'create:any', 'create:own'];\nconst PREVIEW_INTERFACE = 'preview/can-preview';\nconst PAGE_BUILDER_FIELD_ID = 'pageBuilder';\nconst PAGE_BUILDER_TEMPLATE_FIELD_ID = 'pageBuilderTemplateId';\nconst ERROR = 'error';\nconst SUCCESS = 'success';\nconst PUBLISHED = 'published';\nconst UNPUBLISHED = 'unpublished';\nconst SAVE_BUTTON_TEXTS = { save: 'save', saved: 'saved', saving: 'saving' };\nconst ACTIONS = 'actions';\nconst UNPUBLISHED_WARNING = 'Page already unpublished';\nconst SAVE_BEFORE_PUBLISH_MESSAGE =\n 'You have to click save to create the record before you can publish';\n\nconst PAGE_BUILDER_TAB = 'Page builder';\nconst PAGE_BUILDER_TAB_INDEX = 1;\nconst EDITOR_VIEW_TAB = 'Editor view';\nconst EDITOR_VIEW_TAB_INDEX = 0;\n\nexport {\n DATA_LISTING_PREFIX,\n ENTITY_PUBLISHED,\n KEY_TO_CHECK,\n LEAVE_PAGE_MESSAGE,\n MENU_PERMISSIONS,\n PAGE_BUILDER,\n PLUGIN_NAME,\n PREVIEW_INTERFACE,\n SELECT_DEFAULT_VALUE,\n TEXT_CONTENT_TYPE,\n PAGE_BUILDER_FIELD_ID,\n PAGE_BUILDER_TEMPLATE_FIELD_ID,\n ERROR,\n SUCCESS,\n PUBLISHED,\n UNPUBLISHED,\n SAVE_BUTTON_TEXTS,\n ACTIONS,\n PAGE_BUILDER_TAB_INDEX,\n EDITOR_VIEW_TAB_INDEX,\n EDITOR_VIEW_TAB,\n PAGE_BUILDER_TAB,\n UNPUBLISHED_WARNING,\n SAVE_BEFORE_PUBLISH_MESSAGE\n};\n"],"mappings":"AAAA,MAAMA,WAAW,GAAG,SAAS;AAC7B,MAAMC,mBAAmB,GAAG,eAAe;AAC3C,MAAMC,YAAY,GAAG,aAAa;AAClC,MAAMC,iBAAiB,GAAG,SAAS;AACnC,MAAMC,gBAAgB,GAAG,WAAW;AACpC,MAAMC,oBAAoB,GAAG,kBAAkB;AAC/C,MAAMC,kBAAkB,GAAG,wEAAwE;AACnG,MAAMC,YAAY,GAAG,aAAa;AAClC,MAAMC,gBAAgB,GAAG,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC;AACjF,MAAMC,iBAAiB,GAAG,qBAAqB;AAC/C,MAAMC,qBAAqB,GAAG,aAAa;AAC3C,MAAMC,8BAA8B,GAAG,uBAAuB;AAC9D,MAAMC,KAAK,GAAG,OAAO;AACrB,MAAMC,OAAO,GAAG,SAAS;AACzB,MAAMC,SAAS,GAAG,WAAW;AAC7B,MAAMC,WAAW,GAAG,aAAa;AACjC,MAAMC,iBAAiB,GAAG;EAAEC,IAAI,EAAE,MAAM;EAAEC,KAAK,EAAE,OAAO;EAAEC,MAAM,EAAE;AAAS,CAAC;AAC5E,MAAMC,OAAO,GAAG,SAAS;AACzB,MAAMC,mBAAmB,GAAG,0BAA0B;AACtD,MAAMC,2BAA2B,GAC/B,oEAAoE;AAEtE,MAAMC,gBAAgB,GAAG,cAAc;AACvC,MAAMC,sBAAsB,GAAG,CAAC;AAChC,MAAMC,eAAe,GAAG,aAAa;AACrC,MAAMC,qBAAqB,GAAG,CAAC;AAE/B,
|
|
1
|
+
{"version":3,"file":"constants.js","names":["PLUGIN_NAME","DATA_LISTING_PREFIX","PAGE_BUILDER","TEXT_CONTENT_TYPE","ENTITY_PUBLISHED","SELECT_DEFAULT_VALUE","LEAVE_PAGE_MESSAGE","KEY_TO_CHECK","MENU_PERMISSIONS","PREVIEW_INTERFACE","PAGE_BUILDER_FIELD_ID","PAGE_BUILDER_TEMPLATE_FIELD_ID","ERROR","SUCCESS","PUBLISHED","UNPUBLISHED","SAVE_BUTTON_TEXTS","save","saved","saving","ACTIONS","UNPUBLISHED_WARNING","SAVE_BEFORE_PUBLISH_MESSAGE","PAGE_BUILDER_TAB","PAGE_BUILDER_TAB_INDEX","EDITOR_VIEW_TAB","EDITOR_VIEW_TAB_INDEX","ICON_SIZE","WIDTH","HEIGHT","ICON_COLOR","STROKE","FILL"],"sources":["../src/constants.js"],"sourcesContent":["const PLUGIN_NAME = 'data-ui';\nconst DATA_LISTING_PREFIX = '/data-listing';\nconst PAGE_BUILDER = 'pageBuilder';\nconst TEXT_CONTENT_TYPE = 'Publish';\nconst ENTITY_PUBLISHED = 'published';\nconst SELECT_DEFAULT_VALUE = 'Please Choose...';\nconst LEAVE_PAGE_MESSAGE = 'You are going to leave without saving. Are you sure you want to leave?';\nconst KEY_TO_CHECK = 'values.slug';\nconst MENU_PERMISSIONS = ['update:any', 'update:own', 'create:any', 'create:own'];\nconst PREVIEW_INTERFACE = 'preview/can-preview';\nconst PAGE_BUILDER_FIELD_ID = 'pageBuilder';\nconst PAGE_BUILDER_TEMPLATE_FIELD_ID = 'pageBuilderTemplateId';\nconst ERROR = 'error';\nconst SUCCESS = 'success';\nconst PUBLISHED = 'published';\nconst UNPUBLISHED = 'unpublished';\nconst SAVE_BUTTON_TEXTS = { save: 'save', saved: 'saved', saving: 'saving' };\nconst ACTIONS = 'actions';\nconst UNPUBLISHED_WARNING = 'Page already unpublished';\nconst SAVE_BEFORE_PUBLISH_MESSAGE =\n 'You have to click save to create the record before you can publish';\n\nconst PAGE_BUILDER_TAB = 'Page builder';\nconst PAGE_BUILDER_TAB_INDEX = 1;\nconst EDITOR_VIEW_TAB = 'Editor view';\nconst EDITOR_VIEW_TAB_INDEX = 0;\n\nconst ICON_SIZE = {\n WIDTH: '25px',\n HEIGHT: '25px'\n};\n\nconst ICON_COLOR = {\n STROKE: '#63779C',\n FILL: '#63779C'\n};\n\nexport {\n DATA_LISTING_PREFIX,\n ENTITY_PUB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BAAmB,GAAG,0BAA0B;AACtD,MAAMC,2BAA2B,GAC/B,oEAAoE;AAEtE,MAAMC,gBAAgB,GAAG,cAAc;AACvC,MAAMC,sBAAsB,GAAG,CAAC;AAChC,MAAMC,eAAe,GAAG,aAAa;AACrC,MAAMC,qBAAqB,GAAG,CAAC;AAE/B,MAAMC,SAAS,GAAG;EAChBC,KAAK,EAAE,MAAM;EACbC,MAAM,EAAE;AACV,CAAC;AAED,MAAMC,UAAU,GAAG;EACjBC,MAAM,EAAE,SAAS;EACjBC,IAAI,EAAE;AACR,CAAC;AAED,SACE/B,mBAAmB,EACnBG,gBAAgB,EAChBG,YAAY,EACZD,kBAAkB,EAClBE,gBAAgB,EAChBN,YAAY,EACZF,WAAW,EACXS,iBAAiB,EACjBJ,oBAAoB,EACpBF,iBAAiB,EACjBO,qBAAqB,EACrBC,8BAA8B,EAC9BC,KAAK,EACLC,OAAO,EACPC,SAAS,EACTC,WAAW,EACXC,iBAAiB,EACjBI,OAAO,EACPI,sBAAsB,EACtBE,qBAAqB,EACrBD,eAAe,EACfF,gBAAgB,EAChBF,mBAAmB,EACnBC,2BAA2B,EAC3BK,SAAS,EACTG,UAAU"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ICON_SIZE } from '../constants';
|
|
3
|
+
function ContentIcon({
|
|
4
|
+
width = ICON_SIZE.WIDTH,
|
|
5
|
+
height = ICON_SIZE.HEIGHT
|
|
6
|
+
}) {
|
|
7
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
8
|
+
width: width,
|
|
9
|
+
height: height,
|
|
10
|
+
viewBox: "0 0 20 20",
|
|
11
|
+
version: "1.1",
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
14
|
+
}, /*#__PURE__*/React.createElement("title", null, "icons/content"), /*#__PURE__*/React.createElement("g", {
|
|
15
|
+
id: "Symbols",
|
|
16
|
+
stroke: "none",
|
|
17
|
+
strokeWidth: 1,
|
|
18
|
+
fill: "none",
|
|
19
|
+
fillRule: "evenodd"
|
|
20
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
21
|
+
id: "main-menu/collapsed",
|
|
22
|
+
transform: "translate(-15, -201)"
|
|
23
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
24
|
+
id: "Group-4",
|
|
25
|
+
transform: "translate(9, 19)"
|
|
26
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
27
|
+
id: "Group-3",
|
|
28
|
+
transform: "translate(0, 176)"
|
|
29
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
30
|
+
id: "photograph",
|
|
31
|
+
transform: "translate(7, 7)"
|
|
32
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
33
|
+
id: "Group"
|
|
34
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
35
|
+
d: "M0,8.25 L5.15925,3.09075 C6.03787467,2.21239064 7.46212533,2.21239064 8.34075,3.09075 L13.5,8.25 M11.25,6 L13.03425,4.21575 C13.9128747,3.33739064 15.3371253,3.33739064 16.21575,4.21575 L18,6 M2.25,18 L15.75,18 C16.9926407,18 18,16.9926407 18,15.75 L18,2.25 C18,1.00735931 16.9926407,0 15.75,0 L2.25,0 C1.00735931,0 0,1.00735931 0,2.25 L0,15.75 C0,16.9926407 1.00735931,18 2.25,18 Z",
|
|
36
|
+
id: "Shape",
|
|
37
|
+
stroke: "#63779C",
|
|
38
|
+
strokeWidth: "1.5",
|
|
39
|
+
strokeLinecap: "round",
|
|
40
|
+
strokeLinejoin: "round"
|
|
41
|
+
}), /*#__PURE__*/React.createElement("circle", {
|
|
42
|
+
id: "Oval",
|
|
43
|
+
fill: "#63779C",
|
|
44
|
+
cx: "10.875",
|
|
45
|
+
cy: "2.625",
|
|
46
|
+
r: "1.125"
|
|
47
|
+
})), /*#__PURE__*/React.createElement("line", {
|
|
48
|
+
x1: 0,
|
|
49
|
+
y1: "8.75",
|
|
50
|
+
x2: 18,
|
|
51
|
+
y2: "8.75",
|
|
52
|
+
id: "Path",
|
|
53
|
+
stroke: "#63779C",
|
|
54
|
+
strokeWidth: "1.5",
|
|
55
|
+
strokeLinecap: "round",
|
|
56
|
+
strokeLinejoin: "round"
|
|
57
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
58
|
+
x1: "3.75",
|
|
59
|
+
y1: "11.75",
|
|
60
|
+
x2: "14.4999997",
|
|
61
|
+
y2: "11.75",
|
|
62
|
+
id: "Path",
|
|
63
|
+
stroke: "#63779C",
|
|
64
|
+
strokeWidth: "1.5",
|
|
65
|
+
strokeLinecap: "round",
|
|
66
|
+
strokeLinejoin: "round"
|
|
67
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
68
|
+
x1: "3.75",
|
|
69
|
+
y1: "14.75",
|
|
70
|
+
x2: "11.4999997",
|
|
71
|
+
y2: "14.75",
|
|
72
|
+
id: "Path",
|
|
73
|
+
stroke: "#63779C",
|
|
74
|
+
strokeWidth: "1.5",
|
|
75
|
+
strokeLinecap: "round",
|
|
76
|
+
strokeLinejoin: "round"
|
|
77
|
+
})))))));
|
|
78
|
+
}
|
|
79
|
+
export default ContentIcon;
|
|
80
|
+
//# sourceMappingURL=ContentIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentIcon.js","names":["React","ICON_SIZE","ContentIcon","width","WIDTH","height","HEIGHT","createElement","viewBox","version","xmlns","xmlnsXlink","id","stroke","strokeWidth","fill","fillRule","transform","d","strokeLinecap","strokeLinejoin","cx","cy","r","x1","y1","x2","y2"],"sources":["../../src/icons/ContentIcon.js"],"sourcesContent":["import React from 'react';\nimport { ICON_SIZE } from '../constants';\n\nfunction ContentIcon({ width = ICON_SIZE.WIDTH, height = ICON_SIZE.HEIGHT }) {\n return (\n <svg\n width={width}\n height={height}\n viewBox=\"0 0 20 20\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlnsXlink=\"http://www.w3.org/1999/xlink\">\n <title>icons/content</title>\n <g id=\"Symbols\" stroke=\"none\" strokeWidth={1} fill=\"none\" fillRule=\"evenodd\">\n <g id=\"main-menu/collapsed\" transform=\"translate(-15, -201)\">\n <g id=\"Group-4\" transform=\"translate(9, 19)\">\n <g id=\"Group-3\" transform=\"translate(0, 176)\">\n <g id=\"photograph\" transform=\"translate(7, 7)\">\n <g id=\"Group\">\n <path\n d=\"M0,8.25 L5.15925,3.09075 C6.03787467,2.21239064 7.46212533,2.21239064 8.34075,3.09075 L13.5,8.25 M11.25,6 L13.03425,4.21575 C13.9128747,3.33739064 15.3371253,3.33739064 16.21575,4.21575 L18,6 M2.25,18 L15.75,18 C16.9926407,18 18,16.9926407 18,15.75 L18,2.25 C18,1.00735931 16.9926407,0 15.75,0 L2.25,0 C1.00735931,0 0,1.00735931 0,2.25 L0,15.75 C0,16.9926407 1.00735931,18 2.25,18 Z\"\n id=\"Shape\"\n stroke=\"#63779C\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <circle id=\"Oval\" fill=\"#63779C\" cx=\"10.875\" cy=\"2.625\" r=\"1.125\" />\n </g>\n <line\n x1={0}\n y1=\"8.75\"\n x2={18}\n y2=\"8.75\"\n id=\"Path\"\n stroke=\"#63779C\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <line\n x1=\"3.75\"\n y1=\"11.75\"\n x2=\"14.4999997\"\n y2=\"11.75\"\n id=\"Path\"\n stroke=\"#63779C\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <line\n x1=\"3.75\"\n y1=\"14.75\"\n x2=\"11.4999997\"\n y2=\"14.75\"\n id=\"Path\"\n stroke=\"#63779C\"\n strokeWidth=\"1.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </g>\n </g>\n </g>\n </g>\n </g>\n </svg>\n );\n}\n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SAAS;IAACM,EAAE,EAAC,QAAQ;IAACC,EAAE,EAAC,OAAO;IAACC,CAAC,EAAC;EAAO,CAAE,CAClE,CAAC,eACJvB,KAAA,CAAAO,aAAA;IACEiB,EAAE,EAAE,CAAE;IACNC,EAAE,EAAC,MAAM;IACTC,EAAE,EAAE,EAAG;IACPC,EAAE,EAAC,MAAM;IACTf,EAAE,EAAC,MAAM;IACTC,MAAM,EAAC,SAAS;IAChBC,WAAW,EAAC,KAAK;IACjBK,aAAa,EAAC,OAAO;IACrBC,cAAc,EAAC;EAAO,CACvB,CAAC,eACFpB,KAAA,CAAAO,aAAA;IACEiB,EAAE,EAAC,MAAM;IACTC,EAAE,EAAC,OAAO;IACVC,EAAE,EAAC,YAAY;IACfC,EAAE,EAAC,OAAO;IACVf,EAAE,EAAC,MAAM;IACTC,MAAM,EAAC,SAAS;IAChBC,WAAW,EAAC,KAAK;IACjBK,aAAa,EAAC,OAAO;IACrBC,cAAc,EAAC;EAAO,CACvB,CAAC,eACFpB,KAAA,CAAAO,aAAA;IACEiB,EAAE,EAAC,MAAM;IACTC,EAAE,EAAC,OAAO;IACVC,EAAE,EAAC,YAAY;IACfC,EAAE,EAAC,OAAO;IACVf,EAAE,EAAC,MAAM;IACTC,MAAM,EAAC,SAAS;IAChBC,WAAW,EAAC,KAAK;IACjBK,aAAa,EAAC,OAAO;IACrBC,cAAc,EAAC;EAAO,CACvB,CACA,CACF,CACF,CACF,CACF,CACA,CAAC;AAEV;AAEA,eAAelB,WAAW"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ICON_SIZE } from '../constants';
|
|
3
|
+
function SettingsIcon({
|
|
4
|
+
width = ICON_SIZE.WIDTH,
|
|
5
|
+
height = ICON_SIZE.HEIGHT
|
|
6
|
+
}) {
|
|
7
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
8
|
+
width: width,
|
|
9
|
+
height: height,
|
|
10
|
+
viewBox: "0 0 22 22",
|
|
11
|
+
version: "1.1",
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
14
|
+
}, /*#__PURE__*/React.createElement("title", null, "icons/setting"), /*#__PURE__*/React.createElement("g", {
|
|
15
|
+
id: "Symbols",
|
|
16
|
+
stroke: "none",
|
|
17
|
+
strokeWidth: 1,
|
|
18
|
+
fill: "none",
|
|
19
|
+
fillRule: "evenodd"
|
|
20
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
21
|
+
id: "main-menu/collapsed",
|
|
22
|
+
transform: "translate(-14, -494)"
|
|
23
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
24
|
+
id: "Group-4",
|
|
25
|
+
transform: "translate(9, 19)"
|
|
26
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
27
|
+
id: "settings",
|
|
28
|
+
transform: "translate(0, 470)"
|
|
29
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
30
|
+
id: "icons/setting",
|
|
31
|
+
transform: "translate(6, 6)"
|
|
32
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
33
|
+
id: "Group",
|
|
34
|
+
stroke: "#63779C",
|
|
35
|
+
strokeLinecap: "round",
|
|
36
|
+
strokeLinejoin: "round",
|
|
37
|
+
strokeWidth: "1.5"
|
|
38
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
39
|
+
d: "M8.13888889,1.46333333 C8.61222222,-0.487777778 11.3877778,-0.487777778 11.8611111,1.46333333 C12.0051589,2.05784356 12.4244819,2.54780471 12.9896128,2.78193979 C13.5547438,3.01607487 14.1977123,2.96622362 14.72,2.64777778 C16.4344444,1.60333333 18.3977778,3.56555556 17.3533333,5.28111111 C17.0353472,5.803171 16.9856162,6.44564563 17.2194755,7.0104213 C17.4533348,7.57519696 17.9426987,7.99444609 18.5366667,8.13888889 C20.4877778,8.61222222 20.4877778,11.3877778 18.5366667,11.8611111 C17.9421564,12.0051589 17.4521953,12.4244819 17.2180602,12.9896128 C16.9839251,13.5547438 17.0337764,14.1977123 17.3522222,14.72 C18.3966667,16.4344444 16.4344444,18.3977778 14.7188889,17.3533333 C14.196829,17.0353472 13.5543544,16.9856162 12.9895787,17.2194755 C12.424803,17.4533348 12.0055539,17.9426987 11.8611111,18.5366667 C11.3877778,20.4877778 8.61222222,20.4877778 8.13888889,18.5366667 C7.99484107,17.9421564 7.57551807,17.4521953 7.01038716,17.2180602 C6.44525624,16.9839251 5.80228769,17.0337764 5.28,17.3522222 C3.56555556,18.3966667 1.60222222,16.4344444 2.64666667,14.7188889 C2.96465281,14.196829 3.01438377,13.5543544 2.78052448,12.9895787 C2.5466652,12.424803 2.05730134,12.0055539 1.46333333,11.8611111 C-0.487777778,11.3877778 -0.487777778,8.61222222 1.46333333,8.13888889 C2.05784356,7.99484107 2.54780471,7.57551807 2.78193979,7.01038716 C3.01607487,6.44525624 2.96622362,5.80228769 2.64777778,5.28 C1.60333333,3.56555556 3.56555556,1.60222222 5.28111111,2.64666667 C6.38777778,3.32222222 7.83222222,2.72444444 8.13888889,1.46333333 Z",
|
|
40
|
+
id: "Path"
|
|
41
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
42
|
+
d: "M13.3333333,10 C13.3333333,11.8409492 11.8409492,13.3333333 10,13.3333333 C8.15905083,13.3333333 6.66666667,11.8409492 6.66666667,10 C6.66666667,8.15905083 8.15905083,6.66666667 10,6.66666667 C11.8409492,6.66666667 13.3333333,8.15905083 13.3333333,10 L13.3333333,10 Z",
|
|
43
|
+
id: "Path"
|
|
44
|
+
})), /*#__PURE__*/React.createElement("rect", {
|
|
45
|
+
id: "Rectangle",
|
|
46
|
+
fillOpacity: 0,
|
|
47
|
+
fill: "#000000",
|
|
48
|
+
fillRule: "nonzero",
|
|
49
|
+
x: 0,
|
|
50
|
+
y: 0,
|
|
51
|
+
width: 20,
|
|
52
|
+
height: 20
|
|
53
|
+
})))))));
|
|
54
|
+
}
|
|
55
|
+
export default SettingsIcon;
|
|
56
|
+
//# sourceMappingURL=SettingsIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsIcon.js","names":["React","ICON_SIZE","SettingsIcon","width","WIDTH","height","HEIGHT","createElement","viewBox","version","xmlns","xmlnsXlink","id","stroke","strokeWidth","fill","fillRule","transform","strokeLinecap","strokeLinejoin","d","fillOpacity","x","y"],"sources":["../../src/icons/SettingsIcon.js"],"sourcesContent":["import React from 'react';\nimport { ICON_SIZE } from '../constants';\n\nfunction SettingsIcon({ width = ICON_SIZE.WIDTH, height = ICON_SIZE.HEIGHT }) {\n return (\n <svg\n width={width}\n height={height}\n viewBox=\"0 0 22 22\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlnsXlink=\"http://www.w3.org/1999/xlink\">\n <title>icons/setting</title>\n <g id=\"Symbols\" stroke=\"none\" strokeWidth={1} fill=\"none\" fillRule=\"evenodd\">\n <g id=\"main-menu/collapsed\" transform=\"translate(-14, -494)\">\n <g id=\"Group-4\" transform=\"translate(9, 19)\">\n <g id=\"settings\" transform=\"translate(0, 470)\">\n <g id=\"icons/setting\" transform=\"translate(6, 6)\">\n <g\n id=\"Group\"\n stroke=\"#63779C\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth=\"1.5\">\n <path\n d=\"M8.13888889,1.46333333 C8.61222222,-0.487777778 11.3877778,-0.487777778 11.8611111,1.46333333 C12.0051589,2.05784356 12.4244819,2.54780471 12.9896128,2.78193979 C13.5547438,3.01607487 14.1977123,2.96622362 14.72,2.64777778 C16.4344444,1.60333333 18.3977778,3.56555556 17.3533333,5.28111111 C17.0353472,5.803171 16.9856162,6.44564563 17.2194755,7.0104213 C17.4533348,7.57519696 17.9426987,7.99444609 18.5366667,8.13888889 C20.4877778,8.61222222 20.4877778,11.3877778 18.5366667,11.8611111 C17.9421564,12.0051589 17.4521953,12.4244819 17.2180602,12.9896128 C16.9839251,13.5547438 17.0337764,14.1977123 17.3522222,14.72 C18.3966667,16.4344444 16.4344444,18.3977778 14.7188889,17.3533333 C14.196829,17.0353472 13.5543544,16.9856162 12.9895787,17.2194755 C12.424803,17.4533348 12.0055539,17.9426987 11.8611111,18.5366667 C11.3877778,20.4877778 8.61222222,20.4877778 8.13888889,18.5366667 C7.99484107,17.9421564 7.57551807,17.4521953 7.01038716,17.2180602 C6.44525624,16.9839251 5.80228769,17.0337764 5.28,17.3522222 C3.56555556,18.3966667 1.60222222,16.4344444 2.64666667,14.7188889 C2.96465281,14.196829 3.01438377,13.5543544 2.78052448,12.9895787 C2.5466652,12.424803 2.05730134,12.0055539 1.46333333,11.8611111 C-0.487777778,11.3877778 -0.487777778,8.61222222 1.46333333,8.13888889 C2.05784356,7.99484107 2.54780471,7.57551807 2.78193979,7.01038716 C3.01607487,6.44525624 2.96622362,5.80228769 2.64777778,5.28 C1.60333333,3.56555556 3.56555556,1.60222222 5.28111111,2.64666667 C6.38777778,3.32222222 7.83222222,2.72444444 8.13888889,1.46333333 Z\"\n id=\"Path\"\n />\n <path\n d=\"M13.3333333,10 C13.3333333,11.8409492 11.8409492,13.3333333 10,13.3333333 C8.15905083,13.3333333 6.66666667,11.8409492 6.66666667,10 C6.66666667,8.15905083 8.15905083,6.66666667 10,6.66666667 C11.8409492,6.66666667 13.3333333,8.15905083 13.3333333,10 L13.3333333,10 Z\"\n id=\"Path\"\n />\n </g>\n <rect\n id=\"Rectangle\"\n fillOpacity={0}\n fill=\"#000000\"\n fillRule=\"nonzero\"\n x={0}\n y={0}\n width={20}\n height={20}\n />\n </g>\n </g>\n </g>\n </g>\n </g>\n </svg>\n );\n}\n\nexport default SettingsIcon;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,QAAQ,cAAc;AAExC,SAASC,YAAYA,CAAC;EAAEC,KAAK,GAAGF,SAAS,CAACG,KAAK;EAAEC,MAAM,GAAGJ,SAAS,CAACK;AAAO,CAAC,EAAE;EAC5E,oBACEN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E,EAAG;IACVE,MAAM,EAAE;EAAG,CACZ,CACA,CACF,CACF,CACF,CACF,CACA,CAAC;AAEV;AAEA,eAAeH,YAAY"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ICON_SIZE } from '../constants';
|
|
3
|
+
function TaxonomyIcon({
|
|
4
|
+
width = ICON_SIZE.WIDTH,
|
|
5
|
+
height = ICON_SIZE.HEIGHT
|
|
6
|
+
}) {
|
|
7
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
8
|
+
width: width,
|
|
9
|
+
height: height,
|
|
10
|
+
viewBox: "0 0 21 21",
|
|
11
|
+
version: "1.1",
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
14
|
+
}, /*#__PURE__*/React.createElement("title", null, "icons/taxonomy"), /*#__PURE__*/React.createElement("g", {
|
|
15
|
+
id: "Symbols",
|
|
16
|
+
stroke: "none",
|
|
17
|
+
strokeWidth: 1,
|
|
18
|
+
fill: "none",
|
|
19
|
+
fillRule: "evenodd"
|
|
20
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
21
|
+
id: "main-menu/collapsed",
|
|
22
|
+
transform: "translate(-15, -412)"
|
|
23
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
24
|
+
id: "Group-4",
|
|
25
|
+
transform: "translate(9, 19)"
|
|
26
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
27
|
+
id: "scheme",
|
|
28
|
+
transform: "translate(0, 386)"
|
|
29
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
30
|
+
id: "icons/taxonomy",
|
|
31
|
+
transform: "translate(7, 8)"
|
|
32
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
33
|
+
id: "Group",
|
|
34
|
+
stroke: "#63779C",
|
|
35
|
+
strokeLinecap: "round",
|
|
36
|
+
strokeLinejoin: "round",
|
|
37
|
+
strokeWidth: "1.5"
|
|
38
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
39
|
+
id: "Rectangle",
|
|
40
|
+
x: 0,
|
|
41
|
+
y: "12.6666667",
|
|
42
|
+
width: "6.33333333",
|
|
43
|
+
height: "6.33333333",
|
|
44
|
+
rx: 2
|
|
45
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
46
|
+
id: "Rectangle",
|
|
47
|
+
x: "12.6666667",
|
|
48
|
+
y: "12.6666667",
|
|
49
|
+
width: "6.33333333",
|
|
50
|
+
height: "6.33333333",
|
|
51
|
+
rx: 2
|
|
52
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
53
|
+
id: "Rectangle",
|
|
54
|
+
x: "6.33333333",
|
|
55
|
+
y: 0,
|
|
56
|
+
width: "6.33333333",
|
|
57
|
+
height: "6.33333333",
|
|
58
|
+
rx: 2
|
|
59
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
60
|
+
d: "M3.16666667,12.6666667 L3.16666667,11.6111111 C3.16666667,10.4451766 4.11184331,9.5 5.27777778,9.5 L13.7222222,9.5 C14.8881567,9.5 15.8333333,10.4451766 15.8333333,11.6111111 L15.8333333,12.6666667",
|
|
61
|
+
id: "Path"
|
|
62
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
63
|
+
x1: "9.5",
|
|
64
|
+
y1: "6.33333333",
|
|
65
|
+
x2: "9.5",
|
|
66
|
+
y2: "9.5",
|
|
67
|
+
id: "Path"
|
|
68
|
+
})), /*#__PURE__*/React.createElement("rect", {
|
|
69
|
+
id: "Rectangle",
|
|
70
|
+
fillOpacity: 0,
|
|
71
|
+
fill: "#000000",
|
|
72
|
+
fillRule: "nonzero",
|
|
73
|
+
x: 0,
|
|
74
|
+
y: 0,
|
|
75
|
+
width: 19,
|
|
76
|
+
height: 19
|
|
77
|
+
})))))));
|
|
78
|
+
}
|
|
79
|
+
export default TaxonomyIcon;
|
|
80
|
+
//# sourceMappingURL=TaxonomyIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaxonomyIcon.js","names":["React","ICON_SIZE","TaxonomyIcon","width","WIDTH","height","HEIGHT","createElement","viewBox","version","xmlns","xmlnsXlink","id","stroke","strokeWidth","fill","fillRule","transform","strokeLinecap","strokeLinejoin","x","y","rx","d","x1","y1","x2","y2","fillOpacity"],"sources":["../../src/icons/TaxonomyIcon.js"],"sourcesContent":["import React from 'react';\nimport { ICON_SIZE } from '../constants';\n\nfunction TaxonomyIcon({ width = ICON_SIZE.WIDTH, height = ICON_SIZE.HEIGHT }) {\n return (\n <svg\n width={width}\n height={height}\n viewBox=\"0 0 21 21\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlnsXlink=\"http://www.w3.org/1999/xlink\">\n <title>icons/taxonomy</title>\n <g id=\"Symbols\" stroke=\"none\" strokeWidth={1} fill=\"none\" fillRule=\"evenodd\">\n <g id=\"main-menu/collapsed\" transform=\"translate(-15, -412)\">\n <g id=\"Group-4\" transform=\"translate(9, 19)\">\n <g id=\"scheme\" transform=\"translate(0, 386)\">\n <g id=\"icons/taxonomy\" transform=\"translate(7, 8)\">\n <g\n id=\"Group\"\n stroke=\"#63779C\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth=\"1.5\">\n <rect\n id=\"Rectangle\"\n x={0}\n y=\"12.6666667\"\n width=\"6.33333333\"\n height=\"6.33333333\"\n rx={2}\n />\n <rect\n id=\"Rectangle\"\n x=\"12.6666667\"\n y=\"12.6666667\"\n width=\"6.33333333\"\n height=\"6.33333333\"\n rx={2}\n />\n <rect\n id=\"Rectangle\"\n x=\"6.33333333\"\n y={0}\n width=\"6.33333333\"\n height=\"6.33333333\"\n rx={2}\n />\n <path\n d=\"M3.16666667,12.6666667 L3.16666667,11.6111111 C3.16666667,10.4451766 4.11184331,9.5 5.27777778,9.5 L13.7222222,9.5 C14.8881567,9.5 15.8333333,10.4451766 15.8333333,11.6111111 L15.8333333,12.6666667\"\n id=\"Path\"\n />\n <line x1=\"9.5\" y1=\"6.33333333\" x2=\"9.5\" y2=\"9.5\" id=\"Path\" />\n </g>\n <rect\n id=\"Rectangle\"\n fillOpacity={0}\n fill=\"#000000\"\n fillRule=\"nonzero\"\n x={0}\n y={0}\n width={19}\n height={19}\n />\n </g>\n </g>\n </g>\n </g>\n </g>\n </svg>\n );\n}\n\nexport default TaxonomyIcon;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,QAAQ,cAAc;AAExC,SAASC,YAAYA,CAAC;EAAEC,KAAK,GAAGF,SAAS,CAACG,KAAK;EAAEC,MAAM,GAAGJ,SAAS,CAACK;AAAO,CAAC,EAAE;EAC5E,oBACEN,KAAA,CAAAO,aAAA;IACEJ,KAAK,EAAEA,KAAM;IACbE,MAAM,EAAEA,MAAO;IACfG,OAAO,EAAC,WAAW;IACnBC,OAAO,EAAC,KAAK;IACbC,KAAK,EAAC,4BAA4B;IAClCC,UAAU,EAAC;EAA8B,gBACzCX,KAAA,CAAAO,aAAA,gBAAO,gBAAqB,CAAC,eAC7BP,KAAA,CAAAO,aAAA;IAAGK,EAAE,EAAC,SAAS;IAACC,MAAM,EAAC,MAAM;IAACC,WAAW,EAAE,CAAE;IAACC,IAAI,EAAC,MAAM;IAACC,QAAQ,EAAC;EAAS,gBAC1EhB,KAAA,CAAAO,aAAA;IAAGK,EAAE,EAAC,qBAAqB;IAACK,SAAS,EAAC;EAAsB,gBAC1DjB,KAAA,CAAAO,aAAA;IAAGK,EAAE,EAAC,SAAS;IAACK,SAAS,EAAC;EAAkB,gBAC1CjB,KAAA,CAAAO,aAAA;IAAGK,EAAE,EAAC,QAAQ;IAACK,SAAS,EAAC;EAAmB,gBAC1CjB,KAAA,CAAAO,aAAA;IAAGK,EAAE,EAAC,gBAAgB;IAACK,SAAS,EAAC;EAAiB,gBAChDjB,KAAA,CAAAO,aAAA;IACEK,EAAE,EAAC,OAAO;IACVC,MAAM,EAAC,SAAS;I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 'react';
|
|
2
|
+
import { ICON_SIZE } from '../constants';
|
|
3
|
+
function UserIcon({
|
|
4
|
+
width = ICON_SIZE.WIDTH,
|
|
5
|
+
height = ICON_SIZE.HEIGHT
|
|
6
|
+
}) {
|
|
7
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
8
|
+
width: width,
|
|
9
|
+
height: height,
|
|
10
|
+
viewBox: "0 0 21 20",
|
|
11
|
+
version: "1.1",
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
14
|
+
}, /*#__PURE__*/React.createElement("title", null, "icons/user"), /*#__PURE__*/React.createElement("g", {
|
|
15
|
+
id: "Symbols",
|
|
16
|
+
stroke: "none",
|
|
17
|
+
strokeWidth: 1,
|
|
18
|
+
fill: "none",
|
|
19
|
+
fillRule: "evenodd"
|
|
20
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
21
|
+
id: "main-menu/collapsed",
|
|
22
|
+
transform: "translate(-14, -453)"
|
|
23
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
24
|
+
id: "Group-4",
|
|
25
|
+
transform: "translate(9, 19)"
|
|
26
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
27
|
+
id: "Group-15",
|
|
28
|
+
transform: "translate(0, 428)"
|
|
29
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
30
|
+
id: "icons/user",
|
|
31
|
+
transform: "translate(6, 6)"
|
|
32
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
33
|
+
id: "Group",
|
|
34
|
+
transform: "translate(0, 0.76)",
|
|
35
|
+
stroke: "#63779C",
|
|
36
|
+
strokeLinecap: "round",
|
|
37
|
+
strokeLinejoin: "round",
|
|
38
|
+
strokeWidth: "1.5"
|
|
39
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
40
|
+
d: "M2.23883333,15.0013865 C4.45382875,13.7994901 6.95566666,13.1696336 9.5,13.1733169 C12.1388889,13.1733169 14.6162778,13.8370665 16.7611667,15.0013865 M12.6666667,7.09333314 C12.6666667,8.77227878 11.2489017,10.1333331 9.5,10.1333331 C7.75109829,10.1333331 6.33333333,8.77227878 6.33333333,7.09333314 C6.33333333,5.4143875 7.75109829,4.05333314 9.5,4.05333314 C11.2489017,4.05333314 12.6666667,5.4143875 12.6666667,7.09333314 L12.6666667,7.09333314 Z M19,9.11999981 C19,12.378262 17.1893103,15.3890205 14.25,17.0181516 C11.3106898,18.6472827 7.68931021,18.6472827 4.74999996,17.0181516 C1.81068971,15.3890205 4.68760833e-16,12.378262 4.68760833e-16,9.11999981 C4.68760833e-16,4.08316296 4.25329495,0 9.5,0 C14.746705,0 19,4.08316296 19,9.11999981 L19,9.11999981 Z",
|
|
41
|
+
id: "Shape"
|
|
42
|
+
})), /*#__PURE__*/React.createElement("rect", {
|
|
43
|
+
id: "Rectangle",
|
|
44
|
+
fillOpacity: 0,
|
|
45
|
+
fill: "#000000",
|
|
46
|
+
fillRule: "nonzero",
|
|
47
|
+
x: 0,
|
|
48
|
+
y: 0,
|
|
49
|
+
width: 19,
|
|
50
|
+
height: "18.24"
|
|
51
|
+
})))))));
|
|
52
|
+
}
|
|
53
|
+
export default UserIcon;
|
|
54
|
+
//# sourceMappingURL=UsersIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UsersIcon.js","names":["React","ICON_SIZE","UserIcon","width","WIDTH","height","HEIGHT","createElement","viewBox","version","xmlns","xmlnsXlink","id","stroke","strokeWidth","fill","fillRule","transform","strokeLinecap","strokeLinejoin","d","fillOpacity","x","y"],"sources":["../../src/icons/UsersIcon.js"],"sourcesContent":["import React from 'react';\nimport { ICON_SIZE } from '../constants';\n\nfunction UserIcon({ width = ICON_SIZE.WIDTH, height = ICON_SIZE.HEIGHT }) {\n return (\n <svg\n width={width}\n height={height}\n viewBox=\"0 0 21 20\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlnsXlink=\"http://www.w3.org/1999/xlink\">\n <title>icons/user</title>\n <g id=\"Symbols\" stroke=\"none\" strokeWidth={1} fill=\"none\" fillRule=\"evenodd\">\n <g id=\"main-menu/collapsed\" transform=\"translate(-14, -453)\">\n <g id=\"Group-4\" transform=\"translate(9, 19)\">\n <g id=\"Group-15\" transform=\"translate(0, 428)\">\n <g id=\"icons/user\" transform=\"translate(6, 6)\">\n <g\n id=\"Group\"\n transform=\"translate(0, 0.76)\"\n stroke=\"#63779C\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth=\"1.5\">\n <path\n d=\"M2.23883333,15.0013865 C4.45382875,13.7994901 6.95566666,13.1696336 9.5,13.1733169 C12.1388889,13.1733169 14.6162778,13.8370665 16.7611667,15.0013865 M12.6666667,7.09333314 C12.6666667,8.77227878 11.2489017,10.1333331 9.5,10.1333331 C7.75109829,10.1333331 6.33333333,8.77227878 6.33333333,7.09333314 C6.33333333,5.4143875 7.75109829,4.05333314 9.5,4.05333314 C11.2489017,4.05333314 12.6666667,5.4143875 12.6666667,7.09333314 L12.6666667,7.09333314 Z M19,9.11999981 C19,12.378262 17.1893103,15.3890205 14.25,17.0181516 C11.3106898,18.6472827 7.68931021,18.6472827 4.74999996,17.0181516 C1.81068971,15.3890205 4.68760833e-16,12.378262 4.68760833e-16,9.11999981 C4.68760833e-16,4.08316296 4.25329495,0 9.5,0 C14.746705,0 19,4.08316296 19,9.11999981 L19,9.11999981 Z\"\n id=\"Shape\"\n />\n </g>\n <rect\n id=\"Rectangle\"\n fillOpacity={0}\n fill=\"#000000\"\n fillRule=\"nonzero\"\n x={0}\n y={0}\n width={19}\n height=\"18.24\"\n />\n </g>\n </g>\n </g>\n </g>\n </g>\n </svg>\n );\n}\n\nexport default UserIcon;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,QAAQ,cAAc;AAExC,SAASC,QAAQA,CAAC;EAAEC,KAAK,GAAGF,SAAS,CAACG,KAAK;EA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E,EAAG;IACVE,MAAM,EAAC;EAAO,CACf,CACA,CACF,CACF,CACF,CACF,CACA,CAAC;AAEV;AAEA,eAAeH,QAAQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["UserIcon","TaxonomyIcon","ContentIcon","SettingsIcon"],"sources":["../../src/icons/index.js"],"sourcesContent":["import UserIcon from './UsersIcon';\nimport TaxonomyIcon from './TaxonomyIcon';\nimport ContentIcon from './ContentIcon';\nimport SettingsIcon from './SettingsIcon';\n\nexport { UserIcon, TaxonomyIcon, ContentIcon, SettingsIcon };\n"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,aAAa;AAClC,OAAOC,YAAY,MAAM,gBAAgB;AACzC,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,YAAY,MAAM,gBAAgB;AAEzC,SAASH,QAAQ,EAAEC,YAAY,EAAEC,WAAW,EAAEC,YAAY"}
|
package/lib-es/index.js
CHANGED
|
@@ -3,18 +3,11 @@ import React from 'react';
|
|
|
3
3
|
import pkg from '../package.json';
|
|
4
4
|
import { DATA_LISTING_PREFIX, PLUGIN_NAME } from './constants';
|
|
5
5
|
import getAddContentMenuItems from './utils/add-content-menu-items';
|
|
6
|
+
import { UserIcon, TaxonomyIcon, ContentIcon, SettingsIcon } from './icons';
|
|
6
7
|
const EntityDataListing = React.lazy(() => import( /* webpackChunkName: 'EntityDataListing' */'./components/EntityDataListing'));
|
|
7
8
|
const EntityManager = React.lazy(() => import( /* webpackChunkName: 'EntityManager' */'./components/EntityManager'));
|
|
8
9
|
export default async function load(app) {
|
|
9
|
-
|
|
10
|
-
const sectionKey = 'content';
|
|
11
|
-
app.events.once('load:menu-section', addSection => {
|
|
12
|
-
addSection(sectionKey, {
|
|
13
|
-
header: 'content',
|
|
14
|
-
order: 100
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
app.events.once('load:menu-items', getAddContentMenuItems(app, sectionKey));
|
|
10
|
+
app.events.once('admin:menu:config:load', getAddContentMenuItems(app));
|
|
18
11
|
app.events.once('load:custom:field:type', addFieldType => {
|
|
19
12
|
Object.keys(formFieldTypes).forEach(type => {
|
|
20
13
|
addFieldType({
|
|
@@ -26,6 +19,41 @@ export default async function load(app) {
|
|
|
26
19
|
app.events.once('plugin:data-ui:load:loaded', async () => {
|
|
27
20
|
await app.events.emitAsync('load:custom:field:type', getFormBuilderLookup.addFieldType);
|
|
28
21
|
});
|
|
22
|
+
app.events.once('admin:menu:config:load', ({
|
|
23
|
+
addConfig
|
|
24
|
+
}) => {
|
|
25
|
+
addConfig({
|
|
26
|
+
main: {
|
|
27
|
+
items: {
|
|
28
|
+
content: {
|
|
29
|
+
label: 'content',
|
|
30
|
+
loadOpen: true,
|
|
31
|
+
items: {},
|
|
32
|
+
icon: ContentIcon,
|
|
33
|
+
order: 10
|
|
34
|
+
},
|
|
35
|
+
taxonomy: {
|
|
36
|
+
label: 'Taxonomy',
|
|
37
|
+
items: {},
|
|
38
|
+
icon: TaxonomyIcon,
|
|
39
|
+
order: 40
|
|
40
|
+
},
|
|
41
|
+
user: {
|
|
42
|
+
label: 'User',
|
|
43
|
+
items: {},
|
|
44
|
+
icon: UserIcon,
|
|
45
|
+
order: 90
|
|
46
|
+
},
|
|
47
|
+
settings: {
|
|
48
|
+
label: 'Settings',
|
|
49
|
+
items: {},
|
|
50
|
+
icon: SettingsIcon,
|
|
51
|
+
order: 100
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
});
|
|
29
57
|
const entityDataListingRoute = {
|
|
30
58
|
path: `${DATA_LISTING_PREFIX}/:entityIdentifier`,
|
|
31
59
|
key: 'entityDataListing',
|
package/lib-es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["getFormBuilderLookup","formFieldTypes","React","pkg","DATA_LISTING_PREFIX","PLUGIN_NAME","getAddContentMenuItems","
|
|
1
|
+
{"version":3,"file":"index.js","names":["getFormBuilderLookup","formFieldTypes","React","pkg","DATA_LISTING_PREFIX","PLUGIN_NAME","getAddContentMenuItems","UserIcon","TaxonomyIcon","ContentIcon","SettingsIcon","EntityDataListing","lazy","EntityManager","load","app","events","once","addFieldType","Object","keys","forEach","type","component","emitAsync","addConfig","main","items","content","label","loadOpen","icon","order","taxonomy","user","settings","entityDataListingRoute","path","key","exact","editEntityRoute","addEntityRoute","addRoute","name","version","pluginName"],"sources":["../src/index.js"],"sourcesContent":["import { getFormBuilderLookup, formFieldTypes } from '@blaze-cms/react-form-builder';\nimport React from 'react';\nimport pkg from '../package.json';\nimport { DATA_LISTING_PREFIX, PLUGIN_NAME } from './constants';\nimport getAddContentMenuItems from './utils/add-content-menu-items';\nimport { UserIcon, TaxonomyIcon, ContentIcon, SettingsIcon } from './icons';\n\nconst EntityDataListing = React.lazy(() =>\n import(/* webpackChunkName: 'EntityDataListing' */ './components/EntityDataListing')\n);\nconst EntityManager = React.lazy(() =>\n import(/* webpackChunkName: 'EntityManager' */ './components/EntityManager')\n);\n\nexport default async function load(app) {\n app.events.once('admin:menu:config:load', getAddContentMenuItems(app));\n\n app.events.once('load:custom:field:type', addFieldType => {\n Object.keys(formFieldTypes).forEach(type => {\n addFieldType({ type, component: formFieldTypes[type] });\n });\n });\n\n app.events.once('plugin:data-ui:load:loaded', async () => {\n await app.events.emitAsync('load:custom:field:type', getFormBuilderLookup.addFieldType);\n });\n\n app.events.once('admin:menu:config:load', ({ addConfig }) => {\n addConfig({\n main: {\n items: {\n content: {\n label: 'content',\n loadOpen: true,\n items: {},\n icon: ContentIcon,\n order: 10\n },\n taxonomy: {\n label: 'Taxonomy',\n items: {},\n icon: TaxonomyIcon,\n order: 40\n },\n user: {\n label: 'User',\n items: {},\n icon: UserIcon,\n order: 90\n },\n settings: {\n label: 'Settings',\n items: {},\n icon: SettingsIcon,\n order: 100\n }\n }\n }\n });\n });\n\n const entityDataListingRoute = {\n path: `${DATA_LISTING_PREFIX}/:entityIdentifier`,\n key: 'entityDataListing',\n component: EntityDataListing,\n exact: true\n };\n\n const editEntityRoute = {\n path: `${DATA_LISTING_PREFIX}/:entityIdentifier/:action/:id`,\n key: 'editEntity',\n component: EntityManager,\n exact: true\n };\n\n const addEntityRoute = {\n path: `${DATA_LISTING_PREFIX}/:entityIdentifier/:action`,\n key: 'createEntity',\n component: EntityManager,\n exact: true\n };\n\n app.addRoute(entityDataListingRoute);\n app.addRoute(editEntityRoute);\n app.addRoute(addEntityRoute);\n\n return {\n name: PLUGIN_NAME,\n version: pkg.version\n };\n}\n\nload.pluginName = PLUGIN_NAME;\n"],"mappings":"AAAA,SAASA,oBAAoB,EAAEC,cAAc,QAAQ,+BAA+B;AACpF,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,MAAM,iBAAiB;AACjC,SAASC,mBAAmB,EAAEC,WAAW,QAAQ,aAAa;AAC9D,OAAOC,sBAAsB,MAAM,gCAAgC;AACnE,SAASC,QAAQ,EAAEC,YAAY,EAAEC,WAAW,EAAEC,YAAY,QAAQ,SAAS;AAE3E,MAAMC,iBAAiB,GAAGT,KAAK,CAACU,IAAI,CAAC,MACnC,MAAM,EAAC,2CAA4C,gCAAgC,CACrF,CAAC;AACD,MAAMC,aAAa,GAAGX,KAAK,CAACU,IAAI,CAAC,MAC/B,MAAM,EAAC,uCAAwC,4BAA4B,CAC7E,CAAC;AAED,eAAe,eAAeE,IAAIA,CAACC,GAAG,EAAE;EACtCA,GAAG,CAACC,MAAM,CAACC,IAAI,CAAC,wBAAwB,EAAEX,sBAAsB,CAACS,GAAG,CAAC,CAAC;EAEtEA,GAAG,CAACC,MAAM,CAACC,IAAI,CAAC,wBAAwB,EAAEC,YAAY,IAAI;IACxDC,MAAM,CAACC,IAAI,CAACnB,cAAc,CAAC,CAACoB,OAAO,CAACC,IAAI,IAAI;MAC1CJ,YAAY,CAAC;QAAEI,IAAI;QAAEC,SAAS,EAAEtB,cAAc,CAACqB,IAAI;MAAE,CAAC,CAAC;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