quasar-factory-lib 0.0.75 → 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 +286 -10
- 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 +286 -10
- package/dist/pages/TablePage.vue.d.ts +310 -10
- package/dist/quasar-factory-lib.js +10779 -8518
- 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 +57 -4
- 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 +39 -10
package/src/pages/TablePage.vue
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
:rows="rows"
|
|
14
14
|
:columns="columns"
|
|
15
15
|
:visible-columns="store.visiblecolumns"
|
|
16
|
-
:small-device="
|
|
16
|
+
:small-device="false"
|
|
17
17
|
:store="store"
|
|
18
18
|
:table-style="tableStyle"
|
|
19
19
|
:show-skeleton="showSkeleton"
|
|
@@ -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
|
}"
|
|
@@ -29,6 +31,9 @@
|
|
|
29
31
|
@on-update-customized-checkbox-value="onUpdateCustomizedCheckboxValue"
|
|
30
32
|
@on-click-button="setItemNotFound"
|
|
31
33
|
@onClickIconToolTip="onClickIconToolTip"
|
|
34
|
+
@onUpdateSelected="(details) => {
|
|
35
|
+
console.log(details, 'details')
|
|
36
|
+
}"
|
|
32
37
|
|
|
33
38
|
/>
|
|
34
39
|
</div>
|
|
@@ -50,6 +55,7 @@ export default {
|
|
|
50
55
|
showDialog: false,
|
|
51
56
|
store: tableStore(),
|
|
52
57
|
tableStyle: '',
|
|
58
|
+
advancedFilters: {},
|
|
53
59
|
columns: [
|
|
54
60
|
{
|
|
55
61
|
name: 'date',
|
|
@@ -58,6 +64,7 @@ export default {
|
|
|
58
64
|
align: 'left',
|
|
59
65
|
sortable: true,
|
|
60
66
|
field: 'date',
|
|
67
|
+
type: 'date'
|
|
61
68
|
},
|
|
62
69
|
{
|
|
63
70
|
name: 'time',
|
|
@@ -66,6 +73,7 @@ export default {
|
|
|
66
73
|
align: 'left',
|
|
67
74
|
sortable: true,
|
|
68
75
|
field: 'time',
|
|
76
|
+
type: 'time'
|
|
69
77
|
},
|
|
70
78
|
{
|
|
71
79
|
name: 'dessert',
|
|
@@ -73,7 +81,8 @@ export default {
|
|
|
73
81
|
label: 'Dessert',
|
|
74
82
|
align: 'left',
|
|
75
83
|
sortable: true,
|
|
76
|
-
field: 'dessert'
|
|
84
|
+
field: 'dessert',
|
|
85
|
+
type: 'string'
|
|
77
86
|
},
|
|
78
87
|
{
|
|
79
88
|
name: 'available',
|
|
@@ -82,7 +91,8 @@ export default {
|
|
|
82
91
|
align: 'left',
|
|
83
92
|
sortable: true,
|
|
84
93
|
showBasicCheckbox: true,
|
|
85
|
-
field: 'available'
|
|
94
|
+
field: 'available',
|
|
95
|
+
type: 'boolean',
|
|
86
96
|
},
|
|
87
97
|
{
|
|
88
98
|
name: 'booleanIcon',
|
|
@@ -94,7 +104,8 @@ export default {
|
|
|
94
104
|
customizedIconNameCaseTrue: 'done',
|
|
95
105
|
customizedIconNameCaseFalse: 'done_all',
|
|
96
106
|
customizedIconColorCaseTrue: 'yellow',
|
|
97
|
-
customizedIconColorCaseFalse: 'blue'
|
|
107
|
+
customizedIconColorCaseFalse: 'blue',
|
|
108
|
+
type: 'boolean'
|
|
98
109
|
},
|
|
99
110
|
{
|
|
100
111
|
name: 'calories',
|
|
@@ -107,7 +118,8 @@ export default {
|
|
|
107
118
|
popupEditEmit: 'onSaveValuePopupEdit',
|
|
108
119
|
popupEditInputtype: 'number',
|
|
109
120
|
popupEditDataCy: '',
|
|
110
|
-
popupEditMask: '#####'
|
|
121
|
+
popupEditMask: '#####',
|
|
122
|
+
type: 'number'
|
|
111
123
|
},
|
|
112
124
|
{
|
|
113
125
|
name: 'fat',
|
|
@@ -119,6 +131,7 @@ export default {
|
|
|
119
131
|
btnIcon: 'save',
|
|
120
132
|
btnEmit: 'onClickButton',
|
|
121
133
|
dataCy: 'onClickButton',
|
|
134
|
+
type: 'decimal'
|
|
122
135
|
// btnColor: 'primary'
|
|
123
136
|
},
|
|
124
137
|
{
|
|
@@ -131,6 +144,7 @@ export default {
|
|
|
131
144
|
btnIcon: 'save',
|
|
132
145
|
btnEmit: 'onClickButton',
|
|
133
146
|
dataCy: 'onClickButton',
|
|
147
|
+
type: 'decimal'
|
|
134
148
|
// btnColor: 'secondary'
|
|
135
149
|
},
|
|
136
150
|
{
|
|
@@ -145,7 +159,9 @@ export default {
|
|
|
145
159
|
badgeText: (row: { badgeText: string }) => row.badgeText,
|
|
146
160
|
badgeColor: (row: { badgeColor: string }) => row.badgeColor,
|
|
147
161
|
badgeTextColor: 'black',
|
|
148
|
-
badgeOutline: true
|
|
162
|
+
badgeOutline: true,
|
|
163
|
+
type: 'string',
|
|
164
|
+
disable: true
|
|
149
165
|
},
|
|
150
166
|
{
|
|
151
167
|
name: 'checked',
|
|
@@ -159,7 +175,8 @@ export default {
|
|
|
159
175
|
uncheckedIcon: 'cancel',
|
|
160
176
|
checkBoxColorCaseTrue: 'positive',
|
|
161
177
|
checkBoxColorCaseFalse: 'negative',
|
|
162
|
-
checkBoxDataCy: ''
|
|
178
|
+
checkBoxDataCy: '',
|
|
179
|
+
type: 'boolean'
|
|
163
180
|
},
|
|
164
181
|
{
|
|
165
182
|
name: 'protein',
|
|
@@ -173,7 +190,8 @@ export default {
|
|
|
173
190
|
popupEditEmit: 'onSaveValuePopupEdit',
|
|
174
191
|
popupEditInputtype: 'text',
|
|
175
192
|
popupEditDataCy: '',
|
|
176
|
-
showInputPopupEdit: true
|
|
193
|
+
showInputPopupEdit: true,
|
|
194
|
+
type: 'decimal'
|
|
177
195
|
},
|
|
178
196
|
{
|
|
179
197
|
name: 'sodium',
|
|
@@ -187,20 +205,24 @@ export default {
|
|
|
187
205
|
iconWithToolTipColor: (row: { iconWithToolTipColor: string }) => row.iconWithToolTipColor,
|
|
188
206
|
iconWithToolTipName: (row: { iconWithToolTipName: string }) => row.iconWithToolTipName,
|
|
189
207
|
toolTipText: (row: { toolTipText: string }) => row.toolTipText,
|
|
208
|
+
type: 'boolean',
|
|
209
|
+
disable: true
|
|
190
210
|
},
|
|
191
211
|
{
|
|
192
212
|
name: 'calcium',
|
|
193
213
|
label: 'Calcium (%)',
|
|
194
214
|
field: 'calcium',
|
|
195
215
|
align: 'left',
|
|
196
|
-
sortable: true
|
|
216
|
+
sortable: true,
|
|
217
|
+
type: 'number'
|
|
197
218
|
},
|
|
198
219
|
{
|
|
199
220
|
name: 'iron',
|
|
200
221
|
label: 'Iron (%)',
|
|
201
222
|
field: 'iron',
|
|
202
223
|
align: 'left',
|
|
203
|
-
sortable: true
|
|
224
|
+
sortable: true,
|
|
225
|
+
type: 'number'
|
|
204
226
|
}
|
|
205
227
|
],
|
|
206
228
|
rows: [],
|
|
@@ -363,6 +385,7 @@ export default {
|
|
|
363
385
|
this.tableStyle = setTableHeight.setTableHeight()
|
|
364
386
|
infiniteScroll.handleInfiniteScrollNewTable(this)
|
|
365
387
|
this.getRows()
|
|
388
|
+
this.getAdvancedFilterColumns()
|
|
366
389
|
|
|
367
390
|
},
|
|
368
391
|
methods: {
|
|
@@ -475,6 +498,12 @@ export default {
|
|
|
475
498
|
else if (!this.store.prepared) {
|
|
476
499
|
return [...rows]
|
|
477
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 })
|
|
478
507
|
}
|
|
479
508
|
}
|
|
480
509
|
}
|