@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.
Files changed (171) hide show
  1. package/components/{async-directive-DWRUSKKF-CmOVMf6V.js → async-directive-DWRUSKKF-CPf9l5wJ.js} +1 -1
  2. package/components/{async-directive-DWRUSKKF-D4itZyzc.cjs → async-directive-DWRUSKKF-DWUZeMaj.cjs} +1 -1
  3. package/components/base-D76d76ww-C6YO3slp.cjs +94 -0
  4. package/components/base-D76d76ww-M5t7LVBG.js +758 -0
  5. package/components/{button-base-DSHx7XO8-VB_BBSqq.js → button-base-DSHx7XO8-B_LbLx9g.js} +7 -6
  6. package/components/{button-base-DSHx7XO8-Cixrr9aG.cjs → button-base-DSHx7XO8-ChNRhetl.cjs} +2 -2
  7. package/components/{checkbox-mixin-BFGTmw17-C34LMsgu.js → checkbox-mixin-BFGTmw17-C1tjSMaa.js} +2 -2
  8. package/components/{checkbox-mixin-BFGTmw17-CCjGd0nS.cjs → checkbox-mixin-BFGTmw17-DF2p-vSz.cjs} +4 -4
  9. package/components/{directive-helpers-nlQRAaQt-3kEWF2GV.cjs → directive-helpers-nlQRAaQt-DTZp2cFt.cjs} +4 -4
  10. package/components/{directive-helpers-nlQRAaQt-I6T4KZKW.js → directive-helpers-nlQRAaQt-DgSC1Yr2.js} +1 -1
  11. package/components/display-settings/display-settings.d.ts +3 -3
  12. package/components/display-settings/index.cjs +1 -1
  13. package/components/display-settings/index.js +20 -20
  14. package/components/display-settings-binning/display-settings-binning.d.ts +3 -3
  15. package/components/display-settings-binning/index.cjs +2 -2
  16. package/components/display-settings-binning/index.js +21 -21
  17. package/components/display-settings-datetime/display-settings-datetime.d.ts +3 -3
  18. package/components/display-settings-datetime/index.cjs +2 -2
  19. package/components/display-settings-datetime/index.js +23 -23
  20. package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +3 -3
  21. package/components/display-settings-grand-totals/index.cjs +2 -2
  22. package/components/display-settings-grand-totals/index.js +20 -20
  23. package/components/display-settings-numeric/display-settings-numeric.d.ts +3 -3
  24. package/components/display-settings-numeric/index.cjs +4 -4
  25. package/components/display-settings-numeric/index.js +24 -24
  26. package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +3 -3
  27. package/components/display-settings-period-over-period/index.cjs +15 -15
  28. package/components/display-settings-period-over-period/index.js +45 -44
  29. package/components/draggable-data-item/draggable-data-item.d.ts +3 -3
  30. package/components/draggable-data-item/index.cjs +4 -4
  31. package/components/draggable-data-item/index.js +7 -7
  32. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +3 -3
  33. package/components/draggable-data-item-level/index.cjs +4 -4
  34. package/components/draggable-data-item-level/index.js +16 -16
  35. package/components/droppable-slot/droppable-slot.d.ts +3 -3
  36. package/components/droppable-slot/index.cjs +2 -2
  37. package/components/droppable-slot/index.js +16 -16
  38. package/components/edit-item/edit-item.d.ts +2 -1
  39. package/components/edit-item/index.cjs +16 -16
  40. package/components/edit-item/index.js +38 -37
  41. package/components/edit-option/edit-option.d.ts +1 -1
  42. package/components/edit-option/helpers/control-markup.d.ts +1 -1
  43. package/components/edit-option/index.cjs +1 -1
  44. package/components/edit-option/index.js +2 -2
  45. package/components/edit-option-action-button-group/index.cjs +2 -2
  46. package/components/edit-option-action-button-group/index.js +7 -7
  47. package/components/edit-option-base/edit-option-base.d.ts +3 -3
  48. package/components/{edit-option-base-CPLI5-oZ.js → edit-option-base-C0zI8SOd.js} +4 -4
  49. package/components/edit-option-base-D8vs3Bty.cjs +53 -0
  50. package/components/edit-option-color-picker/index.cjs +26 -26
  51. package/components/edit-option-color-picker/index.js +35 -34
  52. package/components/edit-option-multi-language-field/index.cjs +1 -1
  53. package/components/edit-option-multi-language-field/index.js +4 -4
  54. package/components/edit-option-number-field/index.cjs +2 -2
  55. package/components/edit-option-number-field/index.js +4 -4
  56. package/components/edit-option-picker/index.cjs +2 -2
  57. package/components/edit-option-picker/index.js +5 -5
  58. package/components/edit-option-position-picker/index.cjs +2 -2
  59. package/components/edit-option-position-picker/index.js +4 -4
  60. package/components/edit-option-positions-number-field/index.cjs +1 -1
  61. package/components/edit-option-positions-number-field/index.js +6 -6
  62. package/components/edit-option-radio-button-group/index.cjs +4 -4
  63. package/components/edit-option-radio-button-group/index.js +5 -5
  64. package/components/edit-option-slider/index.cjs +3 -3
  65. package/components/edit-option-slider/index.js +8 -8
  66. package/components/edit-option-switch/index.cjs +5 -5
  67. package/components/edit-option-switch/index.js +10 -9
  68. package/components/edit-option-text-field/index.cjs +2 -2
  69. package/components/edit-option-text-field/index.js +4 -4
  70. package/components/focusable-Cu_m_GTh.cjs +42 -0
  71. package/components/focusable-Dw_pMNQL.js +852 -0
  72. package/components/focusable-cj2QhwDT-CvevSkDr.cjs +52 -0
  73. package/components/focusable-cj2QhwDT-DlzfnLn9.js +242 -0
  74. package/components/{if-defined-BSAr_4u4-4Ys8VE7T.js → if-defined-BSAr_4u4-BCnSpSsA.js} +14 -15
  75. package/components/{if-defined-BSAr_4u4-gECNwmTC.cjs → if-defined-BSAr_4u4-CIqREoag.cjs} +3 -3
  76. package/components/{if-defined-8BOch-oC.cjs → if-defined-CF8baNdl.cjs} +2 -2
  77. package/components/{if-defined-Bv6MRdSW.js → if-defined-DbhS35z5.js} +1 -1
  78. package/components/{index-Dv1aV79F.cjs → index-9hGc0AF6.cjs} +6 -6
  79. package/components/{index-OuAMpMdS.js → index-B2LO8M42.js} +10 -11
  80. package/components/{index-DFt-aKCN.cjs → index-B3417kqb.cjs} +2 -2
  81. package/components/{index-CDUZyVS8.cjs → index-BIauj-BP.cjs} +3 -3
  82. package/components/{index-CY1zprJk.cjs → index-BIcAxPGg.cjs} +4 -4
  83. package/components/{index-CMvCwUvn.cjs → index-BLyfPWMW.cjs} +1 -1
  84. package/components/{index-CAG4u31N.cjs → index-BW6jffrL.cjs} +8 -8
  85. package/components/{index-Bsn3jtgt.js → index-BjdUsH9B.js} +10 -11
  86. package/components/{index-CJtXD_RI.js → index-BnVt-dJY.js} +10 -11
  87. package/components/{index-BgR4fBCA.cjs → index-Bp6XY9q2.cjs} +3 -3
  88. package/components/{index-Dk2zOgvd.js → index-C8yP7YJD.js} +6 -7
  89. package/components/{index-B6Os866t.cjs → index-CAwT4m7K.cjs} +5 -5
  90. package/components/{index-CdZDTZcN.js → index-CBNsaHFy.js} +6 -7
  91. package/components/{index-NFKXlEm1.cjs → index-CC53jnJB.cjs} +2 -2
  92. package/components/{index-BnOOdgQZ.cjs → index-CZUy8SUo.cjs} +4 -4
  93. package/components/{index-DULisWB3.cjs → index-Cl7wWlXl.cjs} +2 -2
  94. package/components/{index-CT2P9cSY.cjs → index-Cz9Cvq1K.cjs} +6 -6
  95. package/components/{index-CX0ynTHR.js → index-D8GVYuJ-.js} +14 -15
  96. package/components/{index-Brne8JKA.js → index-DQCvi59x.js} +18 -18
  97. package/components/{index-DW3LXQ5Z.js → index-DelXrrBi.js} +15 -15
  98. package/components/{index-CTxrSfyd.js → index-Dku2WLRc.js} +5 -6
  99. package/components/{index-DDm8p09D.js → index-Du8Q4hhF.js} +1 -1
  100. package/components/{index-Dn7LyFPv.js → index-Dwp251OJ.js} +3 -3
  101. package/components/{index-Dpt_Qqgy.js → index-KY89MPqI.js} +4 -5
  102. package/components/{index-E6HaIK_Z.cjs → index-b9OSfNB6.cjs} +7 -7
  103. package/components/{index-CPdcj1Bo.js → index-fheP_kQJ.js} +3 -3
  104. package/components/{index-nP-SGD7o.js → index-fzqLW5XZ.js} +6 -7
  105. package/components/index-hogChFy0.cjs +195 -0
  106. package/components/{index-DoZEESMk.cjs → index-mB-t2zP2.cjs} +4 -4
  107. package/components/{index-DOnHTKUs.js → index-zFIy9Mwl.js} +13 -14
  108. package/components/index.cjs +1 -1
  109. package/components/index.js +2 -2
  110. package/components/{luzmo-icons-DxZo8BWX.js → luzmo-icons-CmY3chvZ.js} +1 -1
  111. package/components/luzmo-icons-lvebt6bp.cjs +31 -0
  112. package/components/{observe-slot-text-ggb4kKgY-DBVrKDBD.cjs → observe-slot-text-ggb4kKgY-5zLP4Vgh.cjs} +2 -2
  113. package/components/{observe-slot-text-ggb4kKgY-o5QFWUeA.js → observe-slot-text-ggb4kKgY-tm0SQCaj.js} +3 -3
  114. package/components/{popover-Bx4ZDHk4-BuzeOeNe.cjs → popover-Bx4ZDHk4-Cw2DKR2x.cjs} +2 -2
  115. package/components/{popover-Bx4ZDHk4-jZJ0Cd59.js → popover-Bx4ZDHk4-HbUSJ86p.js} +6 -7
  116. package/components/{query-assigned-nodes-C76XVPWY-DPC6kOmH.js → query-assigned-nodes-C76XVPWY-DON51dMU.js} +1 -1
  117. package/components/{query-assigned-nodes-C76XVPWY-BcyGjObB.cjs → query-assigned-nodes-C76XVPWY-DzOeAzcN.cjs} +1 -1
  118. package/components/sized-mixin-Cqlxwicw.cjs +20 -0
  119. package/components/sized-mixin-DMuOVsw0.js +65 -0
  120. package/components/slot-menu/index.cjs +1 -1
  121. package/components/slot-menu/index.js +28 -28
  122. package/components/slot-menu/slot-menu.d.ts +3 -3
  123. package/components/slot-menu-list/index.cjs +2 -2
  124. package/components/slot-menu-list/index.js +15 -15
  125. package/components/slot-menu-list/slot-menu-list.d.ts +3 -3
  126. package/components/{state-BFA93Sye.cjs → state-QgHgNZLe.cjs} +2 -2
  127. package/components/{state-Joaryhrg.js → state-e2n-fyrr.js} +1 -1
  128. package/components/{language-resolution-8yZa5r_P-CYK1IIrs.cjs → streaming-listener-CCalHg57-2AtO4Ho2.cjs} +3 -3
  129. package/components/{language-resolution-8yZa5r_P-Chn3SFme.js → streaming-listener-CCalHg57-CQgWstyf.js} +58 -58
  130. package/components/{task-B8yMzxui.cjs → task-fQFUVV8e.cjs} +2 -2
  131. package/components/{task-Cr9aRIbV.js → task-gE27tBDv.js} +1 -1
  132. package/components/{text-field-BTnBJoP9-jo797Hka.js → text-field-BTnBJoP9-BuahhcXU.js} +6 -6
  133. package/components/{text-field-BTnBJoP9-Cwm3XQ88.cjs → text-field-BTnBJoP9-CDMhK3d1.cjs} +2 -2
  134. package/custom-elements.json +52 -288
  135. package/package.json +2 -2
  136. package/utils/base/base.d.ts +16 -0
  137. package/utils/base/focus-visible.d.ts +29 -0
  138. package/utils/base/focusable.d.ts +58 -0
  139. package/utils/base/index.d.ts +4 -0
  140. package/utils/base/sized-mixin.d.ts +17 -0
  141. package/components/base-D76d76ww-BiajPmzU.cjs +0 -40
  142. package/components/base-D76d76ww-gf0ESLsU.js +0 -45
  143. package/components/edit-option-base-ChZvMFLr.cjs +0 -53
  144. package/components/filter-data-item-picker/filter-data-item-picker.d.ts +0 -80
  145. package/components/filter-data-item-picker/index.d.ts +0 -7
  146. package/components/filter-expression-picker/filter-expression-picker.d.ts +0 -60
  147. package/components/filter-expression-picker/index.d.ts +0 -7
  148. package/components/filter-group/filter-group.d.ts +0 -39
  149. package/components/filter-group/index.d.ts +0 -7
  150. package/components/filter-item/filter-item.d.ts +0 -64
  151. package/components/filter-item/index.d.ts +0 -7
  152. package/components/filter-item/stories/dataset-data-items.const.d.ts +0 -15
  153. package/components/filter-parameter-picker/filter-parameter-picker.d.ts +0 -26
  154. package/components/filter-parameter-picker/index.d.ts +0 -7
  155. package/components/filter-value-picker/filter-value-picker.d.ts +0 -65
  156. package/components/filter-value-picker/index.d.ts +0 -7
  157. package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +0 -43
  158. package/components/filter-value-picker-datetime/index.d.ts +0 -7
  159. package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +0 -71
  160. package/components/filter-value-picker-hierarchy/index.d.ts +0 -7
  161. package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +0 -72
  162. package/components/filter-value-picker-numeric/index.d.ts +0 -7
  163. package/components/index-eEpFkbP8.cjs +0 -195
  164. package/components/luzmo-icons-XsFsTAl3.cjs +0 -31
  165. package/components/property-0L4eB11h.cjs +0 -112
  166. package/components/property-B2F7x7Cz.js +0 -1481
  167. package/components/sized-mixin-BxMraZLS-B_y0PzR3.js +0 -82
  168. package/components/sized-mixin-BxMraZLS-DEFWqo8f.cjs +0 -36
  169. package/utils/data-broker/index.d.ts +0 -173
  170. package/utils/data-item-types/calculate-data-item-icon.d.ts +0 -3
  171. 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,3 +0,0 @@
1
- import { IconDefinition } from '@luzmo/icons';
2
- import { ElementSize } from '@luzmo/lucero';
3
- export declare const calculateDataItemIcon: (data: any, size?: ElementSize) => IconDefinition;
@@ -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[];