@servicetitan/table 24.0.0 → 24.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. package/dist/demo/filters/multiselect-filter.d.ts +3 -0
  2. package/dist/demo/filters/multiselect-filter.d.ts.map +1 -0
  3. package/dist/demo/filters/multiselect-filter.js +14 -0
  4. package/dist/demo/filters/multiselect-filter.js.map +1 -0
  5. package/dist/demo/filters/range-filter.d.ts +5 -0
  6. package/dist/demo/filters/range-filter.d.ts.map +1 -0
  7. package/dist/demo/filters/range-filter.js +24 -0
  8. package/dist/demo/filters/range-filter.js.map +1 -0
  9. package/dist/demo/overview/products.js +10 -10
  10. package/dist/filters/index.d.ts +1 -1
  11. package/dist/filters/index.d.ts.map +1 -1
  12. package/dist/filters/index.js +1 -1
  13. package/dist/filters/index.js.map +1 -1
  14. package/dist/filters/multiselect-filter/multiselect-filter.d.ts.map +1 -0
  15. package/dist/filters/{multiselect-filter.js → multiselect-filter/multiselect-filter.js} +1 -1
  16. package/dist/filters/multiselect-filter/multiselect-filter.js.map +1 -0
  17. package/dist/filters/multiselect-filter/multiselect-filter.stories.d.ts +7 -0
  18. package/dist/filters/multiselect-filter/multiselect-filter.stories.d.ts.map +1 -0
  19. package/dist/filters/multiselect-filter/multiselect-filter.stories.js +7 -0
  20. package/dist/filters/multiselect-filter/multiselect-filter.stories.js.map +1 -0
  21. package/dist/filters/range-filter/range-filter.stories.d.ts +9 -0
  22. package/dist/filters/range-filter/range-filter.stories.d.ts.map +1 -0
  23. package/dist/filters/range-filter/range-filter.stories.js +9 -0
  24. package/dist/filters/range-filter/range-filter.stories.js.map +1 -0
  25. package/package.json +6 -6
  26. package/src/demo/filters/multiselect-filter.tsx +32 -0
  27. package/src/demo/filters/range-filter.tsx +72 -0
  28. package/src/demo/overview/products.ts +10 -10
  29. package/src/filters/index.ts +1 -1
  30. package/src/filters/multiselect-filter/multiselect-filter.stories.tsx +7 -0
  31. package/src/filters/{multiselect-filter.tsx → multiselect-filter/multiselect-filter.tsx} +1 -1
  32. package/src/filters/range-filter/range-filter.stories.tsx +13 -0
  33. package/dist/filters/multiselect-filter.d.ts.map +0 -1
  34. package/dist/filters/multiselect-filter.js.map +0 -1
  35. /package/dist/filters/{multiselect-filter.d.ts → multiselect-filter/multiselect-filter.d.ts} +0 -0
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ export declare const TableExampleSimple: FC;
3
+ //# sourceMappingURL=multiselect-filter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multiselect-filter.d.ts","sourceRoot":"","sources":["../../../src/demo/filters/multiselect-filter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,EAAE,EAAE,MAAM,OAAO,CAAC;AAUpC,eAAO,MAAM,kBAAkB,EAAE,EAqBhC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useMemo } from 'react';
3
+ import { provide, useDependencies } from '@servicetitan/react-ioc';
4
+ import { observer } from 'mobx-react';
5
+ import { Table, TableColumn, multiSelectColumnMenuFilter } from '../..';
6
+ import { TableStore } from './table.store';
7
+ export const TableExampleSimple = provide({
8
+ singletons: [TableStore],
9
+ })(observer(() => {
10
+ const [{ tableState, madeInOptions }] = useDependencies(TableStore);
11
+ const madeInColumnMenu = useMemo(() => multiSelectColumnMenuFilter(madeInOptions), [madeInOptions]);
12
+ return (_jsxs(Table, Object.assign({ tableState: tableState }, { children: [_jsx(TableColumn, { field: "ProductID", title: "ID", editable: false, width: "100px" }), _jsx(TableColumn, { field: "ProductName", title: "Product Name", width: "240px" }), _jsx(TableColumn, { field: "MadeIn", title: "Made In", columnMenu: madeInColumnMenu })] })));
13
+ }));
14
+ //# sourceMappingURL=multiselect-filter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multiselect-filter.js","sourceRoot":"","sources":["../../../src/demo/filters/multiselect-filter.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAM,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,CAAC,MAAM,kBAAkB,GAAO,OAAO,CAAC;IAC1C,UAAU,EAAE,CAAC,UAAU,CAAC;CAC3B,CAAC,CACE,QAAQ,CAAC,GAAG,EAAE;IACV,MAAM,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;IAEpE,MAAM,gBAAgB,GAAG,OAAO,CAC5B,GAAG,EAAE,CAAC,2BAA2B,CAAC,aAAa,CAAC,EAChD,CAAC,aAAa,CAAC,CAClB,CAAC;IAEF,OAAO,CACH,MAAC,KAAK,kBAAC,UAAU,EAAE,UAAU,iBACzB,KAAC,WAAW,IAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,OAAO,GAAG,EAE3E,KAAC,WAAW,IAAC,KAAK,EAAC,aAAa,EAAC,KAAK,EAAC,cAAc,EAAC,KAAK,EAAC,OAAO,GAAG,EAEtE,KAAC,WAAW,IAAC,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAC,SAAS,EAAC,UAAU,EAAE,gBAAgB,GAAI,KACxE,CACX,CAAC;AACN,CAAC,CAAC,CACL,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ export declare const TableExampleDate: FC;
3
+ export declare const TableExampleNumber: FC;
4
+ export declare const TableExampleCurrency: FC;
5
+ //# sourceMappingURL=range-filter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range-filter.d.ts","sourceRoot":"","sources":["../../../src/demo/filters/range-filter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAa3B,eAAO,MAAM,gBAAgB,EAAE,EAkB9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,EAkBhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,EAkBlC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { observer } from 'mobx-react';
3
+ import { provide, useDependencies } from '@servicetitan/react-ioc';
4
+ import { Table, TableColumn, DateRangeColumnMenuFilter, NumericRangeColumnMenuFilter, CurrencyRangeColumnMenuFilter, } from '../..';
5
+ import { TableStore } from './table.store';
6
+ export const TableExampleDate = provide({
7
+ singletons: [TableStore],
8
+ })(observer(() => {
9
+ const [{ tableState }] = useDependencies(TableStore);
10
+ return (_jsxs(Table, Object.assign({ tableState: tableState }, { children: [_jsx(TableColumn, { field: "ProductID", title: "ID", editable: false, width: "100px" }), _jsx(TableColumn, { field: "ProductName", title: "Product Name", width: "240px" }), _jsx(TableColumn, { field: "UnitsOnOrder", title: "Units On Order", columnMenu: DateRangeColumnMenuFilter })] })));
11
+ }));
12
+ export const TableExampleNumber = provide({
13
+ singletons: [TableStore],
14
+ })(observer(() => {
15
+ const [{ tableState }] = useDependencies(TableStore);
16
+ return (_jsxs(Table, Object.assign({ tableState: tableState }, { children: [_jsx(TableColumn, { field: "ProductID", title: "ID", editable: false, width: "100px" }), _jsx(TableColumn, { field: "ProductName", title: "Product Name", width: "240px" }), _jsx(TableColumn, { field: "UnitsInStock", title: "Units In Stock", columnMenu: NumericRangeColumnMenuFilter })] })));
17
+ }));
18
+ export const TableExampleCurrency = provide({
19
+ singletons: [TableStore],
20
+ })(observer(() => {
21
+ const [{ tableState }] = useDependencies(TableStore);
22
+ return (_jsxs(Table, Object.assign({ tableState: tableState }, { children: [_jsx(TableColumn, { field: "ProductID", title: "ID", editable: false, width: "100px" }), _jsx(TableColumn, { field: "ProductName", title: "Product Name", width: "240px" }), _jsx(TableColumn, { field: "UnitPrice", title: "Unit Price", columnMenu: CurrencyRangeColumnMenuFilter })] })));
23
+ }));
24
+ //# sourceMappingURL=range-filter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range-filter.js","sourceRoot":"","sources":["../../../src/demo/filters/range-filter.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EACH,KAAK,EACL,WAAW,EACX,yBAAyB,EACzB,4BAA4B,EAC5B,6BAA6B,GAChC,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,CAAC,MAAM,gBAAgB,GAAO,OAAO,CAAC;IACxC,UAAU,EAAE,CAAC,UAAU,CAAC;CAC3B,CAAC,CACE,QAAQ,CAAC,GAAG,EAAE;IACV,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;IAErD,OAAO,CACH,MAAC,KAAK,kBAAC,UAAU,EAAE,UAAU,iBACzB,KAAC,WAAW,IAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,OAAO,GAAG,EAC3E,KAAC,WAAW,IAAC,KAAK,EAAC,aAAa,EAAC,KAAK,EAAC,cAAc,EAAC,KAAK,EAAC,OAAO,GAAG,EACtE,KAAC,WAAW,IACR,KAAK,EAAC,cAAc,EACpB,KAAK,EAAC,gBAAgB,EACtB,UAAU,EAAE,yBAAyB,GACvC,KACE,CACX,CAAC;AACN,CAAC,CAAC,CACL,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAO,OAAO,CAAC;IAC1C,UAAU,EAAE,CAAC,UAAU,CAAC;CAC3B,CAAC,CACE,QAAQ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UnitsInStock: 39,
12
- UnitsOnOrder: new Date('1/11/2019'),
12
+ UnitsOnOrder: new Date('1/11/2023'),
13
13
  Discontinued: false,
