runlify 0.0.575 → 0.0.576

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.
@@ -72,7 +72,7 @@ var uiDefaultListTmpl = function (_a) {
72
72
  ? "import ImageViewField from '../../../../uiLib/file/ImageViewField';\n"
73
73
  : '', "\n").concat(options.skipWarningThisIsGenerated
74
74
  ? ''
75
- : "// ".concat(utils_1.generatedWarning, "\n")).concat(entity.removableByUser ? "\nconst DefaultBulkActionButton = (props: BulkActionProps) => {\n const {permissions} = usePermissions<string[]>();\n\n return (\n <>\n {hasPermission(permissions, '".concat(entity.name, ".delete') && <BulkDeleteButton {...props} />}\n </>\n );\n};\n") : '', "\nconst Default").concat((0, cases_1.pascalSingular)(entity.name), "List: FC<ListProps> = (props: ListProps) => {\n return (\n <List\n title='").concat((0, pluralize_1.plural)(entity.type), ".").concat(entity.name, ".title.plural'\n filters={<").concat((0, cases_1.pascalSingular)(entity.name), "Filter />}\n actions={<ListActions />}\n sort={{field: 'id', order: 'desc'}}").concat(!entity.exportableByUser ? "\n exporter={false}" : '', "\n {...props}\n >\n <Datagrid\n rowClick='show'\n bulkActionButtons={").concat(entity.removableByUser ? '<DefaultBulkActionButton />' : 'false', "}\n >\n").concat(entity.fields
75
+ : "// ".concat(utils_1.generatedWarning, "\n")).concat(entity.removableByUser ? "\nconst DefaultBulkActionButton = (props: BulkActionProps) => {\n const {permissions} = usePermissions<string[]>();\n\n return (\n <>\n {hasPermission(permissions, '".concat(entity.name, ".delete') && <BulkDeleteButton {...props} />}\n </>\n );\n};\n") : '', "\nconst Default").concat((0, cases_1.pascalSingular)(entity.name), "List: FC<ListProps> = (props: ListProps) => {\n return (\n <List\n title='").concat((0, pluralize_1.plural)(entity.type), ".").concat(entity.name, ".title.plural'\n filters={<").concat((0, cases_1.pascalSingular)(entity.name), "Filter />}\n actions={<ListActions />}\n sort={{field: 'id', order: 'DESC'}}").concat(!entity.exportableByUser ? "\n exporter={false}" : '', "\n {...props}\n >\n <Datagrid\n rowClick='show'\n bulkActionButtons={").concat(entity.removableByUser ? '<DefaultBulkActionButton />' : 'false', "}\n >\n").concat(entity.fields
76
76
  .filter(function (f) { return !f.hidden; })
77
77
  .filter(function (f) { return f.showInList; })
78
78
  .map(function (f) { return (0, getShowComponent_1.getShowComponent)(entity, allEntities, f, 'list'); })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runlify",
3
- "version": "0.0.575",
3
+ "version": "0.0.576",
4
4
  "description": "runlify CLI",
5
5
  "private": false,
6
6
  "main": "build/index.js",