@pan-stack/ui 0.0.0-stage → 0.2.31
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/LICENSE.txt +41 -0
- package/README.md +7 -2
- package/dist/hooks.d.ts +190 -0
- package/dist/hooks.js +1 -0
- package/dist/i18n/locales/common/ar.json +171 -0
- package/dist/i18n/locales/common/de.json +171 -0
- package/dist/i18n/locales/common/en.json +171 -0
- package/dist/i18n/locales/common/es.json +171 -0
- package/dist/i18n/locales/common/fr.json +171 -0
- package/dist/i18n/locales/common/hi.json +171 -0
- package/dist/i18n/locales/common/id.json +171 -0
- package/dist/i18n/locales/common/it.json +171 -0
- package/dist/i18n/locales/common/ja.json +171 -0
- package/dist/i18n/locales/common/ko.json +171 -0
- package/dist/i18n/locales/common/pt-BR.json +171 -0
- package/dist/i18n/locales/common/ru.json +171 -0
- package/dist/i18n/locales/common/th.json +171 -0
- package/dist/i18n/locales/common/tr.json +171 -0
- package/dist/i18n/locales/common/vi.json +171 -0
- package/dist/i18n/locales/common/zh-CN.json +171 -0
- package/dist/index.d.ts +4428 -0
- package/dist/index.js +20 -0
- package/dist/lib.d.ts +107 -0
- package/dist/lib.js +1 -0
- package/dist/new-types.d.ts +200 -0
- package/dist/styles/globals.css +808 -0
- package/package.json +115 -4
- package/postcss.config.mjs +6 -0
- package/shims/next-link.js +1 -0
- package/shims/next-navigation.js +1 -0
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
NaNa Software License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 NaNa Software. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software, including its source code, compiled code and documentation (the
|
|
6
|
+
"Software"), is owned by NaNa Software. It is licensed, not sold.
|
|
7
|
+
|
|
8
|
+
1. License required. You may install, run or otherwise use the Software only if
|
|
9
|
+
NaNa Software has granted you a license in writing, and only within the scope
|
|
10
|
+
and term of that license. Being able to download the Software from a public
|
|
11
|
+
package registry or code host does not grant you a license.
|
|
12
|
+
|
|
13
|
+
2. Restrictions. Unless your written license from NaNa Software allows it, you
|
|
14
|
+
may not:
|
|
15
|
+
a. copy, publish, distribute, sublicense, rent, lease, sell or otherwise
|
|
16
|
+
transfer the Software, in whole or in part;
|
|
17
|
+
b. modify the Software or create derivative works based on it;
|
|
18
|
+
c. reverse engineer, decompile or disassemble the Software, except to the
|
|
19
|
+
extent that applicable law expressly permits this despite this
|
|
20
|
+
restriction;
|
|
21
|
+
d. remove or change any copyright, trademark or other proprietary notice in
|
|
22
|
+
the Software.
|
|
23
|
+
|
|
24
|
+
3. Third-party components. Parts of the Software come from third parties. Those
|
|
25
|
+
parts stay under their own licenses, which apply to those parts instead of
|
|
26
|
+
this license.
|
|
27
|
+
|
|
28
|
+
4. Termination. Your right to use the Software ends automatically when you
|
|
29
|
+
break these terms or when your written license ends. You must then stop
|
|
30
|
+
using the Software and delete all copies of it.
|
|
31
|
+
|
|
32
|
+
5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
33
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
34
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
35
|
+
|
|
36
|
+
6. Limitation of liability. IN NO EVENT SHALL NANA SOFTWARE BE LIABLE FOR ANY
|
|
37
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
38
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
39
|
+
USE OF OR OTHER DEALINGS IN THE SOFTWARE.
|
|
40
|
+
|
|
41
|
+
To request a license, contact NaNa Software.
|
package/README.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @pan-stack/ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Full documentation (temporary): [docs/README.full.md](docs/README.full.md)
|
|
4
|
+
|
|
5
|
+
## License
|
|
6
|
+
|
|
7
|
+
Proprietary — © 2026 NaNa Software. You may use this package only with a written license from NaNa Software; being
|
|
8
|
+
able to download it does not grant one. Full terms: `LICENSE.txt` in this package.
|
package/dist/hooks.d.ts
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { Table, ColumnFiltersState, SortingState, PaginationState, VisibilityState, ColumnDef } from '@tanstack/react-table';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export { useTranslation } from 'react-i18next';
|
|
4
|
+
|
|
5
|
+
type DataTableBulkDeleteConfig<T> = {
|
|
6
|
+
/** Mặc định `false` — chỉ hiện nút Xóa (n) khi bật rõ ràng */
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
/** Tên đơn vị hiển thị: "vai trò", "quyền", … */
|
|
9
|
+
entityName: string;
|
|
10
|
+
/** Nội dung bổ sung trong dialog (vd. lý do xóa) */
|
|
11
|
+
renderConfirmExtras?: (rows: T[]) => React.ReactNode;
|
|
12
|
+
/** Trả về false để chặn xóa (vd. thiếu lý do) */
|
|
13
|
+
validateBeforeDelete?: (rows: T[]) => boolean;
|
|
14
|
+
onDelete: (rows: T[]) => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
declare function useDataTableBulkDelete<T>(table: Table<T>, config?: DataTableBulkDeleteConfig<T> | null): {
|
|
17
|
+
isEnabled: boolean;
|
|
18
|
+
open: boolean;
|
|
19
|
+
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
20
|
+
deleting: boolean;
|
|
21
|
+
selectedCount: number;
|
|
22
|
+
selectedRows: any[];
|
|
23
|
+
entityName: string;
|
|
24
|
+
renderConfirmExtras: ((rows: T[]) => React.ReactNode) | undefined;
|
|
25
|
+
handleConfirm: () => Promise<void>;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
declare const useDebounce: (value: string, delay: number) => string;
|
|
29
|
+
|
|
30
|
+
interface ExportExcelOptions {
|
|
31
|
+
fileName: string;
|
|
32
|
+
sheetName?: string;
|
|
33
|
+
headers?: string[];
|
|
34
|
+
dataKey?: string[];
|
|
35
|
+
}
|
|
36
|
+
declare function useExportExcel<T extends Record<string, any>>(): {
|
|
37
|
+
exportToExcel: (data: T[], options: ExportExcelOptions) => void;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
type UseFetchProps<T> = {
|
|
41
|
+
fn: () => Promise<T>;
|
|
42
|
+
};
|
|
43
|
+
declare function useFetch<T>({ fn }: UseFetchProps<T>): {
|
|
44
|
+
data: T | null;
|
|
45
|
+
isLoading: boolean;
|
|
46
|
+
error: Error | null;
|
|
47
|
+
refetch: () => Promise<void>;
|
|
48
|
+
isFetching: boolean;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
declare function useIsMobile(): boolean;
|
|
52
|
+
|
|
53
|
+
type ResponsiveTabRefs = {
|
|
54
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
55
|
+
ghostRef: React.RefObject<HTMLDivElement | null>;
|
|
56
|
+
shouldUseSelect: boolean;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Phát hiện khi hàng tab bị xuống dòng (>= 2 dòng) để caller có thể chuyển
|
|
60
|
+
* sang dạng Select.
|
|
61
|
+
*
|
|
62
|
+
* Cách dùng:
|
|
63
|
+
* const { containerRef, ghostRef, shouldUseSelect } = useResponsiveTab()
|
|
64
|
+
* - `containerRef`: wrapper bao quanh UI hiển thị (luôn luôn render).
|
|
65
|
+
* - `ghostRef`: một div ẨN (visibility:hidden, absolute) bên trong wrapper,
|
|
66
|
+
* chứa BẢN SAO các tab với CÙNG layout `flex-wrap` và CÙNG width như
|
|
67
|
+
* hàng tab thật. Hook sẽ so sánh `offsetTop` của child đầu và child cuối:
|
|
68
|
+
* nếu khác nhau ⇒ tab đã xuống dòng ⇒ chuyển sang Select.
|
|
69
|
+
*
|
|
70
|
+
* Phương pháp này đo trực tiếp việc wrap thật sự, không phụ thuộc vào
|
|
71
|
+
* sai số padding/box-sizing giữa scrollWidth và clientWidth.
|
|
72
|
+
*/
|
|
73
|
+
declare function useResponsiveTab(): ResponsiveTabRefs;
|
|
74
|
+
|
|
75
|
+
interface TableState {
|
|
76
|
+
keyword: string;
|
|
77
|
+
filter: ColumnFiltersState;
|
|
78
|
+
sorting: SortingState;
|
|
79
|
+
pagination: PaginationState;
|
|
80
|
+
columnVisibility?: VisibilityState;
|
|
81
|
+
uiState?: UiState;
|
|
82
|
+
sortFilter?: string[];
|
|
83
|
+
}
|
|
84
|
+
/** Dạng xem của cùng MỘT bảng: hàng bảng (`table`) hay thẻ (`cards`). */
|
|
85
|
+
type DataViewMode = 'table' | 'cards';
|
|
86
|
+
interface UiState {
|
|
87
|
+
showTime?: boolean;
|
|
88
|
+
showAdvancedFilter?: boolean;
|
|
89
|
+
showColumnFilter?: boolean;
|
|
90
|
+
density?: 'small' | 'middle' | 'large' | 'xlarge';
|
|
91
|
+
/**
|
|
92
|
+
* Dạng xem đang chọn. Chỉ có tác dụng khi `<DataTable cards={…}>` — không khai `cards` thì
|
|
93
|
+
* bảng chỉ có một dạng và khóa này bị bỏ qua. Lưu cùng `uiState` (localStorage theo `pageName`)
|
|
94
|
+
* nên người dùng chọn một lần là nhớ, giống `density`.
|
|
95
|
+
*/
|
|
96
|
+
view?: DataViewMode;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
type Any = any;
|
|
100
|
+
|
|
101
|
+
type TableFilter<T, R> = Partial<Record<keyof T | keyof R, {
|
|
102
|
+
value: string;
|
|
103
|
+
label: string;
|
|
104
|
+
}[] | undefined>>;
|
|
105
|
+
interface UseTableStateOptions {
|
|
106
|
+
pageName: string;
|
|
107
|
+
keyObject?: Record<string, any>;
|
|
108
|
+
}
|
|
109
|
+
interface UseEnhancedTableOptions<T> {
|
|
110
|
+
columns: ColumnDef<T, unknown>[];
|
|
111
|
+
pageName: string;
|
|
112
|
+
keyObject?: Record<string, any>;
|
|
113
|
+
queryFn: (state: TableState) => Promise<{
|
|
114
|
+
items: T[];
|
|
115
|
+
totalPages: number;
|
|
116
|
+
total: number;
|
|
117
|
+
}>;
|
|
118
|
+
enabled?: boolean;
|
|
119
|
+
queryKey?: string[];
|
|
120
|
+
useQueryFn?: boolean;
|
|
121
|
+
onStateChange?: (state: TableState) => void;
|
|
122
|
+
onFilterChange?: (filter: Partial<{
|
|
123
|
+
[key in keyof T]: Any;
|
|
124
|
+
}>) => void;
|
|
125
|
+
manualPagination?: boolean;
|
|
126
|
+
initialState?: Partial<TableState>;
|
|
127
|
+
getRowId?: (row: T, index: number) => string;
|
|
128
|
+
enableRowSelection?: boolean | ((row: {
|
|
129
|
+
original: T;
|
|
130
|
+
}) => boolean);
|
|
131
|
+
sortFilter?: string[];
|
|
132
|
+
manualSorting?: boolean;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Khóa dòng mặc định cho TanStack Table.
|
|
136
|
+
*
|
|
137
|
+
* TanStack mặc định dùng chỉ số trong mảng `data` (`"0"`, `"1"`, …). Với phân trang server
|
|
138
|
+
* (`manualPagination`), mỗi trang là một mảng mới bắt đầu từ 0 — chọn 2 dòng trang 1 rồi sang
|
|
139
|
+
* trang 2 thì 2 dòng đầu trang 2 cũng bị chọn vì cùng khóa `"0"` / `"1"`.
|
|
140
|
+
*
|
|
141
|
+
* Ưu tiên `id` của bản ghi khi có. Không có thì gắn `pageIndex` vào khóa để các trang không đụng nhau.
|
|
142
|
+
*/
|
|
143
|
+
declare function defaultGetRowId<T>(row: T, index: number, pageIndex?: number): string;
|
|
144
|
+
interface EnhancedTableResult<T> {
|
|
145
|
+
table: Table<T>;
|
|
146
|
+
isLoading: boolean;
|
|
147
|
+
isFetching: boolean;
|
|
148
|
+
error: unknown;
|
|
149
|
+
data: {
|
|
150
|
+
items: T[];
|
|
151
|
+
totalPages: number;
|
|
152
|
+
total: number;
|
|
153
|
+
} | undefined;
|
|
154
|
+
initialized: boolean;
|
|
155
|
+
}
|
|
156
|
+
declare const generateQueryParams: (state: TableState, { baseParams, columns, baseFilter, }?: {
|
|
157
|
+
columns?: ColumnDef<Any>[];
|
|
158
|
+
baseParams?: Record<string, string | number | undefined>;
|
|
159
|
+
baseFilter?: Record<string, string | number | undefined>;
|
|
160
|
+
}) => URLSearchParams;
|
|
161
|
+
declare function useEnhancedTable<T>({ columns, pageName, keyObject, queryFn, enabled, useQueryFn, queryKey, manualPagination, initialState, onStateChange, onFilterChange, getRowId, enableRowSelection, sortFilter, manualSorting, }: UseEnhancedTableOptions<T>): EnhancedTableResult<T>;
|
|
162
|
+
declare const generateFilterParams: (filter: ColumnFiltersState, columns: ColumnDef<Any>[]) => any;
|
|
163
|
+
interface UseTableOptions<T> {
|
|
164
|
+
data: T[];
|
|
165
|
+
columns: ColumnDef<T, unknown>[];
|
|
166
|
+
pageCount?: number;
|
|
167
|
+
rowCount?: number;
|
|
168
|
+
initialState?: Partial<{
|
|
169
|
+
pagination: PaginationState;
|
|
170
|
+
sorting: SortingState;
|
|
171
|
+
columnFilters: ColumnFiltersState;
|
|
172
|
+
columnVisibility: VisibilityState;
|
|
173
|
+
}>;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Hook wrapper cho react-i18next, trả về hàm dịch nhận key và options tùy chọn.
|
|
178
|
+
*
|
|
179
|
+
* Đây là BOUNDARY duy nhất giữa DS và lib i18n cụ thể — mọi component trong DS gọi
|
|
180
|
+
* `useTranslations()` (không import react-i18next trực tiếp). Nếu đổi lib (ví dụ next-intl, cũng
|
|
181
|
+
* có hook cùng tên `useTranslations(namespace)` trả `t(key, values)`), chỉ cần viết lại nội dung
|
|
182
|
+
* hàm này (và `../lib/next-i18next.ts`, `../mi/i18n-provider.tsx` nếu cần đổi cả Provider) — giữ
|
|
183
|
+
* nguyên chữ ký `t(key, options) => string`, không phải sửa từng component gọi hook.
|
|
184
|
+
*
|
|
185
|
+
* @param namespace - Namespace i18n (mặc định: 'common')
|
|
186
|
+
*/
|
|
187
|
+
declare function useTranslations(namespace?: string | string[]): (key: string, options?: string | Record<string, string | number | Date>) => string;
|
|
188
|
+
|
|
189
|
+
export { defaultGetRowId, generateFilterParams, generateQueryParams, useDataTableBulkDelete, useDebounce, useEnhancedTable, useExportExcel, useFetch, useIsMobile, useResponsiveTab, useTranslations };
|
|
190
|
+
export type { DataTableBulkDeleteConfig, EnhancedTableResult, ResponsiveTabRefs, TableFilter, UseEnhancedTableOptions, UseTableOptions, UseTableStateOptions };
|
package/dist/hooks.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as E from"react";function be(t){return t.getFilteredSelectedRowModel().rows}function pe(t,n){let[e,a]=E.useState(!1),[i,c]=E.useState(!1),o=n?.enabled===!0,s=t.getState().rowSelection,r=E.useMemo(()=>o?be(t).map(b=>b.original):[],[o,t,s]),d=r.length,p=E.useCallback(async()=>{if(!(!n||!o||d===0)&&!(n.validateBeforeDelete&&!n.validateBeforeDelete(r))){c(!0);try{await n.onDelete(r),t.resetRowSelection(),a(!1),t.options.meta?.reload?.()}finally{c(!1)}}},[n,o,d,r,t]);return{isEnabled:o,open:e,setOpen:a,deleting:i,selectedCount:d,selectedRows:r,entityName:n?.entityName??"m\u1EE5c",renderConfirmExtras:n?.renderConfirmExtras,handleConfirm:p}}import{useEffect as Se}from"react";import{useState as ye}from"react";var Te=(t,n)=>{let[e,a]=ye(t);return Se(()=>{let i=setTimeout(()=>{a(t)},n);return()=>{clearTimeout(i)}},[t,n]),e};import{format as he}from"date-fns";import{saveAs as we}from"file-saver";import{useCallback as Re}from"react";import*as U from"xlsx";function xe(){return{exportToExcel:Re((n,e)=>{let{fileName:a,sheetName:i="Sheet1",headers:c,dataKey:o}=e,s=(k,T)=>T.split(".").reduce((R,h)=>R?.[h],k),r=n;c&&o&&c.length>0&&o.length>0&&(r=n.map(k=>{let T={};return o.forEach((R,h)=>{if(h<c.length&&c[h]){let g=s(k,R),O=c[h];if(R.includes("At")&&g)try{T[O]=he(new Date(g),"dd/MM/yyyy HH:mm:ss")}catch{T[O]=g?.toString()||""}else R==="status"&&g?T[O]=g==="init"?"Kh\u1EDFi t\u1EA1o":g==="published"?"\u0110\xE3 xu\u1EA5t b\u1EA3n":g:T[O]=g??""}}),T}));let d=U.utils.json_to_sheet(r),p=U.utils.book_new();U.utils.book_append_sheet(p,d,i);let b=U.write(p,{bookType:"xlsx",type:"array"}),m=new Blob([b],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});we(m,`${a}.xlsx`)},[])}}import{useState as N}from"react";function J({fn:t}){let[n,e]=N(!1),[a,i]=N(null),[c,o]=N(null);return{data:c,isLoading:n,error:a,refetch:async()=>{e(!0);try{let r=await t();o(r)}catch(r){i(r)}finally{e(!1)}},isFetching:n}}var G=J;import*as w from"react";var z=768,ve=w.createContext(void 0);function Ee(){let t=w.useContext(ve),[n,e]=w.useState(void 0);return w.useEffect(()=>{let a=window.matchMedia(`(max-width: ${z-1}px)`),i=()=>{e(window.innerWidth<z)};return a.addEventListener("change",i),e(window.innerWidth<z),()=>a.removeEventListener("change",i)},[]),t??!!n}import*as F from"react";function Fe(){let t=F.useRef(null),n=F.useRef(null),[e,a]=F.useState(!1);return F.useLayoutEffect(()=>{let i=t.current,c=n.current;if(!i||!c)return;let o=()=>{let d=c.children;if(d.length<2){a(m=>m===!1?m:!1);return}let p=d[0].offsetTop,b=!1;for(let m=1;m<d.length;m++)if(d[m].offsetTop>p+1){b=!0;break}a(m=>m===b?m:b)};o();let s=new ResizeObserver(o);s.observe(i),s.observe(c);let r=new MutationObserver(o);return r.observe(c,{childList:!0,subtree:!0,characterData:!0}),()=>{s.disconnect(),r.disconnect()}},[]),{containerRef:t,ghostRef:n,shouldUseSelect:e}}import{keepPreviousData as ke,useQuery as Oe}from"@tanstack/react-query";import{getCoreRowModel as Ue,getFacetedRowModel as Pe,getFacetedUniqueValues as Ae,getPaginationRowModel as Me,getSortedRowModel as Ve,useReactTable as Ie}from"@tanstack/react-table";function j(t){let n=new URLSearchParams;if(n.set("page",String(t.pagination.pageIndex+1)),n.set("pageSize",String(t.pagination.pageSize)),t.sorting.length>0){let e=t.sorting[0];e&&(n.set("sortBy",e.id),n.set("sortDir",e.desc?"desc":"asc"))}return t.keyword&&n.set("keyword",t.keyword),t.filter.forEach(e=>{if(Array.isArray(e.value))e.value.length>0&&typeof e.value[0]=="object"&&e.value[0]!==null&&"value"in e.value[0]&&"label"in e.value[0]?n.set(`filter[${e.id}]`,`combobox:${JSON.stringify(e.value)}`):n.set(`filter[${e.id}]`,e.value.join(","));else if(typeof e.value=="string"&&e.value)n.set(`filter[${e.id}]`,e.value);else if(e.value&&typeof e.value=="object"&&"from"in e.value){let a=e.value;if(a.from){let i=typeof a.from=="string"?a.from:a.from.toISOString().split("T")[0],c=typeof a.to=="string"?a.to:a.to?.toISOString().split("T")[0]||i;n.set(`filter[${e.id}]`,`${i},${c}`)}}else if(e.value&&typeof e.value=="object"&&"value"in e.value&&"label"in e.value){let a=e.value;n.set(`filter[${e.id}]`,`combobox:${JSON.stringify(a)}`)}}),n}var Q=10,D={showTime:!0,showAdvancedFilter:!1,density:"large"},De=[],Ce=[],C={},Le={pageIndex:0,pageSize:Q},P={keyword:"",filter:Ce,sorting:De,pagination:Le,columnVisibility:C,uiState:D};function Y(t,n=P){let e={keyword:"",filter:[],sorting:[],pagination:{pageIndex:Math.max(0,parseInt(t.get("page")||"1")-1),pageSize:parseInt(t.get("pageSize")||String(Q))},uiState:D},a=t.get("sortBy"),i=t.get("sortDir");a&&(e.sorting=[{id:a,desc:i==="desc"}]);let c=t.get("keyword");c&&(e.keyword=c);for(let[o,s]of t.entries())if(o.startsWith("filter[")&&o.endsWith("]")){let r=o.slice(7,-1);if(s.startsWith("combobox:"))try{let d=JSON.parse(s.substring(9));e.filter.push({id:r,value:d})}catch(d){console.warn("Failed to parse combobox filter value:",d)}else if(r==="createdAt"&&s.includes(",")){let[d,p]=s.split(","),b=d?new Date(d):void 0,m=p?new Date(p):void 0;b&&!isNaN(b.getTime())&&e.filter.push({id:r,value:{from:b,to:m&&!isNaN(m.getTime())?m:void 0}})}else e.filter.push({id:r,value:s})}return e}function Z(t,n){let e=localStorage.getItem("userId")||"-";if(!n||Object.keys(n).length===0)return`tableState:${e}:${t}`;let i=Object.keys(n).sort().map(c=>`${c}:${n[c]}`).join("|");return`tableState:${t}:${i}`}function I(t,n,e){if(t)try{let a=Z(t,n);localStorage.setItem(a,JSON.stringify(e))}catch(a){console.warn("Failed to save table state to localStorage:",a)}}function K(t,n){if(!t)return null;try{let e=Z(t,n),a=localStorage.getItem(e);if(a)return JSON.parse(a)}catch(e){console.warn("Failed to load table state from localStorage:",e)}return null}import{useRouter as _e,useSearchParams as $e}from"next/navigation";import{useCallback as L,useEffect as X,useState as _}from"react";var ee=!1;function Be(t){if(["page","pageSize","sortBy","sortDir","keyword"].some(e=>t.has(e)))return!0;for(let e of Array.from(t.keys()))if(e.startsWith("filter[")&&e.endsWith("]"))return!0;return!1}function oe(t,n,e=0){if(t&&typeof t=="object"){let a=t.id;if(a!=null&&a!=="")return String(a)}return`${e}:${n}`}var te=t=>t.reduce((n,e)=>(e.value&&(n[e.id]=e.value),n),{});function ne(t,n){if(!n?.length)return t;let e=new Set(t.map(i=>i.id)),a=n.filter(i=>i.value!=null&&!e.has(i.id));return a.length>0?[...t,...a]:t}var Ne=(t,{baseParams:n={},columns:e,baseFilter:a={}}={})=>{let i=new URLSearchParams;if(Object.entries(n).forEach(([s,r])=>{r!==void 0&&i.append(s,String(r))}),i.append("page",String(t.pagination.pageIndex+1)),i.append("pageSize",String(t.pagination.pageSize)),t.sorting.length>0){let s=t.sorting[0];s&&(i.append("sortBy",s.id),i.append("sortDir",s.desc?"desc":"asc"))}t.keyword&&i.append("keyword",t.keyword);let o={...ae(t.filter,e??[]),...a};return i.append("filter",JSON.stringify(o)),i};function ze({columns:t,pageName:n,keyObject:e,queryFn:a,enabled:i=!0,useQueryFn:c=!0,queryKey:o=[],manualPagination:s=!0,initialState:r,onStateChange:d,onFilterChange:p,getRowId:b,enableRowSelection:m=!0,sortFilter:k,manualSorting:T=!1}){let R=$e(),h=_e(),[g,O]=_(!1),[ie,se]=_({}),[$,B]=_(r?.columnVisibility||C),[f,A]=_(Object.assign({},P,r)),le=L(()=>{A(Object.assign({},P,r)),B(C)},[]);X(()=>{let l=Object.assign({},P,r),u=!1;if(Be(R)){let S=Y(R),y=K(n,e);l={...S,filter:ne(S.filter??[],r?.filter),columnVisibility:y&&y.columnVisibility?y.columnVisibility:C,uiState:y&&y.uiState?y.uiState:{...D,...r?.uiState||{}}},I(n,e,l)}else{let S=K(n,e);S&&(l={...S,filter:ne(S.filter??[],r?.filter),columnVisibility:S.columnVisibility||C,uiState:S.uiState||{...D,...r?.uiState||{}}},u=!0)}A(l);let v=l.columnVisibility&&Object.keys(l.columnVisibility).length>0?l.columnVisibility:r?.columnVisibility&&Object.keys(r.columnVisibility).length>0?r.columnVisibility:C;if(p?.(te(l.filter)),B(v),O(!0),u){let S=j(l),y=S.toString()?`?${S.toString()}`:window.location.pathname;window.location.search!==y&&ee&&h.replace(y,{scroll:!1})}},[]),X(()=>{if(!g)return;I(n,e,f);let{keyword:l,filter:u,sorting:v,pagination:S}=f,y=j({keyword:l,filter:u,sorting:v,pagination:S}),q=y.toString()?`?${y.toString()}`:window.location.pathname;window.location.search!==q&&ee&&h.replace(q,{scroll:!1})},[f.keyword,f.filter,f.sorting,f.pagination,f.uiState,n,e,g,h]),X(()=>{g&&I(n,e,{...f,columnVisibility:$})},[$,g,n,e]);let{data:M,isLoading:H,error:W,isFetching:V,refetch:ce}=c?Oe({queryKey:["enhanced-table",n,...o,f.filter,f.sorting,f.pagination,f.keyword,e],queryFn:()=>a(f),enabled:i&&g,staleTime:0,gcTime:0,placeholderData:ke,refetchOnWindowFocus:!0,refetchOnMount:"always"}):G({fn:()=>a(f)}),x=L(l=>{g&&(A(u=>typeof l=="function"?l(u):l),d?.(f))},[g]),ue=L(l=>{g&&x(u=>{let v={...u,filter:typeof l=="function"?l(u.filter):l,pagination:{...u.pagination,pageIndex:0}};return p?.(te(v.filter)),v})},[x]),fe=L(l=>{x(u=>({...u,sorting:typeof l=="function"?l(u.sorting):l}))},[x]),de=L(l=>{x(u=>({...u,pagination:typeof l=="function"?l(u.pagination):l}))},[x]),ge=L(l=>{x(u=>({...u,keyword:l,pagination:{...u.pagination,pageIndex:0}}))},[x]),me=L(l=>{A(u=>{let v=typeof l=="function"?l(u.uiState||D):{...u.uiState||D,...l};return{...u,uiState:v}})},[]);return{table:Ie({data:M?.items??[],columns:t,state:{sorting:f.sorting,columnVisibility:$,rowSelection:ie,columnFilters:f.filter,pagination:f.pagination},...s&&{pageCount:M?.totalPages??0,manualPagination:!0},manualSorting:T,enableRowSelection:m,onRowSelectionChange:se,onSortingChange:fe,onPaginationChange:de,onColumnFiltersChange:ue,onColumnVisibilityChange:B,getRowId:b??((l,u)=>oe(l,u,f.pagination.pageIndex)),getCoreRowModel:Ue(),getPaginationRowModel:Me(),getSortedRowModel:Ve(),getFacetedRowModel:Pe(),getFacetedUniqueValues:Ae(),meta:{isLoading:H||V,isFetching:V,error:W,total:M?.total??0,uiState:f.uiState,setUiState:me,setKeyword:ge,getShowTime:()=>f.uiState?.showTime??!1,getKeyword:()=>f.keyword,initialized:g,reset:le,reload:ce,sortFilter:k},defaultColumn:{size:0,maxSize:void 0}}),isLoading:H||V,isFetching:V,initialized:g,error:W,data:M??void 0}}var ae=(t,n)=>t.filter(e=>e.value).map(e=>{let a=n.find(o=>o.id===e.id||"accessorKey"in o&&o.accessorKey===e.id),i=a?.meta?.filter?.dataType;if(a?.meta?.filter?.type==="date-range"){let o=e.value,s=r=>{let d=r.getFullYear(),p=String(r.getMonth()+1).padStart(2,"0"),b=String(r.getDate()).padStart(2,"0");return`${d}-${p}-${b}`};if(o.from&&o.to&&o.from!==null&&o.to!==null&&o.from===o.to)return{[e.id]:s(o.from)};if(o.from&&o.to&&o.from!==null&&o.to!==null&&o.from!==o.to)return{[`${e.id}Start`]:s(o.from),[`${e.id}End`]:s(o.to)};if(o.from)return{[e.id]:s(o.from)}}if(Array.isArray(e.value)){let o=e.value.map(s=>{let r=typeof s=="object"&&s.value?s.value:s;if(i)switch(i){case"number":r=Number(r);break;case"boolean":r=!!r;break;case"string":r=String(r);break;default:break}return r}).filter(s=>s!==null).filter(s=>s!==void 0);return o.length>0?{[e.id]:o}:null}else{let o=typeof e=="object"&&typeof e?.value=="object"&&(e?.value).value?e.value.value:e.value;if(i)switch(i){case"number":o=Number(o);break;case"boolean":o=!!o;break;case"string":o=String(o);break;default:break}return o!=null?{[e.id]:o}:{}}}).reduce((e,a)=>({...e,...a}),{});import{useCallback as je}from"react";import{useTranslation as re}from"react-i18next";function Ke(t="common"){let{t:n}=re(t);return je((e,a)=>typeof a=="string"?n(e,{defaultValue:a}):n(e,a||{}),[n])}export{oe as defaultGetRowId,ae as generateFilterParams,Ne as generateQueryParams,pe as useDataTableBulkDelete,Te as useDebounce,ze as useEnhancedTable,xe as useExportExcel,J as useFetch,Ee as useIsMobile,Fe as useResponsiveTab,re as useTranslation,Ke as useTranslations};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
{
|
|
2
|
+
"action.add.label": "إضافة",
|
|
3
|
+
"action.adding.label": "جارٍ الإضافة...",
|
|
4
|
+
"action.apply.label": "تطبيق",
|
|
5
|
+
"action.approve.label": "اعتماد",
|
|
6
|
+
"action.back.label": "رجوع",
|
|
7
|
+
"action.cancel.label": "إلغاء",
|
|
8
|
+
"action.changePassword.label": "تغيير كلمة المرور",
|
|
9
|
+
"action.clear.label": "مسح",
|
|
10
|
+
"action.close.label": "إغلاق",
|
|
11
|
+
"action.collapseAll.label": "طي الكل",
|
|
12
|
+
"action.confirm.label": "تأكيد",
|
|
13
|
+
"action.create.label": "إنشاء",
|
|
14
|
+
"action.creating.label": "جارٍ الإنشاء...",
|
|
15
|
+
"action.delete.label": "حذف",
|
|
16
|
+
"action.deleting.label": "جارٍ الحذف...",
|
|
17
|
+
"action.deselect.label": "إلغاء التحديد",
|
|
18
|
+
"action.deselectAll.label": "إلغاء تحديد الكل",
|
|
19
|
+
"action.edit.label": "تعديل",
|
|
20
|
+
"action.expand.label": "توسيع",
|
|
21
|
+
"action.expandAll.label": "توسيع الكل",
|
|
22
|
+
"action.export.label": "تصدير",
|
|
23
|
+
"action.hidePassword.label": "إخفاء كلمة المرور",
|
|
24
|
+
"action.history.label": "السجل",
|
|
25
|
+
"action.logout.label": "تسجيل الخروج",
|
|
26
|
+
"action.more.label": "المزيد",
|
|
27
|
+
"action.print.label": "طباعة",
|
|
28
|
+
"action.redo.label": "إعادة",
|
|
29
|
+
"action.reset.label": "إعادة تعيين",
|
|
30
|
+
"action.save.label": "حفظ",
|
|
31
|
+
"action.saveDraft.label": "حفظ المسودة",
|
|
32
|
+
"action.saving.label": "جارٍ الحفظ...",
|
|
33
|
+
"action.selectAll.label": "تحديد الكل",
|
|
34
|
+
"action.setDefault.label": "تعيين كافتراضي",
|
|
35
|
+
"action.showPassword.label": "إظهار كلمة المرور",
|
|
36
|
+
"action.shrink.label": "تصغير",
|
|
37
|
+
"action.stop.label": "إيقاف",
|
|
38
|
+
"action.toggleOff.label": "إيقاف التشغيل",
|
|
39
|
+
"action.toggleOn.label": "تشغيل",
|
|
40
|
+
"action.undo.label": "تراجع",
|
|
41
|
+
"action.update.label": "تحديث",
|
|
42
|
+
"action.updating.label": "جارٍ التحديث...",
|
|
43
|
+
"action.view.label": "عرض",
|
|
44
|
+
"action.viewSource.label": "عرض بيانات المصدر",
|
|
45
|
+
"action.viewing.label": "جارٍ العرض...",
|
|
46
|
+
"common.beta.label": "تجريبي",
|
|
47
|
+
"common.copy.label": "نسخ",
|
|
48
|
+
"common.keyword.label": "كلمة مفتاحية",
|
|
49
|
+
"common.keyword.validation": "يجب ألا تقل الكلمة المفتاحية عن حرفين",
|
|
50
|
+
"common.languageToggle.label": "اختيار اللغة",
|
|
51
|
+
"common.layoutToggle.sidebar": "الشريط الجانبي",
|
|
52
|
+
"common.layoutToggle.sidebarTooltip": "التبديل إلى الشريط الجانبي",
|
|
53
|
+
"common.layoutToggle.topNavigation": "التنقل العلوي",
|
|
54
|
+
"common.layoutToggle.topNavigationTooltip": "التبديل إلى التنقل العلوي (لسطح المكتب فقط)",
|
|
55
|
+
"common.loading.label": "جارٍ التحميل...",
|
|
56
|
+
"common.no": "لا",
|
|
57
|
+
"common.noOptions.label": "لا توجد خيارات",
|
|
58
|
+
"common.noResultsFound.label": "لم يتم العثور على نتائج",
|
|
59
|
+
"common.openMenu.label": "فتح القائمة",
|
|
60
|
+
"common.search.label": "بحث",
|
|
61
|
+
"common.search.placeholderCustom": "أدخل {keyword} للبحث",
|
|
62
|
+
"common.search.placeholderDefault": "أدخل كلمة مفتاحية...",
|
|
63
|
+
"common.searching.label": "جارٍ البحث...",
|
|
64
|
+
"common.select.placeholder": "اختيار",
|
|
65
|
+
"common.select.placeholderWithTitle": "اختيار {title}",
|
|
66
|
+
"common.textarea.placeholder": "أدخل النص...",
|
|
67
|
+
"common.textarea.placeholderWithTitle": "أدخل {title}...",
|
|
68
|
+
"common.value.other": "أخرى",
|
|
69
|
+
"common.yes": "نعم",
|
|
70
|
+
"dashboard.page.main.nav": "لوحة المعلومات",
|
|
71
|
+
"dialog.delete.confirm.description": "هل أنت متأكد من حذف {type} \"{name}\"؟",
|
|
72
|
+
"dialog.delete.confirm.title": "هل أنت متأكد؟",
|
|
73
|
+
"field.createdAt.label": "تاريخ الإنشاء",
|
|
74
|
+
"field.createdBy.label": "أنشأه",
|
|
75
|
+
"field.description.label": "الوصف",
|
|
76
|
+
"field.status.active.label": "نشط",
|
|
77
|
+
"field.status.all.label": "الكل",
|
|
78
|
+
"field.status.deleted.label": "محذوف",
|
|
79
|
+
"field.status.draft.label": "مسودة",
|
|
80
|
+
"field.status.label": "الحالة",
|
|
81
|
+
"field.status.placeholder": "اختيار الحالة",
|
|
82
|
+
"field.status.trash.label": "سلة المحذوفات",
|
|
83
|
+
"field.status.unknown.label": "غير معروف",
|
|
84
|
+
"field.status.validation": "يرجى اختيار حالة",
|
|
85
|
+
"field.updatedAt.label": "تاريخ التحديث",
|
|
86
|
+
"field.updatedBy.label": "حدّثه",
|
|
87
|
+
"form.create.description": "املأ النموذج أدناه لإنشاء {entity} جديد.",
|
|
88
|
+
"form.create.title": "إنشاء {entity}",
|
|
89
|
+
"form.edit.description": "حدّث معلومات {entity}.",
|
|
90
|
+
"form.edit.title": "تعديل {entity}",
|
|
91
|
+
"form.view.description": "فيما يلي تفاصيل {entity}.",
|
|
92
|
+
"form.view.title": "عرض {entity}",
|
|
93
|
+
"msg.created.fail": "تعذّر إنشاء {name}.",
|
|
94
|
+
"msg.created.success": "تم إنشاء {name} بنجاح.",
|
|
95
|
+
"msg.deleted.fail": "تعذّر حذف {name}.",
|
|
96
|
+
"msg.deleted.success": "تم حذف {name} بنجاح.",
|
|
97
|
+
"msg.error": "حدث خطأ ما، يرجى المحاولة مرة أخرى لاحقًا.",
|
|
98
|
+
"msg.item.exists": "{name} {value} موجود بالفعل.",
|
|
99
|
+
"msg.maintenance.description": "الصفحة قيد الصيانة، يرجى العودة لاحقًا.",
|
|
100
|
+
"msg.maintenance.title": "صيانة",
|
|
101
|
+
"msg.pageUnderConstruction.description": "الصفحة قيد الإنشاء، يرجى العودة لاحقًا.",
|
|
102
|
+
"msg.pageUnderConstruction.title": "قيد الإنشاء",
|
|
103
|
+
"msg.unauthorized": "يجب تسجيل الدخول لتنفيذ هذا الإجراء.",
|
|
104
|
+
"msg.updated.fail": "تعذّر تحديث {name}.",
|
|
105
|
+
"msg.updated.success": "تم تحديث {name} بنجاح.",
|
|
106
|
+
"query.error.invalidParameters": "معلمات الاستعلام غير صالحة",
|
|
107
|
+
"query.keyword.label": "كلمة مفتاحية",
|
|
108
|
+
"query.keyword.validation": "يجب ألا تقل الكلمة المفتاحية عن حرفين",
|
|
109
|
+
"query.orderBy.label": "الترتيب حسب",
|
|
110
|
+
"query.orderDir.label": "اتجاه الترتيب",
|
|
111
|
+
"query.orderDir.validation": "يجب أن يكون اتجاه الترتيب 'asc' أو 'desc'",
|
|
112
|
+
"table.actions.label": "الإجراءات",
|
|
113
|
+
"table.cards.moreChips": "+{count}",
|
|
114
|
+
"table.cards.noImage": "لا توجد صورة",
|
|
115
|
+
"table.clearFilters.label": "مسح عوامل التصفية",
|
|
116
|
+
"table.density.compact": "مضغوط",
|
|
117
|
+
"table.density.default": "افتراضي",
|
|
118
|
+
"table.density.label": "كثافة الصفوف",
|
|
119
|
+
"table.density.spacious": "واسع",
|
|
120
|
+
"table.deselectAll.label": "إلغاء تحديد الكل",
|
|
121
|
+
"table.error.message": "حدث خطأ أثناء تحميل البيانات",
|
|
122
|
+
"table.filter.combobox.placeholder": "- اختيار -",
|
|
123
|
+
"table.filter.combobox.prefixPlaceholder": "اختيار {prefix}",
|
|
124
|
+
"table.filter.dateRange.placeholder": "اختيار التاريخ",
|
|
125
|
+
"table.filter.hideAdvancedFilter": "إخفاء التصفية المتقدمة",
|
|
126
|
+
"table.filter.label": "تصفية",
|
|
127
|
+
"table.filter.noOptions.label": "لا توجد خيارات",
|
|
128
|
+
"table.filter.phone.placeholder": "أدخل رقم الهاتف",
|
|
129
|
+
"table.filter.reset.label": "إعادة تعيين",
|
|
130
|
+
"table.filter.search.placeholderCustom": "أدخل {keyword} للبحث",
|
|
131
|
+
"table.filter.search.placeholderDefault": "أدخل كلمة مفتاحية...",
|
|
132
|
+
"table.filter.selected.label": "تم تحديد {selected}",
|
|
133
|
+
"table.filter.showAdvancedFilter": "إظهار التصفية المتقدمة",
|
|
134
|
+
"table.filter.text.current": "الحالي",
|
|
135
|
+
"table.filter.text.placeholder": "أدخل نصًا للتصفية...",
|
|
136
|
+
"table.goToFirstPage.label": "الانتقال إلى الصفحة الأولى",
|
|
137
|
+
"table.goToLastPage.label": "الانتقال إلى الصفحة الأخيرة",
|
|
138
|
+
"table.goToNextPage.label": "الانتقال إلى الصفحة التالية",
|
|
139
|
+
"table.goToPreviousPage.label": "الانتقال إلى الصفحة السابقة",
|
|
140
|
+
"table.hideColumn.label": "إخفاء العمود",
|
|
141
|
+
"table.noResults.message": "لا توجد نتائج",
|
|
142
|
+
"table.page.label": "صفحة",
|
|
143
|
+
"table.pageOf.label": "صفحة {page} من {total}",
|
|
144
|
+
"table.pageSize.label": "السجلات في الصفحة",
|
|
145
|
+
"table.recordCount.label": "{count} سجل",
|
|
146
|
+
"table.reload.label": "إعادة التحميل",
|
|
147
|
+
"table.select.all": "تحديد الكل",
|
|
148
|
+
"table.select.invert": "عكس التحديد",
|
|
149
|
+
"table.select.label": "تحديد",
|
|
150
|
+
"table.selectAll.label": "تحديد الكل",
|
|
151
|
+
"table.selectAllPage.label": "تحديد كل ما في هذه الصفحة",
|
|
152
|
+
"table.selectRow.label": "تحديد الصف",
|
|
153
|
+
"table.selectedRows.label": "تم تحديد {selected}/{total} سجل",
|
|
154
|
+
"table.showTime.label": "إظهار الوقت",
|
|
155
|
+
"table.sort.asc": "تصاعدي",
|
|
156
|
+
"table.sort.clickToClearSort.label": "انقر لإلغاء الترتيب",
|
|
157
|
+
"table.sort.clickToSortAsclabel": "انقر للترتيب تصاعديًا",
|
|
158
|
+
"table.sort.desc": "تنازلي",
|
|
159
|
+
"table.sort.label": "ترتيب",
|
|
160
|
+
"table.sort.none": "افتراضي",
|
|
161
|
+
"table.sortAsc.label": "ترتيب تصاعدي",
|
|
162
|
+
"table.sortClear.label": "إلغاء الترتيب",
|
|
163
|
+
"table.sortDesc.label": "ترتيب تنازلي",
|
|
164
|
+
"table.toggleColumns.label": "تبديل عرض الأعمدة",
|
|
165
|
+
"table.total.label": "الإجمالي {total} سجل",
|
|
166
|
+
"table.view.cards": "عرض البطاقات",
|
|
167
|
+
"table.view.switchToCards": "التبديل إلى عرض البطاقات",
|
|
168
|
+
"table.view.switchToTable": "التبديل إلى عرض الجدول",
|
|
169
|
+
"table.view.table": "عرض الجدول",
|
|
170
|
+
"table.viewColumns.label": "عرض الأعمدة"
|
|
171
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
{
|
|
2
|
+
"action.add.label": "Hinzufügen",
|
|
3
|
+
"action.adding.label": "Wird hinzugefügt...",
|
|
4
|
+
"action.apply.label": "Anwenden",
|
|
5
|
+
"action.approve.label": "Genehmigen",
|
|
6
|
+
"action.back.label": "Zurück",
|
|
7
|
+
"action.cancel.label": "Abbrechen",
|
|
8
|
+
"action.changePassword.label": "Passwort ändern",
|
|
9
|
+
"action.clear.label": "Leeren",
|
|
10
|
+
"action.close.label": "Schließen",
|
|
11
|
+
"action.collapseAll.label": "Alle einklappen",
|
|
12
|
+
"action.confirm.label": "Bestätigen",
|
|
13
|
+
"action.create.label": "Erstellen",
|
|
14
|
+
"action.creating.label": "Wird erstellt...",
|
|
15
|
+
"action.delete.label": "Löschen",
|
|
16
|
+
"action.deleting.label": "Wird gelöscht...",
|
|
17
|
+
"action.deselect.label": "Auswahl aufheben",
|
|
18
|
+
"action.deselectAll.label": "Gesamte Auswahl aufheben",
|
|
19
|
+
"action.edit.label": "Bearbeiten",
|
|
20
|
+
"action.expand.label": "Ausklappen",
|
|
21
|
+
"action.expandAll.label": "Alle ausklappen",
|
|
22
|
+
"action.export.label": "Exportieren",
|
|
23
|
+
"action.hidePassword.label": "Passwort verbergen",
|
|
24
|
+
"action.history.label": "Verlauf",
|
|
25
|
+
"action.logout.label": "Abmelden",
|
|
26
|
+
"action.more.label": "Mehr",
|
|
27
|
+
"action.print.label": "Drucken",
|
|
28
|
+
"action.redo.label": "Wiederholen",
|
|
29
|
+
"action.reset.label": "Zurücksetzen",
|
|
30
|
+
"action.save.label": "Speichern",
|
|
31
|
+
"action.saveDraft.label": "Entwurf speichern",
|
|
32
|
+
"action.saving.label": "Wird gespeichert...",
|
|
33
|
+
"action.selectAll.label": "Alle auswählen",
|
|
34
|
+
"action.setDefault.label": "Als Standard festlegen",
|
|
35
|
+
"action.showPassword.label": "Passwort anzeigen",
|
|
36
|
+
"action.shrink.label": "Verkleinern",
|
|
37
|
+
"action.stop.label": "Stoppen",
|
|
38
|
+
"action.toggleOff.label": "Ausschalten",
|
|
39
|
+
"action.toggleOn.label": "Einschalten",
|
|
40
|
+
"action.undo.label": "Rückgängig",
|
|
41
|
+
"action.update.label": "Aktualisieren",
|
|
42
|
+
"action.updating.label": "Wird aktualisiert...",
|
|
43
|
+
"action.view.label": "Ansehen",
|
|
44
|
+
"action.viewSource.label": "Quelldaten ansehen",
|
|
45
|
+
"action.viewing.label": "Wird angezeigt...",
|
|
46
|
+
"common.beta.label": "BETA",
|
|
47
|
+
"common.copy.label": "Kopieren",
|
|
48
|
+
"common.keyword.label": "Suchbegriff",
|
|
49
|
+
"common.keyword.validation": "Der Suchbegriff muss mindestens 2 Zeichen lang sein",
|
|
50
|
+
"common.languageToggle.label": "Sprache auswählen",
|
|
51
|
+
"common.layoutToggle.sidebar": "Seitenleiste",
|
|
52
|
+
"common.layoutToggle.sidebarTooltip": "Zur Seitenleiste wechseln",
|
|
53
|
+
"common.layoutToggle.topNavigation": "Obere Navigation",
|
|
54
|
+
"common.layoutToggle.topNavigationTooltip": "Zur oberen Navigation wechseln (nur Desktop)",
|
|
55
|
+
"common.loading.label": "Wird geladen...",
|
|
56
|
+
"common.no": "Nein",
|
|
57
|
+
"common.noOptions.label": "Keine Optionen",
|
|
58
|
+
"common.noResultsFound.label": "Keine Ergebnisse gefunden",
|
|
59
|
+
"common.openMenu.label": "Menü öffnen",
|
|
60
|
+
"common.search.label": "Suchen",
|
|
61
|
+
"common.search.placeholderCustom": "{keyword} zum Suchen eingeben",
|
|
62
|
+
"common.search.placeholderDefault": "Suchbegriff eingeben...",
|
|
63
|
+
"common.searching.label": "Suche läuft...",
|
|
64
|
+
"common.select.placeholder": "Auswählen",
|
|
65
|
+
"common.select.placeholderWithTitle": "{title} auswählen",
|
|
66
|
+
"common.textarea.placeholder": "Text eingeben...",
|
|
67
|
+
"common.textarea.placeholderWithTitle": "{title} eingeben...",
|
|
68
|
+
"common.value.other": "Sonstiges",
|
|
69
|
+
"common.yes": "Ja",
|
|
70
|
+
"dashboard.page.main.nav": "Dashboard",
|
|
71
|
+
"dialog.delete.confirm.description": "Möchten Sie {type} „{name}“ wirklich löschen?",
|
|
72
|
+
"dialog.delete.confirm.title": "Sind Sie sicher?",
|
|
73
|
+
"field.createdAt.label": "Erstellt am",
|
|
74
|
+
"field.createdBy.label": "Erstellt von",
|
|
75
|
+
"field.description.label": "Beschreibung",
|
|
76
|
+
"field.status.active.label": "Aktiv",
|
|
77
|
+
"field.status.all.label": "Alle",
|
|
78
|
+
"field.status.deleted.label": "Gelöscht",
|
|
79
|
+
"field.status.draft.label": "Entwurf",
|
|
80
|
+
"field.status.label": "Status",
|
|
81
|
+
"field.status.placeholder": "Status auswählen",
|
|
82
|
+
"field.status.trash.label": "Papierkorb",
|
|
83
|
+
"field.status.unknown.label": "Unbekannt",
|
|
84
|
+
"field.status.validation": "Bitte wählen Sie einen Status aus",
|
|
85
|
+
"field.updatedAt.label": "Aktualisiert am",
|
|
86
|
+
"field.updatedBy.label": "Aktualisiert von",
|
|
87
|
+
"form.create.description": "Füllen Sie das folgende Formular aus, um {entity} neu anzulegen.",
|
|
88
|
+
"form.create.title": "{entity} erstellen",
|
|
89
|
+
"form.edit.description": "Aktualisieren Sie die Informationen zu {entity}.",
|
|
90
|
+
"form.edit.title": "{entity} bearbeiten",
|
|
91
|
+
"form.view.description": "Hier sind die Details zu {entity}.",
|
|
92
|
+
"form.view.title": "{entity} ansehen",
|
|
93
|
+
"msg.created.fail": "{name} konnte nicht erstellt werden.",
|
|
94
|
+
"msg.created.success": "{name} wurde erfolgreich erstellt.",
|
|
95
|
+
"msg.deleted.fail": "{name} konnte nicht gelöscht werden.",
|
|
96
|
+
"msg.deleted.success": "{name} wurde erfolgreich gelöscht.",
|
|
97
|
+
"msg.error": "Etwas ist schiefgelaufen. Bitte versuchen Sie es später erneut.",
|
|
98
|
+
"msg.item.exists": "{name} {value} existiert bereits.",
|
|
99
|
+
"msg.maintenance.description": "Die Seite wird gewartet. Bitte kommen Sie später wieder.",
|
|
100
|
+
"msg.maintenance.title": "Wartung",
|
|
101
|
+
"msg.pageUnderConstruction.description": "Die Seite ist im Aufbau. Bitte kommen Sie später wieder.",
|
|
102
|
+
"msg.pageUnderConstruction.title": "Im Aufbau",
|
|
103
|
+
"msg.unauthorized": "Sie müssen sich anmelden, um diese Aktion auszuführen.",
|
|
104
|
+
"msg.updated.fail": "{name} konnte nicht aktualisiert werden.",
|
|
105
|
+
"msg.updated.success": "{name} wurde erfolgreich aktualisiert.",
|
|
106
|
+
"query.error.invalidParameters": "Ungültige Abfrageparameter",
|
|
107
|
+
"query.keyword.label": "Suchbegriff",
|
|
108
|
+
"query.keyword.validation": "Der Suchbegriff muss mindestens 2 Zeichen lang sein",
|
|
109
|
+
"query.orderBy.label": "Sortieren nach",
|
|
110
|
+
"query.orderDir.label": "Sortierrichtung",
|
|
111
|
+
"query.orderDir.validation": "Die Sortierrichtung muss 'asc' oder 'desc' sein",
|
|
112
|
+
"table.actions.label": "Aktionen",
|
|
113
|
+
"table.cards.moreChips": "+{count}",
|
|
114
|
+
"table.cards.noImage": "Kein Bild",
|
|
115
|
+
"table.clearFilters.label": "Filter zurücksetzen",
|
|
116
|
+
"table.density.compact": "Kompakt",
|
|
117
|
+
"table.density.default": "Standard",
|
|
118
|
+
"table.density.label": "Zeilendichte",
|
|
119
|
+
"table.density.spacious": "Großzügig",
|
|
120
|
+
"table.deselectAll.label": "Gesamte Auswahl aufheben",
|
|
121
|
+
"table.error.message": "Beim Laden der Daten ist ein Fehler aufgetreten",
|
|
122
|
+
"table.filter.combobox.placeholder": "- Auswählen -",
|
|
123
|
+
"table.filter.combobox.prefixPlaceholder": "{prefix} auswählen",
|
|
124
|
+
"table.filter.dateRange.placeholder": "Datum auswählen",
|
|
125
|
+
"table.filter.hideAdvancedFilter": "Erweiterten Filter ausblenden",
|
|
126
|
+
"table.filter.label": "Filter",
|
|
127
|
+
"table.filter.noOptions.label": "Keine Optionen",
|
|
128
|
+
"table.filter.phone.placeholder": "Telefonnummer eingeben",
|
|
129
|
+
"table.filter.reset.label": "Zurücksetzen",
|
|
130
|
+
"table.filter.search.placeholderCustom": "{keyword} zum Suchen eingeben",
|
|
131
|
+
"table.filter.search.placeholderDefault": "Suchbegriff eingeben...",
|
|
132
|
+
"table.filter.selected.label": "{selected} ausgewählt",
|
|
133
|
+
"table.filter.showAdvancedFilter": "Erweiterten Filter anzeigen",
|
|
134
|
+
"table.filter.text.current": "Aktuell",
|
|
135
|
+
"table.filter.text.placeholder": "Text zum Filtern eingeben...",
|
|
136
|
+
"table.goToFirstPage.label": "Zur ersten Seite",
|
|
137
|
+
"table.goToLastPage.label": "Zur letzten Seite",
|
|
138
|
+
"table.goToNextPage.label": "Zur nächsten Seite",
|
|
139
|
+
"table.goToPreviousPage.label": "Zur vorherigen Seite",
|
|
140
|
+
"table.hideColumn.label": "Spalte ausblenden",
|
|
141
|
+
"table.noResults.message": "Keine Ergebnisse",
|
|
142
|
+
"table.page.label": "Seite",
|
|
143
|
+
"table.pageOf.label": "Seite {page} von {total}",
|
|
144
|
+
"table.pageSize.label": "Einträge pro Seite",
|
|
145
|
+
"table.recordCount.label": "{count} Einträge",
|
|
146
|
+
"table.reload.label": "Neu laden",
|
|
147
|
+
"table.select.all": "Alle auswählen",
|
|
148
|
+
"table.select.invert": "Auswahl umkehren",
|
|
149
|
+
"table.select.label": "Auswählen",
|
|
150
|
+
"table.selectAll.label": "Alle auswählen",
|
|
151
|
+
"table.selectAllPage.label": "Alle auf dieser Seite auswählen",
|
|
152
|
+
"table.selectRow.label": "Zeile auswählen",
|
|
153
|
+
"table.selectedRows.label": "{selected}/{total} Einträge ausgewählt",
|
|
154
|
+
"table.showTime.label": "Uhrzeit anzeigen",
|
|
155
|
+
"table.sort.asc": "aufsteigend",
|
|
156
|
+
"table.sort.clickToClearSort.label": "Klicken, um die Sortierung aufzuheben",
|
|
157
|
+
"table.sort.clickToSortAsclabel": "Klicken, um aufsteigend zu sortieren",
|
|
158
|
+
"table.sort.desc": "absteigend",
|
|
159
|
+
"table.sort.label": "Sortieren",
|
|
160
|
+
"table.sort.none": "Standard",
|
|
161
|
+
"table.sortAsc.label": "Aufsteigend sortieren",
|
|
162
|
+
"table.sortClear.label": "Sortierung aufheben",
|
|
163
|
+
"table.sortDesc.label": "Absteigend sortieren",
|
|
164
|
+
"table.toggleColumns.label": "Spalten ein-/ausblenden",
|
|
165
|
+
"table.total.label": "Insgesamt {total} Einträge",
|
|
166
|
+
"table.view.cards": "Kartenansicht",
|
|
167
|
+
"table.view.switchToCards": "Zur Kartenansicht wechseln",
|
|
168
|
+
"table.view.switchToTable": "Zur Tabellenansicht wechseln",
|
|
169
|
+
"table.view.table": "Tabellenansicht",
|
|
170
|
+
"table.viewColumns.label": "Spalten ansehen"
|
|
171
|
+
}
|