@servicetitan/table 17.5.1 → 19.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/demo/master-detail/detail-table.store.d.ts.map +1 -1
- package/dist/demo/master-detail/detail-table.store.js.map +1 -1
- package/dist/filters/datetime-filter/datetime-filter.js +2 -1
- package/dist/filters/datetime-filter/datetime-filter.js.map +1 -1
- 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/numeric-filter-extended/numeric-extended-operators.d.ts +1 -1
- package/dist/filters/numeric-filter-extended/numeric-extended-operators.d.ts.map +1 -1
- package/dist/filters/numeric-filter-extended/numeric-extended-operators.js.map +1 -1
- package/dist/filters/numeric-filter-extended/numeric-filter-extended.d.ts.map +1 -1
- package/dist/filters/numeric-filter-extended/numeric-filter-extended.js +3 -2
- package/dist/filters/numeric-filter-extended/numeric-filter-extended.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/dist/filters/standard-filter-with-multiselect/filter-cell-ext.js +2 -2
- package/dist/filters/standard-filter-with-multiselect/filter-cell-ext.js.map +1 -1
- package/dist/filters/standard-filter-with-multiselect/multiselect-operators.d.ts +1 -1
- package/dist/filters/standard-filter-with-multiselect/multiselect-operators.d.ts.map +1 -1
- package/dist/filters/standard-filter-with-multiselect/multiselect-operators.js.map +1 -1
- package/dist/filters/time-filter/time-filter.js +2 -1
- package/dist/filters/time-filter/time-filter.js.map +1 -1
- package/dist/table.d.ts +1 -1
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +1 -1
- package/dist/table.js.map +1 -1
- package/package.json +21 -21
- package/src/demo/master-detail/detail-table.store.ts +6 -1
- package/src/filters/datetime-filter/datetime-filter.tsx +1 -1
- package/src/filters/field-values-filter.tsx +2 -2
- package/src/filters/multiselect-filter.tsx +9 -9
- package/src/filters/numeric-filter-extended/numeric-extended-operators.ts +1 -1
- package/src/filters/numeric-filter-extended/numeric-filter-extended.tsx +4 -2
- package/src/filters/range-filter/range-filter.tsx +2 -2
- package/src/filters/standard-filter-with-multiselect/filter-cell-ext.tsx +2 -2
- package/src/filters/standard-filter-with-multiselect/multiselect-operators.ts +1 -1
- package/src/filters/time-filter/time-filter.tsx +1 -1
- package/src/table.tsx +2 -3
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"detail-table.store.d.ts","sourceRoot":"","sources":["../../../src/demo/master-detail/detail-table.store.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAInC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,qBACa,gBAAgB;IACb,UAAU,CAAC,EAAE,UAAU,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAO5E,OAAO,CAAC,gBAAgB,CAAoB;IAE5C,IAAc,QAAQ,WAErB;IAED,OAAO,CAAC,sBAAsB,CAAS;;IAavC,UAAU,CAAC,GAAG,EAAE,OAAO;
|
1
|
+
{"version":3,"file":"detail-table.store.d.ts","sourceRoot":"","sources":["../../../src/demo/master-detail/detail-table.store.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAInC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,qBACa,gBAAgB;IACb,UAAU,CAAC,EAAE,UAAU,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAO5E,OAAO,CAAC,gBAAgB,CAAoB;IAE5C,IAAc,QAAQ,WAErB;IAED,OAAO,CAAC,sBAAsB,CAAS;;IAavC,UAAU,CAAC,GAAG,EAAE,OAAO;IASvB,OAAO;YAIO,sBAAsB;CAmBvC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"detail-table.store.js","sourceRoot":"","sources":["../../../src/demo/master-detail/detail-table.store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,uDAA6D;AAE7D,+BAAqF;AAErF,6BAAmC;AAEnC,6DAAwD;AAMxD,IAAa,gBAAgB,GAA7B,MAAa,gBAAgB;IAgBzB;QAfY;;;;;WAAgE;QAE5E;;;WAGG;QAEH;;;;;WAA4C;QAM5C;;;;;WAAuC;QAGnC,IAAA,qBAAc,EAAC,IAAI,CAAC,CAAC;QAErB,IAAI,CAAC,sBAAsB,GAAG,IAAA,cAAO,EAAC,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE;YAC/E,IAAI,CAAC,QAAQ,IAAI,QAAQ,EAAE;gBACvB,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;aACrC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAdS,IAAI,QAAQ;;QAClB,OAAO,MAAA,MAAA,IAAI,CAAC,UAAU,0CAAE,WAAW,CAAC,IAAI,mCAAI,CAAC,CAAC;IAClD,CAAC;IAeD,UAAU,CAAC,GAAY;QACnB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,mBAAoB,CAAC,GAAG,
|
1
|
+
{"version":3,"file":"detail-table.store.js","sourceRoot":"","sources":["../../../src/demo/master-detail/detail-table.store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,uDAA6D;AAE7D,+BAAqF;AAErF,6BAAmC;AAEnC,6DAAwD;AAMxD,IAAa,gBAAgB,GAA7B,MAAa,gBAAgB;IAgBzB;QAfY;;;;;WAAgE;QAE5E;;;WAGG;QAEH;;;;;WAA4C;QAM5C;;;;;WAAuC;QAGnC,IAAA,qBAAc,EAAC,IAAI,CAAC,CAAC;QAErB,IAAI,CA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,kBAAM,EAAC,qCAAgB,CAAC;8BACE,qCAAgB;0DAAC;AAElC;IAAT,eAAQ;;;gDAER;AAeD;IADC,aAAM;;;;kDAQN;AAlCQ,gBAAgB;IAD5B,IAAA,sBAAU,GAAE;;GACA,gBAAgB,CA2D5B;AA3DY,4CAAgB"}
|
@@ -62,10 +62,11 @@ let DateTimeFilterCell = class DateTimeFilterCell extends react_1.Component {
|
|
62
62
|
configurable: true,
|
63
63
|
writable: true,
|
64
64
|
value: (event) => {
|
65
|
+
var _a;
|
65
66
|
const value = event.value;
|
66
67
|
this.props.onChange({
|
67
68
|
value,
|
68
|
-
operator: this.props.operator,
|
69
|
+
operator: (_a = this.props.operator) !== null && _a !== void 0 ? _a : '',
|
69
70
|
syntheticEvent: event.syntheticEvent,
|
70
71
|
});
|
71
72
|
}
|
@@ -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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oBACnC,cAAc,EAAE,KAAK,CAAC,cAAc;iBACvC,CAAC,CAAC;YACP,CAAC;WAAC;QAjBE,IAAA,qBAAc,EAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAkBD,MAAM;QACF,OAAO,CACH,wBAAC,gBAAQ,eACL,uBAAC,oCAAY,IACT,KAAK,EAAE,IAAI,CAAC,QAAQ,EACpB,QAAQ,EAAE,IAAI,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"}
|
@@ -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,qEAAuE;AAIvE,+DAAqE;AAErE,SAAgB,QAAQ,CAAI,IAAO,EAAE,KAAU;IAC3C,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;AAFD,4BAEC;AAED,SAAgB,2BAA2B,CACvC,UAA8B,EAC9B,aAA4C,iBAAiB;IAO7D,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,iBAA+B;QAmC/D,YAAY,KAA2B;YACnC,KAAK,CAAC,KAAK,CAAC,CAAC;YAnCL;;;;uBAAe,EAAE;eAAC;YAElB;;;;uBAAc,EAAE;eAAC;YAsC7B;;;;uBAA0B,CAAC,EAAoB,EAAE,EAAE;oBAC/C,IAAI,OAAO,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,QAAQ,EAAE;wBACrC,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;qBACtC;gBAC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,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,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,M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KAAK,cAAL,KAAK,GAAI,EAAE;wBAClB,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;wBACpC,cAAc,EAAE,KAAK;qBACxB,CAAC,CAAC;gBACP,CAAC;eAAC;QAcN,CAAC;QAZG,MAAM;YACF,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YAE7B,OAAO,CACH,uBAAC,QAAQ,IACL,OAAO,EAAE,IAAI,EACb,KAAK,EAAE,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,EACvC,QAAQ,EAAE,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"}
|
@@ -2,5 +2,5 @@ export declare const numericExtendedOperators: {
|
|
2
2
|
text: string;
|
3
3
|
operator: string;
|
4
4
|
}[];
|
5
|
-
export declare const isNumericExtendedOperator: (operator: string) => boolean;
|
5
|
+
export declare const isNumericExtendedOperator: (operator: string | Function) => boolean;
|
6
6
|
//# sourceMappingURL=numeric-extended-operators.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"numeric-extended-operators.d.ts","sourceRoot":"","sources":["../../../src/filters/numeric-filter-extended/numeric-extended-operators.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB;;;GAGpC,CAAC;AAEF,eAAO,MAAM,yBAAyB,aAAc,MAAM,
|
1
|
+
{"version":3,"file":"numeric-extended-operators.d.ts","sourceRoot":"","sources":["../../../src/filters/numeric-filter-extended/numeric-extended-operators.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB;;;GAGpC,CAAC;AAEF,eAAO,MAAM,yBAAyB,aAAc,MAAM,GAAG,QAAQ,YACN,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"numeric-extended-operators.js","sourceRoot":"","sources":["../../../src/filters/numeric-filter-extended/numeric-extended-operators.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACpC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE;IAC7C,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,cAAc,EAAE;CACtD,CAAC;AAEK,MAAM,yBAAyB,GAAG,CAAC,
|
1
|
+
{"version":3,"file":"numeric-extended-operators.js","sourceRoot":"","sources":["../../../src/filters/numeric-filter-extended/numeric-extended-operators.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACpC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE;IAC7C,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,cAAc,EAAE;CACtD,CAAC;AAEK,MAAM,yBAAyB,GAAG,CAAC,QAA2B,EAAE,EAAE,CACrE,gCAAwB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;AADnD,QAAA,yBAAyB,6BAC0B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"numeric-filter-extended.d.ts","sourceRoot":"","sources":["../../../src/filters/numeric-filter-extended/numeric-filter-extended.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"numeric-filter-extended.d.ts","sourceRoot":"","sources":["../../../src/filters/numeric-filter-extended/numeric-filter-extended.tsx"],"names":[],"mappings":";AAwDA,eAAO,MAAM,qBAAqB,kFAA2D,CAAC"}
|
@@ -9,7 +9,7 @@ const numeric_extended_operators_1 = require("./numeric-extended-operators");
|
|
9
9
|
const column_menu_filters_1 = require("../column-menu-filters");
|
10
10
|
//
|
11
11
|
// like standard filter cell (rendered for numeric type), but with support of some special numeric operators
|
12
|
-
const NumericExtFilterCell = ({ operators, operator, value, onChange, }) => {
|
12
|
+
const NumericExtFilterCell = ({ operators, operator = '', value, onChange, }) => {
|
13
13
|
const operatorsExt = operators.concat(numeric_extended_operators_1.numericExtendedOperators);
|
14
14
|
const operatorValue = operatorsExt.find(item => item.operator === operator);
|
15
15
|
const handleInputChange = (e) => onChange({
|
@@ -22,7 +22,8 @@ const NumericExtFilterCell = ({ operators, operator, value, onChange, }) => {
|
|
22
22
|
const newValue = (0, numeric_extended_operators_1.isNumericExtendedOperator)(event.target.value.operator) ? null : value;
|
23
23
|
(0, filterCommon_1.cellOperatorChange)(event, newValue, onChange);
|
24
24
|
};
|
25
|
-
const isUnary = (
|
25
|
+
const isUnary = (typeof operator === 'string' && (0, filterCommon_1.IsUnaryFilter)(operator)) ||
|
26
|
+
(0, numeric_extended_operators_1.isNumericExtendedOperator)(operator);
|
26
27
|
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
28
|
};
|
28
29
|
exports.NumericFilterExtended = (0, column_menu_filters_1.renderCustomColumnMenuFilter)(NumericExtFilterCell, true);
|
@@ -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,
|
1
|
+
{"version":3,"file":"numeric-filter-extended.js","sourceRoot":"","sources":["../../../src/filters/numeric-filter-extended/numeric-filter-extended.tsx"],"names":[],"mapp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E,iBAAiB,EAAE,QAAQ,EAAE,OAAO,WAAI,YAC9E,CACT,CAAC;AACN,CAAC,CAAC;AAEW,QAAA,qBAAqB,GAAG,IAAA,kDAA4B,EAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC"}
|
@@ -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 ((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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AAM,EAAE,GAAG;SACd,CAAC,CAAC;IACP,CAAC;CACJ;AAED,MAAM,mBAAoB,SAAQ,mBAAyB;IACvD,YAAY,KAA2B;QACnC,KAAK,CAAC,KAAK,EAAE,mCAAU,CAAC,CAAC;IAC7B,CAAC;CACJ;AAED,SAAS,aAAa,CAAC,IAAU;IAC7B,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,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"}
|
@@ -73,7 +73,7 @@ exports.FilterCellExt = (0, mobx_react_1.observer)(props => {
|
|
73
73
|
: [];
|
74
74
|
},
|
75
75
|
}), props);
|
76
|
-
const { operator, onChange, allowCustomValues, multiselectItemRender, multiselectTagRender, multiselectListNoDataRender, } = props;
|
76
|
+
const { operator = '', onChange, allowCustomValues, multiselectItemRender, multiselectTagRender, multiselectListNoDataRender, } = props;
|
77
77
|
const handleInputChange = (e) => onChange({
|
78
78
|
operator,
|
79
79
|
value: e.target.value,
|
@@ -98,7 +98,7 @@ exports.FilterCellExt = (0, mobx_react_1.observer)(props => {
|
|
98
98
|
store.searchQuery &&
|
99
99
|
(!props.handleCustomValuesAsNumber || !isNaN(+store.searchQuery))) ||
|
100
100
|
false;
|
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) &&
|
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), (typeof operator !== 'string' || !(0, filterCommon_1.IsUnaryFilter)(operator)) &&
|
102
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,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;YACjB,MAAM,O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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;YACjB,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC;YAC/C,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;QACl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EAAE,KAAK,CAAC,SAAS,EACrB,SAAS,EAAC,MAAM,WAClB,EACD,CAAC,OAAO,QAAQ,KAAK,QAAQ,IAAI,CAAC,IAAA,4BAAa,EAAC,QAAQ,CAAC,CAAC;gBACvD,CAAC,IAAA,6CAAqB,EAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAC/B,uBAAC,mCAAW,IACR,KAAK,EAAE,KAAK,CAAC,gBAAgB,EAC7B,QAAQ,EAAE,uBAAuB,EACjC,UAAU,QACV,cAAc,EAAE,KAAK,CAAC,YAAY,EAClC,WAAW,EAAE,cAAc,EAC3B,IAAI,EAAE,KAAK,CAAC,qBAAqB,EACjC,SAAS,EAAC,MAAM,EAChB,WAAW,EAAC,OAAO,EACnB,MAAM,EAAE,cAAc,IAAI,gCAAK,SAAS,EAAE,MAAM,CAAC,mBAAmB,WAAI,EACxE,MAAM,EACF,cAAc,CAAC,CAAC,CAAC,CACb,+CAAK,SAAS,EAAE,MAAM,CAAC,WAAW,iBAC9B,uBAAC,oBAAI,IAAC,IAAI,EAAC,iBAAiB,WAAG,iCAE7B,CACT,CAAC,CAAC,CAAC,CACA,KAAK,CAAC,eAAe,IAAI,CACrB,+CAAK,SAAS,EAAE,MAAM,CAAC,WAAW,2BACvB,KAAK,CAAC,eAAe,yBAAoB,wCAAM,iDAEpD,CACT,CACJ,EAEL,UAAU,EAAE,qBAAqB,EACjC,SAAS,EAAE,oBAAoB,EAC/B,gBAAgB,EAAE,2BAA2B,WAC/C,CACL,CAAC,CAAC,CAAC,CACA,kCAAO,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,iBAAiB,WAAI,CACnF,CAAC,YACJ,CACT,CAAC;AACN,CAAC,CAAC,CAAC"}
|
@@ -2,5 +2,5 @@ export declare const multiselectOperators: {
|
|
2
2
|
text: string;
|
3
3
|
operator: string;
|
4
4
|
}[];
|
5
|
-
export declare const isMultiselectOperator: (operator: string) => boolean;
|
5
|
+
export declare const isMultiselectOperator: (operator: string | Function) => boolean;
|
6
6
|
//# sourceMappingURL=multiselect-operators.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"multiselect-operators.d.ts","sourceRoot":"","sources":["../../../src/filters/standard-filter-with-multiselect/multiselect-operators.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;GAGhC,CAAC;AAEF,eAAO,MAAM,qBAAqB,aAAc,MAAM,
|
1
|
+
{"version":3,"file":"multiselect-operators.d.ts","sourceRoot":"","sources":["../../../src/filters/standard-filter-with-multiselect/multiselect-operators.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;GAGhC,CAAC;AAEF,eAAO,MAAM,qBAAqB,aAAc,MAAM,GAAG,QAAQ,YACN,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"multiselect-operators.js","sourceRoot":"","sources":["../../../src/filters/standard-filter-with-multiselect/multiselect-operators.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAChC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE;IACrC,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAE;CAC/C,CAAC;AAEK,MAAM,qBAAqB,GAAG,CAAC,
|
1
|
+
{"version":3,"file":"multiselect-operators.js","sourceRoot":"","sources":["../../../src/filters/standard-filter-with-multiselect/multiselect-operators.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAChC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE;IACrC,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO,EAAE;CAC/C,CAAC;AAEK,MAAM,qBAAqB,GAAG,CAAC,QAA2B,EAAE,EAAE,CACjE,4BAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;AAD/C,QAAA,qBAAqB,yBAC0B"}
|
@@ -62,10 +62,11 @@ let TimeFilterCell = class TimeFilterCell extends react_1.Component {
|
|
62
62
|
configurable: true,
|
63
63
|
writable: true,
|
64
64
|
value: (event) => {
|
65
|
+
var _a;
|
65
66
|
const value = event.value;
|
66
67
|
this.props.onChange({
|
67
68
|
value: value ? new Date(2000, 0, 1, value.getHours(), value.getMinutes()) : null,
|
68
|
-
operator: this.props.operator,
|
69
|
+
operator: (_a = this.props.operator) !== null && _a !== void 0 ? _a : '',
|
69
70
|
syntheticEvent: event.syntheticEvent,
|
70
71
|
});
|
71
72
|
}
|
@@ -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,IAAA,iCAAkB,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YACrE,CAAC;W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AAK,CAAC,QAAQ,mCAAI,EAAE;oBACnC,cAAc,EAAE,KAAK,CAAC,cAAc;iBACvC,CAAC,CAAC;YACP,CAAC;WAAC;QAjBE,IAAA,qBAAc,EAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAkBD,MAAM;QACF,OAAO,CACH,wBAAC,gBAAQ,eACL,uBAAC,oCAAY,IACT,KAAK,EAAE,IAAI,CAAC,QAAQ,EACpB,QAAQ,EAAE,IAAI,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,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"}
|
package/dist/table.d.ts
CHANGED
@@ -8,7 +8,7 @@ export interface TableCellProps<T = never, TId extends IdType = any, P = never,
|
|
8
8
|
}
|
9
9
|
interface TableColumnProps<T = never, TId extends IdType = any, P = never, PId extends IdType = never> extends AnvilTableColumnProps {
|
10
10
|
cell?: ComponentType<TableCellProps<T, TId, P, PId>>;
|
11
|
-
children?: ReactElement<TableColumnProps<T, TId, P, PId>>[]
|
11
|
+
children?: ReactElement<TableColumnProps<T, TId, P, PId>>[];
|
12
12
|
}
|
13
13
|
declare type ExcludedTableProps = 'data' | 'editField' | 'filter' | 'onFilterChange' | 'group' | 'onGroupChange' | 'onExpandChange' | 'expandField' | 'sort' | 'onSortChange' | 'onHeaderSelectionChange' | 'onSelectionChange' | 'selectedField' | 'pageable' | 'pageSize' | 'skip' | 'onPageChange' | 'total' | 'selectable' | 'pager';
|
14
14
|
export interface TableProps<T, TId extends IdType = any, P = never, PId extends IdType = never> extends Omit<AnvilTableProps, ExcludedTableProps> {
|
package/dist/table.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../src/table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,SAAS,EAKT,SAAS,EACT,YAAY,EACZ,aAAa,EAEhB,MAAM,OAAO,CAAC;AACf,OAAO,EAGH,UAAU,IAAI,eAAe,EAC7B,aAAa,EAEb,gBAAgB,IAAI,qBAAqB,EACzC,cAAc,IAAI,mBAAmB,EAErC,+BAA+B,EAC/B,yBAAyB,EACzB,kBAAkB,EACrB,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAAmB,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAc,MAAM,eAAe,CAAC;AACvD,OAAO,EACH,oBAAoB,EAGvB,MAAM,2BAA2B,CAAC;AA0BnC,MAAM,WAAW,cAAc,CAC3B,CAAC,GAAG,KAAK,EACT,GAAG,SAAS,MAAM,GAAG,GAAG,EACxB,CAAC,GAAG,KAAK,EACT,GAAG,SAAS,MAAM,GAAG,KAAK,CAC5B,SAAQ,mBAAmB;IACzB,UAAU,CAAC,EAAE,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;CAC3C;AAED,UAAU,gBAAgB,CACtB,CAAC,GAAG,KAAK,EACT,GAAG,SAAS,MAAM,GAAG,GAAG,EACxB,CAAC,GAAG,KAAK,EACT,GAAG,SAAS,MAAM,GAAG,KAAK,CAC5B,SAAQ,qBAAqB;IAC3B,IAAI,CAAC,EAAE,aAAa,CAAC,cAA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cAAc,CACV,QAAQ,EAAE,SAAS,EACnB,WAAW,EAAE,CACT,MAAM,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,KACrD,YAAY,CAAC,gBAAgB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,GACpD,SAAS;IAiBZ,2BAA2B,OAAQ,+BAA+B,UAgBhE;IAEF,qBAAqB,OAAQ,yBAAyB,UAoCpD;IAEF,cAAc,aAQZ;IAEF,MAAM;IAuCN,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,KAAK,CAmDX;CACL"}
|
package/dist/table.js
CHANGED
@@ -210,7 +210,7 @@ let Table = class Table extends react_1.Component {
|
|
210
210
|
writable: true,
|
211
211
|
value: () => {
|
212
212
|
const _a = this.props, { className, filterOperators, selectable, pager } = _a, props = __rest(_a, ["className", "filterOperators", "selectable", "pager"]);
|
213
|
-
return ((0, jsx_runtime_1.jsxs)(design_system_1.Table, Object.assign({ ref: this.ref }, props, { data: [...this.tableState.data], rowRender: this.rowRender, editField: "inEdit", filter: this.tableState.filter, filterOperators: filterOperators !== null && filterOperators !== void 0 ? filterOperators : operators, onFilterChange: this.tableState.handleFilterChange, group: [...this.tableState.group], onGroupChange: this.tableState.handleGroupChange, onExpandChange: this.tableState.handleExpandChange, expandField: "expanded", sort: [...this.tableState.sort], onSortChange: this.tableState.handleSortChange, onHeaderSelectionChange: this.handleHeaderSelectionChange, onSelectionChange: this.handleSelectionChange, selectedField: "selected", pageable: this.getPageable(), pageSize: this.tableState.pageSize, skip: this.tableState.skip, onPageChange: this.tableState.handlePageChange, total: this.tableState.filteredCount, className: (0, classnames_1.default)(Styles.table, className), selectable: { enabled: selectable, mode: 'multiple' } }, { children: [selectable && ((0, jsx_runtime_1.jsx)(design_system_1.TableColumn, { field: "selected", width: "50px", filterable: false, resizable: false, headerSelectionValue: props.scrollable !== 'virtual'
|
213
|
+
return ((0, jsx_runtime_1.jsxs)(design_system_1.Table, Object.assign({ ref: this.ref }, props, { data: [...this.tableState.data], rowRender: this.rowRender, editField: "inEdit", filter: this.tableState.filter, filterOperators: filterOperators !== null && filterOperators !== void 0 ? filterOperators : operators, onFilterChange: this.tableState.handleFilterChange, group: [...this.tableState.group], onGroupChange: this.tableState.handleGroupChange, onExpandChange: this.tableState.handleExpandChange, expandField: "expanded", sort: [...this.tableState.sort], onSortChange: this.tableState.handleSortChange, onHeaderSelectionChange: this.handleHeaderSelectionChange, onSelectionChange: this.handleSelectionChange, selectedField: "selected", pageable: this.getPageable(), pageSize: this.tableState.pageSize, skip: this.tableState.skip, onPageChange: this.tableState.handlePageChange, total: this.tableState.filteredCount, className: (0, classnames_1.default)(Styles.table, className), selectable: { enabled: selectable, mode: 'multiple' } }, { children: [selectable && ((0, jsx_runtime_1.jsx)(design_system_1.TableColumn, { locked: true, field: "selected", width: "50px", filterable: false, resizable: false, headerSelectionValue: props.scrollable !== 'virtual'
|
214
214
|
? this.tableState.isAllPageRowsSelected
|
215
215
|
: this.tableState.isAllRowsSelected, headerCell: this.selectHeaderCell, cell: this.selectColumnCell, headerClassName: "lh-1-i ta-center-i", className: (0, classnames_1.default)(Styles.unselectable, 'lh-1-i', 'ta-center-i') }, void 0)), this.withCellTableState(props.children)] }), void 0));
|
216
216
|
}
|
package/dist/table.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../src/table.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAWe;AACf,+DAYqC;AACrC,mFAA+F;AAC/F,+DAA4E;AAC5E,iFAAiE;AACjE,2CAAsC;AAEtC,yDAAmE;AAEnE,2DAImC;AACnC,8DAAqC;AAErC,4DAAoC;AACpC,2DAA6C;AAE7C,MAAM,EAAE,IAAI,EAAE,aAAa,KAAmB,wBAAc,EAA5B,SAAS,UAAK,wBAAc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IAAI,CAAC,UAAU,CAAC,oBAAoB,EACzC,QAAQ,EAAE,sBAAsB,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,iBAE1D,IAAI,CAAC,KAAK,CAAC,QAAQ,EACnB,KAAK,aACO,EACjB,uBAAC,sCAAW,kBACR,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,sBAAsB,EAC3C,QAAQ,EAAE,sBAAsB,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,gBAE1D,IAAI,CAAC,KAAK,CAAC,QAAQ,YACV,YACP,CACd,YACM,CACd,CAAC;IACN,CAAC;IAEO,WAAW;;QACf,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE;YAClE,OAAO,KAAK,CAAC;SAChB;QAED,OAAO,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,mCAAI,IAAI,CAAC;IACpC,CAAC;CAsDJ,CAAA;AAhQY,KAAK;IADjB,qBAAQ;GACI,KAAK,CAgQjB;AAhQY,sBAAK;AAkQlB,MAAM,sBAAsB,GAAG,IAAA,qBAAU,EAAC,CAAC,QAA4B,EAAE,EAAE,CACvE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CACjC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@servicetitan/table",
|
3
|
-
"version": "
|
3
|
+
"version": "19.0.0",
|
4
4
|
"description": "",
|
5
5
|
"homepage": "https://docs.st.dev/docs/frontend/table",
|
6
6
|
"repository": {
|
@@ -19,29 +19,29 @@
|
|
19
19
|
"@progress/kendo-drawing": "~1.11.0",
|
20
20
|
"@progress/kendo-licensing": "~1.2.0",
|
21
21
|
"@progress/kendo-ooxml": "~1.6.2",
|
22
|
-
"@progress/kendo-react-animation": "~4.
|
23
|
-
"@progress/kendo-react-buttons": "~4.
|
24
|
-
"@progress/kendo-react-data-tools": "~4.
|
25
|
-
"@progress/kendo-react-dateinputs": "~4.
|
26
|
-
"@progress/kendo-react-dropdowns": "~4.
|
27
|
-
"@progress/kendo-react-excel-export": "~4.
|
28
|
-
"@progress/kendo-react-grid": "~4.
|
29
|
-
"@progress/kendo-react-inputs": "~4.
|
30
|
-
"@progress/kendo-react-intl": "~4.
|
31
|
-
"@progress/kendo-react-pdf": "~4.
|
32
|
-
"@progress/kendo-react-popup": "~4.
|
33
|
-
"@progress/kendo-react-treeview": "~4.
|
22
|
+
"@progress/kendo-react-animation": "~4.10.0",
|
23
|
+
"@progress/kendo-react-buttons": "~4.10.0",
|
24
|
+
"@progress/kendo-react-data-tools": "~4.10.0",
|
25
|
+
"@progress/kendo-react-dateinputs": "~4.10.0",
|
26
|
+
"@progress/kendo-react-dropdowns": "~4.10.0",
|
27
|
+
"@progress/kendo-react-excel-export": "~4.10.0",
|
28
|
+
"@progress/kendo-react-grid": "~4.10.0",
|
29
|
+
"@progress/kendo-react-inputs": "~4.10.0",
|
30
|
+
"@progress/kendo-react-intl": "~4.10.0",
|
31
|
+
"@progress/kendo-react-pdf": "~4.10.0",
|
32
|
+
"@progress/kendo-react-popup": "~4.10.0",
|
33
|
+
"@progress/kendo-react-treeview": "~4.10.0",
|
34
34
|
"classnames": "~2.3.1",
|
35
35
|
"memoize-one": "~5.2.1"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
|
-
"@servicetitan/data-query": "^
|
39
|
-
"@servicetitan/design-system": "~10.
|
40
|
-
"@servicetitan/form": "^
|
41
|
-
"@servicetitan/react-ioc": "^
|
42
|
-
"@servicetitan/suppress-warnings": "^
|
38
|
+
"@servicetitan/data-query": "^19.0.0",
|
39
|
+
"@servicetitan/design-system": "~10.6.0",
|
40
|
+
"@servicetitan/form": "^19.0.0",
|
41
|
+
"@servicetitan/react-ioc": "^19.0.0",
|
42
|
+
"@servicetitan/suppress-warnings": "^19.0.0",
|
43
43
|
"@types/accounting": "~0.4.2",
|
44
|
-
"@types/react": "~17.0.
|
44
|
+
"@types/react": "~17.0.35",
|
45
45
|
"accounting": "~0.4.1",
|
46
46
|
"formstate": "~2.0.0",
|
47
47
|
"mobx": "~6.3.7",
|
@@ -52,7 +52,7 @@
|
|
52
52
|
},
|
53
53
|
"peerDependencies": {
|
54
54
|
"@servicetitan/data-query": "^17.0.0",
|
55
|
-
"@servicetitan/design-system": "~10.
|
55
|
+
"@servicetitan/design-system": "~10.6.0",
|
56
56
|
"@servicetitan/form": "^17.0.0",
|
57
57
|
"@servicetitan/react-ioc": "^17.0.0",
|
58
58
|
"@servicetitan/suppress-warnings": "^17.0.0",
|
@@ -70,5 +70,5 @@
|
|
70
70
|
"cli": {
|
71
71
|
"webpack": false
|
72
72
|
},
|
73
|
-
"gitHead": "
|
73
|
+
"gitHead": "efb844833047aa20f082a4f71dfd2c6af06937a9"
|
74
74
|
}
|
@@ -38,7 +38,12 @@ export class DetailTableStore {
|
|
38
38
|
|
39
39
|
@action
|
40
40
|
initialize(row: Product) {
|
41
|
-
this.tableState = this.masterTableStore.tableState.getDetailTableState!(row)
|
41
|
+
this.tableState = this.masterTableStore.tableState.getDetailTableState!(row) as TableState<
|
42
|
+
ProductDetail,
|
43
|
+
string,
|
44
|
+
Product,
|
45
|
+
number
|
46
|
+
>;
|
42
47
|
}
|
43
48
|
|
44
49
|
dispose() {
|
@@ -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
|
}
|
@@ -3,5 +3,5 @@ export const numericExtendedOperators = [
|
|
3
3
|
{ text: 'Is fractional', operator: 'isfractional' },
|
4
4
|
];
|
5
5
|
|
6
|
-
export const isNumericExtendedOperator = (operator: string) =>
|
6
|
+
export const isNumericExtendedOperator = (operator: string | Function) =>
|
7
7
|
numericExtendedOperators.some(o => o.operator === operator);
|
@@ -17,7 +17,7 @@ import { renderCustomColumnMenuFilter } from '../column-menu-filters';
|
|
17
17
|
// like standard filter cell (rendered for numeric type), but with support of some special numeric operators
|
18
18
|
const NumericExtFilterCell: FC<TableColumnMenuFilterCellProps> = ({
|
19
19
|
operators,
|
20
|
-
operator,
|
20
|
+
operator = '',
|
21
21
|
value,
|
22
22
|
onChange,
|
23
23
|
}) => {
|
@@ -37,7 +37,9 @@ const NumericExtFilterCell: FC<TableColumnMenuFilterCellProps> = ({
|
|
37
37
|
cellOperatorChange(event, newValue, onChange);
|
38
38
|
};
|
39
39
|
|
40
|
-
const isUnary =
|
40
|
+
const isUnary =
|
41
|
+
(typeof operator === 'string' && IsUnaryFilter(operator)) ||
|
42
|
+
isNumericExtendedOperator(operator);
|
41
43
|
|
42
44
|
return (
|
43
45
|
<div>
|
@@ -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>
|
@@ -93,7 +93,7 @@ export const FilterCellExt: FC<FilterCellExtProps> = observer(props => {
|
|
93
93
|
);
|
94
94
|
|
95
95
|
const {
|
96
|
-
operator,
|
96
|
+
operator = '',
|
97
97
|
onChange,
|
98
98
|
allowCustomValues,
|
99
99
|
multiselectItemRender,
|
@@ -142,7 +142,7 @@ export const FilterCellExt: FC<FilterCellExtProps> = observer(props => {
|
|
142
142
|
data={store.operators}
|
143
143
|
textField="text"
|
144
144
|
/>
|
145
|
-
{!IsUnaryFilter(operator) &&
|
145
|
+
{(typeof operator !== 'string' || !IsUnaryFilter(operator)) &&
|
146
146
|
(isMultiselectOperator(operator) ? (
|
147
147
|
<MultiSelect
|
148
148
|
value={store.multiselectValue}
|
@@ -3,5 +3,5 @@ export const multiselectOperators = [
|
|
3
3
|
{ text: 'Is not one of', operator: 'notin' },
|
4
4
|
];
|
5
5
|
|
6
|
-
export const isMultiselectOperator = (operator: string) =>
|
6
|
+
export const isMultiselectOperator = (operator: string | Function) =>
|
7
7
|
multiselectOperators.some(o => o.operator === operator);
|
@@ -39,7 +39,7 @@ class TimeFilterCell extends Component<TableFilterCellProps> {
|
|
39
39
|
|
40
40
|
this.props.onChange({
|
41
41
|
value: value ? new Date(2000, 0, 1, value.getHours(), value.getMinutes()) : null,
|
42
|
-
operator: this.props.operator,
|
42
|
+
operator: this.props.operator ?? '',
|
43
43
|
syntheticEvent: event.syntheticEvent,
|
44
44
|
});
|
45
45
|
};
|
package/src/table.tsx
CHANGED
@@ -76,9 +76,7 @@ interface TableColumnProps<
|
|
76
76
|
PId extends IdType = never
|
77
77
|
> extends AnvilTableColumnProps {
|
78
78
|
cell?: ComponentType<TableCellProps<T, TId, P, PId>>;
|
79
|
-
children?:
|
80
|
-
| ReactElement<TableColumnProps<T, TId, P, PId>>[]
|
81
|
-
| ReactElement<TableColumnProps<T, TId, P, PId>>;
|
79
|
+
children?: ReactElement<TableColumnProps<T, TId, P, PId>>[];
|
82
80
|
}
|
83
81
|
|
84
82
|
type ExcludedTableProps =
|
@@ -351,6 +349,7 @@ export class Table<
|
|
351
349
|
>
|
352
350
|
{selectable && (
|
353
351
|
<TableColumn
|
352
|
+
locked
|
354
353
|
field="selected"
|
355
354
|
width="50px"
|
356
355
|
filterable={false}
|