@progress/kendo-vue-data-tools 7.0.3-develop.1 → 7.1.0-develop.2
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/detail-expansion/expandReducer.js +8 -0
- package/detail-expansion/expandReducer.mjs +26 -0
- package/detail-expansion/utils.js +8 -0
- package/detail-expansion/utils.mjs +17 -0
- package/dist/cdn/js/kendo-vue-datatools.js +1 -1
- package/editing/editReducer.js +8 -0
- package/editing/editReducer.mjs +43 -0
- package/editing/utils.js +8 -0
- package/editing/utils.mjs +17 -0
- package/group-expansion/groupExpandReducer.js +8 -0
- package/group-expansion/groupExpandReducer.mjs +107 -0
- package/header/utils/main.js +1 -1
- package/header/utils/main.mjs +95 -80
- package/index.d.mts +256 -4
- package/index.d.ts +256 -4
- package/index.js +1 -1
- package/index.mjs +133 -110
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +10 -10
- package/utils/data-operations.js +1 -1
- package/utils/data-operations.mjs +41 -24
package/index.mjs
CHANGED
|
@@ -7,121 +7,144 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { ColumnResize as o } from "./drag/ColumnResize.mjs";
|
|
9
9
|
import { CommonDragLogic as a } from "./drag/CommonDragLogic.mjs";
|
|
10
|
-
import { DragClue as
|
|
10
|
+
import { DragClue as l } from "./drag/DragClue.mjs";
|
|
11
11
|
import { DropClue as i } from "./drag/DropClue.mjs";
|
|
12
12
|
import { FilterCell as x } from "./cells/FilterCell.mjs";
|
|
13
|
-
import {
|
|
14
|
-
import { getGroupIds as
|
|
15
|
-
import { IsUnaryFilter as
|
|
16
|
-
import { Pager as
|
|
17
|
-
import { PagerInfo as
|
|
18
|
-
import { PagerInput as
|
|
19
|
-
import { PagerNavigationButton as
|
|
20
|
-
import { PagerNumericButtons as
|
|
21
|
-
import { PagerPageSizes as
|
|
22
|
-
import { HeaderThElement as
|
|
23
|
-
import { normalize as
|
|
24
|
-
import { FOCUSABLE_ELEMENTS as
|
|
25
|
-
import { TableKeyboardNavigationProvider as
|
|
26
|
-
import { tableKeyboardNavigationTools as
|
|
27
|
-
import { TABLE_COL_INDEX_ATTRIBUTE as
|
|
28
|
-
import { closestTagName as
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
13
|
+
import { combineFilters as E, filterBy as d, getSearchFromString as A, getStringFromSearch as g, orderBy as _ } from "./utils/data-operations.mjs";
|
|
14
|
+
import { getGroupIds as T, setExpandedState as s, setGroupIds as D } from "./utils/group-operations.mjs";
|
|
15
|
+
import { IsUnaryFilter as N, booleanFilterValues as B, cellBoolDropdownChange as C, cellInputChange as R, cellOperatorChange as I, defaultBooleanOperator as S, defaultHideSecondFilter as c, filterLogicList as F, getDefaultOperator as b, getFilterType as L, operatorMap as P, operators as K } from "./filterCommon.mjs";
|
|
16
|
+
import { Pager as V } from "./pager/Pager.mjs";
|
|
17
|
+
import { PagerInfo as v } from "./pager/PagerInfo.mjs";
|
|
18
|
+
import { PagerInput as h } from "./pager/PagerInput.mjs";
|
|
19
|
+
import { PagerNavigationButton as U } from "./pager/PagerNavigationButton.mjs";
|
|
20
|
+
import { PagerNumericButtons as X } from "./pager/PagerNumericButtons.mjs";
|
|
21
|
+
import { PagerPageSizes as M } from "./pager/PagerPageSizes.mjs";
|
|
22
|
+
import { HeaderThElement as Z } from "./header/HeaderThElement.mjs";
|
|
23
|
+
import { normalize as k } from "./pager/GridPagerSettings.mjs";
|
|
24
|
+
import { FOCUSABLE_ELEMENTS as J, KEYBOARD_NAV_DATA_BODY as Q, KEYBOARD_NAV_DATA_HEADER as $, KEYBOARD_NAV_DATA_ID as ee, KEYBOARD_NAV_DATA_LEVEL as re, KEYBOARD_NAV_DATA_SCOPE as oe, KEYBOARD_NAV_DATA_ZONE as te, KEYBOARD_NAV_FILTER_COL_SUFFIX as ae, TABBABLE_ELEMENTS as pe, tableKeyboardNavigationBodyAttributes as le, tableKeyboardNavigationHeaderAttributes as me, tableKeyboardNavigationScopeAttributes as ie } from "./navigation/constants.mjs";
|
|
25
|
+
import { TableKeyboardNavigationProvider as xe } from "./navigation/TableKeyboardNavigation.mjs";
|
|
26
|
+
import { tableKeyboardNavigationTools as Ee } from "./navigation/utils.mjs";
|
|
27
|
+
import { TABLE_COL_INDEX_ATTRIBUTE as Ae, TABLE_PREVENT_SELECTION_ELEMENT as ge, TABLE_ROW_INDEX_ATTRIBUTE as _e } from "./selection/constants.mjs";
|
|
28
|
+
import { closestTagName as Te, getColumnIndex as se, getOffset as De, getRowIndex as Oe, getSelectedState as Ne, getSelectedStateFromKeyDown as Be, getSelectionOptions as Ce, relativeContextElement as Re, setSelectedState as Ie } from "./selection/utils.mjs";
|
|
29
|
+
import { getEditableOptions as ce } from "./editing/utils.mjs";
|
|
30
|
+
import { EDIT_ACTION as be, editReducer as Le } from "./editing/editReducer.mjs";
|
|
31
|
+
import { getDetailExpandableOptions as Ke } from "./detail-expansion/utils.mjs";
|
|
32
|
+
import { DETAIL_EXPAND_ACTION as Ve, detailExpandReducer as He } from "./detail-expansion/expandReducer.mjs";
|
|
33
|
+
import { GROUP_EXPAND_ACTION as Ye, findGroupExpand as he, flatToTree as Ge, getGroupExpandableOptions as Ue, groupExpandReducer as we, isExpanded as Xe } from "./group-expansion/groupExpandReducer.mjs";
|
|
34
|
+
import { TextFilter as Me } from "./filter/filters/TextFilter.mjs";
|
|
35
|
+
import { NumericFilter as Ze } from "./filter/filters/NumericFilter.mjs";
|
|
36
|
+
import { DateFilter as ke } from "./filter/filters/DateFilter.mjs";
|
|
37
|
+
import { BooleanFilter as Je } from "./filter/filters/BooleanFilter.mjs";
|
|
38
|
+
import { EnumFilter as $e } from "./filter/filters/EnumFilter.mjs";
|
|
39
|
+
import { Expression as rr } from "./filter/Expression.mjs";
|
|
40
|
+
import { Filter as tr } from "./filter/Filter.mjs";
|
|
41
|
+
import { GroupFilter as pr } from "./filter/GroupFilters.mjs";
|
|
42
|
+
import { Operators as mr, stringOperator as ir, unaryOperator as nr } from "./filter/operators.mjs";
|
|
43
|
+
import { ColumnDefaultProps as fr } from "./interfaces/ColumnProps.mjs";
|
|
44
|
+
import { FilterRow as dr } from "./header/FilterRow.mjs";
|
|
45
|
+
import { Header as gr } from "./header/Header.mjs";
|
|
46
|
+
import { HeaderCell as ur } from "./header/HeaderCell.mjs";
|
|
47
|
+
import { HeaderRow as sr } from "./header/HeaderRow.mjs";
|
|
48
|
+
import { HeaderSelectionCell as Or } from "./header/HeaderSelectionCell.mjs";
|
|
49
|
+
import { getIndex as Br, isRtl as Cr, mapColumns as Rr, nextColumn as Ir, readColumns as Sr, updateLeft as cr, updateRight as Fr } from "./header/utils/main.mjs";
|
|
50
|
+
import { HeaderTdElement as Lr } from "./header/HeaderTdElement.mjs";
|
|
51
|
+
import { tableColumnsVirtualization as Kr } from "./virtualization/columns.mjs";
|
|
47
52
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
Je as BooleanFilter,
|
|
54
|
+
fr as ColumnDefaultProps,
|
|
50
55
|
o as ColumnResize,
|
|
51
56
|
a as CommonDragLogic,
|
|
52
|
-
|
|
53
|
-
|
|
57
|
+
Ve as DETAIL_EXPAND_ACTION,
|
|
58
|
+
ke as DateFilter,
|
|
59
|
+
l as DragClue,
|
|
54
60
|
i as DropClue,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
61
|
+
be as EDIT_ACTION,
|
|
62
|
+
$e as EnumFilter,
|
|
63
|
+
rr as Expression,
|
|
64
|
+
J as FOCUSABLE_ELEMENTS,
|
|
65
|
+
tr as Filter,
|
|
59
66
|
x as FilterCell,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
U as
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
B as
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
Ne as
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
67
|
+
dr as FilterRow,
|
|
68
|
+
Ye as GROUP_EXPAND_ACTION,
|
|
69
|
+
pr as GroupFilter,
|
|
70
|
+
gr as Header,
|
|
71
|
+
ur as HeaderCell,
|
|
72
|
+
sr as HeaderRow,
|
|
73
|
+
Or as HeaderSelectionCell,
|
|
74
|
+
Lr as HeaderTdElement,
|
|
75
|
+
Z as HeaderThElement,
|
|
76
|
+
N as IsUnaryFilter,
|
|
77
|
+
Q as KEYBOARD_NAV_DATA_BODY,
|
|
78
|
+
$ as KEYBOARD_NAV_DATA_HEADER,
|
|
79
|
+
ee as KEYBOARD_NAV_DATA_ID,
|
|
80
|
+
re as KEYBOARD_NAV_DATA_LEVEL,
|
|
81
|
+
oe as KEYBOARD_NAV_DATA_SCOPE,
|
|
82
|
+
te as KEYBOARD_NAV_DATA_ZONE,
|
|
83
|
+
ae as KEYBOARD_NAV_FILTER_COL_SUFFIX,
|
|
84
|
+
Ze as NumericFilter,
|
|
85
|
+
mr as Operators,
|
|
86
|
+
V as Pager,
|
|
87
|
+
v as PagerInfo,
|
|
88
|
+
h as PagerInput,
|
|
89
|
+
U as PagerNavigationButton,
|
|
90
|
+
X as PagerNumericButtons,
|
|
91
|
+
M as PagerPageSizes,
|
|
92
|
+
pe as TABBABLE_ELEMENTS,
|
|
93
|
+
Ae as TABLE_COL_INDEX_ATTRIBUTE,
|
|
94
|
+
ge as TABLE_PREVENT_SELECTION_ELEMENT,
|
|
95
|
+
_e as TABLE_ROW_INDEX_ATTRIBUTE,
|
|
96
|
+
xe as TableKeyboardNavigationProvider,
|
|
97
|
+
Me as TextFilter,
|
|
98
|
+
B as booleanFilterValues,
|
|
99
|
+
C as cellBoolDropdownChange,
|
|
100
|
+
R as cellInputChange,
|
|
101
|
+
I as cellOperatorChange,
|
|
102
|
+
Te as closestTagName,
|
|
103
|
+
E as combineFilters,
|
|
104
|
+
S as defaultBooleanOperator,
|
|
105
|
+
c as defaultHideSecondFilter,
|
|
106
|
+
He as detailExpandReducer,
|
|
107
|
+
Le as editReducer,
|
|
108
|
+
d as filterBy,
|
|
109
|
+
F as filterLogicList,
|
|
110
|
+
he as findGroupExpand,
|
|
111
|
+
Ge as flatToTree,
|
|
112
|
+
se as getColumnIndex,
|
|
113
|
+
b as getDefaultOperator,
|
|
114
|
+
Ke as getDetailExpandableOptions,
|
|
115
|
+
ce as getEditableOptions,
|
|
116
|
+
L as getFilterType,
|
|
117
|
+
Ue as getGroupExpandableOptions,
|
|
118
|
+
T as getGroupIds,
|
|
119
|
+
Br as getIndex,
|
|
120
|
+
De as getOffset,
|
|
121
|
+
Oe as getRowIndex,
|
|
122
|
+
A as getSearchFromString,
|
|
123
|
+
Ne as getSelectedState,
|
|
124
|
+
Be as getSelectedStateFromKeyDown,
|
|
125
|
+
Ce as getSelectionOptions,
|
|
126
|
+
g as getStringFromSearch,
|
|
127
|
+
we as groupExpandReducer,
|
|
128
|
+
Xe as isExpanded,
|
|
129
|
+
Cr as isRtl,
|
|
130
|
+
Rr as mapColumns,
|
|
131
|
+
Ir as nextColumn,
|
|
132
|
+
k as normalize,
|
|
133
|
+
P as operatorMap,
|
|
134
|
+
K as operators,
|
|
135
|
+
_ as orderBy,
|
|
136
|
+
Sr as readColumns,
|
|
137
|
+
Re as relativeContextElement,
|
|
138
|
+
s as setExpandedState,
|
|
139
|
+
D as setGroupIds,
|
|
140
|
+
Ie as setSelectedState,
|
|
141
|
+
ir as stringOperator,
|
|
142
|
+
Kr as tableColumnsVirtualization,
|
|
143
|
+
le as tableKeyboardNavigationBodyAttributes,
|
|
144
|
+
me as tableKeyboardNavigationHeaderAttributes,
|
|
145
|
+
ie as tableKeyboardNavigationScopeAttributes,
|
|
146
|
+
Ee as tableKeyboardNavigationTools,
|
|
147
|
+
nr as unaryOperator,
|
|
148
|
+
cr as updateLeft,
|
|
149
|
+
Fr as updateRight
|
|
127
150
|
};
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-data-tools",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-data-tools",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1766490981,version:"7.1.0-develop.2",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "Kendo UI for Vue",
|
|
11
11
|
productCode: "KENDOUIVUE",
|
|
12
12
|
productCodes: ["KENDOUIVUE"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "7.0
|
|
13
|
+
publishDate: 1766490981,
|
|
14
|
+
version: "7.1.0-develop.2",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
16
16
|
};
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-data-tools",
|
|
3
|
-
"version": "7.0
|
|
3
|
+
"version": "7.1.0-develop.2",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@progress/kendo-data-query": "^1.7.0",
|
|
22
22
|
"@progress/kendo-licensing": "^1.7.2",
|
|
23
|
-
"@progress/kendo-vue-animation": "7.0
|
|
24
|
-
"@progress/kendo-vue-buttons": "7.0
|
|
25
|
-
"@progress/kendo-vue-common": "7.0
|
|
26
|
-
"@progress/kendo-vue-dateinputs": "7.0
|
|
27
|
-
"@progress/kendo-vue-dropdowns": "7.0
|
|
28
|
-
"@progress/kendo-vue-inputs": "7.0
|
|
29
|
-
"@progress/kendo-vue-intl": "7.0
|
|
30
|
-
"@progress/kendo-vue-popup": "7.0
|
|
23
|
+
"@progress/kendo-vue-animation": "7.1.0-develop.2",
|
|
24
|
+
"@progress/kendo-vue-buttons": "7.1.0-develop.2",
|
|
25
|
+
"@progress/kendo-vue-common": "7.1.0-develop.2",
|
|
26
|
+
"@progress/kendo-vue-dateinputs": "7.1.0-develop.2",
|
|
27
|
+
"@progress/kendo-vue-dropdowns": "7.1.0-develop.2",
|
|
28
|
+
"@progress/kendo-vue-inputs": "7.1.0-develop.2",
|
|
29
|
+
"@progress/kendo-vue-intl": "7.1.0-develop.2",
|
|
30
|
+
"@progress/kendo-vue-popup": "7.1.0-develop.2",
|
|
31
31
|
"@progress/kendo-svg-icons": "^4.4.0",
|
|
32
32
|
"vue": "^3.0.2"
|
|
33
33
|
},
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"package": {
|
|
49
49
|
"productName": "Kendo UI for Vue",
|
|
50
50
|
"productCode": "KENDOUIVUE",
|
|
51
|
-
"publishDate":
|
|
51
|
+
"publishDate": 1766490981,
|
|
52
52
|
"licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
53
53
|
}
|
|
54
54
|
},
|
package/utils/data-operations.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("@progress/kendo-data-query");function o(r,t,n){return n?{...r,[t]:n.length?[...n]:void 0}:r&&r[t]?[...r[t]]:[]}function u(r,t,n){if(r[n]){let e=o(r,n,g.orderBy(o(r,n),t)),i=o(e,n).map(l=>u(l,t,n));return{...e,[n]:i}}return r}function S(r,t,n){let e=g.orderBy(r,t);return e=e.map(i=>u(i,t,n)),e}function c(r,t,n){let e=o(r,n);if(e&&e.length){e=e.map(f=>c(f,t,n));const l={filters:[{filters:t,logic:"and"},{operator:f=>!!(f[n]||[]).length}],logic:"or"},y=g.filterBy(e,l);return o(r,n,y)}return r}function h(r,t,n){let e={[n]:[...r]};return e=c(e,t,n),e[n]||[]}const B=(r,t)=>({...r,filters:r.filters.map(n=>({...n,value:t}))}),p=r=>r!=null&&r.filters.length&&r.filters[0].value||"",v=(r,t)=>{if(t&&!r)return t;if(r&&!t)return r;if(r&&t)return{logic:"and",filters:[r,t]}};exports.combineFilters=v;exports.filterBy=h;exports.getSearchFromString=B;exports.getStringFromSearch=p;exports.orderBy=S;
|
|
@@ -5,41 +5,58 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { orderBy as
|
|
9
|
-
function l(
|
|
10
|
-
return
|
|
8
|
+
import { orderBy as g, filterBy as B } from "@progress/kendo-data-query";
|
|
9
|
+
function l(r, t, n) {
|
|
10
|
+
return n ? { ...r, [t]: n.length ? [...n] : void 0 } : r && r[t] ? [...r[t]] : [];
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
if (n
|
|
14
|
-
let o = l(
|
|
15
|
-
return { ...o, [
|
|
12
|
+
function u(r, t, n) {
|
|
13
|
+
if (r[n]) {
|
|
14
|
+
let o = l(r, n, g(l(r, n), t)), i = l(o, n).map((e) => u(e, t, n));
|
|
15
|
+
return { ...o, [n]: i };
|
|
16
16
|
}
|
|
17
|
-
return
|
|
17
|
+
return r;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
let o =
|
|
21
|
-
return o = o.map((
|
|
19
|
+
function y(r, t, n) {
|
|
20
|
+
let o = g(r, t);
|
|
21
|
+
return o = o.map((i) => u(i, t, n)), o;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
let o = l(
|
|
23
|
+
function c(r, t, n) {
|
|
24
|
+
let o = l(r, n);
|
|
25
25
|
if (o && o.length) {
|
|
26
|
-
o = o.map((
|
|
27
|
-
const
|
|
26
|
+
o = o.map((f) => c(f, t, n));
|
|
27
|
+
const h = B(o, {
|
|
28
28
|
filters: [
|
|
29
|
-
{ filters:
|
|
30
|
-
{ operator: (
|
|
29
|
+
{ filters: t, logic: "and" },
|
|
30
|
+
{ operator: (f) => !!(f[n] || []).length }
|
|
31
31
|
],
|
|
32
32
|
logic: "or"
|
|
33
33
|
});
|
|
34
|
-
return l(
|
|
34
|
+
return l(r, n, h);
|
|
35
35
|
}
|
|
36
|
-
return
|
|
36
|
+
return r;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
let o = { [
|
|
40
|
-
return o =
|
|
38
|
+
function C(r, t, n) {
|
|
39
|
+
let o = { [n]: [...r] };
|
|
40
|
+
return o = c(o, t, n), o[n] || [];
|
|
41
41
|
}
|
|
42
|
+
const S = (r, t) => ({
|
|
43
|
+
...r,
|
|
44
|
+
filters: r.filters.map((n) => ({ ...n, value: t }))
|
|
45
|
+
}), v = (r) => r != null && r.filters.length && r.filters[0].value || "", $ = (r, t) => {
|
|
46
|
+
if (t && !r)
|
|
47
|
+
return t;
|
|
48
|
+
if (r && !t)
|
|
49
|
+
return r;
|
|
50
|
+
if (r && t)
|
|
51
|
+
return {
|
|
52
|
+
logic: "and",
|
|
53
|
+
filters: [r, t]
|
|
54
|
+
};
|
|
55
|
+
};
|
|
42
56
|
export {
|
|
43
|
-
$ as
|
|
44
|
-
C as
|
|
57
|
+
$ as combineFilters,
|
|
58
|
+
C as filterBy,
|
|
59
|
+
S as getSearchFromString,
|
|
60
|
+
v as getStringFromSearch,
|
|
61
|
+
y as orderBy
|
|
45
62
|
};
|