@posiwise/shared-components 0.0.219 → 0.0.221

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.219",
3
+ "version": "0.0.221",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.2.0",
6
6
  "@angular/core": "^22.2.0",
@@ -1463,7 +1463,8 @@ export declare class EntityGroupComponent extends AppBaseComponent implements On
1463
1463
  admins: any[];
1464
1464
  subscriptionInfo: any[];
1465
1465
  subscriptionOwner: number;
1466
- chatPermission: string;
1466
+ /** Chat permission for the selected product, read at render time (#4228). */
1467
+ get chatPermission(): string | null;
1467
1468
  isLoaded: boolean;
1468
1469
  hasAccess: boolean;
1469
1470
  constructor(groupService: GroupService, subscriptionService: SubscriptionService, modalService: NgbModal, injector: Injector, cdr: ChangeDetectorRef);
@@ -2250,15 +2251,23 @@ export declare class RecordsSummaryComponent {
2250
2251
  }
2251
2252
  /**
2252
2253
  * The onboarding status every product API returns from its `onboarding_status` tool and
2253
- * `GET onboarding/:subscription_id/status` endpoint (cloudolive-api#441). Product-agnostic:
2254
- * step titles, descriptions and blocked reasons arrive as Transloco keys owned by the product.
2254
+ * `GET onboarding/:subscription_id/status` endpoint (cloudolive-api#441). Product-agnostic: step titles and
2255
+ * descriptions are the text the product's master subscription admin wrote; blocked reasons and states arrive
2256
+ * as Transloco keys owned by the product.
2255
2257
  */
2256
2258
  export type OnboardingStepState = 'done' | 'next' | 'ready' | 'blocked' | 'waiting' | 'todo' | 'optional' | 'unknown';
2257
2259
  export interface OnboardingStep {
2258
2260
  key: string;
2259
2261
  position: number;
2260
2262
  kind: 'required' | 'optional' | 'system';
2261
- title_key: string;
2263
+ /** The step's title as the admin wrote it. */
2264
+ title?: string;
2265
+ description?: string | null;
2266
+ /** The product's check that decides the step; null = manual, the customer ticks it. */
2267
+ check_key?: string | null;
2268
+ /** @deprecated Transloco key from before steps became editable; use `title`. */
2269
+ title_key?: string;
2270
+ /** @deprecated Use `description`. */
2262
2271
  description_key?: string | null;
2263
2272
  route?: string | null;
2264
2273
  /** Slug of the FAQ that explains the step; null when the product API found no FAQ the viewer can open. */
@@ -2306,7 +2315,14 @@ export declare class OnboardingChecklistComponent implements OnChanges {
2306
2315
  /** Values for the `{slug}` / `{subscription_id}` placeholders in step routes. */
2307
2316
  slug: string;
2308
2317
  subscriptionId: number | null;
2318
+ /** The host is saving a manual tick: the tick controls are disabled meanwhile. */
2319
+ busy: boolean;
2309
2320
  readonly retry: EventEmitter<void>;
2321
+ /** A manual step was ticked (completed: true) or unticked; the host saves it and passes the new status. */
2322
+ readonly markDone: EventEmitter<{
2323
+ key: string;
2324
+ completed: boolean;
2325
+ }>;
2310
2326
  readonly doneIcon: IconDefinition;
2311
2327
  readonly helpIcon: IconDefinition;
2312
2328
  readonly expandIcon: IconDefinition;
@@ -2319,10 +2335,6 @@ export declare class OnboardingChecklistComponent implements OnChanges {
2319
2335
  expanded: boolean;
2320
2336
  ngOnChanges(changes: SimpleChanges): void;
2321
2337
  toggle(): void;
2322
- private static storageKey;
2323
- /** true / false once the user has toggled; null when they never did or storage is unavailable. */
2324
- private static readCollapsed;
2325
- private static writeCollapsed;
2326
2338
  get visible(): boolean;
2327
2339
  /** Recommended steps, done and total, shown next to the mandatory progress ("+ 1 of 3 recommended"). */
2328
2340
  get recommended(): {
@@ -2331,7 +2343,6 @@ export declare class OnboardingChecklistComponent implements OnChanges {
2331
2343
  };
2332
2344
  /** One segment per mandatory step, so the bar reads as "steps done", not an abstract percentage. */
2333
2345
  get progressSegments(): number[];
2334
- get progressPercent(): number;
2335
2346
  /**
2336
2347
  * Every required step is done. Deliberately NOT `status.activated`: activation is the product's
2337
2348
  * milestone (e.g. a first finalised reconciliation) and can be reached with required steps still
@@ -2352,14 +2363,16 @@ export declare class OnboardingChecklistComponent implements OnChanges {
2352
2363
  get currentStep(): OnboardingStep | null;
2353
2364
  icon(step: OnboardingStep): IconDefinition;
2354
2365
  routeFor(step: OnboardingStep): string | null;
2355
- /**
2356
- * /{subscription slug}/faq/{faq slug} — the app's FAQ route (`:slug/faq/:id`), the same link the
2357
- * products' own help links use. Null when the step has no FAQ to open.
2358
- */
2366
+ /** /{subscription slug}/faq/{faq slug} (the app's `:slug/faq/:id` route); null when there is no FAQ. */
2359
2367
  faqHref(step: OnboardingStep): string | null;
2360
2368
  /** A step's call to action; null when there is nothing for this viewer to click. */
2361
2369
  actionKey(step: OnboardingStep): string | null;
2362
- trackByKey(_index: number, step: OnboardingStep): string;
2370
+ /**
2371
+ * A manual step the viewer can tick: no check decides it (check_key null), its state is known, and the
2372
+ * viewer may act on it (an admin-only step needs an admin).
2373
+ */
2374
+ canTick(step: OnboardingStep): boolean;
2375
+ tick(step: OnboardingStep): void;
2363
2376
  static ɵfac: i0.ɵɵFactoryDeclaration<OnboardingChecklistComponent, never>;
2364
2377
  static ɵcmp: i0.ɵɵComponentDeclaration<OnboardingChecklistComponent, "pw-onboarding-checklist", never, {
2365
2378
  "status": {
@@ -2382,8 +2395,13 @@ export declare class OnboardingChecklistComponent implements OnChanges {
2382
2395
  "alias": "subscriptionId";
2383
2396
  "required": false;
2384
2397
  };
2398
+ "busy": {
2399
+ "alias": "busy";
2400
+ "required": false;
2401
+ };
2385
2402
  }, {
2386
2403
  "retry": "retry";
2404
+ "markDone": "markDone";
2387
2405
  }, never, never, false, never>;
2388
2406
  }
2389
2407
  declare namespace resource_shared_components_module_d_exports {