quasar-factory-lib 0.0.64 → 0.0.66
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 +16 -0
- package/dist/components/Table/components/CustomizedButton.vue.d.ts +8 -0
- package/dist/components/Table/components/TableSlotBody.vue.d.ts +8 -0
- package/dist/components/Table/components/TableSlotGrid.vue.d.ts +8 -0
- package/dist/layouts/PdaLayout.vue.d.ts +16 -0
- package/dist/pages/TablePage.vue.d.ts +28 -0
- package/dist/quasar-factory-lib.js +184 -177
- package/dist/quasar-factory-lib.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/components/Table/components/CustomizedButton.vue +5 -1
- package/src/components/Table/components/TableSlotBody.vue +1 -0
- package/src/components/Table/components/TableSlotGrid.vue +1 -0
- package/src/pages/TablePage.vue +3 -1
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
round
|
|
6
6
|
:color="btnColor"
|
|
7
7
|
size="md"
|
|
8
|
+
:disable="btnDisable"
|
|
8
9
|
@click="$emit('onClickButton')"
|
|
9
10
|
>
|
|
10
11
|
<q-icon :name="btnIcon" />
|
|
@@ -25,8 +26,11 @@ export default {
|
|
|
25
26
|
btnIcon: {
|
|
26
27
|
type: String,
|
|
27
28
|
required: true
|
|
29
|
+
},
|
|
30
|
+
btnDisable: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
required: true
|
|
28
33
|
}
|
|
29
|
-
|
|
30
34
|
},
|
|
31
35
|
emits: ['onClickButton'],
|
|
32
36
|
data: function () {
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
:data-cy="col.colButtonDataCy + '-' + tablePropsData.row.id"
|
|
94
94
|
:btn-color="col.btnColor || 'primary'"
|
|
95
95
|
:btn-icon="col.btnIcon|| ''"
|
|
96
|
+
:btn-disable="tablePropsData.row.btnDisable"
|
|
96
97
|
@on-click-button="() => {
|
|
97
98
|
$emit('onClickButton', col.btnEmit, tablePropsData.row)
|
|
98
99
|
}"
|
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
:data-cy="col.colButtonDataCy + '-' + tablePropsData.row.id"
|
|
123
123
|
:btn-color="col.btnColor || 'primary'"
|
|
124
124
|
:btn-icon="col.btnIcon|| ''"
|
|
125
|
+
:btn-disable="tablePropsData.row.btnDisable"
|
|
125
126
|
@on-click-button="() => {
|
|
126
127
|
$emit('onClickButton', col.btnEmit, tablePropsData.row)
|
|
127
128
|
}"
|
package/src/pages/TablePage.vue
CHANGED
|
@@ -119,7 +119,8 @@ export default {
|
|
|
119
119
|
btnIcon: 'save',
|
|
120
120
|
btnEmit: 'onClickButton',
|
|
121
121
|
dataCy: 'onClickButton',
|
|
122
|
-
btnColor: 'primary'
|
|
122
|
+
btnColor: 'primary',
|
|
123
|
+
btnDisable: (row: { btnDisable: string }) => row.btnDisable
|
|
123
124
|
},
|
|
124
125
|
{
|
|
125
126
|
name: 'carbs',
|
|
@@ -375,6 +376,7 @@ export default {
|
|
|
375
376
|
sodium: lista[i].sodium,
|
|
376
377
|
calcium: lista[i].calcium,
|
|
377
378
|
iron: lista[i].iron,
|
|
379
|
+
btnDisable: true,
|
|
378
380
|
badgeColor: this.getBadgeColor(lista[i].carbs),
|
|
379
381
|
badgeText: this.getBadgeText(lista[i].carbs),
|
|
380
382
|
toolTipText: this.getBadgeText(lista[i].carbs),
|