@posiwise/shared-components 0.0.162 → 0.0.165

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.162",
3
+ "version": "0.0.165",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.6",
6
6
  "@angular/core": "^21.2.6",
@@ -18,25 +18,25 @@ import * as i30 from '@angular/router';
18
18
  import { Router } from '@angular/router';
19
19
  import { AppState } from '@posiwise/app-store';
20
20
  import { Store } from '@ngrx/store';
21
- import * as i5 from '@angular/forms';
21
+ import * as i6 from '@angular/forms';
22
22
  import { UntypedFormGroup, UntypedFormBuilder, AbstractControl, ControlContainer } from '@angular/forms';
23
- import * as i6 from '@posiwise/app-loader';
24
- import * as i8 from '@posiwise/directives';
25
- import * as i7 from '@posiwise/core-transloco';
23
+ import * as i7 from '@posiwise/app-loader';
24
+ import * as i9 from '@posiwise/directives';
25
+ import * as i8 from '@posiwise/core-transloco';
26
26
  import * as i32 from 'primeng/table';
27
27
  import * as i33 from 'primeng/tabs';
28
- import * as i9 from 'primeng/button';
28
+ import * as i10 from 'primeng/button';
29
29
  import * as i35 from 'primeng/select';
30
30
  import * as i36 from 'primeng/multiselect';
31
- import * as i12 from 'primeng/progressspinner';
32
- import * as i13 from 'primeng/autocomplete';
31
+ import * as i13 from 'primeng/progressspinner';
32
+ import * as i14 from 'primeng/autocomplete';
33
33
  import * as i39 from 'ngx-image-cropper';
34
34
  import * as i40 from 'ngx-ui-switch';
35
35
  import * as i42 from '@posiwise/pipes';
36
36
  import * as i43 from '@angular/common';
37
- import * as i15 from '@posiwise/utils';
38
- import * as i11 from 'primeng/tooltip';
39
- import * as i14 from '@angular/cdk/drag-drop';
37
+ import * as i16 from '@posiwise/utils';
38
+ import * as i12 from 'primeng/tooltip';
39
+ import * as i15 from '@angular/cdk/drag-drop';
40
40
 
