@abpjs/setting-management 2.2.0 → 2.7.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/dist/index.d.mts CHANGED
@@ -3,6 +3,40 @@ export { SettingTab } from '@abpjs/theme-shared';
3
3
  import { ABP } from '@abpjs/core';
4
4
  import React from 'react';
5
5
 
6
+ /**
7
+ * Component keys for the Setting Management module.
8
+ * These keys are used for component replacement/customization.
9
+ * @since 2.7.0
10
+ */
11
+ declare const eSettingManagementComponents: {
12
+ /**
13
+ * Key for the SettingManagement component.
14
+ * Use this to replace the default SettingLayout with a custom implementation.
15
+ */
16
+ readonly SettingManagement: "SettingManagement.SettingManagementComponent";
17
+ };
18
+ /**
19
+ * Type for setting management component key values
20
+ */
21
+ type SettingManagementComponentKey = (typeof eSettingManagementComponents)[keyof typeof eSettingManagementComponents];
22
+
23
+ /**
24
+ * Route name keys for the Setting Management module.
25
+ * These keys are used for route localization and identification.
26
+ * @since 2.7.0
27
+ */
28
+ declare const eSettingManagementRouteNames: {
29
+ /**
30
+ * Settings route name key.
31
+ * Used for the main settings management route.
32
+ */
33
+ readonly Settings: "AbpSettingManagement::Settings";
34
+ };
35
+ /**
36
+ * Type for setting management route name key values
37
+ */
38
+ type SettingManagementRouteNameKey = (typeof eSettingManagementRouteNames)[keyof typeof eSettingManagementRouteNames];
39
+
6
40
  /**
7
41
  * Setting Management Models
8
42
  * Translated from @abp/ng.setting-management v1.1.0
@@ -265,4 +299,4 @@ interface SettingLayoutProps {
265
299
  */
266
300
  declare function SettingLayout({ children, onTabSelect, className, }: SettingLayoutProps): React.ReactElement;
267
301
 
268
- export { SETTING_MANAGEMENT_ROUTES, SettingLayout, type SettingLayoutProps, SettingManagement, SettingManagementService, SettingManagementStateService, type UseSettingManagementReturn, getSettingManagementService, getSettingManagementStateService, useSettingManagement };
302
+ export { SETTING_MANAGEMENT_ROUTES, SettingLayout, type SettingLayoutProps, SettingManagement, type SettingManagementComponentKey, type SettingManagementRouteNameKey, SettingManagementService, SettingManagementStateService, type UseSettingManagementReturn, eSettingManagementComponents, eSettingManagementRouteNames, getSettingManagementService, getSettingManagementStateService, useSettingManagement };
package/dist/index.d.ts CHANGED
@@ -3,6 +3,40 @@ export { SettingTab } from '@abpjs/theme-shared';
3
3
  import { ABP } from '@abpjs/core';
4
4
  import React from 'react';
5
5
 
6
+ /**
7
+ * Component keys for the Setting Management module.
8
+ * These keys are used for component replacement/customization.
9
+ * @since 2.7.0
10
+ */
11
+ declare const eSettingManagementComponents: {
12
+ /**
13
+ * Key for the SettingManagement component.
14
+ * Use this to replace the default SettingLayout with a custom implementation.
15
+ */
16
+ readonly SettingManagement: "SettingManagement.SettingManagementComponent";
17
+ };
18
+ /**
19
+ * Type for setting management component key values
20
+ */
21
+ type SettingManagementComponentKey = (typeof eSettingManagementComponents)[keyof typeof eSettingManagementComponents];
22
+
23
+ /**
24
+ * Route name keys for the Setting Management module.
25
+ * These keys are used for route localization and identification.
26
+ * @since 2.7.0
27
+ */
28
+ declare const eSettingManagementRouteNames: {
29
+ /**
30
+ * Settings route name key.
31
+ * Used for the main settings management route.
32
+ */
33
+ readonly Settings: "AbpSettingManagement::Settings";
34
+ };
35
+ /**
36
+ * Type for setting management route name key values
37
+ */
38
+ type SettingManagementRouteNameKey = (typeof eSettingManagementRouteNames)[keyof typeof eSettingManagementRouteNames];
39
+
6
40
  /**
7
41
  * Setting Management Models
8
42
  * Translated from @abp/ng.setting-management v1.1.0
@@ -265,4 +299,4 @@ interface SettingLayoutProps {
265
299
  */
266
300
  declare function SettingLayout({ children, onTabSelect, className, }: SettingLayoutProps): React.ReactElement;
267
301
 
