@origostudio/origo-design 0.0.0 → 0.0.25
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/CHANGELOG.md +10 -0
- package/dist/packages/angular-renderer/CHANGELOG.md +292 -0
- package/dist/packages/angular-renderer/README.md +11 -0
- package/dist/packages/angular-renderer/package.json +24 -0
- package/dist/packages/angular-renderer/src/adapters/web/adapter.d.ts +20 -0
- package/dist/packages/angular-renderer/src/adapters/web/adapter.js +140 -0
- package/dist/packages/angular-renderer/src/adapters/web/adapter.js.map +1 -0
- package/dist/packages/angular-renderer/src/adapters/web/experience-adapter.service.d.ts +4 -0
- package/dist/packages/angular-renderer/src/adapters/web/experience-adapter.service.js +33 -0
- package/dist/packages/angular-renderer/src/adapters/web/experience-adapter.service.js.map +1 -0
- package/dist/packages/angular-renderer/src/components/primitives/button/button.component.d.ts +26 -0
- package/dist/packages/angular-renderer/src/components/primitives/button/button.component.js +63 -0
- package/dist/packages/angular-renderer/src/components/primitives/button/button.component.js.map +1 -0
- package/dist/packages/angular-renderer/src/components/primitives/text-input/text-input.component.d.ts +30 -0
- package/dist/packages/angular-renderer/src/components/primitives/text-input/text-input.component.js +72 -0
- package/dist/packages/angular-renderer/src/components/primitives/text-input/text-input.component.js.map +1 -0
- package/dist/packages/angular-renderer/src/components/primitives/vbox/vbox.component.d.ts +21 -0
- package/dist/packages/angular-renderer/src/components/primitives/vbox/vbox.component.js +76 -0
- package/dist/packages/angular-renderer/src/components/primitives/vbox/vbox.component.js.map +1 -0
- package/dist/packages/angular-renderer/src/index.d.ts +7 -0
- package/dist/packages/angular-renderer/src/index.js +11 -0
- package/dist/packages/angular-renderer/src/index.js.map +1 -0
- package/dist/packages/angular-renderer/src/lib/renderer.component.d.ts +12 -0
- package/dist/packages/angular-renderer/src/lib/renderer.component.js +114 -0
- package/dist/packages/angular-renderer/src/lib/renderer.component.js.map +1 -0
- package/dist/packages/angular-renderer/src/lib/renderer.tokens.d.ts +2 -0
- package/dist/packages/angular-renderer/src/lib/renderer.tokens.js +9 -0
- package/dist/packages/angular-renderer/src/lib/renderer.tokens.js.map +1 -0
- package/dist/packages/angular-renderer/src/lib/theme.provider.d.ts +13 -0
- package/dist/packages/angular-renderer/src/lib/theme.provider.js +77 -0
- package/dist/packages/angular-renderer/src/lib/theme.provider.js.map +1 -0
- package/dist/packages/cli/CHANGELOG.md +24 -0
- package/dist/packages/cli/package.json +8 -4
- package/dist/packages/cli/package.json.bak +8 -4
- package/dist/packages/core/CHANGELOG.md +18 -0
- package/dist/packages/core/package.json +5 -1
- package/dist/packages/core/package.json.bak +5 -1
- package/dist/packages/design-tokens/CHANGELOG.md +291 -0
- package/dist/packages/design-tokens/README.md +11 -0
- package/dist/packages/design-tokens/package.json +29 -0
- package/dist/packages/design-tokens/src/build.d.ts +2 -0
- package/dist/packages/design-tokens/src/build.js +89 -0
- package/dist/packages/design-tokens/src/build.js.map +1 -0
- package/dist/packages/design-tokens/src/compile.d.ts +1 -0
- package/dist/packages/design-tokens/src/compile.js +51 -0
- package/dist/packages/design-tokens/src/compile.js.map +1 -0
- package/dist/packages/design-tokens/src/index.d.ts +6 -0
- package/dist/packages/design-tokens/src/index.js +14 -0
- package/dist/packages/design-tokens/src/index.js.map +1 -0
- package/dist/packages/design-tokens/src/runtime/index.d.ts +2 -0
- package/dist/packages/design-tokens/src/runtime/index.js +6 -0
- package/dist/packages/design-tokens/src/runtime/index.js.map +1 -0
- package/dist/packages/design-tokens/src/runtime/theme-fetcher.d.ts +19 -0
- package/dist/packages/design-tokens/src/runtime/theme-fetcher.js +87 -0
- package/dist/packages/design-tokens/src/runtime/theme-fetcher.js.map +1 -0
- package/dist/packages/design-tokens/src/runtime/theme-injector.d.ts +11 -0
- package/dist/packages/design-tokens/src/runtime/theme-injector.js +131 -0
- package/dist/packages/design-tokens/src/runtime/theme-injector.js.map +1 -0
- package/dist/packages/design-tokens/src/schemas/base-tokens.schema.json +127 -0
- package/dist/packages/design-tokens/src/schemas/semantic-tokens.schema.json +52 -0
- package/dist/packages/design-tokens/src/tokens/base.json +46 -0
- package/dist/packages/design-tokens/src/tokens/semantic.json +33 -0
- package/dist/packages/design-tokens/tokens.css +1 -0
- package/dist/packages/design-tokens/tokens.d.ts +2 -0
- package/dist/packages/design-tokens/tokens.js +15 -0
- package/dist/packages/design-tokens/tokens.json +15 -0
- package/dist/packages/playground/browser/chunk--ZIwbUVH.js +2 -0
- package/dist/packages/playground/browser/chunk-0Jq1XgT-.js +1 -0
- package/dist/packages/playground/browser/chunk-1uGHBWUl.js +2 -0
- package/dist/packages/playground/browser/chunk-1vJMDD28.js +1 -0
- package/dist/packages/playground/browser/chunk-2TRTBDNJ.css +1 -0
- package/dist/packages/playground/browser/chunk-2ZxrbTaV.js +2 -0
- package/dist/packages/playground/browser/chunk-5S3Ucu1S.js +1 -0
- package/dist/packages/playground/browser/chunk-5xxumr1i.js +1 -0
- package/dist/packages/playground/browser/chunk-BBrBwFOI.js +2 -0
- package/dist/packages/playground/browser/chunk-BEZqMFun.js +1 -0
- package/dist/packages/playground/browser/chunk-BFTF7KVs.js +2 -0
- package/dist/packages/playground/browser/chunk-BFpktVlP.js +2 -0
- package/dist/packages/playground/browser/chunk-BGi1R-SY.js +2 -0
- package/dist/packages/playground/browser/chunk-BIdEsw7t.js +1 -0
- package/dist/packages/playground/browser/chunk-BIsevC4o.js +11 -0
- package/dist/packages/playground/browser/chunk-BJJI5OBC.js +1 -0
- package/dist/packages/playground/browser/chunk-BMMWqLA2.js +11 -0
- package/dist/packages/playground/browser/chunk-BNmq5gH8.js +2 -0
- package/dist/packages/playground/browser/chunk-BSUcqh0e.js +2 -0
- package/dist/packages/playground/browser/chunk-BUAY-bBJ.js +1 -0
- package/dist/packages/playground/browser/chunk-BY0EamUN.js +1 -0
- package/dist/packages/playground/browser/chunk-BZXiyyqI.js +1 -0
- package/dist/packages/playground/browser/chunk-BdS5C-M6.js +1 -0
- package/dist/packages/playground/browser/chunk-Bel35N-r.js +2 -0
- package/dist/packages/playground/browser/chunk-BkTdbZxu.js +2 -0
- package/dist/packages/playground/browser/chunk-BmW8ut-l.js +1 -0
- package/dist/packages/playground/browser/chunk-BpPwZMYf.js +3 -0
- package/dist/packages/playground/browser/chunk-BsdU_5PG.js +1 -0
- package/dist/packages/playground/browser/chunk-BvXhI91k.js +1 -0
- package/dist/packages/playground/browser/chunk-BzHgR45y.js +2 -0
- package/dist/packages/playground/browser/chunk-BzgTGdjm.js +2 -0
- package/dist/packages/playground/browser/chunk-BzrJLr3a.js +2 -0
- package/dist/packages/playground/browser/chunk-C-NXORcv.js +1 -0
- package/dist/packages/playground/browser/chunk-C34sJvtc.js +2 -0
- package/dist/packages/playground/browser/chunk-C6xrdnvb.js +3 -0
- package/dist/packages/playground/browser/chunk-CAL7uT4C.js +2 -0
- package/dist/packages/playground/browser/chunk-CCox_Mu7.js +2 -0
- package/dist/packages/playground/browser/chunk-CHh1yOT3.js +4 -0
- package/dist/packages/playground/browser/chunk-CIQb4Ujf.js +3 -0
- package/dist/packages/playground/browser/chunk-CJnVxlgo.js +2 -0
- package/dist/packages/playground/browser/chunk-CKSXClbP.js +2 -0
- package/dist/packages/playground/browser/chunk-COud3SuE.js +2 -0
- package/dist/packages/playground/browser/chunk-CTbwb8L3.js +1 -0
- package/dist/packages/playground/browser/chunk-CVYmfeCG.js +2 -0
- package/dist/packages/playground/browser/chunk-CYWkyKkM.js +1 -0
- package/dist/packages/playground/browser/chunk-C_O66ZGh.js +1 -0
- package/dist/packages/playground/browser/chunk-ChenIXuo.js +2 -0
- package/dist/packages/playground/browser/chunk-Ckan68bh.js +1 -0
- package/dist/packages/playground/browser/chunk-CmNHsah5.js +1 -0
- package/dist/packages/playground/browser/chunk-CoZGn1Ke.js +1 -0
- package/dist/packages/playground/browser/chunk-Cyn20TR6.js +2 -0
- package/dist/packages/playground/browser/chunk-CzUkWye9.js +4 -0
- package/dist/packages/playground/browser/chunk-D17ySaZ8.js +2 -0
- package/dist/packages/playground/browser/chunk-D20p_ekH.js +2 -0
- package/dist/packages/playground/browser/chunk-D2lQJK03.js +2 -0
- package/dist/packages/playground/browser/chunk-D33JCpxV.js +2 -0
- package/dist/packages/playground/browser/chunk-DAmUeszn.js +1 -0
- package/dist/packages/playground/browser/chunk-DCp-nKTE.js +1 -0
- package/dist/packages/playground/browser/chunk-DDa2v189.js +1 -0
- package/dist/packages/playground/browser/chunk-DJi8XLUL.js +2 -0
- package/dist/packages/playground/browser/chunk-DNgZhwHt.js +2 -0
- package/dist/packages/playground/browser/chunk-DP4tO_m1.js +1 -0
- package/dist/packages/playground/browser/chunk-DQqEr5vX.js +1 -0
- package/dist/packages/playground/browser/chunk-DR7_0I-7.js +2 -0
- package/dist/packages/playground/browser/chunk-DWHFrUs5.js +2 -0
- package/dist/packages/playground/browser/chunk-DY4bY_Qa.js +2 -0
- package/dist/packages/playground/browser/chunk-DcWKTj51.js +1 -0
- package/dist/packages/playground/browser/chunk-Di17h8ti.js +1 -0
- package/dist/packages/playground/browser/chunk-Dim3RQJ1.js +2 -0
- package/dist/packages/playground/browser/chunk-DjcWDyIz.js +1 -0
- package/dist/packages/playground/browser/chunk-Dn5tZnjV.js +2 -0
- package/dist/packages/playground/browser/chunk-DoJEePI9.js +1 -0
- package/dist/packages/playground/browser/chunk-DogLDWZF.js +1 -0
- package/dist/packages/playground/browser/chunk-DqKmoBbd.js +2 -0
- package/dist/packages/playground/browser/chunk-DtJkNtkO.js +2 -0
- package/dist/packages/playground/browser/chunk-Du5eaEhO.js +1 -0
- package/dist/packages/playground/browser/chunk-DyBKnzx2.js +1 -0
- package/dist/packages/playground/browser/chunk-FQyDviof.js +2 -0
- package/dist/packages/playground/browser/chunk-IVtlz9Ng.js +2 -0
- package/dist/packages/playground/browser/chunk-RHAdGSf7.js +299 -0
- package/dist/packages/playground/browser/chunk-W7F2YCZ3.js +2 -0
- package/dist/packages/playground/browser/chunk-_46Kkn0W.js +2 -0
- package/dist/packages/playground/browser/chunk-gcokgbu8.js +2 -0
- package/dist/packages/playground/browser/chunk-kRrEPa7L.js +1 -0
- package/dist/packages/playground/browser/chunk-tvAnzeAI.js +1 -0
- package/dist/packages/playground/browser/chunk-zpnfat_1.js +2 -0
- package/dist/packages/playground/browser/favicon.ico +0 -0
- package/dist/packages/playground/browser/index.html +13 -0
- package/dist/packages/playground/browser/main-QW47GU6W.css +1 -0
- package/dist/packages/playground/browser/main-YL46L42N.js +711 -0
- package/dist/packages/playground/browser/media/codicon-37A3DWZT.ttf +0 -0
- package/dist/packages/playground/browser/styles-WT2FEGU3.css +1 -0
- package/dist/packages/playground/browser/worker-DK2HODYL.js +46 -0
- package/dist/packages/playground/browser/worker-HDML6OSX.js +14 -0
- package/dist/packages/playground/prerendered-routes.json +3 -0
- package/nx.json +1 -1
- package/package.json +4 -1
- package/packages/angular-renderer/CHANGELOG.md +18 -0
- package/packages/angular-renderer/package.json +7 -3
- package/packages/cli/CHANGELOG.md +24 -0
- package/packages/cli/package.json +8 -4
- package/packages/core/CHANGELOG.md +18 -0
- package/packages/core/package.json +5 -1
- package/packages/design-tokens/CHANGELOG.md +18 -0
- package/packages/design-tokens/package.json +6 -2
- package/packages/playground/CHANGELOG.md +18 -0
- package/packages/playground/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/deps___vitest_vm__/_metadata.json +8 -0
- package/packages/playground/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/deps___vitest_vm__/package.json +3 -0
- package/packages/playground/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
- package/packages/playground/package.json +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 0.0.25 (2026-09-07)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- initialize package.json files for cli, core, design-tokens, playground, and angular-renderer packages ([2dee8cc](https://github.com/OrigoStudio/origo-design/commit/2dee8cc))
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- Hardik Patel @hardikpatelse
|
|
10
|
+
|
|
1
11
|
## 0.0.22 (2026-09-04)
|
|
2
12
|
|
|
3
13
|
### 🚀 Features
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
## 0.0.25 (2026-09-07)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- initialize package.json files for cli, core, design-tokens, playground, and angular-renderer packages ([2dee8cc](https://github.com/OrigoStudio/origo-design/commit/2dee8cc))
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- Hardik Patel @hardikpatelse
|
|
10
|
+
|
|
11
|
+
## 0.0.24 (2026-09-07)
|
|
12
|
+
|
|
13
|
+
This was a version bump only for angular-renderer to align it with other projects, there were no code changes.
|
|
14
|
+
|
|
15
|
+
## 0.0.23 (2026-09-07)
|
|
16
|
+
|
|
17
|
+
This was a version bump only for angular-renderer to align it with other projects, there were no code changes.
|
|
18
|
+
|
|
19
|
+
## 0.0.22 (2026-09-04)
|
|
20
|
+
|
|
21
|
+
### 🚀 Features
|
|
22
|
+
|
|
23
|
+
- scaffold playground application and e2e testing suite with initial editor component and schema registry ([f097894](https://github.com/OrigoStudio/origo-design/commit/f097894))
|
|
24
|
+
- add GitHub Actions workflow to automate library releases using Nx Release ([3d6651f](https://github.com/OrigoStudio/origo-design/commit/3d6651f))
|
|
25
|
+
|
|
26
|
+
### ❤️ Thank You
|
|
27
|
+
|
|
28
|
+
- Hardik Patel @hardikpatelse
|
|
29
|
+
|
|
30
|
+
## 0.0.21 (2026-09-02)
|
|
31
|
+
|
|
32
|
+
### 🚀 Features
|
|
33
|
+
|
|
34
|
+
- add centralized test registry tool with validation logic, CI integration, and documentation artifacts ([384c1c7](https://github.com/OrigoStudio/origo-design/commit/384c1c7))
|
|
35
|
+
- implement central test registry with validation tools and CI integration ([02cf656](https://github.com/OrigoStudio/origo-design/commit/02cf656))
|
|
36
|
+
- initialize negative testing story and update sprint status tracking ([bbe5fdc](https://github.com/OrigoStudio/origo-design/commit/bbe5fdc))
|
|
37
|
+
- implement CLI framework with validation, testing, and CI/CD workflows ([ff6ce55](https://github.com/OrigoStudio/origo-design/commit/ff6ce55))
|
|
38
|
+
- implement validate command and schema validation logic for BADL files ([4f9e41d](https://github.com/OrigoStudio/origo-design/commit/4f9e41d))
|
|
39
|
+
- implement path traversal guards, remove process termination from library logic, and enable error cause preservation in @origo/cli ([0854f78](https://github.com/OrigoStudio/origo-design/commit/0854f78))
|
|
40
|
+
- initialize web-based editor component and track security remediation tasks in implementation artifacts ([65716bd](https://github.com/OrigoStudio/origo-design/commit/65716bd))
|
|
41
|
+
- document e2e npm verification plan for cli package releases ([22dab4c](https://github.com/OrigoStudio/origo-design/commit/22dab4c))
|
|
42
|
+
- initialize sprint status tracking and retrospective verification story for npm packaging ([c326751](https://github.com/OrigoStudio/origo-design/commit/c326751))
|
|
43
|
+
- add generated bundle for epic7-worker-csp spike ([16ca492](https://github.com/OrigoStudio/origo-design/commit/16ca492))
|
|
44
|
+
- add web worker CSP spike and associated implementation documentation ([ebf5aa4](https://github.com/OrigoStudio/origo-design/commit/ebf5aa4))
|
|
45
|
+
- implement web worker CSP spike with supporting documentation and harness tools ([f57b1e5](https://github.com/OrigoStudio/origo-design/commit/f57b1e5))
|
|
46
|
+
- add technical spike story for Epic 7 web worker CSP validation and ADR planning ([c977487](https://github.com/OrigoStudio/origo-design/commit/c977487))
|
|
47
|
+
- initialize sprint status tracking and create Epic 7 discovery research story ([b37b967](https://github.com/OrigoStudio/origo-design/commit/b37b967))
|
|
48
|
+
- implement entity generator command with template customization and ejection support ([02a3193](https://github.com/OrigoStudio/origo-design/commit/02a3193))
|
|
49
|
+
- implement entity generator command and template ejection logic in CLI ([d7d519a](https://github.com/OrigoStudio/origo-design/commit/d7d519a))
|
|
50
|
+
- implementation of 6-2-local-schema-validation ([45e67f6](https://github.com/OrigoStudio/origo-design/commit/45e67f6))
|
|
51
|
+
|
|
52
|
+
### ❤️ Thank You
|
|
53
|
+
|
|
54
|
+
- Hardik Patel @hardikpatelse
|
|
55
|
+
|
|
56
|
+
## 0.0.20 (2026-08-25)
|
|
57
|
+
|
|
58
|
+
### 🚀 Features
|
|
59
|
+
|
|
60
|
+
- implementation of 6-1-cli-initialization-and-scaffolding ([f6aca9e](https://github.com/OrigoStudio/origo-design/commit/f6aca9e))
|
|
61
|
+
|
|
62
|
+
### ❤️ Thank You
|
|
63
|
+
|
|
64
|
+
- Hardik Patel @hardikpatelse
|
|
65
|
+
|
|
66
|
+
## 0.0.19 (2026-08-23)
|
|
67
|
+
|
|
68
|
+
### 🚀 Features
|
|
69
|
+
|
|
70
|
+
- 5.5-5-define-secure-by-default-boilerplate-templates ([0eb6dde](https://github.com/OrigoStudio/origo-design/commit/0eb6dde))
|
|
71
|
+
|
|
72
|
+
### ❤️ Thank You
|
|
73
|
+
|
|
74
|
+
- Hardik Patel @hardikpatelse
|
|
75
|
+
|
|
76
|
+
## 0.0.18 (2026-08-23)
|
|
77
|
+
|
|
78
|
+
### 🚀 Features
|
|
79
|
+
|
|
80
|
+
- 5.5-4-verify-core-compiler-source-map-preservation ([a3b0d9b](https://github.com/OrigoStudio/origo-design/commit/a3b0d9b))
|
|
81
|
+
|
|
82
|
+
### 🩹 Fixes
|
|
83
|
+
|
|
84
|
+
- pipeline issue ([c1bbe47](https://github.com/OrigoStudio/origo-design/commit/c1bbe47))
|
|
85
|
+
|
|
86
|
+
### ❤️ Thank You
|
|
87
|
+
|
|
88
|
+
- Hardik Patel @hardikpatelse
|
|
89
|
+
|
|
90
|
+
## 0.0.17 (2026-08-21)
|
|
91
|
+
|
|
92
|
+
### 🚀 Features
|
|
93
|
+
|
|
94
|
+
- 5.5-3-resolve-recursive-schema-resolution-tech-debt ([943e2e7](https://github.com/OrigoStudio/origo-design/commit/943e2e7))
|
|
95
|
+
- 5.5-2-establish-end-to-end-qa-protocols ([d8990ae](https://github.com/OrigoStudio/origo-design/commit/d8990ae))
|
|
96
|
+
- 5.5-2-establish-end-to-end-qa-protocols ([a31d97a](https://github.com/OrigoStudio/origo-design/commit/a31d97a))
|
|
97
|
+
|
|
98
|
+
### ❤️ Thank You
|
|
99
|
+
|
|
100
|
+
- Hardik Patel @hardikpatelse
|
|
101
|
+
|
|
102
|
+
## 0.0.16 (2026-08-21)
|
|
103
|
+
|
|
104
|
+
### 🚀 Features
|
|
105
|
+
|
|
106
|
+
- 5.5-1-create-usability-quickstart-guide ([e740a1a](https://github.com/OrigoStudio/origo-design/commit/e740a1a))
|
|
107
|
+
|
|
108
|
+
### ❤️ Thank You
|
|
109
|
+
|
|
110
|
+
- Hardik Patel @hardikpatelse
|
|
111
|
+
|
|
112
|
+
## 0.0.15 (2026-08-20)
|
|
113
|
+
|
|
114
|
+
### 🚀 Features
|
|
115
|
+
|
|
116
|
+
- code-review 5-5-reactive-state-event-binding ([b235951](https://github.com/OrigoStudio/origo-design/commit/b235951))
|
|
117
|
+
- implementation of 5-5-reactive-state-event-binding ([3a5948a](https://github.com/OrigoStudio/origo-design/commit/3a5948a))
|
|
118
|
+
- story creation 5-5-reactive-state-event-binding ([21104c6](https://github.com/OrigoStudio/origo-design/commit/21104c6))
|
|
119
|
+
|
|
120
|
+
### ❤️ Thank You
|
|
121
|
+
|
|
122
|
+
- Hardik Patel @hardikpatelse
|
|
123
|
+
|
|
124
|
+
## 0.0.14 (2026-08-19)
|
|
125
|
+
|
|
126
|
+
### 🚀 Features
|
|
127
|
+
|
|
128
|
+
- 5-4-design-token-consumption ([c1f64ed](https://github.com/OrigoStudio/origo-design/commit/c1f64ed))
|
|
129
|
+
- add sprint status update and design token consumption story documentation ([49aec07](https://github.com/OrigoStudio/origo-design/commit/49aec07))
|
|
130
|
+
|
|
131
|
+
### ❤️ Thank You
|
|
132
|
+
|
|
133
|
+
- Hardik Patel @hardikpatelse
|
|
134
|
+
|
|
135
|
+
## 0.0.13 (2026-08-18)
|
|
136
|
+
|
|
137
|
+
### 🚀 Features
|
|
138
|
+
|
|
139
|
+
- implement core primitives (Button, VBox, TextInput) with improved property coercion and accessibility support ([1be1def](https://github.com/OrigoStudio/origo-design/commit/1be1def))
|
|
140
|
+
- implement VBox, TextInput, and Button core primitives with accessibility testing and improved adapter coercion ([532417f](https://github.com/OrigoStudio/origo-design/commit/532417f))
|
|
141
|
+
|
|
142
|
+
### ❤️ Thank You
|
|
143
|
+
|
|
144
|
+
- Hardik Patel @hardikpatelse
|
|
145
|
+
|
|
146
|
+
## 0.0.12 (2026-08-17)
|
|
147
|
+
|
|
148
|
+
### 🚀 Features
|
|
149
|
+
|
|
150
|
+
- implement InteractionContract-based OrigoAdapter and transition angular-renderer architecture to web adapter pattern ([1a8ea32](https://github.com/OrigoStudio/origo-design/commit/1a8ea32))
|
|
151
|
+
|
|
152
|
+
### ❤️ Thank You
|
|
153
|
+
|
|
154
|
+
- Hardik Patel @hardikpatelse
|
|
155
|
+
|
|
156
|
+
## 0.0.11 (2026-08-14)
|
|
157
|
+
|
|
158
|
+
### 🚀 Features
|
|
159
|
+
|
|
160
|
+
- initialize changelogs and package manifests for core, design-tokens, and angular-renderer packages ([10455ec](https://github.com/OrigoStudio/origo-design/commit/10455ec))
|
|
161
|
+
- implement angular-renderer package with AST-based dynamic component instantiation and registry support ([500f396](https://github.com/OrigoStudio/origo-design/commit/500f396))
|
|
162
|
+
|
|
163
|
+
### ❤️ Thank You
|
|
164
|
+
|
|
165
|
+
- Hardik Patel @hardikpatelse
|
|
166
|
+
|
|
167
|
+
## 0.0.10 (2026-08-14)
|
|
168
|
+
|
|
169
|
+
### 🚀 Features
|
|
170
|
+
|
|
171
|
+
- implement extension API scaffolding, define Angular signals patterns, and add renderer test utilities ([d2adbed](https://github.com/OrigoStudio/origo-design/commit/d2adbed))
|
|
172
|
+
- mark Epic 4 as complete and record its retrospective action items in sprint status ([37c2caa](https://github.com/OrigoStudio/origo-design/commit/37c2caa))
|
|
173
|
+
|
|
174
|
+
### ❤️ Thank You
|
|
175
|
+
|
|
176
|
+
- Hardik Patel @hardikpatelse
|
|
177
|
+
|
|
178
|
+
## 0.0.9 (2026-08-14)
|
|
179
|
+
|
|
180
|
+
### 🚀 Features
|
|
181
|
+
|
|
182
|
+
- implement extension manager with manifest validation, permission security, and dependency resolution ([154b0d4](https://github.com/OrigoStudio/origo-design/commit/154b0d4))
|
|
183
|
+
|
|
184
|
+
### ❤️ Thank You
|
|
185
|
+
|
|
186
|
+
- Hardik Patel @hardikpatelse
|
|
187
|
+
|
|
188
|
+
## 0.0.8 (2026-08-14)
|
|
189
|
+
|
|
190
|
+
### 🚀 Features
|
|
191
|
+
|
|
192
|
+
- implement formal extension manifest, capability negotiation, and lifecycle management in core extension-api ([808f113](https://github.com/OrigoStudio/origo-design/commit/808f113))
|
|
193
|
+
|
|
194
|
+
### ❤️ Thank You
|
|
195
|
+
|
|
196
|
+
- Hardik Patel @hardikpatelse
|
|
197
|
+
|
|
198
|
+
## 0.0.7 (2026-08-14)
|
|
199
|
+
|
|
200
|
+
### 🚀 Features
|
|
201
|
+
|
|
202
|
+
- implement behavior validation test suite and expand AST validator test coverage ([d4c79ef](https://github.com/OrigoStudio/origo-design/commit/d4c79ef))
|
|
203
|
+
- register behavior validation suite story and update sprint status tracking ([798ec74](https://github.com/OrigoStudio/origo-design/commit/798ec74))
|
|
204
|
+
|
|
205
|
+
### ❤️ Thank You
|
|
206
|
+
|
|
207
|
+
- Hardik Patel @hardikpatelse
|
|
208
|
+
|
|
209
|
+
## 0.0.6 (2026-08-13)
|
|
210
|
+
|
|
211
|
+
### 🚀 Features
|
|
212
|
+
|
|
213
|
+
- implement AST validation engine with support for circular dependency detection and reference integrity checks ([afd48c9](https://github.com/OrigoStudio/origo-design/commit/afd48c9))
|
|
214
|
+
- initialize sprint-status.yaml to track project development and retrospective action items ([66c6cdf](https://github.com/OrigoStudio/origo-design/commit/66c6cdf))
|
|
215
|
+
|
|
216
|
+
### ❤️ Thank You
|
|
217
|
+
|
|
218
|
+
- Hardik Patel @hardikpatelse
|
|
219
|
+
|
|
220
|
+
## 0.0.5 (2026-08-13)
|
|
221
|
+
|
|
222
|
+
### 🚀 Features
|
|
223
|
+
|
|
224
|
+
- **core:** implement security and permissions engine ([d066d90](https://github.com/OrigoStudio/origo-design/commit/d066d90))
|
|
225
|
+
- add story 4.3 for security and permissions engine and update sprint status ([3eb4aae](https://github.com/OrigoStudio/origo-design/commit/3eb4aae))
|
|
226
|
+
|
|
227
|
+
### ❤️ Thank You
|
|
228
|
+
|
|
229
|
+
- Hardik Patel @hardikpatelse
|
|
230
|
+
|
|
231
|
+
## 0.0.4 (2026-08-13)
|
|
232
|
+
|
|
233
|
+
### 🚀 Features
|
|
234
|
+
|
|
235
|
+
- implement semantic AST validator with domain, entity, and contract schema definitions ([e969466](https://github.com/OrigoStudio/origo-design/commit/e969466))
|
|
236
|
+
- update sprint status and initialize story 4-2 contracts and implementations documentation ([4b37c59](https://github.com/OrigoStudio/origo-design/commit/4b37c59))
|
|
237
|
+
|
|
238
|
+
### ❤️ Thank You
|
|
239
|
+
|
|
240
|
+
- Hardik Patel @hardikpatelse
|
|
241
|
+
|
|
242
|
+
## 0.0.3 (2026-08-13)
|
|
243
|
+
|
|
244
|
+
### 🚀 Features
|
|
245
|
+
|
|
246
|
+
- 4-1-capabilities-schema-parsing ([869c872](https://github.com/OrigoStudio/origo-design/commit/869c872))
|
|
247
|
+
|
|
248
|
+
### ❤️ Thank You
|
|
249
|
+
|
|
250
|
+
- Hardik Patel @hardikpatelse
|
|
251
|
+
|
|
252
|
+
## 0.0.2 (2026-08-12)
|
|
253
|
+
|
|
254
|
+
### 🚀 Features
|
|
255
|
+
|
|
256
|
+
- implement defensive AST validation with depth limiting, circular reference detection, and graceful error reporting ([d2f5f98](https://github.com/OrigoStudio/origo-design/commit/d2f5f98))
|
|
257
|
+
- initialize 3-5-3-defensive-ast-traversal story and update sprint status ([4f82702](https://github.com/OrigoStudio/origo-design/commit/4f82702))
|
|
258
|
+
- enforce JSON import standard and document AST validator ([162db09](https://github.com/OrigoStudio/origo-design/commit/162db09))
|
|
259
|
+
- implement automated semantic versioning with Nx release and commitlint enforcement ([5e7a25e](https://github.com/OrigoStudio/origo-design/commit/5e7a25e))
|
|
260
|
+
- implement AST validation engine and documentation for semantic versioning workflow ([838e472](https://github.com/OrigoStudio/origo-design/commit/838e472))
|
|
261
|
+
- implement AST validation engine and associated implementation artifacts ([49cbdf0](https://github.com/OrigoStudio/origo-design/commit/49cbdf0))
|
|
262
|
+
- implement deterministic canonical AST serialization and interfaces in @origo/core ([c35a2c9](https://github.com/OrigoStudio/origo-design/commit/c35a2c9))
|
|
263
|
+
- implement domain and entity schema parser with Ajv-based validation and circular dependency detection in new @origo/core package ([4165b5f](https://github.com/OrigoStudio/origo-design/commit/4165b5f))
|
|
264
|
+
- add design tokens documentation and update Starlight navigation configuration ([ba2404a](https://github.com/OrigoStudio/origo-design/commit/ba2404a))
|
|
265
|
+
- initialize Epic 3 planning and document Epic 2 retrospective findings ([4cc46f9](https://github.com/OrigoStudio/origo-design/commit/4cc46f9))
|
|
266
|
+
- implement runtime theme fetching, injection, and Angular renderer integration to complete the token resolution contract ([87f583e](https://github.com/OrigoStudio/origo-design/commit/87f583e))
|
|
267
|
+
- implement theme-fetcher runtime utility and create angular-renderer package with theme initialization provider ([1d5b7ab](https://github.com/OrigoStudio/origo-design/commit/1d5b7ab))
|
|
268
|
+
- implement secure theme injection with CSS token validation and scope management ([a708825](https://github.com/OrigoStudio/origo-design/commit/a708825))
|
|
269
|
+
- implement runtime theme injector for parsing and applying CSS variables ([969fed5](https://github.com/OrigoStudio/origo-design/commit/969fed5))
|
|
270
|
+
- add astro, @astrojs/starlight, and sharp dependencies to package.json ([1c40a92](https://github.com/OrigoStudio/origo-design/commit/1c40a92))
|
|
271
|
+
- implement design token compilation pipeline with CSS variable parsing and generation ([0ffe822](https://github.com/OrigoStudio/origo-design/commit/0ffe822))
|
|
272
|
+
- **nx-cloud:** setup nx cloud workspace ([ee09042](https://github.com/OrigoStudio/origo-design/commit/ee09042))
|
|
273
|
+
- **design-tokens:** implement css compilation pipeline ([7bd632d](https://github.com/OrigoStudio/origo-design/commit/7bd632d))
|
|
274
|
+
- add script to generate automated LLM review prompts from git diffs ([1ddbd39](https://github.com/OrigoStudio/origo-design/commit/1ddbd39))
|
|
275
|
+
- scaffold @origo/design-tokens package with JSON schema validation and Nx configuration ([ae61244](https://github.com/OrigoStudio/origo-design/commit/ae61244))
|
|
276
|
+
- scaffold @origo/design-tokens library with JSON schema validation and initial token definitions ([efbecc9](https://github.com/OrigoStudio/origo-design/commit/efbecc9))
|
|
277
|
+
- initialize Astro documentation site and relocate internal project scripts to the tools directory. ([1cd8e71](https://github.com/OrigoStudio/origo-design/commit/1cd8e71))
|
|
278
|
+
- add documentation story spec and update epic-1 status to done ([b612ea3](https://github.com/OrigoStudio/origo-design/commit/b612ea3))
|
|
279
|
+
- initialize and populate agent skill definitions, workflows, and technical knowledge resources ([8668c52](https://github.com/OrigoStudio/origo-design/commit/8668c52))
|
|
280
|
+
- initialize Starlight documentation site within the monorepo and add benchmark tools ([9a16b03](https://github.com/OrigoStudio/origo-design/commit/9a16b03))
|
|
281
|
+
- implement performance benchmark harness with regression and SLA gate logic ([350d472](https://github.com/OrigoStudio/origo-design/commit/350d472))
|
|
282
|
+
- implement performance benchmark harness with CI regression gating and SLA validation ([3230ac9](https://github.com/OrigoStudio/origo-design/commit/3230ac9))
|
|
283
|
+
- implement Husky pre-commit hooks and Nx-based lint-staged configuration ([9181885](https://github.com/OrigoStudio/origo-design/commit/9181885))
|
|
284
|
+
- add GitHub Actions CI workflow, Husky pre-commit hooks, and update package.json with necessary configuration ([95b8bf1](https://github.com/OrigoStudio/origo-design/commit/95b8bf1))
|
|
285
|
+
- configure Husky, lint-staged, and GitHub CI workflow for automated quality enforcement ([b6bf597](https://github.com/OrigoStudio/origo-design/commit/b6bf597))
|
|
286
|
+
- initialize Nx monorepo workspace with core configuration and tooling ([fd0665a](https://github.com/OrigoStudio/origo-design/commit/fd0665a))
|
|
287
|
+
- add sprint tracking artifacts and automation script for project bootstrapping ([ddc6149](https://github.com/OrigoStudio/origo-design/commit/ddc6149))
|
|
288
|
+
- document Origo Design functional requirements and architectural scope ([d1e0b7f](https://github.com/OrigoStudio/origo-design/commit/d1e0b7f))
|
|
289
|
+
|
|
290
|
+
### ❤️ Thank You
|
|
291
|
+
|
|
292
|
+
- Hardik Patel @hardikpatelse
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# angular-renderer
|
|
2
|
+
|
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
|
4
|
+
|
|
5
|
+
## Building
|
|
6
|
+
|
|
7
|
+
Run `nx build angular-renderer` to build the library.
|
|
8
|
+
|
|
9
|
+
## Running unit tests
|
|
10
|
+
|
|
11
|
+
Run `nx test angular-renderer` to execute the unit tests via [Jest](https://jestjs.io).
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "angular-renderer",
|
|
3
|
+
"version": "0.0.25",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "commonjs",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@origo/core": "0.0.25",
|
|
10
|
+
"@origo/design-tokens": "0.0.25",
|
|
11
|
+
"tslib": "^2.3.0",
|
|
12
|
+
"@axe-core/playwright": "^4.13.0",
|
|
13
|
+
"@playwright/test": "^1.36.0"
|
|
14
|
+
},
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"@angular/common": ">=18.0.0",
|
|
17
|
+
"@angular/core": ">=18.0.0",
|
|
18
|
+
"@angular/platform-browser": ">=18.0.0"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/OrigoStudio/origo-design.git"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ViewContainerRef, Signal, InputSignal } from '@angular/core';
|
|
2
|
+
import { ASTNode, InteractionContract } from '@origo/core';
|
|
3
|
+
export interface ContainerComponent {
|
|
4
|
+
viewContainerRef?: ViewContainerRef | Signal<ViewContainerRef>;
|
|
5
|
+
vc?: ViewContainerRef | Signal<ViewContainerRef>;
|
|
6
|
+
}
|
|
7
|
+
export interface OrigoAdapter<TProps = Record<string, unknown>> {
|
|
8
|
+
/**
|
|
9
|
+
* The core interaction contract driving this adapter.
|
|
10
|
+
*/
|
|
11
|
+
contract: InputSignal<InteractionContract<TProps>>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Validates and coerces runtime properties against a basic schema to ensure
|
|
15
|
+
* primitive components do not crash when given malformed BADL ast properties.
|
|
16
|
+
*/
|
|
17
|
+
export declare function coerceContractProps<T>(props: unknown, schema?: Record<string, 'string' | 'number' | 'boolean' | 'array' | 'object'>, strict?: boolean): T;
|
|
18
|
+
export declare class AdapterPipelineService {
|
|
19
|
+
prepareNode(node: ASTNode, schema?: Record<string, 'string' | 'number' | 'boolean' | 'array' | 'object'>, strict?: boolean, visited?: Set<string>): InteractionContract;
|
|
20
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdapterPipelineService = void 0;
|
|
4
|
+
exports.coerceContractProps = coerceContractProps;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const core_1 = require("@angular/core");
|
|
7
|
+
function deepClone(obj) {
|
|
8
|
+
if (obj === null || typeof obj !== 'object') {
|
|
9
|
+
return obj;
|
|
10
|
+
}
|
|
11
|
+
if (Array.isArray(obj)) {
|
|
12
|
+
return obj.map(item => deepClone(item));
|
|
13
|
+
}
|
|
14
|
+
const cloned = {};
|
|
15
|
+
const typedObj = obj;
|
|
16
|
+
for (const key in typedObj) {
|
|
17
|
+
if (Object.prototype.hasOwnProperty.call(typedObj, key)) {
|
|
18
|
+
cloned[key] = deepClone(typedObj[key]);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return cloned;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Validates and coerces runtime properties against a basic schema to ensure
|
|
25
|
+
* primitive components do not crash when given malformed BADL ast properties.
|
|
26
|
+
*/
|
|
27
|
+
function coerceContractProps(props, schema, strict = false) {
|
|
28
|
+
if (!props || typeof props !== 'object' || Array.isArray(props)) {
|
|
29
|
+
return {};
|
|
30
|
+
}
|
|
31
|
+
const result = {};
|
|
32
|
+
const inputProps = props;
|
|
33
|
+
if (!schema) {
|
|
34
|
+
if (strict) {
|
|
35
|
+
throw new Error('strict mode requires a schema');
|
|
36
|
+
}
|
|
37
|
+
for (const [key, val] of Object.entries(inputProps)) {
|
|
38
|
+
result[key] = deepClone(val);
|
|
39
|
+
}
|
|
40
|
+
return result;
|
|
41
|
+
}
|
|
42
|
+
for (const [key, value] of Object.entries(inputProps)) {
|
|
43
|
+
if (key.startsWith('aria-') || key.startsWith('data-')) {
|
|
44
|
+
result[key] = deepClone(value);
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
if (!schema[key]) {
|
|
48
|
+
if (!strict) {
|
|
49
|
+
result[key] = deepClone(value);
|
|
50
|
+
}
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
const expectedType = schema[key];
|
|
54
|
+
if (value === undefined || value === null) {
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
if (expectedType === 'string') {
|
|
58
|
+
result[key] = String(value);
|
|
59
|
+
}
|
|
60
|
+
else if (expectedType === 'number') {
|
|
61
|
+
if (value === '' || typeof value === 'boolean') {
|
|
62
|
+
if (strict)
|
|
63
|
+
throw new Error(`Invalid number for prop '${key}'`);
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
const num = Number(value);
|
|
67
|
+
if (isNaN(num)) {
|
|
68
|
+
if (strict)
|
|
69
|
+
throw new Error(`Invalid number for prop '${key}': ${value}`);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
result[key] = num;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
else if (expectedType === 'boolean') {
|
|
76
|
+
if (value === '') {
|
|
77
|
+
result[key] = true;
|
|
78
|
+
}
|
|
79
|
+
else if (typeof value === 'string') {
|
|
80
|
+
const lower = value.toLowerCase();
|
|
81
|
+
result[key] = !(lower === 'false' || lower === '0' || lower === 'off');
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
result[key] = Boolean(value);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
else if (expectedType === 'array') {
|
|
88
|
+
const arr = Array.isArray(value) ? value : [value];
|
|
89
|
+
result[key] = deepClone(arr);
|
|
90
|
+
}
|
|
91
|
+
else if (expectedType === 'object') {
|
|
92
|
+
if (Array.isArray(value)) {
|
|
93
|
+
if (strict)
|
|
94
|
+
throw new Error(`Invalid object for prop '${key}'`);
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
const obj = typeof value === 'object' && value !== null ? value : {};
|
|
98
|
+
result[key] = deepClone(obj);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
result[key] = deepClone(value);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return result;
|
|
105
|
+
}
|
|
106
|
+
let AdapterPipelineService = (() => {
|
|
107
|
+
let _classDecorators = [(0, core_1.Injectable)({ providedIn: 'root' })];
|
|
108
|
+
let _classDescriptor;
|
|
109
|
+
let _classExtraInitializers = [];
|
|
110
|
+
let _classThis;
|
|
111
|
+
var AdapterPipelineService = class {
|
|
112
|
+
static { _classThis = this; }
|
|
113
|
+
static {
|
|
114
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
115
|
+
tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
116
|
+
AdapterPipelineService = _classThis = _classDescriptor.value;
|
|
117
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
118
|
+
tslib_1.__runInitializers(_classThis, _classExtraInitializers);
|
|
119
|
+
}
|
|
120
|
+
prepareNode(node, schema, strict = false, visited = new Set()) {
|
|
121
|
+
if (visited.has(node.id)) {
|
|
122
|
+
return { id: node.id, type: node.type, props: {} };
|
|
123
|
+
}
|
|
124
|
+
visited.add(node.id);
|
|
125
|
+
// Translate the raw Canonical ASTNode into a stateless InteractionContract
|
|
126
|
+
const contract = {
|
|
127
|
+
id: node.id,
|
|
128
|
+
type: node.type,
|
|
129
|
+
props: coerceContractProps(node.props, schema, strict),
|
|
130
|
+
};
|
|
131
|
+
if (node.children) {
|
|
132
|
+
contract.children = node.children.map(child => this.prepareNode(child, undefined, strict, visited));
|
|
133
|
+
}
|
|
134
|
+
return contract;
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
return AdapterPipelineService = _classThis;
|
|
138
|
+
})();
|
|
139
|
+
exports.AdapterPipelineService = AdapterPipelineService;
|
|
140
|
+
//# sourceMappingURL=adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../../../packages/angular-renderer/src/adapters/web/adapter.ts"],"names":[],"mappings":";;;AAoCA,kDA8EC;;AAlHD,wCAAkF;AAelF,SAAS,SAAS,CAAI,GAAM;IAC1B,IAAI,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC5C,OAAO,GAAG,CAAC;IACb,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QACvB,OAAO,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,I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;;YACnC,qLA2BC;;;YA3BY,+DAAsB;;QACjC,WAAW,CACT,IAAa,EACb,MAA6E,EAC7E,MAAM,GAAG,KAAK,EACd,UAAU,IAAI,GAAG,EAAU;YAE3B,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;gBACzB,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;YACrD,CAAC;YACD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAErB,2EAA2E;YAC3E,MAAM,QAAQ,GAAwB;gBACpC,EAAE,EAAE,IAAI,CAAC,EAAE;gBACX,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,KAAK,EAAE,mBAAmB,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;aACvD,CAAC;YAEF,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClB,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAC5C,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CACpD,CAAC;YACJ,CAAC;YAED,OAAO,QAAQ,CAAC;QAClB,CAAC;;;;AA1BU,wDAAsB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebExperienceAdapterService = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@angular/core");
|
|
6
|
+
let WebExperienceAdapterService = (() => {
|
|
7
|
+
let _classDecorators = [(0, core_1.Injectable)({ providedIn: 'root' })];
|
|
8
|
+
let _classDescriptor;
|
|
9
|
+
let _classExtraInitializers = [];
|
|
10
|
+
let _classThis;
|
|
11
|
+
var WebExperienceAdapterService = class {
|
|
12
|
+
static { _classThis = this; }
|
|
13
|
+
static {
|
|
14
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
15
|
+
tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
16
|
+
WebExperienceAdapterService = _classThis = _classDescriptor.value;
|
|
17
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
18
|
+
tslib_1.__runInitializers(_classThis, _classExtraInitializers);
|
|
19
|
+
}
|
|
20
|
+
dispatchCapability(nodeId, actionName, payload) {
|
|
21
|
+
// In Phase 1, this provides the stateless translation boundary (AD-15).
|
|
22
|
+
// Real dispatching logic to the core BADL engine would be wired here.
|
|
23
|
+
console.debug(`[ExperienceAdapter] Dispatched capability '${actionName}' for node '${nodeId}'`, payload);
|
|
24
|
+
}
|
|
25
|
+
updateState(nodeId, property, value) {
|
|
26
|
+
// In Phase 1, this provides the stateless translation boundary (AD-15).
|
|
27
|
+
console.debug(`[ExperienceAdapter] Updated state for node '${nodeId}', property '${property}'`, value);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
return WebExperienceAdapterService = _classThis;
|
|
31
|
+
})();
|
|
32
|
+
exports.WebExperienceAdapterService = WebExperienceAdapterService;
|
|
33
|
+
//# sourceMappingURL=experience-adapter.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experience-adapter.service.js","sourceRoot":"","sources":["../../../../../../packages/angular-renderer/src/adapters/web/experience-adapter.service.ts"],"names":[],"mappings":";;;;AAAA,wCAA2C;IAG9B,2BAA2B;4BADvC,IAAA,iBAAU,EAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;;;;;;;;YACnC,qLAiBC;;;YAjBY,+DAA2B;;QACtC,kBAAkB,CAAC,MAAc,EAAE,UAAkB,EAAE,OAAiB;YACtE,wEAAwE;YACxE,sEAAsE;YACtE,OAAO,CAAC,KAAK,CACX,8CAA8C,UAAU,eAAe,MAAM,GAAG,EAChF,OAAO,CACR,CAAC;QACJ,CAAC;QAED,WAAW,CAAC,MAAc,EAAE,QAAgB,EAAE,KAAc;YAC1D,wEAAwE;YACxE,OAAO,CAAC,KAAK,CACX,+CAA+C,MAAM,gBAAgB,QAAQ,GAAG,EAChF,KAAK,CACN,CAAC;QACJ,CAAC;;;;AAhBU,kEAA2B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { InteractionContract } from '@origo/core';
|
|
2
|
+
import { OrigoAdapter } from '../../../adapters/web/adapter';
|
|
3
|
+
export interface ButtonProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
type?: 'button' | 'submit' | 'reset';
|
|
7
|
+
'aria-label'?: string;
|
|
8
|
+
'aria-describedby'?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class ButtonComponent implements OrigoAdapter<ButtonProps> {
|
|
11
|
+
static readonly contractSchema: {
|
|
12
|
+
label: string;
|
|
13
|
+
disabled: string;
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
static readonly strictContract = false;
|
|
17
|
+
contract: import("@angular/core").InputSignal<InteractionContract<ButtonProps>>;
|
|
18
|
+
computedLabel: import("@angular/core").Signal<string>;
|
|
19
|
+
computedDisabled: import("@angular/core").Signal<boolean>;
|
|
20
|
+
computedType: import("@angular/core").Signal<"button" | "submit" | "reset">;
|
|
21
|
+
computedAriaLabel: import("@angular/core").Signal<string | undefined>;
|
|
22
|
+
computedAriaDescribedBy: import("@angular/core").Signal<string | undefined>;
|
|
23
|
+
action: import("@angular/core").OutputEmitterRef<void>;
|
|
24
|
+
private experienceAdapter;
|
|
25
|
+
onClick(): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ButtonComponent = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@angular/core");
|
|
6
|
+
const experience_adapter_service_1 = require("../../../adapters/web/experience-adapter.service");
|
|
7
|
+
let ButtonComponent = (() => {
|
|
8
|
+
let _classDecorators = [(0, core_1.Component)({
|
|
9
|
+
selector: 'origo-button',
|
|
10
|
+
standalone: true,
|
|
11
|
+
templateUrl: './button.component.html',
|
|
12
|
+
styleUrls: ['./button.component.scss'],
|
|
13
|
+
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
|
|
14
|
+
encapsulation: core_1.ViewEncapsulation.ShadowDom,
|
|
15
|
+
host: {
|
|
16
|
+
'[class.origo-button]': 'true',
|
|
17
|
+
},
|
|
18
|
+
})];
|
|
19
|
+
let _classDescriptor;
|
|
20
|
+
let _classExtraInitializers = [];
|
|
21
|
+
let _classThis;
|
|
22
|
+
var ButtonComponent = class {
|
|
23
|
+
static { _classThis = this; }
|
|
24
|
+
static {
|
|
25
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
26
|
+
tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
27
|
+
ButtonComponent = _classThis = _classDescriptor.value;
|
|
28
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
29
|
+
}
|
|
30
|
+
static contractSchema = {
|
|
31
|
+
label: 'string',
|
|
32
|
+
disabled: 'boolean',
|
|
33
|
+
type: 'string',
|
|
34
|
+
};
|
|
35
|
+
static strictContract = false;
|
|
36
|
+
contract = core_1.input.required();
|
|
37
|
+
computedLabel = (0, core_1.computed)(() => this.contract().props?.label ?? 'Button');
|
|
38
|
+
computedDisabled = (0, core_1.computed)(() => !!this.contract().props?.disabled);
|
|
39
|
+
computedType = (0, core_1.computed)(() => {
|
|
40
|
+
const type = this.contract().props?.type;
|
|
41
|
+
return type === 'button' || type === 'submit' || type === 'reset' ? type : 'button';
|
|
42
|
+
});
|
|
43
|
+
computedAriaLabel = (0, core_1.computed)(() => this.contract().props?.['aria-label']);
|
|
44
|
+
computedAriaDescribedBy = (0, core_1.computed)(() => this.contract().props?.['aria-describedby']);
|
|
45
|
+
action = (0, core_1.output)();
|
|
46
|
+
experienceAdapter = (0, core_1.inject)(experience_adapter_service_1.WebExperienceAdapterService);
|
|
47
|
+
onClick() {
|
|
48
|
+
if (this.computedDisabled())
|
|
49
|
+
return;
|
|
50
|
+
const id = this.contract().id;
|
|
51
|
+
if (!id)
|
|
52
|
+
return;
|
|
53
|
+
this.experienceAdapter.dispatchCapability(id, 'click');
|
|
54
|
+
this.action.emit();
|
|
55
|
+
}
|
|
56
|
+
static {
|
|
57
|
+
tslib_1.__runInitializers(_classThis, _classExtraInitializers);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
return ButtonComponent = _classThis;
|
|
61
|
+
})();
|
|
62
|
+
exports.ButtonComponent = ButtonComponent;
|
|
63
|
+
//# sourceMappingURL=button.component.js.map
|
package/dist/packages/angular-renderer/src/components/primitives/button/button.component.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.component.js","sourceRoot":"","sources":["../../../../../../../packages/angular-renderer/src/components/primitives/button/button.component.ts"],"names":[],"mappings":";;;;AAAA,wCAQuB;AAGvB,iGAA+F;IAqBlF,eAAe;4BAX3B,IAAA,gBAAS,EAAC;YACT,QAAQ,EAAE,cAAc;YACxB,UAAU,EAAE,IAAI;YAChB,WAAW,EAAE,yBAAyB;YACtC,SAAS,EAAE,CAAC,yBAAyB,CAAC;YACtC,eAAe,EAAE,8BAAuB,CAAC,MAAM;YAC/C,aAAa,EAAE,wBAAiB,CAAC,SAAS;YAC1C,IAAI,EAAE;gBACJ,sBAAsB,EAAE,MAAM;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