@d-mok/quasar-app-extension-quasar-axe 2.0.23 → 2.0.25

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.0.23",
3
+ "version": "2.0.25",
4
4
  "description": "A Quasar App Extension",
5
5
  "author": "d-mok <49301824+d-mok@users.noreply.github.com>",
6
6
  "license": "MIT",
@@ -24,7 +24,6 @@
24
24
  "jszip": "^3.9.0",
25
25
  "lodash": "^4.17.21",
26
26
  "papaparse": "^5.3.2",
27
- "sapphire-js": "^1.0.69",
28
27
  "vuedraggable": "^4.1.0"
29
28
  },
30
29
  "devDependencies": {
@@ -1,21 +1,16 @@
1
1
  import Papa from 'papaparse'
2
2
 
3
- export function unparseCSV(arr: Record<string, any>[]): string {
3
+ export function unparseCSV(
4
+ arr: Record<string, any>[],
5
+ delimiter: string
6
+ ): string {
4
7
  return Papa.unparse(arr, {
5
8
  quotes: false, //or array of booleans
6
9
  quoteChar: '"',
7
10
  escapeChar: '"',
8
- delimiter: '\t',
11
+ delimiter,
9
12
  header: true,
10
13
  newline: '\r\n',
11
14
  skipEmptyLines: false, //other option is 'greedy', meaning skip delimiters, quotes, and whitespace.
12
15
  })
13
-
14
- // let fields = Object.keys(arr[0])
15
- // let csv = fields.join(delimiter) + '\n'
16
- // for (let obj of arr) {
17
- // let line = fields.map(f => String(obj[f])).join(delimiter)
18
- // csv += line + '\n'
19
- // }
20
- // return csv
21
16
  }
@@ -117,7 +117,7 @@ function filterBlank(rows: row[]): row[] {
117
117
  // copy to clipboard
118
118
 
119
119
  function copy() {
120
- let csv = unparseCSV(dummy.value)
120
+ let csv = unparseCSV(dummy.value, '\t')
121
121
  copyToClipboard(csv)
122
122
  }
123
123
  </script>
@@ -1,7 +1,7 @@
1
1
  export { qDialog } from './dialog'
2
2
  export * as qNotify from './notify'
3
3
 
4
- export { Sheet, List } from 'sapphire-js'
4
+ export { Sheet, List } from './sapphire'
5
5
 
6
6
  import * as lo from 'lodash'
7
7
  export const _ = lo
@@ -1,4 +1,4 @@
1
- import { Criteria, Ordering, Sheet } from 'sapphire-js'
1
+ import { Criteria, Ordering, Sheet } from '../sapphire'
2
2
  import {
3
3
  DeleteBuilder,
4
4
  InsertBuilder,