@cxtms/cx-schema 1.9.258 → 1.9.259
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/package.json
CHANGED
|
@@ -115,6 +115,30 @@
|
|
|
115
115
|
"$ref": "../schemas.json#/definitions/component",
|
|
116
116
|
"description": "Mobile-only component used for normal-mode events whose mapped status is 'active'; receives 'item' bound to the event"
|
|
117
117
|
},
|
|
118
|
+
"itemGroups": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"description": "Mobile normal-mode visual grouping for adjacent events whose templated key resolves to the same non-empty value",
|
|
121
|
+
"properties": {
|
|
122
|
+
"key": {
|
|
123
|
+
"$ref": "../schemas.json#/definitions/templateExpression",
|
|
124
|
+
"description": "Resolved per event with item, index, and collection"
|
|
125
|
+
},
|
|
126
|
+
"accent": {
|
|
127
|
+
"$ref": "../schemas.json#/definitions/templateExpression",
|
|
128
|
+
"description": "Frame color resolved with group and collection"
|
|
129
|
+
},
|
|
130
|
+
"background": {
|
|
131
|
+
"$ref": "../schemas.json#/definitions/templateExpression",
|
|
132
|
+
"description": "Frame fill resolved with group and collection"
|
|
133
|
+
},
|
|
134
|
+
"headerTemplate": {
|
|
135
|
+
"$ref": "../schemas.json#/definitions/component",
|
|
136
|
+
"description": "Rendered once above the grouped members; receives group and collection"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"required": ["key"],
|
|
140
|
+
"additionalProperties": false
|
|
141
|
+
},
|
|
118
142
|
"eventSources": {
|
|
119
143
|
"type": "array",
|
|
120
144
|
"description": "Data providers executed for the current visible range or tracking milestone source",
|
|
@@ -347,6 +347,7 @@ MUI Lab Timeline for chronological events or milestone-based tracking progress.
|
|
|
347
347
|
| `startDate` / `endDate` | `string` | current week | Initial date range for normal mode |
|
|
348
348
|
| `eventSources` | `EventSource[]` | — | GraphQL/static event sources |
|
|
349
349
|
| `eventTemplate` | `ComponentProps` | — | Custom event template for normal mode |
|
|
350
|
+
| `itemGroups` | `{key, accent?, background?, headerTemplate?}` | — | Mobile normal-mode grouping for consecutive events with the same non-empty key |
|
|
350
351
|
| `milestones` | `Milestone[]` | `[]` | Tracking milestones |
|
|
351
352
|
| `options.height` | `string \| number` | `400`/`auto` | Component height |
|
|
352
353
|
| `options.showTodayMarker` | `boolean` | `true` | Today marker in normal mode |
|
|
@@ -364,6 +365,8 @@ MUI Lab Timeline for chronological events or milestone-based tracking progress.
|
|
|
364
365
|
|
|
365
366
|
**Events:** `onEventClick` (data: `event`)
|
|
366
367
|
|
|
368
|
+
On mobile vertical timelines, `itemGroups` frames adjacent runs of two or more events whose templated `key` resolves equally. Runs are order-sensitive; isolated or empty keys remain ungrouped. `headerTemplate`, `accent`, and `background` resolve with `group = { key, items, size, startIndex, endIndex }` and `collection`. Grouped event templates also receive `groupPosition` and `groupOffset`. Tracking mode ignores grouping.
|
|
369
|
+
|
|
367
370
|
```yaml
|
|
368
371
|
component: timeline
|
|
369
372
|
name: orderTimeline
|