@posiwise/shared-components 0.0.178 → 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.178",
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 {
@@ -817,17 +822,27 @@ declare class HeaderComponent extends AppBaseComponent {
817
822
  landing: boolean;
818
823
  navigateToLogin(): void;
819
824
  toggleMenu(): void;
820
- logo: any;
825
+ private logoFailed;
826
+ get logo(): string | null;
827
+ onLogoError(): void;
821
828
  static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
822
829
  static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "pw-header", never, { "landing": { "alias": "landing"; "required": false; }; }, {}, never, never, false, never>;
823
830
  }
824
831
 
825
- declare class LandingPageFooterBComponent implements OnInit {
832
+ declare class LandingPageFooterBComponent extends AppBaseComponent implements OnInit {
826
833
  private readonly authService;
827
834
  private readonly cdr;
828
835
  isBrowserAccess: boolean;
829
836
  currentDate: Date;
830
- 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);
831
846
  ngOnInit(): void;
832
847
  scrollToTop(event: Event): void;
833
848
  static ɵfac: i0.ɵɵFactoryDeclaration<LandingPageFooterBComponent, never>;
@@ -1092,9 +1107,34 @@ declare class CollapsibleSidebarTriggerDirective {
1092
1107
  static ɵdir: i0.ɵɵDirectiveDeclaration<CollapsibleSidebarTriggerDirective, "[pwCollapsibleSidebarTrigger]", never, { "contentId": { "alias": "contentId"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; }, {}, never, never, true, never>;
1093
1108
  }
1094
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
+
1095
1135
  declare class SharedComponentsModule {
1096
1136
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedComponentsModule, never>;
1097
- 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]>;
1098
1138
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedComponentsModule>;
1099
1139
  }
1100
1140
 
@@ -1149,5 +1189,5 @@ declare const COMPONENT_REGISTRY: Readonly<Record<string, Type<unknown>>>;
1149
1189
  declare function registeredType(type: string): Type<unknown> | null;
1150
1190
  declare function registeredTypeNames(): string[];
1151
1191
 
1152
- 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 };
1153
1193
  export type { ChatMessage, ChatMessageRole, CompletionTier, ConfirmDeleteOptions, ConfirmDialogConfig, ConfirmDialogTone, DynamicPageContext, PendingConfirmation, ResolvedBinding, SidebarContent, UiBinding, UiBlock, UiGrid, UiLayoutConfig, UiLayoutResponse };