@servicetitan/table 19.2.0 → 20.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/demo/index.js +3 -15
- package/dist/demo/index.js.map +1 -1
- package/dist/demo/master-detail/detail-table.js +15 -18
- package/dist/demo/master-detail/detail-table.js.map +1 -1
- package/dist/demo/master-detail/detail-table.store.js +14 -17
- package/dist/demo/master-detail/detail-table.store.js.map +1 -1
- package/dist/demo/master-detail/index.js +1 -13
- package/dist/demo/master-detail/index.js.map +1 -1
- package/dist/demo/master-detail/master-table.store.js +14 -17
- package/dist/demo/master-detail/master-table.store.js.map +1 -1
- package/dist/demo/master-detail/product-detail.js +1 -2
- package/dist/demo/master-detail/product-details.js +1 -4
- package/dist/demo/master-detail/product-details.js.map +1 -1
- package/dist/demo/master-detail/product.js +4 -7
- package/dist/demo/master-detail/product.js.map +1 -1
- package/dist/demo/master-detail/products.js +15 -18
- package/dist/demo/master-detail/products.js.map +1 -1
- package/dist/demo/master-detail/table-master-detail.js +13 -16
- package/dist/demo/master-detail/table-master-detail.js.map +1 -1
- package/dist/demo/overview/actions-cell.js +8 -11
- package/dist/demo/overview/actions-cell.js.map +1 -1
- package/dist/demo/overview/index.js +1 -13
- package/dist/demo/overview/index.js.map +1 -1
- package/dist/demo/overview/product.js +4 -7
- package/dist/demo/overview/product.js.map +1 -1
- package/dist/demo/overview/products.js +15 -18
- package/dist/demo/overview/products.js.map +1 -1
- package/dist/demo/overview/table.js +24 -27
- package/dist/demo/overview/table.js.map +1 -1
- package/dist/demo/overview/table.store.js +27 -30
- package/dist/demo/overview/table.store.js.map +1 -1
- package/dist/demo/state-caching/beverages.js +1 -4
- package/dist/demo/state-caching/beverages.js.map +1 -1
- package/dist/demo/state-caching/index.js +1 -13
- package/dist/demo/state-caching/index.js.map +1 -1
- package/dist/demo/state-caching/product.js +1 -2
- package/dist/demo/state-caching/products.js +1 -4
- package/dist/demo/state-caching/products.js.map +1 -1
- package/dist/demo/state-caching/state-caching-table.js +12 -15
- package/dist/demo/state-caching/state-caching-table.js.map +1 -1
- package/dist/demo/state-caching/state-caching-table.store.js +9 -12
- package/dist/demo/state-caching/state-caching-table.store.js.map +1 -1
- package/dist/editable-cell/boolean-editable-cell.js +7 -10
- package/dist/editable-cell/boolean-editable-cell.js.map +1 -1
- package/dist/editable-cell/date-editable-cell.js +7 -10
- package/dist/editable-cell/date-editable-cell.js.map +1 -1
- package/dist/editable-cell/get-action-cell.js +6 -10
- package/dist/editable-cell/get-action-cell.js.map +1 -1
- package/dist/editable-cell/get-editable-cell.js +6 -10
- package/dist/editable-cell/get-editable-cell.js.map +1 -1
- package/dist/editable-cell/get-select-editable-cell.js +9 -16
- package/dist/editable-cell/get-select-editable-cell.js.map +1 -1
- package/dist/editable-cell/index.js +7 -19
- package/dist/editable-cell/index.js.map +1 -1
- package/dist/editable-cell/numeric-editable-cell.js +7 -10
- package/dist/editable-cell/numeric-editable-cell.js.map +1 -1
- package/dist/editable-cell/text-editable-cell.js +10 -14
- package/dist/editable-cell/text-editable-cell.js.map +1 -1
- package/dist/export/export.js +5 -28
- package/dist/export/export.js.map +1 -1
- package/dist/export/index.js +1 -13
- package/dist/export/index.js.map +1 -1
- package/dist/filters/column-menu-filters.js +7 -12
- package/dist/filters/column-menu-filters.js.map +1 -1
- package/dist/filters/datetime-filter/datetime-filter.js +17 -39
- package/dist/filters/datetime-filter/datetime-filter.js.map +1 -1
- package/dist/filters/field-values-filter.js +21 -26
- package/dist/filters/field-values-filter.js.map +1 -1
- package/dist/filters/index.js +8 -20
- package/dist/filters/index.js.map +1 -1
- package/dist/filters/multiselect-filter.js +17 -23
- package/dist/filters/multiselect-filter.js.map +1 -1
- package/dist/filters/numeric-filter-extended/numeric-extended-operators.js +2 -6
- package/dist/filters/numeric-filter-extended/numeric-extended-operators.js.map +1 -1
- package/dist/filters/numeric-filter-extended/numeric-filter-extended.js +13 -16
- package/dist/filters/numeric-filter-extended/numeric-filter-extended.js.map +1 -1
- package/dist/filters/range-filter/range-filter.js +20 -45
- package/dist/filters/range-filter/range-filter.js.map +1 -1
- package/dist/filters/standard-filter-with-multiselect/filter-cell-ext.js +16 -38
- package/dist/filters/standard-filter-with-multiselect/filter-cell-ext.js.map +1 -1
- package/dist/filters/standard-filter-with-multiselect/multiselect-operators.js +2 -6
- package/dist/filters/standard-filter-with-multiselect/multiselect-operators.js.map +1 -1
- package/dist/filters/standard-filter-with-multiselect/standard-filter-with-multiselect.js +12 -16
- 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 +8 -12
- package/dist/filters/standard-filter-with-multiselect/table-column-menu-filter-ext.js.map +1 -1
- package/dist/filters/time-filter/time-filter.js +17 -39
- package/dist/filters/time-filter/time-filter.js.map +1 -1
- package/dist/index.js +8 -29
- package/dist/index.js.map +1 -1
- package/dist/select-cell/index.js +1 -13
- package/dist/select-cell/index.js.map +1 -1
- package/dist/select-cell/select-cell.js +10 -35
- package/dist/select-cell/select-cell.js.map +1 -1
- package/dist/table-state.js +63 -68
- package/dist/table-state.js.map +1 -1
- package/dist/table.js +35 -60
- package/dist/table.js.map +1 -1
- package/package.json +16 -15
package/dist/table.js
CHANGED
@@ -1,29 +1,9 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
-
}) : (function(o, m, k, k2) {
|
6
|
-
if (k2 === undefined) k2 = k;
|
7
|
-
o[k2] = m[k];
|
8
|
-
}));
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
11
|
-
}) : function(o, v) {
|
12
|
-
o["default"] = v;
|
13
|
-
});
|
14
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
15
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
16
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
17
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
18
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
19
6
|
};
|
20
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
21
|
-
if (mod && mod.__esModule) return mod;
|
22
|
-
var result = {};
|
23
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
24
|
-
__setModuleDefault(result, mod);
|
25
|
-
return result;
|
26
|
-
};
|
27
7
|
var __rest = (this && this.__rest) || function (s, e) {
|
28
8
|
var t = {};
|
29
9
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
@@ -35,35 +15,30 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
35
15
|
}
|
36
16
|
return t;
|
37
17
|
};
|
38
|
-
|
39
|
-
|
40
|
-
};
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
const
|
51
|
-
const select_cell_1 = require("./select-cell/select-cell");
|
52
|
-
const memoize_one_1 = __importDefault(require("memoize-one"));
|
53
|
-
const classnames_1 = __importDefault(require("classnames"));
|
54
|
-
const Styles = __importStar(require("./table.module.css"));
|
55
|
-
const { text: textOperators } = filterCommon_1.operators, operators = __rest(filterCommon_1.operators, ["text"]);
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
19
|
+
import { isValidElement, Component, createRef, cloneElement, Children, Fragment, } from 'react';
|
20
|
+
import { Announcement, Table as AnvilTable, TableColumn, } from '@servicetitan/design-system';
|
21
|
+
import { operators as kendoOperators } from '@progress/kendo-react-grid/dist/npm/filterCommon';
|
22
|
+
import { GridPDFExport as TablePDFExport } from '@progress/kendo-react-pdf';
|
23
|
+
import { ExcelExport } from '@progress/kendo-react-excel-export';
|
24
|
+
import { observer } from 'mobx-react';
|
25
|
+
import { AsyncDataSource } from '@servicetitan/data-query';
|
26
|
+
import { SelectColumnCell, SelectHeaderCell, } from './select-cell/select-cell';
|
27
|
+
import memoizeOne from 'memoize-one';
|
28
|
+
import classNames from 'classnames';
|
29
|
+
import * as Styles from './table.module.css';
|
30
|
+
const { text: textOperators } = kendoOperators, operators = __rest(kendoOperators, ["text"]);
|
56
31
|
operators.text = [
|
57
32
|
...textOperators.filter(o => o.operator !== 'isnull' && o.operator !== 'isnotnull'),
|
58
33
|
];
|
59
34
|
function isColumnElement(element) {
|
60
|
-
if (!
|
35
|
+
if (!isValidElement(element)) {
|
61
36
|
return false;
|
62
37
|
}
|
63
38
|
const elementType = element.type;
|
64
|
-
return elementType ===
|
39
|
+
return elementType === TableColumn || elementType.originalType === TableColumn;
|
65
40
|
}
|
66
|
-
let Table = class Table extends
|
41
|
+
let Table = class Table extends Component {
|
67
42
|
constructor() {
|
68
43
|
super(...arguments);
|
69
44
|
Object.defineProperty(this, "tableState", {
|
@@ -76,7 +51,7 @@ let Table = class Table extends react_1.Component {
|
|
76
51
|
enumerable: true,
|
77
52
|
configurable: true,
|
78
53
|
writable: true,
|
79
|
-
value:
|
54
|
+
value: createRef()
|
80
55
|
});
|
81
56
|
Object.defineProperty(this, "lastSelection", {
|
82
57
|
enumerable: true,
|
@@ -88,17 +63,17 @@ let Table = class Table extends react_1.Component {
|
|
88
63
|
enumerable: true,
|
89
64
|
configurable: true,
|
90
65
|
writable: true,
|
91
|
-
value:
|
66
|
+
value: observer((props) => (_jsx(SelectColumnCell, Object.assign({}, props, { isRowSelectable: this.tableState.isRowSelectable(props.dataItem), control: this.props.selectionControl }), void 0)))
|
92
67
|
});
|
93
68
|
Object.defineProperty(this, "selectHeaderCell", {
|
94
69
|
enumerable: true,
|
95
70
|
configurable: true,
|
96
71
|
writable: true,
|
97
|
-
value:
|
72
|
+
value: observer((props) => {
|
98
73
|
if (this.props.hideSelectAll || this.tableState.selectionLimit !== Infinity) {
|
99
74
|
return null;
|
100
75
|
}
|
101
|
-
return ((
|
76
|
+
return (_jsx(SelectHeaderCell, Object.assign({}, props, { isSomeRowsSelected: this.props.scrollable !== 'virtual'
|
102
77
|
? this.tableState.isSomePageRowsSelected
|
103
78
|
: this.tableState.isSomeRowsSelected, control: this.props.selectionControl }), void 0));
|
104
79
|
})
|
@@ -108,11 +83,11 @@ let Table = class Table extends react_1.Component {
|
|
108
83
|
enumerable: true,
|
109
84
|
configurable: true,
|
110
85
|
writable: true,
|
111
|
-
value: (
|
86
|
+
value: memoizeOne((children) => this.applyToColumns(children, column => {
|
112
87
|
const { cell: Cell } = column.props;
|
113
|
-
return
|
88
|
+
return cloneElement(column, {
|
114
89
|
cell: Cell &&
|
115
|
-
((props) => ((
|
90
|
+
((props) => (_jsx(Cell, Object.assign({}, props, { tableState: this.tableState }), void 0))),
|
116
91
|
});
|
117
92
|
}))
|
118
93
|
});
|
@@ -125,9 +100,9 @@ let Table = class Table extends react_1.Component {
|
|
125
100
|
if (this.props.selectable &&
|
126
101
|
rowProps.rowType === 'data' &&
|
127
102
|
!this.tableState.isRowSelectable(rowProps.dataItem)) {
|
128
|
-
overrides.className = (
|
103
|
+
overrides.className = classNames(row.props.className, Styles.disabled);
|
129
104
|
}
|
130
|
-
const result = Object.keys(overrides).length ?
|
105
|
+
const result = Object.keys(overrides).length ? cloneElement(row, overrides) : row;
|
131
106
|
return this.props.rowRender ? this.props.rowRender(result, rowProps) : result;
|
132
107
|
}
|
133
108
|
});
|
@@ -213,32 +188,32 @@ let Table = class Table extends react_1.Component {
|
|
213
188
|
writable: true,
|
214
189
|
value: () => {
|
215
190
|
const _a = this.props, { className, filterOperators, selectable, pager } = _a, props = __rest(_a, ["className", "filterOperators", "selectable", "pager"]);
|
216
|
-
return ((
|
191
|
+
return (_jsxs(AnvilTable, 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: classNames(Styles.table, className), selectable: { enabled: selectable, mode: 'multiple' } }, { children: [selectable && (_jsx(TableColumn, { locked: true, field: "selected", width: "50px", filterable: false, resizable: false, headerSelectionValue: props.scrollable !== 'virtual'
|
217
192
|
? this.tableState.isAllPageRowsSelected
|
218
|
-
: this.tableState.isAllRowsSelected, headerCell: this.selectHeaderCell, cell: this.selectColumnCell, headerClassName: "lh-1-i ta-center-i", className: (
|
193
|
+
: this.tableState.isAllRowsSelected, headerCell: this.selectHeaderCell, cell: this.selectColumnCell, headerClassName: "lh-1-i ta-center-i", className: classNames(Styles.unselectable, 'lh-1-i', 'ta-center-i') }, void 0)), this.withCellTableState(props.children)] }), void 0));
|
219
194
|
}
|
220
195
|
});
|
221
196
|
}
|
222
197
|
applyToColumns(children, transformer) {
|
223
|
-
return
|
198
|
+
return Children.map(children, child => {
|
224
199
|
if (!isColumnElement(child)) {
|
225
200
|
return child;
|
226
201
|
}
|
227
202
|
return child.props.children
|
228
|
-
?
|
203
|
+
? cloneElement(transformer(child), {
|
229
204
|
children: this.applyToColumns(child.props.children, transformer),
|
230
205
|
})
|
231
206
|
: transformer(child);
|
232
207
|
});
|
233
208
|
}
|
234
209
|
render() {
|
235
|
-
if (this.tableState.dataSource instanceof
|
210
|
+
if (this.tableState.dataSource instanceof AsyncDataSource &&
|
236
211
|
this.props.scrollable === 'virtual' &&
|
237
212
|
this.props.selectable) {
|
238
|
-
return ((
|
213
|
+
return (_jsx(Announcement, { status: "critical", title: "AsyncDataSource doesn't support virtual scroll with selection." }, void 0));
|
239
214
|
}
|
240
215
|
const table = this.table();
|
241
|
-
return ((
|
216
|
+
return (_jsxs(Fragment, { children: [table, this.props.exportable && (_jsxs(Fragment, { children: [_jsxs(TablePDFExport, Object.assign({ ref: this.tableState.setTablePdfExportRef, fileName: sanitizeExportFileName(this.props.exportFileName) }, { children: [this.props.children, table] }), void 0), _jsx(ExcelExport, Object.assign({ ref: this.tableState.setTableExcelExportRef, fileName: sanitizeExportFileName(this.props.exportFileName) }, { children: this.props.children }), void 0)] }, void 0))] }, void 0));
|
242
217
|
}
|
243
218
|
getPageable() {
|
244
219
|
var _a;
|
@@ -249,8 +224,8 @@ let Table = class Table extends react_1.Component {
|
|
249
224
|
}
|
250
225
|
};
|
251
226
|
Table = __decorate([
|
252
|
-
|
227
|
+
observer
|
253
228
|
], Table);
|
254
|
-
|
255
|
-
const sanitizeExportFileName = (
|
229
|
+
export { Table };
|
230
|
+
const sanitizeExportFileName = memoizeOne((fileName) => fileName === null || fileName === void 0 ? void 0 : fileName.replace(/\.+/g, '_'));
|
256
231
|
//# sourceMappingURL=table.js.map
|
package/dist/table.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../src/table.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../src/table.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAO,EACH,cAAc,EACd,SAAS,EACT,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,QAAQ,GAKX,MAAM,OAAO,CAAC;AACf,OAAO,EACH,YAAY,EACZ,KAAK,IAAI,UAAU,EAGnB,WA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AAC,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;AAnQY,KAAK;IADjB,QAAQ;GACI,KAAK,CAmQjB;SAnQY,KAAK;AAqQlB,MAAM,sBAAsB,GAAG,UAAU,CAAC,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": "20.0.1",
|
4
4
|
"description": "",
|
5
5
|
"homepage": "https://docs.st.dev/docs/frontend/table",
|
6
6
|
"repository": {
|
@@ -10,6 +10,7 @@
|
|
10
10
|
},
|
11
11
|
"main": "./dist/index.js",
|
12
12
|
"typings": "./dist/index.d.ts",
|
13
|
+
"sideEffects": false,
|
13
14
|
"files": [
|
14
15
|
"dist",
|
15
16
|
"src"
|
@@ -35,30 +36,30 @@
|
|
35
36
|
"memoize-one": "~5.2.1"
|
36
37
|
},
|
37
38
|
"devDependencies": {
|
38
|
-
"@servicetitan/data-query": "^
|
39
|
-
"@servicetitan/design-system": "~
|
40
|
-
"@servicetitan/form": "^
|
41
|
-
"@servicetitan/react-ioc": "^
|
42
|
-
"@servicetitan/suppress-warnings": "^
|
39
|
+
"@servicetitan/data-query": "^20.0.1",
|
40
|
+
"@servicetitan/design-system": "~11.1.0",
|
41
|
+
"@servicetitan/form": "^20.0.1",
|
42
|
+
"@servicetitan/react-ioc": "^20.0.1",
|
43
|
+
"@servicetitan/suppress-warnings": "^20.0.1",
|
43
44
|
"@types/accounting": "~0.4.2",
|
44
|
-
"@types/react": "~17.0.
|
45
|
+
"@types/react": "~17.0.38",
|
45
46
|
"accounting": "~0.4.1",
|
46
47
|
"formstate": "~2.0.0",
|
47
|
-
"mobx": "~6.3.
|
48
|
+
"mobx": "~6.3.12",
|
48
49
|
"mobx-react": "~7.2.1",
|
49
50
|
"mobx-utils": "~6.0.4",
|
50
51
|
"moment": "~2.29.1",
|
51
52
|
"react": "~17.0.2"
|
52
53
|
},
|
53
54
|
"peerDependencies": {
|
54
|
-
"@servicetitan/data-query": "^
|
55
|
-
"@servicetitan/design-system": "~
|
56
|
-
"@servicetitan/form": "^
|
57
|
-
"@servicetitan/react-ioc": "^
|
58
|
-
"@servicetitan/suppress-warnings": "^
|
55
|
+
"@servicetitan/data-query": "^20.0.0",
|
56
|
+
"@servicetitan/design-system": "~11.1.0",
|
57
|
+
"@servicetitan/form": "^20.0.0",
|
58
|
+
"@servicetitan/react-ioc": "^20.0.0",
|
59
|
+
"@servicetitan/suppress-warnings": "^20.0.0",
|
59
60
|
"accounting": "~0.4.1",
|
60
61
|
"formstate": "~2.0.0",
|
61
|
-
"mobx": "~6.3.
|
62
|
+
"mobx": "~6.3.12",
|
62
63
|
"mobx-react": "~7.2.1",
|
63
64
|
"mobx-utils": "~6.0.4",
|
64
65
|
"moment": "~2.29.1",
|
@@ -70,5 +71,5 @@
|
|
70
71
|
"cli": {
|
71
72
|
"webpack": false
|
72
73
|
},
|
73
|
-
"gitHead": "
|
74
|
+
"gitHead": "0c0dc470ff92789389bbb96a8e867ecd439a1509"
|
74
75
|
}
|