@insync-stageplayer/measurements 0.5.37 → 0.6.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.
Files changed (113) hide show
  1. package/lib/AsyncSubject.d.ts +23 -23
  2. package/lib/AsyncSubject.js +64 -64
  3. package/lib/client/MeasurementDataClient.d.ts +135 -130
  4. package/lib/client/MeasurementDataClient.d.ts.map +1 -1
  5. package/lib/client/MeasurementDataClient.js +99 -99
  6. package/lib/client/MeasurementDataClient.js.map +1 -1
  7. package/lib/client/OnlineMeasurementDataClient.d.ts +44 -44
  8. package/lib/client/OnlineMeasurementDataClient.d.ts.map +1 -1
  9. package/lib/client/OnlineMeasurementDataClient.js +211 -211
  10. package/lib/client/OnlineMeasurementDataClient.js.map +1 -1
  11. package/lib/client/debug.d.ts +1 -1
  12. package/lib/client/debug.js +4 -4
  13. package/lib/client/index.d.ts +3 -3
  14. package/lib/client/index.js +3 -3
  15. package/lib/client/offline/OfflineMeasurementDataClient.d.ts +16 -16
  16. package/lib/client/offline/OfflineMeasurementDataClient.js +47 -47
  17. package/lib/client/offline/offline.d.ts +16 -16
  18. package/lib/client/offline/offline.js +82 -82
  19. package/lib/client/sbf.d.ts +35 -35
  20. package/lib/client/sbf.js +88 -88
  21. package/lib/client/signalviewer/SignalViewerDataClient.d.ts +37 -37
  22. package/lib/client/signalviewer/SignalViewerDataClient.d.ts.map +1 -1
  23. package/lib/client/signalviewer/SignalViewerDataClient.js +163 -164
  24. package/lib/client/signalviewer/SignalViewerDataClient.js.map +1 -1
  25. package/lib/client/signalviewer/SignalViewerDataClient.worker.d.ts +79 -73
  26. package/lib/client/signalviewer/SignalViewerDataClient.worker.d.ts.map +1 -1
  27. package/lib/client/signalviewer/SignalViewerDataClient.worker.js +342 -211
  28. package/lib/client/signalviewer/SignalViewerDataClient.worker.js.map +1 -1
  29. package/lib/components/Icon/CloseIcon.d.ts +6 -6
  30. package/lib/components/Icon/CloseIcon.js +24 -24
  31. package/lib/components/Icon/Icon.test.d.ts +1 -1
  32. package/lib/components/Icon/Icon.test.js +11 -11
  33. package/lib/components/MeasurementsChooser.d.ts +38 -38
  34. package/lib/components/MeasurementsChooser.d.ts.map +1 -1
  35. package/lib/components/MeasurementsChooser.js +178 -181
  36. package/lib/components/MeasurementsChooser.js.map +1 -1
  37. package/lib/components/MeasurementsModuleProvider.d.ts +34 -34
  38. package/lib/components/MeasurementsModuleProvider.d.ts.map +1 -1
  39. package/lib/components/MeasurementsModuleProvider.js +100 -79
  40. package/lib/components/MeasurementsModuleProvider.js.map +1 -1
  41. package/lib/components/MeasurementsTable/CheckboxCell.d.ts +35 -35
  42. package/lib/components/MeasurementsTable/CheckboxCell.js +28 -28
  43. package/lib/components/MeasurementsTable/ColorCell.d.ts +29 -29
  44. package/lib/components/MeasurementsTable/ColorCell.d.ts.map +1 -1
  45. package/lib/components/MeasurementsTable/ColorCell.js +58 -58
  46. package/lib/components/MeasurementsTable/ColorPicker.d.ts +6 -3
  47. package/lib/components/MeasurementsTable/ColorPicker.d.ts.map +1 -1
  48. package/lib/components/MeasurementsTable/ColorPicker.js +10 -10
  49. package/lib/components/MeasurementsTable/ColumnResizer.d.ts +4 -4
  50. package/lib/components/MeasurementsTable/ColumnResizer.js +5 -5
  51. package/lib/components/MeasurementsTable/ColumnSorting.d.ts +13 -13
  52. package/lib/components/MeasurementsTable/ColumnSorting.d.ts.map +1 -1
  53. package/lib/components/MeasurementsTable/ColumnSorting.js +10 -10
  54. package/lib/components/MeasurementsTable/MeasurementsTable.d.ts +72 -72
  55. package/lib/components/MeasurementsTable/MeasurementsTable.d.ts.map +1 -1
  56. package/lib/components/MeasurementsTable/MeasurementsTable.js +229 -217
  57. package/lib/components/MeasurementsTable/MeasurementsTable.js.map +1 -1
  58. package/lib/components/MeasurementsTable/MeasurementsTable.test.d.ts +1 -1
  59. package/lib/components/MeasurementsTable/MeasurementsTable.test.js +102 -102
  60. package/lib/components/MeasurementsTable/MeasurementsTableNoldus.d.ts +72 -72
  61. package/lib/components/MeasurementsTable/MeasurementsTableNoldus.d.ts.map +1 -1
  62. package/lib/components/MeasurementsTable/MeasurementsTableNoldus.js +193 -193
  63. package/lib/components/MeasurementsTable/SelectedContext.d.ts +10 -10
  64. package/lib/components/MeasurementsTable/SelectedContext.js +10 -10
  65. package/lib/components/MeasurementsTable/TextColumnFilter.d.ts +8 -8
  66. package/lib/components/MeasurementsTable/TextColumnFilter.d.ts.map +1 -1
  67. package/lib/components/MeasurementsTable/TextColumnFilter.js +15 -15
  68. package/lib/components/MeasurementsTable/filters.d.ts +3 -3
  69. package/lib/components/MeasurementsTable/filters.js +9 -9
  70. package/lib/components/MeasurementsTable/index.d.ts +2 -2
  71. package/lib/components/MeasurementsTable/index.js +2 -2
  72. package/lib/components/ModalMeasurementChooser.d.ts +19 -19
  73. package/lib/components/ModalMeasurementChooser.js +35 -35
  74. package/lib/conversion/UnitConversion.d.ts +13 -0
  75. package/lib/conversion/UnitConversion.d.ts.map +1 -0
  76. package/lib/conversion/UnitConversion.js +266 -0
  77. package/lib/conversion/UnitConversion.js.map +1 -0
  78. package/lib/hooks/useMarkerData.d.ts +6 -4
  79. package/lib/hooks/useMarkerData.d.ts.map +1 -1
  80. package/lib/hooks/useMarkerData.js +93 -63
  81. package/lib/hooks/useMarkerData.js.map +1 -1
  82. package/lib/hooks/useMeasurement.d.ts +41 -17
  83. package/lib/hooks/useMeasurement.d.ts.map +1 -1
  84. package/lib/hooks/useMeasurement.js +41 -41
  85. package/lib/hooks/useMeasurements.d.ts +11 -11
  86. package/lib/hooks/useMeasurements.js +22 -22
  87. package/lib/hooks/useMeasurementsModule.d.ts +20 -20
  88. package/lib/hooks/useMeasurementsModule.js +12 -12
  89. package/lib/hooks/useOverlayMeasurementData.d.ts +1 -1
  90. package/lib/hooks/useOverlayMeasurementData.js +23 -23
  91. package/lib/hooks/useTimedMeasurementData.d.ts +26 -26
  92. package/lib/hooks/useTimedMeasurementData.d.ts.map +1 -1
  93. package/lib/hooks/useTimedMeasurementData.js +125 -125
  94. package/lib/hooks/useTimedMeasurementData.js.map +1 -1
  95. package/lib/hooks/useWindowedMeasurementData.d.ts +25 -25
  96. package/lib/hooks/useWindowedMeasurementData.d.ts.map +1 -1
  97. package/lib/hooks/useWindowedMeasurementData.js +120 -120
  98. package/lib/hooks/useWindowedMeasurementData.js.map +1 -1
  99. package/lib/index.d.ts +15 -14
  100. package/lib/index.d.ts.map +1 -1
  101. package/lib/index.js +15 -14
  102. package/lib/index.js.map +1 -1
  103. package/lib/redux/measurements.slice.d.ts +75 -122
  104. package/lib/redux/measurements.slice.d.ts.map +1 -1
  105. package/lib/redux/measurements.slice.js +90 -89
  106. package/lib/redux/measurements.slice.js.map +1 -1
  107. package/lib/redux/reducer.d.ts +3 -10
  108. package/lib/redux/reducer.d.ts.map +1 -1
  109. package/lib/redux/reducer.js +2 -2
  110. package/lib/redux/reducer.js.map +1 -1
  111. package/lib/types.d.ts +93 -93
  112. package/lib/types.js +51 -51
  113. package/package.json +7 -10
