@questwork/vue-q-list-vue3 3.1.4 → 3.1.5
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/q-list.min.js +28 -17
- package/dist/q-list.min.js.LICENSE.txt +39 -35
- package/lib/models/qRow/qRow.js +17 -63
- package/package.json +2 -1
|
@@ -1,5 +1,42 @@
|
|
|
1
|
+
Name: bwip-js
|
|
2
|
+
Version: 4.8.0
|
|
3
|
+
License: MIT
|
|
4
|
+
Private: false
|
|
5
|
+
Description: JavaScript barcode generator supporting over 100 types and standards.
|
|
6
|
+
Repository: https://github.com/metafloor/bwip-js.git
|
|
7
|
+
Homepage: https://github.com/metafloor/bwip-js
|
|
8
|
+
Author: Mark Warren <mwarren@metafloor.com>
|
|
9
|
+
License Copyright:
|
|
10
|
+
===
|
|
11
|
+
|
|
12
|
+
bwip-js : Barcode Writer in Pure JavaScript
|
|
13
|
+
|
|
14
|
+
Copyright (c) 2011-2025 Mark Warren
|
|
15
|
+
|
|
16
|
+
The MIT License
|
|
17
|
+
|
|
18
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
19
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
20
|
+
in the Software without restriction, including without limitation the rights
|
|
21
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
22
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
23
|
+
furnished to do so, subject to the following conditions:
|
|
24
|
+
|
|
25
|
+
The above copyright notice and this permission notice shall be included in
|
|
26
|
+
all copies or substantial portions of the Software.
|
|
27
|
+
|
|
28
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
29
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
30
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
31
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
32
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
33
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
34
|
+
THE SOFTWARE.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
1
38
|
Name: @questwork/q-utilities
|
|
2
|
-
Version: 0.1.
|
|
39
|
+
Version: 0.1.22
|
|
3
40
|
License: MIT
|
|
4
41
|
Private: false
|
|
5
42
|
Description: Questwork QUtilities
|
|
@@ -91,37 +128,4 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
|
91
128
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
92
129
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
93
130
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
94
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
95
|
-
|
|
96
|
-
---
|
|
97
|
-
|
|
98
|
-
Name: @questwork/utilities
|
|
99
|
-
Version: 0.1.67
|
|
100
|
-
License: MIT
|
|
101
|
-
Private: false
|
|
102
|
-
Description: Questwork utilities
|
|
103
|
-
Author: Questwork Consulting Limited <info@questwork.com> (https://questwork.com/)
|
|
104
|
-
License Copyright:
|
|
105
|
-
===
|
|
106
|
-
|
|
107
|
-
Copyright 2019 Questwork Consulting Limited
|
|
108
|
-
|
|
109
|
-
This project is free software released under the MIT/X11 license:
|
|
110
|
-
|
|
111
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
112
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
113
|
-
in the Software without restriction, including without limitation the rights
|
|
114
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
115
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
116
|
-
furnished to do so, subject to the following conditions:
|
|
117
|
-
|
|
118
|
-
The above copyright notice and this permission notice shall be included in
|
|
119
|
-
all copies or substantial portions of the Software.
|
|
120
|
-
|
|
121
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
122
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
123
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
124
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
125
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
126
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
127
|
-
THE SOFTWARE.
|
|
131
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/lib/models/qRow/qRow.js
CHANGED
|
@@ -4,21 +4,16 @@ const { TemplateCompiler } = require('@questwork/q-utilities')
|
|
|
4
4
|
class QRow {
|
|
5
5
|
constructor(options = {}) {
|
|
6
6
|
options = options || {}
|
|
7
|
-
this.
|
|
8
|
-
this.creator = options.creator
|
|
7
|
+
this.isChecked = options.isChecked || false
|
|
9
8
|
this.cssMaker = options.cssMaker
|
|
10
9
|
this.cssNames = options.cssNames || []
|
|
11
|
-
this.deleted = options.deleted || false
|
|
12
|
-
this.duration = options.duration
|
|
13
10
|
this.editable = (typeof options.editable === 'boolean') ? options.editable : true
|
|
11
|
+
this.expansion = options.expansion || false
|
|
14
12
|
this.getActions = options.getActions
|
|
15
|
-
this.new = options.new || false
|
|
16
|
-
this.owner = options.owner
|
|
17
13
|
this.row = options.row
|
|
18
14
|
this.shouldBeDisabled = setshouldBeDisabled(options.shouldBeDisabled || null)
|
|
19
15
|
this.shouldBeVisible = setShouldBeVisible(options.shouldBeVisible || null)
|
|
20
16
|
this.uniqueKey = options.uniqueKey
|
|
21
|
-
this.unread = options.unread || false
|
|
22
17
|
this._templateCompiler = TemplateCompiler.init(this.row)
|
|
23
18
|
}
|
|
24
19
|
|
|
@@ -105,6 +100,10 @@ class QRow {
|
|
|
105
100
|
return this.row
|
|
106
101
|
}
|
|
107
102
|
|
|
103
|
+
getIsChecked() {
|
|
104
|
+
return this.isChecked
|
|
105
|
+
}
|
|
106
|
+
|
|
108
107
|
getUniqueKey() {
|
|
109
108
|
if (this.uniqueKey) {
|
|
110
109
|
return this.get(this.uniqueKey)
|
|
@@ -112,48 +111,8 @@ class QRow {
|
|
|
112
111
|
return null
|
|
113
112
|
}
|
|
114
113
|
|
|
115
|
-
isBetween(myTimestamp, dateRange) {
|
|
116
|
-
let result = true
|
|
117
|
-
if (dateRange) {
|
|
118
|
-
const timestamp = new Date().getTime()
|
|
119
|
-
if (dateRange.start) {
|
|
120
|
-
const { start } = dateRange
|
|
121
|
-
result = result && (timestamp >= dateHelper(myTimestamp).add(start).valueOf())
|
|
122
|
-
}
|
|
123
|
-
if (dateRange.end) {
|
|
124
|
-
const { end } = dateRange
|
|
125
|
-
result = result && (timestamp <= dateHelper(myTimestamp).add(end).valueOf())
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return result
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
isSameCreator(user) {
|
|
132
|
-
return user
|
|
133
|
-
? (user === this.creator)
|
|
134
|
-
: false
|
|
135
|
-
}
|
|
136
|
-
isSameOwner(user) {
|
|
137
|
-
return user
|
|
138
|
-
? (user === this.owner)
|
|
139
|
-
: false
|
|
140
|
-
}
|
|
141
|
-
|
|
142
114
|
getStatus() {
|
|
143
|
-
|
|
144
|
-
if (this.active) {
|
|
145
|
-
statusList.push('active')
|
|
146
|
-
}
|
|
147
|
-
if (this.deleted) {
|
|
148
|
-
statusList.push('deleted')
|
|
149
|
-
}
|
|
150
|
-
if (this.new) {
|
|
151
|
-
statusList.push('new')
|
|
152
|
-
}
|
|
153
|
-
if (this.unread) {
|
|
154
|
-
statusList.push('unread')
|
|
155
|
-
}
|
|
156
|
-
return statusList
|
|
115
|
+
return []
|
|
157
116
|
}
|
|
158
117
|
|
|
159
118
|
makeCss() {
|
|
@@ -179,24 +138,19 @@ class QRow {
|
|
|
179
138
|
this.editable = val
|
|
180
139
|
}
|
|
181
140
|
|
|
182
|
-
|
|
183
|
-
this.
|
|
184
|
-
this.new = false
|
|
185
|
-
this.unread = false
|
|
141
|
+
setExpansion(val) {
|
|
142
|
+
this.expansion = val
|
|
186
143
|
return this
|
|
187
144
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
this.
|
|
191
|
-
this.unread = false
|
|
192
|
-
return this
|
|
193
|
-
}
|
|
194
|
-
toggleNew() {
|
|
195
|
-
this.new = !this.new
|
|
196
|
-
return this
|
|
145
|
+
|
|
146
|
+
toggleExpansion() {
|
|
147
|
+
this.expansion = !this.expansion
|
|
197
148
|
}
|
|
198
|
-
|
|
199
|
-
|
|
149
|
+
|
|
150
|
+
updateIsChecked(selectedRows = []) {
|
|
151
|
+
this.isChecked = selectedRows.filter((selectedRow) => {
|
|
152
|
+
return typeof selectedRow.getUniqueKey === 'function' && selectedRow.getUniqueKey() === this.getUniqueKey()
|
|
153
|
+
}).length > 0
|
|
200
154
|
return this
|
|
201
155
|
}
|
|
202
156
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@questwork/vue-q-list-vue3",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5",
|
|
4
4
|
"description": "Questwork vue component for displaying a list",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"@babel/preset-env": "^7.22.10",
|
|
25
25
|
"@questwork/utilities": "^0.1.67",
|
|
26
26
|
"@questwork/vue-q-buttons-vue3": "^3.1.0",
|
|
27
|
+
"@questwork/vue-q-form-vue3": "^3.1.8",
|
|
27
28
|
"@questwork/vue-q-paginator-vue3": "^3.1.0",
|
|
28
29
|
"@storybook/addon-essentials": "8.5.3",
|
|
29
30
|
"@storybook/addon-links": "^8.4.7",
|