@gen-epix/ui-client-common 4.6.1 → 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.
- package/README.md +2 -2
- package/dist/_chunks/Breadcrumbs.js +4 -4
- package/dist/_chunks/CrudPage.js +233 -232
- package/dist/_chunks/CrudPage.js.map +1 -1
- package/dist/_chunks/GeoFilter.js +1 -0
- package/dist/_chunks/GeoFilter.js.map +1 -1
- package/dist/_chunks/Notifications.js +16 -16
- package/dist/_chunks/QueryClientProvider.js +1 -1
- package/dist/_chunks/QueryClientProvider.js.map +1 -1
- package/dist/_chunks/QueryClientService.js +73 -72
- package/dist/_chunks/QueryClientService.js.map +1 -1
- package/dist/_chunks/Table.js +1314 -887
- package/dist/_chunks/Table.js.map +1 -1
- package/dist/_chunks/TableUtil.js +5126 -178
- package/dist/_chunks/TableUtil.js.map +1 -1
- package/dist/_chunks/TextFilter.js +10 -6
- package/dist/_chunks/TextFilter.js.map +1 -1
- package/dist/_chunks/UserInvitationsAdminPage.js +131 -131
- package/dist/_chunks/UserInvitationsAdminPage.js.map +1 -1
- package/dist/_chunks/_baseFlatten.js +12 -12
- package/dist/_chunks/_baseFlatten.js.map +1 -1
- package/dist/_chunks/_baseIteratee.js +78 -78
- package/dist/_chunks/_baseIteratee.js.map +1 -1
- package/dist/_chunks/decorate.js +1 -1
- package/dist/_chunks/decorateParam.js +1 -1
- package/dist/_chunks/middleware.js +66 -70
- package/dist/_chunks/middleware.js.map +1 -1
- package/dist/_chunks/omit.js +98 -98
- package/dist/_chunks/omit.js.map +1 -1
- package/dist/_chunks/query.js +123 -107
- package/dist/_chunks/query.js.map +1 -1
- package/dist/_chunks/react.js +1 -1
- package/dist/_chunks/react.js.map +1 -1
- package/dist/_chunks/tableStore.js +298 -275
- package/dist/_chunks/tableStore.js.map +1 -1
- package/dist/_chunks/useMutation.js +2 -2
- package/dist/_chunks/useMutation.js.map +1 -1
- package/dist/_chunks/useQueryMemo.js +15 -16
- package/dist/_chunks/useQueryMemo.js.map +1 -1
- package/dist/_chunks/vanilla.js +1 -1
- package/dist/_chunks/vanilla.js.map +1 -1
- package/dist/_chunks/yup.js +2 -2
- package/dist/_chunks/yup.js.map +1 -1
- package/dist/classes/abstracts/FilterAbstract/FilterAbstract.d.ts +11 -0
- package/dist/classes/abstracts/FilterAbstract/index.js +48 -3
- package/dist/classes/abstracts/FilterAbstract/index.js.map +1 -1
- package/dist/classes/filters/BooleanFilter.d.ts +1 -0
- package/dist/classes/filters/DateFilter.d.ts +1 -1
- package/dist/classes/filters/GeoFilter.d.ts +1 -0
- package/dist/classes/filters/MultiSelectFilter.d.ts +1 -0
- package/dist/classes/filters/NumberRangeFilter.d.ts +1 -0
- package/dist/classes/filters/TextFilter.d.ts +1 -0
- package/dist/classes/services/AuthenticationService/index.js +8 -8
- package/dist/classes/services/AuthenticationService/index.js.map +1 -1
- package/dist/classes/services/AuthorizationService/index.js +4 -4
- package/dist/classes/services/AuthorizationService/index.js.map +1 -1
- package/dist/classes/services/BreadcrumbService/index.js +4 -4
- package/dist/classes/services/BreadcrumbService/index.js.map +1 -1
- package/dist/classes/services/EmotionCacheService/index.js.map +1 -1
- package/dist/classes/services/InactivityService/index.js +30 -30
- package/dist/classes/services/InactivityService/index.js.map +1 -1
- package/dist/classes/services/LogService/index.js +15 -15
- package/dist/classes/services/LogService/index.js.map +1 -1
- package/dist/classes/services/PageEventBusService/index.js.map +1 -1
- package/dist/components/app/App/index.js +27 -24
- package/dist/components/app/App/index.js.map +1 -1
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js +18 -18
- package/dist/components/app/ApplicationBootstrapWithAuthentication/index.js.map +1 -1
- package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js +18 -18
- package/dist/components/app/ApplicationBootstrapWithoutAuthorization/index.js.map +1 -1
- package/dist/components/app/AuthenticationWrapper/index.js +15 -15
- package/dist/components/app/AuthorizationWrapper/index.js +16 -16
- package/dist/components/app/AuthorizationWrapper/index.js.map +1 -1
- package/dist/components/app/RouterRoot/index.js +33 -33
- package/dist/components/app/RouterRoot/index.js.map +1 -1
- package/dist/components/epi/EpiContactDetailsDialog/index.js +4 -4
- package/dist/components/epi/EpiContactDetailsDialog/index.js.map +1 -1
- package/dist/components/ui/ApplicationBar/index.js +234 -234
- package/dist/components/ui/ApplicationBar/index.js.map +1 -1
- package/dist/components/ui/GenericErrorMessage/index.js +13 -13
- package/dist/components/ui/LicensesDialog/index.js +6 -6
- package/dist/components/ui/OrganizationSwitcherDialog/index.js +11 -11
- package/dist/components/ui/OutagesDialog/index.js +4 -4
- package/dist/components/ui/OutagesDialog/index.js.map +1 -1
- package/dist/components/ui/PageContainer/index.js +5 -5
- package/dist/components/ui/PageContainer/index.js.map +1 -1
- package/dist/components/ui/ResponseHandler/index.js +4 -4
- package/dist/components/ui/SortableList/SortableList.d.ts +5 -3
- package/dist/components/ui/Table/Table.d.ts +5 -2
- package/dist/components/ui/Table/TableColumnsEditorDialog.d.ts +13 -2
- package/dist/components/ui/Table/TableDownloadSidebarItem.d.ts +10 -0
- package/dist/components/ui/Table/TableSidebarMenu.d.ts +2 -1
- package/dist/components/ui/Table/index.d.ts +2 -0
- package/dist/components/ui/Table/index.js +1 -1
- package/dist/components/ui/Table/useTableColumnsMenu.d.ts +6 -0
- package/dist/components/ui/UserFeedbackDialog/index.js +15 -15
- package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +12 -12
- package/dist/dataHooks/useIdentifierIssuerQuery/index.js +11 -11
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +5 -5
- package/dist/dataHooks/useInviteUserConstraintsQuery/index.js.map +1 -1
- package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +15 -15
- package/dist/dataHooks/useOrganizationsQuery/index.js +7 -7
- package/dist/dataHooks/useUsersQuery/index.js +10 -10
- package/dist/hooks/useCreateMutation/index.js +14 -14
- package/dist/hooks/useCreateMutation/index.js.map +1 -1
- package/dist/hooks/useDeleteMutation/index.js +17 -17
- package/dist/hooks/useDeleteMutation/index.js.map +1 -1
- package/dist/hooks/useEditMutation/index.js +22 -22
- package/dist/hooks/useEditMutation/index.js.map +1 -1
- package/dist/hooks/useInitializeTableStore/index.js +6 -6
- package/dist/hooks/useInitializeTableStore/index.js.map +1 -1
- package/dist/locale/en.json +27 -5
- package/dist/locale/nl.json +27 -5
- package/dist/models/table.models.d.ts +1 -0
- package/dist/models/table.models.js.map +1 -1
- package/dist/pages/AcceptInvitationPage/index.js +10 -10
- package/dist/pages/AdminPage/index.js +19 -19
- package/dist/pages/ChooseIdentityProviderPage/index.js +5 -5
- package/dist/pages/ErrorPage/index.js +4 -4
- package/dist/pages/IdentifierIssuersAdminPage/index.js +7 -7
- package/dist/pages/IdentifierIssuersAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +16 -16
- package/dist/pages/OrganizationContactsAdminPage/index.js +10 -10
- package/dist/pages/OrganizationContactsAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationSitesAdminPage/index.js +12 -12
- package/dist/pages/OrganizationSitesAdminPage/index.js.map +1 -1
- package/dist/pages/OrganizationsAdminPage/index.js +20 -20
- package/dist/pages/OrganizationsAdminPage/index.js.map +1 -1
- package/dist/pages/OutagesAdminPage/index.js +11 -11
- package/dist/pages/OutagesAdminPage/index.js.map +1 -1
- package/dist/pages/RouterErrorPage/index.js +4 -4
- package/dist/pages/UsersAdminPage/index.js +34 -34
- package/dist/pages/UsersAdminPage/index.js.map +1 -1
- package/dist/setup/setup.js +4 -4
- package/dist/setup/setup.js.map +1 -1
- package/dist/stores/oidcStore/oidcStore.d.ts +1 -1
- package/dist/stores/tableStore/tableStore.d.ts +3 -1
- package/dist/utils/StandardConfigUtil/index.js +2 -2
- package/dist/utils/StandardConfigUtil/index.js.map +1 -1
- package/dist/utils/TableUtil/TableUtil.d.ts +5 -0
- package/package.json +35 -37
- package/dist/_chunks/useColumnsMenu.js +0 -157
- package/dist/_chunks/useColumnsMenu.js.map +0 -1
- package/dist/hooks/useColumnsMenu/index.d.ts +0 -1
- package/dist/hooks/useColumnsMenu/index.js +0 -1
- package/dist/hooks/useColumnsMenu/useColumnsMenu.d.ts +0 -6
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "../../
|
|
3
|
-
import { t as n } from "../../_chunks/
|
|
4
|
-
import {
|
|
1
|
+
import { t as e } from "../../_chunks/useMutation.js";
|
|
2
|
+
import { NotificationService as t } from "../../classes/services/NotificationService/index.js";
|
|
3
|
+
import { t as n } from "../../_chunks/QueryClientService.js";
|
|
4
|
+
import { NotificationUtil as r } from "../../utils/NotificationUtil/index.js";
|
|
5
5
|
import { container as i } from "tsyringe";
|
|
6
6
|
import { useCallback as a, useMemo as o } from "react";
|
|
7
7
|
import { ObjectUtil as s } from "@gen-epix/ui-core/utils/ObjectUtil";
|
|
8
8
|
// src/hooks/useEditMutation/useEditMutation.ts
|
|
9
9
|
var c = (e) => !Array.isArray(e), l = ({ associationQueryKeys: l, getErrorNotificationMessage: u, getIntermediateItem: d, getProgressNotificationMessage: f, getSuccessNotificationMessage: p, onError: m, onSuccess: h, queryFn: g, resourceQueryKey: _ }) => {
|
|
10
|
-
let v = i.resolve(
|
|
10
|
+
let v = i.resolve(n).queryClient, y = a(async ({ previousItem: e, variables: t }) => {
|
|
11
11
|
if (!g) throw Error("Edit mutation queryFn is required");
|
|
12
12
|
return g(s.deepNullifyEmptyStrings(t), e);
|
|
13
|
-
}, [g]), b =
|
|
13
|
+
}, [g]), b = e({
|
|
14
14
|
mutationFn: y,
|
|
15
|
-
onError: async (
|
|
15
|
+
onError: async (e, a, o) => {
|
|
16
16
|
let s = o ?? {};
|
|
17
|
-
_ && Array.isArray(s.previousData) && v.setQueryData(_, s.previousData), await i.resolve(
|
|
18
|
-
let c = s.item ? u(s.item, a.variables,
|
|
19
|
-
s.notificationKey && i.resolve(
|
|
17
|
+
_ && Array.isArray(s.previousData) && v.setQueryData(_, s.previousData), await i.resolve(n).invalidateQueryKeys(l), m && await m(e, a.variables, s);
|
|
18
|
+
let c = s.item ? u(s.item, a.variables, e) : String(e);
|
|
19
|
+
s.notificationKey && i.resolve(t).fulfillNotification(s.notificationKey, r.wrapErrorNotificationMessage(c, e), "error");
|
|
20
20
|
},
|
|
21
|
-
onMutate: async ({ previousItem: e, variables:
|
|
21
|
+
onMutate: async ({ previousItem: e, variables: n }) => {
|
|
22
22
|
if (!e) throw Error("previousItem is not set");
|
|
23
|
-
let
|
|
23
|
+
let r = i.resolve(t).showNotification({
|
|
24
24
|
isLoading: !0,
|
|
25
|
-
message: f(e,
|
|
25
|
+
message: f(e, n),
|
|
26
26
|
severity: "info"
|
|
27
27
|
});
|
|
28
28
|
if (_) {
|
|
29
29
|
await v.cancelQueries({ queryKey: _ });
|
|
30
|
-
let
|
|
31
|
-
if (Array.isArray(
|
|
32
|
-
let i = d ? d(
|
|
33
|
-
...
|
|
30
|
+
let t = v.getQueryData(_);
|
|
31
|
+
if (Array.isArray(t) && !Array.isArray(n)) {
|
|
32
|
+
let i = d ? d(n, e) : {
|
|
33
|
+
...n,
|
|
34
34
|
id: e.id
|
|
35
35
|
};
|
|
36
36
|
return v.setQueryData(_, (t) => t.map((t) => t.id === e.id ? i : t)), {
|
|
37
37
|
item: e,
|
|
38
|
-
notificationKey:
|
|
39
|
-
previousData:
|
|
38
|
+
notificationKey: r,
|
|
39
|
+
previousData: t
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
44
|
item: e,
|
|
45
|
-
notificationKey:
|
|
45
|
+
notificationKey: r
|
|
46
46
|
};
|
|
47
47
|
},
|
|
48
|
-
onSuccess: async (e,
|
|
48
|
+
onSuccess: async (e, r, a) => {
|
|
49
49
|
if (_ && Array.isArray(a?.previousData) && c(e)) {
|
|
50
50
|
let t = a.item?.id;
|
|
51
51
|
v.setQueryData(_, (n) => Array.isArray(n) ? n.map((n) => n.id === t ? e : n) : n);
|
|
52
52
|
}
|
|
53
|
-
await i.resolve(
|
|
53
|
+
await i.resolve(n).invalidateQueryKeys(l), h && await h(e, r.variables, a), i.resolve(t).fulfillNotification(a.notificationKey, p(e, a), "success");
|
|
54
54
|
}
|
|
55
55
|
}), x = b.mutate, S = o(() => (e, t) => {
|
|
56
56
|
x({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["useMutation","isSingleGenericData","item","useEditMutation","queryClient","container","
|
|
1
|
+
{"version":3,"file":"index.js","names":["useMutation","QueryClientService","isSingleGenericData","item","useEditMutation","queryClient","container","mutationFn","useCallback","queryFn","ObjectUtil","variables","previousItem","editMutation","safeContext","context","resourceQueryKey","associationQueryKeys","onError","error","mutationVariables","errorMessage","getErrorNotificationMessage","NotificationService","NotificationUtil","notificationKey","getProgressNotificationMessage","previousData","intermediateItem","getIntermediateItem","oldItems","x","previousItemId","oldItem","onSuccess","getSuccessNotificationMessage","editMutate","mutate","useMemo","isMutating"],"sources":["../../../src/hooks/useEditMutation/useEditMutation.ts"],"sourcesContent":["import { container } from 'tsyringe';\nimport { useMutation } from '@tanstack/react-query';\nimport type { ReactElement } from 'react';\nimport {\n useCallback,\n useMemo,\n} from 'react';\nimport { ObjectUtil } from '@gen-epix/ui-core/utils/ObjectUtil';\n\nimport { NotificationService } from '../../classes/services/NotificationService';\nimport { QueryClientService } from '../../classes/services/QueryClientService';\nimport type { GenericData } from '../../models/data.models';\nimport { NotificationUtil } from '../../utils/NotificationUtil';\n\nexport type MutationContextEdit<TData> = { item?: TData; notificationKey?: string; previousData?: TData[] };\n\nexport type UseEditMutationProps<TData, TVariables = TData> = {\n readonly associationQueryKeys?: string[][];\n readonly getErrorNotificationMessage: (data: TData, variables: TVariables, error: unknown) => ReactElement | string;\n // Optional function to get an intermediate item to be set in the query cache before the mutation is completed.\n // This is useful for optimistic updates where you want to show a temporary state before the mutation is confirmed.\n // The function receives the variables and the previous item, and should return the intermediate item.\n // Only needed if the variables are different from the previous item.\n readonly getIntermediateItem?: (variables: TVariables, previousItem: TData) => TData;\n readonly getProgressNotificationMessage: (data: TData, variables: TVariables) => ReactElement | string;\n readonly getSuccessNotificationMessage: (data: TData, context: MutationContextEdit<TData>) => ReactElement | string;\n readonly onError?: (error: unknown, variables: TVariables, context: MutationContextEdit<TData>) => Promise<void> | void;\n readonly onSuccess?: (item: TData, variables: TVariables, context: MutationContextEdit<TData>) => Promise<void> | void;\n readonly queryFn?: (variables: TVariables, previousData: TData) => Promise<TData>;\n readonly resourceQueryKey?: string[];\n};\n\ntype EditMutationVariables<TData, TVariables> = {\n readonly previousItem: TData;\n readonly variables: TVariables;\n};\n\nconst isSingleGenericData = (item: GenericData | GenericData[]): item is GenericData => !Array.isArray(item);\n\nexport const useEditMutation = <TData extends GenericData | GenericData[], TVariables = TData>({\n associationQueryKeys,\n getErrorNotificationMessage,\n getIntermediateItem,\n getProgressNotificationMessage,\n getSuccessNotificationMessage,\n onError,\n onSuccess,\n queryFn,\n resourceQueryKey,\n}: UseEditMutationProps<TData, TVariables>) => {\n const queryClient = container.resolve(QueryClientService).queryClient;\n\n const mutationFn = useCallback(async ({ previousItem, variables }: EditMutationVariables<TData, TVariables>) => {\n if (!queryFn) {\n throw new Error('Edit mutation queryFn is required');\n }\n return queryFn(ObjectUtil.deepNullifyEmptyStrings(variables), previousItem);\n }, [queryFn]);\n\n const editMutation = useMutation<TData, Error, EditMutationVariables<TData, TVariables>, MutationContextEdit<TData>>({\n mutationFn,\n onError: async (error, mutationVariables, context) => {\n const safeContext: MutationContextEdit<TData> = context ?? {};\n if (resourceQueryKey && Array.isArray(safeContext.previousData)) {\n queryClient.setQueryData<TData[]>(resourceQueryKey, safeContext.previousData);\n }\n await container.resolve(QueryClientService).invalidateQueryKeys(associationQueryKeys);\n if (onError) {\n await onError(error, mutationVariables.variables, safeContext);\n }\n const errorMessage = safeContext.item\n ? getErrorNotificationMessage(safeContext.item, mutationVariables.variables, error)\n : String(error);\n if (safeContext.notificationKey) {\n container.resolve(NotificationService).fulfillNotification(safeContext.notificationKey, NotificationUtil.wrapErrorNotificationMessage(errorMessage, error), 'error');\n }\n },\n onMutate: async ({ previousItem, variables }) => {\n if (!previousItem) {\n throw new Error('previousItem is not set');\n }\n const notificationKey = container.resolve(NotificationService).showNotification({\n isLoading: true,\n message: getProgressNotificationMessage(previousItem, variables),\n severity: 'info',\n });\n if (resourceQueryKey) {\n await queryClient.cancelQueries({ queryKey: resourceQueryKey });\n const previousData = queryClient.getQueryData<TData[]>(resourceQueryKey);\n\n if (Array.isArray(previousData) && !Array.isArray(variables)) {\n const intermediateItem = getIntermediateItem ? getIntermediateItem(variables, previousItem) : {\n ...variables,\n id: (previousItem as GenericData).id,\n } as GenericData;\n queryClient.setQueryData<GenericData[]>(resourceQueryKey, (oldItems) => {\n return oldItems.map(x => x.id === (previousItem as GenericData).id ? intermediateItem : x) as GenericData[];\n });\n return { item: previousItem, notificationKey, previousData };\n }\n }\n return { item: previousItem, notificationKey };\n },\n onSuccess: async (item, mutationVariables, context) => {\n if (resourceQueryKey && Array.isArray(context?.previousData) && isSingleGenericData(item)) {\n const previousItemId = (context.item as GenericData)?.id;\n queryClient.setQueryData<GenericData[]>(resourceQueryKey, (oldItems) => {\n if (!Array.isArray(oldItems)) {\n return oldItems;\n }\n return oldItems.map(oldItem => oldItem.id === previousItemId ? item : oldItem);\n });\n }\n await container.resolve(QueryClientService).invalidateQueryKeys(associationQueryKeys);\n if (onSuccess) {\n await onSuccess(item, mutationVariables.variables, context);\n }\n container.resolve(NotificationService).fulfillNotification(context.notificationKey, getSuccessNotificationMessage(item, context), 'success');\n },\n });\n\n // Note: must be done in useMemo to avoid render loops (useMutation returns a new object every time)\n const editMutate = editMutation.mutate;\n const mutate = useMemo(() => (variables: TVariables, previousItem: TData) => {\n editMutate({ previousItem, variables });\n }, [editMutate]);\n const isMutating = useMemo(() => editMutation.isPending, [editMutation.isPending]);\n return useMemo(() => ({ isMutating, mutate }), [isMutating, mutate]);\n};\n"],"mappings":";;;;;;;;AAqCA,IAAME,KAAuB,MAA2D,CAAC,MAAM,QAAQC,CAAI,GAE9FC,KAAkF,EAC7F,yBACA,gCACA,wBACA,mCACA,kCACA,YACA,cACA,YACA,0BAC6C;CAC7C,IAAMC,IAAcC,EAAU,QAAQL,CAAkB,CAAC,CAAC,aAEpDM,IAAaC,EAAY,OAAO,EAAE,iBAAc,mBAA0D;EAC9G,IAAI,CAACC,GACH,MAAU,MAAM,mCAAmC;EAErD,OAAOA,EAAQC,EAAW,wBAAwBC,CAAS,GAAGC,CAAY;CAC5E,GAAG,CAACH,CAAO,CAAC,GAENI,IAAeb,EAAgG;EACnH;EACA,SAAS,OAAO,GAAO,GAAmB,MAAY;GACpD,IAAMc,IAA0CC,KAAW,CAAC;GAK5D,AAJIC,KAAoB,MAAM,QAAQF,EAAY,YAAY,KAC5DT,EAAY,aAAsBW,GAAkBF,EAAY,YAAY,GAE9E,MAAMR,EAAU,QAAQL,CAAkB,CAAC,CAAC,oBAAoBgB,CAAoB,GAChFC,KACF,MAAMA,EAAQC,GAAOC,EAAkB,WAAWN,CAAW;GAE/D,IAAMO,IAAeP,EAAY,OAC7BQ,EAA4BR,EAAY,MAAMM,EAAkB,WAAWD,CAAK,IAChF,OAAOA,CAAK;GAChB,AAAIL,EAAY,mBACdR,EAAU,QAAQiB,CAAmB,CAAC,CAAC,oBAAoBT,EAAY,iBAAiBU,EAAiB,6BAA6BH,GAAcF,CAAK,GAAG,OAAO;EAEvK;EACA,UAAU,OAAO,EAAE,iBAAc,mBAAgB;GAC/C,IAAI,CAACP,GACH,MAAU,MAAM,yBAAyB;GAE3C,IAAMa,IAAkBnB,EAAU,QAAQiB,CAAmB,CAAC,CAAC,iBAAiB;IAC9E,WAAW;IACX,SAASG,EAA+Bd,GAAcD,CAAS;IAC/D,UAAU;GACZ,CAAC;GACD,IAAIK,GAAkB;IACpB,MAAMX,EAAY,cAAc,EAAE,UAAUW,EAAiB,CAAC;IAC9D,IAAMW,IAAetB,EAAY,aAAsBW,CAAgB;IAEvE,IAAI,MAAM,QAAQW,CAAY,KAAK,CAAC,MAAM,QAAQhB,CAAS,GAAG;KAC5D,IAAMiB,IAAmBC,IAAsBA,EAAoBlB,GAAWC,CAAY,IAAI;MAC5F,GAAGD;MACH,IAAKC,EAA6B;KACpC;KAIA,OAHAP,EAAY,aAA4BW,IAAmB,MAClDc,EAAS,KAAI,MAAKC,EAAE,OAAQnB,EAA6B,KAAKgB,IAAmBG,CAAC,CAC1F,GACM;MAAE,MAAMnB;MAAc;MAAiB;KAAa;IAC7D;GACF;GACA,OAAO;IAAE,MAAMA;IAAc;GAAgB;EAC/C;EACA,WAAW,OAAO,GAAM,GAAmB,MAAY;GACrD,IAAII,KAAoB,MAAM,QAAQD,GAAS,YAAY,KAAKb,EAAoBC,CAAI,GAAG;IACzF,IAAM6B,IAAkBjB,EAAQ,MAAsB;IACtD,EAAY,aAA4BC,IAAmB,MACpD,MAAM,QAAQc,CAAQ,IAGpBA,EAAS,KAAI,MAAWG,EAAQ,OAAOD,IAAiB7B,IAAO8B,CAAO,IAFpEH,CAGV;GACH;GAKA,AAJA,MAAMxB,EAAU,QAAQL,CAAkB,CAAC,CAAC,oBAAoBgB,CAAoB,GAChFiB,KACF,MAAMA,EAAU/B,GAAMiB,EAAkB,WAAWL,CAAO,GAE5DT,EAAU,QAAQiB,CAAmB,CAAC,CAAC,oBAAoBR,EAAQ,iBAAiBoB,EAA8BhC,GAAMY,CAAO,GAAG,SAAS;EAC7I;CACF,CAAC,GAGKqB,IAAavB,EAAa,QAC1BwB,IAASC,SAAe,GAAuB,MAAwB;EAC3E,EAAW;GAAE;GAAc;EAAU,CAAC;CACxC,GAAG,CAACF,CAAU,CAAC,GACTG,IAAaD,QAAczB,EAAa,WAAW,CAACA,EAAa,SAAS,CAAC;CACjF,OAAOyB,SAAe;EAAE;EAAY;CAAO,IAAI,CAACC,GAAYF,CAAM,CAAC;AACrE"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as e } from "../../_chunks/
|
|
1
|
+
import { t as e } from "../../_chunks/react.js";
|
|
2
2
|
import { DEFAULT_FILTER_GROUP as t } from "../../classes/abstracts/FilterAbstract/index.js";
|
|
3
|
-
import { t as n } from "../../_chunks/
|
|
3
|
+
import { t as n } from "../../_chunks/TableUtil.js";
|
|
4
4
|
import { useEffect as r } from "react";
|
|
5
5
|
// src/hooks/useInitializeTableStore/useInitializeTableStore.ts
|
|
6
6
|
var i = ({ columns: i, context: a, createFiltersFromColumns: o, rows: s, store: c }) => {
|
|
7
|
-
let l =
|
|
7
|
+
let l = e(c, (e) => e.setColumns), u = e(c, (e) => e.setBaseData), d = e(c, (e) => e.setFilters), f = e(c, (e) => e.initialize);
|
|
8
8
|
r(() => {
|
|
9
9
|
if (!i || !s) return;
|
|
10
|
-
let
|
|
11
|
-
return l(i), u(s), o && d(
|
|
12
|
-
|
|
10
|
+
let e = new AbortController();
|
|
11
|
+
return l(i), u(s), o && d(n.createFiltersFromColumns(i, s, a), [], [t]), f(e.signal), () => {
|
|
12
|
+
e.abort();
|
|
13
13
|
};
|
|
14
14
|
}, [
|
|
15
15
|
i,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["useStore","TableUtil","useInitializeTableStore","setColumns","store","state","setBaseData","setFilters","initialize","columns","rows","abortController","createFiltersFromColumns","context","DEFAULT_FILTER_GROUP"],"sources":["../../../src/hooks/useInitializeTableStore/useInitializeTableStore.ts"],"sourcesContent":["import { useStore } from 'zustand';\nimport type { StoreApi } from 'zustand';\nimport { useEffect } from 'react';\n\nimport { DEFAULT_FILTER_GROUP } from '../../classes/abstracts/FilterAbstract';\nimport type { TableColumn } from '../../models/table.models';\nimport type { TableStore } from '../../stores/tableStore';\nimport { TableUtil } from '../../utils/TableUtil';\n\nexport type UseInitializeTableStoreKWArgs<TData, TDataContext = null> = {\n readonly columns: TableColumn<TData, TDataContext>[];\n readonly context?: TDataContext;\n readonly createFiltersFromColumns?: boolean;\n readonly rows: TData[];\n readonly store: StoreApi<TableStore<TData, TDataContext>>;\n};\n\n\nexport const useInitializeTableStore = <TData, TDataContext = null>({ columns, context, createFiltersFromColumns, rows, store }: UseInitializeTableStoreKWArgs<TData, TDataContext>) => {\n const setColumns = useStore(store, (state) => state.setColumns);\n const setBaseData = useStore(store, (state) => state.setBaseData);\n const setFilters = useStore(store, (state) => state.setFilters);\n const initialize = useStore(store, (state) => state.initialize);\n\n useEffect(() => {\n if (!columns || !rows) {\n return;\n }\n const abortController = new AbortController();\n setColumns(columns);\n setBaseData(rows);\n if (createFiltersFromColumns) {\n setFilters(TableUtil.createFiltersFromColumns(columns, rows, context), [], [DEFAULT_FILTER_GROUP]);\n }\n\n void initialize(abortController.signal);\n return () => {\n abortController.abort();\n };\n }, [columns, initialize, setColumns, setFilters, setBaseData, createFiltersFromColumns, rows, context]);\n};\n"],"mappings":";;;;;AAkBA,IAAaE,KAAuD,EAAE,YAAS,YAAS,6BAA0B,SAAM,eAAgE;CACtL,IAAMC,IAAaH,EAASI,IAAQ,MAAUC,EAAM,UAAU,GACxDC,IAAcN,EAASI,IAAQ,MAAUC,EAAM,WAAW,GAC1DE,IAAaP,EAASI,IAAQ,MAAUC,EAAM,UAAU,GACxDG,IAAaR,EAASI,IAAQ,MAAUC,EAAM,UAAU;CAE9D,QAAgB;EACd,IAAI,CAACI,KAAW,CAACC,GACf;EAEF,IAAMC,IAAkB,IAAI,gBAAgB;EAQ5C,OAPAR,EAAWM,CAAO,GAClBH,EAAYI,CAAI,GACZE,KACFL,EAAWN,EAAU,yBAAyBQ,GAASC,GAAMG,CAAO,GAAG,CAAC,GAAG,CAACC,CAAoB,CAAC,GAGnGN,EAAgBG,EAAgB,MAAM,SACzB;GACX,EAAgB,MAAM;EACxB;CACF,GAAG;EAACF;EAASD;EAAYL;EAAYI;EAAYD;EAAaM;EAA0BF;EAAMG;CAAO,CAAC;AACxG"}
|
package/dist/locale/en.json
CHANGED
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"{{itemName}} is being saved...": "{{itemName}} is being saved...",
|
|
22
22
|
"{{items}} ({{count}} of {{totalCount}})": "{{items}} ({{count}} of {{totalCount}})",
|
|
23
23
|
"{{items}} ({{count}})": "{{items}} ({{count}})",
|
|
24
|
+
"{{label}} dropped at position {{position}} of {{count}}.": "{{label}} dropped at position {{position}} of {{count}}.",
|
|
25
|
+
"{{label}} moved to position {{position}} of {{count}}.": "{{label}} moved to position {{position}} of {{count}}.",
|
|
26
|
+
"{{label}} returned to position {{position}} of {{count}}.": "{{label}} returned to position {{position}} of {{count}}.",
|
|
24
27
|
"{{message}} - Bad request. The input data was not correct.": "{{message}} - Bad request. The input data was not correct.",
|
|
25
28
|
"{{message}} - Conflict. The request could not be completed due to a conflict with the current state of the resource.": "{{message}} - Conflict. The request could not be completed due to a conflict with the current state of the resource.",
|
|
26
29
|
"{{message}} - Internal Server Error. Please try again later.": "{{message}} - Internal Server Error. Please try again later.",
|
|
@@ -43,6 +46,7 @@
|
|
|
43
46
|
"Active to": "Active to",
|
|
44
47
|
"ago": "ago",
|
|
45
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",
|
|
46
50
|
"Anonymize": "Anonymize",
|
|
47
51
|
"Anonymize user": "Anonymize user",
|
|
48
52
|
"Anonymizing user: {{userName}}": "Anonymizing user: {{userName}}",
|
|
@@ -58,7 +62,6 @@
|
|
|
58
62
|
"Change": "Change",
|
|
59
63
|
"Change column order and visibility": "Change column order and visibility",
|
|
60
64
|
"Change language": "Change language",
|
|
61
|
-
"Change order / visibility": "Change order / visibility",
|
|
62
65
|
"Change organization": "Change organization",
|
|
63
66
|
"Changing language": "Changing language",
|
|
64
67
|
"Changing language will reload the application. Do you want to continue?": "Changing language will reload the application. Do you want to continue?",
|
|
@@ -73,10 +76,13 @@
|
|
|
73
76
|
"Click the logout button to logout": "Click the logout button to logout",
|
|
74
77
|
"Clone": "Clone",
|
|
75
78
|
"Close": "Close",
|
|
79
|
+
"Close download": "Close download",
|
|
76
80
|
"Close filters": "Close filters",
|
|
77
81
|
"Close notifications drawer": "Close notifications drawer",
|
|
78
82
|
"Code": "Code",
|
|
79
83
|
"Code information": "Code information",
|
|
84
|
+
"Column": "Column",
|
|
85
|
+
"Column editor": "Column editor",
|
|
80
86
|
"Columns": "Columns",
|
|
81
87
|
"Complete registration": "Complete registration",
|
|
82
88
|
"Condensed": "Condensed",
|
|
@@ -102,16 +108,17 @@
|
|
|
102
108
|
"Delete item: {{itemName}}": "Delete item: {{itemName}}",
|
|
103
109
|
"Description": "Description",
|
|
104
110
|
"Details for our technicians": "Details for our technicians",
|
|
105
|
-
"
|
|
106
|
-
"
|
|
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",
|
|
107
116
|
"Drag handle for {{label}}": "Drag handle for {{label}}",
|
|
108
117
|
"E-Mail": "E-Mail",
|
|
109
118
|
"Edit": "Edit",
|
|
110
119
|
"Email": "Email",
|
|
111
120
|
"Email address: unknown": "Email address: unknown",
|
|
112
121
|
"Email invitation link": "Email invitation link",
|
|
113
|
-
"Enable all": "Enable all",
|
|
114
|
-
"Enable all with data": "Enable all with data",
|
|
115
122
|
"Error": "Error",
|
|
116
123
|
"Error anonymizing user: {{userName}}": "Error anonymizing user: {{userName}}",
|
|
117
124
|
"Error loading organization admins": "Error loading organization admins",
|
|
@@ -128,6 +135,7 @@
|
|
|
128
135
|
"Go back to homepage": "Go back to homepage",
|
|
129
136
|
"Helpers": "Helpers",
|
|
130
137
|
"Hide all": "Hide all",
|
|
138
|
+
"Hide all without data": "Hide all without data",
|
|
131
139
|
"Hide columns without data": "Hide columns without data",
|
|
132
140
|
"Home": "Home",
|
|
133
141
|
"Id": "Id",
|
|
@@ -136,6 +144,7 @@
|
|
|
136
144
|
"Identifier issuers": "Identifier issuers",
|
|
137
145
|
"Identifier Issuers": "Identifier Issuers",
|
|
138
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",
|
|
139
148
|
"Invitation": "Invitation",
|
|
140
149
|
"Invitation details for {{email}}": "Invitation details for {{email}}",
|
|
141
150
|
"Invitation has been consumed by bearer token": "Invitation has been consumed by bearer token",
|
|
@@ -170,6 +179,7 @@
|
|
|
170
179
|
"Manage users": "Manage users",
|
|
171
180
|
"Manage your organizations": "Manage your organizations",
|
|
172
181
|
"Management": "Management",
|
|
182
|
+
"Missing": "Missing",
|
|
173
183
|
"more than {{hours}} hours": "more than {{hours}} hours",
|
|
174
184
|
"My API permissions": "My API permissions",
|
|
175
185
|
"My organization": "My organization",
|
|
@@ -184,6 +194,7 @@
|
|
|
184
194
|
"No new notifications in this session": "No new notifications in this session",
|
|
185
195
|
"Not found.": "Not found.",
|
|
186
196
|
"Notifications": "Notifications",
|
|
197
|
+
"Open download": "Open download",
|
|
187
198
|
"Open filters": "Open filters",
|
|
188
199
|
"Open project homepage in new tab": "Open project homepage in new tab",
|
|
189
200
|
"Organization": "Organization",
|
|
@@ -200,6 +211,7 @@
|
|
|
200
211
|
"Permission": "Permission",
|
|
201
212
|
"Phone": "Phone",
|
|
202
213
|
"Phone number: unknown": "Phone number: unknown",
|
|
214
|
+
"Picked up {{label}}. Position {{position}} of {{count}}.": "Picked up {{label}}. Position {{position}} of {{count}}.",
|
|
203
215
|
"Planned outage": "Planned outage",
|
|
204
216
|
"Please help make {{applicationName}} better by sharing your feedback with us. You may use this form as many times as you like.": "Please help make {{applicationName}} better by sharing your feedback with us. You may use this form as many times as you like.",
|
|
205
217
|
"Please login with one of the following identity providers:": "Please login with one of the following identity providers:",
|
|
@@ -212,6 +224,8 @@
|
|
|
212
224
|
"Refresh page": "Refresh page",
|
|
213
225
|
"Remove filter": "Remove filter",
|
|
214
226
|
"Remove filter with label {{filterLabel}} and value {{filterValue}}": "Remove filter with label {{filterLabel}} and value {{filterValue}}",
|
|
227
|
+
"Reorder": "Reorder",
|
|
228
|
+
"Reordering {{label}} cancelled. {{label}} returned to position {{position}} of {{count}}.": "Reordering {{label}} cancelled. {{label}} returned to position {{position}} of {{count}}.",
|
|
215
229
|
"Reset": "Reset",
|
|
216
230
|
"Reset to default": "Reset to default",
|
|
217
231
|
"Resize column {{name}}, use arrow keys to adjust the size.": "Resize column {{name}}, use arrow keys to adjust the size.",
|
|
@@ -220,11 +234,14 @@
|
|
|
220
234
|
"Row actions": "Row actions",
|
|
221
235
|
"Save": "Save",
|
|
222
236
|
"Select all": "Select all",
|
|
237
|
+
"Select missing values": "Select missing values",
|
|
223
238
|
"Select row": "Select row",
|
|
239
|
+
"Selected rows": "Selected rows",
|
|
224
240
|
"Send": "Send",
|
|
225
241
|
"Send invitation": "Send invitation",
|
|
226
242
|
"Show": "Show",
|
|
227
243
|
"Show all": "Show all",
|
|
244
|
+
"Show all with data": "Show all with data",
|
|
228
245
|
"Show filter for {{name}}": "Show filter for {{name}}",
|
|
229
246
|
"Show license": "Show license",
|
|
230
247
|
"Show license information": "Show license information",
|
|
@@ -246,6 +263,7 @@
|
|
|
246
263
|
"There no current or scheduled outages.": "There no current or scheduled outages.",
|
|
247
264
|
"This application uses the following open source libraries:": "This application uses the following open source libraries:",
|
|
248
265
|
"This identity provider is currently unavailable. Please try again later.": "This identity provider is currently unavailable. Please try again later.",
|
|
266
|
+
"To reorder an item, focus its drag handle and press Space. Use arrow keys to move it. Press Space to drop, or Escape to cancel.": "To reorder an item, focus its drag handle and press Space. Use arrow keys to move it. Press Space to drop, or Escape to cancel.",
|
|
249
267
|
"Toggle footer menu": "Toggle footer menu",
|
|
250
268
|
"Toggle menu": "Toggle menu",
|
|
251
269
|
"Toggle navigation menu": "Toggle navigation menu",
|
|
@@ -264,12 +282,16 @@
|
|
|
264
282
|
"User invitations": "User invitations",
|
|
265
283
|
"Users": "Users",
|
|
266
284
|
"Users and organizations": "Users and organizations",
|
|
285
|
+
"Visibility for {{label}}": "Visibility for {{label}}",
|
|
286
|
+
"Visible": "Visible",
|
|
267
287
|
"Visible from": "Visible from",
|
|
268
288
|
"Visible to": "Visible to",
|
|
269
289
|
"We could not log you in, or your session has expired.": "We could not log you in, or your session has expired.",
|
|
270
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}}",
|
|
271
291
|
"We were unable to process this page or item.": "We were unable to process this page or item.",
|
|
272
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.",
|
|
273
295
|
"Would you like to share your feedback?": "Would you like to share your feedback?",
|
|
274
296
|
"Yes": "Yes",
|
|
275
297
|
"You are not authorized to access this page or item.": "You are not authorized to access this page or item.",
|
package/dist/locale/nl.json
CHANGED
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"{{itemName}} is being saved...": "{{itemName}} wordt opgeslagen...",
|
|
22
22
|
"{{items}} ({{count}} of {{totalCount}})": "{{items}} ({{count}} van {{totalCount}})",
|
|
23
23
|
"{{items}} ({{count}})": "{{items}} ({{count}})",
|
|
24
|
+
"{{label}} dropped at position {{position}} of {{count}}.": "{{label}} geplaatst op positie {{position}} van {{count}}.",
|
|
25
|
+
"{{label}} moved to position {{position}} of {{count}}.": "{{label}} verplaatst naar positie {{position}} van {{count}}.",
|
|
26
|
+
"{{label}} returned to position {{position}} of {{count}}.": "{{label}} teruggezet naar positie {{position}} van {{count}}.",
|
|
24
27
|
"{{message}} - Bad request. The input data was not correct.": "{{message}} - Ongeldig verzoek. De invoergegevens waren niet correct.",
|
|
25
28
|
"{{message}} - Conflict. The request could not be completed due to a conflict with the current state of the resource.": "{{message}} - Conflict. Het verzoek kon niet worden voltooid vanwege een conflict met de huidige status van de resource.",
|
|
26
29
|
"{{message}} - Internal Server Error. Please try again later.": "{{message}} - Interne serverfout. Probeer het later opnieuw.",
|
|
@@ -43,6 +46,7 @@
|
|
|
43
46
|
"Active to": "Actief tot",
|
|
44
47
|
"ago": "geleden",
|
|
45
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",
|
|
46
50
|
"Anonymize": "Anonimiseren",
|
|
47
51
|
"Anonymize user": "Gebruiker anonimiseren",
|
|
48
52
|
"Anonymizing user: {{userName}}": "Gebruiker anonimiseren: {{userName}}",
|
|
@@ -58,7 +62,6 @@
|
|
|
58
62
|
"Change": "Wijzigen",
|
|
59
63
|
"Change column order and visibility": "Wijzig kolomvolgorde en zichtbaarheid",
|
|
60
64
|
"Change language": "Taal wijzigen",
|
|
61
|
-
"Change order / visibility": "Wijzig volgorde / zichtbaarheid",
|
|
62
65
|
"Change organization": "Organisatie wijzigen",
|
|
63
66
|
"Changing language": "Taal wijzigen",
|
|
64
67
|
"Changing language will reload the application. Do you want to continue?": "Het wijzigen van de taal herlaadt de applicatie. Wilt u doorgaan?",
|
|
@@ -73,10 +76,13 @@
|
|
|
73
76
|
"Click the logout button to logout": "Klik op de uitlog knop om uit te loggen",
|
|
74
77
|
"Clone": "Klonen",
|
|
75
78
|
"Close": "Sluiten",
|
|
79
|
+
"Close download": "Download sluiten",
|
|
76
80
|
"Close filters": "Filters sluiten",
|
|
77
81
|
"Close notifications drawer": "Meldingenpaneel sluiten",
|
|
78
82
|
"Code": "Code",
|
|
79
83
|
"Code information": "Code informatie",
|
|
84
|
+
"Column": "Kolom",
|
|
85
|
+
"Column editor": "Kolomeditor",
|
|
80
86
|
"Columns": "Kolommen",
|
|
81
87
|
"Complete registration": "Registratie voltooien",
|
|
82
88
|
"Condensed": "Ingekort",
|
|
@@ -102,16 +108,17 @@
|
|
|
102
108
|
"Delete item: {{itemName}}": "Verwijder item: {{itemName}}",
|
|
103
109
|
"Description": "Omschrijving",
|
|
104
110
|
"Details for our technicians": "Details voor onze technici",
|
|
105
|
-
"
|
|
106
|
-
"
|
|
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",
|
|
107
116
|
"Drag handle for {{label}}": "Sleep handvat voor {{label}}",
|
|
108
117
|
"E-Mail": "E-mail",
|
|
109
118
|
"Edit": "Bewerken",
|
|
110
119
|
"Email": "E-mail",
|
|
111
120
|
"Email address: unknown": "E-mailadres: onbekend",
|
|
112
121
|
"Email invitation link": "E-mail uitnodigingslink",
|
|
113
|
-
"Enable all": "Alles inschakelen",
|
|
114
|
-
"Enable all with data": "Alles met data inschakelen",
|
|
115
122
|
"Error": "Fout",
|
|
116
123
|
"Error anonymizing user: {{userName}}": "Fout bij anonimiseren van gebruiker: {{userName}}",
|
|
117
124
|
"Error loading organization admins": "Fout bij het laden van de organisatiebeheerders",
|
|
@@ -128,6 +135,7 @@
|
|
|
128
135
|
"Go back to homepage": "Terug naar startpagina",
|
|
129
136
|
"Helpers": "Hulpmiddelen",
|
|
130
137
|
"Hide all": "Verberg alle",
|
|
138
|
+
"Hide all without data": "Verberg alle kolommen zonder gegevens",
|
|
131
139
|
"Hide columns without data": "Verberg kolommen zonder data",
|
|
132
140
|
"Home": "Home",
|
|
133
141
|
"Id": "Id",
|
|
@@ -136,6 +144,7 @@
|
|
|
136
144
|
"Identifier issuers": "Identificatie uitgevers",
|
|
137
145
|
"Identifier Issuers": "Identificatie Uitgevers",
|
|
138
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",
|
|
139
148
|
"Invitation": "Uitnodiging",
|
|
140
149
|
"Invitation details for {{email}}": "Uitnodigingsdetails voor {{email}}",
|
|
141
150
|
"Invitation has been consumed by bearer token": "Uitnodiging is ingewisseld met bearer token",
|
|
@@ -170,6 +179,7 @@
|
|
|
170
179
|
"Manage users": "Beheer gebruikers",
|
|
171
180
|
"Manage your organizations": "Beheer uw organisaties",
|
|
172
181
|
"Management": "Beheer",
|
|
182
|
+
"Missing": "Ontbrekende waarden",
|
|
173
183
|
"more than {{hours}} hours": "meer dan {{hours}} uur",
|
|
174
184
|
"My API permissions": "Mijn API rechten",
|
|
175
185
|
"My organization": "Mijn organisatie",
|
|
@@ -184,6 +194,7 @@
|
|
|
184
194
|
"No new notifications in this session": "Geen nieuwe meldingen in deze sessie",
|
|
185
195
|
"Not found.": "Niet gevonden.",
|
|
186
196
|
"Notifications": "Notificaties",
|
|
197
|
+
"Open download": "Download openen",
|
|
187
198
|
"Open filters": "Open filters",
|
|
188
199
|
"Open project homepage in new tab": "Open project homepage in nieuw tabblad",
|
|
189
200
|
"Organization": "Organisatie",
|
|
@@ -200,6 +211,7 @@
|
|
|
200
211
|
"Permission": "Toestemming",
|
|
201
212
|
"Phone": "Telefoon",
|
|
202
213
|
"Phone number: unknown": "Telefoonnummer: onbekend",
|
|
214
|
+
"Picked up {{label}}. Position {{position}} of {{count}}.": "{{label}} opgepakt. Positie {{position}} van {{count}}.",
|
|
203
215
|
"Planned outage": "Geplande storing",
|
|
204
216
|
"Please help make {{applicationName}} better by sharing your feedback with us. You may use this form as many times as you like.": "Help {{applicationName}} te verbeteren door uw feedback met ons te delen. U mag dit formulier zo vaak gebruiken als u wilt.",
|
|
205
217
|
"Please login with one of the following identity providers:": "Log in met een van de volgende identiteitsproviders:",
|
|
@@ -212,6 +224,8 @@
|
|
|
212
224
|
"Refresh page": "Pagina vernieuwen",
|
|
213
225
|
"Remove filter": "Filter verwijderen",
|
|
214
226
|
"Remove filter with label {{filterLabel}} and value {{filterValue}}": "Filter met label {{filterLabel}} en waarde {{filterValue}} verwijderen",
|
|
227
|
+
"Reorder": "Volgorde aanpassen",
|
|
228
|
+
"Reordering {{label}} cancelled. {{label}} returned to position {{position}} of {{count}}.": "Sorteren van {{label}} geannuleerd. {{label}} teruggezet naar positie {{position}} van {{count}}.",
|
|
215
229
|
"Reset": "Resetten",
|
|
216
230
|
"Reset to default": "Herstellen naar standaard",
|
|
217
231
|
"Resize column {{name}}, use arrow keys to adjust the size.": "Kolom {{name}} formaat aanpassen, gebruik pijltoetsen om het formaat aan te passen.",
|
|
@@ -220,11 +234,14 @@
|
|
|
220
234
|
"Row actions": "Rij acties",
|
|
221
235
|
"Save": "Opslaan",
|
|
222
236
|
"Select all": "Alles selecteren",
|
|
237
|
+
"Select missing values": "Ontbrekende waarden selecteren",
|
|
223
238
|
"Select row": "Rij selecteren",
|
|
239
|
+
"Selected rows": "Geselecteerde rijen",
|
|
224
240
|
"Send": "Versturen",
|
|
225
241
|
"Send invitation": "Stuur uitnodiging",
|
|
226
242
|
"Show": "Tonen",
|
|
227
243
|
"Show all": "Toon alle",
|
|
244
|
+
"Show all with data": "Toon alle kolommen met gegevens",
|
|
228
245
|
"Show filter for {{name}}": "Toon filter voor {{name}}",
|
|
229
246
|
"Show license": "Toon licentie",
|
|
230
247
|
"Show license information": "Toon licentie informatie",
|
|
@@ -246,6 +263,7 @@
|
|
|
246
263
|
"There no current or scheduled outages.": "Er zijn geen huidige of geplande storingen.",
|
|
247
264
|
"This application uses the following open source libraries:": "Deze applicatie gebruikt de volgende open source bibliotheken:",
|
|
248
265
|
"This identity provider is currently unavailable. Please try again later.": "Deze identiteitsprovider is momenteel niet beschikbaar. Probeer het later opnieuw.",
|
|
266
|
+
"To reorder an item, focus its drag handle and press Space. Use arrow keys to move it. Press Space to drop, or Escape to cancel.": "Om een item te sorteren, focus je de sleepknop en druk je op Spatie. Gebruik de pijltjestoetsen om het item te verplaatsen. Druk op Spatie om neer te zetten of op Escape om te annuleren.",
|
|
249
267
|
"Toggle footer menu": "Voettekst menu omschakelen",
|
|
250
268
|
"Toggle menu": "Menu omschakelen",
|
|
251
269
|
"Toggle navigation menu": "Navigatiemenu omschakelen",
|
|
@@ -264,12 +282,16 @@
|
|
|
264
282
|
"User invitations": "Gebruiker uitnodigingen",
|
|
265
283
|
"Users": "Gebruikers",
|
|
266
284
|
"Users and organizations": "Gebruikers en organisaties",
|
|
285
|
+
"Visibility for {{label}}": "Zichtbaarheid van {{label}}",
|
|
286
|
+
"Visible": "Zichtbaar",
|
|
267
287
|
"Visible from": "Zichtbaar vanaf",
|
|
268
288
|
"Visible to": "Zichtbaar tot",
|
|
269
289
|
"We could not log you in, or your session has expired.": "We konden u niet inloggen, of uw sessie is verlopen.",
|
|
270
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}}",
|
|
271
291
|
"We were unable to process this page or item.": "We konden deze pagina of dit item niet verwerken.",
|
|
272
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.",
|
|
273
295
|
"Would you like to share your feedback?": "Wilt u uw feedback delen?",
|
|
274
296
|
"Yes": "Ja",
|
|
275
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"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { API_ORGANIZATION_TOKEN as e } from "../../constants/api.constants.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as i } from "../../_chunks/
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { PageContainer as t } from "../../components/ui/PageContainer/index.js";
|
|
3
|
+
import { ResponseHandler as n } from "../../components/ui/ResponseHandler/index.js";
|
|
4
|
+
import { t as r } from "../../_chunks/useQueryMemo.js";
|
|
5
|
+
import { t as i } from "../../_chunks/QueryClientService.js";
|
|
6
|
+
import { COMMON_QUERY_KEY as a } from "../../constants/query.constants.js";
|
|
7
|
+
import { useConfig as o } from "../../hooks/useConfig/index.js";
|
|
8
8
|
import { container as s } from "tsyringe";
|
|
9
9
|
import { WindowService as c } from "@gen-epix/ui-core/classes/services/WindowService";
|
|
10
10
|
import { Box as l, Button as u, Typography as d } from "@mui/material";
|
|
@@ -15,22 +15,22 @@ import { TestIdUtil as v } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
|
15
15
|
import { useParams as y } from "react-router-dom";
|
|
16
16
|
// src/pages/AcceptInvitationPage/AcceptInvitationPage.tsx
|
|
17
17
|
var b = () => {
|
|
18
|
-
let { token: b } = y(), x =
|
|
18
|
+
let { token: b } = y(), x = o(), [S, C] = p(!1), { data: w, error: T, isLoading: E } = r({
|
|
19
19
|
enabled: S,
|
|
20
20
|
gcTime: 0,
|
|
21
21
|
queryFn: async ({ signal: t }) => (await s.resolve(e).userRegistrationsPostOne(b, { signal: t })).data,
|
|
22
|
-
queryKey: s.resolve(
|
|
22
|
+
queryKey: s.resolve(i).getGenericKey(a.USER_INVITATIONS, b),
|
|
23
23
|
staleTime: 0
|
|
24
24
|
}), { t: D } = _(), O = f(() => {
|
|
25
25
|
s.resolve(c).window.location.href = "/";
|
|
26
26
|
}, []), k = f(() => {
|
|
27
27
|
C(!0);
|
|
28
28
|
}, []);
|
|
29
|
-
return /* @__PURE__ */ h(
|
|
29
|
+
return /* @__PURE__ */ h(t, {
|
|
30
30
|
singleAction: !0,
|
|
31
31
|
testIdAttributes: v.createAttributes("AcceptInvitationPage"),
|
|
32
32
|
title: D`Invitation`,
|
|
33
|
-
children: /* @__PURE__ */ g(
|
|
33
|
+
children: /* @__PURE__ */ g(n, {
|
|
34
34
|
enabled: S,
|
|
35
35
|
error: T,
|
|
36
36
|
isLoading: E,
|