@questwork/vue-q-widget-vue3 3.1.0 → 3.1.2

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.
Files changed (42) hide show
  1. package/dist/q-widget.min.js +29 -8
  2. package/dist/q-widget.min.js.LICENSE.txt +82 -1
  3. package/lib/helpers/index.js +1 -0
  4. package/lib/helpers/utilities/convertString/convertString.js +14 -0
  5. package/lib/helpers/utilities/convertString/index.js +1 -0
  6. package/lib/helpers/utilities/getStringByArr/getStringByArr.js +59 -0
  7. package/lib/helpers/utilities/getStringByArr/index.js +1 -0
  8. package/lib/helpers/utilities/getValidation/getValidation.js +19 -0
  9. package/lib/helpers/utilities/getValidation/index.js +1 -0
  10. package/lib/helpers/utilities/getValueByKeys/getValueByKeys.js +13 -0
  11. package/lib/helpers/utilities/getValueByKeys/index.js +1 -0
  12. package/lib/helpers/utilities/index.js +5 -1
  13. package/lib/helpers/utilities/keyValueObject/index.js +1 -0
  14. package/lib/helpers/utilities/keyValueObject/keyValueObject.js +7 -0
  15. package/lib/models/controller/controller.js +21 -5
  16. package/lib/models/factories/nodeFactory.js +1 -0
  17. package/lib/models/index.js +0 -1
  18. package/lib/models/nodes/element.js +1 -0
  19. package/lib/models/nodes/elements/qButton.js +15 -0
  20. package/lib/models/nodes/elements/qForm.js +17 -3
  21. package/lib/models/nodes/elements/qGrid.js +16 -2
  22. package/lib/models/nodes/elements/qHtml.js +15 -0
  23. package/lib/models/nodes/elements/qLabel.js +15 -0
  24. package/lib/models/nodes/elements/qList.js +29 -9
  25. package/lib/models/nodes/elements/qPaginator.js +18 -0
  26. package/lib/models/nodes/elements/qTab.js +13 -0
  27. package/package.json +23 -38
  28. package/vite.config.js +64 -14
  29. package/lib/models/controllerHelpers/controllerHelpers.js +0 -46
  30. package/lib/models/controllerHelpers/index.js +0 -1
  31. /package/lib/helpers/{utilities/configHandler → configHandler}/configHandler.js +0 -0
  32. /package/lib/helpers/{utilities/configHandler → configHandler}/handlers/elementQForm/buttonsHandler.js +0 -0
  33. /package/lib/helpers/{utilities/configHandler → configHandler}/handlers/elementQForm/elementQFormConfigHandler.js +0 -0
  34. /package/lib/helpers/{utilities/configHandler → configHandler}/handlers/elementQForm/index.js +0 -0
  35. /package/lib/helpers/{utilities/configHandler → configHandler}/handlers/elementQForm/layoutHandler.js +0 -0
  36. /package/lib/helpers/{utilities/configHandler → configHandler}/handlers/elementQList/actionsHandler.js +0 -0
  37. /package/lib/helpers/{utilities/configHandler → configHandler}/handlers/elementQList/bulkActionHandler.js +0 -0
  38. /package/lib/helpers/{utilities/configHandler → configHandler}/handlers/elementQList/elementQListConfigHandler.js +0 -0
  39. /package/lib/helpers/{utilities/configHandler → configHandler}/handlers/elementQList/headersHandler.js +0 -0
  40. /package/lib/helpers/{utilities/configHandler → configHandler}/handlers/elementQList/index.js +0 -0
  41. /package/lib/helpers/{utilities/configHandler → configHandler}/handlers/index.js +0 -0
  42. /package/lib/helpers/{utilities/configHandler → configHandler}/index.js +0 -0
