@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,
|
|
@@ -57698,6 +57698,7 @@ const SCREENS = runtimeSetting({
|
|
|
57698
57698
|
"title": "$item.buttonLabel",
|
|
57699
57699
|
"style": "secondary",
|
|
57700
57700
|
"size": "sm",
|
|
57701
|
+
"fullWidth": false,
|
|
57701
57702
|
"action": {
|
|
57702
57703
|
"actionId": "tier5.himiOwnerLiteAria.widgetRespond",
|
|
57703
57704
|
"params": {
|
|
@@ -58893,15 +58894,95 @@ const SCREENS = runtimeSetting({
|
|
|
58893
58894
|
}
|
|
58894
58895
|
},
|
|
58895
58896
|
{
|
|
58896
|
-
"id": "",
|
|
58897
|
+
"id": "himi_owner_lite_aria.widget.PLANS.benefits_$item.id",
|
|
58897
58898
|
"body": {
|
|
58898
58899
|
"package": "himalaya",
|
|
58899
|
-
"type": "
|
|
58900
|
+
"type": "LazyList",
|
|
58900
58901
|
"props": {
|
|
58901
|
-
"
|
|
58902
|
-
"
|
|
58903
|
-
"
|
|
58904
|
-
|
|
58902
|
+
"itemsPath": "$item.benefits",
|
|
58903
|
+
"spacing": 4,
|
|
58904
|
+
"items": [
|
|
58905
|
+
{
|
|
58906
|
+
"id": "",
|
|
58907
|
+
"body": {
|
|
58908
|
+
"package": "himalaya",
|
|
58909
|
+
"type": "HStack",
|
|
58910
|
+
"props": {
|
|
58911
|
+
"spacing": 8,
|
|
58912
|
+
"children": [
|
|
58913
|
+
{
|
|
58914
|
+
"id": "",
|
|
58915
|
+
"body": {
|
|
58916
|
+
"package": "himalaya",
|
|
58917
|
+
"type": "Icon",
|
|
58918
|
+
"props": {
|
|
58919
|
+
"name": "$item.icon",
|
|
58920
|
+
"size": 12,
|
|
58921
|
+
"tint": "success"
|
|
58922
|
+
}
|
|
58923
|
+
},
|
|
58924
|
+
"modifiers": {
|
|
58925
|
+
"accessibilityRole": "decorative",
|
|
58926
|
+
"hiddenPath": "$item.successHidden"
|
|
58927
|
+
}
|
|
58928
|
+
},
|
|
58929
|
+
{
|
|
58930
|
+
"id": "",
|
|
58931
|
+
"body": {
|
|
58932
|
+
"package": "himalaya",
|
|
58933
|
+
"type": "Icon",
|
|
58934
|
+
"props": {
|
|
58935
|
+
"name": "$item.icon",
|
|
58936
|
+
"size": 12,
|
|
58937
|
+
"tint": "textPrimary"
|
|
58938
|
+
}
|
|
58939
|
+
},
|
|
58940
|
+
"modifiers": {
|
|
58941
|
+
"accessibilityRole": "decorative",
|
|
58942
|
+
"hiddenPath": "$item.plainHidden"
|
|
58943
|
+
}
|
|
58944
|
+
},
|
|
58945
|
+
{
|
|
58946
|
+
"id": "",
|
|
58947
|
+
"body": {
|
|
58948
|
+
"package": "himalaya",
|
|
58949
|
+
"type": "Icon",
|
|
58950
|
+
"props": {
|
|
58951
|
+
"name": "$item.icon",
|
|
58952
|
+
"size": 12,
|
|
58953
|
+
"tint": "accentPrimary"
|
|
58954
|
+
}
|
|
58955
|
+
},
|
|
58956
|
+
"modifiers": {
|
|
58957
|
+
"accessibilityRole": "decorative",
|
|
58958
|
+
"theme": {
|
|
58959
|
+
"colors": {
|
|
58960
|
+
"accentPrimary": "$item.colorHex"
|
|
58961
|
+
}
|
|
58962
|
+
},
|
|
58963
|
+
"hiddenPath": "$item.customHidden"
|
|
58964
|
+
}
|
|
58965
|
+
},
|
|
58966
|
+
{
|
|
58967
|
+
"id": "",
|
|
58968
|
+
"body": {
|
|
58969
|
+
"package": "himalaya",
|
|
58970
|
+
"type": "Text",
|
|
58971
|
+
"props": {
|
|
58972
|
+
"text": "$item.text",
|
|
58973
|
+
"style": "footnote",
|
|
58974
|
+
"maxLines": 8
|
|
58975
|
+
}
|
|
58976
|
+
},
|
|
58977
|
+
"modifiers": {
|
|
58978
|
+
"weight": 1
|
|
58979
|
+
}
|
|
58980
|
+
}
|
|
58981
|
+
]
|
|
58982
|
+
}
|
|
58983
|
+
}
|
|
58984
|
+
}
|
|
58985
|
+
]
|
|
58905
58986
|
}
|
|
58906
58987
|
},
|
|
58907
58988
|
"modifiers": {
|
|
@@ -59301,6 +59382,181 @@ const SCREENS = runtimeSetting({
|
|
|
59301
59382
|
}
|
|
59302
59383
|
}
|
|
59303
59384
|
},
|
|
59385
|
+
{
|
|
59386
|
+
"id": "himi_owner_lite_aria.widget.VISUAL_DISPLAY.variants",
|
|
59387
|
+
"body": {
|
|
59388
|
+
"package": "himalaya",
|
|
59389
|
+
"type": "LazyList",
|
|
59390
|
+
"props": {
|
|
59391
|
+
"itemsPath": "$service:himiOwnerLiteAria.widget.options",
|
|
59392
|
+
"spacing": 6,
|
|
59393
|
+
"items": [
|
|
59394
|
+
{
|
|
59395
|
+
"id": "himi_owner_lite_aria.widget.VISUAL_DISPLAY.variant_$item.id",
|
|
59396
|
+
"body": {
|
|
59397
|
+
"package": "himalaya",
|
|
59398
|
+
"type": "Card",
|
|
59399
|
+
"props": {
|
|
59400
|
+
"children": [
|
|
59401
|
+
{
|
|
59402
|
+
"id": "",
|
|
59403
|
+
"body": {
|
|
59404
|
+
"package": "himalaya",
|
|
59405
|
+
"type": "VStack",
|
|
59406
|
+
"props": {
|
|
59407
|
+
"spacing": 8,
|
|
59408
|
+
"children": [
|
|
59409
|
+
{
|
|
59410
|
+
"id": "",
|
|
59411
|
+
"body": {
|
|
59412
|
+
"package": "himalaya",
|
|
59413
|
+
"type": "Image",
|
|
59414
|
+
"props": {
|
|
59415
|
+
"url": "$item.pictureUrl",
|
|
59416
|
+
"fillWidth": true,
|
|
59417
|
+
"aspectRatio": 1.5,
|
|
59418
|
+
"contentMode": "fill",
|
|
59419
|
+
"contentDescription": "$item.title"
|
|
59420
|
+
}
|
|
59421
|
+
},
|
|
59422
|
+
"modifiers": {
|
|
59423
|
+
"hiddenPath": "$item.pictureHidden"
|
|
59424
|
+
}
|
|
59425
|
+
},
|
|
59426
|
+
{
|
|
59427
|
+
"id": "",
|
|
59428
|
+
"body": {
|
|
59429
|
+
"package": "himalaya",
|
|
59430
|
+
"type": "HStack",
|
|
59431
|
+
"props": {
|
|
59432
|
+
"spacing": 0,
|
|
59433
|
+
"children": [
|
|
59434
|
+
{
|
|
59435
|
+
"id": "",
|
|
59436
|
+
"body": {
|
|
59437
|
+
"package": "himalaya",
|
|
59438
|
+
"type": "Text",
|
|
59439
|
+
"props": {
|
|
59440
|
+
"text": "$item.badge",
|
|
59441
|
+
"style": "footnote",
|
|
59442
|
+
"color": "surfacePrimary"
|
|
59443
|
+
}
|
|
59444
|
+
},
|
|
59445
|
+
"modifiers": {
|
|
59446
|
+
"background": {
|
|
59447
|
+
"token": "textSecondary"
|
|
59448
|
+
},
|
|
59449
|
+
"cornerRadius": 4,
|
|
59450
|
+
"padding": {
|
|
59451
|
+
"leading": 8,
|
|
59452
|
+
"trailing": 8,
|
|
59453
|
+
"top": 2,
|
|
59454
|
+
"bottom": 2
|
|
59455
|
+
}
|
|
59456
|
+
}
|
|
59457
|
+
},
|
|
59458
|
+
{
|
|
59459
|
+
"id": "",
|
|
59460
|
+
"body": {
|
|
59461
|
+
"package": "himalaya",
|
|
59462
|
+
"type": "Spacer",
|
|
59463
|
+
"props": {}
|
|
59464
|
+
}
|
|
59465
|
+
}
|
|
59466
|
+
]
|
|
59467
|
+
}
|
|
59468
|
+
},
|
|
59469
|
+
"modifiers": {
|
|
59470
|
+
"hiddenPath": "$item.badgeHidden"
|
|
59471
|
+
}
|
|
59472
|
+
},
|
|
59473
|
+
{
|
|
59474
|
+
"id": "",
|
|
59475
|
+
"body": {
|
|
59476
|
+
"package": "himalaya",
|
|
59477
|
+
"type": "Text",
|
|
59478
|
+
"props": {
|
|
59479
|
+
"text": "$item.title",
|
|
59480
|
+
"style": "bodyEmphasis"
|
|
59481
|
+
}
|
|
59482
|
+
}
|
|
59483
|
+
},
|
|
59484
|
+
{
|
|
59485
|
+
"id": "",
|
|
59486
|
+
"body": {
|
|
59487
|
+
"package": "himalaya",
|
|
59488
|
+
"type": "Text",
|
|
59489
|
+
"props": {
|
|
59490
|
+
"text": "$item.subtitle",
|
|
59491
|
+
"style": "body",
|
|
59492
|
+
"color": "textSecondary"
|
|
59493
|
+
}
|
|
59494
|
+
},
|
|
59495
|
+
"modifiers": {
|
|
59496
|
+
"hiddenPath": "$item.subtitleHidden"
|
|
59497
|
+
}
|
|
59498
|
+
},
|
|
59499
|
+
{
|
|
59500
|
+
"id": "",
|
|
59501
|
+
"body": {
|
|
59502
|
+
"package": "himalaya",
|
|
59503
|
+
"type": "Text",
|
|
59504
|
+
"props": {
|
|
59505
|
+
"text": "$item.text",
|
|
59506
|
+
"style": "body"
|
|
59507
|
+
}
|
|
59508
|
+
},
|
|
59509
|
+
"modifiers": {
|
|
59510
|
+
"hiddenPath": "$item.textHidden"
|
|
59511
|
+
}
|
|
59512
|
+
},
|
|
59513
|
+
{
|
|
59514
|
+
"id": "",
|
|
59515
|
+
"body": {
|
|
59516
|
+
"package": "himalaya",
|
|
59517
|
+
"type": "Text",
|
|
59518
|
+
"props": {
|
|
59519
|
+
"text": "$item.listText",
|
|
59520
|
+
"style": "body"
|
|
59521
|
+
}
|
|
59522
|
+
},
|
|
59523
|
+
"modifiers": {
|
|
59524
|
+
"hiddenPath": "$item.listHidden"
|
|
59525
|
+
}
|
|
59526
|
+
},
|
|
59527
|
+
{
|
|
59528
|
+
"id": "himi_owner_lite_aria.widget.VISUAL_DISPLAY.variant_$item.id.button",
|
|
59529
|
+
"body": {
|
|
59530
|
+
"package": "himalaya",
|
|
59531
|
+
"type": "Button",
|
|
59532
|
+
"props": {
|
|
59533
|
+
"title": "$item.buttonLabel",
|
|
59534
|
+
"style": "secondary",
|
|
59535
|
+
"size": "sm",
|
|
59536
|
+
"action": {
|
|
59537
|
+
"actionId": "tier5.himiOwnerLiteAria.widgetRespond",
|
|
59538
|
+
"params": {
|
|
59539
|
+
"value": "$item.id"
|
|
59540
|
+
}
|
|
59541
|
+
}
|
|
59542
|
+
}
|
|
59543
|
+
},
|
|
59544
|
+
"modifiers": {
|
|
59545
|
+
"hiddenPath": "$item.buttonHidden"
|
|
59546
|
+
}
|
|
59547
|
+
}
|
|
59548
|
+
]
|
|
59549
|
+
}
|
|
59550
|
+
}
|
|
59551
|
+
}
|
|
59552
|
+
]
|
|
59553
|
+
}
|
|
59554
|
+
}
|
|
59555
|
+
}
|
|
59556
|
+
]
|
|
59557
|
+
}
|
|
59558
|
+
}
|
|
59559
|
+
},
|
|
59304
59560
|
{
|
|
59305
59561
|
"id": "",
|
|
59306
59562
|
"body": {
|
|
@@ -60532,7 +60788,23 @@ const SCREENS = runtimeSetting({
|
|
|
60532
60788
|
},
|
|
60533
60789
|
"modifiers": {
|
|
60534
60790
|
"accessibilityLabel": "$service:himiOwnerLiteAria.widget.text",
|
|
60535
|
-
"hiddenPath": "$service:himiOwnerLiteAria.widget.
|
|
60791
|
+
"hiddenPath": "$service:himiOwnerLiteAria.widget.chartPlainPieHidden"
|
|
60792
|
+
}
|
|
60793
|
+
},
|
|
60794
|
+
{
|
|
60795
|
+
"id": "himi_owner_lite_aria.widget.CHART.doughnut",
|
|
60796
|
+
"body": {
|
|
60797
|
+
"package": "himalaya",
|
|
60798
|
+
"type": "DonutChart",
|
|
60799
|
+
"props": {
|
|
60800
|
+
"slicesPath": "$service:himiOwnerLiteAria.widget.slices",
|
|
60801
|
+
"thickness": 18,
|
|
60802
|
+
"size": 160
|
|
60803
|
+
}
|
|
60804
|
+
},
|
|
60805
|
+
"modifiers": {
|
|
60806
|
+
"accessibilityLabel": "$service:himiOwnerLiteAria.widget.text",
|
|
60807
|
+
"hiddenPath": "$service:himiOwnerLiteAria.widget.chartRingHidden"
|
|
60536
60808
|
}
|
|
60537
60809
|
},
|
|
60538
60810
|
{
|
|
@@ -60551,6 +60823,21 @@ const SCREENS = runtimeSetting({
|
|
|
60551
60823
|
"hiddenPath": "$service:himiOwnerLiteAria.widget.chartSeriesHidden"
|
|
60552
60824
|
}
|
|
60553
60825
|
},
|
|
60826
|
+
{
|
|
60827
|
+
"id": "himi_owner_lite_aria.widget.CHART.legend",
|
|
60828
|
+
"body": {
|
|
60829
|
+
"package": "himalaya",
|
|
60830
|
+
"type": "Legend",
|
|
60831
|
+
"props": {
|
|
60832
|
+
"itemsPath": "$service:himiOwnerLiteAria.widget.chartLegend",
|
|
60833
|
+
"orientation": "vertical"
|
|
60834
|
+
}
|
|
60835
|
+
},
|
|
60836
|
+
"modifiers": {
|
|
60837
|
+
"accessibilityLabel": "$service:himiOwnerLiteAria.widget.text",
|
|
60838
|
+
"hiddenPath": "$service:himiOwnerLiteAria.widget.chartPieHidden"
|
|
60839
|
+
}
|
|
60840
|
+
},
|
|
60554
60841
|
{
|
|
60555
60842
|
"id": "",
|
|
60556
60843
|
"body": {
|
|
@@ -60643,6 +60930,16 @@ const SCREENS = runtimeSetting({
|
|
|
60643
60930
|
}
|
|
60644
60931
|
]
|
|
60645
60932
|
}
|
|
60933
|
+
},
|
|
60934
|
+
"modifiers": {
|
|
60935
|
+
"theme": {
|
|
60936
|
+
"colors": {
|
|
60937
|
+
"ariaChartBlue": "#126EFF",
|
|
60938
|
+
"ariaChartGreen": "#26A659",
|
|
60939
|
+
"ariaChartPurple": "#9926D6",
|
|
60940
|
+
"ariaChartGray": "#878AA6"
|
|
60941
|
+
}
|
|
60942
|
+
}
|
|
60646
60943
|
}
|
|
60647
60944
|
},
|
|
60648
60945
|
"accessibilityAnnouncement": "$service:himiOwnerLiteAria.widget.text"
|