@adminforth/list-in-place-edit 1.0.6 → 1.0.8

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/build.log CHANGED
@@ -7,5 +7,5 @@ custom/
7
7
  custom/InPlaceEdit.vue
8
8
  custom/tsconfig.json
9
9
 
10
- sent 5,344 bytes received 58 bytes 10,804.00 bytes/sec
10
+ sent 5,347 bytes received 58 bytes 10,810.00 bytes/sec
11
11
  total size is 5,132 speedup is 0.95
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ export default class ListInPlaceEditPlugin extends AdminForthPlugin {
22
22
  const targetColumns = resourceConfig.columns.filter(col => this.options.columns.includes(col.name));
23
23
  targetColumns.forEach(column => {
24
24
  var _a;
25
- if ((_a = column.components) === null || _a === void 0 ? void 0 : _a.list) {
25
+ if (((_a = column.components) === null || _a === void 0 ? void 0 : _a.list) && (typeof column.components.list === 'object' && column.components.list.file !== this.componentPath('InPlaceEdit.vue'))) {
26
26
  throw new Error(`Column ${column.name} already has a list component defined. ListInplaceEdit plugin cannot be used on columns that already have list components.`);
27
27
  }
28
28
  if (!column.components) {
package/index.ts CHANGED
@@ -18,7 +18,7 @@ export default class ListInPlaceEditPlugin extends AdminForthPlugin {
18
18
  );
19
19
 
20
20
  targetColumns.forEach(column => {
21
- if (column.components?.list) {
21
+ if (column.components?.list && (typeof column.components.list === 'object' && column.components.list.file !== this.componentPath('InPlaceEdit.vue'))) {
22
22
  throw new Error(`Column ${column.name} already has a list component defined. ListInplaceEdit plugin cannot be used on columns that already have list components.`);
23
23
  }
24
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/list-in-place-edit",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -31,7 +31,7 @@
31
31
  "vue-i18n": "^11.1.3"
32
32
  },
33
33
  "peerDependencies": {
34
- "adminforth": "latest"
34
+ "adminforth": "^2.13.0-next.51"
35
35
  },
36
36
  "release": {
37
37
  "plugins": [