quasar-factory-lib 0.0.37 → 0.0.38
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/TaskNavBar/TaskNavBar.vue.d.ts +1 -0
- package/dist/pages/NavBarPage.vue.d.ts +1 -0
- package/dist/pages/TablePage.vue.d.ts +16 -3
- package/dist/quasar-factory-lib.js +1369 -1384
- package/dist/quasar-factory-lib.umd.cjs +10 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Table/components/TableFilter.vue +1 -1
- package/src/components/Table/components/TableSlotBody.vue +1 -1
- package/src/components/Table/components/TableSlotGrid.vue +1 -0
- package/src/components/Table/components/TableSlotHeader.vue +1 -0
- package/src/components/Table/utils/infiniteScroll.ts +0 -1
- package/src/components/TaskNavBar/TaskNavBar.vue +16 -9
- package/src/components/TaskNavBar/css/taskNavBar.css +14 -8
- package/src/css/app.css +4 -0
- package/src/pages/TablePage.vue +1 -24
- package/src/utils/infiniteScroll.ts +0 -1
package/package.json
CHANGED
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
:key="col.name"
|
|
18
18
|
:class="tableProps.row.rowBgColor || 'bg-main-color'"
|
|
19
19
|
:props="tableProps"
|
|
20
|
-
:style="tablePropsData.row.tdStyle"
|
|
21
20
|
>
|
|
22
21
|
<span
|
|
22
|
+
:style="tablePropsData.row.tdStyle"
|
|
23
23
|
v-if="getColumnValue(col)"
|
|
24
24
|
v-html="tableProps.row[col.name]"
|
|
25
25
|
/>
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
const infiniteScroll = {
|
|
4
4
|
handleInfiniteScrollNewTable (self: { $nextTick: (arg0: () => void) => void; totalPageModal: number; smallDevice: boolean, totalPage: number }): void {
|
|
5
5
|
self.$nextTick(() => {
|
|
6
|
-
// console.log('aqui')
|
|
7
6
|
const elemClass = self.smallDevice ? 'q-table__grid-content' : 'q-table__middle scroll'
|
|
8
7
|
const tableType = self.smallDevice ? 'Grid' : 'Table'
|
|
9
8
|
const qtableScrollElem = document.getElementsByClassName(elemClass) as HTMLCollectionOf<HTMLElement>
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
<div id="taskNavBar">
|
|
3
3
|
<q-toolbar class="q-toolbar-unset-height">
|
|
4
4
|
<div class="row full-width">
|
|
5
|
-
<div class="col-
|
|
5
|
+
<div class="col-7">
|
|
6
6
|
<img :src="logo" class="logo">
|
|
7
|
+
<span id="mobile-title">{{ title }}</span>
|
|
7
8
|
</div>
|
|
8
|
-
<div class="col-
|
|
9
|
-
|
|
10
|
-
<q-icon>
|
|
9
|
+
<div class="col-5 text-right">
|
|
10
|
+
<q-icon v-if="showBtnBack" size="md" class="cursor-pointer" @click="onClickBtnBack">
|
|
11
11
|
<svg class="text-h4" xmlns="http://www.w3.org/2000/svg" width="30" height="30"
|
|
12
12
|
viewBox="0 0 23.648 22.836">
|
|
13
13
|
<g id="Arrow_brand" data-name="Arrow brand" transform="translate(0 22.836) rotate(-90)">
|
|
@@ -17,10 +17,15 @@
|
|
|
17
17
|
</g>
|
|
18
18
|
</svg>
|
|
19
19
|
</q-icon>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
<q-icon
|
|
21
|
+
v-if="showBtnSearch"
|
|
22
|
+
color="primary"
|
|
23
|
+
:name="showIconSearch ?'search' : 'search_off'"
|
|
24
|
+
size="md"
|
|
25
|
+
class="q-ml-md cursor-pointer"
|
|
26
|
+
@click="onClickBtnSearch">
|
|
27
|
+
</q-icon>
|
|
28
|
+
<q-icon id="iconMenu" size="md" @click="onClickBtnMenu" class="q-ml-md cursor-pointer">
|
|
24
29
|
<svg xmlns="http://www.w3.org/2000/svg" width="30.448" height="28.247" viewBox="0 0 30.448 28.247">
|
|
25
30
|
<g id="Componente_11_3" data-name="Componente 11 – 3" transform="translate(0 1)">
|
|
26
31
|
<path id="Caminho_702" data-name="Caminho 702" d="M38.053,40.174H24"
|
|
@@ -35,7 +40,7 @@
|
|
|
35
40
|
</g>
|
|
36
41
|
</svg>
|
|
37
42
|
</q-icon>
|
|
38
|
-
|
|
43
|
+
|
|
39
44
|
</div>
|
|
40
45
|
</div>
|
|
41
46
|
</q-toolbar>
|
|
@@ -53,6 +58,7 @@ export default defineComponent({
|
|
|
53
58
|
data() {
|
|
54
59
|
return {
|
|
55
60
|
date,
|
|
61
|
+
showIconSearch: true,
|
|
56
62
|
rightDrawerOpen: false
|
|
57
63
|
}
|
|
58
64
|
},
|
|
@@ -81,6 +87,7 @@ export default defineComponent({
|
|
|
81
87
|
console.log('menu')
|
|
82
88
|
},
|
|
83
89
|
onClickBtnSearch() {
|
|
90
|
+
this.showIconSearch = !this.showIconSearch
|
|
84
91
|
this.$emit('onClickBtnSearch')
|
|
85
92
|
console.log('search')
|
|
86
93
|
},
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
#taskNavBar .logo {
|
|
2
2
|
display: block;
|
|
3
3
|
width: 125px;
|
|
4
|
-
height:
|
|
4
|
+
height: auto;
|
|
5
5
|
background-position: center;
|
|
6
6
|
background-repeat: no-repeat;
|
|
7
7
|
background-size: contain;
|
|
8
8
|
margin-bottom: 10px;
|
|
9
9
|
}
|
|
10
|
-
#taskNavBar #buttons .q-img {
|
|
11
|
-
margin-left: 20px;
|
|
12
|
-
}
|
|
13
10
|
|
|
14
11
|
#taskNavBar .q-toolbar__title {
|
|
15
|
-
font-family: "SangBleuKingdom-Light, sans-serif";
|
|
16
|
-
font-size: 25px;
|
|
17
|
-
margin: 0;
|
|
12
|
+
font-family: "SangBleuKingdom-Light, sans-serif";
|
|
13
|
+
font-size: 25px;
|
|
14
|
+
margin: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
#mobile-title {
|
|
18
|
+
display: none;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
@media only screen and (max-width: 1100px) {
|
|
@@ -24,9 +25,14 @@ margin: 0;
|
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
@media only screen and (max-width: 375px) {
|
|
27
|
-
#taskNavBar .logo {
|
|
28
|
+
#taskNavBar .logo, #taskNavBar .q-toolbar__title {
|
|
28
29
|
display: none;
|
|
29
30
|
}
|
|
31
|
+
#mobile-title {
|
|
32
|
+
display: block;
|
|
33
|
+
font-family: "SangBleuKingdom-Light, sans-serif";
|
|
34
|
+
font-size: 20px;
|
|
35
|
+
}
|
|
30
36
|
#taskNavBar .q-toolbar__title {
|
|
31
37
|
font-size: 18px;
|
|
32
38
|
}
|
package/src/css/app.css
CHANGED
package/src/pages/TablePage.vue
CHANGED
|
@@ -23,30 +23,12 @@
|
|
|
23
23
|
@on-update-customized-checkbox-value="onUpdateCustomizedCheckboxValue"
|
|
24
24
|
@on-click-button="setItemNotFound"
|
|
25
25
|
/>
|
|
26
|
-
<q-dialog v-model="showDialog" >
|
|
27
|
-
<div>
|
|
28
|
-
<q-btn @click="close">Close</q-btn>
|
|
29
|
-
<Table
|
|
30
|
-
:rows="rows"
|
|
31
|
-
:columns="columns"
|
|
32
|
-
:visible-columns="visibleColumns"
|
|
33
|
-
:small-device="false"
|
|
34
|
-
:store="store"
|
|
35
|
-
:table-style="tableStyle"
|
|
36
|
-
:show-skeleton="false"
|
|
37
|
-
:selection-type="'multiple'"
|
|
38
|
-
:filter-method="filterMethod"
|
|
39
|
-
:filter-computed="filter"
|
|
40
|
-
/>
|
|
41
|
-
</div>
|
|
42
|
-
</q-dialog>
|
|
43
26
|
</div>
|
|
44
27
|
</q-page>
|
|
45
28
|
</q-page-container>
|
|
46
29
|
</template>
|
|
47
30
|
<script lang="ts">
|
|
48
31
|
import Table from '../components/Table/Table.vue'
|
|
49
|
-
// import rows from '../testData.js'
|
|
50
32
|
import setTableHeight from '../components/Table/utils/setTableHeight'
|
|
51
33
|
import infiniteScroll from '../components/Table/utils/infiniteScroll'
|
|
52
34
|
import FilterMethod from '../components/Table/utils/filterMethod'
|
|
@@ -162,6 +144,7 @@ export default {
|
|
|
162
144
|
rows: [],
|
|
163
145
|
rowsData: [
|
|
164
146
|
{
|
|
147
|
+
tdStyle: "color: #597765 !important; font-weight: bold;",
|
|
165
148
|
name: 'Frozen Yogurt',
|
|
166
149
|
booleanIcon: true,
|
|
167
150
|
available: true,
|
|
@@ -329,12 +312,6 @@ export default {
|
|
|
329
312
|
},
|
|
330
313
|
setItemNotFound (rows: object []) {
|
|
331
314
|
console.log(rows, 'onClickButton')
|
|
332
|
-
this.showDialog = true
|
|
333
|
-
this.store.lastFilterValue = this.store.filterValue
|
|
334
|
-
},
|
|
335
|
-
close () {
|
|
336
|
-
this.showDialog= false
|
|
337
|
-
this.store.filterValue = this.store.lastFilterValue
|
|
338
315
|
}
|
|
339
316
|
}
|
|
340
317
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
const infiniteScroll = {
|
|
4
4
|
handleInfiniteScrollNewTable (self: { $nextTick: (arg0: () => void) => void; totalPageModal: number; smallDevice: boolean, totalPage: number }): void {
|
|
5
5
|
self.$nextTick(() => {
|
|
6
|
-
console.log('aqui')
|
|
7
6
|
const elemClass = self.smallDevice ? 'q-table__grid-content' : 'q-table__middle scroll'
|
|
8
7
|
const tableType = self.smallDevice ? 'Grid' : 'Table'
|
|
9
8
|
const qtableScrollElem = document.getElementsByClassName(elemClass) as HTMLCollectionOf<HTMLElement>
|