@trackunit/react-table 1.3.46 → 1.3.48

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.
package/index.cjs.js CHANGED
@@ -354,7 +354,7 @@ const ColumnFiltersDragAndDrop = ({ columns, setColumnOrder, onUserEvent, defaul
354
354
  (!columnDef.header || columnDef.header.length === 0 || typeof columnDef.header === "function")) {
355
355
  return null;
356
356
  }
357
- return (jsxRuntime.jsx(ColumnFilterItem, { disabled: !!column.columnDef.meta?.required, id: column.id, index: index, moveColumn: moveColumn, name: columnDef.meta?.columnFilterLabel ?? columnDef.header?.toString() ?? "", onCancelDrop: onCancelColumDrop, onDrop: onColumDrop, onToggle: (toggled, event) => {
357
+ return (jsxRuntime.jsx(ColumnFilterItem, { disabled: !column.getCanHide(), id: column.id, index: index, moveColumn: moveColumn, name: columnDef.meta?.columnFilterLabel ?? columnDef.header?.toString() ?? "", onCancelDrop: onCancelColumDrop, onDrop: onColumDrop, onToggle: (toggled, event) => {
358
358
  column.getToggleVisibilityHandler()(event);
359
359
  onUserEvent?.("Column Filter", {
360
360
  columnName: column.id,
@@ -746,9 +746,9 @@ const useTableSelection = ({ data, idKey, defaultSelectedIds, enableRowSelection
746
746
  id: "selection",
747
747
  enableSorting: false,
748
748
  enableResizing: false,
749
+ enableHiding: false,
749
750
  size: 70,
750
751
  meta: {
751
- required: true,
752
752
  alignment: "center",
753
753
  columnFilterLabel: t("table.selection.label"),
754
754
  },
package/index.esm.js CHANGED
@@ -353,7 +353,7 @@ const ColumnFiltersDragAndDrop = ({ columns, setColumnOrder, onUserEvent, defaul
353
353
  (!columnDef.header || columnDef.header.length === 0 || typeof columnDef.header === "function")) {
354
354
  return null;
355
355
  }
356
- return (jsx(ColumnFilterItem, { disabled: !!column.columnDef.meta?.required, id: column.id, index: index, moveColumn: moveColumn, name: columnDef.meta?.columnFilterLabel ?? columnDef.header?.toString() ?? "", onCancelDrop: onCancelColumDrop, onDrop: onColumDrop, onToggle: (toggled, event) => {
356
+ return (jsx(ColumnFilterItem, { disabled: !column.getCanHide(), id: column.id, index: index, moveColumn: moveColumn, name: columnDef.meta?.columnFilterLabel ?? columnDef.header?.toString() ?? "", onCancelDrop: onCancelColumDrop, onDrop: onColumDrop, onToggle: (toggled, event) => {
357
357
  column.getToggleVisibilityHandler()(event);
358
358
  onUserEvent?.("Column Filter", {
359
359
  columnName: column.id,
@@ -745,9 +745,9 @@ const useTableSelection = ({ data, idKey, defaultSelectedIds, enableRowSelection
745
745
  id: "selection",
746
746
  enableSorting: false,
747
747
  enableResizing: false,
748
+ enableHiding: false,
748
749
  size: 70,
749
750
  meta: {
750
- required: true,
751
751
  alignment: "center",
752
752
  columnFilterLabel: t("table.selection.label"),
753
753
  },
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@trackunit/react-table",
3
- "version": "1.3.46",
3
+ "version": "1.3.48",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
7
- "node": ">=20.x"
7
+ "node": ">=22.x"
8
8
  },
9
9
  "dependencies": {
10
10
  "react": "19.0.0",
@@ -15,15 +15,15 @@
15
15
  "jest-fetch-mock": "^3.0.3",
16
16
  "@tanstack/react-router": "1.47.1",
17
17
  "tailwind-merge": "^2.0.0",
18
- "@trackunit/react-components": "1.4.38",
19
- "@trackunit/shared-utils": "1.5.35",
20
- "@trackunit/css-class-variance-utilities": "1.3.35",
21
- "@trackunit/ui-icons": "1.3.35",
22
- "@trackunit/react-table-base-components": "1.3.44",
23
- "@trackunit/react-table-pagination": "1.3.36",
24
- "@trackunit/react-form-components": "1.3.44",
25
- "@trackunit/i18n-library-translation": "1.3.36",
26
- "@trackunit/react-core-contexts-api": "1.4.36"
18
+ "@trackunit/react-components": "1.4.39",
19
+ "@trackunit/shared-utils": "1.5.36",
20
+ "@trackunit/css-class-variance-utilities": "1.3.36",
21
+ "@trackunit/ui-icons": "1.3.36",
22
+ "@trackunit/react-table-base-components": "1.3.45",
23
+ "@trackunit/react-table-pagination": "1.3.37",
24
+ "@trackunit/react-form-components": "1.3.45",
25
+ "@trackunit/i18n-library-translation": "1.3.37",
26
+ "@trackunit/react-core-contexts-api": "1.4.37"
27
27
  },
28
28
  "module": "./index.esm.js",
29
29
  "main": "./index.cjs.js",
package/src/types.d.ts CHANGED
@@ -4,7 +4,6 @@ declare module "@tanstack/react-table" {
4
4
  interface ColumnMeta<TData extends RowData, TValue> {
5
5
  alignment?: Alignment;
6
6
  exportable?: boolean;
7
- required?: boolean;
8
7
  subHeader?: string;
9
8
  hiddenByDefault?: boolean;
10
9
  isCustomField?: boolean;
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "Format",
14
14
  "table.noResults": "Keine Ergebnisse",
15
15
  "table.pagination.full": "{{count}} von {{total}} Ergebnissen werden angezeigt",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "von {{count}}",
17
18
  "table.pagination.page": "Seite",
18
19
  "table.result": "{{count}} Ergebnis",
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "Format",
14
14
  "table.noResults": "Brak wyników",
15
15
  "table.pagination.full": "Wyświetlono {{count}} wyników z {{total}}",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "z {{count}}",
17
18
  "table.pagination.page": "Strona",
18
19
  "table.result": "{{count}} wynik",
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "Formato",
14
14
  "table.noResults": "Sem resultados",
15
15
  "table.pagination.full": "A mostrar {{count}} de {{total}} resultados",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "de {{count}}",
17
18
  "table.pagination.page": "Página",
18
19
  "table.result": "{{count}} resultado",
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "Формат",
14
14
  "table.noResults": "Нет результатов",
15
15
  "table.pagination.full": "Показано {{count}} из {{total}} результатов",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "из {{count}}",
17
18
  "table.pagination.page": "Страница",
18
19
  "table.result": "{{count}} результат",
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "Format",
14
14
  "table.noResults": "Niciun rezultat",
15
15
  "table.pagination.full": "Afișare {{count}} (de) rezultate din {{total}}",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "din {{count}}",
17
18
  "table.pagination.page": "Pagina",
18
19
  "table.result": "{{count}} rezultat",
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "Formato",
14
14
  "table.noResults": "No hay resultados",
15
15
  "table.pagination.full": "Mostrando {{count}} de {{total}} resultados",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "de {{count}}",
17
18
  "table.pagination.page": "Página",
18
19
  "table.result": "{{count}} resultado",
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "Format",
14
14
  "table.noResults": "Inga resultat",
15
15
  "table.pagination.full": "Visar {{count}} av {{total}} resultat",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "av {{count}}",
17
18
  "table.pagination.page": "Sida",
18
19
  "table.result": "{{count}} resultat",
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "フォーマット",
14
14
  "table.noResults": "結果がありません",
15
15
  "table.pagination.full": "{{total}}件中{{count}}件の結果を表示中",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "全{{count}}ページ",
17
18
  "table.pagination.page": "ページ",
18
19
  "table.result": "{{count}}件の結果",
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "รูปแบบ",
14
14
  "table.noResults": "ไม่มีผลลัพธ์",
15
15
  "table.pagination.full": "การแสดง {{count}} จาก {{total}} ผลลัพธ์",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "จาก {{count}}",
17
18
  "table.pagination.page": "หน้า",
18
19
  "table.result": "ผลลัพธ์ {{count}} รายการ",
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "Format",
14
14
  "table.noResults": "Ingen resultater",
15
15
  "table.pagination.full": "Viser {{count}} af {{total}} resultater",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "af {{count}}",
17
18
  "table.pagination.page": "Side",
18
19
  "table.result": "{{count}} resultat",
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "Formát",
14
14
  "table.noResults": "Žádné výsledky",
15
15
  "table.pagination.full": "Zobrazení {{count}} výsledků z {{total}}",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "z {{count}}",
17
18
  "table.pagination.page": "Strana",
18
19
  "table.result": "{{count}} výsledek",
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "Formaat",
14
14
  "table.noResults": "Geen resultaten",
15
15
  "table.pagination.full": "Toont {{count}} van {{total}} resultaten",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "van {{count}}",
17
18
  "table.pagination.page": "Pagina",
18
19
  "table.result": "{{count}} resultaat",
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "Format",
14
14
  "table.noResults": "Aucun résultat",
15
15
  "table.pagination.full": "Affichage de {{count}} résultats sur {{total}}",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "sur {{count}}",
17
18
  "table.pagination.page": "Page",
18
19
  "table.result": "{{count}} résultat",
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "Muoto",
14
14
  "table.noResults": "Ei tuloksia",
15
15
  "table.pagination.full": "Näytetään {{count}} tulosta yhteensä {{total}} tuloksesta",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "/ {{count}}",
17
18
  "table.pagination.page": "Sivu",
18
19
  "table.result": "{{count}} tulosta",
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "Formátum",
14
14
  "table.noResults": "Nincsenek eredmények",
15
15
  "table.pagination.full": "{{count}}/{{total}} találat megjelenítése",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "/ {{count}}",
17
18
  "table.pagination.page": "Oldal:",
18
19
  "table.result": "{{count}} találat",
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "Formato",
14
14
  "table.noResults": "Nessun risultato",
15
15
  "table.pagination.full": "Mostra {{count}} di {{total}} risultati",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "di {{count}}",
17
18
  "table.pagination.page": "Pagina",
18
19
  "table.result": "{{count}} risultato",
@@ -13,6 +13,7 @@ var translation = {
13
13
  "table.format": "Format",
14
14
  "table.noResults": "Ingen resultater",
15
15
  "table.pagination.full": "Viser {{count}} av {{total}} resultat",
16
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
16
17
  "table.pagination.of": "av {{count}}",
17
18
  "table.pagination.page": "Side",
18
19
  "table.result": "{{count}} resultat",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "Format",
12
12
  "table.noResults": "Keine Ergebnisse",
13
13
  "table.pagination.full": "{{count}} von {{total}} Ergebnissen werden angezeigt",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "von {{count}}",
15
16
  "table.pagination.page": "Seite",
16
17
  "table.result": "{{count}} Ergebnis",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "Format",
12
12
  "table.noResults": "Brak wyników",
13
13
  "table.pagination.full": "Wyświetlono {{count}} wyników z {{total}}",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "z {{count}}",
15
16
  "table.pagination.page": "Strona",
16
17
  "table.result": "{{count}} wynik",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "Formato",
12
12
  "table.noResults": "Sem resultados",
13
13
  "table.pagination.full": "A mostrar {{count}} de {{total}} resultados",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "de {{count}}",
15
16
  "table.pagination.page": "Página",
16
17
  "table.result": "{{count}} resultado",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "Формат",
12
12
  "table.noResults": "Нет результатов",
13
13
  "table.pagination.full": "Показано {{count}} из {{total}} результатов",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "из {{count}}",
15
16
  "table.pagination.page": "Страница",
16
17
  "table.result": "{{count}} результат",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "Format",
12
12
  "table.noResults": "Niciun rezultat",
13
13
  "table.pagination.full": "Afișare {{count}} (de) rezultate din {{total}}",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "din {{count}}",
15
16
  "table.pagination.page": "Pagina",
16
17
  "table.result": "{{count}} rezultat",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "Formato",
12
12
  "table.noResults": "No hay resultados",
13
13
  "table.pagination.full": "Mostrando {{count}} de {{total}} resultados",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "de {{count}}",
15
16
  "table.pagination.page": "Página",
16
17
  "table.result": "{{count}} resultado",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "Format",
12
12
  "table.noResults": "Inga resultat",
13
13
  "table.pagination.full": "Visar {{count}} av {{total}} resultat",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "av {{count}}",
15
16
  "table.pagination.page": "Sida",
16
17
  "table.result": "{{count}} resultat",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "フォーマット",
12
12
  "table.noResults": "結果がありません",
13
13
  "table.pagination.full": "{{total}}件中{{count}}件の結果を表示中",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "全{{count}}ページ",
15
16
  "table.pagination.page": "ページ",
16
17
  "table.result": "{{count}}件の結果",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "รูปแบบ",
12
12
  "table.noResults": "ไม่มีผลลัพธ์",
13
13
  "table.pagination.full": "การแสดง {{count}} จาก {{total}} ผลลัพธ์",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "จาก {{count}}",
15
16
  "table.pagination.page": "หน้า",
16
17
  "table.result": "ผลลัพธ์ {{count}} รายการ",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "Format",
12
12
  "table.noResults": "Ingen resultater",
13
13
  "table.pagination.full": "Viser {{count}} af {{total}} resultater",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "af {{count}}",
15
16
  "table.pagination.page": "Side",
16
17
  "table.result": "{{count}} resultat",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "Formát",
12
12
  "table.noResults": "Žádné výsledky",
13
13
  "table.pagination.full": "Zobrazení {{count}} výsledků z {{total}}",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "z {{count}}",
15
16
  "table.pagination.page": "Strana",
16
17
  "table.result": "{{count}} výsledek",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "Formaat",
12
12
  "table.noResults": "Geen resultaten",
13
13
  "table.pagination.full": "Toont {{count}} van {{total}} resultaten",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "van {{count}}",
15
16
  "table.pagination.page": "Pagina",
16
17
  "table.result": "{{count}} resultaat",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "Format",
12
12
  "table.noResults": "Aucun résultat",
13
13
  "table.pagination.full": "Affichage de {{count}} résultats sur {{total}}",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "sur {{count}}",
15
16
  "table.pagination.page": "Page",
16
17
  "table.result": "{{count}} résultat",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "Muoto",
12
12
  "table.noResults": "Ei tuloksia",
13
13
  "table.pagination.full": "Näytetään {{count}} tulosta yhteensä {{total}} tuloksesta",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "/ {{count}}",
15
16
  "table.pagination.page": "Sivu",
16
17
  "table.result": "{{count}} tulosta",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "Formátum",
12
12
  "table.noResults": "Nincsenek eredmények",
13
13
  "table.pagination.full": "{{count}}/{{total}} találat megjelenítése",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "/ {{count}}",
15
16
  "table.pagination.page": "Oldal:",
16
17
  "table.result": "{{count}} találat",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "Formato",
12
12
  "table.noResults": "Nessun risultato",
13
13
  "table.pagination.full": "Mostra {{count}} di {{total}} risultati",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "di {{count}}",
15
16
  "table.pagination.page": "Pagina",
16
17
  "table.result": "{{count}} risultato",
@@ -11,6 +11,7 @@ var translation = {
11
11
  "table.format": "Format",
12
12
  "table.noResults": "Ingen resultater",
13
13
  "table.pagination.full": "Viser {{count}} av {{total}} resultat",
14
+ "table.pagination.full.capped": "Showing {{count}} of {{total}}+ results",
14
15
  "table.pagination.of": "av {{count}}",
15
16
  "table.pagination.page": "Side",
16
17
  "table.result": "{{count}} resultat",