tsichart-core 1.0.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 (126) hide show
  1. package/LICENSE +22 -0
  2. package/README.MD +189 -0
  3. package/dist/AggregateExpression.d.ts +13 -0
  4. package/dist/AggregateExpression.js +70 -0
  5. package/dist/AvailabilityChart-i_efwXCX.js +488 -0
  6. package/dist/AvailabilityChart.d.ts +59 -0
  7. package/dist/AvailabilityChart.js +26 -0
  8. package/dist/ChartComponent-DTcc6aED.d.ts +80 -0
  9. package/dist/ChartComponent-DnKLTxWe.js +302 -0
  10. package/dist/ChartComponentData-D5wuQmmZ.d.ts +47 -0
  11. package/dist/ChartDataOptions-DBS28b1-.d.ts +38 -0
  12. package/dist/ChartDataOptions-DRd8NHra.js +49 -0
  13. package/dist/ChartVisualizationComponent-CG7e5xlc.js +23 -0
  14. package/dist/ChartVisualizationComponent-DBjiqR1n.d.ts +8 -0
  15. package/dist/ColorPicker-CH__K8xm.js +120 -0
  16. package/dist/ColorPicker.d.ts +28 -0
  17. package/dist/ColorPicker.js +6 -0
  18. package/dist/Component-CofgyEw0.js +401 -0
  19. package/dist/Component-Rp30sSAW.d.ts +226 -0
  20. package/dist/ContextMenu-DABSkTA2.js +197 -0
  21. package/dist/DateTimeButton-CMcCxc8x.d.ts +16 -0
  22. package/dist/DateTimeButton-Ca1487GR.js +38 -0
  23. package/dist/DateTimeButtonRange-DpgfhHQt.js +71 -0
  24. package/dist/DateTimeButtonRange.d.ts +19 -0
  25. package/dist/DateTimeButtonRange.js +15 -0
  26. package/dist/DateTimeButtonSingle-C6cTx5VO.js +48 -0
  27. package/dist/DateTimeButtonSingle.d.ts +17 -0
  28. package/dist/DateTimeButtonSingle.js +14 -0
  29. package/dist/DateTimePicker-BH6qiVfQ.js +532 -0
  30. package/dist/DateTimePicker.d.ts +69 -0
  31. package/dist/DateTimePicker.js +13 -0
  32. package/dist/EllipsisMenu-30FNqoIv.js +116 -0
  33. package/dist/EllipsisMenu.d.ts +20 -0
  34. package/dist/EllipsisMenu.js +6 -0
  35. package/dist/Enums-ChUuTtHV.d.ts +12 -0
  36. package/dist/EventsTable-a0XLbsMF.js +553 -0
  37. package/dist/EventsTable.d.ts +34 -0
  38. package/dist/EventsTable.js +10 -0
  39. package/dist/GeoProcessGraphic-AVAzyF7k.js +145 -0
  40. package/dist/GeoProcessGraphic.d.ts +34 -0
  41. package/dist/GeoProcessGraphic.js +7 -0
  42. package/dist/Grid-DfFAkeeV.js +874 -0
  43. package/dist/Grid.d.ts +43 -0
  44. package/dist/Grid.js +6 -0
  45. package/dist/GroupedBarChart-BspwM8r2.js +579 -0
  46. package/dist/GroupedBarChart.d.ts +22 -0
  47. package/dist/GroupedBarChart.js +17 -0
  48. package/dist/GroupedBarChartData-BRCyDxbA.js +121 -0
  49. package/dist/GroupedBarChartData-C0YQydrP.d.ts +20 -0
  50. package/dist/Heatmap-D8ET8Ue8.js +524 -0
  51. package/dist/Heatmap.d.ts +31 -0
  52. package/dist/Heatmap.js +14 -0
  53. package/dist/Hierarchy-QkWLHkxo.js +260 -0
  54. package/dist/Hierarchy.d.ts +39 -0
  55. package/dist/Hierarchy.js +6 -0
  56. package/dist/HierarchyNavigation-CR6YUilh.js +336 -0
  57. package/dist/HierarchyNavigation.d.ts +34 -0
  58. package/dist/HierarchyNavigation.js +6 -0
  59. package/dist/HistoryPlayback-BmA-54lT.d.ts +68 -0
  60. package/dist/HistoryPlayback-SjeQbAPq.js +175 -0
  61. package/dist/Interfaces-BKRQ685G.d.ts +6 -0
  62. package/dist/Legend-DlSXQXHF.js +497 -0
  63. package/dist/LineChart-CExEyjZa.js +3181 -0
  64. package/dist/LineChart.d.ts +163 -0
  65. package/dist/LineChart.js +18 -0
  66. package/dist/ModelAutocomplete-TRD16egq.js +100 -0
  67. package/dist/ModelAutocomplete.d.ts +12 -0
  68. package/dist/ModelAutocomplete.js +7 -0
  69. package/dist/ModelSearch-WEa7Ud20.js +189 -0
  70. package/dist/ModelSearch.d.ts +23 -0
  71. package/dist/ModelSearch.js +9 -0
  72. package/dist/PieChart-B1ZXk13Q.js +258 -0
  73. package/dist/PieChart.d.ts +26 -0
  74. package/dist/PieChart.js +17 -0
  75. package/dist/PlaybackControls-Dwt6dif9.js +195 -0
  76. package/dist/PlaybackControls.d.ts +39 -0
  77. package/dist/PlaybackControls.js +13 -0
  78. package/dist/ProcessGraphic-CixT-zZl.js +154 -0
  79. package/dist/ProcessGraphic.d.ts +31 -0
  80. package/dist/ProcessGraphic.js +7 -0
  81. package/dist/README.MD +189 -0
  82. package/dist/ScatterPlot-DrPoHNDJ.js +924 -0
  83. package/dist/ScatterPlot.d.ts +115 -0
  84. package/dist/ScatterPlot.js +17 -0
  85. package/dist/SingleDateTimePicker-7anflEq8.js +213 -0
  86. package/dist/SingleDateTimePicker.d.ts +45 -0
  87. package/dist/SingleDateTimePicker.js +12 -0
  88. package/dist/Slider-BtSdC4fj.js +186 -0
  89. package/dist/Slider.d.ts +31 -0
  90. package/dist/Slider.js +6 -0
  91. package/dist/TemporalXAxisComponent-CyiM5EH0.d.ts +23 -0
  92. package/dist/TemporalXAxisComponent-DkyVvASs.js +129 -0
  93. package/dist/TimezonePicker-ClfP1lBL.js +58 -0
  94. package/dist/TimezonePicker.d.ts +16 -0
  95. package/dist/TimezonePicker.js +10 -0
  96. package/dist/Tooltip-Fa-0Xekn.js +104 -0
  97. package/dist/TsqExpression.d.ts +36 -0
  98. package/dist/TsqExpression.js +89 -0
  99. package/dist/UXClient-DydSPZwM.js +230 -0
  100. package/dist/UXClient.d.ts +74 -0
  101. package/dist/UXClient.js +47 -0
  102. package/dist/Utils-BsPLzJBC.d.ts +104 -0
  103. package/dist/Utils-C_j8IgZh.js +1138 -0
  104. package/dist/Utils.d.ts +7 -0
  105. package/dist/Utils.js +7 -0
  106. package/dist/_tslib-5_9pMg1F.js +96 -0
  107. package/dist/package.json +106 -0
  108. package/dist/pikaday-DMSzaLH6.js +1252 -0
  109. package/dist/tsiclient.cjs.js +3 -0
  110. package/dist/tsiclient.cjs.js.LICENSE.txt +19 -0
  111. package/dist/tsiclient.cjs.js.map +1 -0
  112. package/dist/tsiclient.css +17323 -0
  113. package/dist/tsiclient.d.ts +46 -0
  114. package/dist/tsiclient.esm.js +3 -0
  115. package/dist/tsiclient.esm.js.LICENSE.txt +19 -0
  116. package/dist/tsiclient.esm.js.map +1 -0
  117. package/dist/tsiclient.js +58 -0
  118. package/dist/tsiclient.min.css +6 -0
  119. package/dist/tsiclient.min.css.map +1 -0
  120. package/dist/tsiclient.umd.js +3 -0
  121. package/dist/tsiclient.umd.js.LICENSE.txt +19 -0
  122. package/dist/tsiclient.umd.js.map +1 -0
  123. package/dist/tsiclient.umd.min.js +3 -0
  124. package/dist/tsiclient.umd.min.js.LICENSE.txt +19 -0
  125. package/dist/tsiclient.umd.min.js.map +1 -0
  126. package/package.json +106 -0
