@expofp/floorplan 3.0.0-alpha.14 → 3.0.0-alpha.16

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 (103) hide show
  1. package/dist/browser/{Debug-Pul6-ZdY.js → Debug-DazuGIJc.js} +19 -10
  2. package/dist/browser/Demo-CXdISYQf.js +47 -0
  3. package/dist/browser/{Free-Dm2FRajw.js → Free-CVgHQ8yt.js} +29 -20
  4. package/dist/browser/Gallery-BMcvPLO_.js +288 -0
  5. package/dist/browser/GpsLoader-BiwFO3QG.js +140 -0
  6. package/dist/browser/{KioskStore-Bvvm0aNQ.js → KioskStore-NqUeUutQ.js} +58 -49
  7. package/dist/browser/Mapbox-PHCrBnx5.js +118 -0
  8. package/dist/browser/{SetKioskMode-BecTBVRp.js → SetKioskMode-DMQej1ec.js} +86 -77
  9. package/dist/browser/{ShowKiosk-C-6DHz7T.js → ShowKiosk-BWlBMcI7.js} +28 -19
  10. package/dist/browser/{ThreeComponent-Brnrh22I.js → ThreeComponent-Dmt2HPyX.js} +181 -172
  11. package/dist/browser/ViewerMenuPanel-CuqRZ7m1.js +77 -0
  12. package/dist/browser/boolean-editor-zsvPcNpX.js +157 -0
  13. package/dist/browser/bundle.json +32 -29
  14. package/dist/browser/{client-D3Op9Jdd.js → client-B2kCMH8A.js} +590 -581
  15. package/dist/browser/{data-0pZ-ZMEi.js → data-BtD6blv7.js} +276 -267
  16. package/dist/browser/{debug-overlay-6c_tWF4O.js → debug-overlay-CF0imHRX.js} +98 -89
  17. package/dist/browser/debug-ui-Zt7T7T-N.js +67 -0
  18. package/dist/browser/{favicon-DalyEhbd.js → favicon-Dj8hNa7i.js} +11 -2
  19. package/dist/browser/fetch-retry.umd-B-swKpFA.js +123 -0
  20. package/dist/browser/{flex-OW_m-DBA.js → flex-COa6XN1F.js} +80 -71
  21. package/dist/browser/{floorplan.ready-D-VQ-QvS.js → floorplan.ready-CNnM_Yyc.js} +12217 -14231
  22. package/dist/browser/fonts/efp-symbols.woff +0 -0
  23. package/dist/browser/index-B1P-x0sk.js +92 -0
  24. package/dist/browser/index-BEcZnTgd.js +54 -0
  25. package/dist/browser/{index-BUq8_R36.js → index-BeS6l0j-.js} +50 -41
  26. package/dist/browser/index-C04zJbbt.js +12475 -0
  27. package/dist/browser/index-CgWDjED_.js +57 -0
  28. package/dist/browser/{index-BuJlIIdP.js → index-CqICVJZO.js} +96 -87
  29. package/dist/browser/{index-AJbTBu7z.js → index-atMSRNM1.js} +258 -249
  30. package/dist/browser/index.js +11 -2
  31. package/dist/browser/jsx-runtime-DAY7g56y.js +40 -0
  32. package/dist/browser/locales/ar.json +3 -1
  33. package/dist/browser/locales/de.json +3 -1
  34. package/dist/browser/locales/es.json +3 -1
  35. package/dist/browser/locales/fr.json +3 -1
  36. package/dist/browser/locales/he.json +3 -1
  37. package/dist/browser/locales/it.json +3 -1
  38. package/dist/browser/locales/kk.json +3 -1
  39. package/dist/browser/locales/ko.json +3 -1
  40. package/dist/browser/locales/mn.json +3 -1
  41. package/dist/browser/locales/nl.json +3 -1
  42. package/dist/browser/locales/pl.json +3 -1
  43. package/dist/browser/locales/pt.json +3 -1
  44. package/dist/browser/locales/ru.json +3 -1
  45. package/dist/browser/locales/sv.json +3 -1
  46. package/dist/browser/locales/th.json +3 -1
  47. package/dist/browser/locales/tr.json +3 -1
  48. package/dist/browser/locales/uk.json +3 -1
  49. package/dist/browser/locales/vi.json +3 -1
  50. package/dist/browser/locales/zh.json +3 -1
  51. package/dist/browser/{main-CD9JioNt.js → main-DZpmA53N.js} +24 -15
  52. package/dist/browser/{particles.min-BZTb0pvb.js → particles.min-DXab_WLN.js} +43 -34
  53. package/dist/esm/components/Alert.d.ts +2 -0
  54. package/dist/esm/components/Alert.js +1 -1
  55. package/dist/esm/components/Badge.d.ts +3 -2
  56. package/dist/esm/components/Badge.js +1 -1
  57. package/dist/esm/components/CookieConsent.js +1 -1
  58. package/dist/esm/components/Kiosk/SetKiosk/storage.d.ts +1 -1
  59. package/dist/esm/components/Kiosk/SetKiosk/storage.js +1 -1
  60. package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
  61. package/dist/esm/components/Menu.js +1 -1
  62. package/dist/esm/components/Overlay.d.ts +2 -0
  63. package/dist/esm/components/Overlay.js +1 -1
  64. package/dist/esm/components/OverlayContainer.js +1 -1
  65. package/dist/esm/components/RoutePlanner/RoutePlanner.js +1 -1
  66. package/dist/esm/components/RoutePlanner/RoutePlannerHeader.js +1 -1
  67. package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +1 -1
  68. package/dist/esm/components/Schedule.js +1 -1
  69. package/dist/esm/components/SearchBox.js +1 -1
  70. package/dist/esm/components/ViewerMenuPanel.d.ts +5 -0
  71. package/dist/esm/components/ViewerMenuPanel.js +1 -0
  72. package/dist/esm/constants.d.ts +2 -0
  73. package/dist/esm/constants.js +1 -1
  74. package/dist/esm/floorplan.loader.d.ts +2 -0
  75. package/dist/esm/floorplan.loader.js +1 -1
  76. package/dist/esm/floorplan.ready.js +1 -1
  77. package/dist/esm/services/routing.js +1 -1
  78. package/dist/esm/store/LayerStore.d.ts +1 -0
  79. package/dist/esm/store/LayerStore.js +1 -1
  80. package/dist/esm/store/RoutePlannerStore.d.ts +16 -0
  81. package/dist/esm/store/RoutePlannerStore.js +1 -1
  82. package/dist/esm/store/UIState.d.ts +1 -0
  83. package/dist/esm/store/UIState.js +1 -1
  84. package/dist/esm/store/init/init-layers.js +1 -1
  85. package/dist/esm/tools/telemetry.d.ts +35 -0
  86. package/dist/esm/tools/telemetry.js +1 -0
  87. package/dist/esm/tools/track-event.d.ts +3 -1
  88. package/dist/esm/tools/track-event.js +1 -1
  89. package/dist/esm/utils/i18n.d.ts +2 -2
  90. package/dist/esm/utils/i18n.js +1 -1
  91. package/package.json +4 -3
  92. package/dist/browser/Demo-DN_Ej-P_.js +0 -38
  93. package/dist/browser/Gallery-TLr-wfCG.js +0 -279
  94. package/dist/browser/GpsLoader-CeS0cp98.js +0 -131
  95. package/dist/browser/Mapbox-DizBJSb0.js +0 -109
  96. package/dist/browser/boolean-editor-Duwgypgb.js +0 -148
  97. package/dist/browser/debug-ui-TGRI1j4k.js +0 -58
  98. package/dist/browser/fetch-retry.umd-BZ52tMyv.js +0 -114
  99. package/dist/browser/index-B2YV6GNs.js +0 -48
  100. package/dist/browser/index-D0SjrKD-.js +0 -45
  101. package/dist/browser/index-Vc2rrV4B.js +0 -83
  102. package/dist/browser/index-Zz9lJz5_.js +0 -10224
  103. package/dist/browser/jsx-runtime-jIxVPx5o.js +0 -31
