@servicetitan/table 21.7.1 → 22.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. package/CHANGELOG.md +550 -0
  2. package/package.json +8 -8
  3. package/dist/demo/index.d.ts +0 -4
  4. package/dist/demo/index.d.ts.map +0 -1
  5. package/dist/demo/index.js +0 -4
  6. package/dist/demo/index.js.map +0 -1
  7. package/dist/demo/master-detail/detail-table.d.ts +0 -4
  8. package/dist/demo/master-detail/detail-table.d.ts.map +0 -1
  9. package/dist/demo/master-detail/detail-table.js +0 -28
  10. package/dist/demo/master-detail/detail-table.js.map +0 -1
  11. package/dist/demo/master-detail/detail-table.store.d.ts +0 -14
  12. package/dist/demo/master-detail/detail-table.store.d.ts.map +0 -1
  13. package/dist/demo/master-detail/detail-table.store.js +0 -104
  14. package/dist/demo/master-detail/detail-table.store.js.map +0 -1
  15. package/dist/demo/master-detail/index.d.ts +0 -2
  16. package/dist/demo/master-detail/index.d.ts.map +0 -1
  17. package/dist/demo/master-detail/index.js +0 -2
  18. package/dist/demo/master-detail/index.js.map +0 -1
  19. package/dist/demo/master-detail/master-table.store.d.ts +0 -14
  20. package/dist/demo/master-detail/master-table.store.d.ts.map +0 -1
  21. package/dist/demo/master-detail/master-table.store.js +0 -103
  22. package/dist/demo/master-detail/master-table.store.js.map +0 -1
  23. package/dist/demo/master-detail/product-detail.d.ts +0 -8
  24. package/dist/demo/master-detail/product-detail.d.ts.map +0 -1
  25. package/dist/demo/master-detail/product-detail.js +0 -2
  26. package/dist/demo/master-detail/product-detail.js.map +0 -1
  27. package/dist/demo/master-detail/product-details.d.ts +0 -3
  28. package/dist/demo/master-detail/product-details.d.ts.map +0 -1
  29. package/dist/demo/master-detail/product-details.js +0 -55
  30. package/dist/demo/master-detail/product-details.js.map +0 -1
  31. package/dist/demo/master-detail/product.d.ts +0 -26
  32. package/dist/demo/master-detail/product.d.ts.map +0 -1
  33. package/dist/demo/master-detail/product.js +0 -16
  34. package/dist/demo/master-detail/product.js.map +0 -1
  35. package/dist/demo/master-detail/products.d.ts +0 -3
  36. package/dist/demo/master-detail/products.d.ts.map +0 -1
  37. package/dist/demo/master-detail/products.js +0 -117
  38. package/dist/demo/master-detail/products.js.map +0 -1
  39. package/dist/demo/master-detail/table-master-detail.d.ts +0 -3
  40. package/dist/demo/master-detail/table-master-detail.d.ts.map +0 -1
  41. package/dist/demo/master-detail/table-master-detail.js +0 -24
  42. package/dist/demo/master-detail/table-master-detail.js.map +0 -1
  43. package/dist/demo/overview/actions-cell.d.ts +0 -5
  44. package/dist/demo/overview/actions-cell.d.ts.map +0 -1
  45. package/dist/demo/overview/actions-cell.js +0 -38
  46. package/dist/demo/overview/actions-cell.js.map +0 -1
  47. package/dist/demo/overview/index.d.ts +0 -2
  48. package/dist/demo/overview/index.d.ts.map +0 -1
  49. package/dist/demo/overview/index.js +0 -2
  50. package/dist/demo/overview/index.js.map +0 -1
  51. package/dist/demo/overview/product.d.ts +0 -27
  52. package/dist/demo/overview/product.d.ts.map +0 -1
  53. package/dist/demo/overview/product.js +0 -16
  54. package/dist/demo/overview/product.js.map +0 -1
  55. package/dist/demo/overview/products.d.ts +0 -3
  56. package/dist/demo/overview/products.d.ts.map +0 -1
  57. package/dist/demo/overview/products.js +0 -127
  58. package/dist/demo/overview/products.js.map +0 -1
  59. package/dist/demo/overview/table.d.ts +0 -6
  60. package/dist/demo/overview/table.d.ts.map +0 -1
  61. package/dist/demo/overview/table.js +0 -44
  62. package/dist/demo/overview/table.js.map +0 -1
  63. package/dist/demo/overview/table.store.d.ts +0 -15
  64. package/dist/demo/overview/table.store.d.ts.map +0 -1
  65. package/dist/demo/overview/table.store.js +0 -92
  66. package/dist/demo/overview/table.store.js.map +0 -1
  67. package/dist/demo/state-caching/beverages.d.ts +0 -3
  68. package/dist/demo/state-caching/beverages.d.ts.map +0 -1
  69. package/dist/demo/state-caching/beverages.js +0 -48
  70. package/dist/demo/state-caching/beverages.js.map +0 -1
  71. package/dist/demo/state-caching/index.d.ts +0 -2
  72. package/dist/demo/state-caching/index.d.ts.map +0 -1
  73. package/dist/demo/state-caching/index.js +0 -2
  74. package/dist/demo/state-caching/index.js.map +0 -1
  75. package/dist/demo/state-caching/product.d.ts +0 -6
  76. package/dist/demo/state-caching/product.d.ts.map +0 -1
  77. package/dist/demo/state-caching/product.js +0 -2
  78. package/dist/demo/state-caching/product.js.map +0 -1
  79. package/dist/demo/state-caching/products.d.ts +0 -3
  80. package/dist/demo/state-caching/products.d.ts.map +0 -1
  81. package/dist/demo/state-caching/products.js +0 -53
  82. package/dist/demo/state-caching/products.js.map +0 -1
  83. package/dist/demo/state-caching/state-caching-table.d.ts +0 -3
  84. package/dist/demo/state-caching/state-caching-table.d.ts.map +0 -1
  85. package/dist/demo/state-caching/state-caching-table.js +0 -14
  86. package/dist/demo/state-caching/state-caching-table.js.map +0 -1
  87. package/dist/demo/state-caching/state-caching-table.store.d.ts +0 -13
  88. package/dist/demo/state-caching/state-caching-table.store.d.ts.map +0 -1
  89. package/dist/demo/state-caching/state-caching-table.store.js +0 -70
  90. package/dist/demo/state-caching/state-caching-table.store.js.map +0 -1
  91. package/dist/editable-cell/boolean-editable-cell.d.ts +0 -3
  92. package/dist/editable-cell/boolean-editable-cell.d.ts.map +0 -1
  93. package/dist/editable-cell/boolean-editable-cell.js +0 -14
  94. package/dist/editable-cell/boolean-editable-cell.js.map +0 -1
  95. package/dist/editable-cell/date-editable-cell.d.ts +0 -3
  96. package/dist/editable-cell/date-editable-cell.d.ts.map +0 -1
  97. package/dist/editable-cell/date-editable-cell.js +0 -14
  98. package/dist/editable-cell/date-editable-cell.js.map +0 -1
  99. package/dist/editable-cell/get-action-cell.d.ts +0 -13
  100. package/dist/editable-cell/get-action-cell.d.ts.map +0 -1
  101. package/dist/editable-cell/get-action-cell.js +0 -18
  102. package/dist/editable-cell/get-action-cell.js.map +0 -1
  103. package/dist/editable-cell/get-editable-cell.d.ts +0 -13
  104. package/dist/editable-cell/get-editable-cell.d.ts.map +0 -1
  105. package/dist/editable-cell/get-editable-cell.js +0 -18
  106. package/dist/editable-cell/get-editable-cell.js.map +0 -1
  107. package/dist/editable-cell/get-select-editable-cell.d.ts +0 -10
  108. package/dist/editable-cell/get-select-editable-cell.d.ts.map +0 -1
  109. package/dist/editable-cell/get-select-editable-cell.js +0 -19
  110. package/dist/editable-cell/get-select-editable-cell.js.map +0 -1
  111. package/dist/editable-cell/index.d.ts +0 -8
  112. package/dist/editable-cell/index.d.ts.map +0 -1
  113. package/dist/editable-cell/index.js +0 -8
  114. package/dist/editable-cell/index.js.map +0 -1
  115. package/dist/editable-cell/numeric-editable-cell.d.ts +0 -3
  116. package/dist/editable-cell/numeric-editable-cell.d.ts.map +0 -1
  117. package/dist/editable-cell/numeric-editable-cell.js +0 -15
  118. package/dist/editable-cell/numeric-editable-cell.js.map +0 -1
  119. package/dist/editable-cell/text-editable-cell.d.ts +0 -9
  120. package/dist/editable-cell/text-editable-cell.d.ts.map +0 -1
  121. package/dist/editable-cell/text-editable-cell.js +0 -20
  122. package/dist/editable-cell/text-editable-cell.js.map +0 -1
  123. package/dist/export/export.d.ts +0 -10
  124. package/dist/export/export.d.ts.map +0 -1
  125. package/dist/export/export.js +0 -6
  126. package/dist/export/export.js.map +0 -1
  127. package/dist/export/index.d.ts +0 -2
  128. package/dist/export/index.d.ts.map +0 -1
  129. package/dist/export/index.js +0 -2
  130. package/dist/export/index.js.map +0 -1
  131. package/dist/filters/column-menu-filters.d.ts +0 -5
  132. package/dist/filters/column-menu-filters.d.ts.map +0 -1
  133. package/dist/filters/column-menu-filters.js +0 -9
  134. package/dist/filters/column-menu-filters.js.map +0 -1
  135. package/dist/filters/datetime-filter/datetime-filter.d.ts +0 -3
  136. package/dist/filters/datetime-filter/datetime-filter.d.ts.map +0 -1
  137. package/dist/filters/datetime-filter/datetime-filter.js +0 -71
  138. package/dist/filters/datetime-filter/datetime-filter.js.map +0 -1
  139. package/dist/filters/field-values-filter.d.ts +0 -6
  140. package/dist/filters/field-values-filter.d.ts.map +0 -1
  141. package/dist/filters/field-values-filter.js +0 -155
  142. package/dist/filters/field-values-filter.js.map +0 -1
  143. package/dist/filters/index.d.ts +0 -9
  144. package/dist/filters/index.d.ts.map +0 -1
  145. package/dist/filters/index.js +0 -9
  146. package/dist/filters/index.js.map +0 -1
  147. package/dist/filters/multiselect-filter.d.ts +0 -5
  148. package/dist/filters/multiselect-filter.d.ts.map +0 -1
  149. package/dist/filters/multiselect-filter.js +0 -107
  150. package/dist/filters/multiselect-filter.js.map +0 -1
  151. package/dist/filters/numeric-filter-extended/numeric-extended-operators.d.ts +0 -6
  152. package/dist/filters/numeric-filter-extended/numeric-extended-operators.d.ts.map +0 -1
  153. package/dist/filters/numeric-filter-extended/numeric-extended-operators.js +0 -6
  154. package/dist/filters/numeric-filter-extended/numeric-extended-operators.js.map +0 -1
  155. package/dist/filters/numeric-filter-extended/numeric-filter-extended.d.ts +0 -3
  156. package/dist/filters/numeric-filter-extended/numeric-filter-extended.d.ts.map +0 -1
  157. package/dist/filters/numeric-filter-extended/numeric-filter-extended.js +0 -27
  158. package/dist/filters/numeric-filter-extended/numeric-filter-extended.js.map +0 -1
  159. package/dist/filters/range-filter/range-filter.d.ts +0 -6
  160. package/dist/filters/range-filter/range-filter.d.ts.map +0 -1
  161. package/dist/filters/range-filter/range-filter.js +0 -117
  162. package/dist/filters/range-filter/range-filter.js.map +0 -1
  163. package/dist/filters/standard-filter-with-multiselect/filter-cell-ext.d.ts +0 -21
  164. package/dist/filters/standard-filter-with-multiselect/filter-cell-ext.d.ts.map +0 -1
  165. package/dist/filters/standard-filter-with-multiselect/filter-cell-ext.js +0 -82
  166. package/dist/filters/standard-filter-with-multiselect/filter-cell-ext.js.map +0 -1
  167. package/dist/filters/standard-filter-with-multiselect/multiselect-operators.d.ts +0 -6
  168. package/dist/filters/standard-filter-with-multiselect/multiselect-operators.d.ts.map +0 -1
  169. package/dist/filters/standard-filter-with-multiselect/multiselect-operators.js +0 -6
  170. package/dist/filters/standard-filter-with-multiselect/multiselect-operators.js.map +0 -1
  171. package/dist/filters/standard-filter-with-multiselect/standard-filter-with-multiselect.d.ts +0 -26
  172. package/dist/filters/standard-filter-with-multiselect/standard-filter-with-multiselect.d.ts.map +0 -1
  173. package/dist/filters/standard-filter-with-multiselect/standard-filter-with-multiselect.js +0 -69
  174. package/dist/filters/standard-filter-with-multiselect/standard-filter-with-multiselect.js.map +0 -1
  175. package/dist/filters/standard-filter-with-multiselect/table-column-menu-filter-ext.d.ts +0 -6
  176. package/dist/filters/standard-filter-with-multiselect/table-column-menu-filter-ext.d.ts.map +0 -1
  177. package/dist/filters/standard-filter-with-multiselect/table-column-menu-filter-ext.js +0 -30
  178. package/dist/filters/standard-filter-with-multiselect/table-column-menu-filter-ext.js.map +0 -1
  179. package/dist/filters/time-filter/time-filter.d.ts +0 -3
  180. package/dist/filters/time-filter/time-filter.d.ts.map +0 -1
  181. package/dist/filters/time-filter/time-filter.js +0 -71
  182. package/dist/filters/time-filter/time-filter.js.map +0 -1
  183. package/dist/index.d.ts +0 -10
  184. package/dist/index.d.ts.map +0 -1
  185. package/dist/index.js +0 -9
  186. package/dist/index.js.map +0 -1
  187. package/dist/select-cell/index.d.ts +0 -2
  188. package/dist/select-cell/index.d.ts.map +0 -1
  189. package/dist/select-cell/index.js +0 -2
  190. package/dist/select-cell/index.js.map +0 -1
  191. package/dist/select-cell/select-cell.d.ts +0 -25
  192. package/dist/select-cell/select-cell.d.ts.map +0 -1
  193. package/dist/select-cell/select-cell.js +0 -35
  194. package/dist/select-cell/select-cell.js.map +0 -1
  195. package/dist/table-state.d.ts +0 -161
  196. package/dist/table-state.d.ts.map +0 -1
  197. package/dist/table-state.js +0 -1106
  198. package/dist/table-state.js.map +0 -1
  199. package/dist/table.d.ts +0 -40
  200. package/dist/table.d.ts.map +0 -1
  201. package/dist/table.js +0 -231
  202. package/dist/table.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"actions-cell.js","sourceRoot":"","sources":["../../../src/demo/overview/actions-cell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OAAO,EAAE,IAAI,gBAC9B,KAAC,IAAI,IAAC,IAAI,EAAC,MAAM,GAAG,IACf,KACL,GACP,CACR,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC;IACrC,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;CACnB,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './table';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/demo/overview/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './table';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/demo/overview/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -1,27 +0,0 @@
1
- export declare enum UserRole {
2
- Unspecified = 0,
3
- Technician = 1,
4
- GeneralOffice = 2,
5
- Admin = 3,
6
- Owner = 4
7
- }
8
- export declare enum Supplier {
9
- Dan = 1,
10
- Adam = 2,
11
- Charlie = 3,
12
- Benjamin = 4
13
- }
14
- export interface Product {
15
- ProductID: number;
16
- ProductName: string;
17
- Supplier: Supplier;
18
- CategoryID: number;
19
- MadeIn: string;
20
- QuantityPerUnit: string;
21
- UnitPrice: number;
22
- UnitsInStock: number;
23
- UnitsOnOrder: Date;
24
- Discontinued: boolean;
25
- AvailableFor?: UserRole;
26
- }
27
- //# sourceMappingURL=product.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../src/demo/overview/product.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAChB,WAAW,IAAA;IACX,UAAU,IAAA;IACV,aAAa,IAAA;IACb,KAAK,IAAA;IACL,KAAK,IAAA;CACR;AAED,oBAAY,QAAQ;IAChB,GAAG,IAAI;IACP,IAAI,IAAA;IACJ,OAAO,IAAA;IACP,QAAQ,IAAA;CACX;AAED,MAAM,WAAW,OAAO;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,IAAI,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,QAAQ,CAAC;CAC3B"}
@@ -1,16 +0,0 @@
1
- export var UserRole;
2
- (function (UserRole) {
3
- UserRole[UserRole["Unspecified"] = 0] = "Unspecified";
4
- UserRole[UserRole["Technician"] = 1] = "Technician";
5
- UserRole[UserRole["GeneralOffice"] = 2] = "GeneralOffice";
6
- UserRole[UserRole["Admin"] = 3] = "Admin";
7
- UserRole[UserRole["Owner"] = 4] = "Owner";
8
- })(UserRole || (UserRole = {}));
9
- export var Supplier;
10
- (function (Supplier) {
11
- Supplier[Supplier["Dan"] = 1] = "Dan";
12
- Supplier[Supplier["Adam"] = 2] = "Adam";
13
- Supplier[Supplier["Charlie"] = 3] = "Charlie";
14
- Supplier[Supplier["Benjamin"] = 4] = "Benjamin";
15
- })(Supplier || (Supplier = {}));
16
- //# sourceMappingURL=product.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"product.js","sourceRoot":"","sources":["../../../src/demo/overview/product.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,QAMX;AAND,WAAY,QAAQ;IAChB,qDAAW,CAAA;IACX,mDAAU,CAAA;IACV,yDAAa,CAAA;IACb,yCAAK,CAAA;IACL,yCAAK,CAAA;AACT,CAAC,EANW,QAAQ,KAAR,QAAQ,QAMnB;AAED,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAChB,qCAAO,CAAA;IACP,uCAAI,CAAA;IACJ,6CAAO,CAAA;IACP,+CAAQ,CAAA;AACZ,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB"}
@@ -1,3 +0,0 @@
1
- import { Product } from './product';
2
- export declare const products: Product[];
3
- //# sourceMappingURL=products.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../src/demo/overview/products.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAsB,MAAM,WAAW,CAAC;AAExD,eAAO,MAAM,QAAQ,EAAE,OAAO,EA4H7B,CAAC"}
@@ -1,127 +0,0 @@
1
- import { UserRole, Supplier } from './product';
2
- export const products = [
3
- {
4
- ProductID: 1,
5
- ProductName: 'Chai',
6
- Supplier: Supplier.Dan,
7
- CategoryID: 1,
8
- MadeIn: 'China',
9
- QuantityPerUnit: '10 boxes x 20 bags',
10
- UnitPrice: 18.0,
11
- UnitsInStock: 39,
12
- UnitsOnOrder: new Date('1/11/2019'),
13
- Discontinued: false,
14
- AvailableFor: UserRole.Admin,
15
- },
16
- {
17
- ProductID: 2,
18
- ProductName: 'Chang',
19
- Supplier: Supplier.Dan,
20
- CategoryID: 1,
21
- MadeIn: 'Thailand',
22
- QuantityPerUnit: '24 - 12 oz bottles',
23
- UnitPrice: 19.0,
24
- UnitsInStock: 17,
25
- UnitsOnOrder: new Date('2/11/2019'),
26
- Discontinued: false,
27
- },
28
- {
29
- ProductID: 3,
30
- ProductName: 'Aniseed Syrup',
31
- Supplier: Supplier.Dan,
32
- CategoryID: 2,
33
- MadeIn: 'France',
34
- QuantityPerUnit: '12 - 550 ml bottles',
35
- UnitPrice: 10.0,
36
- UnitsInStock: 13,
37
- UnitsOnOrder: new Date('3/11/2019'),
38
- Discontinued: false,
39
- AvailableFor: UserRole.Owner,
40
- },
41
- {
42
- ProductID: 4,
43
- ProductName: "Chef Anton's Cajun Seasoning",
44
- Supplier: Supplier.Adam,
45
- CategoryID: 2,
46
- MadeIn: 'USA',
47
- QuantityPerUnit: '48 - 6 oz jars',
48
- UnitPrice: 22.0,
49
- UnitsInStock: 53,
50
- UnitsOnOrder: new Date('4/11/2019'),
51
- Discontinued: false,
52
- },
53
- {
54
- ProductID: 5,
55
- ProductName: "Chef Anton's Gumbo Mix",
56
- Supplier: Supplier.Adam,
57
- CategoryID: 2,
58
- MadeIn: 'USA',
59
- QuantityPerUnit: '36 boxes',
60
- UnitPrice: 21.35,
61
- UnitsInStock: 0,
62
- UnitsOnOrder: new Date('5/11/2019'),
63
- Discontinued: true,
64
- AvailableFor: UserRole.GeneralOffice,
65
- },
66
- {
67
- ProductID: 6,
68
- ProductName: "Grandma's Boysenberry Spread",
69
- Supplier: Supplier.Charlie,
70
- CategoryID: 2,
71
- MadeIn: 'Norway',
72
- QuantityPerUnit: '12 - 8 oz jars',
73
- UnitPrice: 25.0,
74
- UnitsInStock: 120,
75
- UnitsOnOrder: new Date('6/11/2019'),
76
- Discontinued: false,
77
- },
78
- {
79
- ProductID: 7,
80
- ProductName: "Uncle Bob's Organic Dried Pears",
81
- Supplier: Supplier.Charlie,
82
- CategoryID: 7,
83
- MadeIn: 'USA',
84
- QuantityPerUnit: '12 - 1 lb pkgs.',
85
- UnitPrice: 30.0,
86
- UnitsInStock: 15,
87
- UnitsOnOrder: new Date('7/11/2019'),
88
- Discontinued: false,
89
- },
90
- {
91
- ProductID: 8,
92
- ProductName: 'Northwoods Cranberry Sauce',
93
- Supplier: Supplier.Charlie,
94
- CategoryID: 2,
95
- MadeIn: 'Norway',
96
- QuantityPerUnit: '12 - 12 oz jars',
97
- UnitPrice: 40.0,
98
- UnitsInStock: 6,
99
- UnitsOnOrder: new Date('8/11/2019'),
100
- Discontinued: false,
101
- },
102
- {
103
- ProductID: 9,
104
- ProductName: 'Mishi Kobe Niku',
105
- Supplier: Supplier.Benjamin,
106
- CategoryID: 6,
107
- MadeIn: 'Japan',
108
- QuantityPerUnit: '18 - 500 g pkgs.',
109
- UnitPrice: 97.0,
110
- UnitsInStock: 29,
111
- UnitsOnOrder: new Date('9/11/2019'),
112
- Discontinued: true,
113
- },
114
- {
115
- ProductID: 10,
116
- ProductName: 'Ikura',
117
- Supplier: Supplier.Benjamin,
118
- CategoryID: 8,
119
- MadeIn: 'Japan',
120
- QuantityPerUnit: '12 - 200 ml jars',
121
- UnitPrice: 31.0,
122
- UnitsInStock: 31,
123
- UnitsOnOrder: new Date('10/11/2019'),
124
- Discontinued: false,
125
- },
126
- ];
127
- //# sourceMappingURL=products.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"products.js","sourceRoot":"","sources":["../../../src/demo/overview/products.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,QAAQ,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,CAAC,MAAM,QAAQ,GAAc;IAC/B;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,MAAM;QACnB,QAAQ,EAAE,QAAQ,CAAC,GAAG;QACtB,UAAU,EAAE,CAAC;QACb,MAAM,EAAE,OAAO;QACf,eAAe,EAAE,oBAAoB;QACrC,SAAS,EAAE,IAAI;QACf,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,IAAI,IAAI,CAAC,WAAW,CAAC;QACnC,YAAY,EAAE,KAAK;QACnB,YAAY,EAAE,QAAQ,CAAC,KAAK;KAC/B;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,OAAO;QACpB,QAAQ,EAAE,QAAQ,CAAC,GAAG;QACtB,UAAU,EAAE,CAAC;QACb,MAAM,EAAE,UAAU;QAClB,eAAe,EAAE,oBAAoB;QACrC,SAAS,EAAE,IAAI;QACf,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,IAAI,IAAI,CAAC,WAAW,CAAC;QACnC,YAAY,EAAE,KAAK;KACtB;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,eAAe;QAC5B,QAAQ,EAAE,QAAQ,CAAC,GAAG;Q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AAC,OAAO;QAC1B,UAAU,EAAE,CAAC;QACb,MAAM,EAAE,KAAK;QACb,eAAe,EAAE,iBAAiB;QAClC,SAAS,EAAE,IAAI;QACf,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,IAAI,IAAI,CAAC,WAAW,CAAC;QACnC,YAAY,EAAE,KAAK;KACtB;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,4BAA4B;QACzC,QAAQ,EAAE,QAAQ,CAAC,OAAO;QAC1B,UAAU,EAAE,CAAC;QACb,MAAM,EAAE,QAAQ;QAChB,eAAe,EAAE,iBAAiB;QAClC,SAAS,EAAE,IAAI;QACf,YAAY,EAAE,CAAC;QACf,YAAY,EAAE,IAAI,IAAI,CAAC,WAAW,CAAC;QACnC,YAAY,EAAE,KAAK;KACtB;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,iBAAiB;QAC9B,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,UAAU,EAAE,CAAC;QACb,MAAM,EAAE,OAAO;QACf,eAAe,EAAE,kBAAkB;QACnC,SAAS,EAAE,IAAI;QACf,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,IAAI,IAAI,CAAC,WAAW,CAAC;QACnC,YAAY,EAAE,IAAI;KACrB;IACD;QACI,SAAS,EAAE,EAAE;QACb,WAAW,EAAE,OAAO;QACpB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,UAAU,EAAE,CAAC;QACb,MAAM,EAAE,OAAO;QACf,eAAe,EAAE,kBAAkB;QACnC,SAAS,EAAE,IAAI;QACf,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;QACpC,YAAY,EAAE,KAAK;KACtB;CACJ,CAAC"}
@@ -1,6 +0,0 @@
1
- import { FC } from 'react';
2
- export interface TableExampleProps {
3
- fixedWidthColumns?: boolean;
4
- }
5
- export declare const TableExample: FC<TableExampleProps>;
6
- //# sourceMappingURL=table.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/demo/overview/table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmC,EAAE,EAAgB,MAAM,OAAO,CAAC;AA0D1E,MAAM,WAAW,iBAAiB;IAC9B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA+H9C,CAAC"}
@@ -1,44 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useMemo, cloneElement, Fragment } from 'react';
3
- import { provide, useDependencies } from '@servicetitan/react-ioc';
4
- import { observer } from 'mobx-react';
5
- import { Stack, ButtonGroup, Button, Tag } from '@servicetitan/design-system';
6
- import { Table, TableColumn, TableCell, TextEditableCell, NumericEditableCell, BooleanEditableCell, DateEditableCell, getSelectEditableCell, CurrencyRangeColumnMenuFilter, DateRangeColumnMenuFilter, StandardColumnMenuFilter, standardFilterWithMultiselect, multiSelectColumnMenuFilter, } from '../..';
7
- import { Export } from '../../export';
8
- import { TableStore } from './table.store';
9
- import { ActionsCell } from './actions-cell';
10
- import { enumToOptions, getEnumKeys } from '@servicetitan/form';
11
- import { UserRole, Supplier } from './product';
12
- const UserRoleColumnMenuFilter = multiSelectColumnMenuFilter(getEnumKeys(UserRole), userRole => (_jsx(Tag, Object.assign({ compact: true, color: UserRole[userRole] === UserRole.Owner ? 'success' : 'default' }, { children: userRole }))));
13
- const AvailableForEditableCell = getSelectEditableCell({
14
- options: enumToOptions(UserRole),
15
- viewer: ({ dataItem, field }) => {
16
- const value = dataItem[field];
17
- return _jsx("td", { children: value && UserRole[value] });
18
- },
19
- });
20
- const SupplierCell = props => {
21
- const { field, dataItem, rowType } = props;
22
- if (rowType !== 'data') {
23
- return _jsx(TableCell, Object.assign({}, props));
24
- }
25
- return _jsx("td", { children: Supplier[dataItem[field]] });
26
- };
27
- export const TableExample = provide({
28
- singletons: [TableStore],
29
- })(observer((props) => {
30
- const [{ tableState, inEdit, editAll, cancelAll, saveAll }] = useDependencies(TableStore);
31
- const madeInColumnMenu = useMemo(() => standardFilterWithMultiselect({ tableState }), [tableState]);
32
- const cellRender = (td, { dataItem, field }) => {
33
- if (!td) {
34
- return null;
35
- }
36
- return cloneElement(td, {
37
- onClick: () => {
38
- tableState.edit(dataItem, field);
39
- },
40
- });
41
- };
42
- return (_jsxs(Fragment, { children: [_jsxs(Stack, Object.assign({ justifyContent: "space-between", alignContent: "center", className: "m-b-2" }, { children: [_jsx(Export, { totalCount: tableState.totalCount, exportPdf: tableState.exportPdf, exportExcel: tableState.exportExcel }), inEdit ? (_jsxs(ButtonGroup, { children: [_jsx(Button, Object.assign({ small: true, onClick: cancelAll, className: "m-r-2" }, { children: "Cancel All" })), _jsx(Button, Object.assign({ small: true, primary: true, onClick: saveAll }, { children: "Save All" }))] })) : (_jsx(Button, Object.assign({ small: true, primary: true, onClick: editAll }, { children: "Edit All" })))] })), _jsxs(Table, Object.assign({ tableState: tableState, striped: false, selectable: true, groupable: true, sortable: true, exportable: true, exportFileName: "Table.Export.Test...File.Name.01.01.2020..~!@#$%^(*_+';", cellRender: cellRender }, { children: [_jsx(TableColumn, { field: "ProductID", title: "ID", editable: false, width: "100px" }), _jsx(TableColumn, { field: "ProductName", title: "Product Name", cell: TextEditableCell, columnMenu: StandardColumnMenuFilter, width: "240px" }), _jsx(TableColumn, { field: "Supplier", title: "Supplier", cell: SupplierCell, columnMenu: StandardColumnMenuFilter, width: "150px" }), _jsx(TableColumn, { field: "MadeIn", title: "Made In", cell: TextEditableCell, columnMenu: madeInColumnMenu, width: "175px" }), _jsx(TableColumn, { field: "UnitsOnOrder", title: "First Ordered On", cell: DateEditableCell, columnMenu: DateRangeColumnMenuFilter, format: "{0:d}", width: "240px" }), _jsx(TableColumn, { field: "UnitPrice", title: "Unit Price", cell: NumericEditableCell, columnMenu: CurrencyRangeColumnMenuFilter, format: "{0:c}", width: "125px" }), _jsx(TableColumn, { field: "Discontinued", title: "Discontinued", cell: BooleanEditableCell, sortable: false, width: "125px" }), _jsx(TableColumn, { field: "AvailableFor", title: "Available For", cell: AvailableForEditableCell, columnMenu: UserRoleColumnMenuFilter, width: "240px" }), _jsx(TableColumn, Object.assign({ cell: ActionsCell, sortable: false }, (props.fixedWidthColumns ? { width: '125px' } : {})))] }))] }));
43
- }));
44
- //# sourceMappingURL=table.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table.js","sourceRoot":"","sources":["../../../src/demo/overview/table.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAoB,MAAM,OAAO,CAAC;AAE1E,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,6BAA6B,CAAC;AAE9E,OAAO,EACH,KAAK,EACL,WAAW,EACX,SAAS,EAET,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,6BAA6B,EAC7B,yBAAyB,EACzB,wBAAwB,EACxB,6BAA6B,EAC7B,2BAA2B,GAC9B,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAW,QAAQ,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,wBAAwB,GAAG,2BAA2B,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC,CAC5F,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@
1
- import { TableState } from '../..';
2
- import { Product } from './product';
3
- export declare class TableStore {
4
- tableState: TableState<Product, number, never, never>;
5
- constructor();
6
- get inEdit(): boolean;
7
- editAll: () => Promise<void>;
8
- saveAll: () => Promise<void>;
9
- cancelAll: () => void;
10
- private getDataSource;
11
- private idSelector;
12
- private isRowUnselectable;
13
- private getFormState;
14
- }
15
- //# sourceMappingURL=table.store.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table.store.d.ts","sourceRoot":"","sources":["../../../src/demo/overview/table.store.ts"],"names":[],"mappings":"AAIA,OAAO,EAAsB,UAAU,EAAE,MAAM,OAAO,CAAC;AAKvD,OAAO,EAAE,OAAO,EAAsB,MAAM,WAAW,CAAC;AAGxD,qBACa,UAAU;IACnB,UAAU,4CAMP;;IAMH,IAAc,MAAM,YAEnB;IAED,OAAO,sBAAmC;IAC1C,OAAO,sBAAuC;IAC9C,SAAS,aAAyC;IAElD,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,YAAY;CAsBvB"}
@@ -1,92 +0,0 @@
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
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { injectable } from '@servicetitan/react-ioc';
11
- import { computed, makeObservable } from 'mobx';
12
- import { InMemoryDataSource, TableState } from '../..';
13
- import { setFormStateValues, FormValidators } from '@servicetitan/form';
14
- import { FormState, FieldState } from 'formstate';
15
- import { UserRole, Supplier } from './product';
16
- import { products } from './products';
17
- let TableStore = class TableStore {
18
- constructor() {
19
- Object.defineProperty(this, "tableState", {
20
- enumerable: true,
21
- configurable: true,
22
- writable: true,
23
- value: new TableState({
24
- dataSource: this.getDataSource(),
25
- isRowUnselectable: this.isRowUnselectable,
26
- selectionLimit: 3,
27
- getFormState: this.getFormState,
28
- pageSize: 5,
29
- })
30
- });
31
- Object.defineProperty(this, "editAll", {
32
- enumerable: true,
33
- configurable: true,
34
- writable: true,
35
- value: () => this.tableState.editAll()
36
- });
37
- Object.defineProperty(this, "saveAll", {
38
- enumerable: true,
39
- configurable: true,
40
- writable: true,
41
- value: () => this.tableState.saveEditAll()
42
- });
43
- Object.defineProperty(this, "cancelAll", {
44
- enumerable: true,
45
- configurable: true,
46
- writable: true,
47
- value: () => this.tableState.cancelEditAll()
48
- });
49
- makeObservable(this);
50
- }
51
- get inEdit() {
52
- return this.tableState.inEdit.size > 0;
53
- }
54
- getDataSource() {
55
- return new InMemoryDataSource(products, this.idSelector, {
56
- Supplier: (value) => Supplier[value],
57
- AvailableFor: (value) => value && UserRole[value],
58
- });
59
- }
60
- idSelector(row) {
61
- return row.ProductID;
62
- }
63
- isRowUnselectable(row) {
64
- return row.Discontinued;
65
- }
66
- getFormState(row) {
67
- return setFormStateValues(new FormState({
68
- ProductID: new FieldState(0),
69
- ProductName: new FieldState('').validators(FormValidators.required),
70
- Supplier: new FieldState(Supplier.Adam),
71
- CategoryID: new FieldState(0),
72
- MadeIn: new FieldState(''),
73
- QuantityPerUnit: new FieldState(''),
74
- UnitPrice: new FieldState(0).validators(value => value <= 0 && 'Price must be positive'),
75
- UnitsInStock: new FieldState(0),
76
- UnitsOnOrder: new FieldState(new Date()).validators(value => value > new Date() && 'Invalid date'),
77
- Discontinued: new FieldState(false),
78
- AvailableFor: new FieldState(undefined),
79
- }), row);
80
- }
81
- };
82
- __decorate([
83
- computed,
84
- __metadata("design:type", Object),
85
- __metadata("design:paramtypes", [])
86
- ], TableStore.prototype, "inEdit", null);
87
- TableStore = __decorate([
88
- injectable(),
89
- __metadata("design:paramtypes", [])
90
- ], TableStore);
91
- export { TableStore };
92
- //# sourceMappingURL=table.store.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"table.store.js","sourceRoot":"","sources":["../../../src/demo/overview/table.store.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAEhD,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAElD,OAAO,EAAW,QAAQ,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,IAAa,UAAU,GAAvB,MAAa,UAAU;IASnB;QARA;;;;mBAAa,IAAI,UAAU,CAAC;gBACxB,UAAU,EAAE,IAAI,CAAC,aAAa,EAAE;gBAChC,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;gBACzC,cAAc,EAAE,CAAC;gBACjB,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,QAAQ,EAAE,CAAC;aACd,CAAC;WAAC;QAUH;;;;mBAAU,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE;WAAC;QAC1C;;;;mBAAU,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE;WAAC;QAC9C;;;;mBAAY,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE;WAAC;QAT9C,cAAc,CAAC,IAAI,CAAC,CAAC;IAC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C,KAAK,GAAG,IAAI,IAAI,EAAE,IAAI,cAAc,CAChD;YACD,YAAY,EAAE,IAAI,UAAU,CAAC,KAAK,CAAC;YACnC,YAAY,EAAE,IAAI,UAAU,CAAuB,SAAS,CAAC;SAChE,CAAC,EACF,GAAG,CACN,CAAC;IACN,CAAC;CACJ,CAAA;AA7Ca;IAAT,QAAQ;;;wCAER;AAfQ,UAAU;IADtB,UAAU,EAAE;;GACA,UAAU,CA0DtB;SA1DY,UAAU"}
@@ -1,3 +0,0 @@
1
- import { Product } from './product';
2
- export declare const beverages: Product[];
3
- //# sourceMappingURL=beverages.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"beverages.d.ts","sourceRoot":"","sources":["../../../src/demo/state-caching/beverages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,eAAO,MAAM,SAAS,EAAE,OAAO,EA8C9B,CAAC"}
@@ -1,48 +0,0 @@
1
- export const beverages = [
2
- {
3
- ProductID: 1,
4
- ProductName: 'Tea',
5
- Description: 'Tea is an aromatic beverage...',
6
- },
7
- {
8
- ProductID: 2,
9
- ProductName: 'Coffee',
10
- Description: 'Coffee is a brewed drink prepared from roasted coffee beans...',
11
- },
12
- {
13
- ProductID: 3,
14
- ProductName: 'Liquor',
15
- Description: 'Liquor is an alcoholic drink...',
16
- },
17
- {
18
- ProductID: 4,
19
- ProductName: 'Beer',
20
- Description: 'Beer is one of the oldest and most widely consumed drinks in the world...',
21
- },
22
- {
23
- ProductID: 5,
24
- ProductName: 'Milk',
25
- Description: 'Milk is a nutrient-rich, white liquid food produced by...',
26
- },
27
- {
28
- ProductID: 6,
29
- ProductName: 'Juice',
30
- Description: 'Juice is a drink made from the extraction...',
31
- },
32
- {
33
- ProductID: 7,
34
- ProductName: 'Hot chocolate',
35
- Description: 'Hot chocolate, also known as drinking chocolate, cocoa, and as chocolate...',
36
- },
37
- {
38
- ProductID: 8,
39
- ProductName: 'Wine',
40
- Description: 'Wine is an alcoholic drink typically made from fermented grapes...',
41
- },
42
- {
43
- ProductID: 9,
44
- ProductName: 'Kombucha',
45
- Description: 'Kombucha is a fermented, slightly alcoholic, lightly effervescent...',
46
- },
47
- ];
48
- //# sourceMappingURL=beverages.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"beverages.js","sourceRoot":"","sources":["../../../src/demo/state-caching/beverages.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAc;IAChC;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,KAAK;QAClB,WAAW,EAAE,gCAAgC;KAChD;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,QAAQ;QACrB,WAAW,EAAE,gEAAgE;KAChF;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,QAAQ;QACrB,WAAW,EAAE,iCAAiC;KACjD;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,MAAM;QACnB,WAAW,EAAE,2EAA2E;KAC3F;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,MAAM;QACnB,WAAW,EAAE,2DAA2D;KAC3E;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,OAAO;QACpB,WAAW,EAAE,8CAA8C;KAC9D;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,eAAe;QAC5B,WAAW,EAAE,6EAA6E;KAC7F;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,MAAM;QACnB,WAAW,EAAE,oEAAoE;KACpF;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,UAAU;QACvB,WAAW,EAAE,sEAAsE;KACtF;CACJ,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './state-caching-table';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/demo/state-caching/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './state-caching-table';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/demo/state-caching/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -1,6 +0,0 @@
1
- export interface Product {
2
- ProductID: number;
3
- ProductName: string;
4
- Description: string;
5
- }
6
- //# sourceMappingURL=product.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../src/demo/state-caching/product.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACvB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=product.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"product.js","sourceRoot":"","sources":["../../../src/demo/state-caching/product.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { Product } from './product';
2
- export declare const products: Product[];
3
- //# sourceMappingURL=products.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../src/demo/state-caching/products.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,eAAO,MAAM,QAAQ,EAAE,OAAO,EAmD7B,CAAC"}
@@ -1,53 +0,0 @@
1
- export const products = [
2
- {
3
- ProductID: 1,
4
- ProductName: 'Chai',
5
- Description: '10 boxes x 20 bags',
6
- },
7
- {
8
- ProductID: 2,
9
- ProductName: 'Chang',
10
- Description: '24 - 12 oz bottles',
11
- },
12
- {
13
- ProductID: 3,
14
- ProductName: 'Aniseed Syrup',
15
- Description: '12 - 550 ml bottles',
16
- },
17
- {
18
- ProductID: 4,
19
- ProductName: "Chef Anton's Cajun Seasoning",
20
- Description: '48 - 6 oz jars',
21
- },
22
- {
23
- ProductID: 5,
24
- ProductName: "Chef Anton's Gumbo Mix",
25
- Description: '36 boxes',
26
- },
27
- {
28
- ProductID: 6,
29
- ProductName: "Grandma's Boysenberry Spread",
30
- Description: '12 - 8 oz jars',
31
- },
32
- {
33
- ProductID: 7,
34
- ProductName: "Uncle Bob's Organic Dried Pears",
35
- Description: '12 - 1 lb pkgs.',
36
- },
37
- {
38
- ProductID: 8,
39
- ProductName: 'Northwoods Cranberry Sauce',
40
- Description: '12 - 12 oz jars',
41
- },
42
- {
43
- ProductID: 9,
44
- ProductName: 'Mishi Kobe Niku',
45
- Description: '18 - 500 g pkgs.',
46
- },
47
- {
48
- ProductID: 10,
49
- ProductName: 'Ikura',
50
- Description: '12 - 200 ml jars',
51
- },
52
- ];
53
- //# sourceMappingURL=products.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"products.js","sourceRoot":"","sources":["../../../src/demo/state-caching/products.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAc;IAC/B;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,MAAM;QACnB,WAAW,EAAE,oBAAoB;KACpC;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,OAAO;QACpB,WAAW,EAAE,oBAAoB;KACpC;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,eAAe;QAC5B,WAAW,EAAE,qBAAqB;KACrC;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,8BAA8B;QAC3C,WAAW,EAAE,gBAAgB;KAChC;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,wBAAwB;QACrC,WAAW,EAAE,UAAU;KAC1B;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,8BAA8B;QAC3C,WAAW,EAAE,gBAAgB;KAChC;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,iCAAiC;QAC9C,WAAW,EAAE,iBAAiB;KACjC;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,4BAA4B;QACzC,WAAW,EAAE,iBAAiB;KACjC;IACD;QACI,SAAS,EAAE,CAAC;QACZ,WAAW,EAAE,iBAAiB;QAC9B,WAAW,EAAE,kBAAkB;KAClC;IACD;QACI,SAAS,EAAE,EAAE;QACb,WAAW,EAAE,OAAO;QACpB,WAAW,EAAE,kBAAkB;KAClC;CACJ,CAAC"}
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- export declare const TableStateCachingExample: FC;
3
- //# sourceMappingURL=state-caching-table.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state-caching-table.d.ts","sourceRoot":"","sources":["../../../src/demo/state-caching/state-caching-table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,EAAE,EAAE,MAAM,OAAO,CAAC;AAOrC,eAAO,MAAM,wBAAwB,EAAE,EA2BtC,CAAC"}
@@ -1,14 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Fragment } from 'react';
3
- import { provide, useDependencies } from '@servicetitan/react-ioc';
4
- import { observer } from 'mobx-react';
5
- import { ButtonGroup, Button } from '@servicetitan/design-system';
6
- import { Table, TableColumn } from '../..';
7
- import { TableStore } from './state-caching-table.store';
8
- export const TableStateCachingExample = provide({
9
- singletons: [TableStore],
10
- })(observer(() => {
11
- const [{ tableState, showProducts, showBeverages }] = useDependencies(TableStore);
12
- return (_jsxs(Fragment, { children: [_jsxs(ButtonGroup, Object.assign({ className: "m-b-2" }, { children: [_jsx(Button, Object.assign({ small: true, onClick: showProducts }, { children: "Show Products" })), _jsx(Button, Object.assign({ small: true, onClick: showBeverages }, { children: "Show Beverages" }))] })), _jsxs(Table, Object.assign({ tableState: tableState, striped: true, sortable: true }, { children: [_jsx(TableColumn, { field: "ProductID", title: "ID", width: "100px" }), _jsx(TableColumn, { field: "ProductName", title: "Product Name" }), _jsx(TableColumn, { field: "Description", title: "Product Description" })] }))] }));
13
- }));
14
- //# sourceMappingURL=state-caching-table.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state-caching-table.js","sourceRoot":"","sources":["../../../src/demo/state-caching/state-caching-table.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAM,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,MAAM,CAAC,MAAM,wBAAwB,GAAO,OAAO,CAAC;IAChD,UAAU,EAAE,CAAC,UAAU,CAAC;CAC3B,CAAC,CACE,QAAQ,CAAC,GAAG,EAAE;IACV,MAAM,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;IAElF,OAAO,CACH,MAAC,QAAQ,eACL,MAAC,WAAW,kBAAC,SAAS,EAAC,OAAO,iBAC1B,KAAC,MAAM,kBAAC,KAAK,QAAC,OAAO,EAAE,YAAY,mCAE1B,EACT,KAAC,MAAM,kBAAC,KAAK,QAAC,OAAO,EAAE,aAAa,oCAE3B,KACC,EAEd,MAAC,KAAK,kBAAC,UAAU,EAAE,UAAU,EAAE,OAAO,QAAC,QAAQ,uBAC3C,KAAC,WAAW,IAAC,KAAK,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,KAAK,EAAC,OAAO,GAAG,EAE1D,KAAC,WAAW,IAAC,KAAK,EAAC,aAAa,EAAC,KAAK,EAAC,cAAc,GAAG,EAExD,KAAC,WAAW,IAAC,KAAK,EAAC,aAAa,EAAC,KAAK,EAAC,qBAAqB,GAAG,KAC3D,IACD,CACd,CAAC;AACN,CAAC,CAAC,CACL,CAAC"}
@@ -1,13 +0,0 @@
1
- import { TableState } from '../..';
2
- import { Product } from './product';
3
- import { TableStateModel } from '../../table-state';
4
- export declare class TableStore {
5
- productsTableState?: TableStateModel<number>;
6
- beveragesTableState?: TableStateModel<number>;
7
- tableState: TableState<Product, number, never, never>;
8
- showProducts: () => void;
9
- showBeverages: () => void;
10
- private getProductsDataSource;
11
- private getBeveragesDataSource;
12
- }
13
- //# sourceMappingURL=state-caching-table.store.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state-caching-table.store.d.ts","sourceRoot":"","sources":["../../../src/demo/state-caching/state-caching-table.store.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,UAAU,EAAE,MAAM,OAAO,CAAC;AAIvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,qBACa,UAAU;IACnB,kBAAkB,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC7C,mBAAmB,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAE9C,UAAU,4CAGP;IAEH,YAAY,aAMV;IAEF,aAAa,aAMX;IAEF,OAAO,CAAC,qBAAqB;IAI7B,OAAO,CAAC,sBAAsB;CAGjC"}