@@ -0,0 +1,230 @@
1
+ import { L as LineChart } from './LineChart-CExEyjZa.js';
2
+ import { A as AvailabilityChart } from './AvailabilityChart-i_efwXCX.js';
3
+ import { P as PieChart } from './PieChart-B1ZXk13Q.js';
4
+ import { S as ScatterPlot } from './ScatterPlot-DrPoHNDJ.js';
5
+ import { G as GroupedBarChart } from './GroupedBarChart-BspwM8r2.js';
6
+ import { G as Grid } from './Grid-DfFAkeeV.js';
7
+ import { S as Slider } from './Slider-BtSdC4fj.js';
8
+ import { H as Hierarchy } from './Hierarchy-QkWLHkxo.js';
9
+ import AggregateExpression from './AggregateExpression.js';
10
+ import { H as Heatmap } from './Heatmap-D8ET8Ue8.js';
11
+ import { E as EventsTable } from './EventsTable-a0XLbsMF.js';
12
+ import { M as ModelSearch } from './ModelSearch-WEa7Ud20.js';
13
+ import { D as DateTimePicker } from './DateTimePicker-BH6qiVfQ.js';
14
+ import { T as TimezonePicker } from './TimezonePicker-ClfP1lBL.js';
15
+ import { U as Utils } from './Utils-C_j8IgZh.js';
16
+ import { E as EllipsisMenu } from './EllipsisMenu-30FNqoIv.js';
17
+ import TsqExpression from './TsqExpression.js';
18
+ import { M as ModelAutocomplete } from './ModelAutocomplete-TRD16egq.js';
19
+ import { H as HierarchyNavigation } from './HierarchyNavigation-CR6YUilh.js';
20
+ import { S as SingleDateTimePicker } from './SingleDateTimePicker-7anflEq8.js';
21
+ import { D as DateTimeButtonSingle } from './DateTimeButtonSingle-C6cTx5VO.js';
22
+ import { D as DateTimeButtonRange } from './DateTimeButtonRange-DpgfhHQt.js';
23
+ import { P as ProcessGraphic } from './ProcessGraphic-CixT-zZl.js';
24
+ import { P as PlaybackControls } from './PlaybackControls-Dwt6dif9.js';
25
+ import { C as ColorPicker } from './ColorPicker-CH__K8xm.js';
26
+ import { G as GeoProcessGraphic } from './GeoProcessGraphic-AVAzyF7k.js';
27
+
28
+ var UXClient = /** @class */ (function () {
29
+ function UXClient() {
30
+ // Public facing components have class constructors exposed as public UXClient members.
31
+ // This allows for typings to be bundled while maintaining 'new Component()' syntax
32
+ this.DateTimePicker = DateTimePicker;
33
+ this.PieChart = PieChart;
34
+ this.ScatterPlot = ScatterPlot;
35
+ this.BarChart = GroupedBarChart;
36
+ this.LineChart = LineChart;
37
+ this.AvailabilityChart = AvailabilityChart;
38
+ this.Grid = Grid;
39
+ this.Slider = Slider;
40
+ this.Hierarchy = Hierarchy;
41
+ this.AggregateExpression = AggregateExpression;
42
+ this.TsqExpression = TsqExpression;
43
+ this.Heatmap = Heatmap;
44
+ this.EventsTable = EventsTable;
45
+ this.ModelSearch = ModelSearch;
46
+ this.ModelAutocomplete = ModelAutocomplete;
47
+ this.HierarchyNavigation = HierarchyNavigation;
48
+ this.TimezonePicker = TimezonePicker;
49
+ this.EllipsisMenu = EllipsisMenu;
50
+ this.SingleDateTimePicker = SingleDateTimePicker;
51
+ this.DateTimeButtonSingle = DateTimeButtonSingle;
52
+ this.DateTimeButtonRange = DateTimeButtonRange;
53
+ this.ProcessGraphic = ProcessGraphic;
54
+ this.PlaybackControls = PlaybackControls;
55
+ this.ColorPicker = ColorPicker;
56
+ this.GeoProcessGraphic = GeoProcessGraphic;
57
+ }
58
+ UXClient.prototype.UXClient = function () {
59
+ };
60
+ UXClient.prototype.transformTsxToEventsArray = function (events, options) {
61
+ var timezoneOffset = options.timezoneOffset ? options.timezoneOffset : 0;
62
+ var rows = [];
63
+ var eventSourceProperties = {};
64
+ var nameToStrippedPropName = {};
65
+ var valueToStrippedValueMap = {};
66
+ var _loop_1 = function () {
67
+ if (events[eventIdx].hasOwnProperty('schema')) {
68
+ eventSourceProperties[events[eventIdx].schema.rid] = {};
69
+ eventSourceProperties[events[eventIdx].schema.rid].propertyNames = events[eventIdx].schema.properties.reduce(function (prev, curr) {
70
+ prev.push({ name: curr.name, type: curr.type });
71
+ return prev;
72
+ }, []);
73
+ eventSourceProperties[events[eventIdx].schema.rid].eventSourceName = events[eventIdx].schema['$esn'];
74
+ eventSourceId = events[eventIdx].schema.rid;
75
+ }
76
+ else {
77
+ eventSourceId = events[eventIdx].schemaRid;
78
+ }
79
+ timeStamp = (new Date((new Date(events[eventIdx]['$ts'])).valueOf() - timezoneOffset)).toISOString().slice(0, -1).replace('T', ' ');
80
+ event = { 'timestamp ($ts)': timeStamp };
81
+ // lts logic
82
+ lts = events[eventIdx]['$lts'] ? events[eventIdx]['$lts'] : null;
83
+ if (lts) {
84
+ event['LocalTimestamp_DateTime'] = {
85
+ value: lts.replace('T', ' '),
86
+ name: 'LocalTimestamp',
87
+ type: 'DateTime'
88
+ };
89
+ }
90
+ event["EventSourceName_String"] = {
91
+ value: eventSourceProperties[eventSourceId].eventSourceName,
92
+ name: 'EventSourceName',
93
+ type: 'String'
94
+ };
95
+ for (var propIdx in eventSourceProperties[eventSourceId].propertyNames) {
96
+ name = eventSourceProperties[eventSourceId].propertyNames[propIdx].name;
97
+ if (!nameToStrippedPropName.hasOwnProperty(name))
98
+ nameToStrippedPropName[name] = Utils.stripForConcat(name);
99
+ strippedName = nameToStrippedPropName[name];
100
+ type = eventSourceProperties[eventSourceId].propertyNames[propIdx].type;
101
+ columnNameAndType = strippedName + "_" + type;
102
+ if (!valueToStrippedValueMap.hasOwnProperty(String(events[eventIdx].values[propIdx])))
103
+ valueToStrippedValueMap[String(events[eventIdx].values[propIdx])] = Utils.stripForConcat(String(events[eventIdx].values[propIdx]));
104
+ eventObject = {
105
+ value: valueToStrippedValueMap[String(events[eventIdx].values[propIdx])],
106
+ name: strippedName,
107
+ type: type
108
+ };
109
+ event[columnNameAndType] = eventObject;
110
+ }
111
+ if (events[eventIdx].hasOwnProperty('$op')) {
112
+ var defaultType_1 = 'String';
113
+ var otherProps_1 = JSON.parse(events[eventIdx]['$op']);
114
+ Object.keys(otherProps_1).forEach(function (propNameRaw) {
115
+ var strippedNameOP = Utils.stripForConcat(propNameRaw);
116
+ var columnNameAndTypeOP = strippedNameOP + '_String';
117
+ event[columnNameAndTypeOP] = {
118
+ value: otherProps_1[propNameRaw],
119
+ name: strippedNameOP,
120
+ type: defaultType_1
121
+ };
122
+ });
123
+ }
124
+ rows.push(event);
125
+ };
126
+ var eventSourceId, timeStamp, event, lts, name, strippedName, type, columnNameAndType, eventObject;
127
+ for (var eventIdx in events) {
128
+ _loop_1();
129
+ }
130
+ return rows;
131
+ };
132
+ UXClient.prototype.toISONoMillis = function (dateTime) {
133
+ return dateTime.toISOString().slice(0, -5) + "Z";
134
+ };
135
+ //specifiedRange gives the subset of availability buckets to be returned. If not included, will return all buckets
136
+ UXClient.prototype.transformAvailabilityForVisualization = function (availabilityTsx) {
137
+ var _this = this;
138
+ var from = new Date(availabilityTsx.range.from);
139
+ var to = new Date(availabilityTsx.range.to);
140
+ var rawBucketSize = Utils.parseTimeInput(availabilityTsx.intervalSize);
141
+ var buckets = {};
142
+ var startBucket = Math.round(Math.floor(from.valueOf() / rawBucketSize) * rawBucketSize);
143
+ var firstKey = this.toISONoMillis(new Date(startBucket));
144
+ var firstCount = availabilityTsx.distribution[firstKey] ? availabilityTsx.distribution[firstKey] : 0;
145
+ // reset first key if greater than the availability range from
146
+ if (startBucket < (new Date(availabilityTsx.range.from)).valueOf())
147
+ firstKey = this.toISONoMillis(new Date(availabilityTsx.range.from));
148
+ buckets[firstKey] = { count: firstCount };
149
+ Object.keys(availabilityTsx.distribution).forEach(function (key) {
150
+ var formattedISO = _this.toISONoMillis(new Date(key));
151
+ buckets[formattedISO] = { count: availabilityTsx.distribution[key] };
152
+ });
153
+ //set end time value
154
+ var lastBucket = Math.round(Math.floor(to.valueOf() / rawBucketSize) * rawBucketSize);
155
+ // pad out if range is less than one bucket;
156
+ if (startBucket == lastBucket) {
157
+ for (var i = startBucket; i <= startBucket + rawBucketSize; i += (rawBucketSize / 60)) {
158
+ if (buckets[this.toISONoMillis(new Date(i))] == undefined)
159
+ buckets[this.toISONoMillis(new Date(i))] = { count: 0 };
160
+ }
161
+ //reset startBucket to count 0 if not the start time
162
+ if (startBucket != from.valueOf()) {
163
+ buckets[this.toISONoMillis(new Date(startBucket))] = { count: 0 };
164
+ }
165
+ }
166
+ return [{ "availabilityCount": { "": buckets } }];
167
+ };
168
+ UXClient.prototype.transformAggregatesForVisualization = function (aggregates, options) {
169
+ var result = [];
170
+ aggregates.forEach(function (agg, i) {
171
+ var transformedAggregate = {};
172
+ var aggregatesObject = {};
173
+ transformedAggregate[options[i].alias] = aggregatesObject;
174
+ if (agg.hasOwnProperty('__tsiError__'))
175
+ transformedAggregate[''] = {};
176
+ else if (agg.hasOwnProperty('aggregate')) {
177
+ agg.dimension.forEach(function (d, j) {
178
+ var dateTimeToValueObject = {};
179
+ aggregatesObject[d] = dateTimeToValueObject;
180
+ agg.aggregate.dimension.forEach(function (dt, k) {
181
+ var measuresObject = {};
182
+ dateTimeToValueObject[dt] = measuresObject;
183
+ options[i].measureTypes.forEach(function (t, l) {
184
+ if (agg.aggregate.measures[j][k] != null && agg.aggregate.measures[j][k] != undefined &&
185
+ agg.aggregate.measures[j][k][l] != null && agg.aggregate.measures[j][k][l] != undefined)
186
+ measuresObject[t] = agg.aggregate.measures[j][k][l];
187
+ else
188
+ measuresObject[t] = null;
189
+ });
190
+ });
191
+ });
192
+ }
193
+ else {
194
+ var dateTimeToValueObject = {};
195
+ aggregatesObject[''] = dateTimeToValueObject;
196
+ agg.dimension.forEach(function (dt, j) {
197
+ var measuresObject = {};
198
+ dateTimeToValueObject[dt] = measuresObject;
199
+ options[i].measureTypes.forEach(function (t, l) {
200
+ measuresObject[t] = agg.measures[j][l];
201
+ });
202
+ });
203
+ }
204
+ result.push(transformedAggregate);
205
+ });
206
+ return result;
207
+ };
208
+ // exposed publicly to use for highlighting elements in the well on hover/focus
209
+ UXClient.prototype.createEntityKey = function (aggName, aggIndex) {
210
+ if (aggIndex === void 0) { aggIndex = 0; }
211
+ return Utils.createEntityKey(aggName, aggIndex);
212
+ };
213
+ UXClient.prototype.transformTsqResultsToEventsArray = function (results) {
214
+ var flattenedResults = [];
215
+ results.forEach(function (tsqr) {
216
+ tsqr.timestamps.forEach(function (ts, idx) {
217
+ var event = {};
218
+ event['timestamp ($ts)'] = ts;
219
+ tsqr.properties.forEach(function (p) {
220
+ event["".concat(p.name, "_").concat(p.type)] = { name: p.name, type: p.type, value: p.values[idx] };
221
+ });
222
+ flattenedResults.push(event);
223
+ });
224
+ });
225
+ return flattenedResults.sort(function (a, b) { return (new Date(a['timestamp ($ts)'])).valueOf() < (new Date(b['timestamp ($ts)'])).valueOf() ? -1 : 1; });
226
+ };
227
+ return UXClient;
228
+ }());
229
+
230
+ export { UXClient as U };
@@ -0,0 +1,74 @@
1
+ import LineChart from './LineChart.js';
2
+ import AvailabilityChart from './AvailabilityChart.js';
3
+ import PieChart from './PieChart.js';
4
+ import ScatterPlot from './ScatterPlot.js';
5
+ import GroupedBarChart from './GroupedBarChart.js';
6
+ import Grid from './Grid.js';
7
+ import Slider from './Slider.js';
8
+ import Hierarchy from './Hierarchy.js';
9
+ import AggregateExpression from './AggregateExpression.js';
10
+ import Heatmap from './Heatmap.js';
11
+ import EventsTable from './EventsTable.js';
12
+ import ModelSearch from './ModelSearch.js';
13
+ import DateTimePicker from './DateTimePicker.js';
14
+ import TimezonePicker from './TimezonePicker.js';
15
+ import EllipsisMenu from './EllipsisMenu.js';
16
+ import TsqExpression from './TsqExpression.js';
17
+ import ModelAutocomplete from './ModelAutocomplete.js';
18
+ import HierarchyNavigation from './HierarchyNavigation.js';
19
+ import SingleDateTimePicker from './SingleDateTimePicker.js';
20
+ import DateTimeButtonSingle from './DateTimeButtonSingle.js';
21
+ import DateTimeButtonRange from './DateTimeButtonRange.js';
22
+ import ProcessGraphic from './ProcessGraphic.js';
23
+ import PlaybackControls from './PlaybackControls.js';
24
+ import ColorPicker from './ColorPicker.js';
25
+ import GeoProcessGraphic from './GeoProcessGraphic.js';
26
+ import './TemporalXAxisComponent-CyiM5EH0.js';
27
+ import './ChartVisualizationComponent-DBjiqR1n.js';
28
+ import './ChartComponent-DTcc6aED.js';
29
+ import './Enums-ChUuTtHV.js';
30
+ import './Component-Rp30sSAW.js';
31
+ import './Interfaces-BKRQ685G.js';
32
+ import './ChartComponentData-D5wuQmmZ.js';
33
+ import './GroupedBarChartData-C0YQydrP.js';
34
+ import './ChartDataOptions-DBS28b1-.js';
35
+ import './DateTimeButton-CMcCxc8x.js';
36
+ import './HistoryPlayback-BmA-54lT.js';
37
+ import 'd3';
38
+
39
+ declare class UXClient {
40
+ UXClient(): void;
41
+ DateTimePicker: typeof DateTimePicker;
42
+ PieChart: typeof PieChart;
43
+ ScatterPlot: typeof ScatterPlot;
44
+ BarChart: typeof GroupedBarChart;
45
+ LineChart: typeof LineChart;
46
+ AvailabilityChart: typeof AvailabilityChart;
47
+ Grid: typeof Grid;
48
+ Slider: typeof Slider;
49
+ Hierarchy: typeof Hierarchy;
50
+ AggregateExpression: typeof AggregateExpression;
51
+ TsqExpression: typeof TsqExpression;
52
+ Heatmap: typeof Heatmap;
53
+ EventsTable: typeof EventsTable;
54
+ ModelSearch: typeof ModelSearch;
55
+ ModelAutocomplete: typeof ModelAutocomplete;
56
+ HierarchyNavigation: typeof HierarchyNavigation;
57
+ TimezonePicker: typeof TimezonePicker;
58
+ EllipsisMenu: typeof EllipsisMenu;
59
+ SingleDateTimePicker: typeof SingleDateTimePicker;
60
+ DateTimeButtonSingle: typeof DateTimeButtonSingle;
61
+ DateTimeButtonRange: typeof DateTimeButtonRange;
62
+ ProcessGraphic: typeof ProcessGraphic;
63
+ PlaybackControls: typeof PlaybackControls;
64
+ ColorPicker: typeof ColorPicker;
65
+ GeoProcessGraphic: typeof GeoProcessGraphic;
66
+ transformTsxToEventsArray(events: any, options: any): any[];
67
+ private toISONoMillis;
68
+ transformAvailabilityForVisualization(availabilityTsx: any): Array<any>;
69
+ transformAggregatesForVisualization(aggregates: Array<any>, options: any): Array<any>;
70
+ createEntityKey(aggName: string, aggIndex?: number): string;
71
+ transformTsqResultsToEventsArray(results: any): any[];
72
+ }
73
+
74
+ export { UXClient as default };
@@ -0,0 +1,47 @@
1
+ export { U as default } from './UXClient-DydSPZwM.js';
2
+ import './LineChart-CExEyjZa.js';
3
+ import './_tslib-5_9pMg1F.js';
4
+ import 'd3';
5
+ import 'd3-voronoi';
6
+ import './Utils-C_j8IgZh.js';
7
+ import 'moment-timezone';
8
+ import './Legend-DlSXQXHF.js';
9
+ import './Component-CofgyEw0.js';
10
+ import './TemporalXAxisComponent-DkyVvASs.js';
11
+ import './ChartVisualizationComponent-CG7e5xlc.js';
12
+ import './ChartComponent-DnKLTxWe.js';
13
+ import './Grid-DfFAkeeV.js';
14
+ import 'split.js';
15
+ import './EllipsisMenu-30FNqoIv.js';
16
+ import './ChartDataOptions-DRd8NHra.js';
17
+ import './ContextMenu-DABSkTA2.js';
18
+ import './Tooltip-Fa-0Xekn.js';
19
+ import 'd3-interpolate-path';
20
+ import './AvailabilityChart-i_efwXCX.js';
21
+ import './DateTimePicker-BH6qiVfQ.js';
22
+ import './pikaday-DMSzaLH6.js';
23
+ import 'moment';
24
+ import './TimezonePicker-ClfP1lBL.js';
25
+ import './AggregateExpression.js';
26
+ import './DateTimeButtonRange-DpgfhHQt.js';
27
+ import './DateTimeButton-Ca1487GR.js';
28
+ import './PieChart-B1ZXk13Q.js';
29
+ import './GroupedBarChartData-BRCyDxbA.js';
30
+ import './Slider-BtSdC4fj.js';
31
+ import './ScatterPlot-DrPoHNDJ.js';
32
+ import './GroupedBarChart-BspwM8r2.js';
33
+ import './Hierarchy-QkWLHkxo.js';
34
+ import './Heatmap-D8ET8Ue8.js';
35
+ import './EventsTable-a0XLbsMF.js';
36
+ import './ModelSearch-WEa7Ud20.js';
37
+ import 'awesomplete';
38
+ import './ModelAutocomplete-TRD16egq.js';
39
+ import './TsqExpression.js';
40
+ import './HierarchyNavigation-CR6YUilh.js';
41
+ import './SingleDateTimePicker-7anflEq8.js';
42
+ import './DateTimeButtonSingle-C6cTx5VO.js';
43
+ import './ProcessGraphic-CixT-zZl.js';
44
+ import './HistoryPlayback-SjeQbAPq.js';
45
+ import './PlaybackControls-Dwt6dif9.js';
46
+ import './ColorPicker-CH__K8xm.js';
47
+ import './GeoProcessGraphic-AVAzyF7k.js';
@@ -0,0 +1,104 @@
1
+ import * as d3 from 'd3';
2
+ import { Y as YAxisStates } from './Enums-ChUuTtHV.js';
3
+
4
+ declare class Utils {
5
+ static guidForNullTSID: string;
6
+ static formatYAxisNumber(val: number): string;
7
+ static getStackStates(): typeof YAxisStates;
8
+ static parseTimeInput(inputString: string): number;
9
+ static findClosestTime(prevMillis: number, timeMap: any): number;
10
+ static getValueOfVisible(d: any, visibleMeasure: string): any;
11
+ static isStartAt(startAtString?: string, searchSpan?: any): boolean;
12
+ static parseShift(shiftString: string, startAtString?: any, searchSpan?: any): number;
13
+ static adjustStartMillisToAbsoluteZero(fromMillis: any, bucketSize: any): number;
14
+ static bucketSizeToTsqInterval(bucketSize: string): string;
15
+ static createEntityKey(aggName: string, aggIndex: number): string;
16
+ static getColorForValue(chartDataOptions: any, value: any): any;
17
+ static rollUpContiguous(data: any): any;
18
+ static formatOffsetMinutes(offset: any): string;
19
+ static getOffsetMinutes(offset: any, millis: number): any;
20
+ static offsetUTC(date: Date): Date;
21
+ static getMinutesToUTC(offset: any, millisInOffset: number): number;
22
+ static addOffsetGuess(timezoneName: any): string;
23
+ static timezoneAbbreviation(timezoneName: any): string;
24
+ static createTimezoneAbbreviation(offset: any): string;
25
+ static parseTimezoneName(timezoneRaw: any): any;
26
+ static convertTimezoneToLabel(timezone: any, locdLocal?: string): string;
27
+ static rangeTimeFormat(rangeMillis: number): string;
28
+ static subDateTimeFormat(is24HourTime: any, usesSeconds: any, usesMillis: any): string;
29
+ static timeFormat(usesSeconds?: boolean, usesMillis?: boolean, offset?: any, is24HourTime?: boolean, shiftMillis?: number, timeFormat?: string, locale?: string): (d: any) => string;
30
+ static splitTimeLabel(text: any): void;
31
+ static getUTCHours(d: Date, is24HourTime?: boolean): number;
32
+ static UTCTwelveHourFormat(d: Date): string;
33
+ static getAgVisible(displayState: any, aggI: string, splitBy: string): any;
34
+ static getAgVisibleMeasure(displayState: any, aggI: string, splitBy: string): any;
35
+ static createSeriesTypeIcon(seriesType: string, selection: any): void;
36
+ static strip(text: any): string;
37
+ static stripForConcat(text: any): any;
38
+ static setSeriesLabelSubtitleText(subtitle: any, isInFocus?: boolean): void;
39
+ static revertAllSubtitleText(markerValues: any, opacity?: number): void;
40
+ static generateColors(numColors: number, includeColors?: string[]): any[];
41
+ static convertFromLocal(date: Date): Date;
42
+ static adjustDateFromTimezoneOffset(date: Date): Date;
43
+ static offsetFromUTC(date: Date, offset?: number): Date;
44
+ static offsetToUTC(date: Date, offset?: number): Date;
45
+ static parseUserInputDateTime(timeText: any, offset: any): number;
46
+ static getBrighterColor(color: string): any;
47
+ static createSplitByColors(displayState: any, aggKey: string, ignoreIsOnlyAgg?: boolean): any[];
48
+ static colorSplitBy(displayState: any, splitByIndex: number, aggKey: string, ignoreIsOnlyAgg?: boolean): any;
49
+ static getTheme(theme: any): string;
50
+ static clearSelection(): void;
51
+ static mark(filter: any, text: any): any;
52
+ static hash(str: any): number;
53
+ static guid(): string;
54
+ static createValueFilter(aggregateKey: any, splitBy: any): (d: any, j: number) => boolean;
55
+ static downloadCSV(csvString: string, csvName?: string): void;
56
+ static sanitizeString(str: any, type: String): any;
57
+ static focusOnEllipsisButton(renderTarget: any): void;
58
+ static createDownloadEllipsisOption(csvStringGenerator: any, action?: () => void, downloadLabel?: string): {
59
+ iconClass: string;
60
+ label: string;
61
+ action: () => void;
62
+ description: string;
63
+ };
64
+ static createControlPanel(renderTarget: any, legendWidth: number, topChartMargin: number, chartOptions: any): d3.Selection<HTMLDivElement, unknown, null, undefined>;
65
+ static escapeQuotesCommasAndNewlines(stringToEscape: string): string;
66
+ static getNonNumericHeight(rawHeight: number): number;
67
+ static getControlPanelWidth(renderTarget: any, legendWidth: any, isLegendShown: any): number;
68
+ static getValueOrDefault(chartOptionsObj: any, propertyName: any, defaultValue?: any): any;
69
+ static safeNotNullOrUndefined(valueLambda: any): boolean;
70
+ static equalToEventTarget: (current: any, event: any) => boolean;
71
+ static getAggKeys(data: any): any;
72
+ static roundToMillis(rawTo: any, bucketSize: any): number;
73
+ static mergeSeriesForScatterPlot(chartData: any, scatterMeasures: any): {
74
+ [x: string]: {
75
+ "": {};
76
+ };
77
+ };
78
+ static getScatterPlotMeasureNames(chartData: any, scatterMeasures: any): {
79
+ X_MEASURE: string;
80
+ Y_MEASURE: string;
81
+ R_MEASURE: string;
82
+ };
83
+ static isKeyDownAndNotEnter: (e: any) => boolean;
84
+ static getMinWarmTime(warmStoreFrom: any, retentionString: any): Date;
85
+ static standardizeTSStrings(rawData: any): any[];
86
+ static cullValuesOutOfRange(availabilityDistribution: any, minDateString: string, maxDateString: string): any[];
87
+ static mergeAvailabilities(warmAvailability: any, coldAvailability: any, retentionString?: any): any;
88
+ static languageGuess(): string;
89
+ static getInstanceKey: (instance: any) => any;
90
+ static stripNullGuid: (str: any) => any;
91
+ static getTimeSeriesIdString: (instance: any) => any;
92
+ static getTimeSeriesIdToDisplay: (instance: any, emptyDisplayString: any) => any;
93
+ static getHighlightedTimeSeriesIdToDisplay: (instance: any) => any;
94
+ static instanceHasEmptyTSID: (instance: any) => boolean;
95
+ static appendFormattedElementsFromString: (targetElem: any, str: any, options?: {
96
+ additionalClassName?: string;
97
+ inSvg?: boolean;
98
+ splitByTag?: string;
99
+ }) => void;
100
+ static escapedTsidForExactSearch: (tsid: string) => string;
101
+ static memorySizeOf(obj: any): number;
102
+ }
103
+
104
+ export { Utils as U };