@servicetitan/table 26.3.0 → 27.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/demo/column-hiding/table.js +2 -2
- package/dist/demo/column-hiding/table.js.map +1 -1
- package/dist/demo/column-hiding/table.store.js.map +1 -1
- package/dist/demo/filters/async-select-filter.js +1 -1
- package/dist/demo/filters/async-select-filter.js.map +1 -1
- package/dist/demo/filters/multiselect-filter.js +1 -1
- package/dist/demo/filters/multiselect-filter.js.map +1 -1
- package/dist/demo/filters/range-filter.js +3 -3
- package/dist/demo/filters/range-filter.js.map +1 -1
- package/dist/demo/filters/select-filter.js +2 -2
- package/dist/demo/filters/select-filter.js.map +1 -1
- package/dist/demo/filters/single-select-filter.js +3 -3
- package/dist/demo/filters/single-select-filter.js.map +1 -1
- package/dist/demo/filters/table.store.js.map +1 -1
- package/dist/demo/footer-page-size/table.js +2 -2
- package/dist/demo/footer-page-size/table.js.map +1 -1
- package/dist/demo/master-detail/detail-table.js +1 -1
- package/dist/demo/master-detail/detail-table.js.map +1 -1
- package/dist/demo/master-detail/detail-table.store.js +4 -4
- package/dist/demo/master-detail/detail-table.store.js.map +1 -1
- package/dist/demo/master-detail/master-table.store.js +3 -3
- package/dist/demo/master-detail/master-table.store.js.map +1 -1
- package/dist/demo/master-detail/table-master-detail.js +2 -2
- package/dist/demo/master-detail/table-master-detail.js.map +1 -1
- package/dist/demo/overview/actions-cell.js +2 -2
- package/dist/demo/overview/actions-cell.js.map +1 -1
- package/dist/demo/overview/table.js +3 -3
- package/dist/demo/overview/table.js.map +1 -1
- package/dist/demo/overview/table.store.js.map +1 -1
- package/dist/demo/row-details/row-details-table.js +2 -2
- package/dist/demo/row-details/row-details-table.js.map +1 -1
- package/dist/demo/row-details/row-details-table.store.js.map +1 -1
- package/dist/demo/state-caching/state-caching-table.js +1 -1
- package/dist/demo/state-caching/state-caching-table.js.map +1 -1
- package/dist/demo/state-caching/state-caching-table.store.js.map +1 -1
- package/dist/details/expand-column.js +1 -1
- package/dist/details/expand-column.js.map +1 -1
- package/dist/editable-cell/boolean-editable-cell.js +1 -1
- package/dist/editable-cell/boolean-editable-cell.js.map +1 -1
- package/dist/editable-cell/get-action-cell.js.map +1 -1
- package/dist/editable-cell/get-editable-cell.js.map +1 -1
- package/dist/editable-cell/get-select-editable-cell.js +1 -1
- package/dist/editable-cell/get-select-editable-cell.js.map +1 -1
- package/dist/editable-cell/text-editable-cell.js +1 -1
- package/dist/editable-cell/text-editable-cell.js.map +1 -1
- package/dist/export/export.js +1 -1
- package/dist/export/export.js.map +1 -1
- package/dist/filters/async-select/async-select-filter.d.ts +1 -1
- package/dist/filters/async-select/async-select-filter.d.ts.map +1 -1
- package/dist/filters/async-select/async-select-filter.js +2 -2
- package/dist/filters/async-select/async-select-filter.js.map +1 -1
- package/dist/filters/column-menu-filters.d.ts +1 -1
- package/dist/filters/column-menu-filters.d.ts.map +1 -1
- package/dist/filters/column-menu-filters.js +1 -1
- package/dist/filters/column-menu-filters.js.map +1 -1
- package/dist/filters/datetime-filter/datetime-filter.js.map +1 -1
- package/dist/filters/field-values-filter.js +23 -23
- package/dist/filters/field-values-filter.js.map +1 -1
- package/dist/filters/multiselect-filter/multiselect-filter.js +1 -1
- package/dist/filters/multiselect-filter/multiselect-filter.js.map +1 -1
- package/dist/filters/range-filter/range-filter.js +1 -1
- package/dist/filters/range-filter/range-filter.js.map +1 -1
- package/dist/filters/select-filter/object-search.js.map +1 -1
- package/dist/filters/select-filter/operators.d.ts +1 -1
- package/dist/filters/select-filter/operators.d.ts.map +1 -1
- package/dist/filters/select-filter/select-filter.d.ts +1 -1
- package/dist/filters/select-filter/select-filter.d.ts.map +1 -1
- package/dist/filters/select-filter/select-filter.js +3 -3
- package/dist/filters/select-filter/select-filter.js.map +1 -1
- package/dist/filters/select-filter/value-getter.js.map +1 -1
- package/dist/filters/single-select/single-select-filter.js +1 -1
- package/dist/filters/single-select/single-select-filter.js.map +1 -1
- package/dist/filters/standard-filter-with-multiselect/filter-cell-ext.js +3 -3
- package/dist/filters/standard-filter-with-multiselect/filter-cell-ext.js.map +1 -1
- package/dist/filters/standard-filter-with-multiselect/standard-filter-with-multiselect.d.ts +1 -1
- package/dist/filters/standard-filter-with-multiselect/standard-filter-with-multiselect.d.ts.map +1 -1
- package/dist/filters/standard-filter-with-multiselect/standard-filter-with-multiselect.js.map +1 -1
- package/dist/filters/standard-filter-with-multiselect/table-column-menu-filter-ext.js.map +1 -1
- package/dist/filters/time-filter/time-filter.js.map +1 -1
- package/dist/select-cell/select-cell.d.ts +1 -1
- package/dist/select-cell/select-cell.d.ts.map +1 -1
- package/dist/select-cell/select-cell.js +2 -2
- package/dist/select-cell/select-cell.js.map +1 -1
- package/dist/table-state.d.ts +6 -6
- package/dist/table-state.d.ts.map +1 -1
- package/dist/table-state.js +74 -68
- package/dist/table-state.js.map +1 -1
- package/dist/table.d.ts +2 -2
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +2 -2
- package/dist/table.js.map +1 -1
- package/dist/use-observing-table-state/demo/components/use-observing-table-state-demo.js +1 -1
- package/dist/use-observing-table-state/demo/components/use-observing-table-state-demo.js.map +1 -1
- package/dist/use-observing-table-state/demo/stores/use-observing-table-state-demo.store.js.map +1 -1
- package/dist/use-observing-table-state/use-observing-table-state.d.ts.map +1 -1
- package/dist/use-observing-table-state/use-observing-table-state.js.map +1 -1
- package/dist/utils/filters.js.map +1 -1
- package/package.json +9 -9
- package/src/table-state.ts +6 -1
package/dist/use-observing-table-state/demo/components/use-observing-table-state-demo.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-observing-table-state-demo.js","sourceRoot":"","sources":["../../../../src/use-observing-table-state/demo/components/use-observing-table-state-demo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAM,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE5E,OAAO,EAAE,KAAK,EAAuB,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAC/E,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AAMjG,MAAM,CAAC,MAAM,yBAAyB,GAAuC,OAAO,CAAC;IACjF,UAAU,EAAE,CAAC,+BAA+B,CAAC;CAChD,CAAC,CACE,QAAQ,CAAC,CAAC,EAAE,mBAAmB,EAAE,EAAE,EAAE;IACjC,MAAM,CACF,EACI,IAAI,EACJ,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,2BAA2B,EAC3B,0BAA0B,EAC1B,6BAA6B,GAChC,EACJ,GAAG,eAAe,CAAC,+BAA+B,CAAC,CAAC;IACrD,MAAM,UAAU,GAAG,sBAAsB,CACrC,IAAI,EACJ,EAAE,QAAQ,EAAE,CAAC,EAAE,EACf,EAAE,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,EAChC,mBAAmB,CACtB,CAAC;IAEF,OAAO,CACH,MAAC,QAAQ,eACL
|
1
|
+
{"version":3,"file":"use-observing-table-state-demo.js","sourceRoot":"","sources":["../../../../src/use-observing-table-state/demo/components/use-observing-table-state-demo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAM,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE5E,OAAO,EAAE,KAAK,EAAuB,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAC/E,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AAMjG,MAAM,CAAC,MAAM,yBAAyB,GAAu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AAC,KAAK,EAAC,aAAa,EAAC,KAAK,EAAC,cAAc,GAAG,EAExD,KAAC,WAAW,IACR,KAAK,EAAC,WAAW,EACjB,KAAK,EAAC,YAAY,EAClB,MAAM,EAAC,OAAO,EACd,KAAK,EAAC,OAAO,GACf,IACE,IACD,CACd,CAAC;AACN,CAAC,CAAC,CACL,CAAC"}
|
package/dist/use-observing-table-state/demo/stores/use-observing-table-state-demo.store.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-observing-table-state-demo.store.js","sourceRoot":"","sources":["../../../../src/use-observing-table-state/demo/stores/use-observing-table-state-demo.store.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAE3D,MAAM,cAAc,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC;
|
1
|
+
{"version":3,"file":"use-observing-table-state-demo.store.js","sourceRoot":"","sources":["../../../../src/use-observing-table-state/demo/stores/use-observing-table-state-demo.store.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAE3D,MAAM,cAAc,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC;AAG9D,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IAOxC;QANY;;;;mBAAO,QAAQ,CAAC,G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AM,GAAG,CAAC,CAAC,CAAC;gBACzD,CAAC;YACL,CAAC;WAAC;QAGF;;;;mBAA2B,GAAG,EAAE;gBAC5B,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;gBAChC,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;oBACjD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;wBACX,SAAS,EAAE,CAAC;wBACZ,WAAW,EAAE,WAAW,CAAC,EAAE;wBAC3B,SAAS,EAAE,cAAc,EAAE;qBAC9B,CAAC,CAAC;gBACP,CAAC;YACL,CAAC;WAAC;QAGF;;;;mBAA8B,GAAG,EAAE;gBAC/B,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;oBACxB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;gBAC9C,CAAC;YACL,CAAC;WAAC;QAnDE,cAAc,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;CAmDJ,CAAA;AA3De;IAAX,UAAU;;6DAIP;AAOJ;IADC,MAAM;;2EAGL;AAGF;IADC,MAAM;;6EAML;AAGF;IADC,MAAM;;mFAUL;AAEF;IADC,MAAM;;sFAKL;AAGF;IADC,MAAM;;iFAUL;AAGF;IADC,MAAM;;oFAKL;AA3DO,+BAA+B;IAD3C,UAAU,EAAE;;GACA,+BAA+B,CA4D3C"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-observing-table-state.d.ts","sourceRoot":"","sources":["../../src/use-observing-table-state/use-observing-table-state.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAsB,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAErF,OAAO,EAAE,UAAU,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAGzE,oBAAY,mBAAmB;IAC3B,KAAK,IAAA;IACL,gBAAgB,IAAA;IAChB,MAAM,IAAA;CACT;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,EAAE,GAAG,SAAS,MAAM,GAAG,GAAG;IAC1D,UAAU,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,GAAG,CAAC;IAC5B,uBAAuB,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;CAC9C;AAED,eAAO,MAAM,sBAAsB,
|
1
|
+
{"version":3,"file":"use-observing-table-state.d.ts","sourceRoot":"","sources":["../../src/use-observing-table-state/use-observing-table-state.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAsB,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAErF,OAAO,EAAE,UAAU,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAGzE,oBAAY,mBAAmB;IAC3B,KAAK,IAAA;IACL,gBAAgB,IAAA;IAChB,MAAM,IAAA;CACT;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,EAAE,GAAG,SAAS,MAAM,GAAG,GAAG;IAC1D,UAAU,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,GAAG,CAAC;IAC5B,uBAAuB,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;CAC9C;AAED,eAAO,MAAM,sBAAsB,6EAMzB,CAAC,EAAE,aACE,4BAA4B,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,qBACnC,kBAAkB,CAAC,EAAE,GAAG,CAAC,oBAC3B,mBAAmB,KACrC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAuC3B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-observing-table-state.js","sourceRoot":"","sources":["../../src/use-observing-table-state/use-observing-table-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE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;
|
1
|
+
{"version":3,"file":"use-observing-table-state.js","sourceRoot":"","sources":["../../src/use-observing-table-state/use-observing-table-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAU,kBAAkB,EAAiB,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAA+B,MAAM,gBAAgB,CAAC;AACzE,EAAE;AAEF,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC3B,+DAAK,CAAA;IACL,qFAAgB,CAAA;IAChB,iEAAM,CAAA;AACV,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B;AAOD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAMlC,IAAS,EACT,SAAsD,EACtD,iBAA4C,EAC5C,kBAAuC,mBAAmB,CAAC,gBAAgB,EACjD,EAAE;IAC5B,MAAM,aAAa,GAAG,iBAAiB,CAAC,GAAG,EAAE,CAAC,IAAI,UAAU,CAAiB,SAAS,CAAC,CAAC,CAAC;IACzF,MAAM,iBAAiB,GAAG,MAAM,EAAO,CAAC;IACxC,MAAM,iBAAiB,GAAG,MAAM,EAAO,CAAC;IACxC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,EAA8B,CAAC;IAE3E,SAAS,CAAC,GAAG,EAAE;QACX,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE;YAC1B,aAAa,CACT,IAAI,kBAAkB,CAClB,IAAI,EACJ,iBAAiB,CAAC,UAAU,EAC5B,iBAAiB,CAAC,uBAAuB,CAC5C,CACJ,CAAC;YACF,iBAAiB,CAAC,OAAO,GAAG,IAAI,CAAC;QACrC,CAAC,CAAC,CAAC;QACH,OAAO,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC;QACxB,uDAAuD;IAC3D,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,SAAS,CAAC,GAAG,EAAE;;QACX,IAAI,UAAU,EAAE,CAAC;YACb,IACI,aAAa,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,MAAA,MAAA,iBAAiB,CAAC,OAAO,0CAAE,MAAM,mCAAI,CAAC,CAAC;gBACtE,eAAe,KAAK,mBAAmB,CAAC,MAAM;gBAC9C,CAAC,eAAe,KAAK,mBAAmB,CAAC,gBAAgB;oBACrD,iBAAiB,CAAC,OAAO,KAAK,iBAAiB,CAAC,OAAO,CAAC,EAC9D,CAAC;gBACC,aAAa,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;YACpD,CAAC;iBAAM,CAAC;gBACJ,MAAM,KAAK,GAAG,aAAa,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;gBAClD,aAAa,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC;YAC7E,CAAC;YACD,iBAAiB,CAAC,OAAO,GAAG,iBAAiB,CAAC,OAAO,CAAC;QAC1D,CAAC;IACL,CAAC,EAAE,CAAC,UAAU,EAAE,eAAe,EAAE,aAAa,CAAC,CAAC,CAAC;IAEjD,OAAO,aAAa,CAAC,OAAO,CAAC;AACjC,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../src/utils/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,2BAA2B,GAE9B,MAAM,0BAA0B,CAAC;AAElC,MAAM,mBAAmB,GAAG,CACxB,MAAqD,EACnC,EAAE;IACpB,IAAI,CAAC,MAAM,EAAE;
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../src/utils/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,2BAA2B,GAE9B,MAAM,0BAA0B,CAAC;AAElC,MAAM,mBAAmB,GAAG,CACxB,MAAqD,EACnC,EAAE;IACpB,IAAI,CAAC,MAAM,EAAE,CAAC;QACV,OAAO,EAAE,CAAC;IACd,CAAC;SAAM,IAAI,2BAA2B,CAAC,MAAM,CAAC,EAAE,CAAC;QAC7C,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CACxB,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC,EACrD,EAAwB,CAC3B,CAAC;IACN,CAAC;IACD,OAAO,CAAC,MAAM,CAAC,CAAC;AACpB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAAuB,EAAsB,EAAE;IAC1E,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAC;AACvC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAuB,EAAoC,EAAE;IACvF,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;QACtD,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YACnC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC;QAC/B,CAAC;QACD,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,EAAsC,CAAC,CAAC;AAC/C,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@servicetitan/table",
|
3
|
-
"version": "
|
3
|
+
"version": "27.1.0",
|
4
4
|
"description": "",
|
5
5
|
"homepage": "https://docs.st.dev/docs/frontend/table",
|
6
6
|
"repository": {
|
@@ -32,16 +32,16 @@
|
|
32
32
|
"@progress/kendo-react-pdf": "^5.5.0",
|
33
33
|
"@progress/kendo-react-popup": "^5.5.0",
|
34
34
|
"@progress/kendo-react-treeview": "^5.5.0",
|
35
|
-
"@servicetitan/react-hooks": "^4.
|
35
|
+
"@servicetitan/react-hooks": "^4.3.0",
|
36
36
|
"classnames": "~2.3.1",
|
37
37
|
"memoize-one": "~6.0.0"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
|
-
"@servicetitan/data-query": "^
|
40
|
+
"@servicetitan/data-query": "^27.1.0",
|
41
41
|
"@servicetitan/design-system": "~13.4.5",
|
42
|
-
"@servicetitan/form": "^
|
43
|
-
"@servicetitan/react-ioc": "^
|
44
|
-
"@servicetitan/suppress-warnings": "^
|
42
|
+
"@servicetitan/form": "^27.1.0",
|
43
|
+
"@servicetitan/react-ioc": "^24.0.3",
|
44
|
+
"@servicetitan/suppress-warnings": "^24.0.3",
|
45
45
|
"@types/accounting": "~0.4.2",
|
46
46
|
"@types/react": "~18.2.55",
|
47
47
|
"accounting": "~0.4.1",
|
@@ -53,9 +53,9 @@
|
|
53
53
|
"react": "~18.2.0"
|
54
54
|
},
|
55
55
|
"peerDependencies": {
|
56
|
-
"@servicetitan/data-query": "^
|
56
|
+
"@servicetitan/data-query": "^27.1.0",
|
57
57
|
"@servicetitan/design-system": ">=12.4.1",
|
58
|
-
"@servicetitan/form": "^
|
58
|
+
"@servicetitan/form": "^27.1.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": "b17946150c847cd846a5b5f5bca4054340d64df5"
|
76
76
|
}
|
package/src/table-state.ts
CHANGED
@@ -370,7 +370,12 @@ export class TableState<T, TId extends IdType = never, P = never, PId extends Id
|
|
370
370
|
}
|
371
371
|
});
|
372
372
|
|
373
|
-
|
373
|
+
// If the current page has only one row and it's removed, fetch the previous page if it exists
|
374
|
+
if (this.data.length === 1 && this.pageSize && this.skip >= this.pageSize) {
|
375
|
+
await this.fetchData({ newSkip: this.skip - this.pageSize });
|
376
|
+
} else {
|
377
|
+
await this.fetchData();
|
378
|
+
}
|
374
379
|
|
375
380
|
return row;
|
376
381
|
}
|