codeapp-js 0.2.2 → 1.0.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 (176) hide show
  1. package/AI/codeapp.agent.md +105 -0
  2. package/AI/skills/connections/SKILL.md +47 -0
  3. package/AI/skills/dataverse/SKILL.md +99 -0
  4. package/AI/skills/environment-variables/SKILL.md +89 -0
  5. package/AI/skills/frontend-design/SKILL.md +34 -0
  6. package/AI/skills/jira/SKILL.md +81 -0
  7. package/AI/skills/office365-groups/SKILL.md +61 -0
  8. package/AI/skills/office365-outlook/SKILL.md +52 -0
  9. package/AI/skills/office365-users/SKILL.md +78 -0
  10. package/AI/skills/sharepoint/SKILL.md +77 -0
  11. package/AI/skills/sql/SKILL.md +85 -0
  12. package/AI/skills/start/SKILL.md +46 -0
  13. package/AI/skills/teams/SKILL.md +55 -0
  14. package/codeApp/.power/schemas/appschemas/dataSourcesInfo.ts +6275 -0
  15. package/codeApp/.power/schemas/jira/jira.Schema.json +6903 -0
  16. package/codeApp/.power/schemas/keyvault/keyvault.Schema.json +1600 -0
  17. package/{examples/combined demo/.power/schemas/office365groups/office365groups.Schema.json → codeApp/.power/schemas/office365groups/office365groups.Schema.json} +2203 -2203
  18. package/codeApp/.power/schemas/teams/teams.Schema.json +11112 -0
  19. package/codeApp/dist/codeapp.js +103 -1043
  20. package/codeApp/dist/connectors/azureKeyvault.js +459 -0
  21. package/codeApp/dist/connectors/jira.js +1247 -0
  22. package/codeApp/dist/connectors/office365groups.js +642 -0
  23. package/codeApp/dist/connectors/office365users.js +513 -0
  24. package/codeApp/dist/connectors/outlook.js +1393 -0
  25. package/{examples/kanban/dist → codeApp/dist/connectors}/sharepoint.js +466 -339
  26. package/codeApp/dist/connectors/sql.js +149 -0
  27. package/codeApp/dist/connectors/teams.js +280 -0
  28. package/codeApp/dist/index.js +1 -1
  29. package/codeApp/dist/power-apps-data.js +725 -176
  30. package/codeApp/src/generated/index.ts +12 -0
  31. package/codeApp/src/generated/models/AzureKeyVaultModel.ts +107 -0
  32. package/codeApp/src/generated/models/JiraModel.ts +501 -0
  33. package/codeApp/src/generated/services/AzureKeyVaultService.ts +257 -0
  34. package/codeApp/src/generated/services/JiraService.ts +1124 -0
  35. package/examples/{kanban → apps/kanban}/dist/dataverse.js +94 -94
  36. package/examples/{kanban → apps/kanban}/dist/index.css +605 -605
  37. package/examples/{kanban → apps/kanban}/dist/index.html +21 -21
  38. package/examples/{kanban → apps/kanban}/dist/index.js +860 -860
  39. package/examples/{kanban → apps/kanban}/dist/office365groups.js +97 -97
  40. package/examples/apps/kanban/dist/office365users.js +451 -0
  41. package/examples/{kanban → apps/kanban}/dist/outlook.js +162 -162
  42. package/examples/{planning Poker/dist/power-apps-data.js → apps/kanban/dist/power-apps-data.js} +2953 -2953
  43. package/{dev files/sharepoint.js → examples/apps/kanban/dist/sharepoint.js} +195 -99
  44. package/examples/{kanban → apps/kanban}/power.config.json +35 -35
  45. package/examples/{planning Poker → apps/planning Poker}/additional files/customizations (tables).xml +6428 -6428
  46. package/examples/{planning Poker → apps/planning Poker}/additional files/dataverse-tables.json +165 -165
  47. package/examples/{planning Poker → apps/planning Poker}/additional files/readme.md +122 -122
  48. package/examples/{planning Poker → apps/planning Poker}/dist/dataverse.js +78 -78
  49. package/examples/{planning Poker → apps/planning Poker}/dist/index.html +198 -198
  50. package/examples/{planning Poker → apps/planning Poker}/dist/index.js +954 -954
  51. package/examples/{kanban/dist/power-apps-data.js → apps/planning Poker/dist/power-apps-data.js } +2953 -2953
  52. package/examples/{planning Poker → apps/planning Poker}/dist/styles.css +815 -815
  53. package/examples/{planning Poker → apps/planning Poker}/power.config.json +50 -50
  54. package/examples/{solution explorer → apps/solution explorer}/dist/codeapp.js +1098 -1098
  55. package/examples/{solution explorer → apps/solution explorer}/dist/index.html +80 -80
  56. package/examples/{solution explorer → apps/solution explorer}/dist/index.js +735 -735
  57. package/examples/{solution explorer → apps/solution explorer}/dist/styles.css +571 -571
  58. package/examples/{solution explorer → apps/solution explorer}/power.config.json +150 -150
  59. package/examples/{todo → apps/todo}/dist/dataverse.js +64 -64
  60. package/examples/{todo → apps/todo}/dist/index.html +75 -75
  61. package/examples/{todo → apps/todo}/dist/index.js +8 -8
  62. package/examples/{todo → apps/todo}/dist/power-apps-data.js +2953 -2953
  63. package/examples/{todo → apps/todo}/dist/renderer.js +375 -375
  64. package/examples/{todo → apps/todo}/dist/styles.css +691 -691
  65. package/examples/{todo → apps/todo}/power.config.json +34 -34
  66. package/examples/combined demo/.power/schemas/appschemas/dataSourcesInfo.ts +6275 -7830
  67. package/examples/combined demo/.power/schemas/jira/jira.Schema.json +6903 -0
  68. package/examples/combined demo/.power/schemas/keyvault/keyvault.Schema.json +1600 -0
  69. package/examples/combined demo/.power/schemas/teams/teams.Schema.json +11112 -0
  70. package/examples/combined demo/dist/codeapp.js +394 -1098
  71. package/examples/combined demo/dist/index.html +29 -511
  72. package/examples/combined demo/dist/index.js +490 -470
  73. package/examples/combined demo/dist/office365users.js +513 -0
  74. package/examples/combined demo/dist/outlook.js +1393 -0
  75. package/examples/combined demo/dist/power-apps-data.js +3079 -3006
  76. package/examples/combined demo/dist/styles.css +483 -0
  77. package/examples/combined demo/power.config.json +33 -42
  78. package/examples/combined demo/src/generated/index.ts +12 -14
  79. package/examples/combined demo/src/generated/models/AzureKeyVaultModel.ts +107 -0
  80. package/examples/combined demo/src/generated/models/JiraModel.ts +501 -0
  81. package/examples/combined demo/src/generated/services/AzureKeyVaultService.ts +257 -0
  82. package/examples/combined demo/src/generated/services/JiraService.ts +1124 -0
  83. package/examples/dataverse Demo/dist/codeapp.js +394 -1085
  84. package/examples/{outlook Demo2/OutlookDemo_1_0_0_1.zip → dataverse Demo/dist/icon-512.png} +0 -0
  85. package/examples/dataverse Demo/dist/index.html +146 -54
  86. package/examples/dataverse Demo/dist/index.js +693 -83
  87. package/examples/dataverse Demo/dist/power-apps-data.js +3079 -2911
  88. package/examples/dataverse Demo/dist/styles.css +528 -0
  89. package/examples/dataverse Demo/power.config.json +41 -35
  90. package/examples/dataverse Demo/readme.md +79 -79
  91. package/examples/groups Demo/dist/codeapp.js +394 -1085
  92. package/examples/groups Demo/dist/icon-512.png +0 -0
  93. package/examples/groups Demo/dist/index.html +21 -25
  94. package/examples/groups Demo/dist/index.js +304 -113
  95. package/examples/groups Demo/dist/office365groups.js +642 -0
  96. package/examples/groups Demo/dist/power-apps-data.js +3079 -2911
  97. package/examples/groups Demo/dist/styles.css +509 -0
  98. package/examples/groups Demo/power.config.json +25 -25
  99. package/examples/myProfile/dist/codeapp.js +398 -0
  100. package/examples/myProfile/dist/index.html +21 -184
  101. package/examples/myProfile/dist/index.js +324 -141
  102. package/examples/myProfile/dist/office365users.js +517 -169
  103. package/examples/myProfile/dist/power-apps-data.js +3080 -2953
  104. package/examples/myProfile/dist/styles.css +458 -0
  105. package/examples/myProfile/power.config.json +24 -23
  106. package/examples/outlook Demo/dist/codeapp.js +394 -1085
  107. package/examples/outlook Demo/dist/index.html +150 -35
  108. package/examples/outlook Demo/dist/index.js +516 -170
  109. package/examples/outlook Demo/dist/outlook.js +1393 -121
  110. package/examples/outlook Demo/dist/power-apps-data.js +3079 -2911
  111. package/examples/outlook Demo/dist/styles.css +408 -84
  112. package/examples/outlook Demo/power.config.json +24 -23
  113. package/examples/outlook Demo/readme.md +92 -82
  114. package/examples/sharePoint Demo/dist/codeapp.js +394 -1085
  115. package/examples/sharePoint Demo/dist/icon-512.png +0 -0
  116. package/examples/sharePoint Demo/dist/index.html +22 -255
  117. package/examples/sharePoint Demo/dist/index.js +899 -262
  118. package/examples/sharePoint Demo/dist/power-apps-data.js +3079 -2911
  119. package/examples/sharePoint Demo/dist/sharepoint.js +466 -0
  120. package/examples/sharePoint Demo/dist/styles.css +587 -0
  121. package/examples/sharePoint Demo/power.config.json +23 -22
  122. package/package.json +1 -1
  123. package/readme.md +479 -61
  124. package/.github/instructions/wyattdave.instructions.md +0 -39
  125. package/.vscode/settings.json +0 -6
  126. package/dev files/dataverse.js +0 -105
  127. package/dev files/office365groups.js +0 -65
  128. package/dev files/office365users.js +0 -169
  129. package/dev files/outlook.js +0 -330
  130. package/examples/combined demo/.power/schemas/office365/office365.Schema.json +0 -21098
  131. package/examples/combined demo/.power/schemas/office365users/office365users.Schema.json +0 -2094
  132. package/examples/kanban/agent/decision-log.md +0 -9
  133. package/examples/kanban/agent/mockup-01-editorial-glass.html +0 -159
  134. package/examples/kanban/agent/mockup-02-dark-rail.html +0 -147
  135. package/examples/kanban/agent/mockup-03-paper-grid.html +0 -114
  136. package/examples/kanban/agent/mockup-04-neon-minimal.html +0 -141
  137. package/examples/kanban/agent/mockup-05-mono-architect.html +0 -119
  138. package/examples/kanban/dist/environmentVar.js +0 -55
  139. package/examples/kanban/dist/office365users.js +0 -169
  140. package/examples/kanban/src/generated/index.ts +0 -14
  141. package/examples/outlook Demo2/agent/decision-log.md +0 -7
  142. package/examples/outlook Demo2/dist/codeapp.js +0 -1334
  143. package/examples/outlook Demo2/dist/index.html +0 -98
  144. package/examples/outlook Demo2/dist/index.js +0 -346
  145. package/examples/outlook Demo2/dist/styles.css +0 -639
  146. package/examples/outlook Demo2/power.config.json +0 -23
  147. package/examples/planning Poker/.vscode/settings.json +0 -5
  148. package/examples/sharePoint Demo/agent/decision-log.md +0 -17
  149. package/examples/solution explorer/agent/decision-log.md +0 -27
  150. package/examples/solution explorer/agent/mockup-01-swiss-grid.html +0 -452
  151. package/examples/solution explorer/agent/mockup-02-dark-glass.html +0 -496
  152. package/examples/solution explorer/agent/mockup-03-paper-console.html +0 -510
  153. package/examples/solution explorer/agent/mockup-04-neon-noir.html +0 -546
  154. package/examples/solution explorer/agent/mockup-05-zen-garden.html +0 -534
  155. package/examples/solution explorer/dist/power-apps-data.js +0 -3007
  156. package/scripts/build-power-sdk.mjs +0 -69
  157. /package/{examples/kanban → codeApp}/src/generated/models/Office365GroupsModel.ts +0 -0
  158. /package/{examples/kanban → codeApp}/src/generated/models/Office365OutlookModel.ts +0 -0
  159. /package/{examples/kanban → codeApp}/src/generated/models/Office365UsersModel.ts +0 -0
  160. /package/{examples/kanban → codeApp}/src/generated/services/Office365GroupsService.ts +0 -0
  161. /package/{examples/kanban → codeApp}/src/generated/services/Office365OutlookService.ts +0 -0
  162. /package/{examples/kanban → codeApp}/src/generated/services/Office365UsersService.ts +0 -0
  163. /package/{dev files → examples/apps/kanban/dist}/environmentVar.js +0 -0
  164. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/index.ts +0 -0
  165. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365GroupsModel.ts +0 -0
  166. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365OutlookModel.ts +0 -0
  167. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365UsersModel.ts +0 -0
  168. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365GroupsService.ts +0 -0
  169. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365OutlookService.ts +0 -0
  170. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365UsersService.ts +0 -0
  171. /package/examples/{planning Poker → apps/planning Poker}/additional files/AgilePoker_1_0_0_1.zip +0 -0
  172. /package/examples/{planning Poker → apps/planning Poker}/additional files/PokerTables_1_0_0_1.zip +0 -0
  173. /package/examples/{outlook Demo2 → apps/solution explorer}/dist/icon-512.png +0 -0
  174. /package/examples/{outlook Demo2 → apps/solution explorer}/dist/power-apps-data.js +0 -0
  175. /package/examples/{todo → apps/todo}/dist/icon192.png +0 -0
  176. /package/examples/{solution explorer → combined demo}/dist/icon-512.png +0 -0
