@insync-stageplayer/measurements 0.4.25 → 0.5.0
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/lib/components/MeasurementsChooser.d.ts.map +1 -1
- package/lib/components/MeasurementsChooser.js +4 -4
- package/lib/components/MeasurementsChooser.js.map +1 -1
- package/lib/components/MeasurementsTable/MeasurementsTableNoldus.d.ts +69 -0
- package/lib/components/MeasurementsTable/MeasurementsTableNoldus.d.ts.map +1 -0
- package/lib/components/MeasurementsTable/MeasurementsTableNoldus.js +233 -0
- package/lib/components/MeasurementsTable/MeasurementsTableNoldus.js.map +1 -0
- package/lib/components/MeasurementsTable/index.d.ts +1 -0
- package/lib/components/MeasurementsTable/index.d.ts.map +1 -1
- package/lib/components/MeasurementsTable/index.js +1 -0
- package/lib/components/MeasurementsTable/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeasurementsChooser.d.ts","sourceRoot":"","sources":["../../src/components/MeasurementsChooser.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MeasurementsChooser.d.ts","sourceRoot":"","sources":["../../src/components/MeasurementsChooser.tsx"],"names":[],"mappings":"AASA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAiBrD,oBAAY,wBAAwB,GAAG,IAAI,CACzC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EACpC,UAAU,CACX,GAAG;IACF;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;;OAIG;IACH,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC1C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,MAAM,CAAC;IAC7B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA4NlE,CAAC"}
|
|
@@ -9,10 +9,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { Accordion, AccordionItem, AccordionItemBody, AccordionItemHeading, IndeterminateLoadingIndicator, } from "@insync-stageplayer/ui-components";
|
|
12
|
+
import { Accordion, AccordionItem, AccordionItemBody, AccordionItemHeading, IndeterminateLoadingIndicator, useTheme as useSelectedTheme, } from "@insync-stageplayer/ui-components";
|
|
13
13
|
import randomColor from "randomcolor";
|
|
14
14
|
import React, { useCallback, useState } from "react";
|
|
15
|
-
import { MeasurementsTable } from "./MeasurementsTable";
|
|
15
|
+
import { MeasurementsTable, MeasurementsTableNoldus, } from "./MeasurementsTable";
|
|
16
16
|
import { useMeasurements } from "../hooks/useMeasurements";
|
|
17
17
|
import { useDispatch, useSelector } from "react-redux";
|
|
18
18
|
import { selectLastColorIndex, selectLastColorIndexPerDataViewer, setDataScale, updateMeasurement, updateMeasurements, } from "../redux/measurements.slice";
|
|
@@ -124,6 +124,7 @@ export const MeasurementsChooser = (props) => {
|
|
|
124
124
|
*/
|
|
125
125
|
const measurementScale = useSelector((s) => selector(s).measurementScale);
|
|
126
126
|
const dataScale = useSelector((s) => selector(s).dataScale);
|
|
127
|
+
const selectedTheme = useSelectedTheme();
|
|
127
128
|
const formatFrequency = (v) => {
|
|
128
129
|
return (Number(v * Math.sqrt(measurementScale / dataScale)).toFixed(0) + " Hz");
|
|
129
130
|
};
|
|
@@ -138,7 +139,6 @@ export const MeasurementsChooser = (props) => {
|
|
|
138
139
|
const parts = k.split(/\/|\\/);
|
|
139
140
|
return parts[parts.length - 1];
|
|
140
141
|
})()),
|
|
141
|
-
React.createElement(AccordionItemBody, { style: { height: "200px" } },
|
|
142
|
-
React.createElement(MeasurementsTable, { single: single, measurements: groups[k], selected: selected, onChange: handleChange, onColorChange: handleColorChange, onYAxisPosChange: handleYAxisPosChange, formatFrequency: formatFrequency, globallyUniqueMeasurementColors: globallyUniqueMeasurementColors, dataViewerId: dataViewerId })))))));
|
|
142
|
+
React.createElement(AccordionItemBody, { style: { height: "200px" } }, selectedTheme.name === "noldus" ? (React.createElement(MeasurementsTableNoldus, { single: single, measurements: groups[k], selected: selected, onChange: handleChange, onColorChange: handleColorChange, onYAxisPosChange: handleYAxisPosChange, formatFrequency: formatFrequency, globallyUniqueMeasurementColors: globallyUniqueMeasurementColors, dataViewerId: dataViewerId })) : (React.createElement(MeasurementsTable, { single: single, measurements: groups[k], selected: selected, onChange: handleChange, onColorChange: handleColorChange, onYAxisPosChange: handleYAxisPosChange, formatFrequency: formatFrequency, globallyUniqueMeasurementColors: globallyUniqueMeasurementColors, dataViewerId: dataViewerId }))))))));
|
|
143
143
|
};
|
|
144
144
|
//# sourceMappingURL=MeasurementsChooser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeasurementsChooser.js","sourceRoot":"","sources":["../../src/components/MeasurementsChooser.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,6BAA6B,
|
|
1
|
+
{"version":3,"file":"MeasurementsChooser.js","sourceRoot":"","sources":["../../src/components/MeasurementsChooser.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,6BAA6B,EAC7B,QAAQ,IAAI,gBAAgB,GAC7B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,WAAW,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EACL,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM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,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,EACvB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,YAAY,EACtB,aAAa,EAAE,iBAAiB,EAChC,gBAAgB,EAAE,oBAAoB,EACtC,eAAe,EAAE,eAAe,EAChC,+BAA+B,EAC7B,+BAA+B,EAEjC,YAAY,EAAE,YAAY,GAC1B,CACH,CAAC,CAAC,CAAC,CACF,oBAAC,iBAAiB,IAChB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,EACvB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,YAAY,EACtB,aAAa,EAAE,iBAAiB,EAChC,gBAAgB,EAAE,oBAAoB,EACtC,eAAe,EAAE,eAAe,EAChC,+BAA+B,EAC7B,+BAA+B,EAEjC,YAAY,EAAE,YAAY,GAC1B,CACH,CACiB,CACN,CACjB,CAAC,CACQ,CACb,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A component that displays a list of measurements. Provides searching/sorting/selecting capabilities.
|
|
3
|
+
*
|
|
4
|
+
* Also allows a user to change the colors of measurements.
|
|
5
|
+
*/
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { MeasurementsTypes } from "../..";
|
|
8
|
+
import "bootstrap/dist/css/bootstrap.css";
|
|
9
|
+
declare type MeasurementsTableNoldusProps = Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
10
|
+
/**
|
|
11
|
+
* If set to `true` only a single measurement can be selected (will render a radio instead of checkboxes).
|
|
12
|
+
*/
|
|
13
|
+
single?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The measurements we want to display in the table.
|
|
16
|
+
*/
|
|
17
|
+
measurements: MeasurementsTypes.Measurement[];
|
|
18
|
+
/**
|
|
19
|
+
* The currently selected measurements (this is a controlled component).
|
|
20
|
+
*/
|
|
21
|
+
selected?: string[];
|
|
22
|
+
/**
|
|
23
|
+
* The widths of the columns in percentages.
|
|
24
|
+
*/
|
|
25
|
+
widths?: number[];
|
|
26
|
+
/**
|
|
27
|
+
* Callback when a measurement is selected.
|
|
28
|
+
* @param selected The selected measurements.
|
|
29
|
+
*/
|
|
30
|
+
onChange?: (selected: string[]) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Callback when a measurement is selected.
|
|
33
|
+
* @param selected The selected measurements.
|
|
34
|
+
*/
|
|
35
|
+
onYAxisPosChange?: (selected: string[]) => void;
|
|
36
|
+
/**
|
|
37
|
+
* A function that can be used to format the frequency displayed in the frequency column.
|
|
38
|
+
* @param v The raw frequency number.
|
|
39
|
+
*/
|
|
40
|
+
formatFrequency?: (v: number) => string;
|
|
41
|
+
/**
|
|
42
|
+
* Callback when color of meaurement is changed.
|
|
43
|
+
*/
|
|
44
|
+
onColorChange?: (id: string, color: string) => void;
|
|
45
|
+
/**
|
|
46
|
+
* Use globally unique measurement colors or not
|
|
47
|
+
*/
|
|
48
|
+
globallyUniqueMeasurementColors?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Data viewer id this measurementstable is used for
|
|
51
|
+
*/
|
|
52
|
+
dataViewerId: string;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* A component to render a list of measurements in a table. This table provides functionalities like:
|
|
56
|
+
*
|
|
57
|
+
* Please read up here https://react-table.tanstack.com/ for more information as to how this component works internally.
|
|
58
|
+
*
|
|
59
|
+
* - Sorting
|
|
60
|
+
* - Resizable columns
|
|
61
|
+
* - Changing measurement colors
|
|
62
|
+
* - Searching measurements
|
|
63
|
+
* - Selecting measurements
|
|
64
|
+
* @param props
|
|
65
|
+
* @returns
|
|
66
|
+
*/
|
|
67
|
+
export declare const MeasurementsTableNoldus: (props: MeasurementsTableNoldusProps) => JSX.Element;
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=MeasurementsTableNoldus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MeasurementsTableNoldus.d.ts","sourceRoot":"","sources":["../../../src/components/MeasurementsTable/MeasurementsTableNoldus.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAyC,MAAM,OAAO,CAAC;AAmB9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,kCAAkC,CAAC;AAG1C,aAAK,4BAA4B,GAAG,IAAI,CACtC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EACpC,UAAU,CACX,GAAG;IACF;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,YAAY,EAAE,iBAAiB,CAAC,WAAW,EAAE,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAChD;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD;;OAEG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAiHF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,UAC3B,4BAA4B,gBAiOpC,CAAC"}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A component that displays a list of measurements. Provides searching/sorting/selecting capabilities.
|
|
14
|
+
*
|
|
15
|
+
* Also allows a user to change the colors of measurements.
|
|
16
|
+
*/
|
|
17
|
+
import React, { useMemo, useCallback, useState } from "react";
|
|
18
|
+
import { useTable, useFilters, useFlexLayout, useResizeColumns, useSortBy, } from "react-table";
|
|
19
|
+
import { useTheme as useSelectedTheme } from "@insync-stageplayer/ui-components";
|
|
20
|
+
import styled from "styled-components";
|
|
21
|
+
import { SelectedContext } from "./SelectedContext";
|
|
22
|
+
import { CheckboxCell } from "./CheckboxCell";
|
|
23
|
+
import * as filters from "./filters";
|
|
24
|
+
import { TextColumnFilter } from "./TextColumnFilter";
|
|
25
|
+
import { ColumnResizer } from "./ColumnResizer";
|
|
26
|
+
import { useScrollbarWidth } from "react-use/lib/useScrollbarWidth";
|
|
27
|
+
import { ColumnSorting } from "./ColumnSorting";
|
|
28
|
+
import "bootstrap/dist/css/bootstrap.css";
|
|
29
|
+
/**
|
|
30
|
+
* Toggles a value inside an array. If a value is present in the array, it will be removed, if not
|
|
31
|
+
* it will be added.
|
|
32
|
+
* @param arr The array to toggle the value in.
|
|
33
|
+
* @param v The value being toggled.
|
|
34
|
+
* @returns
|
|
35
|
+
*/
|
|
36
|
+
const toggle = (arr, v) => {
|
|
37
|
+
if (arr.indexOf(v) === -1) {
|
|
38
|
+
return [...arr, v];
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
return arr.filter((cv) => cv !== v);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const Table = styled.div `
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
`;
|
|
48
|
+
const TableHead = styled.div `
|
|
49
|
+
border-top: 1px solid ${(props) => props.theme.colors.accent};
|
|
50
|
+
`;
|
|
51
|
+
const Tr = styled.div `
|
|
52
|
+
line-height: 1.5em;
|
|
53
|
+
&:hover {
|
|
54
|
+
background-color: ${(props) => !props.selected ? props.theme.colors.action.selected : undefined};
|
|
55
|
+
}
|
|
56
|
+
${(props) => props.selected
|
|
57
|
+
? `background-color: ${props.theme.colors.action.selected}`
|
|
58
|
+
: undefined};
|
|
59
|
+
`;
|
|
60
|
+
const TableBody = styled.div `
|
|
61
|
+
max-height: 100%;
|
|
62
|
+
`;
|
|
63
|
+
const TableBodyContainer = styled.div `
|
|
64
|
+
flex: 1;
|
|
65
|
+
scrollbar-width: thin;
|
|
66
|
+
`;
|
|
67
|
+
const Cell = styled.div `
|
|
68
|
+
border: 1px solid ${(props) => props.theme.colors.accent};
|
|
69
|
+
`;
|
|
70
|
+
const Td = styled(Cell) `
|
|
71
|
+
padding: 0 0.5em 0 0.5em;
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
`;
|
|
75
|
+
const Truncated = styled.div `
|
|
76
|
+
display: block;
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
text-overflow: ellipsis;
|
|
80
|
+
`;
|
|
81
|
+
const StyledTextColumnFilter = styled(TextColumnFilter) `
|
|
82
|
+
width: 100%;
|
|
83
|
+
`;
|
|
84
|
+
const Th = styled(Cell) `
|
|
85
|
+
padding: 0 0.5em 0.5em 0.5em;
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
border: 1px solid ${(props) => props.theme.colors.accent};
|
|
89
|
+
&:last-child {
|
|
90
|
+
border-right: 2px solid ${(props) => props.theme.colors.accent};
|
|
91
|
+
}
|
|
92
|
+
`;
|
|
93
|
+
const ColumnHeader = styled.div `
|
|
94
|
+
user-select: none;
|
|
95
|
+
`;
|
|
96
|
+
/**
|
|
97
|
+
* Definitions for the filters, please check https://react-table.tanstack.com/docs/api/useFilters#table-options
|
|
98
|
+
*/
|
|
99
|
+
const filterTypes = {
|
|
100
|
+
text: filters.textFilter,
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* The initial state of the table.
|
|
104
|
+
*/
|
|
105
|
+
const initialState = {
|
|
106
|
+
// Sorting by the measurement name.
|
|
107
|
+
sortBy: [{ id: "stageplayer_name_filter", desc: false }],
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Convenience function for quickly creating a non-selectable column definition for react table.
|
|
111
|
+
* @param options
|
|
112
|
+
* @returns
|
|
113
|
+
*/
|
|
114
|
+
const createColumn = (options) => (Object.assign({ Filter: StyledTextColumnFilter, selectable: true }, options));
|
|
115
|
+
const defaultOnChange = () => { };
|
|
116
|
+
/**
|
|
117
|
+
* A component to render a list of measurements in a table. This table provides functionalities like:
|
|
118
|
+
*
|
|
119
|
+
* Please read up here https://react-table.tanstack.com/ for more information as to how this component works internally.
|
|
120
|
+
*
|
|
121
|
+
* - Sorting
|
|
122
|
+
* - Resizable columns
|
|
123
|
+
* - Changing measurement colors
|
|
124
|
+
* - Searching measurements
|
|
125
|
+
* - Selecting measurements
|
|
126
|
+
* @param props
|
|
127
|
+
* @returns
|
|
128
|
+
*/
|
|
129
|
+
export const MeasurementsTableNoldus = (props) => {
|
|
130
|
+
const { selected = [], measurements, onChange = defaultOnChange, onColorChange, onYAxisPosChange, widths, single, formatFrequency, globallyUniqueMeasurementColors, dataViewerId } = props, rest = __rest(props, ["selected", "measurements", "onChange", "onColorChange", "onYAxisPosChange", "widths", "single", "formatFrequency", "globallyUniqueMeasurementColors", "dataViewerId"]);
|
|
131
|
+
const [showColorPicker, setShowColorPicker] = useState();
|
|
132
|
+
let selectedDataScaleValue = 0;
|
|
133
|
+
// This doesn't work correctly, the column separators between the top row and rest don't align nicely.
|
|
134
|
+
const scrollbarWidth = useScrollbarWidth();
|
|
135
|
+
const widthProps = useCallback((index, defaultVal = undefined) => {
|
|
136
|
+
return widths && widths[index] !== -1
|
|
137
|
+
? { width: widths[index], minWidth: widths[index] }
|
|
138
|
+
: defaultVal
|
|
139
|
+
? { width: defaultVal, minWidth: defaultVal }
|
|
140
|
+
: {};
|
|
141
|
+
}, [widths]);
|
|
142
|
+
const columns = useMemo(() => [
|
|
143
|
+
createColumn(Object.assign({ Header: React.createElement("div", { "aria-label": "Active" }), accessor: "id", Cell: (data) => {
|
|
144
|
+
return (React.createElement(CheckboxCell, { id: data.value, rowToDisable: selected.length !== 0 &&
|
|
145
|
+
data.row.original.dataScale !== selectedDataScaleValue }));
|
|
146
|
+
}, disableFilters: true, disableResizing: true, disableSortBy: true, maxWidth: 30 }, widthProps(0, 35))),
|
|
147
|
+
createColumn(Object.assign({ id: "stageplayer_name_filter", Header: "Name", accessor: "name" }, widthProps(1))),
|
|
148
|
+
createColumn(Object.assign({ Header: "Unit", accessor: "unit" }, widthProps(2, 35))),
|
|
149
|
+
createColumn(Object.assign({ Header: "Min", accessor: "min" }, widthProps(3, 50))),
|
|
150
|
+
createColumn(Object.assign({ Header: "Max", accessor: "max" }, widthProps(4, 50))),
|
|
151
|
+
createColumn(Object.assign({ Header: "Sample Rate", id: "sampleRate", accessor: "frequency", Cell: (data) => {
|
|
152
|
+
return formatFrequency ? formatFrequency(data.value) : data.value;
|
|
153
|
+
}, readable: "sample rate", disableFilters: true }, widthProps(5, 100))),
|
|
154
|
+
], [
|
|
155
|
+
onColorChange,
|
|
156
|
+
widthProps,
|
|
157
|
+
showColorPicker,
|
|
158
|
+
formatFrequency,
|
|
159
|
+
globallyUniqueMeasurementColors,
|
|
160
|
+
dataViewerId,
|
|
161
|
+
selected.length,
|
|
162
|
+
selectedDataScaleValue,
|
|
163
|
+
]);
|
|
164
|
+
const selectedTheme = useSelectedTheme();
|
|
165
|
+
const { getTableProps, getTableBodyProps, headerGroups, rows, prepareRow } = useTable({
|
|
166
|
+
columns,
|
|
167
|
+
data: measurements,
|
|
168
|
+
filterTypes,
|
|
169
|
+
initialState,
|
|
170
|
+
disableSortRemove: true,
|
|
171
|
+
autoResetSortBy: false,
|
|
172
|
+
autoResetFilters: false,
|
|
173
|
+
}, useFilters, useFlexLayout, useResizeColumns, useSortBy);
|
|
174
|
+
return (
|
|
175
|
+
// apply the table props
|
|
176
|
+
React.createElement(SelectedContext.Provider, { value: { single, selected, onChange } },
|
|
177
|
+
React.createElement(Table, Object.assign({}, getTableProps(), rest),
|
|
178
|
+
React.createElement(TableHead, { scrollbarWidth: scrollbarWidth }, headerGroups.map((headerGroup) => (React.createElement("div", Object.assign({}, headerGroup.getHeaderGroupProps()), headerGroup.headers.map((column) => (React.createElement(Th, Object.assign({}, column.getHeaderProps()),
|
|
179
|
+
React.createElement(ColumnHeader, Object.assign({}, column.getSortByToggleProps(), { role: "button" }),
|
|
180
|
+
column.render("Header"),
|
|
181
|
+
React.createElement(ColumnSorting, { column: column })),
|
|
182
|
+
column.canFilter && React.createElement("div", null, column.render("Filter")),
|
|
183
|
+
column.getResizerProps ? (React.createElement(ColumnResizer, Object.assign({}, column.getResizerProps(), { resizing: column.isResizing }))) : null))))))),
|
|
184
|
+
React.createElement(TableBodyContainer, null,
|
|
185
|
+
React.createElement(TableBody, Object.assign({}, getTableBodyProps()), rows.map((row, i) => {
|
|
186
|
+
prepareRow(row);
|
|
187
|
+
if (selected.indexOf(row.values.id) !== -1)
|
|
188
|
+
selectedDataScaleValue = row.original.dataScale;
|
|
189
|
+
return (React.createElement(Tr, Object.assign({}, row.getRowProps(), { tabIndex: 0, selected: selected.indexOf(row.values.id) !== -1, onKeyDown: (e) => {
|
|
190
|
+
if (e.key === "Enter" &&
|
|
191
|
+
(selected.length === 0 ||
|
|
192
|
+
row.original.dataScale === selectedDataScaleValue)) {
|
|
193
|
+
onChange && onChange(toggle(selected, row.values.id));
|
|
194
|
+
}
|
|
195
|
+
else if (e.key === "ArrowDown") {
|
|
196
|
+
const target = e.target;
|
|
197
|
+
if (target instanceof HTMLElement &&
|
|
198
|
+
target.nextSibling instanceof HTMLElement) {
|
|
199
|
+
e.preventDefault();
|
|
200
|
+
e.stopPropagation();
|
|
201
|
+
target.nextSibling.focus();
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
else if (e.key === "ArrowUp") {
|
|
205
|
+
const target = e.target;
|
|
206
|
+
if (target instanceof HTMLElement &&
|
|
207
|
+
target.previousSibling instanceof HTMLElement) {
|
|
208
|
+
e.preventDefault();
|
|
209
|
+
e.stopPropagation();
|
|
210
|
+
target.previousSibling.focus();
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
} }), row.cells.map((cell) => {
|
|
214
|
+
const clickHandler = () => {
|
|
215
|
+
if (selected.length === 0 ||
|
|
216
|
+
cell.row.original.dataScale === selectedDataScaleValue) {
|
|
217
|
+
cell.column.selectable && onChange
|
|
218
|
+
? onChange(single
|
|
219
|
+
? [cell.row.original.id]
|
|
220
|
+
: toggle(selected, cell.row.original.id))
|
|
221
|
+
: onYAxisPosChange &&
|
|
222
|
+
onYAxisPosChange(single
|
|
223
|
+
? [cell.row.original.id]
|
|
224
|
+
: toggle(selected, cell.row.original.id));
|
|
225
|
+
selectedDataScaleValue = cell.row.original.dataScale;
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
return (React.createElement(Td, Object.assign({}, cell.getCellProps(), { onClick: clickHandler }),
|
|
229
|
+
React.createElement(Truncated, { title: cell.value }, cell.render("Cell"))));
|
|
230
|
+
})));
|
|
231
|
+
}))))));
|
|
232
|
+
};
|
|
233
|
+
//# sourceMappingURL=MeasurementsTableNoldus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MeasurementsTableNoldus.js","sourceRoot":"","sources":["../../../src/components/MeasurementsTable/MeasurementsTableNoldus.tsx"],"names":[],"mappings":";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,sBAAsB,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC;6BACtD;wBACH,CAAC,CAAC;wBACF,OAAO,CACL,oBAAC,EAAE,oBAAK,IAAI,CAAC,YAAY,EAAE,IAAE,OAAO,EAAE,YAAY;4BAChD,oBAAC,SAAS,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,IACzB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CACV,CACT,CACN,CAAC;oBACJ,CAAC,CAAC,CACC,CACN,CAAC;gBACJ,CAAC,CAAC,CACQ,CACO,CACf,CACiB,CAC5B,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MeasurementsTable/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MeasurementsTable/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/MeasurementsTable/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/MeasurementsTable/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insync-stageplayer/measurements",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Module for measurement data in stageplayer",
|
|
5
5
|
"author": "David Ammeraal <david.ammeraal@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/Noterik/insync-stageplayer#readme",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"storybook": "start-storybook -p 6006"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@insync-stageplayer/common": "^0.
|
|
33
|
-
"@insync-stageplayer/time": "^0.
|
|
34
|
-
"@insync-stageplayer/ui-components": "^0.
|
|
32
|
+
"@insync-stageplayer/common": "^0.5.0",
|
|
33
|
+
"@insync-stageplayer/time": "^0.5.0",
|
|
34
|
+
"@insync-stageplayer/ui-components": "^0.5.0",
|
|
35
35
|
"@reduxjs/toolkit": "^1.5.1",
|
|
36
36
|
"@types/randomcolor": "^0.5.5",
|
|
37
37
|
"insync-date": "^1.1.2",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"optionalDependencies": {
|
|
54
54
|
"sbfreader": "^1.0.0-alpha.5"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "4937399397fd2a93a2ea3671c7e15b8827b1ae22"
|
|
57
57
|
}
|