quasar-factory-lib 0.1.3 → 0.1.5

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
@@ -98,6 +98,6 @@
98
98
  "release": "standard-version"
99
99
  },
100
100
  "type": "module",
101
- "version": "0.1.3",
101
+ "version": "0.1.5",
102
102
  "author": ""
103
103
  }
@@ -0,0 +1,42 @@
1
+ <template>
2
+ <div>
3
+ <q-card style="width: 320px; max-width: 320px;">
4
+ <q-item>
5
+ <q-item-section>
6
+ <q-item-label caption>
7
+ <q-skeleton type="text" />
8
+ </q-item-label>
9
+ </q-item-section>
10
+ <q-item-section avatar>
11
+ <q-skeleton type="circle" animation="fade" size="30px" />
12
+ </q-item-section>
13
+ </q-item>
14
+ <q-item>
15
+ <q-item-section>
16
+ <q-item-label v-for="n in numInputs" :key="n" caption>
17
+ <q-skeleton type="QInput" />
18
+ </q-item-label>
19
+ </q-item-section>
20
+ </q-item>
21
+ <q-card-actions align="right" class="q-gutter-md">
22
+ <q-skeleton type="QBtn" v-for="n in numButtons" :key="n"/>
23
+ </q-card-actions>
24
+ </q-card>
25
+ </div>
26
+ </template>
27
+ <script>
28
+ import { defineComponent } from 'vue'
29
+ export default defineComponent({
30
+ name: 'FormSkeleton',
31
+ props: {
32
+ numInputs: {
33
+ type: Number,
34
+ default: 1
35
+ },
36
+ numButtons: {
37
+ type: Number,
38
+ default: 1
39
+ }
40
+ }
41
+ })
42
+ </script>
@@ -0,0 +1,18 @@
1
+ import type { App, Plugin } from 'vue'
2
+
3
+ import FormSkeleton from './FormSkeleton.vue'
4
+
5
+ import { registerComponent } from '@/utils/plugins'
6
+
7
+ /** export button specific types */
8
+ // export type * from './types'
9
+
10
+ /** export button plugin */
11
+ export default {
12
+ install (app: App) {
13
+ registerComponent(app, 'FormSkeleton', FormSkeleton)
14
+ }
15
+ } as Plugin
16
+
17
+ /** export button components */
18
+ export { FormSkeleton as FormSkeleton }
@@ -5,4 +5,5 @@ export * from './TaskNavBar'
5
5
  export * from './ConfirmedTask'
6
6
  export * from './TableRowsCounter'
7
7
  export * from './NavBarSkeleton'
8
- export * from './AlertLabelsWithError'
8
+ export * from './AlertLabelsWithError'
9
+ export * from './FormSkeleton'
@@ -6,5 +6,6 @@ import ConfirmedTask from './ConfirmedTask'
6
6
  import TableRowsCounter from './TableRowsCounter'
7
7
  import NavBarSkeleton from './NavBarSkeleton'
8
8
  import AlertLabelsWithError from './AlertLabelsWithError'
9
- export { MyTable, AlertDialog, ConfirmDialog, TaskNavBar, ConfirmedTask, TableRowsCounter, NavBarSkeleton, AlertLabelsWithError }
9
+ import FormSkeleton from './FormSkeleton'
10
+ export { MyTable, AlertDialog, ConfirmDialog, TaskNavBar, ConfirmedTask, TableRowsCounter, NavBarSkeleton, AlertLabelsWithError, FormSkeleton }
10
11
 
package/src/index.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import '@quasar/extras/material-icons/material-icons.css'
2
2
  import { Quasar } from 'quasar'
3
3
  import { App, Plugin } from 'vue'
4
- import { MyTable, AlertDialog, ConfirmDialog, TaskNavBar, ConfirmedTask, TableRowsCounter, NavBarSkeleton, AlertLabelsWithError} from './components/plugins.ts'
4
+ import { MyTable, AlertDialog, ConfirmDialog, TaskNavBar, ConfirmedTask, TableRowsCounter, NavBarSkeleton, AlertLabelsWithError, FormSkeleton} from './components/plugins.ts'
5
5
  import { registerPlugin, setVueInstance } from './utils/plugins.ts'
6
6
  import TranslateKeys from './i18n/translateKeys.ts'
7
7
  import { createPinia } from 'pinia'
8
- export { MyTable, AlertDialog, ConfirmDialog, TaskNavBar, ConfirmedTask, TableRowsCounter, NavBarSkeleton, AlertLabelsWithError } from './components/index.ts'
8
+ export { MyTable, AlertDialog, ConfirmDialog, TaskNavBar, ConfirmedTask, TableRowsCounter, NavBarSkeleton, AlertLabelsWithError, FormSkeleton } from './components/index.ts'
9
9
 
10
10
  export type { TranslateKeys }
11
11
  // import plugins from "./components/plugins";
@@ -29,6 +29,7 @@ const plugin: Plugin = {
29
29
  registerPlugin(app, TableRowsCounter)
30
30
  registerPlugin(app, NavBarSkeleton)
31
31
  registerPlugin(app, AlertLabelsWithError)
32
+ registerPlugin(app, FormSkeleton)
32
33
  app.use(i18n)
33
34
  app.use(pinia)
34
35
  i18n.global.locale = 'en'
@@ -579,7 +579,7 @@ import { ref, computed, onMounted, watch } from 'vue'
579
579
  showSkeleton.value = true
580
580
  rows.value = rowsData.value
581
581
  setTimeout(()=> {
582
- showSkeleton.value = false
582
+ // showSkeleton.value = false
583
583
 
584
584
  }, 1000)
585
585
  }