@origostudio/origo-design 0.0.43 → 0.0.44

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 (44) hide show
  1. package/CHANGELOG.md +2 -8
  2. package/dist/packages/angular-renderer/CHANGELOG.md +4 -0
  3. package/dist/packages/angular-renderer/package.json +3 -3
  4. package/dist/packages/cli/CHANGELOG.md +4 -0
  5. package/dist/packages/cli/package.json +2 -2
  6. package/dist/packages/cli/package.json.bak +2 -2
  7. package/dist/packages/core/CHANGELOG.md +4 -0
  8. package/dist/packages/core/package.json +1 -1
  9. package/dist/packages/core/package.json.bak +1 -1
  10. package/dist/packages/design-tokens/CHANGELOG.md +4 -0
  11. package/dist/packages/design-tokens/package.json +1 -1
  12. package/dist/packages/playground/browser/{chunk-D3a-c-48.js → chunk-BcBYX837.js} +1 -1
  13. package/dist/packages/playground/browser/{chunk-BflWfxHL.js → chunk-BfIxRyPQ.js} +1 -1
  14. package/dist/packages/playground/browser/{chunk-FpiT-MvE.js → chunk-BqfAumJ-.js} +1 -1
  15. package/dist/packages/playground/browser/{chunk-ChQ3KyaI.js → chunk-Brp3g7bK.js} +1 -1
  16. package/dist/packages/playground/browser/{chunk-BRtCVoBW.js → chunk-BtVNMDJq.js} +1 -1
  17. package/dist/packages/playground/browser/{chunk-v_NaWRhC.js → chunk-C1ijo43w.js} +1 -1
  18. package/dist/packages/playground/browser/{chunk-CqGhdgWw.js → chunk-C6iPMtzJ.js} +1 -1
  19. package/dist/packages/playground/browser/{chunk-BNL425hH.js → chunk-CGAcVhTp.js} +1 -1
  20. package/dist/packages/playground/browser/{chunk-8G46hUs9.js → chunk-CLB0SPwG.js} +1 -1
  21. package/dist/packages/playground/browser/{chunk-CnFwgVi9.js → chunk-DIvlPnvJ.js} +1 -1
  22. package/dist/packages/playground/browser/{chunk-V2lEBrfj.js → chunk-DMbwtBDd.js} +1 -1
  23. package/dist/packages/playground/browser/{chunk-BGO-Q9tz.js → chunk-DMpPs9rA.js} +1 -1
  24. package/dist/packages/playground/browser/{chunk-DCJDf_Bz.js → chunk-DXXddjUH.js} +1 -1
  25. package/dist/packages/playground/browser/{chunk-BCmR5x34.js → chunk-DuZs2s4F.js} +1 -1
  26. package/dist/packages/playground/browser/{chunk-Fnc2ko4R.js → chunk-fFOvmhYq.js} +1 -1
  27. package/dist/packages/playground/browser/index.html +1 -1
  28. package/dist/packages/playground/browser/{main-IKCKBGZU.js → main-7B3SBKCW.js} +3 -3
  29. package/package.json +1 -1
  30. package/packages/angular-renderer/CHANGELOG.md +4 -0
  31. package/packages/angular-renderer/package.json +3 -3
  32. package/packages/cli/CHANGELOG.md +4 -0
  33. package/packages/cli/package.json +2 -2
  34. package/packages/core/CHANGELOG.md +4 -0
  35. package/packages/core/package.json +1 -1
  36. package/packages/design-tokens/CHANGELOG.md +4 -0
  37. package/packages/design-tokens/package.json +1 -1
  38. package/packages/devtools/CHANGELOG.md +4 -0
  39. package/packages/devtools/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  40. package/packages/devtools/package.json +3 -3
  41. package/packages/playground/CHANGELOG.md +10 -0
  42. package/packages/playground/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  43. package/packages/playground/package.json +3 -3
  44. package/packages/playground/src/preview/preview-root.component.ts +159 -113
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@origostudio/origo-design",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,3 +1,7 @@
1
+ ## 0.0.44 (2026-10-01)
2
+
3
+ This was a version bump only for angular-renderer to align it with other projects, there were no code changes.
4
+
1
5
  ## 0.0.43 (2026-10-01)
2
6
 
3
7
  This was a version bump only for angular-renderer to align it with other projects, there were no code changes.
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@origostudio/angular-renderer",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "dependencies": {
9
- "@origostudio/core": "0.0.43",
10
- "@origostudio/design-tokens": "0.0.43",
9
+ "@origostudio/core": "0.0.44",
10
+ "@origostudio/design-tokens": "0.0.44",
11
11
  "tslib": "^2.3.0",
