identity-admin 1.24.4 → 1.25.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.
@@ -53,6 +53,9 @@ class ActionsGenerator {
53
53
  extraActions.forEach((action) => {
54
54
  action.keys = action.isVisible ? Object.keys(action.isVisible) : [];
55
55
  action.name = (0, i18n_1.__)({ phrase: action.name, locale: i18n_1.default.getLocale() });
56
+ action.guardTitle = action.guardTitle ? (0, i18n_1.__)({ phrase: action.guardTitle, locale: i18n_1.default.getLocale() }) : undefined;
57
+ action.guard = action.guard ? (0, i18n_1.__)({ phrase: action.guard, locale: i18n_1.default.getLocale() }) : undefined;
58
+ action.message = action.message ? (0, i18n_1.__)({ phrase: action.message, locale: i18n_1.default.getLocale() }) : undefined;
56
59
  action.handlerStrategy = action.handlerStrategy
57
60
  ? action.handlerStrategy
58
61
  : helpers_1.HandlerStrategy.NORMAL;
@@ -304,7 +304,7 @@ interface ActionOptions {
304
304
  */
305
305
  extras?: ExtraAction[];
306
306
  }
307
- interface ExtraAction {
307
+ export interface ExtraAction {
308
308
  /**
309
309
  * Key of this action.
310
310
  * Should be unique in the same resource file
@@ -492,6 +492,21 @@ export interface IResourceFile {
492
492
  * Override the populated object
493
493
  */
494
494
  populate?: IPopulate;
495
+ /**
496
+ * Disable the display of next and previous buttons in the show page
497
+ * @default false
498
+ */
499
+ disableNextPreviousButtonsInShowPage?: boolean;
500
+ /**
501
+ * Disable the display of next and previous buttons in the edit page
502
+ * @default false
503
+ */
504
+ disableNextPreviousButtonsInEditPage?: boolean;
505
+ /**
506
+ * The option to display the edit page instead of the show page
507
+ * @default false
508
+ */
509
+ displayEditPageInShowPage?: boolean;
495
510
  };
496
511
  /**
497
512
  * Array of properties that should be appeared in the list action.
@@ -25,6 +25,9 @@ interface IMainProperty {
25
25
  model: {
26
26
  [key: string]: any;
27
27
  };
28
+ disableNextPreviousButtonsInShowPage?: boolean;
29
+ disableNextPreviousButtonsInEditPage?: boolean;
30
+ displayEditPageInShowPage?: boolean;
28
31
  }
29
32
  interface IParent {
30
33
  icon: string;
@@ -51,22 +54,8 @@ interface IFilter {
51
54
  };
52
55
  }
53
56
  interface IAction {
54
- bulkDelete: {
55
- cancelDeleteOption: string;
56
- confirmDeleteOption: string;
57
- confirmationMessageBody: string;
58
- confirmationMessageTitle: string;
59
- isAccessible: boolean;
60
- value: string;
61
- };
62
- delete: {
63
- cancelDeleteOption: string;
64
- confirmDeleteOption: string;
65
- confirmationMessageBody: string;
66
- confirmationMessageTitle: string;
67
- isAccessible: boolean;
68
- value: string;
69
- };
57
+ bulkDelete: IDeleteActionMin;
58
+ delete: IDeleteActionMin;
70
59
  edit: IActionMin;
71
60
  new: IActionMin;
72
61
  show: IActionMin;
@@ -89,11 +78,18 @@ interface IExtarAction {
89
78
  name: string;
90
79
  severity?: Severity;
91
80
  message?: string;
81
+ guardTitle?: string;
92
82
  }
93
83
  interface IActionMin {
94
84
  isAccessible: boolean;
95
85
  value?: string;
96
86
  }
97
- declare type orderTypes = 'asc' | 'desc';
98
- declare type Severity = 'success' | 'info' | 'warning' | 'error';
87
+ interface IDeleteActionMin extends IActionMin {
88
+ cancelDeleteOption: string;
89
+ confirmDeleteOption: string;
90
+ confirmationMessageBody: string;
91
+ confirmationMessageTitle: string;
92
+ }
93
+ declare type orderTypes = "asc" | "desc";
94
+ declare type Severity = "success" | "info" | "warning" | "error";
99
95
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin",
3
- "version": "1.24.4",
3
+ "version": "1.25.0",
4
4
  "description": "",
5
5
  "main": "lib/Dashboard.js",
6
6
  "types": "lib/Dashbord.d.ts",