quasar-factory-lib 0.0.30 → 0.0.31
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/pages/TablePage.vue.d.ts +1129 -0
- package/dist/quasar-factory-lib.js +739 -741
- package/dist/quasar-factory-lib.umd.cjs +8 -8
- package/dist/store/table.d.ts +9 -0
- package/package.json +1 -1
- package/src/components/Table/components/TableSlotBody.vue +1 -1
- package/src/components/Table/components/TableSlotGrid.vue +2 -1
- package/src/pages/TablePage.vue +2 -11
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const tableStore: import("pinia").StoreDefinition<"tableStore", {
|
|
2
|
+
disableScannerButtons: import("@vueuse/shared").RemovableRef<boolean>;
|
|
3
|
+
filterValue: import("@vueuse/shared").RemovableRef<string>;
|
|
4
|
+
lastFilterValue: import("@vueuse/shared").RemovableRef<string>;
|
|
5
|
+
visiblecolumns: import("@vueuse/shared").RemovableRef<never[]>;
|
|
6
|
+
}, {}, {
|
|
7
|
+
setFilterValue(val: any): void;
|
|
8
|
+
cleanTableFilter(): void;
|
|
9
|
+
}>;
|
package/package.json
CHANGED
|
@@ -40,9 +40,10 @@
|
|
|
40
40
|
v-if="getColumnValue(col)"
|
|
41
41
|
class="itemsFontSize text-almost-black"
|
|
42
42
|
>
|
|
43
|
+
<!-- fa-solid fa-pen-to-square -->
|
|
43
44
|
<q-icon
|
|
44
45
|
v-if="col.editable"
|
|
45
|
-
name="
|
|
46
|
+
name="edit"
|
|
46
47
|
color="primary"
|
|
47
48
|
size="sx"
|
|
48
49
|
class="cursor-pointer"
|
package/src/pages/TablePage.vue
CHANGED
|
@@ -51,8 +51,7 @@ export default {
|
|
|
51
51
|
required: true,
|
|
52
52
|
label: 'Dessert (100g serving)',
|
|
53
53
|
align: 'left',
|
|
54
|
-
sortable: true
|
|
55
|
-
rowStyleFn: (row) => row.rowStyleFn,
|
|
54
|
+
sortable: true
|
|
56
55
|
},
|
|
57
56
|
{
|
|
58
57
|
name: 'available',
|
|
@@ -311,8 +310,7 @@ export default {
|
|
|
311
310
|
protein: lista[i].protein,
|
|
312
311
|
sodium: lista[i].sodium,
|
|
313
312
|
calcium: lista[i].calcium,
|
|
314
|
-
iron: lista[i].iron
|
|
315
|
-
rowStyleFn: this.rowStyleFn
|
|
313
|
+
iron: lista[i].iron
|
|
316
314
|
})
|
|
317
315
|
}
|
|
318
316
|
this.rows = lista2
|
|
@@ -320,13 +318,6 @@ export default {
|
|
|
320
318
|
|
|
321
319
|
},
|
|
322
320
|
methods: {
|
|
323
|
-
rowStyleFn (colName: string, rowName: string) {
|
|
324
|
-
console.log('rowStyleFn', colName)
|
|
325
|
-
if (colName === 'name' && rowName=== 'Frozen Yogurt') {
|
|
326
|
-
return 'color: red !important; font-weight: bold;'
|
|
327
|
-
}
|
|
328
|
-
return 'color: blue !important; font-weight: bold;'
|
|
329
|
-
},
|
|
330
321
|
saveSelectedColumns (columns: string []): void {
|
|
331
322
|
this.store.visiblecolumns = columns
|
|
332
323
|
this.visibleColumns = columns
|