@opencor/opencor 0.20250822.0 → 0.20250823.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 +1 -0
- package/dist/{index-Bo9Lkhfn.js → index-in3ZZStA.js} +10588 -10581
- package/dist/opencor.css +1 -1
- package/dist/opencor.es.js +1 -1
- package/dist/opencor.umd.js +53 -53
- package/dist/{quill-BuRGxrCd.js → quill-pOzwAhrV.js} +1 -1
- package/package.json +2 -2
- package/src/App.vue +5 -7
- package/src/ContainerApp.vue +21 -0
- package/src/components/OpenCOR.vue +19 -1
- package/src/main.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ce, g as gl } from "./index-
|
|
1
|
+
import { c as ce, g as gl } from "./index-in3ZZStA.js";
|
|
2
2
|
var pl = typeof global == "object" && global && global.Object === Object && global, yo = typeof self == "object" && self && self.Object === Object && self, Zt = pl || yo || Function("return this")(), de = Zt.Symbol, ml = Object.prototype, vo = ml.hasOwnProperty, Eo = ml.toString, yr = de ? de.toStringTag : void 0;
|
|
3
3
|
function Ao(n) {
|
|
4
4
|
var t = vo.call(n, yr), e = n[yr];
|
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"./style.css": "./dist/opencor.css"
|
|
44
44
|
},
|
|
45
|
-
"version": "0.
|
|
45
|
+
"version": "0.20250823.0",
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"vue": "^3.4.21"
|
|
48
48
|
},
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
73
73
|
"@vue/tsconfig": "^0.8.1",
|
|
74
74
|
"autoprefixer": "^10.4.21",
|
|
75
|
-
"eslint": "^9.
|
|
75
|
+
"eslint": "^9.34.0",
|
|
76
76
|
"prettier": "^3.6.2",
|
|
77
77
|
"unplugin-vue-components": "^29.0.0",
|
|
78
78
|
"vite": "^7.1.3"
|
package/src/App.vue
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<!-- <OpenCOR omex="https://models.physiomeproject.org/workspace/b7c/rawfile/e0ae8d2d56aaaa091e23e1ee7e84cacbda1dfb6b/lorenz.omex" /> -->
|
|
8
|
-
</div>
|
|
2
|
+
<OpenCOR />
|
|
3
|
+
<!-- <OpenCOR omex="https://raw.githubusercontent.com/opencor/webapp/refs/heads/main/tests/models/lorenz.cellml" /> -->
|
|
4
|
+
<!-- <OpenCOR omex="https://raw.githubusercontent.com/opencor/webapp/refs/heads/main/tests/models/lorenz.omex" /> -->
|
|
5
|
+
<!-- <OpenCOR omex="https://raw.githubusercontent.com/opencor/webapp/refs/heads/main/tests/models/ui/lorenz.omex" /> -->
|
|
6
|
+
<!-- <OpenCOR omex="https://models.physiomeproject.org/workspace/b7c/rawfile/e0ae8d2d56aaaa091e23e1ee7e84cacbda1dfb6b/lorenz.omex" /> -->
|
|
9
7
|
</template>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="h-screen">
|
|
3
|
+
<Splitter class="h-full" layout="vertical">
|
|
4
|
+
<SplitterPanel class="flex items-center justify-center bg-blue-500" :size="15">Top panel...</SplitterPanel>
|
|
5
|
+
<SplitterPanel :size="50">
|
|
6
|
+
<Splitter>
|
|
7
|
+
<SplitterPanel class="flex items-center justify-center bg-red-500" :size="15">Left panel...</SplitterPanel>
|
|
8
|
+
<SplitterPanel :size="50">
|
|
9
|
+
<OpenCOR />
|
|
10
|
+
<!-- <OpenCOR omex="https://raw.githubusercontent.com/opencor/webapp/refs/heads/main/tests/models/lorenz.cellml" /> -->
|
|
11
|
+
<!-- <OpenCOR omex="https://raw.githubusercontent.com/opencor/webapp/refs/heads/main/tests/models/lorenz.omex" /> -->
|
|
12
|
+
<!-- <OpenCOR omex="https://raw.githubusercontent.com/opencor/webapp/refs/heads/main/tests/models/ui/lorenz.omex" /> -->
|
|
13
|
+
<!-- <OpenCOR omex="https://models.physiomeproject.org/workspace/b7c/rawfile/e0ae8d2d56aaaa091e23e1ee7e84cacbda1dfb6b/lorenz.omex" /> -->
|
|
14
|
+
</SplitterPanel>
|
|
15
|
+
<SplitterPanel class="flex items-center justify-center bg-red-500" :size="35">Right panel...</SplitterPanel>
|
|
16
|
+
</Splitter>
|
|
17
|
+
</SplitterPanel>
|
|
18
|
+
<SplitterPanel class="flex items-center justify-center bg-blue-500" :size="35">Bottom panel...</SplitterPanel>
|
|
19
|
+
</Splitter>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<BlockUI id="blockUi" :blocked="!uiEnabled" class="
|
|
2
|
+
<BlockUI id="blockUi" :blocked="!uiEnabled" class="overflow-hidden" :style="blockUiStyle">
|
|
3
3
|
<Toast id="toast" :pt:root:style="{ position: 'absolute' }" />
|
|
4
4
|
<BackgroundComponent v-show="loadingOpencorMessageVisible || loadingModelMessageVisible || omex === undefined" />
|
|
5
5
|
<BlockingMessageComponent message="Loading OpenCOR..." v-show="loadingOpencorMessageVisible" />
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
<DragNDropComponent v-show="dragAndDropCounter > 0" />
|
|
18
18
|
<div v-show="!electronApi && omex === undefined">
|
|
19
19
|
<MainMenu
|
|
20
|
+
v-show="mainMenuVisible"
|
|
20
21
|
:uiEnabled="compUiEnabled"
|
|
21
22
|
:hasFiles="hasFiles"
|
|
22
23
|
@about="onAbout"
|
|
@@ -546,6 +547,23 @@ electronApi?.onSelect((filePath: string) => {
|
|
|
546
547
|
|
|
547
548
|
vueCommon.trackElementHeight('blockUi')
|
|
548
549
|
|
|
550
|
+
// Set the height of our block UI.
|
|
551
|
+
|
|
552
|
+
const blockUiStyle = vue.ref({})
|
|
553
|
+
const mainMenuVisible = vue.ref<boolean>(false)
|
|
554
|
+
|
|
555
|
+
vue.onMounted(() => {
|
|
556
|
+
// Set the height of our block UI to either '100vh' or '100%', depending on the height of our document element.
|
|
557
|
+
|
|
558
|
+
blockUiStyle.value =
|
|
559
|
+
window.getComputedStyle(document.documentElement).height === '0px' ? { height: '100vh' } : { height: '100%' }
|
|
560
|
+
|
|
561
|
+
// We have set the height of our block UI, so we can now safely show our main menu.
|
|
562
|
+
// Note: indeed, to properly determine the height of our document element, we must ensure that our own height is zero.
|
|
563
|
+
|
|
564
|
+
mainMenuVisible.value = true
|
|
565
|
+
})
|
|
566
|
+
|
|
549
567
|
// If a COMBINE archive is provided then open it (and then the Simulation Experiment view will be shown in isolation) or
|
|
550
568
|
// carry as normal (i.e. the whole OpenCOR UI will be shown).
|
|
551
569
|
|