eservices-core 1.0.584 → 1.0.586

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.586
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
  }
@@ -3612,8 +3612,10 @@ function getTableCell$1(cell, props, context) {
3612
3612
  break;
3613
3613
  }
3614
3614
  case "multi-select": {
3615
- const node = getSelectNode(props.selected);
3616
- cellNodeChildren.push(node);
3615
+ cellNodeChildren.push(vue.h(jenesiusVueForm.FormField, {
3616
+ type: "single-checkbox",
3617
+ modelValue: props.selected
3618
+ }));
3617
3619
  addHandleClick(select.bind(null, context, true));
3618
3620
  }
3619
3621
  }
@@ -3665,14 +3667,6 @@ function getTableCell$1(cell, props, context) {
3665
3667
  outputNodes.push(vue.h("td", attributes, cellNodeChildren));
3666
3668
  return outputNodes;
3667
3669
  }
3668
- function getSelectNode(value) {
3669
- return vue.h('div', {
3670
- class: {
3671
- 'table-cell-toggle': true,
3672
- 'table-cell-toggle_active': value
3673
- }
3674
- });
3675
- }
3676
3670
  function select(context, value) {
3677
3671
  context.emit('select', value);
3678
3672
  }
@@ -4023,7 +4017,7 @@ var script$f = {
4023
4017
  setup: setupListRow
4024
4018
  };
4025
4019
 
4026
- var css_248z$b = "\ntr[data-v-65df50d5] {\r\n\tborder: 1px solid #F3F4FC;\r\n\theight: 30px;\n}\nth[data-v-65df50d5],\r\ntd[data-v-65df50d5] {\r\n\tposition: relative;\r\n\r\n\tpadding: 0 9px;\n}\nth[data-v-65df50d5] {\r\n\ttext-align: left;\n}\np[data-v-65df50d5] {\r\n\tmargin: 0;\r\n\twhite-space: nowrap;\r\n\ttext-overflow: ellipsis;\r\n\toverflow: hidden;\n}\r\n";
4020
+ var css_248z$b = "\ntr[data-v-65df50d5] {\r\n\tborder: 1px solid #F3F4FC;\r\n\theight: 30px;\n}\nth[data-v-65df50d5],\r\ntd[data-v-65df50d5] {\r\n\tposition: relative;\r\n\r\n\tpadding: 0 11px;\n}\nth[data-v-65df50d5] {\r\n\ttext-align: left;\n}\np[data-v-65df50d5] {\r\n\tmargin: 0;\r\n\twhite-space: nowrap;\r\n\ttext-overflow: ellipsis;\r\n\toverflow: hidden;\n}\r\n";
4027
4021
  styleInject(css_248z$b);
4028
4022
 
4029
4023
  script$f.__scopeId = "data-v-65df50d5";
@@ -4182,12 +4176,16 @@ var script$d = /*#__PURE__*/ vue.defineComponent({
4182
4176
  if (!isMulti)
4183
4177
  return emits('update:selectRows', [v]);
4184
4178
  const index = props.selectRows.indexOf(v);
4179
+ console.log(index);
4185
4180
  if (index === -1)
4186
4181
  return emits('update:selectRows', [...props.selectRows, v]);
4187
4182
  return emits('update:selectRows', props.selectRows.filter(t => t !== v));
4188
4183
  }
4189
4184
  function selectAll() {
4190
- props.array.forEach(data => onSelect(data));
4185
+ props.array.forEach(data => {
4186
+ console.log(data);
4187
+ onSelect(data, true);
4188
+ });
4191
4189
  }
4192
4190
  return (_ctx, _cache) => {
4193
4191
  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.586",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {