eservices-core 1.0.399 → 1.0.400

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.
@@ -11,6 +11,7 @@ export interface ListCell {
11
11
  icon?: string;
12
12
  class?: string | string[];
13
13
  onClick?: (x: Values, obj: TableRowController) => void;
14
+ href?: (x: Values, obj: ValuesInterface) => string;
14
15
  edit?: boolean;
15
16
  delete?: boolean;
16
17
  }
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * eservices-core v1.0.399
2
+ * eservices-core v1.0.400
3
3
  * (c) 2022 ESERVICES
4
4
  */
5
5
  'use strict';
@@ -3643,6 +3643,13 @@ class Table extends List$1 {
3643
3643
  }));
3644
3644
  cellClasses.push('list-cell-link');
3645
3645
  }
3646
+ if (cell.href) {
3647
+ cellNodeChildren.push('a', {
3648
+ href: cell.href(cellValue, rowValues),
3649
+ target: '_blank'
3650
+ });
3651
+ cellClasses.push('list-cell-link');
3652
+ }
3646
3653
  /**
3647
3654
  * Установка обычного значения
3648
3655
  * */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.0.399",
3
+ "version": "1.0.400",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {