diff --git a/dist/app/TouringPanel.d.ts b/dist/app/TouringPanel.d.ts index e9eac48..7306349 100644 --- a/dist/app/TouringPanel.d.ts +++ b/dist/app/TouringPanel.d.ts @@ -1,11 +1,11 @@ import 'd3.parsets/d3.parsets'; import 'd3-grubert-boxplot/box'; import { LocalDataProvider } from 'lineupjs'; -import { PanelTab } from 'tdp_core/dist/lineup/internal/panel/PanelTab'; -import { IPanelTabExtensionDesc } from 'tdp_core/dist/lineup/internal/LineUpPanelActions'; +import { PanelTab } from 'tdp_core'; +import { IPanelTabExtensionDesc } from 'tdp_core'; import { RowComparison } from '../tasks/RowComparisonTask'; import { ColumnComparison } from '../tasks/ColumnComparisonTask'; -export declare const tasks: (ColumnComparison | RowComparison)[]; +export declare const tasks: (RowComparison | ColumnComparison)[]; export declare class TouringPanel { private readonly _desc; private readonly tab; diff --git a/dist/app/TouringPanel.js b/dist/app/TouringPanel.js index a65d653..073e493 100644 --- a/dist/app/TouringPanel.js +++ b/dist/app/TouringPanel.js @@ -2,7 +2,7 @@ import { RankingAdapter } from '../tasks/RankingAdapter'; import * as d3 from 'd3'; import 'd3.parsets/d3.parsets'; import 'd3-grubert-boxplot/box'; -import { PanelTab } from 'tdp_core/dist/lineup/internal/panel/PanelTab'; +import { PanelTab } from 'tdp_core'; import { RowComparison } from '../tasks/RowComparisonTask'; import { ColumnComparison } from '../tasks/ColumnComparisonTask'; export const tasks = [ @@ -19,8 +19,10 @@ const touringTemplate = `
-
- +
+ +
+
@@ -51,16 +53,24 @@ export class TouringPanel { insertTasks() { // For each Task, create a button // Link tasks with buttons - const taskSelectForm = d3.select(this.node).select('.input .type .form-group'); + const taskSelectForm = d3.select(this.node).select('.input .type .row .btn-group'); const taskButtons = taskSelectForm.selectAll('.btn-wrapper').data(tasks, (task) => task.id); + // TODO: Add in correct order and fix styling of selected button taskButtons.enter() // enter: add a button for each task - .append('div').attr('class', `btn-wrapper col-sm-${Math.max(Math.floor(8 / tasks.length), 1)}`) - .append('button').attr('class', 'task-btn btn btn-default btn-block') - .classed('active', (d, i) => i === 0) // Activate first task - .html((d) => `${d.label}`); + .append('input').attr('class', `btn-check task-btn`).attr('type', 'radio').attr('id', (d, i) => `btnradio_${i}`).attr('name', 'btnradio').attr('checked', (d, i) => i === 0) + .classed('active', (d, i) => i === 0); // Activate first task + taskButtons.enter() // enter: add a button for each task + .append('label').attr('class', `btn btn-outline-secondary`).attr('for', (d, i) => `btnradio_${i}`) + .html((d) => `  ${d.label}`); // update: nothing to do taskButtons.exit().remove(); // exit: remove tasks no longer displayed taskButtons.order(); // order domelements as in the array + // order DOM elements to match Bootstrap button group markup + const inputs = this.node.querySelectorAll('.btn-wrapper > input.task-btn'); + const labels = this.node.querySelectorAll('.btn-wrapper > label.btn'); + inputs.forEach((input, i) => { + input.after(labels[i]); + }); } addEventListeners() { this.tab.on(PanelTab.SHOW_PANEL, () => { @@ -76,10 +86,11 @@ export class TouringPanel { this.currentTask.removeEventListeners(); }); // Click a different task - d3.select(this.node).selectAll('button.task-btn').on('click', (task) => { - const taskButtons = d3.select(this.node).selectAll('button.task-btn'); + d3.select(this.node).selectAll('input.task-btn').on('click', (task) => { + const taskButtons = d3.select(this.node).selectAll('input.task-btn'); if (this.currentTask && this.currentTask.id !== task.id) { // task changed taskButtons.classed('active', (d) => d.id === task.id); + taskButtons.attr('checked', (d) => d.id === task.id); this.currentTask.hide(); // hide old task this.updateOutput(); // will show new task } @@ -94,7 +105,7 @@ export class TouringPanel { } } updateTask() { - const activeButton = d3.select(this.node).select('button.task-btn.active'); + const activeButton = d3.select(this.node).select('input.task-btn.active'); if (activeButton.size() === 0) { console.warn('No comparison tasks registered and found.'); return; diff --git a/dist/app/TouringPanel.js.map b/dist/app/TouringPanel.js.map index dab43a1..4925780 100644 --- a/dist/app/TouringPanel.js.map +++ b/dist/app/TouringPanel.js.map @@ -1 +1 @@ -{"version":3,"file":"TouringPanel.js","sourceRoot":"","sources":["../../src/app/TouringPanel.ts"],"names":[],"mappings":"AAAA,OA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measure_visualization/BoxPlot.js index c483f50..b8c5779 100644 --- a/dist/measure_visualization/BoxPlot.js +++ b/dist/measure_visualization/BoxPlot.js @@ -32,7 +32,7 @@ export class BoxPlot { if (setParameters.setBCategory && setParameters.setBCategory.label) { label = setParameters.setBCategory.label; } - setBBoxData.push('' + label); + setBBoxData.push('​' + label); // this label has a zero width space in between '' const setBValid = setParameters.setB.filter((item) => { return (item !== undefined) && (item !== null) && (!Number.isNaN(item)); }); min = Math.min(min, Math.min(...setBValid)); max = Math.max(max, Math.max(...setBValid)); @@ -147,6 +147,7 @@ export class BoxPlot { .attr('class', 'x axis') .attr('transform', 'translate(0,' + (height + margin.top + 10) + ')') .call(xAxis); + svgFigureGroup.selectAll('.x.axis .tick text').html((d) => d); // .append('text') // text label for the x axis // .attr('x', (width / 2) ) // .attr('y', 10 ) diff --git a/dist/measure_visualization/BoxPlot.js.map b/dist/measure_visualization/BoxPlot.js.map index 9fe7639..c180dbc 100644 --- a/dist/measure_visualization/BoxPlot.js.map +++ b/dist/measure_visualization/BoxPlot.js.map @@ -1 +1 @@ -{"version":3,"file":"BoxPlot.js","sourceRoot":"","sources":["../../src/measure_visualization/BoxPlot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAGzB,MAAM,OAAO,OAAO;IAEV,UAAU,CAAC,aAA6B;QAC9C,wCAAwC;QAExC,MAAM,UAAU,GAAG,EAAE,CAAC;QAEtB,IAAI,KAAK,GAAG,EAAE,CAAC;QAEf,OAAO;QACP,MAAM,WAAW,GAAG,EAAE,CAAC;QACvB,IAAI,GAAG,GAAG,QAAQ,CAAC;QACnB,IAAI,GAAG,GAAG,CAAC,QAAQ,CAAC;QACpB,IAAG,aAAa,CAAC,YAAY,IAAI,aAAa,CAAC,YAAY,CAAC,KAAK,EAAE;YACjE,KAAK,GAAG,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC;SAC1C;QACD,uEAAuE;QACvE,8CAA8C;QAC9C,IAAI;Q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C,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YAC9C,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YAC1C,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,GAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YAC7C,MAAM,IAAI,GAAG,SAAS,GAAG,UAAU,EAAE,cAAc,MAAM,UAAU,EAAE,WAAW,GAAG,EAAE,CAAC;YAEtF,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;IAEjB,CAAC;CAEF"} \ No newline at end of file diff --git a/dist/measure_visualization/GroupedBarChart.js b/dist/measure_visualization/GroupedBarChart.js index 2ee8cd0..339de85 100644 --- a/dist/measure_visualization/GroupedBarChart.js +++ b/dist/measure_visualization/GroupedBarChart.js @@ -152,7 +152,7 @@ export class GroupedBarChart { .attr('y', function (d) { return yScale(d.amount); }) .append('title') .classed('tooltip.measure', true) - .text(function (d) { + .html(function (d) { const tooltipText = `Data Column: ${d.categoryLabel}\nCategory: ${d.def.label}\nAmount: ${d.amount}`; return tooltipText; }); @@ -176,7 +176,7 @@ export class GroupedBarChart { .attr('x', 19) .attr('y', 7.5) .attr('dy', '0.32em') - .text(function (d) { return d.label; }); + .html(function (d) { return d.label; }); } } getYAxis(yScale) { diff --git a/dist/phovea.js b/dist/phovea.js index 98df3a9..b3d4cc0 100644 --- a/dist/phovea.js +++ b/dist/phovea.js @@ -5,7 +5,7 @@ export default function (registry) { registry.push(EP_TDP_CORE_LINEUP_PANEL_TAB, 'statisticalAnalysisPanel', function () { return import('./app/TouringPanel').then((m) => m.TouringPanel); }, { - cssClass: 'fa-calculator', + faIcon: 'fas fa-calculator', title: 'Statistical Analysis', order: 10, width: '45em', diff --git a/dist/phovea.js.map b/dist/phovea.js.map index b216a37..22d188f 100644 --- a/dist/phovea.js.map +++ b/dist/phovea.js.map @@ -1 +1 @@ -{"version":3,"file":"phovea.js","sourceRoot":"","sources":["../src/phovea.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,4BAA4B,EAAC,MAAM,UAAU,CAAC;AAGtD,MAAM,CAAC,OAAO,WAAW,QAAmB;IAC1C,0GAA0G;IAC1G,yBAAyB;IAEzB,QAAQ,CAAC,IAAI,CAAC,4BAA4B,EAAE,0BAA0B,EAAE;QACtE,OAAO,MAAM,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IAClE,CAAC,EAA0B;QACzB,QAAQ,EAAE,eAAe;QACzB,KAAK,EAAE,sBAAsB;QAC7B,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,IAAI;KACf,CAAC,CAAC;IACH,uBAAuB;AACzB,CAAC"} \ No newline at end of file +{"version":3,"file":"phovea.js","sourceRoot":"","sources":["../src/phovea.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,4BAA4B,EAAC,MAAM,UAAU,CAAC;AAGtD,MAAM,CAAC,OAAO,WAAW,QAAmB;IAC1C,0GAA0G;IAC1G,yBAAyB;IAEzB,QAAQ,CAAC,IAAI,CAAC,4BAA4B,EAAE,0BAA0B,EAAE;QACtE,OAAO,MAAM,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IAClE,CAAC,EAA0B;QACzB,MAAM,EAAE,mBAAmB;QAC3B,KAAK,EAAE,sBAAsB;QAC7B,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,IAAI;KACf,CAAC,CAAC;IACH,uBAAuB;AACzB,CAAC"} \ No newline at end of file diff --git a/dist/scss/base/_global.scss b/dist/scss/base/_global.scss index fd739b3..020f677 100644 --- a/dist/scss/base/_global.scss +++ b/dist/scss/base/_global.scss @@ -20,7 +20,7 @@ } .touring-highlight-hover-dark { - background-color: darken($highlight-color, 10%) !important; + background-color: shade-color($highlight-color, 10%) !important; } .touring-highlight-hover-border { @@ -29,9 +29,9 @@ .select2-dropdown { // dropdown is seperatly attached to DOM - $hover-background-color: darken( - $color: #ddd, - $amount: 20% + $hover-background-color: shade-color( + #ddd, + 20% ) !default; // #ddd is default color for selected elements $hover-color: white !default; diff --git a/dist/scss/components/_tourdino_panel.scss b/dist/scss/components/_tourdino_panel.scss index 9cf2615..1359bcf 100644 --- a/dist/scss/components/_tourdino_panel.scss +++ b/dist/scss/components/_tourdino_panel.scss @@ -17,19 +17,25 @@ div.touring { // task switcher & task input overflow: hidden; // from the bootstrap stuff we get some overflow which introduces scrollbars --> hide it - - .task-btn.active { - background-color: $active-color; + + .type { + .row { + .btn-group { + label { + height: 60%; + } + } + } } } - + .removeMiniVis-btn { float: right !important; padding: 0px 7px !important; margin: 2px 1px !important; } - label.control-label { + label.col-form-label { padding: 0px; padding-left: 15px; // bootstrap default } @@ -43,7 +49,7 @@ div.touring { $col-max-size: 15em !default; /*.select2-dropdown { // dropdown is seperatly attached to DOM - $hover-background-color: darken($color: #ddd, $amount: 20%); // #ddd is default color for selected elements + $hover-background-color: shade-color($color: #ddd, $amount: 20%); // #ddd is default color for selected elements $hover-color: white !default; .select2-results>.select2-results__options { max-height: 25vh; // 50% of browser window @@ -120,20 +126,6 @@ div.touring { stroke: $core_color_almost_black; shape-rendering: crispEdges; } - - &.rowCmp { - .details { - overflow-x: auto; - } - } - - &.colCmp { - .form-group { - > label { - padding-top: 0 !important; - } - } - } } a:hover, @@ -171,7 +163,7 @@ div.touring { table-layout: fixed; // The table and column widths are set by the widths of table and col or by the width of the first row of cells. Cells in other rows do not affect column widths. tbody.bottom-margin { - border-bottom: 0.5em solid $table-border-color; // table's border spacing applies to all rows and tbody has no margin + border-bottom: 0.5em solid transparent; // table's border spacing applies to all rows and tbody has no margin } th { @@ -258,7 +250,6 @@ div.touring { } td { - border: 1px solid $table-border-color; border-collapse: collapse; position: relative; background: white; @@ -300,7 +291,7 @@ div.touring { &:hover, &:focus { // = td.action:hover - background-color: darken( + background-color: shade-color( $highlight-color, 25% ) !important; // important because to overwrite the htmml inline color definition diff --git a/dist/tasks/ATouringTask.js b/dist/tasks/ATouringTask.js index 6e872e1..aba0d55 100644 --- a/dist/tasks/ATouringTask.js +++ b/dist/tasks/ATouringTask.js @@ -15,7 +15,7 @@ export class ATouringTask { } init(ranking, node) { this.ranking = ranking; - this.nodeObject = d3.select(node).append('div').attr('class', `task ${this.id}`); + this.nodeObject = d3.select(node).append('div').attr('class', `task ${this.id} py-3`); this.hide(); // hide initially this.initContent(); } @@ -40,12 +40,12 @@ export class ATouringTask { const updateTable = this.updateTable.bind(this); const uniqueID = UniqueIdManager.getInstance().uniqueId(); this.nodeObject.select('.form-horizontal').append('div') - .attr('class', `form-group filter-missing`) + .attr('class', `row mb-3 filter-missing`) .html(` -