@sfgrp/distinguish 0.4.2 → 0.4.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.
- package/LICENSE +21 -0
- package/README.md +8 -6
- package/dist/distinguish.es.js +321 -300
- package/dist/distinguish.umd.js +4 -4
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Species File Group
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -44,9 +44,9 @@ yarn add @sfgrp/distinguish vue pinia
|
|
|
44
44
|
You can copy and paste the following tags into your HTML file.
|
|
45
45
|
|
|
46
46
|
```html
|
|
47
|
-
<script src="https://unpkg.com/vue/dist/vue.global.prod.js"></script>
|
|
48
|
-
<script src="https://unpkg.com/vue-demi"></script>
|
|
49
|
-
<script src="https://unpkg.com/pinia"></script>
|
|
47
|
+
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
|
|
48
|
+
<script src="https://unpkg.com/vue-demi/lib/index.iife.js"></script>
|
|
49
|
+
<script src="https://unpkg.com/pinia/dist/pinia.iife.prod.js"></script>
|
|
50
50
|
<link
|
|
51
51
|
rel="stylesheet"
|
|
52
52
|
href="https://cdn.jsdelivr.net/npm/@sfgrp/distinguish@latest/dist/style.min.css"
|
|
@@ -69,6 +69,7 @@ To pass the options you need to add the prefix `data-` and write the option in k
|
|
|
69
69
|
data-observation-matrix-id="1"
|
|
70
70
|
data-project-token="xQ9bKrhfQtHYfro9t6YY0A"
|
|
71
71
|
data-base-url="https://sfg.taxonworks.org/api/v1"
|
|
72
|
+
data-otu-id="1,2,3,4" <!-- Optional -->
|
|
72
73
|
></div>
|
|
73
74
|
```
|
|
74
75
|
|
|
@@ -92,6 +93,7 @@ const app = createInteractiveKey('#interactive-key', options)
|
|
|
92
93
|
```javascript
|
|
93
94
|
{
|
|
94
95
|
observationMatrixId: '', // Observation matrix ID
|
|
96
|
+
otuId: [], // Filter interactive key by OTU ID (optional)
|
|
95
97
|
apiConfig: {
|
|
96
98
|
baseURL: '', // URL API, e.g https://sfg.taxonworks.org/api/v1
|
|
97
99
|
csrfToken: '', // CSRF Token. Don't use it with authentification API params.
|
|
@@ -141,9 +143,9 @@ This uses the [CDN](#cdn) and [Declarative](#declarative) approach.
|
|
|
141
143
|
data-project-token="yourprojecttoken"
|
|
142
144
|
data-base-url="https://<your.taxonworks.server>/api/v1"
|
|
143
145
|
></div>
|
|
144
|
-
<script src="https://unpkg.com/vue/dist/vue.global.prod.js"></script>
|
|
145
|
-
<script src="https://unpkg.com/vue-demi"></script>
|
|
146
|
-
<script src="https://unpkg.com/pinia"></script>
|
|
146
|
+
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
|
|
147
|
+
<script src="https://unpkg.com/vue-demi/lib/index.iife.js"></script>
|
|
148
|
+
<script src="https://unpkg.com/pinia/dist/pinia.iife.prod.js"></script>
|
|
147
149
|
<script src="https://cdn.jsdelivr.net/npm/@sfgrp/distinguish@latest/dist/distinguish.umd.min.js"></script>
|
|
148
150
|
</body>
|
|
149
151
|
</html>
|