@@ -1,5 +1,5 @@
1
- import { TableResizerProps } from "react-table";
2
- export declare const ColumnResizer: import("styled-components").StyledComponent<"div", import("@insync-stageplayer/ui-components").Theme, TableResizerProps & {
3
- resizing: boolean;
4
- }, never>;
1
+ import { TableResizerProps } from "react-table";
2
+ export declare const ColumnResizer: import("styled-components").StyledComponent<"div", import("@insync-stageplayer/ui-components").Theme, TableResizerProps & {
3
+ resizing: boolean;
4
+ }, never>;
5
5
  //# sourceMappingURL=ColumnResizer.d.ts.map
@@ -1,7 +1,7 @@
1
- /**
2
- * A styled TableResizer handle.
3
- */
4
- import { styled } from "@insync-stageplayer/ui-components";
1
+ /**
2
+ * A styled TableResizer handle.
3
+ */
4
+ import { styled } from "@insync-stageplayer/ui-components";
5
5
  export const ColumnResizer = styled.div `
6
6
  cursor: col-resize;
7
7
  display: inline-block;
@@ -13,5 +13,5 @@ export const ColumnResizer = styled.div `
13
13
  transform: translateX(50%);
14
14
  z-index: 1;
15
15
  touch-action: none;
16
- `;
16
+ `;
17
17
  //# sourceMappingURL=ColumnResizer.js.map
