@opencor/opencor 0.20250814.4 → 0.20250818.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/dist/index-DBCnkxl5.js +107490 -0
- package/dist/opencor.css +1 -1
- package/dist/opencor.es.js +1 -1
- package/dist/opencor.umd.js +7192 -5318
- package/dist/{quill-DZsCWNRW.js → quill-BTTaLw2k.js} +1 -1
- package/package.json +12 -12
- package/src/components/{LoadOpencorComponent.vue → BlockingMessageComponent.vue} +9 -3
- package/src/components/OpenCOR.vue +2 -2
- package/src/components/propertyEditors/PropertyEditor.vue +15 -12
- package/src/components/widgets/GraphPanelWidget.vue +13 -10
- package/dist/index-tP7x8zIn.js +0 -98589
- package/src/components/SpinningWheelComponent.vue +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ce, g as gl } from "./index-
|
|
1
|
+
import { c as ce, g as gl } from "./index-DBCnkxl5.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,35 +42,35 @@
|
|
|
42
42
|
},
|
|
43
43
|
"./style.css": "./dist/opencor.css"
|
|
44
44
|
},
|
|
45
|
-
"version": "0.
|
|
45
|
+
"version": "0.20250818.0",
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"vue": "^3.
|
|
47
|
+
"vue": "^3.4.21"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@primeuix/themes": "^1.2.3",
|
|
51
|
-
"@primevue/auto-import-resolver": "
|
|
52
|
-
"@
|
|
53
|
-
"@tailwindcss/
|
|
54
|
-
"@
|
|
51
|
+
"@primevue/auto-import-resolver": "4.2.5",
|
|
52
|
+
"@vueuse/core": "12.8.2",
|
|
53
|
+
"@tailwindcss/postcss": "^4.1.12",
|
|
54
|
+
"@tailwindcss/vite": "^4.1.12",
|
|
55
55
|
"js-cookie": "^3.0.5",
|
|
56
56
|
"jsonschema": "^1.5.0",
|
|
57
57
|
"mathjs": "^14.6.0",
|
|
58
|
-
"plotly.js-gl2d-dist-min": "
|
|
58
|
+
"plotly.js-gl2d-dist-min": "2.35.3",
|
|
59
59
|
"primeicons": "^7.0.0",
|
|
60
|
-
"primevue": "
|
|
60
|
+
"primevue": "4.2.5",
|
|
61
61
|
"quill": "^2.0.3",
|
|
62
|
-
"tailwindcss": "^4.1.
|
|
62
|
+
"tailwindcss": "^4.1.12",
|
|
63
63
|
"tailwindcss-primeui": "^0.6.1",
|
|
64
64
|
"ua-parser-js": "^2.0.4"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/js-cookie": "^3.0.6",
|
|
68
|
-
"@types/
|
|
69
|
-
"@types/
|
|
68
|
+
"@types/plotly.js": "2.35.3",
|
|
69
|
+
"@types/node": "^24.3.0",
|
|
70
70
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
71
71
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
72
72
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
73
|
-
"@vue/tsconfig": "^0.
|
|
73
|
+
"@vue/tsconfig": "^0.8.0",
|
|
74
74
|
"autoprefixer": "^10.4.21",
|
|
75
75
|
"eslint": "^9.33.0",
|
|
76
76
|
"prettier": "^3.6.2",
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="blocking-message p-overlay-mask">
|
|
3
3
|
<Message class="message" severity="secondary">
|
|
4
4
|
<i class="message-icon pi pi-spin pi-cog" />
|
|
5
5
|
<br />
|
|
6
|
-
<span class="message-text">
|
|
6
|
+
<span class="message-text">{{ message }}</span>
|
|
7
7
|
</Message>
|
|
8
8
|
</div>
|
|
9
9
|
</template>
|
|
10
10
|
|
|
11
|
+
<script setup lang="ts">
|
|
12
|
+
defineProps<{
|
|
13
|
+
message: string
|
|
14
|
+
}>()
|
|
15
|
+
</script>
|
|
16
|
+
|
|
11
17
|
<style scoped>
|
|
12
|
-
.
|
|
18
|
+
.blocking-message {
|
|
13
19
|
z-index: 99999;
|
|
14
20
|
}
|
|
15
21
|
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
/>
|
|
17
17
|
</div>
|
|
18
18
|
<div class="h-full" @dragenter="onDragEnter" @dragover.prevent @drop.prevent="onDrop" @dragleave="onDragLeave">
|
|
19
|
-
<
|
|
19
|
+
<BlockingMessageComponent message="Loading OpenCOR..." v-show="loadingLipencorWebAssemblyModuleVisible" />
|
|
20
20
|
<ContentsComponent ref="contents" :simulationOnly="omex !== undefined" />
|
|
21
21
|
<DragNDropComponent v-show="dropAreaCounter > 0" />
|
|
22
22
|
<BlockUI :blocked="!uiEnabled" :fullScreen="true"></BlockUI>
|
|
23
|
-
<
|
|
23
|
+
<BlockingMessageComponent message="Loading model..." v-show="spinningWheelVisible" />
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
@@ -25,18 +25,21 @@
|
|
|
25
25
|
<script setup lang="ts">
|
|
26
26
|
import { type DataTableCellEditCompleteEvent } from 'primevue/datatable'
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
28
|
+
const props = withDefaults(
|
|
29
|
+
defineProps<{
|
|
30
|
+
name: string
|
|
31
|
+
hasUnits?: boolean
|
|
32
|
+
properties: {
|
|
33
|
+
property: string
|
|
34
|
+
value: number
|
|
35
|
+
unit?: string
|
|
36
|
+
}[]
|
|
37
|
+
}>(),
|
|
38
|
+
{
|
|
39
|
+
hasUnits: true
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
const columnWidth = `width: calc(100% / ${props.hasUnits ? '3' : '2'})`
|
|
40
43
|
const emit = defineEmits(['propertyUpdated'])
|
|
41
44
|
|
|
42
45
|
function onCellEditComplete(event: DataTableCellEditCompleteEvent): void {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="h-full">
|
|
2
|
+
<div class="flex flex-row h-full">
|
|
3
3
|
<div v-if="showMarker" class="marker" />
|
|
4
|
-
<div ref="mainDiv" class="h-full" />
|
|
4
|
+
<div ref="mainDiv" class="grow h-full" />
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
|
7
7
|
|
|
@@ -41,12 +41,15 @@ export interface IGraphPanelPlot {
|
|
|
41
41
|
y: IGraphPanelPlotData
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
const props = withDefaults(
|
|
45
|
+
defineProps<{
|
|
46
|
+
plots: IGraphPanelPlot[]
|
|
47
|
+
showMarker?: boolean
|
|
48
|
+
}>(),
|
|
49
|
+
{
|
|
50
|
+
showMarker: false
|
|
51
|
+
}
|
|
52
|
+
)
|
|
50
53
|
|
|
51
54
|
const mainDiv = vue.ref<InstanceType<typeof Element> | null>(null)
|
|
52
55
|
|
|
@@ -84,11 +87,11 @@ function themeData() {
|
|
|
84
87
|
}
|
|
85
88
|
|
|
86
89
|
vue.watch(
|
|
87
|
-
() => [plots, vueCommon.useLightMode()],
|
|
90
|
+
() => [props.plots, vueCommon.useLightMode()],
|
|
88
91
|
() => {
|
|
89
92
|
Plotly.react(
|
|
90
93
|
mainDiv.value,
|
|
91
|
-
plots.map((plot) => ({
|
|
94
|
+
props.plots.map((plot) => ({
|
|
92
95
|
x: plot.x.data,
|
|
93
96
|
y: plot.y.data,
|
|
94
97
|
type: 'scattergl'
|