import 'bootstrap.css';
import '@mescius/wijmo.styles/wijmo.css';
import ReactDOM from 'react-dom/client';
import React, { useEffect, useRef, useState } from 'react';
import useEvent from 'react-use-event-hook';
import * as chart from '@mescius/wijmo.chart';
import * as pdf from '@mescius/wijmo.pdf';
import * as gridPdf from '@mescius/wijmo.grid.pdf';
import '@mescius/wijmo.chart.render';
import * as wjcGrid from '@mescius/wijmo.react.grid';
import * as WjChartModule from '@mescius/wijmo.react.chart';
import './app.css';
import { expenses, data } from './data';
const docName = 'FlexGrid.pdf';
const totals = ((totals) => [
{ name: 'Hotel', value: totals.hotel },
{ name: 'Transport', value: totals.transport },
{ name: 'Meal', value: totals.meal },
{ name: 'Fuel', value: totals.fuel },
{ name: 'Misc', value: totals.Misc }
])(expenses.totals);
const gridExportSettings = {
styles: {
cellStyle: {
backgroundColor: '#ffffff',
borderColor: '#c6c6c6'
},
altCellStyle: {
backgroundColor: '#f9f9f9'
},
groupCellStyle: {
backgroundColor: '#dddddd'
},
headerCellStyle: {
backgroundColor: '#eaeaea'
}
}
};
function App() {
const [count, setCount] = useState(0);
const ctx1 = useRef({
exporting: false,
progress: 0,
preparing: false,
worker: null
});
const ctx2 = useRef({
exporting: false,
progress: 0,
preparing: false,
worker: null
});
const ctx3 = useRef({
exporting: false,
progress: 0,
preparing: false,
worker: null
});
const grid1Ref = useRef();
const grid2Ref = useRef();
const grid3Ref = useRef();
const pieRef = useRef();
const forceUpdate = () => setCount(Math.random());
const initializeGrid = useEvent((source) => {
grid1Ref.current = source;
});
const initializeGrid2 = useEvent((source) => {
grid2Ref.current = source;
});
const initializeGrid3 = useEvent((source) => {
grid3Ref.current = source;
});
const initializePie = useEvent((source) => {
pieRef.current = source;
});
const export1 = () => {
const ctx = ctx1.current;
if (!ctx.exporting) {
start(ctx, './export-grid', () => {
if (ctx.worker && grid1Ref.current) {
gridPdf.PdfWebWorkerClient.exportGrid(ctx.worker, grid1Ref.current, docName, gridExportSettings, undefined, (prog) => {
progress(ctx, prog);
});
}
});
}
else {
cancel(ctx);
}
};
const export2 = () => {
const ctx = ctx2.current;
if (!ctx.exporting) {
start(ctx, './export', () => {
if (ctx.worker) {
gridPdf.PdfWebWorkerClient.addString(ctx.worker, 'Title', 'title');
gridPdf.PdfWebWorkerClient.addImage(ctx.worker, 'resources/canada.png', 'flag');
pieRef.current.saveImageToDataUrl(chart.ImageFormat.Svg, (url) => {
if (ctx.worker) {
gridPdf.PdfWebWorkerClient.addImage(ctx.worker, url, 'chart');
}
});
if (grid2Ref.current) {
gridPdf.PdfWebWorkerClient.addGrid(ctx.worker, grid2Ref.current, 'grid', gridExportSettings);
}
gridPdf.PdfWebWorkerClient.export(ctx.worker, null, (data) => pdf.saveBlob(data.blob, docName), (prog) => progress(ctx, prog));
}
});
}
else {
cancel(ctx);
}
};
const export3 = () => {
const ctx = ctx3.current;
if (!ctx.exporting) {
start(ctx, './api', () => {
if (ctx.worker) {
ctx.worker.addEventListener('message', e => {
if (e.data.type === 'progress') {
progress(ctx, e.data.value);
}
else {
pdf.saveBlob(new Blob([new Uint8Array(e.data.data)], { type: 'application/pdf' }), docName);
}
});
if (grid3Ref.current) {
let gridData = gridPdf.PdfWebWorkerClient.serializeGrid(grid3Ref.current, gridExportSettings);
// Send gridData as a tranferable object
ctx.worker.postMessage({ grid: gridData, settings: JSON.stringify(gridExportSettings) }, [gridData]);
}
}
});
}
else {
cancel(ctx);
}
};
/**
* Creates web worker that executes the module from the specified URL.
* @param url The module URL, relative to the src/workers directory.
* @param ready
*/
const loadWorker = (url, ready) => {
let worker = new Worker('src/workers/worker-loader.js');
worker.addEventListener('message', (e) => {
if (e.data === '#ready#') {
ready();
}
});
worker.postMessage({ url: url });
return worker;
};
const start = (ctx, url, ready) => {
ctx.preparing = true;
ctx.progress = 0;
ctx.worker = loadWorker(url, () => ready());
forceUpdate();
};
const progress = (ctx, progress) => {
if (progress === 0 || progress === 1) {
ctx.preparing = false;
ctx.exporting = progress === 0;
ctx.progress = progress;
}
else {
ctx.progress = progress;
}
forceUpdate();
};
const cancel = (ctx) => {
if (ctx.worker) {
ctx.worker.terminate();
}
ctx.exporting = false;
ctx.progress = 0;
ctx.worker = null;
forceUpdate();
};
useEffect(() => {
return function cleanup() {
if (ctx1.current.worker) {
ctx1.current.worker.terminate();
ctx1.current.worker = null;
}
if (ctx2.current.worker) {
ctx2.current.worker.terminate();
ctx2.current.worker = null;
}
if (ctx3.current.worker) {
ctx3.current.worker.terminate();
ctx3.current.worker = null;
}
};
}, []);
return (<div className="container-fluid">
<p>
This sample demonstrates the "Simple single grid export" scenario and shows how to export FlexGrid in
a background thread.
</p>
<button className="btn btn-default" disabled={ctx1.current.preparing} onClick={export1}>{ctx1.current.exporting ? 'Cancel' : 'Export'}</button>
<span>{(ctx1.current.progress * 100).toFixed(1) + "%"}</span>
<wjcGrid.FlexGrid className="grid" autoGenerateColumns={false} headersVisibility="Column" allowMerging="All" itemsSource={data} isDisabled={ctx1.current.preparing} initialized={initializeGrid}>
<wjcGrid.FlexGridColumn header="ID" binding="id"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Start Date" binding="start" format="d"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="End Date" binding="end" format="d"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Country" binding="country"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Product" binding="product"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Amount" binding="amount" format="c"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Color" binding="color"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Pending" binding="amount2" format="c2"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Discount" binding="discount" format="p1"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Active" binding="active"></wjcGrid.FlexGridColumn>
</wjcGrid.FlexGrid>
<hr />
<p>
This sample demonstrates the "Custom document generation" scenario and shows how to export FlexPie
(as a SVG image), FlexGrid and PNG image to a PDF in a background thread.
</p>
<p>
The <a href="https://www.npmjs.com/package/xmldom">xmldom</a> library is used here to bring DOM
support to the server to be able to draw SVG.
</p>
<button className="btn btn-default" disabled={ctx2.current.preparing} onClick={export2}>{ctx2.current.exporting ? 'Cancel' : 'Export'}</button>
<span>{(ctx2.current.progress * 100).toFixed(1) + "%"}</span>
<p></p>
<div className="row">
<div className="col-md-6">
<WjChartModule.FlexPie itemsSource={totals} binding="value" bindingName="name" innerRadius={0.75} initialized={initializePie}>
<WjChartModule.FlexPieDataLabel content="{value:c1}" position="Inside"></WjChartModule.FlexPieDataLabel>
</WjChartModule.FlexPie>
</div>
<div className="col-md-6">
<wjcGrid.FlexGrid className="grid" autoGenerateColumns={false} headersVisibility="Column" allowMerging="All" itemsSource={data} isDisabled={ctx2.current.preparing} initialized={initializeGrid2}>
<wjcGrid.FlexGridColumn header="ID" binding="id"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Start Date" binding="start" format="d"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="End Date" binding="end" format="d"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Country" binding="country"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Product" binding="product"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Amount" binding="amount" format="c"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Color" binding="color"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Pending" binding="amount2" format="c2"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Discount" binding="discount" format="p1"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Active" binding="active"></wjcGrid.FlexGridColumn>
</wjcGrid.FlexGrid>
</div>
</div>
<hr />
<p>
This sample demonstrates the "Low-level usage of Web Workers API" scenario and shows how to export
FlexGrid to a PDF in a background thread using Web Workers API.
</p>
<button className="btn btn-default" disabled={ctx3.current.preparing} onClick={export3}>{ctx3.current.exporting ? 'Cancel' :
'Export'}</button>
<span>{(ctx3.current.progress * 100).toFixed(1) + "%"}</span>
<p></p>
<wjcGrid.FlexGrid className="grid" autoGenerateColumns={false} headersVisibility="Column" allowMerging="All" itemsSource={data} isDisabled={ctx3.current.preparing} initialized={initializeGrid3}>
<wjcGrid.FlexGridColumn header="ID" binding="id"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Start Date" binding="start" format="d"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="End Date" binding="end" format="d"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Country" binding="country"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Product" binding="product"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Amount" binding="amount" format="c"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Color" binding="color"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Pending" binding="amount2" format="c2"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Discount" binding="discount" format="p1"></wjcGrid.FlexGridColumn>
<wjcGrid.FlexGridColumn header="Active" binding="active"></wjcGrid.FlexGridColumn>
</wjcGrid.FlexGrid>
</div>);
}
const container = document.getElementById('app');
if (container) {
const root = ReactDOM.createRoot(container);
root.render(<App />);
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Web Workers</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- SystemJS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.40/system.src.js" integrity="sha512-G6mEj6h18+m3MvzdviSDfPle/TfH0//cXcB33AKlNR/Rha0yQsKefDZKRTkIZos97HEGq2JMV1RT5ybMoQ3WsQ==" crossorigin="anonymous"></script>
<script src="systemjs.config.js"></script>
<script>
System.import('./src/app');
</script>
</head>
<body>
<div id="app"></div>
</body>
</html>
.grid {
margin-top: 20px;
height: 300px;
}
function getData(count) {
// data used to generate random items
const countries = ['US', 'Germany', 'UK', 'Japan', 'Italy', 'Greece'];
const products = ['Widget', 'Gadget', 'Doohickey'];
const colors = ['Orange', 'White', 'Red', 'Green', 'Blue'];
//
let data = [];
let dt = new Date();
//
// add count items
for (let i = 0; i < count; i++) {
// constants used to create data items
let date = new Date(dt.getFullYear(), i % 12, 25, i % 24, i % 60, i % 60), countryId = Math.floor(Math.random() * countries.length), productId = Math.floor(Math.random() * products.length), colorId = Math.floor(Math.random() * colors.length);
//
// create the item
let item = {
id: i,
start: date,
end: date,
country: countries[countryId],
product: products[productId],
color: colors[colorId],
amount: Math.random() * 10000 - 5000,
amount2: Math.random() * 10000 - 5000,
discount: Math.random() / 4,
active: i % 4 == 0,
};
//
// add the item to the list
data.push(item);
}
return data;
}
function getExpenses() {
// [5; 10]
let count = 5 + Math.round(Math.random() * 5), ret = {
items: [],
totals: { hotel: 0, transport: 0, fuel: 0, meal: 0, Misc: 0, total: 0 }
}, msPerDay = 1000 * 24 * 60 * 60, curDate = Date.now() - 60 * msPerDay;
//
for (let i = 0; i < count; i++) {
let item = {
date: new Date(curDate),
description: 'Customer visit',
hotel: 30 + Math.random() * 200,
transport: 10 + Math.random() * 150,
fuel: Math.random() * 50,
meal: 30 + Math.random() * 170,
Misc: Math.random() * 220,
total: 0
};
//
item.total = item.hotel + item.transport + item.fuel + item.meal + item.Misc;
//
ret.totals.fuel += item.fuel;
ret.totals.hotel += item.hotel;
ret.totals.meal += item.meal;
ret.totals.Misc += item.Misc;
ret.totals.total += item.total;
ret.totals.transport += item.transport;
//
ret.items.push(item);
//
curDate += msPerDay * Math.round(Math.random() * 4);
}
//
return ret;
}
export const data = getData(1500);
export const expenses = getExpenses();
import { PdfWebWorker } from '@mescius/wijmo.grid.pdf';
PdfWebWorker.initExportGrid();
import xmldom from 'xmldom';
import * as pdf from '@mescius/wijmo.pdf';
import * as gridPdf from '@mescius/wijmo.grid.pdf';
//
(<any>self).DOMParser = xmldom.DOMParser;
//
gridPdf.PdfWebWorker.initExport((doc: pdf.PdfDocument, clientData: gridPdf.IClientData) => {
gridPdf.PdfWebWorker.sendExportProgress(0);
//
doc.drawText(clientData['title'].content);
doc.drawImage(clientData['flag'].content);
doc.drawSvg(clientData['chart'].content);
//
// Suppose that text and images rendering takes 5% of the time.
gridPdf.PdfWebWorker.sendExportProgress(0.05);
//
let gridData = clientData['grid'];
gridData.settings.progress = (value: number) => {
// Change progress from 6% to 90%. Left the final 10% for the document finalization, which will start after the doc.end() method is called.
gridPdf.PdfWebWorker.sendExportProgress(map(value, 0, 1, 0.06, 0.9));
};
//
doc.ended.addHandler(() => {
// Document has been created, set progress to 100%.
gridPdf.PdfWebWorker.sendExportProgress(1);
});
//
gridPdf.FlexGridPdfConverter.draw(gridData.content, doc, undefined, undefined, gridData.settings);
//
doc.end();
});
//
function map(value: number, inMin: number, inMax: number, outMin: number, outMax: number) {
let k = (outMax - outMin) / (inMax - inMin);
return (value - inMin) * k + outMin;
}
declare function postMessage(message: any, transfer?: Transferable[]): void;
import * as pdf from '@mescius/wijmo.pdf';
import * as gridPdf from '@mescius/wijmo.grid.pdf';
//
addEventListener('message', e => {
let json = e.data.grid, settings = JSON.parse(e.data.settings);
//
settings.documentOptions = settings.documentOptions || {};
//
settings.documentOptions.ended = (sender: pdf.PdfDocument, args: pdf.PdfDocumentEndedEventArgs) => {
postProgress(1); // 100%
//
// Convert Blob to a transferable object...
let fileReader = new FileReader();
fileReader.onload = (e) => {
let buffer = (<any>e.target).result;
// ...and send it to client.
postMessage({ data: buffer }, [buffer]);
};
fileReader.readAsArrayBuffer(args.blob);
};
//
settings.progress = (value: number) => {
postProgress(value * 0.9); // 0% to 90%
};
//
let doc = new pdf.PdfDocument(settings.documentOptions), grid = gridPdf.PdfWebWorker.deserializeGrid(json, settings);
//
gridPdf.FlexGridPdfConverter.draw(grid, doc, null, null, settings);
//
doc.end();
});
//
function postProgress(value) {
postMessage({ type: 'progress', value: value });
}
(function (global) {
System.config({
transpiler: 'plugin-babel',
babelOptions: {
es2015: true,
react: true
},
meta: {
'*.css': { loader: 'css' }
},
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
// map tells the System loader where to look for things
map: {
'jszip': 'npm:jszip/dist/jszip.js',
'@mescius/wijmo': 'npm:@mescius/wijmo/index.js',
'@mescius/wijmo.input': 'npm:@mescius/wijmo.input/index.js',
'@mescius/wijmo.styles': 'npm:@mescius/wijmo.styles',
'@mescius/wijmo.cultures': 'npm:@mescius/wijmo.cultures',
'@mescius/wijmo.chart': 'npm:@mescius/wijmo.chart/index.js',
'@mescius/wijmo.chart.analytics': 'npm:@mescius/wijmo.chart.analytics/index.js',
'@mescius/wijmo.chart.animation': 'npm:@mescius/wijmo.chart.animation/index.js',
'@mescius/wijmo.chart.annotation': 'npm:@mescius/wijmo.chart.annotation/index.js',
'@mescius/wijmo.chart.finance': 'npm:@mescius/wijmo.chart.finance/index.js',
'@mescius/wijmo.chart.finance.analytics': 'npm:@mescius/wijmo.chart.finance.analytics/index.js',
'@mescius/wijmo.chart.hierarchical': 'npm:@mescius/wijmo.chart.hierarchical/index.js',
'@mescius/wijmo.chart.interaction': 'npm:@mescius/wijmo.chart.interaction/index.js',
'@mescius/wijmo.chart.radar': 'npm:@mescius/wijmo.chart.radar/index.js',
'@mescius/wijmo.chart.render': 'npm:@mescius/wijmo.chart.render/index.js',
'@mescius/wijmo.chart.webgl': 'npm:@mescius/wijmo.chart.webgl/index.js',
'@mescius/wijmo.chart.map': 'npm:@mescius/wijmo.chart.map/index.js',
'@mescius/wijmo.gauge': 'npm:@mescius/wijmo.gauge/index.js',
'@mescius/wijmo.grid': 'npm:@mescius/wijmo.grid/index.js',
'@mescius/wijmo.grid.detail': 'npm:@mescius/wijmo.grid.detail/index.js',
'@mescius/wijmo.grid.filter': 'npm:@mescius/wijmo.grid.filter/index.js',
'@mescius/wijmo.grid.search': 'npm:@mescius/wijmo.grid.search/index.js',
'@mescius/wijmo.grid.grouppanel': 'npm:@mescius/wijmo.grid.grouppanel/index.js',
'@mescius/wijmo.grid.multirow': 'npm:@mescius/wijmo.grid.multirow/index.js',
'@mescius/wijmo.grid.transposed': 'npm:@mescius/wijmo.grid.transposed/index.js',
'@mescius/wijmo.grid.transposedmultirow': 'npm:@mescius/wijmo.grid.transposedmultirow/index.js',
'@mescius/wijmo.grid.pdf': 'npm:@mescius/wijmo.grid.pdf/index.js',
'@mescius/wijmo.grid.sheet': 'npm:@mescius/wijmo.grid.sheet/index.js',
'@mescius/wijmo.grid.xlsx': 'npm:@mescius/wijmo.grid.xlsx/index.js',
'@mescius/wijmo.grid.selector': 'npm:@mescius/wijmo.grid.selector/index.js',
'@mescius/wijmo.grid.cellmaker': 'npm:@mescius/wijmo.grid.cellmaker/index.js',
'@mescius/wijmo.grid.immutable': 'npm:@mescius/wijmo.grid.immutable/index.js',
'@mescius/wijmo.touch': 'npm:@mescius/wijmo.touch/index.js',
'@mescius/wijmo.cloud': 'npm:@mescius/wijmo.cloud/index.js',
'@mescius/wijmo.nav': 'npm:@mescius/wijmo.nav/index.js',
'@mescius/wijmo.odata': 'npm:@mescius/wijmo.odata/index.js',
'@mescius/wijmo.olap': 'npm:@mescius/wijmo.olap/index.js',
'@mescius/wijmo.rest': 'npm:@mescius/wijmo.rest/index.js',
'@mescius/wijmo.pdf': 'npm:@mescius/wijmo.pdf/index.js',
'@mescius/wijmo.pdf.security': 'npm:@mescius/wijmo.pdf.security/index.js',
'@mescius/wijmo.viewer': 'npm:@mescius/wijmo.viewer/index.js',
'@mescius/wijmo.xlsx': 'npm:@mescius/wijmo.xlsx/index.js',
'@mescius/wijmo.undo': 'npm:@mescius/wijmo.undo/index.js',
'@mescius/wijmo.interop.grid': 'npm:@mescius/wijmo.interop.grid/index.js',
'@mescius/wijmo.barcode': 'npm:@mescius/wijmo.barcode/index.js',
'@mescius/wijmo.barcode.common': 'npm:@mescius/wijmo.barcode.common/index.js',
'@mescius/wijmo.barcode.composite': 'npm:@mescius/wijmo.barcode.composite/index.js',
'@mescius/wijmo.barcode.specialized': 'npm:@mescius/wijmo.barcode.specialized/index.js',
"@mescius/wijmo.react.chart.analytics": "npm:@mescius/wijmo.react.chart.analytics/index.js",
"@mescius/wijmo.react.chart.animation": "npm:@mescius/wijmo.react.chart.animation/index.js",
"@mescius/wijmo.react.chart.annotation": "npm:@mescius/wijmo.react.chart.annotation/index.js",
"@mescius/wijmo.react.chart.finance.analytics": "npm:@mescius/wijmo.react.chart.finance.analytics/index.js",
"@mescius/wijmo.react.chart.finance": "npm:@mescius/wijmo.react.chart.finance/index.js",
"@mescius/wijmo.react.chart.hierarchical": "npm:@mescius/wijmo.react.chart.hierarchical/index.js",
"@mescius/wijmo.react.chart.interaction": "npm:@mescius/wijmo.react.chart.interaction/index.js",
"@mescius/wijmo.react.chart.radar": "npm:@mescius/wijmo.react.chart.radar/index.js",
"@mescius/wijmo.react.chart": "npm:@mescius/wijmo.react.chart/index.js",
"@mescius/wijmo.react.core": "npm:@mescius/wijmo.react.core/index.js",
'@mescius/wijmo.react.chart.map': 'npm:@mescius/wijmo.react.chart.map/index.js',
"@mescius/wijmo.react.gauge": "npm:@mescius/wijmo.react.gauge/index.js",
"@mescius/wijmo.react.grid.detail": "npm:@mescius/wijmo.react.grid.detail/index.js",
"@mescius/wijmo.react.grid.filter": "npm:@mescius/wijmo.react.grid.filter/index.js",
"@mescius/wijmo.react.grid.grouppanel": "npm:@mescius/wijmo.react.grid.grouppanel/index.js",
'@mescius/wijmo.react.grid.search': 'npm:@mescius/wijmo.react.grid.search/index.js',
"@mescius/wijmo.react.grid.multirow": "npm:@mescius/wijmo.react.grid.multirow/index.js",
"@mescius/wijmo.react.grid.sheet": "npm:@mescius/wijmo.react.grid.sheet/index.js",
'@mescius/wijmo.react.grid.transposed': 'npm:@mescius/wijmo.react.grid.transposed/index.js',
'@mescius/wijmo.react.grid.transposedmultirow': 'npm:@mescius/wijmo.react.grid.transposedmultirow/index.js',
'@mescius/wijmo.react.grid.immutable': 'npm:@mescius/wijmo.react.grid.immutable/index.js',
"@mescius/wijmo.react.grid": "npm:@mescius/wijmo.react.grid/index.js",
"@mescius/wijmo.react.input": "npm:@mescius/wijmo.react.input/index.js",
"@mescius/wijmo.react.olap": "npm:@mescius/wijmo.react.olap/index.js",
"@mescius/wijmo.react.viewer": "npm:@mescius/wijmo.react.viewer/index.js",
"@mescius/wijmo.react.nav": "npm:@mescius/wijmo.react.nav/index.js",
"@mescius/wijmo.react.base": "npm:@mescius/wijmo.react.base/index.js",
'@mescius/wijmo.react.barcode.common': 'npm:@mescius/wijmo.react.barcode.common/index.js',
'@mescius/wijmo.react.barcode.composite': 'npm:@mescius/wijmo.react.barcode.composite/index.js',
'@mescius/wijmo.react.barcode.specialized': 'npm:@mescius/wijmo.react.barcode.specialized/index.js',
'jszip': 'npm:jszip/dist/jszip.js',
'react': 'npm:react/umd/react.production.min.js',
'react-dom': 'npm:react-dom/umd/react-dom.production.min.js',
'react-dom/client': 'npm:react-dom/umd/react-dom.production.min.js',
'redux': 'npm:redux/dist/redux.min.js',
'react-redux': 'npm:react-redux/dist/react-redux.min.js',
'bootstrap.css': 'npm:bootstrap/dist/css/bootstrap.min.css',
'css': 'npm:systemjs-plugin-css/css.js',
'plugin-babel': 'npm:systemjs-plugin-babel/plugin-babel.js',
'systemjs-babel-build':'npm:systemjs-plugin-babel/systemjs-babel-browser.js',
"react-use-event-hook": "npm:react-use-event-hook/dist/esm/useEvent.js",
},
// packages tells the System loader how to load when no filename and/or no extension
packages: {
src: {
defaultExtension: 'jsx'
},
"node_modules": {
defaultExtension: 'js'
},
}
});
})(this);