codeapp-js 0.3.0 → 1.0.1

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 (158) 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/{examples/combined demo/.power/schemas/office365groups/office365groups.Schema.json → codeApp/.power/schemas/office365groups/office365groups.Schema.json} +2203 -2203
  15. package/codeApp/dist/codeapp.js +95 -1792
  16. package/codeApp/dist/connectors/azureKeyvault.js +459 -0
  17. package/codeApp/dist/connectors/jira.js +1247 -0
  18. package/codeApp/dist/connectors/office365groups.js +642 -0
  19. package/codeApp/dist/connectors/office365users.js +513 -0
  20. package/codeApp/dist/connectors/outlook.js +1393 -0
  21. package/codeApp/dist/connectors/sharepoint.js +466 -0
  22. package/codeApp/dist/connectors/sql.js +149 -0
  23. package/codeApp/dist/connectors/teams.js +280 -0
  24. package/codeApp/dist/power-apps-data.js +16 -2
  25. package/examples/{kanban → apps/kanban}/dist/dataverse.js +94 -94
  26. package/examples/{kanban → apps/kanban}/dist/environmentVar.js +55 -55
  27. package/examples/{kanban → apps/kanban}/dist/index.css +605 -605
  28. package/examples/{kanban → apps/kanban}/dist/index.html +21 -21
  29. package/examples/{kanban → apps/kanban}/dist/index.js +860 -860
  30. package/examples/{kanban → apps/kanban}/dist/office365groups.js +97 -97
  31. package/examples/apps/kanban/dist/office365users.js +451 -0
  32. package/examples/{kanban → apps/kanban}/dist/outlook.js +162 -162
  33. package/examples/{planning Poker/dist/power-apps-data.js → apps/kanban/dist/power-apps-data.js} +2953 -2953
  34. package/examples/{kanban → apps/kanban}/dist/sharepoint.js +435 -339
  35. package/examples/{kanban → apps/kanban}/power.config.json +35 -35
  36. package/examples/{planning Poker → apps/planning Poker}/additional files/customizations (tables).xml +6428 -6428
  37. package/examples/{planning Poker → apps/planning Poker}/additional files/dataverse-tables.json +165 -165
  38. package/examples/{planning Poker → apps/planning Poker}/additional files/readme.md +122 -122
  39. package/examples/{planning Poker → apps/planning Poker}/dist/dataverse.js +78 -78
  40. package/examples/{planning Poker → apps/planning Poker}/dist/index.html +198 -198
  41. package/examples/{planning Poker → apps/planning Poker}/dist/index.js +954 -954
  42. package/examples/{todo/dist/power-apps-data.js → apps/planning Poker/dist/power-apps-data.js } +2953 -2953
  43. package/examples/{planning Poker → apps/planning Poker}/dist/styles.css +815 -815
  44. package/examples/{planning Poker → apps/planning Poker}/power.config.json +50 -50
  45. package/examples/{outlook Demo2 → apps/solution explorer}/dist/codeapp.js +9 -245
  46. package/examples/apps/solution explorer/dist/index.html +80 -0
  47. package/examples/apps/solution explorer/dist/index.js +735 -0
  48. package/examples/apps/solution explorer/dist/styles.css +571 -0
  49. package/examples/apps/solution explorer/power.config.json +151 -0
  50. package/examples/{todo → apps/todo}/dist/dataverse.js +64 -64
  51. package/examples/{todo → apps/todo}/dist/index.html +75 -75
  52. package/examples/{todo → apps/todo}/dist/index.js +8 -8
  53. package/examples/{kanban → apps/todo}/dist/power-apps-data.js +2953 -2953
  54. package/examples/{todo → apps/todo}/dist/renderer.js +375 -375
  55. package/examples/{todo → apps/todo}/dist/styles.css +691 -691
  56. package/examples/{todo → apps/todo}/power.config.json +34 -34
  57. package/examples/combined demo/.power/schemas/appschemas/dataSourcesInfo.ts +6275 -7830
  58. package/examples/combined demo/.power/schemas/jira/jira.Schema.json +6903 -0
  59. package/examples/combined demo/.power/schemas/keyvault/keyvault.Schema.json +1600 -0
  60. package/examples/combined demo/.power/schemas/teams/teams.Schema.json +11112 -0
  61. package/examples/combined demo/dist/codeapp.js +394 -1098
  62. package/examples/{outlook Demo2/OutlookDemo_1_0_0_1.zip → combined demo/dist/icon-512.png} +0 -0
  63. package/examples/combined demo/dist/index.html +29 -511
  64. package/examples/combined demo/dist/index.js +490 -470
  65. package/examples/combined demo/dist/office365users.js +513 -0
  66. package/examples/combined demo/dist/outlook.js +1393 -0
  67. package/examples/combined demo/dist/power-apps-data.js +3079 -3006
  68. package/examples/combined demo/dist/styles.css +483 -0
  69. package/examples/combined demo/power.config.json +33 -42
  70. package/examples/combined demo/src/generated/index.ts +12 -14
  71. package/examples/combined demo/src/generated/models/AzureKeyVaultModel.ts +107 -0
  72. package/examples/combined demo/src/generated/models/JiraModel.ts +501 -0
  73. package/examples/combined demo/src/generated/services/AzureKeyVaultService.ts +257 -0
  74. package/examples/combined demo/src/generated/services/JiraService.ts +1124 -0
  75. package/examples/dataverse Demo/dist/codeapp.js +394 -1085
  76. package/examples/dataverse Demo/dist/icon-512.png +0 -0
  77. package/examples/dataverse Demo/dist/index.html +146 -54
  78. package/examples/dataverse Demo/dist/index.js +693 -83
  79. package/examples/dataverse Demo/dist/power-apps-data.js +3079 -2911
  80. package/examples/dataverse Demo/dist/styles.css +528 -0
  81. package/examples/dataverse Demo/power.config.json +41 -35
  82. package/examples/dataverse Demo/readme.md +79 -79
  83. package/examples/groups Demo/dist/codeapp.js +394 -1085
  84. package/examples/groups Demo/dist/icon-512.png +0 -0
  85. package/examples/groups Demo/dist/index.html +21 -25
  86. package/examples/groups Demo/dist/index.js +304 -113
  87. package/examples/groups Demo/dist/office365groups.js +642 -0
  88. package/examples/groups Demo/dist/power-apps-data.js +3079 -2911
  89. package/examples/groups Demo/dist/styles.css +509 -0
  90. package/examples/groups Demo/power.config.json +25 -25
  91. package/examples/myProfile/dist/codeapp.js +398 -0
  92. package/examples/myProfile/dist/index.html +21 -184
  93. package/examples/myProfile/dist/index.js +324 -141
  94. package/examples/myProfile/dist/office365users.js +517 -169
  95. package/examples/myProfile/dist/power-apps-data.js +3080 -2953
  96. package/examples/myProfile/dist/styles.css +458 -0
  97. package/examples/myProfile/power.config.json +24 -23
  98. package/examples/outlook Demo/dist/codeapp.js +394 -1085
  99. package/examples/outlook Demo/dist/index.html +150 -35
  100. package/examples/outlook Demo/dist/index.js +516 -170
  101. package/examples/outlook Demo/dist/outlook.js +1393 -121
  102. package/examples/outlook Demo/dist/power-apps-data.js +3079 -2911
  103. package/examples/outlook Demo/dist/styles.css +408 -84
  104. package/examples/outlook Demo/power.config.json +24 -23
  105. package/examples/outlook Demo/readme.md +92 -82
  106. package/examples/sharePoint Demo/dist/codeapp.js +394 -1085
  107. package/examples/sharePoint Demo/dist/icon-512.png +0 -0
  108. package/examples/sharePoint Demo/dist/index.html +22 -255
  109. package/examples/sharePoint Demo/dist/index.js +899 -262
  110. package/examples/sharePoint Demo/dist/power-apps-data.js +3079 -2911
  111. package/{dev files → examples/sharePoint Demo/dist}/sharepoint.js +239 -112
  112. package/examples/sharePoint Demo/dist/styles.css +587 -0
  113. package/examples/sharePoint Demo/power.config.json +23 -22
  114. package/package.json +1 -1
  115. package/readme.md +465 -76
  116. package/.vscode/settings.json +0 -6
  117. package/dev files/customConnector.js +0 -98
  118. package/dev files/dataverse.js +0 -120
  119. package/dev files/environmentVar.js +0 -55
  120. package/dev files/office365groups.js +0 -65
  121. package/dev files/office365users.js +0 -169
  122. package/dev files/outlook.js +0 -330
  123. package/dev files/power-apps-data.js +0 -2952
  124. package/examples/combined demo/.power/schemas/office365/office365.Schema.json +0 -21098
  125. package/examples/combined demo/.power/schemas/office365users/office365users.Schema.json +0 -2094
  126. package/examples/kanban/agent/decision-log.md +0 -9
  127. package/examples/kanban/agent/mockup-01-editorial-glass.html +0 -159
  128. package/examples/kanban/agent/mockup-02-dark-rail.html +0 -147
  129. package/examples/kanban/agent/mockup-03-paper-grid.html +0 -114
  130. package/examples/kanban/agent/mockup-04-neon-minimal.html +0 -141
  131. package/examples/kanban/agent/mockup-05-mono-architect.html +0 -119
  132. package/examples/kanban/dist/office365users.js +0 -169
  133. package/examples/kanban/src/generated/index.ts +0 -14
  134. package/examples/kanban/src/generated/models/Office365GroupsModel.ts +0 -363
  135. package/examples/kanban/src/generated/models/Office365OutlookModel.ts +0 -2046
  136. package/examples/kanban/src/generated/models/Office365UsersModel.ts +0 -254
  137. package/examples/kanban/src/generated/services/Office365GroupsService.ts +0 -326
  138. package/examples/kanban/src/generated/services/Office365OutlookService.ts +0 -2476
  139. package/examples/kanban/src/generated/services/Office365UsersService.ts +0 -358
  140. package/examples/outlook Demo2/agent/decision-log.md +0 -7
  141. package/examples/outlook Demo2/dist/index.html +0 -98
  142. package/examples/outlook Demo2/dist/index.js +0 -272
  143. package/examples/outlook Demo2/dist/styles.css +0 -639
  144. package/examples/outlook Demo2/power.config.json +0 -23
  145. package/examples/planning Poker/.vscode/settings.json +0 -5
  146. package/examples/sharePoint Demo/agent/decision-log.md +0 -17
  147. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/index.ts +0 -0
  148. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365GroupsModel.ts +0 -0
  149. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365OutlookModel.ts +0 -0
  150. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/models/Office365UsersModel.ts +0 -0
  151. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365GroupsService.ts +0 -0
  152. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365OutlookService.ts +0 -0
  153. /package/examples/{outlook Demo2 → apps/kanban}/src/generated/services/Office365UsersService.ts +0 -0
  154. /package/examples/{planning Poker → apps/planning Poker}/additional files/AgilePoker_1_0_0_1.zip +0 -0
  155. /package/examples/{planning Poker → apps/planning Poker}/additional files/PokerTables_1_0_0_1.zip +0 -0
  156. /package/examples/{outlook Demo2 → apps/solution explorer}/dist/icon-512.png +0 -0
  157. /package/examples/{outlook Demo2 → apps/solution explorer}/dist/power-apps-data.js +0 -0
  158. /package/examples/{todo → apps/todo}/dist/icon192.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>