@toolbox-web/grid-react 0.7.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,OAAO,aAAa,CAAC;AACrB,OAAO,yBAAyB,CAAC;AACjC,OAAO,gBAAgB,CAAC;AACxB,OAAO,WAAW,CAAC;AACnB,OAAO,UAAU,CAAC;AAClB,OAAO,aAAa,CAAC;AACrB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,eAAe,CAAC;AACvB,OAAO,SAAS,CAAC;AACjB,OAAO,SAAS,CAAC;AACjB,OAAO,WAAW,CAAC;AACnB,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,CAAC;AACvB,OAAO,aAAa,CAAC;AACrB,OAAO,eAAe,CAAC;AACvB,OAAO,WAAW,CAAC;AACnB,OAAO,QAAQ,CAAC;AAChB,OAAO,aAAa,CAAC;AACrB,OAAO,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,OAAO,aAAa,CAAC;AACrB,OAAO,yBAAyB,CAAC;AACjC,OAAO,gBAAgB,CAAC;AACxB,OAAO,WAAW,CAAC;AACnB,OAAO,UAAU,CAAC;AAClB,OAAO,aAAa,CAAC;AACrB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,cAAc,CAAC;AACtB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,eAAe,CAAC;AACvB,OAAO,SAAS,CAAC;AACjB,OAAO,SAAS,CAAC;AACjB,OAAO,WAAW,CAAC;AACnB,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,CAAC;AACvB,OAAO,aAAa,CAAC;AACrB,OAAO,eAAe,CAAC;AAEvB,OAAO,QAAQ,CAAC;AAChB,OAAO,aAAa,CAAC;AACrB,OAAO,cAAc,CAAC"}
package/features/index.js CHANGED
@@ -7,6 +7,7 @@ import "./filtering.js";
7
7
  import "./grouping-columns.js";
8
8
  import "./grouping-rows.js";
9
9
  import "./master-detail.js";
10
+ import "./multi-sort.js";
10
11
  import "./pinned-columns.js";
11
12
  import "./pinned-rows.js";
12
13
  import "./pivot.js";
@@ -16,7 +17,6 @@ import "./responsive.js";
16
17
  import "./row-reorder.js";
17
18
  import "./selection.js";
18
19
  import "./server-side.js";
19
- import "./sorting.js";
20
20
  import "./tree.js";
21
21
  import "./undo-redo.js";
22
22
  import "./visibility.js";
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Multi-sort feature for @toolbox-web/grid-react
3
+ *
4
+ * Import this module to enable the `multiSort` prop on DataGrid.
5
+ * Multi-sort allows sorting by multiple columns simultaneously.
6
+ *
7
+ * For basic single-column sorting, columns with `sortable: true` work without this plugin.
8
+ * Use `sortable={false}` on the grid to disable all sorting.
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * import '@toolbox-web/grid-react/features/multi-sort';
13
+ *
14
+ * <DataGrid multiSort />
15
+ * <DataGrid multiSort="single" />
16
+ * <DataGrid multiSort={{ maxSortColumns: 3 }} />
17
+ * ```
18
+ *
19
+ * @packageDocumentation
20
+ */
21
+ export {};
22
+ //# sourceMappingURL=multi-sort.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multi-sort.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/multi-sort.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG"}
@@ -0,0 +1,3 @@
1
+ import { MultiSortPlugin as t } from "@toolbox-web/grid/plugins/multi-sort";
2
+ import { r as e } from "../chunks/feature-registry-Y3KvnN54.js";
3
+ e("multiSort", (r) => r === !0 || r === "multi" ? new t() : r === "single" ? new t({ maxSortColumns: 1 }) : new t(r));
@@ -1,16 +1 @@
1
- /**
2
- * Sorting feature for @toolbox-web/grid-react
3
- *
4
- * Import this module to enable the `sorting` prop on DataGrid.
5
- *
6
- * @example
7
- * ```tsx
8
- * import '@toolbox-web/grid-react/features/sorting';
9
- *
10
- * <DataGrid sorting="multi" />
11
- * ```
12
- *
13
- * @packageDocumentation
14
- */
15
- export {};
16
1
  //# sourceMappingURL=sorting.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sorting.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/sorting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
1
+ {"version":3,"file":"sorting.d.ts","sourceRoot":"","sources":["../../../../libs/grid-react/src/features/sorting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,cAAc,CAAC"}
@@ -1,3 +1 @@
1
- import { MultiSortPlugin as t } from "@toolbox-web/grid/plugins/multi-sort";
2
- import { r as e } from "../chunks/feature-registry-Y3KvnN54.js";
3
- e("sorting", (r) => r === !0 || r === "multi" ? new t() : r === "single" ? new t({ maxSortColumns: 1 }) : new t(r));
1
+ import "./multi-sort.js";