highcourt-affidavit-elements 0.2.19 → 0.2.21

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 CHANGED
@@ -51,7 +51,7 @@ import { environment } from "../environments/environment";
51
51
  imports: [
52
52
  HighcourtAffidavitModule.forRoot(
53
53
  environment.affidavit_api_secret_key,
54
- environment.mode
54
+ environment.mode //(in: 'development', 'production')
55
55
  ),
56
56
  ],
57
57
  })
@@ -68,7 +68,7 @@ export class AppModule {}
68
68
 
69
69
  ```html
70
70
  <highcourt-affidavit [templateId]="template_id"
71
- (callBack)="onAffidavitCallback($event)">
71
+ (callBack)="handleAffidavitCallback($event)">
72
72
  </highcourt-affidavit>
73
73
  ```
74
74
 
@@ -86,7 +86,7 @@ export class AppModule {}
86
86
  [payload]="bulkPayload"
87
87
  [affidavitTemplateId]="templateId"
88
88
  [client_ref]="clientRef"
89
- (callBack)="onBulkCallback($event)">
89
+ (callBack)="handleBulkCallback($event)">
90
90
  </e-affidavit-bulk-create-applications>
91
91
  ```
92
92
 
@@ -94,6 +94,20 @@ export class AppModule {}
94
94
  - `callBack` – bulk workflow completed
95
95
  - `overlayClose` – bulk workspace closed
96
96
 
97
+ ---
98
+ ### 4.3 `<e-affidavit-applications-details-page>` – Bulk Affidavits
99
+
100
+ ```html
101
+ <e-affidavit-applications-details-page
102
+ [client_ref]="clientRef"
103
+ (handlePayment)="handlePaymentSuccess($event)">
104
+ </e-affidavit-applications-details-page>
105
+ ```
106
+
107
+ **Events**
108
+ - `handlePayment` – payment completed
109
+ - `overlayClose` – bulk workspace closed
110
+
97
111
  ---
98
112
 
99
113
  ## 5. Angular Services
@@ -114,7 +128,7 @@ Used for **headless / backend-driven** affidavit creation.
114
128
 
115
129
  ```ts
116
130
  interface AngularAffidavitCallback {
117
- status: "success" | "failed";
131
+ status: "success" | "error";
118
132
  reference?: string;
119
133
  data: any;
120
134
  }
@@ -145,6 +159,7 @@ They **do not require Angular/React/Vuejs** in the consuming app.
145
159
  | Affidavit Application | `<highcourt-affidavit>` | Create & submit affidavits |
146
160
  | Payment | `<pay-affidavit>` | Pay for an existing affidavit |
147
161
  | Bulk Workspace | `<bulk-create-applications>` | Manage multiple affidavits |
162
+ | Bulk Applications Details | `<e-affidavit-applications-details-page>` | Manage multiple affidavits Payment |
148
163
 
149
164
  ---
150
165
 
@@ -178,7 +193,7 @@ They **do not require Angular/React/Vuejs** in the consuming app.
178
193
  | `templateId` | ❌ | Affidavit template |
179
194
  | `client-ref` | ❌ | Client reference |
180
195
  | `clientRef` | ❌ | Client reference |
181
- | `payload` | ❌ | Prefilled data (JSON) |
196
+ | `payload` | ❌ | Prefilled data |
182
197
 
183
198
  ### Callbacks
184
199
 
