@luzmo/analytics-components-kit 1.0.4 → 1.0.5-beta.1
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/components/ad-hoc-slot-content-BxpvfmjT.js +29 -0
- package/components/ad-hoc-slot-content-DJUmB7pS.cjs +20 -0
- 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 +302 -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-BBc330Jm.js +3832 -0
- package/components/ai-chat-DLDSaC7W.cjs +300 -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-BCH5_GBO.cjs +68 -0
- package/components/ai-interaction-textarea-DzHetSBZ.js +299 -0
- package/components/{area-chart-positioning.config-CQW5h7Eg.js → area-chart-positioning.config-CjeYLy6C.js} +1 -1
- package/components/{area-chart-positioning.config-CE8lOCfT.cjs → area-chart-positioning.config-DVrykBho.cjs} +1 -1
- package/components/{bar-chart-positioning.config-DFI1wzOQ.cjs → bar-chart-positioning.config-DpF15KcV.cjs} +1 -1
- package/components/{bar-chart-positioning.config-DaH_x_VU.js → bar-chart-positioning.config-e-SAdpBe.js} +1 -1
- package/components/base-DSXeP3BL.cjs +20 -0
- package/components/{base-p2I4mVSW.js → base-a89RuUMb.js} +2 -1
- package/components/{box-plot-positioning.config-K2tQGMig.js → box-plot-positioning.config-Bq2INEtG.js} +1 -1
- package/components/{box-plot-positioning.config-FOyav5Zq.cjs → box-plot-positioning.config-DbwtHJ4q.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-B6DXfqa4.cjs → bubble-chart-positioning.config--EBfDgdN.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-D2fwO2JM.js → bubble-chart-positioning.config-DFnW4mJ9.js} +1 -1
- package/components/{bullet-chart-positioning.config-DZqzqZSQ.cjs → bullet-chart-positioning.config-CZ46z07k.cjs} +1 -1
- package/components/{bullet-chart-positioning.config-DOAG2wFN.js → bullet-chart-positioning.config-DS2OmjBY.js} +1 -1
- package/components/{choropleth-map-positioning.config-C3jO3j8R.cjs → choropleth-map-positioning.config-Clm5IUT6.cjs} +1 -1
- package/components/{choropleth-map-positioning.config-Jw6fAFM1.js → choropleth-map-positioning.config-DgANsGq1.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-Ckb-1sUG.js → circle-pack-chart-positioning.config-2H1CrfH_.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-DJT6ivEy.cjs → circle-pack-chart-positioning.config-qF0qGcEO.cjs} +1 -1
- package/components/{circular-gauge-positioning.config-B8gL5Br9.cjs → circular-gauge-positioning.config-CMttD_BW.cjs} +1 -1
- package/components/{circular-gauge-positioning.config-BGlDGhYZ.js → circular-gauge-positioning.config-CusKP9Tq.js} +1 -1
- package/components/{column-chart-positioning.config-LzBETWIy.cjs → column-chart-positioning.config-ColoutIT.cjs} +1 -1
- package/components/{column-chart-positioning.config-BJGWvFLD.js → column-chart-positioning.config-rRwPVTbj.js} +1 -1
- package/components/{combination-chart-positioning.config-DjmWx90S.cjs → combination-chart-positioning.config-DAVrKW-6.cjs} +1 -1
- package/components/{combination-chart-positioning.config-DtneKdwK.js → combination-chart-positioning.config-uLf1RJQr.js} +1 -1
- package/components/{conditional-number-positioning.config-Ccb2yjJU.js → conditional-number-positioning.config-DZjwZfsH.js} +1 -1
- package/components/{conditional-number-positioning.config-C8bRdffQ.cjs → conditional-number-positioning.config-Nwsh-WyG.cjs} +1 -1
- package/components/convert-data-field-to-slot-content-BQkSy_8B.cjs +20 -0
- package/components/convert-data-field-to-slot-content-C6IIqU7G.js +53 -0
- package/components/convert-datasets-to-data-fields-B13rl1an.cjs +20 -0
- package/components/convert-datasets-to-data-fields-PmQzeVLG.js +68 -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 -1
- package/components/data-field-CFX9bhKN.js +121 -0
- package/components/data-field-bRmOqmAe.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 +28 -0
- package/components/{data-field-ll2oFVG2.js → data-field-level-Cc6yEETi.js} +46 -140
- package/components/data-field-level-Dnl27sxs.cjs +55 -0
- 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 -1
- package/components/data-field-panel-BDExLalA.cjs +87 -0
- package/components/{data-field-panel-ntgCpQ_2.js → data-field-panel-DcqVOzMO.js} +5 -4
- 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-B5aGtDYe.cjs +41 -0
- package/components/{data-fields-select-DJFkrrPs.js → data-fields-select-CfAfiV-K.js} +4 -3
- 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-BXEgg_8O.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-WT2ZHjQ4.cjs +75 -0
- package/components/dataset-selector-list-bAFTW1Hr.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-CXrEKQrA.js +273 -0
- package/components/dataset-selector-row-CwkXH93E.cjs +79 -0
- package/components/decompose-numeric-format-DGJua3rU.cjs +20 -0
- package/components/decompose-numeric-format-DS0j2wa1.js +36 -0
- package/components/{localized-mixin-CBMYHOPv.js → decorate-CaYbmmmm.js} +2 -26
- package/components/decorate-DCJt-2rt.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 +28 -0
- package/components/display-settings/types.d.ts +9 -0
- package/components/display-settings-DrcpHnKo.cjs +140 -0
- package/components/display-settings-Ec_smyRC.js +313 -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-DGxEB9Fa.js → display-settings-binning-COpQPUin.js} +17 -19
- package/components/{display-settings-binning-CQKXGp11.cjs → display-settings-binning-XXJdJeGU.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-DhSW10ln.cjs +217 -0
- package/components/{display-settings-datetime-CLx9sxA7.js → display-settings-datetime-qj86dnHh.js} +69 -71
- 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-B0Px90rH.js → display-settings-grand-totals-D6IDs0U1.js} +17 -19
- package/components/display-settings-grand-totals-DTF0sqA1.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-Dt34JHyR.cjs +190 -0
- package/components/{display-settings-numeric-CdEgzO7W.js → display-settings-numeric-Dy2EMcKa.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-B-ULI6yW.cjs +229 -0
- package/components/{display-settings-period-over-period-lo3myRfT.js → display-settings-period-over-period-BMzBnywY.js} +85 -86
- package/components/{donut-chart-positioning.config-2cYbI6p-.cjs → donut-chart-positioning.config-BnmePhBH.cjs} +1 -1
- package/components/{donut-chart-positioning.config-Dh3XI5f4.js → donut-chart-positioning.config-CnZRc3e8.js} +1 -1
- package/components/{en-hPjCnvK0.cjs → en-B34alchz.cjs} +1 -1
- package/components/{en-OJGeTneC.js → en-CcLhGxIh.js} +1 -1
- package/components/en-GB-B3xz84vF.cjs +20 -0
- package/components/{en-GB-D7N1nMuy.js → en-GB-DzkdeUQh.js} +1 -1
- package/components/{en-US-hPjCnvK0.cjs → en-US-B34alchz.cjs} +1 -1
- package/components/{en-US-OJGeTneC.js → en-US-CcLhGxIh.js} +1 -1
- package/components/{evolution-number-positioning.config-BX1lWtDL.cjs → evolution-number-positioning.config-CKgGLWTm.cjs} +1 -1
- package/components/{evolution-number-positioning.config-BQQrOKbD.js → evolution-number-positioning.config-DiKxJqRO.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-DMZ4sgJ6.js +425 -0
- package/components/filter-expression-picker-Dq0X2lo3.cjs +38 -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-BEe-Y6l0.js +242 -0
- package/components/filter-item-BnxKP0Zg.cjs +58 -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-BxaX9BML.cjs +60 -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-BryAsOYH.cjs +42 -0
- package/components/filter-value-picker-datetime-DtZDr9fY.js +139 -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-BSKoZJ0F.cjs +47 -0
- package/components/filter-value-picker-hierarchy-D9BcuttQ.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-B2EcfNUR.cjs +48 -0
- package/components/filter-value-picker-numeric-CoU9l9wS.js +219 -0
- package/components/filter-value-picker-r1zs2IHx.js +151 -0
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -1
- package/components/filters-C9DVFS6T.cjs +150 -0
- package/components/filters-DVTYmlI1.js +400 -0
- package/components/formatter-8m-wrIM-.cjs +20 -0
- package/components/{period-over-period-condition.const-DLA60ptm.js → formatter-Cq5dFCyU.js} +44 -235
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +1 -1
- package/components/formula--lwYaW2w.cjs +45 -0
- package/components/{formula-TyfDRy5X.js → formula-Ekyv6mpo.js} +15 -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-Bewi7Xgc.cjs → formula-codemirror-BZuBN5sE.cjs} +50 -50
- package/components/{formula-codemirror-B6ktT1Dm.js → formula-codemirror-DgTmL2Id.js} +21 -19
- package/components/formula-display-store-BunPLkc0.cjs +20 -0
- package/components/{formula-display-store-ycPV0gru.js → formula-display-store-ezef6EvF.js} +242 -271
- 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 -3
- package/components/formula-editor-CjVohoJB.cjs +218 -0
- package/components/{formula-editor-HkD4KWnN.js → formula-editor-DRpm9ej7.js} +143 -348
- 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-DcgWLGBD.cjs +20 -0
- package/components/formula-field-TwMnyN0t.js +40 -0
- package/components/formula-input-base-D6QdnUOa.cjs +49 -0
- package/components/formula-input-base-Dxk5euNb.js +236 -0
- package/components/{funnel-chart-positioning.config-iHk--8l3.cjs → funnel-chart-positioning.config-DaHDyj7V.cjs} +1 -1
- package/components/{funnel-chart-positioning.config-9blBdgB7.js → funnel-chart-positioning.config-DysRV01G.js} +1 -1
- package/components/get-dataset-name-D4smY8ms.cjs +20 -0
- package/components/get-dataset-name-D_ZiWu64.js +27 -0
- package/components/groupings-Bzp2EA65.js +52 -0
- package/components/groupings-Wfp8piEu.cjs +20 -0
- package/components/{heat-map-positioning.config-DgrZWNiT.js → heat-map-positioning.config-C6CqosaH.js} +1 -1
- package/components/{heat-map-positioning.config-CqkTB8nU.cjs → heat-map-positioning.config-hFwq08ML.cjs} +1 -1
- package/components/{heat-table-positioning.config-BqsqkftW.js → heat-table-positioning.config-B2RuWLH5.js} +1 -1
- package/components/{heat-table-positioning.config-Ca-WBNR-.cjs → heat-table-positioning.config-MJ_ox9iT.cjs} +1 -1
- package/components/{hexbin-map-positioning.config-sUIrPJP4.cjs → hexbin-map-positioning.config-Dua5Z8M2.cjs} +1 -1
- package/components/{hexbin-map-positioning.config-gkLfwTS6.js → hexbin-map-positioning.config-IiGTpp68.js} +1 -1
- package/components/index.cjs +1 -749
- package/components/index.js +64 -5577
- 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 +28 -0
- package/components/interactive-viz-item/interactive-viz-item.d.ts +96 -0
- package/components/interactive-viz-item/types.d.ts +117 -0
- package/components/interactive-viz-item-O2zj8Ix3.cjs +247 -0
- package/components/interactive-viz-item-lBrlvX4F.js +693 -0
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +1 -1
- package/components/{item-grid-C6nEE4Uj.cjs → item-grid-CmuMl0eC.cjs} +22 -22
- package/components/{item-grid-B59uyBDP.js → item-grid-Cqi995vx.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-CQw6Xsi2.cjs +252 -0
- package/components/{item-option-zz-Rqh6o.js → item-option-Cg3zRKlU.js} +2 -2
- 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-BEXRueVH.js → item-option-action-button-group-C1TU-ng7.js} +2 -2
- package/components/item-option-action-button-group-DBdpU9Ac.cjs +53 -0
- package/components/item-option-base/item-option-base.d.ts +23 -0
- package/components/{item-option-base-DqDKIqRP.js → item-option-base-4mpxvTpE.js} +2 -2
- package/components/item-option-base-BtYcXg-E.cjs +56 -0
- 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-4so22U-2.cjs +40 -0
- package/components/{item-option-color-palette-picker-dk5Nm1XB.js → item-option-color-palette-picker-BBnhEOQj.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-oG-wrEZh.js → item-option-color-picker-CTTEHFVR.js} +2 -2
- package/components/{item-option-color-picker-Czr_ojzh.cjs → item-option-color-picker-CUBaIdL-.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-RbnPnI3s.js → item-option-color-range-BuLEgB7a.js} +2 -2
- package/components/item-option-color-range-H4nV-HoV.cjs +98 -0
- 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-BqhBRIFH.js → item-option-multi-language-field-CXQj3kSW.js} +2 -2
- package/components/{item-option-multi-language-field-BpyuIPcO.cjs → item-option-multi-language-field-d25tETIC.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-BDPEAzdF.js → item-option-number-field-CEQEjnu8.js} +2 -2
- package/components/{item-option-number-field-CV2xpQrk.cjs → item-option-number-field-waG1zcr8.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-CMrjUb2s.cjs → item-option-panel-Bh4d0Ueb.cjs} +2 -2
- package/components/{item-option-panel-XhTxaBZp.js → item-option-panel-CVjT-rr8.js} +3 -3
- package/components/item-option-picker/index.cjs +1 -1
- package/components/item-option-picker/index.js +1 -1
- package/components/{item-option-picker-D_Od3am8.js → item-option-picker-CiEMwzho.js} +2 -2
- package/components/{item-option-picker-CvEfEy99.cjs → item-option-picker-YTJ6noOW.cjs} +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-DExAtVBF.cjs +32 -0
- package/components/{item-option-position-picker-BKw29tj-.js → item-option-position-picker-DVsG8inN.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-lrJdfydy.js → item-option-positions-number-field-7F1_3pxp.js} +2 -2
- package/components/item-option-positions-number-field-Ju4e_B6g.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-DrjpL6YU.cjs → item-option-radio-button-group-6w11UJC-.cjs} +2 -2
- package/components/{item-option-radio-button-group-DTyHPaz_.js → item-option-radio-button-group-CHZKF_oZ.js} +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-CIDoZhZl.js → item-option-slider-CQCvF7wI.js} +2 -2
- package/components/{item-option-slider-BwKBgW0y.cjs → item-option-slider-DdkgydGa.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-DxC1yjeN.js → item-option-switch-68EoGXKU.js} +2 -2
- package/components/{item-option-switch-CQtvbTfI.cjs → item-option-switch-IP4wvB7i.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-CZtJ1yIj.js → item-option-text-field-0CCtgD5i.js} +2 -2
- package/components/{item-option-text-field-pLQzcE25.cjs → item-option-text-field-Be4frWhI.cjs} +2 -2
- 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 -1
- package/components/item-slot-drop-C7BJJcZz.cjs +91 -0
- package/components/{item-slot-drop-SqYpfTGj.js → item-slot-drop-PlCmap_s.js} +14 -9
- 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-DoWCzjqb.js → item-slot-drop-panel-BevGCcMh.js} +41 -40
- package/components/item-slot-drop-panel-hs0gFwb-.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-CadZEvOA.js → item-slot-picker-BzXlX-Zd.js} +26 -21
- package/components/item-slot-picker-dmoR1ZyZ.cjs +174 -0
- package/components/item-slot-picker-panel/index.cjs +1 -1
- package/components/item-slot-picker-panel/index.js +1 -1
- package/components/item-slot-picker-panel-B2TtJUIs.cjs +81 -0
- package/components/{item-slot-picker-panel-Bhr6d6Ya.js → item-slot-picker-panel-DnvwcLGy.js} +5 -4
- package/components/{line-chart-positioning.config-BIkHxiyg.cjs → line-chart-positioning.config-CYqzjNzS.cjs} +1 -1
- package/components/{line-chart-positioning.config-CdnYQBah.js → line-chart-positioning.config-DAs0y-O6.js} +1 -1
- package/components/load-data-fields-for-datasets-BVGaku2J.cjs +20 -0
- package/components/load-data-fields-for-datasets-DeXLqWt4.js +42 -0
- package/components/localized-mixin-BNAt_iYb.cjs +20 -0
- package/components/localized-mixin-GXZQgVAD.js +45 -0
- package/components/{marker-map-positioning.config-BSz4P-W9.js → marker-map-positioning.config-BQ-kNUJI.js} +1 -1
- package/components/{marker-map-positioning.config-t66fioVz.cjs → marker-map-positioning.config-C5h5ydGa.cjs} +1 -1
- package/components/{ohlc-chart-positioning.config-tQPPutWX.js → ohlc-chart-positioning.config-BQyRY4rj.js} +1 -1
- package/components/{ohlc-chart-positioning.config-BGueS7CJ.cjs → ohlc-chart-positioning.config-fqniDSHf.cjs} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-NrJ2LNM8.cjs → parallel-coordinates-plot-positioning.config-Bhyk-q40.cjs} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-MkX-qYHX.js → parallel-coordinates-plot-positioning.config-DMUrvTKC.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-positioning.config-DgJ5PPB9.cjs → pivot-table-positioning.config-CRPJ6cp9.cjs} +1 -1
- package/components/{pivot-table-positioning.config-Dr_0v4TM.js → pivot-table-positioning.config-kgOD7qg4.js} +1 -1
- package/components/{pyramid-chart-positioning.config-BGRtXKWh.cjs → pyramid-chart-positioning.config-B3g4J0Fc.cjs} +1 -1
- package/components/{pyramid-chart-positioning.config-DB0BI8vW.js → pyramid-chart-positioning.config-DzmnUNOa.js} +1 -1
- package/components/{radar-chart-positioning.config-DQiJ-Z1s.cjs → radar-chart-positioning.config-DeMZx8WU.cjs} +1 -1
- package/components/{radar-chart-positioning.config-D6UfRMMA.js → radar-chart-positioning.config-DtCHigcZ.js} +1 -1
- package/components/{route-map-positioning.config-D_ZoyhwX.js → route-map-positioning.config-CNNkOriH.js} +1 -1
- package/components/{route-map-positioning.config-Cbic0Cbz.cjs → route-map-positioning.config-GRnTnxOT.cjs} +1 -1
- package/components/{sankey-diagram-positioning.config-CZDPh7CR.cjs → sankey-diagram-positioning.config-B4dTAI_t.cjs} +1 -1
- package/components/{sankey-diagram-positioning.config-CQNdImz0.js → sankey-diagram-positioning.config-DZzxWrlG.js} +1 -1
- package/components/{scatter-plot-positioning.config-BTOiZ8cF.js → scatter-plot-positioning.config-7DccAqx9.js} +1 -1
- package/components/{scatter-plot-positioning.config-BPEymo3a.cjs → scatter-plot-positioning.config-CUxiLfKj.cjs} +1 -1
- package/components/{slicer-filter-positioning.config-CQE4ocpD.cjs → slicer-filter-positioning.config-DUivNE2P.cjs} +1 -1
- package/components/{slicer-filter-positioning.config-CC7uoU2D.js → slicer-filter-positioning.config-aOkoNRyY.js} +1 -1
- package/components/{en-GB-DCZl8CPc.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 +148 -0
- package/components/slot-menu/types.d.ts +24 -0
- package/components/slot-menu-Bgoo0gWv.cjs +71 -0
- package/components/slot-menu-Cb8piPji.js +422 -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 +47 -0
- package/components/slot-menu-list-Cy6tegSf.cjs +44 -0
- package/components/slot-menu-list-VuVIRNtr.js +346 -0
- package/components/slot-role-classification-Bvt3bI01.cjs +20 -0
- package/components/slot-role-classification-CCzj4WgN.js +133 -0
- package/components/slots-config-P_GXW0tl.js +77 -0
- package/components/slots-config-YdyClHLc.cjs +20 -0
- package/components/{speedometer-chart-positioning.config-ChH-uAdS.js → speedometer-chart-positioning.config-Dj6XK0gq.js} +1 -1
- package/components/{speedometer-chart-positioning.config-DpBVarun.cjs → speedometer-chart-positioning.config-DzCh70X-.cjs} +1 -1
- package/components/{spike-map-positioning.config-BnEQJ-rD.js → spike-map-positioning.config-BG2pKkf7.js} +1 -1
- package/components/{spike-map-positioning.config-DrSoa8Ol.cjs → spike-map-positioning.config-BQIg4Z0U.cjs} +1 -1
- package/components/{strip-plot-positioning.config-DlkZ1i6m.cjs → strip-plot-positioning.config-D3ZNgtC4.cjs} +1 -1
- package/components/{strip-plot-positioning.config-Be5Desz2.js → strip-plot-positioning.config-HZCVc6kX.js} +1 -1
- package/components/{sunburst-chart-positioning.config-RUEkAgKJ.js → sunburst-chart-positioning.config-0O9eMweg.js} +1 -1
- package/components/{sunburst-chart-positioning.config-D4zzci9s.cjs → sunburst-chart-positioning.config-B-hCz3bI.cjs} +1 -1
- package/components/{symbol-map-positioning.config-JzgtULMk.js → symbol-map-positioning.config-Dod98HkQ.js} +1 -1
- package/components/{symbol-map-positioning.config-Dmgmyhv7.cjs → symbol-map-positioning.config-aHnkaWU6.cjs} +1 -1
- package/components/{treemap-chart-positioning.config-CSt_vVgw.js → treemap-chart-positioning.config-XB1_FmX-.js} +1 -1
- package/components/{treemap-chart-positioning.config-CqHJxz2j.cjs → treemap-chart-positioning.config-qhPL49um.cjs} +1 -1
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +2 -2
- package/components/utils-B1BzV2xl.cjs +20 -0
- package/components/{utils-DLTDAer5.js → utils-BMOxXnnX.js} +42 -41
- package/components/utils.cjs +1 -1
- package/components/utils.js +8 -5
- package/components/{venn-diagram-positioning.config-DsPI8qfG.js → venn-diagram-positioning.config-Bh1ypVKP.js} +1 -1
- package/components/{venn-diagram-positioning.config-CzhNTma3.cjs → venn-diagram-positioning.config-CimHfhlV.cjs} +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-CTPd7QMx.cjs +55 -0
- package/components/viz-item-menu-sOvrO3Ku.js +170 -0
- package/components/{wordcloud-chart-positioning.config-moNJfL1M.cjs → wordcloud-chart-positioning.config-BR_g8Now.cjs} +1 -1
- package/components/{wordcloud-chart-positioning.config-BUE8e4fN.js → wordcloud-chart-positioning.config-CmakCQG0.js} +1 -1
- package/custom-elements.json +15942 -5759
- package/index.d.ts +24 -0
- package/package.json +126 -1
- package/react/README.md +31 -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 +45 -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-field.component.ts +30 -0
- package/react/components/interactive-viz-item/index.ts +1 -0
- package/react/components/interactive-viz-item/types.ts +122 -0
- package/react/components/interactive-viz-item.component.ts +33 -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 +24 -0
- package/react/esm/components/ai-chat.component.js +29 -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-field.component.d.ts +14 -0
- package/react/esm/components/formula-field.component.js +19 -0
- package/react/esm/components/interactive-viz-item/index.d.ts +1 -0
- package/react/esm/components/interactive-viz-item/index.js +1 -0
- package/react/esm/components/interactive-viz-item/types.d.ts +117 -0
- package/react/esm/components/interactive-viz-item/types.js +16 -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/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 +27 -2
- package/react/esm/index.js +102 -2
- package/react/esm/types.d.ts +15 -0
- package/react/index.ts +102 -2
- package/react/luzmo-stub.d.ts +164 -0
- package/react/types.ts +12 -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 +90 -0
- package/types/data-field-events.types.d.ts +7 -0
- package/types.d.ts +8 -0
- package/components/base-CYiGlWug.cjs +0 -20
- package/components/data-field-iGBGWoGH.cjs +0 -89
- package/components/data-field-panel-NktuTUUp.cjs +0 -87
- package/components/data-fields-select-DL1nFRg3.cjs +0 -41
- package/components/display-settings-datetime-25LwuZM_.cjs +0 -217
- package/components/display-settings-grand-totals-1tBdxbFY.cjs +0 -44
- package/components/display-settings-numeric-Bbx4qmpA.cjs +0 -190
- package/components/display-settings-period-over-period-4bJbXWB7.cjs +0 -229
- package/components/filters-Bzx4DYm-.cjs +0 -323
- package/components/filters-DSod7vIq.js +0 -1637
- package/components/formula-DcCDYDt4.cjs +0 -45
- package/components/formula-display-store-DxjO7Q-n.cjs +0 -20
- package/components/formula-editor-DQp_XiX5.cjs +0 -247
- package/components/item-option-C4c-e1QF.cjs +0 -252
- package/components/item-option-action-button-group-BU1wvtEd.cjs +0 -53
- package/components/item-option-base-DATaPQ-m.cjs +0 -56
- package/components/item-option-color-palette-picker-Cc2nTuxC.cjs +0 -40
- package/components/item-option-color-range-CTnHZ72E.cjs +0 -98
- package/components/item-option-position-picker-DBs4JlFi.cjs +0 -32
- package/components/item-option-positions-number-field-DIIEFHd4.cjs +0 -49
- package/components/item-slot-drop-UygcXM5D.cjs +0 -91
- package/components/item-slot-drop-panel-9T8BWejl.cjs +0 -57
- package/components/item-slot-picker-Rnb_wwCV.cjs +0 -174
- package/components/item-slot-picker-panel-2VJY6C0b.cjs +0 -81
- package/components/load-data-fields-for-datasets-CU75T9Az.js +0 -86
- package/components/load-data-fields-for-datasets-DkK1JsFd.cjs +0 -20
- package/components/localized-mixin-DAOiXh71.cjs +0 -20
- package/components/period-over-period-condition.const-DystGY6B.cjs +0 -20
- package/components/slot-menu-BL772rj7.js +0 -1048
- package/components/slot-menu-CCbZ-krJ.cjs +0 -215
- package/components/utils-Ez3j4EOS.cjs +0 -20
|
@@ -18,268 +18,63 @@
|
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
20
|
import { t as e } from "./pragmatic-element-adapter-e5LbH_lv.js";
|
|
21
|
-
import { i as t, n } from "./base-
|
|
22
|
-
import {
|
|
21
|
+
import { i as t, n } from "./base-a89RuUMb.js";
|
|
22
|
+
import { t as r } from "./decorate-CaYbmmmm.js";
|
|
23
23
|
import { t as i } from "./data-broker-CVDImE1j.js";
|
|
24
24
|
import { t as a } from "./calculate-data-field-icon-DrSg1PuD.js";
|
|
25
25
|
import { t as o } from "./localize-BT7REYBY.js";
|
|
26
|
-
import {
|
|
27
|
-
import { n as
|
|
28
|
-
import "./
|
|
29
|
-
import
|
|
30
|
-
import {
|
|
26
|
+
import { a as s, i as c, n as l, p as u, r as d } from "./formula-display-store-ezef6EvF.js";
|
|
27
|
+
import { n as f } from "./groupings-Bzp2EA65.js";
|
|
28
|
+
import { n as p, t as m } from "./get-css-variable-COcan5CX.js";
|
|
29
|
+
import "./data-field-CFX9bhKN.js";
|
|
30
|
+
import { t as h } from "./formula-input-base-Dxk5euNb.js";
|
|
31
|
+
import { luzmoAlertOutline as g, luzmoAngleDown as ee, luzmoAngleRight as te, luzmoArrows as ne, luzmoIcon as _ } from "@luzmo/icons";
|
|
31
32
|
import "@luzmo/lucero/icon";
|
|
32
|
-
import { html as
|
|
33
|
-
import { property as
|
|
34
|
-
import { localized as
|
|
33
|
+
import { html as v, nothing as y, unsafeCSS as b } from "lit";
|
|
34
|
+
import { property as x, state as S } from "lit/decorators.js";
|
|
35
|
+
import { localized as re, msg as C, str as w } from "@lit/localize";
|
|
35
36
|
import "@luzmo/lucero/select";
|
|
36
37
|
import "@luzmo/lucero/tooltip";
|
|
37
|
-
import { repeat as
|
|
38
|
+
import { repeat as T } from "lit/directives/repeat.js";
|
|
38
39
|
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
40
|
import "@luzmo/lucero/progress-circle";
|
|
42
41
|
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
42
|
//#region src/utils/formula/config/validate-expression.ts
|
|
248
|
-
var
|
|
43
|
+
var E = [
|
|
249
44
|
"numeric",
|
|
250
45
|
"hierarchy",
|
|
251
46
|
"datetime",
|
|
252
47
|
"spatial"
|
|
253
|
-
],
|
|
48
|
+
], D = [
|
|
254
49
|
"true",
|
|
255
50
|
"false",
|
|
256
51
|
"null"
|
|
257
|
-
],
|
|
52
|
+
], O = [
|
|
258
53
|
"GROUP",
|
|
259
54
|
"GROUPFULL",
|
|
260
55
|
"GROUPINEX"
|
|
261
|
-
],
|
|
262
|
-
function
|
|
56
|
+
], k = /'(?:[^']|'')*'|"(?:[^"]|"")*"/g, A = /\{[^}]*\}/g, j = /[A-Za-z_][A-Za-z0-9_]*/g;
|
|
57
|
+
function M(e, t) {
|
|
263
58
|
let n = /* @__PURE__ */ new Set();
|
|
264
59
|
for (let t of Object.keys(e)) /^[A-Za-z_]/.test(t) && n.add(t.toUpperCase());
|
|
265
60
|
for (let e of Object.keys(t)) n.add(e.toUpperCase());
|
|
266
61
|
for (let e of [
|
|
267
|
-
...
|
|
268
|
-
...
|
|
269
|
-
...
|
|
62
|
+
...O,
|
|
63
|
+
...E,
|
|
64
|
+
...D
|
|
270
65
|
]) n.add(e.toUpperCase());
|
|
271
66
|
return n;
|
|
272
67
|
}
|
|
273
|
-
function
|
|
274
|
-
let n = e.replace(
|
|
275
|
-
|
|
68
|
+
function N(e, t) {
|
|
69
|
+
let n = e.replace(k, " ").replace(A, " ");
|
|
70
|
+
j.lastIndex = 0;
|
|
276
71
|
let r;
|
|
277
|
-
for (; (r =
|
|
72
|
+
for (; (r = j.exec(n)) !== null;) if (!t.has(r[0].toUpperCase())) return r[0];
|
|
278
73
|
return null;
|
|
279
74
|
}
|
|
280
75
|
//#endregion
|
|
281
76
|
//#region node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/element/custom-native-drag-preview/pointer-outside-of-preview.js
|
|
282
|
-
function
|
|
77
|
+
function P(e) {
|
|
283
78
|
return function(t) {
|
|
284
79
|
var n = t.container;
|
|
285
80
|
return Object.assign(n.style, {
|
|
@@ -293,7 +88,7 @@ function le(e) {
|
|
|
293
88
|
}
|
|
294
89
|
//#endregion
|
|
295
90
|
//#region src/components/formula-draggable-field/formula-draggable-field.module.scss?inline
|
|
296
|
-
var
|
|
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, {
|
|
297
92
|
validSizes: [
|
|
298
93
|
"s",
|
|
299
94
|
"m",
|
|
@@ -306,7 +101,7 @@ var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bo
|
|
|
306
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;
|
|
307
102
|
}
|
|
308
103
|
static {
|
|
309
|
-
this.styles =
|
|
104
|
+
this.styles = b(F);
|
|
310
105
|
}
|
|
311
106
|
_handleIconSlotChange(e) {
|
|
312
107
|
this._hasIcon = e.target.assignedNodes({ flatten: !0 }).length > 0;
|
|
@@ -332,9 +127,9 @@ var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bo
|
|
|
332
127
|
value: this.value
|
|
333
128
|
}),
|
|
334
129
|
onGenerateDragPreview: ({ nativeSetDragImage: e }) => {
|
|
335
|
-
|
|
130
|
+
p({
|
|
336
131
|
nativeSetDragImage: e,
|
|
337
|
-
getOffset:
|
|
132
|
+
getOffset: P({
|
|
338
133
|
x: "8px",
|
|
339
134
|
y: "8px"
|
|
340
135
|
}),
|
|
@@ -346,7 +141,7 @@ var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bo
|
|
|
346
141
|
});
|
|
347
142
|
}
|
|
348
143
|
_buildDragPreview() {
|
|
349
|
-
let e = document.createElement("div"), t = this.variant === "highlight" ?
|
|
144
|
+
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
145
|
return e.textContent = this.label, Object.assign(e.style, {
|
|
351
146
|
display: "inline-flex",
|
|
352
147
|
alignItems: "center",
|
|
@@ -355,14 +150,14 @@ var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bo
|
|
|
355
150
|
textOverflow: "ellipsis",
|
|
356
151
|
whiteSpace: "nowrap",
|
|
357
152
|
padding: "4px 8px",
|
|
358
|
-
borderRadius:
|
|
359
|
-
border: `1px solid ${
|
|
153
|
+
borderRadius: m(this, "--luzmo-border-radius") || "6px",
|
|
154
|
+
border: `1px solid ${m(this, "--luzmo-border-color")}`,
|
|
360
155
|
background: t,
|
|
361
|
-
color:
|
|
362
|
-
fontFamily:
|
|
156
|
+
color: m(this, "--luzmo-font-color"),
|
|
157
|
+
fontFamily: m(this, "--luzmo-font-family"),
|
|
363
158
|
fontSize: getComputedStyle(this).fontSize,
|
|
364
159
|
lineHeight: "1",
|
|
365
|
-
boxShadow:
|
|
160
|
+
boxShadow: m(this, "--luzmo-box-shadow") || "0 1px 4px rgb(0 0 0 / 15%)"
|
|
366
161
|
}), e;
|
|
367
162
|
}
|
|
368
163
|
_handleClick(e) {
|
|
@@ -390,7 +185,7 @@ var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bo
|
|
|
390
185
|
}
|
|
391
186
|
render() {
|
|
392
187
|
let e = this._hasTooltipSlot || !!this.description;
|
|
393
|
-
return
|
|
188
|
+
return v`
|
|
394
189
|
<button
|
|
395
190
|
class="draggable"
|
|
396
191
|
type="button"
|
|
@@ -401,7 +196,7 @@ var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bo
|
|
|
401
196
|
@mouseenter=${this._describe}
|
|
402
197
|
@focus=${this._describe}
|
|
403
198
|
>
|
|
404
|
-
<span class="drag-icon" aria-hidden="true">${
|
|
199
|
+
<span class="drag-icon" aria-hidden="true">${_(ne)}</span>
|
|
405
200
|
<slot
|
|
406
201
|
name="icon"
|
|
407
202
|
class="icon-slot ${this._hasIcon ? "has-icon" : ""}"
|
|
@@ -415,7 +210,7 @@ var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bo
|
|
|
415
210
|
?disabled=${!e}
|
|
416
211
|
>
|
|
417
212
|
<div class="tooltip-content">
|
|
418
|
-
${this._hasTooltipSlot ?
|
|
213
|
+
${this._hasTooltipSlot ? y : this.description ? v`<span>${this.description}</span>` : y}
|
|
419
214
|
<slot name="tooltip" @slotchange=${this._handleTooltipSlotChange}></slot>
|
|
420
215
|
</div>
|
|
421
216
|
</luzmo-tooltip>
|
|
@@ -425,109 +220,109 @@ var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bo
|
|
|
425
220
|
};
|
|
426
221
|
//#endregion
|
|
427
222
|
//#region src/components/formula-draggable-field/index.ts
|
|
428
|
-
r([
|
|
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({
|
|
429
224
|
type: String,
|
|
430
225
|
attribute: "tooltip-placement"
|
|
431
|
-
})],
|
|
226
|
+
})], I.prototype, "tooltipPlacement", void 0), r([x({
|
|
432
227
|
type: String,
|
|
433
228
|
reflect: !0
|
|
434
|
-
})],
|
|
229
|
+
})], I.prototype, "variant", void 0), r([x({
|
|
435
230
|
type: Boolean,
|
|
436
231
|
reflect: !0
|
|
437
|
-
})],
|
|
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);
|
|
438
233
|
//#endregion
|
|
439
234
|
//#region src/utils/formula/render-explanation-tooltip.ts
|
|
440
|
-
var
|
|
235
|
+
var L = {
|
|
441
236
|
numeric: "numeric",
|
|
442
237
|
hierarchy: "hierarchy",
|
|
443
238
|
datetime: "datetime"
|
|
444
239
|
};
|
|
445
|
-
function
|
|
446
|
-
return t ?
|
|
240
|
+
function R(e, t) {
|
|
241
|
+
return t ? v`<code class="tooltip-example">${e.split(/(⟨\w+⟩)/g).map((e) => {
|
|
447
242
|
let t = e.match(/^⟨(\w+)⟩$/);
|
|
448
243
|
if (t) {
|
|
449
|
-
let e =
|
|
450
|
-
if (e) return
|
|
244
|
+
let e = L[t[1]];
|
|
245
|
+
if (e) return v`<span class="example-icon" aria-hidden="true">${_(a({ type: e }, "s"))}</span>`;
|
|
451
246
|
}
|
|
452
247
|
return e;
|
|
453
|
-
})}</code>` :
|
|
248
|
+
})}</code>` : v`<code class="tooltip-example">${e}</code>`;
|
|
454
249
|
}
|
|
455
|
-
function
|
|
456
|
-
return !e && !t ?
|
|
250
|
+
function z(e, t, n) {
|
|
251
|
+
return !e && !t ? y : v`
|
|
457
252
|
<div slot="tooltip" class="explanation-tooltip">
|
|
458
|
-
${e ?
|
|
459
|
-
${t ?
|
|
253
|
+
${e ? v`<span>${e}</span>` : y}
|
|
254
|
+
${t ? R(t, n) : y}
|
|
460
255
|
</div>
|
|
461
256
|
`;
|
|
462
257
|
}
|
|
463
258
|
//#endregion
|
|
464
259
|
//#region src/components/formula-editor/formula-aggregations-list.ts
|
|
465
|
-
var
|
|
466
|
-
function
|
|
467
|
-
return
|
|
260
|
+
var B = s();
|
|
261
|
+
function V(e) {
|
|
262
|
+
return v`
|
|
468
263
|
<div class="list-loading" role="status" part="list-loading">
|
|
469
264
|
<luzmo-progress-circle
|
|
470
265
|
indeterminate
|
|
471
|
-
.label=${
|
|
266
|
+
.label=${C("Loading aggregations", { desc: "Formula editor aggregations list loading spinner label" })}
|
|
472
267
|
.size=${e}
|
|
473
268
|
></luzmo-progress-circle>
|
|
474
269
|
</div>
|
|
475
270
|
`;
|
|
476
271
|
}
|
|
477
|
-
function
|
|
478
|
-
return
|
|
272
|
+
function H({ size: e, explanationTooltips: t, disabled: n }) {
|
|
273
|
+
return v`
|
|
479
274
|
<div class="list-items" part="list-items" role="list">
|
|
480
|
-
${
|
|
275
|
+
${T(c, (e) => e, (r) => v`
|
|
481
276
|
<luzmo-formula-draggable-field
|
|
482
277
|
role="listitem"
|
|
483
278
|
kind="aggregation"
|
|
484
279
|
value=${r}
|
|
485
|
-
.label=${
|
|
280
|
+
.label=${B[r]?.label() ?? r}
|
|
486
281
|
.size=${e}
|
|
487
282
|
?disabled=${n}
|
|
488
283
|
>
|
|
489
|
-
${t ?
|
|
284
|
+
${t ? z(B[r]?.description() ?? "", B[r]?.example() ?? "", B[r]?.exampleHasIcons ?? !1) : y}
|
|
490
285
|
</luzmo-formula-draggable-field>
|
|
491
286
|
`)}
|
|
492
287
|
</div>
|
|
493
288
|
`;
|
|
494
289
|
}
|
|
495
|
-
function
|
|
496
|
-
return
|
|
290
|
+
function U(e) {
|
|
291
|
+
return v`
|
|
497
292
|
<div class="list" part="list aggregations-list">
|
|
498
293
|
<luzmo-field-label class="list-header" part="list-header" .size=${e.size}
|
|
499
|
-
>${
|
|
294
|
+
>${C("Aggregations", { desc: "Formula editor aggregations list title" })}</luzmo-field-label
|
|
500
295
|
>
|
|
501
|
-
${e.loading ?
|
|
296
|
+
${e.loading ? V(e.size) : H(e)}
|
|
502
297
|
</div>
|
|
503
298
|
`;
|
|
504
299
|
}
|
|
505
300
|
//#endregion
|
|
506
301
|
//#region src/components/formula-editor/formula-datasets-list.ts
|
|
507
|
-
function
|
|
302
|
+
function W(e, t, n) {
|
|
508
303
|
let r = t.trim().toLowerCase();
|
|
509
304
|
return r ? e.columns.filter((e) => o(e.name, n).toLowerCase().includes(r)) : e.columns;
|
|
510
305
|
}
|
|
511
|
-
function
|
|
512
|
-
return
|
|
306
|
+
function G(e) {
|
|
307
|
+
return v`
|
|
513
308
|
<div class="list-loading" role="status" part="list-loading">
|
|
514
309
|
<luzmo-progress-circle
|
|
515
310
|
indeterminate
|
|
516
|
-
.label=${
|
|
311
|
+
.label=${C("Loading columns", { desc: "Formula editor datasets list loading spinner label" })}
|
|
517
312
|
.size=${e}
|
|
518
313
|
></luzmo-progress-circle>
|
|
519
314
|
</div>
|
|
520
315
|
`;
|
|
521
316
|
}
|
|
522
|
-
function
|
|
317
|
+
function K(e, t) {
|
|
523
318
|
let { datasets: n, contentLanguage: r, size: i, disabled: a, searchQuery: s, collapsed: c, onToggleCollapse: l, onInsertColumn: u } = e;
|
|
524
|
-
return
|
|
319
|
+
return v`
|
|
525
320
|
<div class="list-scroll" part="list-scroll">
|
|
526
|
-
${
|
|
527
|
-
let n =
|
|
528
|
-
return n.length === 0 ?
|
|
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`
|
|
529
324
|
<div class="dataset-group" part="dataset-group">
|
|
530
|
-
${t ?
|
|
325
|
+
${t ? v`<button
|
|
531
326
|
class="dataset-group-header"
|
|
532
327
|
part="dataset-group-header"
|
|
533
328
|
type="button"
|
|
@@ -535,12 +330,12 @@ function ve(e, t) {
|
|
|
535
330
|
@click=${() => l(e.id)}
|
|
536
331
|
>
|
|
537
332
|
<span class="dataset-group-icon" aria-hidden="true"
|
|
538
|
-
>${
|
|
333
|
+
>${_(d ? te : ee)}</span
|
|
539
334
|
>
|
|
540
335
|
<span class="dataset-group-label">${o(e.name, r) || e.id}</span>
|
|
541
|
-
</button>` :
|
|
542
|
-
${d ?
|
|
543
|
-
${
|
|
336
|
+
</button>` : y}
|
|
337
|
+
${d ? y : v`<div class="dataset-group-fields" role="list">
|
|
338
|
+
${T(n, (e) => `${e.datasetId}:${e.columnId}`, (e) => v`
|
|
544
339
|
<luzmo-data-field
|
|
545
340
|
role="listitem"
|
|
546
341
|
hide-sublevels
|
|
@@ -558,115 +353,115 @@ function ve(e, t) {
|
|
|
558
353
|
</div>
|
|
559
354
|
`;
|
|
560
355
|
}
|
|
561
|
-
function
|
|
356
|
+
function q(e) {
|
|
562
357
|
let { size: t, loading: n = !1, disabled: r = !1, searchQuery: i, onSearchInput: a } = e, o = e.datasets.length > 1;
|
|
563
|
-
return
|
|
358
|
+
return v`
|
|
564
359
|
<div class="list" part="list datasets-list">
|
|
565
360
|
<luzmo-field-label class="list-header" part="list-header" .size=${t}
|
|
566
|
-
>${
|
|
361
|
+
>${C("Data", {
|
|
567
362
|
id: "formula-datasets-list-title",
|
|
568
363
|
desc: "Formula editor datasets list title"
|
|
569
364
|
})}</luzmo-field-label
|
|
570
365
|
>
|
|
571
366
|
<luzmo-search
|
|
572
367
|
.size=${t}
|
|
573
|
-
.placeholder=${
|
|
368
|
+
.placeholder=${C("Search columns...", { desc: "Formula editor datasets list search placeholder" })}
|
|
574
369
|
.value=${i}
|
|
575
370
|
?disabled=${r || n}
|
|
576
371
|
@input=${a}
|
|
577
372
|
></luzmo-search>
|
|
578
|
-
${n ?
|
|
373
|
+
${n ? G(t) : K(e, o)}
|
|
579
374
|
</div>
|
|
580
375
|
`;
|
|
581
376
|
}
|
|
582
377
|
//#endregion
|
|
583
378
|
//#region src/components/formula-editor/formula-description.ts
|
|
584
|
-
var
|
|
379
|
+
var J = {
|
|
585
380
|
numeric: "numeric",
|
|
586
381
|
hierarchy: "hierarchy",
|
|
587
382
|
datetime: "datetime"
|
|
588
|
-
},
|
|
589
|
-
function
|
|
590
|
-
return t ?
|
|
383
|
+
}, Y = d(), X = s(), ie = f();
|
|
384
|
+
function ae(e, t) {
|
|
385
|
+
return t ? v`<code class="example-code">${e.split(/(⟨\w+⟩)/g).map((e) => {
|
|
591
386
|
let t = e.match(/^⟨(\w+)⟩$/);
|
|
592
387
|
if (t) {
|
|
593
|
-
let e =
|
|
594
|
-
if (e) return
|
|
388
|
+
let e = J[t[1]];
|
|
389
|
+
if (e) return v`<span class="example-icon" aria-hidden="true">${_(a({ type: e }, "s"))}</span>`;
|
|
595
390
|
}
|
|
596
391
|
return e;
|
|
597
|
-
})}</code>` :
|
|
392
|
+
})}</code>` : v`<code class="example-code">${e}</code>`;
|
|
598
393
|
}
|
|
599
|
-
function
|
|
600
|
-
if (!e) return
|
|
394
|
+
function oe(e) {
|
|
395
|
+
if (!e) return v`
|
|
601
396
|
<div class="description-empty" part="description-empty">
|
|
602
|
-
${
|
|
397
|
+
${C("Hover a function or aggregation to see its description.", { desc: "Formula editor description empty state" })}
|
|
603
398
|
</div>
|
|
604
399
|
`;
|
|
605
400
|
if (e.kind === "grouping") {
|
|
606
|
-
let t =
|
|
607
|
-
return
|
|
401
|
+
let t = ie[e.id];
|
|
402
|
+
return v`
|
|
608
403
|
<div class="description-title" part="description-title">${t?.label() ?? e.id}</div>
|
|
609
404
|
<div class="description-text" part="description-text">${t?.description() ?? ""}</div>
|
|
610
405
|
`;
|
|
611
406
|
}
|
|
612
|
-
let t = e.kind === "aggregation" ?
|
|
613
|
-
return t ?
|
|
407
|
+
let t = e.kind === "aggregation" ? X[e.id] : Y[e.id];
|
|
408
|
+
return t ? v`
|
|
614
409
|
<div class="description-title" part="description-title">${t.label()}</div>
|
|
615
|
-
${
|
|
410
|
+
${ae(t.example(), t.exampleHasIcons ?? !1)}
|
|
616
411
|
<div class="description-text" part="description-text">${t.description()}</div>
|
|
617
|
-
` :
|
|
412
|
+
` : y;
|
|
618
413
|
}
|
|
619
|
-
function
|
|
620
|
-
return
|
|
414
|
+
function se({ target: e, size: t }) {
|
|
415
|
+
return v`
|
|
621
416
|
<div class="list description" part="list description-list">
|
|
622
417
|
<luzmo-field-label class="list-header" part="list-header" .size=${t}
|
|
623
|
-
>${
|
|
418
|
+
>${C("Description", { desc: "Formula editor description title" })}</luzmo-field-label
|
|
624
419
|
>
|
|
625
|
-
${
|
|
420
|
+
${oe(e)}
|
|
626
421
|
</div>
|
|
627
422
|
`;
|
|
628
423
|
}
|
|
629
424
|
//#endregion
|
|
630
425
|
//#region src/components/formula-editor/formula-functions-list.ts
|
|
631
|
-
var
|
|
632
|
-
function
|
|
633
|
-
return
|
|
426
|
+
var Z = d();
|
|
427
|
+
function Q(e) {
|
|
428
|
+
return v`
|
|
634
429
|
<div class="list-loading" role="status" part="list-loading">
|
|
635
430
|
<luzmo-progress-circle
|
|
636
431
|
indeterminate
|
|
637
|
-
.label=${
|
|
432
|
+
.label=${C("Loading functions", { desc: "Formula editor functions list loading spinner label" })}
|
|
638
433
|
.size=${e}
|
|
639
434
|
></luzmo-progress-circle>
|
|
640
435
|
</div>
|
|
641
436
|
`;
|
|
642
437
|
}
|
|
643
|
-
function
|
|
644
|
-
return
|
|
438
|
+
function ce(e, { size: t, explanationTooltips: n, disabled: r }) {
|
|
439
|
+
return v`
|
|
645
440
|
<div class="list-items" part="list-items" role="list">
|
|
646
|
-
${
|
|
441
|
+
${T(e, (e) => e, (e) => v`
|
|
647
442
|
<luzmo-formula-draggable-field
|
|
648
443
|
role="listitem"
|
|
649
444
|
kind="function"
|
|
650
445
|
value=${e}
|
|
651
|
-
.label=${
|
|
446
|
+
.label=${Z[e]?.label() ?? e}
|
|
652
447
|
.size=${t}
|
|
653
448
|
?disabled=${r}
|
|
654
449
|
>
|
|
655
|
-
${n ?
|
|
450
|
+
${n ? z(Z[e]?.description() ?? "", Z[e]?.example() ?? "", Z[e]?.exampleHasIcons ?? !1) : y}
|
|
656
451
|
</luzmo-formula-draggable-field>
|
|
657
452
|
`)}
|
|
658
453
|
</div>
|
|
659
454
|
`;
|
|
660
455
|
}
|
|
661
|
-
function
|
|
662
|
-
let { size: t, loading: n = !1, disabled: r = !1, selectedCategory: i, onCategoryChange: a } = e, o =
|
|
456
|
+
function le(e) {
|
|
457
|
+
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
458
|
value: e.key,
|
|
664
459
|
label: e.title()
|
|
665
460
|
}));
|
|
666
|
-
return
|
|
461
|
+
return v`
|
|
667
462
|
<div class="list" part="list functions-list">
|
|
668
463
|
<luzmo-field-label class="list-header" part="list-header" .size=${t}
|
|
669
|
-
>${
|
|
464
|
+
>${C("Functions", { desc: "Formula editor functions list title" })}</luzmo-field-label
|
|
670
465
|
>
|
|
671
466
|
<luzmo-select
|
|
672
467
|
selects="single"
|
|
@@ -674,25 +469,25 @@ function Oe(e) {
|
|
|
674
469
|
.size=${t}
|
|
675
470
|
.options=${c}
|
|
676
471
|
.value=${[s.key]}
|
|
677
|
-
aria-label=${
|
|
472
|
+
aria-label=${C("Function category", { desc: "Accessible label for the function category selector" })}
|
|
678
473
|
?disabled=${r || n}
|
|
679
474
|
@change=${a}
|
|
680
475
|
></luzmo-select>
|
|
681
|
-
${n ?
|
|
476
|
+
${n ? Q(t) : ce(s.functions, e)}
|
|
682
477
|
</div>
|
|
683
478
|
`;
|
|
684
479
|
}
|
|
685
480
|
//#endregion
|
|
686
481
|
//#region src/components/formula-editor/formula-editor.module.scss?inline
|
|
687
|
-
var
|
|
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 {
|
|
688
483
|
constructor(...e) {
|
|
689
|
-
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 =
|
|
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;
|
|
690
485
|
}
|
|
691
486
|
static {
|
|
692
|
-
this.styles =
|
|
487
|
+
this.styles = b(ue);
|
|
693
488
|
}
|
|
694
489
|
get _emitDebounceMs() {
|
|
695
|
-
return
|
|
490
|
+
return de;
|
|
696
491
|
}
|
|
697
492
|
_onExpressionComputed(e) {
|
|
698
493
|
e !== this._lastEmittedExpression && (this._validate(e), this._emitExpressionChanged(e));
|
|
@@ -736,10 +531,10 @@ var ke = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
736
531
|
_localValidity(e) {
|
|
737
532
|
return e.trim() ? e.includes("##EMPTYARG-") ? {
|
|
738
533
|
valid: !1,
|
|
739
|
-
error:
|
|
740
|
-
} :
|
|
534
|
+
error: C("Complete all empty arguments.", { desc: "Formula editor validation error for empty arguments" })
|
|
535
|
+
} : u.test(e) ? {
|
|
741
536
|
valid: !1,
|
|
742
|
-
error:
|
|
537
|
+
error: C("Provide a value for every aggregation.", { desc: "Formula editor validation error for empty aggregations" })
|
|
743
538
|
} : {
|
|
744
539
|
valid: !0,
|
|
745
540
|
error: null
|
|
@@ -749,10 +544,10 @@ var ke = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
749
544
|
};
|
|
750
545
|
}
|
|
751
546
|
_offlineValidity(e) {
|
|
752
|
-
let t =
|
|
547
|
+
let t = N(e, this._validWordIdentifiers);
|
|
753
548
|
return t ? {
|
|
754
549
|
valid: !1,
|
|
755
|
-
error:
|
|
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" })
|
|
756
551
|
} : {
|
|
757
552
|
valid: !0,
|
|
758
553
|
error: null
|
|
@@ -804,21 +599,21 @@ var ke = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
804
599
|
} : null;
|
|
805
600
|
}
|
|
806
601
|
_renderLists() {
|
|
807
|
-
if (this.readonly) return
|
|
602
|
+
if (this.readonly) return y;
|
|
808
603
|
let e = this.explanationDisplay === "tooltip";
|
|
809
|
-
return
|
|
604
|
+
return v`
|
|
810
605
|
<div
|
|
811
606
|
class="lists"
|
|
812
607
|
part="lists"
|
|
813
608
|
@luzmo-formula-draggable-field-activate=${this._handleDraggableActivate}
|
|
814
609
|
@luzmo-formula-draggable-field-describe=${this._handleDraggableDescribe}
|
|
815
610
|
>
|
|
816
|
-
${this.showAggregations ?
|
|
611
|
+
${this.showAggregations ? U({
|
|
817
612
|
explanationTooltips: e,
|
|
818
613
|
loading: this._loadingDatasets,
|
|
819
614
|
size: this.size
|
|
820
|
-
}) :
|
|
821
|
-
${
|
|
615
|
+
}) : y}
|
|
616
|
+
${q({
|
|
822
617
|
datasets: this._datasets,
|
|
823
618
|
loading: this._loadingDatasets,
|
|
824
619
|
contentLanguage: this.contentLanguage,
|
|
@@ -829,14 +624,14 @@ var ke = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
829
624
|
onToggleCollapse: (e) => this._toggleCollapse(e),
|
|
830
625
|
onInsertColumn: (e) => this._insertColumn(e)
|
|
831
626
|
})}
|
|
832
|
-
${
|
|
627
|
+
${le({
|
|
833
628
|
explanationTooltips: e,
|
|
834
629
|
loading: this._loadingDatasets,
|
|
835
630
|
size: this.size,
|
|
836
631
|
selectedCategory: this._selectedCategory,
|
|
837
632
|
onCategoryChange: (e) => this._handleCategoryChange(e)
|
|
838
633
|
})}
|
|
839
|
-
${e ?
|
|
634
|
+
${e ? y : se({
|
|
840
635
|
target: this._describeTarget,
|
|
841
636
|
size: this.size
|
|
842
637
|
})}
|
|
@@ -844,13 +639,13 @@ var ke = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
844
639
|
`;
|
|
845
640
|
}
|
|
846
641
|
render() {
|
|
847
|
-
return
|
|
642
|
+
return v`
|
|
848
643
|
<div class="formula-editor" part="formula-editor">
|
|
849
644
|
${this._renderFormulaCodeMirror({ hasError: this._hasError })}
|
|
850
|
-
${this._hasError && this._errorMessage ?
|
|
851
|
-
${
|
|
645
|
+
${this._hasError && this._errorMessage ? v`<div class="error" part="error" role="alert">
|
|
646
|
+
${_(g)}
|
|
852
647
|
<span>${this._errorMessage}</span>
|
|
853
|
-
</div>` :
|
|
648
|
+
</div>` : y}
|
|
854
649
|
${this._renderLists()}
|
|
855
650
|
</div>
|
|
856
651
|
`;
|
|
@@ -858,14 +653,14 @@ var ke = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
858
653
|
};
|
|
859
654
|
//#endregion
|
|
860
655
|
//#region src/components/formula-editor/index.ts
|
|
861
|
-
r([
|
|
656
|
+
r([x({
|
|
862
657
|
type: String,
|
|
863
658
|
attribute: "expression-resource",
|
|
864
659
|
reflect: !0
|
|
865
|
-
})], $.prototype, "expressionResource", void 0), r([
|
|
660
|
+
})], $.prototype, "expressionResource", void 0), r([x({
|
|
866
661
|
type: String,
|
|
867
662
|
attribute: "explanation-display",
|
|
868
663
|
reflect: !0
|
|
869
|
-
})], $.prototype, "explanationDisplay", void 0), r([
|
|
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", $);
|
|
870
665
|
//#endregion
|
|
871
|
-
export {
|
|
666
|
+
export { $ as t };
|