cloud-ide-shared 1.0.36 → 1.0.38

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
@@ -2,7 +2,7 @@ import * as _angular_core from '@angular/core';
2
2
  import { InjectionToken, OnInit, OnDestroy, OnChanges, EventEmitter, SimpleChanges, Type } from '@angular/core';
3
3
  import { CanActivateFn, Router } from '@angular/router';
4
4
  import { Observable } from 'rxjs';
5
- import { MEntity, entityControllerResponse, entityByIdControllerResponse, CoreSystemEntitySaveUpdatePayload, MPinCodeSelect, pinCodeSelectControllerResponse, MSyctrList, countryListControllerResponse, CoreNationalityListPayload, nationalityListControllerResponse, MClassProgramMaster, classProgramMasterControllerResponse, MPrgTrmSection, prgTrmSectionControllerResponse, MPrgTrmSectionGetByIdPayload, prgTrmSectionByIdControllerResponse, MPrgTrmSectionInsertUpdatePayload, prgTrmSectionInsertUpdateControllerResponse, MPrgTrmSectionDeletePayload, prgTrmSectionDeleteControllerResponse, MPrgTrmSectionToggleStatusPayload, prgTrmSectionToggleStatusControllerResponse, MPrgTrmSectionToggleLockPayload, prgTrmSectionToggleLockControllerResponse, ICoreSygmt, MGeneralMasterType, generalMasterTypeListControllerResponse, generalMasterTypeInsertUpdateControllerResponse, generalMasterTypeByIdControllerResponse, generalMasterTypeDeleteControllerResponse, generalMasterTypeToggleStatusControllerResponse, ICoreSygms, IGeneralMasterListRequest, generalMasterListControllerResponse, generalMasterInsertUpdateControllerResponse, generalMasterByIdControllerResponse, generalMasterDeleteControllerResponse, generalMasterToggleStatusControllerResponse, AuthUserMstListPayload, authUserMstListControllerResponse, MFinancialYear, financialYearControllerResponse, MFinancialYearGetByIdPayload, financialYearByIdControllerResponse, MFinancialYearInsertUpdatePayload, financialYearInsertUpdateControllerResponse, MFinancialYearDeletePayload, financialYearDeleteControllerResponse, MFinancialYearToggleStatusPayload, financialYearToggleStatusControllerResponse, MAcademicYear, academicYearControllerResponse, MAcademicYearGetByIdPayload, academicYearByIdControllerResponse, MAcademicYearInsertUpdatePayload, academicYearInsertUpdateControllerResponse, MAcademicYearDeletePayload, academicYearDeleteControllerResponse, MAcademicYearToggleStatusPayload, academicYearToggleStatusControllerResponse, MFeeStructure, feeStructureControllerResponse, MFeeStructureGetByIdPayload, feeStructureByIdControllerResponse, MFeeStructureInsertUpdatePayload, feeStructureInsertUpdateControllerResponse, MFeeStructureDeletePayload, feeStructureDeleteControllerResponse, MFeeStructureToggleStatusPayload, feeStructureToggleStatusControllerResponse, MFeePayment, feePaymentControllerResponse, MFeePaymentGetByIdPayload, feePaymentByIdControllerResponse, MFeePaymentInsertUpdatePayload, feePaymentInsertUpdateControllerResponse, MFeePaymentDeletePayload, feePaymentDeleteControllerResponse, CoreSystemEntityListResponse, AcaClassProgramMasterResponse, selectSearchType } from 'cloud-ide-lms-model';
5
+ import { MEntity, entityControllerResponse, entityByIdControllerResponse, CoreSystemEntitySaveUpdatePayload, MPinCodeSelect, pinCodeSelectControllerResponse, MSyctrList, countryListControllerResponse, CoreNationalityListPayload, nationalityListControllerResponse, MSycrList, currencyListControllerResponse, MClassProgramMaster, classProgramMasterControllerResponse, MPrgTrmSection, prgTrmSectionControllerResponse, MPrgTrmSectionGetByIdPayload, prgTrmSectionByIdControllerResponse, MPrgTrmSectionInsertUpdatePayload, prgTrmSectionInsertUpdateControllerResponse, MPrgTrmSectionDeletePayload, prgTrmSectionDeleteControllerResponse, MPrgTrmSectionToggleStatusPayload, prgTrmSectionToggleStatusControllerResponse, MPrgTrmSectionToggleLockPayload, prgTrmSectionToggleLockControllerResponse, ICoreSygmt, MGeneralMasterType, generalMasterTypeListControllerResponse, generalMasterTypeInsertUpdateControllerResponse, generalMasterTypeByIdControllerResponse, generalMasterTypeDeleteControllerResponse, generalMasterTypeToggleStatusControllerResponse, ICoreSygms, IGeneralMasterListRequest, generalMasterListControllerResponse, generalMasterInsertUpdateControllerResponse, generalMasterByIdControllerResponse, generalMasterDeleteControllerResponse, generalMasterToggleStatusControllerResponse, AuthUserMstListPayload, authUserMstListControllerResponse, MFinancialYear, financialYearControllerResponse, MFinancialYearGetByIdPayload, financialYearByIdControllerResponse, MFinancialYearInsertUpdatePayload, financialYearInsertUpdateControllerResponse, MFinancialYearDeletePayload, financialYearDeleteControllerResponse, MFinancialYearToggleStatusPayload, financialYearToggleStatusControllerResponse, MAcademicYear, academicYearControllerResponse, MAcademicYearGetByIdPayload, academicYearByIdControllerResponse, MAcademicYearInsertUpdatePayload, academicYearInsertUpdateControllerResponse, MAcademicYearDeletePayload, academicYearDeleteControllerResponse, MAcademicYearToggleStatusPayload, academicYearToggleStatusControllerResponse, MFeeStructure, feeStructureControllerResponse, MFeeStructureGetByIdPayload, feeStructureByIdControllerResponse, MFeeStructureInsertUpdatePayload, feeStructureInsertUpdateControllerResponse, MFeeStructureDeletePayload, feeStructureDeleteControllerResponse, MFeeStructureToggleStatusPayload, feeStructureToggleStatusControllerResponse, MFeePayment, feePaymentControllerResponse, MFeePaymentGetByIdPayload, feePaymentByIdControllerResponse, MFeePaymentInsertUpdatePayload, feePaymentInsertUpdateControllerResponse, MFeePaymentDeletePayload, feePaymentDeleteControllerResponse, CoreSystemEntityListResponse, AcaClassProgramMasterResponse, selectSearchType } from 'cloud-ide-lms-model';
6
6
  import { mongooseObjectIdCreateControllerResponse } from 'cloud-ide-element';
