From 21a59e09f3005cddf31be594610370b3488705b7 Mon Sep 17 00:00:00 2001 From: Birm Date: Thu, 27 Jun 2024 10:31:20 -0400 Subject: [PATCH] rebuild dist --- dist/BarChart.5f4d3c70.js | 2 +- dist/DensityChart.25818996.js | 2 +- dist/EnumList.6d2f70b1.js | 2 +- dist/Heatmap.9c081d3f.js | 2 +- dist/Histogram.3148aeff.js | 2 +- dist/HorizontalBarChart.fcfb2c72.js | 2 +- dist/KMCurve.b8405d3d.js | 2 +- dist/ParallelCoordinates.f76efbe7.js | 2 +- dist/PieChart.13f339c7.js | 2 +- dist/ScatterChart.9b7d43a5.js | 2 +- dist/SelectDataTable.48b05c90.js | 10 +- dist/SelectDataTable.48b05c90.js.map | 2 +- dist/SelectDataTable.8618513c.js | 591 +++++++++++++++++++++++++++ dist/SelectDataTable.8618513c.js.map | 1 + dist/TextContainer.a7f37af3.js | 2 +- dist/VisDataTable.c1822ccd.js | 2 +- dist/VisGridCard.fac47b76.js | 2 +- dist/index.js | 2 +- dist/source.de500f7b.js | 2 +- dist/source.e31bb0bc.js | 2 +- 20 files changed, 617 insertions(+), 19 deletions(-) create mode 100644 dist/SelectDataTable.8618513c.js create mode 100644 dist/SelectDataTable.8618513c.js.map diff --git a/dist/BarChart.5f4d3c70.js b/dist/BarChart.5f4d3c70.js index 20cdcde..d385290 100644 --- a/dist/BarChart.5f4d3c70.js +++ b/dist/BarChart.5f4d3c70.js @@ -365,7 +365,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "55508" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "55859" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/DensityChart.25818996.js b/dist/DensityChart.25818996.js index 0d668c9..894c2cf 100644 --- a/dist/DensityChart.25818996.js +++ b/dist/DensityChart.25818996.js @@ -291,7 +291,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "55508" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "55859" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/EnumList.6d2f70b1.js b/dist/EnumList.6d2f70b1.js index 33f050b..ce91bb0 100644 --- a/dist/EnumList.6d2f70b1.js +++ b/dist/EnumList.6d2f70b1.js @@ -287,7 +287,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "55508" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "55859" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/Heatmap.9c081d3f.js b/dist/Heatmap.9c081d3f.js index 2993374..5a50f93 100644 --- a/dist/Heatmap.9c081d3f.js +++ b/dist/Heatmap.9c081d3f.js @@ -284,7 +284,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "55508" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "55859" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/Histogram.3148aeff.js b/dist/Histogram.3148aeff.js index fe82991..0aef1b7 100644 --- a/dist/Histogram.3148aeff.js +++ b/dist/Histogram.3148aeff.js @@ -306,7 +306,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "55508" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "55859" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/HorizontalBarChart.fcfb2c72.js b/dist/HorizontalBarChart.fcfb2c72.js index 3aeb8fc..9fc3e85 100644 --- a/dist/HorizontalBarChart.fcfb2c72.js +++ b/dist/HorizontalBarChart.fcfb2c72.js @@ -357,7 +357,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "55508" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "55859" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/KMCurve.b8405d3d.js b/dist/KMCurve.b8405d3d.js index f279b2a..b5c6c20 100644 --- a/dist/KMCurve.b8405d3d.js +++ b/dist/KMCurve.b8405d3d.js @@ -382,7 +382,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "55508" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "55859" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/ParallelCoordinates.f76efbe7.js b/dist/ParallelCoordinates.f76efbe7.js index 57ac29f..62c3218 100644 --- a/dist/ParallelCoordinates.f76efbe7.js +++ b/dist/ParallelCoordinates.f76efbe7.js @@ -284,7 +284,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "55508" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "55859" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/PieChart.13f339c7.js b/dist/PieChart.13f339c7.js index ae0af8e..cf6b66d 100644 --- a/dist/PieChart.13f339c7.js +++ b/dist/PieChart.13f339c7.js @@ -300,7 +300,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "55508" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "55859" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/ScatterChart.9b7d43a5.js b/dist/ScatterChart.9b7d43a5.js index 7d2ec42..a12d6d7 100644 --- a/dist/ScatterChart.9b7d43a5.js +++ b/dist/ScatterChart.9b7d43a5.js @@ -354,7 +354,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "55508" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "55859" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/SelectDataTable.48b05c90.js b/dist/SelectDataTable.48b05c90.js index 118f3cb..9946c3c 100644 --- a/dist/SelectDataTable.48b05c90.js +++ b/dist/SelectDataTable.48b05c90.js @@ -214,6 +214,7 @@ var SelectDataTable = exports.default = /*#__PURE__*/function (_PureComponent) { sortDirection: null, selected: [] }; + _this.containerRef = _react.default.createRef(); _this.autoSizer = _react.default.createRef(); _this.headerRenderer = _this.headerRenderer.bind(_assertThisInitialized(_this)); _this.resizeRow = _this.resizeRow.bind(_assertThisInitialized(_this)); @@ -282,13 +283,17 @@ var SelectDataTable = exports.default = /*#__PURE__*/function (_PureComponent) { data = data.slice(0, downloadLimit); alert("Limiting download to first " + downloadLimit); } - var checkedBoxes = document.querySelectorAll('input[type="checkbox"]:checked'); + this.setState({ + "selected": [] + }); + var checkedBoxes = this.containerRef.current.querySelectorAll('input[type="checkbox"]:checked'); console.log(checkedBoxes); var _iterator = _createForOfIteratorHelper(checkedBoxes), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var x = _step.value; + //x.checked = false; x.parentElement.parentElement.style.backgroundColor = "lightgray"; } } catch (err) { @@ -495,6 +500,7 @@ var SelectDataTable = exports.default = /*#__PURE__*/function (_PureComponent) { selected = _this$state2.selected; var finalData = this.getSortData(); return /*#__PURE__*/_react.default.createElement("div", { + ref: this.containerRef, style: { width: '100%', height: '100%' @@ -606,7 +612,7 @@ var parent = module.bundle.parent; if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') { var hostname = "" || location.hostname; var protocol = location.protocol === 'https:' ? 'wss' : 'ws'; - var ws = new WebSocket(protocol + '://' + hostname + ':' + "55508" + '/'); + var ws = new WebSocket(protocol + '://' + hostname + ':' + "55859" + '/'); ws.onmessage = function (event) { checkedAssets = {}; assetsToAccept = []; diff --git a/dist/SelectDataTable.48b05c90.js.map b/dist/SelectDataTable.48b05c90.js.map index f22bbda..fb59754 100644 --- a/dist/SelectDataTable.48b05c90.js.map +++ b/dist/SelectDataTable.48b05c90.js.map @@ -1 +1 @@ -{"version":3,"sources":["components/VisualTools/VisDataTable/SelectDataTable.js","../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["_react","_interopRequireWildcard","require","_reactVirtualized","_reactDraggable","_interopRequireDefault","_reactFontawesome","_freeSolidSvgIcons","_arrayMove","_propTypes","_VisDataTableControl","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_typeof","o","Symbol","iterator","constructor","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","iter","Array","from","isArray","_arrayLikeToArray","_createForOfIteratorHelper","allowArrayLike","it","length","F","s","done","value","_e","f","normalCompletion","didErr","err","step","next","_e2","return","minLen","toString","slice","name","test","len","arr2","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","key","_toPropertyKey","configurable","writable","_classCallCheck","instance","Constructor","_defineProperties","target","props","descriptor","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","Number","_inherits","subClass","superClass","create","_setPrototypeOf","p","setPrototypeOf","bind","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf","result","NewTarget","Reflect","construct","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","getPrototypeOf","cellRenderer","d","urlElt","link","url","field","urlbase","createElement","href","rowData","cellData","join","Fragment","dataKey","className","title","rowClassName","_ref","index","SelectDataTable","exports","_PureComponent","_super","_this","console","log","fWidth","fields","map","width","isShow","state","sortBy","sortDirection","selected","autoSizer","React","createRef","headerRenderer","resizeRow","onResize","onSortEnd","onCheckChangedHandler","onAllCheckHandler","sortHandler","getSortData","_ref2","setState","_ref3","oldIndex","newIndex","_ref4","arrayMove","checked","_ref5","_ref6","downloadSelected","downloadLimit","configProps","data","alert","checkedBoxes","document","querySelectorAll","_iterator","_step","x","parentElement","style","backgroundColor","_iterator2","_step2","record","fetch","mode","then","json","slide_url","window","location","protocol","replace","problematicExtensions","hasProblematicExtension","some","ext","toLowerCase","endsWith","filename","substring","lastIndexOf","download","body","appendChild","click","removeChild","iframe","setAttribute","src","catch","error","collator","Intl","Collator","numeric","sensitivity","_this$props","filterData","filters","_this$state","currentData","sort","b","first","SortDirection","ASC","second","compare","_ref7","deltaX","prevFields","idx","findIndex","percentDelta","_ref8","_this2","label","FontAwesomeIcon","icon","DESC","faSortDown","faSortUp","faSort","axis","defaultClassName","defaultClassNameDragging","onDrag","event","_ref9","onStart","_ref10","onStop","_ref11","setTimeout","position","zIndex","onMouseDown","stopPropagation","selectionHandler","isChecked","item","downloadField","existingIndex","indexOf","prevState","concat","_ref12","isResize","render","_this3","_this$state2","finalData","height","list","onCheckChanged","onAllCheck","AutoSizer","ref","_ref13","Table","headerHeight","rowHeight","rowCount","rowGetter","_ref14","Column","onClick","faFileArrowDown","color","_ref15","type","includes","onChange","cellDataGetter","_ref16","PureComponent","propTypes","PropTypes","arrayOf","shape","isRequired","OVERLAY_ID","OldModule","module","bundle","Module","moduleName","hot","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","dispose","checkedAssets","assetsToAccept","parent","isParcelRequire","WebSocket","hostname","ws","onmessage","JSON","parse","handled","assets","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","id","every","generated","js","clear","hmrApply","v","hmrAcceptRun","reload","close","onclose","removeErrorOverlay","message","stack","overlay","createErrorOverlay","getElementById","remove","stackTrace","innerText","innerHTML","getParents","modules","parents","k","dep","Function","deps","cached","cache","cb"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAGA,IAAAE,eAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAH,sBAAA,CAAAH,OAAA;AACA,IAAAO,UAAA,GAAAJ,sBAAA,CAAAH,OAAA;AACA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AAC,CAAC;EACJ;EAEA,OAAOJ,MAAM,CAACyD,KAAK,CAAC7B,EAAE,CAAC;EACvB5B,MAAM,CAAC4B,EAAE,CAAC;EAEV4B,MAAM,GAAGxD,MAAM,CAACyD,KAAK,CAAC7B,EAAE,CAAC;EACzB,IAAI4B,MAAM,IAAIA,MAAM,CAACrD,GAAG,IAAIqD,MAAM,CAACrD,GAAG,CAACE,gBAAgB,CAAC7R,MAAM,EAAE;IAC9DgV,MAAM,CAACrD,GAAG,CAACE,gBAAgB,CAAC/P,OAAO,CAAC,UAAUoT,EAAE,EAAE;MAChDA,EAAE,CAAC,CAAC;IACN,CAAC,CAAC;IACF,OAAO,IAAI;EACb;AACF","file":"SelectDataTable.48b05c90.js","sourceRoot":"../source","sourcesContent":["import React, { PureComponent } from 'react';\nimport {\n AutoSizer, Column, Table, SortDirection,\n} from 'react-virtualized';\nimport Draggable from 'react-draggable';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { faSortDown, faSortUp, faSort, faFileArrowDown } from '@fortawesome/free-solid-svg-icons';\nimport arrayMove from 'array-move';\nimport PropTypes from 'prop-types';\nimport VisDataTableControl from './VisDataTableControl/VisDataTableControl';\nimport './VisDataTable.css';\n\nconst cellRenderer = (d, f) => {\n let urlElt;\n if (f.link && (f.link.url || f.link.field)) {\n const urlbase = f.link.url || '';\n urlElt = (\n \n {d.cellData}\n \n );\n } else if (f.link && f.link.url) {\n urlElt = (\n \n {d.cellData}\n \n );\n } else {\n // urlElt = d.cellData;\n urlElt = Array.isArray(d.cellData) ? d.cellData.join(', ') : d.cellData;\n }\n return (\n \n
\n {urlElt}\n
\n
\n );\n};\n\nconst rowClassName = ({ index }) => {\n if (index < 0) {\n return 'headerRow';\n }\n return index % 2 === 0 ? 'evenRow' : 'oddRow';\n};\n\nexport default class SelectDataTable extends PureComponent {\n constructor(props) {\n console.log(\"constructed, showing props\")\n console.log(props)\n super(props);\n const fWidth = 1 / this.props.fields.length;\n let fields = this.props.fields.map((f) => ({ ...f, width: fWidth, isShow: true }));\n //fields = fields.unshift({width: 50, isShow: true})\n this.state = {\n fields,\n width: null,\n sortBy: null,\n sortDirection: null,\n selected: []\n };\n\n this.autoSizer = React.createRef();\n this.headerRenderer = this.headerRenderer.bind(this);\n this.resizeRow = this.resizeRow.bind(this);\n this.onResize = this.onResize.bind(this);\n this.onSortEnd = this.onSortEnd.bind(this);\n this.onCheckChangedHandler = this.onCheckChangedHandler.bind(this);\n this.onAllCheckHandler = this.onAllCheckHandler.bind(this);\n this.sortHandler = this.sortHandler.bind(this);\n this.getSortData = this.getSortData.bind(this);\n }\n\n onResize({ width }) {\n this.setState({ width });\n }\n\n onSortEnd({ oldIndex, newIndex }) {\n this.setState(({ fields }) => ({\n fields: arrayMove(fields, oldIndex, newIndex),\n }));\n }\n\n onCheckChangedHandler(e) {\n const { value } = e.target;\n const { checked } = e.target;\n this.setState(({ fields }) => ({\n fields: fields.map((f) => {\n f.isShow = f.dataKey === value ? checked : f.isShow;\n return { ...f };\n }),\n }));\n }\n\n onAllCheckHandler() {\n this.setState(({ fields }) => ({\n fields: fields.map((f) => {\n f.isShow = true;\n return { ...f };\n }),\n }));\n }\n\n downloadSelected() {\n let downloadLimit = this.props.configProps.downloadLimit || 15;\n let data = this.state.selected\n if (data.length > downloadLimit){\n data = data.slice(0, downloadLimit);\n alert(\"Limiting download to first \" + downloadLimit)\n }\n let checkedBoxes = document.querySelectorAll('input[type=\"checkbox\"]:checked');\n console.log(checkedBoxes)\n for (let x of checkedBoxes){\n x.parentElement.parentElement.style.backgroundColor = \"lightgray\"\n }\n console.log(data)\n console.log(\"about to try?\")\n console.log(this.props.configProps)\n // trigger downloads from pathdb\n for (let record of data){\n console.log(\"inside loop\")\n console.log(\"trying to get metadata for slide with pathdb id\", record)\n fetch(\"/node/\" + record + \"?_format=json\", {mode: \"cors\"}).then(x=>x.json()).then(x=>{ \n console.log(\"looking at wsi url: \", x['field_wsiimage'][0]['url'])\n let slide_url = x['field_wsiimage'][0]['url']\n if (window.location.protocol === \"https:\") {\n slide_url = slide_url.replace(/^http:\\/\\//i, 'https://');\n }\n const problematicExtensions = ['.png', '.jpg', '.jpeg', '.gif', '.bmp', '.webp', '.svg', '.pdf'];\n function hasProblematicExtension(url) {\n return problematicExtensions.some(ext => url.toLowerCase().endsWith(ext));\n }\n if (hasProblematicExtension(slide_url)){\n console.log(\"using anchor method\")\n const filename = slide_url.substring(slide_url.lastIndexOf('/') + 1);\n const a = document.createElement('a');\n a.href = slide_url;\n a.download = filename;\n document.body.appendChild(a);\n a.click();\n document.body.removeChild(a);\n } else {\n console.log(\"using iframe method\")\n const iframe = document.createElement(\"iframe\");\n iframe.setAttribute(\"sandbox\", \"allow-downloads allow-scripts\");\n iframe.src = slide_url;\n iframe.setAttribute(\"style\", \"display: none\");\n document.body.appendChild(iframe);\n }\n }).catch(console.error)\n }\n }\n\n getSortData() {\n const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });\n const { data, filterData, filters } = this.props;\n const { sortBy, sortDirection } = this.state;\n const currentData = filters.length > 0 ? filterData : data;\n\n return sortBy && sortDirection\n ? currentData.sort((a, b) => {\n const first = sortDirection === SortDirection.ASC ? a : b;\n const second = sortDirection === SortDirection.ASC ? b : a;\n return collator.compare(first[sortBy], second[sortBy]);\n })\n : currentData;\n }\n\n resizeRow({ dataKey, deltaX }) {\n const prevFields = this.state.fields;\n const idx = prevFields.findIndex((f) => f.dataKey === dataKey);\n\n const percentDelta = deltaX / this.state.width;\n prevFields[idx].width += percentDelta;\n\n if (idx < prevFields.length - 1) {\n prevFields[idx + 1].width = prevFields[idx + 1].width - percentDelta;\n }\n this.setState({ fields: [...prevFields] });\n }\n\n headerRenderer({\n dataKey, label, sortBy, sortDirection,\n }) {\n return (\n \n
\n {label}\n
\n {}\n
\n {sortBy === dataKey ? (\n \n ) : (\n \n )}\n
\n {\n this.resizeRow({ dataKey, deltaX });\n }}\n onStart={(event, { deltaX }) => {\n this.setState({\"isResize\": true});\n }}\n onStop={(event, { deltaX }) => {\n setTimeout(() => {\n this.setState({\"isResize\": false})\n }, 300); // 300 milliseconds delay\n }}\n position={{ x: 0 }}\n zIndex={999}\n >\n event.stopPropagation()}>⋮\n \n
\n );\n }\n\n selectionHandler(isChecked, rowData){\n let downloadLimit = this.props.configProps.downloadLimit || 15;\n console.log(\"chexmix\", isChecked, rowData)\n const { selected } = this.state;\n console.log(\"state selected before change\", selected)\n let item = rowData[this.props.configProps.downloadField];\n const existingIndex = selected.indexOf(item);\n // if check is true, add to state\n if (isChecked && existingIndex === -1) {\n this.setState(prevState => ({\n selected: [...prevState.selected, item]\n }));\n }\n // if check is false, remove from state\n if (!isChecked && existingIndex !== -1) {\n this.setState(prevState => ({\n selected: prevState.selected.filter(x => x !== item)\n }));\n }\n if (this.state.selected.length > downloadLimit - 2) {\n alert(\"Warning: We limit to at most \" + downloadLimit + \" concurrent downloads.\")\n }\n }\n\n sortHandler({ sortBy, sortDirection }) {\n\n if (!this.state.isResize){\n this.setState({ sortBy, sortDirection });\n }\n }\n\n render() {\n const { fields, sortBy, sortDirection, selected } = this.state;\n const finalData = this.getSortData();\n\n return (\n
\n \n \n {({ width, height }) => (\n finalData[index]}\n sort={this.sortHandler}\n sortBy={sortBy}\n sortDirection={sortDirection}\n >\n
{ this.downloadSelected() }}>
}\n cellRenderer={({ rowData }) => (\n this.selectionHandler(e.target.checked, rowData)}\n />\n )}\n />\n {fields\n .map((f) => (\n rowData[f.dataKey]}\n dataKey={f.dataKey}\n label={f.label}\n width={width * f.width}\n headerRenderer={this.headerRenderer}\n cellRenderer={(d) => cellRenderer(d, f)}\n />\n ))}\n \n )}\n
\n
\n );\n }\n}\n\nSelectDataTable.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.arrayOf(PropTypes.shape()).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n};\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else if (location.reload) { // `location` global exists in a web worker context but lacks `.reload()` function.\n location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["components/VisualTools/VisDataTable/SelectDataTable.js","../node_modules/parcel-bundler/src/builtins/hmr-runtime.js"],"names":["_react","_interopRequireWildcard","require","_reactVirtualized","_reactDraggable","_interopRequireDefault","_reactFontawesome","_freeSolidSvgIcons","_arrayMove","_propTypes","_VisDataTableControl","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_typeof","o","Symbol","iterator","constructor","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","TypeError","iter","Array","from","isArray","_arrayLikeToArray","_createForOfIteratorHelper","allowArrayLike","it","length","F","s","done","value","_e","f","normalCompletion","didErr","err","step","next","_e2","return","minLen","toString","slice","name","test","len","arr2","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","key","_toPropertyKey","configurable","writable","_classCallCheck","instance","Constructor","_defineProperties","target","props","descriptor","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","Number","_inherits","subClass","superClass","create","_setPrototypeOf","p","setPrototypeOf","bind","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf","result","NewTarget","Reflect","construct","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","getPrototypeOf","cellRenderer","d","urlElt","link","url","field","urlbase","createElement","href","rowData","cellData","join","Fragment","dataKey","className","title","rowClassName","_ref","index","SelectDataTable","exports","_PureComponent","_super","_this","console","log","fWidth","fields","map","width","isShow","state","sortBy","sortDirection","selected","containerRef","React","createRef","autoSizer","headerRenderer","resizeRow","onResize","onSortEnd","onCheckChangedHandler","onAllCheckHandler","sortHandler","getSortData","_ref2","setState","_ref3","oldIndex","newIndex","_ref4","arrayMove","checked","_ref5","_ref6","downloadSelected","downloadLimit","configProps","data","alert","checkedBoxes","current","querySelectorAll","_iterator","_step","x","parentElement","style","backgroundColor","_iterator2","_step2","record","fetch","mode","then","json","slide_url","window","location","protocol","replace","problematicExtensions","hasProblematicExtension","some","ext","toLowerCase","endsWith","filename","substring","lastIndexOf","document","download","body","appendChild","click","removeChild","iframe","setAttribute","src","catch","error","collator","Intl","Collator","numeric","sensitivity","_this$props","filterData","filters","_this$state","currentData","sort","b","first","SortDirection","ASC","second","compare","_ref7","deltaX","prevFields","idx","findIndex","percentDelta","_ref8","_this2","label","FontAwesomeIcon","icon","DESC","faSortDown","faSortUp","faSort","axis","defaultClassName","defaultClassNameDragging","onDrag","event","_ref9","onStart","_ref10","onStop","_ref11","setTimeout","position","zIndex","onMouseDown","stopPropagation","selectionHandler","isChecked","item","downloadField","existingIndex","indexOf","prevState","concat","_ref12","isResize","render","_this3","_this$state2","finalData","ref","height","list","onCheckChanged","onAllCheck","AutoSizer","_ref13","Table","headerHeight","rowHeight","rowCount","rowGetter","_ref14","Column","onClick","faFileArrowDown","color","_ref15","type","includes","onChange","cellDataGetter","_ref16","PureComponent","propTypes","PropTypes","arrayOf","shape","isRequired","OVERLAY_ID","OldModule","module","bundle","Module","moduleName","hot","hotData","_acceptCallbacks","_disposeCallbacks","accept","fn","dispose","checkedAssets","assetsToAccept","parent","isParcelRequire","WebSocket","hostname","ws","onmessage","JSON","parse","handled","assets","asset","isNew","didAccept","hmrAcceptCheck","global","parcelRequire","id","every","generated","js","clear","hmrApply","v","hmrAcceptRun","reload","close","onclose","removeErrorOverlay","message","stack","overlay","createErrorOverlay","getElementById","remove","stackTrace","innerText","innerHTML","getParents","modules","parents","k","dep","Function","deps","cached","cache","cb"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAGA,IAAAE,eAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAH,sBAAA,CAAAH,OAAA;AACA,IAAAO,UAAA,GAAAJ,sBAAA,CAAAH,OAAA;AACA,IAAAQ,oBAAA,GAAAL,sBAAA,CAAAH,OAAA;AACAA,OAAA;AAA4B,SAAAG,uBAAAM,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAd,wBAAAc,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAH,UAAA,SAAAG,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAF,OAAA,EAAAE,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAJ,CAAA,UAAAG,CAAA,CAAAE,GAAA,CAAAL,CAAA,OAAAM,CAAA,KAAA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, { PureComponent } from 'react';\nimport {\n AutoSizer, Column, Table, SortDirection,\n} from 'react-virtualized';\nimport Draggable from 'react-draggable';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { faSortDown, faSortUp, faSort, faFileArrowDown } from '@fortawesome/free-solid-svg-icons';\nimport arrayMove from 'array-move';\nimport PropTypes from 'prop-types';\nimport VisDataTableControl from './VisDataTableControl/VisDataTableControl';\nimport './VisDataTable.css';\n\nconst cellRenderer = (d, f) => {\n let urlElt;\n if (f.link && (f.link.url || f.link.field)) {\n const urlbase = f.link.url || '';\n urlElt = (\n \n {d.cellData}\n \n );\n } else if (f.link && f.link.url) {\n urlElt = (\n \n {d.cellData}\n \n );\n } else {\n // urlElt = d.cellData;\n urlElt = Array.isArray(d.cellData) ? d.cellData.join(', ') : d.cellData;\n }\n return (\n \n
\n {urlElt}\n
\n
\n );\n};\n\nconst rowClassName = ({ index }) => {\n if (index < 0) {\n return 'headerRow';\n }\n return index % 2 === 0 ? 'evenRow' : 'oddRow';\n};\n\nexport default class SelectDataTable extends PureComponent {\n constructor(props) {\n console.log(\"constructed, showing props\")\n console.log(props)\n super(props);\n const fWidth = 1 / this.props.fields.length;\n let fields = this.props.fields.map((f) => ({ ...f, width: fWidth, isShow: true }));\n //fields = fields.unshift({width: 50, isShow: true})\n this.state = {\n fields,\n width: null,\n sortBy: null,\n sortDirection: null,\n selected: []\n };\n this.containerRef = React.createRef();\n this.autoSizer = React.createRef();\n this.headerRenderer = this.headerRenderer.bind(this);\n this.resizeRow = this.resizeRow.bind(this);\n this.onResize = this.onResize.bind(this);\n this.onSortEnd = this.onSortEnd.bind(this);\n this.onCheckChangedHandler = this.onCheckChangedHandler.bind(this);\n this.onAllCheckHandler = this.onAllCheckHandler.bind(this);\n this.sortHandler = this.sortHandler.bind(this);\n this.getSortData = this.getSortData.bind(this);\n }\n\n onResize({ width }) {\n this.setState({ width });\n }\n\n onSortEnd({ oldIndex, newIndex }) {\n this.setState(({ fields }) => ({\n fields: arrayMove(fields, oldIndex, newIndex),\n }));\n }\n\n onCheckChangedHandler(e) {\n const { value } = e.target;\n const { checked } = e.target;\n this.setState(({ fields }) => ({\n fields: fields.map((f) => {\n f.isShow = f.dataKey === value ? checked : f.isShow;\n return { ...f };\n }),\n }));\n }\n\n onAllCheckHandler() {\n this.setState(({ fields }) => ({\n fields: fields.map((f) => {\n f.isShow = true;\n return { ...f };\n }),\n }));\n }\n\n downloadSelected() {\n let downloadLimit = this.props.configProps.downloadLimit || 15;\n let data = this.state.selected\n if (data.length > downloadLimit){\n data = data.slice(0, downloadLimit);\n alert(\"Limiting download to first \" + downloadLimit)\n }\n this.setState({\"selected\":[]});\n let checkedBoxes = this.containerRef.current.querySelectorAll('input[type=\"checkbox\"]:checked');\n console.log(checkedBoxes)\n for (let x of checkedBoxes){\n //x.checked = false;\n x.parentElement.parentElement.style.backgroundColor = \"lightgray\";\n }\n\n console.log(data)\n console.log(\"about to try?\")\n console.log(this.props.configProps)\n // trigger downloads from pathdb\n for (let record of data){\n console.log(\"inside loop\")\n console.log(\"trying to get metadata for slide with pathdb id\", record)\n fetch(\"/node/\" + record + \"?_format=json\", {mode: \"cors\"}).then(x=>x.json()).then(x=>{ \n console.log(\"looking at wsi url: \", x['field_wsiimage'][0]['url'])\n let slide_url = x['field_wsiimage'][0]['url']\n if (window.location.protocol === \"https:\") {\n slide_url = slide_url.replace(/^http:\\/\\//i, 'https://');\n }\n const problematicExtensions = ['.png', '.jpg', '.jpeg', '.gif', '.bmp', '.webp', '.svg', '.pdf'];\n function hasProblematicExtension(url) {\n return problematicExtensions.some(ext => url.toLowerCase().endsWith(ext));\n }\n if (hasProblematicExtension(slide_url)){\n console.log(\"using anchor method\")\n const filename = slide_url.substring(slide_url.lastIndexOf('/') + 1);\n const a = document.createElement('a');\n a.href = slide_url;\n a.download = filename;\n document.body.appendChild(a);\n a.click();\n document.body.removeChild(a);\n } else {\n console.log(\"using iframe method\")\n const iframe = document.createElement(\"iframe\");\n iframe.setAttribute(\"sandbox\", \"allow-downloads allow-scripts\");\n iframe.src = slide_url;\n iframe.setAttribute(\"style\", \"display: none\");\n document.body.appendChild(iframe);\n }\n }).catch(console.error)\n }\n }\n\n getSortData() {\n const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });\n const { data, filterData, filters } = this.props;\n const { sortBy, sortDirection } = this.state;\n const currentData = filters.length > 0 ? filterData : data;\n\n return sortBy && sortDirection\n ? currentData.sort((a, b) => {\n const first = sortDirection === SortDirection.ASC ? a : b;\n const second = sortDirection === SortDirection.ASC ? b : a;\n return collator.compare(first[sortBy], second[sortBy]);\n })\n : currentData;\n }\n\n resizeRow({ dataKey, deltaX }) {\n const prevFields = this.state.fields;\n const idx = prevFields.findIndex((f) => f.dataKey === dataKey);\n\n const percentDelta = deltaX / this.state.width;\n prevFields[idx].width += percentDelta;\n\n if (idx < prevFields.length - 1) {\n prevFields[idx + 1].width = prevFields[idx + 1].width - percentDelta;\n }\n this.setState({ fields: [...prevFields] });\n }\n\n headerRenderer({\n dataKey, label, sortBy, sortDirection,\n }) {\n return (\n \n
\n {label}\n
\n {}\n
\n {sortBy === dataKey ? (\n \n ) : (\n \n )}\n
\n {\n this.resizeRow({ dataKey, deltaX });\n }}\n onStart={(event, { deltaX }) => {\n this.setState({\"isResize\": true});\n }}\n onStop={(event, { deltaX }) => {\n setTimeout(() => {\n this.setState({\"isResize\": false})\n }, 300); // 300 milliseconds delay\n }}\n position={{ x: 0 }}\n zIndex={999}\n >\n event.stopPropagation()}>⋮\n \n
\n );\n }\n\n selectionHandler(isChecked, rowData){\n let downloadLimit = this.props.configProps.downloadLimit || 15;\n console.log(\"chexmix\", isChecked, rowData)\n const { selected } = this.state;\n console.log(\"state selected before change\", selected)\n let item = rowData[this.props.configProps.downloadField];\n const existingIndex = selected.indexOf(item);\n // if check is true, add to state\n if (isChecked && existingIndex === -1) {\n this.setState(prevState => ({\n selected: [...prevState.selected, item]\n }));\n }\n // if check is false, remove from state\n if (!isChecked && existingIndex !== -1) {\n this.setState(prevState => ({\n selected: prevState.selected.filter(x => x !== item)\n }));\n }\n if (this.state.selected.length > downloadLimit - 2) {\n alert(\"Warning: We limit to at most \" + downloadLimit + \" concurrent downloads.\")\n }\n }\n\n sortHandler({ sortBy, sortDirection }) {\n\n if (!this.state.isResize){\n this.setState({ sortBy, sortDirection });\n }\n }\n\n render() {\n const { fields, sortBy, sortDirection, selected } = this.state;\n const finalData = this.getSortData();\n\n return (\n
\n \n \n {({ width, height }) => (\n finalData[index]}\n sort={this.sortHandler}\n sortBy={sortBy}\n sortDirection={sortDirection}\n >\n
{ this.downloadSelected() }}>
}\n cellRenderer={({ rowData }) => (\n this.selectionHandler(e.target.checked, rowData)}\n />\n )}\n />\n {fields\n .map((f) => (\n rowData[f.dataKey]}\n dataKey={f.dataKey}\n label={f.label}\n width={width * f.width}\n headerRenderer={this.headerRenderer}\n cellRenderer={(d) => cellRenderer(d, f)}\n />\n ))}\n \n )}\n
\n
\n );\n }\n}\n\nSelectDataTable.propTypes = {\n data: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n filterData: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n fields: PropTypes.arrayOf(PropTypes.shape()).isRequired,\n filters: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n};\n","var OVERLAY_ID = '__parcel__error__overlay__';\n\nvar OldModule = module.bundle.Module;\n\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData,\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n\n module.bundle.hotData = null;\n}\n\nmodule.bundle.Module = Module;\nvar checkedAssets, assetsToAccept;\n\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = process.env.HMR_HOSTNAME || location.hostname;\n var protocol = location.protocol === 'https:' ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + ':' + process.env.HMR_PORT + '/');\n ws.onmessage = function(event) {\n checkedAssets = {};\n assetsToAccept = [];\n\n var data = JSON.parse(event.data);\n\n if (data.type === 'update') {\n var handled = false;\n data.assets.forEach(function(asset) {\n if (!asset.isNew) {\n var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);\n if (didAccept) {\n handled = true;\n }\n }\n });\n\n // Enable HMR for CSS by default.\n handled = handled || data.assets.every(function(asset) {\n return asset.type === 'css' && asset.generated.js;\n });\n\n if (handled) {\n console.clear();\n\n data.assets.forEach(function (asset) {\n hmrApply(global.parcelRequire, asset);\n });\n\n assetsToAccept.forEach(function (v) {\n hmrAcceptRun(v[0], v[1]);\n });\n } else if (location.reload) { // `location` global exists in a web worker context but lacks `.reload()` function.\n location.reload();\n }\n }\n\n if (data.type === 'reload') {\n ws.close();\n ws.onclose = function () {\n location.reload();\n }\n }\n\n if (data.type === 'error-resolved') {\n console.log('[parcel] ✨ Error resolved');\n\n removeErrorOverlay();\n }\n\n if (data.type === 'error') {\n console.error('[parcel] 🚨 ' + data.error.message + '\\n' + data.error.stack);\n\n removeErrorOverlay();\n\n var overlay = createErrorOverlay(data);\n document.body.appendChild(overlay);\n }\n };\n}\n\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n }\n}\n\nfunction createErrorOverlay(data) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n\n // html encode message and stack trace\n var message = document.createElement('div');\n var stackTrace = document.createElement('pre');\n message.innerText = data.error.message;\n stackTrace.innerText = data.error.stack;\n\n overlay.innerHTML = (\n '
' +\n 'ERROR' +\n '🚨' +\n '
' + message.innerHTML + '
' +\n '
' + stackTrace.innerHTML + '
' +\n '
'\n );\n\n return overlay;\n\n}\n\nfunction getParents(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n\n var parents = [];\n var k, d, dep;\n\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || (Array.isArray(dep) && dep[dep.length - 1] === id)) {\n parents.push(k);\n }\n }\n }\n\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n\n return parents;\n}\n\nfunction hmrApply(bundle, asset) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (modules[asset.id] || !bundle.parent) {\n var fn = new Function('require', 'module', 'exports', asset.generated.js);\n asset.isNew = !modules[asset.id];\n modules[asset.id] = [fn, asset.deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n}\n\nfunction hmrAcceptCheck(bundle, id) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n\n if (!modules[id] && bundle.parent) {\n return hmrAcceptCheck(bundle.parent, id);\n }\n\n if (checkedAssets[id]) {\n return;\n }\n checkedAssets[id] = true;\n\n var cached = bundle.cache[id];\n\n assetsToAccept.push([bundle, id]);\n\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n return true;\n }\n\n return getParents(global.parcelRequire, id).some(function (id) {\n return hmrAcceptCheck(global.parcelRequire, id)\n });\n}\n\nfunction hmrAcceptRun(bundle, id) {\n var cached = bundle.cache[id];\n bundle.hotData = {};\n if (cached) {\n cached.hot.data = bundle.hotData;\n }\n\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData);\n });\n }\n\n delete bundle.cache[id];\n bundle(id);\n\n cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n cb();\n });\n return true;\n }\n}\n"]} \ No newline at end of file diff --git a/dist/SelectDataTable.8618513c.js b/dist/SelectDataTable.8618513c.js new file mode 100644 index 0000000..ce50e3c --- /dev/null +++ b/dist/SelectDataTable.8618513c.js @@ -0,0 +1,591 @@ +// modules are defined as an array +// [ module function, map of requires ] +// +// map of requires is short require name -> numeric require +// +// anything defined in a previous bundle is accessed via the +// orig method which is the require for previous bundles +parcelRequire = (function (modules, cache, entry, globalName) { + // Save the require from previous bundle to this closure if any + var previousRequire = typeof parcelRequire === 'function' && parcelRequire; + var nodeRequire = typeof require === 'function' && require; + + function newRequire(name, jumped) { + if (!cache[name]) { + if (!modules[name]) { + // if we cannot find the module within our internal map or + // cache jump to the current global require ie. the last bundle + // that was added to the page. + var currentRequire = typeof parcelRequire === 'function' && parcelRequire; + if (!jumped && currentRequire) { + return currentRequire(name, true); + } + + // If there are other bundles on this page the require from the + // previous one is saved to 'previousRequire'. Repeat this as + // many times as there are bundles until the module is found or + // we exhaust the require chain. + if (previousRequire) { + return previousRequire(name, true); + } + + // Try the node require function if it exists. + if (nodeRequire && typeof name === 'string') { + return nodeRequire(name); + } + + var err = new Error('Cannot find module \'' + name + '\''); + err.code = 'MODULE_NOT_FOUND'; + throw err; + } + + localRequire.resolve = resolve; + localRequire.cache = {}; + + var module = cache[name] = new newRequire.Module(name); + + modules[name][0].call(module.exports, localRequire, module, module.exports, this); + } + + return cache[name].exports; + + function localRequire(x){ + return newRequire(localRequire.resolve(x)); + } + + function resolve(x){ + return modules[name][1][x] || x; + } + } + + function Module(moduleName) { + this.id = moduleName; + this.bundle = newRequire; + this.exports = {}; + } + + newRequire.isParcelRequire = true; + newRequire.Module = Module; + newRequire.modules = modules; + newRequire.cache = cache; + newRequire.parent = previousRequire; + newRequire.register = function (id, exports) { + modules[id] = [function (require, module) { + module.exports = exports; + }, {}]; + }; + + var error; + for (var i = 0; i < entry.length; i++) { + try { + newRequire(entry[i]); + } catch (e) { + // Save first error but execute all entries + if (!error) { + error = e; + } + } + } + + if (entry.length) { + // Expose entry point to Node, AMD or browser globals + // Based on https://github.com/ForbesLindesay/umd/blob/master/template.js + var mainExports = newRequire(entry[entry.length - 1]); + + // CommonJS + if (typeof exports === "object" && typeof module !== "undefined") { + module.exports = mainExports; + + // RequireJS + } else if (typeof define === "function" && define.amd) { + define(function () { + return mainExports; + }); + + //