@d-mok/quasar-app-extension-quasar-axe 2.0.16 → 2.0.19

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.16",
3
+ "version": "2.0.19",
4
4
  "description": "A Quasar App Extension",
5
5
  "author": "d-mok <49301824+d-mok@users.noreply.github.com>",
6
6
  "license": "MIT",
@@ -0,0 +1,11 @@
1
+ <template>
2
+ <qx-btn
3
+ v-bind="$attrs"
4
+ flat
5
+ dense
6
+ />
7
+ </template>
8
+
9
+ <script lang="ts" setup>
10
+ // this component follow qx-btn, with default flat and dense
11
+ </script>
@@ -0,0 +1,37 @@
1
+ <template>
2
+ <div
3
+ v-bind="$attrs"
4
+ :class="{
5
+ 'text-caption': caption,
6
+ 'text-subtitle1': subtitle1,
7
+ 'text-subtitle2': subtitle2,
8
+ 'text-body1': body1,
9
+ 'text-body2': body2,
10
+ 'text-h6': h6,
11
+ 'text-h5': h5,
12
+ 'text-h4': h4,
13
+ 'text-weight-bold': bold,
14
+ 'text-weight-bolder': bolder,
15
+ }"
16
+ >
17
+ <slot></slot>
18
+ </div>
19
+ </template>
20
+
21
+ <script lang="ts" setup>
22
+ const props = withDefaults(
23
+ defineProps<{
24
+ bold?: boolean
25
+ bolder?: boolean
26
+ caption?: boolean
27
+ subtitle1?: boolean
28
+ subtitle2?: boolean
29
+ body1?: boolean
30
+ body2?: boolean
31
+ h6?: boolean
32
+ h5?: boolean
33
+ h4?: boolean
34
+ }>(),
35
+ {}
36
+ )
37
+ </script>
@@ -23,6 +23,13 @@ async function base(component: QDialogOptions['component'], props: any) {
23
23
  )
24
24
  }
25
25
 
26
+ export async function custom(
27
+ component: QDialogOptions['component'],
28
+ props: any
29
+ ) {
30
+ await base(component, props)
31
+ }
32
+
26
33
  /**
27
34
  * Ask for a string by a text area. Allow empty.
28
35
  */
@@ -3,6 +3,9 @@ export * as qNotify from './notify'
3
3
 
4
4
  export { Sheet, List } from 'sapphire-js'
5
5
 
6
+ import * as lo from 'lodash'
7
+ export const _ = lo
8
+
6
9
  export { HANDLE_ERROR, supabase } from './supabase'
7
10
 
8
11
  export { localSettings } from './settings'
@@ -63,9 +63,17 @@ export function TABLE<
63
63
  this.order(...ordering)
64
64
  }
65
65
 
66
- /** Get an item by `criteria`. If not found, return a new object. */
66
+ /** Get an item by `criteria`. If not found, throw error. */
67
67
  got(criteria: Criteria<T>): T {
68
- return this.get(criteria) ?? new EntityClass({})
68
+ let obj = this.get(criteria)
69
+ if (obj === undefined) {
70
+ throw (
71
+ EntityClass.name +
72
+ ' has no element matching ' +
73
+ JSON.stringify(criteria)
74
+ )
75
+ }
76
+ return obj
69
77
  }
70
78
 
71
79
  /** make reactive */