@wishbone-media/spark 0.48.0 → 0.49.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/dist/index.js CHANGED
@@ -7122,7 +7122,7 @@ const Rt = new wu(), Su = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
7122
7122
  }, Mu = (e, t, n) => {
7123
7123
  e.classList.add("spark-table-head"), n && n.columnSort && e.classList.add("can-sort"), n && n.columnFilter && e.classList.add("can-filter"), e.querySelector(".relative").classList.add("spark-table-head-title-wrapper");
7124
7124
  const r = e.querySelector(".colHeader");
7125
- r.classList.add("spark-table-head-title"), r.innerHTML = _u(t);
7125
+ r.classList.add("spark-table-head-title"), r.innerHTML = n?.title || _u(t);
7126
7126
  }, Ou = (e, t, n) => {
7127
7127
  if (typeof e != "number")
7128
7128
  return e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wishbone-media/spark",
3
- "version": "0.48.0",
3
+ "version": "0.49.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -97,7 +97,7 @@ const initAppTableHeader = (th, prop, columnSettings) => {
97
97
 
98
98
  const headTitle = th.querySelector('.colHeader')
99
99
  headTitle.classList.add('spark-table-head-title')
100
- headTitle.innerHTML = renderHeaderTitle(prop)
100
+ headTitle.innerHTML = columnSettings?.title || renderHeaderTitle(prop)
101
101
  }
102
102
 
103
103
  const customiseHeader = (col, th, sparkTable) => {