cloud-ide-core 2.0.90 → 2.0.92

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.
@@ -3907,10 +3907,14 @@ class CideCoreDesignationListComponent {
3907
3907
  hasPreviousPage = computed(() => this.currentPage() > 1, ...(ngDevMode ? [{ debugName: "hasPreviousPage" }] : []));
3908
3908
  // Grade level options for dropdown
3909
3909
  gradeLevelOptions = computed(() => {
3910
- return this.gradeLevels().map(gradeLevel => ({
3910
+ const options = this.gradeLevels()
3911
+ .filter(gradeLevel => gradeLevel.sydsgl_isactive !== false) // Only show active grade levels
3912
+ .map(gradeLevel => ({
3911
3913
  value: gradeLevel._id || '',
3912
3914
  label: gradeLevel.sydsgl_name || 'Unknown'
3913
3915
  }));
3916
+ console.log('📋 Grade level options computed:', options);
3917
+ return options;
3914
3918
  }, ...(ngDevMode ? [{ debugName: "gradeLevelOptions" }] : []));
3915
3919
  // Department options for dropdown
3916
3920
  departmentOptions = computed(() => {
@@ -3931,7 +3935,10 @@ class CideCoreDesignationListComponent {
3931
3935
  */
3932
3936
  initializeComponent() {
3933
3937
  console.log('CideCoreDesignationListComponent initialized with modern Angular patterns');
3934
- // Load designations first since department and grade level data is populated in the response
3938
+ // Load departments and grade levels first for dropdown options
3939
+ this.loadDepartments();
3940
+ this.loadGradeLevels();
3941
+ // Then load designations
3935
3942
  this.loadDesignations();
3936
3943
  this.setupEventListeners();
3937
3944
  this.exposeGlobalFunctions();
@@ -4076,6 +4083,7 @@ class CideCoreDesignationListComponent {
4076
4083
  const requestBody = new MGradeLevel({
4077
4084
  pageIndex: 1,
4078
4085
  pageSize: 100, // Load all grade levels for dropdown
4086
+ pagination: false, // Disable pagination to get all results
4079
4087
  sydsgl_entity_id_syen: activeEntityId
4080
4088
  });
4081
4089
  this.gradeLevelService.getGradeLevelList(requestBody)
@@ -4086,7 +4094,10 @@ class CideCoreDesignationListComponent {
4086
4094
  if (response?.success) {
4087
4095
  console.log('✅ Grade levels loaded successfully:', response.data);
4088
4096
  const gradeLevelData = response?.data || [];
4097
+ console.log('📊 Setting grade levels signal with data:', gradeLevelData);
4089
4098
  this.gradeLevels.set(gradeLevelData);
4099
+ console.log('📊 Grade levels signal after set:', this.gradeLevels());
4100
+ console.log('📊 Grade level options after set:', this.gradeLevelOptions());
4090
4101
  // Update grid data if designations are already loaded
4091
4102
  if (this.designations().length > 0) {
4092
4103
  this.updateGridData(this.designations());