@luzmo/analytics-components-kit 1.0.8 → 1.0.9-beta.2
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 +6 -4
- package/components/ad-hoc-slot-content-BwcFfXCV.cjs +20 -0
- package/components/ad-hoc-slot-content-hSlT62VS.js +29 -0
- package/components/ai-chat/ai-chat-events.d.ts +139 -0
- package/components/ai-chat/ai-chat-request.d.ts +25 -0
- package/components/ai-chat/ai-chat.d.ts +347 -0
- package/components/ai-chat/ai-prompt-types.d.ts +133 -0
- package/components/ai-chat/empty-state/ai-chat-empty-state.d.ts +46 -0
- package/components/ai-chat/empty-state/index.d.ts +8 -0
- package/components/ai-chat/empty-state/types.d.ts +14 -0
- package/components/ai-chat/helpers/agent-config.d.ts +12 -0
- package/components/ai-chat/helpers/elicitation-template.d.ts +18 -0
- package/components/ai-chat/index.cjs +20 -0
- package/components/ai-chat/index.d.ts +24 -0
- package/components/ai-chat/index.js +22 -0
- package/components/ai-chat/session/ai-chat-session-controller.d.ts +60 -0
- package/components/ai-chat/session/ai-chat-session-types.d.ts +119 -0
- package/components/ai-chat/session/ai-chat-session.d.ts +119 -0
- package/components/ai-chat/session/index.d.ts +2 -0
- package/components/ai-chat/stream/chunk-extractors.d.ts +29 -0
- package/components/ai-chat/stream/index.d.ts +53 -0
- package/components/ai-chat/stream/progress.d.ts +3 -0
- package/components/ai-chat/stream/registry.d.ts +6 -0
- package/components/ai-chat/stream/stream-processor.d.ts +2 -0
- package/components/ai-chat/stream/transport.d.ts +26 -0
- package/components/ai-chat/stream/types.d.ts +59 -0
- package/components/ai-chat/types.d.ts +24 -0
- package/components/ai-chat-CVxHPPvM.js +4351 -0
- package/components/ai-chat-DEVIxsRP.cjs +337 -0
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +232 -0
- package/components/ai-interaction-textarea/index.cjs +20 -0
- package/components/ai-interaction-textarea/index.d.ts +10 -0
- package/components/ai-interaction-textarea/index.js +21 -0
- package/components/ai-interaction-textarea/types.d.ts +12 -0
- package/components/ai-interaction-textarea-D_Lw29_i.cjs +99 -0
- package/components/ai-interaction-textarea-i9SabsmQ.js +821 -0
- package/components/{area-chart-options.config-B94ERc30.js → area-chart-options.config-DJnPr93H.js} +1 -1
- package/components/{area-chart-positioning.config-Cbeon6-x.cjs → area-chart-positioning.config-B8xSL1XU.cjs} +1 -1
- package/components/{area-chart-positioning.config-BJK4Q4NL.js → area-chart-positioning.config-C0_dxknc.js} +1 -1
- package/components/{area-chart-slots.config-DdPO34_g.js → area-chart-slots.config-ClE-gYVY.js} +1 -1
- package/components/{bar-chart-options.config-B1C3t6uk.js → bar-chart-options.config-D1x5WPbL.js} +1 -1
- package/components/{bar-chart-positioning.config-B4UuSMIW.js → bar-chart-positioning.config-B4fazkYv.js} +1 -1
- package/components/{bar-chart-positioning.config-BnhZQUtb.cjs → bar-chart-positioning.config-B6A5m0ZR.cjs} +1 -1
- package/components/{bar-chart-slots.config-BnbZRLIr.js → bar-chart-slots.config-rMFwFprg.js} +1 -1
- package/components/{base-IE9Qxmub.js → base-BRTs2KqJ.js} +30 -30
- package/components/base-BWU343D_.cjs +20 -0
- package/components/{box-plot-options.config-sBfVzPTw.js → box-plot-options.config-CooBIc6N.js} +1 -1
- package/components/{box-plot-positioning.config-CYk5koLu.js → box-plot-positioning.config-BI9F_JjL.js} +1 -1
- package/components/{box-plot-positioning.config-DsldCFWm.cjs → box-plot-positioning.config-DVXXjP8U.cjs} +1 -1
- package/components/{box-plot-slots.config-D6F2R2dw.js → box-plot-slots.config-DS2UIfRF.js} +1 -1
- package/components/{bubble-chart-options.config-DKeBF5A0.js → bubble-chart-options.config-B6aLA_1d.js} +1 -1
- package/components/{bubble-chart-positioning.config-BV-T_2cy.cjs → bubble-chart-positioning.config-C0tGI4fC.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-BSDmuPwq.js → bubble-chart-positioning.config-DXhama4z.js} +1 -1
- package/components/{bubble-chart-slots.config-BJdtdpS0.js → bubble-chart-slots.config-2qy2RqaU.js} +1 -1
- package/components/{bullet-chart-options.config-DdTBWTAF.js → bullet-chart-options.config-CBmbmhzI.js} +1 -1
- package/components/{bullet-chart-positioning.config-B3GeLs8o.js → bullet-chart-positioning.config-Czlw32Ii.js} +1 -1
- package/components/{bullet-chart-positioning.config-BoqQq4g_.cjs → bullet-chart-positioning.config-Dmb_yizO.cjs} +1 -1
- package/components/{bullet-chart-slots.config-NeUTKgYI.js → bullet-chart-slots.config-BaMmwIH0.js} +1 -1
- package/components/{choropleth-map-options.config-nOE0NWaD.js → choropleth-map-options.config-DWWydGJ3.js} +1 -1
- package/components/{choropleth-map-positioning.config-6OT0sZa5.js → choropleth-map-positioning.config-BWJmEGy6.js} +1 -1
- package/components/{choropleth-map-positioning.config-C_I3wf8H.cjs → choropleth-map-positioning.config-JIj9p6-n.cjs} +1 -1
- package/components/{choropleth-map-slots.config-BbBwTeuw.js → choropleth-map-slots.config-DqOi1kCn.js} +1 -1
- package/components/{circle-pack-chart-options.config-CgE8vGP9.js → circle-pack-chart-options.config-D2RCikyA.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-D7Oke8BW.cjs → circle-pack-chart-positioning.config-D3Ogj0P9.cjs} +1 -1
- package/components/{circle-pack-chart-positioning.config-BuuhKB85.js → circle-pack-chart-positioning.config-PhYH_yh8.js} +1 -1
- package/components/{circle-pack-chart-slots.config-CJFjalBn.js → circle-pack-chart-slots.config-B7_1p86m.js} +1 -1
- package/components/{circular-gauge-options.config-DtNYelhq.js → circular-gauge-options.config-syWQJHKT.js} +1 -1
- package/components/{circular-gauge-positioning.config-DlWvKl0e.js → circular-gauge-positioning.config-COSdEO1U.js} +1 -1
- package/components/{circular-gauge-positioning.config-B_IJzIBn.cjs → circular-gauge-positioning.config-DxfZmoEP.cjs} +1 -1
- package/components/{circular-gauge-slots.config-DAKsa5Hq.js → circular-gauge-slots.config-BxjCP1ao.js} +1 -1
- package/components/{column-chart-options.config-C2GGiHOI.js → column-chart-options.config-B2LIl9lL.js} +1 -1
- package/components/{column-chart-positioning.config-DngsP5So.cjs → column-chart-positioning.config-6OVsL5vU.cjs} +1 -1
- package/components/{column-chart-positioning.config-BLacEiY5.js → column-chart-positioning.config-BRYZk4cF.js} +1 -1
- package/components/{column-chart-slots.config-Bpr-WaCi.js → column-chart-slots.config-D6MBTcj4.js} +1 -1
- package/components/{combination-chart-options.config-LddX4naq.js → combination-chart-options.config-0ATFph8S.js} +1 -1
- package/components/{combination-chart-positioning.config-BVV0Bq-d.cjs → combination-chart-positioning.config-4qgeM8BL.cjs} +1 -1
- package/components/{combination-chart-positioning.config-DxnmzV6O.js → combination-chart-positioning.config-CTj23r8f.js} +1 -1
- package/components/{combination-chart-slots.config-u-QLoQQ-.js → combination-chart-slots.config-dYT9lz8M.js} +1 -1
- package/components/{conditional-number-options.config-qdX9T4zu.js → conditional-number-options.config-Bv2xONtI.js} +1 -1
- package/components/{conditional-number-positioning.config-YEo_yFBu.js → conditional-number-positioning.config-BUdWeVNm.js} +1 -1
- package/components/{conditional-number-positioning.config-DfitbPT6.cjs → conditional-number-positioning.config-Dg67t4VA.cjs} +1 -1
- package/components/{conditional-number-slots.config-CiLUXRSe.js → conditional-number-slots.config-DtYkqtN8.js} +1 -1
- package/components/convert-datasets-to-data-fields-B13rl1an.cjs +20 -0
- package/components/convert-datasets-to-data-fields-PmQzeVLG.js +68 -0
- package/components/create-lazy-loader-BO_oTDF5.js +31 -0
- package/components/create-lazy-loader-DYPgQh0L.cjs +20 -0
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.d.ts +1 -0
- package/components/data-field/index.js +1 -8
- package/components/data-field-CwC5VH16.js +122 -0
- package/components/data-field-DHpgI_wv.cjs +54 -0
- package/components/data-field-level/data-field-level.d.ts +40 -0
- package/components/data-field-level/helpers/generate-preview.d.ts +9 -0
- package/components/data-field-level/index.cjs +20 -0
- package/components/data-field-level/index.d.ts +8 -0
- package/components/data-field-level/index.js +21 -0
- package/components/data-field-level-8-eOBdl6.cjs +55 -0
- package/components/{data-field-yTJb-R63.js → data-field-level-Ben_W9pd.js} +49 -142
- package/components/data-field-panel/index.cjs +1 -1
- package/components/data-field-panel/index.d.ts +1 -0
- package/components/data-field-panel/index.js +1 -8
- package/components/data-field-panel-CiuTVMXF.cjs +87 -0
- package/components/{data-field-panel-BWBr1Fog.js → data-field-panel-DppKRagT.js} +7 -5
- package/components/data-fields-select/data-fields-select.d.ts +137 -0
- package/components/data-fields-select/index.cjs +20 -0
- package/components/data-fields-select/index.d.ts +9 -0
- package/components/data-fields-select/index.js +21 -0
- package/components/data-fields-select/types.d.ts +4 -0
- package/components/data-fields-select-DjDeBEj-.cjs +43 -0
- package/components/{data-fields-select-Bb1HXwlO.js → data-fields-select-HwMkrPAn.js} +18 -7
- package/components/dataset-icon/dataset-icon.d.ts +45 -0
- package/components/dataset-icon/index.cjs +20 -0
- package/components/dataset-icon/index.d.ts +8 -0
- package/components/{en-CSPDwq2y.cjs → dataset-icon/index.js} +2 -1
- package/components/dataset-icon/types.d.ts +11 -0
- package/components/dataset-icon-BEq1MNml.js +126 -0
- package/components/dataset-icon-tec1Xulw.cjs +64 -0
- package/components/dataset-selector-list/dataset-selector-list.d.ts +106 -0
- package/components/dataset-selector-list/index.cjs +20 -0
- package/components/dataset-selector-list/index.d.ts +8 -0
- package/components/dataset-selector-list/index.js +21 -0
- package/components/dataset-selector-list-BL2uKzCy.cjs +75 -0
- package/components/dataset-selector-list-BWavenTF.js +324 -0
- package/components/dataset-selector-row/dataset-selector-row.d.ts +135 -0
- package/components/dataset-selector-row/index.cjs +20 -0
- package/components/dataset-selector-row/index.d.ts +9 -0
- package/components/dataset-selector-row/index.js +21 -0
- package/components/dataset-selector-row-BP4Txybx.cjs +102 -0
- package/components/dataset-selector-row-C_O6h4Ir.js +428 -0
- package/components/{date-comparison-filter-options.config-BSzzAJPM.js → date-comparison-filter-options.config-DgLx-m3L.js} +1 -1
- package/components/{date-comparison-filter-slots.config-Cvze969w.js → date-comparison-filter-slots.config-BKZ13uzB.js} +1 -1
- package/components/{date-filter-options.config-C6VvDjd8.js → date-filter-options.config-Cbiy0QKd.js} +1 -1
- package/components/{date-filter-slots.config-Y8hmQh0S.js → date-filter-slots.config-SzWky1y7.js} +1 -1
- package/components/{de-C5CMIy08.js → de-BhKtDR6p.js} +34 -0
- package/components/de-DXFLsh4N.cjs +20 -0
- package/components/decompose-numeric-format-DGJua3rU.cjs +20 -0
- package/components/decompose-numeric-format-DS0j2wa1.js +36 -0
- package/components/decorate-DCJt-2rt.cjs +20 -0
- package/components/{localized-mixin-DhiGdPMj.js → decorate-DyMgX_Uh.js} +2 -26
- package/components/default-acceptable-data-field-types-DFOFWWnT.js +53 -0
- package/components/default-acceptable-data-field-types-fPsz64ka.cjs +20 -0
- package/components/display-settings/display-settings.d.ts +117 -0
- package/components/display-settings/index.cjs +20 -0
- package/components/display-settings/index.d.ts +8 -0
- package/components/display-settings/index.js +21 -0
- package/components/display-settings/types.d.ts +9 -0
- package/components/display-settings-Dmvi7XT-.cjs +142 -0
- package/components/display-settings-V5AltVPN.js +316 -0
- package/components/display-settings-binning/display-settings-binning.d.ts +32 -0
- package/components/display-settings-binning/index.cjs +20 -0
- package/components/display-settings-binning/index.d.ts +8 -0
- package/components/display-settings-binning/index.js +21 -0
- package/components/{display-settings-binning-CaE87u3h.js → display-settings-binning-BNofVnZE.js} +18 -19
- package/components/{display-settings-binning-CjvB12ds.cjs → display-settings-binning-C1Fvc8tj.cjs} +2 -2
- package/components/display-settings-datetime/display-settings-datetime.d.ts +86 -0
- package/components/display-settings-datetime/index.cjs +20 -0
- package/components/display-settings-datetime/index.d.ts +8 -0
- package/components/display-settings-datetime/index.js +21 -0
- package/components/{display-settings-datetime-5rq55OAn.js → display-settings-datetime-CUR1w0k5.js} +70 -71
- package/components/{display-settings-datetime-B23w7aH4.cjs → display-settings-datetime-OiFwicTh.cjs} +9 -9
- package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +29 -0
- package/components/display-settings-grand-totals/index.cjs +20 -0
- package/components/display-settings-grand-totals/index.d.ts +8 -0
- package/components/display-settings-grand-totals/index.js +21 -0
- package/components/display-settings-grand-totals-Bi1OcC7p.cjs +44 -0
- package/components/{display-settings-grand-totals-DnKvI34n.js → display-settings-grand-totals-CgzHbK1K.js} +18 -19
- package/components/display-settings-numeric/display-settings-numeric.d.ts +82 -0
- package/components/display-settings-numeric/helpers/constants.d.ts +19 -0
- package/components/display-settings-numeric/index.cjs +20 -0
- package/components/display-settings-numeric/index.d.ts +8 -0
- package/components/display-settings-numeric/index.js +21 -0
- package/components/display-settings-numeric-BQ_vQrnj.cjs +190 -0
- package/components/{display-settings-numeric-B8MCRz-V.js → display-settings-numeric-CUWkiQtR.js} +80 -81
- package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +76 -0
- package/components/display-settings-period-over-period/helpers/constants.d.ts +44 -0
- package/components/display-settings-period-over-period/index.cjs +20 -0
- package/components/display-settings-period-over-period/index.d.ts +8 -0
- package/components/{en-GB-CJR66Ci_.cjs → display-settings-period-over-period/index.js} +2 -1
- package/components/display-settings-period-over-period-Br08rz7r.cjs +227 -0
- package/components/{display-settings-period-over-period-W3dPK8LR.js → display-settings-period-over-period-C7cfSyIL.js} +86 -86
- package/components/{donut-chart-options.config-CPHgS1Wi.js → donut-chart-options.config-C8wpZzyJ.js} +1 -1
- package/components/{donut-chart-positioning.config-QOZXaJmt.cjs → donut-chart-positioning.config-B4JdERSl.cjs} +1 -1
- package/components/{donut-chart-positioning.config-fGckMun2.js → donut-chart-positioning.config-CWGYZUec.js} +1 -1
- package/components/{donut-chart-slots.config-DilGk7ju.js → donut-chart-slots.config-fGqtoKZi.js} +1 -1
- package/components/{dropdown-filter-options.config-DFJKns3l.js → dropdown-filter-options.config-DkiapYtc.js} +1 -1
- package/components/{dropdown-filter-slots.config-7heZtoEY.js → dropdown-filter-slots.config-DPcT6v-9.js} +1 -1
- package/components/{en-DdS5q1ZT.js → en-CcLhGxIh.js} +1 -1
- package/components/{en-GB-Cn0xDC0K.js → en-GB-DzkdeUQh.js} +1 -1
- package/components/en-GB-uxY5qmIM.cjs +20 -0
- package/components/{en-US-DdS5q1ZT.js → en-US-CcLhGxIh.js} +1 -1
- package/components/{en-US-CSPDwq2y.cjs → en-US-q_Ruzags.cjs} +1 -1
- package/components/en-q_Ruzags.cjs +20 -0
- package/components/es-DK-49nGv.cjs +20 -0
- package/components/{es-BCur0-77.js → es-DUENN-m1.js} +34 -0
- package/components/{evolution-number-options.config-DT7iGQA8.js → evolution-number-options.config-Ca9ABNVM.js} +1 -1
- package/components/{evolution-number-positioning.config-B7lBArog.cjs → evolution-number-positioning.config-CqQeAPbN.cjs} +1 -1
- package/components/{evolution-number-positioning.config-CVIysE4H.js → evolution-number-positioning.config-DZ7SVvue.js} +1 -1
- package/components/{evolution-number-slots.config-noZzIHkT.js → evolution-number-slots.config-CKawNqUS.js} +1 -1
- package/components/filter-expression-picker/filter-expression-picker.d.ts +77 -0
- package/components/filter-expression-picker/index.cjs +20 -0
- package/components/filter-expression-picker/index.d.ts +7 -0
- package/components/filter-expression-picker/index.js +21 -0
- package/components/filter-expression-picker-3xcrAACt.js +434 -0
- package/components/filter-expression-picker-BrtXMSBv.cjs +40 -0
- package/components/filter-item/filter-item.d.ts +142 -0
- package/components/filter-item/index.cjs +20 -0
- package/components/filter-item/index.d.ts +8 -0
- package/components/filter-item/index.js +21 -0
- package/components/filter-item-CH5sjhJy.js +793 -0
- package/components/filter-item-C_h4rbuL.cjs +111 -0
- package/components/filter-parameter-picker/filter-parameter-picker.d.ts +91 -0
- package/components/filter-parameter-picker/filter-parameter-picker.helpers.d.ts +8 -0
- package/components/filter-parameter-picker/index.cjs +20 -0
- package/components/filter-parameter-picker/index.d.ts +9 -0
- package/components/filter-parameter-picker/index.js +21 -0
- package/components/filter-parameter-picker/types.d.ts +4 -0
- package/components/filter-parameter-picker-CB3uIoZ2.js +372 -0
- package/components/filter-parameter-picker-DJKHZxlT.cjs +124 -0
- package/components/filter-value-picker/filter-value-picker.d.ts +72 -0
- package/components/filter-value-picker/index.cjs +20 -0
- package/components/filter-value-picker/index.d.ts +7 -0
- package/components/filter-value-picker/index.js +21 -0
- package/components/filter-value-picker-CW9vKpn1.cjs +69 -0
- package/components/filter-value-picker-DeO855hf.js +170 -0
- package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +51 -0
- package/components/filter-value-picker-datetime/index.cjs +20 -0
- package/components/filter-value-picker-datetime/index.d.ts +7 -0
- package/components/filter-value-picker-datetime/index.js +21 -0
- package/components/filter-value-picker-datetime-B0lLveRY.js +160 -0
- package/components/filter-value-picker-datetime-DapMI9Jr.cjs +51 -0
- package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +105 -0
- package/components/filter-value-picker-hierarchy/index.cjs +20 -0
- package/components/filter-value-picker-hierarchy/index.d.ts +7 -0
- package/components/filter-value-picker-hierarchy/index.js +21 -0
- package/components/filter-value-picker-hierarchy-B2xSmjFz.js +316 -0
- package/components/filter-value-picker-hierarchy-C9mJ8PH7.cjs +54 -0
- package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +89 -0
- package/components/filter-value-picker-numeric/index.cjs +20 -0
- package/components/filter-value-picker-numeric/index.d.ts +7 -0
- package/components/filter-value-picker-numeric/index.js +21 -0
- package/components/filter-value-picker-numeric-CayroCHe.js +237 -0
- package/components/filter-value-picker-numeric-DE5h7dZN.cjs +54 -0
- package/components/filters/filters.d.ts +62 -2
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.d.ts +2 -1
- package/components/filters/index.js +2 -9
- package/components/filters/types.d.ts +2 -0
- package/components/filters-CGqIDlPK.cjs +199 -0
- package/components/filters-D5oua2IU.js +927 -0
- package/components/formatter-BeXmurVe.cjs +20 -0
- package/components/{period-over-period-condition.const-IOVIrgKJ.js → formatter-Cq5dFCyU.js} +44 -234
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +1 -8
- package/components/{formula-BFvxm8kj.cjs → formula-8YhND5Y7.cjs} +13 -13
- package/components/{formula-CdAkO1za.js → formula-B4lrmE5g.js} +16 -14
- package/components/formula-codemirror/formula-codemirror.d.ts +79 -0
- package/components/formula-codemirror/index.d.ts +7 -0
- package/components/formula-codemirror/pills/formula-aggregation/formula-aggregation.d.ts +125 -0
- package/components/formula-codemirror/pills/formula-aggregation/index.d.ts +7 -0
- package/components/formula-codemirror/pills/formula-empty-argument-pill/formula-empty-argument-pill.d.ts +28 -0
- package/components/formula-codemirror/pills/formula-empty-argument-pill/index.d.ts +7 -0
- package/components/formula-codemirror/pills/formula-include-exclude-panel.d.ts +38 -0
- package/components/formula-codemirror-CBvQJGHq.cjs +215 -0
- package/components/{formula-codemirror-jVC8mjQ3.js → formula-codemirror-CVlF_Qyh.js} +23 -20
- package/components/formula-display-store-BJvPYYsO.cjs +20 -0
- package/components/{formula-display-store-CLAt_fik.js → formula-display-store-D9MWhreP.js} +239 -274
- package/components/formula-draggable-field/formula-draggable-field.d.ts +53 -0
- package/components/formula-draggable-field/index.d.ts +8 -0
- package/components/formula-draggable-field/types.d.ts +24 -0
- package/components/formula-editor/index.cjs +1 -1
- package/components/formula-editor/index.d.ts +1 -0
- package/components/formula-editor/index.js +4 -10
- package/components/{formula-editor-Bd9F-xdZ.js → formula-editor-BGT-QcuH.js} +148 -352
- package/components/formula-editor-De9Zj-9c.cjs +224 -0
- package/components/formula-field/formula-field.d.ts +20 -0
- package/components/formula-field/index.cjs +20 -0
- package/components/formula-field/index.d.ts +7 -0
- package/components/formula-field/index.js +21 -0
- package/components/formula-field--gNwmTRk.cjs +20 -0
- package/components/formula-field-CQcnyXOD.js +41 -0
- package/components/formula-input-base-BdKh5O_E.js +236 -0
- package/components/formula-input-base-CZih19kC.cjs +49 -0
- package/components/{fr-BnECl1nx.js → fr-CePmGBUH.js} +34 -0
- package/components/fr-uE3fb3kc.cjs +20 -0
- package/components/{funnel-chart-options.config-D21WdHBI.js → funnel-chart-options.config-CygQsQVD.js} +1 -1
- package/components/{funnel-chart-positioning.config-BGi7ixet.js → funnel-chart-positioning.config-B6I8z0_N.js} +1 -1
- package/components/{funnel-chart-positioning.config-zEqgz9Wz.cjs → funnel-chart-positioning.config-BhK0EStG.cjs} +1 -1
- package/components/{funnel-chart-slots.config-BWszdEe8.js → funnel-chart-slots.config-CfnSH4Ay.js} +1 -1
- package/components/{get-css-variable-B8sJUuig.cjs → get-css-variable-CBXsAxR6.cjs} +1 -1
- package/components/{get-css-variable-r1spgqX0.js → get-css-variable-DYnldi15.js} +1 -1
- package/components/get-dataset-name-DLjeChNS.js +32 -0
- package/components/get-dataset-name-mGNEfkAv.cjs +20 -0
- package/components/groupings-C1WNuUBe.js +52 -0
- package/components/groupings-CvXvU4Fr.cjs +20 -0
- package/components/{heat-map-options.config-DkuYkbWu.js → heat-map-options.config-X96sw-BV.js} +1 -1
- package/components/{heat-map-positioning.config-3dxU6qwG.cjs → heat-map-positioning.config-B9Njs88T.cjs} +1 -1
- package/components/{heat-map-positioning.config-CK2DBngE.js → heat-map-positioning.config-DAAt2hIR.js} +1 -1
- package/components/{heat-map-slots.config-Cwun49Qb.js → heat-map-slots.config-D2ypExJQ.js} +1 -1
- package/components/{heat-table-options.config-BJP1jVB8.js → heat-table-options.config-D6dA9J97.js} +1 -1
- package/components/{heat-table-positioning.config-CbscS7w1.cjs → heat-table-positioning.config-Cn7Ouv5g.cjs} +1 -1
- package/components/{heat-table-positioning.config-C55D814C.js → heat-table-positioning.config-D6ChanEH.js} +1 -1
- package/components/{heat-table-slots.config-nGB_B2mh.js → heat-table-slots.config-B1iOn6ay.js} +1 -1
- package/components/{hexbin-map-options.config-Bqp3u2bH.js → hexbin-map-options.config-FK9DrXGD.js} +1 -1
- package/components/{hexbin-map-positioning.config-CHecaD9p.cjs → hexbin-map-positioning.config-BqfRSZbU.cjs} +1 -1
- package/components/{hexbin-map-positioning.config-9nnyZGzx.js → hexbin-map-positioning.config-CNId41q1.js} +1 -1
- package/components/{hexbin-map-slots.config-BK-ftozd.js → hexbin-map-slots.config-CC1xZINm.js} +1 -1
- package/components/{image-options.config-Cz55iN7J.js → image-options.config-DxF0RSUF.js} +1 -1
- package/components/{image-slots.config-kvHutBFK.js → image-slots.config-Ba8NXeCH.js} +1 -1
- package/components/index.cjs +1 -840
- package/components/index.js +68 -6790
- package/components/interactive-viz-item/helpers/chart-helpers.d.ts +7 -0
- package/components/interactive-viz-item/index.cjs +20 -0
- package/components/interactive-viz-item/index.d.ts +10 -0
- package/components/interactive-viz-item/index.js +21 -0
- package/components/interactive-viz-item/interactive-viz-item.d.ts +97 -0
- package/components/interactive-viz-item/load-config-panel.d.ts +2 -0
- package/components/interactive-viz-item/types.d.ts +117 -0
- package/components/interactive-viz-item-CzIT8K3I.js +723 -0
- package/components/interactive-viz-item-DUyE1QEJ.cjs +249 -0
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +1 -8
- package/components/{item-grid-D4xYhMOD.js → item-grid-BaW6EZ2a.js} +26 -24
- package/components/{item-grid-C2ZvM04g.cjs → item-grid-BcgBGxIq.cjs} +22 -22
- package/components/item-menu/item-list/item-list.d.ts +37 -0
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.js +1 -8
- package/components/item-option-8PQMxg8v.cjs +269 -0
- package/components/item-option-action-button-group/index.cjs +1 -1
- package/components/item-option-action-button-group/index.js +1 -8
- package/components/{item-option-action-button-group-D_g6aoYd.js → item-option-action-button-group-BcZTtikv.js} +3 -2
- package/components/item-option-action-button-group-zZp49Gbz.cjs +53 -0
- package/components/item-option-base/item-option-base.d.ts +23 -0
- package/components/{item-option-base-CxQhI83u.js → item-option-base-DJ9FLqmu.js} +2 -2
- package/components/item-option-base-K2pn6CrX.cjs +56 -0
- package/components/item-option-color-palette-picker/index.cjs +1 -1
- package/components/item-option-color-palette-picker/index.js +1 -8
- package/components/item-option-color-palette-picker-B9JlHGA8.cjs +40 -0
- package/components/{item-option-color-palette-picker-CRDFqhWx.js → item-option-color-palette-picker-DJX3MxcT.js} +3 -2
- package/components/item-option-color-picker/index.cjs +1 -1
- package/components/item-option-color-picker/index.js +1 -8
- package/components/{item-option-color-picker-BlkpWjQh.js → item-option-color-picker-Dgz-VK03.js} +3 -2
- package/components/{item-option-color-picker-BJgpBbDp.cjs → item-option-color-picker-ayYko5QB.cjs} +2 -2
- package/components/item-option-color-range/index.cjs +1 -1
- package/components/item-option-color-range/index.js +1 -8
- package/components/item-option-color-range-Cc8thG33.cjs +98 -0
- package/components/{item-option-color-range-3Wp-Ywz6.js → item-option-color-range-DibSfro5.js} +3 -2
- package/components/{item-option-28BU_oaD.js → item-option-em2Lp2zJ.js} +54 -53
- package/components/item-option-guidelines/index.cjs +1 -1
- package/components/item-option-guidelines/index.js +1 -8
- package/components/{item-option-guidelines-CQ_yb7Ar.js → item-option-guidelines-DXUcdAel.js} +5 -3
- package/components/item-option-guidelines-h5-NrAYD.cjs +135 -0
- package/components/item-option-multi-language-field/index.cjs +1 -1
- package/components/item-option-multi-language-field/index.js +1 -8
- package/components/{item-option-multi-language-field-BApbe3pp.cjs → item-option-multi-language-field-BlnTZCFJ.cjs} +2 -2
- package/components/{item-option-multi-language-field-aLIpQWiQ.js → item-option-multi-language-field-Bqo9OeK4.js} +3 -2
- package/components/item-option-number-field/index.cjs +1 -1
- package/components/item-option-number-field/index.js +1 -8
- package/components/{item-option-number-field-Bv5eGoxB.js → item-option-number-field-BZHhCuuj.js} +3 -2
- package/components/{item-option-number-field-B72ZYOAX.cjs → item-option-number-field-D9vv1Q-O.cjs} +2 -2
- package/components/item-option-panel/index.cjs +1 -1
- package/components/item-option-panel/index.js +1 -8
- package/components/{item-option-panel-A8Jxzwml.cjs → item-option-panel-Bo3sC4u5.cjs} +2 -2
- package/components/{item-option-panel-kRH7GbzA.js → item-option-panel-DvgDiRPH.js} +5 -4
- package/components/item-option-picker/index.cjs +1 -1
- package/components/item-option-picker/index.js +1 -8
- package/components/{item-option-picker-DOFJ1CnI.cjs → item-option-picker-D5xhm36O.cjs} +2 -2
- package/components/{item-option-picker-BuUtW6gD.js → item-option-picker-cy0KK-ev.js} +3 -2
- package/components/item-option-position-picker/index.cjs +1 -1
- package/components/item-option-position-picker/index.js +1 -8
- package/components/item-option-position-picker-BJ35DWBL.cjs +32 -0
- package/components/{item-option-position-picker-mf3JQu5q.js → item-option-position-picker-BbYP1Jnh.js} +3 -2
- package/components/item-option-positions-number-field/index.cjs +1 -1
- package/components/item-option-positions-number-field/index.js +1 -8
- package/components/{item-option-positions-number-field-BIBWpagB.js → item-option-positions-number-field-DO4z_aKu.js} +3 -2
- package/components/item-option-positions-number-field-DzYQoSpk.cjs +49 -0
- package/components/item-option-radio-button-group/index.cjs +1 -1
- package/components/item-option-radio-button-group/index.js +1 -8
- package/components/{item-option-radio-button-group-B2HYZguB.cjs → item-option-radio-button-group-CF1gttvP.cjs} +2 -2
- package/components/{item-option-radio-button-group-CFnfadK2.js → item-option-radio-button-group-DX7wCv8J.js} +3 -2
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.js +1 -8
- package/components/item-option-slider-DeGmGyZE.cjs +33 -0
- package/components/{item-option-slider-CH1l0Ena.js → item-option-slider-z1CwX5mE.js} +3 -2
- package/components/item-option-switch/index.cjs +1 -1
- package/components/item-option-switch/index.js +1 -8
- package/components/{item-option-switch-hUFRE9MC.cjs → item-option-switch-D3jq7jIt.cjs} +2 -2
- package/components/{item-option-switch-rqu2ePVU.js → item-option-switch-D41KguKr.js} +3 -2
- package/components/item-option-text-field/index.cjs +1 -1
- package/components/item-option-text-field/index.js +1 -8
- package/components/{item-option-text-field-CBFMmuK2.js → item-option-text-field-CnFcApMz.js} +3 -2
- package/components/{item-option-text-field-C6CocZ5q.cjs → item-option-text-field-cXy2sx5N.cjs} +2 -2
- 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 +2 -0
- package/components/item-slot-drop/index.js +1 -8
- package/components/item-slot-drop-CtEMLkmt.cjs +91 -0
- package/components/{item-slot-drop-DDGclwbP.js → item-slot-drop-YAKpKb2-.js} +27 -21
- package/components/item-slot-drop-panel/index.cjs +1 -1
- package/components/item-slot-drop-panel/index.js +1 -8
- package/components/{item-slot-drop-panel-Cj6vbgJl.js → item-slot-drop-panel-JZtBKPJu.js} +50 -48
- package/components/item-slot-drop-panel-aom0ugTz.cjs +57 -0
- package/components/item-slot-picker/index.cjs +1 -1
- package/components/item-slot-picker/index.js +1 -8
- package/components/{item-slot-picker-CjQH3MU-.js → item-slot-picker-D-FvHowO.js} +45 -39
- package/components/item-slot-picker-D8h7QXGD.cjs +174 -0
- package/components/item-slot-picker-panel/index.cjs +1 -1
- package/components/item-slot-picker-panel/index.js +1 -8
- package/components/item-slot-picker-panel-C98lpd4g.cjs +81 -0
- package/components/{item-slot-picker-panel-7IFk5QFC.js → item-slot-picker-panel-g4JDw1M_.js} +17 -15
- package/components/item-slots-configs.js +45 -45
- package/components/{line-chart-options.config-D8gRtfj3.js → line-chart-options.config-C3_RnROS.js} +1 -1
- package/components/{line-chart-positioning.config-DuXn1WD-.cjs → line-chart-positioning.config-BZUWqKWz.cjs} +1 -1
- package/components/{line-chart-positioning.config-D5WVvIZT.js → line-chart-positioning.config-C3VzNcws.js} +1 -1
- package/components/{line-chart-slots.config-C6LEwEwh.js → line-chart-slots.config-CA-I6B6o.js} +1 -1
- package/components/load-data-fields-for-datasets-B3XcFFfg.js +42 -0
- package/components/load-data-fields-for-datasets-rL24A68g.cjs +20 -0
- package/components/localized-mixin-DaLXe5J9.js +45 -0
- package/components/localized-mixin-DiUJOd06.cjs +20 -0
- package/components/{marker-map-options.config-BE8GnY_T.js → marker-map-options.config-OMdgbAc4.js} +1 -1
- package/components/{marker-map-positioning.config-D2L7cvCP.js → marker-map-positioning.config-BlvgG6yX.js} +1 -1
- package/components/{marker-map-positioning.config-DfN39a-Q.cjs → marker-map-positioning.config-CGF74mJI.cjs} +1 -1
- package/components/{marker-map-slots.config-Cyk-QFPT.js → marker-map-slots.config-CcGNgr1_.js} +1 -1
- package/components/{nl-h9vVAk2e.js → nl-BaZM3WoR.js} +34 -0
- package/components/nl-BoEhzeIh.cjs +20 -0
- package/components/{ohlc-chart-options.config-xgegn34C.js → ohlc-chart-options.config-CWRI5bXI.js} +1 -1
- package/components/{ohlc-chart-positioning.config-DsBuB0VU.cjs → ohlc-chart-positioning.config-B__cD7Wo.cjs} +1 -1
- package/components/{ohlc-chart-positioning.config-C53dCwaT.js → ohlc-chart-positioning.config-BdbEgiry.js} +1 -1
- package/components/{ohlc-chart-slots.config-CQFi8BIT.js → ohlc-chart-slots.config-Pv0xst-Y.js} +1 -1
- package/components/{parallel-coordinates-plot-options.config-BUQLHO1k.js → parallel-coordinates-plot-options.config-DbuNgevO.js} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-aiFzLnnh.cjs → parallel-coordinates-plot-positioning.config-BqdmUJLk.cjs} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-DhoVstsb.js → parallel-coordinates-plot-positioning.config-DNu5qhNR.js} +1 -1
- package/components/{parallel-coordinates-plot-slots.config-D5o-5y_j.js → parallel-coordinates-plot-slots.config-GvYC-RXK.js} +1 -1
- package/components/period-over-period-condition.const-BZ7j5Z5t.js +29 -0
- package/components/period-over-period-condition.const-C1NZ9Bkp.cjs +20 -0
- package/components/{pivot-table-options.config-DW9UDipI.js → pivot-table-options.config-CTz4bcGJ.js} +1 -1
- package/components/{pivot-table-positioning.config-Cnai84AH.js → pivot-table-positioning.config-CUfnXIHj.js} +1 -1
- package/components/{pivot-table-positioning.config-Bq9BoQWM.cjs → pivot-table-positioning.config-DDpgWCZ7.cjs} +1 -1
- package/components/{pivot-table-slots.config-Cl5z3IQo.js → pivot-table-slots.config-BAW0U3nh.js} +1 -1
- package/components/{pragmatic-element-adapter-C_7HSvGV.js → pragmatic-element-adapter-D0LRKx5U.js} +75 -74
- package/components/{pragmatic-element-adapter-DPWYJiW9.cjs → pragmatic-element-adapter-DdyH32ix.cjs} +4 -4
- package/components/{pyramid-chart-options.config-Cbg351Yy.js → pyramid-chart-options.config-C7btzuZj.js} +1 -1
- package/components/{pyramid-chart-positioning.config-D5AKNCPb.cjs → pyramid-chart-positioning.config-B2TxqefZ.cjs} +1 -1
- package/components/{pyramid-chart-positioning.config-BeJ5R_Ln.js → pyramid-chart-positioning.config-CZBcrHEG.js} +1 -1
- package/components/{pyramid-chart-slots.config-DNzq2hMx.js → pyramid-chart-slots.config-CsMMyhV3.js} +1 -1
- package/components/{radar-chart-options.config-DrNyOkHq.js → radar-chart-options.config-CtA6MpUp.js} +1 -1
- package/components/{radar-chart-positioning.config-BEIwrzhb.cjs → radar-chart-positioning.config-ddvHAHJF.cjs} +1 -1
- package/components/{radar-chart-positioning.config-DsfUBq4B.js → radar-chart-positioning.config-j1WOeFnM.js} +1 -1
- package/components/{radar-chart-slots.config-CXgfvAkt.js → radar-chart-slots.config-8Kf_WAFi.js} +1 -1
- package/components/{regular-table-options.config-CweBtAvm.js → regular-table-options.config-BRmS77t-.js} +1 -1
- package/components/{regular-table-slots.config-DCkw4Xkq.js → regular-table-slots.config-r-N9A-qA.js} +1 -1
- package/components/{route-map-options.config-DXHqb8Ve.js → route-map-options.config-C65J81_7.js} +1 -1
- package/components/{route-map-positioning.config-CuiRWzbs.js → route-map-positioning.config-ChBYybF1.js} +1 -1
- package/components/{route-map-positioning.config-4Wyvj5OH.cjs → route-map-positioning.config-xBhhxtYu.cjs} +1 -1
- package/components/{route-map-slots.config-DJ76FOsJ.js → route-map-slots.config-DMII2UuP.js} +1 -1
- package/components/{sankey-diagram-options.config-1lSECht4.js → sankey-diagram-options.config-nQDCRhKs.js} +1 -1
- package/components/{sankey-diagram-positioning.config-DtN7dARd.js → sankey-diagram-positioning.config-CudMit_S.js} +1 -1
- package/components/{sankey-diagram-positioning.config-CZ-zVCQo.cjs → sankey-diagram-positioning.config-tZu-dDV-.cjs} +1 -1
- package/components/{sankey-diagram-slots.config-BCc8P4j0.js → sankey-diagram-slots.config-DmWIGut0.js} +1 -1
- package/components/{scatter-plot-options.config-9zL4v24E.js → scatter-plot-options.config-BplrME7w.js} +1 -1
- package/components/{scatter-plot-positioning.config-BXrzdLIc.js → scatter-plot-positioning.config-BoJEGmgK.js} +1 -1
- package/components/{scatter-plot-positioning.config-CfAf_FUW.cjs → scatter-plot-positioning.config-DQOtIhJi.cjs} +1 -1
- package/components/{scatter-plot-slots.config-BMTdhTZG.js → scatter-plot-slots.config-B7wQVEEj.js} +1 -1
- package/components/{search-filter-options.config-B_qQjr68.js → search-filter-options.config-yAz6IIto.js} +1 -1
- package/components/{search-filter-slots.config-qCILSYzs.js → search-filter-slots.config-D8-V0BT5.js} +1 -1
- package/components/{set-locale-B-GvqA1H.cjs → set-locale-Xh_1AFbC.cjs} +1 -1
- package/components/{set-locale-CgCeLPlb.js → set-locale-ydAPif-7.js} +4 -4
- package/components/{slicer-filter-options.config-DK62SCMp.js → slicer-filter-options.config-BtGkT2hI.js} +1 -1
- package/components/{slicer-filter-positioning.config-BLGeCJys.js → slicer-filter-positioning.config-CY4jw7_A.js} +1 -1
- package/components/{slicer-filter-positioning.config-CU86hJi6.cjs → slicer-filter-positioning.config-CZY2fvwt.cjs} +1 -1
- package/components/{slicer-filter-slots.config-C9_NdJm4.js → slicer-filter-slots.config-DR0Wg_Zr.js} +1 -1
- package/components/{slider-filter-options.config-CP5bXdih.js → slider-filter-options.config-D_yZ_nFz.js} +1 -1
- package/components/{slider-filter-slots.config-15eAAGVn.js → slider-filter-slots.config-BUHw-32u.js} +1 -1
- package/components/slot-menu/index.cjs +20 -0
- package/components/slot-menu/index.d.ts +10 -0
- package/components/slot-menu/index.js +21 -0
- package/components/slot-menu/slot-menu.d.ts +148 -0
- package/components/slot-menu/types.d.ts +24 -0
- package/components/slot-menu-Bl6PrLIN.cjs +71 -0
- package/components/slot-menu-hIK2_qR3.js +429 -0
- package/components/slot-menu-list/index.cjs +20 -0
- package/components/slot-menu-list/index.d.ts +8 -0
- package/components/slot-menu-list/index.js +21 -0
- package/components/slot-menu-list/slot-menu-list.d.ts +47 -0
- package/components/slot-menu-list-BgwZS32Q.js +348 -0
- package/components/slot-menu-list-BhgD2zt4.cjs +44 -0
- package/components/slot-role-classification-2wChhpcq.cjs +20 -0
- package/components/slot-role-classification-B8bkGhQ_.js +133 -0
- package/components/slots-config-Cd4xAG4H.cjs +20 -0
- package/components/slots-config-GlSNH7Gr.js +76 -0
- package/components/{speedometer-chart-options.config-dsUupCqm.js → speedometer-chart-options.config-BL7evgzP.js} +1 -1
- package/components/{speedometer-chart-positioning.config-AeMlNxSj.cjs → speedometer-chart-positioning.config-D3CWnYTb.cjs} +1 -1
- package/components/{speedometer-chart-positioning.config-Dam0wOqp.js → speedometer-chart-positioning.config-cBMverSU.js} +1 -1
- package/components/{speedometer-chart-slots.config-DfTw7JTF.js → speedometer-chart-slots.config-2Y_x52Gy.js} +1 -1
- package/components/{spike-map-options.config-Dh4Ky5ZP.js → spike-map-options.config-DjoTrAsC.js} +1 -1
- package/components/{spike-map-positioning.config-9ShV1fUh.cjs → spike-map-positioning.config-i7ntIkN5.cjs} +1 -1
- package/components/{spike-map-positioning.config-BVzewpfi.js → spike-map-positioning.config-vuoKutnj.js} +1 -1
- package/components/{spike-map-slots.config-i-c0F9QM.js → spike-map-slots.config-DJWMFPIR.js} +1 -1
- package/components/{strip-plot-options.config-Vw3GoLef.js → strip-plot-options.config-tDmVlu9U.js} +1 -1
- package/components/{strip-plot-positioning.config-BVBdHZvL.cjs → strip-plot-positioning.config-C2H-io7l.cjs} +1 -1
- package/components/{strip-plot-positioning.config-OHm3LEo3.js → strip-plot-positioning.config-_-ElbWoV.js} +1 -1
- package/components/{strip-plot-slots.config-BuF7X3xN.js → strip-plot-slots.config-suFyIf5-.js} +1 -1
- package/components/{sunburst-chart-options.config-CXOrVmIe.js → sunburst-chart-options.config-Bjue_lQN.js} +1 -1
- package/components/{sunburst-chart-positioning.config-DQmuKm-N.cjs → sunburst-chart-positioning.config-MB8z_ZfG.cjs} +1 -1
- package/components/{sunburst-chart-positioning.config-BynNbbxB.js → sunburst-chart-positioning.config-yzTnv1BQ.js} +1 -1
- package/components/{sunburst-chart-slots.config-Cq-E6kyI.js → sunburst-chart-slots.config-BqVT-h0Z.js} +1 -1
- package/components/{symbol-map-options.config-Dultd0tF.js → symbol-map-options.config-Dyeya5Z2.js} +1 -1
- package/components/{symbol-map-positioning.config-bQk_pdAr.js → symbol-map-positioning.config-BPkEp4Pj.js} +1 -1
- package/components/{symbol-map-positioning.config-D6rgxXTO.cjs → symbol-map-positioning.config-L11e_Z3x.cjs} +1 -1
- package/components/{symbol-map-slots.config-BfdBHkzN.js → symbol-map-slots.config-Rhpher5o.js} +1 -1
- package/components/{text-options.config-BUiRyi3L.js → text-options.config-CXhvzzPF.js} +1 -1
- package/components/{text-slots.config-CM_ZaW3p.js → text-slots.config-Dzj4-x2G.js} +1 -1
- package/components/tokens-BWMfo_w4.cjs +20 -0
- package/components/tokens-Ov1pCR4Y.js +29 -0
- package/components/{treemap-chart-options.config-6l3HzikF.js → treemap-chart-options.config-BzOCEWog.js} +1 -1
- package/components/{treemap-chart-positioning.config-ZaoIngRn.cjs → treemap-chart-positioning.config-40_GcY2u.cjs} +1 -1
- package/components/{treemap-chart-positioning.config-BB1-rZKL.js → treemap-chart-positioning.config-CitiBQB2.js} +1 -1
- package/components/{treemap-chart-slots.config-CHkGtIOa.js → treemap-chart-slots.config-DRcafVU-.js} +1 -1
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +2 -2
- package/components/utils/store.js +1 -1
- package/components/utils-SzKvwZ9-.cjs +20 -0
- package/components/{utils-ZoJ1cp2P.js → utils-_8LPCz9-.js} +54 -53
- package/components/utils.cjs +1 -1
- package/components/utils.js +9 -6
- package/components/{venn-diagram-options.config-Wi0dQsAu.js → venn-diagram-options.config-BMlduwIp.js} +1 -1
- package/components/{venn-diagram-positioning.config-C9ARqREi.js → venn-diagram-positioning.config-A28suR_R.js} +1 -1
- package/components/{venn-diagram-positioning.config-Cb10sStL.cjs → venn-diagram-positioning.config-C7bkb2Qv.cjs} +1 -1
- package/components/{venn-diagram-slots.config-DY04aeYK.js → venn-diagram-slots.config-CMDndPVi.js} +1 -1
- package/components/{video-options.config-B6pQUPB7.js → video-options.config-DdfSTJEJ.js} +1 -1
- package/components/{video-slots.config-C-kXGzo3.js → video-slots.config-Utnn0DBW.js} +1 -1
- package/components/viz-item-menu/index.cjs +20 -0
- package/components/viz-item-menu/index.d.ts +8 -0
- package/components/viz-item-menu/index.js +21 -0
- package/components/viz-item-menu/types.d.ts +9 -0
- package/components/viz-item-menu/viz-item-menu.d.ts +85 -0
- package/components/viz-item-menu-DsIJZRgm.js +203 -0
- package/components/viz-item-menu-DtHlgOqt.cjs +63 -0
- package/components/{wordcloud-chart-options.config-CpMtpG7q.js → wordcloud-chart-options.config-y9Z5I_ZN.js} +1 -1
- package/components/{wordcloud-chart-positioning.config-DC89_DYc.cjs → wordcloud-chart-positioning.config-BQFzFNko.cjs} +1 -1
- package/components/{wordcloud-chart-positioning.config-D59ntNtd.js → wordcloud-chart-positioning.config-Dk13J1zq.js} +1 -1
- package/components/{wordcloud-chart-slots.config-Cc5F92Tv.js → wordcloud-chart-slots.config-CvabtgbP.js} +1 -1
- package/custom-elements.json +18790 -6833
- package/deprecated-react/components/ai-chat.component.cjs +1 -0
- package/deprecated-react/components/ai-interaction-textarea.component.cjs +1 -0
- package/deprecated-react/components/data-field-level.component.cjs +1 -0
- package/deprecated-react/components/data-fields-select.component.cjs +1 -0
- package/deprecated-react/components/dataset-icon.component.cjs +1 -0
- package/deprecated-react/components/dataset-selector-list.component.cjs +1 -0
- package/deprecated-react/components/dataset-selector-row.component.cjs +1 -0
- package/deprecated-react/components/display-settings-binning.component.cjs +1 -0
- package/deprecated-react/components/display-settings-datetime.component.cjs +1 -0
- package/deprecated-react/components/display-settings-grand-totals.component.cjs +1 -0
- package/deprecated-react/components/display-settings-numeric.component.cjs +1 -0
- package/deprecated-react/components/display-settings-period-over-period.component.cjs +1 -0
- package/deprecated-react/components/display-settings.component.cjs +1 -0
- package/deprecated-react/components/filter-expression-picker.component.cjs +1 -0
- package/deprecated-react/components/filter-item.component.cjs +1 -0
- package/deprecated-react/components/filter-parameter-picker.component.cjs +1 -0
- package/deprecated-react/components/filter-value-picker-datetime.component.cjs +1 -0
- package/deprecated-react/components/filter-value-picker-hierarchy.component.cjs +1 -0
- package/deprecated-react/components/filter-value-picker-numeric.component.cjs +1 -0
- package/deprecated-react/components/filter-value-picker.component.cjs +1 -0
- package/deprecated-react/components/formula-field.component.cjs +1 -0
- package/deprecated-react/components/interactive-viz-item.component.cjs +1 -0
- package/deprecated-react/components/slot-menu-list.component.cjs +1 -0
- package/deprecated-react/components/slot-menu.component.cjs +1 -0
- package/deprecated-react/components/viz-item-menu.component.cjs +1 -0
- package/index.d.ts +25 -0
- package/package.json +127 -2
- package/react/components/ai-chat.component.ts +45 -0
- package/react/components/ai-interaction-textarea.component.ts +30 -0
- package/react/components/data-field-level.component.ts +30 -0
- package/react/components/data-fields-select.component.ts +27 -0
- package/react/components/dataset-icon.component.ts +22 -0
- package/react/components/dataset-selector-list.component.ts +27 -0
- package/react/components/dataset-selector-row.component.ts +36 -0
- package/react/components/display-settings-binning.component.ts +27 -0
- package/react/components/display-settings-datetime.component.ts +27 -0
- package/react/components/display-settings-grand-totals.component.ts +27 -0
- package/react/components/display-settings-numeric.component.ts +27 -0
- package/react/components/display-settings-period-over-period.component.ts +27 -0
- package/react/components/display-settings.component.ts +33 -0
- package/react/components/filter-expression-picker.component.ts +27 -0
- package/react/components/filter-item.component.ts +27 -0
- package/react/components/filter-parameter-picker.component.ts +33 -0
- package/react/components/filter-value-picker-datetime.component.ts +27 -0
- package/react/components/filter-value-picker-hierarchy.component.ts +27 -0
- package/react/components/filter-value-picker-numeric.component.ts +27 -0
- package/react/components/filter-value-picker.component.ts +27 -0
- package/react/components/filters.component.ts +1 -1
- package/react/components/formula-field.component.ts +30 -0
- package/react/components/interactive-viz-item.component.ts +33 -0
- package/react/components/slot-menu-list.component.ts +27 -0
- package/react/components/slot-menu.component.ts +42 -0
- package/react/components/viz-item-menu.component.ts +33 -0
- package/react/esm/components/ai-chat.component.d.ts +24 -0
- package/react/esm/components/ai-chat.component.js +29 -0
- package/react/esm/components/ai-interaction-textarea.component.d.ts +14 -0
- package/react/esm/components/ai-interaction-textarea.component.js +19 -0
- package/react/esm/components/data-field-level.component.d.ts +14 -0
- package/react/esm/components/data-field-level.component.js +19 -0
- package/react/esm/components/data-fields-select.component.d.ts +12 -0
- package/react/esm/components/data-fields-select.component.js +17 -0
- package/react/esm/components/dataset-icon.component.d.ts +8 -0
- package/react/esm/components/dataset-icon.component.js +13 -0
- package/react/esm/components/dataset-selector-list.component.d.ts +12 -0
- package/react/esm/components/dataset-selector-list.component.js +17 -0
- package/react/esm/components/dataset-selector-row.component.d.ts +18 -0
- package/react/esm/components/dataset-selector-row.component.js +23 -0
- package/react/esm/components/display-settings-binning.component.d.ts +12 -0
- package/react/esm/components/display-settings-binning.component.js +17 -0
- package/react/esm/components/display-settings-datetime.component.d.ts +12 -0
- package/react/esm/components/display-settings-datetime.component.js +17 -0
- package/react/esm/components/display-settings-grand-totals.component.d.ts +12 -0
- package/react/esm/components/display-settings-grand-totals.component.js +17 -0
- package/react/esm/components/display-settings-numeric.component.d.ts +12 -0
- package/react/esm/components/display-settings-numeric.component.js +17 -0
- package/react/esm/components/display-settings-period-over-period.component.d.ts +12 -0
- package/react/esm/components/display-settings-period-over-period.component.js +17 -0
- package/react/esm/components/display-settings.component.d.ts +16 -0
- package/react/esm/components/display-settings.component.js +21 -0
- package/react/esm/components/filter-expression-picker.component.d.ts +12 -0
- package/react/esm/components/filter-expression-picker.component.js +17 -0
- package/react/esm/components/filter-item.component.d.ts +12 -0
- package/react/esm/components/filter-item.component.js +17 -0
- package/react/esm/components/filter-parameter-picker.component.d.ts +16 -0
- package/react/esm/components/filter-parameter-picker.component.js +21 -0
- package/react/esm/components/filter-value-picker-datetime.component.d.ts +12 -0
- package/react/esm/components/filter-value-picker-datetime.component.js +17 -0
- package/react/esm/components/filter-value-picker-hierarchy.component.d.ts +12 -0
- package/react/esm/components/filter-value-picker-hierarchy.component.js +17 -0
- package/react/esm/components/filter-value-picker-numeric.component.d.ts +12 -0
- package/react/esm/components/filter-value-picker-numeric.component.js +17 -0
- package/react/esm/components/filter-value-picker.component.d.ts +12 -0
- package/react/esm/components/filter-value-picker.component.js +17 -0
- package/react/esm/components/filters.component.d.ts +1 -1
- package/react/esm/components/filters.component.js +1 -1
- package/react/esm/components/formula-field.component.d.ts +14 -0
- package/react/esm/components/formula-field.component.js +19 -0
- package/react/esm/components/interactive-viz-item.component.d.ts +16 -0
- package/react/esm/components/interactive-viz-item.component.js +21 -0
- package/react/esm/components/slot-menu-list.component.d.ts +12 -0
- package/react/esm/components/slot-menu-list.component.js +17 -0
- package/react/esm/components/slot-menu.component.d.ts +22 -0
- package/react/esm/components/slot-menu.component.js +27 -0
- package/react/esm/components/viz-item-menu.component.d.ts +16 -0
- package/react/esm/components/viz-item-menu.component.js +21 -0
- package/react/esm/index.d.ts +27 -2
- package/react/esm/index.js +102 -2
- package/react/index.ts +102 -2
- package/react/luzmo-stub.d.ts +140 -0
- package/react/package.json +2 -2
- package/storybook/register-components.d.ts +57 -0
- package/styles/tokens.d.ts +1 -0
- package/types/agent.types.d.ts +4 -0
- package/types/ai-chat.types.d.ts +104 -0
- package/types/data-field-events.types.d.ts +7 -0
- package/types.d.ts +9 -0
- package/utils/create-lazy-loader.d.ts +5 -0
- package/utils/filters/filter-text.d.ts +64 -0
- package/utils/filters/index.d.ts +1 -0
- package/utils/filters/presentation.d.ts +4 -0
- package/utils/filters/tests/filter-text.test.d.ts +1 -0
- package/utils/formatter/localized-template.d.ts +4 -0
- package/utils/formatter/tests/localized-template.test.d.ts +1 -0
- package/utils/tests/create-lazy-loader.test.d.ts +1 -0
- package/components/base-BtRS5vm6.cjs +0 -20
- package/components/data-field-fvlYzmfX.cjs +0 -89
- package/components/data-field-panel-Yrqn4L79.cjs +0 -87
- package/components/data-fields-select-Cor6sfzL.cjs +0 -41
- package/components/de-CdZnQbKI.cjs +0 -20
- package/components/display-settings-grand-totals-BZ0nlLhu.cjs +0 -44
- package/components/display-settings-numeric-DoScgfRy.cjs +0 -190
- package/components/display-settings-period-over-period-C-hp0ZKN.cjs +0 -227
- package/components/es-7RD7O4q3.cjs +0 -20
- package/components/filters-DndJU6D5.js +0 -2454
- package/components/filters-oB9qOk_M.cjs +0 -443
- package/components/formula-codemirror-ucFOD-2a.cjs +0 -215
- package/components/formula-display-store-DmT65fUB.cjs +0 -20
- package/components/formula-editor-BeZ-fu-7.cjs +0 -253
- package/components/fr-CGw2IwXh.cjs +0 -20
- package/components/item-option-BQpS6rM_.cjs +0 -269
- package/components/item-option-action-button-group-BwBxRLzB.cjs +0 -53
- package/components/item-option-base-C6uwowJD.cjs +0 -56
- package/components/item-option-color-palette-picker-BjHadiN0.cjs +0 -40
- package/components/item-option-color-range-CQo8uThO.cjs +0 -98
- package/components/item-option-guidelines-Daf8Ce5z.cjs +0 -135
- package/components/item-option-position-picker-Cnis4wLA.cjs +0 -32
- package/components/item-option-positions-number-field-B7gI1IKO.cjs +0 -49
- package/components/item-option-slider--7hmhi97.cjs +0 -33
- package/components/item-slot-drop-hK-rLhwa.cjs +0 -91
- package/components/item-slot-drop-panel-CE4f9X6F.cjs +0 -57
- package/components/item-slot-picker-Wf50lM5u.cjs +0 -174
- package/components/item-slot-picker-panel-Csn1tabr.cjs +0 -81
- package/components/load-data-fields-for-datasets-B76UR0sG.js +0 -86
- package/components/load-data-fields-for-datasets-DFYeACsu.cjs +0 -20
- package/components/localized-mixin-DfpurTYo.cjs +0 -20
- package/components/nl-BnzS_ZtB.cjs +0 -20
- package/components/period-over-period-condition.const-DDgiXIfR.cjs +0 -20
- package/components/slot-menu-1zlmyLVl.js +0 -1060
- package/components/slot-menu-BSu8wKLi.cjs +0 -217
- package/components/utils-CPIzW8sp.cjs +0 -20
|
@@ -17,269 +17,65 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { t as e } from "./pragmatic-element-adapter-
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
20
|
+
import { t as e } from "./pragmatic-element-adapter-D0LRKx5U.js";
|
|
21
|
+
import "./tokens-Ov1pCR4Y.js";
|
|
22
|
+
import { i as t, n } from "./base-BRTs2KqJ.js";
|
|
23
|
+
import { t as r } from "./decorate-DyMgX_Uh.js";
|
|
23
24
|
import { t as i } from "./data-broker-B0uUO5er.js";
|
|
24
25
|
import { t as a } from "./calculate-data-field-icon-DrSg1PuD.js";
|
|
25
26
|
import { t as o } from "./localize-BT7REYBY.js";
|
|
26
|
-
import {
|
|
27
|
-
import { n as
|
|
28
|
-
import "./
|
|
29
|
-
import
|
|
30
|
-
import {
|
|
27
|
+
import { a as s, i as c, n as l, p as u, r as d } from "./formula-display-store-D9MWhreP.js";
|
|
28
|
+
import { n as f } from "./groupings-C1WNuUBe.js";
|
|
29
|
+
import { n as p, t as m } from "./get-css-variable-DYnldi15.js";
|
|
30
|
+
import "./data-field-CwC5VH16.js";
|
|
31
|
+
import { t as h } from "./formula-input-base-BdKh5O_E.js";
|
|
32
|
+
import { luzmoAlertOutline as g, luzmoAngleDown as ee, luzmoAngleRight as te, luzmoArrows as ne, luzmoIcon as _ } from "@luzmo/icons";
|
|
31
33
|
import "@luzmo/lucero/icon";
|
|
32
|
-
import { html as
|
|
33
|
-
import { property as
|
|
34
|
-
import { localized as
|
|
34
|
+
import { html as v, nothing as y, unsafeCSS as b } from "lit";
|
|
35
|
+
import { property as x, state as S } from "lit/decorators.js";
|
|
36
|
+
import { localized as re, msg as C, str as w } from "@lit/localize";
|
|
35
37
|
import "@luzmo/lucero/select";
|
|
36
38
|
import "@luzmo/lucero/tooltip";
|
|
37
|
-
import { repeat as
|
|
39
|
+
import { repeat as T } from "lit/directives/repeat.js";
|
|
38
40
|
import "@luzmo/lucero/field-label";
|
|
39
|
-
import { ifDefined as P } from "lit/directives/if-defined.js";
|
|
40
|
-
import { ContextProvider as F, createContext as I } from "@lit/context";
|
|
41
41
|
import "@luzmo/lucero/progress-circle";
|
|
42
42
|
import "@luzmo/lucero/search";
|
|
43
|
-
//#region src/utils/formula/store/formula-editor-context.ts
|
|
44
|
-
var L = I(Symbol("formula-editor-store-context")), R = "__root__", z = {
|
|
45
|
-
numeric: "numeric",
|
|
46
|
-
hierarchy: "hierarchy",
|
|
47
|
-
datetime: "datetime"
|
|
48
|
-
}, B = class extends g {
|
|
49
|
-
constructor(...e) {
|
|
50
|
-
super(...e), this._editors = /* @__PURE__ */ new Map();
|
|
51
|
-
}
|
|
52
|
-
registerEditor(e, t) {
|
|
53
|
-
this._editors.set(e ?? "__root__", t);
|
|
54
|
-
}
|
|
55
|
-
unregisterEditor(e) {
|
|
56
|
-
this._editors.delete(e ?? "__root__");
|
|
57
|
-
}
|
|
58
|
-
getEditor(e = null) {
|
|
59
|
-
return this._editors.get(e ?? "__root__");
|
|
60
|
-
}
|
|
61
|
-
getDropExpression(e, t, n, r) {
|
|
62
|
-
let i = [], a = "";
|
|
63
|
-
if (e === "text") a = r ?? "";
|
|
64
|
-
else if (e === "column") n && t && (a = `{${n}:${t}}`);
|
|
65
|
-
else if (e === "function") {
|
|
66
|
-
let e = this.functionDataMap[t], n = /^[a-z]/i.test(t ?? "");
|
|
67
|
-
switch (e?.type) {
|
|
68
|
-
case "infix":
|
|
69
|
-
a = `${n ? ` ${t} ` : t}${e.arity > 1 ? l() : ""}`;
|
|
70
|
-
break;
|
|
71
|
-
case "prefix_op":
|
|
72
|
-
a = `${t}${n ? " " : ""}${l()}`;
|
|
73
|
-
break;
|
|
74
|
-
case "prefix": {
|
|
75
|
-
let n = [];
|
|
76
|
-
for (let t = 0; t < e.arity; t++) n.push(l());
|
|
77
|
-
a = `${t}(${n.join(",")})`;
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
} else if (e === "aggregation") {
|
|
82
|
-
let e = t, n = this.aggregationFunctionDataMap[e];
|
|
83
|
-
if (this.multiStageAggregation) {
|
|
84
|
-
let t = {
|
|
85
|
-
widgetId: d(),
|
|
86
|
-
aggregationFunction: e,
|
|
87
|
-
grouping: v.GROUP,
|
|
88
|
-
content: ""
|
|
89
|
-
};
|
|
90
|
-
a = _(t.widgetId), i.push(t);
|
|
91
|
-
} else a = `${e}(${n?.arity > 0 ? l() : ""})`;
|
|
92
|
-
}
|
|
93
|
-
return {
|
|
94
|
-
expression: a,
|
|
95
|
-
aggregationWidgets: i
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
onExtendExpression(e) {
|
|
99
|
-
let { type: t, id: n, aggregationWidgetId: r, datasetId: i, targetEmptyArgumentId: a, textContent: o } = e;
|
|
100
|
-
if (t === "aggregation" && r && !this.nestedAggregation) return;
|
|
101
|
-
let { expression: s, aggregationWidgets: c } = this.getDropExpression(t, n, i, o), l = this.getEditor(r);
|
|
102
|
-
!l || !s || (this.addWidgets(c), this._markAggregationForFocus(c), a && l.state.doc.toString().includes(`##EMPTYARG-${a}##`) ? x(l, s, a) : te(l, s));
|
|
103
|
-
}
|
|
104
|
-
getAutoCompletionList(e, t) {
|
|
105
|
-
let n = [], r = {
|
|
106
|
-
...this.functionDataMap,
|
|
107
|
-
...this.aggregationFunctionDataMap
|
|
108
|
-
};
|
|
109
|
-
for (let e of Object.keys(r)) {
|
|
110
|
-
let i = u.includes(e);
|
|
111
|
-
if (i && !t) continue;
|
|
112
|
-
let a = r[e];
|
|
113
|
-
n.push({
|
|
114
|
-
label: a.label(),
|
|
115
|
-
type: i ? "namespace" : "function",
|
|
116
|
-
info: () => this._buildOperationInfo(a),
|
|
117
|
-
iconDef: i ? re : C,
|
|
118
|
-
apply: (t, n, r, a) => {
|
|
119
|
-
let { expression: o, aggregationWidgets: s } = this.getDropExpression(i ? "aggregation" : "function", e);
|
|
120
|
-
this.addWidgets(s), this._markAggregationForFocus(s), t.dispatch({ changes: {
|
|
121
|
-
from: r,
|
|
122
|
-
to: a,
|
|
123
|
-
insert: o
|
|
124
|
-
} });
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
for (let t of e) for (let r of t.columns) {
|
|
129
|
-
let i = r.columnId, s = o(r.name, this.contentLanguage);
|
|
130
|
-
!i || !s || n.push({
|
|
131
|
-
label: s,
|
|
132
|
-
type: "variable",
|
|
133
|
-
info: e.length > 1 ? o(t.name, this.contentLanguage) : "",
|
|
134
|
-
iconDef: a(r),
|
|
135
|
-
apply: this.getDropExpression("column", i, t.id).expression
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
return n;
|
|
139
|
-
}
|
|
140
|
-
_buildOperationInfo(e) {
|
|
141
|
-
let t = document.createElement("div");
|
|
142
|
-
t.className = "cm-completion-info-formula";
|
|
143
|
-
let n = e.example();
|
|
144
|
-
if (n) {
|
|
145
|
-
let r = document.createElement("code");
|
|
146
|
-
if (r.className = "cm-completion-info-example", e.exampleHasIcons) for (let e of n.split(/(⟨\w+⟩)/g)) {
|
|
147
|
-
let t = e.match(/^⟨(\w+)⟩$/), n = t ? z[t[1]] : void 0;
|
|
148
|
-
if (n) {
|
|
149
|
-
let e = document.createElement("span");
|
|
150
|
-
e.className = "cm-completion-info-icon", e.appendChild(ne(a({ type: n }, "s"))), r.appendChild(e);
|
|
151
|
-
} else e && r.appendChild(document.createTextNode(e));
|
|
152
|
-
}
|
|
153
|
-
else r.textContent = n;
|
|
154
|
-
t.appendChild(r);
|
|
155
|
-
}
|
|
156
|
-
let r = document.createElement("div");
|
|
157
|
-
return r.className = "cm-completion-info-desc", r.textContent = e.description(), t.appendChild(r), t;
|
|
158
|
-
}
|
|
159
|
-
}, V = class extends p {
|
|
160
|
-
constructor() {
|
|
161
|
-
super(), this._autoCompletionList = [], this.readonly = !1, this.placeholder = "", this.rows = 3, this.grows = !0, new F(this, {
|
|
162
|
-
context: L,
|
|
163
|
-
initialValue: this._store
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
_createStore() {
|
|
167
|
-
return new B();
|
|
168
|
-
}
|
|
169
|
-
willUpdate(e) {
|
|
170
|
-
super.willUpdate(e), e.has("readonly") && this._store.setReadonly(this.readonly);
|
|
171
|
-
}
|
|
172
|
-
_rebuildAutoCompletion() {
|
|
173
|
-
this._autoCompletionList = this._store.getAutoCompletionList(this._datasets, this.showAggregations);
|
|
174
|
-
}
|
|
175
|
-
_applyExternalExpression() {
|
|
176
|
-
this._applyingExternalExpression = !0;
|
|
177
|
-
try {
|
|
178
|
-
let e = this._syncExpressionToStore();
|
|
179
|
-
if (e === null) return;
|
|
180
|
-
let t = this._store.getEditor(null), n = this._codeMirrorElement;
|
|
181
|
-
t ? t.state.doc.toString() !== e && ee(t, e) : n && n.setContent(e);
|
|
182
|
-
} finally {
|
|
183
|
-
this._applyingExternalExpression = !1;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
_handleInputContentChanged(e) {
|
|
187
|
-
e.stopPropagation(), !this.readonly && (this._rootContent = e.detail.content, this._recomputeExpression());
|
|
188
|
-
}
|
|
189
|
-
_renderFormulaCodeMirror(e = {}) {
|
|
190
|
-
return this._codeMirrorLoaded ? T`
|
|
191
|
-
<luzmo-formula-codemirror
|
|
192
|
-
part=${P(e.part)}
|
|
193
|
-
.store=${this._store}
|
|
194
|
-
.datasets=${this._datasets}
|
|
195
|
-
content-language=${this.contentLanguage}
|
|
196
|
-
.placeholder=${this.placeholder}
|
|
197
|
-
.rows=${this.rows}
|
|
198
|
-
.maxRows=${this.maxRows}
|
|
199
|
-
.grows=${this.grows}
|
|
200
|
-
?readonly=${this.readonly}
|
|
201
|
-
?has-error=${e.hasError ?? !1}
|
|
202
|
-
.autoCompletionList=${this._autoCompletionList}
|
|
203
|
-
@luzmo-input-content-changed=${this._handleInputContentChanged}
|
|
204
|
-
></luzmo-formula-codemirror>
|
|
205
|
-
` : this._renderInputLoadingPlaceholder(e);
|
|
206
|
-
}
|
|
207
|
-
_renderInputLoadingPlaceholder(e) {
|
|
208
|
-
let t = `calc(${this.rows} * 1.5 * var(--luzmo-formula-font-size, var(--luzmo-font-size)) + 2 * var(--luzmo-spacing-3) + 2px)`, n = e.hasError ? "var(--luzmo-negative-color, #ca221c)" : "var(--luzmo-border-color, rgba(0, 0, 0, 0.1))", r = [
|
|
209
|
-
"box-sizing: border-box",
|
|
210
|
-
"display: flex",
|
|
211
|
-
"align-items: flex-start",
|
|
212
|
-
"justify-content: flex-start",
|
|
213
|
-
"padding: var(--luzmo-spacing-3) var(--luzmo-spacing-4)",
|
|
214
|
-
"width: 100%",
|
|
215
|
-
`min-height: ${t}`,
|
|
216
|
-
`border: 1px solid ${n}`,
|
|
217
|
-
"border-radius: var(--luzmo-border-radius)",
|
|
218
|
-
"border-end-start-radius: var(--luzmo-formula-field-bottom-radius, var(--luzmo-border-radius))",
|
|
219
|
-
"border-end-end-radius: var(--luzmo-formula-field-bottom-radius, var(--luzmo-border-radius))",
|
|
220
|
-
"background: var(--luzmo-background-color, #ffffff)"
|
|
221
|
-
].join("; ");
|
|
222
|
-
return T`
|
|
223
|
-
<div
|
|
224
|
-
class="formula-codemirror-loading"
|
|
225
|
-
part=${P(e.part)}
|
|
226
|
-
role="status"
|
|
227
|
-
aria-busy="true"
|
|
228
|
-
style=${r}
|
|
229
|
-
>
|
|
230
|
-
<luzmo-progress-circle
|
|
231
|
-
indeterminate
|
|
232
|
-
.size=${this.size}
|
|
233
|
-
.label=${j("Loading the formula editor", { desc: "Spinner label while the formula editor input loads" })}
|
|
234
|
-
></luzmo-progress-circle>
|
|
235
|
-
</div>
|
|
236
|
-
`;
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
|
-
r([O({
|
|
240
|
-
type: Boolean,
|
|
241
|
-
reflect: !0
|
|
242
|
-
})], V.prototype, "readonly", void 0), r([O({ type: String })], V.prototype, "placeholder", void 0), r([O({ type: Number })], V.prototype, "rows", void 0), r([O({
|
|
243
|
-
type: Number,
|
|
244
|
-
attribute: "max-rows"
|
|
245
|
-
})], V.prototype, "maxRows", void 0), r([O({ type: Boolean })], V.prototype, "grows", void 0);
|
|
246
|
-
//#endregion
|
|
247
43
|
//#region src/utils/formula/config/validate-expression.ts
|
|
248
|
-
var
|
|
44
|
+
var E = [
|
|
249
45
|
"numeric",
|
|
250
46
|
"hierarchy",
|
|
251
47
|
"datetime",
|
|
252
48
|
"spatial"
|
|
253
|
-
],
|
|
49
|
+
], D = [
|
|
254
50
|
"true",
|
|
255
51
|
"false",
|
|
256
52
|
"null"
|
|
257
|
-
],
|
|
53
|
+
], O = [
|
|
258
54
|
"GROUP",
|
|
259
55
|
"GROUPFULL",
|
|
260
56
|
"GROUPINEX"
|
|
261
|
-
],
|
|
262
|
-
function
|
|
57
|
+
], k = /'(?:[^']|'')*'|"(?:[^"]|"")*"/g, A = /\{[^}]*\}/g, j = /[A-Za-z_][A-Za-z0-9_]*/g;
|
|
58
|
+
function M(e, t) {
|
|
263
59
|
let n = /* @__PURE__ */ new Set();
|
|
264
60
|
for (let t of Object.keys(e)) /^[A-Za-z_]/.test(t) && n.add(t.toUpperCase());
|
|
265
61
|
for (let e of Object.keys(t)) n.add(e.toUpperCase());
|
|
266
62
|
for (let e of [
|
|
267
|
-
...
|
|
268
|
-
...
|
|
269
|
-
...
|
|
63
|
+
...O,
|
|
64
|
+
...E,
|
|
65
|
+
...D
|
|
270
66
|
]) n.add(e.toUpperCase());
|
|
271
67
|
return n;
|
|
272
68
|
}
|
|
273
|
-
function
|
|
274
|
-
let n = e.replace(
|
|
275
|
-
|
|
69
|
+
function N(e, t) {
|
|
70
|
+
let n = e.replace(k, " ").replace(A, " ");
|
|
71
|
+
j.lastIndex = 0;
|
|
276
72
|
let r;
|
|
277
|
-
for (; (r =
|
|
73
|
+
for (; (r = j.exec(n)) !== null;) if (!t.has(r[0].toUpperCase())) return r[0];
|
|
278
74
|
return null;
|
|
279
75
|
}
|
|
280
76
|
//#endregion
|
|
281
77
|
//#region node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/element/custom-native-drag-preview/pointer-outside-of-preview.js
|
|
282
|
-
function
|
|
78
|
+
function P(e) {
|
|
283
79
|
return function(t) {
|
|
284
80
|
var n = t.container;
|
|
285
81
|
return Object.assign(n.style, {
|
|
@@ -293,7 +89,7 @@ function le(e) {
|
|
|
293
89
|
}
|
|
294
90
|
//#endregion
|
|
295
91
|
//#region src/components/formula-draggable-field/formula-draggable-field.module.scss?inline
|
|
296
|
-
var
|
|
92
|
+
var F = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:border-box;width:100%;min-height:var(--formula-draggable-field-height);padding:0 var(--luzmo-spacing-3);border-radius:var(--luzmo-border-radius);background-color:var(--formula-draggable-field-background);color:var(--luzmo-font-color);font-family:var(--luzmo-font-family);font-size:var(--formula-draggable-field-font-size);text-align:start;cursor:grab;-webkit-user-select:none;user-select:none;border:none;display:flex}.draggable:hover{background-color:var(--luzmo-background-color-highlight)}.draggable:focus-visible{outline:2px solid var(--luzmo-primary);outline-offset:-2px}:host([disabled]) .draggable{opacity:.5;cursor:not-allowed}.draggable-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.drag-icon{color:var(--luzmo-font-color-extra-dimmed);font-size:var(--luzmo-formula-draggable-field-drag-icon-size,var(--formula-draggable-field-drag-icon-size));flex:none;align-items:center;display:inline-flex}.icon-slot{flex:none;align-items:center;display:none}.icon-slot.has-icon{display:inline-flex}.tooltip-content{gap:var(--luzmo-spacing-2);text-align:start;flex-direction:column;display:flex}:host{width:100%;font-family:var(--luzmo-font-family);--formula-draggable-field-height:var(--luzmo-component-height);--formula-draggable-field-font-size:var(--luzmo-font-size);--formula-draggable-field-background:transparent;--formula-draggable-field-drag-icon-size:var(--luzmo-font-size-s);font-size:var(--formula-draggable-field-font-size);display:flex}:host([size=s]){--formula-draggable-field-height:var(--luzmo-component-height-s);--formula-draggable-field-font-size:var(--luzmo-font-size-s);--formula-draggable-field-drag-icon-size:var(--luzmo-font-size-xs)}:host([size=l]){--formula-draggable-field-height:var(--luzmo-component-height-l);--formula-draggable-field-font-size:var(--luzmo-font-size-l);--formula-draggable-field-drag-icon-size:var(--luzmo-font-size)}:host([size=xl]){--formula-draggable-field-height:var(--luzmo-component-height-xl);--formula-draggable-field-font-size:var(--luzmo-font-size-xl);--formula-draggable-field-drag-icon-size:var(--luzmo-font-size-l)}:host([variant=highlight]){--formula-draggable-field-background:var(--luzmo-formula-draggable-field-background,var(--luzmo-background-color-highlight))}", I = class extends n(t, {
|
|
297
93
|
validSizes: [
|
|
298
94
|
"s",
|
|
299
95
|
"m",
|
|
@@ -306,7 +102,7 @@ var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bo
|
|
|
306
102
|
super(...e), this.kind = "", this.value = "", this.label = "", this.description = "", this.tooltipPlacement = "right", this.variant = "default", this.disabled = !1, this._hasIcon = !1, this._hasTooltipSlot = !1;
|
|
307
103
|
}
|
|
308
104
|
static {
|
|
309
|
-
this.styles =
|
|
105
|
+
this.styles = b(F);
|
|
310
106
|
}
|
|
311
107
|
_handleIconSlotChange(e) {
|
|
312
108
|
this._hasIcon = e.target.assignedNodes({ flatten: !0 }).length > 0;
|
|
@@ -332,9 +128,9 @@ var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bo
|
|
|
332
128
|
value: this.value
|
|
333
129
|
}),
|
|
334
130
|
onGenerateDragPreview: ({ nativeSetDragImage: e }) => {
|
|
335
|
-
|
|
131
|
+
p({
|
|
336
132
|
nativeSetDragImage: e,
|
|
337
|
-
getOffset:
|
|
133
|
+
getOffset: P({
|
|
338
134
|
x: "8px",
|
|
339
135
|
y: "8px"
|
|
340
136
|
}),
|
|
@@ -346,7 +142,7 @@ var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bo
|
|
|
346
142
|
});
|
|
347
143
|
}
|
|
348
144
|
_buildDragPreview() {
|
|
349
|
-
let e = document.createElement("div"), t = this.variant === "highlight" ?
|
|
145
|
+
let e = document.createElement("div"), t = this.variant === "highlight" ? m(this, "--luzmo-formula-draggable-field-background") || m(this, "--luzmo-background-color-highlight") : m(this, "--luzmo-background-color");
|
|
350
146
|
return e.textContent = this.label, Object.assign(e.style, {
|
|
351
147
|
display: "inline-flex",
|
|
352
148
|
alignItems: "center",
|
|
@@ -355,14 +151,14 @@ var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bo
|
|
|
355
151
|
textOverflow: "ellipsis",
|
|
356
152
|
whiteSpace: "nowrap",
|
|
357
153
|
padding: "4px 8px",
|
|
358
|
-
borderRadius:
|
|
359
|
-
border: `1px solid ${
|
|
154
|
+
borderRadius: m(this, "--luzmo-border-radius") || "6px",
|
|
155
|
+
border: `1px solid ${m(this, "--luzmo-border-color")}`,
|
|
360
156
|
background: t,
|
|
361
|
-
color:
|
|
362
|
-
fontFamily:
|
|
157
|
+
color: m(this, "--luzmo-font-color"),
|
|
158
|
+
fontFamily: m(this, "--luzmo-font-family"),
|
|
363
159
|
fontSize: getComputedStyle(this).fontSize,
|
|
364
160
|
lineHeight: "1",
|
|
365
|
-
boxShadow:
|
|
161
|
+
boxShadow: m(this, "--luzmo-box-shadow") || "0 1px 4px rgb(0 0 0 / 15%)"
|
|
366
162
|
}), e;
|
|
367
163
|
}
|
|
368
164
|
_handleClick(e) {
|
|
@@ -390,7 +186,7 @@ var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bo
|
|
|
390
186
|
}
|
|
391
187
|
render() {
|
|
392
188
|
let e = this._hasTooltipSlot || !!this.description;
|
|
393
|
-
return
|
|
189
|
+
return v`
|
|
394
190
|
<button
|
|
395
191
|
class="draggable"
|
|
396
192
|
type="button"
|
|
@@ -401,7 +197,7 @@ var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bo
|
|
|
401
197
|
@mouseenter=${this._describe}
|
|
402
198
|
@focus=${this._describe}
|
|
403
199
|
>
|
|
404
|
-
<span class="drag-icon" aria-hidden="true">${
|
|
200
|
+
<span class="drag-icon" aria-hidden="true">${_(ne)}</span>
|
|
405
201
|
<slot
|
|
406
202
|
name="icon"
|
|
407
203
|
class="icon-slot ${this._hasIcon ? "has-icon" : ""}"
|
|
@@ -415,7 +211,7 @@ var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bo
|
|
|
415
211
|
?disabled=${!e}
|
|
416
212
|
>
|
|
417
213
|
<div class="tooltip-content">
|
|
418
|
-
${this._hasTooltipSlot ?
|
|
214
|
+
${this._hasTooltipSlot ? y : this.description ? v`<span>${this.description}</span>` : y}
|
|
419
215
|
<slot name="tooltip" @slotchange=${this._handleTooltipSlotChange}></slot>
|
|
420
216
|
</div>
|
|
421
217
|
</luzmo-tooltip>
|
|
@@ -425,109 +221,109 @@ var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bo
|
|
|
425
221
|
};
|
|
426
222
|
//#endregion
|
|
427
223
|
//#region src/components/formula-draggable-field/index.ts
|
|
428
|
-
r([
|
|
224
|
+
r([x({ type: String })], I.prototype, "kind", void 0), r([x({ type: String })], I.prototype, "value", void 0), r([x({ type: String })], I.prototype, "label", void 0), r([x({ type: String })], I.prototype, "description", void 0), r([x({
|
|
429
225
|
type: String,
|
|
430
226
|
attribute: "tooltip-placement"
|
|
431
|
-
})],
|
|
227
|
+
})], I.prototype, "tooltipPlacement", void 0), r([x({
|
|
432
228
|
type: String,
|
|
433
229
|
reflect: !0
|
|
434
|
-
})],
|
|
230
|
+
})], I.prototype, "variant", void 0), r([x({
|
|
435
231
|
type: Boolean,
|
|
436
232
|
reflect: !0
|
|
437
|
-
})],
|
|
233
|
+
})], I.prototype, "disabled", void 0), r([S()], I.prototype, "_hasIcon", void 0), r([S()], I.prototype, "_hasTooltipSlot", void 0), customElements.get("luzmo-formula-draggable-field") || customElements.define("luzmo-formula-draggable-field", I);
|
|
438
234
|
//#endregion
|
|
439
235
|
//#region src/utils/formula/render-explanation-tooltip.ts
|
|
440
|
-
var
|
|
236
|
+
var L = {
|
|
441
237
|
numeric: "numeric",
|
|
442
238
|
hierarchy: "hierarchy",
|
|
443
239
|
datetime: "datetime"
|
|
444
240
|
};
|
|
445
|
-
function
|
|
446
|
-
return t ?
|
|
241
|
+
function R(e, t) {
|
|
242
|
+
return t ? v`<code class="tooltip-example">${e.split(/(⟨\w+⟩)/g).map((e) => {
|
|
447
243
|
let t = e.match(/^⟨(\w+)⟩$/);
|
|
448
244
|
if (t) {
|
|
449
|
-
let e =
|
|
450
|
-
if (e) return
|
|
245
|
+
let e = L[t[1]];
|
|
246
|
+
if (e) return v`<span class="example-icon" aria-hidden="true">${_(a({ type: e }, "s"))}</span>`;
|
|
451
247
|
}
|
|
452
248
|
return e;
|
|
453
|
-
})}</code>` :
|
|
249
|
+
})}</code>` : v`<code class="tooltip-example">${e}</code>`;
|
|
454
250
|
}
|
|
455
|
-
function
|
|
456
|
-
return !e && !t ?
|
|
251
|
+
function z(e, t, n) {
|
|
252
|
+
return !e && !t ? y : v`
|
|
457
253
|
<div slot="tooltip" class="explanation-tooltip">
|
|
458
|
-
${e ?
|
|
459
|
-
${t ?
|
|
254
|
+
${e ? v`<span>${e}</span>` : y}
|
|
255
|
+
${t ? R(t, n) : y}
|
|
460
256
|
</div>
|
|
461
257
|
`;
|
|
462
258
|
}
|
|
463
259
|
//#endregion
|
|
464
260
|
//#region src/components/formula-editor/formula-aggregations-list.ts
|
|
465
|
-
var
|
|
466
|
-
function
|
|
467
|
-
return
|
|
261
|
+
var B = s();
|
|
262
|
+
function V(e) {
|
|
263
|
+
return v`
|
|
468
264
|
<div class="list-loading" role="status" part="list-loading">
|
|
469
265
|
<luzmo-progress-circle
|
|
470
266
|
indeterminate
|
|
471
|
-
.label=${
|
|
267
|
+
.label=${C("Loading aggregations", { desc: "Formula editor aggregations list loading spinner label" })}
|
|
472
268
|
.size=${e}
|
|
473
269
|
></luzmo-progress-circle>
|
|
474
270
|
</div>
|
|
475
271
|
`;
|
|
476
272
|
}
|
|
477
|
-
function
|
|
478
|
-
return
|
|
273
|
+
function H({ size: e, explanationTooltips: t, disabled: n }) {
|
|
274
|
+
return v`
|
|
479
275
|
<div class="list-items" part="list-items" role="list">
|
|
480
|
-
${
|
|
276
|
+
${T(c, (e) => e, (r) => v`
|
|
481
277
|
<luzmo-formula-draggable-field
|
|
482
278
|
role="listitem"
|
|
483
279
|
kind="aggregation"
|
|
484
280
|
value=${r}
|
|
485
|
-
.label=${
|
|
281
|
+
.label=${B[r]?.label() ?? r}
|
|
486
282
|
.size=${e}
|
|
487
283
|
?disabled=${n}
|
|
488
284
|
>
|
|
489
|
-
${t ?
|
|
285
|
+
${t ? z(B[r]?.description() ?? "", B[r]?.example() ?? "", B[r]?.exampleHasIcons ?? !1) : y}
|
|
490
286
|
</luzmo-formula-draggable-field>
|
|
491
287
|
`)}
|
|
492
288
|
</div>
|
|
493
289
|
`;
|
|
494
290
|
}
|
|
495
|
-
function
|
|
496
|
-
return
|
|
291
|
+
function U(e) {
|
|
292
|
+
return v`
|
|
497
293
|
<div class="list" part="list aggregations-list">
|
|
498
294
|
<luzmo-field-label class="list-header" part="list-header" .size=${e.size}
|
|
499
|
-
>${
|
|
295
|
+
>${C("Aggregations", { desc: "Formula editor aggregations list title" })}</luzmo-field-label
|
|
500
296
|
>
|
|
501
|
-
${e.loading ?
|
|
297
|
+
${e.loading ? V(e.size) : H(e)}
|
|
502
298
|
</div>
|
|
503
299
|
`;
|
|
504
300
|
}
|
|
505
301
|
//#endregion
|
|
506
302
|
//#region src/components/formula-editor/formula-datasets-list.ts
|
|
507
|
-
function
|
|
303
|
+
function W(e, t, n) {
|
|
508
304
|
let r = t.trim().toLowerCase();
|
|
509
305
|
return r ? e.columns.filter((e) => o(e.name, n).toLowerCase().includes(r)) : e.columns;
|
|
510
306
|
}
|
|
511
|
-
function
|
|
512
|
-
return
|
|
307
|
+
function G(e) {
|
|
308
|
+
return v`
|
|
513
309
|
<div class="list-loading" role="status" part="list-loading">
|
|
514
310
|
<luzmo-progress-circle
|
|
515
311
|
indeterminate
|
|
516
|
-
.label=${
|
|
312
|
+
.label=${C("Loading columns", { desc: "Formula editor datasets list loading spinner label" })}
|
|
517
313
|
.size=${e}
|
|
518
314
|
></luzmo-progress-circle>
|
|
519
315
|
</div>
|
|
520
316
|
`;
|
|
521
317
|
}
|
|
522
|
-
function
|
|
318
|
+
function K(e, t) {
|
|
523
319
|
let { datasets: n, contentLanguage: r, size: i, disabled: a, searchQuery: s, collapsed: c, onToggleCollapse: l, onInsertColumn: u } = e;
|
|
524
|
-
return
|
|
320
|
+
return v`
|
|
525
321
|
<div class="list-scroll" part="list-scroll">
|
|
526
|
-
${
|
|
527
|
-
let n =
|
|
528
|
-
return n.length === 0 ?
|
|
322
|
+
${T(n, (e) => e.id, (e) => {
|
|
323
|
+
let n = W(e, s, r), d = c.has(e.id);
|
|
324
|
+
return n.length === 0 ? y : v`
|
|
529
325
|
<div class="dataset-group" part="dataset-group">
|
|
530
|
-
${t ?
|
|
326
|
+
${t ? v`<button
|
|
531
327
|
class="dataset-group-header"
|
|
532
328
|
part="dataset-group-header"
|
|
533
329
|
type="button"
|
|
@@ -535,12 +331,12 @@ function ve(e, t) {
|
|
|
535
331
|
@click=${() => l(e.id)}
|
|
536
332
|
>
|
|
537
333
|
<span class="dataset-group-icon" aria-hidden="true"
|
|
538
|
-
>${
|
|
334
|
+
>${_(d ? te : ee)}</span
|
|
539
335
|
>
|
|
540
336
|
<span class="dataset-group-label">${o(e.name, r) || e.id}</span>
|
|
541
|
-
</button>` :
|
|
542
|
-
${d ?
|
|
543
|
-
${
|
|
337
|
+
</button>` : y}
|
|
338
|
+
${d ? y : v`<div class="dataset-group-fields" role="list">
|
|
339
|
+
${T(n, (e) => `${e.datasetId}:${e.columnId}`, (e) => v`
|
|
544
340
|
<luzmo-data-field
|
|
545
341
|
role="listitem"
|
|
546
342
|
hide-sublevels
|
|
@@ -558,115 +354,115 @@ function ve(e, t) {
|
|
|
558
354
|
</div>
|
|
559
355
|
`;
|
|
560
356
|
}
|
|
561
|
-
function
|
|
357
|
+
function q(e) {
|
|
562
358
|
let { size: t, loading: n = !1, disabled: r = !1, searchQuery: i, onSearchInput: a } = e, o = e.datasets.length > 1;
|
|
563
|
-
return
|
|
359
|
+
return v`
|
|
564
360
|
<div class="list" part="list datasets-list">
|
|
565
361
|
<luzmo-field-label class="list-header" part="list-header" .size=${t}
|
|
566
|
-
>${
|
|
362
|
+
>${C("Data", {
|
|
567
363
|
id: "formula-datasets-list-title",
|
|
568
364
|
desc: "Formula editor datasets list title"
|
|
569
365
|
})}</luzmo-field-label
|
|
570
366
|
>
|
|
571
367
|
<luzmo-search
|
|
572
368
|
.size=${t}
|
|
573
|
-
.placeholder=${
|
|
369
|
+
.placeholder=${C("Search columns...", { desc: "Formula editor datasets list search placeholder" })}
|
|
574
370
|
.value=${i}
|
|
575
371
|
?disabled=${r || n}
|
|
576
372
|
@input=${a}
|
|
577
373
|
></luzmo-search>
|
|
578
|
-
${n ?
|
|
374
|
+
${n ? G(t) : K(e, o)}
|
|
579
375
|
</div>
|
|
580
376
|
`;
|
|
581
377
|
}
|
|
582
378
|
//#endregion
|
|
583
379
|
//#region src/components/formula-editor/formula-description.ts
|
|
584
|
-
var
|
|
380
|
+
var J = {
|
|
585
381
|
numeric: "numeric",
|
|
586
382
|
hierarchy: "hierarchy",
|
|
587
383
|
datetime: "datetime"
|
|
588
|
-
},
|
|
589
|
-
function
|
|
590
|
-
return t ?
|
|
384
|
+
}, Y = d(), X = s(), ie = f();
|
|
385
|
+
function ae(e, t) {
|
|
386
|
+
return t ? v`<code class="example-code">${e.split(/(⟨\w+⟩)/g).map((e) => {
|
|
591
387
|
let t = e.match(/^⟨(\w+)⟩$/);
|
|
592
388
|
if (t) {
|
|
593
|
-
let e =
|
|
594
|
-
if (e) return
|
|
389
|
+
let e = J[t[1]];
|
|
390
|
+
if (e) return v`<span class="example-icon" aria-hidden="true">${_(a({ type: e }, "s"))}</span>`;
|
|
595
391
|
}
|
|
596
392
|
return e;
|
|
597
|
-
})}</code>` :
|
|
393
|
+
})}</code>` : v`<code class="example-code">${e}</code>`;
|
|
598
394
|
}
|
|
599
|
-
function
|
|
600
|
-
if (!e) return
|
|
395
|
+
function oe(e) {
|
|
396
|
+
if (!e) return v`
|
|
601
397
|
<div class="description-empty" part="description-empty">
|
|
602
|
-
${
|
|
398
|
+
${C("Hover a function or aggregation to see its description.", { desc: "Formula editor description empty state" })}
|
|
603
399
|
</div>
|
|
604
400
|
`;
|
|
605
401
|
if (e.kind === "grouping") {
|
|
606
|
-
let t =
|
|
607
|
-
return
|
|
402
|
+
let t = ie[e.id];
|
|
403
|
+
return v`
|
|
608
404
|
<div class="description-title" part="description-title">${t?.label() ?? e.id}</div>
|
|
609
405
|
<div class="description-text" part="description-text">${t?.description() ?? ""}</div>
|
|
610
406
|
`;
|
|
611
407
|
}
|
|
612
|
-
let t = e.kind === "aggregation" ?
|
|
613
|
-
return t ?
|
|
408
|
+
let t = e.kind === "aggregation" ? X[e.id] : Y[e.id];
|
|
409
|
+
return t ? v`
|
|
614
410
|
<div class="description-title" part="description-title">${t.label()}</div>
|
|
615
|
-
${
|
|
411
|
+
${ae(t.example(), t.exampleHasIcons ?? !1)}
|
|
616
412
|
<div class="description-text" part="description-text">${t.description()}</div>
|
|
617
|
-
` :
|
|
413
|
+
` : y;
|
|
618
414
|
}
|
|
619
|
-
function
|
|
620
|
-
return
|
|
415
|
+
function se({ target: e, size: t }) {
|
|
416
|
+
return v`
|
|
621
417
|
<div class="list description" part="list description-list">
|
|
622
418
|
<luzmo-field-label class="list-header" part="list-header" .size=${t}
|
|
623
|
-
>${
|
|
419
|
+
>${C("Description", { desc: "Formula editor description title" })}</luzmo-field-label
|
|
624
420
|
>
|
|
625
|
-
${
|
|
421
|
+
${oe(e)}
|
|
626
422
|
</div>
|
|
627
423
|
`;
|
|
628
424
|
}
|
|
629
425
|
//#endregion
|
|
630
426
|
//#region src/components/formula-editor/formula-functions-list.ts
|
|
631
|
-
var
|
|
632
|
-
function
|
|
633
|
-
return
|
|
427
|
+
var Z = d();
|
|
428
|
+
function Q(e) {
|
|
429
|
+
return v`
|
|
634
430
|
<div class="list-loading" role="status" part="list-loading">
|
|
635
431
|
<luzmo-progress-circle
|
|
636
432
|
indeterminate
|
|
637
|
-
.label=${
|
|
433
|
+
.label=${C("Loading functions", { desc: "Formula editor functions list loading spinner label" })}
|
|
638
434
|
.size=${e}
|
|
639
435
|
></luzmo-progress-circle>
|
|
640
436
|
</div>
|
|
641
437
|
`;
|
|
642
438
|
}
|
|
643
|
-
function
|
|
644
|
-
return
|
|
439
|
+
function ce(e, { size: t, explanationTooltips: n, disabled: r }) {
|
|
440
|
+
return v`
|
|
645
441
|
<div class="list-items" part="list-items" role="list">
|
|
646
|
-
${
|
|
442
|
+
${T(e, (e) => e, (e) => v`
|
|
647
443
|
<luzmo-formula-draggable-field
|
|
648
444
|
role="listitem"
|
|
649
445
|
kind="function"
|
|
650
446
|
value=${e}
|
|
651
|
-
.label=${
|
|
447
|
+
.label=${Z[e]?.label() ?? e}
|
|
652
448
|
.size=${t}
|
|
653
449
|
?disabled=${r}
|
|
654
450
|
>
|
|
655
|
-
${n ?
|
|
451
|
+
${n ? z(Z[e]?.description() ?? "", Z[e]?.example() ?? "", Z[e]?.exampleHasIcons ?? !1) : y}
|
|
656
452
|
</luzmo-formula-draggable-field>
|
|
657
453
|
`)}
|
|
658
454
|
</div>
|
|
659
455
|
`;
|
|
660
456
|
}
|
|
661
|
-
function
|
|
662
|
-
let { size: t, loading: n = !1, disabled: r = !1, selectedCategory: i, onCategoryChange: a } = e, o =
|
|
457
|
+
function le(e) {
|
|
458
|
+
let { size: t, loading: n = !1, disabled: r = !1, selectedCategory: i, onCategoryChange: a } = e, o = l(), s = o.find((e) => e.key === i) ?? o[0], c = o.map((e) => ({
|
|
663
459
|
value: e.key,
|
|
664
460
|
label: e.title()
|
|
665
461
|
}));
|
|
666
|
-
return
|
|
462
|
+
return v`
|
|
667
463
|
<div class="list" part="list functions-list">
|
|
668
464
|
<luzmo-field-label class="list-header" part="list-header" .size=${t}
|
|
669
|
-
>${
|
|
465
|
+
>${C("Functions", { desc: "Formula editor functions list title" })}</luzmo-field-label
|
|
670
466
|
>
|
|
671
467
|
<luzmo-select
|
|
672
468
|
selects="single"
|
|
@@ -674,29 +470,29 @@ function Oe(e) {
|
|
|
674
470
|
.size=${t}
|
|
675
471
|
.options=${c}
|
|
676
472
|
.value=${[s.key]}
|
|
677
|
-
aria-label=${
|
|
473
|
+
aria-label=${C("Function category", { desc: "Accessible label for the function category selector" })}
|
|
678
474
|
?disabled=${r || n}
|
|
679
475
|
@change=${a}
|
|
680
476
|
></luzmo-select>
|
|
681
|
-
${n ?
|
|
477
|
+
${n ? Q(t) : ce(s.functions, e)}
|
|
682
478
|
</div>
|
|
683
479
|
`;
|
|
684
480
|
}
|
|
685
481
|
//#endregion
|
|
686
482
|
//#region src/components/formula-editor/formula-editor.module.scss?inline
|
|
687
|
-
var
|
|
483
|
+
var ue = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);--luzmo-formula-editor-error-background:color-mix(in srgb, var(--luzmo-negative-color) 10%, var(--luzmo-background-color) 90%);--luzmo-formula-editor-error-text-color:var(--luzmo-font-color);--luzmo-formula-font-size:var(--luzmo-font-size);--luzmo-formula-pill-disclosure-icon-size:var(--luzmo-font-size);--luzmo-formula-grouping-icon-size:var(--luzmo-icon-size-m);--luzmo-formula-control-height:calc(var(--luzmo-component-height) - 2 * var(--luzmo-spacing-1));--formula-editor-lists-height:24rem}:host([size=s]){--luzmo-formula-font-size:var(--luzmo-font-size-s);--luzmo-formula-control-height:calc(var(--luzmo-component-height-s) - 2 * var(--luzmo-spacing-1));--luzmo-formula-grouping-icon-size:var(--luzmo-icon-size-s);--formula-editor-lists-height:20rem}:host([size=l]){--luzmo-formula-font-size:var(--luzmo-font-size-l);--luzmo-formula-control-height:calc(var(--luzmo-component-height-l) - 2 * var(--luzmo-spacing-1));--luzmo-formula-grouping-icon-size:var(--luzmo-icon-size-l);--formula-editor-lists-height:28rem}:host([size=xl]){--luzmo-formula-font-size:var(--luzmo-font-size-xl);--luzmo-formula-control-height:calc(var(--luzmo-component-height-xl) - 2 * var(--luzmo-spacing-1));--luzmo-formula-grouping-icon-size:var(--luzmo-icon-size-xl);--formula-editor-lists-height:32rem}:host{box-sizing:border-box;width:100%;max-width:100%;font-family:var(--luzmo-font-family);color:var(--luzmo-font-color);display:block}.formula-editor{flex-direction:column;width:100%;display:flex}luzmo-formula-codemirror,.formula-codemirror-loading{--luzmo-formula-field-bottom-radius:0;z-index:1;width:100%;position:relative}.error{align-items:flex-start;gap:var(--luzmo-spacing-2);padding:var(--luzmo-spacing-2) var(--luzmo-spacing-3);border:1px solid var(--luzmo-formula-editor-error-color,var(--luzmo-negative-color));background:var(--luzmo-formula-editor-error-background,color-mix(in srgb, var(--luzmo-negative-color) 10%, var(--luzmo-background-color) 90%));color:var(--luzmo-formula-editor-error-text-color,var(--luzmo-font-color));font-size:var(--luzmo-font-size-s);border-block-start:0;line-height:1.4;display:flex}.error svg{flex:none;margin-block-start:.2em}.validating{align-items:center;gap:var(--luzmo-spacing-2);padding:var(--luzmo-spacing-2) var(--luzmo-spacing-3);border:1px solid var(--luzmo-border-color);background:var(--luzmo-background-color);color:var(--luzmo-font-color-extra-dimmed);font-size:var(--luzmo-font-size-s);border-block-start:0;line-height:1.4;display:flex}.lists{box-sizing:border-box;min-height:0;border:1px solid var(--luzmo-border-color);border-block-start:0;border-end-end-radius:var(--luzmo-border-radius);border-end-start-radius:var(--luzmo-border-radius);grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:0;padding-block-start:var(--luzmo-formula-editor-gap,0);display:grid}:host([show-aggregations]) .lists,:host([explanation-display=description]) .lists{grid-template-columns:repeat(3,minmax(0,1fr))}:host([show-aggregations][explanation-display=description]) .lists{grid-template-columns:repeat(4,minmax(0,1fr))}.lists>*{min-width:0;padding:var(--luzmo-formula-editor-list-padding,var(--luzmo-spacing-3));--luzmo-formula-list-height:var(--luzmo-formula-editor-lists-height,var(--formula-editor-lists-height,16rem))}.lists>:not(:last-child){border-inline-end:1px solid var(--luzmo-border-color)}.lists{--list-text-font-size:var(--luzmo-font-size)}:host([size=s]) .lists{--list-text-font-size:var(--luzmo-font-size-s)}:host([size=l]) .lists{--list-text-font-size:var(--luzmo-font-size-l)}:host([size=xl]) .lists{--list-text-font-size:var(--luzmo-font-size-xl)}.lists .list{gap:var(--luzmo-spacing-2);min-height:0;height:var(--luzmo-formula-list-height,100%);box-sizing:border-box;flex-direction:column;display:flex}.lists .list-header{flex-shrink:0;margin-block-end:var(--luzmo-spacing-1);display:block}.lists .list-items{gap:var(--luzmo-spacing-1);flex-direction:column;align-content:flex-start;min-height:0;display:flex;overflow-y:auto}.lists .list-items::-webkit-scrollbar{width:var(--luzmo-scrollbar-width,6px)}.lists .list-items::-webkit-scrollbar-track{background:var(--luzmo-scrollbar-track-background,transparent);border-radius:var(--luzmo-scrollbar-track-border-radius,4px)}.lists .list-items::-webkit-scrollbar-thumb{background:var(--luzmo-scrollbar-thumb-background,#0003);border-radius:var(--luzmo-scrollbar-thumb-border-radius,4px)}.lists .list-items::-webkit-scrollbar-thumb:hover{background:var(--luzmo-scrollbar-thumb-hover-background,#00000059)}.lists .list-items{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-scrollbar-thumb-background,#0003) var(--luzmo-scrollbar-track-background,transparent)}.lists .list-scroll{gap:var(--luzmo-spacing-2,.5rem);flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden auto}.lists .list-scroll::-webkit-scrollbar{width:var(--luzmo-scrollbar-width,6px)}.lists .list-scroll::-webkit-scrollbar-track{background:var(--luzmo-scrollbar-track-background,transparent);border-radius:var(--luzmo-scrollbar-track-border-radius,4px)}.lists .list-scroll::-webkit-scrollbar-thumb{background:var(--luzmo-scrollbar-thumb-background,#0003);border-radius:var(--luzmo-scrollbar-thumb-border-radius,4px)}.lists .list-scroll::-webkit-scrollbar-thumb:hover{background:var(--luzmo-scrollbar-thumb-hover-background,#00000059)}.lists .list-scroll{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-scrollbar-thumb-background,#0003) var(--luzmo-scrollbar-track-background,transparent)}.lists luzmo-select,.lists luzmo-search{width:100%}.lists .list-loading{min-height:0;padding:var(--luzmo-spacing-4);flex:1;justify-content:center;align-items:center;display:flex}.lists .dataset-group{gap:var(--luzmo-spacing-1);flex-direction:column;display:flex}.lists .dataset-group-header{align-items:center;gap:var(--luzmo-spacing-1);width:100%;padding:var(--luzmo-spacing-1) 0;color:var(--luzmo-font-color-extra-dimmed);font:inherit;font-size:var(--list-text-font-size);font-weight:var(--luzmo-font-weight-bold);text-align:start;cursor:pointer;background:0 0;border:none;display:flex}.lists .dataset-group-fields{gap:var(--luzmo-spacing-1);flex-direction:column;display:flex}.lists .dataset-group-fields luzmo-data-field{--luzmo-data-field-level-border-width:0;--luzmo-data-field-level-background-color:transparent;--luzmo-data-field-level-horizontal-padding:var(--luzmo-spacing-3);--luzmo-data-field-level-gap:var(--luzmo-spacing-3);--luzmo-data-field-level-background-color-hover:var(--luzmo-formula-editor-data-field-background-color-hover,var(--luzmo-background-color-highlight));--luzmo-data-field-level-border-color-hover:var(--luzmo-formula-editor-data-field-border-color-hover,var(--luzmo-background-color-highlight));--luzmo-data-field-level-background-color-active:var(--luzmo-formula-editor-data-field-background-color-active,var(--luzmo-background-color-highlight-down));--luzmo-data-field-level-border-color-active:var(--luzmo-formula-editor-data-field-border-color-active,var(--luzmo-background-color-highlight-down));--luzmo-data-field-level-background-color-focus-visible:var(--luzmo-formula-editor-data-field-background-color-focus,var(--luzmo-background-color-highlight-focus))}.lists .description{gap:var(--luzmo-spacing-2)}.lists .description-title{font-weight:var(--luzmo-font-weight-bold);font-size:var(--list-text-font-size)}.lists .description-text{font-size:var(--list-text-font-size);color:var(--luzmo-font-color-extra-dimmed);line-height:1.4}.lists .description-empty{font-size:var(--list-text-font-size);color:var(--luzmo-font-color-tertiary,#767676);font-style:italic}.lists .example-code{align-items:center;gap:var(--luzmo-spacing-1);padding:var(--luzmo-spacing-2);border-radius:var(--luzmo-border-radius-s);background-color:var(--luzmo-background-color-highlight);font-family:var(--luzmo-font-family-mono,monospace);font-size:var(--list-text-font-size);flex-wrap:wrap;display:inline-flex}.lists .example-icon{vertical-align:middle;display:inline-flex}.lists .explanation-tooltip{gap:var(--luzmo-spacing-2);text-align:start;flex-direction:column;display:flex}.lists .explanation-tooltip .tooltip-example{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,Liberation Mono,monospace;font-weight:var(--luzmo-font-weight-bold,700);white-space:pre-wrap;display:block}.lists .explanation-tooltip .example-icon{display:inline}", de = 750, $ = class extends h {
|
|
688
484
|
constructor(...e) {
|
|
689
485
|
super(...e), this.expressionResource = "formula", this.explanationDisplay = "tooltip", this._loadingDatasets = !1, this._describeTarget = null, this._validity = {
|
|
690
486
|
valid: !0,
|
|
691
487
|
error: null,
|
|
692
488
|
validating: !1
|
|
693
|
-
}, this._selectedCategory = "string", this._searchQuery = "", this._collapsedDatasets = /* @__PURE__ */ new Set(), this._validWordIdentifiers =
|
|
489
|
+
}, this._selectedCategory = "string", this._searchQuery = "", this._collapsedDatasets = /* @__PURE__ */ new Set(), this._validWordIdentifiers = M(this._store.functionDataMap, this._store.aggregationFunctionDataMap), this._validationSequence = 0;
|
|
694
490
|
}
|
|
695
491
|
static {
|
|
696
|
-
this.styles =
|
|
492
|
+
this.styles = b(ue);
|
|
697
493
|
}
|
|
698
494
|
get _emitDebounceMs() {
|
|
699
|
-
return
|
|
495
|
+
return de;
|
|
700
496
|
}
|
|
701
497
|
_onExpressionComputed(e) {
|
|
702
498
|
e !== this._lastEmittedExpression && (this._validate(e), this._emitExpressionChanged(e));
|
|
@@ -744,11 +540,11 @@ var ke = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
744
540
|
_localValidity(e) {
|
|
745
541
|
return e.trim() ? e.includes("##EMPTYARG-") ? {
|
|
746
542
|
valid: !1,
|
|
747
|
-
error:
|
|
543
|
+
error: C("Complete all empty arguments.", { desc: "Formula editor validation error for empty arguments" }),
|
|
748
544
|
validating: !1
|
|
749
|
-
} :
|
|
545
|
+
} : u.test(e) ? {
|
|
750
546
|
valid: !1,
|
|
751
|
-
error:
|
|
547
|
+
error: C("Provide a value for every aggregation.", { desc: "Formula editor validation error for empty aggregations" }),
|
|
752
548
|
validating: !1
|
|
753
549
|
} : {
|
|
754
550
|
valid: !0,
|
|
@@ -761,10 +557,10 @@ var ke = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
761
557
|
};
|
|
762
558
|
}
|
|
763
559
|
_offlineValidity(e) {
|
|
764
|
-
let t =
|
|
560
|
+
let t = N(e, this._validWordIdentifiers);
|
|
765
561
|
return t ? {
|
|
766
562
|
valid: !1,
|
|
767
|
-
error:
|
|
563
|
+
error: C(w`'${t}' is not a valid column, function, or value.`, { desc: "Formula editor validation error for unresolved free text in the expression" }),
|
|
768
564
|
validating: !1
|
|
769
565
|
} : {
|
|
770
566
|
valid: !0,
|
|
@@ -818,21 +614,21 @@ var ke = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
818
614
|
} : null;
|
|
819
615
|
}
|
|
820
616
|
_renderLists() {
|
|
821
|
-
if (this.readonly) return
|
|
617
|
+
if (this.readonly) return y;
|
|
822
618
|
let e = this.explanationDisplay === "tooltip";
|
|
823
|
-
return
|
|
619
|
+
return v`
|
|
824
620
|
<div
|
|
825
621
|
class="lists"
|
|
826
622
|
part="lists"
|
|
827
623
|
@luzmo-formula-draggable-field-activate=${this._handleDraggableActivate}
|
|
828
624
|
@luzmo-formula-draggable-field-describe=${this._handleDraggableDescribe}
|
|
829
625
|
>
|
|
830
|
-
${this.showAggregations ?
|
|
626
|
+
${this.showAggregations ? U({
|
|
831
627
|
explanationTooltips: e,
|
|
832
628
|
loading: this._loadingDatasets,
|
|
833
629
|
size: this.size
|
|
834
|
-
}) :
|
|
835
|
-
${
|
|
630
|
+
}) : y}
|
|
631
|
+
${q({
|
|
836
632
|
datasets: this._datasets,
|
|
837
633
|
loading: this._loadingDatasets,
|
|
838
634
|
contentLanguage: this.contentLanguage,
|
|
@@ -843,14 +639,14 @@ var ke = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
843
639
|
onToggleCollapse: (e) => this._toggleCollapse(e),
|
|
844
640
|
onInsertColumn: (e) => this._insertColumn(e)
|
|
845
641
|
})}
|
|
846
|
-
${
|
|
642
|
+
${le({
|
|
847
643
|
explanationTooltips: e,
|
|
848
644
|
loading: this._loadingDatasets,
|
|
849
645
|
size: this.size,
|
|
850
646
|
selectedCategory: this._selectedCategory,
|
|
851
647
|
onCategoryChange: (e) => this._handleCategoryChange(e)
|
|
852
648
|
})}
|
|
853
|
-
${e ?
|
|
649
|
+
${e ? y : se({
|
|
854
650
|
target: this._describeTarget,
|
|
855
651
|
size: this.size
|
|
856
652
|
})}
|
|
@@ -858,21 +654,21 @@ var ke = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
858
654
|
`;
|
|
859
655
|
}
|
|
860
656
|
_renderValidationFeedback() {
|
|
861
|
-
return this._validity.validating ?
|
|
657
|
+
return this._validity.validating ? v`<div class="validating" part="validating" role="status" aria-live="polite">
|
|
862
658
|
<luzmo-progress-circle
|
|
863
659
|
indeterminate
|
|
864
660
|
size="s"
|
|
865
|
-
.label=${
|
|
661
|
+
.label=${C("Validating formula", { desc: "Formula editor spinner label shown while the expression is being validated" })}
|
|
866
662
|
></luzmo-progress-circle>
|
|
867
|
-
<span>${
|
|
868
|
-
</div>` : !this._validity.valid && this._validity.error ?
|
|
869
|
-
${
|
|
663
|
+
<span>${C("Validating…", { desc: "Formula editor status text shown while the expression is being validated" })}</span>
|
|
664
|
+
</div>` : !this._validity.valid && this._validity.error ? v`<div class="error" part="error" role="alert">
|
|
665
|
+
${_(g)}
|
|
870
666
|
<span>${this._validity.error}</span>
|
|
871
|
-
</div>` :
|
|
667
|
+
</div>` : y;
|
|
872
668
|
}
|
|
873
669
|
render() {
|
|
874
670
|
let e = !this._validity.valid && !!this._validity.error && !this._validity.validating;
|
|
875
|
-
return
|
|
671
|
+
return v`
|
|
876
672
|
<div class="formula-editor" part="formula-editor">
|
|
877
673
|
${this._renderFormulaCodeMirror({ hasError: e })} ${this._renderValidationFeedback()}
|
|
878
674
|
${this._renderLists()}
|
|
@@ -882,14 +678,14 @@ var ke = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
882
678
|
};
|
|
883
679
|
//#endregion
|
|
884
680
|
//#region src/components/formula-editor/index.ts
|
|
885
|
-
r([
|
|
681
|
+
r([x({
|
|
886
682
|
type: String,
|
|
887
683
|
attribute: "expression-resource",
|
|
888
684
|
reflect: !0
|
|
889
|
-
})], $.prototype, "expressionResource", void 0), r([
|
|
685
|
+
})], $.prototype, "expressionResource", void 0), r([x({
|
|
890
686
|
type: String,
|
|
891
687
|
attribute: "explanation-display",
|
|
892
688
|
reflect: !0
|
|
893
|
-
})], $.prototype, "explanationDisplay", void 0), r([
|
|
689
|
+
})], $.prototype, "explanationDisplay", void 0), r([S()], $.prototype, "_loadingDatasets", void 0), r([S()], $.prototype, "_describeTarget", void 0), r([S()], $.prototype, "_validity", void 0), r([S()], $.prototype, "_selectedCategory", void 0), r([S()], $.prototype, "_searchQuery", void 0), r([S()], $.prototype, "_collapsedDatasets", void 0), $ = r([re()], $), customElements.get("luzmo-formula-editor") || customElements.define("luzmo-formula-editor", $);
|
|
894
690
|
//#endregion
|
|
895
|
-
export {
|
|
691
|
+
export { $ as t };
|