@lipme/vue-blast-viewer 1.0.3 → 1.0.4

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.
Files changed (39) hide show
  1. package/dist/App.vue.d.ts +3 -0
  2. package/dist/components/BlastAlignmentDetails.vue.d.ts +10 -0
  3. package/dist/components/BlastGraphicViewer.vue.d.ts +12 -0
  4. package/dist/components/BlastHeader.vue.d.ts +11 -0
  5. package/dist/components/BlastHitTable.vue.d.ts +13 -0
  6. package/dist/components/BlastViewer.vue.d.ts +10 -0
  7. package/dist/main.d.ts +1 -0
  8. package/dist/mockData.d.ts +3 -0
  9. package/dist/types.d.ts +53 -0
  10. package/dist/vue-blast-viewer.css +2 -0
  11. package/dist/vue-blast-viewer.js +670 -0
  12. package/dist/vue-blast-viewer.umd.cjs +2 -0
  13. package/package.json +18 -15
  14. package/.vscode/extensions.json +0 -3
  15. package/index.html +0 -13
  16. package/lipme-vue-blast-viewer-1.0.0.tgz +0 -0
  17. package/lipme-vue-blast-viewer-1.0.1.tgz +0 -0
  18. package/lipme-vue-blast-viewer-1.0.2.tgz +0 -0
  19. package/lipme-vue-blast-viewer-1.0.3.tgz +0 -0
  20. package/public/favicon.svg +0 -1
  21. package/public/icons.svg +0 -24
  22. package/src/App.vue +0 -548
  23. package/src/assets/hero.png +0 -0
  24. package/src/assets/vite.svg +0 -1
  25. package/src/assets/vue.svg +0 -1
  26. package/src/components/BlastAlignmentDetails.vue +0 -581
  27. package/src/components/BlastGraphicViewer.vue +0 -477
  28. package/src/components/BlastHeader.vue +0 -259
  29. package/src/components/BlastHitTable.vue +0 -669
  30. package/src/components/BlastViewer.vue +0 -232
  31. package/src/main.ts +0 -5
  32. package/src/mockData.ts +0 -457
  33. package/src/style.css +0 -258
  34. package/src/types.ts +0 -59
  35. package/tsconfig.app.json +0 -14
  36. package/tsconfig.json +0 -28
  37. package/vite.config.ts +0 -24
  38. package/vue-blast-viewer-1.0.0.tgz +0 -0
  39. /package/{src/index.ts → dist/index.d.ts} +0 -0
