@luzmo/analytics-components-kit 1.0.4-beta.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -5
- package/components/{area-chart-options.config-BjdRY1sr.js → area-chart-options.config-CxJWxcD9.js} +1 -1
- package/components/{area-chart-positioning.config-PZ-MmeDb.cjs → area-chart-positioning.config-CE8lOCfT.cjs} +1 -1
- package/components/{area-chart-positioning.config-hLhrDJ3v.js → area-chart-positioning.config-CQW5h7Eg.js} +1 -1
- package/components/{area-chart-slots.config-BpvvqFy_.js → area-chart-slots.config-C22ZF9l0.js} +1 -1
- package/components/{bar-chart-options.config-DxNHV39Y.js → bar-chart-options.config-BAatAyhW.js} +1 -1
- package/components/{bar-chart-positioning.config-DI8tOMbI.cjs → bar-chart-positioning.config-DFI1wzOQ.cjs} +1 -1
- package/components/{bar-chart-positioning.config-C6wWTn1o.js → bar-chart-positioning.config-DaH_x_VU.js} +1 -1
- package/components/{bar-chart-slots.config-CfIirCOX.js → bar-chart-slots.config-BbgFihbK.js} +1 -1
- package/components/base-CYiGlWug.cjs +20 -0
- package/components/{base-DYkpEuMf.js → base-p2I4mVSW.js} +2 -3
- package/components/{box-plot-options.config-CXey4hvi.js → box-plot-options.config-BuX2wNhp.js} +1 -1
- package/components/{box-plot-positioning.config-D_qhNWth.cjs → box-plot-positioning.config-FOyav5Zq.cjs} +1 -1
- package/components/{box-plot-positioning.config-XG-WcIlA.js → box-plot-positioning.config-K2tQGMig.js} +1 -1
- package/components/{box-plot-slots.config-DclNulnH.js → box-plot-slots.config-OeublT6p.js} +1 -1
- package/components/{bubble-chart-options.config-CeaOv4eF.js → bubble-chart-options.config-C_XQOHgH.js} +1 -1
- package/components/{bubble-chart-positioning.config-CHYBh_Nb.cjs → bubble-chart-positioning.config-B6DXfqa4.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-o_r-GWQG.js → bubble-chart-positioning.config-D2fwO2JM.js} +1 -1
- package/components/{bubble-chart-slots.config-D7vQta7G.js → bubble-chart-slots.config-Bdy20Xqs.js} +1 -1
- package/components/{bullet-chart-options.config-CLn7sV4W.js → bullet-chart-options.config-h5BFyszP.js} +1 -1
- package/components/{bullet-chart-positioning.config-DE5oy4M6.js → bullet-chart-positioning.config-DOAG2wFN.js} +1 -1
- package/components/{bullet-chart-positioning.config-BF8PflF6.cjs → bullet-chart-positioning.config-DZqzqZSQ.cjs} +1 -1
- package/components/{bullet-chart-slots.config-IX7zJWc7.js → bullet-chart-slots.config-Cqj3i1qo.js} +1 -1
- package/components/{choropleth-map-options.config-DzTlJSO3.js → choropleth-map-options.config-YCo77O3q.js} +1 -1
- package/components/{choropleth-map-positioning.config-DT1WWljP.cjs → choropleth-map-positioning.config-C3jO3j8R.cjs} +1 -1
- package/components/{choropleth-map-positioning.config-Cf8bEIns.js → choropleth-map-positioning.config-Jw6fAFM1.js} +1 -1
- package/components/{choropleth-map-slots.config-y0y9rf6i.js → choropleth-map-slots.config-D4vxtdtH.js} +1 -1
- package/components/{circle-pack-chart-options.config-DoLPbnPq.js → circle-pack-chart-options.config-C0cEtjgC.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-Dy-DZ_de.js → circle-pack-chart-positioning.config-Ckb-1sUG.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-DDpnake6.cjs → circle-pack-chart-positioning.config-DJT6ivEy.cjs} +1 -1
- package/components/{circle-pack-chart-slots.config-X9WVAykN.js → circle-pack-chart-slots.config-Dks8K3uQ.js} +1 -1
- package/components/{circular-gauge-options.config-BPUFjqx8.js → circular-gauge-options.config-Cdnk-Sp0.js} +1 -1
- package/components/{circular-gauge-positioning.config-D2t_3T1J.cjs → circular-gauge-positioning.config-B8gL5Br9.cjs} +1 -1
- package/components/{circular-gauge-positioning.config-DljBe7e-.js → circular-gauge-positioning.config-BGlDGhYZ.js} +1 -1
- package/components/{circular-gauge-slots.config-NIEmIAIG.js → circular-gauge-slots.config-Wf4sHmk6.js} +1 -1
- package/components/{column-chart-options.config-DQts3cE4.js → column-chart-options.config-DoZLlIRM.js} +1 -1
- package/components/{column-chart-positioning.config-Bob00Qnq.js → column-chart-positioning.config-BJGWvFLD.js} +1 -1
- package/components/{column-chart-positioning.config-Uvvr5PxW.cjs → column-chart-positioning.config-LzBETWIy.cjs} +1 -1
- package/components/{column-chart-slots.config-CoFarLvo.js → column-chart-slots.config-BhVqSbKw.js} +1 -1
- package/components/{combination-chart-options.config-CjSV6Ic4.js → combination-chart-options.config-D7ZXfn61.js} +1 -1
- package/components/{combination-chart-positioning.config-BzbcDQ2O.cjs → combination-chart-positioning.config-DjmWx90S.cjs} +1 -1
- package/components/{combination-chart-positioning.config-DG2CM16I.js → combination-chart-positioning.config-DtneKdwK.js} +1 -1
- package/components/{combination-chart-slots.config-BGRHSwfr.js → combination-chart-slots.config-CK8YBgUl.js} +1 -1
- package/components/{conditional-number-options.config-CZFqw31c.js → conditional-number-options.config-BwSMI5Ax.js} +1 -1
- package/components/{conditional-number-positioning.config-DpORiYgh.cjs → conditional-number-positioning.config-C8bRdffQ.cjs} +1 -1
- package/components/{conditional-number-positioning.config-CT8PqxDT.js → conditional-number-positioning.config-Ccb2yjJU.js} +1 -1
- package/components/{conditional-number-slots.config-r_C8T2HH.js → conditional-number-slots.config-xSNaYD4u.js} +1 -1
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.d.ts +0 -1
- package/components/data-field/index.js +1 -1
- package/components/data-field-iGBGWoGH.cjs +89 -0
- package/components/{data-field-level-zbu4U2m5.js → data-field-ll2oFVG2.js} +141 -47
- package/components/data-field-panel/index.cjs +1 -1
- package/components/data-field-panel/index.d.ts +0 -1
- package/components/data-field-panel/index.js +1 -1
- package/components/data-field-panel-NktuTUUp.cjs +87 -0
- package/components/{data-field-panel-Ob-hNZwz.js → data-field-panel-ntgCpQ_2.js} +4 -5
- package/components/{data-fields-select-CYQy6Ow-.js → data-fields-select-DJFkrrPs.js} +3 -4
- package/components/data-fields-select-DL1nFRg3.cjs +41 -0
- package/components/{date-comparison-filter-options.config-s16IGX_4.js → date-comparison-filter-options.config-DCCm5Adt.js} +1 -1
- package/components/{date-comparison-filter-slots.config-DQBKeCRX.js → date-comparison-filter-slots.config-s7FcuKia.js} +1 -1
- package/components/{date-filter-options.config-ChFEIjN3.js → date-filter-options.config-DBwcMXzp.js} +1 -1
- package/components/{date-filter-slots.config-DREsncpE.js → date-filter-slots.config-pbd3rG9z.js} +1 -1
- package/components/{de-D-xQoqdB.js → de-DqwsqE-U.js} +14 -9
- package/components/de-tUSOg_BJ.cjs +20 -0
- package/components/{display-settings-binning-GKaol6nW.cjs → display-settings-binning-CQKXGp11.cjs} +4 -4
- package/components/{display-settings-binning-MHns2Ns6.js → display-settings-binning-DGxEB9Fa.js} +21 -19
- package/components/display-settings-datetime-25LwuZM_.cjs +217 -0
- package/components/{display-settings-datetime-D5eBAfWQ.js → display-settings-datetime-CLx9sxA7.js} +81 -79
- package/components/display-settings-grand-totals-1tBdxbFY.cjs +44 -0
- package/components/{display-settings-grand-totals-CpulhtNX.js → display-settings-grand-totals-B0Px90rH.js} +20 -18
- package/components/display-settings-numeric-Bbx4qmpA.cjs +190 -0
- package/components/{display-settings-numeric-DnyXOV_x.js → display-settings-numeric-CdEgzO7W.js} +88 -86
- package/components/display-settings-period-over-period-4bJbXWB7.cjs +229 -0
- package/components/{display-settings-period-over-period-Do4qG7yY.js → display-settings-period-over-period-lo3myRfT.js} +91 -90
- package/components/{donut-chart-options.config-WNOpb2n9.js → donut-chart-options.config-Buas8fzJ.js} +1 -1
- package/components/{donut-chart-positioning.config-BLnTmwTZ.cjs → donut-chart-positioning.config-2cYbI6p-.cjs} +1 -1
- package/components/{donut-chart-positioning.config-Bl96um6F.js → donut-chart-positioning.config-Dh3XI5f4.js} +1 -1
- package/components/{donut-chart-slots.config-DEQ3Cw6c.js → donut-chart-slots.config-CZWRHxZe.js} +1 -1
- package/components/{dropdown-filter-options.config-DBNawOPR.js → dropdown-filter-options.config-gv1y1OkC.js} +1 -1
- package/components/{dropdown-filter-slots.config-DcStZGjV.js → dropdown-filter-slots.config-aP5hvp2K.js} +1 -1
- package/components/{en-GB-DzkdeUQh.js → en-GB-D7N1nMuy.js} +1 -1
- package/components/{en-GB-B3xz84vF.cjs → en-GB-DCZl8CPc.cjs} +1 -1
- package/components/{en-CcLhGxIh.js → en-OJGeTneC.js} +1 -1
- package/components/{en-US-CcLhGxIh.js → en-US-OJGeTneC.js} +1 -1
- package/components/{en-US-B34alchz.cjs → en-US-hPjCnvK0.cjs} +1 -1
- package/components/{en-B34alchz.cjs → en-hPjCnvK0.cjs} +1 -1
- package/components/{es-CLnBAiLu.js → es-C-5Yqnck.js} +14 -9
- package/components/es-Czecz2xB.cjs +20 -0
- package/components/{evolution-number-options.config-CrIM2GTn.js → evolution-number-options.config-B1IomzV1.js} +1 -1
- package/components/{evolution-number-positioning.config-DXNPD29G.js → evolution-number-positioning.config-BQQrOKbD.js} +1 -1
- package/components/{evolution-number-positioning.config-DSoC35zp.cjs → evolution-number-positioning.config-BX1lWtDL.cjs} +1 -1
- package/components/{evolution-number-slots.config-Bq_JlxgK.js → evolution-number-slots.config-eOQDWZyb.js} +1 -1
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -1
- package/components/filters-Bzx4DYm-.cjs +323 -0
- package/components/filters-DSod7vIq.js +1637 -0
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +1 -1
- package/components/formula-DcCDYDt4.cjs +45 -0
- package/components/{formula-CeDEKB7D.js → formula-TyfDRy5X.js} +15 -16
- package/components/{formula-codemirror-MygWCu2u.js → formula-codemirror-B6ktT1Dm.js} +21 -23
- package/components/{formula-codemirror-CFMYytMd.cjs → formula-codemirror-Bewi7Xgc.cjs} +53 -53
- package/components/formula-display-store-DxjO7Q-n.cjs +20 -0
- package/components/{formula-display-store-BYa910x_.js → formula-display-store-ycPV0gru.js} +279 -246
- package/components/formula-editor/index.cjs +1 -1
- package/components/formula-editor/index.d.ts +0 -1
- package/components/formula-editor/index.js +3 -4
- package/components/formula-editor-DQp_XiX5.cjs +247 -0
- package/components/{formula-editor-DeYzzLDr.js → formula-editor-HkD4KWnN.js} +349 -144
- package/components/{fr-DIwbOnwC.js → fr-BvgQLvx5.js} +14 -9
- package/components/fr-CQyhQN6j.cjs +20 -0
- package/components/{funnel-chart-options.config-k0X4rkj-.js → funnel-chart-options.config-DAv3185m.js} +1 -1
- package/components/{funnel-chart-positioning.config-CWSM8nTo.js → funnel-chart-positioning.config-9blBdgB7.js} +1 -1
- package/components/{funnel-chart-positioning.config-BcsV1xp7.cjs → funnel-chart-positioning.config-iHk--8l3.cjs} +1 -1
- package/components/{funnel-chart-slots.config-DKhaZf_r.js → funnel-chart-slots.config-BsNj6Mbb.js} +1 -1
- package/components/{get-css-variable-rHTFFWYM.cjs → get-css-variable-B1BZoBcs.cjs} +1 -1
- package/components/{get-css-variable-Bpma6ZOo.js → get-css-variable-COcan5CX.js} +1 -1
- package/components/{heat-map-options.config-_xxAm6iG.js → heat-map-options.config-Ckw8voNV.js} +1 -1
- package/components/{heat-map-positioning.config-C0dkG5_9.cjs → heat-map-positioning.config-CqkTB8nU.cjs} +1 -1
- package/components/{heat-map-positioning.config-DQJP4mTG.js → heat-map-positioning.config-DgrZWNiT.js} +1 -1
- package/components/{heat-map-slots.config-BDfEGgq5.js → heat-map-slots.config-BFK5TF9k.js} +1 -1
- package/components/{heat-table-options.config-DxRbWqJ8.js → heat-table-options.config-PpOf4o94.js} +1 -1
- package/components/{heat-table-positioning.config-WUHNZPT-.js → heat-table-positioning.config-BqsqkftW.js} +1 -1
- package/components/{heat-table-positioning.config-BzSpf7ed.cjs → heat-table-positioning.config-Ca-WBNR-.cjs} +1 -1
- package/components/{heat-table-slots.config-CVh1TEJJ.js → heat-table-slots.config-3q2hG4nF.js} +1 -1
- package/components/{hexbin-map-options.config-CmAmK-jM.js → hexbin-map-options.config-D88DHYrl.js} +1 -1
- package/components/{hexbin-map-positioning.config-CJPhgdt2.js → hexbin-map-positioning.config-gkLfwTS6.js} +1 -1
- package/components/{marker-map-positioning.config-B-HitobG.cjs → hexbin-map-positioning.config-sUIrPJP4.cjs} +1 -1
- package/components/{hexbin-map-slots.config-rxPZ4kwL.js → hexbin-map-slots.config-BfbHCCUe.js} +1 -1
- package/components/{image-options.config-DJ2DEf7g.js → image-options.config-ByIPpr29.js} +1 -1
- package/components/{image-slots.config-bDNDmiWy.js → image-slots.config-B4MFjNWt.js} +1 -1
- package/components/index.cjs +749 -1
- package/components/index.js +5577 -64
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +1 -1
- package/components/{item-grid-CO_cqGqJ.js → item-grid-B59uyBDP.js} +5 -6
- package/components/{item-grid-CRAoMdCq.cjs → item-grid-C6nEE4Uj.cjs} +22 -22
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.js +1 -1
- package/components/item-option-C4c-e1QF.cjs +252 -0
- package/components/item-option-action-button-group/index.cjs +1 -1
- package/components/item-option-action-button-group/index.js +1 -1
- package/components/{item-option-action-button-group-VpgTKSIV.js → item-option-action-button-group-BEXRueVH.js} +3 -3
- package/components/item-option-action-button-group-BU1wvtEd.cjs +53 -0
- package/components/item-option-base-DATaPQ-m.cjs +56 -0
- package/components/{item-option-base-VV7gyznL.js → item-option-base-DqDKIqRP.js} +2 -2
- package/components/item-option-color-palette-picker/index.cjs +1 -1
- package/components/item-option-color-palette-picker/index.js +1 -1
- package/components/item-option-color-palette-picker-Cc2nTuxC.cjs +40 -0
- package/components/{item-option-color-palette-picker-CQgG_NPQ.js → item-option-color-palette-picker-dk5Nm1XB.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-DeDwpICb.cjs → item-option-color-picker-Czr_ojzh.cjs} +2 -2
- package/components/{item-option-color-picker-BmQBTQzb.js → item-option-color-picker-oG-wrEZh.js} +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-CTnHZ72E.cjs +98 -0
- package/components/{item-option-color-range-D2kHXssY.js → item-option-color-range-RbnPnI3s.js} +3 -3
- 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-Cc9ph205.cjs → item-option-multi-language-field-BpyuIPcO.cjs} +2 -2
- package/components/{item-option-multi-language-field-DbqcqhhN.js → item-option-multi-language-field-BqhBRIFH.js} +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-BbCVJeXZ.js → item-option-number-field-BDPEAzdF.js} +2 -2
- package/components/{item-option-number-field-B6GFKuLN.cjs → item-option-number-field-CV2xpQrk.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-6UFGCcnF.cjs → item-option-panel-CMrjUb2s.cjs} +2 -2
- package/components/{item-option-panel-CrNZ0xIF.js → item-option-panel-XhTxaBZp.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-DJKTAG9w.cjs → item-option-picker-CvEfEy99.cjs} +2 -2
- package/components/{item-option-picker-YquXTQNY.js → item-option-picker-D_Od3am8.js} +2 -2
- package/components/item-option-position-picker/index.cjs +1 -1
- package/components/item-option-position-picker/index.js +1 -1
- package/components/{item-option-position-picker-DKvsF-VQ.js → item-option-position-picker-BKw29tj-.js} +2 -2
- package/components/item-option-position-picker-DBs4JlFi.cjs +32 -0
- 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-DIIEFHd4.cjs +49 -0
- package/components/{item-option-positions-number-field-Bxcbu_IR.js → item-option-positions-number-field-lrJdfydy.js} +2 -2
- 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-Cw-xUSUS.js → item-option-radio-button-group-DTyHPaz_.js} +2 -2
- package/components/{item-option-radio-button-group-Bzh4RtSn.cjs → item-option-radio-button-group-DrjpL6YU.cjs} +2 -2
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.js +1 -1
- package/components/{item-option-slider-DUqo3Fw0.cjs → item-option-slider-BwKBgW0y.cjs} +2 -2
- package/components/{item-option-slider-BwQnaxvO.js → item-option-slider-CIDoZhZl.js} +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-DBsakQjy.cjs → item-option-switch-CQtvbTfI.cjs} +2 -2
- package/components/{item-option-switch-IixoilYJ.js → item-option-switch-DxC1yjeN.js} +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-CdWylobQ.js → item-option-text-field-CZtJ1yIj.js} +2 -2
- package/components/{item-option-text-field-B4V_sKnM.cjs → item-option-text-field-pLQzcE25.cjs} +2 -2
- package/components/{item-option-Bc6qXONK.js → item-option-zz-Rqh6o.js} +47 -47
- package/components/item-options-configs.js +45 -45
- package/components/item-slot-drop/index.cjs +1 -1
- package/components/item-slot-drop/index.d.ts +0 -2
- package/components/item-slot-drop/index.js +1 -1
- package/components/item-slot-drop/item-slot-drop.d.ts +1 -0
- package/components/{item-slot-drop-BmvMi3dI.js → item-slot-drop-SqYpfTGj.js} +67 -65
- package/components/item-slot-drop-UygcXM5D.cjs +91 -0
- 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-9T8BWejl.cjs +57 -0
- package/components/{item-slot-drop-panel-D5vaJidp.js → item-slot-drop-panel-DoWCzjqb.js} +40 -41
- package/components/item-slot-picker/index.cjs +1 -1
- package/components/item-slot-picker/index.js +1 -1
- package/components/item-slot-picker/item-slot-picker.d.ts +3 -0
- package/components/{item-slot-picker-BZV33YoP.js → item-slot-picker-CadZEvOA.js} +138 -112
- package/components/item-slot-picker-Rnb_wwCV.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-2VJY6C0b.cjs +81 -0
- package/components/{item-slot-picker-panel-DyhRlAKN.js → item-slot-picker-panel-Bhr6d6Ya.js} +4 -5
- package/components/item-slots-configs.js +45 -45
- package/components/{line-chart-options.config-CfHRdG6O.js → line-chart-options.config-DMjvCs-4.js} +1 -1
- package/components/{line-chart-positioning.config-pSGQm1C1.cjs → line-chart-positioning.config-BIkHxiyg.cjs} +1 -1
- package/components/{line-chart-positioning.config-Cfcgse1N.js → line-chart-positioning.config-CdnYQBah.js} +1 -1
- package/components/{line-chart-slots.config-DKy4D4Yt.js → line-chart-slots.config-CrQEwa4W.js} +1 -1
- package/components/load-data-fields-for-datasets-CU75T9Az.js +86 -0
- package/components/load-data-fields-for-datasets-DkK1JsFd.cjs +20 -0
- package/components/{decorate-CaYbmmmm.js → localized-mixin-CBMYHOPv.js} +26 -2
- package/components/{ai-chat/index.cjs → localized-mixin-DAOiXh71.cjs} +1 -1
- package/components/{marker-map-options.config-C_aGdRQQ.js → marker-map-options.config-C52a3boH.js} +1 -1
- package/components/{marker-map-positioning.config-DTCPGbnG.js → marker-map-positioning.config-BSz4P-W9.js} +1 -1
- package/components/{hexbin-map-positioning.config-Cno9WIc9.cjs → marker-map-positioning.config-t66fioVz.cjs} +1 -1
- package/components/{marker-map-slots.config-BKRRAGwB.js → marker-map-slots.config-eJAxjIaQ.js} +1 -1
- package/components/nl-BwK5iXtO.cjs +20 -0
- package/components/{nl-C_g1Le3t.js → nl-D-Wa6DnD.js} +14 -9
- package/components/{ohlc-chart-options.config-Bd-vLN0I.js → ohlc-chart-options.config-38qB2VKc.js} +1 -1
- package/components/{ohlc-chart-positioning.config-NhpIR1T3.cjs → ohlc-chart-positioning.config-BGueS7CJ.cjs} +1 -1
- package/components/{ohlc-chart-positioning.config-D0kJJkXw.js → ohlc-chart-positioning.config-tQPPutWX.js} +1 -1
- package/components/{ohlc-chart-slots.config-DC8NCD0o.js → ohlc-chart-slots.config-SOs4oD-Q.js} +1 -1
- package/components/{parallel-coordinates-plot-options.config-BUo6XxfP.js → parallel-coordinates-plot-options.config-DfZ80jLX.js} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-Dzd0eaka.js → parallel-coordinates-plot-positioning.config-MkX-qYHX.js} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-DLF0U4lZ.cjs → parallel-coordinates-plot-positioning.config-NrJ2LNM8.cjs} +1 -1
- package/components/{parallel-coordinates-plot-slots.config-Dy-9mztD.js → parallel-coordinates-plot-slots.config-DgsHiCqT.js} +1 -1
- package/components/{formatter-Cq5dFCyU.js → period-over-period-condition.const-DLA60ptm.js} +235 -44
- package/components/period-over-period-condition.const-DystGY6B.cjs +20 -0
- package/components/{pivot-table-options.config-DrzB4qVX.js → pivot-table-options.config-5udtucDD.js} +1 -1
- package/components/{pivot-table-positioning.config-BvUjUkG3.cjs → pivot-table-positioning.config-DgJ5PPB9.cjs} +1 -1
- package/components/{pivot-table-positioning.config-PKXfqjiN.js → pivot-table-positioning.config-Dr_0v4TM.js} +1 -1
- package/components/{pivot-table-slots.config-OQe8tS40.js → pivot-table-slots.config-CRL6EW5R.js} +1 -1
- package/components/{pragmatic-element-adapter-CKhTZWGj.cjs → pragmatic-element-adapter-U3ppsQDe.cjs} +3 -3
- package/components/{pragmatic-element-adapter-BFUFSRw6.js → pragmatic-element-adapter-e5LbH_lv.js} +50 -50
- package/components/{pyramid-chart-options.config-Dux8839h.js → pyramid-chart-options.config-iP2MzTeb.js} +1 -1
- package/components/{pyramid-chart-positioning.config-48iZhPdi.cjs → pyramid-chart-positioning.config-BGRtXKWh.cjs} +1 -1
- package/components/{pyramid-chart-positioning.config-C8yiD0R3.js → pyramid-chart-positioning.config-DB0BI8vW.js} +1 -1
- package/components/{pyramid-chart-slots.config-DwlZaBAF.js → pyramid-chart-slots.config-DM3lYlDg.js} +1 -1
- package/components/{radar-chart-options.config-ColtKo6Z.js → radar-chart-options.config-aR5sQal-.js} +1 -1
- package/components/{radar-chart-positioning.config-L5Eu5W1I.js → radar-chart-positioning.config-D6UfRMMA.js} +1 -1
- package/components/{radar-chart-positioning.config-CpqhJjoz.cjs → radar-chart-positioning.config-DQiJ-Z1s.cjs} +1 -1
- package/components/{radar-chart-slots.config-BuHg4Zeg.js → radar-chart-slots.config-msW05r4n.js} +1 -1
- package/components/{regular-table-options.config-DopdB4eB.js → regular-table-options.config-kbARlJ1E.js} +1 -1
- package/components/{regular-table-slots.config--SVEN5Cu.js → regular-table-slots.config-DAwLOM5T.js} +1 -1
- package/components/{route-map-options.config-BCuJw5k3.js → route-map-options.config-DCBAfq09.js} +1 -1
- package/components/{route-map-positioning.config-DTwMkeiu.cjs → route-map-positioning.config-Cbic0Cbz.cjs} +1 -1
- package/components/{route-map-positioning.config-DVb_Jiws.js → route-map-positioning.config-D_ZoyhwX.js} +1 -1
- package/components/{route-map-slots.config-CmVIxDkx.js → route-map-slots.config-DNiRtoRC.js} +1 -1
- package/components/{sankey-diagram-options.config-BH3kpjFs.js → sankey-diagram-options.config-CKjVnYnF.js} +1 -1
- package/components/{sankey-diagram-positioning.config-Dk0siSAo.js → sankey-diagram-positioning.config-CQNdImz0.js} +1 -1
- package/components/{sankey-diagram-positioning.config-_kyrBnJ4.cjs → sankey-diagram-positioning.config-CZDPh7CR.cjs} +1 -1
- package/components/{sankey-diagram-slots.config-lbkF8DWJ.js → sankey-diagram-slots.config-CVD2P6RJ.js} +1 -1
- package/components/{scatter-plot-options.config-Dn6ILlJw.js → scatter-plot-options.config--AfAxaGf.js} +1 -1
- package/components/{scatter-plot-positioning.config-DaYstFV8.cjs → scatter-plot-positioning.config-BPEymo3a.cjs} +1 -1
- package/components/{scatter-plot-positioning.config-440yA7x5.js → scatter-plot-positioning.config-BTOiZ8cF.js} +1 -1
- package/components/{scatter-plot-slots.config-DEFWWj0_.js → scatter-plot-slots.config-D57rd66g.js} +1 -1
- package/components/{search-filter-options.config-DWKVxBc5.js → search-filter-options.config-DQwMOiXm.js} +1 -1
- package/components/{search-filter-slots.config-vyPYIXE7.js → search-filter-slots.config-DQybwP4H.js} +1 -1
- package/components/{set-locale-DKCZkJVL.cjs → set-locale-BCnD4yp_.cjs} +1 -1
- package/components/{set-locale-DB1FMgtK.js → set-locale-CamOWu7o.js} +4 -4
- package/components/{slicer-filter-options.config-C6HPrjIw.js → slicer-filter-options.config-DVE33GEz.js} +1 -1
- package/components/{slicer-filter-positioning.config-B6wPo539.js → slicer-filter-positioning.config-CC7uoU2D.js} +1 -1
- package/components/{slicer-filter-positioning.config-DdfTuXdV.cjs → slicer-filter-positioning.config-CQE4ocpD.cjs} +1 -1
- package/components/{slicer-filter-slots.config-BZWCSkX4.js → slicer-filter-slots.config-Bcz9RsdR.js} +1 -1
- package/components/{slider-filter-options.config-CvqHWJIX.js → slider-filter-options.config-BwaAvOvt.js} +1 -1
- package/components/{slider-filter-slots.config-BY9X2rlz.js → slider-filter-slots.config-Bc8Qk7fb.js} +1 -1
- package/components/slot-menu-BL772rj7.js +1048 -0
- package/components/slot-menu-CCbZ-krJ.cjs +215 -0
- package/components/{speedometer-chart-options.config-wX3KzciD.js → speedometer-chart-options.config-D4-8n5pn.js} +1 -1
- package/components/{speedometer-chart-positioning.config-rI2Jxymu.js → speedometer-chart-positioning.config-ChH-uAdS.js} +1 -1
- package/components/{speedometer-chart-positioning.config-BVYrl1_s.cjs → speedometer-chart-positioning.config-DpBVarun.cjs} +1 -1
- package/components/{speedometer-chart-slots.config-0Tv8EtKT.js → speedometer-chart-slots.config-B4zqf0f_.js} +1 -1
- package/components/{spike-map-options.config-DpgsB_L-.js → spike-map-options.config-CM46vw7B.js} +1 -1
- package/components/{spike-map-positioning.config-CiY2ju4c.js → spike-map-positioning.config-BnEQJ-rD.js} +1 -1
- package/components/{spike-map-positioning.config-2XZLrk9D.cjs → spike-map-positioning.config-DrSoa8Ol.cjs} +1 -1
- package/components/{spike-map-slots.config-C6e0NXiD.js → spike-map-slots.config-BeXzuzh0.js} +1 -1
- package/components/{strip-plot-options.config-BzhxzU-s.js → strip-plot-options.config-BlneYJOy.js} +1 -1
- package/components/{strip-plot-positioning.config-CFQPdgei.js → strip-plot-positioning.config-Be5Desz2.js} +1 -1
- package/components/{strip-plot-positioning.config-CkC8JUwR.cjs → strip-plot-positioning.config-DlkZ1i6m.cjs} +1 -1
- package/components/{strip-plot-slots.config-BjwAuVoh.js → strip-plot-slots.config-BGQIQtMK.js} +1 -1
- package/components/{sunburst-chart-options.config-Ba_H54ip.js → sunburst-chart-options.config-8xopRyBB.js} +1 -1
- package/components/{sunburst-chart-positioning.config-DVt84HYB.cjs → sunburst-chart-positioning.config-D4zzci9s.cjs} +1 -1
- package/components/{sunburst-chart-positioning.config-BHJf7n-T.js → sunburst-chart-positioning.config-RUEkAgKJ.js} +1 -1
- package/components/{sunburst-chart-slots.config-h114Cuzh.js → sunburst-chart-slots.config-BhKeTqTo.js} +1 -1
- package/components/{symbol-map-options.config-DeJyZILi.js → symbol-map-options.config-nJAvVQIh.js} +1 -1
- package/components/{symbol-map-positioning.config-DQK1q4GP.cjs → symbol-map-positioning.config-Dmgmyhv7.cjs} +1 -1
- package/components/{symbol-map-positioning.config-tZp8vwwl.js → symbol-map-positioning.config-JzgtULMk.js} +1 -1
- package/components/{symbol-map-slots.config-BmvI5_VE.js → symbol-map-slots.config-D9E-oBE4.js} +1 -1
- package/components/{text-options.config-BXuZMKTG.js → text-options.config-DCF3IVzO.js} +1 -1
- package/components/{text-slots.config-18Chz73A.js → text-slots.config-C60nJ0OX.js} +1 -1
- package/components/{treemap-chart-options.config-Be-LBEGy.js → treemap-chart-options.config-RFQTphEG.js} +1 -1
- package/components/{treemap-chart-positioning.config-CEYAh7Uc.js → treemap-chart-positioning.config-CSt_vVgw.js} +1 -1
- package/components/{treemap-chart-positioning.config-DQfHJ-ZS.cjs → treemap-chart-positioning.config-CqHJxz2j.cjs} +1 -1
- package/components/{treemap-chart-slots.config-e7ORieH-.js → treemap-chart-slots.config-CZRP7PZH.js} +1 -1
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +2 -2
- package/components/utils/store.js +1 -1
- package/components/utils-DLTDAer5.js +239 -0
- package/components/utils-Ez3j4EOS.cjs +20 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +6 -9
- package/components/{venn-diagram-options.config-D3bEFsYa.js → venn-diagram-options.config-uCJ5dei5.js} +1 -1
- package/components/{venn-diagram-positioning.config-DQa6-GAn.cjs → venn-diagram-positioning.config-CzhNTma3.cjs} +1 -1
- package/components/{venn-diagram-positioning.config-2rUFGTJh.js → venn-diagram-positioning.config-DsPI8qfG.js} +1 -1
- package/components/{venn-diagram-slots.config-Dm-IC6JS.js → venn-diagram-slots.config-DOljH_uI.js} +1 -1
- package/components/{video-options.config-B5aOwGa4.js → video-options.config-DkLrX1gP.js} +1 -1
- package/components/{video-slots.config-D2MtpAGI.js → video-slots.config-CqMIkttE.js} +1 -1
- package/components/{wordcloud-chart-options.config-DntH4Hvg.js → wordcloud-chart-options.config-C2ZILp7a.js} +1 -1
- package/components/{wordcloud-chart-positioning.config-C3Zulr2Q.js → wordcloud-chart-positioning.config-BUE8e4fN.js} +1 -1
- package/components/{wordcloud-chart-positioning.config-DhoAsQP-.cjs → wordcloud-chart-positioning.config-moNJfL1M.cjs} +1 -1
- package/components/{wordcloud-chart-slots.config-CsFBBXDz.js → wordcloud-chart-slots.config-B8s8B47F.js} +1 -1
- package/custom-elements.json +5896 -15935
- package/index.d.ts +0 -24
- package/package.json +3 -128
- package/react/README.md +6 -31
- package/react/esm/index.d.ts +2 -27
- package/react/esm/index.js +2 -102
- package/react/esm/types.d.ts +0 -15
- package/react/index.ts +2 -102
- package/react/luzmo-stub.d.ts +0 -163
- package/react/types.ts +0 -12
- package/react/utils/slot-content/ad-hoc-slot-content.d.ts +7 -0
- package/react/utils/slot-content/render-calculation-label.d.ts +7 -0
- package/react/utils/slot-state/slot-store.d.ts +2 -2
- package/types/slot.types.d.ts +10 -1
- package/types.d.ts +0 -8
- package/utils/slot-content/ad-hoc-slot-content.d.ts +7 -0
- package/utils/slot-content/render-calculation-label.d.ts +7 -0
- package/utils/slot-state/slot-store.d.ts +2 -2
- package/components/ai-chat/ai-chat-events.d.ts +0 -123
- package/components/ai-chat/ai-chat-request.d.ts +0 -11
- package/components/ai-chat/ai-chat.d.ts +0 -279
- package/components/ai-chat/ai-prompt-types.d.ts +0 -94
- package/components/ai-chat/empty-state/ai-chat-empty-state.d.ts +0 -46
- package/components/ai-chat/empty-state/index.d.ts +0 -8
- package/components/ai-chat/empty-state/types.d.ts +0 -14
- package/components/ai-chat/index.d.ts +0 -20
- package/components/ai-chat/index.js +0 -28
- package/components/ai-chat/session/ai-chat-session-controller.d.ts +0 -51
- package/components/ai-chat/session/ai-chat-session-types.d.ts +0 -88
- package/components/ai-chat/session/ai-chat-session.d.ts +0 -91
- package/components/ai-chat/session/index.d.ts +0 -2
- package/components/ai-chat/stream/chunk-extractors.d.ts +0 -27
- package/components/ai-chat/stream/index.d.ts +0 -52
- package/components/ai-chat/stream/progress.d.ts +0 -3
- package/components/ai-chat/stream/registry.d.ts +0 -6
- package/components/ai-chat/stream/stream-processor.d.ts +0 -2
- package/components/ai-chat/stream/transport.d.ts +0 -26
- package/components/ai-chat/stream/types.d.ts +0 -55
- package/components/ai-chat-CXt4wCe0.js +0 -3715
- package/components/ai-chat-Dnf-C838.cjs +0 -258
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +0 -135
- package/components/ai-interaction-textarea/index.cjs +0 -20
- package/components/ai-interaction-textarea/index.d.ts +0 -8
- package/components/ai-interaction-textarea/index.js +0 -28
- package/components/ai-interaction-textarea/types.d.ts +0 -5
- package/components/ai-interaction-textarea-B_-aZ9mc.cjs +0 -68
- package/components/ai-interaction-textarea-DSrZkuh9.js +0 -299
- package/components/base-BCmPH4SF.cjs +0 -20
- package/components/convert-data-field-to-slot-content-BQkSy_8B.cjs +0 -20
- package/components/convert-data-field-to-slot-content-C6IIqU7G.js +0 -53
- package/components/convert-datasets-to-data-fields-B13rl1an.cjs +0 -20
- package/components/convert-datasets-to-data-fields-PmQzeVLG.js +0 -68
- package/components/data-field-CxUItUcs.cjs +0 -54
- package/components/data-field-RzkD37hR.js +0 -121
- package/components/data-field-level/data-field-level.d.ts +0 -40
- package/components/data-field-level/helpers/generate-preview.d.ts +0 -9
- package/components/data-field-level/index.cjs +0 -20
- package/components/data-field-level/index.d.ts +0 -8
- package/components/data-field-level/index.js +0 -28
- package/components/data-field-level-55bJkqFt.cjs +0 -55
- package/components/data-field-panel-C3O77CIF.cjs +0 -87
- package/components/data-fields-select/data-fields-select.d.ts +0 -127
- package/components/data-fields-select/index.cjs +0 -20
- package/components/data-fields-select/index.d.ts +0 -9
- package/components/data-fields-select/index.js +0 -28
- package/components/data-fields-select/types.d.ts +0 -4
- package/components/data-fields-select-D-nSjOep.cjs +0 -41
- package/components/dataset-icon/dataset-icon.d.ts +0 -45
- package/components/dataset-icon/index.cjs +0 -20
- package/components/dataset-icon/index.d.ts +0 -8
- package/components/dataset-icon/index.js +0 -28
- package/components/dataset-icon/types.d.ts +0 -11
- package/components/dataset-icon-BAV0S4sZ.cjs +0 -64
- package/components/dataset-icon-BXEgg_8O.js +0 -125
- package/components/dataset-selector-list/dataset-selector-list.d.ts +0 -102
- package/components/dataset-selector-list/index.cjs +0 -20
- package/components/dataset-selector-list/index.d.ts +0 -8
- package/components/dataset-selector-list/index.js +0 -28
- package/components/dataset-selector-list-BW5v_7_L.cjs +0 -75
- package/components/dataset-selector-list-DwfeaUGu.js +0 -313
- package/components/dataset-selector-row/dataset-selector-row.d.ts +0 -89
- package/components/dataset-selector-row/index.cjs +0 -20
- package/components/dataset-selector-row/index.d.ts +0 -8
- package/components/dataset-selector-row/index.js +0 -28
- package/components/dataset-selector-row-BU7YhT7l.cjs +0 -79
- package/components/dataset-selector-row-CLbx0joD.js +0 -273
- package/components/de-BY1wWZE8.cjs +0 -20
- package/components/decompose-numeric-format-DGJua3rU.cjs +0 -20
- package/components/decompose-numeric-format-DS0j2wa1.js +0 -36
- package/components/decorate-DCJt-2rt.cjs +0 -20
- package/components/display-settings/display-settings.d.ts +0 -98
- package/components/display-settings/index.cjs +0 -20
- package/components/display-settings/index.d.ts +0 -8
- package/components/display-settings/index.js +0 -28
- package/components/display-settings/types.d.ts +0 -9
- package/components/display-settings-COYLimuI.cjs +0 -120
- package/components/display-settings-ajA8j6kr.js +0 -272
- package/components/display-settings-binning/display-settings-binning.d.ts +0 -32
- package/components/display-settings-binning/index.cjs +0 -20
- package/components/display-settings-binning/index.d.ts +0 -8
- package/components/display-settings-binning/index.js +0 -28
- package/components/display-settings-datetime/display-settings-datetime.d.ts +0 -86
- package/components/display-settings-datetime/index.cjs +0 -20
- package/components/display-settings-datetime/index.d.ts +0 -8
- package/components/display-settings-datetime/index.js +0 -28
- package/components/display-settings-datetime-CLRXVpld.cjs +0 -217
- package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +0 -29
- package/components/display-settings-grand-totals/index.cjs +0 -20
- package/components/display-settings-grand-totals/index.d.ts +0 -8
- package/components/display-settings-grand-totals/index.js +0 -28
- package/components/display-settings-grand-totals-DltI_Z-x.cjs +0 -44
- package/components/display-settings-numeric/display-settings-numeric.d.ts +0 -82
- package/components/display-settings-numeric/helpers/constants.d.ts +0 -19
- package/components/display-settings-numeric/index.cjs +0 -20
- package/components/display-settings-numeric/index.d.ts +0 -8
- package/components/display-settings-numeric/index.js +0 -28
- package/components/display-settings-numeric-CurqaTi5.cjs +0 -190
- package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +0 -68
- package/components/display-settings-period-over-period/helpers/constants.d.ts +0 -44
- package/components/display-settings-period-over-period/index.cjs +0 -20
- package/components/display-settings-period-over-period/index.d.ts +0 -8
- package/components/display-settings-period-over-period/index.js +0 -28
- package/components/display-settings-period-over-period-DP2grX4n.cjs +0 -229
- package/components/es-BIaD4kOL.cjs +0 -20
- package/components/filter-expression-picker/filter-expression-picker.d.ts +0 -73
- package/components/filter-expression-picker/index.cjs +0 -20
- package/components/filter-expression-picker/index.d.ts +0 -7
- package/components/filter-expression-picker/index.js +0 -28
- package/components/filter-expression-picker-0eNf_L9I.cjs +0 -38
- package/components/filter-expression-picker-D_buTmzJ.js +0 -425
- package/components/filter-item/filter-item.d.ts +0 -84
- package/components/filter-item/index.cjs +0 -20
- package/components/filter-item/index.d.ts +0 -7
- package/components/filter-item/index.js +0 -28
- package/components/filter-item-DGnRmeaB.cjs +0 -58
- package/components/filter-item-VzEHDr04.js +0 -242
- package/components/filter-parameter-picker/filter-parameter-picker.d.ts +0 -25
- package/components/filter-parameter-picker/index.cjs +0 -22
- package/components/filter-parameter-picker/index.d.ts +0 -7
- package/components/filter-parameter-picker/index.js +0 -58
- package/components/filter-value-picker/filter-value-picker.d.ts +0 -65
- package/components/filter-value-picker/index.cjs +0 -20
- package/components/filter-value-picker/index.d.ts +0 -7
- package/components/filter-value-picker/index.js +0 -28
- package/components/filter-value-picker-C1lDTmKM.cjs +0 -60
- package/components/filter-value-picker-CIblY-PW.js +0 -151
- package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +0 -42
- package/components/filter-value-picker-datetime/index.cjs +0 -20
- package/components/filter-value-picker-datetime/index.d.ts +0 -7
- package/components/filter-value-picker-datetime/index.js +0 -28
- package/components/filter-value-picker-datetime-DQpEf_tv.js +0 -139
- package/components/filter-value-picker-datetime-dCo1_pma.cjs +0 -42
- package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +0 -81
- package/components/filter-value-picker-hierarchy/index.cjs +0 -20
- package/components/filter-value-picker-hierarchy/index.d.ts +0 -7
- package/components/filter-value-picker-hierarchy/index.js +0 -28
- package/components/filter-value-picker-hierarchy-DaZlasgM.cjs +0 -47
- package/components/filter-value-picker-hierarchy-DzHUrpyk.js +0 -232
- package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +0 -82
- package/components/filter-value-picker-numeric/index.cjs +0 -20
- package/components/filter-value-picker-numeric/index.d.ts +0 -7
- package/components/filter-value-picker-numeric/index.js +0 -28
- package/components/filter-value-picker-numeric-BU975w8c.js +0 -219
- package/components/filter-value-picker-numeric-D-dUSGAP.cjs +0 -48
- package/components/filters-BgTnxSKg.js +0 -400
- package/components/filters-Cx1S1-vx.cjs +0 -150
- package/components/formatter-8m-wrIM-.cjs +0 -20
- package/components/formula-D7E8UieE.cjs +0 -45
- package/components/formula-codemirror/formula-codemirror.d.ts +0 -79
- package/components/formula-codemirror/index.d.ts +0 -7
- package/components/formula-codemirror/pills/formula-aggregation/formula-aggregation.d.ts +0 -125
- package/components/formula-codemirror/pills/formula-aggregation/index.d.ts +0 -7
- package/components/formula-codemirror/pills/formula-empty-argument-pill/formula-empty-argument-pill.d.ts +0 -28
- package/components/formula-codemirror/pills/formula-empty-argument-pill/index.d.ts +0 -7
- package/components/formula-codemirror/pills/formula-include-exclude-panel.d.ts +0 -38
- package/components/formula-display-store-DjjsQ5mW.cjs +0 -20
- package/components/formula-draggable-field/formula-draggable-field.d.ts +0 -53
- package/components/formula-draggable-field/index.d.ts +0 -8
- package/components/formula-draggable-field/types.d.ts +0 -24
- package/components/formula-editor-4PoZ3BlC.cjs +0 -218
- package/components/formula-field/formula-field.d.ts +0 -20
- package/components/formula-field/index.cjs +0 -20
- package/components/formula-field/index.d.ts +0 -7
- package/components/formula-field/index.js +0 -28
- package/components/formula-field-DXdxspyY.js +0 -40
- package/components/formula-field-DkKXMIMg.cjs +0 -20
- package/components/formula-input-base-Bz_XVZcs.cjs +0 -49
- package/components/formula-input-base-Dok5ujvH.js +0 -236
- package/components/fr-CHG2Tcby.cjs +0 -20
- package/components/get-dataset-name-Dwuh7DWE.cjs +0 -20
- package/components/get-dataset-name-SfDNjsuR.js +0 -27
- package/components/groupings-BNrLlXIB.cjs +0 -20
- package/components/groupings-okwLJKoG.js +0 -52
- package/components/interactive-viz-item/helpers/chart-helpers.d.ts +0 -7
- package/components/interactive-viz-item/index.cjs +0 -20
- package/components/interactive-viz-item/index.d.ts +0 -10
- package/components/interactive-viz-item/index.js +0 -28
- package/components/interactive-viz-item/interactive-viz-item.d.ts +0 -96
- package/components/interactive-viz-item/types.d.ts +0 -117
- package/components/interactive-viz-item-63pap_oz.cjs +0 -247
- package/components/interactive-viz-item-QVji6wbp.js +0 -693
- package/components/item-menu/item-list/item-list.d.ts +0 -37
- package/components/item-option-action-button-group-jPUDKP3M.cjs +0 -53
- package/components/item-option-base/item-option-base.d.ts +0 -23
- package/components/item-option-base-Bk9L8Ie7.cjs +0 -56
- package/components/item-option-color-palette-picker-kch0Ep_5.cjs +0 -40
- package/components/item-option-color-range-Cj6sZ72F.cjs +0 -98
- package/components/item-option-iQM2pOGK.cjs +0 -252
- package/components/item-option-position-picker-Csc4Y6dN.cjs +0 -32
- package/components/item-option-positions-number-field-DBV6Yekk.cjs +0 -49
- package/components/item-slot-drop-D8KI2kny.cjs +0 -91
- package/components/item-slot-drop-panel-Crw-ktDj.cjs +0 -57
- package/components/item-slot-picker-BgQAviso.cjs +0 -158
- package/components/item-slot-picker-panel-C26kZ4zE.cjs +0 -81
- package/components/load-data-fields-for-datasets-BVGaku2J.cjs +0 -20
- package/components/load-data-fields-for-datasets-DeXLqWt4.js +0 -42
- package/components/localized-mixin-BYWQe1fg.js +0 -45
- package/components/localized-mixin-DrK3QZNa.cjs +0 -20
- package/components/nl-PxN5EqzT.cjs +0 -20
- package/components/period-over-period-condition.const-BZ7j5Z5t.js +0 -29
- package/components/period-over-period-condition.const-C1NZ9Bkp.cjs +0 -20
- package/components/slot-menu/index.cjs +0 -20
- package/components/slot-menu/index.d.ts +0 -10
- package/components/slot-menu/index.js +0 -28
- package/components/slot-menu/slot-menu.d.ts +0 -143
- package/components/slot-menu/types.d.ts +0 -24
- package/components/slot-menu-BBnibMJU.cjs +0 -64
- package/components/slot-menu-list/index.cjs +0 -20
- package/components/slot-menu-list/index.d.ts +0 -8
- package/components/slot-menu-list/index.js +0 -28
- package/components/slot-menu-list/slot-menu-list.d.ts +0 -42
- package/components/slot-menu-list-D193fsQX.cjs +0 -38
- package/components/slot-menu-list-gKDiWsHB.js +0 -325
- package/components/slot-menu-w7sla2N0.js +0 -400
- package/components/slots-config-DIBoffEb.js +0 -77
- package/components/slots-config-YdyClHLc.cjs +0 -20
- package/components/utils-CJf8VNzX.cjs +0 -20
- package/components/utils-Ci1YA9yB.js +0 -352
- package/components/viz-item-menu/index.cjs +0 -20
- package/components/viz-item-menu/index.d.ts +0 -8
- package/components/viz-item-menu/index.js +0 -28
- package/components/viz-item-menu/types.d.ts +0 -9
- package/components/viz-item-menu/viz-item-menu.d.ts +0 -75
- package/components/viz-item-menu-B4BJBNEq.js +0 -170
- package/components/viz-item-menu-DD8ndROu.cjs +0 -55
- package/react/components/ai-chat/empty-state/index.ts +0 -1
- package/react/components/ai-chat/empty-state/types.ts +0 -16
- package/react/components/ai-chat/stream/index.ts +0 -1
- package/react/components/ai-chat/stream/types.ts +0 -60
- package/react/components/ai-chat.component.ts +0 -42
- package/react/components/ai-interaction-textarea/index.ts +0 -1
- package/react/components/ai-interaction-textarea/types.ts +0 -6
- package/react/components/ai-interaction-textarea.component.ts +0 -30
- package/react/components/data-field-level.component.ts +0 -30
- package/react/components/data-fields-select/index.ts +0 -1
- package/react/components/data-fields-select/types.ts +0 -5
- package/react/components/data-fields-select.component.ts +0 -27
- package/react/components/dataset-icon/index.ts +0 -1
- package/react/components/dataset-icon/types.ts +0 -8
- package/react/components/dataset-icon.component.ts +0 -22
- package/react/components/dataset-selector-list.component.ts +0 -27
- package/react/components/dataset-selector-row.component.ts +0 -30
- package/react/components/display-settings/index.ts +0 -1
- package/react/components/display-settings/types.ts +0 -12
- package/react/components/display-settings-binning.component.ts +0 -27
- package/react/components/display-settings-datetime.component.ts +0 -27
- package/react/components/display-settings-grand-totals.component.ts +0 -27
- package/react/components/display-settings-numeric.component.ts +0 -27
- package/react/components/display-settings-period-over-period.component.ts +0 -27
- package/react/components/display-settings.component.ts +0 -33
- package/react/components/filter-expression-picker.component.ts +0 -27
- package/react/components/filter-item.component.ts +0 -27
- package/react/components/filter-parameter-picker.component.ts +0 -22
- package/react/components/filter-value-picker-datetime.component.ts +0 -27
- package/react/components/filter-value-picker-hierarchy.component.ts +0 -27
- package/react/components/filter-value-picker-numeric.component.ts +0 -27
- package/react/components/filter-value-picker.component.ts +0 -27
- package/react/components/formula-draggable-field/index.ts +0 -1
- package/react/components/formula-draggable-field/types.ts +0 -26
- package/react/components/formula-field.component.ts +0 -30
- package/react/components/interactive-viz-item/index.ts +0 -1
- package/react/components/interactive-viz-item/types.ts +0 -122
- package/react/components/interactive-viz-item.component.ts +0 -33
- package/react/components/slot-menu/index.ts +0 -1
- package/react/components/slot-menu/types.ts +0 -29
- package/react/components/slot-menu-list.component.ts +0 -27
- package/react/components/slot-menu.component.ts +0 -42
- package/react/components/viz-item-menu/index.ts +0 -1
- package/react/components/viz-item-menu/types.ts +0 -11
- package/react/components/viz-item-menu.component.ts +0 -33
- package/react/esm/components/ai-chat/empty-state/index.d.ts +0 -1
- package/react/esm/components/ai-chat/empty-state/index.js +0 -1
- package/react/esm/components/ai-chat/empty-state/types.d.ts +0 -14
- package/react/esm/components/ai-chat/stream/index.d.ts +0 -1
- package/react/esm/components/ai-chat/stream/index.js +0 -1
- package/react/esm/components/ai-chat/stream/types.d.ts +0 -55
- package/react/esm/components/ai-chat.component.d.ts +0 -22
- package/react/esm/components/ai-chat.component.js +0 -27
- package/react/esm/components/ai-interaction-textarea/index.d.ts +0 -1
- package/react/esm/components/ai-interaction-textarea/index.js +0 -1
- package/react/esm/components/ai-interaction-textarea/types.d.ts +0 -5
- package/react/esm/components/ai-interaction-textarea.component.d.ts +0 -14
- package/react/esm/components/ai-interaction-textarea.component.js +0 -19
- package/react/esm/components/data-field-level.component.d.ts +0 -14
- package/react/esm/components/data-field-level.component.js +0 -19
- package/react/esm/components/data-fields-select/index.d.ts +0 -1
- package/react/esm/components/data-fields-select/index.js +0 -1
- package/react/esm/components/data-fields-select/types.d.ts +0 -4
- package/react/esm/components/data-fields-select.component.d.ts +0 -12
- package/react/esm/components/data-fields-select.component.js +0 -17
- package/react/esm/components/dataset-icon/index.d.ts +0 -1
- package/react/esm/components/dataset-icon/index.js +0 -1
- package/react/esm/components/dataset-icon/types.d.ts +0 -11
- package/react/esm/components/dataset-icon/types.js +0 -1
- package/react/esm/components/dataset-icon.component.d.ts +0 -8
- package/react/esm/components/dataset-icon.component.js +0 -13
- package/react/esm/components/dataset-selector-list.component.d.ts +0 -12
- package/react/esm/components/dataset-selector-list.component.js +0 -17
- package/react/esm/components/dataset-selector-row.component.d.ts +0 -14
- package/react/esm/components/dataset-selector-row.component.js +0 -19
- package/react/esm/components/display-settings/index.d.ts +0 -1
- package/react/esm/components/display-settings/index.js +0 -1
- package/react/esm/components/display-settings/types.d.ts +0 -9
- package/react/esm/components/display-settings/types.js +0 -1
- package/react/esm/components/display-settings-binning.component.d.ts +0 -12
- package/react/esm/components/display-settings-binning.component.js +0 -17
- package/react/esm/components/display-settings-datetime.component.d.ts +0 -12
- package/react/esm/components/display-settings-datetime.component.js +0 -17
- package/react/esm/components/display-settings-grand-totals.component.d.ts +0 -12
- package/react/esm/components/display-settings-grand-totals.component.js +0 -17
- package/react/esm/components/display-settings-numeric.component.d.ts +0 -12
- package/react/esm/components/display-settings-numeric.component.js +0 -17
- package/react/esm/components/display-settings-period-over-period.component.d.ts +0 -12
- package/react/esm/components/display-settings-period-over-period.component.js +0 -17
- package/react/esm/components/display-settings.component.d.ts +0 -16
- package/react/esm/components/display-settings.component.js +0 -21
- package/react/esm/components/filter-expression-picker.component.d.ts +0 -12
- package/react/esm/components/filter-expression-picker.component.js +0 -17
- package/react/esm/components/filter-item.component.d.ts +0 -12
- package/react/esm/components/filter-item.component.js +0 -17
- package/react/esm/components/filter-parameter-picker.component.d.ts +0 -8
- package/react/esm/components/filter-parameter-picker.component.js +0 -13
- package/react/esm/components/filter-value-picker-datetime.component.d.ts +0 -12
- package/react/esm/components/filter-value-picker-datetime.component.js +0 -17
- package/react/esm/components/filter-value-picker-hierarchy.component.d.ts +0 -12
- package/react/esm/components/filter-value-picker-hierarchy.component.js +0 -17
- package/react/esm/components/filter-value-picker-numeric.component.d.ts +0 -12
- package/react/esm/components/filter-value-picker-numeric.component.js +0 -17
- package/react/esm/components/filter-value-picker.component.d.ts +0 -12
- package/react/esm/components/filter-value-picker.component.js +0 -17
- package/react/esm/components/formula-draggable-field/index.d.ts +0 -1
- package/react/esm/components/formula-draggable-field/index.js +0 -1
- package/react/esm/components/formula-draggable-field/types.d.ts +0 -24
- package/react/esm/components/formula-draggable-field/types.js +0 -1
- package/react/esm/components/formula-field.component.d.ts +0 -14
- package/react/esm/components/formula-field.component.js +0 -19
- package/react/esm/components/interactive-viz-item/index.d.ts +0 -1
- package/react/esm/components/interactive-viz-item/index.js +0 -1
- package/react/esm/components/interactive-viz-item/types.d.ts +0 -117
- package/react/esm/components/interactive-viz-item/types.js +0 -16
- package/react/esm/components/interactive-viz-item.component.d.ts +0 -16
- package/react/esm/components/interactive-viz-item.component.js +0 -21
- package/react/esm/components/slot-menu/index.d.ts +0 -1
- package/react/esm/components/slot-menu/index.js +0 -1
- package/react/esm/components/slot-menu/types.d.ts +0 -24
- package/react/esm/components/slot-menu/types.js +0 -1
- package/react/esm/components/slot-menu-list.component.d.ts +0 -12
- package/react/esm/components/slot-menu-list.component.js +0 -17
- package/react/esm/components/slot-menu.component.d.ts +0 -22
- package/react/esm/components/slot-menu.component.js +0 -27
- package/react/esm/components/viz-item-menu/index.d.ts +0 -1
- package/react/esm/components/viz-item-menu/index.js +0 -1
- package/react/esm/components/viz-item-menu/types.d.ts +0 -9
- package/react/esm/components/viz-item-menu/types.js +0 -1
- package/react/esm/components/viz-item-menu.component.d.ts +0 -16
- package/react/esm/components/viz-item-menu.component.js +0 -21
- package/storybook/inject-global-vars.d.ts +0 -1
- package/storybook/register-components.d.ts +0 -51
- package/types/ai-chat.types.d.ts +0 -63
- package/types/data-field-events.types.d.ts +0 -7
- /package/react/{esm/components/ai-chat/empty-state/types.js → utils/formula/config/tests/build-datasets.test.d.ts} +0 -0
- /package/react/{esm/components/ai-chat/stream/types.js → utils/slot-content/tests/ad-hoc-slot-content.test.d.ts} +0 -0
- /package/{react/esm/components/ai-interaction-textarea/types.js → utils/formula/config/tests/build-datasets.test.d.ts} +0 -0
- /package/{react/esm/components/data-fields-select/types.js → utils/slot-content/tests/ad-hoc-slot-content.test.d.ts} +0 -0
|
@@ -17,39 +17,68 @@
|
|
|
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 { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import {
|
|
24
|
-
import { property as
|
|
25
|
-
import { msg as
|
|
20
|
+
import { i as e, n as t } from "./base-p2I4mVSW.js";
|
|
21
|
+
import { n, t as r } from "./localized-mixin-CBMYHOPv.js";
|
|
22
|
+
import { t as i } from "./load-data-fields-for-datasets-CU75T9Az.js";
|
|
23
|
+
import { luzmoScopeFixed as a, luzmoScopeFull as o, luzmoScopeGrouped as s } from "@luzmo/icons";
|
|
24
|
+
import { property as c, state as l } from "lit/decorators.js";
|
|
25
|
+
import { msg as u } from "@lit/localize";
|
|
26
26
|
//#region src/types/formula.types.ts
|
|
27
|
-
var
|
|
27
|
+
var d = /* @__PURE__ */ function(e) {
|
|
28
28
|
return e.GROUP = "", e.GROUPFULL = "GROUPFULL", e.GROUPINEX = "GROUPINEX", e;
|
|
29
|
-
}({}),
|
|
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");
|
|
30
59
|
//#endregion
|
|
31
60
|
//#region src/utils/formula/config/expression-helpers.ts
|
|
32
|
-
function
|
|
61
|
+
function S() {
|
|
33
62
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
|
|
34
63
|
let t = Math.random() * 16 | 0;
|
|
35
64
|
return (e === "x" ? t : t & 3 | 8).toString(16);
|
|
36
65
|
});
|
|
37
66
|
}
|
|
38
|
-
function
|
|
39
|
-
return `##EMPTYARG-${
|
|
67
|
+
function C() {
|
|
68
|
+
return `##EMPTYARG-${S()}##`;
|
|
40
69
|
}
|
|
41
|
-
function
|
|
70
|
+
function w(e) {
|
|
42
71
|
return `##AGGR-${e}##`;
|
|
43
72
|
}
|
|
44
|
-
function
|
|
73
|
+
function T(e, t) {
|
|
45
74
|
let { aggregationFunction: n, content: r, grouping: i, includedColumns: a, excludedColumns: o } = e ?? {}, s = `${n}(${t[n]?.arity > 0 ? r : ""})`;
|
|
46
75
|
switch (i) {
|
|
47
|
-
case
|
|
48
|
-
case
|
|
76
|
+
case d.GROUPFULL: return `GROUPFULL(${s})`;
|
|
77
|
+
case d.GROUPINEX: return `GROUPINEX(${s}, [${a?.map((e) => `{${e}}`).join(", ") || ""}], [${o?.map((e) => `{${e}}`).join(", ") || ""}])`;
|
|
49
78
|
default: return s;
|
|
50
79
|
}
|
|
51
80
|
}
|
|
52
|
-
function
|
|
81
|
+
function E(e) {
|
|
53
82
|
let t = e.split(""), n = null;
|
|
54
83
|
for (let e = 0; e < t.length; e++) {
|
|
55
84
|
let r = t[e];
|
|
@@ -57,7 +86,7 @@ function x(e) {
|
|
|
57
86
|
}
|
|
58
87
|
return t.join("");
|
|
59
88
|
}
|
|
60
|
-
function
|
|
89
|
+
function D(e, t = 0) {
|
|
61
90
|
let n = 0, r = -1, i = null;
|
|
62
91
|
for (let a = t, o = e.length; a < o; a++) {
|
|
63
92
|
let t = e[a];
|
|
@@ -77,14 +106,14 @@ function S(e, t = 0) {
|
|
|
77
106
|
}
|
|
78
107
|
return r;
|
|
79
108
|
}
|
|
80
|
-
function
|
|
81
|
-
let t = e.match(
|
|
109
|
+
function O(e) {
|
|
110
|
+
let t = e.match(b), n = t?.[0], r = t?.[1];
|
|
82
111
|
return {
|
|
83
|
-
includedColumns: n?.match(
|
|
84
|
-
excludedColumns: r?.match(
|
|
112
|
+
includedColumns: n?.match(x)?.map((e) => e.slice(1, -1)) ?? [],
|
|
113
|
+
excludedColumns: r?.match(x)?.map((e) => e.slice(1, -1)) ?? []
|
|
85
114
|
};
|
|
86
115
|
}
|
|
87
|
-
function
|
|
116
|
+
function k(e = "light") {
|
|
88
117
|
return !e || e === "light" ? [
|
|
89
118
|
"#0E89E0",
|
|
90
119
|
"#F45000",
|
|
@@ -101,14 +130,18 @@ function w(e = "light") {
|
|
|
101
130
|
}
|
|
102
131
|
//#endregion
|
|
103
132
|
//#region src/utils/formula/config/build-datasets.ts
|
|
104
|
-
function
|
|
105
|
-
let t =
|
|
133
|
+
function A(e) {
|
|
134
|
+
let t = k("light"), n = e.length > 1;
|
|
106
135
|
return e.map((e, r) => {
|
|
107
136
|
let i = [];
|
|
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) =>
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
137
|
+
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) => {
|
|
138
|
+
let n = "columnId" in t && typeof t.columnId == "string" ? t.columnId : "id" in t && typeof t.id == "string" ? t.id : void 0;
|
|
139
|
+
if (n) return {
|
|
140
|
+
...t,
|
|
141
|
+
columnId: n,
|
|
142
|
+
datasetId: e.id
|
|
143
|
+
};
|
|
144
|
+
}).filter((e) => !!e)), {
|
|
112
145
|
id: e.id,
|
|
113
146
|
name: e.name,
|
|
114
147
|
description: "description" in e ? e.description : void 0,
|
|
@@ -119,30 +152,30 @@ function T(e) {
|
|
|
119
152
|
}
|
|
120
153
|
//#endregion
|
|
121
154
|
//#region src/utils/formula/load-formula-codemirror.ts
|
|
122
|
-
var
|
|
123
|
-
async function
|
|
124
|
-
if (!
|
|
125
|
-
|
|
155
|
+
var j = !1, M;
|
|
156
|
+
async function N() {
|
|
157
|
+
if (!j) {
|
|
158
|
+
M ??= import("./formula-codemirror-B6ktT1Dm.js");
|
|
126
159
|
try {
|
|
127
|
-
await
|
|
160
|
+
await M, j = !0;
|
|
128
161
|
} catch (e) {
|
|
129
|
-
throw
|
|
162
|
+
throw M = void 0, e;
|
|
130
163
|
}
|
|
131
164
|
}
|
|
132
165
|
}
|
|
133
|
-
function
|
|
134
|
-
return
|
|
166
|
+
function P() {
|
|
167
|
+
return j;
|
|
135
168
|
}
|
|
136
169
|
//#endregion
|
|
137
170
|
//#region src/utils/formula/base/formula-base.ts
|
|
138
|
-
var
|
|
171
|
+
var F = class extends r(t(e, { validSizes: [
|
|
139
172
|
"s",
|
|
140
173
|
"m",
|
|
141
174
|
"l",
|
|
142
175
|
"xl"
|
|
143
176
|
] })) {
|
|
144
177
|
constructor() {
|
|
145
|
-
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 =
|
|
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 = P(), this._rootContent = "", this._lastEmittedExpression = null, this._applyingExternalExpression = !1, this._handleWidgetsChanged = () => {
|
|
146
179
|
this._recomputeExpression();
|
|
147
180
|
}, this._store = this._createStore();
|
|
148
181
|
}
|
|
@@ -165,7 +198,7 @@ var A = class extends r(t(e, { validSizes: [
|
|
|
165
198
|
return this.renderRoot?.querySelector("luzmo-formula-codemirror");
|
|
166
199
|
}
|
|
167
200
|
async _ensureCodeMirrorLoaded() {
|
|
168
|
-
this._codeMirrorLoaded ||= (await
|
|
201
|
+
this._codeMirrorLoaded ||= (await N(), !0);
|
|
169
202
|
}
|
|
170
203
|
willUpdate(e) {
|
|
171
204
|
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();
|
|
@@ -176,7 +209,7 @@ var A = class extends r(t(e, { validSizes: [
|
|
|
176
209
|
return;
|
|
177
210
|
}
|
|
178
211
|
if (this.datasetsDataFields.length > 0) {
|
|
179
|
-
this._datasets =
|
|
212
|
+
this._datasets = A(this.datasetsDataFields), this._store.datasets = this._datasets, this._setLoading(!1), this._rebuildAutoCompletion();
|
|
180
213
|
return;
|
|
181
214
|
}
|
|
182
215
|
if (this.datasetIds.length > 0) {
|
|
@@ -187,7 +220,7 @@ var A = class extends r(t(e, { validSizes: [
|
|
|
187
220
|
authKey: this.authKey,
|
|
188
221
|
authToken: this.authToken
|
|
189
222
|
} });
|
|
190
|
-
this._datasets =
|
|
223
|
+
this._datasets = A(e), this._store.datasets = this._datasets, this._rebuildAutoCompletion();
|
|
191
224
|
} catch (e) {
|
|
192
225
|
console.warn(`[${this.localName}] Failed to load datasets:`, e), this.dispatchEvent(new CustomEvent("luzmo-datasets-error", {
|
|
193
226
|
bubbles: !0,
|
|
@@ -237,36 +270,36 @@ var A = class extends r(t(e, { validSizes: [
|
|
|
237
270
|
}
|
|
238
271
|
_setLoading(e) {}
|
|
239
272
|
};
|
|
240
|
-
n([
|
|
273
|
+
n([c({ type: String })], F.prototype, "expression", void 0), n([c({ attribute: !1 })], F.prototype, "datasetsDataFields", void 0), n([c({
|
|
241
274
|
type: Array,
|
|
242
275
|
attribute: "dataset-ids"
|
|
243
|
-
})],
|
|
276
|
+
})], F.prototype, "datasetIds", void 0), n([c({
|
|
244
277
|
type: String,
|
|
245
278
|
attribute: "api-url"
|
|
246
|
-
})],
|
|
279
|
+
})], F.prototype, "apiUrl", void 0), n([c({
|
|
247
280
|
type: String,
|
|
248
281
|
attribute: "auth-key"
|
|
249
|
-
})],
|
|
282
|
+
})], F.prototype, "authKey", void 0), n([c({
|
|
250
283
|
type: String,
|
|
251
284
|
attribute: "auth-token"
|
|
252
|
-
})],
|
|
285
|
+
})], F.prototype, "authToken", void 0), n([c({
|
|
253
286
|
type: Boolean,
|
|
254
287
|
attribute: "show-aggregations",
|
|
255
288
|
reflect: !0
|
|
256
|
-
})],
|
|
289
|
+
})], F.prototype, "showAggregations", void 0), n([c({
|
|
257
290
|
type: String,
|
|
258
291
|
attribute: "content-language",
|
|
259
292
|
reflect: !0
|
|
260
|
-
})],
|
|
293
|
+
})], F.prototype, "contentLanguage", void 0), n([c({
|
|
261
294
|
type: Boolean,
|
|
262
295
|
attribute: "multi-stage-aggregation"
|
|
263
|
-
})],
|
|
296
|
+
})], F.prototype, "multiStageAggregation", void 0), n([c({
|
|
264
297
|
type: Boolean,
|
|
265
298
|
attribute: "nested-aggregation"
|
|
266
|
-
})],
|
|
299
|
+
})], F.prototype, "nestedAggregation", void 0), n([l()], F.prototype, "_datasets", void 0), n([l()], F.prototype, "_codeMirrorLoaded", void 0);
|
|
267
300
|
//#endregion
|
|
268
301
|
//#region src/utils/formula/config/aggregations.ts
|
|
269
|
-
var
|
|
302
|
+
var I = [
|
|
270
303
|
"AVG",
|
|
271
304
|
"COUNT",
|
|
272
305
|
"COUNTD",
|
|
@@ -275,53 +308,53 @@ var j = [
|
|
|
275
308
|
"MIN",
|
|
276
309
|
"SUM"
|
|
277
310
|
];
|
|
278
|
-
function
|
|
311
|
+
function L() {
|
|
279
312
|
return {
|
|
280
313
|
AVG: {
|
|
281
314
|
arity: 1,
|
|
282
|
-
label: () =>
|
|
283
|
-
description: () =>
|
|
315
|
+
label: () => u("Average", { desc: "Aggregation label" }),
|
|
316
|
+
description: () => u("Calculates the average of the values.", { desc: "Formula aggregation description for AVG" }),
|
|
284
317
|
example: () => "AVG(⟨numeric⟩ Order Value)",
|
|
285
318
|
exampleHasIcons: !0
|
|
286
319
|
},
|
|
287
320
|
COUNT: {
|
|
288
321
|
arity: 1,
|
|
289
|
-
label: () =>
|
|
290
|
-
description: () =>
|
|
322
|
+
label: () => u("Count", { desc: "Aggregation label" }),
|
|
323
|
+
description: () => u("Counts the number of non-empty values.", { desc: "Formula aggregation description for COUNT" }),
|
|
291
324
|
example: () => "COUNT(⟨numeric⟩ Order Number)",
|
|
292
325
|
exampleHasIcons: !0
|
|
293
326
|
},
|
|
294
327
|
COUNTD: {
|
|
295
328
|
arity: 1,
|
|
296
|
-
label: () =>
|
|
297
|
-
description: () =>
|
|
329
|
+
label: () => u("Count distinct", { desc: "Aggregation label" }),
|
|
330
|
+
description: () => u("Counts the number of distinct values.", { desc: "Formula aggregation description for COUNTD" }),
|
|
298
331
|
example: () => "COUNTD(⟨numeric⟩ Customer ID)",
|
|
299
332
|
exampleHasIcons: !0
|
|
300
333
|
},
|
|
301
334
|
COUNTR: {
|
|
302
335
|
arity: 0,
|
|
303
|
-
label: () =>
|
|
304
|
-
description: () =>
|
|
336
|
+
label: () => u("Count rows", { desc: "Aggregation label" }),
|
|
337
|
+
description: () => u("Counts the number of rows.", { desc: "Formula aggregation description for COUNTR" }),
|
|
305
338
|
example: () => "COUNTR()"
|
|
306
339
|
},
|
|
307
340
|
MAX: {
|
|
308
341
|
arity: 1,
|
|
309
|
-
label: () =>
|
|
310
|
-
description: () =>
|
|
342
|
+
label: () => u("Maximum", { desc: "Aggregation label" }),
|
|
343
|
+
description: () => u("Returns the largest value.", { desc: "Formula aggregation description for MAX" }),
|
|
311
344
|
example: () => "MAX(⟨numeric⟩ Order Value)",
|
|
312
345
|
exampleHasIcons: !0
|
|
313
346
|
},
|
|
314
347
|
MIN: {
|
|
315
348
|
arity: 1,
|
|
316
|
-
label: () =>
|
|
317
|
-
description: () =>
|
|
349
|
+
label: () => u("Minimum", { desc: "Aggregation label" }),
|
|
350
|
+
description: () => u("Returns the smallest value.", { desc: "Formula aggregation description for MIN" }),
|
|
318
351
|
example: () => "MIN(⟨numeric⟩ Order Value)",
|
|
319
352
|
exampleHasIcons: !0
|
|
320
353
|
},
|
|
321
354
|
SUM: {
|
|
322
355
|
arity: 1,
|
|
323
|
-
label: () =>
|
|
324
|
-
description: () =>
|
|
356
|
+
label: () => u("Sum", { desc: "Aggregation label" }),
|
|
357
|
+
description: () => u("Adds up all the values.", { desc: "Formula aggregation description for SUM" }),
|
|
325
358
|
example: () => "SUM(⟨numeric⟩ Quantity Sold)",
|
|
326
359
|
exampleHasIcons: !0
|
|
327
360
|
}
|
|
@@ -329,11 +362,11 @@ function M() {
|
|
|
329
362
|
}
|
|
330
363
|
//#endregion
|
|
331
364
|
//#region src/utils/formula/config/functions.ts
|
|
332
|
-
function
|
|
365
|
+
function R() {
|
|
333
366
|
return [
|
|
334
367
|
{
|
|
335
368
|
key: "string",
|
|
336
|
-
title: () =>
|
|
369
|
+
title: () => u("String", { desc: "Formula function category title for string functions" }),
|
|
337
370
|
functions: [
|
|
338
371
|
"||",
|
|
339
372
|
"LENGTH",
|
|
@@ -350,7 +383,7 @@ function N() {
|
|
|
350
383
|
},
|
|
351
384
|
{
|
|
352
385
|
key: "dateTime",
|
|
353
|
-
title: () =>
|
|
386
|
+
title: () => u("Date and time", { desc: "Formula function category title for date and time functions" }),
|
|
354
387
|
functions: [
|
|
355
388
|
"NOW",
|
|
356
389
|
"DATE_ADD",
|
|
@@ -381,7 +414,7 @@ function N() {
|
|
|
381
414
|
},
|
|
382
415
|
{
|
|
383
416
|
key: "mathematical",
|
|
384
|
-
title: () =>
|
|
417
|
+
title: () => u("Mathematical", { desc: "Formula function category title for mathematical functions" }),
|
|
385
418
|
functions: [
|
|
386
419
|
"+",
|
|
387
420
|
"-",
|
|
@@ -404,17 +437,17 @@ function N() {
|
|
|
404
437
|
},
|
|
405
438
|
{
|
|
406
439
|
key: "conditional",
|
|
407
|
-
title: () =>
|
|
440
|
+
title: () => u("Conditional", { desc: "Formula function category title for conditional functions" }),
|
|
408
441
|
functions: ["IF", "COALESCE"]
|
|
409
442
|
},
|
|
410
443
|
{
|
|
411
444
|
key: "conversion",
|
|
412
|
-
title: () =>
|
|
445
|
+
title: () => u("Conversion", { desc: "Formula function category title for conversion functions" }),
|
|
413
446
|
functions: ["CAST"]
|
|
414
447
|
},
|
|
415
448
|
{
|
|
416
449
|
key: "comparison",
|
|
417
|
-
title: () =>
|
|
450
|
+
title: () => u("Comparison", { desc: "Formula function category title for comparison functions" }),
|
|
418
451
|
functions: [
|
|
419
452
|
">",
|
|
420
453
|
"<",
|
|
@@ -426,7 +459,7 @@ function N() {
|
|
|
426
459
|
},
|
|
427
460
|
{
|
|
428
461
|
key: "logical",
|
|
429
|
-
title: () =>
|
|
462
|
+
title: () => u("Logical", { desc: "Formula function category title for logical functions" }),
|
|
430
463
|
functions: [
|
|
431
464
|
"AND",
|
|
432
465
|
"OR",
|
|
@@ -435,7 +468,7 @@ function N() {
|
|
|
435
468
|
},
|
|
436
469
|
{
|
|
437
470
|
key: "circular",
|
|
438
|
-
title: () =>
|
|
471
|
+
title: () => u("Circular", { desc: "Formula function category title for circular functions" }),
|
|
439
472
|
functions: [
|
|
440
473
|
"SIN",
|
|
441
474
|
"COS",
|
|
@@ -450,571 +483,571 @@ function N() {
|
|
|
450
483
|
},
|
|
451
484
|
{
|
|
452
485
|
key: "spatial",
|
|
453
|
-
title: () =>
|
|
486
|
+
title: () => u("Spatial", { desc: "Formula function category title for spatial functions" }),
|
|
454
487
|
functions: ["COORDS"]
|
|
455
488
|
}
|
|
456
489
|
];
|
|
457
490
|
}
|
|
458
|
-
function
|
|
491
|
+
function z() {
|
|
459
492
|
let e = 2026;
|
|
460
493
|
return {
|
|
461
494
|
"+": {
|
|
462
495
|
type: "infix",
|
|
463
496
|
arity: 2,
|
|
464
|
-
label: () =>
|
|
465
|
-
description: () =>
|
|
497
|
+
label: () => u("Addition", { desc: "Formula function label for addition" }),
|
|
498
|
+
description: () => u("Adds two numeric values.", { desc: "Formula function description for addition operator" }),
|
|
466
499
|
example: () => "42.0 + ⟨numeric⟩ Average burrito price",
|
|
467
500
|
exampleHasIcons: !0
|
|
468
501
|
},
|
|
469
502
|
"-": {
|
|
470
503
|
type: "infix",
|
|
471
504
|
arity: 2,
|
|
472
|
-
label: () =>
|
|
473
|
-
description: () =>
|
|
505
|
+
label: () => u("Difference", { desc: "Formula function label for subtraction" }),
|
|
506
|
+
description: () => u("Subtracts the second value from the first value.", { desc: "Formula function description for subtraction operator" }),
|
|
474
507
|
example: () => "⟨numeric⟩ Burrito weight - 42",
|
|
475
508
|
exampleHasIcons: !0
|
|
476
509
|
},
|
|
477
510
|
"*": {
|
|
478
511
|
type: "infix",
|
|
479
512
|
arity: 2,
|
|
480
|
-
label: () =>
|
|
481
|
-
description: () =>
|
|
513
|
+
label: () => u("Multiplication", { desc: "Formula function label for multiplication" }),
|
|
514
|
+
description: () => u("Multiplies two numeric values.", { desc: "Formula function description for multiplication operator" }),
|
|
482
515
|
example: () => "⟨numeric⟩ Number of burritos * 2",
|
|
483
516
|
exampleHasIcons: !0
|
|
484
517
|
},
|
|
485
518
|
"/": {
|
|
486
519
|
type: "infix",
|
|
487
520
|
arity: 2,
|
|
488
|
-
label: () =>
|
|
489
|
-
description: () =>
|
|
521
|
+
label: () => u("Division", { desc: "Formula function label for division" }),
|
|
522
|
+
description: () => u("Divides the first numeric value by the second numeric value.", { desc: "Formula function description for division operator" }),
|
|
490
523
|
example: () => "⟨numeric⟩ Number of burritos / 2",
|
|
491
524
|
exampleHasIcons: !0
|
|
492
525
|
},
|
|
493
526
|
"%": {
|
|
494
527
|
type: "infix",
|
|
495
528
|
arity: 2,
|
|
496
|
-
label: () =>
|
|
497
|
-
description: () =>
|
|
529
|
+
label: () => u("Modulo", { desc: "Formula function label for modulo" }),
|
|
530
|
+
description: () => u("Returns the remainder after dividing the first value by the second value.", { desc: "Formula function description for modulo operator" }),
|
|
498
531
|
example: () => "5 % 2"
|
|
499
532
|
},
|
|
500
533
|
">": {
|
|
501
534
|
type: "infix",
|
|
502
535
|
arity: 2,
|
|
503
|
-
label: () =>
|
|
504
|
-
description: () =>
|
|
536
|
+
label: () => u("Greater than", { desc: "Formula function label for greater than comparison" }),
|
|
537
|
+
description: () => u("Checks whether the first value is greater than the second value.", { desc: "Formula function description for greater than operator" }),
|
|
505
538
|
example: () => "⟨numeric⟩ Burrito weight > 50",
|
|
506
539
|
exampleHasIcons: !0
|
|
507
540
|
},
|
|
508
541
|
"<": {
|
|
509
542
|
type: "infix",
|
|
510
543
|
arity: 2,
|
|
511
|
-
label: () =>
|
|
512
|
-
description: () =>
|
|
544
|
+
label: () => u("Less than", { desc: "Formula function label for less than comparison" }),
|
|
545
|
+
description: () => u("Checks whether the first value is less than the second value.", { desc: "Formula function description for less than operator" }),
|
|
513
546
|
example: () => "⟨numeric⟩ Burrito weight < 50",
|
|
514
547
|
exampleHasIcons: !0
|
|
515
548
|
},
|
|
516
549
|
">=": {
|
|
517
550
|
type: "infix",
|
|
518
551
|
arity: 2,
|
|
519
|
-
label: () =>
|
|
520
|
-
description: () =>
|
|
552
|
+
label: () => u("Greater than or equal", { desc: "Formula function label for greater than or equal comparison" }),
|
|
553
|
+
description: () => u("Checks whether the first value is greater than or equal to the second value.", { desc: "Formula function description for greater than or equal operator" }),
|
|
521
554
|
example: () => "⟨numeric⟩ Burrito weight >= 50",
|
|
522
555
|
exampleHasIcons: !0
|
|
523
556
|
},
|
|
524
557
|
"<=": {
|
|
525
558
|
type: "infix",
|
|
526
559
|
arity: 2,
|
|
527
|
-
label: () =>
|
|
528
|
-
description: () =>
|
|
560
|
+
label: () => u("Less than or equal", { desc: "Formula function label for less than or equal comparison" }),
|
|
561
|
+
description: () => u("Checks whether the first value is less than or equal to the second value.", { desc: "Formula function description for less than or equal operator" }),
|
|
529
562
|
example: () => "⟨numeric⟩ Burrito weight <= 50",
|
|
530
563
|
exampleHasIcons: !0
|
|
531
564
|
},
|
|
532
565
|
"=": {
|
|
533
566
|
type: "infix",
|
|
534
567
|
arity: 2,
|
|
535
|
-
label: () =>
|
|
536
|
-
description: () =>
|
|
568
|
+
label: () => u("Equal", { desc: "Formula function label for equality comparison" }),
|
|
569
|
+
description: () => u("Checks whether both values are equal.", { desc: "Formula function description for equality operator" }),
|
|
537
570
|
example: () => "⟨hierarchy⟩ Burrito type = 'Savoury'",
|
|
538
571
|
exampleHasIcons: !0
|
|
539
572
|
},
|
|
540
573
|
"<>": {
|
|
541
574
|
type: "infix",
|
|
542
575
|
arity: 2,
|
|
543
|
-
label: () =>
|
|
544
|
-
description: () =>
|
|
576
|
+
label: () => u("Not equal", { desc: "Formula function label for inequality comparison" }),
|
|
577
|
+
description: () => u("Checks whether two values are different.", { desc: "Formula function description for inequality operator" }),
|
|
545
578
|
example: () => "⟨hierarchy⟩ Burrito type <> 'Sweet'",
|
|
546
579
|
exampleHasIcons: !0
|
|
547
580
|
},
|
|
548
581
|
ABS: {
|
|
549
582
|
type: "prefix",
|
|
550
583
|
arity: 1,
|
|
551
|
-
label: () =>
|
|
552
|
-
description: () =>
|
|
584
|
+
label: () => u("Absolute value", { desc: "Formula function label for ABS" }),
|
|
585
|
+
description: () => u("Returns the absolute value of a number.", { desc: "Formula function description for ABS" }),
|
|
553
586
|
example: () => "ABS(-5.0)"
|
|
554
587
|
},
|
|
555
588
|
CEIL: {
|
|
556
589
|
type: "prefix",
|
|
557
590
|
arity: 1,
|
|
558
|
-
label: () =>
|
|
559
|
-
description: () =>
|
|
591
|
+
label: () => u("Round up", { desc: "Formula function label for CEIL" }),
|
|
592
|
+
description: () => u("Rounds a number up to the nearest integer.", { desc: "Formula function description for CEIL" }),
|
|
560
593
|
example: () => "CEIL(11.3)"
|
|
561
594
|
},
|
|
562
595
|
E: {
|
|
563
596
|
type: "prefix",
|
|
564
597
|
arity: 0,
|
|
565
|
-
label: () =>
|
|
566
|
-
description: () =>
|
|
598
|
+
label: () => u("Euler's number", { desc: "Formula function label for E" }),
|
|
599
|
+
description: () => u("Returns Euler's constant e.", { desc: "Formula function description for E" }),
|
|
567
600
|
example: () => "E()"
|
|
568
601
|
},
|
|
569
602
|
EXP: {
|
|
570
603
|
type: "prefix",
|
|
571
604
|
arity: 1,
|
|
572
|
-
label: () =>
|
|
573
|
-
description: () =>
|
|
605
|
+
label: () => u("Exponential", { desc: "Formula function label for EXP" }),
|
|
606
|
+
description: () => u("Returns e raised to the specified power.", { desc: "Formula function description for EXP" }),
|
|
574
607
|
example: () => "EXP(11.3)"
|
|
575
608
|
},
|
|
576
609
|
FLOOR: {
|
|
577
610
|
type: "prefix",
|
|
578
611
|
arity: 1,
|
|
579
|
-
label: () =>
|
|
580
|
-
description: () =>
|
|
612
|
+
label: () => u("Round down", { desc: "Formula function label for FLOOR" }),
|
|
613
|
+
description: () => u("Rounds a number down to the nearest integer.", { desc: "Formula function description for FLOOR" }),
|
|
581
614
|
example: () => "FLOOR(11.7)"
|
|
582
615
|
},
|
|
583
616
|
LN: {
|
|
584
617
|
type: "prefix",
|
|
585
618
|
arity: 1,
|
|
586
|
-
label: () =>
|
|
587
|
-
description: () =>
|
|
619
|
+
label: () => u("Natural logarithm", { desc: "Formula function label for LN" }),
|
|
620
|
+
description: () => u("Returns the natural logarithm of a number.", { desc: "Formula function description for LN" }),
|
|
588
621
|
example: () => "LN(11.7)"
|
|
589
622
|
},
|
|
590
623
|
LOG: {
|
|
591
624
|
type: "prefix",
|
|
592
625
|
arity: 2,
|
|
593
|
-
label: () =>
|
|
594
|
-
description: () =>
|
|
626
|
+
label: () => u("Logarithm", { desc: "Formula function label for LOG" }),
|
|
627
|
+
description: () => u("Returns the logarithm of a number for a specific base.", { desc: "Formula function description for LOG" }),
|
|
595
628
|
example: () => "LOG(3.6, 10)"
|
|
596
629
|
},
|
|
597
630
|
PI: {
|
|
598
631
|
type: "prefix",
|
|
599
632
|
arity: 0,
|
|
600
|
-
label: () =>
|
|
601
|
-
description: () =>
|
|
633
|
+
label: () => u("Pi", { desc: "Formula function label for PI" }),
|
|
634
|
+
description: () => u("Returns the mathematical constant pi.", { desc: "Formula function description for PI" }),
|
|
602
635
|
example: () => "PI()"
|
|
603
636
|
},
|
|
604
637
|
POW: {
|
|
605
638
|
type: "prefix",
|
|
606
639
|
arity: 2,
|
|
607
|
-
label: () =>
|
|
608
|
-
description: () =>
|
|
640
|
+
label: () => u("Power", { desc: "Formula function label for POW" }),
|
|
641
|
+
description: () => u("Raises a number to a given power.", { desc: "Formula function description for POW" }),
|
|
609
642
|
example: () => "POW(2.35, 2)"
|
|
610
643
|
},
|
|
611
644
|
RAND: {
|
|
612
645
|
type: "prefix",
|
|
613
646
|
arity: 0,
|
|
614
|
-
label: () =>
|
|
615
|
-
description: () =>
|
|
647
|
+
label: () => u("Random number", { desc: "Formula function label for RAND" }),
|
|
648
|
+
description: () => u("Returns a random number between 0 and 1.", { desc: "Formula function description for RAND" }),
|
|
616
649
|
example: () => "RAND()"
|
|
617
650
|
},
|
|
618
651
|
ROUND: {
|
|
619
652
|
type: "prefix",
|
|
620
653
|
arity: 2,
|
|
621
|
-
label: () =>
|
|
622
|
-
description: () =>
|
|
654
|
+
label: () => u("Round", { desc: "Formula function label for ROUND" }),
|
|
655
|
+
description: () => u("Rounds a number to a specified number of decimal places.", { desc: "Formula function description for ROUND" }),
|
|
623
656
|
example: () => "ROUND(4.567, 1)"
|
|
624
657
|
},
|
|
625
658
|
SQRT: {
|
|
626
659
|
type: "prefix",
|
|
627
660
|
arity: 1,
|
|
628
|
-
label: () =>
|
|
629
|
-
description: () =>
|
|
661
|
+
label: () => u("Square root", { desc: "Formula function label for SQRT" }),
|
|
662
|
+
description: () => u("Returns the square root of a number.", { desc: "Formula function description for SQRT" }),
|
|
630
663
|
example: () => "SQRT(4)"
|
|
631
664
|
},
|
|
632
665
|
CAST: {
|
|
633
666
|
type: "prefix",
|
|
634
667
|
arity: 2,
|
|
635
|
-
label: () =>
|
|
636
|
-
description: () =>
|
|
668
|
+
label: () => u("Convert value", { desc: "Formula function label for CAST" }),
|
|
669
|
+
description: () => u("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" }),
|
|
637
670
|
example: () => "CAST(⟨numeric⟩ Burrito weight, hierarchy)",
|
|
638
671
|
exampleHasIcons: !0
|
|
639
672
|
},
|
|
640
673
|
IF: {
|
|
641
674
|
type: "prefix",
|
|
642
675
|
arity: 3,
|
|
643
|
-
label: () =>
|
|
644
|
-
description: () =>
|
|
676
|
+
label: () => u("If", { desc: "Formula function label for IF" }),
|
|
677
|
+
description: () => u("Returns one value when a condition is true and another value when false.", { desc: "Formula function description for IF" }),
|
|
645
678
|
example: () => "IF(⟨numeric⟩ Burrito weight < 200,'Small','Large')",
|
|
646
679
|
exampleHasIcons: !0
|
|
647
680
|
},
|
|
648
681
|
COALESCE: {
|
|
649
682
|
type: "prefix",
|
|
650
683
|
arity: 2,
|
|
651
|
-
label: () =>
|
|
652
|
-
description: () =>
|
|
684
|
+
label: () => u("Is empty", { desc: "Formula function label for COALESCE" }),
|
|
685
|
+
description: () => u("Returns the first non-null value from the provided arguments.", { desc: "Formula function description for COALESCE" }),
|
|
653
686
|
example: () => "COALESCE(⟨hierarchy⟩ Burrito type, 'Unknown type')",
|
|
654
687
|
exampleHasIcons: !0
|
|
655
688
|
},
|
|
656
689
|
AND: {
|
|
657
690
|
type: "infix",
|
|
658
691
|
arity: 2,
|
|
659
|
-
label: () =>
|
|
660
|
-
description: () =>
|
|
692
|
+
label: () => u("Logical and", { desc: "Formula function label for AND" }),
|
|
693
|
+
description: () => u("Returns true when both conditions are true.", { desc: "Formula function description for AND" }),
|
|
661
694
|
example: () => "Burrito weight > 50 AND Burrito weight < 75"
|
|
662
695
|
},
|
|
663
696
|
OR: {
|
|
664
697
|
type: "infix",
|
|
665
698
|
arity: 2,
|
|
666
|
-
label: () =>
|
|
667
|
-
description: () =>
|
|
699
|
+
label: () => u("Logical or", { desc: "Formula function label for OR" }),
|
|
700
|
+
description: () => u("Returns true when at least one condition is true.", { desc: "Formula function description for OR" }),
|
|
668
701
|
example: () => "Burrito price > 10.1 OR Burrito weight >= 50"
|
|
669
702
|
},
|
|
670
703
|
NOT: {
|
|
671
704
|
type: "prefix_op",
|
|
672
705
|
arity: 1,
|
|
673
|
-
label: () =>
|
|
674
|
-
description: () =>
|
|
706
|
+
label: () => u("Logical not", { desc: "Formula function label for NOT" }),
|
|
707
|
+
description: () => u("Negates a boolean condition.", { desc: "Formula function description for NOT" }),
|
|
675
708
|
example: () => "NOT (Burrito type = 'Salty')"
|
|
676
709
|
},
|
|
677
710
|
SIN: {
|
|
678
711
|
type: "prefix",
|
|
679
712
|
arity: 1,
|
|
680
|
-
label: () =>
|
|
681
|
-
description: () =>
|
|
713
|
+
label: () => u("Sine", { desc: "Formula function label for SIN" }),
|
|
714
|
+
description: () => u("Returns the sine of an angle in radians.", { desc: "Formula function description for SIN" }),
|
|
682
715
|
example: () => "SIN(3.14)"
|
|
683
716
|
},
|
|
684
717
|
COS: {
|
|
685
718
|
type: "prefix",
|
|
686
719
|
arity: 1,
|
|
687
|
-
label: () =>
|
|
688
|
-
description: () =>
|
|
720
|
+
label: () => u("Cosine", { desc: "Formula function label for COS" }),
|
|
721
|
+
description: () => u("Returns the cosine of an angle in radians.", { desc: "Formula function description for COS" }),
|
|
689
722
|
example: () => "COS(3.14)"
|
|
690
723
|
},
|
|
691
724
|
TAN: {
|
|
692
725
|
type: "prefix",
|
|
693
726
|
arity: 1,
|
|
694
|
-
label: () =>
|
|
695
|
-
description: () =>
|
|
727
|
+
label: () => u("Tangent", { desc: "Formula function label for TAN" }),
|
|
728
|
+
description: () => u("Returns the tangent of an angle in radians.", { desc: "Formula function description for TAN" }),
|
|
696
729
|
example: () => "TAN(3.14)"
|
|
697
730
|
},
|
|
698
731
|
ASIN: {
|
|
699
732
|
type: "prefix",
|
|
700
733
|
arity: 1,
|
|
701
|
-
label: () =>
|
|
702
|
-
description: () =>
|
|
734
|
+
label: () => u("Arcsine", { desc: "Formula function label for ASIN" }),
|
|
735
|
+
description: () => u("Returns the arcsine of a number.", { desc: "Formula function description for ASIN" }),
|
|
703
736
|
example: () => "ASIN(3.14)"
|
|
704
737
|
},
|
|
705
738
|
ACOS: {
|
|
706
739
|
type: "prefix",
|
|
707
740
|
arity: 1,
|
|
708
|
-
label: () =>
|
|
709
|
-
description: () =>
|
|
741
|
+
label: () => u("Arccosine", { desc: "Formula function label for ACOS" }),
|
|
742
|
+
description: () => u("Returns the arccosine of a number.", { desc: "Formula function description for ACOS" }),
|
|
710
743
|
example: () => "ACOS(3.14)"
|
|
711
744
|
},
|
|
712
745
|
ATAN: {
|
|
713
746
|
type: "prefix",
|
|
714
747
|
arity: 1,
|
|
715
|
-
label: () =>
|
|
716
|
-
description: () =>
|
|
748
|
+
label: () => u("Arctangent", { desc: "Formula function label for ATAN" }),
|
|
749
|
+
description: () => u("Returns the arctangent of a number.", { desc: "Formula function description for ATAN" }),
|
|
717
750
|
example: () => "ATAN(3.14)"
|
|
718
751
|
},
|
|
719
752
|
SINH: {
|
|
720
753
|
type: "prefix",
|
|
721
754
|
arity: 1,
|
|
722
|
-
label: () =>
|
|
723
|
-
description: () =>
|
|
755
|
+
label: () => u("Hyperbolic sine", { desc: "Formula function label for SINH" }),
|
|
756
|
+
description: () => u("Returns the hyperbolic sine of a number.", { desc: "Formula function description for SINH" }),
|
|
724
757
|
example: () => "SINH(3.14)"
|
|
725
758
|
},
|
|
726
759
|
COSH: {
|
|
727
760
|
type: "prefix",
|
|
728
761
|
arity: 1,
|
|
729
|
-
label: () =>
|
|
730
|
-
description: () =>
|
|
762
|
+
label: () => u("Hyperbolic cosine", { desc: "Formula function label for COSH" }),
|
|
763
|
+
description: () => u("Returns the hyperbolic cosine of a number.", { desc: "Formula function description for COSH" }),
|
|
731
764
|
example: () => "COSH(3.14)"
|
|
732
765
|
},
|
|
733
766
|
TANH: {
|
|
734
767
|
type: "prefix",
|
|
735
768
|
arity: 1,
|
|
736
|
-
label: () =>
|
|
737
|
-
description: () =>
|
|
769
|
+
label: () => u("Hyperbolic tangent", { desc: "Formula function label for TANH" }),
|
|
770
|
+
description: () => u("Returns the hyperbolic tangent of a number.", { desc: "Formula function description for TANH" }),
|
|
738
771
|
example: () => "TANH(3.14)"
|
|
739
772
|
},
|
|
740
773
|
MEAN: {
|
|
741
774
|
type: "prefix",
|
|
742
775
|
arity: 1,
|
|
743
|
-
label: () =>
|
|
744
|
-
description: () =>
|
|
776
|
+
label: () => u("Mean", { desc: "Formula function label for MEAN" }),
|
|
777
|
+
description: () => u("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" }),
|
|
745
778
|
example: () => "MEAN(⟨numeric⟩ Burrito weight)",
|
|
746
779
|
exampleHasIcons: !0
|
|
747
780
|
},
|
|
748
781
|
STDDEV: {
|
|
749
782
|
type: "prefix",
|
|
750
783
|
arity: 1,
|
|
751
|
-
label: () =>
|
|
752
|
-
description: () =>
|
|
784
|
+
label: () => u("Standard deviation", { desc: "Aggregation label" }),
|
|
785
|
+
description: () => u("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" }),
|
|
753
786
|
example: () => "STDDEV(⟨numeric⟩ Burrito weight)",
|
|
754
787
|
exampleHasIcons: !0
|
|
755
788
|
},
|
|
756
789
|
"||": {
|
|
757
790
|
type: "infix",
|
|
758
791
|
arity: 2,
|
|
759
|
-
label: () =>
|
|
760
|
-
description: () =>
|
|
792
|
+
label: () => u("Concatenate", { desc: "Formula function label for concatenate operator" }),
|
|
793
|
+
description: () => u("Concatenates two strings.", { desc: "Formula function description for concatenate operator" }),
|
|
761
794
|
example: () => "'Tasty' || ' burrito'"
|
|
762
795
|
},
|
|
763
796
|
LENGTH: {
|
|
764
797
|
type: "prefix",
|
|
765
798
|
arity: 1,
|
|
766
|
-
label: () =>
|
|
767
|
-
description: () =>
|
|
799
|
+
label: () => u("String length", { desc: "Formula function label for LENGTH" }),
|
|
800
|
+
description: () => u("Returns the number of characters in a string.", { desc: "Formula function description for LENGTH" }),
|
|
768
801
|
example: () => "LENGTH('Burrito')"
|
|
769
802
|
},
|
|
770
803
|
LOWER: {
|
|
771
804
|
type: "prefix",
|
|
772
805
|
arity: 1,
|
|
773
|
-
label: () =>
|
|
774
|
-
description: () =>
|
|
806
|
+
label: () => u("Lowercase", { desc: "Formula function label for LOWER" }),
|
|
807
|
+
description: () => u("Converts a string to lowercase.", { desc: "Formula function description for LOWER" }),
|
|
775
808
|
example: () => "LOWER('BURRITO')"
|
|
776
809
|
},
|
|
777
810
|
UPPER: {
|
|
778
811
|
type: "prefix",
|
|
779
812
|
arity: 1,
|
|
780
|
-
label: () =>
|
|
781
|
-
description: () =>
|
|
813
|
+
label: () => u("Uppercase", { desc: "Formula function label for UPPER" }),
|
|
814
|
+
description: () => u("Converts a string to uppercase.", { desc: "Formula function description for UPPER" }),
|
|
782
815
|
example: () => "UPPER('burrito')"
|
|
783
816
|
},
|
|
784
817
|
LTRIM: {
|
|
785
818
|
type: "prefix",
|
|
786
819
|
arity: 1,
|
|
787
|
-
label: () =>
|
|
788
|
-
description: () =>
|
|
820
|
+
label: () => u("Trim left", { desc: "Formula function label for LTRIM" }),
|
|
821
|
+
description: () => u("Removes leading spaces from a string.", { desc: "Formula function description for LTRIM" }),
|
|
789
822
|
example: () => "LTRIM(' Burrito')"
|
|
790
823
|
},
|
|
791
824
|
RTRIM: {
|
|
792
825
|
type: "prefix",
|
|
793
826
|
arity: 1,
|
|
794
|
-
label: () =>
|
|
795
|
-
description: () =>
|
|
827
|
+
label: () => u("Trim right", { desc: "Formula function label for RTRIM" }),
|
|
828
|
+
description: () => u("Removes trailing spaces from a string.", { desc: "Formula function description for RTRIM" }),
|
|
796
829
|
example: () => "RTRIM('Burrito ')"
|
|
797
830
|
},
|
|
798
831
|
TRIM: {
|
|
799
832
|
type: "prefix",
|
|
800
833
|
arity: 1,
|
|
801
|
-
label: () =>
|
|
802
|
-
description: () =>
|
|
834
|
+
label: () => u("Trim", { desc: "Formula function label for TRIM" }),
|
|
835
|
+
description: () => u("Removes leading and trailing spaces from a string.", { desc: "Formula function description for TRIM" }),
|
|
803
836
|
example: () => "TRIM('Burrito ')"
|
|
804
837
|
},
|
|
805
838
|
REPLACE: {
|
|
806
839
|
type: "prefix",
|
|
807
840
|
arity: 3,
|
|
808
|
-
label: () =>
|
|
809
|
-
description: () =>
|
|
841
|
+
label: () => u("Replace text", { desc: "Formula function label for REPLACE" }),
|
|
842
|
+
description: () => u("Replaces occurrences of a substring with another substring.", { desc: "Formula function description for REPLACE" }),
|
|
810
843
|
example: () => "REPLACE('Sweet burrito','Sweet', 'Savoury')"
|
|
811
844
|
},
|
|
812
845
|
STRPOS: {
|
|
813
846
|
type: "prefix",
|
|
814
847
|
arity: 2,
|
|
815
|
-
label: () =>
|
|
816
|
-
description: () =>
|
|
848
|
+
label: () => u("Find substring", { desc: "Formula function label for STRPOS" }),
|
|
849
|
+
description: () => u("Returns the position of a substring in a string.", { desc: "Formula function description for STRPOS" }),
|
|
817
850
|
example: () => "STRPOS('Sweet burrito','burrito')"
|
|
818
851
|
},
|
|
819
852
|
SUBSTR: {
|
|
820
853
|
type: "prefix",
|
|
821
854
|
arity: 3,
|
|
822
|
-
label: () =>
|
|
823
|
-
description: () =>
|
|
855
|
+
label: () => u("Take substring", { desc: "Formula function label for SUBSTR" }),
|
|
856
|
+
description: () => u("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" }),
|
|
824
857
|
example: () => "SUBSTR('Sweet burrito',7,3)"
|
|
825
858
|
},
|
|
826
859
|
SPLIT_PART: {
|
|
827
860
|
type: "prefix",
|
|
828
861
|
arity: 3,
|
|
829
|
-
label: () =>
|
|
830
|
-
description: () =>
|
|
862
|
+
label: () => u("Split part", { desc: "Formula function label for SPLIT_PART" }),
|
|
863
|
+
description: () => u("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" }),
|
|
831
864
|
example: () => "SPLIT_PART('Sweet burrito', ' ', 2)"
|
|
832
865
|
},
|
|
833
866
|
NOW: {
|
|
834
867
|
type: "prefix",
|
|
835
868
|
arity: 0,
|
|
836
|
-
label: () =>
|
|
837
|
-
description: () =>
|
|
869
|
+
label: () => u("Current date and time", { desc: "Formula function label for NOW" }),
|
|
870
|
+
description: () => u("Returns the current date and time.", { desc: "Formula function description for NOW" }),
|
|
838
871
|
example: () => "NOW()"
|
|
839
872
|
},
|
|
840
873
|
YEAR: {
|
|
841
874
|
type: "prefix",
|
|
842
875
|
arity: 1,
|
|
843
|
-
label: () =>
|
|
844
|
-
description: () =>
|
|
876
|
+
label: () => u("Year", { desc: "Time unit" }),
|
|
877
|
+
description: () => u("Extracts the year from a date value.", { desc: "Formula function description for YEAR" }),
|
|
845
878
|
example: () => `YEAR('${e}-02-17')`
|
|
846
879
|
},
|
|
847
880
|
YEAR_UTC: {
|
|
848
881
|
type: "prefix",
|
|
849
882
|
arity: 1,
|
|
850
|
-
label: () =>
|
|
851
|
-
description: () =>
|
|
883
|
+
label: () => u("Year (UTC)", { desc: "Formula function label for YEAR_UTC" }),
|
|
884
|
+
description: () => u("Extracts the year from a date value in UTC.", { desc: "Formula function description for YEAR_UTC" }),
|
|
852
885
|
example: () => `YEAR_UTC('${e}-02-17')`
|
|
853
886
|
},
|
|
854
887
|
QUARTER: {
|
|
855
888
|
type: "prefix",
|
|
856
889
|
arity: 1,
|
|
857
|
-
label: () =>
|
|
858
|
-
description: () =>
|
|
890
|
+
label: () => u("Quarter", { desc: "Time unit" }),
|
|
891
|
+
description: () => u("Extracts the quarter from a date value.", { desc: "Formula function description for QUARTER" }),
|
|
859
892
|
example: () => `QUARTER('${e}-02-17')`
|
|
860
893
|
},
|
|
861
894
|
QUARTER_UTC: {
|
|
862
895
|
type: "prefix",
|
|
863
896
|
arity: 1,
|
|
864
|
-
label: () =>
|
|
865
|
-
description: () =>
|
|
897
|
+
label: () => u("Quarter (UTC)", { desc: "Formula function label for QUARTER_UTC" }),
|
|
898
|
+
description: () => u("Extracts the quarter from a date value in UTC.", { desc: "Formula function description for QUARTER_UTC" }),
|
|
866
899
|
example: () => `QUARTER_UTC('${e}-02-17')`
|
|
867
900
|
},
|
|
868
901
|
MONTH: {
|
|
869
902
|
type: "prefix",
|
|
870
903
|
arity: 1,
|
|
871
|
-
label: () =>
|
|
872
|
-
description: () =>
|
|
904
|
+
label: () => u("Month", { desc: "Time unit" }),
|
|
905
|
+
description: () => u("Extracts the month from a date or datetime value.", { desc: "Formula function description for MONTH" }),
|
|
873
906
|
example: () => `MONTH('${e}-02-17 15:36:59')`
|
|
874
907
|
},
|
|
875
908
|
MONTH_UTC: {
|
|
876
909
|
type: "prefix",
|
|
877
910
|
arity: 1,
|
|
878
|
-
label: () =>
|
|
879
|
-
description: () =>
|
|
911
|
+
label: () => u("Month (UTC)", { desc: "Formula function label for MONTH_UTC" }),
|
|
912
|
+
description: () => u("Extracts the month from a date or datetime value in UTC.", { desc: "Formula function description for MONTH_UTC" }),
|
|
880
913
|
example: () => `MONTH_UTC('${e}-02-17 15:36:59')`
|
|
881
914
|
},
|
|
882
915
|
WEEK: {
|
|
883
916
|
type: "prefix",
|
|
884
917
|
arity: 1,
|
|
885
|
-
label: () =>
|
|
886
|
-
description: () =>
|
|
918
|
+
label: () => u("Week", { desc: "Time unit" }),
|
|
919
|
+
description: () => u("Extracts the ISO 8601 week number (1-53) from a date or datetime value.", { desc: "Formula function description for WEEK" }),
|
|
887
920
|
example: () => `WEEK('${e}-02-17 15:36:59')`
|
|
888
921
|
},
|
|
889
922
|
WEEK_UTC: {
|
|
890
923
|
type: "prefix",
|
|
891
924
|
arity: 1,
|
|
892
|
-
label: () =>
|
|
893
|
-
description: () =>
|
|
925
|
+
label: () => u("Week (UTC)", { desc: "Formula function label for WEEK_UTC" }),
|
|
926
|
+
description: () => u("Extracts the ISO 8601 week number (1-53) from a date or datetime value in UTC.", { desc: "Formula function description for WEEK_UTC" }),
|
|
894
927
|
example: () => `WEEK_UTC('${e}-02-17 15:36:59')`
|
|
895
928
|
},
|
|
896
929
|
DAY: {
|
|
897
930
|
type: "prefix",
|
|
898
931
|
arity: 1,
|
|
899
|
-
label: () =>
|
|
900
|
-
description: () =>
|
|
932
|
+
label: () => u("Day of month", { desc: "Formula function label for DAY" }),
|
|
933
|
+
description: () => u("Extracts the day of month from a date or datetime value.", { desc: "Formula function description for DAY" }),
|
|
901
934
|
example: () => `DAY('${e}-02-17 15:36:59')`
|
|
902
935
|
},
|
|
903
936
|
DAY_UTC: {
|
|
904
937
|
type: "prefix",
|
|
905
938
|
arity: 1,
|
|
906
|
-
label: () =>
|
|
907
|
-
description: () =>
|
|
939
|
+
label: () => u("Day of month (UTC)", { desc: "Formula function label for DAY_UTC" }),
|
|
940
|
+
description: () => u("Extracts the day of month from a date or datetime value in UTC.", { desc: "Formula function description for DAY_UTC" }),
|
|
908
941
|
example: () => `DAY_UTC('${e}-02-17 15:36:59')`
|
|
909
942
|
},
|
|
910
943
|
DAY_OF_WEEK: {
|
|
911
944
|
type: "prefix",
|
|
912
945
|
arity: 1,
|
|
913
|
-
label: () =>
|
|
914
|
-
description: () =>
|
|
946
|
+
label: () => u("Day of week", { desc: "Formula function label for DAY_OF_WEEK" }),
|
|
947
|
+
description: () => u("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" }),
|
|
915
948
|
example: () => `DAY_OF_WEEK('${e}-02-17 15:36:59')`
|
|
916
949
|
},
|
|
917
950
|
DAY_OF_WEEK_UTC: {
|
|
918
951
|
type: "prefix",
|
|
919
952
|
arity: 1,
|
|
920
|
-
label: () =>
|
|
921
|
-
description: () =>
|
|
953
|
+
label: () => u("Day of week (UTC)", { desc: "Formula function label for DAY_OF_WEEK_UTC" }),
|
|
954
|
+
description: () => u("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" }),
|
|
922
955
|
example: () => `DAY_OF_WEEK_UTC('${e}-02-17 15:36:59')`
|
|
923
956
|
},
|
|
924
957
|
DAY_OF_YEAR: {
|
|
925
958
|
type: "prefix",
|
|
926
959
|
arity: 1,
|
|
927
|
-
label: () =>
|
|
928
|
-
description: () =>
|
|
960
|
+
label: () => u("Day of year", { desc: "Formula function label for DAY_OF_YEAR" }),
|
|
961
|
+
description: () => u("Extracts the day of year from a date or datetime value.", { desc: "Formula function description for DAY_OF_YEAR" }),
|
|
929
962
|
example: () => `DAY_OF_YEAR('${e}-02-17 15:36:59')`
|
|
930
963
|
},
|
|
931
964
|
DAY_OF_YEAR_UTC: {
|
|
932
965
|
type: "prefix",
|
|
933
966
|
arity: 1,
|
|
934
|
-
label: () =>
|
|
935
|
-
description: () =>
|
|
967
|
+
label: () => u("Day of year (UTC)", { desc: "Formula function label for DAY_OF_YEAR_UTC" }),
|
|
968
|
+
description: () => u("Extracts the day of year from a date or datetime value in UTC.", { desc: "Formula function description for DAY_OF_YEAR_UTC" }),
|
|
936
969
|
example: () => `DAY_OF_YEAR_UTC('${e}-02-17 15:36:59')`
|
|
937
970
|
},
|
|
938
971
|
YEAR_OF_WEEK: {
|
|
939
972
|
type: "prefix",
|
|
940
973
|
arity: 1,
|
|
941
|
-
label: () =>
|
|
942
|
-
description: () =>
|
|
974
|
+
label: () => u("Year of ISO week", { desc: "Formula function label for YEAR_OF_WEEK" }),
|
|
975
|
+
description: () => u("Extracts the ISO week-numbering year from a date or datetime value.", { desc: "Formula function description for YEAR_OF_WEEK" }),
|
|
943
976
|
example: () => `YEAR_OF_WEEK('${e}-02-17 15:36:59')`
|
|
944
977
|
},
|
|
945
978
|
YEAR_OF_WEEK_UTC: {
|
|
946
979
|
type: "prefix",
|
|
947
980
|
arity: 1,
|
|
948
|
-
label: () =>
|
|
949
|
-
description: () =>
|
|
981
|
+
label: () => u("Year of ISO week (UTC)", { desc: "Formula function label for YEAR_OF_WEEK_UTC" }),
|
|
982
|
+
description: () => u("Extracts the ISO week-numbering year from a date or datetime value in UTC.", { desc: "Formula function description for YEAR_OF_WEEK_UTC" }),
|
|
950
983
|
example: () => `YEAR_OF_WEEK_UTC('${e}-02-17 15:36:59')`
|
|
951
984
|
},
|
|
952
985
|
HOUR: {
|
|
953
986
|
type: "prefix",
|
|
954
987
|
arity: 1,
|
|
955
|
-
label: () =>
|
|
956
|
-
description: () =>
|
|
988
|
+
label: () => u("Hour", { desc: "Time unit" }),
|
|
989
|
+
description: () => u("Extracts the hour from a datetime value.", { desc: "Formula function description for HOUR" }),
|
|
957
990
|
example: () => `HOUR('${e}-02-17 15:36:59')`
|
|
958
991
|
},
|
|
959
992
|
HOUR_UTC: {
|
|
960
993
|
type: "prefix",
|
|
961
994
|
arity: 1,
|
|
962
|
-
label: () =>
|
|
963
|
-
description: () =>
|
|
995
|
+
label: () => u("Hour (UTC)", { desc: "Formula function label for HOUR_UTC" }),
|
|
996
|
+
description: () => u("Extracts the hour from a datetime value in UTC.", { desc: "Formula function description for HOUR_UTC" }),
|
|
964
997
|
example: () => `HOUR_UTC('${e}-02-17 15:36:59')`
|
|
965
998
|
},
|
|
966
999
|
MINUTE: {
|
|
967
1000
|
type: "prefix",
|
|
968
1001
|
arity: 1,
|
|
969
|
-
label: () =>
|
|
970
|
-
description: () =>
|
|
1002
|
+
label: () => u("Minute", { desc: "Time unit" }),
|
|
1003
|
+
description: () => u("Extracts the minute from a datetime value.", { desc: "Formula function description for MINUTE" }),
|
|
971
1004
|
example: () => `MINUTE('${e}-02-17 15:36:59')`
|
|
972
1005
|
},
|
|
973
1006
|
MINUTE_UTC: {
|
|
974
1007
|
type: "prefix",
|
|
975
1008
|
arity: 1,
|
|
976
|
-
label: () =>
|
|
977
|
-
description: () =>
|
|
1009
|
+
label: () => u("Minute (UTC)", { desc: "Formula function label for MINUTE_UTC" }),
|
|
1010
|
+
description: () => u("Extracts the minute from a datetime value in UTC.", { desc: "Formula function description for MINUTE_UTC" }),
|
|
978
1011
|
example: () => `MINUTE_UTC('${e}-02-17 15:36:59')`
|
|
979
1012
|
},
|
|
980
1013
|
SECOND: {
|
|
981
1014
|
type: "prefix",
|
|
982
1015
|
arity: 1,
|
|
983
|
-
label: () =>
|
|
984
|
-
description: () =>
|
|
1016
|
+
label: () => u("Second", { desc: "Time unit" }),
|
|
1017
|
+
description: () => u("Extracts the second from a datetime value.", { desc: "Formula function description for SECOND" }),
|
|
985
1018
|
example: () => `SECOND('${e}-02-17 15:36:59')`
|
|
986
1019
|
},
|
|
987
1020
|
SECOND_UTC: {
|
|
988
1021
|
type: "prefix",
|
|
989
1022
|
arity: 1,
|
|
990
|
-
label: () =>
|
|
991
|
-
description: () =>
|
|
1023
|
+
label: () => u("Second (UTC)", { desc: "Formula function label for SECOND_UTC" }),
|
|
1024
|
+
description: () => u("Extracts the second from a datetime value in UTC.", { desc: "Formula function description for SECOND_UTC" }),
|
|
992
1025
|
example: () => `SECOND_UTC('${e}-02-17 15:36:59')`
|
|
993
1026
|
},
|
|
994
1027
|
DATE_ADD: {
|
|
995
1028
|
type: "prefix",
|
|
996
1029
|
arity: 3,
|
|
997
|
-
label: () =>
|
|
998
|
-
description: () =>
|
|
1030
|
+
label: () => u("Add/subtract duration", { desc: "Formula function label for DATE_ADD" }),
|
|
1031
|
+
description: () => u("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" }),
|
|
999
1032
|
example: () => "DATE_ADD('hour', 2, ⟨datetime⟩ Arrival time)",
|
|
1000
1033
|
exampleHasIcons: !0
|
|
1001
1034
|
},
|
|
1002
1035
|
DATE_DIFF: {
|
|
1003
1036
|
type: "prefix",
|
|
1004
1037
|
arity: 3,
|
|
1005
|
-
label: () =>
|
|
1006
|
-
description: () =>
|
|
1038
|
+
label: () => u("Difference between dates", { desc: "Formula function label for DATE_DIFF" }),
|
|
1039
|
+
description: () => u("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" }),
|
|
1007
1040
|
example: () => `DATE_DIFF('day', ⟨datetime⟩ Arrival date, '${e}-02-17 15:36:59')`,
|
|
1008
1041
|
exampleHasIcons: !0
|
|
1009
1042
|
},
|
|
1010
1043
|
COORDS: {
|
|
1011
1044
|
type: "prefix",
|
|
1012
1045
|
arity: 3,
|
|
1013
|
-
label: () =>
|
|
1046
|
+
label: () => u("Coordinates", {
|
|
1014
1047
|
id: "formula-function-label-coords",
|
|
1015
1048
|
desc: "Formula function label for COORDS"
|
|
1016
1049
|
}),
|
|
1017
|
-
description: () =>
|
|
1050
|
+
description: () => u("Builds a geography value from latitude, longitude, and spatial reference.", { desc: "Formula function description for COORDS" }),
|
|
1018
1051
|
example: () => "COORDS(⟨numeric⟩ Latitude, ⟨numeric⟩ Longitude, 'wgs84')",
|
|
1019
1052
|
exampleHasIcons: !0
|
|
1020
1053
|
}
|
|
@@ -1022,9 +1055,9 @@ function P() {
|
|
|
1022
1055
|
}
|
|
1023
1056
|
//#endregion
|
|
1024
1057
|
//#region src/utils/formula/store/formula-display-store.ts
|
|
1025
|
-
var
|
|
1058
|
+
var B = class extends EventTarget {
|
|
1026
1059
|
constructor(...e) {
|
|
1027
|
-
super(...e), this.functionDataMap =
|
|
1060
|
+
super(...e), this.functionDataMap = z(), this.aggregationFunctionDataMap = L(), 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 = [];
|
|
1028
1061
|
}
|
|
1029
1062
|
get aggregationWidgets() {
|
|
1030
1063
|
return this._aggregationWidgets;
|
|
@@ -1058,29 +1091,29 @@ var F = class extends EventTarget {
|
|
|
1058
1091
|
t && (this.aggregationFunctionDataMap[t.aggregationFunction]?.arity ?? 0) > 0 && (this.pendingFocusAggregationWidgetId = t.widgetId);
|
|
1059
1092
|
}
|
|
1060
1093
|
transformToAggregationWidgetSyntax(e) {
|
|
1061
|
-
let t =
|
|
1094
|
+
let t = E(e).match(_);
|
|
1062
1095
|
if (!t) return e;
|
|
1063
|
-
let n = !!t[1], r = t.index ?? 0, i =
|
|
1096
|
+
let n = !!t[1], r = t.index ?? 0, i = D(e, r + (n ? t[1].length : t[0].length) - 1 + 1), a = D(e, r + t[0].length);
|
|
1064
1097
|
if (i === -1) return e;
|
|
1065
|
-
let o = e.slice(r + t[0].length, a), s = this.transformToAggregationWidgetSyntax(o),
|
|
1066
|
-
widgetId:
|
|
1067
|
-
grouping: t[2] ??
|
|
1098
|
+
let o = e.slice(r + t[0].length, a), s = this.transformToAggregationWidgetSyntax(o), c = {
|
|
1099
|
+
widgetId: S(),
|
|
1100
|
+
grouping: t[2] ?? d.GROUP,
|
|
1068
1101
|
aggregationFunction: t[3],
|
|
1069
1102
|
content: s
|
|
1070
1103
|
};
|
|
1071
|
-
if (
|
|
1072
|
-
let { includedColumns: t, excludedColumns: n } =
|
|
1073
|
-
|
|
1104
|
+
if (c.grouping === d.GROUPINEX) {
|
|
1105
|
+
let { includedColumns: t, excludedColumns: n } = O(e.slice(a + 1, i));
|
|
1106
|
+
c.includedColumns = t, c.excludedColumns = n;
|
|
1074
1107
|
}
|
|
1075
|
-
let
|
|
1076
|
-
return this.addWidgets([
|
|
1108
|
+
let l = w(c.widgetId), u = `${e.slice(0, r)}${l}${e.slice(i + 1)}`;
|
|
1109
|
+
return this.addWidgets([c]), this.transformToAggregationWidgetSyntax(u);
|
|
1077
1110
|
}
|
|
1078
1111
|
transformToAggregationFunctionSyntax(e) {
|
|
1079
|
-
let t = e.match(
|
|
1112
|
+
let t = e.match(y);
|
|
1080
1113
|
if (!t) return e;
|
|
1081
|
-
let n = t.index ?? 0, r = n + t[0].length - 1, i = t[1], a = this.getWidget(i), o = a ? this.transformToAggregationFunctionSyntax(
|
|
1114
|
+
let n = t.index ?? 0, r = n + t[0].length - 1, i = t[1], a = this.getWidget(i), o = a ? this.transformToAggregationFunctionSyntax(T(a, this.aggregationFunctionDataMap)) : "", s = `${e.slice(0, n)}${o}${e.slice(r + 1)}`;
|
|
1082
1115
|
return this.transformToAggregationFunctionSyntax(s);
|
|
1083
1116
|
}
|
|
1084
1117
|
};
|
|
1085
1118
|
//#endregion
|
|
1086
|
-
export {
|
|
1119
|
+
export { p as _, L as a, P as c, C as d, x as f, f as g, h, I as i, S as l, g as m, R as n, F as o, v as p, z as r, N as s, B as t, w as u, d as v };
|