@gen-epix/ui-client-common 4.7.0 → 4.8.0

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.
Files changed (52) hide show
  1. package/dist/_chunks/CrudPage.js +235 -234
  2. package/dist/_chunks/CrudPage.js.map +1 -1
  3. package/dist/_chunks/GeoFilter.js +1 -0
  4. package/dist/_chunks/GeoFilter.js.map +1 -1
  5. package/dist/_chunks/QueryClientProvider.js +1 -1
  6. package/dist/_chunks/QueryClientProvider.js.map +1 -1
  7. package/dist/_chunks/QueryClientService.js +3 -3
  8. package/dist/_chunks/QueryClientService.js.map +1 -1
  9. package/dist/_chunks/Table.js +1021 -703
  10. package/dist/_chunks/Table.js.map +1 -1
  11. package/dist/_chunks/TableUtil.js +5108 -160
  12. package/dist/_chunks/TableUtil.js.map +1 -1
  13. package/dist/_chunks/TextFilter.js +10 -6
  14. package/dist/_chunks/TextFilter.js.map +1 -1
  15. package/dist/_chunks/query.js +37 -37
  16. package/dist/_chunks/query.js.map +1 -1
  17. package/dist/_chunks/tableStore.js +248 -228
  18. package/dist/_chunks/tableStore.js.map +1 -1
  19. package/dist/_chunks/useMutation.js +2 -2
  20. package/dist/_chunks/useMutation.js.map +1 -1
  21. package/dist/_chunks/useQueryMemo.js +5 -5
  22. package/dist/_chunks/useQueryMemo.js.map +1 -1
  23. package/dist/_chunks/yup.js +2 -2
  24. package/dist/_chunks/yup.js.map +1 -1
  25. package/dist/classes/abstracts/FilterAbstract/FilterAbstract.d.ts +11 -0
  26. package/dist/classes/abstracts/FilterAbstract/index.js +48 -3
  27. package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -1
  28. package/dist/classes/filters/BooleanFilter.d.ts +1 -0
  29. package/dist/classes/filters/DateFilter.d.ts +1 -1
  30. package/dist/classes/filters/GeoFilter.d.ts +1 -0
  31. package/dist/classes/filters/MultiSelectFilter.d.ts +1 -0
  32. package/dist/classes/filters/NumberRangeFilter.d.ts +1 -0
  33. package/dist/classes/filters/TextFilter.d.ts +1 -0
  34. package/dist/components/app/App/index.js +3 -2
  35. package/dist/components/app/App/index.js.map +1 -1
  36. package/dist/components/ui/Table/TableDownloadSidebarItem.d.ts +10 -0
  37. package/dist/components/ui/Table/TableSidebarMenu.d.ts +2 -1
  38. package/dist/components/ui/Table/index.d.ts +1 -0
  39. package/dist/components/ui/Table/index.js +1 -1
  40. package/dist/components/ui/Table/useTableColumnsMenu.d.ts +6 -0
  41. package/dist/locale/en.json +14 -0
  42. package/dist/locale/nl.json +14 -0
  43. package/dist/models/table.models.d.ts +1 -0
  44. package/dist/models/table.models.js.map +1 -1
  45. package/dist/stores/tableStore/tableStore.d.ts +3 -1
  46. package/dist/utils/TableUtil/TableUtil.d.ts +5 -0
  47. package/package.json +19 -21
  48. package/dist/_chunks/useColumnsMenu.js +0 -159
  49. package/dist/_chunks/useColumnsMenu.js.map +0 -1
  50. package/dist/hooks/useColumnsMenu/index.d.ts +0 -1
  51. package/dist/hooks/useColumnsMenu/index.js +0 -1
  52. package/dist/hooks/useColumnsMenu/useColumnsMenu.d.ts +0 -6
@@ -5,6 +5,7 @@ import { Filter } from '../../models/filter.models';
5
5
  export declare class BooleanFilter extends FilterAbstract<boolean> implements Filter<boolean, boolean> {
6
6
  filterValue: boolean;
7
7
  initialFilterValue: boolean;
8
+ supportsMissingValuesFilter: boolean;
8
9
  getPresentationValue(value?: unknown, t?: TFunction<'translation', undefined>): string;
9
10
  matchRowValue(rowValue: boolean): boolean;
10
11
  toBackendFilter(): CommonDbFiltersInner;
@@ -17,10 +17,10 @@ export declare class DateFilter extends FilterAbstract<[Date, Date]> implements
17
17
  initialFilterValue: [Date, Date];
18
18
  maxDate: Date;
19
19
  minDate: Date;
20
+ supportsMissingValuesFilter: boolean;
20
21
  constructor(kwArgs: DateFilterKwArgs);
21
22
  fromURLSearchParameterValue(searchParameterValue: string): [Date, Date];
22
23
  getPresentationValue(value?: unknown): string;
23
24
  matchRowValue(rowValue: string): boolean;
24
25
  toBackendFilter(): CommonDbDateRangeFilter | CommonDbPartialDateRangeFilter;
25
- toURLSearchParameterValue(): string;
26
26
  }
@@ -9,6 +9,7 @@ export declare class GeoFilter extends FilterAbstract<string[]> implements Filte
9
9
  filterValue: string[];
10
10
  initialFilterValue: string[];
11
11
  options: AutoCompleteOption[];
12
+ supportsMissingValuesFilter: boolean;
12
13
  private readonly optionsMap;
13
14
  constructor(kwArgs: GeoFilterKwArgs);
14
15
  getPresentationValue(value?: unknown): string;
@@ -11,6 +11,7 @@ export declare class MultiSelectFilter extends FilterAbstract<string[]> implemen
11
11
  initialFilterValue: string[];
12
12
  maxNumOptionsExpanded: number;
13
13
  options: AutoCompleteOption[];
14
+ supportsMissingValuesFilter: boolean;
14
15
  private readonly optionsMap;
15
16
  constructor(kwArgs: MultiSelectFilterKwArgs);
16
17
  getPresentationValue(value?: unknown): string;
@@ -10,6 +10,7 @@ export declare class NumberRangeFilter extends FilterAbstract<[number, number]>
10
10
  initialFilterValue: [number, number];
11
11
  max: number;
12
12
  min: number;
13
+ supportsMissingValuesFilter: boolean;
13
14
  constructor(kwArgs: NumberRangeFilterKwArgs);
14
15
  getPresentationValue(value?: unknown): string;
15
16
  matchRowValue(rowValue: number): boolean;