@@ -233,11 +248,28 @@ payElement.addEventListener("handlePayment", (e) => {
233
248
  |-----|------------|
234
249
  | `callBack` | Bulk submission completed |
235
250
  | `overlayClose` | Workspace closed |
236
- | `error` | Bulk workflow error |
251
+
252
+ ---
253
+ ## 13. `<e-affidavit-applications-details-page>` – Web Component
254
+
255
+ ### Attributes
256
+
257
+ | Attribute | Required | Description |
258
+ |--------|----------|-------------|
259
+ | `token` | ❌ | API key |
260
+ | `mode` | ❌ | Environment |
261
+ | `client_ref` | ✅ | Bulk session reference |
262
+
263
+ ### Callbacks
264
+
265
+ | Event | Description |
266
+ |-----|------------|
267
+ | `handlePayment` | Bulk submission completed |
268
+ | `overlayClose` | Workspace closed |
237
269
 
238
270
  ---
239
271
 
240
- ## 13. Unified Web Component Callback Contract
272
+ ## 14. Unified Web Component Callback Contract
241
273
 
242
274
  ```ts
243
275
  interface WebComponentCallback {
@@ -256,7 +288,7 @@ interface WebComponentCallback {
256
288
 
257
289
  ---
258
290
 
259
- ## 14. Global Callback Listener
291
+ ## 15. Global Callback Listener
260
292
 
261
293
  ```js
262
294
  document.addEventListener("callBack", (event) => {
@@ -266,7 +298,7 @@ document.addEventListener("callBack", (event) => {
266
298
 
267
299
  ---
268
300
 
269
- ## 15. Using Web Components in Angular Apps
301
+ ## 16. Using Web Components in Angular Apps
270
302
 
271
303
  ```ts
272
304
  import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";
@@ -282,9 +314,9 @@ export class AppModule {}
282
314
  <h4>📝 Affidavit Application Component</h4>
283
315
  <highcourt-affidavit [appNo]="appNo" [templateId]="templateId"
284
316
  [payload]="payload" [appNo]="appNo"
285
- (callBack)="onAffidavitCallback($event)" [clientRef]="clientRef"
286
- (overlayClose)="onAffidavitOverlayClose($event)"
287
- (paymentSuccess)="onAffidavitPaymentSuccess($event)">
317
+ (callBack)="handleAffidavitCallback($event)" [clientRef]="clientRef"
318
+ (overlayClose)="handleAffidavitOverlayClose($event)"
319
+ (paymentSuccess)="handleAffidavitPaymentSuccess($event)">
288
320
  </highcourt-affidavit>
289
321
  </div>
290
322
  ```
@@ -331,7 +363,7 @@ export class AppComponent implements OnInit {
331
363
  },
332
364
  {
333
365
  placeholder: "contractor_company_name",
334
- provided_value: "Centaur info Systems",
366
+ provided_value: "Centaur Info Systems",
335
367
  },
336
368
  {
337
369
  placeholder: "mda_authority_name",
@@ -397,20 +429,20 @@ export class AppComponent implements OnInit {
397
429
  }
398
430
 
399
431
  // Highcourt Affidavit Component Event Handlers
400
- onAffidavitCallback(evt: any) {
432
+ handleAffidavitCallback(evt: any) {
401
433
  const anyEvt = evt as any;
402
434
  const detail = anyEvt?.detail ?? null;
403
435
 
404
436
  console.log('[highcourt-affidavit] event received:', evt);
405
437
  }
406
438
 
407
- onAffidavitPaymentSuccess(data: any) {
439
+ handleAffidavitPaymentSuccess(data: any) {
408
440
  console.log('APP Affidavit Payment Success:', data);
409
441
 
410
442
  // Handle payment success - e.g., update application status, show success message, etc.
411
443
  }
412
444
 
413
- onAffidavitOverlayClose(data: boolean) {
445
+ handleAffidavitOverlayClose(data: boolean) {
414
446
  console.log('APP Affidavit Overlay Closed:', data);
415
447
  if (data) {
416
448
  this.showAffidavitOverlay = false;
@@ -422,7 +454,7 @@ export class AppComponent implements OnInit {
422
454
 
423
455
  ---
424
456
 
425
- ## 16. Security & Compliance
457
+ ## 17. Security & Compliance
426
458
 
427
459
  - Never expose live API keys
428
460
  - Always validate payments server-side
@@ -432,13 +464,13 @@ export class AppComponent implements OnInit {
432
464
 
433
465
  ---
434
466
 
435
- ## 17. Support
467
+ ## 18. Support
436
468
 
437
469
  📧 support@centuryinformationsystems.com
438
470
 
439
471
  ---
440
472
 
441
- ## 18. License
473
+ ## 19. License
442
474
 
443
475
  MIT License
444
476
  © 2026 ECMS