@servicetitan/table 17.5.3 → 17.5.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/filters/field-values-filter.js +1 -1
- package/dist/filters/field-values-filter.js.map +1 -1
- package/dist/filters/multiselect-filter.js +2 -2
- package/dist/filters/multiselect-filter.js.map +1 -1
- package/dist/filters/range-filter/range-filter.js +1 -1
- package/dist/filters/range-filter/range-filter.js.map +1 -1
- package/package.json +6 -6
- package/src/filters/field-values-filter.tsx +2 -2
- package/src/filters/multiselect-filter.tsx +9 -9
- package/src/filters/range-filter/range-filter.tsx +2 -2
@@ -100,7 +100,7 @@ function fieldValuesColumnMenuFilter(tableState, renderItem = defaultRenderItem)
|
|
100
100
|
this.fetchData(tableState.dataSource);
|
101
101
|
}
|
102
102
|
render() {
|
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)("
|
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)("span", Object.assign({ className: "k-widget" }, { 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* () {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"field-values-filter.js","sourceRoot":"","sources":["../../src/filters/field-values-filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+DAA6E;AAC7E,iCAAuD;AAEvD,2CAAsC;AACtC,+BAAiF;AAEjF,qEAAu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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,9 +23,9 @@ 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) => (
|
26
|
+
return options.map((option, index) => (
|
27
27
|
// eslint-disable-next-line react/no-array-index-key
|
28
|
-
, { value: option, label: renderer ? renderer(option) : option, checked: (value !== null && value !== void 0 ? value : []).includes(option), onChange: this.handleChange,
|
28
|
+
(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "k-widget" }, { children: (0, jsx_runtime_1.jsx)(design_system_1.Checkbox, { value: option, label: renderer ? renderer(option) : option, checked: (value !== null && value !== void 0 ? value : []).includes(option), onChange: this.handleChange }, void 0) }), index)));
|
29
29
|
}
|
30
30
|
}
|
31
31
|
function multiSelectColumnMenuFilter(data, renderItem) {
|
@@ -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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props.value;
|
106
106
|
const Control = this.controlClass;
|
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));
|
107
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: "k-widget" }, { 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", Object.assign({ className: "k-widget" }, { 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 {
|
@@ -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,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;QAkB3D;;;;mBAAW,CAAC,EAAO,EAAE,EAAE;gBACnB,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;oBACxC,OAAO;iBACV;gBACD,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;oBAChB,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE;oBACnE,QAAQ,EAAE,IAAI,CAAC,OAAO;oBACtB,cAAc,EAAE,EAAE,CAAC,cAAc;iBACpC,CAAC,CAAC;YACP,CAAC;WAAC;Q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AAE,IAAI,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC;AACrD,CAAC;AAED,MAAM,mBAAoB,SAAQ,mBAAyB;IACvD,YAAY,KAA2B;QACnC,KAAK,CAAC,KAAK,EAAE,mCAAU,CAAC,CAAC;IAC7B,CAAC;IAED,OAAO,CAAC,OAAa,EAAE,MAAmB;QACtC,OAAO,IAAA,gBAAM,EAAC,aAAa,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,SAAS,CACpD,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"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@servicetitan/table",
|
3
|
-
"version": "17.5.
|
3
|
+
"version": "17.5.4",
|
4
4
|
"description": "",
|
5
5
|
"homepage": "https://docs.st.dev/docs/frontend/table",
|
6
6
|
"repository": {
|
@@ -35,11 +35,11 @@
|
|
35
35
|
"memoize-one": "~5.2.1"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
|
-
"@servicetitan/data-query": "^17.5.
|
38
|
+
"@servicetitan/data-query": "^17.5.4",
|
39
39
|
"@servicetitan/design-system": "~10.5.0",
|
40
|
-
"@servicetitan/form": "^17.5.
|
41
|
-
"@servicetitan/react-ioc": "^17.5.
|
42
|
-
"@servicetitan/suppress-warnings": "^17.5.
|
40
|
+
"@servicetitan/form": "^17.5.4",
|
41
|
+
"@servicetitan/react-ioc": "^17.5.4",
|
42
|
+
"@servicetitan/suppress-warnings": "^17.5.4",
|
43
43
|
"@types/accounting": "~0.4.2",
|
44
44
|
"@types/react": "~17.0.33",
|
45
45
|
"accounting": "~0.4.1",
|
@@ -70,5 +70,5 @@
|
|
70
70
|
"cli": {
|
71
71
|
"webpack": false
|
72
72
|
},
|
73
|
-
"gitHead": "
|
73
|
+
"gitHead": "acf1acc24831b47478386625f8df3f4496816cf0"
|
74
74
|
}
|
@@ -98,14 +98,14 @@ export function fieldValuesColumnMenuFilter<T, TId extends IdType = never>(
|
|
98
98
|
/>
|
99
99
|
|
100
100
|
{this.processedData.map(item => (
|
101
|
-
<
|
101
|
+
<span key={JSON.stringify(item)} className="k-widget">
|
102
102
|
<Checkbox
|
103
103
|
label={item.text}
|
104
104
|
checked={this.value.includes(item.value)}
|
105
105
|
onChange={this.handleChange}
|
106
106
|
value={item}
|
107
107
|
/>
|
108
|
-
</
|
108
|
+
</span>
|
109
109
|
))}
|
110
110
|
</Fragment>
|
111
111
|
);
|
@@ -24,15 +24,15 @@ class Selector<T> extends Component<SelectorProps<T>> {
|
|
24
24
|
const { options, value, renderer } = this.props;
|
25
25
|
|
26
26
|
return options.map((option, index) => (
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
27
|
+
// eslint-disable-next-line react/no-array-index-key
|
28
|
+
<span key={index} className="k-widget">
|
29
|
+
<Checkbox
|
30
|
+
value={option}
|
31
|
+
label={renderer ? renderer(option) : option}
|
32
|
+
checked={(value ?? []).includes(option)}
|
33
|
+
onChange={this.handleChange}
|
34
|
+
/>
|
35
|
+
</span>
|
36
36
|
));
|
37
37
|
}
|
38
38
|
}
|
@@ -72,7 +72,7 @@ class RangeFilterCellBase<T, TProps = void> extends Component<TableFilterCellPro
|
|
72
72
|
const Control = this.controlClass;
|
73
73
|
return (
|
74
74
|
<Fragment>
|
75
|
-
<span>From:</span>
|
75
|
+
<span className="k-widget">From:</span>
|
76
76
|
<span className={Styles.from}>
|
77
77
|
{/* KendoNumericTextBox uses useLayoutEffect which is incompatible with SSR */}
|
78
78
|
<NoSSR>
|
@@ -84,7 +84,7 @@ class RangeFilterCellBase<T, TProps = void> extends Component<TableFilterCellPro
|
|
84
84
|
/>
|
85
85
|
</NoSSR>
|
86
86
|
</span>
|
87
|
-
<span>To:</span>
|
87
|
+
<span className="k-widget">To:</span>
|
88
88
|
<span className={Styles.to}>
|
89
89
|
{/* KendoNumericTextBox uses useLayoutEffect which is incompatible with SSR */}
|
90
90
|
<NoSSR>
|