@servicetitan/table 25.7.0 → 25.8.1
Sign up to get free protection for your applications and to get access to all the features.
- 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/demo/row-details/index.d.ts +2 -0
- package/dist/demo/row-details/index.d.ts.map +1 -0
- package/dist/demo/row-details/index.js +2 -0
- package/dist/demo/row-details/index.js.map +1 -0
- package/dist/demo/row-details/row-details-table.d.ts +3 -0
- package/dist/demo/row-details/row-details-table.d.ts.map +1 -0
- package/dist/demo/row-details/row-details-table.js +18 -0
- package/dist/demo/row-details/row-details-table.js.map +1 -0
- package/dist/demo/row-details/row-details-table.store.d.ts +8 -0
- package/dist/demo/row-details/row-details-table.store.d.ts.map +1 -0
- package/dist/demo/row-details/row-details-table.store.js +34 -0
- package/dist/demo/row-details/row-details-table.store.js.map +1 -0
- package/dist/details/expand-column.d.ts +6 -0
- package/dist/details/expand-column.d.ts.map +1 -0
- package/dist/details/expand-column.js +22 -0
- package/dist/details/expand-column.js.map +1 -0
- package/dist/details/index.d.ts +2 -0
- package/dist/details/index.d.ts.map +1 -0
- package/dist/details/index.js +2 -0
- package/dist/details/index.js.map +1 -0
- package/dist/filters/numeric-filter-extended/numeric-filter-extended.d.ts +1 -0
- package/dist/filters/numeric-filter-extended/numeric-filter-extended.d.ts.map +1 -1
- package/dist/filters/numeric-filter-extended/numeric-filter-extended.js +19 -0
- package/dist/filters/numeric-filter-extended/numeric-filter-extended.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/table-state.d.ts +10 -1
- package/dist/table-state.d.ts.map +1 -1
- package/dist/table-state.js +40 -1
- package/dist/table-state.js.map +1 -1
- package/package.json +6 -6
- package/src/demo/index.ts +1 -0
- package/src/demo/row-details/index.ts +1 -0
- package/src/demo/row-details/row-details-table.store.ts +23 -0
- package/src/demo/row-details/row-details-table.tsx +44 -0
- package/src/details/expand-column.tsx +54 -0
- package/src/details/index.ts +1 -0
- package/src/filters/numeric-filter-extended/numeric-filter-extended.tsx +23 -1
- package/src/index.ts +1 -0
- package/src/table-state.ts +28 -0
- package/src/table.stories.tsx +2 -0
package/dist/demo/index.d.ts
CHANGED
package/dist/demo/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/demo/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/demo/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|
package/dist/demo/index.js
CHANGED
package/dist/demo/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/demo/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/demo/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/demo/row-details/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/demo/row-details/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"row-details-table.d.ts","sourceRoot":"","sources":["../../../src/demo/row-details/row-details-table.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAoB3B,eAAO,MAAM,uBAAuB,EAAE,EAoBrC,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Stack } from '@servicetitan/design-system';
|
3
|
+
import { provide, useDependencies } from '@servicetitan/react-ioc';
|
4
|
+
import { observer } from 'mobx-react';
|
5
|
+
import { Table, TableColumn, useRowExpandColumn } from '../..';
|
6
|
+
import { RowDetailsTableStore } from './row-details-table.store';
|
7
|
+
const DetailsRow = ({ dataItem }) => {
|
8
|
+
const product = dataItem;
|
9
|
+
return (_jsxs(Stack, { children: [_jsx("div", { style: { width: '38px' } }), _jsxs(Stack.Item, Object.assign({ className: "m-l-1", fill: true }, { children: ["details for product ", product.ProductName] }))] }));
|
10
|
+
};
|
11
|
+
export const TableDetailedRowExample = provide({
|
12
|
+
singletons: [RowDetailsTableStore],
|
13
|
+
})(observer(() => {
|
14
|
+
const [{ tableState }] = useDependencies(RowDetailsTableStore);
|
15
|
+
const expandColumn = useRowExpandColumn();
|
16
|
+
return (_jsxs(Table, Object.assign({ tableState: tableState, striped: false, sortable: false, detail: DetailsRow }, { children: [expandColumn, _jsx(TableColumn, { field: "ProductID", title: "ID", width: "50px" }), _jsx(TableColumn, { field: "ProductName", title: "Product Name" }), _jsx(TableColumn, { field: "MadeIn", title: "Made In", width: "175px" }), _jsx(TableColumn, { field: "UnitPrice", title: "Unit Price", format: "{0:c}", width: "125px" })] })));
|
17
|
+
}));
|
18
|
+
//# sourceMappingURL=row-details-table.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"row-details-table.js","sourceRoot":"","sources":["../../../src/demo/row-details/row-details-table.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAuB,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAGpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,UAAU,GAA4B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACzD,MAAM,OAAO,GAAG,QAAmB,CAAC;IAEpC,OAAO,CACH,MAAC,KAAK,eACF,cAAK,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAI,EACjC,MAAC,KAAK,CAAC,IAAI,kBAAC,SAAS,EAAC,OAAO,EAAC,IAAI,+CACT,OAAO,CAAC,WAAW,KAC/B,IACT,CACX,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAO,OAAO,CAAC;IAC/C,UAAU,EAAE,CAAC,oBAAoB,CAAC;CACrC,CAAC,CACE,QAAQ,CAAC,GAAG,EAAE;IACV,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;IAC/D,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAC;IAE1C,OAAO,CACH,MAAC,KAAK,kBAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,iBAC7E,YAAY,EACb,KAAC,WAAW,IAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,MAAM,GAAG,EAEzD,KAAC,WAAW,IAAC,KAAK,EAAC,aAAa,EAAC,KAAK,EAAC,cAAc,GAAG,EAExD,KAAC,WAAW,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,SAAS,EAAC,KAAK,EAAC,OAAO,GAAG,EAE5D,KAAC,WAAW,IAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,YAAY,EAAC,MAAM,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,GAAG,KAC7E,CACX,CAAC;AACN,CAAC,CAAC,CACL,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { TableState } from '../..';
|
2
|
+
import { Product } from '../overview/product';
|
3
|
+
export declare class RowDetailsTableStore {
|
4
|
+
tableState: TableState<Product, number, never, never>;
|
5
|
+
private getDataSource;
|
6
|
+
private idSelector;
|
7
|
+
}
|
8
|
+
//# sourceMappingURL=row-details-table.store.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"row-details-table.store.d.ts","sourceRoot":"","sources":["../../../src/demo/row-details/row-details-table.store.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,UAAU,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,qBACa,oBAAoB;IAC7B,UAAU,4CAIP;IAEH,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,UAAU;CAGrB"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
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;
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
+
};
|
7
|
+
import { injectable } from '@servicetitan/react-ioc';
|
8
|
+
import { InMemoryDataSource, TableState } from '../..';
|
9
|
+
import { products } from '../overview/products';
|
10
|
+
let RowDetailsTableStore = class RowDetailsTableStore {
|
11
|
+
constructor() {
|
12
|
+
Object.defineProperty(this, "tableState", {
|
13
|
+
enumerable: true,
|
14
|
+
configurable: true,
|
15
|
+
writable: true,
|
16
|
+
value: new TableState({
|
17
|
+
dataSource: this.getDataSource(),
|
18
|
+
rowDetailsExpandState: 'expanded',
|
19
|
+
pageSize: 5,
|
20
|
+
})
|
21
|
+
});
|
22
|
+
}
|
23
|
+
getDataSource() {
|
24
|
+
return new InMemoryDataSource(products, this.idSelector);
|
25
|
+
}
|
26
|
+
idSelector(row) {
|
27
|
+
return row.ProductID;
|
28
|
+
}
|
29
|
+
};
|
30
|
+
RowDetailsTableStore = __decorate([
|
31
|
+
injectable()
|
32
|
+
], RowDetailsTableStore);
|
33
|
+
export { RowDetailsTableStore };
|
34
|
+
//# sourceMappingURL=row-details-table.store.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"row-details-table.store.js","sourceRoot":"","sources":["../../../src/demo/row-details/row-details-table.store.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,IAAa,oBAAoB,GAAjC,MAAa,oBAAoB;IAAjC;QACI;;;;mBAAa,IAAI,UAAU,CAAC;gBACxB,UAAU,EAAE,IAAI,CAAC,aAAa,EAAE;gBAChC,qBAAqB,EAAE,UAAU;gBACjC,QAAQ,EAAE,CAAC;aACd,CAAC;WAAC;IASP,CAAC;IAPW,aAAa;QACjB,OAAO,IAAI,kBAAkB,CAAC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7D,CAAC;IAEO,UAAU,CAAC,GAAY;QAC3B,OAAO,GAAG,CAAC,SAAS,CAAC;IACzB,CAAC;CACJ,CAAA;AAdY,oBAAoB;IADhC,UAAU,EAAE;GACA,oBAAoB,CAchC;SAdY,oBAAoB"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { FC } from 'react';
|
2
|
+
import { TableCellProps } from '../index';
|
3
|
+
export declare const RowExpandCell: FC<TableCellProps>;
|
4
|
+
export declare const getRowExpandColumn: () => JSX.Element;
|
5
|
+
export declare const useRowExpandColumn: () => JSX.Element;
|
6
|
+
//# sourceMappingURL=expand-column.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"expand-column.d.ts","sourceRoot":"","sources":["../../src/details/expand-column.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAwC,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,cAAc,EAAe,MAAM,UAAU,CAAC;AAEvD,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,cAAc,CAiC5C,CAAC;AAEF,eAAO,MAAM,kBAAkB,mBAU9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,mBAE9B,CAAC"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Button } from '@servicetitan/design-system';
|
3
|
+
import { useCallback, useMemo } from 'react';
|
4
|
+
import { TableColumn } from '../index';
|
5
|
+
export const RowExpandCell = ({ dataItem, dataIndex, expanded, tableState, className, colSpan, }) => {
|
6
|
+
const onCLick = useCallback((e) => {
|
7
|
+
tableState === null || tableState === void 0 ? void 0 : tableState.handleExpandChange({
|
8
|
+
dataItem,
|
9
|
+
dataIndex,
|
10
|
+
value: !expanded,
|
11
|
+
syntheticEvent: e,
|
12
|
+
nativeEvent: e.nativeEvent,
|
13
|
+
target: e.target,
|
14
|
+
});
|
15
|
+
}, [dataItem, dataIndex, expanded, tableState]);
|
16
|
+
return (_jsx("td", Object.assign({ className: className, colSpan: colSpan }, { children: _jsx(Button, { iconName: expanded ? 'expand_less' : 'expand_more', "aria-label": "expand row", size: "xsmall", fill: "subtle", onClick: onCLick }) })));
|
17
|
+
};
|
18
|
+
export const getRowExpandColumn = () => (_jsx(TableColumn, { field: "expanded", title: " ", editable: false, sortable: false, resizable: false, cell: RowExpandCell, width: "50px" }));
|
19
|
+
export const useRowExpandColumn = () => {
|
20
|
+
return useMemo(getRowExpandColumn, []);
|
21
|
+
};
|
22
|
+
//# sourceMappingURL=expand-column.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"expand-column.js","sourceRoot":"","sources":["../../src/details/expand-column.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAsB,WAAW,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAkB,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvD,MAAM,CAAC,MAAM,aAAa,GAAuB,CAAC,EAC9C,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,EACT,OAAO,GACV,EAAE,EAAE;IACD,MAAM,OAAO,GAAG,WAAW,CACvB,CAAC,CAAiB,EAAE,EAAE;QAClB,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,kBAAkB,CAAC;YAC3B,QAAQ;YACR,SAAS;YACT,KAAK,EAAE,CAAC,QAAQ;YAChB,cAAc,EAAE,CAAC;YACjB,WAAW,EAAE,CAAC,CAAC,WAAW;YAC1B,MAAM,EAAE,CAAC,CAAC,MAAe;SAC5B,CAAC,CAAC;IACP,CAAC,EACD,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAC,CAC9C,CAAC;IAEF,OAAO,CACH,2BAAI,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,gBACtC,KAAC,MAAM,IACH,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,gBACvC,YAAY,EACvB,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,OAAO,GAClB,IACD,CACR,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,CACpC,KAAC,WAAW,IACR,KAAK,EAAC,UAAU,EAChB,KAAK,EAAC,GAAG,EACT,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAE,KAAK,EACf,SAAS,EAAE,KAAK,EAChB,IAAI,EAAE,aAAa,EACnB,KAAK,EAAC,MAAM,GACd,CACL,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,OAAO,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AAC3C,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/details/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/details/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
@@ -1,3 +1,4 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
export declare const NumericFilterExtended: (props: import("@progress/kendo-react-grid").GridColumnMenuProps) => JSX.Element;
|
3
|
+
export declare const PercentageFilterExtended: (props: import("@progress/kendo-react-grid").GridColumnMenuProps) => JSX.Element;
|
3
4
|
//# sourceMappingURL=numeric-filter-extended.d.ts.map
|
@@ -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":";AAkFA,eAAO,MAAM,qBAAqB,kFAA2D,CAAC;AAE9F,eAAO,MAAM,wBAAwB,kFAA8D,CAAC"}
|
@@ -1,3 +1,14 @@
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
2
|
+
var t = {};
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
4
|
+
t[p] = s[p];
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
8
|
+
t[p[i]] = s[p[i]];
|
9
|
+
}
|
10
|
+
return t;
|
11
|
+
};
|
1
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
13
|
import { NumericTextBox } from '@progress/kendo-react-inputs';
|
3
14
|
import { DropDownList } from '@progress/kendo-react-dropdowns';
|
@@ -23,5 +34,13 @@ const NumericExtFilterCell = ({ operators, operator = '', value, onChange, }) =>
|
|
23
34
|
isNumericExtendedOperator(operator);
|
24
35
|
return (_jsxs("div", { children: [_jsx(DropDownList, { className: "m-b-1", value: operatorValue, onChange: handleOperatorChange, data: operatorsExt, textField: "text" }), _jsx(NumericTextBox, { value: value, onChange: handleInputChange, disabled: isUnary, className: "m-b-1" })] }));
|
25
36
|
};
|
37
|
+
const PercentageExtFilterCell = (_a) => {
|
38
|
+
var { onChange, value } = _a, restProps = __rest(_a, ["onChange", "value"]);
|
39
|
+
const handleInputChange = (event) => {
|
40
|
+
onChange(Object.assign(Object.assign({}, event), { value: event.value ? event.value / 100 : event.value }));
|
41
|
+
};
|
42
|
+
return (_jsx(NumericExtFilterCell, Object.assign({ onChange: handleInputChange, value: value ? value * 100 : value }, restProps)));
|
43
|
+
};
|
26
44
|
export const NumericFilterExtended = renderCustomColumnMenuFilter(NumericExtFilterCell, true);
|
45
|
+
export const PercentageFilterExtended = renderCustomColumnMenuFilter(PercentageExtFilterCell, true);
|
27
46
|
//# sourceMappingURL=numeric-filter-extended.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"numeric-filter-extended.js","sourceRoot":"","sources":["../../../src/filters/numeric-filter-extended/numeric-filter-extended.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"numeric-filter-extended.js","sourceRoot":"","sources":["../../../src/filters/numeric-filter-extended/numeric-filter-extended.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAEA,OAAO,EAAE,cAAc,EAA6B,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,YAAY,EAA2B,MAAM,iCAAiC,CAAC;AAGxF,OAAO,EACH,aAAa,EACb,kBAAkB,GACrB,MAAM,kDAAkD,CAAC;AAE1D,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAEnG,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AACtE,EAAE;AAEF,4GAA4G;AAC5G,MAAM,oBAAoB,GAAuC,CAAC,EAC9D,SAAS,EACT,QAAQ,GAAG,EAAE,EACb,KAAK,EACL,QAAQ,GACX,EAAE,EAAE;IACD,MAAM,YAAY,GAAG,SAAS,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC;IAChE,MAAM,aAAa,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;IAE5E,MAAM,iBAAiB,GAAG,CAAC,CAA4B,EAAE,EAAE,CACvD,QAAQ,CAAC;QACL,QAAQ;QACR,KAAK,EAAE,CAAC,CAAC,KAAK;QACd,cAAc,EAAE,CAAC,CAAC,cAA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AG,CAAC,CAAC,CAAC,KAAK,IAC9B,SAAS,EACf,CACL,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,4BAA4B,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;AAE9F,MAAM,CAAC,MAAM,wBAAwB,GAAG,4BAA4B,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
@@ -6,6 +6,7 @@ export * from './export';
|
|
6
6
|
export * from './select-cell';
|
7
7
|
export * from './use-observing-table-state';
|
8
8
|
export * from './utils/filters';
|
9
|
+
export * from './details';
|
9
10
|
export { TableColumn, TableColumnProps, TableColumnMenuProps, TableColumnMenuFilter, TableColumnReorderEvent, TableCell, TableHeaderCellProps, TableHeaderCell, TableRowProps, TableRowClickEvent, TableDetailRow, TableDetailRowProps, TableExpandChangeEvent, TableToolbar, TableNoRecords, TableFilterCellProps, TableFilterChangeEvent, } from '@servicetitan/design-system';
|
10
11
|
export { GridColumnMenuFilterUIProps as TableColumnMenuFilterUIProps } from '@progress/kendo-react-grid/dist/npm/interfaces/GridColumnMenuFilterUIProps';
|
11
12
|
export { IdType, DataSource, InMemoryDataSource, AsyncDataSource } from '@servicetitan/data-query';
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAE1B,OAAO,EACH,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,SAAS,EACT,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACd,oBAAoB,EACpB,sBAAsB,GACzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,2BAA2B,IAAI,4BAA4B,EAAE,MAAM,4EAA4E,CAAC;AAEzJ,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
@@ -6,6 +6,7 @@ export * from './export';
|
|
6
6
|
export * from './select-cell';
|
7
7
|
export * from './use-observing-table-state';
|
8
8
|
export * from './utils/filters';
|
9
|
+
export * from './details';
|
9
10
|
export { TableColumn, TableColumnMenuFilter, TableCell, TableHeaderCell, TableDetailRow, TableToolbar, TableNoRecords, } from '@servicetitan/design-system';
|
10
11
|
export { InMemoryDataSource, AsyncDataSource } from '@servicetitan/data-query';
|
11
12
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAE1B,OAAO,EACH,WAAW,EAGX,qBAAqB,EAErB,SAAS,EAET,eAAe,EAGf,cAAc,EAGd,YAAY,EACZ,cAAc,GAGjB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAsB,kBAAkB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/table-state.d.ts
CHANGED
@@ -37,6 +37,12 @@ export interface TableStateConstructorParams<T, TId extends IdType = never, P =
|
|
37
37
|
pageSize?: number;
|
38
38
|
/** For use with tables that enable selection only. Specifies if the item is selectable in the checkbox */
|
39
39
|
isRowUnselectable?: (row: T) => boolean;
|
40
|
+
/**
|
41
|
+
* Initial expand state for row details
|
42
|
+
* collapsed - row details are collapsed by default
|
43
|
+
* expanded - row details are expanded until it will be collapsed
|
44
|
+
*/
|
45
|
+
rowDetailsExpandState?: 'collapsed' | 'expanded';
|
40
46
|
selectionLimit?: number;
|
41
47
|
getFormState?(row: T): PossibleFormState<T>;
|
42
48
|
parent?: {
|
@@ -91,6 +97,7 @@ export declare class TableState<T, TId extends IdType = never, P = never, PId ex
|
|
91
97
|
selectedIds: Set<TId>;
|
92
98
|
inEdit: Map<TId, EditingForm<T>>;
|
93
99
|
expandedIds: Set<TId>;
|
100
|
+
collapsedIds: Set<TId>;
|
94
101
|
collapsedGroups: Set<string>;
|
95
102
|
isRowUnselectable: (row: T) => boolean;
|
96
103
|
selectionLimit: number;
|
@@ -116,9 +123,10 @@ export declare class TableState<T, TId extends IdType = never, P = never, PId ex
|
|
116
123
|
pageSize?: number;
|
117
124
|
private tablePdfExport;
|
118
125
|
private tableExcelExport;
|
126
|
+
private readonly rowDetailsExpandState;
|
119
127
|
rowIdKey?: string;
|
120
128
|
alwaysEditable: boolean;
|
121
|
-
constructor({ dataSource, rowIdKey, pageSize, isRowUnselectable, selectionLimit, getFormState, parent, getDetailTableState, initialState, alwaysEditable, }?: TableStateConstructorParams<T, TId, P, PId>);
|
129
|
+
constructor({ dataSource, rowIdKey, pageSize, isRowUnselectable, rowDetailsExpandState, selectionLimit, getFormState, parent, getDetailTableState, initialState, alwaysEditable, }?: TableStateConstructorParams<T, TId, P, PId>);
|
122
130
|
addToDataSource(row: T, select?: boolean, index?: number): Promise<void>;
|
123
131
|
removeFromDataSource(id: TId): Promise<T | undefined>;
|
124
132
|
setRowsSelection(rows: T[], value: boolean, { ignoreUnselectable, recursive }?: SelectionOptions): Promise<void>;
|
@@ -158,6 +166,7 @@ export declare class TableState<T, TId extends IdType = never, P = never, PId ex
|
|
158
166
|
getRowsBetween: (start: Selectable<T>, end: Selectable<T>) => Selectable<T>[];
|
159
167
|
exportState(): TableStateModel<TId>;
|
160
168
|
importState(data: TableStateModel<TId>): void;
|
169
|
+
private updateExpandState;
|
161
170
|
}
|
162
171
|
export {};
|
163
172
|
//# sourceMappingURL=table-state.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"table-state.d.ts","sourceRoot":"","sources":["../src/table-state.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAGrC,OAAO,EACH,mBAAmB,EACnB,yBAAyB,EACzB,eAAe,EACf,cAAc,EACd,UAAU,EACV,WAAW,EACX,UAAU,EACV,MAAM,EACT,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACH,WAAW,EACX,eAAe,EACf,sBAAsB,EACzB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACH,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACvB,MAAM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UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,IAAI,EACrC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC,GAAG,CAAC,GAAG,OAAO;IAyB5D,OAAO,CAAC,gBAAgB,CAsBtB;IAEF,OAAO,CAAC,mBAAmB;IAgE3B,kBAAkB,OAAQ,sBAAsB,UAI9C;IAGF,iBAAiB,OAAQ,qBAAqB,UAM5C;IAGF,kBAAkB,wBAAyB,sBAAsB,UA4B/D;IAGF,gBAAgB,OAAQ,oBAAoB,UAI1C;IAGF,gBAAgB,OAAQ,oBAAoB,UAW1C;IAEF,uCAAuC;IACvC,SAAS,+DAMN,eAAe,mBA4EhB;IAEF,eAAe,QAAS,WAAW,CAAC,CAAC,aAIa;IAG5C,kBAAkB,CAAC,GAAG,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAgB3D,IAAc,qBAAqB,YAKlC;IAED,IAAc,sBAAsB,YAEnC;IAED,IAAc,iBAAiB,YAM9B;IAED,IAAc,kBAAkB,YAM/B;IAED,oBAAoB,OAAQ,cAAc,GAAG,IAAI,2BAAgC;IACjF,sBAAsB,OAAQ,WAAW,GAAG,IAAI,wBAAkC;IAElF,SAAS,sBAKP;IAEF,WAAW,UACA,GAAG,EAAE,GAAG,eAAe,GAAG,eAAe,YACtC,sBAAsB,EAAE,GAAG,aAAa,sBAAsB,CAAC,EAAE,mBAQ7E;IAEF,6BAA6B,+BAS3B;IAEF,cAAc,UAAW,WAAW,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,qBA6BxD;IAEF,WAAW,IAAI,eAAe,CAAC,GAAG,CAAC;IAcnC,WAAW,CAAC,IAAI,EAAE,eAAe,CAAC,GAAG,CAAC;IAW9B,OAAO,CAAC,iBAAiB;CAWpC"}
|
package/dist/table-state.js
CHANGED
@@ -27,7 +27,7 @@ function addAggregatesToGroups(groups, aggregates) {
|
|
27
27
|
return groups.map(group => (Object.assign(Object.assign({}, group), { aggregates })));
|
28
28
|
}
|
29
29
|
export class TableState {
|
30
|
-
constructor({ dataSource = null, rowIdKey, pageSize, isRowUnselectable = () => false, selectionLimit = Infinity, getFormState, parent, getDetailTableState, initialState, alwaysEditable = false, } = {}) {
|
30
|
+
constructor({ dataSource = null, rowIdKey, pageSize, isRowUnselectable = () => false, rowDetailsExpandState = 'collapsed', selectionLimit = Infinity, getFormState, parent, getDetailTableState, initialState, alwaysEditable = false, } = {}) {
|
31
31
|
Object.defineProperty(this, "innerDataSource", {
|
32
32
|
enumerable: true,
|
33
33
|
configurable: true,
|
@@ -64,6 +64,12 @@ export class TableState {
|
|
64
64
|
writable: true,
|
65
65
|
value: new Set()
|
66
66
|
});
|
67
|
+
Object.defineProperty(this, "collapsedIds", {
|
68
|
+
enumerable: true,
|
69
|
+
configurable: true,
|
70
|
+
writable: true,
|
71
|
+
value: new Set()
|
72
|
+
});
|
67
73
|
Object.defineProperty(this, "collapsedGroups", {
|
68
74
|
enumerable: true,
|
69
75
|
configurable: true,
|
@@ -160,6 +166,12 @@ export class TableState {
|
|
160
166
|
writable: true,
|
161
167
|
value: null
|
162
168
|
});
|
169
|
+
Object.defineProperty(this, "rowDetailsExpandState", {
|
170
|
+
enumerable: true,
|
171
|
+
configurable: true,
|
172
|
+
writable: true,
|
173
|
+
value: void 0
|
174
|
+
});
|
163
175
|
Object.defineProperty(this, "rowIdKey", {
|
164
176
|
enumerable: true,
|
165
177
|
configurable: true,
|
@@ -190,6 +202,7 @@ export class TableState {
|
|
190
202
|
runInAction(() => {
|
191
203
|
this.totalCount = initial.total;
|
192
204
|
this.filteredCount = initial.total;
|
205
|
+
this.updateExpandState(initial.data);
|
193
206
|
this.data = initial.data;
|
194
207
|
this.unselectableCount = this.originalData.filter(this.isRowUnselectable).length;
|
195
208
|
this.addPropertiesToRows(this.data);
|
@@ -241,9 +254,11 @@ export class TableState {
|
|
241
254
|
const id = this.dataSource.idSelector(dataItem);
|
242
255
|
if (value) {
|
243
256
|
this.expandedIds.add(id);
|
257
|
+
this.collapsedIds.delete(id);
|
244
258
|
}
|
245
259
|
else {
|
246
260
|
this.expandedIds.delete(id);
|
261
|
+
this.collapsedIds.add(id);
|
247
262
|
}
|
248
263
|
}
|
249
264
|
this.data = this.data.slice();
|
@@ -336,6 +351,7 @@ export class TableState {
|
|
336
351
|
this.selectedCount = 0;
|
337
352
|
}
|
338
353
|
}
|
354
|
+
this.updateExpandState(newData.data);
|
339
355
|
this.data = newData.data;
|
340
356
|
this.filteredCount = newData.total;
|
341
357
|
this.sort = sort;
|
@@ -436,6 +452,7 @@ export class TableState {
|
|
436
452
|
this.innerDataSource = dataSource;
|
437
453
|
this.pageSize = pageSize;
|
438
454
|
this.isRowUnselectable = isRowUnselectable;
|
455
|
+
this.rowDetailsExpandState = rowDetailsExpandState;
|
439
456
|
this.selectionLimit = selectionLimit;
|
440
457
|
this.rowIdKey = rowIdKey;
|
441
458
|
this.getFormState = getFormState;
|
@@ -777,6 +794,7 @@ export class TableState {
|
|
777
794
|
this.selectedIds = new Set();
|
778
795
|
this.inEdit = new Map();
|
779
796
|
this.expandedIds = new Set();
|
797
|
+
this.collapsedIds = new Set();
|
780
798
|
this.collapsedGroups = new Set();
|
781
799
|
this.sort = [];
|
782
800
|
this.filter = undefined;
|
@@ -903,6 +921,17 @@ export class TableState {
|
|
903
921
|
this.aggregates = data.aggregates;
|
904
922
|
this.innerGroup = data.group;
|
905
923
|
}
|
924
|
+
updateExpandState(data) {
|
925
|
+
if (this.rowDetailsExpandState === 'expanded') {
|
926
|
+
this.traverse(data, item => {
|
927
|
+
var _a, _b;
|
928
|
+
const id = (_b = (_a = this.dataSource) === null || _a === void 0 ? void 0 : _a.idSelector) === null || _b === void 0 ? void 0 : _b.call(_a, item);
|
929
|
+
if (id !== undefined && !this.collapsedIds.has(id)) {
|
930
|
+
this.expandedIds.add(id);
|
931
|
+
}
|
932
|
+
});
|
933
|
+
}
|
934
|
+
}
|
906
935
|
}
|
907
936
|
__decorate([
|
908
937
|
observable,
|
@@ -930,6 +959,10 @@ __decorate([
|
|
930
959
|
observable,
|
931
960
|
__metadata("design:type", Object)
|
932
961
|
], TableState.prototype, "expandedIds", void 0);
|
962
|
+
__decorate([
|
963
|
+
observable,
|
964
|
+
__metadata("design:type", Object)
|
965
|
+
], TableState.prototype, "collapsedIds", void 0);
|
933
966
|
__decorate([
|
934
967
|
observable,
|
935
968
|
__metadata("design:type", Object)
|
@@ -1111,4 +1144,10 @@ __decorate([
|
|
1111
1144
|
__metadata("design:paramtypes", [Object]),
|
1112
1145
|
__metadata("design:returntype", void 0)
|
1113
1146
|
], TableState.prototype, "importState", null);
|
1147
|
+
__decorate([
|
1148
|
+
action,
|
1149
|
+
__metadata("design:type", Function),
|
1150
|
+
__metadata("design:paramtypes", [Object]),
|
1151
|
+
__metadata("design:returntype", void 0)
|
1152
|
+
], TableState.prototype, "updateExpandState", null);
|
1114
1153
|
//# sourceMappingURL=table-state.js.map
|
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,C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AAC/B;IAAX,UAAU;;8CAAgB;AACf;IAAX,UAAU;;iDAAmB;AAClB;IAAX,UAAU;;iDAAmB;AAClB;IAAX,UAAU;;qDAAuB;AAExB;IAAT,QAAQ;;;iDAER;AAES;IAAT,QAAQ;;;iDAER;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;AAoH9B;IADC,MAAM;;;;kDAuDN;AAmCD;IADC,MAAM;;;;sCAoBN;AAGD;IADC,MAAM;;;;0CAoCN;AAGD;IADC,MAAM;;;;4CAiBN;AAkED;IADC,MAAM;;;;+CAaN;AAEO;IAAP,MAAM;;;;uCAcN;AAGD;IADC,MAAM;;;;+CAyBN;AAGD;IADC,MAAM;;oDAuBL;AAkEF;IADC,MAAM;;sDAKL;AAGF;IADC,MAAM;;qDAOL;AAGF;IADC,MAAM;;sDA6BL;AAGF;IADC,MAAM;;oDAKL;AAGF;IADC,MAAM;;oDAYL;AA8FF;IADC,MAAM;;;;oDAeN;AAES;IAAT,QAAQ;;;uDAKR;AAES;IAAT,QAAQ;;;wDAER;AAES;IAAT,QAAQ;;;mDAMR;AAES;IAAT,QAAQ;;;oDAMR;AAgFD;IADC,MAAM;;;;6CAUN;AAEO;IAAP,MAAM;;;;mDAUN"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@servicetitan/table",
|
3
|
-
"version": "25.
|
3
|
+
"version": "25.8.1",
|
4
4
|
"description": "",
|
5
5
|
"homepage": "https://docs.st.dev/docs/frontend/table",
|
6
6
|
"repository": {
|
@@ -37,9 +37,9 @@
|
|
37
37
|
"memoize-one": "~6.0.0"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
|
-
"@servicetitan/data-query": "^25.
|
40
|
+
"@servicetitan/data-query": "^25.8.1",
|
41
41
|
"@servicetitan/design-system": ">=12.4.1",
|
42
|
-
"@servicetitan/form": "^25.
|
42
|
+
"@servicetitan/form": "^25.8.1",
|
43
43
|
"@servicetitan/react-ioc": "^21.6.0",
|
44
44
|
"@servicetitan/suppress-warnings": "^21.6.0",
|
45
45
|
"@types/accounting": "~0.4.2",
|
@@ -53,9 +53,9 @@
|
|
53
53
|
"react": "~17.0.2"
|
54
54
|
},
|
55
55
|
"peerDependencies": {
|
56
|
-
"@servicetitan/data-query": "^25.
|
56
|
+
"@servicetitan/data-query": "^25.8.1",
|
57
57
|
"@servicetitan/design-system": ">=12.4.1",
|
58
|
-
"@servicetitan/form": "^25.
|
58
|
+
"@servicetitan/form": "^25.8.1",
|
59
59
|
"@servicetitan/react-ioc": ">21.0.0",
|
60
60
|
"@servicetitan/suppress-warnings": ">21.0.0",
|
61
61
|
"accounting": "~0.4.1",
|
@@ -72,5 +72,5 @@
|
|
72
72
|
"cli": {
|
73
73
|
"webpack": false
|
74
74
|
},
|
75
|
-
"gitHead": "
|
75
|
+
"gitHead": "7ff86e7a40bab18082b6d972addbab9f4b2ff88c"
|
76
76
|
}
|
package/src/demo/index.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './row-details-table';
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { injectable } from '@servicetitan/react-ioc';
|
2
|
+
|
3
|
+
import { InMemoryDataSource, TableState } from '../..';
|
4
|
+
|
5
|
+
import { Product } from '../overview/product';
|
6
|
+
import { products } from '../overview/products';
|
7
|
+
|
8
|
+
@injectable()
|
9
|
+
export class RowDetailsTableStore {
|
10
|
+
tableState = new TableState({
|
11
|
+
dataSource: this.getDataSource(),
|
12
|
+
rowDetailsExpandState: 'expanded',
|
13
|
+
pageSize: 5,
|
14
|
+
});
|
15
|
+
|
16
|
+
private getDataSource() {
|
17
|
+
return new InMemoryDataSource(products, this.idSelector);
|
18
|
+
}
|
19
|
+
|
20
|
+
private idSelector(row: Product) {
|
21
|
+
return row.ProductID;
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { Stack } from '@servicetitan/design-system';
|
2
|
+
import { provide, useDependencies } from '@servicetitan/react-ioc';
|
3
|
+
import { observer } from 'mobx-react';
|
4
|
+
import { FC } from 'react';
|
5
|
+
|
6
|
+
import { Table, TableColumn, TableDetailRowProps, useRowExpandColumn } from '../..';
|
7
|
+
|
8
|
+
import { Product } from '../overview/product';
|
9
|
+
import { RowDetailsTableStore } from './row-details-table.store';
|
10
|
+
|
11
|
+
const DetailsRow: FC<TableDetailRowProps> = ({ dataItem }) => {
|
12
|
+
const product = dataItem as Product;
|
13
|
+
|
14
|
+
return (
|
15
|
+
<Stack>
|
16
|
+
<div style={{ width: '38px' }} />
|
17
|
+
<Stack.Item className="m-l-1" fill>
|
18
|
+
details for product {product.ProductName}
|
19
|
+
</Stack.Item>
|
20
|
+
</Stack>
|
21
|
+
);
|
22
|
+
};
|
23
|
+
|
24
|
+
export const TableDetailedRowExample: FC = provide({
|
25
|
+
singletons: [RowDetailsTableStore],
|
26
|
+
})(
|
27
|
+
observer(() => {
|
28
|
+
const [{ tableState }] = useDependencies(RowDetailsTableStore);
|
29
|
+
const expandColumn = useRowExpandColumn();
|
30
|
+
|
31
|
+
return (
|
32
|
+
<Table tableState={tableState} striped={false} sortable={false} detail={DetailsRow}>
|
33
|
+
{expandColumn}
|
34
|
+
<TableColumn field="ProductID" title="ID" width="50px" />
|
35
|
+
|
36
|
+
<TableColumn field="ProductName" title="Product Name" />
|
37
|
+
|
38
|
+
<TableColumn field="MadeIn" title="Made In" width="175px" />
|
39
|
+
|
40
|
+
<TableColumn field="UnitPrice" title="Unit Price" format="{0:c}" width="125px" />
|
41
|
+
</Table>
|
42
|
+
);
|
43
|
+
})
|
44
|
+
);
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { Button } from '@servicetitan/design-system';
|
2
|
+
import { FC, SyntheticEvent, useCallback, useMemo } from 'react';
|
3
|
+
import { TableCellProps, TableColumn } from '../index';
|
4
|
+
|
5
|
+
export const RowExpandCell: FC<TableCellProps> = ({
|
6
|
+
dataItem,
|
7
|
+
dataIndex,
|
8
|
+
expanded,
|
9
|
+
tableState,
|
10
|
+
className,
|
11
|
+
colSpan,
|
12
|
+
}) => {
|
13
|
+
const onCLick = useCallback(
|
14
|
+
(e: SyntheticEvent) => {
|
15
|
+
tableState?.handleExpandChange({
|
16
|
+
dataItem,
|
17
|
+
dataIndex,
|
18
|
+
value: !expanded,
|
19
|
+
syntheticEvent: e,
|
20
|
+
nativeEvent: e.nativeEvent,
|
21
|
+
target: e.target as never,
|
22
|
+
});
|
23
|
+
},
|
24
|
+
[dataItem, dataIndex, expanded, tableState]
|
25
|
+
);
|
26
|
+
|
27
|
+
return (
|
28
|
+
<td className={className} colSpan={colSpan}>
|
29
|
+
<Button
|
30
|
+
iconName={expanded ? 'expand_less' : 'expand_more'}
|
31
|
+
aria-label="expand row"
|
32
|
+
size="xsmall"
|
33
|
+
fill="subtle"
|
34
|
+
onClick={onCLick}
|
35
|
+
/>
|
36
|
+
</td>
|
37
|
+
);
|
38
|
+
};
|
39
|
+
|
40
|
+
export const getRowExpandColumn = () => (
|
41
|
+
<TableColumn
|
42
|
+
field="expanded"
|
43
|
+
title=" "
|
44
|
+
editable={false}
|
45
|
+
sortable={false}
|
46
|
+
resizable={false}
|
47
|
+
cell={RowExpandCell}
|
48
|
+
width="50px"
|
49
|
+
/>
|
50
|
+
);
|
51
|
+
|
52
|
+
export const useRowExpandColumn = () => {
|
53
|
+
return useMemo(getRowExpandColumn, []);
|
54
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './expand-column';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { FC } from 'react';
|
1
|
+
import { FC, SyntheticEvent } from 'react';
|
2
2
|
|
3
3
|
import { NumericTextBox, NumericTextBoxChangeEvent } from '@progress/kendo-react-inputs';
|
4
4
|
import { DropDownList, DropDownListChangeEvent } from '@progress/kendo-react-dropdowns';
|
@@ -59,5 +59,27 @@ const NumericExtFilterCell: FC<TableColumnMenuFilterCellProps> = ({
|
|
59
59
|
</div>
|
60
60
|
);
|
61
61
|
};
|
62
|
+
const PercentageExtFilterCell: FC<TableColumnMenuFilterCellProps> = ({
|
63
|
+
onChange,
|
64
|
+
value,
|
65
|
+
...restProps
|
66
|
+
}) => {
|
67
|
+
const handleInputChange = (event: {
|
68
|
+
value: any;
|
69
|
+
operator: string | Function;
|
70
|
+
syntheticEvent: SyntheticEvent<any>;
|
71
|
+
}) => {
|
72
|
+
onChange({ ...event, value: event.value ? event.value / 100 : event.value });
|
73
|
+
};
|
74
|
+
return (
|
75
|
+
<NumericExtFilterCell
|
76
|
+
onChange={handleInputChange}
|
77
|
+
value={value ? value * 100 : value}
|
78
|
+
{...restProps}
|
79
|
+
/>
|
80
|
+
);
|
81
|
+
};
|
62
82
|
|
63
83
|
export const NumericFilterExtended = renderCustomColumnMenuFilter(NumericExtFilterCell, true);
|
84
|
+
|
85
|
+
export const PercentageFilterExtended = renderCustomColumnMenuFilter(PercentageExtFilterCell, true);
|
package/src/index.ts
CHANGED
package/src/table-state.ts
CHANGED
@@ -77,6 +77,13 @@ export interface TableStateConstructorParams<
|
|
77
77
|
pageSize?: number;
|
78
78
|
/** For use with tables that enable selection only. Specifies if the item is selectable in the checkbox */
|
79
79
|
isRowUnselectable?: (row: T) => boolean;
|
80
|
+
|
81
|
+
/**
|
82
|
+
* Initial expand state for row details
|
83
|
+
* collapsed - row details are collapsed by default
|
84
|
+
* expanded - row details are expanded until it will be collapsed
|
85
|
+
*/
|
86
|
+
rowDetailsExpandState?: 'collapsed' | 'expanded';
|
80
87
|
selectionLimit?: number;
|
81
88
|
getFormState?(row: T): PossibleFormState<T>;
|
82
89
|
parent?: {
|
@@ -179,6 +186,7 @@ export class TableState<T, TId extends IdType = never, P = never, PId extends Id
|
|
179
186
|
@observable selectedIds = new Set<TId>();
|
180
187
|
@observable inEdit = new Map<TId, EditingForm<T>>();
|
181
188
|
@observable expandedIds = new Set<TId>();
|
189
|
+
@observable collapsedIds = new Set<TId>();
|
182
190
|
@observable collapsedGroups = new Set<string>();
|
183
191
|
|
184
192
|
isRowUnselectable: (row: T) => boolean; // TODO: think about a better name
|
@@ -256,6 +264,7 @@ export class TableState<T, TId extends IdType = never, P = never, PId extends Id
|
|
256
264
|
|
257
265
|
private tablePdfExport: TablePDFExport | null = null;
|
258
266
|
private tableExcelExport: ExcelExport | null = null;
|
267
|
+
private readonly rowDetailsExpandState: 'collapsed' | 'expanded';
|
259
268
|
|
260
269
|
rowIdKey?: string;
|
261
270
|
alwaysEditable: boolean;
|
@@ -265,6 +274,7 @@ export class TableState<T, TId extends IdType = never, P = never, PId extends Id
|
|
265
274
|
rowIdKey,
|
266
275
|
pageSize,
|
267
276
|
isRowUnselectable = () => false,
|
277
|
+
rowDetailsExpandState = 'collapsed',
|
268
278
|
selectionLimit = Infinity,
|
269
279
|
getFormState,
|
270
280
|
parent,
|
@@ -277,6 +287,7 @@ export class TableState<T, TId extends IdType = never, P = never, PId extends Id
|
|
277
287
|
this.innerDataSource = dataSource;
|
278
288
|
this.pageSize = pageSize;
|
279
289
|
this.isRowUnselectable = isRowUnselectable;
|
290
|
+
this.rowDetailsExpandState = rowDetailsExpandState;
|
280
291
|
this.selectionLimit = selectionLimit;
|
281
292
|
this.rowIdKey = rowIdKey;
|
282
293
|
|
@@ -618,6 +629,7 @@ export class TableState<T, TId extends IdType = never, P = never, PId extends Id
|
|
618
629
|
this.selectedIds = new Set();
|
619
630
|
this.inEdit = new Map();
|
620
631
|
this.expandedIds = new Set();
|
632
|
+
this.collapsedIds = new Set();
|
621
633
|
this.collapsedGroups = new Set();
|
622
634
|
this.sort = [];
|
623
635
|
this.filter = undefined;
|
@@ -669,6 +681,7 @@ export class TableState<T, TId extends IdType = never, P = never, PId extends Id
|
|
669
681
|
runInAction(() => {
|
670
682
|
this.totalCount = initial.total;
|
671
683
|
this.filteredCount = initial.total;
|
684
|
+
this.updateExpandState(initial.data);
|
672
685
|
this.data = initial.data;
|
673
686
|
this.unselectableCount = this.originalData.filter(this.isRowUnselectable).length;
|
674
687
|
|
@@ -776,8 +789,10 @@ export class TableState<T, TId extends IdType = never, P = never, PId extends Id
|
|
776
789
|
const id = this.dataSource.idSelector(dataItem);
|
777
790
|
if (value) {
|
778
791
|
this.expandedIds.add(id);
|
792
|
+
this.collapsedIds.delete(id);
|
779
793
|
} else {
|
780
794
|
this.expandedIds.delete(id);
|
795
|
+
this.collapsedIds.add(id);
|
781
796
|
}
|
782
797
|
}
|
783
798
|
|
@@ -877,6 +892,7 @@ export class TableState<T, TId extends IdType = never, P = never, PId extends Id
|
|
877
892
|
}
|
878
893
|
}
|
879
894
|
|
895
|
+
this.updateExpandState(newData.data);
|
880
896
|
this.data = newData.data;
|
881
897
|
this.filteredCount = newData.total;
|
882
898
|
this.sort = sort;
|
@@ -1027,4 +1043,16 @@ export class TableState<T, TId extends IdType = never, P = never, PId extends Id
|
|
1027
1043
|
this.aggregates = data.aggregates;
|
1028
1044
|
this.innerGroup = data.group;
|
1029
1045
|
}
|
1046
|
+
|
1047
|
+
@action private updateExpandState(data: TableState<T, TId>['data']) {
|
1048
|
+
if (this.rowDetailsExpandState === 'expanded') {
|
1049
|
+
this.traverse(data, item => {
|
1050
|
+
const id = this.dataSource?.idSelector?.(item);
|
1051
|
+
|
1052
|
+
if (id !== undefined && !this.collapsedIds.has(id)) {
|
1053
|
+
this.expandedIds.add(id);
|
1054
|
+
}
|
1055
|
+
});
|
1056
|
+
}
|
1057
|
+
}
|
1030
1058
|
}
|
package/src/table.stories.tsx
CHANGED
@@ -4,6 +4,7 @@ import {
|
|
4
4
|
TableStateCachingExample,
|
5
5
|
TableColumnHidingExample,
|
6
6
|
TableFooterPageSizeExample,
|
7
|
+
TableDetailedRowExample,
|
7
8
|
} from './demo';
|
8
9
|
|
9
10
|
export default {
|
@@ -15,3 +16,4 @@ export const TableMasterDetail = () => <TableMasterDetailExample />;
|
|
15
16
|
export const TableStateCaching = () => <TableStateCachingExample />;
|
16
17
|
export const TableColumnHiding = () => <TableColumnHidingExample />;
|
17
18
|
export const TableFooterPageSize = () => <TableFooterPageSizeExample />;
|
19
|
+
export const TableDetailedRow = () => <TableDetailedRowExample />;
|