@piserve-tech/octa-form-submission-webcomponent 1.0.17 → 1.0.19
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/package.json +9 -9
- package/sample.html +20 -0
- package/copy-assets.js +0 -47
- package/src/assets/octa-form-submission-webcomponent/bundle.css +0 -18
- package/src/assets/octa-form-submission-webcomponent/bundle.js +0 -4
- package/src/assets/octa-form-submission-webcomponent/fonts/Garamond.woff2 +0 -0
- package/src/assets/octa-form-submission-webcomponent/fonts/Georgia.woff2 +0 -0
- package/src/assets/octa-form-submission-webcomponent/fonts/Poppins.woff2 +0 -0
- package/src/assets/octa-form-submission-webcomponent/fonts/Tahoma.woff2 +0 -0
- package/src/assets/octa-form-submission-webcomponent/fonts/Tajawal.woff2 +0 -0
- package/src/assets/octa-form-submission-webcomponent/fonts/Verdana.woff2 +0 -0
- package/src/assets/octa-form-submission-webcomponent/icons/copy-icon.svg +0 -6
- package/src/assets/octa-form-submission-webcomponent/icons/delete-icon.svg +0 -8
- package/src/assets/octa-form-submission-webcomponent/icons/left_arrow.svg +0 -3
- package/src/assets/octa-form-submission-webcomponent/icons/right_arrow.svg +0 -3
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@piserve-tech/octa-form-submission-webcomponent",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "Distributable web component build for form submission (bundle.js, bundle.css, fonts, icons)",
|
|
5
|
-
"main": "src/
|
|
6
|
-
"style": "src/
|
|
5
|
+
"main": "src/bundle.js",
|
|
6
|
+
"style": "src/bundle.css",
|
|
7
7
|
"files": [
|
|
8
|
-
"src/
|
|
9
|
-
"src/
|
|
10
|
-
"src/assets/
|
|
11
|
-
"src/assets/
|
|
12
|
-
"
|
|
8
|
+
"src/bundle.js",
|
|
9
|
+
"src/bundle.css",
|
|
10
|
+
"src/assets/fonts",
|
|
11
|
+
"src/assets/icons",
|
|
12
|
+
"sample.html"
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
15
|
"ng": "ng",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@piserve-tech/drop-down": "1.2.89",
|
|
40
40
|
"@piserve-tech/file-preview": "1.0.0",
|
|
41
41
|
"@piserve-tech/file-upload": "1.1.51",
|
|
42
|
-
"@piserve-tech/octa-form-submission-webcomponent": "^1.0.
|
|
42
|
+
"@piserve-tech/octa-form-submission-webcomponent": "^1.0.18",
|
|
43
43
|
"@syncfusion/ej2-material-theme": "~25.1.40",
|
|
44
44
|
"@types/google.maps": "^3.55.8",
|
|
45
45
|
"@types/googlemaps": "^3.43.3",
|
package/sample.html
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<title>Form Submission Web Component Demo</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<h2>Form Submission Web Component Demo</h2>
|
|
11
|
+
<octa-form-submission-webcomponent
|
|
12
|
+
formData='{"apiurl":"http://192.168.2.189:8080","modulename":"b673ddd3-066e-4261-aa32-41ccfe6e1864","headers":{"contentType":"application/json","auth-user":"John","acceptedLanguage":"en"},"skipMargin":false}'
|
|
13
|
+
submissionid="4a76519a-78aa-4d2c-8abf-52e1bb081ab5"
|
|
14
|
+
edit="false"
|
|
15
|
+
></octa-form-submission-webcomponent>
|
|
16
|
+
|
|
17
|
+
<!-- Place bundle.js in the same directory or update the path accordingly -->
|
|
18
|
+
<script src="./assets/octa-form-submission-webcomponent/bundle.js"></script>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
package/copy-assets.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// Script to copy assets for web component distribution
|
|
2
|
-
const fs = require('fs');
|
|
3
|
-
const path = require('path');
|
|
4
|
-
|
|
5
|
-
function copyRecursiveSync(src, dest) {
|
|
6
|
-
if (!fs.existsSync(src)) return;
|
|
7
|
-
const stats = fs.statSync(src);
|
|
8
|
-
if (stats.isDirectory()) {
|
|
9
|
-
if (!fs.existsSync(dest)) fs.mkdirSync(dest, { recursive: true });
|
|
10
|
-
fs.readdirSync(src).forEach(child => {
|
|
11
|
-
copyRecursiveSync(path.join(src, child), path.join(dest, child));
|
|
12
|
-
});
|
|
13
|
-
} else {
|
|
14
|
-
fs.copyFileSync(src, dest);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
// Determine source: local dist or node_modules
|
|
20
|
-
let srcAssets, srcBundleJs, srcBundleCss;
|
|
21
|
-
if (fs.existsSync(path.join(__dirname, 'dist', 'assets'))) {
|
|
22
|
-
srcAssets = path.join(__dirname, 'dist', 'assets');
|
|
23
|
-
srcBundleJs = path.join(__dirname, 'dist', 'bundle.js');
|
|
24
|
-
srcBundleCss = path.join(__dirname, 'dist', 'bundle.css');
|
|
25
|
-
} else {
|
|
26
|
-
srcAssets = path.join(__dirname, 'node_modules', '@piserve-tech', 'octa-form-submission-webcomponent', 'dist', 'assets');
|
|
27
|
-
srcBundleJs = path.join(__dirname, 'node_modules', '@piserve-tech', 'octa-form-submission-webcomponent', 'dist', 'bundle.js');
|
|
28
|
-
srcBundleCss = path.join(__dirname, 'node_modules', '@piserve-tech', 'octa-form-submission-webcomponent', 'dist', 'bundle.css');
|
|
29
|
-
}
|
|
30
|
-
const destAssets = path.join(process.cwd(), 'src', 'assets', 'octa-form-submission-webcomponent');
|
|
31
|
-
|
|
32
|
-
copyRecursiveSync(srcAssets, destAssets);
|
|
33
|
-
|
|
34
|
-
// Also copy bundle.js and bundle.css
|
|
35
|
-
const destBundleJs = path.join(destAssets, 'bundle.js');
|
|
36
|
-
const destBundleCss = path.join(destAssets, 'bundle.css');
|
|
37
|
-
|
|
38
|
-
if (fs.existsSync(srcBundleJs)) {
|
|
39
|
-
fs.copyFileSync(srcBundleJs, destBundleJs);
|
|
40
|
-
console.log('bundle.js copied to src/assets/octa-form-submission-webcomponent');
|
|
41
|
-
}
|
|
42
|
-
if (fs.existsSync(srcBundleCss)) {
|
|
43
|
-
fs.copyFileSync(srcBundleCss, destBundleCss);
|
|
44
|
-
console.log('bundle.css copied to src/assets/octa-form-submission-webcomponent');
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
console.log('Assets and bundles copied to src/assets/octa-form-submission-webcomponent');
|