@@ -1,58 +0,0 @@
1
- import { j as t } from "./jsx-runtime-jIxVPx5o.js";
2
- import { r as o } from "./index-Zz9lJz5_.js";
3
- import { a as d } from "./index-B2YV6GNs.js";
4
- const c = ({
5
- onClick: e
6
- }) => /* @__PURE__ */ t.jsx("button", { type: "button", style: {
7
- position: "fixed",
8
- right: 0,
9
- top: "50%",
10
- transform: "translateY(-50%)",
11
- padding: 0,
12
- border: "none",
13
- background: "transparent",
14
- cursor: "pointer",
15
- zIndex: 9999,
16
- boxSizing: "border-box"
17
- }, onClick: e, children: /* @__PURE__ */ t.jsx("div", { style: {
18
- width: 20,
19
- height: 64,
20
- paddingLeft: 4,
21
- display: "flex",
22
- alignItems: "center",
23
- justifyContent: "center",
24
- background: "var(--side-tab-bg, rgba(0,0,0,0.5))",
25
- color: "white",
26
- borderRadius: "14px 0 0 14px",
27
- fontSize: Math.round(64 * 0.25),
28
- lineHeight: 1,
29
- userSelect: "none",
30
- cursor: "pointer",
31
- filter: "grayscale(0.5)",
32
- boxSizing: "border-box"
33
- }, children: /* @__PURE__ */ t.jsx(b, { size: 64 * 0.7 }) }) });
34
- function b({
35
- size: e = 18,
36
- strokeWidth: n = 3,
37
- ...r
38
- }) {
39
- return /* @__PURE__ */ t.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "none", ...r, children: /* @__PURE__ */ t.jsx("path", { fill: "none", d: "M14.5 5.5L8.5 12l6 6.5", stroke: "currentColor", strokeWidth: n, strokeLinecap: "round", strokeLinejoin: "round" }) });
40
- }
41
- const f = o.lazy(async () => ({
42
- default: (await import("./debug-overlay-6c_tWF4O.js")).DebugOverlay
43
- })), p = ".expofp-floorplan-default", g = (e) => {
44
- var a;
45
- const [n, r] = o.useState(e.open), [s, l] = e.useDebugButtonState(), i = (a = e.hostSelector) != null ? a : p;
46
- return o.useEffect(() => d(() => {
47
- l(!0), r(!0);
48
- }), []), o.useEffect(() => {
49
- const u = document.querySelector(i);
50
- u && (u.style.visibility = n ? "hidden" : "visible");
51
- }, [n, i]), n ? /* @__PURE__ */ t.jsx(o.Suspense, { fallback: null, children: /* @__PURE__ */ t.jsx(f, { onClose: () => {
52
- r(!1);
53
- } }) }) : s ? /* @__PURE__ */ t.jsx(c, { onClick: () => r(!0) }) : null;
54
- };
55
- g.displayName = "DebugUi";
56
- export {
57
- g as DebugUi
58
- };
@@ -1,114 +0,0 @@
1
- import { f as x } from "./index-Zz9lJz5_.js";
2
- function R(s, g) {
3
- for (var c = 0; c < g.length; c++) {
4
- const o = g[c];
5
- if (typeof o != "string" && !Array.isArray(o)) {
6
- for (const n in o)
7
- if (n !== "default" && !(n in s)) {
8
- const i = Object.getOwnPropertyDescriptor(o, n);
9
- i && Object.defineProperty(s, n, i.get ? i : {
10
- enumerable: !0,
11
- get: () => o[n]
12
- });
13
- }
14
- }
15
- }
16
- return Object.freeze(Object.defineProperty(s, Symbol.toStringTag, { value: "Module" }));
17
- }
18
- var p = { exports: {} }, A = p.exports, d;
19
- function P() {
20
- return d || (d = 1, (function(s, g) {
21
- (function(c, o) {
22
- s.exports = o();
23
- })(A, (function() {
24
- var c = function(i, e) {
25
- if (e = e || {}, typeof i != "function")
26
- throw new n("fetch must be a function");
27
- if (typeof e != "object")
28
- throw new n("defaults must be an object");
29
- if (e.retries !== void 0 && !o(e.retries))
30
- throw new n("retries must be a positive integer");
31
- if (e.retryDelay !== void 0 && !o(e.retryDelay) && typeof e.retryDelay != "function")
32
- throw new n("retryDelay must be a positive integer or a function returning a positive integer");
33
- if (e.retryOn !== void 0 && !Array.isArray(e.retryOn) && typeof e.retryOn != "function")
34
- throw new n("retryOn property expects an array or function");
35
- var _ = {
36
- retries: 3,
37
- retryDelay: 1e3,
38
- retryOn: []
39
- };
40
- return e = Object.assign(_, e), function(m, r) {
41
- var v = e.retries, l = e.retryDelay, u = e.retryOn;
42
- if (r && r.retries !== void 0)
43
- if (o(r.retries))
44
- v = r.retries;
45
- else
46
- throw new n("retries must be a positive integer");
47
- if (r && r.retryDelay !== void 0)
48
- if (o(r.retryDelay) || typeof r.retryDelay == "function")
49
- l = r.retryDelay;
50
- else
51
- throw new n("retryDelay must be a positive integer or a function returning a positive integer");
52
- if (r && r.retryOn)
53
- if (Array.isArray(r.retryOn) || typeof r.retryOn == "function")
54
- u = r.retryOn;
55
- else
56
- throw new n("retryOn property expects an array or function");
57
- return new Promise(function(w, a) {
58
- var b = function(f) {
59
- var O = typeof Request < "u" && m instanceof Request ? m.clone() : m;
60
- i(O, r).then(function(t) {
61
- if (Array.isArray(u) && u.indexOf(t.status) === -1)
62
- w(t);
63
- else if (typeof u == "function")
64
- try {
65
- return Promise.resolve(u(f, null, t)).then(function(y) {
66
- y ? h(f, null, t) : w(t);
67
- }).catch(a);
68
- } catch (y) {
69
- a(y);
70
- }
71
- else
72
- f < v ? h(f, null, t) : w(t);
73
- }).catch(function(t) {
74
- if (typeof u == "function")
75
- try {
76
- Promise.resolve(u(f, t, null)).then(function(y) {
77
- y ? h(f, t, null) : a(t);
78
- }).catch(function(y) {
79
- a(y);
80
- });
81
- } catch (y) {
82
- a(y);
83
- }
84
- else f < v ? h(f, t, null) : a(t);
85
- });
86
- };
87
- function h(f, O, t) {
88
- var y = typeof l == "function" ? l(f, O, t) : l;
89
- setTimeout(function() {
90
- b(++f);
91
- }, y);
92
- }
93
- b(0);
94
- });
95
- };
96
- };
97
- function o(i) {
98
- return Number.isInteger(i) && i >= 0;
99
- }
100
- function n(i) {
101
- this.name = "ArgumentError", this.message = i;
102
- }
103
- return c;
104
- }));
105
- })(p)), p.exports;
106
- }
107
- var D = P();
108
- const q = /* @__PURE__ */ x(D), $ = /* @__PURE__ */ R({
109
- __proto__: null,
110
- default: q
111
- }, [D]);
112
- export {
113
- $ as f
114
- };
@@ -1,48 +0,0 @@
1
- import { j as f } from "./jsx-runtime-jIxVPx5o.js";
2
- import { r as m } from "./index-Vc2rrV4B.js";
3
- import "./index-Zz9lJz5_.js";
4
- const a = "dbg123", r = [];
5
- let u = !1, i = null;
6
- function g(o) {
7
- if (r.push(o), !u) {
8
- let t = function(n) {
9
- n.ctrlKey || n.metaKey || n.altKey || n.key.length === 1 && (e += n.key.toLowerCase(), e = e.slice(-a.length), e === a && (e = "", r.forEach((s) => s())));
10
- };
11
- u = !0;
12
- let e = "";
13
- i = t, document.addEventListener("keydown", t);
14
- }
15
- return () => {
16
- const t = r.indexOf(o);
17
- t !== -1 && r.splice(t, 1), r.length === 0 && i && (document.removeEventListener("keydown", i), i = null, u = !1);
18
- };
19
- }
20
- let c = !1;
21
- function b() {
22
- if (c)
23
- return;
24
- c = !0;
25
- const o = m("Show Debug Button Overlay"), t = async (e) => {
26
- const {
27
- DebugUi: n
28
- } = await import("./debug-ui-TGRI1j4k.js"), {
29
- createRoot: s
30
- } = await import("./client-D3Op9Jdd.js").then((d) => d.c), l = document.createElement("div");
31
- document.body.appendChild(l), s(l).render(/* @__PURE__ */ f.jsx(n, { useDebugButtonState: o.useState, open: e }));
32
- };
33
- if (o.get())
34
- t(!1);
35
- else {
36
- const e = g(() => {
37
- e(), o.set(!0), t(!0);
38
- });
39
- }
40
- }
41
- const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42
- __proto__: null,
43
- renderDebugUi: b
44
- }, Symbol.toStringTag, { value: "Module" }));
45
- export {
46
- g as a,
47
- E as i
48
- };
@@ -1,45 +0,0 @@
1
- import { f } from "./index-Zz9lJz5_.js";
2
- import { r as p } from "./index-BUq8_R36.js";
3
- var n = { exports: {} };
4
- var i;
5
- function m() {
6
- return i || (i = 1, (function(o) {
7
- (function() {
8
- var u = {}.hasOwnProperty;
9
- function s() {
10
- for (var r = "", t = 0; t < arguments.length; t++) {
11
- var e = arguments[t];
12
- e && (r = a(r, c(e)));
13
- }
14
- return r;
15
- }
16
- function c(r) {
17
- if (typeof r == "string" || typeof r == "number")
18
- return r;
19
- if (typeof r != "object")
20
- return "";
21
- if (Array.isArray(r))
22
- return s.apply(null, r);
23
- if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
24
- return r.toString();
25
- var t = "";
26
- for (var e in r)
27
- u.call(r, e) && r[e] && (t = a(t, e));
28
- return t;
29
- }
30
- function a(r, t) {
31
- return t ? r ? r + " " + t : r + t : r;
32
- }
33
- o.exports ? (s.default = s, o.exports = s) : window.classNames = s;
34
- })();
35
- })(n)), n.exports;
36
- }
37
- var l = m();
38
- const d = /* @__PURE__ */ f(l);
39
- var x = p();
40
- const S = /* @__PURE__ */ f(x);
41
- export {
42
- S as R,
43
- x as r,
44
- d as y
45
- };
@@ -1,83 +0,0 @@
1
- import { r as E, o as x } from "./index-Zz9lJz5_.js";
2
- import { j as O } from "./jsx-runtime-jIxVPx5o.js";
3
- let w = !1;
4
- function _() {
5
- w || (w = !0, !(typeof window > "u" && typeof document > "u") && import("./index-B2YV6GNs.js").then((t) => t.i).then(({
6
- renderDebugUi: t
7
- }) => {
8
- t();
9
- }).catch(() => {
10
- }));
11
- }
12
- const j = [], h = [], u = "efp-local-storage";
13
- function v(t, n, r, L) {
14
- const e = `efp-debug-setting-"${t}"`, s = () => I(localStorage.getItem(e), n), d = (o) => {
15
- localStorage.setItem(e, JSON.stringify(o)), y(e);
16
- }, f = () => {
17
- localStorage.removeItem(e), y(e);
18
- };
19
- h.push(f);
20
- function g() {
21
- const [o, i] = E.useState(s());
22
- return E.useEffect(() => {
23
- const p = () => i(s()), S = (a) => {
24
- a.key === e && p();
25
- }, m = (a) => {
26
- const {
27
- detail: c
28
- } = a;
29
- (c == null ? void 0 : c.key) === e && p();
30
- };
31
- return window.addEventListener("storage", S), window.addEventListener(u, m), () => {
32
- window.removeEventListener("storage", S), window.removeEventListener(u, m);
33
- };
34
- }, []), [o, d];
35
- }
36
- const l = () => {
37
- const [o, i] = g();
38
- return /* @__PURE__ */ O.jsx(r, { label: t, value: o, context: L, onChange: i });
39
- };
40
- return l.displayName = `DebugSetting(${t})`, j.push(l), {
41
- get: s,
42
- set: d,
43
- reset: f,
44
- useState: g
45
- };
46
- }
47
- function I(t, n) {
48
- if (t === null) return n;
49
- try {
50
- return JSON.parse(t);
51
- } catch {
52
- return n;
53
- }
54
- }
55
- function y(t) {
56
- window.dispatchEvent(new CustomEvent(u, {
57
- detail: {
58
- key: t
59
- }
60
- }));
61
- }
62
- function b(t) {
63
- const n = x.lazy(() => import("./boolean-editor-Duwgypgb.js").then((r) => ({
64
- default: r.BooleanEditor
65
- })));
66
- return v(t, !1, n);
67
- }
68
- function z() {
69
- h.forEach((t) => t());
70
- }
71
- const A = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
72
- __proto__: null,
73
- initDebug: _,
74
- registerBooleanSetting: b,
75
- registerSetting: v,
76
- resetAllSettings: z
77
- }, Symbol.toStringTag, { value: "Module" }));
78
- export {
79
- z as a,
80
- j as e,
81
- A as i,
82
- b as r
83
- };