@luzmo/analytics-components-kit 1.0.4 → 1.0.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ad-hoc-slot-content-BxpvfmjT.js +29 -0
- package/components/ad-hoc-slot-content-DJUmB7pS.cjs +20 -0
- package/components/ai-chat/ai-chat-events.d.ts +123 -0
- package/components/ai-chat/ai-chat-request.d.ts +11 -0
- package/components/ai-chat/ai-chat.d.ts +302 -0
- package/components/ai-chat/ai-prompt-types.d.ts +94 -0
- package/components/ai-chat/empty-state/ai-chat-empty-state.d.ts +46 -0
- package/components/ai-chat/empty-state/index.d.ts +8 -0
- package/components/ai-chat/empty-state/types.d.ts +14 -0
- package/components/ai-chat/index.cjs +20 -0
- package/components/ai-chat/index.d.ts +20 -0
- package/components/ai-chat/index.js +28 -0
- package/components/ai-chat/session/ai-chat-session-controller.d.ts +51 -0
- package/components/ai-chat/session/ai-chat-session-types.d.ts +88 -0
- package/components/ai-chat/session/ai-chat-session.d.ts +91 -0
- package/components/ai-chat/session/index.d.ts +2 -0
- package/components/ai-chat/stream/chunk-extractors.d.ts +27 -0
- package/components/ai-chat/stream/index.d.ts +52 -0
- package/components/ai-chat/stream/progress.d.ts +3 -0
- package/components/ai-chat/stream/registry.d.ts +6 -0
- package/components/ai-chat/stream/stream-processor.d.ts +2 -0
- package/components/ai-chat/stream/transport.d.ts +26 -0
- package/components/ai-chat/stream/types.d.ts +55 -0
- package/components/ai-chat-BBc330Jm.js +3832 -0
- package/components/ai-chat-DLDSaC7W.cjs +300 -0
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +135 -0
- package/components/ai-interaction-textarea/index.cjs +20 -0
- package/components/ai-interaction-textarea/index.d.ts +8 -0
- package/components/ai-interaction-textarea/index.js +28 -0
- package/components/ai-interaction-textarea/types.d.ts +5 -0
- package/components/ai-interaction-textarea-BCH5_GBO.cjs +68 -0
- package/components/ai-interaction-textarea-DzHetSBZ.js +299 -0
- package/components/{area-chart-positioning.config-CQW5h7Eg.js → area-chart-positioning.config-CjeYLy6C.js} +1 -1
- package/components/{area-chart-positioning.config-CE8lOCfT.cjs → area-chart-positioning.config-DVrykBho.cjs} +1 -1
- package/components/{bar-chart-positioning.config-DFI1wzOQ.cjs → bar-chart-positioning.config-DpF15KcV.cjs} +1 -1
- package/components/{bar-chart-positioning.config-DaH_x_VU.js → bar-chart-positioning.config-e-SAdpBe.js} +1 -1
- package/components/base-DSXeP3BL.cjs +20 -0
- package/components/{base-p2I4mVSW.js → base-a89RuUMb.js} +2 -1
- package/components/{box-plot-positioning.config-K2tQGMig.js → box-plot-positioning.config-Bq2INEtG.js} +1 -1
- package/components/{box-plot-positioning.config-FOyav5Zq.cjs → box-plot-positioning.config-DbwtHJ4q.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-B6DXfqa4.cjs → bubble-chart-positioning.config--EBfDgdN.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-D2fwO2JM.js → bubble-chart-positioning.config-DFnW4mJ9.js} +1 -1
- package/components/{bullet-chart-positioning.config-DZqzqZSQ.cjs → bullet-chart-positioning.config-CZ46z07k.cjs} +1 -1
- package/components/{bullet-chart-positioning.config-DOAG2wFN.js → bullet-chart-positioning.config-DS2OmjBY.js} +1 -1
- package/components/{choropleth-map-positioning.config-C3jO3j8R.cjs → choropleth-map-positioning.config-Clm5IUT6.cjs} +1 -1
- package/components/{choropleth-map-positioning.config-Jw6fAFM1.js → choropleth-map-positioning.config-DgANsGq1.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-Ckb-1sUG.js → circle-pack-chart-positioning.config-2H1CrfH_.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-DJT6ivEy.cjs → circle-pack-chart-positioning.config-qF0qGcEO.cjs} +1 -1
- package/components/{circular-gauge-positioning.config-B8gL5Br9.cjs → circular-gauge-positioning.config-CMttD_BW.cjs} +1 -1
- package/components/{circular-gauge-positioning.config-BGlDGhYZ.js → circular-gauge-positioning.config-CusKP9Tq.js} +1 -1
- package/components/{column-chart-positioning.config-LzBETWIy.cjs → column-chart-positioning.config-ColoutIT.cjs} +1 -1
- package/components/{column-chart-positioning.config-BJGWvFLD.js → column-chart-positioning.config-rRwPVTbj.js} +1 -1
- package/components/{combination-chart-positioning.config-DjmWx90S.cjs → combination-chart-positioning.config-DAVrKW-6.cjs} +1 -1
- package/components/{combination-chart-positioning.config-DtneKdwK.js → combination-chart-positioning.config-uLf1RJQr.js} +1 -1
- package/components/{conditional-number-positioning.config-Ccb2yjJU.js → conditional-number-positioning.config-DZjwZfsH.js} +1 -1
- package/components/{conditional-number-positioning.config-C8bRdffQ.cjs → conditional-number-positioning.config-Nwsh-WyG.cjs} +1 -1
- package/components/convert-data-field-to-slot-content-BQkSy_8B.cjs +20 -0
- package/components/convert-data-field-to-slot-content-C6IIqU7G.js +53 -0
- package/components/convert-datasets-to-data-fields-B13rl1an.cjs +20 -0
- package/components/convert-datasets-to-data-fields-PmQzeVLG.js +68 -0
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.d.ts +1 -0
- package/components/data-field/index.js +1 -1
- package/components/data-field-CFX9bhKN.js +121 -0
- package/components/data-field-bRmOqmAe.cjs +54 -0
- package/components/data-field-level/data-field-level.d.ts +40 -0
- package/components/data-field-level/helpers/generate-preview.d.ts +9 -0
- package/components/data-field-level/index.cjs +20 -0
- package/components/data-field-level/index.d.ts +8 -0
- package/components/data-field-level/index.js +28 -0
- package/components/{data-field-ll2oFVG2.js → data-field-level-Cc6yEETi.js} +46 -140
- package/components/data-field-level-Dnl27sxs.cjs +55 -0
- package/components/data-field-panel/index.cjs +1 -1
- package/components/data-field-panel/index.d.ts +1 -0
- package/components/data-field-panel/index.js +1 -1
- package/components/data-field-panel-BDExLalA.cjs +87 -0
- package/components/{data-field-panel-ntgCpQ_2.js → data-field-panel-DcqVOzMO.js} +5 -4
- package/components/data-fields-select/data-fields-select.d.ts +127 -0
- package/components/data-fields-select/index.cjs +20 -0
- package/components/data-fields-select/index.d.ts +9 -0
- package/components/data-fields-select/index.js +28 -0
- package/components/data-fields-select/types.d.ts +4 -0
- package/components/data-fields-select-B5aGtDYe.cjs +41 -0
- package/components/{data-fields-select-DJFkrrPs.js → data-fields-select-CfAfiV-K.js} +4 -3
- package/components/dataset-icon/dataset-icon.d.ts +45 -0
- package/components/dataset-icon/index.cjs +20 -0
- package/components/dataset-icon/index.d.ts +8 -0
- package/components/dataset-icon/index.js +28 -0
- package/components/dataset-icon/types.d.ts +11 -0
- package/components/dataset-icon-BAV0S4sZ.cjs +64 -0
- package/components/dataset-icon-BXEgg_8O.js +125 -0
- package/components/dataset-selector-list/dataset-selector-list.d.ts +102 -0
- package/components/dataset-selector-list/index.cjs +20 -0
- package/components/dataset-selector-list/index.d.ts +8 -0
- package/components/dataset-selector-list/index.js +28 -0
- package/components/dataset-selector-list-WT2ZHjQ4.cjs +75 -0
- package/components/dataset-selector-list-bAFTW1Hr.js +313 -0
- package/components/dataset-selector-row/dataset-selector-row.d.ts +89 -0
- package/components/dataset-selector-row/index.cjs +20 -0
- package/components/dataset-selector-row/index.d.ts +8 -0
- package/components/dataset-selector-row/index.js +28 -0
- package/components/dataset-selector-row-CXrEKQrA.js +273 -0
- package/components/dataset-selector-row-CwkXH93E.cjs +79 -0
- package/components/decompose-numeric-format-DGJua3rU.cjs +20 -0
- package/components/decompose-numeric-format-DS0j2wa1.js +36 -0
- package/components/{localized-mixin-CBMYHOPv.js → decorate-CaYbmmmm.js} +2 -26
- package/components/decorate-DCJt-2rt.cjs +20 -0
- package/components/display-settings/display-settings.d.ts +117 -0
- package/components/display-settings/index.cjs +20 -0
- package/components/display-settings/index.d.ts +8 -0
- package/components/display-settings/index.js +28 -0
- package/components/display-settings/types.d.ts +9 -0
- package/components/display-settings-DrcpHnKo.cjs +140 -0
- package/components/display-settings-Ec_smyRC.js +313 -0
- package/components/display-settings-binning/display-settings-binning.d.ts +32 -0
- package/components/display-settings-binning/index.cjs +20 -0
- package/components/display-settings-binning/index.d.ts +8 -0
- package/components/display-settings-binning/index.js +28 -0
- package/components/{display-settings-binning-DGxEB9Fa.js → display-settings-binning-COpQPUin.js} +17 -19
- package/components/{display-settings-binning-CQKXGp11.cjs → display-settings-binning-XXJdJeGU.cjs} +2 -2
- package/components/display-settings-datetime/display-settings-datetime.d.ts +86 -0
- package/components/display-settings-datetime/index.cjs +20 -0
- package/components/display-settings-datetime/index.d.ts +8 -0
- package/components/display-settings-datetime/index.js +28 -0
- package/components/display-settings-datetime-DhSW10ln.cjs +217 -0
- package/components/{display-settings-datetime-CLx9sxA7.js → display-settings-datetime-qj86dnHh.js} +69 -71
- package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +29 -0
- package/components/display-settings-grand-totals/index.cjs +20 -0
- package/components/display-settings-grand-totals/index.d.ts +8 -0
- package/components/display-settings-grand-totals/index.js +28 -0
- package/components/{display-settings-grand-totals-B0Px90rH.js → display-settings-grand-totals-D6IDs0U1.js} +17 -19
- package/components/display-settings-grand-totals-DTF0sqA1.cjs +44 -0
- package/components/display-settings-numeric/display-settings-numeric.d.ts +82 -0
- package/components/display-settings-numeric/helpers/constants.d.ts +19 -0
- package/components/display-settings-numeric/index.cjs +20 -0
- package/components/display-settings-numeric/index.d.ts +8 -0
- package/components/display-settings-numeric/index.js +28 -0
- package/components/display-settings-numeric-Dt34JHyR.cjs +190 -0
- package/components/{display-settings-numeric-CdEgzO7W.js → display-settings-numeric-Dy2EMcKa.js} +79 -81
- package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +68 -0
- package/components/display-settings-period-over-period/helpers/constants.d.ts +44 -0
- package/components/display-settings-period-over-period/index.cjs +20 -0
- package/components/display-settings-period-over-period/index.d.ts +8 -0
- package/components/display-settings-period-over-period/index.js +28 -0
- package/components/display-settings-period-over-period-B-ULI6yW.cjs +229 -0
- package/components/{display-settings-period-over-period-lo3myRfT.js → display-settings-period-over-period-BMzBnywY.js} +85 -86
- package/components/{donut-chart-positioning.config-2cYbI6p-.cjs → donut-chart-positioning.config-BnmePhBH.cjs} +1 -1
- package/components/{donut-chart-positioning.config-Dh3XI5f4.js → donut-chart-positioning.config-CnZRc3e8.js} +1 -1
- package/components/{en-hPjCnvK0.cjs → en-B34alchz.cjs} +1 -1
- package/components/{en-OJGeTneC.js → en-CcLhGxIh.js} +1 -1
- package/components/en-GB-B3xz84vF.cjs +20 -0
- package/components/{en-GB-D7N1nMuy.js → en-GB-DzkdeUQh.js} +1 -1
- package/components/{en-US-hPjCnvK0.cjs → en-US-B34alchz.cjs} +1 -1
- package/components/{en-US-OJGeTneC.js → en-US-CcLhGxIh.js} +1 -1
- package/components/{evolution-number-positioning.config-BX1lWtDL.cjs → evolution-number-positioning.config-CKgGLWTm.cjs} +1 -1
- package/components/{evolution-number-positioning.config-BQQrOKbD.js → evolution-number-positioning.config-DiKxJqRO.js} +1 -1
- package/components/filter-expression-picker/filter-expression-picker.d.ts +73 -0
- package/components/filter-expression-picker/index.cjs +20 -0
- package/components/filter-expression-picker/index.d.ts +7 -0
- package/components/filter-expression-picker/index.js +28 -0
- package/components/filter-expression-picker-DMZ4sgJ6.js +425 -0
- package/components/filter-expression-picker-Dq0X2lo3.cjs +38 -0
- package/components/filter-item/filter-item.d.ts +84 -0
- package/components/filter-item/index.cjs +20 -0
- package/components/filter-item/index.d.ts +7 -0
- package/components/filter-item/index.js +28 -0
- package/components/filter-item-BEe-Y6l0.js +242 -0
- package/components/filter-item-BnxKP0Zg.cjs +58 -0
- package/components/filter-parameter-picker/filter-parameter-picker.d.ts +25 -0
- package/components/filter-parameter-picker/index.cjs +22 -0
- package/components/filter-parameter-picker/index.d.ts +7 -0
- package/components/filter-parameter-picker/index.js +58 -0
- package/components/filter-value-picker/filter-value-picker.d.ts +65 -0
- package/components/filter-value-picker/index.cjs +20 -0
- package/components/filter-value-picker/index.d.ts +7 -0
- package/components/filter-value-picker/index.js +28 -0
- package/components/filter-value-picker-BxaX9BML.cjs +60 -0
- package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +42 -0
- package/components/filter-value-picker-datetime/index.cjs +20 -0
- package/components/filter-value-picker-datetime/index.d.ts +7 -0
- package/components/filter-value-picker-datetime/index.js +28 -0
- package/components/filter-value-picker-datetime-BryAsOYH.cjs +42 -0
- package/components/filter-value-picker-datetime-DtZDr9fY.js +139 -0
- package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +81 -0
- package/components/filter-value-picker-hierarchy/index.cjs +20 -0
- package/components/filter-value-picker-hierarchy/index.d.ts +7 -0
- package/components/filter-value-picker-hierarchy/index.js +28 -0
- package/components/filter-value-picker-hierarchy-BSKoZJ0F.cjs +47 -0
- package/components/filter-value-picker-hierarchy-D9BcuttQ.js +232 -0
- package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +82 -0
- package/components/filter-value-picker-numeric/index.cjs +20 -0
- package/components/filter-value-picker-numeric/index.d.ts +7 -0
- package/components/filter-value-picker-numeric/index.js +28 -0
- package/components/filter-value-picker-numeric-B2EcfNUR.cjs +48 -0
- package/components/filter-value-picker-numeric-CoU9l9wS.js +219 -0
- package/components/filter-value-picker-r1zs2IHx.js +151 -0
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -1
- package/components/filters-C9DVFS6T.cjs +150 -0
- package/components/filters-DVTYmlI1.js +400 -0
- package/components/formatter-8m-wrIM-.cjs +20 -0
- package/components/{period-over-period-condition.const-DLA60ptm.js → formatter-Cq5dFCyU.js} +44 -235
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +1 -1
- package/components/formula--lwYaW2w.cjs +45 -0
- package/components/{formula-TyfDRy5X.js → formula-Ekyv6mpo.js} +15 -14
- package/components/formula-codemirror/formula-codemirror.d.ts +79 -0
- package/components/formula-codemirror/index.d.ts +7 -0
- package/components/formula-codemirror/pills/formula-aggregation/formula-aggregation.d.ts +125 -0
- package/components/formula-codemirror/pills/formula-aggregation/index.d.ts +7 -0
- package/components/formula-codemirror/pills/formula-empty-argument-pill/formula-empty-argument-pill.d.ts +28 -0
- package/components/formula-codemirror/pills/formula-empty-argument-pill/index.d.ts +7 -0
- package/components/formula-codemirror/pills/formula-include-exclude-panel.d.ts +38 -0
- package/components/{formula-codemirror-Bewi7Xgc.cjs → formula-codemirror-BZuBN5sE.cjs} +50 -50
- package/components/{formula-codemirror-B6ktT1Dm.js → formula-codemirror-DgTmL2Id.js} +21 -19
- package/components/formula-display-store-BunPLkc0.cjs +20 -0
- package/components/{formula-display-store-ycPV0gru.js → formula-display-store-ezef6EvF.js} +242 -271
- package/components/formula-draggable-field/formula-draggable-field.d.ts +53 -0
- package/components/formula-draggable-field/index.d.ts +8 -0
- package/components/formula-draggable-field/types.d.ts +24 -0
- package/components/formula-editor/index.cjs +1 -1
- package/components/formula-editor/index.d.ts +1 -0
- package/components/formula-editor/index.js +4 -3
- package/components/formula-editor-CjVohoJB.cjs +218 -0
- package/components/{formula-editor-HkD4KWnN.js → formula-editor-DRpm9ej7.js} +143 -348
- package/components/formula-field/formula-field.d.ts +20 -0
- package/components/formula-field/index.cjs +20 -0
- package/components/formula-field/index.d.ts +7 -0
- package/components/formula-field/index.js +28 -0
- package/components/formula-field-DcgWLGBD.cjs +20 -0
- package/components/formula-field-TwMnyN0t.js +40 -0
- package/components/formula-input-base-D6QdnUOa.cjs +49 -0
- package/components/formula-input-base-Dxk5euNb.js +236 -0
- package/components/{funnel-chart-positioning.config-iHk--8l3.cjs → funnel-chart-positioning.config-DaHDyj7V.cjs} +1 -1
- package/components/{funnel-chart-positioning.config-9blBdgB7.js → funnel-chart-positioning.config-DysRV01G.js} +1 -1
- package/components/get-dataset-name-D4smY8ms.cjs +20 -0
- package/components/get-dataset-name-D_ZiWu64.js +27 -0
- package/components/groupings-Bzp2EA65.js +52 -0
- package/components/groupings-Wfp8piEu.cjs +20 -0
- package/components/{heat-map-positioning.config-DgrZWNiT.js → heat-map-positioning.config-C6CqosaH.js} +1 -1
- package/components/{heat-map-positioning.config-CqkTB8nU.cjs → heat-map-positioning.config-hFwq08ML.cjs} +1 -1
- package/components/{heat-table-positioning.config-BqsqkftW.js → heat-table-positioning.config-B2RuWLH5.js} +1 -1
- package/components/{heat-table-positioning.config-Ca-WBNR-.cjs → heat-table-positioning.config-MJ_ox9iT.cjs} +1 -1
- package/components/{hexbin-map-positioning.config-sUIrPJP4.cjs → hexbin-map-positioning.config-Dua5Z8M2.cjs} +1 -1
- package/components/{hexbin-map-positioning.config-gkLfwTS6.js → hexbin-map-positioning.config-IiGTpp68.js} +1 -1
- package/components/index.cjs +1 -749
- package/components/index.js +64 -5577
- package/components/interactive-viz-item/helpers/chart-helpers.d.ts +7 -0
- package/components/interactive-viz-item/index.cjs +20 -0
- package/components/interactive-viz-item/index.d.ts +10 -0
- package/components/interactive-viz-item/index.js +28 -0
- package/components/interactive-viz-item/interactive-viz-item.d.ts +96 -0
- package/components/interactive-viz-item/types.d.ts +117 -0
- package/components/interactive-viz-item-O2zj8Ix3.cjs +247 -0
- package/components/interactive-viz-item-lBrlvX4F.js +693 -0
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +1 -1
- package/components/{item-grid-C6nEE4Uj.cjs → item-grid-CmuMl0eC.cjs} +22 -22
- package/components/{item-grid-B59uyBDP.js → item-grid-Cqi995vx.js} +2 -1
- package/components/item-menu/item-list/item-list.d.ts +37 -0
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.js +1 -1
- package/components/item-option-CQw6Xsi2.cjs +252 -0
- package/components/{item-option-zz-Rqh6o.js → item-option-Cg3zRKlU.js} +2 -2
- package/components/item-option-action-button-group/index.cjs +1 -1
- package/components/item-option-action-button-group/index.js +1 -1
- package/components/{item-option-action-button-group-BEXRueVH.js → item-option-action-button-group-C1TU-ng7.js} +2 -2
- package/components/item-option-action-button-group-DBdpU9Ac.cjs +53 -0
- package/components/item-option-base/item-option-base.d.ts +23 -0
- package/components/{item-option-base-DqDKIqRP.js → item-option-base-4mpxvTpE.js} +2 -2
- package/components/item-option-base-BtYcXg-E.cjs +56 -0
- package/components/item-option-color-palette-picker/index.cjs +1 -1
- package/components/item-option-color-palette-picker/index.js +1 -1
- package/components/item-option-color-palette-picker-4so22U-2.cjs +40 -0
- package/components/{item-option-color-palette-picker-dk5Nm1XB.js → item-option-color-palette-picker-BBnhEOQj.js} +2 -2
- package/components/item-option-color-picker/index.cjs +1 -1
- package/components/item-option-color-picker/index.js +1 -1
- package/components/{item-option-color-picker-oG-wrEZh.js → item-option-color-picker-CTTEHFVR.js} +2 -2
- package/components/{item-option-color-picker-Czr_ojzh.cjs → item-option-color-picker-CUBaIdL-.cjs} +2 -2
- package/components/item-option-color-range/index.cjs +1 -1
- package/components/item-option-color-range/index.js +1 -1
- package/components/{item-option-color-range-RbnPnI3s.js → item-option-color-range-BuLEgB7a.js} +2 -2
- package/components/item-option-color-range-H4nV-HoV.cjs +98 -0
- package/components/item-option-multi-language-field/index.cjs +1 -1
- package/components/item-option-multi-language-field/index.js +1 -1
- package/components/{item-option-multi-language-field-BqhBRIFH.js → item-option-multi-language-field-CXQj3kSW.js} +2 -2
- package/components/{item-option-multi-language-field-BpyuIPcO.cjs → item-option-multi-language-field-d25tETIC.cjs} +2 -2
- package/components/item-option-number-field/index.cjs +1 -1
- package/components/item-option-number-field/index.js +1 -1
- package/components/{item-option-number-field-BDPEAzdF.js → item-option-number-field-CEQEjnu8.js} +2 -2
- package/components/{item-option-number-field-CV2xpQrk.cjs → item-option-number-field-waG1zcr8.cjs} +2 -2
- package/components/item-option-panel/index.cjs +1 -1
- package/components/item-option-panel/index.js +1 -1
- package/components/{item-option-panel-CMrjUb2s.cjs → item-option-panel-Bh4d0Ueb.cjs} +2 -2
- package/components/{item-option-panel-XhTxaBZp.js → item-option-panel-CVjT-rr8.js} +3 -3
- package/components/item-option-picker/index.cjs +1 -1
- package/components/item-option-picker/index.js +1 -1
- package/components/{item-option-picker-D_Od3am8.js → item-option-picker-CiEMwzho.js} +2 -2
- package/components/{item-option-picker-CvEfEy99.cjs → item-option-picker-YTJ6noOW.cjs} +2 -2
- package/components/item-option-position-picker/index.cjs +1 -1
- package/components/item-option-position-picker/index.js +1 -1
- package/components/item-option-position-picker-DExAtVBF.cjs +32 -0
- package/components/{item-option-position-picker-BKw29tj-.js → item-option-position-picker-DVsG8inN.js} +2 -2
- package/components/item-option-positions-number-field/index.cjs +1 -1
- package/components/item-option-positions-number-field/index.js +1 -1
- package/components/{item-option-positions-number-field-lrJdfydy.js → item-option-positions-number-field-7F1_3pxp.js} +2 -2
- package/components/item-option-positions-number-field-Ju4e_B6g.cjs +49 -0
- package/components/item-option-radio-button-group/index.cjs +1 -1
- package/components/item-option-radio-button-group/index.js +1 -1
- package/components/{item-option-radio-button-group-DrjpL6YU.cjs → item-option-radio-button-group-6w11UJC-.cjs} +2 -2
- package/components/{item-option-radio-button-group-DTyHPaz_.js → item-option-radio-button-group-CHZKF_oZ.js} +2 -2
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.js +1 -1
- package/components/{item-option-slider-CIDoZhZl.js → item-option-slider-CQCvF7wI.js} +2 -2
- package/components/{item-option-slider-BwKBgW0y.cjs → item-option-slider-DdkgydGa.cjs} +2 -2
- package/components/item-option-switch/index.cjs +1 -1
- package/components/item-option-switch/index.js +1 -1
- package/components/{item-option-switch-DxC1yjeN.js → item-option-switch-68EoGXKU.js} +2 -2
- package/components/{item-option-switch-CQtvbTfI.cjs → item-option-switch-IP4wvB7i.cjs} +2 -2
- package/components/item-option-text-field/index.cjs +1 -1
- package/components/item-option-text-field/index.js +1 -1
- package/components/{item-option-text-field-CZtJ1yIj.js → item-option-text-field-0CCtgD5i.js} +2 -2
- package/components/{item-option-text-field-pLQzcE25.cjs → item-option-text-field-Be4frWhI.cjs} +2 -2
- package/components/item-slot-drop/index.cjs +1 -1
- package/components/item-slot-drop/index.d.ts +2 -0
- package/components/item-slot-drop/index.js +1 -1
- package/components/item-slot-drop-C7BJJcZz.cjs +91 -0
- package/components/{item-slot-drop-SqYpfTGj.js → item-slot-drop-PlCmap_s.js} +14 -9
- package/components/item-slot-drop-panel/index.cjs +1 -1
- package/components/item-slot-drop-panel/index.js +1 -1
- package/components/{item-slot-drop-panel-DoWCzjqb.js → item-slot-drop-panel-BevGCcMh.js} +41 -40
- package/components/item-slot-drop-panel-hs0gFwb-.cjs +57 -0
- package/components/item-slot-picker/index.cjs +1 -1
- package/components/item-slot-picker/index.js +1 -1
- package/components/{item-slot-picker-CadZEvOA.js → item-slot-picker-BzXlX-Zd.js} +26 -21
- package/components/item-slot-picker-dmoR1ZyZ.cjs +174 -0
- package/components/item-slot-picker-panel/index.cjs +1 -1
- package/components/item-slot-picker-panel/index.js +1 -1
- package/components/item-slot-picker-panel-B2TtJUIs.cjs +81 -0
- package/components/{item-slot-picker-panel-Bhr6d6Ya.js → item-slot-picker-panel-DnvwcLGy.js} +5 -4
- package/components/{line-chart-positioning.config-BIkHxiyg.cjs → line-chart-positioning.config-CYqzjNzS.cjs} +1 -1
- package/components/{line-chart-positioning.config-CdnYQBah.js → line-chart-positioning.config-DAs0y-O6.js} +1 -1
- package/components/load-data-fields-for-datasets-BVGaku2J.cjs +20 -0
- package/components/load-data-fields-for-datasets-DeXLqWt4.js +42 -0
- package/components/localized-mixin-BNAt_iYb.cjs +20 -0
- package/components/localized-mixin-GXZQgVAD.js +45 -0
- package/components/{marker-map-positioning.config-BSz4P-W9.js → marker-map-positioning.config-BQ-kNUJI.js} +1 -1
- package/components/{marker-map-positioning.config-t66fioVz.cjs → marker-map-positioning.config-C5h5ydGa.cjs} +1 -1
- package/components/{ohlc-chart-positioning.config-tQPPutWX.js → ohlc-chart-positioning.config-BQyRY4rj.js} +1 -1
- package/components/{ohlc-chart-positioning.config-BGueS7CJ.cjs → ohlc-chart-positioning.config-fqniDSHf.cjs} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-NrJ2LNM8.cjs → parallel-coordinates-plot-positioning.config-Bhyk-q40.cjs} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-MkX-qYHX.js → parallel-coordinates-plot-positioning.config-DMUrvTKC.js} +1 -1
- package/components/period-over-period-condition.const-BZ7j5Z5t.js +29 -0
- package/components/period-over-period-condition.const-C1NZ9Bkp.cjs +20 -0
- package/components/{pivot-table-positioning.config-DgJ5PPB9.cjs → pivot-table-positioning.config-CRPJ6cp9.cjs} +1 -1
- package/components/{pivot-table-positioning.config-Dr_0v4TM.js → pivot-table-positioning.config-kgOD7qg4.js} +1 -1
- package/components/{pyramid-chart-positioning.config-BGRtXKWh.cjs → pyramid-chart-positioning.config-B3g4J0Fc.cjs} +1 -1
- package/components/{pyramid-chart-positioning.config-DB0BI8vW.js → pyramid-chart-positioning.config-DzmnUNOa.js} +1 -1
- package/components/{radar-chart-positioning.config-DQiJ-Z1s.cjs → radar-chart-positioning.config-DeMZx8WU.cjs} +1 -1
- package/components/{radar-chart-positioning.config-D6UfRMMA.js → radar-chart-positioning.config-DtCHigcZ.js} +1 -1
- package/components/{route-map-positioning.config-D_ZoyhwX.js → route-map-positioning.config-CNNkOriH.js} +1 -1
- package/components/{route-map-positioning.config-Cbic0Cbz.cjs → route-map-positioning.config-GRnTnxOT.cjs} +1 -1
- package/components/{sankey-diagram-positioning.config-CZDPh7CR.cjs → sankey-diagram-positioning.config-B4dTAI_t.cjs} +1 -1
- package/components/{sankey-diagram-positioning.config-CQNdImz0.js → sankey-diagram-positioning.config-DZzxWrlG.js} +1 -1
- package/components/{scatter-plot-positioning.config-BTOiZ8cF.js → scatter-plot-positioning.config-7DccAqx9.js} +1 -1
- package/components/{scatter-plot-positioning.config-BPEymo3a.cjs → scatter-plot-positioning.config-CUxiLfKj.cjs} +1 -1
- package/components/{slicer-filter-positioning.config-CQE4ocpD.cjs → slicer-filter-positioning.config-DUivNE2P.cjs} +1 -1
- package/components/{slicer-filter-positioning.config-CC7uoU2D.js → slicer-filter-positioning.config-aOkoNRyY.js} +1 -1
- package/components/{en-GB-DCZl8CPc.cjs → slot-menu/index.cjs} +1 -1
- package/components/slot-menu/index.d.ts +10 -0
- package/components/slot-menu/index.js +28 -0
- package/components/slot-menu/slot-menu.d.ts +148 -0
- package/components/slot-menu/types.d.ts +24 -0
- package/components/slot-menu-Bgoo0gWv.cjs +71 -0
- package/components/slot-menu-Cb8piPji.js +422 -0
- package/components/slot-menu-list/index.cjs +20 -0
- package/components/slot-menu-list/index.d.ts +8 -0
- package/components/slot-menu-list/index.js +28 -0
- package/components/slot-menu-list/slot-menu-list.d.ts +47 -0
- package/components/slot-menu-list-Cy6tegSf.cjs +44 -0
- package/components/slot-menu-list-VuVIRNtr.js +346 -0
- package/components/slot-role-classification-Bvt3bI01.cjs +20 -0
- package/components/slot-role-classification-CCzj4WgN.js +133 -0
- package/components/slots-config-P_GXW0tl.js +77 -0
- package/components/slots-config-YdyClHLc.cjs +20 -0
- package/components/{speedometer-chart-positioning.config-ChH-uAdS.js → speedometer-chart-positioning.config-Dj6XK0gq.js} +1 -1
- package/components/{speedometer-chart-positioning.config-DpBVarun.cjs → speedometer-chart-positioning.config-DzCh70X-.cjs} +1 -1
- package/components/{spike-map-positioning.config-BnEQJ-rD.js → spike-map-positioning.config-BG2pKkf7.js} +1 -1
- package/components/{spike-map-positioning.config-DrSoa8Ol.cjs → spike-map-positioning.config-BQIg4Z0U.cjs} +1 -1
- package/components/{strip-plot-positioning.config-DlkZ1i6m.cjs → strip-plot-positioning.config-D3ZNgtC4.cjs} +1 -1
- package/components/{strip-plot-positioning.config-Be5Desz2.js → strip-plot-positioning.config-HZCVc6kX.js} +1 -1
- package/components/{sunburst-chart-positioning.config-RUEkAgKJ.js → sunburst-chart-positioning.config-0O9eMweg.js} +1 -1
- package/components/{sunburst-chart-positioning.config-D4zzci9s.cjs → sunburst-chart-positioning.config-B-hCz3bI.cjs} +1 -1
- package/components/{symbol-map-positioning.config-JzgtULMk.js → symbol-map-positioning.config-Dod98HkQ.js} +1 -1
- package/components/{symbol-map-positioning.config-Dmgmyhv7.cjs → symbol-map-positioning.config-aHnkaWU6.cjs} +1 -1
- package/components/{treemap-chart-positioning.config-CSt_vVgw.js → treemap-chart-positioning.config-XB1_FmX-.js} +1 -1
- package/components/{treemap-chart-positioning.config-CqHJxz2j.cjs → treemap-chart-positioning.config-qhPL49um.cjs} +1 -1
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +2 -2
- package/components/utils-B1BzV2xl.cjs +20 -0
- package/components/{utils-DLTDAer5.js → utils-BMOxXnnX.js} +42 -41
- package/components/utils.cjs +1 -1
- package/components/utils.js +8 -5
- package/components/{venn-diagram-positioning.config-DsPI8qfG.js → venn-diagram-positioning.config-Bh1ypVKP.js} +1 -1
- package/components/{venn-diagram-positioning.config-CzhNTma3.cjs → venn-diagram-positioning.config-CimHfhlV.cjs} +1 -1
- package/components/viz-item-menu/index.cjs +20 -0
- package/components/viz-item-menu/index.d.ts +8 -0
- package/components/viz-item-menu/index.js +28 -0
- package/components/viz-item-menu/types.d.ts +9 -0
- package/components/viz-item-menu/viz-item-menu.d.ts +75 -0
- package/components/viz-item-menu-CTPd7QMx.cjs +55 -0
- package/components/viz-item-menu-sOvrO3Ku.js +170 -0
- package/components/{wordcloud-chart-positioning.config-moNJfL1M.cjs → wordcloud-chart-positioning.config-BR_g8Now.cjs} +1 -1
- package/components/{wordcloud-chart-positioning.config-BUE8e4fN.js → wordcloud-chart-positioning.config-CmakCQG0.js} +1 -1
- package/custom-elements.json +15942 -5759
- package/index.d.ts +24 -0
- package/package.json +126 -1
- package/react/README.md +31 -6
- package/react/components/ai-chat/empty-state/index.ts +1 -0
- package/react/components/ai-chat/empty-state/types.ts +16 -0
- package/react/components/ai-chat/stream/index.ts +1 -0
- package/react/components/ai-chat/stream/types.ts +60 -0
- package/react/components/ai-chat.component.ts +45 -0
- package/react/components/ai-interaction-textarea/index.ts +1 -0
- package/react/components/ai-interaction-textarea/types.ts +6 -0
- package/react/components/ai-interaction-textarea.component.ts +30 -0
- package/react/components/data-field-level.component.ts +30 -0
- package/react/components/data-fields-select/index.ts +1 -0
- package/react/components/data-fields-select/types.ts +5 -0
- package/react/components/data-fields-select.component.ts +27 -0
- package/react/components/dataset-icon/index.ts +1 -0
- package/react/components/dataset-icon/types.ts +8 -0
- package/react/components/dataset-icon.component.ts +22 -0
- package/react/components/dataset-selector-list.component.ts +27 -0
- package/react/components/dataset-selector-row.component.ts +30 -0
- package/react/components/display-settings/index.ts +1 -0
- package/react/components/display-settings/types.ts +12 -0
- package/react/components/display-settings-binning.component.ts +27 -0
- package/react/components/display-settings-datetime.component.ts +27 -0
- package/react/components/display-settings-grand-totals.component.ts +27 -0
- package/react/components/display-settings-numeric.component.ts +27 -0
- package/react/components/display-settings-period-over-period.component.ts +27 -0
- package/react/components/display-settings.component.ts +33 -0
- package/react/components/filter-expression-picker.component.ts +27 -0
- package/react/components/filter-item.component.ts +27 -0
- package/react/components/filter-parameter-picker.component.ts +22 -0
- package/react/components/filter-value-picker-datetime.component.ts +27 -0
- package/react/components/filter-value-picker-hierarchy.component.ts +27 -0
- package/react/components/filter-value-picker-numeric.component.ts +27 -0
- package/react/components/filter-value-picker.component.ts +27 -0
- package/react/components/formula-draggable-field/index.ts +1 -0
- package/react/components/formula-draggable-field/types.ts +26 -0
- package/react/components/formula-field.component.ts +30 -0
- package/react/components/interactive-viz-item/index.ts +1 -0
- package/react/components/interactive-viz-item/types.ts +122 -0
- package/react/components/interactive-viz-item.component.ts +33 -0
- package/react/components/slot-menu/index.ts +1 -0
- package/react/components/slot-menu/types.ts +29 -0
- package/react/components/slot-menu-list.component.ts +27 -0
- package/react/components/slot-menu.component.ts +42 -0
- package/react/components/viz-item-menu/index.ts +1 -0
- package/react/components/viz-item-menu/types.ts +11 -0
- package/react/components/viz-item-menu.component.ts +33 -0
- package/react/esm/components/ai-chat/empty-state/index.d.ts +1 -0
- package/react/esm/components/ai-chat/empty-state/index.js +1 -0
- package/react/esm/components/ai-chat/empty-state/types.d.ts +14 -0
- package/react/esm/components/ai-chat/empty-state/types.js +1 -0
- package/react/esm/components/ai-chat/stream/index.d.ts +1 -0
- package/react/esm/components/ai-chat/stream/index.js +1 -0
- package/react/esm/components/ai-chat/stream/types.d.ts +55 -0
- package/react/esm/components/ai-chat/stream/types.js +1 -0
- package/react/esm/components/ai-chat.component.d.ts +24 -0
- package/react/esm/components/ai-chat.component.js +29 -0
- package/react/esm/components/ai-interaction-textarea/index.d.ts +1 -0
- package/react/esm/components/ai-interaction-textarea/index.js +1 -0
- package/react/esm/components/ai-interaction-textarea/types.d.ts +5 -0
- package/react/esm/components/ai-interaction-textarea/types.js +1 -0
- package/react/esm/components/ai-interaction-textarea.component.d.ts +14 -0
- package/react/esm/components/ai-interaction-textarea.component.js +19 -0
- package/react/esm/components/data-field-level.component.d.ts +14 -0
- package/react/esm/components/data-field-level.component.js +19 -0
- package/react/esm/components/data-fields-select/index.d.ts +1 -0
- package/react/esm/components/data-fields-select/index.js +1 -0
- package/react/esm/components/data-fields-select/types.d.ts +4 -0
- package/react/esm/components/data-fields-select/types.js +1 -0
- package/react/esm/components/data-fields-select.component.d.ts +12 -0
- package/react/esm/components/data-fields-select.component.js +17 -0
- package/react/esm/components/dataset-icon/index.d.ts +1 -0
- package/react/esm/components/dataset-icon/index.js +1 -0
- package/react/esm/components/dataset-icon/types.d.ts +11 -0
- package/react/esm/components/dataset-icon/types.js +1 -0
- package/react/esm/components/dataset-icon.component.d.ts +8 -0
- package/react/esm/components/dataset-icon.component.js +13 -0
- package/react/esm/components/dataset-selector-list.component.d.ts +12 -0
- package/react/esm/components/dataset-selector-list.component.js +17 -0
- package/react/esm/components/dataset-selector-row.component.d.ts +14 -0
- package/react/esm/components/dataset-selector-row.component.js +19 -0
- package/react/esm/components/display-settings/index.d.ts +1 -0
- package/react/esm/components/display-settings/index.js +1 -0
- package/react/esm/components/display-settings/types.d.ts +9 -0
- package/react/esm/components/display-settings/types.js +1 -0
- package/react/esm/components/display-settings-binning.component.d.ts +12 -0
- package/react/esm/components/display-settings-binning.component.js +17 -0
- package/react/esm/components/display-settings-datetime.component.d.ts +12 -0
- package/react/esm/components/display-settings-datetime.component.js +17 -0
- package/react/esm/components/display-settings-grand-totals.component.d.ts +12 -0
- package/react/esm/components/display-settings-grand-totals.component.js +17 -0
- package/react/esm/components/display-settings-numeric.component.d.ts +12 -0
- package/react/esm/components/display-settings-numeric.component.js +17 -0
- package/react/esm/components/display-settings-period-over-period.component.d.ts +12 -0
- package/react/esm/components/display-settings-period-over-period.component.js +17 -0
- package/react/esm/components/display-settings.component.d.ts +16 -0
- package/react/esm/components/display-settings.component.js +21 -0
- package/react/esm/components/filter-expression-picker.component.d.ts +12 -0
- package/react/esm/components/filter-expression-picker.component.js +17 -0
- package/react/esm/components/filter-item.component.d.ts +12 -0
- package/react/esm/components/filter-item.component.js +17 -0
- package/react/esm/components/filter-parameter-picker.component.d.ts +8 -0
- package/react/esm/components/filter-parameter-picker.component.js +13 -0
- package/react/esm/components/filter-value-picker-datetime.component.d.ts +12 -0
- package/react/esm/components/filter-value-picker-datetime.component.js +17 -0
- package/react/esm/components/filter-value-picker-hierarchy.component.d.ts +12 -0
- package/react/esm/components/filter-value-picker-hierarchy.component.js +17 -0
- package/react/esm/components/filter-value-picker-numeric.component.d.ts +12 -0
- package/react/esm/components/filter-value-picker-numeric.component.js +17 -0
- package/react/esm/components/filter-value-picker.component.d.ts +12 -0
- package/react/esm/components/filter-value-picker.component.js +17 -0
- package/react/esm/components/formula-draggable-field/index.d.ts +1 -0
- package/react/esm/components/formula-draggable-field/index.js +1 -0
- package/react/esm/components/formula-draggable-field/types.d.ts +24 -0
- package/react/esm/components/formula-draggable-field/types.js +1 -0
- package/react/esm/components/formula-field.component.d.ts +14 -0
- package/react/esm/components/formula-field.component.js +19 -0
- package/react/esm/components/interactive-viz-item/index.d.ts +1 -0
- package/react/esm/components/interactive-viz-item/index.js +1 -0
- package/react/esm/components/interactive-viz-item/types.d.ts +117 -0
- package/react/esm/components/interactive-viz-item/types.js +16 -0
- package/react/esm/components/interactive-viz-item.component.d.ts +16 -0
- package/react/esm/components/interactive-viz-item.component.js +21 -0
- package/react/esm/components/slot-menu/index.d.ts +1 -0
- package/react/esm/components/slot-menu/index.js +1 -0
- package/react/esm/components/slot-menu/types.d.ts +24 -0
- package/react/esm/components/slot-menu/types.js +1 -0
- package/react/esm/components/slot-menu-list.component.d.ts +12 -0
- package/react/esm/components/slot-menu-list.component.js +17 -0
- package/react/esm/components/slot-menu.component.d.ts +22 -0
- package/react/esm/components/slot-menu.component.js +27 -0
- package/react/esm/components/viz-item-menu/index.d.ts +1 -0
- package/react/esm/components/viz-item-menu/index.js +1 -0
- package/react/esm/components/viz-item-menu/types.d.ts +9 -0
- package/react/esm/components/viz-item-menu/types.js +1 -0
- package/react/esm/components/viz-item-menu.component.d.ts +16 -0
- package/react/esm/components/viz-item-menu.component.js +21 -0
- package/react/esm/index.d.ts +27 -2
- package/react/esm/index.js +102 -2
- package/react/esm/types.d.ts +15 -0
- package/react/index.ts +102 -2
- package/react/luzmo-stub.d.ts +164 -0
- package/react/types.ts +12 -0
- package/storybook/inject-global-vars.d.ts +1 -0
- package/storybook/register-components.d.ts +51 -0
- package/types/ai-chat.types.d.ts +90 -0
- package/types/data-field-events.types.d.ts +7 -0
- package/types.d.ts +8 -0
- package/components/base-CYiGlWug.cjs +0 -20
- package/components/data-field-iGBGWoGH.cjs +0 -89
- package/components/data-field-panel-NktuTUUp.cjs +0 -87
- package/components/data-fields-select-DL1nFRg3.cjs +0 -41
- package/components/display-settings-datetime-25LwuZM_.cjs +0 -217
- package/components/display-settings-grand-totals-1tBdxbFY.cjs +0 -44
- package/components/display-settings-numeric-Bbx4qmpA.cjs +0 -190
- package/components/display-settings-period-over-period-4bJbXWB7.cjs +0 -229
- package/components/filters-Bzx4DYm-.cjs +0 -323
- package/components/filters-DSod7vIq.js +0 -1637
- package/components/formula-DcCDYDt4.cjs +0 -45
- package/components/formula-display-store-DxjO7Q-n.cjs +0 -20
- package/components/formula-editor-DQp_XiX5.cjs +0 -247
- package/components/item-option-C4c-e1QF.cjs +0 -252
- package/components/item-option-action-button-group-BU1wvtEd.cjs +0 -53
- package/components/item-option-base-DATaPQ-m.cjs +0 -56
- package/components/item-option-color-palette-picker-Cc2nTuxC.cjs +0 -40
- package/components/item-option-color-range-CTnHZ72E.cjs +0 -98
- package/components/item-option-position-picker-DBs4JlFi.cjs +0 -32
- package/components/item-option-positions-number-field-DIIEFHd4.cjs +0 -49
- package/components/item-slot-drop-UygcXM5D.cjs +0 -91
- package/components/item-slot-drop-panel-9T8BWejl.cjs +0 -57
- package/components/item-slot-picker-Rnb_wwCV.cjs +0 -174
- package/components/item-slot-picker-panel-2VJY6C0b.cjs +0 -81
- package/components/load-data-fields-for-datasets-CU75T9Az.js +0 -86
- package/components/load-data-fields-for-datasets-DkK1JsFd.cjs +0 -20
- package/components/localized-mixin-DAOiXh71.cjs +0 -20
- package/components/period-over-period-condition.const-DystGY6B.cjs +0 -20
- package/components/slot-menu-BL772rj7.js +0 -1048
- package/components/slot-menu-CCbZ-krJ.cjs +0 -215
- package/components/utils-Ez3j4EOS.cjs +0 -20
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ChartActionDescriptor, type ChartMutationRequest, type FlexChartConfig, type NormalizedChartConfig, type SlotConfig } from '../types';
|
|
2
|
+
export declare function convertSlotsToArray(slots: SlotConfig[] | Record<string, unknown>): SlotConfig[];
|
|
3
|
+
export declare function getChartDatasetIds(slots: SlotConfig[]): string[];
|
|
4
|
+
export declare function normalizeChartConfig(chart: FlexChartConfig): NormalizedChartConfig;
|
|
5
|
+
export declare function mergeThemeIntoChart(chart: NormalizedChartConfig, theme: Record<string, unknown>): NormalizedChartConfig;
|
|
6
|
+
export declare function calculateChartActions(chart: NormalizedChartConfig): ChartActionDescriptor[];
|
|
7
|
+
export declare function applyChartMutation(chart: NormalizedChartConfig, mutation: ChartMutationRequest): NormalizedChartConfig;
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../interactive-viz-item-O2zj8Ix3.cjs");exports.DEFAULT_RANKING_NUMBER=e.c,exports.LuzmoInteractiveVizItem=e.t,exports.RankingDirection=e.l,exports.SortBy=e.u,exports.SortDirection=e.d,exports.applyChartMutation=e.n,exports.calculateChartActions=e.r,exports.convertSlotsToArray=e.i,exports.getChartDatasetIds=e.a,exports.mergeThemeIntoChart=e.o,exports.normalizeChartConfig=e.s;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LuzmoInteractiveVizItem } from './interactive-viz-item';
|
|
2
|
+
declare global {
|
|
3
|
+
interface HTMLElementTagNameMap {
|
|
4
|
+
'luzmo-interactive-viz-item': LuzmoInteractiveVizItem;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
export { LuzmoInteractiveVizItem } from './interactive-viz-item';
|
|
8
|
+
export { DEFAULT_RANKING_NUMBER, RankingDirection, SortBy, SortDirection } from './types';
|
|
9
|
+
export type { InteractiveVizItemChartChangedEventDetail, InteractiveVizItemChartOptionsChangedEventDetail, InteractiveVizItemFeedbackChangedEventDetail, ChartActionDescriptor, ChartActionType, ChartFeedback, ChartFeedbackRating, ChartMutationRequest, ChartOption, FlexChartConfig, NormalizedChartConfig, Ranking, Sort } from './types';
|
|
10
|
+
export { applyChartMutation, calculateChartActions, convertSlotsToArray, getChartDatasetIds, mergeThemeIntoChart, normalizeChartConfig } from './helpers/chart-helpers';
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
// Auto-generated initialization code
|
|
21
|
+
(function() {
|
|
22
|
+
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
23
|
+
let e = document.createElement("style");
|
|
24
|
+
e.setAttribute("data-luzmo-vars", ""), e.textContent = "html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-full-down: color-mix(in oklch, var(--luzmo-border-color-full), black 45%);--luzmo-border-color-full-focus: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-down: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 7%), black 1%);--luzmo-background-color-focus: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-highlight-down: color-mix(in oklch, var(--luzmo-background-color-highlight), black 20%);--luzmo-background-color-highlight-focus: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-alt-1: rgb(250, 250, 250);--luzmo-background-color-alt-2: rgb(239, 239, 239);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-font-color-down: color-mix(in oklch, var(--luzmo-font-color), black 20%);--luzmo-font-color-focus: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-scrollbar-size: 6px;--luzmo-scrollbar-width: thin;--luzmo-scrollbar-track-background: transparent;--luzmo-scrollbar-track-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-background: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-scrollbar-thumb-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-hover-background: rgba(var(--luzmo-border-color-rgb), 0.4);--luzmo-primary: #4434ff;--luzmo-primary-hover: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-down: color-mix(in oklch, var(--luzmo-primary), black 20%);--luzmo-primary-focus: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-down: color-mix(in oklch, var(--luzmo-secondary), black 20%);--luzmo-secondary-focus: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-secondary-outline: rgba(255, 0, 255, 0.2);--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-down: color-mix(in oklch, var(--luzmo-negative-color), black 20%);--luzmo-negative-color-focus: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-down: color-mix(in oklch, var(--luzmo-positive-color), black 20%);--luzmo-positive-color-focus: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-down: color-mix(in oklch, var(--luzmo-selected-color), black 45%);--luzmo-selected-color-focus: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-selected-color-hard-down: color-mix(in oklch, var(--luzmo-selected-color-hard), black 45%);--luzmo-selected-color-hard-focus: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}", document.head.appendChild(e);
|
|
25
|
+
}
|
|
26
|
+
})();
|
|
27
|
+
import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../interactive-viz-item-lBrlvX4F.js";
|
|
28
|
+
export { t as DEFAULT_RANKING_NUMBER, l as LuzmoInteractiveVizItem, i as RankingDirection, u as SortBy, n as SortDirection, a as applyChartMutation, s as calculateChartActions, r as convertSlotsToArray, e as getChartDatasetIds, o as mergeThemeIntoChart, c as normalizeChartConfig };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import '@luzmo/embed';
|
|
2
|
+
import '@luzmo/lucero/action-button';
|
|
3
|
+
import '@luzmo/lucero/action-group';
|
|
4
|
+
import '@luzmo/lucero/field-label';
|
|
5
|
+
import '@luzmo/lucero/icon';
|
|
6
|
+
import '@luzmo/lucero/number-field';
|
|
7
|
+
import '@luzmo/lucero/overlay';
|
|
8
|
+
import '@luzmo/lucero/picker';
|
|
9
|
+
import '@luzmo/lucero/popover';
|
|
10
|
+
import '@luzmo/lucero/tabs';
|
|
11
|
+
import { CSSResultArray, TemplateResult } from 'lit';
|
|
12
|
+
import '../filters';
|
|
13
|
+
import '../item-option-panel';
|
|
14
|
+
import '../item-slot-picker-panel';
|
|
15
|
+
import { LuzmoElement } from '../../utils/base';
|
|
16
|
+
import { type ChartFeedback, type FlexChartConfig } from './types';
|
|
17
|
+
declare const LuzmoInteractiveVizItem_base: (new (...args: any[]) => {
|
|
18
|
+
language: string;
|
|
19
|
+
}) & typeof LuzmoElement & {
|
|
20
|
+
new (...args: any[]): import("../../utils/base/sized-mixin").SizedElementInterface;
|
|
21
|
+
prototype: import("../../utils/base/sized-mixin").SizedElementInterface;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @customElement luzmo-interactive-viz-item
|
|
25
|
+
* @description Renders an interactive visualization item: an embedded chart with inline top-N
|
|
26
|
+
* ranking and display-mode actions, a feedback bar, and an expandable configuration panel (slots,
|
|
27
|
+
* filters, options). Only accepts chart input; nothing renders without a `chart`. Framework-neutral
|
|
28
|
+
* so it can be reused anywhere (AI chat answers, dashboards, reports).
|
|
29
|
+
* @fires {CustomEvent<InteractiveVizItemChartOptionsChangedEventDetail>} luzmo-chart-options-changed - Fired when the inline actions (ranking, sort, display mode) change the chart options.
|
|
30
|
+
* @fires {CustomEvent<InteractiveVizItemChartChangedEventDetail>} luzmo-chart-changed - Fired when the config panel changes slots, filters, or options (full chart).
|
|
31
|
+
* @fires {CustomEvent<InteractiveVizItemFeedbackChangedEventDetail>} luzmo-feedback-changed - Fired when the user changes the thumbs up/down rating.
|
|
32
|
+
* @slot chart-actions-extra - Host-injected actions rendered at the end of the inline actions bar (e.g. copy-to-dashboard).
|
|
33
|
+
* @csspart container - The viz item container.
|
|
34
|
+
* @csspart chart-container - The embedded chart wrapper.
|
|
35
|
+
* @csspart config-panel - The expandable configuration panel.
|
|
36
|
+
*/
|
|
37
|
+
export declare class LuzmoInteractiveVizItem extends LuzmoInteractiveVizItem_base {
|
|
38
|
+
static get styles(): CSSResultArray;
|
|
39
|
+
/** Loose chart config (type, options, slots, filters); slots may use the keyed-object form. */
|
|
40
|
+
chart: FlexChartConfig | null;
|
|
41
|
+
/** Current feedback (drives the thumbs up/down selection). */
|
|
42
|
+
feedback: ChartFeedback | null;
|
|
43
|
+
/** Message id from the backend. Feedback is only shown when set. */
|
|
44
|
+
messageId: string;
|
|
45
|
+
/** Auth key for the embedded chart and config panels. */
|
|
46
|
+
authKey: string;
|
|
47
|
+
/** Auth token for the embedded chart and config panels. */
|
|
48
|
+
authToken: string;
|
|
49
|
+
/**
|
|
50
|
+
* API URL for the embedded chart and config panels.
|
|
51
|
+
* @default https://api.luzmo.com
|
|
52
|
+
*/
|
|
53
|
+
apiUrl: string;
|
|
54
|
+
/**
|
|
55
|
+
* App server URL for the embedded chart (assets, thumbnails).
|
|
56
|
+
* @default https://app.luzmo.com
|
|
57
|
+
*/
|
|
58
|
+
appServer: string;
|
|
59
|
+
/** Content language for chart data and dataset metadata. Defaults to the UI `language`. */
|
|
60
|
+
contentLanguage: string;
|
|
61
|
+
/** When present, hides the inline chart actions (ranking, display mode). */
|
|
62
|
+
hideActions: boolean;
|
|
63
|
+
/** When present, hides the feedback bar. */
|
|
64
|
+
hideFeedback: boolean;
|
|
65
|
+
/** When present, hides the config-panel toggle and the panel itself. */
|
|
66
|
+
hideConfigPanel: boolean;
|
|
67
|
+
private _configPanelOpen;
|
|
68
|
+
private readonly _rankingTriggerId;
|
|
69
|
+
private get _effectiveContentLanguage();
|
|
70
|
+
private _dispatch;
|
|
71
|
+
private get _chartActions();
|
|
72
|
+
private get _rating();
|
|
73
|
+
private _toggleConfigPanel;
|
|
74
|
+
private _emitOptions;
|
|
75
|
+
private _emitChart;
|
|
76
|
+
private _handleDropdownChange;
|
|
77
|
+
private _currentRanking;
|
|
78
|
+
private _currentSort;
|
|
79
|
+
private _emitRankAndSort;
|
|
80
|
+
private _renderOptionDropdown;
|
|
81
|
+
private _renderRankingPicker;
|
|
82
|
+
private _handleDirectionChange;
|
|
83
|
+
private _handleNumberChange;
|
|
84
|
+
private _handleSortByChange;
|
|
85
|
+
private _handleSortDirectionChange;
|
|
86
|
+
private _renderActions;
|
|
87
|
+
private _renderChart;
|
|
88
|
+
private _renderFeedback;
|
|
89
|
+
private _toggleRating;
|
|
90
|
+
private _renderConfigPanel;
|
|
91
|
+
private _handleSlotsChanged;
|
|
92
|
+
private _handleFiltersChanged;
|
|
93
|
+
private _handleOptionsChanged;
|
|
94
|
+
protected render(): TemplateResult;
|
|
95
|
+
}
|
|
96
|
+
export {};
|
|
@@ -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,247 @@
|
|
|
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-DSXeP3BL.cjs"),t=require("./decorate-DCJt-2rt.cjs"),n=require("./localized-mixin-BNAt_iYb.cjs");require("./filters-C9DVFS6T.cjs"),require("./item-option-panel-Bh4d0Ueb.cjs"),require("./item-slot-picker-panel-B2TtJUIs.cjs");let r=require("@luzmo/icons");require("@luzmo/lucero/icon"),require("@luzmo/lucero/overlay"),require("@luzmo/lucero/popover");let i=require("lit"),a=require("lit/decorators.js"),o=require("@lit/localize");require("@luzmo/lucero/action-button"),require("@luzmo/embed"),require("@luzmo/lucero/action-group"),require("@luzmo/lucero/field-label"),require("@luzmo/lucero/number-field"),require("@luzmo/lucero/picker"),require("@luzmo/lucero/tabs");var s=`:host{box-sizing:border-box;display:block;container-type:inline-size}.answer{width:100%;display:block}.chart-actions-bar{justify-content:space-between;align-items:center;gap:var(--luzmo-interactive-viz-item-actions-gap,var(--interactive-viz-item-actions-gap));padding-block:var(--luzmo-interactive-viz-item-actions-padding-block,var(--interactive-viz-item-actions-padding-block));flex-wrap:nowrap;margin-block-start:var(--luzmo-interactive-viz-item-actions-margin-block-start,var(--interactive-viz-item-actions-margin-block-start));display:flex}.chart-actions-primary{gap:var(--luzmo-interactive-viz-item-actions-gap,var(--interactive-viz-item-actions-gap));flex-wrap:wrap;flex:1;align-items:center;min-width:0;display:flex}.ranking-content{gap:var(--luzmo-spacing-3);padding:var(--luzmo-spacing-3);flex-direction:column;display:flex}.ranking-row{gap:var(--luzmo-spacing-3);align-items:center;display:flex}.ranking-number{width:4rem}.icon-flipped{transform:scaleY(-1)}.chart-container{border-radius:var(--luzmo-interactive-viz-item-chart-border-radius,var(--interactive-viz-item-chart-border-radius));height:var(--luzmo-interactive-viz-item-chart-height,var(--interactive-viz-item-chart-height));overflow:hidden}.chart-container luzmo-embed-viz-item{width:100%;height:100%;display:block}.feedback-row{padding-block:var(--luzmo-interactive-viz-item-feedback-padding-block,var(--interactive-viz-item-feedback-padding-block));justify-content:space-between;align-items:center;display:flex}.rating-btn-positive{--luzmo-action-button-content-color-default-selected:var(--luzmo-interactive-viz-item-rating-positive-color,var(--interactive-viz-item-rating-positive-color));--luzmo-action-button-content-color-hover-selected:var(--luzmo-interactive-viz-item-rating-positive-color,var(--interactive-viz-item-rating-positive-color));--luzmo-action-button-content-color-down-selected:var(--luzmo-interactive-viz-item-rating-positive-color,var(--interactive-viz-item-rating-positive-color));--luzmo-action-button-content-color-focus-selected:var(--luzmo-interactive-viz-item-rating-positive-color,var(--interactive-viz-item-rating-positive-color));--luzmo-action-button-background-color-default-selected:var(--luzmo-interactive-viz-item-rating-selected-background,var(--interactive-viz-item-rating-selected-background));--luzmo-action-button-background-color-hover-selected:var(--luzmo-interactive-viz-item-rating-selected-background,var(--interactive-viz-item-rating-selected-background));--luzmo-action-button-background-color-down-selected:var(--luzmo-interactive-viz-item-rating-selected-background,var(--interactive-viz-item-rating-selected-background));--luzmo-action-button-background-color-focus-selected:var(--luzmo-interactive-viz-item-rating-selected-background,var(--interactive-viz-item-rating-selected-background))}.rating-btn-negative{--luzmo-action-button-content-color-default-selected:var(--luzmo-interactive-viz-item-rating-negative-color,var(--interactive-viz-item-rating-negative-color));--luzmo-action-button-content-color-hover-selected:var(--luzmo-interactive-viz-item-rating-negative-color,var(--interactive-viz-item-rating-negative-color));--luzmo-action-button-content-color-down-selected:var(--luzmo-interactive-viz-item-rating-negative-color,var(--interactive-viz-item-rating-negative-color));--luzmo-action-button-content-color-focus-selected:var(--luzmo-interactive-viz-item-rating-negative-color,var(--interactive-viz-item-rating-negative-color));--luzmo-action-button-background-color-default-selected:var(--luzmo-interactive-viz-item-rating-selected-background,var(--interactive-viz-item-rating-selected-background));--luzmo-action-button-background-color-hover-selected:var(--luzmo-interactive-viz-item-rating-selected-background,var(--interactive-viz-item-rating-selected-background));--luzmo-action-button-background-color-down-selected:var(--luzmo-interactive-viz-item-rating-selected-background,var(--interactive-viz-item-rating-selected-background));--luzmo-action-button-background-color-focus-selected:var(--luzmo-interactive-viz-item-rating-selected-background,var(--interactive-viz-item-rating-selected-background))}.config-toggle{--luzmo-action-button-border-radius:32px;margin-inline-start:auto}.config-panel{border:1px solid var(--luzmo-interactive-viz-item-config-panel-border-color,var(--interactive-viz-item-config-panel-border-color));border-radius:var(--luzmo-interactive-viz-item-config-panel-border-radius,var(--interactive-viz-item-config-panel-border-radius));padding:var(--luzmo-interactive-viz-item-config-panel-padding,var(--interactive-viz-item-config-panel-padding));background:var(--luzmo-interactive-viz-item-config-panel-background,var(--interactive-viz-item-config-panel-background));margin-block-start:var(--luzmo-spacing-2)}.config-panel luzmo-tab-panel[selected]{padding-block-start:var(--luzmo-spacing-4);display:block}.config-panel luzmo-item-option-panel,.config-panel luzmo-item-slot-picker-panel,.config-panel luzmo-filters{width:100%;max-height:15rem;scrollbar-width:thin;scrollbar-color:var(--luzmo-interactive-viz-item-config-panel-border-color,var(--interactive-viz-item-config-panel-border-color)) transparent;padding-inline-end:var(--luzmo-spacing-3);overflow-y:auto}.edit-grid{min-height:12.5rem;display:flex}.edit-column{gap:var(--luzmo-spacing-3);flex-direction:column;display:flex}.edit-column:first-child{flex-shrink:0;max-width:15rem}.edit-column-filters{border-inline-start:1px solid var(--luzmo-interactive-viz-item-config-panel-border-color,var(--interactive-viz-item-config-panel-border-color));flex:1;min-width:18.75rem;padding-inline-start:var(--luzmo-spacing-5)}@container (width<=520px){.edit-grid{flex-direction:column}.edit-column,.edit-column:first-child{width:100%;min-width:0;max-width:100%}.edit-column-filters{border-inline-start:none;border-block-start:1px solid var(--luzmo-interactive-viz-item-config-panel-border-color,var(--interactive-viz-item-config-panel-border-color));min-width:0;margin-block-start:var(--luzmo-spacing-3);padding-block-start:var(--luzmo-spacing-4);padding-inline-start:0}}@container (width<=768px){.chart-container{height:calc(var(--luzmo-interactive-viz-item-chart-height,var(--interactive-viz-item-chart-height)) - 2.5rem)}}:host{--interactive-viz-item-actions-gap:var(--luzmo-spacing-3);--interactive-viz-item-actions-padding-block:var(--luzmo-spacing-3);--interactive-viz-item-actions-margin-block-start:var(--luzmo-spacing-5);--interactive-viz-item-chart-height:20rem;--interactive-viz-item-chart-border-radius:var(--luzmo-border-radius);--interactive-viz-item-feedback-padding-block:var(--luzmo-spacing-4);--interactive-viz-item-config-panel-padding:var(--luzmo-spacing-5);--interactive-viz-item-config-panel-border-color:var(--luzmo-border-color);--interactive-viz-item-config-panel-border-radius:var(--luzmo-border-radius);--interactive-viz-item-config-panel-background:var(--luzmo-background-color);--interactive-viz-item-rating-positive-color:var(--luzmo-positive-color,#12855a);--interactive-viz-item-rating-negative-color:var(--luzmo-negative-color,#ca221c);--interactive-viz-item-rating-selected-background:var(--luzmo-background-color-focus,#0000000f)}:host([size=s]){--interactive-viz-item-chart-height:17.5rem}:host([size=l]){--interactive-viz-item-chart-height:22rem}:host([size=xl]){--interactive-viz-item-chart-height:24rem}`,c=function(e){return e.Top=`top`,e.Bottom=`bottom`,e}({}),l=function(e){return e.Asc=`asc`,e.Desc=`desc`,e}({}),u=function(e){return e.Measure=`measure`,e.Category=`category`,e}({}),d=5,f=Array.isArray;function p(e){return typeof e==`string`}function m(e){let t={...e};return!t.datasetId&&t.set&&(t.datasetId=t.set),!t.set&&t.datasetId&&(t.set=t.datasetId),!t.columnId&&t.column&&(t.columnId=t.column),!t.column&&t.columnId&&(t.column=t.columnId),!t.formulaId&&t.formula&&(t.formulaId=t.formula),!t.formula&&t.formulaId&&(t.formula=t.formulaId),t}function h(e){return f(e)?e:Object.entries(e).map(([e,t])=>({name:e,content:f(t)?t:[]}))}function g(e){let t=new Set;for(let n of e)for(let e of n.content){let n=e.datasetId??e.set;p(n)&&t.add(n)}return[...t]}function _(e){let t=h(e.slots??[]),n=e.options??{},r=n.interactivity;return{type:e.type,options:{...n,interactivity:{...r,scheduledExport:!1}},slots:t.map(e=>({...e,content:f(e.content)?e.content.map(e=>m(e)):[]})),filters:e.filters}}function v(e,t){return{...e,options:{...e.options,theme:{...e.options.theme,...t}}}}function y(e){let t=e.find(e=>e.name===`measure`||e.name===`measures`);if(t&&t.content.length>1)return!0;let n=e.find(e=>e.name===`legend`);return n?n.content.length>0:!1}function b(e){let t=[],n=e.options;switch(e.type){case`area-chart`:case`bar-chart`:case`column-chart`:if(t.push({type:`rankingPicker`,mutationType:`rankAndSort`,ranking:n.ranking??{active:!1,number:5,direction:c.Top},sort:n.sort??{direction:l.Desc,by:u.Measure},importance:100}),y(e.slots)){let r=e.type===`area-chart`,i=r?[{key:`stacked`,label:`Stacked`},{key:`unstacked`,label:`Unstacked`},{key:`100`,label:`100%`},{key:`stream`,label:`Stream`}]:[{key:`grouped`,label:`Grouped`},{key:`stacked`,label:`Stacked`},{key:`100`,label:`100%`}],a=r?`stacked`:`grouped`;t.push({type:`optionDropdown`,mutationType:`mode`,values:i,currentValue:n.mode??a,importance:90})}break;case`donut-chart`:{let e=n.display??{};t.push({type:`optionDropdown`,mutationType:`donutLabelDisplay`,values:[{key:`withLegend`,label:`With legend`},{key:`withLabels`,label:`With labels`}],currentValue:e.categoryLabels===!0?`withLabels`:`withLegend`,importance:90});break}case`bubble-chart`:{let e=n.display??{};t.push({type:`optionDropdown`,mutationType:`bubbleValues`,values:[{key:`none`,label:`No values`},{key:`absolute`,label:`Absolute`},{key:`percentage`,label:`Percentage`}],currentValue:e.bubbleValues??e.values??`none`,importance:100});break}}return t.sort((e,t)=>t.importance-e.importance)}function x(e,t,n){let r=e.options;switch(t){case`mode`:return{...e,options:{...r,mode:n}};case`donutLabelDisplay`:{let t={...r.display??{}};return n===`withLabels`?(t.legend=!1,t.categoryLabels=!0):(t.legend=!0,t.categoryLabels=!1),{...e,options:{...r,display:t}}}case`bubbleValues`:{let t={...r.display??{}};return t.bubbleLabels=t.bubbleLabels!==!1,t.bubbleValues=n,{...e,options:{...r,display:t}}}default:return e}}function S(e,t){switch(t.type){case`slots`:return{...e,slots:t.slotsContents};case`options`:return{...e,options:t.options};case`filters`:return{...e,filters:t.filters};case`chartAction`:return x(e,t.actionType,t.key);case`rankAndSort`:return{...e,options:{...e.options,ranking:t.ranking,sort:t.sort}};case`fullReplace`:return t.chart;default:return e}}var C=0,w=class extends n.t(e.n(e.i,{validSizes:Object.values(e.t)})){constructor(...e){super(...e),this.chart=null,this.feedback=null,this.messageId=``,this.authKey=``,this.authToken=``,this.apiUrl=`https://api.luzmo.com`,this.appServer=`https://app.luzmo.com`,this.contentLanguage=``,this.hideActions=!1,this.hideFeedback=!1,this.hideConfigPanel=!1,this._configPanelOpen=!1,this._rankingTriggerId=`interactive-viz-item-ranking-${++C}`,this._handleSlotsChanged=e=>{this.chart&&this._emitChart({...this.chart,slots:e.detail.slotsContents})},this._handleFiltersChanged=e=>{this.chart&&this._emitChart({...this.chart,filters:e.detail.filters})},this._handleOptionsChanged=e=>{if(!this.chart)return;let t=e.detail.options;if(!t)return;let n=this.chart.options.theme??{};this._emitChart({...this.chart,options:{...t,theme:{...n}}})}}static get styles(){return[(0,i.unsafeCSS)(s)]}get _effectiveContentLanguage(){return this.contentLanguage||this.language}_dispatch(e,t){let n=new CustomEvent(e,{detail:t,bubbles:!0,composed:!0});this.dispatchEvent(n)}get _chartActions(){return this.chart?b(_(this.chart)):[]}get _rating(){return this.feedback?.rating??0}_toggleConfigPanel(){this._configPanelOpen=!this._configPanelOpen}_emitOptions(e){this._dispatch(`luzmo-chart-options-changed`,{options:e})}_emitChart(e){this._dispatch(`luzmo-chart-changed`,{chart:e})}_handleDropdownChange(e,t){if(!this.chart)return;t.stopPropagation();let n=t.detail,r=typeof n==`string`?n:n?.value??t.target?.value;if(!r)return;let i=S(_(this.chart),{type:`chartAction`,actionType:e.mutationType,key:r});this._emitOptions(i.options)}_currentRanking(e){return e.ranking??{active:!1,number:5,direction:c.Top}}_currentSort(e){return e.sort??{direction:l.Desc,by:u.Measure}}_emitRankAndSort(e,t){this.chart&&this._emitOptions({...this.chart.options,ranking:e,sort:t})}_renderOptionDropdown(e){let t=e.values??[],n=e.currentValue||t[0]?.key||``;return i.html`
|
|
21
|
+
<luzmo-picker
|
|
22
|
+
size=${this.size}
|
|
23
|
+
variant="highlight"
|
|
24
|
+
value=${n}
|
|
25
|
+
@change=${t=>this._handleDropdownChange(e,t)}
|
|
26
|
+
>
|
|
27
|
+
${t.map(e=>i.html`<luzmo-menu-item value=${e.key}>${e.label}</luzmo-menu-item>`)}
|
|
28
|
+
</luzmo-picker>
|
|
29
|
+
`}_renderRankingPicker(e){let t=this._currentRanking(e),n=this._currentSort(e);if(!t.active)return i.html`
|
|
30
|
+
<luzmo-action-button
|
|
31
|
+
size=${this.size}
|
|
32
|
+
@click=${()=>this._emitRankAndSort({active:!0,number:5,direction:c.Top},n)}
|
|
33
|
+
>
|
|
34
|
+
<luzmo-icon slot="icon" size="xs" .icon=${r.luzmoAlignLeft}></luzmo-icon>
|
|
35
|
+
${(0,o.msg)(`Show top 5`,{desc:`Label to activate top-N ranking on a chart`})}
|
|
36
|
+
</luzmo-action-button>
|
|
37
|
+
`;let a=t.direction===c.Bottom?(0,o.msg)(`Bottom`,{desc:`Ranking direction: keep the lowest values`}):(0,o.msg)(`Top`,{desc:`Ranking direction: keep the highest values`});return i.html`
|
|
38
|
+
<luzmo-action-button size=${this.size} id=${this._rankingTriggerId}>
|
|
39
|
+
<luzmo-icon slot="icon" size="xs" .icon=${r.luzmoAlignLeft}></luzmo-icon>
|
|
40
|
+
${a} ${t.number||5}
|
|
41
|
+
</luzmo-action-button>
|
|
42
|
+
|
|
43
|
+
<luzmo-overlay type="auto" placement="bottom-start" trigger=${`${this._rankingTriggerId}@click`}>
|
|
44
|
+
<luzmo-popover>
|
|
45
|
+
<div class="ranking-content">
|
|
46
|
+
<div class="ranking-row">
|
|
47
|
+
<luzmo-action-group
|
|
48
|
+
size=${this.size}
|
|
49
|
+
compact
|
|
50
|
+
selects="single"
|
|
51
|
+
.selected=${[t.direction]}
|
|
52
|
+
@change=${t=>this._handleDirectionChange(e,t)}
|
|
53
|
+
>
|
|
54
|
+
<luzmo-action-button value="top" emphasized
|
|
55
|
+
>${(0,o.msg)(`Top`,{desc:`Ranking direction: keep the highest values`})}</luzmo-action-button
|
|
56
|
+
>
|
|
57
|
+
<luzmo-action-button value="bottom" emphasized
|
|
58
|
+
>${(0,o.msg)(`Bottom`,{desc:`Ranking direction: keep the lowest values`})}</luzmo-action-button
|
|
59
|
+
>
|
|
60
|
+
</luzmo-action-group>
|
|
61
|
+
|
|
62
|
+
<luzmo-number-field
|
|
63
|
+
class="ranking-number"
|
|
64
|
+
size=${this.size}
|
|
65
|
+
hide-stepper
|
|
66
|
+
min="1"
|
|
67
|
+
max="100"
|
|
68
|
+
step="1"
|
|
69
|
+
.value=${t.number}
|
|
70
|
+
@change=${t=>this._handleNumberChange(e,t)}
|
|
71
|
+
@input=${t=>this._handleNumberChange(e,t)}
|
|
72
|
+
></luzmo-number-field>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<div class="ranking-row">
|
|
76
|
+
<luzmo-action-group
|
|
77
|
+
size=${this.size}
|
|
78
|
+
compact
|
|
79
|
+
selects="single"
|
|
80
|
+
.selected=${[n.by]}
|
|
81
|
+
@change=${t=>this._handleSortByChange(e,t)}
|
|
82
|
+
>
|
|
83
|
+
<luzmo-action-button value="measure" emphasized>123</luzmo-action-button>
|
|
84
|
+
<luzmo-action-button value="category" emphasized>ABC</luzmo-action-button>
|
|
85
|
+
</luzmo-action-group>
|
|
86
|
+
|
|
87
|
+
<luzmo-action-group
|
|
88
|
+
size=${this.size}
|
|
89
|
+
compact
|
|
90
|
+
selects="single"
|
|
91
|
+
.selected=${[n.direction]}
|
|
92
|
+
@change=${t=>this._handleSortDirectionChange(e,t)}
|
|
93
|
+
>
|
|
94
|
+
<luzmo-action-button
|
|
95
|
+
value="desc"
|
|
96
|
+
emphasized
|
|
97
|
+
label=${(0,o.msg)(`Sort descending`,{desc:`Sort chart values in descending order`})}
|
|
98
|
+
>
|
|
99
|
+
<luzmo-icon slot="icon" size="xs" .icon=${r.luzmoAlignLeft}></luzmo-icon>
|
|
100
|
+
</luzmo-action-button>
|
|
101
|
+
<luzmo-action-button
|
|
102
|
+
value="asc"
|
|
103
|
+
emphasized
|
|
104
|
+
label=${(0,o.msg)(`Sort ascending`,{desc:`Sort chart values in ascending order`})}
|
|
105
|
+
>
|
|
106
|
+
<luzmo-icon slot="icon" size="xs" class="icon-flipped" .icon=${r.luzmoAlignLeft}></luzmo-icon>
|
|
107
|
+
</luzmo-action-button>
|
|
108
|
+
</luzmo-action-group>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
</luzmo-popover>
|
|
112
|
+
</luzmo-overlay>
|
|
113
|
+
`}_handleDirectionChange(e,t){t.stopPropagation();let n=t.target?.selected;n?.length&&this._emitRankAndSort({...this._currentRanking(e),direction:n[0]},this._currentSort(e))}_handleNumberChange(e,t){t.stopPropagation();let n=t.target?.value,r=typeof n==`number`?n:Number.parseInt(String(n),10);!Number.isNaN(r)&&r>=1&&this._emitRankAndSort({...this._currentRanking(e),number:r},this._currentSort(e))}_handleSortByChange(e,t){t.stopPropagation();let n=t.target?.selected;n?.length&&this._emitRankAndSort(this._currentRanking(e),{...this._currentSort(e),by:n[0]})}_handleSortDirectionChange(e,t){t.stopPropagation();let n=t.target?.selected;n?.length&&this._emitRankAndSort(this._currentRanking(e),{...this._currentSort(e),direction:n[0]})}_renderActions(){return this.hideActions?i.html`
|
|
114
|
+
<div class="chart-actions-bar">
|
|
115
|
+
<div class="chart-actions-primary"></div>
|
|
116
|
+
<slot name="chart-actions-extra"></slot>
|
|
117
|
+
</div>
|
|
118
|
+
`:i.html`
|
|
119
|
+
<div class="chart-actions-bar">
|
|
120
|
+
<div class="chart-actions-primary">
|
|
121
|
+
${this._chartActions.map(e=>e.type===`optionDropdown`?this._renderOptionDropdown(e):this._renderRankingPicker(e))}
|
|
122
|
+
</div>
|
|
123
|
+
<slot name="chart-actions-extra"></slot>
|
|
124
|
+
</div>
|
|
125
|
+
`}_renderChart(){if(!this.chart)return i.nothing;let e=_(this.chart);return i.html`
|
|
126
|
+
<div class="chart-container" part="chart-container">
|
|
127
|
+
<luzmo-embed-viz-item
|
|
128
|
+
.type=${e.type}
|
|
129
|
+
.options=${e.options}
|
|
130
|
+
.slots=${e.slots}
|
|
131
|
+
.filters=${e.filters??[]}
|
|
132
|
+
.authKey=${this.authKey}
|
|
133
|
+
.authToken=${this.authToken}
|
|
134
|
+
.apiHost=${this.apiUrl}
|
|
135
|
+
.appServer=${this.appServer}
|
|
136
|
+
.language=${this._effectiveContentLanguage}
|
|
137
|
+
.canFilter=${!1}
|
|
138
|
+
></luzmo-embed-viz-item>
|
|
139
|
+
</div>
|
|
140
|
+
`}_renderFeedback(){let e=!this.hideFeedback&&!!this.messageId,t=!!this.chart&&!this.hideConfigPanel;return!e&&!t?i.nothing:i.html`
|
|
141
|
+
<div class="feedback-row">
|
|
142
|
+
${e?i.html`
|
|
143
|
+
<luzmo-action-group quiet size=${this.size}>
|
|
144
|
+
<luzmo-action-button
|
|
145
|
+
class="rating-btn-positive"
|
|
146
|
+
value="positive"
|
|
147
|
+
quiet
|
|
148
|
+
label=${(0,o.msg)(`Good response`,{desc:`Accessible label for the positive feedback button`})}
|
|
149
|
+
?selected=${this._rating===1}
|
|
150
|
+
@click=${()=>this._toggleRating(!0)}
|
|
151
|
+
>
|
|
152
|
+
<luzmo-icon slot="icon" size="s" .icon=${r.luzmoThumbsUp}></luzmo-icon>
|
|
153
|
+
</luzmo-action-button>
|
|
154
|
+
<luzmo-action-button
|
|
155
|
+
class="rating-btn-negative"
|
|
156
|
+
value="negative"
|
|
157
|
+
quiet
|
|
158
|
+
label=${(0,o.msg)(`Bad response`,{desc:`Accessible label for the negative feedback button`})}
|
|
159
|
+
?selected=${this._rating===-1}
|
|
160
|
+
@click=${()=>this._toggleRating(!1)}
|
|
161
|
+
>
|
|
162
|
+
<luzmo-icon slot="icon" size="s" .icon=${r.luzmoThumbsDown}></luzmo-icon>
|
|
163
|
+
</luzmo-action-button>
|
|
164
|
+
</luzmo-action-group>
|
|
165
|
+
`:i.nothing}
|
|
166
|
+
${t?i.html`
|
|
167
|
+
<luzmo-action-button
|
|
168
|
+
class="config-toggle"
|
|
169
|
+
size=${this.size}
|
|
170
|
+
quiet
|
|
171
|
+
?selected=${this._configPanelOpen}
|
|
172
|
+
aria-expanded=${this._configPanelOpen}
|
|
173
|
+
aria-label=${(0,o.msg)(`Configure chart`,{desc:`Accessible label for the chart config toggle`})}
|
|
174
|
+
@click=${()=>this._toggleConfigPanel()}
|
|
175
|
+
>
|
|
176
|
+
<luzmo-icon slot="icon" size="s" .icon=${r.luzmoInfoCircle}></luzmo-icon>
|
|
177
|
+
</luzmo-action-button>
|
|
178
|
+
`:i.nothing}
|
|
179
|
+
</div>
|
|
180
|
+
`}_toggleRating(e){let t=e?1:-1,n=this._rating===t?0:t;this._dispatch(`luzmo-feedback-changed`,{rating:n,comment:this.feedback?.comment})}_renderConfigPanel(){if(!this.chart||this.hideConfigPanel||!this._configPanelOpen)return i.nothing;let e=this.chart,t=h(e.slots??[]),n=g(t),r=e.options.theme??{};return i.html`
|
|
181
|
+
<div class="config-panel" part="config-panel">
|
|
182
|
+
<luzmo-tabs selected="data" size=${this.size}>
|
|
183
|
+
<luzmo-tab value="data">${(0,o.msg)(`Data`,{desc:`Label for the data section`})}</luzmo-tab>
|
|
184
|
+
<luzmo-tab value="options">${(0,o.msg)(`Options`,{desc:`Label for the options section`})}</luzmo-tab>
|
|
185
|
+
|
|
186
|
+
<luzmo-tab-panel value="data">
|
|
187
|
+
<div class="edit-grid">
|
|
188
|
+
<div class="edit-column">
|
|
189
|
+
<luzmo-item-slot-picker-panel
|
|
190
|
+
size=${this.size}
|
|
191
|
+
slot-menu-placement="bottom-end"
|
|
192
|
+
.itemType=${e.type}
|
|
193
|
+
.slotsContents=${t}
|
|
194
|
+
.datasetIds=${n}
|
|
195
|
+
.authKey=${this.authKey}
|
|
196
|
+
.authToken=${this.authToken}
|
|
197
|
+
.apiUrl=${this.apiUrl}
|
|
198
|
+
.language=${this.language}
|
|
199
|
+
.contentLanguage=${this._effectiveContentLanguage}
|
|
200
|
+
@luzmo-slots-contents-changed=${this._handleSlotsChanged}
|
|
201
|
+
></luzmo-item-slot-picker-panel>
|
|
202
|
+
</div>
|
|
203
|
+
<div class="edit-column edit-column-filters">
|
|
204
|
+
<luzmo-field-label size=${this.size}
|
|
205
|
+
>${(0,o.msg)(`Filters`,{desc:`Label for the filters section`})}</luzmo-field-label
|
|
206
|
+
>
|
|
207
|
+
<luzmo-filters
|
|
208
|
+
size=${this.size}
|
|
209
|
+
.datasetIds=${n}
|
|
210
|
+
.filters=${e.filters??[]}
|
|
211
|
+
.authKey=${this.authKey}
|
|
212
|
+
.authToken=${this.authToken}
|
|
213
|
+
.apiUrl=${this.apiUrl}
|
|
214
|
+
.language=${this.language}
|
|
215
|
+
.contentLanguage=${this._effectiveContentLanguage}
|
|
216
|
+
@luzmo-filters-changed=${this._handleFiltersChanged}
|
|
217
|
+
></luzmo-filters>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
</luzmo-tab-panel>
|
|
221
|
+
|
|
222
|
+
<luzmo-tab-panel value="options">
|
|
223
|
+
<luzmo-item-option-panel
|
|
224
|
+
size=${this.size}
|
|
225
|
+
.itemType=${e.type}
|
|
226
|
+
.options=${e.options||{}}
|
|
227
|
+
.slots=${t}
|
|
228
|
+
.theme=${r}
|
|
229
|
+
.authKey=${this.authKey}
|
|
230
|
+
.authToken=${this.authToken}
|
|
231
|
+
.apiUrl=${this.apiUrl}
|
|
232
|
+
.language=${this.language}
|
|
233
|
+
@luzmo-options-changed=${this._handleOptionsChanged}
|
|
234
|
+
></luzmo-item-option-panel>
|
|
235
|
+
</luzmo-tab-panel>
|
|
236
|
+
</luzmo-tabs>
|
|
237
|
+
</div>
|
|
238
|
+
`}render(){return this.chart?i.html`
|
|
239
|
+
<div class="answer" part="container">
|
|
240
|
+
${this._renderActions()} ${this._renderChart()} ${this._renderFeedback()} ${this._renderConfigPanel()}
|
|
241
|
+
</div>
|
|
242
|
+
`:i.html`
|
|
243
|
+
<div
|
|
244
|
+
class="answer"
|
|
245
|
+
part="container"
|
|
246
|
+
></div>
|
|
247
|
+
`}};t.t([(0,a.property)({type:Object})],w.prototype,`chart`,void 0),t.t([(0,a.property)({type:Object})],w.prototype,`feedback`,void 0),t.t([(0,a.property)({type:String,attribute:`message-id`})],w.prototype,`messageId`,void 0),t.t([(0,a.property)({type:String,attribute:`auth-key`})],w.prototype,`authKey`,void 0),t.t([(0,a.property)({type:String,attribute:`auth-token`})],w.prototype,`authToken`,void 0),t.t([(0,a.property)({type:String,attribute:`api-url`})],w.prototype,`apiUrl`,void 0),t.t([(0,a.property)({type:String,attribute:`app-server`})],w.prototype,`appServer`,void 0),t.t([(0,a.property)({type:String,attribute:`content-language`})],w.prototype,`contentLanguage`,void 0),t.t([(0,a.property)({type:Boolean,attribute:`hide-actions`,reflect:!0})],w.prototype,`hideActions`,void 0),t.t([(0,a.property)({type:Boolean,attribute:`hide-feedback`,reflect:!0})],w.prototype,`hideFeedback`,void 0),t.t([(0,a.property)({type:Boolean,attribute:`hide-config-panel`,reflect:!0})],w.prototype,`hideConfigPanel`,void 0),t.t([(0,a.state)()],w.prototype,`_configPanelOpen`,void 0),customElements.get(`luzmo-interactive-viz-item`)||customElements.define(`luzmo-interactive-viz-item`,w),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return u}});
|