@expofp/floorplan 3.4.0 → 3.4.1
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.
- package/dist/browser/{CookieConsent-BgzFI0o5.js → CookieConsent-DfcrHJE4.js} +8 -8
- package/dist/browser/{Debug-DwwZ0jVT.js → Debug-CmqdoArn.js} +9 -9
- package/dist/browser/{Demo-Bhv7muKd.js → Demo-Hoy_N0Z_.js} +11 -11
- package/dist/browser/{Free-EaDzP7U5.js → Free-CT6O_Rnj.js} +12 -12
- package/dist/browser/{Gallery-BFio06PY.js → Gallery-BljmDte7.js} +10 -10
- package/dist/browser/{GpsLoader-BhYirpWa.js → GpsLoader-gAQ2jImu.js} +36 -36
- package/dist/browser/{KioskStore-DiTPaFb2.js → KioskStore-pVMWw1SV.js} +31 -31
- package/dist/browser/{MaplibreAdapter-BKj3sK8A.js → MaplibreAdapter-BSNFyqqO.js} +77 -77
- package/dist/browser/{Modal-DVY124d5.js → Modal-vx2GyFQU.js} +10 -10
- package/dist/browser/{PermissionNotice-CrAxf_da.js → PermissionNotice-dzFosoL5.js} +7 -7
- package/dist/browser/{SetKioskMode-Cj1IbMbn.js → SetKioskMode-DpKxhNjj.js} +20 -20
- package/dist/browser/ShowKiosk-DK4cf8sZ.js +26 -0
- package/dist/browser/{TouchHand-BdZWU_I1.js → TouchHand-DJqTFALN.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-DbVIwrJO.js → ViewerMenuPanel-BLMOVmrA.js} +15 -15
- package/dist/browser/{add-debug-secret-listener-B8gxDWmn.js → add-debug-secret-listener-lzYkiNT3.js} +1 -1
- package/dist/browser/{boolean-editor-CIT7g6C5.js → boolean-editor-BIo7t1o3.js} +10 -10
- package/dist/browser/{bootIntercom-CcgHFRAw.js → bootIntercom-_8PT4FQ5.js} +2 -2
- package/dist/browser/{box-CydZk4HJ.js → box-ClFQfPBk.js} +5 -5
- package/dist/browser/{browser-DlMYMMvJ.js → browser-CNl61l-H.js} +2 -2
- package/dist/browser/bundle.json +58 -58
- package/dist/browser/{classnames-DmdaKMoa.js → classnames-CzOdLC35.js} +2 -2
- package/dist/browser/{client-8ygU_jvu.js → client-uxC45MrM.js} +4 -4
- package/dist/browser/{components-BgwIl1Lu.js → components-rG8z7y3m.js} +856 -845
- package/dist/browser/{createWayfinding-D9tuHHx5.js → createWayfinding-BnWXhjaY.js} +322 -322
- package/dist/browser/{debug-overlay-Dos3Ate2.js → debug-overlay-hexy4zxM.js} +15 -16
- package/dist/browser/{debug-ui-BjmKfkgV.js → debug-ui-DTEjq_eB.js} +18 -14
- package/dist/browser/{dist-B3Y58WKJ.js → dist-Cv_TFco-.js} +6 -6
- package/dist/browser/{dist-_wJOZ0rm.js → dist-DZk5xw-4.js} +5 -5
- package/dist/browser/{dist-Bm6VKnC2.js → dist-EPpxz8po.js} +3 -3
- package/dist/browser/{efp-debug-init-yyCWZRTx.js → efp-debug-init-Bs3FZwZP.js} +2 -2
- package/dist/browser/{enum-editor-D8X_uabc.js → enum-editor-C-CMuvRj.js} +11 -11
- package/dist/browser/{event-not-found-Bm_W5xxA.js → event-not-found-BoO2R7hM.js} +1 -1
- package/dist/browser/{exports-DnHrfjiU.js → exports-CaawsP5N.js} +1 -1
- package/dist/browser/{favicon-Bnz633J6.js → favicon-Cfw5edT7.js} +1 -1
- package/dist/browser/{fetch-retry.umd-BunUcQza.js → fetch-retry.umd-BNuFWdhd.js} +2 -2
- package/dist/browser/{flex-DwDJlblp.js → flex-C_CBGYoG.js} +6 -6
- package/dist/browser/{flex.props-BAGkFvkN.js → flex.props-BrTX-e6I.js} +2 -2
- package/dist/browser/{floorplan.loader-B3PUqtqn.js → floorplan.loader-BC6HaV0P.js} +298 -298
- package/dist/browser/{floorplan.ready-BAnq_GdS.js → floorplan.ready-DyEjsSpU.js} +299 -299
- package/dist/browser/{fuse-Bhsd7fBU.js → fuse-5Y1S2aYX.js} +2 -2
- package/dist/browser/{i18n-C5BBGKZk.js → i18n-CDf6bxFZ.js} +4 -4
- package/dist/browser/index.js +11 -12
- package/dist/browser/{jsx-runtime-Dk2--jeN.js → jsx-runtime-CQQX82Qz.js} +2 -2
- package/dist/browser/{lib-Brd2BCh_.js → lib-D8YEKiMm.js} +4 -4
- package/dist/browser/{main-pIcuVUIg.js → main-DLV6-NmW.js} +1 -1
- package/dist/browser/{mobx-BfCD0EQ-.js → mobx-BJrcB0Vj.js} +5 -5
- package/dist/browser/{particles.min-ChGMv-bm.js → particles.min-MhzX8Iok.js} +2 -2
- package/dist/browser/{prop-types-xdXFFTmm.js → prop-types-BQqJiJ_U.js} +2 -2
- package/dist/browser/{react-BbZc5Oeq.js → react-CsfnOko-.js} +2 -2
- package/dist/browser/{react-dom-BBDOhlbP.js → react-dom-l6xfbLNt.js} +3 -3
- package/dist/browser/{reset-all-settings-BQC7zljW.js → reset-all-settings-Dmpe88yX.js} +13 -10
- package/dist/browser/{rolldown-runtime-DS4W77DU.js → rolldown-runtime-BrK3KJzc.js} +1 -1
- package/dist/browser/{settings-CK-qRFM8.js → settings-BDwO4gl1.js} +2 -2
- package/dist/browser/{settings-item-CUnGC7xO.js → settings-item-CbJ6ldaB.js} +6 -6
- package/dist/browser/{storage-0QGL3b8S.js → storage-c5Z4yjiL.js} +5 -3
- package/dist/browser/{store-Bm4aFC2V.js → store-D_Y9lFsn.js} +1710 -1699
- package/dist/browser/{string-editor-BNry84Oh.js → string-editor-BOID14bU.js} +8 -8
- package/dist/browser/{theme-BIXywNMw.js → theme-Ca3r5e2H.js} +8 -8
- package/dist/browser/{ui-AzubEvGd.js → ui-BTe-W0zP.js} +9 -9
- package/dist/browser/{useRenderTarget-Bf7cQRFi.js → useRenderTarget-CbXuqspA.js} +4 -4
- package/dist/esm/components/AlertContainer.d.ts +3 -1
- package/dist/esm/components/AlertContainer.js +1 -1
- package/dist/esm/components/Booth/Booth.js +1 -1
- package/dist/esm/components/EntityItemContainer.d.ts +25 -2
- package/dist/esm/components/EntityItemContainer.js +1 -1
- package/dist/esm/components/EntityList.js +1 -1
- package/dist/esm/components/EntityListRow.d.ts +3 -2
- package/dist/esm/components/EntityListRow.js +1 -1
- package/dist/esm/components/Kiosk/KioskStore.d.ts +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/types.d.ts +1 -1
- package/dist/esm/components/Speakers.js +1 -1
- package/dist/esm/components/index.d.ts +2 -1
- package/dist/esm/store/MaplibreStore.js +1 -1
- package/dist/esm/ui/Alert/Alert.d.ts +1 -1
- package/dist/esm/ui/Alert/Alert.js +1 -1
- package/dist/esm/ui/EntityItem/EntityItem.d.ts +46 -0
- package/dist/esm/ui/EntityItem/EntityItem.js +1 -0
- package/dist/esm/ui/EntityItem/index.d.ts +3 -0
- package/dist/esm/ui/EntityItem/index.js +1 -0
- package/dist/esm/utils/isNumericLevel.d.ts +2 -0
- package/dist/esm/utils/isNumericLevel.js +1 -0
- package/package.json +3 -3
- package/dist/browser/ShowKiosk-CqmJT8yJ.js +0 -26
- package/dist/esm/components/EntityItem.d.ts +0 -44
- package/dist/esm/components/EntityItem.js +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.4.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.4.1" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "90fb92e4-0c35-4d73-af3d-09f610967014", e._sentryDebugIdIdentifier = "sentry-dbid-90fb92e4-0c35-4d73-af3d-09f610967014");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { t as n } from "./jsx-runtime-
|
|
12
|
-
import { E as r, c as i, l as a, o, r as s, v as c } from "./box-
|
|
13
|
-
import { t as l } from "./classnames-
|
|
14
|
-
import { t as u } from "./flex.props-
|
|
15
|
-
import { t as d } from "./settings-item-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-BrK3KJzc.js";
|
|
10
|
+
import { t } from "./react-CsfnOko-.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-CQQX82Qz.js";
|
|
12
|
+
import { E as r, c as i, l as a, o, r as s, v as c } from "./box-ClFQfPBk.js";
|
|
13
|
+
import { t as l } from "./classnames-CzOdLC35.js";
|
|
14
|
+
import { t as u } from "./flex.props-BrTX-e6I.js";
|
|
15
|
+
import { t as d } from "./settings-item-CbJ6ldaB.js";
|
|
16
16
|
//#region ../../node_modules/.pnpm/@radix-ui+themes@3.3.0_@types+react-dom@19.2.3_@types+react@19.2.16__@types+react@19.2._237ab8922e2725fc6ff51784b4ebc77f/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js
|
|
17
17
|
var f = {
|
|
18
18
|
size: {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.4.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.4.1" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "cff38276-aa8d-41db-a31e-c60b68cf072c", e._sentryDebugIdIdentifier = "sentry-dbid-cff38276-aa8d-41db-a31e-c60b68cf072c");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { t as n } from "./jsx-runtime-
|
|
12
|
-
import { t as r } from "./react-dom-
|
|
13
|
-
import { C as i, D as a, S as o, T as s, _ as c, a as l, g as u, w as d } from "./box-
|
|
14
|
-
import { c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./dist-
|
|
15
|
-
import { t as y } from "./classnames-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-BrK3KJzc.js";
|
|
10
|
+
import { t } from "./react-CsfnOko-.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-CQQX82Qz.js";
|
|
12
|
+
import { t as r } from "./react-dom-l6xfbLNt.js";
|
|
13
|
+
import { C as i, D as a, S as o, T as s, _ as c, a as l, g as u, w as d } from "./box-ClFQfPBk.js";
|
|
14
|
+
import { c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./dist-Cv_TFco-.js";
|
|
15
|
+
import { t as y } from "./classnames-CzOdLC35.js";
|
|
16
16
|
//#region ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@19.2.3_@types+react@19.2.16__@ty_0100624f14fe05e2fce87091cda222ea/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
17
17
|
var b = /* @__PURE__ */ e(r(), 1), x = /* @__PURE__ */ e(t(), 1), S = n(), C = Object.freeze({
|
|
18
18
|
position: "absolute",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.4.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.4.1" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "751711f5-8181-4be7-86b5-4dc6d2594afb", e._sentryDebugIdIdentifier = "sentry-dbid-751711f5-8181-4be7-86b5-4dc6d2594afb");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import {
|
|
11
|
-
import { t as r } from "./jsx-runtime-
|
|
12
|
-
import "./settings-
|
|
13
|
-
import { t as i } from "./browser-
|
|
14
|
-
import { t as a } from "./add-debug-secret-listener-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-BrK3KJzc.js";
|
|
10
|
+
import { a as t, r as n } from "./reset-all-settings-Dmpe88yX.js";
|
|
11
|
+
import { t as r } from "./jsx-runtime-CQQX82Qz.js";
|
|
12
|
+
import "./settings-BDwO4gl1.js";
|
|
13
|
+
import { t as i } from "./browser-CNl61l-H.js";
|
|
14
|
+
import { t as a } from "./add-debug-secret-listener-lzYkiNT3.js";
|
|
15
15
|
//#region ../debug/src/lib/ui/render-debug-ui.tsx
|
|
16
16
|
var o = /* @__PURE__ */ e(i(), 1), s = r(), c = !1;
|
|
17
17
|
function l() {
|
|
@@ -26,7 +26,7 @@ function l() {
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
let i = async (t) => {
|
|
29
|
-
let { DebugUi: n } = await import("./debug-ui-
|
|
29
|
+
let { DebugUi: n } = await import("./debug-ui-DTEjq_eB.js"), { createRoot: i } = await import("./client-uxC45MrM.js").then((t) => /* @__PURE__ */ e(t.default, 1)), a = document.createElement("div");
|
|
30
30
|
document.body.appendChild(a), i(a).render(/* @__PURE__ */ (0, s.jsx)(n, {
|
|
31
31
|
useDebugButtonState: r.useState,
|
|
32
32
|
open: t
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.4.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.4.1" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "efd08859-ff4a-4f73-977e-4ad657829cfc", e._sentryDebugIdIdentifier = "sentry-dbid-efd08859-ff4a-4f73-977e-4ad657829cfc");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { s as n } from "./store-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-BrK3KJzc.js";
|
|
10
|
+
import { t } from "./react-CsfnOko-.js";
|
|
11
|
+
import { s as n } from "./store-D_Y9lFsn.js";
|
|
12
12
|
//#region src/utils/getRenderTargetFromRoot.ts
|
|
13
13
|
var r = /* @__PURE__ */ e(t(), 1);
|
|
14
14
|
function i(e) {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { AlertProps } from "../ui/Alert";
|
|
3
|
-
declare const AlertContainer: (props: AlertProps
|
|
3
|
+
declare const AlertContainer: ({ closeLabel, ...props }: Omit<AlertProps, "closeLabel"> & {
|
|
4
|
+
closeLabel?: string;
|
|
5
|
+
}) => React.JSX.Element;
|
|
4
6
|
export default AlertContainer;
|
|
5
7
|
//# sourceMappingURL=AlertContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import e from"../ui/Alert";import{t as l}from"../utils/i18n";const m=({closeLabel:r,...t})=>o(e,{...t,closeLabel:r??l("Close alert")});export default m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o,Fragment as b,jsxs as u}from"react/jsx-runtime";import{useRef as
|
|
1
|
+
import{jsx as o,Fragment as b,jsxs as u}from"react/jsx-runtime";import{useRef as _,useEffect as y}from"react";import{useLocalStore as x,observer as p}from"mobx-react-lite";import l from"../../data";import c,{uiState as i}from"../../store";import{RegularBooth as N,SpecialBooth as S}from"../../store/BoothStore";import C from"../../tools/settings";import{t as E}from"../../utils/i18n";import T from"../Schedule";import I from"../SidebarActions";import{BoothOnHold as L}from"./BoothOnHold";import{BoothReserved as j}from"./BoothReserved";import{BoothWithoutExhibitor as k}from"./BoothWithoutExhibitor";import H from"../../utils/useHeatmapOverlay";import A from"../EntityItemContainer";import{LevelBadge as M}from"../";import"./Booth.scss";const U=p(()=>{const d=_(),e=x(()=>({get booth(){return i.selectedBooth},get regular(){return this.booth instanceof N?this.booth:null},get special(){return this.booth instanceof S?this.booth:null},get showReserve(){return!i.kiosk&&this.regular&&(this.regular.price==="0"&&!!this.regular.buyUrl||!!this.regular.reserveUrl)},get showBuy(){return!i.kiosk&&this.regular&&this.regular.buyUrl&&this.regular.price&&this.regular.price!=="0"},get title(){return this.booth.fullName},get reserveTitle(){return l.reserveButtonTerm||E("Reserve")},get descriptionCombined(){return this.booth.description||l.reserveInstructions||""}}));y(()=>{if(e.booth.schedule?.length){const t=new Date,r=[...e.booth.schedule].sort((n,s)=>new Date(n.startDate).getTime()-new Date(s.startDate).getTime());if(r.some(n=>(n.endDate?new Date(n.endDate):new Date(n.startDate))<t)){const n=r.find(s=>(s.endDate?new Date(s.endDate):new Date(s.startDate))>t);if(n&&d.current){const s=d.current.querySelector(`[data-event-id="${n.id}"]`);s&&setTimeout(()=>{const f=d.current.getBoundingClientRect(),R=s.getBoundingClientRect().top-f.top-20;d.current.scrollTop=R},100)}}}},[e.booth.schedule]);function v(t){const r=parseInt(t);c.clickExhibitor(c.exhibitorStore.exhibitors.find(g=>g.id===r))}function B(t){c.selectEventItem(t,!0)}function D(){e.booth.exhibitors.length===0&&(e.booth.bookmarkedDirectly=!e.booth.bookmarkedDirectly)}const F=o("div",{className:"booth__bar",children:e.title});let a=null;const h=e.booth.layer?.description,{heatmapBar:w}=H(e.booth),m=e.booth.exhibitors.sort((t,r)=>+!!r.featured-+!!t.featured).map(t=>o(A,{onClick:v,id:t.id.toString(),featured:t.featured,kind:"exhibitor",image:t.logo,title:t.name,bookmarked:t.bookmarked,visited:t.visited,additionalInfo:t.booths.map(r=>({type:"location",locationName:r.name,level:h||r.layer?.name}))},t.id.toString()));if(l.isRebooking)a=o(b,{children:m});else if(e.regular){const t=e.regular;t.onHold?a=o(L,{booth:t,description:"",showBuy:!1,showReserve:!1,isRebooking:!1,level:h}):t.reserved?a=o(j,{}):t.exhibitors.length===0?a=o(k,{booth:t,description:e.descriptionCombined,showBuy:!i.previewMode&&e.showBuy,showReserve:!i.previewMode&&e.showReserve,isRebooking:!1,level:h}):a=o(b,{children:m})}else a=u("div",{className:"booth__content -spec",children:[o(M,{level:h}),o("div",{className:"booth__desc",dangerouslySetInnerHTML:{__html:e.special.description}}),o(b,{children:m})]});return u("div",{className:"booth",children:[u("div",{className:"booth__header",children:[u("div",{className:"booth__header-name",children:[o("div",{className:"booth__header-icon",children:o("i",{className:"icon-booth-solid"})}),o("span",{dir:"auto",children:e.title}),w]}),o("button",{type:"button",onClick:()=>c.searchStore.handleBackAction(),className:"booth__header-close",children:o("i",{className:"icon-close"})})]}),!l.isRebooking&&C.wayfinding&&!i.isGuidedToursActive&&o("div",{className:"exhibitor__directions",style:{paddingLeft:15,paddingRight:15},children:o(I,{showBookmark:!i.disableBookmarked&&!l.hideBookmarks&&!i.kiosk&&e.booth.exhibitors.length===0,showShare:!1,inBookmark:e.booth.exhibitors.length===0?e.booth.bookmarkedDirectly:!1,onClickBookmark:D,onClickDirections:()=>{c.routeStore.clickRoute(null,e.booth)}})}),a,l.isRebooking&&e.regular&&e.regular.exhibitors.length===0&&o(k,{showBuy:!1,description:e.descriptionCombined,showReserve:!1,booth:e.regular,isRebooking:l.isRebooking,level:h}),!!e.booth.schedule?.length&&o(T,{isSessions:!0,showBooths:!0,events:[...e.booth.schedule].sort((t,r)=>new Date(t.startDate).getTime()-new Date(r.startDate).getTime()),onEventClick:B})]})});export default p(()=>!i.menu&&i.selectedBooth?o(U,{}):null);
|
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type { EntityItemAdditionalInfo } from "../ui/EntityItem";
|
|
3
|
+
export type EntityItemKind = "booth" | "exhibitor" | "event" | "speaker" | "category";
|
|
4
|
+
export interface EntityItemContainerProps {
|
|
5
|
+
id: string;
|
|
6
|
+
kind: EntityItemKind;
|
|
7
|
+
title: string;
|
|
8
|
+
subtitle?: string;
|
|
9
|
+
image?: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
itemsCount?: number;
|
|
12
|
+
date?: string;
|
|
13
|
+
time?: string;
|
|
14
|
+
additionalInfo?: EntityItemAdditionalInfo[];
|
|
15
|
+
bookmarked?: boolean;
|
|
16
|
+
featured?: boolean;
|
|
17
|
+
visited?: boolean;
|
|
18
|
+
current?: boolean;
|
|
19
|
+
heatmapColor?: string;
|
|
20
|
+
accentBorderColor?: string;
|
|
21
|
+
hideUserState?: boolean;
|
|
22
|
+
compactDetails?: boolean;
|
|
23
|
+
secondaryText?: string;
|
|
24
|
+
onClick?: (id: string) => void;
|
|
25
|
+
}
|
|
26
|
+
declare const EntityItemContainer: React.FunctionComponent<EntityItemContainerProps>;
|
|
4
27
|
export default EntityItemContainer;
|
|
5
28
|
//# sourceMappingURL=EntityItemContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as d}from"react/jsx-runtime";import{observer as u}from"mobx-react-lite";import{uiState as l}from"../store";import v from"../ui/EntityItem";import{t as o}from"../utils/i18n";import{isNumericLevel as h}from"../utils/isNumericLevel";const b={booth:{typeColor:"var(--color-booth)"},exhibitor:{typeColor:"var(--color-exhibitor)"},event:{typeColor:"var(--color-event)",hasDatetime:!0},speaker:{typeColor:"var(--color-speaker)",variant:"person"},category:{typeColor:"var(--color-category)",hasTitleBadge:!0,hasSubtitleLabel:!0}},y=e=>e.type==="location"?{...e,showLevelLabel:h(e.level)}:e,f=u(({kind:e,itemsCount:i,date:r,time:a,additionalInfo:s,...n})=>{const t=b[e],p=t.hasDatetime&&(r||a)?{date:r,time:a}:void 0,c=l.list.type==="search"?l.list.text:void 0,m={...n,additionalInfo:s?.map(y),typeColor:t.typeColor,iconClassName:`icon-${e}-solid`,variant:t.variant??"default",titleBadge:t.hasTitleBadge?i:void 0,datetime:p,subtitleLabel:t.hasSubtitleLabel?o("Category"):void 0,highlight:c,featuredLabel:o("Featured"),hallLabel:o("Hall"),levelLabel:o("Level")};return d(v,{...m})});export default f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as c}from"react/jsx-runtime";import{observer as x}from"mobx-react-lite";import{Suspense as v,lazy as C,useEffect as T,useRef as L,useCallback as E,useContext as w}from"react";import e,{uiState as t}from"../store";import R from"../tools/settings";import P from"./EntityListRow";import{OverlayScrollContext as O}from"./Overlay";import"./EntityList.scss";import H from"../ui/Spinner";import{t as I}from"../utils/i18n";const
|
|
1
|
+
import{jsx as c}from"react/jsx-runtime";import{observer as x}from"mobx-react-lite";import{Suspense as v,lazy as C,useEffect as T,useRef as L,useCallback as E,useContext as w}from"react";import e,{uiState as t}from"../store";import R from"../tools/settings";import P from"./EntityListRow";import{OverlayScrollContext as O}from"./Overlay";import"./EntityList.scss";import H from"../ui/Spinner";import{t as I}from"../utils/i18n";const S=()=>import("react-virtuoso").then(r=>({default:r.Virtuoso})).catch(()=>new Promise(r=>setTimeout(()=>r(S()),3e3))),V=C(S),_=["ipia2025"],z=({updatedScrollableRef:r,updateScroll:m})=>{const f=w(O),a=L(null),b=t.getListScrollItemId(t.list.type),g=_.includes(R.EXPO);T(()=>{const n=t.getListScrollTop(t.list.type),l=t.getListScrollItemId(t.list.type);(n>0||l)&&setTimeout(()=>{if(a.current){if(l){const o=t.listItems.findIndex(s=>s?.id?.toString()===l.toString());if(o!==-1){a.current.scrollToIndex({index:o,align:"center",behavior:"auto"});return}}n>0&&a.current.scrollTo({top:n,behavior:"auto"})}},100)},[t.list.type]);const u=t.showRouteInstantly,y=E((n,l)=>{const o=parseInt(l,10);switch(t.setListScrollItemId(t.list?.type,o),a.current?a.current.getState(s=>{const h=s?.scrollTop||0;t.setListScrollTop(t.list?.type,h)}):r.current&&t.setListScrollTop(t.list?.type,r.current.scrollTop||0),n){case"exhibitor":const s=e.exhibitorStore.exhibitors.find(i=>i.id===o);u?e.routeStore.clickRoute(null,e.routeStore.tempToBooth||s.booths[0]):e.clickExhibitor(s);break;case"booth":const h=e.boothStore.booths.find(i=>i.id===o);u?e.routeStore.clickRoute(null,h):e.clickBoothInList2(h);break;case"category":e.clickCategory(e.categoryStore.categories.find(i=>i.id===o));break;case"event":const p=e.eventStore.eventItems.find(i=>i.id===o);if(p){const i=e.boothStore.booths.find(d=>d.id===p.boothId);u&&i?e.routeStore.clickRoute(null,i):e.selectEventItem(p,!0)}break;case"speaker":{const i=e.speakerStore.speakers.find(d=>d.id===o);i&&e.selectSpeaker(i,!0);break}}},[u,r]),k=()=>c("div",{className:"list-empty",children:t.list.type==="search"?I("Oops, nothing found"):I("No items to show")});return f===null||t.setKioskModeEnabled?null:t.listItems.length?c("div",{style:{height:"100%",cursor:"pointer",resize:"both",minHeight:100},children:c(v,{fallback:c(H,{active:!0,isCenter:!0}),children:c(V,{ref:a,className:"list-virtual",style:{minHeight:t.listItems.length?"1px":0},data:t.listItems,itemContent:(n,l)=>{const o=l;if(!o)return null;const s=b?.toString()===o.id?.toString();return c(P,{item:o,index:n,current:s,compactDetails:g,onClick:y},o.id)},itemsRendered:()=>m&&setTimeout(m),totalListHeightChanged:()=>m&&m(),customScrollParent:f,totalCount:t.listItems.length,overscan:20,increaseViewportBy:200,initialItemCount:Math.min(t.listScrollIndex+30,t.listItems.length)})})}):c(k,{})};export default x(z);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { ListItem } from "../store/types";
|
|
3
|
+
import type { EntityItemKind } from "./EntityItemContainer";
|
|
3
4
|
interface Props {
|
|
4
5
|
item: ListItem;
|
|
5
6
|
index: number;
|
|
6
|
-
|
|
7
|
+
current: boolean;
|
|
7
8
|
compactDetails?: boolean;
|
|
8
|
-
onClick: (
|
|
9
|
+
onClick: (kind: EntityItemKind, id: string) => void;
|
|
9
10
|
}
|
|
10
11
|
declare const _default: React.FunctionComponent<Props>;
|
|
11
12
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{Exhibitor as f}from"../store/ExhibitorStore";import{BoothBase as m}from"../store/BoothStore";import{Category as h}from"../store/CategoryStore";import{SpeakerItem as b}from"../store/SpeakerStore";import{EventItem as g}from"../store/EventStore";import{HeatmapYah as p}from"../store/HeatmapStore";import y from"../utils/useHeatmapData";import v,{boothStore as S,uiState as a}from"../store";import n from"./EntityItemContainer";import I from"./YahRow";import c from"../data";import l from"dateformat";import{defaultRebookingOptions as x}from"./RebookingRadioGroup";import{observer as C}from"mobx-react-lite";const D=({item:o,index:k,current:i,compactDetails:u,onClick:d})=>{let s={background:void 0,clicks:void 0};if(a.heatmap&&(o instanceof f||o instanceof m||o instanceof p)&&(s=y(o)),o instanceof f){const t="exhibitor";return e(n,{onClick:r=>d(t,r),id:o.id.toString(),featured:o.featured,kind:t,image:o.logo,title:o.name,bookmarked:o.bookmarked,visited:o.visited,additionalInfo:o.booths.map(r=>({type:"location",locationName:r.name,level:r.layer&&(c.shortLevelName?r.layer.shortName:r.layer.description)||""})),current:i,compactDetails:u,heatmapColor:s.background,accentBorderColor:c.isRebooking?x[o.rebookingState]?.color.primary:void 0,hideUserState:a.kiosk,secondaryText:a.foundInDescriptionStruct[o.id]})}if("rect"in o)return e(n,{onClick:t=>d("booth",t),id:o.id.toString(),kind:"booth",title:o.name,icon:o.poiIcon,bookmarked:o.bookmarked,current:i,heatmapColor:s.background});if(o instanceof h)return e(n,{onClick:t=>d("category",t),id:o.id.toString(),itemsCount:o.exhibitors.length,kind:"category",title:o.name,current:i});if(o instanceof b){const t=[];return o.jobTitle&&t.push({type:"text",text:o.jobTitle}),e(n,{id:o.id.toString(),kind:"speaker",title:o.name,subtitle:o.company,image:o.photoFile,additionalInfo:t,bookmarked:o.bookmarked,onClick:()=>v.selectSpeaker(o,!0)},o.id)}if(o instanceof g){const t=o.boothId?S.booths.find(r=>r.id===o.boothId):null;return e(n,{id:o.id.toString(),onClick:r=>d("event",r),kind:"event",title:o.name,date:l(o.startDate,"dd mmm ddd"),time:`${l(o.startDate,"h:MM")} - ${l(o.endDate,"h:MM")}`,additionalInfo:t?[{type:"location",locationName:t.name,level:c.shortLevelName?t.layer?.shortName:t.layer?.description}]:[],bookmarked:o.bookmarked,visited:o.visited,current:i,hideUserState:a.kiosk,secondaryText:a.foundInDescriptionStruct[o.id]})}if(o instanceof p){const t=`list-row ${k===a.activeListIndex?"active":""}`;return e(I,{yah:o,className:t})}return null};export default C(D);
|
|
@@ -8,7 +8,7 @@ declare class KioskStore {
|
|
|
8
8
|
savedKiosk: Kiosk;
|
|
9
9
|
get hasUnsavedChanges(): boolean;
|
|
10
10
|
statusMessages: StatusMessage[];
|
|
11
|
-
addStatusMessage(message: AlertProps): void;
|
|
11
|
+
addStatusMessage(message: Omit<AlertProps, "closeLabel">): void;
|
|
12
12
|
clearStatusMessages(): void;
|
|
13
13
|
statusMessageTimer: number;
|
|
14
14
|
startCleanupMessages(): void;
|
|
@@ -19,7 +19,7 @@ export interface Kiosk extends KioskMapState {
|
|
|
19
19
|
iconSizePercent: number;
|
|
20
20
|
uiScale: number;
|
|
21
21
|
}
|
|
22
|
-
export interface StatusMessage extends AlertProps {
|
|
22
|
+
export interface StatusMessage extends Omit<AlertProps, "closeLabel"> {
|
|
23
23
|
id: number;
|
|
24
24
|
created?: number;
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r,jsxs as
|
|
1
|
+
import{jsx as r,jsxs as h}from"react/jsx-runtime";import{useRef as k,useMemo as S}from"react";import{useObserver as b}from"mobx-react-lite";import{observer as p}from"mobx-react-lite";import t,{uiState as m}from"../store";import{ShortcutsToolbar as T}from"./Shortcuts";import{t as d}from"../utils/i18n";import x from"fuse.js";import y from"./EntityItemContainer";import"./Speakers.scss";const v=p(({showFilters:i=!0})=>{const f=k(),l=t.speakerStore.speakers,{filters:{selectedCompanies:{value:a},selectedJobTitles:{value:n}}}=t.speakerFilterStore.state,c=S(()=>{let e=l;a.length>0&&(e=e.filter(s=>a.includes(s.company))),n.length>0&&(e=e.filter(s=>n.includes(s.jobTitle)));const o=t.searchStore.searchText;if(o){const s={keys:["name","company","jobTitle"],threshold:.3,ignoreLocation:!0,includeScore:!0};e=new x(e,s).search(o).map(u=>u.item)}return e},[l,t.searchStore.searchText,a,n,t.speakerFilterStore.state]);return b(()=>h("div",{className:"efp-speakers-content",children:[i&&r(T,{interfaceId:"speakers"}),c.length>0?r("div",{className:"efp-speakers-list",ref:f,children:c.map(e=>{const o=t.speakerStore.getEventsBySpeaker(e.id),s=[];return e.jobTitle&&s.push({type:"text",text:e.jobTitle}),r(y,{id:e.id.toString(),kind:"speaker",title:e.name,subtitle:e.company,image:e.photoFile,itemsCount:o.length,additionalInfo:s,bookmarked:e.bookmarked,onClick:()=>t.selectSpeaker(e,!0)},e.id)})}):r("div",{className:"list-empty",children:t.speakerFilterStore.activeFiltersCount>0||t.searchStore.searchText?d("No speakers found. Try adjusting your filters."):d("No speakers found")})]}))}),g=p(i=>m.list.type!=="speakers"||m.details?null:r(v,{...i}));export default g;
|
|
@@ -22,6 +22,7 @@ export { default as CookieConsent } from "./CookieConsent";
|
|
|
22
22
|
export { default as Controls } from "./Controls";
|
|
23
23
|
export { default as Demo } from "./Demo";
|
|
24
24
|
export { default as EntityItemContainer } from "./EntityItemContainer";
|
|
25
|
+
export type { EntityItemKind } from "./EntityItemContainer";
|
|
25
26
|
export { default as EntityList } from "./EntityList";
|
|
26
27
|
export { default as EntityListRow } from "./EntityListRow";
|
|
27
28
|
export { default as ErrorBoundary } from "./ErrorBoundary";
|
|
@@ -84,7 +85,7 @@ export type { ButtonProps, ButtonVariant, ButtonSize } from "../ui/Button";
|
|
|
84
85
|
export type { BadgeProps, BadgeVariant } from "../ui/Badge";
|
|
85
86
|
export type { CheckboxProps } from "../ui/Checkbox";
|
|
86
87
|
export type { CookieConsentProps } from "./CookieConsent";
|
|
87
|
-
export type { EntityItemProps,
|
|
88
|
+
export type { EntityItemProps, EntityItemAdditionalInfo } from "../ui/EntityItem";
|
|
88
89
|
export type { HeatmapLegendProps } from "../ui/HeatmapLegend";
|
|
89
90
|
export type { LevelBadgeProps } from "../ui/LevelBadge";
|
|
90
91
|
export type { MapControlsProps, MapControlLayersItem } from "./MapControls";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__esDecorate as i,__runInitializers as l}from"tslib";import{action as
|
|
1
|
+
import{__esDecorate as i,__runInitializers as l}from"tslib";import{action as o,computed as r,observable as d}from"mobx";import{fpGeo as I}from"../data/fpGeo";import n from"../data";import{registerEnumSetting as z}from"@expofp/debug";const A=import.meta.env?.VITE_EXPOFP_USE_MAPLIBRE_MAP==="true",B=import.meta.env?.VITE_EXPOFP_DISABLE_3D_TOGGLE!=="false";function L(){return typeof window>"u"||window.navigator.onLine}let x=(()=>{let a=[],p,m=[],c=[],f,h=[],u=[],b,M=[],_=[],w,g,v,O,S,E,V,k;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;p=[d],f=[d],b=[d],w=[o],g=[o],v=[o],O=[r({keepAlive:!0})],S=[r({keepAlive:!0})],E=[r({keepAlive:!0})],V=[r({keepAlive:!0})],k=[r({keepAlive:!0})],i(this,null,w,{kind:"method",name:"setOnline",static:!1,private:!1,access:{has:e=>"setOnline"in e,get:e=>e.setOnline},metadata:t},null,a),i(this,null,g,{kind:"method",name:"activateMaplibre",static:!1,private:!1,access:{has:e=>"activateMaplibre"in e,get:e=>e.activateMaplibre},metadata:t},null,a),i(this,null,v,{kind:"method",name:"deactivateMaplibre",static:!1,private:!1,access:{has:e=>"deactivateMaplibre"in e,get:e=>e.deactivateMaplibre},metadata:t},null,a),i(this,null,O,{kind:"getter",name:"hideModeSwitchButton",static:!1,private:!1,access:{has:e=>"hideModeSwitchButton"in e,get:e=>e.hideModeSwitchButton},metadata:t},null,a),i(this,null,S,{kind:"getter",name:"maplibreEnabled",static:!1,private:!1,access:{has:e=>"maplibreEnabled"in e,get:e=>e.maplibreEnabled},metadata:t},null,a),i(this,null,E,{kind:"getter",name:"useMaplibreMap",static:!1,private:!1,access:{has:e=>"useMaplibreMap"in e,get:e=>e.useMaplibreMap},metadata:t},null,a),i(this,null,V,{kind:"getter",name:"showMaplibre",static:!1,private:!1,access:{has:e=>"showMaplibre"in e,get:e=>e.showMaplibre},metadata:t},null,a),i(this,null,k,{kind:"getter",name:"isMap3d",static:!1,private:!1,access:{has:e=>"isMap3d"in e,get:e=>e.isMap3d},metadata:t},null,a),i(null,null,p,{kind:"field",name:"mapViewMode",static:!1,private:!1,access:{has:e=>"mapViewMode"in e,get:e=>e.mapViewMode,set:(e,s)=>{e.mapViewMode=s}},metadata:t},m,c),i(null,null,f,{kind:"field",name:"maplibreSelected",static:!1,private:!1,access:{has:e=>"maplibreSelected"in e,get:e=>e.maplibreSelected,set:(e,s)=>{e.maplibreSelected=s}},metadata:t},h,u),i(null,null,b,{kind:"field",name:"isOnline",static:!1,private:!1,access:{has:e=>"isOnline"in e,get:e=>e.isOnline,set:(e,s)=>{e.isOnline=s}},metadata:t},M,_),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=l(this,a);mapViewMode=l(this,m,"floorplan");maplibreSelected=(l(this,c),l(this,h,!1));isOnline=(l(this,u),l(this,M,L()));handleOnline=(l(this,_),()=>this.setOnline(!0));handleOffline=()=>this.setOnline(!1);constructor(t){this.rootStore=t,this.mapViewMode=this.getInitialViewMode(),this.maplibreSelected=this.mapViewMode!=="floorplan",typeof window<"u"&&(window.addEventListener("online",this.handleOnline),window.addEventListener("offline",this.handleOffline))}dispose(){typeof window>"u"||(window.removeEventListener("online",this.handleOnline),window.removeEventListener("offline",this.handleOffline))}setOnline(t){this.isOnline=t}activateMaplibre(){this.maplibreEnabled&&(this.mapViewMode=n.allow3dView&&this.mapViewMode!=="map3d"?"map3d":"map2d",this.maplibreSelected=!0)}deactivateMaplibre(){this.mapViewMode="floorplan",this.maplibreSelected=!1}get hideModeSwitchButton(){return!this.maplibreEnabled||!n.allow3dView||B||n.hideModeSwitchButton}get maplibreEnabled(){const t=this.rootStore.fp?.maplibre??window.__efpMaplibre,e=!!t?.offline&&(!!t.style||!!t.styleUrl);return this.useMaplibreMap&&!!I?.properties?.config&&!this.rootStore.uiState.kiosk&&(this.isOnline||e)}get useMaplibreMap(){if(y.get()==="on")return!0;if(y.get()==="off")return!1;const t=n.flags?.enableExperimentalMaplibre;return typeof t=="boolean"?t:A}get showMaplibre(){return this.maplibreEnabled&&(this.mapViewMode==="map2d"||this.mapViewMode==="map3d")}get isMap3d(){return this.maplibreEnabled&&this.mapViewMode==="map3d"}getInitialViewMode(){return this.maplibreEnabled?n.allow3dView&&!n.hide3dMapDefault?"map3d":"map2d":"floorplan"}}})();export default x;const y=z({key:"efp:maplibre",values:["default","on","off"],default:"default"});
|
|
@@ -13,7 +13,7 @@ export interface AlertProps {
|
|
|
13
13
|
showIcon?: boolean;
|
|
14
14
|
closable?: boolean;
|
|
15
15
|
title?: string;
|
|
16
|
-
closeLabel
|
|
16
|
+
closeLabel: string;
|
|
17
17
|
onClose?: () => void;
|
|
18
18
|
}
|
|
19
19
|
declare const Alert: ({ children, position, variant, inline, showIcon, size, closable, title, closeLabel, onClose, }: AlertProps) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r,jsxs as t}from"react/jsx-runtime";import i from"classnames";import"./Alert.scss";const u=({children:c,position:s,variant:e="info",inline:n=!1,showIcon:o=!0,size:d="md",closable:f=!1,title:l,closeLabel:a
|
|
1
|
+
import{jsx as r,jsxs as t}from"react/jsx-runtime";import i from"classnames";import"./Alert.scss";const u=({children:c,position:s,variant:e="info",inline:n=!1,showIcon:o=!0,size:d="md",closable:f=!1,title:l,closeLabel:a,onClose:p})=>{const m=()=>{switch(e){case"error":return"icon-close-solid";case"success":return"icon-checkmark-solid";case"warning":return"icon-warning-solid";default:return"icon-info-solid"}};return t("div",{className:i("efp-alert",`efp-alert--${e} efp-alert--${d}`,{"efp-alert--inline":n,[`efp-alert--${s}`]:s}),role:e==="error"||e==="warning"?"alert":"status","aria-live":e==="error"||e==="warning"?"assertive":"polite",children:[o&&r("div",{className:"efp-alert__icon",children:r("i",{className:i(m()),"aria-hidden":"true"})}),t("div",{className:"efp-alert__content",children:[l&&r("div",{className:"efp-alert__title",children:l}),c]}),f&&r("button",{type:"button",className:"efp-alert__close",onClick:p,"aria-label":a,title:a})]})};export default u;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./EntityItem.scss";
|
|
3
|
+
export type EntityItemAdditionalInfo = {
|
|
4
|
+
type: "location";
|
|
5
|
+
locationName?: string;
|
|
6
|
+
hall?: string;
|
|
7
|
+
level?: string;
|
|
8
|
+
showLevelLabel?: boolean;
|
|
9
|
+
} | {
|
|
10
|
+
type: "text";
|
|
11
|
+
text: string;
|
|
12
|
+
};
|
|
13
|
+
export interface EntityItemProps {
|
|
14
|
+
id: string;
|
|
15
|
+
title: string;
|
|
16
|
+
subtitle?: string;
|
|
17
|
+
image?: string;
|
|
18
|
+
icon?: string;
|
|
19
|
+
typeColor?: string;
|
|
20
|
+
iconClassName?: string;
|
|
21
|
+
variant?: "default" | "person";
|
|
22
|
+
titleBadge?: string | number;
|
|
23
|
+
datetime?: {
|
|
24
|
+
date?: string;
|
|
25
|
+
time?: string;
|
|
26
|
+
};
|
|
27
|
+
subtitleLabel?: string;
|
|
28
|
+
additionalInfo?: EntityItemAdditionalInfo[];
|
|
29
|
+
bookmarked?: boolean;
|
|
30
|
+
featured?: boolean;
|
|
31
|
+
visited?: boolean;
|
|
32
|
+
current?: boolean;
|
|
33
|
+
heatmapColor?: string;
|
|
34
|
+
accentBorderColor?: string;
|
|
35
|
+
hideUserState?: boolean;
|
|
36
|
+
compactDetails?: boolean;
|
|
37
|
+
secondaryText?: string;
|
|
38
|
+
highlight?: string;
|
|
39
|
+
featuredLabel: string;
|
|
40
|
+
hallLabel: string;
|
|
41
|
+
levelLabel: string;
|
|
42
|
+
onClick?: (id: string) => void;
|
|
43
|
+
}
|
|
44
|
+
declare const EntityItem: ({ id, title, subtitle, image, icon, typeColor, iconClassName, variant, titleBadge, datetime, subtitleLabel, additionalInfo, bookmarked, featured, visited, current, heatmapColor, accentBorderColor, hideUserState, compactDetails, secondaryText, highlight, featuredLabel, hallLabel, levelLabel, onClick, }: EntityItemProps) => React.JSX.Element;
|
|
45
|
+
export default EntityItem;
|
|
46
|
+
//# sourceMappingURL=EntityItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,Fragment as w,jsxs as t}from"react/jsx-runtime";import l from"classnames";import p from"../HighlightText";import"./EntityItem.scss";const q=({id:_,title:s,subtitle:n,image:c,icon:y,typeColor:f,iconClassName:v,variant:D="default",titleBadge:o,datetime:a,subtitleLabel:d,additionalInfo:N=[],bookmarked:A=!1,featured:u=!1,visited:x,current:g=!1,heatmapColor:m,accentBorderColor:r,hideUserState:E=!1,compactDetails:F,secondaryText:k,highlight:h,featuredLabel:H,hallLabel:I,levelLabel:K,onClick:b})=>{const j=!!(a?.date||a?.time),R=j||!!d||!!n;return e("div",{role:"button",className:l("efp-entity-item",{"is-featured":u,"is-visited":x,"is-current":g,"has-heatmap":!!m,"has-accent":!!r,"is-person":D==="person"}),"aria-label":s,tabIndex:0,"aria-current":g?"true":void 0,onClick:()=>b?.(_),onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),b?.(_))},style:{...f?{"--item-type-color":f}:{},...m&&{"--heatmap-color":m},...r&&{"--accent-border-color":r}},children:t("div",{className:"efp-entity-item__body",children:[t("div",{className:"efp-entity-item__left",children:[e("div",{className:"efp-entity-item__icon",children:y?e("img",{src:y,alt:s}):v?e("i",{className:v,"aria-hidden":"true"}):null}),!E&&t(w,{children:[x&&e("div",{className:"efp-entity-item__visited",children:e("i",{className:"icon-checkmark"})}),A&&e("i",{className:l("efp-entity-item__bookmarked","icon-bookmark-solid")})]})]}),t("div",{className:"efp-entity-item__right",children:[t("div",{className:l("efp-entity-item__content",{"with-image":c}),children:[t("div",{className:"efp-entity-item__header",children:[t("div",{className:"efp-entity-item__title",children:[e(p,{text:s,highlight:h}),k&&e("div",{className:"efp-entity-item__description",children:e(p,{text:k,highlight:h})}),o!==void 0&&e("span",{children:o})]}),u&&e("div",{className:"efp-entity-item__featured",children:H})]}),R&&t("div",{className:"efp-entity-item__subtitle",children:[j&&t("div",{className:"efp-entity-item__datetime",children:[a?.date&&e("strong",{children:a.date}),a?.time&&e("span",{children:a.time})]}),d&&e("span",{children:d}),n&&e("div",{children:n})]}),!!N.length&&e("ul",{className:l("efp-entity-item__details",{"compact-details":F}),children:N.map((i,S)=>t("li",{className:"efp-entity-item__details-item",children:[i.type==="location"&&t(w,{children:[i.locationName&&e("div",{className:"efp-entity-item__details-item-booth",children:e(p,{text:i.locationName,highlight:h})}),i.hall&&t("div",{children:[I,"\xA0",e("span",{children:i.hall})]}),i.level&&t("div",{children:[i.showLevelLabel&&t("span",{children:[K,"\xA0"]}),e("span",{children:i.level})]})]}),i.type==="text"&&e("span",{children:i.text})]},S))})]}),c&&e("div",{className:"efp-entity-item__image",children:e("img",{src:c,alt:s})})]})]})})};export default q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default}from"./EntityItem";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const isNumericLevel=t=>!!t&&/^\d+$/.test(t);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expofp/floorplan",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/expofp/efp-app.git",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"tslib": "^2.3.0",
|
|
74
74
|
"uuid": "^9.0.1",
|
|
75
75
|
"zod": "4.3.5",
|
|
76
|
-
"@expofp/
|
|
77
|
-
"@expofp/
|
|
76
|
+
"@expofp/resolve": "3.4.1",
|
|
77
|
+
"@expofp/debug": "3.4.1"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@babel/plugin-proposal-decorators": "^7.29.7",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
(function() {
|
|
2
|
-
try {
|
|
3
|
-
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.4.0" };
|
|
5
|
-
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "27dd0d29-64f3-4103-bd29-e974abc24146", e._sentryDebugIdIdentifier = "sentry-dbid-27dd0d29-64f3-4103-bd29-e974abc24146");
|
|
7
|
-
} catch {}
|
|
8
|
-
})();
|
|
9
|
-
import "./rolldown-runtime-DS4W77DU.js";
|
|
10
|
-
import { t as e } from "./react-BbZc5Oeq.js";
|
|
11
|
-
import { t } from "./jsx-runtime-Dk2--jeN.js";
|
|
12
|
-
import "./i18n-C5BBGKZk.js";
|
|
13
|
-
import { T as n, in as r, o as i, w as a } from "./store-Bm4aFC2V.js";
|
|
14
|
-
import { n as o } from "./mobx-BfCD0EQ-.js";
|
|
15
|
-
import { t as s } from "./KioskStore-DiTPaFb2.js";
|
|
16
|
-
import { t as c } from "./TouchHand-BdZWU_I1.js";
|
|
17
|
-
e();
|
|
18
|
-
var l = t(), u = r(() => (o(() => {
|
|
19
|
-
if (localStorage.getItem("kiosk") === "0") return;
|
|
20
|
-
let e = s.restoreData();
|
|
21
|
-
if (e) return a(e, !0), n(e), i.setResetCameraFn(() => s.resetCamera()), () => {
|
|
22
|
-
i.uiState.setKioskData(null), i.uiState.resetMapSettings(), s.resetCamera();
|
|
23
|
-
};
|
|
24
|
-
}), i.uiState.kiosk && i.uiState.inIdle ? /* @__PURE__ */ (0, l.jsx)(c, {}) : null));
|
|
25
|
-
//#endregion
|
|
26
|
-
export { u as default };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./EntityItem.scss";
|
|
3
|
-
export type EntityItemAdditionalInfo = {
|
|
4
|
-
type: "location";
|
|
5
|
-
locationName: string;
|
|
6
|
-
hall?: string;
|
|
7
|
-
level?: string;
|
|
8
|
-
} | {
|
|
9
|
-
type: "event";
|
|
10
|
-
text: string;
|
|
11
|
-
} | {
|
|
12
|
-
type: "speaker";
|
|
13
|
-
text: string;
|
|
14
|
-
};
|
|
15
|
-
export type EntityItemType = "booth" | "exhibitor" | "event" | "speaker" | "category" | "cafe" | "restaurant" | "lounge" | "stage" | "other";
|
|
16
|
-
export interface EntityItemProps {
|
|
17
|
-
id: string;
|
|
18
|
-
type: EntityItemType;
|
|
19
|
-
url: string;
|
|
20
|
-
icon?: string;
|
|
21
|
-
title: string;
|
|
22
|
-
subtitle?: string;
|
|
23
|
-
date?: string;
|
|
24
|
-
time?: string;
|
|
25
|
-
itemsCount?: number;
|
|
26
|
-
image?: string;
|
|
27
|
-
additionalInfo?: EntityItemAdditionalInfo[];
|
|
28
|
-
bookmarked?: boolean;
|
|
29
|
-
featured?: boolean;
|
|
30
|
-
locationTerm?: string;
|
|
31
|
-
visited?: boolean;
|
|
32
|
-
onClick?: (type: EntityItemType, id: string) => void;
|
|
33
|
-
highlighted?: boolean;
|
|
34
|
-
heatmapColor?: string;
|
|
35
|
-
heatmapClicks?: number;
|
|
36
|
-
rebookingColor?: string;
|
|
37
|
-
kioskMode?: boolean;
|
|
38
|
-
compactDetails?: boolean;
|
|
39
|
-
foundInDescription?: string;
|
|
40
|
-
highlight?: string;
|
|
41
|
-
}
|
|
42
|
-
declare const EntityItem: React.FC<EntityItemProps>;
|
|
43
|
-
export default EntityItem;
|
|
44
|
-
//# sourceMappingURL=EntityItem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e,Fragment as T,jsxs as a}from"react/jsx-runtime";import r from"classnames";import v from"../ui/HighlightText";import"./EntityItem.scss";import{t as c}from"../utils/i18n";const H=["booth","exhibitor","event","speaker","category"],L=l=>/^\d+$/.test(l),S=({id:l,type:i,url:A,title:s,icon:f,subtitle:n,date:d,time:m,itemsCount:y,image:h,additionalInfo:N=[],bookmarked:j=!1,featured:g=!1,locationTerm:I="Booth",visited:x,onClick:o,highlighted:u=!1,heatmapColor:_,heatmapClicks:O,rebookingColor:k,kioskMode:E=!1,compactDetails:$,foundInDescription:b,highlight:p})=>{const w=H.includes(i)?i:"other";return e("div",{role:"button",className:r("efp-entity-item",{"is-featured":g,"is-visited":x,"is-highlighted":u,"has-heatmap":!!_,"is-speaker":i==="speaker"}),"aria-label":s,tabIndex:0,"aria-pressed":u||void 0,onClick:()=>o&&o(i,l),onKeyDown:t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),o?.(i,l))},style:{"--item-type-color":`var(--color-${w})`,..._&&{"--heatmap-color":_},...k?{borderLeft:`5px solid ${k}`}:{}},children:a("div",{className:"efp-entity-item__body",children:[a("div",{className:"efp-entity-item__left",children:[e("div",{className:"efp-entity-item__icon",children:f?e("img",{src:f,alt:s}):e("i",{className:`icon-${i}-solid`,"aria-hidden":"true"})}),!E&&a(T,{children:[x&&e("div",{className:"efp-entity-item__visited",children:e("i",{className:"icon-checkmark"})}),j&&e("i",{className:r("efp-entity-item__bookmarked","icon-bookmark-solid")})]})]}),a("div",{className:"efp-entity-item__right",children:[a("div",{className:r("efp-entity-item__content",{"with-image":h}),children:[a("div",{className:"efp-entity-item__header",children:[a("div",{className:"efp-entity-item__title",children:[e(v,{text:s,highlight:p}),b&&e("div",{className:"efp-entity-item__description",children:e(v,{text:b,highlight:p})}),i==="category"&&e("span",{children:y!==void 0&&y})]}),g&&e("div",{className:"efp-entity-item__featured",children:c("Featured")})]}),(i==="event"||i==="category"||n)&&a("div",{className:"efp-entity-item__subtitle",children:[i==="event"&&(d||m)&&a("div",{className:"efp-entity-item__datetime",children:[d&&e("strong",{children:d}),m&&e("span",{children:m})]}),i==="category"&&e("span",{children:c("Category")}),n&&e("div",{children:n})]}),!!N.length&&i!=="booth"&&e("ul",{className:r("efp-entity-item__details",{"compact-details":$}),children:N.map((t,F)=>a("li",{className:"efp-entity-item__details-item",children:[t.type==="location"&&a(T,{children:[i!=="category"&&i!=="booth"&&e("div",{className:"efp-entity-item__details-item-booth",children:e(v,{text:t.locationName,highlight:p})}),t.hall&&a("div",{children:[c("Hall"),"\xA0",e("span",{children:t.hall})]}),t.level&&a("div",{children:[L(t.level)&&a("span",{children:[c("Level"),"\xA0"]}),e("span",{children:t.level})]})]}),(t.type==="event"||t.type==="speaker")&&e("span",{children:t.text})]},F))})]}),h&&e("div",{className:"efp-entity-item__image",children:e("img",{src:h,alt:s})})]})]})})};export default S;
|