@ind-rcg/plugins-printengine 246.1010.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.
- package/LICENSE.md +37 -0
- package/README.md +7 -0
- package/dist/dev/fonts/LICENSE.txt +202 -0
- package/dist/dev/fonts/Roboto-Italic.ttf +0 -0
- package/dist/dev/fonts/Roboto-Medium.ttf +0 -0
- package/dist/dev/fonts/Roboto-MediumItalic.ttf +0 -0
- package/dist/dev/fonts/Roboto-Regular.ttf +0 -0
- package/dist/dev/printEngine.js +589 -0
- package/dist/dev/src/contractToIntermediateJSONClass.js +1659 -0
- package/dist/dev/src/formatClass.js +156 -0
- package/dist/dev/src/index.js +110 -0
- package/dist/dev/src/localizationClass.js +89 -0
- package/dist/dev/src/logClass.js +38 -0
- package/dist/dev/src/macroHandlerClass.js +132 -0
- package/dist/dev/src/pdfConverterClass.js +1123 -0
- package/dist/dev/src/printEngineParams.js +124 -0
- package/dist/dev/src/tableCellIdentifier.js +116 -0
- package/dist/dev/src/togglesClass.js +61 -0
- package/dist/prod/printEngine.js +2 -0
- package/dist/prod/printEngine.js.LICENSE.txt +50 -0
- package/package.json +79 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* The buffer module from node.js, for the browser.
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*!
|
|
9
|
+
* The buffer module from node.js, for the browser.
|
|
10
|
+
*
|
|
11
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
12
|
+
* @license MIT
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/*!
|
|
16
|
+
* js-logger - http://github.com/jonnyreeves/js-logger
|
|
17
|
+
* Jonny Reeves, http://jonnyreeves.co.uk/
|
|
18
|
+
* js-logger may be freely distributed under the MIT license.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
22
|
+
|
|
23
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
24
|
+
|
|
25
|
+
/*! pdfmake v0.2.7, @license MIT, @link http://pdfmake.org */
|
|
26
|
+
|
|
27
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @license
|
|
31
|
+
* Lodash <https://lodash.com/>
|
|
32
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
33
|
+
* Released under MIT license <https://lodash.com/license>
|
|
34
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
35
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/** @preserve
|
|
39
|
+
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
40
|
+
* derived from CryptoJS.mode.CTR
|
|
41
|
+
* Jan Hruby jhruby.web@gmail.com
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/** @preserve
|
|
45
|
+
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
46
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
47
|
+
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
48
|
+
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
49
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
50
|
+
*/
|
package/package.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ind-rcg/plugins-printengine",
|
|
3
|
+
"version": "246.1010.0",
|
|
4
|
+
"browser": "dist/prod/printEngine.js",
|
|
5
|
+
"main": "dist/dev/src/index.js",
|
|
6
|
+
"author": "Salesforce",
|
|
7
|
+
"license": "BSD-3-Clause",
|
|
8
|
+
"description": "PDF Printing Engine module to grant PDF generation, saving and sharing in Consumer Goods Cloud Mobility App.",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "webpack --progress",
|
|
11
|
+
"lint": "./node_modules/.bin/eslint -c .eslintrc.json src/*.js unitTests/*.js unitTestsKarma/*.js",
|
|
12
|
+
"coverage": "nyc mocha \"unitTests/test*.js\"",
|
|
13
|
+
"test": "mocha \"unitTests/test*.js\"",
|
|
14
|
+
"test_write": "WRITE_DATA=1 mocha \"unitTests/test*.js\"",
|
|
15
|
+
"test_current": "mocha \"unitTests/testPdfConverter.js\"",
|
|
16
|
+
"test_server": "mocha \"unitTests/test*.js\" --reporter mocha-junit-reporter --reporter-options mochaFile=./unitTestsOutput/test-resultsServer.xml --reporter-options outputs=true --reporter-options includePending=true --reporter-options toConsole=true",
|
|
17
|
+
"test_browser": "node ./node_modules/karma/bin/karma start",
|
|
18
|
+
"psr": "node -e \"require('./unitTests/printReport.js').print()\""
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"buffer": "6.0.3",
|
|
22
|
+
"chai": "4.3.7",
|
|
23
|
+
"clean-webpack-plugin": "4.0.0",
|
|
24
|
+
"copy-webpack-plugin": "11.0.0",
|
|
25
|
+
"eslint": "8.33.0",
|
|
26
|
+
"eslint-config-airbnb-base": "15.0.0",
|
|
27
|
+
"eslint-plugin-import": "2.27.5",
|
|
28
|
+
"karma": "6.4.2",
|
|
29
|
+
"karma-chrome-launcher": "3.2.0",
|
|
30
|
+
"karma-junit-reporter": "2.0.1",
|
|
31
|
+
"karma-mocha": "2.0.1",
|
|
32
|
+
"mocha": "10.2.0",
|
|
33
|
+
"mocha-junit-reporter": "2.2.0",
|
|
34
|
+
"nyc": "15.1.0",
|
|
35
|
+
"path-browserify": "1.0.1",
|
|
36
|
+
"pdf-lib": "1.17.1",
|
|
37
|
+
"rewire": "5.0.0",
|
|
38
|
+
"stream-browserify": "3.0.0",
|
|
39
|
+
"url": "0.11.0",
|
|
40
|
+
"webpack": "5.75.0",
|
|
41
|
+
"webpack-cli": "5.0.1",
|
|
42
|
+
"simple-mock": "0.8.0"
|
|
43
|
+
},
|
|
44
|
+
"nyc": {
|
|
45
|
+
"exclude": [
|
|
46
|
+
"node_modules/**",
|
|
47
|
+
"dist/**",
|
|
48
|
+
"unitTestHelper",
|
|
49
|
+
"unitTestsKarma",
|
|
50
|
+
"karma.conf.js",
|
|
51
|
+
"webpack.config.js"
|
|
52
|
+
],
|
|
53
|
+
"check-coverage": true,
|
|
54
|
+
"all": true,
|
|
55
|
+
"report-dir": "nyc_output/reports",
|
|
56
|
+
"temp-directory": "nyc_output/",
|
|
57
|
+
"reporter": [
|
|
58
|
+
"lcov",
|
|
59
|
+
"cobertura",
|
|
60
|
+
"text-summary"
|
|
61
|
+
],
|
|
62
|
+
"statements": 95,
|
|
63
|
+
"branches": 90,
|
|
64
|
+
"functions": 95,
|
|
65
|
+
"lines": 95
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"dayjs": "1.11.7",
|
|
69
|
+
"get-stream": "6.0.1",
|
|
70
|
+
"js-logger": "1.6.1",
|
|
71
|
+
"lodash": "4.17.21",
|
|
72
|
+
"memorystream": "0.3.1",
|
|
73
|
+
"pdfmake": "0.2.7",
|
|
74
|
+
"xml-js": "1.6.11"
|
|
75
|
+
},
|
|
76
|
+
"files": [
|
|
77
|
+
"dist"
|
|
78
|
+
]
|
|
79
|
+
}
|