@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/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 p } from "./drag/DragClue.mjs";
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 { filterBy as E, orderBy as A } from "./utils/data-operations.mjs";
14
- import { getGroupIds as d, setExpandedState as g, setGroupIds as s } from "./utils/group-operations.mjs";
15
- import { IsUnaryFilter as u, booleanFilterValues as D, cellBoolDropdownChange as B, cellInputChange as N, cellOperatorChange as O, defaultBooleanOperator as C, defaultHideSecondFilter as F, filterLogicList as R, getDefaultOperator as S, getFilterType as I, operatorMap as L, operators as b } from "./filterCommon.mjs";
16
- import { Pager as K } from "./pager/Pager.mjs";
17
- import { PagerInfo as P } from "./pager/PagerInfo.mjs";
18
- import { PagerInput as H } from "./pager/PagerInput.mjs";
19
- import { PagerNavigationButton as Y } from "./pager/PagerNavigationButton.mjs";
20
- import { PagerNumericButtons as U } from "./pager/PagerNumericButtons.mjs";
21
- import { PagerPageSizes as z } from "./pager/PagerPageSizes.mjs";
22
- import { HeaderThElement as G } from "./header/HeaderThElement.mjs";
23
- import { normalize as W } from "./pager/GridPagerSettings.mjs";
24
- import { FOCUSABLE_ELEMENTS as j, KEYBOARD_NAV_DATA_BODY as k, KEYBOARD_NAV_DATA_HEADER as q, KEYBOARD_NAV_DATA_ID as J, KEYBOARD_NAV_DATA_LEVEL as Q, KEYBOARD_NAV_DATA_SCOPE as $, KEYBOARD_NAV_DATA_ZONE as ee, KEYBOARD_NAV_FILTER_COL_SUFFIX as re, TABBABLE_ELEMENTS as oe, tableKeyboardNavigationBodyAttributes as te, tableKeyboardNavigationHeaderAttributes as ae, tableKeyboardNavigationScopeAttributes as le } from "./navigation/constants.mjs";
25
- import { TableKeyboardNavigationProvider as me } from "./navigation/TableKeyboardNavigation.mjs";
26
- import { tableKeyboardNavigationTools as fe } from "./navigation/utils.mjs";
27
- import { TABLE_COL_INDEX_ATTRIBUTE as ne, TABLE_PREVENT_SELECTION_ELEMENT as Ee, TABLE_ROW_INDEX_ATTRIBUTE as Ae } from "./selection/constants.mjs";
28
- import { closestTagName as de, getColumnIndex as ge, getOffset as se, getRowIndex as Te, getSelectedState as ue, getSelectedStateFromKeyDown as De, getSelectionOptions as Be, relativeContextElement as Ne, setSelectedState as Oe } from "./selection/utils.mjs";
29
- import { TextFilter as Fe } from "./filter/filters/TextFilter.mjs";
30
- import { NumericFilter as Se } from "./filter/filters/NumericFilter.mjs";
31
- import { DateFilter as Le } from "./filter/filters/DateFilter.mjs";
32
- import { BooleanFilter as ce } from "./filter/filters/BooleanFilter.mjs";
33
- import { EnumFilter as ye } from "./filter/filters/EnumFilter.mjs";
34
- import { Expression as Ve } from "./filter/Expression.mjs";
35
- import { Filter as ve } from "./filter/Filter.mjs";
36
- import { GroupFilter as we } from "./filter/GroupFilters.mjs";
37
- import { Operators as he, stringOperator as ze, unaryOperator as Me } from "./filter/operators.mjs";
38
- import { ColumnDefaultProps as Xe } from "./interfaces/ColumnProps.mjs";
39
- import { FilterRow as Ze } from "./header/FilterRow.mjs";
40
- import { Header as ke } from "./header/Header.mjs";
41
- import { HeaderCell as Je } from "./header/HeaderCell.mjs";
42
- import { HeaderRow as $e } from "./header/HeaderRow.mjs";
43
- import { HeaderSelectionCell as rr } from "./header/HeaderSelectionCell.mjs";
44
- import { getIndex as tr, isRtl as ar, mapColumns as lr, readColumns as pr } from "./header/utils/main.mjs";
45
- import { HeaderTdElement as ir } from "./header/HeaderTdElement.mjs";
46
- import { tableColumnsVirtualization as xr } from "./virtualization/columns.mjs";
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
- ce as BooleanFilter,
49
- Xe as ColumnDefaultProps,
53
+ Je as BooleanFilter,
54
+ fr as ColumnDefaultProps,
50
55
  o as ColumnResize,
51
56
  a as CommonDragLogic,
52
- Le as DateFilter,
53
- p as DragClue,
57
+ Ve as DETAIL_EXPAND_ACTION,
58
+ ke as DateFilter,
59
+ l as DragClue,
54
60
  i as DropClue,
