@posiwise/shared-components 0.0.214 → 0.0.216

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,12 +1,14 @@
1
1
  {
2
2
  "name": "@posiwise/shared-components",
3
- "version": "0.0.214",
3
+ "version": "0.0.216",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.2.0",
6
6
  "@angular/core": "^22.2.0",
7
7
  "@jsverse/transloco": "^8.4.0",
8
8
  "@jsverse/transloco-keys-manager": "^6.2.2",
9
- "ngx-image-cropper": ">=7.1.2 <10"
9
+ "ngx-image-cropper": ">=7.1.2 <10",
10
+ "@fortawesome/angular-fontawesome": "^5.1.0",
11
+ "@fortawesome/free-solid-svg-icons": "^6.5.2"
10
12
  },
11
13
  "dependencies": {
12
14
  "tslib": "^2.6.2"
@@ -4,9 +4,9 @@ import { AuthService, BaseHttpService, BrainSocketService, BrainVoiceService, Cu
4
4
  import * as i43 from "primeng/table";
5
5
  import { Table } from "primeng/table";
6
6
  import { TranslocoService } from "@jsverse/transloco";
7
- import * as i11 from "@ng-bootstrap/ng-bootstrap";
7
+ import * as i14 from "@ng-bootstrap/ng-bootstrap";
8
8
  import { NgbActiveModal, NgbModal } from "@ng-bootstrap/ng-bootstrap";
9
- import * as i40 from "@angular/router";
9
+ import * as i8 from "@angular/router";
10
10
  import { Router } from "@angular/router";
11
11
  import { AppConfigService } from "@posiwise/app-config-service";
12
12
  import { Observable, Subject } from "rxjs";
@@ -20,27 +20,29 @@ import { AdminService } from "@posiwise/admin-module-utils";
20
20
  import { Subscription, User } from "@posiwise/common-utilities";
21
21
  import { AppState } from "@posiwise/app-store";
22
22
  import { Store } from "@ngrx/store";
23
- import * as i6 from "@angular/forms";
23
+ import * as i7 from "@angular/forms";
24
24
  import { AbstractControl, ControlContainer, UntypedFormBuilder, UntypedFormGroup } from "@angular/forms";
25
25
  import * as i34 from "primeng/iconfield";
26
26
  import * as i35 from "primeng/inputicon";
27
27
  import * as i36 from "primeng/inputtext";
28
- import * as i7 from "@posiwise/app-loader";
29
- import * as i9 from "@posiwise/directives";
30
- import * as i8 from "@posiwise/core-transloco";
31
- import * as i12 from "primeng/tooltip";
28
+ import * as i10 from "@posiwise/app-loader";
29
+ import * as i12 from "@posiwise/directives";
30
+ import * as i11 from "@posiwise/core-transloco";
31
+ import * as i15 from "primeng/tooltip";
32
32
  import * as i44 from "primeng/tabs";
33
- import * as i10 from "primeng/button";
33
+ import * as i13 from "primeng/button";
34
34
  import * as i46 from "primeng/select";
35
35
  import * as i47 from "primeng/multiselect";
36
- import * as i13 from "primeng/progressspinner";
37
- import * as i14 from "primeng/autocomplete";
36
+ import * as i16 from "primeng/progressspinner";
37
+ import * as i17 from "primeng/autocomplete";
38
38
  import * as i50 from "ngx-image-cropper";
39
39
  import * as i51 from "ngx-ui-switch";
40
40
  import * as i53 from "@posiwise/pipes";
41
- import * as i5 from "@angular/common";
42
- import * as i16 from "@posiwise/utils";
43
- import * as i15 from "@angular/cdk/drag-drop";
41
+ import * as i6 from "@angular/common";
42
+ import * as i19 from "@posiwise/utils";
43
+ import { IconDefinition } from "@fortawesome/free-solid-svg-icons";
44
+ import * as i9 from "@fortawesome/angular-fontawesome";
45
+ import * as i18 from "@angular/cdk/drag-drop";
44
46
  export type ConfirmDialogTone = 'destructive' | 'neutral' | 'info';
45
47
  export interface ConfirmDialogConfig {
46
48
  titleKey?: string;
@@ -100,6 +102,8 @@ declare function uploadProblem(file: File): string | null;
100
102
  */
101
103
  declare function matchingCount(filtered: unknown[] | null | undefined, files: KnowledgeFile[]): number;
102
104
  declare function shownOnPage(first: number, pageSize: number, matching: number): number;
105
+ /** Hands a downloaded file to the browser under its own name. */
106
+ declare function saveBlob(blob: Blob, name: string): void;
103
107
  declare namespace ai_knowledge_component_d_exports {
104
108
  export { AiKnowledgeComponent };
105
109
  }
@@ -117,6 +121,8 @@ export declare class AiKnowledgeComponent implements OnChanges {
117
121
  scope: KnowledgeScope;
118
122
  subscriptionId: number | null;
119
123
  subscriptionName: string;
124
+ /** "Use my data" off: no uploads and the Brain ignores these files; they can still be removed. */
125
+ useOwnData: boolean;
120
126
  fileInput: ElementRef<HTMLInputElement>;
121
127
  readonly accept: string;
122
128
  readonly pageSize = 50;
@@ -162,6 +168,10 @@ export declare class AiKnowledgeComponent implements OnChanges {
162
168
  "alias": "subscriptionName";
163
169
  "required": false;
164
170
  };
171
+ "useOwnData": {
172
+ "alias": "useOwnData";
173
+ "required": false;
174
+ };
165
175
  }, {}, never, never, false, never>;
166
176
  }
167
177
  /**
@@ -2010,8 +2020,16 @@ export declare class InputContainerComponent implements OnInit {
2010
2020
  showAfterLabel: boolean;
2011
2021
  showTriangleText: string;
2012
2022
  isLeftTooltip: boolean;
2023
+ private readonly cdr;
2024
+ private readonly destroyRef;
2013
2025
  constructor(controlContainer: ControlContainer);
2014
2026
  ngOnInit(): void;
2027
+ /**
2028
+ * Angular 22 makes components OnPush unless they opt out, and this one's inputs
2029
+ * never change when the control does. Without this, `markAllAsTouched()` on a
2030
+ * failed submit leaves every error message hidden and the button looks dead.
2031
+ */
2032
+ private refreshOnControlEvents;
2015
2033
  static ɵfac: i0.ɵɵFactoryDeclaration<InputContainerComponent, [{
2016
2034
  optional: true;
2017
2035
  host: true;
@@ -2189,12 +2207,105 @@ export declare class RecordsSummaryComponent {
2189
2207
  };
2190
2208
  }, {}, never, never, false, never>;
2191
2209
  }
2210
+ /**
2211
+ * The onboarding status every product API returns from its `onboarding_status` tool and
2212
+ * `GET onboarding/:subscription_id/status` endpoint (cloudolive-api#441). Product-agnostic:
2213
+ * step titles, descriptions and blocked reasons arrive as Transloco keys owned by the product.
2214
+ */
2215
+ export type OnboardingStepState = 'done' | 'next' | 'ready' | 'blocked' | 'waiting' | 'todo' | 'optional' | 'unknown';
2216
+ export interface OnboardingStep {
2217
+ key: string;
2218
+ position: number;
2219
+ kind: 'required' | 'optional' | 'system';
2220
+ title_key: string;
2221
+ description_key?: string | null;
2222
+ route?: string | null;
2223
+ help_url?: string | null;
2224
+ activation: boolean;
2225
+ admin_only: boolean;
2226
+ depends_on: string[];
2227
+ state: OnboardingStepState;
2228
+ /** True for the one step the customer should act on now. */
2229
+ current: boolean;
2230
+ reason_key?: string;
2231
+ /** The customer's own system's message (e.g. their PSA's error), already truncated. */
2232
+ detail?: string;
2233
+ meta?: Record<string, unknown>;
2234
+ /** False when the step needs an admin and the viewer is not one; null when unknown. */
2235
+ can_act: boolean | null;
2236
+ }
2237
+ export interface OnboardingStatus {
2238
+ subscription_id: number;
2239
+ feature_key: string | null;
2240
+ status: 'ok' | 'not_applicable' | 'unavailable';
2241
+ activated: boolean;
2242
+ next_step: string | null;
2243
+ progress: {
2244
+ done: number;
2245
+ total: number;
2246
+ };
2247
+ steps: OnboardingStep[];
2248
+ }
2249
+ declare namespace onboarding_checklist_component_d_exports {
2250
+ export { OnboardingChecklistComponent };
2251
+ }
2252
+ /**
2253
+ * Presentational onboarding checklist (cloudolive-api#441). Product-agnostic: the host fetches the
2254
+ * status from its own product API and passes it in, plus the route placeholders' values.
2255
+ *
2256
+ * Gating (AI54) is the host's: pass `loading` until the request resolves and `loadFailed` on error.
2257
+ * Renders nothing for `not_applicable` / `unavailable` — "no onboarding" and "can't tell right now"
2258
+ * both hide the card rather than show an empty or broken one.
2259
+ */
2260
+ export declare class OnboardingChecklistComponent {
2261
+ status: OnboardingStatus | null;
2262
+ loading: boolean;
2263
+ loadFailed: boolean;
2264
+ /** Values for the `{slug}` / `{subscription_id}` placeholders in step routes. */
2265
+ slug: string;
2266
+ subscriptionId: number | null;
2267
+ readonly retry: EventEmitter<void>;
2268
+ readonly doneIcon: IconDefinition;
2269
+ get visible(): boolean;
2270
+ get progressPercent(): number;
2271
+ get currentStep(): OnboardingStep | null;
2272
+ icon(step: OnboardingStep): IconDefinition;
2273
+ routeFor(step: OnboardingStep): string | null;
2274
+ /** The current step's call to action; null when there is nothing for this viewer to click. */
2275
+ actionKey(step: OnboardingStep): string | null;
2276
+ trackByKey(_index: number, step: OnboardingStep): string;
2277
+ static ɵfac: i0.ɵɵFactoryDeclaration<OnboardingChecklistComponent, never>;
2278
+ static ɵcmp: i0.ɵɵComponentDeclaration<OnboardingChecklistComponent, "pw-onboarding-checklist", never, {
2279
+ "status": {
2280
+ "alias": "status";
2281
+ "required": false;
2282
+ };
2283
+ "loading": {
2284
+ "alias": "loading";
2285
+ "required": false;
2286
+ };
2287
+ "loadFailed": {
2288
+ "alias": "loadFailed";
2289
+ "required": false;
2290
+ };
2291
+ "slug": {
2292
+ "alias": "slug";
2293
+ "required": false;
2294
+ };
2295
+ "subscriptionId": {
2296
+ "alias": "subscriptionId";
2297
+ "required": false;
2298
+ };
2299
+ }, {
2300
+ "retry": "retry";
2301
+ }, never, never, false, never>;
2302
+ }
2192
2303
  declare namespace resource_shared_components_module_d_exports {
2193
2304
  export { ResourceSharedComponentsModule };
2194
2305
  }
2195
2306
  export declare class ResourceSharedComponentsModule {
2196
2307
  static ɵfac: i0.ɵɵFactoryDeclaration<ResourceSharedComponentsModule, never>;
2197
- static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSharedComponentsModule, [typeof NoDataComponent, typeof InputContainerComponent, typeof CompletionBarComponent, typeof RecordsSummaryComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.AppLoaderModule, typeof i8.CoreTranslocoModule, typeof i9.DirectivesModule, typeof i10.ButtonModule, typeof i11.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]>;
2308
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSharedComponentsModule, [typeof NoDataComponent, typeof InputContainerComponent, typeof CompletionBarComponent, typeof RecordsSummaryComponent, typeof OnboardingChecklistComponent], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i7.ReactiveFormsModule, typeof i8.RouterModule, typeof i9.FontAwesomeModule, typeof i10.AppLoaderModule, typeof i11.CoreTranslocoModule, typeof i12.DirectivesModule, typeof i13.ButtonModule, typeof i14.NgbTooltipModule, typeof i15.TooltipModule, typeof i16.ProgressSpinnerModule, typeof i17.AutoCompleteModule, typeof i18.DragDropModule, typeof i19.FieldErrorDisplayModule, typeof i19.ProfileImageCropperModule, typeof i19.ResourceHeaderModule], [typeof i19.ProfileImageCropperModule, typeof i19.ResourceHeaderModule, typeof InputContainerComponent, typeof NoDataComponent, typeof CompletionBarComponent, typeof RecordsSummaryComponent, typeof OnboardingChecklistComponent, typeof i13.ButtonModule, typeof i18.DragDropModule, typeof i16.ProgressSpinnerModule, typeof i17.AutoCompleteModule, typeof i15.TooltipModule, typeof i19.FieldErrorDisplayModule]>;
2198
2309
  static ɵinj: i0.ɵɵInjectorDeclaration<ResourceSharedComponentsModule>;
2199
2310
  }
2200
2311
  declare namespace collapsible_sidebar_trigger_directive_d_exports {
@@ -2375,7 +2486,7 @@ declare class PwBrainChatThreadDirective {
2375
2486
  }
2376
2487
  export declare class SharedComponentsModule {
2377
2488
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedComponentsModule, never>;
2378
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof AiKnowledgeComponent, typeof CommandPaletteComponent, 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 PwBrainChatConfirmComponent, 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 i6.FormsModule, typeof i34.IconFieldModule, typeof i35.InputIconModule, typeof i36.InputTextModule, typeof i7.AppLoaderModule, typeof i6.ReactiveFormsModule, typeof i9.DirectivesModule, typeof i8.CoreTranslocoModule, typeof i40.RouterModule, typeof i11.NgbTooltipModule, typeof i12.TooltipModule, typeof i11.NgbNavModule, typeof i11.NgbModalModule, typeof i43.TableModule, typeof i44.TabsModule, typeof i10.ButtonModule, typeof i46.SelectModule, typeof i47.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i50.ImageCropperComponent, typeof i51.UiSwitchModule, typeof i52.NgxDaterangepickerMd, typeof i53.PipesModule, typeof i5.CommonModule, typeof i5.NgIf, typeof i16.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 i11.NgbTooltipModule, typeof i12.TooltipModule, typeof i11.NgbNavModule, typeof i11.NgbModalModule, typeof i43.TableModule, typeof i44.TabsModule, typeof i10.ButtonModule, typeof i46.SelectModule, typeof i47.MultiSelectModule, typeof i13.ProgressSpinnerModule, typeof i14.AutoCompleteModule, typeof i50.ImageCropperComponent, typeof i51.UiSwitchModule, typeof i52.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 OnlineIndicatorComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof i16.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule]>;
2489
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof AiKnowledgeComponent, typeof CommandPaletteComponent, 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 PwBrainChatConfirmComponent, 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 i34.IconFieldModule, typeof i35.InputIconModule, typeof i36.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 i43.TableModule, typeof i44.TabsModule, typeof i13.ButtonModule, typeof i46.SelectModule, typeof i47.MultiSelectModule, typeof i16.ProgressSpinnerModule, typeof i17.AutoCompleteModule, typeof i50.ImageCropperComponent, typeof i51.UiSwitchModule, typeof i52.NgxDaterangepickerMd, typeof i53.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 i43.TableModule, typeof i44.TabsModule, typeof i13.ButtonModule, typeof i46.SelectModule, typeof i47.MultiSelectModule, typeof i16.ProgressSpinnerModule, typeof i17.AutoCompleteModule, typeof i50.ImageCropperComponent, typeof i51.UiSwitchModule, typeof i52.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 OnlineIndicatorComponent, typeof HeaderComponent, typeof LandingPageFooterBComponent, typeof PwDynamicPageComponent, typeof i19.FieldErrorDisplayModule, typeof ResourceSharedComponentsModule]>;
2379
2490
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedComponentsModule>;
2380
2491
  }
2381
2492
  /**