@icreate/ics-chromely-plugin-report-js-sdk
Advanced tools
Comparing version 0.0.2 to 0.0.3
import icsChromelyRequest from '@icreate/ics-chromely-js-sdk'; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
@@ -37,3 +37,3 @@ | ||
return icsChromelyRequest.function({ | ||
url: "Report/" + url, | ||
url: "Report/".concat(url), | ||
method: method, | ||
@@ -49,3 +49,3 @@ data: __assign(__assign({}, data), { instanceId: this.instanceId }) | ||
Report.prototype.registerData = function (name, data) { | ||
return this.OperateEx('RegisterData', { name: name, data: data }, 'POST'); | ||
return this.OperateEx('RegisterData', { name: name, data: JSON.stringify(data) }, 'POST'); | ||
}; | ||
@@ -108,3 +108,3 @@ // 设置双面打印 | ||
export default Report; | ||
export { Report as default }; | ||
//# sourceMappingURL=ics-chromely-plugin-report-js-sdk.es5.js.map |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@icreate/ics-chromely-js-sdk')) : | ||
typeof define === 'function' && define.amd ? define(['@icreate/ics-chromely-js-sdk'], factory) : | ||
(global.icsChromelyPluginReportJsSdk = factory(global.icsChromelyRequest)); | ||
}(this, (function (icsChromelyRequest) { 'use strict'; | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.icsChromelyPluginReportJsSdk = factory(global.icsChromelyRequest)); | ||
})(this, (function (icsChromelyRequest) { 'use strict'; | ||
icsChromelyRequest = icsChromelyRequest && icsChromelyRequest.hasOwnProperty('default') ? icsChromelyRequest['default'] : icsChromelyRequest; | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
var icsChromelyRequest__default = /*#__PURE__*/_interopDefaultLegacy(icsChromelyRequest); | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
@@ -42,4 +44,4 @@ | ||
// let opts = | ||
return icsChromelyRequest.function({ | ||
url: "Report/" + url, | ||
return icsChromelyRequest__default["default"].function({ | ||
url: "Report/".concat(url), | ||
method: method, | ||
@@ -55,3 +57,3 @@ data: __assign(__assign({}, data), { instanceId: this.instanceId }) | ||
Report.prototype.registerData = function (name, data) { | ||
return this.OperateEx('RegisterData', { name: name, data: data }, 'POST'); | ||
return this.OperateEx('RegisterData', { name: name, data: JSON.stringify(data) }, 'POST'); | ||
}; | ||
@@ -116,3 +118,3 @@ // 设置双面打印 | ||
}))); | ||
})); | ||
//# sourceMappingURL=ics-chromely-plugin-report-js-sdk.umd.js.map |
@@ -18,3 +18,3 @@ "use strict"; | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-07-27 18:06:02 | ||
* @LastEditTime: 2022-09-02 12:59:08 | ||
* @Description: | ||
@@ -32,3 +32,3 @@ * @FilePath: \ics-chromely-plugin-report\src\core\report.ts | ||
return ics_chromely_js_sdk_1.default.function({ | ||
url: "Report/" + url, | ||
url: "Report/".concat(url), | ||
method: method, | ||
@@ -44,3 +44,3 @@ data: __assign(__assign({}, data), { instanceId: this.instanceId }) | ||
Report.prototype.registerData = function (name, data) { | ||
return this.OperateEx('RegisterData', { name: name, data: data }, 'POST'); | ||
return this.OperateEx('RegisterData', { name: name, data: JSON.stringify(data) }, 'POST'); | ||
}; | ||
@@ -47,0 +47,0 @@ // 设置双面打印 |
{ | ||
"name": "@icreate/ics-chromely-plugin-report-js-sdk", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "提供报表设计、清空、预览、打印、注册数据源等功能", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -5,3 +5,3 @@ <!-- | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-07-27 18:08:22 | ||
* @LastEditTime: 2022-09-02 13:03:44 | ||
* @Descripttion: | ||
@@ -17,2 +17,5 @@ * @FilePath: \ics-chromely-plugin-report\README.md | ||
### Features | ||
``` | ||
0.0.3 将注册数据源数据转为为json字符串 | ||
``` | ||
@@ -27,3 +30,3 @@ - LocalLogger:报表 | ||
```javascript | ||
import { reportHelper } from '@icreate/ics-chromely-plugin-report-js-sdk' | ||
import ReportHelper from '@icreate/ics-chromely-plugin-report-js-sdk' | ||
``` | ||
@@ -65,9 +68,10 @@ | ||
```javascript | ||
reportHelper.load('xxxx.frx') | ||
reportHelper.clearData() | ||
reportHelper.registerData('患者基本信息',[{ id:"1",name:"张三"}]) | ||
reportHelper.design() //设计报表 | ||
reportHelper.show() //预览报表 | ||
reportHelper.print() //打印报表 | ||
const reportHelper = new ReportHelper() | ||
await reportHelper.load('xxxx.frx') | ||
await reportHelper.clearData() | ||
await reportHelper.registerData('患者基本信息',[{ id:"1",name:"张三"}]) | ||
await reportHelper.design() //设计报表 | ||
await reportHelper.show() //预览报表 | ||
await reportHelper.print() //打印报表 | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
32443
0
329
74
0