quasar-factory-lib 0.0.53 → 0.0.54
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/layouts/PdaLayout.vue.d.ts +15 -10
- package/dist/pages/TablePage.vue.d.ts +0 -1
- package/dist/quasar-factory-lib.js +923 -915
- package/dist/quasar-factory-lib.umd.cjs +10 -10
- package/package.json +1 -1
- package/src/components/Table/components/TableFilter.vue +1 -0
- package/src/components/Table/components/TableSlotGrid.vue +3 -4
- package/src/components/TaskNavBar/TaskNavBar.vue +3 -2
- package/src/layouts/PdaLayout.vue +11 -22
- package/src/pages/ConfirmPage.vue +1 -0
- package/src/pages/TablePage.vue +3 -4
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
+
:id="'card-container-' + tablePropsData.row.id"
|
|
3
4
|
:class="'q-pa-xs col-xs-12 col-sm-6 col-md-4 col-lg-3 grid-style-transition'"
|
|
4
5
|
:style="tablePropsData.selected ? 'transform: scale(0.95);' : ''"
|
|
5
6
|
>
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
>
|
|
18
19
|
<q-card-section>
|
|
19
20
|
<q-checkbox
|
|
21
|
+
:data-cy="'checkbox-' + tablePropsData.row.id"
|
|
20
22
|
v-if="selectionType != 'none'"
|
|
21
23
|
v-model="tablePropsData.selected"
|
|
22
24
|
dense
|
|
@@ -41,6 +43,7 @@
|
|
|
41
43
|
class="itemsFontSize text-color-almostBlack"
|
|
42
44
|
:class="getCellClass(tablePropsData.row, col)"
|
|
43
45
|
>
|
|
46
|
+
<span v-html="tablePropsData.row[col.name]" />
|
|
44
47
|
<q-icon
|
|
45
48
|
v-if="col.editable"
|
|
46
49
|
name="edit"
|
|
@@ -48,7 +51,6 @@
|
|
|
48
51
|
size="sm"
|
|
49
52
|
class="cursor-pointer"
|
|
50
53
|
/>
|
|
51
|
-
<span v-html="tablePropsData.row[col.name]" />
|
|
52
54
|
<PopupEditNumber
|
|
53
55
|
v-if="col.editable && col.popupEditInputtype === 'number'"
|
|
54
56
|
:model="tablePropsData.row[col.name] || ''"
|
|
@@ -190,7 +192,4 @@ export default {
|
|
|
190
192
|
}
|
|
191
193
|
</script>
|
|
192
194
|
<style>
|
|
193
|
-
/* .q-btn {
|
|
194
|
-
padding: unset;
|
|
195
|
-
} */
|
|
196
195
|
</style>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<img :src="logo" class="logo">
|
|
7
7
|
<span id="mobile-title">{{ title }}</span>
|
|
8
8
|
</div>
|
|
9
|
-
<div class="col-5 text-right">
|
|
9
|
+
<div class="col-5 text-right" data-cy="back">
|
|
10
10
|
<q-icon v-if="showBtnBack" size="md" class="cursor-pointer" @click="onClickBtnBack">
|
|
11
11
|
<svg class="text-h4" xmlns="http://www.w3.org/2000/svg" width="30" height="30"
|
|
12
12
|
viewBox="0 0 23.648 22.836">
|
|
@@ -23,9 +23,10 @@
|
|
|
23
23
|
:name="showIconSearch ?'search' : 'search_off'"
|
|
24
24
|
size="md"
|
|
25
25
|
class="q-ml-md cursor-pointer"
|
|
26
|
+
data-cy="search"
|
|
26
27
|
@click="onClickBtnSearch">
|
|
27
28
|
</q-icon>
|
|
28
|
-
<q-icon id="iconMenu" size="md" @click="onClickBtnMenu" class="q-ml-md cursor-pointer">
|
|
29
|
+
<q-icon id="iconMenu" size="md" @click="onClickBtnMenu" class="q-ml-md cursor-pointer" data-cy="menu">
|
|
29
30
|
<svg xmlns="http://www.w3.org/2000/svg" width="30.448" height="28.247" viewBox="0 0 30.448 28.247">
|
|
30
31
|
<g id="Componente_11_3" data-name="Componente 11 – 3" transform="translate(0 1)">
|
|
31
32
|
<path id="Caminho_702" data-name="Caminho 702" d="M38.053,40.174H24"
|
|
@@ -23,14 +23,15 @@
|
|
|
23
23
|
ref="table"
|
|
24
24
|
:rows="rows"
|
|
25
25
|
:columns="columns"
|
|
26
|
-
:visible-columns="
|
|
26
|
+
:visible-columns="store.visiblecolumns"
|
|
27
27
|
:small-device="smallDevice"
|
|
28
28
|
:store="store"
|
|
29
29
|
:table-style="tableStyle"
|
|
30
30
|
:show-skeleton="showSkeleton"
|
|
31
31
|
:selection-type="'multiple'"
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
@on-select-visible-columns="(columns) => {
|
|
33
|
+
store.visiblecolumns = columns
|
|
34
|
+
}"
|
|
34
35
|
@on-update-basic-checkbox-value="onUpdateBasicCheckboxValue"
|
|
35
36
|
@on-update-customized-checkbox-value="onUpdateCustomizedCheckboxValue"
|
|
36
37
|
@on-click-button="setItemNotFound"
|
|
@@ -50,7 +51,6 @@
|
|
|
50
51
|
import Table from '../components/Table/Table.vue'
|
|
51
52
|
import setTableHeight from '../components/Table/utils/setTableHeight'
|
|
52
53
|
import infiniteScroll from '../components/Table/utils/infiniteScroll'
|
|
53
|
-
import FilterMethod from '../components/Table/utils/filterMethod'
|
|
54
54
|
import { tableStore } from '../store/table.js'
|
|
55
55
|
export default {
|
|
56
56
|
components: {
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
59
59
|
},
|
|
60
60
|
data () {
|
|
61
61
|
return {
|
|
62
|
-
smallDevice:
|
|
62
|
+
smallDevice: true,
|
|
63
63
|
showDialog: false,
|
|
64
64
|
store: tableStore(),
|
|
65
65
|
tableStyle: '',
|
|
@@ -147,12 +147,12 @@ export default {
|
|
|
147
147
|
field: 'protein',
|
|
148
148
|
sortable: true,
|
|
149
149
|
required: true,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
150
|
+
editable: true,
|
|
151
|
+
showEditIcon: true,
|
|
152
|
+
popupEditEmit: 'onSaveValuePopupEdit',
|
|
153
|
+
popupEditInputtype: 'text',
|
|
154
|
+
popupEditDataCy: '',
|
|
155
|
+
showInputPopupEdit: true
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
name: 'sodium',
|
|
@@ -315,7 +315,6 @@ export default {
|
|
|
315
315
|
iron: '6%'
|
|
316
316
|
}
|
|
317
317
|
],
|
|
318
|
-
visibleColumns: [],
|
|
319
318
|
showSkeleton: false
|
|
320
319
|
}
|
|
321
320
|
},
|
|
@@ -330,18 +329,8 @@ export default {
|
|
|
330
329
|
getRows () {
|
|
331
330
|
setTimeout(()=> {
|
|
332
331
|
this.showSkeleton = false
|
|
333
|
-
|
|
334
|
-
// this.visibleColumns = this.store.visiblecolumns
|
|
335
332
|
}, 1000)
|
|
336
333
|
this.rows = this.rowsData
|
|
337
|
-
this.visibleColumns = this.store.visiblecolumns
|
|
338
|
-
},
|
|
339
|
-
saveSelectedColumns (columns: string []): void {
|
|
340
|
-
this.store.visiblecolumns = columns
|
|
341
|
-
this.visibleColumns = columns
|
|
342
|
-
},
|
|
343
|
-
filterMethod (rows: string | [], terms: { search: string }): object[] | [] {
|
|
344
|
-
return FilterMethod.filter(this, rows, terms)
|
|
345
334
|
},
|
|
346
335
|
onUpdateBasicCheckboxValue (rows: object []) {
|
|
347
336
|
console.log(rows, 'onUpdateBasicCheckboxValue')
|
package/src/pages/TablePage.vue
CHANGED
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
:filterComputedOptions="{ preparedQuantity: store.prepared}"
|
|
23
23
|
:additional-sort-conditions="additionalSortConditions"
|
|
24
24
|
:additional-filter-conditions="additionalFilterConditions"
|
|
25
|
-
@on-select-visible-columns="
|
|
25
|
+
@on-select-visible-columns="(columns) => {
|
|
26
|
+
store.visiblecolumns = columns
|
|
27
|
+
}"
|
|
26
28
|
@on-update-basic-checkbox-value="onUpdateBasicCheckboxValue"
|
|
27
29
|
@on-update-customized-checkbox-value="onUpdateCustomizedCheckboxValue"
|
|
28
30
|
@on-click-button="setItemNotFound"
|
|
@@ -359,9 +361,6 @@ export default {
|
|
|
359
361
|
this.showSkeleton = false
|
|
360
362
|
}, 1000);
|
|
361
363
|
},
|
|
362
|
-
saveSelectedColumns (columns: string []): void {
|
|
363
|
-
this.store.visiblecolumns = columns
|
|
364
|
-
},
|
|
365
364
|
onUpdateBasicCheckboxValue (rows: object []) {
|
|
366
365
|
console.log(rows, 'onUpdateBasicCheckboxValue')
|
|
367
366
|
},
|