@@ -4,6 +4,7 @@ import { FilterAbstract } from '../abstracts/FilterAbstract';
4
4
  export declare class TextFilter extends FilterAbstract<string> implements Filter<string, string> {
5
5
  filterValue: string;
6
6
  initialFilterValue: string;
7
+ supportsMissingValuesFilter: boolean;
7
8
  getPresentationValue(value?: unknown): string;
8
9
  matchRowValue(rowValue: string): boolean;
9
10
  toBackendFilter(): CommonDbRegexFilter;
@@ -18,8 +18,9 @@ import { ErrorBoundary as v } from "react-error-boundary";
18
18
  import { useOsxScrollbarAlwaysVisible as y } from "@gen-epix/ui-core/hooks/useOsxScrollbarAlwaysVisible";
19
19
  // src/components/app/AppRouterProvider/AppRouterProvider.tsx
20
20
  var b = () => /* @__PURE__ */ m(g, { router: d.resolve(l).router }), x = () => {
21
- y();
22
- let l = u(), g = d.resolve(o), x = d.resolve(s), S = l.getTouchIconUrl();
21
+ let l = u();
22
+ y(l.nonce);
23
+ let g = d.resolve(o), x = d.resolve(s), S = l.getTouchIconUrl();
23
24
  S && document.querySelector("link[rel=\"icon\"]")?.setAttribute("href", S);
24
25
  let C = d.resolve(t);
25
26
  C.baseUrl = l.getAPIBaseUrl(), C.defaultRequestTimeout = l.defaultRequestTimeout, C.onRequest = [g.onRequest.bind(g), x.onRequest.bind(x)], C.onResponseFulfilled = [x.onResponseFulfilled.bind(x), d.resolve(n).onResponseFulfilled.bind(d.resolve(n))], C.onResponseRejected = [x.onResponseRejected.bind(x), g.onResponseRejected.bind(g)];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["QueryClientProvider","QueryClientService","AppRouterProvider","RouterProvider","container","RouterService","App","config","useConfig","authenticationService","AuthenticationService","logService","LogService","touchIconUrl","api","API_BASE_TOKEN","BackendVersionService","queryClientService","emotionCache","EmotionCacheService","CacheProvider","ThemeProvider","CssBaseline","ErrorBoundary","ErrorPage","ApplicationBootstrapWithoutAuthorization"],"sources":["../../../../src/components/app/AppRouterProvider/AppRouterProvider.tsx","../../../../src/components/app/App/App.tsx"],"sourcesContent":["import { container } from 'tsyringe';\nimport { RouterProvider } from 'react-router-dom';\n\nimport { RouterService } from '../../../classes/services/RouterService';\n\nexport const AppRouterProvider = () => <RouterProvider router={container.resolve(RouterService).router} />;\n","import { container } from 'tsyringe';\nimport type { DependencyContainer } from 'tsyringe';\nimport { CacheProvider } from '@emotion/react';\nimport {\n CssBaseline,\n ThemeProvider,\n} from '@mui/material';\nimport { QueryClientProvider } from '@tanstack/react-query';\nimport { ErrorBoundary } from 'react-error-boundary';\nimport { useOsxScrollbarAlwaysVisible } from '@gen-epix/ui-core/hooks/useOsxScrollbarAlwaysVisible';\n\nimport { API_BASE_TOKEN } from '../../../constants/api.constants';\nimport { BackendVersionService } from '../../../classes/services/BackendVersionService';\nimport { QueryClientService } from '../../../classes/services/QueryClientService';\nimport { ErrorPage } from '../../../pages/ErrorPage';\nimport { EmotionCacheService } from '../../../classes/services/EmotionCacheService';\nimport { AuthenticationService } from '../../../classes/services/AuthenticationService';\nimport { LogService } from '../../../classes/services/LogService';\nimport { ApplicationBootstrapWithoutAuthorization } from '../ApplicationBootstrapWithoutAuthorization';\nimport { AppRouterProvider } from '../AppRouterProvider/AppRouterProvider';\nimport { useConfig } from '../../../hooks/useConfig';\n\nexport type AppProps = {\n readonly container: DependencyContainer;\n};\n\nexport const App = () => {\n useOsxScrollbarAlwaysVisible();\n const config = useConfig();\n\n const authenticationService = container.resolve(AuthenticationService);\n const logService = container.resolve(LogService);\n const touchIconUrl = config.getTouchIconUrl();\n if (touchIconUrl) {\n document.querySelector('link[rel=\"icon\"]')?.setAttribute('href', touchIconUrl);\n }\n const api = container.resolve(API_BASE_TOKEN);\n api.baseUrl = config.getAPIBaseUrl();\n api.defaultRequestTimeout = config.defaultRequestTimeout;\n api.onRequest = [\n authenticationService.onRequest.bind(authenticationService),\n logService.onRequest.bind(logService),\n ];\n api.onResponseFulfilled = [\n logService.onResponseFulfilled.bind(logService),\n container.resolve(BackendVersionService).onResponseFulfilled.bind(container.resolve(BackendVersionService)),\n ];\n api.onResponseRejected = [\n logService.onResponseRejected.bind(logService),\n authenticationService.onResponseRejected.bind(authenticationService),\n ];\n\n const queryClientService = container.resolve(QueryClientService);\n const emotionCache = container.resolve(EmotionCacheService).emotionCache;\n\n return (\n <QueryClientProvider client={queryClientService.queryClient}>\n <CacheProvider value={emotionCache}>\n <ThemeProvider theme={config.theme}>\n <CssBaseline />\n <ErrorBoundary FallbackComponent={ErrorPage}>\n <ApplicationBootstrapWithoutAuthorization>\n <AppRouterProvider />\n </ApplicationBootstrapWithoutAuthorization>\n </ErrorBoundary>\n </ThemeProvider>\n </CacheProvider>\n </QueryClientProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAKA,IAAaE,UAA0B,kBAACC,GAAD,EAAgB,QAAQC,EAAU,QAAQC,CAAa,CAAC,CAAC,OAAS,CAAA,GCqB5FC,UAAY;CACvB,EAA6B;CAC7B,IAAMC,IAASC,EAAU,GAEnBC,IAAwBL,EAAU,QAAQM,CAAqB,GAC/DC,IAAaP,EAAU,QAAQQ,CAAU,GACzCC,IAAeN,EAAO,gBAAgB;CAC5C,AAAIM,KACF,SAAS,cAAc,oBAAkB,CAAC,EAAE,aAAa,QAAQA,CAAY;CAE/E,IAAMC,IAAMV,EAAU,QAAQW,CAAc;CAW5C,AAVA,EAAI,UAAUR,EAAO,cAAc,GACnC,EAAI,wBAAwBA,EAAO,uBACnC,EAAI,YAAY,CACdE,EAAsB,UAAU,KAAKA,CAAqB,GAC1DE,EAAW,UAAU,KAAKA,CAAU,CACtC,GACA,EAAI,sBAAsB,CACxBA,EAAW,oBAAoB,KAAKA,CAAU,GAC9CP,EAAU,QAAQY,CAAqB,CAAC,CAAC,oBAAoB,KAAKZ,EAAU,QAAQY,CAAqB,CAAC,CAC5G,GACA,EAAI,qBAAqB,CACvBL,EAAW,mBAAmB,KAAKA,CAAU,GAC7CF,EAAsB,mBAAmB,KAAKA,CAAqB,CACrE;CAEA,IAAMQ,IAAqBb,EAAU,QAAQH,CAAkB,GACzDiB,IAAed,EAAU,QAAQe,CAAmB,CAAC,CAAC;CAE5D,OACE,kBAACnB,GAAD;EAAqB,QAAQiB,EAAmB;EAC9C,UAAA,kBAACG,GAAD;GAAe,OAAOF;GACpB,UAAA,kBAACG,GAAD;IAAe,OAAOd,EAAO;IAA7B,UAAA,CACE,kBAACe,GAAD,CAAc,CAAA,GACd,kBAACC,GAAD;KAAe,mBAAmBC;KAChC,UAAA,kBAACC,GAAD,EAAA,UACE,kBAACvB,GAAD,CAAoB,CAAA,EACoB,CAAA;IAC7B,CAAA,CACF;;EACF,CAAA;CACI,CAAA;AAEzB"}
1
+ {"version":3,"file":"index.js","names":["QueryClientProvider","QueryClientService","AppRouterProvider","RouterProvider","container","RouterService","App","config","useConfig","authenticationService","AuthenticationService","logService","LogService","touchIconUrl","api","API_BASE_TOKEN","BackendVersionService","queryClientService","emotionCache","EmotionCacheService","CacheProvider","ThemeProvider","CssBaseline","ErrorBoundary","ErrorPage","ApplicationBootstrapWithoutAuthorization"],"sources":["../../../../src/components/app/AppRouterProvider/AppRouterProvider.tsx","../../../../src/components/app/App/App.tsx"],"sourcesContent":["import { container } from 'tsyringe';\nimport { RouterProvider } from 'react-router-dom';\n\nimport { RouterService } from '../../../classes/services/RouterService';\n\nexport const AppRouterProvider = () => <RouterProvider router={container.resolve(RouterService).router} />;\n","import { container } from 'tsyringe';\nimport type { DependencyContainer } from 'tsyringe';\nimport { CacheProvider } from '@emotion/react';\nimport {\n CssBaseline,\n ThemeProvider,\n} from '@mui/material';\nimport { QueryClientProvider } from '@tanstack/react-query';\nimport { ErrorBoundary } from 'react-error-boundary';\nimport { useOsxScrollbarAlwaysVisible } from '@gen-epix/ui-core/hooks/useOsxScrollbarAlwaysVisible';\n\nimport { API_BASE_TOKEN } from '../../../constants/api.constants';\nimport { BackendVersionService } from '../../../classes/services/BackendVersionService';\nimport { QueryClientService } from '../../../classes/services/QueryClientService';\nimport { ErrorPage } from '../../../pages/ErrorPage';\nimport { EmotionCacheService } from '../../../classes/services/EmotionCacheService';\nimport { AuthenticationService } from '../../../classes/services/AuthenticationService';\nimport { LogService } from '../../../classes/services/LogService';\nimport { ApplicationBootstrapWithoutAuthorization } from '../ApplicationBootstrapWithoutAuthorization';\nimport { AppRouterProvider } from '../AppRouterProvider/AppRouterProvider';\nimport { useConfig } from '../../../hooks/useConfig';\n\nexport type AppProps = {\n readonly container: DependencyContainer;\n};\n\nexport const App = () => {\n const config = useConfig();\n useOsxScrollbarAlwaysVisible(config.nonce);\n\n const authenticationService = container.resolve(AuthenticationService);\n const logService = container.resolve(LogService);\n const touchIconUrl = config.getTouchIconUrl();\n if (touchIconUrl) {\n document.querySelector('link[rel=\"icon\"]')?.setAttribute('href', touchIconUrl);\n }\n const api = container.resolve(API_BASE_TOKEN);\n api.baseUrl = config.getAPIBaseUrl();\n api.defaultRequestTimeout = config.defaultRequestTimeout;\n api.onRequest = [\n authenticationService.onRequest.bind(authenticationService),\n logService.onRequest.bind(logService),\n ];\n api.onResponseFulfilled = [\n logService.onResponseFulfilled.bind(logService),\n container.resolve(BackendVersionService).onResponseFulfilled.bind(container.resolve(BackendVersionService)),\n ];\n api.onResponseRejected = [\n logService.onResponseRejected.bind(logService),\n authenticationService.onResponseRejected.bind(authenticationService),\n ];\n\n const queryClientService = container.resolve(QueryClientService);\n const emotionCache = container.resolve(EmotionCacheService).emotionCache;\n\n return (\n <QueryClientProvider client={queryClientService.queryClient}>\n <CacheProvider value={emotionCache}>\n <ThemeProvider theme={config.theme}>\n <CssBaseline />\n <ErrorBoundary FallbackComponent={ErrorPage}>\n <ApplicationBootstrapWithoutAuthorization>\n <AppRouterProvider />\n </ApplicationBootstrapWithoutAuthorization>\n </ErrorBoundary>\n </ThemeProvider>\n </CacheProvider>\n </QueryClientProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAKA,IAAaE,UAA0B,kBAACC,GAAD,EAAgB,QAAQC,EAAU,QAAQC,CAAa,CAAC,CAAC,OAAS,CAAA,GCqB5FC,UAAY;CACvB,IAAMC,IAASC,EAAU;CACzB,EAA6BD,EAAO,KAAK;CAEzC,IAAME,IAAwBL,EAAU,QAAQM,CAAqB,GAC/DC,IAAaP,EAAU,QAAQQ,CAAU,GACzCC,IAAeN,EAAO,gBAAgB;CAC5C,AAAIM,KACF,SAAS,cAAc,oBAAkB,CAAC,EAAE,aAAa,QAAQA,CAAY;CAE/E,IAAMC,IAAMV,EAAU,QAAQW,CAAc;CAW5C,AAVA,EAAI,UAAUR,EAAO,cAAc,GACnC,EAAI,wBAAwBA,EAAO,uBACnC,EAAI,YAAY,CACdE,EAAsB,UAAU,KAAKA,CAAqB,GAC1DE,EAAW,UAAU,KAAKA,CAAU,CACtC,GACA,EAAI,sBAAsB,CACxBA,EAAW,oBAAoB,KAAKA,CAAU,GAC9CP,EAAU,QAAQY,CAAqB,CAAC,CAAC,oBAAoB,KAAKZ,EAAU,QAAQY,CAAqB,CAAC,CAC5G,GACA,EAAI,qBAAqB,CACvBL,EAAW,mBAAmB,KAAKA,CAAU,GAC7CF,EAAsB,mBAAmB,KAAKA,CAAqB,CACrE;CAEA,IAAMQ,IAAqBb,EAAU,QAAQH,CAAkB,GACzDiB,IAAed,EAAU,QAAQe,CAAmB,CAAC,CAAC;CAE5D,OACE,kBAACnB,GAAD;EAAqB,QAAQiB,EAAmB;EAC9C,UAAA,kBAACG,GAAD;GAAe,OAAOF;GACpB,UAAA,kBAACG,GAAD;IAAe,OAAOd,EAAO;IAA7B,UAAA,CACE,kBAACe,GAAD,CAAc,CAAA,GACd,kBAACC,GAAD;KAAe,mBAAmBC;KAChC,UAAA,kBAACC,GAAD,EAAA,UACE,kBAACvB,GAAD,CAAoB,CAAA,EACoB,CAAA;IAC7B,CAAA,CACF;;EACF,CAAA;CACI,CAAA;AAEzB"}
@@ -0,0 +1,10 @@
1
+ import { SidebarItemSharedProps } from '../Sidebar';
2
+ export type TableDownloadSidebarItemContentProps = {
3
+ readonly downloadAsFileName?: string;
4
+ };
5
+ export type TableDownloadSidebarItemProps = SidebarItemSharedProps & TableDownloadSidebarItemContentProps;
6
+ export declare const TableDownloadSidebarItemIcon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
7
+ muiName: string;
8
+ };
9
+ export declare const TableDownloadSidebarItemContent: <TRowData, TDataContext>({ downloadAsFileName }: TableDownloadSidebarItemContentProps) => import('react').JSX.Element;
10
+ export declare const TableDownloadSidebarItem: ({ downloadAsFileName, onClose, open }: TableDownloadSidebarItemProps) => import('react').JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  export type TableSidebarMenuProps = {
3
+ readonly downloadAsFileName?: string;
3
4
  readonly extraSidebarMenuItems?: ReactNode;
4
5
  };
5
- export declare const TableSidebarMenu: <TRowData, TDataContext = null>({ extraSidebarMenuItems }: TableSidebarMenuProps) => import('react').JSX.Element;
6
+ export declare const TableSidebarMenu: <TRowData, TDataContext = null>({ downloadAsFileName, extraSidebarMenuItems }: TableSidebarMenuProps) => import('react').JSX.Element;
@@ -11,3 +11,4 @@ export * from './TableHeaderCell';
11
11
  export * from './TableHeaderFilter';
12
12
  export * from './TableMenu';
13
13
  export * from './TableSidebarMenu';
14
+ export * from './useTableColumnsMenu';
@@ -1 +1 @@
1
- export { c as Table, u as TableActionsCell, s as TableCaption, f as TableCell, h as TableCellAsyncContent, l as TableColumnsEditorDialog, m as TableFilter, i as TableFiltersSidebarItem, a as TableFiltersSidebarItemContent, o as TableFiltersSidebarItemIcon, n as TableHeader, d as TableHeaderCell, p as TableHeaderFilter, r as TableMenu, t as TableSidebarMenu } from "../../../_chunks/Table.js";
1
+ export { l as Table, d as TableActionsCell, c as TableCaption, p as TableCell, g as TableCellAsyncContent, u as TableColumnsEditorDialog, h as TableFilter, a as TableFiltersSidebarItem, o as TableFiltersSidebarItemContent, s as TableFiltersSidebarItemIcon, n as TableHeader, f as TableHeaderCell, m as TableHeaderFilter, r as TableMenu, t as TableSidebarMenu, i as useTableColumnsMenu } from "../../../_chunks/Table.js";
@@ -0,0 +1,6 @@
1
+ import { MenuItemData } from '@gen-epix/ui-core-components/models/nested-menu.models';
2
+ import { HasCellDataFn } from '../../../models/table.models';
3
+ export type UseTableColumnsMenuProps<TRowData, TDataContext = null> = {
4
+ readonly hasCellData?: HasCellDataFn<TRowData, TDataContext>;
5
+ };
6
+ export declare const useTableColumnsMenu: <TRowData, TDataContext = null>({ hasCellData }: UseTableColumnsMenuProps<TRowData, TDataContext>) => MenuItemData;
@@ -46,6 +46,7 @@
46
46
  "Active to": "Active to",
47
47
  "ago": "ago",
48
48
  "All filters have been removed, but have not yet been applied.": "All filters have been removed, but have not yet been applied.",
49
+ "All rows": "All rows",
49
50
  "Anonymize": "Anonymize",
50
51
  "Anonymize user": "Anonymize user",
51
52
  "Anonymizing user: {{userName}}": "Anonymizing user: {{userName}}",
@@ -75,6 +76,7 @@
75
76
  "Click the logout button to logout": "Click the logout button to logout",
76
77
  "Clone": "Clone",
77
78
  "Close": "Close",
79
+ "Close download": "Close download",
78
80
  "Close filters": "Close filters",
79
81
  "Close notifications drawer": "Close notifications drawer",
80
82
  "Code": "Code",
@@ -106,6 +108,11 @@
106
108
  "Delete item: {{itemName}}": "Delete item: {{itemName}}",
107
109
  "Description": "Description",
108
110
  "Details for our technicians": "Details for our technicians",
111
+ "Download": "Download",
112
+ "Download all rows as CSV": "Download all rows as CSV",
113
+ "Download all rows as Excel": "Download all rows as Excel",
114
+ "Download selected rows as CSV": "Download selected rows as CSV",
115
+ "Download selected rows as Excel": "Download selected rows as Excel",
109
116
  "Drag handle for {{label}}": "Drag handle for {{label}}",
110
117
  "E-Mail": "E-Mail",
111
118
  "Edit": "Edit",
@@ -137,6 +144,7 @@
137
144
  "Identifier issuers": "Identifier issuers",
138
145
  "Identifier Issuers": "Identifier Issuers",
139
146
  "If known, fill in the user's key. This is typically the user's email address, but can be any string depending on the Identity Provider. Filling in a key makes the invitation more secure. If left empty, the invitation can be consumed by anyone with the invite link.": "If known, fill in the user's key. This is typically the user's email address, but can be any string depending on the Identity Provider. Filling in a key makes the invitation more secure. If left empty, the invitation can be consumed by anyone with the invite link.",
147
+ "Include missing values": "Include missing values",
140
148
  "Invitation": "Invitation",
141
149
  "Invitation details for {{email}}": "Invitation details for {{email}}",
142
150
  "Invitation has been consumed by bearer token": "Invitation has been consumed by bearer token",
@@ -171,6 +179,7 @@
171
179
  "Manage users": "Manage users",
172
180
  "Manage your organizations": "Manage your organizations",
173
181
  "Management": "Management",
182
+ "Missing": "Missing",
174
183
  "more than {{hours}} hours": "more than {{hours}} hours",
175
184
  "My API permissions": "My API permissions",
176
185
  "My organization": "My organization",
@@ -185,6 +194,7 @@
185
194
  "No new notifications in this session": "No new notifications in this session",
186
195
  "Not found.": "Not found.",
187
196
  "Notifications": "Notifications",
197
+ "Open download": "Open download",
188
198
  "Open filters": "Open filters",
189
199
  "Open project homepage in new tab": "Open project homepage in new tab",
190
200
  "Organization": "Organization",
@@ -224,7 +234,9 @@
224
234
  "Row actions": "Row actions",
225
235
  "Save": "Save",
226
236
  "Select all": "Select all",
237
+ "Select missing values": "Select missing values",
227
238
  "Select row": "Select row",
239
+ "Selected rows": "Selected rows",
228
240
  "Send": "Send",
229
241
  "Send invitation": "Send invitation",
230
242
  "Show": "Show",
@@ -278,6 +290,8 @@
278
290
  "We have encountered a problem. The error has been automatically logged. One of our staff will look into it shortly. Error message: {{message}}": "We have encountered a problem. The error has been automatically logged. One of our staff will look into it shortly. Error message: {{message}}",
279
291
  "We were unable to process this page or item.": "We were unable to process this page or item.",
280
292
  "Welcome to {{applicationName}}": "Welcome to {{applicationName}}",
293
+ "When enabled, include items with missing values alongside items matching the selected values.": "When enabled, include items with missing values alongside items matching the selected values.",
294
+ "When enabled, select only items with missing values.": "When enabled, select only items with missing values.",
281
295
  "Would you like to share your feedback?": "Would you like to share your feedback?",
282
296
  "Yes": "Yes",
283
297
  "You are not authorized to access this page or item.": "You are not authorized to access this page or item.",
@@ -46,6 +46,7 @@
46
46
  "Active to": "Actief tot",
47
47
  "ago": "geleden",
48
48
  "All filters have been removed, but have not yet been applied.": "Alle filters zijn verwijderd, maar nog niet toegepast.",
49
+ "All rows": "Alle rijen",
49
50
  "Anonymize": "Anonimiseren",
50
51
  "Anonymize user": "Gebruiker anonimiseren",
51
52
  "Anonymizing user: {{userName}}": "Gebruiker anonimiseren: {{userName}}",
@@ -75,6 +76,7 @@
75
76
  "Click the logout button to logout": "Klik op de uitlog knop om uit te loggen",
76
77
  "Clone": "Klonen",
77
78
  "Close": "Sluiten",
79
+ "Close download": "Download sluiten",
78
80
  "Close filters": "Filters sluiten",
79
81
  "Close notifications drawer": "Meldingenpaneel sluiten",
80
82
  "Code": "Code",
@@ -106,6 +108,11 @@
106
108
  "Delete item: {{itemName}}": "Verwijder item: {{itemName}}",
107
109
  "Description": "Omschrijving",
108
110
  "Details for our technicians": "Details voor onze technici",
111
+ "Download": "Downloaden",
112
+ "Download all rows as CSV": "Download alle rijen als CSV",
113
+ "Download all rows as Excel": "Download alle rijen als Excel",
114
+ "Download selected rows as CSV": "Download geselecteerde rijen als CSV",
115
+ "Download selected rows as Excel": "Download geselecteerde rijen als Excel",
109
116
  "Drag handle for {{label}}": "Sleep handvat voor {{label}}",
110
117
  "E-Mail": "E-mail",
111
118
  "Edit": "Bewerken",
@@ -137,6 +144,7 @@
137
144
  "Identifier issuers": "Identificatie uitgevers",
138
145
  "Identifier Issuers": "Identificatie Uitgevers",
139
146
  "If known, fill in the user's key. This is typically the user's email address, but can be any string depending on the Identity Provider. Filling in a key makes the invitation more secure. If left empty, the invitation can be consumed by anyone with the invite link.": "Vul indien bekend de sleutel van de gebruiker in. Dit is doorgaans het e-mailadres van de gebruiker, maar kan elke tekenreeks zijn afhankelijk van de identiteitsprovider. Het invullen van een sleutel maakt de uitnodiging veiliger. Als dit leeg wordt gelaten, kan de uitnodiging worden ingewisseld door iedereen met de uitnodigingslink.",
147
+ "Include missing values": "Ontbrekende waarden opnemen",
140
148
  "Invitation": "Uitnodiging",
141
149
  "Invitation details for {{email}}": "Uitnodigingsdetails voor {{email}}",
142
150
  "Invitation has been consumed by bearer token": "Uitnodiging is ingewisseld met bearer token",
@@ -171,6 +179,7 @@
171
179
  "Manage users": "Beheer gebruikers",
172
180
  "Manage your organizations": "Beheer uw organisaties",
173
181
  "Management": "Beheer",
182
+ "Missing": "Ontbrekende waarden",
174
183
  "more than {{hours}} hours": "meer dan {{hours}} uur",
175
184
  "My API permissions": "Mijn API rechten",
176
185
  "My organization": "Mijn organisatie",
@@ -185,6 +194,7 @@
185
194
  "No new notifications in this session": "Geen nieuwe meldingen in deze sessie",
186
195
  "Not found.": "Niet gevonden.",
187
196
  "Notifications": "Notificaties",
197
+ "Open download": "Download openen",
188
198
  "Open filters": "Open filters",
189
199
  "Open project homepage in new tab": "Open project homepage in nieuw tabblad",
190
200
  "Organization": "Organisatie",
@@ -224,7 +234,9 @@
224
234
  "Row actions": "Rij acties",
225
235
  "Save": "Opslaan",
226
236
  "Select all": "Alles selecteren",
237
+ "Select missing values": "Ontbrekende waarden selecteren",
227
238
  "Select row": "Rij selecteren",
239
+ "Selected rows": "Geselecteerde rijen",
228
240
  "Send": "Versturen",
229
241
  "Send invitation": "Stuur uitnodiging",
230
242
  "Show": "Tonen",
@@ -278,6 +290,8 @@
278
290
  "We have encountered a problem. The error has been automatically logged. One of our staff will look into it shortly. Error message: {{message}}": "We hebben een probleem ondervonden. De fout is automatisch gelogd. Een van onze medewerkers zal er binnenkort naar kijken. Foutmelding: {{message}}",
279
291
  "We were unable to process this page or item.": "We konden deze pagina of dit item niet verwerken.",
280
292
  "Welcome to {{applicationName}}": "Welkom bij {{applicationName}}",
293
+ "When enabled, include items with missing values alongside items matching the selected values.": "Als dit is ingeschakeld, worden items met ontbrekende waarden ook opgenomen naast items die overeenkomen met de geselecteerde waarden.",
294
+ "When enabled, select only items with missing values.": "Als dit is ingeschakeld, worden alleen items met ontbrekende waarden geselecteerd.",
281
295
  "Would you like to share your feedback?": "Wilt u uw feedback delen?",
282
296
  "Yes": "Ja",
283
297
  "You are not authorized to access this page or item.": "U bent niet gemachtigd om toegang te krijgen tot deze pagina of dit item.",
@@ -132,6 +132,7 @@ interface TableColumnBase<TRowData, TValue, TDataContext = null, TColumnContext
132
132
  frozen?: TABLE_COLUMN_FROZEN;
133
133
  headerName?: string;
134
134
  headerTooltipContent?: string;
135
+ hideInDownload?: boolean;
135
136
  hideInFilter?: boolean;
136
137
  id?: string;
137
138
  isInitiallyVisible: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"table.models.js","names":["FIXED_COLUMN_ID","\"ACTIONS\"","\"READABLE_INDEX\"","\"ROW_SELECT\"","TABLE_COLUMN_FROZEN","\"LEFT\"","\"RIGHT\""],"sources":["../../src/models/table.models.ts"],"sourcesContent":["import type {\n SxProps,\n Theme,\n} from '@mui/material';\nimport type { ReactElement } from 'react';\nimport type { TFunction } from 'i18next';\nimport type { DATE_FORMAT } from '@gen-epix/ui-core/constants/date.constants';\nimport type { OptionBase } from '@gen-epix/ui-core-form/models/form.models';\n\nexport enum FIXED_COLUMN_ID {\n ACTIONS = 'ACTIONS',\n READABLE_INDEX = 'READABLE_INDEX',\n ROW_SELECT = 'ROW_SELECT',\n}\n\nexport enum TABLE_COLUMN_FROZEN {\n LEFT = 'left',\n RIGHT = 'right',\n}\n\nexport interface GetTableCellRowComparatorProps<TColumn, TDataContext = null> {\n readonly column: TColumn;\n readonly dataContext: TDataContext;\n readonly direction: TableSortDirection;\n}\n\nexport interface GetTableCellValueProps<TRowData, TColumn, TDataContext = null> {\n readonly column: TColumn;\n readonly dataContext: TDataContext;\n readonly row: TRowData;\n readonly rowIndex: number;\n readonly t?: TFunction<'translation', undefined>;\n}\n\nexport type HasCellDataFn<TRowData, TDataContext = null> = (row: TRowData, column: TableColumn<TRowData, TDataContext>, rowIndex: number, dataContext: TDataContext) => boolean;\n\nexport type TableCellRowComparatorArgument<TRowData> = {\n row: TRowData;\n rowIndex: number;\n};\n\nexport type TableColumn<TRowData, TDataContext = null, TColumnContext = null> =\n TableColumnActions<TRowData, TDataContext, TColumnContext> |\n TableColumnBoolean<TRowData, TDataContext, TColumnContext> |\n TableColumnDate<TRowData, TDataContext, TColumnContext> |\n TableColumnNumber<TRowData, TDataContext, TColumnContext> |\n TableColumnOptions<TRowData, TDataContext, TColumnContext> |\n TableColumnReadableIndex<TRowData, TDataContext, TColumnContext> |\n TableColumnSelectable<TRowData, TDataContext, TColumnContext> |\n TableColumnText<TRowData, TDataContext, TColumnContext>;\n\nexport interface TableColumnActions<TRowData, TDataContext = null, TColumnContext = null> extends TableColumnBase<TRowData, string, TDataContext, TColumnContext> {\n comparatorFactory?: (params: GetTableCellRowComparatorProps<TableColumnActions<TRowData, TDataContext, TColumnContext>, TDataContext>) => (a: TRowData, b: TRowData) => number;\n frozen: TABLE_COLUMN_FROZEN.RIGHT;\n getActions: (params: TableRowParams<TRowData, TDataContext>) => ReactElement[];\n id: FIXED_COLUMN_ID.ACTIONS;\n isInitiallyVisible: true;\n resizable: false;\n type: 'actions';\n}\n\nexport interface TableColumnBoolean<TRowData, TDataContext = null, TColumnContext = null> extends TableColumnBase<TRowData, boolean, TDataContext, TColumnContext> {\n comparatorFactory?: (params: GetTableCellRowComparatorProps<TableColumnBoolean<TRowData, TDataContext, TColumnContext>, TDataContext>) => (a: TRowData, b: TRowData) => number;\n type: 'boolean';\n}\n\nexport interface TableColumnDate<TRowData, TDataContext = null, TColumnContext = null> extends TableColumnBase<TRowData, string, TDataContext, TColumnContext> {\n comparatorFactory?: (params: GetTableCellRowComparatorProps<TableColumnDate<TRowData, TDataContext, TColumnContext>, TDataContext>) => (a: TRowData, b: TRowData) => number;\n dateFormat: typeof DATE_FORMAT[keyof typeof DATE_FORMAT];\n type: 'date';\n}\n\nexport type TableColumnDimension = {\n columnIds: string[];\n id: string;\n label: string;\n};\n\nexport interface TableColumnNumber<TRowData, TDataContext = null, TColumnContext = null> extends TableColumnBase<TRowData, number, TDataContext, TColumnContext> {\n comparatorFactory?: (params: GetTableCellRowComparatorProps<TableColumnNumber<TRowData, TDataContext, TColumnContext>, TDataContext>) => (a: TRowData, b: TRowData) => number;\n type: 'number';\n}\n\nexport interface TableColumnOptions<TRowData, TDataContext = null, TColumnContext = null> extends TableColumnBase<TRowData, string | string[], TDataContext, TColumnContext> {\n comparatorFactory?: (params: GetTableCellRowComparatorProps<TableColumnOptions<TRowData, TDataContext, TColumnContext>, TDataContext>) => (a: TRowData, b: TRowData) => number;\n maxNumOptionsExpanded?: number;\n options: OptionBase<string>[];\n shouldFilterOptions?: boolean;\n type: 'options';\n}\n\nexport interface TableColumnParams<TRowData, TDataContext = null> {\n column: TableColumn<TRowData, TDataContext>;\n dataContext: TDataContext;\n}\n\nexport interface TableColumnReadableIndex<TRowData, TDataContext = null, TColumnContext = null> extends TableColumnBase<TRowData, never, TDataContext, TColumnContext> {\n comparatorFactory?: never;\n disableEllipsis: true;\n frozen: TABLE_COLUMN_FROZEN.LEFT;\n getAriaLabel: (params: TableRowParams<TRowData, TDataContext>) => string;\n id: FIXED_COLUMN_ID.READABLE_INDEX;\n resizable: false;\n type: 'readableIndex';\n}\n\nexport interface TableColumnSelectable<TRowData, TDataContext = null, TColumnContext = null> extends TableColumnBase<TRowData, never, TDataContext, TColumnContext> {\n comparatorFactory?: never;\n disableEllipsis: true;\n frozen: TABLE_COLUMN_FROZEN.LEFT;\n id: FIXED_COLUMN_ID.ROW_SELECT;\n isDisabled?: (params: TableRowParams<TRowData, TDataContext>) => boolean;\n resizable: false;\n type: 'selectable';\n}\n\nexport interface TableColumnText<TRowData, TDataContext = null, TColumnContext = null> extends TableColumnBase<TRowData, string, TDataContext, TColumnContext> {\n comparatorFactory?: (params: GetTableCellRowComparatorProps<TableColumnText<TRowData, TDataContext>, TDataContext>) => (a: TRowData, b: TRowData) => number;\n type: 'text';\n}\n\nexport type TableColumnVisualSettings = {\n calculatedWidth?: number;\n hasResized?: boolean;\n id: string;\n isVisible: boolean;\n offsetX?: number;\n widthFlex: number;\n widthPx: number;\n};\n\n\nexport type TableDragEvent = {\n clientX: number;\n clientY: number;\n deltaX: number;\n deltaY: number;\n elementOffsetX: number;\n elementWidth: number;\n target: HTMLDivElement;\n type: 'end' | 'move' | 'start';\n};\n\nexport type TableRowAndColumnParams<TRowData, TDataContext = null> = TableColumnParams<TRowData, TDataContext> & TableRowParams<TRowData, TDataContext>;\n\nexport interface TableRowParams<TRowData, TDataContext = null> {\n dataContext: TDataContext;\n id: string;\n row: TRowData;\n rowIndex: number;\n}\n\nexport type TableSortDirection = 'asc' | 'desc';\n\ninterface TableColumnBase<TRowData, TValue, TDataContext = null, TColumnContext = null> {\n cellColorGetter?: (params: TableRowAndColumnParams<TRowData, TDataContext>) => string;\n cellTitleGetter?: (params: TableRowAndColumnParams<TRowData, TDataContext>) => string;\n columnContext?: TColumnContext;\n customHeaderIcon?: {\n iconElement: ReactElement;\n label: string;\n onClick: (params: TableColumnParams<TRowData, TDataContext>) => void;\n };\n disableEllipsis?: boolean;\n displayValueGetter?: (params: TableRowAndColumnParams<TRowData, TDataContext>) => string;\n filterLabel?: string;\n frozen?: TABLE_COLUMN_FROZEN;\n headerName?: string;\n headerTooltipContent?: string;\n hideInFilter?: boolean;\n id?: string;\n isInitiallyVisible: boolean;\n renderCell?: (params: TableRowAndColumnParams<TRowData, TDataContext>) => ReactElement;\n renderHeader?: (params: TableColumnParams<TRowData, TDataContext>) => ReactElement;\n renderHeaderContent?: (params: TableColumnParams<TRowData, TDataContext>) => ReactElement;\n resizable?: boolean;\n sx?: SxProps<Theme>;\n textAlign?: 'left' | 'right';\n valueGetter?: (params: TableRowAndColumnParams<TRowData, TDataContext>) => TValue;\n widthFlex?: number;\n widthPx?: number;\n widthPxFn?: (dataLength: number) => number;\n}\n"],"mappings":";AASA,IAAYA,IAAL,yBAAA,GAAA;C,OACL,EAAAC,UAAA,WACA,EAAAC,iBAAA,kBACA,EAAAC,aAAA,c;AACF,EAAA,CAAA,CAAA,GAEYC,IAAL,yBAAA,GAAA;C,OACL,EAAAC,OAAA,QACA,EAAAC,QAAA,S;AACF,EAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"table.models.js","names":["FIXED_COLUMN_ID","\"ACTIONS\"","\"READABLE_INDEX\"","\"ROW_SELECT\"","TABLE_COLUMN_FROZEN","\"LEFT\"","\"RIGHT\""],"sources":["../../src/models/table.models.ts"],"sourcesContent":["import type {\n SxProps,\n Theme,\n} from '@mui/material';\nimport type { ReactElement } from 'react';\nimport type { TFunction } from 'i18next';\nimport type { DATE_FORMAT } from '@gen-epix/ui-core/constants/date.constants';\nimport type { OptionBase } from '@gen-epix/ui-core-form/models/form.models';\n\nexport enum FIXED_COLUMN_ID {\n ACTIONS = 'ACTIONS',\n READABLE_INDEX = 'READABLE_INDEX',\n ROW_SELECT = 'ROW_SELECT',\n}\n\nexport enum TABLE_COLUMN_FROZEN {\n LEFT = 'left',\n RIGHT = 'right',\n}\n\nexport interface GetTableCellRowComparatorProps<TColumn, TDataContext = null> {\n readonly column: TColumn;\n readonly dataContext: TDataContext;\n readonly direction: TableSortDirection;\n}\n\nexport interface GetTableCellValueProps<TRowData, TColumn, TDataContext = null> {\n readonly column: TColumn;\n readonly dataContext: TDataContext;\n readonly row: TRowData;\n readonly rowIndex: number;\n readonly t?: TFunction<'translation', undefined>;\n}\n\nexport type HasCellDataFn<TRowData, TDataContext = null> = (row: TRowData, column: TableColumn<TRowData, TDataContext>, rowIndex: number, dataContext: TDataContext) => boolean;\n\nexport type TableCellRowComparatorArgument<TRowData> = {\n row: TRowData;\n rowIndex: number;\n};\n\nexport type TableColumn<TRowData, TDataContext = null, TColumnContext = null> =\n TableColumnActions<TRowData, TDataContext, TColumnContext> |\n TableColumnBoolean<TRowData, TDataContext, TColumnContext> |\n TableColumnDate<TRowData, TDataContext, TColumnContext> |\n TableColumnNumber<TRowData, TDataContext, TColumnContext> |\n TableColumnOptions<TRowData, TDataContext, TColumnContext> |\n TableColumnReadableIndex<TRowData, TDataContext, TColumnContext> |\n TableColumnSelectable<TRowData, TDataContext, TColumnContext> |\n TableColumnText<TRowData, TDataContext, TColumnContext>;\n\nexport interface TableColumnActions<TRowData, TDataContext = null, TColumnContext = null> extends TableColumnBase<TRowData, string, TDataContext, TColumnContext> {\n comparatorFactory?: (params: GetTableCellRowComparatorProps<TableColumnActions<TRowData, TDataContext, TColumnContext>, TDataContext>) => (a: TRowData, b: TRowData) => number;\n frozen: TABLE_COLUMN_FROZEN.RIGHT;\n getActions: (params: TableRowParams<TRowData, TDataContext>) => ReactElement[];\n id: FIXED_COLUMN_ID.ACTIONS;\n isInitiallyVisible: true;\n resizable: false;\n type: 'actions';\n}\n\nexport interface TableColumnBoolean<TRowData, TDataContext = null, TColumnContext = null> extends TableColumnBase<TRowData, boolean, TDataContext, TColumnContext> {\n comparatorFactory?: (params: GetTableCellRowComparatorProps<TableColumnBoolean<TRowData, TDataContext, TColumnContext>, TDataContext>) => (a: TRowData, b: TRowData) => number;\n type: 'boolean';\n}\n\nexport interface TableColumnDate<TRowData, TDataContext = null, TColumnContext = null> extends TableColumnBase<TRowData, string, TDataContext, TColumnContext> {\n comparatorFactory?: (params: GetTableCellRowComparatorProps<TableColumnDate<TRowData, TDataContext, TColumnContext>, TDataContext>) => (a: TRowData, b: TRowData) => number;\n dateFormat: typeof DATE_FORMAT[keyof typeof DATE_FORMAT];\n type: 'date';\n}\n\nexport type TableColumnDimension = {\n columnIds: string[];\n id: string;\n label: string;\n};\n\nexport interface TableColumnNumber<TRowData, TDataContext = null, TColumnContext = null> extends TableColumnBase<TRowData, number, TDataContext, TColumnContext> {\n comparatorFactory?: (params: GetTableCellRowComparatorProps<TableColumnNumber<TRowData, TDataContext, TColumnContext>, TDataContext>) => (a: TRowData, b: TRowData) => number;\n type: 'number';\n}\n\nexport interface TableColumnOptions<TRowData, TDataContext = null, TColumnContext = null> extends TableColumnBase<TRowData, string | string[], TDataContext, TColumnContext> {\n comparatorFactory?: (params: GetTableCellRowComparatorProps<TableColumnOptions<TRowData, TDataContext, TColumnContext>, TDataContext>) => (a: TRowData, b: TRowData) => number;\n maxNumOptionsExpanded?: number;\n options: OptionBase<string>[];\n shouldFilterOptions?: boolean;\n type: 'options';\n}\n\nexport interface TableColumnParams<TRowData, TDataContext = null> {\n column: TableColumn<TRowData, TDataContext>;\n dataContext: TDataContext;\n}\n\nexport interface TableColumnReadableIndex<TRowData, TDataContext = null, TColumnContext = null> extends TableColumnBase<TRowData, never, TDataContext, TColumnContext> {\n comparatorFactory?: never;\n disableEllipsis: true;\n frozen: TABLE_COLUMN_FROZEN.LEFT;\n getAriaLabel: (params: TableRowParams<TRowData, TDataContext>) => string;\n id: FIXED_COLUMN_ID.READABLE_INDEX;\n resizable: false;\n type: 'readableIndex';\n}\n\nexport interface TableColumnSelectable<TRowData, TDataContext = null, TColumnContext = null> extends TableColumnBase<TRowData, never, TDataContext, TColumnContext> {\n comparatorFactory?: never;\n disableEllipsis: true;\n frozen: TABLE_COLUMN_FROZEN.LEFT;\n id: FIXED_COLUMN_ID.ROW_SELECT;\n isDisabled?: (params: TableRowParams<TRowData, TDataContext>) => boolean;\n resizable: false;\n type: 'selectable';\n}\n\nexport interface TableColumnText<TRowData, TDataContext = null, TColumnContext = null> extends TableColumnBase<TRowData, string, TDataContext, TColumnContext> {\n comparatorFactory?: (params: GetTableCellRowComparatorProps<TableColumnText<TRowData, TDataContext>, TDataContext>) => (a: TRowData, b: TRowData) => number;\n type: 'text';\n}\n\nexport type TableColumnVisualSettings = {\n calculatedWidth?: number;\n hasResized?: boolean;\n id: string;\n isVisible: boolean;\n offsetX?: number;\n widthFlex: number;\n widthPx: number;\n};\n\n\nexport type TableDragEvent = {\n clientX: number;\n clientY: number;\n deltaX: number;\n deltaY: number;\n elementOffsetX: number;\n elementWidth: number;\n target: HTMLDivElement;\n type: 'end' | 'move' | 'start';\n};\n\nexport type TableRowAndColumnParams<TRowData, TDataContext = null> = TableColumnParams<TRowData, TDataContext> & TableRowParams<TRowData, TDataContext>;\n\nexport interface TableRowParams<TRowData, TDataContext = null> {\n dataContext: TDataContext;\n id: string;\n row: TRowData;\n rowIndex: number;\n}\n\nexport type TableSortDirection = 'asc' | 'desc';\n\ninterface TableColumnBase<TRowData, TValue, TDataContext = null, TColumnContext = null> {\n cellColorGetter?: (params: TableRowAndColumnParams<TRowData, TDataContext>) => string;\n cellTitleGetter?: (params: TableRowAndColumnParams<TRowData, TDataContext>) => string;\n columnContext?: TColumnContext;\n customHeaderIcon?: {\n iconElement: ReactElement;\n label: string;\n onClick: (params: TableColumnParams<TRowData, TDataContext>) => void;\n };\n disableEllipsis?: boolean;\n displayValueGetter?: (params: TableRowAndColumnParams<TRowData, TDataContext>) => string;\n filterLabel?: string;\n frozen?: TABLE_COLUMN_FROZEN;\n headerName?: string;\n headerTooltipContent?: string;\n hideInDownload?: boolean;\n hideInFilter?: boolean;\n id?: string;\n isInitiallyVisible: boolean;\n renderCell?: (params: TableRowAndColumnParams<TRowData, TDataContext>) => ReactElement;\n renderHeader?: (params: TableColumnParams<TRowData, TDataContext>) => ReactElement;\n renderHeaderContent?: (params: TableColumnParams<TRowData, TDataContext>) => ReactElement;\n resizable?: boolean;\n sx?: SxProps<Theme>;\n textAlign?: 'left' | 'right';\n valueGetter?: (params: TableRowAndColumnParams<TRowData, TDataContext>) => TValue;\n widthFlex?: number;\n widthPx?: number;\n widthPxFn?: (dataLength: number) => number;\n}\n"],"mappings":";AASA,IAAYA,IAAL,yBAAA,GAAA;C,OACL,EAAAC,UAAA,WACA,EAAAC,iBAAA,kBACA,EAAAC,aAAA,c;AACF,EAAA,CAAA,CAAA,GAEYC,IAAL,yBAAA,GAAA;C,OACL,EAAAC,OAAA,QACA,EAAAC,QAAA,S;AACF,EAAA,CAAA,CAAA"}
