@luzmo/analytics-components-kit 1.0.8-beta.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{area-chart-positioning.config-BEwDQj3T.js → area-chart-positioning.config-BJK4Q4NL.js} +1 -1
- package/components/{area-chart-positioning.config-CS-5H8-C.cjs → area-chart-positioning.config-Cbeon6-x.cjs} +1 -1
- package/components/{bar-chart-positioning.config-CBbTYesB.js → bar-chart-positioning.config-B4UuSMIW.js} +1 -1
- package/components/{bar-chart-positioning.config-DkIvwJI5.cjs → bar-chart-positioning.config-BnhZQUtb.cjs} +1 -1
- package/components/base-BtRS5vm6.cjs +20 -0
- package/components/{base-DSeXdW9S.js → base-IE9Qxmub.js} +1 -2
- package/components/{box-plot-positioning.config-CNC-RTwl.js → box-plot-positioning.config-CYk5koLu.js} +1 -1
- package/components/{box-plot-positioning.config-o5D-mRFr.cjs → box-plot-positioning.config-DsldCFWm.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-3ilPXLpZ.js → bubble-chart-positioning.config-BSDmuPwq.js} +1 -1
- package/components/{bubble-chart-positioning.config-CtreNdST.cjs → bubble-chart-positioning.config-BV-T_2cy.cjs} +1 -1
- package/components/{bullet-chart-positioning.config-CkFhShBk.js → bullet-chart-positioning.config-B3GeLs8o.js} +1 -1
- package/components/{bullet-chart-positioning.config-dHj3YrT_.cjs → bullet-chart-positioning.config-BoqQq4g_.cjs} +1 -1
- package/components/{choropleth-map-positioning.config-DOt86t59.js → choropleth-map-positioning.config-6OT0sZa5.js} +1 -1
- package/components/{choropleth-map-positioning.config-BSs-bRGv.cjs → choropleth-map-positioning.config-C_I3wf8H.cjs} +1 -1
- package/components/{circle-pack-chart-positioning.config-BkFATJjC.js → circle-pack-chart-positioning.config-BuuhKB85.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-CVNdIYau.cjs → circle-pack-chart-positioning.config-D7Oke8BW.cjs} +1 -1
- package/components/{circular-gauge-positioning.config-SrbCaaOr.cjs → circular-gauge-positioning.config-B_IJzIBn.cjs} +1 -1
- package/components/{circular-gauge-positioning.config-BV2xb5TF.js → circular-gauge-positioning.config-DlWvKl0e.js} +1 -1
- package/components/{column-chart-positioning.config-T7juV3XT.js → column-chart-positioning.config-BLacEiY5.js} +1 -1
- package/components/{column-chart-positioning.config-DTQe3h_H.cjs → column-chart-positioning.config-DngsP5So.cjs} +1 -1
- package/components/{combination-chart-positioning.config-BrSmdan-.cjs → combination-chart-positioning.config-BVV0Bq-d.cjs} +1 -1
- package/components/{combination-chart-positioning.config-78C7wKnS.js → combination-chart-positioning.config-DxnmzV6O.js} +1 -1
- package/components/{conditional-number-positioning.config-_9ySKU1z.cjs → conditional-number-positioning.config-DfitbPT6.cjs} +1 -1
- package/components/{conditional-number-positioning.config-z_eEfpud.js → conditional-number-positioning.config-YEo_yFBu.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-fvlYzmfX.cjs +89 -0
- 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-U-5Q-TRp.js → data-field-panel-BWBr1Fog.js} +4 -5
- package/components/data-field-panel-Yrqn4L79.cjs +87 -0
- package/components/{data-field-level-DR_dXjnL.js → data-field-yTJb-R63.js} +141 -47
- package/components/{data-fields-select-BYhAzdA6.js → data-fields-select-Bb1HXwlO.js} +3 -4
- package/components/data-fields-select-Cor6sfzL.cjs +41 -0
- package/components/{display-settings-binning-GIE6ww1Q.js → display-settings-binning-CaE87u3h.js} +19 -17
- package/components/{display-settings-binning-HrXOdGwO.cjs → display-settings-binning-CjvB12ds.cjs} +2 -2
- package/components/{display-settings-datetime-YS7_TUet.js → display-settings-datetime-5rq55OAn.js} +71 -69
- package/components/display-settings-datetime-B23w7aH4.cjs +217 -0
- package/components/display-settings-grand-totals-BZ0nlLhu.cjs +44 -0
- package/components/{display-settings-grand-totals-Bt_ju8jp.js → display-settings-grand-totals-DnKvI34n.js} +19 -17
- package/components/{display-settings-numeric-OHmktQsz.js → display-settings-numeric-B8MCRz-V.js} +81 -79
- package/components/display-settings-numeric-DoScgfRy.cjs +190 -0
- package/components/display-settings-period-over-period-C-hp0ZKN.cjs +227 -0
- package/components/{display-settings-period-over-period-B1_IJjWK.js → display-settings-period-over-period-W3dPK8LR.js} +98 -88
- package/components/{donut-chart-positioning.config-BY2TIeeY.cjs → donut-chart-positioning.config-QOZXaJmt.cjs} +1 -1
- package/components/{donut-chart-positioning.config-D34HegyZ.js → donut-chart-positioning.config-fGckMun2.js} +1 -1
- package/components/{en-q_Ruzags.cjs → en-CSPDwq2y.cjs} +1 -1
- package/components/{en-US-CcLhGxIh.js → en-DdS5q1ZT.js} +1 -1
- package/components/{en-GB-uxY5qmIM.cjs → en-GB-CJR66Ci_.cjs} +1 -1
- package/components/{en-GB-DzkdeUQh.js → en-GB-Cn0xDC0K.js} +1 -1
- package/components/{en-US-q_Ruzags.cjs → en-US-CSPDwq2y.cjs} +1 -1
- package/components/{en-CcLhGxIh.js → en-US-DdS5q1ZT.js} +1 -1
- package/components/{evolution-number-positioning.config-BBvULr59.cjs → evolution-number-positioning.config-B7lBArog.cjs} +1 -1
- package/components/{evolution-number-positioning.config-CKzCTjdO.js → evolution-number-positioning.config-CVIysE4H.js} +1 -1
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +2 -2
- package/components/filters-DndJU6D5.js +2454 -0
- package/components/filters-oB9qOk_M.cjs +443 -0
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +1 -1
- package/components/formula-BFvxm8kj.cjs +45 -0
- package/components/{formula-BYx4gH6i.js → formula-CdAkO1za.js} +14 -15
- package/components/{formula-codemirror-CVzyYNLO.js → formula-codemirror-jVC8mjQ3.js} +19 -21
- package/components/formula-codemirror-ucFOD-2a.cjs +215 -0
- package/components/{formula-display-store-BPn9m5TL.js → formula-display-store-CLAt_fik.js} +271 -242
- package/components/formula-display-store-DmT65fUB.cjs +20 -0
- 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-BxoIkARr.js → formula-editor-Bd9F-xdZ.js} +351 -146
- package/components/formula-editor-BeZ-fu-7.cjs +253 -0
- package/components/{funnel-chart-positioning.config-CvhpE7rN.js → funnel-chart-positioning.config-BGi7ixet.js} +1 -1
- package/components/{funnel-chart-positioning.config-BPSmV76y.cjs → funnel-chart-positioning.config-zEqgz9Wz.cjs} +1 -1
- package/components/{heat-map-positioning.config-CHDHFIo2.cjs → heat-map-positioning.config-3dxU6qwG.cjs} +1 -1
- package/components/{heat-map-positioning.config-AOHTEJf7.js → heat-map-positioning.config-CK2DBngE.js} +1 -1
- package/components/{heat-table-positioning.config-DprOfmlW.js → heat-table-positioning.config-C55D814C.js} +1 -1
- package/components/{heat-table-positioning.config-DCLE9cy4.cjs → heat-table-positioning.config-CbscS7w1.cjs} +1 -1
- package/components/{hexbin-map-positioning.config-BjxkoqGh.js → hexbin-map-positioning.config-9nnyZGzx.js} +1 -1
- package/components/{marker-map-positioning.config-Bq1EPg3J.cjs → hexbin-map-positioning.config-CHecaD9p.cjs} +1 -1
- package/components/index.cjs +840 -1
- package/components/index.js +6783 -67
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +1 -1
- package/components/{item-grid-CcwnD_u5.cjs → item-grid-C2ZvM04g.cjs} +22 -22
- package/components/{item-grid-C_OTtv4T.js → item-grid-D4xYhMOD.js} +1 -2
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.js +1 -1
- package/components/{item-option-DRWLN89_.js → item-option-28BU_oaD.js} +2 -2
- package/components/item-option-BQpS6rM_.cjs +269 -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-BwBxRLzB.cjs +53 -0
- package/components/{item-option-action-button-group-B9ghoHeh.js → item-option-action-button-group-D_g6aoYd.js} +2 -2
- package/components/item-option-base-C6uwowJD.cjs +56 -0
- package/components/{item-option-base-pYrkqt6q.js → item-option-base-CxQhI83u.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-BjHadiN0.cjs +40 -0
- package/components/{item-option-color-palette-picker-DnVqGnm4.js → item-option-color-palette-picker-CRDFqhWx.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-CNkNZ1p-.cjs → item-option-color-picker-BJgpBbDp.cjs} +2 -2
- package/components/{item-option-color-picker-CO-OAFOs.js → item-option-color-picker-BlkpWjQh.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-bdYUxgQ9.js → item-option-color-range-3Wp-Ywz6.js} +2 -2
- package/components/item-option-color-range-CQo8uThO.cjs +98 -0
- package/components/item-option-guidelines/index.cjs +1 -1
- package/components/item-option-guidelines/index.js +1 -1
- package/components/{item-option-guidelines-Ce88dTV-.js → item-option-guidelines-CQ_yb7Ar.js} +3 -4
- package/components/item-option-guidelines-Daf8Ce5z.cjs +135 -0
- package/components/item-option-multi-language-field/index.cjs +1 -1
- package/components/item-option-multi-language-field/index.js +1 -1
- package/components/{item-option-multi-language-field-D0jRPAjY.cjs → item-option-multi-language-field-BApbe3pp.cjs} +2 -2
- package/components/{item-option-multi-language-field-0qfdBanp.js → item-option-multi-language-field-aLIpQWiQ.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-DYJ0eIf7.cjs → item-option-number-field-B72ZYOAX.cjs} +2 -2
- package/components/{item-option-number-field-CcEav5C3.js → item-option-number-field-Bv5eGoxB.js} +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-6Voh87nt.cjs → item-option-panel-A8Jxzwml.cjs} +2 -2
- package/components/{item-option-panel-DrI7HYrY.js → item-option-panel-kRH7GbzA.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-Bv4aGaCO.js → item-option-picker-BuUtW6gD.js} +2 -2
- package/components/{item-option-picker-DkEgfEE7.cjs → item-option-picker-DOFJ1CnI.cjs} +2 -2
- package/components/item-option-position-picker/index.cjs +1 -1
- package/components/item-option-position-picker/index.js +1 -1
- package/components/item-option-position-picker-Cnis4wLA.cjs +32 -0
- package/components/{item-option-position-picker-1d7qZmDv.js → item-option-position-picker-mf3JQu5q.js} +2 -2
- package/components/item-option-positions-number-field/index.cjs +1 -1
- package/components/item-option-positions-number-field/index.js +1 -1
- package/components/item-option-positions-number-field-B7gI1IKO.cjs +49 -0
- package/components/{item-option-positions-number-field-DUlBsbUL.js → item-option-positions-number-field-BIBWpagB.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-ChtTIO3B.cjs → item-option-radio-button-group-B2HYZguB.cjs} +2 -2
- package/components/{item-option-radio-button-group-DuMcIZvr.js → item-option-radio-button-group-CFnfadK2.js} +2 -2
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.js +1 -1
- package/components/item-option-slider--7hmhi97.cjs +33 -0
- package/components/{item-option-slider-CWxRoAbA.js → item-option-slider-CH1l0Ena.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-dO66fjoD.cjs → item-option-switch-hUFRE9MC.cjs} +2 -2
- package/components/{item-option-switch-DvMLATBO.js → item-option-switch-rqu2ePVU.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-Furz80ho.cjs → item-option-text-field-C6CocZ5q.cjs} +2 -2
- package/components/{item-option-text-field-DS-gn_Gc.js → item-option-text-field-CBFMmuK2.js} +2 -2
- 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-DE90FDdS.js → item-slot-drop-DDGclwbP.js} +12 -17
- package/components/item-slot-drop-hK-rLhwa.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-CE4f9X6F.cjs +57 -0
- package/components/{item-slot-drop-panel-CyfhbUlE.js → item-slot-drop-panel-Cj6vbgJl.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-BM03UNRE.js → item-slot-picker-CjQH3MU-.js} +17 -22
- package/components/item-slot-picker-Wf50lM5u.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-DPaabfv5.js → item-slot-picker-panel-7IFk5QFC.js} +4 -5
- package/components/item-slot-picker-panel-Csn1tabr.cjs +81 -0
- package/components/{line-chart-positioning.config-CPGyHeJF.js → line-chart-positioning.config-D5WVvIZT.js} +1 -1
- package/components/{line-chart-positioning.config-BnDYCjGX.cjs → line-chart-positioning.config-DuXn1WD-.cjs} +1 -1
- package/components/load-data-fields-for-datasets-B76UR0sG.js +86 -0
- package/components/load-data-fields-for-datasets-DFYeACsu.cjs +20 -0
- package/components/{ad-hoc-slot-content-BwcFfXCV.cjs → localized-mixin-DfpurTYo.cjs} +1 -1
- package/components/{decorate-DyMgX_Uh.js → localized-mixin-DhiGdPMj.js} +26 -2
- package/components/{marker-map-positioning.config-CBERtxkG.js → marker-map-positioning.config-D2L7cvCP.js} +1 -1
- package/components/{hexbin-map-positioning.config-BmLljWez.cjs → marker-map-positioning.config-DfN39a-Q.cjs} +1 -1
- package/components/{ohlc-chart-positioning.config-CpPJyyLB.js → ohlc-chart-positioning.config-C53dCwaT.js} +1 -1
- package/components/{ohlc-chart-positioning.config-aCf-SEt7.cjs → ohlc-chart-positioning.config-DsBuB0VU.cjs} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-DsNDp1G7.js → parallel-coordinates-plot-positioning.config-DhoVstsb.js} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-D1CB7jOv.cjs → parallel-coordinates-plot-positioning.config-aiFzLnnh.cjs} +1 -1
- package/components/period-over-period-condition.const-DDgiXIfR.cjs +20 -0
- package/components/{formatter-Cq5dFCyU.js → period-over-period-condition.const-IOVIrgKJ.js} +234 -44
- package/components/{pivot-table-positioning.config-gBHM1_-K.cjs → pivot-table-positioning.config-Bq9BoQWM.cjs} +1 -1
- package/components/{pivot-table-positioning.config-BFWS3Yk_.js → pivot-table-positioning.config-Cnai84AH.js} +1 -1
- package/components/{pyramid-chart-positioning.config-B8dbZhvt.js → pyramid-chart-positioning.config-BeJ5R_Ln.js} +1 -1
- package/components/{pyramid-chart-positioning.config-DD64vCwl.cjs → pyramid-chart-positioning.config-D5AKNCPb.cjs} +1 -1
- package/components/{radar-chart-positioning.config-DN51_Tzb.cjs → radar-chart-positioning.config-BEIwrzhb.cjs} +1 -1
- package/components/{radar-chart-positioning.config-C2DWQu8V.js → radar-chart-positioning.config-DsfUBq4B.js} +1 -1
- package/components/{route-map-positioning.config-ryk_dUkh.cjs → route-map-positioning.config-4Wyvj5OH.cjs} +1 -1
- package/components/{route-map-positioning.config-D7X6QuWY.js → route-map-positioning.config-CuiRWzbs.js} +1 -1
- package/components/{sankey-diagram-positioning.config-CJfGpnPS.cjs → sankey-diagram-positioning.config-CZ-zVCQo.cjs} +1 -1
- package/components/{sankey-diagram-positioning.config-A_7xM06n.js → sankey-diagram-positioning.config-DtN7dARd.js} +1 -1
- package/components/{scatter-plot-positioning.config-qpwrugRe.js → scatter-plot-positioning.config-BXrzdLIc.js} +1 -1
- package/components/{scatter-plot-positioning.config-Duao2ftU.cjs → scatter-plot-positioning.config-CfAf_FUW.cjs} +1 -1
- package/components/{slicer-filter-positioning.config-93hC7jID.js → slicer-filter-positioning.config-BLGeCJys.js} +1 -1
- package/components/{slicer-filter-positioning.config-DxhC39ak.cjs → slicer-filter-positioning.config-CU86hJi6.cjs} +1 -1
- package/components/slot-menu-1zlmyLVl.js +1060 -0
- package/components/slot-menu-BSu8wKLi.cjs +217 -0
- package/components/{speedometer-chart-positioning.config-DtRG3-e5.cjs → speedometer-chart-positioning.config-AeMlNxSj.cjs} +1 -1
- package/components/{speedometer-chart-positioning.config-CZbwyYsk.js → speedometer-chart-positioning.config-Dam0wOqp.js} +1 -1
- package/components/{spike-map-positioning.config-CevjyQ5F.cjs → spike-map-positioning.config-9ShV1fUh.cjs} +1 -1
- package/components/{spike-map-positioning.config-LBqSYD2n.js → spike-map-positioning.config-BVzewpfi.js} +1 -1
- package/components/{strip-plot-positioning.config-DF5VxzvB.cjs → strip-plot-positioning.config-BVBdHZvL.cjs} +1 -1
- package/components/{strip-plot-positioning.config-cCdQxMM_.js → strip-plot-positioning.config-OHm3LEo3.js} +1 -1
- package/components/{sunburst-chart-positioning.config-DmkZEexM.js → sunburst-chart-positioning.config-BynNbbxB.js} +1 -1
- package/components/{sunburst-chart-positioning.config-CERBvfoF.cjs → sunburst-chart-positioning.config-DQmuKm-N.cjs} +1 -1
- package/components/{symbol-map-positioning.config-DhYxG8RC.cjs → symbol-map-positioning.config-D6rgxXTO.cjs} +1 -1
- package/components/{symbol-map-positioning.config-BwG_G6He.js → symbol-map-positioning.config-bQk_pdAr.js} +1 -1
- package/components/{treemap-chart-positioning.config-arjPT6b_.js → treemap-chart-positioning.config-BB1-rZKL.js} +1 -1
- package/components/{treemap-chart-positioning.config-BwrrXs4a.cjs → treemap-chart-positioning.config-ZaoIngRn.cjs} +1 -1
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +2 -2
- package/components/utils-CPIzW8sp.cjs +20 -0
- package/components/{utils-B_rE5b7a.js → utils-ZoJ1cp2P.js} +41 -42
- package/components/utils.cjs +1 -1
- package/components/utils.js +5 -8
- package/components/{venn-diagram-positioning.config-DSh3Ns9L.js → venn-diagram-positioning.config-C9ARqREi.js} +1 -1
- package/components/{venn-diagram-positioning.config-GGLCcrqp.cjs → venn-diagram-positioning.config-Cb10sStL.cjs} +1 -1
- package/components/{wordcloud-chart-positioning.config-B8ZzwIdd.js → wordcloud-chart-positioning.config-D59ntNtd.js} +1 -1
- package/components/{wordcloud-chart-positioning.config-Cxyhs6gk.cjs → wordcloud-chart-positioning.config-DC89_DYc.cjs} +1 -1
- package/custom-elements.json +6756 -18314
- package/index.d.ts +0 -25
- package/package.json +1 -126
- package/react/esm/index.d.ts +2 -27
- package/react/esm/index.js +2 -102
- package/react/index.ts +2 -102
- package/react/luzmo-stub.d.ts +0 -140
- package/react/package.json +2 -2
- package/types.d.ts +0 -9
- package/utils/slot-state/slot-store.d.ts +4 -0
- package/components/ad-hoc-slot-content-hSlT62VS.js +0 -29
- package/components/ai-chat/ai-chat-events.d.ts +0 -139
- package/components/ai-chat/ai-chat-request.d.ts +0 -25
- package/components/ai-chat/ai-chat.d.ts +0 -347
- package/components/ai-chat/ai-prompt-types.d.ts +0 -133
- 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/helpers/agent-config.d.ts +0 -12
- package/components/ai-chat/helpers/elicitation-template.d.ts +0 -18
- package/components/ai-chat/index.cjs +0 -20
- package/components/ai-chat/index.d.ts +0 -24
- package/components/ai-chat/index.js +0 -29
- package/components/ai-chat/session/ai-chat-session-controller.d.ts +0 -60
- package/components/ai-chat/session/ai-chat-session-types.d.ts +0 -119
- package/components/ai-chat/session/ai-chat-session.d.ts +0 -119
- package/components/ai-chat/session/index.d.ts +0 -2
- package/components/ai-chat/stream/chunk-extractors.d.ts +0 -29
- package/components/ai-chat/stream/index.d.ts +0 -53
- 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 -59
- package/components/ai-chat/types.d.ts +0 -24
- package/components/ai-chat-CG-eIiBr.cjs +0 -337
- package/components/ai-chat-CMc_9Oo2.js +0 -4350
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +0 -232
- package/components/ai-interaction-textarea/index.cjs +0 -20
- package/components/ai-interaction-textarea/index.d.ts +0 -10
- package/components/ai-interaction-textarea/index.js +0 -28
- package/components/ai-interaction-textarea/types.d.ts +0 -12
- package/components/ai-interaction-textarea-B6tZgh5k.cjs +0 -99
- package/components/ai-interaction-textarea-D9g9G0T1.js +0 -820
- package/components/base-D6QPZnpu.cjs +0 -20
- package/components/convert-data-field-to-slot-content-C6IIqU7G.js +0 -53
- package/components/convert-data-field-to-slot-content-DLzkk6dT.cjs +0 -20
- 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-9ZZFw68C.cjs +0 -54
- package/components/data-field-D1WW_V0N.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-Dc-EMhC3.cjs +0 -55
- package/components/data-field-panel-DFA97_8o.cjs +0 -87
- package/components/data-fields-select/data-fields-select.d.ts +0 -133
- 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-BtXNFZy9.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-CWT5Ju8w.js +0 -125
- package/components/dataset-selector-list/dataset-selector-list.d.ts +0 -106
- 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-BXg6DIKI.cjs +0 -75
- package/components/dataset-selector-list-q6qWA7B-.js +0 -323
- package/components/dataset-selector-row/dataset-selector-row.d.ts +0 -135
- package/components/dataset-selector-row/index.cjs +0 -20
- package/components/dataset-selector-row/index.d.ts +0 -9
- package/components/dataset-selector-row/index.js +0 -28
- package/components/dataset-selector-row-ZKET7lVc.js +0 -427
- package/components/dataset-selector-row-bqwY3zaf.cjs +0 -102
- 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 -117
- 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-BlMhlvVS.cjs +0 -140
- package/components/display-settings-D_wBgzm1.js +0 -313
- 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-DNeLEl3L.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-C-7s1Tyo.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--uwJWzC1.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-C4X8c-_R.cjs +0 -229
- 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-BOLyxG2r.cjs +0 -38
- package/components/filter-expression-picker-DurfSgRY.js +0 -425
- package/components/filter-item/filter-item.d.ts +0 -103
- 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-C58zIpPh.js +0 -316
- package/components/filter-item-obyHcs9f.cjs +0 -71
- package/components/filter-parameter-picker/filter-parameter-picker.d.ts +0 -87
- package/components/filter-parameter-picker/filter-parameter-picker.helpers.d.ts +0 -8
- package/components/filter-parameter-picker/index.cjs +0 -20
- package/components/filter-parameter-picker/index.d.ts +0 -9
- package/components/filter-parameter-picker/index.js +0 -28
- package/components/filter-parameter-picker/types.d.ts +0 -4
- package/components/filter-parameter-picker-BWNBc8BI.js +0 -363
- package/components/filter-parameter-picker-DSYaE9Sv.cjs +0 -123
- package/components/filter-value-picker/filter-value-picker.d.ts +0 -66
- 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-DYl_1pis.cjs +0 -60
- package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +0 -45
- 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-BFbmCKs3.cjs +0 -42
- package/components/filter-value-picker-datetime-CP5__ua6.js +0 -139
- package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +0 -99
- 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-BTf992WX.cjs +0 -48
- package/components/filter-value-picker-hierarchy-j0LRYW1c.js +0 -299
- package/components/filter-value-picker-kzIrnmdp.js +0 -151
- package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +0 -83
- 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-BmKmeOol.js +0 -219
- package/components/filter-value-picker-numeric-DJi0Utk_.cjs +0 -48
- package/components/filters-BddhKRZC.js +0 -745
- package/components/filters-Dx6g0xl9.cjs +0 -153
- package/components/formatter-BeXmurVe.cjs +0 -20
- package/components/formula-cc2AaiLt.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-codemirror-EMK3MCNZ.cjs +0 -215
- package/components/formula-display-store-DER7C0GG.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-CWKXcUTF.cjs +0 -224
- 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-BtvaOWki.js +0 -40
- package/components/formula-field-CzS2pKJI.cjs +0 -20
- package/components/formula-input-base-CvD0b2cO.cjs +0 -49
- package/components/formula-input-base-DVtGLoyA.js +0 -236
- package/components/get-dataset-name-D53TN7N9.js +0 -32
- package/components/get-dataset-name-DYLdbEs-.cjs +0 -20
- package/components/groupings-Bn9384Zw.cjs +0 -20
- package/components/groupings-BtmmUlPK.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-DL5aqkvx.js +0 -693
- package/components/interactive-viz-item-DTr14-9-.cjs +0 -247
- package/components/item-menu/item-list/item-list.d.ts +0 -37
- package/components/item-option-action-button-group-Byg9h7uo.cjs +0 -53
- package/components/item-option-base/item-option-base.d.ts +0 -23
- package/components/item-option-base-Dwf3dByS.cjs +0 -56
- package/components/item-option-color-palette-picker-v6TBE-I0.cjs +0 -40
- package/components/item-option-color-range-BveD6fsp.cjs +0 -98
- package/components/item-option-guidelines-D8UjylMx.cjs +0 -135
- package/components/item-option-h8URFjZ2.cjs +0 -269
- package/components/item-option-position-picker-CKgaqFJR.cjs +0 -32
- package/components/item-option-positions-number-field-BJXer0y5.cjs +0 -49
- package/components/item-option-slider-CBSnkHVq.cjs +0 -33
- package/components/item-slot-drop-f8jm-34W.cjs +0 -91
- package/components/item-slot-drop-panel-DLqyYvKj.cjs +0 -57
- package/components/item-slot-picker-CgEtqhqe.cjs +0 -174
- package/components/item-slot-picker-panel-CuH3OcmV.cjs +0 -81
- package/components/load-data-fields-for-datasets-B3XcFFfg.js +0 -42
- package/components/load-data-fields-for-datasets-rL24A68g.cjs +0 -20
- package/components/localized-mixin-CtNoCjjI.cjs +0 -20
- package/components/localized-mixin-DBUkUh0o.js +0 -45
- 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 -148
- package/components/slot-menu/types.d.ts +0 -24
- package/components/slot-menu-CPxyyKSe.cjs +0 -71
- package/components/slot-menu-DHJtAZ5_.js +0 -429
- 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 -47
- package/components/slot-menu-list-CeWcE4KK.cjs +0 -44
- package/components/slot-menu-list-QltpaoWh.js +0 -347
- package/components/slot-role-classification-2wChhpcq.cjs +0 -20
- package/components/slot-role-classification-B8bkGhQ_.js +0 -133
- package/components/slots-config-Cd4xAG4H.cjs +0 -20
- package/components/slots-config-D3ivNWtC.js +0 -76
- package/components/utils-BwJNkc-z.cjs +0 -20
- 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 -78
- package/components/viz-item-menu-B7yRaSAU.js +0 -170
- package/components/viz-item-menu-hLdU-02Q.cjs +0 -55
- package/deprecated-react/components/ai-chat.component.cjs +0 -1
- package/deprecated-react/components/ai-interaction-textarea.component.cjs +0 -1
- package/deprecated-react/components/data-field-level.component.cjs +0 -1
- package/deprecated-react/components/data-fields-select.component.cjs +0 -1
- package/deprecated-react/components/dataset-icon.component.cjs +0 -1
- package/deprecated-react/components/dataset-selector-list.component.cjs +0 -1
- package/deprecated-react/components/dataset-selector-row.component.cjs +0 -1
- package/deprecated-react/components/display-settings-binning.component.cjs +0 -1
- package/deprecated-react/components/display-settings-datetime.component.cjs +0 -1
- package/deprecated-react/components/display-settings-grand-totals.component.cjs +0 -1
- package/deprecated-react/components/display-settings-numeric.component.cjs +0 -1
- package/deprecated-react/components/display-settings-period-over-period.component.cjs +0 -1
- package/deprecated-react/components/display-settings.component.cjs +0 -1
- package/deprecated-react/components/filter-expression-picker.component.cjs +0 -1
- package/deprecated-react/components/filter-item.component.cjs +0 -1
- package/deprecated-react/components/filter-parameter-picker.component.cjs +0 -1
- package/deprecated-react/components/filter-value-picker-datetime.component.cjs +0 -1
- package/deprecated-react/components/filter-value-picker-hierarchy.component.cjs +0 -1
- package/deprecated-react/components/filter-value-picker-numeric.component.cjs +0 -1
- package/deprecated-react/components/filter-value-picker.component.cjs +0 -1
- package/deprecated-react/components/formula-field.component.cjs +0 -1
- package/deprecated-react/components/interactive-viz-item.component.cjs +0 -1
- package/deprecated-react/components/slot-menu-list.component.cjs +0 -1
- package/deprecated-react/components/slot-menu.component.cjs +0 -1
- package/deprecated-react/components/viz-item-menu.component.cjs +0 -1
- package/react/components/ai-chat.component.ts +0 -45
- 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.component.ts +0 -27
- 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 -36
- 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 -33
- 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-field.component.ts +0 -30
- package/react/components/interactive-viz-item.component.ts +0 -33
- 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.component.ts +0 -33
- package/react/esm/components/ai-chat.component.d.ts +0 -24
- package/react/esm/components/ai-chat.component.js +0 -29
- 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.component.d.ts +0 -12
- package/react/esm/components/data-fields-select.component.js +0 -17
- 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 -18
- package/react/esm/components/dataset-selector-row.component.js +0 -23
- 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 -16
- package/react/esm/components/filter-parameter-picker.component.js +0 -21
- 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-field.component.d.ts +0 -14
- package/react/esm/components/formula-field.component.js +0 -19
- 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-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.component.d.ts +0 -16
- package/react/esm/components/viz-item-menu.component.js +0 -21
- package/storybook/register-components.d.ts +0 -57
- package/types/agent.types.d.ts +0 -4
- package/types/ai-chat.types.d.ts +0 -104
- package/types/data-field-events.types.d.ts +0 -7
- /package/{storybook/inject-global-vars.d.ts → utils/slot-state/tests/slot-store.test.d.ts} +0 -0
|
@@ -18,63 +18,268 @@
|
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
20
|
import { t as e } from "./pragmatic-element-adapter-C_7HSvGV.js";
|
|
21
|
-
import { i as t, n } from "./base-
|
|
22
|
-
import {
|
|
21
|
+
import { i as t, n } from "./base-IE9Qxmub.js";
|
|
22
|
+
import { n as r } from "./localized-mixin-DhiGdPMj.js";
|
|
23
23
|
import { t as i } from "./data-broker-B0uUO5er.js";
|
|
24
24
|
import { t as a } from "./calculate-data-field-icon-DrSg1PuD.js";
|
|
25
25
|
import { t as o } from "./localize-BT7REYBY.js";
|
|
26
|
-
import {
|
|
27
|
-
import { n as
|
|
28
|
-
import
|
|
29
|
-
import "./
|
|
30
|
-
import {
|
|
31
|
-
import { luzmoAlertOutline as g, luzmoAngleDown as ee, luzmoAngleRight as te, luzmoArrows as ne, luzmoIcon as _ } from "@luzmo/icons";
|
|
26
|
+
import { _ as s, a as c, d as l, i as u, l as d, n as f, o as p, p as m, r as h, t as g, u as _, v } from "./formula-display-store-CLAt_fik.js";
|
|
27
|
+
import { n as y, t as b } from "./get-css-variable-r1spgqX0.js";
|
|
28
|
+
import "./data-field-yTJb-R63.js";
|
|
29
|
+
import { a as x, i as ee, n as te, t as ne } from "./icon-element-_jY440X2.js";
|
|
30
|
+
import { luzmoAggregation as re, luzmoAlertOutline as ie, luzmoAngleDown as ae, luzmoAngleRight as oe, luzmoArrows as S, luzmoFunction as C, luzmoIcon as w } from "@luzmo/icons";
|
|
32
31
|
import "@luzmo/lucero/icon";
|
|
33
|
-
import { html as
|
|
34
|
-
import { property as
|
|
35
|
-
import { localized as
|
|
32
|
+
import { html as T, nothing as E, unsafeCSS as D } from "lit";
|
|
33
|
+
import { property as O, state as k } from "lit/decorators.js";
|
|
34
|
+
import { localized as A, msg as j, str as M } from "@lit/localize";
|
|
36
35
|
import "@luzmo/lucero/select";
|
|
37
36
|
import "@luzmo/lucero/tooltip";
|
|
38
|
-
import { repeat as
|
|
37
|
+
import { repeat as N } from "lit/directives/repeat.js";
|
|
39
38
|
import "@luzmo/lucero/field-label";
|
|
39
|
+
import { ifDefined as P } from "lit/directives/if-defined.js";
|
|
40
|
+
import { ContextProvider as F, createContext as I } from "@lit/context";
|
|
40
41
|
import "@luzmo/lucero/progress-circle";
|
|
41
42
|
import "@luzmo/lucero/search";
|
|
43
|
+
//#region src/utils/formula/store/formula-editor-context.ts
|
|
44
|
+
var L = I(Symbol("formula-editor-store-context")), R = "__root__", z = {
|
|
45
|
+
numeric: "numeric",
|
|
46
|
+
hierarchy: "hierarchy",
|
|
47
|
+
datetime: "datetime"
|
|
48
|
+
}, B = class extends g {
|
|
49
|
+
constructor(...e) {
|
|
50
|
+
super(...e), this._editors = /* @__PURE__ */ new Map();
|
|
51
|
+
}
|
|
52
|
+
registerEditor(e, t) {
|
|
53
|
+
this._editors.set(e ?? "__root__", t);
|
|
54
|
+
}
|
|
55
|
+
unregisterEditor(e) {
|
|
56
|
+
this._editors.delete(e ?? "__root__");
|
|
57
|
+
}
|
|
58
|
+
getEditor(e = null) {
|
|
59
|
+
return this._editors.get(e ?? "__root__");
|
|
60
|
+
}
|
|
61
|
+
getDropExpression(e, t, n, r) {
|
|
62
|
+
let i = [], a = "";
|
|
63
|
+
if (e === "text") a = r ?? "";
|
|
64
|
+
else if (e === "column") n && t && (a = `{${n}:${t}}`);
|
|
65
|
+
else if (e === "function") {
|
|
66
|
+
let e = this.functionDataMap[t], n = /^[a-z]/i.test(t ?? "");
|
|
67
|
+
switch (e?.type) {
|
|
68
|
+
case "infix":
|
|
69
|
+
a = `${n ? ` ${t} ` : t}${e.arity > 1 ? l() : ""}`;
|
|
70
|
+
break;
|
|
71
|
+
case "prefix_op":
|
|
72
|
+
a = `${t}${n ? " " : ""}${l()}`;
|
|
73
|
+
break;
|
|
74
|
+
case "prefix": {
|
|
75
|
+
let n = [];
|
|
76
|
+
for (let t = 0; t < e.arity; t++) n.push(l());
|
|
77
|
+
a = `${t}(${n.join(",")})`;
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
} else if (e === "aggregation") {
|
|
82
|
+
let e = t, n = this.aggregationFunctionDataMap[e];
|
|
83
|
+
if (this.multiStageAggregation) {
|
|
84
|
+
let t = {
|
|
85
|
+
widgetId: d(),
|
|
86
|
+
aggregationFunction: e,
|
|
87
|
+
grouping: v.GROUP,
|
|
88
|
+
content: ""
|
|
89
|
+
};
|
|
90
|
+
a = _(t.widgetId), i.push(t);
|
|
91
|
+
} else a = `${e}(${n?.arity > 0 ? l() : ""})`;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
expression: a,
|
|
95
|
+
aggregationWidgets: i
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
onExtendExpression(e) {
|
|
99
|
+
let { type: t, id: n, aggregationWidgetId: r, datasetId: i, targetEmptyArgumentId: a, textContent: o } = e;
|
|
100
|
+
if (t === "aggregation" && r && !this.nestedAggregation) return;
|
|
101
|
+
let { expression: s, aggregationWidgets: c } = this.getDropExpression(t, n, i, o), l = this.getEditor(r);
|
|
102
|
+
!l || !s || (this.addWidgets(c), this._markAggregationForFocus(c), a && l.state.doc.toString().includes(`##EMPTYARG-${a}##`) ? x(l, s, a) : te(l, s));
|
|
103
|
+
}
|
|
104
|
+
getAutoCompletionList(e, t) {
|
|
105
|
+
let n = [], r = {
|
|
106
|
+
...this.functionDataMap,
|
|
107
|
+
...this.aggregationFunctionDataMap
|
|
108
|
+
};
|
|
109
|
+
for (let e of Object.keys(r)) {
|
|
110
|
+
let i = u.includes(e);
|
|
111
|
+
if (i && !t) continue;
|
|
112
|
+
let a = r[e];
|
|
113
|
+
n.push({
|
|
114
|
+
label: a.label(),
|
|
115
|
+
type: i ? "namespace" : "function",
|
|
116
|
+
info: () => this._buildOperationInfo(a),
|
|
117
|
+
iconDef: i ? re : C,
|
|
118
|
+
apply: (t, n, r, a) => {
|
|
119
|
+
let { expression: o, aggregationWidgets: s } = this.getDropExpression(i ? "aggregation" : "function", e);
|
|
120
|
+
this.addWidgets(s), this._markAggregationForFocus(s), t.dispatch({ changes: {
|
|
121
|
+
from: r,
|
|
122
|
+
to: a,
|
|
123
|
+
insert: o
|
|
124
|
+
} });
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
for (let t of e) for (let r of t.columns) {
|
|
129
|
+
let i = r.columnId, s = o(r.name, this.contentLanguage);
|
|
130
|
+
!i || !s || n.push({
|
|
131
|
+
label: s,
|
|
132
|
+
type: "variable",
|
|
133
|
+
info: e.length > 1 ? o(t.name, this.contentLanguage) : "",
|
|
134
|
+
iconDef: a(r),
|
|
135
|
+
apply: this.getDropExpression("column", i, t.id).expression
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
return n;
|
|
139
|
+
}
|
|
140
|
+
_buildOperationInfo(e) {
|
|
141
|
+
let t = document.createElement("div");
|
|
142
|
+
t.className = "cm-completion-info-formula";
|
|
143
|
+
let n = e.example();
|
|
144
|
+
if (n) {
|
|
145
|
+
let r = document.createElement("code");
|
|
146
|
+
if (r.className = "cm-completion-info-example", e.exampleHasIcons) for (let e of n.split(/(⟨\w+⟩)/g)) {
|
|
147
|
+
let t = e.match(/^⟨(\w+)⟩$/), n = t ? z[t[1]] : void 0;
|
|
148
|
+
if (n) {
|
|
149
|
+
let e = document.createElement("span");
|
|
150
|
+
e.className = "cm-completion-info-icon", e.appendChild(ne(a({ type: n }, "s"))), r.appendChild(e);
|
|
151
|
+
} else e && r.appendChild(document.createTextNode(e));
|
|
152
|
+
}
|
|
153
|
+
else r.textContent = n;
|
|
154
|
+
t.appendChild(r);
|
|
155
|
+
}
|
|
156
|
+
let r = document.createElement("div");
|
|
157
|
+
return r.className = "cm-completion-info-desc", r.textContent = e.description(), t.appendChild(r), t;
|
|
158
|
+
}
|
|
159
|
+
}, V = class extends p {
|
|
160
|
+
constructor() {
|
|
161
|
+
super(), this._autoCompletionList = [], this.readonly = !1, this.placeholder = "", this.rows = 3, this.grows = !0, new F(this, {
|
|
162
|
+
context: L,
|
|
163
|
+
initialValue: this._store
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
_createStore() {
|
|
167
|
+
return new B();
|
|
168
|
+
}
|
|
169
|
+
willUpdate(e) {
|
|
170
|
+
super.willUpdate(e), e.has("readonly") && this._store.setReadonly(this.readonly);
|
|
171
|
+
}
|
|
172
|
+
_rebuildAutoCompletion() {
|
|
173
|
+
this._autoCompletionList = this._store.getAutoCompletionList(this._datasets, this.showAggregations);
|
|
174
|
+
}
|
|
175
|
+
_applyExternalExpression() {
|
|
176
|
+
this._applyingExternalExpression = !0;
|
|
177
|
+
try {
|
|
178
|
+
let e = this._syncExpressionToStore();
|
|
179
|
+
if (e === null) return;
|
|
180
|
+
let t = this._store.getEditor(null), n = this._codeMirrorElement;
|
|
181
|
+
t ? t.state.doc.toString() !== e && ee(t, e) : n && n.setContent(e);
|
|
182
|
+
} finally {
|
|
183
|
+
this._applyingExternalExpression = !1;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
_handleInputContentChanged(e) {
|
|
187
|
+
e.stopPropagation(), !this.readonly && (this._rootContent = e.detail.content, this._recomputeExpression());
|
|
188
|
+
}
|
|
189
|
+
_renderFormulaCodeMirror(e = {}) {
|
|
190
|
+
return this._codeMirrorLoaded ? T`
|
|
191
|
+
<luzmo-formula-codemirror
|
|
192
|
+
part=${P(e.part)}
|
|
193
|
+
.store=${this._store}
|
|
194
|
+
.datasets=${this._datasets}
|
|
195
|
+
content-language=${this.contentLanguage}
|
|
196
|
+
.placeholder=${this.placeholder}
|
|
197
|
+
.rows=${this.rows}
|
|
198
|
+
.maxRows=${this.maxRows}
|
|
199
|
+
.grows=${this.grows}
|
|
200
|
+
?readonly=${this.readonly}
|
|
201
|
+
?has-error=${e.hasError ?? !1}
|
|
202
|
+
.autoCompletionList=${this._autoCompletionList}
|
|
203
|
+
@luzmo-input-content-changed=${this._handleInputContentChanged}
|
|
204
|
+
></luzmo-formula-codemirror>
|
|
205
|
+
` : this._renderInputLoadingPlaceholder(e);
|
|
206
|
+
}
|
|
207
|
+
_renderInputLoadingPlaceholder(e) {
|
|
208
|
+
let t = `calc(${this.rows} * 1.5 * var(--luzmo-formula-font-size, var(--luzmo-font-size)) + 2 * var(--luzmo-spacing-3) + 2px)`, n = e.hasError ? "var(--luzmo-negative-color, #ca221c)" : "var(--luzmo-border-color, rgba(0, 0, 0, 0.1))", r = [
|
|
209
|
+
"box-sizing: border-box",
|
|
210
|
+
"display: flex",
|
|
211
|
+
"align-items: flex-start",
|
|
212
|
+
"justify-content: flex-start",
|
|
213
|
+
"padding: var(--luzmo-spacing-3) var(--luzmo-spacing-4)",
|
|
214
|
+
"width: 100%",
|
|
215
|
+
`min-height: ${t}`,
|
|
216
|
+
`border: 1px solid ${n}`,
|
|
217
|
+
"border-radius: var(--luzmo-border-radius)",
|
|
218
|
+
"border-end-start-radius: var(--luzmo-formula-field-bottom-radius, var(--luzmo-border-radius))",
|
|
219
|
+
"border-end-end-radius: var(--luzmo-formula-field-bottom-radius, var(--luzmo-border-radius))",
|
|
220
|
+
"background: var(--luzmo-background-color, #ffffff)"
|
|
221
|
+
].join("; ");
|
|
222
|
+
return T`
|
|
223
|
+
<div
|
|
224
|
+
class="formula-codemirror-loading"
|
|
225
|
+
part=${P(e.part)}
|
|
226
|
+
role="status"
|
|
227
|
+
aria-busy="true"
|
|
228
|
+
style=${r}
|
|
229
|
+
>
|
|
230
|
+
<luzmo-progress-circle
|
|
231
|
+
indeterminate
|
|
232
|
+
.size=${this.size}
|
|
233
|
+
.label=${j("Loading the formula editor", { desc: "Spinner label while the formula editor input loads" })}
|
|
234
|
+
></luzmo-progress-circle>
|
|
235
|
+
</div>
|
|
236
|
+
`;
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
r([O({
|
|
240
|
+
type: Boolean,
|
|
241
|
+
reflect: !0
|
|
242
|
+
})], V.prototype, "readonly", void 0), r([O({ type: String })], V.prototype, "placeholder", void 0), r([O({ type: Number })], V.prototype, "rows", void 0), r([O({
|
|
243
|
+
type: Number,
|
|
244
|
+
attribute: "max-rows"
|
|
245
|
+
})], V.prototype, "maxRows", void 0), r([O({ type: Boolean })], V.prototype, "grows", void 0);
|
|
246
|
+
//#endregion
|
|
42
247
|
//#region src/utils/formula/config/validate-expression.ts
|
|
43
|
-
var
|
|
248
|
+
var H = [
|
|
44
249
|
"numeric",
|
|
45
250
|
"hierarchy",
|
|
46
251
|
"datetime",
|
|
47
252
|
"spatial"
|
|
48
|
-
],
|
|
253
|
+
], U = [
|
|
49
254
|
"true",
|
|
50
255
|
"false",
|
|
51
256
|
"null"
|
|
52
|
-
],
|
|
257
|
+
], W = [
|
|
53
258
|
"GROUP",
|
|
54
259
|
"GROUPFULL",
|
|
55
260
|
"GROUPINEX"
|
|
56
|
-
],
|
|
57
|
-
function
|
|
261
|
+
], G = /'(?:[^']|'')*'|"(?:[^"]|"")*"/g, K = /\{[^}]*\}/g, q = /[A-Za-z_][A-Za-z0-9_]*/g;
|
|
262
|
+
function se(e, t) {
|
|
58
263
|
let n = /* @__PURE__ */ new Set();
|
|
59
264
|
for (let t of Object.keys(e)) /^[A-Za-z_]/.test(t) && n.add(t.toUpperCase());
|
|
60
265
|
for (let e of Object.keys(t)) n.add(e.toUpperCase());
|
|
61
266
|
for (let e of [
|
|
62
|
-
...
|
|
63
|
-
...
|
|
64
|
-
...
|
|
267
|
+
...W,
|
|
268
|
+
...H,
|
|
269
|
+
...U
|
|
65
270
|
]) n.add(e.toUpperCase());
|
|
66
271
|
return n;
|
|
67
272
|
}
|
|
68
|
-
function
|
|
69
|
-
let n = e.replace(
|
|
70
|
-
|
|
273
|
+
function ce(e, t) {
|
|
274
|
+
let n = e.replace(G, " ").replace(K, " ");
|
|
275
|
+
q.lastIndex = 0;
|
|
71
276
|
let r;
|
|
72
|
-
for (; (r =
|
|
277
|
+
for (; (r = q.exec(n)) !== null;) if (!t.has(r[0].toUpperCase())) return r[0];
|
|
73
278
|
return null;
|
|
74
279
|
}
|
|
75
280
|
//#endregion
|
|
76
281
|
//#region node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/element/custom-native-drag-preview/pointer-outside-of-preview.js
|
|
77
|
-
function
|
|
282
|
+
function le(e) {
|
|
78
283
|
return function(t) {
|
|
79
284
|
var n = t.container;
|
|
80
285
|
return Object.assign(n.style, {
|
|
@@ -88,7 +293,7 @@ function P(e) {
|
|
|
88
293
|
}
|
|
89
294
|
//#endregion
|
|
90
295
|
//#region src/components/formula-draggable-field/formula-draggable-field.module.scss?inline
|
|
91
|
-
var
|
|
296
|
+
var ue = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:border-box;width:100%;min-height:var(--formula-draggable-field-height);padding:0 var(--luzmo-spacing-3);border-radius:var(--luzmo-border-radius);background-color:var(--formula-draggable-field-background);color:var(--luzmo-font-color);font-family:var(--luzmo-font-family);font-size:var(--formula-draggable-field-font-size);text-align:start;cursor:grab;-webkit-user-select:none;user-select:none;border:none;display:flex}.draggable:hover{background-color:var(--luzmo-background-color-highlight)}.draggable:focus-visible{outline:2px solid var(--luzmo-primary);outline-offset:-2px}:host([disabled]) .draggable{opacity:.5;cursor:not-allowed}.draggable-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.drag-icon{color:var(--luzmo-font-color-extra-dimmed);font-size:var(--luzmo-formula-draggable-field-drag-icon-size,var(--formula-draggable-field-drag-icon-size));flex:none;align-items:center;display:inline-flex}.icon-slot{flex:none;align-items:center;display:none}.icon-slot.has-icon{display:inline-flex}.tooltip-content{gap:var(--luzmo-spacing-2);text-align:start;flex-direction:column;display:flex}:host{width:100%;font-family:var(--luzmo-font-family);--formula-draggable-field-height:var(--luzmo-component-height);--formula-draggable-field-font-size:var(--luzmo-font-size);--formula-draggable-field-background:transparent;--formula-draggable-field-drag-icon-size:var(--luzmo-font-size-s);font-size:var(--formula-draggable-field-font-size);display:flex}:host([size=s]){--formula-draggable-field-height:var(--luzmo-component-height-s);--formula-draggable-field-font-size:var(--luzmo-font-size-s);--formula-draggable-field-drag-icon-size:var(--luzmo-font-size-xs)}:host([size=l]){--formula-draggable-field-height:var(--luzmo-component-height-l);--formula-draggable-field-font-size:var(--luzmo-font-size-l);--formula-draggable-field-drag-icon-size:var(--luzmo-font-size)}:host([size=xl]){--formula-draggable-field-height:var(--luzmo-component-height-xl);--formula-draggable-field-font-size:var(--luzmo-font-size-xl);--formula-draggable-field-drag-icon-size:var(--luzmo-font-size-l)}:host([variant=highlight]){--formula-draggable-field-background:var(--luzmo-formula-draggable-field-background,var(--luzmo-background-color-highlight))}", J = class extends n(t, {
|
|
92
297
|
validSizes: [
|
|
93
298
|
"s",
|
|
94
299
|
"m",
|
|
@@ -101,7 +306,7 @@ var F = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bor
|
|
|
101
306
|
super(...e), this.kind = "", this.value = "", this.label = "", this.description = "", this.tooltipPlacement = "right", this.variant = "default", this.disabled = !1, this._hasIcon = !1, this._hasTooltipSlot = !1;
|
|
102
307
|
}
|
|
103
308
|
static {
|
|
104
|
-
this.styles =
|
|
309
|
+
this.styles = D(ue);
|
|
105
310
|
}
|
|
106
311
|
_handleIconSlotChange(e) {
|
|
107
312
|
this._hasIcon = e.target.assignedNodes({ flatten: !0 }).length > 0;
|
|
@@ -127,9 +332,9 @@ var F = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bor
|
|
|
127
332
|
value: this.value
|
|
128
333
|
}),
|
|
129
334
|
onGenerateDragPreview: ({ nativeSetDragImage: e }) => {
|
|
130
|
-
|
|
335
|
+
y({
|
|
131
336
|
nativeSetDragImage: e,
|
|
132
|
-
getOffset:
|
|
337
|
+
getOffset: le({
|
|
133
338
|
x: "8px",
|
|
134
339
|
y: "8px"
|
|
135
340
|
}),
|
|
@@ -141,7 +346,7 @@ var F = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bor
|
|
|
141
346
|
});
|
|
142
347
|
}
|
|
143
348
|
_buildDragPreview() {
|
|
144
|
-
let e = document.createElement("div"), t = this.variant === "highlight" ?
|
|
349
|
+
let e = document.createElement("div"), t = this.variant === "highlight" ? b(this, "--luzmo-formula-draggable-field-background") || b(this, "--luzmo-background-color-highlight") : b(this, "--luzmo-background-color");
|
|
145
350
|
return e.textContent = this.label, Object.assign(e.style, {
|
|
146
351
|
display: "inline-flex",
|
|
147
352
|
alignItems: "center",
|
|
@@ -150,14 +355,14 @@ var F = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bor
|
|
|
150
355
|
textOverflow: "ellipsis",
|
|
151
356
|
whiteSpace: "nowrap",
|
|
152
357
|
padding: "4px 8px",
|
|
153
|
-
borderRadius:
|
|
154
|
-
border: `1px solid ${
|
|
358
|
+
borderRadius: b(this, "--luzmo-border-radius") || "6px",
|
|
359
|
+
border: `1px solid ${b(this, "--luzmo-border-color")}`,
|
|
155
360
|
background: t,
|
|
156
|
-
color:
|
|
157
|
-
fontFamily:
|
|
361
|
+
color: b(this, "--luzmo-font-color"),
|
|
362
|
+
fontFamily: b(this, "--luzmo-font-family"),
|
|
158
363
|
fontSize: getComputedStyle(this).fontSize,
|
|
159
364
|
lineHeight: "1",
|
|
160
|
-
boxShadow:
|
|
365
|
+
boxShadow: b(this, "--luzmo-box-shadow") || "0 1px 4px rgb(0 0 0 / 15%)"
|
|
161
366
|
}), e;
|
|
162
367
|
}
|
|
163
368
|
_handleClick(e) {
|
|
@@ -185,7 +390,7 @@ var F = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bor
|
|
|
185
390
|
}
|
|
186
391
|
render() {
|
|
187
392
|
let e = this._hasTooltipSlot || !!this.description;
|
|
188
|
-
return
|
|
393
|
+
return T`
|
|
189
394
|
<button
|
|
190
395
|
class="draggable"
|
|
191
396
|
type="button"
|
|
@@ -196,7 +401,7 @@ var F = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bor
|
|
|
196
401
|
@mouseenter=${this._describe}
|
|
197
402
|
@focus=${this._describe}
|
|
198
403
|
>
|
|
199
|
-
<span class="drag-icon" aria-hidden="true">${
|
|
404
|
+
<span class="drag-icon" aria-hidden="true">${w(S)}</span>
|
|
200
405
|
<slot
|
|
201
406
|
name="icon"
|
|
202
407
|
class="icon-slot ${this._hasIcon ? "has-icon" : ""}"
|
|
@@ -210,7 +415,7 @@ var F = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bor
|
|
|
210
415
|
?disabled=${!e}
|
|
211
416
|
>
|
|
212
417
|
<div class="tooltip-content">
|
|
213
|
-
${this._hasTooltipSlot ?
|
|
418
|
+
${this._hasTooltipSlot ? E : this.description ? T`<span>${this.description}</span>` : E}
|
|
214
419
|
<slot name="tooltip" @slotchange=${this._handleTooltipSlotChange}></slot>
|
|
215
420
|
</div>
|
|
216
421
|
</luzmo-tooltip>
|
|
@@ -220,109 +425,109 @@ var F = ".draggable{align-items:center;gap:var(--luzmo-spacing-3);box-sizing:bor
|
|
|
220
425
|
};
|
|
221
426
|
//#endregion
|
|
222
427
|
//#region src/components/formula-draggable-field/index.ts
|
|
223
|
-
r([
|
|
428
|
+
r([O({ type: String })], J.prototype, "kind", void 0), r([O({ type: String })], J.prototype, "value", void 0), r([O({ type: String })], J.prototype, "label", void 0), r([O({ type: String })], J.prototype, "description", void 0), r([O({
|
|
224
429
|
type: String,
|
|
225
430
|
attribute: "tooltip-placement"
|
|
226
|
-
})],
|
|
431
|
+
})], J.prototype, "tooltipPlacement", void 0), r([O({
|
|
227
432
|
type: String,
|
|
228
433
|
reflect: !0
|
|
229
|
-
})],
|
|
434
|
+
})], J.prototype, "variant", void 0), r([O({
|
|
230
435
|
type: Boolean,
|
|
231
436
|
reflect: !0
|
|
232
|
-
})],
|
|
437
|
+
})], J.prototype, "disabled", void 0), r([k()], J.prototype, "_hasIcon", void 0), r([k()], J.prototype, "_hasTooltipSlot", void 0), customElements.get("luzmo-formula-draggable-field") || customElements.define("luzmo-formula-draggable-field", J);
|
|
233
438
|
//#endregion
|
|
234
439
|
//#region src/utils/formula/render-explanation-tooltip.ts
|
|
235
|
-
var
|
|
440
|
+
var de = {
|
|
236
441
|
numeric: "numeric",
|
|
237
442
|
hierarchy: "hierarchy",
|
|
238
443
|
datetime: "datetime"
|
|
239
444
|
};
|
|
240
|
-
function
|
|
241
|
-
return t ?
|
|
445
|
+
function fe(e, t) {
|
|
446
|
+
return t ? T`<code class="tooltip-example">${e.split(/(⟨\w+⟩)/g).map((e) => {
|
|
242
447
|
let t = e.match(/^⟨(\w+)⟩$/);
|
|
243
448
|
if (t) {
|
|
244
|
-
let e =
|
|
245
|
-
if (e) return
|
|
449
|
+
let e = de[t[1]];
|
|
450
|
+
if (e) return T`<span class="example-icon" aria-hidden="true">${w(a({ type: e }, "s"))}</span>`;
|
|
246
451
|
}
|
|
247
452
|
return e;
|
|
248
|
-
})}</code>` :
|
|
453
|
+
})}</code>` : T`<code class="tooltip-example">${e}</code>`;
|
|
249
454
|
}
|
|
250
|
-
function
|
|
251
|
-
return !e && !t ?
|
|
455
|
+
function Y(e, t, n) {
|
|
456
|
+
return !e && !t ? E : T`
|
|
252
457
|
<div slot="tooltip" class="explanation-tooltip">
|
|
253
|
-
${e ?
|
|
254
|
-
${t ?
|
|
458
|
+
${e ? T`<span>${e}</span>` : E}
|
|
459
|
+
${t ? fe(t, n) : E}
|
|
255
460
|
</div>
|
|
256
461
|
`;
|
|
257
462
|
}
|
|
258
463
|
//#endregion
|
|
259
464
|
//#region src/components/formula-editor/formula-aggregations-list.ts
|
|
260
|
-
var
|
|
261
|
-
function
|
|
262
|
-
return
|
|
465
|
+
var X = c();
|
|
466
|
+
function pe(e) {
|
|
467
|
+
return T`
|
|
263
468
|
<div class="list-loading" role="status" part="list-loading">
|
|
264
469
|
<luzmo-progress-circle
|
|
265
470
|
indeterminate
|
|
266
|
-
.label=${
|
|
471
|
+
.label=${j("Loading aggregations", { desc: "Formula editor aggregations list loading spinner label" })}
|
|
267
472
|
.size=${e}
|
|
268
473
|
></luzmo-progress-circle>
|
|
269
474
|
</div>
|
|
270
475
|
`;
|
|
271
476
|
}
|
|
272
|
-
function
|
|
273
|
-
return
|
|
477
|
+
function me({ size: e, explanationTooltips: t, disabled: n }) {
|
|
478
|
+
return T`
|
|
274
479
|
<div class="list-items" part="list-items" role="list">
|
|
275
|
-
${
|
|
480
|
+
${N(u, (e) => e, (r) => T`
|
|
276
481
|
<luzmo-formula-draggable-field
|
|
277
482
|
role="listitem"
|
|
278
483
|
kind="aggregation"
|
|
279
484
|
value=${r}
|
|
280
|
-
.label=${
|
|
485
|
+
.label=${X[r]?.label() ?? r}
|
|
281
486
|
.size=${e}
|
|
282
487
|
?disabled=${n}
|
|
283
488
|
>
|
|
284
|
-
${t ?
|
|
489
|
+
${t ? Y(X[r]?.description() ?? "", X[r]?.example() ?? "", X[r]?.exampleHasIcons ?? !1) : E}
|
|
285
490
|
</luzmo-formula-draggable-field>
|
|
286
491
|
`)}
|
|
287
492
|
</div>
|
|
288
493
|
`;
|
|
289
494
|
}
|
|
290
|
-
function
|
|
291
|
-
return
|
|
495
|
+
function he(e) {
|
|
496
|
+
return T`
|
|
292
497
|
<div class="list" part="list aggregations-list">
|
|
293
498
|
<luzmo-field-label class="list-header" part="list-header" .size=${e.size}
|
|
294
|
-
>${
|
|
499
|
+
>${j("Aggregations", { desc: "Formula editor aggregations list title" })}</luzmo-field-label
|
|
295
500
|
>
|
|
296
|
-
${e.loading ?
|
|
501
|
+
${e.loading ? pe(e.size) : me(e)}
|
|
297
502
|
</div>
|
|
298
503
|
`;
|
|
299
504
|
}
|
|
300
505
|
//#endregion
|
|
301
506
|
//#region src/components/formula-editor/formula-datasets-list.ts
|
|
302
|
-
function
|
|
507
|
+
function ge(e, t, n) {
|
|
303
508
|
let r = t.trim().toLowerCase();
|
|
304
509
|
return r ? e.columns.filter((e) => o(e.name, n).toLowerCase().includes(r)) : e.columns;
|
|
305
510
|
}
|
|
306
|
-
function
|
|
307
|
-
return
|
|
511
|
+
function _e(e) {
|
|
512
|
+
return T`
|
|
308
513
|
<div class="list-loading" role="status" part="list-loading">
|
|
309
514
|
<luzmo-progress-circle
|
|
310
515
|
indeterminate
|
|
311
|
-
.label=${
|
|
516
|
+
.label=${j("Loading columns", { desc: "Formula editor datasets list loading spinner label" })}
|
|
312
517
|
.size=${e}
|
|
313
518
|
></luzmo-progress-circle>
|
|
314
519
|
</div>
|
|
315
520
|
`;
|
|
316
521
|
}
|
|
317
|
-
function
|
|
522
|
+
function ve(e, t) {
|
|
318
523
|
let { datasets: n, contentLanguage: r, size: i, disabled: a, searchQuery: s, collapsed: c, onToggleCollapse: l, onInsertColumn: u } = e;
|
|
319
|
-
return
|
|
524
|
+
return T`
|
|
320
525
|
<div class="list-scroll" part="list-scroll">
|
|
321
|
-
${
|
|
322
|
-
let n =
|
|
323
|
-
return n.length === 0 ?
|
|
526
|
+
${N(n, (e) => e.id, (e) => {
|
|
527
|
+
let n = ge(e, s, r), d = c.has(e.id);
|
|
528
|
+
return n.length === 0 ? E : T`
|
|
324
529
|
<div class="dataset-group" part="dataset-group">
|
|
325
|
-
${t ?
|
|
530
|
+
${t ? T`<button
|
|
326
531
|
class="dataset-group-header"
|
|
327
532
|
part="dataset-group-header"
|
|
328
533
|
type="button"
|
|
@@ -330,12 +535,12 @@ function K(e, t) {
|
|
|
330
535
|
@click=${() => l(e.id)}
|
|
331
536
|
>
|
|
332
537
|
<span class="dataset-group-icon" aria-hidden="true"
|
|
333
|
-
>${
|
|
538
|
+
>${w(d ? oe : ae)}</span
|
|
334
539
|
>
|
|
335
540
|
<span class="dataset-group-label">${o(e.name, r) || e.id}</span>
|
|
336
|
-
</button>` :
|
|
337
|
-
${d ?
|
|
338
|
-
${
|
|
541
|
+
</button>` : E}
|
|
542
|
+
${d ? E : T`<div class="dataset-group-fields" role="list">
|
|
543
|
+
${N(n, (e) => `${e.datasetId}:${e.columnId}`, (e) => T`
|
|
339
544
|
<luzmo-data-field
|
|
340
545
|
role="listitem"
|
|
341
546
|
hide-sublevels
|
|
@@ -353,115 +558,115 @@ function K(e, t) {
|
|
|
353
558
|
</div>
|
|
354
559
|
`;
|
|
355
560
|
}
|
|
356
|
-
function
|
|
561
|
+
function ye(e) {
|
|
357
562
|
let { size: t, loading: n = !1, disabled: r = !1, searchQuery: i, onSearchInput: a } = e, o = e.datasets.length > 1;
|
|
358
|
-
return
|
|
563
|
+
return T`
|
|
359
564
|
<div class="list" part="list datasets-list">
|
|
360
565
|
<luzmo-field-label class="list-header" part="list-header" .size=${t}
|
|
361
|
-
>${
|
|
566
|
+
>${j("Data", {
|
|
362
567
|
id: "formula-datasets-list-title",
|
|
363
568
|
desc: "Formula editor datasets list title"
|
|
364
569
|
})}</luzmo-field-label
|
|
365
570
|
>
|
|
366
571
|
<luzmo-search
|
|
367
572
|
.size=${t}
|
|
368
|
-
.placeholder=${
|
|
573
|
+
.placeholder=${j("Search columns...", { desc: "Formula editor datasets list search placeholder" })}
|
|
369
574
|
.value=${i}
|
|
370
575
|
?disabled=${r || n}
|
|
371
576
|
@input=${a}
|
|
372
577
|
></luzmo-search>
|
|
373
|
-
${n ?
|
|
578
|
+
${n ? _e(t) : ve(e, o)}
|
|
374
579
|
</div>
|
|
375
580
|
`;
|
|
376
581
|
}
|
|
377
582
|
//#endregion
|
|
378
583
|
//#region src/components/formula-editor/formula-description.ts
|
|
379
|
-
var
|
|
584
|
+
var be = {
|
|
380
585
|
numeric: "numeric",
|
|
381
586
|
hierarchy: "hierarchy",
|
|
382
587
|
datetime: "datetime"
|
|
383
|
-
},
|
|
384
|
-
function
|
|
385
|
-
return t ?
|
|
588
|
+
}, xe = h(), Se = c(), Ce = s();
|
|
589
|
+
function Z(e, t) {
|
|
590
|
+
return t ? T`<code class="example-code">${e.split(/(⟨\w+⟩)/g).map((e) => {
|
|
386
591
|
let t = e.match(/^⟨(\w+)⟩$/);
|
|
387
592
|
if (t) {
|
|
388
|
-
let e =
|
|
389
|
-
if (e) return
|
|
593
|
+
let e = be[t[1]];
|
|
594
|
+
if (e) return T`<span class="example-icon" aria-hidden="true">${w(a({ type: e }, "s"))}</span>`;
|
|
390
595
|
}
|
|
391
596
|
return e;
|
|
392
|
-
})}</code>` :
|
|
597
|
+
})}</code>` : T`<code class="example-code">${e}</code>`;
|
|
393
598
|
}
|
|
394
|
-
function
|
|
395
|
-
if (!e) return
|
|
599
|
+
function we(e) {
|
|
600
|
+
if (!e) return T`
|
|
396
601
|
<div class="description-empty" part="description-empty">
|
|
397
|
-
${
|
|
602
|
+
${j("Hover a function or aggregation to see its description.", { desc: "Formula editor description empty state" })}
|
|
398
603
|
</div>
|
|
399
604
|
`;
|
|
400
605
|
if (e.kind === "grouping") {
|
|
401
|
-
let t =
|
|
402
|
-
return
|
|
606
|
+
let t = Ce[e.id];
|
|
607
|
+
return T`
|
|
403
608
|
<div class="description-title" part="description-title">${t?.label() ?? e.id}</div>
|
|
404
609
|
<div class="description-text" part="description-text">${t?.description() ?? ""}</div>
|
|
405
610
|
`;
|
|
406
611
|
}
|
|
407
|
-
let t = e.kind === "aggregation" ?
|
|
408
|
-
return t ?
|
|
612
|
+
let t = e.kind === "aggregation" ? Se[e.id] : xe[e.id];
|
|
613
|
+
return t ? T`
|
|
409
614
|
<div class="description-title" part="description-title">${t.label()}</div>
|
|
410
|
-
${
|
|
615
|
+
${Z(t.example(), t.exampleHasIcons ?? !1)}
|
|
411
616
|
<div class="description-text" part="description-text">${t.description()}</div>
|
|
412
|
-
` :
|
|
617
|
+
` : E;
|
|
413
618
|
}
|
|
414
|
-
function
|
|
415
|
-
return
|
|
619
|
+
function Te({ target: e, size: t }) {
|
|
620
|
+
return T`
|
|
416
621
|
<div class="list description" part="list description-list">
|
|
417
622
|
<luzmo-field-label class="list-header" part="list-header" .size=${t}
|
|
418
|
-
>${
|
|
623
|
+
>${j("Description", { desc: "Formula editor description title" })}</luzmo-field-label
|
|
419
624
|
>
|
|
420
|
-
${
|
|
625
|
+
${we(e)}
|
|
421
626
|
</div>
|
|
422
627
|
`;
|
|
423
628
|
}
|
|
424
629
|
//#endregion
|
|
425
630
|
//#region src/components/formula-editor/formula-functions-list.ts
|
|
426
|
-
var
|
|
427
|
-
function
|
|
428
|
-
return
|
|
631
|
+
var Q = h();
|
|
632
|
+
function Ee(e) {
|
|
633
|
+
return T`
|
|
429
634
|
<div class="list-loading" role="status" part="list-loading">
|
|
430
635
|
<luzmo-progress-circle
|
|
431
636
|
indeterminate
|
|
432
|
-
.label=${
|
|
637
|
+
.label=${j("Loading functions", { desc: "Formula editor functions list loading spinner label" })}
|
|
433
638
|
.size=${e}
|
|
434
639
|
></luzmo-progress-circle>
|
|
435
640
|
</div>
|
|
436
641
|
`;
|
|
437
642
|
}
|
|
438
|
-
function
|
|
439
|
-
return
|
|
643
|
+
function De(e, { size: t, explanationTooltips: n, disabled: r }) {
|
|
644
|
+
return T`
|
|
440
645
|
<div class="list-items" part="list-items" role="list">
|
|
441
|
-
${
|
|
646
|
+
${N(e, (e) => e, (e) => T`
|
|
442
647
|
<luzmo-formula-draggable-field
|
|
443
648
|
role="listitem"
|
|
444
649
|
kind="function"
|
|
445
650
|
value=${e}
|
|
446
|
-
.label=${
|
|
651
|
+
.label=${Q[e]?.label() ?? e}
|
|
447
652
|
.size=${t}
|
|
448
653
|
?disabled=${r}
|
|
449
654
|
>
|
|
450
|
-
${n ?
|
|
655
|
+
${n ? Y(Q[e]?.description() ?? "", Q[e]?.example() ?? "", Q[e]?.exampleHasIcons ?? !1) : E}
|
|
451
656
|
</luzmo-formula-draggable-field>
|
|
452
657
|
`)}
|
|
453
658
|
</div>
|
|
454
659
|
`;
|
|
455
660
|
}
|
|
456
|
-
function
|
|
457
|
-
let { size: t, loading: n = !1, disabled: r = !1, selectedCategory: i, onCategoryChange: a } = e, o =
|
|
661
|
+
function Oe(e) {
|
|
662
|
+
let { size: t, loading: n = !1, disabled: r = !1, selectedCategory: i, onCategoryChange: a } = e, o = f(), s = o.find((e) => e.key === i) ?? o[0], c = o.map((e) => ({
|
|
458
663
|
value: e.key,
|
|
459
664
|
label: e.title()
|
|
460
665
|
}));
|
|
461
|
-
return
|
|
666
|
+
return T`
|
|
462
667
|
<div class="list" part="list functions-list">
|
|
463
668
|
<luzmo-field-label class="list-header" part="list-header" .size=${t}
|
|
464
|
-
>${
|
|
669
|
+
>${j("Functions", { desc: "Formula editor functions list title" })}</luzmo-field-label
|
|
465
670
|
>
|
|
466
671
|
<luzmo-select
|
|
467
672
|
selects="single"
|
|
@@ -469,29 +674,29 @@ function le(e) {
|
|
|
469
674
|
.size=${t}
|
|
470
675
|
.options=${c}
|
|
471
676
|
.value=${[s.key]}
|
|
472
|
-
aria-label=${
|
|
677
|
+
aria-label=${j("Function category", { desc: "Accessible label for the function category selector" })}
|
|
473
678
|
?disabled=${r || n}
|
|
474
679
|
@change=${a}
|
|
475
680
|
></luzmo-select>
|
|
476
|
-
${n ?
|
|
681
|
+
${n ? Ee(t) : De(s.functions, e)}
|
|
477
682
|
</div>
|
|
478
683
|
`;
|
|
479
684
|
}
|
|
480
685
|
//#endregion
|
|
481
686
|
//#region src/components/formula-editor/formula-editor.module.scss?inline
|
|
482
|
-
var
|
|
687
|
+
var ke = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);--luzmo-formula-editor-error-background:color-mix(in srgb, var(--luzmo-negative-color) 10%, var(--luzmo-background-color) 90%);--luzmo-formula-editor-error-text-color:var(--luzmo-font-color);--luzmo-formula-font-size:var(--luzmo-font-size);--luzmo-formula-pill-disclosure-icon-size:var(--luzmo-font-size);--luzmo-formula-grouping-icon-size:var(--luzmo-icon-size-m);--luzmo-formula-control-height:calc(var(--luzmo-component-height) - 2 * var(--luzmo-spacing-1));--formula-editor-lists-height:24rem}:host([size=s]){--luzmo-formula-font-size:var(--luzmo-font-size-s);--luzmo-formula-control-height:calc(var(--luzmo-component-height-s) - 2 * var(--luzmo-spacing-1));--luzmo-formula-grouping-icon-size:var(--luzmo-icon-size-s);--formula-editor-lists-height:20rem}:host([size=l]){--luzmo-formula-font-size:var(--luzmo-font-size-l);--luzmo-formula-control-height:calc(var(--luzmo-component-height-l) - 2 * var(--luzmo-spacing-1));--luzmo-formula-grouping-icon-size:var(--luzmo-icon-size-l);--formula-editor-lists-height:28rem}:host([size=xl]){--luzmo-formula-font-size:var(--luzmo-font-size-xl);--luzmo-formula-control-height:calc(var(--luzmo-component-height-xl) - 2 * var(--luzmo-spacing-1));--luzmo-formula-grouping-icon-size:var(--luzmo-icon-size-xl);--formula-editor-lists-height:32rem}:host{box-sizing:border-box;width:100%;max-width:100%;font-family:var(--luzmo-font-family);color:var(--luzmo-font-color);display:block}.formula-editor{flex-direction:column;width:100%;display:flex}luzmo-formula-codemirror,.formula-codemirror-loading{--luzmo-formula-field-bottom-radius:0;z-index:1;width:100%;position:relative}.error{align-items:flex-start;gap:var(--luzmo-spacing-2);padding:var(--luzmo-spacing-2) var(--luzmo-spacing-3);border:1px solid var(--luzmo-formula-editor-error-color,var(--luzmo-negative-color));background:var(--luzmo-formula-editor-error-background,color-mix(in srgb, var(--luzmo-negative-color) 10%, var(--luzmo-background-color) 90%));color:var(--luzmo-formula-editor-error-text-color,var(--luzmo-font-color));font-size:var(--luzmo-font-size-s);border-block-start:0;line-height:1.4;display:flex}.error svg{flex:none;margin-block-start:.2em}.validating{align-items:center;gap:var(--luzmo-spacing-2);padding:var(--luzmo-spacing-2) var(--luzmo-spacing-3);border:1px solid var(--luzmo-border-color);background:var(--luzmo-background-color);color:var(--luzmo-font-color-extra-dimmed);font-size:var(--luzmo-font-size-s);border-block-start:0;line-height:1.4;display:flex}.lists{box-sizing:border-box;min-height:0;border:1px solid var(--luzmo-border-color);border-block-start:0;border-end-end-radius:var(--luzmo-border-radius);border-end-start-radius:var(--luzmo-border-radius);grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:0;padding-block-start:var(--luzmo-formula-editor-gap,0);display:grid}:host([show-aggregations]) .lists,:host([explanation-display=description]) .lists{grid-template-columns:repeat(3,minmax(0,1fr))}:host([show-aggregations][explanation-display=description]) .lists{grid-template-columns:repeat(4,minmax(0,1fr))}.lists>*{min-width:0;padding:var(--luzmo-formula-editor-list-padding,var(--luzmo-spacing-3));--luzmo-formula-list-height:var(--luzmo-formula-editor-lists-height,var(--formula-editor-lists-height,16rem))}.lists>:not(:last-child){border-inline-end:1px solid var(--luzmo-border-color)}.lists{--list-text-font-size:var(--luzmo-font-size)}:host([size=s]) .lists{--list-text-font-size:var(--luzmo-font-size-s)}:host([size=l]) .lists{--list-text-font-size:var(--luzmo-font-size-l)}:host([size=xl]) .lists{--list-text-font-size:var(--luzmo-font-size-xl)}.lists .list{gap:var(--luzmo-spacing-2);min-height:0;height:var(--luzmo-formula-list-height,100%);box-sizing:border-box;flex-direction:column;display:flex}.lists .list-header{flex-shrink:0;margin-block-end:var(--luzmo-spacing-1);display:block}.lists .list-items{gap:var(--luzmo-spacing-1);flex-direction:column;align-content:flex-start;min-height:0;display:flex;overflow-y:auto}.lists .list-items::-webkit-scrollbar{width:var(--luzmo-scrollbar-width,6px)}.lists .list-items::-webkit-scrollbar-track{background:var(--luzmo-scrollbar-track-background,transparent);border-radius:var(--luzmo-scrollbar-track-border-radius,4px)}.lists .list-items::-webkit-scrollbar-thumb{background:var(--luzmo-scrollbar-thumb-background,#0003);border-radius:var(--luzmo-scrollbar-thumb-border-radius,4px)}.lists .list-items::-webkit-scrollbar-thumb:hover{background:var(--luzmo-scrollbar-thumb-hover-background,#00000059)}.lists .list-items{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-scrollbar-thumb-background,#0003) var(--luzmo-scrollbar-track-background,transparent)}.lists .list-scroll{gap:var(--luzmo-spacing-2,.5rem);flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden auto}.lists .list-scroll::-webkit-scrollbar{width:var(--luzmo-scrollbar-width,6px)}.lists .list-scroll::-webkit-scrollbar-track{background:var(--luzmo-scrollbar-track-background,transparent);border-radius:var(--luzmo-scrollbar-track-border-radius,4px)}.lists .list-scroll::-webkit-scrollbar-thumb{background:var(--luzmo-scrollbar-thumb-background,#0003);border-radius:var(--luzmo-scrollbar-thumb-border-radius,4px)}.lists .list-scroll::-webkit-scrollbar-thumb:hover{background:var(--luzmo-scrollbar-thumb-hover-background,#00000059)}.lists .list-scroll{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-scrollbar-thumb-background,#0003) var(--luzmo-scrollbar-track-background,transparent)}.lists luzmo-select,.lists luzmo-search{width:100%}.lists .list-loading{min-height:0;padding:var(--luzmo-spacing-4);flex:1;justify-content:center;align-items:center;display:flex}.lists .dataset-group{gap:var(--luzmo-spacing-1);flex-direction:column;display:flex}.lists .dataset-group-header{align-items:center;gap:var(--luzmo-spacing-1);width:100%;padding:var(--luzmo-spacing-1) 0;color:var(--luzmo-font-color-extra-dimmed);font:inherit;font-size:var(--list-text-font-size);font-weight:var(--luzmo-font-weight-bold);text-align:start;cursor:pointer;background:0 0;border:none;display:flex}.lists .dataset-group-fields{gap:var(--luzmo-spacing-1);flex-direction:column;display:flex}.lists .dataset-group-fields luzmo-data-field{--luzmo-data-field-level-border-width:0;--luzmo-data-field-level-background-color:transparent;--luzmo-data-field-level-horizontal-padding:var(--luzmo-spacing-3);--luzmo-data-field-level-gap:var(--luzmo-spacing-3);--luzmo-data-field-level-background-color-hover:var(--luzmo-formula-editor-data-field-background-color-hover,var(--luzmo-background-color-highlight));--luzmo-data-field-level-border-color-hover:var(--luzmo-formula-editor-data-field-border-color-hover,var(--luzmo-background-color-highlight));--luzmo-data-field-level-background-color-active:var(--luzmo-formula-editor-data-field-background-color-active,var(--luzmo-background-color-highlight-down));--luzmo-data-field-level-border-color-active:var(--luzmo-formula-editor-data-field-border-color-active,var(--luzmo-background-color-highlight-down));--luzmo-data-field-level-background-color-focus-visible:var(--luzmo-formula-editor-data-field-background-color-focus,var(--luzmo-background-color-highlight-focus))}.lists .description{gap:var(--luzmo-spacing-2)}.lists .description-title{font-weight:var(--luzmo-font-weight-bold);font-size:var(--list-text-font-size)}.lists .description-text{font-size:var(--list-text-font-size);color:var(--luzmo-font-color-extra-dimmed);line-height:1.4}.lists .description-empty{font-size:var(--list-text-font-size);color:var(--luzmo-font-color-tertiary,#767676);font-style:italic}.lists .example-code{align-items:center;gap:var(--luzmo-spacing-1);padding:var(--luzmo-spacing-2);border-radius:var(--luzmo-border-radius-s);background-color:var(--luzmo-background-color-highlight);font-family:var(--luzmo-font-family-mono,monospace);font-size:var(--list-text-font-size);flex-wrap:wrap;display:inline-flex}.lists .example-icon{vertical-align:middle;display:inline-flex}.lists .explanation-tooltip{gap:var(--luzmo-spacing-2);text-align:start;flex-direction:column;display:flex}.lists .explanation-tooltip .tooltip-example{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,Liberation Mono,monospace;font-weight:var(--luzmo-font-weight-bold,700);white-space:pre-wrap;display:block}.lists .explanation-tooltip .example-icon{display:inline}", Ae = 750, $ = class extends V {
|
|
483
688
|
constructor(...e) {
|
|
484
689
|
super(...e), this.expressionResource = "formula", this.explanationDisplay = "tooltip", this._loadingDatasets = !1, this._describeTarget = null, this._validity = {
|
|
485
690
|
valid: !0,
|
|
486
691
|
error: null,
|
|
487
692
|
validating: !1
|
|
488
|
-
}, this._selectedCategory = "string", this._searchQuery = "", this._collapsedDatasets = /* @__PURE__ */ new Set(), this._validWordIdentifiers =
|
|
693
|
+
}, this._selectedCategory = "string", this._searchQuery = "", this._collapsedDatasets = /* @__PURE__ */ new Set(), this._validWordIdentifiers = se(this._store.functionDataMap, this._store.aggregationFunctionDataMap), this._validationSequence = 0;
|
|
489
694
|
}
|
|
490
695
|
static {
|
|
491
|
-
this.styles =
|
|
696
|
+
this.styles = D(ke);
|
|
492
697
|
}
|
|
493
698
|
get _emitDebounceMs() {
|
|
494
|
-
return
|
|
699
|
+
return Ae;
|
|
495
700
|
}
|
|
496
701
|
_onExpressionComputed(e) {
|
|
497
702
|
e !== this._lastEmittedExpression && (this._validate(e), this._emitExpressionChanged(e));
|
|
@@ -539,11 +744,11 @@ var ue = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
539
744
|
_localValidity(e) {
|
|
540
745
|
return e.trim() ? e.includes("##EMPTYARG-") ? {
|
|
541
746
|
valid: !1,
|
|
542
|
-
error:
|
|
747
|
+
error: j("Complete all empty arguments.", { desc: "Formula editor validation error for empty arguments" }),
|
|
543
748
|
validating: !1
|
|
544
|
-
} :
|
|
749
|
+
} : m.test(e) ? {
|
|
545
750
|
valid: !1,
|
|
546
|
-
error:
|
|
751
|
+
error: j("Provide a value for every aggregation.", { desc: "Formula editor validation error for empty aggregations" }),
|
|
547
752
|
validating: !1
|
|
548
753
|
} : {
|
|
549
754
|
valid: !0,
|
|
@@ -556,10 +761,10 @@ var ue = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
556
761
|
};
|
|
557
762
|
}
|
|
558
763
|
_offlineValidity(e) {
|
|
559
|
-
let t =
|
|
764
|
+
let t = ce(e, this._validWordIdentifiers);
|
|
560
765
|
return t ? {
|
|
561
766
|
valid: !1,
|
|
562
|
-
error:
|
|
767
|
+
error: j(M`'${t}' is not a valid column, function, or value.`, { desc: "Formula editor validation error for unresolved free text in the expression" }),
|
|
563
768
|
validating: !1
|
|
564
769
|
} : {
|
|
565
770
|
valid: !0,
|
|
@@ -613,21 +818,21 @@ var ue = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
613
818
|
} : null;
|
|
614
819
|
}
|
|
615
820
|
_renderLists() {
|
|
616
|
-
if (this.readonly) return
|
|
821
|
+
if (this.readonly) return E;
|
|
617
822
|
let e = this.explanationDisplay === "tooltip";
|
|
618
|
-
return
|
|
823
|
+
return T`
|
|
619
824
|
<div
|
|
620
825
|
class="lists"
|
|
621
826
|
part="lists"
|
|
622
827
|
@luzmo-formula-draggable-field-activate=${this._handleDraggableActivate}
|
|
623
828
|
@luzmo-formula-draggable-field-describe=${this._handleDraggableDescribe}
|
|
624
829
|
>
|
|
625
|
-
${this.showAggregations ?
|
|
830
|
+
${this.showAggregations ? he({
|
|
626
831
|
explanationTooltips: e,
|
|
627
832
|
loading: this._loadingDatasets,
|
|
628
833
|
size: this.size
|
|
629
|
-
}) :
|
|
630
|
-
${
|
|
834
|
+
}) : E}
|
|
835
|
+
${ye({
|
|
631
836
|
datasets: this._datasets,
|
|
632
837
|
loading: this._loadingDatasets,
|
|
633
838
|
contentLanguage: this.contentLanguage,
|
|
@@ -638,14 +843,14 @@ var ue = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
638
843
|
onToggleCollapse: (e) => this._toggleCollapse(e),
|
|
639
844
|
onInsertColumn: (e) => this._insertColumn(e)
|
|
640
845
|
})}
|
|
641
|
-
${
|
|
846
|
+
${Oe({
|
|
642
847
|
explanationTooltips: e,
|
|
643
848
|
loading: this._loadingDatasets,
|
|
644
849
|
size: this.size,
|
|
645
850
|
selectedCategory: this._selectedCategory,
|
|
646
851
|
onCategoryChange: (e) => this._handleCategoryChange(e)
|
|
647
852
|
})}
|
|
648
|
-
${e ?
|
|
853
|
+
${e ? E : Te({
|
|
649
854
|
target: this._describeTarget,
|
|
650
855
|
size: this.size
|
|
651
856
|
})}
|
|
@@ -653,21 +858,21 @@ var ue = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
653
858
|
`;
|
|
654
859
|
}
|
|
655
860
|
_renderValidationFeedback() {
|
|
656
|
-
return this._validity.validating ?
|
|
861
|
+
return this._validity.validating ? T`<div class="validating" part="validating" role="status" aria-live="polite">
|
|
657
862
|
<luzmo-progress-circle
|
|
658
863
|
indeterminate
|
|
659
864
|
size="s"
|
|
660
|
-
.label=${
|
|
865
|
+
.label=${j("Validating formula", { desc: "Formula editor spinner label shown while the expression is being validated" })}
|
|
661
866
|
></luzmo-progress-circle>
|
|
662
|
-
<span>${
|
|
663
|
-
</div>` : !this._validity.valid && this._validity.error ?
|
|
664
|
-
${
|
|
867
|
+
<span>${j("Validating…", { desc: "Formula editor status text shown while the expression is being validated" })}</span>
|
|
868
|
+
</div>` : !this._validity.valid && this._validity.error ? T`<div class="error" part="error" role="alert">
|
|
869
|
+
${w(ie)}
|
|
665
870
|
<span>${this._validity.error}</span>
|
|
666
|
-
</div>` :
|
|
871
|
+
</div>` : E;
|
|
667
872
|
}
|
|
668
873
|
render() {
|
|
669
874
|
let e = !this._validity.valid && !!this._validity.error && !this._validity.validating;
|
|
670
|
-
return
|
|
875
|
+
return T`
|
|
671
876
|
<div class="formula-editor" part="formula-editor">
|
|
672
877
|
${this._renderFormulaCodeMirror({ hasError: e })} ${this._renderValidationFeedback()}
|
|
673
878
|
${this._renderLists()}
|
|
@@ -677,14 +882,14 @@ var ue = ":host{--luzmo-formula-editor-error-color:var(--luzmo-negative-color);-
|
|
|
677
882
|
};
|
|
678
883
|
//#endregion
|
|
679
884
|
//#region src/components/formula-editor/index.ts
|
|
680
|
-
r([
|
|
885
|
+
r([O({
|
|
681
886
|
type: String,
|
|
682
887
|
attribute: "expression-resource",
|
|
683
888
|
reflect: !0
|
|
684
|
-
})], $.prototype, "expressionResource", void 0), r([
|
|
889
|
+
})], $.prototype, "expressionResource", void 0), r([O({
|
|
685
890
|
type: String,
|
|
686
891
|
attribute: "explanation-display",
|
|
687
892
|
reflect: !0
|
|
688
|
-
})], $.prototype, "explanationDisplay", void 0), r([
|
|
893
|
+
})], $.prototype, "explanationDisplay", void 0), r([k()], $.prototype, "_loadingDatasets", void 0), r([k()], $.prototype, "_describeTarget", void 0), r([k()], $.prototype, "_validity", void 0), r([k()], $.prototype, "_selectedCategory", void 0), r([k()], $.prototype, "_searchQuery", void 0), r([k()], $.prototype, "_collapsedDatasets", void 0), $ = r([A()], $), customElements.get("luzmo-formula-editor") || customElements.define("luzmo-formula-editor", $);
|
|
689
894
|
//#endregion
|
|
690
|
-
export { $ as t };
|
|
895
|
+
export { L as a, R as i, V as n, B as r, $ as t };
|