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/package.json CHANGED
@@ -97,6 +97,6 @@
97
97
  "release": "standard-version"
98
98
  },
99
99
  "type": "module",
100
- "version": "0.0.22",
100
+ "version": "0.0.23",
101
101
  "author": ""
102
102
  }
@@ -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
  })
@@ -29,6 +29,7 @@
29
29
  name="edit"
30
30
  color="primary"
31
31
  size="sm"
32
+ class="cursor-pointer"
32
33
  />
33
34
  <TablePopupEdit
34
35
  v-if="col.editable"
@@ -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
- <q-toolbar class="q-toolbar-unset-height">
4
- <div class="row full-width">
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" id="logo">
6
+ <img :src="logo" class="logo">
7
7
  </div>
8
8
  <div class="col-6 text-right" id="buttons">
9
- <q-img v-if="showBtnBack" src="src/assets/icons/ArrowBack.svg" width="30px" @click="back" class="cursor-pointer" />
10
- <q-img v-if="showSearch" src="src/assets/icons/Search.svg" width="30px" @click="search" class="cursor-pointer"/>
11
- <q-img src="src/assets/icons/Menu.svg" width="30px" @click="toggleRightDrawer" class="cursor-pointer"/>
12
- <!-- <q-btn v-if="showBtnBack" flat round icon="arrow_back" size="lg" @click="back" class="cursor-pointer" />
13
- <q-btn v-if="showSearch" flat round icon="search" size="lg" @click="search" class="cursor-pointer"/>
14
- <q-btn icon="menu" flat round size="lg" @click="toggleRightDrawer" class="cursor-pointer"/> -->
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
- </q-toolbar >
18
- <q-toolbar-title class="text-color-almost-black">
19
- {{ title }}
20
- </q-toolbar-title>
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
- toggleRightDrawer () {
83
+ onClickBtnMenu() {
96
84
  console.log('toggleRightDrawer')
97
85
  },
98
- search () {
86
+ onClickBtnSearch() {
99
87
  this.$emit('search')
100
88
  console.log('search')
101
89
  },
102
- back () {
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
@@ -1,4 +1,5 @@
1
1
  @import url('../components/Table/css/table.css');
2
+ @import url('../components/TaskNavBar/css/taskNavBar.css');
2
3
  @import url('./fonts.css');
3
4
  :root {
4
5
  --main-color: #FFF8F2;
@@ -9,7 +9,9 @@ const en = {
9
9
  },
10
10
  confirmDialog: {
11
11
  cancel: 'Cancel',
12
- confirm: 'Confirm'
12
+ confirm: 'Confirm',
13
+ yes: 'Yes',
14
+ no: 'No'
13
15
  },
14
16
  form: {
15
17
  rules: {
@@ -9,7 +9,9 @@ const es = {
9
9
  },
10
10
  confirmDialog: {
11
11
  cancel: 'Cancelar',
12
- confirm: 'Confirmar'
12
+ confirm: 'Confirmar',
13
+ yes: 'Sí',
14
+ no: 'No'
13
15
  },
14
16
  form: {
15
17
  rules: {
@@ -9,8 +9,8 @@
9
9
  >
10
10
  <ConfirmDialog
11
11
  ref="ConfirmRef"
12
- :onClickBtnConfirm="onClickBtnConfirm"
13
- :onClickBtnCancel="onClickBtnCancel"
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
  }
@@ -10,7 +10,8 @@
10
10
  <q-header class="bg-main-color text-black">
11
11
  <TaskNavBar
12
12
  :logo="'src/assets/vue.svg'"
13
- :title="'Load Preparation'"/>
13
+ :title="'Testing new navbar'">
14
+ </TaskNavBar>
14
15
  </q-header>
15
16
  </div>
16
17
  </q-page>