@@ -9,6 +9,7 @@ export interface CreateTableStoreInitialStateKwArgs<TData, TDataContext = null>
9
9
  idSelectorCallback: (row: TData) => string;
10
10
  isRowEnabledCallback?: (row: TData, dataContext: TDataContext) => boolean;
11
11
  navigatorFunction?: NavigateFunction;
12
+ showMissingValuesFilter?: boolean;
12
13
  }
13
14
  export type CreateTableStoreKwArgs<TData, TDataContext = null> = {
14
15
  storageNamePostFix?: string;
@@ -36,7 +37,7 @@ export interface TableStoreActions<TData, TDataContext = null> {
36
37
  setColumnVisualSettingsUncondensed: (columnVisualSettingsUncondensed: TableColumnVisualSettings[]) => void;
37
38
  setCurrentColumnVisualSettings: (columnVisualSettings: TableColumnVisualSettings[]) => void;
38
39
  setFilters: (filters: Filters, filterDimensions: FilterDimension[], frontendFilterPriorities: string[]) => void;
39
- setFilterValue: (id: string, value: unknown) => Promise<void>;
40
+ setFilterValue: (id: string, value: unknown, includeMissingValues?: boolean) => Promise<void>;
40
41
  setFilterValues: (filterValues: FilterValues) => Promise<void>;
41
42
  setIsCondensed: (isCondensed: boolean) => void;
42
43
  setNavigateFunction: (navigateFunction: NavigateFunction) => void;
@@ -81,6 +82,7 @@ export interface TableStoreState<TData, TDataContext = null> {
81
82
  isRowEnabledCallback: (row: TData, dataContext: TDataContext) => boolean;
82
83
  navigateFunction: NavigateFunction;
83
84
  selectedIds: string[];
85
+ showMissingValuesFilter: boolean;
84
86
  sortByField: string;
85
87
  sortDirection: TableSortDirection;
86
88
  sortedData: TData[];
@@ -68,6 +68,8 @@ export declare class TableUtil {
68
68
  id?: keyof TData;
69
69
  name: string;
70
70
  }): TableColumnText<TData, TDataContext, TColumnContext>;
71
+ static downloadAsCSV<TRowData, TDataContext = null>(sortedData: TRowData[], visibleColumnIds: string[], columns: TableColumn<TRowData, TDataContext>[], fileName: string, dataContext?: TDataContext): void;
72
+ static downloadAsExcel<TRowData, TDataContext = null>(sortedData: TRowData[], visibleColumnIds: string[], columns: TableColumn<TRowData, TDataContext>[], fileName: string, dataContext?: TDataContext): Promise<void>;
71
73
  static getColumnIdsWithData<TRowData, TDataContext = null>(params: {
72
74
  dataContext: TDataContext;
73
75
  hasCellData: HasCellDataFn<TRowData, TDataContext>;
@@ -85,6 +87,9 @@ export declare class TableUtil {
85
87
  static handleMoveColumn<TRowData, TDataContext = null>(columnDimensions: TableColumnDimension[], tableColumnVisualSettings: TableColumnVisualSettings[], // Will be mutated
86
88
  tableColumns: TableColumn<TRowData, TDataContext>[], elementTableColumn: TableColumn<TRowData, TDataContext>, direction: -1 | 1): boolean;
87
89
  static updateColumnSizesInVisualSettings<TRowData, TDataContext = null>(container: HTMLDivElement, scrollbarSize: number, sortedData: TRowData[], tableColumns: TableColumn<TRowData, TDataContext>[], allColumnVisualSettings: TableColumnVisualSettings[]): Map<string, TableColumnVisualSettings>;
90
+ private static getExportColumns;
91
+ private static getExportData;
88
92
  private static handleMoveColumnAcrossDimensions;
89
93
  private static swapTwoTableColumns;
94
+ private static toExportValue;
90
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gen-epix/ui-client-common",
3
- "version": "4.7.0",
3
+ "version": "4.8.0",
4
4
  "homepage": "https://github.com/RIVM-bioinformatics/gen-epix",
5
5
  "repository": {
6
6
  "type": "git",
@@ -254,10 +254,6 @@
254
254
  "types": "./dist/hoc/withPermissions/index.d.ts",
255
255
  "import": "./dist/hoc/withPermissions/index.js"
256
256
  },
257
- "./hooks/useColumnsMenu": {
258
- "types": "./dist/hooks/useColumnsMenu/index.d.ts",
259
- "import": "./dist/hooks/useColumnsMenu/index.js"
260
- },
261
257
  "./hooks/useConfig": {
262
258
  "types": "./dist/hooks/useConfig/index.d.ts",
263
259
  "import": "./dist/hooks/useConfig/index.js"
@@ -482,10 +478,11 @@
482
478
  "last 2 Chrome versions"
483
479
  ],
484
480
  "dependencies": {
485
- "@hookform/resolvers": "7.0.6",
486
- "@tanstack/react-query": "5.107.1",
481
+ "@hookform/resolvers": "7.0.7",
482
+ "@tanstack/react-query": "5.107.2",
487
483
  "classnames": "2.5.1",
488
484
  "clsx": "2.1.1",
485
+ "csv": "6.6.4",
489
486
  "date-fns": "4.4.0",
490
487
  "immer": "11.2.10",
491
488
  "lodash": "4.18.1",
@@ -493,6 +490,7 @@
493
490
  "reflect-metadata": "0.2.2",
494
491
  "use-debounce": "10.1.1",
495
492
  "uuid": "14.0.3",
493
+ "write-excel-file": "4.1.1",
496
494
  "zustand": "5.1.0"
497
495
  },
498
496
  "devDependencies": {
@@ -502,12 +500,12 @@
502
500
  "@emotion/cache": "11.14.0",
503
501
  "@emotion/react": "11.14.0",
504
502
  "@emotion/styled": "11.14.1",
505
- "@gen-epix/api-commondb": "^4.6.0",
503
+ "@gen-epix/api-commondb": "^4.7.0",
506
504
  "@gen-epix/eslint-config": "0.10.0",
507
505
  "@gen-epix/translation-util": "0.7.0",
508
- "@gen-epix/ui-core": "^3.11.0",
509
- "@gen-epix/ui-core-components": "^4.7.0",
510
- "@gen-epix/ui-core-form": "^4.6.0",
506
+ "@gen-epix/ui-core": "^3.12.0",
507
+ "@gen-epix/ui-core-components": "^4.8.0",
508
+ "@gen-epix/ui-core-form": "^4.7.0",
511
509
  "@microsoft/api-extractor": "7.60.1",
512
510
  "@mui/icons-material": "9.5.0",
513
511
  "@mui/material": "9.5.0",
@@ -522,19 +520,19 @@
522
520
  "@vitest/browser-playwright": "5.1.0",
523
521
  "@vitest/coverage-v8": "5.1.0",
524
522
  "axios": "1.21.1",
525
- "eslint": "10.14.0",
526
- "i18next": "27.1.1",
527
- "jsdom": "31.0.0",
528
- "playwright": "1.65.0",
523
+ "eslint": "10.15.0",
524
+ "i18next": "27.1.3",
525
+ "jsdom": "31.0.1",
526
+ "playwright": "1.65.1",
529
527
  "react": "19.3.1",
530
528
  "react-dom": "19.3.1",
531
529
  "react-error-boundary": "6.1.6",
532
530
  "react-hook-form": "7.92.0",
533
- "react-i18next": "18.0.1",
531
+ "react-i18next": "18.0.2",
534
532
  "react-oidc-context": "3.3.1",
535
533
  "react-router": "8.5.1",
536
534
  "react-router-dom": "7.18.5",
537
- "react-virtuoso": "4.18.21",
535
+ "react-virtuoso": "4.18.23",
538
536
  "tsyringe": "4.10.0",
539
537
  "typescript": "6.0.3",
540
538
  "vite": "8.3.8",
@@ -553,10 +551,10 @@
553
551
  "@emotion/cache": "*",
554
552
  "@emotion/react": "*",
555
553
  "@emotion/styled": "*",
556
- "@gen-epix/api-commondb": "^4.6.0",
557
- "@gen-epix/ui-core": "^3.11.0",
558
- "@gen-epix/ui-core-components": "^4.7.0",
559
- "@gen-epix/ui-core-form": "^4.6.0",
554
+ "@gen-epix/api-commondb": "^4.7.0",
555
+ "@gen-epix/ui-core": "^3.12.0",
556
+ "@gen-epix/ui-core-components": "^4.8.0",
557
+ "@gen-epix/ui-core-form": "^4.7.0",
560
558
  "@mui/icons-material": "*",
561
559
  "@mui/material": "*",
562
560
  "@mui/styled-engine": "*",
@@ -1,159 +0,0 @@
1
- import { l as e, t } from "./tableStore.js";
2
- import { t as n } from "./react.js";
3
- import { t as r } from "./TableUtil.js";
4
- import i, { useCallback as a, useMemo as o } from "react";
5
- import { jsx as s } from "react/jsx-runtime";
6
- import { useTranslation as c } from "react-i18next";
7
- import l from "@mui/icons-material/IndeterminateCheckBox";
8
- import u from "@mui/icons-material/CheckBoxOutlined";
9
- import d from "@mui/icons-material/CheckBoxOutlineBlankOutlined";
10
- import f from "@mui/icons-material/ToggleOffOutlined";
11
- import p from "@mui/icons-material/ToggleOnOutlined";
12
- import m from "@mui/icons-material/EditOutlined";
13
- // ../../node_modules/.pnpm/zustand@5.1.0_@types+react@19.3.0_immer@11.2.10_react@19.3.1_use-sync-external-store@1.7.0_react@19.3.1_/node_modules/zustand/esm/vanilla/shallow.mjs
14
- var h = (e) => Symbol.iterator in e, g = (e) => "entries" in e, _ = (e, t) => {
15
- let n = e instanceof Map ? e : new Map(e.entries()), r = t instanceof Map ? t : new Map(t.entries());
16
- if (n.size !== r.size) return !1;
17
- for (let [e, t] of n) if (!r.has(e) || !Object.is(t, r.get(e))) return !1;
18
- return !0;
19
- }, v = (e, t) => {
20
- let n = e[Symbol.iterator](), r = t[Symbol.iterator](), i = n.next(), a = r.next();
21
- for (; !i.done && !a.done;) {
22
- if (!Object.is(i.value, a.value)) return !1;
23
- i = n.next(), a = r.next();
24
- }
25
- return !!i.done && !!a.done;
26
- };
27
- function y(e, t) {
28
- return Object.is(e, t) ? !0 : typeof e != "object" || !e || typeof t != "object" || !t || Object.getPrototypeOf(e) !== Object.getPrototypeOf(t) ? !1 : h(e) && h(t) ? g(e) && g(t) ? _(e, t) : v(e, t) : _({ entries: () => Object.entries(e) }, { entries: () => Object.entries(t) });
29
- }
30
- // ../../node_modules/.pnpm/zustand@5.1.0_@types+react@19.3.0_immer@11.2.10_react@19.3.1_use-sync-external-store@1.7.0_react@19.3.1_/node_modules/zustand/esm/react/shallow.mjs
31
- function b(e) {
32
- let t = i.useRef(void 0);
33
- return (n) => {
34
- let r = e(n);
35
- return y(t.current, r) ? t.current : t.current = r;
36
- };
37
- }
38
- // src/hooks/useColumnsMenu/useColumnsMenu.tsx
39
- var x = ({ hasCellData: i }) => {
40
- let h = t(), g = n(h, b((e) => e.emitEvent)), _ = n(h, b((e) => e.columns)), v = n(h, b((e) => e.dataContext)), y = n(h, b((e) => e.getCurrentColumnVisualSettings().filter((e) => e.isVisible).map((e) => e.id))), x = n(h, b((e) => e.columnDimensions)), S = n(h, b((e) => e.isCondensed)), C = n(h, b((e) => e.sortedData)), { t: w } = c(), T = o(() => _.some((e) => e.cellColorGetter), [_]), E = a(() => {
41
- g("openColumnsEditorDialog", i);
42
- }, [g, i]), D = a((t) => {
43
- let n = e(y, (e) => e.includes(t) ? e.filter((e) => e !== t) : (e.push(t), e));
44
- g("columnVisibilityChange", n);
45
- }, [g, y]), O = a((t) => {
46
- let n = t.every((e) => y.includes(e)), r = e(y, (e) => n ? e.filter((e) => !t.includes(e)) : (t.forEach((t) => {
47
- e.includes(t) || e.push(t);
48
- }), e));
49
- g("columnVisibilityChange", r);
50
- }, [g, y]), k = a(() => {
51
- g("columnVisibilityChange", r.getColumnIdsWithData({
52
- dataContext: v,
53
- hasCellData: i,
54
- sortedData: C,
55
- tableColumns: _,
56
- visibleColumnIds: y
57
- }));
58
- }, [
59
- g,
60
- i,
61
- C,
62
- _,
63
- y,
64
- v
65
- ]), A = a(() => {
66
- g("condensedChange", !S);
67
- }, [g, S]);
68
- return o(() => {
69
- let e = [
70
- T ? {
71
- autoCloseDisabled: !0,
72
- callback: () => A(),
73
- checked: S ? "true" : "false",
74
- divider: !0,
75
- label: w`Condensed`,
76
- rightIcon: s(S ? p : f, {})
77
- } : void 0,
78
- {
79
- callback: () => E(),
80
- divider: !0,
81
- label: w`Column editor`,
82
- leftIcon: /* @__PURE__ */ s(m, { sx: { fontSize: "1.5rem" } })
83
- },
84
- {
85
- autoCloseDisabled: !0,
86
- callback: () => g("reset"),
87
- label: w`Reset`
88
- },
89
- {
90
- autoCloseDisabled: !0,
91
- callback: () => {
92
- g("columnVisibilityChange", [..._.map((e) => e.id)]);
93
- },
94
- label: w`Show all`
95
- },
96
- {
97
- autoCloseDisabled: !0,
98
- callback: () => {
99
- g("columnVisibilityChange", [..._.filter((e) => e.frozen).map((e) => e.id)]);
100
- },
101
- label: w`Hide all`
102
- },
103
- {
104
- autoCloseDisabled: !0,
105
- callback: () => k(),
106
- divider: !0,
107
- label: w`Hide columns without data`
108
- }
109
- ].filter((e) => e);
110
- return x ? x.forEach((t) => {
111
- let n = t.columnIds.every((e) => y.includes(e)), r = t.columnIds.some((e) => y.includes(e));
112
- e.push({
113
- autoCloseDisabled: !0,
114
- callback: () => O(t.columnIds),
115
- checked: n ? "true" : r ? "mixed" : "false",
116
- items: t.columnIds.map((e) => {
117
- let t = y.includes(e);
118
- return {
119
- autoCloseDisabled: !0,
120
- callback: () => D(e),
121
- checked: t ? "true" : "false",
122
- label: _.find((t) => t.id === e)?.headerName ?? "",
123
- rightIcon: s(t ? u : d, {})
124
- };
125
- }),
126
- label: t.label,
127
- rightIcon: s(n ? u : r ? l : d, {})
128
- });
129
- }) : _.filter((e) => !e.frozen).forEach((t) => {
130
- let n = y.includes(t.id);
131
- e.push({
132
- autoCloseDisabled: !0,
133
- callback: () => D(t.id),
134
- checked: n ? "true" : "false",
135
- label: t.headerName,
136
- rightIcon: s(n ? u : d, {})
137
- });
138
- }), {
139
- items: e,
140
- label: w`Columns`
141
- };
142
- }, [
143
- S,
144
- T,
145
- w,
146
- x,
147
- A,
148
- E,
149
- g,
150
- _,
151
- k,
152
- y,
153
- O,
154
- D
155
- ]);
156
- };
157
- export { b as n, x as t };
158
-
159
- //# sourceMappingURL=useColumnsMenu.js.map