@@ -1,54 +1,146 @@
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>Dataverse Demo</title>
7
- <script type="importmap">
8
- {
9
- "imports": {
10
- "@microsoft/power-apps/data": "./power-apps-data.js"
11
- }
12
- }
13
- </script>
14
- <style>
15
- * { box-sizing: border-box; margin: 0; padding: 0; }
16
- body { font-family: "Segoe UI", sans-serif; background: #f5f5f5; color: #333; padding: 2rem; }
17
- h1 { margin-bottom: 1.5rem; font-size: 1.4rem; }
18
- #add-bar { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
19
- #task-input { flex: 1; padding: .5rem .75rem; border: 1px solid #ccc; border-radius: 6px; font-size: .95rem; }
20
- button { padding: .5rem 1.25rem; border: none; border-radius: 6px; background: #0078d4; color: #fff; font-size: .95rem; cursor: pointer; }
21
- button:hover { background: #106ebe; }
22
- button:disabled { opacity: .5; cursor: not-allowed; }
23
- table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
24
- th, td { text-align: left; padding: .75rem 1rem; }
25
- th { background: #0078d4; color: #fff; font-weight: 600; }
26
- tr:nth-child(even) { background: #fafafa; }
27
- #status { margin-top: 1rem; font-size: .85rem; color: #666; }
28
- </style>
29
- </head>
30
- <body>
31
- <h1>Dataverse Tasks</h1>
32
-
33
- <div id="add-bar">
34
- <input id="task-input" type="text" placeholder="New task subject..." />
35
- <button id="btn-add">Add Task</button>
36
- </div>
37
-
38
- <table>
39
- <thead>
40
- <tr>
41
- <th>Subject</th>
42
- <th>Status</th>
43
- <th>Created On</th>
44
- </tr>
45
- </thead>
46
- <tbody id="task-body">
47
- <tr><td colspan="3">Loading…</td></tr>
48
- </tbody>
49
- </table>
50
- <div id="status"></div>
51
-
52
- <script type="module" src="index.js"></script>
53
- </body>
54
- </html>
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
+ <link rel="icon" type="image/png" href="./icon-512.png" />
7
+ <title>Dataverse Demo</title>
8
+ <link rel="stylesheet" href="styles.css" />
9
+ </head>
10
+ <body>
11
+ <div id="root">
12
+ <div class="page-shell">
13
+ <aside class="side-panel">
14
+ <div class="brand-card">
15
+ <p class="eyebrow">Power Apps Code App</p>
16
+ <h1>Dataverse Task Studio</h1>
17
+ <p class="intro-copy">A polished demo against the standard Dataverse task table, with live CRUD and record sharing to Dataverse users.</p>
18
+ </div>
19
+
20
+ <div class="metrics-grid">
21
+ <article class="metric-card">
22
+ <span class="metric-card__label">Connection</span>
23
+ <strong class="metric-card__value" id="connectionState">Connecting</strong>
24
+ </article>
25
+ <article class="metric-card">
26
+ <span class="metric-card__label">Task records</span>
27
+ <strong class="metric-card__value" id="taskCount">0</strong>
28
+ </article>
29
+ <article class="metric-card">
30
+ <span class="metric-card__label">Share targets</span>
31
+ <strong class="metric-card__value" id="userCount">0</strong>
32
+ </article>
33
+ </div>
34
+
35
+ <div class="command-card">
36
+ <button class="btn btn--ghost" id="btnRefresh" type="button">Refresh data</button>
37
+ <button class="btn btn--accent" id="btnNewTask" type="button">New task</button>
38
+ </div>
39
+
40
+ <div class="filter-card">
41
+ <label class="field-label" for="taskSearch">Search tasks</label>
42
+ <input class="field-input" id="taskSearch" type="search" placeholder="Search by subject or description" />
43
+
44
+ <label class="field-label" for="priorityFilter">Priority filter</label>
45
+ <select class="field-input field-input--select" id="priorityFilter">
46
+ <option value="all">All priorities</option>
47
+ <option value="2">High</option>
48
+ <option value="1">Normal</option>
49
+ <option value="0">Low</option>
50
+ </select>
51
+ </div>
52
+
53
+ <div class="status-card">
54
+ <div class="status-card__header">
55
+ <span>Status</span>
56
+ <span class="status-pill" id="statusTone">Live</span>
57
+ </div>
58
+ <p class="status-copy" id="statusText">Booting Dataverse task workspace...</p>
59
+ <p class="status-copy status-copy--secondary" id="currentUserText">Detecting current Dataverse user...</p>
60
+ </div>
61
+ </aside>
62
+
63
+ <main class="workspace">
64
+ <section class="task-panel">
65
+ <div class="panel-header">
66
+ <div>
67
+ <p class="eyebrow">Task records</p>
68
+ <h2>Live Dataverse list</h2>
69
+ </div>
70
+ <p class="panel-caption" id="listCaption">Showing the latest task records.</p>
71
+ </div>
72
+ <div class="task-list" id="taskList"></div>
73
+ </section>
74
+
75
+ <section class="editor-panel">
76
+ <div class="panel-header panel-header--tight">
77
+ <div>
78
+ <p class="eyebrow">Editor</p>
79
+ <h2 id="editorHeading">New task</h2>
80
+ </div>
81
+ <p class="panel-caption" id="recordMeta">Create a new Dataverse task record.</p>
82
+ </div>
83
+
84
+ <form class="editor-form" id="taskForm">
85
+ <label class="field-label" for="taskTitle">Subject</label>
86
+ <input class="field-input" id="taskTitle" name="taskTitle" type="text" maxlength="200" placeholder="Quarterly planning wrap-up" required />
87
+
88
+ <div class="form-row">
89
+ <div>
90
+ <label class="field-label" for="taskPriority">Priority</label>
91
+ <select class="field-input field-input--select" id="taskPriority" name="taskPriority">
92
+ <option value="2">High</option>
93
+ <option value="1" selected>Normal</option>
94
+ <option value="0">Low</option>
95
+ </select>
96
+ </div>
97
+ <div>
98
+ <label class="field-label" for="taskDueDate">Due date</label>
99
+ <input class="field-input" id="taskDueDate" name="taskDueDate" type="date" />
100
+ </div>
101
+ </div>
102
+
103
+ <label class="field-label" for="taskDescription">Description</label>
104
+ <textarea class="field-input field-input--textarea" id="taskDescription" name="taskDescription" rows="8" placeholder="Use this demo to create, update, delete, and share Dataverse task records."></textarea>
105
+
106
+ <div class="button-row">
107
+ <button class="btn btn--accent" id="btnSaveTask" type="submit">Save task</button>
108
+ <button class="btn btn--ghost" id="btnResetTask" type="button">Reset form</button>
109
+ <button class="btn btn--danger" id="btnDeleteTask" type="button">Delete selected</button>
110
+ </div>
111
+ </form>
112
+
113
+ <section class="share-panel">
114
+ <div class="panel-header panel-header--tight">
115
+ <div>
116
+ <p class="eyebrow">Sharing</p>
117
+ <h2>Grant task access</h2>
118
+ </div>
119
+ <p class="panel-caption">Uses the Dataverse GrantAccess action.</p>
120
+ </div>
121
+
122
+ <div class="form-row">
123
+ <div>
124
+ <label class="field-label" for="shareUser">Dataverse user</label>
125
+ <select class="field-input field-input--select" id="shareUser"></select>
126
+ </div>
127
+ <div>
128
+ <label class="field-label" for="shareAccess">Access level</label>
129
+ <select class="field-input field-input--select" id="shareAccess"></select>
130
+ </div>
131
+ </div>
132
+
133
+ <div class="button-row button-row--single">
134
+ <button class="btn btn--accent" id="btnShareTask" type="button">Share selected task</button>
135
+ </div>
136
+
137
+ <p class="status-copy" id="shareStatusText">Select a task, choose a user, then grant access.</p>
138
+ <div class="share-log" id="shareLog"></div>
139
+ </section>
140
+ </section>
141
+ </main>
142
+ </div>
143
+ </div>
144
+ <script type="module" src="index.js"></script>
145
+ </body>
146
+ </html>