@luzmo/analytics-components-kit 1.0.1-alpha.47 → 1.0.1-alpha.49
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/{bar-chart-options.config-BdbbHUJZ.js → bar-chart-options.config-D1mb5TDl.js} +1 -0
- package/components/{bar-chart-options.config-C9XGEujs.cjs → bar-chart-options.config-DcxEkOT5.cjs} +1 -1
- package/components/{bar-chart-options.de-DwTn_qfu.js → bar-chart-options.de-BQ4qGaQc.js} +1 -0
- package/components/{bar-chart-options.de-BGzu5Zgd.cjs → bar-chart-options.de-Dr5zKz8Q.cjs} +1 -1
- package/components/{column-chart-options.en-D1UfGsS3.cjs → bar-chart-options.en-DdQ2PYrw.cjs} +1 -1
- package/components/{bar-chart-options.en-Crc8tYUJ.js → bar-chart-options.en-LjG6f4hw.js} +1 -0
- package/components/{bar-chart-options.es-ByT_D06p.js → bar-chart-options.es-BfIKCPf-.js} +1 -0
- package/components/{bar-chart-options.es-B2UWafXc.cjs → bar-chart-options.es-DgYVxn9U.cjs} +1 -1
- package/components/{bar-chart-options.fr-BwiGRlQf.js → bar-chart-options.fr-Cg1lQV2y.js} +1 -0
- package/components/{bar-chart-options.fr-CP7DTrlk.cjs → bar-chart-options.fr-rteFm93C.cjs} +1 -1
- package/components/{column-chart-options.nl-3wAj9uWY.cjs → bar-chart-options.nl--gwlkpc0.cjs} +1 -1
- package/components/{bar-chart-options.nl-DzXnHdwX.js → bar-chart-options.nl-CB2W4rzf.js} +1 -0
- package/components/box-plot-options.config-SrrbDEYW.cjs +20 -0
- package/components/{box-plot-options.config-vlz5qeNq.js → box-plot-options.config-xu_i6ms7.js} +119 -44
- package/components/{bullet-chart-options.config-Bsw7N7Wl.js → bullet-chart-options.config-CDPpX1yc.js} +11 -0
- package/components/{button-base-DbkDzb71-CY6MJGqE.cjs → button-base-DbkDzb71-D0Ni0xn1.cjs} +1 -1
- package/components/{button-base-DbkDzb71-R8oqSqlY.js → button-base-DbkDzb71-Dh2Out91.js} +1 -1
- package/components/{calculate-data-item-icon-DlfbBvFN.cjs → calculate-data-item-icon-Dn-9Kd0U.cjs} +1 -1
- package/components/{calculate-data-item-icon-DKjZwr-x.js → calculate-data-item-icon-Dpvf1aLI.js} +51 -51
- package/components/choropleth-map-options.config-B_W9-rhe.js +381 -0
- package/components/choropleth-map-options.config-ZW8yoZH2.cjs +20 -0
- package/components/{choropleth-map-options.de-B_Agdr4T.cjs → choropleth-map-options.de-C4ko9lE4.cjs} +1 -1
- package/components/{choropleth-map-options.de-BSt-L5Vh.js → choropleth-map-options.de-CIls11eI.js} +1 -1
- package/components/{choropleth-map-options.en-Cy7WcWLG.js → choropleth-map-options.en-C7cPpmnS.js} +1 -1
- package/components/{choropleth-map-options.en-DJHAy6ek.cjs → choropleth-map-options.en-DVWBmXFe.cjs} +1 -1
- package/components/{choropleth-map-options.es-BnR-9vJv.js → choropleth-map-options.es-gQPy8Q0q.js} +1 -1
- package/components/{choropleth-map-options.es-Dr07odJo.cjs → choropleth-map-options.es-v5dYm1W3.cjs} +1 -1
- package/components/{choropleth-map-options.fr-CR5NMRR3.cjs → choropleth-map-options.fr-Bpk_J4Gw.cjs} +1 -1
- package/components/{choropleth-map-options.fr-BlwLS1Wy.js → choropleth-map-options.fr-YsTTCv_p.js} +1 -1
- package/components/{choropleth-map-options.nl-D70fr4Hl.js → choropleth-map-options.nl-CnEI0pYJ.js} +1 -1
- package/components/{choropleth-map-options.nl-BITK3ddz.cjs → choropleth-map-options.nl-CyDZDpyE.cjs} +1 -1
- package/components/{circular-gauge-options.config-Kd_WK_w-.js → circular-gauge-options.config-DAIjz4Rl.js} +59 -13
- package/components/circular-gauge-options.config-msZ4mfpN.cjs +20 -0
- package/components/{circular-gauge-options.de-BO3S8GCr.js → circular-gauge-options.de-BMzGTpZD.js} +3 -0
- package/components/{circular-gauge-options.de-BZfrQqs3.cjs → circular-gauge-options.de-CzEREduR.cjs} +1 -1
- package/components/{circular-gauge-options.en-CB-jZtE6.cjs → circular-gauge-options.en--hMYjiKb.cjs} +1 -1
- package/components/{circular-gauge-options.en-Cyhhijwg.js → circular-gauge-options.en-C6U5peDD.js} +3 -0
- package/components/{circular-gauge-options.es-DJ7ru4Wf.js → circular-gauge-options.es-Kajxp0wO.js} +5 -2
- package/components/{circular-gauge-options.es-DuQPHjcG.cjs → circular-gauge-options.es-bS5N1QyR.cjs} +1 -1
- package/components/{circular-gauge-options.fr-CFMa8H8K.cjs → circular-gauge-options.fr-VgkkhIDb.cjs} +1 -1
- package/components/{circular-gauge-options.fr-BVWliP7i.js → circular-gauge-options.fr-l5cqWrSS.js} +3 -0
- package/components/{circular-gauge-options.nl-BB_jgj5k.cjs → circular-gauge-options.nl-B-E_GXJl.cjs} +1 -1
- package/components/{circular-gauge-options.nl-DGpV7Riu.js → circular-gauge-options.nl-CAx8oTMs.js} +3 -0
- package/components/color-B6LaL8qz.cjs +20 -0
- package/components/color-DuJ4-73S.js +2867 -0
- package/components/color-palettes-BqH2Fv19.js +1852 -0
- package/components/color-palettes-DhNHcib8.cjs +20 -0
- package/components/color-range-utils-Bvo9sm5A.js +68 -0
- package/components/color-range-utils-C5yXW7ZC.cjs +20 -0
- package/components/{column-chart-options.config-BqSQ1Sl9.js → column-chart-options.config-B5SjBVdy.js} +10 -9
- package/components/{column-chart-options.config-Bi0RAzK-.cjs → column-chart-options.config-BjDvA7i9.cjs} +1 -1
- package/components/{column-chart-options.de-pgdcIHqk.cjs → column-chart-options.de-BU__cJy3.cjs} +1 -1
- package/components/{column-chart-options.de-VQVdi8aP.js → column-chart-options.de-BkkWD9rB.js} +1 -0
- package/components/{bar-chart-options.en-D1UfGsS3.cjs → column-chart-options.en-DdQ2PYrw.cjs} +1 -1
- package/components/{column-chart-options.en-Crc8tYUJ.js → column-chart-options.en-LjG6f4hw.js} +1 -0
- package/components/{column-chart-options.es-CT9ZtjV_.js → column-chart-options.es-BgOc-gTh.js} +1 -0
- package/components/{column-chart-options.es-CAAXJv_2.cjs → column-chart-options.es-CkaTU6qn.cjs} +1 -1
- package/components/{column-chart-options.fr-BwiGRlQf.js → column-chart-options.fr-Cg1lQV2y.js} +1 -0
- package/components/{column-chart-options.fr-CP7DTrlk.cjs → column-chart-options.fr-rteFm93C.cjs} +1 -1
- package/components/{bar-chart-options.nl-DZe2pKRa.cjs → column-chart-options.nl-Bhe6rcUo.cjs} +1 -1
- package/components/{column-chart-options.nl-DB2dcotu.js → column-chart-options.nl-CAeBYwQC.js} +1 -0
- package/components/{conditional-number-options.config-BzzAnCOB.js → conditional-number-options.config-BCEpSK9J.js} +68 -12
- package/components/conditional-number-options.config-DgzUo0xi.cjs +20 -0
- package/components/{conditional-number-options.de-BJcjBZY1.js → conditional-number-options.de-DbpKd1bd.js} +2 -2
- package/components/{conditional-number-options.de-CFnufi0r.cjs → conditional-number-options.de-R9Mtj45x.cjs} +1 -1
- package/components/{conditional-number-options.en-Wd-0YtdE.cjs → conditional-number-options.en-C-nOJ85m.cjs} +1 -1
- package/components/{conditional-number-options.en-WSrIzRGJ.js → conditional-number-options.en-DZH6utHH.js} +2 -2
- package/components/{conditional-number-options.es-BTDTe5SF.cjs → conditional-number-options.es-C41csR3J.cjs} +1 -1
- package/components/{conditional-number-options.es-BKqT0zog.js → conditional-number-options.es-_oKhivId.js} +2 -2
- package/components/{conditional-number-options.fr-D2r7Azy8.js → conditional-number-options.fr-BSSywulP.js} +2 -2
- package/components/{conditional-number-options.fr-CZ-9jzPm.cjs → conditional-number-options.fr-DgaXesnu.cjs} +1 -1
- package/components/{conditional-number-options.nl-pkRI1tLZ.js → conditional-number-options.nl-BuKNqxqm.js} +2 -2
- package/components/{conditional-number-options.nl-CfRYL6o1.cjs → conditional-number-options.nl-CJ5teRtT.cjs} +1 -1
- package/components/{date-filter-options.en-DqY3gH_W.cjs → date-filter-options.en-B7MjV7xe.cjs} +1 -1
- package/components/{date-filter-options.en-DgbZmD5M.js → date-filter-options.en-C0AmRz6f.js} +2 -1
- package/components/{date-filter-options.es-CQeWi9cD.cjs → date-filter-options.es-C__wCKac.cjs} +1 -1
- package/components/{date-filter-options.es-BI-h1lD-.js → date-filter-options.es-bN790adr.js} +4 -3
- package/components/{date-filter-options.fr-D22GM6_c.cjs → date-filter-options.fr-CFqwPRzc.cjs} +1 -1
- package/components/{date-filter-options.fr-DXLKLmhl.js → date-filter-options.fr-CNKTJNWh.js} +2 -1
- package/components/{date-filter-options.nl-CqZmwOux.cjs → date-filter-options.nl-CHOlmw93.cjs} +1 -1
- package/components/{date-filter-options.nl-DXgD8Ga_.js → date-filter-options.nl-ajUXG8Z4.js} +2 -1
- package/components/{de-eIqMhTVC.cjs → de-Cxe7xkT4.cjs} +1 -1
- package/components/{de-BbcctJsI.js → de-ZPzjN2kc.js} +0 -1
- package/components/directive-BOOaQO_r.cjs +24 -0
- package/components/directive-CF_9GVrT.js +46 -0
- package/components/display-settings/display-settings.d.ts +2 -2
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +2 -2
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +10 -10
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +13 -13
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +10 -10
- package/components/display-settings-numeric/display-settings-numeric.d.ts +3 -1
- package/components/display-settings-numeric/index.cjs +61 -40
- package/components/display-settings-numeric/index.js +224 -183
- package/components/display-settings-period-over-period/index.cjs +1 -1
- package/components/display-settings-period-over-period/index.js +10 -10
- package/components/draggable-data-item/draggable-data-item.d.ts +1 -0
- package/components/draggable-data-item/index.cjs +8 -5
- package/components/draggable-data-item/index.js +44 -38
- package/components/draggable-data-item-level/draggable-data-item-level.d.ts +4 -0
- package/components/draggable-data-item-level/index.cjs +10 -10
- package/components/draggable-data-item-level/index.js +101 -76
- package/components/droppable-slot/droppable-slot.d.ts +29 -9
- package/components/droppable-slot/index.cjs +25 -71
- package/components/droppable-slot/index.js +274 -623
- package/components/edit-item/index.cjs +2 -2
- package/components/edit-item/index.js +72 -72
- package/components/edit-option/helpers/control-templates/color-palette-picker-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/color-range-template.d.ts +2 -0
- package/components/edit-option/helpers/get-enum-values.d.ts +1 -0
- 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 +1 -1
- package/components/edit-option-action-button-group/index.js +6 -6
- package/components/edit-option-base/edit-option-base.d.ts +1 -0
- package/components/{edit-option-base-CbpBi6I7.js → edit-option-base-CG0JcbX9.js} +13 -10
- package/components/{edit-option-base-Db3JjWMk.cjs → edit-option-base-a2yoNqdf.cjs} +3 -3
- package/components/edit-option-color-palette-picker/edit-option-color-palette-picker.d.ts +42 -0
- package/components/edit-option-color-palette-picker/index.cjs +79 -0
- package/components/edit-option-color-palette-picker/index.d.ts +7 -0
- package/components/edit-option-color-palette-picker/index.js +405 -0
- package/components/edit-option-color-picker/edit-option-color-picker.d.ts +5 -0
- package/components/edit-option-color-picker/index.cjs +2 -424
- package/components/edit-option-color-picker/index.js +49 -5653
- package/components/edit-option-color-range/edit-option-color-range.d.ts +99 -0
- package/components/edit-option-color-range/index.cjs +85 -0
- package/components/edit-option-color-range/index.d.ts +7 -0
- package/components/edit-option-color-range/index.js +261 -0
- package/components/edit-option-multi-language-field/index.cjs +1 -1
- package/components/edit-option-multi-language-field/index.js +3 -3
- package/components/edit-option-number-field/edit-option-number-field.d.ts +2 -0
- package/components/edit-option-number-field/index.cjs +7 -3
- package/components/edit-option-number-field/index.js +30 -19
- package/components/edit-option-picker/index.cjs +1 -1
- package/components/edit-option-picker/index.js +5 -5
- package/components/edit-option-position-picker/index.cjs +1 -1
- package/components/edit-option-position-picker/index.js +3 -3
- 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 +1 -1
- package/components/edit-option-radio-button-group/index.js +5 -5
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +3 -3
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +3 -3
- package/components/edit-option-text-field/index.cjs +1 -1
- package/components/edit-option-text-field/index.js +6 -6
- package/components/{es-tWaYVbsQ.cjs → es-4dEouIgb.cjs} +1 -1
- package/components/{es-ByWFTJ0s.js → es-C0JGlz18.js} +0 -1
- package/components/extrapolate-color-0j_AeYkz.cjs +20 -0
- package/components/extrapolate-color-CC9CURf6.js +33 -0
- package/components/filter-data-item-picker/index.cjs +1 -1
- package/components/filter-data-item-picker/index.js +7 -7
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +2 -2
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +24 -24
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +4 -4
- package/components/filter-value-picker-datetime/index.cjs +1 -1
- package/components/filter-value-picker-datetime/index.js +300 -300
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +7 -7
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +8 -8
- package/components/{focusable-Bhf_beoW.js → focusable-BbymtxWI.js} +1 -1
- package/components/{focusable-B8t8a-WJ.cjs → focusable-DAGGGYyz.cjs} +1 -1
- package/components/{fr-C5b2Wgoz.js → fr-B_-_f-VN.js} +0 -1
- package/components/{fr-2igiTsHU.cjs → fr-Dwulhlbi.cjs} +1 -1
- package/components/grid/index.cjs +44 -48
- package/components/grid/index.js +2213 -5078
- package/components/heat-map-options.config-BQ-Afrbi.cjs +20 -0
- package/components/{heat-map-options.config-BAuSJV3_.js → heat-map-options.config-DQya-lag.js} +92 -13
- package/components/{heat-map-options.de-Cz5Pwwcu.cjs → heat-map-options.de-CCzVMy-R.cjs} +1 -1
- package/components/{heat-map-options.de-6onYsjdI.js → heat-map-options.de-UJbdYtlh.js} +4 -5
- package/components/{heat-map-options.en-DHX1GKcM.cjs → heat-map-options.en-Bg7i7QKn.cjs} +1 -1
- package/components/{heat-map-options.en-mwgrQFkO.js → heat-map-options.en-C0K0NGEE.js} +5 -5
- package/components/{heat-map-options.es-A-j6i3Tz.cjs → heat-map-options.es-BYyHRdIH.cjs} +1 -1
- package/components/{heat-map-options.es-Dd0KsseA.js → heat-map-options.es-DCUCh58R.js} +5 -5
- package/components/{heat-map-options.fr-C3LwETEg.cjs → heat-map-options.fr-CLB-XMRA.cjs} +1 -1
- package/components/{heat-map-options.fr-BkrrUt04.js → heat-map-options.fr-a-_Kw5S_.js} +5 -5
- package/components/{heat-map-options.nl-CXn1y4jH.cjs → heat-map-options.nl-BHrmi96k.cjs} +1 -1
- package/components/{heat-map-options.nl-DME6ILT5.js → heat-map-options.nl-BRGoOun2.js} +5 -5
- package/components/heat-table-options.config-B12JEYnp.cjs +20 -0
- package/components/{heat-table-options.config-DSu_18VG.js → heat-table-options.config-CUsDdgUr.js} +137 -21
- package/components/{heat-table-options.de-BABkUn2Y.js → heat-table-options.de-D6R0zXX0.js} +1 -1
- package/components/{heat-table-options.de-aYfCrdCP.cjs → heat-table-options.de-cnjPxQep.cjs} +1 -1
- package/components/{heat-table-options.en-CIdnDv3K.cjs → heat-table-options.en-Bjqpkm75.cjs} +1 -1
- package/components/{heat-table-options.en-BUBmMDZW.js → heat-table-options.en-Co6IDHlF.js} +1 -1
- package/components/{heat-table-options.es-Dl9D9rD_.js → heat-table-options.es-B3Kb8J1N.js} +1 -1
- package/components/{heat-table-options.es-DaK6qGQC.cjs → heat-table-options.es-IaNf_Ge4.cjs} +1 -1
- package/components/{heat-table-options.fr-BouHFs1P.cjs → heat-table-options.fr-BdZnJYlb.cjs} +1 -1
- package/components/{heat-table-options.fr-DOShw8a1.js → heat-table-options.fr-C51PmgHa.js} +1 -1
- package/components/{heat-table-options.nl-8CXDqKzS.cjs → heat-table-options.nl-DGS7vzoT.cjs} +1 -1
- package/components/{heat-table-options.nl-D6Fn7sgt.js → heat-table-options.nl-DXOd_uE6.js} +1 -1
- package/components/hexbin-map-options.config-DZERRhM8.cjs +20 -0
- package/components/{hexbin-map-options.config-DaaC88d8.js → hexbin-map-options.config-F-7uCqxb.js} +55 -20
- package/components/{hexbin-map-options.de-BuLxwJd2.js → hexbin-map-options.de-D50U2vgf.js} +1 -1
- package/components/{hexbin-map-options.de-DPYaSNHm.cjs → hexbin-map-options.de-DUp41p9I.cjs} +1 -1
- package/components/{hexbin-map-options.en-CEGMU7TX.cjs → hexbin-map-options.en-B10UanAQ.cjs} +1 -1
- package/components/{hexbin-map-options.en-CXV4sbbg.js → hexbin-map-options.en-iDuuqVpi.js} +1 -1
- package/components/{hexbin-map-options.es-urnYaXEk.cjs → hexbin-map-options.es-97IUVMSg.cjs} +1 -1
- package/components/{hexbin-map-options.es-2f7amcb6.js → hexbin-map-options.es-RRMQV0DY.js} +1 -1
- package/components/{hexbin-map-options.fr-DxRtJ3_F.cjs → hexbin-map-options.fr-Bh9Swyi3.cjs} +1 -1
- package/components/{hexbin-map-options.fr-J3g_JcSM.js → hexbin-map-options.fr-CQ7JbE9T.js} +1 -1
- package/components/{hexbin-map-options.nl-BnvrfMKQ.js → hexbin-map-options.nl-BpTRJ36m.js} +1 -1
- package/components/{hexbin-map-options.nl-GZtiTQw6.cjs → hexbin-map-options.nl-BzyMf0JQ.cjs} +1 -1
- package/components/{if-defined-Dg09naf2.js → if-defined-Barg9gGQ.js} +1 -1
- package/components/{if-defined-DjdbEoAa.cjs → if-defined-wiCAR_aA.cjs} +1 -1
- package/components/{index-CNA9joKT.cjs → index-1oIrlkAr.cjs} +21 -21
- package/components/{index-BNCgbOV2.js → index-5Z9GD60H.js} +6 -6
- package/components/{index-CDpuEf8W.js → index-B2ngKWOI.js} +1 -1
- package/components/{index-ChDwMQlU.js → index-BEtf1WaQ.js} +10 -9
- package/components/{index-BHJH1eGn.js → index-BW3AUnEX.js} +1 -1
- package/components/index-BbpsZYZF.cjs +442 -0
- package/components/index-BfzppmHn.cjs +249 -0
- package/components/{index-Bdy8Bz-n.js → index-BssHAgUU.js} +7 -6
- package/components/index-Bt3JTHTC.js +787 -0
- package/components/index-CY_cyFdI.cjs +174 -0
- package/components/{index-EXO-Hsj2.cjs → index-Ck5VRoXN.cjs} +1 -1
- package/components/{index-CnpJUw_z.cjs → index-CnP-Q5Bw.cjs} +1 -1
- package/components/index-DTI4dIyd.js +5624 -0
- package/components/{index-rQxtPaJl.js → index-D_jFGBMs.js} +1 -1
- package/components/{index-D9yzIoGv.js → index-Delpl7qa.js} +368 -306
- package/components/{index-MVmoiSxL.cjs → index-Df-_TbOD.cjs} +1 -1
- package/components/{index-Desl7GJ0.js → index-DsP81c4M.js} +1 -1
- package/components/{index-C2PPSv8E.cjs → index-Dy_5M3M5.cjs} +1 -1
- package/components/{index-CBOAQ3-E.cjs → index-MPM_B4re.cjs} +1 -1
- package/components/{index-DM0JWaVq.js → index-N845QLku.js} +572 -478
- package/components/index-eBsINoH9.cjs +20 -0
- package/components/{index-CHFwXYcm.cjs → index-tXl_aMnZ.cjs} +7 -7
- package/components/index.cjs +1 -1
- package/components/index.js +63 -59
- package/components/{localized-decorator-DNr1P1m0.js → localized-decorator-Bl5gcI6n.js} +1 -1
- package/components/{localized-decorator-SOrjcPab.cjs → localized-decorator-DIXYZ3RL.cjs} +1 -1
- package/components/{luzmo-icons-DnAqAQCX.js → luzmo-icons-CVeTZ59u.js} +14 -14
- package/components/{luzmo-icons-Bvm-_ECi.cjs → luzmo-icons-DonyjSXg.cjs} +1 -1
- package/components/mutation-controller-DH7YOCyj-B6sXpbgh.cjs +40 -0
- package/components/mutation-controller-DH7YOCyj-E7gpCmwh.js +71 -0
- package/components/{nl-B50x7wMn.cjs → nl-DxdBIXDd.cjs} +1 -1
- package/components/{nl-76jn_zMH.js → nl-gdQCG4WV.js} +0 -1
- package/components/{observe-slot-presence-CmVi0zTc-B4M1Mze7.cjs → observe-slot-presence-CmVi0zTc-NPSGFmv-.cjs} +2 -2
- package/components/{observe-slot-presence-CmVi0zTc-DCFuXW7v.js → observe-slot-presence-CmVi0zTc-hhUl4oRa.js} +5 -5
- package/components/observe-slot-text-BPfIQQtz-D4LmMIo0.cjs +66 -0
- package/components/observe-slot-text-BPfIQQtz-DLOwgi-A.js +172 -0
- package/components/{periods.const-CfXsouLz.cjs → periods.const-7sXlqgEo.cjs} +1 -1
- package/components/{periods.const-C89NNRX-.js → periods.const-B7FKokcH.js} +1 -1
- package/components/property-Cu4Q1hS4.cjs +42 -0
- package/components/{property-BFMfZY1k.js → property-DCzt3DR1.js} +277 -277
- package/components/route-map-options.config-CN86T7c0.js +346 -0
- package/components/route-map-options.config-D7NJePTu.cjs +20 -0
- package/components/{route-map-options.de-DrhHqbdy.js → route-map-options.de-DXYmUtv8.js} +20 -0
- package/components/{route-map-options.de-ey7CT_tQ.cjs → route-map-options.de-w5wuIvwf.cjs} +1 -1
- package/components/{route-map-options.en-DAgywIcY.js → route-map-options.en-CYMhTqyE.js} +20 -0
- package/components/{route-map-options.en-CjyQT-Ue.cjs → route-map-options.en-Co0Fbjkz.cjs} +1 -1
- package/components/{route-map-options.es-BR7NuBw0.js → route-map-options.es-BEBPlDvt.js} +20 -0
- package/components/{route-map-options.es-aEyX7m3t.cjs → route-map-options.es-Cjasm-ZQ.cjs} +1 -1
- package/components/{route-map-options.fr-42waILBL.cjs → route-map-options.fr-C1SCfKLH.cjs} +1 -1
- package/components/{route-map-options.fr-C7TkfcdY.js → route-map-options.fr-DEHQekgM.js} +20 -0
- package/components/{route-map-options.nl-X4lAer8J.cjs → route-map-options.nl-CYmB51pE.cjs} +1 -1
- package/components/{route-map-options.nl-Btd3mxx0.js → route-map-options.nl-CwUgb9Zg.js} +20 -0
- package/components/{set-locale-Cam8nRIW.cjs → set-locale-DCPlazsZ.cjs} +1 -1
- package/components/{set-locale-DbEAMqUs.js → set-locale-GI34z_M7.js} +1 -1
- package/components/{sized-mixin-CkdMApAU.js → sized-mixin-BGzkX2g1.js} +1 -1
- package/components/{sized-mixin-C48t6K7U.cjs → sized-mixin-j_7aJM4b.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +1 -1
- package/components/slot-contents-picker/index.js +16 -16
- package/components/slot-menu/index.cjs +27 -22
- package/components/slot-menu/index.js +237 -148
- package/components/slot-menu/slot-menu.d.ts +34 -12
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +5 -5
- package/components/speedometer-chart-options.config-BX9LTQBH.cjs +20 -0
- package/components/speedometer-chart-options.config-SL581yOa.js +265 -0
- package/components/spike-map-options.config-C5KewecZ.js +436 -0
- package/components/spike-map-options.config-DoBFXPmN.cjs +20 -0
- package/components/{spike-map-options.de-BxTSDs6l.js → spike-map-options.de-COZovZ7s.js} +26 -0
- package/components/spike-map-options.de-_47BiyJQ.cjs +20 -0
- package/components/spike-map-options.en-B9InMjtg.cjs +20 -0
- package/components/{spike-map-options.en-C0DCu7ul.js → spike-map-options.en-Dx9h9SIj.js} +26 -0
- package/components/{spike-map-options.es-bTfVypDV.js → spike-map-options.es-CHMMXuMS.js} +26 -0
- package/components/spike-map-options.es-e-sVsx0P.cjs +20 -0
- package/components/{spike-map-options.fr-BKzDjsKP.js → spike-map-options.fr-BcRnMqG8.js} +26 -0
- package/components/spike-map-options.fr-DPpYI3Yd.cjs +20 -0
- package/components/spike-map-options.nl-DOJHgdzZ.cjs +20 -0
- package/components/{spike-map-options.nl-BGPuQRih.js → spike-map-options.nl-DSGG2M38.js} +26 -0
- package/components/{state-CuE7TJCY.cjs → state-fyl3IYMu.cjs} +1 -1
- package/components/{state-BSTa7W6f.js → state-nDsQPund.js} +1 -1
- package/components/{task-CDsB8Kbr.js → task-Bh_X-xIU.js} +1 -1
- package/components/{task-0B-FC3rj.cjs → task-CwmAXlv0.cjs} +1 -1
- package/custom-elements.json +595 -43
- package/index.d.ts +2 -0
- package/item-definitions/bar-chart/i18n/bar-chart-options.de.d.ts +1 -0
- package/item-definitions/bar-chart/i18n/bar-chart-options.en.d.ts +1 -0
- package/item-definitions/bar-chart/i18n/bar-chart-options.es.d.ts +1 -0
- package/item-definitions/bar-chart/i18n/bar-chart-options.fr.d.ts +1 -0
- package/item-definitions/bar-chart/i18n/bar-chart-options.nl.d.ts +1 -0
- package/item-definitions/box-plot/box-plot-options.config.d.ts +51 -0
- package/item-definitions/choropleth-map/choropleth-map-options.config.d.ts +125 -0
- package/item-definitions/choropleth-map/i18n/choropleth-map-options.de.d.ts +1 -1
- package/item-definitions/choropleth-map/i18n/choropleth-map-options.en.d.ts +1 -1
- package/item-definitions/choropleth-map/i18n/choropleth-map-options.es.d.ts +1 -1
- package/item-definitions/choropleth-map/i18n/choropleth-map-options.fr.d.ts +1 -1
- package/item-definitions/choropleth-map/i18n/choropleth-map-options.nl.d.ts +1 -1
- package/item-definitions/circular-gauge/circular-gauge-options.config.d.ts +94 -0
- package/item-definitions/circular-gauge/i18n/circular-gauge-options.de.d.ts +3 -0
- package/item-definitions/circular-gauge/i18n/circular-gauge-options.en.d.ts +3 -0
- package/item-definitions/circular-gauge/i18n/circular-gauge-options.es.d.ts +3 -0
- package/item-definitions/circular-gauge/i18n/circular-gauge-options.fr.d.ts +3 -0
- package/item-definitions/circular-gauge/i18n/circular-gauge-options.nl.d.ts +3 -0
- package/item-definitions/column-chart/i18n/column-chart-options.de.d.ts +1 -0
- package/item-definitions/column-chart/i18n/column-chart-options.en.d.ts +1 -0
- package/item-definitions/column-chart/i18n/column-chart-options.es.d.ts +1 -0
- package/item-definitions/column-chart/i18n/column-chart-options.fr.d.ts +1 -0
- package/item-definitions/column-chart/i18n/column-chart-options.nl.d.ts +1 -0
- package/item-definitions/conditional-number/conditional-number-options.config.d.ts +106 -0
- package/item-definitions/conditional-number/i18n/conditional-number-options.de.d.ts +2 -2
- package/item-definitions/conditional-number/i18n/conditional-number-options.en.d.ts +2 -2
- package/item-definitions/conditional-number/i18n/conditional-number-options.es.d.ts +2 -2
- package/item-definitions/conditional-number/i18n/conditional-number-options.fr.d.ts +2 -2
- package/item-definitions/conditional-number/i18n/conditional-number-options.nl.d.ts +2 -2
- package/item-definitions/date-filter/i18n/date-filter-options.en.d.ts +1 -0
- package/item-definitions/date-filter/i18n/date-filter-options.es.d.ts +1 -0
- package/item-definitions/date-filter/i18n/date-filter-options.fr.d.ts +1 -0
- package/item-definitions/date-filter/i18n/date-filter-options.nl.d.ts +1 -0
- package/item-definitions/heat-map/heat-map-options.config.d.ts +89 -0
- package/item-definitions/heat-map/i18n/heat-map-options.de.d.ts +4 -5
- package/item-definitions/heat-map/i18n/heat-map-options.en.d.ts +5 -5
- package/item-definitions/heat-map/i18n/heat-map-options.es.d.ts +5 -5
- package/item-definitions/heat-map/i18n/heat-map-options.fr.d.ts +5 -5
- package/item-definitions/heat-map/i18n/heat-map-options.nl.d.ts +5 -5
- package/item-definitions/heat-table/heat-table-options.config.d.ts +90 -4
- package/item-definitions/heat-table/i18n/heat-table-options.de.d.ts +1 -1
- package/item-definitions/heat-table/i18n/heat-table-options.en.d.ts +1 -1
- package/item-definitions/heat-table/i18n/heat-table-options.es.d.ts +1 -1
- package/item-definitions/heat-table/i18n/heat-table-options.fr.d.ts +1 -1
- package/item-definitions/heat-table/i18n/heat-table-options.nl.d.ts +1 -1
- package/item-definitions/hexbin-map/hexbin-map-options.config.d.ts +55 -2
- package/item-definitions/hexbin-map/i18n/hexbin-map-options.de.d.ts +1 -1
- package/item-definitions/hexbin-map/i18n/hexbin-map-options.en.d.ts +1 -1
- package/item-definitions/hexbin-map/i18n/hexbin-map-options.es.d.ts +1 -1
- package/item-definitions/hexbin-map/i18n/hexbin-map-options.fr.d.ts +1 -1
- package/item-definitions/hexbin-map/i18n/hexbin-map-options.nl.d.ts +1 -1
- package/item-definitions/route-map/i18n/route-map-options.de.d.ts +20 -0
- package/item-definitions/route-map/i18n/route-map-options.en.d.ts +20 -0
- package/item-definitions/route-map/i18n/route-map-options.es.d.ts +20 -0
- package/item-definitions/route-map/i18n/route-map-options.fr.d.ts +20 -0
- package/item-definitions/route-map/i18n/route-map-options.nl.d.ts +20 -0
- package/item-definitions/route-map/route-map-options.config.d.ts +157 -0
- package/item-definitions/shared/color-range-utils.d.ts +22 -0
- package/item-definitions/speedometer-chart/speedometer-chart-options.config.d.ts +126 -0
- package/item-definitions/spike-map/i18n/spike-map-options.de.d.ts +26 -0
- package/item-definitions/spike-map/i18n/spike-map-options.en.d.ts +26 -0
- package/item-definitions/spike-map/i18n/spike-map-options.es.d.ts +26 -0
- package/item-definitions/spike-map/i18n/spike-map-options.fr.d.ts +26 -0
- package/item-definitions/spike-map/i18n/spike-map-options.nl.d.ts +26 -0
- package/item-definitions/spike-map/spike-map-options.config.d.ts +123 -0
- package/package.json +11 -1
- package/utils/color/color-palettes.d.ts +17 -0
- package/utils/color/extrapolate-color.d.ts +1 -0
- package/utils/data-broker/index.d.ts +9 -0
- package/utils/store/slot-store.d.ts +9 -3
- package/components/box-plot-options.config-DJz_kt-M.cjs +0 -20
- package/components/choropleth-map-options.config-CeKXtnYB.js +0 -249
- package/components/choropleth-map-options.config-CxUOg3pw.cjs +0 -20
- package/components/circular-gauge-options.config-Cz2TGR6X.cjs +0 -20
- package/components/conditional-number-options.config-BZfgdUGh.cjs +0 -20
- package/components/heat-map-options.config-DsUXxjN0.cjs +0 -20
- package/components/heat-table-options.config-DqPL2hIY.cjs +0 -20
- package/components/hexbin-map-options.config-B_KAcDYq.cjs +0 -20
- package/components/index-BNFpjvqX.cjs +0 -195
- package/components/index-BqMMcuLX.cjs +0 -121
- package/components/index-Cw_HnduG.js +0 -304
- package/components/index-TQG9Xdxu.cjs +0 -20
- package/components/observe-slot-text-BPfIQQtz-DHOh38Ve.cjs +0 -86
- package/components/observe-slot-text-BPfIQQtz-v6B-1BYh.js +0 -221
- package/components/property-BV1QaY8E.cjs +0 -42
- package/components/route-map-options.config-CcQXPmjN.cjs +0 -20
- package/components/route-map-options.config-u0hQqmDh.js +0 -136
- package/components/speedometer-chart-options.config-CVsSjLmh.cjs +0 -20
- package/components/speedometer-chart-options.config-Dt2feQYV.js +0 -199
- package/components/spike-map-options.config-PpPPrsR2.cjs +0 -20
- package/components/spike-map-options.config-pdbV_vwg.js +0 -218
- package/components/spike-map-options.de-BW8YhDI8.cjs +0 -20
- package/components/spike-map-options.en-fNS4A50-.cjs +0 -20
- package/components/spike-map-options.es-I-obYF7j.cjs +0 -20
- package/components/spike-map-options.fr-DWA0ZZBQ.cjs +0 -20
- package/components/spike-map-options.nl-D5Wu6E5D.cjs +0 -20
@@ -1,304 +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 { h as g } from "./task-CDsB8Kbr.js";
|
21
|
-
import "./index-CskV_bXp.js";
|
22
|
-
import "./index-CsDgk_sj.js";
|
23
|
-
import "./index-BC1LV3vH.js";
|
24
|
-
import "./index-CbuHBIDB.js";
|
25
|
-
import "./index-C3N6qTxJ.js";
|
26
|
-
import "./index-DE3d0E0P.js";
|
27
|
-
import "./index-BmshD32H.js";
|
28
|
-
import { r as m, x as l, n as r } from "./property-BFMfZY1k.js";
|
29
|
-
import { r as h } from "./state-BSTa7W6f.js";
|
30
|
-
import { e as v } from "./query-Ddbd72Um.js";
|
31
|
-
import { a7 as c, af as b, ab as y } from "./luzmo-icons-DnAqAQCX.js";
|
32
|
-
import { L as z } from "./focusable-Bhf_beoW.js";
|
33
|
-
import { S as f, E as _ } from "./sized-mixin-CkdMApAU.js";
|
34
|
-
/**
|
35
|
-
* @license
|
36
|
-
* Copyright 2021 Google LLC
|
37
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
38
|
-
*/
|
39
|
-
let C = class extends Event {
|
40
|
-
constructor(e, s, a, t) {
|
41
|
-
super("context-request", { bubbles: !0, composed: !0 }), this.context = e, this.contextTarget = s, this.callback = a, this.subscribe = t ?? !1;
|
42
|
-
}
|
43
|
-
};
|
44
|
-
/**
|
45
|
-
* @license
|
46
|
-
* Copyright 2021 Google LLC
|
47
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
48
|
-
*/
|
49
|
-
/**
|
50
|
-
* @license
|
51
|
-
* Copyright 2021 Google LLC
|
52
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
53
|
-
*/
|
54
|
-
class p {
|
55
|
-
constructor(e, s, a, t) {
|
56
|
-
if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (o, u) => {
|
57
|
-
this.unsubscribe && (this.unsubscribe !== u && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = o, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(o, u)), this.unsubscribe = u;
|
58
|
-
}, this.host = e, s.context !== void 0) {
|
59
|
-
const o = s;
|
60
|
-
this.context = o.context, this.callback = o.callback, this.subscribe = o.subscribe ?? !1;
|
61
|
-
} else this.context = s, this.callback = a, this.subscribe = t ?? !1;
|
62
|
-
this.host.addController(this);
|
63
|
-
}
|
64
|
-
hostConnected() {
|
65
|
-
this.dispatchRequest();
|
66
|
-
}
|
67
|
-
hostDisconnected() {
|
68
|
-
this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
|
69
|
-
}
|
70
|
-
dispatchRequest() {
|
71
|
-
this.host.dispatchEvent(new C(this.context, this.host, this.t, this.subscribe));
|
72
|
-
}
|
73
|
-
}
|
74
|
-
/**
|
75
|
-
* @license
|
76
|
-
* Copyright 2022 Google LLC
|
77
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
78
|
-
*/
|
79
|
-
function $({ context: d, subscribe: e }) {
|
80
|
-
return (s, a) => {
|
81
|
-
typeof a == "object" ? a.addInitializer(function() {
|
82
|
-
new p(this, { context: d, callback: (t) => {
|
83
|
-
s.set.call(this, t);
|
84
|
-
}, subscribe: e });
|
85
|
-
}) : s.constructor.addInitializer((t) => {
|
86
|
-
new p(t, { context: d, callback: (o) => {
|
87
|
-
t[a] = o;
|
88
|
-
}, subscribe: e });
|
89
|
-
});
|
90
|
-
};
|
91
|
-
}
|
92
|
-
const S = Symbol("slot-store-context"), x = ":host{font-family:var(--luzmo-display-settings-font-family, var(--luzmo-font-family));font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}.settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap))}luzmo-divider{margin:var(--luzmo-display-settings-ids-container-vertical-margin, var(--display-settings-ids-container-vertical-margin)) 0}.setting{display:flex;align-items:center}.label-action-container{display:flex;align-items:center;justify-content:space-between;gap:var(--luzmo-display-settings-info-to-remove-icon-gap, var(--display-settings-info-to-remove-icon-gap))}.id-button,.remove-button{outline:none;cursor:pointer;border:none;background:none;font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.remove-button{display:block;width:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));height:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));border-radius:var(--luzmo-display-settings-remove-button-border-radius, 50%)}.remove-button:hover{background-color:var(--luzmo-display-settings-remove-button-background-color-hover, var(--luzmo-background-color-hover))}.remove-button:active,.remove-button:focus{background-color:var(--luzmo-display-settings-remove-button-background-color-down, var(--luzmo-background-color-down))}.remove-button:focus-visible{box-shadow:0 0 0 var(--luzmo-display-settings-remove-button-indicator-thickness, var(--display-settings-remove-button-indicator-thickness)) var(--highcontrast-remove-button-indicator-color, var(--luzmo-display-settings-remove-button-indicator-color, var(--display-settings-remove-button-indicator-color)))}.ids-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap));border-radius:50%}.id-label{text-transform:var(--luzmo-display-settings-id-label-text-transform, var(--display-settings-id-label-text-transform));font-size:var(--luzmo-display-settings-id-label-font-size, var(--display-settings-id-label-font-size));color:var(--luzmo-display-settings-id-label-color, var(--display-settings-id-label-color))}:host{--display-settings-font-family: var(--luzmo-font-family);--display-settings-id-label-text-transform: uppercase;--display-settings-id-label-color: var(--luzmo-secondary);--display-settings-remove-button-indicator-color: var(--luzmo-primary);--display-settings-remove-button-indicator-thickness: var( --luzmo-border-width )}:host{--display-settings-font-size: var(--luzmo-font-size);--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-4);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-5);--display-settings-remove-button-size: var(--luzmo-component-height)}:host([size=s]){--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-3);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-4);--display-settings-remove-button-size: var(--luzmo-component-height-s)}:host([size=l]){--display-settings-id-label-font-size: var(--luzmo-font-size);--display-settings-font-size: var(--luzmo-font-size-l);--display-settings-gap: var(--luzmo-spacing-4);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-5);--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-remove-button-size: var(--luzmo-component-height-l)}:host([size=xl]){--display-settings-id-label-font-size: var(--luzmo-font-size-l);--display-settings-font-size: var(--luzmo-font-size-xl);--display-settings-gap: var(--luzmo-spacing-5);--display-settings-ids-container-vertical-margin: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--display-settings-remove-button-size: var(--luzmo-component-height-xl)}";
|
93
|
-
var w = Object.defineProperty, n = (d, e, s, a) => {
|
94
|
-
for (var t = void 0, o = d.length - 1, u; o >= 0; o--)
|
95
|
-
(u = d[o]) && (t = u(e, s, t) || t);
|
96
|
-
return t && w(e, s, t), t;
|
97
|
-
};
|
98
|
-
class i extends f(z, {
|
99
|
-
validSizes: Object.values(_)
|
100
|
-
}) {
|
101
|
-
constructor() {
|
102
|
-
super(...arguments), this._loadDisplaySettings = new g(this, {
|
103
|
-
task: async ([e, s, a]) => {
|
104
|
-
const t = [];
|
105
|
-
this.grandTotals && t.push("grandTotals"), this.periodOverPeriod && t.push("periodOverPeriod"), (s === "numeric" || s === "mixed" && (e == null ? void 0 : e.type) === "numeric") && t.push("numeric"), s !== "numeric" && (e == null ? void 0 : e.type) === "datetime" && t.push("datetime"), !["numeric", "mixed"].includes(s ?? "") && (e == null ? void 0 : e.type) === "numeric" && !this.binningDisabled && t.push("binning"), t.length > 0 && !a && (t.includes("numeric") && !this._settingsTypeLoaded.numeric ? (await import("./display-settings-numeric/index.js"), this._settingsTypeLoaded.numeric = !0, t.includes("periodOverPeriod") && !this._settingsTypeLoaded.periodOverPeriod && (await import("./display-settings-period-over-period/index.js"), this._settingsTypeLoaded.periodOverPeriod = !0)) : t.includes("datetime") && !this._settingsTypeLoaded.datetime ? (await import("./display-settings-datetime/index.js"), this._settingsTypeLoaded.datetime = !0) : t.includes("binning") && !this._settingsTypeLoaded.binning ? (await import("./display-settings-binning/index.js"), this._settingsTypeLoaded.binning = !0) : t.includes("grandTotals") && !this._settingsTypeLoaded.grandTotals && (await import("./display-settings-grand-totals/index.js"), this._settingsTypeLoaded.grandTotals = !0));
|
106
|
-
},
|
107
|
-
args: () => [this.slotContent, this.slotType, this.hideDisplaySettings]
|
108
|
-
}), this.language = "en", this.contentLanguage = "en", this.slotType = "numeric", this.slotContent = {}, this._showIds = !1, this.measureColumns = [], this._settingsTypeLoaded = {
|
109
|
-
binning: !1,
|
110
|
-
datetime: !1,
|
111
|
-
numeric: !1,
|
112
|
-
grandTotals: !1,
|
113
|
-
periodOverPeriod: !1,
|
114
|
-
hierarchy: !0
|
115
|
-
}, this._currentSlotContent = {};
|
116
|
-
}
|
117
|
-
static get styles() {
|
118
|
-
return [m(x)];
|
119
|
-
}
|
120
|
-
willUpdate(e) {
|
121
|
-
if (e.has("slotContent"))
|
122
|
-
this._currentSlotContent = structuredClone(this.slotContent);
|
123
|
-
else if (this._store) {
|
124
|
-
const s = this._store.activeContent;
|
125
|
-
s && s !== this._currentSlotContent && (this._currentSlotContent = structuredClone(s));
|
126
|
-
}
|
127
|
-
}
|
128
|
-
_onSlotContentChange(e) {
|
129
|
-
e.stopPropagation(), e.preventDefault(), this._currentSlotContent = structuredClone(e.detail.slotContent), this._sendEvent(), this.requestUpdate();
|
130
|
-
}
|
131
|
-
_onLabelChange() {
|
132
|
-
this._currentSlotContent = structuredClone(this._currentSlotContent), this._currentSlotContent.label = this._multiLanguageFieldElement.value || {}, this._sendEvent(), this.requestUpdate();
|
133
|
-
}
|
134
|
-
_sendEvent() {
|
135
|
-
this.dispatchEvent(
|
136
|
-
new CustomEvent("slot-content-changed", {
|
137
|
-
bubbles: !0,
|
138
|
-
composed: !0,
|
139
|
-
cancelable: !0,
|
140
|
-
detail: {
|
141
|
-
slotContent: { ...this._currentSlotContent }
|
142
|
-
}
|
143
|
-
})
|
144
|
-
), this._store && this._store.updateContent({ ...this._currentSlotContent });
|
145
|
-
}
|
146
|
-
_removeEvent() {
|
147
|
-
this.dispatchEvent(
|
148
|
-
new CustomEvent("remove-slot-content", {
|
149
|
-
bubbles: !0,
|
150
|
-
composed: !0,
|
151
|
-
cancelable: !0,
|
152
|
-
detail: {
|
153
|
-
slotContent: this._currentSlotContent
|
154
|
-
}
|
155
|
-
})
|
156
|
-
);
|
157
|
-
}
|
158
|
-
_toggleIds() {
|
159
|
-
this._showIds = !this._showIds;
|
160
|
-
}
|
161
|
-
_renderDisplaySettings() {
|
162
|
-
return l`<div class="settings-container">
|
163
|
-
<div class="settings-row">
|
164
|
-
<div class="setting">
|
165
|
-
<div class="label-container">
|
166
|
-
<luzmo-field-label side-aligned="start" .size=${this.size}
|
167
|
-
>Label:</luzmo-field-label
|
168
|
-
>
|
169
|
-
<luzmo-multi-language-field
|
170
|
-
.language=${this.language}
|
171
|
-
.value=${this._currentSlotContent.label}
|
172
|
-
.size=${this.size}
|
173
|
-
debounce="200"
|
174
|
-
@change=${this._onLabelChange}
|
175
|
-
></luzmo-multi-language-field>
|
176
|
-
</div>
|
177
|
-
<div class="label-action-container">
|
178
|
-
<button class="id-button" @click=${this._toggleIds}>
|
179
|
-
${c(b)}
|
180
|
-
<luzmo-tooltip self-managed placement="top" size=${this.size}>
|
181
|
-
Show dataset and column id's
|
182
|
-
</luzmo-tooltip>
|
183
|
-
</button>
|
184
|
-
${this.showRemoveButton ? l`<button
|
185
|
-
class="remove-button"
|
186
|
-
@click=${this._removeEvent}
|
187
|
-
>
|
188
|
-
${c(y)}
|
189
|
-
<luzmo-tooltip
|
190
|
-
self-managed
|
191
|
-
placement="top"
|
192
|
-
size=${this.size}
|
193
|
-
>
|
194
|
-
Remove
|
195
|
-
</luzmo-tooltip>
|
196
|
-
</button>` : ""}
|
197
|
-
</div>
|
198
|
-
</div>
|
199
|
-
</div>
|
200
|
-
${this.grandTotals ? l`<luzmo-display-settings-grand-totals
|
201
|
-
.language=${this.language}
|
202
|
-
.slotContent=${this._currentSlotContent}
|
203
|
-
.size=${this.size}
|
204
|
-
@slot-content-changed=${this._onSlotContentChange}
|
205
|
-
></luzmo-display-settings-grand-totals>` : ""}
|
206
|
-
${this.slotType === "numeric" || this.slotType === "mixed" && this.slotContent.type === "numeric" ? l`<luzmo-display-settings-numeric
|
207
|
-
.language=${this.language}
|
208
|
-
.slotContent=${this._currentSlotContent}
|
209
|
-
.size=${this.size}
|
210
|
-
.measureColumns=${this.measureColumns}
|
211
|
-
@slot-content-changed=${this._onSlotContentChange}
|
212
|
-
></luzmo-display-settings-numeric>` : ""}
|
213
|
-
${this.slotType !== "numeric" && this.slotContent.type === "datetime" ? l`<luzmo-display-settings-datetime
|
214
|
-
.language=${this.language}
|
215
|
-
.contentLanguage=${this.contentLanguage}
|
216
|
-
.slotContent=${this._currentSlotContent}
|
217
|
-
.size=${this.size}
|
218
|
-
@slot-content-changed=${this._onSlotContentChange}
|
219
|
-
></luzmo-display-settings-datetime>` : ""}
|
220
|
-
${!["numeric", "mixed"].includes(this.slotType ?? "") && this.slotContent.type === "numeric" && !this.binningDisabled ? l`<luzmo-display-settings-binning
|
221
|
-
.language=${this.language}
|
222
|
-
.slotContent=${this._currentSlotContent}
|
223
|
-
.size=${this.size}
|
224
|
-
@slot-content-changed=${this._onSlotContentChange}
|
225
|
-
></luzmo-display-settings-binning>` : ""}
|
226
|
-
${this.periodOverPeriod ? l`<luzmo-display-settings-period-over-period
|
227
|
-
.language=${this.language}
|
228
|
-
.slotContent=${this._currentSlotContent}
|
229
|
-
.size=${this.size}
|
230
|
-
@slot-content-changed=${this._onSlotContentChange}
|
231
|
-
></luzmo-display-settings-period-over-period>` : ""}
|
232
|
-
</div>
|
233
|
-
${this._showIds ? l` <luzmo-divider></luzmo-divider>
|
234
|
-
<div class="ids-container">
|
235
|
-
<div>
|
236
|
-
<span class="id-label">Column: </span>
|
237
|
-
${this._currentSlotContent.columnId ?? // eslint-disable-next-line @typescript-eslint/no-deprecated
|
238
|
-
this._currentSlotContent.column}
|
239
|
-
</div>
|
240
|
-
<div>
|
241
|
-
<span class="id-label">Dataset: </span>
|
242
|
-
${this._currentSlotContent.datasetId ?? // eslint-disable-next-line @typescript-eslint/no-deprecated
|
243
|
-
this._currentSlotContent.set}
|
244
|
-
</div>
|
245
|
-
<div></div>
|
246
|
-
</div>` : ""}`;
|
247
|
-
}
|
248
|
-
render() {
|
249
|
-
return this._loadDisplaySettings.render({
|
250
|
-
pending: () => l`<luzmo-progress-circle
|
251
|
-
indeterminate
|
252
|
-
.size=${this.size}
|
253
|
-
></luzmo-progress-circle>`,
|
254
|
-
complete: () => this._renderDisplaySettings(),
|
255
|
-
error: () => this._renderDisplaySettings()
|
256
|
-
});
|
257
|
-
}
|
258
|
-
}
|
259
|
-
n([
|
260
|
-
r({ type: String })
|
261
|
-
], i.prototype, "language");
|
262
|
-
n([
|
263
|
-
r({ type: String, attribute: "content-language" })
|
264
|
-
], i.prototype, "contentLanguage");
|
265
|
-
n([
|
266
|
-
r({ type: Boolean, attribute: "hide-display-settings" })
|
267
|
-
], i.prototype, "hideDisplaySettings");
|
268
|
-
n([
|
269
|
-
r({ type: Boolean, attribute: "binning-disabled" })
|
270
|
-
], i.prototype, "binningDisabled");
|
271
|
-
n([
|
272
|
-
r({ type: Boolean, attribute: "grand-totals" })
|
273
|
-
], i.prototype, "grandTotals");
|
274
|
-
n([
|
275
|
-
r({ type: Boolean, attribute: "period-over-period" })
|
276
|
-
], i.prototype, "periodOverPeriod");
|
277
|
-
n([
|
278
|
-
r({ type: Boolean, attribute: "show-remove-button" })
|
279
|
-
], i.prototype, "showRemoveButton");
|
280
|
-
n([
|
281
|
-
r({ type: String, attribute: "slot-type" })
|
282
|
-
], i.prototype, "slotType");
|
283
|
-
n([
|
284
|
-
r()
|
285
|
-
], i.prototype, "slotContent");
|
286
|
-
n([
|
287
|
-
h()
|
288
|
-
], i.prototype, "_showIds");
|
289
|
-
n([
|
290
|
-
r({ type: Array, reflect: !1 })
|
291
|
-
], i.prototype, "measureColumns");
|
292
|
-
n([
|
293
|
-
v("luzmo-multi-language-field")
|
294
|
-
], i.prototype, "_multiLanguageFieldElement");
|
295
|
-
n([
|
296
|
-
$({ context: S, subscribe: !0 })
|
297
|
-
], i.prototype, "_store");
|
298
|
-
customElements.get("luzmo-display-settings") || customElements.define("luzmo-display-settings", i);
|
299
|
-
export {
|
300
|
-
i as L,
|
301
|
-
C as a,
|
302
|
-
$ as c,
|
303
|
-
S as s
|
304
|
-
};
|
@@ -1,20 +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";var Fe=s=>{throw TypeError(s)};var ge=(s,e,t)=>e.has(s)||Fe("Cannot "+t);var r=(s,e,t)=>(ge(s,e,"read from private field"),t?t.call(s):e.get(s)),l=(s,e,t)=>e.has(s)?Fe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t),o=(s,e,t,i)=>(ge(s,e,"write to private field"),i?i.call(s,t):e.set(s,t),t),P=(s,e,t)=>(ge(s,e,"access private method"),t);var pe=(s,e,t,i)=>({set _(n){o(s,e,n,t)},get _(){return r(s,e,i)}});var we=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(s){return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},be=typeof window>"u"||"Deno"in globalThis;function M(){}function Je(s,e){return typeof s=="function"?s(e):s}function We(s){return typeof s=="number"&&s>=0&&s!==1/0}function _e(s,e){return Math.max(s+(e||0)-Date.now(),0)}function Se(s,e){return typeof s=="function"?s(e):s}function Xe(s,e){return typeof s=="function"?s(e):s}function Ae(s,e){const{type:t="all",exact:i,fetchStatus:n,predicate:a,queryKey:h,stale:u}=s;if(h){if(i){if(e.queryHash!==Oe(h,e.options))return!1}else if(!ce(e.queryKey,h))return!1}if(t!=="all"){const d=e.isActive();if(t==="active"&&!d||t==="inactive"&&d)return!1}return!(typeof u=="boolean"&&e.isStale()!==u||n&&n!==e.state.fetchStatus||a&&!a(e))}function De(s,e){const{exact:t,status:i,predicate:n,mutationKey:a}=s;if(a){if(!e.options.mutationKey)return!1;if(t){if(oe(e.options.mutationKey)!==oe(a))return!1}else if(!ce(e.options.mutationKey,a))return!1}return!(i&&e.state.status!==i||n&&!n(e))}function Oe(s,e){return((e==null?void 0:e.queryKeyHashFn)||oe)(s)}function oe(s){return JSON.stringify(s,(e,t)=>qe(t)?Object.keys(t).sort().reduce((i,n)=>(i[n]=t[n],i),{}):t)}function ce(s,e){return s===e?!0:typeof s!=typeof e?!1:s&&e&&typeof s=="object"&&typeof e=="object"?Object.keys(e).every(t=>ce(s[t],e[t])):!1}function xe(s,e){if(s===e)return s;const t=Qe(s)&&Qe(e);if(t||qe(s)&&qe(e)){const i=t?s:Object.keys(s),n=i.length,a=t?e:Object.keys(e),h=a.length,u=t?[]:{};let d=0;for(let g=0;g<h;g++){const m=t?g:a[g];(!t&&i.includes(m)||t)&&s[m]===void 0&&e[m]===void 0?(u[m]=void 0,d++):(u[m]=xe(s[m],e[m]),u[m]===s[m]&&s[m]!==void 0&&d++)}return n===h&&d===n?s:u}return e}function Qe(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function qe(s){if(!Ee(s))return!1;const e=s.constructor;if(e===void 0)return!0;const t=e.prototype;return!(!Ee(t)||!t.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}function Ee(s){return Object.prototype.toString.call(s)==="[object Object]"}function Ye(s){return new Promise(e=>{setTimeout(e,s)})}function Ze(s,e,t){return typeof t.structuralSharing=="function"?t.structuralSharing(s,e):t.structuralSharing!==!1?xe(s,e):e}function et(s,e,t=0){const i=[...s,e];return t&&i.length>t?i.slice(1):i}function tt(s,e,t=0){const i=[e,...s];return t&&i.length>t?i.slice(0,-1):i}var Ce=Symbol();function Ge(s,e){return!s.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!s.queryFn||s.queryFn===Ce?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}var J,G,Z,Re,st=(Re=class extends we{constructor(){super();l(this,J);l(this,G);l(this,Z);o(this,Z,e=>{if(!be&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){r(this,G)||this.setEventListener(r(this,Z))}onUnsubscribe(){var e;this.hasListeners()||((e=r(this,G))==null||e.call(this),o(this,G,void 0))}setEventListener(e){var t;o(this,Z,e),(t=r(this,G))==null||t.call(this),o(this,G,e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(e){r(this,J)!==e&&(o(this,J,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return typeof r(this,J)=="boolean"?r(this,J):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},J=new WeakMap,G=new WeakMap,Z=new WeakMap,Re),Ne=new st,ee,N,te,Ke,it=(Ke=class extends we{constructor(){super();l(this,ee,!0);l(this,N);l(this,te);o(this,te,e=>{if(!be&&window.addEventListener){const t=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,N)||this.setEventListener(r(this,te))}onUnsubscribe(){var e;this.hasListeners()||((e=r(this,N))==null||e.call(this),o(this,N,void 0))}setEventListener(e){var t;o(this,te,e),(t=r(this,N))==null||t.call(this),o(this,N,e(this.setOnline.bind(this)))}setOnline(e){r(this,ee)!==e&&(o(this,ee,e),this.listeners.forEach(i=>{i(e)}))}isOnline(){return r(this,ee)}},ee=new WeakMap,N=new WeakMap,te=new WeakMap,Ke),ve=new it;function rt(){let s,e;const t=new Promise((n,a)=>{s=n,e=a});t.status="pending",t.catch(()=>{});function i(n){Object.assign(t,n),delete t.resolve,delete t.reject}return t.resolve=n=>{i({status:"fulfilled",value:n}),s(n)},t.reject=n=>{i({status:"rejected",reason:n}),e(n)},t}function nt(s){return Math.min(1e3*2**s,3e4)}function Ve(s){return(s??"online")==="online"?ve.isOnline():!0}var $e=class extends Error{constructor(s){super("CancelledError"),this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent}};function Pe(s){return s instanceof $e}function Be(s){let e=!1,t=0,i=!1,n;const a=rt(),h=c=>{var p;i||(y(new $e(c)),(p=s.abort)==null||p.call(s))},u=()=>{e=!0},d=()=>{e=!1},g=()=>Ne.isFocused()&&(s.networkMode==="always"||ve.isOnline())&&s.canRun(),m=()=>Ve(s.networkMode)&&s.canRun(),f=c=>{var p;i||(i=!0,(p=s.onSuccess)==null||p.call(s,c),n==null||n(),a.resolve(c))},y=c=>{var p;i||(i=!0,(p=s.onError)==null||p.call(s,c),n==null||n(),a.reject(c))},S=()=>new Promise(c=>{var p;n=A=>{(i||g())&&c(A)},(p=s.onPause)==null||p.call(s)}).then(()=>{var c;n=void 0,i||(c=s.onContinue)==null||c.call(s)}),O=()=>{if(i)return;let c;const p=t===0?s.initialPromise:void 0;try{c=p??s.fn()}catch(A){c=Promise.reject(A)}Promise.resolve(c).then(f).catch(A=>{var k;if(i)return;const E=s.retry??(be?0:3),w=s.retryDelay??nt,D=typeof w=="function"?w(t,A):w,K=E===!0||typeof E=="number"&&t<E||typeof E=="function"&&E(t,A);if(e||!K){y(A);return}t++,(k=s.onFail)==null||k.call(s,t,A),Ye(D).then(()=>g()?void 0:S()).then(()=>{e?y(A):O()})})};return{promise:a,cancel:h,continue:()=>(n==null||n(),a),cancelRetry:u,continueRetry:d,canStart:m,start:()=>(m()?O():S().then(O),a)}}var at=s=>setTimeout(s,0);function ut(){let s=[],e=0,t=u=>{u()},i=u=>{u()},n=at;const a=u=>{e?s.push(u):n(()=>{t(u)})},h=()=>{const u=s;s=[],u.length&&n(()=>{i(()=>{u.forEach(d=>{t(d)})})})};return{batch:u=>{let d;e++;try{d=u()}finally{e--,e||h()}return d},batchCalls:u=>(...d)=>{a(()=>{u(...d)})},schedule:a,setNotifyFunction:u=>{t=u},setBatchNotifyFunction:u=>{i=u},setScheduler:u=>{n=u}}}var F=ut(),W,ke,ze=(ke=class{constructor(){l(this,W)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),We(this.gcTime)&&o(this,W,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(be?1/0:5*60*1e3))}clearGcTimeout(){r(this,W)&&(clearTimeout(r(this,W)),o(this,W,void 0))}},W=new WeakMap,ke),se,ie,Q,_,q,le,X,T,L,Ue,ht=(Ue=class extends ze{constructor(e){super();l(this,T);l(this,se);l(this,ie);l(this,Q);l(this,_);l(this,q);l(this,le);l(this,X);o(this,X,!1),o(this,le,e.defaultOptions),this.setOptions(e.options),this.observers=[],o(this,_,e.client),o(this,Q,r(this,_).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,o(this,se,ct(this.options)),this.state=e.state??r(this,se),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=r(this,q))==null?void 0:e.promise}setOptions(e){this.options={...r(this,le),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,Q).remove(this)}setData(e,t){const i=Ze(this.state.data,e,this.options);return P(this,T,L).call(this,{data:i,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),i}setState(e,t){P(this,T,L).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var i,n;const t=(i=r(this,q))==null?void 0:i.promise;return(n=r(this,q))==null||n.cancel(e),t?t.then(M).catch(M):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(r(this,se))}isActive(){return this.observers.some(e=>Xe(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ce||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(e=0){return this.state.isInvalidated||this.state.data===void 0||!_e(this.state.dataUpdatedAt,e)}onFocus(){var t;const e=this.observers.find(i=>i.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(t=r(this,q))==null||t.continue()}onOnline(){var t;const e=this.observers.find(i=>i.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(t=r(this,q))==null||t.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),r(this,Q).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(r(this,q)&&(r(this,X)?r(this,q).cancel({revert:!0}):r(this,q).cancelRetry()),this.scheduleGc()),r(this,Q).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||P(this,T,L).call(this,{type:"invalidate"})}fetch(e,t){var d,g,m;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(t!=null&&t.cancelRefetch))this.cancel({silent:!0});else if(r(this,q))return r(this,q).continueRetry(),r(this,q).promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(y=>y.options.queryFn);f&&this.setOptions(f.options)}const i=new AbortController,n=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(o(this,X,!0),i.signal)})},a=()=>{const f=Ge(this.options,t),y={client:r(this,_),queryKey:this.queryKey,meta:this.meta};return n(y),o(this,X,!1),this.options.persister?this.options.persister(f,y,this):f(y)},h={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:r(this,_),state:this.state,fetchFn:a};n(h),(d=this.options.behavior)==null||d.onFetch(h,this),o(this,ie,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=h.fetchOptions)==null?void 0:g.meta))&&P(this,T,L).call(this,{type:"fetch",meta:(m=h.fetchOptions)==null?void 0:m.meta});const u=f=>{var y,S,O,c;Pe(f)&&f.silent||P(this,T,L).call(this,{type:"error",error:f}),Pe(f)||((S=(y=r(this,Q).config).onError)==null||S.call(y,f,this),(c=(O=r(this,Q).config).onSettled)==null||c.call(O,this.state.data,f,this)),this.scheduleGc()};return o(this,q,Be({initialPromise:t==null?void 0:t.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:f=>{var y,S,O,c;if(f===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(p){u(p);return}(S=(y=r(this,Q).config).onSuccess)==null||S.call(y,f,this),(c=(O=r(this,Q).config).onSettled)==null||c.call(O,f,this.state.error,this),this.scheduleGc()},onError:u,onFail:(f,y)=>{P(this,T,L).call(this,{type:"failed",failureCount:f,error:y})},onPause:()=>{P(this,T,L).call(this,{type:"pause"})},onContinue:()=>{P(this,T,L).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),r(this,q).start()}},se=new WeakMap,ie=new WeakMap,Q=new WeakMap,_=new WeakMap,q=new WeakMap,le=new WeakMap,X=new WeakMap,T=new WeakSet,L=function(e){const t=i=>{switch(e.type){case"failed":return{...i,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...ot(i.data,this.options),fetchMeta:e.meta??null};case"success":return{...i,data:e.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return Pe(n)&&n.revert&&r(this,ie)?{...r(this,ie),fetchStatus:"idle"}:{...i,error:n,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...e.state}}};this.state=t(this.state),F.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,Q).notify({query:this,type:"updated",action:e})})},Ue);function ot(s,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ve(e.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function ct(s){const e=typeof s.initialData=="function"?s.initialData():s.initialData,t=e!==void 0,i=t?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"pending",fetchStatus:"idle"}}var U,je,lt=(je=class extends we{constructor(e={}){super();l(this,U);this.config=e,o(this,U,new Map)}build(e,t,i){const n=t.queryKey,a=t.queryHash??Oe(n,t);let h=this.get(a);return h||(h=new ht({client:e,queryKey:n,queryHash:a,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(n)}),this.add(h)),h}add(e){r(this,U).has(e.queryHash)||(r(this,U).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=r(this,U).get(e.queryHash);t&&(e.destroy(),t===e&&r(this,U).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){F.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return r(this,U).get(e)}getAll(){return[...r(this,U).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(i=>Ae(t,i))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(i=>Ae(e,i)):t}notify(e){F.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){F.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){F.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},U=new WeakMap,je),j,C,Y,I,x,Ie,dt=(Ie=class extends ze{constructor(e){super();l(this,I);l(this,j);l(this,C);l(this,Y);this.mutationId=e.mutationId,o(this,C,e.mutationCache),o(this,j,[]),this.state=e.state||ft(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){r(this,j).includes(e)||(r(this,j).push(e),this.clearGcTimeout(),r(this,C).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){o(this,j,r(this,j).filter(t=>t!==e)),this.scheduleGc(),r(this,C).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){r(this,j).length||(this.state.status==="pending"?this.scheduleGc():r(this,C).remove(this))}continue(){var e;return((e=r(this,Y))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var a,h,u,d,g,m,f,y,S,O,c,p,A,E,w,D,K,k,fe,he;const t=()=>{P(this,I,x).call(this,{type:"continue"})};o(this,Y,Be({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(b,ye)=>{P(this,I,x).call(this,{type:"failed",failureCount:b,error:ye})},onPause:()=>{P(this,I,x).call(this,{type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,C).canRun(this)}));const i=this.state.status==="pending",n=!r(this,Y).canStart();try{if(i)t();else{P(this,I,x).call(this,{type:"pending",variables:e,isPaused:n}),await((h=(a=r(this,C).config).onMutate)==null?void 0:h.call(a,e,this));const ye=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,e));ye!==this.state.context&&P(this,I,x).call(this,{type:"pending",context:ye,variables:e,isPaused:n})}const b=await r(this,Y).start();return await((m=(g=r(this,C).config).onSuccess)==null?void 0:m.call(g,b,e,this.state.context,this)),await((y=(f=this.options).onSuccess)==null?void 0:y.call(f,b,e,this.state.context)),await((O=(S=r(this,C).config).onSettled)==null?void 0:O.call(S,b,null,this.state.variables,this.state.context,this)),await((p=(c=this.options).onSettled)==null?void 0:p.call(c,b,null,e,this.state.context)),P(this,I,x).call(this,{type:"success",data:b}),b}catch(b){try{throw await((E=(A=r(this,C).config).onError)==null?void 0:E.call(A,b,e,this.state.context,this)),await((D=(w=this.options).onError)==null?void 0:D.call(w,b,e,this.state.context)),await((k=(K=r(this,C).config).onSettled)==null?void 0:k.call(K,void 0,b,this.state.variables,this.state.context,this)),await((he=(fe=this.options).onSettled)==null?void 0:he.call(fe,void 0,b,e,this.state.context)),b}finally{P(this,I,x).call(this,{type:"error",error:b})}}finally{r(this,C).runNext(this)}}},j=new WeakMap,C=new WeakMap,Y=new WeakMap,I=new WeakSet,x=function(e){const t=i=>{switch(e.type){case"failed":return{...i,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...i,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:e.error,failureCount:i.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),F.batch(()=>{r(this,j).forEach(i=>{i.onMutationUpdate(e)}),r(this,C).notify({mutation:this,type:"updated",action:e})})},Ie);function ft(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var H,R,de,Le,yt=(Le=class extends we{constructor(e={}){super();l(this,H);l(this,R);l(this,de);this.config=e,o(this,H,new Set),o(this,R,new Map),o(this,de,0)}build(e,t,i){const n=new dt({mutationCache:this,mutationId:++pe(this,de)._,options:e.defaultMutationOptions(t),state:i});return this.add(n),n}add(e){r(this,H).add(e);const t=me(e);if(typeof t=="string"){const i=r(this,R).get(t);i?i.push(e):r(this,R).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(r(this,H).delete(e)){const t=me(e);if(typeof t=="string"){const i=r(this,R).get(t);if(i)if(i.length>1){const n=i.indexOf(e);n!==-1&&i.splice(n,1)}else i[0]===e&&r(this,R).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=me(e);if(typeof t=="string"){const i=r(this,R).get(t),n=i==null?void 0:i.find(a=>a.state.status==="pending");return!n||n===e}else return!0}runNext(e){var i;const t=me(e);if(typeof t=="string"){const n=(i=r(this,R).get(t))==null?void 0:i.find(a=>a!==e&&a.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}else return Promise.resolve()}clear(){F.batch(()=>{r(this,H).forEach(e=>{this.notify({type:"removed",mutation:e})}),r(this,H).clear(),r(this,R).clear()})}getAll(){return Array.from(r(this,H))}find(e){const t={exact:!0,...e};return this.getAll().find(i=>De(t,i))}findAll(e={}){return this.getAll().filter(t=>De(e,t))}notify(e){F.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return F.batch(()=>Promise.all(e.map(t=>t.continue().catch(M))))}},H=new WeakMap,R=new WeakMap,de=new WeakMap,Le);function me(s){var e;return(e=s.options.scope)==null?void 0:e.id}function Me(s){return{onFetch:(e,t)=>{var m,f,y,S,O;const i=e.options,n=(y=(f=(m=e.fetchOptions)==null?void 0:m.meta)==null?void 0:f.fetchMore)==null?void 0:y.direction,a=((S=e.state.data)==null?void 0:S.pages)||[],h=((O=e.state.data)==null?void 0:O.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const g=async()=>{let c=!1;const p=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(e.signal.aborted?c=!0:e.signal.addEventListener("abort",()=>{c=!0}),e.signal)})},A=Ge(e.options,e.fetchOptions),E=async(w,D,K)=>{if(c)return Promise.reject();if(D==null&&w.pages.length)return Promise.resolve(w);const k={client:e.client,queryKey:e.queryKey,pageParam:D,direction:K?"backward":"forward",meta:e.options.meta};p(k);const fe=await A(k),{maxPages:he}=e.options,b=K?tt:et;return{pages:b(w.pages,fe,he),pageParams:b(w.pageParams,D,he)}};if(n&&a.length){const w=n==="backward",D=w?pt:Te,K={pages:a,pageParams:h},k=D(i,K);u=await E(K,k,w)}else{const w=s??a.length;do{const D=d===0?h[0]??i.initialPageParam:Te(i,u);if(d>0&&D==null)break;u=await E(u,D),d++}while(d<w)}return u};e.options.persister?e.fetchFn=()=>{var c,p;return(p=(c=e.options).persister)==null?void 0:p.call(c,g,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t)}:e.fetchFn=g}}}function Te(s,{pages:e,pageParams:t}){const i=e.length-1;return e.length>0?s.getNextPageParam(e[i],e,t[i],t):void 0}function pt(s,{pages:e,pageParams:t}){var i;return e.length>0?(i=s.getPreviousPageParam)==null?void 0:i.call(s,e[0],e,t[0],t):void 0}var v,V,$,re,ne,B,ae,ue,He,mt=(He=class{constructor(s={}){l(this,v);l(this,V);l(this,$);l(this,re);l(this,ne);l(this,B);l(this,ae);l(this,ue);o(this,v,s.queryCache||new lt),o(this,V,s.mutationCache||new yt),o(this,$,s.defaultOptions||{}),o(this,re,new Map),o(this,ne,new Map),o(this,B,0)}mount(){pe(this,B)._++,r(this,B)===1&&(o(this,ae,Ne.subscribe(async s=>{s&&(await this.resumePausedMutations(),r(this,v).onFocus())})),o(this,ue,ve.subscribe(async s=>{s&&(await this.resumePausedMutations(),r(this,v).onOnline())})))}unmount(){var s,e;pe(this,B)._--,r(this,B)===0&&((s=r(this,ae))==null||s.call(this),o(this,ae,void 0),(e=r(this,ue))==null||e.call(this),o(this,ue,void 0))}isFetching(s){return r(this,v).findAll({...s,fetchStatus:"fetching"}).length}isMutating(s){return r(this,V).findAll({...s,status:"pending"}).length}getQueryData(s){var t;const e=this.defaultQueryOptions({queryKey:s});return(t=r(this,v).get(e.queryHash))==null?void 0:t.state.data}ensureQueryData(s){const e=this.defaultQueryOptions(s),t=r(this,v).build(this,e),i=t.state.data;return i===void 0?this.fetchQuery(s):(s.revalidateIfStale&&t.isStaleByTime(Se(e.staleTime,t))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(s){return r(this,v).findAll(s).map(({queryKey:e,state:t})=>{const i=t.data;return[e,i]})}setQueryData(s,e,t){const i=this.defaultQueryOptions({queryKey:s}),n=r(this,v).get(i.queryHash),a=n==null?void 0:n.state.data,h=Je(e,a);if(h!==void 0)return r(this,v).build(this,i).setData(h,{...t,manual:!0})}setQueriesData(s,e,t){return F.batch(()=>r(this,v).findAll(s).map(({queryKey:i})=>[i,this.setQueryData(i,e,t)]))}getQueryState(s){var t;const e=this.defaultQueryOptions({queryKey:s});return(t=r(this,v).get(e.queryHash))==null?void 0:t.state}removeQueries(s){const e=r(this,v);F.batch(()=>{e.findAll(s).forEach(t=>{e.remove(t)})})}resetQueries(s,e){const t=r(this,v);return F.batch(()=>(t.findAll(s).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...s},e)))}cancelQueries(s,e={}){const t={revert:!0,...e},i=F.batch(()=>r(this,v).findAll(s).map(n=>n.cancel(t)));return Promise.all(i).then(M).catch(M)}invalidateQueries(s,e={}){return F.batch(()=>(r(this,v).findAll(s).forEach(t=>{t.invalidate()}),(s==null?void 0:s.refetchType)==="none"?Promise.resolve():this.refetchQueries({...s,type:(s==null?void 0:s.refetchType)??(s==null?void 0:s.type)??"active"},e)))}refetchQueries(s,e={}){const t={...e,cancelRefetch:e.cancelRefetch??!0},i=F.batch(()=>r(this,v).findAll(s).filter(n=>!n.isDisabled()).map(n=>{let a=n.fetch(void 0,t);return t.throwOnError||(a=a.catch(M)),n.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(M)}fetchQuery(s){const e=this.defaultQueryOptions(s);e.retry===void 0&&(e.retry=!1);const t=r(this,v).build(this,e);return t.isStaleByTime(Se(e.staleTime,t))?t.fetch(e):Promise.resolve(t.state.data)}prefetchQuery(s){return this.fetchQuery(s).then(M).catch(M)}fetchInfiniteQuery(s){return s.behavior=Me(s.pages),this.fetchQuery(s)}prefetchInfiniteQuery(s){return this.fetchInfiniteQuery(s).then(M).catch(M)}ensureInfiniteQueryData(s){return s.behavior=Me(s.pages),this.ensureQueryData(s)}resumePausedMutations(){return ve.isOnline()?r(this,V).resumePausedMutations():Promise.resolve()}getQueryCache(){return r(this,v)}getMutationCache(){return r(this,V)}getDefaultOptions(){return r(this,$)}setDefaultOptions(s){o(this,$,s)}setQueryDefaults(s,e){r(this,re).set(oe(s),{queryKey:s,defaultOptions:e})}getQueryDefaults(s){const e=[...r(this,re).values()],t={};return e.forEach(i=>{ce(s,i.queryKey)&&Object.assign(t,i.defaultOptions)}),t}setMutationDefaults(s,e){r(this,ne).set(oe(s),{mutationKey:s,defaultOptions:e})}getMutationDefaults(s){const e=[...r(this,ne).values()],t={};return e.forEach(i=>{ce(s,i.mutationKey)&&Object.assign(t,i.defaultOptions)}),t}defaultQueryOptions(s){if(s._defaulted)return s;const e={...r(this,$).queries,...this.getQueryDefaults(s.queryKey),...s,_defaulted:!0};return e.queryHash||(e.queryHash=Oe(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Ce&&(e.enabled=!1),e}defaultMutationOptions(s){return s!=null&&s._defaulted?s:{...r(this,$).mutations,...(s==null?void 0:s.mutationKey)&&this.getMutationDefaults(s.mutationKey),...s,_defaulted:!0}}clear(){r(this,v).clear(),r(this,V).clear()}},v=new WeakMap,V=new WeakMap,$=new WeakMap,re=new WeakMap,ne=new WeakMap,B=new WeakMap,ae=new WeakMap,ue=new WeakMap,He);class z{constructor(e={}){this.apiUrl=e.apiUrl||"https://api.luzmo.com",this.apiVersion=e.apiVersion||"0.1.0",this.authKey=e.authKey||"",this.authToken=e.authToken||"",this.queryClient=new mt({defaultOptions:{queries:{staleTime:e.staleTime||5*60*1e3,gcTime:e.gcTime||10*60*1e3,retry:e.retry||3,retryDelay:e.retryDelay||(t=>Math.min(1e3*2**t,3e4))}}}),this.initNetworkListeners()}configure(e={}){if(e.apiVersion&&(this.apiVersion=e.apiVersion),e.apiUrl&&(this.apiUrl=e.apiUrl),e.authKey&&(this.authKey=e.authKey),e.authToken&&(this.authToken=e.authToken),e.staleTime||e.gcTime||e.retry){const t={};e.staleTime&&(t.staleTime=e.staleTime),e.gcTime&&(t.gcTime=e.gcTime),e.retry&&(t.retry=e.retry),this.queryClient.setDefaultOptions({queries:{...this.queryClient.getDefaultOptions().queries,...t}})}}initNetworkListeners(){typeof window<"u"&&window.addEventListener("online",()=>{console.warn("Network connection restored, refreshing data..."),this.refreshAll()})}getHeaders(e={}){return{"Content-Type":"application/json",...e}}async fetchApi(e,t,i={}){const n=`${this.apiUrl}/${this.apiVersion}${e}`,h={method:i.method||"POST",headers:this.getHeaders(i.headers),mode:"cors",...i};t!==void 0&&(t.key=this.authKey,t.token=this.authToken,h.body=JSON.stringify(t));try{const u=await fetch(n,h);if(!u.ok){const d=await u.json().catch(()=>null);throw u.status===401||u.status===403?new Error("Authentication failed. Please check your API token."):u.status===404?new Error(`Resource not found: ${e}`):u.status===429?new Error("Rate limit exceeded. Please try again later."):new Error((d==null?void 0:d.message)||`API request failed with status ${u.status}`)}return await u.json()}catch(u){throw console.error(`API request to ${e} failed:`,u),u instanceof Error&&(u.endpoint=e,u.timestamp=new Date().toISOString()),u}}async fetchAllDatasets(e={}){const t=e.offset||0,i=e.limit||50,n=["datasets",t,i];return await this.queryClient.fetchQuery({queryKey:n,queryFn:async()=>{const a={action:"get",version:this.apiVersion,find:{where:{type:"dataset"},limit:i,offset:t}},h=await this.fetchApi("/securable",a);return{data:(h==null?void 0:h.rows)||[],pagination:{offset:t,limit:i,total:(h==null?void 0:h.count)??0,pages:Math.ceil(((h==null?void 0:h.count)??0)/i)}}}})}async searchDatasets(e,t){if(!e)return[];const i=["datasets","search",e,t];return await this.queryClient.fetchQuery({queryKey:i,queryFn:async()=>{const n={action:"get",version:this.apiVersion,find:{where:{type:"dataset"}}};(e==null?void 0:e.length)>0&&(n.find.search={match_types:["name"],keyphrase:e}),t!=null&&t.offset&&(n.find.offset=t==null?void 0:t.offset),t!=null&&t.limit&&(n.find.limit=t==null?void 0:t.limit);const a=await this.fetchApi("/securable",n),h={data:(a==null?void 0:a.rows)||[]};return t!=null&&t.limit&&(h.pagination={offset:(t==null?void 0:t.offset)??0,limit:t==null?void 0:t.limit,total:(a==null?void 0:a.count)??0,pages:Math.ceil(((a==null?void 0:a.count)??0)/(t==null?void 0:t.limit))}),h}})}async fetchDatasetsWithColumnsAndFormulas(e){if(!e||e.length===0)throw new Error("At least one dataset ID is required");const t=["datasets",e];return await this.queryClient.fetchQuery({queryKey:t,queryFn:async()=>{const i={action:"get",version:this.apiVersion,find:{where:{type:"dataset",id:{in:e}},attributes:["name","id"],include:[{model:"Column",attributes:["id","name","description","type","subtype","format","hidden","lowestLevel"]},{model:"Formula",attributes:["id","name","description","type","subtype","format","hidden","lowestLevel"]}]}},n=await this.fetchApi("/securable",i);return(n==null?void 0:n.rows)||[]}})}async fetchDataset(e){if(!e)throw new Error("Dataset ID is required");const t=["dataset",e];return await this.queryClient.fetchQuery({queryKey:t,queryFn:async()=>{var a;const i={action:"get",version:this.apiVersion,find:{where:{type:"dataset",id:e},attributes:["name","id"],include:[{model:"Column"},{model:"Formula"}]}},n=await this.fetchApi("/securable",i);return((a=n==null?void 0:n.rows)==null?void 0:a[0])||null}})}async fetchData(e){if(!e)throw new Error("Query is required");const t=["data",e];return await this.queryClient.fetchQuery({queryKey:t,queryFn:async()=>{const i={action:"get",version:this.apiVersion,find:{queries:[e]}},n=await this.fetchApi("/data",i);return{data:(n==null?void 0:n.data)||[],performance:(n==null?void 0:n.performance)||{}}}})}refreshAll(){this.queryClient.refetchQueries()}invalidateDatasetData(e){e?(this.queryClient.invalidateQueries({queryKey:["dataset",e]}),this.queryClient.invalidateQueries({queryKey:["columns",e]})):this.queryClient.invalidateQueries({queryKey:["datasets"]})}invalidateAll(){this.queryClient.clear()}static getInstance(e={}){return z.instance?Object.keys(e).length>0&&z.instance.configure(e):z.instance=new z(e),z.instance}}const vt=z.getInstance();exports.dataBroker=vt;
|
@@ -1,86 +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 l=require("./base-D76d76ww-tT6yr8eb.cjs"),n=require("./if-defined-DOaE2coe-Cvlu5s9n.cjs"),v=require("./query-assigned-nodes-C76XVPWY-BW2w3V7-.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 C=Object.defineProperty,u=(i,t,s,h)=>{for(var e=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(e=o(t,s,e)||e);return e&&C(t,s,e),e};function $(i){class t extends i{renderAnchor({id:h,className:e,ariaHidden:r,labelledby:o,tabindex:f,anchorContent:a=l.Rt`<slot></slot>`}){return l.Rt`
|
37
|
-
<a
|
38
|
-
id=${h}
|
39
|
-
class=${n.m(e)}
|
40
|
-
href=${n.m(this.href)}
|
41
|
-
download=${n.m(this.download)}
|
42
|
-
target=${n.m(this.target)}
|
43
|
-
aria-label=${n.m(this.label)}
|
44
|
-
aria-labelledby=${n.m(o)}
|
45
|
-
aria-hidden=${n.m(r?"true":void 0)}
|
46
|
-
tabindex=${n.m(f)}
|
47
|
-
referrerpolicy=${n.m(this.referrerpolicy)}
|
48
|
-
rel=${n.m(this.rel)}
|
49
|
-
>${a}</a>
|
50
|
-
`}}return u([l.zt()],t.prototype,"download"),u([l.zt()],t.prototype,"label"),u([l.zt()],t.prototype,"href"),u([l.zt()],t.prototype,"target"),u([l.zt()],t.prototype,"referrerpolicy"),u([l.zt()],t.prototype,"rel"),t}/*! * Lucero - The design system for Luzmo.
|
51
|
-
*
|
52
|
-
* Copyright © 2025 Luzmo
|
53
|
-
* All rights reserved.
|
54
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
55
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
56
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
57
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
58
|
-
*
|
59
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
60
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
61
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
62
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
63
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
64
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
65
|
-
* SOFTWARE.
|
66
|
-
* *//**
|
67
|
-
* @license
|
68
|
-
* Copyright 2021 Google LLC
|
69
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
70
|
-
*/class g{constructor(t,{target:s,config:h,callback:e,skipInitial:r}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,s!==null&&this.t.add(s??t),this.l=h,this.o=r??this.o,this.callback=e,window.MutationObserver?(this.u=new MutationObserver(o=>{this.handleChanges(o),this.h.requestUpdate()}),t.addController(this)):console.warn("MutationController error: browser does not support MutationObserver.")}handleChanges(t){var s;this.value=(s=this.callback)==null?void 0:s.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){const t=this.u.takeRecords();(t.length||!this.o&&this.i)&&this.handleChanges(t),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}disconnect(){this.u.disconnect()}}/*! * Lucero - The design system for Luzmo.
|
71
|
-
*
|
72
|
-
* Copyright © 2025 Luzmo
|
73
|
-
* All rights reserved.
|
74
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
75
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
76
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
77
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
78
|
-
*
|
79
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
80
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
81
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
82
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
83
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
84
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
85
|
-
* SOFTWARE.
|
86
|
-
* */var w=Object.defineProperty,m=(i,t,s,h)=>{for(var e=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(e=o(t,s,e)||e);return e&&w(t,s,e),e};const b=Symbol("assignedNodes");function x(i,t,s=[]){var h,e;const r=f=>a=>f.matches(a);class o extends(e=i,h=b,e){constructor(...a){super(a),this.slotHasContent=!1,new g(this,{config:{characterData:!0,subtree:!0},callback:p=>{for(const d of p)if(d.type==="characterData"){this.manageTextObservedSlot();return}}})}manageTextObservedSlot(){if(!this[b])return;const a=[...this[b]].filter(p=>{const d=p;return d.tagName?!s.some(r(d)):d.textContent?d.textContent.trim():!1});this.slotHasContent=a.length>0}update(a){if(!this.hasUpdated){const{childNodes:p}=this,d=[...p].filter(y=>{const c=y;return c.tagName?s.some(r(c))?!1:t?c.getAttribute("slot")===t:!c.hasAttribute("slot"):c.textContent?c.textContent.trim():!1});this.slotHasContent=d.length>0}super.update(a)}firstUpdated(a){super.firstUpdated(a),this.updateComplete.then(()=>{this.manageTextObservedSlot()})}}return m([l.zt({type:Boolean,attribute:!1})],o.prototype,"slotHasContent"),m([v.m({slot:t,flatten:!0})],o.prototype,h),o}exports.a=g;exports.b=$;exports.y=x;
|