@posiwise/shared-components 0.0.229 → 0.0.230
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,43 +1,41 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, Injector, OnChanges, OnDestroy, OnInit, PipeTransform, SimpleChanges, TemplateRef, Type, ViewContainerRef } from "@angular/core";
|
|
3
|
-
import { AuthService, BaseHttpService, BrainSocketService, BrainVoiceService, CustomToastService, DashboardService, DataService, DirectUploadService, FeatureFlagService, GroupService, KnowledgeFile, KnowledgeFilesService, KnowledgeScope, LocalStorage, MCPFieldDiff, MCPOrchestratorService, MCPUploadCapability, MainApiHttpService, NavEntry, NavigationIndexService, NumberPickerService, PermissionService, RecentPagesService, SubscriptionService, UserService, VoiceChatService } from "@posiwise/common-services";
|
|
4
|
-
import * as
|
|
3
|
+
import { AuthService, BaseHttpService, BrainSocketService, BrainVoiceService, CustomToastService, DashboardService, DataService, DirectUploadService, FeatureFlagService, GroupService, KnowledgeFile, KnowledgeFilesService, KnowledgeScope, LegalPagesService, LegalTab, LocalStorage, MCPFieldDiff, MCPOrchestratorService, MCPUploadCapability, MainApiHttpService, NavEntry, NavigationIndexService, NumberPickerService, PermissionService, RecentPagesService, SubscriptionService, UserService, VoiceChatService } from "@posiwise/common-services";
|
|
4
|
+
import * as i42 from "primeng/table";
|
|
5
5
|
import { Table } from "primeng/table";
|
|
6
6
|
import { TranslocoService } from "@jsverse/transloco";
|
|
7
7
|
import * as i14 from "@ng-bootstrap/ng-bootstrap";
|
|
8
8
|
import { NgbActiveModal, NgbModal } from "@ng-bootstrap/ng-bootstrap";
|
|
9
9
|
import * as i8 from "@angular/router";
|
|
10
|
-
import { Router } from "@angular/router";
|
|
10
|
+
import { Route, Router, Routes } from "@angular/router";
|
|
11
11
|
import { AppConfigService } from "@posiwise/app-config-service";
|
|
12
12
|
import { Observable, Subject } from "rxjs";
|
|
13
13
|
import { AppBaseComponent } from "@posiwise/app-base-component";
|
|
14
14
|
import { MenuItem } from "primeng/api";
|
|
15
15
|
import moment from "moment";
|
|
16
|
-
import * as
|
|
16
|
+
import * as i51 from "ngx-daterangepicker-material";
|
|
17
17
|
import { DaterangepickerDirective } from "ngx-daterangepicker-material";
|
|
18
|
-
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
|
|
19
|
-
import { AdminService } from "@posiwise/admin-module-utils";
|
|
20
|
-
import { Subscription, User } from "@posiwise/common-utilities";
|
|
21
18
|
import { AppState } from "@posiwise/app-store";
|
|
22
19
|
import { Store } from "@ngrx/store";
|
|
20
|
+
import { Subscription, User } from "@posiwise/common-utilities";
|
|
23
21
|
import * as i7 from "@angular/forms";
|
|
24
22
|
import { AbstractControl, ControlContainer, UntypedFormBuilder, UntypedFormGroup } from "@angular/forms";
|
|
25
|
-
import * as
|
|
26
|
-
import * as
|
|
27
|
-
import * as
|
|
23
|
+
import * as i33 from "primeng/iconfield";
|
|
24
|
+
import * as i34 from "primeng/inputicon";
|
|
25
|
+
import * as i35 from "primeng/inputtext";
|
|
28
26
|
import * as i10 from "@posiwise/app-loader";
|
|
29
27
|
import * as i12 from "@posiwise/directives";
|
|
30
28
|
import * as i11 from "@posiwise/core-transloco";
|
|
31
29
|
import * as i15 from "primeng/tooltip";
|
|
32
|
-
import * as
|
|
30
|
+
import * as i43 from "primeng/tabs";
|
|
33
31
|
import * as i13 from "primeng/button";
|
|
34
|
-
import * as
|
|
35
|
-
import * as
|
|
32
|
+
import * as i45 from "primeng/select";
|
|
33
|
+
import * as i46 from "primeng/multiselect";
|
|
36
34
|
import * as i16 from "primeng/progressspinner";
|
|
37
35
|
import * as i17 from "primeng/autocomplete";
|
|
38
|
-
import * as
|
|
39
|
-
import * as
|
|
40
|
-
import * as
|
|
36
|
+
import * as i49 from "ngx-image-cropper";
|
|
37
|
+
import * as i50 from "ngx-ui-switch";
|
|
38
|
+
import * as i52 from "@posiwise/pipes";
|
|
41
39
|
import * as i6 from "@angular/common";
|
|
42
40
|
import * as i19 from "@posiwise/utils";
|
|
43
41
|
import { IconDefinition } from "@fortawesome/free-solid-svg-icons";
|
|
@@ -650,27 +648,21 @@ export declare class PermissionTreeComponent implements AfterViewInit, OnChanges
|
|
|
650
648
|
declare namespace privacy_and_tos_component_d_exports {
|
|
651
649
|
export { PrivacyAndTosComponent };
|
|
652
650
|
}
|
|
651
|
+
/**
|
|
652
|
+
* Public routes (`data.public`) show the policy at `/privacy-policy[/:slug]`; without a slug, the
|
|
653
|
+
* visitor's domain default. Signed-in pages and the embedded `[productId]` use show the policy of
|
|
654
|
+
* that product, resolved to a slug so the id never reaches a URL; with no signed-in user they fall
|
|
655
|
+
* back to the domain default rather than waiting forever.
|
|
656
|
+
*/
|
|
653
657
|
export declare class PrivacyAndTosComponent extends AppBaseComponent implements OnInit {
|
|
654
|
-
private readonly
|
|
655
|
-
private readonly document;
|
|
656
|
-
private readonly sanitizer;
|
|
658
|
+
private readonly legalPages;
|
|
657
659
|
private readonly cdr;
|
|
658
660
|
productId: number;
|
|
659
|
-
private privacyAndTos;
|
|
660
|
-
id: string;
|
|
661
661
|
data: {
|
|
662
|
-
privacy?:
|
|
663
|
-
tos?:
|
|
662
|
+
privacy?: string;
|
|
663
|
+
tos?: string;
|
|
664
664
|
tos_updated_at?: string;
|
|
665
665
|
};
|
|
666
|
-
user: User;
|
|
667
|
-
subscribedSubscriptions: {
|
|
668
|
-
products: {
|
|
669
|
-
id: number;
|
|
670
|
-
}[];
|
|
671
|
-
}[];
|
|
672
|
-
product: string;
|
|
673
|
-
productName: string;
|
|
674
666
|
privacyServiceId: number;
|
|
675
667
|
readonly routers: {
|
|
676
668
|
globalConfigDetails: string;
|
|
@@ -710,7 +702,7 @@ export declare class PrivacyAndTosComponent extends AppBaseComponent implements
|
|
|
710
702
|
posts: string;
|
|
711
703
|
resourcesList: string;
|
|
712
704
|
};
|
|
713
|
-
tabId:
|
|
705
|
+
tabId: LegalTab;
|
|
714
706
|
isPublic: boolean;
|
|
715
707
|
isLoaded: boolean;
|
|
716
708
|
tocPrivacy: {
|
|
@@ -721,17 +713,18 @@ export declare class PrivacyAndTosComponent extends AppBaseComponent implements
|
|
|
721
713
|
id: string;
|
|
722
714
|
text: string;
|
|
723
715
|
}[];
|
|
716
|
+
private readonly destroyRef;
|
|
724
717
|
get companyName(): string;
|
|
725
718
|
get companyEmail(): string;
|
|
726
|
-
constructor(
|
|
719
|
+
constructor(legalPages: LegalPagesService, injector: Injector, cdr: ChangeDetectorRef);
|
|
727
720
|
/** Edit affordance is restricted to (Master) Subscription Admins who can reach /admin/tos. */
|
|
728
721
|
get canEditPolicy(): boolean;
|
|
729
722
|
ngOnInit(): void;
|
|
730
|
-
private
|
|
731
|
-
|
|
723
|
+
private productSlug;
|
|
724
|
+
private policyIdOf;
|
|
725
|
+
private show;
|
|
726
|
+
private parse;
|
|
732
727
|
private buildToc;
|
|
733
|
-
private findRequiredProducts;
|
|
734
|
-
private getTosDetails;
|
|
735
728
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrivacyAndTosComponent, never>;
|
|
736
729
|
static ɵcmp: i0.ɵɵComponentDeclaration<PrivacyAndTosComponent, "pw-privacy-and-tos", never, {
|
|
737
730
|
"productId": {
|
|
@@ -740,28 +733,6 @@ export declare class PrivacyAndTosComponent extends AppBaseComponent implements
|
|
|
740
733
|
};
|
|
741
734
|
}, {}, never, never, false, never>;
|
|
742
735
|
}
|
|
743
|
-
declare namespace privacy_policy_component_d_exports {
|
|
744
|
-
export { PrivacyPolicyComponent };
|
|
745
|
-
}
|
|
746
|
-
export declare class PrivacyPolicyComponent implements OnInit {
|
|
747
|
-
private readonly appConfigService;
|
|
748
|
-
private readonly router;
|
|
749
|
-
constructor(appConfigService: AppConfigService, router: Router);
|
|
750
|
-
ngOnInit(): void;
|
|
751
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PrivacyPolicyComponent, never>;
|
|
752
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PrivacyPolicyComponent, "pw-privacy-policy", never, {}, {}, never, never, false, never>;
|
|
753
|
-
}
|
|
754
|
-
declare namespace terms_conditions_component_d_exports {
|
|
755
|
-
export { TermsConditionsComponent };
|
|
756
|
-
}
|
|
757
|
-
export declare class TermsConditionsComponent implements OnInit {
|
|
758
|
-
private readonly appConfigService;
|
|
759
|
-
private readonly router;
|
|
760
|
-
constructor(appConfigService: AppConfigService, router: Router);
|
|
761
|
-
ngOnInit(): void;
|
|
762
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TermsConditionsComponent, never>;
|
|
763
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TermsConditionsComponent, "pw-terms-conditions", never, {}, {}, never, never, false, never>;
|
|
764
|
-
}
|
|
765
736
|
declare namespace splash_component_d_exports {
|
|
766
737
|
export { SplashComponent };
|
|
767
738
|
}
|
|
@@ -2477,12 +2448,11 @@ export declare class PwCookieBannerComponent implements OnInit {
|
|
|
2477
2448
|
acceptLabel: string | null;
|
|
2478
2449
|
privacyLinkLabel: string | null;
|
|
2479
2450
|
privacyLinkUrl: string | null;
|
|
2480
|
-
tosId: number | string | null;
|
|
2481
2451
|
privacyFallbackUrl: string;
|
|
2482
2452
|
cookieKey: string;
|
|
2483
2453
|
cookieTtlDays: number;
|
|
2484
|
-
visible: boolean
|
|
2485
|
-
leaving: boolean
|
|
2454
|
+
readonly visible: import("@angular/core").WritableSignal<boolean>;
|
|
2455
|
+
readonly leaving: import("@angular/core").WritableSignal<boolean>;
|
|
2486
2456
|
readonly role = "region";
|
|
2487
2457
|
get ariaLabel(): string;
|
|
2488
2458
|
constructor(document: Document, translation: TranslocoService);
|
|
@@ -2514,10 +2484,6 @@ export declare class PwCookieBannerComponent implements OnInit {
|
|
|
2514
2484
|
"alias": "privacyLinkUrl";
|
|
2515
2485
|
"required": false;
|
|
2516
2486
|
};
|
|
2517
|
-
"tosId": {
|
|
2518
|
-
"alias": "tosId";
|
|
2519
|
-
"required": false;
|
|
2520
|
-
};
|
|
2521
2487
|
"privacyFallbackUrl": {
|
|
2522
2488
|
"alias": "privacyFallbackUrl";
|
|
2523
2489
|
"required": false;
|
|
@@ -2602,9 +2568,19 @@ declare class PwBrainChatThreadDirective {
|
|
|
2602
2568
|
}
|
|
2603
2569
|
export declare class SharedComponentsModule {
|
|
2604
2570
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedComponentsModule, never>;
|
|
2605
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof AiKnowledgeComponent, typeof CommandPaletteComponent, typeof ConfirmDialogComponent, typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof
|
|
2571
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof AiKnowledgeComponent, typeof CommandPaletteComponent, typeof ConfirmDialogComponent, typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof PwBrainChatComponent, typeof PwBrainChatConfirmComponent, typeof PwBrainChatQuickComponent, typeof PwBrainChatWelcomeComponent, typeof PwBrainChatVoiceOverlayComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof OnlineIndicatorComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof SectionHeadingBlockComponent, typeof DividerBlockComponent, typeof StatCardBlockComponent, typeof DataTableBlockComponent, typeof ChartBlockComponent], [typeof i7.FormsModule, typeof i33.IconFieldModule, typeof i34.InputIconModule, typeof i35.InputTextModule, typeof i10.AppLoaderModule, typeof i7.ReactiveFormsModule, typeof i12.DirectivesModule, typeof i11.CoreTranslocoModule, typeof i8.RouterModule, typeof i14.NgbTooltipModule, typeof i15.TooltipModule, typeof i14.NgbNavModule, typeof i14.NgbModalModule, typeof i42.TableModule, typeof i43.TabsModule, typeof i13.ButtonModule, typeof i45.SelectModule, typeof i46.MultiSelectModule, typeof i16.ProgressSpinnerModule, typeof i17.AutoCompleteModule, typeof i49.ImageCropperComponent, typeof i50.UiSwitchModule, typeof i51.NgxDaterangepickerMd, typeof i52.PipesModule, typeof i6.CommonModule, typeof i6.NgIf, typeof i19.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule, typeof CollapsibleSidebarTriggerDirective, typeof PwCookieBannerComponent, typeof SafeMarkdownPipe, typeof PwBrainChatThreadDirective], [typeof AiKnowledgeComponent, typeof CommandPaletteComponent, typeof ConfirmDialogComponent, typeof PwCookieBannerComponent, typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof i14.NgbTooltipModule, typeof i15.TooltipModule, typeof i14.NgbNavModule, typeof i14.NgbModalModule, typeof i42.TableModule, typeof i43.TabsModule, typeof i13.ButtonModule, typeof i45.SelectModule, typeof i46.MultiSelectModule, typeof i16.ProgressSpinnerModule, typeof i17.AutoCompleteModule, typeof i49.ImageCropperComponent, typeof i50.UiSwitchModule, typeof i51.NgxDaterangepickerMd, typeof PermissionTreeComponent, typeof PrivacyAndTosComponent, typeof SplashComponent, typeof AuthenticatorComponent, typeof ClearBitIconComponent, typeof ComingSoonComponent, typeof CollapsibleSidebarComponent, typeof CollapsibleSidebarTriggerDirective, typeof PwBrainChatComponent, typeof EntityGroupComponent, typeof GroupsComponent, typeof GroupDefinitionComponent, typeof NumberPickerComponent, typeof OnlineIndicatorComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof i19.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule]>;
|
|
2606
2572
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedComponentsModule>;
|
|
2607
2573
|
}
|
|
2574
|
+
export interface LegalPageRouteOptions {
|
|
2575
|
+
/** Overrides the per-tab page title, e.g. for a product's SEO title. */
|
|
2576
|
+
title?: string;
|
|
2577
|
+
description?: string;
|
|
2578
|
+
canActivate?: Route['canActivate'];
|
|
2579
|
+
}
|
|
2580
|
+
/** `/privacy-policy[/:slug]` and `/terms-conditions[/:slug]`, readable without signing in. */
|
|
2581
|
+
export declare function publicLegalPageRoutes(options?: LegalPageRouteOptions): Routes;
|
|
2582
|
+
/** Inside the signed-in app: the policy of the selected product. */
|
|
2583
|
+
export declare function dashboardLegalPageRoutes(): Routes;
|
|
2608
2584
|
/**
|
|
2609
2585
|
* CollapsibleSidebarSuperAdminGuard
|
|
2610
2586
|
*
|