@d-mok/quasar-app-extension-quasar-axe 0.0.87 → 0.0.91
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
|
<template>
|
|
2
2
|
<q-layout :view="view">
|
|
3
|
-
<q-header elevated z-top>
|
|
3
|
+
<q-header v-if="!noHeader" elevated z-top>
|
|
4
4
|
<q-toolbar>
|
|
5
5
|
<q-btn
|
|
6
6
|
flat
|
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
@click="open = !open"
|
|
11
11
|
/>
|
|
12
12
|
|
|
13
|
-
<q-toolbar-title class="text-weight-bolder text-h5">
|
|
14
|
-
{{ title }}
|
|
15
|
-
</q-toolbar-title>
|
|
13
|
+
<q-toolbar-title class="text-weight-bolder text-h5">{{ title }}</q-toolbar-title>
|
|
16
14
|
|
|
17
15
|
<div class="text-h6">/{{ appendix }}</div>
|
|
18
16
|
</q-toolbar>
|
|
@@ -78,15 +76,19 @@ export default defineComponent({
|
|
|
78
76
|
},
|
|
79
77
|
width: {
|
|
80
78
|
default: "1200px",
|
|
81
|
-
type: String
|
|
79
|
+
type: String as PropType<any>
|
|
82
80
|
},
|
|
83
81
|
showDrawer: {
|
|
84
82
|
type: Boolean,
|
|
85
83
|
default: false
|
|
86
84
|
},
|
|
87
|
-
view:{
|
|
88
|
-
type:String,
|
|
89
|
-
default:"hHh LpR fFf"
|
|
85
|
+
view: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: "hHh LpR fFf"
|
|
88
|
+
},
|
|
89
|
+
noHeader: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: false
|
|
90
92
|
}
|
|
91
93
|
},
|
|
92
94
|
setup() {
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
1
|
declare global {
|
|
5
2
|
interface XMLHttpRequest {
|
|
6
3
|
_url: string;
|
|
@@ -19,12 +16,10 @@ export function setAjaxInterceptor(
|
|
|
19
16
|
|
|
20
17
|
|
|
21
18
|
window.XMLHttpRequest.prototype.open = function (...args: any) {
|
|
22
|
-
this._url = args
|
|
23
|
-
open.apply(this, args)
|
|
19
|
+
this._url = args[1] ?? ''
|
|
20
|
+
open.apply(this, args)
|
|
24
21
|
};
|
|
25
22
|
|
|
26
|
-
|
|
27
|
-
|
|
28
23
|
window.XMLHttpRequest.prototype.send = function (...args: any) {
|
|
29
24
|
var request = this
|
|
30
25
|
onStart(request)
|
|
@@ -9,6 +9,9 @@ export { Table, Empower } from '@d-mok/quasar-app-extension-quasar-axe/src/utils
|
|
|
9
9
|
import '@d-mok/quasar-app-extension-quasar-axe/src/utils/supabase'
|
|
10
10
|
//@ts-ignore
|
|
11
11
|
export { supabase, handleError } from '@d-mok/quasar-app-extension-quasar-axe/src/utils/supabase'
|
|
12
|
+
//@ts-ignore
|
|
13
|
+
export { Sheet, List } from '@d-mok/quasar-app-extension-quasar-axe/src/utils/sapphire'
|
|
14
|
+
|
|
12
15
|
|
|
13
16
|
//@ts-ignore
|
|
14
17
|
import { qDialog } from '@d-mok/quasar-app-extension-quasar-axe/src/utils/dialog'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Sheet, List } from 'sapphire-js'
|
package/src/utils/table.ts
CHANGED
|
@@ -329,6 +329,13 @@ export abstract class Table<T extends R, R extends object> extends Sheet<T>{
|
|
|
329
329
|
}
|
|
330
330
|
return q
|
|
331
331
|
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Get an item by `criteria`. If not found, return a new object.
|
|
335
|
+
*/
|
|
336
|
+
got(criteria: Criteria<T>): T {
|
|
337
|
+
return this.get(criteria) ?? new this.entityClass({})
|
|
338
|
+
}
|
|
332
339
|
}
|
|
333
340
|
|
|
334
341
|
|