@posiwise/shared-components 0.0.177 → 0.0.179

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/shared-components",
3
- "version": "0.0.177",
3
+ "version": "0.0.179",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.6",
6
6
  "@angular/core": "^21.2.6",
@@ -7,15 +7,15 @@ import { MenuItem } from 'primeng/api';
7
7
  import moment from 'moment';
8
8
  import * as i42 from 'ngx-daterangepicker-material';
9
9
  import { DaterangepickerDirective } from 'ngx-daterangepicker-material';
10
- import { DomSanitizer } from '@angular/platform-browser';
10
+ import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
11
11
  import { AdminService } from '@posiwise/admin-module-utils';
12
12
  import { User, Subscription } from '@posiwise/common-utilities';
13
+ import * as i31 from '@angular/router';
14
+ import { Router } from '@angular/router';
13
15
  import { AppConfigService } from '@posiwise/app-config-service';
14
16
  import { AuthService, MCPFieldDiff, MCPOrchestratorService, LocalStorage, BrainSocketService, GroupService, SubscriptionService, DataService, NumberPickerService, FeatureFlagService, UserService, PermissionService, MainApiHttpService } from '@posiwise/common-services';
15
17
  import * as rxjs from 'rxjs';
16
18
  import { Observable } from 'rxjs';
17
- import * as i31 from '@angular/router';
18
- import { Router } from '@angular/router';
19
19
  import { AppState } from '@posiwise/app-store';
20
20
  import { Store } from '@ngrx/store';
21
21
  import * as i6 from '@angular/forms';
@@ -193,7 +193,9 @@ declare class PrivacyAndTosComponent extends AppBaseComponent implements OnInit
193
193
  private privacyAndTos;
194
194
  id: string;
195
195
  data: {
196
- privacy: '';
196
+ privacy?: SafeHtml;
197
+ tos?: SafeHtml;
198
+ tos_updated_at?: string;
197
199
  };
198
200
  user: User;
199
201
  subscribedSubscriptions: {
@@ -245,42 +247,45 @@ declare class PrivacyAndTosComponent extends AppBaseComponent implements OnInit
245
247
  tabId: string;
246
248
  isPublic: boolean;
247
249
  isLoaded: boolean;
250
+ tocPrivacy: {
251
+ id: string;
252
+ text: string;
253
+ }[];
254
+ tocTos: {
255
+ id: string;
256
+ text: string;
257
+ }[];
258
+ get companyName(): string;
259
+ get companyEmail(): string;
248
260
  constructor(adminService: AdminService, injector: Injector, document: Document, sanitizer: DomSanitizer, cdr: ChangeDetectorRef);
249
261
  /** Edit affordance is restricted to (Master) Subscription Admins who can reach /admin/tos. */
250
262
  get canEditPolicy(): boolean;
251
263
  ngOnInit(): void;
252
264
  private getSubscribedProduct;
253
265
  fetchUserSubscriptions(userId: any, id?: any): void;
266
+ private buildToc;
254
267
  private findRequiredProducts;
255
268
  private getTosDetails;
256
269
  static ɵfac: i0.ɵɵFactoryDeclaration<PrivacyAndTosComponent, never>;
257
270
  static ɵcmp: i0.ɵɵComponentDeclaration<PrivacyAndTosComponent, "pw-privacy-and-tos", never, { "productId": { "alias": "productId"; "required": false; }; }, {}, never, never, false, never>;
258
271
  }
259
272
 
