quasar-factory-lib 0.0.88 → 0.0.89

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
@@ -98,6 +98,6 @@
98
98
  "release": "standard-version"
99
99
  },
100
100
  "type": "module",
101
- "version": "0.0.88",
101
+ "version": "0.0.89",
102
102
  "author": ""
103
103
  }
@@ -231,7 +231,10 @@ export default defineComponent({
231
231
  'setLineRemainingQty',
232
232
  'setLineNoStock',
233
233
  'onDoneLineMaintenanceTasks',
234
- 'reprintSULabel'
234
+ 'reprintSULabel',
235
+ 'onDragStart',
236
+ 'onDragUpdate',
237
+ 'onDragEnd'
235
238
  ],
236
239
  data () {
237
240
  return {
@@ -322,17 +325,20 @@ export default defineComponent({
322
325
  animation: 100,
323
326
  delay: self.dragAndDropDelay,
324
327
 
325
- onStart () {
326
- console.log('start')
328
+ onStart (e) {
329
+ // console.log('start')
330
+ self.$emit('onDragStart', e)
327
331
  },
328
332
  onUpdate (e) {
329
- console.log(e, 'onUpdate')
333
+ // console.log(e, 'onUpdate')
330
334
  const {oldIndex, newIndex} = e
331
335
  console.log(oldIndex, newIndex, self.rows)
332
336
  self.rowsData = [...self.rows]
337
+ self.$emit('onDragUpdate', e)
333
338
  },
334
339
  onEnd(e) {
335
- console.log(e, 'end drag')
340
+ // console.log(e, 'end drag')
341
+ self.$emit('onDragEnd', e)
336
342
  }
337
343
  })
338
344
  }
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <q-badge
3
- class="cursor-pointer q-pt-sm q-pb-sm"
3
+ class="cursor-pointer q-pt-xs q-pb-xs"
4
4
  :data-cy="'badge' + dataCy"
5
5
  :class="badgeColor"
6
6
  :text-color="badgeTextColor"
@@ -166,7 +166,8 @@ export default {
166
166
  'onUpdateBasicCheckboxValue',
167
167
  'onClickButton',
168
168
  'onUpdateCustomizedCheckboxValue',
169
- 'onClickIconToolTip'
169
+ 'onClickIconToolTip',
170
+ 'modifyPriorityOrder'
170
171
  ],
171
172
  data () {
172
173
  return {
@@ -203,7 +203,8 @@ export default {
203
203
  'onClickButton',
204
204
  'onUpdateCustomizedCheckboxValue',
205
205
  'onClickIcon',
206
- 'onClickIconToolTip'
206
+ 'onClickIconToolTip',
207
+ 'modifyPriorityOrder'
207
208
  ],
208
209
  data () {
209
210
  return {
@@ -50,6 +50,15 @@
50
50
  @on-update-basic-checkbox-value="onUpdateBasicCheckboxValue"
51
51
  @on-update-customized-checkbox-value="onUpdateCustomizedCheckboxValue"
52
52
  @on-click-button="setItemNotFound"
53
+ @on-drag-start="(args) => {
54
+ console.log(args, 'start')
55
+ }"
56
+ @on-drag-update="(args) => {
57
+ console.log(args, 'update')
58
+ }"
59
+ @on-drag-end="(args) => {
60
+ console.log(args, 'end')
61
+ }"
53
62
  />
54
63
  <q-page-sticky
55
64
  v-if="smallDevice"