ngx-wapp-components 3.4.2 → 3.4.3-alpha.2

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.
@@ -0,0 +1,572 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, ElementRef } from '@angular/core';
3
+
4
+ /** Page properties of the Home configuration `style` and `behavior` (CONFIG-004, RV-1.1-06/07). */
5
+ interface WHomePageStyle {
6
+ backgroundColor?: string | null;
7
+ contentMargin?: number | null;
8
+ widgetGap?: number | null;
9
+ widgetBorderRadius?: number | null;
10
+ maxContentWidth?: number | null;
11
+ showHeader?: boolean | null;
12
+ showMenu?: boolean | null;
13
+ showFooter?: boolean | null;
14
+ showGreeting?: boolean | null;
15
+ enablePullToRefresh?: boolean | null;
16
+ emptyStateMessage?: string | null;
17
+ }
18
+ interface WHomeWidgetStyle {
19
+ backgroundColor?: string | null;
20
+ foregroundColor?: string | null;
21
+ }
22
+ interface WHomePromotionsConfig {
23
+ previewLimit?: number | null;
24
+ showCount?: boolean | null;
25
+ }
26
+ interface WHomeActionConfig {
27
+ showDescription?: boolean | null;
28
+ }
29
+ interface WHomeK1Config {
30
+ showAuxiliary?: boolean | null;
31
+ }
32
+ interface WHomeK1Auxiliary {
33
+ value: number;
34
+ unit: 'points' | 'money';
35
+ currency?: string | null;
36
+ symbolPosition?: 'before' | 'after' | null;
37
+ }
38
+ /** Presentation model for KPI composition K1. */
39
+ interface WHomeK1Model {
40
+ title?: string | null;
41
+ value: number | null;
42
+ unit: 'points' | 'money';
43
+ currency?: string | null;
44
+ symbolPosition?: 'before' | 'after' | null;
45
+ auxiliary?: WHomeK1Auxiliary | null;
46
+ }
47
+ /**
48
+ * Presentation state shared by every composition (WIDGETS-003).
49
+ * `unavailable`: the widget does not apply to the customer or device; Wallet hides it, the preview labels it.
50
+ */
51
+ type WHomeWidgetState = 'loading' | 'loaded' | 'empty' | 'error' | 'unavailable';
52
+ /** Item of the D1 featured collection. */
53
+ interface WHomeD1Item {
54
+ id: string | number;
55
+ name: string;
56
+ description?: string | null;
57
+ imageUrl?: string | null;
58
+ badge?: string | null;
59
+ price?: number | null;
60
+ currency?: string | null;
61
+ }
62
+ /** Presentation model of composition D1 (WIDGETS-002). `title` overrides the label; `total` defaults to `items.length`. */
63
+ interface WHomeD1Model {
64
+ title?: string | null;
65
+ items: ReadonlyArray<WHomeD1Item>;
66
+ total?: number | null;
67
+ }
68
+ type WHomeD1Config = WHomePromotionsConfig;
69
+ /** Item of the D2 featured composition; price is omitted unless a usable amount and ISO currency are available. */
70
+ interface WHomeD2Item extends WHomeD1Item {
71
+ price?: number | null;
72
+ currency?: string | null;
73
+ }
74
+ /** Presentation model of composition D2 (WIDGETS-002). */
75
+ interface WHomeD2Model {
76
+ title?: string | null;
77
+ items: ReadonlyArray<WHomeD2Item>;
78
+ total?: number | null;
79
+ }
80
+ /** Presentation model of compact composition C1. */
81
+ interface WHomeC1Model {
82
+ title?: string | null;
83
+ name: string;
84
+ imageUrl?: string | null;
85
+ date?: string | null;
86
+ detail?: string | null;
87
+ badge?: string | null;
88
+ }
89
+ interface WHomeC1Labels {
90
+ title: string;
91
+ empty: string;
92
+ error: string;
93
+ retry: string;
94
+ loading: string;
95
+ unavailable: string;
96
+ }
97
+ /** Presentation model of membership-level composition C2. */
98
+ interface WHomeC2Model {
99
+ title?: string | null;
100
+ levelName: string;
101
+ color?: string | null;
102
+ current: number;
103
+ from: number;
104
+ to: number;
105
+ steps?: ReadonlyArray<{
106
+ name: string;
107
+ threshold: number;
108
+ }>;
109
+ }
110
+ interface WHomeC2Config {
111
+ showSteps?: boolean | null;
112
+ }
113
+ interface WHomeC2Labels {
114
+ title: string;
115
+ progress: string;
116
+ steps: string;
117
+ empty: string;
118
+ error: string;
119
+ retry: string;
120
+ loading: string;
121
+ unavailable: string;
122
+ }
123
+ interface WHomeE1Entity {
124
+ id: string | number;
125
+ name: string;
126
+ imageUrl?: string | null;
127
+ detail?: string | null;
128
+ }
129
+ /** Presentation model of standard composition E1, for one selected entity. */
130
+ interface WHomeE1Model {
131
+ title?: string | null;
132
+ entity: WHomeE1Entity;
133
+ }
134
+ interface WHomeE1Config {
135
+ storeId?: number | null;
136
+ }
137
+ interface WHomeE1Labels {
138
+ title: string;
139
+ detail: string;
140
+ empty: string;
141
+ error: string;
142
+ retry: string;
143
+ loading: string;
144
+ unavailable: string;
145
+ }
146
+ type WHomeE2Unit = 'points' | 'money';
147
+ interface WHomeE2Model {
148
+ title?: string | null;
149
+ serviceId?: number | null;
150
+ achieved?: number | null;
151
+ pending?: number | null;
152
+ unit: WHomeE2Unit;
153
+ currencySymbol?: string | null;
154
+ symbolPosition?: 'before' | 'after' | null;
155
+ customerReward?: number | null;
156
+ friendReward?: number | null;
157
+ invitations?: {
158
+ accepted: number;
159
+ pending: number;
160
+ total: number;
161
+ } | null;
162
+ }
163
+ interface WHomeE2Config {
164
+ showInvitations?: boolean | null;
165
+ }
166
+ interface WHomeE2Labels {
167
+ title: string;
168
+ achieved: string;
169
+ pending: string;
170
+ customerReward: string;
171
+ friendReward: string;
172
+ invitations: string;
173
+ acceptedInvitations: string;
174
+ pendingInvitations: string;
175
+ openProgram: string;
176
+ empty: string;
177
+ error: string;
178
+ retry: string;
179
+ loading: string;
180
+ unavailable: string;
181
+ }
182
+ interface WHomeE3Item {
183
+ id: string | number;
184
+ name: string;
185
+ imageUrl?: string | null;
186
+ description?: string | null;
187
+ }
188
+ /** Presentation model of standard composition E3, a capped vertical collection. */
189
+ interface WHomeE3Model {
190
+ title?: string | null;
191
+ items: ReadonlyArray<WHomeE3Item>;
192
+ total?: number | null;
193
+ }
194
+ interface WHomeE3Config {
195
+ previewLimit?: number | null;
196
+ }
197
+ interface WHomeE3Labels {
198
+ title: string;
199
+ viewAll: string;
200
+ imageUnavailable: string;
201
+ empty: string;
202
+ error: string;
203
+ retry: string;
204
+ loading: string;
205
+ unavailable: string;
206
+ }
207
+ type WHomePromotionItem = WHomeD1Item;
208
+ type WHomePromotionsState = WHomeWidgetState;
209
+ interface WHomePageFrameLabels {
210
+ header: string;
211
+ menu: string;
212
+ footer: string;
213
+ /** Greeting with the customer name, shown when `showGreeting` is true. */
214
+ greeting: string;
215
+ /** Generic greeting, shown while `showGreeting` is absent (Wallet default). */
216
+ genericGreeting: string;
217
+ pullToRefresh: string;
218
+ emptyState: string;
219
+ }
220
+ interface WHomeD1Labels {
221
+ title: string;
222
+ viewAll: string;
223
+ empty: string;
224
+ error: string;
225
+ retry: string;
226
+ loading: string;
227
+ imageUnavailable: string;
228
+ previous: string;
229
+ next: string;
230
+ /** Optional so 3.9.0 consumers of `WHomePromotionsLabels` keep compiling. */
231
+ unavailable?: string;
232
+ }
233
+ interface WHomeK1Labels {
234
+ title: string;
235
+ points: string;
236
+ auxiliary: string;
237
+ empty: string;
238
+ error: string;
239
+ retry: string;
240
+ loading: string;
241
+ unavailable: string;
242
+ }
243
+ type WHomePromotionsLabels = WHomeD1Labels;
244
+ declare const W_HOME_PAGE_FRAME_DEFAULT_LABELS: WHomePageFrameLabels;
245
+ declare const W_HOME_D1_DEFAULT_LABELS: Required<WHomeD1Labels>;
246
+ declare const W_HOME_K1_DEFAULT_LABELS: WHomeK1Labels;
247
+ declare const W_HOME_C1_DEFAULT_LABELS: WHomeC1Labels;
248
+ declare const W_HOME_C2_DEFAULT_LABELS: WHomeC2Labels;
249
+ declare const W_HOME_E1_DEFAULT_LABELS: WHomeE1Labels;
250
+ declare const W_HOME_E2_DEFAULT_LABELS: WHomeE2Labels;
251
+ declare const W_HOME_E3_DEFAULT_LABELS: WHomeE3Labels;
252
+ declare const W_HOME_PROMOTIONS_DEFAULT_LABELS: Required<WHomePromotionsLabels>;
253
+ declare const W_HOME_PREVIEW_LIMIT: {
254
+ readonly min: 1;
255
+ readonly max: 5;
256
+ readonly default: 5;
257
+ };
258
+ declare const W_HOME_CONTENT_MARGIN: {
259
+ readonly min: 0;
260
+ readonly max: 48;
261
+ };
262
+ declare const W_HOME_WIDGET_GAP: {
263
+ readonly min: 0;
264
+ readonly max: 32;
265
+ };
266
+ declare const W_HOME_WIDGET_BORDER_RADIUS: {
267
+ readonly min: 0;
268
+ readonly max: 24;
269
+ };
270
+ declare const W_HOME_MAX_CONTENT_WIDTH: {
271
+ readonly min: 320;
272
+ readonly max: 1440;
273
+ };
274
+ declare const W_HOME_ACTION_DEFAULT_BACKGROUND = "#d4f0dd";
275
+ /** Returns the color only when it is a Hex6 value; anything else falls back to the default (null). */
276
+ declare function wHomeHexColor(value: unknown): string | null;
277
+ declare function wHomeIntegerInRange(value: unknown, min: number, max: number): number | null;
278
+
279
+ /** Visual type of a Home widget, as stored in `WebAppWidgetType`. */
280
+ type WHomeWidgetType = 'kpi' | 'compact' | 'standard' | 'featured' | 'action';
281
+ /** Approved compositions (catalog 2026-11-02). */
282
+ type WHomeComposition = 'K1' | 'C1' | 'C2' | 'E1' | 'E2' | 'E3' | 'D1' | 'D2' | 'A1';
283
+ interface WHomeWidgetRegistration {
284
+ readonly widgetKey: string;
285
+ readonly type: WHomeWidgetType;
286
+ readonly composition: WHomeComposition;
287
+ /** i18n prefix used by the consumers for the widget labels. */
288
+ readonly labelsKey: string;
289
+ }
290
+ /**
291
+ * Closed registry `widgetKey → type → composition` shared by Wallet and the Retail preview (WIDGETS-001).
292
+ * Only widgets with an implemented composition are listed; each wave adds its widgets.
293
+ */
294
+ declare const W_HOME_WIDGET_REGISTRY: ReadonlyArray<WHomeWidgetRegistration>;
295
+ /**
296
+ * Returns the registration only when key and type match together; anything else is a configuration error
297
+ * that consumers must render with `w-home-unsupported-widget`, never with another widget.
298
+ */
299
+ declare function resolveHomeWidget(widgetKey: string | null | undefined, type: string | null | undefined, registry?: ReadonlyArray<WHomeWidgetRegistration>): WHomeWidgetRegistration | null;
300
+
301
+ /** Wallet Home page shell for previews (HP-002): header, menu, two-column widget grid and footer. */
302
+ declare class WHomePageFrameComponent {
303
+ pageStyle: WHomePageStyle | null;
304
+ labels: Partial<WHomePageFrameLabels> | null;
305
+ /** When false, shows the empty state message; null/true never shows it. */
306
+ hasWidgets: boolean | null;
307
+ get texts(): WHomePageFrameLabels;
308
+ get backgroundColor(): string | null;
309
+ /** Null keeps the Wallet default padding (16px, 22px from 1024px). */
310
+ get contentMargin(): number | null;
311
+ /** Null keeps the Wallet default gap (12px). */
312
+ get widgetGap(): number | null;
313
+ get maxContentWidth(): number | null;
314
+ /** Same rule as Wallet `/main`: false hides it, true adds the customer name, absent shows a generic greeting. */
315
+ get greeting(): string | null;
316
+ get enablePullToRefresh(): boolean;
317
+ get emptyStateMessage(): string;
318
+ get showHeader(): boolean;
319
+ get showMenu(): boolean;
320
+ get showFooter(): boolean;
321
+ static ɵfac: i0.ɵɵFactoryDeclaration<WHomePageFrameComponent, never>;
322
+ static ɵcmp: i0.ɵɵComponentDeclaration<WHomePageFrameComponent, "w-home-page-frame", never, { "pageStyle": { "alias": "pageStyle"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "hasWidgets": { "alias": "hasWidgets"; "required": false; }; }, {}, never, ["*"], true, never>;
323
+ }
324
+
325
+ /**
326
+ * Featured composition D1 (WIDGETS-002): header, optional count, "view all" and a snap carousel of image cards.
327
+ * Driven only by inputs; it never calls HTTP nor navigates, it emits events.
328
+ */
329
+ declare class WHomeD1Component {
330
+ state: WHomeWidgetState;
331
+ model: WHomeD1Model | null;
332
+ /** Items used when `model` is not set (3.9.0 promotions API). */
333
+ items: ReadonlyArray<WHomeD1Item>;
334
+ /** Total used when `model` is not set (3.9.0 promotions API). */
335
+ totalCount: number | null;
336
+ widgetStyle: WHomeWidgetStyle | null;
337
+ config: WHomeD1Config | null;
338
+ labels: Partial<WHomeD1Labels> | null;
339
+ showPrice: boolean;
340
+ borderRadiusInput: number | null | undefined;
341
+ viewAll: EventEmitter<void>;
342
+ itemSelect: EventEmitter<WHomeD1Item>;
343
+ retry: EventEmitter<void>;
344
+ collection?: ElementRef<HTMLElement>;
345
+ readonly skeletonCards: number[];
346
+ private readonly brokenImages;
347
+ protected get defaultLabels(): Required<WHomeD1Labels>;
348
+ get texts(): Required<WHomeD1Labels>;
349
+ get title(): string;
350
+ get backgroundColor(): string | null;
351
+ get foregroundColor(): string | null;
352
+ /** Null keeps the Wallet default radius from the stylesheet. */
353
+ get borderRadius(): number | null;
354
+ get previewLimit(): number;
355
+ get showCount(): boolean;
356
+ get allItems(): ReadonlyArray<WHomeD1Item>;
357
+ get count(): number;
358
+ get visibleItems(): ReadonlyArray<WHomeD1Item>;
359
+ hasImage(item: WHomeD1Item): boolean;
360
+ onImageError(item: WHomeD1Item): void;
361
+ formatPrice(item: WHomeD1Item): string | null;
362
+ scroll(direction: -1 | 1): void;
363
+ static ɵfac: i0.ɵɵFactoryDeclaration<WHomeD1Component, never>;
364
+ static ɵcmp: i0.ɵɵComponentDeclaration<WHomeD1Component, "w-home-d1", never, { "state": { "alias": "state"; "required": false; }; "model": { "alias": "model"; "required": false; }; "items": { "alias": "items"; "required": false; }; "totalCount": { "alias": "totalCount"; "required": false; }; "widgetStyle": { "alias": "widgetStyle"; "required": false; }; "config": { "alias": "config"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "showPrice": { "alias": "showPrice"; "required": false; }; "borderRadiusInput": { "alias": "borderRadius"; "required": false; }; }, { "viewAll": "viewAll"; "itemSelect": "itemSelect"; "retry": "retry"; }, never, never, true, never>;
365
+ }
366
+
367
+ /** Featured composition D2 reuses D1's responsive carousel and adds validated product prices. */
368
+ declare class WHomeD2Component {
369
+ state: WHomeWidgetState;
370
+ model: WHomeD2Model | null;
371
+ widgetStyle: WHomeWidgetStyle | null;
372
+ config: WHomeD1Config | null;
373
+ labels: Partial<WHomeD1Labels> | null;
374
+ borderRadiusInput: number | null | undefined;
375
+ viewAll: EventEmitter<void>;
376
+ itemSelect: EventEmitter<WHomeD2Item>;
377
+ retry: EventEmitter<void>;
378
+ static ɵfac: i0.ɵɵFactoryDeclaration<WHomeD2Component, never>;
379
+ static ɵcmp: i0.ɵɵComponentDeclaration<WHomeD2Component, "w-home-d2", never, { "state": { "alias": "state"; "required": false; }; "model": { "alias": "model"; "required": false; }; "widgetStyle": { "alias": "widgetStyle"; "required": false; }; "config": { "alias": "config"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "borderRadiusInput": { "alias": "borderRadius"; "required": false; }; }, { "viewAll": "viewAll"; "itemSelect": "itemSelect"; "retry": "retry"; }, never, never, true, never>;
380
+ }
381
+
382
+ declare class WHomeC1Component {
383
+ state: WHomeWidgetState;
384
+ model: WHomeC1Model | null;
385
+ widgetStyle: WHomeWidgetStyle | null;
386
+ labels: Partial<WHomeC1Labels> | null;
387
+ borderRadius: number | null | undefined;
388
+ itemSelect: EventEmitter<WHomeC1Model>;
389
+ retry: EventEmitter<void>;
390
+ get texts(): WHomeC1Labels;
391
+ get title(): string;
392
+ get backgroundColor(): string | null;
393
+ get foregroundColor(): string | null;
394
+ static ɵfac: i0.ɵɵFactoryDeclaration<WHomeC1Component, never>;
395
+ static ɵcmp: i0.ɵɵComponentDeclaration<WHomeC1Component, "w-home-c1", never, { "state": { "alias": "state"; "required": false; }; "model": { "alias": "model"; "required": false; }; "widgetStyle": { "alias": "widgetStyle"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; }, { "itemSelect": "itemSelect"; "retry": "retry"; }, never, never, true, never>;
396
+ }
397
+
398
+ declare class WHomeC2Component {
399
+ state: WHomeWidgetState;
400
+ model: WHomeC2Model | null;
401
+ config: WHomeC2Config | null;
402
+ widgetStyle: WHomeWidgetStyle | null;
403
+ labels: Partial<WHomeC2Labels> | null;
404
+ borderRadius: number | null | undefined;
405
+ openDetails: EventEmitter<void>;
406
+ retry: EventEmitter<void>;
407
+ get texts(): WHomeC2Labels;
408
+ get title(): string;
409
+ get backgroundColor(): string | null;
410
+ get foregroundColor(): string | null;
411
+ get progressPercent(): number;
412
+ get progressValue(): number;
413
+ get steps(): ReadonlyArray<{
414
+ name: string;
415
+ threshold: number;
416
+ }>;
417
+ static ɵfac: i0.ɵɵFactoryDeclaration<WHomeC2Component, never>;
418
+ static ɵcmp: i0.ɵɵComponentDeclaration<WHomeC2Component, "w-home-c2", never, { "state": { "alias": "state"; "required": false; }; "model": { "alias": "model"; "required": false; }; "config": { "alias": "config"; "required": false; }; "widgetStyle": { "alias": "widgetStyle"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; }, { "openDetails": "openDetails"; "retry": "retry"; }, never, never, true, never>;
419
+ }
420
+
421
+ declare class WHomeE1Component {
422
+ state: WHomeWidgetState;
423
+ model: WHomeE1Model | null;
424
+ widgetStyle: WHomeWidgetStyle | null;
425
+ labels: Partial<WHomeE1Labels> | null;
426
+ itemSelect: EventEmitter<string | number>;
427
+ retry: EventEmitter<void>;
428
+ private imageFailed;
429
+ get texts(): WHomeE1Labels;
430
+ get title(): string;
431
+ get backgroundColor(): string | null;
432
+ get foregroundColor(): string | null;
433
+ get borderRadius(): number | null;
434
+ borderRadiusInput: number | null | undefined;
435
+ get hasImage(): boolean;
436
+ onImageError(): void;
437
+ select(): void;
438
+ static ɵfac: i0.ɵɵFactoryDeclaration<WHomeE1Component, never>;
439
+ static ɵcmp: i0.ɵɵComponentDeclaration<WHomeE1Component, "w-home-e1", never, { "state": { "alias": "state"; "required": false; }; "model": { "alias": "model"; "required": false; }; "widgetStyle": { "alias": "widgetStyle"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "borderRadiusInput": { "alias": "borderRadius"; "required": false; }; }, { "itemSelect": "itemSelect"; "retry": "retry"; }, never, never, true, never>;
440
+ }
441
+
442
+ declare class WHomeE2Component {
443
+ state: WHomeWidgetState;
444
+ model: WHomeE2Model | null;
445
+ config: WHomeE2Config | null;
446
+ widgetStyle: WHomeWidgetStyle | null;
447
+ labels: Partial<WHomeE2Labels> | null;
448
+ itemSelect: EventEmitter<number>;
449
+ retry: EventEmitter<void>;
450
+ get texts(): WHomeE2Labels;
451
+ get title(): string;
452
+ get backgroundColor(): string | null;
453
+ get foregroundColor(): string | null;
454
+ get borderRadius(): number | null;
455
+ borderRadiusInput: number | null | undefined;
456
+ formatValue(value: number): string;
457
+ select(): void;
458
+ static ɵfac: i0.ɵɵFactoryDeclaration<WHomeE2Component, never>;
459
+ static ɵcmp: i0.ɵɵComponentDeclaration<WHomeE2Component, "w-home-e2", never, { "state": { "alias": "state"; "required": false; }; "model": { "alias": "model"; "required": false; }; "config": { "alias": "config"; "required": false; }; "widgetStyle": { "alias": "widgetStyle"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "borderRadiusInput": { "alias": "borderRadius"; "required": false; }; }, { "itemSelect": "itemSelect"; "retry": "retry"; }, never, never, true, never>;
460
+ }
461
+
462
+ declare class WHomeE3Component {
463
+ state: WHomeWidgetState;
464
+ model: WHomeE3Model | null;
465
+ widgetStyle: WHomeWidgetStyle | null;
466
+ config: {
467
+ previewLimit?: number | null;
468
+ } | null;
469
+ labels: Partial<WHomeE3Labels> | null;
470
+ viewAll: EventEmitter<void>;
471
+ itemSelect: EventEmitter<string | number>;
472
+ retry: EventEmitter<void>;
473
+ private readonly brokenImages;
474
+ get texts(): WHomeE3Labels;
475
+ get title(): string;
476
+ get backgroundColor(): string | null;
477
+ get foregroundColor(): string | null;
478
+ get borderRadius(): number | null;
479
+ borderRadiusInput: number | null | undefined;
480
+ get previewLimit(): number;
481
+ get visibleItems(): ReadonlyArray<WHomeE3Item>;
482
+ get total(): number;
483
+ get hasMore(): boolean;
484
+ hasImage(item: WHomeE3Item): boolean;
485
+ onImageError(item: WHomeE3Item): void;
486
+ static ɵfac: i0.ɵɵFactoryDeclaration<WHomeE3Component, never>;
487
+ static ɵcmp: i0.ɵɵComponentDeclaration<WHomeE3Component, "w-home-e3", never, { "state": { "alias": "state"; "required": false; }; "model": { "alias": "model"; "required": false; }; "widgetStyle": { "alias": "widgetStyle"; "required": false; }; "config": { "alias": "config"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "borderRadiusInput": { "alias": "borderRadius"; "required": false; }; }, { "viewAll": "viewAll"; "itemSelect": "itemSelect"; "retry": "retry"; }, never, never, true, never>;
488
+ }
489
+
490
+ declare class WHomeK1Component {
491
+ state: WHomeWidgetState;
492
+ model: WHomeK1Model | null;
493
+ widgetStyle: WHomeWidgetStyle | null;
494
+ config: WHomeK1Config | null;
495
+ labels: Partial<WHomeK1Labels> | null;
496
+ borderRadiusInput: number | null | undefined;
497
+ retry: EventEmitter<void>;
498
+ readonly skeletonLines: number[];
499
+ get texts(): WHomeK1Labels;
500
+ get title(): string;
501
+ get backgroundColor(): string | null;
502
+ get foregroundColor(): string | null;
503
+ get borderRadius(): number | null;
504
+ get hasUsableValue(): boolean;
505
+ get showAuxiliary(): boolean;
506
+ get formattedValue(): string;
507
+ get formattedAuxiliary(): string;
508
+ private formatValue;
509
+ private isUsableValue;
510
+ static ɵfac: i0.ɵɵFactoryDeclaration<WHomeK1Component, never>;
511
+ static ɵcmp: i0.ɵɵComponentDeclaration<WHomeK1Component, "w-home-k1", never, { "state": { "alias": "state"; "required": false; }; "model": { "alias": "model"; "required": false; }; "widgetStyle": { "alias": "widgetStyle"; "required": false; }; "config": { "alias": "config"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "borderRadiusInput": { "alias": "borderRadius"; "required": false; }; }, { "retry": "retry"; }, never, never, true, never>;
512
+ }
513
+
514
+ /**
515
+ * Promotions widget (HP-003): composition D1 with the promotions labels.
516
+ * Kept as an alias of `w-home-d1` until the library version with the registry is released (WIDGETS-002).
517
+ */
518
+ declare class WHomePromotionsWidgetComponent extends WHomeD1Component {
519
+ protected get defaultLabels(): Required<WHomeD1Labels>;
520
+ static ɵfac: i0.ɵɵFactoryDeclaration<WHomePromotionsWidgetComponent, never>;
521
+ static ɵcmp: i0.ɵɵComponentDeclaration<WHomePromotionsWidgetComponent, "w-home-promotions-widget", never, {}, {}, never, never, true, never>;
522
+ }
523
+
524
+ /** Marks the projected icon of `w-home-action-widget`. */
525
+ declare class WHomeActionIconDirective {
526
+ static ɵfac: i0.ɵɵFactoryDeclaration<WHomeActionIconDirective, never>;
527
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WHomeActionIconDirective, "[wHomeActionIcon]", never, {}, {}, never, never, true, never>;
528
+ }
529
+ /** Action widget A1 (HP-004): projected icon, label, optional description and forward arrow. */
530
+ declare class WHomeActionWidgetComponent {
531
+ label: string;
532
+ description: string | null;
533
+ widgetStyle: WHomeWidgetStyle | null;
534
+ config: WHomeActionConfig | null;
535
+ borderRadiusInput: number | null | undefined;
536
+ /** Only `unavailable` changes the rendering: A1 has no data to load (WIDGETS-003). */
537
+ state: WHomeWidgetState;
538
+ unavailableLabel: string;
539
+ select: EventEmitter<void>;
540
+ /** Null keeps the Wallet default radius (16px). */
541
+ get borderRadius(): number | null;
542
+ get backgroundColor(): string;
543
+ get foregroundColor(): string | null;
544
+ get unavailable(): boolean;
545
+ get showDescription(): boolean;
546
+ static ɵfac: i0.ɵɵFactoryDeclaration<WHomeActionWidgetComponent, never>;
547
+ static ɵcmp: i0.ɵɵComponentDeclaration<WHomeActionWidgetComponent, "w-home-action-widget", never, { "label": { "alias": "label"; "required": false; }; "description": { "alias": "description"; "required": false; }; "widgetStyle": { "alias": "widgetStyle"; "required": false; }; "config": { "alias": "config"; "required": false; }; "borderRadiusInput": { "alias": "borderRadius"; "required": false; }; "state": { "alias": "state"; "required": false; }; "unavailableLabel": { "alias": "unavailableLabel"; "required": false; }; }, { "select": "select"; }, never, ["[wHomeActionIcon]"], true, never>;
548
+ }
549
+
550
+ /** Approved A1 action composition, kept as a semantic wrapper over the original action widget. */
551
+ declare class WHomeA1Component {
552
+ label: string;
553
+ description: string | null;
554
+ widgetStyle: WHomeWidgetStyle | null;
555
+ config: WHomeActionConfig | null;
556
+ borderRadius: number | null | undefined;
557
+ state: WHomeWidgetState;
558
+ unavailableLabel: string;
559
+ select: EventEmitter<void>;
560
+ static ɵfac: i0.ɵɵFactoryDeclaration<WHomeA1Component, never>;
561
+ static ɵcmp: i0.ɵɵComponentDeclaration<WHomeA1Component, "w-home-a1", never, { "label": { "alias": "label"; "required": false; }; "description": { "alias": "description"; "required": false; }; "widgetStyle": { "alias": "widgetStyle"; "required": false; }; "config": { "alias": "config"; "required": false; }; "borderRadius": { "alias": "borderRadius"; "required": false; }; "state": { "alias": "state"; "required": false; }; "unavailableLabel": { "alias": "unavailableLabel"; "required": false; }; }, { "select": "select"; }, never, ["[wHomeActionIcon]"], true, never>;
562
+ }
563
+
564
+ /** Full-width notice for a widget the preview cannot represent (HP-005). */
565
+ declare class WHomeUnsupportedWidgetComponent {
566
+ message: string;
567
+ static ɵfac: i0.ɵɵFactoryDeclaration<WHomeUnsupportedWidgetComponent, never>;
568
+ static ɵcmp: i0.ɵɵComponentDeclaration<WHomeUnsupportedWidgetComponent, "w-home-unsupported-widget", never, { "message": { "alias": "message"; "required": false; }; }, {}, never, never, true, never>;
569
+ }
570
+
571
+ export { WHomeA1Component, WHomeActionIconDirective, WHomeActionWidgetComponent, WHomeC1Component, WHomeC2Component, WHomeD1Component, WHomeD2Component, WHomeE1Component, WHomeE2Component, WHomeE3Component, WHomeK1Component, WHomePageFrameComponent, WHomePromotionsWidgetComponent, WHomeUnsupportedWidgetComponent, W_HOME_ACTION_DEFAULT_BACKGROUND, W_HOME_C1_DEFAULT_LABELS, W_HOME_C2_DEFAULT_LABELS, W_HOME_CONTENT_MARGIN, W_HOME_D1_DEFAULT_LABELS, W_HOME_E1_DEFAULT_LABELS, W_HOME_E2_DEFAULT_LABELS, W_HOME_E3_DEFAULT_LABELS, W_HOME_K1_DEFAULT_LABELS, W_HOME_MAX_CONTENT_WIDTH, W_HOME_PAGE_FRAME_DEFAULT_LABELS, W_HOME_PREVIEW_LIMIT, W_HOME_PROMOTIONS_DEFAULT_LABELS, W_HOME_WIDGET_BORDER_RADIUS, W_HOME_WIDGET_GAP, W_HOME_WIDGET_REGISTRY, resolveHomeWidget, wHomeHexColor, wHomeIntegerInRange };
572
+ export type { WHomeActionConfig, WHomeC1Labels, WHomeC1Model, WHomeC2Config, WHomeC2Labels, WHomeC2Model, WHomeComposition, WHomeD1Config, WHomeD1Item, WHomeD1Labels, WHomeD1Model, WHomeD2Item, WHomeD2Model, WHomeE1Config, WHomeE1Entity, WHomeE1Labels, WHomeE1Model, WHomeE2Config, WHomeE2Labels, WHomeE2Model, WHomeE2Unit, WHomeE3Config, WHomeE3Item, WHomeE3Labels, WHomeE3Model, WHomeK1Auxiliary, WHomeK1Config, WHomeK1Labels, WHomeK1Model, WHomePageFrameLabels, WHomePageStyle, WHomePromotionItem, WHomePromotionsConfig, WHomePromotionsLabels, WHomePromotionsState, WHomeWidgetRegistration, WHomeWidgetState, WHomeWidgetStyle, WHomeWidgetType };