@wix/himalaya-cli 0.1854.0 → 0.1856.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/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{fb500748f6c4768468f2e7f985aa67c38633077c7a98caaa6b500c7b00eea8e9.bin → c1f008be31a41521c6de7c1afad419a1f4dad53cbc2701a14738d5b22f291463.bin} +1 -1
- package/dist/browser-plane/sw.js +10 -10
- package/dist/cli.mjs +598 -312
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/himi-json-output.md +2 -2
- package/guides/one-app-to-himi-app.md +2 -2
- package/package.json +2 -2
- package/templates/bare-fashion/tier5-src/himi-bare-fashion-home/index.ts +5 -2
- package/templates/branded-lite/l10n/ar.json +15 -10
- package/templates/branded-lite/l10n/cs.json +15 -10
- package/templates/branded-lite/l10n/da.json +15 -10
- package/templates/branded-lite/l10n/de.json +15 -10
- package/templates/branded-lite/l10n/el.json +15 -10
- package/templates/branded-lite/l10n/es.json +15 -10
- package/templates/branded-lite/l10n/fi.json +15 -10
- package/templates/branded-lite/l10n/fr.json +15 -10
- package/templates/branded-lite/l10n/he.json +12 -8
- package/templates/branded-lite/l10n/hu.json +15 -10
- package/templates/branded-lite/l10n/id.json +15 -10
- package/templates/branded-lite/l10n/it.json +15 -10
- package/templates/branded-lite/l10n/ja.json +15 -10
- package/templates/branded-lite/l10n/ko.json +15 -10
- package/templates/branded-lite/l10n/lt.json +15 -10
- package/templates/branded-lite/l10n/nl.json +15 -10
- package/templates/branded-lite/l10n/no.json +15 -10
- package/templates/branded-lite/l10n/pl.json +15 -10
- package/templates/branded-lite/l10n/pt.json +15 -10
- package/templates/branded-lite/l10n/ru.json +15 -10
- package/templates/branded-lite/l10n/sv.json +15 -10
- package/templates/branded-lite/l10n/th.json +15 -10
- package/templates/branded-lite/l10n/tr.json +15 -10
- package/templates/branded-lite/l10n/uk.json +15 -10
- package/templates/branded-lite/l10n/vi.json +15 -10
- package/templates/branded-lite/l10n/zh.json +15 -10
- package/templates/branded-lite/recipes/performance-tracker.json +464 -75
- package/templates/branded-lite/tier5-src/_shared/galleries-section.ts +52 -23
- package/templates/branded-lite/tier5-src/_shared/performance-tracker-goal.ts +57 -0
- package/templates/branded-lite/tier5-src/_shared/performance-tracker-section.ts +124 -49
- package/templates/branded-lite/tier5-src/_shared/performance-tracker-weeks.ts +2 -2
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_recipe": "A page's performance tracker
|
|
2
|
+
"_recipe": "A page's performance tracker, as the original One App shows it: a header with the section title and a ••• menu (Refresh), this week's range, then a card with \"Weekly training goal: N Sessions ⌄\" (tap: a bottom sheet titled \"Select a weekly goal for sessions\" with a 1 to 14 number wheel and a Select button; the member's own goal, kept on the device), the weeks of meeting the goal and the sessions in total, and a progress ring of this week's sessions against the goal; then the \"N of G sessions this week\" line, what is left to reach the goal, and a See All button that opens My Bookings. When the device cannot keep a goal the goal row is plain text. A guest or a refused member sees the default goal as text and is asked to sign in to see their activity and change it. The all-time row hides itself (`noTotal`) when the source turns it off; `{{id}}.signin.button` is removed when the scaffold has no sign-in screen. Service: registerPerformanceTrackerSection. Pair with the section-error recipe for a failed read. The copy named in `_keys` is keyed (`$t:performanceTracker.*`) for an app that has other languages and declares the keys in its l10n/en.json, so a language the app serves reaches the keyed messages.",
|
|
3
3
|
"_placeholders": {
|
|
4
4
|
"svc": "service name the page worker registered with registerPerformanceTrackerSection",
|
|
5
5
|
"id": "unique node id prefix for this section",
|
|
6
6
|
"signInScreen": "the screen the sign-in button opens, himi_sign_in",
|
|
7
7
|
"seeAllLabel": "the See All button's label",
|
|
8
|
-
"seeAllScreen": "the bookings screen, himi_bookings: See All and the sign-in return open it"
|
|
8
|
+
"seeAllScreen": "the bookings screen, himi_bookings: See All and the sign-in return open it",
|
|
9
|
+
"title": "the section's title; \"\" for none (the menu stays at the trailing edge)"
|
|
10
|
+
},
|
|
11
|
+
"_keys": {
|
|
12
|
+
"Weekly training goal:": "performanceTracker.goalText",
|
|
13
|
+
"Select a weekly goal for sessions": "performanceTracker.goalPickerLabel",
|
|
14
|
+
"Sign in to see your activity and change your weekly goal.": "performanceTracker.signInGoal",
|
|
15
|
+
"Performance Tracker Options": "performanceTracker.menuLabel"
|
|
9
16
|
},
|
|
10
17
|
"node": {
|
|
11
18
|
"id": "{{id}}.tracker",
|
|
@@ -16,6 +23,84 @@
|
|
|
16
23
|
"spacing": 12,
|
|
17
24
|
"alignment": "leading",
|
|
18
25
|
"children": [
|
|
26
|
+
{
|
|
27
|
+
"id": "{{id}}.header",
|
|
28
|
+
"body": {
|
|
29
|
+
"package": "himalaya",
|
|
30
|
+
"type": "HStack",
|
|
31
|
+
"props": {
|
|
32
|
+
"spacing": 8,
|
|
33
|
+
"alignment": "center",
|
|
34
|
+
"children": [
|
|
35
|
+
{
|
|
36
|
+
"id": "{{id}}.title",
|
|
37
|
+
"body": {
|
|
38
|
+
"package": "himalaya",
|
|
39
|
+
"type": "Text",
|
|
40
|
+
"props": {
|
|
41
|
+
"text": "{{title}}",
|
|
42
|
+
"style": "title3"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "",
|
|
48
|
+
"body": {
|
|
49
|
+
"package": "himalaya",
|
|
50
|
+
"type": "Spacer",
|
|
51
|
+
"props": {}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "{{id}}.menu",
|
|
56
|
+
"body": {
|
|
57
|
+
"package": "himalaya",
|
|
58
|
+
"type": "Menu",
|
|
59
|
+
"props": {
|
|
60
|
+
"style": "action_sheet",
|
|
61
|
+
"anchor": {
|
|
62
|
+
"id": "{{id}}.menu.anchor",
|
|
63
|
+
"body": {
|
|
64
|
+
"package": "himalaya",
|
|
65
|
+
"type": "Text",
|
|
66
|
+
"props": {
|
|
67
|
+
"text": "•••",
|
|
68
|
+
"style": "title3",
|
|
69
|
+
"color": "textSecondary"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"modifiers": {
|
|
73
|
+
"accessibilityLabel": "Performance Tracker Options"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"items": [
|
|
77
|
+
{
|
|
78
|
+
"id": "refresh",
|
|
79
|
+
"label": "Refresh",
|
|
80
|
+
"action": {
|
|
81
|
+
"actionId": "tier5.{{svc}}.refresh"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"modifiers": {
|
|
88
|
+
"hiddenPath": "$service:{{svc}}.noContent",
|
|
89
|
+
"padding": {
|
|
90
|
+
"leading": 12,
|
|
91
|
+
"trailing": 0,
|
|
92
|
+
"top": 4,
|
|
93
|
+
"bottom": 4
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"modifiers": {
|
|
101
|
+
"fillMaxWidth": true
|
|
102
|
+
}
|
|
103
|
+
},
|
|
19
104
|
{
|
|
20
105
|
"id": "{{id}}.loading",
|
|
21
106
|
"body": {
|
|
@@ -46,13 +131,48 @@
|
|
|
46
131
|
"spacing": 8,
|
|
47
132
|
"alignment": "leading",
|
|
48
133
|
"children": [
|
|
134
|
+
{
|
|
135
|
+
"id": "{{id}}.signin.goal",
|
|
136
|
+
"body": {
|
|
137
|
+
"package": "himalaya",
|
|
138
|
+
"type": "HStack",
|
|
139
|
+
"props": {
|
|
140
|
+
"spacing": 8,
|
|
141
|
+
"alignment": "center",
|
|
142
|
+
"children": [
|
|
143
|
+
{
|
|
144
|
+
"id": "{{id}}.signin.goal.label",
|
|
145
|
+
"body": {
|
|
146
|
+
"package": "himalaya",
|
|
147
|
+
"type": "Text",
|
|
148
|
+
"props": {
|
|
149
|
+
"text": "Weekly training goal:",
|
|
150
|
+
"style": "body"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"id": "{{id}}.signin.goal.value",
|
|
156
|
+
"body": {
|
|
157
|
+
"package": "himalaya",
|
|
158
|
+
"type": "Text",
|
|
159
|
+
"props": {
|
|
160
|
+
"text": "$service:{{svc}}.goalSessions",
|
|
161
|
+
"style": "bodyEmphasis"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
49
169
|
{
|
|
50
170
|
"id": "{{id}}.signin.text",
|
|
51
171
|
"body": {
|
|
52
172
|
"package": "himalaya",
|
|
53
173
|
"type": "Text",
|
|
54
174
|
"props": {
|
|
55
|
-
"text": "Sign in to see your activity
|
|
175
|
+
"text": "Sign in to see your activity and change your weekly goal.",
|
|
56
176
|
"style": "body",
|
|
57
177
|
"color": "textSecondary"
|
|
58
178
|
}
|
|
@@ -111,85 +231,237 @@
|
|
|
111
231
|
"id": "{{id}}.card",
|
|
112
232
|
"body": {
|
|
113
233
|
"package": "himalaya",
|
|
114
|
-
"type": "
|
|
234
|
+
"type": "VStack",
|
|
115
235
|
"props": {
|
|
116
236
|
"spacing": 16,
|
|
117
|
-
"alignment": "
|
|
237
|
+
"alignment": "leading",
|
|
118
238
|
"children": [
|
|
119
239
|
{
|
|
120
|
-
"id": "{{id}}.
|
|
240
|
+
"id": "{{id}}.goalrow",
|
|
241
|
+
"body": {
|
|
242
|
+
"package": "himalaya",
|
|
243
|
+
"type": "HStack",
|
|
244
|
+
"props": {
|
|
245
|
+
"spacing": 6,
|
|
246
|
+
"alignment": "center",
|
|
247
|
+
"children": [
|
|
248
|
+
{
|
|
249
|
+
"id": "{{id}}.goalrow.label",
|
|
250
|
+
"body": {
|
|
251
|
+
"package": "himalaya",
|
|
252
|
+
"type": "Text",
|
|
253
|
+
"props": {
|
|
254
|
+
"text": "Weekly training goal:",
|
|
255
|
+
"style": "body"
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"id": "{{id}}.goalrow.value",
|
|
261
|
+
"body": {
|
|
262
|
+
"package": "himalaya",
|
|
263
|
+
"type": "Text",
|
|
264
|
+
"props": {
|
|
265
|
+
"text": "$service:{{svc}}.goalSessions",
|
|
266
|
+
"style": "bodyEmphasis"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"id": "{{id}}.goalrow.chevron",
|
|
272
|
+
"body": {
|
|
273
|
+
"package": "himalaya",
|
|
274
|
+
"type": "Icon",
|
|
275
|
+
"props": {
|
|
276
|
+
"name": "chevron_down",
|
|
277
|
+
"size": 18,
|
|
278
|
+
"tint": "textSecondary"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"modifiers": {
|
|
282
|
+
"accessibilityRole": "decorative"
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"modifiers": {
|
|
289
|
+
"onTap": {
|
|
290
|
+
"actionId": "tier5.{{svc}}.openGoal"
|
|
291
|
+
},
|
|
292
|
+
"accessibilityRole": "button",
|
|
293
|
+
"accessibilityLabel": "Weekly training goal:",
|
|
294
|
+
"accessibilityValue": "$service:{{svc}}.goalSessions",
|
|
295
|
+
"hiddenPath": "$service:{{svc}}.goalLocked"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"id": "{{id}}.goalrow.fixed",
|
|
300
|
+
"body": {
|
|
301
|
+
"package": "himalaya",
|
|
302
|
+
"type": "HStack",
|
|
303
|
+
"props": {
|
|
304
|
+
"spacing": 6,
|
|
305
|
+
"alignment": "center",
|
|
306
|
+
"children": [
|
|
307
|
+
{
|
|
308
|
+
"id": "{{id}}.goalrow.fixed.label",
|
|
309
|
+
"body": {
|
|
310
|
+
"package": "himalaya",
|
|
311
|
+
"type": "Text",
|
|
312
|
+
"props": {
|
|
313
|
+
"text": "Weekly training goal:",
|
|
314
|
+
"style": "body"
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"id": "{{id}}.goalrow.fixed.value",
|
|
320
|
+
"body": {
|
|
321
|
+
"package": "himalaya",
|
|
322
|
+
"type": "Text",
|
|
323
|
+
"props": {
|
|
324
|
+
"text": "$service:{{svc}}.goalSessions",
|
|
325
|
+
"style": "bodyEmphasis"
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
]
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"modifiers": {
|
|
333
|
+
"hiddenPath": "$service:{{svc}}.goalUnlocked"
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"id": "{{id}}.summary",
|
|
121
338
|
"body": {
|
|
122
339
|
"package": "himalaya",
|
|
123
|
-
"type": "
|
|
340
|
+
"type": "HStack",
|
|
124
341
|
"props": {
|
|
125
|
-
"spacing":
|
|
126
|
-
"alignment": "
|
|
342
|
+
"spacing": 16,
|
|
343
|
+
"alignment": "center",
|
|
127
344
|
"children": [
|
|
128
345
|
{
|
|
129
|
-
"id": "{{id}}.
|
|
346
|
+
"id": "{{id}}.stats",
|
|
130
347
|
"body": {
|
|
131
348
|
"package": "himalaya",
|
|
132
349
|
"type": "VStack",
|
|
133
350
|
"props": {
|
|
134
|
-
"spacing":
|
|
351
|
+
"spacing": 12,
|
|
135
352
|
"alignment": "leading",
|
|
136
353
|
"children": [
|
|
137
354
|
{
|
|
138
|
-
"id": "{{id}}.streak
|
|
355
|
+
"id": "{{id}}.streak",
|
|
139
356
|
"body": {
|
|
140
357
|
"package": "himalaya",
|
|
141
|
-
"type": "
|
|
358
|
+
"type": "VStack",
|
|
142
359
|
"props": {
|
|
143
|
-
"
|
|
144
|
-
"
|
|
360
|
+
"spacing": 2,
|
|
361
|
+
"alignment": "leading",
|
|
362
|
+
"children": [
|
|
363
|
+
{
|
|
364
|
+
"id": "{{id}}.streak.value",
|
|
365
|
+
"body": {
|
|
366
|
+
"package": "himalaya",
|
|
367
|
+
"type": "Text",
|
|
368
|
+
"props": {
|
|
369
|
+
"text": "$service:{{svc}}.streak",
|
|
370
|
+
"style": "display"
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"id": "{{id}}.streak.label",
|
|
376
|
+
"body": {
|
|
377
|
+
"package": "himalaya",
|
|
378
|
+
"type": "Text",
|
|
379
|
+
"props": {
|
|
380
|
+
"text": "$service:{{svc}}.streakLabel",
|
|
381
|
+
"style": "footnote",
|
|
382
|
+
"color": "textSecondary"
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
]
|
|
145
387
|
}
|
|
146
388
|
}
|
|
147
389
|
},
|
|
148
390
|
{
|
|
149
|
-
"id": "{{id}}.
|
|
391
|
+
"id": "{{id}}.total",
|
|
150
392
|
"body": {
|
|
151
393
|
"package": "himalaya",
|
|
152
|
-
"type": "
|
|
394
|
+
"type": "VStack",
|
|
153
395
|
"props": {
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
396
|
+
"spacing": 2,
|
|
397
|
+
"alignment": "leading",
|
|
398
|
+
"children": [
|
|
399
|
+
{
|
|
400
|
+
"id": "{{id}}.total.value",
|
|
401
|
+
"body": {
|
|
402
|
+
"package": "himalaya",
|
|
403
|
+
"type": "Text",
|
|
404
|
+
"props": {
|
|
405
|
+
"text": "$service:{{svc}}.total",
|
|
406
|
+
"style": "display"
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"id": "{{id}}.total.label",
|
|
412
|
+
"body": {
|
|
413
|
+
"package": "himalaya",
|
|
414
|
+
"type": "Text",
|
|
415
|
+
"props": {
|
|
416
|
+
"text": "$service:{{svc}}.totalLabel",
|
|
417
|
+
"style": "footnote",
|
|
418
|
+
"color": "textSecondary"
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
]
|
|
157
423
|
}
|
|
424
|
+
},
|
|
425
|
+
"modifiers": {
|
|
426
|
+
"hiddenPath": "$service:{{svc}}.noTotal"
|
|
158
427
|
}
|
|
159
428
|
}
|
|
160
429
|
]
|
|
161
430
|
}
|
|
431
|
+
},
|
|
432
|
+
"modifiers": {
|
|
433
|
+
"weight": 1
|
|
162
434
|
}
|
|
163
435
|
},
|
|
164
436
|
{
|
|
165
|
-
"id": "{{id}}.
|
|
437
|
+
"id": "{{id}}.ring",
|
|
166
438
|
"body": {
|
|
167
439
|
"package": "himalaya",
|
|
168
|
-
"type": "
|
|
440
|
+
"type": "ZStack",
|
|
169
441
|
"props": {
|
|
170
|
-
"
|
|
171
|
-
"alignment": "leading",
|
|
442
|
+
"alignment": "center",
|
|
172
443
|
"children": [
|
|
173
444
|
{
|
|
174
|
-
"id": "{{id}}.
|
|
445
|
+
"id": "{{id}}.ring.arc",
|
|
175
446
|
"body": {
|
|
176
447
|
"package": "himalaya",
|
|
177
|
-
"type": "
|
|
448
|
+
"type": "ActivityIndicator",
|
|
178
449
|
"props": {
|
|
179
|
-
"
|
|
180
|
-
"
|
|
450
|
+
"ring": true,
|
|
451
|
+
"size": 88,
|
|
452
|
+
"value": 0,
|
|
453
|
+
"valuePath": "$service:{{svc}}.progress"
|
|
181
454
|
}
|
|
182
455
|
}
|
|
183
456
|
},
|
|
184
457
|
{
|
|
185
|
-
"id": "{{id}}.
|
|
458
|
+
"id": "{{id}}.ring.text",
|
|
186
459
|
"body": {
|
|
187
460
|
"package": "himalaya",
|
|
188
461
|
"type": "Text",
|
|
189
462
|
"props": {
|
|
190
|
-
"text": "$service:{{svc}}.
|
|
191
|
-
"style": "
|
|
192
|
-
"color": "textSecondary"
|
|
463
|
+
"text": "$service:{{svc}}.ringText",
|
|
464
|
+
"style": "bodyEmphasis"
|
|
193
465
|
}
|
|
194
466
|
}
|
|
195
467
|
}
|
|
@@ -197,53 +469,12 @@
|
|
|
197
469
|
}
|
|
198
470
|
},
|
|
199
471
|
"modifiers": {
|
|
200
|
-
"
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
]
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
"modifiers": {
|
|
207
|
-
"weight": 1
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"id": "{{id}}.ring",
|
|
212
|
-
"body": {
|
|
213
|
-
"package": "himalaya",
|
|
214
|
-
"type": "ZStack",
|
|
215
|
-
"props": {
|
|
216
|
-
"alignment": "center",
|
|
217
|
-
"children": [
|
|
218
|
-
{
|
|
219
|
-
"id": "{{id}}.ring.arc",
|
|
220
|
-
"body": {
|
|
221
|
-
"package": "himalaya",
|
|
222
|
-
"type": "ActivityIndicator",
|
|
223
|
-
"props": {
|
|
224
|
-
"ring": true,
|
|
225
|
-
"size": 88,
|
|
226
|
-
"value": 0,
|
|
227
|
-
"valuePath": "$service:{{svc}}.progress"
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"id": "{{id}}.ring.text",
|
|
233
|
-
"body": {
|
|
234
|
-
"package": "himalaya",
|
|
235
|
-
"type": "Text",
|
|
236
|
-
"props": {
|
|
237
|
-
"text": "$service:{{svc}}.ringText",
|
|
238
|
-
"style": "bodyEmphasis"
|
|
239
|
-
}
|
|
472
|
+
"accessibilityValue": "$service:{{svc}}.goalLabel",
|
|
473
|
+
"width": 96
|
|
240
474
|
}
|
|
241
475
|
}
|
|
242
476
|
]
|
|
243
477
|
}
|
|
244
|
-
},
|
|
245
|
-
"modifiers": {
|
|
246
|
-
"accessibilityValue": "$service:{{svc}}.goalLabel"
|
|
247
478
|
}
|
|
248
479
|
}
|
|
249
480
|
]
|
|
@@ -310,6 +541,164 @@
|
|
|
310
541
|
}
|
|
311
542
|
}
|
|
312
543
|
}
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"id": "{{id}}.goalsheet",
|
|
547
|
+
"body": {
|
|
548
|
+
"package": "himalaya",
|
|
549
|
+
"type": "BottomSheet",
|
|
550
|
+
"props": {
|
|
551
|
+
"presentedPath": "$service:{{svc}}.goalOpen",
|
|
552
|
+
"dismissible": true,
|
|
553
|
+
"showGrabber": true,
|
|
554
|
+
"onDismiss": {
|
|
555
|
+
"actionId": "tier5.{{svc}}.closeGoal"
|
|
556
|
+
},
|
|
557
|
+
"content": {
|
|
558
|
+
"id": "{{id}}.goalsheet.panel",
|
|
559
|
+
"body": {
|
|
560
|
+
"package": "himalaya",
|
|
561
|
+
"type": "VStack",
|
|
562
|
+
"props": {
|
|
563
|
+
"spacing": 12,
|
|
564
|
+
"alignment": "leading",
|
|
565
|
+
"children": [
|
|
566
|
+
{
|
|
567
|
+
"id": "{{id}}.goalsheet.head",
|
|
568
|
+
"body": {
|
|
569
|
+
"package": "himalaya",
|
|
570
|
+
"type": "HStack",
|
|
571
|
+
"props": {
|
|
572
|
+
"spacing": 12,
|
|
573
|
+
"alignment": "center",
|
|
574
|
+
"children": [
|
|
575
|
+
{
|
|
576
|
+
"id": "{{id}}.goalsheet.title",
|
|
577
|
+
"body": {
|
|
578
|
+
"package": "himalaya",
|
|
579
|
+
"type": "Text",
|
|
580
|
+
"props": {
|
|
581
|
+
"text": "Select a weekly goal for sessions",
|
|
582
|
+
"style": "bodyEmphasis"
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"id": "",
|
|
588
|
+
"body": {
|
|
589
|
+
"package": "himalaya",
|
|
590
|
+
"type": "Spacer",
|
|
591
|
+
"props": {}
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"id": "{{id}}.goalsheet.select",
|
|
596
|
+
"body": {
|
|
597
|
+
"package": "himalaya",
|
|
598
|
+
"type": "Button",
|
|
599
|
+
"props": {
|
|
600
|
+
"title": "Select",
|
|
601
|
+
"style": "tertiary",
|
|
602
|
+
"size": "md",
|
|
603
|
+
"action": {
|
|
604
|
+
"actionId": "tier5.{{svc}}.chooseGoal"
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
]
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"id": "{{id}}.goalsheet.wheel",
|
|
615
|
+
"body": {
|
|
616
|
+
"package": "himalaya",
|
|
617
|
+
"type": "WheelPicker",
|
|
618
|
+
"props": {
|
|
619
|
+
"options": [
|
|
620
|
+
{
|
|
621
|
+
"id": "1",
|
|
622
|
+
"label": "1"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"id": "2",
|
|
626
|
+
"label": "2"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"id": "3",
|
|
630
|
+
"label": "3"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"id": "4",
|
|
634
|
+
"label": "4"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"id": "5",
|
|
638
|
+
"label": "5"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"id": "6",
|
|
642
|
+
"label": "6"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"id": "7",
|
|
646
|
+
"label": "7"
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"id": "8",
|
|
650
|
+
"label": "8"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"id": "9",
|
|
654
|
+
"label": "9"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"id": "10",
|
|
658
|
+
"label": "10"
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"id": "11",
|
|
662
|
+
"label": "11"
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"id": "12",
|
|
666
|
+
"label": "12"
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"id": "13",
|
|
670
|
+
"label": "13"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"id": "14",
|
|
674
|
+
"label": "14"
|
|
675
|
+
}
|
|
676
|
+
],
|
|
677
|
+
"optionsPath": "$service:{{svc}}.goalOptions",
|
|
678
|
+
"selectedId": "$service:{{svc}}.goalDraft",
|
|
679
|
+
"onChange": {
|
|
680
|
+
"actionId": "tier5.{{svc}}.draftGoal"
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
"modifiers": {
|
|
685
|
+
"accessibilityLabel": "Select a weekly goal for sessions"
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
]
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
"modifiers": {
|
|
692
|
+
"padding": {
|
|
693
|
+
"leading": 20,
|
|
694
|
+
"trailing": 20,
|
|
695
|
+
"top": 8,
|
|
696
|
+
"bottom": 24
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}
|
|
313
702
|
}
|
|
314
703
|
]
|
|
315
704
|
}
|