@@ -1,14 +1,14 @@
1
- /// <reference types="react" />
2
- import { HeaderGroup } from "react-table";
3
- import { MeasurementsTypes } from "../../types";
4
- declare type ColumnSortingProps = {
5
- column: HeaderGroup<MeasurementsTypes.Measurement>;
6
- };
7
- /**
8
- * Displays the current column sorting state as an arrow.
9
- * @param props
10
- * @returns
11
- */
12
- export declare const ColumnSorting: (props: ColumnSortingProps) => JSX.Element | null;
13
- export {};
1
+ import React from "react";
2
+ import { HeaderGroup } from "react-table";
3
+ import { MeasurementsTypes } from "../../types";
4
+ declare type ColumnSortingProps = {
5
+ column: HeaderGroup<MeasurementsTypes.Measurement>;
6
+ };
7
+ /**
8
+ * Displays the current column sorting state as an arrow.
9
+ * @param props
10
+ * @returns
11
+ */
12
+ export declare const ColumnSorting: (props: ColumnSortingProps) => React.JSX.Element | null;
13
+ export {};
14
14
  //# sourceMappingURL=ColumnSorting.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnSorting.d.ts","sourceRoot":"","sources":["../../../src/components/MeasurementsTable/ColumnSorting.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,aAAK,kBAAkB,GAAG;IACxB,MAAM,EAAE,WAAW,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;CACpD,CAAC;AAOF;;;;GAIG;AACH,eAAO,MAAM,aAAa,UAAW,kBAAkB,uBAGtD,CAAC"}
