eservices-core 1.0.421 → 1.0.423

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/dist/index.d.ts CHANGED
@@ -50,6 +50,7 @@ import { prettyDate, prettyDateWithTime } from "./utils/prettyDate";
50
50
  import Filter from "./utils/Filter";
51
51
  import staticLink from "./utils/static-link";
52
52
  import groupArrayByField from "./utils/group-array-by-field";
53
+ import uuidv4 from "./utils/uuid";
53
54
  import useFormMetadata from "./hooks/use-form-metadata";
54
55
  import useFormAction from "./hooks/use-form-action";
55
56
  import useFormLabel from "./hooks/use-form-label";
@@ -87,6 +88,7 @@ declare const utils: {
87
88
  Filter: typeof Filter;
88
89
  staticLink: typeof staticLink;
89
90
  groupArrayByField: typeof groupArrayByField;
91
+ uuidv4: typeof uuidv4;
90
92
  };
91
93
  export { utils };
92
94
  /**
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * eservices-core v1.0.421
2
+ * eservices-core v1.0.423
3
3
  * (c) 2022 ESERVICES
4
4
  */
5
5
  'use strict';
@@ -3712,7 +3712,7 @@ class List$1 extends EventEmitter {
3712
3712
  cellClasses.push(...(Array.isArray(cell.class) ? cell.class : [cell.class]));
3713
3713
  const attr = {};
3714
3714
  if (cell.onClick) {
3715
- attr.onClick = cell.onClick.bind(rowValues);
3715
+ attr.onClick = cell.onClick.bind(null, rowValues);
3716
3716
  }
3717
3717
  return [vue.h("td", Object.assign({ class: cellClasses }, attr), cellNodeChildren)];
3718
3718
  }
@@ -6182,6 +6182,11 @@ function groupArrayByField(array, field, compare) {
6182
6182
  }, []);
6183
6183
  }
6184
6184
 
6185
+ function uuidv4() {
6186
+ // @ts-ignore
6187
+ return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c => (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16));
6188
+ }
6189
+
6185
6190
  function useFormMetadata(form, rules, id) {
6186
6191
  form.on(jenesiusVueForm.Form.EVENT_READ, () => {
6187
6192
  if (!form.name)
@@ -6405,7 +6410,8 @@ const utils = {
6405
6410
  prettyDateWithTime,
6406
6411
  Filter,
6407
6412
  staticLink,
6408
- groupArrayByField
6413
+ groupArrayByField,
6414
+ uuidv4
6409
6415
  };
6410
6416
  var index = {
6411
6417
  services,
@@ -0,0 +1 @@
1
+ export default function uuidv4(): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.421",
3
+ "version": "1.0.423",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {