@luzmo/analytics-components-kit 1.0.3 → 1.0.4-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 +1 -1
- package/components/ai-chat/ai-chat-events.d.ts +123 -0
- package/components/ai-chat/ai-chat-request.d.ts +11 -0
- package/components/ai-chat/ai-chat.d.ts +279 -0
- package/components/ai-chat/ai-prompt-types.d.ts +94 -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/index.cjs +20 -0
- package/components/ai-chat/index.d.ts +20 -0
- package/components/ai-chat/index.js +28 -0
- package/components/ai-chat/session/ai-chat-session-controller.d.ts +51 -0
- package/components/ai-chat/session/ai-chat-session-types.d.ts +88 -0
- package/components/ai-chat/session/ai-chat-session.d.ts +91 -0
- package/components/ai-chat/session/index.d.ts +2 -0
- package/components/ai-chat/stream/chunk-extractors.d.ts +27 -0
- package/components/ai-chat/stream/index.d.ts +52 -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 +55 -0
- package/components/ai-chat-BMDfKnEj.cjs +258 -0
- package/components/ai-chat-Cd26aDpX.js +3718 -0
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +135 -0
- package/components/ai-interaction-textarea/index.cjs +20 -0
- package/components/ai-interaction-textarea/index.d.ts +8 -0
- package/components/ai-interaction-textarea/index.js +28 -0
- package/components/ai-interaction-textarea/types.d.ts +5 -0
- package/components/ai-interaction-textarea-CPfJqTB0.cjs +68 -0
- package/components/ai-interaction-textarea-DkBglh6Q.js +299 -0
- package/components/{area-chart-options.config-CU6FV2Zl.js → area-chart-options.config-4OY_kXkB.js} +1 -1
- package/components/{area-chart-positioning.config-DRyIQjFn.js → area-chart-positioning.config-CAPrtEZW.js} +1 -1
- package/components/{area-chart-positioning.config-Y_6E7SvI.cjs → area-chart-positioning.config-CfC43YUW.cjs} +1 -1
- package/components/{area-chart-slots.config-DPuSQAQa.js → area-chart-slots.config--pd_dBTn.js} +1 -1
- package/components/{bar-chart-options.config-NGKHlChC.js → bar-chart-options.config-C3puwFpi.js} +1 -1
- package/components/{bar-chart-positioning.config-qTk0gXbd.js → bar-chart-positioning.config-C1MLYyl9.js} +1 -1
- package/components/{bar-chart-positioning.config-DXS8KSTz.cjs → bar-chart-positioning.config-vJOALpQP.cjs} +1 -1
- package/components/{bar-chart-slots.config-C6CGWcGz.js → bar-chart-slots.config-Dr7v4xxd.js} +1 -1
- package/components/{base-DoCXVulO.js → base-B_wdCOxV.js} +3 -2
- package/components/base-kQ6cjcIZ.cjs +20 -0
- package/components/{box-plot-options.config-Bh9txvcB.js → box-plot-options.config-B486nCds.js} +1 -1
- package/components/{box-plot-positioning.config-yAg3VqZJ.js → box-plot-positioning.config-CA27sCpO.js} +1 -1
- package/components/{box-plot-positioning.config-NwxT5LtO.cjs → box-plot-positioning.config-DVNeh9kg.cjs} +1 -1
- package/components/{box-plot-slots.config-Bk8naosI.js → box-plot-slots.config-Bdb7pkky.js} +1 -1
- package/components/{bubble-chart-options.config-Djw_bUxZ.js → bubble-chart-options.config-BymUqNR5.js} +1 -1
- package/components/{bubble-chart-positioning.config-C_tWwbjm.cjs → bubble-chart-positioning.config-Dg92VJnB.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-B2fMLimr.js → bubble-chart-positioning.config-OlbBZU4m.js} +1 -1
- package/components/{bubble-chart-slots.config-DR7Uz54G.js → bubble-chart-slots.config-B4tsJDuz.js} +1 -1
- package/components/{bullet-chart-options.config-DGmdW4q4.js → bullet-chart-options.config-BtyRdRk2.js} +1 -1
- package/components/{bullet-chart-positioning.config-B94J7_4d.cjs → bullet-chart-positioning.config-BwqxpSSL.cjs} +1 -1
- package/components/{bullet-chart-positioning.config-DmP7TvxA.js → bullet-chart-positioning.config-Y18yvzoc.js} +1 -1
- package/components/{bullet-chart-slots.config-DbzsDrUl.js → bullet-chart-slots.config-ccCSNJ5q.js} +1 -1
- package/components/{choropleth-map-options.config-zZOpXVaM.js → choropleth-map-options.config-CqCciAvW.js} +1 -1
- package/components/{choropleth-map-positioning.config-9MmmbjBg.js → choropleth-map-positioning.config-Dmzy3fMc.js} +1 -1
- package/components/{choropleth-map-positioning.config-BzsmeLhM.cjs → choropleth-map-positioning.config-y-bYMoxr.cjs} +1 -1
- package/components/{choropleth-map-slots.config-CRdWjaCE.js → choropleth-map-slots.config-X2YYrSXc.js} +1 -1
- package/components/{circle-pack-chart-options.config-CopW_8_S.js → circle-pack-chart-options.config-D9C-ltHA.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-B_UwdpKt.js → circle-pack-chart-positioning.config-YDdY2cc2.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-DiNINE6m.cjs → circle-pack-chart-positioning.config-wKIQDFe8.cjs} +1 -1
- package/components/{circle-pack-chart-slots.config-BBCVJM7e.js → circle-pack-chart-slots.config-BIO1dZsK.js} +1 -1
- package/components/{circular-gauge-options.config-gtbMbogY.js → circular-gauge-options.config-De6SlTLT.js} +1 -1
- package/components/{circular-gauge-positioning.config-DVrt25rr.js → circular-gauge-positioning.config-C41euPS9.js} +1 -1
- package/components/{circular-gauge-positioning.config-CIsU-S4V.cjs → circular-gauge-positioning.config-CKNanoFX.cjs} +1 -1
- package/components/{circular-gauge-slots.config-DNnzoRev.js → circular-gauge-slots.config-Dv_7fAD_.js} +1 -1
- package/components/{column-chart-options.config-BKtKoP3J.js → column-chart-options.config-5Dbg3FmH.js} +1 -1
- package/components/{column-chart-positioning.config-COxTPiE_.js → column-chart-positioning.config-BdyuErF8.js} +1 -1
- package/components/{column-chart-positioning.config-C7uLfFA-.cjs → column-chart-positioning.config-Enx15Dqh.cjs} +1 -1
- package/components/{column-chart-slots.config-C6c-fKz2.js → column-chart-slots.config-eHvTwZLX.js} +1 -1
- package/components/{combination-chart-options.config-B1GjRnKL.js → combination-chart-options.config-BzmLGCal.js} +1 -1
- package/components/{combination-chart-positioning.config-DdWD2qhF.js → combination-chart-positioning.config-BQRn0EfF.js} +1 -1
- package/components/{combination-chart-positioning.config-B6W7EIix.cjs → combination-chart-positioning.config-CqlKA__j.cjs} +1 -1
- package/components/{combination-chart-slots.config-DNXQAw4U.js → combination-chart-slots.config-CG40JjE3.js} +1 -1
- package/components/{conditional-number-options.config-C3dodtlk.js → conditional-number-options.config-CVgV7s7f.js} +1 -1
- package/components/{conditional-number-positioning.config-7RAsw-TT.js → conditional-number-positioning.config-BBivi4ps.js} +1 -1
- package/components/{conditional-number-positioning.config-D5mpM8sp.cjs → conditional-number-positioning.config-CR45rPru.cjs} +1 -1
- package/components/{conditional-number-slots.config-BTpG1Uv3.js → conditional-number-slots.config-o22l-qLv.js} +1 -1
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.js +1 -1
- package/components/data-field-CAGprHjS.cjs +54 -0
- package/components/data-field-CLfUWgK9.js +121 -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 +28 -0
- package/components/data-field-level-7qi9K__S.cjs +55 -0
- package/components/{data-field-zG8ljDJR.js → data-field-level-CfJ0dmxo.js} +48 -141
- package/components/data-field-panel/index.cjs +1 -1
- package/components/data-field-panel/index.js +1 -1
- package/components/data-field-panel-DUc8y4WA.cjs +87 -0
- package/components/{data-field-panel-DAkWBcEK.js → data-field-panel-N7mukLj6.js} +4 -3
- package/components/data-fields-select/data-fields-select.d.ts +127 -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 +28 -0
- package/components/data-fields-select/types.d.ts +4 -0
- package/components/{data-fields-select-DF6uZ8No.js → data-fields-select-B1pwPYt6.js} +2 -1
- package/components/data-fields-select-qCWuzckJ.cjs +41 -0
- 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/dataset-icon/index.js +28 -0
- package/components/dataset-icon/types.d.ts +11 -0
- package/components/dataset-icon-BAV0S4sZ.cjs +64 -0
- package/components/dataset-icon-CWT5Ju8w.js +125 -0
- package/components/dataset-selector-list/dataset-selector-list.d.ts +102 -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 +28 -0
- package/components/dataset-selector-list-BPBZ04Lf.cjs +75 -0
- package/components/dataset-selector-list-DmajZuNC.js +313 -0
- package/components/dataset-selector-row/dataset-selector-row.d.ts +89 -0
- package/components/dataset-selector-row/index.cjs +20 -0
- package/components/dataset-selector-row/index.d.ts +8 -0
- package/components/dataset-selector-row/index.js +28 -0
- package/components/dataset-selector-row-SJzYIpO6.js +273 -0
- package/components/dataset-selector-row-qxfmcxpm.cjs +79 -0
- package/components/{date-comparison-filter-options.config-DANevgy_.js → date-comparison-filter-options.config-BJg_WqL4.js} +1 -1
- package/components/{date-comparison-filter-slots.config-WBp-r2dH.js → date-comparison-filter-slots.config-BIK5aZ6P.js} +1 -1
- package/components/{date-filter-options.config-BRI2SLGy.js → date-filter-options.config-N6eGgPGL.js} +1 -1
- package/components/{date-filter-slots.config-CWkGrxOt.js → date-filter-slots.config-CJJ4P0v6.js} +1 -1
- 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-DoA4mVsP.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 +98 -0
- package/components/display-settings/index.cjs +20 -0
- package/components/display-settings/index.d.ts +8 -0
- package/components/display-settings/index.js +28 -0
- package/components/display-settings/types.d.ts +9 -0
- package/components/display-settings-CkkjJjem.js +272 -0
- package/components/display-settings-DnzOjr-1.cjs +120 -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 +28 -0
- package/components/{display-settings-binning-Cm1rU9_g.js → display-settings-binning-BohjN2qK.js} +17 -19
- package/components/{display-settings-binning-D-p-PsFV.cjs → display-settings-binning-C7-gByrp.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 +28 -0
- package/components/{display-settings-datetime-BOdXtbJg.js → display-settings-datetime-7pUcku_h.js} +69 -71
- package/components/display-settings-datetime-DL0Qcz8Y.cjs +217 -0
- 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 +28 -0
- package/components/{display-settings-grand-totals-C1VhigDX.js → display-settings-grand-totals-CV5guBhH.js} +17 -19
- package/components/display-settings-grand-totals-DHQSZqMI.cjs +44 -0
- 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 +28 -0
- package/components/display-settings-numeric--5zk8_7K.cjs +190 -0
- package/components/{display-settings-numeric-CppfYXI6.js → display-settings-numeric-D2LjMepO.js} +79 -81
- package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +68 -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/display-settings-period-over-period/index.js +28 -0
- package/components/display-settings-period-over-period-BE22oHvV.cjs +229 -0
- package/components/{display-settings-period-over-period-D1IPvtak.js → display-settings-period-over-period-sqZU6Zj_.js} +83 -84
- package/components/{donut-chart-options.config-CvSa4vvo.js → donut-chart-options.config-C66yOoed.js} +1 -1
- package/components/{donut-chart-positioning.config-CA93p_1i.cjs → donut-chart-positioning.config-B9sm4yFV.cjs} +1 -1
- package/components/{donut-chart-positioning.config-6nbFr06e.js → donut-chart-positioning.config-DtaPAgXE.js} +1 -1
- package/components/{donut-chart-slots.config-Hzx_LiNh.js → donut-chart-slots.config-2XbT9Uu8.js} +1 -1
- package/components/{dropdown-filter-options.config-BBYNqiB8.js → dropdown-filter-options.config-Cm_wK0mn.js} +1 -1
- package/components/{dropdown-filter-slots.config-vJX4At6j.js → dropdown-filter-slots.config-CnESCGuw.js} +1 -1
- package/components/{en-US-PSeMMGzt.js → en-CcLhGxIh.js} +1 -1
- package/components/{en-GB-m6liqSlO.js → en-GB-DzkdeUQh.js} +1 -1
- package/components/en-GB-uxY5qmIM.cjs +20 -0
- package/components/{en-PSeMMGzt.js → en-US-CcLhGxIh.js} +1 -1
- package/components/{en-US-Cxu7QI9q.cjs → en-US-q_Ruzags.cjs} +1 -1
- package/components/{en-Cxu7QI9q.cjs → en-q_Ruzags.cjs} +1 -1
- package/components/{evolution-number-options.config-Cjj2PxvX.js → evolution-number-options.config-07Jd0oUL.js} +1 -1
- package/components/{evolution-number-positioning.config-B1YadWnr.cjs → evolution-number-positioning.config-DVXhBZYj.cjs} +1 -1
- package/components/{evolution-number-positioning.config-Ctl0F_-h.js → evolution-number-positioning.config-v8_6kB1H.js} +1 -1
- package/components/{evolution-number-slots.config-C820wN9Q.js → evolution-number-slots.config-BKdD3cKw.js} +1 -1
- package/components/filter-expression-picker/filter-expression-picker.d.ts +73 -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 +28 -0
- package/components/filter-expression-picker-CF4Otpll.cjs +38 -0
- package/components/filter-expression-picker-DCrCAIhg.js +425 -0
- package/components/filter-item/filter-item.d.ts +84 -0
- package/components/filter-item/index.cjs +20 -0
- package/components/filter-item/index.d.ts +7 -0
- package/components/filter-item/index.js +28 -0
- package/components/filter-item-BjRerEjB.cjs +58 -0
- package/components/filter-item-D2Dct0a3.js +242 -0
- package/components/filter-parameter-picker/filter-parameter-picker.d.ts +25 -0
- package/components/filter-parameter-picker/index.cjs +22 -0
- package/components/filter-parameter-picker/index.d.ts +7 -0
- package/components/filter-parameter-picker/index.js +58 -0
- package/components/filter-value-picker/filter-value-picker.d.ts +65 -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 +28 -0
- package/components/filter-value-picker-CCKV4PWs.js +151 -0
- package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +42 -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 +28 -0
- package/components/filter-value-picker-datetime-CFCV2jkK.js +139 -0
- package/components/filter-value-picker-datetime-D20WnWar.cjs +42 -0
- package/components/filter-value-picker-enC3f3ja.cjs +60 -0
- package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +81 -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 +28 -0
- package/components/filter-value-picker-hierarchy-Drrm1ncu.cjs +47 -0
- package/components/filter-value-picker-hierarchy-ktVBIpcS.js +232 -0
- package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +82 -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 +28 -0
- package/components/filter-value-picker-numeric-BYspQRSi.js +219 -0
- package/components/filter-value-picker-numeric-BtZaQvkr.cjs +48 -0
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -1
- package/components/filters-CfH_4MKZ.cjs +150 -0
- package/components/filters-Ew0ARuxD.js +400 -0
- package/components/formatter-BeXmurVe.cjs +20 -0
- package/components/{slots-config-CA1x9W3U.js → formatter-Cq5dFCyU.js} +314 -392
- package/components/formula/formula.d.ts +66 -0
- package/components/formula/index.cjs +20 -0
- package/components/formula/index.d.ts +7 -0
- package/components/formula/index.js +28 -0
- package/components/formula-BPHH_GKB.cjs +45 -0
- package/components/formula-DYdcMG-v.js +138 -0
- 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-CFgPlkN8.cjs +215 -0
- package/components/{formula-codemirror-CxRJdjY0.js → formula-codemirror-CQonNhmd.js} +38 -34
- package/components/formula-display-store-BGzj13Cs.js +1086 -0
- package/components/formula-display-store-DFAvw21p.cjs +20 -0
- 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/formula-aggregations-list.d.ts +21 -0
- package/components/formula-editor/formula-datasets-list.d.ts +37 -0
- package/components/formula-editor/formula-description.d.ts +17 -0
- package/components/formula-editor/formula-editor.d.ts +70 -0
- package/components/formula-editor/formula-functions-list.d.ts +28 -0
- package/components/formula-editor/index.cjs +20 -0
- package/components/formula-editor/index.d.ts +12 -0
- package/components/formula-editor/index.js +30 -0
- package/components/formula-editor-CtCvJkyS.cjs +218 -0
- package/components/formula-editor-KXxQlh2n.js +666 -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 +28 -0
- package/components/formula-field-OcD4TWAn.js +40 -0
- package/components/formula-field-aiqX7nRp.cjs +20 -0
- package/components/formula-input-base-CGe2ABn6.cjs +49 -0
- package/components/formula-input-base-CQPGmISj.js +236 -0
- package/components/{funnel-chart-options.config-CkIVYUyD.js → funnel-chart-options.config-PV1Hlu91.js} +1 -1
- package/components/{funnel-chart-positioning.config-CWK690yC.js → funnel-chart-positioning.config-BT-YoTgv.js} +1 -1
- package/components/{funnel-chart-positioning.config-BIQQ-zpo.cjs → funnel-chart-positioning.config-C5Z3JkuS.cjs} +1 -1
- package/components/{funnel-chart-slots.config-Bbc6r1GZ.js → funnel-chart-slots.config-_9HUPvTb.js} +1 -1
- package/components/get-css-variable-CBXsAxR6.cjs +20 -0
- package/components/get-css-variable-DYnldi15.js +63 -0
- package/components/get-dataset-name-BGCvfcdY.js +27 -0
- package/components/get-dataset-name-EkeeFzI3.cjs +20 -0
- package/components/groupings-CrE-yp0S.js +52 -0
- package/components/groupings-dIFi0bJY.cjs +20 -0
- package/components/{heat-map-options.config-Bxj7M6kg.js → heat-map-options.config-CQY6t9AL.js} +1 -1
- package/components/{heat-map-positioning.config-BQpzkXu3.js → heat-map-positioning.config-BpFis567.js} +1 -1
- package/components/{heat-map-positioning.config-BDbBf5RD.cjs → heat-map-positioning.config-HPftgmdz.cjs} +1 -1
- package/components/{heat-map-slots.config-CIYZdLGb.js → heat-map-slots.config-B4AswVSo.js} +1 -1
- package/components/{heat-table-options.config-C_PDicoC.js → heat-table-options.config-IlVPk4Q4.js} +1 -1
- package/components/{heat-table-positioning.config-By__Tq90.js → heat-table-positioning.config-Canc3aEE.js} +1 -1
- package/components/{heat-table-positioning.config-DQKFXpJS.cjs → heat-table-positioning.config-wkrm8Fbk.cjs} +1 -1
- package/components/{heat-table-slots.config-fst7kAtH.js → heat-table-slots.config-CB509zU4.js} +1 -1
- package/components/{hexbin-map-options.config-DJZZZixE.js → hexbin-map-options.config-vzw6ovva.js} +1 -1
- package/components/{hexbin-map-positioning.config-X6OyNJIR.js → hexbin-map-positioning.config-CBv6Lij5.js} +1 -1
- package/components/{marker-map-positioning.config-I-HDmH_i.cjs → hexbin-map-positioning.config-D0hAchxV.cjs} +1 -1
- package/components/{hexbin-map-slots.config-3HLwV8OK.js → hexbin-map-slots.config-Dyse0pui.js} +1 -1
- package/components/icon-element-DpN-9yaN.cjs +20 -0
- package/components/icon-element-_jY440X2.js +85 -0
- package/components/{image-options.config-b1hHO_hu.js → image-options.config-Cmrsd8Yu.js} +1 -1
- package/components/{image-slots.config-C8cFYfbC.js → image-slots.config-CVj-DM07.js} +1 -1
- package/components/index.cjs +1 -719
- package/components/index.js +63 -6684
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +1 -1
- package/components/{item-grid-BON-D2gT.cjs → item-grid-BXZXJV3g.cjs} +50 -50
- package/components/{item-grid-D0dZeOjJ.js → item-grid-uWM-Unjx.js} +2 -1
- 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 -1
- package/components/item-option-CEwjJc1p.cjs +252 -0
- package/components/item-option-action-button-group/index.cjs +1 -1
- package/components/item-option-action-button-group/index.js +1 -1
- package/components/{item-option-action-button-group-S1d63U_p.js → item-option-action-button-group-BOxQFfBF.js} +2 -2
- package/components/item-option-action-button-group-DXCVJqpt.cjs +53 -0
- package/components/item-option-base/item-option-base.d.ts +23 -0
- package/components/item-option-base-DKieCS-Y.cjs +56 -0
- package/components/{item-option-base-xqDg3z0y.js → item-option-base-Dr5-WxZ9.js} +2 -2
- package/components/item-option-color-palette-picker/index.cjs +1 -1
- package/components/item-option-color-palette-picker/index.js +1 -1
- package/components/item-option-color-palette-picker-7vSSpj5o.cjs +40 -0
- package/components/{item-option-color-palette-picker-Jpzlm0hc.js → item-option-color-palette-picker-D_mABGWh.js} +2 -2
- package/components/item-option-color-picker/index.cjs +1 -1
- package/components/item-option-color-picker/index.js +1 -1
- package/components/{item-option-color-picker-CD6rbfp3.js → item-option-color-picker-COLBYeRy.js} +2 -2
- package/components/{item-option-color-picker-BxSV4n8r.cjs → item-option-color-picker-DMyNeD2e.cjs} +2 -2
- package/components/item-option-color-range/index.cjs +1 -1
- package/components/item-option-color-range/index.js +1 -1
- package/components/item-option-color-range-BFr0B6Vf.cjs +98 -0
- package/components/{item-option-color-range-Ds8fbTLQ.js → item-option-color-range-CueVlyT2.js} +2 -2
- package/components/item-option-multi-language-field/index.cjs +1 -1
- package/components/item-option-multi-language-field/index.js +1 -1
- package/components/{item-option-multi-language-field-CzKPujJ2.js → item-option-multi-language-field-CMuQwrwQ.js} +2 -2
- package/components/{item-option-multi-language-field-CwVNF00e.cjs → item-option-multi-language-field-q7txF5xA.cjs} +2 -2
- package/components/item-option-number-field/index.cjs +1 -1
- package/components/item-option-number-field/index.js +1 -1
- package/components/{item-option-number-field-CMEF1_zC.js → item-option-number-field-BODNSx66.js} +2 -2
- package/components/{item-option-number-field-D9SNipL9.cjs → item-option-number-field-DWeJWUxY.cjs} +2 -2
- package/components/item-option-panel/index.cjs +1 -1
- package/components/item-option-panel/index.js +1 -1
- package/components/{item-option-panel-CFVzIar9.js → item-option-panel-CxOfVI0z.js} +3 -3
- package/components/{item-option-panel-rBiAYA96.cjs → item-option-panel-D0dxyUfE.cjs} +2 -2
- package/components/item-option-picker/index.cjs +1 -1
- package/components/item-option-picker/index.js +1 -1
- package/components/{item-option-picker-CoC6THh3.cjs → item-option-picker-BsP_0XyD.cjs} +2 -2
- package/components/{item-option-picker-kSepbJdX.js → item-option-picker-CyX7qqrb.js} +2 -2
- package/components/item-option-position-picker/index.cjs +1 -1
- package/components/item-option-position-picker/index.js +1 -1
- package/components/item-option-position-picker-CcmBYyqF.cjs +32 -0
- package/components/{item-option-position-picker-C4bdExi6.js → item-option-position-picker-LOg6P4Gl.js} +2 -2
- package/components/item-option-positions-number-field/index.cjs +1 -1
- package/components/item-option-positions-number-field/index.js +1 -1
- package/components/{item-option-positions-number-field-Cv1tA_Pe.js → item-option-positions-number-field-BCbWb1R6.js} +2 -2
- package/components/item-option-positions-number-field-o3Qckgwd.cjs +49 -0
- package/components/item-option-radio-button-group/index.cjs +1 -1
- package/components/item-option-radio-button-group/index.js +1 -1
- package/components/{item-option-radio-button-group-BRps0pHb.js → item-option-radio-button-group-CDebmEn3.js} +2 -2
- package/components/{item-option-radio-button-group-DK2WnKhT.cjs → item-option-radio-button-group-CjLhWTEJ.cjs} +2 -2
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.js +1 -1
- package/components/{item-option-slider-cD6cc904.js → item-option-slider-C9ZJZcdg.js} +2 -2
- package/components/{item-option-slider-14YSeg1F.cjs → item-option-slider-CHbkJHLK.cjs} +2 -2
- package/components/item-option-switch/index.cjs +1 -1
- package/components/item-option-switch/index.js +1 -1
- package/components/{item-option-switch-uEeTC7ey.js → item-option-switch-BVMOOWya.js} +2 -2
- package/components/{item-option-switch-BvpDNO8q.cjs → item-option-switch-FRAZWozp.cjs} +2 -2
- package/components/item-option-text-field/index.cjs +1 -1
- package/components/item-option-text-field/index.js +1 -1
- package/components/{item-option-text-field-CUF0Gznj.cjs → item-option-text-field-DkYqHfdJ.cjs} +2 -2
- package/components/{item-option-text-field-Cveke3fQ.js → item-option-text-field-e6NLDlSq.js} +2 -2
- package/components/{item-option-Bpv16SRY.js → item-option-uyAsPcfE.js} +47 -47
- package/components/item-options-configs.js +45 -45
- package/components/item-slot-drop/index.cjs +1 -1
- package/components/item-slot-drop/index.js +1 -1
- package/components/item-slot-drop-BUCjEfJf.cjs +91 -0
- package/components/{item-slot-drop--ZwfRc3_.js → item-slot-drop-CoReI68M.js} +13 -10
- package/components/item-slot-drop-panel/index.cjs +1 -1
- package/components/item-slot-drop-panel/index.js +1 -1
- package/components/{item-slot-drop-panel-D_AGJhSF.js → item-slot-drop-panel-CEI1q060.js} +41 -40
- package/components/item-slot-drop-panel-DqekQtOr.cjs +57 -0
- package/components/item-slot-picker/index.cjs +1 -1
- package/components/item-slot-picker/index.js +1 -1
- package/components/item-slot-picker-CvbXFh6Z.cjs +158 -0
- package/components/{item-slot-picker-Dd35AuI2.js → item-slot-picker-dy5hVID5.js} +18 -15
- package/components/item-slot-picker-panel/index.cjs +1 -1
- package/components/item-slot-picker-panel/index.js +1 -1
- package/components/item-slot-picker-panel-BUyp6Hbg.cjs +81 -0
- package/components/{item-slot-picker-panel-pGVeLd1V.js → item-slot-picker-panel-CG0NyMDX.js} +5 -4
- package/components/item-slots-configs.js +45 -45
- package/components/{line-chart-options.config-DSLb95qK.js → line-chart-options.config-1TpSJqeb.js} +1 -1
- package/components/{line-chart-positioning.config-CWGSlsV0.js → line-chart-positioning.config-61uNfPZs.js} +1 -1
- package/components/{line-chart-positioning.config-BH8RppgE.cjs → line-chart-positioning.config-BNtGFWUK.cjs} +1 -1
- package/components/{line-chart-slots.config-CdD8CtUI.js → line-chart-slots.config-CcCpwWzZ.js} +1 -1
- package/components/localized-mixin-CiBWThrZ.cjs +20 -0
- package/components/localized-mixin-EpweDrTk.js +45 -0
- package/components/{marker-map-options.config-D6X6sdKs.js → marker-map-options.config-DTaax79J.js} +1 -1
- package/components/{marker-map-positioning.config-DGi1AjpD.js → marker-map-positioning.config-Bi5WCVgJ.js} +1 -1
- package/components/{hexbin-map-positioning.config-DHPOyzsM.cjs → marker-map-positioning.config-C2cL7uZJ.cjs} +1 -1
- package/components/{marker-map-slots.config-BtyuwUXE.js → marker-map-slots.config-BOWmS_IZ.js} +1 -1
- package/components/{ohlc-chart-options.config-B02_nViT.js → ohlc-chart-options.config-Dfes8ROC.js} +1 -1
- package/components/{ohlc-chart-positioning.config-CLCmzNVQ.js → ohlc-chart-positioning.config-DFx99k9A.js} +1 -1
- package/components/{ohlc-chart-positioning.config-5iMpDBaN.cjs → ohlc-chart-positioning.config-IAOfu4ue.cjs} +1 -1
- package/components/{ohlc-chart-slots.config-C6aMcUyV.js → ohlc-chart-slots.config-JRztPEXL.js} +1 -1
- package/components/{parallel-coordinates-plot-options.config-B_lWq8Oc.js → parallel-coordinates-plot-options.config-NSk_HC0H.js} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-A5eBN75L.cjs → parallel-coordinates-plot-positioning.config-Bf0Leksw.cjs} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-4zWsg4Nw.js → parallel-coordinates-plot-positioning.config-C9TqUuGC.js} +1 -1
- package/components/{parallel-coordinates-plot-slots.config-CChPbNkv.js → parallel-coordinates-plot-slots.config-pmbO5DnL.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-smIfG1vv.js → pivot-table-options.config-B3wYlzEq.js} +1 -1
- package/components/{pivot-table-positioning.config-Dzb1GNTm.js → pivot-table-positioning.config-CPXqqtcR.js} +1 -1
- package/components/{pivot-table-positioning.config-x9el6e15.cjs → pivot-table-positioning.config-D1R3VO88.cjs} +1 -1
- package/components/{pivot-table-slots.config-BDDVAkYz.js → pivot-table-slots.config-DaLfGOP9.js} +1 -1
- package/components/{get-css-variable-DV0s58yn.js → pragmatic-element-adapter-D0LRKx5U.js} +1 -43
- package/components/{get-css-variable-EMi5nnn2.cjs → pragmatic-element-adapter-DdyH32ix.cjs} +1 -1
- package/components/{pyramid-chart-options.config-CAtBdIzA.js → pyramid-chart-options.config-DIyiyqGM.js} +1 -1
- package/components/{pyramid-chart-positioning.config-HDPD6TX8.cjs → pyramid-chart-positioning.config-BfXdJS8g.cjs} +1 -1
- package/components/{pyramid-chart-positioning.config-wbhfjqP_.js → pyramid-chart-positioning.config-JAUQpA0B.js} +1 -1
- package/components/{pyramid-chart-slots.config-aUwwVnl9.js → pyramid-chart-slots.config-DtnUlw5y.js} +1 -1
- package/components/{radar-chart-options.config-qlcD8CGC.js → radar-chart-options.config-UVOzUnVT.js} +1 -1
- package/components/{radar-chart-positioning.config-CXonxhGG.cjs → radar-chart-positioning.config-Bixdrod2.cjs} +1 -1
- package/components/{radar-chart-positioning.config-nWkEtlva.js → radar-chart-positioning.config-CdJSazt4.js} +1 -1
- package/components/{radar-chart-slots.config-XtL8uHg5.js → radar-chart-slots.config-CkLoeAV7.js} +1 -1
- package/components/{regular-table-options.config-Db12iH2p.js → regular-table-options.config-CBvnxTdd.js} +1 -1
- package/components/{regular-table-slots.config-Dx3-s6lB.js → regular-table-slots.config-Cc6hL7iu.js} +1 -1
- package/components/resolve-column-presentation-BaEP1mvs.js +34 -0
- package/components/resolve-column-presentation-DUETRVCH.cjs +20 -0
- package/components/{route-map-options.config-Dd3ZCqZP.js → route-map-options.config-DZrlGa5o.js} +1 -1
- package/components/{route-map-positioning.config-B9c2U0zN.cjs → route-map-positioning.config-7aca5Iex.cjs} +1 -1
- package/components/{route-map-positioning.config-CrDkKZOV.js → route-map-positioning.config-Bk_BndTS.js} +1 -1
- package/components/{route-map-slots.config-D22mi7Rb.js → route-map-slots.config-CQxB8gKC.js} +1 -1
- package/components/{sankey-diagram-options.config-Bn1ARzxI.js → sankey-diagram-options.config-s_QRVr1r.js} +1 -1
- package/components/{sankey-diagram-positioning.config-Dki0WC81.cjs → sankey-diagram-positioning.config-Bvus3RDi.cjs} +1 -1
- package/components/{sankey-diagram-positioning.config-DHu11GbV.js → sankey-diagram-positioning.config-DPgQELIu.js} +1 -1
- package/components/{sankey-diagram-slots.config-CGCeuScH.js → sankey-diagram-slots.config-C9tIfWHU.js} +1 -1
- package/components/{scatter-plot-options.config-DTz98owa.js → scatter-plot-options.config-DI4hlqi5.js} +1 -1
- package/components/{scatter-plot-positioning.config-NJLf-yu-.js → scatter-plot-positioning.config-D-ifHW9P.js} +1 -1
- package/components/{scatter-plot-positioning.config-CyUEHLu_.cjs → scatter-plot-positioning.config-DBDCDDad.cjs} +1 -1
- package/components/{scatter-plot-slots.config-Cx_QRgUG.js → scatter-plot-slots.config-CUURijrN.js} +1 -1
- package/components/{search-filter-options.config-DGLdzM_P.js → search-filter-options.config-CPzfgUWV.js} +1 -1
- package/components/{search-filter-slots.config-CDthI9k-.js → search-filter-slots.config-DD119qkk.js} +1 -1
- package/components/{slicer-filter-options.config-QCSqtuyO.js → slicer-filter-options.config-F2CZ8ckV.js} +1 -1
- package/components/{slicer-filter-positioning.config-BoyhFCY3.js → slicer-filter-positioning.config-0uGZ8EgN.js} +1 -1
- package/components/{slicer-filter-positioning.config-CYmIirxA.cjs → slicer-filter-positioning.config-Bx2_7jxp.cjs} +1 -1
- package/components/{slicer-filter-slots.config-D_SBoI4C.js → slicer-filter-slots.config-D-BhCuA9.js} +1 -1
- package/components/{slider-filter-options.config-CS2ItH5t.js → slider-filter-options.config-DO0HHK2l.js} +1 -1
- package/components/{slider-filter-slots.config-CG88ssfQ.js → slider-filter-slots.config-CGQG6JqK.js} +1 -1
- package/components/{en-GB-DAF4eew-.cjs → slot-menu/index.cjs} +1 -1
- package/components/slot-menu/index.d.ts +10 -0
- package/components/slot-menu/index.js +28 -0
- package/components/slot-menu/slot-menu.d.ts +143 -0
- package/components/slot-menu/types.d.ts +24 -0
- package/components/slot-menu-Cw5HJ_bk.js +404 -0
- package/components/slot-menu-DkyDLDSd.cjs +64 -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 +28 -0
- package/components/slot-menu-list/slot-menu-list.d.ts +42 -0
- package/components/slot-menu-list-BZllvntQ.cjs +38 -0
- package/components/slot-menu-list-CTJ-owp1.js +326 -0
- package/components/slots-config-BuHluMEl.js +77 -0
- package/components/slots-config-DVH0lz6t.cjs +20 -0
- package/components/{speedometer-chart-options.config-C-BoHPnb.js → speedometer-chart-options.config-jK_yQjy2.js} +1 -1
- package/components/{speedometer-chart-positioning.config-B_GOu6LC.cjs → speedometer-chart-positioning.config-CNOKIw7e.cjs} +1 -1
- package/components/{speedometer-chart-positioning.config-BhPvu0D-.js → speedometer-chart-positioning.config-FzFxMi0X.js} +1 -1
- package/components/{speedometer-chart-slots.config-CqejfEfV.js → speedometer-chart-slots.config-CjkHAHNX.js} +1 -1
- package/components/{spike-map-options.config-DDHR8R04.js → spike-map-options.config-cj07bETE.js} +1 -1
- package/components/{spike-map-positioning.config-C8Sq420l.js → spike-map-positioning.config-B4NYfmEw.js} +1 -1
- package/components/{spike-map-positioning.config-uqHrpfnq.cjs → spike-map-positioning.config-Bcdt8670.cjs} +1 -1
- package/components/{spike-map-slots.config-DfvNwovo.js → spike-map-slots.config-yMkdy-0w.js} +1 -1
- package/components/{strip-plot-options.config-DwZ_uMmE.js → strip-plot-options.config-DmAxeY2S.js} +1 -1
- package/components/{strip-plot-positioning.config-BUe2VQLN.cjs → strip-plot-positioning.config-BjcqWJoD.cjs} +1 -1
- package/components/{strip-plot-positioning.config-CHAOLSTR.js → strip-plot-positioning.config-n9OIxpa_.js} +1 -1
- package/components/{strip-plot-slots.config-Bq5Qkdpi.js → strip-plot-slots.config-C07nIM5s.js} +1 -1
- package/components/{sunburst-chart-options.config-CmfOjhz4.js → sunburst-chart-options.config-CLyQG-8x.js} +1 -1
- package/components/{sunburst-chart-positioning.config-DDKFlKW3.cjs → sunburst-chart-positioning.config-BIpSCpSi.cjs} +1 -1
- package/components/{sunburst-chart-positioning.config-CsCLFckU.js → sunburst-chart-positioning.config-CcGOcwOK.js} +1 -1
- package/components/{sunburst-chart-slots.config-rNscb225.js → sunburst-chart-slots.config-BU9ma0xm.js} +1 -1
- package/components/{symbol-map-options.config-DC1tq8SG.js → symbol-map-options.config-I_gykFhh.js} +1 -1
- package/components/{symbol-map-positioning.config-BZq0UkGQ.cjs → symbol-map-positioning.config-DPv89eCY.cjs} +1 -1
- package/components/{symbol-map-positioning.config-BFHhRAAZ.js → symbol-map-positioning.config-H3n2ngaa.js} +1 -1
- package/components/{symbol-map-slots.config-Cj7_4U7H.js → symbol-map-slots.config-CQJgV5bh.js} +1 -1
- package/components/{text-options.config-Mqd1Oy73.js → text-options.config-DUMx63Ol.js} +1 -1
- package/components/{text-slots.config-CcjPSmDJ.js → text-slots.config-YmmXsb-0.js} +1 -1
- package/components/{treemap-chart-options.config-Cgy7LEyB.js → treemap-chart-options.config-CAWPa5jK.js} +1 -1
- package/components/{treemap-chart-positioning.config-2kIvfVAE.js → treemap-chart-positioning.config-Dzp4TodY.js} +1 -1
- package/components/{treemap-chart-positioning.config-CZCU1f19.cjs → treemap-chart-positioning.config-W2sl4gZ0.cjs} +1 -1
- package/components/{treemap-chart-slots.config-Cpapm2BY.js → treemap-chart-slots.config-QEVbKZyS.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-BFZqe6Y0.js → utils-BD_TKdii.js} +41 -2
- package/components/{utils-qElG-Syn.cjs → utils-C8VI4SiJ.cjs} +1 -1
- package/components/utils.cjs +1 -1
- package/components/utils.js +5 -3
- package/components/{venn-diagram-options.config-Cnu8elgc.js → venn-diagram-options.config-KKD89q3q.js} +1 -1
- package/components/{venn-diagram-positioning.config-CE4tTFiI.js → venn-diagram-positioning.config-BLSj3JqA.js} +1 -1
- package/components/{venn-diagram-positioning.config-oCiElw_6.cjs → venn-diagram-positioning.config-Bv3pFJIU.cjs} +1 -1
- package/components/{venn-diagram-slots.config-CN59FT-M.js → venn-diagram-slots.config-DsIqVOI2.js} +1 -1
- package/components/{video-options.config-6VlWxo6-.js → video-options.config-D2SEyNrP.js} +1 -1
- package/components/{video-slots.config-BVraFye8.js → video-slots.config-B680gLmP.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 +28 -0
- package/components/viz-item-menu/types.d.ts +9 -0
- package/components/viz-item-menu/viz-item-menu.d.ts +75 -0
- package/components/viz-item-menu-CiEJJddu.js +170 -0
- package/components/viz-item-menu-Dry8xpRA.cjs +55 -0
- package/components/{wordcloud-chart-options.config-CVl6-lm0.js → wordcloud-chart-options.config-DLN2RAEK.js} +1 -1
- package/components/{wordcloud-chart-positioning.config-BA0jo1KG.js → wordcloud-chart-positioning.config-DVPWXJXb.js} +1 -1
- package/components/{wordcloud-chart-positioning.config-CioSulMl.cjs → wordcloud-chart-positioning.config-ZTO2VLdY.cjs} +1 -1
- package/components/{wordcloud-chart-slots.config-D2fzZcjk.js → wordcloud-chart-slots.config-mFvqkiQE.js} +1 -1
- package/custom-elements.json +16508 -4907
- package/index.d.ts +25 -0
- package/package.json +131 -1
- package/react/README.md +32 -6
- package/react/components/ai-chat/empty-state/index.ts +1 -0
- package/react/components/ai-chat/empty-state/types.ts +16 -0
- package/react/components/ai-chat/stream/index.ts +1 -0
- package/react/components/ai-chat/stream/types.ts +60 -0
- package/react/components/ai-chat.component.ts +42 -0
- package/react/components/ai-interaction-textarea/index.ts +1 -0
- package/react/components/ai-interaction-textarea/types.ts +6 -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/index.ts +1 -0
- package/react/components/data-fields-select/types.ts +5 -0
- package/react/components/data-fields-select.component.ts +27 -0
- package/react/components/dataset-icon/index.ts +1 -0
- package/react/components/dataset-icon/types.ts +8 -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 +30 -0
- package/react/components/display-settings/index.ts +1 -0
- package/react/components/display-settings/types.ts +12 -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 +22 -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/formula-draggable-field/index.ts +1 -0
- package/react/components/formula-draggable-field/types.ts +26 -0
- package/react/components/formula-editor.component.ts +33 -0
- package/react/components/formula-field.component.ts +30 -0
- package/react/components/formula.component.ts +30 -0
- package/react/components/slot-menu/index.ts +1 -0
- package/react/components/slot-menu/types.ts +29 -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/index.ts +1 -0
- package/react/components/viz-item-menu/types.ts +11 -0
- package/react/components/viz-item-menu.component.ts +33 -0
- package/react/esm/components/ai-chat/empty-state/index.d.ts +1 -0
- package/react/esm/components/ai-chat/empty-state/index.js +1 -0
- package/react/esm/components/ai-chat/empty-state/types.d.ts +14 -0
- package/react/esm/components/ai-chat/empty-state/types.js +1 -0
- package/react/esm/components/ai-chat/stream/index.d.ts +1 -0
- package/react/esm/components/ai-chat/stream/index.js +1 -0
- package/react/esm/components/ai-chat/stream/types.d.ts +55 -0
- package/react/esm/components/ai-chat/stream/types.js +1 -0
- package/react/esm/components/ai-chat.component.d.ts +22 -0
- package/react/esm/components/ai-chat.component.js +27 -0
- package/react/esm/components/ai-interaction-textarea/index.d.ts +1 -0
- package/react/esm/components/ai-interaction-textarea/index.js +1 -0
- package/react/esm/components/ai-interaction-textarea/types.d.ts +5 -0
- package/react/esm/components/ai-interaction-textarea/types.js +1 -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/index.d.ts +1 -0
- package/react/esm/components/data-fields-select/index.js +1 -0
- package/react/esm/components/data-fields-select/types.d.ts +4 -0
- package/react/esm/components/data-fields-select/types.js +1 -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/index.d.ts +1 -0
- package/react/esm/components/dataset-icon/index.js +1 -0
- package/react/esm/components/dataset-icon/types.d.ts +11 -0
- package/react/esm/components/dataset-icon/types.js +1 -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 +14 -0
- package/react/esm/components/dataset-selector-row.component.js +19 -0
- package/react/esm/components/display-settings/index.d.ts +1 -0
- package/react/esm/components/display-settings/index.js +1 -0
- package/react/esm/components/display-settings/types.d.ts +9 -0
- package/react/esm/components/display-settings/types.js +1 -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 +8 -0
- package/react/esm/components/filter-parameter-picker.component.js +13 -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/formula-draggable-field/index.d.ts +1 -0
- package/react/esm/components/formula-draggable-field/index.js +1 -0
- package/react/esm/components/formula-draggable-field/types.d.ts +24 -0
- package/react/esm/components/formula-draggable-field/types.js +1 -0
- package/react/esm/components/formula-editor.component.d.ts +16 -0
- package/react/esm/components/formula-editor.component.js +21 -0
- 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/formula.component.d.ts +14 -0
- package/react/esm/components/formula.component.js +19 -0
- package/react/esm/components/slot-menu/index.d.ts +1 -0
- package/react/esm/components/slot-menu/index.js +1 -0
- package/react/esm/components/slot-menu/types.d.ts +24 -0
- package/react/esm/components/slot-menu/types.js +1 -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/index.d.ts +1 -0
- package/react/esm/components/viz-item-menu/index.js +1 -0
- package/react/esm/components/viz-item-menu/types.d.ts +9 -0
- package/react/esm/components/viz-item-menu/types.js +1 -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 +28 -2
- package/react/esm/index.js +106 -2
- package/react/esm/types.d.ts +15 -0
- package/react/index.ts +106 -2
- package/react/luzmo-stub.d.ts +167 -0
- package/react/types.ts +12 -0
- package/react/utils/index.d.ts +1 -0
- package/react/utils/timezone/datetime-timezone.d.ts +25 -0
- package/react/utils/timezone/tests/datetime-timezone.test.d.ts +1 -0
- package/storybook/inject-global-vars.d.ts +1 -0
- package/storybook/register-components.d.ts +51 -0
- package/types/ai-chat.types.d.ts +63 -0
- package/types/data-field-events.types.d.ts +7 -0
- package/types.d.ts +8 -0
- package/utils/index.d.ts +1 -0
- package/utils/timezone/datetime-timezone.d.ts +25 -0
- package/utils/timezone/tests/datetime-timezone.test.d.ts +1 -0
- package/components/base-DALdSJnS.cjs +0 -20
- package/components/data-field-Da9-w0dV.cjs +0 -89
- package/components/data-field-panel-DiQyyB58.cjs +0 -87
- package/components/data-fields-select-eTLgAsP7.cjs +0 -41
- package/components/display-settings-datetime-Ce9pfoSc.cjs +0 -217
- package/components/display-settings-grand-totals-BS1MwDRW.cjs +0 -44
- package/components/display-settings-numeric-DkzMeIJ0.cjs +0 -190
- package/components/display-settings-period-over-period-Cra_Q5UR.cjs +0 -229
- package/components/filters-BlhodZNo.cjs +0 -323
- package/components/filters-C3OYCMyw.js +0 -1637
- package/components/formula-codemirror-oGmbSSst.cjs +0 -215
- package/components/icon-element-BBvOmuv7.js +0 -214
- package/components/icon-element-Cp7X6o4B.cjs +0 -20
- package/components/item-option-DQY1ywF7.cjs +0 -252
- package/components/item-option-action-button-group-BWvqcvi4.cjs +0 -53
- package/components/item-option-base-DmC_wT_2.cjs +0 -56
- package/components/item-option-color-palette-picker-D5S3orJU.cjs +0 -40
- package/components/item-option-color-range-DtGhcSPp.cjs +0 -98
- package/components/item-option-position-picker-B4feLDm1.cjs +0 -32
- package/components/item-option-positions-number-field-CRo2MkLX.cjs +0 -49
- package/components/item-slot-drop-DJhrCthK.cjs +0 -91
- package/components/item-slot-drop-panel-CMn3gtpB.cjs +0 -57
- package/components/item-slot-picker-panel-CxJeJTSe.cjs +0 -81
- package/components/item-slot-picker-wzfaXWHe.cjs +0 -158
- package/components/localized-mixin-WdJ00iIC.cjs +0 -20
- package/components/slot-menu-BJ1l9wes.cjs +0 -182
- package/components/slot-menu-ZNG92h35.js +0 -971
- package/components/slots-config-97A9OVQR.cjs +0 -20
|
@@ -0,0 +1,666 @@
|
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2026 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
|
7
|
+
* This license allows users with a current active Luzmo account
|
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
+
*
|
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
+
* SOFTWARE.
|
|
19
|
+
* */
|
|
20
|
+
import { t as e } from "./pragmatic-element-adapter-D0LRKx5U.js";
|
|
21
|
+
import { i as t, n } from "./base-B_wdCOxV.js";
|
|
22
|
+
import { t as r } from "./decorate-DyMgX_Uh.js";
|
|
23
|
+
import { t as i } from "./data-broker-Bdv5V8Yp.js";
|
|
24
|
+
import { t as a } from "./calculate-data-field-icon-DrSg1PuD.js";
|
|
25
|
+
import { t as o } from "./localize-BT7REYBY.js";
|
|
26
|
+
import { n as s, t as c } from "./get-css-variable-DYnldi15.js";
|
|
27
|
+
import "./data-field-CLfUWgK9.js";
|
|
28
|
+
import { a as l, i as u, n as d, p as f, r as p } from "./formula-display-store-BGzj13Cs.js";
|
|
29
|
+
import { n as m } from "./groupings-CrE-yp0S.js";
|
|
30
|
+
import { t as h } from "./formula-input-base-CQPGmISj.js";
|
|
31
|
+
import { luzmoAlertOutline as g, luzmoAngleDown as ee, luzmoAngleRight as te, luzmoArrows as ne, luzmoIcon as _ } from "@luzmo/icons";
|
|
32
|
+
import { html as v, nothing as y, unsafeCSS as b } from "lit";
|
|
33
|
+
import { property as x, state as S } from "lit/decorators.js";
|
|
34
|
+
import { localized as re, msg as C, str as w } from "@lit/localize";
|
|
35
|
+
import "@luzmo/lucero/icon";
|
|
36
|
+
import "@luzmo/lucero/select";
|
|
37
|
+
import "@luzmo/lucero/tooltip";
|
|
38
|
+
import { repeat as T } from "lit/directives/repeat.js";
|
|
39
|
+
import "@luzmo/lucero/field-label";
|
|
40
|
+
import "@luzmo/lucero/progress-circle";
|
|
41
|
+
import "@luzmo/lucero/search";
|
|
42
|
+
//#region src/utils/formula/config/validate-expression.ts
|
|
43
|
+
var E = [
|
|
44
|
+
"numeric",
|
|
45
|
+
"hierarchy",
|
|
46
|
+
"datetime",
|
|
47
|
+
"spatial"
|
|
48
|
+
], D = [
|
|
49
|
+
"true",
|
|
50
|
+
"false",
|
|
51
|
+
"null"
|
|
52
|
+
], O = [
|
|
53
|
+
"GROUP",
|
|
54
|
+
"GROUPFULL",
|
|
55
|
+
"GROUPINEX"
|
|
56
|
+
], k = /'(?:[^']|'')*'|"(?:[^"]|"")*"/g, A = /\{[^}]*\}/g, j = /[A-Za-z_][A-Za-z0-9_]*/g;
|
|
57
|
+
function M(e, t) {
|
|
58
|
+
let n = /* @__PURE__ */ new Set();
|
|
59
|
+
for (let t of Object.keys(e)) /^[A-Za-z_]/.test(t) && n.add(t.toUpperCase());
|
|
60
|
+
for (let e of Object.keys(t)) n.add(e.toUpperCase());
|
|
61
|
+
for (let e of [
|
|
62
|
+
...O,
|
|
63
|
+
...E,
|
|
64
|
+
...D
|
|
65
|
+
]) n.add(e.toUpperCase());
|
|
66
|
+
return n;
|
|
67
|
+
}
|
|
68
|
+
function N(e, t) {
|
|
69
|
+
let n = e.replace(k, " ").replace(A, " ");
|
|
70
|
+
j.lastIndex = 0;
|
|
71
|
+
let r;
|
|
72
|
+
for (; (r = j.exec(n)) !== null;) if (!t.has(r[0].toUpperCase())) return r[0];
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/element/custom-native-drag-preview/pointer-outside-of-preview.js
|
|
77
|
+
function P(e) {
|
|
78
|
+
return function(t) {
|
|
79
|
+
var n = t.container;
|
|
80
|
+
return Object.assign(n.style, {
|
|
81
|
+
borderLeft: `${e.x} solid transparent`,
|
|
82
|
+
borderTop: `${e.y} solid transparent`
|
|
83
|
+
}), {
|
|
84
|
+
x: 0,
|
|
85
|
+
y: 0
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/components/formula-draggable-field/formula-draggable-field.module.scss?inline
|
|
91
|
+
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, {
|
|
92
|
+
validSizes: [
|
|
93
|
+
"s",
|
|
94
|
+
"m",
|
|
95
|
+
"l",
|
|
96
|
+
"xl"
|
|
97
|
+
],
|
|
98
|
+
noDefaultSize: !0
|
|
99
|
+
}) {
|
|
100
|
+
constructor(...e) {
|
|
101
|
+
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;
|
|
102
|
+
}
|
|
103
|
+
static {
|
|
104
|
+
this.styles = b(F);
|
|
105
|
+
}
|
|
106
|
+
_handleIconSlotChange(e) {
|
|
107
|
+
this._hasIcon = e.target.assignedNodes({ flatten: !0 }).length > 0;
|
|
108
|
+
}
|
|
109
|
+
_handleTooltipSlotChange(e) {
|
|
110
|
+
this._hasTooltipSlot = e.target.assignedNodes({ flatten: !0 }).length > 0;
|
|
111
|
+
}
|
|
112
|
+
disconnectedCallback() {
|
|
113
|
+
super.disconnectedCallback(), this._cleanupDraggable?.(), this._cleanupDraggable = void 0;
|
|
114
|
+
}
|
|
115
|
+
firstUpdated(t) {
|
|
116
|
+
this._cleanupDraggable = e({
|
|
117
|
+
element: this,
|
|
118
|
+
canDrag: () => !this.disabled,
|
|
119
|
+
onDragStart: () => {
|
|
120
|
+
this.style.opacity = "0.5";
|
|
121
|
+
},
|
|
122
|
+
onDrop: () => {
|
|
123
|
+
this.style.opacity = "1";
|
|
124
|
+
},
|
|
125
|
+
getInitialData: () => ({
|
|
126
|
+
kind: this.kind,
|
|
127
|
+
value: this.value
|
|
128
|
+
}),
|
|
129
|
+
onGenerateDragPreview: ({ nativeSetDragImage: e }) => {
|
|
130
|
+
s({
|
|
131
|
+
nativeSetDragImage: e,
|
|
132
|
+
getOffset: P({
|
|
133
|
+
x: "8px",
|
|
134
|
+
y: "8px"
|
|
135
|
+
}),
|
|
136
|
+
render: ({ container: e }) => {
|
|
137
|
+
e.append(this._buildDragPreview());
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
_buildDragPreview() {
|
|
144
|
+
let e = document.createElement("div"), t = this.variant === "highlight" ? c(this, "--luzmo-formula-draggable-field-background") || c(this, "--luzmo-background-color-highlight") : c(this, "--luzmo-background-color");
|
|
145
|
+
return e.textContent = this.label, Object.assign(e.style, {
|
|
146
|
+
display: "inline-flex",
|
|
147
|
+
alignItems: "center",
|
|
148
|
+
maxWidth: "14rem",
|
|
149
|
+
overflow: "hidden",
|
|
150
|
+
textOverflow: "ellipsis",
|
|
151
|
+
whiteSpace: "nowrap",
|
|
152
|
+
padding: "4px 8px",
|
|
153
|
+
borderRadius: c(this, "--luzmo-border-radius") || "6px",
|
|
154
|
+
border: `1px solid ${c(this, "--luzmo-border-color")}`,
|
|
155
|
+
background: t,
|
|
156
|
+
color: c(this, "--luzmo-font-color"),
|
|
157
|
+
fontFamily: c(this, "--luzmo-font-family"),
|
|
158
|
+
fontSize: getComputedStyle(this).fontSize,
|
|
159
|
+
lineHeight: "1",
|
|
160
|
+
boxShadow: c(this, "--luzmo-box-shadow") || "0 1px 4px rgb(0 0 0 / 15%)"
|
|
161
|
+
}), e;
|
|
162
|
+
}
|
|
163
|
+
_handleClick(e) {
|
|
164
|
+
e.detail === 0 && this._activate();
|
|
165
|
+
}
|
|
166
|
+
_activate() {
|
|
167
|
+
this.disabled || this.dispatchEvent(new CustomEvent("luzmo-formula-draggable-field-activate", {
|
|
168
|
+
bubbles: !0,
|
|
169
|
+
composed: !0,
|
|
170
|
+
detail: {
|
|
171
|
+
kind: this.kind,
|
|
172
|
+
value: this.value
|
|
173
|
+
}
|
|
174
|
+
}));
|
|
175
|
+
}
|
|
176
|
+
_describe() {
|
|
177
|
+
this.dispatchEvent(new CustomEvent("luzmo-formula-draggable-field-describe", {
|
|
178
|
+
bubbles: !0,
|
|
179
|
+
composed: !0,
|
|
180
|
+
detail: {
|
|
181
|
+
kind: this.kind,
|
|
182
|
+
value: this.value
|
|
183
|
+
}
|
|
184
|
+
}));
|
|
185
|
+
}
|
|
186
|
+
render() {
|
|
187
|
+
let e = this._hasTooltipSlot || !!this.description;
|
|
188
|
+
return v`
|
|
189
|
+
<button
|
|
190
|
+
class="draggable"
|
|
191
|
+
type="button"
|
|
192
|
+
aria-label=${this.label}
|
|
193
|
+
?disabled=${this.disabled}
|
|
194
|
+
@click=${this._handleClick}
|
|
195
|
+
@dblclick=${this._activate}
|
|
196
|
+
@mouseenter=${this._describe}
|
|
197
|
+
@focus=${this._describe}
|
|
198
|
+
>
|
|
199
|
+
<span class="drag-icon" aria-hidden="true">${_(ne)}</span>
|
|
200
|
+
<slot
|
|
201
|
+
name="icon"
|
|
202
|
+
class="icon-slot ${this._hasIcon ? "has-icon" : ""}"
|
|
203
|
+
@slotchange=${this._handleIconSlotChange}
|
|
204
|
+
></slot>
|
|
205
|
+
<span class="draggable-label">${this.label}</span>
|
|
206
|
+
<luzmo-tooltip
|
|
207
|
+
self-managed
|
|
208
|
+
placement=${this.tooltipPlacement}
|
|
209
|
+
.size=${this.size}
|
|
210
|
+
?disabled=${!e}
|
|
211
|
+
>
|
|
212
|
+
<div class="tooltip-content">
|
|
213
|
+
${this._hasTooltipSlot ? y : this.description ? v`<span>${this.description}</span>` : y}
|
|
214
|
+
<slot name="tooltip" @slotchange=${this._handleTooltipSlotChange}></slot>
|
|
215
|
+
</div>
|
|
216
|
+
</luzmo-tooltip>
|
|
217
|
+
</button>
|
|
218
|
+
`;
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
//#endregion
|
|
222
|
+
//#region src/components/formula-draggable-field/index.ts
|
|
223
|
+
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({
|
|
224
|
+
type: String,
|
|
225
|
+
attribute: "tooltip-placement"
|
|
226
|
+
})], I.prototype, "tooltipPlacement", void 0), r([x({
|
|
227
|
+
type: String,
|
|
228
|
+
reflect: !0
|
|
229
|
+
})], I.prototype, "variant", void 0), r([x({
|
|
230
|
+
type: Boolean,
|
|
231
|
+
reflect: !0
|
|
232
|
+
})], 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);
|
|
233
|
+
//#endregion
|
|
234
|
+
//#region src/utils/formula/render-explanation-tooltip.ts
|
|
235
|
+
var L = {
|
|
236
|
+
numeric: "numeric",
|
|
237
|
+
hierarchy: "hierarchy",
|
|
238
|
+
datetime: "datetime"
|
|
239
|
+
};
|
|
240
|
+
function R(e, t) {
|
|
241
|
+
return t ? v`<code class="tooltip-example">${e.split(/(⟨\w+⟩)/g).map((e) => {
|
|
242
|
+
let t = e.match(/^⟨(\w+)⟩$/);
|
|
243
|
+
if (t) {
|
|
244
|
+
let e = L[t[1]];
|
|
245
|
+
if (e) return v`<span class="example-icon" aria-hidden="true">${_(a({ type: e }, "s"))}</span>`;
|
|
246
|
+
}
|
|
247
|
+
return e;
|
|
248
|
+
})}</code>` : v`<code class="tooltip-example">${e}</code>`;
|
|
249
|
+
}
|
|
250
|
+
function z(e, t, n) {
|
|
251
|
+
return !e && !t ? y : v`
|
|
252
|
+
<div slot="tooltip" class="explanation-tooltip">
|
|
253
|
+
${e ? v`<span>${e}</span>` : y}
|
|
254
|
+
${t ? R(t, n) : y}
|
|
255
|
+
</div>
|
|
256
|
+
`;
|
|
257
|
+
}
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region src/components/formula-editor/formula-aggregations-list.ts
|
|
260
|
+
var B = l();
|
|
261
|
+
function V(e) {
|
|
262
|
+
return v`
|
|
263
|
+
<div class="list-loading" role="status" part="list-loading">
|
|
264
|
+
<luzmo-progress-circle
|
|
265
|
+
indeterminate
|
|
266
|
+
.label=${C("Loading aggregations", { desc: "Formula editor aggregations list loading spinner label" })}
|
|
267
|
+
.size=${e}
|
|
268
|
+
></luzmo-progress-circle>
|
|
269
|
+
</div>
|
|
270
|
+
`;
|
|
271
|
+
}
|
|
272
|
+
function H({ size: e, explanationTooltips: t, disabled: n }) {
|
|
273
|
+
return v`
|
|
274
|
+
<div class="list-items" part="list-items" role="list">
|
|
275
|
+
${T(u, (e) => e, (r) => v`
|
|
276
|
+
<luzmo-formula-draggable-field
|
|
277
|
+
role="listitem"
|
|
278
|
+
kind="aggregation"
|
|
279
|
+
value=${r}
|
|
280
|
+
.label=${B[r]?.label() ?? r}
|
|
281
|
+
.size=${e}
|
|
282
|
+
?disabled=${n}
|
|
283
|
+
>
|
|
284
|
+
${t ? z(B[r]?.description() ?? "", B[r]?.example() ?? "", B[r]?.exampleHasIcons ?? !1) : y}
|
|
285
|
+
</luzmo-formula-draggable-field>
|
|
286
|
+
`)}
|
|
287
|
+
</div>
|
|
288
|
+
`;
|
|
289
|
+
}
|
|
290
|
+
function U(e) {
|
|
291
|
+
return v`
|
|
292
|
+
<div class="list" part="list aggregations-list">
|
|
293
|
+
<luzmo-field-label class="list-header" part="list-header" .size=${e.size}
|
|
294
|
+
>${C("Aggregations", { desc: "Formula editor aggregations list title" })}</luzmo-field-label
|
|
295
|
+
>
|
|
296
|
+
${e.loading ? V(e.size) : H(e)}
|
|
297
|
+
</div>
|
|
298
|
+
`;
|
|
299
|
+
}
|
|
300
|
+
//#endregion
|
|
301
|
+
//#region src/components/formula-editor/formula-datasets-list.ts
|
|
302
|
+
function W(e, t, n) {
|
|
303
|
+
let r = t.trim().toLowerCase();
|
|
304
|
+
return r ? e.columns.filter((e) => o(e.name, n).toLowerCase().includes(r)) : e.columns;
|
|
305
|
+
}
|
|
306
|
+
function G(e) {
|
|
307
|
+
return v`
|
|
308
|
+
<div class="list-loading" role="status" part="list-loading">
|
|
309
|
+
<luzmo-progress-circle
|
|
310
|
+
indeterminate
|
|
311
|
+
.label=${C("Loading columns", { desc: "Formula editor datasets list loading spinner label" })}
|
|
312
|
+
.size=${e}
|
|
313
|
+
></luzmo-progress-circle>
|
|
314
|
+
</div>
|
|
315
|
+
`;
|
|
316
|
+
}
|
|
317
|
+
function K(e, t) {
|
|
318
|
+
let { datasets: n, contentLanguage: r, size: i, disabled: a, searchQuery: s, collapsed: c, onToggleCollapse: l, onInsertColumn: u } = e;
|
|
319
|
+
return v`
|
|
320
|
+
<div class="list-scroll" part="list-scroll">
|
|
321
|
+
${T(n, (e) => e.id, (e) => {
|
|
322
|
+
let n = W(e, s, r), d = c.has(e.id);
|
|
323
|
+
return n.length === 0 ? y : v`
|
|
324
|
+
<div class="dataset-group" part="dataset-group">
|
|
325
|
+
${t ? v`<button
|
|
326
|
+
class="dataset-group-header"
|
|
327
|
+
part="dataset-group-header"
|
|
328
|
+
type="button"
|
|
329
|
+
aria-expanded=${!d}
|
|
330
|
+
@click=${() => l(e.id)}
|
|
331
|
+
>
|
|
332
|
+
<span class="dataset-group-icon" aria-hidden="true"
|
|
333
|
+
>${_(d ? te : ee)}</span
|
|
334
|
+
>
|
|
335
|
+
<span class="dataset-group-label">${o(e.name, r) || e.id}</span>
|
|
336
|
+
</button>` : y}
|
|
337
|
+
${d ? y : v`<div class="dataset-group-fields" role="list">
|
|
338
|
+
${T(n, (e) => `${e.datasetId}:${e.columnId}`, (e) => v`
|
|
339
|
+
<luzmo-data-field
|
|
340
|
+
role="listitem"
|
|
341
|
+
hide-sublevels
|
|
342
|
+
.data=${e}
|
|
343
|
+
.language=${r}
|
|
344
|
+
.size=${i}
|
|
345
|
+
?disabled=${a}
|
|
346
|
+
@dblclick=${() => u(e)}
|
|
347
|
+
></luzmo-data-field>
|
|
348
|
+
`)}
|
|
349
|
+
</div>`}
|
|
350
|
+
</div>
|
|
351
|
+
`;
|
|
352
|
+
})}
|
|
353
|
+
</div>
|
|
354
|
+
`;
|
|
355
|
+
}
|
|
356
|
+
function q(e) {
|
|
357
|
+
let { size: t, loading: n = !1, disabled: r = !1, searchQuery: i, onSearchInput: a } = e, o = e.datasets.length > 1;
|
|
358
|
+
return v`
|
|
359
|
+
<div class="list" part="list datasets-list">
|
|
360
|
+
<luzmo-field-label class="list-header" part="list-header" .size=${t}
|
|
361
|
+
>${C("Data", {
|
|
362
|
+
id: "formula-datasets-list-title",
|
|
363
|
+
desc: "Formula editor datasets list title"
|
|
364
|
+
})}</luzmo-field-label
|
|
365
|
+
>
|
|
366
|
+
<luzmo-search
|
|
367
|
+
.size=${t}
|
|
368
|
+
.placeholder=${C("Search columns...", { desc: "Formula editor datasets list search placeholder" })}
|
|
369
|
+
.value=${i}
|
|
370
|
+
?disabled=${r || n}
|
|
371
|
+
@input=${a}
|
|
372
|
+
></luzmo-search>
|
|
373
|
+
${n ? G(t) : K(e, o)}
|
|
374
|
+
</div>
|
|
375
|
+
`;
|
|
376
|
+
}
|
|
377
|
+
//#endregion
|
|
378
|
+
//#region src/components/formula-editor/formula-description.ts
|
|
379
|
+
var J = {
|
|
380
|
+
numeric: "numeric",
|
|
381
|
+
hierarchy: "hierarchy",
|
|
382
|
+
datetime: "datetime"
|
|
383
|
+
}, Y = p(), X = l(), ie = m();
|
|
384
|
+
function ae(e, t) {
|
|
385
|
+
return t ? v`<code class="example-code">${e.split(/(⟨\w+⟩)/g).map((e) => {
|
|
386
|
+
let t = e.match(/^⟨(\w+)⟩$/);
|
|
387
|
+
if (t) {
|
|
388
|
+
let e = J[t[1]];
|
|
389
|
+
if (e) return v`<span class="example-icon" aria-hidden="true">${_(a({ type: e }, "s"))}</span>`;
|
|
390
|
+
}
|
|
391
|
+
return e;
|
|
392
|
+
})}</code>` : v`<code class="example-code">${e}</code>`;
|
|
393
|
+
}
|
|
394
|
+
function oe(e) {
|
|
395
|
+
if (!e) return v`
|
|
396
|
+
<div class="description-empty" part="description-empty">
|
|
397
|
+
${C("Hover a function or aggregation to see its description.", { desc: "Formula editor description empty state" })}
|
|
398
|
+
</div>
|
|
399
|
+
`;
|
|
400
|
+
if (e.kind === "grouping") {
|
|
401
|
+
let t = ie[e.id];
|
|
402
|
+
return v`
|
|
403
|
+
<div class="description-title" part="description-title">${t?.label() ?? e.id}</div>
|
|
404
|
+
<div class="description-text" part="description-text">${t?.description() ?? ""}</div>
|
|
405
|
+
`;
|
|
406
|
+
}
|
|
407
|
+
let t = e.kind === "aggregation" ? X[e.id] : Y[e.id];
|
|
408
|
+
return t ? v`
|
|
409
|
+
<div class="description-title" part="description-title">${t.label()}</div>
|
|
410
|
+
${ae(t.example(), t.exampleHasIcons ?? !1)}
|
|
411
|
+
<div class="description-text" part="description-text">${t.description()}</div>
|
|
412
|
+
` : y;
|
|
413
|
+
}
|
|
414
|
+
function se({ target: e, size: t }) {
|
|
415
|
+
return v`
|
|
416
|
+
<div class="list description" part="list description-list">
|
|
417
|
+
<luzmo-field-label class="list-header" part="list-header" .size=${t}
|
|
418
|
+
>${C("Description", { desc: "Formula editor description title" })}</luzmo-field-label
|
|
419
|
+
>
|
|
420
|
+
${oe(e)}
|
|
421
|
+
</div>
|
|
422
|
+
`;
|
|
423
|
+
}
|
|
424
|
+
//#endregion
|
|
425
|
+
//#region src/components/formula-editor/formula-functions-list.ts
|
|
426
|
+
var Z = p();
|
|
427
|
+
function Q(e) {
|
|
428
|
+
return v`
|
|
429
|
+
<div class="list-loading" role="status" part="list-loading">
|
|
430
|
+
<luzmo-progress-circle
|
|
431
|
+
indeterminate
|
|
432
|
+
.label=${C("Loading functions", { desc: "Formula editor functions list loading spinner label" })}
|
|
433
|
+
.size=${e}
|
|
434
|
+
></luzmo-progress-circle>
|
|
435
|
+
</div>
|
|
436
|
+
`;
|
|
437
|
+
}
|
|
438
|
+
function ce(e, { size: t, explanationTooltips: n, disabled: r }) {
|
|
439
|
+
return v`
|
|
440
|
+
<div class="list-items" part="list-items" role="list">
|
|
441
|
+
${T(e, (e) => e, (e) => v`
|
|
442
|
+
<luzmo-formula-draggable-field
|
|
443
|
+
role="listitem"
|
|
444
|
+
kind="function"
|
|
445
|
+
value=${e}
|
|
446
|
+
.label=${Z[e]?.label() ?? e}
|
|
447
|
+
.size=${t}
|
|
448
|
+
?disabled=${r}
|
|
449
|
+
>
|
|
450
|
+
${n ? z(Z[e]?.description() ?? "", Z[e]?.example() ?? "", Z[e]?.exampleHasIcons ?? !1) : y}
|
|
451
|
+
</luzmo-formula-draggable-field>
|
|
452
|
+
`)}
|
|
453
|
+
</div>
|
|
454
|
+
`;
|
|
455
|
+
}
|
|
456
|
+
function le(e) {
|
|
457
|
+
let { size: t, loading: n = !1, disabled: r = !1, selectedCategory: i, onCategoryChange: a } = e, o = d(), s = o.find((e) => e.key === i) ?? o[0], c = o.map((e) => ({
|
|
458
|
+
value: e.key,
|
|
459
|
+
label: e.title()
|
|
460
|
+
}));
|
|
461
|
+
return v`
|
|
462
|
+
<div class="list" part="list functions-list">
|
|
463
|
+
<luzmo-field-label class="list-header" part="list-header" .size=${t}
|
|
464
|
+
>${C("Functions", { desc: "Formula editor functions list title" })}</luzmo-field-label
|
|
465
|
+
>
|
|
466
|
+
<luzmo-select
|
|
467
|
+
selects="single"
|
|
468
|
+
variant="highlight"
|
|
469
|
+
.size=${t}
|
|
470
|
+
.options=${c}
|
|
471
|
+
.value=${[s.key]}
|
|
472
|
+
aria-label=${C("Function category", { desc: "Accessible label for the function category selector" })}
|
|
473
|
+
?disabled=${r || n}
|
|
474
|
+
@change=${a}
|
|
475
|
+
></luzmo-select>
|
|
476
|
+
${n ? Q(t) : ce(s.functions, e)}
|
|
477
|
+
</div>
|
|
478
|
+
`;
|
|
479
|
+
}
|
|
480
|
+
//#endregion
|
|
481
|
+
//#region src/components/formula-editor/formula-editor.module.scss?inline
|
|
482
|
+
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}.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 {
|
|
483
|
+
constructor(...e) {
|
|
484
|
+
super(...e), this.expressionResource = "formula", this.explanationDisplay = "tooltip", this._loadingDatasets = !1, this._describeTarget = null, this._hasError = !1, this._errorMessage = null, this._selectedCategory = "string", this._searchQuery = "", this._collapsedDatasets = /* @__PURE__ */ new Set(), this._validWordIdentifiers = M(this._store.functionDataMap, this._store.aggregationFunctionDataMap), this._validationSequence = 0;
|
|
485
|
+
}
|
|
486
|
+
static {
|
|
487
|
+
this.styles = b(ue);
|
|
488
|
+
}
|
|
489
|
+
get _emitDebounceMs() {
|
|
490
|
+
return de;
|
|
491
|
+
}
|
|
492
|
+
_onExpressionComputed(e) {
|
|
493
|
+
e !== this._lastEmittedExpression && (this._validate(e), this._emitExpressionChanged(e));
|
|
494
|
+
}
|
|
495
|
+
_setLoading(e) {
|
|
496
|
+
this._loadingDatasets = e, this._store.setLoading(e);
|
|
497
|
+
}
|
|
498
|
+
_validate(e) {
|
|
499
|
+
let t = this._localValidity(e), n = ++this._validationSequence;
|
|
500
|
+
if (!t.valid) {
|
|
501
|
+
this._emitValidity(t);
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
if (!this.authKey || !this.authToken) {
|
|
505
|
+
this._emitValidity(this._offlineValidity(e));
|
|
506
|
+
return;
|
|
507
|
+
}
|
|
508
|
+
this._runBackendValidation(e, n);
|
|
509
|
+
}
|
|
510
|
+
async _runBackendValidation(e, t) {
|
|
511
|
+
try {
|
|
512
|
+
i.configure({
|
|
513
|
+
apiUrl: this.apiUrl,
|
|
514
|
+
authKey: this.authKey ?? "",
|
|
515
|
+
authToken: this.authToken ?? ""
|
|
516
|
+
});
|
|
517
|
+
let n = await i.validate(this.expressionResource, {
|
|
518
|
+
expression: e,
|
|
519
|
+
explain_error: !0
|
|
520
|
+
});
|
|
521
|
+
if (t !== this._validationSequence) return;
|
|
522
|
+
this._emitValidity({
|
|
523
|
+
valid: n.valid,
|
|
524
|
+
error: n.valid ? null : n.explanation ?? n.reason ?? null,
|
|
525
|
+
type: n.type
|
|
526
|
+
});
|
|
527
|
+
} catch (n) {
|
|
528
|
+
console.warn("[luzmo-formula-editor] Expression validation failed, falling back to local validation:", n), t === this._validationSequence && this._emitValidity(this._offlineValidity(e));
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
_localValidity(e) {
|
|
532
|
+
return e.trim() ? e.includes("##EMPTYARG-") ? {
|
|
533
|
+
valid: !1,
|
|
534
|
+
error: C("Complete all empty arguments.", { desc: "Formula editor validation error for empty arguments" })
|
|
535
|
+
} : f.test(e) ? {
|
|
536
|
+
valid: !1,
|
|
537
|
+
error: C("Provide a value for every aggregation.", { desc: "Formula editor validation error for empty aggregations" })
|
|
538
|
+
} : {
|
|
539
|
+
valid: !0,
|
|
540
|
+
error: null
|
|
541
|
+
} : {
|
|
542
|
+
valid: !1,
|
|
543
|
+
error: null
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
_offlineValidity(e) {
|
|
547
|
+
let t = N(e, this._validWordIdentifiers);
|
|
548
|
+
return t ? {
|
|
549
|
+
valid: !1,
|
|
550
|
+
error: C(w`'${t}' is not a valid column, function, or value.`, { desc: "Formula editor validation error for unresolved free text in the expression" })
|
|
551
|
+
} : {
|
|
552
|
+
valid: !0,
|
|
553
|
+
error: null
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
_emitValidity(e) {
|
|
557
|
+
this._hasError = !e.valid && !!e.error, this._errorMessage = e.error, this.dispatchEvent(new CustomEvent("luzmo-validity-changed", {
|
|
558
|
+
bubbles: !0,
|
|
559
|
+
composed: !0,
|
|
560
|
+
detail: e
|
|
561
|
+
}));
|
|
562
|
+
}
|
|
563
|
+
_insertColumn(e) {
|
|
564
|
+
this.readonly || !e.columnId || this._store.onExtendExpression({
|
|
565
|
+
type: "column",
|
|
566
|
+
id: e.columnId,
|
|
567
|
+
datasetId: e.datasetId,
|
|
568
|
+
aggregationWidgetId: this._store.lastFocusedAggregationWidgetId,
|
|
569
|
+
targetEmptyArgumentId: this._store.lastFocusedEmptyArgumentId ?? void 0
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
_handleCategoryChange(e) {
|
|
573
|
+
let t = e.detail?.value?.[0];
|
|
574
|
+
t && (this._selectedCategory = t);
|
|
575
|
+
}
|
|
576
|
+
_handleSearchInput(e) {
|
|
577
|
+
this._searchQuery = e.target.value;
|
|
578
|
+
}
|
|
579
|
+
_toggleCollapse(e) {
|
|
580
|
+
let t = new Set(this._collapsedDatasets);
|
|
581
|
+
t.has(e) ? t.delete(e) : t.add(e), this._collapsedDatasets = t;
|
|
582
|
+
}
|
|
583
|
+
_handleDraggableActivate(e) {
|
|
584
|
+
if (e.stopPropagation(), this.readonly) return;
|
|
585
|
+
let { kind: t, value: n } = e.detail;
|
|
586
|
+
this._store.onExtendExpression({
|
|
587
|
+
type: t,
|
|
588
|
+
id: n,
|
|
589
|
+
aggregationWidgetId: this._store.lastFocusedAggregationWidgetId,
|
|
590
|
+
targetEmptyArgumentId: this._store.lastFocusedEmptyArgumentId ?? void 0
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
_handleDraggableDescribe(e) {
|
|
594
|
+
e.stopPropagation();
|
|
595
|
+
let { kind: t, value: n } = e.detail;
|
|
596
|
+
this._describeTarget = n ? {
|
|
597
|
+
kind: t,
|
|
598
|
+
id: n
|
|
599
|
+
} : null;
|
|
600
|
+
}
|
|
601
|
+
_renderLists() {
|
|
602
|
+
if (this.readonly) return y;
|
|
603
|
+
let e = this.explanationDisplay === "tooltip";
|
|
604
|
+
return v`
|
|
605
|
+
<div
|
|
606
|
+
class="lists"
|
|
607
|
+
part="lists"
|
|
608
|
+
@luzmo-formula-draggable-field-activate=${this._handleDraggableActivate}
|
|
609
|
+
@luzmo-formula-draggable-field-describe=${this._handleDraggableDescribe}
|
|
610
|
+
>
|
|
611
|
+
${this.showAggregations ? U({
|
|
612
|
+
explanationTooltips: e,
|
|
613
|
+
loading: this._loadingDatasets,
|
|
614
|
+
size: this.size
|
|
615
|
+
}) : y}
|
|
616
|
+
${q({
|
|
617
|
+
datasets: this._datasets,
|
|
618
|
+
loading: this._loadingDatasets,
|
|
619
|
+
contentLanguage: this.contentLanguage,
|
|
620
|
+
size: this.size,
|
|
621
|
+
searchQuery: this._searchQuery,
|
|
622
|
+
collapsed: this._collapsedDatasets,
|
|
623
|
+
onSearchInput: (e) => this._handleSearchInput(e),
|
|
624
|
+
onToggleCollapse: (e) => this._toggleCollapse(e),
|
|
625
|
+
onInsertColumn: (e) => this._insertColumn(e)
|
|
626
|
+
})}
|
|
627
|
+
${le({
|
|
628
|
+
explanationTooltips: e,
|
|
629
|
+
loading: this._loadingDatasets,
|
|
630
|
+
size: this.size,
|
|
631
|
+
selectedCategory: this._selectedCategory,
|
|
632
|
+
onCategoryChange: (e) => this._handleCategoryChange(e)
|
|
633
|
+
})}
|
|
634
|
+
${e ? y : se({
|
|
635
|
+
target: this._describeTarget,
|
|
636
|
+
size: this.size
|
|
637
|
+
})}
|
|
638
|
+
</div>
|
|
639
|
+
`;
|
|
640
|
+
}
|
|
641
|
+
render() {
|
|
642
|
+
return v`
|
|
643
|
+
<div class="formula-editor" part="formula-editor">
|
|
644
|
+
${this._renderFormulaCodeMirror({ hasError: this._hasError })}
|
|
645
|
+
${this._hasError && this._errorMessage ? v`<div class="error" part="error" role="alert">
|
|
646
|
+
${_(g)}
|
|
647
|
+
<span>${this._errorMessage}</span>
|
|
648
|
+
</div>` : y}
|
|
649
|
+
${this._renderLists()}
|
|
650
|
+
</div>
|
|
651
|
+
`;
|
|
652
|
+
}
|
|
653
|
+
};
|
|
654
|
+
//#endregion
|
|
655
|
+
//#region src/components/formula-editor/index.ts
|
|
656
|
+
r([x({
|
|
657
|
+
type: String,
|
|
658
|
+
attribute: "expression-resource",
|
|
659
|
+
reflect: !0
|
|
660
|
+
})], $.prototype, "expressionResource", void 0), r([x({
|
|
661
|
+
type: String,
|
|
662
|
+
attribute: "explanation-display",
|
|
663
|
+
reflect: !0
|
|
664
|
+
})], $.prototype, "explanationDisplay", void 0), r([S()], $.prototype, "_loadingDatasets", void 0), r([S()], $.prototype, "_describeTarget", void 0), r([S()], $.prototype, "_hasError", void 0), r([S()], $.prototype, "_errorMessage", 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", $);
|
|
665
|
+
//#endregion
|
|
666
|
+
export { $ as t };
|