@luzmo/analytics-components-kit 1.0.9-beta.1 → 1.0.9-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/components/ai-chat/index.cjs +1 -1
- package/components/ai-chat/index.js +2 -9
- package/components/{ai-chat-PesGGOLP.js → ai-chat-CVxHPPvM.js} +3 -2
- package/components/{ai-chat-1OlRpimu.cjs → ai-chat-DEVIxsRP.cjs} +1 -1
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -8
- package/components/{ai-interaction-textarea-CmFGJzbb.cjs → ai-interaction-textarea-D_Lw29_i.cjs} +1 -1
- package/components/{ai-interaction-textarea-BXKG2elT.js → ai-interaction-textarea-i9SabsmQ.js} +3 -2
- package/components/{area-chart-positioning.config-C37nmNfP.cjs → area-chart-positioning.config-B8xSL1XU.cjs} +1 -1
- package/components/{area-chart-positioning.config-CF8Z7PuX.js → area-chart-positioning.config-C0_dxknc.js} +1 -1
- package/components/{bar-chart-positioning.config-vuRQZsYr.js → bar-chart-positioning.config-B4fazkYv.js} +1 -1
- package/components/{bar-chart-positioning.config-C4ii41mE.cjs → bar-chart-positioning.config-B6A5m0ZR.cjs} +1 -1
- package/components/{base-8L8Jt2vi.js → base-BRTs2KqJ.js} +29 -30
- package/components/base-BWU343D_.cjs +20 -0
- package/components/{box-plot-positioning.config-DMIsI9yU.js → box-plot-positioning.config-BI9F_JjL.js} +1 -1
- package/components/{box-plot-positioning.config-D2LpbgQ_.cjs → box-plot-positioning.config-DVXXjP8U.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-Btak-zwN.cjs → bubble-chart-positioning.config-C0tGI4fC.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-jYu0Q0Mc.js → bubble-chart-positioning.config-DXhama4z.js} +1 -1
- package/components/{bullet-chart-positioning.config-BWHfPPyA.js → bullet-chart-positioning.config-Czlw32Ii.js} +1 -1
- package/components/{bullet-chart-positioning.config-CwoRVgNS.cjs → bullet-chart-positioning.config-Dmb_yizO.cjs} +1 -1
- package/components/{choropleth-map-positioning.config-KtxcLW7E.js → choropleth-map-positioning.config-BWJmEGy6.js} +1 -1
- package/components/{choropleth-map-positioning.config-DttV0Dk_.cjs → choropleth-map-positioning.config-JIj9p6-n.cjs} +1 -1
- package/components/{circle-pack-chart-positioning.config-N-rZvQjR.cjs → circle-pack-chart-positioning.config-D3Ogj0P9.cjs} +1 -1
- package/components/{circle-pack-chart-positioning.config-QBO-pwDr.js → circle-pack-chart-positioning.config-PhYH_yh8.js} +1 -1
- package/components/{circular-gauge-positioning.config-DKGmEpFj.js → circular-gauge-positioning.config-COSdEO1U.js} +1 -1
- package/components/{circular-gauge-positioning.config-Cf1zuLXa.cjs → circular-gauge-positioning.config-DxfZmoEP.cjs} +1 -1
- package/components/{column-chart-positioning.config-DcErS56C.cjs → column-chart-positioning.config-6OVsL5vU.cjs} +1 -1
- package/components/{column-chart-positioning.config-LkQSNtSH.js → column-chart-positioning.config-BRYZk4cF.js} +1 -1
- package/components/{combination-chart-positioning.config-Dzi93oAp.cjs → combination-chart-positioning.config-4qgeM8BL.cjs} +1 -1
- package/components/{combination-chart-positioning.config-7iAEpO7h.js → combination-chart-positioning.config-CTj23r8f.js} +1 -1
- package/components/{conditional-number-positioning.config-Bse6AKPP.js → conditional-number-positioning.config-BUdWeVNm.js} +1 -1
- package/components/{conditional-number-positioning.config-CTy0zLXu.cjs → conditional-number-positioning.config-Dg67t4VA.cjs} +1 -1
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.js +1 -8
- package/components/{data-field-CSm9APdz.js → data-field-CwC5VH16.js} +3 -2
- package/components/{data-field-D2y4cv9j.cjs → data-field-DHpgI_wv.cjs} +1 -1
- package/components/data-field-level/index.cjs +1 -1
- package/components/data-field-level/index.js +1 -8
- package/components/data-field-level-8-eOBdl6.cjs +55 -0
- package/components/{data-field-level-B0aj8c5M.js → data-field-level-Ben_W9pd.js} +2 -1
- package/components/data-field-panel/index.cjs +1 -1
- package/components/data-field-panel/index.js +1 -8
- package/components/data-field-panel-CiuTVMXF.cjs +87 -0
- package/components/{data-field-panel-DpBWJnes.js → data-field-panel-DppKRagT.js} +3 -2
- package/components/data-fields-select/index.cjs +1 -1
- package/components/data-fields-select/index.js +1 -8
- package/components/data-fields-select-DjDeBEj-.cjs +43 -0
- package/components/{data-fields-select-69TDpIG_.js → data-fields-select-HwMkrPAn.js} +1 -0
- package/components/dataset-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +1 -8
- package/components/{dataset-icon-CWT5Ju8w.js → dataset-icon-BEq1MNml.js} +1 -0
- package/components/dataset-icon-tec1Xulw.cjs +64 -0
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +1 -8
- package/components/dataset-selector-list-BL2uKzCy.cjs +75 -0
- package/components/{dataset-selector-list-DTMXvqfO.js → dataset-selector-list-BWavenTF.js} +2 -1
- package/components/dataset-selector-row/index.cjs +1 -1
- package/components/dataset-selector-row/index.js +1 -8
- package/components/{dataset-selector-row-gHWsZlrC.cjs → dataset-selector-row-BP4Txybx.cjs} +1 -1
- package/components/{dataset-selector-row-kiHtzZcP.js → dataset-selector-row-C_O6h4Ir.js} +2 -1
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -8
- package/components/display-settings-Dmvi7XT-.cjs +142 -0
- package/components/{display-settings-DKuvd62j.js → display-settings-V5AltVPN.js} +3 -2
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +1 -8
- package/components/{display-settings-binning-BkCNSkgf.js → display-settings-binning-BNofVnZE.js} +2 -1
- package/components/{display-settings-binning-DZKo_tBm.cjs → display-settings-binning-C1Fvc8tj.cjs} +1 -1
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +1 -8
- package/components/{display-settings-datetime-BTgriFcv.js → display-settings-datetime-CUR1w0k5.js} +2 -1
- package/components/{display-settings-datetime-DD7Oh-2T.cjs → display-settings-datetime-OiFwicTh.cjs} +1 -1
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +1 -8
- package/components/{display-settings-grand-totals-BsIZg67h.cjs → display-settings-grand-totals-Bi1OcC7p.cjs} +1 -1
- package/components/{display-settings-grand-totals-DH7AoyQY.js → display-settings-grand-totals-CgzHbK1K.js} +2 -1
- package/components/display-settings-numeric/index.cjs +1 -1
- package/components/display-settings-numeric/index.js +1 -8
- package/components/{display-settings-numeric-CsmrnEp2.cjs → display-settings-numeric-BQ_vQrnj.cjs} +1 -1
- package/components/{display-settings-numeric-CkFpOoWU.js → display-settings-numeric-CUWkiQtR.js} +2 -1
- package/components/display-settings-period-over-period/index.cjs +1 -1
- package/components/display-settings-period-over-period/index.js +1 -8
- package/components/{display-settings-period-over-period-Co37HcSm.cjs → display-settings-period-over-period-Br08rz7r.cjs} +1 -1
- package/components/{display-settings-period-over-period-CdI5wuL_.js → display-settings-period-over-period-C7cfSyIL.js} +2 -1
- package/components/{donut-chart-positioning.config-BThtaJEt.cjs → donut-chart-positioning.config-B4JdERSl.cjs} +1 -1
- package/components/{donut-chart-positioning.config-D2uG_Irk.js → donut-chart-positioning.config-CWGYZUec.js} +1 -1
- package/components/{evolution-number-positioning.config-DtYiv9oB.cjs → evolution-number-positioning.config-CqQeAPbN.cjs} +1 -1
- package/components/{evolution-number-positioning.config-BtjobZqK.js → evolution-number-positioning.config-DZ7SVvue.js} +1 -1
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -8
- package/components/{filter-expression-picker-C4kE_Thd.js → filter-expression-picker-3xcrAACt.js} +1 -0
- package/components/filter-expression-picker-BrtXMSBv.cjs +40 -0
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +1 -8
- package/components/{filter-item-Be6Z7NMz.js → filter-item-CH5sjhJy.js} +5 -4
- package/components/filter-item-C_h4rbuL.cjs +111 -0
- package/components/filter-parameter-picker/index.cjs +1 -1
- package/components/filter-parameter-picker/index.js +1 -8
- package/components/{filter-parameter-picker-Ba8bvoPZ.js → filter-parameter-picker-CB3uIoZ2.js} +1 -0
- package/components/filter-parameter-picker-DJKHZxlT.cjs +124 -0
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +1 -8
- package/components/{filter-value-picker-Dpua1vcJ.cjs → filter-value-picker-CW9vKpn1.cjs} +1 -1
- package/components/{filter-value-picker-DD206JZl.js → filter-value-picker-DeO855hf.js} +4 -3
- package/components/filter-value-picker-datetime/index.cjs +1 -1
- package/components/filter-value-picker-datetime/index.js +1 -8
- package/components/{filter-value-picker-datetime-Bj0YaPtB.js → filter-value-picker-datetime-B0lLveRY.js} +1 -0
- package/components/filter-value-picker-datetime-DapMI9Jr.cjs +51 -0
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +1 -8
- package/components/{filter-value-picker-hierarchy-ZMThNJYm.js → filter-value-picker-hierarchy-B2xSmjFz.js} +1 -0
- package/components/filter-value-picker-hierarchy-C9mJ8PH7.cjs +54 -0
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +1 -8
- package/components/{filter-value-picker-numeric-CVaDogFQ.js → filter-value-picker-numeric-CayroCHe.js} +1 -0
- package/components/{filter-value-picker-numeric-1Vxp_Vam.cjs → filter-value-picker-numeric-DE5h7dZN.cjs} +1 -1
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -8
- package/components/filters-CGqIDlPK.cjs +199 -0
- package/components/{filters-Cnm0Kwk3.js → filters-D5oua2IU.js} +2 -1
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +1 -8
- package/components/formula-8YhND5Y7.cjs +45 -0
- package/components/{formula-BE9bipho.js → formula-B4lrmE5g.js} +3 -2
- package/components/{formula-codemirror-B14vsZXJ.cjs → formula-codemirror-CBvQJGHq.cjs} +1 -1
- package/components/{formula-codemirror-xfm0QtJN.js → formula-codemirror-CVlF_Qyh.js} +4 -3
- package/components/{formula-display-store-8hohve9v.cjs → formula-display-store-BJvPYYsO.cjs} +1 -1
- package/components/{formula-display-store-JAaWuYNB.js → formula-display-store-D9MWhreP.js} +2 -2
- package/components/formula-editor/index.cjs +1 -1
- package/components/formula-editor/index.js +3 -10
- package/components/{formula-editor-DN87mT8q.js → formula-editor-BGT-QcuH.js} +6 -5
- package/components/{formula-editor-CkW-JfyT.cjs → formula-editor-De9Zj-9c.cjs} +1 -1
- package/components/formula-field/index.cjs +1 -1
- package/components/formula-field/index.js +1 -8
- package/components/formula-field--gNwmTRk.cjs +20 -0
- package/components/{formula-field-B1EMJOfK.js → formula-field-CQcnyXOD.js} +2 -1
- package/components/{formula-input-base-HL0Fg74x.js → formula-input-base-BdKh5O_E.js} +1 -1
- package/components/{formula-input-base-BCQXmd1P.cjs → formula-input-base-CZih19kC.cjs} +1 -1
- package/components/{funnel-chart-positioning.config-TVzSiV6I.js → funnel-chart-positioning.config-B6I8z0_N.js} +1 -1
- package/components/{funnel-chart-positioning.config-DeLnAGGT.cjs → funnel-chart-positioning.config-BhK0EStG.cjs} +1 -1
- package/components/{groupings-CODDxpbZ.js → groupings-C1WNuUBe.js} +1 -1
- package/components/{groupings-DKMq8DgS.cjs → groupings-CvXvU4Fr.cjs} +1 -1
- package/components/{heat-map-positioning.config-ddrgZXa9.cjs → heat-map-positioning.config-B9Njs88T.cjs} +1 -1
- package/components/{heat-map-positioning.config--wm9l7bB.js → heat-map-positioning.config-DAAt2hIR.js} +1 -1
- package/components/{heat-table-positioning.config-qMDSRhZR.cjs → heat-table-positioning.config-Cn7Ouv5g.cjs} +1 -1
- package/components/{heat-table-positioning.config-CIhhBEMg.js → heat-table-positioning.config-D6ChanEH.js} +1 -1
- package/components/{hexbin-map-positioning.config-E_BpcIFy.cjs → hexbin-map-positioning.config-BqfRSZbU.cjs} +1 -1
- package/components/{hexbin-map-positioning.config-S7VYUwVD.js → hexbin-map-positioning.config-CNId41q1.js} +1 -1
- package/components/index.cjs +1 -1
- package/components/index.js +54 -60
- package/components/interactive-viz-item/index.cjs +1 -1
- package/components/interactive-viz-item/index.js +1 -8
- package/components/{interactive-viz-item-cdShBZQA.js → interactive-viz-item-CzIT8K3I.js} +2 -1
- package/components/{interactive-viz-item--kqitfEZ.cjs → interactive-viz-item-DUyE1QEJ.cjs} +1 -1
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +1 -8
- package/components/{item-grid-xCM8AqRH.js → item-grid-BaW6EZ2a.js} +1 -0
- package/components/{item-grid-BfhqMuQA.cjs → item-grid-BcgBGxIq.cjs} +1 -1
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.js +1 -8
- package/components/item-option-8PQMxg8v.cjs +269 -0
- package/components/item-option-action-button-group/index.cjs +1 -1
- package/components/item-option-action-button-group/index.js +1 -8
- package/components/{item-option-action-button-group-4w8ub3cT.js → item-option-action-button-group-BcZTtikv.js} +2 -1
- package/components/item-option-action-button-group-zZp49Gbz.cjs +53 -0
- package/components/{item-option-base-BxQUwXzg.js → item-option-base-DJ9FLqmu.js} +1 -1
- package/components/{item-option-base-4Bwn-3Fc.cjs → item-option-base-K2pn6CrX.cjs} +1 -1
- package/components/item-option-color-palette-picker/index.cjs +1 -1
- package/components/item-option-color-palette-picker/index.js +1 -8
- package/components/item-option-color-palette-picker-B9JlHGA8.cjs +40 -0
- package/components/{item-option-color-palette-picker-D5nO-Bqb.js → item-option-color-palette-picker-DJX3MxcT.js} +2 -1
- package/components/item-option-color-picker/index.cjs +1 -1
- package/components/item-option-color-picker/index.js +1 -8
- package/components/{item-option-color-picker-CKokPQcS.js → item-option-color-picker-Dgz-VK03.js} +2 -1
- package/components/{item-option-color-picker-Bhv_k1uW.cjs → item-option-color-picker-ayYko5QB.cjs} +1 -1
- package/components/item-option-color-range/index.cjs +1 -1
- package/components/item-option-color-range/index.js +1 -8
- package/components/item-option-color-range-Cc8thG33.cjs +98 -0
- package/components/{item-option-color-range-DYsMbFEb.js → item-option-color-range-DibSfro5.js} +2 -1
- package/components/{item-option-DaAlj_OB.js → item-option-em2Lp2zJ.js} +2 -1
- package/components/item-option-guidelines/index.cjs +1 -1
- package/components/item-option-guidelines/index.js +1 -8
- package/components/{item-option-guidelines-CXl4Yla4.js → item-option-guidelines-DXUcdAel.js} +3 -2
- package/components/item-option-guidelines-h5-NrAYD.cjs +135 -0
- package/components/item-option-multi-language-field/index.cjs +1 -1
- package/components/item-option-multi-language-field/index.js +1 -8
- package/components/{item-option-multi-language-field-C75Hd2fG.cjs → item-option-multi-language-field-BlnTZCFJ.cjs} +1 -1
- package/components/{item-option-multi-language-field-S6Mt3k23.js → item-option-multi-language-field-Bqo9OeK4.js} +2 -1
- package/components/item-option-number-field/index.cjs +1 -1
- package/components/item-option-number-field/index.js +1 -8
- package/components/{item-option-number-field-CALw8q_J.js → item-option-number-field-BZHhCuuj.js} +2 -1
- package/components/{item-option-number-field-Bg5r0IAX.cjs → item-option-number-field-D9vv1Q-O.cjs} +1 -1
- package/components/item-option-panel/index.cjs +1 -1
- package/components/item-option-panel/index.js +1 -8
- package/components/{item-option-panel-DBXgOsM4.cjs → item-option-panel-Bo3sC4u5.cjs} +1 -1
- package/components/{item-option-panel-v7yUS9hb.js → item-option-panel-DvgDiRPH.js} +3 -2
- package/components/item-option-picker/index.cjs +1 -1
- package/components/item-option-picker/index.js +1 -8
- package/components/{item-option-picker-RFstpFwI.cjs → item-option-picker-D5xhm36O.cjs} +1 -1
- package/components/{item-option-picker-CZyzd3Nq.js → item-option-picker-cy0KK-ev.js} +2 -1
- package/components/item-option-position-picker/index.cjs +1 -1
- package/components/item-option-position-picker/index.js +1 -8
- package/components/item-option-position-picker-BJ35DWBL.cjs +32 -0
- package/components/{item-option-position-picker-C8cnHEH4.js → item-option-position-picker-BbYP1Jnh.js} +2 -1
- package/components/item-option-positions-number-field/index.cjs +1 -1
- package/components/item-option-positions-number-field/index.js +1 -8
- package/components/{item-option-positions-number-field-BJTY1qZR.js → item-option-positions-number-field-DO4z_aKu.js} +2 -1
- package/components/item-option-positions-number-field-DzYQoSpk.cjs +49 -0
- package/components/item-option-radio-button-group/index.cjs +1 -1
- package/components/item-option-radio-button-group/index.js +1 -8
- package/components/{item-option-radio-button-group-CN8TLtsV.cjs → item-option-radio-button-group-CF1gttvP.cjs} +1 -1
- package/components/{item-option-radio-button-group-vhm4r4_k.js → item-option-radio-button-group-DX7wCv8J.js} +2 -1
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.js +1 -8
- package/components/{item-option-slider-DbLPhpJd.cjs → item-option-slider-DeGmGyZE.cjs} +1 -1
- package/components/{item-option-slider-CQOKWBZQ.js → item-option-slider-z1CwX5mE.js} +2 -1
- package/components/item-option-switch/index.cjs +1 -1
- package/components/item-option-switch/index.js +1 -8
- package/components/{item-option-switch-CWpb0nf3.cjs → item-option-switch-D3jq7jIt.cjs} +1 -1
- package/components/{item-option-switch-azZX2vJr.js → item-option-switch-D41KguKr.js} +2 -1
- package/components/item-option-text-field/index.cjs +1 -1
- package/components/item-option-text-field/index.js +1 -8
- package/components/{item-option-text-field-CIM_38yi.js → item-option-text-field-CnFcApMz.js} +2 -1
- package/components/{item-option-text-field-CS3Lccda.cjs → item-option-text-field-cXy2sx5N.cjs} +1 -1
- package/components/item-slot-drop/index.cjs +1 -1
- package/components/item-slot-drop/index.js +1 -8
- package/components/item-slot-drop-CtEMLkmt.cjs +91 -0
- package/components/{item-slot-drop-DeZ2GvAu.js → item-slot-drop-YAKpKb2-.js} +5 -4
- package/components/item-slot-drop-panel/index.cjs +1 -1
- package/components/item-slot-drop-panel/index.js +1 -8
- package/components/{item-slot-drop-panel-LpfX7ap0.js → item-slot-drop-panel-JZtBKPJu.js} +39 -38
- package/components/item-slot-drop-panel-aom0ugTz.cjs +57 -0
- package/components/item-slot-picker/index.cjs +1 -1
- package/components/item-slot-picker/index.js +1 -8
- package/components/{item-slot-picker-BSO1ltXC.js → item-slot-picker-D-FvHowO.js} +6 -5
- package/components/{item-slot-picker-CvySq194.cjs → item-slot-picker-D8h7QXGD.cjs} +1 -1
- package/components/item-slot-picker-panel/index.cjs +1 -1
- package/components/item-slot-picker-panel/index.js +1 -8
- package/components/item-slot-picker-panel-C98lpd4g.cjs +81 -0
- package/components/{item-slot-picker-panel-CsntXcAp.js → item-slot-picker-panel-g4JDw1M_.js} +3 -2
- package/components/{line-chart-positioning.config-DMe1Ldwk.cjs → line-chart-positioning.config-BZUWqKWz.cjs} +1 -1
- package/components/{line-chart-positioning.config-CrreArf5.js → line-chart-positioning.config-C3VzNcws.js} +1 -1
- package/components/{marker-map-positioning.config-DW9tMO2M.js → marker-map-positioning.config-BlvgG6yX.js} +1 -1
- package/components/{marker-map-positioning.config-CpI8nCtC.cjs → marker-map-positioning.config-CGF74mJI.cjs} +1 -1
- package/components/{ohlc-chart-positioning.config-9DETh4xy.cjs → ohlc-chart-positioning.config-B__cD7Wo.cjs} +1 -1
- package/components/{ohlc-chart-positioning.config-CkX8gyS2.js → ohlc-chart-positioning.config-BdbEgiry.js} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-CLDZdGdh.cjs → parallel-coordinates-plot-positioning.config-BqdmUJLk.cjs} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-DTJZLEeT.js → parallel-coordinates-plot-positioning.config-DNu5qhNR.js} +1 -1
- package/components/{pivot-table-positioning.config-CtSYHD-n.js → pivot-table-positioning.config-CUfnXIHj.js} +1 -1
- package/components/{pivot-table-positioning.config-B-SALuVb.cjs → pivot-table-positioning.config-DDpgWCZ7.cjs} +1 -1
- package/components/{pyramid-chart-positioning.config-BllFtneP.cjs → pyramid-chart-positioning.config-B2TxqefZ.cjs} +1 -1
- package/components/{pyramid-chart-positioning.config-0Juiava5.js → pyramid-chart-positioning.config-CZBcrHEG.js} +1 -1
- package/components/{radar-chart-positioning.config-BY4RKNDi.cjs → radar-chart-positioning.config-ddvHAHJF.cjs} +1 -1
- package/components/{radar-chart-positioning.config-BPbb63S6.js → radar-chart-positioning.config-j1WOeFnM.js} +1 -1
- package/components/{route-map-positioning.config-D6nZFd8f.js → route-map-positioning.config-ChBYybF1.js} +1 -1
- package/components/{route-map-positioning.config-GQ9AJfej.cjs → route-map-positioning.config-xBhhxtYu.cjs} +1 -1
- package/components/{sankey-diagram-positioning.config-R1EjoR5F.js → sankey-diagram-positioning.config-CudMit_S.js} +1 -1
- package/components/{sankey-diagram-positioning.config-DAuj5A08.cjs → sankey-diagram-positioning.config-tZu-dDV-.cjs} +1 -1
- package/components/{scatter-plot-positioning.config-DGoMnNZy.js → scatter-plot-positioning.config-BoJEGmgK.js} +1 -1
- package/components/{scatter-plot-positioning.config-o4c-wuRo.cjs → scatter-plot-positioning.config-DQOtIhJi.cjs} +1 -1
- package/components/{slicer-filter-positioning.config-D_didkcw.js → slicer-filter-positioning.config-CY4jw7_A.js} +1 -1
- package/components/{slicer-filter-positioning.config-BqpIENEm.cjs → slicer-filter-positioning.config-CZY2fvwt.cjs} +1 -1
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +1 -8
- package/components/slot-menu-Bl6PrLIN.cjs +71 -0
- package/components/{slot-menu-CUdbaW3K.js → slot-menu-hIK2_qR3.js} +4 -3
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +1 -8
- package/components/{slot-menu-list-DVSxamVa.js → slot-menu-list-BgwZS32Q.js} +2 -1
- package/components/{slot-menu-list-DaHzz_ve.cjs → slot-menu-list-BhgD2zt4.cjs} +1 -1
- package/components/{speedometer-chart-positioning.config-eVUWDhkL.cjs → speedometer-chart-positioning.config-D3CWnYTb.cjs} +1 -1
- package/components/{speedometer-chart-positioning.config-CmxsV4-x.js → speedometer-chart-positioning.config-cBMverSU.js} +1 -1
- package/components/{spike-map-positioning.config-B38djRlf.cjs → spike-map-positioning.config-i7ntIkN5.cjs} +1 -1
- package/components/{spike-map-positioning.config-Bta7ar9e.js → spike-map-positioning.config-vuoKutnj.js} +1 -1
- package/components/{strip-plot-positioning.config-atH68L8u.cjs → strip-plot-positioning.config-C2H-io7l.cjs} +1 -1
- package/components/{strip-plot-positioning.config-0vlAfmDB.js → strip-plot-positioning.config-_-ElbWoV.js} +1 -1
- package/components/{sunburst-chart-positioning.config-NFzFNuXB.cjs → sunburst-chart-positioning.config-MB8z_ZfG.cjs} +1 -1
- package/components/{sunburst-chart-positioning.config-B2x6afBV.js → sunburst-chart-positioning.config-yzTnv1BQ.js} +1 -1
- package/components/{symbol-map-positioning.config-B6v9PFTk.js → symbol-map-positioning.config-BPkEp4Pj.js} +1 -1
- package/components/{symbol-map-positioning.config-DGpmp_N1.cjs → symbol-map-positioning.config-L11e_Z3x.cjs} +1 -1
- package/components/tokens-BWMfo_w4.cjs +20 -0
- package/components/tokens-Ov1pCR4Y.js +29 -0
- package/components/{treemap-chart-positioning.config-NMULB8UM.cjs → treemap-chart-positioning.config-40_GcY2u.cjs} +1 -1
- package/components/{treemap-chart-positioning.config-Bf2VNVRQ.js → treemap-chart-positioning.config-CitiBQB2.js} +1 -1
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +1 -1
- package/components/{venn-diagram-positioning.config-DgOl0Vh-.js → venn-diagram-positioning.config-A28suR_R.js} +1 -1
- package/components/{venn-diagram-positioning.config-D4cODPGV.cjs → venn-diagram-positioning.config-C7bkb2Qv.cjs} +1 -1
- package/components/viz-item-menu/index.cjs +1 -1
- package/components/viz-item-menu/index.js +1 -8
- package/components/viz-item-menu/viz-item-menu.d.ts +7 -0
- package/components/{viz-item-menu-L_j0L08h.js → viz-item-menu-DsIJZRgm.js} +44 -11
- package/components/viz-item-menu-DtHlgOqt.cjs +63 -0
- package/components/{wordcloud-chart-positioning.config-DZEkWvb0.cjs → wordcloud-chart-positioning.config-BQFzFNko.cjs} +1 -1
- package/components/{wordcloud-chart-positioning.config-BP6iqy-N.js → wordcloud-chart-positioning.config-Dk13J1zq.js} +1 -1
- package/package.json +3 -3
- package/react/package.json +2 -2
- package/standalone/chunks/area-chart-options.config-CXWPLl-0.js +2 -0
- package/standalone/chunks/area-chart-options.de-Dr8RVJtb.js +2 -0
- package/standalone/chunks/area-chart-options.en-DV1AZ274.js +2 -0
- package/standalone/chunks/area-chart-options.es-Cg7uU7OK.js +2 -0
- package/standalone/chunks/area-chart-options.fr-CJjgrAt2.js +2 -0
- package/standalone/chunks/area-chart-options.nl-CTGxVXNo.js +2 -0
- package/standalone/chunks/area-chart-slots.config-Bxvau_Ii.js +2 -0
- package/standalone/chunks/axis-options.config-DP9f04t6.js +2 -0
- package/standalone/chunks/axis-options.i18n-BwkGC9PX.js +2 -0
- package/standalone/chunks/bar-chart-options.config-w4REKu0t.js +2 -0
- package/standalone/chunks/bar-chart-options.de-DCVBVtFi.js +2 -0
- package/standalone/chunks/bar-chart-options.en-B4xiZxTy.js +2 -0
- package/standalone/chunks/bar-chart-options.es-UqehXB9Z.js +2 -0
- package/standalone/chunks/bar-chart-options.fr-CaUBeZBK.js +2 -0
- package/standalone/chunks/bar-chart-options.nl-C2tFvUE8.js +2 -0
- package/standalone/chunks/bar-chart-slots.config-BWQoKCYJ.js +2 -0
- package/standalone/chunks/base-DOKoeL4P.js +2 -0
- package/standalone/chunks/bliss-BS5cbLqS.js +2 -0
- package/standalone/chunks/box-plot-options.config-BlYMd4FN.js +2 -0
- package/standalone/chunks/box-plot-options.de-RDAv8kHb.js +2 -0
- package/standalone/chunks/box-plot-options.en-kGLfLsv3.js +2 -0
- package/standalone/chunks/box-plot-options.es-Dw3ivv22.js +2 -0
- package/standalone/chunks/box-plot-options.fr-De5nkQNr.js +2 -0
- package/standalone/chunks/box-plot-options.nl-DD1f-Nlt.js +2 -0
- package/standalone/chunks/box-plot-slots.config-4hmeA6nr.js +2 -0
- package/standalone/chunks/bubble-chart-options.config-BKPTymfC.js +2 -0
- package/standalone/chunks/bubble-chart-options.de-C4pA9ZdS.js +2 -0
- package/standalone/chunks/bubble-chart-options.en-DM-MH8pT.js +2 -0
- package/standalone/chunks/bubble-chart-options.es-C2VE7E7k.js +2 -0
- package/standalone/chunks/bubble-chart-options.fr-BugyvkW9.js +2 -0
- package/standalone/chunks/bubble-chart-options.nl-oDPNybDE.js +2 -0
- package/standalone/chunks/bubble-chart-slots.config-CqTUMwvW.js +2 -0
- package/standalone/chunks/bullet-chart-options.config-Cc5lKDjs.js +2 -0
- package/standalone/chunks/bullet-chart-options.de-Ci81seQn.js +2 -0
- package/standalone/chunks/bullet-chart-options.en-Dk95moRX.js +2 -0
- package/standalone/chunks/bullet-chart-options.es-eIqahAOr.js +2 -0
- package/standalone/chunks/bullet-chart-options.fr-CEABbpT0.js +2 -0
- package/standalone/chunks/bullet-chart-options.nl-B3gOPn5D.js +2 -0
- package/standalone/chunks/bullet-chart-slots.config-BiFMJsgN.js +2 -0
- package/standalone/chunks/calculate-data-field-icon-CrEVAfzJ.js +2 -0
- package/standalone/chunks/choropleth-map-options.config-Ul1FSTwf.js +2 -0
- package/standalone/chunks/choropleth-map-options.de-eALhIYgW.js +2 -0
- package/standalone/chunks/choropleth-map-options.en-DNdPCTz7.js +2 -0
- package/standalone/chunks/choropleth-map-options.es-BoHXBNpE.js +2 -0
- package/standalone/chunks/choropleth-map-options.fr-Di8f-OWA.js +2 -0
- package/standalone/chunks/choropleth-map-options.nl-XKS-glHm.js +2 -0
- package/standalone/chunks/choropleth-map-slots.config-CRF7J3QP.js +2 -0
- package/standalone/chunks/circle-pack-chart-options.config-CjDkh4DG.js +2 -0
- package/standalone/chunks/circle-pack-chart-options.de-Dwf0pYf1.js +2 -0
- package/standalone/chunks/circle-pack-chart-options.en-DhCFF4vx.js +2 -0
- package/standalone/chunks/circle-pack-chart-options.es-DDKEbXse.js +2 -0
- package/standalone/chunks/circle-pack-chart-options.fr-Dezqd3QL.js +2 -0
- package/standalone/chunks/circle-pack-chart-options.nl-BNXyskRD.js +2 -0
- package/standalone/chunks/circle-pack-chart-slots.config-Deq7IUoK.js +2 -0
- package/standalone/chunks/circular-gauge-options.config-p2zb-ORR.js +2 -0
- package/standalone/chunks/circular-gauge-options.de-DXGoiD0i.js +2 -0
- package/standalone/chunks/circular-gauge-options.en-SHYrAgsX.js +2 -0
- package/standalone/chunks/circular-gauge-options.es-D4xJXTQ-.js +2 -0
- package/standalone/chunks/circular-gauge-options.fr-6vBd5iUe.js +2 -0
- package/standalone/chunks/circular-gauge-options.nl-CDoO99Is.js +2 -0
- package/standalone/chunks/circular-gauge-slots.config-C7yUFfFJ.js +2 -0
- package/standalone/chunks/classic-CHhNczKi.js +2 -0
- package/standalone/chunks/classic-dark-Cmrn7jod.js +2 -0
- package/standalone/chunks/color-DaeCRJ5Q.js +2 -0
- package/standalone/chunks/color-palettes-B41FvzWH.js +2 -0
- package/standalone/chunks/color-range-utils-CLqVCA5J.js +2 -0
- package/standalone/chunks/column-chart-options.config-v7fBgXRI.js +2 -0
- package/standalone/chunks/column-chart-options.de-OoMpZc7N.js +2 -0
- package/standalone/chunks/column-chart-options.en-B4xiZxTy.js +2 -0
- package/standalone/chunks/column-chart-options.es-BL-wKXpp.js +2 -0
- package/standalone/chunks/column-chart-options.fr-CaUBeZBK.js +2 -0
- package/standalone/chunks/column-chart-options.nl-C2tFvUE8.js +2 -0
- package/standalone/chunks/column-chart-slots.config-ZBLvqhEb.js +2 -0
- package/standalone/chunks/combination-chart-options.config-C9hmUPal.js +2 -0
- package/standalone/chunks/combination-chart-options.de-ChlEhT09.js +2 -0
- package/standalone/chunks/combination-chart-options.en-DhCXqnwj.js +2 -0
- package/standalone/chunks/combination-chart-options.es-DESqZp0U.js +2 -0
- package/standalone/chunks/combination-chart-options.fr-v6P2xQCi.js +2 -0
- package/standalone/chunks/combination-chart-options.nl-D8ato2ve.js +2 -0
- package/standalone/chunks/combination-chart-slots.config-BNVJfRB2.js +2 -0
- package/standalone/chunks/conditional-number-options.config-hdARPTD7.js +2 -0
- package/standalone/chunks/conditional-number-options.de-BNkYWqfn.js +2 -0
- package/standalone/chunks/conditional-number-options.en-J7yPXdbP.js +2 -0
- package/standalone/chunks/conditional-number-options.es-CKDTBiYp.js +2 -0
- package/standalone/chunks/conditional-number-options.fr-BX1cbt1S.js +2 -0
- package/standalone/chunks/conditional-number-options.nl-6IE86oA9.js +2 -0
- package/standalone/chunks/conditional-number-slots.config-B4kqODqw.js +2 -0
- package/standalone/chunks/create-lazy-loader-DC0rJePE.js +2 -0
- package/standalone/chunks/cs-DLnr3a23.js +2 -0
- package/standalone/chunks/da-BJgbo0uE.js +2 -0
- package/standalone/chunks/data-broker-CbKNAOhf.js +2 -0
- package/standalone/chunks/date-comparison-filter-options.config-a_qCDcWA.js +2 -0
- package/standalone/chunks/date-comparison-filter-options.de-WqpVCnC1.js +2 -0
- package/standalone/chunks/date-comparison-filter-options.en-Obm6KfbI.js +2 -0
- package/standalone/chunks/date-comparison-filter-options.es-CxYTNaTq.js +2 -0
- package/standalone/chunks/date-comparison-filter-options.fr-DhrKNPxX.js +2 -0
- package/standalone/chunks/date-comparison-filter-options.nl-D2RV7246.js +2 -0
- package/standalone/chunks/date-comparison-filter-slots.config-DfHq9lB8.js +2 -0
- package/standalone/chunks/date-filter-options.config-DHTbxiWn.js +2 -0
- package/standalone/chunks/date-filter-options.de-B83VkpDz.js +2 -0
- package/standalone/chunks/date-filter-options.en-DKQexBC1.js +2 -0
- package/standalone/chunks/date-filter-options.es-DfDqzkVB.js +2 -0
- package/standalone/chunks/date-filter-options.fr-DoZy8DU8.js +2 -0
- package/standalone/chunks/date-filter-options.nl-DKtF0sFB.js +2 -0
- package/standalone/chunks/date-filter-slots.config-DHaOkULx.js +2 -0
- package/standalone/chunks/de-ClGscYPh.js +2 -0
- package/standalone/chunks/de-DPgYMyja.js +2 -0
- package/standalone/chunks/decompose-numeric-format-BXLQ97e2.js +2 -0
- package/standalone/chunks/default-Bi3Z4SMm.js +2 -0
- package/standalone/chunks/default-dark-C2ykXPQt.js +2 -0
- package/standalone/chunks/default-local-formats-CES1ItiK.js +2 -0
- package/standalone/chunks/display-settings-binning-CTWsdo0F.js +38 -0
- package/standalone/chunks/display-settings-datetime-CdxMI-9Q.js +199 -0
- package/standalone/chunks/display-settings-grand-totals-BCW8hefp.js +26 -0
- package/standalone/chunks/display-settings-numeric-D04OO7n9.js +172 -0
- package/standalone/chunks/display-settings-period-over-period-Bwjoji3a.js +209 -0
- package/standalone/chunks/donut-chart-options.config-BuZj-QX5.js +2 -0
- package/standalone/chunks/donut-chart-options.de-QusCBL9B.js +2 -0
- package/standalone/chunks/donut-chart-options.en-D0ligFH6.js +2 -0
- package/standalone/chunks/donut-chart-options.es-Bmn34sGt.js +2 -0
- package/standalone/chunks/donut-chart-options.fr-DGBawYKp.js +2 -0
- package/standalone/chunks/donut-chart-options.nl-DzNTu0v4.js +2 -0
- package/standalone/chunks/donut-chart-slots.config-7pDpzNBG.js +2 -0
- package/standalone/chunks/dropdown-filter-options.config-zwR7hmkX.js +2 -0
- package/standalone/chunks/dropdown-filter-options.de-dj6aTNQQ.js +2 -0
- package/standalone/chunks/dropdown-filter-options.en-DH7Jfk8Q.js +2 -0
- package/standalone/chunks/dropdown-filter-options.es-K2L8ln9j.js +2 -0
- package/standalone/chunks/dropdown-filter-options.fr-CMapzFiR.js +2 -0
- package/standalone/chunks/dropdown-filter-options.nl-BLAyit4D.js +2 -0
- package/standalone/chunks/dropdown-filter-slots.config-DkqLjilE.js +2 -0
- package/standalone/chunks/en-BD2RCLuw.js +2 -0
- package/standalone/chunks/en-GB-DnwmFNwC.js +2 -0
- package/standalone/chunks/en-US-BD2RCLuw.js +2 -0
- package/standalone/chunks/es-C56MpCO9.js +2 -0
- package/standalone/chunks/es-Dp1UuDDz.js +2 -0
- package/standalone/chunks/evolution-number-options.config-B5Cj0YAQ.js +2 -0
- package/standalone/chunks/evolution-number-options.de-Ch0LaHwI.js +2 -0
- package/standalone/chunks/evolution-number-options.en-riChGfa6.js +2 -0
- package/standalone/chunks/evolution-number-options.es-BdG3lvVQ.js +2 -0
- package/standalone/chunks/evolution-number-options.fr-_h0kLeRL.js +2 -0
- package/standalone/chunks/evolution-number-options.nl-CqycrLe1.js +2 -0
- package/standalone/chunks/evolution-number-slots.config-IqPfnCrw.js +2 -0
- package/standalone/chunks/fi-CLQ6vC7V.js +2 -0
- package/standalone/chunks/filters-C1yU7w2V.js +544 -0
- package/standalone/chunks/formatter-LzhH-XSQ.js +2 -0
- package/standalone/chunks/formula-codemirror-BAlhe79s.js +197 -0
- package/standalone/chunks/fr-BpNJieSH.js +2 -0
- package/standalone/chunks/fr-D8xrUEX4.js +2 -0
- package/standalone/chunks/funnel-chart-options.config-1SyJ_qYd.js +2 -0
- package/standalone/chunks/funnel-chart-options.de-BTxwd7Pe.js +2 -0
- package/standalone/chunks/funnel-chart-options.en-CmY-uO1P.js +2 -0
- package/standalone/chunks/funnel-chart-options.es-DLqBydsE.js +2 -0
- package/standalone/chunks/funnel-chart-options.fr-ztQ5OMZi.js +2 -0
- package/standalone/chunks/funnel-chart-options.nl-DVysx7tP.js +2 -0
- package/standalone/chunks/funnel-chart-slots.config-DfeuNGEL.js +2 -0
- package/standalone/chunks/guidelines-options.config-CS29_J9M.js +2 -0
- package/standalone/chunks/he-DHPb0VBo.js +2 -0
- package/standalone/chunks/heat-map-options.config-DYIrP8cV.js +2 -0
- package/standalone/chunks/heat-map-options.de-BfJMMX2Q.js +2 -0
- package/standalone/chunks/heat-map-options.en-Dr653pN6.js +2 -0
- package/standalone/chunks/heat-map-options.es-CklrBP1w.js +2 -0
- package/standalone/chunks/heat-map-options.fr-DwtCOHrA.js +2 -0
- package/standalone/chunks/heat-map-options.nl-DQBLussF.js +2 -0
- package/standalone/chunks/heat-map-slots.config-BVBzVjJJ.js +2 -0
- package/standalone/chunks/heat-table-options.config-ByHwT44G.js +2 -0
- package/standalone/chunks/heat-table-options.de-BMx67hXo.js +2 -0
- package/standalone/chunks/heat-table-options.en-BbobGoXs.js +2 -0
- package/standalone/chunks/heat-table-options.es-zKo-QMBY.js +2 -0
- package/standalone/chunks/heat-table-options.fr-XSTL1CSb.js +2 -0
- package/standalone/chunks/heat-table-options.nl-Cgcccsee.js +2 -0
- package/standalone/chunks/heat-table-slots.config-CcOl-PCp.js +2 -0
- package/standalone/chunks/helpers-DalWg6k7.js +2 -0
- package/standalone/chunks/hexbin-map-options.config-Elr44Jin.js +2 -0
- package/standalone/chunks/hexbin-map-options.de-C45yz1mZ.js +2 -0
- package/standalone/chunks/hexbin-map-options.en-CIrLRJJ1.js +2 -0
- package/standalone/chunks/hexbin-map-options.es-wf4yF2eW.js +2 -0
- package/standalone/chunks/hexbin-map-options.fr-C0SN47Nq.js +2 -0
- package/standalone/chunks/hexbin-map-options.nl-CweMyvfk.js +2 -0
- package/standalone/chunks/hexbin-map-slots.config-D6qVm4nj.js +2 -0
- package/standalone/chunks/hu-BpaYooip.js +2 -0
- package/standalone/chunks/image-options.config-Cj4r1ypi.js +2 -0
- package/standalone/chunks/image-options.de-CFUHfYzb.js +2 -0
- package/standalone/chunks/image-options.en-BIyq9f_H.js +2 -0
- package/standalone/chunks/image-options.es-BD---IOk.js +2 -0
- package/standalone/chunks/image-options.fr-BGFgsNTs.js +2 -0
- package/standalone/chunks/image-options.nl-DD1JEJSa.js +2 -0
- package/standalone/chunks/image-slots.config-CdWEUY0l.js +2 -0
- package/standalone/chunks/info-tooltip-options.config-DtfU5ZO8.js +2 -0
- package/standalone/chunks/info-tooltip-options.i18n-B_gjTq0R.js +2 -0
- package/standalone/chunks/interactivity-options.config-09eXx6k6.js +2 -0
- package/standalone/chunks/interactivity-options.i18n-BLDCmZkC.js +2 -0
- package/standalone/chunks/it-DWTvD2Xn.js +2 -0
- package/standalone/chunks/item-option-action-button-group-B3cugMc_.js +35 -0
- package/standalone/chunks/item-option-base-R8-N5_rE.js +38 -0
- package/standalone/chunks/item-option-color-palette-picker-CMZyo1NH.js +22 -0
- package/standalone/chunks/item-option-color-picker-59il-pkm.js +16 -0
- package/standalone/chunks/item-option-color-range-BWaElfwS.js +80 -0
- package/standalone/chunks/item-option-guidelines-BzvrNruz.js +117 -0
- package/standalone/chunks/item-option-multi-language-field-BNn4WFUG.js +15 -0
- package/standalone/chunks/item-option-number-field-_lCPA_qC.js +20 -0
- package/standalone/chunks/item-option-panel-CyE_83Hf.js +298 -0
- package/standalone/chunks/item-option-picker-CeK7QDTm.js +19 -0
- package/standalone/chunks/item-option-position-picker-BAWZpDBA.js +14 -0
- package/standalone/chunks/item-option-positions-number-field-DjhFmMAp.js +31 -0
- package/standalone/chunks/item-option-radio-button-group-DR7gdaTr.js +19 -0
- package/standalone/chunks/item-option-slider-C_jierlR.js +15 -0
- package/standalone/chunks/item-option-switch-DJfnhpf_.js +12 -0
- package/standalone/chunks/item-option-text-field-DNqL7Evw.js +15 -0
- package/standalone/chunks/item-slot-picker-panel-Bqmx51Yb.js +439 -0
- package/standalone/chunks/ja-CtDlXHD1.js +2 -0
- package/standalone/chunks/ko-CekuHU50.js +2 -0
- package/standalone/chunks/line-chart-options.config-DyqQLGw8.js +2 -0
- package/standalone/chunks/line-chart-options.de-BScjvJsI.js +2 -0
- package/standalone/chunks/line-chart-options.en-BVWFsre-.js +2 -0
- package/standalone/chunks/line-chart-options.es-CxNJevNs.js +2 -0
- package/standalone/chunks/line-chart-options.fr-LCsLx0Uh.js +2 -0
- package/standalone/chunks/line-chart-options.nl-BOgcjx48.js +2 -0
- package/standalone/chunks/line-chart-slots.config-CavGuJXK.js +2 -0
- package/standalone/chunks/lit-localize-CIGP-NUw.js +2 -0
- package/standalone/chunks/load-data-fields-for-datasets-_VJWUFPO.js +25 -0
- package/standalone/chunks/load-formula-codemirror-Cyqo4LoE.js +6 -0
- package/standalone/chunks/localize-BXHWaHdZ.js +2 -0
- package/standalone/chunks/localized-decorator-Buib6Rq1.js +2 -0
- package/standalone/chunks/localized-mixin-BEfBwOPN.js +2 -0
- package/standalone/chunks/luzmo-icon-markup-GqF25og5.js +13 -0
- package/standalone/chunks/luzmoAlignLeft-HA-XKPHy.js +2 -0
- package/standalone/chunks/luzmoAngleDown-PNrItYzK.js +2 -0
- package/standalone/chunks/luzmoBorderDotted-CWXwQ_Hm.js +2 -0
- package/standalone/chunks/luzmoCheckbox-BksyONqE.js +2 -0
- package/standalone/chunks/luzmoPlus-Dyrrz0v8.js +2 -0
- package/standalone/chunks/luzmoTrashOutline-DXZpJx7f.js +2 -0
- package/standalone/chunks/map-tile-providers-DZT1QZX_.js +2 -0
- package/standalone/chunks/marker-map-options.config-D_OTOZRe.js +2 -0
- package/standalone/chunks/marker-map-options.de-SuCAxwxR.js +2 -0
- package/standalone/chunks/marker-map-options.en-B-gl_14v.js +2 -0
- package/standalone/chunks/marker-map-options.es-CSJGCzjk.js +2 -0
- package/standalone/chunks/marker-map-options.fr-D5P_HjSn.js +2 -0
- package/standalone/chunks/marker-map-options.nl-DdeyYFJQ.js +2 -0
- package/standalone/chunks/marker-map-slots.config-CtzpU-rK.js +2 -0
- package/standalone/chunks/mk-Dq3YK4jD.js +2 -0
- package/standalone/chunks/nl-7csxtU-I.js +2 -0
- package/standalone/chunks/nl-BpTxEv-1.js +2 -0
- package/standalone/chunks/no-DJNRx8au.js +2 -0
- package/standalone/chunks/ohlc-chart-options.config-Bu2GKlAH.js +2 -0
- package/standalone/chunks/ohlc-chart-options.de-DeQ8wdeE.js +2 -0
- package/standalone/chunks/ohlc-chart-options.en-DopM1kPj.js +2 -0
- package/standalone/chunks/ohlc-chart-options.es-BKjQWwH0.js +2 -0
- package/standalone/chunks/ohlc-chart-options.fr-DWhV_lXz.js +2 -0
- package/standalone/chunks/ohlc-chart-options.nl-D8lhNKIv.js +2 -0
- package/standalone/chunks/ohlc-chart-slots.config-xYpPbmg2.js +2 -0
- package/standalone/chunks/orion-BHOu-xse.js +2 -0
- package/standalone/chunks/parallel-coordinates-plot-options.config-BcIYCRdF.js +2 -0
- package/standalone/chunks/parallel-coordinates-plot-options.de-Dvi0gBbB.js +2 -0
- package/standalone/chunks/parallel-coordinates-plot-options.en-LdifcLcc.js +2 -0
- package/standalone/chunks/parallel-coordinates-plot-options.es-DNisZWdC.js +2 -0
- package/standalone/chunks/parallel-coordinates-plot-options.fr-DwOBR0cp.js +2 -0
- package/standalone/chunks/parallel-coordinates-plot-options.nl-DCXeTldD.js +2 -0
- package/standalone/chunks/parallel-coordinates-plot-slots.config-DvJljfr8.js +2 -0
- package/standalone/chunks/period-over-period-condition.const-AC_onvUf.js +2 -0
- package/standalone/chunks/periods.const-Cie50jR4.js +2 -0
- package/standalone/chunks/pinky-CkEB6Fvc.js +2 -0
- package/standalone/chunks/pivot-table-options.config-BZpId1ju.js +2 -0
- package/standalone/chunks/pivot-table-options.de-B0l711Q7.js +2 -0
- package/standalone/chunks/pivot-table-options.en-D3MYHTWH.js +2 -0
- package/standalone/chunks/pivot-table-options.es-CDACogGQ.js +2 -0
- package/standalone/chunks/pivot-table-options.fr-C-w1sys8.js +2 -0
- package/standalone/chunks/pivot-table-options.nl-Dy9VJ1bm.js +2 -0
- package/standalone/chunks/pivot-table-slots.config-DZOE04Ea.js +2 -0
- package/standalone/chunks/pl-zDnuk9Gd.js +2 -0
- package/standalone/chunks/pt-BEVAH5AJ.js +2 -0
- package/standalone/chunks/pyramid-chart-options.config-CBd-pgn_.js +2 -0
- package/standalone/chunks/pyramid-chart-options.de-CBL_8UjH.js +2 -0
- package/standalone/chunks/pyramid-chart-options.en-CTozc1Uh.js +2 -0
- package/standalone/chunks/pyramid-chart-options.es-BKciL-nO.js +2 -0
- package/standalone/chunks/pyramid-chart-options.fr-B04m8B_b.js +2 -0
- package/standalone/chunks/pyramid-chart-options.nl-DIhj1NYF.js +2 -0
- package/standalone/chunks/pyramid-chart-slots.config-DKBFy-TL.js +2 -0
- package/standalone/chunks/radar-chart-options.config-CnQ8mbs9.js +2 -0
- package/standalone/chunks/radar-chart-options.de-_LSueG69.js +2 -0
- package/standalone/chunks/radar-chart-options.en-DBA8TpKJ.js +2 -0
- package/standalone/chunks/radar-chart-options.es-DjSsFQkP.js +2 -0
- package/standalone/chunks/radar-chart-options.fr-CCh2jYPS.js +2 -0
- package/standalone/chunks/radar-chart-options.nl-tZ0JRjXD.js +2 -0
- package/standalone/chunks/radar-chart-slots.config-CHauNDhi.js +2 -0
- package/standalone/chunks/radiant-BfVbXYeP.js +2 -0
- package/standalone/chunks/regular-table-options.config-BnhDzc-m.js +2 -0
- package/standalone/chunks/regular-table-options.de-DPmii-jp.js +2 -0
- package/standalone/chunks/regular-table-options.en-DQugncwx.js +2 -0
- package/standalone/chunks/regular-table-options.es-DzbTEFoh.js +2 -0
- package/standalone/chunks/regular-table-options.fr-roRCzuK8.js +2 -0
- package/standalone/chunks/regular-table-options.nl-DxYUm_Rz.js +2 -0
- package/standalone/chunks/regular-table-slots.config-BqEJgzhG.js +2 -0
- package/standalone/chunks/route-map-options.config-CWyA9_SB.js +2 -0
- package/standalone/chunks/route-map-options.de-Ke-Bybpi.js +2 -0
- package/standalone/chunks/route-map-options.en-CDXIcBc0.js +2 -0
- package/standalone/chunks/route-map-options.es-CCEXcHLb.js +2 -0
- package/standalone/chunks/route-map-options.fr-BXoMKK54.js +2 -0
- package/standalone/chunks/route-map-options.nl-U52AE8MW.js +2 -0
- package/standalone/chunks/route-map-slots.config-B5G4JVnI.js +2 -0
- package/standalone/chunks/royale-Bcd5VvC5.js +2 -0
- package/standalone/chunks/ru-Ceji1Fqk.js +2 -0
- package/standalone/chunks/sankey-diagram-options.config-Curc2-If.js +2 -0
- package/standalone/chunks/sankey-diagram-options.de-Bisx6mpj.js +2 -0
- package/standalone/chunks/sankey-diagram-options.en-DonChVRz.js +2 -0
- package/standalone/chunks/sankey-diagram-options.es-TCXmlth5.js +2 -0
- package/standalone/chunks/sankey-diagram-options.fr-B3iAnJNW.js +2 -0
- package/standalone/chunks/sankey-diagram-options.nl-BnXZQEKn.js +2 -0
- package/standalone/chunks/sankey-diagram-slots.config-jyKqjUsV.js +2 -0
- package/standalone/chunks/scatter-plot-options.config-BV9Lb6-v.js +2 -0
- package/standalone/chunks/scatter-plot-options.de-Dg3O1b2R.js +2 -0
- package/standalone/chunks/scatter-plot-options.en-CJH2ZlFW.js +2 -0
- package/standalone/chunks/scatter-plot-options.es-7kExRi4J.js +2 -0
- package/standalone/chunks/scatter-plot-options.fr-Bbkf8efT.js +2 -0
- package/standalone/chunks/scatter-plot-options.nl-zrEXoM-k.js +2 -0
- package/standalone/chunks/scatter-plot-slots.config-CF2Ii2Ez.js +2 -0
- package/standalone/chunks/search-filter-options.config-DPhYMtlJ.js +2 -0
- package/standalone/chunks/search-filter-options.de-DewLFwK0.js +2 -0
- package/standalone/chunks/search-filter-options.en-DyIupnO9.js +2 -0
- package/standalone/chunks/search-filter-options.es-Dx1WGz-q.js +2 -0
- package/standalone/chunks/search-filter-options.fr-BdnlKNNx.js +2 -0
- package/standalone/chunks/search-filter-options.nl-DsKcc6ke.js +2 -0
- package/standalone/chunks/search-filter-slots.config-BcTF-DAh.js +2 -0
- package/standalone/chunks/seasonal-f6I--CYV.js +2 -0
- package/standalone/chunks/slicer-filter-options.config-BQ1vpcTb.js +2 -0
- package/standalone/chunks/slicer-filter-options.de-v0So4hDH.js +2 -0
- package/standalone/chunks/slicer-filter-options.en-BkVZDku6.js +2 -0
- package/standalone/chunks/slicer-filter-options.es-BATOs827.js +2 -0
- package/standalone/chunks/slicer-filter-options.fr-DROih5R8.js +2 -0
- package/standalone/chunks/slicer-filter-options.nl-CT4HfMiT.js +2 -0
- package/standalone/chunks/slicer-filter-slots.config-DL3Q0Zbm.js +2 -0
- package/standalone/chunks/slider-filter-options.config-ZCkBkeXQ.js +2 -0
- package/standalone/chunks/slider-filter-options.de-BToTmIkJ.js +2 -0
- package/standalone/chunks/slider-filter-options.en-Du0cf6NC.js +2 -0
- package/standalone/chunks/slider-filter-options.es-6yGUkJ9r.js +2 -0
- package/standalone/chunks/slider-filter-options.fr-DeupuOm1.js +2 -0
- package/standalone/chunks/slider-filter-options.nl-K6BEul4-.js +2 -0
- package/standalone/chunks/slider-filter-slots.config-52Bs7zu3.js +2 -0
- package/standalone/chunks/spacer-options.config-DmYOnwBz.js +2 -0
- package/standalone/chunks/speedometer-chart-options.config-YmUv49lQ.js +2 -0
- package/standalone/chunks/speedometer-chart-options.de-CWVMBrx9.js +2 -0
- package/standalone/chunks/speedometer-chart-options.en-DtCdA113.js +2 -0
- package/standalone/chunks/speedometer-chart-options.es-BC1Y-Hje.js +2 -0
- package/standalone/chunks/speedometer-chart-options.fr-BqnVNM9x.js +2 -0
- package/standalone/chunks/speedometer-chart-options.nl-D2dmDbhJ.js +2 -0
- package/standalone/chunks/speedometer-chart-slots.config-Cfsna_2O.js +2 -0
- package/standalone/chunks/spike-map-options.config-YOYHTzZs.js +2 -0
- package/standalone/chunks/spike-map-options.de-cIVh4l8Z.js +2 -0
- package/standalone/chunks/spike-map-options.en-CKjynYQl.js +2 -0
- package/standalone/chunks/spike-map-options.es-_GxcrK73.js +2 -0
- package/standalone/chunks/spike-map-options.fr-DHi_gHN6.js +2 -0
- package/standalone/chunks/spike-map-options.nl-Bicq35x0.js +2 -0
- package/standalone/chunks/spike-map-slots.config-FfXNX2O3.js +2 -0
- package/standalone/chunks/strip-plot-options.config-D84diNaB.js +2 -0
- package/standalone/chunks/strip-plot-options.de-DjNnWJl2.js +2 -0
- package/standalone/chunks/strip-plot-options.en-Of1sTT_A.js +2 -0
- package/standalone/chunks/strip-plot-options.es-BEHY8I7g.js +2 -0
- package/standalone/chunks/strip-plot-options.fr-DLfEoXBO.js +2 -0
- package/standalone/chunks/strip-plot-options.nl-CA3oh18P.js +2 -0
- package/standalone/chunks/strip-plot-slots.config-DQrrby2Y.js +2 -0
- package/standalone/chunks/sunburst-chart-options.config-DRjBFJV0.js +2 -0
- package/standalone/chunks/sunburst-chart-options.de-D6enQCjV.js +2 -0
- package/standalone/chunks/sunburst-chart-options.en-D9DSivE2.js +2 -0
- package/standalone/chunks/sunburst-chart-options.es-Bb7iCI1h.js +2 -0
- package/standalone/chunks/sunburst-chart-options.fr-CCzUgv7r.js +2 -0
- package/standalone/chunks/sunburst-chart-options.nl-bGOCvc4m.js +2 -0
- package/standalone/chunks/sunburst-chart-slots.config-DqW1e0nf.js +2 -0
- package/standalone/chunks/sv-CgssnOqA.js +2 -0
- package/standalone/chunks/symbol-map-options.config-Bbb3xIKg.js +2 -0
- package/standalone/chunks/symbol-map-options.de-CqxosoVr.js +2 -0
- package/standalone/chunks/symbol-map-options.en-DT7vsjRh.js +2 -0
- package/standalone/chunks/symbol-map-options.es-PGR-C-uM.js +2 -0
- package/standalone/chunks/symbol-map-options.fr-CPNydqFW.js +2 -0
- package/standalone/chunks/symbol-map-options.nl-BBHmJwLF.js +2 -0
- package/standalone/chunks/symbol-map-slots.config-B_UtYexb.js +2 -0
- package/standalone/chunks/task-C3c3OWyi.js +2 -0
- package/standalone/chunks/text-options.config-Chv14kyQ.js +2 -0
- package/standalone/chunks/text-options.de-CRVu5VAm.js +2 -0
- package/standalone/chunks/text-options.en-CupCY5Us.js +2 -0
- package/standalone/chunks/text-options.es-uKgRI4LZ.js +2 -0
- package/standalone/chunks/text-options.fr-C256Njqd.js +2 -0
- package/standalone/chunks/text-options.nl-CpMqMCOZ.js +2 -0
- package/standalone/chunks/text-slots.config-D33nu0FP.js +2 -0
- package/standalone/chunks/tr-i3G2sFi4.js +2 -0
- package/standalone/chunks/treemap-chart-options.config-DxkumoYq.js +2 -0
- package/standalone/chunks/treemap-chart-options.de-DdhcpjTu.js +2 -0
- package/standalone/chunks/treemap-chart-options.en-DB87QjbN.js +2 -0
- package/standalone/chunks/treemap-chart-options.es-DEImFeIB.js +2 -0
- package/standalone/chunks/treemap-chart-options.fr-BzM5c_vV.js +2 -0
- package/standalone/chunks/treemap-chart-options.nl-CFJgBJi2.js +2 -0
- package/standalone/chunks/treemap-chart-slots.config-CaearczZ.js +2 -0
- package/standalone/chunks/type-check-CC6bgirK.js +2 -0
- package/standalone/chunks/types-BS6dxSMT.js +2 -0
- package/standalone/chunks/urban-BEeGnayr.js +2 -0
- package/standalone/chunks/venn-diagram-options.config-DmYOnwBz.js +2 -0
- package/standalone/chunks/venn-diagram-slots.config-GnP5AAAL.js +2 -0
- package/standalone/chunks/video-options.config-CfgT_MAw.js +2 -0
- package/standalone/chunks/video-options.de-Cxs3-JN3.js +2 -0
- package/standalone/chunks/video-options.en-ck74JByC.js +2 -0
- package/standalone/chunks/video-options.es-UdEH3Rzk.js +2 -0
- package/standalone/chunks/video-options.fr-p5bOI-bw.js +2 -0
- package/standalone/chunks/video-options.nl-CBYWp-Df.js +2 -0
- package/standalone/chunks/video-slots.config-ufoVcXKL.js +2 -0
- package/standalone/chunks/vivid-BC9AYKyD.js +2 -0
- package/standalone/chunks/wordcloud-chart-options.config-b-ibtRWp.js +2 -0
- package/standalone/chunks/wordcloud-chart-options.de-B0CeI2KB.js +2 -0
- package/standalone/chunks/wordcloud-chart-options.en-BQ-8ciOw.js +2 -0
- package/standalone/chunks/wordcloud-chart-options.es-DyMrHpJL.js +2 -0
- package/standalone/chunks/wordcloud-chart-options.fr-V1k_70yq.js +2 -0
- package/standalone/chunks/wordcloud-chart-options.nl-CrfYuaYy.js +2 -0
- package/standalone/chunks/wordcloud-chart-slots.config-g7QwS2dG.js +2 -0
- package/standalone/chunks/zh-CN-NVnv57dz.js +2 -0
- package/standalone/chunks/zh-TW-NVnv57dz.js +2 -0
- package/standalone/interactive-viz-item.js +477 -0
- package/standalone/manifest.json +424 -0
- package/styles/tokens.d.ts +1 -0
- package/components/base-K-bf6_7X.cjs +0 -20
- package/components/data-field-level-Llx0Y9m-.cjs +0 -55
- package/components/data-field-panel-Dv60lRUC.cjs +0 -87
- package/components/data-fields-select-BHa8THub.cjs +0 -43
- package/components/dataset-icon-BAV0S4sZ.cjs +0 -64
- package/components/dataset-selector-list-D5lBv2sD.cjs +0 -75
- package/components/display-settings-DPqTRJ7E.cjs +0 -142
- package/components/filter-expression-picker-CU-OfSmI.cjs +0 -40
- package/components/filter-item-CxPrwF-R.cjs +0 -111
- package/components/filter-parameter-picker-BtJLCUbT.cjs +0 -124
- package/components/filter-value-picker-datetime-DWgI83nJ.cjs +0 -51
- package/components/filter-value-picker-hierarchy-BEoqkQq0.cjs +0 -54
- package/components/filters-Dtbt99BP.cjs +0 -199
- package/components/formula-DGMnKmnR.cjs +0 -45
- package/components/formula-field-CQYFSBHL.cjs +0 -20
- package/components/item-option-B5FraAiv.cjs +0 -269
- package/components/item-option-action-button-group-DHu8VjCy.cjs +0 -53
- package/components/item-option-color-palette-picker-DrhHKaAK.cjs +0 -40
- package/components/item-option-color-range-CwDkzRcx.cjs +0 -98
- package/components/item-option-guidelines-DMjA-h3h.cjs +0 -135
- package/components/item-option-position-picker-CKHbHHl1.cjs +0 -32
- package/components/item-option-positions-number-field-BGs3WWaz.cjs +0 -49
- package/components/item-slot-drop-C8WYPu_w.cjs +0 -91
- package/components/item-slot-drop-panel-BcBHDDTT.cjs +0 -57
- package/components/item-slot-picker-panel-DQ_OzMO_.cjs +0 -81
- package/components/slot-menu-DRx1Ffla.cjs +0 -71
- package/components/viz-item-menu-CNHv6qDa.cjs +0 -55
- package/storybook/inject-global-vars.d.ts +0 -1
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 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
|
-
const e=require("./decorate-DCJt-2rt.cjs"),t=require("./localized-mixin-DiUJOd06.cjs"),n=require("./data-broker-CyMYR6w1.cjs"),r=require("./type-check-BehV9ZL1.cjs"),i=require("./calculate-data-field-icon-DenGmW74.cjs"),a=require("./localize-D3i4Epy_.cjs"),o=require("./periods.const-Db0nXrwr.cjs"),s=require("./filter-expression-picker-CU-OfSmI.cjs");require("./data-fields-select-BHa8THub.cjs");const c=require("./filter-parameter-picker-BtJLCUbT.cjs");require("./filter-value-picker-Dpua1vcJ.cjs");let l=require("@luzmo/icons");require("@luzmo/lucero/icon");let u=require("lit"),d=require("lit/decorators.js"),f=require("@lit/localize");require("@luzmo/lucero/tooltip"),require("@luzmo/lucero/progress-circle");let p=require("lit/directives/if-defined.js"),m=require("@luzmo/lucero/utils");require("@luzmo/lucero/badge");var h=[``,``,``],g=``;function _(e,t){let n=RegExp(`(${h.join(`|`)})`,`u`),r=[];for(let i of e.replaceAll(g,``).split(n)){let e=h.indexOf(i);e===-1?i&&r.push(i):r.push(t[e])}return r}var v=new Set([`last_now`,`last_available`,`next_now`,`more_than_ago`,`or_more_ago`]),y=new Set([`last_completed`,`next_full`]),b=new Set([`? is null`,`? is not null`,`to_date`]),x=new Set([`? = ?`,`? != ?`,`? < ?`,`? <= ?`,`? > ?`,`? >= ?`]),S=3,C=32;function w(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function T(e){return w(e)?typeof e.columnId==`string`||typeof e.column_id==`string`||typeof e.formulaId==`string`||typeof e.formula_id==`string`||typeof e.formula==`string`||(typeof e.datasetId==`string`||typeof e.dataset_id==`string`)&&(e.columnExpression!==void 0||e.expression!==void 0):!1}function E(e){return e.length<=C?{display:e,truncated:!1}:{display:`${e.slice(0,C-1)}…`,truncated:!0}}function D(e,t,n){try{return new Intl.ListFormat(e||void 0,{style:`long`,type:n}).format(t)}catch{return t.join(`, `)}}function O(e,t,n){let r=W(e,t,n),{display:i,truncated:a}=E(r);return{label:i,full:r,truncated:a}}function k(e){return e===1?(0,f.msg)(`1 item`,{desc:`One selected hierarchy value whose name is still loading`}):(0,f.msg)(f.str`${e} items`,{desc:`Selected hierarchy values whose names are still loading`})}function A(){return(0,f.msg)(`Some item names could not be retrieved`,{desc:`Tooltip when a hierarchy filter value is still an id after name lookup`})}function j(e,t){return!!(t?.type===`hierarchy`&&t.datasetId&&t.fieldId&&!(w(e)&&e.name!==void 0)&&U(e))}function M(e,t,n){let r=n?.datasetId,i=n?.fieldId;return!r||!i?[]:e.flatMap(e=>{if(!j(e,n))return[];let a=U(e);return a?t.hierarchyLabels?.get(H(r,i,a))?[]:[a]:[]})}function N(e,t,n){return n.hierarchyLabelsLoading&&t.length>0?{valueText:k(t.length),valuePending:!0}:n.hierarchyLabels&&!n.hierarchyLabelsLoading&&t.length>0&&!e.valueTooltip?{...e,valueTooltip:A()}:e}function P(e,t,n){let r=e.map(e=>O(e,t,n)),i=r.map(e=>e.full),a=D(t.contentLanguage,i,`conjunction`);if(e.length===1){let[e]=r;return{valueText:e.label,valueTooltip:e.truncated?e.full:void 0}}let o=Math.min(S,r.length),s=r.length-o,c=r.slice(0,o).map(e=>e.label),l=r.some(e=>e.truncated),u;return u=s>0?(0,f.msg)(f.str`${D(t.contentLanguage,c,`unit`)}, and ${s} more`,{desc:`Filter values after the first few shown in a read-only sentence, e.g. "Dresses, Shoes, Shorts, and 1 more"`}):D(t.contentLanguage,r.map(e=>e.label),`conjunction`),{valueText:u,valueTooltip:s>0||l?a:void 0}}function F(e,t,n){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`){let t=String(e);return t.length>0?t:n}if(e&&typeof e==`object`){let n=a.t(e,t);if(n)return n}return n}function I(e,t){for(let n of t){let t=e[n];if(typeof t==`string`&&t.length>0)return t}}function L(e,t){let n=I(e,[`datasetId`,`dataset_id`]),r=I(e,[`columnId`,`column_id`]),i=I(e,[`formulaId`,`formula_id`]),a=typeof e.formula==`string`?e.formula:void 0,o=t.datasets.find(e=>e.id===n),s=o?F(o.name,t.contentLanguage,``):``;if(i){let e=o?.formulas?.find(e=>e.id===i),r=F(e?.name,t.contentLanguage,i);return{label:r,tooltip:s?`${s} · ${r}`:r,type:e?.type,subtype:e?.subtype,formula:!0,datasetId:n,fieldId:i}}if(a)return{label:a,tooltip:s?`${s} · ${a}`:a,formula:!0,datasetId:n};let c=!r&&typeof e.expression==`string`?e.expression:void 0;if(c)return{label:c,tooltip:s?`${s} · ${c}`:c,formula:!0,datasetId:n};let l=r?o?.columns?.find(e=>e.id===r):void 0,u=r??(typeof e.columnExpression==`string`?e.columnExpression:``),d=F(l?.name,t.contentLanguage,u);return{label:d,tooltip:s?`${s} · ${d}`:d,type:l?.type,subtype:l?.subtype,formula:!1,datasetId:n,fieldId:r}}function R(e){let t=o.n.find(t=>t.level===e);return t?t.i18n():``}function z(e,t){switch(t){case 1:return e===1?(0,f.msg)(f.str`${e} Year`,{desc:`Singular relative filter quantity in years`}):(0,f.msg)(f.str`${e} Years`,{desc:`Plural relative filter quantity in years`});case 2:return e===1?(0,f.msg)(f.str`${e} Quarter`,{desc:`Singular relative filter quantity in quarters`}):(0,f.msg)(f.str`${e} Quarters`,{desc:`Plural relative filter quantity in quarters`});case 3:return e===1?(0,f.msg)(f.str`${e} Month`,{desc:`Singular relative filter quantity in months`}):(0,f.msg)(f.str`${e} Months`,{desc:`Plural relative filter quantity in months`});case 4:return e===1?(0,f.msg)(f.str`${e} Week`,{desc:`Singular relative filter quantity in weeks`}):(0,f.msg)(f.str`${e} Weeks`,{desc:`Plural relative filter quantity in weeks`});case 5:return e===1?(0,f.msg)(f.str`${e} Day`,{desc:`Singular relative filter quantity in days`}):(0,f.msg)(f.str`${e} Days`,{desc:`Plural relative filter quantity in days`});case 6:return e===1?(0,f.msg)(f.str`${e} Hour`,{desc:`Singular relative filter quantity in hours`}):(0,f.msg)(f.str`${e} Hours`,{desc:`Plural relative filter quantity in hours`});case 7:return e===1?(0,f.msg)(f.str`${e} Minute`,{desc:`Singular relative filter quantity in minutes`}):(0,f.msg)(f.str`${e} Minutes`,{desc:`Plural relative filter quantity in minutes`});case 8:return e===1?(0,f.msg)(f.str`${e} Second`,{desc:`Singular relative filter quantity in seconds`}):(0,f.msg)(f.str`${e} Seconds`,{desc:`Plural relative filter quantity in seconds`});case 9:return e===1?(0,f.msg)(f.str`${e} Millisecond`,{desc:`Singular relative filter quantity in milliseconds`}):(0,f.msg)(f.str`${e} Milliseconds`,{desc:`Plural relative filter quantity in milliseconds`});default:return(0,f.msg)(f.str`${e}`,{desc:`Relative filter quantity`})}}function B(e,t){let n=new Date(e);if(Number.isNaN(n.getTime()))return e;try{return new Intl.DateTimeFormat(t.contentLanguage||void 0,{dateStyle:`medium`,timeStyle:`short`,...t.timeZone?{timeZone:t.timeZone}:{}}).format(n)}catch{return e}}function V(e){return/^\d{4}-\d{2}-\d{2}(?:T|$)/.test(e)}function H(e,t,n){return`${e}:${t}:${n}`}function U(e){if(typeof e==`string`||typeof e==`number`)return String(e);if(w(e)&&(typeof e.id==`string`||typeof e.id==`number`))return String(e.id)}function W(e,t,n){if(n?.type===`hierarchy`&&n.datasetId&&n.fieldId&&!(w(e)&&e.name!==void 0)){let r=U(e),i=r===void 0?void 0:t.hierarchyLabels?.get(H(n.datasetId,n.fieldId,r));if(i)return i}if(typeof e==`number`&&Number.isFinite(e))return new Intl.NumberFormat(t.contentLanguage||void 0).format(e);if(typeof e==`string`)return V(e)?B(e,t):e;if(typeof e==`boolean`)return String(e);if(w(e)){if(typeof e.parameter==`string`)return e.parameter;if(e.name!==void 0){let n=F(e.name,t.contentLanguage,``);if(n)return n}if(typeof e.id==`string`||typeof e.id==`number`)return String(e.id)}return``}function G(e,t){let n=s.n().filter(t=>t.expression===e),r=w(t)&&typeof t.unit==`number`?t.unit:void 0;return(e===`to_date`&&r!==void 0?n.find(e=>e.unit===r)??n[0]:n[0])?.tiny??e}function K(e,t,n,r){if(b.has(e)||t==null)return{valueText:``};if(w(t)&&typeof t.parameter==`string`){let e=t.parameter;if(!T(t))return{valueText:e}}if(x.has(e)&&T(t))return{valueText:``,valueField:L(t,n)};if(e===`? between ?`&&Array.isArray(t)&&t.length===2){let e=O(t[0],n,r),i=O(t[1],n,r);return N({valueText:(0,f.msg)(f.str`${e.label} and ${i.label}`,{desc:`Inclusive range shown between two filter values`}),valueTooltip:e.truncated||i.truncated?(0,f.msg)(f.str`${e.full} and ${i.full}`,{id:`filter-range-tooltip`,desc:`Full inclusive range shown in a tooltip`}):void 0},M(t,n,r),n)}if(v.has(e)&&w(t))return{valueText:z(typeof t.quantity==`number`?t.quantity:1,t.unit)};if(y.has(e)&&w(t))return{valueText:R(t.unit)};if(Array.isArray(t))return t.length===0?{valueText:``}:N(P(t,n,r),M(t,n,r),n);let i=O(t,n,r);return N({valueText:i.label,valueTooltip:i.truncated?i.full:void 0},M([t],n,r),n)}function q(e,t){let n=e.parameters?.[0];if(!w(n)||!T(n))return null;let r=L(n,t),i=typeof e.expression==`string`?e.expression:``,a=e.parameters?.[1];return{field:r,expression:i?G(i,a):``,...K(i,a,t,r)}}function J(e){return`condition`in e&&`filters`in e}function Y(e){if(e==null)return[];if(Array.isArray(e))return e.flatMap(Y);if(w(e)){if(typeof e.parameter==`string`||e.name!==void 0||T(e))return[];let t=U(e);return t?[t]:[]}let t=U(e);return t?[t]:[]}function X(e,t){let n=new Map,r=e=>{if(J(e)){e.filters.forEach(r);return}let i=e.parameters?.[0];if(!w(i)||!T(i))return;let a=L(i,t);if(a.type!==`hierarchy`||!a.datasetId||!a.fieldId)return;let o=[...new Set(Y(e.parameters?.[1]))];if(o.length===0)return;let s=`${a.datasetId}:${a.fieldId}`,c=n.get(s);if(c){c.ids=[...new Set([...c.ids,...o])];return}n.set(s,{datasetId:a.datasetId,...a.formula?{formulaId:a.fieldId}:{columnId:a.fieldId},ids:o})};return r(e),[...n.values()]}async function Z(e,t){let r=new Map;return await Promise.all(e.map(async e=>{let i={dataset_id:e.datasetId,column_id:e.columnId,formula_id:e.formulaId},o=await n.t.fetchData({dimensions:[i],where:[{expression:`? in ?`,parameters:[i,e.ids]}],limit:{by:e.ids.length,offset:0}}),s=e.columnId??e.formulaId??``;for(let n of o.data??[]){let i=n[0],o=i&&typeof i==`object`&&`id`in i?String(i.id):String(i),c=i&&typeof i==`object`&&`name`in i?a.t(i.name,t):``;c&&r.set(H(e.datasetId,s,o),c)}})),r}var Q=`:host{box-sizing:border-box;min-width:0;max-width:100%;font-family:var(--luzmo-font-family);color:var(--luzmo-font-color);flex-direction:row;display:flex}:host([display=text]){vertical-align:middle;align-items:center;max-width:100%;display:inline-flex}.filter-item-text{min-width:0;max-width:100%;font-size:var(--luzmo-filter-item-text-font-size,var(--filter-item-text-font-size));white-space:normal;flex-wrap:wrap;align-items:center;column-gap:.25em;line-height:1.5;display:inline-flex}.filter-item-text-field{white-space:nowrap}.filter-item-column-badge{white-space:nowrap;align-items:center;display:inline-flex}.filter-item-text-field-icon{margin-inline-end:var(--luzmo-filter-item-text-icon-gap,var(--filter-item-text-icon-gap))}.filter-item-column-badge luzmo-icon{--luzmo-icon-vertical-align:0}.filter-item-text-expression{color:var(--luzmo-filter-item-text-expression-color,var(--filter-item-text-expression-color));font-weight:var(--luzmo-filter-item-text-expression-font-weight,var(--filter-item-text-expression-font-weight))}:host([column-display=outline]) .filter-item-column-badge luzmo-badge{--luzmo-badge-border-color:var(--luzmo-filter-item-column-badge-color,var(--luzmo-border-color-full));--luzmo-badge-content-color:var(--luzmo-filter-item-column-badge-font-color,var(--luzmo-filter-item-column-badge-color,var(--luzmo-font-color)))}:host([column-display=subtle]) .filter-item-column-badge luzmo-badge{--luzmo-badge-background-color:color-mix(in srgb, var(--luzmo-filter-item-column-badge-color,var(--luzmo-selected-color-hard)) 10%, var(--luzmo-background-color));--luzmo-badge-content-color:var(--luzmo-filter-item-column-badge-font-color)}:host([column-display=fill]) .filter-item-column-badge luzmo-badge{--luzmo-badge-background-color:var(--luzmo-filter-item-column-badge-color,var(--luzmo-selected-color-hard));--luzmo-badge-border-color:transparent;--luzmo-badge-content-color:var(--luzmo-filter-item-column-badge-font-color,var(--luzmo-background-color))}.filter-item-text-value{align-items:center;gap:var(--luzmo-spacing-1);display:inline-flex}.filter-item-text-value luzmo-progress-circle{--luzmo-progress-circle-size:var(--filter-item-progress-circle-size)}.filter-item-text-value--has-tooltip{text-underline-offset:.15em;cursor:help;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:currentColor}[role=group]{box-sizing:border-box;align-items:center;gap:var(--luzmo-filter-item-gap,var(--filter-item-gap));flex-flow:wrap;width:100%;min-width:0;max-width:100%;display:flex}luzmo-data-fields-select{flex:0 1 var(--luzmo-filter-item-field-width,var(--filter-item-field-width));min-width:min(100%, var(--luzmo-filter-item-field-min-width,var(--filter-item-field-min-width)));max-width:100%}luzmo-filter-expression-picker{flex:0 0 var(--luzmo-filter-item-expression-width,var(--filter-item-expression-width));max-width:100%}.value-controls{align-items:center;gap:var(--luzmo-filter-item-gap,var(--filter-item-gap));flex-wrap:nowrap;flex:var(--luzmo-filter-item-value-grow,var(--filter-item-value-grow)) 1 var(--luzmo-filter-item-value-width,var(--filter-item-value-width));min-width:min(100%, var(--luzmo-filter-item-value-min-width,var(--filter-item-value-min-width)));max-width:100%;display:flex}luzmo-filter-value-picker{flex:auto;min-width:0;max-width:100%}luzmo-filter-parameter-picker{flex:0 auto;min-width:0;max-width:100%}:host{--filter-item-gap:var(--luzmo-spacing-3);--filter-item-field-width:auto;--filter-item-expression-width:auto;--filter-item-value-width:auto;--filter-item-value-grow:0;--filter-item-field-min-width:4.5rem;--filter-item-value-min-width:4.5rem;--filter-item-text-font-size:var(--luzmo-font-size-m);--filter-item-text-icon-gap:var(--luzmo-spacing-1);--filter-item-text-expression-color:var(--luzmo-font-color);--filter-item-text-expression-font-weight:var(--luzmo-font-weight);--filter-item-progress-circle-size:var(--luzmo-component-height)}:host([size=s]){--filter-item-gap:var(--luzmo-spacing-2);--filter-item-text-font-size:var(--luzmo-font-size-s);--filter-item-progress-circle-size:var(--luzmo-component-height-s)}:host([size=m]){--filter-item-gap:var(--luzmo-spacing-3)}:host([size=l]){--filter-item-gap:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--filter-item-text-font-size:var(--luzmo-font-size-l);--filter-item-text-icon-gap:var(--luzmo-spacing-2);--filter-item-progress-circle-size:var(--luzmo-component-height-l)}:host([size=xl]){--filter-item-gap:var(--luzmo-spacing-4);--filter-item-text-font-size:var(--luzmo-font-size-xl);--filter-item-text-icon-gap:var(--luzmo-spacing-2);--filter-item-progress-circle-size:var(--luzmo-component-height-xl)}`,$=class extends t.t((0,m.SizedMixin)(m.LuzmoElement,{validSizes:Object.values(m.ElementSizes)})){constructor(...e){super(...e),this.apiUrl=`https://api.luzmo.com`,this.contentLanguage=`en`,this.filter={},this.display=`rich`,this.columnDisplay=`text`,this.quiet=!1,this.readonly=!1,this.disabled=!1,this.allowParameters=!1,this.parameters=[],this._loading=!1,this._datasetsDataFields=[],this._hierarchyLabels=new Map,this._hierarchyLabelsLoading=!1,this._hierarchyRequest=0}static get styles(){return[(0,u.unsafeCSS)(Q)]}connectedCallback(){if(super.connectedCallback(),this.textContext)return;let e={};this.apiUrl&&(e.apiUrl=this.apiUrl),this.cacheTime&&(e.staleTime=this.cacheTime,e.gcTime=this.cacheTime*2),e.authKey=this.authKey||``,e.authToken=this.authToken||``,n.t.configure(e),this.hasUpdated&&this.display===`text`&&this._loadHierarchyLabelsForText()}disconnectedCallback(){super.disconnectedCallback(),this._hierarchyRequest+=1}_clearTypeState(){this._type=void 0,this._subType=void 0,this._isFormula=void 0}async _fetchDatasetDataFields(){if(!this.datasetIds||this.datasetIds.length===0){this._error=`Missing dataset ids to fetch columns & formulas`,this._datasetsDataFields=[],this._loading=!1;return}let{valid:e,invalid:t}=r.c(this.datasetIds);if(t.length>0&&console.warn(`[LuzmoFilterItem] Invalid dataset IDs provided (not valid UUIDs): ${t.join(`, `)}. These will be skipped.`),e.length===0){this._error=`Invalid dataset IDs provided. Dataset IDs must be valid UUIDs.`,this._datasetsDataFields=[],this._loading=!1;return}this._loading=!0,this._error=null;try{let t=await n.t.fetchDatasetsWithColumnsAndFormulas(e);for(let e of t)for(let t of[...e.columns,...e.formulas])t.datasetId=e.id;this._datasetsDataFields=t}catch(e){console.error(`Error fetching dataset columns & formulas:`,e),this._error=e instanceof Error?e.message:`Unknown error`,this._datasetsDataFields=[]}finally{this._loading=!1}}willUpdate(e){super.willUpdate(e);let t=e.has(`filter`),r=e.has(`datasetIds`),i=e.has(`authKey`),a=e.has(`authToken`),o=e.has(`_datasetsDataFields`),s=e.has(`parameters`);if(!this.textContext&&this.display===`text`&&(t||o||e.has(`display`)||e.has(`contentLanguage`))&&this._loadHierarchyLabelsForText(),t||r||o&&(this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId)&&this.filter?.parameters?.[0]?.datasetId)if(!this.datasetIds||this.datasetIds.length===0||this._datasetsDataFields.length===0)this._clearTypeState();else{let e=this._datasetsDataFields.find(e=>e.id===this.filter.parameters?.[0]?.datasetId);if(e){let t=!1;for(let n of[...e.columns||[],...e?.formulas||[]])if(n.id===this.filter.parameters?.[0]?.columnId||n.id===this.filter.parameters?.[0]?.formulaId){this._type=n.type,this._subType=n.subtype,this._isFormula=n.id===this.filter.parameters?.[0]?.formulaId,t=!0;break}t||this._clearTypeState()}else this._clearTypeState()}if(!this.textContext&&(i||a)){let e={authKey:this.authKey||``,authToken:this.authToken||``};n.t.configure(e)}!this.textContext&&(r||i||a)&&this._fetchDatasetDataFields();let l=this.filter?.parameters?.[1],u=e.get(`filter`),d=!!u&&u.expression!==this.filter?.expression;if(this.allowParameters&&this._type&&(s||e.has(`_type`)||d)&&c.o(l)){let t=this.parameters.find(e=>e.parameter===l.parameter),n=c.a(this._type,this.filter?.expression),r=s||e.has(`_type`);if(d&&!n.includes(l.type)||r&&(!t||!n.includes(t.type))){let e=structuredClone(this.filter),t=c.r(this._type,e.expression);e.parameters=t===void 0?[e.parameters[0]]:[e.parameters[0],t],this.filter=e,this._sendChangeEvent()}else if(r&&t&&JSON.stringify(t)!==JSON.stringify(l)){let e=structuredClone(this.filter);e.parameters[1]=structuredClone(t),this.filter=e,this._sendChangeEvent()}}}async _loadHierarchyLabelsForText(){let e=++this._hierarchyRequest,t=this._filterTextContext(),n=X({condition:`and`,filters:[this.filter]},t);if(n.length===0){this._hierarchyLabels=new Map,this._hierarchyLabelsLoading=!1;return}this._hierarchyLabelsLoading=!0;try{let t=await Z(n,this.contentLanguage);e===this._hierarchyRequest&&(this._hierarchyLabels=t)}catch(t){e===this._hierarchyRequest&&console.error(`[${this.localName}] Error fetching hierarchy member names:`,t)}finally{e===this._hierarchyRequest&&(this._hierarchyLabelsLoading=!1)}}_sendChangeEvent(){this.readonly||this.disabled||this.dispatchEvent(new CustomEvent(`luzmo-filter-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{filter:this.filter}}))}setFilterDataField(e){if(this.readonly||this.disabled||this._cannotReferenceColumn())return;let t=e.detail?.dataFields?.[0],n=this._type,r=this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId,i=!!this.filter?.parameters?.[0]?.formulaId,a=t?.columnId||t?.formulaId,o=c.o(this.filter?.parameters?.[1]);this._type=t?.type,this._subType=t?.subtype,this._isFormula=!!t?.formulaId;let l=s.r(this._type,this._subType,this._isFormula);this.filter=structuredClone(this.filter??{}),l?.includes(this.filter?.expression)||(this.filter.expression=l?.[0]?.expression),this.filter.parameters=this.filter?.parameters??[],this.filter.parameters[0]={datasetId:t?.datasetId},this._isFormula?this.filter.parameters[0].formulaId=t?.formulaId:this.filter.parameters[0].columnId=t?.columnId;let u=this.filter.properties??{};if(this._isFormula?i&&u.type!==void 0||(this.filter.properties={...u,type:`having`}):(u.type===void 0||i&&u.type===`having`)&&(this.filter.properties={...u,type:`where`}),t?.lowestLevel,n!==this._type)this._type===`hierarchy`?(this.filter.expression=`? like ?`,this.filter.parameters[1]=``):this._type===`numeric`?(this.filter.expression=`? > ?`,this.filter.parameters[1]=0):this._type===`datetime`?(this.filter.expression=`? < ?`,this.filter.parameters[1]=new Date().toISOString()):(this.filter.expression=`? is not null`,this.filter.parameters=[this.filter.parameters[0]]);else if(o&&r!==a){let e=c.r(this._type,this.filter.expression);this.filter.parameters=e===void 0?[this.filter.parameters[0]]:[this.filter.parameters[0],e]}else r!==a&&this._type===`hierarchy`&&(this.filter.parameters[1]=[`? in ?`,`? not in ?`].includes(this.filter.expression)?[]:``);this._sendChangeEvent()}setFilterExpression(e){if(this.readonly||this.disabled||this._cannotReferenceColumn())return;let t=structuredClone(this.filter??{}),n=t.expression;if(t.expression=e.detail?.expression,n!==t.expression){if(c.o(t.parameters?.[1])){let e=t.parameters[1];if(!c.a(this._type,t.expression).some(t=>t===e.type)){let e=c.r(this._type,t.expression);t.parameters=e===void 0?[t.parameters[0]]:[t.parameters[0],e]}}else if([`? is null`,`? is not null`].includes(t.expression))t.parameters=[t.parameters[0]];else if(this._type===`datetime`)if([`YTD`,`QTD`,`MTD`,`WTD`].includes(t.expression)){let n=e?.detail?.unit;n&&(t.parameters[1]={unit:typeof n==`number`?n:1})}else if([`last_completed`,`next_full`,`to_date`].includes(t.expression)){let e=t?.parameters?.[1]?.unit;t.parameters[1]={unit:typeof e==`number`?e:1}}else if([`last_now`,`last_available`,`next_now`,`more_than_ago`,`or_more_ago`].includes(t.expression)){let e=t?.parameters?.[1]?.unit,n=t?.parameters?.[1]?.quantity;t.parameters[1]={unit:typeof e==`number`?e:1,quantity:typeof n==`number`?n:1}}else t.parameters[1]=new Date().toISOString();else if(this._type===`hierarchy`)if([`? in ?`,`? not in ?`].includes(t.expression))[`? = ?`,`? != ?`].includes(n)?t.parameters[1]=t.parameters[1]?[t.parameters[1]]:[]:t.parameters[1]=[];else if([`? = ?`,`? != ?`].includes(t.expression))if([`? in ?`,`? not in ?`].includes(n))t.parameters[1]=Array.isArray(t.parameters[1])&&t.parameters[1][0]!=null?t.parameters[1][0]:``;else{let e=t.parameters[1];t.parameters[1]=typeof e==`string`||typeof e==`number`?e:``}else t.parameters[1]=[`? in ?`,`? not in ?`].includes(n)?``:t.parameters[1]??``;else this._type===`numeric`&&([`? in ?`,`? not in ?`].includes(t.expression)&&[`? in ?`,`? not in ?`].includes(n)?t.parameters[1]=t.parameters[1]??[]:[`? in ?`,`? not in ?`].includes(t.expression)?t.parameters[1]=[]:t.parameters[1]=[`? in ?`,`? not in ?`].includes(n)?0:t.parameters[1]??0);this.filter=t,this._sendChangeEvent()}}setFilterValue(e){this.readonly||this.disabled||this._cannotReferenceColumn()||(this.filter.parameters[1]=e?.detail?.value,this._sendChangeEvent())}handleFilterParameterSelected(e){if(this.readonly||this.disabled)return;let t=e.detail?.parameter;if(!t)return;let n=structuredClone(this.filter??{});n.parameters=n.parameters??[],n.parameters[1]=structuredClone(t),this.filter=n,this._sendChangeEvent()}handleFilterParameterRemoved(){if(this.readonly||this.disabled||!c.o(this.filter?.parameters?.[1]))return;let e=structuredClone(this.filter),t=c.r(this._type,e.expression);e.parameters=t===void 0?[e.parameters[0]]:[e.parameters[0],t],this.filter=e,this._sendChangeEvent()}_cannotReferenceColumn(){if(!(this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId))return!1;if(!this.datasetIds||this.datasetIds.length===0||this._datasetsDataFields.length===0)return!0;let e=this.filter?.parameters?.[0]?.datasetId,t=this._datasetsDataFields.find(t=>t.id===e);return!t||![...t.columns||[],...t.formulas||[]].find(e=>e.id===this.filter?.parameters?.[0]?.columnId||e.id===this.filter?.parameters?.[0]?.formulaId)}renderDataFieldPicker(){let e=this._cannotReferenceColumn(),t=e?(0,f.msg)(`Unknown`):void 0,n=e||this._loading?``:this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId;return u.html`<luzmo-data-fields-select
|
|
21
|
-
.language=${this.language}
|
|
22
|
-
.contentLanguage=${this.contentLanguage}
|
|
23
|
-
.size=${this.size}
|
|
24
|
-
.value=${n?[n]:[]}
|
|
25
|
-
selects="single"
|
|
26
|
-
levels="off"
|
|
27
|
-
.datasetsDataFields=${this._datasetsDataFields}
|
|
28
|
-
placeholder=${(0,p.ifDefined)(t)}
|
|
29
|
-
.invalid=${!!this._error||e}
|
|
30
|
-
?disabled=${e||this.disabled}
|
|
31
|
-
.readonly=${this.readonly}
|
|
32
|
-
.retrieving=${this._loading}
|
|
33
|
-
.pending=${this._loading}
|
|
34
|
-
.quiet=${this.quiet}
|
|
35
|
-
@luzmo-data-fields-selected=${this.setFilterDataField}
|
|
36
|
-
></luzmo-data-fields-select>`}renderExpressionPicker(){let e=this._cannotReferenceColumn(),t=this.filter?.parameters?.[0],n=!t?.datasetId||!t?.columnId&&!t?.formulaId||e;return u.html`<luzmo-filter-expression-picker
|
|
37
|
-
.language=${this.language}
|
|
38
|
-
.size=${this.size}
|
|
39
|
-
.type=${this._type}
|
|
40
|
-
.subtype=${this._subType}
|
|
41
|
-
.filter=${this.filter}
|
|
42
|
-
?isFormula=${this._isFormula}
|
|
43
|
-
?disabled=${n||this.disabled}
|
|
44
|
-
.readonly=${this.readonly}
|
|
45
|
-
.quiet=${this.quiet}
|
|
46
|
-
@luzmo-expression-selected=${this.setFilterExpression}
|
|
47
|
-
></luzmo-filter-expression-picker>`}renderValuePicker(){let e=this._cannotReferenceColumn(),t=this.filter?.parameters?.[0],n=!t?.datasetId||!t?.columnId&&!t?.formulaId||e;return u.html`<luzmo-filter-value-picker
|
|
48
|
-
.apiUrl=${this.apiUrl}
|
|
49
|
-
.authKey=${this.authKey}
|
|
50
|
-
.authToken=${this.authToken}
|
|
51
|
-
.cacheTime=${this.cacheTime}
|
|
52
|
-
.language=${this.language}
|
|
53
|
-
.contentLanguage=${this.contentLanguage}
|
|
54
|
-
.timeZone=${this.timeZone}
|
|
55
|
-
.size=${this.size}
|
|
56
|
-
.filter=${this.filter}
|
|
57
|
-
.valueType=${this._type}
|
|
58
|
-
?disabled=${n||this.disabled}
|
|
59
|
-
.readonly=${this.readonly}
|
|
60
|
-
.quiet=${this.quiet}
|
|
61
|
-
@luzmo-filter-value-changed=${this.setFilterValue}
|
|
62
|
-
></luzmo-filter-value-picker>`}renderParameterPicker(){if(!this.allowParameters)return null;let e=c.a(this._type,this.filter?.expression);if(e.length===0)return null;let t=c.o(this.filter?.parameters?.[1])?this.filter.parameters[1]:void 0;return u.html`<luzmo-filter-parameter-picker
|
|
63
|
-
.language=${this.language}
|
|
64
|
-
.size=${this.size}
|
|
65
|
-
.parameters=${this.parameters}
|
|
66
|
-
.allowedTypes=${e}
|
|
67
|
-
.selectedParameter=${t}
|
|
68
|
-
.currentValue=${t?t.value:this.filter?.parameters?.[1]}
|
|
69
|
-
?disabled=${this._cannotReferenceColumn()||this.disabled}
|
|
70
|
-
.readonly=${this.readonly}
|
|
71
|
-
.quiet=${this.quiet}
|
|
72
|
-
@luzmo-parameter-selected=${this.handleFilterParameterSelected}
|
|
73
|
-
@luzmo-parameter-removed=${this.handleFilterParameterRemoved}
|
|
74
|
-
></luzmo-filter-parameter-picker>`}_filterTextContext(){return this.textContext??{datasets:this._datasetsDataFields,contentLanguage:this.contentLanguage,timeZone:this.timeZone,hierarchyLabels:this._hierarchyLabels,hierarchyLabelsLoading:this._hierarchyLabelsLoading}}get _columnBadgeSize(){return{xxs:`xs`,xs:`xs`,s:`xs`,m:`s`,l:`m`,xl:`l`,xxl:`xl`}[this.size]??`s`}_textFieldIcon(e,t){return e.formula?i.n({formulaId:`formula`},t):i.t({type:e.type??`hierarchy`,subtype:e.subtype},t)}_renderTextField(e){if(this.columnDisplay!==`text`){let t=this._columnBadgeSize,n=this._textFieldIcon(e,t);return u.html`<span
|
|
75
|
-
class="filter-item-column-badge filters-text-field"
|
|
76
|
-
part="filter-item-text-field"
|
|
77
|
-
title=${e.tooltip}
|
|
78
|
-
>
|
|
79
|
-
<luzmo-badge role="none" .size=${t} .treatment=${this.columnDisplay}>
|
|
80
|
-
${n?u.html`<luzmo-icon slot="icon" .icon=${n} .size=${t}></luzmo-icon>`:u.nothing}${e.label}
|
|
81
|
-
</luzmo-badge>
|
|
82
|
-
</span>`}let t=this._textFieldIcon(e,`s`);return u.html`<span
|
|
83
|
-
class="filter-item-text-field filters-text-field"
|
|
84
|
-
part="filter-item-text-field"
|
|
85
|
-
title=${e.tooltip}
|
|
86
|
-
><span class="filter-item-text-field-icon filters-text-field-icon" aria-hidden="true">${t?(0,l.luzmoIcon)(t):u.nothing}</span
|
|
87
|
-
><span class="filter-item-text-field-label filters-text-field-label">${e.label}</span></span
|
|
88
|
-
>`}_renderTextValue(e){if(e.valueField)return this._renderTextField(e.valueField);if(!e.valueText)return u.nothing;let t=e.valuePending?u.html`<luzmo-progress-circle
|
|
89
|
-
indeterminate
|
|
90
|
-
.label=${(0,f.msg)(`Loading item names`,{desc:`Accessible label while hierarchy item names load beside the item count`})}
|
|
91
|
-
.size=${this.size}
|
|
92
|
-
></luzmo-progress-circle>`:u.nothing;return e.valueTooltip?u.html`<span
|
|
93
|
-
class="filter-item-text-value filter-item-text-value--has-tooltip filters-text-value filters-text-value--has-tooltip outline-value outline-value--has-tooltip"
|
|
94
|
-
tabindex="0"
|
|
95
|
-
aria-live="polite"
|
|
96
|
-
>${e.valueText}<luzmo-tooltip self-managed placement="top" .size=${this.size}
|
|
97
|
-
>${e.valueTooltip}</luzmo-tooltip
|
|
98
|
-
></span
|
|
99
|
-
>`:u.html`<span class="filter-item-text-value filters-text-value outline-value" aria-live="polite">${e.valueText}${t}</span>`}_renderTextDisplay(){let e=q(this.filter,this._filterTextContext());if(!e)return u.html`
|
|
100
|
-
<span
|
|
101
|
-
class="filter-item-text"
|
|
102
|
-
part="filter-item-text"
|
|
103
|
-
></span>
|
|
104
|
-
`;let t=this._renderTextField(e.field),n=u.html`<span class="filter-item-text-expression filters-text-expression outline-expression"
|
|
105
|
-
>${e.expression}</span
|
|
106
|
-
>`,r=e.valueField||e.valueText?this._renderTextValue(e):u.nothing;return u.html`<span class="filter-item-text" part="filter-item-text">${e.expression&&r!==u.nothing?_((0,f.msg)(f.str`${h[0]}\u2063 ${h[1]}\u2063 ${h[2]}`,{id:`filter-item-field-expression-value`,desc:`Field, expression, and value in a read-only filter sentence`}),[t,n,r]):e.expression?_((0,f.msg)(f.str`${h[0]}\u2063 ${h[1]}`,{id:`filter-item-field-expression`,desc:`Field and expression in a read-only filter sentence without a value`}),[t,n]):r===u.nothing?t:_((0,f.msg)(f.str`${h[0]}\u2063 ${h[1]}`,{id:`filter-item-field-value`,desc:`Field and value in a read-only filter sentence without an expression`}),[t,r])}</span>`}render(){if(this.display===`text`)return this._renderTextDisplay();let e=c.o(this.filter?.parameters?.[1]);return u.html`<div role="group" aria-label=${(0,f.msg)(`Filter condition`,{desc:`Accessible label for filter item group`})}>
|
|
107
|
-
${this.renderDataFieldPicker()} ${this.renderExpressionPicker()}
|
|
108
|
-
<div class="value-controls">
|
|
109
|
-
${e?null:this.renderValuePicker()} ${this.renderParameterPicker()}
|
|
110
|
-
</div>
|
|
111
|
-
</div>`}};e.t([(0,d.property)({type:String,attribute:`api-url`,reflect:!0})],$.prototype,`apiUrl`,void 0),e.t([(0,d.property)({type:String,attribute:`auth-key`,reflect:!0})],$.prototype,`authKey`,void 0),e.t([(0,d.property)({type:String,attribute:`auth-token`,reflect:!0})],$.prototype,`authToken`,void 0),e.t([(0,d.property)({type:Number,attribute:`cache-time`,reflect:!0})],$.prototype,`cacheTime`,void 0),e.t([(0,d.property)({type:String,reflect:!0})],$.prototype,`contentLanguage`,void 0),e.t([(0,d.property)({type:String,attribute:`time-zone`,reflect:!0})],$.prototype,`timeZone`,void 0),e.t([(0,d.property)({type:Array,attribute:`dataset-ids`,reflect:!0})],$.prototype,`datasetIds`,void 0),e.t([(0,d.property)({type:Object,reflect:!1})],$.prototype,`filter`,void 0),e.t([(0,d.property)({type:String,reflect:!0})],$.prototype,`display`,void 0),e.t([(0,d.property)({type:String,attribute:`column-display`,reflect:!0})],$.prototype,`columnDisplay`,void 0),e.t([(0,d.property)({type:Boolean,reflect:!0})],$.prototype,`quiet`,void 0),e.t([(0,d.property)({type:Boolean,reflect:!0})],$.prototype,`readonly`,void 0),e.t([(0,d.property)({type:Boolean,reflect:!0})],$.prototype,`disabled`,void 0),e.t([(0,d.property)({attribute:!1})],$.prototype,`textContext`,void 0),e.t([(0,d.property)({type:Boolean,attribute:`allow-parameters`,reflect:!0})],$.prototype,`allowParameters`,void 0),e.t([(0,d.property)({attribute:!1})],$.prototype,`parameters`,void 0),e.t([(0,d.state)()],$.prototype,`_type`,void 0),e.t([(0,d.state)()],$.prototype,`_subType`,void 0),e.t([(0,d.state)()],$.prototype,`_isFormula`,void 0),e.t([(0,d.state)()],$.prototype,`_error`,void 0),e.t([(0,d.state)()],$.prototype,`_loading`,void 0),e.t([(0,d.state)()],$.prototype,`_datasetsDataFields`,void 0),e.t([(0,d.state)()],$.prototype,`_hierarchyLabels`,void 0),e.t([(0,d.state)()],$.prototype,`_hierarchyLabelsLoading`,void 0),$=e.t([(0,f.localized)()],$),customElements.get(`luzmo-filter-item`)||customElements.define(`luzmo-filter-item`,$),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return $}});
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 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
|
-
const e=require("./decorate-DCJt-2rt.cjs"),t=require("./localized-mixin-DiUJOd06.cjs"),n=require("./calculate-data-field-icon-DenGmW74.cjs");let r=require("@luzmo/icons");require("@luzmo/lucero/button"),require("@luzmo/lucero/icon"),require("@luzmo/lucero/overlay"),require("@luzmo/lucero/popover");let i=require("lit"),a=require("lit/decorators.js"),o=require("@lit/localize");require("@luzmo/lucero/action-button"),require("@luzmo/lucero/tags"),require("@luzmo/lucero/tooltip"),require("@luzmo/lucero/divider"),require("@luzmo/lucero/text-field");let s=require("@luzmo/lucero/utils");require("@luzmo/lucero/options");var c=new Set([`? is null`,`? is not null`,`? between ?`,`YTD`,`QTD`,`MTD`,`WTD`,`to_date`,`last_available`,`last_completed`,`last_now`,`more_than_ago`,`or_more_ago`,`next_now`,`next_full`]),l=new Set([`? length = ?`,`? length >= ?`,`? length <= ?`]),u=new Set([`? in ?`,`? not in ?`,`? includes all ?`,`? includes any ?`,`? includes only ?`]);function d(e,t){return!e||e===`spatial`||!t||c.has(t)?[]:l.has(t)?[`numeric`]:e===`numeric`||e===`array[numeric]`?u.has(t)?[`array[numeric]`]:[`numeric`]:e===`datetime`||e===`array[datetime]`?u.has(t)?[`array[datetime]`,`datetime`]:[`datetime`,`array[datetime]`]:e===`hierarchy`||e===`array[hierarchy]`?u.has(t)?[`array[hierarchy]`]:[`hierarchy`]:[]}var f={numeric:()=>(0,o.msg)(`Numeric`,{id:`filter-parameter-type-numeric`,desc:`Numeric filter parameter type`}),datetime:()=>(0,o.msg)(`Datetime`,{id:`filter-parameter-type-datetime`,desc:`Datetime filter parameter type`}),hierarchy:()=>(0,o.msg)(`Hierarchy`,{id:`filter-parameter-type-hierarchy`,desc:`Hierarchy filter parameter type`}),"array[numeric]":()=>(0,o.msg)(`Numeric[]`,{id:`filter-parameter-type-numeric-list`,desc:`List of numeric values filter parameter type`}),"array[datetime]":()=>(0,o.msg)(`Datetime[]`,{id:`filter-parameter-type-datetime-list`,desc:`List of datetime values filter parameter type`}),"array[hierarchy]":()=>(0,o.msg)(`Hierarchy[]`,{id:`filter-parameter-type-hierarchy-list`,desc:`List of hierarchy values filter parameter type`})};function p(e){return f[e]?.()??e}function m(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return typeof t.parameter==`string`&&typeof t.type==`string`&&`value`in t}function h(e){return`metadata.${e.trim().replace(/^metadata\./i,``)}`}function g(e,t,n){let r;if(t.startsWith(`array[`))r=Array.isArray(n)?structuredClone(n):[];else if(t===`numeric`)r=typeof n==`number`&&Number.isFinite(n)?n:0;else if(t===`datetime`){let e=n instanceof Date?n:new Date(typeof n==`string`?n:Date.now());r=Number.isNaN(e.getTime())?new Date().toISOString():e.toISOString()}else r=typeof n==`string`?n:``;return{parameter:h(e),type:t,value:r}}function _(e,t){if(!t||t===`? is null`||t===`? is not null`)return;let[n]=d(e,t);if(n?.startsWith(`array[`))return[];if(n===`numeric`)return 0;if(n===`datetime`)return new Date().toISOString();if(n===`hierarchy`)return``}var v=`:host{min-width:0;max-width:100%;color:var(--luzmo-font-color);font-family:var(--luzmo-font-family);font-size:var(--luzmo-font-size);align-items:center;display:inline-flex;position:relative}.parameter-control{align-items:center;gap:var(--filter-parameter-picker-gap);min-width:0;max-width:100%;display:flex}.create-row{align-items:center;gap:var(--filter-parameter-picker-panel-gap);display:flex}.parameter-trigger,.create-parameter{flex:none}.parameter-trigger{font-weight:var(--luzmo-font-weight-bold)}.selected-parameter-tags{--luzmo-tag-group-item-margin-block:0;min-width:0;max-width:100%}.selected-parameter{--luzmo-tag-max-inline-size:min(180px, 100%);min-width:0;max-width:100%}.parameter-panel{min-inline-size:var(--filter-parameter-picker-panel-min-width);padding:var(--filter-parameter-picker-panel-padding);display:block}.parameter-name-input{--luzmo-text-field-width:100%;flex:1;min-inline-size:0}.panel-content{gap:var(--filter-parameter-picker-panel-gap);flex-direction:column;display:flex}.validation-message{color:var(--filter-parameter-picker-error-color);font-size:var(--luzmo-font-size-s)}.parameter-options{max-block-size:var(--filter-parameter-picker-options-max-height);overflow-y:auto}.parameter-type-footer{gap:var(--filter-parameter-picker-panel-gap);flex-direction:column;display:flex}.parameter-type{justify-content:flex-end;align-items:center;gap:var(--luzmo-spacing-1);font-size:var(--filter-parameter-picker-type-font-size);font-weight:var(--luzmo-font-weight);display:flex}.parameter-type-icon{justify-content:center;align-items:center;min-block-size:24px;min-inline-size:24px;display:inline-flex}:host{--filter-parameter-picker-gap:var(--luzmo-spacing-2);--filter-parameter-picker-control-size:var(--luzmo-component-height);--filter-parameter-picker-panel-min-width:220px;--filter-parameter-picker-options-max-height:240px;--filter-parameter-picker-panel-padding:var(--luzmo-spacing-3);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-3);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-s);--filter-parameter-picker-panel-background:var(--luzmo-background-color);--filter-parameter-picker-panel-border:var(--luzmo-border-color);--filter-parameter-picker-error-color:var(--luzmo-negative-color)}:host([size=xxs]),:host([size=xs]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-2);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-2);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-xs)}:host([size=s]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-3);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-3);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-xs)}:host([size=l]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-4);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-4);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-m)}:host([size=xl]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-4);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-4);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-l)}:host([size=xxl]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-5);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-5);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-xl)}`,y=class extends t.t((0,s.SizedMixin)(s.LuzmoElement,{validSizes:Object.values(s.ElementSizes)})){constructor(...e){super(...e),this.parameters=[],this.allowedTypes=[],this.disabled=!1,this.readonly=!1,this.quiet=!1,this._open=!1,this._newParameterName=``,this._handleDocumentClick=e=>{this._open&&!e.composedPath().includes(this)&&this._close()}}static get styles(){return[...super.styles??[],(0,i.unsafeCSS)(v)]}connectedCallback(){super.connectedCallback(),document.addEventListener(`click`,this._handleDocumentClick)}disconnectedCallback(){document.removeEventListener(`click`,this._handleDocumentClick),super.disconnectedCallback()}get _selectableParameters(){return this.parameters.filter(e=>this.allowedTypes.includes(e.type))}get _parameterOptions(){return this._selectableParameters.map(e=>({label:e.parameter.replace(/^metadata\./i,``),value:e.parameter}))}get _parameterType(){return this.selectedParameter?.type??this.allowedTypes[0]}get _duplicateName(){if(!this._hasParameterName)return!1;let e=h(this._newParameterName).toLowerCase();return this.parameters.some(t=>h(t.parameter).toLowerCase()===e)}get _triggerIconSize(){return{xxs:`xs`,xs:`xs`,s:`xs`,m:`xs`,l:`s`,xl:`m`,xxl:`l`}[this.size]??`xs`}get _hasParameterName(){return h(this._newParameterName).replace(/^metadata\./i,``).trim().length>0}_dispatchSelected(e){this.dispatchEvent(new CustomEvent(`luzmo-parameter-selected`,{bubbles:!0,composed:!0,detail:{parameter:e}}))}_dispatchCreated(e){this.dispatchEvent(new CustomEvent(`luzmo-parameter-created`,{bubbles:!0,composed:!0,detail:{parameter:e}}))}_dispatchRemoved(e){this.dispatchEvent(new CustomEvent(`luzmo-parameter-removed`,{bubbles:!0,composed:!0,detail:{parameter:e}}))}async _handleTriggerClick(){this.disabled||this.readonly||this.allowedTypes.length===0||!this._overlay||(this._open=!0,this._newParameterName=``,this._overlay.open=!0,await this.updateComplete,this.shadowRoot?.querySelector(`.parameter-name-input`)?.focusElement.focus())}_handleTriggerKeydown(e){e.key!==`Enter`&&e.key!==` `&&e.key!==`Space`||(e.preventDefault(),this._handleTriggerClick())}_handleOpened(){this.shadowRoot?.querySelector(`.parameter-name-input`)?.focusElement.focus()}_handleClosed(){this._open=!1,this._newParameterName=``}_close(){this._overlay&&(this._overlay.open=!1),this._handleClosed(),this._triggerElement?.focusElement.focus()}_handlePanelKeydown(e){e.key===`Escape`&&(e.preventDefault(),this._close())}_handleNameInput(e){this._newParameterName=e.currentTarget.value}_selectParameter(e){this.disabled||this.readonly||(this.selectedParameter=e,this._dispatchSelected(e),this._close())}_handleOptionsChange(e){e.stopPropagation();let[t]=e.detail.value,n=this._selectableParameters.find(e=>e.parameter===t);n&&this._selectParameter(n)}async _handleCreateParameter(){if(this.disabled||this.readonly)return;let e=this.allowedTypes[0];if(!e||!this._hasParameterName||this._duplicateName)return;let t=g(this._newParameterName,e,this.currentValue);this.parameters=[...this.parameters,t],this._newParameterName=``,this._dispatchCreated(t),await this.updateComplete,this.shadowRoot?.querySelector(`.parameter-name-input`)?.focusElement.focus()}_handleNameKeydown(e){if(e.key===`Enter`){e.preventDefault(),this._handleCreateParameter();return}e.key===`ArrowDown`&&this._optionsElement&&(e.preventDefault(),this._optionsElement.focus())}_handleRemoveParameter(){this.disabled||this.readonly||!this.selectedParameter||this._dispatchRemoved(this.selectedParameter)}_renderParameterType(){let e=this._parameterType;if(!e)return i.nothing;let t=p(e);return i.html`
|
|
21
|
-
<div class="parameter-type-footer">
|
|
22
|
-
<luzmo-divider class="parameter-type-divider" size="s"></luzmo-divider>
|
|
23
|
-
<div class="parameter-type">
|
|
24
|
-
<span>${(0,o.msg)(`Parameter type:`,{desc:`Label preceding the type of the filter parameter`})}</span>
|
|
25
|
-
<span class="parameter-type-icon" tabindex="0" role="img" aria-label=${t}>
|
|
26
|
-
<luzmo-icon
|
|
27
|
-
aria-hidden="true"
|
|
28
|
-
.icon=${n.t({type:e},`s`)}
|
|
29
|
-
size="s"
|
|
30
|
-
></luzmo-icon>
|
|
31
|
-
<luzmo-tooltip self-managed placement="top" .size=${this.size}>${t}</luzmo-tooltip>
|
|
32
|
-
</span>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
`}render(){let e=this.selectedParameter?.parameter.replace(/^metadata\./i,``),t=!this._hasParameterName||this._duplicateName;return i.html`
|
|
36
|
-
<div class="parameter-control">
|
|
37
|
-
${this.selectedParameter?i.html`
|
|
38
|
-
<luzmo-tags class="selected-parameter-tags">
|
|
39
|
-
<luzmo-tag
|
|
40
|
-
class="selected-parameter"
|
|
41
|
-
size=${this.size}
|
|
42
|
-
variant="accent"
|
|
43
|
-
treatment="fill"
|
|
44
|
-
?deletable=${!this.disabled&&!this.readonly}
|
|
45
|
-
?disabled=${this.disabled}
|
|
46
|
-
aria-label=${(0,o.msg)(`Remove parameter`,{desc:`Detach a parameter from a filter`})}
|
|
47
|
-
@delete=${this._handleRemoveParameter}
|
|
48
|
-
>
|
|
49
|
-
${e}
|
|
50
|
-
</luzmo-tag>
|
|
51
|
-
</luzmo-tags>
|
|
52
|
-
`:i.nothing}
|
|
53
|
-
<luzmo-action-button
|
|
54
|
-
id="parameter-trigger"
|
|
55
|
-
class="parameter-trigger"
|
|
56
|
-
size=${this.size}
|
|
57
|
-
?quiet=${this.quiet||!this.selectedParameter}
|
|
58
|
-
.variant=${this.selectedParameter?`primary`:`neutral`}
|
|
59
|
-
aria-label=${(0,o.msg)(`Use parameter`,{desc:`Open the filter parameter picker`})}
|
|
60
|
-
.label=${(0,o.msg)(`Use parameter`,{desc:`Open the filter parameter picker`})}
|
|
61
|
-
aria-haspopup="dialog"
|
|
62
|
-
aria-disabled=${this.readonly?`true`:`false`}
|
|
63
|
-
aria-expanded=${this._open?`true`:`false`}
|
|
64
|
-
.disabled=${this.disabled||this.allowedTypes.length===0}
|
|
65
|
-
@click=${this._handleTriggerClick}
|
|
66
|
-
@keydown=${this._handleTriggerKeydown}
|
|
67
|
-
>
|
|
68
|
-
<luzmo-icon slot="icon" .icon=${r.luzmoFormula} .size=${this._triggerIconSize}></luzmo-icon>
|
|
69
|
-
</luzmo-action-button>
|
|
70
|
-
<luzmo-overlay
|
|
71
|
-
type="manual"
|
|
72
|
-
placement="bottom-end"
|
|
73
|
-
trigger="parameter-trigger"
|
|
74
|
-
receives-focus="false"
|
|
75
|
-
@luzmo-opened=${this._handleOpened}
|
|
76
|
-
@luzmo-closed=${this._handleClosed}
|
|
77
|
-
>
|
|
78
|
-
<luzmo-popover
|
|
79
|
-
class="parameter-panel"
|
|
80
|
-
size=${this.size}
|
|
81
|
-
role="dialog"
|
|
82
|
-
aria-label=${(0,o.msg)(`Filter parameters`,{desc:`Filter parameter picker dialog label`})}
|
|
83
|
-
@keydown=${this._handlePanelKeydown}
|
|
84
|
-
>
|
|
85
|
-
<div class="panel-content">
|
|
86
|
-
<div class="create-row">
|
|
87
|
-
<luzmo-text-field
|
|
88
|
-
id="parameter-name"
|
|
89
|
-
class="parameter-name-input"
|
|
90
|
-
size=${this.size}
|
|
91
|
-
.label=${(0,o.msg)(`Parameter name`,{desc:`Name for a new filter parameter`})}
|
|
92
|
-
.placeholder=${(0,o.msg)(`New parameter…`,{desc:`Placeholder of the new filter parameter name field`})}
|
|
93
|
-
.invalid=${this._duplicateName}
|
|
94
|
-
.value=${this._newParameterName}
|
|
95
|
-
@input=${this._handleNameInput}
|
|
96
|
-
@keydown=${this._handleNameKeydown}
|
|
97
|
-
></luzmo-text-field>
|
|
98
|
-
<luzmo-button
|
|
99
|
-
class="create-parameter"
|
|
100
|
-
size=${this.size}
|
|
101
|
-
variant="primary"
|
|
102
|
-
?disabled=${t}
|
|
103
|
-
@click=${this._handleCreateParameter}
|
|
104
|
-
>
|
|
105
|
-
${(0,o.msg)(`Add`,{desc:`Create a new filter parameter`})}
|
|
106
|
-
</luzmo-button>
|
|
107
|
-
</div>
|
|
108
|
-
${this._duplicateName?i.html`<div class="validation-message" role="alert">
|
|
109
|
-
${(0,o.msg)(`A parameter with this name already exists.`,{desc:`Duplicate filter parameter name error`})}
|
|
110
|
-
</div>`:i.nothing}
|
|
111
|
-
${this._parameterOptions.length>0?i.html`<luzmo-options
|
|
112
|
-
class="parameter-options"
|
|
113
|
-
size=${this.size}
|
|
114
|
-
.label=${(0,o.msg)(`Available parameters`,{desc:`Accessible label of the filter parameter list`})}
|
|
115
|
-
.options=${this._parameterOptions}
|
|
116
|
-
.value=${this.selectedParameter?[this.selectedParameter.parameter]:[]}
|
|
117
|
-
@change=${this._handleOptionsChange}
|
|
118
|
-
></luzmo-options>`:i.nothing}
|
|
119
|
-
${this._renderParameterType()}
|
|
120
|
-
</div>
|
|
121
|
-
</luzmo-popover>
|
|
122
|
-
</luzmo-overlay>
|
|
123
|
-
</div>
|
|
124
|
-
`}};e.t([(0,a.property)({attribute:!1})],y.prototype,`parameters`,void 0),e.t([(0,a.property)({attribute:!1})],y.prototype,`allowedTypes`,void 0),e.t([(0,a.property)({attribute:!1})],y.prototype,`selectedParameter`,void 0),e.t([(0,a.property)({attribute:!1})],y.prototype,`currentValue`,void 0),e.t([(0,a.property)({type:Boolean,reflect:!0})],y.prototype,`disabled`,void 0),e.t([(0,a.property)({type:Boolean,reflect:!0})],y.prototype,`readonly`,void 0),e.t([(0,a.property)({type:Boolean,reflect:!0})],y.prototype,`quiet`,void 0),e.t([(0,a.state)()],y.prototype,`_open`,void 0),e.t([(0,a.state)()],y.prototype,`_newParameterName`,void 0),e.t([(0,a.query)(`luzmo-overlay`)],y.prototype,`_overlay`,void 0),e.t([(0,a.query)(`.parameter-trigger`)],y.prototype,`_triggerElement`,void 0),e.t([(0,a.query)(`.parameter-options`)],y.prototype,`_optionsElement`,void 0),y=e.t([(0,o.localized)()],y),typeof customElements<`u`&&!customElements.get(`luzmo-filter-parameter-picker`)&&customElements.define(`luzmo-filter-parameter-picker`,y),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return y}});
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 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
|
-
const e=require("./decorate-DCJt-2rt.cjs"),t=require("./localized-mixin-DiUJOd06.cjs"),n=require("./periods.const-Db0nXrwr.cjs");let r=require("lit"),i=require("lit/decorators.js"),a=require("@lit/localize");require("@luzmo/lucero/number-field"),require("@luzmo/lucero/picker"),require("@luzmo/lucero/text-field");let o=require("@luzmo/lucero/utils");require("@luzmo/lucero/date-time-picker");var s=`:host{gap:var(--luzmo-filter-value-picker-datetime-gap,var(--filter-value-picker-datetime-gap));flex-flow:row;width:100%;min-width:0;max-width:100%;display:flex}luzmo-date-time-picker{--luzmo-date-time-picker-min-width:var(--luzmo-filter-value-picker-datetime-control-min-width,var(--filter-value-picker-datetime-control-min-width));flex:auto;min-width:0;max-width:100%}luzmo-number-field{flex:0 1 var(--luzmo-filter-value-picker-datetime-quantity-width,var(--filter-value-picker-datetime-quantity-width));min-width:0;max-width:100%}luzmo-picker{flex:1 1 var(--luzmo-filter-value-picker-datetime-control-min-width,var(--filter-value-picker-datetime-control-min-width));min-width:0;max-width:100%}:host{--filter-value-picker-datetime-gap:var(--luzmo-spacing-3);--filter-value-picker-datetime-control-min-width:5rem;--filter-value-picker-datetime-quantity-width:4.5rem}:host([size=s]){--filter-value-picker-datetime-gap:var(--luzmo-spacing-2)}:host([size=m]){--filter-value-picker-datetime-gap:var(--luzmo-spacing-3)}:host([size=l]){--filter-value-picker-datetime-gap:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1))}:host([size=xl]){--filter-value-picker-datetime-gap:var(--luzmo-spacing-4)}`,c=class extends t.t((0,o.SizedMixin)(o.LuzmoElement,{validSizes:Object.values(o.ElementSizes)})){constructor(...e){super(...e),this.contentLanguage=`en`,this.quiet=!1,this.readonly=!1,this.disabled=!1}static get styles(){return[(0,r.unsafeCSS)(s)]}willUpdate(e){super.willUpdate(e),e.get(`filter`)&&([`last_now`,`last_available`,`next_now`,`more_than_ago`,`or_more_ago`].includes(this.filter?.expression)?this.filter.parameters[1]={quantity:this.filter?.parameters?.[1]?.quantity??1,unit:this.filter?.parameters?.[1]?.unit??1}:[`last_completed`,`next_full`,`to_date`].includes(this.filter?.expression)?this.filter.parameters[1]={unit:this.filter?.parameters?.[1]?.unit??1}:this.filter.parameters[1]=typeof this.filter.parameters[1]==`string`?this.filter.parameters[1]:new Date().toISOString())}_sendChangeEvent(){this.filter.parameters=[{...this.filter?.parameters?.[0]},this._value],this.dispatchEvent(new CustomEvent(`luzmo-filter-value-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setDate(e){this.readonly||this.disabled||(this._value=e.detail.value,this._value!==this.filter?.parameters?.[1]&&this._sendChangeEvent())}setUnit(e){if(this.readonly||this.disabled)return;let t=n.n.find(t=>t.key===e?.target?.value)?.level;this.filter?.parameters?.[1]?.unit!==t&&(this._value={unit:t??1,quantity:this.filter?.parameters?.[1]?.quantity??1},this._sendChangeEvent())}setQuantity(e){if(this.readonly||this.disabled)return;let t=e?.target?.value;this.filter?.parameters?.[1]?.quantity!==t&&(this._value={quantity:t,unit:this.filter?.parameters?.[1]?.unit??1},this._sendChangeEvent())}renderDatePicker(){let e=`second`;return this.filter?.parameters?.[0]?.lowestLevel>4&&(e=this.filter?.parameters?.[0]?.lowestLevel===5?`day`:this.filter?.parameters?.[0]?.lowestLevel===6?`hour`:this.filter?.parameters?.[0]?.lowestLevel===7?`minute`:`second`),r.html`<luzmo-date-time-picker
|
|
21
|
-
aria-label=${(0,a.msg)(`Filter date`,{desc:`Aria label for filter date picker`})}
|
|
22
|
-
.size=${this.size}
|
|
23
|
-
.quiet=${this.quiet}
|
|
24
|
-
.readonly=${this.readonly}
|
|
25
|
-
.disabled=${this.disabled}
|
|
26
|
-
.precision=${e}
|
|
27
|
-
.timeZone=${this.timeZone}
|
|
28
|
-
@change=${this.setDate}
|
|
29
|
-
.value=${this.filter?.parameters?.[1]}
|
|
30
|
-
></luzmo-date-time-picker>`}renderQuantityField(){return r.html`<luzmo-number-field
|
|
31
|
-
label=${(0,a.msg)(`Quantity`,{desc:`Label for quantity number field`})}
|
|
32
|
-
.size=${this.size}
|
|
33
|
-
.quiet=${this.quiet}
|
|
34
|
-
.readonly=${this.readonly}
|
|
35
|
-
.disabled=${this.disabled}
|
|
36
|
-
.value=${this.filter?.parameters?.[1]?.quantity}
|
|
37
|
-
@input=${this.setQuantity}
|
|
38
|
-
@change=${this.setQuantity}
|
|
39
|
-
></luzmo-number-field>`}renderUnitPicker(){let e=n.n.map(e=>r.html`<luzmo-menu-item .value=${e.key}>
|
|
40
|
-
${e.i18n()}
|
|
41
|
-
</luzmo-menu-item>`),t=n.n.find(e=>e.level===this.filter?.parameters?.[1]?.unit)?.key??n.n?.[0]?.key;return r.html`<luzmo-picker
|
|
42
|
-
.label=${(0,a.msg)(`Time unit`,{desc:`Aria label for time unit picker`})}
|
|
43
|
-
.size=${this.size}
|
|
44
|
-
.quiet=${this.quiet}
|
|
45
|
-
.readonly=${this.readonly}
|
|
46
|
-
.disabled=${this.disabled}
|
|
47
|
-
.value=${t}
|
|
48
|
-
@change=${this.setUnit}
|
|
49
|
-
variant="highlight"
|
|
50
|
-
>${e}</luzmo-picker
|
|
51
|
-
>`}render(){let e=this.filter?.expression;return[`last_now`,`last_available`,`next_now`,`more_than_ago`,`or_more_ago`].includes(e)?r.html`${this.renderQuantityField()}${this.renderUnitPicker()}`:[`last_completed`,`next_full`].includes(e)?this.renderUnitPicker():this.renderDatePicker()}};e.t([(0,i.property)({type:String,attribute:`content-language`,reflect:!0})],c.prototype,`contentLanguage`,void 0),e.t([(0,i.property)({type:String,attribute:`time-zone`,reflect:!0})],c.prototype,`timeZone`,void 0),e.t([(0,i.property)({type:Object,reflect:!1})],c.prototype,`filter`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],c.prototype,`quiet`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],c.prototype,`readonly`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],c.prototype,`disabled`,void 0),c=e.t([(0,a.localized)()],c),customElements.get(`luzmo-filter-value-picker-datetime`)||customElements.define(`luzmo-filter-value-picker-datetime`,c),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 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
|
-
const e=require("./decorate-DCJt-2rt.cjs"),t=require("./localized-mixin-DiUJOd06.cjs"),n=require("./data-broker-CyMYR6w1.cjs"),r=require("./localize-D3i4Epy_.cjs");require("./utils-SzKvwZ9-.cjs");let i=require("lit"),a=require("lit/decorators.js"),o=require("@lit/localize");require("@luzmo/lucero/select"),require("@luzmo/lucero/text-field");let s=require("@luzmo/lucero/utils");var c=`:host{flex-direction:row;flex-shrink:1;min-width:0;display:flex}luzmo-select,luzmo-text-field{min-width:var(--luzmo-filter-value-picker-hierarchy-control-min-width,var(--filter-value-picker-hierarchy-control-min-width));flex:auto;max-width:100%}.missing-value{color:var(--luzmo-filter-value-picker-hierarchy-missing-value-color,#767676)}:host{--filter-value-picker-hierarchy-control-min-width:0}`,l=5e3,u=class extends t.t((0,s.SizedMixin)(s.LuzmoElement,{validSizes:Object.values(s.ElementSizes)})){constructor(...e){super(...e),this.contentLanguage=`en`,this.quiet=!1,this.readonly=!1,this.disabled=!1,this._hierarchyValues=[],this._retrieving=!1,this._search=``,this._error=null,this._pending=!1,this._allValuesRetrieved=!1,this._hierarchyRequestGeneration=0,this._runningQueries=[]}static get styles(){return[(0,i.unsafeCSS)(c)]}connectedCallback(){super.connectedCallback();let e={};this.apiUrl&&(e.apiUrl=this.apiUrl),this.cacheTime&&(e.staleTime=this.cacheTime,e.gcTime=this.cacheTime*2),this.authKey&&this.authToken&&(e.authKey=this.authKey,e.authToken=this.authToken),n.t.configure(e)}willUpdate(e){if(super.willUpdate(e),e.has(`filter`)&&this.filter){let t=e.get(`filter`),n=t?.expression,r=t?.parameters?.[0],i=this.filter?.parameters?.[0],a=(r?.columnId||r?.formulaId)!==(this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId)||r?.datasetId!==i?.datasetId;this.filter?.parameters?.[1]!==this._lastResolvedOutput&&(this._lastResolutionKey=void 0),a&&(this._hierarchyRequestGeneration++,this._pending=!1,this._retrieving=!1),a&&([`? in ?`,`? not in ?`,`? = ?`,`? != ?`].includes(this.filter?.expression)||![`? in ?`,`? not in ?`,`? = ?`,`? != ?`].includes(n))&&(this._hierarchyValues=[],this._allValuesRetrieved=!1),[`? in ?`,`? not in ?`,`? = ?`,`? != ?`].includes(this.filter.expression)&&this._hierarchyValues.length===0&&this._restoreCachedFirstPage()}}updated(e){if(super.updated(e),!e.has(`filter`)||!this.filter)return;let t=e.get(`filter`)?.expression,n=[`? = ?`,`? != ?`].includes(this.filter.expression)&&t!==void 0&&![`? in ?`,`? not in ?`,`? = ?`,`? != ?`].includes(t);n&&this._hierarchyValues.length>0?this._resolveSingleSelectValue():n&&!this._retrieving&&queueMicrotask(()=>{[`? = ?`,`? != ?`].includes(this.filter?.expression)&&this._hierarchyValues.length===0&&!this._retrieving&&this._fetchHierarchyValues(0,!0)})}_buildHierarchyQuery(e=0,t=this._search){let n=this.filter?.parameters?.[0];if(!n?.datasetId||!n.columnId&&!n.formulaId)return null;let r={column_id:n.columnId,formula_id:n.formulaId,dataset_id:n.datasetId},i={dimensions:[r],where:[],order:[{...r,order:`asc`}],limit:{by:l,offset:e}};return t&&i.where.push({expression:`? like ?`,parameters:[r,t]}),i}_getValues(e){return e&&Array.isArray(e.data)?e.data.map(e=>e[0]):[]}_applyHierarchyResult(e,t,n){let r=this._getValues(e);n||(this._allValuesRetrieved=r.length<l),this._hierarchyValues=t>0?[...this._hierarchyValues,...r]:r}_restoreCachedFirstPage(){let e=this._buildHierarchyQuery(0,``);if(!e)return!1;let t=n.t.getCachedData(e);return t?(this._applyHierarchyResult(t,0,``),this._retrieving=!1,this._error=null,!0):!1}_getMemberLabel(e){let t=r.t(e?.name,this.contentLanguage,{allowEmpty:!0});return typeof t==`string`?t:``}_findExactMember(e){return this._hierarchyValues.find(t=>String(t?.id)===e||this._getMemberLabel(t)===e)}_resolveSingleSelectValue(){if(![`? = ?`,`? != ?`].includes(this.filter?.expression)||this._hierarchyValues.length===0)return;let e=this.filter?.parameters?.[1];if(typeof e!=`string`&&typeof e!=`number`)return;let t=String(e),n=this._findExactMember(t),r=t.toLocaleLowerCase(this.contentLanguage),i=n??this._hierarchyValues.find(e=>String(e?.id).toLocaleLowerCase(this.contentLanguage).includes(r)||this._getMemberLabel(e).toLocaleLowerCase(this.contentLanguage).includes(r)),a=(n??i??this._hierarchyValues[0])?.id;if(typeof a!=`string`&&typeof a!=`number`)return;let o=this.filter.parameters[0],s=[o.datasetId,o.columnId??o.formulaId,this.filter.expression,String(e),String(a)].join(`|`);s!==this._lastResolutionKey&&(this._lastResolutionKey=s,this._lastResolvedOutput=a,this._value=a,this.filter={...this.filter,parameters:[{...this.filter.parameters[0]},a]},this._sendChangeEvent())}async _fetchHierarchyValues(e=0,t=!1){let r=this._search;if(!r&&this._allValuesRetrieved){this._retrieving=!1;return}if(e===0&&!r&&(this._restoreCachedFirstPage()||this._hierarchyValues.length>0)){this._retrieving=!1;return}if(!this.filter?.parameters?.[0]){this._retrieving=!1,this._error=`Missing column parameters`;return}let i=this.filter.parameters[0],a=i.columnId,o=i.formulaId,s=i.datasetId;if(!a&&!o){this._retrieving=!1,this._error=`Missing column id or formula id`;return}else if(!s){this._retrieving=!1,this._error=`Missing dataset id`;return}let c=this._buildHierarchyQuery(e,r);if(!c)return;let l=this._hierarchyRequestGeneration;this._pending=t,this._retrieving=!0,this._error=null;let u=new AbortController,d=new Promise((e,t)=>{n.t.fetchData(c).then(e).catch(t),u.signal.addEventListener(`abort`,()=>{console.warn(`Request aborted`),t({status:`aborted`})})}),f={promise:d,abortController:u};this._runningQueries.push(f);try{let n=await d;if(l!==this._hierarchyRequestGeneration)return;this._applyHierarchyResult(n,e,r),t&&!r&&this._resolveSingleSelectValue()}catch(e){if(l!==this._hierarchyRequestGeneration||e?.status===`aborted`)return;this._error=e instanceof Error?e.message:`Unknown error`,this._hierarchyValues=[]}finally{this._runningQueries=this._runningQueries.filter(e=>e.promise!==d),l===this._hierarchyRequestGeneration&&(this._pending=!1,this._retrieving=!1)}}_sendChangeEvent(){this.dispatchEvent(new CustomEvent(`luzmo-filter-value-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setHierarchy(e){if(this.readonly||this.disabled)return;let t;t=[`? in ?`,`? not in ?`].includes(this.filter?.expression)?e?.detail?.value:[`? = ?`,`? != ?`].includes(this.filter?.expression)?e?.detail?.value?.[0]:e?.target?.value,this._value!==t&&(this._value=t,this.filter={...this.filter,parameters:[{...this.filter?.parameters?.[0]},this._value]},this._sendChangeEvent())}onScrolled(e){!this._retrieving&&!this._allValuesRetrieved&&e?.detail?.last===this._hierarchyValues.length-1&&this._fetchHierarchyValues(this._hierarchyValues.length)}renderTextField(){return i.html`<luzmo-text-field
|
|
21
|
-
label=${(0,o.msg)(`Filter value`,{desc:`Label for filter value text field`})}
|
|
22
|
-
.size=${this.size}
|
|
23
|
-
.quiet=${this.quiet}
|
|
24
|
-
.readonly=${this.readonly}
|
|
25
|
-
.disabled=${this.disabled}
|
|
26
|
-
@change=${this.setHierarchy}
|
|
27
|
-
@input=${this.setHierarchy}
|
|
28
|
-
.value=${this.filter?.parameters?.[1]??``}
|
|
29
|
-
></luzmo-text-field>`}setSearchString(e){this._search=e?.detail?.string??``,this._allValuesRetrieved||(this._searchQueryTimeout&&(this._runningQueries.forEach(e=>{e?.abortController&&e.abortController.abort()}),this._runningQueries=[],clearTimeout(this._searchQueryTimeout)),this._searchQueryTimeout=setTimeout(()=>{this._fetchHierarchyValues()},500))}resetSearchString(){this._search=``,this._hierarchyRequestGeneration++,this._pending=!1,this._retrieving=!1,this._restoreCachedFirstPage()}onOpened(){this._fetchHierarchyValues()}_getSelectedOptionValue(){let e=this.filter?.parameters?.[1];return typeof e!=`string`&&typeof e!=`number`?e:this._findExactMember(String(e))?.id??e}renderHierarchyPicker(){if(this._error)return i.html`<div class="error" role="alert">Error: ${this._error}</div>`;let e=(this._search?this._hierarchyValues.filter(e=>r.t(e.name,this.contentLanguage,{allowEmpty:!0})?.toLowerCase().includes(this._search.toLowerCase())||e.toString().toLowerCase().includes(this._search.toLowerCase())):this._hierarchyValues).map(e=>{let t=r.t(e?.name,this.contentLanguage)??`N/A`;return typeof t!=`string`&&(t=`N/A`),{value:e?.id,label:t}}),t=this.filter?.expression,n=[`? = ?`,`? != ?`].includes(t),a=(0,o.msg)(`Selected {count} items`),s=(0,o.msg)(`Search`),c=(0,o.msg)(`No data`),l=(0,o.msg)(`No results`),u=(0,o.msg)(`Select...`);return i.html`<luzmo-select
|
|
30
|
-
.size=${this.size}
|
|
31
|
-
.label=${u}
|
|
32
|
-
.retrieving=${this._retrieving}
|
|
33
|
-
.pending=${this._pending}
|
|
34
|
-
.selects=${n?`single`:`multiple`}
|
|
35
|
-
.variant=${n?`highlight`:`checkboxes`}
|
|
36
|
-
?emphasized=${!this.quiet}
|
|
37
|
-
.quiet=${this.quiet}
|
|
38
|
-
.readonly=${this.readonly}
|
|
39
|
-
.disabled=${this.disabled}
|
|
40
|
-
no-wrap
|
|
41
|
-
?invalid=${!!this._error}
|
|
42
|
-
.multipleLabelTemplate=${a}
|
|
43
|
-
.searchLabel=${s}
|
|
44
|
-
.noDataLabel=${c}
|
|
45
|
-
.noResultsLabel=${l}
|
|
46
|
-
@change=${this.setHierarchy}
|
|
47
|
-
@luzmo-search=${this.setSearchString}
|
|
48
|
-
@luzmo-opened=${this.onOpened}
|
|
49
|
-
@luzmo-closed=${this.resetSearchString}
|
|
50
|
-
@luzmo-scrolled=${this.onScrolled}
|
|
51
|
-
.options=${e}
|
|
52
|
-
.value=${n?[this._getSelectedOptionValue()]:this.filter?.parameters?.[1]}
|
|
53
|
-
>
|
|
54
|
-
</luzmo-select>`}render(){let e=this.filter?.expression;return[`? in ?`,`? not in ?`,`? = ?`,`? != ?`].includes(e)?this.renderHierarchyPicker():this.renderTextField()}};e.t([(0,a.property)({type:String,attribute:`api-url`,reflect:!0})],u.prototype,`apiUrl`,void 0),e.t([(0,a.property)({type:String,attribute:`auth-key`,reflect:!0})],u.prototype,`authKey`,void 0),e.t([(0,a.property)({type:String,attribute:`auth-token`,reflect:!0})],u.prototype,`authToken`,void 0),e.t([(0,a.property)({type:Number,attribute:`cache-time`,reflect:!0})],u.prototype,`cacheTime`,void 0),e.t([(0,a.property)({type:String,attribute:`content-language`,reflect:!0})],u.prototype,`contentLanguage`,void 0),e.t([(0,a.property)({type:Object,reflect:!1})],u.prototype,`filter`,void 0),e.t([(0,a.property)({type:Boolean,reflect:!0})],u.prototype,`quiet`,void 0),e.t([(0,a.property)({type:Boolean,reflect:!0})],u.prototype,`readonly`,void 0),e.t([(0,a.property)({type:Boolean,reflect:!0})],u.prototype,`disabled`,void 0),e.t([(0,a.state)()],u.prototype,`_hierarchyValues`,void 0),e.t([(0,a.state)()],u.prototype,`_retrieving`,void 0),e.t([(0,a.state)()],u.prototype,`_search`,void 0),e.t([(0,a.state)()],u.prototype,`_error`,void 0),e.t([(0,a.state)()],u.prototype,`_pending`,void 0),u=e.t([(0,o.localized)()],u),customElements.get(`luzmo-filter-value-picker-hierarchy`)||customElements.define(`luzmo-filter-value-picker-hierarchy`,u),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return u}});
|