@abpjs/tenant-management 2.4.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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -62,4 +62,7 @@ export interface TenantManagementModalProps {
62
62
  * ```
63
63
  */
64
64
  export declare function TenantManagementModal({ visible, onVisibleChange, tenantId, initialView, onSave, onVisibleFeaturesChange, }: TenantManagementModalProps): React.ReactElement;
65
+ export declare namespace TenantManagementModal {
66
+ var componentKey: "TenantManagement.TenantsComponent";
67
+ }
65
68
  export default TenantManagementModal;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Component keys for the Tenant Management module.
3
+ * These keys are used for component replacement/customization.
4
+ * @since 2.7.0
5
+ */
6
+ export declare const eTenantManagementComponents: {
7
+ /**
8
+ * Key for the Tenants component.
9
+ * Use this to replace the default TenantsComponent with a custom implementation.
10
+ */
11
+ readonly Tenants: "TenantManagement.TenantsComponent";
12
+ };
13
+ /**
14
+ * Type for tenant management component key values
15
+ */
16
+ export type TenantManagementComponentKey = (typeof eTenantManagementComponents)[keyof typeof eTenantManagementComponents];
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Tenant Management module enums
3
+ * @since 2.7.0
4
+ */
5
+ export * from './components';
6
+ export * from './route-names';
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Route name keys for the Tenant Management module.
3
+ * These keys are used for route localization and identification.
4
+ * @since 2.7.0
5
+ */
6
+ export declare const eTenantManagementRouteNames: {
7
+ /**
8
+ * Administration menu route name key.
9
+ */
10
+ readonly Administration: "AbpUiNavigation::Menu:Administration";
11
+ /**
12
+ * Tenant Management menu route name key.
13
+ */
14
+ readonly TenantManagement: "AbpTenantManagement::Menu:TenantManagement";
15
+ /**
16
+ * Tenants route name key.
17
+ */
18
+ readonly Tenants: "AbpTenantManagement::Tenants";
19
+ };
20
+ /**
21
+ * Type for tenant management route name key values
22
+ */
23
+ export type TenantManagementRouteNameKey = (typeof eTenantManagementRouteNames)[keyof typeof eTenantManagementRouteNames];
package/dist/index.d.ts CHANGED
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * @abpjs/tenant-management
3
3
  * ABP Framework Tenant Management module for React
4
- * Translated from @abp/ng.tenant-management v2.4.0
4
+ * Translated from @abp/ng.tenant-management v2.7.0
5
+ *
6
+ * Changes in v2.7.0:
7
+ * - Added eTenantManagementComponents enum for component replacement keys
8
+ * - Added eTenantManagementRouteNames enum for route name keys
9
+ * - Added componentKey static property to TenantManagementModal
5
10
  *
6
11
  * Changes in v2.4.0:
7
12
  * - Added apiName property to TenantManagementService (defaults to 'default')
@@ -31,6 +36,7 @@
31
36
  * - Updated onSearch signature: (value: any) -> (value: string)
32
37
  * - Updated onPageChange signature: (data: any) -> (page: number)
33
38
  */
39
+ export * from './enums';
34
40
  export * from './models';
35
41
  export * from './services';
36
42
  export * from './hooks';
package/dist/index.js CHANGED
@@ -25,11 +25,38 @@ __export(index_exports, {
25
25
  TenantManagementModal: () => TenantManagementModal,
26
26
  TenantManagementService: () => TenantManagementService,
27
27
  TenantManagementStateService: () => TenantManagementStateService,
28
+ eTenantManagementComponents: () => eTenantManagementComponents,
29
+ eTenantManagementRouteNames: () => eTenantManagementRouteNames,
28
30
  getTenantManagementStateService: () => getTenantManagementStateService,
29
31
  useTenantManagement: () => useTenantManagement
30
32
  });
31
33
  module.exports = __toCommonJS(index_exports);
32
34
 
35
+ // src/enums/components.ts
36
+ var eTenantManagementComponents = {
37
+ /**
38
+ * Key for the Tenants component.
39
+ * Use this to replace the default TenantsComponent with a custom implementation.
40
+ */
41
+ Tenants: "TenantManagement.TenantsComponent"
42
+ };
43
+
44
+ // src/enums/route-names.ts
45
+ var eTenantManagementRouteNames = {
46
+ /**
47
+ * Administration menu route name key.
48
+ */
49
+ Administration: "AbpUiNavigation::Menu:Administration",
50
+ /**
51
+ * Tenant Management menu route name key.
52
+ */
53
+ TenantManagement: "AbpTenantManagement::Menu:TenantManagement",
54
+ /**
55
+ * Tenants route name key.
56
+ */
57
+ Tenants: "AbpTenantManagement::Tenants"
58
+ };
59
+
33
60
  // src/services/tenant-management.service.ts
34
61
  var TenantManagementService = class {
35
62
  constructor(rest) {
@@ -898,6 +925,7 @@ function TenantManagementModal({
898
925
  }
899
926
  );
900
927
  }
928
+ TenantManagementModal.componentKey = eTenantManagementComponents.Tenants;
901
929
  // Annotate the CommonJS export names for ESM import in node:
902
930
  0 && (module.exports = {
903
931
  TENANT_MANAGEMENT_POLICIES,
@@ -905,6 +933,8 @@ function TenantManagementModal({
905
933
  TenantManagementModal,
906
934
  TenantManagementService,
907
935
  TenantManagementStateService,
936
+ eTenantManagementComponents,
937
+ eTenantManagementRouteNames,
908
938
  getTenantManagementStateService,
909
939
  useTenantManagement
910
940
  });
package/dist/index.mjs CHANGED
@@ -1,3 +1,28 @@
1
+ // src/enums/components.ts
2
+ var eTenantManagementComponents = {
3
+ /**
4
+ * Key for the Tenants component.
5
+ * Use this to replace the default TenantsComponent with a custom implementation.
6
+ */
7
+ Tenants: "TenantManagement.TenantsComponent"
8
+ };
9
+
10
+ // src/enums/route-names.ts
11
+ var eTenantManagementRouteNames = {
12
+ /**
13
+ * Administration menu route name key.
14
+ */
15
+ Administration: "AbpUiNavigation::Menu:Administration",
16
+ /**
17
+ * Tenant Management menu route name key.
18
+ */
19
+ TenantManagement: "AbpTenantManagement::Menu:TenantManagement",
20
+ /**
21
+ * Tenants route name key.
22
+ */
23
+ Tenants: "AbpTenantManagement::Tenants"
24
+ };
25
+
1
26
  // src/services/tenant-management.service.ts
2
27
  var TenantManagementService = class {
3
28
  constructor(rest) {
@@ -872,12 +897,15 @@ function TenantManagementModal({
872
897
  }
873
898
  );
874
899
  }
900
+ TenantManagementModal.componentKey = eTenantManagementComponents.Tenants;
875
901
  export {
876
902
  TENANT_MANAGEMENT_POLICIES,
877
903
  TENANT_MANAGEMENT_ROUTE_PATHS,
878
904
  TenantManagementModal,
879
905
  TenantManagementService,
880
906
  TenantManagementStateService,
907
+ eTenantManagementComponents,
908
+ eTenantManagementRouteNames,
881
909
  getTenantManagementStateService,
882
910
  useTenantManagement
883
911
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abpjs/tenant-management",
3
- "version": "2.4.0",
3
+ "version": "2.7.0",
4
4
  "description": "ABP Framework tenant-management components for React - translated from @abp/ng.tenant-management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -23,11 +23,11 @@
23
23
  "dependencies": {
24
24
  "@chakra-ui/react": "^3.2.0",
25
25
  "@emotion/react": "^11.11.0",
26
- "@abpjs/core": "2.4.0",
27
- "@abpjs/theme-shared": "2.4.0"
26
+ "@abpjs/core": "2.7.0",
27
+ "@abpjs/theme-shared": "2.7.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@abp/ng.tenant-management": "2.4.0",
30
+ "@abp/ng.tenant-management": "2.7.0",
31
31
  "@testing-library/jest-dom": "^6.4.0",
32
32
  "@testing-library/react": "^14.2.0",
33
33
  "@types/react": "^18.2.0",