@mythpe/quasar-ui-qui 0.1.67 → 0.1.69

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": "@mythpe/quasar-ui-qui",
3
- "version": "0.1.67",
3
+ "version": "0.1.69",
4
4
  "description": "MyTh Quasar UI Kit App Extension",
5
5
  "author": {
6
6
  "name": "MyTh Ahmed Faiz",
@@ -28,6 +28,7 @@ type P = {
28
28
  autofocus?: Props['autofocus'];
29
29
  errors?: Props['errors'];
30
30
  type?: Props['type'];
31
+ loading?: Props['loading'];
31
32
  }
32
33
 
33
34
  const props = withDefaults(defineProps<P>(), {
@@ -40,7 +41,8 @@ const props = withDefaults(defineProps<P>(), {
40
41
  topLabelProps: undefined,
41
42
  autofocus: !1,
42
43
  errors: () => ([]),
43
- type: 'tel'
44
+ type: 'tel',
45
+ loading: !1
44
46
  })
45
47
  type Func = () => void;
46
48
  type Emits = {
@@ -197,7 +199,7 @@ const getTime = computed<string | null>(() => {
197
199
  const s = newDate.getSeconds()
198
200
  return `${(m < 9 ? '0' : '') + m}:${(s < 9 ? '0' : '') + s}`
199
201
  })
200
- const disabled = computed(() => seconds.value > 0)
202
+ const disabled = computed(() => seconds.value > 0 || props.loading)
201
203
  const clear = () => {
202
204
  interval && clearInterval(interval)
203
205
  }
@@ -34,15 +34,14 @@ export const useMyth = () => {
34
34
  number = parseInt(number.toString())
35
35
  route = route || $route
36
36
  const defaultValue = ''
37
- // Not is route
37
+ // Not route
38
38
  // No page title
39
39
  if (!route) {
40
40
  return defaultValue
41
41
  }
42
42
 
43
- const routePath = route?.path?.toString() || null
43
+ const routePath = route?.path?.toString()?.replace(/^\//, '').replace(/\//g, '.') || null
44
44
  const routeName = route?.name?.toString() || null
45
-
46
45
  // # Not is Route, No page title
47
46
  if (!routePath || !routeName) {
48
47
  return defaultValue
@@ -55,6 +54,7 @@ export const useMyth = () => {
55
54
  }
56
55
  const pluralize = Str.pascalCase(lodash.pluralize(lastRouteName))
57
56
  const singular = Str.pascalCase(lodash.singularize(lastRouteName))
57
+
58
58
  const keys = lodash.filter(lodash.uniq([
59
59
  `routes.${routeName}`,
60
60
  `routes.${routePath}`,
@@ -69,7 +69,7 @@ export const useMyth = () => {
69
69
  singular,
70
70
  lodash.snakeCase(singular)
71
71
  ]))
72
-
72
+ // console.log(keys)
73
73
  let str: string | null = null
74
74
  let k: string | any
75
75
 
@@ -15,7 +15,7 @@ export const createMyth = (options: InstallOptions) => {
15
15
  size: 'md',
16
16
  rounded: !0,
17
17
  shadow: 2,
18
- fluid: !0,
18
+ fluid: !1,
19
19
  buttons: {},
20
20
  inputs: {
21
21
  hideBottomSpace: !0,