package/src/style.css DELETED
@@ -1,258 +0,0 @@
1
- @import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');
2
-
3
- :root {
4
- --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
5
- --font-mono: 'Fira Code', source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
6
-
7
- /* Theme Colors (Deep Space Navy / Biotech Theme) */
8
- --bg-primary: #0a0e17;
9
- --bg-secondary: #111827;
10
- --bg-card: rgba(20, 27, 45, 0.65);
11
- --bg-card-hover: rgba(28, 38, 62, 0.8);
12
- --border-color: rgba(255, 255, 255, 0.08);
13
- --border-color-hover: rgba(255, 255, 255, 0.16);
14
-
15
- --text-primary: #f3f4f6;
16
- --text-secondary: #9ca3af;
17
- --text-muted: #6b7280;
18
-
19
- --bg-header: rgba(10, 14, 23, 0.8);
20
- --bg-overlay-hover: rgba(255, 255, 255, 0.03);
21
- --bg-overlay-1: rgba(255, 255, 255, 0.05);
22
- --bg-overlay-2: rgba(255, 255, 255, 0.1);
23
- --bg-depth: rgba(0, 0, 0, 0.25);
24
- --bg-depth-light: rgba(0, 0, 0, 0.15);
25
-
26
- /* Accents */
27
- --color-primary: #3b82f6;
28
- --color-primary-glow: rgba(59, 130, 246, 0.15);
29
- --color-secondary: #8b5cf6;
30
- --color-secondary-glow: rgba(139, 92, 246, 0.15);
31
- --color-success: #10b981;
32
- --color-warning: #f59e0b;
33
- --color-danger: #ef4444;
34
-
35
- /* BLAST Score Color Coding (Adjusted for dark background readability) */
36
- --blast-score-low: #4b5563; /* < 40 (Grey instead of black for dark mode visibility) */
37
- --blast-score-mid-low: #3b82f6; /* 40 - 50 (Blue) */
38
- --blast-score-mid: #10b981; /* 50 - 80 (Green) */
39
- --blast-score-mid-high: #ec4899; /* 80 - 200 (Magenta) */
40
- --blast-score-high: #ef4444; /* >= 200 (Red) */
41
-
42
- /* Shadows and Blurs */
43
- --card-blur: 16px;
44
- --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
45
- --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
46
- --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
47
- --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.3);
48
-
49
- --radius-sm: 6px;
50
- --radius-md: 12px;
51
- --radius-lg: 18px;
52
-
53
- --transition-fast: 0.15s ease;
54
- --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
55
- }
56
-
57
- :root[data-theme='light'], [data-theme='light'] {
58
- --bg-primary: #f9fafb;
59
- --bg-secondary: #e5e7eb;
60
- --bg-card: rgba(255, 255, 255, 0.85);
61
- --bg-card-hover: rgba(255, 255, 255, 1);
62
- --border-color: rgba(0, 0, 0, 0.1);
63
- --border-color-hover: rgba(0, 0, 0, 0.2);
64
-
65
- --text-primary: #111827;
66
-
67
- --bg-header: rgba(249, 250, 251, 0.8);
68
- --text-secondary: #374151;
69
- --text-muted: #6b7280;
70
-
71
- --color-primary-glow: rgba(59, 130, 246, 0.2);
72
- --color-secondary-glow: rgba(139, 92, 246, 0.2);
73
-
74
- --bg-header: rgba(249, 250, 251, 0.8);
75
- --bg-overlay-hover: rgba(0, 0, 0, 0.03);
76
- --bg-overlay-1: rgba(0, 0, 0, 0.05);
77
- --bg-overlay-2: rgba(0, 0, 0, 0.1);
78
- --bg-depth: rgba(255, 255, 255, 0.7);
79
- --bg-depth-light: rgba(255, 255, 255, 0.5);
80
-
81
- --blast-score-low: #000000;
82
- }
83
-
84
- /* Global Reset */
85
- *, *::before, *::after {
86
- box-sizing: border-box;
87
- margin: 0;
88
- padding: 0;
89
- }
90
-
91
- body {
92
- font-family: var(--font-sans);
93
- background-color: var(--bg-primary);
94
- color: var(--text-primary);
95
- min-height: 100vh;
96
- line-height: 1.6;
97
- overflow-x: hidden;
98
- -webkit-font-smoothing: antialiased;
99
- -moz-osx-font-smoothing: grayscale;
100
- }
101
-
102
- /* Custom Scrollbars */
103
- ::-webkit-scrollbar {
104
- width: 10px;
105
- height: 10px;
106
- }
107
-
108
- ::-webkit-scrollbar-track {
109
- background: var(--bg-primary);
110
- }
111
-
112
- ::-webkit-scrollbar-thumb {
113
- background: var(--border-color-hover);
114
- border-radius: var(--radius-sm);
115
- border: 2px solid var(--bg-primary);
116
- }
117
-
118
- ::-webkit-scrollbar-thumb:hover {
119
- background: var(--border-color-hover);
120
- }
121
-
122
- /* Core Container Utilities */
123
- .container {
124
- width: 100%;
125
- max-width: 1400px;
126
- margin: 0 auto;
127
- padding: 2rem 1.5rem;
128
- }
129
-
130
- /* Glassmorphic Panel/Card */
131
- .glass-panel {
132
- background: var(--bg-card);
133
- backdrop-filter: blur(var(--card-blur));
134
- -webkit-backdrop-filter: blur(var(--card-blur));
135
- border: 1px solid var(--border-color);
136
- border-radius: var(--radius-md);
137
- box-shadow: var(--shadow-md);
138
- transition: border-color var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
139
- }
140
-
141
- .glass-panel:hover {
142
- border-color: var(--border-color-hover);
143
- background: var(--bg-card-hover);
144
- }
145
-
146
- /* Micro-animations */
147
- @keyframes fadeIn {
148
- from { opacity: 0; transform: translateY(10px); }
149
- to { opacity: 1; transform: translateY(0); }
150
- }
151
-
152
- @keyframes pulse-glow {
153
- 0%, 100% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.1); }
154
- 50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
155
- }
156
-
157
- .fade-in {
158
- animation: fadeIn var(--transition-normal) forwards;
159
- }
160
-
161
- /* Monospace Utilities for Sequence Data */
162
- .sequence-font {
163
- font-family: var(--font-mono);
164
- font-size: 0.9rem;
165
- letter-spacing: 0.05em;
166
- word-break: break-all;
167
- }
168
-
169
- /* Form inputs & Buttons styled nicely */
170
- .btn {
171
- font-family: var(--font-sans);
172
- font-weight: 600;
173
- display: inline-flex;
174
- align-items: center;
175
- justify-content: center;
176
- gap: 0.5rem;
177
- padding: 0.625rem 1.25rem;
178
- border-radius: var(--radius-sm);
179
- border: 1px solid transparent;
180
- cursor: pointer;
181
- transition: all var(--transition-fast);
182
- font-size: 0.9rem;
183
- }
184
-
185
- .btn-primary {
186
- background: var(--color-primary);
187
- color: white;
188
- }
189
-
190
- .btn-primary:hover {
191
- background: #2563eb;
192
- box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
193
- transform: translateY(-1px);
194
- }
195
-
196
- .btn-secondary {
197
- background: var(--bg-secondary);
198
- color: var(--text-primary);
199
- border-color: var(--border-color);
200
- }
201
-
202
- .btn-secondary:hover {
203
- background: var(--border-color-hover);
204
- border-color: var(--border-color-hover);
205
- transform: translateY(-1px);
206
- }
207
-
208
- .input-text {
209
- background: var(--bg-secondary);
210
- border: 1px solid var(--border-color);
211
- border-radius: var(--radius-sm);
212
- color: var(--text-primary);
213
- padding: 0.625rem 1rem;
214
- font-family: var(--font-sans);
215
- transition: all var(--transition-fast);
216
- outline: none;
217
- }
218
-
219
- .input-text:focus {
220
- border-color: var(--color-primary);
221
- box-shadow: 0 0 0 3px var(--color-primary-glow);
222
- }
223
-
224
- /* Tooltip standard stylesheet rules */
225
- .blast-tooltip {
226
- position: absolute;
227
- pointer-events: none;
228
- background: var(--bg-secondary);
229
- border: 1px solid var(--border-color-hover);
230
- border-radius: var(--radius-sm);
231
- padding: 0.75rem;
232
- font-size: 0.8rem;
233
- box-shadow: var(--shadow-lg);
234
- z-index: 100;
235
- max-width: 280px;
236
- backdrop-filter: blur(8px);
237
- }
238
-
239
- .blast-tooltip table {
240
- width: 100%;
241
- border-collapse: collapse;
242
- }
243
-
244
- .blast-tooltip td {
245
- padding: 2px 4px;
246
- }
247
-
248
- .blast-tooltip td.label {
249
- color: var(--text-secondary);
250
- font-weight: 500;
251
- padding-right: 8px;
252
- }
253
-
254
- .blast-tooltip td.val {
255
- color: var(--text-primary);
256
- font-family: var(--font-mono);
257
- font-weight: 600;
258
- }
package/src/types.ts DELETED
@@ -1,59 +0,0 @@
1
- export interface BlastHsp {
2
- num: number;
3
- bit_score: number;
4
- score: number;
5
- evalue: number;
6
- identity: number;
7
- query_from: number;
8
- query_to: number;
9
- hit_from: number;
10
- hit_to: number;
11
- query_strand?: string;
12
- hit_strand?: string;
13
- align_len: number;
14
- gaps: number;
15
- qseq: string;
16
- hseq: string;
17
- midline: string;
18
- }
19
-
20
- export interface BlastHitDescription {
21
- id: string;
22
- accession: string;
23
- title: string;
24
- taxid?: number;
25
- }
26
-
27
- export interface BlastHit {
28
- num: number;
29
- description: BlastHitDescription[];
30
- len: number;
31
- hsps: BlastHsp[];
32
- }
33
-
34
- export interface BlastSearch {
35
- query_id: string;
36
- query_title: string;
37
- query_len: number;
38
- hits: BlastHit[];
39
- }
40
-
41
- export interface BlastReport {
42
- program: string;
43
- version: string;
44
- reference: string;
45
- search_target: {
46
- db: string;
47
- };
48
- results: {
49
- search: BlastSearch;
50
- };
51
- }
52
-
53
- export interface BlastOutput2 {
54
- report: BlastReport;
55
- }
56
-
57
- export interface BlastRoot {
58
- BlastOutput2: BlastOutput2[];
59
- }
package/tsconfig.app.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "extends": "@vue/tsconfig/tsconfig.dom.json",
3
- "compilerOptions": {
4
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
5
- "types": ["vite/client"],
6
-
7
- /* Linting */
8
- "noUnusedLocals": true,
9
- "noUnusedParameters": true,
10
- "erasableSyntaxOnly": true,
11
- "noFallthroughCasesInSwitch": true
12
- },
13
- "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"]
14
- }
package/tsconfig.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "useDefineForClassFields": true,
5
- "module": "ESNext",
6
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
- "skipLibCheck": true,
8
-
9
- /* Bundler mode */
10
- "moduleResolution": "bundler",
11
- "types": ["vite/client"],
12
- "allowImportingTsExtensions": true,
13
- "resolveJsonModule": true,
14
- "isolatedModules": true,
15
- "emitDeclarationOnly": true,
16
- "declaration": true,
17
- "rootDir": "src",
18
- "outDir": "dist",
19
- "jsx": "preserve",
20
-
21
- /* Linting */
22
- "strict": true,
23
- "noUnusedLocals": true,
24
- "noUnusedParameters": true,
25
- "noFallthroughCasesInSwitch": true
26
- },
27
- "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
28
- }
package/vite.config.ts DELETED
@@ -1,24 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import vue from '@vitejs/plugin-vue'
3
- import { resolve } from 'path'
4
-
5
- // https://vite.dev/config/
6
- export default defineConfig({
7
- plugins: [vue()],
8
- build: {
9
- lib: {
10
- entry: resolve(__dirname, 'src/index.ts'),
11
- name: 'VueBlastViewer',
12
- fileName: 'vue-blast-viewer',
13
- },
14
- rollupOptions: {
15
- external: ['vue'],
16
- output: {
17
- globals: {
18
- vue: 'Vue',
19
- },
20
- exports: 'named'
21
- },
22
- },
23
- },
24
- })
Binary file
File without changes