260
- declare class PrivacyPolicyComponent extends AppBaseComponent implements OnInit {
261
- isPublic: boolean;
262
- company_name: string;
263
- company_email: string;
273
+ declare class PrivacyPolicyComponent implements OnInit {
274
+ private readonly appConfigService;
275
+ private readonly router;
276
+ constructor(appConfigService: AppConfigService, router: Router);
264
277
  ngOnInit(): void;
265
278
  static ɵfac: i0.ɵɵFactoryDeclaration<PrivacyPolicyComponent, never>;
266
- static ɵcmp: i0.ɵɵComponentDeclaration<PrivacyPolicyComponent, "pw-privacy-policy", never, { "isPublic": { "alias": "isPublic"; "required": false; }; }, {}, never, never, false, never>;
279
+ static ɵcmp: i0.ɵɵComponentDeclaration<PrivacyPolicyComponent, "pw-privacy-policy", never, {}, {}, never, never, false, never>;
267
280
  }
268
281
 
269
282
  declare class TermsConditionsComponent implements OnInit {
270
283
  private readonly appConfigService;
271
- private readonly cdr;
272
- isPublic: boolean;
273
- company_name: string;
274
- company_number: string;
275
- company_state: string;
276
- company_street: string;
277
- company_email: string;
278
- company_city: string;
279
- company_city_code: string;
280
- constructor(appConfigService: AppConfigService, cdr: ChangeDetectorRef);
284
+ private readonly router;
285
+ constructor(appConfigService: AppConfigService, router: Router);
281
286
  ngOnInit(): void;
282
287
  static ɵfac: i0.ɵɵFactoryDeclaration<TermsConditionsComponent, never>;
283
- static ɵcmp: i0.ɵɵComponentDeclaration<TermsConditionsComponent, "pw-terms-conditions", never, { "isPublic": { "alias": "isPublic"; "required": false; }; }, {}, never, never, false, never>;
288
+ static ɵcmp: i0.ɵɵComponentDeclaration<TermsConditionsComponent, "pw-terms-conditions", never, {}, {}, never, never, false, never>;
284
289
  }
285
290
 
286
291
  declare class SplashComponent {
@@ -432,19 +437,11 @@ declare class CollapsibleSidebarService {
432
437
  static ɵprov: i0.ɵɵInjectableDeclaration<CollapsibleSidebarService>;
433
438
  }
434
439
 
435
- /**
436
- * CollapsibleSidebarComponent
437
- *
438
- * Main sidebar container that displays dynamically loaded content.
439
- * - Observes sidebar state from the service
440
- * - Dynamically renders component content
441
- * - Handles expand/collapse animations
442
- * - Uses OnPush change detection for performance
443
- */
444
440
  declare class CollapsibleSidebarComponent implements OnInit, AfterViewInit, OnDestroy {
445
441
  private readonly sidebarService;
446
442
  private readonly injector;
447
443
  private readonly cdr;
444
+ private readonly document;
448
445
  private readonly appConfigService?;
449
446
  contentContainer: ViewContainerRef;
450
447
  /**
@@ -460,8 +457,9 @@ declare class CollapsibleSidebarComponent implements OnInit, AfterViewInit, OnDe
460
457
  isExpanded: boolean;
461
458
  currentContent: SidebarContent | null;
462
459
  private componentRef;
460
+ private navbarOffsetTracker;
463
461
  private readonly destroy$;
464
- constructor(sidebarService: CollapsibleSidebarService, injector: Injector, cdr: ChangeDetectorRef, appConfigService?: AppConfigService);
462
+ constructor(sidebarService: CollapsibleSidebarService, injector: Injector, cdr: ChangeDetectorRef, document: Document, appConfigService?: AppConfigService);
465
463
  ngOnInit(): void;
466
464
  ngAfterViewInit(): void;
467
465
  ngOnDestroy(): void;
@@ -471,19 +469,10 @@ declare class CollapsibleSidebarComponent implements OnInit, AfterViewInit, OnDe
471
469
  * Load and render dynamic component based on sidebar content
472
470
  */
473
471
  private loadComponent;
474
- /**
475
- * Clear the currently rendered component
476
- */
477
472
  private clearComponent;
478
- /**
479
- * Close the sidebar
480
- */
481
473
  closeSidebar(): void;
482
- /**
483
- * Toggle sidebar expanded/collapsed state
484
- */
485
474
  toggleSidebar(): void;
486
- static ɵfac: i0.ɵɵFactoryDeclaration<CollapsibleSidebarComponent, [null, null, null, { optional: true; }]>;
475
+ static ɵfac: i0.ɵɵFactoryDeclaration<CollapsibleSidebarComponent, [null, null, null, null, { optional: true; }]>;
487
476
  static ɵcmp: i0.ɵɵComponentDeclaration<CollapsibleSidebarComponent, "pw-collapsible-sidebar", never, { "embedInLayout": { "alias": "embedInLayout"; "required": false; }; }, {}, never, never, false, never>;
488
477
  static ngAcceptInputType_embedInLayout: unknown;
489
478
  }
@@ -833,17 +822,27 @@ declare class HeaderComponent extends AppBaseComponent {
833
822
  landing: boolean;
834
823
  navigateToLogin(): void;
835
824
  toggleMenu(): void;
836
- logo: any;
825
+ private logoFailed;
826
+ get logo(): string | null;
827
+ onLogoError(): void;
837
828
  static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
838
829
  static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "pw-header", never, { "landing": { "alias": "landing"; "required": false; }; }, {}, never, never, false, never>;
839
830
  }
840
831
 
841
- declare class LandingPageFooterBComponent implements OnInit {
832
+ declare class LandingPageFooterBComponent extends AppBaseComponent implements OnInit {
842
833
  private readonly authService;
843
834
  private readonly cdr;
844
835
  isBrowserAccess: boolean;
845
836
  currentDate: Date;
846
- constructor(authService: AuthService, cdr: ChangeDetectorRef);
837
+ productPrivacyId: number;
838
+ get companyName(): string;
839
+ get companyEmail(): string;
840
+ get companyTagline(): string | null;
841
+ get logoUrl(): string;
842
+ get socialLinkedin(): string | null;
843
+ get socialFacebook(): string | null;
844
+ get socialTwitter(): string | null;
845
+ constructor(authService: AuthService, cdr: ChangeDetectorRef, injector: Injector);
847
846
  ngOnInit(): void;
848
847
  scrollToTop(event: Event): void;
849
848
  static ɵfac: i0.ɵɵFactoryDeclaration<LandingPageFooterBComponent, never>;
@@ -1108,9 +1107,34 @@ declare class CollapsibleSidebarTriggerDirective {
1108
1107
  static ɵdir: i0.ɵɵDirectiveDeclaration<CollapsibleSidebarTriggerDirective, "[pwCollapsibleSidebarTrigger]", never, { "contentId": { "alias": "contentId"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; }, {}, never, never, true, never>;
1109
1108
  }
1110
1109
 
1110
+ declare class PwCookieBannerComponent implements OnInit {
1111
+ private readonly document;
1112
+ title: string;
1113
+ message: string;
1114
+ acceptLabel: string;
1115
+ privacyLinkLabel: string;
1116
+ privacyLinkUrl: string | null;
1117
+ tosId: number | string | null;
1118
+ privacyFallbackUrl: string;
1119
+ cookieKey: string;
1120
+ cookieTtlDays: number;
1121
+ visible: boolean;
1122
+ leaving: boolean;
1123
+ readonly role = "region";
1124
+ readonly ariaLabel = "Cookie preferences";
1125
+ constructor(document: Document);
1126
+ ngOnInit(): void;
1127
+ get resolvedPrivacyUrl(): string;
1128
+ accept(): void;
1129
+ private hasConsentCookie;
1130
+ private setConsentCookie;
1131
+ static ɵfac: i0.ɵɵFactoryDeclaration<PwCookieBannerComponent, never>;
1132
+ static ɵcmp: i0.ɵɵComponentDeclaration<PwCookieBannerComponent, "pw-cookie-banner", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "acceptLabel": { "alias": "acceptLabel"; "required": false; }; "privacyLinkLabel": { "alias": "privacyLinkLabel"; "required": false; }; "privacyLinkUrl": { "alias": "privacyLinkUrl"; "required": false; }; "tosId": { "alias": "tosId"; "required": false; }; "privacyFallbackUrl": { "alias": "privacyFallbackUrl"; "required": false; }; "cookieKey": { "alias": "cookieKey"; "required": false; }; "cookieTtlDays": { "alias": "cookieTtlDays"; "required": false; }; }, {}, never, never, true, never>;
1133
+ }
1134
+
1111
1135
  declare class SharedComponentsModule {
1112
1136
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedComponentsModule, never>;
1113
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof ConfirmDialogComponent, typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof PwBrainChatComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof SectionHeadingBlockComponent, typeof DividerBlockComponent, typeof StatCardBlockComponent, typeof DataTableBlockComponent, typeof ChartBlockComponent], [typeof i6.FormsModule, typeof i7.AppLoaderModule, typeof i6.ReactiveFormsModule, typeof i9.DirectivesModule, typeof i8.CoreTranslocoModule, typeof i31.RouterModule, typeof i32.NgbTooltipModule, typeof i32.NgbNavModule, typeof i32.NgbModalModule, typeof i33.TableModule, typeof i34.TabsModule, typeof i10.ButtonModule, typeof i36.SelectModule, typeof i37.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i40.ImageCropperModule, typeof i41.UiSwitchModule, typeof i42.NgxDaterangepickerMd, typeof i43.PipesModule, typeof i44.CommonModule, typeof i44.NgIf, typeof i16.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule, typeof CollapsibleSidebarTriggerDirective], [typeof ConfirmDialogComponent, typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof i32.NgbTooltipModule, typeof i32.NgbNavModule, typeof i32.NgbModalModule, typeof i33.TableModule, typeof i34.TabsModule, typeof i10.ButtonModule, typeof i36.SelectModule, typeof i37.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i40.ImageCropperModule, typeof i41.UiSwitchModule, typeof i42.NgxDaterangepickerMd, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof CollapsibleSidebarTriggerDirective, typeof PwBrainChatComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof i16.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule]>;
1137
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof ConfirmDialogComponent, typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof PwBrainChatComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof SectionHeadingBlockComponent, typeof DividerBlockComponent, typeof StatCardBlockComponent, typeof DataTableBlockComponent, typeof ChartBlockComponent], [typeof i6.FormsModule, typeof i7.AppLoaderModule, typeof i6.ReactiveFormsModule, typeof i9.DirectivesModule, typeof i8.CoreTranslocoModule, typeof i31.RouterModule, typeof i32.NgbTooltipModule, typeof i32.NgbNavModule, typeof i32.NgbModalModule, typeof i33.TableModule, typeof i34.TabsModule, typeof i10.ButtonModule, typeof i36.SelectModule, typeof i37.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i40.ImageCropperModule, typeof i41.UiSwitchModule, typeof i42.NgxDaterangepickerMd, typeof i43.PipesModule, typeof i44.CommonModule, typeof i44.NgIf, typeof i16.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule, typeof CollapsibleSidebarTriggerDirective, typeof PwCookieBannerComponent], [typeof ConfirmDialogComponent, typeof PwCookieBannerComponent, typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof i32.NgbTooltipModule, typeof i32.NgbNavModule, typeof i32.NgbModalModule, typeof i33.TableModule, typeof i34.TabsModule, typeof i10.ButtonModule, typeof i36.SelectModule, typeof i37.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i40.ImageCropperModule, typeof i41.UiSwitchModule, typeof i42.NgxDaterangepickerMd, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof PrivacyPolicyComponent, typeof TermsConditionsComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof CollapsibleSidebarTriggerDirective, typeof PwBrainChatComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof i16.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule]>;
1114
1138
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedComponentsModule>;
1115
1139
  }
1116
1140
 
@@ -1165,5 +1189,5 @@ declare const COMPONENT_REGISTRY: Readonly<Record<string, Type<unknown>>>;
1165
1189
  declare function registeredType(type: string): Type<unknown> | null;
1166
1190
  declare function registeredTypeNames(): string[];
1167
1191
 
1168
- export { AuthenticatorComponent, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CompletionBarComponent, ConfirmDialogComponent, ConfirmDialogService, DateRangePickerComponent, DynamicPageContextService, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwDynamicPageComponent, PwTabsComponent, RecordsSummaryComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent, UI_BUILDER_FLAG, UiLayoutService, registeredType, registeredTypeNames };
1192
+ export { AuthenticatorComponent, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CompletionBarComponent, ConfirmDialogComponent, ConfirmDialogService, DateRangePickerComponent, DynamicPageContextService, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwCookieBannerComponent, PwDynamicPageComponent, PwTabsComponent, RecordsSummaryComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent, UI_BUILDER_FLAG, UiLayoutService, registeredType, registeredTypeNames };
1169
1193
  export type { ChatMessage, ChatMessageRole, CompletionTier, ConfirmDeleteOptions, ConfirmDialogConfig, ConfirmDialogTone, DynamicPageContext, PendingConfirmation, ResolvedBinding, SidebarContent, UiBinding, UiBlock, UiGrid, UiLayoutConfig, UiLayoutResponse };