cloud-ide-admin 1.0.0 → 1.0.2
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/README.md +49 -10
- package/fesm2022/cloud-ide-admin-cide-adm-home-wrapper.component-DpAhYlMT.mjs +21 -0
- package/fesm2022/{cloud-ide-admin-cide-adm-home-wrapper.component-Cu0sr3ST.mjs.map → cloud-ide-admin-cide-adm-home-wrapper.component-DpAhYlMT.mjs.map} +1 -1
- package/fesm2022/cloud-ide-admin.mjs +261 -277
- package/fesm2022/cloud-ide-admin.mjs.map +1 -1
- package/index.d.ts +220 -5
- package/package.json +3 -5
- package/esm2022/cloud-ide-admin.mjs +0 -5
- package/esm2022/lib/admin-module/entity/create/cide-adm-entity.component.mjs +0 -834
- package/esm2022/lib/admin-module/entity/create/cide-adm-entity.service.mjs +0 -79
- package/esm2022/lib/admin-module/entity/create/country-select.service.mjs +0 -33
- package/esm2022/lib/admin-module/entity/create/currency-select.service.mjs +0 -48
- package/esm2022/lib/admin-module/entity/create/general-master-select.service.mjs +0 -44
- package/esm2022/lib/admin-module/entity/create/pin-code-select.service.mjs +0 -60
- package/esm2022/lib/admin-module/entity/create/user-select.service.mjs +0 -58
- package/esm2022/lib/admin-module/entity/list/cide-adm-entity-list.component.mjs +0 -600
- package/esm2022/lib/admin-module/entity/list/cide-adm-entity-list.service.mjs +0 -52
- package/esm2022/lib/admin-module/home/home-wrapper/cide-adm-home-wrapper.component.mjs +0 -21
- package/esm2022/lib/cide-adm-admin.component.mjs +0 -29
- package/esm2022/lib/cide-adm-admin.service.mjs +0 -14
- package/esm2022/lib/cloud-ide-admin.routes.mjs +0 -38
- package/esm2022/public-api.mjs +0 -10
- package/fesm2022/cloud-ide-admin-cide-adm-home-wrapper.component-Cu0sr3ST.mjs +0 -24
- package/lib/admin-module/entity/create/cide-adm-entity.component.d.ts +0 -73
- package/lib/admin-module/entity/create/cide-adm-entity.service.d.ts +0 -39
- package/lib/admin-module/entity/create/country-select.service.d.ts +0 -13
- package/lib/admin-module/entity/create/currency-select.service.d.ts +0 -19
- package/lib/admin-module/entity/create/general-master-select.service.d.ts +0 -24
- package/lib/admin-module/entity/create/pin-code-select.service.d.ts +0 -31
- package/lib/admin-module/entity/create/user-select.service.d.ts +0 -31
- package/lib/admin-module/entity/list/cide-adm-entity-list.component.d.ts +0 -94
- package/lib/admin-module/entity/list/cide-adm-entity-list.service.d.ts +0 -25
- package/lib/admin-module/home/home-wrapper/cide-adm-home-wrapper.component.d.ts +0 -9
- package/lib/cide-adm-admin.component.d.ts +0 -9
- package/lib/cide-adm-admin.service.d.ts +0 -6
- package/lib/cloud-ide-admin.routes.d.ts +0 -2
- package/public-api.d.ts +0 -6
package/index.d.ts
CHANGED
|
@@ -1,5 +1,220 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
3
|
+
import { CideLytSharedWrapperComponent, CideLytSharedWrapperSetupParam } from 'cloud-ide-layout';
|
|
4
|
+
import * as _angular_forms from '@angular/forms';
|
|
5
|
+
import { FormGroup } from '@angular/forms';
|
|
6
|
+
import { TabItem, CideEleDataGridComponent, GridConfiguration, GridEvent } from 'cloud-ide-element';
|
|
7
|
+
import { selectSearchType, entityControllerResponse, entityResponseData } from 'cloud-ide-lms-model';
|
|
8
|
+
import { Observable } from 'rxjs';
|
|
9
|
+
import { Router, Routes } from '@angular/router';
|
|
10
|
+
|
|
11
|
+
declare class CideAdmAdminService {
|
|
12
|
+
constructor();
|
|
13
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideAdmAdminService, never>;
|
|
14
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideAdmAdminService>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class CideAdmAdminComponent extends CideLytSharedWrapperComponent implements OnInit {
|
|
18
|
+
shared_wrapper_setup_param: Partial<CideLytSharedWrapperSetupParam>;
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideAdmAdminComponent, never>;
|
|
21
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideAdmAdminComponent, "cide-adm-admin", never, {}, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface DropdownOption$1 {
|
|
25
|
+
value: string;
|
|
26
|
+
label: string;
|
|
27
|
+
}
|
|
28
|
+
declare class CideAdmEntityComponent implements OnInit, OnDestroy {
|
|
29
|
+
entityForm: FormGroup;
|
|
30
|
+
entityTypes: _angular_core.WritableSignal<DropdownOption$1[]>;
|
|
31
|
+
currencies: _angular_core.WritableSignal<DropdownOption$1[]>;
|
|
32
|
+
users: _angular_core.WritableSignal<DropdownOption$1[]>;
|
|
33
|
+
postalCodes: _angular_core.WritableSignal<DropdownOption$1[]>;
|
|
34
|
+
photoIdDocuments: _angular_core.WritableSignal<DropdownOption$1[]>;
|
|
35
|
+
countries: _angular_core.WritableSignal<DropdownOption$1[]>;
|
|
36
|
+
private pinCodeDataMap;
|
|
37
|
+
private logoFile?;
|
|
38
|
+
loading: _angular_core.WritableSignal<boolean>;
|
|
39
|
+
error: _angular_core.WritableSignal<string | null>;
|
|
40
|
+
success: _angular_core.WritableSignal<string | null>;
|
|
41
|
+
postalCodesLoading: _angular_core.WritableSignal<boolean>;
|
|
42
|
+
usersLoading: _angular_core.WritableSignal<boolean>;
|
|
43
|
+
countriesLoading: _angular_core.WritableSignal<boolean>;
|
|
44
|
+
isEditMode: _angular_core.WritableSignal<boolean>;
|
|
45
|
+
entityId: _angular_core.WritableSignal<string | null>;
|
|
46
|
+
activeTab: _angular_core.WritableSignal<string>;
|
|
47
|
+
entityTabs: _angular_core.WritableSignal<TabItem[]>;
|
|
48
|
+
private entityService;
|
|
49
|
+
private generalMasterService;
|
|
50
|
+
private pinCodeService;
|
|
51
|
+
private userService;
|
|
52
|
+
private currencyService;
|
|
53
|
+
private countryService;
|
|
54
|
+
private fb;
|
|
55
|
+
private route;
|
|
56
|
+
private destroy$;
|
|
57
|
+
private globalErrorHandler?;
|
|
58
|
+
private globalRejectionHandler?;
|
|
59
|
+
constructor();
|
|
60
|
+
ngOnInit(): void;
|
|
61
|
+
ngOnDestroy(): void;
|
|
62
|
+
private checkForEntityId;
|
|
63
|
+
private loadEntityData;
|
|
64
|
+
private populateFormWithEntityData;
|
|
65
|
+
private setupPostalCodeListeners;
|
|
66
|
+
private populateAddressFromPinCode;
|
|
67
|
+
loadDropdowns(): void;
|
|
68
|
+
private transformGeneralMasterToDropdown;
|
|
69
|
+
private transformCurrencyToDropdown;
|
|
70
|
+
private transformUserToDropdown;
|
|
71
|
+
private transformPinCodeToDropdown;
|
|
72
|
+
private transformCountryToDropdown;
|
|
73
|
+
getControl(controlName: string): _angular_forms.AbstractControl<any, any, any> | null;
|
|
74
|
+
onPostalCodeSearch(event: selectSearchType): void;
|
|
75
|
+
onUserSearch(event: selectSearchType): void;
|
|
76
|
+
onCountrySearch(event: selectSearchType): void;
|
|
77
|
+
onPostalCodeSelection(event: Event | string): void;
|
|
78
|
+
hasError(controlName: string, errorType?: string): boolean;
|
|
79
|
+
getErrorMessage(controlName: string): string;
|
|
80
|
+
getFormValidationSummary(): string[];
|
|
81
|
+
get isFormValid(): boolean;
|
|
82
|
+
get currentMode(): string;
|
|
83
|
+
get currentEntityId(): string | null;
|
|
84
|
+
onFileChange(event: FileList | null): void;
|
|
85
|
+
onTabChange(tab: TabItem): void;
|
|
86
|
+
onSubmit(): void;
|
|
87
|
+
onReset(): void;
|
|
88
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideAdmEntityComponent, never>;
|
|
89
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideAdmEntityComponent, "cide-adm-entity", never, {}, {}, never, never, true, never>;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
interface DropdownOption {
|
|
93
|
+
value: string;
|
|
94
|
+
label: string;
|
|
95
|
+
}
|
|
96
|
+
interface EntityData {
|
|
97
|
+
[key: string]: string | number | boolean | null | undefined;
|
|
98
|
+
}
|
|
99
|
+
declare class CideAdmEntityService {
|
|
100
|
+
private http;
|
|
101
|
+
getEntityTypes(): Observable<DropdownOption[]>;
|
|
102
|
+
getCurrencies(): Observable<DropdownOption[]>;
|
|
103
|
+
getUsers(): Observable<DropdownOption[]>;
|
|
104
|
+
getPostalCodes(): Observable<DropdownOption[]>;
|
|
105
|
+
/**
|
|
106
|
+
* Save entity data using coreRoutesUrl?.entity endpoint
|
|
107
|
+
* @param data - Entity data to save
|
|
108
|
+
* @param logoFile - Optional logo file
|
|
109
|
+
* @returns Observable of the save response
|
|
110
|
+
*/
|
|
111
|
+
saveUpdateEntity(data: EntityData): Observable<entityControllerResponse>;
|
|
112
|
+
/**
|
|
113
|
+
* Get entity by ID
|
|
114
|
+
* @param entityId - ID of the entity to retrieve
|
|
115
|
+
* @returns Observable of the entity data
|
|
116
|
+
*/
|
|
117
|
+
getEntityById(entityId: string): Observable<entityControllerResponse>;
|
|
118
|
+
/**
|
|
119
|
+
* Delete entity by ID
|
|
120
|
+
* @param entityId - ID of the entity to delete
|
|
121
|
+
* @returns Observable of the delete response
|
|
122
|
+
*/
|
|
123
|
+
deleteEntity(entityId: string): Observable<entityControllerResponse>;
|
|
124
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideAdmEntityService, never>;
|
|
125
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CideAdmEntityService>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
declare class CideAdmEntityListComponent implements OnInit {
|
|
129
|
+
router: Router;
|
|
130
|
+
private entityService;
|
|
131
|
+
gridComponent: CideEleDataGridComponent<entityResponseData>;
|
|
132
|
+
entities: _angular_core.WritableSignal<entityResponseData[]>;
|
|
133
|
+
loading: _angular_core.WritableSignal<boolean>;
|
|
134
|
+
error: _angular_core.WritableSignal<string | null>;
|
|
135
|
+
searchQuery: _angular_core.WritableSignal<string>;
|
|
136
|
+
currentPage: _angular_core.WritableSignal<number>;
|
|
137
|
+
pageSize: _angular_core.WritableSignal<number>;
|
|
138
|
+
totalItems: _angular_core.WritableSignal<number>;
|
|
139
|
+
selectedEntityType: _angular_core.WritableSignal<string>;
|
|
140
|
+
get selectedEntityTypeValue(): string;
|
|
141
|
+
set selectedEntityTypeValue(value: string);
|
|
142
|
+
totalPages: _angular_core.WritableSignal<number>;
|
|
143
|
+
hasNextPage: _angular_core.WritableSignal<boolean>;
|
|
144
|
+
hasPreviousPage: _angular_core.WritableSignal<boolean>;
|
|
145
|
+
jumpToPage: number;
|
|
146
|
+
loadStartTime: number;
|
|
147
|
+
entityTypeOptions: _angular_core.WritableSignal<{
|
|
148
|
+
value: string;
|
|
149
|
+
label: string;
|
|
150
|
+
}[]>;
|
|
151
|
+
gridConfig: _angular_core.WritableSignal<GridConfiguration<entityResponseData>>;
|
|
152
|
+
customRenderers: {
|
|
153
|
+
entityDetailsRenderer: (value: unknown, row: entityResponseData) => string;
|
|
154
|
+
contactInfoRenderer: (value: unknown, row: entityResponseData) => string;
|
|
155
|
+
};
|
|
156
|
+
actionHandlers: {
|
|
157
|
+
onEditEntity: (entity: entityResponseData) => void;
|
|
158
|
+
onDeleteEntity: (entity: entityResponseData) => void;
|
|
159
|
+
};
|
|
160
|
+
ngOnInit(): void;
|
|
161
|
+
onGridEvent(event: GridEvent<entityResponseData>): void;
|
|
162
|
+
private onEntityRowClick;
|
|
163
|
+
private onEntityRefresh;
|
|
164
|
+
private onEntitySearch;
|
|
165
|
+
private onEntityPageChange;
|
|
166
|
+
private onDeleteEntityConfirmed;
|
|
167
|
+
private updateGridData;
|
|
168
|
+
loadEntities(isRefresh?: boolean): void;
|
|
169
|
+
private loadTestData;
|
|
170
|
+
private updatePaginationState;
|
|
171
|
+
onSearch(): void;
|
|
172
|
+
onFilterChange(): void;
|
|
173
|
+
onPageChange(page: number | string): void;
|
|
174
|
+
onPageSizeChange(): void;
|
|
175
|
+
onRefresh(): void;
|
|
176
|
+
onAddEntity(): void;
|
|
177
|
+
onEditEntity(entity: entityResponseData): void;
|
|
178
|
+
onViewEntity(entity: entityResponseData): void;
|
|
179
|
+
onDeleteEntity(entity: entityResponseData): void;
|
|
180
|
+
getStatusClass(isActive: boolean): string;
|
|
181
|
+
getStatusText(isActive: boolean): string;
|
|
182
|
+
formatDate(date: Date | string | undefined): string;
|
|
183
|
+
getPageNumbers(): number[];
|
|
184
|
+
getItemRangeText(): string;
|
|
185
|
+
trackByEntityId(index: number, entity: entityResponseData): string;
|
|
186
|
+
/**
|
|
187
|
+
* Get enhanced page numbers with ellipsis for better navigation
|
|
188
|
+
*/
|
|
189
|
+
getEnhancedPageNumbers(): (number | string)[];
|
|
190
|
+
/**
|
|
191
|
+
* Calculate progress percentage based on current position
|
|
192
|
+
*/
|
|
193
|
+
getProgressPercentage(): number;
|
|
194
|
+
/**
|
|
195
|
+
* Jump to specific page functionality
|
|
196
|
+
*/
|
|
197
|
+
onJumpToPage(): void;
|
|
198
|
+
/**
|
|
199
|
+
* Get simulated load time for performance display
|
|
200
|
+
*/
|
|
201
|
+
getLoadTime(): number;
|
|
202
|
+
/**
|
|
203
|
+
* Get total data size for display
|
|
204
|
+
*/
|
|
205
|
+
getTotalDataSize(): number;
|
|
206
|
+
/**
|
|
207
|
+
* Export current page entities
|
|
208
|
+
*/
|
|
209
|
+
onExportCurrentPage(): void;
|
|
210
|
+
/**
|
|
211
|
+
* Export all entities
|
|
212
|
+
*/
|
|
213
|
+
onExportAll(): void;
|
|
214
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CideAdmEntityListComponent, never>;
|
|
215
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CideAdmEntityListComponent, "cide-adm-entity-list", never, {}, {}, never, never, true, never>;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
declare const adminRoutes: Routes;
|
|
219
|
+
|
|
220
|
+
export { CideAdmAdminComponent, CideAdmAdminService, CideAdmEntityComponent, CideAdmEntityListComponent, CideAdmEntityService, adminRoutes };
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloud-ide-admin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
5
|
+
"@angular/common": "^20.1.0",
|
|
6
|
+
"@angular/core": "^20.1.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2.3.0"
|
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
},
|
|
18
18
|
".": {
|
|
19
19
|
"types": "./index.d.ts",
|
|
20
|
-
"esm2022": "./esm2022/cloud-ide-admin.mjs",
|
|
21
|
-
"esm": "./esm2022/cloud-ide-admin.mjs",
|
|
22
20
|
"default": "./fesm2022/cloud-ide-admin.mjs"
|
|
23
21
|
}
|
|
24
22
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xvdWQtaWRlLWFkbWluLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvY2xvdWQtaWRlLWFkbWluL3NyYy9jbG91ZC1pZGUtYWRtaW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|