@wix/himalaya-cli 0.1398.0 → 0.1399.0
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/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/icon-catalog.generated.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +41 -0
- package/dist/cli.mjs +68 -26
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/headless-loop.md +1 -1
- package/package.json +2 -2
- package/templates/beauty-salon-owner/dev/index.ts +304 -7
- package/templates/beauty-salon-owner/tier5-src/_shared/aria-chat.ts +39 -33
- package/templates/beauty-salon-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
- package/templates/beauty-salon-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
- package/templates/community-club-owner/dev/index.ts +304 -7
- package/templates/community-club-owner/tier5-src/_shared/aria-chat.ts +39 -33
- package/templates/community-club-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
- package/templates/community-club-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
- package/templates/events-meetups-owner/dev/index.ts +304 -7
- package/templates/events-meetups-owner/tier5-src/_shared/aria-chat.ts +39 -33
- package/templates/events-meetups-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
- package/templates/events-meetups-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
- package/templates/gym-fitness-owner/dev/index.ts +304 -7
- package/templates/gym-fitness-owner/tier5-src/_shared/aria-chat.ts +39 -33
- package/templates/gym-fitness-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
- package/templates/gym-fitness-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
- package/templates/nonprofit-cause-owner/dev/index.ts +304 -7
- package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-chat.ts +39 -33
- package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
- package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
- package/templates/owner-lite/dev/index.ts +304 -7
- package/templates/owner-lite/tier5-src/_shared/aria-chat.ts +39 -33
- package/templates/owner-lite/tier5-src/_shared/aria-widget-model.ts +26 -4
- package/templates/owner-lite/tier5-src/_shared/aria-widget-view.ts +63 -16
- package/templates/podcast-creator-owner/dev/index.ts +304 -7
- package/templates/podcast-creator-owner/tier5-src/_shared/aria-chat.ts +39 -33
- package/templates/podcast-creator-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
- package/templates/podcast-creator-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
- package/templates/portfolio-creative-owner/dev/index.ts +304 -7
- package/templates/portfolio-creative-owner/tier5-src/_shared/aria-chat.ts +39 -33
- package/templates/portfolio-creative-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
- package/templates/portfolio-creative-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
- package/templates/restaurant-owner/dev/index.ts +304 -7
- package/templates/restaurant-owner/tier5-src/_shared/aria-chat.ts +39 -33
- package/templates/restaurant-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
- package/templates/restaurant-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
- package/templates/retail-store-owner/dev/index.ts +304 -7
- package/templates/retail-store-owner/tier5-src/_shared/aria-chat.ts +39 -33
- package/templates/retail-store-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
- package/templates/retail-store-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
- package/templates/yoga-studio-owner/dev/index.ts +304 -7
- package/templates/yoga-studio-owner/tier5-src/_shared/aria-chat.ts +39 -33
- package/templates/yoga-studio-owner/tier5-src/_shared/aria-widget-model.ts +26 -4
- package/templates/yoga-studio-owner/tier5-src/_shared/aria-widget-view.ts +63 -16
|
@@ -12,10 +12,11 @@
|
|
|
12
12
|
// every collapsible element carries its own `*Hidden` boolean — the same shape
|
|
13
13
|
// the transcript bubbles already use for their three link slots.
|
|
14
14
|
|
|
15
|
-
import type { NormalizedWidget, WidgetKind, WidgetOption } from "./aria-widget-model.js";
|
|
15
|
+
import type { NormalizedWidget, WidgetBenefit, WidgetKind, WidgetOption } from "./aria-widget-model.js";
|
|
16
16
|
import { SELECTED_TOKEN, VALUES_TOKEN, isWebUrl, stripMarkdown } from "./aria-widget-model.js";
|
|
17
17
|
import { oauthView } from "./aria-widget-oauth.js";
|
|
18
18
|
import { composeGenericCard } from "./aria-generic-widget.js";
|
|
19
|
+
import { formatNumber } from "./engine-intl.js";
|
|
19
20
|
import { normalizeWidget } from "./aria-widget-kinds.js";
|
|
20
21
|
import { scanEnvelopes, widgetsOfParts } from "./aria-widgets.js";
|
|
21
22
|
|
|
@@ -90,9 +91,12 @@ export interface WidgetOptionRow {
|
|
|
90
91
|
/** The per-option button's label, already host-disclosed. */
|
|
91
92
|
buttonLabel: string;
|
|
92
93
|
buttonHidden: boolean;
|
|
93
|
-
/** PLANS
|
|
94
|
+
/** PLANS benefit prose plus nested repeater rows carrying each icon. */
|
|
94
95
|
listText: string;
|
|
96
|
+
benefits: WidgetBenefit[];
|
|
95
97
|
listHidden: boolean;
|
|
98
|
+
badge: string;
|
|
99
|
+
badgeHidden: boolean;
|
|
96
100
|
selected: boolean;
|
|
97
101
|
/** This option's own button `respondText`, before substitution. Carried on
|
|
98
102
|
* the row because the row is what a tap identifies. */
|
|
@@ -114,6 +118,7 @@ export interface WidgetOptionRow {
|
|
|
114
118
|
export interface WidgetSlice {
|
|
115
119
|
label: string;
|
|
116
120
|
value: number;
|
|
121
|
+
color: string;
|
|
117
122
|
}
|
|
118
123
|
|
|
119
124
|
/** One step of a TODO_PLAN, shaped for `Timeline`. */
|
|
@@ -218,6 +223,9 @@ export interface WidgetView {
|
|
|
218
223
|
* negation: an EMPTY chart is neither, so hiding each component on the
|
|
219
224
|
* other's flag left both on screen as blank boxes. */
|
|
220
225
|
chartPieHidden: boolean;
|
|
226
|
+
chartRingHidden: boolean;
|
|
227
|
+
chartPlainPieHidden: boolean;
|
|
228
|
+
chartLegend: { label: string; color: string; marker: "dot"; value: string }[];
|
|
221
229
|
chartSeriesHidden: boolean;
|
|
222
230
|
chartEmptyHidden: boolean;
|
|
223
231
|
/** Hide the async spinner. `asyncUntracked` is not the right flag: a TRACKED
|
|
@@ -526,7 +534,7 @@ export const NO_WIDGET: WidgetView = {
|
|
|
526
534
|
optionsGridHidden: true, optionsListHidden: false,
|
|
527
535
|
footerRowHidden: false, footerColumnHidden: true,
|
|
528
536
|
slices: [], values: [], chartIsPie: false, chartIsSeries: false, chartKind: "",
|
|
529
|
-
chartPieHidden: true, chartSeriesHidden: true, chartEmptyHidden: true,
|
|
537
|
+
chartPieHidden: true, chartRingHidden: true, chartPlainPieHidden: true, chartLegend: [], chartSeriesHidden: true, chartEmptyHidden: true,
|
|
530
538
|
asyncSpinnerHidden: true, itemsLoadingHidden: true,
|
|
531
539
|
chartEmpty: true, description: "", descriptionHidden: true,
|
|
532
540
|
steps: [], stepsEmpty: true, progress: 0, progressText: "",
|
|
@@ -574,11 +582,20 @@ function webOnly(url: string | undefined): string {
|
|
|
574
582
|
/** One option, flattened. `selected` is passed in because it is worker state
|
|
575
583
|
* rather than anything the payload said — except on the first build, where the
|
|
576
584
|
* service's `isPreselected` seeds it. */
|
|
585
|
+
/** An option that would draw nothing — every line stripped to empty, no picture, badge,
|
|
586
|
+
* benefit or usable button — is dropped rather than rendered as a blank card or an
|
|
587
|
+
* unlabeled row, and does not count toward `renderable`. */
|
|
588
|
+
function hasVisibleContent(row: WidgetOptionRow): boolean {
|
|
589
|
+
return !!(row.title || row.subtitle || row.text || row.pictureUrl || row.badge
|
|
590
|
+
|| row.benefits.length || !row.buttonHidden);
|
|
591
|
+
}
|
|
592
|
+
|
|
577
593
|
function optionRow(
|
|
578
594
|
o: {
|
|
579
595
|
value: string; title: string; subtitle: string; text: string;
|
|
580
596
|
pictureUrl: string; buttonLabel: string; actionUrl: string; listText: string;
|
|
581
|
-
respondText: string; actionScreenId?: string; notSupportedText?: string;
|
|
597
|
+
respondText: string; actionScreenId?: string; notSupportedText?: string; badge?: string;
|
|
598
|
+
benefits?: WidgetBenefit[];
|
|
582
599
|
},
|
|
583
600
|
i: number,
|
|
584
601
|
selected: boolean,
|
|
@@ -629,22 +646,33 @@ function optionRow(
|
|
|
629
646
|
// RADIO_BUTTON option, which may carry `text` and no `title` at all, renders
|
|
630
647
|
// as an empty row. So fold here rather than in each case's composition: the
|
|
631
648
|
// raw `text` is still exported below for anything that wants both.
|
|
632
|
-
|
|
633
|
-
|
|
649
|
+
// "Has a title" is judged on the STRIPPED title: a title of pure markup (`***`) falls back
|
|
650
|
+
// to the option's other prose exactly as a missing one does.
|
|
651
|
+
const strippedTitle = stripMarkdown(o.title);
|
|
652
|
+
const hasTitle = !!strippedTitle;
|
|
653
|
+
const rowTitle = hasTitle ? strippedTitle : stripMarkdown(o.text || o.subtitle);
|
|
634
654
|
const rowSubtitle = hasTitle
|
|
635
|
-
? (o.subtitle || o.text)
|
|
636
|
-
: (o.text && o.subtitle ? o.subtitle : "");
|
|
655
|
+
? stripMarkdown(o.subtitle || o.text)
|
|
656
|
+
: stripMarkdown(o.text && o.subtitle ? o.subtitle : "");
|
|
657
|
+
// Every `*Hidden` flag follows the STRIPPED value: prose that is only markup
|
|
658
|
+
// (`---`, `***`, an image with empty alt) strips to "" and must not paint an
|
|
659
|
+
// empty node.
|
|
660
|
+
const text = stripMarkdown(o.text);
|
|
661
|
+
const listText = stripMarkdown(o.listText);
|
|
662
|
+
const benefits = (o.benefits ?? []).filter((b) => b.text);
|
|
663
|
+
const badge = stripMarkdown(o.badge || "");
|
|
637
664
|
return {
|
|
638
665
|
id: `o${i}`,
|
|
639
666
|
value: o.value,
|
|
640
667
|
title: rowTitle,
|
|
641
668
|
subtitle: rowSubtitle, subtitleHidden: !rowSubtitle,
|
|
642
|
-
text
|
|
669
|
+
text, textHidden: !text,
|
|
643
670
|
pictureUrl, pictureHidden: !pictureUrl,
|
|
644
671
|
// A label is not enough: the button has to be able to DO something — say
|
|
645
672
|
// its text, go to its url, or explain why its screen is not here.
|
|
646
673
|
buttonLabel, buttonHidden: !(buttonLabel && (respondText || actionUrl || actionScreenId)),
|
|
647
|
-
listText
|
|
674
|
+
listText, benefits, listHidden: !listText && !benefits.length,
|
|
675
|
+
badge, badgeHidden: !badge,
|
|
648
676
|
selected,
|
|
649
677
|
respondText,
|
|
650
678
|
actionUrl,
|
|
@@ -757,22 +785,27 @@ export function viewOf(
|
|
|
757
785
|
// or screen destination, so that row must be removed.
|
|
758
786
|
return !rawUrl || isWebUrl(rawUrl);
|
|
759
787
|
})
|
|
760
|
-
|
|
788
|
+
.filter(hasVisibleContent)
|
|
789
|
+
: mappedOptions.filter(hasVisibleContent);
|
|
761
790
|
|
|
762
791
|
// CHART. `pieSlices` is the only shape the catalogue sends, but `chartType`
|
|
763
792
|
// decides the component: a pie is a `DonutChart` at zero thickness, anything
|
|
764
793
|
// else a `Chart` over the same magnitudes.
|
|
765
794
|
const rawSlices = Array.isArray(extra.slices) ? (extra.slices as { label?: unknown; value?: unknown }[]) : [];
|
|
766
|
-
|
|
767
|
-
|
|
795
|
+
// The first-party chart cycles the same palette for sectors and legend dots.
|
|
796
|
+
const chartColors = ["ariaChartBlue", "ariaChartGreen", "ariaChartPurple", "ariaChartGray"];
|
|
797
|
+
const slices: WidgetSlice[] = rawSlices.map((sl, i) => ({
|
|
798
|
+
label: typeof sl.label === "string" ? stripMarkdown(sl.label) : "Other",
|
|
768
799
|
value: typeof sl.value === "number" && Number.isFinite(sl.value) ? sl.value : 0,
|
|
800
|
+
color: chartColors[i % chartColors.length],
|
|
769
801
|
}));
|
|
770
802
|
const chartKind = typeof extra.chartType === "string" ? extra.chartType : "";
|
|
771
803
|
// "doughnut" is the spelling the reference catalogue uses; "donut" is the
|
|
772
804
|
// component's. Accepting only the component's spelling classified the real
|
|
773
805
|
// payload as a SERIES and drew it as bars.
|
|
774
806
|
const isPie = !chartKind || chartKind === "pie" || chartKind === "donut" || chartKind === "doughnut";
|
|
775
|
-
const
|
|
807
|
+
const isRing = chartKind === "donut" || chartKind === "doughnut";
|
|
808
|
+
const description = typeof extra.description === "string" ? stripMarkdown(extra.description) : "";
|
|
776
809
|
|
|
777
810
|
// TODO_PLAN. `status` is the service's word; `done` is what `Timeline` draws.
|
|
778
811
|
const rawItems = Array.isArray(extra.items) ? (extra.items as { label?: unknown; status?: unknown }[]) : [];
|
|
@@ -811,11 +844,16 @@ export function viewOf(
|
|
|
811
844
|
// A single-select starts with at most ONE preselected choice, whatever the
|
|
812
845
|
// payload marked — a radio group showing two ticks is a state the control
|
|
813
846
|
// cannot otherwise reach.
|
|
847
|
+
// A choice with nothing to show (a markup-only title and no prose) is dropped like any
|
|
848
|
+
// other empty option; the preselection seed counts only choices that are drawn, and each
|
|
849
|
+
// keeps its original index so its id is stable.
|
|
814
850
|
let seeded = false;
|
|
815
|
-
const choices =
|
|
851
|
+
const choices: WidgetOptionRow[] = [];
|
|
852
|
+
raw.forEach((o, j) => {
|
|
853
|
+
if (!hasVisibleContent(optionRow(o, j, false, disclose, allowPicture))) return;
|
|
816
854
|
const pre = !!o.preselected && (type !== "single-select" || !seeded);
|
|
817
855
|
if (pre) seeded = true;
|
|
818
|
-
|
|
856
|
+
choices.push(optionRow(o, j, pre, disclose, allowPicture));
|
|
819
857
|
});
|
|
820
858
|
// A question with no choices and no free-text option of its own can still
|
|
821
859
|
// be answered — text is the only thing it can take — so it gets the field.
|
|
@@ -947,6 +985,15 @@ export function viewOf(
|
|
|
947
985
|
chartIsPie: w.kind === "CHART" && isPie && slices.length > 0,
|
|
948
986
|
chartIsSeries: w.kind === "CHART" && !isPie && slices.length > 0,
|
|
949
987
|
chartPieHidden: !(w.kind === "CHART" && isPie && slices.length > 0),
|
|
988
|
+
chartRingHidden: !(w.kind === "CHART" && isRing && slices.length > 0),
|
|
989
|
+
chartPlainPieHidden: !(w.kind === "CHART" && isPie && !isRing && slices.length > 0),
|
|
990
|
+
// Name AND value per row: the legend is the only place a slice's magnitude
|
|
991
|
+
// is spelled out, and the a11y contract reads both. The worker formats it,
|
|
992
|
+
// not each renderer, through the shared cross-engine formatter.
|
|
993
|
+
// Only the wedges the donut actually draws: every renderer drops a slice
|
|
994
|
+
// whose value is not positive, so its legend row would name nothing.
|
|
995
|
+
chartLegend: slices.filter((s) => s.value > 0).map(({ label, color, value }) => ({ label, color, marker: "dot" as const,
|
|
996
|
+
value: formatNumber(value) })),
|
|
950
997
|
chartSeriesHidden: !(w.kind === "CHART" && !isPie && slices.length > 0),
|
|
951
998
|
chartKind,
|
|
952
999
|
chartEmpty: w.kind === "CHART" && slices.length === 0,
|
|
@@ -57544,6 +57544,7 @@ const SCREENS = runtimeSetting({
|
|
|
57544
57544
|
"title": "$item.buttonLabel",
|
|
57545
57545
|
"style": "secondary",
|
|
57546
57546
|
"size": "sm",
|
|
57547
|
+
"fullWidth": false,
|
|
57547
57548
|
"action": {
|
|
57548
57549
|
"actionId": "tier5.himiOwnerLiteAria.widgetRespond",
|
|
57549
57550
|
"params": {
|
|
@@ -58739,15 +58740,95 @@ const SCREENS = runtimeSetting({
|
|
|
58739
58740
|
}
|
|
58740
58741
|
},
|
|
58741
58742
|
{
|
|
58742
|
-
"id": "",
|
|
58743
|
+
"id": "himi_owner_lite_aria.widget.PLANS.benefits_$item.id",
|
|
58743
58744
|
"body": {
|
|
58744
58745
|
"package": "himalaya",
|
|
58745
|
-
"type": "
|
|
58746
|
+
"type": "LazyList",
|
|
58746
58747
|
"props": {
|
|
58747
|
-
"
|
|
58748
|
-
"
|
|
58749
|
-
"
|
|
58750
|
-
|
|
58748
|
+
"itemsPath": "$item.benefits",
|
|
58749
|
+
"spacing": 4,
|
|
58750
|
+
"items": [
|
|
58751
|
+
{
|
|
58752
|
+
"id": "",
|
|
58753
|
+
"body": {
|
|
58754
|
+
"package": "himalaya",
|
|
58755
|
+
"type": "HStack",
|
|
58756
|
+
"props": {
|
|
58757
|
+
"spacing": 8,
|
|
58758
|
+
"children": [
|
|
58759
|
+
{
|
|
58760
|
+
"id": "",
|
|
58761
|
+
"body": {
|
|
58762
|
+
"package": "himalaya",
|
|
58763
|
+
"type": "Icon",
|
|
58764
|
+
"props": {
|
|
58765
|
+
"name": "$item.icon",
|
|
58766
|
+
"size": 12,
|
|
58767
|
+
"tint": "success"
|
|
58768
|
+
}
|
|
58769
|
+
},
|
|
58770
|
+
"modifiers": {
|
|
58771
|
+
"accessibilityRole": "decorative",
|
|
58772
|
+
"hiddenPath": "$item.successHidden"
|
|
58773
|
+
}
|
|
58774
|
+
},
|
|
58775
|
+
{
|
|
58776
|
+
"id": "",
|
|
58777
|
+
"body": {
|
|
58778
|
+
"package": "himalaya",
|
|
58779
|
+
"type": "Icon",
|
|
58780
|
+
"props": {
|
|
58781
|
+
"name": "$item.icon",
|
|
58782
|
+
"size": 12,
|
|
58783
|
+
"tint": "textPrimary"
|
|
58784
|
+
}
|
|
58785
|
+
},
|
|
58786
|
+
"modifiers": {
|
|
58787
|
+
"accessibilityRole": "decorative",
|
|
58788
|
+
"hiddenPath": "$item.plainHidden"
|
|
58789
|
+
}
|
|
58790
|
+
},
|
|
58791
|
+
{
|
|
58792
|
+
"id": "",
|
|
58793
|
+
"body": {
|
|
58794
|
+
"package": "himalaya",
|
|
58795
|
+
"type": "Icon",
|
|
58796
|
+
"props": {
|
|
58797
|
+
"name": "$item.icon",
|
|
58798
|
+
"size": 12,
|
|
58799
|
+
"tint": "accentPrimary"
|
|
58800
|
+
}
|
|
58801
|
+
},
|
|
58802
|
+
"modifiers": {
|
|
58803
|
+
"accessibilityRole": "decorative",
|
|
58804
|
+
"theme": {
|
|
58805
|
+
"colors": {
|
|
58806
|
+
"accentPrimary": "$item.colorHex"
|
|
58807
|
+
}
|
|
58808
|
+
},
|
|
58809
|
+
"hiddenPath": "$item.customHidden"
|
|
58810
|
+
}
|
|
58811
|
+
},
|
|
58812
|
+
{
|
|
58813
|
+
"id": "",
|
|
58814
|
+
"body": {
|
|
58815
|
+
"package": "himalaya",
|
|
58816
|
+
"type": "Text",
|
|
58817
|
+
"props": {
|
|
58818
|
+
"text": "$item.text",
|
|
58819
|
+
"style": "footnote",
|
|
58820
|
+
"maxLines": 8
|
|
58821
|
+
}
|
|
58822
|
+
},
|
|
58823
|
+
"modifiers": {
|
|
58824
|
+
"weight": 1
|
|
58825
|
+
}
|
|
58826
|
+
}
|
|
58827
|
+
]
|
|
58828
|
+
}
|
|
58829
|
+
}
|
|
58830
|
+
}
|
|
58831
|
+
]
|
|
58751
58832
|
}
|
|
58752
58833
|
},
|
|
58753
58834
|
"modifiers": {
|
|
@@ -59147,6 +59228,181 @@ const SCREENS = runtimeSetting({
|
|
|
59147
59228
|
}
|
|
59148
59229
|
}
|
|
59149
59230
|
},
|
|
59231
|
+
{
|
|
59232
|
+
"id": "himi_owner_lite_aria.widget.VISUAL_DISPLAY.variants",
|
|
59233
|
+
"body": {
|
|
59234
|
+
"package": "himalaya",
|
|
59235
|
+
"type": "LazyList",
|
|
59236
|
+
"props": {
|
|
59237
|
+
"itemsPath": "$service:himiOwnerLiteAria.widget.options",
|
|
59238
|
+
"spacing": 6,
|
|
59239
|
+
"items": [
|
|
59240
|
+
{
|
|
59241
|
+
"id": "himi_owner_lite_aria.widget.VISUAL_DISPLAY.variant_$item.id",
|
|
59242
|
+
"body": {
|
|
59243
|
+
"package": "himalaya",
|
|
59244
|
+
"type": "Card",
|
|
59245
|
+
"props": {
|
|
59246
|
+
"children": [
|
|
59247
|
+
{
|
|
59248
|
+
"id": "",
|
|
59249
|
+
"body": {
|
|
59250
|
+
"package": "himalaya",
|
|
59251
|
+
"type": "VStack",
|
|
59252
|
+
"props": {
|
|
59253
|
+
"spacing": 8,
|
|
59254
|
+
"children": [
|
|
59255
|
+
{
|
|
59256
|
+
"id": "",
|
|
59257
|
+
"body": {
|
|
59258
|
+
"package": "himalaya",
|
|
59259
|
+
"type": "Image",
|
|
59260
|
+
"props": {
|
|
59261
|
+
"url": "$item.pictureUrl",
|
|
59262
|
+
"fillWidth": true,
|
|
59263
|
+
"aspectRatio": 1.5,
|
|
59264
|
+
"contentMode": "fill",
|
|
59265
|
+
"contentDescription": "$item.title"
|
|
59266
|
+
}
|
|
59267
|
+
},
|
|
59268
|
+
"modifiers": {
|
|
59269
|
+
"hiddenPath": "$item.pictureHidden"
|
|
59270
|
+
}
|
|
59271
|
+
},
|
|
59272
|
+
{
|
|
59273
|
+
"id": "",
|
|
59274
|
+
"body": {
|
|
59275
|
+
"package": "himalaya",
|
|
59276
|
+
"type": "HStack",
|
|
59277
|
+
"props": {
|
|
59278
|
+
"spacing": 0,
|
|
59279
|
+
"children": [
|
|
59280
|
+
{
|
|
59281
|
+
"id": "",
|
|
59282
|
+
"body": {
|
|
59283
|
+
"package": "himalaya",
|
|
59284
|
+
"type": "Text",
|
|
59285
|
+
"props": {
|
|
59286
|
+
"text": "$item.badge",
|
|
59287
|
+
"style": "footnote",
|
|
59288
|
+
"color": "surfacePrimary"
|
|
59289
|
+
}
|
|
59290
|
+
},
|
|
59291
|
+
"modifiers": {
|
|
59292
|
+
"background": {
|
|
59293
|
+
"token": "textSecondary"
|
|
59294
|
+
},
|
|
59295
|
+
"cornerRadius": 4,
|
|
59296
|
+
"padding": {
|
|
59297
|
+
"leading": 8,
|
|
59298
|
+
"trailing": 8,
|
|
59299
|
+
"top": 2,
|
|
59300
|
+
"bottom": 2
|
|
59301
|
+
}
|
|
59302
|
+
}
|
|
59303
|
+
},
|
|
59304
|
+
{
|
|
59305
|
+
"id": "",
|
|
59306
|
+
"body": {
|
|
59307
|
+
"package": "himalaya",
|
|
59308
|
+
"type": "Spacer",
|
|
59309
|
+
"props": {}
|
|
59310
|
+
}
|
|
59311
|
+
}
|
|
59312
|
+
]
|
|
59313
|
+
}
|
|
59314
|
+
},
|
|
59315
|
+
"modifiers": {
|
|
59316
|
+
"hiddenPath": "$item.badgeHidden"
|
|
59317
|
+
}
|
|
59318
|
+
},
|
|
59319
|
+
{
|
|
59320
|
+
"id": "",
|
|
59321
|
+
"body": {
|
|
59322
|
+
"package": "himalaya",
|
|
59323
|
+
"type": "Text",
|
|
59324
|
+
"props": {
|
|
59325
|
+
"text": "$item.title",
|
|
59326
|
+
"style": "bodyEmphasis"
|
|
59327
|
+
}
|
|
59328
|
+
}
|
|
59329
|
+
},
|
|
59330
|
+
{
|
|
59331
|
+
"id": "",
|
|
59332
|
+
"body": {
|
|
59333
|
+
"package": "himalaya",
|
|
59334
|
+
"type": "Text",
|
|
59335
|
+
"props": {
|
|
59336
|
+
"text": "$item.subtitle",
|
|
59337
|
+
"style": "body",
|
|
59338
|
+
"color": "textSecondary"
|
|
59339
|
+
}
|
|
59340
|
+
},
|
|
59341
|
+
"modifiers": {
|
|
59342
|
+
"hiddenPath": "$item.subtitleHidden"
|
|
59343
|
+
}
|
|
59344
|
+
},
|
|
59345
|
+
{
|
|
59346
|
+
"id": "",
|
|
59347
|
+
"body": {
|
|
59348
|
+
"package": "himalaya",
|
|
59349
|
+
"type": "Text",
|
|
59350
|
+
"props": {
|
|
59351
|
+
"text": "$item.text",
|
|
59352
|
+
"style": "body"
|
|
59353
|
+
}
|
|
59354
|
+
},
|
|
59355
|
+
"modifiers": {
|
|
59356
|
+
"hiddenPath": "$item.textHidden"
|
|
59357
|
+
}
|
|
59358
|
+
},
|
|
59359
|
+
{
|
|
59360
|
+
"id": "",
|
|
59361
|
+
"body": {
|
|
59362
|
+
"package": "himalaya",
|
|
59363
|
+
"type": "Text",
|
|
59364
|
+
"props": {
|
|
59365
|
+
"text": "$item.listText",
|
|
59366
|
+
"style": "body"
|
|
59367
|
+
}
|
|
59368
|
+
},
|
|
59369
|
+
"modifiers": {
|
|
59370
|
+
"hiddenPath": "$item.listHidden"
|
|
59371
|
+
}
|
|
59372
|
+
},
|
|
59373
|
+
{
|
|
59374
|
+
"id": "himi_owner_lite_aria.widget.VISUAL_DISPLAY.variant_$item.id.button",
|
|
59375
|
+
"body": {
|
|
59376
|
+
"package": "himalaya",
|
|
59377
|
+
"type": "Button",
|
|
59378
|
+
"props": {
|
|
59379
|
+
"title": "$item.buttonLabel",
|
|
59380
|
+
"style": "secondary",
|
|
59381
|
+
"size": "sm",
|
|
59382
|
+
"action": {
|
|
59383
|
+
"actionId": "tier5.himiOwnerLiteAria.widgetRespond",
|
|
59384
|
+
"params": {
|
|
59385
|
+
"value": "$item.id"
|
|
59386
|
+
}
|
|
59387
|
+
}
|
|
59388
|
+
}
|
|
59389
|
+
},
|
|
59390
|
+
"modifiers": {
|
|
59391
|
+
"hiddenPath": "$item.buttonHidden"
|
|
59392
|
+
}
|
|
59393
|
+
}
|
|
59394
|
+
]
|
|
59395
|
+
}
|
|
59396
|
+
}
|
|
59397
|
+
}
|
|
59398
|
+
]
|
|
59399
|
+
}
|
|
59400
|
+
}
|
|
59401
|
+
}
|
|
59402
|
+
]
|
|
59403
|
+
}
|
|
59404
|
+
}
|
|
59405
|
+
},
|
|
59150
59406
|
{
|
|
59151
59407
|
"id": "",
|
|
59152
59408
|
"body": {
|
|
@@ -60378,7 +60634,23 @@ const SCREENS = runtimeSetting({
|
|
|
60378
60634
|
},
|
|
60379
60635
|
"modifiers": {
|
|
60380
60636
|
"accessibilityLabel": "$service:himiOwnerLiteAria.widget.text",
|
|
60381
|
-
"hiddenPath": "$service:himiOwnerLiteAria.widget.
|
|
60637
|
+
"hiddenPath": "$service:himiOwnerLiteAria.widget.chartPlainPieHidden"
|
|
60638
|
+
}
|
|
60639
|
+
},
|
|
60640
|
+
{
|
|
60641
|
+
"id": "himi_owner_lite_aria.widget.CHART.doughnut",
|
|
60642
|
+
"body": {
|
|
60643
|
+
"package": "himalaya",
|
|
60644
|
+
"type": "DonutChart",
|
|
60645
|
+
"props": {
|
|
60646
|
+
"slicesPath": "$service:himiOwnerLiteAria.widget.slices",
|
|
60647
|
+
"thickness": 18,
|
|
60648
|
+
"size": 160
|
|
60649
|
+
}
|
|
60650
|
+
},
|
|
60651
|
+
"modifiers": {
|
|
60652
|
+
"accessibilityLabel": "$service:himiOwnerLiteAria.widget.text",
|
|
60653
|
+
"hiddenPath": "$service:himiOwnerLiteAria.widget.chartRingHidden"
|
|
60382
60654
|
}
|
|
60383
60655
|
},
|
|
60384
60656
|
{
|
|
@@ -60397,6 +60669,21 @@ const SCREENS = runtimeSetting({
|
|
|
60397
60669
|
"hiddenPath": "$service:himiOwnerLiteAria.widget.chartSeriesHidden"
|
|
60398
60670
|
}
|
|
60399
60671
|
},
|
|
60672
|
+
{
|
|
60673
|
+
"id": "himi_owner_lite_aria.widget.CHART.legend",
|
|
60674
|
+
"body": {
|
|
60675
|
+
"package": "himalaya",
|
|
60676
|
+
"type": "Legend",
|
|
60677
|
+
"props": {
|
|
60678
|
+
"itemsPath": "$service:himiOwnerLiteAria.widget.chartLegend",
|
|
60679
|
+
"orientation": "vertical"
|
|
60680
|
+
}
|
|
60681
|
+
},
|
|
60682
|
+
"modifiers": {
|
|
60683
|
+
"accessibilityLabel": "$service:himiOwnerLiteAria.widget.text",
|
|
60684
|
+
"hiddenPath": "$service:himiOwnerLiteAria.widget.chartPieHidden"
|
|
60685
|
+
}
|
|
60686
|
+
},
|
|
60400
60687
|
{
|
|
60401
60688
|
"id": "",
|
|
60402
60689
|
"body": {
|
|
@@ -60489,6 +60776,16 @@ const SCREENS = runtimeSetting({
|
|
|
60489
60776
|
}
|
|
60490
60777
|
]
|
|
60491
60778
|
}
|
|
60779
|
+
},
|
|
60780
|
+
"modifiers": {
|
|
60781
|
+
"theme": {
|
|
60782
|
+
"colors": {
|
|
60783
|
+
"ariaChartBlue": "#126EFF",
|
|
60784
|
+
"ariaChartGreen": "#26A659",
|
|
60785
|
+
"ariaChartPurple": "#9926D6",
|
|
60786
|
+
"ariaChartGray": "#878AA6"
|
|
60787
|
+
}
|
|
60788
|
+
}
|
|
60492
60789
|
}
|
|
60493
60790
|
},
|
|
60494
60791
|
"accessibilityAnnouncement": "$service:himiOwnerLiteAria.widget.text"
|