@aquera/data-visualizer-sdk 0.0.41 → 0.0.42
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/{chunk-N6FSICJH.js → chunk-4P742CS2.js} +1 -1
- package/{chunk-3ZOIHHON.js → chunk-N5WYXMEB.js} +1 -1
- package/{chunk-ZGE223RR.js → chunk-UPYSRLXK.js} +1 -1
- package/chunk-WSVKPOKK.js +1 -0
- package/chunk-XCL6PSY4.js +11 -0
- package/{chunk-SONPE6N4.js → chunk-XVFAQZE6.js} +321 -321
- package/{chunk-GZIZ45JW.js → chunk-ZIS2I5NZ.js} +1 -1
- package/index.d.ts +2 -0
- package/main.js +1 -1
- package/manage-dashboards/src/manage-dashboards-config.d.ts +46 -0
- package/package.json +1 -1
- package/chunk-5PJFIQQV.js +0 -1
- package/chunk-PSLZ3MHD.js +0 -11
package/index.d.ts
CHANGED
|
@@ -71,5 +71,7 @@ export type {
|
|
|
71
71
|
DvzManageDashboardsConfig,
|
|
72
72
|
DvzManageDashboardsElement,
|
|
73
73
|
DvzManageDashboardsEventMap,
|
|
74
|
+
DvzManageDashboardsListView,
|
|
74
75
|
DvzManageDashboardsView,
|
|
75
76
|
} from './manage-dashboards/src/manage-dashboards-config';
|
|
77
|
+
export { DVZ_MANAGE_DASHBOARDS_DEFAULT_PAGE_SIZE } from './manage-dashboards/src/manage-dashboards-config';
|
package/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i,b as n}from"./chunk-
|
|
1
|
+
import{a as i,b as n}from"./chunk-N5WYXMEB.js";import{a as D,b as t}from"./chunk-ZIS2I5NZ.js";import{a as d,b as f,c as p}from"./chunk-XCL6PSY4.js";import{y as s}from"./chunk-XVFAQZE6.js";import"./chunk-ZRJYRUTX.js";import"./chunk-T4WJW6GR.js";import"./chunk-JP5QY5S6.js";import"./chunk-XUJBDACP.js";import"./chunk-BTA57TVR.js";import"./chunk-FK6H3RFT.js";import"./chunk-SYVY7IJY.js";import"./chunk-DPY4ZJSO.js";import"./chunk-T3NXAI3H.js";import"./chunk-JWVGGQEQ.js";import"./chunk-QXVITQOV.js";import"./chunk-I4TM4AGJ.js";import"./chunk-F6YL5NFN.js";import"./chunk-ATUZQYGW.js";import"./chunk-XCT4UKLK.js";import"./chunk-4XZ7RFFX.js";import"./chunk-YHTLTPEH.js";import"./chunk-LFSX3TZJ.js";import"./chunk-BTDKTIE6.js";import"./chunk-5CTM6JVQ.js";import"./chunk-W2HKCDVZ.js";import"./chunk-MPGDQZRI.js";import"./chunk-HOS2FAXH.js";import"./chunk-INJSG5RK.js";import"./chunk-RCWO45CI.js";import"./chunk-ZW5NV4UO.js";var A="0.0.42",a=A;function g(){typeof window>"u"||(window.dataViz={packageName:"@aquera/data-visualizer-sdk",version:a,getVersion:()=>a})}g();async function z(){let[{defineDvzAsk:e},{defineDvzDashboards:o},{defineDvzManageDashboards:r}]=await Promise.all([import("./chunk-UPYSRLXK.js"),import("./chunk-4P742CS2.js"),import("./chunk-WSVKPOKK.js")]);await Promise.all([e(),o(),r()])}export{a as DATA_VISUALIZER_SDK_VERSION,i as DVZ_ASK_TAG,D as DVZ_DASHBOARDS_TAG,d as DVZ_MANAGE_DASHBOARDS_DEFAULT_PAGE_SIZE,f as DVZ_MANAGE_DASHBOARDS_TAG,z as defineDvzAll,n as defineDvzAsk,t as defineDvzDashboards,p as defineDvzManageDashboards,s as setDvzEnv};
|
|
@@ -197,6 +197,40 @@ export interface DvzManageDashboardsView {
|
|
|
197
197
|
/** `null` or absent shows the All Dashboards list. */
|
|
198
198
|
dashboardId?: string | null;
|
|
199
199
|
}
|
|
200
|
+
/** The element's default rows-per-page, and the value `list.pageSize` omits. */
|
|
201
|
+
export declare const DVZ_MANAGE_DASHBOARDS_DEFAULT_PAGE_SIZE = 50;
|
|
202
|
+
/**
|
|
203
|
+
* WHERE IN THE LIST the viewer is — `el.list = { page: 4 }`.
|
|
204
|
+
*
|
|
205
|
+
* Separate from `view` because it is the OTHER half of "where was I": `view`
|
|
206
|
+
* says which of the element's two views is showing, this says what the list view
|
|
207
|
+
* was scrolled to. It exists for the same reason `dvz-view-changed` does — a
|
|
208
|
+
* host that mounts this element on a route can keep its URL honest, and paging
|
|
209
|
+
* is view state the element cannot put in a URL it does not own (`routing:
|
|
210
|
+
* 'none'` is the whole contract).
|
|
211
|
+
*
|
|
212
|
+
* The concrete bug it fixes: with `features.builder` off, clicking a card LEAVES
|
|
213
|
+
* the host page for the builder, so coming back re-mounts this element from
|
|
214
|
+
* scratch and page 4 became page 1. Mirror `dvz-list-changed` into the URL and
|
|
215
|
+
* feed it back here and the round trip lands where it started.
|
|
216
|
+
*
|
|
217
|
+
* Every field is optional and an omitted one is left alone — so a host that only
|
|
218
|
+
* cares about the page number assigns only `page`. Out-of-range values are
|
|
219
|
+
* ignored rather than clamped: the element's own past-the-end bounce (see
|
|
220
|
+
* AllDashboardsPageComponent.loadDashboards) already handles a `page` that was
|
|
221
|
+
* valid when the URL was written and is not any more.
|
|
222
|
+
*/
|
|
223
|
+
export interface DvzManageDashboardsListView {
|
|
224
|
+
/** 1-based. Values below 1, or non-integers, are ignored. */
|
|
225
|
+
page?: number;
|
|
226
|
+
/** Rows per page; defaults to DVZ_MANAGE_DASHBOARDS_DEFAULT_PAGE_SIZE. */
|
|
227
|
+
pageSize?: number;
|
|
228
|
+
/**
|
|
229
|
+
* Category filter id, or `null` for "All". An unknown id is treated as `null`
|
|
230
|
+
* rather than passed to the server — the URL it came from is user-editable.
|
|
231
|
+
*/
|
|
232
|
+
category?: string | null;
|
|
233
|
+
}
|
|
200
234
|
/**
|
|
201
235
|
* The element as the DOM sees it — every property a host assigns, in one type.
|
|
202
236
|
*
|
|
@@ -214,6 +248,12 @@ export interface DvzManageDashboardsElement extends HTMLElement {
|
|
|
214
248
|
config: DvzManageDashboardsConfig;
|
|
215
249
|
/** Which view is showing. Re-assignable; see DvzManageDashboardsView. */
|
|
216
250
|
view: DvzManageDashboardsView;
|
|
251
|
+
/**
|
|
252
|
+
* Where in the list view the viewer is — page, page size, category filter.
|
|
253
|
+
* Re-assignable; see DvzManageDashboardsListView. Read it back off
|
|
254
|
+
* `dvz-list-changed`, which reports the same three fields.
|
|
255
|
+
*/
|
|
256
|
+
list: DvzManageDashboardsListView;
|
|
217
257
|
/**
|
|
218
258
|
* The list's search term. Push the RAW value — the query is server-side and
|
|
219
259
|
* the element debounces it by 300ms, so a host that debounces too only adds
|
|
@@ -294,6 +334,10 @@ export interface DvzManageDashboardsEventMap {
|
|
|
294
334
|
*
|
|
295
335
|
* `total` is the server's count for the current filter; `shown` is how many
|
|
296
336
|
* rows this page rendered.
|
|
337
|
+
*
|
|
338
|
+
* `page` / `pageSize` / `category` are the same three fields `el.list` takes,
|
|
339
|
+
* so a host can round-trip them through its own URL — that is what keeps page
|
|
340
|
+
* 4 page 4 across a trip into the builder. See DvzManageDashboardsListView.
|
|
297
341
|
*/
|
|
298
342
|
'dvz-list-changed': {
|
|
299
343
|
total: number;
|
|
@@ -301,6 +345,8 @@ export interface DvzManageDashboardsEventMap {
|
|
|
301
345
|
loading: boolean;
|
|
302
346
|
search: string;
|
|
303
347
|
category: string | null;
|
|
348
|
+
page: number;
|
|
349
|
+
pageSize: number;
|
|
304
350
|
};
|
|
305
351
|
/**
|
|
306
352
|
* The theme on screen changed — the viewer pressed the element's toggle, the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aquera/data-visualizer-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.42",
|
|
4
4
|
"description": "Every Aquera data-visualizer element — <dvz-ask>, <dvz-dashboards> and <dvz-manage-dashboards> — in one bundle that loads their shared Nile and Highcharts dependencies once. Use this when a page mounts more than one; use the individual @aquera/dvz-* packages when it mounts only one.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
package/chunk-5PJFIQQV.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"./chunk-PSLZ3MHD.js";import"./chunk-SONPE6N4.js";import"./chunk-ZRJYRUTX.js";import"./chunk-T4WJW6GR.js";import"./chunk-JP5QY5S6.js";import"./chunk-XUJBDACP.js";import"./chunk-BTA57TVR.js";import"./chunk-FK6H3RFT.js";import"./chunk-SYVY7IJY.js";import"./chunk-DPY4ZJSO.js";import"./chunk-T3NXAI3H.js";import"./chunk-JWVGGQEQ.js";import"./chunk-QXVITQOV.js";import"./chunk-I4TM4AGJ.js";import"./chunk-F6YL5NFN.js";import"./chunk-ATUZQYGW.js";import"./chunk-XCT4UKLK.js";import"./chunk-4XZ7RFFX.js";import"./chunk-YHTLTPEH.js";import"./chunk-LFSX3TZJ.js";import"./chunk-BTDKTIE6.js";import"./chunk-5CTM6JVQ.js";import"./chunk-W2HKCDVZ.js";import"./chunk-MPGDQZRI.js";import"./chunk-HOS2FAXH.js";import"./chunk-INJSG5RK.js";import"./chunk-RCWO45CI.js";import"./chunk-ZW5NV4UO.js";export{a as DVZ_MANAGE_DASHBOARDS_TAG,b as defineDvzManageDashboards};
|