@dile/crud 2.6.4 → 2.7.2

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.
Files changed (22) hide show
  1. package/components/crud/crud.spec.js +142 -0
  2. package/components/crud/src/DileCrud.js +23 -3
  3. package/components/list/__screenshots__/crud-data-grid.spec.js/dile-crud-data-grid-always-forces-sort-mode-to-external-regardless-of-config-1.png +0 -0
  4. package/components/list/__screenshots__/crud-data-grid.spec.js/dile-crud-data-grid-forwards-stickyFirstColumn--striped--responsiveMode-and-emptyMessage-with-sensible-defaults-1.png +0 -0
  5. package/components/list/__screenshots__/crud-data-grid.spec.js/dile-crud-data-grid-leaves-computeRowId-unset-when-config-computeItemId-is-not-a-function-1.png +0 -0
  6. package/components/list/crud-data-grid.js +5 -0
  7. package/components/list/crud-data-grid.spec.js +207 -0
  8. package/components/list/crud-item-actions.js +5 -0
  9. package/components/list/crud-item-actions.spec.js +122 -0
  10. package/components/list/crud-list.spec.js +319 -0
  11. package/components/list/index.js +4 -2
  12. package/components/list/src/DileCrudDataGrid.js +93 -0
  13. package/components/list/src/DileCrudItemActions.js +191 -0
  14. package/components/list/src/DileCrudList.js +62 -11
  15. package/components/list/src/DileCrudListItem.js +78 -124
  16. package/components/ui/__screenshots__/crud-sort-form.spec.js/dile-crud-sort-form-syncSort-suppresses-exactly-one-radio-group-echo--preserving-the-synced-direction-instead-of-falling-back-to-the-option-static-default-1.png +0 -0
  17. package/components/ui/crud-sort-form.spec.js +132 -0
  18. package/components/ui/src/DileCrudSortForm.js +24 -5
  19. package/lib/CrudConfigBuilder.spec.js +32 -0
  20. package/lib/deepMerge.spec.js +45 -0
  21. package/lib/defaultConfig.js +4 -1
  22. package/package.json +3 -3
@@ -16,6 +16,7 @@ export const defaultConfig = {
16
16
  initial: 25,
17
17
  },
18
18
  maxBatchActionItems: 100,
19
+ grid: null,
19
20
  customization: {
20
21
  disableKeywordSearch: true,
21
22
  hideCountSummary: false,
@@ -26,6 +27,7 @@ export const defaultConfig = {
26
27
  disableEdit: false,
27
28
  disableDelete: false,
28
29
  disableRestore: false,
30
+ disableListActions: false,
29
31
  disablePagination: true,
30
32
  disableSort: true,
31
33
  disableFilter: true,
@@ -62,6 +64,7 @@ export const defaultConfig = {
62
64
  },
63
65
  templates: {
64
66
  item: () => templatePlaceholder('item'),
67
+ grid: null,
65
68
  insertForm: (belongsTo, relationId) => templatePlaceholder('insertForm'),
66
69
  updateForm: () => templatePlaceholder('updateForm'),
67
70
  help: () => templatePlaceholder('help'),
@@ -84,4 +87,4 @@ export const defaultConfig = {
84
87
  onActionListSuccess(actionSuccessDetail) {},
85
88
  onActionSingleSuccess(actionSuccessDetail) {},
86
89
  destructiveActionNames: ['DeleteAction'],
87
- }
90
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/crud",
3
- "version": "2.6.4",
3
+ "version": "2.7.2",
4
4
  "description": "Components to create a generic crud system based on Web Components and Lit",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -25,12 +25,12 @@
25
25
  },
26
26
  "homepage": "https://dile-components.com/",
27
27
  "dependencies": {
28
- "@dile/ui": "^3.11.0",
28
+ "@dile/ui": "^3.12.2",
29
29
  "axios": "^1.19.0",
30
30
  "lit": "^2.7.0 || ^3.0.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "5ebe41acdb9345d9f416a10c7e2819ac02e054c1"
35
+ "gitHead": "27dbd2411bd5856021209c49da6aed285c3fae28"
36
36
  }