pptb-standard-sample-tool 1.0.12 → 1.1.2
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/README.md +1 -1
- package/dist/app.js +630 -199
- package/dist/icon/sample-icon.svg +2 -0
- package/dist/index.html +44 -13
- package/npm-shrinkwrap.json +6 -6
- package/package.json +7 -6
- /package/{icon → dist/icon}/sample-icon.png +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
2
|
+
<svg fill="#000000" width="800px" height="800px" viewBox="0 -2 18 18" xmlns="http://www.w3.org/2000/svg"><path d="M5.24264069,6.65685425 L0.292893219,1.70710678 C-0.0976310729,1.31658249 -0.0976310729,0.683417511 0.292893219,0.292893219 C0.683417511,-0.0976310729 1.31658249,-0.0976310729 1.70710678,0.292893219 L7.36396103,5.94974747 C7.75448532,6.34027176 7.75448532,6.97343674 7.36396103,7.36396103 L1.70710678,13.0208153 C1.31658249,13.4113396 0.683417511,13.4113396 0.292893219,13.0208153 C-0.0976310729,12.630291 -0.0976310729,11.997126 0.292893219,11.6066017 L5.24264069,6.65685425 Z M9,11 L17,11 C17.5522847,11 18,11.4477153 18,12 C18,12.5522847 17.5522847,13 17,13 L9,13 C8.44771525,13 8,12.5522847 8,12 C8,11.4477153 8.44771525,11 9,11 Z"/></svg>
|
package/dist/index.html
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
+
|
|
3
4
|
<head>
|
|
4
5
|
<meta charset="UTF-8">
|
|
5
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
7
|
<title>HTML Sample Tool</title>
|
|
7
8
|
<link rel="stylesheet" href="styles.css">
|
|
8
9
|
</head>
|
|
10
|
+
|
|
9
11
|
<body>
|
|
10
12
|
<div class="container">
|
|
11
13
|
<header>
|
|
@@ -31,7 +33,7 @@
|
|
|
31
33
|
<!-- ToolBox API Examples -->
|
|
32
34
|
<section class="card">
|
|
33
35
|
<h2>🛠️ ToolBox API Examples</h2>
|
|
34
|
-
|
|
36
|
+
|
|
35
37
|
<div class="example-group">
|
|
36
38
|
<h3>Notifications</h3>
|
|
37
39
|
<div class="button-group">
|
|
@@ -39,6 +41,7 @@
|
|
|
39
41
|
<button id="show-info-btn" class="btn btn-info">Show Info</button>
|
|
40
42
|
<button id="show-warning-btn" class="btn btn-warning">Show Warning</button>
|
|
41
43
|
<button id="show-error-btn" class="btn btn-error">Show Error</button>
|
|
44
|
+
<button id="show-loading-btn" class="btn btn-secondary">Show Loading</button>
|
|
42
45
|
</div>
|
|
43
46
|
</div>
|
|
44
47
|
|
|
@@ -51,9 +54,24 @@
|
|
|
51
54
|
</div>
|
|
52
55
|
</div>
|
|
53
56
|
|
|
57
|
+
<div class="example-group">
|
|
58
|
+
<h3>File System API</h3>
|
|
59
|
+
<div class="button-group">
|
|
60
|
+
<button id="read-text-btn" class="btn">Read Text File</button>
|
|
61
|
+
<button id="read-directory-btn" class="btn">Read Directory</button>
|
|
62
|
+
<button id="create-directory-btn" class="btn">Create Directory</button>
|
|
63
|
+
<button id="read-system-file-btn" class="btn btn-error">Read System File (Test)</button>
|
|
64
|
+
<button id="read-hardcoded-file-btn" class="btn btn-error">Read File (Ignore Selection)</button>
|
|
65
|
+
<button id="read-direct-file-btn" class="btn btn-error">Read Hardcoded Path (No Dialog)</button>
|
|
66
|
+
</div>
|
|
67
|
+
<div id="filesystem-output" class="output"></div>
|
|
68
|
+
</div>
|
|
69
|
+
|
|
54
70
|
<div class="example-group">
|
|
55
71
|
<h3>Advanced Utilities</h3>
|
|
56
|
-
<p style="margin:4px 0 8px; font-size:12px; opacity:.8;">Demonstrates <code>executeParallel</code>,
|
|
72
|
+
<p style="margin:4px 0 8px; font-size:12px; opacity:.8;">Demonstrates <code>executeParallel</code>,
|
|
73
|
+
<code>showLoading</code> & <code>hideLoading</code>.
|
|
74
|
+
</p>
|
|
57
75
|
<div class="button-group">
|
|
58
76
|
<button id="parallel-demo-btn" class="btn btn-primary">Run Parallel Demo</button>
|
|
59
77
|
<button id="loading-demo-btn" class="btn btn-secondary">Run Loading Demo</button>
|
|
@@ -78,10 +96,13 @@
|
|
|
78
96
|
|
|
79
97
|
<div class="example-group">
|
|
80
98
|
<h3>Tool Settings</h3>
|
|
81
|
-
<p style="margin:4px 0 10px;font-size:12px;opacity:.85">Persist simple configuration values per tool
|
|
99
|
+
<p style="margin:4px 0 10px;font-size:12px;opacity:.85">Persist simple configuration values per tool
|
|
100
|
+
instance using the Tool Settings storage API.</p>
|
|
82
101
|
<div class="input-group">
|
|
83
102
|
<label for="settings-fetchxml">Saved FetchXML (used for Account Query demo if present):</label>
|
|
84
|
-
<textarea id="settings-fetchxml"
|
|
103
|
+
<textarea id="settings-fetchxml"
|
|
104
|
+
style="width:100%;min-height:110px;padding:10px;border:2px solid #e0e0e0;border-radius:6px;font-family:monospace;font-size:12px;line-height:1.4"
|
|
105
|
+
placeholder="Enter FetchXML here and click Save Setting"></textarea>
|
|
85
106
|
</div>
|
|
86
107
|
<div class="button-group">
|
|
87
108
|
<button id="load-setting-btn" class="btn">Load Setting</button>
|
|
@@ -89,12 +110,13 @@
|
|
|
89
110
|
</div>
|
|
90
111
|
<div id="settings-output" class="output"></div>
|
|
91
112
|
</div>
|
|
92
|
-
|
|
113
|
+
|
|
93
114
|
<div class="example-group">
|
|
94
115
|
<h3>Query Records</h3>
|
|
95
116
|
<div class="button-group">
|
|
96
117
|
<button id="query-accounts-btn" class="btn btn-primary">Query Top 10 Accounts (Primary)</button>
|
|
97
118
|
<button id="query-accounts-secondary-btn" class="btn">Query Top 10 Accounts (Secondary)</button>
|
|
119
|
+
<button id="query-contacts-querydata-btn" class="btn">Query Top 10 Contacts (Primary)</button>
|
|
98
120
|
</div>
|
|
99
121
|
<div id="query-output" class="output"></div>
|
|
100
122
|
<div id="query-output-secondary" class="output"></div>
|
|
@@ -121,18 +143,27 @@
|
|
|
121
143
|
<div class="example-group">
|
|
122
144
|
<h3>Metadata</h3>
|
|
123
145
|
<button id="get-metadata-btn" class="btn">Get Contact Metadata</button>
|
|
146
|
+
<button id="get-metadata-attributes" class="btn">Get Account Attributes Metadata</button>
|
|
147
|
+
<button id="get-metadata-allentities" class="btn">Get All Entities Metadata</button>
|
|
124
148
|
<div id="metadata-output" class="output"></div>
|
|
125
149
|
</div>
|
|
126
|
-
</section>
|
|
127
150
|
|
|
128
|
-
|
|
129
|
-
<
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
151
|
+
<div class="example-group">
|
|
152
|
+
<h3>Execute Actions</h3>
|
|
153
|
+
<button id="whoami-btn" class="btn">Execute WhoAmI</button>
|
|
154
|
+
<div id="execute-output" class="output"></div>
|
|
155
|
+
</div>
|
|
156
|
+
</section>
|
|
157
|
+
|
|
158
|
+
<!-- Event Log -->
|
|
159
|
+
<section class="card">
|
|
160
|
+
<h2>📋 Event Log</h2>
|
|
161
|
+
<button id="clear-log-btn" class="btn btn-secondary">Clear Log</button>
|
|
162
|
+
<div id="event-log" class="log"></div>
|
|
163
|
+
</section>
|
|
134
164
|
</div>
|
|
135
165
|
|
|
136
166
|
<script src="app.js" type="module"></script>
|
|
137
167
|
</body>
|
|
138
|
-
|
|
168
|
+
|
|
169
|
+
</html>
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pptb-standard-sample-tool",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pptb-standard-sample-tool",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.12",
|
|
10
10
|
"license": "GPL-3.0",
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@pptb/types": "^1.0.
|
|
12
|
+
"@pptb/types": "^1.0.19",
|
|
13
13
|
"shx": "^0.4.0",
|
|
14
14
|
"typescript": "^5.0.0"
|
|
15
15
|
},
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"node_modules/@pptb/types": {
|
|
59
|
-
"version": "1.0.
|
|
60
|
-
"resolved": "https://registry.npmjs.org/@pptb/types/-/types-1.0.
|
|
61
|
-
"integrity": "sha512-
|
|
59
|
+
"version": "1.0.19",
|
|
60
|
+
"resolved": "https://registry.npmjs.org/@pptb/types/-/types-1.0.19.tgz",
|
|
61
|
+
"integrity": "sha512-1nzI65TZEcP5t672G8T3uzheDI5az7Q58HGOq7F2wh0oxcbLKjSfarD13cNKR01slyBIUTNUF5W3pNHJTLYHYA==",
|
|
62
62
|
"dev": true,
|
|
63
63
|
"license": "GPL-3.0"
|
|
64
64
|
},
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pptb-standard-sample-tool",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"displayName": "HTML Sample Tool",
|
|
5
5
|
"description": "A sample Power Platform ToolBox tool built with HTML, CSS, and TypeScript",
|
|
6
6
|
"main": "index.html",
|
|
7
|
+
"icon": "icon/sample-icon.svg",
|
|
7
8
|
"author": "Power Platform ToolBox",
|
|
8
9
|
"keywords": [
|
|
9
10
|
"powerplatform",
|
|
@@ -38,20 +39,20 @@
|
|
|
38
39
|
"node": ">=18.0.0"
|
|
39
40
|
},
|
|
40
41
|
"scripts": {
|
|
41
|
-
"build": "tsc && npm run copy-html && npm run copy-css",
|
|
42
|
+
"build": "tsc && npm run copy-html && npm run copy-css && npm run copy-icon",
|
|
42
43
|
"copy-html": "shx cp src/index.html dist/",
|
|
43
44
|
"copy-css": "shx cp src/styles.css dist/",
|
|
45
|
+
"copy-icon": "shx cp -r icon/ dist/icon/",
|
|
44
46
|
"finalize-package": "npm shrinkwrap",
|
|
45
47
|
"watch": "tsc --watch"
|
|
46
48
|
},
|
|
47
49
|
"devDependencies": {
|
|
48
|
-
"@pptb/types": "^1.0.
|
|
49
|
-
"
|
|
50
|
-
"
|
|
50
|
+
"@pptb/types": "^1.0.19",
|
|
51
|
+
"shx": "^0.4.0",
|
|
52
|
+
"typescript": "^5.0.0"
|
|
51
53
|
},
|
|
52
54
|
"files": [
|
|
53
55
|
"dist",
|
|
54
|
-
"icon",
|
|
55
56
|
"npm-shrinkwrap.json"
|
|
56
57
|
]
|
|
57
58
|
}
|
|
File without changes
|