@servicetitan/table 16.1.0 → 17.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/demo/master-detail/detail-table.js +7 -7
- package/dist/demo/master-detail/detail-table.js.map +1 -1
- package/dist/demo/master-detail/detail-table.store.js +4 -4
- package/dist/demo/master-detail/detail-table.store.js.map +1 -1
- package/dist/demo/master-detail/master-table.store.js +3 -3
- package/dist/demo/master-detail/master-table.store.js.map +1 -1
- package/dist/demo/master-detail/table-master-detail.js +5 -5
- package/dist/demo/master-detail/table-master-detail.js.map +1 -1
- package/dist/demo/overview/actions-cell.js +5 -5
- package/dist/demo/overview/actions-cell.js.map +1 -1
- package/dist/demo/overview/table.js +12 -12
- package/dist/demo/overview/table.js.map +1 -1
- package/dist/demo/overview/table.store.js +3 -3
- package/dist/demo/overview/table.store.js.map +1 -1
- package/dist/demo/state-caching/state-caching-table.js +4 -4
- package/dist/demo/state-caching/state-caching-table.js.map +1 -1
- package/dist/demo/state-caching/state-caching-table.store.js +1 -1
- package/dist/demo/state-caching/state-caching-table.store.js.map +1 -1
- package/dist/editable-cell/boolean-editable-cell.js +3 -3
- package/dist/editable-cell/boolean-editable-cell.js.map +1 -1
- package/dist/editable-cell/date-editable-cell.js +3 -3
- package/dist/editable-cell/date-editable-cell.js.map +1 -1
- package/dist/editable-cell/get-action-cell.js +3 -3
- package/dist/editable-cell/get-action-cell.js.map +1 -1
- package/dist/editable-cell/get-editable-cell.js +3 -3
- package/dist/editable-cell/get-editable-cell.js.map +1 -1
- package/dist/editable-cell/get-select-editable-cell.js +3 -3
- package/dist/editable-cell/get-select-editable-cell.js.map +1 -1
- package/dist/editable-cell/numeric-editable-cell.js +3 -3
- package/dist/editable-cell/numeric-editable-cell.js.map +1 -1
- package/dist/editable-cell/text-editable-cell.js +3 -3
- package/dist/editable-cell/text-editable-cell.js.map +1 -1
- package/dist/export/export.js +1 -1
- package/dist/export/export.js.map +1 -1
- package/dist/filters/column-menu-filters.js +3 -3
- package/dist/filters/column-menu-filters.js.map +1 -1
- package/dist/filters/datetime-filter/datetime-filter.js +4 -4
- package/dist/filters/datetime-filter/datetime-filter.js.map +1 -1
- package/dist/filters/datetime-filter/datetime-filter.module.css +1 -1
- package/dist/filters/field-values-filter.js +4 -4
- package/dist/filters/field-values-filter.js.map +1 -1
- package/dist/filters/multiselect-filter.js +7 -7
- package/dist/filters/multiselect-filter.js.map +1 -1
- package/dist/filters/numeric-filter-extended/numeric-filter-extended.js +5 -5
- package/dist/filters/numeric-filter-extended/numeric-filter-extended.js.map +1 -1
- package/dist/filters/range-filter/range-filter.js +8 -8
- package/dist/filters/range-filter/range-filter.js.map +1 -1
- package/dist/filters/range-filter/range-filter.module.css +1 -1
- package/dist/filters/standard-filter-with-multiselect/filter-cell-ext.js +7 -7
- package/dist/filters/standard-filter-with-multiselect/filter-cell-ext.js.map +1 -1
- package/dist/filters/standard-filter-with-multiselect/standard-filter-with-multiselect.js +5 -5
- package/dist/filters/standard-filter-with-multiselect/standard-filter-with-multiselect.js.map +1 -1
- package/dist/filters/standard-filter-with-multiselect/table-column-menu-filter-ext.js +1 -1
- package/dist/filters/standard-filter-with-multiselect/table-column-menu-filter-ext.js.map +1 -1
- package/dist/filters/time-filter/time-filter.js +4 -4
- package/dist/filters/time-filter/time-filter.js.map +1 -1
- package/dist/filters/time-filter/time-filter.module.css +1 -1
- package/dist/select-cell/select-cell.js +4 -4
- package/dist/select-cell/select-cell.js.map +1 -1
- package/dist/select-cell/select-cell.module.css +1 -1
- package/dist/table-state.js +14 -14
- package/dist/table-state.js.map +1 -1
- package/dist/table.js +16 -16
- package/dist/table.js.map +1 -1
- package/package.json +9 -9
- package/src/filters/datetime-filter/datetime-filter.module.css +1 -1
- package/src/filters/range-filter/range-filter.module.css +1 -1
- package/src/filters/time-filter/time-filter.module.css +1 -1
- package/src/select-cell/select-cell.module.css +1 -1
@@ -4,11 +4,11 @@ exports.renderCustomColumnMenuFilter = exports.StandardColumnMenuFilter = void 0
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
5
5
|
const design_system_1 = require("@servicetitan/design-system");
|
6
6
|
const kendo_react_dropdowns_1 = require("@progress/kendo-react-dropdowns");
|
7
|
-
const StandardColumnMenuFilter = (props) => (jsx_runtime_1.jsx(design_system_1.TableColumnMenuFilter, Object.assign({}, props, { expanded: true }), void 0));
|
7
|
+
const StandardColumnMenuFilter = (props) => ((0, jsx_runtime_1.jsx)(design_system_1.TableColumnMenuFilter, Object.assign({}, props, { expanded: true }), void 0));
|
8
8
|
exports.StandardColumnMenuFilter = StandardColumnMenuFilter;
|
9
9
|
function renderCustomColumnMenuFilter(FilterCell, double) {
|
10
|
-
const filterUI = ({ firstFilterProps, secondFilterProps, logicData, logicValue, onLogicChange, }) => (jsx_runtime_1.jsxs("div", { children: [jsx_runtime_1.jsx(FilterCell, Object.assign({}, firstFilterProps), void 0), double && (jsx_runtime_1.jsxs("div", { children: [jsx_runtime_1.jsx(kendo_react_dropdowns_1.DropDownList, { data: logicData, value: logicValue, onChange: onLogicChange, className: "k-filter-and", textField: "text" }, void 0), jsx_runtime_1.jsx(FilterCell, Object.assign({}, secondFilterProps), void 0)] }, void 0))] }, void 0));
|
11
|
-
return (props) => (jsx_runtime_1.jsx(design_system_1.TableColumnMenuFilter, Object.assign({}, props, { filterUI: filterUI, expanded: true }), void 0));
|
10
|
+
const filterUI = ({ firstFilterProps, secondFilterProps, logicData, logicValue, onLogicChange, }) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(FilterCell, Object.assign({}, firstFilterProps), void 0), double && ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(kendo_react_dropdowns_1.DropDownList, { data: logicData, value: logicValue, onChange: onLogicChange, className: "k-filter-and", textField: "text" }, void 0), (0, jsx_runtime_1.jsx)(FilterCell, Object.assign({}, secondFilterProps), void 0)] }, void 0))] }, void 0));
|
11
|
+
return (props) => ((0, jsx_runtime_1.jsx)(design_system_1.TableColumnMenuFilter, Object.assign({}, props, { filterUI: filterUI, expanded: true }), void 0));
|
12
12
|
}
|
13
13
|
exports.renderCustomColumnMenuFilter = renderCustomColumnMenuFilter;
|
14
14
|
//# sourceMappingURL=column-menu-filters.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"column-menu-filters.js","sourceRoot":"","sources":["../../src/filters/column-menu-filters.tsx"],"names":[],"mappings":";;;;AACA,+DAIqC;AAErC,2EAA+D;AAExD,MAAM,wBAAwB,GAAG,CAAC,KAA2B,EAAE,EAAE,CAAC,CACrE,
|
1
|
+
{"version":3,"file":"column-menu-filters.js","sourceRoot":"","sources":["../../src/filters/column-menu-filters.tsx"],"names":[],"mappings":";;;;AACA,+DAIqC;AAErC,2EAA+D;AAExD,MAAM,wBAAwB,GAAG,CAAC,KAA2B,EAAE,EAAE,CAAC,CACrE,uBAAC,qCAAqB,oBAAK,KAAK,IAAE,QAAQ,kBAAG,CAChD,CAAC;AAFW,QAAA,wBAAwB,4BAEnC;AAEF,SAAgB,4BAA4B,CACxC,UAA+C,EAC/C,MAAgB;IAEhB,MAAM,QAAQ,GAAqC,CAAC,EAChD,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,aAAa,GAChB,EAAE,EAAE,CAAC,CACF,4CACI,uBAAC,UAAU,oBAAK,gBAAgB,UAAI,EACnC,MAAM,IAAI,CACP,4CACI,uBAAC,oCAAY,IACT,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,aAAa,EACvB,SAAS,EAAC,cAAc,EACxB,SAAS,EAAC,MAAM,WAClB,EACF,uBAAC,UAAU,oBAAK,iBAAiB,UAAI,YACnC,CACT,YACC,CACT,CAAC;IAEF,OAAO,CAAC,KAA2B,EAAE,EAAE,CAAC,CACpC,uBAAC,qCAAqB,oBAAK,KAAK,IAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,kBAAG,CACpE,CAAC;AACN,CAAC;AA/BD,oEA+BC"}
|
@@ -54,7 +54,7 @@ let DateTimeFilterCell = class DateTimeFilterCell extends react_1.Component {
|
|
54
54
|
writable: true,
|
55
55
|
value: (event) => {
|
56
56
|
this.operator = event.target.value;
|
57
|
-
filterCommon_1.cellOperatorChange(event, this.props.value, this.props.onChange);
|
57
|
+
(0, filterCommon_1.cellOperatorChange)(event, this.props.value, this.props.onChange);
|
58
58
|
}
|
59
59
|
});
|
60
60
|
Object.defineProperty(this, "handleChange", {
|
@@ -70,10 +70,10 @@ let DateTimeFilterCell = class DateTimeFilterCell extends react_1.Component {
|
|
70
70
|
});
|
71
71
|
}
|
72
72
|
});
|
73
|
-
mobx_1.makeObservable(this);
|
73
|
+
(0, mobx_1.makeObservable)(this);
|
74
74
|
}
|
75
75
|
render() {
|
76
|
-
return (jsx_runtime_1.jsxs(react_1.Fragment, { children: [jsx_runtime_1.jsx(kendo_react_dropdowns_1.DropDownList, { value: this.operator, onChange: this.handleOperatorChange, data: this.props.operators, dataItemKey: "operator", textField: "text" }, void 0), !filterCommon_1.IsUnaryFilter(this.operator.operator) && (jsx_runtime_1.jsxs(react_1.Fragment, { children: [jsx_runtime_1.jsx(kendo_react_dateinputs_1.DatePicker, { value: this.props.value, onChange: this.handleChange, className: Styles.datePicker }, void 0), jsx_runtime_1.jsx(kendo_react_dateinputs_1.TimePicker, { value: this.props.value, onChange: this.handleChange, className: Styles.timePicker }, void 0)] }, void 0))] }, void 0));
|
76
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(kendo_react_dropdowns_1.DropDownList, { value: this.operator, onChange: this.handleOperatorChange, data: this.props.operators, dataItemKey: "operator", textField: "text" }, void 0), !(0, filterCommon_1.IsUnaryFilter)(this.operator.operator) && ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(kendo_react_dateinputs_1.DatePicker, { value: this.props.value, onChange: this.handleChange, className: Styles.datePicker }, void 0), (0, jsx_runtime_1.jsx)(kendo_react_dateinputs_1.TimePicker, { value: this.props.value, onChange: this.handleChange, className: Styles.timePicker }, void 0)] }, void 0))] }, void 0));
|
77
77
|
}
|
78
78
|
};
|
79
79
|
__decorate([
|
@@ -88,5 +88,5 @@ DateTimeFilterCell = __decorate([
|
|
88
88
|
mobx_react_1.observer,
|
89
89
|
__metadata("design:paramtypes", [Object])
|
90
90
|
], DateTimeFilterCell);
|
91
|
-
exports.DateTimeColumnMenuFilter = column_menu_filters_1.renderCustomColumnMenuFilter(DateTimeFilterCell, true);
|
91
|
+
exports.DateTimeColumnMenuFilter = (0, column_menu_filters_1.renderCustomColumnMenuFilter)(DateTimeFilterCell, true);
|
92
92
|
//# sourceMappingURL=datetime-filter.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"datetime-filter.js","sourceRoot":"","sources":["../../../src/filters/datetime-filter/datetime-filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA4C;AAE5C,2CAAsC;AACtC,+BAA0D;AAE1D,2EAAwF;AACxF,6EAK0C;AAE1C,mFAG0D;AAI1D,gEAAsE;AAEtE,qEAAuD;AAGvD,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,iBAA+B;IAK5D,YAAY,KAA2B;;QACnC,KAAK,CAAC,KAAK,CAAC,CAAC;QALL;;;;mBACR,MAAA,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,mCAClE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;WAAC;QAQ5B;;;;mBAAuB,CAAC,KAA8B,EAAE,EAAE;gBACtD,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;gBACnC,iCAAkB,
|
1
|
+
{"version":3,"file":"datetime-filter.js","sourceRoot":"","sources":["../../../src/filters/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AAI,CAAC,oBAAoB,EACnC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAC1B,WAAW,EAAC,UAAU,EACtB,SAAS,EAAC,MAAM,WAClB,EACD,CAAC,IAAA,4BAAa,EAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CACvC,wBAAC,gBAAQ,eACL,uBAAC,mCAAU,IACP,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,SAAS,EAAE,MAAM,CAAC,UAAU,WAC9B,EACF,uBAAC,mCAAU,IACP,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,SAAS,EAAE,MAAM,CAAC,UAAU,WAC9B,YACK,CACd,YACM,CACd,CAAC;IACN,CAAC;CACJ,CAAA;AApDe;IAAX,iBAAU;;oDAEiB;AAQ5B;IADC,aAAM;;gEAIL;AAdA,kBAAkB;IADvB,qBAAQ;;GACH,kBAAkB,CAqDvB;AAEY,QAAA,wBAAwB,GAAG,IAAA,kDAA4B,EAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC"}
|
@@ -72,7 +72,7 @@ function fieldValuesColumnMenuFilter(tableState, renderItem = defaultRenderItem)
|
|
72
72
|
});
|
73
73
|
}
|
74
74
|
});
|
75
|
-
mobx_1.makeObservable(this);
|
75
|
+
(0, mobx_1.makeObservable)(this);
|
76
76
|
}
|
77
77
|
get processedData() {
|
78
78
|
const searchQuery = this.searchQuery.toLowerCase();
|
@@ -100,7 +100,7 @@ function fieldValuesColumnMenuFilter(tableState, renderItem = defaultRenderItem)
|
|
100
100
|
this.fetchData(tableState.dataSource);
|
101
101
|
}
|
102
102
|
render() {
|
103
|
-
return (jsx_runtime_1.jsxs(react_1.Fragment, { children: [jsx_runtime_1.jsx(kendo_react_inputs_1.Input, { value: this.searchQuery, onChange: this.handleSearchQueryChange, placeholder: "Search" }, void 0), this.processedData.map(item => (jsx_runtime_1.jsx("div", { children: jsx_runtime_1.jsx(design_system_1.Checkbox, { label: item.text, checked: this.value.includes(item.value), onChange: this.handleChange, value: item }, void 0) }, JSON.stringify(item))))] }, void 0));
|
103
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(kendo_react_inputs_1.Input, { value: this.searchQuery, onChange: this.handleSearchQueryChange, placeholder: "Search" }, void 0), this.processedData.map(item => ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(design_system_1.Checkbox, { label: item.text, checked: this.value.includes(item.value), onChange: this.handleChange, value: item }, void 0) }, JSON.stringify(item))))] }, void 0));
|
104
104
|
}
|
105
105
|
fetchData(dataSource) {
|
106
106
|
return __awaiter(this, void 0, void 0, function* () {
|
@@ -110,7 +110,7 @@ function fieldValuesColumnMenuFilter(tableState, renderItem = defaultRenderItem)
|
|
110
110
|
const items = (yield dataSource.getData({})).data;
|
111
111
|
const values = items.map(i => i[this.field]);
|
112
112
|
const distinctValues = values.filter((v, idx) => values.indexOf(v) === idx);
|
113
|
-
mobx_1.runInAction(() => {
|
113
|
+
(0, mobx_1.runInAction)(() => {
|
114
114
|
this.data = distinctValues.map(value => ({ value, text: renderItem(value) }));
|
115
115
|
});
|
116
116
|
});
|
@@ -147,7 +147,7 @@ function fieldValuesColumnMenuFilter(tableState, renderItem = defaultRenderItem)
|
|
147
147
|
mobx_react_1.observer,
|
148
148
|
__metadata("design:paramtypes", [Object])
|
149
149
|
], FieldValuesFilterCell);
|
150
|
-
return column_menu_filters_1.renderCustomColumnMenuFilter(FieldValuesFilterCell);
|
150
|
+
return (0, column_menu_filters_1.renderCustomColumnMenuFilter)(FieldValuesFilterCell);
|
151
151
|
}
|
152
152
|
exports.fieldValuesColumnMenuFilter = fieldValuesColumnMenuFilter;
|
153
153
|
function defaultRenderItem(v) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"field-values-filter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CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;gBAClF,CAAC,CAAC,CAAC;YACP,CAAC;SAAA;KACJ,CAAA;IAtGe;QAAX,iBAAU;;uDAAmB;IAElB;QAAX,iBAAU;;8DAAkB;IAEnB;QAAT,eAAQ;;;8DAcR;IAES;QAAT,eAAQ;;;sDAQR;IAES;QAAT,eAAQ;;;sDAER;IAQD;QADC,aAAM;;0EAKL;IA7CA,qBAAqB;QAD1B,qBAAQ;;OACH,qBAAqB,CAuG1B;IAED,OAAO,IAAA,kDAA4B,EAAC,qBAAqB,CAAC,CAAC;AAC/D,CAAC;AAnHD,kEAmHC;AAED,SAAS,iBAAiB,CAAC,CAAM;IAC7B,IAAI,CAAC,IAAI,IAAI,EAAE;QACX,OAAO,EAAE,CAAC;KACb;IAED,4BAA4B;IAC5B,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC"}
|
@@ -23,7 +23,7 @@ class Selector extends react_1.Component {
|
|
23
23
|
}
|
24
24
|
render() {
|
25
25
|
const { options, value, renderer } = this.props;
|
26
|
-
return options.map((option, index) => (jsx_runtime_1.jsx(design_system_1.Checkbox
|
26
|
+
return options.map((option, index) => ((0, jsx_runtime_1.jsx)(design_system_1.Checkbox
|
27
27
|
// eslint-disable-next-line react/no-array-index-key
|
28
28
|
, { value: option, label: renderer ? renderer(option) : option, checked: (value !== null && value !== void 0 ? value : []).includes(option), onChange: this.handleChange, className: "m-b-1" }, index)));
|
29
29
|
}
|
@@ -37,9 +37,9 @@ function multiSelectColumnMenuFilter(data, renderItem) {
|
|
37
37
|
syntheticEvent: event,
|
38
38
|
});
|
39
39
|
};
|
40
|
-
return (jsx_runtime_1.jsx(Selector, { options: data, value: value === '' ? undefined : value, onChange: handleChange, renderer: renderItem }, void 0));
|
40
|
+
return ((0, jsx_runtime_1.jsx)(Selector, { options: data, value: value === '' ? undefined : value, onChange: handleChange, renderer: renderItem }, void 0));
|
41
41
|
};
|
42
|
-
return column_menu_filters_1.renderCustomColumnMenuFilter(FilterCell);
|
42
|
+
return (0, column_menu_filters_1.renderCustomColumnMenuFilter)(FilterCell);
|
43
43
|
}
|
44
44
|
exports.multiSelectColumnMenuFilter = multiSelectColumnMenuFilter;
|
45
45
|
function complexItemMultiSelectColumnMenuFilter(data, renderItem) {
|
@@ -70,10 +70,10 @@ function complexItemMultiSelectColumnMenuFilter(data, renderItem) {
|
|
70
70
|
}
|
71
71
|
render() {
|
72
72
|
const { value } = this.props;
|
73
|
-
return (jsx_runtime_1.jsx(Selector, { options: data, value: value === '' ? undefined : value, onChange: this.handleChange, renderer: renderItem }, void 0));
|
73
|
+
return ((0, jsx_runtime_1.jsx)(Selector, { options: data, value: value === '' ? undefined : value, onChange: this.handleChange, renderer: renderItem }, void 0));
|
74
74
|
}
|
75
75
|
}
|
76
|
-
return column_menu_filters_1.renderCustomColumnMenuFilter(FilterCell);
|
76
|
+
return (0, column_menu_filters_1.renderCustomColumnMenuFilter)(FilterCell);
|
77
77
|
}
|
78
78
|
exports.complexItemMultiSelectColumnMenuFilter = complexItemMultiSelectColumnMenuFilter;
|
79
79
|
function multiItemMultiSelectColumnMenuFilter(data, renderItem) {
|
@@ -104,10 +104,10 @@ function multiItemMultiSelectColumnMenuFilter(data, renderItem) {
|
|
104
104
|
}
|
105
105
|
render() {
|
106
106
|
const { value } = this.props;
|
107
|
-
return (jsx_runtime_1.jsx(Selector, { options: data, value: value === '' ? undefined : value, onChange: this.handleChange, renderer: renderItem }, void 0));
|
107
|
+
return ((0, jsx_runtime_1.jsx)(Selector, { options: data, value: value === '' ? undefined : value, onChange: this.handleChange, renderer: renderItem }, void 0));
|
108
108
|
}
|
109
109
|
}
|
110
|
-
return column_menu_filters_1.renderCustomColumnMenuFilter(FilterCell);
|
110
|
+
return (0, column_menu_filters_1.renderCustomColumnMenuFilter)(FilterCell);
|
111
111
|
}
|
112
112
|
exports.multiItemMultiSelectColumnMenuFilter = multiItemMultiSelectColumnMenuFilter;
|
113
113
|
//# sourceMappingURL=multiselect-filter.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"multiselect-filter.js","sourceRoot":"","sources":["../../src/filters/multiselect-filter.tsx"],"names":[],"mappings":";;;;AAAA,iCAAiE;AAEjE,+DAA6E;AAE7E,+DAAqE;AASrE,MAAM,QAAY,SAAQ,iBAA2B;IAArD;;QACI;;;;mBAAe,CAAC,MAAS,EAAE,OAAgB,EAAE,KAAuC,EAAE,EAAE;;gBACpF,MAAM,QAAQ,GAAG,OAAO;oBACpB,CAAC,CAAC,CAAC,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,mCAAI,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;oBACzC,CAAC,CAAC,CAAC,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,mCAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC;gBAEzD,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;YACvE,CAAC;WAAC;IAiBN,CAAC;IAfG,MAAM;QACF,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEhD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAClC,
|
1
|
+
{"version":3,"file":"multiselect-filter.js","sourceRoot":"","sources":["../../src/filters/multiselect-filter.tsx"],"names":[],"mappings":";;;;AAAA,iCAAiE;AAEjE,+DAA6E;AAE7E,+DAAqE;AASrE,MAAM,QAAY,SAAQ,iBAA2B;IAArD;;QACI;;;;mBAAe,CAAC,MAAS,EAAE,OAAgB,EAAE,KAAuC,EAA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AAE,IAAI,CAAC,YAAY,EAC3B,QAAQ,EAAE,UAAU,WACtB,CACL,CAAC;QACN,CAAC;KACJ;IAED,OAAO,IAAA,kDAA4B,EAAC,UAAU,CAAC,CAAC;AACpD,CAAC;AAlCD,oFAkCC"}
|
@@ -19,11 +19,11 @@ const NumericExtFilterCell = ({ operators, operator, value, onChange, }) => {
|
|
19
19
|
});
|
20
20
|
const handleOperatorChange = (event) => {
|
21
21
|
// set value to null when switching to unary operator
|
22
|
-
const newValue = numeric_extended_operators_1.isNumericExtendedOperator(event.target.value.operator) ? null : value;
|
23
|
-
filterCommon_1.cellOperatorChange(event, newValue, onChange);
|
22
|
+
const newValue = (0, numeric_extended_operators_1.isNumericExtendedOperator)(event.target.value.operator) ? null : value;
|
23
|
+
(0, filterCommon_1.cellOperatorChange)(event, newValue, onChange);
|
24
24
|
};
|
25
|
-
const isUnary = filterCommon_1.IsUnaryFilter(operator) || numeric_extended_operators_1.isNumericExtendedOperator(operator);
|
26
|
-
return (jsx_runtime_1.jsxs("div", { children: [jsx_runtime_1.jsx(kendo_react_dropdowns_1.DropDownList, { value: operatorValue, onChange: handleOperatorChange, data: operatorsExt, textField: "text" }, void 0), jsx_runtime_1.jsx(kendo_react_inputs_1.NumericTextBox, { value: value, onChange: handleInputChange, disabled: isUnary }, void 0)] }, void 0));
|
25
|
+
const isUnary = (0, filterCommon_1.IsUnaryFilter)(operator) || (0, numeric_extended_operators_1.isNumericExtendedOperator)(operator);
|
26
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(kendo_react_dropdowns_1.DropDownList, { value: operatorValue, onChange: handleOperatorChange, data: operatorsExt, textField: "text" }, void 0), (0, jsx_runtime_1.jsx)(kendo_react_inputs_1.NumericTextBox, { value: value, onChange: handleInputChange, disabled: isUnary }, void 0)] }, void 0));
|
27
27
|
};
|
28
|
-
exports.NumericFilterExtended = column_menu_filters_1.renderCustomColumnMenuFilter(NumericExtFilterCell, true);
|
28
|
+
exports.NumericFilterExtended = (0, column_menu_filters_1.renderCustomColumnMenuFilter)(NumericExtFilterCell, true);
|
29
29
|
//# sourceMappingURL=numeric-filter-extended.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"numeric-filter-extended.js","sourceRoot":"","sources":["../../../src/filters/numeric-filter-extended/numeric-filter-extended.tsx"],"names":[],"mappings":";;;;AAEA,qEAAyF;AACzF,2EAAwF;AAGxF,mFAG0D;AAE1D,6EAAmG;AAEnG,gEAAsE;AACtE,EAAE;AAEF,4GAA4G;AAC5G,MAAM,oBAAoB,GAAuC,CAAC,EAC9D,SAAS,EACT,QAAQ,EACR,KAAK,EACL,QAAQ,GACX,EAAE,EAAE;IACD,MAAM,YAAY,GAAG,SAAS,CAAC,MAAM,CAAC,qDAAwB,CAAC,CAAC;IAChE,MAAM,aAAa,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;IAE5E,MAAM,iBAAiB,GAAG,CAAC,CAA4B,EAAE,EAAE,CACvD,QAAQ,CAAC;QACL,QAAQ;QACR,KAAK,EAAE,CAAC,CAAC,KAAK;QACd,cAAc,EAAE,CAAC,CAAC,cAAc;KACnC,CAAC,CAAC;IAEP,MAAM,oBAAoB,GAAG,CAAC,KAA8B,EAAE,EAAE;QAC5D,qDAAqD;QACrD,MAAM,QAAQ,GAAG,sDAAyB,
|
1
|
+
{"version":3,"file":"numeric-filter-extended.js","sourceRoot":"","sources":["../../../src/filters/numeric-filter-extended/numeric-filter-extended.tsx"],"names":[],"mappings":";;;;AAEA,qEAAyF;AACzF,2EAAwF;AAGxF,mFAG0D;AAE1D,6EAAmG;AAEnG,gEAAsE;AACtE,EAAE;AAEF,4GAA4G;AAC5G,MAAM,oBAAoB,GAAuC,CAAC,EAC9D,SAAS,EACT,QAAQ,EACR,KAAK,EACL,QAAQ,GACX,EAAE,EAAE;IACD,MAAM,YAAY,GAAG,SAAS,CAAC,MAAM,CAAC,qDAAwB,CAAC,CAAC;IAChE,MAAM,aAAa,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;IAE5E,MAAM,iBAAiB,GAAG,CAAC,CAA4B,EAAE,EAAE,CACvD,QAAQ,CAAC;QACL,QAAQ;QACR,KAAK,EAAE,CAAC,CAAC,KAAK;QACd,cAAc,EAAE,CAAC,CAAC,cAAc;KACnC,CAAC,CAAC;IAEP,MAAM,oBAAoB,GAAG,CAAC,KAA8B,EAAE,EAAE;QAC5D,qDAAqD;QACrD,MAAM,QAAQ,GAAG,IAAA,sDAAyB,EAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;QACvF,IAAA,iCAAkB,EAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAClD,CAAC,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,4BAAa,EAAC,QAAQ,CAAC,IAAI,IAAA,sDAAyB,EAAC,QAAQ,CAAC,CAAC;IAE/E,OAAO,CACH,4CACI,uBAAC,oCAAY,IACT,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,oBAAoB,EAC9B,IAAI,EAAE,YAAY,EAClB,SAAS,EAAC,MAAM,WAClB,EACF,uBAAC,mCAAc,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,QAAQ,EAAE,OAAO,WAAI,YAC9E,CACT,CAAC;AACN,CAAC,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAA,kDAA4B,EAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC"}
|
@@ -31,8 +31,8 @@ const moment_1 = __importDefault(require("moment"));
|
|
31
31
|
const column_menu_filters_1 = require("../column-menu-filters");
|
32
32
|
const Styles = __importStar(require("./range-filter.module.css"));
|
33
33
|
const NoSSR = ({ children }) => {
|
34
|
-
const [isMounted, setIsMounted] = react_1.useState(false);
|
35
|
-
react_1.useEffect(() => {
|
34
|
+
const [isMounted, setIsMounted] = (0, react_1.useState)(false);
|
35
|
+
(0, react_1.useEffect)(() => {
|
36
36
|
setIsMounted(true);
|
37
37
|
}, []);
|
38
38
|
return isMounted ? children : null;
|
@@ -104,7 +104,7 @@ class RangeFilterCellBase extends react_1.Component {
|
|
104
104
|
render() {
|
105
105
|
const filterValue = this.props.value;
|
106
106
|
const Control = this.controlClass;
|
107
|
-
return (jsx_runtime_1.jsxs(react_1.Fragment, { children: [jsx_runtime_1.jsx("span", { children: "From:" }, void 0), jsx_runtime_1.jsx("span", Object.assign({ className: Styles.from }, { children: jsx_runtime_1.jsx(NoSSR, { children: jsx_runtime_1.jsx(Control, Object.assign({}, this.controlProps, { value: filterValue === null || filterValue === void 0 ? void 0 : filterValue.min, ref: this.setMinValueRef, onChange: this.onChange }), void 0) }, void 0) }), void 0), jsx_runtime_1.jsx("span", { children: "To:" }, void 0), jsx_runtime_1.jsx("span", Object.assign({ className: Styles.to }, { children: jsx_runtime_1.jsx(NoSSR, { children: jsx_runtime_1.jsx(Control, Object.assign({}, this.controlProps, { value: filterValue === null || filterValue === void 0 ? void 0 : filterValue.max, ref: this.setMaxValueRef, onChange: this.onChange }), void 0) }, void 0) }), void 0)] }, void 0));
|
107
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { children: "From:" }, void 0), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: Styles.from }, { children: (0, jsx_runtime_1.jsx)(NoSSR, { children: (0, jsx_runtime_1.jsx)(Control, Object.assign({}, this.controlProps, { value: filterValue === null || filterValue === void 0 ? void 0 : filterValue.min, ref: this.setMinValueRef, onChange: this.onChange }), void 0) }, void 0) }), void 0), (0, jsx_runtime_1.jsx)("span", { children: "To:" }, void 0), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: Styles.to }, { children: (0, jsx_runtime_1.jsx)(NoSSR, { children: (0, jsx_runtime_1.jsx)(Control, Object.assign({}, this.controlProps, { value: filterValue === null || filterValue === void 0 ? void 0 : filterValue.max, ref: this.setMaxValueRef, onChange: this.onChange }), void 0) }, void 0) }), void 0)] }, void 0));
|
108
108
|
}
|
109
109
|
}
|
110
110
|
class NumericRangeFilterCell extends RangeFilterCellBase {
|
@@ -132,11 +132,11 @@ class TimeRangeFilterCell extends RangeFilterCellBase {
|
|
132
132
|
super(props, kendo_react_dateinputs_1.TimePicker);
|
133
133
|
}
|
134
134
|
inRange(current, values) {
|
135
|
-
return moment_1.default(getTimeString(current), 'h:mma').isBetween(moment_1.default(getTimeString(values.min || current), 'h:mma'), moment_1.default(getTimeString(values.max || current), 'h:mma'), 'minutes', '[]');
|
135
|
+
return (0, moment_1.default)(getTimeString(current), 'h:mma').isBetween((0, moment_1.default)(getTimeString(values.min || current), 'h:mma'), (0, moment_1.default)(getTimeString(values.max || current), 'h:mma'), 'minutes', '[]');
|
136
136
|
}
|
137
137
|
}
|
138
|
-
exports.NumericRangeColumnMenuFilter = column_menu_filters_1.renderCustomColumnMenuFilter(NumericRangeFilterCell);
|
139
|
-
exports.CurrencyRangeColumnMenuFilter = column_menu_filters_1.renderCustomColumnMenuFilter(CurrencyRangeFilterCell);
|
140
|
-
exports.DateRangeColumnMenuFilter = column_menu_filters_1.renderCustomColumnMenuFilter(DateRangeFilterCell);
|
141
|
-
exports.TimeRangeColumnMenuFilter = column_menu_filters_1.renderCustomColumnMenuFilter(TimeRangeFilterCell);
|
138
|
+
exports.NumericRangeColumnMenuFilter = (0, column_menu_filters_1.renderCustomColumnMenuFilter)(NumericRangeFilterCell);
|
139
|
+
exports.CurrencyRangeColumnMenuFilter = (0, column_menu_filters_1.renderCustomColumnMenuFilter)(CurrencyRangeFilterCell);
|
140
|
+
exports.DateRangeColumnMenuFilter = (0, column_menu_filters_1.renderCustomColumnMenuFilter)(DateRangeFilterCell);
|
141
|
+
exports.TimeRangeColumnMenuFilter = (0, column_menu_filters_1.renderCustomColumnMenuFilter)(TimeRangeFilterCell);
|
142
142
|
//# sourceMappingURL=range-filter.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"range-filter.js","sourceRoot":"","sources":["../../../src/filters/range-filter/range-filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAoF;AACpF,6EAA0E;AAE1E,qEAAmF;AACnF,oDAA4B;AAE5B,gEAAsE;AAEtE,kEAAoD;AAoBpD,MAAM,KAAK,GAAkC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1D,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,gBAAQ,
|
1
|
+
{"version":3,"file":"range-filter.js","sourceRoot":"","sources":["../../../src/filters/range-filter/range-filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAoF;AACpF,6EAA0E;AAE1E,qEAAmF;AACnF,oDAA4B;AAE5B,gEAAsE;AAEtE,kEAAoD;AAoBpD,MAAM,KAAK,GAAkC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1D,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAElD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACX,YAAY,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;AACvC,CAAC,CAAC;AAEF,MAAM,mBAAsC,SAAQ,iBAA+B;IAI/E,YACI,KAA2B,EACnB,YAA6E,EAC7E,eAAuB,EAAS;QAExC,KAAK,CAAC,KAAK,CAAC,CAAC;;;;;mBAHL;;;;;;mBACA;;QANZ;;;;mBAAsD,IAAI;WAAC;QAC3D;;;;mBAAsD,IAAI;WAAC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ACpD,IAAA,gBAAM,EAAC,aAAa,CAAC,MAAM,CAAC,GAAG,IAAI,OAAO,CAAC,EAAE,OAAO,CAAC,EACrD,IAAA,gBAAM,EAAC,aAAa,CAAC,MAAM,CAAC,GAAG,IAAI,OAAO,CAAC,EAAE,OAAO,CAAC,EACrD,SAAS,EACT,IAAI,CACP,CAAC;IACN,CAAC;CACJ;AAEY,QAAA,4BAA4B,GAAG,IAAA,kDAA4B,EAAC,sBAAsB,CAAC,CAAC;AACpF,QAAA,6BAA6B,GAAG,IAAA,kDAA4B,EAAC,uBAAuB,CAAC,CAAC;AACtF,QAAA,yBAAyB,GAAG,IAAA,kDAA4B,EAAC,mBAAmB,CAAC,CAAC;AAC9E,QAAA,yBAAyB,GAAG,IAAA,kDAA4B,EAAC,mBAAmB,CAAC,CAAC"}
|
@@ -29,8 +29,8 @@ const filterCommon_1 = require("@progress/kendo-react-grid/dist/npm/filterCommon
|
|
29
29
|
const design_system_1 = require("@servicetitan/design-system");
|
30
30
|
const Styles = __importStar(require("./filter-cell-ext.module.css"));
|
31
31
|
// like standard filter cell (rendered for string type), but with support of multiselect operators
|
32
|
-
exports.FilterCellExt = mobx_react_1.observer(props => {
|
33
|
-
const store = mobx_react_1.useLocalStore(oprops => ({
|
32
|
+
exports.FilterCellExt = (0, mobx_react_1.observer)(props => {
|
33
|
+
const store = (0, mobx_react_1.useLocalStore)(oprops => ({
|
34
34
|
get operators() {
|
35
35
|
return multiselect_operators_1.multiselectOperators.concat(oprops.onlyMultiselectAndEmptyOperators
|
36
36
|
? oprops.operators.filter(o => o.operator === 'isempty' || o.operator === 'isnotempty')
|
@@ -41,7 +41,7 @@ exports.FilterCellExt = mobx_react_1.observer(props => {
|
|
41
41
|
},
|
42
42
|
searchQuery: '',
|
43
43
|
filterChange(event) {
|
44
|
-
mobx_1.runInAction(() => (this.searchQuery = event.filter.value));
|
44
|
+
(0, mobx_1.runInAction)(() => (this.searchQuery = event.filter.value));
|
45
45
|
},
|
46
46
|
get filteredValuesSet() {
|
47
47
|
const queryLC = this.searchQuery.toLowerCase();
|
@@ -89,16 +89,16 @@ exports.FilterCellExt = mobx_react_1.observer(props => {
|
|
89
89
|
};
|
90
90
|
// conversions for better compatibility when switching plain/array operators
|
91
91
|
const handleOperatorChange = (event) => {
|
92
|
-
const newValue = multiselect_operators_1.isMultiselectOperator(operator) === multiselect_operators_1.isMultiselectOperator(event.target.value.operator)
|
92
|
+
const newValue = (0, multiselect_operators_1.isMultiselectOperator)(operator) === (0, multiselect_operators_1.isMultiselectOperator)(event.target.value.operator)
|
93
93
|
? props.value
|
94
94
|
: '';
|
95
|
-
filterCommon_1.cellOperatorChange(event, newValue, onChange);
|
95
|
+
(0, filterCommon_1.cellOperatorChange)(event, newValue, onChange);
|
96
96
|
};
|
97
97
|
const allowCustomAdd = (allowCustomValues &&
|
98
98
|
store.searchQuery &&
|
99
99
|
(!props.handleCustomValuesAsNumber || !isNaN(+store.searchQuery))) ||
|
100
100
|
false;
|
101
|
-
return (jsx_runtime_1.jsxs("div", { children: [jsx_runtime_1.jsx(kendo_react_dropdowns_1.DropDownList, { value: store.operatorValue, onChange: handleOperatorChange, data: store.operators, textField: "text" }, void 0), !filterCommon_1.IsUnaryFilter(operator) &&
|
102
|
-
(multiselect_operators_1.isMultiselectOperator(operator) ? (jsx_runtime_1.jsx(kendo_react_dropdowns_1.MultiSelect, { value: store.multiselectValue, onChange: handleMultiselectChange, filterable: true, onFilterChange: store.filterChange, allowCustom: allowCustomAdd, data: store.filteredVisibleValues, textField: "text", dataItemKey: "value", header: allowCustomAdd && jsx_runtime_1.jsx("div", { className: Styles.customItemAddMarker }, void 0), footer: allowCustomAdd ? (jsx_runtime_1.jsxs("div", Object.assign({ className: Styles.returnToUse }, { children: [jsx_runtime_1.jsx(design_system_1.Icon, { name: "keyboard_return" }, void 0), "to create filter"] }), void 0)) : (store.onlyFirstValues && (jsx_runtime_1.jsxs("div", Object.assign({ className: Styles.returnToUse }, { children: ["First ", store.onlyFirstValues, " values are shown. ", jsx_runtime_1.jsx("br", {}, void 0), "Type to search for other values."] }), void 0))), itemRender: multiselectItemRender, tagRender: multiselectTagRender, listNoDataRender: multiselectListNoDataRender }, void 0)) : (jsx_runtime_1.jsx("input", { className: "k-textbox", value: props.value, onChange: handleInputChange }, void 0)))] }, void 0));
|
101
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(kendo_react_dropdowns_1.DropDownList, { value: store.operatorValue, onChange: handleOperatorChange, data: store.operators, textField: "text" }, void 0), !(0, filterCommon_1.IsUnaryFilter)(operator) &&
|
102
|
+
((0, multiselect_operators_1.isMultiselectOperator)(operator) ? ((0, jsx_runtime_1.jsx)(kendo_react_dropdowns_1.MultiSelect, { value: store.multiselectValue, onChange: handleMultiselectChange, filterable: true, onFilterChange: store.filterChange, allowCustom: allowCustomAdd, data: store.filteredVisibleValues, textField: "text", dataItemKey: "value", header: allowCustomAdd && (0, jsx_runtime_1.jsx)("div", { className: Styles.customItemAddMarker }, void 0), footer: allowCustomAdd ? ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: Styles.returnToUse }, { children: [(0, jsx_runtime_1.jsx)(design_system_1.Icon, { name: "keyboard_return" }, void 0), "to create filter"] }), void 0)) : (store.onlyFirstValues && ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: Styles.returnToUse }, { children: ["First ", store.onlyFirstValues, " values are shown. ", (0, jsx_runtime_1.jsx)("br", {}, void 0), "Type to search for other values."] }), void 0))), itemRender: multiselectItemRender, tagRender: multiselectTagRender, listNoDataRender: multiselectListNoDataRender }, void 0)) : ((0, jsx_runtime_1.jsx)("input", { className: "k-textbox", value: props.value, onChange: handleInputChange }, void 0)))] }, void 0));
|
103
103
|
});
|
104
104
|
//# sourceMappingURL=filter-cell-ext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"filter-cell-ext.js","sourceRoot":"","sources":["../../../src/filters/standard-filter-with-multiselect/filter-cell-ext.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,+BAAmC;AACnC,2CAAqD;AACrD,mEAAsF;AAEtF,2EAQyC;AAGzC,mFAG0D;AAC1D,+DAAmD;AACnD,qEAAuD;AAuBvD,kGAAkG;AACrF,QAAA,aAAa,GAA2B,qBAAQ,
|
1
|
+
{"version":3,"file":"filter-cell-ext.js","sourceRoot":"","sources":["../../../src/filters/standard-filter-with-multiselect/filter-cell-ext.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,+BAAmC;AACnC,2CAAqD;AACrD,mEAAsF;AAEtF,2EAQyC;AAGzC,mFAG0D;AAC1D,+DAAmD;AACnD,qEAAuD;AAuBvD,kGAAkG;AACrF,QAAA,aAAa,GAA2B,IAAA,qBAAQ,EAAC,KAAK,CAAC,EAAE;IAClE,MAAM,KAAK,GAAG,IAAA,0BAAa,EACvB,MAAM,CAAC,EAAE,CAAC,CAAC;QACP,IAAI,SAAS;YACT,OAAO,4CAAoB,CAAC,MAAM,CAC9B,MAAM,CAAC,gCAAgC;gBACnC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CACnB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,SAAS,IAAI,CAAC,CAAC,QAAQ,KAAK,YAAY,CAC/D;gBACH,CAAC,CAAC,MAAM,CAAC,SAAS,CACzB,CAAC;QACN,CAAC;QACD,IAAI,aAAa;YACb,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC1E,CAAC;QACD,WAAW,EAAE,EAAE;QACf,YAAY,CAAC,KAAmC;YAC5C,IAAA,kBAAW,EAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC/D,CAAC;QACD,IAAI,iBAAiB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,CAAC,CAAC"}
|
@@ -15,15 +15,15 @@ function standardFilterWithMultiselect(optionsConfig = {}, filterCellConfig = {}
|
|
15
15
|
const optionsConfigFull = Object.assign({ maxExtractedLength: 64, options: [] }, optionsConfig);
|
16
16
|
const filterCellConfigFull = Object.assign({ allowCustomValues: true, maxFoundValues: 1000 }, filterCellConfig);
|
17
17
|
// Filter UI with data fetcher
|
18
|
-
const FilterUIWithValues = mobx_react_1.observer(props => {
|
19
|
-
const store = mobx_react_1.useLocalStore(oprops => ({
|
18
|
+
const FilterUIWithValues = (0, mobx_react_1.observer)(props => {
|
19
|
+
const store = (0, mobx_react_1.useLocalStore)(oprops => ({
|
20
20
|
get field() {
|
21
21
|
return oprops.firstFilterProps.field;
|
22
22
|
},
|
23
23
|
get itemsFromDataSource() {
|
24
24
|
var _a;
|
25
25
|
const dataSource = (_a = optionsConfigFull.tableState) === null || _a === void 0 ? void 0 : _a.dataSource;
|
26
|
-
return dataSource && this.field && mobx_utils_1.fromPromise(dataSource.getData({}));
|
26
|
+
return dataSource && this.field && (0, mobx_utils_1.fromPromise)(dataSource.getData({}));
|
27
27
|
},
|
28
28
|
get valuesfromTableState() {
|
29
29
|
if (!this.itemsFromDataSource ||
|
@@ -65,9 +65,9 @@ function standardFilterWithMultiselect(optionsConfig = {}, filterCellConfig = {}
|
|
65
65
|
},
|
66
66
|
}), props);
|
67
67
|
const { firstFilterProps, secondFilterProps, hideSecondFilter, logicData, logicValue, onLogicChange, } = props;
|
68
|
-
return (jsx_runtime_1.jsxs("div", { children: [jsx_runtime_1.jsx(filter_cell_ext_1.FilterCellExt, Object.assign({}, firstFilterProps, { options: store.options }, filterCellConfigFull), void 0), !hideSecondFilter && (jsx_runtime_1.jsxs("div", { children: [jsx_runtime_1.jsx(kendo_react_dropdowns_1.DropDownList, { data: logicData, value: logicValue, onChange: onLogicChange, className: "k-filter-and", textField: "text" }, void 0), jsx_runtime_1.jsx(filter_cell_ext_1.FilterCellExt, Object.assign({}, secondFilterProps, { options: store.options }, filterCellConfigFull), void 0)] }, void 0))] }, void 0));
|
68
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(filter_cell_ext_1.FilterCellExt, Object.assign({}, firstFilterProps, { options: store.options }, filterCellConfigFull), void 0), !hideSecondFilter && ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(kendo_react_dropdowns_1.DropDownList, { data: logicData, value: logicValue, onChange: onLogicChange, className: "k-filter-and", textField: "text" }, void 0), (0, jsx_runtime_1.jsx)(filter_cell_ext_1.FilterCellExt, Object.assign({}, secondFilterProps, { options: store.options }, filterCellConfigFull), void 0)] }, void 0))] }, void 0));
|
69
69
|
});
|
70
|
-
return (props) => (jsx_runtime_1.jsx(table_column_menu_filter_ext_1.TableColumnMenuFilterExt, Object.assign({}, props, { filterUI: FilterUIWithValues, expanded: true }), void 0));
|
70
|
+
return (props) => ((0, jsx_runtime_1.jsx)(table_column_menu_filter_ext_1.TableColumnMenuFilterExt, Object.assign({}, props, { filterUI: FilterUIWithValues, expanded: true }), void 0));
|
71
71
|
}
|
72
72
|
exports.standardFilterWithMultiselect = standardFilterWithMultiselect;
|
73
73
|
//# sourceMappingURL=standard-filter-with-multiselect.js.map
|
package/dist/filters/standard-filter-with-multiselect/standard-filter-with-multiselect.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"standard-filter-with-multiselect.js","sourceRoot":"","sources":["../../../src/filters/standard-filter-with-multiselect/standard-filter-with-multiselect.tsx"],"names":[],"mappings":";;;;AACA,2CAAqD;AACrD,2CAAyC;AAEzC,2EAA+D;AAO/D,iFAA0E;AAC1E,uDAAsE;AA+BtE;;;GAGG;AAEH,SAAgB,6BAA6B,CACzC,gBAAuC,EAAE,EACzC,mBAAqC,EAAE;IAEvC,MAAM,iBAAiB,mBACnB,kBAAkB,EAAE,EAAE,EACtB,OAAO,EAAE,EAAc,IACpB,aAAa,CACnB,CAAC;IAEF,MAAM,oBAAoB,mBACtB,iBAAiB,EAAE,IAAI,EACvB,cAAc,EAAE,IAAI,IACjB,gBAAgB,CACtB,CAAC;IAEF,8BAA8B;IAC9B,MAAM,kBAAkB,GAAqC,qBAAQ,
|
1
|
+
{"version":3,"file":"standard-filter-with-multiselect.js","sourceRoot":"","sources":["../../../src/filters/standard-filter-with-multiselect/standard-filter-with-multiselect.tsx"],"names":[],"mappings":";;;;AACA,2CAAqD;AACrD,2CAAyC;AAEzC,2EAA+D;AAO/D,iFAA0E;AAC1E,uDAAsE;AA+BtE;;;GAGG;AAEH,SAAgB,6BAA6B,CACzC,gBAAuC,EAAE,EACzC,mBAAqC,EAAE;IAEvC,MAAM,iBAAiB,mBACnB,kBAAkB,EAAE,EAAE,EACtB,OAAO,EAAE,EAAc,IACpB,aAAa,CACnB,CAAC;IAEF,MAAM,oBAAoB,mBACtB,iBAAiB,EAAE,IAAI,EACvB,cAAc,EAAE,IAAI,IACjB,gBAAgB,CACtB,CAAC;IAEF,8BAA8B;IAC9B,MAAM,kBAAkB,GAAqC,IAAA,qBAAQ,EAAC,KAAK,CAAC,EAAE;QAC1E,MAAM,KAAK,GAAG,IAAA,0BAAa,EACvB,MAAM,CAAC,EAAE,CAAC,CAAC;YACP,IAAI,KAAK;gBACL,OAAO,MAAM,CAAC,gBAAgB,CAAC,KAAgB,CAAC;YACpD,CAAC;YACD,IAAI,mBAAmB;;gBACnB,MAAM,UAAU,GAAG,MAAA,iBAAiB,CAAC,UAAU,0CAAE,UAAU,CAAC;gBAC5D,OAAO,UAAU,IAAI,IAAI,CAAC,KAAK,IAAI,IAAA,wBAAW,EAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;YAC3E,CAAC;YACD,IAAI,oBAAoB;gBACpB,IACI,CAAC,IAAI,CAAC,mBAAmB;oBACzB,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,KAAK,WAAW,CAAC,EACnD;oBACE,OAAO,EAAE,CAAC;iBACb;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AChB,SAAS,EACT,UAAU,EACV,aAAa,GAChB,GAAG,KAAK,CAAC;QAEV,OAAO,CACH,4CACI,uBAAC,+BAAa,oBACN,gBAAgB,IACpB,OAAO,EAAE,KAAK,CAAC,OAAO,IAClB,oBAAoB,UAC1B,EACD,CAAC,gBAAgB,IAAI,CAClB,4CACI,uBAAC,oCAAY,IACT,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,aAAa,EACvB,SAAS,EAAC,cAAc,EACxB,SAAS,EAAC,MAAM,WAClB,EACF,uBAAC,+BAAa,oBACN,iBAAiB,IACrB,OAAO,EAAE,KAAK,CAAC,OAAO,IAClB,oBAAoB,UAC1B,YACA,CACT,YACC,CACT,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,KAA2B,EAAE,EAAE,CAAC,CACpC,uBAAC,uDAAwB,oBAAK,KAAK,IAAE,QAAQ,EAAE,kBAAkB,EAAE,QAAQ,kBAAG,CACjF,CAAC;AACN,CAAC;AAnHD,sEAmHC"}
|
@@ -10,7 +10,7 @@ class TableColumnMenuFilterExt extends design_system_1.TableColumnMenuFilter {
|
|
10
10
|
constructor(props) {
|
11
11
|
var _a;
|
12
12
|
super(props);
|
13
|
-
const defaultOperator = filterCommon_1.getDefaultOperator(props.filterOperators, (_a = props.column.filter) !== null && _a !== void 0 ? _a : 'text');
|
13
|
+
const defaultOperator = (0, filterCommon_1.getDefaultOperator)(props.filterOperators, (_a = props.column.filter) !== null && _a !== void 0 ? _a : 'text');
|
14
14
|
// I know the check is a bit hacky, but that's compensated with its low criticality: even if it fails, nothing really bad happens
|
15
15
|
if (mobx_1.comparer.structural(this.state.filterGroup, {
|
16
16
|
logic: 'and',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"table-column-menu-filter-ext.js","sourceRoot":"","sources":["../../../src/filters/standard-filter-with-multiselect/table-column-menu-filter-ext.tsx"],"names":[],"mappings":";;;AAAA,+BAAgC;AAEhC,+DAAoE;AAEpE,mFAAsF;AAEtF,mEAA+D;AAE/D,sGAAsG;AACtG,MAAa,wBAAyB,SAAQ,qCAAqB;IAC/D,YAAY,KAAiC;;QACzC,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,MAAM,eAAe,GAAG,iCAAkB,
|
1
|
+
{"version":3,"file":"table-column-menu-filter-ext.js","sourceRoot":"","sources":["../../../src/filters/standard-filter-with-multiselect/table-column-menu-filter-ext.tsx"],"names":[],"mappings":";;;AAAA,+BAAgC;AAEhC,+DAAoE;AAEpE,mFAAsF;AAEtF,mEAA+D;AAE/D,sGAAsG;AACtG,MAAa,wBAAyB,SAAQ,qCAAqB;IAC/D,YAAY,KAAiC;;QACzC,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,MAAM,eAAe,GAAG,IAAA,iCAAkB,EACtC,KAAK,CAAC,eAAe,EACrB,MAAA,KAAK,CAAC,MAAM,CAAC,MAAM,mCAAI,MAAM,CAChC,CAAC;QACF,iIAAiI;QACjI,IACI,eAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE;YACxC,KAAK,EAAE,KAAK;YACZ,OAAO,EAAE;gBACL,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE;gBACxD,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE;aAC3D;SACJ,CAAC,EACJ;YACE,MAAM,kBAAkB,GAAG,4CAAoB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;YAC5D,IAAI,CAAC,KAAK,mCACH,IAAI,CAAC,KAAK,KACb,WAAW,EAAE;oBACT,KAAK,EAAE,KAAK;oBACZ,OAAO,EAAE;wBACL,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE;wBAC3D,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE;qBAC9D;iBACJ,GACJ,CAAC;SACL;IACL,CAAC;CACJ;AA/BD,4DA+BC"}
|
@@ -54,7 +54,7 @@ let TimeFilterCell = class TimeFilterCell extends react_1.Component {
|
|
54
54
|
writable: true,
|
55
55
|
value: (event) => {
|
56
56
|
this.operator = event.target.value;
|
57
|
-
filterCommon_1.cellOperatorChange(event, this.props.value, this.props.onChange);
|
57
|
+
(0, filterCommon_1.cellOperatorChange)(event, this.props.value, this.props.onChange);
|
58
58
|
}
|
59
59
|
});
|
60
60
|
Object.defineProperty(this, "handleChange", {
|
@@ -70,10 +70,10 @@ let TimeFilterCell = class TimeFilterCell extends react_1.Component {
|
|
70
70
|
});
|
71
71
|
}
|
72
72
|
});
|
73
|
-
mobx_1.makeObservable(this);
|
73
|
+
(0, mobx_1.makeObservable)(this);
|
74
74
|
}
|
75
75
|
render() {
|
76
|
-
return (jsx_runtime_1.jsxs(react_1.Fragment, { children: [jsx_runtime_1.jsx(kendo_react_dropdowns_1.DropDownList, { value: this.operator, onChange: this.handleOperatorChange, data: this.props.operators, dataItemKey: "operator", textField: "text" }, void 0), !filterCommon_1.IsUnaryFilter(this.operator.operator) && (jsx_runtime_1.jsx(kendo_react_dateinputs_1.TimePicker, { value: this.props.value, onChange: this.handleChange, className: Styles.timePicker }, void 0))] }, void 0));
|
76
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(kendo_react_dropdowns_1.DropDownList, { value: this.operator, onChange: this.handleOperatorChange, data: this.props.operators, dataItemKey: "operator", textField: "text" }, void 0), !(0, filterCommon_1.IsUnaryFilter)(this.operator.operator) && ((0, jsx_runtime_1.jsx)(kendo_react_dateinputs_1.TimePicker, { value: this.props.value, onChange: this.handleChange, className: Styles.timePicker }, void 0))] }, void 0));
|
77
77
|
}
|
78
78
|
};
|
79
79
|
__decorate([
|
@@ -88,5 +88,5 @@ TimeFilterCell = __decorate([
|
|
88
88
|
mobx_react_1.observer,
|
89
89
|
__metadata("design:paramtypes", [Object])
|
90
90
|
], TimeFilterCell);
|
91
|
-
exports.TimeColumnMenuFilter = column_menu_filters_1.renderCustomColumnMenuFilter(TimeFilterCell, true);
|
91
|
+
exports.TimeColumnMenuFilter = (0, column_menu_filters_1.renderCustomColumnMenuFilter)(TimeFilterCell, true);
|
92
92
|
//# sourceMappingURL=time-filter.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"time-filter.js","sourceRoot":"","sources":["../../../src/filters/time-filter/time-filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA4C;AAE5C,2CAAsC;AACtC,+BAA0D;AAE1D,2EAAwF;AACxF,6EAAqF;AAErF,mFAG0D;AAI1D,gEAAsE;AAEtE,iEAAmD;AAGnD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,iBAA+B;IAKxD,YAAY,KAA2B;;QACnC,KAAK,CAAC,KAAK,CAAC,CAAC;QALL;;;;mBACR,MAAA,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,mCAClE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;WAAC;QAQ5B;;;;mBAAuB,CAAC,KAA8B,EAAE,EAAE;gBACtD,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;gBACnC,iCAAkB,
|
1
|
+
{"version":3,"file":"time-filter.js","sourceRoot":"","sources":["../../../src/filters/time-filter/time-filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA4C;AAE5C,2CAAsC;AACtC,+BAA0D;AAE1D,2EAAwF;AACxF,6EAAqF;AAErF,mFAG0D;AAI1D,gEAAsE;AAEt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,EACnC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAC1B,WAAW,EAAC,UAAU,EACtB,SAAS,EAAC,MAAM,WAClB,EACD,CAAC,IAAA,4BAAa,EAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CACvC,uBAAC,mCAAU,IACP,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,SAAS,EAAE,MAAM,CAAC,UAAU,WAC9B,CACL,YACM,CACd,CAAC;IACN,CAAC;CACJ,CAAA;AA7Ce;IAAX,iBAAU;;gDAEiB;AAQ5B;IADC,aAAM;;4DAIL;AAdA,cAAc;IADnB,qBAAQ;;GACH,cAAc,CA8CnB;AAEY,QAAA,oBAAoB,GAAG,IAAA,kDAA4B,EAAC,cAAc,EAAE,IAAI,CAAC,CAAC"}
|
@@ -42,7 +42,7 @@ const SelectCell = (_a) => {
|
|
42
42
|
}
|
43
43
|
selectionChange({ syntheticEvent: event });
|
44
44
|
};
|
45
|
-
return jsx_runtime_1.jsx(Control, Object.assign({ className: Styles.checkbox, onChange: onChange }, props), void 0);
|
45
|
+
return (0, jsx_runtime_1.jsx)(Control, Object.assign({ className: Styles.checkbox, onChange: onChange }, props), void 0);
|
46
46
|
};
|
47
47
|
exports.SelectCell = SelectCell;
|
48
48
|
const SelectColumnCell = (props) => {
|
@@ -50,11 +50,11 @@ const SelectColumnCell = (props) => {
|
|
50
50
|
return null;
|
51
51
|
}
|
52
52
|
if (props.rowType === 'groupFooter') {
|
53
|
-
return jsx_runtime_1.jsx("td", {}, void 0);
|
53
|
+
return (0, jsx_runtime_1.jsx)("td", {}, void 0);
|
54
54
|
}
|
55
|
-
return (jsx_runtime_1.jsx("td", Object.assign({ style: props.style, className: props.className }, { children: jsx_runtime_1.jsx(exports.SelectCell, { checked: props.dataItem.selected, disabled: !props.isRowSelectable, selectionChange: props.selectionChange, indeterminate: props.dataItem.indeterminate, control: props.control }, void 0) }), void 0));
|
55
|
+
return ((0, jsx_runtime_1.jsx)("td", Object.assign({ style: props.style, className: props.className }, { children: (0, jsx_runtime_1.jsx)(exports.SelectCell, { checked: props.dataItem.selected, disabled: !props.isRowSelectable, selectionChange: props.selectionChange, indeterminate: props.dataItem.indeterminate, control: props.control }, void 0) }), void 0));
|
56
56
|
};
|
57
57
|
exports.SelectColumnCell = SelectColumnCell;
|
58
|
-
const SelectHeaderCell = (props) => (jsx_runtime_1.jsx(exports.SelectCell, { checked: props.selectionValue, indeterminate: props.isSomeRowsSelected, selectionChange: props.selectionChange, control: props.control }, void 0));
|
58
|
+
const SelectHeaderCell = (props) => ((0, jsx_runtime_1.jsx)(exports.SelectCell, { checked: props.selectionValue, indeterminate: props.isSomeRowsSelected, selectionChange: props.selectionChange, control: props.control }, void 0));
|
59
59
|
exports.SelectHeaderCell = SelectHeaderCell;
|
60
60
|
//# sourceMappingURL=select-cell.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"select-cell.js","sourceRoot":"","sources":["../../src/select-cell/select-cell.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+DAKqC;AACrC,iEAAmD;AAsB5C,MAAM,UAAU,GAAwB,CAAC,EAI9B,EAAE,EAAE;QAJ0B,EAC5C,eAAe,EACf,OAAO,EAAE,OAAO,GAAG,wBAAQ,OAEb,EADX,KAAK,cAHoC,8BAI/C,CADW;IAER,MAAM,QAAQ,GAAG,CAAC,EAAS,EAAE,EAAW,EAAE,KAAuC,EAAE,EAAE;QACjF,IAAI,CAAC,eAAe,EAAE;YAClB,OAAO;SACV;QACD,eAAe,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/C,CAAC,CAAC;IAEF,OAAO,
|
1
|
+
{"version":3,"file":"select-cell.js","sourceRoot":"","sources":["../../src/select-cell/select-cell.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;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