@idsoftsource/initial-process 2.2.2 → 2.2.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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, OnInit, ElementRef, EventEmitter, TemplateRef, AfterViewInit, Injector, OnChanges, ChangeDetectorRef, SimpleChanges, ViewContainerRef, OnDestroy, ComponentFactoryResolver, Renderer2, ModuleWithProviders, PipeTransform, NgZone } from '@angular/core';
2
+ import { InjectionToken, OnInit, ElementRef, EventEmitter, TemplateRef, OnChanges, AfterViewInit, Injector, ChangeDetectorRef, SimpleChanges, ViewContainerRef, OnDestroy, ComponentFactoryResolver, Renderer2, ModuleWithProviders, PipeTransform, NgZone } from '@angular/core';
3
3
  import * as _angular_forms from '@angular/forms';
4
4
  import { FormGroup, FormBuilder, FormControl, FormArray, UntypedFormGroup, UntypedFormBuilder, ControlValueAccessor, NgForm, AbstractControl } from '@angular/forms';
5
5
  import * as i17 from '@angular/router';
@@ -9,6 +9,7 @@ import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal';
9
9
  import { TokenService, RoleContextService, AuthLogoutService, RoleContextModel } from '@rangs/auth0-lib';
10
10
  import { AuthService } from '@auth0/auth0-angular';
11
11
  import { HttpClient } from '@angular/common/http';
12
+ import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
12
13
  import * as i2 from '@angular/common';
13
14
  import { ViewportScroller } from '@angular/common';
14
15
  import * as i19 from '@ng-select/ng-select';
@@ -169,6 +170,17 @@ interface PrivacyAndTerms {
169
170
  websiteurl?: string | null;
170
171
  currentYear?: any | null;
171
172
  }
173
+ /** Raw section shape as stored/retrieved from DB */
174
+ interface TermsSection {
175
+ id: string;
176
+ versionName: string;
177
+ /** HTML string — use {{fieldName}} tokens for PrivacyAndTerms values */
178
+ content: string;
179
+ orderby: number;
180
+ createdDate: string;
181
+ createdBy: string;
182
+ type: number;
183
+ }
172
184
 
173
185
  interface GridResult<TReadModel> {
174
186
  data: TReadModel[];
@@ -903,16 +915,37 @@ declare class InitialProcessComponent implements OnInit {
903
915
  static ɵcmp: i0.ɵɵComponentDeclaration<InitialProcessComponent, "app-initial-process", never, {}, {}, never, never, false, never>;
904
916
  }
905
917
 
906
- declare class TermsConditionsComponent {
918
+ interface ProcessedSection {
919
+ id: string;
920
+ versionName: string;
921
+ content: SafeHtml;
922
+ orderby: number;
923
+ createdDate: string;
924
+ createdBy: string;
925
+ type: number;
926
+ }
927
+ declare class TermsConditionsComponent implements OnChanges {
928
+ private sanitizer;
907
929
  title: string;
908
930
  branding: {
909
931
  logo: string;
910
932
  displayName: string;
911
933
  };
912
934
  PrivacyAndTerms: PrivacyAndTerms;
935
+ /** Raw sections array parsed from DB JSON — parent does JSON.parse(), passes the array here */
936
+ sections: TermsSection[];
937
+ parsedSections: ProcessedSection[];
938
+ constructor(sanitizer: DomSanitizer);
939
+ ngOnChanges(): void;
940
+ private buildSections;
941
+ /**
942
+ * Replaces both {{PrivacyAndTerms?.fieldName}} (stored format) and
943
+ * plain {{fieldName}} tokens with live values from PrivacyAndTerms.
944
+ */
945
+ private interpolate;
913
946
  isFilteredBrand(): boolean;
914
947
  static ɵfac: i0.ɵɵFactoryDeclaration<TermsConditionsComponent, never>;
915
- static ɵcmp: i0.ɵɵComponentDeclaration<TermsConditionsComponent, "app-terms-conditions", never, { "title": { "alias": "title"; "required": false; }; "branding": { "alias": "branding"; "required": false; }; "PrivacyAndTerms": { "alias": "PrivacyAndTerms"; "required": false; }; }, {}, never, never, false, never>;
948
+ static ɵcmp: i0.ɵɵComponentDeclaration<TermsConditionsComponent, "app-terms-conditions", never, { "title": { "alias": "title"; "required": false; }; "branding": { "alias": "branding"; "required": false; }; "PrivacyAndTerms": { "alias": "PrivacyAndTerms"; "required": false; }; "sections": { "alias": "sections"; "required": false; }; }, {}, never, never, false, never>;
916
949
  }
917
950
 
918
951
  declare class PrivacyPolicyComponent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idsoftsource/initial-process",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.0.0",
6
6
  "@angular/core": "^20.0.0",