eservices-core 1.0.584 → 1.0.585

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.
@@ -14,7 +14,7 @@ export default class dataService {
14
14
  /**
15
15
  * @description Creating entity.
16
16
  * */
17
- static create(entity: string, values: ValuesInterface): Promise<IRequestCreateResult>;
17
+ static create(entity: string, values: ValuesInterface, rule?: string): Promise<IRequestCreateResult>;
18
18
  /**
19
19
  * @description Default update method, update entity by primaryKeys.
20
20
  * */
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * eservices-core v1.0.584
2
+ * eservices-core v1.0.585
3
3
  * (c) 2023 ESERVICES
4
4
  */
5
5
  'use strict';
@@ -2647,14 +2647,14 @@ class dataService {
2647
2647
  /**
2648
2648
  * @description Creating entity.
2649
2649
  * */
2650
- static create(entity, values) {
2651
- return Request(`/close-api/data/${entity}`, {
2650
+ static create(entity, values, rule = "*") {
2651
+ return Request(`/close-api/data/${entity}?rule=${rule}`, {
2652
2652
  method: 'POST',
2653
2653
  headers: {
2654
2654
  'Content-Type': 'application/json',
2655
2655
  },
2656
2656
  body: JSON.stringify({
2657
- values
2657
+ values,
2658
2658
  })
2659
2659
  });
2660
2660
  }
@@ -4187,7 +4187,7 @@ var script$d = /*#__PURE__*/ vue.defineComponent({
4187
4187
  return emits('update:selectRows', props.selectRows.filter(t => t !== v));
4188
4188
  }
4189
4189
  function selectAll() {
4190
- props.array.forEach(data => onSelect(data));
4190
+ props.array.forEach(data => onSelect(data, true));
4191
4191
  }
4192
4192
  return (_ctx, _cache) => {
4193
4193
  return (vue.openBlock(), vue.createElementBlock("table", _hoisted_1$a, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.584",
3
+ "version": "1.0.585",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {