codeapp-js 0.2.1 → 0.3.0

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 (100) hide show
  1. package/codeApp/.power/schemas/appschemas/dataSourcesInfo.ts +6275 -0
  2. package/codeApp/.power/schemas/jira/jira.Schema.json +6903 -0
  3. package/codeApp/.power/schemas/keyvault/keyvault.Schema.json +1600 -0
  4. package/codeApp/.power/schemas/teams/teams.Schema.json +11112 -0
  5. package/codeApp/dist/codeapp.js +992 -4
  6. package/codeApp/dist/power-apps-data.js +145 -31
  7. package/codeApp/src/generated/index.ts +12 -0
  8. package/codeApp/src/generated/models/AzureKeyVaultModel.ts +107 -0
  9. package/codeApp/src/generated/models/JiraModel.ts +501 -0
  10. package/codeApp/src/generated/models/Office365GroupsModel.ts +363 -0
  11. package/codeApp/src/generated/models/Office365OutlookModel.ts +2046 -0
  12. package/codeApp/src/generated/models/Office365UsersModel.ts +254 -0
  13. package/codeApp/src/generated/services/AzureKeyVaultService.ts +257 -0
  14. package/codeApp/src/generated/services/JiraService.ts +1124 -0
  15. package/codeApp/src/generated/services/Office365GroupsService.ts +326 -0
  16. package/codeApp/src/generated/services/Office365OutlookService.ts +2476 -0
  17. package/codeApp/src/generated/services/Office365UsersService.ts +358 -0
  18. package/dev files/outlook.js +218 -9
  19. package/examples/combined demo/dist/codeapp.js +1098 -1098
  20. package/examples/combined demo/dist/index.js +470 -470
  21. package/examples/combined demo/dist/power-apps-data.js +3006 -3006
  22. package/examples/combined demo/power.config.json +42 -42
  23. package/examples/dataverse Demo/dist/codeapp.js +1085 -1085
  24. package/examples/dataverse Demo/dist/index.html +54 -54
  25. package/examples/dataverse Demo/dist/index.js +82 -82
  26. package/examples/dataverse Demo/dist/power-apps-data.js +2911 -2911
  27. package/examples/dataverse Demo/power.config.json +34 -34
  28. package/examples/dataverse Demo/readme.md +79 -79
  29. package/examples/groups Demo/dist/codeapp.js +1085 -1085
  30. package/examples/groups Demo/dist/index.js +113 -113
  31. package/examples/groups Demo/dist/power-apps-data.js +2911 -2911
  32. package/examples/kanban/dist/dataverse.js +94 -94
  33. package/examples/kanban/dist/environmentVar.js +55 -55
  34. package/examples/kanban/dist/office365groups.js +97 -97
  35. package/examples/kanban/dist/office365users.js +169 -169
  36. package/examples/kanban/dist/outlook.js +162 -162
  37. package/examples/kanban/dist/power-apps-data.js +2953 -2953
  38. package/examples/kanban/dist/sharepoint.js +339 -339
  39. package/examples/myProfile/dist/index.html +184 -184
  40. package/examples/myProfile/dist/index.js +141 -141
  41. package/examples/myProfile/dist/office365users.js +169 -169
  42. package/examples/myProfile/dist/power-apps-data.js +2953 -2953
  43. package/examples/myProfile/power.config.json +22 -22
  44. package/examples/myProfile/readme.md +79 -79
  45. package/examples/outlook Demo/dist/codeapp.js +1085 -1085
  46. package/examples/outlook Demo/dist/index.html +35 -35
  47. package/examples/outlook Demo/dist/index.js +170 -170
  48. package/examples/outlook Demo/dist/outlook.js +121 -121
  49. package/examples/outlook Demo/dist/power-apps-data.js +2911 -2911
  50. package/examples/outlook Demo/dist/styles.css +84 -84
  51. package/examples/outlook Demo/readme.md +82 -82
  52. package/examples/outlook Demo2/OutlookDemo_1_0_0_1.zip +0 -0
  53. package/examples/outlook Demo2/agent/decision-log.md +7 -0
  54. package/examples/{solution explorer → outlook Demo2}/dist/codeapp.js +245 -9
  55. package/examples/outlook Demo2/dist/index.html +98 -0
  56. package/examples/outlook Demo2/dist/index.js +272 -0
  57. package/examples/outlook Demo2/dist/styles.css +639 -0
  58. package/examples/outlook Demo2/power.config.json +23 -0
  59. package/examples/outlook Demo2/src/generated/index.ts +14 -0
  60. package/examples/outlook Demo2/src/generated/models/Office365GroupsModel.ts +363 -0
  61. package/examples/outlook Demo2/src/generated/models/Office365OutlookModel.ts +2046 -0
  62. package/examples/outlook Demo2/src/generated/models/Office365UsersModel.ts +254 -0
  63. package/examples/outlook Demo2/src/generated/services/Office365GroupsService.ts +326 -0
  64. package/examples/outlook Demo2/src/generated/services/Office365OutlookService.ts +2476 -0
  65. package/examples/outlook Demo2/src/generated/services/Office365UsersService.ts +358 -0
  66. package/examples/planning Poker/.vscode/settings.json +4 -4
  67. package/examples/planning Poker/additional files/customizations (tables).xml +6428 -6428
  68. package/examples/planning Poker/additional files/dataverse-tables.json +165 -165
  69. package/examples/planning Poker/additional files/readme.md +122 -122
  70. package/examples/planning Poker/dist/dataverse.js +78 -78
  71. package/examples/planning Poker/dist/index.html +198 -198
  72. package/examples/planning Poker/dist/index.js +954 -954
  73. package/examples/planning Poker/dist/power-apps-data.js +2953 -2953
  74. package/examples/planning Poker/dist/styles.css +815 -815
  75. package/examples/sharePoint Demo/agent/decision-log.md +5 -5
  76. package/examples/sharePoint Demo/dist/codeapp.js +1085 -1085
  77. package/examples/sharePoint Demo/dist/index.js +262 -262
  78. package/examples/sharePoint Demo/dist/power-apps-data.js +2911 -2911
  79. package/examples/sharePoint Demo/power.config.json +22 -22
  80. package/examples/todo/dist/dataverse.js +64 -64
  81. package/examples/todo/dist/index.html +75 -75
  82. package/examples/todo/dist/index.js +8 -8
  83. package/examples/todo/dist/power-apps-data.js +2953 -2953
  84. package/examples/todo/dist/renderer.js +375 -375
  85. package/examples/todo/dist/styles.css +691 -691
  86. package/examples/todo/power.config.json +34 -34
  87. package/package.json +1 -1
  88. package/readme.md +33 -4
  89. package/examples/solution explorer/agent/decision-log.md +0 -27
  90. package/examples/solution explorer/agent/mockup-01-swiss-grid.html +0 -452
  91. package/examples/solution explorer/agent/mockup-02-dark-glass.html +0 -496
  92. package/examples/solution explorer/agent/mockup-03-paper-console.html +0 -510
  93. package/examples/solution explorer/agent/mockup-04-neon-noir.html +0 -546
  94. package/examples/solution explorer/agent/mockup-05-zen-garden.html +0 -534
  95. package/examples/solution explorer/dist/index.html +0 -80
  96. package/examples/solution explorer/dist/index.js +0 -735
  97. package/examples/solution explorer/dist/styles.css +0 -571
  98. package/examples/solution explorer/power.config.json +0 -151
  99. /package/examples/{solution explorer → outlook Demo2}/dist/icon-512.png +0 -0
  100. /package/examples/{solution explorer → outlook Demo2}/dist/power-apps-data.js +0 -0
@@ -1,496 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Mockup 02 — Dark Glass</title>
7
- <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;600;700&family=Cormorant+Garamond:ital,wght@0,300;1,300&display=swap" rel="stylesheet">
8
- <style>
9
- :root {
10
- --bg-deep: #08080f;
11
- --bg-mid: #0f1019;
12
- --glass: rgba(255,255,255,0.04);
13
- --glass-border: rgba(255,255,255,0.08);
14
- --glass-hover: rgba(255,255,255,0.07);
15
- --text: #e8e6f0;
16
- --muted: #6b6a7e;
17
- --accent: #8b5cf6;
18
- --accent2: #06b6d4;
19
- --glow-accent: rgba(139,92,246,0.35);
20
- --glow-cyan: rgba(6,182,212,0.25);
21
- }
22
- * { box-sizing: border-box; margin: 0; padding: 0; }
23
- body {
24
- min-height: 100vh;
25
- font-family: 'Outfit', sans-serif;
26
- color: var(--text);
27
- background: var(--bg-deep);
28
- overflow-x: hidden;
29
- }
30
-
31
- /* ── Ambient Background ──────────────────── */
32
- body::before {
33
- content: '';
34
- position: fixed;
35
- inset: 0;
36
- background:
37
- radial-gradient(ellipse 60% 50% at 20% 15%, var(--glow-accent), transparent),
38
- radial-gradient(ellipse 50% 45% at 80% 80%, var(--glow-cyan), transparent),
39
- radial-gradient(ellipse 40% 40% at 55% 40%, rgba(236,72,153,0.1), transparent);
40
- pointer-events: none;
41
- z-index: 0;
42
- }
43
-
44
- /* ── Shell ───────────────────────────────── */
45
- .app {
46
- position: relative;
47
- z-index: 1;
48
- max-width: 1480px;
49
- margin: 0 auto;
50
- padding: 28px;
51
- min-height: 100vh;
52
- }
53
-
54
- /* ── Header ──────────────────────────────── */
55
- .header {
56
- display: flex;
57
- align-items: flex-end;
58
- justify-content: space-between;
59
- margin-bottom: 32px;
60
- }
61
- .header h1 {
62
- font-family: 'Cormorant Garamond', serif;
63
- font-weight: 300;
64
- font-style: italic;
65
- font-size: 2.6rem;
66
- line-height: 1;
67
- background: linear-gradient(135deg, #e8e6f0, var(--accent), var(--accent2));
68
- -webkit-background-clip: text;
69
- -webkit-text-fill-color: transparent;
70
- }
71
- .header-right {
72
- display: flex;
73
- align-items: center;
74
- gap: 16px;
75
- }
76
- .env-pill {
77
- font-size: 0.7rem;
78
- font-weight: 300;
79
- letter-spacing: 0.12em;
80
- color: var(--muted);
81
- border: 1px solid var(--glass-border);
82
- background: var(--glass);
83
- backdrop-filter: blur(12px);
84
- padding: 6px 16px;
85
- border-radius: 999px;
86
- }
87
- .search-glass {
88
- width: 260px;
89
- font-family: 'Outfit', sans-serif;
90
- font-size: 0.8rem;
91
- font-weight: 300;
92
- color: var(--text);
93
- background: var(--glass);
94
- border: 1px solid var(--glass-border);
95
- backdrop-filter: blur(14px);
96
- padding: 10px 18px;
97
- border-radius: 999px;
98
- outline: none;
99
- transition: border 0.3s, box-shadow 0.3s;
100
- }
101
- .search-glass::placeholder { color: var(--muted); }
102
- .search-glass:focus {
103
- border-color: var(--accent);
104
- box-shadow: 0 0 20px var(--glow-accent);
105
- }
106
-
107
- /* ── Stats Row ───────────────────────────── */
108
- .stats-row {
109
- display: grid;
110
- grid-template-columns: repeat(4, 1fr);
111
- gap: 16px;
112
- margin-bottom: 28px;
113
- }
114
- .stat-card {
115
- background: var(--glass);
116
- border: 1px solid var(--glass-border);
117
- backdrop-filter: blur(20px);
118
- border-radius: 20px;
119
- padding: 20px 24px;
120
- transition: transform 0.3s, box-shadow 0.3s;
121
- }
122
- .stat-card:hover {
123
- transform: translateY(-3px);
124
- box-shadow: 0 12px 40px rgba(0,0,0,0.4);
125
- }
126
- .stat-label {
127
- font-size: 0.65rem;
128
- font-weight: 300;
129
- text-transform: uppercase;
130
- letter-spacing: 0.2em;
131
- color: var(--muted);
132
- margin-bottom: 6px;
133
- }
134
- .stat-value {
135
- font-size: 1.8rem;
136
- font-weight: 700;
137
- background: linear-gradient(135deg, var(--text), var(--accent));
138
- -webkit-background-clip: text;
139
- -webkit-text-fill-color: transparent;
140
- }
141
-
142
- /* ── Content Grid ────────────────────────── */
143
- .content {
144
- display: grid;
145
- grid-template-columns: 1fr 1.2fr;
146
- gap: 20px;
147
- }
148
-
149
- /* ── Solutions Cards ─────────────────────── */
150
- .sol-scroll {
151
- display: flex;
152
- flex-direction: column;
153
- gap: 10px;
154
- max-height: calc(100vh - 260px);
155
- overflow-y: auto;
156
- padding-right: 8px;
157
- }
158
- .sol-scroll::-webkit-scrollbar { width: 4px; }
159
- .sol-scroll::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }
160
-
161
- .sol-card {
162
- background: var(--glass);
163
- border: 1px solid var(--glass-border);
164
- backdrop-filter: blur(16px);
165
- border-radius: 16px;
166
- padding: 18px 22px;
167
- cursor: pointer;
168
- transition: all 0.25s;
169
- animation: cardReveal 0.4s ease both;
170
- }
171
- .sol-card:hover {
172
- background: var(--glass-hover);
173
- border-color: rgba(139,92,246,0.25);
174
- box-shadow: 0 0 24px rgba(139,92,246,0.08);
175
- }
176
- .sol-card.active {
177
- border-color: var(--accent);
178
- background: rgba(139,92,246,0.08);
179
- box-shadow: 0 0 36px var(--glow-accent), inset 0 0 30px rgba(139,92,246,0.04);
180
- }
181
- .sol-top {
182
- display: flex;
183
- justify-content: space-between;
184
- align-items: flex-start;
185
- margin-bottom: 8px;
186
- }
187
- .sol-name {
188
- font-size: 0.95rem;
189
- font-weight: 600;
190
- }
191
- .sol-badge {
192
- font-size: 0.58rem;
193
- font-weight: 400;
194
- text-transform: uppercase;
195
- letter-spacing: 0.15em;
196
- padding: 3px 10px;
197
- border-radius: 999px;
198
- border: 1px solid;
199
- }
200
- .sol-badge.managed {
201
- color: var(--accent2);
202
- border-color: rgba(6,182,212,0.3);
203
- background: rgba(6,182,212,0.08);
204
- }
205
- .sol-badge.unmanaged {
206
- color: var(--accent);
207
- border-color: rgba(139,92,246,0.3);
208
- background: rgba(139,92,246,0.08);
209
- }
210
- .sol-meta {
211
- font-size: 0.72rem;
212
- font-weight: 300;
213
- color: var(--muted);
214
- }
215
-
216
- /* ── Detail Panel ────────────────────────── */
217
- .detail-glass {
218
- background: var(--glass);
219
- border: 1px solid var(--glass-border);
220
- backdrop-filter: blur(20px);
221
- border-radius: 24px;
222
- padding: 32px;
223
- max-height: calc(100vh - 260px);
224
- overflow-y: auto;
225
- position: relative;
226
- }
227
- .detail-glass::-webkit-scrollbar { width: 4px; }
228
- .detail-glass::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }
229
-
230
- .detail-empty {
231
- display: flex;
232
- align-items: center;
233
- justify-content: center;
234
- height: 300px;
235
- font-family: 'Cormorant Garamond', serif;
236
- font-style: italic;
237
- font-size: 1.4rem;
238
- color: var(--muted);
239
- }
240
- .detail-title {
241
- font-family: 'Cormorant Garamond', serif;
242
- font-weight: 300;
243
- font-style: italic;
244
- font-size: 2rem;
245
- margin-bottom: 6px;
246
- background: linear-gradient(90deg, var(--text), var(--accent2));
247
- -webkit-background-clip: text;
248
- -webkit-text-fill-color: transparent;
249
- }
250
- .detail-sub {
251
- font-size: 0.72rem;
252
- font-weight: 300;
253
- color: var(--muted);
254
- margin-bottom: 16px;
255
- }
256
- .detail-desc {
257
- font-size: 0.82rem;
258
- font-weight: 300;
259
- color: var(--muted);
260
- line-height: 1.7;
261
- padding-bottom: 20px;
262
- border-bottom: 1px solid var(--glass-border);
263
- margin-bottom: 24px;
264
- }
265
-
266
- /* ── Component Chips ─────────────────────── */
267
- .comp-section-label {
268
- font-size: 0.6rem;
269
- font-weight: 400;
270
- text-transform: uppercase;
271
- letter-spacing: 0.25em;
272
- color: var(--accent);
273
- margin-bottom: 10px;
274
- margin-top: 20px;
275
- }
276
- .comp-section-label:first-of-type { margin-top: 0; }
277
- .comp-chips {
278
- display: flex;
279
- flex-wrap: wrap;
280
- gap: 8px;
281
- }
282
- .comp-chip {
283
- font-size: 0.74rem;
284
- font-weight: 300;
285
- padding: 7px 14px;
286
- border-radius: 10px;
287
- background: rgba(255,255,255,0.03);
288
- border: 1px solid var(--glass-border);
289
- transition: all 0.2s;
290
- animation: chipIn 0.3s ease both;
291
- }
292
- .comp-chip:hover {
293
- background: rgba(139,92,246,0.1);
294
- border-color: rgba(139,92,246,0.3);
295
- transform: translateY(-1px);
296
- }
297
-
298
- /* ── Animations ──────────────────────────── */
299
- @keyframes cardReveal {
300
- from { opacity: 0; transform: translateY(16px) scale(0.97); }
301
- to { opacity: 1; transform: translateY(0) scale(1); }
302
- }
303
- @keyframes chipIn {
304
- from { opacity: 0; transform: scale(0.9); }
305
- to { opacity: 1; transform: scale(1); }
306
- }
307
- </style>
308
- </head>
309
- <body>
310
-
311
- <div class="app">
312
- <div class="header">
313
- <h1>Solution Explorer</h1>
314
- <div class="header-right">
315
- <span class="env-pill">Production Environment</span>
316
- <input type="text" class="search-glass" placeholder="Search solutions…" id="searchInput">
317
- </div>
318
- </div>
319
-
320
- <div class="stats-row" id="statsRow">
321
- <div class="stat-card"><div class="stat-label">Total Solutions</div><div class="stat-value">12</div></div>
322
- <div class="stat-card"><div class="stat-label">Unmanaged</div><div class="stat-value">7</div></div>
323
- <div class="stat-card"><div class="stat-label">Managed</div><div class="stat-value">5</div></div>
324
- <div class="stat-card"><div class="stat-label">Components</div><div class="stat-value">62</div></div>
325
- </div>
326
-
327
- <div class="content">
328
- <div class="sol-scroll" id="solList"></div>
329
- <div class="detail-glass" id="detailPanel">
330
- <div class="detail-empty">Select a solution to explore</div>
331
- </div>
332
- </div>
333
- </div>
334
-
335
- <script>
336
- /* ── Mock Data ────────────────────────────── */
337
- var aSolutions = [
338
- { solutionid: 'a1b2c3d4-0001', friendlyname: 'Core Data Model', uniquename: 'CoreDataModel', version: '3.2.0.1', ismanaged: false, modifiedon: '2026-03-18T14:22:00Z', description: 'Foundation entities, relationships, and business rules for the organisation data model.' },
339
- { solutionid: 'a1b2c3d4-0002', friendlyname: 'Customer Portal', uniquename: 'CustomerPortal', version: '1.8.4.0', ismanaged: false, modifiedon: '2026-03-20T09:45:00Z', description: 'Portal components including web resources, forms, and site maps for the customer-facing application.' },
340
- { solutionid: 'a1b2c3d4-0003', friendlyname: 'Dynamics 365 Sales', uniquename: 'msdyn_Sales', version: '9.0.24031.1002', ismanaged: true, modifiedon: '2026-01-15T00:00:00Z', description: 'Microsoft Dynamics 365 Sales managed solution.' },
341
- { solutionid: 'a1b2c3d4-0004', friendlyname: 'Approval Workflows', uniquename: 'ApprovalWorkflows', version: '2.1.0.0', ismanaged: false, modifiedon: '2026-03-12T11:30:00Z', description: 'Cloud flows and business process flows for multi-stage approval routing.' },
342
- { solutionid: 'a1b2c3d4-0005', friendlyname: 'Power BI Dashboards', uniquename: 'PowerBIDashboards', version: '1.0.3.0', ismanaged: true, modifiedon: '2026-02-28T16:00:00Z', description: 'Embedded Power BI dashboards and charts for executive reporting.' },
343
- { solutionid: 'a1b2c3d4-0006', friendlyname: 'Security Configuration', uniquename: 'SecurityConfig', version: '4.0.0.2', ismanaged: false, modifiedon: '2026-03-21T08:15:00Z', description: 'Security roles, field-level security profiles, and team templates.' },
344
- { solutionid: 'a1b2c3d4-0007', friendlyname: 'Email Templates Pack', uniquename: 'EmailTemplates', version: '1.3.1.0', ismanaged: true, modifiedon: '2025-12-10T10:00:00Z', description: 'Standardised email templates for customer communications.' },
345
- { solutionid: 'a1b2c3d4-0008', friendlyname: 'Integration Hub', uniquename: 'IntegrationHub', version: '2.5.0.0', ismanaged: false, modifiedon: '2026-03-19T15:42:00Z', description: 'Custom connectors, plugins, and webhook configurations for third-party integrations.' },
346
- { solutionid: 'a1b2c3d4-0009', friendlyname: 'Canvas Apps Collection', uniquename: 'CanvasApps', version: '1.1.0.0', ismanaged: false, modifiedon: '2026-03-17T13:20:00Z', description: 'Suite of canvas apps for field workers and mobile scenarios.' },
347
- { solutionid: 'a1b2c3d4-0010', friendlyname: 'Dataverse Accelerator', uniquename: 'DataverseAccelerator', version: '1.0.0.1', ismanaged: true, modifiedon: '2026-01-05T00:00:00Z', description: 'Microsoft accelerator components for rapid Dataverse development.' },
348
- { solutionid: 'a1b2c3d4-0011', friendlyname: 'Field Service Extensions', uniquename: 'FSExtensions', version: '2.0.1.0', ismanaged: false, modifiedon: '2026-03-15T10:30:00Z', description: 'Custom entities, forms, and business rules extending Dynamics 365 Field Service.' },
349
- { solutionid: 'a1b2c3d4-0012', friendlyname: 'AI Builder Models', uniquename: 'AIBuilderModels', version: '1.2.0.0', ismanaged: true, modifiedon: '2026-02-20T09:00:00Z', description: 'Pre-trained and custom AI Builder models for document processing and prediction.' },
350
- ];
351
-
352
- var oComponentMap = {
353
- 1: 'Entity', 2: 'Attribute', 9: 'Option Set', 10: 'Entity Relationship',
354
- 20: 'Security Role', 24: 'Workflow', 25: 'Report', 26: 'Connection Role',
355
- 29: 'Site Map', 31: 'System Form', 36: 'Dashboard', 59: 'Chart',
356
- 61: 'Web Resource', 62: 'Plugin Type', 63: 'Plugin Assembly',
357
- 65: 'SDK Message Step', 70: 'Model-driven App', 80: 'Canvas App', 300: 'Cloud Flow'
358
- };
359
-
360
- var oSolutionComponents = {
361
- 'a1b2c3d4-0001': [
362
- { componenttype: 1, objectid: 'e001', name: 'account' }, { componenttype: 1, objectid: 'e002', name: 'contact' },
363
- { componenttype: 1, objectid: 'e003', name: 'cr8b2_project' }, { componenttype: 1, objectid: 'e004', name: 'cr8b2_milestone' },
364
- { componenttype: 2, objectid: 'a001', name: 'cr8b2_project.cr8b2_status' }, { componenttype: 2, objectid: 'a002', name: 'cr8b2_project.cr8b2_startdate' },
365
- { componenttype: 10, objectid: 'r001', name: 'cr8b2_project_account' }, { componenttype: 9, objectid: 'o001', name: 'cr8b2_projectstatus' },
366
- ],
367
- 'a1b2c3d4-0002': [
368
- { componenttype: 61, objectid: 'w001', name: 'portal_main.js' }, { componenttype: 61, objectid: 'w002', name: 'portal_styles.css' },
369
- { componenttype: 61, objectid: 'w003', name: 'portal_home.html' }, { componenttype: 31, objectid: 'f001', name: 'Contact - Portal Main Form' },
370
- { componenttype: 31, objectid: 'f002', name: 'Case - Portal Quick Create' }, { componenttype: 29, objectid: 's001', name: 'Portal Site Map' },
371
- { componenttype: 70, objectid: 'ap01', name: 'Customer Self-Service' },
372
- ],
373
- 'a1b2c3d4-0003': [
374
- { componenttype: 1, objectid: 'e010', name: 'opportunity' }, { componenttype: 1, objectid: 'e011', name: 'quote' },
375
- { componenttype: 1, objectid: 'e012', name: 'salesorder' }, { componenttype: 1, objectid: 'e013', name: 'invoice' },
376
- { componenttype: 24, objectid: 'wf01', name: 'Opportunity Close Process' }, { componenttype: 36, objectid: 'd001', name: 'Sales Dashboard' },
377
- { componenttype: 59, objectid: 'ch01', name: 'Revenue by Quarter' }, { componenttype: 70, objectid: 'ap02', name: 'Sales Hub' },
378
- ],
379
- 'a1b2c3d4-0004': [
380
- { componenttype: 300, objectid: 'cf01', name: 'Approval - Manager Sign-off' }, { componenttype: 300, objectid: 'cf02', name: 'Approval - Finance Review' },
381
- { componenttype: 300, objectid: 'cf03', name: 'Approval - VP Escalation' }, { componenttype: 24, objectid: 'wf02', name: 'Invoice Approval BPF' },
382
- { componenttype: 1, objectid: 'e020', name: 'cr8b2_approvalrequest' },
383
- ],
384
- 'a1b2c3d4-0005': [
385
- { componenttype: 36, objectid: 'd010', name: 'Executive Overview' }, { componenttype: 36, objectid: 'd011', name: 'Sales Performance' },
386
- { componenttype: 36, objectid: 'd012', name: 'Service Metrics' }, { componenttype: 59, objectid: 'ch10', name: 'Pipeline Funnel' },
387
- ],
388
- 'a1b2c3d4-0006': [
389
- { componenttype: 20, objectid: 'sr01', name: 'Sales Manager' }, { componenttype: 20, objectid: 'sr02', name: 'Service Agent' },
390
- { componenttype: 20, objectid: 'sr03', name: 'System Administrator' }, { componenttype: 20, objectid: 'sr04', name: 'Read-Only User' },
391
- { componenttype: 20, objectid: 'sr05', name: 'Finance Approver' },
392
- ],
393
- 'a1b2c3d4-0007': [
394
- { componenttype: 61, objectid: 'w010', name: 'template_welcome.html' }, { componenttype: 61, objectid: 'w011', name: 'template_invoice.html' },
395
- { componenttype: 61, objectid: 'w012', name: 'template_reminder.html' },
396
- ],
397
- 'a1b2c3d4-0008': [
398
- { componenttype: 63, objectid: 'pa01', name: 'IntegrationHub.Plugins' }, { componenttype: 62, objectid: 'pt01', name: 'SyncContactPlugin' },
399
- { componenttype: 62, objectid: 'pt02', name: 'WebhookDispatcher' }, { componenttype: 65, objectid: 'sm01', name: 'PostCreate - SyncContact' },
400
- { componenttype: 65, objectid: 'sm02', name: 'PostUpdate - DispatchWebhook' }, { componenttype: 300, objectid: 'cf10', name: 'Sync to ERP Nightly' },
401
- ],
402
- 'a1b2c3d4-0009': [
403
- { componenttype: 80, objectid: 'ca01', name: 'Field Inspection App' }, { componenttype: 80, objectid: 'ca02', name: 'Expense Report App' },
404
- { componenttype: 80, objectid: 'ca03', name: 'Time Tracker App' },
405
- ],
406
- 'a1b2c3d4-0010': [
407
- { componenttype: 1, objectid: 'e030', name: 'cr8b2_acceleratorconfig' }, { componenttype: 61, objectid: 'w020', name: 'accelerator_bundle.js' },
408
- { componenttype: 70, objectid: 'ap10', name: 'Accelerator Studio' },
409
- ],
410
- 'a1b2c3d4-0011': [
411
- { componenttype: 1, objectid: 'e040', name: 'cr8b2_workorder_ext' }, { componenttype: 2, objectid: 'a010', name: 'cr8b2_workorder_ext.cr8b2_priority' },
412
- { componenttype: 31, objectid: 'f010', name: 'Work Order - Extended Form' }, { componenttype: 24, objectid: 'wf10', name: 'Auto-assign Work Order' },
413
- { componenttype: 300, objectid: 'cf20', name: 'Notify Technician' },
414
- ],
415
- 'a1b2c3d4-0012': [
416
- { componenttype: 61, objectid: 'w030', name: 'ai_invoice_processor' }, { componenttype: 61, objectid: 'w031', name: 'ai_prediction_model' },
417
- { componenttype: 300, objectid: 'cf30', name: 'Process Incoming Documents' },
418
- ],
419
- };
420
-
421
- /* ── Renderers ────────────────────────────── */
422
- function formatDate(sISO) {
423
- var d = new Date(sISO);
424
- return d.toLocaleDateString('en-GB', { day: '2-digit', month: 'short', year: 'numeric' });
425
- }
426
-
427
- function renderSolutions(aFiltered) {
428
- var eList = document.getElementById('solList');
429
- eList.innerHTML = '';
430
- aFiltered.forEach(function(sol, i) {
431
- var div = document.createElement('div');
432
- div.className = 'sol-card';
433
- div.style.animationDelay = (i * 0.05) + 's';
434
- div.innerHTML =
435
- '<div class="sol-top">' +
436
- '<span class="sol-name">' + sol.friendlyname + '</span>' +
437
- '<span class="sol-badge ' + (sol.ismanaged ? 'managed' : 'unmanaged') + '">' + (sol.ismanaged ? 'Managed' : 'Unmanaged') + '</span>' +
438
- '</div>' +
439
- '<div class="sol-meta">v' + sol.version + ' · ' + formatDate(sol.modifiedon) + '</div>';
440
- div.addEventListener('click', function() {
441
- document.querySelectorAll('.sol-card').forEach(function(el) { el.classList.remove('active'); });
442
- div.classList.add('active');
443
- renderDetail(sol);
444
- });
445
- eList.appendChild(div);
446
- });
447
- }
448
-
449
- function renderDetail(sol) {
450
- var ePanel = document.getElementById('detailPanel');
451
- var aComps = oSolutionComponents[sol.solutionid] || [];
452
-
453
- var oGroups = {};
454
- aComps.forEach(function(c) {
455
- var sType = oComponentMap[c.componenttype] || ('Type ' + c.componenttype);
456
- if (!oGroups[sType]) oGroups[sType] = [];
457
- oGroups[sType].push(c);
458
- });
459
-
460
- var sHTML =
461
- '<div class="detail-title">' + sol.friendlyname + '</div>' +
462
- '<div class="detail-sub">' + sol.uniquename + ' · v' + sol.version + ' · ' + (sol.ismanaged ? 'Managed' : 'Unmanaged') + ' · ' + formatDate(sol.modifiedon) + '</div>';
463
-
464
- if (sol.description) {
465
- sHTML += '<div class="detail-desc">' + sol.description + '</div>';
466
- }
467
-
468
- var iChipDelay = 0;
469
- Object.keys(oGroups).sort().forEach(function(sType) {
470
- sHTML += '<div class="comp-section-label">' + sType + ' (' + oGroups[sType].length + ')</div>';
471
- sHTML += '<div class="comp-chips">';
472
- oGroups[sType].forEach(function(c) {
473
- sHTML += '<div class="comp-chip" style="animation-delay:' + (iChipDelay * 0.04) + 's">' + c.name + '</div>';
474
- iChipDelay++;
475
- });
476
- sHTML += '</div>';
477
- });
478
-
479
- ePanel.innerHTML = sHTML;
480
- }
481
-
482
- /* ── Search ───────────────────────────────── */
483
- document.getElementById('searchInput').addEventListener('input', function(evt) {
484
- var sQuery = evt.target.value.toLowerCase();
485
- var aFiltered = aSolutions.filter(function(s) {
486
- return s.friendlyname.toLowerCase().indexOf(sQuery) !== -1 ||
487
- s.uniquename.toLowerCase().indexOf(sQuery) !== -1;
488
- });
489
- renderSolutions(aFiltered);
490
- });
491
-
492
- /* ── Init ─────────────────────────────────── */
493
- renderSolutions(aSolutions);
494
- </script>
495
- </body>
496
- </html>