7
7
  import { FormGroup, FormControl } from '@angular/forms';
8
8
 
@@ -231,6 +231,35 @@ interface INationalityService {
231
231
  */
232
232
  declare const NATIONALITY_SERVICE_TOKEN: InjectionToken<INationalityService>;
233
233
 
234
+ /**
235
+ * Interface for Currency Service
236
+ * This interface defines the contract for currency operations
237
+ * Used to avoid circular dependencies and provide clean abstraction
238
+ */
239
+ interface ICurrencyService {
240
+ /**
241
+ * Get all currencies from API
242
+ * @param body - MSycrList payload for filtering
243
+ * @returns Observable of currency list response
244
+ */
245
+ getAllCurrencies(body: Partial<MSycrList>): Observable<currencyListControllerResponse>;
246
+ }
247
+ /**
248
+ * Injection token for Currency Service (CideCoreCurrencyService)
249
+ * Used to provide and inject currency service implementations
250
+ * This enables dependency injection with interface-based contracts
251
+ *
252
+ * @example
253
+ * ```typescript
254
+ * // In app.config.ts
255
+ * { provide: CURRENCY_SERVICE_TOKEN, useExisting: CideCoreCurrencyService }
256
+ *
257
+ * // In component
258
+ * private currencyService = inject(CURRENCY_SERVICE_TOKEN) as ICurrencyService;
259
+ * ```
260
+ */
261
+ declare const CURRENCY_SERVICE_TOKEN: InjectionToken<ICurrencyService>;
262
+
234
263
  /**
235
264
  * Interface for Class Program Master Service
236
265
  * This interface defines the contract for class program master operations
@@ -887,7 +916,7 @@ interface SelectOption {
887
916
  value: string;
888
917
  label: string;
889
918
  }
890
- interface ProgramSectionSelectorValues {
919
+ interface ProgramSectionSelectorValues$1 {
891
920
  classProgramId?: string | null;
892
921
  branchId?: string | null;
893
922
  termId?: string | null;
@@ -906,7 +935,7 @@ declare class CideSharedProgramSectionSelectorComponent implements OnInit, OnDes
906
935
  readonly gridCols: _angular_core.InputSignal<string>;
907
936
  readonly showAllPrograms: _angular_core.InputSignal<boolean>;
908
937
  readonly includeInactive: _angular_core.InputSignal<boolean>;
909
- readonly valuesChange: _angular_core.OutputEmitterRef<ProgramSectionSelectorValues>;
938
+ readonly valuesChange: _angular_core.OutputEmitterRef<ProgramSectionSelectorValues$1>;
910
939
  private readonly destroyRef;
911
940
  private readonly http;
912
941
  private readonly classProgramService;
@@ -973,6 +1002,91 @@ declare class FeeDetailsViewerWrapperComponent implements OnInit, OnDestroy, OnC
973
1002
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<FeeDetailsViewerWrapperComponent, "cide-shared-fee-details-viewer-wrapper", never, { "isOpen": { "alias": "isOpen"; "required": false; }; "feeData": { "alias": "feeData"; "required": false; }; "assignmentDate": { "alias": "assignmentDate"; "required": false; }; "discount": { "alias": "discount"; "required": false; }; }, { "closed": "closed"; }, never, never, true, never>;
974
1003
  }
975
1004
 
1005
+ /**
1006
+ * Type for ProgramSectionSelectorValues output
1007
+ */
1008
+ interface ProgramSectionSelectorValues {
1009
+ classProgramId?: string | null;
1010
+ branchId?: string | null;
1011
+ termId?: string | null;
1012
+ sectionId?: string | null;
1013
+ }
1014
+ /**
1015
+ * Type for ProgramSectionSelectorComponent
1016
+ * This represents the component interface that must be implemented
1017
+ */
1018
+ interface ProgramSectionSelectorComponentType {
1019
+ formGroup?: FormGroup | (() => FormGroup);
1020
+ classProgramControlName?: string | (() => string);
1021
+ branchControlName?: string | (() => string);
1022
+ termControlName?: string | (() => string);
1023
+ sectionControlName?: string | (() => string);
1024
+ academicYearId?: string | null | (() => string | null);
1025
+ entityId?: string | null | (() => string | null);
1026
+ disabled?: boolean | (() => boolean);
1027
+ showLabels?: boolean | (() => boolean);
1028
+ gridCols?: string | (() => string);
1029
+ showAllPrograms?: boolean | (() => boolean);
1030
+ includeInactive?: boolean | (() => boolean);
1031
+ valuesChange?: (values: ProgramSectionSelectorValues) => void;
1032
+ }
1033
+ /**
1034
+ * Injection token for ProgramSectionSelectorComponent
1035
+ * This allows the component to be provided without direct import dependency
1036
+ *
1037
+ * @example
1038
+ * ```typescript
1039
+ * // In app.config.ts
1040
+ * import { CideLytProgramSectionSelectorComponent } from 'cloud-ide-academics';
1041
+ * import { PROGRAM_SECTION_SELECTOR_COMPONENT_TOKEN } from 'cloud-ide-shared';
1042
+ *
1043
+ * providers: [
1044
+ * { provide: PROGRAM_SECTION_SELECTOR_COMPONENT_TOKEN, useValue: CideLytProgramSectionSelectorComponent }
1045
+ * ]
1046
+ *
1047
+ * // In component template
1048
+ * <cide-shared-program-section-selector-wrapper
1049
+ * [formGroup]="form"
1050
+ * [classProgramControlName]="'class_program_id'"
1051
+ * [academicYearId]="academicYearId()"
1052
+ * (valuesChange)="onValuesChange($event)">
1053
+ * </cide-shared-program-section-selector-wrapper>
1054
+ * ```
1055
+ */
1056
+ declare const PROGRAM_SECTION_SELECTOR_COMPONENT_TOKEN: InjectionToken<Type<ProgramSectionSelectorComponentType>>;
1057
+
1058
+ /**
1059
+ * Wrapper component that dynamically loads the ProgramSectionSelectorComponent
1060
+ * This allows front-desk to use the component without directly importing cloud-ide-academics
1061
+ */
1062
+ declare class ProgramSectionSelectorWrapperComponent implements OnInit, OnDestroy, OnChanges {
1063
+ private readonly viewContainerRef;
1064
+ private readonly destroyRef;
1065
+ private readonly componentToken;
1066
+ private componentRef;
1067
+ formGroup: FormGroup;
1068
+ classProgramControlName: string;
1069
+ branchControlName: string;
1070
+ termControlName: string;
1071
+ sectionControlName: string;
1072
+ academicYearId: string | null;
1073
+ entityId: string | null;
1074
+ disabled: boolean;
1075
+ showLabels: boolean;
1076
+ gridCols: string;
1077
+ showAllPrograms: boolean;
1078
+ includeInactive: boolean;
1079
+ valuesChange: EventEmitter<ProgramSectionSelectorValues>;
1080
+ ngOnInit(): void;
1081
+ ngOnChanges(changes: SimpleChanges): void;
1082
+ ngOnDestroy(): void;
1083
+ private loadComponent;
1084
+ private updateComponentInputs;
1085
+ private destroyComponent;
1086
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgramSectionSelectorWrapperComponent, never>;
1087
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgramSectionSelectorWrapperComponent, "cide-shared-program-section-selector-wrapper", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "classProgramControlName": { "alias": "classProgramControlName"; "required": false; }; "branchControlName": { "alias": "branchControlName"; "required": false; }; "termControlName": { "alias": "termControlName"; "required": false; }; "sectionControlName": { "alias": "sectionControlName"; "required": false; }; "academicYearId": { "alias": "academicYearId"; "required": false; }; "entityId": { "alias": "entityId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showLabels": { "alias": "showLabels"; "required": false; }; "gridCols": { "alias": "gridCols"; "required": false; }; "showAllPrograms": { "alias": "showAllPrograms"; "required": false; }; "includeInactive": { "alias": "includeInactive"; "required": false; }; }, { "valuesChange": "valuesChange"; }, never, never, true, never>;
1088
+ }
1089
+
976
1090
  /**
977
1091
  * Type for FeeDetailsViewerComponent
978
1092
  * This represents the component interface that must be implemented
@@ -1010,5 +1124,5 @@ interface FeeDetailsViewerComponentType {
1010
1124
  */
1011
1125
  declare const FEE_DETAILS_VIEWER_COMPONENT_TOKEN: InjectionToken<Type<FeeDetailsViewerComponentType>>;
1012
1126
 
1013
- export { ACADEMIC_YEAR_SERVICE_TOKEN, APP_STATE_SERVICE_TOKEN, AUTH_SERVICE_TOKEN, CLASS_PROGRAM_MASTER_SERVICE_TOKEN, COUNTRY_SERVICE_TOKEN, CideCoreGeneralMasterService, CideCoreGeneralMasterTypeService, CideSharedOrgStructureComponent, CideSharedProgramSectionSelectorComponent, CloudIdeShared, ENTITY_SERVICE_TOKEN, FEE_DETAILS_VIEWER_COMPONENT_TOKEN, FEE_PAYMENT_SERVICE_TOKEN, FEE_STRUCTURE_SERVICE_TOKEN, FINANCIAL_YEAR_SERVICE_TOKEN, FeeDetailsViewerWrapperComponent, NATIONALITY_SERVICE_TOKEN, PIN_CODE_SERVICE_TOKEN, PROGRAM_TERM_SECTION_SERVICE_TOKEN, SharedObjectIdService, USER_SERVICE_TOKEN, authGuard };
1014
- export type { FeeDetailsViewerComponentType, IAcademicYearService, IAppStateService, IAuthService, IClassProgramMasterService, ICountryService, IEntityService, IFeePaymentService, IFeeStructureService, IFinancialYearService, INationalityService, IPinCodeService, IProgramTermSectionService, IUserMasterService };
1127
+ export { ACADEMIC_YEAR_SERVICE_TOKEN, APP_STATE_SERVICE_TOKEN, AUTH_SERVICE_TOKEN, CLASS_PROGRAM_MASTER_SERVICE_TOKEN, COUNTRY_SERVICE_TOKEN, CURRENCY_SERVICE_TOKEN, CideCoreGeneralMasterService, CideCoreGeneralMasterTypeService, CideSharedOrgStructureComponent, CideSharedProgramSectionSelectorComponent, CloudIdeShared, ENTITY_SERVICE_TOKEN, FEE_DETAILS_VIEWER_COMPONENT_TOKEN, FEE_PAYMENT_SERVICE_TOKEN, FEE_STRUCTURE_SERVICE_TOKEN, FINANCIAL_YEAR_SERVICE_TOKEN, FeeDetailsViewerWrapperComponent, NATIONALITY_SERVICE_TOKEN, PIN_CODE_SERVICE_TOKEN, PROGRAM_SECTION_SELECTOR_COMPONENT_TOKEN, PROGRAM_TERM_SECTION_SERVICE_TOKEN, ProgramSectionSelectorWrapperComponent, SharedObjectIdService, USER_SERVICE_TOKEN, authGuard };
1128
+ export type { FeeDetailsViewerComponentType, IAcademicYearService, IAppStateService, IAuthService, IClassProgramMasterService, ICountryService, ICurrencyService, IEntityService, IFeePaymentService, IFeeStructureService, IFinancialYearService, INationalityService, IPinCodeService, IProgramTermSectionService, IUserMasterService, ProgramSectionSelectorComponentType, ProgramSectionSelectorValues };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-ide-shared",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.1.0",
6
6
  "@angular/core": "^20.1.0",