@luzmo/analytics-components-kit 1.0.4-beta.2 → 1.0.4-beta.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/components/ai-chat/ai-chat.d.ts +29 -6
- package/components/ai-chat/index.cjs +1 -1
- package/components/ai-chat/index.d.ts +1 -1
- package/components/ai-chat/index.js +1 -1
- package/components/{ai-chat-BMDfKnEj.cjs → ai-chat-CpK99nb7.cjs} +62 -20
- package/components/{ai-chat-Cd26aDpX.js → ai-chat-e2lg3FLg.js} +310 -193
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -1
- package/components/{ai-interaction-textarea-CPfJqTB0.cjs → ai-interaction-textarea-CSrEsHXV.cjs} +1 -1
- package/components/{ai-interaction-textarea-DkBglh6Q.js → ai-interaction-textarea-cAXXLnoj.js} +3 -3
- package/components/{area-chart-options.config-4OY_kXkB.js → area-chart-options.config-DdYBA1_Q.js} +1 -1
- package/components/{area-chart-positioning.config-CfC43YUW.cjs → area-chart-positioning.config-CZgo9lkr.cjs} +1 -1
- package/components/{area-chart-positioning.config-CAPrtEZW.js → area-chart-positioning.config-DAEbeAVX.js} +1 -1
- package/components/{area-chart-slots.config--pd_dBTn.js → area-chart-slots.config-Cmdkui4v.js} +1 -1
- package/components/{bar-chart-options.config-C3puwFpi.js → bar-chart-options.config-Cx3n0tCr.js} +1 -1
- package/components/{bar-chart-positioning.config-C1MLYyl9.js → bar-chart-positioning.config-71sM-GEA.js} +1 -1
- package/components/{bar-chart-positioning.config-vJOALpQP.cjs → bar-chart-positioning.config-9_GWwUur.cjs} +1 -1
- package/components/{bar-chart-slots.config-Dr7v4xxd.js → bar-chart-slots.config-BWvrLYv5.js} +1 -1
- package/components/{base-kQ6cjcIZ.cjs → base-DbEAseAh.cjs} +1 -1
- package/components/{base-B_wdCOxV.js → base-vk9LuivN.js} +2 -2
- package/components/{box-plot-options.config-B486nCds.js → box-plot-options.config-DB9iCCZg.js} +1 -1
- package/components/{box-plot-positioning.config-DVNeh9kg.cjs → box-plot-positioning.config-BxIFcn-c.cjs} +1 -1
- package/components/{box-plot-positioning.config-CA27sCpO.js → box-plot-positioning.config-DIck_I13.js} +1 -1
- package/components/{box-plot-slots.config-Bdb7pkky.js → box-plot-slots.config-BknEys-m.js} +1 -1
- package/components/{bubble-chart-options.config-BymUqNR5.js → bubble-chart-options.config-D8o_9z0b.js} +1 -1
- package/components/{bubble-chart-positioning.config-OlbBZU4m.js → bubble-chart-positioning.config-BJi-Te33.js} +1 -1
- package/components/{bubble-chart-positioning.config-Dg92VJnB.cjs → bubble-chart-positioning.config-Cf7K70G6.cjs} +1 -1
- package/components/{bubble-chart-slots.config-B4tsJDuz.js → bubble-chart-slots.config-Djb-py0h.js} +1 -1
- package/components/{bullet-chart-options.config-BtyRdRk2.js → bullet-chart-options.config-CmC75LQ8.js} +1 -1
- package/components/{bullet-chart-positioning.config-BwqxpSSL.cjs → bullet-chart-positioning.config-3yE6MOJU.cjs} +1 -1
- package/components/{bullet-chart-positioning.config-Y18yvzoc.js → bullet-chart-positioning.config-ByVG8aFe.js} +1 -1
- package/components/{bullet-chart-slots.config-ccCSNJ5q.js → bullet-chart-slots.config-BECcf-yZ.js} +1 -1
- package/components/{choropleth-map-options.config-CqCciAvW.js → choropleth-map-options.config-Bt-vXkKW.js} +1 -1
- package/components/{choropleth-map-positioning.config-Dmzy3fMc.js → choropleth-map-positioning.config-BmUOKuYh.js} +1 -1
- package/components/{choropleth-map-positioning.config-y-bYMoxr.cjs → choropleth-map-positioning.config-QpuHLCDR.cjs} +1 -1
- package/components/{choropleth-map-slots.config-X2YYrSXc.js → choropleth-map-slots.config-DVrgJYSA.js} +1 -1
- package/components/{circle-pack-chart-options.config-D9C-ltHA.js → circle-pack-chart-options.config-CLA-ur8J.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-wKIQDFe8.cjs → circle-pack-chart-positioning.config-EN3LKHeo.cjs} +1 -1
- package/components/{circle-pack-chart-positioning.config-YDdY2cc2.js → circle-pack-chart-positioning.config-K_yHBCSG.js} +1 -1
- package/components/{circle-pack-chart-slots.config-BIO1dZsK.js → circle-pack-chart-slots.config-BG6Gh03S.js} +1 -1
- package/components/{circular-gauge-options.config-De6SlTLT.js → circular-gauge-options.config-BFBmfsPn.js} +1 -1
- package/components/{circular-gauge-positioning.config-C41euPS9.js → circular-gauge-positioning.config-AH32vSIN.js} +1 -1
- package/components/{circular-gauge-positioning.config-CKNanoFX.cjs → circular-gauge-positioning.config-CurZIsZj.cjs} +1 -1
- package/components/{circular-gauge-slots.config-Dv_7fAD_.js → circular-gauge-slots.config-BSzOAb8B.js} +1 -1
- package/components/{column-chart-options.config-5Dbg3FmH.js → column-chart-options.config-V7v9PtQA.js} +1 -1
- package/components/{column-chart-positioning.config-BdyuErF8.js → column-chart-positioning.config-DS8sLc1p.js} +1 -1
- package/components/{column-chart-positioning.config-Enx15Dqh.cjs → column-chart-positioning.config-Dn7Ri3op.cjs} +1 -1
- package/components/{column-chart-slots.config-eHvTwZLX.js → column-chart-slots.config-5BjkTrbt.js} +1 -1
- package/components/{combination-chart-options.config-BzmLGCal.js → combination-chart-options.config-CgSqqLLE.js} +1 -1
- package/components/{combination-chart-positioning.config-CqlKA__j.cjs → combination-chart-positioning.config-RNhQd78t.cjs} +1 -1
- package/components/{combination-chart-positioning.config-BQRn0EfF.js → combination-chart-positioning.config-u9poMkSd.js} +1 -1
- package/components/{combination-chart-slots.config-CG40JjE3.js → combination-chart-slots.config-DgM_T-9r.js} +1 -1
- package/components/{conditional-number-options.config-CVgV7s7f.js → conditional-number-options.config-3_vXSC0j.js} +1 -1
- package/components/{conditional-number-positioning.config-CR45rPru.cjs → conditional-number-positioning.config-Cq4uJ35g.cjs} +1 -1
- package/components/{conditional-number-positioning.config-BBivi4ps.js → conditional-number-positioning.config-Dnq3OP76.js} +1 -1
- package/components/{conditional-number-slots.config-o22l-qLv.js → conditional-number-slots.config-CzVPP4me.js} +1 -1
- package/components/{default-acceptable-data-field-types-DFOFWWnT.js → convert-data-field-to-slot-content-C6IIqU7G.js} +12 -12
- package/components/convert-data-field-to-slot-content-DLzkk6dT.cjs +20 -0
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.js +1 -1
- package/components/{data-field-CLfUWgK9.js → data-field-CGY-TeOZ.js} +3 -3
- package/components/{data-field-CAGprHjS.cjs → data-field-CXK_vezu.cjs} +1 -1
- package/components/data-field-level/index.cjs +1 -1
- package/components/data-field-level/index.js +1 -1
- package/components/{data-field-level-CfJ0dmxo.js → data-field-level-BsJ3eRQt.js} +4 -4
- package/components/data-field-level-CxF3DZmD.cjs +55 -0
- package/components/data-field-panel/index.cjs +1 -1
- package/components/data-field-panel/index.js +1 -1
- package/components/data-field-panel-Brzkhc5r.cjs +87 -0
- package/components/{data-field-panel-N7mukLj6.js → data-field-panel-CNiGw9_F.js} +3 -3
- package/components/data-fields-select/index.cjs +1 -1
- package/components/data-fields-select/index.js +1 -1
- package/components/{data-fields-select-B1pwPYt6.js → data-fields-select-BcMFFFJV.js} +8 -8
- package/components/{data-fields-select-qCWuzckJ.cjs → data-fields-select-D-nSjOep.cjs} +1 -1
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +1 -1
- package/components/{dataset-selector-list-BPBZ04Lf.cjs → dataset-selector-list-2Kz1oNFa.cjs} +1 -1
- package/components/{dataset-selector-list-DmajZuNC.js → dataset-selector-list-CvjSPfPj.js} +1 -1
- package/components/dataset-selector-row/index.cjs +1 -1
- package/components/dataset-selector-row/index.js +1 -1
- package/components/{dataset-selector-row-SJzYIpO6.js → dataset-selector-row-Beo9owAy.js} +2 -2
- package/components/{dataset-selector-row-qxfmcxpm.cjs → dataset-selector-row-DOhPbfDh.cjs} +1 -1
- package/components/{date-comparison-filter-options.config-BJg_WqL4.js → date-comparison-filter-options.config-CsDlmT6L.js} +1 -1
- package/components/{date-comparison-filter-slots.config-BIK5aZ6P.js → date-comparison-filter-slots.config-EEgNP09x.js} +1 -1
- package/components/{date-filter-options.config-N6eGgPGL.js → date-filter-options.config-b8EHOjR1.js} +1 -1
- package/components/{date-filter-slots.config-CJJ4P0v6.js → date-filter-slots.config-PJ_h3Aj7.js} +1 -1
- package/components/{de-DnADyZVQ.cjs → de-BY1wWZE8.cjs} +1 -1
- package/components/{de-BHQ-FfU0.js → de-D-xQoqdB.js} +9 -1
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/{display-settings-CkkjJjem.js → display-settings-BNoRfE1e.js} +9 -9
- package/components/display-settings-JuegpHpn.cjs +120 -0
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +1 -1
- package/components/{display-settings-binning-BohjN2qK.js → display-settings-binning-D4fXWXY_.js} +3 -3
- package/components/{display-settings-binning-C7-gByrp.cjs → display-settings-binning-DFA-s8JY.cjs} +1 -1
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +1 -1
- package/components/{display-settings-datetime-7pUcku_h.js → display-settings-datetime-CcZ-aQjs.js} +17 -17
- package/components/display-settings-datetime-DjfBfyzM.cjs +217 -0
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +1 -1
- package/components/{display-settings-grand-totals-CV5guBhH.js → display-settings-grand-totals-CUlIPreM.js} +3 -3
- package/components/{display-settings-grand-totals-DHQSZqMI.cjs → display-settings-grand-totals-lf_RFqaR.cjs} +1 -1
- package/components/display-settings-numeric/index.cjs +1 -1
- package/components/display-settings-numeric/index.js +1 -1
- package/components/{display-settings-numeric--5zk8_7K.cjs → display-settings-numeric-C707pX1_.cjs} +1 -1
- package/components/{display-settings-numeric-D2LjMepO.js → display-settings-numeric-VVEUpoAy.js} +3 -3
- package/components/display-settings-period-over-period/index.cjs +1 -1
- package/components/display-settings-period-over-period/index.js +1 -1
- package/components/{display-settings-period-over-period-sqZU6Zj_.js → display-settings-period-over-period-02Elu2Rn.js} +3 -3
- package/components/{display-settings-period-over-period-BE22oHvV.cjs → display-settings-period-over-period-Be_A5whA.cjs} +1 -1
- package/components/{donut-chart-options.config-C66yOoed.js → donut-chart-options.config-N0MWtn-o.js} +1 -1
- package/components/{donut-chart-positioning.config-B9sm4yFV.cjs → donut-chart-positioning.config-ByXtDyY9.cjs} +1 -1
- package/components/{donut-chart-positioning.config-DtaPAgXE.js → donut-chart-positioning.config-CH5pTYpi.js} +1 -1
- package/components/{donut-chart-slots.config-2XbT9Uu8.js → donut-chart-slots.config-dQrT0g_x.js} +1 -1
- package/components/{dropdown-filter-options.config-Cm_wK0mn.js → dropdown-filter-options.config-CziqJFPz.js} +1 -1
- package/components/{dropdown-filter-slots.config-CnESCGuw.js → dropdown-filter-slots.config-CQo3-kIo.js} +1 -1
- package/components/{es-B4xWcOeJ.cjs → es-BIaD4kOL.cjs} +1 -1
- package/components/{es-CkCov6l7.js → es-CLnBAiLu.js} +9 -1
- package/components/{evolution-number-options.config-07Jd0oUL.js → evolution-number-options.config-BfYN1Qgk.js} +1 -1
- package/components/{evolution-number-positioning.config-v8_6kB1H.js → evolution-number-positioning.config-B2_CNZP0.js} +1 -1
- package/components/{evolution-number-positioning.config-DVXhBZYj.cjs → evolution-number-positioning.config-IFgvO_iZ.cjs} +1 -1
- package/components/{evolution-number-slots.config-BKdD3cKw.js → evolution-number-slots.config-CBS0b0Yk.js} +1 -1
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/{filter-expression-picker-CF4Otpll.cjs → filter-expression-picker-0eNf_L9I.cjs} +1 -1
- package/components/{filter-expression-picker-DCrCAIhg.js → filter-expression-picker-C0FJhbHk.js} +2 -2
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +1 -1
- package/components/{filter-item-D2Dct0a3.js → filter-item-C0AXDA_F.js} +8 -8
- package/components/{filter-item-BjRerEjB.cjs → filter-item-C5O2G3Um.cjs} +2 -2
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +1 -1
- package/components/{filter-value-picker-enC3f3ja.cjs → filter-value-picker-BOL1zvCR.cjs} +1 -1
- package/components/{filter-value-picker-CCKV4PWs.js → filter-value-picker-DZORmKwM.js} +5 -5
- package/components/filter-value-picker-datetime/index.cjs +1 -1
- package/components/filter-value-picker-datetime/index.js +1 -1
- package/components/{filter-value-picker-datetime-CFCV2jkK.js → filter-value-picker-datetime-0gRfWBzr.js} +2 -2
- package/components/{filter-value-picker-datetime-D20WnWar.cjs → filter-value-picker-datetime-dCo1_pma.cjs} +1 -1
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +1 -1
- package/components/{filter-value-picker-hierarchy-Drrm1ncu.cjs → filter-value-picker-hierarchy-D8n6gV78.cjs} +1 -1
- package/components/{filter-value-picker-hierarchy-ktVBIpcS.js → filter-value-picker-hierarchy-Dt7VNcSd.js} +3 -3
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +1 -1
- package/components/{filter-value-picker-numeric-BYspQRSi.js → filter-value-picker-numeric-Cr7ll53O.js} +1 -1
- package/components/{filter-value-picker-numeric-BtZaQvkr.cjs → filter-value-picker-numeric-DBw1TZtm.cjs} +1 -1
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -1
- package/components/{filters-Ew0ARuxD.js → filters-B3zHSR73.js} +4 -4
- package/components/{filters-CfH_4MKZ.cjs → filters-DIDatBfn.cjs} +1 -1
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +1 -1
- package/components/formula-CPrZC9BC.cjs +45 -0
- package/components/{formula-codemirror-CQonNhmd.js → formula-codemirror-DycN-ivp.js} +6 -6
- package/components/{formula-codemirror-CFgPlkN8.cjs → formula-codemirror-uXTVVacE.cjs} +1 -1
- package/components/{formula-display-store-BGzj13Cs.js → formula-display-store-B6dtlBPk.js} +3 -3
- package/components/{formula-display-store-DFAvw21p.cjs → formula-display-store-CCxSWPEB.cjs} +1 -1
- package/components/formula-editor/index.cjs +1 -1
- package/components/formula-editor/index.js +3 -3
- package/components/{formula-editor-CtCvJkyS.cjs → formula-editor-BPMeTS5F.cjs} +1 -1
- package/components/{formula-editor-KXxQlh2n.js → formula-editor-BqHWUVdh.js} +8 -8
- package/components/formula-field/index.cjs +1 -1
- package/components/formula-field/index.js +1 -1
- package/components/{formula-field-OcD4TWAn.js → formula-field-Bfy1qysp.js} +1 -1
- package/components/{formula-field-aiqX7nRp.cjs → formula-field-CAtaDtSP.cjs} +1 -1
- package/components/{formula-DYdcMG-v.js → formula-ibsKYWEh.js} +3 -3
- package/components/{formula-input-base-CQPGmISj.js → formula-input-base-Cs71sKh1.js} +7 -7
- package/components/formula-input-base-_-8MncrA.cjs +49 -0
- package/components/{fr-BOivrXqX.cjs → fr-CHG2Tcby.cjs} +1 -1
- package/components/{fr-BSFpJ50_.js → fr-DIwbOnwC.js} +9 -1
- package/components/{funnel-chart-options.config-PV1Hlu91.js → funnel-chart-options.config-D8fqrJvi.js} +1 -1
- package/components/{funnel-chart-positioning.config-BT-YoTgv.js → funnel-chart-positioning.config-BUMX4e-7.js} +1 -1
- package/components/{funnel-chart-positioning.config-C5Z3JkuS.cjs → funnel-chart-positioning.config-CY042Tro.cjs} +1 -1
- package/components/{funnel-chart-slots.config-_9HUPvTb.js → funnel-chart-slots.config-CeGu8stc.js} +1 -1
- package/components/{get-css-variable-CBXsAxR6.cjs → get-css-variable-B8sJUuig.cjs} +1 -1
- package/components/{get-css-variable-DYnldi15.js → get-css-variable-r1spgqX0.js} +1 -1
- package/components/{get-dataset-name-EkeeFzI3.cjs → get-dataset-name-Dwuh7DWE.cjs} +1 -1
- package/components/{get-dataset-name-BGCvfcdY.js → get-dataset-name-SfDNjsuR.js} +1 -1
- package/components/{groupings-dIFi0bJY.cjs → groupings-DuX9SnZa.cjs} +1 -1
- package/components/{groupings-CrE-yp0S.js → groupings-OLk5e7JO.js} +1 -1
- package/components/{heat-map-options.config-CQY6t9AL.js → heat-map-options.config-5zjlVaa0.js} +1 -1
- package/components/{heat-map-positioning.config-BpFis567.js → heat-map-positioning.config-C7W5YbvL.js} +1 -1
- package/components/{heat-map-positioning.config-HPftgmdz.cjs → heat-map-positioning.config-CjaNs9QU.cjs} +1 -1
- package/components/{heat-map-slots.config-B4AswVSo.js → heat-map-slots.config-DBkkcvMN.js} +1 -1
- package/components/{heat-table-options.config-IlVPk4Q4.js → heat-table-options.config-Blcs4JjF.js} +1 -1
- package/components/{heat-table-positioning.config-wkrm8Fbk.cjs → heat-table-positioning.config-B2ko43lN.cjs} +1 -1
- package/components/{heat-table-positioning.config-Canc3aEE.js → heat-table-positioning.config-C6d8wmTk.js} +1 -1
- package/components/{heat-table-slots.config-CB509zU4.js → heat-table-slots.config-CJOXI-Sf.js} +1 -1
- package/components/{hexbin-map-options.config-vzw6ovva.js → hexbin-map-options.config-D5o0k890.js} +1 -1
- package/components/{hexbin-map-positioning.config-CBv6Lij5.js → hexbin-map-positioning.config-B9Af5odq.js} +1 -1
- package/components/{hexbin-map-positioning.config-D0hAchxV.cjs → hexbin-map-positioning.config-CaP2fsiE.cjs} +1 -1
- package/components/{hexbin-map-slots.config-Dyse0pui.js → hexbin-map-slots.config-CpJIfl6o.js} +1 -1
- package/components/{image-options.config-Cmrsd8Yu.js → image-options.config-C46UQpMq.js} +1 -1
- package/components/{image-slots.config-CVj-DM07.js → image-slots.config-DjaT4mUk.js} +1 -1
- package/components/index.cjs +1 -1
- package/components/index.js +62 -61
- package/components/interactive-viz-item/helpers/chart-helpers.d.ts +7 -0
- package/components/interactive-viz-item/index.cjs +20 -0
- package/components/interactive-viz-item/index.d.ts +10 -0
- package/components/interactive-viz-item/index.js +28 -0
- package/components/interactive-viz-item/interactive-viz-item.d.ts +96 -0
- package/components/interactive-viz-item/types.d.ts +117 -0
- package/components/interactive-viz-item-CKRpHIwI.js +693 -0
- package/components/interactive-viz-item-D8btvzeg.cjs +247 -0
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +1 -1
- package/components/item-grid-BEwohat_.js +4559 -0
- package/components/item-grid-CtW-2roU.cjs +113 -0
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.js +1 -1
- package/components/{item-option-uyAsPcfE.js → item-option-CSc3jmeo.js} +52 -52
- package/components/{item-option-CEwjJc1p.cjs → item-option-DkqkbwtF.cjs} +5 -5
- 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-BoZWUGPs.cjs +53 -0
- package/components/{item-option-action-button-group-BOxQFfBF.js → item-option-action-button-group-D_K-T_wB.js} +2 -2
- package/components/{item-option-base-Dr5-WxZ9.js → item-option-base-Do3zK0fN.js} +1 -1
- package/components/{item-option-base-DKieCS-Y.cjs → item-option-base-yH3-Snf-.cjs} +1 -1
- package/components/item-option-color-palette-picker/index.cjs +1 -1
- package/components/item-option-color-palette-picker/index.js +1 -1
- package/components/{item-option-color-palette-picker-7vSSpj5o.cjs → item-option-color-palette-picker-B9Umcsw_.cjs} +1 -1
- package/components/{item-option-color-palette-picker-D_mABGWh.js → item-option-color-palette-picker-CTvaiVJ1.js} +1 -1
- 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-COLBYeRy.js → item-option-color-picker-BLF9-2WR.js} +1 -1
- package/components/{item-option-color-picker-DMyNeD2e.cjs → item-option-color-picker-FIPCBMIC.cjs} +1 -1
- 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-BznRsx45.cjs +98 -0
- package/components/{item-option-color-range-CueVlyT2.js → item-option-color-range-mvlBVdZK.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-CMuQwrwQ.js → item-option-multi-language-field-BMJdbHOd.js} +1 -1
- package/components/{item-option-multi-language-field-q7txF5xA.cjs → item-option-multi-language-field-Rypasjvk.cjs} +1 -1
- 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-BODNSx66.js → item-option-number-field-Bu4IYyNe.js} +1 -1
- package/components/{item-option-number-field-DWeJWUxY.cjs → item-option-number-field-sNlrQ5mG.cjs} +1 -1
- package/components/item-option-panel/index.cjs +1 -1
- package/components/item-option-panel/index.js +1 -1
- package/components/{item-option-panel-CxOfVI0z.js → item-option-panel-Bmm9IeZR.js} +3 -3
- package/components/{item-option-panel-D0dxyUfE.cjs → item-option-panel-DEPAMt-A.cjs} +1 -1
- package/components/item-option-picker/index.cjs +1 -1
- package/components/item-option-picker/index.js +1 -1
- package/components/{item-option-picker-CyX7qqrb.js → item-option-picker-6-VRIzb5.js} +1 -1
- package/components/{item-option-picker-BsP_0XyD.cjs → item-option-picker-DXZce4bl.cjs} +1 -1
- 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-LOg6P4Gl.js → item-option-position-picker-DBy46OLT.js} +1 -1
- package/components/{item-option-position-picker-CcmBYyqF.cjs → item-option-position-picker-DW12bwRL.cjs} +1 -1
- 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-BCbWb1R6.js → item-option-positions-number-field-BFW0c-PE.js} +1 -1
- package/components/{item-option-positions-number-field-o3Qckgwd.cjs → item-option-positions-number-field-HofP9ee6.cjs} +1 -1
- 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-CjLhWTEJ.cjs → item-option-radio-button-group-BN_a7dSl.cjs} +1 -1
- package/components/{item-option-radio-button-group-CDebmEn3.js → item-option-radio-button-group-CpdXh9GA.js} +1 -1
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.js +1 -1
- package/components/{item-option-slider-CHbkJHLK.cjs → item-option-slider-B-CM9FzR.cjs} +1 -1
- package/components/{item-option-slider-C9ZJZcdg.js → item-option-slider-CRjRQP3Z.js} +1 -1
- package/components/item-option-switch/index.cjs +1 -1
- package/components/item-option-switch/index.js +1 -1
- package/components/{item-option-switch-FRAZWozp.cjs → item-option-switch-CY6zMkI-.cjs} +1 -1
- package/components/{item-option-switch-BVMOOWya.js → item-option-switch-Q-IaH1Xr.js} +1 -1
- 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-e6NLDlSq.js → item-option-text-field-BzHaYPud.js} +1 -1
- package/components/{item-option-text-field-DkYqHfdJ.cjs → item-option-text-field-C2_1-zLs.cjs} +1 -1
- package/components/item-options-configs.js +45 -45
- package/components/item-slot-drop/index.cjs +1 -1
- package/components/item-slot-drop/index.js +1 -1
- package/components/{item-slot-drop-CoReI68M.js → item-slot-drop-CNX2TBXB.js} +24 -24
- package/components/item-slot-drop-CR-dvLaD.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-CEI1q060.js → item-slot-drop-panel-BaJoR9Zc.js} +48 -48
- package/components/{item-slot-drop-panel-DqekQtOr.cjs → item-slot-drop-panel-DTvbJtNW.cjs} +6 -6
- package/components/item-slot-picker/index.cjs +1 -1
- package/components/item-slot-picker/index.js +1 -1
- package/components/{item-slot-picker-CvbXFh6Z.cjs → item-slot-picker-CnKeeXp5.cjs} +13 -13
- 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-CG0NyMDX.js → item-slot-picker-panel-BMapBAxj.js} +15 -15
- package/components/item-slot-picker-panel-Dw682RiT.cjs +81 -0
- package/components/{item-slot-picker-dy5hVID5.js → item-slot-picker-tHRu_jaI.js} +25 -25
- package/components/item-slots-configs.js +45 -45
- package/components/{line-chart-options.config-1TpSJqeb.js → line-chart-options.config-KFAaQqB_.js} +1 -1
- package/components/{line-chart-positioning.config-61uNfPZs.js → line-chart-positioning.config-Bwe9-1yw.js} +1 -1
- package/components/{line-chart-positioning.config-BNtGFWUK.cjs → line-chart-positioning.config-CfVRqaxT.cjs} +1 -1
- package/components/{line-chart-slots.config-CcCpwWzZ.js → line-chart-slots.config-D0jaC82U.js} +1 -1
- package/components/{localized-mixin-EpweDrTk.js → localized-mixin-BvQbkZEL.js} +1 -1
- package/components/{localized-mixin-CiBWThrZ.cjs → localized-mixin-DrK3QZNa.cjs} +1 -1
- package/components/{marker-map-options.config-DTaax79J.js → marker-map-options.config-D0RmFKKM.js} +1 -1
- package/components/{marker-map-positioning.config-C2cL7uZJ.cjs → marker-map-positioning.config-DLXbw6Yd.cjs} +1 -1
- package/components/{marker-map-positioning.config-Bi5WCVgJ.js → marker-map-positioning.config-DLehY4Lv.js} +1 -1
- package/components/{marker-map-slots.config-BOWmS_IZ.js → marker-map-slots.config-DsMklO0v.js} +1 -1
- package/components/{nl-D_MleIlk.js → nl-C_g1Le3t.js} +9 -1
- package/components/{nl-DS4Y_g8B.cjs → nl-PxN5EqzT.cjs} +1 -1
- package/components/{ohlc-chart-options.config-Dfes8ROC.js → ohlc-chart-options.config-BBdUKmJ9.js} +1 -1
- package/components/{ohlc-chart-positioning.config-IAOfu4ue.cjs → ohlc-chart-positioning.config-BGU-mDPW.cjs} +1 -1
- package/components/{ohlc-chart-positioning.config-DFx99k9A.js → ohlc-chart-positioning.config-Cz3zieDp.js} +1 -1
- package/components/{ohlc-chart-slots.config-JRztPEXL.js → ohlc-chart-slots.config-BiQn5Kdg.js} +1 -1
- package/components/{parallel-coordinates-plot-options.config-NSk_HC0H.js → parallel-coordinates-plot-options.config-KJrOL0Sr.js} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-Bf0Leksw.cjs → parallel-coordinates-plot-positioning.config-CXIMbncP.cjs} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-C9TqUuGC.js → parallel-coordinates-plot-positioning.config-Cc8k6gqG.js} +1 -1
- package/components/{parallel-coordinates-plot-slots.config-pmbO5DnL.js → parallel-coordinates-plot-slots.config-B7QY714-.js} +1 -1
- package/components/{pivot-table-options.config-B3wYlzEq.js → pivot-table-options.config-DEmZ_EQi.js} +1 -1
- package/components/{pivot-table-positioning.config-D1R3VO88.cjs → pivot-table-positioning.config-BBd6xf8q.cjs} +1 -1
- package/components/{pivot-table-positioning.config-CPXqqtcR.js → pivot-table-positioning.config-BK7wgw1A.js} +1 -1
- package/components/{pivot-table-slots.config-DaLfGOP9.js → pivot-table-slots.config-DpDaXLdw.js} +1 -1
- package/components/{pragmatic-element-adapter-D0LRKx5U.js → pragmatic-element-adapter-C_7HSvGV.js} +74 -75
- package/components/{pragmatic-element-adapter-DdyH32ix.cjs → pragmatic-element-adapter-DPWYJiW9.cjs} +4 -4
- package/components/{pyramid-chart-options.config-DIyiyqGM.js → pyramid-chart-options.config-DiD3QFps.js} +1 -1
- package/components/{pyramid-chart-positioning.config-BfXdJS8g.cjs → pyramid-chart-positioning.config-C7STytAm.cjs} +1 -1
- package/components/{pyramid-chart-positioning.config-JAUQpA0B.js → pyramid-chart-positioning.config-CGjiKyPG.js} +1 -1
- package/components/{pyramid-chart-slots.config-DtnUlw5y.js → pyramid-chart-slots.config-BrKgartT.js} +1 -1
- package/components/{radar-chart-options.config-UVOzUnVT.js → radar-chart-options.config-COBM2L3R.js} +1 -1
- package/components/{radar-chart-positioning.config-CdJSazt4.js → radar-chart-positioning.config-6xWEPHjC.js} +1 -1
- package/components/{radar-chart-positioning.config-Bixdrod2.cjs → radar-chart-positioning.config-p0s42Zyt.cjs} +1 -1
- package/components/{radar-chart-slots.config-CkLoeAV7.js → radar-chart-slots.config-SivEBhuj.js} +1 -1
- package/components/{regular-table-options.config-CBvnxTdd.js → regular-table-options.config-B0zRcsWM.js} +1 -1
- package/components/{regular-table-slots.config-Cc6hL7iu.js → regular-table-slots.config-M2axBXl4.js} +1 -1
- package/components/{route-map-options.config-DZrlGa5o.js → route-map-options.config-CrMrDQ_l.js} +1 -1
- package/components/{route-map-positioning.config-Bk_BndTS.js → route-map-positioning.config-B2qAh6WW.js} +1 -1
- package/components/{route-map-positioning.config-7aca5Iex.cjs → route-map-positioning.config-C8KmQ33c.cjs} +1 -1
- package/components/{route-map-slots.config-CQxB8gKC.js → route-map-slots.config-COCoP99E.js} +1 -1
- package/components/{sankey-diagram-options.config-s_QRVr1r.js → sankey-diagram-options.config-BYLiy1UX.js} +1 -1
- package/components/{sankey-diagram-positioning.config-DPgQELIu.js → sankey-diagram-positioning.config-CBLQktr4.js} +1 -1
- package/components/{sankey-diagram-positioning.config-Bvus3RDi.cjs → sankey-diagram-positioning.config-DAF803wR.cjs} +1 -1
- package/components/{sankey-diagram-slots.config-C9tIfWHU.js → sankey-diagram-slots.config-C-sqtrS-.js} +1 -1
- package/components/{scatter-plot-options.config-DI4hlqi5.js → scatter-plot-options.config-BpUYcLt-.js} +1 -1
- package/components/{scatter-plot-positioning.config-DBDCDDad.cjs → scatter-plot-positioning.config-0hj66nn4.cjs} +1 -1
- package/components/{scatter-plot-positioning.config-D-ifHW9P.js → scatter-plot-positioning.config-Be9hQ727.js} +1 -1
- package/components/{scatter-plot-slots.config-CUURijrN.js → scatter-plot-slots.config-Dg78lS25.js} +1 -1
- package/components/{search-filter-options.config-CPzfgUWV.js → search-filter-options.config-lGQ-biU5.js} +1 -1
- package/components/{search-filter-slots.config-DD119qkk.js → search-filter-slots.config-BhDSDpNd.js} +1 -1
- package/components/{set-locale-UK0ghkg9.js → set-locale-DB1FMgtK.js} +4 -4
- package/components/{set-locale-DTFOOSog.cjs → set-locale-DKCZkJVL.cjs} +1 -1
- package/components/{slicer-filter-options.config-F2CZ8ckV.js → slicer-filter-options.config-B6rxZYcl.js} +1 -1
- package/components/{slicer-filter-positioning.config-0uGZ8EgN.js → slicer-filter-positioning.config-BQoRGx8R.js} +1 -1
- package/components/{slicer-filter-positioning.config-Bx2_7jxp.cjs → slicer-filter-positioning.config-CvcZ3qkf.cjs} +1 -1
- package/components/{slicer-filter-slots.config-D-BhCuA9.js → slicer-filter-slots.config-XtuZoiId.js} +1 -1
- package/components/{slider-filter-options.config-DO0HHK2l.js → slider-filter-options.config-C7-5aoaC.js} +1 -1
- package/components/{slider-filter-slots.config-CGQG6JqK.js → slider-filter-slots.config-BYkIGVvh.js} +1 -1
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +1 -1
- package/components/{slot-menu-DkyDLDSd.cjs → slot-menu-CkiIhk9e.cjs} +2 -2
- package/components/{slot-menu-Cw5HJ_bk.js → slot-menu-DZPe7qUA.js} +15 -15
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +1 -1
- package/components/{slot-menu-list-CTJ-owp1.js → slot-menu-list-BRsAe3-b.js} +3 -3
- package/components/{slot-menu-list-BZllvntQ.cjs → slot-menu-list-CCrkNqq8.cjs} +1 -1
- package/components/slots-config-DMC15sjT.js +77 -0
- package/components/{speedometer-chart-options.config-jK_yQjy2.js → speedometer-chart-options.config-Bd3-G7S7.js} +1 -1
- package/components/{speedometer-chart-positioning.config-CNOKIw7e.cjs → speedometer-chart-positioning.config-CAsBGyZ7.cjs} +1 -1
- package/components/{speedometer-chart-positioning.config-FzFxMi0X.js → speedometer-chart-positioning.config-CsgmgREh.js} +1 -1
- package/components/{speedometer-chart-slots.config-CjkHAHNX.js → speedometer-chart-slots.config-CkeiXSCy.js} +1 -1
- package/components/{spike-map-options.config-cj07bETE.js → spike-map-options.config-B_2BXI_9.js} +1 -1
- package/components/{spike-map-positioning.config-B4NYfmEw.js → spike-map-positioning.config-BS8MuRkQ.js} +1 -1
- package/components/{spike-map-positioning.config-Bcdt8670.cjs → spike-map-positioning.config-D4isshlL.cjs} +1 -1
- package/components/{spike-map-slots.config-yMkdy-0w.js → spike-map-slots.config-C44Vxsit.js} +1 -1
- package/components/{strip-plot-options.config-DmAxeY2S.js → strip-plot-options.config-By62J2Jj.js} +1 -1
- package/components/{strip-plot-positioning.config-n9OIxpa_.js → strip-plot-positioning.config-CufC8vJi.js} +1 -1
- package/components/{strip-plot-positioning.config-BjcqWJoD.cjs → strip-plot-positioning.config-NpwP9QGU.cjs} +1 -1
- package/components/{strip-plot-slots.config-C07nIM5s.js → strip-plot-slots.config-xsNFXerT.js} +1 -1
- package/components/{sunburst-chart-options.config-CLyQG-8x.js → sunburst-chart-options.config-DwQwkQxR.js} +1 -1
- package/components/{sunburst-chart-positioning.config-BIpSCpSi.cjs → sunburst-chart-positioning.config-C5UCbZWE.cjs} +1 -1
- package/components/{sunburst-chart-positioning.config-CcGOcwOK.js → sunburst-chart-positioning.config-D60TNhUU.js} +1 -1
- package/components/{sunburst-chart-slots.config-BU9ma0xm.js → sunburst-chart-slots.config-D6Z2_Kh_.js} +1 -1
- package/components/{symbol-map-options.config-I_gykFhh.js → symbol-map-options.config-uXEbOHWD.js} +1 -1
- package/components/{symbol-map-positioning.config-H3n2ngaa.js → symbol-map-positioning.config-D1esOfIw.js} +1 -1
- package/components/{symbol-map-positioning.config-DPv89eCY.cjs → symbol-map-positioning.config-D__gPAF-.cjs} +1 -1
- package/components/{symbol-map-slots.config-CQJgV5bh.js → symbol-map-slots.config-CHTIkMw4.js} +1 -1
- package/components/{text-options.config-DUMx63Ol.js → text-options.config-B5y7YAqT.js} +1 -1
- package/components/{text-slots.config-YmmXsb-0.js → text-slots.config-sFoowMc6.js} +1 -1
- package/components/{treemap-chart-options.config-CAWPa5jK.js → treemap-chart-options.config-BouAbrk0.js} +1 -1
- package/components/{treemap-chart-positioning.config-W2sl4gZ0.cjs → treemap-chart-positioning.config-BZ1yMqy5.cjs} +1 -1
- package/components/{treemap-chart-positioning.config-Dzp4TodY.js → treemap-chart-positioning.config-DEnYiZKj.js} +1 -1
- package/components/{treemap-chart-slots.config-QEVbKZyS.js → treemap-chart-slots.config-BjHBRWDJ.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-C8VI4SiJ.cjs → utils-Bn8v7iuu.cjs} +1 -1
- package/components/{utils-BD_TKdii.js → utils-CIxpLDLh.js} +2 -2
- package/components/utils.cjs +1 -1
- package/components/utils.js +9 -9
- package/components/{venn-diagram-options.config-KKD89q3q.js → venn-diagram-options.config-BZWBYEhB.js} +1 -1
- package/components/{venn-diagram-positioning.config-BLSj3JqA.js → venn-diagram-positioning.config-DMceiBb8.js} +1 -1
- package/components/{venn-diagram-positioning.config-Bv3pFJIU.cjs → venn-diagram-positioning.config-DUvGRRSh.cjs} +1 -1
- package/components/{venn-diagram-slots.config-DsIqVOI2.js → venn-diagram-slots.config-CM0HPIPD.js} +1 -1
- package/components/{video-options.config-D2SEyNrP.js → video-options.config-DWuy1OHa.js} +1 -1
- package/components/{video-slots.config-B680gLmP.js → video-slots.config-B_aDlTp6.js} +1 -1
- package/components/viz-item-menu/index.cjs +1 -1
- package/components/viz-item-menu/index.js +1 -1
- package/components/{viz-item-menu-CiEJJddu.js → viz-item-menu-BisYrhhJ.js} +2 -2
- package/components/viz-item-menu-DEpm1w7U.cjs +55 -0
- package/components/{wordcloud-chart-options.config-DLN2RAEK.js → wordcloud-chart-options.config-D041tFDG.js} +1 -1
- package/components/{wordcloud-chart-positioning.config-ZTO2VLdY.cjs → wordcloud-chart-positioning.config-CeP0_j_m.cjs} +1 -1
- package/components/{wordcloud-chart-positioning.config-DVPWXJXb.js → wordcloud-chart-positioning.config-tVRXTpdQ.js} +1 -1
- package/components/{wordcloud-chart-slots.config-mFvqkiQE.js → wordcloud-chart-slots.config-Cy-Jgcaq.js} +1 -1
- package/custom-elements.json +498 -4
- package/index.d.ts +1 -0
- package/package.json +7 -2
- package/react/README.md +1 -0
- package/react/components/ai-chat.component.ts +6 -3
- package/react/components/interactive-viz-item/index.ts +1 -0
- package/react/components/interactive-viz-item/types.ts +122 -0
- package/react/components/interactive-viz-item.component.ts +33 -0
- package/react/esm/components/ai-chat.component.d.ts +4 -2
- package/react/esm/components/ai-chat.component.js +4 -2
- package/react/esm/components/interactive-viz-item/index.d.ts +1 -0
- package/react/esm/components/interactive-viz-item/index.js +1 -0
- package/react/esm/components/interactive-viz-item/types.d.ts +117 -0
- package/react/esm/components/interactive-viz-item/types.js +16 -0
- package/react/esm/components/interactive-viz-item.component.d.ts +16 -0
- package/react/esm/components/interactive-viz-item.component.js +21 -0
- package/react/esm/index.d.ts +3 -2
- package/react/esm/index.js +4 -0
- package/react/index.ts +4 -0
- package/react/luzmo-stub.d.ts +9 -0
- package/types/ai-chat.types.d.ts +27 -0
- package/components/data-field-level-7qi9K__S.cjs +0 -55
- package/components/data-field-panel-DUc8y4WA.cjs +0 -87
- package/components/default-acceptable-data-field-types-fPsz64ka.cjs +0 -20
- package/components/display-settings-DnzOjr-1.cjs +0 -120
- package/components/display-settings-datetime-DL0Qcz8Y.cjs +0 -217
- package/components/formula-BPHH_GKB.cjs +0 -45
- package/components/formula-input-base-CGe2ABn6.cjs +0 -49
- package/components/item-grid-BXZXJV3g.cjs +0 -339
- package/components/item-grid-uWM-Unjx.js +0 -8814
- package/components/item-option-action-button-group-DXCVJqpt.cjs +0 -53
- package/components/item-option-color-range-BFr0B6Vf.cjs +0 -98
- package/components/item-slot-drop-BUCjEfJf.cjs +0 -91
- package/components/item-slot-picker-panel-BUyp6Hbg.cjs +0 -81
- package/components/slots-config-BuHluMEl.js +0 -77
- package/components/viz-item-menu-Dry8xpRA.cjs +0 -55
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A single field descriptor inside a chart slot. Deliberately loose because the
|
|
3
|
+
* chart config is produced by the AI stream: it may carry either the short
|
|
4
|
+
* (`set`/`column`/`formula`) or the long (`datasetId`/`columnId`/`formulaId`)
|
|
5
|
+
* key form, which `normalizeChartConfig` reconciles.
|
|
6
|
+
*/
|
|
7
|
+
export interface SlotContent {
|
|
8
|
+
columnId?: string;
|
|
9
|
+
datasetId?: string;
|
|
10
|
+
column?: string;
|
|
11
|
+
set?: string;
|
|
12
|
+
formulaId?: string;
|
|
13
|
+
formula?: string;
|
|
14
|
+
label?: Record<string, string> | string | null;
|
|
15
|
+
level?: number;
|
|
16
|
+
format?: string;
|
|
17
|
+
subtype?: string | null;
|
|
18
|
+
lowestLevel?: number;
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface SlotConfig {
|
|
23
|
+
name: string;
|
|
24
|
+
content: SlotContent[];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface ChartOptions {
|
|
28
|
+
theme?: Record<string, unknown>;
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Loose chart shape as streamed by the AI. `slots` may be an array or the legacy
|
|
34
|
+
* keyed-object form; `normalizeChartConfig` produces the strict array shape.
|
|
35
|
+
*/
|
|
36
|
+
export interface FlexChartConfig {
|
|
37
|
+
type: string;
|
|
38
|
+
options: ChartOptions;
|
|
39
|
+
slots: SlotConfig[] | Record<string, unknown>;
|
|
40
|
+
filters?: unknown[];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface NormalizedChartConfig {
|
|
44
|
+
type: string;
|
|
45
|
+
options: ChartOptions;
|
|
46
|
+
slots: SlotConfig[];
|
|
47
|
+
filters?: unknown[];
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type ChartActionType = 'optionDropdown' | 'rankingPicker';
|
|
51
|
+
|
|
52
|
+
export interface ChartOption {
|
|
53
|
+
key: string;
|
|
54
|
+
label: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export enum RankingDirection {
|
|
58
|
+
Top = 'top',
|
|
59
|
+
Bottom = 'bottom'
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export enum SortDirection {
|
|
63
|
+
Asc = 'asc',
|
|
64
|
+
Desc = 'desc'
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export enum SortBy {
|
|
68
|
+
Measure = 'measure',
|
|
69
|
+
Category = 'category'
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface Ranking {
|
|
73
|
+
active: boolean;
|
|
74
|
+
number: number;
|
|
75
|
+
direction: RankingDirection;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface Sort {
|
|
79
|
+
direction: SortDirection;
|
|
80
|
+
by: SortBy;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export const DEFAULT_RANKING_NUMBER = 5;
|
|
84
|
+
|
|
85
|
+
export interface ChartActionDescriptor {
|
|
86
|
+
type: ChartActionType;
|
|
87
|
+
mutationType: string;
|
|
88
|
+
values?: ChartOption[];
|
|
89
|
+
currentValue?: string;
|
|
90
|
+
ranking?: Ranking;
|
|
91
|
+
sort?: Sort;
|
|
92
|
+
importance: number;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type ChartMutationRequest =
|
|
96
|
+
| { type: 'slots'; slotsContents: SlotConfig[] }
|
|
97
|
+
| { type: 'options'; options: ChartOptions }
|
|
98
|
+
| { type: 'filters'; filters: unknown[] }
|
|
99
|
+
| { type: 'chartAction'; actionType: string; key: string }
|
|
100
|
+
| { type: 'rankAndSort'; ranking: Ranking; sort: Sort }
|
|
101
|
+
| { type: 'fullReplace'; chart: NormalizedChartConfig };
|
|
102
|
+
|
|
103
|
+
export type ChartFeedbackRating = -1 | 0 | 1;
|
|
104
|
+
|
|
105
|
+
export interface ChartFeedback {
|
|
106
|
+
id?: string;
|
|
107
|
+
rating: ChartFeedbackRating;
|
|
108
|
+
comment?: string;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface InteractiveVizItemChartOptionsChangedEventDetail {
|
|
112
|
+
options: ChartOptions;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface InteractiveVizItemChartChangedEventDetail {
|
|
116
|
+
chart: FlexChartConfig;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface InteractiveVizItemFeedbackChangedEventDetail {
|
|
120
|
+
rating: ChartFeedbackRating;
|
|
121
|
+
comment?: string;
|
|
122
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent, EventName, ReactWebComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoInteractiveVizItem as LuzmoInteractiveVizItemClass, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail } from '@luzmo/analytics-components-kit/interactive-viz-item';
|
|
4
|
+
|
|
5
|
+
const LuzmoInteractiveVizItemComponent = createComponent({
|
|
6
|
+
tagName: 'luzmo-interactive-viz-item',
|
|
7
|
+
elementClass: LuzmoInteractiveVizItemClass,
|
|
8
|
+
react: React,
|
|
9
|
+
events: {
|
|
10
|
+
onLuzmoChartOptionsChanged: 'luzmo-chart-options-changed' as EventName<CustomEvent<InteractiveVizItemChartOptionsChangedEventDetail>>,
|
|
11
|
+
onLuzmoChartChanged: 'luzmo-chart-changed' as EventName<CustomEvent<InteractiveVizItemChartChangedEventDetail>>,
|
|
12
|
+
onLuzmoFeedbackChanged: 'luzmo-feedback-changed' as EventName<CustomEvent<InteractiveVizItemFeedbackChangedEventDetail>>
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* React wrapper for <luzmo-interactive-viz-item>
|
|
18
|
+
*
|
|
19
|
+
* @event onLuzmoChartOptionsChanged - Fired when the inline actions (ranking, sort, display mode) change the chart options.
|
|
20
|
+
* @event onLuzmoChartChanged - Fired when the config panel changes slots, filters, or options (full chart).
|
|
21
|
+
* @event onLuzmoFeedbackChanged - Fired when the user changes the thumbs up/down rating.
|
|
22
|
+
*/
|
|
23
|
+
export const LuzmoInteractiveVizItem = LuzmoInteractiveVizItemComponent as ReactWebComponent<
|
|
24
|
+
LuzmoInteractiveVizItemClass,
|
|
25
|
+
{
|
|
26
|
+
onLuzmoChartOptionsChanged: EventName<CustomEvent<InteractiveVizItemChartOptionsChangedEventDetail>>;
|
|
27
|
+
onLuzmoChartChanged: EventName<CustomEvent<InteractiveVizItemChartChangedEventDetail>>;
|
|
28
|
+
onLuzmoFeedbackChanged: EventName<CustomEvent<InteractiveVizItemFeedbackChangedEventDetail>>;
|
|
29
|
+
}
|
|
30
|
+
>;
|
|
31
|
+
|
|
32
|
+
/** The underlying custom element type for LuzmoInteractiveVizItem */
|
|
33
|
+
export type LuzmoInteractiveVizItemElement = LuzmoInteractiveVizItemClass;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
-
import { LuzmoAiChat as LuzmoAiChatClass, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatMessageSentEventDetail, AiChatStepEvent } from '@luzmo/analytics-components-kit/ai-chat';
|
|
2
|
+
import { LuzmoAiChat as LuzmoAiChatClass, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatMessageSentEventDetail, AiChatStepEvent, AssistantMessageActionEventDetail } from '@luzmo/analytics-components-kit/ai-chat';
|
|
3
3
|
/**
|
|
4
4
|
* React wrapper for <luzmo-ai-chat>
|
|
5
5
|
*
|
|
@@ -7,8 +7,9 @@ import { LuzmoAiChat as LuzmoAiChatClass, AiChatCompleteEvent, AiChatConversatio
|
|
|
7
7
|
* @event onLuzmoDatasetsChanged - Fired when the selected datasets change
|
|
8
8
|
* @event onLuzmoStep - Fired for every incremental, kit-assembled event during a streamed response (decision, text, progress, dashboard-title/layout/item, chart, interrupt, plus forward-by-default unrecognized chunks). Use `isRecognizedStep` to narrow.
|
|
9
9
|
* @event onLuzmoComplete - Fired exactly once per response with the authoritative final result (dashboard/chart/name) or an `error`.
|
|
10
|
-
* @event onLuzmoStop - Fired when an in-flight prompt is stopped
|
|
10
|
+
* @event onLuzmoStop - Fired when an in-flight prompt is stopped Custom actions beyond built-in `ChatMessage.actions` buttons can be projected via the `assistant-message-actions` light-DOM slot on the latest assistant message.
|
|
11
11
|
* @event onLuzmoConversationIdChanged - Fired when the conversation ID is updated from the API
|
|
12
|
+
* @event onLuzmoAssistantMessageAction - Fired when a built-in assistant message action is activated (after confirmation when `confirm` is set)
|
|
12
13
|
*/
|
|
13
14
|
export declare const LuzmoAiChat: ReactWebComponent<LuzmoAiChatClass, {
|
|
14
15
|
onLuzmoMessageSent: EventName<CustomEvent<AiChatMessageSentEventDetail>>;
|
|
@@ -17,6 +18,7 @@ export declare const LuzmoAiChat: ReactWebComponent<LuzmoAiChatClass, {
|
|
|
17
18
|
onLuzmoComplete: EventName<CustomEvent<AiChatCompleteEvent>>;
|
|
18
19
|
onLuzmoStop: EventName<CustomEvent<void>>;
|
|
19
20
|
onLuzmoConversationIdChanged: EventName<CustomEvent<AiChatConversationIdChangedEventDetail>>;
|
|
21
|
+
onLuzmoAssistantMessageAction: EventName<CustomEvent<AssistantMessageActionEventDetail>>;
|
|
20
22
|
}>;
|
|
21
23
|
/** The underlying custom element type for LuzmoAiChat */
|
|
22
24
|
export type LuzmoAiChatElement = LuzmoAiChatClass;
|
|
@@ -11,7 +11,8 @@ const LuzmoAiChatComponent = createComponent({
|
|
|
11
11
|
onLuzmoStep: 'luzmo-step',
|
|
12
12
|
onLuzmoComplete: 'luzmo-complete',
|
|
13
13
|
onLuzmoStop: 'luzmo-stop',
|
|
14
|
-
onLuzmoConversationIdChanged: 'luzmo-conversation-id-changed'
|
|
14
|
+
onLuzmoConversationIdChanged: 'luzmo-conversation-id-changed',
|
|
15
|
+
onLuzmoAssistantMessageAction: 'luzmo-assistant-message-action'
|
|
15
16
|
}
|
|
16
17
|
});
|
|
17
18
|
/**
|
|
@@ -21,7 +22,8 @@ const LuzmoAiChatComponent = createComponent({
|
|
|
21
22
|
* @event onLuzmoDatasetsChanged - Fired when the selected datasets change
|
|
22
23
|
* @event onLuzmoStep - Fired for every incremental, kit-assembled event during a streamed response (decision, text, progress, dashboard-title/layout/item, chart, interrupt, plus forward-by-default unrecognized chunks). Use `isRecognizedStep` to narrow.
|
|
23
24
|
* @event onLuzmoComplete - Fired exactly once per response with the authoritative final result (dashboard/chart/name) or an `error`.
|
|
24
|
-
* @event onLuzmoStop - Fired when an in-flight prompt is stopped
|
|
25
|
+
* @event onLuzmoStop - Fired when an in-flight prompt is stopped Custom actions beyond built-in `ChatMessage.actions` buttons can be projected via the `assistant-message-actions` light-DOM slot on the latest assistant message.
|
|
25
26
|
* @event onLuzmoConversationIdChanged - Fired when the conversation ID is updated from the API
|
|
27
|
+
* @event onLuzmoAssistantMessageAction - Fired when a built-in assistant message action is activated (after confirmation when `confirm` is set)
|
|
26
28
|
*/
|
|
27
29
|
export const LuzmoAiChat = LuzmoAiChatComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A single field descriptor inside a chart slot. Deliberately loose because the
|
|
3
|
+
* chart config is produced by the AI stream: it may carry either the short
|
|
4
|
+
* (`set`/`column`/`formula`) or the long (`datasetId`/`columnId`/`formulaId`)
|
|
5
|
+
* key form, which `normalizeChartConfig` reconciles.
|
|
6
|
+
*/
|
|
7
|
+
export interface SlotContent {
|
|
8
|
+
columnId?: string;
|
|
9
|
+
datasetId?: string;
|
|
10
|
+
column?: string;
|
|
11
|
+
set?: string;
|
|
12
|
+
formulaId?: string;
|
|
13
|
+
formula?: string;
|
|
14
|
+
label?: Record<string, string> | string | null;
|
|
15
|
+
level?: number;
|
|
16
|
+
format?: string;
|
|
17
|
+
subtype?: string | null;
|
|
18
|
+
lowestLevel?: number;
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
export interface SlotConfig {
|
|
22
|
+
name: string;
|
|
23
|
+
content: SlotContent[];
|
|
24
|
+
}
|
|
25
|
+
export interface ChartOptions {
|
|
26
|
+
theme?: Record<string, unknown>;
|
|
27
|
+
[key: string]: unknown;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Loose chart shape as streamed by the AI. `slots` may be an array or the legacy
|
|
31
|
+
* keyed-object form; `normalizeChartConfig` produces the strict array shape.
|
|
32
|
+
*/
|
|
33
|
+
export interface FlexChartConfig {
|
|
34
|
+
type: string;
|
|
35
|
+
options: ChartOptions;
|
|
36
|
+
slots: SlotConfig[] | Record<string, unknown>;
|
|
37
|
+
filters?: unknown[];
|
|
38
|
+
}
|
|
39
|
+
export interface NormalizedChartConfig {
|
|
40
|
+
type: string;
|
|
41
|
+
options: ChartOptions;
|
|
42
|
+
slots: SlotConfig[];
|
|
43
|
+
filters?: unknown[];
|
|
44
|
+
}
|
|
45
|
+
export type ChartActionType = 'optionDropdown' | 'rankingPicker';
|
|
46
|
+
export interface ChartOption {
|
|
47
|
+
key: string;
|
|
48
|
+
label: string;
|
|
49
|
+
}
|
|
50
|
+
export declare enum RankingDirection {
|
|
51
|
+
Top = "top",
|
|
52
|
+
Bottom = "bottom"
|
|
53
|
+
}
|
|
54
|
+
export declare enum SortDirection {
|
|
55
|
+
Asc = "asc",
|
|
56
|
+
Desc = "desc"
|
|
57
|
+
}
|
|
58
|
+
export declare enum SortBy {
|
|
59
|
+
Measure = "measure",
|
|
60
|
+
Category = "category"
|
|
61
|
+
}
|
|
62
|
+
export interface Ranking {
|
|
63
|
+
active: boolean;
|
|
64
|
+
number: number;
|
|
65
|
+
direction: RankingDirection;
|
|
66
|
+
}
|
|
67
|
+
export interface Sort {
|
|
68
|
+
direction: SortDirection;
|
|
69
|
+
by: SortBy;
|
|
70
|
+
}
|
|
71
|
+
export declare const DEFAULT_RANKING_NUMBER = 5;
|
|
72
|
+
export interface ChartActionDescriptor {
|
|
73
|
+
type: ChartActionType;
|
|
74
|
+
mutationType: string;
|
|
75
|
+
values?: ChartOption[];
|
|
76
|
+
currentValue?: string;
|
|
77
|
+
ranking?: Ranking;
|
|
78
|
+
sort?: Sort;
|
|
79
|
+
importance: number;
|
|
80
|
+
}
|
|
81
|
+
export type ChartMutationRequest = {
|
|
82
|
+
type: 'slots';
|
|
83
|
+
slotsContents: SlotConfig[];
|
|
84
|
+
} | {
|
|
85
|
+
type: 'options';
|
|
86
|
+
options: ChartOptions;
|
|
87
|
+
} | {
|
|
88
|
+
type: 'filters';
|
|
89
|
+
filters: unknown[];
|
|
90
|
+
} | {
|
|
91
|
+
type: 'chartAction';
|
|
92
|
+
actionType: string;
|
|
93
|
+
key: string;
|
|
94
|
+
} | {
|
|
95
|
+
type: 'rankAndSort';
|
|
96
|
+
ranking: Ranking;
|
|
97
|
+
sort: Sort;
|
|
98
|
+
} | {
|
|
99
|
+
type: 'fullReplace';
|
|
100
|
+
chart: NormalizedChartConfig;
|
|
101
|
+
};
|
|
102
|
+
export type ChartFeedbackRating = -1 | 0 | 1;
|
|
103
|
+
export interface ChartFeedback {
|
|
104
|
+
id?: string;
|
|
105
|
+
rating: ChartFeedbackRating;
|
|
106
|
+
comment?: string;
|
|
107
|
+
}
|
|
108
|
+
export interface InteractiveVizItemChartOptionsChangedEventDetail {
|
|
109
|
+
options: ChartOptions;
|
|
110
|
+
}
|
|
111
|
+
export interface InteractiveVizItemChartChangedEventDetail {
|
|
112
|
+
chart: FlexChartConfig;
|
|
113
|
+
}
|
|
114
|
+
export interface InteractiveVizItemFeedbackChangedEventDetail {
|
|
115
|
+
rating: ChartFeedbackRating;
|
|
116
|
+
comment?: string;
|
|
117
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export var RankingDirection;
|
|
2
|
+
(function (RankingDirection) {
|
|
3
|
+
RankingDirection["Top"] = "top";
|
|
4
|
+
RankingDirection["Bottom"] = "bottom";
|
|
5
|
+
})(RankingDirection || (RankingDirection = {}));
|
|
6
|
+
export var SortDirection;
|
|
7
|
+
(function (SortDirection) {
|
|
8
|
+
SortDirection["Asc"] = "asc";
|
|
9
|
+
SortDirection["Desc"] = "desc";
|
|
10
|
+
})(SortDirection || (SortDirection = {}));
|
|
11
|
+
export var SortBy;
|
|
12
|
+
(function (SortBy) {
|
|
13
|
+
SortBy["Measure"] = "measure";
|
|
14
|
+
SortBy["Category"] = "category";
|
|
15
|
+
})(SortBy || (SortBy = {}));
|
|
16
|
+
export const DEFAULT_RANKING_NUMBER = 5;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventName, ReactWebComponent } from '@lit/react';
|
|
2
|
+
import { LuzmoInteractiveVizItem as LuzmoInteractiveVizItemClass, InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail } from '@luzmo/analytics-components-kit/interactive-viz-item';
|
|
3
|
+
/**
|
|
4
|
+
* React wrapper for <luzmo-interactive-viz-item>
|
|
5
|
+
*
|
|
6
|
+
* @event onLuzmoChartOptionsChanged - Fired when the inline actions (ranking, sort, display mode) change the chart options.
|
|
7
|
+
* @event onLuzmoChartChanged - Fired when the config panel changes slots, filters, or options (full chart).
|
|
8
|
+
* @event onLuzmoFeedbackChanged - Fired when the user changes the thumbs up/down rating.
|
|
9
|
+
*/
|
|
10
|
+
export declare const LuzmoInteractiveVizItem: ReactWebComponent<LuzmoInteractiveVizItemClass, {
|
|
11
|
+
onLuzmoChartOptionsChanged: EventName<CustomEvent<InteractiveVizItemChartOptionsChangedEventDetail>>;
|
|
12
|
+
onLuzmoChartChanged: EventName<CustomEvent<InteractiveVizItemChartChangedEventDetail>>;
|
|
13
|
+
onLuzmoFeedbackChanged: EventName<CustomEvent<InteractiveVizItemFeedbackChangedEventDetail>>;
|
|
14
|
+
}>;
|
|
15
|
+
/** The underlying custom element type for LuzmoInteractiveVizItem */
|
|
16
|
+
export type LuzmoInteractiveVizItemElement = LuzmoInteractiveVizItemClass;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createComponent } from '@lit/react';
|
|
3
|
+
import { LuzmoInteractiveVizItem as LuzmoInteractiveVizItemClass } from '@luzmo/analytics-components-kit/interactive-viz-item';
|
|
4
|
+
const LuzmoInteractiveVizItemComponent = createComponent({
|
|
5
|
+
tagName: 'luzmo-interactive-viz-item',
|
|
6
|
+
elementClass: LuzmoInteractiveVizItemClass,
|
|
7
|
+
react: React,
|
|
8
|
+
events: {
|
|
9
|
+
onLuzmoChartOptionsChanged: 'luzmo-chart-options-changed',
|
|
10
|
+
onLuzmoChartChanged: 'luzmo-chart-changed',
|
|
11
|
+
onLuzmoFeedbackChanged: 'luzmo-feedback-changed'
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* React wrapper for <luzmo-interactive-viz-item>
|
|
16
|
+
*
|
|
17
|
+
* @event onLuzmoChartOptionsChanged - Fired when the inline actions (ranking, sort, display mode) change the chart options.
|
|
18
|
+
* @event onLuzmoChartChanged - Fired when the config panel changes slots, filters, or options (full chart).
|
|
19
|
+
* @event onLuzmoFeedbackChanged - Fired when the user changes the thumbs up/down rating.
|
|
20
|
+
*/
|
|
21
|
+
export const LuzmoInteractiveVizItem = LuzmoInteractiveVizItemComponent;
|
package/react/esm/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export { LuzmoFilters, type LuzmoFiltersElement } from './components/filters.com
|
|
|
24
24
|
export { LuzmoFormula, type LuzmoFormulaElement } from './components/formula.component';
|
|
25
25
|
export { LuzmoFormulaEditor, type LuzmoFormulaEditorElement } from './components/formula-editor.component';
|
|
26
26
|
export { LuzmoFormulaField, type LuzmoFormulaFieldElement } from './components/formula-field.component';
|
|
27
|
+
export { LuzmoInteractiveVizItem, type LuzmoInteractiveVizItemElement } from './components/interactive-viz-item.component';
|
|
27
28
|
export { LuzmoItemGrid, type LuzmoItemGridElement } from './components/item-grid.component';
|
|
28
29
|
export { LuzmoItemOption, type LuzmoItemOptionElement } from './components/item-option.component';
|
|
29
30
|
export { LuzmoItemOptionActionButtonGroup, type LuzmoItemOptionActionButtonGroupElement } from './components/item-option-action-button-group.component';
|
|
@@ -47,6 +48,6 @@ export { LuzmoItemSlotPickerPanel, type LuzmoItemSlotPickerPanelElement } from '
|
|
|
47
48
|
export { LuzmoSlotMenu, type LuzmoSlotMenuElement } from './components/slot-menu.component';
|
|
48
49
|
export { LuzmoSlotMenuList, type LuzmoSlotMenuListElement } from './components/slot-menu-list.component';
|
|
49
50
|
export { LuzmoVizItemMenu, type LuzmoVizItemMenuElement } from './components/viz-item-menu.component';
|
|
50
|
-
export declare const LUZMO_REACT_COMPONENTS: readonly [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any];
|
|
51
|
-
export declare const LUZMO_REACT_COMPONENT_NAMES: readonly ["LuzmoAiChat", "LuzmoAiInteractionTextarea", "LuzmoDataField", "LuzmoDataFieldLevel", "LuzmoDataFieldPanel", "LuzmoDataFieldsSelect", "LuzmoDatasetIcon", "LuzmoDatasetSelectorList", "LuzmoDatasetSelectorRow", "LuzmoDisplaySettings", "LuzmoDisplaySettingsBinning", "LuzmoDisplaySettingsDatetime", "LuzmoDisplaySettingsGrandTotals", "LuzmoDisplaySettingsNumeric", "LuzmoDisplaySettingsPeriodOverPeriod", "LuzmoFilterExpressionPicker", "LuzmoFilterItem", "LuzmoFilterParameterPicker", "LuzmoFilterValuePicker", "LuzmoFilterValuePickerDatetime", "LuzmoFilterValuePickerHierarchy", "LuzmoFilterValuePickerNumeric", "LuzmoFilters", "LuzmoFormula", "LuzmoFormulaEditor", "LuzmoFormulaField", "LuzmoItemGrid", "LuzmoItemOption", "LuzmoItemOptionActionButtonGroup", "LuzmoItemOptionColorPalettePicker", "LuzmoItemOptionColorPicker", "LuzmoItemOptionColorRange", "LuzmoItemOptionMultiLanguageField", "LuzmoItemOptionNumberField", "LuzmoItemOptionPanel", "LuzmoItemOptionPicker", "LuzmoItemOptionPositionPicker", "LuzmoItemOptionPositionsNumberField", "LuzmoItemOptionRadioButtonGroup", "LuzmoItemOptionSlider", "LuzmoItemOptionSwitch", "LuzmoItemOptionTextField", "LuzmoItemSlotDrop", "LuzmoItemSlotDropPanel", "LuzmoItemSlotPicker", "LuzmoItemSlotPickerPanel", "LuzmoSlotMenu", "LuzmoSlotMenuList", "LuzmoVizItemMenu"];
|
|
51
|
+
export declare const LUZMO_REACT_COMPONENTS: readonly [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any];
|
|
52
|
+
export declare const LUZMO_REACT_COMPONENT_NAMES: readonly ["LuzmoAiChat", "LuzmoAiInteractionTextarea", "LuzmoDataField", "LuzmoDataFieldLevel", "LuzmoDataFieldPanel", "LuzmoDataFieldsSelect", "LuzmoDatasetIcon", "LuzmoDatasetSelectorList", "LuzmoDatasetSelectorRow", "LuzmoDisplaySettings", "LuzmoDisplaySettingsBinning", "LuzmoDisplaySettingsDatetime", "LuzmoDisplaySettingsGrandTotals", "LuzmoDisplaySettingsNumeric", "LuzmoDisplaySettingsPeriodOverPeriod", "LuzmoFilterExpressionPicker", "LuzmoFilterItem", "LuzmoFilterParameterPicker", "LuzmoFilterValuePicker", "LuzmoFilterValuePickerDatetime", "LuzmoFilterValuePickerHierarchy", "LuzmoFilterValuePickerNumeric", "LuzmoFilters", "LuzmoFormula", "LuzmoFormulaEditor", "LuzmoFormulaField", "LuzmoInteractiveVizItem", "LuzmoItemGrid", "LuzmoItemOption", "LuzmoItemOptionActionButtonGroup", "LuzmoItemOptionColorPalettePicker", "LuzmoItemOptionColorPicker", "LuzmoItemOptionColorRange", "LuzmoItemOptionMultiLanguageField", "LuzmoItemOptionNumberField", "LuzmoItemOptionPanel", "LuzmoItemOptionPicker", "LuzmoItemOptionPositionPicker", "LuzmoItemOptionPositionsNumberField", "LuzmoItemOptionRadioButtonGroup", "LuzmoItemOptionSlider", "LuzmoItemOptionSwitch", "LuzmoItemOptionTextField", "LuzmoItemSlotDrop", "LuzmoItemSlotDropPanel", "LuzmoItemSlotPicker", "LuzmoItemSlotPickerPanel", "LuzmoSlotMenu", "LuzmoSlotMenuList", "LuzmoVizItemMenu"];
|
|
52
53
|
export type LuzmoReactComponentName = typeof LUZMO_REACT_COMPONENT_NAMES[number];
|
package/react/esm/index.js
CHANGED
|
@@ -26,6 +26,7 @@ import { LuzmoFilters } from './components/filters.component';
|
|
|
26
26
|
import { LuzmoFormula } from './components/formula.component';
|
|
27
27
|
import { LuzmoFormulaEditor } from './components/formula-editor.component';
|
|
28
28
|
import { LuzmoFormulaField } from './components/formula-field.component';
|
|
29
|
+
import { LuzmoInteractiveVizItem } from './components/interactive-viz-item.component';
|
|
29
30
|
import { LuzmoItemGrid } from './components/item-grid.component';
|
|
30
31
|
import { LuzmoItemOption } from './components/item-option.component';
|
|
31
32
|
import { LuzmoItemOptionActionButtonGroup } from './components/item-option-action-button-group.component';
|
|
@@ -75,6 +76,7 @@ export { LuzmoFilters } from './components/filters.component';
|
|
|
75
76
|
export { LuzmoFormula } from './components/formula.component';
|
|
76
77
|
export { LuzmoFormulaEditor } from './components/formula-editor.component';
|
|
77
78
|
export { LuzmoFormulaField } from './components/formula-field.component';
|
|
79
|
+
export { LuzmoInteractiveVizItem } from './components/interactive-viz-item.component';
|
|
78
80
|
export { LuzmoItemGrid } from './components/item-grid.component';
|
|
79
81
|
export { LuzmoItemOption } from './components/item-option.component';
|
|
80
82
|
export { LuzmoItemOptionActionButtonGroup } from './components/item-option-action-button-group.component';
|
|
@@ -126,6 +128,7 @@ export const LUZMO_REACT_COMPONENTS = [
|
|
|
126
128
|
LuzmoFormula,
|
|
127
129
|
LuzmoFormulaEditor,
|
|
128
130
|
LuzmoFormulaField,
|
|
131
|
+
LuzmoInteractiveVizItem,
|
|
129
132
|
LuzmoItemGrid,
|
|
130
133
|
LuzmoItemOption,
|
|
131
134
|
LuzmoItemOptionActionButtonGroup,
|
|
@@ -178,6 +181,7 @@ export const LUZMO_REACT_COMPONENT_NAMES = [
|
|
|
178
181
|
'LuzmoFormula',
|
|
179
182
|
'LuzmoFormulaEditor',
|
|
180
183
|
'LuzmoFormulaField',
|
|
184
|
+
'LuzmoInteractiveVizItem',
|
|
181
185
|
'LuzmoItemGrid',
|
|
182
186
|
'LuzmoItemOption',
|
|
183
187
|
'LuzmoItemOptionActionButtonGroup',
|
package/react/index.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { LuzmoFilters } from './components/filters.component';
|
|
|
27
27
|
import { LuzmoFormula } from './components/formula.component';
|
|
28
28
|
import { LuzmoFormulaEditor } from './components/formula-editor.component';
|
|
29
29
|
import { LuzmoFormulaField } from './components/formula-field.component';
|
|
30
|
+
import { LuzmoInteractiveVizItem } from './components/interactive-viz-item.component';
|
|
30
31
|
import { LuzmoItemGrid } from './components/item-grid.component';
|
|
31
32
|
import { LuzmoItemOption } from './components/item-option.component';
|
|
32
33
|
import { LuzmoItemOptionActionButtonGroup } from './components/item-option-action-button-group.component';
|
|
@@ -77,6 +78,7 @@ export { LuzmoFilters, type LuzmoFiltersElement } from './components/filters.com
|
|
|
77
78
|
export { LuzmoFormula, type LuzmoFormulaElement } from './components/formula.component';
|
|
78
79
|
export { LuzmoFormulaEditor, type LuzmoFormulaEditorElement } from './components/formula-editor.component';
|
|
79
80
|
export { LuzmoFormulaField, type LuzmoFormulaFieldElement } from './components/formula-field.component';
|
|
81
|
+
export { LuzmoInteractiveVizItem, type LuzmoInteractiveVizItemElement } from './components/interactive-viz-item.component';
|
|
80
82
|
export { LuzmoItemGrid, type LuzmoItemGridElement } from './components/item-grid.component';
|
|
81
83
|
export { LuzmoItemOption, type LuzmoItemOptionElement } from './components/item-option.component';
|
|
82
84
|
export { LuzmoItemOptionActionButtonGroup, type LuzmoItemOptionActionButtonGroupElement } from './components/item-option-action-button-group.component';
|
|
@@ -129,6 +131,7 @@ export const LUZMO_REACT_COMPONENTS = [
|
|
|
129
131
|
LuzmoFormula,
|
|
130
132
|
LuzmoFormulaEditor,
|
|
131
133
|
LuzmoFormulaField,
|
|
134
|
+
LuzmoInteractiveVizItem,
|
|
132
135
|
LuzmoItemGrid,
|
|
133
136
|
LuzmoItemOption,
|
|
134
137
|
LuzmoItemOptionActionButtonGroup,
|
|
@@ -182,6 +185,7 @@ export const LUZMO_REACT_COMPONENT_NAMES = [
|
|
|
182
185
|
'LuzmoFormula',
|
|
183
186
|
'LuzmoFormulaEditor',
|
|
184
187
|
'LuzmoFormulaField',
|
|
188
|
+
'LuzmoInteractiveVizItem',
|
|
185
189
|
'LuzmoItemGrid',
|
|
186
190
|
'LuzmoItemOption',
|
|
187
191
|
'LuzmoItemOptionActionButtonGroup',
|
package/react/luzmo-stub.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ declare module '@luzmo/analytics-components-kit' {
|
|
|
29
29
|
export class LuzmoFormula extends HTMLElement {}
|
|
30
30
|
export class LuzmoFormulaEditor extends HTMLElement {}
|
|
31
31
|
export class LuzmoFormulaField extends HTMLElement {}
|
|
32
|
+
export class LuzmoInteractiveVizItem extends HTMLElement {}
|
|
32
33
|
export class LuzmoItemGrid extends HTMLElement {}
|
|
33
34
|
export class LuzmoItemOption extends HTMLElement {}
|
|
34
35
|
export class LuzmoItemOptionActionButtonGroup extends HTMLElement {}
|
|
@@ -61,6 +62,7 @@ declare module '@luzmo/analytics-components-kit/ai-chat' {
|
|
|
61
62
|
export type AiChatDatasetsChangedEventDetail = Record<string, unknown>;
|
|
62
63
|
export type AiChatMessageSentEventDetail = Record<string, unknown>;
|
|
63
64
|
export type AiChatStepEvent = Record<string, unknown>;
|
|
65
|
+
export type AssistantMessageActionEventDetail = Record<string, unknown>;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
declare module '@luzmo/analytics-components-kit/ai-interaction-textarea' {
|
|
@@ -194,6 +196,13 @@ declare module '@luzmo/analytics-components-kit/formula-field' {
|
|
|
194
196
|
|
|
195
197
|
}
|
|
196
198
|
|
|
199
|
+
declare module '@luzmo/analytics-components-kit/interactive-viz-item' {
|
|
200
|
+
export class LuzmoInteractiveVizItem extends HTMLElement {}
|
|
201
|
+
export type InteractiveVizItemChartChangedEventDetail = Record<string, unknown>;
|
|
202
|
+
export type InteractiveVizItemChartOptionsChangedEventDetail = Record<string, unknown>;
|
|
203
|
+
export type InteractiveVizItemFeedbackChangedEventDetail = Record<string, unknown>;
|
|
204
|
+
}
|
|
205
|
+
|
|
197
206
|
declare module '@luzmo/analytics-components-kit/item-grid' {
|
|
198
207
|
export class LuzmoItemGrid extends HTMLElement {}
|
|
199
208
|
export type GridItemActionEventDetail = Record<string, unknown>;
|
package/types/ai-chat.types.d.ts
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
|
+
import type { IconDefinition } from '@luzmo/icons';
|
|
1
2
|
import type { ProgressTreeNode } from '@luzmo/lucero/progress-steps';
|
|
2
3
|
import type { Dataset } from './dataset.types';
|
|
3
4
|
export type { ProgressTreeNode };
|
|
5
|
+
/** Lucero button variants allowed for assistant message action confirm buttons. */
|
|
6
|
+
export type AssistantMessageActionConfirmVariant = 'primary' | 'secondary' | 'neutral' | 'negative' | 'positive' | 'white' | 'black';
|
|
7
|
+
/** Built-in assistant message action rendered by luzmo-ai-chat. */
|
|
8
|
+
export interface AssistantMessageAction {
|
|
9
|
+
/** Unique action identifier handled by the host application. */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Button label shown in the assistant message actions footer. */
|
|
12
|
+
label: string;
|
|
13
|
+
/** Optional Lucero icon shown before the label. */
|
|
14
|
+
icon?: IconDefinition;
|
|
15
|
+
/** When true, the action button is not clickable. */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** When true, shows a confirmation step before firing `luzmo-assistant-message-action`. */
|
|
18
|
+
confirm?: boolean;
|
|
19
|
+
/** Custom confirmation prompt. Used when `confirm` is true; falls back to a default message when omitted. */
|
|
20
|
+
confirmMessage?: string;
|
|
21
|
+
/** Confirm button variant. Used when `confirm` is true; defaults to `negative`. */
|
|
22
|
+
confirmVariant?: AssistantMessageActionConfirmVariant;
|
|
23
|
+
}
|
|
4
24
|
export interface ChatMessage {
|
|
5
25
|
id?: string;
|
|
6
26
|
apiMessageId?: string;
|
|
@@ -10,6 +30,13 @@ export interface ChatMessage {
|
|
|
10
30
|
isError?: boolean;
|
|
11
31
|
isCancelled?: boolean;
|
|
12
32
|
hasChart?: boolean;
|
|
33
|
+
/** Built-in action buttons rendered below this assistant message. Use slots for custom actions. */
|
|
34
|
+
actions?: AssistantMessageAction[];
|
|
35
|
+
}
|
|
36
|
+
export interface AssistantMessageActionEventDetail {
|
|
37
|
+
messageId: string;
|
|
38
|
+
actionId: string;
|
|
39
|
+
message: ChatMessage;
|
|
13
40
|
}
|
|
14
41
|
export interface AiChatMessageSentEventDetail {
|
|
15
42
|
message: ChatMessage;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
const e=require("./base-kQ6cjcIZ.cjs"),t=require("./decorate-DCJt-2rt.cjs"),n=require("./calculate-data-field-icon-DenGmW74.cjs"),r=require("./localize-D3i4Epy_.cjs"),i=require("./pragmatic-element-adapter-DdyH32ix.cjs"),a=require("./get-css-variable-CBXsAxR6.cjs");let o=require("@luzmo/icons"),s=require("lit"),c=require("lit/decorators.js"),l=require("@lit/localize");require("@luzmo/lucero/icon"),require("@luzmo/lucero/tooltip");var u=`:host{font-family:var(--luzmo-data-field-level-font-family,var(--luzmo-font-family));color:var(--luzmo-data-field-level-font-color,var(--data-field-level-font-color))}.data-field-level{transition:background-color var(--luzmo-animation-duration);background-color:var(--luzmo-data-field-level-background-color,var(--data-field-level-background-color));grid-template-columns:var(--luzmo-data-field-level-drag-handle-width,var(--data-field-level-drag-handle-width)) var(--luzmo-data-field-level-data-icon-width,var(--data-field-level-data-icon-width)) 1fr var(--luzmo-data-field-level-description-width,var(--data-field-level-description-width,auto));gap:var(--luzmo-data-field-level-gap,var(--data-field-level-gap));padding:0 var(--luzmo-data-field-level-horizontal-padding,var(--data-field-level-horizontal-padding));border-radius:var(--luzmo-data-field-level-border-radius,var(--data-field-level-border-radius));border-width:var(--luzmo-data-field-level-border-width,var(--data-field-level-border-width));border-style:var(--luzmo-data-field-level-border-style,var(--data-field-level-border-style));border-color:var(--luzmo-data-field-level-border-color,var(--data-field-level-border-color));align-items:center;display:grid}.data-field-level:hover{background-color:var(--luzmo-data-field-level-background-color-hover,var(--data-field-level-background-color-hover));color:var(--luzmo-data-field-level-font-color-hover,var(--data-field-level-font-color-hover));border-color:var(--luzmo-data-field-level-border-color-hover,var(--data-field-level-border-color-hover))}.data-field-level:hover .data-description{color:var(--luzmo-data-field-level-font-color-hover,var(--data-field-level-font-color-hover))}.data-field-level .data-label{font-size:var(--luzmo-data-field-level-label-font-size,var(--data-field-level-label-font-size));white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden}.data-field-level .data-description{height:100%;color:var(--luzmo-data-field-level-font-color,var(--data-field-level-font-color));font-size:var(--luzmo-data-field-level-label-font-size,var(--data-field-level-label-font-size));background-color:#0000;border:none;outline:none;align-items:center;display:flex}.data-field-level{height:var(--luzmo-data-field-level-height,var(--data-field-level-height));cursor:move}.data-field-level:focus-visible{outline:var(--luzmo-indicator-width) solid var(--luzmo-indicator-color);outline-offset:calc(-1 * var(--luzmo-indicator-width))}:host([sublevel]) .data-field-level{height:var(--luzmo-data-field-level-sublevel-height,var(--data-field-level-sublevel-height));background-color:var(--luzmo-data-field-level-sublevel-background-color,var(--data-field-level-sublevel-background-color));border-color:var(--luzmo-data-field-level-sublevel-border-color,var(--data-field-level-sublevel-border-color));grid-template-columns:var(--luzmo-data-field-level-sublevel-drag-handle-width,var(--luzmo-data-field-level-drag-handle-width)) 1fr;margin-inline-start:var(--luzmo-data-field-level-sublevel-margin-inline-start,var(--data-field-level-sublevel-margin-inline-start))}:host([sublevel]) .data-field-level:hover{background-color:var(--luzmo-data-field-level-sublevel-background-color-hover,var(--data-field-level-sublevel-background-color-hover));color:var(--luzmo-data-field-level-sublevel-font-color-hover,var(--data-field-level-sublevel-font-color-hover))}:host([sublevel]) .data-field-level .drag-handle-icon{width:var(--luzmo-data-field-level-sublevel-drag-handle-width,var(--data-field-level-sublevel-drag-handle-width));text-align:center}:host(.highlighted) .data-field-level:not(:hover){background-color:var(--luzmo-data-field-level-background-color-highlighted,var(--data-field-level-background-color-highlighted));color:var(--luzmo-data-field-level-font-color-highlighted,var(--data-field-level-font-color-highlighted));border-color:var(--luzmo-data-field-level-border-color-highlighted,var(--data-field-level-border-color-highlighted))}:host(.highlighted) .data-field-level:not(:hover) .data-description{color:var(--luzmo-data-field-level-font-color-highlighted,var(--data-field-level-font-color-highlighted))}:host([disabled]) .data-field-level{background-color:var(--luzmo-data-field-level-background-color-disabled,var(--data-field-level-background-color-disabled));color:var(--luzmo-data-field-level-color-disabled,var(--data-field-level-color-disabled));cursor:not-allowed}:host([disabled]) .drag-handle-icon{opacity:.25}:host([sublevel][disabled]) .data-field-level{background-color:var(--luzmo-data-field-level-sublevel-background-color-disabled,var(--data-field-level-sublevel-background-color-disabled))}:host(.pulse) .data-field-level{box-shadow:0 0 0 0 var(--luzmo-data-field-level-pulse-color,var(--data-field-level-pulse-color)), 0 0 0 0 var(--luzmo-data-field-level-pulse-color,var(--data-field-level-pulse-color));animation:1.5s cubic-bezier(.66,.33,0,1) infinite dataFieldLevelPulse}:host(.focus) .data-field-level{background-color:var(--luzmo-data-field-level-background-color-focus,var(--data-field-level-background-color-focus));color:var(--luzmo-data-field-level-font-color-focus,var(--data-field-level-font-color-focus));border-color:var(--luzmo-data-field-level-border-color-focus,var(--data-field-level-border-color-focus))}:host(.focus) .data-field-level .data-description{color:var(--luzmo-data-field-level-font-color-focus,var(--data-field-level-font-color-focus))}@keyframes dataFieldLevelPulse{0%{box-shadow:0 0 0 0 var(--luzmo-data-field-level-pulse-color,var(--data-field-level-pulse-color)), 0 0 0 0 var(--luzmo-data-field-level-pulse-color,var(--data-field-level-pulse-color))}to{box-shadow:0 0 0 .5rem #0000,0 0 0 .5rem #0000}}@media (prefers-reduced-motion:reduce){.data-field-level{transition:none}:host(.pulse) .data-field-level{animation:none}}.drag-handle-icon{opacity:.6;font-size:var(--luzmo-data-field-level-drag-handle-size,var(--luzmo-data-field-level-drag-handle-size));width:var(--luzmo-data-field-level-drag-handle-width,var(--luzmo-data-field-level-drag-handle-width));text-align:center;justify-self:center}.data-icon-type{width:var(--luzmo-data-field-level-data-icon-width,var(--luzmo-data-field-level-data-icon-width));text-align:center;justify-self:center;position:relative}.with-secondary-icon{clip-path:polygon(0 0,60% 0,65% 60%,100% 65%,100% 100%,0 100%)}.secondary-icon{width:auto;font-size:.75em;line-height:1;position:absolute;bottom:45%;left:70%}:host([variant=highlight]){--data-field-level-background-color:var(--luzmo-background-color-highlight);--data-field-level-border-color:var(--luzmo-background-color-highlight);--data-field-level-background-color-hover:var(--luzmo-background-color-highlight-hover);--data-field-level-font-color-hover:var(--luzmo-font-color-hover);--data-field-level-border-color-hover:var(--luzmo-background-color-highlight-hover)}:host{--data-field-level-height:var(--luzmo-component-height);--data-field-level-label-font-size:var(--luzmo-font-size);--data-field-level-icon-type-size:var(--luzmo-font-size);--data-field-level-horizontal-padding:var(--luzmo-spacing-5);--data-field-level-border-width:var(--luzmo-border-width);--data-field-level-border-style:solid;--data-field-level-border-color:var(--luzmo-border-color-hover);--data-field-level-border-radius:var(--luzmo-border-radius);--data-field-level-gap:var(--luzmo-spacing-4);--data-field-level-font-color:var(--luzmo-font-color);--data-field-level-color-disabled:var(--luzmo-color-disabled);--data-field-level-background-color-disabled:var(--luzmo-background-color-disabled);--luzmo-data-field-level-drag-handle-size:var(--luzmo-font-size-s);--luzmo-data-field-level-drag-handle-width:var(--data-field-level-icon-type-size);--luzmo-data-field-level-data-icon-width:calc(var(--data-field-level-icon-type-size) + var(--luzmo-spacing-3));--luzmo-data-field-level-description-width:calc(var(--data-field-level-icon-type-size) + var(--luzmo-spacing-2));--data-field-level-sublevel-height:var(--luzmo-component-height-s);--data-field-level-sublevel-border-color:transparent;--data-field-level-sublevel-background-color:transparent;--data-field-level-sublevel-background-color-disabled:transparent;--data-field-level-sublevel-margin-inline-start:calc(var(--data-field-level-gap) + var(--luzmo-data-field-level-drag-handle-width));--luzmo-data-field-level-sublevel-drag-handle-width:var(--luzmo-data-field-level-data-icon-width);--data-field-level-sublevel-background-color-hover:rgba(var(--luzmo-border-color-rgb), .05)}:host([hide-type-icon]){--data-field-level-sublevel-margin-inline-start:var(--data-field-level-gap)}:host(.highlighted){--data-field-level-background-color-highlighted:var(--luzmo-primary);--data-field-level-font-color-highlighted:var(--luzmo-primary-inverse-color);--data-field-level-border-color-highlighted:var(--luzmo-border-color)}:host(.focus){--data-field-level-background-color-focus:var(--luzmo-background-color-focus,var(--luzmo-primary));--data-field-level-font-color-focus:var(--luzmo-font-color-focus,var(--luzmo-primary-inverse-color));--data-field-level-border-color-focus:var(--luzmo-border-color-focus,var(--luzmo-primary))}:host(.pulse){--data-field-level-pulse-color:rgba(var(--luzmo-primary-rgb), .4)}:host([size=s]){--data-field-level-height:var(--luzmo-component-height-s);--data-field-level-label-font-size:var(--luzmo-font-size-s);--data-field-level-icon-type-size:var(--luzmo-font-size-s);--data-field-level-horizontal-padding:var(--luzmo-spacing-4);--data-field-level-border-radius:var(--luzmo-border-radius);--data-field-level-gap:var(--luzmo-spacing-3);--data-field-level-sublevel-height:var(--luzmo-component-height-xs);--luzmo-data-field-level-drag-handle-size:var(--luzmo-font-size-xs)}:host([size=l]){--data-field-level-height:var(--luzmo-component-height-l);--data-field-level-label-font-size:var(--luzmo-font-size-l);--data-field-level-icon-type-size:var(--luzmo-font-size-l);--data-field-level-horizontal-padding:var(--luzmo-spacing-5);--data-field-level-border-radius:var(--luzmo-border-radius-l);--data-field-level-gap:var(--luzmo-spacing-5);--data-field-level-sublevel-height:var(--luzmo-component-height);--luzmo-data-field-level-drag-handle-size:var(--luzmo-font-size)}:host([size=xl]){--data-field-level-height:var(--luzmo-component-height-xl);--data-field-level-label-font-size:var(--luzmo-font-size-xl);--data-field-level-icon-type-size:var(--luzmo-font-size-xl);--data-field-level-horizontal-padding:var(--luzmo-spacing-5);--data-field-level-border-radius:var(--luzmo-border-radius-xl);--data-field-level-gap:var(--luzmo-spacing-5);--data-field-level-sublevel-height:var(--luzmo-component-height-l);--luzmo-data-field-level-drag-handle-size:var(--luzmo-font-size-l)}:host{box-sizing:border-box}`,d=e=>{let t=e.source.element,i=e.source.data,o=t.renderRoot?.querySelector(`.data-label`)?.textContent||r.t(i.name,t.language)||`Untitled`,s=i.type,c=i.subtype,l=n.t({type:s,subtype:c},t.size),u={};[[`borderColor`,`--luzmo-data-field-level-border-color`,`--data-field-level-border-color`],[`backgroundColor`,`--luzmo-data-field-level-background-color`,`--data-field-level-background-color`],[`color`,`--luzmo-data-field-level-font-color`,`--data-field-level-font-color`],[`fontSize`,`--luzmo-data-field-level-label-font-size`,`--data-field-level-label-font-size`],[`height`,`--luzmo-data-field-level-height`,`--data-field-level-height`],[`borderRadius`,`--luzmo-data-field-level-border-radius`,`--data-field-level-border-radius`],[`fontFamily`,`--luzmo-data-field-level-font-family`,`--luzmo-font-family`],[`horizontalPadding`,`--luzmo-data-field-level-horizontal-padding`,`--data-field-level-horizontal-padding`],[`gap`,`--luzmo-data-field-level-gap`,`--data-field-level-gap`]].forEach(([e,n,r])=>{let i=a.t(t,n)||a.t(t,r);u[e]=i});let d=document.createElement(`div`),f=document.createElement(`div`);if(d.innerHTML=o,Object.assign(d.style,{maxWidth:`12rem`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}),!t.sublevel){let e=document.createElement(`luzmo-icon`);e.icon=l,f.append(e)}return f.append(d),Object.assign(f.style,{display:`flex`,alignItems:`center`,maxWidth:`12rem`,lineHeight:`1`,height:u.height,border:`1px solid ${u.borderColor}`,backgroundColor:u.backgroundColor,borderRadius:u.borderRadius,fontFamily:u.fontFamily,fontSize:u.fontSize,color:u.color,padding:`0 ${u.horizontalPadding}`,gap:u.gap}),f},f=class extends e.n(e.i,{validSizes:[`s`,`m`,`l`,`xl`],noDefaultSize:!0}){constructor(...e){super(...e),this.language=`en`,this.data={},this._isCurrentlyHighlighted=!1,this._handleHighlight=e=>{let{columnId:t,level:n,formulaId:r}=e.detail??{},i=this.data?.columnId??this.data?.column??this.data?.formulaId??this.data?.formula??this.data?.id,a=this.data?.level??0,o=n??0,s=(i===t||i===r)&&a===o||(i===t||i===r)&&a===0&&o>0;if(this.classList.toggle(`highlighted`,s),s&&!this._isCurrentlyHighlighted){this._isCurrentlyHighlighted=!0;let e=this.getBoundingClientRect(),t=window.innerHeight||document.documentElement.clientHeight;if(e.top<0||e.bottom>t)try{this.scrollIntoView({block:`center`})}catch{this.scrollIntoView(!0)}}else!s&&this._isCurrentlyHighlighted&&(this._isCurrentlyHighlighted=!1)},this._clearHighlight=()=>{this.classList.remove(`highlighted`),this._isCurrentlyHighlighted=!1},this.dataFieldLevelDropped=e=>{this.dispatchEvent(new CustomEvent(`luzmo-data-field-dropped`,{bubbles:!0,composed:!0,cancelable:!0,detail:{data:e}}))},this.dataFieldLevelDragStarted=e=>{this.dispatchEvent(new CustomEvent(`luzmo-data-field-drag-started`,{bubbles:!0,composed:!0,cancelable:!0,detail:{data:e}}))}}static{this.styles=(0,s.unsafeCSS)(u)}disconnectedCallback(){super.disconnectedCallback(),this._cleanupDraggable&&=(this._cleanupDraggable(),void 0),window.removeEventListener(`luzmo-slot-menu-highlight`,this._handleHighlight),window.removeEventListener(`luzmo-slot-menu-inactive`,this._clearHighlight)}connectedCallback(){super.connectedCallback(),window.addEventListener(`luzmo-slot-menu-highlight`,this._handleHighlight),window.addEventListener(`luzmo-slot-menu-inactive`,this._clearHighlight)}firstUpdated(e){this._cleanupDraggable=i.t({element:this,canDrag:()=>!this.disabled,onDragStart:()=>{this.style.opacity=`0.5`,this.dataFieldLevelDragStarted(this.data)},onDrop:()=>{this.style.opacity=`1`,this.dataFieldLevelDropped(this.data)},getInitialData:()=>({...this.data}),onGenerateDragPreview:e=>{let t=e.nativeSetDragImage;a.n({render({container:t}){let n=d(e);t.append(n)},nativeSetDragImage:t})}})}render(){if(!this.data)return s.html`
|
|
21
|
-
<div
|
|
22
|
-
class="data-field-level"
|
|
23
|
-
tabindex="0"
|
|
24
|
-
></div>
|
|
25
|
-
`;let e=e=>{if(e)return e[this.language]??e[Object.keys(e)[0]]},t=this.data,r=(this.sublevel&&t.sublevelLabel?t.sublevelLabel:void 0)??e(this.data.name)??`Untitled`,i=e(this.data.description),a=n.n(this.data,this.size);return s.html`
|
|
26
|
-
<div class="data-field-level" tabindex="0">
|
|
27
|
-
<div class="drag-handle-icon">
|
|
28
|
-
${this.sublevel?(0,o.luzmoIcon)(o.luzmoDragLines):(0,o.luzmoIcon)(o.luzmoArrows)}
|
|
29
|
-
</div>
|
|
30
|
-
${this.sublevel||this.hideTypeIcon?``:s.html`<div class="data-icon-type">
|
|
31
|
-
<div class=${a?`with-secondary-icon`:``}>
|
|
32
|
-
${(0,o.luzmoIcon)(n.t(this.data,this.size))}
|
|
33
|
-
</div>
|
|
34
|
-
${a?s.html`<div class="secondary-icon">
|
|
35
|
-
${(0,o.luzmoIcon)(a)}
|
|
36
|
-
</div>`:``}
|
|
37
|
-
</div>`}
|
|
38
|
-
<div class="data-label">${r}</div>
|
|
39
|
-
${!this.sublevel&&i?s.html`<button class="data-description" aria-label=${(0,l.msg)(`Show description`,{desc:`Aria label for data field description button`})}>
|
|
40
|
-
${(0,o.luzmoIcon)(o.luzmoInfoCircleOutline)}
|
|
41
|
-
<luzmo-tooltip self-managed placement="top" size=${this.size}>
|
|
42
|
-
${i}
|
|
43
|
-
</luzmo-tooltip>
|
|
44
|
-
</button>`:``}
|
|
45
|
-
<luzmo-tooltip
|
|
46
|
-
self-managed
|
|
47
|
-
placement="top"
|
|
48
|
-
size=${this.size}
|
|
49
|
-
show-only-if-truncated
|
|
50
|
-
truncated-element-selector=".data-label"
|
|
51
|
-
>
|
|
52
|
-
${r}
|
|
53
|
-
</luzmo-tooltip>
|
|
54
|
-
</div>
|
|
55
|
-
`}};t.t([(0,c.property)({type:String,reflect:!0})],f.prototype,`variant`,void 0),t.t([(0,c.property)({type:Boolean,reflect:!0,attribute:`hide-type-icon`})],f.prototype,`hideTypeIcon`,void 0),t.t([(0,c.property)({type:Boolean,reflect:!0})],f.prototype,`sublevel`,void 0),t.t([(0,c.property)({type:String,reflect:!0})],f.prototype,`language`,void 0),t.t([(0,c.property)({type:Boolean,reflect:!0})],f.prototype,`disabled`,void 0),t.t([(0,c.property)({type:Object})],f.prototype,`data`,void 0),customElements.get(`luzmo-data-field-level`)||customElements.define(`luzmo-data-field-level`,f),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return f}});
|