@posiwise/admin-module 0.0.210 → 0.0.212

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/admin-module",
3
- "version": "0.0.210",
3
+ "version": "0.0.212",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.6",
6
6
  "@angular/core": "^21.2.6",
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injector, OnInit, OnDestroy, ChangeDetectorRef, AfterViewInit, QueryList, TemplateRef, EventEmitter } from '@angular/core';
2
+ import { Injector, OnInit, OnDestroy, ChangeDetectorRef, AfterViewInit, QueryList, TemplateRef, EventEmitter, PipeTransform } from '@angular/core';
3
3
  import { PermissionService, AuthService, CommonService, ProductService, SubscriptionService, NgbDateCustomParserFormatter, TagService, TipsService, GroupService, CustomToastService, WindowService, AhoyService, UserService, FeatureFlagService } from '@posiwise/common-services';
4
4
  import { MenuItem, LazyLoadEvent, SelectItem } from 'primeng/api';
5
5
  import { AppBaseComponent } from '@posiwise/app-base-component';
@@ -9,41 +9,43 @@ import { UntypedFormGroup, NgForm, FormBuilder, FormGroup, FormArray, UntypedFor
9
9
  import { FAQ, Product, User, Subscription as Subscription$1, Role, Paging, Plotly, ResourcePost, ResourceInsightResponse, SubscriptionMember } from '@posiwise/common-utilities';
10
10
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
11
11
  import { CustomUploaderComponent } from '@posiwise/utils';
12
- import * as i118 from '@ng-bootstrap/ng-bootstrap';
12
+ import * as i120 from '@ng-bootstrap/ng-bootstrap';
13
13
  import { NgbModal, NgbDatepickerConfig, NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap';
14
14
  import { Observable } from 'rxjs';
15
- import * as i120 from '@angular/common';
15
+ import * as i122 from '@angular/common';
16
16
  import { DatePipe } from '@angular/common';
17
17
  import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
18
- import * as i123 from '@angular-magic/ngx-gp-autocomplete';
18
+ import * as i125 from '@angular-magic/ngx-gp-autocomplete';
19
19
  import { NgxGpAutocompleteDirective } from '@angular-magic/ngx-gp-autocomplete';
20
- import * as i122 from '@posiwise/shared-components';
20
+ import * as i124 from '@posiwise/shared-components';
21
21
  import { PermissionTreeComponent, CollapsibleSidebarService, PasswordValidationComponent } from '@posiwise/shared-components';
22
22
  import * as i109 from 'primeng/autocomplete';
23
23
  import { AutoComplete } from 'primeng/autocomplete';
24
24
  import moment$1 from 'moment';
25
25
  import * as i111 from 'primeng/multiselect';
26
26
  import { MultiSelect } from 'primeng/multiselect';
27
- import * as i119 from 'ngx-uploader';
27
+ import * as i121 from 'ngx-uploader';
28
28
  import { UploadFile, UploadInput, UploaderOptions, humanizeBytes, UploadOutput } from 'ngx-uploader';
29
29
  import * as i106 from 'primeng/table';
30
30
  import * as i107 from 'primeng/tooltip';
31
31
  import * as i108 from 'primeng/accordion';
32
32
  import * as i110 from 'primeng/select';
33
33
  import * as i112 from 'primeng/inputtext';
34
- import * as i113 from 'ngx-daterangepicker-material';
35
- import * as i114 from 'ngx-json-viewer';
36
- import * as i115 from 'primeng/datepicker';
37
- import * as i116 from 'angular-plotly.js';
38
- import * as i117 from 'primeng/fileupload';
39
- import * as i121 from 'ngx-ui-switch';
40
- import * as i124 from '@posiwise/core-transloco';
41
- import * as i125 from '@posiwise/pipes';
42
- import * as i126 from '@posiwise/directives';
34
+ import * as i113 from 'primeng/iconfield';
35
+ import * as i114 from 'primeng/inputicon';
36
+ import * as i115 from 'ngx-daterangepicker-material';
37
+ import * as i116 from 'ngx-json-viewer';
38
+ import * as i117 from 'primeng/datepicker';
39
+ import * as i118 from 'angular-plotly.js';
40
+ import * as i119 from 'primeng/fileupload';
41
+ import * as i123 from 'ngx-ui-switch';
42
+ import * as i126 from '@posiwise/core-transloco';
43
+ import * as i127 from '@posiwise/pipes';
44
+ import * as i129 from '@posiwise/directives';
43
45
  import * as i1 from '@angular/router';
44
46
  import { Router, Route, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
45
- import * as i129 from 'ngx-pagination';
46
- import * as i130 from 'ngx-quill';
47
+ import * as i132 from 'ngx-pagination';
48
+ import * as i133 from 'ngx-quill';
47
49
 
48
50
  declare class UserTabComponent {
49
51
  private readonly permission;
@@ -581,6 +583,8 @@ declare class DomainConfigListComponent extends AppBaseComponent implements OnIn
581
583
  onLazyLoad(event: LazyLoadEvent): void;
582
584
  private getDomainConfigs;
583
585
  onDelete(id: number): void;
586
+ getCompletion(item: DomainConfig): number;
587
+ getCompletionTooltip(item: DomainConfig): string;
584
588
  ngOnDestroy(): void;
585
589
  static ɵfac: i0.ɵɵFactoryDeclaration<DomainConfigListComponent, never>;
586
590
  static ɵcmp: i0.ɵɵComponentDeclaration<DomainConfigListComponent, "pw-domain-config-list", never, {}, {}, never, never, false, never>;
@@ -1424,6 +1428,7 @@ declare class FeatureFlagsListComponent extends AppBaseComponent {
1424
1428
  };
1425
1429
  buttonBusy: boolean;
1426
1430
  isLoaded: boolean;
1431
+ loading: boolean;
1427
1432
  searchText: string;
1428
1433
  featureFlags: any[];
1429
1434
  totalRecords: number;
@@ -5055,6 +5060,36 @@ declare class UsersInformationSidebarComponent {
5055
5060
  static ɵcmp: i0.ɵɵComponentDeclaration<UsersInformationSidebarComponent, "pw-users-information-sidebar", never, {}, {}, never, never, false, never>;
5056
5061
  }
5057
5062
 
5063
+ interface KpiInsight {
5064
+ /** Metric name with the trailing "(vs. …)" parenthetical stripped. */
5065
+ name: string;
5066
+ /** The comparison label extracted from the parenthetical, e.g. "vs. prev Quarter". */
5067
+ comp: string;
5068
+ /** Primary (current) value, e.g. "27", "$0", "0%". */
5069
+ primary: string;
5070
+ /** Secondary (reference) value, e.g. "0" — empty when the value has no " / ". */
5071
+ secondary: string;
5072
+ }
5073
+ /**
5074
+ * Splits a subscription-insight `{ title, value }` item into a display model.
5075
+ *
5076
+ * title "New Subscriptions Last 3 Months (vs. prev Quarter)" → name + comp
5077
+ * value "27 / 0" → primary + secondary
5078
+ *
5079
+ * Pure display transform — mirrors the previous inline `@let` template parsing
5080
+ * 1:1 (no behaviour change). Honest by design: it does NOT compute a delta or
5081
+ * direction, because these are paired *reference* metrics (ARR vs avg ARR,
5082
+ * 30d vs 90d), not period-over-period deltas.
5083
+ */
5084
+ declare class KpiInsightPipe implements PipeTransform {
5085
+ transform(item: {
5086
+ title?: string;
5087
+ value?: string;
5088
+ } | null | undefined): KpiInsight;
5089
+ static ɵfac: i0.ɵɵFactoryDeclaration<KpiInsightPipe, never>;
5090
+ static ɵpipe: i0.ɵɵPipeDeclaration<KpiInsightPipe, "kpiInsight", true>;
5091
+ }
5092
+
5058
5093
  declare class AdminRoutingModule {
5059
5094
  static ɵfac: i0.ɵɵFactoryDeclaration<AdminRoutingModule, never>;
5060
5095
  static ɵmod: i0.ɵɵNgModuleDeclaration<AdminRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
@@ -5063,7 +5098,7 @@ declare class AdminRoutingModule {
5063
5098
 
5064
5099
  declare class AdminModule {
5065
5100
  static ɵfac: i0.ɵɵFactoryDeclaration<AdminModule, never>;
5066
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdminModule, [typeof UserTabComponent, typeof SubscriptionComponent, typeof MailerComponent, typeof MailerListComponent, typeof MailerDetailsComponent, typeof NewsletterComponent, typeof FaqListComponent, typeof DomainConfigListComponent, typeof DomainConfigDetailsComponent, typeof DomainConfigBuildComponent, typeof DomainConfigCoreComponent, typeof DomainConfigOrganizationComponent, typeof DomainConfigSecurityComponent, typeof DomainConfigSocialComponent, typeof DomainConfigIntegrationsComponent, typeof DomainConfigInterfaceComponent, typeof DomainConfigTabsComponent, typeof LoginNotificationTabsComponent, typeof LoginNotificationsListComponent, typeof LoginNotificationDetailsComponent, typeof FeedbackQuestionsListComponent, typeof FeedbackQuestionsDetailsComponent, typeof FeatureFlagsListComponent, typeof FeatureFlagDetailsComponent, typeof FeatureFlagRulesComponent, typeof FeatureFlagsTabsComponent, typeof UserDetailsComponent, typeof ProductsTabComponent, typeof SubscriptionDetailsComponent, typeof NewsletterDetailsComponent, typeof NewsletterItemDetailsComponent, typeof NewsLetterItemViewComponent, typeof ProductDetailsComponent, typeof RoleDetailsComponent, typeof TagsTabsComponent, typeof TipComponent, typeof TipsComponent, typeof AgentDetailsComponent, typeof UserListComponent, typeof RolesListComponent, typeof SubscriptionsListComponent, typeof InviteUsersComponent, typeof SubscriptionProductDetailsComponent, typeof InsightComponent, typeof SubscriptionInsightNpsComponent, typeof SubscriptionInsightAveragePriceComponent, typeof SubscriptionInsightProcuctSessionComponent, typeof SubscriptionInsightUserSessionComponent, typeof SubscriptionInsightAverageUserComponent, typeof SubscriptionInsightRevenueComponent, typeof SubscriptionInsightChurnComponent, typeof ProductsListComponent, typeof ProductInsightComponent, typeof ResourcesAdminIndexComponent, typeof ResourceAdminDetailsComponent, typeof TagDetailsComponent, typeof ResourcesIndexComponent, typeof ResourcesInsightComponent, typeof ResourcesListsInsightComponent, typeof NewslettersListComponent, typeof NewslettersItemsComponent, typeof NewsletterInsightComponent, typeof UserInsightComponent, typeof TagsCategoryComponent, typeof TagsListComponent, typeof TipsTabsComponent, typeof GenericMiscComponent, typeof GenericInsightComponent, typeof FaqTabsComponent, typeof ContactUsTabsComponent, typeof GeneralTabsComponent, typeof PermissionsListComponent, typeof PermissionsDetailsComponent, typeof PermissionsTabsComponent, typeof TermsOfServiceComponent, typeof TermsOfServiceTabsComponent, typeof TermsOfServiceDetailsComponent, typeof CredentialsComponent, typeof SubscriptionCredentialsComponent, typeof SubscriptionCredentialsDetailsComponent, typeof CredentialsDetailsComponent, typeof CredentialsTabComponent, typeof AhoyEventsComponent, typeof TrackingComponent, typeof AhoyMessagesComponent, typeof AhoyVisitsComponent, typeof EventsComponent, typeof VersionsComponent, typeof UsersListForProductComponent, typeof NewsletterUsersListComponent, typeof GlobalConfigListComponent, typeof GlobalConfigDetailsComponent, typeof GlobalConfigTabsComponent, typeof SubscriptionProductsComponent, typeof SubscriptionUsersComponent, typeof AddMembersComponent, typeof SubscriptionAgentsListComponent, typeof SubscriptionInsightTabsComponent, typeof ContactUsListComponent, typeof IncidentListComponent, typeof IncidentTabsComponent, typeof AddEditIncidentComponent, typeof AddFaqComponent, typeof EditFaqComponent, typeof UsersInformationSidebarComponent], [typeof i106.TableModule, typeof i107.TooltipModule, typeof i108.AccordionModule, typeof i109.AutoCompleteModule, typeof i110.SelectModule, typeof i111.MultiSelectModule, typeof i112.InputTextModule, typeof i113.NgxDaterangepickerMd, typeof i114.NgxJsonViewerModule, typeof i115.DatePickerModule, typeof i116.PlotlyViaCDNModule, typeof i117.FileUploadModule, typeof i118.NgbTooltipModule, typeof i119.NgxUploaderModule, typeof i120.CommonModule, typeof i121.UiSwitchModule, typeof i122.SharedComponentsModule, typeof i122.CollapsibleSidebarTriggerDirective, typeof i123.NgxGpAutocompleteModule, typeof i124.CoreTranslocoModule, typeof i125.PipesModule, typeof i126.DirectivesModule, typeof AdminRoutingModule, typeof i118.NgbModalModule, typeof _angular_forms.FormsModule, typeof _angular_forms.ReactiveFormsModule, typeof i129.NgxPaginationModule, typeof i118.NgbNavModule, typeof i118.NgbDatepickerModule, typeof i130.QuillModule], never>;
5101
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdminModule, [typeof UserTabComponent, typeof SubscriptionComponent, typeof MailerComponent, typeof MailerListComponent, typeof MailerDetailsComponent, typeof NewsletterComponent, typeof FaqListComponent, typeof DomainConfigListComponent, typeof DomainConfigDetailsComponent, typeof DomainConfigBuildComponent, typeof DomainConfigCoreComponent, typeof DomainConfigOrganizationComponent, typeof DomainConfigSecurityComponent, typeof DomainConfigSocialComponent, typeof DomainConfigIntegrationsComponent, typeof DomainConfigInterfaceComponent, typeof DomainConfigTabsComponent, typeof LoginNotificationTabsComponent, typeof LoginNotificationsListComponent, typeof LoginNotificationDetailsComponent, typeof FeedbackQuestionsListComponent, typeof FeedbackQuestionsDetailsComponent, typeof FeatureFlagsListComponent, typeof FeatureFlagDetailsComponent, typeof FeatureFlagRulesComponent, typeof FeatureFlagsTabsComponent, typeof UserDetailsComponent, typeof ProductsTabComponent, typeof SubscriptionDetailsComponent, typeof NewsletterDetailsComponent, typeof NewsletterItemDetailsComponent, typeof NewsLetterItemViewComponent, typeof ProductDetailsComponent, typeof RoleDetailsComponent, typeof TagsTabsComponent, typeof TipComponent, typeof TipsComponent, typeof AgentDetailsComponent, typeof UserListComponent, typeof RolesListComponent, typeof SubscriptionsListComponent, typeof InviteUsersComponent, typeof SubscriptionProductDetailsComponent, typeof InsightComponent, typeof SubscriptionInsightNpsComponent, typeof SubscriptionInsightAveragePriceComponent, typeof SubscriptionInsightProcuctSessionComponent, typeof SubscriptionInsightUserSessionComponent, typeof SubscriptionInsightAverageUserComponent, typeof SubscriptionInsightRevenueComponent, typeof SubscriptionInsightChurnComponent, typeof ProductsListComponent, typeof ProductInsightComponent, typeof ResourcesAdminIndexComponent, typeof ResourceAdminDetailsComponent, typeof TagDetailsComponent, typeof ResourcesIndexComponent, typeof ResourcesInsightComponent, typeof ResourcesListsInsightComponent, typeof NewslettersListComponent, typeof NewslettersItemsComponent, typeof NewsletterInsightComponent, typeof UserInsightComponent, typeof TagsCategoryComponent, typeof TagsListComponent, typeof TipsTabsComponent, typeof GenericMiscComponent, typeof GenericInsightComponent, typeof FaqTabsComponent, typeof ContactUsTabsComponent, typeof GeneralTabsComponent, typeof PermissionsListComponent, typeof PermissionsDetailsComponent, typeof PermissionsTabsComponent, typeof TermsOfServiceComponent, typeof TermsOfServiceTabsComponent, typeof TermsOfServiceDetailsComponent, typeof CredentialsComponent, typeof SubscriptionCredentialsComponent, typeof SubscriptionCredentialsDetailsComponent, typeof CredentialsDetailsComponent, typeof CredentialsTabComponent, typeof AhoyEventsComponent, typeof TrackingComponent, typeof AhoyMessagesComponent, typeof AhoyVisitsComponent, typeof EventsComponent, typeof VersionsComponent, typeof UsersListForProductComponent, typeof NewsletterUsersListComponent, typeof GlobalConfigListComponent, typeof GlobalConfigDetailsComponent, typeof GlobalConfigTabsComponent, typeof SubscriptionProductsComponent, typeof SubscriptionUsersComponent, typeof AddMembersComponent, typeof SubscriptionAgentsListComponent, typeof SubscriptionInsightTabsComponent, typeof ContactUsListComponent, typeof IncidentListComponent, typeof IncidentTabsComponent, typeof AddEditIncidentComponent, typeof AddFaqComponent, typeof EditFaqComponent, typeof UsersInformationSidebarComponent], [typeof i106.TableModule, typeof i107.TooltipModule, typeof i108.AccordionModule, typeof i109.AutoCompleteModule, typeof i110.SelectModule, typeof i111.MultiSelectModule, typeof i112.InputTextModule, typeof i113.IconFieldModule, typeof i114.InputIconModule, typeof i115.NgxDaterangepickerMd, typeof i116.NgxJsonViewerModule, typeof i117.DatePickerModule, typeof i118.PlotlyViaCDNModule, typeof i119.FileUploadModule, typeof i120.NgbTooltipModule, typeof i121.NgxUploaderModule, typeof i122.CommonModule, typeof i123.UiSwitchModule, typeof i124.SharedComponentsModule, typeof i124.CollapsibleSidebarTriggerDirective, typeof i125.NgxGpAutocompleteModule, typeof i126.CoreTranslocoModule, typeof i127.PipesModule, typeof KpiInsightPipe, typeof i129.DirectivesModule, typeof AdminRoutingModule, typeof i120.NgbModalModule, typeof _angular_forms.FormsModule, typeof _angular_forms.ReactiveFormsModule, typeof i132.NgxPaginationModule, typeof i120.NgbNavModule, typeof i120.NgbDatepickerModule, typeof i133.QuillModule], never>;
5067
5102
  static ɵinj: i0.ɵɵInjectorDeclaration<AdminModule>;
5068
5103
  }
5069
5104