robobyte-front-builder 1.0.26 → 1.0.28

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.
Files changed (88) hide show
  1. package/INTEGRATION.md +6 -0
  2. package/LICENSE +65 -0
  3. package/README.md +166 -21
  4. package/docs/ReportViewer.md +581 -0
  5. package/docs/fetchReportData.md +379 -0
  6. package/docs/printLayout.md +405 -0
  7. package/package.json +29 -1
  8. package/src/lib/index.js +14 -0
  9. package/src/lib/muiTheme.js +655 -0
  10. package/src/lib/providers/RoboByteFrontBuilderProvider.jsx +45 -1
  11. package/src/pages/_app.js +1 -0
  12. package/src/pages/printBuilder/index.jsx +26 -19
  13. package/src/pages/viewBuilder/index.jsx +29 -19
  14. package/training/00-index.md +168 -0
  15. package/training/01-input.md +144 -0
  16. package/training/02-checkbox.md +107 -0
  17. package/training/03-dropdown.md +135 -0
  18. package/training/04-datepicker.md +139 -0
  19. package/training/05-radio.md +123 -0
  20. package/training/06-number.md +133 -0
  21. package/training/07-textarea.md +114 -0
  22. package/training/08-richtext.md +112 -0
  23. package/training/09-tag.md +110 -0
  24. package/training/10-time.md +107 -0
  25. package/training/11-toggle.md +108 -0
  26. package/training/12-signature.md +107 -0
  27. package/training/13-autocomplete.md +134 -0
  28. package/training/14-button.md +168 -0
  29. package/training/15-label.md +138 -0
  30. package/training/16-header.md +128 -0
  31. package/training/17-divider.md +96 -0
  32. package/training/18-image.md +105 -0
  33. package/training/19-link.md +108 -0
  34. package/training/20-banner.md +122 -0
  35. package/training/21-progress-circle.md +101 -0
  36. package/training/22-progress-line.md +93 -0
  37. package/training/23-menu.md +139 -0
  38. package/training/24-popover.md +114 -0
  39. package/training/25-layout.md +116 -0
  40. package/training/26-layout-cell.md +143 -0
  41. package/training/27-card.md +87 -0
  42. package/training/28-wizard.md +126 -0
  43. package/training/29-wizard-step.md +92 -0
  44. package/training/30-repeater.md +123 -0
  45. package/training/31-dialog.md +131 -0
  46. package/training/32-breadcrumb.md +121 -0
  47. package/training/33-dataGrid.md +129 -0
  48. package/training/34-dataTableViewer.md +115 -0
  49. package/training/35-reportViewer.md +673 -0
  50. package/training/36-viewRenderer.md +110 -0
  51. package/training/37-treeView.md +170 -0
  52. package/training/38-kpi-metric.md +148 -0
  53. package/training/39-kpi-trend.md +105 -0
  54. package/training/40-kpi-badge.md +112 -0
  55. package/training/41-kpi-statusDot.md +118 -0
  56. package/training/42-kpi-iconBox.md +114 -0
  57. package/training/43-kpi-gauge.md +143 -0
  58. package/training/44-kpi-bulletChart.md +126 -0
  59. package/training/45-kpi-colorScale.md +143 -0
  60. package/training/46-kpi-rating.md +125 -0
  61. package/training/47-kpi-countdown.md +151 -0
  62. package/training/48-fetchReportData.md +276 -0
  63. package/training/49-printLayout.md +215 -0
  64. package/training/examples/01-login-form.json +176 -0
  65. package/training/examples/02-contact-form.json +141 -0
  66. package/training/examples/03-kpi-cards-row.json +123 -0
  67. package/training/examples/04-settings-toggles.json +153 -0
  68. package/training/examples/05-user-profile-card.json +136 -0
  69. package/training/examples/06-date-range-filter.json +108 -0
  70. package/training/examples/07-search-bar-results.json +130 -0
  71. package/training/examples/08-notification-settings.json +131 -0
  72. package/training/examples/09-employee-profile-form.json +259 -0
  73. package/training/examples/10-invoice-form.json +241 -0
  74. package/training/examples/11-dashboard-overview.json +251 -0
  75. package/training/examples/12-registration-wizard.json +154 -0
  76. package/training/examples/13-product-catalog.json +168 -0
  77. package/training/examples/14-data-table-with-filters.json +180 -0
  78. package/training/examples/15-tabbed-profile.json +92 -0
  79. package/training/examples/16-kpi-full-row.json +203 -0
  80. package/training/examples/17-tree-detail-view.json +139 -0
  81. package/training/examples/18-employee-management.json +233 -0
  82. package/training/examples/19-sales-dashboard.json +272 -0
  83. package/training/examples/20-checkout-wizard.json +225 -0
  84. package/training/examples/21-analytics-page.json +222 -0
  85. package/training/examples/22-hr-onboarding.json +222 -0
  86. package/training/examples/23-document-browser.json +241 -0
  87. package/training/examples/24-order-management.json +290 -0
  88. package/training/examples/25-crm-contact-page.json +272 -0
