reportbro-designer
Advanced tools
Comparing version 3.7.0 to 3.8.0
{ | ||
"name": "reportbro-designer", | ||
"version": "3.7.0", | ||
"version": "3.8.0", | ||
"description": "Designer to create pdf and excel report layouts. The reports can be generated with reportbro-lib (a Python package) on the server.", | ||
@@ -32,3 +32,3 @@ "keywords": [ | ||
"build": "webpack", | ||
"build-prod": "webpack --config webpack.config.prod.js && uglifyjs ./dist/reportbro.js --comments '/Copyright/' -c -m -o ./dist/reportbro.min.js --source-map filename=\"'./dist/reportbro.min.js.map'\"" | ||
"build-prod": "webpack --config webpack.config.prod.js" | ||
}, | ||
@@ -55,5 +55,5 @@ "dependencies": { | ||
"style-loader": "^3.1.1", | ||
"uglify-js": "^3.15.5", | ||
"webpack": "^5.72.1", | ||
"webpack-cli": "^4.9.2" | ||
"webpack-cli": "^4.9.2", | ||
"webpack-merge": "^5.10.0" | ||
}, | ||
@@ -60,0 +60,0 @@ "optionalDependencies": { |
@@ -18,3 +18,3 @@ # ReportBro Designer | ||
+ Extract .tgz file and move `dist` folder to your application | ||
+ In your .html document reference reportbro.js (or reportbro.min.js) and reportbro.css. See basic usage below. | ||
+ In your .html document reference reportbro.js and reportbro.css. See basic usage below. | ||
@@ -27,3 +27,3 @@ ### Install via npm: | ||
Go to the [docs](https://www.reportbro.com/doc/api) for more information. There are demos for different use cases available at: https://www.reportbro.com/demo/invoice. | ||
Go to the [docs](https://www.reportbro.com/framework/api) for more information. There are demos for different use cases available at: https://www.reportbro.com/demo/invoice. | ||
@@ -89,3 +89,3 @@ Include the ReportBro JavaScript file as well as the ReportBro stylesheet in the `<head>` of your page. | ||
If you want to use ReportBro to develop commercial applications and projects, the Commercial license is the appropriate license. With this license, your source code is kept proprietary. Purchase a ReportBro Commercial license at https://www.reportbro.com/license/ | ||
If you want to use ReportBro to develop commercial applications and projects, the Commercial license is the appropriate license. With this license, your source code is kept proprietary. Purchase a ReportBro Commercial license at https://www.reportbro.com/framework/license | ||
@@ -98,2 +98,2 @@ This license includes ReportBro PLUS with additional features. | ||
Read more about ReportBro's license options at https://www.reportbro.com/license. | ||
Read more about ReportBro's license options at https://www.reportbro.com/framework/license. |
@@ -21,2 +21,4 @@ import DocElement from './DocElement'; | ||
this.repeatHeader = false; | ||
this.backgroundColor = ''; | ||
this.alternateBackgroundColor = ''; | ||
this.alwaysPrintOnSamePage = true; | ||
@@ -86,2 +88,4 @@ this.shrinkToContentHeight = false; | ||
} | ||
} else if (field === 'backgroundColor') { | ||
this.updateStyle(); | ||
} | ||
@@ -105,7 +109,11 @@ } | ||
getProperties() { | ||
let fields; | ||
let fields = ['height', 'backgroundColor', 'shrinkToContentHeight']; | ||
if (this.bandType === Band.bandType.header) { | ||
fields = ['height', 'repeatHeader', 'shrinkToContentHeight']; | ||
fields.push('repeatHeader'); | ||
} else { | ||
fields = ['height', 'alwaysPrintOnSamePage', 'shrinkToContentHeight']; | ||
fields.push('alwaysPrintOnSamePage'); | ||
fields.push('shrinkToContentHeight'); | ||
if (this.bandType === Band.bandType.content) { | ||
fields.push('alternateBackgroundColor'); | ||
} | ||
} | ||
@@ -130,2 +138,6 @@ return fields; | ||
updateStyle() { | ||
this.el.style.backgroundColor = this.backgroundColor; | ||
} | ||
select() { | ||
@@ -132,0 +144,0 @@ super.select(); |
@@ -5,3 +5,2 @@ import DocElement from './DocElement'; | ||
import CommandGroupCmd from '../commands/CommandGroupCmd'; | ||
import SetValueCmd from '../commands/SetValueCmd'; | ||
import Band from '../container/Band'; | ||
@@ -442,11 +441,11 @@ import MainPanelItem from '../menu/MainPanelItem'; | ||
// decrease content row count of table | ||
table.setValue('contentRows', contentRows - 1); | ||
const tableData = table.toJS(); | ||
// decrease content row count in table data for updated table | ||
tableData.contentRows = contentRows - 1; | ||
// remove content row in table data for updated table | ||
tableData.contentDataRows.splice(rowIndex, 1); | ||
// remove content row | ||
table.getValue('contentDataRows').splice(rowIndex, 1); | ||
// restore table with new content row count and updated settings | ||
cmd = new AddDeleteDocElementCmd(true, table.getPanelItem().getPanelName(), | ||
table.toJS(), table.getId(), table.getContainerId(), -1, this.rb); | ||
tableData, table.getId(), table.getContainerId(), -1, this.rb); | ||
cmdGroup.addCommand(cmd); | ||
@@ -453,0 +452,0 @@ |
@@ -241,3 +241,3 @@ import DocElement from './DocElement'; | ||
'cs_paddingLeft', 'cs_paddingTop', 'cs_paddingRight', 'cs_paddingBottom', | ||
'spreadsheet_textWrap' | ||
'spreadsheet_type', 'spreadsheet_pattern', 'spreadsheet_textWrap' | ||
]; | ||
@@ -244,0 +244,0 @@ let tableBandObj = this.rb.getDataObject(this.parentId); |
@@ -81,2 +81,4 @@ import DocElement from './DocElement'; | ||
this.spreadsheet_addEmptyRow = false; | ||
this.spreadsheet_type = ''; | ||
this.spreadsheet_pattern = ''; | ||
this.spreadsheet_textWrap = false; | ||
@@ -170,3 +172,3 @@ this.setInitialData(initialData); | ||
'spreadsheet_hide', 'spreadsheet_column', 'spreadsheet_colspan', | ||
'spreadsheet_addEmptyRow', 'spreadsheet_textWrap' | ||
'spreadsheet_addEmptyRow', 'spreadsheet_type', 'spreadsheet_pattern', 'spreadsheet_textWrap' | ||
]; | ||
@@ -173,0 +175,0 @@ } |
@@ -76,3 +76,8 @@ const locale_de = { | ||
docElementSpreadsheetHide: 'Ausblenden', | ||
docElementSpreadsheetPattern: 'Pattern', | ||
docElementSpreadsheetTextWrap: 'Zeilenumbruch', | ||
docElementSpreadsheetType: 'Typ', | ||
docElementSpreadsheetTypeDate: 'Datum', | ||
docElementSpreadsheetTypeNone: 'Standard', | ||
docElementSpreadsheetTypeNumber: 'Number', | ||
docElementStyle: 'Formatvorlage', | ||
@@ -122,2 +127,4 @@ docElementTable: 'Tabelle', | ||
errorMsgInvalidSize: 'Das Element ist außerhalb des Bereichs', | ||
errorMsgInvalidSpreadsheetDate: 'Inhalt kann nicht zu Datum konvertiert werden, erwartetes Format ist JJJJ-MM-TT (bzw. JJJJ-MM-TT hh:mm für Datum mit Uhrzeit)', | ||
errorMsgInvalidSpreadsheetNumber: 'Inhalt kann nicht zu Zahl konvertiert werden', | ||
errorMsgInvalidTestData: 'Ungültige Testdaten', | ||
@@ -124,0 +131,0 @@ errorMsgMissingData: 'Fehlende Daten', |
@@ -76,3 +76,8 @@ const locale_en = { | ||
docElementSpreadsheetHide: 'Hide', | ||
docElementSpreadsheetPattern: 'Pattern', | ||
docElementSpreadsheetTextWrap: 'Text wrap', | ||
docElementSpreadsheetType: 'Type', | ||
docElementSpreadsheetTypeDate: 'Date', | ||
docElementSpreadsheetTypeNone: 'Default', | ||
docElementSpreadsheetTypeNumber: 'Number', | ||
docElementStyle: 'Style', | ||
@@ -122,2 +127,4 @@ docElementTable: 'Table', | ||
errorMsgInvalidSize: 'The element is outside the area', | ||
errorMsgInvalidSpreadsheetDate: 'The data cannot be converted to date, expected format is YYYY-MM-DD (or YYYY-MM-DD hh:mm for date with time)', | ||
errorMsgInvalidSpreadsheetNumber: 'The data cannot be converted to number', | ||
errorMsgInvalidTestData: 'Invalid test data', | ||
@@ -124,0 +131,0 @@ errorMsgMissingData: 'Missing data', |
@@ -320,3 +320,3 @@ import PanelBase from './PanelBase'; | ||
let elTestData = utils.createElement('input', { id: 'rbro_parameter_test_data', autocomplete: 'off' }); | ||
elTestData.addEventListener('change', (event) => { | ||
elTestData.addEventListener('input', (event) => { | ||
let selectedObject = this.rb.getSelectedObject(); | ||
@@ -323,0 +323,0 @@ if (selectedObject !== null) { |
@@ -389,3 +389,3 @@ String.prototype.reverse = function () { return this.split('').reverse().join(''); }; | ||
while (scanner < input.length && /[a-zA-Z0-9]/.test(input[scanner])) { | ||
while (scanner < input.length && /[a-zA-Z0-9_]/.test(input[scanner])) { | ||
word += input[scanner++]; | ||
@@ -392,0 +392,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24732
12
4758034
85