quasar-factory-lib 0.1.6 → 0.1.8
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/SkeletonAreas/SkeletonAreas.vue.d.ts +2 -0
- package/dist/components/SkeletonAreas/index.d.ts +7 -0
- package/dist/components/Table/Table.vue.d.ts +7 -1
- 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/layouts/PdaLayout.vue.d.ts +47 -1
- package/dist/pages/TablePage.vue.d.ts +7 -1
- package/dist/quasar-factory-lib.js +1590 -1550
- package/dist/quasar-factory-lib.umd.cjs +12 -12
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/SkeletonAreas/SkeletonAreas.vue +27 -0
- package/src/components/SkeletonAreas/index.ts +16 -0
- package/src/components/Table/Table.vue +18 -2
- package/src/components/index.ts +2 -1
- package/src/components/plugins.ts +2 -1
- package/src/index.ts +3 -2
- package/src/layouts/PdaLayout.vue +9 -3
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<q-card class="cardSkeleton">
|
|
3
|
+
<q-card-section>
|
|
4
|
+
<q-skeleton type="QAvatar" />
|
|
5
|
+
<q-skeleton
|
|
6
|
+
type="text"
|
|
7
|
+
style="margin-top: 100px"
|
|
8
|
+
/>
|
|
9
|
+
</q-card-section>
|
|
10
|
+
</q-card>
|
|
11
|
+
</template>
|
|
12
|
+
<script lang="ts">
|
|
13
|
+
export default {
|
|
14
|
+
name: 'SkeletonAreas',
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
<style scoped>
|
|
18
|
+
.cardSkeleton {
|
|
19
|
+
width: 200px;
|
|
20
|
+
height: 200px;
|
|
21
|
+
}
|
|
22
|
+
@media only screen and (max-width: 600px) {
|
|
23
|
+
.cardSkeleton {
|
|
24
|
+
width: 100%;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
</style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { App, Plugin } from 'vue'
|
|
2
|
+
|
|
3
|
+
import SkeletonAreas from './SkeletonAreas.vue'
|
|
4
|
+
|
|
5
|
+
import { registerComponent } from '@/utils/plugins'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
/** export SkeletonAreas plugin */
|
|
9
|
+
export default {
|
|
10
|
+
install (app: App) {
|
|
11
|
+
registerComponent(app, 'SkeletonAreas', SkeletonAreas)
|
|
12
|
+
}
|
|
13
|
+
} as Plugin
|
|
14
|
+
|
|
15
|
+
/** export SkeletonAreas components */
|
|
16
|
+
export { SkeletonAreas as SkeletonAreas }
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template lang="">
|
|
2
2
|
<div>
|
|
3
|
-
{{rowsPerPageOptions}}
|
|
4
3
|
<q-table
|
|
5
4
|
v-show="!showSkeleton"
|
|
6
5
|
ref="myTable"
|
|
@@ -242,7 +241,14 @@ export default defineComponent({
|
|
|
242
241
|
'onDragUpdate',
|
|
243
242
|
'onDragEnd',
|
|
244
243
|
'modifyPriorityOrder',
|
|
245
|
-
'onClickRowBtnPrintOP'
|
|
244
|
+
'onClickRowBtnPrintOP',
|
|
245
|
+
'getPOFromWorkCenter',
|
|
246
|
+
'getProductionTimesMachineCenter',
|
|
247
|
+
'operatorMachineAssignmentAssignMachine',
|
|
248
|
+
'operatorMachineAssignmentSetDate',
|
|
249
|
+
'operatorMachineAssignmentSetPartialMachineCenter',
|
|
250
|
+
'operatorMachineAssignmentSeeDetail'
|
|
251
|
+
|
|
246
252
|
],
|
|
247
253
|
data () {
|
|
248
254
|
return {
|
|
@@ -315,6 +321,16 @@ export default defineComponent({
|
|
|
315
321
|
this.dragAndDropDelay = 0
|
|
316
322
|
}
|
|
317
323
|
},
|
|
324
|
+
/* showSkeleton (val: boolean): void {
|
|
325
|
+
if (!val) {
|
|
326
|
+
this.handleInfiniteScrollTableCompositionAPi()
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
'$q.screen.width' (): void {
|
|
330
|
+
setTimeout(() => {
|
|
331
|
+
this.handleInfiniteScrollTableCompositionAPi()
|
|
332
|
+
}, 500)
|
|
333
|
+
} */
|
|
318
334
|
},
|
|
319
335
|
mounted () {
|
|
320
336
|
this.getAdvancedFilterColumns()
|
package/src/components/index.ts
CHANGED
|
@@ -7,5 +7,6 @@ import TableRowsCounter from './TableRowsCounter'
|
|
|
7
7
|
import NavBarSkeleton from './NavBarSkeleton'
|
|
8
8
|
import AlertLabelsWithError from './AlertLabelsWithError'
|
|
9
9
|
import FormSkeleton from './FormSkeleton'
|
|
10
|
-
|
|
10
|
+
import SkeletonAreas from './SkeletonAreas'
|
|
11
|
+
export { MyTable, AlertDialog, ConfirmDialog, TaskNavBar, ConfirmedTask, TableRowsCounter, NavBarSkeleton, AlertLabelsWithError, FormSkeleton, SkeletonAreas }
|
|
11
12
|
|
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} from './components/plugins.ts'
|
|
4
|
+
import { MyTable, AlertDialog, ConfirmDialog, TaskNavBar, ConfirmedTask, TableRowsCounter, NavBarSkeleton, AlertLabelsWithError, FormSkeleton, SkeletonAreas} 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 } from './components/index.ts'
|
|
8
|
+
export { MyTable, AlertDialog, ConfirmDialog, TaskNavBar, ConfirmedTask, TableRowsCounter, NavBarSkeleton, AlertLabelsWithError, FormSkeleton, SkeletonAreas } from './components/index.ts'
|
|
9
9
|
|
|
10
10
|
export type { TranslateKeys }
|
|
11
11
|
// import plugins from "./components/plugins";
|
|
@@ -30,6 +30,7 @@ const plugin: Plugin = {
|
|
|
30
30
|
registerPlugin(app, NavBarSkeleton)
|
|
31
31
|
registerPlugin(app, AlertLabelsWithError)
|
|
32
32
|
registerPlugin(app, FormSkeleton)
|
|
33
|
+
registerPlugin(app, SkeletonAreas)
|
|
33
34
|
app.use(i18n)
|
|
34
35
|
app.use(pinia)
|
|
35
36
|
i18n.global.locale = 'en'
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
/>
|
|
34
34
|
<q-page-container>
|
|
35
35
|
<q-page>
|
|
36
|
-
|
|
37
36
|
<Table
|
|
38
37
|
ref="table"
|
|
39
38
|
:rows="rows"
|
|
@@ -60,6 +59,9 @@
|
|
|
60
59
|
@on-drag-end="(args) => {
|
|
61
60
|
console.log(args, 'end')
|
|
62
61
|
}"
|
|
62
|
+
@onUpdateSelected="(details) => {
|
|
63
|
+
console.log(details, 'details')
|
|
64
|
+
}"
|
|
63
65
|
/>
|
|
64
66
|
<q-page-sticky
|
|
65
67
|
v-if="smallDevice"
|
|
@@ -142,8 +144,12 @@ export default {
|
|
|
142
144
|
label: 'Boolean Icon',
|
|
143
145
|
align: 'left',
|
|
144
146
|
sortable: true,
|
|
145
|
-
showCustomizedIcon: true,
|
|
146
|
-
type: 'boolean'
|
|
147
|
+
showCustomizedIcon: true,
|
|
148
|
+
type: 'boolean',
|
|
149
|
+
customizedIconNameCaseTrue: 'warning',
|
|
150
|
+
customizedIconNameCaseFalse: 'edit',
|
|
151
|
+
customizedIconColorCaseTrue: 'negative',
|
|
152
|
+
customizedIconColorCaseFalse: 'positive',
|
|
147
153
|
},
|
|
148
154
|
{
|
|
149
155
|
name: 'calories',
|