cloud-ide-academics 0.0.57 → 0.0.64
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/fesm2022/{cloud-ide-academics-bonafide-request-form.component-CM35A1Ex.mjs → cloud-ide-academics-bonafide-request-form.component-DIBzUNbF.mjs} +2 -2
- package/fesm2022/{cloud-ide-academics-bonafide-request-form.component-CM35A1Ex.mjs.map → cloud-ide-academics-bonafide-request-form.component-DIBzUNbF.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-academics-class-program-term-create.component-Bw-I_FfZ.mjs → cloud-ide-academics-class-program-term-create.component-A5Ed_CAc.mjs} +2 -2
- package/fesm2022/{cloud-ide-academics-class-program-term-create.component-Bw-I_FfZ.mjs.map → cloud-ide-academics-class-program-term-create.component-A5Ed_CAc.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-academics-class-program-term-list.component-DMUqLvyZ.mjs → cloud-ide-academics-class-program-term-list.component-BWQ4BI9Z.mjs} +2 -2
- package/fesm2022/{cloud-ide-academics-class-program-term-list.component-DMUqLvyZ.mjs.map → cloud-ide-academics-class-program-term-list.component-BWQ4BI9Z.mjs.map} +1 -1
- package/fesm2022/{cloud-ide-academics-cloud-ide-academics-C1qeVY8_.mjs → cloud-ide-academics-cloud-ide-academics-BRQerudY.mjs} +191 -33
- package/fesm2022/cloud-ide-academics-cloud-ide-academics-BRQerudY.mjs.map +1 -0
- package/fesm2022/{cloud-ide-academics-program-class-create.component-C2VZz6x-.mjs → cloud-ide-academics-program-class-create.component-Bd6yGQ3X.mjs} +13 -9
- package/fesm2022/cloud-ide-academics-program-class-create.component-Bd6yGQ3X.mjs.map +1 -0
- package/fesm2022/{cloud-ide-academics-program-class-list.component-C333Jax-.mjs → cloud-ide-academics-program-class-list.component-D591YMJ3.mjs} +3 -147
- package/fesm2022/cloud-ide-academics-program-class-list.component-D591YMJ3.mjs.map +1 -0
- package/fesm2022/cloud-ide-academics.mjs +1 -1
- package/index.d.ts +21 -11
- package/package.json +1 -1
- package/fesm2022/cloud-ide-academics-cloud-ide-academics-C1qeVY8_.mjs.map +0 -1
- package/fesm2022/cloud-ide-academics-program-class-create.component-C2VZz6x-.mjs.map +0 -1
- package/fesm2022/cloud-ide-academics-program-class-list.component-C333Jax-.mjs.map +0 -1
|
@@ -6,9 +6,9 @@ import { FormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
|
6
6
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
7
7
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
8
8
|
import { NotificationService, ConfirmationService, CideInputComponent, CideEleButtonComponent, CideIconComponent, CideSelectComponent, CideFormFieldErrorComponent } from 'cloud-ide-element';
|
|
9
|
-
import { AppStateHelperService, ComponentContextService, RightsService, CideLytSharedWrapperComponent } from 'cloud-ide-layout';
|
|
9
|
+
import { AppStateHelperService, ComponentContextService, RightsService, CideLytRequestService, CideLytSharedWrapperComponent } from 'cloud-ide-layout';
|
|
10
10
|
import { CideCoreGeneralMasterService } from 'cloud-ide-core';
|
|
11
|
-
import {
|
|
11
|
+
import { b as CideLytAcademicYearService, C as CideLytProgramClassService } from './cloud-ide-academics-cloud-ide-academics-BRQerudY.mjs';
|
|
12
12
|
import { generateObjectFromString } from 'cloud-ide-lms-model';
|
|
13
13
|
|
|
14
14
|
class ProgramClassCreateComponent {
|
|
@@ -27,6 +27,7 @@ class ProgramClassCreateComponent {
|
|
|
27
27
|
componentContextService = inject(ComponentContextService);
|
|
28
28
|
rightsService = inject(RightsService);
|
|
29
29
|
cdr = inject(ChangeDetectorRef);
|
|
30
|
+
requestService = inject(CideLytRequestService); // Injected as any if needed to bypass strict checks during build issues
|
|
30
31
|
programClassForm;
|
|
31
32
|
loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
32
33
|
error = signal(null, ...(ngDevMode ? [{ debugName: "error" }] : []));
|
|
@@ -369,12 +370,15 @@ class ProgramClassCreateComponent {
|
|
|
369
370
|
if (response?.success) {
|
|
370
371
|
const action = this.isEditMode() ? 'updated' : 'created';
|
|
371
372
|
this.notificationService.success(`Program class has been ${action} successfully.`);
|
|
372
|
-
//
|
|
373
|
-
|
|
374
|
-
|
|
373
|
+
// Force refresh list route
|
|
374
|
+
this.requestService.forceRefreshRoute('/control-panel/program-class-management');
|
|
375
|
+
// Close the current tab
|
|
376
|
+
const activeTabId = this.requestService.activeTabId();
|
|
377
|
+
if (activeTabId) {
|
|
378
|
+
this.requestService.closeTab(activeTabId);
|
|
375
379
|
}
|
|
376
380
|
else {
|
|
377
|
-
//
|
|
381
|
+
// Fallback for standalone mode
|
|
378
382
|
this.router.navigate(['/control-panel/program-class-management']);
|
|
379
383
|
}
|
|
380
384
|
}
|
|
@@ -466,7 +470,7 @@ class ProgramClassCreateComponent {
|
|
|
466
470
|
console.log('🧹 ProgramClassCreateComponent: Component state cleaned up');
|
|
467
471
|
}
|
|
468
472
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ProgramClassCreateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
469
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: ProgramClassCreateComponent, isStandalone: true, selector: "cide-academics-program-class-create", ngImport: i0, template: "<!-- \n PROGRAM CLASS MASTER FORM\n \n Enterprise-Level Styling with Tailwind CSS\n Features: Responsive grids, proper typography, enhanced user experience\n-->\n\n<cide-lyt-shared-wrapper [shared_wrapper_setup_param]=\"{ sypg_page_code: '
|
|
473
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: ProgramClassCreateComponent, isStandalone: true, selector: "cide-academics-program-class-create", ngImport: i0, template: "<!-- \n PROGRAM CLASS MASTER FORM\n \n Enterprise-Level Styling with Tailwind CSS\n Features: Responsive grids, proper typography, enhanced user experience\n-->\n\n<cide-lyt-shared-wrapper [shared_wrapper_setup_param]=\"{ sypg_page_code: 'program_class_create' }\"\n [breadcrumb_data]=\"breadcrumbData()\">\n\n <form class=\"tw-w-full tw-table tw-h-full tw-bg-transparent\" [formGroup]=\"programClassForm\"\n [class.tw-opacity-60]=\"loading()\" (ngSubmit)=\"onSubmit()\">\n\n <!-- Form Content -->\n <div class=\"tw-table-row\">\n <div class=\"tw-table-cell tw-w-full tw-px-6 tw-py-6\">\n <div class=\"tw-transition-opacity tw-duration-300\" [class.tw-opacity-60]=\"loading()\">\n <!-- Basic Program Class Information -->\n <div class=\"tw-space-y-6\">\n <!-- Class Program and Academic Year at the top -->\n <div class=\"tw-grid tw-grid-cols-1 md:tw-grid-cols-2 tw-gap-6\">\n <div class=\"tw-space-y-2\">\n <label class=\"tw-text-sm tw-font-medium tw-text-gray-700\">Academic Year</label>\n <cide-ele-select formControlName=\"acacpm_academic_year_id_acayr\" placeholder=\"Select academic year\"\n [disabled]=\"true\" valueKey=\"_id\" labelKey=\"acayr_name\" [options]=\"academicYearOptions()\">\n </cide-ele-select>\n </div>\n\n <div class=\"tw-space-y-2\">\n <label class=\"tw-text-sm tw-font-medium tw-text-gray-700\">Class Program</label>\n <cide-ele-select formControlName=\"acacpm_class_program_id_sygms\" placeholder=\"Select class program\"\n [disabled]=\"isEditMode() || isViewMode()\" valueKey=\"_id\" labelKey=\"sygms_title\"\n [options]=\"classProgramOptions()\"\n [treeView]=\"{ enabled: true, primaryKey: '_id', foreignKey: 'sygms_id_sygms' }\" [searchable]=\"true\">\n </cide-ele-select>\n </div>\n </div>\n\n <div class=\"tw-grid tw-grid-cols-1 md:tw-grid-cols-2 tw-gap-6\">\n <cide-ele-input label=\"Program Class Title\" formControlName=\"acacpm_alise_title\"\n placeholder=\"e.g., Program Class 2024-2025\" size=\"md\" leadingIcon=\"school\">\n </cide-ele-input>\n\n <div\n class=\"tw-flex tw-items-center tw-gap-3 tw-p-4 tw-bg-gray-50 tw-rounded-lg tw-border tw-border-gray-200 tw-cursor-pointer hover:tw-bg-gray-100 tw-transition-colors tw-duration-200\"\n (click)=\"toggleActiveStatus()\">\n <cide-ele-input formControlName=\"acacpm_isactive\" type=\"checkbox\" size=\"md\"\n (click)=\"$event.stopPropagation()\">\n </cide-ele-input>\n <div class=\"tw-flex tw-flex-col\">\n <span class=\"tw-text-sm tw-font-medium tw-text-gray-700\">Active</span>\n <span class=\"tw-text-xs tw-text-gray-500\">Enable/disable this program class</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Error Display -->\n @if (error()) {\n <div class=\"tw-mt-6 tw-p-4 tw-bg-red-50 tw-border tw-border-red-200 tw-rounded-lg\">\n <div class=\"tw-flex tw-items-center tw-gap-2\">\n <cide-ele-icon variant=\"red\" size=\"sm\">error</cide-ele-icon>\n <span class=\"tw-text-sm tw-font-medium tw-text-red-800\">{{ error() }}</span>\n </div>\n </div>\n }\n </div>\n </div>\n\n <!-- Form Actions -->\n <div class=\"tw-table-row tw-h-0\">\n <div class=\"tw-table-cell tw-w-full tw-px-6 tw-py-2 tw-bg-gray-50 tw-border-t tw-border-gray-200\">\n <div class=\"tw-flex tw-flex-col tw-gap-3\">\n <!-- Form Validation Errors -->\n <div class=\"tw-w-full\">\n <cide-form-field-error [formGroup]=\"programClassForm\"></cide-form-field-error>\n </div>\n\n <!-- Action Buttons -->\n <div class=\"tw-flex tw-justify-end tw-gap-4\">\n @if (!isEditMode()) {\n <button cideEleButton type=\"button\" variant=\"secondary\" (click)=\"resetForm()\" leftIcon=\"refresh\"\n [disabled]=\"loading()\">\n Reset Form\n </button>\n }\n\n <button cideEleButton type=\"button\" variant=\"secondary\" (click)=\"cancelForm()\" leftIcon=\"close\"\n [disabled]=\"loading()\">\n Cancel\n </button>\n\n @if ((isEditMode() && canEdit()) || (!isEditMode() && canCreate())) {\n <button cideEleButton type=\"submit\" variant=\"primary\" [disabled]=\"loading() || programClassForm.invalid\"\n [loading]=\"loading()\" leftIcon=\"save\">\n {{ isEditMode() ? 'Update Program Class' : 'Create Program Class' }}\n </button>\n }\n </div>\n </div>\n </div>\n </div>\n </form>\n</cide-lyt-shared-wrapper>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: CideInputComponent, selector: "cide-ele-input", inputs: ["fill", "label", "labelHide", "disabled", "clearInput", "labelPlacement", "labelDir", "placeholder", "leadingIcon", "trailingIcon", "helperText", "helperTextCollapse", "hideHelperAndErrorText", "errorText", "maxlength", "minlength", "required", "autocapitalize", "autocomplete", "type", "width", "id", "ngModel", "option", "min", "max", "step", "size"], outputs: ["ngModelChange"] }, { kind: "component", type: CideEleButtonComponent, selector: "button[cideEleButton], a[cideEleButton], cide-ele-button", inputs: ["label", "variant", "size", "type", "shape", "elevation", "disabled", "id", "loading", "fullWidth", "leftIcon", "rightIcon", "customClass", "tooltip", "ariaLabel", "testId", "routerLink", "routerExtras", "preventDoubleClick", "animated"], outputs: ["btnClick", "doubleClick"] }, { kind: "component", type: CideIconComponent, selector: "cide-ele-icon", inputs: ["size", "type", "toolTip"] }, { kind: "component", type: CideSelectComponent, selector: "cide-ele-select", inputs: ["label", "labelHide", "placeholder", "helperText", "errorText", "required", "disabled", "id", "ngModel", "size", "fill", "labelPlacement", "labelDir", "leadingIcon", "trailingIcon", "clearInput", "options", "multiple", "searchable", "showSearchInput", "loading", "valueKey", "labelKey", "treeView"], outputs: ["ngModelChange", "change", "searchChange"] }, { kind: "component", type: CideLytSharedWrapperComponent, selector: "cide-lyt-shared-wrapper", inputs: ["shared_wrapper_setup_param", "breadcrumb_data"] }, { kind: "component", type: CideFormFieldErrorComponent, selector: "cide-form-field-error", inputs: ["control", "formGroup", "fieldName", "customMessages"] }] });
|
|
470
474
|
}
|
|
471
475
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ProgramClassCreateComponent, decorators: [{
|
|
472
476
|
type: Component,
|
|
@@ -479,8 +483,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
479
483
|
CideSelectComponent,
|
|
480
484
|
CideLytSharedWrapperComponent,
|
|
481
485
|
CideFormFieldErrorComponent
|
|
482
|
-
], template: "<!-- \n PROGRAM CLASS MASTER FORM\n \n Enterprise-Level Styling with Tailwind CSS\n Features: Responsive grids, proper typography, enhanced user experience\n-->\n\n<cide-lyt-shared-wrapper [shared_wrapper_setup_param]=\"{ sypg_page_code: '
|
|
486
|
+
], template: "<!-- \n PROGRAM CLASS MASTER FORM\n \n Enterprise-Level Styling with Tailwind CSS\n Features: Responsive grids, proper typography, enhanced user experience\n-->\n\n<cide-lyt-shared-wrapper [shared_wrapper_setup_param]=\"{ sypg_page_code: 'program_class_create' }\"\n [breadcrumb_data]=\"breadcrumbData()\">\n\n <form class=\"tw-w-full tw-table tw-h-full tw-bg-transparent\" [formGroup]=\"programClassForm\"\n [class.tw-opacity-60]=\"loading()\" (ngSubmit)=\"onSubmit()\">\n\n <!-- Form Content -->\n <div class=\"tw-table-row\">\n <div class=\"tw-table-cell tw-w-full tw-px-6 tw-py-6\">\n <div class=\"tw-transition-opacity tw-duration-300\" [class.tw-opacity-60]=\"loading()\">\n <!-- Basic Program Class Information -->\n <div class=\"tw-space-y-6\">\n <!-- Class Program and Academic Year at the top -->\n <div class=\"tw-grid tw-grid-cols-1 md:tw-grid-cols-2 tw-gap-6\">\n <div class=\"tw-space-y-2\">\n <label class=\"tw-text-sm tw-font-medium tw-text-gray-700\">Academic Year</label>\n <cide-ele-select formControlName=\"acacpm_academic_year_id_acayr\" placeholder=\"Select academic year\"\n [disabled]=\"true\" valueKey=\"_id\" labelKey=\"acayr_name\" [options]=\"academicYearOptions()\">\n </cide-ele-select>\n </div>\n\n <div class=\"tw-space-y-2\">\n <label class=\"tw-text-sm tw-font-medium tw-text-gray-700\">Class Program</label>\n <cide-ele-select formControlName=\"acacpm_class_program_id_sygms\" placeholder=\"Select class program\"\n [disabled]=\"isEditMode() || isViewMode()\" valueKey=\"_id\" labelKey=\"sygms_title\"\n [options]=\"classProgramOptions()\"\n [treeView]=\"{ enabled: true, primaryKey: '_id', foreignKey: 'sygms_id_sygms' }\" [searchable]=\"true\">\n </cide-ele-select>\n </div>\n </div>\n\n <div class=\"tw-grid tw-grid-cols-1 md:tw-grid-cols-2 tw-gap-6\">\n <cide-ele-input label=\"Program Class Title\" formControlName=\"acacpm_alise_title\"\n placeholder=\"e.g., Program Class 2024-2025\" size=\"md\" leadingIcon=\"school\">\n </cide-ele-input>\n\n <div\n class=\"tw-flex tw-items-center tw-gap-3 tw-p-4 tw-bg-gray-50 tw-rounded-lg tw-border tw-border-gray-200 tw-cursor-pointer hover:tw-bg-gray-100 tw-transition-colors tw-duration-200\"\n (click)=\"toggleActiveStatus()\">\n <cide-ele-input formControlName=\"acacpm_isactive\" type=\"checkbox\" size=\"md\"\n (click)=\"$event.stopPropagation()\">\n </cide-ele-input>\n <div class=\"tw-flex tw-flex-col\">\n <span class=\"tw-text-sm tw-font-medium tw-text-gray-700\">Active</span>\n <span class=\"tw-text-xs tw-text-gray-500\">Enable/disable this program class</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Error Display -->\n @if (error()) {\n <div class=\"tw-mt-6 tw-p-4 tw-bg-red-50 tw-border tw-border-red-200 tw-rounded-lg\">\n <div class=\"tw-flex tw-items-center tw-gap-2\">\n <cide-ele-icon variant=\"red\" size=\"sm\">error</cide-ele-icon>\n <span class=\"tw-text-sm tw-font-medium tw-text-red-800\">{{ error() }}</span>\n </div>\n </div>\n }\n </div>\n </div>\n\n <!-- Form Actions -->\n <div class=\"tw-table-row tw-h-0\">\n <div class=\"tw-table-cell tw-w-full tw-px-6 tw-py-2 tw-bg-gray-50 tw-border-t tw-border-gray-200\">\n <div class=\"tw-flex tw-flex-col tw-gap-3\">\n <!-- Form Validation Errors -->\n <div class=\"tw-w-full\">\n <cide-form-field-error [formGroup]=\"programClassForm\"></cide-form-field-error>\n </div>\n\n <!-- Action Buttons -->\n <div class=\"tw-flex tw-justify-end tw-gap-4\">\n @if (!isEditMode()) {\n <button cideEleButton type=\"button\" variant=\"secondary\" (click)=\"resetForm()\" leftIcon=\"refresh\"\n [disabled]=\"loading()\">\n Reset Form\n </button>\n }\n\n <button cideEleButton type=\"button\" variant=\"secondary\" (click)=\"cancelForm()\" leftIcon=\"close\"\n [disabled]=\"loading()\">\n Cancel\n </button>\n\n @if ((isEditMode() && canEdit()) || (!isEditMode() && canCreate())) {\n <button cideEleButton type=\"submit\" variant=\"primary\" [disabled]=\"loading() || programClassForm.invalid\"\n [loading]=\"loading()\" leftIcon=\"save\">\n {{ isEditMode() ? 'Update Program Class' : 'Create Program Class' }}\n </button>\n }\n </div>\n </div>\n </div>\n </div>\n </form>\n</cide-lyt-shared-wrapper>" }]
|
|
483
487
|
}], ctorParameters: () => [] });
|
|
484
488
|
|
|
485
489
|
export { ProgramClassCreateComponent };
|
|
486
|
-
//# sourceMappingURL=cloud-ide-academics-program-class-create.component-
|
|
490
|
+
//# sourceMappingURL=cloud-ide-academics-program-class-create.component-Bd6yGQ3X.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloud-ide-academics-program-class-create.component-Bd6yGQ3X.mjs","sources":["../../../projects/cloud-ide-academics/src/lib/collection/program-class-management/components/program-class-create/program-class-create.component.ts","../../../projects/cloud-ide-academics/src/lib/collection/program-class-management/components/program-class-create/program-class-create.component.html"],"sourcesContent":["import { Component, inject, signal, computed, OnInit, DestroyRef, OnDestroy, ChangeDetectorRef } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormBuilder, FormGroup, FormArray, ReactiveFormsModule, Validators } from '@angular/forms';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { Location } from '@angular/common';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { CideInputComponent, CideTextareaComponent, CideEleButtonComponent, CideIconComponent, CideSelectComponent, NotificationService, ConfirmationService, CideFormFieldErrorComponent } from 'cloud-ide-element';\nimport { AppStateHelperService, CideLytSharedWrapperComponent, ComponentContextService, RightsService, CideLytRequestService } from 'cloud-ide-layout';\nimport { CideCoreGeneralMasterService } from 'cloud-ide-core';\nimport { CideLytAcademicYearService } from '../../../academic-year-management';\nimport { CideLytProgramClassService } from '../../services/program-class.service';\nimport { AcaAcademicYear, ICoreSygms, generateObjectFromString } from 'cloud-ide-lms-model';\n\n// Interfaces based on the model files\ninterface ProgramClass {\n _id?: string;\n acacpm_class_program_id_sygms?: string;\n acacpm_alise_title?: string;\n acacpm_academic_year_id_acayr?: string;\n acacpm_entity_id_syen?: string;\n acacpm_isactive?: boolean;\n}\n\n\ninterface AcademicYear {\n _id?: string;\n acayr_name?: string;\n acayr_code?: string;\n}\n\ninterface ClassProgram {\n _id?: string;\n sygmt_name?: string;\n sygmt_code?: string;\n}\n\n@Component({\n selector: 'cide-academics-program-class-create',\n standalone: true,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n CideInputComponent,\n CideEleButtonComponent,\n CideIconComponent,\n CideSelectComponent,\n CideLytSharedWrapperComponent,\n CideFormFieldErrorComponent\n ],\n templateUrl: './program-class-create.component.html'\n})\nexport class ProgramClassCreateComponent implements OnInit, OnDestroy {\n // Dependency injection\n private destroyRef = inject(DestroyRef);\n private fb = inject(FormBuilder);\n private generalMasterService = inject(CideCoreGeneralMasterService);\n private academicYearService = inject(CideLytAcademicYearService);\n private programClassService = inject(CideLytProgramClassService);\n private router = inject(Router);\n private route = inject(ActivatedRoute);\n private location = inject(Location);\n private appState = inject(AppStateHelperService);\n private notificationService = inject(NotificationService);\n private confirmationService = inject(ConfirmationService);\n private componentContextService = inject(ComponentContextService);\n private rightsService = inject(RightsService);\n private cdr = inject(ChangeDetectorRef);\n private requestService = inject(CideLytRequestService); // Injected as any if needed to bypass strict checks during build issues\n\n programClassForm: FormGroup;\n loading = signal(false);\n error = signal<string | null>(null);\n\n // Program class information from route\n programClassId = signal<string>('');\n isEditMode = signal(false);\n isViewMode = signal(false);\n\n // Data signals\n academicYears = signal<AcademicYear[]>([]);\n classPrograms = signal<ClassProgram[]>([]);\n\n // Options for dropdowns\n academicYearOptions = signal<AcaAcademicYear[]>([]);\n classProgramOptions = signal<ICoreSygms[]>([]);\n\n // Signal for breadcrumb data that will be passed to shared wrapper\n breadcrumbData = signal<{ id: string; label: string; icon?: string; url?: string }[]>([]);\n\n constructor() {\n this.programClassForm = this.fb.group({\n // Basic Program Class Information\n acacpm_class_program_id_sygms: ['', [Validators.required]],\n acacpm_alise_title: ['', [Validators.required, Validators.minLength(2)]],\n acacpm_academic_year_id_acayr: [{ value: '', disabled: true }, [Validators.required]],\n acacpm_entity_id_syen: [''], // Set automatically from app state\n acacpm_isactive: [true]\n });\n }\n\n // Rights computed signals\n canCreate = computed(() => this.rightsService.hasRight('CREATE'));\n canEdit = computed(() => this.rightsService.hasRight('EDIT'));\n\n ngOnInit(): void {\n // Initialize rights for program class management\n this.rightsService.initializeRights('program_class');\n this.initializeComponent();\n this.setupFormSubscriptions();\n }\n\n /**\n * Update breadcrumb data based on mode\n */\n private updateBreadcrumbData(): void {\n const additionalItems: { id: string; label: string; icon?: string; url?: string }[] = [];\n\n if (this.isViewMode()) {\n additionalItems.push({\n id: 'view',\n label: 'View',\n icon: 'visibility',\n url: undefined\n });\n } else if (this.isEditMode()) {\n additionalItems.push({\n id: 'edit',\n label: 'Edit',\n icon: 'edit',\n url: undefined\n });\n } else {\n additionalItems.push({\n id: 'create',\n label: 'Create',\n icon: 'add',\n url: undefined\n });\n }\n\n this.breadcrumbData.set(additionalItems);\n }\n\n /**\n * Initialize component\n */\n private initializeComponent(): void {\n // Set entity ID from app state\n this.setEntityFromAppState();\n\n // Get program class information from route (for edit/view mode)\n this.route.params.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(params => {\n const queryParams = params['query'];\n console.log('🔍 Route params:', queryParams);\n\n if (queryParams) {\n // Query parameters passed (following page-controls pattern)\n const queryData = generateObjectFromString(queryParams);\n if (queryData?.acacpm_id) {\n this.programClassId.set(queryData.acacpm_id as string);\n this.isEditMode.set(true);\n this.loadProgramClassData(queryData.acacpm_id as string);\n }\n } else {\n // Check URL path for edit/view mode\n const url = this.router.url;\n if (url.includes('/view/')) {\n this.isViewMode.set(true);\n // Extract ID from URL path\n const pathSegments = url.split('/');\n const id = pathSegments[pathSegments.length - 1];\n if (id) {\n this.programClassId.set(id);\n this.loadProgramClassData(id);\n }\n } else if (url.includes('/edit/')) {\n this.isEditMode.set(true);\n // Extract ID from URL path\n const pathSegments = url.split('/');\n const id = pathSegments[pathSegments.length - 1];\n if (id) {\n this.programClassId.set(id);\n this.loadProgramClassData(id);\n }\n } else {\n // Create mode\n this.isEditMode.set(false);\n this.isViewMode.set(false);\n }\n }\n\n // Always load dropdown options\n this.loadDropdownOptions();\n });\n }\n\n\n /**\n * Set entity ID from app state\n */\n private setEntityFromAppState(): void {\n const activeEntity = this.appState.activeEntity();\n // Always set entity ID, even if null (for create mode)\n const entityId = activeEntity?._id || null;\n this.programClassForm.patchValue({\n acacpm_entity_id_syen: entityId\n });\n if (entityId) {\n console.log('✅ Entity ID set from app state:', entityId);\n } else {\n console.warn('⚠️ No active entity found in app state, setting to null');\n }\n }\n\n /**\n * Set default academic year from AppStateService\n * Simply read from AppStateService - no extra logic needed\n * Academic year is always disabled in all modes (create, edit, view)\n */\n private setDefaultAcademicYear(academicYears: AcaAcademicYear[]): void {\n // Get active academic year from AppStateService\n const activeAcademicYear = this.appState.getActiveAcademicYear();\n\n if (activeAcademicYear) {\n // Verify the academic year exists in the available options\n const yearExists = academicYears.find(year => year._id === activeAcademicYear._id);\n if (yearExists) {\n // Set the value first\n this.programClassForm.patchValue({\n acacpm_academic_year_id_acayr: activeAcademicYear._id\n }, { emitEvent: false });\n\n // Always disable academic year dropdown in all modes\n setTimeout(() => {\n const academicYearControl = this.programClassForm.get('acacpm_academic_year_id_acayr');\n if (academicYearControl) {\n academicYearControl.disable({ emitEvent: false });\n // Trigger change detection to update the UI\n this.cdr.detectChanges();\n }\n console.log('✅ Academic year set from AppStateService (always disabled):', activeAcademicYear.acayr_name, activeAcademicYear._id, 'Value:', academicYearControl?.value);\n }, 100);\n } else {\n console.warn('⚠️ Active academic year from AppStateService not found in available options:', activeAcademicYear._id);\n }\n } else {\n console.warn('⚠️ No active academic year found in AppStateService');\n }\n }\n\n /**\n * Setup form subscriptions for auto-population\n */\n private setupFormSubscriptions(): void {\n // Listen for class program selection changes\n this.programClassForm.get('acacpm_class_program_id_sygms')?.valueChanges\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((selectedClassProgramId) => {\n if (selectedClassProgramId) {\n this.updateProgramClassName(selectedClassProgramId);\n }\n });\n }\n\n /**\n * Update program class name based on selected class program\n */\n private updateProgramClassName(selectedClassProgramId: string): void {\n const selectedClassProgram = this.classProgramOptions().find(option => option._id === selectedClassProgramId);\n\n if (selectedClassProgram && selectedClassProgram.sygms_title) {\n // Only update if the title field is empty or if user hasn't manually changed it\n const currentTitle = this.programClassForm.get('acacpm_alise_title')?.value;\n if (!currentTitle || currentTitle.trim() === '') {\n this.programClassForm.patchValue({\n acacpm_alise_title: selectedClassProgram.sygms_title\n });\n console.log('✅ Program class title auto-populated:', selectedClassProgram.sygms_title);\n }\n }\n }\n\n /**\n * Load program class data for edit/view mode\n */\n private loadProgramClassData(programClassId: string): void {\n this.loading.set(true);\n this.error.set(null);\n\n // Create payload for getting program class by ID\n const payload = {\n acacpm_id: programClassId\n };\n\n // Load program class data\n this.programClassService.getProgramClassById(payload)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe({\n next: (response) => {\n if (response?.success && response.data) {\n console.log('📚 Program class data loaded:', response.data);\n this.populateFormWithProgramClassData(response.data);\n\n // Disable form if in view mode\n if (this.isViewMode()) {\n this.programClassForm.disable();\n }\n } else {\n console.error('❌ Failed to load program class data');\n this.error.set('Failed to load program class data');\n }\n this.loading.set(false);\n },\n error: (error) => {\n console.error('❌ Error loading program class data:', error);\n this.error.set('Error loading program class data');\n this.loading.set(false);\n }\n });\n }\n\n /**\n * Populate form with program class data\n */\n private populateFormWithProgramClassData(data: any): void {\n this.programClassForm.patchValue({\n acacpm_class_program_id_sygms: data.acacpm_class_program_id_sygms?._id || data.acacpm_class_program_id_sygms,\n acacpm_alise_title: data.acacpm_alise_title,\n acacpm_academic_year_id_acayr: data.acacpm_academic_year_id_acayr?._id || data.acacpm_academic_year_id_acayr,\n acacpm_entity_id_syen: data.acacpm_entity_id_syen?._id || data.acacpm_entity_id_syen,\n acacpm_isactive: data.acacpm_isactive\n });\n\n // Academic year is always disabled in all modes (create, edit, view)\n // Ensure it remains disabled after populating form data\n const academicYearControl = this.programClassForm.get('acacpm_academic_year_id_acayr');\n if (academicYearControl && !academicYearControl.disabled) {\n academicYearControl.disable({ emitEvent: false });\n }\n\n // Class program is disabled in edit and view modes only\n // In edit/view mode, disable it after populating form data\n if (this.isEditMode() || this.isViewMode()) {\n const classProgramControl = this.programClassForm.get('acacpm_class_program_id_sygms');\n if (classProgramControl && !classProgramControl.disabled) {\n classProgramControl.disable({ emitEvent: false });\n }\n }\n }\n\n /**\n * Load dropdown options\n */\n private loadDropdownOptions(): void {\n // Load academic year options from academic year service\n this.academicYearService.getAcademicYearList({})\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe({\n next: (response) => {\n console.log('🔍 Academic Year API Response:', response);\n if (response?.success && response.data) {\n console.log('📚 Academic years loaded from service:', response.data);\n this.academicYearOptions.set(response.data);\n console.log('✅ academicYearOptions signal updated:', this.academicYearOptions());\n\n // Set default academic year to the current one\n this.setDefaultAcademicYear(response.data);\n } else {\n console.warn('⚠️ No academic year data received from service');\n this.academicYearOptions.set([]);\n }\n },\n error: (error) => {\n console.error('❌ Error loading academic years from service:', error);\n this.academicYearOptions.set([]);\n }\n });\n\n // Load class program options from general master service\n this.generalMasterService.getMasterList({ sygmt_code: 'class_program_type' })\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe({\n next: (response) => {\n console.log('🔍 General Master API Response:', response);\n if (response?.success && response.data) {\n console.log('📚 Class program types loaded from general master:', response.data);\n // Use the response data directly without transformation\n this.classProgramOptions.set(response.data);\n console.log('✅ classProgramOptions signal updated:', this.classProgramOptions());\n } else {\n console.warn('⚠️ No class program type data received from general master');\n this.classProgramOptions.set([]);\n }\n },\n error: (error) => {\n console.error('❌ Error loading class program types from general master:', error);\n this.classProgramOptions.set([]);\n }\n });\n }\n\n\n onSubmit() {\n if (this.isViewMode()) {\n this.location.back();\n return;\n }\n\n if (this.programClassForm.invalid) {\n this.notificationService.error('Please fill in all required fields correctly.');\n this.markFormGroupTouched();\n return;\n }\n\n this.loading.set(true);\n this.error.set(null);\n\n // Get form data and include disabled fields\n const formData = { ...this.programClassForm.getRawValue() };\n console.log('Program Class Form Data:', formData);\n\n // Ensure entity ID is set from app state if not already set\n if (!formData.acacpm_entity_id_syen) {\n const activeEntity = this.appState.activeEntity();\n formData.acacpm_entity_id_syen = activeEntity?._id || null;\n }\n\n // Add ID for edit mode\n if (this.isEditMode()) {\n formData._id = this.programClassId();\n }\n\n // Make API call to save program class\n this.programClassService.saveProgramClass(formData)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe({\n next: (response) => {\n if (response?.success) {\n const action = this.isEditMode() ? 'updated' : 'created';\n this.notificationService.success(`Program class has been ${action} successfully.`);\n\n // Force refresh list route\n this.requestService.forceRefreshRoute('/control-panel/program-class-management');\n\n // Close the current tab\n const activeTabId = this.requestService.activeTabId();\n if (activeTabId) {\n this.requestService.closeTab(activeTabId);\n } else {\n // Fallback for standalone mode\n this.router.navigate(['/control-panel/program-class-management']);\n }\n } else {\n this.notificationService.error(response?.message || 'Failed to save program class.');\n }\n this.loading.set(false);\n },\n error: (error: unknown) => {\n console.error('Error saving program class:', error);\n this.loading.set(false);\n\n // Extract error message from API response\n const errorMessage = error && typeof error === 'object' && 'error' in error\n ? (error.error && typeof error.error === 'object' && 'message' in error.error\n ? String(error.error.message)\n : 'message' in error ? String(error.message) : 'An error occurred while saving the program class.')\n : error && typeof error === 'object' && 'message' in error\n ? String(error.message)\n : 'An error occurred while saving the program class.';\n\n this.error.set(errorMessage);\n this.notificationService.error(errorMessage);\n }\n });\n }\n\n /**\n * Mark all form controls as touched to trigger validation display\n */\n private markFormGroupTouched(): void {\n Object.keys(this.programClassForm.controls).forEach(key => {\n const control = this.programClassForm.get(key);\n control?.markAsTouched();\n });\n }\n\n resetForm() {\n if (this.isEditMode() && this.programClassId()) {\n // Reload data in edit mode\n this.loadProgramClassData(this.programClassId());\n } else {\n // Reset to defaults in create mode\n this.programClassForm.reset({\n acacpm_isactive: true\n });\n }\n }\n\n /**\n * Toggle active status when card is clicked\n */\n toggleActiveStatus(): void {\n const currentValue = this.programClassForm.get('acacpm_isactive')?.value;\n this.programClassForm.patchValue({\n acacpm_isactive: !currentValue\n });\n }\n\n /**\n * Go back to previous page using browser history\n */\n goBackToProgramClassList(): void {\n this.componentContextService.close(['/control-panel/program-class-management']);\n }\n\n /**\n * Cancel form and navigate to listing page\n */\n cancelForm(): void {\n this.componentContextService.close(['/control-panel/program-class-management']);\n }\n\n /**\n * Get page title based on mode\n */\n getPageTitle(): string {\n if (this.isViewMode()) return 'View Program Class';\n return this.isEditMode() ? 'Edit Program Class' : 'Create New Program Class';\n }\n\n /**\n * Cleanup when component is destroyed\n */\n ngOnDestroy(): void {\n console.log('🧹 ProgramClassCreateComponent: Cleaning up component state');\n\n // Reset all signals to their initial state\n this.loading.set(false);\n this.error.set(null);\n this.programClassId.set('');\n this.isEditMode.set(false);\n this.academicYearOptions.set([]);\n this.classProgramOptions.set([]);\n\n // Reset form to initial state\n this.resetForm();\n\n console.log('🧹 ProgramClassCreateComponent: Component state cleaned up');\n }\n}\n","<!-- \n PROGRAM CLASS MASTER FORM\n \n Enterprise-Level Styling with Tailwind CSS\n Features: Responsive grids, proper typography, enhanced user experience\n-->\n\n<cide-lyt-shared-wrapper [shared_wrapper_setup_param]=\"{ sypg_page_code: 'program_class_create' }\"\n [breadcrumb_data]=\"breadcrumbData()\">\n\n <form class=\"tw-w-full tw-table tw-h-full tw-bg-transparent\" [formGroup]=\"programClassForm\"\n [class.tw-opacity-60]=\"loading()\" (ngSubmit)=\"onSubmit()\">\n\n <!-- Form Content -->\n <div class=\"tw-table-row\">\n <div class=\"tw-table-cell tw-w-full tw-px-6 tw-py-6\">\n <div class=\"tw-transition-opacity tw-duration-300\" [class.tw-opacity-60]=\"loading()\">\n <!-- Basic Program Class Information -->\n <div class=\"tw-space-y-6\">\n <!-- Class Program and Academic Year at the top -->\n <div class=\"tw-grid tw-grid-cols-1 md:tw-grid-cols-2 tw-gap-6\">\n <div class=\"tw-space-y-2\">\n <label class=\"tw-text-sm tw-font-medium tw-text-gray-700\">Academic Year</label>\n <cide-ele-select formControlName=\"acacpm_academic_year_id_acayr\" placeholder=\"Select academic year\"\n [disabled]=\"true\" valueKey=\"_id\" labelKey=\"acayr_name\" [options]=\"academicYearOptions()\">\n </cide-ele-select>\n </div>\n\n <div class=\"tw-space-y-2\">\n <label class=\"tw-text-sm tw-font-medium tw-text-gray-700\">Class Program</label>\n <cide-ele-select formControlName=\"acacpm_class_program_id_sygms\" placeholder=\"Select class program\"\n [disabled]=\"isEditMode() || isViewMode()\" valueKey=\"_id\" labelKey=\"sygms_title\"\n [options]=\"classProgramOptions()\"\n [treeView]=\"{ enabled: true, primaryKey: '_id', foreignKey: 'sygms_id_sygms' }\" [searchable]=\"true\">\n </cide-ele-select>\n </div>\n </div>\n\n <div class=\"tw-grid tw-grid-cols-1 md:tw-grid-cols-2 tw-gap-6\">\n <cide-ele-input label=\"Program Class Title\" formControlName=\"acacpm_alise_title\"\n placeholder=\"e.g., Program Class 2024-2025\" size=\"md\" leadingIcon=\"school\">\n </cide-ele-input>\n\n <div\n class=\"tw-flex tw-items-center tw-gap-3 tw-p-4 tw-bg-gray-50 tw-rounded-lg tw-border tw-border-gray-200 tw-cursor-pointer hover:tw-bg-gray-100 tw-transition-colors tw-duration-200\"\n (click)=\"toggleActiveStatus()\">\n <cide-ele-input formControlName=\"acacpm_isactive\" type=\"checkbox\" size=\"md\"\n (click)=\"$event.stopPropagation()\">\n </cide-ele-input>\n <div class=\"tw-flex tw-flex-col\">\n <span class=\"tw-text-sm tw-font-medium tw-text-gray-700\">Active</span>\n <span class=\"tw-text-xs tw-text-gray-500\">Enable/disable this program class</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Error Display -->\n @if (error()) {\n <div class=\"tw-mt-6 tw-p-4 tw-bg-red-50 tw-border tw-border-red-200 tw-rounded-lg\">\n <div class=\"tw-flex tw-items-center tw-gap-2\">\n <cide-ele-icon variant=\"red\" size=\"sm\">error</cide-ele-icon>\n <span class=\"tw-text-sm tw-font-medium tw-text-red-800\">{{ error() }}</span>\n </div>\n </div>\n }\n </div>\n </div>\n\n <!-- Form Actions -->\n <div class=\"tw-table-row tw-h-0\">\n <div class=\"tw-table-cell tw-w-full tw-px-6 tw-py-2 tw-bg-gray-50 tw-border-t tw-border-gray-200\">\n <div class=\"tw-flex tw-flex-col tw-gap-3\">\n <!-- Form Validation Errors -->\n <div class=\"tw-w-full\">\n <cide-form-field-error [formGroup]=\"programClassForm\"></cide-form-field-error>\n </div>\n\n <!-- Action Buttons -->\n <div class=\"tw-flex tw-justify-end tw-gap-4\">\n @if (!isEditMode()) {\n <button cideEleButton type=\"button\" variant=\"secondary\" (click)=\"resetForm()\" leftIcon=\"refresh\"\n [disabled]=\"loading()\">\n Reset Form\n </button>\n }\n\n <button cideEleButton type=\"button\" variant=\"secondary\" (click)=\"cancelForm()\" leftIcon=\"close\"\n [disabled]=\"loading()\">\n Cancel\n </button>\n\n @if ((isEditMode() && canEdit()) || (!isEditMode() && canCreate())) {\n <button cideEleButton type=\"submit\" variant=\"primary\" [disabled]=\"loading() || programClassForm.invalid\"\n [loading]=\"loading()\" leftIcon=\"save\">\n {{ isEditMode() ? 'Update Program Class' : 'Create Program Class' }}\n </button>\n }\n </div>\n </div>\n </div>\n </div>\n </form>\n</cide-lyt-shared-wrapper>"],"names":[],"mappings":";;;;;;;;;;;;;MAmDa,2BAA2B,CAAA;;AAE9B,IAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAC/B,IAAA,EAAE,GAAG,MAAM,CAAC,WAAW,CAAC;AACxB,IAAA,oBAAoB,GAAG,MAAM,CAAC,4BAA4B,CAAC;AAC3D,IAAA,mBAAmB,GAAG,MAAM,CAAC,0BAA0B,CAAC;AACxD,IAAA,mBAAmB,GAAG,MAAM,CAAC,0BAA0B,CAAC;AACxD,IAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,IAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,IAAA,QAAQ,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACxC,IAAA,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACjD,IAAA,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACjD,IAAA,uBAAuB,GAAG,MAAM,CAAC,uBAAuB,CAAC;AACzD,IAAA,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;AACrC,IAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC/B,IAAA,cAAc,GAAG,MAAM,CAAC,qBAAqB,C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wBAC7B;AACD,qBAAA,EAAA,QAAA,EAAA,s8JAAA,EAAA;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject,
|
|
2
|
+
import { inject, DestroyRef, signal, viewChild, computed, Component } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import { Router } from '@angular/router';
|
|
@@ -7,151 +7,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
|
7
7
|
import { NotificationService, ConfirmationService, CideEleDataGridComponent, CideIconComponent, CideEleButtonComponent, CideEleDropdownComponent } from 'cloud-ide-element';
|
|
8
8
|
import { AppStateHelperService, RightsService, CideLytSharedWrapperComponent } from 'cloud-ide-layout';
|
|
9
9
|
import { generateStringFromObject } from 'cloud-ide-lms-model';
|
|
10
|
-
import { C as CideLytProgramClassService } from './cloud-ide-academics-cloud-ide-academics-
|
|
11
|
-
import { of, map, catchError } from 'rxjs';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Shared service for checking class program configuration features
|
|
15
|
-
* Supports two modes:
|
|
16
|
-
* 1. By ID: Makes API call to fetch program class, then checks configuration
|
|
17
|
-
* 2. By Configuration: Directly checks provided configuration object
|
|
18
|
-
*/
|
|
19
|
-
class ClassProgramConfigurationService {
|
|
20
|
-
programClassService = inject(CideLytProgramClassService);
|
|
21
|
-
/**
|
|
22
|
-
* Parse configuration from general master
|
|
23
|
-
* Handles both string (JSON) and object formats
|
|
24
|
-
* @param generalMaster - General master object containing sygms_configuration
|
|
25
|
-
* @returns Parsed configuration object or undefined
|
|
26
|
-
*/
|
|
27
|
-
parseConfiguration(generalMaster) {
|
|
28
|
-
if (!generalMaster || typeof generalMaster !== 'object') {
|
|
29
|
-
return undefined;
|
|
30
|
-
}
|
|
31
|
-
if (!('sygms_configuration' in generalMaster)) {
|
|
32
|
-
return undefined;
|
|
33
|
-
}
|
|
34
|
-
const configValue = generalMaster.sygms_configuration;
|
|
35
|
-
if (!configValue) {
|
|
36
|
-
return undefined;
|
|
37
|
-
}
|
|
38
|
-
if (typeof configValue === 'string') {
|
|
39
|
-
try {
|
|
40
|
-
return JSON.parse(configValue);
|
|
41
|
-
}
|
|
42
|
-
catch {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
else if (typeof configValue === 'object' && configValue !== null) {
|
|
47
|
-
return configValue;
|
|
48
|
-
}
|
|
49
|
-
return undefined;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Check if branch functionality is enabled from configuration object
|
|
53
|
-
* @param config - Configuration object
|
|
54
|
-
* @returns true if branchType is true, false otherwise
|
|
55
|
-
*/
|
|
56
|
-
hasBranchFunctionalityFromConfig(config) {
|
|
57
|
-
return config?.branchType === true;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Check if branch functionality is enabled from general master object
|
|
61
|
-
* @param generalMaster - General master object containing sygms_configuration
|
|
62
|
-
* @returns true if branchType is true, false otherwise
|
|
63
|
-
*/
|
|
64
|
-
hasBranchFunctionalityFromGeneralMaster(generalMaster) {
|
|
65
|
-
const config = this.parseConfiguration(generalMaster);
|
|
66
|
-
return this.hasBranchFunctionalityFromConfig(config);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Check if branch functionality is enabled from program class object
|
|
70
|
-
* @param programClass - Program class object containing acacpm_class_program_id_sygms
|
|
71
|
-
* @returns true if branchType is true, false otherwise
|
|
72
|
-
*/
|
|
73
|
-
hasBranchFunctionalityFromProgramClass(programClass) {
|
|
74
|
-
if (!programClass) {
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
const generalMaster = programClass.acacpm_class_program_id_sygms;
|
|
78
|
-
return this.hasBranchFunctionalityFromGeneralMaster(generalMaster);
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Check if branch functionality is enabled by fetching program class by ID
|
|
82
|
-
* Makes an API call to get the program class, then checks the configuration
|
|
83
|
-
* @param programClassId - ID of the program class
|
|
84
|
-
* @returns Observable<boolean> - true if branchType is true, false otherwise
|
|
85
|
-
*/
|
|
86
|
-
hasBranchFunctionalityById(programClassId) {
|
|
87
|
-
if (!programClassId || programClassId.trim() === '') {
|
|
88
|
-
return of(false);
|
|
89
|
-
}
|
|
90
|
-
const payload = {
|
|
91
|
-
acacpm_id: programClassId
|
|
92
|
-
};
|
|
93
|
-
return this.programClassService.getProgramClassById(payload).pipe(map((response) => {
|
|
94
|
-
if (!response?.success || !response.data) {
|
|
95
|
-
return false;
|
|
96
|
-
}
|
|
97
|
-
const programClass = response.data;
|
|
98
|
-
return this.hasBranchFunctionalityFromProgramClass(programClass);
|
|
99
|
-
}), catchError(() => {
|
|
100
|
-
return of(false);
|
|
101
|
-
}));
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Get configuration from general master
|
|
105
|
-
* @param generalMaster - General master object containing sygms_configuration
|
|
106
|
-
* @returns Configuration object or undefined
|
|
107
|
-
*/
|
|
108
|
-
getConfiguration(generalMaster) {
|
|
109
|
-
return this.parseConfiguration(generalMaster);
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Get configuration from program class object
|
|
113
|
-
* @param programClass - Program class object containing acacpm_class_program_id_sygms
|
|
114
|
-
* @returns Configuration object or undefined
|
|
115
|
-
*/
|
|
116
|
-
getConfigurationFromProgramClass(programClass) {
|
|
117
|
-
if (!programClass) {
|
|
118
|
-
return undefined;
|
|
119
|
-
}
|
|
120
|
-
const generalMaster = programClass.acacpm_class_program_id_sygms;
|
|
121
|
-
return this.getConfiguration(generalMaster);
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Get configuration by fetching program class by ID
|
|
125
|
-
* Makes an API call to get the program class, then extracts the configuration
|
|
126
|
-
* @param programClassId - ID of the program class
|
|
127
|
-
* @returns Observable<ClassProgramConfiguration | undefined> - Configuration object or undefined
|
|
128
|
-
*/
|
|
129
|
-
getConfigurationById(programClassId) {
|
|
130
|
-
if (!programClassId || programClassId.trim() === '') {
|
|
131
|
-
return of(undefined);
|
|
132
|
-
}
|
|
133
|
-
const payload = {
|
|
134
|
-
acacpm_id: programClassId
|
|
135
|
-
};
|
|
136
|
-
return this.programClassService.getProgramClassById(payload).pipe(map((response) => {
|
|
137
|
-
if (!response?.success || !response.data) {
|
|
138
|
-
return undefined;
|
|
139
|
-
}
|
|
140
|
-
const programClass = response.data;
|
|
141
|
-
return this.getConfigurationFromProgramClass(programClass);
|
|
142
|
-
}), catchError(() => {
|
|
143
|
-
return of(undefined);
|
|
144
|
-
}));
|
|
145
|
-
}
|
|
146
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ClassProgramConfigurationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
147
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ClassProgramConfigurationService, providedIn: 'root' });
|
|
148
|
-
}
|
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: ClassProgramConfigurationService, decorators: [{
|
|
150
|
-
type: Injectable,
|
|
151
|
-
args: [{
|
|
152
|
-
providedIn: 'root'
|
|
153
|
-
}]
|
|
154
|
-
}] });
|
|
10
|
+
import { C as CideLytProgramClassService, a as ClassProgramConfigurationService } from './cloud-ide-academics-cloud-ide-academics-BRQerudY.mjs';
|
|
155
11
|
|
|
156
12
|
class ProgramClassListComponent {
|
|
157
13
|
// Dependency injection
|
|
@@ -614,4 +470,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
614
470
|
}], propDecorators: { programClassDetailsRendererTemplate: [{ type: i0.ViewChild, args: ['programClassDetailsRendererTemplate', { isSignal: true }] }], programClassStatusRendererTemplate: [{ type: i0.ViewChild, args: ['programClassStatusRendererTemplate', { isSignal: true }] }], classProgramRendererTemplate: [{ type: i0.ViewChild, args: ['classProgramRendererTemplate', { isSignal: true }] }], academicYearRendererTemplate: [{ type: i0.ViewChild, args: ['academicYearRendererTemplate', { isSignal: true }] }], actionsDropdownRendererTemplate: [{ type: i0.ViewChild, args: ['actionsDropdownRendererTemplate', { isSignal: true }] }] } });
|
|
615
471
|
|
|
616
472
|
export { ProgramClassListComponent };
|
|
617
|
-
//# sourceMappingURL=cloud-ide-academics-program-class-list.component-
|
|
473
|
+
//# sourceMappingURL=cloud-ide-academics-program-class-list.component-D591YMJ3.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloud-ide-academics-program-class-list.component-D591YMJ3.mjs","sources":["../../../projects/cloud-ide-academics/src/lib/collection/program-class-management/components/program-class-list/program-class-list.component.ts","../../../projects/cloud-ide-academics/src/lib/collection/program-class-management/components/program-class-list/program-class-list.component.html"],"sourcesContent":["import { Component, signal, computed, viewChild, TemplateRef, DestroyRef, inject, OnInit } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { Router } from '@angular/router';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { CideEleDataGridComponent, CideIconComponent, CideEleButtonComponent, GridConfiguration, GridEvent, CideEleDropdownComponent, DropdownItem, NotificationService, ConfirmationService } from 'cloud-ide-element';\nimport { TemplateContext } from 'cloud-ide-element';\nimport { AppStateHelperService, CideLytSharedWrapperComponent, RightsService } from 'cloud-ide-layout';\nimport { \n type MClassProgramMaster,\n type MClassProgramMasterDeletePayload,\n type MClassProgramMasterToggleStatusPayload,\n type AcaClassProgramMasterResponse,\n generateStringFromObject\n} from 'cloud-ide-lms-model';\nimport { CideLytProgramClassService } from '../../services/program-class.service';\nimport { ClassProgramConfigurationService } from '../../../../shared/services';\n\n@Component({\n selector: 'cide-academics-program-class-list',\n standalone: true,\n imports: [\n CommonModule,\n CideEleDataGridComponent,\n CideIconComponent,\n CideEleButtonComponent,\n CideEleDropdownComponent,\n CideLytSharedWrapperComponent\n ],\n templateUrl: './program-class-list.component.html',\n styles: [``]\n})\nexport class ProgramClassListComponent implements OnInit {\n // Dependency injection\n private destroyRef = inject(DestroyRef);\n private router = inject(Router);\n private appState = inject(AppStateHelperService);\n private notificationService = inject(NotificationService);\n private confirmationService = inject(ConfirmationService);\n private programClassService = inject(CideLytProgramClassService);\n private rightsService = inject(RightsService);\n private classProgramConfigService = inject(ClassProgramConfigurationService);\n\n // Signal for breadcrumb data that will be passed to shared wrapper\n breadcrumbData = signal<{ id: string; label: string; icon?: string; url?: string }[]>([]);\n\n // Modern ViewChild signals for template renderers (Angular 20 approach)\n programClassDetailsRendererTemplate = viewChild.required<TemplateRef<TemplateContext>>('programClassDetailsRendererTemplate');\n programClassStatusRendererTemplate = viewChild.required<TemplateRef<TemplateContext>>('programClassStatusRendererTemplate');\n classProgramRendererTemplate = viewChild.required<TemplateRef<TemplateContext>>('classProgramRendererTemplate');\n academicYearRendererTemplate = viewChild.required<TemplateRef<TemplateContext>>('academicYearRendererTemplate');\n actionsDropdownRendererTemplate = viewChild.required<TemplateRef<TemplateContext>>('actionsDropdownRendererTemplate');\n\n // Computed template renderers for grid\n templateRenderers = computed((): Record<string, TemplateRef<TemplateContext>> => ({\n programClassDetailsRenderer: this.programClassDetailsRendererTemplate(),\n programClassStatusRenderer: this.programClassStatusRendererTemplate(),\n classProgramRenderer: this.classProgramRendererTemplate(),\n academicYearRenderer: this.academicYearRendererTemplate(),\n actionsDropdownRenderer: this.actionsDropdownRendererTemplate()\n }));\n\n // Make Math available in template\n Math = Math;\n\n // Signals for reactive state management\n programClasses = signal<AcaClassProgramMasterResponse[]>([]);\n loading = signal(false);\n error = signal<string | null>(null);\n selectedItems = signal<string[]>([]);\n searchTerm = signal('');\n\n // Derived list filtered by searchTerm\n filteredProgramClasses = computed(() => {\n const q = (this.searchTerm() || '').toLowerCase().trim();\n const items = this.programClasses() || [];\n if (!q) return items;\n return items.filter(pc => {\n const title = (pc.acacpm_alise_title || '').toLowerCase();\n // Handle union type: ClassProgramGeneralMaster | { _id, acacpm_name, sygms_configuration }\n const generalMaster = pc.acacpm_class_program_id_sygms;\n const classProgramTitle = (\n (generalMaster && 'sygms_title' in generalMaster ? generalMaster.sygms_title : \n generalMaster && 'acacpm_name' in generalMaster ? generalMaster.acacpm_name : '') || ''\n ).toLowerCase();\n const academicYearName = (pc.acacpm_academic_year_id_acayr?.acayr_name || '').toLowerCase();\n const entityName = (pc.acacpm_entity_id_syen?.syen_name || '').toLowerCase();\n return title.includes(q) || classProgramTitle.includes(q) || academicYearName.includes(q) || entityName.includes(q);\n });\n });\n\n // Grid configuration signal\n gridConfig = signal<GridConfiguration<AcaClassProgramMasterResponse>>({\n id: 'program-class-list-grid',\n columns: [\n {\n key: 'details',\n header: 'Program Class Details',\n type: 'custom',\n width: '250px',\n truncate: true,\n align: 'left',\n renderer: 'programClassDetailsRenderer'\n },\n {\n key: 'acacpm_class_program_id_sygms',\n header: 'Class Program',\n type: 'custom',\n width: '250px',\n truncate: true,\n align: 'left',\n renderer: 'classProgramRenderer'\n },\n {\n key: 'acacpm_academic_year_id_acayr',\n header: 'Academic Year',\n type: 'custom',\n width: '220px',\n truncate: true,\n align: 'left',\n renderer: 'academicYearRenderer'\n },\n {\n key: 'acacpm_isactive',\n header: 'Status',\n type: 'custom',\n width: '140px',\n truncate: false,\n align: 'center',\n renderer: 'programClassStatusRenderer'\n },\n {\n key: 'actions',\n header: '',\n type: 'custom',\n width: '150px',\n truncate: false,\n align: 'center',\n renderer: 'actionsDropdownRenderer'\n }\n ],\n data: [],\n trackBy: '_id',\n pagination: {\n enabled: true,\n pageSize: 10,\n pageSizeOptions: [10, 25, 50, 100],\n showQuickJump: true,\n showPageInfo: true,\n showRefresh: true\n },\n search: {\n enabled: true,\n placeholder: 'Search program classes...',\n searchableColumns: ['acacpm_alise_title'],\n debounceMs: 300\n },\n loading: {\n useDefer: true,\n skeletonRows: 5,\n showOverlay: false\n },\n scroll: {\n enabled: true,\n stickyHeader: true,\n virtualScroll: false,\n rowHeight: 50,\n maxHeight: undefined // Explicitly no max-height - grid should fill available space\n },\n fullHeight: true,\n responsive: true,\n striped: false,\n bordered: true,\n compact: false,\n tableClass: 'tw-table-fixed tw-w-full tw-rounded-none'\n });\n\n /**\n * Check if a program class has branch functionality enabled\n * Uses the shared ClassProgramConfigurationService\n * @param programClass - Program class object\n * @returns true if branchType is true in the general master configuration\n */\n hasBranchFunctionality(programClass: AcaClassProgramMasterResponse): boolean {\n // Cast to ProgramClassWithGeneralMaster to match service interface (includes index signature)\n return this.classProgramConfigService.hasBranchFunctionalityFromProgramClass(programClass as any);\n }\n\n /**\n * Get action dropdown items\n */\n getActionDropdownItems(programClass: AcaClassProgramMasterResponse): DropdownItem[] {\n const items: DropdownItem[] = [\n {\n id: 'view',\n label: 'View Details',\n icon: 'visibility',\n iconColor: 'tw-text-gray-400',\n textColor: 'tw-text-gray-700'\n },\n {\n id: 'edit',\n label: 'Edit Program Class',\n icon: 'edit',\n iconColor: 'tw-text-blue-400',\n textColor: 'tw-text-blue-700'\n }\n ];\n\n // Only show \"Manage Branches\" option if the program class has branch functionality enabled\n if (this.hasBranchFunctionality(programClass)) {\n items.push({\n id: 'branch',\n label: 'Manage Branches',\n icon: 'account_tree',\n iconColor: 'tw-text-purple-400',\n textColor: 'tw-text-purple-700'\n });\n }\n\n items.push(\n {\n id: 'toggleStatus',\n label: programClass?.acacpm_isactive ? 'Deactivate' : 'Activate',\n icon: programClass?.acacpm_isactive ? 'toggle_off' : 'toggle_on',\n iconColor: programClass?.acacpm_isactive ? 'tw-text-orange-400' : 'tw-text-green-400',\n textColor: programClass?.acacpm_isactive ? 'tw-text-orange-700' : 'tw-text-green-700'\n },\n {\n id: 'delete',\n label: 'Delete',\n icon: 'delete',\n iconColor: 'tw-text-red-400',\n textColor: 'tw-text-red-700'\n }\n );\n\n return items;\n }\n\n /**\n * Handle dropdown item click\n */\n onDropdownItemClick(item: DropdownItem, programClass: AcaClassProgramMasterResponse): void {\n console.log('🔍 onDropdownItemClick called with:', { item, programClass });\n \n if (!item || !item.id) {\n console.error('Dropdown item is undefined:', item);\n return;\n }\n \n if (!programClass) {\n console.error('Program class is undefined:', programClass);\n this.notificationService.error('Unable to perform action: Invalid data');\n return;\n }\n\n switch (item.id) {\n case 'view':\n this.viewProgramClass(programClass);\n break;\n case 'edit':\n this.editProgramClass(programClass);\n break;\n case 'branch':\n this.manageBranches(programClass);\n break;\n case 'toggleStatus':\n this.toggleProgramClassStatus(programClass);\n break;\n case 'delete':\n this.deleteProgramClass(programClass);\n break;\n default:\n console.warn('Unknown dropdown action:', item.id);\n }\n }\n\n ngOnInit(): void {\n // Initialize rights for program class management\n this.rightsService.initializeRights('program_class');\n this.loadProgramClasses();\n }\n\n // Rights computed signals\n canCreate = computed(() => this.rightsService.hasRight('CREATE'));\n canEdit = computed(() => this.rightsService.hasRight('EDIT'));\n canDelete = computed(() => this.rightsService.hasRight('DELETE'));\n canView = computed(() => this.rightsService.hasRight('VIEW'));\n\n /**\n * Load program classes data\n */\n private loadProgramClasses(): void {\n this.loading.set(true);\n this.error.set(null);\n\n const payload: MClassProgramMaster = {\n acacpm_entity_id_syen: this.appState.getActiveEntityId(),\n pageIndex: 0,\n pageSize: 100,\n query: this.searchTerm() || \"\",\n sort: {\n key: 'acacpm_alise_title',\n order: 'asc'\n }\n };\n\n this.programClassService.getProgramClassList(payload)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe({\n next: (response) => {\n if (response?.success && response.data) {\n console.log('📚 Program classes loaded:', response.data);\n this.programClasses.set(response.data || []);\n this.updateGridData();\n this.notificationService.success(`Loaded ${response.data.length} program class(es) successfully.`);\n } else {\n console.warn('⚠️ No program class data received');\n this.programClasses.set([]);\n this.updateGridData();\n this.notificationService.warning('No program classes found.');\n }\n this.loading.set(false);\n },\n error: (error) => {\n console.error('❌ Error loading program classes:', error);\n this.error.set('Failed to load program classes');\n this.loading.set(false);\n this.notificationService.error('Failed to load program classes');\n }\n });\n }\n\n /**\n * Update grid data\n */\n private updateGridData(): void {\n this.gridConfig.update(config => ({\n ...config,\n data: this.filteredProgramClasses()\n }));\n }\n\n /**\n * Handle grid events\n */\n onGridEvent(event: GridEvent<AcaClassProgramMasterResponse>): void {\n switch (event.type) {\n case 'pageChange':\n if (event.data && typeof event.data === 'object' && 'pageIndex' in event.data && 'pageSize' in event.data) {\n this.loadProgramClasses();\n }\n break;\n case 'search':\n this.searchTerm.set(event.data as string);\n this.updateGridData();\n break;\n case 'refresh':\n this.loadProgramClasses();\n break;\n }\n }\n\n /**\n * Create new program class\n */\n createProgramClass(): void {\n if (!this.rightsService.hasRight('CREATE')) {\n this.notificationService.error('You do not have permission to create program classes');\n return;\n }\n this.router.navigate(['/control-panel/program-class-management/create']);\n }\n\n /**\n * View program class details\n */\n viewProgramClass(programClass: AcaClassProgramMasterResponse): void {\n if (!programClass || !programClass._id) {\n console.error('Program class or ID is undefined:', programClass);\n this.notificationService.error('Unable to view program class: Invalid data');\n return;\n }\n console.log('👁️ Viewing program class:', programClass);\n this.notificationService.info(`Opening program class \"${programClass.acacpm_alise_title}\" for viewing.`);\n const queryParams = generateStringFromObject({ acacpm_id: programClass._id });\n this.router.navigate(['/control-panel/program-class-management/view', queryParams]);\n }\n\n /**\n * Edit program class\n */\n editProgramClass(programClass: AcaClassProgramMasterResponse): void {\n if (!this.rightsService.hasRight('EDIT')) {\n this.notificationService.error('You do not have permission to edit program classes');\n return;\n }\n if (!programClass || !programClass._id) {\n console.error('Program class or ID is undefined:', programClass);\n this.notificationService.error('Unable to edit program class: Invalid data');\n return;\n }\n console.log('✏️ Editing program class:', programClass);\n this.notificationService.info(`Opening program class \"${programClass.acacpm_alise_title}\" for editing.`);\n const queryParams = generateStringFromObject({ acacpm_id: programClass._id });\n this.router.navigate(['/control-panel/program-class-management/edit', queryParams]);\n }\n\n /**\n * Manage branches for program class\n */\n manageBranches(programClass: AcaClassProgramMasterResponse): void {\n if (!programClass || !programClass._id) {\n console.error('Program class or ID is undefined:', programClass);\n this.notificationService.error('Unable to manage branches: Invalid data');\n return;\n }\n console.log('🌿 Managing branches for program class:', programClass);\n this.notificationService.info(`Opening branch management for \"${programClass.acacpm_alise_title}\".`);\n const queryParams = generateStringFromObject({ programId: programClass._id });\n this.router.navigate(['/control-panel/program_specialization', queryParams]);\n }\n\n /**\n * Delete program class\n */\n deleteProgramClass(programClass: AcaClassProgramMasterResponse): void {\n if (!programClass || !programClass._id) {\n console.error('Program class or ID is undefined:', programClass);\n this.notificationService.error('Unable to delete program class: Invalid data');\n return;\n }\n this.confirmationService.confirmDelete(programClass.acacpm_alise_title).then((confirmed: boolean) => {\n if (confirmed) {\n this.loading.set(true);\n const payload: MClassProgramMasterDeletePayload = {\n acacpm_id: programClass._id!\n };\n\n this.programClassService.deleteProgramClass(payload)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe({\n next: (response) => {\n if (response?.success) {\n this.programClasses.update(classes => \n classes.filter(pc => pc._id !== programClass._id)\n );\n this.updateGridData();\n this.notificationService.success('Program class deleted successfully.');\n } else {\n this.notificationService.error('Failed to delete program class.');\n }\n this.loading.set(false);\n },\n error: (error) => {\n console.error('❌ Error deleting program class:', error);\n this.notificationService.error('Failed to delete program class.');\n this.loading.set(false);\n }\n });\n }\n });\n }\n\n /**\n * Toggle program class status\n */\n toggleProgramClassStatus(programClass: AcaClassProgramMasterResponse): void {\n if (!this.rightsService.hasRight('EDIT')) {\n this.notificationService.error('You do not have permission to change program class status');\n return;\n }\n if (!programClass || !programClass._id) {\n console.error('Program class or ID is undefined:', programClass);\n this.notificationService.error('Unable to toggle program class status: Invalid data');\n return;\n }\n this.loading.set(true);\n const payload: MClassProgramMasterToggleStatusPayload = {\n acacpm_id: programClass._id!\n };\n\n this.programClassService.toggleProgramClassStatus(payload)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe({\n next: (response) => {\n if (response?.success) {\n this.programClasses.update(classes => \n classes.map(pc => \n pc._id === programClass._id \n ? { ...pc, acacpm_isactive: !pc.acacpm_isactive }\n : pc\n )\n );\n this.updateGridData();\n this.notificationService.success(`Program class ${programClass.acacpm_isactive ? 'deactivated' : 'activated'} successfully.`);\n } else {\n this.notificationService.error('Failed to toggle program class status.');\n }\n this.loading.set(false);\n },\n error: (error) => {\n console.error('❌ Error toggling program class status:', error);\n this.notificationService.error('Failed to toggle program class status.');\n this.loading.set(false);\n }\n });\n }\n\n /**\n * Refresh data\n */\n refreshData(): void {\n this.loadProgramClasses();\n }\n}\n","<!-- Program Class Management Container -->\n<cide-lyt-shared-wrapper [shared_wrapper_setup_param]=\"{ sypg_page_code: 'program_class' }\"\n [breadcrumb_data]=\"breadcrumbData()\">\n \n <!-- Action Buttons in Breadcrumb Area -->\n <div breadcrumb-actions>\n @if (canCreate()) {\n <button cideEleButton type=\"button\" variant=\"primary\" size=\"sm\" leftIcon=\"add\" (btnClick)=\"createProgramClass()\">\n Create Program Class\n </button>\n }\n </div>\n\n <!-- Main Content -->\n <div class=\"tw-flex tw-flex-col tw-w-full tw-h-full tw-overflow-hidden\">\n <!-- Data Grid Section -->\n <div class=\"tw-flex-1 tw-min-h-0 tw-p-0\">\n <cide-ele-data-grid\n class=\"tw-h-full\"\n [config]=\"gridConfig()\"\n [templateRenderers]=\"templateRenderers()\"\n (gridEvent)=\"onGridEvent($event)\">\n </cide-ele-data-grid>\n </div>\n </div>\n</cide-lyt-shared-wrapper>\n\n<!-- Template Renderers -->\n<ng-template #programClassDetailsRendererTemplate let-value=\"value\" let-row=\"row\" let-column=\"column\">\n <div class=\"tw-flex tw-items-center tw-space-x-3\">\n <div class=\"tw-flex-shrink-0\">\n <div class=\"tw-w-10 tw-h-10 tw-bg-purple-100 tw-rounded-lg tw-flex tw-items-center tw-justify-center\">\n <cide-ele-icon class=\"tw-text-purple-600 tw-w-5 tw-h-5\">school</cide-ele-icon>\n </div>\n </div>\n <div class=\"tw-min-w-0 tw-flex-1\">\n <h6 class=\"tw-text-sm tw-font-semibold tw-text-gray-900 tw-truncate tw-m-0\">\n {{ row?.acacpm_alise_title }}\n </h6>\n <p class=\"tw-text-xs tw-text-gray-500 tw-truncate tw-m-0\">\n {{ row?.acacpm_class_program_id_sygms?.sygms_title }}\n </p>\n </div>\n </div>\n</ng-template>\n\n<ng-template #programClassStatusRendererTemplate let-value=\"value\" let-row=\"row\" let-column=\"column\">\n <div class=\"tw-flex tw-items-center tw-space-x-2\">\n <span [ngClass]=\"{\n 'tw-bg-green-100 tw-text-green-800': row?.acacpm_isactive,\n 'tw-bg-red-100 tw-text-red-800': !row?.acacpm_isactive\n }\" class=\"tw-inline-flex tw-items-center tw-px-2 tw-py-1 tw-rounded-full tw-text-xs tw-font-medium\">\n <cide-ele-icon [ngClass]=\"{\n 'tw-text-green-600': row?.acacpm_isactive,\n 'tw-text-red-600': !row?.acacpm_isactive\n }\" class=\"tw-w-3 tw-h-3 tw-mr-2\">\n {{ row?.acacpm_isactive ? 'check_circle' : 'cancel' }}\n </cide-ele-icon>\n {{ row?.acacpm_isactive ? 'Active' : 'Inactive' }}\n </span>\n </div>\n</ng-template>\n\n<ng-template #classProgramRendererTemplate let-value=\"value\" let-row=\"row\" let-column=\"column\">\n <div class=\"tw-flex tw-items-center tw-space-x-2\">\n <cide-ele-icon class=\"tw-text-blue-600 tw-w-4 tw-h-4\">school</cide-ele-icon>\n <span class=\"tw-text-sm tw-text-gray-900 tw-truncate\">\n {{ row?.acacpm_class_program_id_sygms?.sygms_title || 'N/A' }}\n </span>\n </div>\n</ng-template>\n\n<ng-template #academicYearRendererTemplate let-value=\"value\" let-row=\"row\" let-column=\"column\">\n <div class=\"tw-flex tw-items-center tw-space-x-2\">\n <cide-ele-icon class=\"tw-text-green-600 tw-w-4 tw-h-4\">calendar_today</cide-ele-icon>\n <span class=\"tw-text-sm tw-text-gray-900 tw-truncate\">\n {{ row?.acacpm_academic_year_id_acayr?.acayr_name || 'N/A' }}\n </span>\n </div>\n</ng-template>\n\n<ng-template #actionsDropdownRendererTemplate let-row=\"row\" let-value=\"value\" let-column=\"column\">\n <cide-ele-dropdown\n [items]=\"getActionDropdownItems(row)\"\n (itemClick)=\"onDropdownItemClick($event, row)\"\n size=\"sm\"\n variant=\"ghost\"\n icon=\"more_vert\">\n </cide-ele-dropdown>\n</ng-template>\n"],"names":[],"mappings":";;;;;;;;;;;MA+Ba,yBAAyB,CAAA;;AAE5B,IAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAC/B,IAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,IAAA,QAAQ,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACxC,IAAA,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACjD,IAAA,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACjD,IAAA,mBAAmB,GAAG,MAAM,CAAC,0BAA0B,CAAC;AACxD,IAAA,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;AACrC,IAAA,yBAAyB,GAAG,MAAM,CAAC,gCAAgC,CAAC;;AAG5E,IAAA,cAAc,GAAG,MAAM,CAA+D,EAAE,0DAAC;;AAGzF,IAAA,mCAAmC,GAAG,SAAS,CAAC,QAAQ,CAA+B,qCAAqC,CAAC;AAC7H,IAAA,kCAAkC,GAAG,SAAS,CAAC,QAAQ,CAA+B,oCAAoC,CAAC;AAC3H,IAAA,4BAA4B,GAAG,SAAS,CAAC,QAAQ,CAA+B,8BAA8B,CAAC;AAC/G,IAAA,4BAA4B,GAAG,SAAS,CAAC,QAAQ,CAA+B,8BAA8B,CAAC;AAC/G,IAAA,+BAA+B,GAAG,SAAS,CAAC,QAAQ,CAA+B,iCAAiC,CAAC;;AAGrH,IAAA,iBAAiB,GAAG,QAAQ,CAAC,OAAqD;AAChF,QAAA,2BAA2B,EAAE,IAAI,CAAC,mCAAmC,EAAE;AACvE,QAAA,0BAA0B,EAAE,IAAI,CAAC,kCAAkC,EAA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AA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,4BAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAC9B,8BAA8B,yFAC3B,iCAAiC,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as AcademicYearCreateComponent,
|
|
1
|
+
export { A as AcademicYearCreateComponent, g as AcademicYearListComponent, h as CideLytAcademicYearMappingService, b as CideLytAcademicYearService, j as CideLytClassProgramBranchFormComponent, i as CideLytClassProgramBranchListComponent, c as CideLytClassProgramBranchService, e as CideLytProgramSectionSelectorComponent, l as CideLytProgramTermSectionService, P as ProgramTermSectionCreateComponent, k as ProgramTermSectionListComponent, f as academicsRoutes } from './cloud-ide-academics-cloud-ide-academics-BRQerudY.mjs';
|
|
2
2
|
//# sourceMappingURL=cloud-ide-academics.mjs.map
|
package/index.d.ts
CHANGED
|
@@ -427,7 +427,7 @@ interface ClassProgramBranch$2 {
|
|
|
427
427
|
acabrn_isactive?: boolean;
|
|
428
428
|
acabrn_islocked?: boolean;
|
|
429
429
|
}
|
|
430
|
-
interface ClassProgramConfiguration$
|
|
430
|
+
interface ClassProgramConfiguration$2 {
|
|
431
431
|
branchType?: boolean;
|
|
432
432
|
semesterType?: boolean;
|
|
433
433
|
}
|
|
@@ -441,7 +441,7 @@ interface ProgramClass$3 {
|
|
|
441
441
|
_id?: string;
|
|
442
442
|
sygms_code?: string;
|
|
443
443
|
sygms_title?: string;
|
|
444
|
-
sygms_configuration?: ClassProgramConfiguration$
|
|
444
|
+
sygms_configuration?: ClassProgramConfiguration$2 | string;
|
|
445
445
|
} | string;
|
|
446
446
|
}
|
|
447
447
|
declare class CideLytClassProgramBranchListComponent implements OnInit {
|
|
@@ -574,7 +574,7 @@ declare class CideLytClassProgramBranchListComponent implements OnInit {
|
|
|
574
574
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideLytClassProgramBranchListComponent, "cide-academics-class-program-branch-list", never, {}, {}, never, never, true, never>;
|
|
575
575
|
}
|
|
576
576
|
|
|
577
|
-
interface ClassProgramConfiguration {
|
|
577
|
+
interface ClassProgramConfiguration$1 {
|
|
578
578
|
branchType?: boolean;
|
|
579
579
|
semesterType?: boolean;
|
|
580
580
|
}
|
|
@@ -588,7 +588,7 @@ interface ProgramClass$2 {
|
|
|
588
588
|
_id?: string;
|
|
589
589
|
sygms_code?: string;
|
|
590
590
|
sygms_title?: string;
|
|
591
|
-
sygms_configuration?: ClassProgramConfiguration | string;
|
|
591
|
+
sygms_configuration?: ClassProgramConfiguration$1 | string;
|
|
592
592
|
} | string;
|
|
593
593
|
}
|
|
594
594
|
interface BranchMaster extends ICoreSygms {
|
|
@@ -765,17 +765,26 @@ declare class CideLytClassProgramBranchService {
|
|
|
765
765
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideLytClassProgramBranchService>;
|
|
766
766
|
}
|
|
767
767
|
|
|
768
|
+
/**
|
|
769
|
+
* Interface for class program configuration
|
|
770
|
+
* This matches the configuration structure stored in general master's sygms_configuration field
|
|
771
|
+
*/
|
|
772
|
+
interface ClassProgramConfiguration {
|
|
773
|
+
semesterType?: boolean;
|
|
774
|
+
termType?: boolean;
|
|
775
|
+
branchType?: boolean;
|
|
776
|
+
termLevelUpTo?: number;
|
|
777
|
+
termAdmissionLevelUpTo?: number;
|
|
778
|
+
termProgramLevelOneConnected?: boolean;
|
|
779
|
+
getAdmission?: boolean;
|
|
780
|
+
[key: string]: unknown;
|
|
781
|
+
}
|
|
782
|
+
|
|
768
783
|
interface ProgramClass$1 {
|
|
769
784
|
_id?: string;
|
|
770
785
|
acacpm_alise_title?: string;
|
|
771
786
|
acacpm_class_program_id_sygms?: {
|
|
772
|
-
sygms_configuration?:
|
|
773
|
-
branchType?: boolean;
|
|
774
|
-
semesterType?: boolean;
|
|
775
|
-
termType?: boolean;
|
|
776
|
-
termLevelUpTo?: number;
|
|
777
|
-
termProgramLevelOneConnected?: boolean;
|
|
778
|
-
};
|
|
787
|
+
sygms_configuration?: ClassProgramConfiguration;
|
|
779
788
|
};
|
|
780
789
|
}
|
|
781
790
|
interface ClassProgramTerm$1 {
|
|
@@ -802,6 +811,7 @@ declare class ProgramTermSectionCreateComponent implements OnInit, OnDestroy {
|
|
|
802
811
|
private programTermSectionService;
|
|
803
812
|
private componentContextService;
|
|
804
813
|
private rightsService;
|
|
814
|
+
private classProgramConfigService;
|
|
805
815
|
programTermSectionForm: FormGroup;
|
|
806
816
|
activeTab: _angular_core.WritableSignal<string>;
|
|
807
817
|
loading: _angular_core.WritableSignal<boolean>;
|