@cundi/refine-xaf 1.0.2 → 1.0.4
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 +5 -2
- package/dist/index.d.mts +194 -1
- package/dist/index.d.ts +194 -1
- package/dist/index.js +266 -30
- package/dist/index.mjs +266 -31
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ This is an SDK integrating XAF backend with Refine frontend, including core logi
|
|
|
9
9
|
- **UI Components**:
|
|
10
10
|
- `Header`: Application header including user menu and theme toggle (Dark/Light Mode).
|
|
11
11
|
- `LoginPage`: Standard login page.
|
|
12
|
-
- `SmartList`, `RelatedList`: Highly encapsulated generic list and detail components.
|
|
12
|
+
- `SmartList`, `RelatedList`: Highly encapsulated generic list and detail components. (**Note**: To use `defaultVisible` prop, import `@cundi/refine-xaf/dist/antd-column-ext` in your app entry)
|
|
13
13
|
- `TiptapEditor`: Rich text editor with support for Images, Tables, Tasks, Math (LaTeX), YouTube, Emoji, Highlight, and Text Color.
|
|
14
14
|
- `ApplicationUser`: Complete user management (List, Create, Edit, Role Assignment).
|
|
15
15
|
- `PermissionPolicyRole`: Complete role and permission management.
|
|
@@ -299,7 +299,10 @@ console.log(claims.sub, claims.exp);
|
|
|
299
299
|
|
|
300
300
|
## Changelog
|
|
301
301
|
|
|
302
|
-
### v1.0.
|
|
302
|
+
### v1.0.2 (Latest)
|
|
303
|
+
- Fixed `defaultVisible` type definition for `SmartList`. Consumers must add `import "@cundi/refine-xaf/dist/antd-column-ext";` to their entry file (e.g., `App.tsx`) to enable this feature.
|
|
304
|
+
|
|
305
|
+
### v1.0.1
|
|
303
306
|
- Added `generatePassword` and `validatePasswordStrength` utilities
|
|
304
307
|
- Added retry mechanism to `httpClient` (exponential backoff)
|
|
305
308
|
- Improved `SmartList` performance with `useMemo`
|
package/dist/index.d.mts
CHANGED
|
@@ -194,6 +194,199 @@ declare const keycloakService: {
|
|
|
194
194
|
logout: (idToken?: string) => void;
|
|
195
195
|
};
|
|
196
196
|
|
|
197
|
+
declare const refineXafTranslations: {
|
|
198
|
+
en: {
|
|
199
|
+
pages: {
|
|
200
|
+
login: {
|
|
201
|
+
title: string;
|
|
202
|
+
buttons: {
|
|
203
|
+
submit: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
buttons: {
|
|
208
|
+
create: string;
|
|
209
|
+
edit: string;
|
|
210
|
+
delete: string;
|
|
211
|
+
save: string;
|
|
212
|
+
cancel: string;
|
|
213
|
+
refresh: string;
|
|
214
|
+
list: string;
|
|
215
|
+
logout: string;
|
|
216
|
+
};
|
|
217
|
+
actions: {
|
|
218
|
+
create: string;
|
|
219
|
+
edit: string;
|
|
220
|
+
show: string;
|
|
221
|
+
list: string;
|
|
222
|
+
delete: string;
|
|
223
|
+
};
|
|
224
|
+
components: {
|
|
225
|
+
header: {
|
|
226
|
+
theme: {
|
|
227
|
+
light: string;
|
|
228
|
+
dark: string;
|
|
229
|
+
};
|
|
230
|
+
language: {
|
|
231
|
+
en: string;
|
|
232
|
+
"zh-TW": string;
|
|
233
|
+
};
|
|
234
|
+
menu: {
|
|
235
|
+
changePhoto: string;
|
|
236
|
+
manageAccount: string;
|
|
237
|
+
changePassword: string;
|
|
238
|
+
logout: string;
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
base64Upload: {
|
|
242
|
+
upload: string;
|
|
243
|
+
};
|
|
244
|
+
relatedList: {
|
|
245
|
+
addDetail: string;
|
|
246
|
+
actions: string;
|
|
247
|
+
manageDetail: string;
|
|
248
|
+
deleteConfirm: string;
|
|
249
|
+
};
|
|
250
|
+
smartList: {
|
|
251
|
+
search: string;
|
|
252
|
+
refresh: string;
|
|
253
|
+
columns: string;
|
|
254
|
+
selectColumns: string;
|
|
255
|
+
reset: string;
|
|
256
|
+
};
|
|
257
|
+
tiptapEditor: {
|
|
258
|
+
placeholder: string;
|
|
259
|
+
textColor: string;
|
|
260
|
+
highlight: string;
|
|
261
|
+
insertTable: string;
|
|
262
|
+
deleteTable: string;
|
|
263
|
+
emoji: string;
|
|
264
|
+
addRowBefore: string;
|
|
265
|
+
addRowAfter: string;
|
|
266
|
+
deleteRow: string;
|
|
267
|
+
addColumnBefore: string;
|
|
268
|
+
addColumnAfter: string;
|
|
269
|
+
deleteColumn: string;
|
|
270
|
+
math: string;
|
|
271
|
+
youtube: string;
|
|
272
|
+
enterYoutubeUrl: string;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
common: {
|
|
276
|
+
actions: {
|
|
277
|
+
create: string;
|
|
278
|
+
edit: string;
|
|
279
|
+
delete: string;
|
|
280
|
+
save: string;
|
|
281
|
+
cancel: string;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
sider: {
|
|
285
|
+
dashboard: string;
|
|
286
|
+
dataTypeExamples: string;
|
|
287
|
+
tiptapExamples: string;
|
|
288
|
+
users: string;
|
|
289
|
+
roles: string;
|
|
290
|
+
settings: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
"zh-TW": {
|
|
294
|
+
pages: {
|
|
295
|
+
login: {
|
|
296
|
+
title: string;
|
|
297
|
+
buttons: {
|
|
298
|
+
submit: string;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
buttons: {
|
|
303
|
+
create: string;
|
|
304
|
+
edit: string;
|
|
305
|
+
delete: string;
|
|
306
|
+
save: string;
|
|
307
|
+
cancel: string;
|
|
308
|
+
refresh: string;
|
|
309
|
+
list: string;
|
|
310
|
+
logout: string;
|
|
311
|
+
};
|
|
312
|
+
actions: {
|
|
313
|
+
create: string;
|
|
314
|
+
edit: string;
|
|
315
|
+
show: string;
|
|
316
|
+
list: string;
|
|
317
|
+
delete: string;
|
|
318
|
+
};
|
|
319
|
+
components: {
|
|
320
|
+
header: {
|
|
321
|
+
theme: {
|
|
322
|
+
light: string;
|
|
323
|
+
dark: string;
|
|
324
|
+
};
|
|
325
|
+
language: {
|
|
326
|
+
en: string;
|
|
327
|
+
"zh-TW": string;
|
|
328
|
+
};
|
|
329
|
+
menu: {
|
|
330
|
+
changePhoto: string;
|
|
331
|
+
manageAccount: string;
|
|
332
|
+
changePassword: string;
|
|
333
|
+
logout: string;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
base64Upload: {
|
|
337
|
+
upload: string;
|
|
338
|
+
};
|
|
339
|
+
relatedList: {
|
|
340
|
+
addDetail: string;
|
|
341
|
+
actions: string;
|
|
342
|
+
manageDetail: string;
|
|
343
|
+
deleteConfirm: string;
|
|
344
|
+
};
|
|
345
|
+
smartList: {
|
|
346
|
+
search: string;
|
|
347
|
+
refresh: string;
|
|
348
|
+
columns: string;
|
|
349
|
+
selectColumns: string;
|
|
350
|
+
reset: string;
|
|
351
|
+
};
|
|
352
|
+
tiptapEditor: {
|
|
353
|
+
placeholder: string;
|
|
354
|
+
textColor: string;
|
|
355
|
+
highlight: string;
|
|
356
|
+
insertTable: string;
|
|
357
|
+
deleteTable: string;
|
|
358
|
+
emoji: string;
|
|
359
|
+
addRowBefore: string;
|
|
360
|
+
addRowAfter: string;
|
|
361
|
+
deleteRow: string;
|
|
362
|
+
addColumnBefore: string;
|
|
363
|
+
addColumnAfter: string;
|
|
364
|
+
deleteColumn: string;
|
|
365
|
+
math: string;
|
|
366
|
+
youtube: string;
|
|
367
|
+
enterYoutubeUrl: string;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
common: {
|
|
371
|
+
actions: {
|
|
372
|
+
create: string;
|
|
373
|
+
edit: string;
|
|
374
|
+
delete: string;
|
|
375
|
+
save: string;
|
|
376
|
+
cancel: string;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
sider: {
|
|
380
|
+
dashboard: string;
|
|
381
|
+
dataTypeExamples: string;
|
|
382
|
+
tiptapExamples: string;
|
|
383
|
+
users: string;
|
|
384
|
+
roles: string;
|
|
385
|
+
settings: string;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
|
|
197
390
|
declare const Header: React.FC;
|
|
198
391
|
|
|
199
392
|
interface SmartListProps {
|
|
@@ -275,4 +468,4 @@ interface IModelType {
|
|
|
275
468
|
}
|
|
276
469
|
declare const useModelTypes: () => _tanstack_react_query.UseQueryResult<IModelType[], Error>;
|
|
277
470
|
|
|
278
|
-
export { ApplicationUserCreate, ApplicationUserEdit, ApplicationUserList, AuthCallback, Base64Upload, ColorModeContext, ColorModeContextProvider, Header, HttpError, type IApplicationUser, type IJwtClaims, type IModelType, type IPermissionPolicyRole, type IPermissionPolicyTypePermissionObject, type IXafEntity, KeycloakLoginPage, type KeycloakTokenResponse, LoginPage, RelatedList, type RequestOptions, RoleCreate, RoleEdit, RoleList, SecurityPermissionPolicy, SecurityPermissionState, SmartList, TOKEN_KEY, TiptapEditor, type TiptapEditorProps, authProvider, authService, dataProvider, generatePassword, getBaseUrl, httpClient, keycloakService, parseJwt, useColorMode, useModelTypes, validatePasswordStrength };
|
|
471
|
+
export { ApplicationUserCreate, ApplicationUserEdit, ApplicationUserList, AuthCallback, Base64Upload, ColorModeContext, ColorModeContextProvider, Header, HttpError, type IApplicationUser, type IJwtClaims, type IModelType, type IPermissionPolicyRole, type IPermissionPolicyTypePermissionObject, type IXafEntity, KeycloakLoginPage, type KeycloakTokenResponse, LoginPage, RelatedList, type RequestOptions, RoleCreate, RoleEdit, RoleList, SecurityPermissionPolicy, SecurityPermissionState, SmartList, TOKEN_KEY, TiptapEditor, type TiptapEditorProps, authProvider, authService, dataProvider, generatePassword, getBaseUrl, httpClient, keycloakService, parseJwt, refineXafTranslations, useColorMode, useModelTypes, validatePasswordStrength };
|
package/dist/index.d.ts
CHANGED
|
@@ -194,6 +194,199 @@ declare const keycloakService: {
|
|
|
194
194
|
logout: (idToken?: string) => void;
|
|
195
195
|
};
|
|
196
196
|
|
|
197
|
+
declare const refineXafTranslations: {
|
|
198
|
+
en: {
|
|
199
|
+
pages: {
|
|
200
|
+
login: {
|
|
201
|
+
title: string;
|
|
202
|
+
buttons: {
|
|
203
|
+
submit: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
buttons: {
|
|
208
|
+
create: string;
|
|
209
|
+
edit: string;
|
|
210
|
+
delete: string;
|
|
211
|
+
save: string;
|
|
212
|
+
cancel: string;
|
|
213
|
+
refresh: string;
|
|
214
|
+
list: string;
|
|
215
|
+
logout: string;
|
|
216
|
+
};
|
|
217
|
+
actions: {
|
|
218
|
+
create: string;
|
|
219
|
+
edit: string;
|
|
220
|
+
show: string;
|
|
221
|
+
list: string;
|
|
222
|
+
delete: string;
|
|
223
|
+
};
|
|
224
|
+
components: {
|
|
225
|
+
header: {
|
|
226
|
+
theme: {
|
|
227
|
+
light: string;
|
|
228
|
+
dark: string;
|
|
229
|
+
};
|
|
230
|
+
language: {
|
|
231
|
+
en: string;
|
|
232
|
+
"zh-TW": string;
|
|
233
|
+
};
|
|
234
|
+
menu: {
|
|
235
|
+
changePhoto: string;
|
|
236
|
+
manageAccount: string;
|
|
237
|
+
changePassword: string;
|
|
238
|
+
logout: string;
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
base64Upload: {
|
|
242
|
+
upload: string;
|
|
243
|
+
};
|
|
244
|
+
relatedList: {
|
|
245
|
+
addDetail: string;
|
|
246
|
+
actions: string;
|
|
247
|
+
manageDetail: string;
|
|
248
|
+
deleteConfirm: string;
|
|
249
|
+
};
|
|
250
|
+
smartList: {
|
|
251
|
+
search: string;
|
|
252
|
+
refresh: string;
|
|
253
|
+
columns: string;
|
|
254
|
+
selectColumns: string;
|
|
255
|
+
reset: string;
|
|
256
|
+
};
|
|
257
|
+
tiptapEditor: {
|
|
258
|
+
placeholder: string;
|
|
259
|
+
textColor: string;
|
|
260
|
+
highlight: string;
|
|
261
|
+
insertTable: string;
|
|
262
|
+
deleteTable: string;
|
|
263
|
+
emoji: string;
|
|
264
|
+
addRowBefore: string;
|
|
265
|
+
addRowAfter: string;
|
|
266
|
+
deleteRow: string;
|
|
267
|
+
addColumnBefore: string;
|
|
268
|
+
addColumnAfter: string;
|
|
269
|
+
deleteColumn: string;
|
|
270
|
+
math: string;
|
|
271
|
+
youtube: string;
|
|
272
|
+
enterYoutubeUrl: string;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
common: {
|
|
276
|
+
actions: {
|
|
277
|
+
create: string;
|
|
278
|
+
edit: string;
|
|
279
|
+
delete: string;
|
|
280
|
+
save: string;
|
|
281
|
+
cancel: string;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
sider: {
|
|
285
|
+
dashboard: string;
|
|
286
|
+
dataTypeExamples: string;
|
|
287
|
+
tiptapExamples: string;
|
|
288
|
+
users: string;
|
|
289
|
+
roles: string;
|
|
290
|
+
settings: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
"zh-TW": {
|
|
294
|
+
pages: {
|
|
295
|
+
login: {
|
|
296
|
+
title: string;
|
|
297
|
+
buttons: {
|
|
298
|
+
submit: string;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
buttons: {
|
|
303
|
+
create: string;
|
|
304
|
+
edit: string;
|
|
305
|
+
delete: string;
|
|
306
|
+
save: string;
|
|
307
|
+
cancel: string;
|
|
308
|
+
refresh: string;
|
|
309
|
+
list: string;
|
|
310
|
+
logout: string;
|
|
311
|
+
};
|
|
312
|
+
actions: {
|
|
313
|
+
create: string;
|
|
314
|
+
edit: string;
|
|
315
|
+
show: string;
|
|
316
|
+
list: string;
|
|
317
|
+
delete: string;
|
|
318
|
+
};
|
|
319
|
+
components: {
|
|
320
|
+
header: {
|
|
321
|
+
theme: {
|
|
322
|
+
light: string;
|
|
323
|
+
dark: string;
|
|
324
|
+
};
|
|
325
|
+
language: {
|
|
326
|
+
en: string;
|
|
327
|
+
"zh-TW": string;
|
|
328
|
+
};
|
|
329
|
+
menu: {
|
|
330
|
+
changePhoto: string;
|
|
331
|
+
manageAccount: string;
|
|
332
|
+
changePassword: string;
|
|
333
|
+
logout: string;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
base64Upload: {
|
|
337
|
+
upload: string;
|
|
338
|
+
};
|
|
339
|
+
relatedList: {
|
|
340
|
+
addDetail: string;
|
|
341
|
+
actions: string;
|
|
342
|
+
manageDetail: string;
|
|
343
|
+
deleteConfirm: string;
|
|
344
|
+
};
|
|
345
|
+
smartList: {
|
|
346
|
+
search: string;
|
|
347
|
+
refresh: string;
|
|
348
|
+
columns: string;
|
|
349
|
+
selectColumns: string;
|
|
350
|
+
reset: string;
|
|
351
|
+
};
|
|
352
|
+
tiptapEditor: {
|
|
353
|
+
placeholder: string;
|
|
354
|
+
textColor: string;
|
|
355
|
+
highlight: string;
|
|
356
|
+
insertTable: string;
|
|
357
|
+
deleteTable: string;
|
|
358
|
+
emoji: string;
|
|
359
|
+
addRowBefore: string;
|
|
360
|
+
addRowAfter: string;
|
|
361
|
+
deleteRow: string;
|
|
362
|
+
addColumnBefore: string;
|
|
363
|
+
addColumnAfter: string;
|
|
364
|
+
deleteColumn: string;
|
|
365
|
+
math: string;
|
|
366
|
+
youtube: string;
|
|
367
|
+
enterYoutubeUrl: string;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
common: {
|
|
371
|
+
actions: {
|
|
372
|
+
create: string;
|
|
373
|
+
edit: string;
|
|
374
|
+
delete: string;
|
|
375
|
+
save: string;
|
|
376
|
+
cancel: string;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
sider: {
|
|
380
|
+
dashboard: string;
|
|
381
|
+
dataTypeExamples: string;
|
|
382
|
+
tiptapExamples: string;
|
|
383
|
+
users: string;
|
|
384
|
+
roles: string;
|
|
385
|
+
settings: string;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
|
|
197
390
|
declare const Header: React.FC;
|
|
198
391
|
|
|
199
392
|
interface SmartListProps {
|
|
@@ -275,4 +468,4 @@ interface IModelType {
|
|
|
275
468
|
}
|
|
276
469
|
declare const useModelTypes: () => _tanstack_react_query.UseQueryResult<IModelType[], Error>;
|
|
277
470
|
|
|
278
|
-
export { ApplicationUserCreate, ApplicationUserEdit, ApplicationUserList, AuthCallback, Base64Upload, ColorModeContext, ColorModeContextProvider, Header, HttpError, type IApplicationUser, type IJwtClaims, type IModelType, type IPermissionPolicyRole, type IPermissionPolicyTypePermissionObject, type IXafEntity, KeycloakLoginPage, type KeycloakTokenResponse, LoginPage, RelatedList, type RequestOptions, RoleCreate, RoleEdit, RoleList, SecurityPermissionPolicy, SecurityPermissionState, SmartList, TOKEN_KEY, TiptapEditor, type TiptapEditorProps, authProvider, authService, dataProvider, generatePassword, getBaseUrl, httpClient, keycloakService, parseJwt, useColorMode, useModelTypes, validatePasswordStrength };
|
|
471
|
+
export { ApplicationUserCreate, ApplicationUserEdit, ApplicationUserList, AuthCallback, Base64Upload, ColorModeContext, ColorModeContextProvider, Header, HttpError, type IApplicationUser, type IJwtClaims, type IModelType, type IPermissionPolicyRole, type IPermissionPolicyTypePermissionObject, type IXafEntity, KeycloakLoginPage, type KeycloakTokenResponse, LoginPage, RelatedList, type RequestOptions, RoleCreate, RoleEdit, RoleList, SecurityPermissionPolicy, SecurityPermissionState, SmartList, TOKEN_KEY, TiptapEditor, type TiptapEditorProps, authProvider, authService, dataProvider, generatePassword, getBaseUrl, httpClient, keycloakService, parseJwt, refineXafTranslations, useColorMode, useModelTypes, validatePasswordStrength };
|