12
12
  "@analogjs/vite-plugin-angular": "^2.7.1",
13
13
  "zone.js": "^0.16.3",
@@ -1,3 +1,7 @@
1
+ ## 0.0.44 (2026-10-01)
2
+
3
+ This was a version bump only for cli to align it with other projects, there were no code changes.
4
+
1
5
  ## 0.0.43 (2026-10-01)
2
6
 
3
7
  This was a version bump only for cli to align it with other projects, there were no code changes.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@origostudio/cli",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -9,7 +9,7 @@
9
9
  "origo": "./src/main.js"
10
10
  },
11
11
  "dependencies": {
12
- "@origostudio/core": "0.0.43",
12
+ "@origostudio/core": "0.0.44",
13
13
  "commander": "^15.0.0",
14
14
  "tslib": "^2.3.0"
15
15
  },
@@ -1,3 +1,7 @@
1
+ ## 0.0.44 (2026-10-01)
2
+
3
+ This was a version bump only for core to align it with other projects, there were no code changes.
4
+
1
5
  ## 0.0.43 (2026-10-01)
2
6
 
3
7
  This was a version bump only for core to align it with other projects, there were no code changes.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@origostudio/core",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -1,3 +1,7 @@
1
+ ## 0.0.44 (2026-10-01)
2
+
3
+ This was a version bump only for design-tokens to align it with other projects, there were no code changes.
4
+
1
5
  ## 0.0.43 (2026-10-01)
2
6
 
3
7
  This was a version bump only for design-tokens to align it with other projects, there were no code changes.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@origostudio/design-tokens",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -1,3 +1,7 @@
1
+ ## 0.0.44 (2026-10-01)
2
+
3
+ This was a version bump only for devtools to align it with other projects, there were no code changes.
4
+
1
5
  ## 0.0.43 (2026-10-01)
2
6
 
3
7
  This was a version bump only for devtools to align it with other projects, there were no code changes.
@@ -1 +1 @@
1
- {"version":"4.1.11","results":[[":src/devtools-panel/app.component.spec.ts",{"duration":133.485146,"failed":false}]]}
1
+ {"version":"4.1.11","results":[[":src/devtools-panel/app.component.spec.ts",{"duration":190.31851300000017,"failed":false}]]}
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@origostudio/devtools",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "@origostudio/core": "0.0.43",
7
- "@origostudio/cli": "0.0.43",
6
+ "@origostudio/core": "0.0.44",
7
+ "@origostudio/cli": "0.0.44",
8
8
  "@angular/core": "18.1.0",
9
9
  "@angular/common": "18.1.0"
10
10
  },
