quasar-factory-lib 0.0.76 → 0.0.77
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/Table/Table.vue.d.ts +284 -9
- package/dist/components/Table/components/AdvancedFilters/AdvancedFilters.vue.d.ts +116 -0
- package/dist/components/Table/components/AdvancedFilters/CheckBoxFilter.vue.d.ts +20 -0
- package/dist/components/Table/components/AdvancedFilters/DateFilter.vue.d.ts +20 -0
- package/dist/components/Table/components/AdvancedFilters/GridAdvancedFilters.vue.d.ts +122 -0
- package/dist/components/Table/components/AdvancedFilters/NumberFilter.vue.d.ts +20 -0
- package/dist/components/Table/components/AdvancedFilters/TextFilter.vue.d.ts +20 -0
- package/dist/components/Table/components/AdvancedFilters/TimeFilter.vue.d.ts +20 -0
- package/dist/components/Table/components/PopupEditNumber.vue.d.ts +2 -2
- package/dist/components/Table/components/PopupEditText.vue.d.ts +2 -2
- package/dist/components/Table/components/TableSlotBody.vue.d.ts +4 -4
- package/dist/components/Table/components/TableSlotGrid.vue.d.ts +4 -4
- package/dist/components/Table/components/TableSlotHeader.vue.d.ts +255 -1
- package/dist/components/TaskNavBar/BasicNavBar.vue.d.ts +1 -1
- package/dist/i18n/en/index.d.ts +1 -0
- package/dist/i18n/es/index.d.ts +1 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/layouts/PdaLayout.vue.d.ts +284 -9
- package/dist/pages/TablePage.vue.d.ts +308 -9
- package/dist/quasar-factory-lib.js +10782 -8527
- package/dist/quasar-factory-lib.umd.cjs +11 -11
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Table/Table.vue +52 -3
- package/src/components/Table/components/AdvancedFilters/AdvancedFilters.vue +77 -0
- package/src/components/Table/components/AdvancedFilters/CheckBoxFilter.vue +23 -0
- package/src/components/Table/components/AdvancedFilters/DateFilter.vue +63 -0
- package/src/components/Table/components/AdvancedFilters/GridAdvancedFilters.vue +100 -0
- package/src/components/Table/components/AdvancedFilters/NumberFilter.vue +33 -0
- package/src/components/Table/components/AdvancedFilters/TextFilter.vue +32 -0
- package/src/components/Table/components/AdvancedFilters/TimeFilter.vue +63 -0
- package/src/components/Table/components/TableSlotHeader.vue +24 -0
- package/src/components/Table/css/table.css +0 -2
- package/src/i18n/en/index.ts +3 -1
- package/src/i18n/es/index.ts +1 -0
- package/src/pages/TablePage.vue +35 -9
package/src/pages/TablePage.vue
CHANGED
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
:filterComputedOptions="{ preparedQuantity: store.prepared}"
|
|
23
23
|
:additional-sort-conditions="additionalSortConditions"
|
|
24
24
|
:additional-filter-conditions="additionalFilterConditions"
|
|
25
|
+
:advancedFilters="advancedFilters"
|
|
26
|
+
:showIconAdvancedFilter="true"
|
|
25
27
|
@on-select-visible-columns="(columns) => {
|
|
26
28
|
store.visiblecolumns = columns
|
|
27
29
|
}"
|
|
@@ -53,6 +55,7 @@ export default {
|
|
|
53
55
|
showDialog: false,
|
|
54
56
|
store: tableStore(),
|
|
55
57
|
tableStyle: '',
|
|
58
|
+
advancedFilters: {},
|
|
56
59
|
columns: [
|
|
57
60
|
{
|
|
58
61
|
name: 'date',
|
|
@@ -61,6 +64,7 @@ export default {
|
|
|
61
64
|
align: 'left',
|
|
62
65
|
sortable: true,
|
|
63
66
|
field: 'date',
|
|
67
|
+
type: 'date'
|
|
64
68
|
},
|
|
65
69
|
{
|
|
66
70
|
name: 'time',
|
|
@@ -69,6 +73,7 @@ export default {
|
|
|
69
73
|
align: 'left',
|
|
70
74
|
sortable: true,
|
|
71
75
|
field: 'time',
|
|
76
|
+
type: 'time'
|
|
72
77
|
},
|
|
73
78
|
{
|
|
74
79
|
name: 'dessert',
|
|
@@ -76,7 +81,8 @@ export default {
|
|
|
76
81
|
label: 'Dessert',
|
|
77
82
|
align: 'left',
|
|
78
83
|
sortable: true,
|
|
79
|
-
field: 'dessert'
|
|
84
|
+
field: 'dessert',
|
|
85
|
+
type: 'string'
|
|
80
86
|
},
|
|
81
87
|
{
|
|
82
88
|
name: 'available',
|
|
@@ -85,7 +91,8 @@ export default {
|
|
|
85
91
|
align: 'left',
|
|
86
92
|
sortable: true,
|
|
87
93
|
showBasicCheckbox: true,
|
|
88
|
-
field: 'available'
|
|
94
|
+
field: 'available',
|
|
95
|
+
type: 'boolean',
|
|
89
96
|
},
|
|
90
97
|
{
|
|
91
98
|
name: 'booleanIcon',
|
|
@@ -97,7 +104,8 @@ export default {
|
|
|
97
104
|
customizedIconNameCaseTrue: 'done',
|
|
98
105
|
customizedIconNameCaseFalse: 'done_all',
|
|
99
106
|
customizedIconColorCaseTrue: 'yellow',
|
|
100
|
-
customizedIconColorCaseFalse: 'blue'
|
|
107
|
+
customizedIconColorCaseFalse: 'blue',
|
|
108
|
+
type: 'boolean'
|
|
101
109
|
},
|
|
102
110
|
{
|
|
103
111
|
name: 'calories',
|
|
@@ -110,7 +118,8 @@ export default {
|
|
|
110
118
|
popupEditEmit: 'onSaveValuePopupEdit',
|
|
111
119
|
popupEditInputtype: 'number',
|
|
112
120
|
popupEditDataCy: '',
|
|
113
|
-
popupEditMask: '#####'
|
|
121
|
+
popupEditMask: '#####',
|
|
122
|
+
type: 'number'
|
|
114
123
|
},
|
|
115
124
|
{
|
|
116
125
|
name: 'fat',
|
|
@@ -122,6 +131,7 @@ export default {
|
|
|
122
131
|
btnIcon: 'save',
|
|
123
132
|
btnEmit: 'onClickButton',
|
|
124
133
|
dataCy: 'onClickButton',
|
|
134
|
+
type: 'decimal'
|
|
125
135
|
// btnColor: 'primary'
|
|
126
136
|
},
|
|
127
137
|
{
|
|
@@ -134,6 +144,7 @@ export default {
|
|
|
134
144
|
btnIcon: 'save',
|
|
135
145
|
btnEmit: 'onClickButton',
|
|
136
146
|
dataCy: 'onClickButton',
|
|
147
|
+
type: 'decimal'
|
|
137
148
|
// btnColor: 'secondary'
|
|
138
149
|
},
|
|
139
150
|
{
|
|
@@ -148,7 +159,9 @@ export default {
|
|
|
148
159
|
badgeText: (row: { badgeText: string }) => row.badgeText,
|
|
149
160
|
badgeColor: (row: { badgeColor: string }) => row.badgeColor,
|
|
150
161
|
badgeTextColor: 'black',
|
|
151
|
-
badgeOutline: true
|
|
162
|
+
badgeOutline: true,
|
|
163
|
+
type: 'string',
|
|
164
|
+
disable: true
|
|
152
165
|
},
|
|
153
166
|
{
|
|
154
167
|
name: 'checked',
|
|
@@ -162,7 +175,8 @@ export default {
|
|
|
162
175
|
uncheckedIcon: 'cancel',
|
|
163
176
|
checkBoxColorCaseTrue: 'positive',
|
|
164
177
|
checkBoxColorCaseFalse: 'negative',
|
|
165
|
-
checkBoxDataCy: ''
|
|
178
|
+
checkBoxDataCy: '',
|
|
179
|
+
type: 'boolean'
|
|
166
180
|
},
|
|
167
181
|
{
|
|
168
182
|
name: 'protein',
|
|
@@ -176,7 +190,8 @@ export default {
|
|
|
176
190
|
popupEditEmit: 'onSaveValuePopupEdit',
|
|
177
191
|
popupEditInputtype: 'text',
|
|
178
192
|
popupEditDataCy: '',
|
|
179
|
-
showInputPopupEdit: true
|
|
193
|
+
showInputPopupEdit: true,
|
|
194
|
+
type: 'decimal'
|
|
180
195
|
},
|
|
181
196
|
{
|
|
182
197
|
name: 'sodium',
|
|
@@ -190,20 +205,24 @@ export default {
|
|
|
190
205
|
iconWithToolTipColor: (row: { iconWithToolTipColor: string }) => row.iconWithToolTipColor,
|
|
191
206
|
iconWithToolTipName: (row: { iconWithToolTipName: string }) => row.iconWithToolTipName,
|
|
192
207
|
toolTipText: (row: { toolTipText: string }) => row.toolTipText,
|
|
208
|
+
type: 'boolean',
|
|
209
|
+
disable: true
|
|
193
210
|
},
|
|
194
211
|
{
|
|
195
212
|
name: 'calcium',
|
|
196
213
|
label: 'Calcium (%)',
|
|
197
214
|
field: 'calcium',
|
|
198
215
|
align: 'left',
|
|
199
|
-
sortable: true
|
|
216
|
+
sortable: true,
|
|
217
|
+
type: 'number'
|
|
200
218
|
},
|
|
201
219
|
{
|
|
202
220
|
name: 'iron',
|
|
203
221
|
label: 'Iron (%)',
|
|
204
222
|
field: 'iron',
|
|
205
223
|
align: 'left',
|
|
206
|
-
sortable: true
|
|
224
|
+
sortable: true,
|
|
225
|
+
type: 'number'
|
|
207
226
|
}
|
|
208
227
|
],
|
|
209
228
|
rows: [],
|
|
@@ -366,6 +385,7 @@ export default {
|
|
|
366
385
|
this.tableStyle = setTableHeight.setTableHeight()
|
|
367
386
|
infiniteScroll.handleInfiniteScrollNewTable(this)
|
|
368
387
|
this.getRows()
|
|
388
|
+
this.getAdvancedFilterColumns()
|
|
369
389
|
|
|
370
390
|
},
|
|
371
391
|
methods: {
|
|
@@ -478,6 +498,12 @@ export default {
|
|
|
478
498
|
else if (!this.store.prepared) {
|
|
479
499
|
return [...rows]
|
|
480
500
|
}
|
|
501
|
+
},
|
|
502
|
+
getAdvancedFilterColumns (): void {
|
|
503
|
+
this.advancedFilters = this.columns.reduce((acc, column) => {
|
|
504
|
+
acc[column.name] = ''
|
|
505
|
+
return acc
|
|
506
|
+
}, {} as { [key: string]: string })
|
|
481
507
|
}
|
|
482
508
|
}
|
|
483
509
|
}
|