@questwork/vue-q-widget-vue3 3.1.13 → 3.1.15

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.
@@ -79,4 +79,70 @@ CC0: http://creativecommons.org/publicdomain/zero/1.0/
79
79
  Files located in the node_modules and vendor directories are externally
80
80
  maintained libraries used by this software which have their own
81
81
  licenses; we recommend you read them, as their terms may differ from the
82
- terms above.
82
+ terms above.
83
+
84
+ ---
85
+
86
+ Name: vuedraggable
87
+ Version: 4.1.0
88
+ License: MIT
89
+ Private: false
90
+ Description: draggable component for vue
91
+ Repository: https://github.com/SortableJS/Vue.Draggable.git
92
+ License Copyright:
93
+ ===
94
+
95
+ The MIT License (MIT)
96
+
97
+ Copyright (c) 2016-2019 David Desmaisons
98
+
99
+ Permission is hereby granted, free of charge, to any person obtaining a copy
100
+ of this software and associated documentation files (the "Software"), to deal
101
+ in the Software without restriction, including without limitation the rights
102
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
103
+ copies of the Software, and to permit persons to whom the Software is
104
+ furnished to do so, subject to the following conditions:
105
+
106
+ The above copyright notice and this permission notice shall be included in all
107
+ copies or substantial portions of the Software.
108
+
109
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
110
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
111
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
112
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
113
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
114
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
115
+ SOFTWARE.
116
+
117
+ ---
118
+
119
+ Name: sortablejs
120
+ Version: 1.14.0
121
+ License: MIT
122
+ Private: false
123
+ Description: JavaScript library for reorderable drag-and-drop lists on modern browsers and touch devices. No jQuery required. Supports Meteor, AngularJS, React, Polymer, Vue, Knockout and any CSS library, e.g. Bootstrap.
124
+ Repository: git://github.com/SortableJS/Sortable.git
125
+ License Copyright:
126
+ ===
127
+
128
+ MIT License
129
+
130
+ Copyright (c) 2019 All contributors to Sortable
131
+
132
+ Permission is hereby granted, free of charge, to any person obtaining a copy
133
+ of this software and associated documentation files (the "Software"), to deal
134
+ in the Software without restriction, including without limitation the rights
135
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
136
+ copies of the Software, and to permit persons to whom the Software is
137
+ furnished to do so, subject to the following conditions:
138
+
139
+ The above copyright notice and this permission notice shall be included in all
140
+ copies or substantial portions of the Software.
141
+
142
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
143
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
144
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
145
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
146
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
147
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
148
+ SOFTWARE.
@@ -73,9 +73,10 @@ class Element extends Node {
73
73
  return _mergeState(this.state, this.stateName)
74
74
  }
75
75
 
76
- onCreated({ component, payload = {} }) {
76
+ onCreated({ component, payload = {}, reRender = null }) {
77
77
  this.addComponent(component)
78
78
  this.updateState(payload)
79
+ this.reRender = reRender
79
80
  return this
80
81
  }
81
82
 
@@ -1,5 +1,6 @@
1
1
  import { ElementQButton } from './qButton'
2
2
  import { ElementQComponent } from './qComponent'
3
+ import { ElementQDraggableList } from './qDraggableList'
3
4
  import { ElementQForm } from './qForm'
4
5
  import { ElementQGrid } from './qGrid'
5
6
  import { ElementQHtml } from './qHtml'
@@ -13,6 +14,7 @@ import { ElementQTab } from './qTab'
13
14
  export default {
14
15
  ElementQButton,
15
16
  ElementQComponent,
17
+ ElementQDraggableList,
16
18
  ElementQForm,
17
19
  ElementQGrid,
18
20
  ElementQHtml,
@@ -27,6 +29,7 @@ export default {
27
29
  export {
28
30
  ElementQButton,
29
31
  ElementQComponent,
32
+ ElementQDraggableList,
30
33
  ElementQForm,
31
34
  ElementQGrid,
32
35
  ElementQHtml,
@@ -0,0 +1,27 @@
1
+ import { Element } from '../element'
2
+
3
+ class ElementQDraggableList extends Element {
4
+ constructor(opt = {}) {
5
+ super(opt)
6
+ this.defaultStateName = {
7
+ qDraggableList: 'qDraggableList'
8
+ }
9
+ }
10
+
11
+ getConfig() {
12
+ const config = {
13
+ ...(this.state.qDraggableList || {}),
14
+ ...(this.config || {}),
15
+ ...(this.state[this.name] || {})
16
+ }
17
+ return config
18
+ }
19
+ }
20
+
21
+ export default {
22
+ ElementQDraggableList
23
+ }
24
+
25
+ export {
26
+ ElementQDraggableList
27
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@questwork/vue-q-widget-vue3",
3
- "version": "3.1.13",
3
+ "version": "3.1.15",
4
4
  "description": "Questwork vue component Sample",
5
5
  "exports": {
6
6
  ".": {
@@ -22,7 +22,6 @@
22
22
  "@babel/core": "^7.12.16",
23
23
  "@babel/eslint-parser": "^7.12.16",
24
24
  "@babel/preset-env": "^7.22.4",
25
- "@questwork/q-utilities": "^0.1.21",
26
25
  "@questwork/vue-q-buttons-vue3": "^3.1.0",
27
26
  "@questwork/vue-q-form-vue3": "3.1.6",
28
27
  "@questwork/vue-q-grid-vue3": "^3.1.0",
@@ -35,6 +34,7 @@
35
34
  "@storybook/vue3": "^8.4.7",
36
35
  "@storybook/vue3-vite": "^8.4.7",
37
36
  "@vitejs/plugin-vue": "^5.2.1",
37
+ "vuedraggable": "^4.1.0",
38
38
  "@vue-office/docx": "^1.6.3",
39
39
  "@vue-office/excel": "^1.7.14",
40
40
  "@vue-office/pdf": "^2.0.10",
@@ -54,6 +54,10 @@
54
54
  "vue": "^3.5.13",
55
55
  "vue-demi": "0.14.6"
56
56
  },
57
+ "dependencies": {
58
+ "@questwork/q-utilities": "^0.1.21",
59
+ "vuedraggable": "^4.1.0"
60
+ },
57
61
  "engines": {
58
62
  "node": ">=10.0.0"
59
63
  },