quasar-factory-lib 0.1.2 → 0.1.4
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/dist/components/FormSkeleton/FormSkeleton.vue.d.ts +23 -0
- package/dist/components/FormSkeleton/index.d.ts +8 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/plugins.d.ts +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/quasar-factory-lib.js +2748 -2664
- package/dist/quasar-factory-lib.umd.cjs +12 -12
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/FormSkeleton/FormSkeleton.vue +42 -0
- package/src/components/FormSkeleton/index.ts +18 -0
- package/src/components/Table/Table.vue +1 -1
- package/src/components/Table/css/table.css +3 -0
- package/src/components/index.ts +2 -1
- package/src/components/plugins.ts +2 -1
- package/src/index.ts +3 -2
- package/src/layouts/PdaLayoutVueCompositionApi.vue +1 -1
package/package.json
CHANGED
|
@@ -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 }
|
|
@@ -527,7 +527,7 @@ export default defineComponent({
|
|
|
527
527
|
}, {} as { [key: string]: string })
|
|
528
528
|
},
|
|
529
529
|
handleInfiniteScrollTableCompositionAPi () {
|
|
530
|
-
const offSet = this.
|
|
530
|
+
const offSet = this.showIconAdvancedFilter && this.smallDevice ? document.getElementsByClassName('q-table__control')[0].offsetHeight : 0
|
|
531
531
|
this.$nextTick(() => {
|
|
532
532
|
const elemClass = this.smallDevice ? 'q-table__grid-content' : 'q-table__middle scroll'
|
|
533
533
|
const tableType = this.smallDevice ? 'Grid' : 'Table'
|
package/src/components/index.ts
CHANGED
|
@@ -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
|
-
|
|
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'
|