@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
|
@@ -17,68 +17,39 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { i as e, n as t } from "./base-
|
|
21
|
-
import {
|
|
22
|
-
import { t as
|
|
23
|
-
import {
|
|
24
|
-
import { property as
|
|
25
|
-
import { msg as
|
|
20
|
+
import { i as e, n as t } from "./base-a89RuUMb.js";
|
|
21
|
+
import { t as n } from "./decorate-CaYbmmmm.js";
|
|
22
|
+
import { t as r } from "./localized-mixin-GXZQgVAD.js";
|
|
23
|
+
import { t as i } from "./load-data-fields-for-datasets-DeXLqWt4.js";
|
|
24
|
+
import { property as a, state as o } from "lit/decorators.js";
|
|
25
|
+
import { msg as s } from "@lit/localize";
|
|
26
26
|
//#region src/types/formula.types.ts
|
|
27
|
-
var
|
|
27
|
+
var c = /* @__PURE__ */ function(e) {
|
|
28
28
|
return e.GROUP = "", e.GROUPFULL = "GROUPFULL", e.GROUPINEX = "GROUPINEX", e;
|
|
29
|
-
}({}), f = [
|
|
30
|
-
d.GROUP,
|
|
31
|
-
d.GROUPFULL,
|
|
32
|
-
d.GROUPINEX
|
|
33
|
-
];
|
|
34
|
-
function p() {
|
|
35
|
-
return {
|
|
36
|
-
[d.GROUP]: {
|
|
37
|
-
label: () => u("Grouped", { desc: "Formula aggregation grouping label for grouped scope" }),
|
|
38
|
-
description: () => u("Aggregates within the current grouping of the chart.", { desc: "Formula aggregation grouping description for grouped scope" }),
|
|
39
|
-
icon: s,
|
|
40
|
-
color: "var(--luzmo-formula-grouping-color-grouped, #625df6)"
|
|
41
|
-
},
|
|
42
|
-
[d.GROUPFULL]: {
|
|
43
|
-
label: () => u("Full", { desc: "Formula aggregation grouping label for full scope" }),
|
|
44
|
-
description: () => u("Aggregates across the entire dataset, ignoring the chart grouping.", { desc: "Formula aggregation grouping description for full scope" }),
|
|
45
|
-
icon: o,
|
|
46
|
-
color: "var(--luzmo-formula-grouping-color-full, #0ca789)"
|
|
47
|
-
},
|
|
48
|
-
[d.GROUPINEX]: {
|
|
49
|
-
label: () => u("Include / exclude", { desc: "Formula aggregation grouping label for include/exclude scope" }),
|
|
50
|
-
description: () => u("Aggregates over a custom grouping built from included and excluded columns.", { desc: "Formula aggregation grouping description for include/exclude scope" }),
|
|
51
|
-
icon: a,
|
|
52
|
-
color: "var(--luzmo-formula-grouping-color-include-exclude, #f00f65)"
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region src/utils/formula/config/regex.ts
|
|
58
|
-
var m = String.raw`[\da-f]{8}(?:-[\da-f]{4}){3}-[\da-f]{12}`, h = RegExp(`##EMPTYARG-(${m})##|{(${m}:${m})}|##AGGR-(${m})##`, "gm"), g = RegExp(`##EMPTYARG-(${m})##|{(${m}:${m})}`, "gm"), _ = /((GROUPFULL|GROUPINEX)\()?(AVG|COUNT|COUNTD|COUNTR|MAX|MIN|SUM)\(/m, v = /(AVG|COUNT|COUNTD|MAX|MIN|SUM)\(\)/m, y = RegExp(`##AGGR-(${m})##`, "m"), b = /\[(.*?)\]/gm, x = RegExp(`{(${m}:${m})}`, "gm");
|
|
29
|
+
}({}), l = String.raw`[\da-f]{8}(?:-[\da-f]{4}){3}-[\da-f]{12}`, u = RegExp(`##EMPTYARG-(${l})##|{(${l}:${l})}|##AGGR-(${l})##`, "gm"), d = RegExp(`##EMPTYARG-(${l})##|{(${l}:${l})}`, "gm"), f = /((GROUPFULL|GROUPINEX)\()?(AVG|COUNT|COUNTD|COUNTR|MAX|MIN|SUM)\(/m, p = /(AVG|COUNT|COUNTD|MAX|MIN|SUM)\(\)/m, m = RegExp(`##AGGR-(${l})##`, "m"), h = /\[(.*?)\]/gm, g = RegExp(`{(${l}:${l})}`, "gm");
|
|
59
30
|
//#endregion
|
|
60
31
|
//#region src/utils/formula/config/expression-helpers.ts
|
|
61
|
-
function
|
|
32
|
+
function _() {
|
|
62
33
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
|
|
63
34
|
let t = Math.random() * 16 | 0;
|
|
64
35
|
return (e === "x" ? t : t & 3 | 8).toString(16);
|
|
65
36
|
});
|
|
66
37
|
}
|
|
67
|
-
function
|
|
68
|
-
return `##EMPTYARG-${
|
|
38
|
+
function v() {
|
|
39
|
+
return `##EMPTYARG-${_()}##`;
|
|
69
40
|
}
|
|
70
|
-
function
|
|
41
|
+
function y(e) {
|
|
71
42
|
return `##AGGR-${e}##`;
|
|
72
43
|
}
|
|
73
|
-
function
|
|
44
|
+
function b(e, t) {
|
|
74
45
|
let { aggregationFunction: n, content: r, grouping: i, includedColumns: a, excludedColumns: o } = e ?? {}, s = `${n}(${t[n]?.arity > 0 ? r : ""})`;
|
|
75
46
|
switch (i) {
|
|
76
|
-
case
|
|
77
|
-
case
|
|
47
|
+
case c.GROUPFULL: return `GROUPFULL(${s})`;
|
|
48
|
+
case c.GROUPINEX: return `GROUPINEX(${s}, [${a?.map((e) => `{${e}}`).join(", ") || ""}], [${o?.map((e) => `{${e}}`).join(", ") || ""}])`;
|
|
78
49
|
default: return s;
|
|
79
50
|
}
|
|
80
51
|
}
|
|
81
|
-
function
|
|
52
|
+
function x(e) {
|
|
82
53
|
let t = e.split(""), n = null;
|
|
83
54
|
for (let e = 0; e < t.length; e++) {
|
|
84
55
|
let r = t[e];
|
|
@@ -86,7 +57,7 @@ function E(e) {
|
|
|
86
57
|
}
|
|
87
58
|
return t.join("");
|
|
88
59
|
}
|
|
89
|
-
function
|
|
60
|
+
function S(e, t = 0) {
|
|
90
61
|
let n = 0, r = -1, i = null;
|
|
91
62
|
for (let a = t, o = e.length; a < o; a++) {
|
|
92
63
|
let t = e[a];
|
|
@@ -106,14 +77,14 @@ function D(e, t = 0) {
|
|
|
106
77
|
}
|
|
107
78
|
return r;
|
|
108
79
|
}
|
|
109
|
-
function
|
|
110
|
-
let t = e.match(
|
|
80
|
+
function C(e) {
|
|
81
|
+
let t = e.match(h), n = t?.[0], r = t?.[1];
|
|
111
82
|
return {
|
|
112
|
-
includedColumns: n?.match(
|
|
113
|
-
excludedColumns: r?.match(
|
|
83
|
+
includedColumns: n?.match(g)?.map((e) => e.slice(1, -1)) ?? [],
|
|
84
|
+
excludedColumns: r?.match(g)?.map((e) => e.slice(1, -1)) ?? []
|
|
114
85
|
};
|
|
115
86
|
}
|
|
116
|
-
function
|
|
87
|
+
function w(e = "light") {
|
|
117
88
|
return !e || e === "light" ? [
|
|
118
89
|
"#0E89E0",
|
|
119
90
|
"#F45000",
|
|
@@ -130,8 +101,8 @@ function k(e = "light") {
|
|
|
130
101
|
}
|
|
131
102
|
//#endregion
|
|
132
103
|
//#region src/utils/formula/config/build-datasets.ts
|
|
133
|
-
function
|
|
134
|
-
let t =
|
|
104
|
+
function T(e) {
|
|
105
|
+
let t = w("light"), n = e.length > 1;
|
|
135
106
|
return e.map((e, r) => {
|
|
136
107
|
let i = [];
|
|
137
108
|
return "dataFields" in e && Array.isArray(e.dataFields) && e.dataFields.length > 0 ? i = e.dataFields.filter((e) => !!e.columnId) : "columns" in e && Array.isArray(e.columns) && (i = e.columns.map((t) => {
|
|
@@ -152,30 +123,30 @@ function A(e) {
|
|
|
152
123
|
}
|
|
153
124
|
//#endregion
|
|
154
125
|
//#region src/utils/formula/load-formula-codemirror.ts
|
|
155
|
-
var
|
|
156
|
-
async function
|
|
157
|
-
if (!
|
|
158
|
-
|
|
126
|
+
var E = !1, D;
|
|
127
|
+
async function O() {
|
|
128
|
+
if (!E) {
|
|
129
|
+
D ??= import("./formula-codemirror-DgTmL2Id.js");
|
|
159
130
|
try {
|
|
160
|
-
await
|
|
131
|
+
await D, E = !0;
|
|
161
132
|
} catch (e) {
|
|
162
|
-
throw
|
|
133
|
+
throw D = void 0, e;
|
|
163
134
|
}
|
|
164
135
|
}
|
|
165
136
|
}
|
|
166
|
-
function
|
|
167
|
-
return
|
|
137
|
+
function k() {
|
|
138
|
+
return E;
|
|
168
139
|
}
|
|
169
140
|
//#endregion
|
|
170
141
|
//#region src/utils/formula/base/formula-base.ts
|
|
171
|
-
var
|
|
142
|
+
var A = class extends r(t(e, { validSizes: [
|
|
172
143
|
"s",
|
|
173
144
|
"m",
|
|
174
145
|
"l",
|
|
175
146
|
"xl"
|
|
176
147
|
] })) {
|
|
177
148
|
constructor() {
|
|
178
|
-
super(), this.expression = "", this.datasetsDataFields = [], this.datasetIds = [], this.apiUrl = "https://api.luzmo.com", this.showAggregations = !0, this.contentLanguage = "en", this.multiStageAggregation = !0, this.nestedAggregation = !0, this._datasets = [], this._codeMirrorLoaded =
|
|
149
|
+
super(), this.expression = "", this.datasetsDataFields = [], this.datasetIds = [], this.apiUrl = "https://api.luzmo.com", this.showAggregations = !0, this.contentLanguage = "en", this.multiStageAggregation = !0, this.nestedAggregation = !0, this._datasets = [], this._codeMirrorLoaded = k(), this._rootContent = "", this._lastEmittedExpression = null, this._applyingExternalExpression = !1, this._handleWidgetsChanged = () => {
|
|
179
150
|
this._recomputeExpression();
|
|
180
151
|
}, this._store = this._createStore();
|
|
181
152
|
}
|
|
@@ -198,7 +169,7 @@ var F = class extends r(t(e, { validSizes: [
|
|
|
198
169
|
return this.renderRoot?.querySelector("luzmo-formula-codemirror");
|
|
199
170
|
}
|
|
200
171
|
async _ensureCodeMirrorLoaded() {
|
|
201
|
-
this._codeMirrorLoaded ||= (await
|
|
172
|
+
this._codeMirrorLoaded ||= (await O(), !0);
|
|
202
173
|
}
|
|
203
174
|
willUpdate(e) {
|
|
204
175
|
super.willUpdate(e), this._shouldLoadInput() && this._ensureCodeMirrorLoaded(), (e.has("multiStageAggregation") || e.has("nestedAggregation") || e.has("contentLanguage") || e.has("size")) && (this._store.multiStageAggregation = this.multiStageAggregation, this._store.nestedAggregation = this.nestedAggregation, this._store.contentLanguage = this.contentLanguage, this._store.size = this.size), (e.has("datasetsDataFields") || e.has("datasetIds") || e.has("apiUrl") || e.has("authKey") || e.has("authToken")) && this._loadDatasets(), e.has("showAggregations") && this._rebuildAutoCompletion(), e.has("expression") && this._applyExternalExpression();
|
|
@@ -209,7 +180,7 @@ var F = class extends r(t(e, { validSizes: [
|
|
|
209
180
|
return;
|
|
210
181
|
}
|
|
211
182
|
if (this.datasetsDataFields.length > 0) {
|
|
212
|
-
this._datasets =
|
|
183
|
+
this._datasets = T(this.datasetsDataFields), this._store.datasets = this._datasets, this._setLoading(!1), this._rebuildAutoCompletion();
|
|
213
184
|
return;
|
|
214
185
|
}
|
|
215
186
|
if (this.datasetIds.length > 0) {
|
|
@@ -220,7 +191,7 @@ var F = class extends r(t(e, { validSizes: [
|
|
|
220
191
|
authKey: this.authKey,
|
|
221
192
|
authToken: this.authToken
|
|
222
193
|
} });
|
|
223
|
-
this._datasets =
|
|
194
|
+
this._datasets = T(e), this._store.datasets = this._datasets, this._rebuildAutoCompletion();
|
|
224
195
|
} catch (e) {
|
|
225
196
|
console.warn(`[${this.localName}] Failed to load datasets:`, e), this.dispatchEvent(new CustomEvent("luzmo-datasets-error", {
|
|
226
197
|
bubbles: !0,
|
|
@@ -270,36 +241,36 @@ var F = class extends r(t(e, { validSizes: [
|
|
|
270
241
|
}
|
|
271
242
|
_setLoading(e) {}
|
|
272
243
|
};
|
|
273
|
-
n([
|
|
244
|
+
n([a({ type: String })], A.prototype, "expression", void 0), n([a({ attribute: !1 })], A.prototype, "datasetsDataFields", void 0), n([a({
|
|
274
245
|
type: Array,
|
|
275
246
|
attribute: "dataset-ids"
|
|
276
|
-
})],
|
|
247
|
+
})], A.prototype, "datasetIds", void 0), n([a({
|
|
277
248
|
type: String,
|
|
278
249
|
attribute: "api-url"
|
|
279
|
-
})],
|
|
250
|
+
})], A.prototype, "apiUrl", void 0), n([a({
|
|
280
251
|
type: String,
|
|
281
252
|
attribute: "auth-key"
|
|
282
|
-
})],
|
|
253
|
+
})], A.prototype, "authKey", void 0), n([a({
|
|
283
254
|
type: String,
|
|
284
255
|
attribute: "auth-token"
|
|
285
|
-
})],
|
|
256
|
+
})], A.prototype, "authToken", void 0), n([a({
|
|
286
257
|
type: Boolean,
|
|
287
258
|
attribute: "show-aggregations",
|
|
288
259
|
reflect: !0
|
|
289
|
-
})],
|
|
260
|
+
})], A.prototype, "showAggregations", void 0), n([a({
|
|
290
261
|
type: String,
|
|
291
262
|
attribute: "content-language",
|
|
292
263
|
reflect: !0
|
|
293
|
-
})],
|
|
264
|
+
})], A.prototype, "contentLanguage", void 0), n([a({
|
|
294
265
|
type: Boolean,
|
|
295
266
|
attribute: "multi-stage-aggregation"
|
|
296
|
-
})],
|
|
267
|
+
})], A.prototype, "multiStageAggregation", void 0), n([a({
|
|
297
268
|
type: Boolean,
|
|
298
269
|
attribute: "nested-aggregation"
|
|
299
|
-
})],
|
|
270
|
+
})], A.prototype, "nestedAggregation", void 0), n([o()], A.prototype, "_datasets", void 0), n([o()], A.prototype, "_codeMirrorLoaded", void 0);
|
|
300
271
|
//#endregion
|
|
301
272
|
//#region src/utils/formula/config/aggregations.ts
|
|
302
|
-
var
|
|
273
|
+
var j = [
|
|
303
274
|
"AVG",
|
|
304
275
|
"COUNT",
|
|
305
276
|
"COUNTD",
|
|
@@ -308,53 +279,53 @@ var I = [
|
|
|
308
279
|
"MIN",
|
|
309
280
|
"SUM"
|
|
310
281
|
];
|
|
311
|
-
function
|
|
282
|
+
function M() {
|
|
312
283
|
return {
|
|
313
284
|
AVG: {
|
|
314
285
|
arity: 1,
|
|
315
|
-
label: () =>
|
|
316
|
-
description: () =>
|
|
286
|
+
label: () => s("Average", { desc: "Aggregation label" }),
|
|
287
|
+
description: () => s("Calculates the average of the values.", { desc: "Formula aggregation description for AVG" }),
|
|
317
288
|
example: () => "AVG(⟨numeric⟩ Order Value)",
|
|
318
289
|
exampleHasIcons: !0
|
|
319
290
|
},
|
|
320
291
|
COUNT: {
|
|
321
292
|
arity: 1,
|
|
322
|
-
label: () =>
|
|
323
|
-
description: () =>
|
|
293
|
+
label: () => s("Count", { desc: "Aggregation label" }),
|
|
294
|
+
description: () => s("Counts the number of non-empty values.", { desc: "Formula aggregation description for COUNT" }),
|
|
324
295
|
example: () => "COUNT(⟨numeric⟩ Order Number)",
|
|
325
296
|
exampleHasIcons: !0
|
|
326
297
|
},
|
|
327
298
|
COUNTD: {
|
|
328
299
|
arity: 1,
|
|
329
|
-
label: () =>
|
|
330
|
-
description: () =>
|
|
300
|
+
label: () => s("Count distinct", { desc: "Aggregation label" }),
|
|
301
|
+
description: () => s("Counts the number of distinct values.", { desc: "Formula aggregation description for COUNTD" }),
|
|
331
302
|
example: () => "COUNTD(⟨numeric⟩ Customer ID)",
|
|
332
303
|
exampleHasIcons: !0
|
|
333
304
|
},
|
|
334
305
|
COUNTR: {
|
|
335
306
|
arity: 0,
|
|
336
|
-
label: () =>
|
|
337
|
-
description: () =>
|
|
307
|
+
label: () => s("Count rows", { desc: "Aggregation label" }),
|
|
308
|
+
description: () => s("Counts the number of rows.", { desc: "Formula aggregation description for COUNTR" }),
|
|
338
309
|
example: () => "COUNTR()"
|
|
339
310
|
},
|
|
340
311
|
MAX: {
|
|
341
312
|
arity: 1,
|
|
342
|
-
label: () =>
|
|
343
|
-
description: () =>
|
|
313
|
+
label: () => s("Maximum", { desc: "Aggregation label" }),
|
|
314
|
+
description: () => s("Returns the largest value.", { desc: "Formula aggregation description for MAX" }),
|
|
344
315
|
example: () => "MAX(⟨numeric⟩ Order Value)",
|
|
345
316
|
exampleHasIcons: !0
|
|
346
317
|
},
|
|
347
318
|
MIN: {
|
|
348
319
|
arity: 1,
|
|
349
|
-
label: () =>
|
|
350
|
-
description: () =>
|
|
320
|
+
label: () => s("Minimum", { desc: "Aggregation label" }),
|
|
321
|
+
description: () => s("Returns the smallest value.", { desc: "Formula aggregation description for MIN" }),
|
|
351
322
|
example: () => "MIN(⟨numeric⟩ Order Value)",
|
|
352
323
|
exampleHasIcons: !0
|
|
353
324
|
},
|
|
354
325
|
SUM: {
|
|
355
326
|
arity: 1,
|
|
356
|
-
label: () =>
|
|
357
|
-
description: () =>
|
|
327
|
+
label: () => s("Sum", { desc: "Aggregation label" }),
|
|
328
|
+
description: () => s("Adds up all the values.", { desc: "Formula aggregation description for SUM" }),
|
|
358
329
|
example: () => "SUM(⟨numeric⟩ Quantity Sold)",
|
|
359
330
|
exampleHasIcons: !0
|
|
360
331
|
}
|
|
@@ -362,11 +333,11 @@ function L() {
|
|
|
362
333
|
}
|
|
363
334
|
//#endregion
|
|
364
335
|
//#region src/utils/formula/config/functions.ts
|
|
365
|
-
function
|
|
336
|
+
function N() {
|
|
366
337
|
return [
|
|
367
338
|
{
|
|
368
339
|
key: "string",
|
|
369
|
-
title: () =>
|
|
340
|
+
title: () => s("String", { desc: "Formula function category title for string functions" }),
|
|
370
341
|
functions: [
|
|
371
342
|
"||",
|
|
372
343
|
"LENGTH",
|
|
@@ -383,7 +354,7 @@ function R() {
|
|
|
383
354
|
},
|
|
384
355
|
{
|
|
385
356
|
key: "dateTime",
|
|
386
|
-
title: () =>
|
|
357
|
+
title: () => s("Date and time", { desc: "Formula function category title for date and time functions" }),
|
|
387
358
|
functions: [
|
|
388
359
|
"NOW",
|
|
389
360
|
"DATE_ADD",
|
|
@@ -414,7 +385,7 @@ function R() {
|
|
|
414
385
|
},
|
|
415
386
|
{
|
|
416
387
|
key: "mathematical",
|
|
417
|
-
title: () =>
|
|
388
|
+
title: () => s("Mathematical", { desc: "Formula function category title for mathematical functions" }),
|
|
418
389
|
functions: [
|
|
419
390
|
"+",
|
|
420
391
|
"-",
|
|
@@ -437,17 +408,17 @@ function R() {
|
|
|
437
408
|
},
|
|
438
409
|
{
|
|
439
410
|
key: "conditional",
|
|
440
|
-
title: () =>
|
|
411
|
+
title: () => s("Conditional", { desc: "Formula function category title for conditional functions" }),
|
|
441
412
|
functions: ["IF", "COALESCE"]
|
|
442
413
|
},
|
|
443
414
|
{
|
|
444
415
|
key: "conversion",
|
|
445
|
-
title: () =>
|
|
416
|
+
title: () => s("Conversion", { desc: "Formula function category title for conversion functions" }),
|
|
446
417
|
functions: ["CAST"]
|
|
447
418
|
},
|
|
448
419
|
{
|
|
449
420
|
key: "comparison",
|
|
450
|
-
title: () =>
|
|
421
|
+
title: () => s("Comparison", { desc: "Formula function category title for comparison functions" }),
|
|
451
422
|
functions: [
|
|
452
423
|
">",
|
|
453
424
|
"<",
|
|
@@ -459,7 +430,7 @@ function R() {
|
|
|
459
430
|
},
|
|
460
431
|
{
|
|
461
432
|
key: "logical",
|
|
462
|
-
title: () =>
|
|
433
|
+
title: () => s("Logical", { desc: "Formula function category title for logical functions" }),
|
|
463
434
|
functions: [
|
|
464
435
|
"AND",
|
|
465
436
|
"OR",
|
|
@@ -468,7 +439,7 @@ function R() {
|
|
|
468
439
|
},
|
|
469
440
|
{
|
|
470
441
|
key: "circular",
|
|
471
|
-
title: () =>
|
|
442
|
+
title: () => s("Circular", { desc: "Formula function category title for circular functions" }),
|
|
472
443
|
functions: [
|
|
473
444
|
"SIN",
|
|
474
445
|
"COS",
|
|
@@ -483,571 +454,571 @@ function R() {
|
|
|
483
454
|
},
|
|
484
455
|
{
|
|
485
456
|
key: "spatial",
|
|
486
|
-
title: () =>
|
|
457
|
+
title: () => s("Spatial", { desc: "Formula function category title for spatial functions" }),
|
|
487
458
|
functions: ["COORDS"]
|
|
488
459
|
}
|
|
489
460
|
];
|
|
490
461
|
}
|
|
491
|
-
function
|
|
462
|
+
function P() {
|
|
492
463
|
let e = 2026;
|
|
493
464
|
return {
|
|
494
465
|
"+": {
|
|
495
466
|
type: "infix",
|
|
496
467
|
arity: 2,
|
|
497
|
-
label: () =>
|
|
498
|
-
description: () =>
|
|
468
|
+
label: () => s("Addition", { desc: "Formula function label for addition" }),
|
|
469
|
+
description: () => s("Adds two numeric values.", { desc: "Formula function description for addition operator" }),
|
|
499
470
|
example: () => "42.0 + ⟨numeric⟩ Average burrito price",
|
|
500
471
|
exampleHasIcons: !0
|
|
501
472
|
},
|
|
502
473
|
"-": {
|
|
503
474
|
type: "infix",
|
|
504
475
|
arity: 2,
|
|
505
|
-
label: () =>
|
|
506
|
-
description: () =>
|
|
476
|
+
label: () => s("Difference", { desc: "Formula function label for subtraction" }),
|
|
477
|
+
description: () => s("Subtracts the second value from the first value.", { desc: "Formula function description for subtraction operator" }),
|
|
507
478
|
example: () => "⟨numeric⟩ Burrito weight - 42",
|
|
508
479
|
exampleHasIcons: !0
|
|
509
480
|
},
|
|
510
481
|
"*": {
|
|
511
482
|
type: "infix",
|
|
512
483
|
arity: 2,
|
|
513
|
-
label: () =>
|
|
514
|
-
description: () =>
|
|
484
|
+
label: () => s("Multiplication", { desc: "Formula function label for multiplication" }),
|
|
485
|
+
description: () => s("Multiplies two numeric values.", { desc: "Formula function description for multiplication operator" }),
|
|
515
486
|
example: () => "⟨numeric⟩ Number of burritos * 2",
|
|
516
487
|
exampleHasIcons: !0
|
|
517
488
|
},
|
|
518
489
|
"/": {
|
|
519
490
|
type: "infix",
|
|
520
491
|
arity: 2,
|
|
521
|
-
label: () =>
|
|
522
|
-
description: () =>
|
|
492
|
+
label: () => s("Division", { desc: "Formula function label for division" }),
|
|
493
|
+
description: () => s("Divides the first numeric value by the second numeric value.", { desc: "Formula function description for division operator" }),
|
|
523
494
|
example: () => "⟨numeric⟩ Number of burritos / 2",
|
|
524
495
|
exampleHasIcons: !0
|
|
525
496
|
},
|
|
526
497
|
"%": {
|
|
527
498
|
type: "infix",
|
|
528
499
|
arity: 2,
|
|
529
|
-
label: () =>
|
|
530
|
-
description: () =>
|
|
500
|
+
label: () => s("Modulo", { desc: "Formula function label for modulo" }),
|
|
501
|
+
description: () => s("Returns the remainder after dividing the first value by the second value.", { desc: "Formula function description for modulo operator" }),
|
|
531
502
|
example: () => "5 % 2"
|
|
532
503
|
},
|
|
533
504
|
">": {
|
|
534
505
|
type: "infix",
|
|
535
506
|
arity: 2,
|
|
536
|
-
label: () =>
|
|
537
|
-
description: () =>
|
|
507
|
+
label: () => s("Greater than", { desc: "Formula function label for greater than comparison" }),
|
|
508
|
+
description: () => s("Checks whether the first value is greater than the second value.", { desc: "Formula function description for greater than operator" }),
|
|
538
509
|
example: () => "⟨numeric⟩ Burrito weight > 50",
|
|
539
510
|
exampleHasIcons: !0
|
|
540
511
|
},
|
|
541
512
|
"<": {
|
|
542
513
|
type: "infix",
|
|
543
514
|
arity: 2,
|
|
544
|
-
label: () =>
|
|
545
|
-
description: () =>
|
|
515
|
+
label: () => s("Less than", { desc: "Formula function label for less than comparison" }),
|
|
516
|
+
description: () => s("Checks whether the first value is less than the second value.", { desc: "Formula function description for less than operator" }),
|
|
546
517
|
example: () => "⟨numeric⟩ Burrito weight < 50",
|
|
547
518
|
exampleHasIcons: !0
|
|
548
519
|
},
|
|
549
520
|
">=": {
|
|
550
521
|
type: "infix",
|
|
551
522
|
arity: 2,
|
|
552
|
-
label: () =>
|
|
553
|
-
description: () =>
|
|
523
|
+
label: () => s("Greater than or equal", { desc: "Formula function label for greater than or equal comparison" }),
|
|
524
|
+
description: () => s("Checks whether the first value is greater than or equal to the second value.", { desc: "Formula function description for greater than or equal operator" }),
|
|
554
525
|
example: () => "⟨numeric⟩ Burrito weight >= 50",
|
|
555
526
|
exampleHasIcons: !0
|
|
556
527
|
},
|
|
557
528
|
"<=": {
|
|
558
529
|
type: "infix",
|
|
559
530
|
arity: 2,
|
|
560
|
-
label: () =>
|
|
561
|
-
description: () =>
|
|
531
|
+
label: () => s("Less than or equal", { desc: "Formula function label for less than or equal comparison" }),
|
|
532
|
+
description: () => s("Checks whether the first value is less than or equal to the second value.", { desc: "Formula function description for less than or equal operator" }),
|
|
562
533
|
example: () => "⟨numeric⟩ Burrito weight <= 50",
|
|
563
534
|
exampleHasIcons: !0
|
|
564
535
|
},
|
|
565
536
|
"=": {
|
|
566
537
|
type: "infix",
|
|
567
538
|
arity: 2,
|
|
568
|
-
label: () =>
|
|
569
|
-
description: () =>
|
|
539
|
+
label: () => s("Equal", { desc: "Formula function label for equality comparison" }),
|
|
540
|
+
description: () => s("Checks whether both values are equal.", { desc: "Formula function description for equality operator" }),
|
|
570
541
|
example: () => "⟨hierarchy⟩ Burrito type = 'Savoury'",
|
|
571
542
|
exampleHasIcons: !0
|
|
572
543
|
},
|
|
573
544
|
"<>": {
|
|
574
545
|
type: "infix",
|
|
575
546
|
arity: 2,
|
|
576
|
-
label: () =>
|
|
577
|
-
description: () =>
|
|
547
|
+
label: () => s("Not equal", { desc: "Formula function label for inequality comparison" }),
|
|
548
|
+
description: () => s("Checks whether two values are different.", { desc: "Formula function description for inequality operator" }),
|
|
578
549
|
example: () => "⟨hierarchy⟩ Burrito type <> 'Sweet'",
|
|
579
550
|
exampleHasIcons: !0
|
|
580
551
|
},
|
|
581
552
|
ABS: {
|
|
582
553
|
type: "prefix",
|
|
583
554
|
arity: 1,
|
|
584
|
-
label: () =>
|
|
585
|
-
description: () =>
|
|
555
|
+
label: () => s("Absolute value", { desc: "Formula function label for ABS" }),
|
|
556
|
+
description: () => s("Returns the absolute value of a number.", { desc: "Formula function description for ABS" }),
|
|
586
557
|
example: () => "ABS(-5.0)"
|
|
587
558
|
},
|
|
588
559
|
CEIL: {
|
|
589
560
|
type: "prefix",
|
|
590
561
|
arity: 1,
|
|
591
|
-
label: () =>
|
|
592
|
-
description: () =>
|
|
562
|
+
label: () => s("Round up", { desc: "Formula function label for CEIL" }),
|
|
563
|
+
description: () => s("Rounds a number up to the nearest integer.", { desc: "Formula function description for CEIL" }),
|
|
593
564
|
example: () => "CEIL(11.3)"
|
|
594
565
|
},
|
|
595
566
|
E: {
|
|
596
567
|
type: "prefix",
|
|
597
568
|
arity: 0,
|
|
598
|
-
label: () =>
|
|
599
|
-
description: () =>
|
|
569
|
+
label: () => s("Euler's number", { desc: "Formula function label for E" }),
|
|
570
|
+
description: () => s("Returns Euler's constant e.", { desc: "Formula function description for E" }),
|
|
600
571
|
example: () => "E()"
|
|
601
572
|
},
|
|
602
573
|
EXP: {
|
|
603
574
|
type: "prefix",
|
|
604
575
|
arity: 1,
|
|
605
|
-
label: () =>
|
|
606
|
-
description: () =>
|
|
576
|
+
label: () => s("Exponential", { desc: "Formula function label for EXP" }),
|
|
577
|
+
description: () => s("Returns e raised to the specified power.", { desc: "Formula function description for EXP" }),
|
|
607
578
|
example: () => "EXP(11.3)"
|
|
608
579
|
},
|
|
609
580
|
FLOOR: {
|
|
610
581
|
type: "prefix",
|
|
611
582
|
arity: 1,
|
|
612
|
-
label: () =>
|
|
613
|
-
description: () =>
|
|
583
|
+
label: () => s("Round down", { desc: "Formula function label for FLOOR" }),
|
|
584
|
+
description: () => s("Rounds a number down to the nearest integer.", { desc: "Formula function description for FLOOR" }),
|
|
614
585
|
example: () => "FLOOR(11.7)"
|
|
615
586
|
},
|
|
616
587
|
LN: {
|
|
617
588
|
type: "prefix",
|
|
618
589
|
arity: 1,
|
|
619
|
-
label: () =>
|
|
620
|
-
description: () =>
|
|
590
|
+
label: () => s("Natural logarithm", { desc: "Formula function label for LN" }),
|
|
591
|
+
description: () => s("Returns the natural logarithm of a number.", { desc: "Formula function description for LN" }),
|
|
621
592
|
example: () => "LN(11.7)"
|
|
622
593
|
},
|
|
623
594
|
LOG: {
|
|
624
595
|
type: "prefix",
|
|
625
596
|
arity: 2,
|
|
626
|
-
label: () =>
|
|
627
|
-
description: () =>
|
|
597
|
+
label: () => s("Logarithm", { desc: "Formula function label for LOG" }),
|
|
598
|
+
description: () => s("Returns the logarithm of a number for a specific base.", { desc: "Formula function description for LOG" }),
|
|
628
599
|
example: () => "LOG(3.6, 10)"
|
|
629
600
|
},
|
|
630
601
|
PI: {
|
|
631
602
|
type: "prefix",
|
|
632
603
|
arity: 0,
|
|
633
|
-
label: () =>
|
|
634
|
-
description: () =>
|
|
604
|
+
label: () => s("Pi", { desc: "Formula function label for PI" }),
|
|
605
|
+
description: () => s("Returns the mathematical constant pi.", { desc: "Formula function description for PI" }),
|
|
635
606
|
example: () => "PI()"
|
|
636
607
|
},
|
|
637
608
|
POW: {
|
|
638
609
|
type: "prefix",
|
|
639
610
|
arity: 2,
|
|
640
|
-
label: () =>
|
|
641
|
-
description: () =>
|
|
611
|
+
label: () => s("Power", { desc: "Formula function label for POW" }),
|
|
612
|
+
description: () => s("Raises a number to a given power.", { desc: "Formula function description for POW" }),
|
|
642
613
|
example: () => "POW(2.35, 2)"
|
|
643
614
|
},
|
|
644
615
|
RAND: {
|
|
645
616
|
type: "prefix",
|
|
646
617
|
arity: 0,
|
|
647
|
-
label: () =>
|
|
648
|
-
description: () =>
|
|
618
|
+
label: () => s("Random number", { desc: "Formula function label for RAND" }),
|
|
619
|
+
description: () => s("Returns a random number between 0 and 1.", { desc: "Formula function description for RAND" }),
|
|
649
620
|
example: () => "RAND()"
|
|
650
621
|
},
|
|
651
622
|
ROUND: {
|
|
652
623
|
type: "prefix",
|
|
653
624
|
arity: 2,
|
|
654
|
-
label: () =>
|
|
655
|
-
description: () =>
|
|
625
|
+
label: () => s("Round", { desc: "Formula function label for ROUND" }),
|
|
626
|
+
description: () => s("Rounds a number to a specified number of decimal places.", { desc: "Formula function description for ROUND" }),
|
|
656
627
|
example: () => "ROUND(4.567, 1)"
|
|
657
628
|
},
|
|
658
629
|
SQRT: {
|
|
659
630
|
type: "prefix",
|
|
660
631
|
arity: 1,
|
|
661
|
-
label: () =>
|
|
662
|
-
description: () =>
|
|
632
|
+
label: () => s("Square root", { desc: "Formula function label for SQRT" }),
|
|
633
|
+
description: () => s("Returns the square root of a number.", { desc: "Formula function description for SQRT" }),
|
|
663
634
|
example: () => "SQRT(4)"
|
|
664
635
|
},
|
|
665
636
|
CAST: {
|
|
666
637
|
type: "prefix",
|
|
667
638
|
arity: 2,
|
|
668
|
-
label: () =>
|
|
669
|
-
description: () =>
|
|
639
|
+
label: () => s("Convert value", { desc: "Formula function label for CAST" }),
|
|
640
|
+
description: () => s("Converts the first argument to the type given by the second argument. Possible types are 'hierarchy', 'numeric', 'datetime' and 'boolean'.", { desc: "Formula function description for CAST" }),
|
|
670
641
|
example: () => "CAST(⟨numeric⟩ Burrito weight, hierarchy)",
|
|
671
642
|
exampleHasIcons: !0
|
|
672
643
|
},
|
|
673
644
|
IF: {
|
|
674
645
|
type: "prefix",
|
|
675
646
|
arity: 3,
|
|
676
|
-
label: () =>
|
|
677
|
-
description: () =>
|
|
647
|
+
label: () => s("If", { desc: "Formula function label for IF" }),
|
|
648
|
+
description: () => s("Returns one value when a condition is true and another value when false.", { desc: "Formula function description for IF" }),
|
|
678
649
|
example: () => "IF(⟨numeric⟩ Burrito weight < 200,'Small','Large')",
|
|
679
650
|
exampleHasIcons: !0
|
|
680
651
|
},
|
|
681
652
|
COALESCE: {
|
|
682
653
|
type: "prefix",
|
|
683
654
|
arity: 2,
|
|
684
|
-
label: () =>
|
|
685
|
-
description: () =>
|
|
655
|
+
label: () => s("Is empty", { desc: "Formula function label for COALESCE" }),
|
|
656
|
+
description: () => s("Returns the first non-null value from the provided arguments.", { desc: "Formula function description for COALESCE" }),
|
|
686
657
|
example: () => "COALESCE(⟨hierarchy⟩ Burrito type, 'Unknown type')",
|
|
687
658
|
exampleHasIcons: !0
|
|
688
659
|
},
|
|
689
660
|
AND: {
|
|
690
661
|
type: "infix",
|
|
691
662
|
arity: 2,
|
|
692
|
-
label: () =>
|
|
693
|
-
description: () =>
|
|
663
|
+
label: () => s("Logical and", { desc: "Formula function label for AND" }),
|
|
664
|
+
description: () => s("Returns true when both conditions are true.", { desc: "Formula function description for AND" }),
|
|
694
665
|
example: () => "Burrito weight > 50 AND Burrito weight < 75"
|
|
695
666
|
},
|
|
696
667
|
OR: {
|
|
697
668
|
type: "infix",
|
|
698
669
|
arity: 2,
|
|
699
|
-
label: () =>
|
|
700
|
-
description: () =>
|
|
670
|
+
label: () => s("Logical or", { desc: "Formula function label for OR" }),
|
|
671
|
+
description: () => s("Returns true when at least one condition is true.", { desc: "Formula function description for OR" }),
|
|
701
672
|
example: () => "Burrito price > 10.1 OR Burrito weight >= 50"
|
|
702
673
|
},
|
|
703
674
|
NOT: {
|
|
704
675
|
type: "prefix_op",
|
|
705
676
|
arity: 1,
|
|
706
|
-
label: () =>
|
|
707
|
-
description: () =>
|
|
677
|
+
label: () => s("Logical not", { desc: "Formula function label for NOT" }),
|
|
678
|
+
description: () => s("Negates a boolean condition.", { desc: "Formula function description for NOT" }),
|
|
708
679
|
example: () => "NOT (Burrito type = 'Salty')"
|
|
709
680
|
},
|
|
710
681
|
SIN: {
|
|
711
682
|
type: "prefix",
|
|
712
683
|
arity: 1,
|
|
713
|
-
label: () =>
|
|
714
|
-
description: () =>
|
|
684
|
+
label: () => s("Sine", { desc: "Formula function label for SIN" }),
|
|
685
|
+
description: () => s("Returns the sine of an angle in radians.", { desc: "Formula function description for SIN" }),
|
|
715
686
|
example: () => "SIN(3.14)"
|
|
716
687
|
},
|
|
717
688
|
COS: {
|
|
718
689
|
type: "prefix",
|
|
719
690
|
arity: 1,
|
|
720
|
-
label: () =>
|
|
721
|
-
description: () =>
|
|
691
|
+
label: () => s("Cosine", { desc: "Formula function label for COS" }),
|
|
692
|
+
description: () => s("Returns the cosine of an angle in radians.", { desc: "Formula function description for COS" }),
|
|
722
693
|
example: () => "COS(3.14)"
|
|
723
694
|
},
|
|
724
695
|
TAN: {
|
|
725
696
|
type: "prefix",
|
|
726
697
|
arity: 1,
|
|
727
|
-
label: () =>
|
|
728
|
-
description: () =>
|
|
698
|
+
label: () => s("Tangent", { desc: "Formula function label for TAN" }),
|
|
699
|
+
description: () => s("Returns the tangent of an angle in radians.", { desc: "Formula function description for TAN" }),
|
|
729
700
|
example: () => "TAN(3.14)"
|
|
730
701
|
},
|
|
731
702
|
ASIN: {
|
|
732
703
|
type: "prefix",
|
|
733
704
|
arity: 1,
|
|
734
|
-
label: () =>
|
|
735
|
-
description: () =>
|
|
705
|
+
label: () => s("Arcsine", { desc: "Formula function label for ASIN" }),
|
|
706
|
+
description: () => s("Returns the arcsine of a number.", { desc: "Formula function description for ASIN" }),
|
|
736
707
|
example: () => "ASIN(3.14)"
|
|
737
708
|
},
|
|
738
709
|
ACOS: {
|
|
739
710
|
type: "prefix",
|
|
740
711
|
arity: 1,
|
|
741
|
-
label: () =>
|
|
742
|
-
description: () =>
|
|
712
|
+
label: () => s("Arccosine", { desc: "Formula function label for ACOS" }),
|
|
713
|
+
description: () => s("Returns the arccosine of a number.", { desc: "Formula function description for ACOS" }),
|
|
743
714
|
example: () => "ACOS(3.14)"
|
|
744
715
|
},
|
|
745
716
|
ATAN: {
|
|
746
717
|
type: "prefix",
|
|
747
718
|
arity: 1,
|
|
748
|
-
label: () =>
|
|
749
|
-
description: () =>
|
|
719
|
+
label: () => s("Arctangent", { desc: "Formula function label for ATAN" }),
|
|
720
|
+
description: () => s("Returns the arctangent of a number.", { desc: "Formula function description for ATAN" }),
|
|
750
721
|
example: () => "ATAN(3.14)"
|
|
751
722
|
},
|
|
752
723
|
SINH: {
|
|
753
724
|
type: "prefix",
|
|
754
725
|
arity: 1,
|
|
755
|
-
label: () =>
|
|
756
|
-
description: () =>
|
|
726
|
+
label: () => s("Hyperbolic sine", { desc: "Formula function label for SINH" }),
|
|
727
|
+
description: () => s("Returns the hyperbolic sine of a number.", { desc: "Formula function description for SINH" }),
|
|
757
728
|
example: () => "SINH(3.14)"
|
|
758
729
|
},
|
|
759
730
|
COSH: {
|
|
760
731
|
type: "prefix",
|
|
761
732
|
arity: 1,
|
|
762
|
-
label: () =>
|
|
763
|
-
description: () =>
|
|
733
|
+
label: () => s("Hyperbolic cosine", { desc: "Formula function label for COSH" }),
|
|
734
|
+
description: () => s("Returns the hyperbolic cosine of a number.", { desc: "Formula function description for COSH" }),
|
|
764
735
|
example: () => "COSH(3.14)"
|
|
765
736
|
},
|
|
766
737
|
TANH: {
|
|
767
738
|
type: "prefix",
|
|
768
739
|
arity: 1,
|
|
769
|
-
label: () =>
|
|
770
|
-
description: () =>
|
|
740
|
+
label: () => s("Hyperbolic tangent", { desc: "Formula function label for TANH" }),
|
|
741
|
+
description: () => s("Returns the hyperbolic tangent of a number.", { desc: "Formula function description for TANH" }),
|
|
771
742
|
example: () => "TANH(3.14)"
|
|
772
743
|
},
|
|
773
744
|
MEAN: {
|
|
774
745
|
type: "prefix",
|
|
775
746
|
arity: 1,
|
|
776
|
-
label: () =>
|
|
777
|
-
description: () =>
|
|
747
|
+
label: () => s("Mean", { desc: "Formula function label for MEAN" }),
|
|
748
|
+
description: () => s("Returns the arithmetic mean of all values in a numeric column. The value is calculated over the entire dataset and does not change when filtering.", { desc: "Formula function description for MEAN" }),
|
|
778
749
|
example: () => "MEAN(⟨numeric⟩ Burrito weight)",
|
|
779
750
|
exampleHasIcons: !0
|
|
780
751
|
},
|
|
781
752
|
STDDEV: {
|
|
782
753
|
type: "prefix",
|
|
783
754
|
arity: 1,
|
|
784
|
-
label: () =>
|
|
785
|
-
description: () =>
|
|
755
|
+
label: () => s("Standard deviation", { desc: "Aggregation label" }),
|
|
756
|
+
description: () => s("Returns the sample standard deviation over all values in a numeric column. The value is calculated over the entire dataset and does not change when filtering.", { desc: "Formula function description for STDDEV" }),
|
|
786
757
|
example: () => "STDDEV(⟨numeric⟩ Burrito weight)",
|
|
787
758
|
exampleHasIcons: !0
|
|
788
759
|
},
|
|
789
760
|
"||": {
|
|
790
761
|
type: "infix",
|
|
791
762
|
arity: 2,
|
|
792
|
-
label: () =>
|
|
793
|
-
description: () =>
|
|
763
|
+
label: () => s("Concatenate", { desc: "Formula function label for concatenate operator" }),
|
|
764
|
+
description: () => s("Concatenates two strings.", { desc: "Formula function description for concatenate operator" }),
|
|
794
765
|
example: () => "'Tasty' || ' burrito'"
|
|
795
766
|
},
|
|
796
767
|
LENGTH: {
|
|
797
768
|
type: "prefix",
|
|
798
769
|
arity: 1,
|
|
799
|
-
label: () =>
|
|
800
|
-
description: () =>
|
|
770
|
+
label: () => s("String length", { desc: "Formula function label for LENGTH" }),
|
|
771
|
+
description: () => s("Returns the number of characters in a string.", { desc: "Formula function description for LENGTH" }),
|
|
801
772
|
example: () => "LENGTH('Burrito')"
|
|
802
773
|
},
|
|
803
774
|
LOWER: {
|
|
804
775
|
type: "prefix",
|
|
805
776
|
arity: 1,
|
|
806
|
-
label: () =>
|
|
807
|
-
description: () =>
|
|
777
|
+
label: () => s("Lowercase", { desc: "Formula function label for LOWER" }),
|
|
778
|
+
description: () => s("Converts a string to lowercase.", { desc: "Formula function description for LOWER" }),
|
|
808
779
|
example: () => "LOWER('BURRITO')"
|
|
809
780
|
},
|
|
810
781
|
UPPER: {
|
|
811
782
|
type: "prefix",
|
|
812
783
|
arity: 1,
|
|
813
|
-
label: () =>
|
|
814
|
-
description: () =>
|
|
784
|
+
label: () => s("Uppercase", { desc: "Formula function label for UPPER" }),
|
|
785
|
+
description: () => s("Converts a string to uppercase.", { desc: "Formula function description for UPPER" }),
|
|
815
786
|
example: () => "UPPER('burrito')"
|
|
816
787
|
},
|
|
817
788
|
LTRIM: {
|
|
818
789
|
type: "prefix",
|
|
819
790
|
arity: 1,
|
|
820
|
-
label: () =>
|
|
821
|
-
description: () =>
|
|
791
|
+
label: () => s("Trim left", { desc: "Formula function label for LTRIM" }),
|
|
792
|
+
description: () => s("Removes leading spaces from a string.", { desc: "Formula function description for LTRIM" }),
|
|
822
793
|
example: () => "LTRIM(' Burrito')"
|
|
823
794
|
},
|
|
824
795
|
RTRIM: {
|
|
825
796
|
type: "prefix",
|
|
826
797
|
arity: 1,
|
|
827
|
-
label: () =>
|
|
828
|
-
description: () =>
|
|
798
|
+
label: () => s("Trim right", { desc: "Formula function label for RTRIM" }),
|
|
799
|
+
description: () => s("Removes trailing spaces from a string.", { desc: "Formula function description for RTRIM" }),
|
|
829
800
|
example: () => "RTRIM('Burrito ')"
|
|
830
801
|
},
|
|
831
802
|
TRIM: {
|
|
832
803
|
type: "prefix",
|
|
833
804
|
arity: 1,
|
|
834
|
-
label: () =>
|
|
835
|
-
description: () =>
|
|
805
|
+
label: () => s("Trim", { desc: "Formula function label for TRIM" }),
|
|
806
|
+
description: () => s("Removes leading and trailing spaces from a string.", { desc: "Formula function description for TRIM" }),
|
|
836
807
|
example: () => "TRIM('Burrito ')"
|
|
837
808
|
},
|
|
838
809
|
REPLACE: {
|
|
839
810
|
type: "prefix",
|
|
840
811
|
arity: 3,
|
|
841
|
-
label: () =>
|
|
842
|
-
description: () =>
|
|
812
|
+
label: () => s("Replace text", { desc: "Formula function label for REPLACE" }),
|
|
813
|
+
description: () => s("Replaces occurrences of a substring with another substring.", { desc: "Formula function description for REPLACE" }),
|
|
843
814
|
example: () => "REPLACE('Sweet burrito','Sweet', 'Savoury')"
|
|
844
815
|
},
|
|
845
816
|
STRPOS: {
|
|
846
817
|
type: "prefix",
|
|
847
818
|
arity: 2,
|
|
848
|
-
label: () =>
|
|
849
|
-
description: () =>
|
|
819
|
+
label: () => s("Find substring", { desc: "Formula function label for STRPOS" }),
|
|
820
|
+
description: () => s("Returns the position of a substring in a string.", { desc: "Formula function description for STRPOS" }),
|
|
850
821
|
example: () => "STRPOS('Sweet burrito','burrito')"
|
|
851
822
|
},
|
|
852
823
|
SUBSTR: {
|
|
853
824
|
type: "prefix",
|
|
854
825
|
arity: 3,
|
|
855
|
-
label: () =>
|
|
856
|
-
description: () =>
|
|
826
|
+
label: () => s("Take substring", { desc: "Formula function label for SUBSTR" }),
|
|
827
|
+
description: () => s("Extracts part of a string. The first argument is the text, the second the starting position (the first character is 1; a negative position counts from the end), and the third the length.", { desc: "Formula function description for SUBSTR" }),
|
|
857
828
|
example: () => "SUBSTR('Sweet burrito',7,3)"
|
|
858
829
|
},
|
|
859
830
|
SPLIT_PART: {
|
|
860
831
|
type: "prefix",
|
|
861
832
|
arity: 3,
|
|
862
|
-
label: () =>
|
|
863
|
-
description: () =>
|
|
833
|
+
label: () => s("Split part", { desc: "Formula function label for SPLIT_PART" }),
|
|
834
|
+
description: () => s("Splits a string into parts using a delimiter. The first argument is the text to split, the second the delimiter, and the third the position of the part to return (starting from 1).", { desc: "Formula function description for SPLIT_PART" }),
|
|
864
835
|
example: () => "SPLIT_PART('Sweet burrito', ' ', 2)"
|
|
865
836
|
},
|
|
866
837
|
NOW: {
|
|
867
838
|
type: "prefix",
|
|
868
839
|
arity: 0,
|
|
869
|
-
label: () =>
|
|
870
|
-
description: () =>
|
|
840
|
+
label: () => s("Current date and time", { desc: "Formula function label for NOW" }),
|
|
841
|
+
description: () => s("Returns the current date and time.", { desc: "Formula function description for NOW" }),
|
|
871
842
|
example: () => "NOW()"
|
|
872
843
|
},
|
|
873
844
|
YEAR: {
|
|
874
845
|
type: "prefix",
|
|
875
846
|
arity: 1,
|
|
876
|
-
label: () =>
|
|
877
|
-
description: () =>
|
|
847
|
+
label: () => s("Year", { desc: "Time unit" }),
|
|
848
|
+
description: () => s("Extracts the year from a date value.", { desc: "Formula function description for YEAR" }),
|
|
878
849
|
example: () => `YEAR('${e}-02-17')`
|
|
879
850
|
},
|
|
880
851
|
YEAR_UTC: {
|
|
881
852
|
type: "prefix",
|
|
882
853
|
arity: 1,
|
|
883
|
-
label: () =>
|
|
884
|
-
description: () =>
|
|
854
|
+
label: () => s("Year (UTC)", { desc: "Formula function label for YEAR_UTC" }),
|
|
855
|
+
description: () => s("Extracts the year from a date value in UTC.", { desc: "Formula function description for YEAR_UTC" }),
|
|
885
856
|
example: () => `YEAR_UTC('${e}-02-17')`
|
|
886
857
|
},
|
|
887
858
|
QUARTER: {
|
|
888
859
|
type: "prefix",
|
|
889
860
|
arity: 1,
|
|
890
|
-
label: () =>
|
|
891
|
-
description: () =>
|
|
861
|
+
label: () => s("Quarter", { desc: "Time unit" }),
|
|
862
|
+
description: () => s("Extracts the quarter from a date value.", { desc: "Formula function description for QUARTER" }),
|
|
892
863
|
example: () => `QUARTER('${e}-02-17')`
|
|
893
864
|
},
|
|
894
865
|
QUARTER_UTC: {
|
|
895
866
|
type: "prefix",
|
|
896
867
|
arity: 1,
|
|
897
|
-
label: () =>
|
|
898
|
-
description: () =>
|
|
868
|
+
label: () => s("Quarter (UTC)", { desc: "Formula function label for QUARTER_UTC" }),
|
|
869
|
+
description: () => s("Extracts the quarter from a date value in UTC.", { desc: "Formula function description for QUARTER_UTC" }),
|
|
899
870
|
example: () => `QUARTER_UTC('${e}-02-17')`
|
|
900
871
|
},
|
|
901
872
|
MONTH: {
|
|
902
873
|
type: "prefix",
|
|
903
874
|
arity: 1,
|
|
904
|
-
label: () =>
|
|
905
|
-
description: () =>
|
|
875
|
+
label: () => s("Month", { desc: "Time unit" }),
|
|
876
|
+
description: () => s("Extracts the month from a date or datetime value.", { desc: "Formula function description for MONTH" }),
|
|
906
877
|
example: () => `MONTH('${e}-02-17 15:36:59')`
|
|
907
878
|
},
|
|
908
879
|
MONTH_UTC: {
|
|
909
880
|
type: "prefix",
|
|
910
881
|
arity: 1,
|
|
911
|
-
label: () =>
|
|
912
|
-
description: () =>
|
|
882
|
+
label: () => s("Month (UTC)", { desc: "Formula function label for MONTH_UTC" }),
|
|
883
|
+
description: () => s("Extracts the month from a date or datetime value in UTC.", { desc: "Formula function description for MONTH_UTC" }),
|
|
913
884
|
example: () => `MONTH_UTC('${e}-02-17 15:36:59')`
|
|
914
885
|
},
|
|
915
886
|
WEEK: {
|
|
916
887
|
type: "prefix",
|
|
917
888
|
arity: 1,
|
|
918
|
-
label: () =>
|
|
919
|
-
description: () =>
|
|
889
|
+
label: () => s("Week", { desc: "Time unit" }),
|
|
890
|
+
description: () => s("Extracts the ISO 8601 week number (1-53) from a date or datetime value.", { desc: "Formula function description for WEEK" }),
|
|
920
891
|
example: () => `WEEK('${e}-02-17 15:36:59')`
|
|
921
892
|
},
|
|
922
893
|
WEEK_UTC: {
|
|
923
894
|
type: "prefix",
|
|
924
895
|
arity: 1,
|
|
925
|
-
label: () =>
|
|
926
|
-
description: () =>
|
|
896
|
+
label: () => s("Week (UTC)", { desc: "Formula function label for WEEK_UTC" }),
|
|
897
|
+
description: () => s("Extracts the ISO 8601 week number (1-53) from a date or datetime value in UTC.", { desc: "Formula function description for WEEK_UTC" }),
|
|
927
898
|
example: () => `WEEK_UTC('${e}-02-17 15:36:59')`
|
|
928
899
|
},
|
|
929
900
|
DAY: {
|
|
930
901
|
type: "prefix",
|
|
931
902
|
arity: 1,
|
|
932
|
-
label: () =>
|
|
933
|
-
description: () =>
|
|
903
|
+
label: () => s("Day of month", { desc: "Formula function label for DAY" }),
|
|
904
|
+
description: () => s("Extracts the day of month from a date or datetime value.", { desc: "Formula function description for DAY" }),
|
|
934
905
|
example: () => `DAY('${e}-02-17 15:36:59')`
|
|
935
906
|
},
|
|
936
907
|
DAY_UTC: {
|
|
937
908
|
type: "prefix",
|
|
938
909
|
arity: 1,
|
|
939
|
-
label: () =>
|
|
940
|
-
description: () =>
|
|
910
|
+
label: () => s("Day of month (UTC)", { desc: "Formula function label for DAY_UTC" }),
|
|
911
|
+
description: () => s("Extracts the day of month from a date or datetime value in UTC.", { desc: "Formula function description for DAY_UTC" }),
|
|
941
912
|
example: () => `DAY_UTC('${e}-02-17 15:36:59')`
|
|
942
913
|
},
|
|
943
914
|
DAY_OF_WEEK: {
|
|
944
915
|
type: "prefix",
|
|
945
916
|
arity: 1,
|
|
946
|
-
label: () =>
|
|
947
|
-
description: () =>
|
|
917
|
+
label: () => s("Day of week", { desc: "Formula function label for DAY_OF_WEEK" }),
|
|
918
|
+
description: () => s("Extracts the day of week (1-7, where 1 is Monday) from a date or datetime value.", { desc: "Formula function description for DAY_OF_WEEK" }),
|
|
948
919
|
example: () => `DAY_OF_WEEK('${e}-02-17 15:36:59')`
|
|
949
920
|
},
|
|
950
921
|
DAY_OF_WEEK_UTC: {
|
|
951
922
|
type: "prefix",
|
|
952
923
|
arity: 1,
|
|
953
|
-
label: () =>
|
|
954
|
-
description: () =>
|
|
924
|
+
label: () => s("Day of week (UTC)", { desc: "Formula function label for DAY_OF_WEEK_UTC" }),
|
|
925
|
+
description: () => s("Extracts the day of week (1-7, where 1 is Monday) from a date or datetime value in UTC.", { desc: "Formula function description for DAY_OF_WEEK_UTC" }),
|
|
955
926
|
example: () => `DAY_OF_WEEK_UTC('${e}-02-17 15:36:59')`
|
|
956
927
|
},
|
|
957
928
|
DAY_OF_YEAR: {
|
|
958
929
|
type: "prefix",
|
|
959
930
|
arity: 1,
|
|
960
|
-
label: () =>
|
|
961
|
-
description: () =>
|
|
931
|
+
label: () => s("Day of year", { desc: "Formula function label for DAY_OF_YEAR" }),
|
|
932
|
+
description: () => s("Extracts the day of year from a date or datetime value.", { desc: "Formula function description for DAY_OF_YEAR" }),
|
|
962
933
|
example: () => `DAY_OF_YEAR('${e}-02-17 15:36:59')`
|
|
963
934
|
},
|
|
964
935
|
DAY_OF_YEAR_UTC: {
|
|
965
936
|
type: "prefix",
|
|
966
937
|
arity: 1,
|
|
967
|
-
label: () =>
|
|
968
|
-
description: () =>
|
|
938
|
+
label: () => s("Day of year (UTC)", { desc: "Formula function label for DAY_OF_YEAR_UTC" }),
|
|
939
|
+
description: () => s("Extracts the day of year from a date or datetime value in UTC.", { desc: "Formula function description for DAY_OF_YEAR_UTC" }),
|
|
969
940
|
example: () => `DAY_OF_YEAR_UTC('${e}-02-17 15:36:59')`
|
|
970
941
|
},
|
|
971
942
|
YEAR_OF_WEEK: {
|
|
972
943
|
type: "prefix",
|
|
973
944
|
arity: 1,
|
|
974
|
-
label: () =>
|
|
975
|
-
description: () =>
|
|
945
|
+
label: () => s("Year of ISO week", { desc: "Formula function label for YEAR_OF_WEEK" }),
|
|
946
|
+
description: () => s("Extracts the ISO week-numbering year from a date or datetime value.", { desc: "Formula function description for YEAR_OF_WEEK" }),
|
|
976
947
|
example: () => `YEAR_OF_WEEK('${e}-02-17 15:36:59')`
|
|
977
948
|
},
|
|
978
949
|
YEAR_OF_WEEK_UTC: {
|
|
979
950
|
type: "prefix",
|
|
980
951
|
arity: 1,
|
|
981
|
-
label: () =>
|
|
982
|
-
description: () =>
|
|
952
|
+
label: () => s("Year of ISO week (UTC)", { desc: "Formula function label for YEAR_OF_WEEK_UTC" }),
|
|
953
|
+
description: () => s("Extracts the ISO week-numbering year from a date or datetime value in UTC.", { desc: "Formula function description for YEAR_OF_WEEK_UTC" }),
|
|
983
954
|
example: () => `YEAR_OF_WEEK_UTC('${e}-02-17 15:36:59')`
|
|
984
955
|
},
|
|
985
956
|
HOUR: {
|
|
986
957
|
type: "prefix",
|
|
987
958
|
arity: 1,
|
|
988
|
-
label: () =>
|
|
989
|
-
description: () =>
|
|
959
|
+
label: () => s("Hour", { desc: "Time unit" }),
|
|
960
|
+
description: () => s("Extracts the hour from a datetime value.", { desc: "Formula function description for HOUR" }),
|
|
990
961
|
example: () => `HOUR('${e}-02-17 15:36:59')`
|
|
991
962
|
},
|
|
992
963
|
HOUR_UTC: {
|
|
993
964
|
type: "prefix",
|
|
994
965
|
arity: 1,
|
|
995
|
-
label: () =>
|
|
996
|
-
description: () =>
|
|
966
|
+
label: () => s("Hour (UTC)", { desc: "Formula function label for HOUR_UTC" }),
|
|
967
|
+
description: () => s("Extracts the hour from a datetime value in UTC.", { desc: "Formula function description for HOUR_UTC" }),
|
|
997
968
|
example: () => `HOUR_UTC('${e}-02-17 15:36:59')`
|
|
998
969
|
},
|
|
999
970
|
MINUTE: {
|
|
1000
971
|
type: "prefix",
|
|
1001
972
|
arity: 1,
|
|
1002
|
-
label: () =>
|
|
1003
|
-
description: () =>
|
|
973
|
+
label: () => s("Minute", { desc: "Time unit" }),
|
|
974
|
+
description: () => s("Extracts the minute from a datetime value.", { desc: "Formula function description for MINUTE" }),
|
|
1004
975
|
example: () => `MINUTE('${e}-02-17 15:36:59')`
|
|
1005
976
|
},
|
|
1006
977
|
MINUTE_UTC: {
|
|
1007
978
|
type: "prefix",
|
|
1008
979
|
arity: 1,
|
|
1009
|
-
label: () =>
|
|
1010
|
-
description: () =>
|
|
980
|
+
label: () => s("Minute (UTC)", { desc: "Formula function label for MINUTE_UTC" }),
|
|
981
|
+
description: () => s("Extracts the minute from a datetime value in UTC.", { desc: "Formula function description for MINUTE_UTC" }),
|
|
1011
982
|
example: () => `MINUTE_UTC('${e}-02-17 15:36:59')`
|
|
1012
983
|
},
|
|
1013
984
|
SECOND: {
|
|
1014
985
|
type: "prefix",
|
|
1015
986
|
arity: 1,
|
|
1016
|
-
label: () =>
|
|
1017
|
-
description: () =>
|
|
987
|
+
label: () => s("Second", { desc: "Time unit" }),
|
|
988
|
+
description: () => s("Extracts the second from a datetime value.", { desc: "Formula function description for SECOND" }),
|
|
1018
989
|
example: () => `SECOND('${e}-02-17 15:36:59')`
|
|
1019
990
|
},
|
|
1020
991
|
SECOND_UTC: {
|
|
1021
992
|
type: "prefix",
|
|
1022
993
|
arity: 1,
|
|
1023
|
-
label: () =>
|
|
1024
|
-
description: () =>
|
|
994
|
+
label: () => s("Second (UTC)", { desc: "Formula function label for SECOND_UTC" }),
|
|
995
|
+
description: () => s("Extracts the second from a datetime value in UTC.", { desc: "Formula function description for SECOND_UTC" }),
|
|
1025
996
|
example: () => `SECOND_UTC('${e}-02-17 15:36:59')`
|
|
1026
997
|
},
|
|
1027
998
|
DATE_ADD: {
|
|
1028
999
|
type: "prefix",
|
|
1029
1000
|
arity: 3,
|
|
1030
|
-
label: () =>
|
|
1031
|
-
description: () =>
|
|
1001
|
+
label: () => s("Add/subtract duration", { desc: "Formula function label for DATE_ADD" }),
|
|
1002
|
+
description: () => s("Adds a duration to (or subtracts it from) a date or datetime value. The first argument is the unit ('millisecond', 'second', 'minute', 'hour', 'day', 'week', 'month', 'quarter' or 'year'), the second the number of units to add (negative to subtract), and the third the date or datetime to start from.", { desc: "Formula function description for DATE_ADD" }),
|
|
1032
1003
|
example: () => "DATE_ADD('hour', 2, ⟨datetime⟩ Arrival time)",
|
|
1033
1004
|
exampleHasIcons: !0
|
|
1034
1005
|
},
|
|
1035
1006
|
DATE_DIFF: {
|
|
1036
1007
|
type: "prefix",
|
|
1037
1008
|
arity: 3,
|
|
1038
|
-
label: () =>
|
|
1039
|
-
description: () =>
|
|
1009
|
+
label: () => s("Difference between dates", { desc: "Formula function label for DATE_DIFF" }),
|
|
1010
|
+
description: () => s("Returns the difference between two dates or datetimes in the selected unit. The first argument is the unit ('millisecond', 'second', 'minute', 'hour', 'day', 'week', 'month', 'quarter' or 'year'); the difference is calculated from the second date towards the third date.", { desc: "Formula function description for DATE_DIFF" }),
|
|
1040
1011
|
example: () => `DATE_DIFF('day', ⟨datetime⟩ Arrival date, '${e}-02-17 15:36:59')`,
|
|
1041
1012
|
exampleHasIcons: !0
|
|
1042
1013
|
},
|
|
1043
1014
|
COORDS: {
|
|
1044
1015
|
type: "prefix",
|
|
1045
1016
|
arity: 3,
|
|
1046
|
-
label: () =>
|
|
1017
|
+
label: () => s("Coordinates", {
|
|
1047
1018
|
id: "formula-function-label-coords",
|
|
1048
1019
|
desc: "Formula function label for COORDS"
|
|
1049
1020
|
}),
|
|
1050
|
-
description: () =>
|
|
1021
|
+
description: () => s("Builds a geography value from latitude, longitude, and spatial reference.", { desc: "Formula function description for COORDS" }),
|
|
1051
1022
|
example: () => "COORDS(⟨numeric⟩ Latitude, ⟨numeric⟩ Longitude, 'wgs84')",
|
|
1052
1023
|
exampleHasIcons: !0
|
|
1053
1024
|
}
|
|
@@ -1055,9 +1026,9 @@ function z() {
|
|
|
1055
1026
|
}
|
|
1056
1027
|
//#endregion
|
|
1057
1028
|
//#region src/utils/formula/store/formula-display-store.ts
|
|
1058
|
-
var
|
|
1029
|
+
var F = class extends EventTarget {
|
|
1059
1030
|
constructor(...e) {
|
|
1060
|
-
super(...e), this.functionDataMap =
|
|
1031
|
+
super(...e), this.functionDataMap = P(), this.aggregationFunctionDataMap = M(), this.multiStageAggregation = !0, this.nestedAggregation = !0, this.readonly = !1, this.contentLanguage = "en", this.size = "m", this.datasets = [], this.loading = !1, this.lastFocusedAggregationWidgetId = null, this.lastFocusedEmptyArgumentId = null, this.pendingFocusAggregationWidgetId = null, this._aggregationWidgets = [];
|
|
1061
1032
|
}
|
|
1062
1033
|
get aggregationWidgets() {
|
|
1063
1034
|
return this._aggregationWidgets;
|
|
@@ -1091,29 +1062,29 @@ var B = class extends EventTarget {
|
|
|
1091
1062
|
t && (this.aggregationFunctionDataMap[t.aggregationFunction]?.arity ?? 0) > 0 && (this.pendingFocusAggregationWidgetId = t.widgetId);
|
|
1092
1063
|
}
|
|
1093
1064
|
transformToAggregationWidgetSyntax(e) {
|
|
1094
|
-
let t =
|
|
1065
|
+
let t = x(e).match(f);
|
|
1095
1066
|
if (!t) return e;
|
|
1096
|
-
let n = !!t[1], r = t.index ?? 0, i =
|
|
1067
|
+
let n = !!t[1], r = t.index ?? 0, i = S(e, r + (n ? t[1].length : t[0].length) - 1 + 1), a = S(e, r + t[0].length);
|
|
1097
1068
|
if (i === -1) return e;
|
|
1098
|
-
let o = e.slice(r + t[0].length, a), s = this.transformToAggregationWidgetSyntax(o),
|
|
1099
|
-
widgetId:
|
|
1100
|
-
grouping: t[2] ??
|
|
1069
|
+
let o = e.slice(r + t[0].length, a), s = this.transformToAggregationWidgetSyntax(o), l = {
|
|
1070
|
+
widgetId: _(),
|
|
1071
|
+
grouping: t[2] ?? c.GROUP,
|
|
1101
1072
|
aggregationFunction: t[3],
|
|
1102
1073
|
content: s
|
|
1103
1074
|
};
|
|
1104
|
-
if (
|
|
1105
|
-
let { includedColumns: t, excludedColumns: n } =
|
|
1106
|
-
|
|
1075
|
+
if (l.grouping === c.GROUPINEX) {
|
|
1076
|
+
let { includedColumns: t, excludedColumns: n } = C(e.slice(a + 1, i));
|
|
1077
|
+
l.includedColumns = t, l.excludedColumns = n;
|
|
1107
1078
|
}
|
|
1108
|
-
let
|
|
1109
|
-
return this.addWidgets([
|
|
1079
|
+
let u = y(l.widgetId), d = `${e.slice(0, r)}${u}${e.slice(i + 1)}`;
|
|
1080
|
+
return this.addWidgets([l]), this.transformToAggregationWidgetSyntax(d);
|
|
1110
1081
|
}
|
|
1111
1082
|
transformToAggregationFunctionSyntax(e) {
|
|
1112
|
-
let t = e.match(
|
|
1083
|
+
let t = e.match(m);
|
|
1113
1084
|
if (!t) return e;
|
|
1114
|
-
let n = t.index ?? 0, r = n + t[0].length - 1, i = t[1], a = this.getWidget(i), o = a ? this.transformToAggregationFunctionSyntax(
|
|
1085
|
+
let n = t.index ?? 0, r = n + t[0].length - 1, i = t[1], a = this.getWidget(i), o = a ? this.transformToAggregationFunctionSyntax(b(a, this.aggregationFunctionDataMap)) : "", s = `${e.slice(0, n)}${o}${e.slice(r + 1)}`;
|
|
1115
1086
|
return this.transformToAggregationFunctionSyntax(s);
|
|
1116
1087
|
}
|
|
1117
1088
|
};
|
|
1118
1089
|
//#endregion
|
|
1119
|
-
export {
|
|
1090
|
+
export { M as a, k as c, v as d, g as f, c as g, u as h, j as i, _ as l, d as m, N as n, A as o, p, P as r, O as s, F as t, y as u };
|