quasar-factory-lib 0.1.8 → 0.1.10
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/ListSkeleton/ListSkeleton.vue.d.ts +2 -0
- package/dist/components/ListSkeleton/index.d.ts +7 -0
- package/dist/components/SkeletonTaskList/SkeletonTaskList.vue.d.ts +2 -0
- package/dist/components/SkeletonTaskList/index.d.ts +7 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/plugins.d.ts +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/layouts/PdaLayout.vue.d.ts +2 -40
- package/dist/quasar-factory-lib.js +3974 -3791
- package/dist/quasar-factory-lib.umd.cjs +12 -12
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/ListSkeleton/ListSkeleton.vue +65 -0
- package/src/components/ListSkeleton/index.ts +16 -0
- package/src/components/SkeletonAreas/SkeletonAreas.vue +2 -10
- package/src/components/SkeletonAreas/style.css +9 -0
- package/src/components/SkeletonTaskList/SkeletonTaskList.vue +47 -0
- package/src/components/SkeletonTaskList/index.ts +16 -0
- package/src/components/index.ts +7 -1
- package/src/components/plugins.ts +3 -1
- package/src/css/app.css +1 -0
- package/src/index.ts +5 -2
- package/src/layouts/PdaLayout.vue +10 -10
package/package.json
CHANGED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="q-pa-md">
|
|
3
|
+
<q-item>
|
|
4
|
+
<q-item-section>
|
|
5
|
+
<q-item-label>
|
|
6
|
+
<q-skeleton type="text" />
|
|
7
|
+
</q-item-label>
|
|
8
|
+
<q-item-label caption>
|
|
9
|
+
<q-skeleton
|
|
10
|
+
type="text"
|
|
11
|
+
width="65%"
|
|
12
|
+
/>
|
|
13
|
+
</q-item-label>
|
|
14
|
+
</q-item-section>
|
|
15
|
+
</q-item>
|
|
16
|
+
|
|
17
|
+
<q-item>
|
|
18
|
+
<q-item-section>
|
|
19
|
+
<q-item-label>
|
|
20
|
+
<q-skeleton type="text" />
|
|
21
|
+
</q-item-label>
|
|
22
|
+
<q-item-label caption>
|
|
23
|
+
<q-skeleton
|
|
24
|
+
type="text"
|
|
25
|
+
width="90%"
|
|
26
|
+
/>
|
|
27
|
+
</q-item-label>
|
|
28
|
+
</q-item-section>
|
|
29
|
+
</q-item>
|
|
30
|
+
|
|
31
|
+
<q-item>
|
|
32
|
+
<q-item-section>
|
|
33
|
+
<q-item-label>
|
|
34
|
+
<q-skeleton
|
|
35
|
+
type="text"
|
|
36
|
+
width="50%"
|
|
37
|
+
/>
|
|
38
|
+
</q-item-label>
|
|
39
|
+
<q-item-label caption>
|
|
40
|
+
<q-skeleton type="text" />
|
|
41
|
+
</q-item-label>
|
|
42
|
+
</q-item-section>
|
|
43
|
+
</q-item>
|
|
44
|
+
|
|
45
|
+
<q-item>
|
|
46
|
+
<q-item-section>
|
|
47
|
+
<q-item-label>
|
|
48
|
+
<q-skeleton
|
|
49
|
+
type="text"
|
|
50
|
+
width="35%"
|
|
51
|
+
/>
|
|
52
|
+
</q-item-label>
|
|
53
|
+
<q-item-label caption>
|
|
54
|
+
<q-skeleton type="text" />
|
|
55
|
+
</q-item-label>
|
|
56
|
+
</q-item-section>
|
|
57
|
+
</q-item>
|
|
58
|
+
</div>
|
|
59
|
+
</template>
|
|
60
|
+
<script lang="ts">
|
|
61
|
+
export default {
|
|
62
|
+
name: 'ListSkeleton',
|
|
63
|
+
}
|
|
64
|
+
</script>
|
|
65
|
+
<style></style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { App, Plugin } from 'vue'
|
|
2
|
+
|
|
3
|
+
import ListSkeleton from './ListSkeleton.vue'
|
|
4
|
+
|
|
5
|
+
import { registerComponent } from '@/utils/plugins'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
/** export ListSkeleton plugin */
|
|
9
|
+
export default {
|
|
10
|
+
install (app: App) {
|
|
11
|
+
registerComponent(app, 'ListSkeleton', ListSkeleton)
|
|
12
|
+
}
|
|
13
|
+
} as Plugin
|
|
14
|
+
|
|
15
|
+
/** export ListSkeleton components */
|
|
16
|
+
export { ListSkeleton as ListSkeleton }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<q-card class="
|
|
2
|
+
<q-card class="skeleton-areas">
|
|
3
3
|
<q-card-section>
|
|
4
4
|
<q-skeleton type="QAvatar" />
|
|
5
5
|
<q-skeleton
|
|
@@ -15,13 +15,5 @@
|
|
|
15
15
|
}
|
|
16
16
|
</script>
|
|
17
17
|
<style scoped>
|
|
18
|
-
|
|
19
|
-
width: 200px;
|
|
20
|
-
height: 200px;
|
|
21
|
-
}
|
|
22
|
-
@media only screen and (max-width: 600px) {
|
|
23
|
-
.cardSkeleton {
|
|
24
|
-
width: 100%;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
18
|
+
@import url();
|
|
27
19
|
</style>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<q-card>
|
|
4
|
+
<q-item>
|
|
5
|
+
<q-item-section>
|
|
6
|
+
<q-item-label>
|
|
7
|
+
<q-skeleton type="text" />
|
|
8
|
+
</q-item-label>
|
|
9
|
+
<q-item-label caption>
|
|
10
|
+
<q-skeleton type="text" />
|
|
11
|
+
</q-item-label>
|
|
12
|
+
</q-item-section>
|
|
13
|
+
<q-item-section avatar>
|
|
14
|
+
<q-skeleton type="QAvatar" />
|
|
15
|
+
</q-item-section>
|
|
16
|
+
</q-item>
|
|
17
|
+
|
|
18
|
+
<q-item>
|
|
19
|
+
<q-skeleton type="QBadge" />
|
|
20
|
+
</q-item>
|
|
21
|
+
|
|
22
|
+
<q-item-label>
|
|
23
|
+
<q-skeleton
|
|
24
|
+
v-for="n in 3"
|
|
25
|
+
:key="n"
|
|
26
|
+
type="text"
|
|
27
|
+
/>
|
|
28
|
+
</q-item-label>
|
|
29
|
+
|
|
30
|
+
<q-card-actions>
|
|
31
|
+
<q-skeleton
|
|
32
|
+
v-for="n in 4"
|
|
33
|
+
:key="n"
|
|
34
|
+
size="25px"
|
|
35
|
+
type="QBtn"
|
|
36
|
+
class="q-mr-sm"
|
|
37
|
+
/>
|
|
38
|
+
</q-card-actions>
|
|
39
|
+
</q-card>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
<script lang="ts">
|
|
43
|
+
export default {
|
|
44
|
+
name: 'SkeletonTaskList',
|
|
45
|
+
}
|
|
46
|
+
</script>
|
|
47
|
+
<style></style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { App, Plugin } from 'vue'
|
|
2
|
+
|
|
3
|
+
import SkeletonTaskList from './SkeletonTaskList.vue'
|
|
4
|
+
|
|
5
|
+
import { registerComponent } from '@/utils/plugins'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
/** export SkeletonTaskList plugin */
|
|
9
|
+
export default {
|
|
10
|
+
install (app: App) {
|
|
11
|
+
registerComponent(app, 'SkeletonTaskList', SkeletonTaskList)
|
|
12
|
+
}
|
|
13
|
+
} as Plugin
|
|
14
|
+
|
|
15
|
+
/** export SkeletonTaskList components */
|
|
16
|
+
export { SkeletonTaskList as SkeletonTaskList }
|
package/src/components/index.ts
CHANGED
|
@@ -7,4 +7,10 @@ export * from './TableRowsCounter'
|
|
|
7
7
|
export * from './NavBarSkeleton'
|
|
8
8
|
export * from './AlertLabelsWithError'
|
|
9
9
|
export * from './FormSkeleton'
|
|
10
|
-
export * from './SkeletonAreas'
|
|
10
|
+
export * from './SkeletonAreas'
|
|
11
|
+
export * from './ListSkeleton'
|
|
12
|
+
export * from './SkeletonTaskList'
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
@@ -8,5 +8,7 @@ import NavBarSkeleton from './NavBarSkeleton'
|
|
|
8
8
|
import AlertLabelsWithError from './AlertLabelsWithError'
|
|
9
9
|
import FormSkeleton from './FormSkeleton'
|
|
10
10
|
import SkeletonAreas from './SkeletonAreas'
|
|
11
|
-
|
|
11
|
+
import ListSkeleton from './ListSkeleton'
|
|
12
|
+
import SkeletonTaskList from './SkeletonTaskList'
|
|
13
|
+
export { MyTable, AlertDialog, ConfirmDialog, TaskNavBar, ConfirmedTask, TableRowsCounter, NavBarSkeleton, AlertLabelsWithError, FormSkeleton, SkeletonAreas, ListSkeleton, SkeletonTaskList }
|
|
12
14
|
|
package/src/css/app.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@import url('../components/Table/css/table.css');
|
|
2
2
|
@import url('../components/TaskNavBar/css/taskNavBar.css');
|
|
3
3
|
@import url('../components/ConfirmedTask/style.css');
|
|
4
|
+
@import url('../components/SkeletonAreas/style.css');
|
|
4
5
|
@import url('./fonts.css');
|
|
5
6
|
:root {
|
|
6
7
|
--main-color: #FFF8F2;
|
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, FormSkeleton, SkeletonAreas} from './components/plugins.ts'
|
|
4
|
+
import { MyTable, AlertDialog, ConfirmDialog, TaskNavBar, ConfirmedTask, TableRowsCounter, NavBarSkeleton, AlertLabelsWithError, FormSkeleton, SkeletonAreas, ListSkeleton, SkeletonTaskList} 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, FormSkeleton, SkeletonAreas } from './components/index.ts'
|
|
8
|
+
export { MyTable, AlertDialog, ConfirmDialog, TaskNavBar, ConfirmedTask, TableRowsCounter, NavBarSkeleton, AlertLabelsWithError, FormSkeleton, SkeletonAreas, ListSkeleton, SkeletonTaskList } from './components/index.ts'
|
|
9
9
|
|
|
10
10
|
export type { TranslateKeys }
|
|
11
11
|
// import plugins from "./components/plugins";
|
|
@@ -31,6 +31,9 @@ const plugin: Plugin = {
|
|
|
31
31
|
registerPlugin(app, AlertLabelsWithError)
|
|
32
32
|
registerPlugin(app, FormSkeleton)
|
|
33
33
|
registerPlugin(app, SkeletonAreas)
|
|
34
|
+
registerPlugin(app, ListSkeleton)
|
|
35
|
+
registerPlugin(app, SkeletonTaskList)
|
|
36
|
+
|
|
34
37
|
app.use(i18n)
|
|
35
38
|
app.use(pinia)
|
|
36
39
|
i18n.global.locale = 'en'
|
|
@@ -33,7 +33,10 @@
|
|
|
33
33
|
/>
|
|
34
34
|
<q-page-container>
|
|
35
35
|
<q-page>
|
|
36
|
+
<ListSkeleton/>
|
|
37
|
+
<SkeletonTaskList/>
|
|
36
38
|
<Table
|
|
39
|
+
v-if="false"
|
|
37
40
|
ref="table"
|
|
38
41
|
:rows="rows"
|
|
39
42
|
:columns="columns"
|
|
@@ -59,9 +62,6 @@
|
|
|
59
62
|
@on-drag-end="(args) => {
|
|
60
63
|
console.log(args, 'end')
|
|
61
64
|
}"
|
|
62
|
-
@onUpdateSelected="(details) => {
|
|
63
|
-
console.log(details, 'details')
|
|
64
|
-
}"
|
|
65
65
|
/>
|
|
66
66
|
<q-page-sticky
|
|
67
67
|
v-if="smallDevice"
|
|
@@ -88,6 +88,8 @@ import TableRowsCounter from'../components/TableRowsCounter/TableRowsCounter.vue
|
|
|
88
88
|
import AlertLabelsWithError from '../components/AlertLabelsWithError/AlertLabelsWithError.vue'
|
|
89
89
|
import setTableHeight from '../components/Table/utils/setTableHeight'
|
|
90
90
|
// import infiniteScroll from '../components/Table/utils/infiniteScroll'
|
|
91
|
+
import ListSkeleton from '../components/ListSkeleton/ListSkeleton.vue'
|
|
92
|
+
import SkeletonTaskList from '../components/SkeletonTaskList/SkeletonTaskList.vue'
|
|
91
93
|
import { tableStore } from '../store/table.js'
|
|
92
94
|
export default {
|
|
93
95
|
components: {
|
|
@@ -95,7 +97,9 @@ export default {
|
|
|
95
97
|
Table,
|
|
96
98
|
TableRowsCounter,
|
|
97
99
|
AlertLabelsWithError,
|
|
98
|
-
NavBarSkeleton
|
|
100
|
+
NavBarSkeleton,
|
|
101
|
+
ListSkeleton,
|
|
102
|
+
SkeletonTaskList
|
|
99
103
|
},
|
|
100
104
|
data () {
|
|
101
105
|
return {
|
|
@@ -144,12 +148,8 @@ export default {
|
|
|
144
148
|
label: 'Boolean Icon',
|
|
145
149
|
align: 'left',
|
|
146
150
|
sortable: true,
|
|
147
|
-
showCustomizedIcon: true,
|
|
148
|
-
type: 'boolean'
|
|
149
|
-
customizedIconNameCaseTrue: 'warning',
|
|
150
|
-
customizedIconNameCaseFalse: 'edit',
|
|
151
|
-
customizedIconColorCaseTrue: 'negative',
|
|
152
|
-
customizedIconColorCaseFalse: 'positive',
|
|
151
|
+
showCustomizedIcon: true,
|
|
152
|
+
type: 'boolean'
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
name: 'calories',
|