eservices-core 1.0.426 → 1.0.428
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.js +14 -6
- package/dist/utils/Filter.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* eservices-core v1.0.
|
|
2
|
+
* eservices-core v1.0.428
|
|
3
3
|
* (c) 2022 ESERVICES
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -3682,10 +3682,13 @@ class List$1 extends EventEmitter {
|
|
|
3682
3682
|
* Добавляем ссылку в ячейку
|
|
3683
3683
|
* */
|
|
3684
3684
|
if (cell.link) {
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3685
|
+
const to = cell.link(cellValue, rowValues);
|
|
3686
|
+
if (to) {
|
|
3687
|
+
cellNodeChildren.push(vue.h(vueRouter.RouterLink, {
|
|
3688
|
+
to: cell.link(cellValue, rowValues),
|
|
3689
|
+
}));
|
|
3690
|
+
cellClasses.push('list-cell-link');
|
|
3691
|
+
}
|
|
3689
3692
|
}
|
|
3690
3693
|
/**
|
|
3691
3694
|
* Для удобной работы с ячейкой используется cell.type для преднастройки
|
|
@@ -6120,8 +6123,13 @@ function Filter(filters) {
|
|
|
6120
6123
|
const values = filters[name];
|
|
6121
6124
|
// Enum
|
|
6122
6125
|
if (Array.isArray(values)) {
|
|
6126
|
+
const parsedValues = values.map(elem => {
|
|
6127
|
+
if (typeof elem === 'string')
|
|
6128
|
+
return `'${elem}'`;
|
|
6129
|
+
return elem;
|
|
6130
|
+
}).join(', ');
|
|
6123
6131
|
if (values.length)
|
|
6124
|
-
arrayFilter.push(`@${name} in (${
|
|
6132
|
+
arrayFilter.push(`@${name} in (${parsedValues})`);
|
|
6125
6133
|
return arrayFilter;
|
|
6126
6134
|
}
|
|
6127
6135
|
// Date
|
package/dist/utils/Filter.d.ts
CHANGED
|
@@ -12,6 +12,6 @@ interface IFilterDateEnd {
|
|
|
12
12
|
end: string;
|
|
13
13
|
}
|
|
14
14
|
export declare type IFilterString = string;
|
|
15
|
-
export declare type IFilterEnum = string
|
|
15
|
+
export declare type IFilterEnum = Array<number | string>;
|
|
16
16
|
export declare type IFilterDate = IFilterDateStart | IFilterDateEnd | (IFilterDateStart & IFilterDateEnd);
|
|
17
17
|
export {};
|