@luzmo/analytics-components-kit 1.0.1-alpha.27 → 1.0.1-alpha.29
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/components/{async-directive-DWRUSKKF-CmOVMf6V.js → async-directive-DWRUSKKF-CPf9l5wJ.js} +1 -1
- package/components/{async-directive-DWRUSKKF-D4itZyzc.cjs → async-directive-DWRUSKKF-DWUZeMaj.cjs} +1 -1
- package/components/base-D76d76ww-C6YO3slp.cjs +94 -0
- package/components/base-D76d76ww-M5t7LVBG.js +758 -0
- package/components/{button-base-DSHx7XO8-VB_BBSqq.js → button-base-DSHx7XO8-B_LbLx9g.js} +7 -6
- package/components/{button-base-DSHx7XO8-Cixrr9aG.cjs → button-base-DSHx7XO8-ChNRhetl.cjs} +2 -2
- package/components/{checkbox-mixin-BFGTmw17-C34LMsgu.js → checkbox-mixin-BFGTmw17-C1tjSMaa.js} +2 -2
- package/components/{checkbox-mixin-BFGTmw17-CCjGd0nS.cjs → checkbox-mixin-BFGTmw17-DF2p-vSz.cjs} +4 -4
- package/components/{directive-helpers-nlQRAaQt-3kEWF2GV.cjs → directive-helpers-nlQRAaQt-DTZp2cFt.cjs} +4 -4
- package/components/{directive-helpers-nlQRAaQt-I6T4KZKW.js → directive-helpers-nlQRAaQt-DgSC1Yr2.js} +1 -1
- package/components/display-settings/display-settings.d.ts +3 -3
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +20 -20
- package/components/display-settings-binning/display-settings-binning.d.ts +3 -3
- package/components/display-settings-binning/index.cjs +2 -2
- package/components/display-settings-binning/index.js +21 -21
- package/components/display-settings-datetime/display-settings-datetime.d.ts +3 -3
- package/components/display-settings-datetime/index.cjs +2 -2
- package/components/display-settings-datetime/index.js +23 -23
- package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +3 -3
- package/components/display-settings-grand-totals/index.cjs +2 -2
- package/components/display-settings-grand-totals/index.js +20 -20
- package/components/display-settings-numeric/display-settings-numeric.d.ts +3 -3
- package/components/display-settings-numeric/index.cjs +4 -4
- package/components/display-settings-numeric/index.js +24 -24
- package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +3 -3
- package/components/display-settings-period-over-period/index.cjs +15 -15
- package/components/display-settings-period-over-period/index.js +45 -44
- package/components/draggable-data-item/draggable-data-item.d.ts +3 -3
- package/components/draggable-data-item/index.cjs +4 -4
- package/components/draggable-data-item/index.js +7 -7
- package/components/draggable-data-item-level/draggable-data-item-level.d.ts +3 -3
- package/components/draggable-data-item-level/index.cjs +4 -4
- package/components/draggable-data-item-level/index.js +16 -16
- package/components/droppable-slot/droppable-slot.d.ts +3 -3
- package/components/droppable-slot/index.cjs +2 -2
- package/components/droppable-slot/index.js +16 -16
- package/components/edit-item/edit-item.d.ts +2 -1
- package/components/edit-item/index.cjs +16 -16
- package/components/edit-item/index.js +38 -37
- package/components/edit-option/edit-option.d.ts +1 -1
- package/components/edit-option/helpers/control-markup.d.ts +1 -1
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +2 -2
- package/components/edit-option-action-button-group/index.cjs +2 -2
- package/components/edit-option-action-button-group/index.js +7 -7
- package/components/edit-option-base/edit-option-base.d.ts +3 -3
- package/components/{edit-option-base-CPLI5-oZ.js → edit-option-base-C0zI8SOd.js} +4 -4
- package/components/edit-option-base-D8vs3Bty.cjs +53 -0
- package/components/edit-option-color-picker/index.cjs +26 -26
- package/components/edit-option-color-picker/index.js +35 -34
- package/components/edit-option-multi-language-field/index.cjs +1 -1
- package/components/edit-option-multi-language-field/index.js +4 -4
- package/components/edit-option-number-field/index.cjs +2 -2
- package/components/edit-option-number-field/index.js +4 -4
- package/components/edit-option-picker/index.cjs +2 -2
- package/components/edit-option-picker/index.js +5 -5
- package/components/edit-option-position-picker/index.cjs +2 -2
- package/components/edit-option-position-picker/index.js +4 -4
- package/components/edit-option-positions-number-field/index.cjs +1 -1
- package/components/edit-option-positions-number-field/index.js +6 -6
- package/components/edit-option-radio-button-group/index.cjs +4 -4
- package/components/edit-option-radio-button-group/index.js +5 -5
- package/components/edit-option-slider/index.cjs +3 -3
- package/components/edit-option-slider/index.js +8 -8
- package/components/edit-option-switch/index.cjs +5 -5
- package/components/edit-option-switch/index.js +10 -9
- package/components/edit-option-text-field/index.cjs +2 -2
- package/components/edit-option-text-field/index.js +4 -4
- package/components/focusable-Cu_m_GTh.cjs +42 -0
- package/components/focusable-Dw_pMNQL.js +852 -0
- package/components/focusable-cj2QhwDT-CvevSkDr.cjs +52 -0
- package/components/focusable-cj2QhwDT-DlzfnLn9.js +242 -0
- package/components/{if-defined-BSAr_4u4-4Ys8VE7T.js → if-defined-BSAr_4u4-BCnSpSsA.js} +14 -15
- package/components/{if-defined-BSAr_4u4-gECNwmTC.cjs → if-defined-BSAr_4u4-CIqREoag.cjs} +3 -3
- package/components/{if-defined-8BOch-oC.cjs → if-defined-CF8baNdl.cjs} +2 -2
- package/components/{if-defined-Bv6MRdSW.js → if-defined-DbhS35z5.js} +1 -1
- package/components/{index-Dv1aV79F.cjs → index-9hGc0AF6.cjs} +6 -6
- package/components/{index-OuAMpMdS.js → index-B2LO8M42.js} +10 -11
- package/components/{index-DFt-aKCN.cjs → index-B3417kqb.cjs} +2 -2
- package/components/{index-CDUZyVS8.cjs → index-BIauj-BP.cjs} +3 -3
- package/components/{index-CY1zprJk.cjs → index-BIcAxPGg.cjs} +4 -4
- package/components/{index-CMvCwUvn.cjs → index-BLyfPWMW.cjs} +1 -1
- package/components/{index-CAG4u31N.cjs → index-BW6jffrL.cjs} +8 -8
- package/components/{index-Bsn3jtgt.js → index-BjdUsH9B.js} +10 -11
- package/components/{index-CJtXD_RI.js → index-BnVt-dJY.js} +10 -11
- package/components/{index-BgR4fBCA.cjs → index-Bp6XY9q2.cjs} +3 -3
- package/components/{index-Dk2zOgvd.js → index-C8yP7YJD.js} +6 -7
- package/components/{index-B6Os866t.cjs → index-CAwT4m7K.cjs} +5 -5
- package/components/{index-CdZDTZcN.js → index-CBNsaHFy.js} +6 -7
- package/components/{index-NFKXlEm1.cjs → index-CC53jnJB.cjs} +2 -2
- package/components/{index-BnOOdgQZ.cjs → index-CZUy8SUo.cjs} +4 -4
- package/components/{index-DULisWB3.cjs → index-Cl7wWlXl.cjs} +2 -2
- package/components/{index-CT2P9cSY.cjs → index-Cz9Cvq1K.cjs} +6 -6
- package/components/{index-CX0ynTHR.js → index-D8GVYuJ-.js} +14 -15
- package/components/{index-Brne8JKA.js → index-DQCvi59x.js} +18 -18
- package/components/{index-DW3LXQ5Z.js → index-DelXrrBi.js} +15 -15
- package/components/{index-CTxrSfyd.js → index-Dku2WLRc.js} +5 -6
- package/components/{index-DDm8p09D.js → index-Du8Q4hhF.js} +1 -1
- package/components/{index-Dn7LyFPv.js → index-Dwp251OJ.js} +3 -3
- package/components/{index-Dpt_Qqgy.js → index-KY89MPqI.js} +4 -5
- package/components/{index-E6HaIK_Z.cjs → index-b9OSfNB6.cjs} +7 -7
- package/components/{index-CPdcj1Bo.js → index-fheP_kQJ.js} +3 -3
- package/components/{index-nP-SGD7o.js → index-fzqLW5XZ.js} +6 -7
- package/components/index-hogChFy0.cjs +195 -0
- package/components/{index-DoZEESMk.cjs → index-mB-t2zP2.cjs} +4 -4
- package/components/{index-DOnHTKUs.js → index-zFIy9Mwl.js} +13 -14
- package/components/index.cjs +1 -1
- package/components/index.js +2 -2
- package/components/{luzmo-icons-DxZo8BWX.js → luzmo-icons-CmY3chvZ.js} +1 -1
- package/components/luzmo-icons-lvebt6bp.cjs +31 -0
- package/components/{observe-slot-text-ggb4kKgY-DBVrKDBD.cjs → observe-slot-text-ggb4kKgY-5zLP4Vgh.cjs} +2 -2
- package/components/{observe-slot-text-ggb4kKgY-o5QFWUeA.js → observe-slot-text-ggb4kKgY-tm0SQCaj.js} +3 -3
- package/components/{popover-Bx4ZDHk4-BuzeOeNe.cjs → popover-Bx4ZDHk4-Cw2DKR2x.cjs} +2 -2
- package/components/{popover-Bx4ZDHk4-jZJ0Cd59.js → popover-Bx4ZDHk4-HbUSJ86p.js} +6 -7
- package/components/{query-assigned-nodes-C76XVPWY-DPC6kOmH.js → query-assigned-nodes-C76XVPWY-DON51dMU.js} +1 -1
- package/components/{query-assigned-nodes-C76XVPWY-BcyGjObB.cjs → query-assigned-nodes-C76XVPWY-DzOeAzcN.cjs} +1 -1
- package/components/sized-mixin-Cqlxwicw.cjs +20 -0
- package/components/sized-mixin-DMuOVsw0.js +65 -0
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +28 -28
- package/components/slot-menu/slot-menu.d.ts +3 -3
- package/components/slot-menu-list/index.cjs +2 -2
- package/components/slot-menu-list/index.js +15 -15
- package/components/slot-menu-list/slot-menu-list.d.ts +3 -3
- package/components/{state-BFA93Sye.cjs → state-QgHgNZLe.cjs} +2 -2
- package/components/{state-Joaryhrg.js → state-e2n-fyrr.js} +1 -1
- package/components/{language-resolution-8yZa5r_P-CYK1IIrs.cjs → streaming-listener-CCalHg57-2AtO4Ho2.cjs} +3 -3
- package/components/{language-resolution-8yZa5r_P-Chn3SFme.js → streaming-listener-CCalHg57-CQgWstyf.js} +58 -58
- package/components/{task-B8yMzxui.cjs → task-fQFUVV8e.cjs} +2 -2
- package/components/{task-Cr9aRIbV.js → task-gE27tBDv.js} +1 -1
- package/components/{text-field-BTnBJoP9-jo797Hka.js → text-field-BTnBJoP9-BuahhcXU.js} +6 -6
- package/components/{text-field-BTnBJoP9-Cwm3XQ88.cjs → text-field-BTnBJoP9-CDMhK3d1.cjs} +2 -2
- package/custom-elements.json +52 -288
- package/package.json +2 -2
- package/utils/base/base.d.ts +16 -0
- package/utils/base/focus-visible.d.ts +29 -0
- package/utils/base/focusable.d.ts +58 -0
- package/utils/base/index.d.ts +4 -0
- package/utils/base/sized-mixin.d.ts +17 -0
- package/components/base-D76d76ww-BiajPmzU.cjs +0 -40
- package/components/base-D76d76ww-gf0ESLsU.js +0 -45
- package/components/edit-option-base-ChZvMFLr.cjs +0 -53
- package/components/filter-data-item-picker/filter-data-item-picker.d.ts +0 -80
- package/components/filter-data-item-picker/index.d.ts +0 -7
- package/components/filter-expression-picker/filter-expression-picker.d.ts +0 -60
- package/components/filter-expression-picker/index.d.ts +0 -7
- package/components/filter-group/filter-group.d.ts +0 -39
- package/components/filter-group/index.d.ts +0 -7
- package/components/filter-item/filter-item.d.ts +0 -64
- package/components/filter-item/index.d.ts +0 -7
- package/components/filter-item/stories/dataset-data-items.const.d.ts +0 -15
- package/components/filter-parameter-picker/filter-parameter-picker.d.ts +0 -26
- package/components/filter-parameter-picker/index.d.ts +0 -7
- package/components/filter-value-picker/filter-value-picker.d.ts +0 -65
- package/components/filter-value-picker/index.d.ts +0 -7
- package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +0 -43
- package/components/filter-value-picker-datetime/index.d.ts +0 -7
- package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +0 -71
- package/components/filter-value-picker-hierarchy/index.d.ts +0 -7
- package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +0 -72
- package/components/filter-value-picker-numeric/index.d.ts +0 -7
- package/components/index-eEpFkbP8.cjs +0 -195
- package/components/luzmo-icons-XsFsTAl3.cjs +0 -31
- package/components/property-0L4eB11h.cjs +0 -112
- package/components/property-B2F7x7Cz.js +0 -1481
- package/components/sized-mixin-BxMraZLS-B_y0PzR3.js +0 -82
- package/components/sized-mixin-BxMraZLS-DEFWqo8f.cjs +0 -36
- package/utils/data-broker/index.d.ts +0 -173
- package/utils/data-item-types/calculate-data-item-icon.d.ts +0 -3
- package/utils/expressions/index.d.ts +0 -13
@@ -1,82 +0,0 @@
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
2
|
-
*
|
3
|
-
* Copyright © 2025 Luzmo
|
4
|
-
* All rights reserved.
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
7
|
-
* This license allows users with a current active Luzmo account
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
11
|
-
*
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
-
* SOFTWARE.
|
19
|
-
* */
|
20
|
-
import { R as a } from "./property-B2F7x7Cz.js";
|
21
|
-
/*! * Lucero - The design system for Luzmo.
|
22
|
-
*
|
23
|
-
* Copyright © 2025 Luzmo
|
24
|
-
* All rights reserved.
|
25
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
26
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
27
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
28
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
29
|
-
*
|
30
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
31
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
32
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
33
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
34
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
35
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
36
|
-
* SOFTWARE.
|
37
|
-
* */
|
38
|
-
var c = Object.defineProperty, h = Object.getOwnPropertyDescriptor, p = (r, i, s, u) => {
|
39
|
-
for (var e = h(i, s), l = r.length - 1, t; l >= 0; l--)
|
40
|
-
(t = r[l]) && (e = t(i, s, e) || e);
|
41
|
-
return e && c(i, s, e), e;
|
42
|
-
};
|
43
|
-
const m = {
|
44
|
-
xxs: "xxs",
|
45
|
-
xs: "xs",
|
46
|
-
s: "s",
|
47
|
-
m: "m",
|
48
|
-
l: "l",
|
49
|
-
xl: "xl",
|
50
|
-
xxl: "xxl"
|
51
|
-
};
|
52
|
-
function f(r, {
|
53
|
-
validSizes: i = ["s", "m", "l", "xl"],
|
54
|
-
noDefaultSize: s,
|
55
|
-
defaultSize: u = "m"
|
56
|
-
} = {}) {
|
57
|
-
class e extends r {
|
58
|
-
constructor() {
|
59
|
-
super(...arguments), this._size = u;
|
60
|
-
}
|
61
|
-
get size() {
|
62
|
-
return this._size || u;
|
63
|
-
}
|
64
|
-
set size(t) {
|
65
|
-
const z = s ? null : u, o = t && t.toLocaleLowerCase(), n = i.includes(o) ? o : z;
|
66
|
-
if (n && this.setAttribute("size", n), this._size === n)
|
67
|
-
return;
|
68
|
-
const x = this._size;
|
69
|
-
this._size = n, this.requestUpdate("size", x);
|
70
|
-
}
|
71
|
-
update(t) {
|
72
|
-
!this.hasAttribute("size") && !s && this.setAttribute("size", this.size), super.update(t);
|
73
|
-
}
|
74
|
-
}
|
75
|
-
return p([
|
76
|
-
a({ type: String })
|
77
|
-
], e.prototype, "size"), e;
|
78
|
-
}
|
79
|
-
export {
|
80
|
-
m as d,
|
81
|
-
f as m
|
82
|
-
};
|
@@ -1,36 +0,0 @@
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
2
|
-
*
|
3
|
-
* Copyright © 2025 Luzmo
|
4
|
-
* All rights reserved.
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
7
|
-
* This license allows users with a current active Luzmo account
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
11
|
-
*
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
-
* SOFTWARE.
|
19
|
-
* */
|
20
|
-
"use strict";const x=require("./property-0L4eB11h.cjs");/*! * Lucero - The design system for Luzmo.
|
21
|
-
*
|
22
|
-
* Copyright © 2025 Luzmo
|
23
|
-
* All rights reserved.
|
24
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
25
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
26
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
27
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
28
|
-
*
|
29
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
30
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
31
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
32
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
33
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
34
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
35
|
-
* SOFTWARE.
|
36
|
-
* */var a=Object.defineProperty,h=Object.getOwnPropertyDescriptor,p=(r,i,s,u)=>{for(var e=h(i,s),n=r.length-1,t;n>=0;n--)(t=r[n])&&(e=t(i,s,e)||e);return e&&a(i,s,e),e};const d={xxs:"xxs",xs:"xs",s:"s",m:"m",l:"l",xl:"xl",xxl:"xxl"};function m(r,{validSizes:i=["s","m","l","xl"],noDefaultSize:s,defaultSize:u="m"}={}){class e extends r{constructor(){super(...arguments),this._size=u}get size(){return this._size||u}set size(t){const o=s?null:u,z=t&&t.toLocaleLowerCase(),l=i.includes(z)?z:o;if(l&&this.setAttribute("size",l),this._size===l)return;const c=this._size;this._size=l,this.requestUpdate("size",c)}update(t){!this.hasAttribute("size")&&!s&&this.setAttribute("size",this.size),super.update(t)}}return p([x.Rt({type:String})],e.prototype,"size"),e}exports.d=d;exports.m=m;
|
@@ -1,173 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Configuration options for the DataBroker
|
3
|
-
*/
|
4
|
-
export interface DataBrokerConfig {
|
5
|
-
apiVersion?: string;
|
6
|
-
apiUrl?: string;
|
7
|
-
authKey?: string;
|
8
|
-
authToken?: string;
|
9
|
-
staleTime?: number;
|
10
|
-
gcTime?: number;
|
11
|
-
retry?: number;
|
12
|
-
retryDelay?: (attempt: number) => number;
|
13
|
-
}
|
14
|
-
/**
|
15
|
-
* Pagination parameters for list requests
|
16
|
-
*/
|
17
|
-
export interface PaginationOptions {
|
18
|
-
offset?: number;
|
19
|
-
limit?: number;
|
20
|
-
}
|
21
|
-
/**
|
22
|
-
* Pagination result metadata
|
23
|
-
*/
|
24
|
-
export interface PaginationResult {
|
25
|
-
offset: number;
|
26
|
-
limit: number;
|
27
|
-
total: number;
|
28
|
-
pages: number;
|
29
|
-
}
|
30
|
-
/**
|
31
|
-
* Dataset query parameters
|
32
|
-
*/
|
33
|
-
export interface DatasetQueryParams {
|
34
|
-
filter?: Record<string, any>;
|
35
|
-
sort?: Record<string, 'asc' | 'desc'>;
|
36
|
-
page?: number;
|
37
|
-
limit?: number;
|
38
|
-
columns?: string[];
|
39
|
-
}
|
40
|
-
/**
|
41
|
-
* Dataset resource
|
42
|
-
*/
|
43
|
-
export interface Dataset {
|
44
|
-
id: string;
|
45
|
-
name: string;
|
46
|
-
description?: string;
|
47
|
-
createdAt?: string;
|
48
|
-
updatedAt?: string;
|
49
|
-
[key: string]: any;
|
50
|
-
}
|
51
|
-
/**
|
52
|
-
* Dataset column
|
53
|
-
*/
|
54
|
-
export interface Column {
|
55
|
-
id: string;
|
56
|
-
name: string;
|
57
|
-
description?: string;
|
58
|
-
dataType: string;
|
59
|
-
category?: string;
|
60
|
-
hidden?: boolean;
|
61
|
-
[key: string]: any;
|
62
|
-
}
|
63
|
-
/**
|
64
|
-
* Performance metrics
|
65
|
-
*/
|
66
|
-
export interface PerformanceMetrics {
|
67
|
-
validating: number;
|
68
|
-
preparing: number;
|
69
|
-
queuing: number;
|
70
|
-
querying: number;
|
71
|
-
processing: number;
|
72
|
-
rows: number;
|
73
|
-
}
|
74
|
-
/**
|
75
|
-
* DataBroker service for Luzmo API
|
76
|
-
* Provides methods to fetch and manipulate data from Luzmo REST API
|
77
|
-
*/
|
78
|
-
export declare class DataBroker {
|
79
|
-
private apiUrl;
|
80
|
-
private apiVersion;
|
81
|
-
private authKey;
|
82
|
-
private authToken;
|
83
|
-
private queryClient;
|
84
|
-
private static instance;
|
85
|
-
constructor(config?: DataBrokerConfig);
|
86
|
-
/**
|
87
|
-
* Set API configuration
|
88
|
-
* @param config - API configuration
|
89
|
-
*/
|
90
|
-
configure(config?: DataBrokerConfig): void;
|
91
|
-
/**
|
92
|
-
* Initialize network status listeners
|
93
|
-
*/
|
94
|
-
private initNetworkListeners;
|
95
|
-
/**
|
96
|
-
* Get API headers
|
97
|
-
* @param additionalHeaders - Additional headers to include
|
98
|
-
* @returns Headers for API requests
|
99
|
-
*/
|
100
|
-
getHeaders(additionalHeaders?: Record<string, string>): Record<string, string>;
|
101
|
-
/**
|
102
|
-
* Make API request with advanced error handling
|
103
|
-
* Default method is POST and supports an optional JSON body
|
104
|
-
* @param endpoint - API endpoint
|
105
|
-
* @param jsonBody - Optional JSON body to send with request
|
106
|
-
* @param options - Additional fetch options
|
107
|
-
* @returns API response
|
108
|
-
* @throws {Error} If API request fails
|
109
|
-
*/
|
110
|
-
fetchApi<T>(endpoint: string, jsonBody?: Record<string, any> | any[], options?: RequestInit): Promise<T>;
|
111
|
-
/**
|
112
|
-
* Fetch all available datasets with pagination support
|
113
|
-
* @param options - Pagination options
|
114
|
-
* @returns Paginated list of datasets
|
115
|
-
*/
|
116
|
-
fetchDatasets(options?: PaginationOptions): Promise<{
|
117
|
-
data: Dataset[];
|
118
|
-
pagination: PaginationResult;
|
119
|
-
}>;
|
120
|
-
/**
|
121
|
-
* Search datasets by name or description
|
122
|
-
* @param query - Search query
|
123
|
-
* @returns List of matching datasets
|
124
|
-
*/
|
125
|
-
searchDatasets(query: string, options?: PaginationOptions): Promise<Dataset[]>;
|
126
|
-
/**
|
127
|
-
* Fetch a specific dataset by ID
|
128
|
-
* @param datasetId - Dataset ID
|
129
|
-
* @returns Dataset details
|
130
|
-
*/
|
131
|
-
fetchDataset(datasetId: string): Promise<Dataset | null>;
|
132
|
-
/**
|
133
|
-
* Fetch data from a dataset with filtering
|
134
|
-
* @param datasetId - Dataset ID
|
135
|
-
* @param queryParams - Query parameters (filters, sort, etc.)
|
136
|
-
* @returns Dataset data
|
137
|
-
*/
|
138
|
-
fetchData(query: {
|
139
|
-
dimensions?: any[];
|
140
|
-
measures?: any[];
|
141
|
-
where?: any[];
|
142
|
-
order?: any[];
|
143
|
-
limit?: {
|
144
|
-
by: number;
|
145
|
-
offset: number;
|
146
|
-
};
|
147
|
-
options?: any;
|
148
|
-
}): Promise<{
|
149
|
-
data: any[][];
|
150
|
-
performance: PerformanceMetrics;
|
151
|
-
}>;
|
152
|
-
/**
|
153
|
-
* Refresh all queries
|
154
|
-
*/
|
155
|
-
refreshAll(): void;
|
156
|
-
/**
|
157
|
-
* Invalidate cached data for a dataset
|
158
|
-
* @param datasetId - Dataset ID (optional)
|
159
|
-
*/
|
160
|
-
invalidateDatasetData(datasetId?: string): void;
|
161
|
-
/**
|
162
|
-
* Invalidate all cached data
|
163
|
-
*/
|
164
|
-
invalidateAll(): void;
|
165
|
-
/**
|
166
|
-
* Create a singleton instance
|
167
|
-
* @param config - API configuration
|
168
|
-
* @returns Singleton instance
|
169
|
-
*/
|
170
|
-
static getInstance(config?: DataBrokerConfig): DataBroker;
|
171
|
-
}
|
172
|
-
export declare const dataBroker: DataBroker;
|
173
|
-
export default DataBroker;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { ColumnSubtype, ColumnType } from '../types/column.types';
|
2
|
-
export type RichFilterExpression = {
|
3
|
-
key: FilterExpressionKey;
|
4
|
-
name: string;
|
5
|
-
description: string;
|
6
|
-
tiny: string;
|
7
|
-
type: ColumnType[];
|
8
|
-
subtype?: ColumnSubtype[];
|
9
|
-
unit?: number;
|
10
|
-
};
|
11
|
-
export type FilterExpressionKey = '? = ?' | '? != ?' | '? in ?' | '? not in ?' | '? like ?' | '? not like ?' | '? starts with ?' | '? not starts with ?' | '? ends with ?' | '? not ends with ?' | '? < ?' | '? <= ?' | '? > ?' | '? >= ?' | '? between ?' | 'last_now' | 'last_available' | 'last_completed' | 'next_now' | 'next_full' | 'WTD' | 'MTD' | 'QTD' | 'YTD' | '? is null' | '? is not null';
|
12
|
-
export declare const filterExpressionsConfigurations: () => RichFilterExpression[];
|
13
|
-
export declare const getValidExpressions: (type?: ColumnType, subtype?: ColumnSubtype, isFormula?: boolean) => RichFilterExpression[];
|