1
+ {"version":3,"file":"ColumnSorting.d.ts","sourceRoot":"","sources":["../../../src/components/MeasurementsTable/ColumnSorting.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,aAAK,kBAAkB,GAAG;IACxB,MAAM,EAAE,WAAW,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;CACpD,CAAC;AAOF;;;;GAIG;AACH,eAAO,MAAM,aAAa,UAAW,kBAAkB,6BAGtD,CAAC"}
@@ -1,11 +1,11 @@
1
- import React from "react";
2
- /**
3
- * Displays the current column sorting state as an arrow.
4
- * @param props
5
- * @returns
6
- */
7
- export const ColumnSorting = (props) => {
8
- const { isSorted, isSortedDesc } = props.column;
9
- return isSorted ? React.createElement("span", null, isSortedDesc ? ` ↓` : ` ↑`) : null;
10
- };
1
+ import React from "react";
2
+ /**
3
+ * Displays the current column sorting state as an arrow.
4
+ * @param props
5
+ * @returns
6
+ */
7
+ export const ColumnSorting = (props) => {
8
+ const { isSorted, isSortedDesc } = props.column;
9
+ return isSorted ? React.createElement("span", null, isSortedDesc ? ` ↓` : ` ↑`) : null;
10
+ };
11
11
  //# sourceMappingURL=ColumnSorting.js.map
@@ -1,73 +1,73 @@
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 MeasurementsTableProps = 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 currently selected measurements (this is a controlled component).
24
- */
25
- yAxisLeftSelected?: string[];
26
- /**
27
- * The widths of the columns in percentages.
28
- */
29
- widths?: number[];
30
- /**
31
- * Callback when a measurement is selected.
32
- * @param selected The selected measurements.
33
- */
34
- onChange?: (selected: string[]) => void;
35
- /**
36
- * Callback when a measurement is selected.
37
- * @param selected The selected measurements.
38
- */
39
- onYAxisPosChange?: (selected: string[]) => void;
40
- /**
41
- * A function that can be used to format the frequency displayed in the frequency column.
42
- * @param v The raw frequency number.
43
- */
44
- formatFrequency?: (v: number) => string;
45
- /**
46
- * Callback when color of meaurement is changed.
47
- */
48
- onColorChange?: (id: string, color: string) => void;
49
- /**
50
- * Use globally unique measurement colors or not
51
- */
52
- globallyUniqueMeasurementColors?: boolean;
53
- /**
54
- * Data viewer id this measurementstable is used for
55
- */
56
- dataViewerId: string;
57
- };
58
- /**
59
- * A component to render a list of measurements in a table. This table provides functionalities like:
60
- *
61
- * Please read up here https://react-table.tanstack.com/ for more information as to how this component works internally.
62
- *
63
- * - Sorting
64
- * - Resizable columns
65
- * - Changing measurement colors
66
- * - Searching measurements
67
- * - Selecting measurements
68
- * @param props
69
- * @returns
70
- */
71
- export declare const MeasurementsTable: (props: MeasurementsTableProps) => JSX.Element;
72
- export {};
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 MeasurementsTableProps = 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 currently selected measurements (this is a controlled component).
24
+ */
25
+ yAxisLeftSelected?: string[];
26
+ /**
27
+ * The widths of the columns in percentages.
28
+ */
29
+ widths?: number[];
30
+ /**
31
+ * Callback when a measurement is selected.
32
+ * @param selected The selected measurements.
33
+ */
34
+ onChange?: (selected: string[]) => void;
35
+ /**
36
+ * Callback when a measurement is selected.
37
+ * @param selected The selected measurements.
38
+ */
39
+ onYAxisPosChange?: (selected: string[]) => void;
40
+ /**
41
+ * A function that can be used to format the frequency displayed in the frequency column.
42
+ * @param v The raw frequency number.
43
+ */
44
+ formatFrequency?: (v: number) => string;
45
+ /**
46
+ * Callback when color of meaurement is changed.
47
+ */
48
+ onColorChange?: (id: string, color: string) => void;
49
+ /**
50
+ * Use globally unique measurement colors or not
51
+ */
52
+ globallyUniqueMeasurementColors?: boolean;
53
+ /**
54
+ * Data viewer id this measurementstable is used for
55
+ */
56
+ dataViewerId: string;
57
+ };
58
+ /**
59
+ * A component to render a list of measurements in a table. This table provides functionalities like:
60
+ *
61
+ * Please read up here https://react-table.tanstack.com/ for more information as to how this component works internally.
62
+ *
63
+ * - Sorting
64
+ * - Resizable columns
65
+ * - Changing measurement colors
66
+ * - Searching measurements
67
+ * - Selecting measurements
68
+ * @param props
69
+ * @returns
70
+ */
71
+ export declare const MeasurementsTable: (props: MeasurementsTableProps) => React.JSX.Element;
72
+ export {};
73
73
  //# sourceMappingURL=MeasurementsTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MeasurementsTable.d.ts","sourceRoot":"","sources":["../../../src/components/MeasurementsTable/MeasurementsTable.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAyC,MAAM,OAAO,CAAC;AAkB9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,kCAAkC,CAAC;AAE1C,aAAK,sBAAsB,GAAG,IAAI,CAChC,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,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B;;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;AAmHF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,gBA+Q9D,CAAC"}
1
+ {"version":3,"file":"MeasurementsTable.d.ts","sourceRoot":"","sources":["../../../src/components/MeasurementsTable/MeasurementsTable.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAyC,MAAM,OAAO,CAAC;AAkB9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,kCAAkC,CAAC;AAE1C,aAAK,sBAAsB,GAAG,IAAI,CAChC,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,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B;;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;AA4HF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,sBAqR9D,CAAC"}