ednl-liftstatus-web-components 1.18.2 → 1.19.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.
@@ -55002,7 +55002,7 @@ const LsData = class {
55002
55002
  * The list of relevant sensors that is used when performing API requests.
55003
55003
  */
55004
55004
  this.defaultSensorIds = [
55005
- 103, 104, 105, 210, 500, 501, 502, 503, 513, 514, 515, 550, 590,
55005
+ 103, 104, 105, 210, 500, 501, 502, 503, 513, 514, 515, 550, 590, 591
55006
55006
  ];
55007
55007
  this.accessToken = undefined;
55008
55008
  this.idKey = undefined;
@@ -63312,6 +63312,7 @@ const LsRecentStops = class {
63312
63312
  this.currentYScale = undefined;
63313
63313
  this.graph = undefined;
63314
63314
  this.timePoints = [];
63315
+ this.maxFloors = 0;
63315
63316
  // Stores the error and loading states
63316
63317
  this.errorState = false;
63317
63318
  this.handleSensorUpdate = (data, timestamp) => {
@@ -63320,6 +63321,9 @@ const LsRecentStops = class {
63320
63321
  for (let i = 0; i < keys$1(data).length; i++) {
63321
63322
  const key = parseInt(keys$1(data)[i], 10);
63322
63323
  const value = parseInt(values(data)[i], 10);
63324
+ if (key === 591) {
63325
+ this.maxFloors = (value || 0) + 1;
63326
+ }
63323
63327
  if (!Number.isNaN(value) && this.SENSOR_IDS.includes(key)) {
63324
63328
  const momentTimestamp = dayjs_min(timestamp[key]);
63325
63329
  const newTimePoint = {
@@ -63377,10 +63381,13 @@ const LsRecentStops = class {
63377
63381
  // create timePoints
63378
63382
  const historicalTimePoints = [];
63379
63383
  for (const dataSet of dataSets) {
63380
- const sensorId = get$2(dataSet, "sensor.id");
63384
+ const sensorId = parseInt(get$2(dataSet, "sensor.id"), 10);
63385
+ if (sensorId === 591) {
63386
+ this.maxFloors = (get$2(last(dataSet.rows), "val") || 0) + 1;
63387
+ }
63381
63388
  for (const row of dataSet.rows) {
63382
63389
  const value = parseInt(get$2(row, "val"), 10);
63383
- if (!Number.isNaN(value)) {
63390
+ if (!Number.isNaN(value) && this.SENSOR_IDS.includes(sensorId)) {
63384
63391
  const newTimePoint = {
63385
63392
  name: dayjs_min(row.ts).format(this.DAYJSFORMAT),
63386
63393
  x: dayjs_min(row.ts).toDate(),
@@ -63547,11 +63554,7 @@ const LsRecentStops = class {
63547
63554
  const timePointsWithFakeValue = [...this.timePoints, fakeValueFirst];
63548
63555
  this.timePoints = timePointsWithFakeValue;
63549
63556
  }
63550
- const floorExtent = extent([
63551
- 1,
63552
- max(this.timePoints, (timePoint) => timePoint.y),
63553
- ]);
63554
- const maxFloorValue = last(floorExtent);
63557
+ const floorExtent = [1, this.maxFloors];
63555
63558
  const datesExtend = extent(this.timePoints, (timePoint) => timePoint.x);
63556
63559
  datesExtend[1] = now.toDate();
63557
63560
  this.currentXScale.domain([start.valueOf(), now.valueOf()]);
@@ -63559,7 +63562,7 @@ const LsRecentStops = class {
63559
63562
  // Remove previous lines
63560
63563
  if (this.graph !== null) {
63561
63564
  (_a = this.graph) === null || _a === void 0 ? void 0 : _a.selectAll(".line").remove();
63562
- for (let i = 1; i <= maxFloorValue; i++) {
63565
+ for (let i = 1; i <= this.maxFloors; i++) {
63563
63566
  (_b = this.graph) === null || _b === void 0 ? void 0 : _b.append("line").attr("y1", this.currentYScale(i)).attr("y2", this.currentYScale(i)).attr("x1", 0.5).attr("x2", this.width).attr("class", "line");
63564
63567
  }
63565
63568
  const yTicks = max(this.timePoints, (timePoint) => timePoint.y) - 1;
@@ -74712,7 +74715,7 @@ const statusCodes = {
74712
74715
  },
74713
74716
  "otis-OCSS-CHC": {
74714
74717
  description: "Cut of Hall Call",
74715
- level: "impact"
74718
+ level: "non-impact"
74716
74719
  },
74717
74720
  "otis-OCSS-COR": {
74718
74721
  description: "Correction Run",
@@ -74785,6 +74788,10 @@ const statusCodes = {
74785
74788
  "otis-OCSS-GCB": {
74786
74789
  description: "General Control of Buttons",
74787
74790
  level: "impact"
74791
+ },
74792
+ "otis-OCSS-HAD": {
74793
+ description: "Hoistway Access Detection",
74794
+ level: "impact"
74788
74795
  },
74789
74796
  "otis-OCSS-IDL": {
74790
74797
  description: "Idle",
@@ -76980,7 +76987,7 @@ const statusCodes = {
76980
76987
  },
76981
76988
  "kollmorgen-lan-IDS_REGLERSTOERUNG": {
76982
76989
  description: "Regulator fault",
76983
- level: "non-impact"
76990
+ level: "impact"
76984
76991
  },
76985
76992
  "kollmorgen-lan-IDS_INSPEKTION": {
76986
76993
  description: "Inspection operation",