@conboai/app.db.query 1.0.9 → 1.1.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.
- package/README.md +79 -0
- package/dist/app.db.query.js +6 -6
- package/dist/apps/ConboMatch/ConboMatch.d.ts +8 -0
- package/dist/apps/ConboMatch/components/AppContent/index.d.ts +1 -0
- package/dist/apps/ConboMatch/components/AppLeftBar/AppLeftBar.d.ts +6 -0
- package/dist/apps/ConboMatch/components/AppRightBar/AppRightBar.d.ts +5 -0
- package/dist/apps/ConboMatch/components/ConboMatchHeader/index.d.ts +1 -0
- package/dist/apps/{conbo-match/components/sidebar-left-filter/sidebar-left-filter.d.ts → ConboMatch/components/LeftSideBarFilter/LeftSideBarFilter.d.ts} +1 -1
- package/dist/apps/ConboMatch/components/LeftSideBarFilter/index.d.ts +1 -0
- package/dist/apps/ConboMatch/index.d.ts +1 -0
- package/dist/apps/EntitySearch/components/AppContent/styles.d.ts +1 -1
- package/dist/apps/ImageAnalysis/components/AppRightBar/styles.d.ts +0 -1
- package/dist/apps/PathAnalysis/PathAnalysis.d.ts +12 -0
- package/dist/apps/PathAnalysis/components/Header/Header.d.ts +10 -0
- package/dist/apps/PathAnalysis/components/Header/index.d.ts +1 -0
- package/dist/apps/PathAnalysis/components/MainContent/MainContent.d.ts +6 -0
- package/dist/apps/PathAnalysis/components/MainContent/index.d.ts +1 -0
- package/dist/apps/PathAnalysis/components/MainContent/styles.d.ts +12 -0
- package/dist/apps/PathAnalysis/components/MainContent/utils.d.ts +11 -0
- package/dist/apps/PathAnalysis/components/RightBar/RightBar.d.ts +8 -0
- package/dist/apps/PathAnalysis/components/RightBar/columnsDefs.d.ts +26 -0
- package/dist/apps/PathAnalysis/components/RightBar/index.d.ts +1 -0
- package/dist/apps/PathAnalysis/components/RightBar/styles.d.ts +21 -0
- package/dist/apps/PathAnalysis/components/RightBar/useFetchRightBarData.d.ts +12 -0
- package/dist/apps/PathAnalysis/components/RightBar/utils.d.ts +30 -0
- package/dist/apps/PathAnalysis/index.d.ts +1 -0
- package/dist/build/index.d.ts +2 -2
- package/dist/{index-b943735c.js → index-c94a2f3c.js} +44937 -43519
- package/dist/{mapbox-gl-mk7lqDBW-00b01ea3.js → mapbox-gl-mk7lqDBW-eef7130f.js} +1 -1
- package/package.json +1 -1
- package/dist/apps/conbo-match/components/app-content/index.d.ts +0 -1
- package/dist/apps/conbo-match/components/app-sidebar-left/app-sidebar-left.d.ts +0 -6
- package/dist/apps/conbo-match/components/app-sidebar-left/index.d.ts +0 -1
- package/dist/apps/conbo-match/components/app-sidebar-right/app-sidebar-right.d.ts +0 -5
- package/dist/apps/conbo-match/components/app-sidebar-right/index.d.ts +0 -1
- package/dist/apps/conbo-match/components/conbo-match-header/index.d.ts +0 -1
- package/dist/apps/conbo-match/components/conbo-match-root/conbo-match-root.d.ts +0 -8
- package/dist/apps/conbo-match/components/conbo-match-root/index.d.ts +0 -1
- package/dist/apps/conbo-match/components/sidebar-left-filter/index.d.ts +0 -1
- package/dist/apps/conbo-match/index.d.ts +0 -1
- /package/dist/apps/{conbo-match/components/app-content/app-content.d.ts → ConboMatch/components/AppContent/AppContent.d.ts} +0 -0
- /package/dist/apps/{conbo-match/components/app-content/use-column-defs.d.ts → ConboMatch/components/AppContent/useColumnDefs.d.ts} +0 -0
- /package/dist/apps/{conbo-match/components/app-content → ConboMatch/components/AppContent}/utils.d.ts +0 -0
- /package/dist/apps/{conbo-match/components/app-sidebar-right/columns-defs.d.ts → ConboMatch/components/AppRightBar/columnsDefs.d.ts} +0 -0
- /package/dist/apps/{conbo-match/components/app-sidebar-right → ConboMatch/components/AppRightBar}/styles.d.ts +0 -0
- /package/dist/apps/{conbo-match/components/app-sidebar-right → ConboMatch/components/AppRightBar}/utils.d.ts +0 -0
- /package/dist/apps/{conbo-match/components/conbo-match-header/conbo-match-header.d.ts → ConboMatch/components/ConboMatchHeader/conboMatchHeader.d.ts} +0 -0
- /package/dist/apps/{conbo-match/components/sidebar-left-filter → ConboMatch/components/LeftSideBarFilter}/config.d.ts +0 -0
- /package/dist/apps/{conbo-match/components/sidebar-left-filter → ConboMatch/components/LeftSideBarFilter}/styles.d.ts +0 -0
- /package/dist/apps/{conbo-match → ConboMatch}/data.d.ts +0 -0
- /package/dist/apps/{conbo-match/hooks/use-tab-selected.d.ts → ConboMatch/hooks/useTabSelected.d.ts} +0 -0
- /package/dist/apps/{conbo-match → ConboMatch}/selectors.d.ts +0 -0
- /package/dist/apps/{conbo-match → ConboMatch}/store.d.ts +0 -0
- /package/dist/apps/{conbo-match → ConboMatch}/utils.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,5 +1,84 @@
|
|
|
1
1
|
# React + TypeScript + Vite
|
|
2
2
|
|
|
3
|
+
## Apps architecture (how your apps are built)
|
|
4
|
+
|
|
5
|
+
This repo is structured like a **library of independent apps** (React components) that share a common `Layout`, common Zustand store pieces, and common API clients.
|
|
6
|
+
|
|
7
|
+
### Where apps live
|
|
8
|
+
|
|
9
|
+
- **Apps**: `src/apps/<AppName>/`
|
|
10
|
+
- **Shared layout & UI**: `src/shared/`
|
|
11
|
+
- **Shared hooks**: `src/hooks/`
|
|
12
|
+
- **Shared Zustand store**: `src/store/`
|
|
13
|
+
- **Generated API clients (OpenAPI)**: `src/api/`
|
|
14
|
+
|
|
15
|
+
### App “contract” (what an app exports)
|
|
16
|
+
|
|
17
|
+
Each app exposes a single top-level React component that typically takes:
|
|
18
|
+
|
|
19
|
+
- `deploymentId: string` (required)
|
|
20
|
+
- `baseUrl?: string` (optional; used by `useApi(baseUrl)` to set OpenAPI client BASE urls)
|
|
21
|
+
- `isAdmin?: boolean` (optional; often affects left sidebar options)
|
|
22
|
+
- `onHomeClick?: () => void` (optional; passed into the header)
|
|
23
|
+
- `UserComponent?: React.FC` or `() => JSX.Element` (optional; rendered in the header right side)
|
|
24
|
+
|
|
25
|
+
Most apps follow this shape:
|
|
26
|
+
|
|
27
|
+
- call `useApi(baseUrl)`
|
|
28
|
+
- call `useAppConfigurationsEffect(deploymentId)` (loads feeds/site/deployment config/reference points into the shared store)
|
|
29
|
+
- set `document.title = APPS_TITLE.<...>`
|
|
30
|
+
- render `Layout` with `header`, `sidebarLeft`, `content`, `sidebarRight`
|
|
31
|
+
|
|
32
|
+
### How apps are wired/consumed
|
|
33
|
+
|
|
34
|
+
- **Dev/demo mounting**: `src/main.tsx` mounts exactly **one** app component (others are commented out). This is how you run a specific app locally.
|
|
35
|
+
- **Public exports (library entry)**: `src/build/index.ts` re-exports app components. This is what consumers import from when this package is built/published.
|
|
36
|
+
- **Meta registry (titles/descriptions)**: `src/helpers/applicationsMeta.ts`
|
|
37
|
+
- **Titles enum-ish constants**: `src/helpers/constants.ts` (`APPS_TITLE`)
|
|
38
|
+
|
|
39
|
+
## Adding a new app (checklist)
|
|
40
|
+
|
|
41
|
+
When you add a new app, follow these steps:
|
|
42
|
+
|
|
43
|
+
### 1) Create the app folder
|
|
44
|
+
|
|
45
|
+
Create `src/apps/<NewApp>/` with at least:
|
|
46
|
+
|
|
47
|
+
- `src/apps/<NewApp>/<NewApp>.tsx` (root component)
|
|
48
|
+
- `src/apps/<NewApp>/index.ts` (re-export)
|
|
49
|
+
|
|
50
|
+
Root component should accept `deploymentId` and optionally `baseUrl`, `isAdmin`, `onHomeClick`, `UserComponent`.
|
|
51
|
+
|
|
52
|
+
### 2) Re-export it from the build entry
|
|
53
|
+
|
|
54
|
+
Update `src/build/index.ts`:
|
|
55
|
+
|
|
56
|
+
- `export { NewApp } from "@/apps/<NewApp>";`
|
|
57
|
+
|
|
58
|
+
### 3) Add the app title constant
|
|
59
|
+
|
|
60
|
+
Update `src/helpers/constants.ts`:
|
|
61
|
+
|
|
62
|
+
- add `APPS_TITLE.NEW_APP = "New App"` (or your exact name)
|
|
63
|
+
|
|
64
|
+
### 4) Add app meta (optional but consistent)
|
|
65
|
+
|
|
66
|
+
Update `src/helpers/applicationsMeta.ts`:
|
|
67
|
+
|
|
68
|
+
- add `{ title, description }` entry for the new app
|
|
69
|
+
|
|
70
|
+
### 5) Run it locally in `main.tsx`
|
|
71
|
+
|
|
72
|
+
Temporarily mount it in `src/main.tsx` for development, similar to the existing examples:
|
|
73
|
+
|
|
74
|
+
- import your app from `@/apps/<NewApp>`
|
|
75
|
+
- render `<NewApp deploymentId={"..."} baseUrl="https://dev.portsight.ai" />`
|
|
76
|
+
|
|
77
|
+
## Notes about API base URLs
|
|
78
|
+
|
|
79
|
+
`useApi(baseUrl)` sets BASE urls for the generated OpenAPI clients in `src/api/*`.
|
|
80
|
+
Some services are still hard-coded to `"https://portsight.ai"` inside `src/hooks/useApi.ts` (marked with TODO).
|
|
81
|
+
|
|
3
82
|
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
83
|
|
|
5
84
|
Currently, two official plugins are available:
|
package/dist/app.db.query.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('*,*:after,*:before{box-sizing:inherit}html{box-sizing:border-box}body,html{padding:0;margin:0;font-weight:400;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:antialiased;font-variant-ligatures:none;line-height:1.5;scroll-behavior:smooth}section{width:100%}img{max-width:100%;height:auto}button.gm-fullscreen-control{background-color:#0000007f!important;width:32px!important;height:32px!important;border-radius:4px!important}button.gm-fullscreen-control:hover{opacity:70%}button.gm-fullscreen-control img{filter:brightness(0) invert(1);opacity:80%;width:16px!important;height:18px}:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width : 480px){.Toastify__toast-container{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}}.Toastify__toast{--y: 0;position:relative;-ms-touch-action:none;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;-ms-flex:1 1 auto;flex:1 1 auto;padding:6px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;-ms-flex:1;flex:1}.Toastify__toast-icon{-webkit-margin-end:10px;margin-inline-end:10px;width:20px;-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width : 480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;-ms-flex-item-align:start;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.custom-toast-container{width:auto;padding:0}.custom-toast{max-width:496px;height:64px;position:relative;background-color:#fff;border-radius:8px;padding:12px;box-shadow:0 2px 10px #0000001a;display:flex;align-items:center}.custom-toast-body{display:flex;align-items:center;font-weight:500;color:#333;font-size:14px;gap:12px;padding:0;margin:0 30px 0 0}.custom-toast .Toastify__toast-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;margin:0}.custom-toast--error .Toastify__toast-icon{background-color:#fde8e8;color:#d32f2f}.custom-toast--warning .Toastify__toast-icon{background-color:#fff4e5;color:#ed6c02}.custom-toast--info .Toastify__toast-icon{background-color:#e7f3ff;color:#0288d1}.custom-toast--success .Toastify__toast-icon{background-color:#e8f5e9;color:#2e7d32}.Toastify__close-button{position:absolute;top:8px;right:8px;color:#9e9e9e;background:none;border:none;font-size:18px;cursor:pointer}.Toastify__close-button:hover{color:#616161}')),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
import { a as r, e as t, C as i, b as c, d as n, c as p, E as C, F as
|
|
2
|
+
import { a as r, e as t, C as i, b as c, d as n, c as p, E as C, F as h, H as l, P as S, S as m, f as b } from "./index-c94a2f3c.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
export {
|
|
@@ -10,9 +10,9 @@ export {
|
|
|
10
10
|
n as ConboMatch,
|
|
11
11
|
p as EntitySearch,
|
|
12
12
|
C as EventLog,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
S as
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
h as FeedStreams,
|
|
14
|
+
l as HeatMap,
|
|
15
|
+
S as PathAnalysis,
|
|
16
|
+
m as SearchTool,
|
|
17
|
+
b as applicationsMeta
|
|
18
18
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type InputProps = {
|
|
2
|
+
deploymentId: string;
|
|
3
|
+
baseUrl?: string;
|
|
4
|
+
onHomeClick?: () => void;
|
|
5
|
+
UserComponent?: () => JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export declare const ConboMatch: ({ deploymentId, onHomeClick, baseUrl, UserComponent }: InputProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AppContent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './conboMatchHeader';
|
|
@@ -12,5 +12,5 @@ type SidebarLeftFilterInput = {
|
|
|
12
12
|
baseUrl?: string;
|
|
13
13
|
deploymentId: string;
|
|
14
14
|
};
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const LeftSideBarFilter: ({ onSubmit, baseUrl, deploymentId }: SidebarLeftFilterInput) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LeftSideBarFilter';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ConboMatch';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Link } from '../../shared/RightLayout/RightLayout';
|
|
3
|
+
|
|
4
|
+
type InputProps = {
|
|
5
|
+
deploymentId: string;
|
|
6
|
+
baseUrl?: string;
|
|
7
|
+
onHomeClick?: () => void;
|
|
8
|
+
links?: Link[];
|
|
9
|
+
UserComponent?: FC;
|
|
10
|
+
};
|
|
11
|
+
export declare const PathAnalysis: ({ deploymentId, baseUrl, onHomeClick, links, UserComponent }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
type InputType = {
|
|
4
|
+
title?: string;
|
|
5
|
+
onHomeClick?: () => void;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
UserComponent?: FC;
|
|
8
|
+
};
|
|
9
|
+
export declare const Header: ({ title, onHomeClick, isLoading, UserComponent }: InputType) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Header } from './Header';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MainContent } from './MainContent';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const formWrapperStyles: {
|
|
2
|
+
display: string;
|
|
3
|
+
gap: string;
|
|
4
|
+
alignItems: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const noMapWrapperStyles: {
|
|
7
|
+
opacity: number;
|
|
8
|
+
height: string;
|
|
9
|
+
display: string;
|
|
10
|
+
alignItems: string;
|
|
11
|
+
justifyContent: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Shape } from '../../../../shared/Shapes/types';
|
|
2
|
+
import { PathSegment } from '../../../../store/services/pathAnalysisStore';
|
|
3
|
+
|
|
4
|
+
export declare const buildMockPathShapes: (paths: PathSegment[], selectedPointId?: string | null) => Shape[];
|
|
5
|
+
export declare const buildConnectorShapes: ({ paths, stroke, strokeWidth, strokeDasharray, opacity }: {
|
|
6
|
+
paths: PathSegment[];
|
|
7
|
+
stroke: string;
|
|
8
|
+
strokeWidth: number;
|
|
9
|
+
strokeDasharray: string;
|
|
10
|
+
opacity: number;
|
|
11
|
+
}) => Shape[];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
export declare const verticalTableColumnDefs: () => {
|
|
3
|
+
topOneColumnDefs: ({
|
|
4
|
+
headerName: string;
|
|
5
|
+
field: string;
|
|
6
|
+
renderCell?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
headerName: string;
|
|
9
|
+
field: string;
|
|
10
|
+
renderCell: (value: number) => string;
|
|
11
|
+
})[];
|
|
12
|
+
frameInfoColumnDefs: {
|
|
13
|
+
headerName: string;
|
|
14
|
+
field: string;
|
|
15
|
+
renderCell: (value: number) => string;
|
|
16
|
+
}[];
|
|
17
|
+
summaryColumnDefs: ({
|
|
18
|
+
headerName: string;
|
|
19
|
+
field: string;
|
|
20
|
+
renderCell: (value: number) => string;
|
|
21
|
+
} | {
|
|
22
|
+
headerName: string;
|
|
23
|
+
field: string;
|
|
24
|
+
renderCell?: undefined;
|
|
25
|
+
})[];
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './RightBar';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
|
|
3
|
+
export declare const loaderSx: SxProps;
|
|
4
|
+
export declare const tabStyles: {
|
|
5
|
+
minHeight: string;
|
|
6
|
+
height: string;
|
|
7
|
+
py: number;
|
|
8
|
+
px: string;
|
|
9
|
+
fontSize: string;
|
|
10
|
+
lineHeight: number;
|
|
11
|
+
textTransform: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const tabContainerStyles: {
|
|
14
|
+
minHeight: string;
|
|
15
|
+
"& .MuiTabs-flexContainer": {
|
|
16
|
+
minHeight: string;
|
|
17
|
+
};
|
|
18
|
+
"& .MuiTabs-indicator": {
|
|
19
|
+
height: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface IFetchRightPanelData {
|
|
2
|
+
requestBody: any;
|
|
3
|
+
conboKey: string;
|
|
4
|
+
startTime: string;
|
|
5
|
+
endTime: string;
|
|
6
|
+
assignedFeedId: number;
|
|
7
|
+
timeInfo: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const useFetchRightBarData: () => {
|
|
10
|
+
fetchRightPanelData: ({ requestBody, conboKey, startTime, endTime, assignedFeedId, timeInfo }: IFetchRightPanelData) => Promise<void>;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { KitDTO } from '../../../../api/queryInfo';
|
|
2
|
+
|
|
3
|
+
type DetailsContentArgs = {
|
|
4
|
+
topOne?: {
|
|
5
|
+
[x: string]: unknown;
|
|
6
|
+
}[];
|
|
7
|
+
classifiersFrameInfo?: {
|
|
8
|
+
[x: string]: unknown;
|
|
9
|
+
}[];
|
|
10
|
+
classifierSummary: {
|
|
11
|
+
[x: string]: unknown;
|
|
12
|
+
}[];
|
|
13
|
+
kitsElements?: KitDTO[];
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const getDetailsContent: (args: DetailsContentArgs) => {
|
|
17
|
+
value: string;
|
|
18
|
+
content: import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
}[];
|
|
20
|
+
export declare const getDetailsTabs: () => {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
}[];
|
|
25
|
+
export type ConboKeyTab = {
|
|
26
|
+
conboKey: string;
|
|
27
|
+
feedId: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const buildConboKeyTabs: (selectedPoint?: any) => ConboKeyTab[];
|
|
30
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PathAnalysis';
|
package/dist/build/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { Classifiers } from '../apps/Classifiers';
|
|
2
2
|
export { Cargo } from '../apps/Cargo';
|
|
3
|
-
export { ImageAnalysis } from '../apps/ImageAnalysis';
|
|
4
3
|
export { EventLog } from '../apps/EventLog/EventLog';
|
|
5
4
|
export { ConboKeySearch } from '../apps/ConboKeySearch';
|
|
6
5
|
export { EntitySearch } from '../apps/EntitySearch';
|
|
7
|
-
export { ConboMatch } from '../apps/
|
|
6
|
+
export { ConboMatch } from '../apps/ConboMatch';
|
|
8
7
|
export { FeedStreams } from '../apps/FeedStreams';
|
|
9
8
|
export { HeatMap } from '../apps/HeatMap';
|
|
10
9
|
export { SearchTool } from '../apps/SearchTool';
|
|
11
10
|
export { CargoTrails } from '../apps/CargoTrails';
|
|
11
|
+
export { PathAnalysis } from '../apps/PathAnalysis';
|
|
12
12
|
export { default as applicationsMeta } from '../helpers/applicationsMeta';
|