@servicetitan/table 22.4.5 → 23.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +33 -0
- package/dist/demo/column-hiding/index.d.ts +2 -0
- package/dist/demo/column-hiding/index.d.ts.map +1 -0
- package/dist/demo/column-hiding/index.js +2 -0
- package/dist/demo/column-hiding/index.js.map +1 -0
- package/dist/demo/column-hiding/product.d.ts +27 -0
- package/dist/demo/column-hiding/product.d.ts.map +1 -0
- package/dist/demo/column-hiding/product.js +16 -0
- package/dist/demo/column-hiding/product.js.map +1 -0
- package/dist/demo/column-hiding/products.d.ts +3 -0
- package/dist/demo/column-hiding/products.d.ts.map +1 -0
- package/dist/demo/column-hiding/products.js +127 -0
- package/dist/demo/column-hiding/products.js.map +1 -0
- package/dist/demo/column-hiding/table.d.ts +3 -0
- package/dist/demo/column-hiding/table.d.ts.map +1 -0
- package/dist/demo/column-hiding/table.js +63 -0
- package/dist/demo/column-hiding/table.js.map +1 -0
- package/dist/demo/column-hiding/table.store.d.ts +9 -0
- package/dist/demo/column-hiding/table.store.d.ts.map +1 -0
- package/dist/demo/column-hiding/table.store.js +44 -0
- package/dist/demo/column-hiding/table.store.js.map +1 -0
- package/dist/demo/index.d.ts +1 -0
- package/dist/demo/index.d.ts.map +1 -1
- package/dist/demo/index.js +1 -0
- package/dist/demo/index.js.map +1 -1
- package/dist/filters/standard-filter-with-multiselect/filter-cell-ext.d.ts +1 -1
- package/dist/filters/standard-filter-with-multiselect/filter-cell-ext.d.ts.map +1 -1
- package/dist/table-state.d.ts +3 -1
- package/dist/table-state.d.ts.map +1 -1
- package/dist/table-state.js +8 -1
- package/dist/table-state.js.map +1 -1
- package/dist/table.d.ts +3 -1
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +28 -4
- package/dist/table.js.map +1 -1
- package/package.json +24 -24
- package/src/demo/column-hiding/index.ts +1 -0
- package/src/demo/column-hiding/product.ts +28 -0
- package/src/demo/column-hiding/products.ts +127 -0
- package/src/demo/column-hiding/table.store.ts +26 -0
- package/src/demo/column-hiding/table.tsx +118 -0
- package/src/demo/index.ts +1 -0
- package/src/filters/standard-filter-with-multiselect/filter-cell-ext.tsx +1 -1
- package/src/table-state.ts +18 -2
- package/src/table.stories.tsx +15 -0
- package/src/table.tsx +29 -6
package/dist/table-state.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"table-state.js","sourceRoot":"","sources":["../src/table-state.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AA0BzC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AASnD,MAAM,UAAU,WAAW,CACvB,IAAwB,EACxB,MAAyB;IAEzB,MAAM,KAAK,GAAwB,IAAuB,CAAC,KAAK,CAAC;IAEjE,OAAO,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAS,qBAAqB,CAAC,MAAyB,EAAE,UAAiC;IACvF,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,iCACpB,KAAK,KACR,UAAU,IACZ,CAAC,CAAC;AACR,CAAC;AA4ED,MAAM,OAAO,UAAU;IAwHnB,YAAY,EACR,UAAU,GAAG,IAAI,EACjB,QAAQ,EACR,iBAAiB,GAAG,GAAG,EAAE,CAAC,KAAK,EAC/B,cAAc,GAAG,QAAQ,EACzB,YAAY,EACZ,MAAM,EACN,mBAAmB,EACnB,YAAY,EACZ,cAAc,GAAG,KAAK,MACuB,EAAE;QAjIvC;;;;;WAAmD;QAwC/D;;;;;WAGE;QACF;;;;;WAA6E;QAEjE;;;;mBAAc,IAAI,GAAG,EAAO;WAAC;QAC7B;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;AAES;IAAT,QAAQ;;;2DAER;AAES;IAAT,QAAQ;;;yDAER;AAGD;IADC,QAAQ;;;qEAqBR;AAES;IAAT,QAAQ;;;8DAER;AAEW;IAAX,UAAU;;wCAA6B;AAC5B;IAAX,UAAU;;0CAA+C;AAE9C;IAAX,UAAU;;8CAAwC;AAEvC;IAAX,UAAU;;8CAAoC;AAG/C;IADC,QAAQ;;;uCAGR;AAMW;IAAX,UAAU;;wCAAU;AACT;IAAX,UAAU;;4CAAmB;AAiH9B;IADC,MAAM;;;;kDAuDN;AAmCD;IADC,MAAM;;;;sCAoBN;AAGD;IADC,MAAM;;;;0CAoCN;AAGD;IADC,MAAM;;;;4CAiBN;AAkED;IADC,MAAM;;;;+CAaN;AAEO;IAAP,MAAM;;;;uCAaN;AAGD;IADC,MAAM;;;;+CAyBN;AAGD;IADC,MAAM;;oDAsBL;AAkEF;IADC,MAAM;;sDAKL;AAGF;IADC,MAAM;;qDAOL;AAGF;IADC,MAAM;;sDA2BL;AAGF;IADC,MAAM;;oDAKL;AAGF;IADC,MAAM;;oDAYL;AA6FF;IADC,MAAM;;;;oDAeN;AAES;IAAT,QAAQ;;;uDAKR;AAES;IAAT,QAAQ;;;wDAER;AAES;IAAT,QAAQ;;;mDAMR;AAES;IAAT,QAAQ;;;oDAMR;AAgFD;IADC,MAAM;;;;6CAUN"}
|
package/dist/table.d.ts
CHANGED
@@ -10,7 +10,7 @@ interface TableColumnProps<T = never, TId extends IdType = any, P = never, PId e
|
|
10
10
|
cell?: ComponentType<TableCellProps<T, TId, P, PId>>;
|
11
11
|
children?: ReactElement<TableColumnProps<T, TId, P, PId>>[];
|
12
12
|
}
|
13
|
-
declare type ExcludedTableProps = 'data' | 'editField' | 'filter' | 'onFilterChange' | 'group' | 'onGroupChange' | 'onExpandChange' | 'expandField' | 'sort' | 'onSortChange' | 'onHeaderSelectionChange' | 'onSelectionChange' | 'selectedField' | 'pageable' | 'pageSize' | 'skip' | 'onPageChange' | 'total' | 'selectable' | 'pager';
|
13
|
+
declare type ExcludedTableProps = 'data' | 'dataItemKey' | '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> {
|
15
15
|
selectable?: boolean;
|
16
16
|
exportable?: boolean;
|
@@ -25,6 +25,7 @@ export declare class Table<T, TId extends IdType = any, P = never, PId extends I
|
|
25
25
|
private ref;
|
26
26
|
private lastSelection?;
|
27
27
|
private selectColumnCell;
|
28
|
+
private customCellMap;
|
28
29
|
private selectHeaderCell;
|
29
30
|
private withCellTableState;
|
30
31
|
rowRender: (row: ReactElement, rowProps: TableRowProps) => ReactNode;
|
@@ -35,6 +36,7 @@ export declare class Table<T, TId extends IdType = any, P = never, PId extends I
|
|
35
36
|
render(): JSX.Element;
|
36
37
|
private getPageable;
|
37
38
|
private table;
|
39
|
+
private getOrCreateCellComponentWithTableState;
|
38
40
|
}
|
39
41
|
export {};
|
40
42
|
//# sourceMappingURL=table.d.ts.map
|
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,E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C,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;IACxC,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC9B;AAED,qBACa,KAAK,CACd,CAAC,EACD,GAAG,SAAS,MAAM,GAAG,GAAG,EACxB,CAAC,GAAG,KAAK,EACT,GAAG,SAAS,MAAM,GAAG,KAAK,CAC5B,SAAQ,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;IAC3C,OAAO,CAAC,UAAU,CAAyB;IAE3C,OAAO,CAAC,GAAG,CAA4B;IAEvC,OAAO,CAAC,aAAa,CAAC,CAAgB;IAEtC,OAAO,CAAC,gBAAgB,CAMrB;IAEH,OAAO,CAAC,aAAa,CAAyD;IAE9E,OAAO,CAAC,gBAAgB,CAgBrB;IAGH,OAAO,CAAC,kBAAkB,CAQxB;IAEF,SAAS,QAAS,YAAY,YAAY,aAAa,eAcrD;IAEF,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,UAuCpD;IAEF,cAAc,aAQZ;IAEF,MAAM;IAuCN,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,KAAK,CAqDX;IAEF,OAAO,CAAC,sCAAsC,CAoB5C;CACL"}
|
package/dist/table.js
CHANGED
@@ -65,6 +65,12 @@ let Table = class Table extends Component {
|
|
65
65
|
writable: true,
|
66
66
|
value: observer((props) => (_jsx(SelectColumnCell, Object.assign({}, props, { isRowSelectable: this.tableState.isRowSelectable(props.dataItem), control: this.props.selectionControl }))))
|
67
67
|
});
|
68
|
+
Object.defineProperty(this, "customCellMap", {
|
69
|
+
enumerable: true,
|
70
|
+
configurable: true,
|
71
|
+
writable: true,
|
72
|
+
value: new Map()
|
73
|
+
});
|
68
74
|
Object.defineProperty(this, "selectHeaderCell", {
|
69
75
|
enumerable: true,
|
70
76
|
configurable: true,
|
@@ -84,10 +90,9 @@ let Table = class Table extends Component {
|
|
84
90
|
configurable: true,
|
85
91
|
writable: true,
|
86
92
|
value: memoizeOne((children) => this.applyToColumns(children, column => {
|
87
|
-
const { cell: Cell } = column.props;
|
93
|
+
const { cell: Cell, field } = column.props;
|
88
94
|
return cloneElement(column, {
|
89
|
-
cell: Cell
|
90
|
-
((props) => (_jsx(Cell, Object.assign({}, props, { tableState: this.tableState })))),
|
95
|
+
cell: this.getOrCreateCellComponentWithTableState(Cell, field),
|
91
96
|
});
|
92
97
|
}))
|
93
98
|
});
|
@@ -188,11 +193,30 @@ let Table = class Table extends Component {
|
|
188
193
|
writable: true,
|
189
194
|
value: () => {
|
190
195
|
const _a = this.props, { className, filterOperators, selectable, pager } = _a, props = __rest(_a, ["className", "filterOperators", "selectable", "pager"]);
|
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'
|
196
|
+
return (_jsxs(AnvilTable, Object.assign({ ref: this.ref }, props, { dataItemKey: this.tableState.rowIdKey, 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", id: "selected", width: "50px", filterable: false, resizable: false, headerSelectionValue: props.scrollable !== 'virtual'
|
192
197
|
? this.tableState.isAllPageRowsSelected
|
193
198
|
: 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') })), this.withCellTableState(props.children)] })));
|
194
199
|
}
|
195
200
|
});
|
201
|
+
Object.defineProperty(this, "getOrCreateCellComponentWithTableState", {
|
202
|
+
enumerable: true,
|
203
|
+
configurable: true,
|
204
|
+
writable: true,
|
205
|
+
value: (Cell, field) => {
|
206
|
+
if (!Cell) {
|
207
|
+
return undefined;
|
208
|
+
}
|
209
|
+
const CellWithTableState = (props) => _jsx(Cell, Object.assign({}, props, { tableState: this.tableState }));
|
210
|
+
CellWithTableState.displayName = 'CellWithTableState';
|
211
|
+
if (field) {
|
212
|
+
if (this.customCellMap.has(field)) {
|
213
|
+
return this.customCellMap.get(field);
|
214
|
+
}
|
215
|
+
this.customCellMap.set(field, CellWithTableState);
|
216
|
+
}
|
217
|
+
return CellWithTableState;
|
218
|
+
}
|
219
|
+
});
|
196
220
|
}
|
197
221
|
applyToColumns(children, transformer) {
|
198
222
|
return Children.map(children, child => {
|
package/dist/table.js.map
CHANGED
@@ -1 +1 @@
|
|
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,WAAW,GAOd,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAC/F,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAU,MAAM,0BAA0B,CAAC;AAEnE,OAAO,EAEH,gBAAgB,EAChB,gBAAgB,GACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,MAAM,EAAE,IAAI,EAAE,aAAa,KAAmB,cAAc,EAA5B,SAAS,UAAK,cAAc,EAAtD,QAAqC,CAAiB,CAAC;AAC7D,SAAS,CAAC,IAAI,GAAG;IACb,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,QAAQ,IAAI,CAAC,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P,CACd,IACM,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;CA8EJ,CAAA;AAzRY,KAAK;IADjB,QAAQ;GACI,KAAK,CAyRjB;SAzRY,KAAK;AA2RlB,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": "23.0.0",
|
4
4
|
"description": "",
|
5
5
|
"homepage": "https://docs.st.dev/docs/frontend/table",
|
6
6
|
"repository": {
|
@@ -16,35 +16,35 @@
|
|
16
16
|
"src"
|
17
17
|
],
|
18
18
|
"dependencies": {
|
19
|
-
"@progress/kendo-data-query": "~1.
|
20
|
-
"@progress/kendo-drawing": "~1.
|
19
|
+
"@progress/kendo-data-query": "~1.6.0",
|
20
|
+
"@progress/kendo-drawing": "~1.17.1",
|
21
21
|
"@progress/kendo-licensing": "~1.2.0",
|
22
22
|
"@progress/kendo-ooxml": "~1.6.2",
|
23
|
-
"@progress/kendo-react-animation": "~
|
24
|
-
"@progress/kendo-react-buttons": "~
|
25
|
-
"@progress/kendo-react-data-tools": "~
|
26
|
-
"@progress/kendo-react-dateinputs": "~
|
27
|
-
"@progress/kendo-react-dropdowns": "~
|
28
|
-
"@progress/kendo-react-excel-export": "~
|
29
|
-
"@progress/kendo-react-grid": "~
|
30
|
-
"@progress/kendo-react-inputs": "~
|
31
|
-
"@progress/kendo-react-intl": "~
|
32
|
-
"@progress/kendo-react-pdf": "~
|
33
|
-
"@progress/kendo-react-popup": "~
|
34
|
-
"@progress/kendo-react-treeview": "~
|
23
|
+
"@progress/kendo-react-animation": "~5.5.0",
|
24
|
+
"@progress/kendo-react-buttons": "~5.5.0",
|
25
|
+
"@progress/kendo-react-data-tools": "~5.5.0",
|
26
|
+
"@progress/kendo-react-dateinputs": "~5.5.0",
|
27
|
+
"@progress/kendo-react-dropdowns": "~5.5.0",
|
28
|
+
"@progress/kendo-react-excel-export": "~5.5.0",
|
29
|
+
"@progress/kendo-react-grid": "~5.5.0",
|
30
|
+
"@progress/kendo-react-inputs": "~5.5.0",
|
31
|
+
"@progress/kendo-react-intl": "~5.5.0",
|
32
|
+
"@progress/kendo-react-pdf": "~5.5.0",
|
33
|
+
"@progress/kendo-react-popup": "~5.5.0",
|
34
|
+
"@progress/kendo-react-treeview": "~5.5.0",
|
35
35
|
"classnames": "~2.3.1",
|
36
36
|
"memoize-one": "~6.0.0"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@servicetitan/data-query": "^
|
40
|
-
"@servicetitan/design-system": "
|
41
|
-
"@servicetitan/form": "^
|
39
|
+
"@servicetitan/data-query": "^23.0.0",
|
40
|
+
"@servicetitan/design-system": ">=12.4.1",
|
41
|
+
"@servicetitan/form": "^23.0.0",
|
42
42
|
"@servicetitan/react-ioc": "^21.6.0",
|
43
43
|
"@servicetitan/suppress-warnings": "^21.6.0",
|
44
44
|
"@types/accounting": "~0.4.2",
|
45
45
|
"@types/react": "~17.0.38",
|
46
46
|
"accounting": "~0.4.1",
|
47
|
-
"formstate": "~2.
|
47
|
+
"formstate": "~2.1.0",
|
48
48
|
"mobx": "~6.6.0",
|
49
49
|
"mobx-react": "~7.5.0",
|
50
50
|
"mobx-utils": "~6.0.5",
|
@@ -52,13 +52,13 @@
|
|
52
52
|
"react": "~17.0.2"
|
53
53
|
},
|
54
54
|
"peerDependencies": {
|
55
|
-
"@servicetitan/data-query": "^
|
56
|
-
"@servicetitan/design-system": "
|
57
|
-
"@servicetitan/form": "^
|
55
|
+
"@servicetitan/data-query": "^23.0.0",
|
56
|
+
"@servicetitan/design-system": ">=12.4.1",
|
57
|
+
"@servicetitan/form": "^23.0.0",
|
58
58
|
"@servicetitan/react-ioc": ">21.0.0",
|
59
59
|
"@servicetitan/suppress-warnings": ">21.0.0",
|
60
60
|
"accounting": "~0.4.1",
|
61
|
-
"formstate": "~2.
|
61
|
+
"formstate": "~2.1.0",
|
62
62
|
"mobx": "~6.6.0",
|
63
63
|
"mobx-react": "~7.5.0",
|
64
64
|
"mobx-utils": "~6.0.5",
|
@@ -71,5 +71,5 @@
|
|
71
71
|
"cli": {
|
72
72
|
"webpack": false
|
73
73
|
},
|
74
|
-
"gitHead": "
|
74
|
+
"gitHead": "c29a739a4437e2bb2a91805e01d34858fe0c7425"
|
75
75
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './table';
|
@@ -0,0 +1,28 @@
|
|
1
|
+
export enum UserRole {
|
2
|
+
Unspecified,
|
3
|
+
Technician,
|
4
|
+
GeneralOffice,
|
5
|
+
Admin,
|
6
|
+
Owner,
|
7
|
+
}
|
8
|
+
|
9
|
+
export enum Supplier {
|
10
|
+
Dan = 1,
|
11
|
+
Adam,
|
12
|
+
Charlie,
|
13
|
+
Benjamin,
|
14
|
+
}
|
15
|
+
|
16
|
+
export interface Product {
|
17
|
+
ProductID: number;
|
18
|
+
ProductName: string;
|
19
|
+
Supplier: Supplier;
|
20
|
+
CategoryID: number;
|
21
|
+
MadeIn: string;
|
22
|
+
QuantityPerUnit: string;
|
23
|
+
UnitPrice: number;
|
24
|
+
UnitsInStock: number;
|
25
|
+
UnitsOnOrder: Date;
|
26
|
+
Discontinued: boolean;
|
27
|
+
AvailableFor?: UserRole;
|
28
|
+
}
|
@@ -0,0 +1,127 @@
|
|
1
|
+
import { Product, UserRole, Supplier } from './product';
|
2
|
+
|
3
|
+
export const products: Product[] = [
|
4
|
+
{
|
5
|
+
ProductID: 101,
|
6
|
+
ProductName: 'Chai',
|
7
|
+
Supplier: Supplier.Dan,
|
8
|
+
CategoryID: 1,
|
9
|
+
MadeIn: 'China',
|
10
|
+
QuantityPerUnit: '10 boxes x 20 bags',
|
11
|
+
UnitPrice: 18.0,
|
12
|
+
UnitsInStock: 39,
|
13
|
+
UnitsOnOrder: new Date('1/11/2019'),
|
14
|
+
Discontinued: false,
|
15
|
+
AvailableFor: UserRole.Admin,
|
16
|
+
},
|
17
|
+
{
|
18
|
+
ProductID: 102,
|
19
|
+
ProductName: 'Chang',
|
20
|
+
Supplier: Supplier.Dan,
|
21
|
+
CategoryID: 1,
|
22
|
+
MadeIn: 'Thailand',
|
23
|
+
QuantityPerUnit: '24 - 12 oz bottles',
|
24
|
+
UnitPrice: 19.0,
|
25
|
+
UnitsInStock: 17,
|
26
|
+
UnitsOnOrder: new Date('2/11/2019'),
|
27
|
+
Discontinued: false,
|
28
|
+
},
|
29
|
+
{
|
30
|
+
ProductID: 103,
|
31
|
+
ProductName: 'Aniseed Syrup',
|
32
|
+
Supplier: Supplier.Dan,
|
33
|
+
CategoryID: 2,
|
34
|
+
MadeIn: 'France',
|
35
|
+
QuantityPerUnit: '12 - 550 ml bottles',
|
36
|
+
UnitPrice: 10.0,
|
37
|
+
UnitsInStock: 13,
|
38
|
+
UnitsOnOrder: new Date('3/11/2019'),
|
39
|
+
Discontinued: false,
|
40
|
+
AvailableFor: UserRole.Owner,
|
41
|
+
},
|
42
|
+
{
|
43
|
+
ProductID: 104,
|
44
|
+
ProductName: "Chef Anton's Cajun Seasoning",
|
45
|
+
Supplier: Supplier.Adam,
|
46
|
+
CategoryID: 2,
|
47
|
+
MadeIn: 'USA',
|
48
|
+
QuantityPerUnit: '48 - 6 oz jars',
|
49
|
+
UnitPrice: 22.0,
|
50
|
+
UnitsInStock: 53,
|
51
|
+
UnitsOnOrder: new Date('4/11/2019'),
|
52
|
+
Discontinued: false,
|
53
|
+
},
|
54
|
+
{
|
55
|
+
ProductID: 105,
|
56
|
+
ProductName: "Chef Anton's Gumbo Mix",
|
57
|
+
Supplier: Supplier.Adam,
|
58
|
+
CategoryID: 2,
|
59
|
+
MadeIn: 'USA',
|
60
|
+
QuantityPerUnit: '36 boxes',
|
61
|
+
UnitPrice: 21.35,
|
62
|
+
UnitsInStock: 0,
|
63
|
+
UnitsOnOrder: new Date('5/11/2019'),
|
64
|
+
Discontinued: true,
|
65
|
+
AvailableFor: UserRole.GeneralOffice,
|
66
|
+
},
|
67
|
+
{
|
68
|
+
ProductID: 106,
|
69
|
+
ProductName: "Grandma's Boysenberry Spread",
|
70
|
+
Supplier: Supplier.Charlie,
|
71
|
+
CategoryID: 2,
|
72
|
+
MadeIn: 'Norway',
|
73
|
+
QuantityPerUnit: '12 - 8 oz jars',
|
74
|
+
UnitPrice: 25.0,
|
75
|
+
UnitsInStock: 120,
|
76
|
+
UnitsOnOrder: new Date('6/11/2019'),
|
77
|
+
Discontinued: false,
|
78
|
+
},
|
79
|
+
{
|
80
|
+
ProductID: 107,
|
81
|
+
ProductName: "Uncle Bob's Organic Dried Pears",
|
82
|
+
Supplier: Supplier.Charlie,
|
83
|
+
CategoryID: 7,
|
84
|
+
MadeIn: 'USA',
|
85
|
+
QuantityPerUnit: '12 - 1 lb pkgs.',
|
86
|
+
UnitPrice: 30.0,
|
87
|
+
UnitsInStock: 15,
|
88
|
+
UnitsOnOrder: new Date('7/11/2019'),
|
89
|
+
Discontinued: false,
|
90
|
+
},
|
91
|
+
{
|
92
|
+
ProductID: 108,
|
93
|
+
ProductName: 'Northwoods Cranberry Sauce',
|
94
|
+
Supplier: Supplier.Charlie,
|
95
|
+
CategoryID: 2,
|
96
|
+
MadeIn: 'Norway',
|
97
|
+
QuantityPerUnit: '12 - 12 oz jars',
|
98
|
+
UnitPrice: 40.0,
|
99
|
+
UnitsInStock: 6,
|
100
|
+
UnitsOnOrder: new Date('8/11/2019'),
|
101
|
+
Discontinued: false,
|
102
|
+
},
|
103
|
+
{
|
104
|
+
ProductID: 109,
|
105
|
+
ProductName: 'Mishi Kobe Niku',
|
106
|
+
Supplier: Supplier.Benjamin,
|
107
|
+
CategoryID: 6,
|
108
|
+
MadeIn: 'Japan',
|
109
|
+
QuantityPerUnit: '18 - 500 g pkgs.',
|
110
|
+
UnitPrice: 97.0,
|
111
|
+
UnitsInStock: 29,
|
112
|
+
UnitsOnOrder: new Date('9/11/2019'),
|
113
|
+
Discontinued: true,
|
114
|
+
},
|
115
|
+
{
|
116
|
+
ProductID: 110,
|
117
|
+
ProductName: 'Ikura',
|
118
|
+
Supplier: Supplier.Benjamin,
|
119
|
+
CategoryID: 8,
|
120
|
+
MadeIn: 'Japan',
|
121
|
+
QuantityPerUnit: '12 - 200 ml jars',
|
122
|
+
UnitPrice: 31.0,
|
123
|
+
UnitsInStock: 31,
|
124
|
+
UnitsOnOrder: new Date('10/11/2019'),
|
125
|
+
Discontinued: false,
|
126
|
+
},
|
127
|
+
];
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { injectable } from '@servicetitan/react-ioc';
|
2
|
+
import { IdType, InMemoryDataSource, TableState } from '../..';
|
3
|
+
import { Product, UserRole, Supplier } from './product';
|
4
|
+
import { products } from './products';
|
5
|
+
|
6
|
+
@injectable()
|
7
|
+
export class TableStore {
|
8
|
+
rowIdKey: keyof Product = 'ProductID';
|
9
|
+
|
10
|
+
tableState = new TableState({
|
11
|
+
dataSource: this.getDataSource(),
|
12
|
+
pageSize: 5,
|
13
|
+
rowIdKey: this.rowIdKey,
|
14
|
+
});
|
15
|
+
|
16
|
+
private getDataSource() {
|
17
|
+
return new InMemoryDataSource(products, this.idSelector, {
|
18
|
+
Supplier: (value: Supplier) => Supplier[value],
|
19
|
+
AvailableFor: (value: UserRole | undefined) => value && UserRole[value],
|
20
|
+
});
|
21
|
+
}
|
22
|
+
|
23
|
+
private idSelector(row: Product) {
|
24
|
+
return row[this.rowIdKey] as IdType;
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,118 @@
|
|
1
|
+
import { Fragment, FC, memo, useCallback, useState } from 'react';
|
2
|
+
import { provide, useDependencies } from '@servicetitan/react-ioc';
|
3
|
+
import { observer } from 'mobx-react';
|
4
|
+
|
5
|
+
import { Table, TableColumn, TableCellProps } from '../..';
|
6
|
+
import { TableStore } from './table.store';
|
7
|
+
import { Supplier } from './product';
|
8
|
+
import { TableCell } from '@servicetitan/design-system';
|
9
|
+
|
10
|
+
const SupplierCell: FC<TableCellProps> = props => {
|
11
|
+
const { field, dataItem } = props;
|
12
|
+
|
13
|
+
return <td>{Supplier[dataItem[field!]]}</td>;
|
14
|
+
};
|
15
|
+
|
16
|
+
const columns = [
|
17
|
+
{ field: 'ProductID', title: 'ID', minWidth: 50 },
|
18
|
+
{ field: 'ProductName', title: 'Name', minWidth: 200 },
|
19
|
+
{ field: 'Supplier', title: 'Supplier', minWidth: 200 },
|
20
|
+
{ field: 'MadeIn', title: 'Made In', minWidth: 200 },
|
21
|
+
{ field: 'QuantityPerUnit', title: 'Quantity Per Unit', minWidth: 200 },
|
22
|
+
{ field: 'UnitPrice', title: 'Price', minWidth: 100 },
|
23
|
+
{ field: 'UnitsInStock', title: 'In stock', minWidth: 100 },
|
24
|
+
{ field: 'UnitsOnOrder', title: 'On Order', minWidth: 100 },
|
25
|
+
{ field: 'Discontinued', title: 'Discontinued', minWidth: 100 },
|
26
|
+
];
|
27
|
+
|
28
|
+
const CheckboxRow = memo(({ field, label, checked, onChange }: any) => {
|
29
|
+
const handleChange = useCallback(
|
30
|
+
event => {
|
31
|
+
onChange(field, event.target.checked);
|
32
|
+
},
|
33
|
+
[field, onChange]
|
34
|
+
);
|
35
|
+
|
36
|
+
return (
|
37
|
+
<div>
|
38
|
+
<label>
|
39
|
+
<input type="checkbox" checked={checked} onChange={handleChange} /> {label}
|
40
|
+
</label>
|
41
|
+
</div>
|
42
|
+
);
|
43
|
+
});
|
44
|
+
|
45
|
+
const HiddenColumns = ({ onChange, checkedColumns }: any) => {
|
46
|
+
const handleChange = useCallback(
|
47
|
+
(field: string, checked: boolean) => {
|
48
|
+
const newState = new Set(Array.from(checkedColumns));
|
49
|
+
if (checked) {
|
50
|
+
newState.add(field);
|
51
|
+
} else {
|
52
|
+
newState.delete(field);
|
53
|
+
}
|
54
|
+
onChange(newState);
|
55
|
+
},
|
56
|
+
[checkedColumns, onChange]
|
57
|
+
);
|
58
|
+
return (
|
59
|
+
<div>
|
60
|
+
<span>Select columns to hide</span>
|
61
|
+
<div>
|
62
|
+
{columns.map(col => (
|
63
|
+
<CheckboxRow
|
64
|
+
key={col.field}
|
65
|
+
field={col.field}
|
66
|
+
label={col.title}
|
67
|
+
onChange={handleChange}
|
68
|
+
checked={checkedColumns.has(col.field)}
|
69
|
+
/>
|
70
|
+
))}
|
71
|
+
</div>
|
72
|
+
</div>
|
73
|
+
);
|
74
|
+
};
|
75
|
+
|
76
|
+
const CellProvider = (props: TableCellProps) => {
|
77
|
+
if (props.field === 'Supplier') {
|
78
|
+
return <SupplierCell {...props} />;
|
79
|
+
}
|
80
|
+
return <TableCell {...props} />;
|
81
|
+
};
|
82
|
+
|
83
|
+
export const TableColumnHidingExample: FC = provide({
|
84
|
+
singletons: [TableStore],
|
85
|
+
})(
|
86
|
+
observer(() => {
|
87
|
+
const [{ tableState }] = useDependencies(TableStore);
|
88
|
+
const [hiddenColumns, setHiddenColumns] = useState(new Set());
|
89
|
+
|
90
|
+
const handleHiddenColumnsChange = useCallback(columns => {
|
91
|
+
setHiddenColumns(new Set([...columns]));
|
92
|
+
}, []);
|
93
|
+
|
94
|
+
return (
|
95
|
+
<Fragment>
|
96
|
+
<HiddenColumns
|
97
|
+
checkedColumns={hiddenColumns}
|
98
|
+
onChange={handleHiddenColumnsChange}
|
99
|
+
/>
|
100
|
+
<Table tableState={tableState} striped={false}>
|
101
|
+
{columns
|
102
|
+
.filter(col => !hiddenColumns.has(col.field))
|
103
|
+
.map(column => {
|
104
|
+
return (
|
105
|
+
<TableColumn
|
106
|
+
field={column.field}
|
107
|
+
title={column.title}
|
108
|
+
key={column.field}
|
109
|
+
id={column.field}
|
110
|
+
cell={CellProvider}
|
111
|
+
/>
|
112
|
+
);
|
113
|
+
})}
|
114
|
+
</Table>
|
115
|
+
</Fragment>
|
116
|
+
);
|
117
|
+
})
|
118
|
+
);
|