@hpcc-js/api 2.14.2 → 2.14.3

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/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/__package__.ts","../src/I1DChart.ts","../src/I2DChart.ts","../src/I2DAggrChart.ts","../src/IGraph.ts","../src/IHighlight.ts","../src/IInput.ts","../src/INDChart.ts","../src/Tooltip.ts","../../../node_modules/style-inject/dist/style-inject.es.js","../src/ITooltip.ts","../src/ITree.ts"],"sourcesContent":["export const PKG_NAME = \"@hpcc-js/api\";\nexport const PKG_VERSION = \"2.14.2\";\nexport const BUILD_VERSION = \"2.108.6\";\n","import { Palette } from \"@hpcc-js/common\";\n\nexport function I1DChart() {\n}\nI1DChart.prototype._dataFamily = \"1D\";\nI1DChart.prototype._palette = Palette.rainbow(\"default\");\n\n// Events ---\nI1DChart.prototype.click = function (row, column, selected) {\n};\n\nI1DChart.prototype.dblclick = function (row, column, selected) {\n};\n","import { Palette } from \"@hpcc-js/common\";\nimport { hsl as d3Hsl } from \"d3-color\";\n\nexport function I2DChart() {\n}\nI2DChart.prototype._dataFamily = \"2D\";\nI2DChart.prototype._palette = Palette.ordinal(\"default\");\n\nI2DChart.prototype.fillColor = function (row: any[], column, value, origRow): string {\n return this._palette(row[0]);\n};\n\nI2DChart.prototype.strokeColor = function (row: any[], column, value, origRow): string {\n return d3Hsl(this.fillColor(row, column, value, origRow)).darker().toString();\n};\n\nI2DChart.prototype.textColor = function (row: any[], column, value, origRow): string {\n return Palette.textColor(this.fillColor(row, column, value, origRow));\n};\n\n// Events ---\nI2DChart.prototype.click = function (row: object, column, selected) {\n};\n\nI2DChart.prototype.dblclick = function (row: object, column, selected) {\n};\n","import { Palette } from \"@hpcc-js/common\";\nimport { hsl as d3Hsl } from \"d3-color\";\n\nexport function I2DAggrChart() {\n}\nI2DAggrChart.prototype._palette = Palette.rainbow(\"default\");\n\nI2DAggrChart.prototype.fillColor = function (row: any[][], column, value): string {\n return this._palette(row.length);\n};\n\nI2DAggrChart.prototype.strokeColor = function (row: any[][], column, value): string {\n return d3Hsl(this.fillColor(row, column, value)).darker().toString();\n};\n\nI2DAggrChart.prototype.textColor = function (row: any[][], column, value): string {\n return Palette.textColor(this.fillColor(row, column, value));\n};\n\n// Events ---\nI2DAggrChart.prototype.click = function (row: object[], column, selected) {\n};\n\nI2DAggrChart.prototype.dblclick = function (row: object[], column, selected) {\n};\n","export function IGraph() {\n}\nIGraph.prototype._dataFamily = \"graph\";\n\n// Events ---\nIGraph.prototype.vertex_click = function (_row, _col, _sel, more) {\n if (more && more.vertex) {\n }\n};\n\nIGraph.prototype.vertex_dblclick = function (_row, _col, _sel, more) {\n if (more && more.vertex) {\n }\n};\n\nIGraph.prototype.edge_click = function (_row, _col, _sel, more) {\n if (more && more.edge) {\n }\n};\n\nIGraph.prototype.edge_dblclick = function (_row, _col, _sel, more) {\n if (more && more.edge) {\n }\n};\n","export interface IHighlight {\n highlightColumn(column: string): this;\n}\n\nexport function instanceOfIHighlight(w: any): w is IHighlight {\n return typeof (w as any).highlightColumn === \"function\";\n}\n","import { Widget } from \"@hpcc-js/common\";\n\n// Use old school class declaration as this is a mixin ---\nexport function IInput() {\n}\nIInput.prototype = Object.create(Widget.prototype);\nIInput.prototype.constructor = IInput;\n\n// abstract target(): any;\n// abstract target(_: any): this;\n\n// Implementation ---\nIInput.prototype.isValid = function () {\n if (this.validate()) {\n const re = new RegExp(this.validate());\n if (!re.test(this.value())) {\n return false;\n }\n }\n return true;\n};\n\nIInput.prototype.hasValue = function () {\n if (typeof (this as any).type === \"function\") {\n switch ((this as any).type()) {\n case \"radio\":\n /* falls through */\n case \"checkbox\":\n if (this.value() && this.value() !== \"false\") {\n return true;\n }\n break;\n default:\n if (this.value()) {\n return true;\n }\n break;\n }\n return false;\n }\n return this.value() !== \"\";\n};\n\n// Events ---\nIInput.prototype.blur = function (_w) {\n};\nIInput.prototype.keyup = function (_w) {\n};\nIInput.prototype.focus = function (_w) {\n};\nIInput.prototype.click = function (_w) {\n};\nIInput.prototype.dblclick = function (_w) {\n};\nIInput.prototype.change = function (_w, complete: boolean) {\n};\n\nIInput.prototype.resetValue = function (w) {\n w.value(w._inputElement[0].node().value);\n};\n\nIInput.prototype.disable = function (disable) {\n this._inputElement.forEach(function (e, idx) {\n e.attr(\"disabled\", disable ? \"disabled\" : null);\n });\n};\n\nIInput.prototype.setFocus = function () {\n if (this._inputElement.length) {\n this._inputElement[0].node().focus();\n }\n};\n\nexport interface IInput {\n name: { (): string; (_: string): IInput };\n name_exists: () => boolean;\n label: { (): string; (_: string): IInput };\n label_exists: () => boolean;\n value: { (): any; (_: any): IInput };\n value_exists: () => boolean;\n validate: { (): string; (_: string): IInput };\n validate_exists: () => boolean;\n}\nIInput.prototype.publish(\"name\", \"\", \"string\", \"HTML name for the input\");\nIInput.prototype.publish(\"label\", \"\", \"string\", \"Descriptive label\");\nIInput.prototype.publish(\"value\", \"\", \"string\", \"Input Current Value\");\nIInput.prototype.publish(\"validate\", null, \"string\", \"Input Validation\");\n","import { Palette } from \"@hpcc-js/common\";\nimport { hsl as d3Hsl } from \"d3-color\";\n\nexport function INDChart() {\n}\nINDChart.prototype._dataFamily = \"ND\";\nINDChart.prototype._palette = Palette.ordinal(\"default\");\n\nINDChart.prototype.fillColor = function (row: any[], column: string, value: number, origRow: any): string {\n return this._palette(column);\n};\n\nINDChart.prototype.strokeColor = function (row: any[], column: string, value: number, origRow: any): string {\n return d3Hsl(this.fillColor(row, column, value, origRow)).darker().toString();\n};\n\nINDChart.prototype.textColor = function (row: any[], column: string, value: number, origRow: any): string {\n return Palette.textColor(this.fillColor(row, column, value, origRow));\n};\n\n// Events ---\nINDChart.prototype.click = function (row, column, selected) {\n};\n\nINDChart.prototype.dblclick = function (row, column, selected) {\n};\n","// Based on https://github.com/GordonSmith/d3-tip forked from https://github.com/Caged/d3-tip\n\nimport { map } from \"d3-collection\";\nimport { select, selection } from \"d3-selection\";\n\nexport function tip() {\n let direction = d3TipDirection;\n let offset = d3TipOffset;\n let html = d3TipHTML;\n let rootElement = functor(document.body);\n let node = initNode();\n let svg = null;\n let point = null;\n let target = null;\n\n const tip: any = function (vis) {\n svg = getSVGNode(vis);\n if (!svg) return;\n point = svg.createSVGPoint();\n const re = rootElement();\n if (!re) return;\n if (!node) return;\n re.appendChild(node);\n };\n\n // Public - show the tooltip on the screen\n //\n // Returns a tip\n tip.show = function (d, idx, arr) {\n target = arr[idx];\n const args = Array.prototype.slice.call(arguments);\n const content = html.apply(this, args);\n if (content === null) {\n return tip;\n }\n const poffset = offset.apply(this, args);\n const nodel = getNodeEl();\n let i = directions.length;\n let coords;\n const root_bbox = rootElement().getBoundingClientRect();\n nodel.html(content)\n .style(\"opacity\", 1).style(\"pointer-events\", \"all\");\n\n while (i--) nodel.classed(directions[i], false);\n let placement_success = false;\n const placement_overflow = {};\n let least_overflow_direction = directions[0];\n for (let i = 0; i < directions.length; i++) {\n placement_success = _placement_attempt(directions[i]);\n if (placement_success) break;\n }\n if (!placement_success) {\n nodel.classed(\"notick\", true);\n const top_offset = _vertical_adjustment(placement_overflow[least_overflow_direction]);\n const left_offset = _horizontal_adjustment(placement_overflow[least_overflow_direction]);\n _placement_attempt(least_overflow_direction, top_offset, left_offset);\n } else {\n nodel.classed(\"notick\", false);\n }\n return tip;\n\n function _horizontal_adjustment(overflow_obj) {\n if (overflow_obj.left > overflow_obj.right) {\n return overflow_obj.left > 0 ? -overflow_obj.left : 0;\n } else {\n return overflow_obj.right > 0 ? overflow_obj.right : 0;\n }\n }\n function _vertical_adjustment(overflow_obj) {\n if (overflow_obj.top > overflow_obj.bottom) {\n return overflow_obj.top > 0 ? -overflow_obj.top : 0;\n } else {\n return overflow_obj.bottom;\n }\n }\n\n function _placement_attempt(_dir, _top_offset?, _left_offset?) {\n _top_offset = _top_offset ? _top_offset : 0;\n _left_offset = _left_offset ? _left_offset : 0;\n nodel.style(\"white-space\", \"nowrap\");\n coords = directionCallbacks.get(_dir).apply(this);\n nodel.classed(_dir, true)\n .style(\"top\", (coords.top + poffset[0] - _top_offset) + \"px\")\n .style(\"left\", (coords.left + poffset[1] - _left_offset) + \"px\");\n const nodel_bbox = nodel.node().getBoundingClientRect();\n const ret = nodel_bbox.top > root_bbox.top\n && nodel_bbox.left > root_bbox.left\n && nodel_bbox.bottom < root_bbox.bottom\n && nodel_bbox.right < root_bbox.right\n ;\n placement_overflow[_dir] = {\n top: root_bbox.top - nodel_bbox.top,\n right: nodel_bbox.right - root_bbox.right,\n bottom: nodel_bbox.bottom - root_bbox.bottom,\n left: root_bbox.left - nodel_bbox.left\n };\n nodel.style(\"white-space\", \"normal\");\n placement_overflow[_dir].total_overflow = Object.keys(placement_overflow[_dir])\n .filter(side => placement_overflow[_dir][side] > 0)\n .reduce((sum, side) => {\n const side_overflow = placement_overflow[_dir][side];\n return sum + side_overflow;\n }, 0);\n if (placement_overflow[least_overflow_direction].total_overflow > placement_overflow[_dir].total_overflow) {\n least_overflow_direction = _dir;\n }\n if (!ret) {\n nodel.classed(_dir, false);\n }\n return ret;\n }\n };\n\n // Public - hide the tooltip\n //\n // Returns a tip\n tip.hide = function () {\n const nodel = getNodeEl();\n nodel.style(\"opacity\", 0).style(\"pointer-events\", \"none\");\n return tip;\n };\n\n // Public: Proxy attr calls to the d3 tip container.\n // Sets or gets attribute value.\n //\n // n - name of the attribute\n // v - value of the attribute\n //\n // Returns tip or attribute value\n // eslint-disable-next-line no-unused-vars\n tip.attr = function (n, v) {\n if (arguments.length < 2 && typeof n === \"string\") {\n return getNodeEl().attr(n);\n }\n\n const args = Array.prototype.slice.call(arguments);\n selection.prototype.attr.apply(getNodeEl(), args);\n return tip;\n };\n\n // Public: Proxy style calls to the d3 tip container.\n // Sets or gets a style value.\n //\n // n - name of the property\n // v - value of the property\n //\n // Returns tip or style property value\n // eslint-disable-next-line no-unused-vars\n tip.style = function (n, v) {\n if (arguments.length < 2 && typeof n === \"string\") {\n return getNodeEl().style(n);\n }\n\n const args = Array.prototype.slice.call(arguments);\n selection.prototype.style.apply(getNodeEl(), args);\n return tip;\n };\n\n // Public: Set or get the direction of the tooltip\n //\n // v - One of n(north), s(south), e(east), or w(west), nw(northwest),\n // sw(southwest), ne(northeast) or se(southeast)\n //\n // Returns tip or direction\n tip.direction = function (v) {\n if (!arguments.length) return direction;\n direction = v == null ? v : functor(v);\n\n return tip;\n };\n\n // Public: Sets or gets the offset of the tip\n //\n // v - Array of [x, y] offset\n //\n // Returns offset or\n tip.offset = function (v) {\n if (!arguments.length) return offset;\n offset = v == null ? v : functor(v);\n\n return tip;\n };\n\n // Public: sets or gets the html value of the tooltip\n //\n // v - String value of the tip\n //\n // Returns html value or tip\n tip.html = function (v) {\n if (!arguments.length) return html;\n html = v == null ? v : functor(v);\n\n return tip;\n };\n\n // Public: sets or gets the root element anchor of the tooltip\n //\n // v - root element of the tooltip\n //\n // Returns root node of tip\n tip.rootElement = function (v) {\n if (!arguments.length) return rootElement;\n rootElement = functor(v);\n\n return tip;\n };\n\n // Public: destroys the tooltip and removes it from the DOM\n //\n // Returns a tip\n tip.destroy = function () {\n if (node) {\n getNodeEl().remove();\n node = null;\n }\n return tip;\n };\n\n function d3TipDirection() { return \"n\"; }\n function d3TipOffset() { return [0, 0]; }\n function d3TipHTML() { return \" \"; }\n\n const directionCallbacks = map({\n n: directionNorth,\n s: directionSouth,\n e: directionEast,\n w: directionWest,\n nw: directionNorthWest,\n ne: directionNorthEast,\n sw: directionSouthWest,\n se: directionSouthEast\n });\n const directions = directionCallbacks.keys();\n\n function directionNorth() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.n.y - node.offsetHeight,\n left: bbox.n.x - node.offsetWidth / 2\n };\n }\n\n function directionSouth() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.s.y + 8,\n left: bbox.s.x - node.offsetWidth / 2\n };\n }\n\n function directionEast() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.e.y - node.offsetHeight / 2,\n left: bbox.e.x + 8\n };\n }\n\n function directionWest() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.w.y - node.offsetHeight / 2,\n left: bbox.w.x - node.offsetWidth - 8\n };\n }\n\n function directionNorthWest() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.nw.y - node.offsetHeight,\n left: bbox.nw.x - node.offsetWidth\n };\n }\n\n function directionNorthEast() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.ne.y - node.offsetHeight,\n left: bbox.ne.x\n };\n }\n\n function directionSouthWest() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.sw.y,\n left: bbox.sw.x - node.offsetWidth\n };\n }\n\n function directionSouthEast() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.se.y,\n left: bbox.se.x\n };\n }\n\n function initNode() {\n const div = select(document.createElement(\"div\"));\n div\n .attr(\"class\", \"d3-tip\")\n .style(\"position\", \"absolute\")\n .style(\"top\", \"0px\")\n .style(\"opacity\", 0)\n .style(\"pointer-events\", \"none\")\n .style(\"box-sizing\", \"border-box\");\n\n return div.node();\n }\n\n function getSVGNode(element) {\n const svgNode = element.node();\n if (!svgNode) return null;\n if (svgNode.tagName.toLowerCase() === \"svg\") return svgNode;\n return svgNode.ownerSVGElement;\n }\n\n function getNodeEl() {\n if (node == null) {\n node = initNode();\n // re-add node to DOM\n rootElement().appendChild(node);\n }\n return select(node);\n }\n\n // Private - gets the screen coordinates of a shape\n //\n // Given a shape on the screen, will return an SVGPoint for the directions\n // n(north), s(south), e(east), w(west), ne(northeast), se(southeast),\n // nw(northwest), sw(southwest).\n //\n // +-+-+\n // | |\n // + +\n // | |\n // +-+-+\n //\n // Returns an Object {n, s, e, w, nw, sw, ne, se}\n function getScreenBBox(targetShape) {\n let targetel = target || targetShape;\n\n while (targetel.getCTM == null && targetel.parentNode != null) {\n targetel = targetel.parentNode;\n }\n\n const bbox: any = {};\n const matrix = targetel.getCTM();\n const tbbox = targetel.getBBox();\n const width = tbbox.width;\n const height = tbbox.height;\n const x = tbbox.x;\n const y = tbbox.y;\n\n point.x = x;\n point.y = y;\n bbox.nw = point.matrixTransform(matrix);\n point.x += width;\n bbox.ne = point.matrixTransform(matrix);\n point.y += height;\n bbox.se = point.matrixTransform(matrix);\n point.x -= width;\n bbox.sw = point.matrixTransform(matrix);\n point.y -= height / 2;\n bbox.w = point.matrixTransform(matrix);\n point.x += width;\n bbox.e = point.matrixTransform(matrix);\n point.x -= width / 2;\n point.y -= height / 2;\n bbox.n = point.matrixTransform(matrix);\n point.y += height;\n bbox.s = point.matrixTransform(matrix);\n\n return bbox;\n }\n\n // Private - replace D3JS 3.X d3.functor() function\n function functor(v) {\n return typeof v === \"function\" ? v : function () {\n return v;\n };\n }\n\n return tip;\n}\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import { Widget } from \"@hpcc-js/common\";\nimport { format as d3Format } from \"d3-format\";\nimport { tip } from \"./Tooltip\";\n\nimport \"../src/ITooltip.css\";\n\ndeclare const event: object;\n\n// Use old school class declaration as this is a mixin ---\nexport function ITooltip() {\n this.tooltip = tip();\n\n if (this.tooltipLabelFormat_exists()) {\n this._labelFormatter = d3Format(this.tooltipLabelFormat() as string);\n }\n\n if (this.tooltipValueFormat_exists()) {\n this._valueFormatter = d3Format(this.tooltipValueFormat() as string);\n }\n\n if (this.layerEnter) {\n const layerEnter = this.layerEnter;\n this.layerEnter = function (_base, svgElement, _domElement) {\n if (!this._parentOverlay) {\n this._parentOverlay = _base._parentOverlay;\n }\n this.tooltipEnter(svgElement);\n layerEnter.apply(this, arguments);\n };\n const layerUpdate = this.layerUpdate;\n this.layerUpdate = function (_base) {\n layerUpdate.apply(this, arguments);\n this.tooltipUpdate();\n };\n const layerExit = this.layerExit;\n this.layerExit = function (_base) {\n this.tooltipExit();\n layerExit.apply(this, arguments);\n };\n } else {\n const enter = this.enter;\n this.enter = function (_domNode, element) {\n this.tooltipEnter(element);\n enter.apply(this, arguments);\n };\n const update = this.update;\n this.update = function (_domNode, _element) {\n update.apply(this, arguments);\n this.tooltipUpdate();\n };\n const exit = this.exit;\n this.exit = function (_domNode, _element) {\n this.tooltipExit();\n exit.apply(this, arguments);\n };\n }\n}\nITooltip.prototype = Object.create(Widget.prototype);\nITooltip.prototype.constructor = ITooltip;\n\n// abstract target(): any;\n// abstract target(_: any): this;\n\nITooltip.prototype.tooltipEnter = function (element) {\n const overlayElement = this.parentOverlay();\n if (!overlayElement.empty()) {\n this.tooltip.rootElement(overlayElement.node().parentNode);\n }\n element.call(this.tooltip);\n};\n\nITooltip.prototype.tooltipUpdate = function () {\n this.tooltip.offset(() => {\n if (event && this.tooltipFollowMouse()) {\n const d3tipElement: HTMLDivElement = document.querySelector(\".d3-tip\"); // d3Tip offers no reference to the '.d3-tip' element...?\n d3tipElement.style.display = \"block\";\n d3tipElement.style.left = this.tooltipOffset() + ((event as any).clientX) + \"px\";\n d3tipElement.style.top = (event as any).clientY + \"px\";\n return [];\n }\n switch (this.tooltip.direction()()) {\n case \"e\":\n return [0, this.tooltipOffset()];\n default:\n return [-this.tooltipOffset(), 0];\n }\n });\n\n let classed = this.tooltip.attr(\"class\");\n if (classed) {\n classed = classed.split(\" notick\").join(\"\") + (this.tooltipTick() ? \"\" : \" notick\") + (this.tooltipStyle() === \"none\" ? \" hidden\" : \"\");\n classed = classed.split(\" \")\n .filter(function (_class) {\n return _class.indexOf(\"ITooltip-tooltipStyle-\") !== 0;\n })\n .join(\" \")\n ;\n classed += \" ITooltip-tooltipStyle-\" + this.tooltipStyle();\n this.tooltip\n .attr(\"class\", classed)\n ;\n }\n};\n\nITooltip.prototype.tooltipExit = function () {\n if (this.tooltip) {\n this.tooltip.destroy();\n }\n};\n\nITooltip.prototype._tooltipHTML = function (d) {\n return d;\n};\n\nITooltip.prototype.tooltipHTML = function (_) {\n return this.tooltip.html(_);\n};\n\nITooltip.prototype.tooltipFormat = function (opts: { label?: string | number, series?: string | number, value?: Date | string | number, arr?: Array<{ color: string, label: string, value: string }> } = {}) {\n opts.label = opts.label === undefined ? \"\" : opts.label;\n if (this._labelFormatter) {\n opts.label = this._labelFormatter(opts.label) || \"\";\n } else if (this.formatData && this.parseData) {\n opts.label = this.formatData(this.parseData(opts.label));\n }\n opts.series = opts.series || \"\";\n if (opts.value instanceof Date) {\n opts.value = opts.value || \"\";\n } else if (this._valueFormatter) {\n opts.value = this._valueFormatter(opts.value) || \"\";\n } else if (this.formatValue && this.parseValue) {\n opts.value = this.formatValue(this.parseValue(opts.value));\n }\n switch (this.tooltipStyle()) {\n case \"none\":\n break;\n case \"series-table\":\n let html = '<table class=\"ITooltip-series-table\">'\n + \"<thead>\"\n + '<tr><th colspan=\"2\">' + opts.label + \"</th></tr>\"\n + \"</thead>\"\n + \"<tbody>\";\n opts.arr.forEach(function (row) {\n html += \"<tr>\";\n html += \"<td>\";\n html += '<div class=\"series-table-row-color\" style=\"background-color:' + row.color + '\"></div>';\n html += '<div class=\"series-table-row-label\">' + row.label + \"</div>\";\n html += \"</td>\";\n html += '<td><div class=\"series-table-row-value\">' + row.value + \"</div></td>\";\n html += \"</tr>\";\n });\n html += \"</tbody>\";\n html += \"</table>\";\n return html;\n default:\n if (opts.series) {\n return \"<span style='color:\" + this.tooltipSeriesColor() + \"'>\" + opts.series + \"</span> / <span style='color:\" + this.tooltipLabelColor() + \"'>\" + opts.label + \"</span>: <span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\n }\n if (opts.label !== \"\") {\n return \"<span style='color:\" + this.tooltipLabelColor() + \"'>\" + opts.label + \"</span>: <span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\n }\n return \"<span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\n }\n};\n\nITooltip.prototype.tooltipKeyValueFormat = function (titleKey: string, obj: object): string {\n let body = \"\";\n for (const key in obj) {\n if (key !== titleKey) {\n const value = obj && obj[key] ? obj[key] : \"\";\n body += `<tr><td style=\"${this.tooltipLabelColor_exists() ? \"color:\" + this.tooltipLabelColor() : \"\"}\">${key}</td><td style=\"font-weight:normal\">${value}</td></tr>`;\n }\n }\n return `<table>\n <thead>\n <tr><th colspan=\"2\" style=\"font-weight:bold;font-size:16px\">${obj[titleKey]}</th></tr>\n </thead>\n <tbody>\n ${body}\n </tbody>\n </table>`;\n};\n\nexport interface ITooltip {\n tooltipStyle: { (): \"default\" | \"none\" | \"series-table\"; (_: \"default\" | \"none\" | \"series-table\"): ITooltip; };\n tooltipFollowMouse: { (): boolean; (_: boolean): ITooltip; };\n tooltipLabelFormat: (_?) => string | ITooltip;\n tooltipLabelFormat_exists: () => boolean;\n tooltipValueFormat: (_?) => string | ITooltip;\n tooltipValueFormat_exists: () => boolean;\n tooltipSeriesColor: { (): string; (_: string): ITooltip; };\n tooltipLabelColor: { (): string; (_: string): ITooltip; };\n tooltipLabelColor_exists: () => boolean;\n tooltipValueColor: { (): string; (_: string): ITooltip; };\n tooltipTick: { (): boolean; (_: boolean): ITooltip; };\n tooltipOffset: { (): number; (_: number): ITooltip; };\n tooltipOffset_default: { (): number; (_: number): ITooltip; };\n}\nITooltip.prototype.publish(\"tooltipStyle\", \"default\", \"set\", \"Style mode\", [\"default\", \"none\", \"series-table\"], {});\nITooltip.prototype.publish(\"tooltipFollowMouse\", false, \"boolean\", \"If true, the tooltip will follow mouse movement\", null, {});\nITooltip.prototype.publish(\"tooltipLabelFormat\", undefined, \"string\", \"Format of tooltip label(s) (the domain axis)\", null, {});\nITooltip.prototype.publish(\"tooltipValueFormat\", undefined, \"string\", \"Number format of tooltip value(s)\", null, {});\nITooltip.prototype.publish(\"tooltipSeriesColor\", \"#EAFFFF\", \"html-color\", \"Color of tooltip series text\", null, {});\nITooltip.prototype.publish(\"tooltipLabelColor\", \"#CCFFFF\", \"html-color\", \"Color of tooltip label text (the domain axis)\", null, {});\nITooltip.prototype.publish(\"tooltipValueColor\", \"white\", \"html-color\", \"Color of tooltip value(s)\", null, {});\nITooltip.prototype.publish(\"tooltipTick\", true, \"boolean\", \"Show tooltip tick\", null, {});\nITooltip.prototype.publish(\"tooltipOffset\", 8, \"number\", \"Offset from the cursor\", null, {});\n\nconst tooltipLabelFormat = ITooltip.prototype.tooltipLabelFormat;\nITooltip.prototype.tooltipLabelFormat = function (_?): string | ITooltip {\n const retVal = tooltipLabelFormat.apply(this, arguments);\n if (arguments.length) {\n this._labelFormatter = d3Format(_);\n }\n return retVal;\n};\n\nconst tooltipValueFormat = ITooltip.prototype.tooltipValueFormat;\nITooltip.prototype.tooltipValueFormat = function (_?): string | ITooltip {\n const retVal = tooltipValueFormat.apply(this, arguments);\n if (arguments.length) {\n this._valueFormatter = d3Format(_);\n }\n return retVal;\n};\n","import { Palette } from \"@hpcc-js/common\";\n\n// Use old school class declaration as this is a mixin ---\nexport function ITree() {\n}\nITree.prototype.constructor = ITree;\n\n// Events ---\nITree.prototype.click = function (row, column, selected) {\n};\n\nITree.prototype.dblclick = function (row, column, selected) {\n};\n\nITree.prototype._palette = Palette.ordinal(\"default\");\n"],"names":["Palette","d3Hsl","Widget","selection","map","select","d3Format"],"mappings":";;;;;;AAAO,QAAM,QAAQ,GAAG;AACjB,QAAM,WAAW,GAAG;AACpB,QAAM,aAAa,GAAG;;aCAb,QAAQ,GAAA;IACxB;IACA,QAAQ,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI;IACrC,QAAQ,CAAC,SAAS,CAAC,QAAQ,GAAGA,cAAO,CAAC,OAAO,CAAC,SAAS,CAAC;IAExD;IACA,QAAQ,C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AAI,CAAC,eAAe,GAAGI,aAAQ,CAAC,CAAC,CAAC;QACtC;IACA,IAAA,OAAO,MAAM;IACjB,CAAC;IAED,IAAM,kBAAkB,GAAG,QAAQ,CAAC,SAAS,CAAC,kBAAkB;IAChE,QAAQ,CAAC,SAAS,CAAC,kBAAkB,GAAG,UAAU,CAAE,EAAA;QAChD,IAAM,MAAM,GAAG,kBAAkB,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC;IACxD,IAAA,IAAI,SAAS,CAAC,MAAM,EAAE;IAClB,QAAA,IAAI,CAAC,eAAe,GAAGA,aAAQ,CAAC,CAAC,CAAC;QACtC;IACA,IAAA,OAAO,MAAM;IACjB,CAAC;;IC9ND;aACgB,KAAK,GAAA;IACrB;IACA,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,KAAK;IAEnC;IACA,KAAK,CAAC,SAAS,CAAC,KAAK,GAAG,UAAU,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAA;IACvD,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,QAAQ,GAAG,UAAU,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAA;IAC1D,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,QAAQ,GAAGN,cAAO,CAAC,OAAO,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[9]}
1
+ {"version":3,"file":"index.js","sources":["../src/__package__.ts","../src/I1DChart.ts","../src/I2DChart.ts","../src/I2DAggrChart.ts","../src/IGraph.ts","../src/IHighlight.ts","../src/IInput.ts","../src/INDChart.ts","../src/Tooltip.ts","../../../node_modules/style-inject/dist/style-inject.es.js","../src/ITooltip.ts","../src/ITree.ts"],"sourcesContent":["export const PKG_NAME = \"@hpcc-js/api\";\r\nexport const PKG_VERSION = \"2.14.2\";\r\nexport const BUILD_VERSION = \"2.108.6\";\r\n","import { Palette } from \"@hpcc-js/common\";\r\n\r\nexport function I1DChart() {\r\n}\r\nI1DChart.prototype._dataFamily = \"1D\";\r\nI1DChart.prototype._palette = Palette.rainbow(\"default\");\r\n\r\n// Events ---\r\nI1DChart.prototype.click = function (row, column, selected) {\r\n};\r\n\r\nI1DChart.prototype.dblclick = function (row, column, selected) {\r\n};\r\n","import { Palette } from \"@hpcc-js/common\";\r\nimport { hsl as d3Hsl } from \"d3-color\";\r\n\r\nexport function I2DChart() {\r\n}\r\nI2DChart.prototype._dataFamily = \"2D\";\r\nI2DChart.prototype._palette = Palette.ordinal(\"default\");\r\n\r\nI2DChart.prototype.fillColor = function (row: any[], column, value, origRow): string {\r\n return this._palette(row[0]);\r\n};\r\n\r\nI2DChart.prototype.strokeColor = function (row: any[], column, value, origRow): string {\r\n return d3Hsl(this.fillColor(row, column, value, origRow)).darker().toString();\r\n};\r\n\r\nI2DChart.prototype.textColor = function (row: any[], column, value, origRow): string {\r\n return Palette.textColor(this.fillColor(row, column, value, origRow));\r\n};\r\n\r\n// Events ---\r\nI2DChart.prototype.click = function (row: object, column, selected) {\r\n};\r\n\r\nI2DChart.prototype.dblclick = function (row: object, column, selected) {\r\n};\r\n","import { Palette } from \"@hpcc-js/common\";\r\nimport { hsl as d3Hsl } from \"d3-color\";\r\n\r\nexport function I2DAggrChart() {\r\n}\r\nI2DAggrChart.prototype._palette = Palette.rainbow(\"default\");\r\n\r\nI2DAggrChart.prototype.fillColor = function (row: any[][], column, value): string {\r\n return this._palette(row.length);\r\n};\r\n\r\nI2DAggrChart.prototype.strokeColor = function (row: any[][], column, value): string {\r\n return d3Hsl(this.fillColor(row, column, value)).darker().toString();\r\n};\r\n\r\nI2DAggrChart.prototype.textColor = function (row: any[][], column, value): string {\r\n return Palette.textColor(this.fillColor(row, column, value));\r\n};\r\n\r\n// Events ---\r\nI2DAggrChart.prototype.click = function (row: object[], column, selected) {\r\n};\r\n\r\nI2DAggrChart.prototype.dblclick = function (row: object[], column, selected) {\r\n};\r\n","export function IGraph() {\r\n}\r\nIGraph.prototype._dataFamily = \"graph\";\r\n\r\n// Events ---\r\nIGraph.prototype.vertex_click = function (_row, _col, _sel, more) {\r\n if (more && more.vertex) {\r\n }\r\n};\r\n\r\nIGraph.prototype.vertex_dblclick = function (_row, _col, _sel, more) {\r\n if (more && more.vertex) {\r\n }\r\n};\r\n\r\nIGraph.prototype.edge_click = function (_row, _col, _sel, more) {\r\n if (more && more.edge) {\r\n }\r\n};\r\n\r\nIGraph.prototype.edge_dblclick = function (_row, _col, _sel, more) {\r\n if (more && more.edge) {\r\n }\r\n};\r\n","export interface IHighlight {\r\n highlightColumn(column: string): this;\r\n}\r\n\r\nexport function instanceOfIHighlight(w: any): w is IHighlight {\r\n return typeof (w as any).highlightColumn === \"function\";\r\n}\r\n","import { Widget } from \"@hpcc-js/common\";\r\n\r\n// Use old school class declaration as this is a mixin ---\r\nexport function IInput() {\r\n}\r\nIInput.prototype = Object.create(Widget.prototype);\r\nIInput.prototype.constructor = IInput;\r\n\r\n// abstract target(): any;\r\n// abstract target(_: any): this;\r\n\r\n// Implementation ---\r\nIInput.prototype.isValid = function () {\r\n if (this.validate()) {\r\n const re = new RegExp(this.validate());\r\n if (!re.test(this.value())) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n};\r\n\r\nIInput.prototype.hasValue = function () {\r\n if (typeof (this as any).type === \"function\") {\r\n switch ((this as any).type()) {\r\n case \"radio\":\r\n /* falls through */\r\n case \"checkbox\":\r\n if (this.value() && this.value() !== \"false\") {\r\n return true;\r\n }\r\n break;\r\n default:\r\n if (this.value()) {\r\n return true;\r\n }\r\n break;\r\n }\r\n return false;\r\n }\r\n return this.value() !== \"\";\r\n};\r\n\r\n// Events ---\r\nIInput.prototype.blur = function (_w) {\r\n};\r\nIInput.prototype.keyup = function (_w) {\r\n};\r\nIInput.prototype.focus = function (_w) {\r\n};\r\nIInput.prototype.click = function (_w) {\r\n};\r\nIInput.prototype.dblclick = function (_w) {\r\n};\r\nIInput.prototype.change = function (_w, complete: boolean) {\r\n};\r\n\r\nIInput.prototype.resetValue = function (w) {\r\n w.value(w._inputElement[0].node().value);\r\n};\r\n\r\nIInput.prototype.disable = function (disable) {\r\n this._inputElement.forEach(function (e, idx) {\r\n e.attr(\"disabled\", disable ? \"disabled\" : null);\r\n });\r\n};\r\n\r\nIInput.prototype.setFocus = function () {\r\n if (this._inputElement.length) {\r\n this._inputElement[0].node().focus();\r\n }\r\n};\r\n\r\nexport interface IInput {\r\n name: { (): string; (_: string): IInput };\r\n name_exists: () => boolean;\r\n label: { (): string; (_: string): IInput };\r\n label_exists: () => boolean;\r\n value: { (): any; (_: any): IInput };\r\n value_exists: () => boolean;\r\n validate: { (): string; (_: string): IInput };\r\n validate_exists: () => boolean;\r\n}\r\nIInput.prototype.publish(\"name\", \"\", \"string\", \"HTML name for the input\");\r\nIInput.prototype.publish(\"label\", \"\", \"string\", \"Descriptive label\");\r\nIInput.prototype.publish(\"value\", \"\", \"string\", \"Input Current Value\");\r\nIInput.prototype.publish(\"validate\", null, \"string\", \"Input Validation\");\r\n","import { Palette } from \"@hpcc-js/common\";\r\nimport { hsl as d3Hsl } from \"d3-color\";\r\n\r\nexport function INDChart() {\r\n}\r\nINDChart.prototype._dataFamily = \"ND\";\r\nINDChart.prototype._palette = Palette.ordinal(\"default\");\r\n\r\nINDChart.prototype.fillColor = function (row: any[], column: string, value: number, origRow: any): string {\r\n return this._palette(column);\r\n};\r\n\r\nINDChart.prototype.strokeColor = function (row: any[], column: string, value: number, origRow: any): string {\r\n return d3Hsl(this.fillColor(row, column, value, origRow)).darker().toString();\r\n};\r\n\r\nINDChart.prototype.textColor = function (row: any[], column: string, value: number, origRow: any): string {\r\n return Palette.textColor(this.fillColor(row, column, value, origRow));\r\n};\r\n\r\n// Events ---\r\nINDChart.prototype.click = function (row, column, selected) {\r\n};\r\n\r\nINDChart.prototype.dblclick = function (row, column, selected) {\r\n};\r\n","// Based on https://github.com/GordonSmith/d3-tip forked from https://github.com/Caged/d3-tip\r\n\r\nimport { map } from \"d3-collection\";\r\nimport { select, selection } from \"d3-selection\";\r\n\r\nexport function tip() {\r\n let direction = d3TipDirection;\r\n let offset = d3TipOffset;\r\n let html = d3TipHTML;\r\n let rootElement = functor(document.body);\r\n let node = initNode();\r\n let svg = null;\r\n let point = null;\r\n let target = null;\r\n\r\n const tip: any = function (vis) {\r\n svg = getSVGNode(vis);\r\n if (!svg) return;\r\n point = svg.createSVGPoint();\r\n const re = rootElement();\r\n if (!re) return;\r\n if (!node) return;\r\n re.appendChild(node);\r\n };\r\n\r\n // Public - show the tooltip on the screen\r\n //\r\n // Returns a tip\r\n tip.show = function (d, idx, arr) {\r\n target = arr[idx];\r\n const args = Array.prototype.slice.call(arguments);\r\n const content = html.apply(this, args);\r\n if (content === null) {\r\n return tip;\r\n }\r\n const poffset = offset.apply(this, args);\r\n const nodel = getNodeEl();\r\n let i = directions.length;\r\n let coords;\r\n const root_bbox = rootElement().getBoundingClientRect();\r\n nodel.html(content)\r\n .style(\"opacity\", 1).style(\"pointer-events\", \"all\");\r\n\r\n while (i--) nodel.classed(directions[i], false);\r\n let placement_success = false;\r\n const placement_overflow = {};\r\n let least_overflow_direction = directions[0];\r\n for (let i = 0; i < directions.length; i++) {\r\n placement_success = _placement_attempt(directions[i]);\r\n if (placement_success) break;\r\n }\r\n if (!placement_success) {\r\n nodel.classed(\"notick\", true);\r\n const top_offset = _vertical_adjustment(placement_overflow[least_overflow_direction]);\r\n const left_offset = _horizontal_adjustment(placement_overflow[least_overflow_direction]);\r\n _placement_attempt(least_overflow_direction, top_offset, left_offset);\r\n } else {\r\n nodel.classed(\"notick\", false);\r\n }\r\n return tip;\r\n\r\n function _horizontal_adjustment(overflow_obj) {\r\n if (overflow_obj.left > overflow_obj.right) {\r\n return overflow_obj.left > 0 ? -overflow_obj.left : 0;\r\n } else {\r\n return overflow_obj.right > 0 ? overflow_obj.right : 0;\r\n }\r\n }\r\n function _vertical_adjustment(overflow_obj) {\r\n if (overflow_obj.top > overflow_obj.bottom) {\r\n return overflow_obj.top > 0 ? -overflow_obj.top : 0;\r\n } else {\r\n return overflow_obj.bottom;\r\n }\r\n }\r\n\r\n function _placement_attempt(_dir, _top_offset?, _left_offset?) {\r\n _top_offset = _top_offset ? _top_offset : 0;\r\n _left_offset = _left_offset ? _left_offset : 0;\r\n nodel.style(\"white-space\", \"nowrap\");\r\n coords = directionCallbacks.get(_dir).apply(this);\r\n nodel.classed(_dir, true)\r\n .style(\"top\", (coords.top + poffset[0] - _top_offset) + \"px\")\r\n .style(\"left\", (coords.left + poffset[1] - _left_offset) + \"px\");\r\n const nodel_bbox = nodel.node().getBoundingClientRect();\r\n const ret = nodel_bbox.top > root_bbox.top\r\n && nodel_bbox.left > root_bbox.left\r\n && nodel_bbox.bottom < root_bbox.bottom\r\n && nodel_bbox.right < root_bbox.right\r\n ;\r\n placement_overflow[_dir] = {\r\n top: root_bbox.top - nodel_bbox.top,\r\n right: nodel_bbox.right - root_bbox.right,\r\n bottom: nodel_bbox.bottom - root_bbox.bottom,\r\n left: root_bbox.left - nodel_bbox.left\r\n };\r\n nodel.style(\"white-space\", \"normal\");\r\n placement_overflow[_dir].total_overflow = Object.keys(placement_overflow[_dir])\r\n .filter(side => placement_overflow[_dir][side] > 0)\r\n .reduce((sum, side) => {\r\n const side_overflow = placement_overflow[_dir][side];\r\n return sum + side_overflow;\r\n }, 0);\r\n if (placement_overflow[least_overflow_direction].total_overflow > placement_overflow[_dir].total_overflow) {\r\n least_overflow_direction = _dir;\r\n }\r\n if (!ret) {\r\n nodel.classed(_dir, false);\r\n }\r\n return ret;\r\n }\r\n };\r\n\r\n // Public - hide the tooltip\r\n //\r\n // Returns a tip\r\n tip.hide = function () {\r\n const nodel = getNodeEl();\r\n nodel.style(\"opacity\", 0).style(\"pointer-events\", \"none\");\r\n return tip;\r\n };\r\n\r\n // Public: Proxy attr calls to the d3 tip container.\r\n // Sets or gets attribute value.\r\n //\r\n // n - name of the attribute\r\n // v - value of the attribute\r\n //\r\n // Returns tip or attribute value\r\n // eslint-disable-next-line no-unused-vars\r\n tip.attr = function (n, v) {\r\n if (arguments.length < 2 && typeof n === \"string\") {\r\n return getNodeEl().attr(n);\r\n }\r\n\r\n const args = Array.prototype.slice.call(arguments);\r\n selection.prototype.attr.apply(getNodeEl(), args);\r\n return tip;\r\n };\r\n\r\n // Public: Proxy style calls to the d3 tip container.\r\n // Sets or gets a style value.\r\n //\r\n // n - name of the property\r\n // v - value of the property\r\n //\r\n // Returns tip or style property value\r\n // eslint-disable-next-line no-unused-vars\r\n tip.style = function (n, v) {\r\n if (arguments.length < 2 && typeof n === \"string\") {\r\n return getNodeEl().style(n);\r\n }\r\n\r\n const args = Array.prototype.slice.call(arguments);\r\n selection.prototype.style.apply(getNodeEl(), args);\r\n return tip;\r\n };\r\n\r\n // Public: Set or get the direction of the tooltip\r\n //\r\n // v - One of n(north), s(south), e(east), or w(west), nw(northwest),\r\n // sw(southwest), ne(northeast) or se(southeast)\r\n //\r\n // Returns tip or direction\r\n tip.direction = function (v) {\r\n if (!arguments.length) return direction;\r\n direction = v == null ? v : functor(v);\r\n\r\n return tip;\r\n };\r\n\r\n // Public: Sets or gets the offset of the tip\r\n //\r\n // v - Array of [x, y] offset\r\n //\r\n // Returns offset or\r\n tip.offset = function (v) {\r\n if (!arguments.length) return offset;\r\n offset = v == null ? v : functor(v);\r\n\r\n return tip;\r\n };\r\n\r\n // Public: sets or gets the html value of the tooltip\r\n //\r\n // v - String value of the tip\r\n //\r\n // Returns html value or tip\r\n tip.html = function (v) {\r\n if (!arguments.length) return html;\r\n html = v == null ? v : functor(v);\r\n\r\n return tip;\r\n };\r\n\r\n // Public: sets or gets the root element anchor of the tooltip\r\n //\r\n // v - root element of the tooltip\r\n //\r\n // Returns root node of tip\r\n tip.rootElement = function (v) {\r\n if (!arguments.length) return rootElement;\r\n rootElement = functor(v);\r\n\r\n return tip;\r\n };\r\n\r\n // Public: destroys the tooltip and removes it from the DOM\r\n //\r\n // Returns a tip\r\n tip.destroy = function () {\r\n if (node) {\r\n getNodeEl().remove();\r\n node = null;\r\n }\r\n return tip;\r\n };\r\n\r\n function d3TipDirection() { return \"n\"; }\r\n function d3TipOffset() { return [0, 0]; }\r\n function d3TipHTML() { return \" \"; }\r\n\r\n const directionCallbacks = map({\r\n n: directionNorth,\r\n s: directionSouth,\r\n e: directionEast,\r\n w: directionWest,\r\n nw: directionNorthWest,\r\n ne: directionNorthEast,\r\n sw: directionSouthWest,\r\n se: directionSouthEast\r\n });\r\n const directions = directionCallbacks.keys();\r\n\r\n function directionNorth() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.n.y - node.offsetHeight,\r\n left: bbox.n.x - node.offsetWidth / 2\r\n };\r\n }\r\n\r\n function directionSouth() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.s.y + 8,\r\n left: bbox.s.x - node.offsetWidth / 2\r\n };\r\n }\r\n\r\n function directionEast() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.e.y - node.offsetHeight / 2,\r\n left: bbox.e.x + 8\r\n };\r\n }\r\n\r\n function directionWest() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.w.y - node.offsetHeight / 2,\r\n left: bbox.w.x - node.offsetWidth - 8\r\n };\r\n }\r\n\r\n function directionNorthWest() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.nw.y - node.offsetHeight,\r\n left: bbox.nw.x - node.offsetWidth\r\n };\r\n }\r\n\r\n function directionNorthEast() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.ne.y - node.offsetHeight,\r\n left: bbox.ne.x\r\n };\r\n }\r\n\r\n function directionSouthWest() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.sw.y,\r\n left: bbox.sw.x - node.offsetWidth\r\n };\r\n }\r\n\r\n function directionSouthEast() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.se.y,\r\n left: bbox.se.x\r\n };\r\n }\r\n\r\n function initNode() {\r\n const div = select(document.createElement(\"div\"));\r\n div\r\n .attr(\"class\", \"d3-tip\")\r\n .style(\"position\", \"absolute\")\r\n .style(\"top\", \"0px\")\r\n .style(\"opacity\", 0)\r\n .style(\"pointer-events\", \"none\")\r\n .style(\"box-sizing\", \"border-box\");\r\n\r\n return div.node();\r\n }\r\n\r\n function getSVGNode(element) {\r\n const svgNode = element.node();\r\n if (!svgNode) return null;\r\n if (svgNode.tagName.toLowerCase() === \"svg\") return svgNode;\r\n return svgNode.ownerSVGElement;\r\n }\r\n\r\n function getNodeEl() {\r\n if (node == null) {\r\n node = initNode();\r\n // re-add node to DOM\r\n rootElement().appendChild(node);\r\n }\r\n return select(node);\r\n }\r\n\r\n // Private - gets the screen coordinates of a shape\r\n //\r\n // Given a shape on the screen, will return an SVGPoint for the directions\r\n // n(north), s(south), e(east), w(west), ne(northeast), se(southeast),\r\n // nw(northwest), sw(southwest).\r\n //\r\n // +-+-+\r\n // | |\r\n // + +\r\n // | |\r\n // +-+-+\r\n //\r\n // Returns an Object {n, s, e, w, nw, sw, ne, se}\r\n function getScreenBBox(targetShape) {\r\n let targetel = target || targetShape;\r\n\r\n while (targetel.getCTM == null && targetel.parentNode != null) {\r\n targetel = targetel.parentNode;\r\n }\r\n\r\n const bbox: any = {};\r\n const matrix = targetel.getCTM();\r\n const tbbox = targetel.getBBox();\r\n const width = tbbox.width;\r\n const height = tbbox.height;\r\n const x = tbbox.x;\r\n const y = tbbox.y;\r\n\r\n point.x = x;\r\n point.y = y;\r\n bbox.nw = point.matrixTransform(matrix);\r\n point.x += width;\r\n bbox.ne = point.matrixTransform(matrix);\r\n point.y += height;\r\n bbox.se = point.matrixTransform(matrix);\r\n point.x -= width;\r\n bbox.sw = point.matrixTransform(matrix);\r\n point.y -= height / 2;\r\n bbox.w = point.matrixTransform(matrix);\r\n point.x += width;\r\n bbox.e = point.matrixTransform(matrix);\r\n point.x -= width / 2;\r\n point.y -= height / 2;\r\n bbox.n = point.matrixTransform(matrix);\r\n point.y += height;\r\n bbox.s = point.matrixTransform(matrix);\r\n\r\n return bbox;\r\n }\r\n\r\n // Private - replace D3JS 3.X d3.functor() function\r\n function functor(v) {\r\n return typeof v === \"function\" ? v : function () {\r\n return v;\r\n };\r\n }\r\n\r\n return tip;\r\n}\r\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import { Widget } from \"@hpcc-js/common\";\r\nimport { format as d3Format } from \"d3-format\";\r\nimport { tip } from \"./Tooltip\";\r\n\r\nimport \"../src/ITooltip.css\";\r\n\r\ndeclare const event: object;\r\n\r\n// Use old school class declaration as this is a mixin ---\r\nexport function ITooltip() {\r\n this.tooltip = tip();\r\n\r\n if (this.tooltipLabelFormat_exists()) {\r\n this._labelFormatter = d3Format(this.tooltipLabelFormat() as string);\r\n }\r\n\r\n if (this.tooltipValueFormat_exists()) {\r\n this._valueFormatter = d3Format(this.tooltipValueFormat() as string);\r\n }\r\n\r\n if (this.layerEnter) {\r\n const layerEnter = this.layerEnter;\r\n this.layerEnter = function (_base, svgElement, _domElement) {\r\n if (!this._parentOverlay) {\r\n this._parentOverlay = _base._parentOverlay;\r\n }\r\n this.tooltipEnter(svgElement);\r\n layerEnter.apply(this, arguments);\r\n };\r\n const layerUpdate = this.layerUpdate;\r\n this.layerUpdate = function (_base) {\r\n layerUpdate.apply(this, arguments);\r\n this.tooltipUpdate();\r\n };\r\n const layerExit = this.layerExit;\r\n this.layerExit = function (_base) {\r\n this.tooltipExit();\r\n layerExit.apply(this, arguments);\r\n };\r\n } else {\r\n const enter = this.enter;\r\n this.enter = function (_domNode, element) {\r\n this.tooltipEnter(element);\r\n enter.apply(this, arguments);\r\n };\r\n const update = this.update;\r\n this.update = function (_domNode, _element) {\r\n update.apply(this, arguments);\r\n this.tooltipUpdate();\r\n };\r\n const exit = this.exit;\r\n this.exit = function (_domNode, _element) {\r\n this.tooltipExit();\r\n exit.apply(this, arguments);\r\n };\r\n }\r\n}\r\nITooltip.prototype = Object.create(Widget.prototype);\r\nITooltip.prototype.constructor = ITooltip;\r\n\r\n// abstract target(): any;\r\n// abstract target(_: any): this;\r\n\r\nITooltip.prototype.tooltipEnter = function (element) {\r\n const overlayElement = this.parentOverlay();\r\n if (!overlayElement.empty()) {\r\n this.tooltip.rootElement(overlayElement.node().parentNode);\r\n }\r\n element.call(this.tooltip);\r\n};\r\n\r\nITooltip.prototype.tooltipUpdate = function () {\r\n this.tooltip.offset(() => {\r\n if (event && this.tooltipFollowMouse()) {\r\n const d3tipElement: HTMLDivElement = document.querySelector(\".d3-tip\"); // d3Tip offers no reference to the '.d3-tip' element...?\r\n d3tipElement.style.display = \"block\";\r\n d3tipElement.style.left = this.tooltipOffset() + ((event as any).clientX) + \"px\";\r\n d3tipElement.style.top = (event as any).clientY + \"px\";\r\n return [];\r\n }\r\n switch (this.tooltip.direction()()) {\r\n case \"e\":\r\n return [0, this.tooltipOffset()];\r\n default:\r\n return [-this.tooltipOffset(), 0];\r\n }\r\n });\r\n\r\n let classed = this.tooltip.attr(\"class\");\r\n if (classed) {\r\n classed = classed.split(\" notick\").join(\"\") + (this.tooltipTick() ? \"\" : \" notick\") + (this.tooltipStyle() === \"none\" ? \" hidden\" : \"\");\r\n classed = classed.split(\" \")\r\n .filter(function (_class) {\r\n return _class.indexOf(\"ITooltip-tooltipStyle-\") !== 0;\r\n })\r\n .join(\" \")\r\n ;\r\n classed += \" ITooltip-tooltipStyle-\" + this.tooltipStyle();\r\n this.tooltip\r\n .attr(\"class\", classed)\r\n ;\r\n }\r\n};\r\n\r\nITooltip.prototype.tooltipExit = function () {\r\n if (this.tooltip) {\r\n this.tooltip.destroy();\r\n }\r\n};\r\n\r\nITooltip.prototype._tooltipHTML = function (d) {\r\n return d;\r\n};\r\n\r\nITooltip.prototype.tooltipHTML = function (_) {\r\n return this.tooltip.html(_);\r\n};\r\n\r\nITooltip.prototype.tooltipFormat = function (opts: { label?: string | number, series?: string | number, value?: Date | string | number, arr?: Array<{ color: string, label: string, value: string }> } = {}) {\r\n opts.label = opts.label === undefined ? \"\" : opts.label;\r\n if (this._labelFormatter) {\r\n opts.label = this._labelFormatter(opts.label) || \"\";\r\n } else if (this.formatData && this.parseData) {\r\n opts.label = this.formatData(this.parseData(opts.label));\r\n }\r\n opts.series = opts.series || \"\";\r\n if (opts.value instanceof Date) {\r\n opts.value = opts.value || \"\";\r\n } else if (this._valueFormatter) {\r\n opts.value = this._valueFormatter(opts.value) || \"\";\r\n } else if (this.formatValue && this.parseValue) {\r\n opts.value = this.formatValue(this.parseValue(opts.value));\r\n }\r\n switch (this.tooltipStyle()) {\r\n case \"none\":\r\n break;\r\n case \"series-table\":\r\n let html = '<table class=\"ITooltip-series-table\">'\r\n + \"<thead>\"\r\n + '<tr><th colspan=\"2\">' + opts.label + \"</th></tr>\"\r\n + \"</thead>\"\r\n + \"<tbody>\";\r\n opts.arr.forEach(function (row) {\r\n html += \"<tr>\";\r\n html += \"<td>\";\r\n html += '<div class=\"series-table-row-color\" style=\"background-color:' + row.color + '\"></div>';\r\n html += '<div class=\"series-table-row-label\">' + row.label + \"</div>\";\r\n html += \"</td>\";\r\n html += '<td><div class=\"series-table-row-value\">' + row.value + \"</div></td>\";\r\n html += \"</tr>\";\r\n });\r\n html += \"</tbody>\";\r\n html += \"</table>\";\r\n return html;\r\n default:\r\n if (opts.series) {\r\n return \"<span style='color:\" + this.tooltipSeriesColor() + \"'>\" + opts.series + \"</span> / <span style='color:\" + this.tooltipLabelColor() + \"'>\" + opts.label + \"</span>: <span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\r\n }\r\n if (opts.label !== \"\") {\r\n return \"<span style='color:\" + this.tooltipLabelColor() + \"'>\" + opts.label + \"</span>: <span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\r\n }\r\n return \"<span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\r\n }\r\n};\r\n\r\nITooltip.prototype.tooltipKeyValueFormat = function (titleKey: string, obj: object): string {\r\n let body = \"\";\r\n for (const key in obj) {\r\n if (key !== titleKey) {\r\n const value = obj && obj[key] ? obj[key] : \"\";\r\n body += `<tr><td style=\"${this.tooltipLabelColor_exists() ? \"color:\" + this.tooltipLabelColor() : \"\"}\">${key}</td><td style=\"font-weight:normal\">${value}</td></tr>`;\r\n }\r\n }\r\n return `<table>\r\n <thead>\r\n <tr><th colspan=\"2\" style=\"font-weight:bold;font-size:16px\">${obj[titleKey]}</th></tr>\r\n </thead>\r\n <tbody>\r\n ${body}\r\n </tbody>\r\n </table>`;\r\n};\r\n\r\nexport interface ITooltip {\r\n tooltipStyle: { (): \"default\" | \"none\" | \"series-table\"; (_: \"default\" | \"none\" | \"series-table\"): ITooltip; };\r\n tooltipFollowMouse: { (): boolean; (_: boolean): ITooltip; };\r\n tooltipLabelFormat: (_?) => string | ITooltip;\r\n tooltipLabelFormat_exists: () => boolean;\r\n tooltipValueFormat: (_?) => string | ITooltip;\r\n tooltipValueFormat_exists: () => boolean;\r\n tooltipSeriesColor: { (): string; (_: string): ITooltip; };\r\n tooltipLabelColor: { (): string; (_: string): ITooltip; };\r\n tooltipLabelColor_exists: () => boolean;\r\n tooltipValueColor: { (): string; (_: string): ITooltip; };\r\n tooltipTick: { (): boolean; (_: boolean): ITooltip; };\r\n tooltipOffset: { (): number; (_: number): ITooltip; };\r\n tooltipOffset_default: { (): number; (_: number): ITooltip; };\r\n}\r\nITooltip.prototype.publish(\"tooltipStyle\", \"default\", \"set\", \"Style mode\", [\"default\", \"none\", \"series-table\"], {});\r\nITooltip.prototype.publish(\"tooltipFollowMouse\", false, \"boolean\", \"If true, the tooltip will follow mouse movement\", null, {});\r\nITooltip.prototype.publish(\"tooltipLabelFormat\", undefined, \"string\", \"Format of tooltip label(s) (the domain axis)\", null, {});\r\nITooltip.prototype.publish(\"tooltipValueFormat\", undefined, \"string\", \"Number format of tooltip value(s)\", null, {});\r\nITooltip.prototype.publish(\"tooltipSeriesColor\", \"#EAFFFF\", \"html-color\", \"Color of tooltip series text\", null, {});\r\nITooltip.prototype.publish(\"tooltipLabelColor\", \"#CCFFFF\", \"html-color\", \"Color of tooltip label text (the domain axis)\", null, {});\r\nITooltip.prototype.publish(\"tooltipValueColor\", \"white\", \"html-color\", \"Color of tooltip value(s)\", null, {});\r\nITooltip.prototype.publish(\"tooltipTick\", true, \"boolean\", \"Show tooltip tick\", null, {});\r\nITooltip.prototype.publish(\"tooltipOffset\", 8, \"number\", \"Offset from the cursor\", null, {});\r\n\r\nconst tooltipLabelFormat = ITooltip.prototype.tooltipLabelFormat;\r\nITooltip.prototype.tooltipLabelFormat = function (_?): string | ITooltip {\r\n const retVal = tooltipLabelFormat.apply(this, arguments);\r\n if (arguments.length) {\r\n this._labelFormatter = d3Format(_);\r\n }\r\n return retVal;\r\n};\r\n\r\nconst tooltipValueFormat = ITooltip.prototype.tooltipValueFormat;\r\nITooltip.prototype.tooltipValueFormat = function (_?): string | ITooltip {\r\n const retVal = tooltipValueFormat.apply(this, arguments);\r\n if (arguments.length) {\r\n this._valueFormatter = d3Format(_);\r\n }\r\n return retVal;\r\n};\r\n","import { Palette } from \"@hpcc-js/common\";\r\n\r\n// Use old school class declaration as this is a mixin ---\r\nexport function ITree() {\r\n}\r\nITree.prototype.constructor = ITree;\r\n\r\n// Events ---\r\nITree.prototype.click = function (row, column, selected) {\r\n};\r\n\r\nITree.prototype.dblclick = function (row, column, selected) {\r\n};\r\n\r\nITree.prototype._palette = Palette.ordinal(\"default\");\r\n"],"names":["Palette","d3Hsl","Widget","selection","map","select","d3Format"],"mappings":";;;;;;AAAO,QA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BAAkB,GAAG,QAAQ,CAAC,SAAS,CAAC,kBAAkB;IAChE,QAAQ,CAAC,SAAS,CAAC,kBAAkB,GAAG,UAAU,CAAE,EAAA;QAChD,IAAM,MAAM,GAAG,kBAAkB,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC;IACxD,IAAA,IAAI,SAAS,CAAC,MAAM,EAAE;IAClB,QAAA,IAAI,CAAC,eAAe,GAAGI,aAAQ,CAAC,CAAC,CAAC;QACtC;IACA,IAAA,OAAO,MAAM;IACjB,CAAC;IAED,IAAM,kBAAkB,GAAG,QAAQ,CAAC,SAAS,CAAC,kBAAkB;IAChE,QAAQ,CAAC,SAAS,CAAC,kBAAkB,GAAG,UAAU,CAAE,EAAA;QAChD,IAAM,MAAM,GAAG,kBAAkB,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC;IACxD,IAAA,IAAI,SAAS,CAAC,MAAM,EAAE;IAClB,QAAA,IAAI,CAAC,eAAe,GAAGA,aAAQ,CAAC,CAAC,CAAC;QACtC;IACA,IAAA,OAAO,MAAM;IACjB,CAAC;;IC9ND;aACgB,KAAK,GAAA;IACrB;IACA,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,KAAK;IAEnC;IACA,KAAK,CAAC,SAAS,CAAC,KAAK,GAAG,UAAU,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAA;IACvD,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,QAAQ,GAAG,UAAU,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAA;IAC1D,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,QAAQ,GAAGN,cAAO,CAAC,OAAO,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[9]}
@@ -1 +1 @@
1
- {"version":3,"names":["I1DChart","I2DChart","I2DAggrChart","IGraph","IInput","INDChart","prototype","_dataFamily","_palette","Palette","rainbow","click","row","column","selected","dblclick","ordinal","fillColor","value","origRow","this","strokeColor","d3Hsl","darker","toString","textColor","length","vertex_click","_row","_col","_sel","more","vertex","vertex_dblclick","edge_click","edge","edge_dblclick","Object","create","Widget","constructor","isValid","validate","RegExp","test","hasValue","type","blur","_w","keyup","focus","change","complete","resetValue","w","_inputElement","node","disable","forEach","e","idx","attr","setFocus","publish","ITooltip","tooltip","direction","offset","html","rootElement","functor","document","body","initNode","svg","point","target","tip","vis","svgNode","tagName","toLowerCase","ownerSVGElement","createSVGPoint","re","appendChild","show","d","arr","args","Array","slice","call","arguments","content","apply","coords","poffset","nodel","getNodeEl","i","directions","root_bbox","getBoundingClientRect","style","classed","overflow_obj","placement_success","placement_overflow","least_overflow_direction","i_1","_placement_attempt","top_offset","top","bottom","left_offset","left","right","_horizontal_adjustment","_dir","_top_offset","_left_offset","directionCallbacks","get","nodel_bbox","ret","total_overflow","keys","filter","side","reduce","sum","hide","n","v","selection","destroy","remove","map","bbox","getScreenBBox","window","y","offsetHeight","x","offsetWidth","s","nw","ne","sw","se","div","select","createElement","targetShape","targetel","getCTM","parentNode","matrix","tbbox","getBBox","width","height","matrixTransform","tooltipLabelFormat_exists","_labelFormatter","d3Format","tooltipLabelFormat","tooltipValueFormat_exists","_valueFormatter","tooltipValueFormat","layerEnter","layerEnter_1","_base","svgElement","_domElement","_parentOverlay","tooltipEnter","layerUpdate_1","layerUpdate","tooltipUpdate","layerExit_1","layerExit","tooltipExit","enter_1","enter","_domNode","element","update_1","update","_element","exit_1","exit","css","ref","insertAt","head","getElementsByTagName","firstChild","insertBefore","styleSheet","cssText","createTextNode","overlayElement","parentOverlay","empty","_this","event","tooltipFollowMouse","d3tipElement","querySelector","display","tooltipOffset","clientY","split","join","tooltipTick","tooltipStyle","_class","indexOf","_tooltipHTML","tooltipHTML","_","tooltipFormat","opts","label","undefined","formatData","parseData","series","Date","formatValue","parseValue","html_1","color","tooltipSeriesColor","tooltipLabelColor","tooltipValueColor","tooltipKeyValueFormat","titleKey","obj","key","concat","tooltipLabelColor_exists","retVal","ITree","highlightColumn"],"sources":["../src/I1DChart.ts","../src/I2DChart.ts","../src/I2DAggrChart.ts","../src/IGraph.ts","../src/IInput.ts","../src/INDChart.ts","../src/ITooltip.ts","../src/Tooltip.ts","../../../node_modules/style-inject/dist/style-inject.es.js","../src/ITree.ts","../src/__package__.ts","../src/IHighlight.ts"],"sourcesContent":["import { Palette } from \"@hpcc-js/common\";\n\nexport function I1DChart() {\n}\nI1DChart.prototype._dataFamily = \"1D\";\nI1DChart.prototype._palette = Palette.rainbow(\"default\");\n\n// Events ---\nI1DChart.prototype.click = function (row, column, selected) {\n};\n\nI1DChart.prototype.dblclick = function (row, column, selected) {\n};\n","import { Palette } from \"@hpcc-js/common\";\nimport { hsl as d3Hsl } from \"d3-color\";\n\nexport function I2DChart() {\n}\nI2DChart.prototype._dataFamily = \"2D\";\nI2DChart.prototype._palette = Palette.ordinal(\"default\");\n\nI2DChart.prototype.fillColor = function (row: any[], column, value, origRow): string {\n return this._palette(row[0]);\n};\n\nI2DChart.prototype.strokeColor = function (row: any[], column, value, origRow): string {\n return d3Hsl(this.fillColor(row, column, value, origRow)).darker().toString();\n};\n\nI2DChart.prototype.textColor = function (row: any[], column, value, origRow): string {\n return Palette.textColor(this.fillColor(row, column, value, origRow));\n};\n\n// Events ---\nI2DChart.prototype.click = function (row: object, column, selected) {\n};\n\nI2DChart.prototype.dblclick = function (row: object, column, selected) {\n};\n","import { Palette } from \"@hpcc-js/common\";\nimport { hsl as d3Hsl } from \"d3-color\";\n\nexport function I2DAggrChart() {\n}\nI2DAggrChart.prototype._palette = Palette.rainbow(\"default\");\n\nI2DAggrChart.prototype.fillColor = function (row: any[][], column, value): string {\n return this._palette(row.length);\n};\n\nI2DAggrChart.prototype.strokeColor = function (row: any[][], column, value): string {\n return d3Hsl(this.fillColor(row, column, value)).darker().toString();\n};\n\nI2DAggrChart.prototype.textColor = function (row: any[][], column, value): string {\n return Palette.textColor(this.fillColor(row, column, value));\n};\n\n// Events ---\nI2DAggrChart.prototype.click = function (row: object[], column, selected) {\n};\n\nI2DAggrChart.prototype.dblclick = function (row: object[], column, selected) {\n};\n","export function IGraph() {\n}\nIGraph.prototype._dataFamily = \"graph\";\n\n// Events ---\nIGraph.prototype.vertex_click = function (_row, _col, _sel, more) {\n if (more && more.vertex) {\n }\n};\n\nIGraph.prototype.vertex_dblclick = function (_row, _col, _sel, more) {\n if (more && more.vertex) {\n }\n};\n\nIGraph.prototype.edge_click = function (_row, _col, _sel, more) {\n if (more && more.edge) {\n }\n};\n\nIGraph.prototype.edge_dblclick = function (_row, _col, _sel, more) {\n if (more && more.edge) {\n }\n};\n","import { Widget } from \"@hpcc-js/common\";\n\n// Use old school class declaration as this is a mixin ---\nexport function IInput() {\n}\nIInput.prototype = Object.create(Widget.prototype);\nIInput.prototype.constructor = IInput;\n\n// abstract target(): any;\n// abstract target(_: any): this;\n\n// Implementation ---\nIInput.prototype.isValid = function () {\n if (this.validate()) {\n const re = new RegExp(this.validate());\n if (!re.test(this.value())) {\n return false;\n }\n }\n return true;\n};\n\nIInput.prototype.hasValue = function () {\n if (typeof (this as any).type === \"function\") {\n switch ((this as any).type()) {\n case \"radio\":\n /* falls through */\n case \"checkbox\":\n if (this.value() && this.value() !== \"false\") {\n return true;\n }\n break;\n default:\n if (this.value()) {\n return true;\n }\n break;\n }\n return false;\n }\n return this.value() !== \"\";\n};\n\n// Events ---\nIInput.prototype.blur = function (_w) {\n};\nIInput.prototype.keyup = function (_w) {\n};\nIInput.prototype.focus = function (_w) {\n};\nIInput.prototype.click = function (_w) {\n};\nIInput.prototype.dblclick = function (_w) {\n};\nIInput.prototype.change = function (_w, complete: boolean) {\n};\n\nIInput.prototype.resetValue = function (w) {\n w.value(w._inputElement[0].node().value);\n};\n\nIInput.prototype.disable = function (disable) {\n this._inputElement.forEach(function (e, idx) {\n e.attr(\"disabled\", disable ? \"disabled\" : null);\n });\n};\n\nIInput.prototype.setFocus = function () {\n if (this._inputElement.length) {\n this._inputElement[0].node().focus();\n }\n};\n\nexport interface IInput {\n name: { (): string; (_: string): IInput };\n name_exists: () => boolean;\n label: { (): string; (_: string): IInput };\n label_exists: () => boolean;\n value: { (): any; (_: any): IInput };\n value_exists: () => boolean;\n validate: { (): string; (_: string): IInput };\n validate_exists: () => boolean;\n}\nIInput.prototype.publish(\"name\", \"\", \"string\", \"HTML name for the input\");\nIInput.prototype.publish(\"label\", \"\", \"string\", \"Descriptive label\");\nIInput.prototype.publish(\"value\", \"\", \"string\", \"Input Current Value\");\nIInput.prototype.publish(\"validate\", null, \"string\", \"Input Validation\");\n","import { Palette } from \"@hpcc-js/common\";\nimport { hsl as d3Hsl } from \"d3-color\";\n\nexport function INDChart() {\n}\nINDChart.prototype._dataFamily = \"ND\";\nINDChart.prototype._palette = Palette.ordinal(\"default\");\n\nINDChart.prototype.fillColor = function (row: any[], column: string, value: number, origRow: any): string {\n return this._palette(column);\n};\n\nINDChart.prototype.strokeColor = function (row: any[], column: string, value: number, origRow: any): string {\n return d3Hsl(this.fillColor(row, column, value, origRow)).darker().toString();\n};\n\nINDChart.prototype.textColor = function (row: any[], column: string, value: number, origRow: any): string {\n return Palette.textColor(this.fillColor(row, column, value, origRow));\n};\n\n// Events ---\nINDChart.prototype.click = function (row, column, selected) {\n};\n\nINDChart.prototype.dblclick = function (row, column, selected) {\n};\n","import { Widget } from \"@hpcc-js/common\";\nimport { format as d3Format } from \"d3-format\";\nimport { tip } from \"./Tooltip\";\n\nimport \"../src/ITooltip.css\";\n\ndeclare const event: object;\n\n// Use old school class declaration as this is a mixin ---\nexport function ITooltip() {\n this.tooltip = tip();\n\n if (this.tooltipLabelFormat_exists()) {\n this._labelFormatter = d3Format(this.tooltipLabelFormat() as string);\n }\n\n if (this.tooltipValueFormat_exists()) {\n this._valueFormatter = d3Format(this.tooltipValueFormat() as string);\n }\n\n if (this.layerEnter) {\n const layerEnter = this.layerEnter;\n this.layerEnter = function (_base, svgElement, _domElement) {\n if (!this._parentOverlay) {\n this._parentOverlay = _base._parentOverlay;\n }\n this.tooltipEnter(svgElement);\n layerEnter.apply(this, arguments);\n };\n const layerUpdate = this.layerUpdate;\n this.layerUpdate = function (_base) {\n layerUpdate.apply(this, arguments);\n this.tooltipUpdate();\n };\n const layerExit = this.layerExit;\n this.layerExit = function (_base) {\n this.tooltipExit();\n layerExit.apply(this, arguments);\n };\n } else {\n const enter = this.enter;\n this.enter = function (_domNode, element) {\n this.tooltipEnter(element);\n enter.apply(this, arguments);\n };\n const update = this.update;\n this.update = function (_domNode, _element) {\n update.apply(this, arguments);\n this.tooltipUpdate();\n };\n const exit = this.exit;\n this.exit = function (_domNode, _element) {\n this.tooltipExit();\n exit.apply(this, arguments);\n };\n }\n}\nITooltip.prototype = Object.create(Widget.prototype);\nITooltip.prototype.constructor = ITooltip;\n\n// abstract target(): any;\n// abstract target(_: any): this;\n\nITooltip.prototype.tooltipEnter = function (element) {\n const overlayElement = this.parentOverlay();\n if (!overlayElement.empty()) {\n this.tooltip.rootElement(overlayElement.node().parentNode);\n }\n element.call(this.tooltip);\n};\n\nITooltip.prototype.tooltipUpdate = function () {\n this.tooltip.offset(() => {\n if (event && this.tooltipFollowMouse()) {\n const d3tipElement: HTMLDivElement = document.querySelector(\".d3-tip\"); // d3Tip offers no reference to the '.d3-tip' element...?\n d3tipElement.style.display = \"block\";\n d3tipElement.style.left = this.tooltipOffset() + ((event as any).clientX) + \"px\";\n d3tipElement.style.top = (event as any).clientY + \"px\";\n return [];\n }\n switch (this.tooltip.direction()()) {\n case \"e\":\n return [0, this.tooltipOffset()];\n default:\n return [-this.tooltipOffset(), 0];\n }\n });\n\n let classed = this.tooltip.attr(\"class\");\n if (classed) {\n classed = classed.split(\" notick\").join(\"\") + (this.tooltipTick() ? \"\" : \" notick\") + (this.tooltipStyle() === \"none\" ? \" hidden\" : \"\");\n classed = classed.split(\" \")\n .filter(function (_class) {\n return _class.indexOf(\"ITooltip-tooltipStyle-\") !== 0;\n })\n .join(\" \")\n ;\n classed += \" ITooltip-tooltipStyle-\" + this.tooltipStyle();\n this.tooltip\n .attr(\"class\", classed)\n ;\n }\n};\n\nITooltip.prototype.tooltipExit = function () {\n if (this.tooltip) {\n this.tooltip.destroy();\n }\n};\n\nITooltip.prototype._tooltipHTML = function (d) {\n return d;\n};\n\nITooltip.prototype.tooltipHTML = function (_) {\n return this.tooltip.html(_);\n};\n\nITooltip.prototype.tooltipFormat = function (opts: { label?: string | number, series?: string | number, value?: Date | string | number, arr?: Array<{ color: string, label: string, value: string }> } = {}) {\n opts.label = opts.label === undefined ? \"\" : opts.label;\n if (this._labelFormatter) {\n opts.label = this._labelFormatter(opts.label) || \"\";\n } else if (this.formatData && this.parseData) {\n opts.label = this.formatData(this.parseData(opts.label));\n }\n opts.series = opts.series || \"\";\n if (opts.value instanceof Date) {\n opts.value = opts.value || \"\";\n } else if (this._valueFormatter) {\n opts.value = this._valueFormatter(opts.value) || \"\";\n } else if (this.formatValue && this.parseValue) {\n opts.value = this.formatValue(this.parseValue(opts.value));\n }\n switch (this.tooltipStyle()) {\n case \"none\":\n break;\n case \"series-table\":\n let html = '<table class=\"ITooltip-series-table\">'\n + \"<thead>\"\n + '<tr><th colspan=\"2\">' + opts.label + \"</th></tr>\"\n + \"</thead>\"\n + \"<tbody>\";\n opts.arr.forEach(function (row) {\n html += \"<tr>\";\n html += \"<td>\";\n html += '<div class=\"series-table-row-color\" style=\"background-color:' + row.color + '\"></div>';\n html += '<div class=\"series-table-row-label\">' + row.label + \"</div>\";\n html += \"</td>\";\n html += '<td><div class=\"series-table-row-value\">' + row.value + \"</div></td>\";\n html += \"</tr>\";\n });\n html += \"</tbody>\";\n html += \"</table>\";\n return html;\n default:\n if (opts.series) {\n return \"<span style='color:\" + this.tooltipSeriesColor() + \"'>\" + opts.series + \"</span> / <span style='color:\" + this.tooltipLabelColor() + \"'>\" + opts.label + \"</span>: <span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\n }\n if (opts.label !== \"\") {\n return \"<span style='color:\" + this.tooltipLabelColor() + \"'>\" + opts.label + \"</span>: <span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\n }\n return \"<span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\n }\n};\n\nITooltip.prototype.tooltipKeyValueFormat = function (titleKey: string, obj: object): string {\n let body = \"\";\n for (const key in obj) {\n if (key !== titleKey) {\n const value = obj && obj[key] ? obj[key] : \"\";\n body += `<tr><td style=\"${this.tooltipLabelColor_exists() ? \"color:\" + this.tooltipLabelColor() : \"\"}\">${key}</td><td style=\"font-weight:normal\">${value}</td></tr>`;\n }\n }\n return `<table>\n <thead>\n <tr><th colspan=\"2\" style=\"font-weight:bold;font-size:16px\">${obj[titleKey]}</th></tr>\n </thead>\n <tbody>\n ${body}\n </tbody>\n </table>`;\n};\n\nexport interface ITooltip {\n tooltipStyle: { (): \"default\" | \"none\" | \"series-table\"; (_: \"default\" | \"none\" | \"series-table\"): ITooltip; };\n tooltipFollowMouse: { (): boolean; (_: boolean): ITooltip; };\n tooltipLabelFormat: (_?) => string | ITooltip;\n tooltipLabelFormat_exists: () => boolean;\n tooltipValueFormat: (_?) => string | ITooltip;\n tooltipValueFormat_exists: () => boolean;\n tooltipSeriesColor: { (): string; (_: string): ITooltip; };\n tooltipLabelColor: { (): string; (_: string): ITooltip; };\n tooltipLabelColor_exists: () => boolean;\n tooltipValueColor: { (): string; (_: string): ITooltip; };\n tooltipTick: { (): boolean; (_: boolean): ITooltip; };\n tooltipOffset: { (): number; (_: number): ITooltip; };\n tooltipOffset_default: { (): number; (_: number): ITooltip; };\n}\nITooltip.prototype.publish(\"tooltipStyle\", \"default\", \"set\", \"Style mode\", [\"default\", \"none\", \"series-table\"], {});\nITooltip.prototype.publish(\"tooltipFollowMouse\", false, \"boolean\", \"If true, the tooltip will follow mouse movement\", null, {});\nITooltip.prototype.publish(\"tooltipLabelFormat\", undefined, \"string\", \"Format of tooltip label(s) (the domain axis)\", null, {});\nITooltip.prototype.publish(\"tooltipValueFormat\", undefined, \"string\", \"Number format of tooltip value(s)\", null, {});\nITooltip.prototype.publish(\"tooltipSeriesColor\", \"#EAFFFF\", \"html-color\", \"Color of tooltip series text\", null, {});\nITooltip.prototype.publish(\"tooltipLabelColor\", \"#CCFFFF\", \"html-color\", \"Color of tooltip label text (the domain axis)\", null, {});\nITooltip.prototype.publish(\"tooltipValueColor\", \"white\", \"html-color\", \"Color of tooltip value(s)\", null, {});\nITooltip.prototype.publish(\"tooltipTick\", true, \"boolean\", \"Show tooltip tick\", null, {});\nITooltip.prototype.publish(\"tooltipOffset\", 8, \"number\", \"Offset from the cursor\", null, {});\n\nconst tooltipLabelFormat = ITooltip.prototype.tooltipLabelFormat;\nITooltip.prototype.tooltipLabelFormat = function (_?): string | ITooltip {\n const retVal = tooltipLabelFormat.apply(this, arguments);\n if (arguments.length) {\n this._labelFormatter = d3Format(_);\n }\n return retVal;\n};\n\nconst tooltipValueFormat = ITooltip.prototype.tooltipValueFormat;\nITooltip.prototype.tooltipValueFormat = function (_?): string | ITooltip {\n const retVal = tooltipValueFormat.apply(this, arguments);\n if (arguments.length) {\n this._valueFormatter = d3Format(_);\n }\n return retVal;\n};\n","// Based on https://github.com/GordonSmith/d3-tip forked from https://github.com/Caged/d3-tip\n\nimport { map } from \"d3-collection\";\nimport { select, selection } from \"d3-selection\";\n\nexport function tip() {\n let direction = d3TipDirection;\n let offset = d3TipOffset;\n let html = d3TipHTML;\n let rootElement = functor(document.body);\n let node = initNode();\n let svg = null;\n let point = null;\n let target = null;\n\n const tip: any = function (vis) {\n svg = getSVGNode(vis);\n if (!svg) return;\n point = svg.createSVGPoint();\n const re = rootElement();\n if (!re) return;\n if (!node) return;\n re.appendChild(node);\n };\n\n // Public - show the tooltip on the screen\n //\n // Returns a tip\n tip.show = function (d, idx, arr) {\n target = arr[idx];\n const args = Array.prototype.slice.call(arguments);\n const content = html.apply(this, args);\n if (content === null) {\n return tip;\n }\n const poffset = offset.apply(this, args);\n const nodel = getNodeEl();\n let i = directions.length;\n let coords;\n const root_bbox = rootElement().getBoundingClientRect();\n nodel.html(content)\n .style(\"opacity\", 1).style(\"pointer-events\", \"all\");\n\n while (i--) nodel.classed(directions[i], false);\n let placement_success = false;\n const placement_overflow = {};\n let least_overflow_direction = directions[0];\n for (let i = 0; i < directions.length; i++) {\n placement_success = _placement_attempt(directions[i]);\n if (placement_success) break;\n }\n if (!placement_success) {\n nodel.classed(\"notick\", true);\n const top_offset = _vertical_adjustment(placement_overflow[least_overflow_direction]);\n const left_offset = _horizontal_adjustment(placement_overflow[least_overflow_direction]);\n _placement_attempt(least_overflow_direction, top_offset, left_offset);\n } else {\n nodel.classed(\"notick\", false);\n }\n return tip;\n\n function _horizontal_adjustment(overflow_obj) {\n if (overflow_obj.left > overflow_obj.right) {\n return overflow_obj.left > 0 ? -overflow_obj.left : 0;\n } else {\n return overflow_obj.right > 0 ? overflow_obj.right : 0;\n }\n }\n function _vertical_adjustment(overflow_obj) {\n if (overflow_obj.top > overflow_obj.bottom) {\n return overflow_obj.top > 0 ? -overflow_obj.top : 0;\n } else {\n return overflow_obj.bottom;\n }\n }\n\n function _placement_attempt(_dir, _top_offset?, _left_offset?) {\n _top_offset = _top_offset ? _top_offset : 0;\n _left_offset = _left_offset ? _left_offset : 0;\n nodel.style(\"white-space\", \"nowrap\");\n coords = directionCallbacks.get(_dir).apply(this);\n nodel.classed(_dir, true)\n .style(\"top\", (coords.top + poffset[0] - _top_offset) + \"px\")\n .style(\"left\", (coords.left + poffset[1] - _left_offset) + \"px\");\n const nodel_bbox = nodel.node().getBoundingClientRect();\n const ret = nodel_bbox.top > root_bbox.top\n && nodel_bbox.left > root_bbox.left\n && nodel_bbox.bottom < root_bbox.bottom\n && nodel_bbox.right < root_bbox.right\n ;\n placement_overflow[_dir] = {\n top: root_bbox.top - nodel_bbox.top,\n right: nodel_bbox.right - root_bbox.right,\n bottom: nodel_bbox.bottom - root_bbox.bottom,\n left: root_bbox.left - nodel_bbox.left\n };\n nodel.style(\"white-space\", \"normal\");\n placement_overflow[_dir].total_overflow = Object.keys(placement_overflow[_dir])\n .filter(side => placement_overflow[_dir][side] > 0)\n .reduce((sum, side) => {\n const side_overflow = placement_overflow[_dir][side];\n return sum + side_overflow;\n }, 0);\n if (placement_overflow[least_overflow_direction].total_overflow > placement_overflow[_dir].total_overflow) {\n least_overflow_direction = _dir;\n }\n if (!ret) {\n nodel.classed(_dir, false);\n }\n return ret;\n }\n };\n\n // Public - hide the tooltip\n //\n // Returns a tip\n tip.hide = function () {\n const nodel = getNodeEl();\n nodel.style(\"opacity\", 0).style(\"pointer-events\", \"none\");\n return tip;\n };\n\n // Public: Proxy attr calls to the d3 tip container.\n // Sets or gets attribute value.\n //\n // n - name of the attribute\n // v - value of the attribute\n //\n // Returns tip or attribute value\n // eslint-disable-next-line no-unused-vars\n tip.attr = function (n, v) {\n if (arguments.length < 2 && typeof n === \"string\") {\n return getNodeEl().attr(n);\n }\n\n const args = Array.prototype.slice.call(arguments);\n selection.prototype.attr.apply(getNodeEl(), args);\n return tip;\n };\n\n // Public: Proxy style calls to the d3 tip container.\n // Sets or gets a style value.\n //\n // n - name of the property\n // v - value of the property\n //\n // Returns tip or style property value\n // eslint-disable-next-line no-unused-vars\n tip.style = function (n, v) {\n if (arguments.length < 2 && typeof n === \"string\") {\n return getNodeEl().style(n);\n }\n\n const args = Array.prototype.slice.call(arguments);\n selection.prototype.style.apply(getNodeEl(), args);\n return tip;\n };\n\n // Public: Set or get the direction of the tooltip\n //\n // v - One of n(north), s(south), e(east), or w(west), nw(northwest),\n // sw(southwest), ne(northeast) or se(southeast)\n //\n // Returns tip or direction\n tip.direction = function (v) {\n if (!arguments.length) return direction;\n direction = v == null ? v : functor(v);\n\n return tip;\n };\n\n // Public: Sets or gets the offset of the tip\n //\n // v - Array of [x, y] offset\n //\n // Returns offset or\n tip.offset = function (v) {\n if (!arguments.length) return offset;\n offset = v == null ? v : functor(v);\n\n return tip;\n };\n\n // Public: sets or gets the html value of the tooltip\n //\n // v - String value of the tip\n //\n // Returns html value or tip\n tip.html = function (v) {\n if (!arguments.length) return html;\n html = v == null ? v : functor(v);\n\n return tip;\n };\n\n // Public: sets or gets the root element anchor of the tooltip\n //\n // v - root element of the tooltip\n //\n // Returns root node of tip\n tip.rootElement = function (v) {\n if (!arguments.length) return rootElement;\n rootElement = functor(v);\n\n return tip;\n };\n\n // Public: destroys the tooltip and removes it from the DOM\n //\n // Returns a tip\n tip.destroy = function () {\n if (node) {\n getNodeEl().remove();\n node = null;\n }\n return tip;\n };\n\n function d3TipDirection() { return \"n\"; }\n function d3TipOffset() { return [0, 0]; }\n function d3TipHTML() { return \" \"; }\n\n const directionCallbacks = map({\n n: directionNorth,\n s: directionSouth,\n e: directionEast,\n w: directionWest,\n nw: directionNorthWest,\n ne: directionNorthEast,\n sw: directionSouthWest,\n se: directionSouthEast\n });\n const directions = directionCallbacks.keys();\n\n function directionNorth() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.n.y - node.offsetHeight,\n left: bbox.n.x - node.offsetWidth / 2\n };\n }\n\n function directionSouth() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.s.y + 8,\n left: bbox.s.x - node.offsetWidth / 2\n };\n }\n\n function directionEast() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.e.y - node.offsetHeight / 2,\n left: bbox.e.x + 8\n };\n }\n\n function directionWest() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.w.y - node.offsetHeight / 2,\n left: bbox.w.x - node.offsetWidth - 8\n };\n }\n\n function directionNorthWest() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.nw.y - node.offsetHeight,\n left: bbox.nw.x - node.offsetWidth\n };\n }\n\n function directionNorthEast() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.ne.y - node.offsetHeight,\n left: bbox.ne.x\n };\n }\n\n function directionSouthWest() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.sw.y,\n left: bbox.sw.x - node.offsetWidth\n };\n }\n\n function directionSouthEast() {\n const bbox = getScreenBBox(window);\n return {\n top: bbox.se.y,\n left: bbox.se.x\n };\n }\n\n function initNode() {\n const div = select(document.createElement(\"div\"));\n div\n .attr(\"class\", \"d3-tip\")\n .style(\"position\", \"absolute\")\n .style(\"top\", \"0px\")\n .style(\"opacity\", 0)\n .style(\"pointer-events\", \"none\")\n .style(\"box-sizing\", \"border-box\");\n\n return div.node();\n }\n\n function getSVGNode(element) {\n const svgNode = element.node();\n if (!svgNode) return null;\n if (svgNode.tagName.toLowerCase() === \"svg\") return svgNode;\n return svgNode.ownerSVGElement;\n }\n\n function getNodeEl() {\n if (node == null) {\n node = initNode();\n // re-add node to DOM\n rootElement().appendChild(node);\n }\n return select(node);\n }\n\n // Private - gets the screen coordinates of a shape\n //\n // Given a shape on the screen, will return an SVGPoint for the directions\n // n(north), s(south), e(east), w(west), ne(northeast), se(southeast),\n // nw(northwest), sw(southwest).\n //\n // +-+-+\n // | |\n // + +\n // | |\n // +-+-+\n //\n // Returns an Object {n, s, e, w, nw, sw, ne, se}\n function getScreenBBox(targetShape) {\n let targetel = target || targetShape;\n\n while (targetel.getCTM == null && targetel.parentNode != null) {\n targetel = targetel.parentNode;\n }\n\n const bbox: any = {};\n const matrix = targetel.getCTM();\n const tbbox = targetel.getBBox();\n const width = tbbox.width;\n const height = tbbox.height;\n const x = tbbox.x;\n const y = tbbox.y;\n\n point.x = x;\n point.y = y;\n bbox.nw = point.matrixTransform(matrix);\n point.x += width;\n bbox.ne = point.matrixTransform(matrix);\n point.y += height;\n bbox.se = point.matrixTransform(matrix);\n point.x -= width;\n bbox.sw = point.matrixTransform(matrix);\n point.y -= height / 2;\n bbox.w = point.matrixTransform(matrix);\n point.x += width;\n bbox.e = point.matrixTransform(matrix);\n point.x -= width / 2;\n point.y -= height / 2;\n bbox.n = point.matrixTransform(matrix);\n point.y += height;\n bbox.s = point.matrixTransform(matrix);\n\n return bbox;\n }\n\n // Private - replace D3JS 3.X d3.functor() function\n function functor(v) {\n return typeof v === \"function\" ? v : function () {\n return v;\n };\n }\n\n return tip;\n}\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import { Palette } from \"@hpcc-js/common\";\n\n// Use old school class declaration as this is a mixin ---\nexport function ITree() {\n}\nITree.prototype.constructor = ITree;\n\n// Events ---\nITree.prototype.click = function (row, column, selected) {\n};\n\nITree.prototype.dblclick = function (row, column, selected) {\n};\n\nITree.prototype._palette = Palette.ordinal(\"default\");\n","export const PKG_NAME = \"@hpcc-js/api\";\nexport const PKG_VERSION = \"2.14.2\";\nexport const BUILD_VERSION = \"2.108.6\";\n","export interface IHighlight {\n highlightColumn(column: string): this;\n}\n\nexport function instanceOfIHighlight(w: any): w is IHighlight {\n return typeof (w as any).highlightColumn === \"function\";\n}\n"],"mappings":"mUAEgBA,IAChB,C,SCAgBC,IAChB,C,SCDgBC,IAChB,C,SCJgBC,IAChB,C,SCEgBC,IAChB,C,SCDgBC,IAChB,CLAAL,EAASM,UAAUC,YAAc,KACjCP,EAASM,UAAUE,SAAWC,UAAQC,QAAQ,WAG9CV,EAASM,UAAUK,MAAQ,SAAUC,EAAKC,EAAQC,GAClD,EAEAd,EAASM,UAAUS,SAAW,SAAUH,EAAKC,EAAQC,GACrD,ECPAb,EAASK,UAAUC,YAAc,KACjCN,EAASK,UAAUE,SAAWC,UAAQO,QAAQ,WAE9Cf,EAASK,UAAUW,UAAY,SAAUL,EAAYC,EAAQK,EAAOC,GAChE,OAAOC,KAAKZ,SAASI,EAAI,GAC7B,EAEAX,EAASK,U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AAM/O,UAAUE,SAAWC,UAAQO,QAAQ,W,gBCZd,U,gHAFL,e,cACG,S,uBCGrB,SAA+BsC,GACjC,MAA6C,mBAA9BA,EAAUgM,eAC7B,C","ignoreList":[]}
1
+ {"version":3,"names":["I1DChart","I2DChart","I2DAggrChart","IGraph","IInput","INDChart","prototype","_dataFamily","_palette","Palette","rainbow","click","row","column","selected","dblclick","ordinal","fillColor","value","origRow","this","strokeColor","d3Hsl","darker","toString","textColor","length","vertex_click","_row","_col","_sel","more","vertex","vertex_dblclick","edge_click","edge","edge_dblclick","Object","create","Widget","constructor","isValid","validate","RegExp","test","hasValue","type","blur","_w","keyup","focus","change","complete","resetValue","w","_inputElement","node","disable","forEach","e","idx","attr","setFocus","publish","ITooltip","tooltip","direction","offset","html","rootElement","functor","document","body","initNode","svg","point","target","tip","vis","svgNode","tagName","toLowerCase","ownerSVGElement","createSVGPoint","re","appendChild","show","d","arr","args","Array","slice","call","arguments","content","apply","coords","poffset","nodel","getNodeEl","i","directions","root_bbox","getBoundingClientRect","style","classed","overflow_obj","placement_success","placement_overflow","least_overflow_direction","i_1","_placement_attempt","top_offset","top","bottom","left_offset","left","right","_horizontal_adjustment","_dir","_top_offset","_left_offset","directionCallbacks","get","nodel_bbox","ret","total_overflow","keys","filter","side","reduce","sum","hide","n","v","selection","destroy","remove","map","bbox","getScreenBBox","window","y","offsetHeight","x","offsetWidth","s","nw","ne","sw","se","div","select","createElement","targetShape","targetel","getCTM","parentNode","matrix","tbbox","getBBox","width","height","matrixTransform","tooltipLabelFormat_exists","_labelFormatter","d3Format","tooltipLabelFormat","tooltipValueFormat_exists","_valueFormatter","tooltipValueFormat","layerEnter","layerEnter_1","_base","svgElement","_domElement","_parentOverlay","tooltipEnter","layerUpdate_1","layerUpdate","tooltipUpdate","layerExit_1","layerExit","tooltipExit","enter_1","enter","_domNode","element","update_1","update","_element","exit_1","exit","css","ref","insertAt","head","getElementsByTagName","firstChild","insertBefore","styleSheet","cssText","createTextNode","overlayElement","parentOverlay","empty","_this","event","tooltipFollowMouse","d3tipElement","querySelector","display","tooltipOffset","clientY","split","join","tooltipTick","tooltipStyle","_class","indexOf","_tooltipHTML","tooltipHTML","_","tooltipFormat","opts","label","undefined","formatData","parseData","series","Date","formatValue","parseValue","html_1","color","tooltipSeriesColor","tooltipLabelColor","tooltipValueColor","tooltipKeyValueFormat","titleKey","obj","key","concat","tooltipLabelColor_exists","retVal","ITree","highlightColumn"],"sources":["../src/I1DChart.ts","../src/I2DChart.ts","../src/I2DAggrChart.ts","../src/IGraph.ts","../src/IInput.ts","../src/INDChart.ts","../src/ITooltip.ts","../src/Tooltip.ts","../../../node_modules/style-inject/dist/style-inject.es.js","../src/ITree.ts","../src/__package__.ts","../src/IHighlight.ts"],"sourcesContent":["import { Palette } from \"@hpcc-js/common\";\r\n\r\nexport function I1DChart() {\r\n}\r\nI1DChart.prototype._dataFamily = \"1D\";\r\nI1DChart.prototype._palette = Palette.rainbow(\"default\");\r\n\r\n// Events ---\r\nI1DChart.prototype.click = function (row, column, selected) {\r\n};\r\n\r\nI1DChart.prototype.dblclick = function (row, column, selected) {\r\n};\r\n","import { Palette } from \"@hpcc-js/common\";\r\nimport { hsl as d3Hsl } from \"d3-color\";\r\n\r\nexport function I2DChart() {\r\n}\r\nI2DChart.prototype._dataFamily = \"2D\";\r\nI2DChart.prototype._palette = Palette.ordinal(\"default\");\r\n\r\nI2DChart.prototype.fillColor = function (row: any[], column, value, origRow): string {\r\n return this._palette(row[0]);\r\n};\r\n\r\nI2DChart.prototype.strokeColor = function (row: any[], column, value, origRow): string {\r\n return d3Hsl(this.fillColor(row, column, value, origRow)).darker().toString();\r\n};\r\n\r\nI2DChart.prototype.textColor = function (row: any[], column, value, origRow): string {\r\n return Palette.textColor(this.fillColor(row, column, value, origRow));\r\n};\r\n\r\n// Events ---\r\nI2DChart.prototype.click = function (row: object, column, selected) {\r\n};\r\n\r\nI2DChart.prototype.dblclick = function (row: object, column, selected) {\r\n};\r\n","import { Palette } from \"@hpcc-js/common\";\r\nimport { hsl as d3Hsl } from \"d3-color\";\r\n\r\nexport function I2DAggrChart() {\r\n}\r\nI2DAggrChart.prototype._palette = Palette.rainbow(\"default\");\r\n\r\nI2DAggrChart.prototype.fillColor = function (row: any[][], column, value): string {\r\n return this._palette(row.length);\r\n};\r\n\r\nI2DAggrChart.prototype.strokeColor = function (row: any[][], column, value): string {\r\n return d3Hsl(this.fillColor(row, column, value)).darker().toString();\r\n};\r\n\r\nI2DAggrChart.prototype.textColor = function (row: any[][], column, value): string {\r\n return Palette.textColor(this.fillColor(row, column, value));\r\n};\r\n\r\n// Events ---\r\nI2DAggrChart.prototype.click = function (row: object[], column, selected) {\r\n};\r\n\r\nI2DAggrChart.prototype.dblclick = function (row: object[], column, selected) {\r\n};\r\n","export function IGraph() {\r\n}\r\nIGraph.prototype._dataFamily = \"graph\";\r\n\r\n// Events ---\r\nIGraph.prototype.vertex_click = function (_row, _col, _sel, more) {\r\n if (more && more.vertex) {\r\n }\r\n};\r\n\r\nIGraph.prototype.vertex_dblclick = function (_row, _col, _sel, more) {\r\n if (more && more.vertex) {\r\n }\r\n};\r\n\r\nIGraph.prototype.edge_click = function (_row, _col, _sel, more) {\r\n if (more && more.edge) {\r\n }\r\n};\r\n\r\nIGraph.prototype.edge_dblclick = function (_row, _col, _sel, more) {\r\n if (more && more.edge) {\r\n }\r\n};\r\n","import { Widget } from \"@hpcc-js/common\";\r\n\r\n// Use old school class declaration as this is a mixin ---\r\nexport function IInput() {\r\n}\r\nIInput.prototype = Object.create(Widget.prototype);\r\nIInput.prototype.constructor = IInput;\r\n\r\n// abstract target(): any;\r\n// abstract target(_: any): this;\r\n\r\n// Implementation ---\r\nIInput.prototype.isValid = function () {\r\n if (this.validate()) {\r\n const re = new RegExp(this.validate());\r\n if (!re.test(this.value())) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n};\r\n\r\nIInput.prototype.hasValue = function () {\r\n if (typeof (this as any).type === \"function\") {\r\n switch ((this as any).type()) {\r\n case \"radio\":\r\n /* falls through */\r\n case \"checkbox\":\r\n if (this.value() && this.value() !== \"false\") {\r\n return true;\r\n }\r\n break;\r\n default:\r\n if (this.value()) {\r\n return true;\r\n }\r\n break;\r\n }\r\n return false;\r\n }\r\n return this.value() !== \"\";\r\n};\r\n\r\n// Events ---\r\nIInput.prototype.blur = function (_w) {\r\n};\r\nIInput.prototype.keyup = function (_w) {\r\n};\r\nIInput.prototype.focus = function (_w) {\r\n};\r\nIInput.prototype.click = function (_w) {\r\n};\r\nIInput.prototype.dblclick = function (_w) {\r\n};\r\nIInput.prototype.change = function (_w, complete: boolean) {\r\n};\r\n\r\nIInput.prototype.resetValue = function (w) {\r\n w.value(w._inputElement[0].node().value);\r\n};\r\n\r\nIInput.prototype.disable = function (disable) {\r\n this._inputElement.forEach(function (e, idx) {\r\n e.attr(\"disabled\", disable ? \"disabled\" : null);\r\n });\r\n};\r\n\r\nIInput.prototype.setFocus = function () {\r\n if (this._inputElement.length) {\r\n this._inputElement[0].node().focus();\r\n }\r\n};\r\n\r\nexport interface IInput {\r\n name: { (): string; (_: string): IInput };\r\n name_exists: () => boolean;\r\n label: { (): string; (_: string): IInput };\r\n label_exists: () => boolean;\r\n value: { (): any; (_: any): IInput };\r\n value_exists: () => boolean;\r\n validate: { (): string; (_: string): IInput };\r\n validate_exists: () => boolean;\r\n}\r\nIInput.prototype.publish(\"name\", \"\", \"string\", \"HTML name for the input\");\r\nIInput.prototype.publish(\"label\", \"\", \"string\", \"Descriptive label\");\r\nIInput.prototype.publish(\"value\", \"\", \"string\", \"Input Current Value\");\r\nIInput.prototype.publish(\"validate\", null, \"string\", \"Input Validation\");\r\n","import { Palette } from \"@hpcc-js/common\";\r\nimport { hsl as d3Hsl } from \"d3-color\";\r\n\r\nexport function INDChart() {\r\n}\r\nINDChart.prototype._dataFamily = \"ND\";\r\nINDChart.prototype._palette = Palette.ordinal(\"default\");\r\n\r\nINDChart.prototype.fillColor = function (row: any[], column: string, value: number, origRow: any): string {\r\n return this._palette(column);\r\n};\r\n\r\nINDChart.prototype.strokeColor = function (row: any[], column: string, value: number, origRow: any): string {\r\n return d3Hsl(this.fillColor(row, column, value, origRow)).darker().toString();\r\n};\r\n\r\nINDChart.prototype.textColor = function (row: any[], column: string, value: number, origRow: any): string {\r\n return Palette.textColor(this.fillColor(row, column, value, origRow));\r\n};\r\n\r\n// Events ---\r\nINDChart.prototype.click = function (row, column, selected) {\r\n};\r\n\r\nINDChart.prototype.dblclick = function (row, column, selected) {\r\n};\r\n","import { Widget } from \"@hpcc-js/common\";\r\nimport { format as d3Format } from \"d3-format\";\r\nimport { tip } from \"./Tooltip\";\r\n\r\nimport \"../src/ITooltip.css\";\r\n\r\ndeclare const event: object;\r\n\r\n// Use old school class declaration as this is a mixin ---\r\nexport function ITooltip() {\r\n this.tooltip = tip();\r\n\r\n if (this.tooltipLabelFormat_exists()) {\r\n this._labelFormatter = d3Format(this.tooltipLabelFormat() as string);\r\n }\r\n\r\n if (this.tooltipValueFormat_exists()) {\r\n this._valueFormatter = d3Format(this.tooltipValueFormat() as string);\r\n }\r\n\r\n if (this.layerEnter) {\r\n const layerEnter = this.layerEnter;\r\n this.layerEnter = function (_base, svgElement, _domElement) {\r\n if (!this._parentOverlay) {\r\n this._parentOverlay = _base._parentOverlay;\r\n }\r\n this.tooltipEnter(svgElement);\r\n layerEnter.apply(this, arguments);\r\n };\r\n const layerUpdate = this.layerUpdate;\r\n this.layerUpdate = function (_base) {\r\n layerUpdate.apply(this, arguments);\r\n this.tooltipUpdate();\r\n };\r\n const layerExit = this.layerExit;\r\n this.layerExit = function (_base) {\r\n this.tooltipExit();\r\n layerExit.apply(this, arguments);\r\n };\r\n } else {\r\n const enter = this.enter;\r\n this.enter = function (_domNode, element) {\r\n this.tooltipEnter(element);\r\n enter.apply(this, arguments);\r\n };\r\n const update = this.update;\r\n this.update = function (_domNode, _element) {\r\n update.apply(this, arguments);\r\n this.tooltipUpdate();\r\n };\r\n const exit = this.exit;\r\n this.exit = function (_domNode, _element) {\r\n this.tooltipExit();\r\n exit.apply(this, arguments);\r\n };\r\n }\r\n}\r\nITooltip.prototype = Object.create(Widget.prototype);\r\nITooltip.prototype.constructor = ITooltip;\r\n\r\n// abstract target(): any;\r\n// abstract target(_: any): this;\r\n\r\nITooltip.prototype.tooltipEnter = function (element) {\r\n const overlayElement = this.parentOverlay();\r\n if (!overlayElement.empty()) {\r\n this.tooltip.rootElement(overlayElement.node().parentNode);\r\n }\r\n element.call(this.tooltip);\r\n};\r\n\r\nITooltip.prototype.tooltipUpdate = function () {\r\n this.tooltip.offset(() => {\r\n if (event && this.tooltipFollowMouse()) {\r\n const d3tipElement: HTMLDivElement = document.querySelector(\".d3-tip\"); // d3Tip offers no reference to the '.d3-tip' element...?\r\n d3tipElement.style.display = \"block\";\r\n d3tipElement.style.left = this.tooltipOffset() + ((event as any).clientX) + \"px\";\r\n d3tipElement.style.top = (event as any).clientY + \"px\";\r\n return [];\r\n }\r\n switch (this.tooltip.direction()()) {\r\n case \"e\":\r\n return [0, this.tooltipOffset()];\r\n default:\r\n return [-this.tooltipOffset(), 0];\r\n }\r\n });\r\n\r\n let classed = this.tooltip.attr(\"class\");\r\n if (classed) {\r\n classed = classed.split(\" notick\").join(\"\") + (this.tooltipTick() ? \"\" : \" notick\") + (this.tooltipStyle() === \"none\" ? \" hidden\" : \"\");\r\n classed = classed.split(\" \")\r\n .filter(function (_class) {\r\n return _class.indexOf(\"ITooltip-tooltipStyle-\") !== 0;\r\n })\r\n .join(\" \")\r\n ;\r\n classed += \" ITooltip-tooltipStyle-\" + this.tooltipStyle();\r\n this.tooltip\r\n .attr(\"class\", classed)\r\n ;\r\n }\r\n};\r\n\r\nITooltip.prototype.tooltipExit = function () {\r\n if (this.tooltip) {\r\n this.tooltip.destroy();\r\n }\r\n};\r\n\r\nITooltip.prototype._tooltipHTML = function (d) {\r\n return d;\r\n};\r\n\r\nITooltip.prototype.tooltipHTML = function (_) {\r\n return this.tooltip.html(_);\r\n};\r\n\r\nITooltip.prototype.tooltipFormat = function (opts: { label?: string | number, series?: string | number, value?: Date | string | number, arr?: Array<{ color: string, label: string, value: string }> } = {}) {\r\n opts.label = opts.label === undefined ? \"\" : opts.label;\r\n if (this._labelFormatter) {\r\n opts.label = this._labelFormatter(opts.label) || \"\";\r\n } else if (this.formatData && this.parseData) {\r\n opts.label = this.formatData(this.parseData(opts.label));\r\n }\r\n opts.series = opts.series || \"\";\r\n if (opts.value instanceof Date) {\r\n opts.value = opts.value || \"\";\r\n } else if (this._valueFormatter) {\r\n opts.value = this._valueFormatter(opts.value) || \"\";\r\n } else if (this.formatValue && this.parseValue) {\r\n opts.value = this.formatValue(this.parseValue(opts.value));\r\n }\r\n switch (this.tooltipStyle()) {\r\n case \"none\":\r\n break;\r\n case \"series-table\":\r\n let html = '<table class=\"ITooltip-series-table\">'\r\n + \"<thead>\"\r\n + '<tr><th colspan=\"2\">' + opts.label + \"</th></tr>\"\r\n + \"</thead>\"\r\n + \"<tbody>\";\r\n opts.arr.forEach(function (row) {\r\n html += \"<tr>\";\r\n html += \"<td>\";\r\n html += '<div class=\"series-table-row-color\" style=\"background-color:' + row.color + '\"></div>';\r\n html += '<div class=\"series-table-row-label\">' + row.label + \"</div>\";\r\n html += \"</td>\";\r\n html += '<td><div class=\"series-table-row-value\">' + row.value + \"</div></td>\";\r\n html += \"</tr>\";\r\n });\r\n html += \"</tbody>\";\r\n html += \"</table>\";\r\n return html;\r\n default:\r\n if (opts.series) {\r\n return \"<span style='color:\" + this.tooltipSeriesColor() + \"'>\" + opts.series + \"</span> / <span style='color:\" + this.tooltipLabelColor() + \"'>\" + opts.label + \"</span>: <span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\r\n }\r\n if (opts.label !== \"\") {\r\n return \"<span style='color:\" + this.tooltipLabelColor() + \"'>\" + opts.label + \"</span>: <span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\r\n }\r\n return \"<span style='color:\" + this.tooltipValueColor() + \"'>\" + opts.value + \"</span>\";\r\n }\r\n};\r\n\r\nITooltip.prototype.tooltipKeyValueFormat = function (titleKey: string, obj: object): string {\r\n let body = \"\";\r\n for (const key in obj) {\r\n if (key !== titleKey) {\r\n const value = obj && obj[key] ? obj[key] : \"\";\r\n body += `<tr><td style=\"${this.tooltipLabelColor_exists() ? \"color:\" + this.tooltipLabelColor() : \"\"}\">${key}</td><td style=\"font-weight:normal\">${value}</td></tr>`;\r\n }\r\n }\r\n return `<table>\r\n <thead>\r\n <tr><th colspan=\"2\" style=\"font-weight:bold;font-size:16px\">${obj[titleKey]}</th></tr>\r\n </thead>\r\n <tbody>\r\n ${body}\r\n </tbody>\r\n </table>`;\r\n};\r\n\r\nexport interface ITooltip {\r\n tooltipStyle: { (): \"default\" | \"none\" | \"series-table\"; (_: \"default\" | \"none\" | \"series-table\"): ITooltip; };\r\n tooltipFollowMouse: { (): boolean; (_: boolean): ITooltip; };\r\n tooltipLabelFormat: (_?) => string | ITooltip;\r\n tooltipLabelFormat_exists: () => boolean;\r\n tooltipValueFormat: (_?) => string | ITooltip;\r\n tooltipValueFormat_exists: () => boolean;\r\n tooltipSeriesColor: { (): string; (_: string): ITooltip; };\r\n tooltipLabelColor: { (): string; (_: string): ITooltip; };\r\n tooltipLabelColor_exists: () => boolean;\r\n tooltipValueColor: { (): string; (_: string): ITooltip; };\r\n tooltipTick: { (): boolean; (_: boolean): ITooltip; };\r\n tooltipOffset: { (): number; (_: number): ITooltip; };\r\n tooltipOffset_default: { (): number; (_: number): ITooltip; };\r\n}\r\nITooltip.prototype.publish(\"tooltipStyle\", \"default\", \"set\", \"Style mode\", [\"default\", \"none\", \"series-table\"], {});\r\nITooltip.prototype.publish(\"tooltipFollowMouse\", false, \"boolean\", \"If true, the tooltip will follow mouse movement\", null, {});\r\nITooltip.prototype.publish(\"tooltipLabelFormat\", undefined, \"string\", \"Format of tooltip label(s) (the domain axis)\", null, {});\r\nITooltip.prototype.publish(\"tooltipValueFormat\", undefined, \"string\", \"Number format of tooltip value(s)\", null, {});\r\nITooltip.prototype.publish(\"tooltipSeriesColor\", \"#EAFFFF\", \"html-color\", \"Color of tooltip series text\", null, {});\r\nITooltip.prototype.publish(\"tooltipLabelColor\", \"#CCFFFF\", \"html-color\", \"Color of tooltip label text (the domain axis)\", null, {});\r\nITooltip.prototype.publish(\"tooltipValueColor\", \"white\", \"html-color\", \"Color of tooltip value(s)\", null, {});\r\nITooltip.prototype.publish(\"tooltipTick\", true, \"boolean\", \"Show tooltip tick\", null, {});\r\nITooltip.prototype.publish(\"tooltipOffset\", 8, \"number\", \"Offset from the cursor\", null, {});\r\n\r\nconst tooltipLabelFormat = ITooltip.prototype.tooltipLabelFormat;\r\nITooltip.prototype.tooltipLabelFormat = function (_?): string | ITooltip {\r\n const retVal = tooltipLabelFormat.apply(this, arguments);\r\n if (arguments.length) {\r\n this._labelFormatter = d3Format(_);\r\n }\r\n return retVal;\r\n};\r\n\r\nconst tooltipValueFormat = ITooltip.prototype.tooltipValueFormat;\r\nITooltip.prototype.tooltipValueFormat = function (_?): string | ITooltip {\r\n const retVal = tooltipValueFormat.apply(this, arguments);\r\n if (arguments.length) {\r\n this._valueFormatter = d3Format(_);\r\n }\r\n return retVal;\r\n};\r\n","// Based on https://github.com/GordonSmith/d3-tip forked from https://github.com/Caged/d3-tip\r\n\r\nimport { map } from \"d3-collection\";\r\nimport { select, selection } from \"d3-selection\";\r\n\r\nexport function tip() {\r\n let direction = d3TipDirection;\r\n let offset = d3TipOffset;\r\n let html = d3TipHTML;\r\n let rootElement = functor(document.body);\r\n let node = initNode();\r\n let svg = null;\r\n let point = null;\r\n let target = null;\r\n\r\n const tip: any = function (vis) {\r\n svg = getSVGNode(vis);\r\n if (!svg) return;\r\n point = svg.createSVGPoint();\r\n const re = rootElement();\r\n if (!re) return;\r\n if (!node) return;\r\n re.appendChild(node);\r\n };\r\n\r\n // Public - show the tooltip on the screen\r\n //\r\n // Returns a tip\r\n tip.show = function (d, idx, arr) {\r\n target = arr[idx];\r\n const args = Array.prototype.slice.call(arguments);\r\n const content = html.apply(this, args);\r\n if (content === null) {\r\n return tip;\r\n }\r\n const poffset = offset.apply(this, args);\r\n const nodel = getNodeEl();\r\n let i = directions.length;\r\n let coords;\r\n const root_bbox = rootElement().getBoundingClientRect();\r\n nodel.html(content)\r\n .style(\"opacity\", 1).style(\"pointer-events\", \"all\");\r\n\r\n while (i--) nodel.classed(directions[i], false);\r\n let placement_success = false;\r\n const placement_overflow = {};\r\n let least_overflow_direction = directions[0];\r\n for (let i = 0; i < directions.length; i++) {\r\n placement_success = _placement_attempt(directions[i]);\r\n if (placement_success) break;\r\n }\r\n if (!placement_success) {\r\n nodel.classed(\"notick\", true);\r\n const top_offset = _vertical_adjustment(placement_overflow[least_overflow_direction]);\r\n const left_offset = _horizontal_adjustment(placement_overflow[least_overflow_direction]);\r\n _placement_attempt(least_overflow_direction, top_offset, left_offset);\r\n } else {\r\n nodel.classed(\"notick\", false);\r\n }\r\n return tip;\r\n\r\n function _horizontal_adjustment(overflow_obj) {\r\n if (overflow_obj.left > overflow_obj.right) {\r\n return overflow_obj.left > 0 ? -overflow_obj.left : 0;\r\n } else {\r\n return overflow_obj.right > 0 ? overflow_obj.right : 0;\r\n }\r\n }\r\n function _vertical_adjustment(overflow_obj) {\r\n if (overflow_obj.top > overflow_obj.bottom) {\r\n return overflow_obj.top > 0 ? -overflow_obj.top : 0;\r\n } else {\r\n return overflow_obj.bottom;\r\n }\r\n }\r\n\r\n function _placement_attempt(_dir, _top_offset?, _left_offset?) {\r\n _top_offset = _top_offset ? _top_offset : 0;\r\n _left_offset = _left_offset ? _left_offset : 0;\r\n nodel.style(\"white-space\", \"nowrap\");\r\n coords = directionCallbacks.get(_dir).apply(this);\r\n nodel.classed(_dir, true)\r\n .style(\"top\", (coords.top + poffset[0] - _top_offset) + \"px\")\r\n .style(\"left\", (coords.left + poffset[1] - _left_offset) + \"px\");\r\n const nodel_bbox = nodel.node().getBoundingClientRect();\r\n const ret = nodel_bbox.top > root_bbox.top\r\n && nodel_bbox.left > root_bbox.left\r\n && nodel_bbox.bottom < root_bbox.bottom\r\n && nodel_bbox.right < root_bbox.right\r\n ;\r\n placement_overflow[_dir] = {\r\n top: root_bbox.top - nodel_bbox.top,\r\n right: nodel_bbox.right - root_bbox.right,\r\n bottom: nodel_bbox.bottom - root_bbox.bottom,\r\n left: root_bbox.left - nodel_bbox.left\r\n };\r\n nodel.style(\"white-space\", \"normal\");\r\n placement_overflow[_dir].total_overflow = Object.keys(placement_overflow[_dir])\r\n .filter(side => placement_overflow[_dir][side] > 0)\r\n .reduce((sum, side) => {\r\n const side_overflow = placement_overflow[_dir][side];\r\n return sum + side_overflow;\r\n }, 0);\r\n if (placement_overflow[least_overflow_direction].total_overflow > placement_overflow[_dir].total_overflow) {\r\n least_overflow_direction = _dir;\r\n }\r\n if (!ret) {\r\n nodel.classed(_dir, false);\r\n }\r\n return ret;\r\n }\r\n };\r\n\r\n // Public - hide the tooltip\r\n //\r\n // Returns a tip\r\n tip.hide = function () {\r\n const nodel = getNodeEl();\r\n nodel.style(\"opacity\", 0).style(\"pointer-events\", \"none\");\r\n return tip;\r\n };\r\n\r\n // Public: Proxy attr calls to the d3 tip container.\r\n // Sets or gets attribute value.\r\n //\r\n // n - name of the attribute\r\n // v - value of the attribute\r\n //\r\n // Returns tip or attribute value\r\n // eslint-disable-next-line no-unused-vars\r\n tip.attr = function (n, v) {\r\n if (arguments.length < 2 && typeof n === \"string\") {\r\n return getNodeEl().attr(n);\r\n }\r\n\r\n const args = Array.prototype.slice.call(arguments);\r\n selection.prototype.attr.apply(getNodeEl(), args);\r\n return tip;\r\n };\r\n\r\n // Public: Proxy style calls to the d3 tip container.\r\n // Sets or gets a style value.\r\n //\r\n // n - name of the property\r\n // v - value of the property\r\n //\r\n // Returns tip or style property value\r\n // eslint-disable-next-line no-unused-vars\r\n tip.style = function (n, v) {\r\n if (arguments.length < 2 && typeof n === \"string\") {\r\n return getNodeEl().style(n);\r\n }\r\n\r\n const args = Array.prototype.slice.call(arguments);\r\n selection.prototype.style.apply(getNodeEl(), args);\r\n return tip;\r\n };\r\n\r\n // Public: Set or get the direction of the tooltip\r\n //\r\n // v - One of n(north), s(south), e(east), or w(west), nw(northwest),\r\n // sw(southwest), ne(northeast) or se(southeast)\r\n //\r\n // Returns tip or direction\r\n tip.direction = function (v) {\r\n if (!arguments.length) return direction;\r\n direction = v == null ? v : functor(v);\r\n\r\n return tip;\r\n };\r\n\r\n // Public: Sets or gets the offset of the tip\r\n //\r\n // v - Array of [x, y] offset\r\n //\r\n // Returns offset or\r\n tip.offset = function (v) {\r\n if (!arguments.length) return offset;\r\n offset = v == null ? v : functor(v);\r\n\r\n return tip;\r\n };\r\n\r\n // Public: sets or gets the html value of the tooltip\r\n //\r\n // v - String value of the tip\r\n //\r\n // Returns html value or tip\r\n tip.html = function (v) {\r\n if (!arguments.length) return html;\r\n html = v == null ? v : functor(v);\r\n\r\n return tip;\r\n };\r\n\r\n // Public: sets or gets the root element anchor of the tooltip\r\n //\r\n // v - root element of the tooltip\r\n //\r\n // Returns root node of tip\r\n tip.rootElement = function (v) {\r\n if (!arguments.length) return rootElement;\r\n rootElement = functor(v);\r\n\r\n return tip;\r\n };\r\n\r\n // Public: destroys the tooltip and removes it from the DOM\r\n //\r\n // Returns a tip\r\n tip.destroy = function () {\r\n if (node) {\r\n getNodeEl().remove();\r\n node = null;\r\n }\r\n return tip;\r\n };\r\n\r\n function d3TipDirection() { return \"n\"; }\r\n function d3TipOffset() { return [0, 0]; }\r\n function d3TipHTML() { return \" \"; }\r\n\r\n const directionCallbacks = map({\r\n n: directionNorth,\r\n s: directionSouth,\r\n e: directionEast,\r\n w: directionWest,\r\n nw: directionNorthWest,\r\n ne: directionNorthEast,\r\n sw: directionSouthWest,\r\n se: directionSouthEast\r\n });\r\n const directions = directionCallbacks.keys();\r\n\r\n function directionNorth() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.n.y - node.offsetHeight,\r\n left: bbox.n.x - node.offsetWidth / 2\r\n };\r\n }\r\n\r\n function directionSouth() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.s.y + 8,\r\n left: bbox.s.x - node.offsetWidth / 2\r\n };\r\n }\r\n\r\n function directionEast() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.e.y - node.offsetHeight / 2,\r\n left: bbox.e.x + 8\r\n };\r\n }\r\n\r\n function directionWest() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.w.y - node.offsetHeight / 2,\r\n left: bbox.w.x - node.offsetWidth - 8\r\n };\r\n }\r\n\r\n function directionNorthWest() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.nw.y - node.offsetHeight,\r\n left: bbox.nw.x - node.offsetWidth\r\n };\r\n }\r\n\r\n function directionNorthEast() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.ne.y - node.offsetHeight,\r\n left: bbox.ne.x\r\n };\r\n }\r\n\r\n function directionSouthWest() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.sw.y,\r\n left: bbox.sw.x - node.offsetWidth\r\n };\r\n }\r\n\r\n function directionSouthEast() {\r\n const bbox = getScreenBBox(window);\r\n return {\r\n top: bbox.se.y,\r\n left: bbox.se.x\r\n };\r\n }\r\n\r\n function initNode() {\r\n const div = select(document.createElement(\"div\"));\r\n div\r\n .attr(\"class\", \"d3-tip\")\r\n .style(\"position\", \"absolute\")\r\n .style(\"top\", \"0px\")\r\n .style(\"opacity\", 0)\r\n .style(\"pointer-events\", \"none\")\r\n .style(\"box-sizing\", \"border-box\");\r\n\r\n return div.node();\r\n }\r\n\r\n function getSVGNode(element) {\r\n const svgNode = element.node();\r\n if (!svgNode) return null;\r\n if (svgNode.tagName.toLowerCase() === \"svg\") return svgNode;\r\n return svgNode.ownerSVGElement;\r\n }\r\n\r\n function getNodeEl() {\r\n if (node == null) {\r\n node = initNode();\r\n // re-add node to DOM\r\n rootElement().appendChild(node);\r\n }\r\n return select(node);\r\n }\r\n\r\n // Private - gets the screen coordinates of a shape\r\n //\r\n // Given a shape on the screen, will return an SVGPoint for the directions\r\n // n(north), s(south), e(east), w(west), ne(northeast), se(southeast),\r\n // nw(northwest), sw(southwest).\r\n //\r\n // +-+-+\r\n // | |\r\n // + +\r\n // | |\r\n // +-+-+\r\n //\r\n // Returns an Object {n, s, e, w, nw, sw, ne, se}\r\n function getScreenBBox(targetShape) {\r\n let targetel = target || targetShape;\r\n\r\n while (targetel.getCTM == null && targetel.parentNode != null) {\r\n targetel = targetel.parentNode;\r\n }\r\n\r\n const bbox: any = {};\r\n const matrix = targetel.getCTM();\r\n const tbbox = targetel.getBBox();\r\n const width = tbbox.width;\r\n const height = tbbox.height;\r\n const x = tbbox.x;\r\n const y = tbbox.y;\r\n\r\n point.x = x;\r\n point.y = y;\r\n bbox.nw = point.matrixTransform(matrix);\r\n point.x += width;\r\n bbox.ne = point.matrixTransform(matrix);\r\n point.y += height;\r\n bbox.se = point.matrixTransform(matrix);\r\n point.x -= width;\r\n bbox.sw = point.matrixTransform(matrix);\r\n point.y -= height / 2;\r\n bbox.w = point.matrixTransform(matrix);\r\n point.x += width;\r\n bbox.e = point.matrixTransform(matrix);\r\n point.x -= width / 2;\r\n point.y -= height / 2;\r\n bbox.n = point.matrixTransform(matrix);\r\n point.y += height;\r\n bbox.s = point.matrixTransform(matrix);\r\n\r\n return bbox;\r\n }\r\n\r\n // Private - replace D3JS 3.X d3.functor() function\r\n function functor(v) {\r\n return typeof v === \"function\" ? v : function () {\r\n return v;\r\n };\r\n }\r\n\r\n return tip;\r\n}\r\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import { Palette } from \"@hpcc-js/common\";\r\n\r\n// Use old school class declaration as this is a mixin ---\r\nexport function ITree() {\r\n}\r\nITree.prototype.constructor = ITree;\r\n\r\n// Events ---\r\nITree.prototype.click = function (row, column, selected) {\r\n};\r\n\r\nITree.prototype.dblclick = function (row, column, selected) {\r\n};\r\n\r\nITree.prototype._palette = Palette.ordinal(\"default\");\r\n","export const PKG_NAME = \"@hpcc-js/api\";\r\nexport const PKG_VERSION = \"2.14.2\";\r\nexport const BUILD_VERSION = \"2.108.6\";\r\n","export interface IHighlight {\r\n highlightColumn(column: string): this;\r\n}\r\n\r\nexport function instanceOfIHighlight(w: any): w is IHighlight {\r\n return typeof (w as any).highlightColumn === \"function\";\r\n}\r\n"],"mappings":"mUAEgBA,IAChB,C,SCAgBC,IAChB,C,SCDgBC,IAChB,C,SCJgBC,IAChB,C,SCEgBC,IAChB,C,SCDgBC,IAChB,CLAAL,EAASM,UAAUC,YAAc,KACjCP,EAASM,UAAUE,SAAWC,UAAQC,QAAQ,WAG9CV,EAASM,UAAUK,MAAQ,SAAUC,EAAKC,EAAQC,GAClD,EAEAd,EAASM,UAAUS,SAAW,SAAUH,EAAKC,EAAQC,GACrD,ECPAb,EAASK,UAAUC,YAAc,KACjCN,EAASK,UAAUE,SAAWC,UAAQO,QAAQ,WAE9Cf,EAASK,UAAUW,UAAY,SAAUL,EAAYC,EAAQK,EAAOC,GAChE,OAAOC,KAAKZ,SAASI,EAAI,GAC7B,EAEAX,EAASK,UAAUe,YAAc,SAAUT,EAAYC,EAAQK,EAAOC,GAClE,OAAOG,MAAMF,KAAKH,UAAUL,EAAKC,EAAQK,EAAOC,IAAUI,SAASC,UACvE,EAEAvB,EAASK,UAAUmB,UAAY,SAAUb,EAAYC,EAAQK,EAA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1
  {
2
2
  "name": "@hpcc-js/api",
3
- "version": "2.14.2",
3
+ "version": "2.14.3",
4
4
  "description": "hpcc-js - Viz api",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es6",
@@ -38,7 +38,7 @@
38
38
  "update": "npx --yes npm-check-updates -u -t minor"
39
39
  },
40
40
  "dependencies": {
41
- "@hpcc-js/common": "^2.73.2"
41
+ "@hpcc-js/common": "^2.73.3"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@hpcc-js/bundle": "^2.12.0",
@@ -59,5 +59,5 @@
59
59
  "url": "https://github.com/hpcc-systems/Visualization/issues"
60
60
  },
61
61
  "homepage": "https://github.com/hpcc-systems/Visualization",
62
- "gitHead": "84f852a555c8d7b7381e4fcb93bfad829b1db62e"
62
+ "gitHead": "0907b8d15d369c89483954a1d96e2247ba020cb6"
63
63
  }
package/src/I1DChart.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { Palette } from "@hpcc-js/common";
2
-
3
- export function I1DChart() {
4
- }
5
- I1DChart.prototype._dataFamily = "1D";
6
- I1DChart.prototype._palette = Palette.rainbow("default");
7
-
8
- // Events ---
9
- I1DChart.prototype.click = function (row, column, selected) {
10
- };
11
-
12
- I1DChart.prototype.dblclick = function (row, column, selected) {
13
- };
1
+ import { Palette } from "@hpcc-js/common";
2
+
3
+ export function I1DChart() {
4
+ }
5
+ I1DChart.prototype._dataFamily = "1D";
6
+ I1DChart.prototype._palette = Palette.rainbow("default");
7
+
8
+ // Events ---
9
+ I1DChart.prototype.click = function (row, column, selected) {
10
+ };
11
+
12
+ I1DChart.prototype.dblclick = function (row, column, selected) {
13
+ };