@@ -1 +1,82 @@
1
- No third parties dependencies
1
+ Name: @questwork/q-utilities
2
+ Version: 0.1.0
3
+ License: MIT
4
+ Private: false
5
+ Description: Questwork QUtilities
6
+ Author: Questwork Consulting Limited <info@questwork.com> (https://questwork.com/)
7
+ License Copyright:
8
+ ===
9
+
10
+ Copyright 2019 Questwork Consulting Limited
11
+
12
+ This project is free software released under the MIT/X11 license:
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
+
20
+ ---
21
+
22
+ Name: lodash
23
+ Version: 4.17.21
24
+ License: MIT
25
+ Private: false
26
+ Description: Lodash modular utilities.
27
+ Repository: undefined
28
+ Homepage: https://lodash.com/
29
+ Author: John-David Dalton <john.david.dalton@gmail.com>
30
+ Contributors:
31
+ John-David Dalton <john.david.dalton@gmail.com>
32
+ Mathias Bynens <mathias@qiwi.be>
33
+ License Copyright:
34
+ ===
35
+
36
+ Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
37
+
38
+ Based on Underscore.js, copyright Jeremy Ashkenas,
39
+ DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
40
+
41
+ This software consists of voluntary contributions made by many
42
+ individuals. For exact contribution history, see the revision history
43
+ available at https://github.com/lodash/lodash
44
+
45
+ The following license applies to all parts of this software except as
46
+ documented below:
47
+
48
+ ====
49
+
50
+ Permission is hereby granted, free of charge, to any person obtaining
51
+ a copy of this software and associated documentation files (the
52
+ "Software"), to deal in the Software without restriction, including
53
+ without limitation the rights to use, copy, modify, merge, publish,
54
+ distribute, sublicense, and/or sell copies of the Software, and to
55
+ permit persons to whom the Software is furnished to do so, subject to
56
+ the following conditions:
57
+
58
+ The above copyright notice and this permission notice shall be
59
+ included in all copies or substantial portions of the Software.
60
+
61
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
62
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
63
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
64
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
65
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
66
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
67
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
68
+
69
+ ====
70
+
71
+ Copyright and related rights for sample code are waived via CC0. Sample
72
+ code is defined as all source code displayed within the prose of the
73
+ documentation.
74
+
75
+ CC0: http://creativecommons.org/publicdomain/zero/1.0/
76
+
77
+ ====
78
+
79
+ Files located in the node_modules and vendor directories are externally
80
+ maintained libraries used by this software which have their own
81
+ licenses; we recommend you read them, as their terms may differ from the
82
+ terms above.
@@ -1,2 +1,3 @@
1
1
  export * from './controller'
2
+ export * from './configHandler'
2
3
  export * from './utilities'
@@ -0,0 +1,14 @@
1
+ import { getValueByKeys } from '../getValueByKeys'
2
+
3
+ import { convertString as _convertString } from '@questwork/q-utilities'
4
+
5
+ function convertString(string, patternMatch, value) {
6
+ return _convertString(string, patternMatch, value, getValueByKeys)
7
+ }
8
+
9
+ export default {
10
+ convertString
11
+ }
12
+ export {
13
+ convertString
14
+ }
@@ -0,0 +1 @@
1
+ export { convertString } from './convertString'
@@ -0,0 +1,59 @@
1
+ import { getValidation as _getValidation } from '../getValidation'
2
+ import { getValueByKeys as _getValueByKeys } from '../getValueByKeys'
3
+
4
+ function getStringByArr(arr, data) {
5
+ return _getStringByArr(arr, data, _getValueByKeys, _getValidation)
6
+ }
7
+
8
+ export default {
9
+ getStringByArr
10
+ }
11
+ export {
12
+ getStringByArr
13
+ }
14
+
15
+ function _getStringByArr(arr, data, getValueByKeys, getValidation) {
16
+ if (!Array.isArray(arr) || arr.length === 0) {
17
+ return ''
18
+ }
19
+ return arr.reduce((acc, item) => {
20
+ const { type, value = '', restriction, template } = item
21
+ if (getValidation({ rule: restriction, data })) {
22
+ switch (type) {
23
+ case ('label'): {
24
+ acc += (value.toString())
25
+ break
26
+ }
27
+ case ('value'): {
28
+ const _value = getValueByKeys({ keys: value.split('.'), obj: data }) || ''
29
+ acc += (_value.toString())
30
+ break
31
+ }
32
+ case ('array'): {
33
+ const _value = getValueByKeys({ keys: value.split('.'), obj: data }) || []
34
+ acc += _value.reduce((_acc, _item) => (_acc += getStringByArr(template, _item)), '')
35
+ break
36
+ }
37
+ case ('group'): {
38
+ acc += getStringByArr(template, data)
39
+ break
40
+ }
41
+ case ('ellipsis'): {
42
+ const { maxLength } = item
43
+ const _value = getValueByKeys({ keys: value.split('.'), obj: data }) || ''
44
+ if (_value.length <= maxLength) {
45
+ acc += (_value.toString())
46
+ } else {
47
+ acc += `${_value.substr(0, maxLength)}...`
48
+ }
49
+ break
50
+ }
51
+ default: {
52
+ acc += (value.toString())
53
+ break
54
+ }
55
+ }
56
+ }
57
+ return acc
58
+ }, '')
59
+ }
@@ -0,0 +1 @@
1
+ export { getStringByArr } from './getStringByArr'
@@ -0,0 +1,19 @@
1
+ import { getValueByKeys as _getValueByKeys } from '../getValueByKeys'
2
+ import { KeyValueObject } from '../keyValueObject'
3
+ import { getValidation as _getValidation } from '@questwork/q-utilities'
4
+
5
+ function getValidation({ rule, data }) {
6
+ return _getValidation(rule, data, _getDataByKey, KeyValueObject)
7
+ }
8
+
9
+ function _getDataByKey(key, data) {
10
+ const keys = key.split('.')
11
+ return _getValueByKeys({ keys, obj: data })
12
+ }
13
+
14
+ export default {
15
+ getValidation
16
+ }
17
+ export {
18
+ getValidation
19
+ }
@@ -0,0 +1 @@
1
+ export { getValidation } from './getValidation'
@@ -0,0 +1,13 @@
1
+
2
+ import { getValueByKeys as _getValueByKeys } from '@questwork/q-utilities'
3
+
4
+ function getValueByKeys({ keys, obj }) {
5
+ return _getValueByKeys(keys, obj)
6
+ }
7
+
8
+ export default {
9
+ getValueByKeys
10
+ }
11
+ export {
12
+ getValueByKeys
13
+ }
@@ -0,0 +1 @@
1
+ export { getValueByKeys } from './getValueByKeys'
@@ -1,2 +1,6 @@
1
- export * from './configHandler'
1
+ export * from './convertString'
2
+ export * from './getValidation'
3
+ export * from './getValueByKeys'
4
+ export * from './getStringByArr'
5
+ export * from './keyValueObject'
2
6
  export * from './setId'
@@ -0,0 +1 @@
1
+ export { KeyValueObject } from './keyValueObject'
@@ -0,0 +1,7 @@
1
+ 'use strict'
2
+
3
+ import { KeyValueObject } from '@questwork/q-utilities'
4
+
5
+ export {
6
+ KeyValueObject
7
+ }
@@ -10,11 +10,16 @@ class Controller {
10
10
  this.initialState = opt.initialState
11
11
  this.name = opt.name
12
12
  this.saveStateKeys = opt.saveStateKeys || []
13
- this.setLayout(opt.layout, opt.controllerHelpers)
13
+ this.setLayout(opt.layout)
14
14
  }
15
15
 
16
16
  get isValid() {
17
- return !!this.id && !!this.layout
17
+ return !!this.id && this.isValidControllerHelpers
18
+ }
19
+
20
+ get isValidControllerHelpers() {
21
+ const { qUtilities } = this.controllerHelpers
22
+ return qUtilities && isFunction(qUtilities.convertString) && isFunction(qUtilities.getValidation)
18
23
  }
19
24
 
20
25
  static init(layout) {
@@ -41,7 +46,11 @@ class Controller {
41
46
  return this.state
42
47
  }
43
48
 
44
- setLayout(layout, controllerHelpers) {
49
+ setLayout(layout) {
50
+ const controllerHelpers = {
51
+ ...this.controllerHelpers,
52
+ controller: this
53
+ }
45
54
  this.layout = NodeFactory.init({ layout, controllerHelpers })
46
55
  }
47
56
 
@@ -49,15 +58,22 @@ class Controller {
49
58
  this.elements = elements
50
59
  }
51
60
 
52
- updateState(state) {
61
+ updateState(state = {}) {
53
62
  this.state = {
54
63
  ...this.state,
55
64
  ...state
56
65
  }
57
- this.layout.updateElementState(this.state)
66
+ if (this.layout) {
67
+ this.layout.updateElementState(this.state)
68
+ }
58
69
  }
59
70
  }
60
71
 
72
+ function isFunction(fun) {
73
+ return typeof fun === 'function'
74
+ }
75
+
76
+
61
77
  export default {
62
78
  Controller
63
79
  }
@@ -32,6 +32,7 @@ function initNode(layout, nodes, controllerHelpers) {
32
32
  }
33
33
  const i = (NODE_TYPE[nodeType]).init({
34
34
  ...layout,
35
+ controllerHelpers,
35
36
  permissionResult
36
37
  })
37
38
  if (i) {
@@ -1,5 +1,4 @@
1
1
  export * from './configs'
2
- export * from './controllerHelpers'
3
2
  export * from './controller'
4
3
  export * from './factories'
5
4
  export * from './nodes'
@@ -4,6 +4,7 @@ import { configHandler } from '../../helpers'
4
4
  class Element extends Node {
5
5
  constructor(opt = {}) {
6
6
  super(opt)
7
+ this.controllerHelpers = opt.controllerHelpers
7
8
  this.configPermissions = opt.configPermissions
8
9
  this.name = opt.name
9
10
  this.nodeType = opt.nodeType || 'Element'
@@ -3,6 +3,21 @@ import { Element } from '../element'
3
3
  class ElementQButton extends Element {
4
4
  constructor(opt = {}) {
5
5
  super(opt)
6
+ this.defaultStateName = {
7
+ qButton: 'qButton'
8
+ }
9
+ }
10
+
11
+ getConfig() {
12
+ let config = this.config || {}
13
+ if (this.state.qButton) {
14
+ const stateConfig = this.state.qButton
15
+ config = {
16
+ ...stateConfig,
17
+ ...config
18
+ }
19
+ }
20
+ return config
6
21
  }
7
22
  }
8
23
 
@@ -1,3 +1,4 @@
1
+ import lodash from 'lodash'
1
2
  import { Element } from '../element'
2
3
  import { ElementQFormConfig } from '../../configs'
3
4
 
@@ -14,17 +15,30 @@ class ElementQForm extends Element {
14
15
  }
15
16
  }
16
17
 
17
- getConfig(helpers) {
18
+ get isValid() {
19
+ return super.isValid && this.isValidHelpers
20
+ }
21
+
22
+ get isValidHelpers() {
23
+ const { qForm } = this.controllerHelpers || {}
24
+ const { NodeHelper } = qForm || {}
25
+ if (typeof NodeHelper !== 'function') {
26
+ console.log('invalid form helpers')
27
+ return false
28
+ }
29
+ return true
30
+ }
31
+
32
+ getConfig() {
18
33
  let config = this.config || {}
19
34
  if (this.state.qForm) {
20
- const { lodash } = helpers.qUtilities
21
35
  const stateConfig = _getStateConfig(this.state.qForm)
22
36
  config = lodash.mergeWith(stateConfig, config || {}, _customizer)
23
37
  }
24
38
  return typeof ElementQFormConfig === 'function' ? ElementQFormConfig.init({
25
39
  ...config,
26
40
  helpers: {
27
- ...helpers,
41
+ ...this.controllerHelpers,
28
42
  element: this
29
43
  },
30
44
  }) : {}
@@ -9,7 +9,21 @@ class ElementQGrid extends Element {
9
9
  }
10
10
  }
11
11
 
12
- getConfig(helpers) {
12
+ get isValid() {
13
+ return super.isValid && this.isValidHelpers
14
+ }
15
+
16
+ get isValidHelpers() {
17
+ const { qGrid } = this.controllerHelpers || {}
18
+ const { QItem, Cell } = qGrid || {}
19
+ if (typeof QItem !== 'function' || typeof Cell !== 'function') {
20
+ console.log('invalid grid helpers')
21
+ return false
22
+ }
23
+ return true
24
+ }
25
+
26
+ getConfig() {
13
27
  let config = this.config || {}
14
28
  if (this.state.qGrid) {
15
29
  const stateConfig = this.state.qGrid
@@ -21,7 +35,7 @@ class ElementQGrid extends Element {
21
35
  return typeof ElementQGridConfig === 'function' ? ElementQGridConfig.init({
22
36
  ...config,
23
37
  helpers: {
24
- ...helpers,
38
+ ...this.controllerHelpers,
25
39
  element: this,
26
40
  },
27
41
  }) : {}
@@ -3,6 +3,21 @@ import { Element } from '../element'
3
3
  class ElementQHtml extends Element {
4
4
  constructor(opt = {}) {
5
5
  super(opt)
6
+ this.defaultStateName = {
7
+ qHtml: 'qHtml'
8
+ }
9
+ }
10
+
11
+ getConfig() {
12
+ let config = this.config || {}
13
+ if (this.state.qHtml) {
14
+ const stateConfig = this.state.qHtml
15
+ config = {
16
+ ...stateConfig,
17
+ ...config
18
+ }
19
+ }
20
+ return config
6
21
  }
7
22
  }
8
23
 
@@ -3,6 +3,21 @@ import { Element } from '../element'
3
3
  class ElementQLabel extends Element {
4
4
  constructor(opt = {}) {
5
5
  super(opt)
6
+ this.defaultStateName = {
7
+ qLabel: 'qLabel'
8
+ }
9
+ }
10
+
11
+ getConfig() {
12
+ let config = this.config || {}
13
+ if (this.state.qLabel) {
14
+ const stateConfig = this.state.qLabel
15
+ config = {
16
+ ...stateConfig,
17
+ ...config
18
+ }
19
+ }
20
+ return config
6
21
  }
7
22
  }
8
23
 
@@ -11,19 +11,39 @@ class ElementQList extends Element {
11
11
  }
12
12
  }
13
13
 
14
- getConfig(helpers) {
15
- let config = this.config || {}
16
- if (this.state.qList) {
17
- const stateConfig = _getStateConfig(this.state.qList)
18
- config = {
19
- ...stateConfig,
20
- ...config
21
- }
14
+ get isValid() {
15
+ return super.isValid && this.isValidHelpers
16
+ }
17
+
18
+ get isValidHelpers() {
19
+ const { qList } = this.controllerHelpers || {}
20
+ const { QListBulkButton, QListButton, QRow } = qList || {}
21
+ if (typeof QListBulkButton !== 'function' || typeof QListButton !== 'function' || typeof QRow !== 'function') {
22
+ console.log('invalid list helpers')
23
+ return false
24
+ }
25
+ return true
26
+ }
27
+
28
+
29
+ getConfig() {
30
+ // let config = this.config || {}
31
+ // if (this.state.qList) {
32
+ // const stateConfig = _getStateConfig(this.state.qList)
33
+ // config = {
34
+ // ...stateConfig,
35
+ // ...config
36
+ // }
37
+ // }
38
+ const config = {
39
+ ...(this.state.qList || {}),
40
+ ...(this.config || {}),
41
+ ...(this.state[this.name] || {})
22
42
  }
23
43
  return typeof ElementQListConfig === 'function' ? ElementQListConfig.init({
24
44
  ...config,
25
45
  helpers: {
26
- ...helpers,
46
+ ...this.controllerHelpers,
27
47
  element: this
28
48
  },
29
49
  }) : {}
@@ -6,9 +6,27 @@ class ElementQPaginator extends Element {
6
6
  this.defaultStateName = {
7
7
  currentPage: 'currentPage',
8
8
  currentPageSize: 'currentPageSize',
9
+ qPaginator: 'qPaginator',
9
10
  totalRecords: 'totalRecords'
10
11
  }
11
12
  }
13
+
14
+ getConfig() {
15
+ return {
16
+ ...(this.state.qPaginator || {}),
17
+ ...(this.config || {}),
18
+ ...(this.state[this.name] || {})
19
+ }
20
+ // let config = this.config || {}
21
+ // if (this.state.qPaginator) {
22
+ // const stateConfig = this.state.qPaginator
23
+ // config = {
24
+ // ...stateConfig,
25
+ // ...config
26
+ // }
27
+ // }
28
+ // return config
29
+ }
12
30
  }
13
31
 
14
32
  export default {
@@ -5,9 +5,22 @@ class ElementQTab extends Element {
5
5
  super(opt)
6
6
  this.defaultStateName = {
7
7
  active: 'active',
8
+ qTab: 'qTab',
8
9
  tabLayout: 'tabLayout'
9
10
  }
10
11
  }
12
+
13
+ getConfig() {
14
+ let config = this.config || {}
15
+ if (this.state.qTab) {
16
+ const stateConfig = this.state.qTab
17
+ config = {
18
+ ...stateConfig,
19
+ ...config
20
+ }
21
+ }
22
+ return config
23
+ }
11
24
  }
12
25
 
13
26
  export default {
package/package.json CHANGED
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "name": "@questwork/vue-q-widget-vue3",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "Questwork vue component Sample",
5
- "main": "dist/q-widget.min.js",
5
+ "exports": {
6
+ ".": {
7
+ "import": "./dist/q-widget.min.js",
8
+ "require": "./dist/q-widget.min.js"
9
+ },
10
+ "./style.css": "./dist/q-widget.min.css"
11
+ },
6
12
  "author": {
7
13
  "name": "Questwork Consulting Limited",
8
14
  "email": "info@questwork.com",
@@ -19,52 +25,31 @@
19
25
  "@questwork/vue-q-list-vue3": "^3.1.0",
20
26
  "@questwork/vue-q-modal-vue3": "^3.1.0",
21
27
  "@questwork/vue-q-paginator-vue3": "^3.1.0",
22
- "@storybook/addon-links": "^8.4.6",
23
- "@storybook/addon-viewport": "^8.4.6",
24
- "@storybook/source-loader": "^8.4.6",
25
- "@storybook/test": "^8.4.6",
26
- "@storybook/vue3": "^8.4.6",
27
- "@storybook/vue3-vite": "^8.4.6",
28
+ "@storybook/addon-essentials": "^8.5.3",
29
+ "@storybook/addon-links": "^8.4.7",
30
+ "@storybook/vue3": "^8.4.7",
31
+ "@storybook/vue3-vite": "^8.4.7",
28
32
  "@vitejs/plugin-vue": "^5.2.1",
29
- "babel-loader": "^8.2.4",
30
- "chai": "^4.3.6",
31
- "chromedriver": "^116.0.0",
32
- "clean-webpack-plugin": "^3.0.0",
33
33
  "cross-env": "^7.0.3",
34
- "css-loader": "^3.6.0",
35
- "eslint": "^8.47.0",
34
+ "eslint": "8.47.0",
36
35
  "eslint-config-airbnb-base": "11.2.0",
37
36
  "eslint-plugin-import": "2.3.0",
38
- "eslint-plugin-storybook": "^0.11.1",
39
- "eslint-plugin-vue": "^8.0.3",
40
- "file-loader": "^6.2.0",
41
- "gulp": "^4.0.2",
42
- "lodash": "^4.17.21",
37
+ "eslint-plugin-storybook": "^0.11.2",
38
+ "eslint-plugin-vue": "^9.32.0",
43
39
  "rollup-plugin-license": "^3.5.3",
44
- "rollup-webpack-umd": "^0.1.2",
45
- "sass": "^1.49.11",
46
- "sass-loader": "^8.0.2",
47
- "selenium-webdriver": "^4.11.1",
48
- "sinon": "^9.2.4",
49
- "sinon-chai": "^3.7.0",
50
- "storybook": "^8.4.6",
51
- "style-loader": "^1.3.0",
52
- "underscore": "1.4.4",
53
- "url-loader": "^4.1.1",
54
- "vite": "^6.0.2",
40
+ "sass": "^1.83.4",
41
+ "storybook": "^8.4.7",
42
+ "vite": "5.4.11",
55
43
  "vite-plugin-commonjs": "^0.10.4",
56
- "vite-plugin-lib-inject-css": "^2.1.1",
57
- "vue": "^3.5.13",
58
- "vue-loader": "^15.10.1",
59
- "vue-template-compiler": "^2.6.14",
60
- "webpack": "^5.71.0",
61
- "webpack-cli": "^4.9.2",
62
- "webpack-merge": "^4.2.2",
63
- "webpack-node-externals": "^1.7.2"
44
+ "vue": "^3.5.13"
64
45
  },
65
46
  "engines": {
66
47
  "node": ">=10.0.0"
67
48
  },
49
+ "dependencies": {
50
+ "@questwork/q-utilities": "^0.1.0",
51
+ "lodash": "^4.17.21"
52
+ },
68
53
  "scripts": {
69
54
  "build": "vite build",
70
55
  "build:storybook": "storybook build -c .storybook -o storybook",