@@ -1,3 +1,13 @@
1
+ ## 0.0.44 (2026-10-01)
2
+
3
+ ### 🚀 Features
4
+
5
+ - implement entity and capability UI rendering in playground preview component ([9e59133](https://github.com/OrigoStudio/origo-design/commit/9e59133))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Hardik Patel @hardikpatelse
10
+
1
11
  ## 0.0.43 (2026-10-01)
2
12
 
3
13
  ### 🚀 Features
@@ -1 +1 @@
1
- {"version":"4.1.11","results":[[":src/editor/badl-editor.component.spec.ts",{"duration":194.14437999999973,"failed":false}],[":src/workers/compiler.worker.spec.ts",{"duration":2902.380119999998,"failed":false}],[":src/editor/schema-registry.spec.ts",{"duration":23.273370999999315,"failed":false}],[":src/preview/preview.service.spec.ts",{"duration":45.411018999999214,"failed":false}],[":src/preview/preview-pane.component.spec.ts",{"duration":123.2485319999978,"failed":false}],[":src/preview/preview-root.component.spec.ts",{"duration":152.94718800000192,"failed":false}],[":src/app/app.component.spec.ts",{"duration":127.33730999999898,"failed":false}]]}
1
+ {"version":"4.1.11","results":[[":src/editor/badl-editor.component.spec.ts",{"duration":299.92509900000005,"failed":false}],[":src/preview/preview-root.component.spec.ts",{"duration":288.6053329999995,"failed":false}],[":src/workers/compiler.worker.spec.ts",{"duration":3688.9976620000016,"failed":false}],[":src/editor/schema-registry.spec.ts",{"duration":15.681587000002764,"failed":false}],[":src/preview/preview.service.spec.ts",{"duration":67.7354149999992,"failed":false}],[":src/preview/preview-pane.component.spec.ts",{"duration":182.63448599999901,"failed":false}],[":src/app/app.component.spec.ts",{"duration":209.62279099999796,"failed":false}]]}
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@origostudio/playground",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "private": true,
5
5
  "dependencies": {
6
- "@origostudio/core": "0.0.43",
7
- "@origostudio/cli": "0.0.43"
6
+ "@origostudio/core": "0.0.44",
7
+ "@origostudio/cli": "0.0.44"
8
8
  },
9
9
  "peerDependencies": {
10
10
  "@angular/common": "^18.0.0",
@@ -28,13 +28,169 @@ export class PreviewRootComponent {
28
28
 
29
29
  const domain = data.domains[0];
30
30
  const entities = domain.entities || [];
31
- const fields = entities[0]?.fields || [];
31
+ const capabilities = domain.capabilities || [];
32
32
 
33
33
  const activeOutcome =
34
34
  (this.experience.getState('main-sidebar', 'activeOutcome') as string) || 'home';
35
35
  const activeTab = (this.experience.getState('tabs', 'activeTab') as string) || 'overview';
36
36
 
37
- // Create a showcase UI AST that uses Epic 9 primitives to visualize the BADL Domain
37
+ let contentChildren: ASTNode[] = [];
38
+
39
+ if (activeOutcome === 'entities') {
40
+ contentChildren = entities.length
41
+ ? [
42
+ {
43
+ id: 'entity-grid',
44
+ type: 'DataGrid',
45
+ props: {
46
+ 'aria-label': 'Entities Grid',
47
+ columns: [
48
+ { key: 'name', label: 'Entity Name' },
49
+ { key: 'fieldCount', label: 'Fields' },
50
+ ],
51
+ rows: entities.map(e => ({
52
+ name: e?.name ?? '-',
53
+ fieldCount: e?.fields?.length ?? 0,
54
+ })),
55
+ },
56
+ },
57
+ ]
58
+ : [
59
+ {
60
+ id: 'entities-card',
61
+ type: 'Card',
62
+ props: {
63
+ title: 'No Entities',
64
+ subtitle: 'No entities are defined for this domain.',
65
+ },
66
+ },
67
+ ];
68
+ } else if (activeOutcome === 'capabilities') {
69
+ contentChildren = capabilities.length
70
+ ? [
71
+ {
72
+ id: 'capabilities-list',
73
+ type: 'DataGrid',
74
+ props: {
75
+ 'aria-label': 'Capabilities',
76
+ columns: [{ key: 'name', label: 'Capability Name' }],
77
+ rows: capabilities.map(c => ({ name: c?.name || '-' })),
78
+ },
79
+ },
80
+ ]
81
+ : [
82
+ {
83
+ id: 'capabilities-card',
84
+ type: 'Card',
85
+ props: {
86
+ title: 'No Capabilities',
87
+ subtitle: 'No capabilities are defined for this domain.',
88
+ },
89
+ },
90
+ ];
91
+ } else {
92
+ contentChildren = [
93
+ {
94
+ id: 'entity-card',
95
+ type: 'Card',
96
+ props: {
97
+ title: 'Domain Configuration',
98
+ subtitle: 'Manage core settings for this domain',
99
+ },
100
+ },
101
+ {
102
+ id: 'form-vbox',
103
+ type: 'vbox',
104
+ props: { gap: '15px' },
105
+ children: [
106
+ {
107
+ id: 'form-hbox',
108
+ type: 'HBox',
109
+ props: { gap: '15px' },
110
+ children: [
111
+ {
112
+ id: 'ff-status',
113
+ type: 'FormField',
114
+ props: { label: 'Status' },
115
+ children: [{ id: 'switch-status', type: 'Switch', props: { checked: true } }],
116
+ },
117
+ {
118
+ id: 'ff-version',
119
+ type: 'FormField',
120
+ props: { label: 'Version' },
121
+ children: [
122
+ {
123
+ id: 'chip-version',
124
+ type: 'Chip',
125
+ props: { text: domain.version || '1.0' },
126
+ },
127
+ ],
128
+ },
129
+ ],
130
+ },
131
+ {
132
+ id: 'ff-desc',
133
+ type: 'FormField',
134
+ props: { label: 'Description' },
135
+ children: [
136
+ {
137
+ id: 'textarea-desc',
138
+ type: 'Textarea',
139
+ props: { placeholder: 'Enter description' },
140
+ },
141
+ ],
142
+ },
143
+ {
144
+ id: 'ff-type',
145
+ type: 'FormField',
146
+ props: { label: 'Type' },
147
+ children: [
148
+ {
149
+ id: 'select-type',
150
+ type: 'Select',
151
+ props: {
152
+ options: [
153
+ { value: 'core', label: 'Core' },
154
+ { value: 'plugin', label: 'Plugin' },
155
+ ],
156
+ },
157
+ },
158
+ ],
159
+ },
160
+ {
161
+ id: 'ff-radio',
162
+ type: 'FormField',
163
+ props: { label: 'Environment' },
164
+ children: [
165
+ {
166
+ id: 'radio-env',
167
+ type: 'RadioGroup',
168
+ props: {
169
+ options: [
170
+ { value: 'dev', label: 'Development' },
171
+ { value: 'prod', label: 'Production' },
172
+ ],
173
+ },
174
+ },
175
+ ],
176
+ },
177
+ {
178
+ id: 'ff-check',
179
+ type: 'FormField',
180
+ props: { label: 'Enable Validation' },
181
+ children: [
182
+ {
183
+ id: 'check-val',
184
+ type: 'Checkbox',
185
+ props: { checked: true, label: 'Strict mode' },
186
+ },
187
+ ],
188
+ },
189
+ ],
190
+ },
191
+ ];
192
+ }
193
+
38
194
  return {
39
195
  id: 'root-hbox',
40
196
  type: 'HBox',
@@ -79,117 +235,7 @@ export class PreviewRootComponent {
79
235
  ],
80
236
  },
81
237
  },
82
- {
83
- id: 'entity-grid',
84
- type: 'DataGrid',
85
- props: {
86
- 'aria-label': 'Entities Grid',
87
- columns: [
88
- { key: 'name', label: 'Name' },
89
- { key: 'type', label: 'Type' },
90
- { key: 'label', label: 'Label' },
91
- ],
92
- rows: fields.map(f => ({ name: f.name, type: f.type, label: f.label || '-' })),
93
- },
94
- },
95
- {
96
- id: 'entity-card',
97
- type: 'Card',
98
- props: {
99
- title: 'Domain Configuration',
100
- subtitle: 'Manage core settings for this domain',
101
- },
102
- },
103
- {
104
- id: 'form-vbox',
105
- type: 'vbox',
106
- props: { gap: '15px' },
107
- children: [
108
- {
109
- id: 'form-hbox',
110
- type: 'HBox',
111
- props: { gap: '15px' },
112
- children: [
113
- {
114
- id: 'ff-status',
115
- type: 'FormField',
116
- props: { label: 'Status' },
117
- children: [{ id: 'switch-status', type: 'Switch', props: { checked: true } }],
118
- },
119
- {
120
- id: 'ff-version',
121
- type: 'FormField',
122
- props: { label: 'Version' },
123
- children: [
124
- {
125
- id: 'chip-version',
126
- type: 'Chip',
127
- props: { text: domain.version || '1.0' },
128
- },
129
- ],
130
- },
131
- ],
132
- },
133
- {
134
- id: 'ff-desc',
135
- type: 'FormField',
136
- props: { label: 'Description' },
137
- children: [
138
- {
139
- id: 'textarea-desc',
140
- type: 'Textarea',
141
- props: { placeholder: 'Enter description' },
142
- },
143
- ],
144
- },
145
- {
146
- id: 'ff-type',
147
- type: 'FormField',
148
- props: { label: 'Type' },
149
- children: [
150
- {
151
- id: 'select-type',
152
- type: 'Select',
153
- props: {
154
- options: [
155
- { value: 'core', label: 'Core' },
156
- { value: 'plugin', label: 'Plugin' },
157
- ],
158
- },
159
- },
160
- ],
161
- },
162
- {
163
- id: 'ff-radio',
164
- type: 'FormField',
165
- props: { label: 'Environment' },
166
- children: [
167
- {
168
- id: 'radio-env',
169
- type: 'RadioGroup',
170
- props: {
171
- options: [
172
- { value: 'dev', label: 'Development' },
173
- { value: 'prod', label: 'Production' },
174
- ],
175
- },
176
- },
177
- ],
178
- },
179
- {
180
- id: 'ff-check',
181
- type: 'FormField',
182
- props: { label: 'Enable Validation' },
183
- children: [
184
- {
185
- id: 'check-val',
186
- type: 'Checkbox',
187
- props: { checked: true, label: 'Strict mode' },
188
- },
189
- ],
190
- },
191
- ],
192
- },
238
+ ...contentChildren,
193
239
  ],
194
240
  },
195
241
  ],