cloud-ide-core 2.0.135 → 2.0.136

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/index.d.ts CHANGED
@@ -61,7 +61,7 @@ declare class MenuListComponent implements OnInit {
61
61
  quickAddForm: _angular_forms.FormGroup<{
62
62
  syme_title: _angular_forms.FormControl<string>;
63
63
  syme_desc: _angular_forms.FormControl<string>;
64
- syme_type: _angular_forms.FormControl<"title" | "module" | "section" | "menu">;
64
+ syme_type: _angular_forms.FormControl<"module" | "section" | "menu" | "title">;
65
65
  syme_id_syme: _angular_forms.FormControl<string>;
66
66
  syme_path: _angular_forms.FormControl<string>;
67
67
  syme_icon: _angular_forms.FormControl<string>;
@@ -1821,6 +1821,14 @@ declare class CideCorePageControlsService {
1821
1821
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideCorePageControlsService>;
1822
1822
  }
1823
1823
 
1824
+ interface EntityMappingForCopy {
1825
+ entityId: string;
1826
+ entityName: string;
1827
+ entityCode?: string;
1828
+ roleId?: string;
1829
+ roleName?: string;
1830
+ }
1831
+
1824
1832
  interface CoreUserRoleExceptionsWithTracking extends CoreUserRoleExceptions {
1825
1833
  _isUserAdded?: boolean;
1826
1834
  _isUserRemoved?: boolean;
@@ -1856,6 +1864,7 @@ declare class CideCoreUserCreateComponent {
1856
1864
  userId: _angular_core.WritableSignal<string>;
1857
1865
  isEditMode: _angular_core.WritableSignal<boolean>;
1858
1866
  showPasswordFields: _angular_core.WritableSignal<boolean>;
1867
+ isViewingOwnProfile: _angular_core.Signal<boolean | "" | undefined>;
1859
1868
  userType: _angular_core.WritableSignal<string | null>;
1860
1869
  typeSpecificId: _angular_core.WritableSignal<string | null>;
1861
1870
  userTypeOptions: {
@@ -1878,6 +1887,7 @@ declare class CideCoreUserCreateComponent {
1878
1887
  [mappingIndex: string]: MenuWithPermissions[];
1879
1888
  }>;
1880
1889
  allUserTypeMappings: _angular_core.WritableSignal<CoreUserTypeMapping[]>;
1890
+ targetMappingIndexForCopy: _angular_core.WritableSignal<number | null>;
1881
1891
  private rolePermissionsCache;
1882
1892
  private loadedMappingData;
1883
1893
  selectedEntityForMapping: _angular_core.WritableSignal<string | null>;
@@ -2123,6 +2133,25 @@ declare class CideCoreUserCreateComponent {
2123
2133
  * Create entity mapping with pre-selected entity
2124
2134
  */
2125
2135
  addEntityMappingWithEntity(entityId: string): void;
2136
+ /**
2137
+ * Show copy role from entity drawer
2138
+ * @param targetMappingIndex Index of the mapping to copy TO
2139
+ */
2140
+ showCopyRoleFromEntityDrawer(targetMappingIndex: number): void;
2141
+ /**
2142
+ * Get available entity mappings for copying (excluding the target mapping)
2143
+ * @param excludeIndex Index of mapping to exclude
2144
+ */
2145
+ getAvailableMappingsForCopy(excludeIndex: number): EntityMappingForCopy[];
2146
+ /**
2147
+ * Copy role, department, designation, and menu rights from one entity mapping to another
2148
+ * @param sourceEntityId Entity ID of the source mapping to copy FROM
2149
+ */
2150
+ copyRoleFromEntityMapping(sourceEntityId: string): void;
2151
+ /**
2152
+ * Close copy role from entity drawer
2153
+ */
2154
+ closeCopyRoleFromEntityDrawer(): void;
2126
2155
  /**
2127
2156
  * Handle entity mapping card state change (expand/collapse)
2128
2157
  * Load data lazily when card is expanded
@@ -2337,6 +2366,10 @@ declare class CideCoreUserCreateComponent {
2337
2366
  * @param mappingIndex - Index of the entity mapping
2338
2367
  * @returns Entity ID string or undefined
2339
2368
  */
2369
+ /**
2370
+ * Get role ID from mapping by index
2371
+ */
2372
+ getRoleIdFromMapping(mappingIndex: number): string | undefined;
2340
2373
  getEntityIdFromMapping(mappingIndex: number): string | undefined;
2341
2374
  /**
2342
2375
  * Get entity name from mapping for display purposes
@@ -2845,6 +2878,12 @@ declare class CideCoreUserRoleService {
2845
2878
  * @returns Observable of the toggle response
2846
2879
  */
2847
2880
  toggleUserRoleStatus(payload: MUserRoleToggleStatusPayload): Observable<userRoleToggleStatusControllerResponse>;
2881
+ /**
2882
+ * Get roles by entity ID
2883
+ * @param entityId - Entity ID to filter roles
2884
+ * @returns Observable of user role list response
2885
+ */
2886
+ getRolesByEntity(entityId: string): Observable<userRoleControllerResponse>;
2848
2887
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreUserRoleService, never>;
2849
2888
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideCoreUserRoleService>;
2850
2889
  }
@@ -2937,7 +2976,6 @@ declare class CideCoreUserRoleListComponent implements OnInit, OnDestroy {
2937
2976
  private readonly confirmationService;
2938
2977
  private readonly rightsService;
2939
2978
  userRoleDetailsRendererTemplate: _angular_core.Signal<TemplateRef<TemplateContext<Record<string, unknown>>>>;
2940
- entityRendererTemplate: _angular_core.Signal<TemplateRef<TemplateContext<Record<string, unknown>>>>;
2941
2979
  statusRendererTemplate: _angular_core.Signal<TemplateRef<TemplateContext<Record<string, unknown>>>>;
2942
2980
  actionsDropdownRendererTemplate: _angular_core.Signal<TemplateRef<TemplateContext<Record<string, unknown>>>>;
2943
2981
  userRoles: _angular_core.WritableSignal<UserRole[]>;
@@ -3012,6 +3050,7 @@ declare class CideCoreUserRoleFormComponent implements OnInit, OnDestroy {
3012
3050
  private readonly menuService;
3013
3051
  private readonly generalMasterService;
3014
3052
  private readonly generalMasterTypeService;
3053
+ private readonly floatingContainerService;
3015
3054
  private readonly router;
3016
3055
  private readonly route;
3017
3056
  private readonly appState;
@@ -3204,6 +3243,18 @@ declare class CideCoreUserRoleFormComponent implements OnInit, OnDestroy {
3204
3243
  * This method now recursively checks all parent levels in the hierarchy
3205
3244
  */
3206
3245
  private autoCheckParentViewRight;
3246
+ /**
3247
+ * Open copy role drawer using floating container service
3248
+ */
3249
+ openCopyRoleDialog(): void;
3250
+ /**
3251
+ * Handle role selection from drawer
3252
+ */
3253
+ private onRoleSelected;
3254
+ /**
3255
+ * Perform the actual role copy operation
3256
+ */
3257
+ private performRoleCopy;
3207
3258
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreUserRoleFormComponent, never>;
3208
3259
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCoreUserRoleFormComponent, "cide-core-user-role-form", never, {}, {}, never, never, true, never>;
3209
3260
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-ide-core",
3
- "version": "2.0.135",
3
+ "version": "2.0.136",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.1.0",
6
6
  "@angular/core": "^20.1.0"