quasar-factory-lib 0.0.81 → 0.0.83
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 +1 -0
- package/dist/components/Table/components/TableSlotHeader.vue.d.ts +1 -0
- package/dist/components/Table/components/advanced-filters/GridAdvancedFilters.vue.d.ts +1 -0
- package/dist/layouts/PdaLayout.vue.d.ts +10 -39
- package/dist/pages/TablePage.vue.d.ts +1 -0
- package/dist/quasar-factory-lib.js +2525 -2470
- 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 +2 -1
- package/src/components/Table/components/TableSlotHeader.vue +2 -1
- package/src/components/Table/components/advanced-filters/GridAdvancedFilters.vue +43 -6
- package/src/components/Table/css/table.css +1 -0
- package/src/layouts/PdaLayout.vue +22 -12
package/package.json
CHANGED
|
@@ -256,7 +256,8 @@ export default defineComponent({
|
|
|
256
256
|
return !this.smallDevice || this.showSearch
|
|
257
257
|
},
|
|
258
258
|
showGridHeader () {
|
|
259
|
-
return this.selectionType === 'multiple'
|
|
259
|
+
// return this.selectionType === 'multiple'
|
|
260
|
+
return this.selectionType === 'multiple' || this.showAdvancedFilter
|
|
260
261
|
},
|
|
261
262
|
getTableSkeletonVisibility () {
|
|
262
263
|
return !this.smallDevice && this.showSkeleton
|
|
@@ -27,11 +27,12 @@
|
|
|
27
27
|
:advancedFilters="advancedFilters"
|
|
28
28
|
:selectionType="selectionType"
|
|
29
29
|
/>
|
|
30
|
+
|
|
30
31
|
<GridAdvancedFilters
|
|
31
32
|
v-if="showAdvancedFilter && smallDevice"
|
|
32
|
-
:sho-advanced-filter="showAdvancedFilter"
|
|
33
33
|
:tableProps="tablePropsData"
|
|
34
34
|
:advancedFilters="advancedFilters"
|
|
35
|
+
:show-advanced-filter="showAdvancedFilter"
|
|
35
36
|
/>
|
|
36
37
|
</template>
|
|
37
38
|
<script lang="ts">
|
|
@@ -2,14 +2,50 @@
|
|
|
2
2
|
<q-dialog
|
|
3
3
|
v-model="showDialog"
|
|
4
4
|
persistent
|
|
5
|
-
seamless
|
|
6
|
-
|
|
5
|
+
:seamless="true"
|
|
6
|
+
position="bottom"
|
|
7
7
|
full-width
|
|
8
8
|
transition-show="slide-up"
|
|
9
9
|
transition-hide="slide-down">
|
|
10
|
-
<q-card
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
<q-card
|
|
11
|
+
square
|
|
12
|
+
flat
|
|
13
|
+
>
|
|
14
|
+
<q-bar>
|
|
15
|
+
<q-icon
|
|
16
|
+
name="filter_alt"
|
|
17
|
+
color="primary"
|
|
18
|
+
/>
|
|
19
|
+
<q-space />
|
|
20
|
+
|
|
21
|
+
<q-btn
|
|
22
|
+
dense
|
|
23
|
+
flat
|
|
24
|
+
icon="minimize"
|
|
25
|
+
color="primary"
|
|
26
|
+
:disable="maximizedToggle"
|
|
27
|
+
@click="maximizedToggle = true"
|
|
28
|
+
>
|
|
29
|
+
<q-tooltip
|
|
30
|
+
v-if="maximizedToggle"
|
|
31
|
+
class="bg-white text-primary">Minimize</q-tooltip>
|
|
32
|
+
</q-btn>
|
|
33
|
+
<q-btn
|
|
34
|
+
dense
|
|
35
|
+
flat
|
|
36
|
+
icon="crop_square"
|
|
37
|
+
color="primary"
|
|
38
|
+
@click="maximizedToggle = false"
|
|
39
|
+
:disable="!maximizedToggle"
|
|
40
|
+
>
|
|
41
|
+
<q-tooltip
|
|
42
|
+
v-if="!maximizedToggle"
|
|
43
|
+
class="bg-white text-primary">Maximize</q-tooltip>
|
|
44
|
+
</q-btn>
|
|
45
|
+
</q-bar>
|
|
46
|
+
<q-card-section
|
|
47
|
+
:style="maximizedToggle ? 'display:none;' : 'display: block'"
|
|
48
|
+
class="scroll">
|
|
13
49
|
<div class="row">
|
|
14
50
|
<div v-for="col in otherCols" class="col-xs-6 col-sm-4 col-md-3 q-px-xs q-py-xs"
|
|
15
51
|
:key="col.label">
|
|
@@ -90,7 +126,8 @@ export default {
|
|
|
90
126
|
},
|
|
91
127
|
data () {
|
|
92
128
|
return {
|
|
93
|
-
showDialog: true
|
|
129
|
+
showDialog: true,
|
|
130
|
+
maximizedToggle: false
|
|
94
131
|
}
|
|
95
132
|
},
|
|
96
133
|
computed: {
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
:store="store"
|
|
43
43
|
:table-style="tableStyle"
|
|
44
44
|
:show-skeleton="showSkeleton"
|
|
45
|
-
:selection-type="'multiple'"
|
|
46
45
|
@on-select-visible-columns="(columns) => {
|
|
47
46
|
store.visiblecolumns = columns
|
|
48
47
|
}"
|
|
@@ -101,7 +100,8 @@ export default {
|
|
|
101
100
|
required: true,
|
|
102
101
|
label: 'Fecha',
|
|
103
102
|
align: 'left',
|
|
104
|
-
sortable: true
|
|
103
|
+
sortable: true,
|
|
104
|
+
type: 'date'
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
name: 'available',
|
|
@@ -109,7 +109,8 @@ export default {
|
|
|
109
109
|
label: 'Available',
|
|
110
110
|
align: 'left',
|
|
111
111
|
sortable: true,
|
|
112
|
-
showBasicCheckbox: true
|
|
112
|
+
showBasicCheckbox: true,
|
|
113
|
+
type: 'boolean'
|
|
113
114
|
},
|
|
114
115
|
{
|
|
115
116
|
name: 'booleanIcon',
|
|
@@ -117,7 +118,8 @@ export default {
|
|
|
117
118
|
label: 'Boolean Icon',
|
|
118
119
|
align: 'left',
|
|
119
120
|
sortable: true,
|
|
120
|
-
showCustomizedIcon: true
|
|
121
|
+
showCustomizedIcon: true,
|
|
122
|
+
type: 'boolean'
|
|
121
123
|
},
|
|
122
124
|
{
|
|
123
125
|
name: 'calories',
|
|
@@ -131,7 +133,8 @@ export default {
|
|
|
131
133
|
popupEditDataCy: '',
|
|
132
134
|
mask: '#####',
|
|
133
135
|
showSelectNumberOptions: false,
|
|
134
|
-
popupEditInputtype: 'number'
|
|
136
|
+
popupEditInputtype: 'number',
|
|
137
|
+
type: 'number'
|
|
135
138
|
},
|
|
136
139
|
{
|
|
137
140
|
name: 'fat',
|
|
@@ -142,7 +145,8 @@ export default {
|
|
|
142
145
|
btnIcon: 'save',
|
|
143
146
|
btnEmit: 'onClickButton',
|
|
144
147
|
dataCy: 'onClickButton',
|
|
145
|
-
btnColor: 'primary'
|
|
148
|
+
btnColor: 'primary',
|
|
149
|
+
type: 'number'
|
|
146
150
|
},
|
|
147
151
|
{
|
|
148
152
|
name: 'carbs',
|
|
@@ -152,7 +156,8 @@ export default {
|
|
|
152
156
|
popupEditEmit: 'onSaveValuePopupEdit',
|
|
153
157
|
popupEditDataCy: '',
|
|
154
158
|
inputMaxLength: 200,
|
|
155
|
-
popupEditInputtype: 'textarea'
|
|
159
|
+
popupEditInputtype: 'textarea',
|
|
160
|
+
type: 'string'
|
|
156
161
|
},
|
|
157
162
|
{
|
|
158
163
|
name: 'checked',
|
|
@@ -165,7 +170,8 @@ export default {
|
|
|
165
170
|
uncheckedIcon: 'cancel',
|
|
166
171
|
checkBoxColorCaseTrue: 'positive',
|
|
167
172
|
checkBoxColorCaseFalse: 'negative',
|
|
168
|
-
checkBoxDataCy: ''
|
|
173
|
+
checkBoxDataCy: '',
|
|
174
|
+
type: 'boolean'
|
|
169
175
|
},
|
|
170
176
|
{
|
|
171
177
|
name: 'protein',
|
|
@@ -178,24 +184,28 @@ export default {
|
|
|
178
184
|
popupEditEmit: 'onSaveValuePopupEdit',
|
|
179
185
|
popupEditInputtype: 'text',
|
|
180
186
|
popupEditDataCy: '',
|
|
181
|
-
showInputPopupEdit: true
|
|
187
|
+
showInputPopupEdit: true,
|
|
188
|
+
type: 'string'
|
|
182
189
|
},
|
|
183
190
|
{
|
|
184
191
|
name: 'sodium',
|
|
185
192
|
label: 'Sodium (mg)',
|
|
186
|
-
field: 'sodium'
|
|
193
|
+
field: 'sodium',
|
|
194
|
+
type: 'string'
|
|
187
195
|
},
|
|
188
196
|
{
|
|
189
197
|
name: 'calcium',
|
|
190
198
|
label: 'Calcium (%)',
|
|
191
199
|
field: 'calcium',
|
|
192
|
-
sortable: true
|
|
200
|
+
sortable: true,
|
|
201
|
+
type: 'string'
|
|
193
202
|
},
|
|
194
203
|
{
|
|
195
204
|
name: 'iron',
|
|
196
205
|
label: 'Iron (%)',
|
|
197
206
|
field: 'iron',
|
|
198
|
-
sortable: true
|
|
207
|
+
sortable: true,
|
|
208
|
+
type: 'string'
|
|
199
209
|
}
|
|
200
210
|
],
|
|
201
211
|
rows: [],
|