@3cr/viewer-browser 0.0.120 → 0.0.122

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3cr/viewer-browser",
3
- "version": "0.0.120",
3
+ "version": "0.0.122",
4
4
  "main": "./dist/Viewer3CR.umd.js",
5
5
  "module": "dist/Viewer3CR.umd.js",
6
6
  "homepage": "https://docs.3cr.singular.health",
package/src/App.vue CHANGED
@@ -81,4 +81,7 @@ async function loadInstance(
81
81
  .transparent {
82
82
  background-color: transparent;
83
83
  }
84
+ .v-dialog.v-overlay--active {
85
+ backdrop-filter: blur(4px);
86
+ }
84
87
  </style>
@@ -37,11 +37,16 @@ const modalState = computed({
37
37
  theme="dark"
38
38
  max-width="680"
39
39
  >
40
- <v-card-title>{{ demoLicenceTitle }}</v-card-title>
41
- <v-card-text v-for="subtitle in demoLicenceSubtitles" :key="subtitle"
40
+ <v-card-title class="text-center mb-4 mt-2">{{
41
+ demoLicenceTitle
42
+ }}</v-card-title>
43
+ <v-card-text
44
+ class="text-justify"
45
+ v-for="subtitle in demoLicenceSubtitles"
46
+ :key="subtitle"
42
47
  >{{ subtitle }}
43
48
  </v-card-text>
44
- <v-card-actions>
49
+ <v-card-actions class="mt-4">
45
50
  <v-btn
46
51
  color="error"
47
52
  @click="modalState = false"
@@ -37,11 +37,16 @@ const modalState = computed({
37
37
  theme="dark"
38
38
  max-width="680"
39
39
  >
40
- <v-card-title>{{ demoPatientTitle }}</v-card-title>
41
- <v-card-text v-for="subtitle in demoPatientSubtitles" :key="subtitle"
40
+ <v-card-title class="text-center mb-4 mt-2">{{
41
+ demoPatientTitle
42
+ }}</v-card-title>
43
+ <v-card-text
44
+ class="text-justify"
45
+ v-for="subtitle in demoPatientSubtitles"
46
+ :key="subtitle"
42
47
  >{{ subtitle }}
43
48
  </v-card-text>
44
- <v-card-actions>
49
+ <v-card-actions class="mt-4">
45
50
  <v-btn
46
51
  color="error"
47
52
  @click="modalState = false"
@@ -0,0 +1,65 @@
1
+ <script setup lang="ts">
2
+ import { computed } from "vue";
3
+ import {
4
+ demoPatientSubtitles,
5
+ demoPatientTitle,
6
+ openUrl,
7
+ } from "@/demo/options";
8
+
9
+ export interface Props {
10
+ modal: boolean;
11
+ isModalOpen: boolean;
12
+ }
13
+
14
+ const emit = defineEmits<{
15
+ "update:modal": [value: boolean];
16
+ }>();
17
+
18
+ const props = withDefaults(defineProps<Props>(), {
19
+ modal: false,
20
+ isModalOpen: true,
21
+ });
22
+
23
+ const modalState = computed({
24
+ get() {
25
+ return props.modal;
26
+ },
27
+ set(value) {
28
+ emit("update:modal", value);
29
+ },
30
+ });
31
+ </script>
32
+
33
+ <template>
34
+ <v-dialog v-model:model-value="modalState">
35
+ <v-card
36
+ class="pa-1 ma-auto position-relative motif-background"
37
+ theme="dark"
38
+ max-width="680"
39
+ >
40
+ <v-card-title>{{ demoPatientTitle }}</v-card-title>
41
+ <v-card-text v-for="subtitle in demoPatientSubtitles" :key="subtitle"
42
+ >{{ subtitle }}
43
+ </v-card-text>
44
+ <v-card-actions>
45
+ <v-btn
46
+ color="error"
47
+ @click="modalState = false"
48
+ :disabled="!isModalOpen"
49
+ >
50
+ Continue with Demo
51
+ </v-btn>
52
+ <v-spacer />
53
+ <v-btn
54
+ variant="tonal"
55
+ color="success"
56
+ @click="openUrl('https://3dicomviewer.com/pricing')"
57
+ >
58
+ Purchase 3Dicom Patient
59
+ </v-btn>
60
+ </v-card-actions>
61
+ </v-card>
62
+ </v-dialog>
63
+ </template>
64
+
65
+ <style scoped></style>