ednl-liftstatus-web-components 1.62.6 → 1.63.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 (115) hide show
  1. package/dist/cjs/{api-b_eLx-8f.js → api-aJkn6GAA.js} +1 -1
  2. package/dist/cjs/{error-message-CiYy98qb.js → error-message-BGSyIOKs.js} +1 -1
  3. package/dist/cjs/{icons-xHIbPZk8.js → icons-BxXtMaak.js} +1 -1
  4. package/dist/cjs/{locale-state-BR4WqALC.js → locale-state-CSzvyXag.js} +1 -1
  5. package/dist/cjs/ls-3d-scene.cjs.entry.js +32 -9
  6. package/dist/cjs/ls-counters.cjs.entry.js +7 -7
  7. package/dist/cjs/ls-data.cjs.entry.js +252 -251
  8. package/dist/cjs/ls-date-picker.cjs.entry.js +3 -3
  9. package/dist/cjs/ls-energy-usage.cjs.entry.js +7 -7
  10. package/dist/cjs/ls-history-swimlane.cjs.entry.js +7 -7
  11. package/dist/cjs/ls-indicator.cjs.entry.js +3 -3
  12. package/dist/cjs/ls-recent-stops.cjs.entry.js +5 -5
  13. package/dist/cjs/ls-reset-steering.cjs.entry.js +5 -5
  14. package/dist/cjs/ls-status-count.cjs.entry.js +7 -7
  15. package/dist/cjs/ls-status-history.cjs.entry.js +11 -11
  16. package/dist/cjs/ls-status-item.cjs.entry.js +6 -7
  17. package/dist/cjs/ls-status-messages.cjs.entry.js +12 -13
  18. package/dist/cjs/ls-status.cjs.entry.js +12 -6
  19. package/dist/cjs/ls-swimlane.cjs.entry.js +7 -7
  20. package/dist/cjs/{nl-deIv6WRm.js → nl-CL-nUKrW.js} +1 -1
  21. package/dist/cjs/{period-BeITs0Af.js → period-CrbNyBW4.js} +1 -1
  22. package/dist/cjs/{safe-relative-time-CBLCx1S2.js → safe-relative-time-CUETUSUN.js} +2 -2
  23. package/dist/cjs/{sensorInfo-CxlcXKvx.js → sensorInfo-DtGIgpj7.js} +1 -1
  24. package/dist/cjs/{sortBy-BxklLsbW.js → sortBy-ppaCwaHQ.js} +2 -2
  25. package/dist/cjs/{status-codes.store-a-jBzlPR.js → status-codes.store-CGd1edG5.js} +2 -2
  26. package/dist/cjs/{store-BtH6O4f1.js → store-BAC0TOVe.js} +3 -3
  27. package/dist/cjs/{store-error-ZdVHSlmr.js → store-error-BAkEv9uP.js} +1 -1
  28. package/dist/cjs/{swimlane-constants-B61B7DfG.js → swimlane-constants-1RbOUJd2.js} +3 -3
  29. package/dist/cjs/{timestamps-YAzoaGW9.js → timestamps-CRSUzveY.js} +1 -1
  30. package/dist/collection/components/ls-3d-scene/ls-3d-scene.js +26 -3
  31. package/dist/collection/components/ls-data/ls-data.js +8 -18
  32. package/dist/collection/components/ls-status/ls-status.css +14 -44
  33. package/dist/collection/components/ls-status/ls-status.js +9 -2
  34. package/dist/collection/components/ls-status-item/ls-status-item.js +0 -1
  35. package/dist/collection/components/ls-status-messages/ls-status-messages.js +1 -2
  36. package/dist/collection/utils/i18n.js +1 -1
  37. package/dist/collection/utils/session-permissions.js +31 -0
  38. package/dist/collection/utils/translations.js +2 -2
  39. package/dist/components/ls-3d-scene.js +2 -2
  40. package/dist/components/ls-data.js +1 -1
  41. package/dist/components/ls-status-item2.js +1 -1
  42. package/dist/components/ls-status-messages.js +1 -1
  43. package/dist/components/ls-status.js +1 -1
  44. package/dist/components/store.js +1 -1
  45. package/dist/ednl-liftstatus-web-components/ednl-liftstatus-web-components.esm.js +1 -1
  46. package/dist/ednl-liftstatus-web-components/{p-fd9e1198.entry.js → p-04595102.entry.js} +3 -3
  47. package/dist/ednl-liftstatus-web-components/{p-7e9725e6.entry.js → p-2615134f.entry.js} +1 -1
  48. package/dist/ednl-liftstatus-web-components/{p-68e42cbd.entry.js → p-2b75a7d2.entry.js} +1 -1
  49. package/dist/ednl-liftstatus-web-components/{p-371e008d.entry.js → p-30589dd5.entry.js} +1 -1
  50. package/dist/ednl-liftstatus-web-components/{p-9ca17383.entry.js → p-62c2b6c3.entry.js} +1 -1
  51. package/dist/ednl-liftstatus-web-components/{p-be58ace0.entry.js → p-6b87d7ce.entry.js} +1 -1
  52. package/dist/ednl-liftstatus-web-components/{p-0f56a53c.entry.js → p-733e88db.entry.js} +1 -1
  53. package/dist/ednl-liftstatus-web-components/p-89b2d1b9.entry.js +1 -0
  54. package/dist/ednl-liftstatus-web-components/{p-Cf7Lbc0z.js → p-BNxe5sye.js} +1 -1
  55. package/dist/ednl-liftstatus-web-components/{p-BucRqlox.js → p-BzZBVh5g.js} +1 -1
  56. package/dist/ednl-liftstatus-web-components/p-C6oaoze0.js +1 -0
  57. package/dist/ednl-liftstatus-web-components/{p-DfJ7ioh1.js → p-CLES5Am0.js} +1 -1
  58. package/dist/ednl-liftstatus-web-components/{p-CHSuuhXi.js → p-Ca9AC73B.js} +1 -1
  59. package/dist/ednl-liftstatus-web-components/{p-DQlE1zu7.js → p-CdeZiu7c.js} +2 -2
  60. package/dist/ednl-liftstatus-web-components/{p-oXKYyJvZ.js → p-CgCghaxm.js} +1 -1
  61. package/dist/ednl-liftstatus-web-components/{p-DgvGVe0N.js → p-DLRaBvIG.js} +1 -1
  62. package/dist/ednl-liftstatus-web-components/{p-B32Q57bV.js → p-DaX0LFcX.js} +1 -1
  63. package/dist/ednl-liftstatus-web-components/p-DsHc6WQA.js +1 -0
  64. package/dist/ednl-liftstatus-web-components/{p-Bi7Pai2y.js → p-KqTGckud.js} +1 -1
  65. package/dist/ednl-liftstatus-web-components/{p-33d51f40.entry.js → p-b41161e0.entry.js} +1 -1
  66. package/dist/ednl-liftstatus-web-components/p-d2a2bc87.entry.js +1 -0
  67. package/dist/ednl-liftstatus-web-components/p-e86e455e.entry.js +1 -0
  68. package/dist/ednl-liftstatus-web-components/{p-4fa53eab.entry.js → p-ef76bad7.entry.js} +1 -1
  69. package/dist/ednl-liftstatus-web-components/{p-b2b20bb5.entry.js → p-f3e9060c.entry.js} +1 -1
  70. package/dist/ednl-liftstatus-web-components/{p-2ea7667d.entry.js → p-f8701d09.entry.js} +1 -1
  71. package/dist/ednl-liftstatus-web-components/p-fba515aa.entry.js +1 -0
  72. package/dist/ednl-liftstatus-web-components/{p-CSz-bdBa.js → p-phJ06479.js} +1 -1
  73. package/dist/ednl-liftstatus-web-components/p-tot2w84b.js +1 -0
  74. package/dist/esm/{api-DpFacoTO.js → api-BUzvfGGW.js} +1 -1
  75. package/dist/esm/{error-message-NOptv-Qh.js → error-message-C2b9H2YF.js} +1 -1
  76. package/dist/esm/{icons-DrvzczEk.js → icons-BoAHA__R.js} +1 -1
  77. package/dist/esm/{locale-state-Ba00TvuN.js → locale-state-CHnOQQR4.js} +1 -1
  78. package/dist/esm/ls-3d-scene.entry.js +32 -9
  79. package/dist/esm/ls-counters.entry.js +7 -7
  80. package/dist/esm/ls-data.entry.js +252 -251
  81. package/dist/esm/ls-date-picker.entry.js +3 -3
  82. package/dist/esm/ls-energy-usage.entry.js +7 -7
  83. package/dist/esm/ls-history-swimlane.entry.js +7 -7
  84. package/dist/esm/ls-indicator.entry.js +3 -3
  85. package/dist/esm/ls-recent-stops.entry.js +5 -5
  86. package/dist/esm/ls-reset-steering.entry.js +5 -5
  87. package/dist/esm/ls-status-count.entry.js +7 -7
  88. package/dist/esm/ls-status-history.entry.js +11 -11
  89. package/dist/esm/ls-status-item.entry.js +6 -7
  90. package/dist/esm/ls-status-messages.entry.js +12 -13
  91. package/dist/esm/ls-status.entry.js +12 -6
  92. package/dist/esm/ls-swimlane.entry.js +7 -7
  93. package/dist/esm/{nl-CJE9jR6B.js → nl-CmpRuLW2.js} +1 -1
  94. package/dist/esm/{period-DyNrPE-O.js → period-Cm0dAx9i.js} +1 -1
  95. package/dist/esm/{safe-relative-time-DIoJRCJ2.js → safe-relative-time-Qxu7nzxG.js} +2 -2
  96. package/dist/esm/{sensorInfo-DuUSCegx.js → sensorInfo-CShcDZJf.js} +1 -1
  97. package/dist/esm/{sortBy-CkXKwZ1N.js → sortBy-Df_dAg6n.js} +2 -2
  98. package/dist/esm/{status-codes.store-Bv7Lt8pg.js → status-codes.store-B3IAgopg.js} +2 -2
  99. package/dist/esm/{store-C3172vr5.js → store-DVq1H2mX.js} +3 -3
  100. package/dist/esm/{store-error-u0pJr8bm.js → store-error-42bJsoV9.js} +1 -1
  101. package/dist/esm/{swimlane-constants-DR-XruVD.js → swimlane-constants-D_o0Jc2n.js} +3 -3
  102. package/dist/esm/{timestamps-BcA1RVEW.js → timestamps-jRr2jcpH.js} +1 -1
  103. package/dist/types/components/ls-3d-scene/ls-3d-scene.d.ts +5 -0
  104. package/dist/types/components/ls-status/ls-status.d.ts +3 -0
  105. package/dist/types/utils/session-permissions.d.ts +10 -0
  106. package/dist/types/utils/translations.d.ts +2 -2
  107. package/package.json +11 -12
  108. package/dist/ednl-liftstatus-web-components/p-2cf3b37d.entry.js +0 -1
  109. package/dist/ednl-liftstatus-web-components/p-82509fb6.entry.js +0 -1
  110. package/dist/ednl-liftstatus-web-components/p-BKlcnfRl.js +0 -1
  111. package/dist/ednl-liftstatus-web-components/p-CD7qqCYG.js +0 -1
  112. package/dist/ednl-liftstatus-web-components/p-DKv3Sgsd.js +0 -1
  113. package/dist/ednl-liftstatus-web-components/p-a883c37d.entry.js +0 -1
  114. package/dist/ednl-liftstatus-web-components/p-c27d416e.entry.js +0 -1
  115. /package/dist/ednl-liftstatus-web-components/{p-bXk7HZ2Z.js → p-muNbdGiY.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var store = require('./store-BtH6O4f1.js');
3
+ var store = require('./store-BAC0TOVe.js');
4
4
  var isEmpty = require('./isEmpty-C46AwMJT.js');
5
5
 
6
6
  class HTTPError extends Error {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var store = require('./store-BtH6O4f1.js');
3
+ var store = require('./store-BAC0TOVe.js');
4
4
 
5
5
  const ERROR_MESSAGE_CLASS = 'error-message';
6
6
  const BLUR_CLASS = 'blur';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-BRUAq2EB.js');
4
- var store = require('./store-BtH6O4f1.js');
4
+ var store = require('./store-BAC0TOVe.js');
5
5
 
6
6
  /**
7
7
  * Shared by `ls-status-count` and `ls-status-messages`.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-BRUAq2EB.js');
4
- var store = require('./store-BtH6O4f1.js');
4
+ var store = require('./store-BAC0TOVe.js');
5
5
 
6
6
  const cleanupHandlers = new WeakMap();
7
7
  const wrappedDisconnect = new WeakSet();
@@ -2,12 +2,12 @@
2
2
 
3
3
  var index = require('./index-BRUAq2EB.js');
4
4
  var sensors = require('./sensors-DqBjrPzl.js');
5
- var store = require('./store-BtH6O4f1.js');
6
- var safeRelativeTime = require('./safe-relative-time-CBLCx1S2.js');
7
- require('./nl-deIv6WRm.js');
8
- var errorMessage = require('./error-message-CiYy98qb.js');
9
- var localeState = require('./locale-state-BR4WqALC.js');
10
- var storeError = require('./store-error-ZdVHSlmr.js');
5
+ var store = require('./store-BAC0TOVe.js');
6
+ var safeRelativeTime = require('./safe-relative-time-CUETUSUN.js');
7
+ require('./nl-CL-nUKrW.js');
8
+ var errorMessage = require('./error-message-BGSyIOKs.js');
9
+ var localeState = require('./locale-state-CSzvyXag.js');
10
+ var storeError = require('./store-error-BAkEv9uP.js');
11
11
  var isNil = require('./isNil-B-fGcnNC.js');
12
12
 
13
13
  /**
@@ -55088,7 +55088,7 @@ const Ls3dScene = class {
55088
55088
  },
55089
55089
  };
55090
55090
  const snapshot = (_d = this.store) === null || _d === void 0 ? void 0 : _d.state.currentSensorData;
55091
- if (snapshot !== undefined) {
55091
+ if (snapshot !== undefined && !this.errorState.hasError) {
55092
55092
  this.processSensorUpdate(snapshot, true);
55093
55093
  // Ensure initial movement state is visually applied once the model is ready.
55094
55094
  const initialMovement = snapshot.values[sensors.SENSOR.MovementState];
@@ -55492,6 +55492,25 @@ const Ls3dScene = class {
55492
55492
  })
55493
55493
  .start();
55494
55494
  };
55495
+ /**
55496
+ * A lost connection leaves the last known movement in place, so the blurred
55497
+ * scene would keep suggesting a lift in motion. Stops without easing out.
55498
+ */
55499
+ this.freezeMovement = () => {
55500
+ if (!isNil.isNil(this.arrowUp))
55501
+ this.hideNode(this.arrowUp);
55502
+ if (!isNil.isNil(this.arrowDown))
55503
+ this.hideNode(this.arrowDown);
55504
+ this.stopPulseArrowAnimation();
55505
+ this.stopDoorAnimation();
55506
+ this.animateTheFloor = false;
55507
+ this.isEasingIn = false;
55508
+ this.isEasingOut = false;
55509
+ if (this.floorAnimationTween !== null) {
55510
+ this.floorAnimationTween.stop();
55511
+ this.floorAnimationTween = null;
55512
+ }
55513
+ };
55495
55514
  this.stopAnimateFloorsIndicator = (elevatorDirection) => {
55496
55515
  const indicator = this.floorSeparatorIndicator;
55497
55516
  if (isNil.isNil(indicator)) {
@@ -55771,6 +55790,7 @@ const Ls3dScene = class {
55771
55790
  errorMessage.applyErrorMessage(this.canvas, errorMessage.getErrorMessageForDisplay(this.errorState.messageKey, this.store.state.locale));
55772
55791
  }
55773
55792
  this.clearTimer();
55793
+ this.freezeMovement();
55774
55794
  return;
55775
55795
  }
55776
55796
  // No error detected
@@ -55780,6 +55800,9 @@ const Ls3dScene = class {
55780
55800
  messageKey: undefined,
55781
55801
  type: store.ErrorType.None,
55782
55802
  };
55803
+ // Movement is only (re)started when the sensor value differs from the
55804
+ // last applied one, and the frozen scene no longer shows that value.
55805
+ this.movementState = undefined;
55783
55806
  }
55784
55807
  if (!isNil.isNil(this.canvas)) {
55785
55808
  errorMessage.clearErrorMessage(this.canvas);
@@ -55986,9 +56009,9 @@ const Ls3dScene = class {
55986
56009
  render() {
55987
56010
  var _a, _b, _c;
55988
56011
  const effectiveLastUpdate = this.lastUpdate === undefined || this.lastUpdate === 0 ? ((_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state.currentSensorData.lastUpdate) !== null && _b !== void 0 ? _b : 0) : this.lastUpdate;
55989
- return (index.h(index.Host, { key: '386954d30c092e2157fddcb3bb0ad0107956d040' }, index.h("div", { key: 'b828028056490e6a8fb11d182f4afc62a680ff1d', class: "canvas", ref: el => {
56012
+ return (index.h(index.Host, { key: '4bb7a465cf45aa583e5ec0acb8fab74c7bb072aa' }, index.h("div", { key: '70a06fceee0f12cf2bc05e9dc1c522fc023a3cb7', class: "canvas", ref: el => {
55990
56013
  this.canvas = el;
55991
- } }, index.h("ls-indicator", { key: 'cd8a73176772b176b41c667a1d6943f023100386', class: "current-floor", "sensor-id": sensors.SENSOR.CurrentStop, "id-key": this.idKey }), index.h("ls-indicator", { key: '10bd56f6b2df0dc6178aaf0a7b1064535bb90618', class: "last-passed-floor", "sensor-id": sensors.SENSOR.LastPassedStop, "id-key": this.idKey }), index.h("div", { key: '0a985a3d6b874b75ac9b08048b264832a41ee5d7', class: "last-update" }, safeRelativeTime.getSafeRelativeTime(effectiveLastUpdate, (_c = this.store) === null || _c === void 0 ? void 0 : _c.state.locale))), index.h("slot", { key: '0444dd4682bd15ce5ba74d72fd8eb432137486be' })));
56014
+ } }, index.h("ls-indicator", { key: 'f03b525f176478278e326b8981f1c6bce4aec1cb', class: "current-floor", "sensor-id": sensors.SENSOR.CurrentStop, "id-key": this.idKey }), index.h("ls-indicator", { key: 'cf9e365cfe9c49e706e0624eb73851e2d6cd9285', class: "last-passed-floor", "sensor-id": sensors.SENSOR.LastPassedStop, "id-key": this.idKey }), index.h("div", { key: '1b2b2e2f8be8c6eb5cfa265b4abbb7b8d9ee5847', class: "last-update" }, safeRelativeTime.getSafeRelativeTime(effectiveLastUpdate, (_c = this.store) === null || _c === void 0 ? void 0 : _c.state.locale))), index.h("slot", { key: '2af78d783681325a1bfc281d37ccf560f207d95f' })));
55992
56015
  }
55993
56016
  static get assetsDirs() { return ["assets"]; }
55994
56017
  };
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-BRUAq2EB.js');
4
- var store = require('./store-BtH6O4f1.js');
5
- require('./nl-deIv6WRm.js');
6
- var api = require('./api-b_eLx-8f.js');
7
- var errorMessage = require('./error-message-CiYy98qb.js');
8
- var localeState = require('./locale-state-BR4WqALC.js');
4
+ var store = require('./store-BAC0TOVe.js');
5
+ require('./nl-CL-nUKrW.js');
6
+ var api = require('./api-aJkn6GAA.js');
7
+ var errorMessage = require('./error-message-BGSyIOKs.js');
8
+ var localeState = require('./locale-state-CSzvyXag.js');
9
9
  var sensors = require('./sensors-DqBjrPzl.js');
10
- var period = require('./period-BeITs0Af.js');
11
- var storeError = require('./store-error-ZdVHSlmr.js');
10
+ var period = require('./period-CrbNyBW4.js');
11
+ var storeError = require('./store-error-BAkEv9uP.js');
12
12
  var emDash = require('./em-dash-BaIXt_2W.js');
13
13
  var isNil = require('./isNil-B-fGcnNC.js');
14
14
  var debounce = require('./debounce-DUdTuYyk.js');