@luzmo/analytics-components-kit 1.0.4-beta.3 → 1.0.4
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 +11 -5
- package/components/{area-chart-options.config-BjdRY1sr.js → area-chart-options.config-CxJWxcD9.js} +1 -1
- package/components/{area-chart-positioning.config-PZ-MmeDb.cjs → area-chart-positioning.config-CE8lOCfT.cjs} +1 -1
- package/components/{area-chart-positioning.config-hLhrDJ3v.js → area-chart-positioning.config-CQW5h7Eg.js} +1 -1
- package/components/{area-chart-slots.config-BpvvqFy_.js → area-chart-slots.config-C22ZF9l0.js} +1 -1
- package/components/{bar-chart-options.config-DxNHV39Y.js → bar-chart-options.config-BAatAyhW.js} +1 -1
- package/components/{bar-chart-positioning.config-DI8tOMbI.cjs → bar-chart-positioning.config-DFI1wzOQ.cjs} +1 -1
- package/components/{bar-chart-positioning.config-C6wWTn1o.js → bar-chart-positioning.config-DaH_x_VU.js} +1 -1
- package/components/{bar-chart-slots.config-CfIirCOX.js → bar-chart-slots.config-BbgFihbK.js} +1 -1
- package/components/base-CYiGlWug.cjs +20 -0
- package/components/{base-DYkpEuMf.js → base-p2I4mVSW.js} +2 -3
- package/components/{box-plot-options.config-CXey4hvi.js → box-plot-options.config-BuX2wNhp.js} +1 -1
- package/components/{box-plot-positioning.config-D_qhNWth.cjs → box-plot-positioning.config-FOyav5Zq.cjs} +1 -1
- package/components/{box-plot-positioning.config-XG-WcIlA.js → box-plot-positioning.config-K2tQGMig.js} +1 -1
- package/components/{box-plot-slots.config-DclNulnH.js → box-plot-slots.config-OeublT6p.js} +1 -1
- package/components/{bubble-chart-options.config-CeaOv4eF.js → bubble-chart-options.config-C_XQOHgH.js} +1 -1
- package/components/{bubble-chart-positioning.config-CHYBh_Nb.cjs → bubble-chart-positioning.config-B6DXfqa4.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-o_r-GWQG.js → bubble-chart-positioning.config-D2fwO2JM.js} +1 -1
- package/components/{bubble-chart-slots.config-D7vQta7G.js → bubble-chart-slots.config-Bdy20Xqs.js} +1 -1
- package/components/{bullet-chart-options.config-CLn7sV4W.js → bullet-chart-options.config-h5BFyszP.js} +1 -1
- package/components/{bullet-chart-positioning.config-DE5oy4M6.js → bullet-chart-positioning.config-DOAG2wFN.js} +1 -1
- package/components/{bullet-chart-positioning.config-BF8PflF6.cjs → bullet-chart-positioning.config-DZqzqZSQ.cjs} +1 -1
- package/components/{bullet-chart-slots.config-IX7zJWc7.js → bullet-chart-slots.config-Cqj3i1qo.js} +1 -1
- package/components/{choropleth-map-options.config-DzTlJSO3.js → choropleth-map-options.config-YCo77O3q.js} +1 -1
- package/components/{choropleth-map-positioning.config-DT1WWljP.cjs → choropleth-map-positioning.config-C3jO3j8R.cjs} +1 -1
- package/components/{choropleth-map-positioning.config-Cf8bEIns.js → choropleth-map-positioning.config-Jw6fAFM1.js} +1 -1
- package/components/{choropleth-map-slots.config-y0y9rf6i.js → choropleth-map-slots.config-D4vxtdtH.js} +1 -1
- package/components/{circle-pack-chart-options.config-DoLPbnPq.js → circle-pack-chart-options.config-C0cEtjgC.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-Dy-DZ_de.js → circle-pack-chart-positioning.config-Ckb-1sUG.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-DDpnake6.cjs → circle-pack-chart-positioning.config-DJT6ivEy.cjs} +1 -1
- package/components/{circle-pack-chart-slots.config-X9WVAykN.js → circle-pack-chart-slots.config-Dks8K3uQ.js} +1 -1
- package/components/{circular-gauge-options.config-BPUFjqx8.js → circular-gauge-options.config-Cdnk-Sp0.js} +1 -1
- package/components/{circular-gauge-positioning.config-D2t_3T1J.cjs → circular-gauge-positioning.config-B8gL5Br9.cjs} +1 -1
- package/components/{circular-gauge-positioning.config-DljBe7e-.js → circular-gauge-positioning.config-BGlDGhYZ.js} +1 -1
- package/components/{circular-gauge-slots.config-NIEmIAIG.js → circular-gauge-slots.config-Wf4sHmk6.js} +1 -1
- package/components/{column-chart-options.config-DQts3cE4.js → column-chart-options.config-DoZLlIRM.js} +1 -1
- package/components/{column-chart-positioning.config-Bob00Qnq.js → column-chart-positioning.config-BJGWvFLD.js} +1 -1
- package/components/{column-chart-positioning.config-Uvvr5PxW.cjs → column-chart-positioning.config-LzBETWIy.cjs} +1 -1
- package/components/{column-chart-slots.config-CoFarLvo.js → column-chart-slots.config-BhVqSbKw.js} +1 -1
- package/components/{combination-chart-options.config-CjSV6Ic4.js → combination-chart-options.config-D7ZXfn61.js} +1 -1
- package/components/{combination-chart-positioning.config-BzbcDQ2O.cjs → combination-chart-positioning.config-DjmWx90S.cjs} +1 -1
- package/components/{combination-chart-positioning.config-DG2CM16I.js → combination-chart-positioning.config-DtneKdwK.js} +1 -1
- package/components/{combination-chart-slots.config-BGRHSwfr.js → combination-chart-slots.config-CK8YBgUl.js} +1 -1
- package/components/{conditional-number-options.config-CZFqw31c.js → conditional-number-options.config-BwSMI5Ax.js} +1 -1
- package/components/{conditional-number-positioning.config-DpORiYgh.cjs → conditional-number-positioning.config-C8bRdffQ.cjs} +1 -1
- package/components/{conditional-number-positioning.config-CT8PqxDT.js → conditional-number-positioning.config-Ccb2yjJU.js} +1 -1
- package/components/{conditional-number-slots.config-r_C8T2HH.js → conditional-number-slots.config-xSNaYD4u.js} +1 -1
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.d.ts +0 -1
- package/components/data-field/index.js +1 -1
- package/components/data-field-iGBGWoGH.cjs +89 -0
- package/components/{data-field-level-zbu4U2m5.js → data-field-ll2oFVG2.js} +141 -47
- package/components/data-field-panel/index.cjs +1 -1
- package/components/data-field-panel/index.d.ts +0 -1
- package/components/data-field-panel/index.js +1 -1
- package/components/data-field-panel-NktuTUUp.cjs +87 -0
- package/components/{data-field-panel-Ob-hNZwz.js → data-field-panel-ntgCpQ_2.js} +4 -5
- package/components/{data-fields-select-CYQy6Ow-.js → data-fields-select-DJFkrrPs.js} +3 -4
- package/components/data-fields-select-DL1nFRg3.cjs +41 -0
- package/components/{date-comparison-filter-options.config-s16IGX_4.js → date-comparison-filter-options.config-DCCm5Adt.js} +1 -1
- package/components/{date-comparison-filter-slots.config-DQBKeCRX.js → date-comparison-filter-slots.config-s7FcuKia.js} +1 -1
- package/components/{date-filter-options.config-ChFEIjN3.js → date-filter-options.config-DBwcMXzp.js} +1 -1
- package/components/{date-filter-slots.config-DREsncpE.js → date-filter-slots.config-pbd3rG9z.js} +1 -1
- package/components/{de-D-xQoqdB.js → de-DqwsqE-U.js} +14 -9
- package/components/de-tUSOg_BJ.cjs +20 -0
- package/components/{display-settings-binning-GKaol6nW.cjs → display-settings-binning-CQKXGp11.cjs} +4 -4
- package/components/{display-settings-binning-MHns2Ns6.js → display-settings-binning-DGxEB9Fa.js} +21 -19
- package/components/display-settings-datetime-25LwuZM_.cjs +217 -0
- package/components/{display-settings-datetime-D5eBAfWQ.js → display-settings-datetime-CLx9sxA7.js} +81 -79
- package/components/display-settings-grand-totals-1tBdxbFY.cjs +44 -0
- package/components/{display-settings-grand-totals-CpulhtNX.js → display-settings-grand-totals-B0Px90rH.js} +20 -18
- package/components/display-settings-numeric-Bbx4qmpA.cjs +190 -0
- package/components/{display-settings-numeric-DnyXOV_x.js → display-settings-numeric-CdEgzO7W.js} +88 -86
- package/components/display-settings-period-over-period-4bJbXWB7.cjs +229 -0
- package/components/{display-settings-period-over-period-Do4qG7yY.js → display-settings-period-over-period-lo3myRfT.js} +91 -90
- package/components/{donut-chart-options.config-WNOpb2n9.js → donut-chart-options.config-Buas8fzJ.js} +1 -1
- package/components/{donut-chart-positioning.config-BLnTmwTZ.cjs → donut-chart-positioning.config-2cYbI6p-.cjs} +1 -1
- package/components/{donut-chart-positioning.config-Bl96um6F.js → donut-chart-positioning.config-Dh3XI5f4.js} +1 -1
- package/components/{donut-chart-slots.config-DEQ3Cw6c.js → donut-chart-slots.config-CZWRHxZe.js} +1 -1
- package/components/{dropdown-filter-options.config-DBNawOPR.js → dropdown-filter-options.config-gv1y1OkC.js} +1 -1
- package/components/{dropdown-filter-slots.config-DcStZGjV.js → dropdown-filter-slots.config-aP5hvp2K.js} +1 -1
- package/components/{en-GB-DzkdeUQh.js → en-GB-D7N1nMuy.js} +1 -1
- package/components/{en-GB-B3xz84vF.cjs → en-GB-DCZl8CPc.cjs} +1 -1
- package/components/{en-CcLhGxIh.js → en-OJGeTneC.js} +1 -1
- package/components/{en-US-CcLhGxIh.js → en-US-OJGeTneC.js} +1 -1
- package/components/{en-US-B34alchz.cjs → en-US-hPjCnvK0.cjs} +1 -1
- package/components/{en-B34alchz.cjs → en-hPjCnvK0.cjs} +1 -1
- package/components/{es-CLnBAiLu.js → es-C-5Yqnck.js} +14 -9
- package/components/es-Czecz2xB.cjs +20 -0
- package/components/{evolution-number-options.config-CrIM2GTn.js → evolution-number-options.config-B1IomzV1.js} +1 -1
- package/components/{evolution-number-positioning.config-DXNPD29G.js → evolution-number-positioning.config-BQQrOKbD.js} +1 -1
- package/components/{evolution-number-positioning.config-DSoC35zp.cjs → evolution-number-positioning.config-BX1lWtDL.cjs} +1 -1
- package/components/{evolution-number-slots.config-Bq_JlxgK.js → evolution-number-slots.config-eOQDWZyb.js} +1 -1
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -1
- package/components/filters-Bzx4DYm-.cjs +323 -0
- package/components/filters-DSod7vIq.js +1637 -0
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +1 -1
- package/components/formula-DcCDYDt4.cjs +45 -0
- package/components/{formula-CeDEKB7D.js → formula-TyfDRy5X.js} +15 -16
- package/components/{formula-codemirror-MygWCu2u.js → formula-codemirror-B6ktT1Dm.js} +21 -23
- package/components/{formula-codemirror-CFMYytMd.cjs → formula-codemirror-Bewi7Xgc.cjs} +53 -53
- package/components/formula-display-store-DxjO7Q-n.cjs +20 -0
- package/components/{formula-display-store-BYa910x_.js → formula-display-store-ycPV0gru.js} +279 -246
- package/components/formula-editor/index.cjs +1 -1
- package/components/formula-editor/index.d.ts +0 -1
- package/components/formula-editor/index.js +3 -4
- package/components/formula-editor-DQp_XiX5.cjs +247 -0
- package/components/{formula-editor-DeYzzLDr.js → formula-editor-HkD4KWnN.js} +349 -144
- package/components/{fr-DIwbOnwC.js → fr-BvgQLvx5.js} +14 -9
- package/components/fr-CQyhQN6j.cjs +20 -0
- package/components/{funnel-chart-options.config-k0X4rkj-.js → funnel-chart-options.config-DAv3185m.js} +1 -1
- package/components/{funnel-chart-positioning.config-CWSM8nTo.js → funnel-chart-positioning.config-9blBdgB7.js} +1 -1
- package/components/{funnel-chart-positioning.config-BcsV1xp7.cjs → funnel-chart-positioning.config-iHk--8l3.cjs} +1 -1
- package/components/{funnel-chart-slots.config-DKhaZf_r.js → funnel-chart-slots.config-BsNj6Mbb.js} +1 -1
- package/components/{get-css-variable-rHTFFWYM.cjs → get-css-variable-B1BZoBcs.cjs} +1 -1
- package/components/{get-css-variable-Bpma6ZOo.js → get-css-variable-COcan5CX.js} +1 -1
- package/components/{heat-map-options.config-_xxAm6iG.js → heat-map-options.config-Ckw8voNV.js} +1 -1
- package/components/{heat-map-positioning.config-C0dkG5_9.cjs → heat-map-positioning.config-CqkTB8nU.cjs} +1 -1
- package/components/{heat-map-positioning.config-DQJP4mTG.js → heat-map-positioning.config-DgrZWNiT.js} +1 -1
- package/components/{heat-map-slots.config-BDfEGgq5.js → heat-map-slots.config-BFK5TF9k.js} +1 -1
- package/components/{heat-table-options.config-DxRbWqJ8.js → heat-table-options.config-PpOf4o94.js} +1 -1
- package/components/{heat-table-positioning.config-WUHNZPT-.js → heat-table-positioning.config-BqsqkftW.js} +1 -1
- package/components/{heat-table-positioning.config-BzSpf7ed.cjs → heat-table-positioning.config-Ca-WBNR-.cjs} +1 -1
- package/components/{heat-table-slots.config-CVh1TEJJ.js → heat-table-slots.config-3q2hG4nF.js} +1 -1
- package/components/{hexbin-map-options.config-CmAmK-jM.js → hexbin-map-options.config-D88DHYrl.js} +1 -1
- package/components/{hexbin-map-positioning.config-CJPhgdt2.js → hexbin-map-positioning.config-gkLfwTS6.js} +1 -1
- package/components/{marker-map-positioning.config-B-HitobG.cjs → hexbin-map-positioning.config-sUIrPJP4.cjs} +1 -1
- package/components/{hexbin-map-slots.config-rxPZ4kwL.js → hexbin-map-slots.config-BfbHCCUe.js} +1 -1
- package/components/{image-options.config-DJ2DEf7g.js → image-options.config-ByIPpr29.js} +1 -1
- package/components/{image-slots.config-bDNDmiWy.js → image-slots.config-B4MFjNWt.js} +1 -1
- package/components/index.cjs +749 -1
- package/components/index.js +5577 -64
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +1 -1
- package/components/{item-grid-CO_cqGqJ.js → item-grid-B59uyBDP.js} +5 -6
- package/components/{item-grid-CRAoMdCq.cjs → item-grid-C6nEE4Uj.cjs} +22 -22
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.js +1 -1
- package/components/item-option-C4c-e1QF.cjs +252 -0
- package/components/item-option-action-button-group/index.cjs +1 -1
- package/components/item-option-action-button-group/index.js +1 -1
- package/components/{item-option-action-button-group-VpgTKSIV.js → item-option-action-button-group-BEXRueVH.js} +3 -3
- package/components/item-option-action-button-group-BU1wvtEd.cjs +53 -0
- package/components/item-option-base-DATaPQ-m.cjs +56 -0
- package/components/{item-option-base-VV7gyznL.js → item-option-base-DqDKIqRP.js} +2 -2
- package/components/item-option-color-palette-picker/index.cjs +1 -1
- package/components/item-option-color-palette-picker/index.js +1 -1
- package/components/item-option-color-palette-picker-Cc2nTuxC.cjs +40 -0
- package/components/{item-option-color-palette-picker-CQgG_NPQ.js → item-option-color-palette-picker-dk5Nm1XB.js} +2 -2
- package/components/item-option-color-picker/index.cjs +1 -1
- package/components/item-option-color-picker/index.js +1 -1
- package/components/{item-option-color-picker-DeDwpICb.cjs → item-option-color-picker-Czr_ojzh.cjs} +2 -2
- package/components/{item-option-color-picker-BmQBTQzb.js → item-option-color-picker-oG-wrEZh.js} +2 -2
- package/components/item-option-color-range/index.cjs +1 -1
- package/components/item-option-color-range/index.js +1 -1
- package/components/item-option-color-range-CTnHZ72E.cjs +98 -0
- package/components/{item-option-color-range-D2kHXssY.js → item-option-color-range-RbnPnI3s.js} +3 -3
- package/components/item-option-multi-language-field/index.cjs +1 -1
- package/components/item-option-multi-language-field/index.js +1 -1
- package/components/{item-option-multi-language-field-Cc9ph205.cjs → item-option-multi-language-field-BpyuIPcO.cjs} +2 -2
- package/components/{item-option-multi-language-field-DbqcqhhN.js → item-option-multi-language-field-BqhBRIFH.js} +2 -2
- package/components/item-option-number-field/index.cjs +1 -1
- package/components/item-option-number-field/index.js +1 -1
- package/components/{item-option-number-field-BbCVJeXZ.js → item-option-number-field-BDPEAzdF.js} +2 -2
- package/components/{item-option-number-field-B6GFKuLN.cjs → item-option-number-field-CV2xpQrk.cjs} +2 -2
- package/components/item-option-panel/index.cjs +1 -1
- package/components/item-option-panel/index.js +1 -1
- package/components/{item-option-panel-6UFGCcnF.cjs → item-option-panel-CMrjUb2s.cjs} +2 -2
- package/components/{item-option-panel-CrNZ0xIF.js → item-option-panel-XhTxaBZp.js} +3 -3
- package/components/item-option-picker/index.cjs +1 -1
- package/components/item-option-picker/index.js +1 -1
- package/components/{item-option-picker-DJKTAG9w.cjs → item-option-picker-CvEfEy99.cjs} +2 -2
- package/components/{item-option-picker-YquXTQNY.js → item-option-picker-D_Od3am8.js} +2 -2
- package/components/item-option-position-picker/index.cjs +1 -1
- package/components/item-option-position-picker/index.js +1 -1
- package/components/{item-option-position-picker-DKvsF-VQ.js → item-option-position-picker-BKw29tj-.js} +2 -2
- package/components/item-option-position-picker-DBs4JlFi.cjs +32 -0
- package/components/item-option-positions-number-field/index.cjs +1 -1
- package/components/item-option-positions-number-field/index.js +1 -1
- package/components/item-option-positions-number-field-DIIEFHd4.cjs +49 -0
- package/components/{item-option-positions-number-field-Bxcbu_IR.js → item-option-positions-number-field-lrJdfydy.js} +2 -2
- package/components/item-option-radio-button-group/index.cjs +1 -1
- package/components/item-option-radio-button-group/index.js +1 -1
- package/components/{item-option-radio-button-group-Cw-xUSUS.js → item-option-radio-button-group-DTyHPaz_.js} +2 -2
- package/components/{item-option-radio-button-group-Bzh4RtSn.cjs → item-option-radio-button-group-DrjpL6YU.cjs} +2 -2
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.js +1 -1
- package/components/{item-option-slider-DUqo3Fw0.cjs → item-option-slider-BwKBgW0y.cjs} +2 -2
- package/components/{item-option-slider-BwQnaxvO.js → item-option-slider-CIDoZhZl.js} +2 -2
- package/components/item-option-switch/index.cjs +1 -1
- package/components/item-option-switch/index.js +1 -1
- package/components/{item-option-switch-DBsakQjy.cjs → item-option-switch-CQtvbTfI.cjs} +2 -2
- package/components/{item-option-switch-IixoilYJ.js → item-option-switch-DxC1yjeN.js} +2 -2
- package/components/item-option-text-field/index.cjs +1 -1
- package/components/item-option-text-field/index.js +1 -1
- package/components/{item-option-text-field-CdWylobQ.js → item-option-text-field-CZtJ1yIj.js} +2 -2
- package/components/{item-option-text-field-B4V_sKnM.cjs → item-option-text-field-pLQzcE25.cjs} +2 -2
- package/components/{item-option-Bc6qXONK.js → item-option-zz-Rqh6o.js} +47 -47
- package/components/item-options-configs.js +45 -45
- package/components/item-slot-drop/index.cjs +1 -1
- package/components/item-slot-drop/index.d.ts +0 -2
- package/components/item-slot-drop/index.js +1 -1
- package/components/item-slot-drop/item-slot-drop.d.ts +1 -0
- package/components/{item-slot-drop-BmvMi3dI.js → item-slot-drop-SqYpfTGj.js} +67 -65
- package/components/item-slot-drop-UygcXM5D.cjs +91 -0
- package/components/item-slot-drop-panel/index.cjs +1 -1
- package/components/item-slot-drop-panel/index.js +1 -1
- package/components/item-slot-drop-panel-9T8BWejl.cjs +57 -0
- package/components/{item-slot-drop-panel-D5vaJidp.js → item-slot-drop-panel-DoWCzjqb.js} +40 -41
- package/components/item-slot-picker/index.cjs +1 -1
- package/components/item-slot-picker/index.js +1 -1
- package/components/item-slot-picker/item-slot-picker.d.ts +3 -0
- package/components/{item-slot-picker-BZV33YoP.js → item-slot-picker-CadZEvOA.js} +138 -112
- package/components/item-slot-picker-Rnb_wwCV.cjs +174 -0
- package/components/item-slot-picker-panel/index.cjs +1 -1
- package/components/item-slot-picker-panel/index.js +1 -1
- package/components/item-slot-picker-panel-2VJY6C0b.cjs +81 -0
- package/components/{item-slot-picker-panel-DyhRlAKN.js → item-slot-picker-panel-Bhr6d6Ya.js} +4 -5
- package/components/item-slots-configs.js +45 -45
- package/components/{line-chart-options.config-CfHRdG6O.js → line-chart-options.config-DMjvCs-4.js} +1 -1
- package/components/{line-chart-positioning.config-pSGQm1C1.cjs → line-chart-positioning.config-BIkHxiyg.cjs} +1 -1
- package/components/{line-chart-positioning.config-Cfcgse1N.js → line-chart-positioning.config-CdnYQBah.js} +1 -1
- package/components/{line-chart-slots.config-DKy4D4Yt.js → line-chart-slots.config-CrQEwa4W.js} +1 -1
- package/components/load-data-fields-for-datasets-CU75T9Az.js +86 -0
- package/components/load-data-fields-for-datasets-DkK1JsFd.cjs +20 -0
- package/components/{decorate-CaYbmmmm.js → localized-mixin-CBMYHOPv.js} +26 -2
- package/components/{ai-chat/index.cjs → localized-mixin-DAOiXh71.cjs} +1 -1
- package/components/{marker-map-options.config-C_aGdRQQ.js → marker-map-options.config-C52a3boH.js} +1 -1
- package/components/{marker-map-positioning.config-DTCPGbnG.js → marker-map-positioning.config-BSz4P-W9.js} +1 -1
- package/components/{hexbin-map-positioning.config-Cno9WIc9.cjs → marker-map-positioning.config-t66fioVz.cjs} +1 -1
- package/components/{marker-map-slots.config-BKRRAGwB.js → marker-map-slots.config-eJAxjIaQ.js} +1 -1
- package/components/nl-BwK5iXtO.cjs +20 -0
- package/components/{nl-C_g1Le3t.js → nl-D-Wa6DnD.js} +14 -9
- package/components/{ohlc-chart-options.config-Bd-vLN0I.js → ohlc-chart-options.config-38qB2VKc.js} +1 -1
- package/components/{ohlc-chart-positioning.config-NhpIR1T3.cjs → ohlc-chart-positioning.config-BGueS7CJ.cjs} +1 -1
- package/components/{ohlc-chart-positioning.config-D0kJJkXw.js → ohlc-chart-positioning.config-tQPPutWX.js} +1 -1
- package/components/{ohlc-chart-slots.config-DC8NCD0o.js → ohlc-chart-slots.config-SOs4oD-Q.js} +1 -1
- package/components/{parallel-coordinates-plot-options.config-BUo6XxfP.js → parallel-coordinates-plot-options.config-DfZ80jLX.js} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-Dzd0eaka.js → parallel-coordinates-plot-positioning.config-MkX-qYHX.js} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-DLF0U4lZ.cjs → parallel-coordinates-plot-positioning.config-NrJ2LNM8.cjs} +1 -1
- package/components/{parallel-coordinates-plot-slots.config-Dy-9mztD.js → parallel-coordinates-plot-slots.config-DgsHiCqT.js} +1 -1
- package/components/{formatter-Cq5dFCyU.js → period-over-period-condition.const-DLA60ptm.js} +235 -44
- package/components/period-over-period-condition.const-DystGY6B.cjs +20 -0
- package/components/{pivot-table-options.config-DrzB4qVX.js → pivot-table-options.config-5udtucDD.js} +1 -1
- package/components/{pivot-table-positioning.config-BvUjUkG3.cjs → pivot-table-positioning.config-DgJ5PPB9.cjs} +1 -1
- package/components/{pivot-table-positioning.config-PKXfqjiN.js → pivot-table-positioning.config-Dr_0v4TM.js} +1 -1
- package/components/{pivot-table-slots.config-OQe8tS40.js → pivot-table-slots.config-CRL6EW5R.js} +1 -1
- package/components/{pragmatic-element-adapter-CKhTZWGj.cjs → pragmatic-element-adapter-U3ppsQDe.cjs} +3 -3
- package/components/{pragmatic-element-adapter-BFUFSRw6.js → pragmatic-element-adapter-e5LbH_lv.js} +50 -50
- package/components/{pyramid-chart-options.config-Dux8839h.js → pyramid-chart-options.config-iP2MzTeb.js} +1 -1
- package/components/{pyramid-chart-positioning.config-48iZhPdi.cjs → pyramid-chart-positioning.config-BGRtXKWh.cjs} +1 -1
- package/components/{pyramid-chart-positioning.config-C8yiD0R3.js → pyramid-chart-positioning.config-DB0BI8vW.js} +1 -1
- package/components/{pyramid-chart-slots.config-DwlZaBAF.js → pyramid-chart-slots.config-DM3lYlDg.js} +1 -1
- package/components/{radar-chart-options.config-ColtKo6Z.js → radar-chart-options.config-aR5sQal-.js} +1 -1
- package/components/{radar-chart-positioning.config-L5Eu5W1I.js → radar-chart-positioning.config-D6UfRMMA.js} +1 -1
- package/components/{radar-chart-positioning.config-CpqhJjoz.cjs → radar-chart-positioning.config-DQiJ-Z1s.cjs} +1 -1
- package/components/{radar-chart-slots.config-BuHg4Zeg.js → radar-chart-slots.config-msW05r4n.js} +1 -1
- package/components/{regular-table-options.config-DopdB4eB.js → regular-table-options.config-kbARlJ1E.js} +1 -1
- package/components/{regular-table-slots.config--SVEN5Cu.js → regular-table-slots.config-DAwLOM5T.js} +1 -1
- package/components/{route-map-options.config-BCuJw5k3.js → route-map-options.config-DCBAfq09.js} +1 -1
- package/components/{route-map-positioning.config-DTwMkeiu.cjs → route-map-positioning.config-Cbic0Cbz.cjs} +1 -1
- package/components/{route-map-positioning.config-DVb_Jiws.js → route-map-positioning.config-D_ZoyhwX.js} +1 -1
- package/components/{route-map-slots.config-CmVIxDkx.js → route-map-slots.config-DNiRtoRC.js} +1 -1
- package/components/{sankey-diagram-options.config-BH3kpjFs.js → sankey-diagram-options.config-CKjVnYnF.js} +1 -1
- package/components/{sankey-diagram-positioning.config-Dk0siSAo.js → sankey-diagram-positioning.config-CQNdImz0.js} +1 -1
- package/components/{sankey-diagram-positioning.config-_kyrBnJ4.cjs → sankey-diagram-positioning.config-CZDPh7CR.cjs} +1 -1
- package/components/{sankey-diagram-slots.config-lbkF8DWJ.js → sankey-diagram-slots.config-CVD2P6RJ.js} +1 -1
- package/components/{scatter-plot-options.config-Dn6ILlJw.js → scatter-plot-options.config--AfAxaGf.js} +1 -1
- package/components/{scatter-plot-positioning.config-DaYstFV8.cjs → scatter-plot-positioning.config-BPEymo3a.cjs} +1 -1
- package/components/{scatter-plot-positioning.config-440yA7x5.js → scatter-plot-positioning.config-BTOiZ8cF.js} +1 -1
- package/components/{scatter-plot-slots.config-DEFWWj0_.js → scatter-plot-slots.config-D57rd66g.js} +1 -1
- package/components/{search-filter-options.config-DWKVxBc5.js → search-filter-options.config-DQwMOiXm.js} +1 -1
- package/components/{search-filter-slots.config-vyPYIXE7.js → search-filter-slots.config-DQybwP4H.js} +1 -1
- package/components/{set-locale-DKCZkJVL.cjs → set-locale-BCnD4yp_.cjs} +1 -1
- package/components/{set-locale-DB1FMgtK.js → set-locale-CamOWu7o.js} +4 -4
- package/components/{slicer-filter-options.config-C6HPrjIw.js → slicer-filter-options.config-DVE33GEz.js} +1 -1
- package/components/{slicer-filter-positioning.config-B6wPo539.js → slicer-filter-positioning.config-CC7uoU2D.js} +1 -1
- package/components/{slicer-filter-positioning.config-DdfTuXdV.cjs → slicer-filter-positioning.config-CQE4ocpD.cjs} +1 -1
- package/components/{slicer-filter-slots.config-BZWCSkX4.js → slicer-filter-slots.config-Bcz9RsdR.js} +1 -1
- package/components/{slider-filter-options.config-CvqHWJIX.js → slider-filter-options.config-BwaAvOvt.js} +1 -1
- package/components/{slider-filter-slots.config-BY9X2rlz.js → slider-filter-slots.config-Bc8Qk7fb.js} +1 -1
- package/components/slot-menu-BL772rj7.js +1048 -0
- package/components/slot-menu-CCbZ-krJ.cjs +215 -0
- package/components/{speedometer-chart-options.config-wX3KzciD.js → speedometer-chart-options.config-D4-8n5pn.js} +1 -1
- package/components/{speedometer-chart-positioning.config-rI2Jxymu.js → speedometer-chart-positioning.config-ChH-uAdS.js} +1 -1
- package/components/{speedometer-chart-positioning.config-BVYrl1_s.cjs → speedometer-chart-positioning.config-DpBVarun.cjs} +1 -1
- package/components/{speedometer-chart-slots.config-0Tv8EtKT.js → speedometer-chart-slots.config-B4zqf0f_.js} +1 -1
- package/components/{spike-map-options.config-DpgsB_L-.js → spike-map-options.config-CM46vw7B.js} +1 -1
- package/components/{spike-map-positioning.config-CiY2ju4c.js → spike-map-positioning.config-BnEQJ-rD.js} +1 -1
- package/components/{spike-map-positioning.config-2XZLrk9D.cjs → spike-map-positioning.config-DrSoa8Ol.cjs} +1 -1
- package/components/{spike-map-slots.config-C6e0NXiD.js → spike-map-slots.config-BeXzuzh0.js} +1 -1
- package/components/{strip-plot-options.config-BzhxzU-s.js → strip-plot-options.config-BlneYJOy.js} +1 -1
- package/components/{strip-plot-positioning.config-CFQPdgei.js → strip-plot-positioning.config-Be5Desz2.js} +1 -1
- package/components/{strip-plot-positioning.config-CkC8JUwR.cjs → strip-plot-positioning.config-DlkZ1i6m.cjs} +1 -1
- package/components/{strip-plot-slots.config-BjwAuVoh.js → strip-plot-slots.config-BGQIQtMK.js} +1 -1
- package/components/{sunburst-chart-options.config-Ba_H54ip.js → sunburst-chart-options.config-8xopRyBB.js} +1 -1
- package/components/{sunburst-chart-positioning.config-DVt84HYB.cjs → sunburst-chart-positioning.config-D4zzci9s.cjs} +1 -1
- package/components/{sunburst-chart-positioning.config-BHJf7n-T.js → sunburst-chart-positioning.config-RUEkAgKJ.js} +1 -1
- package/components/{sunburst-chart-slots.config-h114Cuzh.js → sunburst-chart-slots.config-BhKeTqTo.js} +1 -1
- package/components/{symbol-map-options.config-DeJyZILi.js → symbol-map-options.config-nJAvVQIh.js} +1 -1
- package/components/{symbol-map-positioning.config-DQK1q4GP.cjs → symbol-map-positioning.config-Dmgmyhv7.cjs} +1 -1
- package/components/{symbol-map-positioning.config-tZp8vwwl.js → symbol-map-positioning.config-JzgtULMk.js} +1 -1
- package/components/{symbol-map-slots.config-BmvI5_VE.js → symbol-map-slots.config-D9E-oBE4.js} +1 -1
- package/components/{text-options.config-BXuZMKTG.js → text-options.config-DCF3IVzO.js} +1 -1
- package/components/{text-slots.config-18Chz73A.js → text-slots.config-C60nJ0OX.js} +1 -1
- package/components/{treemap-chart-options.config-Be-LBEGy.js → treemap-chart-options.config-RFQTphEG.js} +1 -1
- package/components/{treemap-chart-positioning.config-CEYAh7Uc.js → treemap-chart-positioning.config-CSt_vVgw.js} +1 -1
- package/components/{treemap-chart-positioning.config-DQfHJ-ZS.cjs → treemap-chart-positioning.config-CqHJxz2j.cjs} +1 -1
- package/components/{treemap-chart-slots.config-e7ORieH-.js → treemap-chart-slots.config-CZRP7PZH.js} +1 -1
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +2 -2
- package/components/utils/store.js +1 -1
- package/components/utils-DLTDAer5.js +239 -0
- package/components/utils-Ez3j4EOS.cjs +20 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +6 -9
- package/components/{venn-diagram-options.config-D3bEFsYa.js → venn-diagram-options.config-uCJ5dei5.js} +1 -1
- package/components/{venn-diagram-positioning.config-DQa6-GAn.cjs → venn-diagram-positioning.config-CzhNTma3.cjs} +1 -1
- package/components/{venn-diagram-positioning.config-2rUFGTJh.js → venn-diagram-positioning.config-DsPI8qfG.js} +1 -1
- package/components/{venn-diagram-slots.config-Dm-IC6JS.js → venn-diagram-slots.config-DOljH_uI.js} +1 -1
- package/components/{video-options.config-B5aOwGa4.js → video-options.config-DkLrX1gP.js} +1 -1
- package/components/{video-slots.config-D2MtpAGI.js → video-slots.config-CqMIkttE.js} +1 -1
- package/components/{wordcloud-chart-options.config-DntH4Hvg.js → wordcloud-chart-options.config-C2ZILp7a.js} +1 -1
- package/components/{wordcloud-chart-positioning.config-C3Zulr2Q.js → wordcloud-chart-positioning.config-BUE8e4fN.js} +1 -1
- package/components/{wordcloud-chart-positioning.config-DhoAsQP-.cjs → wordcloud-chart-positioning.config-moNJfL1M.cjs} +1 -1
- package/components/{wordcloud-chart-slots.config-CsFBBXDz.js → wordcloud-chart-slots.config-B8s8B47F.js} +1 -1
- package/custom-elements.json +5896 -15935
- package/index.d.ts +0 -24
- package/package.json +3 -128
- package/react/README.md +6 -31
- package/react/esm/index.d.ts +2 -27
- package/react/esm/index.js +2 -102
- package/react/esm/types.d.ts +0 -15
- package/react/index.ts +2 -102
- package/react/luzmo-stub.d.ts +0 -163
- package/react/types.ts +0 -12
- package/react/utils/slot-content/ad-hoc-slot-content.d.ts +7 -0
- package/react/utils/slot-content/render-calculation-label.d.ts +7 -0
- package/react/utils/slot-state/slot-store.d.ts +2 -2
- package/types/slot.types.d.ts +10 -1
- package/types.d.ts +0 -8
- package/utils/slot-content/ad-hoc-slot-content.d.ts +7 -0
- package/utils/slot-content/render-calculation-label.d.ts +7 -0
- package/utils/slot-state/slot-store.d.ts +2 -2
- package/components/ai-chat/ai-chat-events.d.ts +0 -123
- package/components/ai-chat/ai-chat-request.d.ts +0 -11
- package/components/ai-chat/ai-chat.d.ts +0 -279
- package/components/ai-chat/ai-prompt-types.d.ts +0 -94
- package/components/ai-chat/empty-state/ai-chat-empty-state.d.ts +0 -46
- package/components/ai-chat/empty-state/index.d.ts +0 -8
- package/components/ai-chat/empty-state/types.d.ts +0 -14
- package/components/ai-chat/index.d.ts +0 -20
- package/components/ai-chat/index.js +0 -28
- package/components/ai-chat/session/ai-chat-session-controller.d.ts +0 -51
- package/components/ai-chat/session/ai-chat-session-types.d.ts +0 -88
- package/components/ai-chat/session/ai-chat-session.d.ts +0 -91
- package/components/ai-chat/session/index.d.ts +0 -2
- package/components/ai-chat/stream/chunk-extractors.d.ts +0 -27
- package/components/ai-chat/stream/index.d.ts +0 -52
- package/components/ai-chat/stream/progress.d.ts +0 -3
- package/components/ai-chat/stream/registry.d.ts +0 -6
- package/components/ai-chat/stream/stream-processor.d.ts +0 -2
- package/components/ai-chat/stream/transport.d.ts +0 -26
- package/components/ai-chat/stream/types.d.ts +0 -55
- package/components/ai-chat-CXt4wCe0.js +0 -3715
- package/components/ai-chat-Dnf-C838.cjs +0 -258
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +0 -135
- package/components/ai-interaction-textarea/index.cjs +0 -20
- package/components/ai-interaction-textarea/index.d.ts +0 -8
- package/components/ai-interaction-textarea/index.js +0 -28
- package/components/ai-interaction-textarea/types.d.ts +0 -5
- package/components/ai-interaction-textarea-B_-aZ9mc.cjs +0 -68
- package/components/ai-interaction-textarea-DSrZkuh9.js +0 -299
- package/components/base-BCmPH4SF.cjs +0 -20
- package/components/convert-data-field-to-slot-content-BQkSy_8B.cjs +0 -20
- package/components/convert-data-field-to-slot-content-C6IIqU7G.js +0 -53
- package/components/convert-datasets-to-data-fields-B13rl1an.cjs +0 -20
- package/components/convert-datasets-to-data-fields-PmQzeVLG.js +0 -68
- package/components/data-field-CxUItUcs.cjs +0 -54
- package/components/data-field-RzkD37hR.js +0 -121
- package/components/data-field-level/data-field-level.d.ts +0 -40
- package/components/data-field-level/helpers/generate-preview.d.ts +0 -9
- package/components/data-field-level/index.cjs +0 -20
- package/components/data-field-level/index.d.ts +0 -8
- package/components/data-field-level/index.js +0 -28
- package/components/data-field-level-55bJkqFt.cjs +0 -55
- package/components/data-field-panel-C3O77CIF.cjs +0 -87
- package/components/data-fields-select/data-fields-select.d.ts +0 -127
- package/components/data-fields-select/index.cjs +0 -20
- package/components/data-fields-select/index.d.ts +0 -9
- package/components/data-fields-select/index.js +0 -28
- package/components/data-fields-select/types.d.ts +0 -4
- package/components/data-fields-select-D-nSjOep.cjs +0 -41
- package/components/dataset-icon/dataset-icon.d.ts +0 -45
- package/components/dataset-icon/index.cjs +0 -20
- package/components/dataset-icon/index.d.ts +0 -8
- package/components/dataset-icon/index.js +0 -28
- package/components/dataset-icon/types.d.ts +0 -11
- package/components/dataset-icon-BAV0S4sZ.cjs +0 -64
- package/components/dataset-icon-BXEgg_8O.js +0 -125
- package/components/dataset-selector-list/dataset-selector-list.d.ts +0 -102
- package/components/dataset-selector-list/index.cjs +0 -20
- package/components/dataset-selector-list/index.d.ts +0 -8
- package/components/dataset-selector-list/index.js +0 -28
- package/components/dataset-selector-list-BW5v_7_L.cjs +0 -75
- package/components/dataset-selector-list-DwfeaUGu.js +0 -313
- package/components/dataset-selector-row/dataset-selector-row.d.ts +0 -89
- package/components/dataset-selector-row/index.cjs +0 -20
- package/components/dataset-selector-row/index.d.ts +0 -8
- package/components/dataset-selector-row/index.js +0 -28
- package/components/dataset-selector-row-BU7YhT7l.cjs +0 -79
- package/components/dataset-selector-row-CLbx0joD.js +0 -273
- package/components/de-BY1wWZE8.cjs +0 -20
- package/components/decompose-numeric-format-DGJua3rU.cjs +0 -20
- package/components/decompose-numeric-format-DS0j2wa1.js +0 -36
- package/components/decorate-DCJt-2rt.cjs +0 -20
- package/components/display-settings/display-settings.d.ts +0 -98
- package/components/display-settings/index.cjs +0 -20
- package/components/display-settings/index.d.ts +0 -8
- package/components/display-settings/index.js +0 -28
- package/components/display-settings/types.d.ts +0 -9
- package/components/display-settings-COYLimuI.cjs +0 -120
- package/components/display-settings-ajA8j6kr.js +0 -272
- package/components/display-settings-binning/display-settings-binning.d.ts +0 -32
- package/components/display-settings-binning/index.cjs +0 -20
- package/components/display-settings-binning/index.d.ts +0 -8
- package/components/display-settings-binning/index.js +0 -28
- package/components/display-settings-datetime/display-settings-datetime.d.ts +0 -86
- package/components/display-settings-datetime/index.cjs +0 -20
- package/components/display-settings-datetime/index.d.ts +0 -8
- package/components/display-settings-datetime/index.js +0 -28
- package/components/display-settings-datetime-CLRXVpld.cjs +0 -217
- package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +0 -29
- package/components/display-settings-grand-totals/index.cjs +0 -20
- package/components/display-settings-grand-totals/index.d.ts +0 -8
- package/components/display-settings-grand-totals/index.js +0 -28
- package/components/display-settings-grand-totals-DltI_Z-x.cjs +0 -44
- package/components/display-settings-numeric/display-settings-numeric.d.ts +0 -82
- package/components/display-settings-numeric/helpers/constants.d.ts +0 -19
- package/components/display-settings-numeric/index.cjs +0 -20
- package/components/display-settings-numeric/index.d.ts +0 -8
- package/components/display-settings-numeric/index.js +0 -28
- package/components/display-settings-numeric-CurqaTi5.cjs +0 -190
- package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +0 -68
- package/components/display-settings-period-over-period/helpers/constants.d.ts +0 -44
- package/components/display-settings-period-over-period/index.cjs +0 -20
- package/components/display-settings-period-over-period/index.d.ts +0 -8
- package/components/display-settings-period-over-period/index.js +0 -28
- package/components/display-settings-period-over-period-DP2grX4n.cjs +0 -229
- package/components/es-BIaD4kOL.cjs +0 -20
- package/components/filter-expression-picker/filter-expression-picker.d.ts +0 -73
- package/components/filter-expression-picker/index.cjs +0 -20
- package/components/filter-expression-picker/index.d.ts +0 -7
- package/components/filter-expression-picker/index.js +0 -28
- package/components/filter-expression-picker-0eNf_L9I.cjs +0 -38
- package/components/filter-expression-picker-D_buTmzJ.js +0 -425
- package/components/filter-item/filter-item.d.ts +0 -84
- package/components/filter-item/index.cjs +0 -20
- package/components/filter-item/index.d.ts +0 -7
- package/components/filter-item/index.js +0 -28
- package/components/filter-item-DGnRmeaB.cjs +0 -58
- package/components/filter-item-VzEHDr04.js +0 -242
- package/components/filter-parameter-picker/filter-parameter-picker.d.ts +0 -25
- package/components/filter-parameter-picker/index.cjs +0 -22
- package/components/filter-parameter-picker/index.d.ts +0 -7
- package/components/filter-parameter-picker/index.js +0 -58
- package/components/filter-value-picker/filter-value-picker.d.ts +0 -65
- package/components/filter-value-picker/index.cjs +0 -20
- package/components/filter-value-picker/index.d.ts +0 -7
- package/components/filter-value-picker/index.js +0 -28
- package/components/filter-value-picker-C1lDTmKM.cjs +0 -60
- package/components/filter-value-picker-CIblY-PW.js +0 -151
- package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +0 -42
- package/components/filter-value-picker-datetime/index.cjs +0 -20
- package/components/filter-value-picker-datetime/index.d.ts +0 -7
- package/components/filter-value-picker-datetime/index.js +0 -28
- package/components/filter-value-picker-datetime-DQpEf_tv.js +0 -139
- package/components/filter-value-picker-datetime-dCo1_pma.cjs +0 -42
- package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +0 -81
- package/components/filter-value-picker-hierarchy/index.cjs +0 -20
- package/components/filter-value-picker-hierarchy/index.d.ts +0 -7
- package/components/filter-value-picker-hierarchy/index.js +0 -28
- package/components/filter-value-picker-hierarchy-DaZlasgM.cjs +0 -47
- package/components/filter-value-picker-hierarchy-DzHUrpyk.js +0 -232
- package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +0 -82
- package/components/filter-value-picker-numeric/index.cjs +0 -20
- package/components/filter-value-picker-numeric/index.d.ts +0 -7
- package/components/filter-value-picker-numeric/index.js +0 -28
- package/components/filter-value-picker-numeric-BU975w8c.js +0 -219
- package/components/filter-value-picker-numeric-D-dUSGAP.cjs +0 -48
- package/components/filters-BgTnxSKg.js +0 -400
- package/components/filters-Cx1S1-vx.cjs +0 -150
- package/components/formatter-8m-wrIM-.cjs +0 -20
- package/components/formula-D7E8UieE.cjs +0 -45
- package/components/formula-codemirror/formula-codemirror.d.ts +0 -79
- package/components/formula-codemirror/index.d.ts +0 -7
- package/components/formula-codemirror/pills/formula-aggregation/formula-aggregation.d.ts +0 -125
- package/components/formula-codemirror/pills/formula-aggregation/index.d.ts +0 -7
- package/components/formula-codemirror/pills/formula-empty-argument-pill/formula-empty-argument-pill.d.ts +0 -28
- package/components/formula-codemirror/pills/formula-empty-argument-pill/index.d.ts +0 -7
- package/components/formula-codemirror/pills/formula-include-exclude-panel.d.ts +0 -38
- package/components/formula-display-store-DjjsQ5mW.cjs +0 -20
- package/components/formula-draggable-field/formula-draggable-field.d.ts +0 -53
- package/components/formula-draggable-field/index.d.ts +0 -8
- package/components/formula-draggable-field/types.d.ts +0 -24
- package/components/formula-editor-4PoZ3BlC.cjs +0 -218
- package/components/formula-field/formula-field.d.ts +0 -20
- package/components/formula-field/index.cjs +0 -20
- package/components/formula-field/index.d.ts +0 -7
- package/components/formula-field/index.js +0 -28
- package/components/formula-field-DXdxspyY.js +0 -40
- package/components/formula-field-DkKXMIMg.cjs +0 -20
- package/components/formula-input-base-Bz_XVZcs.cjs +0 -49
- package/components/formula-input-base-Dok5ujvH.js +0 -236
- package/components/fr-CHG2Tcby.cjs +0 -20
- package/components/get-dataset-name-Dwuh7DWE.cjs +0 -20
- package/components/get-dataset-name-SfDNjsuR.js +0 -27
- package/components/groupings-BNrLlXIB.cjs +0 -20
- package/components/groupings-okwLJKoG.js +0 -52
- package/components/interactive-viz-item/helpers/chart-helpers.d.ts +0 -7
- package/components/interactive-viz-item/index.cjs +0 -20
- package/components/interactive-viz-item/index.d.ts +0 -10
- package/components/interactive-viz-item/index.js +0 -28
- package/components/interactive-viz-item/interactive-viz-item.d.ts +0 -96
- package/components/interactive-viz-item/types.d.ts +0 -117
- package/components/interactive-viz-item-63pap_oz.cjs +0 -247
- package/components/interactive-viz-item-QVji6wbp.js +0 -693
- package/components/item-menu/item-list/item-list.d.ts +0 -37
- package/components/item-option-action-button-group-jPUDKP3M.cjs +0 -53
- package/components/item-option-base/item-option-base.d.ts +0 -23
- package/components/item-option-base-Bk9L8Ie7.cjs +0 -56
- package/components/item-option-color-palette-picker-kch0Ep_5.cjs +0 -40
- package/components/item-option-color-range-Cj6sZ72F.cjs +0 -98
- package/components/item-option-iQM2pOGK.cjs +0 -252
- package/components/item-option-position-picker-Csc4Y6dN.cjs +0 -32
- package/components/item-option-positions-number-field-DBV6Yekk.cjs +0 -49
- package/components/item-slot-drop-D8KI2kny.cjs +0 -91
- package/components/item-slot-drop-panel-Crw-ktDj.cjs +0 -57
- package/components/item-slot-picker-BgQAviso.cjs +0 -158
- package/components/item-slot-picker-panel-C26kZ4zE.cjs +0 -81
- package/components/load-data-fields-for-datasets-BVGaku2J.cjs +0 -20
- package/components/load-data-fields-for-datasets-DeXLqWt4.js +0 -42
- package/components/localized-mixin-BYWQe1fg.js +0 -45
- package/components/localized-mixin-DrK3QZNa.cjs +0 -20
- package/components/nl-PxN5EqzT.cjs +0 -20
- package/components/period-over-period-condition.const-BZ7j5Z5t.js +0 -29
- package/components/period-over-period-condition.const-C1NZ9Bkp.cjs +0 -20
- package/components/slot-menu/index.cjs +0 -20
- package/components/slot-menu/index.d.ts +0 -10
- package/components/slot-menu/index.js +0 -28
- package/components/slot-menu/slot-menu.d.ts +0 -143
- package/components/slot-menu/types.d.ts +0 -24
- package/components/slot-menu-BBnibMJU.cjs +0 -64
- package/components/slot-menu-list/index.cjs +0 -20
- package/components/slot-menu-list/index.d.ts +0 -8
- package/components/slot-menu-list/index.js +0 -28
- package/components/slot-menu-list/slot-menu-list.d.ts +0 -42
- package/components/slot-menu-list-D193fsQX.cjs +0 -38
- package/components/slot-menu-list-gKDiWsHB.js +0 -325
- package/components/slot-menu-w7sla2N0.js +0 -400
- package/components/slots-config-DIBoffEb.js +0 -77
- package/components/slots-config-YdyClHLc.cjs +0 -20
- package/components/utils-CJf8VNzX.cjs +0 -20
- package/components/utils-Ci1YA9yB.js +0 -352
- package/components/viz-item-menu/index.cjs +0 -20
- package/components/viz-item-menu/index.d.ts +0 -8
- package/components/viz-item-menu/index.js +0 -28
- package/components/viz-item-menu/types.d.ts +0 -9
- package/components/viz-item-menu/viz-item-menu.d.ts +0 -75
- package/components/viz-item-menu-B4BJBNEq.js +0 -170
- package/components/viz-item-menu-DD8ndROu.cjs +0 -55
- package/react/components/ai-chat/empty-state/index.ts +0 -1
- package/react/components/ai-chat/empty-state/types.ts +0 -16
- package/react/components/ai-chat/stream/index.ts +0 -1
- package/react/components/ai-chat/stream/types.ts +0 -60
- package/react/components/ai-chat.component.ts +0 -42
- package/react/components/ai-interaction-textarea/index.ts +0 -1
- package/react/components/ai-interaction-textarea/types.ts +0 -6
- package/react/components/ai-interaction-textarea.component.ts +0 -30
- package/react/components/data-field-level.component.ts +0 -30
- package/react/components/data-fields-select/index.ts +0 -1
- package/react/components/data-fields-select/types.ts +0 -5
- package/react/components/data-fields-select.component.ts +0 -27
- package/react/components/dataset-icon/index.ts +0 -1
- package/react/components/dataset-icon/types.ts +0 -8
- package/react/components/dataset-icon.component.ts +0 -22
- package/react/components/dataset-selector-list.component.ts +0 -27
- package/react/components/dataset-selector-row.component.ts +0 -30
- package/react/components/display-settings/index.ts +0 -1
- package/react/components/display-settings/types.ts +0 -12
- package/react/components/display-settings-binning.component.ts +0 -27
- package/react/components/display-settings-datetime.component.ts +0 -27
- package/react/components/display-settings-grand-totals.component.ts +0 -27
- package/react/components/display-settings-numeric.component.ts +0 -27
- package/react/components/display-settings-period-over-period.component.ts +0 -27
- package/react/components/display-settings.component.ts +0 -33
- package/react/components/filter-expression-picker.component.ts +0 -27
- package/react/components/filter-item.component.ts +0 -27
- package/react/components/filter-parameter-picker.component.ts +0 -22
- package/react/components/filter-value-picker-datetime.component.ts +0 -27
- package/react/components/filter-value-picker-hierarchy.component.ts +0 -27
- package/react/components/filter-value-picker-numeric.component.ts +0 -27
- package/react/components/filter-value-picker.component.ts +0 -27
- package/react/components/formula-draggable-field/index.ts +0 -1
- package/react/components/formula-draggable-field/types.ts +0 -26
- package/react/components/formula-field.component.ts +0 -30
- package/react/components/interactive-viz-item/index.ts +0 -1
- package/react/components/interactive-viz-item/types.ts +0 -122
- package/react/components/interactive-viz-item.component.ts +0 -33
- package/react/components/slot-menu/index.ts +0 -1
- package/react/components/slot-menu/types.ts +0 -29
- package/react/components/slot-menu-list.component.ts +0 -27
- package/react/components/slot-menu.component.ts +0 -42
- package/react/components/viz-item-menu/index.ts +0 -1
- package/react/components/viz-item-menu/types.ts +0 -11
- package/react/components/viz-item-menu.component.ts +0 -33
- package/react/esm/components/ai-chat/empty-state/index.d.ts +0 -1
- package/react/esm/components/ai-chat/empty-state/index.js +0 -1
- package/react/esm/components/ai-chat/empty-state/types.d.ts +0 -14
- package/react/esm/components/ai-chat/stream/index.d.ts +0 -1
- package/react/esm/components/ai-chat/stream/index.js +0 -1
- package/react/esm/components/ai-chat/stream/types.d.ts +0 -55
- package/react/esm/components/ai-chat.component.d.ts +0 -22
- package/react/esm/components/ai-chat.component.js +0 -27
- package/react/esm/components/ai-interaction-textarea/index.d.ts +0 -1
- package/react/esm/components/ai-interaction-textarea/index.js +0 -1
- package/react/esm/components/ai-interaction-textarea/types.d.ts +0 -5
- package/react/esm/components/ai-interaction-textarea.component.d.ts +0 -14
- package/react/esm/components/ai-interaction-textarea.component.js +0 -19
- package/react/esm/components/data-field-level.component.d.ts +0 -14
- package/react/esm/components/data-field-level.component.js +0 -19
- package/react/esm/components/data-fields-select/index.d.ts +0 -1
- package/react/esm/components/data-fields-select/index.js +0 -1
- package/react/esm/components/data-fields-select/types.d.ts +0 -4
- package/react/esm/components/data-fields-select.component.d.ts +0 -12
- package/react/esm/components/data-fields-select.component.js +0 -17
- package/react/esm/components/dataset-icon/index.d.ts +0 -1
- package/react/esm/components/dataset-icon/index.js +0 -1
- package/react/esm/components/dataset-icon/types.d.ts +0 -11
- package/react/esm/components/dataset-icon/types.js +0 -1
- package/react/esm/components/dataset-icon.component.d.ts +0 -8
- package/react/esm/components/dataset-icon.component.js +0 -13
- package/react/esm/components/dataset-selector-list.component.d.ts +0 -12
- package/react/esm/components/dataset-selector-list.component.js +0 -17
- package/react/esm/components/dataset-selector-row.component.d.ts +0 -14
- package/react/esm/components/dataset-selector-row.component.js +0 -19
- package/react/esm/components/display-settings/index.d.ts +0 -1
- package/react/esm/components/display-settings/index.js +0 -1
- package/react/esm/components/display-settings/types.d.ts +0 -9
- package/react/esm/components/display-settings/types.js +0 -1
- package/react/esm/components/display-settings-binning.component.d.ts +0 -12
- package/react/esm/components/display-settings-binning.component.js +0 -17
- package/react/esm/components/display-settings-datetime.component.d.ts +0 -12
- package/react/esm/components/display-settings-datetime.component.js +0 -17
- package/react/esm/components/display-settings-grand-totals.component.d.ts +0 -12
- package/react/esm/components/display-settings-grand-totals.component.js +0 -17
- package/react/esm/components/display-settings-numeric.component.d.ts +0 -12
- package/react/esm/components/display-settings-numeric.component.js +0 -17
- package/react/esm/components/display-settings-period-over-period.component.d.ts +0 -12
- package/react/esm/components/display-settings-period-over-period.component.js +0 -17
- package/react/esm/components/display-settings.component.d.ts +0 -16
- package/react/esm/components/display-settings.component.js +0 -21
- package/react/esm/components/filter-expression-picker.component.d.ts +0 -12
- package/react/esm/components/filter-expression-picker.component.js +0 -17
- package/react/esm/components/filter-item.component.d.ts +0 -12
- package/react/esm/components/filter-item.component.js +0 -17
- package/react/esm/components/filter-parameter-picker.component.d.ts +0 -8
- package/react/esm/components/filter-parameter-picker.component.js +0 -13
- package/react/esm/components/filter-value-picker-datetime.component.d.ts +0 -12
- package/react/esm/components/filter-value-picker-datetime.component.js +0 -17
- package/react/esm/components/filter-value-picker-hierarchy.component.d.ts +0 -12
- package/react/esm/components/filter-value-picker-hierarchy.component.js +0 -17
- package/react/esm/components/filter-value-picker-numeric.component.d.ts +0 -12
- package/react/esm/components/filter-value-picker-numeric.component.js +0 -17
- package/react/esm/components/filter-value-picker.component.d.ts +0 -12
- package/react/esm/components/filter-value-picker.component.js +0 -17
- package/react/esm/components/formula-draggable-field/index.d.ts +0 -1
- package/react/esm/components/formula-draggable-field/index.js +0 -1
- package/react/esm/components/formula-draggable-field/types.d.ts +0 -24
- package/react/esm/components/formula-draggable-field/types.js +0 -1
- package/react/esm/components/formula-field.component.d.ts +0 -14
- package/react/esm/components/formula-field.component.js +0 -19
- package/react/esm/components/interactive-viz-item/index.d.ts +0 -1
- package/react/esm/components/interactive-viz-item/index.js +0 -1
- package/react/esm/components/interactive-viz-item/types.d.ts +0 -117
- package/react/esm/components/interactive-viz-item/types.js +0 -16
- package/react/esm/components/interactive-viz-item.component.d.ts +0 -16
- package/react/esm/components/interactive-viz-item.component.js +0 -21
- package/react/esm/components/slot-menu/index.d.ts +0 -1
- package/react/esm/components/slot-menu/index.js +0 -1
- package/react/esm/components/slot-menu/types.d.ts +0 -24
- package/react/esm/components/slot-menu/types.js +0 -1
- package/react/esm/components/slot-menu-list.component.d.ts +0 -12
- package/react/esm/components/slot-menu-list.component.js +0 -17
- package/react/esm/components/slot-menu.component.d.ts +0 -22
- package/react/esm/components/slot-menu.component.js +0 -27
- package/react/esm/components/viz-item-menu/index.d.ts +0 -1
- package/react/esm/components/viz-item-menu/index.js +0 -1
- package/react/esm/components/viz-item-menu/types.d.ts +0 -9
- package/react/esm/components/viz-item-menu/types.js +0 -1
- package/react/esm/components/viz-item-menu.component.d.ts +0 -16
- package/react/esm/components/viz-item-menu.component.js +0 -21
- package/storybook/inject-global-vars.d.ts +0 -1
- package/storybook/register-components.d.ts +0 -51
- package/types/ai-chat.types.d.ts +0 -63
- package/types/data-field-events.types.d.ts +0 -7
- /package/react/{esm/components/ai-chat/empty-state/types.js → utils/formula/config/tests/build-datasets.test.d.ts} +0 -0
- /package/react/{esm/components/ai-chat/stream/types.js → utils/slot-content/tests/ad-hoc-slot-content.test.d.ts} +0 -0
- /package/{react/esm/components/ai-interaction-textarea/types.js → utils/formula/config/tests/build-datasets.test.d.ts} +0 -0
- /package/{react/esm/components/data-fields-select/types.js → utils/slot-content/tests/ad-hoc-slot-content.test.d.ts} +0 -0
|
@@ -1,48 +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-DrK3QZNa.cjs"),n=require("./data-broker-BH5WDG0j.cjs");let r=require("lit"),i=require("lit/decorators.js"),a=require("@lit/localize");require("@luzmo/lucero/select"),require("@luzmo/lucero/number-field");let o=require("@luzmo/lucero/utils");var s=`.missing-value{opacity:.4}:host{--var:blue}`,c=5e3,l=class extends t.t((0,o.SizedMixin)(o.LuzmoElement,{validSizes:Object.values(o.ElementSizes)})){constructor(...e){super(...e),this.contentLanguage=`en`,this._numericValues=[],this._retrieving=!0,this._search=``,this._error=null,this._allValuesRetrieved=!1,this._runningQueries=[]}static get styles(){return[(0,r.unsafeCSS)(s)]}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`)?.expression,n=this.filter?.expression;((e.get(`filter`)?.parameters?.[0]?.columnId||e.get(`filter`)?.parameters?.[0]?.formulaId)!==(this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId)||![`? in ?`,`? not in ?`].includes(t))&&[`? in ?`,`? not in ?`].includes(n)&&(this._numericValues=[],this._allValuesRetrieved=!1,this._retrieving=!0)}}async _fetchNumericValues(e=0){if(this._allValuesRetrieved){this._retrieving=!1;return}if(!this.filter?.parameters?.[0]){this._retrieving=!1,this._error=`Missing column parameters`;return}let t=this.filter.parameters[0],r=t.columnId,i=t.formulaId,a=t.datasetId;if(!r&&!i){this._retrieving=!1,this._error=`Missing column id or formula id`;return}else if(!a){this._retrieving=!1,this._error=`Missing dataset id`;return}this._retrieving=!0,this._error=null;let o={expression:`? like ?`,parameters:[{dataset_id:a,expression:`CAST({${a}:${r??i}},hierarchy)`},this._search]},s={dimensions:[{column_id:r,formula_id:i,dataset_id:a}],where:[],order:[{column_id:r,formula_id:i,dataset_id:a,order:`asc`}],limit:{by:c,offset:e}};this._search&&!this._allValuesRetrieved&&s.where.push(o);let l=new AbortController,u=new Promise((e,t)=>{n.t.fetchData(s).then(e).catch(t),l.signal.addEventListener(`abort`,()=>{console.warn(`Request aborted`),t({status:`aborted`})})}),d={promise:u,abortController:l};this._runningQueries.push(d);try{let t=await u,n=t&&Array.isArray(t.data)?t.data.map(e=>e[0]):[];this._search||(this._allValuesRetrieved=n.length<c),this._numericValues=e>0?[...this._numericValues,...n]:n}catch(e){if(e?.status===`aborted`)return;this._error=e instanceof Error?e.message:`Unknown error`,this._numericValues=[]}finally{this._runningQueries=this._runningQueries.filter(e=>e.promise!==u),this._retrieving=!1}}_sendChangeEvent(){this.dispatchEvent(new CustomEvent(`luzmo-filter-value-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setValue(e){let t=[`? in ?`,`? not in ?`].includes(this.filter?.expression)?e?.detail?.value:e?.target?.value;this._value!==t&&(this._value=t,this.filter={...this.filter,parameters:[{...this.filter?.parameters?.[0]},t]},this._sendChangeEvent())}selectValue(e){let t=(e.detail?.value??``).map(e=>Number.parseFloat(e));this.filter={...this.filter,parameters:[{...this.filter?.parameters?.[0]},t]},this._value=t,this._sendChangeEvent()}onScrolled(e){!this._retrieving&&!this._allValuesRetrieved&&e?.detail?.last===this._numericValues.length-1&&this._fetchNumericValues(this._numericValues.length)}renderNumberField(){return r.html`<luzmo-number-field
|
|
21
|
-
label="Numeric filter value"
|
|
22
|
-
grows
|
|
23
|
-
.size=${this.size}
|
|
24
|
-
@change=${this.setValue}
|
|
25
|
-
@input=${this.setValue}
|
|
26
|
-
.value=${this.filter?.parameters?.[1]}
|
|
27
|
-
></luzmo-number-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._fetchNumericValues()},500))}resetSearchString(){this._search=``}onOpened(){this._fetchNumericValues()}renderValuePicker(){if(this._error)return r.html`<div class="error" role="alert">${this._error}</div>`;let e=this._numericValues.filter(e=>e.toString().toLowerCase().includes(this._search.toLowerCase())).map(e=>({value:e,label:e})),t=(0,a.msg)(`Selected {count} items`),n=(0,a.msg)(`Search`),i=(0,a.msg)(`No data`),o=(0,a.msg)(`No results`),s=(0,a.msg)(`Select...`);return r.html`<luzmo-select
|
|
28
|
-
.size=${this.size}
|
|
29
|
-
.label=${s}
|
|
30
|
-
.retrieving=${this._retrieving}
|
|
31
|
-
selects="multiple"
|
|
32
|
-
variant="checkboxes"
|
|
33
|
-
emphasized
|
|
34
|
-
no-wrap
|
|
35
|
-
?invalid=${!!this._error}
|
|
36
|
-
.multipleLabelTemplate=${t}
|
|
37
|
-
.searchLabel=${n}
|
|
38
|
-
.noDataLabel=${i}
|
|
39
|
-
.noResultsLabel=${o}
|
|
40
|
-
@change=${this.selectValue}
|
|
41
|
-
@luzmo-search=${this.setSearchString}
|
|
42
|
-
@luzmo-opened=${this.onOpened}
|
|
43
|
-
@luzmo-closed=${this.resetSearchString}
|
|
44
|
-
@luzmo-scrolled=${this.onScrolled}
|
|
45
|
-
.options=${e}
|
|
46
|
-
.value=${this.filter?.parameters?.[1]}
|
|
47
|
-
>
|
|
48
|
-
</luzmo-select>`}render(){let e=this.filter?.expression;return[`? in ?`,`? not in ?`].includes(e)?this.renderValuePicker():this.renderNumberField()}};e.t([(0,i.property)({type:String,attribute:`api-url`,reflect:!0})],l.prototype,`apiUrl`,void 0),e.t([(0,i.property)({type:String,attribute:`auth-key`,reflect:!0})],l.prototype,`authKey`,void 0),e.t([(0,i.property)({type:String,attribute:`auth-token`,reflect:!0})],l.prototype,`authToken`,void 0),e.t([(0,i.property)({type:Number,attribute:`cache-time`,reflect:!0})],l.prototype,`cacheTime`,void 0),e.t([(0,i.property)({type:String,attribute:`content-language`,reflect:!0})],l.prototype,`contentLanguage`,void 0),e.t([(0,i.property)({type:Object,reflect:!1})],l.prototype,`filter`,void 0),e.t([(0,i.state)()],l.prototype,`_numericValues`,void 0),e.t([(0,i.state)()],l.prototype,`_retrieving`,void 0),e.t([(0,i.state)()],l.prototype,`_search`,void 0),e.t([(0,i.state)()],l.prototype,`_error`,void 0),l=e.t([(0,a.localized)()],l),customElements.get(`luzmo-filter-value-picker-numeric`)||customElements.define(`luzmo-filter-value-picker-numeric`,l),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
|
|
@@ -1,400 +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
|
-
import { t as e } from "./decorate-CaYbmmmm.js";
|
|
21
|
-
import { t } from "./localized-mixin-BYWQe1fg.js";
|
|
22
|
-
import "./filter-item-VzEHDr04.js";
|
|
23
|
-
import { luzmoPlus as n, luzmoTrashOutline as r } from "@luzmo/icons";
|
|
24
|
-
import { html as i, unsafeCSS as a } from "lit";
|
|
25
|
-
import { property as o, state as s } from "lit/decorators.js";
|
|
26
|
-
import { localized as c, msg as l } from "@lit/localize";
|
|
27
|
-
import "@luzmo/lucero/icon";
|
|
28
|
-
import { repeat as u } from "lit/directives/repeat.js";
|
|
29
|
-
import "@luzmo/lucero/action-button";
|
|
30
|
-
import "@luzmo/lucero/button";
|
|
31
|
-
import { ElementSizes as d, LuzmoElement as f, SizedMixin as p } from "@luzmo/lucero/utils";
|
|
32
|
-
//#region src/components/filters/transformations/transform-filters.ts
|
|
33
|
-
function m(e) {
|
|
34
|
-
return typeof e == "object" && !!e && "condition" in e && "filters" in e;
|
|
35
|
-
}
|
|
36
|
-
function h(e) {
|
|
37
|
-
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
38
|
-
}
|
|
39
|
-
function g(e) {
|
|
40
|
-
if (!Array.isArray(e) || e.length === 0) return [];
|
|
41
|
-
let t = h(e[0]) ? e[0] : void 0, n = e.length > 1 ? e[1] : void 0;
|
|
42
|
-
return e.length > 1 ? [t, n] : [t];
|
|
43
|
-
}
|
|
44
|
-
function _(e) {
|
|
45
|
-
return typeof e.expression != "string" || e.expression.length === 0 ? null : {
|
|
46
|
-
expression: e.expression,
|
|
47
|
-
parameters: g(e.parameters)
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function v(e) {
|
|
51
|
-
if (!e || !e.filters) return {
|
|
52
|
-
condition: "and",
|
|
53
|
-
filters: [],
|
|
54
|
-
subGroups: []
|
|
55
|
-
};
|
|
56
|
-
let t = [], n = [];
|
|
57
|
-
for (let r of e.filters) if (m(r)) n.push(v(r));
|
|
58
|
-
else {
|
|
59
|
-
let e = _(r);
|
|
60
|
-
e && t.push(e);
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
condition: e.condition?.toLowerCase() === "or" ? "or" : "and",
|
|
64
|
-
filters: t,
|
|
65
|
-
subGroups: n
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
function y(e) {
|
|
69
|
-
return e ? [v(e)] : [];
|
|
70
|
-
}
|
|
71
|
-
function b(e) {
|
|
72
|
-
return {
|
|
73
|
-
expression: e.expression,
|
|
74
|
-
parameters: Array.isArray(e.parameters) ? [...e.parameters] : []
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
function x(e) {
|
|
78
|
-
let t = e.subGroups ?? [];
|
|
79
|
-
return {
|
|
80
|
-
condition: e.condition === "or" ? "OR" : "AND",
|
|
81
|
-
filters: [...e.filters.map(b), ...t.map((e) => x(e))]
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
function S(e) {
|
|
85
|
-
return !e || e.length === 0 ? [] : e.map((e) => x(e));
|
|
86
|
-
}
|
|
87
|
-
//#endregion
|
|
88
|
-
//#region src/components/filters/filters.module.scss?inline
|
|
89
|
-
var C = ":host{font-family:var(--luzmo-filters-font-family,var(--luzmo-font-family));color:var(--luzmo-filters-font-color,var(--luzmo-font-color));max-width:100%;display:block}.filter-group-container{max-width:100%;padding:calc(var(--luzmo-indicator-gap) + 2 * var(--luzmo-indicator-width));overflow:hidden}.filter-group{flex-direction:row;min-width:0;max-width:100%;display:flex}.filter-group.nested{margin-top:var(--luzmo-filters-nested-group-margin-top,var(--filters-nested-group-margin-top));margin-bottom:var(--luzmo-filters-nested-group-margin-bottom,var(--filters-nested-group-margin-bottom))}.group-content{flex-direction:column;flex:1;min-width:0;display:flex}.filters-list{gap:var(--luzmo-filters-filters-list-gap,var(--filters-filters-list-gap));flex-direction:column;min-width:0;max-width:100%;display:flex}.filter-item-wrapper{align-items:flex-start;min-width:0;max-width:100%;display:flex;position:relative}.filter-item-content{align-items:center;gap:var(--luzmo-filters-filter-line-gap,var(--filters-filter-line-gap));flex:1;min-width:0;display:flex}.filter-item-content luzmo-filter-item{flex:1;min-width:0}.filter-item-content .delete-filter-button{flex-shrink:0;align-self:center}.condition-wrapper{flex:0 0 var(--luzmo-filters-condition-warpper-width,var(--filters-condition-warpper-width));justify-content:center;align-items:center;display:flex;position:relative}.condition-wrapper:before{content:\"\";left:50%;top:var(--luzmo-filters-vertical-line-top,var(--filters-vertical-line-top));bottom:var(--luzmo-filters-vertical-line-bottom,var(--filters-vertical-line-bottom));width:var(--luzmo-filters-vertical-line-width,var(--filters-vertical-line-width));background:var(--luzmo-filters-vertical-line-color,var(--luzmo-border-color));position:absolute}.condition-badge{min-width:auto;padding-inline:var(--luzmo-filters-condition-padding-horizontal,var(--filters-condition-padding-horizontal));text-transform:uppercase;background:var(--luzmo-filters-condition-badge-background,var(--luzmo-primary));color:var(--luzmo-filters-condition-badge-color,var(--luzmo-primary-inverse-color));border-radius:var(--luzmo-filters-condition-badge-border-radius,var(--luzmo-border-radius));box-shadow:0 0 0 var(--luzmo-filters-condition-badge-halo,var(--filters-condition-badge-halo)) var(--luzmo-filters-condition-badge-background,var(--luzmo-background-color));font-weight:700}.condition-badge:hover{background:var(--luzmo-filters-condition-badge-background-hover,var(--luzmo-primary-hover))}.group-actions{margin-top:var(--luzmo-filters-group-actions-margin-top,var(--filters-group-actions-margin-top));gap:var(--luzmo-filters-group-actions-gap,var(--filters-group-actions-gap));flex-wrap:wrap;display:flex}.delete-group-button{margin-left:auto}.add-root-group-container{margin-top:var(--luzmo-filters-add-root-group-container-margin-top,var(--filters-add-root-group-container-margin-top));padding-left:0}.add-subgroup-button,.add-filter-button{--luzmo-action-button-text-to-visual:var(--luzmo-filters-group-actions-text-to-visual,var(--filters-group-actions-text-to-visual));--luzmo-action-button-content-color-default:var(--luzmo-filters-group-actions-color,var(--luzmo-primary-hover));--luzmo-action-button-content-color-hover:var(--luzmo-filters-group-actions-color-hover,var(--luzmo-primary-hover));--luzmo-action-button-content-color-down:var(--luzmo-filters-group-actions-color-down,var(--luzmo-primary-down));--luzmo-action-button-content-color-focus:var(--luzmo-filters-group-actions-color-focus,var(--luzmo-primary-focus))}.add-group-button{--luzmo-button-padding-label-to-icon:var(--luzmo-filters-add-group-button-text-to-visual,var(--filters-add-group-button-text-to-visual))}.dataset-ids-empty-message{color:var(--luzmo-filters-error-message-color,var(--luzmo-disabled-color));font-size:var(--luzmo-filters-error-message-font-size,var(--filters-font-size))}:host{--filters-condition-warpper-width:56px;--filters-condition-padding-horizontal:var(--luzmo-spacing-2);--filters-condition-badge-halo:var(--luzmo-spacing-3);--filters-filters-list-gap:var(--luzmo-spacing-3);--filters-nested-group-margin-top:var(--luzmo-spacing-3);--filters-nested-group-margin-bottom:var(--luzmo-spacing-3);--filters-vertical-line-top:var(--luzmo-spacing-2);--filters-vertical-line-bottom:var(--luzmo-spacing-2);--filters-vertical-line-width:1px;--filters-group-actions-text-to-visual:var(--luzmo-spacing-2);--filters-add-group-button-text-to-visual:var(--luzmo-spacing-3);--filters-group-actions-gap:var(--luzmo-spacing-3);--filters-add-root-group-container-margin-top:var(--luzmo-spacing-4);--filters-filter-line-gap:var(--luzmo-spacing-3);--filters-group-actions-margin-top:var(--luzmo-spacing-3);--filters-error-message-font-size:var(--luzmo-font-size)}:host([size=s]){--filters-condition-warpper-width:48px;--filters-condition-padding-horizontal:var(--luzmo-spacing-2);--filters-condition-badge-halo:var(--luzmo-spacing-2);--filters-filters-list-gap:calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--filters-nested-group-margin-top:calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--filters-nested-group-margin-bottom:calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--filters-vertical-line-top:var(--luzmo-spacing-2);--filters-vertical-line-bottom:var(--luzmo-spacing-2);--filters-group-actions-text-to-visual:var(--luzmo-spacing-1);--filters-add-group-button-text-to-visual:var(--luzmo-spacing-2);--filters-group-actions-gap:var(--luzmo-spacing-2);--filters-add-root-group-container-margin-top:var(--luzmo-spacing-3);--filters-filter-line-gap:var(--luzmo-spacing-2);--filters-group-actions-margin-top:var(--luzmo-spacing-2);--filters-error-message-font-size:var(--luzmo-font-size-s)}:host([size=l]){--filters-condition-warpper-width:64px;--filters-condition-padding-horizontal:var(--luzmo-spacing-3);--filters-condition-badge-halo:var(--luzmo-spacing-4);--filters-filters-list-gap:var(--luzmo-spacing-4);--filters-nested-group-margin-top:var(--luzmo-spacing-4);--filters-nested-group-margin-bottom:var(--luzmo-spacing-4);--filters-vertical-line-top:var(--luzmo-spacing-3);--filters-vertical-line-bottom:var(--luzmo-spacing-3);--filters-group-actions-text-to-visual:var(--luzmo-spacing-2);--filters-add-group-button-text-to-visual:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--filters-group-actions-gap:var(--luzmo-spacing-3);--filters-add-root-group-container-margin-top:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--filters-filter-line-gap:var(--luzmo-spacing-3);--filters-group-actions-margin-top:var(--luzmo-spacing-3);--filters-error-message-font-size:var(--luzmo-font-size-l)}:host([size=xl]){--filters-condition-warpper-width:72px;--filters-condition-padding-horizontal:var(--luzmo-spacing-3);--filters-condition-badge-halo:var(--luzmo-spacing-4);--filters-filters-list-gap:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--filters-nested-group-margin-top:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--filters-nested-group-margin-bottom:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--filters-vertical-line-top:var(--luzmo-spacing-3);--filters-vertical-line-bottom:var(--luzmo-spacing-3);--filters-group-actions-text-to-visual:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--filters-add-group-button-text-to-visual:var(--luzmo-spacing-4);--filters-group-actions-gap:var(--luzmo-spacing-4);--filters-add-root-group-container-margin-top:var(--luzmo-spacing-5);--filters-filter-line-gap:var(--luzmo-spacing-4);--filters-group-actions-margin-top:var(--luzmo-spacing-4);--filters-error-message-font-size:var(--luzmo-font-size-xl)}", w = {
|
|
90
|
-
AND: () => l("AND", { desc: "Logical AND condition for combining filters" }),
|
|
91
|
-
OR: () => l("OR", { desc: "Logical OR condition for combining filters" })
|
|
92
|
-
}, T = class extends t(p(f, { validSizes: Object.values(d) })) {
|
|
93
|
-
constructor(...e) {
|
|
94
|
-
super(...e), this.apiUrl = "https://api.luzmo.com", this.contentLanguage = "en", this.filters = [], this.debounce = 300, this._internalFilterGroup = null, this._debounceTimeout = null;
|
|
95
|
-
}
|
|
96
|
-
static get styles() {
|
|
97
|
-
return [a(C)];
|
|
98
|
-
}
|
|
99
|
-
get _oneSizeSmaller() {
|
|
100
|
-
return {
|
|
101
|
-
xxs: "xxs",
|
|
102
|
-
xs: "xs",
|
|
103
|
-
s: "xs",
|
|
104
|
-
m: "s",
|
|
105
|
-
l: "m",
|
|
106
|
-
xl: "l",
|
|
107
|
-
xxl: "xl"
|
|
108
|
-
}[this.size] || "s";
|
|
109
|
-
}
|
|
110
|
-
get _isDatasetIdsEmpty() {
|
|
111
|
-
return !this.datasetIds || this.datasetIds.length === 0;
|
|
112
|
-
}
|
|
113
|
-
disconnectedCallback() {
|
|
114
|
-
super.disconnectedCallback(), this._debounceTimeout &&= (clearTimeout(this._debounceTimeout), null);
|
|
115
|
-
}
|
|
116
|
-
willUpdate(e) {
|
|
117
|
-
if (super.willUpdate(e), e.has("filters")) {
|
|
118
|
-
let e = S(this.filters);
|
|
119
|
-
e.length === 0 ? this._internalFilterGroup = null : e.length === 1 ? this._internalFilterGroup = structuredClone(e[0]) : this._internalFilterGroup = {
|
|
120
|
-
condition: "AND",
|
|
121
|
-
filters: structuredClone(e)
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
_generateEmptyGroup() {
|
|
126
|
-
return {
|
|
127
|
-
condition: "AND",
|
|
128
|
-
filters: []
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
_generateEmptyFilter() {
|
|
132
|
-
return {
|
|
133
|
-
expression: void 0,
|
|
134
|
-
parameters: []
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
_getFiltersForExport() {
|
|
138
|
-
if (!this._internalFilterGroup) return [];
|
|
139
|
-
if (this._internalFilterGroup.filters.length > 0 && this._internalFilterGroup.filters.every((e) => this._isGroup(e))) return structuredClone(this._internalFilterGroup.filters).map((e) => y(e)[0]).filter((e) => !!e);
|
|
140
|
-
let [e] = y(structuredClone(this._internalFilterGroup));
|
|
141
|
-
return e ? [e] : [];
|
|
142
|
-
}
|
|
143
|
-
_sendChangeEvent() {
|
|
144
|
-
this._debounceTimeout && clearTimeout(this._debounceTimeout);
|
|
145
|
-
let e = () => {
|
|
146
|
-
this.dispatchEvent(new CustomEvent("luzmo-filters-changed", {
|
|
147
|
-
bubbles: !0,
|
|
148
|
-
composed: !0,
|
|
149
|
-
cancelable: !0,
|
|
150
|
-
detail: { filters: this._getFiltersForExport() }
|
|
151
|
-
}));
|
|
152
|
-
};
|
|
153
|
-
this.debounce > 0 ? this._debounceTimeout = setTimeout(e, this.debounce) : e();
|
|
154
|
-
}
|
|
155
|
-
_isGroup(e) {
|
|
156
|
-
return "condition" in e && "filters" in e;
|
|
157
|
-
}
|
|
158
|
-
_toggleCondition(e) {
|
|
159
|
-
e.condition = e.condition === "AND" ? "OR" : "AND", this.requestUpdate(), this._sendChangeEvent();
|
|
160
|
-
}
|
|
161
|
-
_addFilter(e) {
|
|
162
|
-
if (this._isDatasetIdsEmpty) return;
|
|
163
|
-
let t = e;
|
|
164
|
-
t ||= (this._internalFilterGroup ||= this._generateEmptyGroup(), this._internalFilterGroup), t.filters.push(this._generateEmptyFilter()), this.requestUpdate(), this._sendChangeEvent();
|
|
165
|
-
}
|
|
166
|
-
_addSubGroup(e) {
|
|
167
|
-
if (this._isDatasetIdsEmpty) return;
|
|
168
|
-
let t = this._generateEmptyGroup();
|
|
169
|
-
t.condition = e.condition === "AND" ? "OR" : "AND", t.filters.push(this._generateEmptyFilter()), e.filters.push(t), this.requestUpdate(), this._sendChangeEvent();
|
|
170
|
-
}
|
|
171
|
-
_removeFilter(e, t) {
|
|
172
|
-
if (this._internalFilterGroup) {
|
|
173
|
-
if (e.filters.splice(t, 1), e !== this._internalFilterGroup && e.filters.length === 0) {
|
|
174
|
-
let t = this._findParentGroup(this._internalFilterGroup, e);
|
|
175
|
-
if (t) {
|
|
176
|
-
let n = t.filters.indexOf(e);
|
|
177
|
-
n !== -1 && t.filters.splice(n, 1);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
this._collapseGroupsAfterDelete(), this.requestUpdate(), this._sendChangeEvent();
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
_updateFilter(e, t, n) {
|
|
184
|
-
n.stopPropagation(), this._isGroup(e.filters[t]) || (e.filters[t] = n.detail.filter, this._sendChangeEvent());
|
|
185
|
-
}
|
|
186
|
-
_addGroup() {
|
|
187
|
-
if (this._isDatasetIdsEmpty) return;
|
|
188
|
-
this._internalFilterGroup ||= this._generateEmptyGroup();
|
|
189
|
-
let e = this._generateEmptyGroup();
|
|
190
|
-
e.condition = this._internalFilterGroup.condition === "AND" ? "OR" : "AND", e.filters.push(this._internalFilterGroup);
|
|
191
|
-
let t = this._generateEmptyGroup();
|
|
192
|
-
t.condition = e.condition === "AND" ? "OR" : "AND", t.filters.push(this._generateEmptyFilter()), e.filters.push(t), this._internalFilterGroup = e, this.requestUpdate(), this._sendChangeEvent();
|
|
193
|
-
}
|
|
194
|
-
_renderFilterItem(e, t, n) {
|
|
195
|
-
return i`
|
|
196
|
-
<div class="filter-item-wrapper">
|
|
197
|
-
<div class="filter-item-content">
|
|
198
|
-
<luzmo-filter-item
|
|
199
|
-
.apiUrl=${this.apiUrl}
|
|
200
|
-
.authKey=${this.authKey}
|
|
201
|
-
.authToken=${this.authToken}
|
|
202
|
-
.cacheTime=${this.cacheTime}
|
|
203
|
-
.language=${this.language}
|
|
204
|
-
.contentLanguage=${this.contentLanguage}
|
|
205
|
-
.timeZone=${this.timeZone}
|
|
206
|
-
.datasetIds=${this.datasetIds}
|
|
207
|
-
.filter=${e}
|
|
208
|
-
.size=${this.size}
|
|
209
|
-
@luzmo-filter-changed=${this._updateFilter.bind(this, t, n)}
|
|
210
|
-
></luzmo-filter-item>
|
|
211
|
-
<luzmo-action-button
|
|
212
|
-
class="delete-filter-button"
|
|
213
|
-
.size=${this.size}
|
|
214
|
-
quiet
|
|
215
|
-
.label=${l("Remove filter", { desc: "Aria label for remove filter button" })}
|
|
216
|
-
@click=${this._removeFilter.bind(this, t, n)}
|
|
217
|
-
>
|
|
218
|
-
<luzmo-icon slot="icon" .icon=${r} .size=${this.size}></luzmo-icon>
|
|
219
|
-
</luzmo-action-button>
|
|
220
|
-
</div>
|
|
221
|
-
</div>
|
|
222
|
-
`;
|
|
223
|
-
}
|
|
224
|
-
_renderGroup(e, t = !1) {
|
|
225
|
-
let r = e.filters.length > 0, a = e.filters.length > 1, o = w[e.condition]?.() ?? e.condition;
|
|
226
|
-
return i`
|
|
227
|
-
<div class="filter-group ${t ? "nested" : ""}" role="group">
|
|
228
|
-
${t ? i`
|
|
229
|
-
<div class="condition-wrapper">
|
|
230
|
-
${a ? i`
|
|
231
|
-
<luzmo-action-button
|
|
232
|
-
class="condition-badge"
|
|
233
|
-
.size=${this._oneSizeSmaller}
|
|
234
|
-
quiet
|
|
235
|
-
aria-pressed=${e.condition === "AND" ? "true" : "false"}
|
|
236
|
-
.label=${l("Toggle filter condition, currently ", { desc: "Aria label prefix for filter condition toggle" }) + o}
|
|
237
|
-
@click=${this._toggleCondition.bind(this, e)}
|
|
238
|
-
>
|
|
239
|
-
${o}
|
|
240
|
-
</luzmo-action-button>
|
|
241
|
-
` : ""}
|
|
242
|
-
</div>
|
|
243
|
-
` : a ? i`
|
|
244
|
-
<div class="condition-wrapper">
|
|
245
|
-
<luzmo-action-button
|
|
246
|
-
class="condition-badge"
|
|
247
|
-
.size=${this._oneSizeSmaller}
|
|
248
|
-
quiet
|
|
249
|
-
aria-pressed=${e.condition === "AND" ? "true" : "false"}
|
|
250
|
-
.label=${l("Toggle filter condition, currently ", { desc: "Aria label prefix for filter condition toggle" }) + o}
|
|
251
|
-
@click=${this._toggleCondition.bind(this, e)}
|
|
252
|
-
>
|
|
253
|
-
${o}
|
|
254
|
-
</luzmo-action-button>
|
|
255
|
-
</div>
|
|
256
|
-
` : ""}
|
|
257
|
-
<div class="group-content">
|
|
258
|
-
${r ? i`
|
|
259
|
-
<div class="filters-list">
|
|
260
|
-
${u(e.filters, (e, t) => t, (t, n) => i`
|
|
261
|
-
${this._isGroup(t) ? this._renderGroup(t, !0) : this._renderFilterItem(t, e, n)}
|
|
262
|
-
`)}
|
|
263
|
-
</div>
|
|
264
|
-
` : ""}
|
|
265
|
-
|
|
266
|
-
<div class="group-actions">
|
|
267
|
-
<luzmo-action-button
|
|
268
|
-
class="add-filter-button"
|
|
269
|
-
.size=${this.size}
|
|
270
|
-
quiet
|
|
271
|
-
?disabled=${this._isDatasetIdsEmpty}
|
|
272
|
-
@click=${this._addFilter.bind(this, e)}
|
|
273
|
-
>
|
|
274
|
-
<luzmo-icon slot="icon" .icon=${n} .size=${this._oneSizeSmaller}></luzmo-icon>
|
|
275
|
-
${l("Filter", { desc: "Add filter button label" })}
|
|
276
|
-
</luzmo-action-button>
|
|
277
|
-
|
|
278
|
-
<luzmo-action-button
|
|
279
|
-
class="add-subgroup-button"
|
|
280
|
-
.size=${this.size}
|
|
281
|
-
quiet
|
|
282
|
-
?disabled=${this._isDatasetIdsEmpty}
|
|
283
|
-
@click=${this._addSubGroup.bind(this, e)}
|
|
284
|
-
>
|
|
285
|
-
<luzmo-icon slot="icon" .icon=${n} .size=${this._oneSizeSmaller}></luzmo-icon>
|
|
286
|
-
${l("Subgroup", { desc: "Add subgroup button label" })}
|
|
287
|
-
</luzmo-action-button>
|
|
288
|
-
</div>
|
|
289
|
-
</div>
|
|
290
|
-
</div>
|
|
291
|
-
`;
|
|
292
|
-
}
|
|
293
|
-
_findParentGroup(e, t) {
|
|
294
|
-
for (let n of e.filters) {
|
|
295
|
-
if (n === t) return e;
|
|
296
|
-
if (this._isGroup(n)) {
|
|
297
|
-
let e = this._findParentGroup(n, t);
|
|
298
|
-
if (e) return e;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
return null;
|
|
302
|
-
}
|
|
303
|
-
_collapseIfNeeded(e) {
|
|
304
|
-
if (e.filters.length === 1 && this._isGroup(e.filters[0])) {
|
|
305
|
-
let t = e.filters[0];
|
|
306
|
-
e.condition = t.condition, e.filters = t.filters;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
_collapseGroupsAfterDelete() {
|
|
310
|
-
if (!this._internalFilterGroup) return;
|
|
311
|
-
let e = (t) => {
|
|
312
|
-
for (let n of t.filters) this._isGroup(n) && e(n);
|
|
313
|
-
this._collapseIfNeeded(t);
|
|
314
|
-
};
|
|
315
|
-
e(this._internalFilterGroup);
|
|
316
|
-
}
|
|
317
|
-
render() {
|
|
318
|
-
if (this._isDatasetIdsEmpty) return i`
|
|
319
|
-
<div class="filter-group-container">
|
|
320
|
-
<div class="dataset-ids-empty-message" role="status">
|
|
321
|
-
${l("Cannot retrieve dataset data fields", { desc: "Error message when datasetIds is empty" })}
|
|
322
|
-
</div>
|
|
323
|
-
</div>
|
|
324
|
-
`;
|
|
325
|
-
if (!this._internalFilterGroup || this._internalFilterGroup.filters.length === 0) return i`
|
|
326
|
-
<div class="filter-group-container">
|
|
327
|
-
<luzmo-button
|
|
328
|
-
class="add-filter-button"
|
|
329
|
-
.size=${this.size}
|
|
330
|
-
treatment="outline"
|
|
331
|
-
?disabled=${this._isDatasetIdsEmpty}
|
|
332
|
-
@click=${() => this._addFilter()}
|
|
333
|
-
>
|
|
334
|
-
<luzmo-icon slot="icon" .icon=${n} .size=${this._oneSizeSmaller}></luzmo-icon>
|
|
335
|
-
${l("Add filter", { desc: "Add filter button label" })}
|
|
336
|
-
</luzmo-button>
|
|
337
|
-
</div>
|
|
338
|
-
`;
|
|
339
|
-
let e = this._internalFilterGroup.filters.length > 1;
|
|
340
|
-
return i`
|
|
341
|
-
<div class="filter-group-container">
|
|
342
|
-
${this._renderGroup(this._internalFilterGroup)}
|
|
343
|
-
|
|
344
|
-
${e ? i`
|
|
345
|
-
<div class="add-root-group-container">
|
|
346
|
-
<luzmo-button
|
|
347
|
-
class="add-group-button"
|
|
348
|
-
.size=${this.size}
|
|
349
|
-
treatment="outline"
|
|
350
|
-
?disabled=${this._isDatasetIdsEmpty}
|
|
351
|
-
@click=${this._addGroup}
|
|
352
|
-
>
|
|
353
|
-
<luzmo-icon slot="icon" .icon=${n} .size=${this._oneSizeSmaller}></luzmo-icon>
|
|
354
|
-
${l("Group", { desc: "Add group button label" })}
|
|
355
|
-
</luzmo-button>
|
|
356
|
-
</div>
|
|
357
|
-
` : ""}
|
|
358
|
-
</div>
|
|
359
|
-
`;
|
|
360
|
-
}
|
|
361
|
-
};
|
|
362
|
-
//#endregion
|
|
363
|
-
//#region src/components/filters/index.ts
|
|
364
|
-
e([o({
|
|
365
|
-
type: String,
|
|
366
|
-
attribute: "api-url",
|
|
367
|
-
reflect: !0
|
|
368
|
-
})], T.prototype, "apiUrl", void 0), e([o({
|
|
369
|
-
type: String,
|
|
370
|
-
attribute: "auth-key",
|
|
371
|
-
reflect: !0
|
|
372
|
-
})], T.prototype, "authKey", void 0), e([o({
|
|
373
|
-
type: String,
|
|
374
|
-
attribute: "auth-token",
|
|
375
|
-
reflect: !0
|
|
376
|
-
})], T.prototype, "authToken", void 0), e([o({
|
|
377
|
-
type: Number,
|
|
378
|
-
attribute: "cache-time",
|
|
379
|
-
reflect: !0
|
|
380
|
-
})], T.prototype, "cacheTime", void 0), e([o({
|
|
381
|
-
type: String,
|
|
382
|
-
attribute: "content-language",
|
|
383
|
-
reflect: !0
|
|
384
|
-
})], T.prototype, "contentLanguage", void 0), e([o({
|
|
385
|
-
type: String,
|
|
386
|
-
attribute: "time-zone",
|
|
387
|
-
reflect: !0
|
|
388
|
-
})], T.prototype, "timeZone", void 0), e([o({
|
|
389
|
-
type: Array,
|
|
390
|
-
attribute: "dataset-ids",
|
|
391
|
-
reflect: !0
|
|
392
|
-
})], T.prototype, "datasetIds", void 0), e([o({
|
|
393
|
-
type: Array,
|
|
394
|
-
reflect: !1
|
|
395
|
-
})], T.prototype, "filters", void 0), e([o({
|
|
396
|
-
type: Number,
|
|
397
|
-
reflect: !0
|
|
398
|
-
})], T.prototype, "debounce", void 0), e([s()], T.prototype, "_internalFilterGroup", void 0), T = e([c()], T), customElements.get("luzmo-filters") || customElements.define("luzmo-filters", T);
|
|
399
|
-
//#endregion
|
|
400
|
-
export { T as t };
|
|
@@ -1,150 +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-DrK3QZNa.cjs");require("./filter-item-DGnRmeaB.cjs");let n=require("@luzmo/icons"),r=require("lit"),i=require("lit/decorators.js"),a=require("@lit/localize");require("@luzmo/lucero/icon");let o=require("lit/directives/repeat.js");require("@luzmo/lucero/action-button"),require("@luzmo/lucero/button");let s=require("@luzmo/lucero/utils");function c(e){return typeof e==`object`&&!!e&&`condition`in e&&`filters`in e}function l(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function u(e){if(!Array.isArray(e)||e.length===0)return[];let t=l(e[0])?e[0]:void 0,n=e.length>1?e[1]:void 0;return e.length>1?[t,n]:[t]}function d(e){return typeof e.expression!=`string`||e.expression.length===0?null:{expression:e.expression,parameters:u(e.parameters)}}function f(e){if(!e||!e.filters)return{condition:`and`,filters:[],subGroups:[]};let t=[],n=[];for(let r of e.filters)if(c(r))n.push(f(r));else{let e=d(r);e&&t.push(e)}return{condition:e.condition?.toLowerCase()===`or`?`or`:`and`,filters:t,subGroups:n}}function p(e){return e?[f(e)]:[]}function m(e){return{expression:e.expression,parameters:Array.isArray(e.parameters)?[...e.parameters]:[]}}function h(e){let t=e.subGroups??[];return{condition:e.condition===`or`?`OR`:`AND`,filters:[...e.filters.map(m),...t.map(e=>h(e))]}}function g(e){return!e||e.length===0?[]:e.map(e=>h(e))}var _=`:host{font-family:var(--luzmo-filters-font-family,var(--luzmo-font-family));color:var(--luzmo-filters-font-color,var(--luzmo-font-color));max-width:100%;display:block}.filter-group-container{max-width:100%;padding:calc(var(--luzmo-indicator-gap) + 2 * var(--luzmo-indicator-width));overflow:hidden}.filter-group{flex-direction:row;min-width:0;max-width:100%;display:flex}.filter-group.nested{margin-top:var(--luzmo-filters-nested-group-margin-top,var(--filters-nested-group-margin-top));margin-bottom:var(--luzmo-filters-nested-group-margin-bottom,var(--filters-nested-group-margin-bottom))}.group-content{flex-direction:column;flex:1;min-width:0;display:flex}.filters-list{gap:var(--luzmo-filters-filters-list-gap,var(--filters-filters-list-gap));flex-direction:column;min-width:0;max-width:100%;display:flex}.filter-item-wrapper{align-items:flex-start;min-width:0;max-width:100%;display:flex;position:relative}.filter-item-content{align-items:center;gap:var(--luzmo-filters-filter-line-gap,var(--filters-filter-line-gap));flex:1;min-width:0;display:flex}.filter-item-content luzmo-filter-item{flex:1;min-width:0}.filter-item-content .delete-filter-button{flex-shrink:0;align-self:center}.condition-wrapper{flex:0 0 var(--luzmo-filters-condition-warpper-width,var(--filters-condition-warpper-width));justify-content:center;align-items:center;display:flex;position:relative}.condition-wrapper:before{content:"";left:50%;top:var(--luzmo-filters-vertical-line-top,var(--filters-vertical-line-top));bottom:var(--luzmo-filters-vertical-line-bottom,var(--filters-vertical-line-bottom));width:var(--luzmo-filters-vertical-line-width,var(--filters-vertical-line-width));background:var(--luzmo-filters-vertical-line-color,var(--luzmo-border-color));position:absolute}.condition-badge{min-width:auto;padding-inline:var(--luzmo-filters-condition-padding-horizontal,var(--filters-condition-padding-horizontal));text-transform:uppercase;background:var(--luzmo-filters-condition-badge-background,var(--luzmo-primary));color:var(--luzmo-filters-condition-badge-color,var(--luzmo-primary-inverse-color));border-radius:var(--luzmo-filters-condition-badge-border-radius,var(--luzmo-border-radius));box-shadow:0 0 0 var(--luzmo-filters-condition-badge-halo,var(--filters-condition-badge-halo)) var(--luzmo-filters-condition-badge-background,var(--luzmo-background-color));font-weight:700}.condition-badge:hover{background:var(--luzmo-filters-condition-badge-background-hover,var(--luzmo-primary-hover))}.group-actions{margin-top:var(--luzmo-filters-group-actions-margin-top,var(--filters-group-actions-margin-top));gap:var(--luzmo-filters-group-actions-gap,var(--filters-group-actions-gap));flex-wrap:wrap;display:flex}.delete-group-button{margin-left:auto}.add-root-group-container{margin-top:var(--luzmo-filters-add-root-group-container-margin-top,var(--filters-add-root-group-container-margin-top));padding-left:0}.add-subgroup-button,.add-filter-button{--luzmo-action-button-text-to-visual:var(--luzmo-filters-group-actions-text-to-visual,var(--filters-group-actions-text-to-visual));--luzmo-action-button-content-color-default:var(--luzmo-filters-group-actions-color,var(--luzmo-primary-hover));--luzmo-action-button-content-color-hover:var(--luzmo-filters-group-actions-color-hover,var(--luzmo-primary-hover));--luzmo-action-button-content-color-down:var(--luzmo-filters-group-actions-color-down,var(--luzmo-primary-down));--luzmo-action-button-content-color-focus:var(--luzmo-filters-group-actions-color-focus,var(--luzmo-primary-focus))}.add-group-button{--luzmo-button-padding-label-to-icon:var(--luzmo-filters-add-group-button-text-to-visual,var(--filters-add-group-button-text-to-visual))}.dataset-ids-empty-message{color:var(--luzmo-filters-error-message-color,var(--luzmo-disabled-color));font-size:var(--luzmo-filters-error-message-font-size,var(--filters-font-size))}:host{--filters-condition-warpper-width:56px;--filters-condition-padding-horizontal:var(--luzmo-spacing-2);--filters-condition-badge-halo:var(--luzmo-spacing-3);--filters-filters-list-gap:var(--luzmo-spacing-3);--filters-nested-group-margin-top:var(--luzmo-spacing-3);--filters-nested-group-margin-bottom:var(--luzmo-spacing-3);--filters-vertical-line-top:var(--luzmo-spacing-2);--filters-vertical-line-bottom:var(--luzmo-spacing-2);--filters-vertical-line-width:1px;--filters-group-actions-text-to-visual:var(--luzmo-spacing-2);--filters-add-group-button-text-to-visual:var(--luzmo-spacing-3);--filters-group-actions-gap:var(--luzmo-spacing-3);--filters-add-root-group-container-margin-top:var(--luzmo-spacing-4);--filters-filter-line-gap:var(--luzmo-spacing-3);--filters-group-actions-margin-top:var(--luzmo-spacing-3);--filters-error-message-font-size:var(--luzmo-font-size)}:host([size=s]){--filters-condition-warpper-width:48px;--filters-condition-padding-horizontal:var(--luzmo-spacing-2);--filters-condition-badge-halo:var(--luzmo-spacing-2);--filters-filters-list-gap:calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--filters-nested-group-margin-top:calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--filters-nested-group-margin-bottom:calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--filters-vertical-line-top:var(--luzmo-spacing-2);--filters-vertical-line-bottom:var(--luzmo-spacing-2);--filters-group-actions-text-to-visual:var(--luzmo-spacing-1);--filters-add-group-button-text-to-visual:var(--luzmo-spacing-2);--filters-group-actions-gap:var(--luzmo-spacing-2);--filters-add-root-group-container-margin-top:var(--luzmo-spacing-3);--filters-filter-line-gap:var(--luzmo-spacing-2);--filters-group-actions-margin-top:var(--luzmo-spacing-2);--filters-error-message-font-size:var(--luzmo-font-size-s)}:host([size=l]){--filters-condition-warpper-width:64px;--filters-condition-padding-horizontal:var(--luzmo-spacing-3);--filters-condition-badge-halo:var(--luzmo-spacing-4);--filters-filters-list-gap:var(--luzmo-spacing-4);--filters-nested-group-margin-top:var(--luzmo-spacing-4);--filters-nested-group-margin-bottom:var(--luzmo-spacing-4);--filters-vertical-line-top:var(--luzmo-spacing-3);--filters-vertical-line-bottom:var(--luzmo-spacing-3);--filters-group-actions-text-to-visual:var(--luzmo-spacing-2);--filters-add-group-button-text-to-visual:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--filters-group-actions-gap:var(--luzmo-spacing-3);--filters-add-root-group-container-margin-top:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--filters-filter-line-gap:var(--luzmo-spacing-3);--filters-group-actions-margin-top:var(--luzmo-spacing-3);--filters-error-message-font-size:var(--luzmo-font-size-l)}:host([size=xl]){--filters-condition-warpper-width:72px;--filters-condition-padding-horizontal:var(--luzmo-spacing-3);--filters-condition-badge-halo:var(--luzmo-spacing-4);--filters-filters-list-gap:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--filters-nested-group-margin-top:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--filters-nested-group-margin-bottom:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--filters-vertical-line-top:var(--luzmo-spacing-3);--filters-vertical-line-bottom:var(--luzmo-spacing-3);--filters-group-actions-text-to-visual:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--filters-add-group-button-text-to-visual:var(--luzmo-spacing-4);--filters-group-actions-gap:var(--luzmo-spacing-4);--filters-add-root-group-container-margin-top:var(--luzmo-spacing-5);--filters-filter-line-gap:var(--luzmo-spacing-4);--filters-group-actions-margin-top:var(--luzmo-spacing-4);--filters-error-message-font-size:var(--luzmo-font-size-xl)}`,v={AND:()=>(0,a.msg)(`AND`,{desc:`Logical AND condition for combining filters`}),OR:()=>(0,a.msg)(`OR`,{desc:`Logical OR condition for combining filters`})},y=class extends t.t((0,s.SizedMixin)(s.LuzmoElement,{validSizes:Object.values(s.ElementSizes)})){constructor(...e){super(...e),this.apiUrl=`https://api.luzmo.com`,this.contentLanguage=`en`,this.filters=[],this.debounce=300,this._internalFilterGroup=null,this._debounceTimeout=null}static get styles(){return[(0,r.unsafeCSS)(_)]}get _oneSizeSmaller(){return{xxs:`xxs`,xs:`xs`,s:`xs`,m:`s`,l:`m`,xl:`l`,xxl:`xl`}[this.size]||`s`}get _isDatasetIdsEmpty(){return!this.datasetIds||this.datasetIds.length===0}disconnectedCallback(){super.disconnectedCallback(),this._debounceTimeout&&=(clearTimeout(this._debounceTimeout),null)}willUpdate(e){if(super.willUpdate(e),e.has(`filters`)){let e=g(this.filters);e.length===0?this._internalFilterGroup=null:e.length===1?this._internalFilterGroup=structuredClone(e[0]):this._internalFilterGroup={condition:`AND`,filters:structuredClone(e)}}}_generateEmptyGroup(){return{condition:`AND`,filters:[]}}_generateEmptyFilter(){return{expression:void 0,parameters:[]}}_getFiltersForExport(){if(!this._internalFilterGroup)return[];if(this._internalFilterGroup.filters.length>0&&this._internalFilterGroup.filters.every(e=>this._isGroup(e)))return structuredClone(this._internalFilterGroup.filters).map(e=>p(e)[0]).filter(e=>!!e);let[e]=p(structuredClone(this._internalFilterGroup));return e?[e]:[]}_sendChangeEvent(){this._debounceTimeout&&clearTimeout(this._debounceTimeout);let e=()=>{this.dispatchEvent(new CustomEvent(`luzmo-filters-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{filters:this._getFiltersForExport()}}))};this.debounce>0?this._debounceTimeout=setTimeout(e,this.debounce):e()}_isGroup(e){return`condition`in e&&`filters`in e}_toggleCondition(e){e.condition=e.condition===`AND`?`OR`:`AND`,this.requestUpdate(),this._sendChangeEvent()}_addFilter(e){if(this._isDatasetIdsEmpty)return;let t=e;t||=(this._internalFilterGroup||=this._generateEmptyGroup(),this._internalFilterGroup),t.filters.push(this._generateEmptyFilter()),this.requestUpdate(),this._sendChangeEvent()}_addSubGroup(e){if(this._isDatasetIdsEmpty)return;let t=this._generateEmptyGroup();t.condition=e.condition===`AND`?`OR`:`AND`,t.filters.push(this._generateEmptyFilter()),e.filters.push(t),this.requestUpdate(),this._sendChangeEvent()}_removeFilter(e,t){if(this._internalFilterGroup){if(e.filters.splice(t,1),e!==this._internalFilterGroup&&e.filters.length===0){let t=this._findParentGroup(this._internalFilterGroup,e);if(t){let n=t.filters.indexOf(e);n!==-1&&t.filters.splice(n,1)}}this._collapseGroupsAfterDelete(),this.requestUpdate(),this._sendChangeEvent()}}_updateFilter(e,t,n){n.stopPropagation(),this._isGroup(e.filters[t])||(e.filters[t]=n.detail.filter,this._sendChangeEvent())}_addGroup(){if(this._isDatasetIdsEmpty)return;this._internalFilterGroup||=this._generateEmptyGroup();let e=this._generateEmptyGroup();e.condition=this._internalFilterGroup.condition===`AND`?`OR`:`AND`,e.filters.push(this._internalFilterGroup);let t=this._generateEmptyGroup();t.condition=e.condition===`AND`?`OR`:`AND`,t.filters.push(this._generateEmptyFilter()),e.filters.push(t),this._internalFilterGroup=e,this.requestUpdate(),this._sendChangeEvent()}_renderFilterItem(e,t,i){return r.html`
|
|
21
|
-
<div class="filter-item-wrapper">
|
|
22
|
-
<div class="filter-item-content">
|
|
23
|
-
<luzmo-filter-item
|
|
24
|
-
.apiUrl=${this.apiUrl}
|
|
25
|
-
.authKey=${this.authKey}
|
|
26
|
-
.authToken=${this.authToken}
|
|
27
|
-
.cacheTime=${this.cacheTime}
|
|
28
|
-
.language=${this.language}
|
|
29
|
-
.contentLanguage=${this.contentLanguage}
|
|
30
|
-
.timeZone=${this.timeZone}
|
|
31
|
-
.datasetIds=${this.datasetIds}
|
|
32
|
-
.filter=${e}
|
|
33
|
-
.size=${this.size}
|
|
34
|
-
@luzmo-filter-changed=${this._updateFilter.bind(this,t,i)}
|
|
35
|
-
></luzmo-filter-item>
|
|
36
|
-
<luzmo-action-button
|
|
37
|
-
class="delete-filter-button"
|
|
38
|
-
.size=${this.size}
|
|
39
|
-
quiet
|
|
40
|
-
.label=${(0,a.msg)(`Remove filter`,{desc:`Aria label for remove filter button`})}
|
|
41
|
-
@click=${this._removeFilter.bind(this,t,i)}
|
|
42
|
-
>
|
|
43
|
-
<luzmo-icon slot="icon" .icon=${n.luzmoTrashOutline} .size=${this.size}></luzmo-icon>
|
|
44
|
-
</luzmo-action-button>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
`}_renderGroup(e,t=!1){let i=e.filters.length>0,s=e.filters.length>1,c=v[e.condition]?.()??e.condition;return r.html`
|
|
48
|
-
<div class="filter-group ${t?`nested`:``}" role="group">
|
|
49
|
-
${t?r.html`
|
|
50
|
-
<div class="condition-wrapper">
|
|
51
|
-
${s?r.html`
|
|
52
|
-
<luzmo-action-button
|
|
53
|
-
class="condition-badge"
|
|
54
|
-
.size=${this._oneSizeSmaller}
|
|
55
|
-
quiet
|
|
56
|
-
aria-pressed=${e.condition===`AND`?`true`:`false`}
|
|
57
|
-
.label=${(0,a.msg)(`Toggle filter condition, currently `,{desc:`Aria label prefix for filter condition toggle`})+c}
|
|
58
|
-
@click=${this._toggleCondition.bind(this,e)}
|
|
59
|
-
>
|
|
60
|
-
${c}
|
|
61
|
-
</luzmo-action-button>
|
|
62
|
-
`:``}
|
|
63
|
-
</div>
|
|
64
|
-
`:s?r.html`
|
|
65
|
-
<div class="condition-wrapper">
|
|
66
|
-
<luzmo-action-button
|
|
67
|
-
class="condition-badge"
|
|
68
|
-
.size=${this._oneSizeSmaller}
|
|
69
|
-
quiet
|
|
70
|
-
aria-pressed=${e.condition===`AND`?`true`:`false`}
|
|
71
|
-
.label=${(0,a.msg)(`Toggle filter condition, currently `,{desc:`Aria label prefix for filter condition toggle`})+c}
|
|
72
|
-
@click=${this._toggleCondition.bind(this,e)}
|
|
73
|
-
>
|
|
74
|
-
${c}
|
|
75
|
-
</luzmo-action-button>
|
|
76
|
-
</div>
|
|
77
|
-
`:``}
|
|
78
|
-
<div class="group-content">
|
|
79
|
-
${i?r.html`
|
|
80
|
-
<div class="filters-list">
|
|
81
|
-
${(0,o.repeat)(e.filters,(e,t)=>t,(t,n)=>r.html`
|
|
82
|
-
${this._isGroup(t)?this._renderGroup(t,!0):this._renderFilterItem(t,e,n)}
|
|
83
|
-
`)}
|
|
84
|
-
</div>
|
|
85
|
-
`:``}
|
|
86
|
-
|
|
87
|
-
<div class="group-actions">
|
|
88
|
-
<luzmo-action-button
|
|
89
|
-
class="add-filter-button"
|
|
90
|
-
.size=${this.size}
|
|
91
|
-
quiet
|
|
92
|
-
?disabled=${this._isDatasetIdsEmpty}
|
|
93
|
-
@click=${this._addFilter.bind(this,e)}
|
|
94
|
-
>
|
|
95
|
-
<luzmo-icon slot="icon" .icon=${n.luzmoPlus} .size=${this._oneSizeSmaller}></luzmo-icon>
|
|
96
|
-
${(0,a.msg)(`Filter`,{desc:`Add filter button label`})}
|
|
97
|
-
</luzmo-action-button>
|
|
98
|
-
|
|
99
|
-
<luzmo-action-button
|
|
100
|
-
class="add-subgroup-button"
|
|
101
|
-
.size=${this.size}
|
|
102
|
-
quiet
|
|
103
|
-
?disabled=${this._isDatasetIdsEmpty}
|
|
104
|
-
@click=${this._addSubGroup.bind(this,e)}
|
|
105
|
-
>
|
|
106
|
-
<luzmo-icon slot="icon" .icon=${n.luzmoPlus} .size=${this._oneSizeSmaller}></luzmo-icon>
|
|
107
|
-
${(0,a.msg)(`Subgroup`,{desc:`Add subgroup button label`})}
|
|
108
|
-
</luzmo-action-button>
|
|
109
|
-
</div>
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
`}_findParentGroup(e,t){for(let n of e.filters){if(n===t)return e;if(this._isGroup(n)){let e=this._findParentGroup(n,t);if(e)return e}}return null}_collapseIfNeeded(e){if(e.filters.length===1&&this._isGroup(e.filters[0])){let t=e.filters[0];e.condition=t.condition,e.filters=t.filters}}_collapseGroupsAfterDelete(){if(!this._internalFilterGroup)return;let e=t=>{for(let n of t.filters)this._isGroup(n)&&e(n);this._collapseIfNeeded(t)};e(this._internalFilterGroup)}render(){if(this._isDatasetIdsEmpty)return r.html`
|
|
113
|
-
<div class="filter-group-container">
|
|
114
|
-
<div class="dataset-ids-empty-message" role="status">
|
|
115
|
-
${(0,a.msg)(`Cannot retrieve dataset data fields`,{desc:`Error message when datasetIds is empty`})}
|
|
116
|
-
</div>
|
|
117
|
-
</div>
|
|
118
|
-
`;if(!this._internalFilterGroup||this._internalFilterGroup.filters.length===0)return r.html`
|
|
119
|
-
<div class="filter-group-container">
|
|
120
|
-
<luzmo-button
|
|
121
|
-
class="add-filter-button"
|
|
122
|
-
.size=${this.size}
|
|
123
|
-
treatment="outline"
|
|
124
|
-
?disabled=${this._isDatasetIdsEmpty}
|
|
125
|
-
@click=${()=>this._addFilter()}
|
|
126
|
-
>
|
|
127
|
-
<luzmo-icon slot="icon" .icon=${n.luzmoPlus} .size=${this._oneSizeSmaller}></luzmo-icon>
|
|
128
|
-
${(0,a.msg)(`Add filter`,{desc:`Add filter button label`})}
|
|
129
|
-
</luzmo-button>
|
|
130
|
-
</div>
|
|
131
|
-
`;let e=this._internalFilterGroup.filters.length>1;return r.html`
|
|
132
|
-
<div class="filter-group-container">
|
|
133
|
-
${this._renderGroup(this._internalFilterGroup)}
|
|
134
|
-
|
|
135
|
-
${e?r.html`
|
|
136
|
-
<div class="add-root-group-container">
|
|
137
|
-
<luzmo-button
|
|
138
|
-
class="add-group-button"
|
|
139
|
-
.size=${this.size}
|
|
140
|
-
treatment="outline"
|
|
141
|
-
?disabled=${this._isDatasetIdsEmpty}
|
|
142
|
-
@click=${this._addGroup}
|
|
143
|
-
>
|
|
144
|
-
<luzmo-icon slot="icon" .icon=${n.luzmoPlus} .size=${this._oneSizeSmaller}></luzmo-icon>
|
|
145
|
-
${(0,a.msg)(`Group`,{desc:`Add group button label`})}
|
|
146
|
-
</luzmo-button>
|
|
147
|
-
</div>
|
|
148
|
-
`:``}
|
|
149
|
-
</div>
|
|
150
|
-
`}};e.t([(0,i.property)({type:String,attribute:`api-url`,reflect:!0})],y.prototype,`apiUrl`,void 0),e.t([(0,i.property)({type:String,attribute:`auth-key`,reflect:!0})],y.prototype,`authKey`,void 0),e.t([(0,i.property)({type:String,attribute:`auth-token`,reflect:!0})],y.prototype,`authToken`,void 0),e.t([(0,i.property)({type:Number,attribute:`cache-time`,reflect:!0})],y.prototype,`cacheTime`,void 0),e.t([(0,i.property)({type:String,attribute:`content-language`,reflect:!0})],y.prototype,`contentLanguage`,void 0),e.t([(0,i.property)({type:String,attribute:`time-zone`,reflect:!0})],y.prototype,`timeZone`,void 0),e.t([(0,i.property)({type:Array,attribute:`dataset-ids`,reflect:!0})],y.prototype,`datasetIds`,void 0),e.t([(0,i.property)({type:Array,reflect:!1})],y.prototype,`filters`,void 0),e.t([(0,i.property)({type:Number,reflect:!0})],y.prototype,`debounce`,void 0),e.t([(0,i.state)()],y.prototype,`_internalFilterGroup`,void 0),y=e.t([(0,a.localized)()],y),customElements.get(`luzmo-filters`)||customElements.define(`luzmo-filters`,y),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return y}});
|