Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Flight Status",
"description": "Example of flight status",
"description": "Example of flight status demonstrating date formatting.",
"messages": [
{
"version": "v0.9",
Expand Down Expand Up @@ -67,7 +67,14 @@
"id": "date",
"component": "Text",
"text": {
"path": "/date"
"call": "formatDate",
"args": {
"value": {
"path": "/date"
},
"format": "E, MMM d"
},
"returnType": "string"
},
"variant": "caption"
},
Expand Down Expand Up @@ -136,7 +143,14 @@
"id": "departure-time",
"component": "Text",
"text": {
"path": "/departureTime"
"call": "formatDate",
"args": {
"value": {
"path": "/departureTime"
},
"format": "h:mm a"
},
"returnType": "string"
},
"variant": "h3"
},
Expand Down Expand Up @@ -182,7 +196,14 @@
"id": "arrival-time",
"component": "Text",
"text": {
"path": "/arrivalTime"
"call": "formatDate",
"args": {
"value": {
"path": "/arrivalTime"
},
"format": "h:mm a"
},
"returnType": "string"
},
"variant": "h3"
}
Expand All @@ -195,12 +216,12 @@
"surfaceId": "gallery-flight-status",
"value": {
"flightNumber": "OS 87",
"date": "Mon, Dec 15",
"date": "2025-12-15",
"origin": "Vienna",
"destination": "New York",
"departureTime": "10:15 AM",
"departureTime": "2025-12-15T10:15:00Z",
"status": "On Time",
"arrivalTime": "2:30 PM"
"arrivalTime": "2025-12-15T14:30:00Z"
}
}
}
Expand Down
120 changes: 43 additions & 77 deletions specification/v0_9/json/catalogs/basic/examples/03_calendar-day.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Calendar Day",
"description": "Example of calendar day",
"description": "Example of calendar day demonstrating dynamic templating, relative paths, and date formatting.",
"messages": [
{
"version": "v0.9",
Expand Down Expand Up @@ -50,96 +50,61 @@
"id": "day-name",
"component": "Text",
"text": {
"path": "/dayName"
"call": "formatDate",
"args": {
"value": {
"path": "/date"
},
"format": "EEEE"
},
"returnType": "string"
},
"variant": "caption"
},
{
"id": "day-number",
"component": "Text",
"text": {
"path": "/dayNumber"
"call": "formatDate",
"args": {
"value": {
"path": "/date"
},
"format": "d"
},
"returnType": "string"
},
"variant": "h1"
},
{
"id": "events-col",
"component": "Column",
"children": [
"event1",
"event2",
"event3"
]
},
{
"id": "event1",
"component": "Column",
"children": [
"event1-title",
"event1-time"
]
},
{
"id": "event1-title",
"component": "Text",
"text": {
"path": "/event1/title"
},
"variant": "body"
},
{
"id": "event1-time",
"component": "Text",
"text": {
"path": "/event1/time"
},
"variant": "caption"
},
{
"id": "event2",
"component": "Column",
"children": [
"event2-title",
"event2-time"
]
},
{
"id": "event2-title",
"component": "Text",
"text": {
"path": "/event2/title"
},
"variant": "body"
},
{
"id": "event2-time",
"component": "Text",
"text": {
"path": "/event2/time"
},
"variant": "caption"
"children": {
"path": "/events",
"componentId": "event-template"
}
},
{
"id": "event3",
"id": "event-template",
"component": "Column",
"children": [
"event3-title",
"event3-time"
"event-title",
"event-time"
]
},
{
"id": "event3-title",
"id": "event-title",
"component": "Text",
"text": {
"path": "/event3/title"
"path": "title"
},
"variant": "body"
},
{
"id": "event3-time",
"id": "event-time",
"component": "Text",
"text": {
"path": "/event3/time"
"path": "time"
},
"variant": "caption"
},
Expand Down Expand Up @@ -195,20 +160,21 @@
"updateDataModel": {
"surfaceId": "gallery-calendar-day",
"value": {
"dayName": "Friday",
"dayNumber": "28",
"event1": {
"title": "Lunch",
"time": "12:00 - 12:45 PM"
},
"event2": {
"title": "Q1 roadmap review",
"time": "1:00 - 2:00 PM"
},
"event3": {
"title": "Team standup",
"time": "3:30 - 4:00 PM"
}
"date": "2025-12-28",
"events": [
{
"title": "Lunch",
"time": "12:00 - 12:45 PM"
},
{
"title": "Q1 roadmap review",
"time": "1:00 - 2:00 PM"
},
{
"title": "Team standup",
"time": "3:30 - 4:00 PM"
}
]
}
}
}
Expand Down
Loading
Loading