@luzmo/analytics-components-kit 1.0.8-beta.3 → 1.0.8-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/components/ai-chat/ai-chat.d.ts +8 -2
- package/components/ai-chat/index.cjs +1 -1
- package/components/ai-chat/index.js +2 -2
- package/components/ai-chat/session/ai-chat-session-types.d.ts +3 -1
- package/components/ai-chat/session/ai-chat-session.d.ts +3 -2
- package/components/ai-chat-7kHoMVeu.cjs +321 -0
- package/components/{ai-chat-CTr-dplW.js → ai-chat-CI9l8ZOE.js} +717 -637
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +15 -2
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.d.ts +2 -0
- package/components/ai-interaction-textarea/index.js +1 -1
- package/components/ai-interaction-textarea/types.d.ts +2 -0
- package/components/{ai-interaction-textarea-uc14Goa4.js → ai-interaction-textarea-BbVH-aF4.js} +24 -6
- package/components/ai-interaction-textarea-Crcz4rCV.cjs +99 -0
- package/components/{area-chart-options.config-HaYA8gPC.js → area-chart-options.config-B94ERc30.js} +12 -7
- package/components/area-chart-options.config-Bf5kti7Z.cjs +20 -0
- package/components/{area-chart-positioning.config-BstzDLRL.cjs → area-chart-positioning.config-D8_KYS-h.cjs} +1 -1
- package/components/{area-chart-positioning.config-DeMlkQZO.js → area-chart-positioning.config-DT7OiLe4.js} +1 -1
- package/components/{bar-chart-options.config--F0KfZ5y.js → bar-chart-options.config-B1C3t6uk.js} +12 -10
- package/components/bar-chart-options.config-CI17HU2I.cjs +20 -0
- package/components/{bar-chart-positioning.config-DDKGGZhU.cjs → bar-chart-positioning.config-CnMHGk5K.cjs} +1 -1
- package/components/{bar-chart-positioning.config-Cw4xXpaU.js → bar-chart-positioning.config-FEwWvMF6.js} +1 -1
- package/components/{base-DPqRkMth.js → base-BkD2CWTy.js} +1 -1
- package/components/{base-B0frB7oV.cjs → base-XtzYH7G4.cjs} +1 -1
- package/components/box-plot-options.config-Cp6H9fyb.cjs +20 -0
- package/components/{box-plot-options.config-CT4_71tE.js → box-plot-options.config-sBfVzPTw.js} +24 -19
- package/components/{box-plot-positioning.config-Cni8SYCB.cjs → box-plot-positioning.config-Cij5pfeH.cjs} +1 -1
- package/components/{box-plot-positioning.config-BQf8CX15.js → box-plot-positioning.config-DxRLb2qS.js} +1 -1
- package/components/{bubble-chart-options.config-B_hTYgid.js → bubble-chart-options.config-DKeBF5A0.js} +9 -7
- package/components/bubble-chart-options.config-e_0LM1Uw.cjs +20 -0
- package/components/{bubble-chart-positioning.config-1Q2GxFJ4.cjs → bubble-chart-positioning.config-BmNR5EQH.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-BYeXJRKW.js → bubble-chart-positioning.config-CVnk6LlN.js} +1 -1
- package/components/{bullet-chart-positioning.config-D-fuuO8D.js → bullet-chart-positioning.config-7sPWksMT.js} +1 -1
- package/components/{bullet-chart-positioning.config-NSHvsWAf.cjs → bullet-chart-positioning.config-CNkU3bzI.cjs} +1 -1
- package/components/choropleth-map-options.config-VG10yjwC.cjs +20 -0
- package/components/{choropleth-map-options.config-CsJjKLVP.js → choropleth-map-options.config-nOE0NWaD.js} +29 -27
- package/components/{choropleth-map-positioning.config-DZCuGwit.cjs → choropleth-map-positioning.config-CljoQanM.cjs} +1 -1
- package/components/{choropleth-map-positioning.config-Bk2lcbUF.js → choropleth-map-positioning.config-CuaL7fSP.js} +1 -1
- package/components/{circle-pack-chart-options.config-Dobt6Q5A.cjs → circle-pack-chart-options.config-BmX0w3cH.cjs} +1 -1
- package/components/{circle-pack-chart-options.config-FcILD-Hi.js → circle-pack-chart-options.config-CgE8vGP9.js} +36 -31
- package/components/{circle-pack-chart-positioning.config-CuESD4oH.cjs → circle-pack-chart-positioning.config-CiF6h2TX.cjs} +1 -1
- package/components/{circle-pack-chart-positioning.config-pvlFSoeh.js → circle-pack-chart-positioning.config-maqHu5T2.js} +1 -1
- package/components/{circular-gauge-positioning.config-DIYxTFVO.cjs → circular-gauge-positioning.config-BK2YSDr1.cjs} +1 -1
- package/components/{circular-gauge-positioning.config-BI5_9VzK.js → circular-gauge-positioning.config-e9_VgpRY.js} +1 -1
- package/components/{column-chart-options.config-BzMjdyfp.js → column-chart-options.config-C2GGiHOI.js} +12 -10
- package/components/column-chart-options.config-xmSH4NKF.cjs +20 -0
- package/components/{column-chart-positioning.config-F5liDplz.cjs → column-chart-positioning.config-DdiwInY-.cjs} +1 -1
- package/components/{column-chart-positioning.config-CoekgrWc.js → column-chart-positioning.config-DpPXllzx.js} +1 -1
- package/components/combination-chart-options.config-IEamJGCp.cjs +20 -0
- package/components/{combination-chart-options.config-BEMnrQdd.js → combination-chart-options.config-LddX4naq.js} +8 -3
- package/components/{combination-chart-positioning.config-BIqhiqPc.cjs → combination-chart-positioning.config-5Qnm4ZYG.cjs} +1 -1
- package/components/{combination-chart-positioning.config-gfmXofUL.js → combination-chart-positioning.config-D7c6z5j6.js} +1 -1
- package/components/{conditional-number-positioning.config-7xN8yNaC.cjs → conditional-number-positioning.config-Bmc5b4Hr.cjs} +1 -1
- package/components/{conditional-number-positioning.config-DoA_qMvA.js → conditional-number-positioning.config-BnMcO9mu.js} +1 -1
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.js +1 -1
- package/components/{data-field-CZGdgBd7.cjs → data-field-BmpgtPX8.cjs} +1 -1
- package/components/{data-field-Ccsjj3o5.js → data-field-DTQxvpeM.js} +3 -3
- package/components/data-field-level/index.cjs +1 -1
- package/components/data-field-level/index.js +1 -1
- package/components/{data-field-level-DDYutkKV.cjs → data-field-level-D0RZHwqF.cjs} +1 -1
- package/components/{data-field-level-BautlamO.js → data-field-level-EOj5KvoG.js} +1 -1
- package/components/data-field-panel/index.cjs +1 -1
- package/components/data-field-panel/index.js +1 -1
- package/components/{data-field-panel-B9aYsBfe.cjs → data-field-panel-Bc_4pQwc.cjs} +1 -1
- package/components/{data-field-panel-COHppDw6.js → data-field-panel-Dya_9wHn.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-CvdABHum.js → data-fields-select-2Da7XC6m.js} +1 -1
- package/components/{data-fields-select-BMDWXAMz.cjs → data-fields-select-D4Sxxb_Z.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-5y3eFlPa.js → dataset-selector-list-CK9KzC1a.js} +1 -1
- package/components/{dataset-selector-list-BWgvikkr.cjs → dataset-selector-list-m1XmVt8T.cjs} +1 -1
- package/components/dataset-selector-row/dataset-selector-row.d.ts +36 -5
- package/components/dataset-selector-row/index.cjs +1 -1
- package/components/dataset-selector-row/index.d.ts +1 -0
- package/components/dataset-selector-row/index.js +1 -1
- package/components/dataset-selector-row-B78ZLWQS.cjs +102 -0
- package/components/dataset-selector-row-gBQl1Bza.js +427 -0
- package/components/{de-CbIHJOex.js → de-_-1hLVI0.js} +3 -0
- package/components/de-g8uRTFxZ.cjs +20 -0
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/{display-settings-B_sY5MXH.cjs → display-settings-DLWnhQe0.cjs} +1 -1
- package/components/{display-settings-DpPSk_da.js → display-settings-DgOPeUie.js} +2 -2
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +1 -1
- package/components/{display-settings-binning-w2pMC3eK.js → display-settings-binning-CE4hmdtx.js} +2 -2
- package/components/{display-settings-binning-BGYyLt7_.cjs → display-settings-binning-CYM7FpXw.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-Ditc8j2_.js → display-settings-datetime-D4f_o6NK.js} +2 -2
- package/components/{display-settings-datetime-l9LWhG3c.cjs → display-settings-datetime-h8CvoTZ8.cjs} +1 -1
- 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-HcJLxYe2.js → display-settings-grand-totals-CnP8P-cu.js} +2 -2
- package/components/{display-settings-grand-totals-D-_CQpBV.cjs → display-settings-grand-totals-D0YsVbSs.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-CShtLo7v.cjs → display-settings-numeric-DF4zjmZj.cjs} +1 -1
- package/components/{display-settings-numeric-FWO7hFLp.js → display-settings-numeric-DyAFuYTz.js} +2 -2
- 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-B1dHBjlg.js → display-settings-period-over-period-B634a88N.js} +2 -2
- package/components/{display-settings-period-over-period-BdBYrWwJ.cjs → display-settings-period-over-period-DXuRHg-1.cjs} +1 -1
- package/components/{donut-chart-options.config-D5Wkh0nh.js → donut-chart-options.config-CPHgS1Wi.js} +8 -3
- package/components/donut-chart-options.config-LbmJpNlm.cjs +20 -0
- package/components/{donut-chart-positioning.config-DsHR-HET.cjs → donut-chart-positioning.config-BhIwOPI0.cjs} +1 -1
- package/components/{donut-chart-positioning.config-B-CWvQDP.js → donut-chart-positioning.config-Peq3v9qK.js} +1 -1
- package/components/es-C3dhJP2H.cjs +20 -0
- package/components/{es-bVLNpB-8.js → es-Cdl4GvQt.js} +3 -0
- package/components/{evolution-number-positioning.config-DWJlecZ8.cjs → evolution-number-positioning.config-ClGlayIt.cjs} +1 -1
- package/components/{evolution-number-positioning.config-DogBtixy.js → evolution-number-positioning.config-e90XUBQG.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-vZcmpdhp.js → filter-expression-picker-BPAwOijt.js} +1 -1
- package/components/{filter-expression-picker-Dtd04YHa.cjs → filter-expression-picker-COCoT5LG.cjs} +1 -1
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +1 -1
- package/components/{filter-item-DhWm1nZ2.js → filter-item-CbDbNmni.js} +5 -5
- package/components/{filter-item-QGXrunyl.cjs → filter-item-cyApfc9M.cjs} +1 -1
- package/components/filter-parameter-picker/index.cjs +1 -1
- package/components/filter-parameter-picker/index.js +1 -1
- package/components/{filter-parameter-picker-Dq7rskJq.js → filter-parameter-picker-CCd77cYS.js} +1 -1
- package/components/{filter-parameter-picker-_KpPQvwJ.cjs → filter-parameter-picker-F68BatwD.cjs} +1 -1
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +1 -1
- package/components/{filter-value-picker-DL-XI9zN.js → filter-value-picker-CLUUhn1d.js} +4 -4
- package/components/{filter-value-picker-DUPgUphE.cjs → filter-value-picker-DADia7jo.cjs} +1 -1
- 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-BYosmOVo.cjs → filter-value-picker-datetime-CuMmWJFV.cjs} +1 -1
- package/components/{filter-value-picker-datetime-DrtBsmhk.js → filter-value-picker-datetime-DM2K7Nrv.js} +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-Co7tEAF0.cjs → filter-value-picker-hierarchy-BQTrc0ZU.cjs} +1 -1
- package/components/{filter-value-picker-hierarchy-D9HPNjXi.js → filter-value-picker-hierarchy-W-a9ycWV.js} +2 -2
- 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-BCaSriJT.cjs → filter-value-picker-numeric-CXfgDZ4W.cjs} +1 -1
- package/components/{filter-value-picker-numeric-CLRBOcom.js → filter-value-picker-numeric-DL5cqR8I.js} +1 -1
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -1
- package/components/{filters-DPh6G5_6.cjs → filters-Dj4mQklp.cjs} +1 -1
- package/components/{filters-hIID3Ol5.js → filters-bruSosZt.js} +2 -2
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +1 -1
- package/components/{formula-D6fZk242.js → formula-CbApVbw7.js} +2 -2
- package/components/{formula-DJa0m0vt.cjs → formula-DkANj6Hi.cjs} +1 -1
- package/components/{formula-codemirror-CS38irmY.js → formula-codemirror-C_wCMc2M.js} +4 -4
- package/components/{formula-codemirror-ClMjdWte.cjs → formula-codemirror-DGxXJYCi.cjs} +1 -1
- package/components/{formula-display-store-riWDbPmO.cjs → formula-display-store-B2DUrVwh.cjs} +1 -1
- package/components/{formula-display-store-BVCcrqMB.js → formula-display-store-SkrNDfyG.js} +3 -3
- package/components/formula-editor/index.cjs +1 -1
- package/components/formula-editor/index.js +3 -3
- package/components/{formula-editor-C63ifj9i.js → formula-editor-DX5FRb2v.js} +5 -5
- package/components/{formula-editor-KuJjGn6h.cjs → formula-editor-Dv4UIAe_.cjs} +1 -1
- package/components/formula-field/index.cjs +1 -1
- package/components/formula-field/index.js +1 -1
- package/components/{formula-field-CZu-WBKI.js → formula-field-CwnAHHpw.js} +1 -1
- package/components/{formula-field-BIseRR26.cjs → formula-field-tJsQsXic.cjs} +1 -1
- package/components/{formula-input-base-B1D56Klw.cjs → formula-input-base-6iVykYb0.cjs} +1 -1
- package/components/{formula-input-base-DhhV4mbQ.js → formula-input-base-mKhAiYM0.js} +1 -1
- package/components/fr-WdV_fXl_.cjs +20 -0
- package/components/{fr-BVATPudG.js → fr-qv7EjBRo.js} +3 -0
- package/components/{funnel-chart-options.config-Ca5-W17F.js → funnel-chart-options.config-D21WdHBI.js} +5 -3
- package/components/funnel-chart-options.config-DgpM8mWb.cjs +20 -0
- package/components/{funnel-chart-positioning.config-D7871iXX.js → funnel-chart-positioning.config-Havc4gNs.js} +1 -1
- package/components/{funnel-chart-positioning.config-DswPJ8VG.cjs → funnel-chart-positioning.config-PrEIQPXg.cjs} +1 -1
- package/components/get-dataset-name-BR_H1MNL.cjs +20 -0
- package/components/{get-dataset-name-CXdZ2oH_.js → get-dataset-name-CIf7x0nh.js} +9 -4
- package/components/{groupings-Dt2yC9fH.cjs → groupings-BKSBZ34s.cjs} +1 -1
- package/components/{groupings-BwzDflId.js → groupings-CIVQITJp.js} +1 -1
- package/components/{heat-map-positioning.config-sZTsAUnf.js → heat-map-positioning.config-CF6XNksR.js} +1 -1
- package/components/{heat-map-positioning.config-C9xyxr1p.cjs → heat-map-positioning.config-L91C9c0t.cjs} +1 -1
- package/components/{heat-table-options.config-DT3d8VS7.js → heat-table-options.config-BJP1jVB8.js} +20 -18
- package/components/heat-table-options.config-CugBuoUA.cjs +20 -0
- package/components/{heat-table-positioning.config-DSsD8apM.js → heat-table-positioning.config-0YNV-Whw.js} +1 -1
- package/components/{heat-table-positioning.config-B5XgRMIn.cjs → heat-table-positioning.config-BuH8txu-.cjs} +1 -1
- package/components/{hexbin-map-positioning.config-Dq2TuFz1.cjs → hexbin-map-positioning.config-Dx42tGRj.cjs} +1 -1
- package/components/{hexbin-map-positioning.config-Dc9wAdAv.js → hexbin-map-positioning.config-wKi8qbMF.js} +1 -1
- package/components/index.cjs +1 -1
- package/components/index.js +54 -54
- package/components/interactive-viz-item/index.cjs +1 -1
- package/components/interactive-viz-item/index.js +1 -1
- package/components/{interactive-viz-item-wZ0r8XHx.js → interactive-viz-item-DMOsdrLN.js} +5 -5
- package/components/{interactive-viz-item-CcIWn6Tz.cjs → interactive-viz-item-YwkjBGtN.cjs} +1 -1
- package/components/interactivity-options.config-BjEGNaIz.js +73 -0
- package/components/interactivity-options.config-Bzk2L-qh.cjs +20 -0
- package/components/interactivity-options.i18n-BsYv4Rh9.cjs +20 -0
- package/components/interactivity-options.i18n-UhOnnlBC.js +59 -0
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +1 -1
- package/components/{item-grid-B8tT6ztQ.cjs → item-grid-B1ColM8x.cjs} +1 -1
- package/components/{item-grid-D7b0blK6.js → item-grid-iYxxuvvA.js} +1 -1
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.js +1 -1
- package/components/{item-option-B0EzSGTP.js → item-option-BIWC5VRT.js} +38 -38
- package/components/{item-option-B-Rgy3_8.cjs → item-option-Cz10G9yw.cjs} +1 -1
- 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-BOOW6k_j.cjs → item-option-action-button-group-Dq6xKpHi.cjs} +1 -1
- package/components/{item-option-action-button-group-BhC0n29i.js → item-option-action-button-group-TPUU3sts.js} +1 -1
- package/components/{item-option-base-D1xRkleX.cjs → item-option-base-BKo7DBxK.cjs} +1 -1
- package/components/{item-option-base-IMMzUkdt.js → item-option-base-DcZILy3S.js} +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-DBqNzR3N.cjs → item-option-color-palette-picker-C_Jx5Prb.cjs} +1 -1
- package/components/{item-option-color-palette-picker-D6xT_kWC.js → item-option-color-palette-picker-i6Tnv4qN.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-7Dth27ei.js → item-option-color-picker-BSXsKzZ-.js} +1 -1
- package/components/{item-option-color-picker-BqjtUtrr.cjs → item-option-color-picker-Co3iTjwo.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-Cz1LuJmy.cjs → item-option-color-range-CUYGCwQG.cjs} +1 -1
- package/components/{item-option-color-range-Cj5tryJo.js → item-option-color-range-DE8-UNxr.js} +1 -1
- package/components/item-option-guidelines/index.cjs +1 -1
- package/components/item-option-guidelines/index.js +1 -1
- package/components/{item-option-guidelines-CgJEAiF5.cjs → item-option-guidelines-DUjfN-eB.cjs} +1 -1
- package/components/{item-option-guidelines-8v9MZ0FH.js → item-option-guidelines-DWdPS45K.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-D9NK-noK.cjs → item-option-multi-language-field-CWE9WrxP.cjs} +1 -1
- package/components/{item-option-multi-language-field-BkqcX9zw.js → item-option-multi-language-field-D5e36e1G.js} +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-DHl0phm5.js → item-option-number-field-BElZmdUU.js} +1 -1
- package/components/{item-option-number-field-BXZD_sC2.cjs → item-option-number-field-RJ88VAyR.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-mHwmWhJY.cjs → item-option-panel-BmaT4y_2.cjs} +1 -1
- package/components/{item-option-panel-DOOOOgfV.js → item-option-panel-D7klHx03.js} +2 -2
- package/components/item-option-picker/index.cjs +1 -1
- package/components/item-option-picker/index.js +1 -1
- package/components/{item-option-picker-BUdP-MCI.cjs → item-option-picker-C3M-7kWF.cjs} +1 -1
- package/components/{item-option-picker-CmQFzBzN.js → item-option-picker-DnWKHPYS.js} +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-_2Dc6vhB.cjs → item-option-position-picker-B2qUrVJd.cjs} +1 -1
- package/components/{item-option-position-picker-CbnJ8Apk.js → item-option-position-picker-CUTrYLPj.js} +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-B6JzEtSc.js → item-option-positions-number-field-B4zcS62B.js} +1 -1
- package/components/{item-option-positions-number-field-C41FMT4C.cjs → item-option-positions-number-field-EXPp_Vr4.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-rONmmmSf.js → item-option-radio-button-group-Cs1sSCVM.js} +1 -1
- package/components/{item-option-radio-button-group-CjdCLmtq.cjs → item-option-radio-button-group-D8GbkHVX.cjs} +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-CANy5MZL.cjs → item-option-slider-Bo1ALP8q.cjs} +1 -1
- package/components/{item-option-slider-slgdsaDM.js → item-option-slider-CcKLS-V5.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-Cd9UA7J5.js → item-option-switch-Ch6u9CAm.js} +1 -1
- package/components/{item-option-switch-CS6kid_8.cjs → item-option-switch-CpeC7Eh7.cjs} +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-6Y1zBJMK.cjs → item-option-text-field-BxvQAHf3.cjs} +1 -1
- package/components/{item-option-text-field-BFP8YnEc.js → item-option-text-field-DAbQegOZ.js} +1 -1
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +21 -21
- package/components/item-slot-drop/index.cjs +1 -1
- package/components/item-slot-drop/index.js +1 -1
- package/components/{item-slot-drop-BL7DOudd.js → item-slot-drop-DDffbp-i.js} +5 -5
- package/components/{item-slot-drop-Ds06u_vn.cjs → item-slot-drop-mKhyjodt.cjs} +1 -1
- 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-DkHylw7i.js → item-slot-drop-panel-BtrZehGL.js} +39 -39
- package/components/{item-slot-drop-panel-D_EFyM9J.cjs → item-slot-drop-panel-CKXMQCyt.cjs} +1 -1
- package/components/item-slot-picker/index.cjs +1 -1
- package/components/item-slot-picker/index.js +1 -1
- package/components/{item-slot-picker-CywUgvNX.js → item-slot-picker-CWqeOJ8R.js} +6 -6
- package/components/{item-slot-picker-BbpPIoIq.cjs → item-slot-picker-CwMjRpkT.cjs} +1 -1
- 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-DQLwQXdI.cjs → item-slot-picker-panel-C6Hpc2rT.cjs} +1 -1
- package/components/{item-slot-picker-panel-Bi8xZaYc.js → item-slot-picker-panel-cD3DvPbA.js} +3 -3
- package/components/{line-chart-options.config-BMT_e6dk.js → line-chart-options.config-D8gRtfj3.js} +10 -5
- package/components/line-chart-options.config-RTYFJQSE.cjs +20 -0
- package/components/{line-chart-positioning.config-q_XJiQBO.js → line-chart-positioning.config-DoHg1rwA.js} +1 -1
- package/components/{line-chart-positioning.config-CCsZMpp-.cjs → line-chart-positioning.config-ZZid30rm.cjs} +1 -1
- package/components/{localized-mixin-D1ss6vE4.js → localized-mixin-CSF-kZFt.js} +1 -1
- package/components/{localized-mixin-BbOPy_BO.cjs → localized-mixin-DZFYG6RG.cjs} +1 -1
- package/components/{marker-map-positioning.config-B4GDDPUn.cjs → marker-map-positioning.config-DGZWoFAk.cjs} +1 -1
- package/components/{marker-map-positioning.config-qEo6YbOG.js → marker-map-positioning.config-DX6bFQld.js} +1 -1
- package/components/nl-D3gRr88b.cjs +20 -0
- package/components/{nl-D6PNT9zh.js → nl-MWgzbW0R.js} +3 -0
- package/components/{ohlc-chart-options.config-BrcfGxDw.cjs → ohlc-chart-options.config-Pqd5MFIv.cjs} +1 -1
- package/components/{ohlc-chart-options.config-BAB4pyo9.js → ohlc-chart-options.config-xgegn34C.js} +8 -3
- package/components/{ohlc-chart-positioning.config-TquTA1gZ.cjs → ohlc-chart-positioning.config-Bev8Atsx.cjs} +1 -1
- package/components/{ohlc-chart-positioning.config-CU7qaa8y.js → ohlc-chart-positioning.config-DaEUcXBJ.js} +1 -1
- package/components/{parallel-coordinates-plot-options.config-DFRL952-.cjs → parallel-coordinates-plot-options.config-2BbzNgJ9.cjs} +1 -1
- package/components/{parallel-coordinates-plot-options.config-BXsg-9wF.js → parallel-coordinates-plot-options.config-BUQLHO1k.js} +25 -20
- package/components/{parallel-coordinates-plot-options.de-WRF50oS3.js → parallel-coordinates-plot-options.de-BwbOcCnH.js} +2 -1
- package/components/{parallel-coordinates-plot-options.de-0P5Lyjc_.cjs → parallel-coordinates-plot-options.de-CDtIM_Z2.cjs} +1 -1
- package/components/{parallel-coordinates-plot-options.en-CttM0XeT.js → parallel-coordinates-plot-options.en-BlzPfF-b.js} +2 -1
- package/components/{parallel-coordinates-plot-options.en-CSn2MAT2.cjs → parallel-coordinates-plot-options.en-Bu7cMLrv.cjs} +1 -1
- package/components/{parallel-coordinates-plot-options.es-30M9dgQD.cjs → parallel-coordinates-plot-options.es-BPgUHedg.cjs} +1 -1
- package/components/{parallel-coordinates-plot-options.es-Bi2HrtUG.js → parallel-coordinates-plot-options.es-CPAqJPEY.js} +2 -1
- package/components/{parallel-coordinates-plot-options.fr-B3wy9Y-c.cjs → parallel-coordinates-plot-options.fr-BUxk85Ud.cjs} +1 -1
- package/components/{parallel-coordinates-plot-options.fr-wE6jc23K.js → parallel-coordinates-plot-options.fr-DRTOCvqg.js} +2 -1
- package/components/{parallel-coordinates-plot-options.nl-CK0Z_bEU.cjs → parallel-coordinates-plot-options.nl-CHuWgaYV.cjs} +1 -1
- package/components/{parallel-coordinates-plot-options.nl-ByxbF6Re.js → parallel-coordinates-plot-options.nl-DqXxaV_Z.js} +2 -1
- package/components/{parallel-coordinates-plot-positioning.config-C8_F3uzs.cjs → parallel-coordinates-plot-positioning.config-DJ7K-dVp.cjs} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-DuQWnPKv.js → parallel-coordinates-plot-positioning.config-NWEEOd4d.js} +1 -1
- package/components/pivot-table-options.config-D6Hdgnof.cjs +20 -0
- package/components/{pivot-table-options.config-tf8f5F-n.js → pivot-table-options.config-DW9UDipI.js} +5 -3
- package/components/{pivot-table-positioning.config-B6ra1dbJ.js → pivot-table-positioning.config-DpMiUVtd.js} +1 -1
- package/components/{pivot-table-positioning.config-DhtDGn-Z.cjs → pivot-table-positioning.config-U-M08Rwc.cjs} +1 -1
- package/components/{pyramid-chart-options.config-BnCfeT-K.js → pyramid-chart-options.config-Cbg351Yy.js} +5 -3
- package/components/pyramid-chart-options.config-ClLsv7PT.cjs +20 -0
- package/components/{pyramid-chart-positioning.config-5bWhJBP_.cjs → pyramid-chart-positioning.config-BpdI6jmg.cjs} +1 -1
- package/components/{pyramid-chart-positioning.config-C_KASxlG.js → pyramid-chart-positioning.config-CZwx_f40.js} +1 -1
- package/components/{radar-chart-positioning.config-l6ioKbxT.js → radar-chart-positioning.config-IFacftgi.js} +1 -1
- package/components/{radar-chart-positioning.config-D2NVgsg1.cjs → radar-chart-positioning.config-IcaEKe9Q.cjs} +1 -1
- package/components/{route-map-positioning.config-HDuhd3TI.js → route-map-positioning.config-CHfz0eM_.js} +1 -1
- package/components/{route-map-positioning.config-5Xju6VM-.cjs → route-map-positioning.config-DKZvRmfJ.cjs} +1 -1
- package/components/{sankey-diagram-options.config-CpNK2oK6.js → sankey-diagram-options.config-1lSECht4.js} +5 -3
- package/components/sankey-diagram-options.config-DZDqv5aI.cjs +20 -0
- package/components/{sankey-diagram-positioning.config-BKeksOQ2.js → sankey-diagram-positioning.config-BaCoBJXV.js} +1 -1
- package/components/{sankey-diagram-positioning.config-BXseVUED.cjs → sankey-diagram-positioning.config-DJaK2xJX.cjs} +1 -1
- package/components/{scatter-plot-options.config-BA_hVuhw.js → scatter-plot-options.config-9zL4v24E.js} +10 -5
- package/components/scatter-plot-options.config-DJW85uFv.cjs +20 -0
- package/components/{scatter-plot-positioning.config-Ci_UFZZ7.cjs → scatter-plot-positioning.config-DaNI54rh.cjs} +1 -1
- package/components/{scatter-plot-positioning.config-MFGPELRh.js → scatter-plot-positioning.config-PC47tloI.js} +1 -1
- package/components/{set-locale-B91FmqSp.js → set-locale-Jz3DhqaW.js} +4 -4
- package/components/{set-locale-8XQ-p5_N.cjs → set-locale-v6POkwmC.cjs} +1 -1
- package/components/{slicer-filter-positioning.config-CKyzt_nF.js → slicer-filter-positioning.config-DMqYOG9Z.js} +1 -1
- package/components/{slicer-filter-positioning.config-C2w10p-X.cjs → slicer-filter-positioning.config-KANe71ep.cjs} +1 -1
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +1 -1
- package/components/{slot-menu-7Lsnn5mp.cjs → slot-menu-CWMA97fn.cjs} +1 -1
- package/components/{slot-menu-JcmVjv2g.js → slot-menu-Cwee5fNa.js} +3 -3
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +1 -1
- package/components/{slot-menu-list-tyN6sguq.cjs → slot-menu-list-BEou0QhK.cjs} +1 -1
- package/components/{slot-menu-list-Bcm2lpwi.js → slot-menu-list-De2q0GGZ.js} +1 -1
- package/components/{speedometer-chart-positioning.config-BEWibjyH.js → speedometer-chart-positioning.config-CYVK0VnJ.js} +1 -1
- package/components/{speedometer-chart-positioning.config-Df5CIOwp.cjs → speedometer-chart-positioning.config-DW3dJD7n.cjs} +1 -1
- package/components/{spike-map-positioning.config-CdT1dVMG.js → spike-map-positioning.config-CfVFEygx.js} +1 -1
- package/components/{spike-map-positioning.config-C6aRn7nn.cjs → spike-map-positioning.config-Dl-Uf_O6.cjs} +1 -1
- package/components/{strip-plot-positioning.config-B8vN0A44.js → strip-plot-positioning.config-BMNtb-to.js} +1 -1
- package/components/{strip-plot-positioning.config-DXJci5zk.cjs → strip-plot-positioning.config-eJ5MbyBk.cjs} +1 -1
- package/components/{sunburst-chart-options.config-0GUoeJMb.js → sunburst-chart-options.config-CXOrVmIe.js} +5 -3
- package/components/sunburst-chart-options.config-DszAtggj.cjs +20 -0
- package/components/{sunburst-chart-positioning.config-D-qWT3sC.js → sunburst-chart-positioning.config-BRWF7dVf.js} +1 -1
- package/components/{sunburst-chart-positioning.config-XfxGkqp6.cjs → sunburst-chart-positioning.config-CJgmPm-9.cjs} +1 -1
- package/components/{symbol-map-positioning.config-BB8-Feba.cjs → symbol-map-positioning.config-ONSN27l9.cjs} +1 -1
- package/components/{symbol-map-positioning.config-CAC8XCec.js → symbol-map-positioning.config-_8L-oDxW.js} +1 -1
- package/components/{treemap-chart-options.config-CtpfX7hs.js → treemap-chart-options.config-6l3HzikF.js} +10 -8
- package/components/treemap-chart-options.config-Cpj6vD6I.cjs +20 -0
- package/components/{treemap-chart-positioning.config-CJKe5rf1.js → treemap-chart-positioning.config-Bggn7Mqz.js} +1 -1
- package/components/{treemap-chart-positioning.config-Daf9Kk3k.cjs → treemap-chart-positioning.config-DrCRoNzf.cjs} +1 -1
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +2 -2
- package/components/{utils-BMmRy1Nn.js → utils-B2Eqs5i5.js} +1 -1
- package/components/{utils-D9CBsoMV.cjs → utils-CNH9xGyk.cjs} +1 -1
- package/components/utils.cjs +1 -1
- package/components/utils.js +2 -2
- package/components/{venn-diagram-positioning.config-DqxSgLGR.cjs → venn-diagram-positioning.config-B-prEVEc.cjs} +1 -1
- package/components/{venn-diagram-positioning.config-8pfbiReM.js → venn-diagram-positioning.config-BoH0wNEM.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-CPqpF_PR.js → viz-item-menu-BUSjo6j_.js} +1 -1
- package/components/{viz-item-menu-BSkDsdNg.cjs → viz-item-menu-C-kpX-Ft.cjs} +1 -1
- package/components/wordcloud-chart-options.config-BQ4Z-vPT.cjs +20 -0
- package/components/{wordcloud-chart-options.config-Dxu7-YcG.js → wordcloud-chart-options.config-CpMtpG7q.js} +5 -3
- package/components/{wordcloud-chart-positioning.config-DUazjx5M.js → wordcloud-chart-positioning.config-B6pvD7_a.js} +1 -1
- package/components/{wordcloud-chart-positioning.config-Cb7lzr9N.cjs → wordcloud-chart-positioning.config-BJi5SVYf.cjs} +1 -1
- package/custom-elements.json +142 -12
- package/package.json +4 -4
- package/react/components/dataset-selector-row.component.ts +8 -2
- package/react/esm/components/dataset-selector-row.component.d.ts +5 -1
- package/react/esm/components/dataset-selector-row.component.js +5 -1
- package/react/luzmo-stub.d.ts +1 -0
- package/react/package.json +2 -2
- package/types/agent.types.d.ts +4 -0
- package/types.d.ts +1 -0
- package/utils/formatter/get-localized-name.d.ts +4 -0
- package/utils/formatter/tests/get-localized-name.test.d.ts +1 -0
- package/components/ai-chat-CQtzaiZ_.cjs +0 -319
- package/components/ai-interaction-textarea-CMz5ixwt.cjs +0 -95
- package/components/area-chart-options.config-CiPCKvh7.cjs +0 -20
- package/components/bar-chart-options.config-A5bcUHFc.cjs +0 -20
- package/components/box-plot-options.config-ZZ_mvqGk.cjs +0 -20
- package/components/bubble-chart-options.config-BbB5dj43.cjs +0 -20
- package/components/choropleth-map-options.config-CEGFnwKG.cjs +0 -20
- package/components/column-chart-options.config-iKKyzY3j.cjs +0 -20
- package/components/combination-chart-options.config-BqQlqnhf.cjs +0 -20
- package/components/dataset-selector-row-BjyeiTVy.cjs +0 -90
- package/components/dataset-selector-row-pEM8hLyJ.js +0 -316
- package/components/de-BZnsTnT9.cjs +0 -20
- package/components/donut-chart-options.config-DUIE-bdr.cjs +0 -20
- package/components/es-D3v9KL7a.cjs +0 -20
- package/components/fr-uvrkqpp_.cjs +0 -20
- package/components/funnel-chart-options.config-CMOM4QN2.cjs +0 -20
- package/components/get-dataset-name-CIt7of_Z.cjs +0 -20
- package/components/heat-table-options.config-Dl6GDA-m.cjs +0 -20
- package/components/line-chart-options.config-CL8SCDgU.cjs +0 -20
- package/components/nl-DwF8NHcr.cjs +0 -20
- package/components/pivot-table-options.config-B9ZfmFZH.cjs +0 -20
- package/components/pyramid-chart-options.config-LSOc6ALz.cjs +0 -20
- package/components/sankey-diagram-options.config-CuKQOPPW.cjs +0 -20
- package/components/scatter-plot-options.config-C-L2dJ2o.cjs +0 -20
- package/components/sunburst-chart-options.config-CCNYG73m.cjs +0 -20
- package/components/treemap-chart-options.config-pA93-9cX.cjs +0 -20
- package/components/wordcloud-chart-options.config-ConV1s49.cjs +0 -20
|
@@ -2,6 +2,7 @@ import '@luzmo/lucero/action-button';
|
|
|
2
2
|
import '@luzmo/lucero/icon';
|
|
3
3
|
import '@luzmo/lucero/prompt-box';
|
|
4
4
|
import { LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
5
|
+
import type { Agent } from '../../types/agent.types';
|
|
5
6
|
import type { Dataset } from '../../types/dataset.types';
|
|
6
7
|
import type { PromptBoxAttachment, PromptBoxFileIcons } from './types';
|
|
7
8
|
import '../dataset-icon';
|
|
@@ -19,12 +20,13 @@ import '../dataset-selector-row';
|
|
|
19
20
|
* @property {number} max-visible-selected-datasets - Maximum number of selected dataset tags shown before the overflow control (default: 5)
|
|
20
21
|
* @property {boolean} disable-dataset-modification - When true, disables the "+ Add dataset" button and disables dataset pill removal
|
|
21
22
|
* @property {boolean} hide-selected-datasets - When true, hides the dataset row entirely
|
|
23
|
+
* @property {boolean} hide-agents - When true, hides the Agents section in the add dropdown and ignores `selectedAgent` for `require-dataset` and `prompt-submitted`
|
|
22
24
|
* @property {boolean} disable-column-mentions - When true, disables `@` trigger mentions completely
|
|
23
25
|
* @property {boolean} is-generating - When true, shows a spinning loader icon instead of the submit arrow
|
|
24
26
|
* @property {boolean} stoppable - When true, shows a stop control while `is-generating` is true
|
|
25
27
|
* @property {string} value - The current value of the textarea (can be controlled from parent to clear or set text)
|
|
26
28
|
* @property {boolean} retain-on-submit - When true, retains the input value after submission (default: false, clears on submit)
|
|
27
|
-
* @property {boolean} require-dataset - When true, at least one dataset
|
|
29
|
+
* @property {boolean} require-dataset - When true, a selected agent or at least one selected dataset is required before the prompt can be submitted
|
|
28
30
|
* @property {boolean} allow-images - When true, enables image attachments (paste or file picker); uploads eagerly on attach
|
|
29
31
|
* @property {boolean} allow-voice-input - When true, shows Lucero mic recording and streams transcript via `POST /aidictation`
|
|
30
32
|
* @property {string[]} accepted-file-types - Accepted MIME types or extensions for attachments (e.g. `image/png`, `.webp`)
|
|
@@ -88,6 +90,14 @@ export declare class LuzmoAiInteractionTextarea extends LitElement {
|
|
|
88
90
|
hideDatasetIcons: boolean;
|
|
89
91
|
/** Maximum number of selected dataset tags shown before the overflow control. */
|
|
90
92
|
maxVisibleSelectedDatasets: number;
|
|
93
|
+
/**
|
|
94
|
+
* The saved Agent the prompt is scoped to, or null
|
|
95
|
+
*/
|
|
96
|
+
selectedAgent: Agent | null;
|
|
97
|
+
/**
|
|
98
|
+
* When true, hides the Agents section in the add dropdown and ignores `selectedAgent` for `require-dataset` and `prompt-submitted`
|
|
99
|
+
*/
|
|
100
|
+
hideAgents: boolean;
|
|
91
101
|
/**
|
|
92
102
|
* When true, disables the "+ Add dataset" button and disables dataset pill removal
|
|
93
103
|
*/
|
|
@@ -118,7 +128,7 @@ export declare class LuzmoAiInteractionTextarea extends LitElement {
|
|
|
118
128
|
*/
|
|
119
129
|
retainOnSubmit: boolean;
|
|
120
130
|
/**
|
|
121
|
-
* When true, at least one dataset
|
|
131
|
+
* When true, a selected agent or at least one selected dataset is required before the prompt can be submitted
|
|
122
132
|
*/
|
|
123
133
|
requireDataset: boolean;
|
|
124
134
|
/** When true, enables image attachments via paste or the file picker. */
|
|
@@ -164,6 +174,7 @@ export declare class LuzmoAiInteractionTextarea extends LitElement {
|
|
|
164
174
|
private _promptBox?;
|
|
165
175
|
private get _voiceBusy();
|
|
166
176
|
private get _buttonDisabled();
|
|
177
|
+
private get _activeAgent();
|
|
167
178
|
private get _promptPending();
|
|
168
179
|
private get _promptReadonly();
|
|
169
180
|
private get _actionsDisabled();
|
|
@@ -192,6 +203,8 @@ export declare class LuzmoAiInteractionTextarea extends LitElement {
|
|
|
192
203
|
private _submitPrompt;
|
|
193
204
|
private _handleDatasetSelected;
|
|
194
205
|
private _handleDatasetRemoved;
|
|
206
|
+
private _handleAgentSelected;
|
|
207
|
+
private _handleAgentRemoved;
|
|
195
208
|
private _getLocalizedFieldLabel;
|
|
196
209
|
private _mapColumnToTriggerOption;
|
|
197
210
|
private _mapFormulaToTriggerOption;
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../ai-interaction-textarea-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../ai-interaction-textarea-Crcz4rCV.cjs");Object.defineProperty(exports,"LuzmoAiInteractionTextarea",{enumerable:!0,get:function(){return e.t}});
|
|
@@ -6,3 +6,5 @@ declare global {
|
|
|
6
6
|
}
|
|
7
7
|
export { LuzmoAiInteractionTextarea } from './ai-interaction-textarea';
|
|
8
8
|
export type { PromptBoxAttachment, PromptBoxFileIcons, PromptSubmittedEventDetail } from './types';
|
|
9
|
+
export type { Agent } from '../../types/agent.types';
|
|
10
|
+
export type { Dataset } from '../../types/dataset.types';
|
|
@@ -24,5 +24,5 @@
|
|
|
24
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-shadow-color-rgb: 0, 0, 0;--luzmo-shadow-opacity: 0.1;--luzmo-shadow-color: rgba(var(--luzmo-shadow-color-rgb), var(--luzmo-shadow-opacity));--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
25
|
}
|
|
26
26
|
})();
|
|
27
|
-
import { t as e } from "../ai-interaction-textarea-
|
|
27
|
+
import { t as e } from "../ai-interaction-textarea-BbVH-aF4.js";
|
|
28
28
|
export { e as LuzmoAiInteractionTextarea };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { PromptBoxAttachment, PromptBoxFileIcons } from '@luzmo/lucero';
|
|
2
|
+
import type { Agent } from '../../types/agent.types';
|
|
2
3
|
import type { Dataset } from '../../types/dataset.types';
|
|
3
4
|
export type { PromptBoxAttachment, PromptBoxFileIcons };
|
|
4
5
|
export interface PromptSubmittedEventDetail {
|
|
5
6
|
prompt: string;
|
|
6
7
|
selectedDatasets: Dataset[];
|
|
8
|
+
selectedAgent: Agent | null;
|
|
7
9
|
attachments: PromptBoxAttachment[];
|
|
8
10
|
/** Signed image URLs from eager upload on attach, ordered to match image attachments. */
|
|
9
11
|
attachmentUrls: string[];
|
package/components/{ai-interaction-textarea-uc14Goa4.js → ai-interaction-textarea-BbVH-aF4.js}
RENAMED
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
20
|
import { t as e } from "./decorate-DyMgX_Uh.js";
|
|
21
|
-
import { t } from "./set-locale-
|
|
21
|
+
import { t } from "./set-locale-Jz3DhqaW.js";
|
|
22
22
|
import { t as n } from "./data-broker-B0uUO5er.js";
|
|
23
23
|
import { i as r, r as i, t as a } from "./calculate-data-field-icon-DrSg1PuD.js";
|
|
24
24
|
import { t as o } from "./localize-BT7REYBY.js";
|
|
25
|
-
import { t as s } from "./get-dataset-name-
|
|
25
|
+
import { t as s } from "./get-dataset-name-CIf7x0nh.js";
|
|
26
26
|
import "./dataset-icon-CWT5Ju8w.js";
|
|
27
|
-
import "./dataset-selector-row-
|
|
27
|
+
import "./dataset-selector-row-gBQl1Bza.js";
|
|
28
28
|
import { luzmoPaperclip as c, luzmoPlugin as l } from "@luzmo/icons";
|
|
29
29
|
import "@luzmo/lucero/icon";
|
|
30
30
|
import { LitElement as u, html as d, nothing as f, unsafeCSS as p } from "lit";
|
|
@@ -236,7 +236,7 @@ async function G(e) {
|
|
|
236
236
|
//#region src/components/ai-interaction-textarea/ai-interaction-textarea.module.scss?inline
|
|
237
237
|
var K = ":host{box-sizing:border-box;display:block}:host .content-wrapper{flex-direction:column;display:flex}:host .content-wrapper.single-line{align-items:stretch}:host .content-wrapper.disabled{opacity:var(--luzmo-ai-interaction-textarea-disabled-opacity,var(--ai-interaction-textarea-disabled-opacity));pointer-events:none;cursor:not-allowed}:host .content-wrapper.disabled *{pointer-events:none}:host luzmo-prompt-box{--luzmo-prompt-box-attachments-gap:var(--luzmo-spacing-3,8px);--luzmo-prompt-box-border-radius:var(--ai-interaction-textarea-prompt-box-border-radius);inline-size:100%}:host .attachment-error{color:var(--luzmo-negative-color,#ca221c);font-size:var(--luzmo-font-size-s,12px);margin-block-start:var(--luzmo-spacing-2,4px);line-height:1.4}:host{--ai-interaction-textarea-disabled-opacity:.6;--ai-interaction-textarea-prompt-box-border-radius:var(--luzmo-prompt-box-border-radius,var(--luzmo-border-radius-l,8px))}", q = 3e3, J = 6e4, Y = class extends u {
|
|
238
238
|
constructor(...e) {
|
|
239
|
-
super(...e), this.placeholder = "Type your prompt here...", this.selectedDatasets = [], this.authKey = "", this.authToken = "", this.apiUrl = "https://api.luzmo.com", this.appServer = "https://app.luzmo.com", this.includePublicDatasets = !1, this.disabled = !1, this.singleLine = !1, this.hideDatasetButton = !1, this.hideDatasetIcons = !1, this.maxVisibleSelectedDatasets = 5, this.disableDatasetModification = !1, this.hideSelectedDatasets = !1, this.disableColumnMentions = !1, this.isGenerating = !1, this.stoppable = !1, this.value = "", this.retainOnSubmit = !1, this.requireDataset = !1, this.allowImages = !1, this.allowVoiceInput = !1, this.acceptedFileTypes = [], this.apiVersion = "0.1.0", this.fileIcons = {}, this._promptValue = "", this._isPromptValid = !1, this._fieldTriggerOptions = [], this._datasetsFieldConfig = [], this._attachmentError = null, this._isRecording = !1, this._isTranscribing = !1, this._activeFieldRequestId = 0, this._attachmentUploads = /* @__PURE__ */ new Map(), this._pendingAttachmentSync = null, this._attachmentSyncScheduled = !1, this._attachmentErrorClearHandle = 0, this._submitInProgress = !1, this._voiceSessionActive = !1, this._preRecordingValue = "", this._voicePrefix = "", this._voiceSuffix = "", this._streamedTranscript = "", this._transcriptionController = null, this._renderFieldTriggerIcon = (e) => {
|
|
239
|
+
super(...e), this.placeholder = "Type your prompt here...", this.selectedDatasets = [], this.authKey = "", this.authToken = "", this.apiUrl = "https://api.luzmo.com", this.appServer = "https://app.luzmo.com", this.includePublicDatasets = !1, this.disabled = !1, this.singleLine = !1, this.hideDatasetButton = !1, this.hideDatasetIcons = !1, this.maxVisibleSelectedDatasets = 5, this.selectedAgent = null, this.hideAgents = !1, this.disableDatasetModification = !1, this.hideSelectedDatasets = !1, this.disableColumnMentions = !1, this.isGenerating = !1, this.stoppable = !1, this.value = "", this.retainOnSubmit = !1, this.requireDataset = !1, this.allowImages = !1, this.allowVoiceInput = !1, this.acceptedFileTypes = [], this.apiVersion = "0.1.0", this.fileIcons = {}, this._promptValue = "", this._isPromptValid = !1, this._fieldTriggerOptions = [], this._datasetsFieldConfig = [], this._attachmentError = null, this._isRecording = !1, this._isTranscribing = !1, this._activeFieldRequestId = 0, this._attachmentUploads = /* @__PURE__ */ new Map(), this._pendingAttachmentSync = null, this._attachmentSyncScheduled = !1, this._attachmentErrorClearHandle = 0, this._submitInProgress = !1, this._voiceSessionActive = !1, this._preRecordingValue = "", this._voicePrefix = "", this._voiceSuffix = "", this._streamedTranscript = "", this._transcriptionController = null, this._renderFieldTriggerIcon = (e) => {
|
|
240
240
|
let t = e.data?.datasetInfo;
|
|
241
241
|
return e.header && t ? d`
|
|
242
242
|
<span>
|
|
@@ -304,7 +304,10 @@ var K = ":host{box-sizing:border-box;display:block}:host .content-wrapper{flex-d
|
|
|
304
304
|
return this._isRecording || this._isTranscribing;
|
|
305
305
|
}
|
|
306
306
|
get _buttonDisabled() {
|
|
307
|
-
return this.disabled || this.isGenerating || this._voiceBusy || !this._isPromptValid ? !0 : this.requireDataset && this.selectedDatasets.length === 0;
|
|
307
|
+
return this.disabled || this.isGenerating || this._voiceBusy || !this._isPromptValid ? !0 : this.requireDataset && this.selectedDatasets.length === 0 && !this._activeAgent;
|
|
308
|
+
}
|
|
309
|
+
get _activeAgent() {
|
|
310
|
+
return this.hideAgents ? null : this.selectedAgent ?? null;
|
|
308
311
|
}
|
|
309
312
|
get _promptPending() {
|
|
310
313
|
return this.isGenerating || this._isTranscribing;
|
|
@@ -469,6 +472,7 @@ var K = ":host{box-sizing:border-box;display:block}:host .content-wrapper{flex-d
|
|
|
469
472
|
detail: {
|
|
470
473
|
prompt: n,
|
|
471
474
|
selectedDatasets: this.selectedDatasets,
|
|
475
|
+
selectedAgent: this._activeAgent,
|
|
472
476
|
attachments: r,
|
|
473
477
|
attachmentUrls: a
|
|
474
478
|
},
|
|
@@ -488,6 +492,12 @@ var K = ":host{box-sizing:border-box;display:block}:host .content-wrapper{flex-d
|
|
|
488
492
|
let t = e.detail;
|
|
489
493
|
this.selectedDatasets = this.selectedDatasets.filter((e) => e.id !== t.id);
|
|
490
494
|
}
|
|
495
|
+
_handleAgentSelected(e) {
|
|
496
|
+
this.selectedAgent = e.detail;
|
|
497
|
+
}
|
|
498
|
+
_handleAgentRemoved() {
|
|
499
|
+
this.selectedAgent = null;
|
|
500
|
+
}
|
|
491
501
|
_getLocalizedFieldLabel(e) {
|
|
492
502
|
if (e) return typeof e == "string" ? e : o(e, t());
|
|
493
503
|
}
|
|
@@ -690,6 +700,8 @@ var K = ":host{box-sizing:border-box;display:block}:host .content-wrapper{flex-d
|
|
|
690
700
|
<luzmo-dataset-selector-row
|
|
691
701
|
slot="top-actions"
|
|
692
702
|
.selectedDatasets=${this.selectedDatasets}
|
|
703
|
+
.selectedAgent=${this.selectedAgent}
|
|
704
|
+
?hide-agents=${this.hideAgents}
|
|
693
705
|
.maxVisibleSelectedDatasets=${this.maxVisibleSelectedDatasets}
|
|
694
706
|
auth-key=${this.authKey}
|
|
695
707
|
auth-token=${this.authToken}
|
|
@@ -701,6 +713,8 @@ var K = ":host{box-sizing:border-box;display:block}:host .content-wrapper{flex-d
|
|
|
701
713
|
?disable-dataset-modification=${this.disableDatasetModification}
|
|
702
714
|
@dataset-selected=${this._handleDatasetSelected}
|
|
703
715
|
@dataset-removed=${this._handleDatasetRemoved}
|
|
716
|
+
@luzmo-agent-selected=${this._handleAgentSelected}
|
|
717
|
+
@luzmo-agent-removed=${this._handleAgentRemoved}
|
|
704
718
|
></luzmo-dataset-selector-row>
|
|
705
719
|
`}
|
|
706
720
|
${this.allowImages ? d`
|
|
@@ -762,7 +776,11 @@ e([m({ type: String })], Y.prototype, "placeholder", void 0), e([m({ type: Array
|
|
|
762
776
|
reflect: !0,
|
|
763
777
|
useDefault: !0,
|
|
764
778
|
attribute: "max-visible-selected-datasets"
|
|
765
|
-
})], Y.prototype, "maxVisibleSelectedDatasets", void 0), e([m({
|
|
779
|
+
})], Y.prototype, "maxVisibleSelectedDatasets", void 0), e([m({ attribute: !1 })], Y.prototype, "selectedAgent", void 0), e([m({
|
|
780
|
+
type: Boolean,
|
|
781
|
+
reflect: !0,
|
|
782
|
+
attribute: "hide-agents"
|
|
783
|
+
})], Y.prototype, "hideAgents", void 0), e([m({
|
|
766
784
|
type: Boolean,
|
|
767
785
|
attribute: "disable-dataset-modification"
|
|
768
786
|
})], Y.prototype, "disableDatasetModification", void 0), e([m({
|
|
@@ -0,0 +1,99 @@
|
|
|
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("./decorate-DCJt-2rt.cjs"),t=require("./set-locale-v6POkwmC.cjs"),n=require("./data-broker-CyMYR6w1.cjs"),r=require("./calculate-data-field-icon-DenGmW74.cjs"),i=require("./localize-D3i4Epy_.cjs"),a=require("./get-dataset-name-BR_H1MNL.cjs");require("./dataset-icon-BAV0S4sZ.cjs"),require("./dataset-selector-row-B78ZLWQS.cjs");let o=require("@luzmo/icons");require("@luzmo/lucero/icon");let s=require("lit"),c=require("lit/decorators.js"),l=require("@lit/localize");require("@luzmo/lucero/action-button"),require("@luzmo/lucero/prompt-box");let u=require("lit/directives/class-map.js");var d=20,f=[`image/png`,`image/jpeg`,`image/webp`,`image/gif`],p=new Set(f),m={png:`image/png`,jpg:`image/jpeg`,jpeg:`image/jpeg`,webp:`image/webp`,gif:`image/gif`};function h(e){try{return new URL(e).pathname.match(/\.([a-z0-9]+)$/i)?.[1]?.toLowerCase()}catch{return}}function g(e){try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function _(e){return p.has(e.toLowerCase())}function v(e){if(e.type)return _(e.type);let t=e.name.split(`.`).pop()?.toLowerCase();return!!(t&&m[t])}function y(e){if(!g(e))return!1;let t=h(e);return!!(t&&m[t])}function b(e){if(e.length>20)throw Error(`Too many image inputs: received ${e.length}, but the maximum is 20 per request.`);for(let t of e){if(!t.trim())throw Error(`Image input URL must be a non-empty string.`);if(!g(t))throw Error(`Image input URL must be an absolute http(s) URL. Received "${t}".`);let e=h(t);if(e&&!m[e])throw Error(`Unsupported image input URL "${t}". Only PNG, JPEG, WebP, and GIF image URLs are accepted.`)}}function x(e){if(e.length>20)throw Error(`Too many image inputs: received ${e.length}, but the maximum is 20 per request.`);for(let t of e){if(!v(t))throw Error(`Unsupported image attachment "${t.name}" (${t.type||`unknown type`}). Only PNG, JPEG, WebP, and GIF images are accepted.`);if(t.size===0)throw Error(`Image "${t.name}" is empty.`);if(t.size>15728640)throw Error(`Image "${t.name}" is too large. Maximum size is 15 MB.`)}}function S(e,t=`0.1.0`){return`${e.replace(/\/+$/,``)}/${t.replace(/^\/+|\/+$/g,``)}/upload`}function C(e){let{files:t,authKey:n,authToken:r,apiUrl:i,apiVersion:a=`0.1.0`,signal:o,fetchImpl:s=fetch}=e;if(!n||!r)return Promise.reject(Error(`Image upload requires authKey and authToken.`));let c=S(i,a),l=a.replace(/^\/+|\/+$/g,``)||`0.1.0`;return Promise.all(t.map(e=>w(e,{url:c,authKey:n,authToken:r,version:l,signal:o,fetchImpl:s})))}async function w(e,t){let{url:n,authKey:r,authToken:i,version:a,signal:o,fetchImpl:s}=t,c=new FormData;c.append(`key`,r),c.append(`token`,i),c.append(`version`,a),c.append(`action`,`create`),c.append(`properties.type`,`image`),c.append(`file`,e,e.name);let l=await s(n,{method:`POST`,body:c,signal:o,redirect:`error`});if(!l.ok){let t=await T(l);throw Error(`Image upload failed for "${e.name}" (${l.status})${t?`: ${t}`:`.`}`)}let u=await l.json(),d=typeof u?.url==`string`?u.url.trim():``;if(!d)throw Error(`Image upload for "${e.name}" did not return a url.`);return d}async function T(e){try{return(await e.text()).trim().slice(0,200)}catch{return``}}function E(e,t=`0.1.0`){return`${e.replace(/\/+$/,``)}/${t.replace(/^\/+|\/+$/g,``)}/aidictation`}function D(e){let{authKey:t,authToken:n,audioBase64:r,mimeType:i,apiVersion:a=`0.1.0`,stream:o=!0,language:s}=e;return{key:t,token:n,action:`create`,version:a,properties:{audio:r,mimetype:i,stream:o,...s?{language:s}:{}}}}async function O(e){let t=await e.arrayBuffer(),n=new Uint8Array(t),r=32768,i=``;for(let e=0;e<n.length;e+=r){let t=n.subarray(e,e+r);i+=String.fromCharCode(...t)}return btoa(i)}async function k(e){let{audioBlob:t,mimeType:n,authKey:r,authToken:i,apiUrl:a,apiVersion:o=`0.1.0`,language:s,signal:c,onDelta:l,fetchImpl:u=fetch}=e;if(!r||!i)throw Error(`Voice transcription requires authKey and authToken.`);if(!t||t.size===0)throw Error(`Voice transcription requires a non-empty audio recording.`);let d=await O(t),f=E(a,o),p=D({authKey:r,authToken:i,audioBase64:d,mimeType:n||t.type||`audio/webm`,apiVersion:o,stream:!0,language:s}),m=await u(f,{method:`POST`,headers:{"Content-Type":`application/json`},mode:`cors`,redirect:`error`,body:JSON.stringify(p),signal:c});if(!m.ok){let e=await F(m);throw Error(`Voice transcription failed (${m.status})${e?`: ${e}`:`.`}`)}if(!m.body)throw Error(`Voice transcription response body is not readable.`);await N(m.body,e=>{let t=A(e);t&&l(t)})}function A(e){return e.type===`text_delta`&&typeof e.delta==`string`?e.delta:typeof e.text_delta==`string`?e.text_delta:``}var j=/^[a-z]+:/i;function M(e){let t=e.trim();if(!t||t.startsWith(`:`))return null;let n=t;if(n.startsWith(`data:`))n=n.slice(5).trimStart();else if(j.test(n))return null;return!n||n===`[DONE]`?null:JSON.parse(n)}async function N(e,t){let n=e.getReader(),r=new TextDecoder,i=``;try{for(;;){let{done:e,value:a}=await n.read();if(e)break;i+=r.decode(a,{stream:!0});let o=i.split(/\r?\n/);i=o.pop()??``;for(let e of o)P(e,t)}i+=r.decode();let e=i.trim();e&&P(e,t)}finally{n.releaseLock()}}function P(e,t){let n=M(e);n&&t(n)}async function F(e){try{return(await e.text()).trim().slice(0,200)}catch{return``}}var I=`:host{box-sizing:border-box;display:block}:host .content-wrapper{flex-direction:column;display:flex}:host .content-wrapper.single-line{align-items:stretch}:host .content-wrapper.disabled{opacity:var(--luzmo-ai-interaction-textarea-disabled-opacity,var(--ai-interaction-textarea-disabled-opacity));pointer-events:none;cursor:not-allowed}:host .content-wrapper.disabled *{pointer-events:none}:host luzmo-prompt-box{--luzmo-prompt-box-attachments-gap:var(--luzmo-spacing-3,8px);--luzmo-prompt-box-border-radius:var(--ai-interaction-textarea-prompt-box-border-radius);inline-size:100%}:host .attachment-error{color:var(--luzmo-negative-color,#ca221c);font-size:var(--luzmo-font-size-s,12px);margin-block-start:var(--luzmo-spacing-2,4px);line-height:1.4}:host{--ai-interaction-textarea-disabled-opacity:.6;--ai-interaction-textarea-prompt-box-border-radius:var(--luzmo-prompt-box-border-radius,var(--luzmo-border-radius-l,8px))}`,L=3e3,R=6e4,z=class extends s.LitElement{constructor(...e){super(...e),this.placeholder=`Type your prompt here...`,this.selectedDatasets=[],this.authKey=``,this.authToken=``,this.apiUrl=`https://api.luzmo.com`,this.appServer=`https://app.luzmo.com`,this.includePublicDatasets=!1,this.disabled=!1,this.singleLine=!1,this.hideDatasetButton=!1,this.hideDatasetIcons=!1,this.maxVisibleSelectedDatasets=5,this.selectedAgent=null,this.hideAgents=!1,this.disableDatasetModification=!1,this.hideSelectedDatasets=!1,this.disableColumnMentions=!1,this.isGenerating=!1,this.stoppable=!1,this.value=``,this.retainOnSubmit=!1,this.requireDataset=!1,this.allowImages=!1,this.allowVoiceInput=!1,this.acceptedFileTypes=[],this.apiVersion=`0.1.0`,this.fileIcons={},this._promptValue=``,this._isPromptValid=!1,this._fieldTriggerOptions=[],this._datasetsFieldConfig=[],this._attachmentError=null,this._isRecording=!1,this._isTranscribing=!1,this._activeFieldRequestId=0,this._attachmentUploads=new Map,this._pendingAttachmentSync=null,this._attachmentSyncScheduled=!1,this._attachmentErrorClearHandle=0,this._submitInProgress=!1,this._voiceSessionActive=!1,this._preRecordingValue=``,this._voicePrefix=``,this._voiceSuffix=``,this._streamedTranscript=``,this._transcriptionController=null,this._renderFieldTriggerIcon=e=>{let t=e.data?.datasetInfo;return e.header&&t?s.html`
|
|
21
|
+
<span>
|
|
22
|
+
${this.hideDatasetIcons?s.html`<luzmo-icon .icon=${o.luzmoPlugin} size="s"></luzmo-icon>`:s.html`
|
|
23
|
+
<luzmo-dataset-icon
|
|
24
|
+
.datasetInfo=${t}
|
|
25
|
+
size="16px"
|
|
26
|
+
app-url=${this.appServer}
|
|
27
|
+
></luzmo-dataset-icon>
|
|
28
|
+
`}
|
|
29
|
+
</span>
|
|
30
|
+
`:e.icon?s.html`
|
|
31
|
+
<span>
|
|
32
|
+
<luzmo-icon .icon=${e.icon} size="s"></luzmo-icon>
|
|
33
|
+
</span>
|
|
34
|
+
`:s.nothing},this._handleAttachClick=()=>{this.openFilePicker()},this._handleAttachmentsChange=e=>{this._pendingAttachmentSync=e.detail?.attachments??this.getAttachments(),!this._attachmentSyncScheduled&&(this._attachmentSyncScheduled=!0,queueMicrotask(()=>{if(this._attachmentSyncScheduled=!1,!this.isConnected){this._pendingAttachmentSync=null;return}let e=this._pendingAttachmentSync??this.getAttachments();this._pendingAttachmentSync=null,this._syncAttachments(e)}))},this._handleVoiceKeydown=e=>{e.key===`Escape`&&this._isTranscribing&&(e.preventDefault(),e.stopPropagation(),this._cancelVoiceSession())},this._handleRecord=e=>{if(e.stopPropagation(),e.detail?.isRecording){this._captureVoiceInsertPoint(),this._isRecording=!0,this._isTranscribing=!1;return}this._isRecording=!1},this._handleRecordCancel=e=>{e.stopPropagation(),this._cancelVoiceSession()},this._handleRecordError=e=>{e.stopPropagation(),this._abortTranscription(),this._resetVoiceSessionState();let t=e.detail?.error?.trim()||(0,l.msg)(`Voice recording failed`,{desc:`Error when microphone recording fails in the AI prompt`});this._showAttachmentError(t)},this._handleRecordingComplete=e=>{e.stopPropagation();let{audioBlob:t,mimeType:n}=e.detail??{};if(!t){this._resetVoiceSessionState();return}this._transcribeRecording(t,n||t.type||`audio/webm`)}}static{this.styles=(0,s.unsafeCSS)(I)}static{this.tagName=`luzmo-ai-interaction-textarea`}get flagOpendata(){return this.includePublicDatasets}set flagOpendata(e){this.includePublicDatasets=e}get _voiceBusy(){return this._isRecording||this._isTranscribing}get _buttonDisabled(){return this.disabled||this.isGenerating||this._voiceBusy||!this._isPromptValid?!0:this.requireDataset&&this.selectedDatasets.length===0&&!this._activeAgent}get _activeAgent(){return this.hideAgents?null:this.selectedAgent??null}get _promptPending(){return this.isGenerating||this._isTranscribing}get _promptReadonly(){return this._voiceBusy}get _actionsDisabled(){return this.disabled||this.isGenerating||this._voiceBusy}get _fieldTriggers(){return this.disableColumnMentions?[]:[{key:`@`,options:this._fieldTriggerOptions,highlightSearch:!0,iconTemplate:this._renderFieldTriggerIcon}]}connectedCallback(){super.connectedCallback(),this._configureBroker(),this._refreshDatasetsFieldConfig(),this.addEventListener(`keydown`,this._handleVoiceKeydown)}disconnectedCallback(){window.clearTimeout(this._attachmentErrorClearHandle),this._abortAllAttachmentUploads(),this._abortTranscription(),this.removeEventListener(`keydown`,this._handleVoiceKeydown),super.disconnectedCallback()}_configureBroker(){n.t.configure({authKey:this.authKey,authToken:this.authToken,apiUrl:this.apiUrl})}_handlePromptInput(e){let t=e.target.value??``;this._promptValue=t,this._isPromptValid=t.trim().length>0}openFilePicker(){this._promptBox?.openFilePicker()}addFiles(e){return this._promptBox?.addFiles(e)??[]}removeAttachment(e){this._cleanupAttachmentUpload(e),this._promptBox?.removeAttachment(e)}setAttachmentLoading(e,t){this._promptBox?.setAttachmentLoading(e,t)}clearAttachments(){this._abortAllAttachmentUploads(),this._promptBox?.clearAttachments()}getAttachments(){return this._promptBox?.getAttachments()??[]}getAttachmentUrls(e=this.getAttachments()){return e.map(e=>this._attachmentUploads.get(e.id)?.url).filter(e=>typeof e==`string`&&e.length>0)}_showAttachmentError(e){this._attachmentError=e,window.clearTimeout(this._attachmentErrorClearHandle),this._attachmentErrorClearHandle=window.setTimeout(()=>{this._attachmentError=null},L)}_cleanupAttachmentUpload(e){this._attachmentUploads.get(e)?.controller?.abort(),this._attachmentUploads.delete(e)}_abortAllAttachmentUploads(){for(let e of this._attachmentUploads.values())e.controller?.abort();this._attachmentUploads.clear()}async _uploadSingleFile(e,t){let n=``;if(typeof this.uploadAttachments==`function`){let r=await this.uploadAttachments([e],{signal:t});n=Array.isArray(r)?r[0]?.trim()??``:``}else{if(!this.authKey||!this.authToken)throw Error(`Image upload requires authKey and authToken.`);let[r]=await C({files:[e],authKey:this.authKey,authToken:this.authToken,apiUrl:this.apiUrl,apiVersion:this.apiVersion,signal:t});n=r?.trim()??``}if(!n)throw Error(`Image upload for "${e.name}" did not return a url.`);return b([n]),n}_startAttachmentUpload(e){let{id:t,file:n}=e;if(!n){this.removeAttachment(t);return}if(!v(n)){this.removeAttachment(t),this._showAttachmentError((0,l.msg)(`Only PNG, JPEG, WebP, and GIF images can be attached.`,{desc:`Error when the user attaches an unsupported image type to the AI prompt`}));return}if(n.size===0){this.removeAttachment(t),this._showAttachmentError((0,l.msg)(`Failed to attach image`,{desc:`Error when an AI prompt image upload fails`}));return}if(n.size>15728640){this.removeAttachment(t),this._showAttachmentError((0,l.msg)(`Image is too large. Maximum size is 15 MB.`,{desc:`Error when an attached AI prompt image exceeds the 15 MB upload limit`}));return}this.setAttachmentLoading(t,!0);let r=new AbortController,i={controller:r};this._attachmentUploads.set(t,i);let a=window.setTimeout(()=>r.abort(),R),o=()=>{this.removeAttachment(t),this._showAttachmentError((0,l.msg)(`Failed to attach image`,{desc:`Error when an AI prompt image upload fails`}))};i.promise=(async()=>{try{let e=await this._uploadSingleFile(n,r.signal);window.clearTimeout(a);let i=this._attachmentUploads.get(t);if(!i||i.controller!==r)return;i.url=e,i.controller=void 0,i.promise=void 0,this.setAttachmentLoading(t,!1)}catch(e){if(window.clearTimeout(a),r.signal.aborted||e?.name===`AbortError`){this._attachmentUploads.get(t)?.controller===r&&o();return}o()}})()}_syncAttachments(e){let t=new Set(e.map(e=>e.id));for(let e of Array.from(this._attachmentUploads.keys()))t.has(e)||this._cleanupAttachmentUpload(e);let n=!1;for(let t of e)if(!this._attachmentUploads.has(t.id)){if(this._attachmentUploads.size>=20){n=!0,this._promptBox?.removeAttachment(t.id);continue}this._startAttachmentUpload(t)}n&&this._showAttachmentError((0,l.msg)(l.str`You can attach up to ${20} images.`,{desc:`Error when the user tries to attach more images than the AI prompt allows`}))}async _waitForAttachmentUploads(e){let t=e.map(e=>this._attachmentUploads.get(e.id)?.promise).filter(e=>!!e);t.length!==0&&await Promise.all(t)}async _submitPrompt(e=this._promptValue,t=[]){if(this._promptValue=e,this._isPromptValid=e.trim().length>0,!(this._buttonDisabled||this._submitInProgress)){this._submitInProgress=!0;try{let n=e.trim(),r=t.length>0?[...t]:this.getAttachments(),i=r.filter(e=>!!e.file&&v(e.file));await this._waitForAttachmentUploads(i);let a=[];for(let e of i){let t=this._attachmentUploads.get(e.id)?.url;if(!t){this._showAttachmentError((0,l.msg)(`Failed to attach image`,{desc:`Error when an AI prompt image upload fails`}));return}a.push(t)}this.retainOnSubmit||(this._promptValue=``,this._isPromptValid=!1,this._abortAllAttachmentUploads(),this._promptBox?.clear()),this.dispatchEvent(new CustomEvent(`prompt-submitted`,{detail:{prompt:n,selectedDatasets:this.selectedDatasets,selectedAgent:this._activeAgent,attachments:r,attachmentUrls:a},bubbles:!0,composed:!0}))}finally{this._submitInProgress=!1}}}_handleDatasetSelected(e){let t=e.detail;this.selectedDatasets.some(e=>e.id===t.id)||(this.selectedDatasets=[...this.selectedDatasets,t])}_handleDatasetRemoved(e){let t=e.detail;this.selectedDatasets=this.selectedDatasets.filter(e=>e.id!==t.id)}_handleAgentSelected(e){this.selectedAgent=e.detail}_handleAgentRemoved(){this.selectedAgent=null}_getLocalizedFieldLabel(e){if(e)return typeof e==`string`?e:i.t(e,t.t())}_mapColumnToTriggerOption(e,t){return t.id?{label:this._getLocalizedFieldLabel(t.name)||t.id,value:`${e}:column:${t.id}`,icon:r.t(t,`s`),elementType:`data-field`,data:{datasetId:e,columnId:t.id,type:t.type,subtype:t.subtype}}:null}_mapFormulaToTriggerOption(e,t){return t.id?{label:this._getLocalizedFieldLabel(t.name)||t.id,value:`${e}:formula:${t.id}`,icon:r.r.formula[r.i(`s`)],elementType:`data-field`,data:{datasetId:e,formulaId:t.id,type:t.type,subtype:t.subtype}}:null}_updateFieldTriggerOptionsFromConfig(){let e=new Map(this._datasetsFieldConfig.map(e=>[e.id,e])),t=[];for(let n of this.selectedDatasets){let r=e.get(n.id),i=[],o=r?.columns?.filter(e=>!e.hidden)??[];for(let e of o){let t=this._mapColumnToTriggerOption(n.id,e);t&&i.push(t)}let s=r?.formulas?.filter(e=>!e.hidden)??[];for(let e of s){let t=this._mapFormulaToTriggerOption(n.id,e);t&&i.push(t)}i.length!==0&&(t.push({label:a.t(n),value:`dataset-header:${n.id}`,header:!0,data:{datasetInfo:n}}),t.push(...i))}this._fieldTriggerOptions=t}async _refreshDatasetsFieldConfig(){if(this.disableColumnMentions){this._datasetsFieldConfig=[],this._fieldTriggerOptions=[];return}let e=[...new Set(this.selectedDatasets.map(e=>e.id).filter(Boolean))];if(e.length===0){this._datasetsFieldConfig=[],this._fieldTriggerOptions=[];return}let t=++this._activeFieldRequestId;this._updateFieldTriggerOptionsFromConfig();try{let r=await n.t.fetchDatasetsWithColumnsAndFormulas(e);if(t!==this._activeFieldRequestId)return;this._datasetsFieldConfig=r,this._updateFieldTriggerOptionsFromConfig()}catch(e){console.error(`Error loading dataset fields for prompt triggers:`,e),t===this._activeFieldRequestId&&(this._datasetsFieldConfig=[],this._updateFieldTriggerOptionsFromConfig())}}_handlePromptSubmit(e){this._submitPrompt(e.detail?.value??this._promptValue,e.detail?.attachments??[])}_handlePromptStop(e){if(e.stopPropagation(),this._isTranscribing){this._cancelVoiceSession();return}this.dispatchEvent(new CustomEvent(`prompt-stopped`,{bubbles:!0,composed:!0}))}_getCaretTextOffset(){let e=this._promptBox?.shadowRoot;if(!e)return this._promptValue.length;let t=e.querySelector(`.rich-input`)??e.querySelector(`luzmo-text-field`);if(!t)return this._promptValue.length;let n=e.getSelection?.()??document.getSelection();if(!n||n.rangeCount===0)return this._promptValue.length;let r=n.getRangeAt(0);if(!t.contains(r.startContainer))return this._promptValue.length;let i=r.cloneRange();return i.selectNodeContents(t),i.setEnd(r.startContainer,r.startOffset),i.toString().length}_setPromptText(e){this._promptValue=e,this._isPromptValid=e.trim().length>0,this._syncControlledValueToPromptBox()}_captureVoiceInsertPoint(){let e=Math.min(Math.max(this._getCaretTextOffset(),0),this._promptValue.length);this._preRecordingValue=this._promptValue,this._voicePrefix=this._promptValue.slice(0,e),this._voiceSuffix=this._promptValue.slice(e),this._streamedTranscript=``,this._voiceSessionActive=!0}_applyStreamedTranscript(){this._setPromptText(`${this._voicePrefix}${this._streamedTranscript}${this._voiceSuffix}`)}_resetVoiceSessionState(){this._isRecording=!1,this._isTranscribing=!1,this._streamedTranscript=``,this._voicePrefix=``,this._voiceSuffix=``,this._preRecordingValue=``,this._voiceSessionActive=!1}_abortTranscription(){this._transcriptionController?.abort(),this._transcriptionController=null}_cancelVoiceSession(){if(!this._voiceSessionActive){this._abortTranscription(),this._resetVoiceSessionState();return}let e=this._preRecordingValue;this._abortTranscription(),this._resetVoiceSessionState(),this._setPromptText(e)}async _transcribeRecording(e,t){this._abortTranscription();let n=new AbortController;this._transcriptionController=n,this._isRecording=!1,this._isTranscribing=!0,this._streamedTranscript=``;try{if(await k({audioBlob:e,mimeType:t,authKey:this.authKey,authToken:this.authToken,apiUrl:this.apiUrl,apiVersion:this.apiVersion,signal:n.signal,onDelta:e=>{n.signal.aborted||(this._streamedTranscript+=e,this._applyStreamedTranscript())}}),n.signal.aborted)return;this._resetVoiceSessionState()}catch(e){if(n.signal.aborted)return;console.error(`Voice transcription failed:`,e),this._setPromptText(this._preRecordingValue),this._resetVoiceSessionState(),this._showAttachmentError((0,l.msg)(`Failed to transcribe audio`,{desc:`Error when AI prompt voice transcription fails`}))}finally{this._transcriptionController===n&&(this._transcriptionController=null)}}_syncControlledValueToPromptBox(){let e=this._promptBox;if(!e?.allowElements){e&&(e.value=this._promptValue);return}e.segments=this._promptValue?[{type:`text`,value:this._promptValue}]:[]}willUpdate(e){e.has(`value`)&&(this._promptValue=this.value,this._isPromptValid=this.value.trim().length>0);let t=e.has(`authKey`)||e.has(`authToken`)||e.has(`apiUrl`);t&&this._configureBroker(),(t||e.has(`selectedDatasets`)||e.has(`disableColumnMentions`))&&this._refreshDatasetsFieldConfig()}updated(e){super.updated(e),e.has(`value`)&&this._syncControlledValueToPromptBox()}render(){return s.html`
|
|
35
|
+
<div class=${(0,u.classMap)({"content-wrapper":!0,disabled:this.disabled,"single-line":this.singleLine})} aria-busy=${this.isGenerating||this._voiceBusy?`true`:`false`}>
|
|
36
|
+
<luzmo-prompt-box
|
|
37
|
+
?single-line=${this.singleLine}
|
|
38
|
+
?pending=${this._promptPending}
|
|
39
|
+
?stoppable=${this.stoppable&&this.isGenerating||this._isTranscribing}
|
|
40
|
+
?disabled=${this.disabled}
|
|
41
|
+
?readonly=${this._promptReadonly}
|
|
42
|
+
?disable-submit=${this._buttonDisabled}
|
|
43
|
+
?allow-images=${this.allowImages}
|
|
44
|
+
?recording=${this.allowVoiceInput}
|
|
45
|
+
.acceptedFileTypes=${this.acceptedFileTypes}
|
|
46
|
+
.fileIcons=${this.fileIcons}
|
|
47
|
+
grows
|
|
48
|
+
allow-elements
|
|
49
|
+
.placeholder=${this.placeholder}
|
|
50
|
+
.value=${this._promptValue}
|
|
51
|
+
.triggers=${this._fieldTriggers}
|
|
52
|
+
@input=${this._handlePromptInput}
|
|
53
|
+
@luzmo-submit=${this._handlePromptSubmit}
|
|
54
|
+
@luzmo-stop=${this._handlePromptStop}
|
|
55
|
+
@luzmo-attachments-change=${this._handleAttachmentsChange}
|
|
56
|
+
@luzmo-record=${this._handleRecord}
|
|
57
|
+
@luzmo-recording-complete=${this._handleRecordingComplete}
|
|
58
|
+
@luzmo-record-cancel=${this._handleRecordCancel}
|
|
59
|
+
@luzmo-record-error=${this._handleRecordError}
|
|
60
|
+
>
|
|
61
|
+
${this.hideSelectedDatasets||this.hideDatasetButton?``:s.html`
|
|
62
|
+
<luzmo-dataset-selector-row
|
|
63
|
+
slot="top-actions"
|
|
64
|
+
.selectedDatasets=${this.selectedDatasets}
|
|
65
|
+
.selectedAgent=${this.selectedAgent}
|
|
66
|
+
?hide-agents=${this.hideAgents}
|
|
67
|
+
.maxVisibleSelectedDatasets=${this.maxVisibleSelectedDatasets}
|
|
68
|
+
auth-key=${this.authKey}
|
|
69
|
+
auth-token=${this.authToken}
|
|
70
|
+
api-url=${this.apiUrl}
|
|
71
|
+
app-server=${this.appServer}
|
|
72
|
+
?include-public-datasets=${this.includePublicDatasets}
|
|
73
|
+
?hide-dataset-icons=${this.hideDatasetIcons}
|
|
74
|
+
?disabled=${this._actionsDisabled}
|
|
75
|
+
?disable-dataset-modification=${this.disableDatasetModification}
|
|
76
|
+
@dataset-selected=${this._handleDatasetSelected}
|
|
77
|
+
@dataset-removed=${this._handleDatasetRemoved}
|
|
78
|
+
@luzmo-agent-selected=${this._handleAgentSelected}
|
|
79
|
+
@luzmo-agent-removed=${this._handleAgentRemoved}
|
|
80
|
+
></luzmo-dataset-selector-row>
|
|
81
|
+
`}
|
|
82
|
+
${this.allowImages?s.html`
|
|
83
|
+
<luzmo-action-button
|
|
84
|
+
slot="bottom-actions"
|
|
85
|
+
size="m"
|
|
86
|
+
quiet
|
|
87
|
+
?disabled=${this._actionsDisabled}
|
|
88
|
+
label=${(0,l.msg)(`Add attachments`,{desc:`Accessible label for the AI prompt attachment button`})}
|
|
89
|
+
@click=${this._handleAttachClick}
|
|
90
|
+
>
|
|
91
|
+
<luzmo-icon slot="icon" size="m" .icon=${o.luzmoPaperclip}></luzmo-icon>
|
|
92
|
+
</luzmo-action-button>
|
|
93
|
+
`:s.nothing}
|
|
94
|
+
</luzmo-prompt-box>
|
|
95
|
+
${this._attachmentError?s.html`
|
|
96
|
+
<div class="attachment-error" role="alert">${this._attachmentError}</div>
|
|
97
|
+
`:s.nothing}
|
|
98
|
+
</div>
|
|
99
|
+
`}};e.t([(0,c.property)({type:String})],z.prototype,`placeholder`,void 0),e.t([(0,c.property)({type:Array})],z.prototype,`selectedDatasets`,void 0),e.t([(0,c.property)({type:String,attribute:`auth-key`})],z.prototype,`authKey`,void 0),e.t([(0,c.property)({type:String,attribute:`auth-token`})],z.prototype,`authToken`,void 0),e.t([(0,c.property)({type:String,attribute:`api-url`})],z.prototype,`apiUrl`,void 0),e.t([(0,c.property)({type:String,attribute:`app-server`})],z.prototype,`appServer`,void 0),e.t([(0,c.property)({type:Boolean,reflect:!0,attribute:`include-public-datasets`})],z.prototype,`includePublicDatasets`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`flag-opendata`})],z.prototype,`flagOpendata`,null),e.t([(0,c.property)({type:Boolean,reflect:!0,attribute:`disabled`})],z.prototype,`disabled`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`single-line`})],z.prototype,`singleLine`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`hide-dataset-button`})],z.prototype,`hideDatasetButton`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`hide-dataset-icons`})],z.prototype,`hideDatasetIcons`,void 0),e.t([(0,c.property)({type:Number,reflect:!0,useDefault:!0,attribute:`max-visible-selected-datasets`})],z.prototype,`maxVisibleSelectedDatasets`,void 0),e.t([(0,c.property)({attribute:!1})],z.prototype,`selectedAgent`,void 0),e.t([(0,c.property)({type:Boolean,reflect:!0,attribute:`hide-agents`})],z.prototype,`hideAgents`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`disable-dataset-modification`})],z.prototype,`disableDatasetModification`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`hide-selected-datasets`})],z.prototype,`hideSelectedDatasets`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`disable-column-mentions`})],z.prototype,`disableColumnMentions`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`is-generating`})],z.prototype,`isGenerating`,void 0),e.t([(0,c.property)({type:Boolean,reflect:!0})],z.prototype,`stoppable`,void 0),e.t([(0,c.property)({type:String})],z.prototype,`value`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`retain-on-submit`})],z.prototype,`retainOnSubmit`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`require-dataset`})],z.prototype,`requireDataset`,void 0),e.t([(0,c.property)({type:Boolean,reflect:!0,attribute:`allow-images`})],z.prototype,`allowImages`,void 0),e.t([(0,c.property)({type:Boolean,reflect:!0,attribute:`allow-voice-input`})],z.prototype,`allowVoiceInput`,void 0),e.t([(0,c.property)({type:Array,attribute:`accepted-file-types`})],z.prototype,`acceptedFileTypes`,void 0),e.t([(0,c.property)({type:String,attribute:`api-version`})],z.prototype,`apiVersion`,void 0),e.t([(0,c.property)({attribute:!1})],z.prototype,`uploadAttachments`,void 0),e.t([(0,c.property)({attribute:!1})],z.prototype,`fileIcons`,void 0),e.t([(0,c.state)()],z.prototype,`_promptValue`,void 0),e.t([(0,c.state)()],z.prototype,`_isPromptValid`,void 0),e.t([(0,c.state)()],z.prototype,`_fieldTriggerOptions`,void 0),e.t([(0,c.state)()],z.prototype,`_datasetsFieldConfig`,void 0),e.t([(0,c.state)()],z.prototype,`_attachmentError`,void 0),e.t([(0,c.state)()],z.prototype,`_isRecording`,void 0),e.t([(0,c.state)()],z.prototype,`_isTranscribing`,void 0),e.t([(0,c.query)(`luzmo-prompt-box`)],z.prototype,`_promptBox`,void 0),z=e.t([(0,l.localized)()],z),customElements.get(`luzmo-ai-interaction-textarea`)||customElements.define(`luzmo-ai-interaction-textarea`,z),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return x}});
|
package/components/{area-chart-options.config-HaYA8gPC.js → area-chart-options.config-B94ERc30.js}
RENAMED
|
@@ -22,8 +22,9 @@ import { a as t, c as n, t as r, u as i } from "./helpers-irnB2xbq.js";
|
|
|
22
22
|
import { t as a } from "./axis-options.config-BCP0Z8VI.js";
|
|
23
23
|
import { r as o, t as s } from "./guidelines-options.config-DyedEeX2.js";
|
|
24
24
|
import { t as c } from "./info-tooltip-options.config-BmSMkirf.js";
|
|
25
|
+
import { t as l } from "./interactivity-options.config-BjEGNaIz.js";
|
|
25
26
|
//#region node_modules/@luzmo/dashboard-contents-types/area-chart/area-chart-options.config.js
|
|
26
|
-
var
|
|
27
|
+
var u = /* @__PURE__ */ e({ default: () => f }), d = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? (e?.find((e) => e?.name === "legend")?.content?.length ?? 0) > 0 || (e?.find((e) => e?.name === "measure")?.content?.length ?? 0) > 1 : !1, f = [
|
|
27
28
|
{
|
|
28
29
|
key: "general",
|
|
29
30
|
type: "group",
|
|
@@ -51,7 +52,7 @@ var l = /* @__PURE__ */ e({ default: () => d }), u = ({ slots: e }) => Array.isA
|
|
|
51
52
|
"stream"
|
|
52
53
|
]
|
|
53
54
|
},
|
|
54
|
-
visibleIf:
|
|
55
|
+
visibleIf: d
|
|
55
56
|
},
|
|
56
57
|
{
|
|
57
58
|
key: "interpolation",
|
|
@@ -74,7 +75,7 @@ var l = /* @__PURE__ */ e({ default: () => d }), u = ({ slots: e }) => Array.isA
|
|
|
74
75
|
type: "switch",
|
|
75
76
|
default: !0
|
|
76
77
|
},
|
|
77
|
-
visibleIf:
|
|
78
|
+
visibleIf: d
|
|
78
79
|
},
|
|
79
80
|
{
|
|
80
81
|
key: "display.modeOption",
|
|
@@ -83,7 +84,7 @@ var l = /* @__PURE__ */ e({ default: () => d }), u = ({ slots: e }) => Array.isA
|
|
|
83
84
|
type: "switch",
|
|
84
85
|
default: !0
|
|
85
86
|
},
|
|
86
|
-
visibleIf:
|
|
87
|
+
visibleIf: d
|
|
87
88
|
},
|
|
88
89
|
{
|
|
89
90
|
key: "missingValue.type",
|
|
@@ -187,10 +188,14 @@ var l = /* @__PURE__ */ e({ default: () => d }), u = ({ slots: e }) => Array.isA
|
|
|
187
188
|
visibleIf: ({ options: e }) => e?.legend?.customOrder === !0
|
|
188
189
|
}
|
|
189
190
|
],
|
|
190
|
-
visibleIf:
|
|
191
|
+
visibleIf: d
|
|
191
192
|
},
|
|
192
193
|
o(s),
|
|
193
|
-
c()
|
|
194
|
+
c(),
|
|
195
|
+
l({ brush: {
|
|
196
|
+
default: !0,
|
|
197
|
+
excludesClickActions: !0
|
|
198
|
+
} })
|
|
194
199
|
];
|
|
195
200
|
//#endregion
|
|
196
|
-
export {
|
|
201
|
+
export { f as n, u as t };
|
|
@@ -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
|
+
const e=require("./rolldown-runtime-mLOUI7ql.cjs"),t=require("./helpers-B2IWxa9q.cjs"),n=require("./axis-options.config-s-Js3ug-.cjs"),r=require("./guidelines-options.config-D-ZuReR_.cjs"),i=require("./info-tooltip-options.config-B9T0cwSM.cjs"),a=require("./interactivity-options.config-Bzk2L-qh.cjs");var o=e.n({default:()=>c}),s=({slots:e})=>Array.isArray(e)&&e?.length>0?(e?.find(e=>e?.name===`legend`)?.content?.length??0)>0||(e?.find(e=>e?.name===`measure`)?.content?.length??0)>1:!1,c=[{key:`general`,type:`group`,open:!0,children:[{key:`display.title`,control:{label:`Title`,type:`switch`,default:!0}},{type:`divider`},{key:`mode`,control:{label:`Mode`,type:`picker`,default:`stacked`,enum:[`100`,`unstacked`,`stacked`,`stream`]},visibleIf:s},{key:`interpolation`,control:{label:`Interpolation`,type:`picker`,default:`linear`,enum:[`linear`,`step-before`,`step-after`,`monotone`]}},{key:`display.legend`,control:{label:`Legend`,type:`switch`,default:!0},visibleIf:s},{key:`display.modeOption`,control:{label:`Mode option`,type:`switch`,default:!0},visibleIf:s},{key:`missingValue.type`,control:{label:`Fill missing values`,type:`picker`,default:`no`,enum:[`no`,`break`,`manual`]},visibleIf:({slots:e})=>Array.isArray(e)&&e?.find(e=>e?.name===`x-axis`)?.content?.[0]?.type===`datetime`},{key:`missingValue.value`,control:{label:`Value`,type:`number-field`,default:0,min:1},visibleIf:({options:e,slots:t})=>Array.isArray(t)&&t?.find(e=>e?.name===`x-axis`)?.content?.[0]?.type===`datetime`&&e?.missingValue?.type===`manual`},{key:`color`,control:{label:`Area color`,type:`color-picker`,default:({theme:e})=>t.u(e),extraLabel:({options:e,theme:n})=>t.a(e,n,`color`),extraLabelHasClickAction:({options:e,theme:n})=>t.t(e,n,`color`),extraLabelClickAction:({options:e,theme:n})=>t.c(e,n,`color`)},visibleIf:({slots:e})=>Array.isArray(e)&&e?.length>0?!((e?.find(e=>e?.name===`legend`)?.content?.length??0)>0)&&(e?.find(e=>e?.name===`measure`)?.content?.length??0)<=1:!0}]},n.t([{axis:`x`,role:`category`,color:!0,label:!0,tickMode:!0,gridlines:!0,datetimeTickStyle:!0},{axis:`y`,role:`measure`,scale:!0,manualRange:{key:`axis.y.manualAxesRange`,discriminatorKey:`axis.y.type`},color:!0,label:!0,tickDensity:!0,tickMode:!0,gridlines:!0}]),{key:`legend`,type:`group`,open:!1,children:[{key:`legend.position`,control:{label:`Position`,type:`position-picker`,default:`topRight`,enum:[`topLeft`,`top`,`topRight`,`right`,`bottomRight`,`bottom`,`bottomLeft`,`left`]}},{key:`legend.customOrder`,control:{label:`Custom order`,description:`Drag items in the chart legend to set the order.`,type:`switch`,default:!1}},{key:`interactivity.legendReorder`,control:{label:`Allow viewers to reorder`,type:`switch`,default:!1},visibleIf:({options:e})=>e?.legend?.customOrder===!0}],visibleIf:s},r.r(r.t),i.t(),a.t({brush:{default:!0,excludesClickActions:!0}})];Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
const e=require("./item-slot-drop-panel-
|
|
20
|
+
const e=require("./item-slot-drop-panel-CKXMQCyt.cjs");var t={grid:{columns:2,rows:2,columnSizes:[`1fr`,e.n],rowSizes:[`1fr`,e.n],gap:`0`},slots:{measure:{column:1,row:1,align:`center`,justify:`center`,rotate:!1},"x-axis":{column:1,row:2,align:`center`,justify:`center`,rotate:!1},legend:{column:2,row:1,align:`center`,justify:`center`,rotate:!0}}};exports.areaChartPositioningConfig=t;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { n as e } from "./item-slot-drop-panel-
|
|
20
|
+
import { n as e } from "./item-slot-drop-panel-BtrZehGL.js";
|
|
21
21
|
//#region node_modules/@luzmo/dashboard-contents-types/area-chart/area-chart-positioning.config.js
|
|
22
22
|
var t = {
|
|
23
23
|
grid: {
|
package/components/{bar-chart-options.config--F0KfZ5y.js → bar-chart-options.config-B1C3t6uk.js}
RENAMED
|
@@ -22,8 +22,9 @@ import { a as t, c as n, t as r, u as i } from "./helpers-irnB2xbq.js";
|
|
|
22
22
|
import { t as a } from "./axis-options.config-BCP0Z8VI.js";
|
|
23
23
|
import { r as o, t as s } from "./guidelines-options.config-DyedEeX2.js";
|
|
24
24
|
import { t as c } from "./info-tooltip-options.config-BmSMkirf.js";
|
|
25
|
+
import { t as l } from "./interactivity-options.config-BjEGNaIz.js";
|
|
25
26
|
//#region node_modules/@luzmo/dashboard-contents-types/bar-chart/bar-chart-options.config.js
|
|
26
|
-
var
|
|
27
|
+
var u = /* @__PURE__ */ e({ default: () => p }), d = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? (e?.find((e) => e?.name === "legend")?.content?.length ?? 0) > 0 || (e?.find((e) => e?.name === "measure")?.content?.length ?? 0) > 1 : !1, f = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? (e?.find((e) => e?.name === "legend")?.content?.length ?? 0) === 0 && (e?.find((e) => e?.name === "measure")?.content?.length ?? 0) <= 1 : !0, p = [
|
|
27
28
|
{
|
|
28
29
|
key: "general",
|
|
29
30
|
type: "group",
|
|
@@ -40,11 +41,11 @@ var l = /* @__PURE__ */ e({ default: () => f }), u = ({ slots: e }) => Array.isA
|
|
|
40
41
|
"100"
|
|
41
42
|
]
|
|
42
43
|
},
|
|
43
|
-
visibleIf:
|
|
44
|
+
visibleIf: d
|
|
44
45
|
},
|
|
45
46
|
{
|
|
46
47
|
type: "divider",
|
|
47
|
-
visibleIf:
|
|
48
|
+
visibleIf: d
|
|
48
49
|
},
|
|
49
50
|
{
|
|
50
51
|
key: "display.title",
|
|
@@ -59,7 +60,7 @@ var l = /* @__PURE__ */ e({ default: () => f }), u = ({ slots: e }) => Array.isA
|
|
|
59
60
|
type: "switch",
|
|
60
61
|
default: !0
|
|
61
62
|
},
|
|
62
|
-
visibleIf:
|
|
63
|
+
visibleIf: d
|
|
63
64
|
},
|
|
64
65
|
{
|
|
65
66
|
key: "display.modeOption",
|
|
@@ -67,7 +68,7 @@ var l = /* @__PURE__ */ e({ default: () => f }), u = ({ slots: e }) => Array.isA
|
|
|
67
68
|
type: "switch",
|
|
68
69
|
default: !1
|
|
69
70
|
},
|
|
70
|
-
visibleIf:
|
|
71
|
+
visibleIf: d
|
|
71
72
|
},
|
|
72
73
|
{
|
|
73
74
|
key: "bars.label",
|
|
@@ -90,7 +91,7 @@ var l = /* @__PURE__ */ e({ default: () => f }), u = ({ slots: e }) => Array.isA
|
|
|
90
91
|
type: "switch",
|
|
91
92
|
default: !1
|
|
92
93
|
},
|
|
93
|
-
visibleIf:
|
|
94
|
+
visibleIf: f
|
|
94
95
|
},
|
|
95
96
|
{
|
|
96
97
|
key: "bars.roundedCorners",
|
|
@@ -121,7 +122,7 @@ var l = /* @__PURE__ */ e({ default: () => f }), u = ({ slots: e }) => Array.isA
|
|
|
121
122
|
extraLabelHasClickAction: ({ options: e, theme: t }) => r(e, t, "color"),
|
|
122
123
|
extraLabelClickAction: ({ options: e, theme: t }) => n(e, t, "color")
|
|
123
124
|
},
|
|
124
|
-
visibleIf: (e) =>
|
|
125
|
+
visibleIf: (e) => f(e) && e.options?.categories?.colored !== !0
|
|
125
126
|
}
|
|
126
127
|
]
|
|
127
128
|
},
|
|
@@ -250,10 +251,11 @@ var l = /* @__PURE__ */ e({ default: () => f }), u = ({ slots: e }) => Array.isA
|
|
|
250
251
|
visibleIf: ({ options: e }) => e?.legend?.customOrder === !0
|
|
251
252
|
}
|
|
252
253
|
],
|
|
253
|
-
visibleIf:
|
|
254
|
+
visibleIf: d
|
|
254
255
|
},
|
|
255
256
|
o(s),
|
|
256
|
-
c()
|
|
257
|
+
c(),
|
|
258
|
+
l({ select: { default: !0 } })
|
|
257
259
|
];
|
|
258
260
|
//#endregion
|
|
259
|
-
export {
|
|
261
|
+
export { p as n, u as t };
|
|
@@ -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
|
+
const e=require("./rolldown-runtime-mLOUI7ql.cjs"),t=require("./helpers-B2IWxa9q.cjs"),n=require("./axis-options.config-s-Js3ug-.cjs"),r=require("./guidelines-options.config-D-ZuReR_.cjs"),i=require("./info-tooltip-options.config-B9T0cwSM.cjs"),a=require("./interactivity-options.config-Bzk2L-qh.cjs");var o=e.n({default:()=>l}),s=({slots:e})=>Array.isArray(e)&&e?.length>0?(e?.find(e=>e?.name===`legend`)?.content?.length??0)>0||(e?.find(e=>e?.name===`measure`)?.content?.length??0)>1:!1,c=({slots:e})=>Array.isArray(e)&&e?.length>0?(e?.find(e=>e?.name===`legend`)?.content?.length??0)===0&&(e?.find(e=>e?.name===`measure`)?.content?.length??0)<=1:!0,l=[{key:`general`,type:`group`,open:!0,children:[{key:`mode`,control:{type:`picker`,default:`grouped`,enum:[`grouped`,`stacked`,`100`]},visibleIf:s},{type:`divider`,visibleIf:s},{key:`display.title`,control:{type:`switch`,default:!0}},{key:`display.legend`,control:{type:`switch`,default:!0},visibleIf:s},{key:`display.modeOption`,control:{type:`switch`,default:!1},visibleIf:s},{key:`bars.label`,control:{type:`picker`,default:`none`,enum:[`none`,`absolute`,`percentage`,`percentageLegend`,`percentageCategory`,`percentageMax`]}},{key:`categories.colored`,control:{type:`switch`,default:!1},visibleIf:c},{key:`bars.roundedCorners`,control:{type:`slider`,default:({theme:e})=>e?.itemSpecific?.rounding,min:0,max:20,step:1,extraLabel:({options:e,theme:t})=>typeof t?.itemSpecific?.rounding==`number`?typeof e?.bars?.roundedCorners==`number`?`reset`:`auto`:null,extraLabelHasClickAction:({options:e,theme:t})=>typeof t?.itemSpecific?.rounding==`number`&&typeof e?.bars?.roundedCorners==`number`,extraLabelClickAction:({options:e})=>{let t={...e};return delete t?.bars?.roundedCorners,{value:null,options:t}}}},{key:`color`,control:{type:`color-picker`,label:`Bar color`,default:({theme:e})=>t.u(e),extraLabel:({options:e,theme:n})=>t.a(e,n,`color`),extraLabelHasClickAction:({options:e,theme:n})=>t.t(e,n,`color`),extraLabelClickAction:({options:e,theme:n})=>t.c(e,n,`color`)},visibleIf:e=>c(e)&&e.options?.categories?.colored!==!0}]},{key:`order`,type:`group`,label:`Order & Limit`,open:!0,children:[{key:`ranking.active`,control:{type:`switch`,label:`Limit to`,default:!1}},{key:`ranking.direction`,control:{type:`picker`,label:`Direction`,default:`top`,enum:[`top`,`bottom`]},visibleIf:({options:e})=>e?.ranking?.active===!0},{key:`ranking.number`,control:{type:`number-field`,label:`Number`,default:10,min:1,max:999999},visibleIf:({options:e})=>e?.ranking?.active===!0},{key:`sort.by`,control:{type:`picker`,label:`Order by`,default:`measure`,enum:[`measure`,`category`]}},{key:`sort.direction`,control:{type:`picker`,label:`Direction`,default:`desc`,enum:[`asc`,`desc`]}},{key:`limit.number`,control:{type:`number-field`,label:`Limit`,default:1e5,min:1,max:1e5}}]},n.t([{axis:`x`,role:`measure`,scale:!0,manualRange:{key:`manualAxesRange`},color:!0,label:!0,tickDensity:!0,tickMode:!0,gridlines:!0},{axis:`y`,role:`category`,color:!0,label:!0,tickMode:!0,gridlines:!0}]),{key:`legend`,type:`group`,open:!1,children:[{key:`legend.position`,control:{label:`Position`,type:`position-picker`,default:`topRight`,enum:[`topLeft`,`top`,`topRight`,`right`,`bottomRight`,`bottom`,`bottomLeft`,`left`]}},{key:`legend.customOrder`,control:{label:`Custom order`,description:`Drag items in the chart legend to set the order.`,type:`switch`,default:!1}},{key:`interactivity.legendReorder`,control:{label:`Allow viewers to reorder`,type:`switch`,default:!1},visibleIf:({options:e})=>e?.legend?.customOrder===!0}],visibleIf:s},r.r(r.t),i.t(),a.t({select:{default:!0}})];Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
const e=require("./item-slot-drop-panel-
|
|
20
|
+
const e=require("./item-slot-drop-panel-CKXMQCyt.cjs");var t={grid:{columns:3,rows:1,columnSizes:[e.n,`1fr`,e.n],rowSizes:[`1fr`],gap:`0`},slots:{"y-axis":{column:1,row:1,align:`center`,justify:`center`,rotate:!0},measure:{column:2,row:1,align:`end`,justify:`center`,rotate:!1},legend:{column:3,row:1,align:`center`,justify:`center`,rotate:!0}}};exports.barChartPositioningConfig=t;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { n as e } from "./item-slot-drop-panel-
|
|
20
|
+
import { n as e } from "./item-slot-drop-panel-BtrZehGL.js";
|
|
21
21
|
//#region node_modules/@luzmo/dashboard-contents-types/bar-chart/bar-chart-positioning.config.js
|
|
22
22
|
var t = {
|
|
23
23
|
grid: {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* */
|
|
20
20
|
import { s as e } from "./pragmatic-element-adapter-C_7HSvGV.js";
|
|
21
21
|
import { t } from "./decorate-DyMgX_Uh.js";
|
|
22
|
-
import "./localized-mixin-
|
|
22
|
+
import "./localized-mixin-CSF-kZFt.js";
|
|
23
23
|
import { LitElement as n } from "lit";
|
|
24
24
|
import { property as r } from "lit/decorators.js";
|
|
25
25
|
//#region src/utils/base/base.ts
|