@wishbone-media/spark 0.16.0 → 0.17.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wishbone-media/spark",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -15,12 +15,12 @@
15
15
  "formkit.theme.mjs"
16
16
  ],
17
17
  "peerDependencies": {
18
- "@formkit/addons": "^1.6.9",
19
- "@formkit/core": "^1.6.9",
20
- "@formkit/icons": "^1.6.9",
21
- "@formkit/pro": "^0.127.23",
22
- "@formkit/themes": "^1.6.9",
23
- "@formkit/vue": "^1.6.9",
18
+ "@formkit/addons": "^1.7.2",
19
+ "@formkit/core": "^1.7.2",
20
+ "@formkit/icons": "^1.7.2",
21
+ "@formkit/pro": "^0.127.24",
22
+ "@formkit/themes": "^1.7.2",
23
+ "@formkit/vue": "^1.7.2",
24
24
  "@fortawesome/fontawesome-svg-core": "^7.1.0",
25
25
  "@fortawesome/pro-duotone-svg-icons": "^7.1.0",
26
26
  "@fortawesome/pro-regular-svg-icons": "^7.1.0",
@@ -84,11 +84,11 @@ const customFilter = (prop, th, sparkTable) => {
84
84
  const initAppTableHeader = (th, prop, columnSettings) => {
85
85
  th.classList.add('spark-table-head')
86
86
 
87
- if (!columnSettings || !columnSettings.hideSort) {
87
+ if (columnSettings && columnSettings.columnSort) {
88
88
  th.classList.add('can-sort')
89
89
  }
90
90
 
91
- if (!columnSettings || !columnSettings.hideFilter) {
91
+ if (columnSettings && columnSettings.columnFilter) {
92
92
  th.classList.add('can-filter')
93
93
  }
94
94
 
@@ -116,18 +116,18 @@ const customiseHeader = (col, th, sparkTable) => {
116
116
  const columnSettings = sparkTable.methods.getSettingsForProp(prop)
117
117
 
118
118
  if (th.childElementCount === 1) {
119
- if (columnSettings && columnSettings.hideSort) {
119
+ if (!columnSettings || !columnSettings.columnSort) {
120
120
  childrenCount--
121
121
  }
122
- if (columnSettings && columnSettings.hideFilter) {
122
+ if (!columnSettings || !columnSettings.columnFilter) {
123
123
  childrenCount--
124
124
  }
125
125
 
126
- if (!columnSettings || !columnSettings.hideSort) {
126
+ if (columnSettings && columnSettings.columnSort) {
127
127
  customSort(prop, th, sparkTable)
128
128
  }
129
129
 
130
- if (!columnSettings || !columnSettings.hideFilter) {
130
+ if (columnSettings && columnSettings.columnFilter) {
131
131
  customFilter(prop, th, sparkTable)
132
132
  }
133
133
  }
@@ -27,9 +27,8 @@ import { icon } from '@fortawesome/fontawesome-svg-core'
27
27
  * handler: (row) => downloadFile(row.file_url)
28
28
  * }
29
29
  * ]
30
- * },
31
- * hideSort: true,
32
- * hideFilter: true
30
+ * }
31
+ * // Note: columnSort and columnFilter are disabled by default for action columns
33
32
  * }
34
33
  *
35
34
  * @typedef {Object} ActionConfig