@@ -0,0 +1,180 @@
1
+ {
2
+ "description": "Filterable data table with status dropdown, date range, text search, export button, and paginated results",
3
+ "components_used": ["layout", "layout-cell", "header", "label", "input", "dropdown", "datepicker", "button", "dataTableViewer", "kpi-metric", "banner"],
4
+ "root": {
5
+ "type": "layout",
6
+ "props": { "cols": 1, "rowGap": 20 },
7
+ "children": [
8
+ {
9
+ "type": "layout-cell",
10
+ "props": {},
11
+ "style": { "justifyContent": "space-between", "alignItems": "center" },
12
+ "children": [
13
+ { "type": "header", "props": { "text": "Orders", "variant": "h5", "component": "h1", "color": "textPrimary" } },
14
+ {
15
+ "type": "button",
16
+ "props": { "label": "Export CSV", "variant": "outlined", "color": "inherit", "prefix": "DownloadOutlined", "size": "small" },
17
+ "actions": { "onClick": { "type": "custom", "code": "exportOrders(form)" } }
18
+ }
19
+ ]
20
+ },
21
+ {
22
+ "type": "layout-cell",
23
+ "props": {},
24
+ "style": { "backgroundColor": "#f8f9fa", "borderRadius": "8px", "padding": "16px", "border": "1px solid #e0e0e0" },
25
+ "children": [
26
+ {
27
+ "type": "layout",
28
+ "props": { "cols": 5, "gap": 12 },
29
+ "children": [
30
+ {
31
+ "type": "layout-cell",
32
+ "props": { "colSpan": 2 },
33
+ "style": {},
34
+ "children": [
35
+ { "type": "input", "props": { "key": "search", "label": "Search orders...", "prefix": "SearchOutlined", "size": "small" }, "style": { "width": "100%" } }
36
+ ]
37
+ },
38
+ {
39
+ "type": "layout-cell",
40
+ "props": {},
41
+ "style": {},
42
+ "children": [
43
+ {
44
+ "type": "dropdown",
45
+ "props": {
46
+ "key": "status",
47
+ "label": "Status",
48
+ "fullWidth": true,
49
+ "size": "small",
50
+ "options": [
51
+ { "label": "All Statuses", "value": "" },
52
+ { "label": "Pending", "value": "pending" },
53
+ { "label": "Processing", "value": "processing" },
54
+ { "label": "Shipped", "value": "shipped" },
55
+ { "label": "Delivered", "value": "delivered" },
56
+ { "label": "Cancelled", "value": "cancelled" }
57
+ ]
58
+ }
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ "type": "layout-cell",
64
+ "props": {},
65
+ "style": {},
66
+ "children": [
67
+ { "type": "datepicker", "props": { "key": "dateFrom", "label": "From", "fullWidth": true, "size": "small", "format": "MM/DD/YYYY", "clearable": true } }
68
+ ]
69
+ },
70
+ {
71
+ "type": "layout-cell",
72
+ "props": {},
73
+ "style": { "alignItems": "flex-end", "gap": "8px" },
74
+ "children": [
75
+ {
76
+ "type": "button",
77
+ "props": { "label": "Apply Filters", "variant": "contained", "color": "primary", "size": "small" },
78
+ "actions": { "onClick": { "type": "custom", "code": "filterOrders({ search: form.search, status: form.status, dateFrom: form.dateFrom })" } }
79
+ },
80
+ { "type": "button", "props": { "label": "Reset", "variant": "text", "color": "inherit", "size": "small" }, "actions": { "onClick": { "type": "reset" } } }
81
+ ]
82
+ }
83
+ ]
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "type": "layout-cell",
89
+ "props": {},
90
+ "style": {},
91
+ "children": [
92
+ {
93
+ "type": "banner",
94
+ "props": { "key": "filterBanner", "message": "data.filterMessage", "severity": "info", "open": "data.isFiltered", "variant": "outlined", "dismissible": false, "icon": true }
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "type": "layout-cell",
100
+ "props": {},
101
+ "style": {},
102
+ "children": [
103
+ {
104
+ "type": "layout",
105
+ "props": { "cols": 4, "gap": 12 },
106
+ "children": [
107
+ {
108
+ "type": "layout-cell",
109
+ "props": {},
110
+ "style": { "backgroundColor": "#ffffff", "borderRadius": "8px", "padding": "12px 16px", "boxShadow": "0 1px 4px rgba(0,0,0,0.06)" },
111
+ "children": [
112
+ { "type": "kpi-metric", "props": { "valueKey": "data.totalOrders", "label": "Total Orders", "format": "number", "fontSize": "20px", "fontWeight": "700", "align": "left", "labelPosition": "above", "labelColor": "text.secondary", "labelFontSize": "11px" } }
113
+ ]
114
+ },
115
+ {
116
+ "type": "layout-cell",
117
+ "props": {},
118
+ "style": { "backgroundColor": "#ffffff", "borderRadius": "8px", "padding": "12px 16px", "boxShadow": "0 1px 4px rgba(0,0,0,0.06)" },
119
+ "children": [
120
+ { "type": "kpi-metric", "props": { "valueKey": "data.totalRevenue", "label": "Total Revenue", "format": "currency", "currency": "USD", "decimals": 0, "fontSize": "20px", "fontWeight": "700", "align": "left", "labelPosition": "above", "labelColor": "text.secondary", "labelFontSize": "11px" } }
121
+ ]
122
+ },
123
+ {
124
+ "type": "layout-cell",
125
+ "props": {},
126
+ "style": { "backgroundColor": "#ffffff", "borderRadius": "8px", "padding": "12px 16px", "boxShadow": "0 1px 4px rgba(0,0,0,0.06)" },
127
+ "children": [
128
+ { "type": "kpi-metric", "props": { "valueKey": "data.avgOrderValue", "label": "Avg Order Value", "format": "currency", "currency": "USD", "decimals": 2, "fontSize": "20px", "fontWeight": "700", "align": "left", "labelPosition": "above", "labelColor": "text.secondary", "labelFontSize": "11px" } }
129
+ ]
130
+ },
131
+ {
132
+ "type": "layout-cell",
133
+ "props": {},
134
+ "style": { "backgroundColor": "#ffffff", "borderRadius": "8px", "padding": "12px 16px", "boxShadow": "0 1px 4px rgba(0,0,0,0.06)" },
135
+ "children": [
136
+ { "type": "kpi-metric", "props": { "valueKey": "data.pendingCount", "label": "Pending", "format": "number", "fontSize": "20px", "fontWeight": "700", "align": "left", "labelPosition": "above", "labelColor": "text.secondary", "labelFontSize": "11px", "color": "warning.main" } }
137
+ ]
138
+ }
139
+ ]
140
+ }
141
+ ]
142
+ },
143
+ {
144
+ "type": "layout-cell",
145
+ "props": {},
146
+ "style": { "backgroundColor": "#ffffff", "borderRadius": "12px", "boxShadow": "0 2px 8px rgba(0,0,0,0.08)" },
147
+ "children": [
148
+ {
149
+ "type": "dataTableViewer",
150
+ "props": {
151
+ "dataKey": "data.orders",
152
+ "columns": [
153
+ { "field": "orderNumber", "headerName": "Order #", "width": "120px" },
154
+ { "field": "customerName", "headerName": "Customer", "width": "180px" },
155
+ { "field": "date", "headerName": "Date", "width": "120px" },
156
+ { "field": "items", "headerName": "Items", "width": "80px" },
157
+ { "field": "total", "headerName": "Total", "width": "120px" },
158
+ { "field": "status", "headerName": "Status", "width": "120px" },
159
+ { "field": "shippingMethod", "headerName": "Shipping", "width": "130px" }
160
+ ],
161
+ "showHeader": true,
162
+ "striped": true,
163
+ "rowHover": true,
164
+ "bordered": false,
165
+ "headerBgColor": "#fafafa",
166
+ "headerFontSize": "13px",
167
+ "headerTextColor": "#555",
168
+ "fontSize": "14px",
169
+ "cellPaddingH": 16,
170
+ "cellPaddingV": 12
171
+ }
172
+ }
173
+ ]
174
+ }
175
+ ]
176
+ },
177
+ "dialogs": [],
178
+ "actions": [],
179
+ "timers": []
180
+ }
@@ -0,0 +1,92 @@
1
+ {
2
+ "description": "Tabbed user profile page with menu navigation switching between embedded views for each section",
3
+ "components_used": ["layout", "layout-cell", "header", "label", "image", "menu", "viewRenderer", "kpi-badge", "kpi-statusDot", "divider"],
4
+ "root": {
5
+ "type": "layout",
6
+ "props": { "cols": 1, "rowGap": 0 },
7
+ "children": [
8
+ {
9
+ "type": "layout-cell",
10
+ "props": {},
11
+ "style": { "backgroundColor": "#1976d2", "padding": "32px 32px 0 32px" },
12
+ "children": [
13
+ {
14
+ "type": "layout",
15
+ "props": { "cols": 1, "rowGap": 20 },
16
+ "children": [
17
+ {
18
+ "type": "layout-cell",
19
+ "props": {},
20
+ "style": { "gap": "20px", "alignItems": "flex-end" },
21
+ "children": [
22
+ { "type": "image", "props": { "src": "data.user.avatarUrl", "alt": "Profile Photo", "width": "80px", "height": "80px", "borderRadius": "50%", "border": "3px solid rgba(255,255,255,0.8)", "objectFit": "cover" } },
23
+ {
24
+ "type": "layout",
25
+ "props": { "cols": 1, "rowGap": 4 },
26
+ "children": [
27
+ { "type": "layout-cell", "props": {}, "style": { "gap": "10px", "alignItems": "center" }, "children": [
28
+ { "type": "header", "props": { "text": "data.user.fullName", "variant": "h5", "component": "h1", "color": "textPrimary", "elementStyle": { "color": "#ffffff" } } },
29
+ { "type": "kpi-badge", "props": { "valueKey": "data.user.role", "variant": "soft", "size": "small", "thresholds": [{ "operator": "==", "value": "Admin", "color": "error.main", "label": "Admin" }, { "operator": "==", "value": "Manager", "color": "warning.main", "label": "Manager" }] } }
30
+ ]},
31
+ { "type": "layout-cell", "props": {}, "style": { "gap": "12px", "alignItems": "center" }, "children": [
32
+ { "type": "label", "props": { "text": "data.user.title", "variant": "body2", "elementStyle": { "color": "rgba(255,255,255,0.8)" } } },
33
+ { "type": "kpi-statusDot", "props": { "valueKey": "data.user.status", "size": "8", "pulse": true, "showLabel": true, "thresholds": [{ "operator": "==", "value": "online", "color": "success.main", "label": "Online" }, { "operator": "==", "value": "away", "color": "warning.main", "label": "Away" }] } }
34
+ ]}
35
+ ]
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ "type": "layout-cell",
41
+ "props": {},
42
+ "style": {},
43
+ "children": [
44
+ {
45
+ "type": "menu",
46
+ "props": {
47
+ "key": "profileTab",
48
+ "variant": "tabs",
49
+ "orientation": "horizontal",
50
+ "color": "inherit",
51
+ "indicatorColor": "#ffffff",
52
+ "textColor": "rgba(255,255,255,0.7)",
53
+ "activeTextColor": "#ffffff",
54
+ "items": [
55
+ { "label": "Overview", "value": "overview" },
56
+ { "label": "Activity", "value": "activity" },
57
+ { "label": "Projects", "value": "projects" },
58
+ { "label": "Documents", "value": "documents" },
59
+ { "label": "Settings", "value": "settings" }
60
+ ]
61
+ }
62
+ }
63
+ ]
64
+ }
65
+ ]
66
+ }
67
+ ]
68
+ },
69
+ {
70
+ "type": "layout-cell",
71
+ "props": {},
72
+ "style": { "padding": "24px", "backgroundColor": "#f5f5f5", "minHeight": "500px" },
73
+ "children": [
74
+ {
75
+ "type": "viewRenderer",
76
+ "props": {
77
+ "key": "profileContent",
78
+ "viewId": "data.profileViews[form.profileTab]",
79
+ "refreshKey": "form.profileTab",
80
+ "externalData": { "userId": "data.user.id" },
81
+ "heightMode": "auto",
82
+ "isolated": false
83
+ }
84
+ }
85
+ ]
86
+ }
87
+ ]
88
+ },
89
+ "dialogs": [],
90
+ "actions": [],
91
+ "timers": []
92
+ }
@@ -0,0 +1,203 @@
1
+ {
2
+ "description": "Comprehensive KPI showcase — metric, gauge, bullet, colorScale, rating, countdown, iconBox all in one view",
3
+ "components_used": ["layout", "layout-cell", "header", "label", "divider", "kpi-metric", "kpi-trend", "kpi-badge", "kpi-statusDot", "kpi-gauge", "kpi-bulletChart", "kpi-colorScale", "kpi-rating", "kpi-countdown", "kpi-iconBox"],
4
+ "root": {
5
+ "type": "layout",
6
+ "props": { "cols": 1, "rowGap": 24 },
7
+ "children": [
8
+ {
9
+ "type": "layout-cell",
10
+ "props": {},
11
+ "style": {},
12
+ "children": [
13
+ { "type": "header", "props": { "text": "Performance Metrics", "variant": "h5", "component": "h1", "color": "textPrimary" } },
14
+ { "type": "label", "props": { "text": "All KPI component types demonstrated", "variant": "body2", "color": "textSecondary" } }
15
+ ]
16
+ },
17
+ {
18
+ "type": "layout-cell",
19
+ "props": {},
20
+ "style": {},
21
+ "children": [
22
+ { "type": "header", "props": { "text": "Metrics & Trends", "variant": "h6", "color": "textSecondary" } }
23
+ ]
24
+ },
25
+ {
26
+ "type": "layout-cell",
27
+ "props": {},
28
+ "style": {},
29
+ "children": [
30
+ {
31
+ "type": "layout",
32
+ "props": { "cols": 4, "gap": 16 },
33
+ "children": [
34
+ {
35
+ "type": "layout-cell",
36
+ "props": {},
37
+ "style": { "backgroundColor": "#ffffff", "borderRadius": "12px", "boxShadow": "0 2px 8px rgba(0,0,0,0.08)", "padding": "20px" },
38
+ "children": [
39
+ { "type": "kpi-metric", "props": { "valueKey": "data.revenue", "label": "Monthly Revenue", "format": "currency", "currency": "USD", "decimals": 0, "fontSize": "28px", "fontWeight": "700", "align": "left", "labelPosition": "above", "labelColor": "text.secondary", "labelFontSize": "12px" } },
40
+ { "type": "kpi-trend", "props": { "valueKey": "data.revenueGrowth", "label": "vs last month", "isPercent": true, "decimals": 1, "variant": "chip", "size": "small", "showIcon": true } }
41
+ ]
42
+ },
43
+ {
44
+ "type": "layout-cell",
45
+ "props": {},
46
+ "style": { "backgroundColor": "#ffffff", "borderRadius": "12px", "boxShadow": "0 2px 8px rgba(0,0,0,0.08)", "padding": "20px" },
47
+ "children": [
48
+ {
49
+ "type": "layout",
50
+ "props": { "cols": 1, "rowGap": 8 },
51
+ "children": [
52
+ { "type": "layout-cell", "props": {}, "style": { "justifyContent": "space-between", "alignItems": "flex-start" }, "children": [
53
+ { "type": "kpi-metric", "props": { "valueKey": "data.nps", "label": "NPS Score", "format": "number", "decimals": 0, "fontSize": "28px", "fontWeight": "700", "align": "left", "labelPosition": "above", "labelColor": "text.secondary", "labelFontSize": "12px" } },
54
+ { "type": "kpi-badge", "props": { "valueKey": "data.npsLevel", "variant": "soft", "size": "small", "thresholds": [{ "operator": ">=", "value": 70, "color": "success.main", "label": "Excellent" }, { "operator": ">=", "value": 50, "color": "info.main", "label": "Good" }, { "operator": "<", "value": 50, "color": "error.main", "label": "Poor" }] } }
55
+ ]},
56
+ { "type": "layout-cell", "props": {}, "style": {}, "children": [
57
+ { "type": "kpi-trend", "props": { "valueKey": "data.npsDelta", "label": "pts vs quarter", "isPercent": false, "decimals": 0, "variant": "text", "size": "small", "showIcon": true } }
58
+ ]}
59
+ ]
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "type": "layout-cell",
65
+ "props": {},
66
+ "style": { "backgroundColor": "#ffffff", "borderRadius": "12px", "boxShadow": "0 2px 8px rgba(0,0,0,0.08)", "padding": "20px" },
67
+ "children": [
68
+ {
69
+ "type": "layout",
70
+ "props": { "cols": 1, "rowGap": 8 },
71
+ "children": [
72
+ { "type": "layout-cell", "props": {}, "style": { "justifyContent": "space-between" }, "children": [
73
+ { "type": "label", "props": { "text": "System Status", "variant": "overline", "color": "textSecondary" } },
74
+ { "type": "kpi-statusDot", "props": { "valueKey": "data.systemStatus", "size": "10", "pulse": true, "showLabel": true, "labelPosition": "right", "thresholds": [{ "operator": "==", "value": "operational", "color": "success.main", "label": "Operational" }, { "operator": "==", "value": "degraded", "color": "warning.main", "label": "Degraded" }, { "operator": "==", "value": "down", "color": "error.main", "label": "Down" }] } }
75
+ ]},
76
+ { "type": "layout-cell", "props": {}, "style": {}, "children": [
77
+ { "type": "kpi-metric", "props": { "valueKey": "data.uptime", "label": "Uptime", "format": "percent", "decimals": 3, "fontSize": "28px", "fontWeight": "700", "align": "left", "labelPosition": "above", "labelColor": "text.secondary", "labelFontSize": "12px", "color": "success.main" } }
78
+ ]}
79
+ ]
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "type": "layout-cell",
85
+ "props": {},
86
+ "style": { "backgroundColor": "#ffffff", "borderRadius": "12px", "boxShadow": "0 2px 8px rgba(0,0,0,0.08)", "padding": "20px" },
87
+ "children": [
88
+ { "type": "kpi-iconBox", "props": { "valueKey": "data.newSignups", "label": "New Signups", "icon": "PersonAddOutlined", "iconSize": "32px", "format": "number", "fontSize": "28px", "fontWeight": "700", "align": "left", "labelPosition": "above", "labelColor": "text.secondary", "labelFontSize": "12px", "thresholds": [{ "operator": ">=", "value": 100, "color": "success.main" }, { "operator": ">=", "value": 50, "color": "info.main" }, { "operator": "<", "value": 50, "color": "warning.main" }] } }
89
+ ]
90
+ }
91
+ ]
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ "type": "layout-cell",
97
+ "props": {},
98
+ "style": {},
99
+ "children": [
100
+ { "type": "divider", "props": { "orientation": "horizontal" } }
101
+ ]
102
+ },
103
+ {
104
+ "type": "layout-cell",
105
+ "props": {},
106
+ "style": {},
107
+ "children": [
108
+ { "type": "header", "props": { "text": "Gauges & Charts", "variant": "h6", "color": "textSecondary" } }
109
+ ]
110
+ },
111
+ {
112
+ "type": "layout-cell",
113
+ "props": {},
114
+ "style": {},
115
+ "children": [
116
+ {
117
+ "type": "layout",
118
+ "props": { "cols": 3, "gap": 16 },
119
+ "children": [
120
+ {
121
+ "type": "layout-cell",
122
+ "props": {},
123
+ "style": { "backgroundColor": "#ffffff", "borderRadius": "12px", "boxShadow": "0 2px 8px rgba(0,0,0,0.08)", "padding": "24px", "alignItems": "center" },
124
+ "children": [
125
+ { "type": "header", "props": { "text": "Customer Satisfaction", "variant": "subtitle1", "color": "textPrimary", "align": "center" } },
126
+ { "type": "kpi-gauge", "props": { "valueKey": "data.csatScore", "min": 0, "max": 5, "size": 200, "thickness": 16, "label": "out of 5", "format": "number", "decimals": 1, "showNeedle": true, "colors": [{ "from": 0, "to": 2, "color": "#f44336" }, { "from": 2, "to": 3.5, "color": "#ff9800" }, { "from": 3.5, "to": 5, "color": "#4caf50" }] } }
127
+ ]
128
+ },
129
+ {
130
+ "type": "layout-cell",
131
+ "props": {},
132
+ "style": { "backgroundColor": "#ffffff", "borderRadius": "12px", "boxShadow": "0 2px 8px rgba(0,0,0,0.08)", "padding": "24px" },
133
+ "children": [
134
+ { "type": "header", "props": { "text": "Sales vs Target", "variant": "subtitle1", "color": "textPrimary" } },
135
+ { "type": "kpi-bulletChart", "props": { "valueKey": "data.salesActual", "targetKey": "data.salesTarget", "min": 0, "maxKey": "data.salesMax", "label": "Q4 Sales", "format": "currency", "currency": "USD", "height": "40px", "showTarget": true, "showValue": true, "color": "primary.main", "targetColor": "error.main", "backgroundColor": "#f5f5f5" } }
136
+ ]
137
+ },
138
+ {
139
+ "type": "layout-cell",
140
+ "props": {},
141
+ "style": { "backgroundColor": "#ffffff", "borderRadius": "12px", "boxShadow": "0 2px 8px rgba(0,0,0,0.08)", "padding": "24px" },
142
+ "children": [
143
+ { "type": "header", "props": { "text": "Response Time", "variant": "subtitle1", "color": "textPrimary" } },
144
+ { "type": "kpi-colorScale", "props": { "valueKey": "data.responseTime", "label": "ms", "min": 0, "max": 2000, "steps": 5, "format": "number", "decimals": 0, "showValue": true, "thresholds": [{ "operator": "<=", "value": 400, "color": "success.main", "label": "Fast" }, { "operator": "<=", "value": 800, "color": "info.main", "label": "OK" }, { "operator": "<=", "value": 1200, "color": "warning.main", "label": "Slow" }, { "operator": ">", "value": 1200, "color": "error.main", "label": "Critical" }] } }
145
+ ]
146
+ }
147
+ ]
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ "type": "layout-cell",
153
+ "props": {},
154
+ "style": {},
155
+ "children": [
156
+ { "type": "divider", "props": { "orientation": "horizontal" } }
157
+ ]
158
+ },
159
+ {
160
+ "type": "layout-cell",
161
+ "props": {},
162
+ "style": {},
163
+ "children": [
164
+ { "type": "header", "props": { "text": "Rating & Countdown", "variant": "h6", "color": "textSecondary" } }
165
+ ]
166
+ },
167
+ {
168
+ "type": "layout-cell",
169
+ "props": {},
170
+ "style": {},
171
+ "children": [
172
+ {
173
+ "type": "layout",
174
+ "props": { "cols": 2, "gap": 16 },
175
+ "children": [
176
+ {
177
+ "type": "layout-cell",
178
+ "props": {},
179
+ "style": { "backgroundColor": "#ffffff", "borderRadius": "12px", "boxShadow": "0 2px 8px rgba(0,0,0,0.08)", "padding": "24px" },
180
+ "children": [
181
+ { "type": "label", "props": { "text": "Product Rating", "variant": "overline", "color": "textSecondary" } },
182
+ { "type": "kpi-rating", "props": { "valueKey": "data.productRating", "maxRating": 5, "precision": 0.5, "size": "large", "showValue": true, "readOnly": true, "label": "data.reviewCount + ' reviews'", "labelPosition": "right" } }
183
+ ]
184
+ },
185
+ {
186
+ "type": "layout-cell",
187
+ "props": {},
188
+ "style": { "backgroundColor": "#ffffff", "borderRadius": "12px", "boxShadow": "0 2px 8px rgba(0,0,0,0.08)", "padding": "24px" },
189
+ "children": [
190
+ { "type": "label", "props": { "text": "Sale Ends In", "variant": "overline", "color": "textSecondary" } },
191
+ { "type": "kpi-countdown", "props": { "targetDateKey": "data.saleEndDate", "showDays": true, "showHours": true, "showMinutes": true, "showSeconds": true, "size": "large", "color": "error.main", "separatorColor": "text.secondary", "expiredLabel": "Sale has ended!" } }
192
+ ]
193
+ }
194
+ ]
195
+ }
196
+ ]
197
+ }
198
+ ]
199
+ },
200
+ "dialogs": [],
201
+ "actions": [],
202
+ "timers": []
203
+ }
@@ -0,0 +1,139 @@
1
+ {
2
+ "description": "Two-panel layout: treeView for hierarchy navigation on left, embedded viewRenderer for detail on right",
3
+ "components_used": ["layout", "layout-cell", "header", "label", "input", "treeView", "viewRenderer", "divider"],
4
+ "root": {
5
+ "type": "layout",
6
+ "props": { "cols": 1, "rowGap": 0 },
7
+ "children": [
8
+ {
9
+ "type": "layout-cell",
10
+ "props": {},
11
+ "style": { "padding": "0 0 16px 0" },
12
+ "children": [
13
+ { "type": "header", "props": { "text": "Department Browser", "variant": "h5", "component": "h1", "color": "textPrimary" } }
14
+ ]
15
+ },
16
+ {
17
+ "type": "layout-cell",
18
+ "props": {},
19
+ "style": {},
20
+ "children": [
21
+ {
22
+ "type": "layout",
23
+ "props": { "cols": 3, "gap": 0 },
24
+ "children": [
25
+ {
26
+ "type": "layout-cell",
27
+ "props": {},
28
+ "style": { "backgroundColor": "#ffffff", "borderRadius": "12px 0 0 12px", "boxShadow": "0 2px 8px rgba(0,0,0,0.08)", "borderRight": "1px solid #e8e8e8", "padding": "0", "overflow": "hidden" },
29
+ "children": [
30
+ {
31
+ "type": "layout",
32
+ "props": { "cols": 1, "rowGap": 0 },
33
+ "children": [
34
+ {
35
+ "type": "layout-cell",
36
+ "props": {},
37
+ "style": { "padding": "16px", "backgroundColor": "#fafafa", "borderBottom": "1px solid #e8e8e8" },
38
+ "children": [
39
+ { "type": "label", "props": { "text": "Organization", "variant": "overline", "color": "textSecondary" } },
40
+ { "type": "input", "props": { "key": "treeSearch", "label": "", "placeholder": "Search departments...", "prefix": "SearchOutlined", "size": "small" }, "style": { "width": "100%", "marginTop": "8px" } }
41
+ ]
42
+ },
43
+ {
44
+ "type": "layout-cell",
45
+ "props": {},
46
+ "style": { "padding": "8px" },
47
+ "children": [
48
+ {
49
+ "type": "treeView",
50
+ "props": {
51
+ "dataKey": "data.orgTree",
52
+ "idField": "id",
53
+ "labelField": "name",
54
+ "childrenField": "children",
55
+ "selectedKey": "data.selectedDeptId",
56
+ "selectable": true,
57
+ "multiSelect": false,
58
+ "iconField": "icon",
59
+ "defaultIcon": "FolderOutlined",
60
+ "leafIcon": "GroupOutlined",
61
+ "expandAll": false,
62
+ "showSearch": false,
63
+ "dense": false,
64
+ "showLines": true,
65
+ "showCount": true,
66
+ "height": "600px",
67
+ "fontSize": "14px",
68
+ "selectedBg": "#e3f2fd",
69
+ "selectedColor": "#1976d2",
70
+ "hoverBg": "#f5f5f5"
71
+ },
72
+ "actions": {
73
+ "onSelectCode": "setData({ selectedDeptId: selectedNode.id, selectedDeptName: selectedNode.name })"
74
+ }
75
+ }
76
+ ]
77
+ }
78
+ ]
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ "type": "layout-cell",
84
+ "props": { "colSpan": 2 },
85
+ "style": { "backgroundColor": "#f8f9fa", "borderRadius": "0 12px 12px 0", "boxShadow": "0 2px 8px rgba(0,0,0,0.08)", "padding": "24px" },
86
+ "children": [
87
+ {
88
+ "type": "layout",
89
+ "props": { "cols": 1, "rowGap": 16 },
90
+ "children": [
91
+ {
92
+ "type": "layout-cell",
93
+ "props": {},
94
+ "style": {},
95
+ "children": [
96
+ { "type": "label", "props": { "text": "data.selectedDeptName || 'Select a department to view details'", "variant": "h6", "color": "textPrimary" } }
97
+ ]
98
+ },
99
+ {
100
+ "type": "layout-cell",
101
+ "props": {},
102
+ "style": {},
103
+ "children": [
104
+ { "type": "divider", "props": { "orientation": "horizontal" } }
105
+ ]
106
+ },
107
+ {
108
+ "type": "layout-cell",
109
+ "props": {},
110
+ "style": { "minHeight": "500px" },
111
+ "children": [
112
+ {
113
+ "type": "viewRenderer",
114
+ "props": {
115
+ "key": "deptDetail",
116
+ "viewId": "department-detail-view",
117
+ "refreshKey": "data.selectedDeptId",
118
+ "externalData": { "departmentId": "data.selectedDeptId" },
119
+ "heightMode": "auto",
120
+ "isolated": false,
121
+ "showBorder": false
122
+ }
123
+ }
124
+ ]
125
+ }
126
+ ]
127
+ }
128
+ ]
129
+ }
130
+ ]
131
+ }
132
+ ]
133
+ }
134
+ ]
135
+ },
136
+ "dialogs": [],
137
+ "actions": [],
138
+ "timers": []
139
+ }