@datalabz_/dashboard-kit 6.0.0 → 6.0.1
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/README.md +9 -7
- package/package.json +1 -1
- package/v4.js +1 -1
- package/v5.js +1 -1
- package/v6.js +3 -3
package/README.md
CHANGED
|
@@ -37,10 +37,12 @@ to, never altered (see Rules). Up to `v4` a major is a `vN.js`/`vN.css` pair;
|
|
|
37
37
|
from `v5` on it is `vN.js` alone, carrying its own CSS, because Claude artifacts
|
|
38
38
|
can load scripts from jsDelivr but not stylesheets.
|
|
39
39
|
|
|
40
|
-
- **`
|
|
41
|
-
`catalog.html` demos.
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
- **`v6` is the current major** — what the authoring guide links and what
|
|
41
|
+
`catalog.html` demos. It is `v4` with its stylesheet carried in the script, one
|
|
42
|
+
`title` option on every renderer, one item shape `{ label, value, colorClass?,
|
|
43
|
+
tooltip?, sub? }` for strips and grids, and the checks `v4` lacked.
|
|
44
|
+
- **`v5` and `v4` stay live** and in every release: every dashboard made before
|
|
45
|
+
`v6` loads one of them.
|
|
44
46
|
- **`v1`, `v2` and `v3` are deprecated — treat them as gone.** They are not in
|
|
45
47
|
this repo and are not published. Don't bring them back, don't publish them,
|
|
46
48
|
don't cite them in docs or `catalog.html`, and don't copy from them when
|
|
@@ -123,13 +125,13 @@ URLs already pinned by live dashboards.
|
|
|
123
125
|
|
|
124
126
|
Pushing a `kit-v*` tag (`kit-v4.0.3`, …) runs
|
|
125
127
|
[bitbucket-pipelines.yml](../bitbucket-pipelines.yml). It publishes `v4.js`,
|
|
126
|
-
`v4.css`, `v5.js`, `wrapper.js`, `wrapper.css` and `catalog.html` as they are
|
|
128
|
+
`v4.css`, `v5.js`, `v6.js`, `wrapper.js`, `wrapper.css` and `catalog.html` as they are
|
|
127
129
|
in this directory, with the `__BUILD__` marker in each kit's JS replaced by the
|
|
128
130
|
commit hash so System Info can say which build is live, to two places:
|
|
129
131
|
|
|
130
132
|
- **Cloudflare Pages**, project `dashboard-kit` — for BackOffice dashboards,
|
|
131
|
-
which load `https://dashboard-kit-2n2.pages.dev/
|
|
132
|
-
`v4.js` and `v4.css`). That is a test
|
|
133
|
+
which load `https://dashboard-kit-2n2.pages.dev/v6.js` (older ones
|
|
134
|
+
`v5.js`, or `v4.js` and `v4.css`). That is a test
|
|
133
135
|
address on a test account until the company account serves
|
|
134
136
|
`https://kit.<domain>/`; dashboards made before then keep the test address,
|
|
135
137
|
so the test project must stay until they are rewritten. Every file is
|
package/package.json
CHANGED
package/v4.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
let _activeTabId = '';
|
|
21
21
|
let _sections = []; // { id, label, load, loaded, errors }
|
|
22
22
|
let _title = '';
|
|
23
|
-
let _gitVer = '
|
|
23
|
+
let _gitVer = '83d917d'; // replaced at deploy: sed -i "s/83d917d/$(git rev-parse --short HEAD)/g" v4.js
|
|
24
24
|
let _calls = []; // System Info call log
|
|
25
25
|
let _sectionErrors = {}; // sectionId → error count
|
|
26
26
|
let _generation = 0;
|
package/v5.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
let _activeTabId = '';
|
|
21
21
|
let _sections = []; // { id, label, load, loaded, errors }
|
|
22
22
|
let _title = '';
|
|
23
|
-
let _gitVer = '
|
|
23
|
+
let _gitVer = '83d917d'; // replaced at deploy: sed -i "s/83d917d/$(git rev-parse --short HEAD)/g" v4.js
|
|
24
24
|
let _calls = []; // System Info call log
|
|
25
25
|
let _sectionErrors = {}; // sectionId → error count
|
|
26
26
|
let _generation = 0;
|
package/v6.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
let _activeTabId = '';
|
|
21
21
|
let _sections = []; // { id, label, load, loaded, errors }
|
|
22
22
|
let _title = '';
|
|
23
|
-
let _gitVer = '
|
|
23
|
+
let _gitVer = '83d917d'; // replaced at deploy: sed -i "s/83d917d/$(git rev-parse --short HEAD)/g" v6.js
|
|
24
24
|
let _calls = []; // System Info call log
|
|
25
25
|
let _sectionErrors = {}; // sectionId → error count
|
|
26
26
|
let _generation = 0;
|
|
@@ -1189,7 +1189,7 @@ details.dk-call summary::-webkit-details-marker {
|
|
|
1189
1189
|
throw new Error(entry.error);
|
|
1190
1190
|
}
|
|
1191
1191
|
|
|
1192
|
-
const body = { sql };
|
|
1192
|
+
const body = { query: sql };
|
|
1193
1193
|
if (args && args.length) body.args = args;
|
|
1194
1194
|
if (params && params.hierarchy_id != null) body.hierarchy_id = params.hierarchy_id;
|
|
1195
1195
|
else if (_hierarchyId != null) body.hierarchy_id = _hierarchyId;
|
|
@@ -1763,7 +1763,7 @@ details.dk-call summary::-webkit-details-marker {
|
|
|
1763
1763
|
(c.error ? '<div class="dk-s-err" style="margin-bottom:6px">' + esc(c.error) + '</div>' : '') +
|
|
1764
1764
|
'<p style="font-size:11px;color:var(--muted);margin:0 0 4px">Data Request:</p>' +
|
|
1765
1765
|
'<pre>' + esc(c.sql) + '</pre>' +
|
|
1766
|
-
(c.args && c.args.length ? '<p style="font-size:11px;color:var(--muted);margin:8px 0 4px">
|
|
1766
|
+
(c.args && c.args.length ? '<p style="font-size:11px;color:var(--muted);margin:8px 0 4px">Filters:</p><pre>' + esc(JSON.stringify(c.args, null, 2)) + '</pre>' : '') +
|
|
1767
1767
|
'<div class="dk-resp-head">' +
|
|
1768
1768
|
'<span>Response:</span><button type="button" class="dk-resp-toggle" aria-label="Toggle response">−</button>' +
|
|
1769
1769
|
'</div>' +
|