quasar-factory-lib 0.0.61 → 0.0.62

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.
@@ -1,5 +1,4 @@
1
1
  export const tableStore: import("pinia").StoreDefinition<"tableStore", {
2
- disableScannerButtons: import("@vueuse/shared").RemovableRef<boolean>;
3
2
  filterValue: import("@vueuse/shared").RemovableRef<string>;
4
3
  lastFilterValue: import("@vueuse/shared").RemovableRef<string>;
5
4
  visiblecolumns: import("@vueuse/shared").RemovableRef<never[]>;
package/package.json CHANGED
@@ -97,6 +97,6 @@
97
97
  "release": "standard-version"
98
98
  },
99
99
  "type": "module",
100
- "version": "0.0.61",
100
+ "version": "0.0.62",
101
101
  "author": ""
102
102
  }
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <q-dialog v-model="alert" persistent>
3
- <q-card class="alert-card" :data-cy="dataCy">
3
+ <q-card class="alert-card" :data-cy="dataCy || 'confirm-dialog'">
4
4
  <q-card-section class="row items-center">
5
5
  <span class="q-ml-sm text-body1">{{ message }}</span>
6
6
  </q-card-section>
@@ -46,8 +46,8 @@
46
46
  </q-dialog>
47
47
  </div>
48
48
  </template>
49
- <script>
50
- import { defineComponent, ref } from 'vue'
49
+ <script lang="ts">
50
+ import { defineComponent } from 'vue'
51
51
  export default defineComponent({
52
52
  data () {
53
53
  return {
@@ -278,9 +278,8 @@ export default defineComponent({
278
278
  clearTableSelection () {
279
279
  this.selected = []
280
280
  },
281
- toggleSearchVisibility (store: {disableScannerButtons: boolean, lastFilterValue: string, valueInputFilterTable: string}) {
281
+ toggleSearchVisibility (store: { lastFilterValue: string, valueInputFilterTable: string }) {
282
282
  this.showSearch = !this.showSearch
283
- store.disableScannerButtons = false
284
283
  store.lastFilterValue = ''
285
284
  store.valueInputFilterTable = ''
286
285
  },
@@ -19,6 +19,7 @@
19
19
  <q-card-section>
20
20
  <q-checkbox
21
21
  :data-cy="'checkbox-' + tablePropsData.row.id"
22
+ size="sm"
22
23
  v-if="selectionType != 'none'"
23
24
  v-model="tablePropsData.selected"
24
25
  dense
@@ -28,6 +29,7 @@
28
29
  <q-item
29
30
  v-for="col in tablePropsData.cols.filter((col: any) => col.name !== 'desc')"
30
31
  :key="col.name"
32
+ :id="col.name"
31
33
  >
32
34
  <q-item-section>
33
35
  <q-item-label class="itemsFontSize ellipsis text-color-lightGray">
@@ -18,9 +18,7 @@
18
18
  @on-click-btn-menu="toogleColumnsSelectorVisibility">
19
19
  </TaskNavBar>
20
20
  <TableRowsCounter :counterJson="[
21
- { qty: 1, title: 'Total', dataCy: 'datacy', extraClasses: 'class'},
22
- { qty: 10, title: 'Total2', dataCy: 'datacy', extraClasses: 'text-color-positive'},
23
- { qty: 30, title: 'Total3', dataCy: 'datacy', extraClasses: 'text-color-negative-bold'}
21
+ { qty: 1, title: 'Total', dataCy: 'datacy', extraClasses: 'class'}
24
22
  ]"/>
25
23
  </div>
26
24
  </q-header>
@@ -60,11 +58,6 @@
60
58
  <q-btn class="full-width" color="accent" icon="arrow_forward" />
61
59
  </q-page-sticky>
62
60
  </q-page>
63
- <!-- <SideBar
64
- ref="sideBar"
65
- @toggle-right-drawer="toggleRightDrawer"
66
- @onclick-show-select-visible-columns="toogleColumnsSelectorVisibility"
67
- :buttonsList="buttonsList" /> -->
68
61
  </q-page-container>
69
62
  </q-layout>
70
63
  </div>
@@ -74,7 +67,6 @@
74
67
  <script lang="ts">
75
68
  import TaskNavBar from '../components/TaskNavBar/TaskNavBar.vue'
76
69
  import Table from '../components/Table/Table.vue'
77
- // import SideBar from '../components/TaskNavBar/SideBar.vue'
78
70
  import NavBarSkeleton from '../components/NavBarSkeleton/NavBarSkeleton.vue'
79
71
  import TableRowsCounter from'../components/TableRowsCounter/TableRowsCounter.vue'
80
72
  import AlertLabelsWithError from '../components/AlertLabelsWithError/AlertLabelsWithError.vue'
@@ -84,7 +76,6 @@ import { tableStore } from '../store/table.js'
84
76
  export default {
85
77
  components: {
86
78
  TaskNavBar,
87
- // SideBar,
88
79
  Table,
89
80
  TableRowsCounter,
90
81
  AlertLabelsWithError,
@@ -377,19 +368,7 @@ export default {
377
368
  this.showSkeleton = true
378
369
  this.store.cleanTableFilter()
379
370
  this.getRows()
380
- this.$refs.AlertLabelsWithError.alert = true
381
- this.$refs.AlertLabelsWithError.labelsErrors.push({
382
- label: '558877',
383
- error: 'The Bin does not exist. Identification fields and values',
384
- icon: 'cancel',
385
- spinner: false
386
- },
387
- {
388
- label: '558871',
389
- error: 'The Bin does not exist. Identification fields and values',
390
- icon: 'cancel',
391
- spinner: false
392
- })
371
+ // this.getAlertLabelsWithError()
393
372
  },
394
373
  methods: {
395
374
  getRows () {
@@ -427,10 +406,20 @@ export default {
427
406
  onCloseDialogLabelsError () {
428
407
  console.log('onCloseDialogLabelsError')
429
408
  },
430
- getX () {
431
- // this.$refs.AlertLabelsWithError.setLabelsSpinner(labelCode, true)
432
-
433
- // this.$refs.AlertLabelsWithError.setIconCircleCheck(labelCode)
409
+ getAlertLabelsWithError () {
410
+ this.$refs.AlertLabelsWithError.alert = true
411
+ this.$refs.AlertLabelsWithError.labelsErrors.push({
412
+ label: '558877',
413
+ error: 'The Bin does not exist. Identification fields and values',
414
+ icon: 'cancel',
415
+ spinner: false
416
+ },
417
+ {
418
+ label: '558871',
419
+ error: 'The Bin does not exist. Identification fields and values',
420
+ icon: 'cancel',
421
+ spinner: false
422
+ })
434
423
  }
435
424
  }
436
425
  }
@@ -2,7 +2,6 @@ import { defineStore } from 'pinia'
2
2
  import { useStorage } from '@vueuse/core'
3
3
  export const tableStore = defineStore('tableStore', {
4
4
  state: () => ({
5
- disableScannerButtons: useStorage('disableScannerButtons', false),
6
5
  filterValue: useStorage('filterValue', ''),
7
6
  lastFilterValue: useStorage('lastFilterValue', ''),
8
7
  visiblecolumns: useStorage('visiblecolumns', []),
@@ -18,7 +17,6 @@ export const tableStore = defineStore('tableStore', {
18
17
  cleanTableFilter () {
19
18
  this.filterValue = ''
20
19
  this.lastFilterValue = ''
21
- this.disableScannerButtons = false
22
20
  }
23
21
 
24
22
  }