quasar-factory-lib 0.0.22 → 0.0.23
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/Confirm/ConfirmDialog.vue.d.ts +17 -4
- package/dist/components/TaskNavBar/TaskNavBar.vue.d.ts +3 -3
- package/dist/i18n/en/index.d.ts +2 -0
- package/dist/i18n/es/index.d.ts +2 -0
- package/dist/i18n/index.d.ts +4 -0
- package/dist/pages/ConfirmPage.vue.d.ts +17 -4
- package/dist/pages/NavBarPage.vue.d.ts +3 -3
- package/dist/quasar-factory-lib.js +4083 -4177
- package/dist/quasar-factory-lib.umd.cjs +11 -11
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Confirm/ConfirmDialog.vue +11 -10
- package/src/components/Table/components/TableSlotBody.vue +1 -0
- package/src/components/Table/components/TableSlotGrid.vue +1 -1
- package/src/components/TaskNavBar/TaskNavBar.vue +41 -53
- package/src/components/TaskNavBar/css/taskNavBar.css +33 -0
- package/src/css/app.css +1 -0
- package/src/i18n/en/index.ts +3 -1
- package/src/i18n/es/index.ts +3 -1
- package/src/pages/ConfirmPage.vue +2 -4
- package/src/pages/NavBarPage.vue +2 -1
- package/dist/pages/TablePage.vue.d.ts +0 -1129
- package/dist/store/table.d.ts +0 -9
- package/src/pages/TablePage.vue +0 -341
package/package.json
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
color="negative"
|
|
10
10
|
flat
|
|
11
11
|
:label="$t('confirmDialog.cancel')"
|
|
12
|
-
@click="onClickBtnCancel
|
|
12
|
+
@click="onClickBtnCancel"
|
|
13
13
|
data-cy="cancel"
|
|
14
14
|
/>
|
|
15
15
|
<q-btn
|
|
16
16
|
color="positive"
|
|
17
17
|
flat
|
|
18
18
|
:label="$t('confirmDialog.confirm')"
|
|
19
|
-
@click="onClickBtnConfirm
|
|
19
|
+
@click="onClickBtnConfirm"
|
|
20
20
|
data-cy="confirm"
|
|
21
21
|
/>
|
|
22
22
|
</q-card-actions>
|
|
@@ -52,15 +52,8 @@ export default defineComponent({
|
|
|
52
52
|
type: String,
|
|
53
53
|
default: '',
|
|
54
54
|
},
|
|
55
|
-
onClickBtnConfirm: {
|
|
56
|
-
type: Function,
|
|
57
|
-
default: function () { },
|
|
58
|
-
},
|
|
59
|
-
onClickBtnCancel: {
|
|
60
|
-
type: Function,
|
|
61
|
-
default: function () { },
|
|
62
|
-
}
|
|
63
55
|
},
|
|
56
|
+
emits: ['onClickBtnConfirm', 'onClickBtnCancel'],
|
|
64
57
|
methods: {
|
|
65
58
|
openDialogAndSetMessage(msg: string): void {
|
|
66
59
|
this.alert = true
|
|
@@ -68,6 +61,14 @@ export default defineComponent({
|
|
|
68
61
|
},
|
|
69
62
|
closeAlert() {
|
|
70
63
|
this.alert = false
|
|
64
|
+
},
|
|
65
|
+
onClickBtnConfirm () {
|
|
66
|
+
this.closeAlert()
|
|
67
|
+
this.$emit('onClickBtnConfirm')
|
|
68
|
+
},
|
|
69
|
+
onClickBtnCancel () {
|
|
70
|
+
this.closeAlert()
|
|
71
|
+
this.$emit('onClickBtnCancel')
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
})
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
:class="'q-pa-xs col-xs-12 col-sm-6 col-md-4 col-lg-3 grid-style-transition'"
|
|
4
4
|
:style="tablePropsData.selected ? 'transform: scale(0.95);' : ''"
|
|
5
5
|
>
|
|
6
|
-
{{ tableProps.row.rowBgColor }}
|
|
7
6
|
<q-card
|
|
8
7
|
bordered
|
|
9
8
|
flat
|
|
@@ -46,6 +45,7 @@
|
|
|
46
45
|
name="fa-solid fa-pen-to-square"
|
|
47
46
|
color="primary"
|
|
48
47
|
size="sm"
|
|
48
|
+
class="cursor-pointer"
|
|
49
49
|
/>
|
|
50
50
|
<span v-html="tableProps.row[col.name]" />
|
|
51
51
|
<TablePopupEdit
|
|
@@ -1,62 +1,50 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
<div id="taskNavBar">
|
|
3
|
+
<q-toolbar class="q-toolbar-unset-height">
|
|
4
|
+
<div class="row full-width">
|
|
5
5
|
<div class="col-6">
|
|
6
|
-
<img :src="logo"
|
|
6
|
+
<img :src="logo" class="logo">
|
|
7
7
|
</div>
|
|
8
8
|
<div class="col-6 text-right" id="buttons">
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
<q-btn v-if="showBtnBack" flat round size="lg" @click="onClickBtnBack">
|
|
10
|
+
<q-icon>
|
|
11
|
+
<svg class="text-h4" xmlns="http://www.w3.org/2000/svg" width="30" height="30"
|
|
12
|
+
viewBox="0 0 23.648 22.836">
|
|
13
|
+
<g id="Arrow_brand" data-name="Arrow brand" transform="translate(0 22.836) rotate(-90)">
|
|
14
|
+
<path id="Caminho_1066" data-name="Caminho 1066"
|
|
15
|
+
d="M23.648,10.644l-22.323.569L11.42,1.095,10.325,0,0,11.418,10.325,22.836l1.095-1.095-10.1-10.13,22.323.581Z"
|
|
16
|
+
transform="translate(22.836) rotate(90)" />
|
|
17
|
+
</g>
|
|
18
|
+
</svg>
|
|
19
|
+
</q-icon>
|
|
20
|
+
</q-btn>
|
|
21
|
+
<q-btn v-if="showSearch" flat round icon="search" size="lg" @click="onClickBtnSearch" />
|
|
22
|
+
<q-btn flat round size="lg" @click="onClickBtnMenu">
|
|
23
|
+
<q-icon id="menu">
|
|
24
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="30.448" height="28.247" viewBox="0 0 30.448 28.247">
|
|
25
|
+
<g id="Componente_11_3" data-name="Componente 11 – 3" transform="translate(0 1)">
|
|
26
|
+
<path id="Caminho_702" data-name="Caminho 702" d="M38.053,40.174H24"
|
|
27
|
+
transform="translate(-7.604 -13.177)" fill="none" stroke="#1a1311" stroke-miterlimit="10"
|
|
28
|
+
stroke-width="0.5" />
|
|
29
|
+
<path id="Caminho_703" data-name="Caminho 703" d="M45.079,31.913H24"
|
|
30
|
+
transform="translate(-14.631 -18.155)" fill="none" stroke="#1a1311" stroke-miterlimit="10"
|
|
31
|
+
stroke-width="1" />
|
|
32
|
+
<path id="Caminho_704" data-name="Caminho 704" d="M54.448,23.328H24"
|
|
33
|
+
transform="translate(-24 -23.328)" fill="none" stroke="#1a1311" stroke-miterlimit="10"
|
|
34
|
+
stroke-width="2" />
|
|
35
|
+
</g>
|
|
36
|
+
</svg>
|
|
37
|
+
</q-icon>
|
|
38
|
+
</q-btn>
|
|
15
39
|
</div>
|
|
16
40
|
</div>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
41
|
+
</q-toolbar>
|
|
42
|
+
<q-toolbar-title class="text-color-almost-black">
|
|
43
|
+
{{ title }}
|
|
44
|
+
</q-toolbar-title>
|
|
21
45
|
</div>
|
|
22
46
|
</template>
|
|
23
47
|
|
|
24
|
-
<style>
|
|
25
|
-
#logo {
|
|
26
|
-
display: block;
|
|
27
|
-
width: 125px;
|
|
28
|
-
height: 50px;
|
|
29
|
-
background-position: center;
|
|
30
|
-
background-repeat: no-repeat;
|
|
31
|
-
background-size: contain;
|
|
32
|
-
margin-bottom: 10px;
|
|
33
|
-
}
|
|
34
|
-
#buttons .q-img {
|
|
35
|
-
margin-left: 20px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.q-toolbar__title {
|
|
39
|
-
font-family: "SangBleuKingdom-Light, sans-serif";
|
|
40
|
-
font-size: 25px;
|
|
41
|
-
margin: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@media only screen and (max-width: 1100px) {
|
|
45
|
-
.q-toolbar__title {
|
|
46
|
-
font-size: 20px;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@media only screen and (max-width: 375px) {
|
|
51
|
-
#logo {
|
|
52
|
-
display: none;
|
|
53
|
-
}
|
|
54
|
-
.q-toolbar__title {
|
|
55
|
-
font-size: 18px;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
</style>
|
|
59
|
-
|
|
60
48
|
<script lang="ts">
|
|
61
49
|
import { defineComponent } from 'vue'
|
|
62
50
|
import { date } from 'quasar'
|
|
@@ -92,14 +80,14 @@ export default defineComponent({
|
|
|
92
80
|
},
|
|
93
81
|
emits: ['search', 'back'],
|
|
94
82
|
methods: {
|
|
95
|
-
|
|
83
|
+
onClickBtnMenu() {
|
|
96
84
|
console.log('toggleRightDrawer')
|
|
97
85
|
},
|
|
98
|
-
|
|
86
|
+
onClickBtnSearch() {
|
|
99
87
|
this.$emit('search')
|
|
100
88
|
console.log('search')
|
|
101
89
|
},
|
|
102
|
-
|
|
90
|
+
onClickBtnBack() {
|
|
103
91
|
this.$emit('back')
|
|
104
92
|
console.log('back')
|
|
105
93
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#taskNavBar .logo {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 125px;
|
|
4
|
+
height: 50px;
|
|
5
|
+
background-position: center;
|
|
6
|
+
background-repeat: no-repeat;
|
|
7
|
+
background-size: contain;
|
|
8
|
+
margin-bottom: 10px;
|
|
9
|
+
}
|
|
10
|
+
#taskNavBar #buttons .q-img {
|
|
11
|
+
margin-left: 20px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
#taskNavBar .q-toolbar__title {
|
|
15
|
+
font-family: "SangBleuKingdom-Light, sans-serif";
|
|
16
|
+
font-size: 25px;
|
|
17
|
+
margin: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media only screen and (max-width: 1100px) {
|
|
21
|
+
#taskNavBar .q-toolbar__title {
|
|
22
|
+
font-size: 20px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media only screen and (max-width: 375px) {
|
|
27
|
+
#taskNavBar .logo {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
#taskNavBar .q-toolbar__title {
|
|
31
|
+
font-size: 18px;
|
|
32
|
+
}
|
|
33
|
+
}
|
package/src/css/app.css
CHANGED
package/src/i18n/en/index.ts
CHANGED
package/src/i18n/es/index.ts
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
>
|
|
10
10
|
<ConfirmDialog
|
|
11
11
|
ref="ConfirmRef"
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
@onClickBtnConfirm="onClickBtnConfirm"
|
|
13
|
+
@onClickBtnCancel="onClickBtnCancel"
|
|
14
14
|
/>
|
|
15
15
|
</div>
|
|
16
16
|
</q-page>
|
|
@@ -35,10 +35,8 @@ export default {
|
|
|
35
35
|
methods: {
|
|
36
36
|
onClickBtnConfirm() {
|
|
37
37
|
console.log('confirm')
|
|
38
|
-
this.$refs.ConfirmRef.closeAlert()
|
|
39
38
|
},
|
|
40
39
|
onClickBtnCancel() {
|
|
41
|
-
this.$refs.ConfirmRef.closeAlert()
|
|
42
40
|
console.log('cancel')
|
|
43
41
|
}
|
|
44
42
|
}
|