@d-mok/quasar-app-extension-quasar-axe 2.1.97 → 2.1.99

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": "@d-mok/quasar-app-extension-quasar-axe",
3
- "version": "2.1.97",
3
+ "version": "2.1.99",
4
4
  "description": "A Quasar App Extension",
5
5
  "author": "d-mok <49301824+d-mok@users.noreply.github.com>",
6
6
  "license": "MIT",
@@ -27,9 +27,8 @@
27
27
  "lodash": "^4.17.21",
28
28
  "mime-types": "^2.1.35",
29
29
  "papaparse": "^5.4.1",
30
- "sapphire-js": "^2.1.9",
31
- "sortablejs": "^1.15.0",
32
- "vuedraggable": "^4.1.0"
30
+ "sapphire-js": "^2.1.10",
31
+ "sortablejs": "^1.15.0"
33
32
  },
34
33
  "devDependencies": {
35
34
  "@quasar/app-vite": "^1.7.1",
@@ -1,66 +0,0 @@
1
- <template>
2
- <q-markup-table
3
- bordered
4
- flat
5
- :dense="dense"
6
- >
7
- <thead>
8
- <tr>
9
- <th style="width: 50px">#</th>
10
- <th>{{ header }}</th>
11
- </tr>
12
- </thead>
13
- <draggable
14
- tag="tbody"
15
- :modelValue="modelValue"
16
- @update:modelValue="e => (modelValue = e)"
17
- :item-key="identity"
18
- :animation="200"
19
- ghostClass="sortable-ghost"
20
- >
21
- <template #item="{ element, index }">
22
- <tr style="cursor: move">
23
- <td>{{ index + 1 }}</td>
24
- <td>
25
- <b>{{ labeler(element) }}</b>
26
- </td>
27
- </tr>
28
- </template>
29
- </draggable>
30
- </q-markup-table>
31
- </template>
32
-
33
- <script lang="ts" setup generic="T extends Object">
34
- import draggable from 'vuedraggable'
35
- import { getLabelFunc } from '../../../utils/tool'
36
-
37
- let modelValue = defineModel<T[]>()
38
-
39
- const {
40
- header,
41
- label,
42
- dense = false,
43
- } = defineProps<{
44
- header: string
45
- label?: (string & keyof T) | ((_: T) => string)
46
- dense?: boolean
47
- }>()
48
-
49
- function identity($: any) {
50
- return $
51
- }
52
-
53
- function labeler(v: any) {
54
- return getLabelFunc(label)(v)
55
- }
56
- </script>
57
-
58
- <style scoped>
59
- .sortable-ghost {
60
- opacity: 0.5;
61
- background: #cbc4ff;
62
- }
63
- th {
64
- text-align: left;
65
- }
66
- </style>