@servicetitan/table 18.1.0 → 19.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../src/table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,SAAS,EAKT,SAAS,EACT,YAAY,EACZ,aAAa,EAEhB,MAAM,OAAO,CAAC;AACf,OAAO,EAGH,UAAU,IAAI,eAAe,EAC7B,aAAa,EAEb,gBAAgB,IAAI,qBAAqB,EACzC,cAAc,IAAI,mBAAmB,EAErC,+BAA+B,EAC/B,yBAAyB,EACzB,kBAAkB,EACrB,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAAmB,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAc,MAAM,eAAe,CAAC;AACvD,OAAO,EACH,oBAAoB,EAGvB,MAAM,2BAA2B,CAAC;AA0BnC,MAAM,WAAW,cAAc,CAC3B,CAAC,GAAG,KAAK,EACT,GAAG,SAAS,MAAM,GAAG,GAAG,EACxB,CAAC,GAAG,KAAK,EACT,GAAG,SAAS,MAAM,GAAG,KAAK,CAC5B,SAAQ,mBAAmB;IACzB,UAAU,CAAC,EAAE,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;CAC3C;AAED,UAAU,gBAAgB,CACtB,CAAC,GAAG,KAAK,EACT,GAAG,SAAS,MAAM,GAAG,GAAG,EACxB,CAAC,GAAG,KAAK,EACT,GAAG,SAAS,MAAM,GAAG,KAAK,CAC5B,SAAQ,qBAAqB;IAC3B,IAAI,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IACrD,QAAQ,CAAC,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;CAC/D;AAED,aAAK,kBAAkB,GACjB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E,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;IAC3C,OAAO,CAAC,UAAU,CAAyB;IAE3C,OAAO,CAAC,GAAG,CAA4B;IAEvC,OAAO,CAAC,aAAa,CAAC,CAAgB;IAEtC,OAAO,CAAC,gBAAgB,CAMrB;IAEH,OAAO,CAAC,gBAAgB,CAgBrB;IAGH,OAAO,CAAC,kBAAkB,CAYxB;IAEF,SAAS,QAAS,YAAY,YAAY,aAAa,eAcrD;IAEF,cAAc,CACV,QAAQ,EAAE,SAAS,EACnB,WAAW,EAAE,CACT,MAAM,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,KACrD,YAAY,CAAC,gBAAgB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,GACpD,SAAS;IAiBZ,2BAA2B,OAAQ,+BAA+B,UAgBhE;IAEF,qBAAqB,OAAQ,yBAAyB,UAuCpD;IAEF,cAAc,aAQZ;IAEF,MAAM;IAuCN,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,KAAK,CAmDX;CACL"}
package/dist/table.js CHANGED
@@ -161,6 +161,9 @@ let Table = class Table extends react_1.Component {
161
161
  writable: true,
162
162
  value: (ev) => {
163
163
  var _a, _b, _c, _d;
164
+ if (!ev.dataItem) {
165
+ return;
166
+ }
164
167
  if (ev.nativeEvent.shiftKey && this.lastSelection) {
165
168
  const rows = this.tableState
166
169
  .getRowsBetween(this.lastSelection, ev.dataItem)
@@ -210,7 +213,7 @@ let Table = class Table extends react_1.Component {
210
213
  writable: true,
211
214
  value: () => {
212
215
  const _a = this.props, { className, filterOperators, selectable, pager } = _a, props = __rest(_a, ["className", "filterOperators", "selectable", "pager"]);
213
- return ((0, jsx_runtime_1.jsxs)(design_system_1.Table, Object.assign({ ref: this.ref }, props, { data: [...this.tableState.data], rowRender: this.rowRender, editField: "inEdit", filter: this.tableState.filter, filterOperators: filterOperators !== null && filterOperators !== void 0 ? filterOperators : operators, onFilterChange: this.tableState.handleFilterChange, group: [...this.tableState.group], onGroupChange: this.tableState.handleGroupChange, onExpandChange: this.tableState.handleExpandChange, expandField: "expanded", sort: [...this.tableState.sort], onSortChange: this.tableState.handleSortChange, onHeaderSelectionChange: this.handleHeaderSelectionChange, onSelectionChange: this.handleSelectionChange, selectedField: "selected", pageable: this.getPageable(), pageSize: this.tableState.pageSize, skip: this.tableState.skip, onPageChange: this.tableState.handlePageChange, total: this.tableState.filteredCount, className: (0, classnames_1.default)(Styles.table, className), selectable: { enabled: selectable, mode: 'multiple' } }, { children: [selectable && ((0, jsx_runtime_1.jsx)(design_system_1.TableColumn, { field: "selected", width: "50px", filterable: false, resizable: false, headerSelectionValue: props.scrollable !== 'virtual'
216
+ return ((0, jsx_runtime_1.jsxs)(design_system_1.Table, Object.assign({ ref: this.ref }, props, { data: [...this.tableState.data], rowRender: this.rowRender, editField: "inEdit", filter: this.tableState.filter, filterOperators: filterOperators !== null && filterOperators !== void 0 ? filterOperators : operators, onFilterChange: this.tableState.handleFilterChange, group: [...this.tableState.group], onGroupChange: this.tableState.handleGroupChange, onExpandChange: this.tableState.handleExpandChange, expandField: "expanded", sort: [...this.tableState.sort], onSortChange: this.tableState.handleSortChange, onHeaderSelectionChange: this.handleHeaderSelectionChange, onSelectionChange: this.handleSelectionChange, selectedField: "selected", pageable: this.getPageable(), pageSize: this.tableState.pageSize, skip: this.tableState.skip, onPageChange: this.tableState.handlePageChange, total: this.tableState.filteredCount, className: (0, classnames_1.default)(Styles.table, className), selectable: { enabled: selectable, mode: 'multiple' } }, { children: [selectable && ((0, jsx_runtime_1.jsx)(design_system_1.TableColumn, { locked: true, field: "selected", width: "50px", filterable: false, resizable: false, headerSelectionValue: props.scrollable !== 'virtual'
214
217
  ? this.tableState.isAllPageRowsSelected
215
218
  : this.tableState.isAllRowsSelected, headerCell: this.selectHeaderCell, cell: this.selectColumnCell, headerClassName: "lh-1-i ta-center-i", className: (0, classnames_1.default)(Styles.unselectable, 'lh-1-i', 'ta-center-i') }, void 0)), this.withCellTableState(props.children)] }), void 0));
216
219
  }
package/dist/table.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"table.js","sourceRoot":"","sources":["../src/table.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAWe;AACf,+DAYqC;AACrC,mFAA+F;AAC/F,+DAA4E;AAC5E,iFAAiE;AACjE,2CAAsC;AAEtC,yDAAmE;AAEnE,2DAImC;AACnC,8DAAqC;AAErC,4DAAoC;AACpC,2DAA6C;AAE7C,MAAM,EAAE,IAAI,EAAE,aAAa,KAAmB,wBAAc,EAA5B,SAAS,UAAK,wBAAc,EAAtD,QAAqC,CAAiB,CAAC;AAC7D,SAAS,CAAC,IAAI,GAAG;IACb,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,QAAQ,IAAI,CAAC,CAAC,QAAQ,KAAK,WAAW,CAAC;CACtF,CAAC;AAEF,SAAS,eAAe,CAKtB,OAAkB;IAChB,IAAI,CAAC,IAAA,sBAAc,EAAC,OAAO,CAAC,EAAE;QAC1B,OAAO,KAAK,CAAC;KAChB;IAED,MAAM,WAAW,GAAI,OAAwB,CAAC,IAAI,CAAC;IAEnD,OAAO,WAAW,KAAK,2BAAW,IAAK,WAAmB,CAAC,YAAY,KAAK,2BAAW,CAAC;AAC5F,CAAC;AAuDD,IAAa,KAAK,GAAlB,MAAa,KAKX,SAAQ,iBAAqC;IAL/C;;QAMI;;;;mBAAqB,IAAI,CAAC,KAAK,CAAC,UAAU;WAAC;QAE3C;;;;mBAAc,IAAA,iBAAS,GAAe;WAAC;QAEvC;;;;;WAAsC;QAEtC;;;;mBAAoD,IAAA,qBAAQ,EAAC,CAAC,KAA0B,EAAE,EAAE,CAAC,CACzF,uBAAC,8BAAgB,oBACT,KAAK,IACT,eAA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AC,KAAK,CAAC,UAAU,IAAI,CACtB,wBAAC,gBAAQ,eACL,wBAAC,+BAAc,kBACX,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,oBAAoB,EACzC,QAAQ,EAAE,sBAAsB,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,iBAE1D,IAAI,CAAC,KAAK,CAAC,QAAQ,EACnB,KAAK,aACO,EACjB,uBAAC,sCAAW,kBACR,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,sBAAsB,EAC3C,QAAQ,EAAE,sBAAsB,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,gBAE1D,IAAI,CAAC,KAAK,CAAC,QAAQ,YACV,YACP,CACd,YACM,CACd,CAAC;IACN,CAAC;IAEO,WAAW;;QACf,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE;YAClE,OAAO,KAAK,CAAC;SAChB;QAED,OAAO,MAAA,IAAI,CAAC,KAAK,CAAC,KAAK,mCAAI,IAAI,CAAC;IACpC,CAAC;CAsDJ,CAAA;AAnQY,KAAK;IADjB,qBAAQ;GACI,KAAK,CAmQjB;AAnQY,sBAAK;AAqQlB,MAAM,sBAAsB,GAAG,IAAA,qBAAU,EAAC,CAAC,QAA4B,EAAE,EAAE,CACvE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CACjC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/table",
3
- "version": "18.1.0",
3
+ "version": "19.3.0",
4
4
  "description": "",
5
5
  "homepage": "https://docs.st.dev/docs/frontend/table",
6
6
  "repository": {
@@ -35,16 +35,16 @@
35
35
  "memoize-one": "~5.2.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@servicetitan/data-query": "^18.1.0",
38
+ "@servicetitan/data-query": "^19.3.0",
39
39
  "@servicetitan/design-system": "~10.6.0",
40
- "@servicetitan/form": "^18.1.0",
41
- "@servicetitan/react-ioc": "^18.1.0",
42
- "@servicetitan/suppress-warnings": "^18.1.0",
40
+ "@servicetitan/form": "^19.3.0",
41
+ "@servicetitan/react-ioc": "^19.3.0",
42
+ "@servicetitan/suppress-warnings": "^19.3.0",
43
43
  "@types/accounting": "~0.4.2",
44
- "@types/react": "~17.0.34",
44
+ "@types/react": "~17.0.37",
45
45
  "accounting": "~0.4.1",
46
46
  "formstate": "~2.0.0",
47
- "mobx": "~6.3.7",
47
+ "mobx": "~6.3.8",
48
48
  "mobx-react": "~7.2.1",
49
49
  "mobx-utils": "~6.0.4",
50
50
  "moment": "~2.29.1",
@@ -58,7 +58,7 @@
58
58
  "@servicetitan/suppress-warnings": "^17.0.0",
59
59
  "accounting": "~0.4.1",
60
60
  "formstate": "~2.0.0",
61
- "mobx": "~6.3.7",
61
+ "mobx": "~6.3.8",
62
62
  "mobx-react": "~7.2.1",
63
63
  "mobx-utils": "~6.0.4",
64
64
  "moment": "~2.29.1",
@@ -70,5 +70,5 @@
70
70
  "cli": {
71
71
  "webpack": false
72
72
  },
73
- "gitHead": "d9f324df3e2b30a0b07f854e803ee56b63c65431"
73
+ "gitHead": "c2541cf4d4dc01064f7d327370a90f7b4d107a0e"
74
74
  }
package/src/table.tsx CHANGED
@@ -223,6 +223,9 @@ export class Table<
223
223
  };
224
224
 
225
225
  handleSelectionChange = (ev: TableSelectionChangeEvent) => {
226
+ if (!ev.dataItem) {
227
+ return;
228
+ }
226
229
  if (ev.nativeEvent.shiftKey && this.lastSelection) {
227
230
  const rows = this.tableState
228
231
  .getRowsBetween(this.lastSelection, ev.dataItem)
@@ -349,6 +352,7 @@ export class Table<
349
352
  >
350
353
  {selectable && (
351
354
  <TableColumn
355
+ locked
352
356
  field="selected"
353
357
  width="50px"
354
358
  filterable={false}