41
41
  interface SharedModalContext {
42
42
  modal: {
@@ -339,6 +339,7 @@ declare class CollapsibleSidebarComponent implements OnInit, AfterViewInit, OnDe
339
339
  private readonly sidebarService;
340
340
  private readonly injector;
341
341
  private readonly cdr;
342
+ private readonly appConfigService?;
342
343
  contentContainer: ViewContainerRef;
343
344
  /**
344
345
  * When true, the drawer is a flex sibling of the page: main content shrinks (GitLab issue-board style).
@@ -354,10 +355,12 @@ declare class CollapsibleSidebarComponent implements OnInit, AfterViewInit, OnDe
354
355
  currentContent: SidebarContent | null;
355
356
  private componentRef;
356
357
  private readonly destroy$;
357
- constructor(sidebarService: CollapsibleSidebarService, injector: Injector, cdr: ChangeDetectorRef);
358
+ constructor(sidebarService: CollapsibleSidebarService, injector: Injector, cdr: ChangeDetectorRef, appConfigService?: AppConfigService);
358
359
  ngOnInit(): void;
359
360
  ngAfterViewInit(): void;
360
361
  ngOnDestroy(): void;
362
+ /** Register (idempotently) the Assistant panel under the given brand. */
363
+ private registerBrainPanel;
361
364
  /**
362
365
  * Load and render dynamic component based on sidebar content
363
366
  */
@@ -374,7 +377,7 @@ declare class CollapsibleSidebarComponent implements OnInit, AfterViewInit, OnDe
374
377
  * Toggle sidebar expanded/collapsed state
375
378
  */
376
379
  toggleSidebar(): void;
377
- static ɵfac: i0.ɵɵFactoryDeclaration<CollapsibleSidebarComponent, never>;
380
+ static ɵfac: i0.ɵɵFactoryDeclaration<CollapsibleSidebarComponent, [null, null, null, { optional: true; }]>;
378
381
  static ɵcmp: i0.ɵɵComponentDeclaration<CollapsibleSidebarComponent, "pw-collapsible-sidebar", never, { "embedInLayout": { "alias": "embedInLayout"; "required": false; }; }, {}, never, never, false, never>;
379
382
  static ngAcceptInputType_embedInLayout: unknown;
380
383
  }
@@ -437,15 +440,17 @@ declare class PwBrainChatComponent implements OnInit, OnDestroy {
437
440
  private readonly cdr;
438
441
  private readonly store;
439
442
  private readonly dynamicPageCtx;
443
+ private readonly appConfigService?;
440
444
  messages: ChatMessage[];
441
445
  draft: string;
442
446
  loading: boolean;
447
+ brandName: string;
443
448
  private conversationId;
444
449
  private storage;
445
450
  private readonly destroy$;
446
451
  readonly diffRows: typeof diffRowsFrom;
447
452
  private readonly threadRef?;
448
- constructor(orchestrator: MCPOrchestratorService, localStorage: LocalStorage, router: Router, cdr: ChangeDetectorRef, store: Store<AppState>, dynamicPageCtx: DynamicPageContextService);
453
+ constructor(orchestrator: MCPOrchestratorService, localStorage: LocalStorage, router: Router, cdr: ChangeDetectorRef, store: Store<AppState>, dynamicPageCtx: DynamicPageContextService, appConfigService?: AppConfigService);
449
454
  ngOnInit(): void;
450
455
  ngOnDestroy(): void;
451
456
  send(): void;
@@ -458,7 +463,7 @@ declare class PwBrainChatComponent implements OnInit, OnDestroy {
458
463
  private persistConversationId;
459
464
  private pushAssistant;
460
465
  private stick;
461
- static ɵfac: i0.ɵɵFactoryDeclaration<PwBrainChatComponent, never>;
466
+ static ɵfac: i0.ɵɵFactoryDeclaration<PwBrainChatComponent, [null, null, null, null, null, null, { optional: true; }]>;
462
467
  static ɵcmp: i0.ɵɵComponentDeclaration<PwBrainChatComponent, "pw-brain-chat", never, {}, {}, never, never, false, never>;
463
468
  }
464
469
 
@@ -908,9 +913,30 @@ declare class CompletionBarComponent {
908
913
  static ɵcmp: i0.ɵɵComponentDeclaration<CompletionBarComponent, "pw-completion-bar", never, { "segments": { "alias": "segments"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "lowThreshold": { "alias": "lowThreshold"; "required": false; }; "highThreshold": { "alias": "highThreshold"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
909
914
  }
910
915
 
916
+ /**
917
+ * Shared table-footer "Showing X of Y items" summary.
918
+ *
919
+ * Replaces the hand-rolled `<span class="total-records-count">{{ 'Label.RecordsSummary' | transloco: {…} }}</span>`
920
+ * that was previously copy-pasted into every list across main-frontend and the
921
+ * spinout frontends. The `total-records-count` class is owned globally by
922
+ * `@posiwise/core-styles`, so it is applied to the host here and renders
923
+ * identically wherever core-styles is loaded.
924
+ *
925
+ * Usage:
926
+ * <pw-records-summary [showing]="dt?.value?.length ?? 0" [total]="totalRecords" />
927
+ */
928
+ declare class RecordsSummaryComponent {
929
+ /** Number of rows currently rendered (e.g. `dt?.value?.length`). */
930
+ showing: number | null;
931
+ /** Total number of records across all pages. */
932
+ total: number | null;
933
+ static ɵfac: i0.ɵɵFactoryDeclaration<RecordsSummaryComponent, never>;
934
+ static ɵcmp: i0.ɵɵComponentDeclaration<RecordsSummaryComponent, "pw-records-summary", never, { "showing": { "alias": "showing"; "required": false; }; "total": { "alias": "total"; "required": false; }; }, {}, never, never, false, never>;
935
+ }
936
+
911
937
  declare class ResourceSharedComponentsModule {
912
938
  static ɵfac: i0.ɵɵFactoryDeclaration<ResourceSharedComponentsModule, never>;
913
- static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSharedComponentsModule, [typeof NoDataComponent, typeof InputContainerComponent, typeof CompletionBarComponent], [typeof i43.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.AppLoaderModule, typeof i7.CoreTranslocoModule, typeof i8.DirectivesModule, typeof i9.ButtonModule, typeof i31.NgbTooltipModule, typeof i11.TooltipModule, typeof i12.ProgressSpinnerModule, typeof i13.AutoCompleteModule, typeof i14.DragDropModule, typeof i15.FieldErrorDisplayModule, typeof i15.ProfileImageCropperModule, typeof i15.ResourceHeaderModule], [typeof i15.ProfileImageCropperModule, typeof i15.ResourceHeaderModule, typeof InputContainerComponent, typeof NoDataComponent, typeof CompletionBarComponent, typeof i9.ButtonModule, typeof i14.DragDropModule, typeof i12.ProgressSpinnerModule, typeof i13.AutoCompleteModule, typeof i11.TooltipModule, typeof i15.FieldErrorDisplayModule]>;
939
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSharedComponentsModule, [typeof NoDataComponent, typeof InputContainerComponent, typeof CompletionBarComponent, typeof RecordsSummaryComponent], [typeof i43.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.AppLoaderModule, typeof i8.CoreTranslocoModule, typeof i9.DirectivesModule, typeof i10.ButtonModule, typeof i31.NgbTooltipModule, typeof i12.TooltipModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i15.DragDropModule, typeof i16.FieldErrorDisplayModule, typeof i16.ProfileImageCropperModule, typeof i16.ResourceHeaderModule], [typeof i16.ProfileImageCropperModule, typeof i16.ResourceHeaderModule, typeof InputContainerComponent, typeof NoDataComponent, typeof CompletionBarComponent, typeof RecordsSummaryComponent, typeof i10.ButtonModule, typeof i15.DragDropModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i12.TooltipModule, typeof i16.FieldErrorDisplayModule]>;
914
940
  static ɵinj: i0.ɵɵInjectorDeclaration<ResourceSharedComponentsModule>;
915
941
  }
916
942
 
@@ -948,7 +974,7 @@ declare class CollapsibleSidebarTriggerDirective {
948
974
 
949
975
  declare class SharedComponentsModule {
950
976
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedComponentsModule, never>;
951
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [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 i5.FormsModule, typeof i6.AppLoaderModule, typeof i5.ReactiveFormsModule, typeof i8.DirectivesModule, typeof i7.CoreTranslocoModule, typeof i30.RouterModule, typeof i31.NgbTooltipModule, typeof i31.NgbNavModule, typeof i31.NgbModalModule, typeof i32.TableModule, typeof i33.TabsModule, typeof i9.ButtonModule, typeof i35.SelectModule, typeof i36.MultiSelectModule, typeof i12.ProgressSpinnerModule, typeof i13.AutoCompleteModule, typeof i39.ImageCropperModule, typeof i40.UiSwitchModule, typeof i41.NgxDaterangepickerMd, typeof i42.PipesModule, typeof i43.CommonModule, typeof i43.NgIf, typeof i15.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule, typeof CollapsibleSidebarTriggerDirective], [typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof i31.NgbTooltipModule, typeof i31.NgbNavModule, typeof i31.NgbModalModule, typeof i32.TableModule, typeof i33.TabsModule, typeof i9.ButtonModule, typeof i35.SelectModule, typeof i36.MultiSelectModule, typeof i12.ProgressSpinnerModule, typeof i13.AutoCompleteModule, typeof i39.ImageCropperModule, typeof i40.UiSwitchModule, typeof i41.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 i15.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule]>;
977
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [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 i30.RouterModule, typeof i31.NgbTooltipModule, typeof i31.NgbNavModule, typeof i31.NgbModalModule, typeof i32.TableModule, typeof i33.TabsModule, typeof i10.ButtonModule, typeof i35.SelectModule, typeof i36.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i39.ImageCropperModule, typeof i40.UiSwitchModule, typeof i41.NgxDaterangepickerMd, typeof i42.PipesModule, typeof i43.CommonModule, typeof i43.NgIf, typeof i16.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule, typeof CollapsibleSidebarTriggerDirective], [typeof PasswordValidationComponent, typeof PwTabsComponent, typeof DateRangePickerComponent, typeof i31.NgbTooltipModule, typeof i31.NgbNavModule, typeof i31.NgbModalModule, typeof i32.TableModule, typeof i33.TabsModule, typeof i10.ButtonModule, typeof i35.SelectModule, typeof i36.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i39.ImageCropperModule, typeof i40.UiSwitchModule, typeof i41.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]>;
952
978
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedComponentsModule>;
953
979
  }
954
980
 
@@ -1003,5 +1029,5 @@ declare const COMPONENT_REGISTRY: Readonly<Record<string, Type<unknown>>>;
1003
1029
  declare function registeredType(type: string): Type<unknown> | null;
1004
1030
  declare function registeredTypeNames(): string[];
1005
1031
 
1006
- export { AuthenticatorComponent, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CompletionBarComponent, DateRangePickerComponent, DynamicPageContextService, EntityGroupComponent, GroupDefinitionComponent, GroupsComponent, HeaderComponent, InputContainerComponent, LandingPageFooterBComponent, NoDataComponent, NumberPickerComponent, PasswordValidationComponent, PermissionTreeComponent, PrivacyAndTosComponent, PrivacyPolicyComponent, PwBrainChatComponent, PwDynamicPageComponent, PwTabsComponent, ResourceSharedComponentsModule, SharedComponentsModule, SplashComponent, TermsConditionsComponent, UI_BUILDER_FLAG, UiLayoutService, registeredType, registeredTypeNames };
1032
+ export { AuthenticatorComponent, COMPONENT_REGISTRY, ClearBitIconComponent, CollapsibleSidebarComponent, CollapsibleSidebarService, CollapsibleSidebarSuperAdminGuard, CollapsibleSidebarTriggerDirective, ComingSoonComponent, CompletionBarComponent, 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 };
1007
1033
  export type { ChatMessage, ChatMessageRole, CompletionTier, DynamicPageContext, PendingConfirmation, ResolvedBinding, SidebarContent, UiBinding, UiBlock, UiGrid, UiLayoutConfig, UiLayoutResponse };