cloud-ide-core 2.0.2 → 2.0.4
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-core-page-form.component-CN6nR7XC.mjs → cloud-ide-core-page-form.component-DzBvQ1kV.mjs} +8 -8
- package/fesm2022/cloud-ide-core-page-form.component-DzBvQ1kV.mjs.map +1 -0
- package/fesm2022/cloud-ide-core.mjs +1016 -1233
- package/fesm2022/cloud-ide-core.mjs.map +1 -1
- package/index.d.ts +100 -125
- package/package.json +1 -1
- package/fesm2022/cloud-ide-core-page-form.component-CN6nR7XC.mjs.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Route, Router } from '@angular/router';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { TemplateRef, OnInit,
|
|
3
|
+
import { TemplateRef, OnInit, OnDestroy, AfterViewInit } from '@angular/core';
|
|
4
4
|
import * as _angular_forms from '@angular/forms';
|
|
5
5
|
import { FormGroup, FormArray } from '@angular/forms';
|
|
6
|
-
import { ICoreSyme, MMenuListPayload, menuListControllerResponse, menuByIdControllerResponse, menuDeleteControllerResponse,
|
|
6
|
+
import { ICoreSyme, MMenuListPayload, menuListControllerResponse, menuByIdControllerResponse, menuDeleteControllerResponse, ICoreSydept, MDepartment, departmentControllerResponse, departmentByIdControllerResponse, departmentDeleteControllerResponse, MDepartmentToggleStatusPayload, departmentToggleStatusControllerResponse, ICoreSydsg, ICoreSydsgl, MDesignation, designationControllerResponse, designationInsertUpdateControllerResponse, designationByIdControllerResponse, designationDeleteControllerResponse, MGradeLevel, gradeLevelControllerResponse, gradeLevelByIdControllerResponse, ICoreSypg, ICoreSytm, ICoreSythDrawer, ICoreSype, MSystemPages, systemPagesControllerResponse, MSystemPagesInsertUpdatePayload, systemPagesInsertUpdateControllerResponse, systemPagesByIdControllerResponse, systemPagesDeleteControllerResponse, MSystemPagesToggleStatusPayload, systemPagesToggleStatusControllerResponse, MSystemPagesCheckCodeExistsPayload, systemPagesCheckCodeExistsControllerResponse, MSystemPagesTheme, systemPagesThemeControllerResponse, MSystemPagesThemeInsertUpdatePayload, systemPagesThemeInsertUpdateControllerResponse, systemPagesThemeByIdControllerResponse, systemPagesThemeByPageIdControllerResponse, systemPagesThemeDeleteControllerResponse, MSystemPagesThemeToggleStatusPayload, systemPagesThemeToggleStatusControllerResponse, MPageElements, pageElementsControllerResponse, MPageElementsInsertUpdatePayload, pageElementsInsertUpdateControllerResponse, pageElementsByIdControllerResponse, pageElementsByPageIdControllerResponse, pageElementsMappingByPageIdControllerResponse, MPageElementsMappingInsertUpdatePayload, pageElementsMappingInsertUpdateControllerResponse, pageElementsMappingDeleteControllerResponse, pageElementsDeleteControllerResponse, MPageElementsToggleStatusPayload, pageElementsToggleStatusControllerResponse, AuthUserCoreUserContactAddresses, AuthUserCoreUserDocuments, AuthUserCoreUserFamilyDetails, AuthUserCoreEntityMapping, CoreSystemEntityListResponse, ICoreSygms, pinCodeSelectResponseData, ICoreSyctr, AuthUserMstListPayload, authUserMstListControllerResponse, AuthUserMst, selectSearchType, CoreSystemEntity, entityControllerResponse, MEntity } from 'cloud-ide-lms-model';
|
|
7
7
|
import { TemplateContext, GridConfiguration, GridEvent, DropdownItem, TabItem, CideEleDataGridComponent } from 'cloud-ide-element';
|
|
8
8
|
import { HttpClient } from '@angular/common/http';
|
|
9
9
|
import { Observable } from 'rxjs';
|
|
@@ -22,7 +22,7 @@ declare class CloudIdeCoreComponent {
|
|
|
22
22
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CloudIdeCoreComponent, "cide-core", never, {}, {}, never, never, true, never>;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
declare class
|
|
25
|
+
declare class CideCoreMenuListComponent {
|
|
26
26
|
private destroyRef;
|
|
27
27
|
private menuService;
|
|
28
28
|
private fb;
|
|
@@ -292,13 +292,12 @@ declare class MenuListComponent {
|
|
|
292
292
|
* Test method to load sample data for debugging
|
|
293
293
|
*/
|
|
294
294
|
loadTestData(): void;
|
|
295
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
296
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
295
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreMenuListComponent, never>;
|
|
296
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCoreMenuListComponent, "cide-core-menu-list", never, {}, {}, never, never, true, never>;
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
-
declare class
|
|
299
|
+
declare class CideCoreMenuManagementService {
|
|
300
300
|
private http;
|
|
301
|
-
private apiUrl;
|
|
302
301
|
private menuListSubject;
|
|
303
302
|
menuList$: Observable<ICoreSyme[]>;
|
|
304
303
|
constructor(http: HttpClient);
|
|
@@ -306,10 +305,6 @@ declare class MenuManagementService {
|
|
|
306
305
|
* Get menu list from API
|
|
307
306
|
*/
|
|
308
307
|
getMenuList(body: MMenuListPayload): Observable<menuListControllerResponse>;
|
|
309
|
-
/**
|
|
310
|
-
* Get menu list using mock data
|
|
311
|
-
*/
|
|
312
|
-
getMenuListWithMockData(): Observable<menuListControllerResponse>;
|
|
313
308
|
/**
|
|
314
309
|
* Get menu list from cache (if available)
|
|
315
310
|
*/
|
|
@@ -374,41 +369,11 @@ declare class MenuManagementService {
|
|
|
374
369
|
* Handle errors
|
|
375
370
|
*/
|
|
376
371
|
private handleError;
|
|
377
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
378
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
372
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreMenuManagementService, never>;
|
|
373
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideCoreMenuManagementService>;
|
|
379
374
|
}
|
|
380
375
|
|
|
381
|
-
|
|
382
|
-
* Menu Reorder Request
|
|
383
|
-
* Used for reordering menu items
|
|
384
|
-
*/
|
|
385
|
-
interface MenuReorderRequest {
|
|
386
|
-
items: MMenu[];
|
|
387
|
-
}
|
|
388
|
-
/**
|
|
389
|
-
* Menu Type Options
|
|
390
|
-
* Available menu types for selection
|
|
391
|
-
*/
|
|
392
|
-
declare const MENU_TYPES: readonly [{
|
|
393
|
-
readonly value: "module";
|
|
394
|
-
readonly label: "Module";
|
|
395
|
-
}, {
|
|
396
|
-
readonly value: "section";
|
|
397
|
-
readonly label: "Section";
|
|
398
|
-
}, {
|
|
399
|
-
readonly value: "menu";
|
|
400
|
-
readonly label: "Menu Item";
|
|
401
|
-
}, {
|
|
402
|
-
readonly value: "title";
|
|
403
|
-
readonly label: "Title";
|
|
404
|
-
}];
|
|
405
|
-
/**
|
|
406
|
-
* Menu Type
|
|
407
|
-
* Type definition for menu types
|
|
408
|
-
*/
|
|
409
|
-
type MenuType = 'menu' | 'section' | 'title' | 'module';
|
|
410
|
-
|
|
411
|
-
declare class DepartmentListComponent {
|
|
376
|
+
declare class CideCoreDepartmentListComponent {
|
|
412
377
|
private destroyRef;
|
|
413
378
|
private departmentService;
|
|
414
379
|
private appState;
|
|
@@ -578,11 +543,11 @@ declare class DepartmentListComponent {
|
|
|
578
543
|
* Track by function for ngFor
|
|
579
544
|
*/
|
|
580
545
|
trackByItemId(index: number, item: ICoreSydept): string;
|
|
581
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
582
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
546
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreDepartmentListComponent, never>;
|
|
547
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCoreDepartmentListComponent, "cide-core-department-list", never, {}, {}, never, never, true, never>;
|
|
583
548
|
}
|
|
584
549
|
|
|
585
|
-
declare class
|
|
550
|
+
declare class CideCoreDepartmentManagementService {
|
|
586
551
|
private http;
|
|
587
552
|
private departmentListSubject;
|
|
588
553
|
departmentList$: Observable<ICoreSydept[]>;
|
|
@@ -643,8 +608,8 @@ declare class DepartmentManagementService {
|
|
|
643
608
|
* Handle errors
|
|
644
609
|
*/
|
|
645
610
|
private handleError;
|
|
646
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
647
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
611
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreDepartmentManagementService, never>;
|
|
612
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideCoreDepartmentManagementService>;
|
|
648
613
|
}
|
|
649
614
|
|
|
650
615
|
interface HierarchicalNode {
|
|
@@ -661,7 +626,7 @@ interface HierarchicalNode {
|
|
|
661
626
|
grade_level: string;
|
|
662
627
|
parentId: string | null;
|
|
663
628
|
}
|
|
664
|
-
declare class
|
|
629
|
+
declare class CideCoreDesignationListComponent {
|
|
665
630
|
private destroyRef;
|
|
666
631
|
private designationService;
|
|
667
632
|
private gradeLevelService;
|
|
@@ -880,11 +845,11 @@ declare class DesignationListComponent {
|
|
|
880
845
|
* Track by function for ngFor
|
|
881
846
|
*/
|
|
882
847
|
trackByItemId(index: number, item: ICoreSydsg): string;
|
|
883
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
884
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
848
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreDesignationListComponent, never>;
|
|
849
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCoreDesignationListComponent, "cide-core-designation-list", never, {}, {}, never, never, true, never>;
|
|
885
850
|
}
|
|
886
851
|
|
|
887
|
-
declare class
|
|
852
|
+
declare class CideCoreDesignationManagementService {
|
|
888
853
|
private http;
|
|
889
854
|
private apiUrl;
|
|
890
855
|
private designationListSubject;
|
|
@@ -946,11 +911,11 @@ declare class DesignationManagementService {
|
|
|
946
911
|
* Handle errors
|
|
947
912
|
*/
|
|
948
913
|
private handleError;
|
|
949
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
950
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
914
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreDesignationManagementService, never>;
|
|
915
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideCoreDesignationManagementService>;
|
|
951
916
|
}
|
|
952
917
|
|
|
953
|
-
declare class
|
|
918
|
+
declare class CideCoreGradeLevelListComponent {
|
|
954
919
|
private destroyRef;
|
|
955
920
|
private gradeLevelService;
|
|
956
921
|
private appState;
|
|
@@ -1141,11 +1106,11 @@ declare class GradeLevelListComponent {
|
|
|
1141
1106
|
* Track by function for ngFor
|
|
1142
1107
|
*/
|
|
1143
1108
|
trackByItemId(index: number, item: ICoreSydsgl): string;
|
|
1144
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1145
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
1109
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreGradeLevelListComponent, never>;
|
|
1110
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCoreGradeLevelListComponent, "cide-core-grade-level-list", never, {}, {}, never, never, true, never>;
|
|
1146
1111
|
}
|
|
1147
1112
|
|
|
1148
|
-
declare class
|
|
1113
|
+
declare class CideCoreGradeLevelManagementService {
|
|
1149
1114
|
private http;
|
|
1150
1115
|
private apiUrl;
|
|
1151
1116
|
private gradeLevelListSubject;
|
|
@@ -1207,11 +1172,11 @@ declare class GradeLevelManagementService {
|
|
|
1207
1172
|
* Handle errors
|
|
1208
1173
|
*/
|
|
1209
1174
|
private handleError;
|
|
1210
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1211
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
1175
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreGradeLevelManagementService, never>;
|
|
1176
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideCoreGradeLevelManagementService>;
|
|
1212
1177
|
}
|
|
1213
1178
|
|
|
1214
|
-
declare class
|
|
1179
|
+
declare class CideCorePageListComponent {
|
|
1215
1180
|
private destroyRef;
|
|
1216
1181
|
private pageService;
|
|
1217
1182
|
private appState;
|
|
@@ -1294,11 +1259,11 @@ declare class PageListComponent {
|
|
|
1294
1259
|
* Close all dropdowns
|
|
1295
1260
|
*/
|
|
1296
1261
|
private closeAllDropdowns;
|
|
1297
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1298
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
1262
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCorePageListComponent, never>;
|
|
1263
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCorePageListComponent, "cide-core-page-list", never, {}, {}, never, never, true, never>;
|
|
1299
1264
|
}
|
|
1300
1265
|
|
|
1301
|
-
declare class
|
|
1266
|
+
declare class CideCorePageThemeComponent implements OnInit {
|
|
1302
1267
|
private destroyRef;
|
|
1303
1268
|
private themeService;
|
|
1304
1269
|
private appState;
|
|
@@ -1478,11 +1443,11 @@ declare class PageThemeComponent implements OnInit {
|
|
|
1478
1443
|
* Set selected theme (only one can be selected per page)
|
|
1479
1444
|
*/
|
|
1480
1445
|
setSelectedTheme(theme: ICoreSytm): void;
|
|
1481
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1482
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
1446
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCorePageThemeComponent, never>;
|
|
1447
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCorePageThemeComponent, "cide-core-page-theme", never, {}, {}, never, never, true, never>;
|
|
1483
1448
|
}
|
|
1484
1449
|
|
|
1485
|
-
declare class
|
|
1450
|
+
declare class CideCorePageControlsComponent implements OnInit {
|
|
1486
1451
|
private destroyRef;
|
|
1487
1452
|
private controlsService;
|
|
1488
1453
|
private appState;
|
|
@@ -1601,11 +1566,11 @@ declare class PageControlsComponent implements OnInit {
|
|
|
1601
1566
|
closeAllDropdowns(): void;
|
|
1602
1567
|
selectControl(control: ICoreSype): void;
|
|
1603
1568
|
trackByControlId(index: number, control: ICoreSype): string;
|
|
1604
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1605
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
1569
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCorePageControlsComponent, never>;
|
|
1570
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCorePageControlsComponent, "cide-core-page-controls", never, {}, {}, never, never, true, never>;
|
|
1606
1571
|
}
|
|
1607
1572
|
|
|
1608
|
-
declare class
|
|
1573
|
+
declare class CideCorePageManagementService {
|
|
1609
1574
|
private http;
|
|
1610
1575
|
constructor(http: HttpClient);
|
|
1611
1576
|
/**
|
|
@@ -1640,11 +1605,11 @@ declare class PageManagementService {
|
|
|
1640
1605
|
* Handle errors
|
|
1641
1606
|
*/
|
|
1642
1607
|
private handleError;
|
|
1643
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1644
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
1608
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCorePageManagementService, never>;
|
|
1609
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideCorePageManagementService>;
|
|
1645
1610
|
}
|
|
1646
1611
|
|
|
1647
|
-
declare class
|
|
1612
|
+
declare class CideCorePageThemeService {
|
|
1648
1613
|
private http;
|
|
1649
1614
|
private apiUrl;
|
|
1650
1615
|
constructor(http: HttpClient);
|
|
@@ -1680,11 +1645,11 @@ declare class PageThemeService {
|
|
|
1680
1645
|
* Handle errors
|
|
1681
1646
|
*/
|
|
1682
1647
|
private handleError;
|
|
1683
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1684
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
1648
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCorePageThemeService, never>;
|
|
1649
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideCorePageThemeService>;
|
|
1685
1650
|
}
|
|
1686
1651
|
|
|
1687
|
-
declare class
|
|
1652
|
+
declare class CideCorePageControlsService {
|
|
1688
1653
|
private http;
|
|
1689
1654
|
constructor(http: HttpClient);
|
|
1690
1655
|
/**
|
|
@@ -1731,19 +1696,18 @@ declare class PageControlsService {
|
|
|
1731
1696
|
* Handle errors
|
|
1732
1697
|
*/
|
|
1733
1698
|
private handleError;
|
|
1734
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
1735
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
1699
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCorePageControlsService, never>;
|
|
1700
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideCorePageControlsService>;
|
|
1736
1701
|
}
|
|
1737
1702
|
|
|
1738
|
-
declare class
|
|
1703
|
+
declare class CideCoreUserCreateComponent implements OnInit, OnDestroy {
|
|
1739
1704
|
private destroyRef;
|
|
1740
1705
|
private fb;
|
|
1741
1706
|
private userMasterService;
|
|
1742
1707
|
private entityService;
|
|
1743
|
-
private roleSelectService;
|
|
1744
1708
|
private designationService;
|
|
1745
1709
|
private departmentService;
|
|
1746
|
-
private
|
|
1710
|
+
private CideCoreGeneralMasterService;
|
|
1747
1711
|
private pinCodeService;
|
|
1748
1712
|
private countryService;
|
|
1749
1713
|
private router;
|
|
@@ -1768,6 +1732,13 @@ declare class UserCreateComponent implements OnInit {
|
|
|
1768
1732
|
get contactAddressesFormArray(): FormArray;
|
|
1769
1733
|
get documentsFormArray(): FormArray;
|
|
1770
1734
|
get familyDetailsFormArray(): FormArray;
|
|
1735
|
+
userSearchResults: _angular_core.WritableSignal<{
|
|
1736
|
+
[familyIndex: number]: any[];
|
|
1737
|
+
}>;
|
|
1738
|
+
userSearchLoading: _angular_core.WritableSignal<{
|
|
1739
|
+
[familyIndex: number]: boolean;
|
|
1740
|
+
}>;
|
|
1741
|
+
private searchDebounceTimers;
|
|
1771
1742
|
private createEntityMappingFormGroup;
|
|
1772
1743
|
private createContactAddressFormGroup;
|
|
1773
1744
|
private createDocumentFormGroup;
|
|
@@ -1777,6 +1748,11 @@ declare class UserCreateComponent implements OnInit {
|
|
|
1777
1748
|
label: string;
|
|
1778
1749
|
icon: string;
|
|
1779
1750
|
}[];
|
|
1751
|
+
searchUsers(query?: string, familyIndex?: number): void;
|
|
1752
|
+
userOptions(familyIndex?: number): any[];
|
|
1753
|
+
onUserSearchChange(searchEvent: any, familyIndex: number): void;
|
|
1754
|
+
loadInitialUsers(): void;
|
|
1755
|
+
onUserSelectionChange(event: any, familyIndex: number): void;
|
|
1780
1756
|
entityOptions: _angular_core.WritableSignal<CoreSystemEntityListResponse[]>;
|
|
1781
1757
|
roleOptions: _angular_core.WritableSignal<any[]>;
|
|
1782
1758
|
designationOptions: _angular_core.WritableSignal<{
|
|
@@ -1825,6 +1801,10 @@ declare class UserCreateComponent implements OnInit {
|
|
|
1825
1801
|
* Set entity ID from app state for new user creation
|
|
1826
1802
|
*/
|
|
1827
1803
|
private setEntityIdFromAppState;
|
|
1804
|
+
/**
|
|
1805
|
+
* Cleanup when component is destroyed
|
|
1806
|
+
*/
|
|
1807
|
+
ngOnDestroy(): void;
|
|
1828
1808
|
/**
|
|
1829
1809
|
* Update password validation based on create/edit mode
|
|
1830
1810
|
*/
|
|
@@ -2013,10 +1993,6 @@ declare class UserCreateComponent implements OnInit {
|
|
|
2013
1993
|
* Load document types from general master service
|
|
2014
1994
|
*/
|
|
2015
1995
|
private loadDocumentTypes;
|
|
2016
|
-
/**
|
|
2017
|
-
* Load photo groups
|
|
2018
|
-
*/
|
|
2019
|
-
private loadPhotoGroups;
|
|
2020
1996
|
/**
|
|
2021
1997
|
* Load document verification status from general master service
|
|
2022
1998
|
*/
|
|
@@ -2037,15 +2013,15 @@ declare class UserCreateComponent implements OnInit {
|
|
|
2037
2013
|
* Load dropdown data for existing addresses in edit mode
|
|
2038
2014
|
*/
|
|
2039
2015
|
private loadDropdownDataForExistingAddresses;
|
|
2040
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
2041
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
2016
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreUserCreateComponent, never>;
|
|
2017
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCoreUserCreateComponent, "cide-core-user-create", never, {}, {}, never, never, true, never>;
|
|
2042
2018
|
}
|
|
2043
2019
|
|
|
2044
2020
|
type AuthUserMstCreatePayload = any;
|
|
2045
2021
|
type AuthUserMstGetByIdPayload = any;
|
|
2046
2022
|
type authUserMstCreateControllerResponse = any;
|
|
2047
2023
|
type authUserMstGetByIdControllerResponse = any;
|
|
2048
|
-
declare class
|
|
2024
|
+
declare class CideCoreUserMasterService {
|
|
2049
2025
|
private http;
|
|
2050
2026
|
/**
|
|
2051
2027
|
* Save or update user master data using proper API endpoint
|
|
@@ -2082,13 +2058,13 @@ declare class CideLytUserMasterService {
|
|
|
2082
2058
|
* @returns Observable of response
|
|
2083
2059
|
*/
|
|
2084
2060
|
deleteUser(userId: string): Observable<any>;
|
|
2085
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
2086
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
2061
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreUserMasterService, never>;
|
|
2062
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideCoreUserMasterService>;
|
|
2087
2063
|
}
|
|
2088
2064
|
|
|
2089
|
-
declare class
|
|
2065
|
+
declare class CideCoreUserListComponent implements OnInit, AfterViewInit {
|
|
2090
2066
|
router: Router;
|
|
2091
|
-
userMasterService:
|
|
2067
|
+
userMasterService: CideCoreUserMasterService;
|
|
2092
2068
|
appState: AppStateHelperService;
|
|
2093
2069
|
gridComponent: CideEleDataGridComponent<any>;
|
|
2094
2070
|
actionsTemplate: TemplateRef<any>;
|
|
@@ -2148,11 +2124,11 @@ declare class UserListComponent implements OnInit, AfterViewInit {
|
|
|
2148
2124
|
getPasswordChangeText(requiresChange: boolean): string;
|
|
2149
2125
|
getDropdownItems(user: AuthUserMst): DropdownItem[];
|
|
2150
2126
|
onDropdownItemClick(item: DropdownItem, user: AuthUserMst): void;
|
|
2151
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
2152
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
2127
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreUserListComponent, never>;
|
|
2128
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCoreUserListComponent, "cide-core-user-list", never, {}, {}, never, never, true, never>;
|
|
2153
2129
|
}
|
|
2154
2130
|
|
|
2155
|
-
declare class
|
|
2131
|
+
declare class CideCoreRoleSelectService {
|
|
2156
2132
|
private http;
|
|
2157
2133
|
/**
|
|
2158
2134
|
* Get role options for user master form
|
|
@@ -2164,11 +2140,11 @@ declare class RoleSelectService {
|
|
|
2164
2140
|
* @returns Observable of role list
|
|
2165
2141
|
*/
|
|
2166
2142
|
getAllRoles(): Observable<any>;
|
|
2167
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
2168
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
2143
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreRoleSelectService, never>;
|
|
2144
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideCoreRoleSelectService>;
|
|
2169
2145
|
}
|
|
2170
2146
|
|
|
2171
|
-
declare class
|
|
2147
|
+
declare class CideCoreUserAttributesComponent implements OnInit {
|
|
2172
2148
|
private fb;
|
|
2173
2149
|
private route;
|
|
2174
2150
|
private router;
|
|
@@ -2182,11 +2158,11 @@ declare class CideAdmUserAttributesComponent implements OnInit {
|
|
|
2182
2158
|
onSubmit(): void;
|
|
2183
2159
|
private markFormGroupTouched;
|
|
2184
2160
|
goBack(): void;
|
|
2185
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
2186
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
2161
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreUserAttributesComponent, never>;
|
|
2162
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCoreUserAttributesComponent, "cide-core-user-attributes", never, {}, {}, never, never, true, never>;
|
|
2187
2163
|
}
|
|
2188
2164
|
|
|
2189
|
-
declare class
|
|
2165
|
+
declare class CideCoreUserContactAddressesComponent implements OnInit {
|
|
2190
2166
|
private fb;
|
|
2191
2167
|
private route;
|
|
2192
2168
|
private router;
|
|
@@ -2200,11 +2176,11 @@ declare class CideAdmUserContactAddressesComponent implements OnInit {
|
|
|
2200
2176
|
onSubmit(): void;
|
|
2201
2177
|
private markFormGroupTouched;
|
|
2202
2178
|
goBack(): void;
|
|
2203
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
2204
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
2179
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreUserContactAddressesComponent, never>;
|
|
2180
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCoreUserContactAddressesComponent, "cide-core-user-contact-addresses", never, {}, {}, never, never, true, never>;
|
|
2205
2181
|
}
|
|
2206
2182
|
|
|
2207
|
-
declare class
|
|
2183
|
+
declare class CideCoreUserDocumentsComponent implements OnInit {
|
|
2208
2184
|
private fb;
|
|
2209
2185
|
private route;
|
|
2210
2186
|
private router;
|
|
@@ -2218,11 +2194,11 @@ declare class CideAdmUserDocumentsComponent implements OnInit {
|
|
|
2218
2194
|
onSubmit(): void;
|
|
2219
2195
|
private markFormGroupTouched;
|
|
2220
2196
|
goBack(): void;
|
|
2221
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
2222
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
2197
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreUserDocumentsComponent, never>;
|
|
2198
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCoreUserDocumentsComponent, "cide-core-user-documents", never, {}, {}, never, never, true, never>;
|
|
2223
2199
|
}
|
|
2224
2200
|
|
|
2225
|
-
declare class
|
|
2201
|
+
declare class CideCoreUserEntityAccessComponent implements OnInit {
|
|
2226
2202
|
private fb;
|
|
2227
2203
|
private route;
|
|
2228
2204
|
private router;
|
|
@@ -2236,11 +2212,11 @@ declare class CideAdmUserEntityAccessComponent implements OnInit {
|
|
|
2236
2212
|
onSubmit(): void;
|
|
2237
2213
|
private markFormGroupTouched;
|
|
2238
2214
|
goBack(): void;
|
|
2239
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
2240
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
2215
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreUserEntityAccessComponent, never>;
|
|
2216
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCoreUserEntityAccessComponent, "cide-core-user-entity-access", never, {}, {}, never, never, true, never>;
|
|
2241
2217
|
}
|
|
2242
2218
|
|
|
2243
|
-
declare class
|
|
2219
|
+
declare class CideCoreUserFamilyDetailsComponent implements OnInit {
|
|
2244
2220
|
private fb;
|
|
2245
2221
|
private route;
|
|
2246
2222
|
private router;
|
|
@@ -2254,15 +2230,15 @@ declare class CideAdmUserFamilyDetailsComponent implements OnInit {
|
|
|
2254
2230
|
onSubmit(): void;
|
|
2255
2231
|
private markFormGroupTouched;
|
|
2256
2232
|
goBack(): void;
|
|
2257
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
2258
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
2233
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreUserFamilyDetailsComponent, never>;
|
|
2234
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCoreUserFamilyDetailsComponent, "cide-core-user-family-details", never, {}, {}, never, never, true, never>;
|
|
2259
2235
|
}
|
|
2260
2236
|
|
|
2261
2237
|
interface DropdownOption {
|
|
2262
2238
|
value: string;
|
|
2263
2239
|
label: string;
|
|
2264
2240
|
}
|
|
2265
|
-
declare class
|
|
2241
|
+
declare class CideCoreEntityCreateComponent implements OnInit, OnDestroy {
|
|
2266
2242
|
entityForm: FormGroup;
|
|
2267
2243
|
entityTypes: _angular_core.WritableSignal<DropdownOption[]>;
|
|
2268
2244
|
currencies: _angular_core.WritableSignal<DropdownOption[]>;
|
|
@@ -2285,7 +2261,7 @@ declare class CideLytEntityCreateComponent implements OnInit, OnDestroy {
|
|
|
2285
2261
|
activeTab: _angular_core.WritableSignal<string>;
|
|
2286
2262
|
entityTabs: _angular_core.WritableSignal<TabItem[]>;
|
|
2287
2263
|
private entityService;
|
|
2288
|
-
private
|
|
2264
|
+
private CideCoreGeneralMasterService;
|
|
2289
2265
|
private pinCodeService;
|
|
2290
2266
|
private userService;
|
|
2291
2267
|
private currencyService;
|
|
@@ -2328,11 +2304,11 @@ declare class CideLytEntityCreateComponent implements OnInit, OnDestroy {
|
|
|
2328
2304
|
onTabChange(tab: TabItem): void;
|
|
2329
2305
|
onSubmit(): void;
|
|
2330
2306
|
onReset(): void;
|
|
2331
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
2332
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
2307
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreEntityCreateComponent, never>;
|
|
2308
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCoreEntityCreateComponent, "cide-core-entity-create", never, {}, {}, never, never, true, never>;
|
|
2333
2309
|
}
|
|
2334
2310
|
|
|
2335
|
-
declare class
|
|
2311
|
+
declare class CideCoreEntityListComponent implements OnInit {
|
|
2336
2312
|
router: Router;
|
|
2337
2313
|
private entityService;
|
|
2338
2314
|
gridComponent: _angular_core.Signal<CideEleDataGridComponent<CoreSystemEntityListResponse> | undefined>;
|
|
@@ -2425,8 +2401,8 @@ declare class CideLytEntityListComponent implements OnInit {
|
|
|
2425
2401
|
* Export all entities
|
|
2426
2402
|
*/
|
|
2427
2403
|
onExportAll(): void;
|
|
2428
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
2429
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
2404
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreEntityListComponent, never>;
|
|
2405
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideCoreEntityListComponent, "cide-core-entity-list", never, {}, {}, never, never, true, never>;
|
|
2430
2406
|
}
|
|
2431
2407
|
|
|
2432
2408
|
/**
|
|
@@ -2434,7 +2410,7 @@ declare class CideLytEntityListComponent implements OnInit {
|
|
|
2434
2410
|
*
|
|
2435
2411
|
* This service handles all entity management operations directly without dependencies on admin services.
|
|
2436
2412
|
*/
|
|
2437
|
-
declare class
|
|
2413
|
+
declare class CideCoreEntityManagementService {
|
|
2438
2414
|
private http;
|
|
2439
2415
|
/**
|
|
2440
2416
|
* Save or update entity data using coreRoutesUrl?.entity endpoint
|
|
@@ -2460,9 +2436,8 @@ declare class CideLytEntityManagementService {
|
|
|
2460
2436
|
* @returns Observable of the delete response
|
|
2461
2437
|
*/
|
|
2462
2438
|
deleteEntity(entityId: string): Observable<entityControllerResponse>;
|
|
2463
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
2464
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<
|
|
2439
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideCoreEntityManagementService, never>;
|
|
2440
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideCoreEntityManagementService>;
|
|
2465
2441
|
}
|
|
2466
2442
|
|
|
2467
|
-
export {
|
|
2468
|
-
export type { MenuReorderRequest, MenuType };
|
|
2443
|
+
export { CideCoreDepartmentListComponent, CideCoreDepartmentManagementService, CideCoreDesignationListComponent, CideCoreDesignationManagementService, CideCoreEntityCreateComponent, CideCoreEntityListComponent, CideCoreEntityManagementService, CideCoreGradeLevelListComponent, CideCoreGradeLevelManagementService, CideCoreMenuListComponent, CideCoreMenuManagementService, CideCorePageControlsComponent, CideCorePageControlsService, CideCorePageListComponent, CideCorePageManagementService, CideCorePageThemeComponent, CideCorePageThemeService, CideCoreRoleSelectService, CideCoreUserAttributesComponent, CideCoreUserContactAddressesComponent, CideCoreUserCreateComponent, CideCoreUserDocumentsComponent, CideCoreUserEntityAccessComponent, CideCoreUserFamilyDetailsComponent, CideCoreUserListComponent, CideCoreUserMasterService, CloudIdeCoreComponent, CloudIdeCoreService, coreRoutes };
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-ide-core-page-form.component-CN6nR7XC.mjs","sources":["../../../projects/cloud-ide-core/src/lib/core/page-management/components/page-form/page-form.component.ts","../../../projects/cloud-ide-core/src/lib/core/page-management/components/page-form/page-form.component.html"],"sourcesContent":["import { Component, signal, computed, inject, OnInit, DestroyRef } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { Validators, ReactiveFormsModule, NonNullableFormBuilder, FormsModule } from '@angular/forms';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { PageManagementService } from '../../services/page-management.service';\nimport { AppStateHelperService } from 'cloud-ide-layout';\nimport { CideEleButtonComponent, CideInputComponent, CideSelectComponent, CideTextareaComponent, CideIconComponent, CideEleFileInputComponent, CideEleJsonEditorComponent } from 'cloud-ide-element';\nimport { ICoreSypg, MSystemPagesInsertUpdatePayload, generateObjectFromString, systemPagesByIdControllerResponse, systemPagesInsertUpdateControllerResponse } from 'cloud-ide-lms-model';\n\n@Component({\n selector: 'cide-core-page-form',\n standalone: true,\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormsModule,\n CideEleButtonComponent,\n CideInputComponent,\n CideTextareaComponent,\n CideEleJsonEditorComponent\n ],\n templateUrl: './page-form.component.html',\n styleUrls: ['./page-form.component.scss']\n})\nexport class PageFormComponent implements OnInit {\n private destroyRef = inject(DestroyRef);\n private pageService = inject(PageManagementService);\n private appState = inject(AppStateHelperService);\n private fb = inject(NonNullableFormBuilder);\n private router = inject(Router);\n private route = inject(ActivatedRoute);\n\n loading = signal(false);\n error = signal<string | null>(null);\n success = signal<string | null>(null);\n\n // Page information\n pageId = signal<string | null>(null);\n isEditMode = signal(false);\n\n pageForm = this.fb.group({\n sypg_title: ['', [Validators.required, Validators.maxLength(100)]],\n sypg_desc: ['', [Validators.maxLength(255)]],\n sypg_page_code: ['', [Validators.required, Validators.maxLength(40), Validators.pattern(/^[a-zA-Z0-9_]+$/)]],\n sypg_configuration: ['{}', [Validators.required]],\n sypg_isactive: [true]\n });\n\n constructor() {\n this.setupFormSubscriptions();\n }\n\n ngOnInit(): void {\n // Check for page ID in query parameters\n this.checkForPageId();\n }\n\n\n\n // Check for page ID in query parameters\n private checkForPageId() {\n console.log('🔍 Checking for page ID in query parameters', this.route.params);\n this.route.params.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(params => {\n console.log('🔍 Query params:', params);\n // Check for pageId, id, or page parameter\n const queryParams = params['query'];\n const queryData = generateObjectFromString(queryParams);\n\n // If pageId is an object string (from generateStringFromObject), try to parse it\n const pageId = queryData.sypg_id;\n if (pageId) {\n console.log('🔍 Page ID found in query params:', pageId);\n this.pageId.set(pageId);\n this.isEditMode.set(true);\n this.loadPageData(pageId);\n } else {\n console.log('🆕 No page ID found - creating new page');\n this.isEditMode.set(false);\n this.pageId.set(null);\n }\n });\n }\n\n // Load page data for editing\n private loadPageData(pageId: string) {\n this.loading.set(true);\n this.error.set(null);\n\n console.log('📥 Loading page data for ID:', pageId);\n\n this.pageService.getPageById(pageId).pipe(\n takeUntilDestroyed(this.destroyRef)\n ).subscribe({\n next: (response: systemPagesByIdControllerResponse) => {\n console.log('✅ Page data loaded:', response);\n \n if (response?.success && response?.data) {\n const pageData = response.data;\n if (pageData) {\n this.populateFormWithPageData(pageData);\n this.success.set('Page data loaded successfully');\n } else {\n this.error.set('Page data not found');\n console.error('❌ Page data not found in response:', response);\n }\n } else {\n this.error.set('Failed to load page data');\n console.error('❌ Page data response invalid:', response);\n }\n this.loading.set(false);\n },\n error: (err) => {\n console.error('❌ Failed to load page data:', err);\n \n let errorMessage = 'Failed to load page data.';\n \n if (err?.error?.message) {\n errorMessage = err.error.message;\n } else if (err?.message) {\n errorMessage = err.message;\n } else if (err?.status === 404) {\n errorMessage = 'Page not found.';\n } else if (err?.status === 500) {\n errorMessage = 'Server error. Please try again later.';\n }\n \n this.error.set(errorMessage);\n this.loading.set(false);\n }\n });\n }\n\n // Populate form with page data\n private populateFormWithPageData(pageData: ICoreSypg) {\n try {\n console.log('📝 Populating form with page data:', pageData);\n\n const formData = {\n sypg_title: pageData.sypg_title || '',\n sypg_desc: pageData.sypg_desc || '',\n sypg_page_code: pageData.sypg_page_code || '',\n sypg_configuration: pageData.sypg_configuration ? JSON.stringify(pageData.sypg_configuration) : '{}',\n sypg_isactive: pageData.sypg_isactive !== undefined ? pageData.sypg_isactive : true\n };\n\n // Patch the form with the page data\n this.pageForm.patchValue(formData, { emitEvent: false });\n\n console.log('✅ Form populated successfully');\n } catch (error) {\n console.error('💥 Error populating form with page data:', error);\n this.error.set('Error loading page data into form');\n }\n }\n\n private setupFormSubscriptions(): void {\n // Watch for form changes to enable/disable save button\n this.pageForm.valueChanges\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n // Form validation is handled by computed signals\n });\n }\n\n // Computed values\n\n isFormDirty = computed(() => this.pageForm.dirty);\n\n // Form submission\n savePage(): void {\n if (!this.pageForm.valid) {\n this.markFormAsTouched();\n return;\n }\n\n const formValue = this.pageForm.getRawValue();\n \n const pageData: MSystemPagesInsertUpdatePayload = {\n _id: this.pageId() || '',\n sypg_title: formValue.sypg_title,\n sypg_desc: formValue.sypg_desc,\n sypg_page_code: formValue.sypg_page_code,\n sypg_configuration: formValue.sypg_configuration,\n sypg_isactive: formValue.sypg_isactive\n };\n\n this.loading.set(true);\n this.error.set(null);\n\n this.pageService.createOrUpdatePage(pageData)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe({\n next: (response: systemPagesInsertUpdateControllerResponse) => {\n if (response.success) {\n this.success.set(this.isEditMode() ? 'Page updated successfully' : 'Page created successfully');\n console.log('✅ Page saved successfully');\n // Navigate back to page list after a short delay\n setTimeout(() => {\n this.router.navigate(['/control-panel/page']);\n }, 1500);\n } else {\n this.error.set(response.message || 'Failed to save page');\n console.error('❌ Failed to save page:', response.message);\n }\n this.loading.set(false);\n },\n error: (error) => {\n console.error('❌ Error saving page:', error);\n this.error.set('Failed to save page. Please try again.');\n this.loading.set(false);\n }\n });\n }\n\n // Cancel form\n cancelForm(): void {\n this.router.navigate(['/control-panel/page']);\n }\n\n // Go back to page list\n goBack(): void {\n this.router.navigate(['/control-panel/page']);\n }\n\n // Mark form as touched to trigger validation display\n private markFormAsTouched(): void {\n Object.keys(this.pageForm.controls).forEach(key => {\n const control = this.pageForm.get(key);\n control?.markAsTouched();\n });\n }\n}\n","<div class=\"page-form-fullscreen\">\n <div class=\"page-form-container\">\n <form class=\"page-form\" [formGroup]=\"pageForm\" [class.loading]=\"loading()\" (ngSubmit)=\"savePage()\">\n \n <!-- Header Section -->\n <div class=\"form-header\">\n <h2 class=\"form-title\">{{ isEditMode() ? 'Edit Page' : 'Create Page' }}</h2>\n <p class=\"form-subtitle\">\n {{ isEditMode() ? 'Update page information and configuration' : 'Create a new page with configuration' }}\n </p>\n </div>\n\n <!-- Success and Error Messages -->\n @if (success()) {\n <div class=\"alert alert-success\">\n <svg class=\"alert-icon\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5 13l4 4L19 7\"></path>\n </svg>\n {{ success() }}\n </div>\n }\n @if (error()) {\n <div class=\"alert alert-error\">\n <svg class=\"alert-icon\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 18L18 6M6 6l12 12\"></path>\n </svg>\n {{ error() }}\n </div>\n }\n\n <!-- Form Content -->\n <div class=\"form-section\">\n <div class=\"grid grid-2 gap-md lg-grid-2 md-grid-1\">\n <cide-ele-input \n id=\"sypg_title\"\n label=\"Page Title *\" \n formControlName=\"sypg_title\"\n placeholder=\"Enter page title\"\n size=\"md\">\n </cide-ele-input>\n \n <cide-ele-input \n id=\"sypg_page_code\"\n label=\"Page Code *\" \n formControlName=\"sypg_page_code\"\n placeholder=\"Enter page code (alphanumeric and underscore only)\"\n size=\"md\">\n </cide-ele-input>\n </div>\n\n <div class=\"grid grid-1 gap-md\">\n <cide-ele-textarea \n id=\"sypg_desc\"\n label=\"Page Description\" \n formControlName=\"sypg_desc\"\n placeholder=\"Enter page description\"\n [rows]=\"3\"\n size=\"md\">\n </cide-ele-textarea>\n </div>\n\n <div class=\"grid grid-1 gap-md\">\n <cide-ele-json-editor\n id=\"sypg_configuration\"\n label=\"Configuration JSON *\"\n formControlName=\"sypg_configuration\"\n placeholder='{\"key\": \"value\"}'>\n </cide-ele-json-editor>\n </div>\n\n <div class=\"grid grid-1 gap-sm\">\n <cide-ele-input\n id=\"sypg_isactive\"\n type=\"checkbox\"\n formControlName=\"sypg_isactive\"\n label=\"Active Status\"\n size=\"sm\">\n </cide-ele-input>\n </div>\n </div>\n\n <!-- Form Actions -->\n <div class=\"form-actions\">\n <button cideEleButton\n type=\"button\" \n variant=\"secondary\" \n (click)=\"cancelForm()\" \n leftIcon=\"close\"\n [disabled]=\"loading()\">\n Cancel\n </button>\n \n <button cideEleButton\n type=\"submit\" \n variant=\"primary\" \n [disabled]=\"loading() || !pageForm.valid\"\n [loading]=\"loading()\"\n leftIcon=\"save\">\n {{ isEditMode() ? 'Update Page' : 'Create Page' }}\n </button>\n </div>\n </form>\n </div>\n</div>\n"],"names":[],"mappings":";;;;;;;;;;;;MA0Ba,iBAAiB,CAAA;AACpB,IAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAC/B,IAAA,WAAW,GAAG,MAAM,CAAC,qBAAqB,CAAC;AAC3C,IAAA,QAAQ,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACxC,IAAA,EAAE,GAAG,MAAM,CAAC,sBAAsB,CAAC;AACnC,IAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACvB,IAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAEtC,IAAA,OAAO,GAAG,MAAM,CAAC,KAAK,mDAAC;AACvB,IAAA,KAAK,GAAG,MAAM,CAAgB,IAAI,iDAAC;AACnC,IAAA,OAAO,GAAG,MAAM,CAAgB,IAAI,mDAAC;;AAGrC,IAAA,MAAM,GAAG,MAAM,CAAgB,IAAI,kDAAC;AACpC,IAAA,UAAU,GAAG,MAAM,CAAC,KAAK,sDAAC;AAE1B,IAAA,QAAQ,GAAG,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;AACvB,QAAA,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAClE,QAAA,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QAC5C,cAAc,EAAE,CAAC,EAAE,E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