14
14
  AvailableFor: UserRole.Admin,
15
15
  },
@@ -22,7 +22,7 @@ export const products = [
22
22
  QuantityPerUnit: '24 - 12 oz bottles',
23
23
  UnitPrice: 19.0,
24
24
  UnitsInStock: 17,
25
- UnitsOnOrder: new Date('2/11/2019'),
25
+ UnitsOnOrder: new Date('2/11/2023'),
26
26
  Discontinued: false,
27
27
  },
28
28
  {
@@ -34,7 +34,7 @@ export const products = [
34
34
  QuantityPerUnit: '12 - 550 ml bottles',
35
35
  UnitPrice: 10.0,
36
36
  UnitsInStock: 13,
37
- UnitsOnOrder: new Date('3/11/2019'),
37
+ UnitsOnOrder: new Date('3/11/2023'),
38
38
  Discontinued: false,
39
39
  AvailableFor: UserRole.Owner,
40
40
  },
@@ -47,7 +47,7 @@ export const products = [
47
47
  QuantityPerUnit: '48 - 6 oz jars',
48
48
  UnitPrice: 22.0,
49
49
  UnitsInStock: 53,
50
- UnitsOnOrder: new Date('4/11/2019'),
50
+ UnitsOnOrder: new Date('4/11/2023'),
51
51
  Discontinued: false,
52
52
  },
53
53
  {
@@ -59,7 +59,7 @@ export const products = [
59
59
  QuantityPerUnit: '36 boxes',
60
60
  UnitPrice: 21.35,
61
61
  UnitsInStock: 0,
62
- UnitsOnOrder: new Date('5/11/2019'),
62
+ UnitsOnOrder: new Date('5/11/2023'),
63
63
  Discontinued: true,
64
64
  AvailableFor: UserRole.GeneralOffice,
65
65
  },
@@ -72,7 +72,7 @@ export const products = [
72
72
  QuantityPerUnit: '12 - 8 oz jars',
73
73
  UnitPrice: 25.0,
74
74
  UnitsInStock: 120,
75
- UnitsOnOrder: new Date('6/11/2019'),
75
+ UnitsOnOrder: new Date('6/11/2023'),
76
76
  Discontinued: false,
77
77
  },
78
78
  {
@@ -84,7 +84,7 @@ export const products = [
84
84
  QuantityPerUnit: '12 - 1 lb pkgs.',
85
85
  UnitPrice: 30.0,
86
86
  UnitsInStock: 15,
87
- UnitsOnOrder: new Date('7/11/2019'),
87
+ UnitsOnOrder: new Date('7/11/2023'),
88
88
  Discontinued: false,
89
89
  },
90
90
  {
@@ -96,7 +96,7 @@ export const products = [
96
96
  QuantityPerUnit: '12 - 12 oz jars',
97
97
  UnitPrice: 40.0,
98
98
  UnitsInStock: 6,
99
- UnitsOnOrder: new Date('8/11/2019'),
99
+ UnitsOnOrder: new Date('8/11/2023'),
100
100
  Discontinued: false,
101
101
  },
102
102
  {
@@ -108,7 +108,7 @@ export const products = [
108
108
  QuantityPerUnit: '18 - 500 g pkgs.',
109
109
  UnitPrice: 97.0,
110
110
  UnitsInStock: 29,
111
- UnitsOnOrder: new Date('9/11/2019'),
111
+ UnitsOnOrder: new Date('9/11/2023'),
112
112
  Discontinued: true,
113
113
  },
114
114
  {
@@ -120,7 +120,7 @@ export const products = [
120
120
  QuantityPerUnit: '12 - 200 ml jars',
121
121
  UnitPrice: 31.0,
122
122
  UnitsInStock: 31,
123
- UnitsOnOrder: new Date('10/11/2019'),
123
+ UnitsOnOrder: new Date('10/11/2023'),
124
124
  Discontinued: false,
125
125
  },
126
126
  ];
@@ -4,7 +4,7 @@ export * from './standard-filter-with-multiselect/standard-filter-with-multisele
4
4
  export * from './time-filter/time-filter';
5
5
  export * from './column-menu-filters';
6
6
  export * from './field-values-filter';
7
- export * from './multiselect-filter';
7
+ export * from './multiselect-filter/multiselect-filter';
8
8
  export * from './numeric-filter-extended/numeric-filter-extended';
9
9
  export * from './single-select/single-select-filter';
10
10
  export * from './async-select/async-select-filter';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/filters/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qEAAqE,CAAC;AACpF,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mDAAmD,CAAC;AAClE,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/filters/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qEAAqE,CAAC;AACpF,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yCAAyC,CAAC;AACxD,cAAc,mDAAmD,CAAC;AAClE,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC"}
@@ -4,7 +4,7 @@ export * from './standard-filter-with-multiselect/standard-filter-with-multisele
4
4
  export * from './time-filter/time-filter';
5
5
  export * from './column-menu-filters';
6
6
  export * from './field-values-filter';
7
- export * from './multiselect-filter';
7
+ export * from './multiselect-filter/multiselect-filter';
8
8
  export * from './numeric-filter-extended/numeric-filter-extended';
9
9
  export * from './single-select/single-select-filter';
10
10
  export * from './async-select/async-select-filter';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/filters/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qEAAqE,CAAC;AACpF,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mDAAmD,CAAC;AAClE,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/filters/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qEAAqE,CAAC;AACpF,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yCAAyC,CAAC;AACxD,cAAc,mDAAmD,CAAC;AAClE,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multiselect-filter.d.ts","sourceRoot":"","sources":["../../../src/filters/multiselect-filter/multiselect-filter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAAM,MAAM,OAAO,CAAC;AAuCjE,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,sFAqB5F;AAED,wBAAgB,sCAAsC,CAAC,CAAC,EACpD,IAAI,EAAE,CAAC,EAAE,EACT,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,sFAgCtC;AAED,wBAAgB,oCAAoC,CAAC,CAAC,EAClD,IAAI,EAAE,CAAC,EAAE,EACT,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,sFAgCtC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Component } from 'react';
3
3
  import { Checkbox } from '@servicetitan/design-system';
4
- import { renderCustomColumnMenuFilter } from './column-menu-filters';
4
+ import { renderCustomColumnMenuFilter } from '../column-menu-filters';
5
5
  class Selector extends Component {
6
6
  constructor() {
7
7
  super(...arguments);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multiselect-filter.js","sourceRoot":"","sources":["../../../src/filters/multiselect-filter/multiselect-filter.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAiC,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAwB,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAE7E,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AASt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AAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,EACvC,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,QAAQ,EAAE,UAAU,GACtB,CACL,CAAC;QACN,CAAC;KACJ;IAED,OAAO,4BAA4B,CAAC,UAAU,CAAC,CAAC;AACpD,CAAC"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const DefaultMultiSelect: () => JSX.Element;
7
+ //# sourceMappingURL=multiselect-filter.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multiselect-filter.stories.d.ts","sourceRoot":"","sources":["../../../src/filters/multiselect-filter/multiselect-filter.stories.tsx"],"names":[],"mappings":";;;;AAEA,wBAEE;AAEF,eAAO,MAAM,kBAAkB,mBAA+B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { TableExampleSimple } from '../../demo/filters/multiselect-filter';
3
+ export default {
4
+ title: 'Table/Filters/MultiSelect',
5
+ };
6
+ export const DefaultMultiSelect = () => _jsx(TableExampleSimple, {});
7
+ //# sourceMappingURL=multiselect-filter.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multiselect-filter.stories.js","sourceRoot":"","sources":["../../../src/filters/multiselect-filter/multiselect-filter.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAE3E,eAAe;IACX,KAAK,EAAE,2BAA2B;CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,KAAC,kBAAkB,KAAG,CAAC"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ title: string;
4
+ };
5
+ export default _default;
6
+ export declare const DateRange: () => JSX.Element;
7
+ export declare const NumericRange: () => JSX.Element;
8
+ export declare const CurrencyRange: () => JSX.Element;
9
+ //# sourceMappingURL=range-filter.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range-filter.stories.d.ts","sourceRoot":"","sources":["../../../src/filters/range-filter/range-filter.stories.tsx"],"names":[],"mappings":";;;;AAMA,wBAEE;AAEF,eAAO,MAAM,SAAS,mBAA6B,CAAC;AACpD,eAAO,MAAM,YAAY,mBAA+B,CAAC;AACzD,eAAO,MAAM,aAAa,mBAAiC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { TableExampleCurrency, TableExampleDate, TableExampleNumber, } from '../../demo/filters/range-filter';
3
+ export default {
4
+ title: 'Table/Filters/Range',
5
+ };
6
+ export const DateRange = () => _jsx(TableExampleDate, {});
7
+ export const NumericRange = () => _jsx(TableExampleNumber, {});
8
+ export const CurrencyRange = () => _jsx(TableExampleCurrency, {});
9
+ //# sourceMappingURL=range-filter.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range-filter.stories.js","sourceRoot":"","sources":["../../../src/filters/range-filter/range-filter.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EACH,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,GACrB,MAAM,iCAAiC,CAAC;AAEzC,eAAe;IACX,KAAK,EAAE,qBAAqB;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,KAAC,gBAAgB,KAAG,CAAC;AACpD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,KAAC,kBAAkB,KAAG,CAAC;AACzD,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,KAAC,oBAAoB,KAAG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/table",
3
- "version": "24.0.0",
3
+ "version": "24.2.0",
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": "^24.0.0",
40
+ "@servicetitan/data-query": "^24.2.0",
41
41
  "@servicetitan/design-system": ">=12.4.1",
42
- "@servicetitan/form": "^24.0.0",
42
+ "@servicetitan/form": "^24.2.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": "^24.0.0",
56
+ "@servicetitan/data-query": "^24.2.0",
57
57
  "@servicetitan/design-system": ">=12.4.1",
58
- "@servicetitan/form": "^24.0.0",
58
+ "@servicetitan/form": "^24.2.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": "136cde3c32f5798d1c73dd456b16bd691d0cf257"
75
+ "gitHead": "30e7e25285f3bfbc348473ebcb7f03edd088e64e"
76
76
  }
@@ -0,0 +1,32 @@
1
+ import { useMemo, FC } from 'react';
2
+
3
+ import { provide, useDependencies } from '@servicetitan/react-ioc';
4
+
5
+ import { observer } from 'mobx-react';
6
+
7
+ import { Table, TableColumn, multiSelectColumnMenuFilter } from '../..';
8
+
9
+ import { TableStore } from './table.store';
10
+
11
+ export const TableExampleSimple: FC = provide({
12
+ singletons: [TableStore],
13
+ })(
14
+ observer(() => {
15
+ const [{ tableState, madeInOptions }] = useDependencies(TableStore);
16
+
17
+ const madeInColumnMenu = useMemo(
18
+ () => multiSelectColumnMenuFilter(madeInOptions),
19
+ [madeInOptions]
20
+ );
21
+
22
+ return (
23
+ <Table tableState={tableState}>
24
+ <TableColumn field="ProductID" title="ID" editable={false} width="100px" />
25
+
26
+ <TableColumn field="ProductName" title="Product Name" width="240px" />
27
+
28
+ <TableColumn field="MadeIn" title="Made In" columnMenu={madeInColumnMenu} />
29
+ </Table>
30
+ );
31
+ })
32
+ );
@@ -0,0 +1,72 @@
1
+ import { FC } from 'react';
2
+ import { observer } from 'mobx-react';
3
+ import { provide, useDependencies } from '@servicetitan/react-ioc';
4
+
5
+ import {
6
+ Table,
7
+ TableColumn,
8
+ DateRangeColumnMenuFilter,
9
+ NumericRangeColumnMenuFilter,
10
+ CurrencyRangeColumnMenuFilter,
11
+ } from '../..';
12
+ import { TableStore } from './table.store';
13
+
14
+ export const TableExampleDate: FC = provide({
15
+ singletons: [TableStore],
16
+ })(
17
+ observer(() => {
18
+ const [{ tableState }] = useDependencies(TableStore);
19
+
20
+ return (
21
+ <Table tableState={tableState}>
22
+ <TableColumn field="ProductID" title="ID" editable={false} width="100px" />
23
+ <TableColumn field="ProductName" title="Product Name" width="240px" />
24
+ <TableColumn
25
+ field="UnitsOnOrder"
26
+ title="Units On Order"
27
+ columnMenu={DateRangeColumnMenuFilter}
28
+ />
29
+ </Table>
30
+ );
31
+ })
32
+ );
33
+
34
+ export const TableExampleNumber: FC = provide({
35
+ singletons: [TableStore],
36
+ })(
37
+ observer(() => {
38
+ const [{ tableState }] = useDependencies(TableStore);
39
+
40
+ return (
41
+ <Table tableState={tableState}>
42
+ <TableColumn field="ProductID" title="ID" editable={false} width="100px" />
43
+ <TableColumn field="ProductName" title="Product Name" width="240px" />
44
+ <TableColumn
45
+ field="UnitsInStock"
46
+ title="Units In Stock"
47
+ columnMenu={NumericRangeColumnMenuFilter}
48
+ />
49
+ </Table>
50
+ );
51
+ })
52
+ );
53
+
54
+ export const TableExampleCurrency: FC = provide({
55
+ singletons: [TableStore],
56
+ })(
57
+ observer(() => {
58
+ const [{ tableState }] = useDependencies(TableStore);
59
+
60
+ return (
61
+ <Table tableState={tableState}>
62
+ <TableColumn field="ProductID" title="ID" editable={false} width="100px" />
63
+ <TableColumn field="ProductName" title="Product Name" width="240px" />
64
+ <TableColumn
65
+ field="UnitPrice"
66
+ title="Unit Price"
67
+ columnMenu={CurrencyRangeColumnMenuFilter}
68
+ />
69
+ </Table>
70
+ );
71
+ })
72
+ );
@@ -10,7 +10,7 @@ export const products: Product[] = [
10
10
  QuantityPerUnit: '10 boxes x 20 bags',
11
11
  UnitPrice: 18.0,
12
12
  UnitsInStock: 39,
13
- UnitsOnOrder: new Date('1/11/2019'),
13
+ UnitsOnOrder: new Date('1/11/2023'),
14
14
  Discontinued: false,
15
15
  AvailableFor: UserRole.Admin,
16
16
  },
@@ -23,7 +23,7 @@ export const products: Product[] = [
23
23
  QuantityPerUnit: '24 - 12 oz bottles',
24
24
  UnitPrice: 19.0,
25
25
  UnitsInStock: 17,
26
- UnitsOnOrder: new Date('2/11/2019'),
26
+ UnitsOnOrder: new Date('2/11/2023'),
27
27
  Discontinued: false,
28
28
  },
29
29
  {
@@ -35,7 +35,7 @@ export const products: Product[] = [
35
35
  QuantityPerUnit: '12 - 550 ml bottles',
36
36
  UnitPrice: 10.0,
37
37
  UnitsInStock: 13,
38
- UnitsOnOrder: new Date('3/11/2019'),
38
+ UnitsOnOrder: new Date('3/11/2023'),
39
39
  Discontinued: false,
40
40
  AvailableFor: UserRole.Owner,
41
41
  },
@@ -48,7 +48,7 @@ export const products: Product[] = [
48
48
  QuantityPerUnit: '48 - 6 oz jars',
49
49
  UnitPrice: 22.0,
50
50
  UnitsInStock: 53,
51
- UnitsOnOrder: new Date('4/11/2019'),
51
+ UnitsOnOrder: new Date('4/11/2023'),
52
52
  Discontinued: false,
53
53
  },
54
54
  {
@@ -60,7 +60,7 @@ export const products: Product[] = [
60
60
  QuantityPerUnit: '36 boxes',
61
61
  UnitPrice: 21.35,
62
62
  UnitsInStock: 0,
63
- UnitsOnOrder: new Date('5/11/2019'),
63
+ UnitsOnOrder: new Date('5/11/2023'),
64
64
  Discontinued: true,
65
65
  AvailableFor: UserRole.GeneralOffice,
66
66
  },
@@ -73,7 +73,7 @@ export const products: Product[] = [
73
73
  QuantityPerUnit: '12 - 8 oz jars',
74
74
  UnitPrice: 25.0,
75
75
  UnitsInStock: 120,
76
- UnitsOnOrder: new Date('6/11/2019'),
76
+ UnitsOnOrder: new Date('6/11/2023'),
77
77
  Discontinued: false,
78
78
  },
79
79
  {
@@ -85,7 +85,7 @@ export const products: Product[] = [
85
85
  QuantityPerUnit: '12 - 1 lb pkgs.',
86
86
  UnitPrice: 30.0,
87
87
  UnitsInStock: 15,
88
- UnitsOnOrder: new Date('7/11/2019'),
88
+ UnitsOnOrder: new Date('7/11/2023'),
89
89
  Discontinued: false,
90
90
  },
91
91
  {
@@ -97,7 +97,7 @@ export const products: Product[] = [
97
97
  QuantityPerUnit: '12 - 12 oz jars',
98
98
  UnitPrice: 40.0,
99
99
  UnitsInStock: 6,
100
- UnitsOnOrder: new Date('8/11/2019'),
100
+ UnitsOnOrder: new Date('8/11/2023'),
101
101
  Discontinued: false,
102
102
  },
103
103
  {
@@ -109,7 +109,7 @@ export const products: Product[] = [
109
109
  QuantityPerUnit: '18 - 500 g pkgs.',
110
110
  UnitPrice: 97.0,
111
111
  UnitsInStock: 29,
112
- UnitsOnOrder: new Date('9/11/2019'),
112
+ UnitsOnOrder: new Date('9/11/2023'),
113
113
  Discontinued: true,
114
114
  },
115
115
  {
@@ -121,7 +121,7 @@ export const products: Product[] = [
121
121
  QuantityPerUnit: '12 - 200 ml jars',
122
122
  UnitPrice: 31.0,
123
123
  UnitsInStock: 31,
124
- UnitsOnOrder: new Date('10/11/2019'),
124
+ UnitsOnOrder: new Date('10/11/2023'),
125
125
  Discontinued: false,
126
126
  },
127
127
  ];
@@ -4,7 +4,7 @@ export * from './standard-filter-with-multiselect/standard-filter-with-multisele
4
4
  export * from './time-filter/time-filter';
5
5
  export * from './column-menu-filters';
6
6
  export * from './field-values-filter';
7
- export * from './multiselect-filter';
7
+ export * from './multiselect-filter/multiselect-filter';
8
8
  export * from './numeric-filter-extended/numeric-filter-extended';
9
9
  export * from './single-select/single-select-filter';
10
10
  export * from './async-select/async-select-filter';
@@ -0,0 +1,7 @@
1
+ import { TableExampleSimple } from '../../demo/filters/multiselect-filter';
2
+
3
+ export default {
4
+ title: 'Table/Filters/MultiSelect',
5
+ };
6
+
7
+ export const DefaultMultiSelect = () => <TableExampleSimple />;
@@ -2,7 +2,7 @@ import { Component, SyntheticEvent, ReactNode, FC } from 'react';
2
2
 
3
3
  import { TableFilterCellProps, Checkbox } from '@servicetitan/design-system';
4
4
 
5
- import { renderCustomColumnMenuFilter } from './column-menu-filters';
5
+ import { renderCustomColumnMenuFilter } from '../column-menu-filters';
6
6
 
7
7
  interface SelectorProps<T> {
8
8
  options: T[];
@@ -0,0 +1,13 @@
1
+ import {
2
+ TableExampleCurrency,
3
+ TableExampleDate,
4
+ TableExampleNumber,
5
+ } from '../../demo/filters/range-filter';
6
+
7
+ export default {
8
+ title: 'Table/Filters/Range',
9
+ };
10
+
11
+ export const DateRange = () => <TableExampleDate />;
12
+ export const NumericRange = () => <TableExampleNumber />;
13
+ export const CurrencyRange = () => <TableExampleCurrency />;
@@ -1 +0,0 @@
1
- {"version":3,"file":"multiselect-filter.d.ts","sourceRoot":"","sources":["../../src/filters/multiselect-filter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAAM,MAAM,OAAO,CAAC;AAuCjE,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,sFAqB5F;AAED,wBAAgB,sCAAsC,CAAC,CAAC,EACpD,IAAI,EAAE,CAAC,EAAE,EACT,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,sFAgCtC;AAED,wBAAgB,oCAAoC,CAAC,CAAC,EAClD,IAAI,EAAE,CAAC,EAAE,EACT,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAA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