55
- ye as EnumFilter,
56
- Ve as Expression,
57
- j as FOCUSABLE_ELEMENTS,
58
- ve as Filter,
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
- Ze as FilterRow,
61
- we as GroupFilter,
62
- ke as Header,
63
- Je as HeaderCell,
64
- $e as HeaderRow,
65
- rr as HeaderSelectionCell,
66
- ir as HeaderTdElement,
67
- G as HeaderThElement,
68
- u as IsUnaryFilter,
69
- k as KEYBOARD_NAV_DATA_BODY,
70
- q as KEYBOARD_NAV_DATA_HEADER,
71
- J as KEYBOARD_NAV_DATA_ID,
72
- Q as KEYBOARD_NAV_DATA_LEVEL,
73
- $ as KEYBOARD_NAV_DATA_SCOPE,
74
- ee as KEYBOARD_NAV_DATA_ZONE,
75
- re as KEYBOARD_NAV_FILTER_COL_SUFFIX,
76
- Se as NumericFilter,
77
- he as Operators,
78
- K as Pager,
79
- P as PagerInfo,
80
- H as PagerInput,
81
- Y as PagerNavigationButton,
82
- U as PagerNumericButtons,
83
- z as PagerPageSizes,
84
- oe as TABBABLE_ELEMENTS,
85
- ne as TABLE_COL_INDEX_ATTRIBUTE,
86
- Ee as TABLE_PREVENT_SELECTION_ELEMENT,
87
- Ae as TABLE_ROW_INDEX_ATTRIBUTE,
88
- me as TableKeyboardNavigationProvider,
89
- Fe as TextFilter,
90
- D as booleanFilterValues,
91
- B as cellBoolDropdownChange,
92
- N as cellInputChange,
93
- O as cellOperatorChange,
94
- de as closestTagName,
95
- C as defaultBooleanOperator,
96
- F as defaultHideSecondFilter,
97
- E as filterBy,
98
- R as filterLogicList,
99
- ge as getColumnIndex,
100
- S as getDefaultOperator,
101
- I as getFilterType,
102
- d as getGroupIds,
103
- tr as getIndex,
104
- se as getOffset,
105
- Te as getRowIndex,
106
- ue as getSelectedState,
107
- De as getSelectedStateFromKeyDown,
108
- Be as getSelectionOptions,
109
- ar as isRtl,
110
- lr as mapColumns,
111
- W as normalize,
112
- L as operatorMap,
113
- b as operators,
114
- A as orderBy,
115
- pr as readColumns,
116
- Ne as relativeContextElement,
117
- g as setExpandedState,
118
- s as setGroupIds,
119
- Oe as setSelectedState,
120
- ze as stringOperator,
121
- xr as tableColumnsVirtualization,
122
- te as tableKeyboardNavigationBodyAttributes,
123
- ae as tableKeyboardNavigationHeaderAttributes,
124
- le as tableKeyboardNavigationScopeAttributes,
125
- fe as tableKeyboardNavigationTools,
126
- Me as unaryOperator
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
  };
@@ -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: 1764664532,version:"7.0.3-develop.1",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;
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;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "Kendo UI for Vue",
11
11
  productCode: "KENDOUIVUE",
12
12
  productCodes: ["KENDOUIVUE"],
13
- publishDate: 1764664532,
14
- version: "7.0.3-develop.1",
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-develop.1",
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.3-develop.1",
24
- "@progress/kendo-vue-buttons": "7.0.3-develop.1",
25
- "@progress/kendo-vue-common": "7.0.3-develop.1",
26
- "@progress/kendo-vue-dateinputs": "7.0.3-develop.1",
27
- "@progress/kendo-vue-dropdowns": "7.0.3-develop.1",
28
- "@progress/kendo-vue-inputs": "7.0.3-develop.1",
29
- "@progress/kendo-vue-intl": "7.0.3-develop.1",
30
- "@progress/kendo-vue-popup": "7.0.3-develop.1",
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": 1764664532,
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
  },
@@ -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 c=require("@progress/kendo-data-query");function t(n,e,r){return r?{...n,[e]:r.length?[...r]:void 0}:n&&n[e]?[...n[e]]:[]}function h(n,e,r){if(n[r]){let o=t(n,r,c.orderBy(t(n,r),e)),l=t(o,r).map(f=>h(f,e,r));return{...o,[r]:l}}return n}function g(n,e,r){let o=c.orderBy(n,e);return o=o.map(l=>h(l,e,r)),o}function y(n,e,r){let o=t(n,r);if(o&&o.length){o=o.map(i=>y(i,e,r));const f={filters:[{filters:e,logic:"and"},{operator:i=>!!(i[r]||[]).length}],logic:"or"},B=c.filterBy(o,f);return t(n,r,B)}return n}function u(n,e,r){let o={[r]:[...n]};return o=y(o,e,r),o[r]||[]}exports.filterBy=u;exports.orderBy=g;
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 e, filterBy as g } from "@progress/kendo-data-query";
9
- function l(n, f, r) {
10
- return r ? { ...n, [f]: r.length ? [...r] : void 0 } : n && n[f] ? [...n[f]] : [];
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 h(n, f, r) {
13
- if (n[r]) {
14
- let o = l(n, r, e(l(n, r), f)), t = l(o, r).map((c) => h(c, f, r));
15
- return { ...o, [r]: t };
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 n;
17
+ return r;
18
18
  }
19
- function C(n, f, r) {
20
- let o = e(n, f);
21
- return o = o.map((t) => h(t, f, r)), o;
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 B(n, f, r) {
24
- let o = l(n, r);
23
+ function c(r, t, n) {
24
+ let o = l(r, n);
25
25
  if (o && o.length) {
26
- o = o.map((i) => B(i, f, r));
27
- const y = g(o, {
26
+ o = o.map((f) => c(f, t, n));
27
+ const h = B(o, {
28
28
  filters: [
29
- { filters: f, logic: "and" },
30
- { operator: (i) => !!(i[r] || []).length }
29
+ { filters: t, logic: "and" },
30
+ { operator: (f) => !!(f[n] || []).length }
31
31
  ],
32
32
  logic: "or"
33
33
  });
34
- return l(n, r, y);
34
+ return l(r, n, h);
35
35
  }
36
- return n;
36
+ return r;
37
37
  }
38
- function $(n, f, r) {
39
- let o = { [r]: [...n] };
40
- return o = B(o, f, r), o[r] || [];
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 filterBy,
44
- C as orderBy
57
+ $ as combineFilters,
58
+ C as filterBy,
59
+ S as getSearchFromString,
60
+ v as getStringFromSearch,
61
+ y as orderBy
45
62
  };