268
- export { SETTING_MANAGEMENT_ROUTES, SettingLayout, type SettingLayoutProps, SettingManagement, SettingManagementService, SettingManagementStateService, type UseSettingManagementReturn, getSettingManagementService, getSettingManagementStateService, useSettingManagement };
302
+ export { SETTING_MANAGEMENT_ROUTES, SettingLayout, type SettingLayoutProps, SettingManagement, type SettingManagementComponentKey, type SettingManagementRouteNameKey, SettingManagementService, SettingManagementStateService, type UseSettingManagementReturn, eSettingManagementComponents, eSettingManagementRouteNames, getSettingManagementService, getSettingManagementStateService, useSettingManagement };
package/dist/index.js CHANGED
@@ -24,12 +24,32 @@ __export(index_exports, {
24
24
  SettingLayout: () => SettingLayout,
25
25
  SettingManagementService: () => SettingManagementService,
26
26
  SettingManagementStateService: () => SettingManagementStateService,
27
+ eSettingManagementComponents: () => eSettingManagementComponents,
28
+ eSettingManagementRouteNames: () => eSettingManagementRouteNames,
27
29
  getSettingManagementService: () => getSettingManagementService,
28
30
  getSettingManagementStateService: () => getSettingManagementStateService,
29
31
  useSettingManagement: () => useSettingManagement
30
32
  });
31
33
  module.exports = __toCommonJS(index_exports);
32
34
 
35
+ // src/enums/components.ts
36
+ var eSettingManagementComponents = {
37
+ /**
38
+ * Key for the SettingManagement component.
39
+ * Use this to replace the default SettingLayout with a custom implementation.
40
+ */
41
+ SettingManagement: "SettingManagement.SettingManagementComponent"
42
+ };
43
+
44
+ // src/enums/route-names.ts
45
+ var eSettingManagementRouteNames = {
46
+ /**
47
+ * Settings route name key.
48
+ * Used for the main settings management route.
49
+ */
50
+ Settings: "AbpSettingManagement::Settings"
51
+ };
52
+
33
53
  // src/constants/routes.ts
34
54
  var SETTING_MANAGEMENT_ROUTES = {
35
55
  routes: [
@@ -381,6 +401,8 @@ var styles = {
381
401
  SettingLayout,
382
402
  SettingManagementService,
383
403
  SettingManagementStateService,
404
+ eSettingManagementComponents,
405
+ eSettingManagementRouteNames,
384
406
  getSettingManagementService,
385
407
  getSettingManagementStateService,
386
408
  useSettingManagement
package/dist/index.mjs CHANGED
@@ -1,3 +1,21 @@
1
+ // src/enums/components.ts
2
+ var eSettingManagementComponents = {
3
+ /**
4
+ * Key for the SettingManagement component.
5
+ * Use this to replace the default SettingLayout with a custom implementation.
6
+ */
7
+ SettingManagement: "SettingManagement.SettingManagementComponent"
8
+ };
9
+
10
+ // src/enums/route-names.ts
11
+ var eSettingManagementRouteNames = {
12
+ /**
13
+ * Settings route name key.
14
+ * Used for the main settings management route.
15
+ */
16
+ Settings: "AbpSettingManagement::Settings"
17
+ };
18
+
1
19
  // src/constants/routes.ts
2
20
  var SETTING_MANAGEMENT_ROUTES = {
3
21
  routes: [
@@ -348,6 +366,8 @@ export {
348
366
  SettingLayout,
349
367
  SettingManagementService,
350
368
  SettingManagementStateService,
369
+ eSettingManagementComponents,
370
+ eSettingManagementRouteNames,
351
371
  getSettingManagementService,
352
372
  getSettingManagementStateService,
353
373
  useSettingManagement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abpjs/setting-management",
3
- "version": "2.2.0",
3
+ "version": "2.7.0",
4
4
  "description": "ABP Framework setting-management components for React - translated from @abp/ng.setting-management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -25,12 +25,12 @@
25
25
  "dependencies": {
26
26
  "@chakra-ui/react": "^3.2.0",
27
27
  "@emotion/react": "^11.11.0",
28
- "@abpjs/core": "2.2.0",
29
- "@abpjs/theme-shared": "2.2.0",
30
- "@abpjs/permission-management": "2.2.0"
28
+ "@abpjs/core": "2.7.0",
29
+ "@abpjs/theme-shared": "2.7.0",
30
+ "@abpjs/permission-management": "2.7.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@abp/ng.setting-management": "2.2.0",
33
+ "@abp/ng.setting-management": "2.7.0",
34
34
  "@testing-library/jest-dom": "^6.9.1",
35
35
  "@testing-library/react": "^14.0.0",
36
36
  "@testing-library/user-event": "^14.6.1",