@3cr/viewer-browser 0.0.15 → 0.0.18

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.
@@ -5,12 +5,12 @@ import {computed, defineEmits} from 'vue';
5
5
 
6
6
  export interface Props {
7
7
  value: number;
8
- loading: boolean;
9
- label: string;
10
- min: number;
11
- max: number;
12
- step: number,
13
- prepend: string,
8
+ loading?: boolean;
9
+ label?: string;
10
+ min?: number;
11
+ max?: number;
12
+ step?: number,
13
+ prepend?: string,
14
14
  }
15
15
 
16
16
  const props = withDefaults(defineProps<Props>(), {
@@ -23,59 +23,40 @@ const props = withDefaults(defineProps<Props>(), {
23
23
  prepend: '',
24
24
  });
25
25
  const emit = defineEmits<{
26
- input: [number];
26
+ 'update:value': [number];
27
27
  }>();
28
28
  const sliderValue = computed({
29
29
  get() {
30
30
  return props.value
31
31
  },
32
32
  set(value: number) {
33
- emit('input', value);
33
+ emit('update:value', value);
34
34
  }
35
35
  })
36
36
  </script>
37
37
 
38
38
  <template>
39
39
  <div class="single-slider-selector">
40
- <!-- <v-card-subtitle class="pb-0 pt-1 text-caption">{{ label }}</v-card-subtitle>-->
41
- <v-card-actions class="px-2 pb-0">
42
- <span class="text-caption">
43
- {{ label }}
44
- </span>
45
- <v-spacer />
46
- <v-text-field
47
- v-model="sliderValue"
48
- outlined
49
- dense
50
- class="mt-0 pt-0"
51
- hide-details
52
- type="number"
53
- :append-icon="prepend"
54
- style="width: 44px"
55
- ></v-text-field>
56
- </v-card-actions>
57
- <!-- <v-slider-->
58
- <!-- v-model="sliderValue"-->
59
- <!-- :loading="loading"-->
60
- <!-- thumb-label-->
61
- <!-- :max="max"-->
62
- <!-- :min="min"-->
63
- <!-- :step="step"-->
64
- <!-- hide-details-->
65
- <!-- class="align-center px-2 black&#45;&#45;text"-->
66
- <!-- >-->
67
- <!-- &lt;!&ndash; <template v-slot:append>&ndash;&gt;-->
68
- <!-- &lt;!&ndash; <v-text-field&ndash;&gt;-->
69
- <!-- &lt;!&ndash; v-model="sliderValue"&ndash;&gt;-->
70
- <!-- &lt;!&ndash; outlined&ndash;&gt;-->
71
- <!-- &lt;!&ndash; hide-details&ndash;&gt;-->
72
- <!-- &lt;!&ndash; dense&ndash;&gt;-->
73
- <!-- &lt;!&ndash; class="mt-0 pt-0 ml-2"&ndash;&gt;-->
74
- <!-- &lt;!&ndash; type="number"&ndash;&gt;-->
75
- <!-- &lt;!&ndash; style="width: 68px"&ndash;&gt;-->
76
- <!-- &lt;!&ndash; ></v-text-field>&ndash;&gt;-->
77
- <!-- &lt;!&ndash; </template>&ndash;&gt;-->
78
- <!-- </v-slider>-->
40
+ <v-row no-gutters>
41
+ <v-col>
42
+ <span class="text-caption">
43
+ {{ label }}
44
+ </span>
45
+ </v-col>
46
+ <v-col cols="6">
47
+ <v-text-field
48
+ v-model="sliderValue"
49
+ outlined
50
+ dense
51
+ class="mt-0 pt-0"
52
+ hide-details
53
+ variant="outlined"
54
+ density="compact"
55
+ type="number"
56
+ :append-icon="prepend"
57
+ ></v-text-field>
58
+ </v-col>
59
+ </v-row>
79
60
  </div>
80
61
  </template>
81
62
 
@@ -3,12 +3,12 @@ import {computed, defineEmits, ref, unref, watch} from 'vue';
3
3
 
4
4
  export interface Props {
5
5
  value: number;
6
- loading: boolean;
7
- label: string;
8
- lower: number;
9
- upper: number;
10
- min: number;
11
- max: number;
6
+ loading?: boolean;
7
+ label?: string;
8
+ lower?: number;
9
+ upper?: number;
10
+ min?: number;
11
+ max?: number;
12
12
  }
13
13
 
14
14
  const props = withDefaults(defineProps<Props>(), {
@@ -22,7 +22,7 @@ const props = withDefaults(defineProps<Props>(), {
22
22
  });
23
23
 
24
24
  const emit = defineEmits<{
25
- input: [number];
25
+ 'update:value': [number];
26
26
  }>();
27
27
 
28
28
  const prevValue = ref<number>(0)
@@ -33,7 +33,7 @@ const sliderValue = computed({
33
33
  return props.value
34
34
  },
35
35
  set(value: number) {
36
- emit('input', value);
36
+ emit('update:value', value);
37
37
  }
38
38
  })
39
39
 
@@ -15,7 +15,7 @@ import { aliases, md } from 'vuetify/iconsets/md'
15
15
  // https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides
16
16
  export default createVuetify({
17
17
  theme: {
18
- defaultTheme: 'dark',
18
+ defaultTheme: 'light',
19
19
  },
20
20
  icons: {
21
21
  defaultSet: 'md',
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ESNext",
4
+ "useDefineForClassFields": true,
5
+ "module": "commonjs",
6
+ "moduleResolution": "Node",
7
+ "strict": true,
8
+ "jsx": "preserve",
9
+ "resolveJsonModule": true,
10
+ "esModuleInterop": true,
11
+ "lib": ["ESNext", "DOM", "ES2015"],
12
+ "skipLibCheck": true,
13
+ "noEmit": false,
14
+ "outDir": ".",
15
+ "allowJs": true,
16
+ "rootDir": "."
17
+ },
18
+ "exclude": ["!./scripts"],
19
+ "include": [
20
+ "scripts/**/*.ts"
21
+ ]
22
+ }
package/vite.config.mts CHANGED
@@ -39,6 +39,7 @@ export default defineConfig({
39
39
  formats: ['cjs', 'es', 'umd'],
40
40
  },
41
41
  rollupOptions: {
42
+ treeshake: 'smallest',
42
43
  // make sure to externalize deps that shouldn't be bundled
43
44
  // into your library
44
45
  external: [
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="GitToolBoxProjectSettings">
4
- <option name="commitMessageIssueKeyValidationOverride">
5
- <BoolValueOverride>
6
- <option name="enabled" value="true" />
7
- </BoolValueOverride>
8
- </option>
9
- <option name="commitMessageValidationEnabledOverride">
10
- <BoolValueOverride>
11
- <option name="enabled" value="true" />
12
- </BoolValueOverride>
13
- </option>
14
- </component>
15
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>
@@ -1,218 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="AutoImportSettings">
4
- <option name="autoReloadType" value="SELECTIVE" />
5
- </component>
6
- <component name="ChangeListManager">
7
- <list default="true" id="feb68f38-3ed5-44bb-a81b-c68f1e9d5e48" name="Changes" comment="initial">
8
- <change beforePath="$PROJECT_DIR$/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/index.html" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/index.ts" afterDir="false" />
10
- <change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/package-lock.json" afterDir="false" />
11
- <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
12
- <change beforePath="$PROJECT_DIR$/src/App.vue" beforeDir="false" afterPath="$PROJECT_DIR$/src/App.vue" afterDir="false" />
13
- <change beforePath="$PROJECT_DIR$/src/components/MftpWebGL3DRModal.vue" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/MftpWebGL3DRModal.vue" afterDir="false" />
14
- <change beforePath="$PROJECT_DIR$/src/main.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/main.ts" afterDir="false" />
15
- <change beforePath="$PROJECT_DIR$/vite.config.mts" beforeDir="false" afterPath="$PROJECT_DIR$/vite.config.mts" afterDir="false" />
16
- </list>
17
- <option name="SHOW_DIALOG" value="false" />
18
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
19
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
20
- <option name="LAST_RESOLUTION" value="IGNORE" />
21
- </component>
22
- <component name="FileTemplateManagerImpl">
23
- <option name="RECENT_TEMPLATES">
24
- <list>
25
- <option value="TypeScript File" />
26
- </list>
27
- </option>
28
- </component>
29
- <component name="Git.Settings">
30
- <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
31
- </component>
32
- <component name="GitLabMergeRequestsSettings"><![CDATA[{}]]></component>
33
- <component name="GitToolBoxStore">
34
- <option name="projectConfigVersion" value="5" />
35
- </component>
36
- <component name="GithubPullRequestsUISettings"><![CDATA[{}]]></component>
37
- <component name="ProjectColorInfo"><![CDATA[{
38
- "associatedIndex": 2
39
- }]]></component>
40
- <component name="ProjectId" id="2ecHzRIf6ZttKwXfV7cjWRM6Bwl" />
41
- <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
42
- <component name="ProjectViewState">
43
- <option name="hideEmptyMiddlePackages" value="true" />
44
- <option name="showLibraryContents" value="true" />
45
- </component>
46
- <component name="PropertiesComponent"><![CDATA[{
47
- "keyToString": {
48
- "RunOnceActivity.ShowReadmeOnStart": "true",
49
- "git-widget-placeholder": "main",
50
- "last_opened_file_path": "/Users/elliottcooper/source/3cr-viewer-browser",
51
- "node.js.detected.package.eslint": "true",
52
- "node.js.detected.package.tslint": "true",
53
- "node.js.selected.package.eslint": "(autodetect)",
54
- "node.js.selected.package.tslint": "(autodetect)",
55
- "nodejs_package_manager_path": "npm",
56
- "npm.build.executor": "Run",
57
- "npm.deploy.executor": "Run",
58
- "npm.dev.executor": "Run",
59
- "npm.test.executor": "Run",
60
- "ts.external.directory.path": "/Users/elliottcooper/Applications/WebStorm.app/Contents/plugins/javascript-impl/jsLanguageServicesImpl/external",
61
- "vue.rearranger.settings.migration": "true"
62
- }
63
- }]]></component>
64
- <component name="RecentsManager">
65
- <key name="CopyFile.RECENT_KEYS">
66
- <recent name="$PROJECT_DIR$" />
67
- <recent name="$PROJECT_DIR$/src/types" />
68
- <recent name="$PROJECT_DIR$/src/assets/images" />
69
- <recent name="$PROJECT_DIR$/src/helpers" />
70
- <recent name="$PROJECT_DIR$/src" />
71
- </key>
72
- <key name="MoveFile.RECENT_KEYS">
73
- <recent name="$PROJECT_DIR$" />
74
- <recent name="$PROJECT_DIR$/src/helpers" />
75
- <recent name="$PROJECT_DIR$/src" />
76
- </key>
77
- </component>
78
- <component name="RunManager" selected="npm.deploy">
79
- <configuration name="build" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
80
- <package-json value="$PROJECT_DIR$/package.json" />
81
- <command value="run" />
82
- <scripts>
83
- <script value="build" />
84
- </scripts>
85
- <node-interpreter value="project" />
86
- <envs />
87
- <method v="2" />
88
- </configuration>
89
- <configuration name="deploy" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
90
- <package-json value="$PROJECT_DIR$/package.json" />
91
- <command value="run" />
92
- <scripts>
93
- <script value="deploy" />
94
- </scripts>
95
- <node-interpreter value="project" />
96
- <envs />
97
- <method v="2" />
98
- </configuration>
99
- <configuration name="dev" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
100
- <package-json value="$PROJECT_DIR$/package.json" />
101
- <command value="run" />
102
- <scripts>
103
- <script value="dev" />
104
- </scripts>
105
- <node-interpreter value="project" />
106
- <envs />
107
- <method v="2" />
108
- </configuration>
109
- <configuration name="test" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
110
- <package-json value="$PROJECT_DIR$/package.json" />
111
- <command value="run" />
112
- <scripts>
113
- <script value="test" />
114
- </scripts>
115
- <node-interpreter value="project" />
116
- <envs />
117
- <method v="2" />
118
- </configuration>
119
- <recent_temporary>
120
- <list>
121
- <item itemvalue="npm.deploy" />
122
- <item itemvalue="npm.dev" />
123
- <item itemvalue="npm.build" />
124
- <item itemvalue="npm.test" />
125
- </list>
126
- </recent_temporary>
127
- </component>
128
- <component name="SharedIndexes">
129
- <attachedChunks>
130
- <set>
131
- <option value="bundled-js-predefined-1d06a55b98c1-74d2a5396914-JavaScript-WS-241.14494.180" />
132
- </set>
133
- </attachedChunks>
134
- </component>
135
- <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
136
- <component name="TaskManager">
137
- <task active="true" id="Default" summary="Default task">
138
- <changelist id="feb68f38-3ed5-44bb-a81b-c68f1e9d5e48" name="Changes" comment="" />
139
- <created>1712197208124</created>
140
- <option name="number" value="Default" />
141
- <option name="presentableId" value="Default" />
142
- <updated>1712197208124</updated>
143
- <workItem from="1712197209295" duration="36560000" />
144
- </task>
145
- <task id="LOCAL-00001" summary="initial">
146
- <option name="closed" value="true" />
147
- <created>1712535511451</created>
148
- <option name="number" value="00001" />
149
- <option name="presentableId" value="LOCAL-00001" />
150
- <option name="project" value="LOCAL" />
151
- <updated>1712535511451</updated>
152
- </task>
153
- <task id="LOCAL-00002" summary="initial">
154
- <option name="closed" value="true" />
155
- <created>1712542062900</created>
156
- <option name="number" value="00002" />
157
- <option name="presentableId" value="LOCAL-00002" />
158
- <option name="project" value="LOCAL" />
159
- <updated>1712542062900</updated>
160
- </task>
161
- <task id="LOCAL-00003" summary="initial">
162
- <option name="closed" value="true" />
163
- <created>1712542100525</created>
164
- <option name="number" value="00003" />
165
- <option name="presentableId" value="LOCAL-00003" />
166
- <option name="project" value="LOCAL" />
167
- <updated>1712542100525</updated>
168
- </task>
169
- <task id="LOCAL-00004" summary="initial">
170
- <option name="closed" value="true" />
171
- <created>1712542119883</created>
172
- <option name="number" value="00004" />
173
- <option name="presentableId" value="LOCAL-00004" />
174
- <option name="project" value="LOCAL" />
175
- <updated>1712542119883</updated>
176
- </task>
177
- <task id="LOCAL-00005" summary="initial">
178
- <option name="closed" value="true" />
179
- <created>1712542969695</created>
180
- <option name="number" value="00005" />
181
- <option name="presentableId" value="LOCAL-00005" />
182
- <option name="project" value="LOCAL" />
183
- <updated>1712542969695</updated>
184
- </task>
185
- <option name="localTasksCounter" value="6" />
186
- <servers />
187
- </component>
188
- <component name="TypeScriptGeneratedFilesManager">
189
- <option name="version" value="3" />
190
- </component>
191
- <component name="Vcs.Log.Tabs.Properties">
192
- <option name="TAB_STATES">
193
- <map>
194
- <entry key="MAIN">
195
- <value>
196
- <State />
197
- </value>
198
- </entry>
199
- </map>
200
- </option>
201
- </component>
202
- <component name="VcsManagerConfiguration">
203
- <MESSAGE value="initial" />
204
- <option name="LAST_COMMIT_MESSAGE" value="initial" />
205
- </component>
206
- <component name="XDebuggerManager">
207
- <breakpoint-manager>
208
- <breakpoints>
209
- <line-breakpoint enabled="true" type="javascript">
210
- <url>file://$PROJECT_DIR$/node_modules/@3cr/sdk-browser/index.ts</url>
211
- <line>25</line>
212
- <properties lambdaOrdinal="-1" />
213
- <option name="timeStamp" value="1" />
214
- </line-breakpoint>
215
- </breakpoints>
216
- </breakpoint-manager>
217
- </component>
218
- </project>