@servicetitan/table 25.6.0 → 25.8.0
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/select-filter/operators.d.ts +11 -0
- package/dist/filters/select-filter/operators.d.ts.map +1 -0
- package/dist/filters/select-filter/operators.js +12 -0
- package/dist/filters/select-filter/operators.js.map +1 -0
- package/dist/filters/select-filter/select-filter.d.ts +2 -0
- package/dist/filters/select-filter/select-filter.d.ts.map +1 -1
- package/dist/filters/select-filter/select-filter.js +9 -4
- package/dist/filters/select-filter/select-filter.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/select-filter/operators.ts +22 -0
- package/src/filters/select-filter/select-filter.tsx +13 -8
- 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"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { IdType } from '@servicetitan/data-query';
|
2
|
+
interface OperatorOpts<TO> {
|
3
|
+
valueSelector?: (item: TO) => IdType;
|
4
|
+
rowValueSelector?: (item: any) => IdType | undefined;
|
5
|
+
}
|
6
|
+
export declare const selectColumnMenuFilterOperators: {
|
7
|
+
getContains: <TO>(opts?: OperatorOpts<TO> | undefined) => (value: any, options?: TO[] | undefined) => boolean | undefined;
|
8
|
+
getEquals: <TO_1>(opts?: OperatorOpts<TO_1> | undefined) => (value: any, option?: TO_1 | undefined) => boolean;
|
9
|
+
};
|
10
|
+
export {};
|
11
|
+
//# sourceMappingURL=operators.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"operators.d.ts","sourceRoot":"","sources":["../../../src/filters/select-filter/operators.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,UAAU,YAAY,CAAC,EAAE;IACrB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,MAAM,CAAC;IACrC,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,MAAM,GAAG,SAAS,CAAC;CACxD;AAED,eAAO,MAAM,+BAA+B;sEAIrB,GAAG;wEAMH,GAAG;CAGzB,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { getSimpleValue } from './value-getter';
|
2
|
+
export const selectColumnMenuFilterOperators = {
|
3
|
+
getContains: (opts) => {
|
4
|
+
const { valueSelector = getSimpleValue, rowValueSelector = getSimpleValue } = opts !== null && opts !== void 0 ? opts : {};
|
5
|
+
return (value, options) => options === null || options === void 0 ? void 0 : options.some(opt => valueSelector(opt) === rowValueSelector(value));
|
6
|
+
},
|
7
|
+
getEquals: (opts) => {
|
8
|
+
const { valueSelector = getSimpleValue, rowValueSelector = getSimpleValue } = opts !== null && opts !== void 0 ? opts : {};
|
9
|
+
return (value, option) => option === undefined ? false : valueSelector(option) === rowValueSelector(value);
|
10
|
+
},
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=operators.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"operators.js","sourceRoot":"","sources":["../../../src/filters/select-filter/operators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAQhD,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC3C,WAAW,EAAE,CAAK,IAAuB,EAAE,EAAE;QACzC,MAAM,EAAE,aAAa,GAAG,cAAc,EAAE,gBAAgB,GAAG,cAAc,EAAE,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC;QAEzF,OAAO,CAAC,KAAU,EAAE,OAAc,EAAE,EAAE,CAClC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7E,CAAC;IACD,SAAS,EAAE,CAAK,IAAuB,EAAE,EAAE;QACvC,MAAM,EAAE,aAAa,GAAG,cAAc,EAAE,gBAAgB,GAAG,cAAc,EAAE,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC;QAEzF,OAAO,CAAC,KAAU,EAAE,MAAW,EAAE,EAAE,CAC/B,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACzF,CAAC;CACJ,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import { IdType } from '@servicetitan/data-query';
|
3
3
|
import { CustomColumnMenuFilterSingleOpts } from '../column-menu-filters';
|
4
|
+
import { selectColumnMenuFilterOperators } from './operators';
|
4
5
|
export declare type SelectFilterDataFetcher<TO> = (opts: {
|
5
6
|
search?: string;
|
6
7
|
}) => Promise<{
|
@@ -29,4 +30,5 @@ export interface SelectFilterOptions<TO> extends CustomColumnMenuFilterSingleOpt
|
|
29
30
|
renderItem?(item: TO): ReactNode;
|
30
31
|
}
|
31
32
|
export declare function selectColumnMenuFilter<TO>({ dataFetcher, data, search, multiple, valueSelector, rowValueSelector, renderItem, operator, ...opts }: SelectFilterOptions<TO>): (props: import("@servicetitan/design-system").TableColumnMenuProps) => JSX.Element;
|
33
|
+
export { selectColumnMenuFilterOperators };
|
32
34
|
//# sourceMappingURL=select-filter.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"select-filter.d.ts","sourceRoot":"","sources":["../../../src/filters/select-filter/select-filter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAA+B,MAAM,OAAO,CAAC;AAU1F,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EACH,gCAAgC,EAEnC,MAAM,wBAAwB,CAAC;
|
1
|
+
{"version":3,"file":"select-filter.d.ts","sourceRoot":"","sources":["../../../src/filters/select-filter/select-filter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAA+B,MAAM,OAAO,CAAC;AAU1F,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EACH,gCAAgC,EAEnC,MAAM,wBAAwB,CAAC;AAKhC,OAAO,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAE9D,oBAAY,uBAAuB,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,OAAO,CAAC;IAAE,IAAI,EAAE,EAAE,EAAE,CAAA;CAAE,CAAC,CAAC;AAEjG,MAAM,WAAW,yBAAyB,CAAC,EAAE,GAAG,GAAG;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,EAAE,KAAK,OAAO,GAAG,SAAS,CAAC;CAC7D;AAqLD,MAAM,WAAW,mBAAmB,CAAC,EAAE,CAAE,SAAQ,gCAAgC;IAC7E,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtD,uCAAuC;IACvC,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC;IACZ,oDAAoD;IACpD,WAAW,CAAC,EAAE,uBAAuB,CAAC,EAAE,CAAC,CAAC;IAC1C,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,EAAE,KAAK,OAAO,CAAC,CAAC;IAC/F,kDAAkD;IAClD,aAAa,CAAC,CAAC,IAAI,EAAE,EAAE,GAAG,MAAM,CAAC;IACjC,4EAA4E;IAC5E,gBAAgB,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,CAAC;IACjD,0BAA0B;IAC1B,UAAU,CAAC,CAAC,IAAI,EAAE,EAAE,GAAG,SAAS,CAAC;CACpC;AAMD,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,EACvC,WAAW,EACX,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,aAA8B,EAC9B,gBAAiC,EACjC,UAAU,EACV,QAAQ,EACR,GAAG,IAAI,EACV,EAAE,mBAAmB,CAAC,EAAE,CAAC,sFAiFzB;AAED,OAAO,EAAE,+BAA+B,EAAE,CAAC"}
|
@@ -35,6 +35,7 @@ import { makeObservable, observable, runInAction, toJS } from 'mobx';
|
|
35
35
|
import { observer } from 'mobx-react';
|
36
36
|
import { getSimpleValue } from './value-getter';
|
37
37
|
import { objectSearch } from './object-search';
|
38
|
+
import { selectColumnMenuFilterOperators } from './operators';
|
38
39
|
let SelectorAsync = class SelectorAsync extends Component {
|
39
40
|
constructor(props) {
|
40
41
|
super(props);
|
@@ -177,8 +178,6 @@ const SelectorItemMultiple = ({ option, renderer, checked, onChange, }) => {
|
|
177
178
|
export function selectColumnMenuFilter(_a) {
|
178
179
|
var { dataFetcher, data, search, multiple, valueSelector = getSimpleValue, rowValueSelector = getSimpleValue, renderItem, operator } = _a, opts = __rest(_a, ["dataFetcher", "data", "search", "multiple", "valueSelector", "rowValueSelector", "renderItem", "operator"]);
|
179
180
|
const renderer = renderItem !== null && renderItem !== void 0 ? renderItem : (item => valueSelector(item));
|
180
|
-
const contains = (value, options) => options === null || options === void 0 ? void 0 : options.some(opt => valueSelector(opt) === rowValueSelector(value));
|
181
|
-
const equals = (value, option) => option === undefined ? false : valueSelector(option) === rowValueSelector(value);
|
182
181
|
const searchOptions = search
|
183
182
|
? Object.assign({ filter: objectSearch }, (typeof search === 'boolean' ? {} : search)) : undefined;
|
184
183
|
if (multiple) {
|
@@ -191,7 +190,12 @@ export function selectColumnMenuFilter(_a) {
|
|
191
190
|
: option !== opt);
|
192
191
|
onChange({
|
193
192
|
value: val.length ? toJS(val) : undefined,
|
194
|
-
operator: val.length
|
193
|
+
operator: val.length
|
194
|
+
? operator !== null && operator !== void 0 ? operator : selectColumnMenuFilterOperators.getContains({
|
195
|
+
valueSelector,
|
196
|
+
rowValueSelector,
|
197
|
+
})
|
198
|
+
: '',
|
195
199
|
syntheticEvent: event,
|
196
200
|
});
|
197
201
|
};
|
@@ -203,7 +207,7 @@ export function selectColumnMenuFilter(_a) {
|
|
203
207
|
const handleChange = (option, _, event) => {
|
204
208
|
onChange({
|
205
209
|
value: toJS(option),
|
206
|
-
operator: operator !== null && operator !== void 0 ? operator :
|
210
|
+
operator: operator !== null && operator !== void 0 ? operator : selectColumnMenuFilterOperators.getEquals({ valueSelector, rowValueSelector }),
|
207
211
|
syntheticEvent: event,
|
208
212
|
});
|
209
213
|
};
|
@@ -211,4 +215,5 @@ export function selectColumnMenuFilter(_a) {
|
|
211
215
|
};
|
212
216
|
return renderCustomColumnMenuFilter(FilterCell, opts);
|
213
217
|
}
|
218
|
+
export { selectColumnMenuFilterOperators };
|
214
219
|
//# sourceMappingURL=select-filter.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"select-filter.js","sourceRoot":"","sources":["../../../src/filters/select-filter/select-filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAA6B,QAAQ,EAAqB,MAAM,OAAO,CAAC;AAE1F,OAAO,EACH,QAAQ,EAER,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,GACX,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAEH,4BAA4B,GAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"select-filter.js","sourceRoot":"","sources":["../../../src/filters/select-filter/select-filter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAA6B,QAAQ,EAAqB,MAAM,OAAO,CAAC;AAE1F,OAAO,EACH,QAAQ,EAER,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,GACX,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAEH,4BAA4B,GAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AA4B9D,IAAM,aAAa,GAAnB,MAAM,aAAkB,SAAQ,SAA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QAAQ,EAAE,YAAY,EACtB,aAAa,EAAE,kBAAkB,EACjC,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,QAAQ,EACpB,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,aAAa,GAC9B,CACL,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,4BAA4B,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AAC1D,CAAC;AAED,OAAO,EAAE,+BAA+B,EAAE,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,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|
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,M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|
"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.0",
|
41
41
|
"@servicetitan/design-system": ">=12.4.1",
|
42
|
-
"@servicetitan/form": "^25.
|
42
|
+
"@servicetitan/form": "^25.8.0",
|
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.0",
|
57
57
|
"@servicetitan/design-system": ">=12.4.1",
|
58
|
-
"@servicetitan/form": "^25.
|
58
|
+
"@servicetitan/form": "^25.8.0",
|
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": "d29437d247da3428ed25fd9fc4004c1f3a94cf1e"
|
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';
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { getSimpleValue } from './value-getter';
|
2
|
+
import { IdType } from '@servicetitan/data-query';
|
3
|
+
|
4
|
+
interface OperatorOpts<TO> {
|
5
|
+
valueSelector?: (item: TO) => IdType;
|
6
|
+
rowValueSelector?: (item: any) => IdType | undefined;
|
7
|
+
}
|
8
|
+
|
9
|
+
export const selectColumnMenuFilterOperators = {
|
10
|
+
getContains: <TO>(opts?: OperatorOpts<TO>) => {
|
11
|
+
const { valueSelector = getSimpleValue, rowValueSelector = getSimpleValue } = opts ?? {};
|
12
|
+
|
13
|
+
return (value: any, options?: TO[]) =>
|
14
|
+
options?.some(opt => valueSelector(opt) === rowValueSelector(value));
|
15
|
+
},
|
16
|
+
getEquals: <TO>(opts?: OperatorOpts<TO>) => {
|
17
|
+
const { valueSelector = getSimpleValue, rowValueSelector = getSimpleValue } = opts ?? {};
|
18
|
+
|
19
|
+
return (value: any, option?: TO) =>
|
20
|
+
option === undefined ? false : valueSelector(option) === rowValueSelector(value);
|
21
|
+
},
|
22
|
+
};
|
@@ -18,6 +18,7 @@ import { makeObservable, observable, runInAction, toJS } from 'mobx';
|
|
18
18
|
import { observer } from 'mobx-react';
|
19
19
|
import { getSimpleValue } from './value-getter';
|
20
20
|
import { objectSearch } from './object-search';
|
21
|
+
import { selectColumnMenuFilterOperators } from './operators';
|
21
22
|
|
22
23
|
export type SelectFilterDataFetcher<TO> = (opts: { search?: string }) => Promise<{ data: TO[] }>;
|
23
24
|
|
@@ -241,12 +242,6 @@ export function selectColumnMenuFilter<TO>({
|
|
241
242
|
}: SelectFilterOptions<TO>) {
|
242
243
|
const renderer = renderItem ?? (item => valueSelector(item));
|
243
244
|
|
244
|
-
const contains = (value: any, options?: TO[]) =>
|
245
|
-
options?.some(opt => valueSelector(opt) === rowValueSelector(value));
|
246
|
-
|
247
|
-
const equals = (value: any, option?: TO) =>
|
248
|
-
option === undefined ? false : valueSelector(option) === rowValueSelector(value);
|
249
|
-
|
250
245
|
const searchOptions = search
|
251
246
|
? {
|
252
247
|
filter: objectSearch,
|
@@ -271,7 +266,13 @@ export function selectColumnMenuFilter<TO>({
|
|
271
266
|
|
272
267
|
onChange({
|
273
268
|
value: val.length ? toJS(val) : undefined,
|
274
|
-
operator: val.length
|
269
|
+
operator: val.length
|
270
|
+
? operator ??
|
271
|
+
selectColumnMenuFilterOperators.getContains({
|
272
|
+
valueSelector,
|
273
|
+
rowValueSelector,
|
274
|
+
})
|
275
|
+
: '',
|
275
276
|
syntheticEvent: event,
|
276
277
|
});
|
277
278
|
};
|
@@ -297,7 +298,9 @@ export function selectColumnMenuFilter<TO>({
|
|
297
298
|
const handleChange = (option: TO, _: boolean, event: SyntheticEvent<HTMLInputElement>) => {
|
298
299
|
onChange({
|
299
300
|
value: toJS(option),
|
300
|
-
operator:
|
301
|
+
operator:
|
302
|
+
operator ??
|
303
|
+
selectColumnMenuFilterOperators.getEquals({ valueSelector, rowValueSelector }),
|
301
304
|
syntheticEvent: event,
|
302
305
|
});
|
303
306
|
};
|
@@ -318,3 +321,5 @@ export function selectColumnMenuFilter<TO>({
|
|
318
321
|
|
319
322
|
return renderCustomColumnMenuFilter(FilterCell, opts);
|
320
323
|
}
|
324
|
+
|
325
|
+
export { selectColumnMenuFilterOperators };
|
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 />;
|