@luzmo/analytics-components-kit 1.0.5 → 1.0.6
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 +3 -1
- package/components/area-chart-options.config-C49V29Y8.js +229 -0
- package/components/area-chart-positioning.config-1oFe5GQZ.cjs +20 -0
- package/components/area-chart-positioning.config-CpN8ybzu.js +55 -0
- package/components/area-chart-slots.config-DHeIgMLg.js +55 -0
- package/components/bar-chart-options.config-CL5P0qO3.js +300 -0
- package/components/bar-chart-positioning.config-D8xaCMCZ.cjs +20 -0
- package/components/bar-chart-positioning.config-FY7a9tkw.js +59 -0
- package/components/bar-chart-slots.config-DwTg8FbR.js +50 -0
- package/components/base-C637VyP1.cjs +20 -0
- package/components/base-DCUhSENj.js +248 -0
- package/components/box-plot-options.config-Qr3EjXtR.js +356 -0
- package/components/box-plot-positioning.config-B8KZRp7Z.cjs +20 -0
- package/components/box-plot-positioning.config-BDiLuilt.js +48 -0
- package/components/box-plot-slots.config-DiKHnGWa.js +40 -0
- package/components/bubble-chart-options.config-C5AjfJ-e.js +135 -0
- package/components/bubble-chart-positioning.config-B_iuArqa.js +55 -0
- package/components/bubble-chart-positioning.config-CjQj2Xw7.cjs +20 -0
- package/components/bubble-chart-slots.config-B8jVSy39.js +47 -0
- package/components/bullet-chart-options.config-oj1ECQfr.js +75 -0
- package/components/bullet-chart-positioning.config-DCIEjZ-u.js +56 -0
- package/components/bullet-chart-positioning.config-DYa0-Ssl.cjs +20 -0
- package/components/bullet-chart-slots.config-fNIvT9pt.js +46 -0
- package/components/choropleth-map-options.config-CBCRL0Q9.js +348 -0
- package/components/choropleth-map-positioning.config-CBaaidlT.js +55 -0
- package/components/choropleth-map-positioning.config-Cmgu7SkX.cjs +20 -0
- package/components/choropleth-map-slots.config-DEFBSjr_.js +53 -0
- package/components/circle-pack-chart-options.config-Ql_H79R5.js +54 -0
- package/components/circle-pack-chart-positioning.config-BpRTuvX3.js +48 -0
- package/components/circle-pack-chart-positioning.config-D-OOazzj.cjs +20 -0
- package/components/circle-pack-chart-slots.config-C88i4e0I.js +38 -0
- package/components/circular-gauge-options.config-DVqkM9J-.js +188 -0
- package/components/circular-gauge-positioning.config-CPmuEH4P.js +48 -0
- package/components/circular-gauge-positioning.config-CU5j-YVN.cjs +20 -0
- package/components/circular-gauge-slots.config-tCi8lb6r.js +39 -0
- package/components/column-chart-options.config-CP6dQDMX.js +299 -0
- package/components/column-chart-positioning.config-BZrwf5kb.js +55 -0
- package/components/column-chart-positioning.config-COLCV6uF.cjs +20 -0
- package/components/column-chart-slots.config-DlgmagVN.js +50 -0
- package/components/combination-chart-options.config-CxipfQJd.js +150 -0
- package/components/combination-chart-positioning.config-C7x9UeXL.cjs +20 -0
- package/components/combination-chart-positioning.config-vlhurz7H.js +48 -0
- package/components/combination-chart-slots.config-HWXOi_xL.js +43 -0
- package/components/conditional-number-options.config-DEoWU4SM.js +205 -0
- package/components/conditional-number-positioning.config-B5cUO8xu.cjs +20 -0
- package/components/conditional-number-positioning.config-B_yYXm1g.js +48 -0
- package/components/conditional-number-slots.config-B1c3brbY.js +39 -0
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.d.ts +0 -1
- package/components/data-field/index.js +2 -2
- package/components/data-field-DHgFf3bH.js +341 -0
- 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 +2 -2
- package/components/data-field-panel-D8jv5MJx.js +384 -0
- package/components/data-field-panel-DX_D-jOn.cjs +87 -0
- package/components/data-field-ud8KRJ4-.cjs +89 -0
- package/components/data-fields-select-CfGQXzkr.js +261 -0
- package/components/data-fields-select-DdNVT54e.cjs +41 -0
- package/components/date-comparison-filter-options.config-b46nQkma.js +126 -0
- package/components/date-comparison-filter-slots.config-BO_WlGJf.js +33 -0
- package/components/date-filter-options.config-DsAxIR5F.js +118 -0
- package/components/date-filter-slots.config-DOwkclvY.js +37 -0
- package/components/display-settings-binning-D5PEKaBI.cjs +56 -0
- package/components/display-settings-binning-DjRX5Ysr.js +112 -0
- package/components/display-settings-datetime-CPBtYtAy.cjs +217 -0
- package/components/display-settings-datetime-D0pphxmh.js +415 -0
- package/components/display-settings-grand-totals-C4feNejJ.cjs +44 -0
- package/components/display-settings-grand-totals-DlTKDKin.js +91 -0
- package/components/display-settings-numeric-BFjHxdXz.cjs +190 -0
- package/components/display-settings-numeric-CzC7orK1.js +481 -0
- package/components/display-settings-period-over-period-CzQW7v30.cjs +229 -0
- package/components/display-settings-period-over-period-DFWx_SLM.js +434 -0
- package/components/donut-chart-options.config-wVCdbZZr.js +207 -0
- package/components/donut-chart-positioning.config-S0YvSx2H.cjs +20 -0
- package/components/donut-chart-positioning.config-_6eKwCtI.js +48 -0
- package/components/donut-chart-slots.config-BiyZvM68.js +39 -0
- package/components/dropdown-filter-options.config-D8Nr-pia.js +153 -0
- package/components/dropdown-filter-slots.config-kuGNR6kG.js +38 -0
- package/components/en-CSPDwq2y.cjs +20 -0
- package/components/en-GB-CJR66Ci_.cjs +20 -0
- package/components/en-GB-DPjL71xN.js +28 -0
- package/components/en-US-CSPDwq2y.cjs +20 -0
- package/components/en-US-dzaDznn9.js +21 -0
- package/components/en-dzaDznn9.js +21 -0
- package/components/evolution-number-options.config-C3J_ZYpv.js +228 -0
- package/components/evolution-number-positioning.config-BOdHq6-i.cjs +20 -0
- package/components/evolution-number-positioning.config-tvmjQEaG.js +48 -0
- package/components/evolution-number-slots.config-CoDxHhwF.js +37 -0
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +2 -2
- package/components/filters-B6jGM3ej.cjs +323 -0
- package/components/filters-Dj6sRMSR.js +1644 -0
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +2 -2
- package/components/formula-BFcOs8RL.js +137 -0
- package/components/formula-BcVDJ9m_.cjs +45 -0
- package/components/formula-codemirror-DiVcMrIg.cjs +215 -0
- package/components/formula-codemirror-J0QWRZ49.js +12016 -0
- package/components/formula-display-store-BH4tCSWY.js +1122 -0
- package/components/formula-display-store-BWDj367s.cjs +20 -0
- package/components/formula-editor/index.cjs +1 -1
- package/components/formula-editor/index.d.ts +0 -1
- package/components/formula-editor/index.js +4 -5
- package/components/formula-editor-Boo1er25.js +895 -0
- package/components/formula-editor-N227w8sy.cjs +253 -0
- package/components/funnel-chart-options.config-DjF4mn2V.js +207 -0
- package/components/funnel-chart-positioning.config-B27G3I3l.cjs +20 -0
- package/components/funnel-chart-positioning.config-qBendkC6.js +48 -0
- package/components/funnel-chart-slots.config-YDfkl0W9.js +43 -0
- package/components/get-css-variable-N_PVMivH.cjs +20 -0
- package/components/get-css-variable-SptLB8Tz.js +63 -0
- package/components/heat-map-options.config-Tr3qWkye.js +224 -0
- package/components/heat-map-positioning.config-BF2SUfIH.cjs +20 -0
- package/components/heat-map-positioning.config-C06WNZYE.js +48 -0
- package/components/heat-map-slots.config-BTkTaVV1.js +37 -0
- package/components/heat-table-options.config-cXCjQymW.js +372 -0
- package/components/heat-table-positioning.config-B6fQCm6r.cjs +20 -0
- package/components/heat-table-positioning.config-CtKVYd7I.js +55 -0
- package/components/heat-table-slots.config-dqh1PMWX.js +49 -0
- package/components/hexbin-map-options.config-Bc5rtsom.js +276 -0
- package/components/hexbin-map-positioning.config-CC1odymH.js +48 -0
- package/components/hexbin-map-positioning.config-CsDTcimL.cjs +20 -0
- package/components/hexbin-map-slots.config-BrfF5JYT.js +37 -0
- package/components/image-options.config-BQHeuAsU.js +153 -0
- package/components/image-slots.config-ZRSv3b5w.js +24 -0
- package/components/index.cjs +793 -1
- package/components/index.js +6228 -65
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +2 -2
- package/components/item-grid-B9Y-6W5m.cjs +113 -0
- package/components/item-grid-pykaS5G4.js +4558 -0
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.js +2 -2
- package/components/item-option-DYXtwzIM.js +919 -0
- package/components/item-option-XpGZVVdr.cjs +252 -0
- package/components/item-option-action-button-group/index.cjs +1 -1
- package/components/item-option-action-button-group/index.js +2 -2
- package/components/item-option-action-button-group-CBtZKVx-.js +118 -0
- package/components/item-option-action-button-group-DyzXk2JJ.cjs +53 -0
- package/components/item-option-base-BrU7dJsV.js +123 -0
- package/components/item-option-base-Cqo4amTV.cjs +56 -0
- package/components/item-option-color-palette-picker/index.cjs +1 -1
- package/components/item-option-color-palette-picker/index.js +2 -2
- package/components/item-option-color-palette-picker-DEys6FIg.js +2041 -0
- package/components/item-option-color-palette-picker-E49SIqt5.cjs +40 -0
- package/components/item-option-color-picker/index.cjs +1 -1
- package/components/item-option-color-picker/index.js +2 -2
- package/components/item-option-color-picker-B8imRobf.js +87 -0
- package/components/item-option-color-picker-DqEWnNcU.cjs +34 -0
- package/components/item-option-color-range/index.cjs +1 -1
- package/components/item-option-color-range/index.js +2 -2
- package/components/item-option-color-range-CJnk4E24.cjs +98 -0
- package/components/item-option-color-range-CqJwKIEd.js +220 -0
- package/components/item-option-multi-language-field/index.cjs +1 -1
- package/components/item-option-multi-language-field/index.js +2 -2
- package/components/item-option-multi-language-field-Dp2Mpr5b.js +82 -0
- package/components/item-option-multi-language-field-sgiTxGdm.cjs +33 -0
- package/components/item-option-number-field/index.cjs +1 -1
- package/components/item-option-number-field/index.js +2 -2
- package/components/item-option-number-field-C3nRZtW1.js +102 -0
- package/components/item-option-number-field-DT2HXuYC.cjs +38 -0
- package/components/item-option-panel/index.cjs +1 -1
- package/components/item-option-panel/index.js +2 -2
- package/components/item-option-panel-DLdIbuAy.cjs +67 -0
- package/components/item-option-panel-DwGkEeMw.js +183 -0
- package/components/item-option-picker/index.cjs +1 -1
- package/components/item-option-picker/index.js +2 -2
- package/components/item-option-picker-Crb6PnE8.cjs +37 -0
- package/components/item-option-picker-nS_nnfVF.js +77 -0
- package/components/item-option-position-picker/index.cjs +1 -1
- package/components/item-option-position-picker/index.js +2 -2
- package/components/item-option-position-picker-BMuua3Lj.cjs +32 -0
- package/components/item-option-position-picker-BbAOSkmu.js +117 -0
- package/components/item-option-positions-number-field/index.cjs +1 -1
- package/components/item-option-positions-number-field/index.js +2 -2
- package/components/item-option-positions-number-field-BOp3cutd.js +164 -0
- package/components/item-option-positions-number-field-DKSdRWTW.cjs +49 -0
- package/components/item-option-radio-button-group/index.cjs +1 -1
- package/components/item-option-radio-button-group/index.js +2 -2
- package/components/item-option-radio-button-group-B_iWBD9w.js +74 -0
- package/components/item-option-radio-button-group-DGbhldoK.cjs +37 -0
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.js +2 -2
- package/components/item-option-slider/item-option-slider.d.ts +5 -0
- package/components/item-option-slider-4PSjHHGu.js +96 -0
- package/components/item-option-slider-Ct0dd0ci.cjs +33 -0
- package/components/item-option-switch/index.cjs +1 -1
- package/components/item-option-switch/index.js +2 -2
- package/components/item-option-switch-BbqKaspH.js +69 -0
- package/components/item-option-switch-DgYg5msr.cjs +30 -0
- package/components/item-option-text-field/index.cjs +1 -1
- package/components/item-option-text-field/index.js +2 -2
- package/components/item-option-text-field-DlDfvOFf.js +80 -0
- package/components/item-option-text-field-DsYobVm7.cjs +33 -0
- 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 +2 -2
- package/components/item-slot-drop-BuXYBvhO.js +326 -0
- package/components/item-slot-drop-panel/index.cjs +1 -1
- package/components/item-slot-drop-panel/index.js +2 -2
- package/components/item-slot-drop-panel-4lKBdSdq.js +354 -0
- package/components/item-slot-drop-panel-FLuz9znI.cjs +57 -0
- package/components/item-slot-drop-pl3ZTBEo.cjs +91 -0
- package/components/item-slot-picker/index.cjs +1 -1
- package/components/item-slot-picker/index.js +2 -2
- package/components/item-slot-picker-BllkOiQu.cjs +174 -0
- package/components/item-slot-picker-C-lCNPY_.js +500 -0
- package/components/item-slot-picker-panel/index.cjs +1 -1
- package/components/item-slot-picker-panel/index.js +2 -2
- package/components/item-slot-picker-panel-BsAwO_BR.cjs +81 -0
- package/components/item-slot-picker-panel-Dn5yJrZi.js +447 -0
- package/components/item-slots-configs.js +45 -45
- package/components/line-chart-options.config-DbEfF3_P.js +248 -0
- package/components/line-chart-positioning.config-BTYG1EVp.cjs +20 -0
- package/components/line-chart-positioning.config-Ca4m3l8g.js +55 -0
- package/components/line-chart-slots.config-Dtdt3oil.js +55 -0
- package/components/load-data-fields-for-datasets-BOcizGTk.cjs +20 -0
- package/components/load-data-fields-for-datasets-B_SpkBqA.js +86 -0
- package/components/localized-mixin-C-4Zk9oh.cjs +20 -0
- package/components/localized-mixin-CRSfJ73Q.js +52 -0
- package/components/marker-map-options.config-B9uOw9qk.js +117 -0
- package/components/marker-map-positioning.config-C5VuPrAq.js +48 -0
- package/components/marker-map-positioning.config-Ds7dX4x5.cjs +20 -0
- package/components/marker-map-slots.config-CF-OLWDb.js +37 -0
- package/components/ohlc-chart-options.config-CUXSO5cK.js +124 -0
- package/components/ohlc-chart-positioning.config-B1E1qu9y.js +78 -0
- package/components/ohlc-chart-positioning.config-BoWmcM8Y.cjs +20 -0
- package/components/ohlc-chart-slots.config-BlsG3ikV.js +68 -0
- package/components/parallel-coordinates-plot-options.config-BupZFL8M.js +42 -0
- package/components/parallel-coordinates-plot-positioning.config-B3J9h4rQ.js +48 -0
- package/components/parallel-coordinates-plot-positioning.config-DCn_VF7d.cjs +20 -0
- package/components/parallel-coordinates-plot-slots.config-BX9mYub0.js +46 -0
- package/components/period-over-period-condition.const-CLEyEn-5.js +1663 -0
- package/components/period-over-period-condition.const-DDgiXIfR.cjs +20 -0
- package/components/pivot-table-options.config-BhVQ-skJ.js +245 -0
- package/components/pivot-table-positioning.config-DEZdZrYw.js +55 -0
- package/components/pivot-table-positioning.config-_a8fijeQ.cjs +20 -0
- package/components/pivot-table-slots.config-BpyBX1NS.js +55 -0
- package/components/pragmatic-element-adapter-Ply5c6uO.js +1252 -0
- package/components/pragmatic-element-adapter-SUClsRR1.cjs +24 -0
- package/components/pyramid-chart-options.config-B271YknE.js +260 -0
- package/components/pyramid-chart-positioning.config-ChK8059K.cjs +20 -0
- package/components/pyramid-chart-positioning.config-tDeNGN2t.js +55 -0
- package/components/pyramid-chart-slots.config-B8_Qqs5b.js +50 -0
- package/components/radar-chart-options.config-kpK-dF2z.js +150 -0
- package/components/radar-chart-positioning.config-BohPnY6O.js +55 -0
- package/components/radar-chart-positioning.config-C00q0Cjc.cjs +20 -0
- package/components/radar-chart-slots.config-rkMoLc6Z.js +53 -0
- package/components/regular-table-options.config-CiITNIRD.js +148 -0
- package/components/regular-table-slots.config-BU7B9OGz.js +35 -0
- package/components/route-map-options.config-D1A47spF.js +326 -0
- package/components/route-map-positioning.config-BFoD9vn8.cjs +20 -0
- package/components/route-map-positioning.config-BKdyt6ko.js +66 -0
- package/components/route-map-slots.config-v3BZi_k3.js +59 -0
- package/components/sankey-diagram-options.config-Cs76JI4R.js +126 -0
- package/components/sankey-diagram-positioning.config-QtjnfHQb.js +66 -0
- package/components/sankey-diagram-positioning.config-lU-WAy9R.cjs +20 -0
- package/components/sankey-diagram-slots.config-C7W-p_iq.js +61 -0
- package/components/scatter-plot-options.config-KnuZCIK9.js +322 -0
- package/components/scatter-plot-positioning.config-BMx7JzXT.js +77 -0
- package/components/scatter-plot-positioning.config-Dl3dC8_q.cjs +20 -0
- package/components/scatter-plot-slots.config-e4r8rPGq.js +74 -0
- package/components/search-filter-options.config-BAxmEAiE.js +103 -0
- package/components/search-filter-slots.config-Bh5AkIlV.js +39 -0
- package/components/slicer-filter-options.config-B9G5S-w5.js +235 -0
- package/components/slicer-filter-positioning.config-D0ySBKRi.js +48 -0
- package/components/slicer-filter-positioning.config-V0xQ7zn4.cjs +20 -0
- package/components/slicer-filter-slots.config-ClnjpKoR.js +44 -0
- package/components/slider-filter-options.config-pVni2VeP.js +72 -0
- package/components/slider-filter-slots.config-C8ndKeOs.js +43 -0
- package/components/slot-menu-B18viCq_.js +1056 -0
- package/components/slot-menu-I0ZOhAwn.cjs +215 -0
- package/components/speedometer-chart-options.config-CRfWCHWe.js +246 -0
- package/components/speedometer-chart-positioning.config-Bxh2OpBf.cjs +20 -0
- package/components/speedometer-chart-positioning.config-DtvW38X7.js +48 -0
- package/components/speedometer-chart-slots.config-BkKyAqra.js +39 -0
- package/components/spike-map-options.config-01V52me2.js +413 -0
- package/components/spike-map-positioning.config-DkEQ8a85.cjs +20 -0
- package/components/spike-map-positioning.config-q0Ko-o6u.js +55 -0
- package/components/spike-map-slots.config-Bu63-9ET.js +47 -0
- package/components/strip-plot-options.config-CT8sqO2c.js +53 -0
- package/components/strip-plot-positioning.config-DFPJ4BKu.cjs +20 -0
- package/components/strip-plot-positioning.config-DVCL5TLA.js +48 -0
- package/components/strip-plot-slots.config-QBq7bq-Q.js +38 -0
- package/components/sunburst-chart-options.config-BIcUx_Ml.js +180 -0
- package/components/sunburst-chart-positioning.config--XMbmimi.cjs +20 -0
- package/components/sunburst-chart-positioning.config-Dy1GtLwf.js +48 -0
- package/components/sunburst-chart-slots.config-BDR8g83g.js +38 -0
- package/components/symbol-map-options.config-sY3sR_13.js +177 -0
- package/components/symbol-map-positioning.config-CS7s_Zrs.js +55 -0
- package/components/symbol-map-positioning.config-Cc_p6btx.cjs +20 -0
- package/components/symbol-map-slots.config-BhHW2t4h.js +53 -0
- package/components/text-options.config-zV8AxiZ-.js +67 -0
- package/components/text-slots.config-CexlYey1.js +24 -0
- package/components/treemap-chart-options.config-DaBT0Bud.js +204 -0
- package/components/treemap-chart-positioning.config-C6iouW1J.js +55 -0
- package/components/treemap-chart-positioning.config-DZ2hZtsF.cjs +20 -0
- package/components/treemap-chart-slots.config-vuiywUbz.js +47 -0
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +2 -2
- package/components/utils/store.js +1 -1
- package/components/utils-5J0VIvk6.cjs +20 -0
- package/components/utils-C6ysI98r.js +239 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +5 -8
- package/components/venn-diagram-options.config-CQIZxPZm.js +24 -0
- package/components/venn-diagram-positioning.config-8NrocJLI.cjs +20 -0
- package/components/venn-diagram-positioning.config-m2jp6blI.js +55 -0
- package/components/venn-diagram-slots.config-VYaBQMGD.js +47 -0
- package/components/video-options.config-CvyslCJl.js +127 -0
- package/components/video-slots.config-CBtjayTL.js +24 -0
- package/components/wordcloud-chart-options.config-B47Oxu0A.js +90 -0
- package/components/wordcloud-chart-positioning.config-ClALXn39.js +55 -0
- package/components/wordcloud-chart-positioning.config-DGD93axw.cjs +20 -0
- package/components/wordcloud-chart-slots.config-CLNtT9m5.js +45 -0
- package/custom-elements.json +5916 -16537
- package/index.d.ts +0 -24
- package/package.json +4 -129
- package/react/esm/index.d.ts +2 -27
- package/react/esm/index.js +2 -102
- package/react/index.ts +2 -102
- package/react/luzmo-stub.d.ts +0 -139
- package/react/package.json +2 -2
- package/types.d.ts +0 -8
- package/utils/formula/store/formula-display-store.d.ts +6 -0
- package/angular/README.md +0 -40
- package/angular/components/ai-chat-empty-state.ts +0 -98
- package/angular/components/ai-chat.ts +0 -412
- package/angular/components/ai-interaction-textarea.ts +0 -256
- package/angular/components/data-field-level.ts +0 -130
- package/angular/components/data-field-panel.ts +0 -256
- package/angular/components/data-field.ts +0 -130
- package/angular/components/data-fields-select.ts +0 -205
- package/angular/components/dataset-icon.ts +0 -83
- package/angular/components/dataset-selector-list.ts +0 -140
- package/angular/components/dataset-selector-row.ts +0 -143
- package/angular/components/display-settings-binning.ts +0 -92
- package/angular/components/display-settings-datetime.ts +0 -100
- package/angular/components/display-settings-grand-totals.ts +0 -92
- package/angular/components/display-settings-numeric.ts +0 -113
- package/angular/components/display-settings-period-over-period.ts +0 -107
- package/angular/components/display-settings.ts +0 -227
- package/angular/components/filter-expression-picker.ts +0 -168
- package/angular/components/filter-item.ts +0 -160
- package/angular/components/filter-parameter-picker.ts +0 -103
- package/angular/components/filter-value-picker-datetime.ts +0 -125
- package/angular/components/filter-value-picker-hierarchy.ts +0 -146
- package/angular/components/filter-value-picker-numeric.ts +0 -146
- package/angular/components/filter-value-picker.ts +0 -160
- package/angular/components/filters.ts +0 -169
- package/angular/components/formula-editor.ts +0 -229
- package/angular/components/formula-field.ts +0 -198
- package/angular/components/formula.ts +0 -170
- package/angular/components/interactive-viz-item.ts +0 -186
- package/angular/components/item-grid-item-actions-menu.ts +0 -113
- package/angular/components/item-grid.ts +0 -242
- package/angular/components/item-option-action-button-group.ts +0 -105
- package/angular/components/item-option-color-palette-picker.ts +0 -126
- package/angular/components/item-option-color-picker.ts +0 -134
- package/angular/components/item-option-color-range.ts +0 -168
- package/angular/components/item-option-multi-language-field.ts +0 -133
- package/angular/components/item-option-number-field.ts +0 -161
- package/angular/components/item-option-panel.ts +0 -149
- package/angular/components/item-option-picker.ts +0 -120
- package/angular/components/item-option-position-picker.ts +0 -98
- package/angular/components/item-option-positions-number-field.ts +0 -140
- package/angular/components/item-option-radio-button-group.ts +0 -119
- package/angular/components/item-option-slider.ts +0 -126
- package/angular/components/item-option-switch.ts +0 -98
- package/angular/components/item-option-text-field.ts +0 -112
- package/angular/components/item-option.ts +0 -163
- package/angular/components/item-slot-drop-panel.ts +0 -236
- package/angular/components/item-slot-drop.ts +0 -231
- package/angular/components/item-slot-picker-panel.ts +0 -299
- package/angular/components/item-slot-picker.ts +0 -241
- package/angular/components/slot-menu-list.ts +0 -121
- package/angular/components/slot-menu.ts +0 -304
- package/angular/components/viz-item-menu.ts +0 -118
- package/angular/esm/components/ai-chat-empty-state.d.ts +0 -39
- package/angular/esm/components/ai-chat-empty-state.js +0 -99
- package/angular/esm/components/ai-chat.d.ts +0 -137
- package/angular/esm/components/ai-chat.js +0 -423
- package/angular/esm/components/ai-interaction-textarea.d.ts +0 -97
- package/angular/esm/components/ai-interaction-textarea.js +0 -273
- package/angular/esm/components/data-field-level.d.ts +0 -50
- package/angular/esm/components/data-field-level.js +0 -129
- package/angular/esm/components/data-field-panel.d.ts +0 -86
- package/angular/esm/components/data-field-panel.js +0 -268
- package/angular/esm/components/data-field.d.ts +0 -50
- package/angular/esm/components/data-field.js +0 -129
- package/angular/esm/components/data-fields-select.d.ts +0 -79
- package/angular/esm/components/data-fields-select.js +0 -219
- package/angular/esm/components/dataset-icon.d.ts +0 -34
- package/angular/esm/components/dataset-icon.js +0 -86
- package/angular/esm/components/dataset-selector-list.d.ts +0 -53
- package/angular/esm/components/dataset-selector-list.js +0 -147
- package/angular/esm/components/dataset-selector-row.d.ts +0 -53
- package/angular/esm/components/dataset-selector-row.js +0 -145
- package/angular/esm/components/display-settings-binning.d.ts +0 -37
- package/angular/esm/components/display-settings-binning.js +0 -91
- package/angular/esm/components/display-settings-datetime.d.ts +0 -40
- package/angular/esm/components/display-settings-datetime.js +0 -99
- package/angular/esm/components/display-settings-grand-totals.d.ts +0 -37
- package/angular/esm/components/display-settings-grand-totals.js +0 -91
- package/angular/esm/components/display-settings-numeric.d.ts +0 -45
- package/angular/esm/components/display-settings-numeric.js +0 -115
- package/angular/esm/components/display-settings-period-over-period.d.ts +0 -44
- package/angular/esm/components/display-settings-period-over-period.js +0 -107
- package/angular/esm/components/display-settings.d.ts +0 -83
- package/angular/esm/components/display-settings.js +0 -231
- package/angular/esm/components/filter-expression-picker.d.ts +0 -64
- package/angular/esm/components/filter-expression-picker.js +0 -179
- package/angular/esm/components/filter-item.d.ts +0 -57
- package/angular/esm/components/filter-item.js +0 -171
- package/angular/esm/components/filter-parameter-picker.d.ts +0 -41
- package/angular/esm/components/filter-parameter-picker.js +0 -110
- package/angular/esm/components/filter-value-picker-datetime.d.ts +0 -47
- package/angular/esm/components/filter-value-picker-datetime.js +0 -131
- package/angular/esm/components/filter-value-picker-hierarchy.d.ts +0 -53
- package/angular/esm/components/filter-value-picker-hierarchy.js +0 -155
- package/angular/esm/components/filter-value-picker-numeric.d.ts +0 -53
- package/angular/esm/components/filter-value-picker-numeric.js +0 -155
- package/angular/esm/components/filter-value-picker.d.ts +0 -57
- package/angular/esm/components/filter-value-picker.js +0 -171
- package/angular/esm/components/filters.d.ts +0 -61
- package/angular/esm/components/filters.js +0 -179
- package/angular/esm/components/formula-editor.d.ts +0 -78
- package/angular/esm/components/formula-editor.js +0 -236
- package/angular/esm/components/formula-field.d.ts +0 -70
- package/angular/esm/components/formula-field.js +0 -209
- package/angular/esm/components/formula.d.ts +0 -60
- package/angular/esm/components/formula.js +0 -177
- package/angular/esm/components/interactive-viz-item.d.ts +0 -63
- package/angular/esm/components/interactive-viz-item.js +0 -188
- package/angular/esm/components/item-grid-item-actions-menu.d.ts +0 -45
- package/angular/esm/components/item-grid-item-actions-menu.js +0 -115
- package/angular/esm/components/item-grid.d.ts +0 -80
- package/angular/esm/components/item-grid.js +0 -245
- package/angular/esm/components/item-option-action-button-group.d.ts +0 -41
- package/angular/esm/components/item-option-action-button-group.js +0 -107
- package/angular/esm/components/item-option-color-palette-picker.d.ts +0 -48
- package/angular/esm/components/item-option-color-palette-picker.js +0 -131
- package/angular/esm/components/item-option-color-picker.d.ts +0 -51
- package/angular/esm/components/item-option-color-picker.js +0 -139
- package/angular/esm/components/item-option-color-range.d.ts +0 -66
- package/angular/esm/components/item-option-color-range.js +0 -179
- package/angular/esm/components/item-option-multi-language-field.d.ts +0 -50
- package/angular/esm/components/item-option-multi-language-field.js +0 -139
- package/angular/esm/components/item-option-number-field.d.ts +0 -58
- package/angular/esm/components/item-option-number-field.js +0 -171
- package/angular/esm/components/item-option-panel.d.ts +0 -54
- package/angular/esm/components/item-option-panel.js +0 -155
- package/angular/esm/components/item-option-picker.d.ts +0 -46
- package/angular/esm/components/item-option-picker.js +0 -123
- package/angular/esm/components/item-option-position-picker.d.ts +0 -39
- package/angular/esm/components/item-option-position-picker.js +0 -99
- package/angular/esm/components/item-option-positions-number-field.d.ts +0 -54
- package/angular/esm/components/item-option-positions-number-field.js +0 -147
- package/angular/esm/components/item-option-radio-button-group.d.ts +0 -45
- package/angular/esm/components/item-option-radio-button-group.js +0 -123
- package/angular/esm/components/item-option-slider.d.ts +0 -46
- package/angular/esm/components/item-option-slider.js +0 -131
- package/angular/esm/components/item-option-switch.d.ts +0 -40
- package/angular/esm/components/item-option-switch.js +0 -99
- package/angular/esm/components/item-option-text-field.d.ts +0 -44
- package/angular/esm/components/item-option-text-field.js +0 -115
- package/angular/esm/components/item-option.d.ts +0 -58
- package/angular/esm/components/item-option.js +0 -171
- package/angular/esm/components/item-slot-drop-panel.d.ts +0 -82
- package/angular/esm/components/item-slot-drop-panel.js +0 -249
- package/angular/esm/components/item-slot-drop.d.ts +0 -77
- package/angular/esm/components/item-slot-drop.js +0 -227
- package/angular/esm/components/item-slot-picker-panel.d.ts +0 -97
- package/angular/esm/components/item-slot-picker-panel.js +0 -309
- package/angular/esm/components/item-slot-picker.d.ts +0 -86
- package/angular/esm/components/item-slot-picker.js +0 -259
- package/angular/esm/components/slot-menu-list.d.ts +0 -46
- package/angular/esm/components/slot-menu-list.js +0 -123
- package/angular/esm/components/slot-menu.d.ts +0 -104
- package/angular/esm/components/slot-menu.js +0 -300
- package/angular/esm/components/viz-item-menu.d.ts +0 -42
- package/angular/esm/components/viz-item-menu.js +0 -111
- package/angular/esm/index.d.ts +0 -107
- package/angular/esm/index.js +0 -213
- package/angular/index.ts +0 -219
- package/angular/package.json +0 -40
- package/angular/tsconfig.json +0 -36
- package/angular/type-fallbacks.d.ts +0 -0
- package/angular/utils/ai-prompt/attachments.d.ts +0 -10
- package/angular/utils/ai-prompt/dictation.d.ts +0 -50
- package/angular/utils/ai-prompt/image-upload.d.ts +0 -12
- package/angular/utils/ai-prompt/index.d.ts +0 -6
- package/angular/utils/ai-prompt/tests/attachments.test.d.ts +0 -1
- package/angular/utils/ai-prompt/tests/dictation.test.d.ts +0 -1
- package/angular/utils/ai-prompt/tests/image-upload.test.d.ts +0 -1
- package/angular/utils/base/base.d.ts +0 -16
- package/angular/utils/base/focus-visible.d.ts +0 -29
- package/angular/utils/base/focusable.d.ts +0 -58
- package/angular/utils/base/index.d.ts +0 -5
- package/angular/utils/base/localized-mixin.d.ts +0 -22
- package/angular/utils/base/sized-mixin.d.ts +0 -17
- package/angular/utils/color/color-palettes.d.ts +0 -17
- package/angular/utils/color/extrapolate-color.d.ts +0 -1
- package/angular/utils/data/load-data-fields-for-datasets.d.ts +0 -22
- package/angular/utils/data-broker/index.d.ts +0 -257
- package/angular/utils/data-field-types/calculate-data-field-icon.d.ts +0 -12
- package/angular/utils/data-field-types/default-acceptable-data-field-types.d.ts +0 -1
- package/angular/utils/data-field-types/tests/calculate-data-field-icon.test.d.ts +0 -1
- package/angular/utils/drag/draggable.d.ts +0 -13
- package/angular/utils/drag/pragmatic-element-adapter.d.ts +0 -2
- package/angular/utils/drag/tests/pragmatic-element-adapter.first-import.test.d.ts +0 -1
- package/angular/utils/drag/tests/pragmatic-element-adapter.test.d.ts +0 -1
- package/angular/utils/filters/expressions.d.ts +0 -15
- package/angular/utils/filters/index.d.ts +0 -1
- package/angular/utils/formatter/calculate-duration.d.ts +0 -2
- package/angular/utils/formatter/decompose-numeric-format.d.ts +0 -11
- package/angular/utils/formatter/default-local-formats.d.ts +0 -20
- package/angular/utils/formatter/formats/cs.d.ts +0 -20
- package/angular/utils/formatter/formats/da.d.ts +0 -20
- package/angular/utils/formatter/formats/de.d.ts +0 -21
- package/angular/utils/formatter/formats/en-GB.d.ts +0 -21
- package/angular/utils/formatter/formats/en-US.d.ts +0 -1
- package/angular/utils/formatter/formats/en.d.ts +0 -1
- package/angular/utils/formatter/formats/es.d.ts +0 -54
- package/angular/utils/formatter/formats/fi.d.ts +0 -20
- package/angular/utils/formatter/formats/fr.d.ts +0 -54
- package/angular/utils/formatter/formats/he.d.ts +0 -20
- package/angular/utils/formatter/formats/hu.d.ts +0 -20
- package/angular/utils/formatter/formats/it.d.ts +0 -54
- package/angular/utils/formatter/formats/ja.d.ts +0 -20
- package/angular/utils/formatter/formats/ko.d.ts +0 -20
- package/angular/utils/formatter/formats/mk.d.ts +0 -20
- package/angular/utils/formatter/formats/nl.d.ts +0 -21
- package/angular/utils/formatter/formats/no.d.ts +0 -21
- package/angular/utils/formatter/formats/pl.d.ts +0 -20
- package/angular/utils/formatter/formats/pt.d.ts +0 -20
- package/angular/utils/formatter/formats/ru.d.ts +0 -20
- package/angular/utils/formatter/formats/sv.d.ts +0 -20
- package/angular/utils/formatter/formats/tr.d.ts +0 -21
- package/angular/utils/formatter/formats/zh-CN.d.ts +0 -20
- package/angular/utils/formatter/formats/zh-TW.d.ts +0 -20
- package/angular/utils/formatter/formatter.d.ts +0 -9
- package/angular/utils/formatter/get-dataset-name.d.ts +0 -2
- package/angular/utils/formatter/localize.d.ts +0 -3
- package/angular/utils/formatter/smart-datetime-formats.const.d.ts +0 -36
- package/angular/utils/formatter/tests/calculate-duration.test.d.ts +0 -1
- package/angular/utils/formatter/tests/decompose-numeric-format.test.d.ts +0 -1
- package/angular/utils/formatter/tests/default-local-formats.test.d.ts +0 -1
- package/angular/utils/formatter/tests/formatter.test.d.ts +0 -1
- package/angular/utils/formatter/tests/localize.test.d.ts +0 -1
- package/angular/utils/formula/base/formula-base.d.ts +0 -117
- package/angular/utils/formula/base/formula-input-base.d.ts +0 -62
- package/angular/utils/formula/codemirror/actions.d.ts +0 -47
- package/angular/utils/formula/codemirror/drop-cursor.d.ts +0 -15
- package/angular/utils/formula/codemirror/icon-element.d.ts +0 -7
- package/angular/utils/formula/codemirror/parser.d.ts +0 -16
- package/angular/utils/formula/codemirror/tests/actions.test.d.ts +0 -1
- package/angular/utils/formula/codemirror/theme.d.ts +0 -20
- package/angular/utils/formula/codemirror/widget.d.ts +0 -18
- package/angular/utils/formula/config/aggregations.d.ts +0 -9
- package/angular/utils/formula/config/build-datasets.d.ts +0 -10
- package/angular/utils/formula/config/expression-helpers.d.ts +0 -42
- package/angular/utils/formula/config/functions.d.ts +0 -3
- package/angular/utils/formula/config/groupings.d.ts +0 -9
- package/angular/utils/formula/config/regex.d.ts +0 -39
- package/angular/utils/formula/config/resolve-column-presentation.d.ts +0 -19
- package/angular/utils/formula/config/tests/build-datasets.test.d.ts +0 -1
- package/angular/utils/formula/config/validate-expression.d.ts +0 -19
- package/angular/utils/formula/load-formula-codemirror.d.ts +0 -4
- package/angular/utils/formula/render-explanation-tooltip.d.ts +0 -7
- package/angular/utils/formula/store/formula-display-store.d.ts +0 -87
- package/angular/utils/formula/store/formula-editor-context.d.ts +0 -8
- package/angular/utils/formula/store/formula-editor-store.d.ts +0 -46
- package/angular/utils/formula/store/tests/formula-editor-store.test.d.ts +0 -1
- package/angular/utils/formula/tests/validate-expression.test.d.ts +0 -1
- package/angular/utils/get-css-variable.d.ts +0 -1
- package/angular/utils/index.d.ts +0 -10
- package/angular/utils/localize/set-locale.d.ts +0 -7
- package/angular/utils/map-tile-providers/index.d.ts +0 -93
- package/angular/utils/slot-content/ad-hoc-slot-content.d.ts +0 -7
- package/angular/utils/slot-content/render-calculation-label.d.ts +0 -7
- package/angular/utils/slot-content/tests/ad-hoc-slot-content.test.d.ts +0 -1
- package/angular/utils/slot-state/slot-context.d.ts +0 -4
- package/angular/utils/slot-state/slot-store.d.ts +0 -39
- package/angular/utils/store/base-store.d.ts +0 -162
- package/angular/utils/store/dashboard-store.d.ts +0 -49
- package/angular/utils/store/index.d.ts +0 -135
- package/angular/utils/store/item-store.d.ts +0 -33
- package/angular/utils/store/store-registry.d.ts +0 -170
- package/angular/utils/store/tests/dashboard-store.test.d.ts +0 -1
- package/angular/utils/store/tests/item-store.test.d.ts +0 -1
- package/angular/utils/store/tests/store-registry.test.d.ts +0 -1
- package/angular/utils/store/types.d.ts +0 -270
- package/angular/utils/switch-item/index.d.ts +0 -34
- package/angular/utils/switch-item/slot-role-classification.d.ts +0 -31
- package/angular/utils/switch-item/stories/switch-item.stories.d.ts +0 -17
- package/angular/utils/switch-item/tests/slot-role-classification.test.d.ts +0 -1
- package/angular/utils/switch-item/tests/switch-item.test.d.ts +0 -1
- package/angular/utils/themes/bliss.d.ts +0 -2
- package/angular/utils/themes/classic-dark.d.ts +0 -2
- package/angular/utils/themes/classic.d.ts +0 -2
- package/angular/utils/themes/default-dark.d.ts +0 -2
- package/angular/utils/themes/default.d.ts +0 -2
- package/angular/utils/themes/index.d.ts +0 -4
- package/angular/utils/themes/orion.d.ts +0 -2
- package/angular/utils/themes/pinky.d.ts +0 -2
- package/angular/utils/themes/radiant.d.ts +0 -2
- package/angular/utils/themes/royale.d.ts +0 -2
- package/angular/utils/themes/seasonal.d.ts +0 -2
- package/angular/utils/themes/urban.d.ts +0 -2
- package/angular/utils/themes/vivid.d.ts +0 -2
- package/angular/utils/time/formats.const.d.ts +0 -4
- package/angular/utils/time/period-over-period-condition.const.d.ts +0 -8
- package/angular/utils/time/periods.const.d.ts +0 -15
- package/angular/utils/timezone/datetime-timezone.d.ts +0 -25
- package/angular/utils/timezone/tests/datetime-timezone.test.d.ts +0 -1
- package/angular/utils/transformations/convert-data-field-to-slot-content.d.ts +0 -9
- package/angular/utils/transformations/convert-datasets-to-data-fields.d.ts +0 -30
- package/angular/utils/transformations/tests/convert-data-field-to-slot-content.test.d.ts +0 -1
- package/angular/utils/transformations/tests/convert-datasets-to-data-fields.test.d.ts +0 -1
- package/angular/utils/types/tests/type-check.test.d.ts +0 -1
- package/angular/utils/types/type-check.d.ts +0 -28
- package/components/ad-hoc-slot-content-BwcFfXCV.cjs +0 -20
- package/components/ad-hoc-slot-content-hSlT62VS.js +0 -29
- package/components/ai-chat/ai-chat-events.d.ts +0 -123
- package/components/ai-chat/ai-chat-request.d.ts +0 -20
- package/components/ai-chat/ai-chat.d.ts +0 -318
- package/components/ai-chat/ai-prompt-types.d.ts +0 -118
- 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.cjs +0 -20
- package/components/ai-chat/index.d.ts +0 -23
- package/components/ai-chat/index.js +0 -29
- package/components/ai-chat/session/ai-chat-session-controller.d.ts +0 -57
- package/components/ai-chat/session/ai-chat-session-types.d.ts +0 -101
- package/components/ai-chat/session/ai-chat-session.d.ts +0 -102
- 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-BtQaM37y.js +0 -3998
- package/components/ai-chat-CBLWbv9C.cjs +0 -319
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +0 -212
- 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 -10
- package/components/ai-interaction-textarea-Bgd3y_cP.js +0 -785
- package/components/ai-interaction-textarea-CQBP9-DW.cjs +0 -93
- package/components/area-chart-options.config-Dc4P64YS.js +0 -229
- package/components/area-chart-positioning.config-1YVSxjRa.cjs +0 -20
- package/components/area-chart-positioning.config-QGEo5sr-.js +0 -55
- package/components/area-chart-slots.config-DdPO34_g.js +0 -55
- package/components/bar-chart-options.config-B7tknpxM.js +0 -300
- package/components/bar-chart-positioning.config-Cs56EAWY.cjs +0 -20
- package/components/bar-chart-positioning.config-KLzBnoCu.js +0 -59
- package/components/bar-chart-slots.config-BnbZRLIr.js +0 -50
- package/components/base-DMQUzJ4L.js +0 -249
- package/components/base-DRFleWoz.cjs +0 -20
- package/components/box-plot-options.config-D6Wvmx36.js +0 -356
- package/components/box-plot-positioning.config-BpDEb4Uo.cjs +0 -20
- package/components/box-plot-positioning.config-DKGY1Qqb.js +0 -48
- package/components/box-plot-slots.config-D6F2R2dw.js +0 -40
- package/components/bubble-chart-options.config-CDY6pFK6.js +0 -135
- package/components/bubble-chart-positioning.config-BZsvCSyT.cjs +0 -20
- package/components/bubble-chart-positioning.config-CL3mDsC-.js +0 -55
- package/components/bubble-chart-slots.config-BJdtdpS0.js +0 -47
- package/components/bullet-chart-options.config-B4vBSWrH.js +0 -75
- package/components/bullet-chart-positioning.config-DA-1zmsD.cjs +0 -20
- package/components/bullet-chart-positioning.config-DxXEGnbz.js +0 -56
- package/components/bullet-chart-slots.config-NeUTKgYI.js +0 -46
- package/components/choropleth-map-options.config-6-xaMCeR.js +0 -348
- package/components/choropleth-map-positioning.config-BicHLfN0.js +0 -55
- package/components/choropleth-map-positioning.config-D_1MCD5i.cjs +0 -20
- package/components/choropleth-map-slots.config-BbBwTeuw.js +0 -53
- package/components/circle-pack-chart-options.config-DWkyGqA_.js +0 -54
- package/components/circle-pack-chart-positioning.config-a_vo4VFg.js +0 -48
- package/components/circle-pack-chart-positioning.config-oTUkvFFJ.cjs +0 -20
- package/components/circle-pack-chart-slots.config-CJFjalBn.js +0 -38
- package/components/circular-gauge-options.config-D_xHWhBy.js +0 -188
- package/components/circular-gauge-positioning.config-BEM85XhO.js +0 -48
- package/components/circular-gauge-positioning.config-TG1wPyHz.cjs +0 -20
- package/components/circular-gauge-slots.config-DAKsa5Hq.js +0 -39
- package/components/column-chart-options.config-B_a7iN-c.js +0 -299
- package/components/column-chart-positioning.config-D1kXKreT.cjs +0 -20
- package/components/column-chart-positioning.config-x-wEIoTZ.js +0 -55
- package/components/column-chart-slots.config-Bpr-WaCi.js +0 -50
- package/components/combination-chart-options.config-l4szBpws.js +0 -150
- package/components/combination-chart-positioning.config-COksdK7F.cjs +0 -20
- package/components/combination-chart-positioning.config-DLyPa1Im.js +0 -48
- package/components/combination-chart-slots.config-u-QLoQQ-.js +0 -43
- package/components/conditional-number-options.config-DB4_BYN2.js +0 -205
- package/components/conditional-number-positioning.config-5SBhp4Kh.cjs +0 -20
- package/components/conditional-number-positioning.config-6ZQHIgAA.js +0 -48
- package/components/conditional-number-slots.config-CiLUXRSe.js +0 -39
- package/components/convert-data-field-to-slot-content-C6IIqU7G.js +0 -53
- package/components/convert-data-field-to-slot-content-DLzkk6dT.cjs +0 -20
- 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-D050EJkx.cjs +0 -54
- package/components/data-field-D1lrRnLX.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-CKlijSjc.cjs +0 -55
- package/components/data-field-level-Da8Pwva2.js +0 -247
- package/components/data-field-panel-47PGrrIi.cjs +0 -87
- package/components/data-field-panel-CgqJ1bLg.js +0 -385
- 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-B40TXGd7.js +0 -262
- package/components/data-fields-select-CQVqxMCS.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-CWT5Ju8w.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-C0dheupb.js +0 -313
- package/components/dataset-selector-list-CKQ7OgMN.cjs +0 -75
- 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-DP6QUWYs.js +0 -273
- package/components/dataset-selector-row-_FZPTBE1.cjs +0 -79
- package/components/date-comparison-filter-options.config-BSzzAJPM.js +0 -126
- package/components/date-comparison-filter-slots.config-Cvze969w.js +0 -33
- package/components/date-filter-options.config-C6VvDjd8.js +0 -118
- package/components/date-filter-slots.config-Y8hmQh0S.js +0 -37
- 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/decorate-DyMgX_Uh.js +0 -28
- package/components/display-settings/display-settings.d.ts +0 -117
- 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-1AdcENcv.cjs +0 -140
- package/components/display-settings-B-eamVdN.js +0 -313
- 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-binning-BGtp0Wvl.js +0 -110
- package/components/display-settings-binning-Cs8MS7BY.cjs +0 -56
- 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-CbTnG486.js +0 -413
- package/components/display-settings-datetime-q20qbrOL.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-BDeeC6-h.js +0 -89
- package/components/display-settings-grand-totals-DdEXs_mA.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-C5FlahN_.js +0 -479
- package/components/display-settings-numeric-PtcxP80Z.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-CUlsSQZv.js +0 -433
- package/components/display-settings-period-over-period-Csv7Kwri.cjs +0 -229
- package/components/donut-chart-options.config-CjtEDiJI.js +0 -207
- package/components/donut-chart-positioning.config-EudGY45O.js +0 -48
- package/components/donut-chart-positioning.config-m_uVKoNn.cjs +0 -20
- package/components/donut-chart-slots.config-DilGk7ju.js +0 -39
- package/components/dropdown-filter-options.config-DFJKns3l.js +0 -153
- package/components/dropdown-filter-slots.config-7heZtoEY.js +0 -38
- package/components/en-CcLhGxIh.js +0 -21
- package/components/en-GB-DzkdeUQh.js +0 -28
- package/components/en-GB-uxY5qmIM.cjs +0 -20
- package/components/en-US-CcLhGxIh.js +0 -21
- package/components/en-US-q_Ruzags.cjs +0 -20
- package/components/en-q_Ruzags.cjs +0 -20
- package/components/evolution-number-options.config-C3tU650w.js +0 -228
- package/components/evolution-number-positioning.config-BcLsEydB.js +0 -48
- package/components/evolution-number-positioning.config-CJii0q3V.cjs +0 -20
- package/components/evolution-number-slots.config-noZzIHkT.js +0 -37
- 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-D28THjzU.cjs +0 -38
- package/components/filter-expression-picker-nW1Hff7C.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-BirgEXGE.cjs +0 -58
- package/components/filter-item-BoYKU9tK.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-1kMJ9slB.js +0 -151
- package/components/filter-value-picker-D08bAAKt.cjs +0 -60
- 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-Cnwlipah.js +0 -139
- package/components/filter-value-picker-datetime-OIgFSdU2.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-BGgHIji-.cjs +0 -47
- package/components/filter-value-picker-hierarchy-DdMLbCO3.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-BL2gD2ED.cjs +0 -48
- package/components/filter-value-picker-numeric-BqrsENh6.js +0 -219
- package/components/filters-BLss6wBx.js +0 -407
- package/components/filters-rjc5xsF_.cjs +0 -150
- package/components/formatter-BeXmurVe.cjs +0 -20
- package/components/formatter-Cq5dFCyU.js +0 -1473
- package/components/formula-CNzBOTRQ.js +0 -138
- package/components/formula-DeRjtboJ.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-codemirror-D1hgPIW_.cjs +0 -215
- package/components/formula-codemirror-pnijOvXU.js +0 -12018
- package/components/formula-display-store-BBMmHCRp.js +0 -1090
- package/components/formula-display-store-Dn7r5kK8.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-DvDB6JYI.js +0 -690
- package/components/formula-editor-Uejdzkm6.cjs +0 -224
- 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-CNyKz9wY.cjs +0 -20
- package/components/formula-field-o_zZQACN.js +0 -40
- package/components/formula-input-base-DlVNZBUA.js +0 -236
- package/components/formula-input-base-fTF1KXpl.cjs +0 -49
- package/components/funnel-chart-options.config-6ifTq7Xh.js +0 -207
- package/components/funnel-chart-positioning.config-B_C8nr1y.js +0 -48
- package/components/funnel-chart-positioning.config-DhrMsuyt.cjs +0 -20
- package/components/funnel-chart-slots.config-BWszdEe8.js +0 -43
- package/components/get-css-variable-B8sJUuig.cjs +0 -20
- package/components/get-css-variable-r1spgqX0.js +0 -63
- package/components/get-dataset-name-DYLJB67F.js +0 -27
- package/components/get-dataset-name-DrTVBElb.cjs +0 -20
- package/components/groupings-BPlu4GFe.cjs +0 -20
- package/components/groupings-DAj2iFeA.js +0 -52
- package/components/heat-map-options.config-CezceVM3.js +0 -224
- package/components/heat-map-positioning.config-Bya2_TR8.cjs +0 -20
- package/components/heat-map-positioning.config-Cxembqle.js +0 -48
- package/components/heat-map-slots.config-Cwun49Qb.js +0 -37
- package/components/heat-table-options.config-C7kvRE10.js +0 -372
- package/components/heat-table-positioning.config-CNeTnuHy.js +0 -55
- package/components/heat-table-positioning.config-CYZr5ksc.cjs +0 -20
- package/components/heat-table-slots.config-nGB_B2mh.js +0 -49
- package/components/hexbin-map-options.config-8brGMkt_.js +0 -276
- package/components/hexbin-map-positioning.config-Dfdgub0y.js +0 -48
- package/components/hexbin-map-positioning.config-bXZEY4nP.cjs +0 -20
- package/components/hexbin-map-slots.config-BK-ftozd.js +0 -37
- package/components/image-options.config-Cz55iN7J.js +0 -153
- package/components/image-slots.config-kvHutBFK.js +0 -24
- 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-C3fzZq7j.js +0 -693
- package/components/interactive-viz-item-D-hR2G5x.cjs +0 -247
- package/components/item-grid-BruAZOla.cjs +0 -113
- package/components/item-grid-cyMiRw7P.js +0 -4559
- package/components/item-menu/item-list/item-list.d.ts +0 -37
- package/components/item-option-BclNWwdZ.cjs +0 -252
- package/components/item-option-CZb01VJb.js +0 -919
- package/components/item-option-action-button-group-AkMaJHuv.cjs +0 -53
- package/components/item-option-action-button-group-HfUtaTi9.js +0 -118
- package/components/item-option-base/item-option-base.d.ts +0 -23
- package/components/item-option-base-CZegYACf.cjs +0 -56
- package/components/item-option-base-DlHZAfWZ.js +0 -123
- package/components/item-option-color-palette-picker-B336qQRk.cjs +0 -40
- package/components/item-option-color-palette-picker-Dt4z0c4W.js +0 -2041
- package/components/item-option-color-picker-BRO416_T.js +0 -87
- package/components/item-option-color-picker-Hfu2fhRF.cjs +0 -34
- package/components/item-option-color-range-DWoaz57E.cjs +0 -98
- package/components/item-option-color-range-DgalNZ9b.js +0 -220
- package/components/item-option-multi-language-field-BvJXIFgu.js +0 -82
- package/components/item-option-multi-language-field-IQP6fbgB.cjs +0 -33
- package/components/item-option-number-field-B07NhNSm.cjs +0 -38
- package/components/item-option-number-field-CvGknDpu.js +0 -102
- package/components/item-option-panel-BWP9E8cW.cjs +0 -67
- package/components/item-option-panel-RYdx8Hfk.js +0 -183
- package/components/item-option-picker-C7SZfnLP.cjs +0 -37
- package/components/item-option-picker-DM1pU3w9.js +0 -77
- package/components/item-option-position-picker-BuDvx3SX.js +0 -117
- package/components/item-option-position-picker-M9CBH9NE.cjs +0 -32
- package/components/item-option-positions-number-field-C4zW5-Hc.cjs +0 -49
- package/components/item-option-positions-number-field-RN5AG-Ic.js +0 -164
- package/components/item-option-radio-button-group-Ce780UyR.js +0 -74
- package/components/item-option-radio-button-group-DRiwqorh.cjs +0 -37
- package/components/item-option-slider-BUdWMAzT.js +0 -81
- package/components/item-option-slider-CycHQFnr.cjs +0 -33
- package/components/item-option-switch-CM5R8wO_.cjs +0 -30
- package/components/item-option-switch-CvcZSytb.js +0 -69
- package/components/item-option-text-field-BZjOilSu.cjs +0 -33
- package/components/item-option-text-field-CyuYUITv.js +0 -80
- package/components/item-slot-drop-C6DO5mPk.js +0 -331
- package/components/item-slot-drop-CrzFRobc.cjs +0 -91
- package/components/item-slot-drop-panel-ChazcNSe.cjs +0 -57
- package/components/item-slot-drop-panel-DvmPk1pJ.js +0 -355
- package/components/item-slot-picker-CmG71mGy.js +0 -505
- package/components/item-slot-picker-DQkG3Lt7.cjs +0 -174
- package/components/item-slot-picker-panel-Bi2jXvQA.cjs +0 -81
- package/components/item-slot-picker-panel-DmGYI5YI.js +0 -448
- package/components/line-chart-options.config-OeRMkKMP.js +0 -248
- package/components/line-chart-positioning.config-CFHFq0wp.js +0 -55
- package/components/line-chart-positioning.config-Cqnfz4Lc.cjs +0 -20
- package/components/line-chart-slots.config-C6LEwEwh.js +0 -55
- package/components/load-data-fields-for-datasets-BNnr8x3m.js +0 -42
- package/components/load-data-fields-for-datasets-CW4Voiex.cjs +0 -20
- package/components/localized-mixin-B4fDdsF0.js +0 -45
- package/components/localized-mixin-CUuRZu9t.cjs +0 -20
- package/components/marker-map-options.config-CtW7nl1C.js +0 -117
- package/components/marker-map-positioning.config-BM-ZrmE9.cjs +0 -20
- package/components/marker-map-positioning.config-x3KUsgzD.js +0 -48
- package/components/marker-map-slots.config-Cyk-QFPT.js +0 -37
- package/components/ohlc-chart-options.config-Db40TXcB.js +0 -124
- package/components/ohlc-chart-positioning.config-C-vx6lt-.js +0 -78
- package/components/ohlc-chart-positioning.config-SIhJhFel.cjs +0 -20
- package/components/ohlc-chart-slots.config-CQFi8BIT.js +0 -68
- package/components/parallel-coordinates-plot-options.config-Bw8T5EE4.js +0 -42
- package/components/parallel-coordinates-plot-positioning.config-BaofZgit.js +0 -48
- package/components/parallel-coordinates-plot-positioning.config-Br1OGTEZ.cjs +0 -20
- package/components/parallel-coordinates-plot-slots.config-D5o-5y_j.js +0 -46
- package/components/period-over-period-condition.const-BZ7j5Z5t.js +0 -29
- package/components/period-over-period-condition.const-C1NZ9Bkp.cjs +0 -20
- package/components/pivot-table-options.config-gL2C_zvT.js +0 -245
- package/components/pivot-table-positioning.config-BaBkuXV0.cjs +0 -20
- package/components/pivot-table-positioning.config-DeeS1MaO.js +0 -55
- package/components/pivot-table-slots.config-Cl5z3IQo.js +0 -55
- package/components/pragmatic-element-adapter-C_7HSvGV.js +0 -1252
- package/components/pragmatic-element-adapter-DPWYJiW9.cjs +0 -24
- package/components/pyramid-chart-options.config-348RYXh8.js +0 -260
- package/components/pyramid-chart-positioning.config-D14NnyH1.js +0 -55
- package/components/pyramid-chart-positioning.config-g55mkotb.cjs +0 -20
- package/components/pyramid-chart-slots.config-DNzq2hMx.js +0 -50
- package/components/radar-chart-options.config-BeGjchnc.js +0 -150
- package/components/radar-chart-positioning.config-C9fiYOnB.js +0 -55
- package/components/radar-chart-positioning.config-CWGfQ7-j.cjs +0 -20
- package/components/radar-chart-slots.config-CXgfvAkt.js +0 -53
- package/components/regular-table-options.config-Bf0VAtT_.js +0 -148
- package/components/regular-table-slots.config-DCkw4Xkq.js +0 -35
- package/components/route-map-options.config-DWG5127-.js +0 -326
- package/components/route-map-positioning.config-Cd4azpuW.js +0 -66
- package/components/route-map-positioning.config-Dswq4pH_.cjs +0 -20
- package/components/route-map-slots.config-DJ76FOsJ.js +0 -59
- package/components/sankey-diagram-options.config-DW72WBKU.js +0 -126
- package/components/sankey-diagram-positioning.config-CAHzdKBq.cjs +0 -20
- package/components/sankey-diagram-positioning.config-CzGCvTeX.js +0 -66
- package/components/sankey-diagram-slots.config-BCc8P4j0.js +0 -61
- package/components/scatter-plot-options.config-CUyWy2xE.js +0 -322
- package/components/scatter-plot-positioning.config-C7nu7quv.js +0 -77
- package/components/scatter-plot-positioning.config-CrVJZ-X9.cjs +0 -20
- package/components/scatter-plot-slots.config-BMTdhTZG.js +0 -74
- package/components/search-filter-options.config-B_qQjr68.js +0 -103
- package/components/search-filter-slots.config-qCILSYzs.js +0 -39
- package/components/slicer-filter-options.config-DK62SCMp.js +0 -235
- package/components/slicer-filter-positioning.config-7sucz3_y.js +0 -48
- package/components/slicer-filter-positioning.config-D9Tehydc.cjs +0 -20
- package/components/slicer-filter-slots.config-C9_NdJm4.js +0 -44
- package/components/slider-filter-options.config-CP5bXdih.js +0 -72
- package/components/slider-filter-slots.config-15eAAGVn.js +0 -43
- 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 -148
- package/components/slot-menu/types.d.ts +0 -24
- package/components/slot-menu-AavTGkLk.cjs +0 -71
- package/components/slot-menu-Dz-O1ypQ.js +0 -426
- 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 -47
- package/components/slot-menu-list-BegM0w8C.js +0 -347
- package/components/slot-menu-list-Cahst0TY.cjs +0 -44
- package/components/slot-role-classification-2wChhpcq.cjs +0 -20
- package/components/slot-role-classification-B8bkGhQ_.js +0 -133
- package/components/slots-config-Cd4xAG4H.cjs +0 -20
- package/components/slots-config-D3ivNWtC.js +0 -76
- package/components/speedometer-chart-options.config-CtWGujmb.js +0 -246
- package/components/speedometer-chart-positioning.config-CZgXkEsG.cjs +0 -20
- package/components/speedometer-chart-positioning.config-DiDSe44G.js +0 -48
- package/components/speedometer-chart-slots.config-DfTw7JTF.js +0 -39
- package/components/spike-map-options.config-Ch0p9Q5l.js +0 -413
- package/components/spike-map-positioning.config-RExJASrJ.cjs +0 -20
- package/components/spike-map-positioning.config-W-xJbchu.js +0 -55
- package/components/spike-map-slots.config-i-c0F9QM.js +0 -47
- package/components/strip-plot-options.config-WICS2rnK.js +0 -53
- package/components/strip-plot-positioning.config-C70pTRqg.cjs +0 -20
- package/components/strip-plot-positioning.config-DsKb9ton.js +0 -48
- package/components/strip-plot-slots.config-BuF7X3xN.js +0 -38
- package/components/sunburst-chart-options.config-Bz-jP-gZ.js +0 -180
- package/components/sunburst-chart-positioning.config-BAhEnZtE.js +0 -48
- package/components/sunburst-chart-positioning.config-BHvaDZCC.cjs +0 -20
- package/components/sunburst-chart-slots.config-Cq-E6kyI.js +0 -38
- package/components/symbol-map-options.config-I89tFJUU.js +0 -177
- package/components/symbol-map-positioning.config-B2RZQPND.cjs +0 -20
- package/components/symbol-map-positioning.config-DNPiG975.js +0 -55
- package/components/symbol-map-slots.config-BfdBHkzN.js +0 -53
- package/components/text-options.config-BUiRyi3L.js +0 -67
- package/components/text-slots.config-CM_ZaW3p.js +0 -24
- package/components/treemap-chart-options.config-i7BH9mNl.js +0 -204
- package/components/treemap-chart-positioning.config-C0LbkC6B.js +0 -55
- package/components/treemap-chart-positioning.config-CIYguC9V.cjs +0 -20
- package/components/treemap-chart-slots.config-CHkGtIOa.js +0 -47
- package/components/utils-C8ATDm66.js +0 -240
- package/components/utils-Cx4X0PBr.cjs +0 -20
- package/components/venn-diagram-options.config-Wi0dQsAu.js +0 -24
- package/components/venn-diagram-positioning.config-CGmfYuoj.cjs +0 -20
- package/components/venn-diagram-positioning.config-CPUT2LXS.js +0 -55
- package/components/venn-diagram-slots.config-DY04aeYK.js +0 -47
- package/components/video-options.config-B6pQUPB7.js +0 -127
- package/components/video-slots.config-C-kXGzo3.js +0 -24
- 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-BKXdr3_Q.cjs +0 -55
- package/components/viz-item-menu-XoCSn7z_.js +0 -170
- package/components/wordcloud-chart-options.config-D_AhgZRs.js +0 -90
- package/components/wordcloud-chart-positioning.config-CqCOWKL4.js +0 -55
- package/components/wordcloud-chart-positioning.config-roHRUT_m.cjs +0 -20
- package/components/wordcloud-chart-slots.config-Cc5F92Tv.js +0 -45
- package/deprecated-react/components/ai-chat.component.cjs +0 -1
- package/deprecated-react/components/ai-interaction-textarea.component.cjs +0 -1
- package/deprecated-react/components/data-field-level.component.cjs +0 -1
- package/deprecated-react/components/data-fields-select.component.cjs +0 -1
- package/deprecated-react/components/dataset-icon.component.cjs +0 -1
- package/deprecated-react/components/dataset-selector-list.component.cjs +0 -1
- package/deprecated-react/components/dataset-selector-row.component.cjs +0 -1
- package/deprecated-react/components/display-settings-binning.component.cjs +0 -1
- package/deprecated-react/components/display-settings-datetime.component.cjs +0 -1
- package/deprecated-react/components/display-settings-grand-totals.component.cjs +0 -1
- package/deprecated-react/components/display-settings-numeric.component.cjs +0 -1
- package/deprecated-react/components/display-settings-period-over-period.component.cjs +0 -1
- package/deprecated-react/components/display-settings.component.cjs +0 -1
- package/deprecated-react/components/filter-expression-picker.component.cjs +0 -1
- package/deprecated-react/components/filter-item.component.cjs +0 -1
- package/deprecated-react/components/filter-parameter-picker.component.cjs +0 -1
- package/deprecated-react/components/filter-value-picker-datetime.component.cjs +0 -1
- package/deprecated-react/components/filter-value-picker-hierarchy.component.cjs +0 -1
- package/deprecated-react/components/filter-value-picker-numeric.component.cjs +0 -1
- package/deprecated-react/components/filter-value-picker.component.cjs +0 -1
- package/deprecated-react/components/formula-field.component.cjs +0 -1
- package/deprecated-react/components/interactive-viz-item.component.cjs +0 -1
- package/deprecated-react/components/slot-menu-list.component.cjs +0 -1
- package/deprecated-react/components/slot-menu.component.cjs +0 -1
- package/deprecated-react/components/viz-item-menu.component.cjs +0 -1
- package/react/components/ai-chat.component.ts +0 -45
- 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.component.ts +0 -27
- 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-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-field.component.ts +0 -30
- package/react/components/interactive-viz-item.component.ts +0 -33
- 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.component.ts +0 -33
- package/react/esm/components/ai-chat.component.d.ts +0 -24
- package/react/esm/components/ai-chat.component.js +0 -29
- 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.component.d.ts +0 -12
- package/react/esm/components/data-fields-select.component.js +0 -17
- 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-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-field.component.d.ts +0 -14
- package/react/esm/components/formula-field.component.js +0 -19
- 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-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.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 -95
- package/types/data-field-events.types.d.ts +0 -7
|
@@ -0,0 +1,48 @@
|
|
|
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 { n as e } from "./item-slot-drop-panel-4lKBdSdq.js";
|
|
21
|
+
//#region node_modules/@luzmo/dashboard-contents-types/evolution-number/evolution-number-positioning.config.js
|
|
22
|
+
var t = {
|
|
23
|
+
grid: {
|
|
24
|
+
columns: 1,
|
|
25
|
+
rows: 2,
|
|
26
|
+
columnSizes: ["1fr"],
|
|
27
|
+
rowSizes: ["1fr", e],
|
|
28
|
+
gap: "0"
|
|
29
|
+
},
|
|
30
|
+
slots: {
|
|
31
|
+
measure: {
|
|
32
|
+
column: 1,
|
|
33
|
+
row: 1,
|
|
34
|
+
align: "center",
|
|
35
|
+
justify: "center",
|
|
36
|
+
rotate: !1
|
|
37
|
+
},
|
|
38
|
+
evolution: {
|
|
39
|
+
column: 1,
|
|
40
|
+
row: 2,
|
|
41
|
+
align: "center",
|
|
42
|
+
justify: "center",
|
|
43
|
+
rotate: !1
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
//#endregion
|
|
48
|
+
export { t as evolutionNumberPositioningConfig };
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { s as e } from "./pragmatic-element-adapter-Ply5c6uO.js";
|
|
21
|
+
//#region node_modules/@luzmo/dashboard-contents-types/evolution-number/evolution-number-slots.config.js
|
|
22
|
+
var t = /* @__PURE__ */ e({ evolutionNumberSlotsConfig: () => n }), n = [{
|
|
23
|
+
name: "measure",
|
|
24
|
+
rotate: !1,
|
|
25
|
+
type: "numeric",
|
|
26
|
+
label: "Measure",
|
|
27
|
+
isRequired: !0,
|
|
28
|
+
canAcceptFormula: !0
|
|
29
|
+
}, {
|
|
30
|
+
name: "evolution",
|
|
31
|
+
rotate: !1,
|
|
32
|
+
type: "categorical",
|
|
33
|
+
label: "Evolution",
|
|
34
|
+
acceptableDataFieldTypes: ["datetime", "array[datetime]"]
|
|
35
|
+
}];
|
|
36
|
+
//#endregion
|
|
37
|
+
export { t as n, n as t };
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../filters-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../filters-B6jGM3ej.cjs");Object.defineProperty(exports,"LuzmoFilters",{enumerable:!0,get:function(){return e.t}});
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
(function() {
|
|
22
22
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
23
23
|
let e = document.createElement("style");
|
|
24
|
-
e.setAttribute("data-luzmo-vars", ""), e.textContent = "html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-full-down: color-mix(in oklch, var(--luzmo-border-color-full), black 45%);--luzmo-border-color-full-focus: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-down: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 7%), black 1%);--luzmo-background-color-focus: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-highlight-down: color-mix(in oklch, var(--luzmo-background-color-highlight), black 20%);--luzmo-background-color-highlight-focus: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-alt-1: rgb(250, 250, 250);--luzmo-background-color-alt-2: rgb(239, 239, 239);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-font-color-down: color-mix(in oklch, var(--luzmo-font-color), black 20%);--luzmo-font-color-focus: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-scrollbar-size: 6px;--luzmo-scrollbar-width: thin;--luzmo-scrollbar-track-background: transparent;--luzmo-scrollbar-track-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-background: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-scrollbar-thumb-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-hover-background: rgba(var(--luzmo-border-color-rgb), 0.4);--luzmo-primary: #4434ff;--luzmo-primary-hover: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-down: color-mix(in oklch, var(--luzmo-primary), black 20%);--luzmo-primary-focus: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-down: color-mix(in oklch, var(--luzmo-secondary), black 20%);--luzmo-secondary-focus: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-secondary-outline: rgba(255, 0, 255, 0.2);--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-down: color-mix(in oklch, var(--luzmo-negative-color), black 20%);--luzmo-negative-color-focus: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-down: color-mix(in oklch, var(--luzmo-positive-color), black 20%);--luzmo-positive-color-focus: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-down: color-mix(in oklch, var(--luzmo-selected-color), black 45%);--luzmo-selected-color-focus: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-selected-color-hard-down: color-mix(in oklch, var(--luzmo-selected-color-hard), black 45%);--luzmo-selected-color-hard-focus: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}", document.head.appendChild(e);
|
|
24
|
+
e.setAttribute("data-luzmo-vars", ""), e.textContent = "html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-full-down: color-mix(in oklch, var(--luzmo-border-color-full), black 45%);--luzmo-border-color-full-focus: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-down: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 7%), black 1%);--luzmo-background-color-focus: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-highlight-down: color-mix(in oklch, var(--luzmo-background-color-highlight), black 20%);--luzmo-background-color-highlight-focus: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-alt-1: rgb(250, 250, 250);--luzmo-background-color-alt-2: rgb(239, 239, 239);--luzmo-border-width: 1px;--luzmo-shadow-color-rgb: 0, 0, 0;--luzmo-shadow-opacity: 0.1;--luzmo-shadow-color: rgba(var(--luzmo-shadow-color-rgb), var(--luzmo-shadow-opacity));--luzmo-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-font-color-down: color-mix(in oklch, var(--luzmo-font-color), black 20%);--luzmo-font-color-focus: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-scrollbar-size: 6px;--luzmo-scrollbar-width: thin;--luzmo-scrollbar-track-background: transparent;--luzmo-scrollbar-track-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-background: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-scrollbar-thumb-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-hover-background: rgba(var(--luzmo-border-color-rgb), 0.4);--luzmo-primary: #4434ff;--luzmo-primary-hover: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-down: color-mix(in oklch, var(--luzmo-primary), black 20%);--luzmo-primary-focus: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-down: color-mix(in oklch, var(--luzmo-secondary), black 20%);--luzmo-secondary-focus: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-secondary-outline: rgba(255, 0, 255, 0.2);--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-down: color-mix(in oklch, var(--luzmo-negative-color), black 20%);--luzmo-negative-color-focus: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-down: color-mix(in oklch, var(--luzmo-positive-color), black 20%);--luzmo-positive-color-focus: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-down: color-mix(in oklch, var(--luzmo-selected-color), black 45%);--luzmo-selected-color-focus: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-selected-color-hard-down: color-mix(in oklch, var(--luzmo-selected-color-hard), black 45%);--luzmo-selected-color-hard-focus: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}", document.head.appendChild(e);
|
|
25
25
|
}
|
|
26
26
|
})();
|
|
27
|
-
import { t as e } from "../filters-
|
|
27
|
+
import { t as e } from "../filters-Dj6sRMSR.js";
|
|
28
28
|
export { e as LuzmoFilters };
|
|
@@ -0,0 +1,323 @@
|
|
|
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("./localized-mixin-C-4Zk9oh.cjs"),t=require("./data-broker-DWEXs6-2.cjs"),n=require("./type-check-BehV9ZL1.cjs"),r=require("./localize-D3i4Epy_.cjs"),i=require("./periods.const-Db0nXrwr.cjs");require("./data-fields-select-DdNVT54e.cjs"),require("./utils-5J0VIvk6.cjs");let a=require("@luzmo/icons");require("@luzmo/lucero/button"),require("@luzmo/lucero/icon");let o=require("lit"),s=require("lit/decorators.js"),c=require("@lit/localize");require("@luzmo/lucero/action-button"),require("@luzmo/lucero/select");let l=require("lit/directives/repeat.js");require("@luzmo/lucero/field-label"),require("@luzmo/lucero/number-field"),require("@luzmo/lucero/picker");let u=require("@luzmo/lucero/utils"),d=require("lit/directives/if-defined.js");require("@luzmo/lucero/menu"),require("@luzmo/lucero/text-field"),require("@luzmo/lucero/date-time-picker");function f(e){return typeof e==`string`&&e.toLowerCase()===`or`?`or`:`and`}function p(e){return typeof e==`object`&&!!e&&`condition`in e&&`filters`in e}function m(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function h(e){if(!Array.isArray(e)||e.length===0)return[];let t=m(e[0])?e[0]:void 0,n=e.length>1?e[1]:void 0;return e.length>1?[t,n]:[t]}function g(e){return typeof e.expression!=`string`||e.expression.length===0?null:{expression:e.expression,parameters:h(e.parameters)}}function _(e){if(!e||!e.filters)return{condition:`and`,filters:[],subGroups:[]};let t=[],n=[];for(let r of e.filters)if(p(r))n.push(_(r));else{let e=g(r);e&&t.push(e)}return{condition:f(e.condition),filters:t,subGroups:n}}function v(e){return e?[_(e)]:[]}function y(e){return{expression:e.expression,parameters:Array.isArray(e.parameters)?[...e.parameters]:[]}}function b(e){let t=e.subGroups??[];return{condition:f(e.condition),filters:[...e.filters.map(y),...t.map(e=>b(e))]}}function x(e){return!e||e.length===0?[]:e.map(e=>b(e))}var S=()=>[{id:`? = ?`,key:`? = ?`,expression:`? = ?`,name:(0,c.msg)(`equals`,{desc:`Filter expression for equals comparison`}),description:(0,c.msg)(`equals`,{desc:`Filter expression for equals comparison`}),tiny:(0,c.msg)(`eq`,{desc:`Short form of equals comparison`}),type:[`numeric`,`hierarchy`],subtype:[`ip_address`]},{id:`? != ?`,key:`? != ?`,expression:`? != ?`,name:(0,c.msg)(`not equals`,{desc:`Filter expression for not equals comparison`}),description:(0,c.msg)(`not equals`,{desc:`Filter expression for not equals comparison`}),tiny:(0,c.msg)(`not eq`,{desc:`Short form of not equals comparison`}),type:[`numeric`,`hierarchy`],subtype:[`ip_address`]},{id:`? in ?`,key:`? in ?`,expression:`? in ?`,name:(0,c.msg)(`is in`,{desc:`Filter expression for in comparison`}),description:(0,c.msg)(`is in`,{desc:`Filter expression for in comparison`}),tiny:(0,c.msg)(`is in`,{desc:`Filter expression for in comparison`}),type:[`numeric`,`hierarchy`],subtype:[`ip_address`]},{id:`? not in ?`,key:`? not in ?`,expression:`? not in ?`,name:(0,c.msg)(`is not in`,{desc:`Filter expression for not in comparison`}),description:(0,c.msg)(`is not in`,{desc:`Filter expression for not in comparison`}),tiny:(0,c.msg)(`is not in`,{desc:`Filter expression for not in comparison`}),type:[`numeric`,`hierarchy`],subtype:[`ip_address`]},{id:`? like ?`,key:`? like ?`,expression:`? like ?`,name:(0,c.msg)(`contains`,{desc:`Filter expression for contains comparison`}),description:(0,c.msg)(`contains`,{desc:`Filter expression for contains comparison`}),tiny:(0,c.msg)(`cont`,{desc:`Short form of contains comparison in filter expression`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? not like ?`,key:`? not like ?`,expression:`? not like ?`,name:(0,c.msg)(`does not contain`,{desc:`Filter expression for does not contain comparison`}),description:(0,c.msg)(`does not contain`,{desc:`Filter expression for does not contain comparison`}),tiny:(0,c.msg)(`not cont`,{desc:`Short form of does not contain comparison in filter expression`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? starts with ?`,key:`? starts with ?`,expression:`? starts with ?`,name:(0,c.msg)(`starts with`,{desc:`Filter expression for starts with comparison`}),description:(0,c.msg)(`starts with`,{desc:`Filter expression for starts with comparison`}),tiny:(0,c.msg)(`starts with`,{desc:`Filter expression for starts with comparison`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? not starts with ?`,key:`? not starts with ?`,expression:`? not starts with ?`,name:(0,c.msg)(`does not start with`,{desc:`Filter expression for does not start with comparison`}),description:(0,c.msg)(`does not start with`,{desc:`Filter expression for does not start with comparison`}),tiny:(0,c.msg)(`not starts with`,{desc:`Short form of does not start with comparison in filter expression`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? ends with ?`,key:`? ends with ?`,expression:`? ends with ?`,name:(0,c.msg)(`ends with`,{desc:`Filter expression for ends with comparison`}),description:(0,c.msg)(`ends with`,{desc:`Filter expression for ends with comparison`}),tiny:(0,c.msg)(`ends with`,{desc:`Filter expression for ends with comparison`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? not ends with ?`,key:`? not ends with ?`,expression:`? not ends with ?`,name:(0,c.msg)(`does not end with`,{desc:`Filter expression for does not end with comparison`}),description:(0,c.msg)(`does not end with`,{desc:`Filter expression for does not end with comparison`}),tiny:(0,c.msg)(`not ends with`,{desc:`Short form of does not end with comparison in filter expression`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? < ?`,key:`? < ?`,expression:`? < ?`,name:(0,c.msg)(`less than`,{desc:`Filter expression for less than comparison`}),description:(0,c.msg)(`less than`,{desc:`Filter expression for less than comparison`}),tiny:`<`,type:[`numeric`,`datetime`],subtype:[`ip_address`]},{id:`? <= ?`,key:`? <= ?`,expression:`? <= ?`,name:(0,c.msg)(`less than or equal`,{desc:`Filter expression for less than or equal comparison`}),description:(0,c.msg)(`less than or equal`,{desc:`Filter expression for less than or equal comparison`}),tiny:`<=`,type:[`numeric`,`datetime`],subtype:[`ip_address`]},{id:`? > ?`,key:`? > ?`,expression:`? > ?`,name:(0,c.msg)(`greater than`,{desc:`Filter expression for greater than comparison`}),description:(0,c.msg)(`greater than`,{desc:`Filter expression for greater than comparison`}),tiny:`>`,type:[`numeric`,`datetime`],subtype:[`ip_address`]},{id:`? >= ?`,key:`? >= ?`,expression:`? >= ?`,name:(0,c.msg)(`greater than or equal`,{desc:`Filter expression for greater than or equal comparison`}),description:(0,c.msg)(`greater than or equal`,{desc:`Filter expression for greater than or equal comparison`}),tiny:`>=`,type:[`numeric`,`datetime`],subtype:[`ip_address`]},{id:`? between ?`,key:`? between ?`,expression:`? between ?`,name:(0,c.msg)(`is between`,{desc:`Filter expression for between comparison`}),description:(0,c.msg)(`is between`,{desc:`Filter expression for between comparison`}),tiny:(0,c.msg)(`between`,{desc:`Short form of between comparison in filter expression`}),type:[],subtype:[`ip_address`]},{id:`last_now`,key:`last_now`,expression:`last_now`,name:(0,c.msg)(`last (x) periods`,{desc:`Filter expression for last (x) periods`}),description:(0,c.msg)(`last (x) periods`,{desc:`Filter expression for last (x) periods`}),tiny:(0,c.msg)(`last`,{desc:`Short form of last (x) periods in filter expression`}),type:[`datetime`]},{id:`last_available`,key:`last_available`,expression:`last_available`,name:(0,c.msg)(`last (x) available periods`,{desc:`Filter expression for last (x) available periods`}),description:(0,c.msg)(`last (x) available periods`,{desc:`Filter expression for last (x) available periods`}),tiny:(0,c.msg)(`last available`,{desc:`Short form of last (x) available periods in filter expression`}),type:[`datetime`]},{id:`last_completed`,key:`last_completed`,expression:`last_completed`,name:(0,c.msg)(`last completed period`,{desc:`Filter expression for last completed period`}),description:(0,c.msg)(`last completed (period)`,{desc:`Filter expression for last completed period`}),tiny:(0,c.msg)(`last completed`,{desc:`Short form of last completed period in filter expression`}),type:[`datetime`]},{id:`next_now`,key:`next_now`,expression:`next_now`,name:(0,c.msg)(`next (x) periods`,{desc:`Filter expression for next (x) periods`}),description:(0,c.msg)(`next (x) periods`,{desc:`Filter expression for next (x) periods`}),tiny:(0,c.msg)(`next`,{desc:`Short form of next (x) periods in filter expression`}),type:[`datetime`]},{id:`more_than_ago`,key:`more_than_ago`,expression:`more_than_ago`,name:(0,c.msg)(`more than (x) periods ago`,{desc:`Filter expression for more than (x) periods ago`}),description:(0,c.msg)(`more than (x) periods ago`,{desc:`Filter expression for more than (x) periods ago`}),tiny:(0,c.msg)(`more than ago`,{desc:`Short form of more than (x) periods ago in filter expression`}),type:[`datetime`]},{id:`or_more_ago`,key:`or_more_ago`,expression:`or_more_ago`,name:(0,c.msg)(`(x) periods or more ago`,{desc:`Filter expression for (x) periods or more ago`}),description:(0,c.msg)(`(x) periods or more ago`,{desc:`Filter expression for (x) periods or more ago`}),tiny:(0,c.msg)(`or more ago`,{desc:`Short form of (x) periods or more ago in filter expression`}),type:[`datetime`]},{id:`next_full`,key:`next_full`,expression:`next_full`,name:(0,c.msg)(`next full (period)`,{desc:`Filter expression for next full period`}),description:(0,c.msg)(`next full (period)`,{desc:`Filter expression for next full period`}),tiny:(0,c.msg)(`next full`,{desc:`Short form of next full period in filter expression`}),type:[`datetime`]},{id:`WTD`,key:`to_date`,expression:`to_date`,unit:4,name:(0,c.msg)(`week to date`,{desc:`Filter expression for week to date`}),description:(0,c.msg)(`week to date`,{desc:`Filter expression for week to date`}),tiny:(0,c.msg)(`WTD`,{desc:`Short form of week to date in filter expression`}),type:[`datetime`]},{id:`MTD`,key:`to_date`,expression:`to_date`,unit:3,name:(0,c.msg)(`month to date`,{desc:`Filter expression for month to date`}),description:(0,c.msg)(`month to date`,{desc:`Filter expression for month to date`}),tiny:(0,c.msg)(`MTD`,{desc:`Short form of month to date in filter expression`}),type:[`datetime`]},{id:`QTD`,key:`to_date`,expression:`to_date`,unit:2,name:(0,c.msg)(`quarter to date`,{desc:`Filter expression for quarter to date`}),description:(0,c.msg)(`quarter to date`,{desc:`Filter expression for quarter to date`}),tiny:(0,c.msg)(`QTD`,{desc:`Short form of quarter to date in filter expression`}),type:[`datetime`]},{id:`YTD`,key:`to_date`,expression:`to_date`,unit:1,name:(0,c.msg)(`year to date`,{desc:`Filter expression for year to date`}),description:(0,c.msg)(`year to date`,{desc:`Filter expression for year to date`}),tiny:(0,c.msg)(`YTD`,{desc:`Short form of year to date in filter expression`}),type:[`datetime`]},{id:`? is null`,key:`? is null`,expression:`? is null`,name:(0,c.msg)(`is missing`,{desc:`Filter expression for is missing`}),description:(0,c.msg)(`is missing`,{desc:`Filter expression for is missing`}),tiny:(0,c.msg)(`missing`,{desc:`Short form of is missing in filter expression`}),type:[`numeric`,`datetime`,`hierarchy`,`spatial`],subtype:[`ip_address`]},{id:`? is not null`,key:`? is not null`,expression:`? is not null`,name:(0,c.msg)(`is not missing`,{desc:`Filter expression for is not missing`}),description:(0,c.msg)(`is not missing`,{desc:`Filter expression for is not missing`}),tiny:(0,c.msg)(`not missing`,{desc:`Short form of is not missing in filter expression`}),type:[`numeric`,`datetime`,`hierarchy`,`spatial`],subtype:[`ip_address`]}],C=(e,t,n)=>{let r=new Set([`? in ?`,`? not in ?`]);return!e&&!t?S():S().filter(i=>(e&&i.type.includes(e)||t&&i.subtype?.includes(t))&&!(n&&r.has(i.key)))},w=`:host{font-family:var(--luzmo-font-family);--var:blue}`,T=class extends e.t((0,u.SizedMixin)(u.LuzmoElement,{validSizes:Object.values(u.ElementSizes)})){constructor(...e){super(...e),this.hasLabel=!1,this.allowEmpty=!1,this.placeholder=``,this.disabled=!1,this.invalid=!1,this.isFormula=!1,this._expressionConfigurations=S()}static get styles(){return[(0,o.unsafeCSS)(w)]}_sendChangeEvent(){if(this.disabled)return;let e={expression:this.filter?.expression};this.filter?.parameters?.[1]?.unit&&(e.unit=this.filter?.parameters?.[1]?.unit),this.dispatchEvent(new CustomEvent(`luzmo-expression-selected`,{bubbles:!0,composed:!0,cancelable:!0,detail:e}))}setExpression(e){this._richExpression=e?.detail?.value?.[0];let t=this._expressionConfigurations.find(e=>e.id===this._richExpression),n=structuredClone(this.filter);n.expression=t?.expression,t?.unit&&(this._unit=t.unit,n?.parameters[0]&&(n.parameters[1]={unit:this._unit})),this.filter=n,this._sendChangeEvent()}willUpdate(e){super.willUpdate(e);let t=e.has(`filter`),n=e.has(`type`),r=e.has(`subtype`),i=e.has(`isFormula`),a=C(this.type,this.subtype,this.isFormula),o=[`YTD`,`QTD`,`MTD`,`WTD`];if(this.filter?.expression===`to_date`){let e=this.filter?.parameters[1]?.unit??1;this._unit=e,this._richExpression=o[e-1]??`YTD`}else this._richExpression=this.filter?.expression;(n||r||i||t)&&this.filter&&!this.disabled&&!a?.find(e=>e.expression===this.filter?.expression)?(this.invalid=!0,console.warn(`Warning: ${this.filter?.expression} is not valid given the type: ${this.type} and subtype: ${this.subtype}`)):this.invalid=!1,!this.filter?.expression&&!this.allowEmpty&&(this._richExpression=a?.[0]?.id,this.filter={...this.filter,expression:this._richExpression},this._sendChangeEvent())}render(){let e=C(this.type,this.subtype,this.isFormula)?.map(e=>({value:e.id,label:e.description,shortLabel:e.tiny})),t=this.disabled||!this.filter?.expression&&!this.allowEmpty,n=o.html`<luzmo-field-label
|
|
21
|
+
for="expression"
|
|
22
|
+
size=${this.size}
|
|
23
|
+
>${this.label??(0,c.msg)(`Select an expression`,{desc:`Label for expression picker`})}</luzmo-field-label
|
|
24
|
+
>`,r=this.hasLabel?this.placeholder??(0,c.msg)(`Select...`):this.placeholder||this.label||(0,c.msg)(`Filter expression`,{desc:`Accessible label for expression picker`});return o.html`${this.hasLabel?n:``}
|
|
25
|
+
<luzmo-select
|
|
26
|
+
label=${r}
|
|
27
|
+
id="expression"
|
|
28
|
+
size=${this.size}
|
|
29
|
+
variant="highlight"
|
|
30
|
+
selects="single"
|
|
31
|
+
.language=${this.language}
|
|
32
|
+
?disabled=${t}
|
|
33
|
+
?invalid=${this.invalid}
|
|
34
|
+
.options=${e}
|
|
35
|
+
.value=${[this._richExpression]}
|
|
36
|
+
@change=${this.setExpression}
|
|
37
|
+
>
|
|
38
|
+
</luzmo-select>`}};e.n([(0,s.property)({type:String,reflect:!0})],T.prototype,`filter`,void 0),e.n([(0,s.property)({type:Boolean,attribute:`has-label`,reflect:!0})],T.prototype,`hasLabel`,void 0),e.n([(0,s.property)({type:String,reflect:!0})],T.prototype,`label`,void 0),e.n([(0,s.property)({type:Boolean,attribute:`allow-empty`,reflect:!0})],T.prototype,`allowEmpty`,void 0),e.n([(0,s.property)({type:String,attribute:`placeholder`,reflect:!0})],T.prototype,`placeholder`,void 0),e.n([(0,s.property)({type:Boolean,attribute:`disabled`,reflect:!0})],T.prototype,`disabled`,void 0),e.n([(0,s.property)({type:String,attribute:`type`,reflect:!0})],T.prototype,`type`,void 0),e.n([(0,s.property)({type:String,attribute:`subtype`,reflect:!0})],T.prototype,`subtype`,void 0),e.n([(0,s.property)({type:Boolean,attribute:`invalid`,reflect:!0})],T.prototype,`invalid`,void 0),e.n([(0,s.property)({type:Boolean,attribute:`is-formula`,reflect:!0})],T.prototype,`isFormula`,void 0),e.n([(0,s.state)()],T.prototype,`_richExpression`,void 0),e.n([(0,s.state)()],T.prototype,`_unit`,void 0),T=e.n([(0,c.localized)()],T),customElements.get(`luzmo-filter-expression-picker`)||customElements.define(`luzmo-filter-expression-picker`,T);var E=`:host{--var:blue}`,D=`:host{gap:var(--luzmo-filter-value-picker-datetime-gap,var(--filter-value-picker-datetime-gap));--filter-value-picker-datetime-gap:var(--luzmo-spacing-3);flex-direction:row;flex-shrink:1;min-width:0;display:flex}:host([size=s]){--filter-value-picker-datetime-gap:var(--luzmo-spacing-2)}:host([size=m]){--filter-value-picker-datetime-gap:var(--luzmo-spacing-3)}:host([size=l]){--filter-value-picker-datetime-gap:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1))}:host([size=xl]){--filter-value-picker-datetime-gap:var(--luzmo-spacing-4)}`,O=class extends e.t((0,u.SizedMixin)(u.LuzmoElement,{validSizes:Object.values(u.ElementSizes)})){constructor(...e){super(...e),this.contentLanguage=`en`}static get styles(){return[(0,o.unsafeCSS)(D)]}willUpdate(e){super.willUpdate(e),e.get(`filter`)&&([`last_now`,`last_available`,`next_now`,`more_than_ago`,`or_more_ago`].includes(this.filter?.expression)?this.filter.parameters[1]={quantity:this.filter?.parameters?.[1]?.quantity??1,unit:this.filter?.parameters?.[1]?.unit??1}:[`last_completed`,`next_full`,`to_date`].includes(this.filter?.expression)?this.filter.parameters[1]={unit:this.filter?.parameters?.[1]?.unit??1}:this.filter.parameters[1]=typeof this.filter.parameters[1]==`string`?this.filter.parameters[1]:new Date().toISOString())}_sendChangeEvent(){this.filter.parameters=[{...this.filter?.parameters?.[0]},this._value],this.dispatchEvent(new CustomEvent(`luzmo-filter-value-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setDate(e){this._value=e.detail.value,this._value!==this.filter?.parameters?.[1]&&this._sendChangeEvent()}setUnit(e){let t=i.n.find(t=>t.key===e?.target?.value)?.level;this.filter?.parameters?.[1]?.unit!==t&&(this._value={unit:t??1,quantity:this.filter?.parameters?.[1]?.quantity??1},this._sendChangeEvent())}setQuantity(e){let t=e?.target?.value;this.filter?.parameters?.[1]?.quantity!==t&&(this._value={quantity:t,unit:this.filter?.parameters?.[1]?.unit??1},this._sendChangeEvent())}renderDatePicker(){let e=`second`;return this.filter?.parameters?.[0]?.lowestLevel>4&&(e=this.filter?.parameters?.[0]?.lowestLevel===5?`day`:this.filter?.parameters?.[0]?.lowestLevel===6?`hour`:this.filter?.parameters?.[0]?.lowestLevel===7?`minute`:`second`),o.html`<luzmo-date-time-picker
|
|
39
|
+
aria-label=${(0,c.msg)(`Filter date`,{desc:`Aria label for filter date picker`})}
|
|
40
|
+
.size=${this.size}
|
|
41
|
+
.precision=${e}
|
|
42
|
+
.timeZone=${this.timeZone}
|
|
43
|
+
@change=${this.setDate}
|
|
44
|
+
.value=${this.filter?.parameters?.[1]}
|
|
45
|
+
></luzmo-date-time-picker>`}renderQuantityField(){return o.html`<luzmo-number-field
|
|
46
|
+
label=${(0,c.msg)(`Quantity`,{desc:`Label for quantity number field`})}
|
|
47
|
+
.size=${this.size}
|
|
48
|
+
.value=${this.filter?.parameters?.[1]?.quantity}
|
|
49
|
+
@input=${this.setQuantity}
|
|
50
|
+
@change=${this.setQuantity}
|
|
51
|
+
></luzmo-number-field>`}renderUnitPicker(){let e=i.n.map(e=>o.html`<luzmo-menu-item .value=${e.key}>
|
|
52
|
+
${e.i18n()}
|
|
53
|
+
</luzmo-menu-item>`),t=i.n.find(e=>e.level===this.filter?.parameters?.[1]?.unit)?.key??i.n?.[0]?.key;return o.html`<luzmo-picker
|
|
54
|
+
.label=${(0,c.msg)(`Time unit`,{desc:`Aria label for time unit picker`})}
|
|
55
|
+
.size=${this.size}
|
|
56
|
+
.value=${t}
|
|
57
|
+
@change=${this.setUnit}
|
|
58
|
+
variant="highlight"
|
|
59
|
+
>${e}</luzmo-picker
|
|
60
|
+
>`}render(){let e=this.filter?.expression;return[`last_now`,`last_available`,`next_now`,`more_than_ago`,`or_more_ago`].includes(e)?o.html`${this.renderQuantityField()}${this.renderUnitPicker()}`:[`last_completed`,`next_full`].includes(e)?this.renderUnitPicker():this.renderDatePicker()}};e.n([(0,s.property)({type:String,attribute:`content-language`,reflect:!0})],O.prototype,`contentLanguage`,void 0),e.n([(0,s.property)({type:String,attribute:`time-zone`,reflect:!0})],O.prototype,`timeZone`,void 0),e.n([(0,s.property)({type:Object,reflect:!1})],O.prototype,`filter`,void 0),O=e.n([(0,c.localized)()],O),customElements.get(`luzmo-filter-value-picker-datetime`)||customElements.define(`luzmo-filter-value-picker-datetime`,O);var k=`.missing-value{color:var(--luzmo-filter-value-picker-hierarchy-missing-value-color,#767676)}:host{--var:blue}`,A=5e3,j=class extends e.t((0,u.SizedMixin)(u.LuzmoElement,{validSizes:Object.values(u.ElementSizes)})){constructor(...e){super(...e),this.contentLanguage=`en`,this._hierarchyValues=[],this._retrieving=!0,this._search=``,this._error=null,this._allValuesRetrieved=!1,this._runningQueries=[]}static get styles(){return[(0,o.unsafeCSS)(k)]}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),t.t.configure(e)}willUpdate(e){if(super.willUpdate(e),e.has(`filter`)&&this.filter){let t=e.get(`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(this.filter?.expression)||![`? in ?`,`? not in ?`,`? = ?`,`? != ?`].includes(t))&&(this._hierarchyValues=[],this._allValuesRetrieved=!1,this._retrieving=!0)}}async _fetchHierarchyValues(e=0){if(this._allValuesRetrieved){this._retrieving=!1;return}if(!this.filter?.parameters?.[0]){this._retrieving=!1,this._error=`Missing column parameters`;return}let n=this.filter.parameters[0],r=n.columnId,i=n.formulaId,a=n.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:[{column_id:r,formula_id:i,dataset_id:a},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:A,offset:e}};this._search&&this._allValuesRetrieved&&s.where.push(o);let c=new AbortController,l=new Promise((e,n)=>{t.t.fetchData(s).then(e).catch(n),c.signal.addEventListener(`abort`,()=>{console.warn(`Request aborted`),n({status:`aborted`})})}),u={promise:l,abortController:c};this._runningQueries.push(u);try{let t=await l,n=t&&Array.isArray(t.data)?t.data.map(e=>e[0]):[];this._search||(this._allValuesRetrieved=n.length<A),this._hierarchyValues=e>0?[...this._hierarchyValues,...n]:n}catch(e){if(e?.status===`aborted`)return;this._error=e instanceof Error?e.message:`Unknown error`,this._hierarchyValues=[]}finally{this._runningQueries=this._runningQueries.filter(e=>e.promise!==l),this._retrieving=!1}}_sendChangeEvent(){this.dispatchEvent(new CustomEvent(`luzmo-filter-value-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setHierarchy(e){let t;t=[`? in ?`,`? not in ?`].includes(this.filter?.expression)?e?.detail?.value:[`? = ?`,`? != ?`].includes(this.filter?.expression)?e?.detail?.value?.[0]:e?.target?.value,this._value!==t&&(this._value=t,this.filter={...this.filter,parameters:[{...this.filter?.parameters?.[0]},this._value]},this._sendChangeEvent())}onScrolled(e){!this._retrieving&&!this._allValuesRetrieved&&e?.detail?.last===this._hierarchyValues.length-1&&this._fetchHierarchyValues(this._hierarchyValues.length)}renderTextField(){return o.html`<luzmo-text-field
|
|
61
|
+
label=${(0,c.msg)(`Filter value`,{desc:`Label for filter value text field`})}
|
|
62
|
+
.size=${this.size}
|
|
63
|
+
@change=${this.setHierarchy}
|
|
64
|
+
@input=${this.setHierarchy}
|
|
65
|
+
.value=${this.filter?.parameters?.[1]??``}
|
|
66
|
+
></luzmo-text-field>`}setSearchString(e){this._search=e?.detail?.string??``,this._allValuesRetrieved||(this._searchQueryTimeout&&(this._runningQueries.forEach(e=>{e?.abortController&&e.abortController.abort()}),this._runningQueries=[],clearTimeout(this._searchQueryTimeout)),this._searchQueryTimeout=setTimeout(()=>{this._fetchHierarchyValues()},500))}resetSearchString(){this._search=``}onOpened(){this._fetchHierarchyValues()}renderHierarchyPicker(){if(this._error)return o.html`<div class="error" role="alert">Error: ${this._error}</div>`;let e=(this._search?this._hierarchyValues.filter(e=>r.t(e.name,this.contentLanguage,{allowEmpty:!0})?.toLowerCase().includes(this._search.toLowerCase())||e.toString().toLowerCase().includes(this._search.toLowerCase())):this._hierarchyValues).map(e=>{let t=r.t(e?.name,this.contentLanguage)??`N/A`;return typeof t!=`string`&&(t=`N/A`),{value:e?.id,label:t}}),t=this.filter?.expression,n=[`? = ?`,`? != ?`].includes(t),i=(0,c.msg)(`Selected {count} items`),a=(0,c.msg)(`Search`),s=(0,c.msg)(`No data`),l=(0,c.msg)(`No results`),u=(0,c.msg)(`Select...`);return o.html`<luzmo-select
|
|
67
|
+
.size=${this.size}
|
|
68
|
+
.label=${u}
|
|
69
|
+
.retrieving=${this._retrieving}
|
|
70
|
+
.selects=${n?`single`:`multiple`}
|
|
71
|
+
.variant=${n?`highlight`:`checkboxes`}
|
|
72
|
+
emphasized
|
|
73
|
+
no-wrap
|
|
74
|
+
?invalid=${!!this._error}
|
|
75
|
+
.multipleLabelTemplate=${i}
|
|
76
|
+
.searchLabel=${a}
|
|
77
|
+
.noDataLabel=${s}
|
|
78
|
+
.noResultsLabel=${l}
|
|
79
|
+
@change=${this.setHierarchy}
|
|
80
|
+
@luzmo-search=${this.setSearchString}
|
|
81
|
+
@luzmo-opened=${this.onOpened}
|
|
82
|
+
@luzmo-closed=${this.resetSearchString}
|
|
83
|
+
@luzmo-scrolled=${this.onScrolled}
|
|
84
|
+
.options=${e}
|
|
85
|
+
.value=${n?[this.filter?.parameters?.[1]]:this.filter?.parameters?.[1]}
|
|
86
|
+
>
|
|
87
|
+
</luzmo-select>`}render(){let e=this.filter?.expression;return[`? in ?`,`? not in ?`,`? = ?`,`? != ?`].includes(e)?this.renderHierarchyPicker():this.renderTextField()}};e.n([(0,s.property)({type:String,attribute:`api-url`,reflect:!0})],j.prototype,`apiUrl`,void 0),e.n([(0,s.property)({type:String,attribute:`auth-key`,reflect:!0})],j.prototype,`authKey`,void 0),e.n([(0,s.property)({type:String,attribute:`auth-token`,reflect:!0})],j.prototype,`authToken`,void 0),e.n([(0,s.property)({type:Number,attribute:`cache-time`,reflect:!0})],j.prototype,`cacheTime`,void 0),e.n([(0,s.property)({type:String,attribute:`content-language`,reflect:!0})],j.prototype,`contentLanguage`,void 0),e.n([(0,s.property)({type:Object,reflect:!1})],j.prototype,`filter`,void 0),e.n([(0,s.state)()],j.prototype,`_hierarchyValues`,void 0),e.n([(0,s.state)()],j.prototype,`_retrieving`,void 0),e.n([(0,s.state)()],j.prototype,`_search`,void 0),e.n([(0,s.state)()],j.prototype,`_error`,void 0),j=e.n([(0,c.localized)()],j),customElements.get(`luzmo-filter-value-picker-hierarchy`)||customElements.define(`luzmo-filter-value-picker-hierarchy`,j);var M=`.missing-value{opacity:.4}:host{--var:blue}`,N=5e3,P=class extends e.t((0,u.SizedMixin)(u.LuzmoElement,{validSizes:Object.values(u.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,o.unsafeCSS)(M)]}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),t.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 n=this.filter.parameters[0],r=n.columnId,i=n.formulaId,a=n.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:N,offset:e}};this._search&&!this._allValuesRetrieved&&s.where.push(o);let c=new AbortController,l=new Promise((e,n)=>{t.t.fetchData(s).then(e).catch(n),c.signal.addEventListener(`abort`,()=>{console.warn(`Request aborted`),n({status:`aborted`})})}),u={promise:l,abortController:c};this._runningQueries.push(u);try{let t=await l,n=t&&Array.isArray(t.data)?t.data.map(e=>e[0]):[];this._search||(this._allValuesRetrieved=n.length<N),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!==l),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 o.html`<luzmo-number-field
|
|
88
|
+
label="Numeric filter value"
|
|
89
|
+
grows
|
|
90
|
+
.size=${this.size}
|
|
91
|
+
@change=${this.setValue}
|
|
92
|
+
@input=${this.setValue}
|
|
93
|
+
.value=${this.filter?.parameters?.[1]}
|
|
94
|
+
></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 o.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,c.msg)(`Selected {count} items`),n=(0,c.msg)(`Search`),r=(0,c.msg)(`No data`),i=(0,c.msg)(`No results`),a=(0,c.msg)(`Select...`);return o.html`<luzmo-select
|
|
95
|
+
.size=${this.size}
|
|
96
|
+
.label=${a}
|
|
97
|
+
.retrieving=${this._retrieving}
|
|
98
|
+
selects="multiple"
|
|
99
|
+
variant="checkboxes"
|
|
100
|
+
emphasized
|
|
101
|
+
no-wrap
|
|
102
|
+
?invalid=${!!this._error}
|
|
103
|
+
.multipleLabelTemplate=${t}
|
|
104
|
+
.searchLabel=${n}
|
|
105
|
+
.noDataLabel=${r}
|
|
106
|
+
.noResultsLabel=${i}
|
|
107
|
+
@change=${this.selectValue}
|
|
108
|
+
@luzmo-search=${this.setSearchString}
|
|
109
|
+
@luzmo-opened=${this.onOpened}
|
|
110
|
+
@luzmo-closed=${this.resetSearchString}
|
|
111
|
+
@luzmo-scrolled=${this.onScrolled}
|
|
112
|
+
.options=${e}
|
|
113
|
+
.value=${this.filter?.parameters?.[1]}
|
|
114
|
+
>
|
|
115
|
+
</luzmo-select>`}render(){let e=this.filter?.expression;return[`? in ?`,`? not in ?`].includes(e)?this.renderValuePicker():this.renderNumberField()}};e.n([(0,s.property)({type:String,attribute:`api-url`,reflect:!0})],P.prototype,`apiUrl`,void 0),e.n([(0,s.property)({type:String,attribute:`auth-key`,reflect:!0})],P.prototype,`authKey`,void 0),e.n([(0,s.property)({type:String,attribute:`auth-token`,reflect:!0})],P.prototype,`authToken`,void 0),e.n([(0,s.property)({type:Number,attribute:`cache-time`,reflect:!0})],P.prototype,`cacheTime`,void 0),e.n([(0,s.property)({type:String,attribute:`content-language`,reflect:!0})],P.prototype,`contentLanguage`,void 0),e.n([(0,s.property)({type:Object,reflect:!1})],P.prototype,`filter`,void 0),e.n([(0,s.state)()],P.prototype,`_numericValues`,void 0),e.n([(0,s.state)()],P.prototype,`_retrieving`,void 0),e.n([(0,s.state)()],P.prototype,`_search`,void 0),e.n([(0,s.state)()],P.prototype,`_error`,void 0),P=e.n([(0,c.localized)()],P),customElements.get(`luzmo-filter-value-picker-numeric`)||customElements.define(`luzmo-filter-value-picker-numeric`,P);var F=class extends e.t((0,u.SizedMixin)(u.LuzmoElement,{validSizes:Object.values(u.ElementSizes)})){constructor(...e){super(...e),this.contentLanguage=`en`,this._expressionsWithoutValuePicker=new Set([`? is null`,`? is not null`,`to_date`])}static get styles(){return[(0,o.unsafeCSS)(E)]}_sendChangeEvent(e){this.dispatchEvent(new CustomEvent(`luzmo-filter-value-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e}}))}setFilterValue(e){e.stopPropagation(),this._sendChangeEvent(e?.detail?.value)}renderNumericValuePicker(){return o.html`<luzmo-filter-value-picker-numeric
|
|
116
|
+
.apiUrl=${this.apiUrl}
|
|
117
|
+
.authKey=${this.authKey}
|
|
118
|
+
.authToken=${this.authToken}
|
|
119
|
+
.cacheTime=${this.cacheTime}
|
|
120
|
+
.filter=${this.filter}
|
|
121
|
+
.size=${this.size}
|
|
122
|
+
.language=${this.language}
|
|
123
|
+
.contentLanguage=${this.contentLanguage}
|
|
124
|
+
@luzmo-filter-value-changed=${this.setFilterValue}
|
|
125
|
+
></luzmo-filter-value-picker-numeric>`}renderHierarchyValuePicker(){return o.html`<luzmo-filter-value-picker-hierarchy
|
|
126
|
+
.apiUrl=${this.apiUrl}
|
|
127
|
+
.authKey=${this.authKey}
|
|
128
|
+
.authToken=${this.authToken}
|
|
129
|
+
.cacheTime=${this.cacheTime}
|
|
130
|
+
.filter=${this.filter}
|
|
131
|
+
.size=${this.size}
|
|
132
|
+
.language=${this.language}
|
|
133
|
+
.contentLanguage=${this.contentLanguage}
|
|
134
|
+
@luzmo-filter-value-changed=${this.setFilterValue}
|
|
135
|
+
></luzmo-filter-value-picker-hierarchy>`}renderDateTimeValuePicker(){return o.html`<luzmo-filter-value-picker-datetime
|
|
136
|
+
.apiUrl=${this.apiUrl}
|
|
137
|
+
.authKey=${this.authKey}
|
|
138
|
+
.authToken=${this.authToken}
|
|
139
|
+
.cacheTime=${this.cacheTime}
|
|
140
|
+
.filter=${this.filter}
|
|
141
|
+
.timeZone=${this.timeZone}
|
|
142
|
+
.language=${this.language}
|
|
143
|
+
.contentLanguage=${this.contentLanguage}
|
|
144
|
+
.size=${this.size}
|
|
145
|
+
@luzmo-filter-value-changed=${this.setFilterValue}
|
|
146
|
+
></luzmo-filter-value-picker-datetime>`}renderDisabledTextField(){let e=this.filter?.parameters?.[1]??``;return o.html`<luzmo-text-field
|
|
147
|
+
label=${(0,c.msg)(`Filter value`,{desc:`Label for filter value text field`})}
|
|
148
|
+
.size=${this.size}
|
|
149
|
+
.value=${e}
|
|
150
|
+
.disabled=${!0}
|
|
151
|
+
></luzmo-text-field>`}render(){let e=this.valueType??``,t=this.filter?.expression;return!t||this._expressionsWithoutValuePicker.has(t)?o.html`
|
|
152
|
+
|
|
153
|
+
`:[`numeric`,`hierarchy`,`datetime`].includes(e)?e===`numeric`?this.renderNumericValuePicker():e===`datetime`?this.renderDateTimeValuePicker():this.renderHierarchyValuePicker():typeof this.filter?.parameters?.[1]==`string`?this.renderDisabledTextField():o.html`
|
|
154
|
+
|
|
155
|
+
`}};e.n([(0,s.property)({type:String,attribute:`api-url`,reflect:!0})],F.prototype,`apiUrl`,void 0),e.n([(0,s.property)({type:String,attribute:`auth-key`,reflect:!0})],F.prototype,`authKey`,void 0),e.n([(0,s.property)({type:String,attribute:`auth-token`,reflect:!0})],F.prototype,`authToken`,void 0),e.n([(0,s.property)({type:Number,attribute:`cache-time`,reflect:!0})],F.prototype,`cacheTime`,void 0),e.n([(0,s.property)({type:String,attribute:`content-language`,reflect:!0})],F.prototype,`contentLanguage`,void 0),e.n([(0,s.property)({type:String,attribute:`time-zone`,reflect:!0})],F.prototype,`timeZone`,void 0),e.n([(0,s.property)({type:String,attribute:`value-type`,reflect:!0})],F.prototype,`valueType`,void 0),e.n([(0,s.property)({type:Object,reflect:!1})],F.prototype,`filter`,void 0),customElements.get(`luzmo-filter-value-picker`)||customElements.define(`luzmo-filter-value-picker`,F);var I=`:host{flex-direction:row;min-width:0;max-width:100%;display:flex}[role=group]{gap:var(--luzmo-filter-item-gap,var(--filter-item-gap));flex-direction:row;min-width:0;max-width:100%;display:flex}luzmo-data-fields-select{flex-shrink:1;min-width:0}luzmo-filter-value-picker{flex-shrink:2;min-width:0}:host{--filter-item-gap:var(--luzmo-spacing-3)}:host([size=s]){--filter-item-gap:var(--luzmo-spacing-2)}:host([size=m]){--filter-item-gap:var(--luzmo-spacing-3)}:host([size=l]){--filter-item-gap:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1))}:host([size=xl]){--filter-item-gap:var(--luzmo-spacing-4)}`,L=class extends e.t((0,u.SizedMixin)(u.LuzmoElement,{validSizes:Object.values(u.ElementSizes)})){constructor(...e){super(...e),this.apiUrl=`https://api.luzmo.com`,this.contentLanguage=`en`,this.filter={},this._loading=!1,this._datasetsDataFields=[]}static get styles(){return[(0,o.unsafeCSS)(I)]}connectedCallback(){super.connectedCallback();let e={};this.apiUrl&&(e.apiUrl=this.apiUrl),this.cacheTime&&(e.staleTime=this.cacheTime,e.gcTime=this.cacheTime*2),e.authKey=this.authKey||``,e.authToken=this.authToken||``,t.t.configure(e)}_clearTypeState(){this._type=void 0,this._subType=void 0,this._isFormula=void 0}async _fetchDatasetDataFields(){if(!this.datasetIds||this.datasetIds.length===0){this._error=`Missing dataset ids to fetch columns & formulas`,this._datasetsDataFields=[],this._loading=!1;return}let{valid:e,invalid:r}=n.c(this.datasetIds);if(r.length>0&&console.warn(`[LuzmoFilterItem] Invalid dataset IDs provided (not valid UUIDs): ${r.join(`, `)}. These will be skipped.`),e.length===0){this._error=`Invalid dataset IDs provided. Dataset IDs must be valid UUIDs.`,this._datasetsDataFields=[],this._loading=!1;return}this._loading=!0,this._error=null;try{let n=await t.t.fetchDatasetsWithColumnsAndFormulas(e);for(let e of n)for(let t of[...e.columns,...e.formulas])t.datasetId=e.id;this._datasetsDataFields=n}catch(e){console.error(`Error fetching dataset columns & formulas:`,e),this._error=e instanceof Error?e.message:`Unknown error`,this._datasetsDataFields=[]}finally{this._loading=!1}}willUpdate(e){super.willUpdate(e);let n=e.has(`filter`),r=e.has(`datasetIds`),i=e.has(`authKey`),a=e.has(`authToken`),o=e.has(`_datasetsDataFields`);if(n||r||o&&this.filter?.parameters?.[0]?.columnId&&(this.filter?.parameters?.[0]?.datasetId||this.filter?.parameters?.[0]?.formulaId))if(!this.datasetIds||this.datasetIds.length===0||this._datasetsDataFields.length===0)this._clearTypeState();else{let e=this._datasetsDataFields.find(e=>e.id===this.filter.parameters?.[0]?.datasetId);if(e){let t=!1;for(let n of[...e.columns||[],...e?.formulas||[]])if(n.id===this.filter.parameters?.[0]?.columnId||n.id===this.filter.parameters?.[0]?.formulaId){this._type=n.type,this._subType=n.subtype,this._isFormula=n.id===this.filter.parameters?.[0]?.formulaId,t=!0;break}t||this._clearTypeState()}else this._clearTypeState()}if(i||a){let e={authKey:this.authKey||``,authToken:this.authToken||``};t.t.configure(e)}(r||i||a)&&this._fetchDatasetDataFields()}_sendChangeEvent(){this.dispatchEvent(new CustomEvent(`luzmo-filter-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{filter:this.filter}}))}setFilterDataField(e){if(this._cannotReferenceColumn())return;let t=e.detail?.dataFields?.[0],n=this._type,r=this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId,i=t?.columnId||t?.formulaId;this._type=t?.type,this._subType=t?.subtype,this._isFormula=!!t?.formulaId;let a=C(this._type,this._subType,this._isFormula);this.filter=structuredClone(this.filter??{}),a?.includes(this.filter?.expression)||(this.filter.expression=a?.[0]?.expression),this.filter.parameters=this.filter?.parameters??[],this.filter.parameters[0]={datasetId:t?.datasetId},this._isFormula?this.filter.parameters[0].formulaId=t?.formulaId:this.filter.parameters[0].columnId=t?.columnId,t?.lowestLevel,n===this._type?r!==i&&this._type===`hierarchy`&&(this.filter.parameters[1]=[`? in ?`,`? not in ?`].includes(this.filter.expression)?[]:``):this._type===`hierarchy`?(this.filter.expression=`? like ?`,this.filter.parameters[1]=``):this._type===`numeric`?(this.filter.expression=`? > ?`,this.filter.parameters[1]=0):this._type===`datetime`?(this.filter.expression=`? < ?`,this.filter.parameters[1]=new Date().toISOString()):(this.filter.expression=`? is not null`,this.filter.parameters=[this.filter.parameters[0]]),this._sendChangeEvent()}setFilterExpression(e){if(this._cannotReferenceColumn())return;let t=structuredClone(this.filter??{}),n=t.expression;if(t.expression=e.detail?.expression,n!==t.expression){if([`? is null`,`? is not null`].includes(t.expression))t.parameters=[t.parameters[0]];else if(this._type===`datetime`)if([`YTD`,`QTD`,`MTD`,`WTD`].includes(t.expression)){let n=e?.detail?.unit;n&&(t.parameters[1]={unit:typeof n==`number`?n:1})}else if([`last_completed`,`next_full`,`to_date`].includes(t.expression)){let e=t?.parameters?.[1]?.unit;t.parameters[1]={unit:typeof e==`number`?e:1}}else if([`last_now`,`last_available`,`next_now`,`more_than_ago`,`or_more_ago`].includes(t.expression)){let e=t?.parameters?.[1]?.unit,n=t?.parameters?.[1]?.quantity;t.parameters[1]={unit:typeof e==`number`?e:1,quantity:typeof n==`number`?n:1}}else t.parameters[1]=new Date().toISOString();else this._type===`hierarchy`?[`? in ?`,`? not in ?`].includes(t.expression)?[`? = ?`,`? != ?`].includes(n)?t.parameters[1]=t.parameters[1]?[t.parameters[1]]:[]:t.parameters[1]=[]:[`? = ?`,`? != ?`].includes(t.expression)?[`? in ?`,`? not in ?`].includes(n)?t.parameters[1]=Array.isArray(t.parameters[1])&&t.parameters[1][0]?t.parameters[1][0]:``:t.parameters[1]=``:t.parameters[1]=[`? in ?`,`? not in ?`].includes(n)?``:t.parameters[1]??``:this._type===`numeric`&&([`? in ?`,`? not in ?`].includes(t.expression)&&[`? in ?`,`? not in ?`].includes(n)?t.parameters[1]=t.parameters[1]??[]:[`? in ?`,`? not in ?`].includes(t.expression)?t.parameters[1]=[]:t.parameters[1]=[`? in ?`,`? not in ?`].includes(n)?0:t.parameters[1]??0);this.filter=t,this._sendChangeEvent()}}setFilterValue(e){this._cannotReferenceColumn()||(this.filter.parameters[1]=e?.detail?.value,this._sendChangeEvent())}_cannotReferenceColumn(){if(!(this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId))return!1;if(!this.datasetIds||this.datasetIds.length===0||this._datasetsDataFields.length===0)return!0;let e=this.filter?.parameters?.[0]?.datasetId,t=this._datasetsDataFields.find(t=>t.id===e);return!t||![...t.columns||[],...t.formulas||[]].find(e=>e.id===this.filter?.parameters?.[0]?.columnId||e.id===this.filter?.parameters?.[0]?.formulaId)}renderDataFieldPicker(){let e=this._cannotReferenceColumn(),t=e?(0,c.msg)(`Unknown`):void 0,n=e||this._loading?``:this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId;return o.html`<luzmo-data-fields-select
|
|
156
|
+
.language=${this.language}
|
|
157
|
+
.contentLanguage=${this.contentLanguage}
|
|
158
|
+
.size=${this.size}
|
|
159
|
+
.value=${n?[n]:[]}
|
|
160
|
+
selects="single"
|
|
161
|
+
.datasetsDataFields=${this._datasetsDataFields}
|
|
162
|
+
placeholder=${(0,d.ifDefined)(t)}
|
|
163
|
+
.invalid=${!!this._error||e}
|
|
164
|
+
?disabled=${e}
|
|
165
|
+
.retrieving=${this._loading}
|
|
166
|
+
.pending=${this._loading}
|
|
167
|
+
@luzmo-data-fields-selected=${this.setFilterDataField}
|
|
168
|
+
></luzmo-data-fields-select>`}renderExpressionPicker(){let e=this._cannotReferenceColumn(),t=!this.filter?.parameters?.[0]?.datasetId||!this.filter?.parameters?.[0]?.columnId||e;return o.html`<luzmo-filter-expression-picker
|
|
169
|
+
.language=${this.language}
|
|
170
|
+
.size=${this.size}
|
|
171
|
+
.type=${this._type}
|
|
172
|
+
.subtype=${this._subType}
|
|
173
|
+
.filter=${this.filter}
|
|
174
|
+
?isFormula=${this._isFormula}
|
|
175
|
+
?disabled=${t}
|
|
176
|
+
@luzmo-expression-selected=${this.setFilterExpression}
|
|
177
|
+
></luzmo-filter-expression-picker>`}renderValuePicker(){let e=this._cannotReferenceColumn(),t=!this.filter?.parameters?.[0]?.datasetId||!this.filter?.parameters?.[0]?.columnId||e;return o.html`<luzmo-filter-value-picker
|
|
178
|
+
.apiUrl=${this.apiUrl}
|
|
179
|
+
.authKey=${this.authKey}
|
|
180
|
+
.authToken=${this.authToken}
|
|
181
|
+
.cacheTime=${this.cacheTime}
|
|
182
|
+
.language=${this.language}
|
|
183
|
+
.contentLanguage=${this.contentLanguage}
|
|
184
|
+
.timeZone=${this.timeZone}
|
|
185
|
+
.size=${this.size}
|
|
186
|
+
.filter=${this.filter}
|
|
187
|
+
.valueType=${this._type}
|
|
188
|
+
?disabled=${t}
|
|
189
|
+
@luzmo-filter-value-changed=${this.setFilterValue}
|
|
190
|
+
></luzmo-filter-value-picker>`}render(){return o.html`<div role="group" aria-label=${(0,c.msg)(`Filter condition`,{desc:`Accessible label for filter item group`})}>
|
|
191
|
+
${this.renderDataFieldPicker()} ${this.renderExpressionPicker()}
|
|
192
|
+
${this.renderValuePicker()}
|
|
193
|
+
</div>`}};e.n([(0,s.property)({type:String,attribute:`api-url`,reflect:!0})],L.prototype,`apiUrl`,void 0),e.n([(0,s.property)({type:String,attribute:`auth-key`,reflect:!0})],L.prototype,`authKey`,void 0),e.n([(0,s.property)({type:String,attribute:`auth-token`,reflect:!0})],L.prototype,`authToken`,void 0),e.n([(0,s.property)({type:Number,attribute:`cache-time`,reflect:!0})],L.prototype,`cacheTime`,void 0),e.n([(0,s.property)({type:String,reflect:!0})],L.prototype,`contentLanguage`,void 0),e.n([(0,s.property)({type:String,attribute:`time-zone`,reflect:!0})],L.prototype,`timeZone`,void 0),e.n([(0,s.property)({type:Array,attribute:`dataset-ids`,reflect:!0})],L.prototype,`datasetIds`,void 0),e.n([(0,s.property)({type:Object,reflect:!1})],L.prototype,`filter`,void 0),e.n([(0,s.state)()],L.prototype,`_type`,void 0),e.n([(0,s.state)()],L.prototype,`_subType`,void 0),e.n([(0,s.state)()],L.prototype,`_isFormula`,void 0),e.n([(0,s.state)()],L.prototype,`_error`,void 0),e.n([(0,s.state)()],L.prototype,`_loading`,void 0),e.n([(0,s.state)()],L.prototype,`_datasetsDataFields`,void 0),L=e.n([(0,c.localized)()],L),customElements.get(`luzmo-filter-item`)||customElements.define(`luzmo-filter-item`,L);var R=`: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)}`,z={and:()=>(0,c.msg)(`AND`,{desc:`Logical AND condition for combining filters`}),or:()=>(0,c.msg)(`OR`,{desc:`Logical OR condition for combining filters`})};function B(e){return e===`and`?`or`:`and`}var V=class extends e.t((0,u.SizedMixin)(u.LuzmoElement,{validSizes:Object.values(u.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,o.unsafeCSS)(R)]}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=x(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=>v(e)[0]).filter(e=>!!e);let[e]=v(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=B(e.condition),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=B(e.condition),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=B(this._internalFilterGroup.condition),e.filters.push(this._internalFilterGroup);let t=this._generateEmptyGroup();t.condition=B(e.condition),t.filters.push(this._generateEmptyFilter()),e.filters.push(t),this._internalFilterGroup=e,this.requestUpdate(),this._sendChangeEvent()}_renderFilterItem(e,t,n){return o.html`
|
|
194
|
+
<div class="filter-item-wrapper">
|
|
195
|
+
<div class="filter-item-content">
|
|
196
|
+
<luzmo-filter-item
|
|
197
|
+
.apiUrl=${this.apiUrl}
|
|
198
|
+
.authKey=${this.authKey}
|
|
199
|
+
.authToken=${this.authToken}
|
|
200
|
+
.cacheTime=${this.cacheTime}
|
|
201
|
+
.language=${this.language}
|
|
202
|
+
.contentLanguage=${this.contentLanguage}
|
|
203
|
+
.timeZone=${this.timeZone}
|
|
204
|
+
.datasetIds=${this.datasetIds}
|
|
205
|
+
.filter=${e}
|
|
206
|
+
.size=${this.size}
|
|
207
|
+
@luzmo-filter-changed=${this._updateFilter.bind(this,t,n)}
|
|
208
|
+
></luzmo-filter-item>
|
|
209
|
+
<luzmo-action-button
|
|
210
|
+
class="delete-filter-button"
|
|
211
|
+
.size=${this.size}
|
|
212
|
+
quiet
|
|
213
|
+
.label=${(0,c.msg)(`Remove filter`,{desc:`Aria label for remove filter button`})}
|
|
214
|
+
@click=${this._removeFilter.bind(this,t,n)}
|
|
215
|
+
>
|
|
216
|
+
<luzmo-icon slot="icon" .icon=${a.luzmoTrashOutline} .size=${this.size}></luzmo-icon>
|
|
217
|
+
</luzmo-action-button>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
`}_renderGroup(e,t=!1){let n=e.filters.length>0,r=e.filters.length>1,i=z[e.condition]?.()??e.condition;return o.html`
|
|
221
|
+
<div class="filter-group ${t?`nested`:``}" role="group">
|
|
222
|
+
${t?o.html`
|
|
223
|
+
<div class="condition-wrapper">
|
|
224
|
+
${r?o.html`
|
|
225
|
+
<luzmo-action-button
|
|
226
|
+
class="condition-badge"
|
|
227
|
+
.size=${this._oneSizeSmaller}
|
|
228
|
+
quiet
|
|
229
|
+
aria-pressed=${e.condition===`and`?`true`:`false`}
|
|
230
|
+
.label=${(0,c.msg)(`Toggle filter condition, currently `,{desc:`Aria label prefix for filter condition toggle`})+i}
|
|
231
|
+
@click=${this._toggleCondition.bind(this,e)}
|
|
232
|
+
>
|
|
233
|
+
${i}
|
|
234
|
+
</luzmo-action-button>
|
|
235
|
+
`:``}
|
|
236
|
+
</div>
|
|
237
|
+
`:r?o.html`
|
|
238
|
+
<div class="condition-wrapper">
|
|
239
|
+
<luzmo-action-button
|
|
240
|
+
class="condition-badge"
|
|
241
|
+
.size=${this._oneSizeSmaller}
|
|
242
|
+
quiet
|
|
243
|
+
aria-pressed=${e.condition===`and`?`true`:`false`}
|
|
244
|
+
.label=${(0,c.msg)(`Toggle filter condition, currently `,{desc:`Aria label prefix for filter condition toggle`})+i}
|
|
245
|
+
@click=${this._toggleCondition.bind(this,e)}
|
|
246
|
+
>
|
|
247
|
+
${i}
|
|
248
|
+
</luzmo-action-button>
|
|
249
|
+
</div>
|
|
250
|
+
`:``}
|
|
251
|
+
<div class="group-content">
|
|
252
|
+
${n?o.html`
|
|
253
|
+
<div class="filters-list">
|
|
254
|
+
${(0,l.repeat)(e.filters,(e,t)=>t,(t,n)=>o.html`
|
|
255
|
+
${this._isGroup(t)?this._renderGroup(t,!0):this._renderFilterItem(t,e,n)}
|
|
256
|
+
`)}
|
|
257
|
+
</div>
|
|
258
|
+
`:``}
|
|
259
|
+
|
|
260
|
+
<div class="group-actions">
|
|
261
|
+
<luzmo-action-button
|
|
262
|
+
class="add-filter-button"
|
|
263
|
+
.size=${this.size}
|
|
264
|
+
quiet
|
|
265
|
+
?disabled=${this._isDatasetIdsEmpty}
|
|
266
|
+
@click=${this._addFilter.bind(this,e)}
|
|
267
|
+
>
|
|
268
|
+
<luzmo-icon slot="icon" .icon=${a.luzmoPlus} .size=${this._oneSizeSmaller}></luzmo-icon>
|
|
269
|
+
${(0,c.msg)(`Filter`,{desc:`Add filter button label`})}
|
|
270
|
+
</luzmo-action-button>
|
|
271
|
+
|
|
272
|
+
<luzmo-action-button
|
|
273
|
+
class="add-subgroup-button"
|
|
274
|
+
.size=${this.size}
|
|
275
|
+
quiet
|
|
276
|
+
?disabled=${this._isDatasetIdsEmpty}
|
|
277
|
+
@click=${this._addSubGroup.bind(this,e)}
|
|
278
|
+
>
|
|
279
|
+
<luzmo-icon slot="icon" .icon=${a.luzmoPlus} .size=${this._oneSizeSmaller}></luzmo-icon>
|
|
280
|
+
${(0,c.msg)(`Subgroup`,{desc:`Add subgroup button label`})}
|
|
281
|
+
</luzmo-action-button>
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
284
|
+
</div>
|
|
285
|
+
`}_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 o.html`
|
|
286
|
+
<div class="filter-group-container">
|
|
287
|
+
<div class="dataset-ids-empty-message" role="status">
|
|
288
|
+
${(0,c.msg)(`Cannot retrieve dataset data fields`,{desc:`Error message when datasetIds is empty`})}
|
|
289
|
+
</div>
|
|
290
|
+
</div>
|
|
291
|
+
`;if(!this._internalFilterGroup||this._internalFilterGroup.filters.length===0)return o.html`
|
|
292
|
+
<div class="filter-group-container">
|
|
293
|
+
<luzmo-button
|
|
294
|
+
class="add-filter-button"
|
|
295
|
+
.size=${this.size}
|
|
296
|
+
treatment="outline"
|
|
297
|
+
?disabled=${this._isDatasetIdsEmpty}
|
|
298
|
+
@click=${()=>this._addFilter()}
|
|
299
|
+
>
|
|
300
|
+
<luzmo-icon slot="icon" .icon=${a.luzmoPlus} .size=${this._oneSizeSmaller}></luzmo-icon>
|
|
301
|
+
${(0,c.msg)(`Add filter`,{desc:`Add filter button label`})}
|
|
302
|
+
</luzmo-button>
|
|
303
|
+
</div>
|
|
304
|
+
`;let e=this._internalFilterGroup.filters.length>1;return o.html`
|
|
305
|
+
<div class="filter-group-container">
|
|
306
|
+
${this._renderGroup(this._internalFilterGroup)}
|
|
307
|
+
|
|
308
|
+
${e?o.html`
|
|
309
|
+
<div class="add-root-group-container">
|
|
310
|
+
<luzmo-button
|
|
311
|
+
class="add-group-button"
|
|
312
|
+
.size=${this.size}
|
|
313
|
+
treatment="outline"
|
|
314
|
+
?disabled=${this._isDatasetIdsEmpty}
|
|
315
|
+
@click=${this._addGroup}
|
|
316
|
+
>
|
|
317
|
+
<luzmo-icon slot="icon" .icon=${a.luzmoPlus} .size=${this._oneSizeSmaller}></luzmo-icon>
|
|
318
|
+
${(0,c.msg)(`Group`,{desc:`Add group button label`})}
|
|
319
|
+
</luzmo-button>
|
|
320
|
+
</div>
|
|
321
|
+
`:``}
|
|
322
|
+
</div>
|
|
323
|
+
`}};e.n([(0,s.property)({type:String,attribute:`api-url`,reflect:!0})],V.prototype,`apiUrl`,void 0),e.n([(0,s.property)({type:String,attribute:`auth-key`,reflect:!0})],V.prototype,`authKey`,void 0),e.n([(0,s.property)({type:String,attribute:`auth-token`,reflect:!0})],V.prototype,`authToken`,void 0),e.n([(0,s.property)({type:Number,attribute:`cache-time`,reflect:!0})],V.prototype,`cacheTime`,void 0),e.n([(0,s.property)({type:String,attribute:`content-language`,reflect:!0})],V.prototype,`contentLanguage`,void 0),e.n([(0,s.property)({type:String,attribute:`time-zone`,reflect:!0})],V.prototype,`timeZone`,void 0),e.n([(0,s.property)({type:Array,attribute:`dataset-ids`,reflect:!0})],V.prototype,`datasetIds`,void 0),e.n([(0,s.property)({type:Array,reflect:!1})],V.prototype,`filters`,void 0),e.n([(0,s.property)({type:Number,reflect:!0})],V.prototype,`debounce`,void 0),e.n([(0,s.state)()],V.prototype,`_internalFilterGroup`,void 0),V=e.n([(0,c.localized)()],V),customElements.get(`luzmo-filters`)||customElements.define(`luzmo-filters`,V),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return V}});
|