@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
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
const e=require("./decorate-DCJt-2rt.cjs"),t=require("./set-locale-8XQ-p5_N.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-CIt7of_Z.cjs");require("./dataset-icon-BAV0S4sZ.cjs"),require("./dataset-selector-row-BjyeiTVy.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.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}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,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)}_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
|
-
.maxVisibleSelectedDatasets=${this.maxVisibleSelectedDatasets}
|
|
66
|
-
auth-key=${this.authKey}
|
|
67
|
-
auth-token=${this.authToken}
|
|
68
|
-
api-url=${this.apiUrl}
|
|
69
|
-
app-server=${this.appServer}
|
|
70
|
-
?include-public-datasets=${this.includePublicDatasets}
|
|
71
|
-
?hide-dataset-icons=${this.hideDatasetIcons}
|
|
72
|
-
?disabled=${this._actionsDisabled}
|
|
73
|
-
?disable-dataset-modification=${this.disableDatasetModification}
|
|
74
|
-
@dataset-selected=${this._handleDatasetSelected}
|
|
75
|
-
@dataset-removed=${this._handleDatasetRemoved}
|
|
76
|
-
></luzmo-dataset-selector-row>
|
|
77
|
-
`}
|
|
78
|
-
${this.allowImages?s.html`
|
|
79
|
-
<luzmo-action-button
|
|
80
|
-
slot="bottom-actions"
|
|
81
|
-
size="m"
|
|
82
|
-
quiet
|
|
83
|
-
?disabled=${this._actionsDisabled}
|
|
84
|
-
label=${(0,l.msg)(`Add attachments`,{desc:`Accessible label for the AI prompt attachment button`})}
|
|
85
|
-
@click=${this._handleAttachClick}
|
|
86
|
-
>
|
|
87
|
-
<luzmo-icon slot="icon" size="m" .icon=${o.luzmoPaperclip}></luzmo-icon>
|
|
88
|
-
</luzmo-action-button>
|
|
89
|
-
`:s.nothing}
|
|
90
|
-
</luzmo-prompt-box>
|
|
91
|
-
${this._attachmentError?s.html`
|
|
92
|
-
<div class="attachment-error" role="alert">${this._attachmentError}</div>
|
|
93
|
-
`:s.nothing}
|
|
94
|
-
</div>
|
|
95
|
-
`}};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)({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}});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
const e=require("./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");var a=e.n({default:()=>s}),o=({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,s=[{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:o},{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:o},{key:`display.modeOption`,control:{label:`Mode option`,type:`switch`,default:!0},visibleIf:o},{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:o},r.r(r.t),i.t()];Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return a}});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
const e=require("./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");var a=e.n({default:()=>c}),o=({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,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:!0,c=[{key:`general`,type:`group`,open:!0,children:[{key:`mode`,control:{type:`picker`,default:`grouped`,enum:[`grouped`,`stacked`,`100`]},visibleIf:o},{type:`divider`,visibleIf:o},{key:`display.title`,control:{type:`switch`,default:!0}},{key:`display.legend`,control:{type:`switch`,default:!0},visibleIf:o},{key:`display.modeOption`,control:{type:`switch`,default:!1},visibleIf:o},{key:`bars.label`,control:{type:`picker`,default:`none`,enum:[`none`,`absolute`,`percentage`,`percentageLegend`,`percentageCategory`,`percentageMax`]}},{key:`categories.colored`,control:{type:`switch`,default:!1},visibleIf:s},{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=>s(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:o},r.r(r.t),i.t()];Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return a}});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
const e=require("./rolldown-runtime-mLOUI7ql.cjs"),t=require("./helpers-B2IWxa9q.cjs"),n=require("./axis-options.config-s-Js3ug-.cjs"),r=require("./info-tooltip-options.config-B9T0cwSM.cjs"),i=require("./color-palettes-BFpQSXfW.cjs");var a=e.n({default:()=>s}),o=({options:e})=>e?.observations?.display===!0,s=[{key:`general`,type:`group`,open:!0,children:[{key:`display.title`,control:{type:`switch`,label:`Title`,default:!0}},{key:`horizontal`,control:{type:`picker`,label:`Display`,default:`vertical`,enum:[`vertical`,`horizontal`],parseValue:e=>e?`horizontal`:`vertical`,toValue:e=>e===`horizontal`}},{key:`extentTicks`,control:{type:`switch`,label:`Extent ticks`,default:!0}}]},{key:`box`,type:`group`,open:!0,children:[{key:`boxWidth`,control:{type:`slider`,label:`Box width`,default:.9,min:.1,max:1,step:.1}},{key:`boxFill`,control:{type:`color-picker`,label:`Box fill`,default:({theme:e})=>t.u(e),extraLabel:({options:e,theme:n})=>t.a(e,n,`boxFill`),extraLabelHasClickAction:({options:e,theme:n})=>t.t(e,n,`boxFill`),extraLabelClickAction:({options:e,theme:n})=>t.c(e,n,`boxFill`)}},{key:`roundedCorners`,control:{type:`slider`,label:`Rounded corners`,default:({theme:e})=>e?.itemSpecific?.rounding??8,min:0,max:24,step:1,extraLabel:({options:e,theme:t})=>typeof t?.itemSpecific?.rounding==`number`?typeof e?.roundedCorners==`number`?`reset`:`auto`:null,extraLabelHasClickAction:({options:e,theme:t})=>typeof t?.itemSpecific?.rounding==`number`&&typeof e?.roundedCorners==`number`,extraLabelClickAction:({options:e})=>{let t={...e};return t?.roundedCorners!==void 0&&delete t.roundedCorners,{value:null,options:t}}}},{key:`boxStrokeWidth`,control:{type:`slider`,label:`Box stroke width`,default:1,min:0,max:5,step:.5}},{key:`boxStrokeColor`,control:{type:`color-picker`,label:`Box stroke color`,default:({theme:e})=>t.u(e),extraLabel:({options:e,theme:n})=>t.a(e,n,`boxStrokeColor`),extraLabelHasClickAction:({options:e,theme:n})=>t.t(e,n,`boxStrokeColor`),extraLabelClickAction:({options:e,theme:n})=>t.c(e,n,`boxStrokeColor`)}},{key:`medianStrokeWidth`,control:{type:`slider`,label:`Median stroke width`,default:2,min:0,max:5,step:.5}},{key:`medianStrokeColor`,control:{type:`color-picker`,label:`Median stroke color`,default:`#000000`}}]},{key:`observations`,type:`group`,open:!0,children:[{key:`observations.display`,control:{type:`switch`,label:`Show`,default:!1}},{key:`observations.onlyOutliers`,control:{type:`switch`,label:`Only outliers`,default:!1},visibleIf:o},{key:`observations.type`,control:{type:`picker`,label:`Type`,default:`dot`,enum:[`dot`,`ticks`]},visibleIf:o},{key:`observations.size`,control:{type:`slider`,label:`Size`,default:3,min:1,max:10,step:1},visibleIf:o},{key:`observations.opacity`,control:{type:`slider`,label:`Opacity`,default:.4,min:.1,max:1,step:.1},visibleIf:o},{key:`observations.jitter`,control:{type:`slider`,label:`Jitter`,default:30,min:1,max:100,step:1},visibleIf:o},{key:`observations.colorType`,control:{type:`picker`,label:`Color mode`,default:`single`,enum:[`single`,`range`]},visibleIf:o},{key:`observations.color`,control:{type:`color-picker`,label:`Color`,default:({theme:e})=>e?.colors?.[1],extraLabel:({options:e,theme:t})=>t?.colors?.[1]&&e.observations?.color&&e.observations?.color!==t?.colors?.[1]?`reset`:null,extraLabelHasClickAction:({options:e,theme:t})=>!!(t?.colors?.[1]&&e.observations?.color!==t?.colors?.[1]),extraLabelClickAction:({options:e,theme:t})=>{let n={...e};return n.observations&&(n.observations.color=t?.colors?.[1]),{value:n.observations?.color,options:n}}},visibleIf:({options:e})=>o({options:e})&&e?.observations?.colorType===`single`},{key:`observations.colorsType`,control:{type:`picker`,label:`Colors type`,default:`divergent`,enum:[`sequential`,`divergent`],calculateValue:({options:e})=>e?.observations?.colorsClass===`manual`?`manual`:i.t()?.[e?.observations?.colorsClass]?.type??`divergent`,toOptions:({options:e,value:t})=>{if(t===`manual`)return{...e,observations:{...e.observations,colorsType:`manual`,colorsClass:`manual`}};let n=e.observations?.colorsClass;return t!==i.t()?.[e?.observations?.colorsClass]?.type&&(n=i.n(t??`divergent`)[0]),{...e,observations:{...e.observations,colorsClass:n,colorsType:t}}}},visibleIf:({options:e})=>o({options:e})&&e?.observations?.colorType===`range`},{key:`observations.colorsClass`,control:{type:`color-palette-picker`,label:`Color palette`,hideLabel:!0,default:({options:e})=>{let t=i.t()?.[e?.observations?.colorsClass]?.type;return i.n(t??`divergent`)[0]},enum:({options:e})=>{let t=i.t()?.[e?.observations?.colorsClass]?.type;return i.n(t??`divergent`)}},visibleIf:({options:e})=>o({options:e})&&e?.observations?.colorType===`range`&&e?.observations?.colorsClass!==`manual`}]},n.t([{axis:`x`,role:`axis`,scale:!0,color:!0,label:!0,tickDensity:!0,tickMode:!0,gridlines:!0},{axis:`y`,role:`axis`,scale:!0,color:!0,label:!0,tickDensity:!0,tickMode:!0,gridlines:!0}],n.n({rangeKey:`manualAxisRange`,labels:{range:`Measure axis range`,minimum:`Measure axis minimum`,maximum:`Measure axis maximum`},discriminator:{key:`measureAxisType`,default:`variable`}})),r.t()];Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return a}});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
const e=require("./rolldown-runtime-mLOUI7ql.cjs"),t=require("./helpers-B2IWxa9q.cjs"),n=require("./info-tooltip-options.config-B9T0cwSM.cjs");var r=e.n({default:()=>o}),i=({slots:e})=>Array.isArray(e)&&e?.length>0?(e?.find(e=>e?.name===`color`)?.content?.length??0)>0:!1,a=({slots:e})=>Array.isArray(e)&&e?.length>0?!((e?.find(e=>e?.name===`color`)?.content?.length??0)>0):!0,o=[{key:`general`,type:`group`,open:!0,children:[{key:`display.title`,control:{type:`switch`,label:`Title`,default:!0}},{key:`display.legend`,control:{type:`switch`,label:`Legend`,default:!0},visibleIf:i},{key:`display.bubbleLabels`,control:{type:`switch`,label:`Show labels`,tooltip:`If enough room available`,default:!0}},{key:`display.bubbleValues`,control:{type:`picker`,label:`Show values`,tooltip:`If enough room available`,default:`none`,enum:[`none`,`percentage`,`absolute`]}},{key:`categories.colored`,control:{type:`switch`,label:`Bubble color by category`,default:!0},visibleIf:a},{key:`color`,control:{type:`color-picker`,label:`Bubble 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:({options:e,slots:t})=>e?.categories?.colored===!1&&a({slots:t})}]},{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:i},n.t()];Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
const e=require("./rolldown-runtime-mLOUI7ql.cjs"),t=require("./info-tooltip-options.config-B9T0cwSM.cjs"),n=require("./color-palettes-BFpQSXfW.cjs"),r=require("./map-tile-providers-DzSBmFkY.cjs"),i=require("./color-range-utils-C3HJJUS1.cjs");var a=e.n({default:()=>s}),o=(e,t)=>{let r=`colors${t}`;return n.t()[e]?.[r]},s=[{key:`general`,type:`group`,open:!0,children:[{key:`display.title`,control:{type:`switch`,label:`Title`,default:!0}},{key:`display.legend`,control:{type:`switch`,label:`Legend`,default:!0}}]},{key:`map`,type:`group`,open:!0,children:[{key:`enabled.zoom`,control:{type:`switch`,label:`Zoom`,default:!0}},{key:`enabled.pan`,control:{type:`switch`,label:`Pan`,default:!0}},{key:`enabled.pitchBearing`,control:{type:`switch`,label:`Pitch & Rotate`,tooltip:`Use ctrl + drag`,default:!1}},{type:`divider`},{key:`vectorTileProvider`,control:{type:`picker`,label:`Map style`,default:`Basic`,enum:[`No Tiles`,`Basic`,`Bright`,`Dark`,`Fiord`,`Liberty`,`Pastel`,`Positron`,`Streets`,`Toner`,`Topographique`,`Voyager`,`3D buildings`],parseValue:e=>e?.name||`Basic`,toValue:e=>r.t[e]??{}}}]},{key:`colors`,type:`group`,open:!0,children:[{key:`opacity`,control:{type:`slider`,label:`Opacity`,default:.85,min:.2,max:1,step:.01}},{key:`colorsClassType`,control:{type:`picker`,label:`Colors type`,default:`sequential`,enum:[`sequential`,`divergent`,`manual`],calculateValue:({options:e})=>e?.colorsClass===`manual`?`manual`:n.t()?.[e?.colorsClass]?.type??`sequential`,toOptions:({options:e,value:t})=>{let r=e?.colorsClass??`PuBu`,a=e?.numberClasses??5,o=i.n(e?.manualValues?.ranges),s=r===`manual`?`manual`:r,c;t===`manual`?c=`manual`:t!==n.t()?.[e?.colorsClass]?.type&&(c=n.n(t??`sequential`)[0]);let l={...e,colorsClass:c};if(t===`manual`||e?.classification===`manual`){let e=i.t(a,t===`manual`?s:c,o);l.manualValues={...l.manualValues,ranges:i.r(e)}}else delete l?.manualValues?.ranges;return l}}},{key:`colorsClass`,control:{type:`color-palette-picker`,label:`Color palette`,hideLabel:!0,default:({options:e})=>{let t=n.t()?.[e?.colorsClass]?.type;return n.n(t??`sequential`)[0]},enum:({options:e})=>{let t=n.t()?.[e?.colorsClass]?.type;return n.n(t??`sequential`)},toOptions:({options:e,value:t})=>{let n={...e,colorsClass:t};if(e?.classification===`manual`){let r=o(t,e?.numberClasses??5);n.manualValues={...n.manualValues,ranges:e?.manualValues?.ranges?.map(e=>({...e,color:typeof e.val==`number`?r?.[e.val]:void 0}))}}return n}},visibleIf:({options:e})=>e?.colorsClass!==`manual`},{key:`manualValues.ranges`,control:{type:`color-range`,editRangeSize:!1,debounce:500,noValues:!0,noAlphaChannel:!0,label:`Manual range colors`,hideLabel:!0},calculateValue:({options:e})=>i.t(e?.numberClasses,e?.colorsClass,i.n(e?.manualValues?.ranges)),toOptions:({options:e,value:t})=>({...e,manualValues:{...e.manualValues,ranges:i.r(t)}}),visibleIf:({options:e})=>e?.colorsClass===`manual`}]},{key:`classification`,type:`group`,open:!0,children:[{key:`numberClasses`,control:{type:`picker`,label:`Number of classes`,default:`5`,enum:[`3`,`4`,`5`,`6`,`7`,`8`,`9`],parseValue:e=>e?.toString()??`5`,toOptions:({options:e,value:t})=>{let n=Number.parseInt(t,10)||5,r={...e,numberClasses:n};if(e?.classification===`manual`||e?.colorsClass===`manual`){let n=i.t(t,e?.colorsClass,i.n(e?.manualValues?.ranges));r.manualValues={...r.manualValues,ranges:i.r(n)}}return r}}},{key:`classification`,control:{type:`picker`,label:`Method`,default:`interval`,enum:[`interval`,`manual`,`quantile`,`continuous`],toOptions:({options:e,value:t})=>{let n={...e,classification:t};if(t===`manual`||e?.colorsClass===`manual`){let t=i.t(e?.numberClasses,e?.colorsClass,i.n(e?.manualValues?.ranges));n.manualValues={...n.manualValues,ranges:i.r(t)}}else delete n?.manualValues?.ranges;return n}}},{key:`manualValues.rangesValues`,control:{type:`color-range`,editRangeSize:!1,debounce:500,noValues:!1,readOnlyColorPicker:!0,label:`Manual range values`,hideLabel:!0,calculateValue:({options:e})=>i.t(e?.numberClasses,e?.colorsClass,i.n(e?.manualValues?.ranges)),toOptions:({options:e,value:t})=>({...e,manualValues:{...e.manualValues,ranges:i.r(t)}})},visibleIf:({options:e})=>e?.classification===`manual`}]},{key:`legend`,type:`group`,open:!1,children:[{key:`legend.type`,control:{type:`picker`,label:`Type`,default:`bar`,enum:[`bar`,`list`]}},{key:`legend.size`,control:{type:`radio-button-group`,label:`Size`,default:`M`,enum:[`S`,`M`,`L`]}},{key:`legend.position`,control:{type:`position-picker`,label:`Position`,default:`bottomLeft`,enum:[`topLeft`,`top`,`topRight`,`right`,`bottomRight`,`bottom`,`bottomLeft`,`left`]}}],visibleIf:({options:e})=>e?.display?.legend===!0},t.t()];Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
const e=require("./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");var a=e.n({default:()=>c}),o=({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,s=({slots:e})=>Array.isArray(e)&&e?.length>0?e?.find(e=>e?.name===`legend`)?.content?.length===0&&(e?.find(e=>e?.name===`measure`)?.content?.length??0)<=1:!1,c=[{key:`general`,type:`group`,open:!0,children:[{key:`mode`,control:{type:`picker`,default:`grouped`,enum:[`grouped`,`stacked`,`100`]},visibleIf:o},{type:`divider`,visibleIf:o},{key:`display.title`,control:{type:`switch`,default:!0}},{key:`display.legend`,control:{type:`switch`,default:!0},visibleIf:o},{key:`display.modeOption`,control:{type:`switch`,default:!1},visibleIf:o},{key:`bars.label`,control:{type:`picker`,default:`none`,enum:[`none`,`absolute`,`percentage`,`percentageLegend`,`percentageCategory`,`percentageMax`]}},{key:`categories.colored`,control:{type:`switch`,default:!1},visibleIf:s},{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`,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=>s(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:`category`,color:!0,label:!0,tickMode:!0,gridlines:!0},{axis:`y`,role:`measure`,scale:!0,manualRange:{key:`manualAxesRange`},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:o},r.r(r.t),i.t()];Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return a}});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
const e=require("./rolldown-runtime-mLOUI7ql.cjs"),t=require("./axis-options.config-s-Js3ug-.cjs"),n=require("./guidelines-options.config-D-ZuReR_.cjs"),r=require("./info-tooltip-options.config-B9T0cwSM.cjs");var i=e.n({default:()=>a}),a=[{key:`general`,type:`group`,open:!0,children:[{key:`display.title`,control:{type:`switch`,default:!0}},{key:`display.legend`,control:{type:`switch`,default:!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:`limit.number`,control:{type:`number-field`,label:`Limit`,default:1e5,min:1,max:1e5}}]},t.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},{axis:`y2`,role:`measure`,scale:!0,manualRange:{key:`axis.y2.manualAxesRange`,discriminatorKey:`axis.y2.type`},color:!0,label:!0,tickDensity:!0,tickMode:!0,gridlines:!0}]),n.r(n.t),r.t()];Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
const e=require("./decorate-DCJt-2rt.cjs"),t=require("./data-broker-CyMYR6w1.cjs"),n=require("./get-dataset-name-CIt7of_Z.cjs");require("./dataset-icon-BAV0S4sZ.cjs");let r=require("@luzmo/icons");require("@luzmo/lucero/icon");let i=require("lit"),a=require("lit/decorators.js"),o=require("@lit/localize");require("@luzmo/lucero/action-button"),require("@luzmo/lucero/select"),require("@luzmo/lucero/tags"),require("@luzmo/lucero/tooltip");let s=require("lit/directives/repeat.js");var c=`:host([disabled]){pointer-events:none}:host{box-sizing:border-box;gap:var(--luzmo-dataset-selector-row-gap,var(--dataset-selector-row-gap));min-height:var(--luzmo-dataset-selector-row-min-height,var(--dataset-selector-row-min-height));font-size:var(--luzmo-dataset-selector-row-font-size,var(--dataset-selector-row-font-size));color:var(--luzmo-dataset-selector-row-color,var(--dataset-selector-row-color));font-family:var(--luzmo-dataset-selector-row-font-family,var(--dataset-selector-row-font-family));flex-flow:wrap;align-items:flex-start;display:flex}:host .dataset-search{--luzmo-select-inline-size:fit-content;flex:none;align-self:flex-start;inline-size:auto}:host .dataset-search .dataset-search-trigger-layout{align-items:center;gap:var(--luzmo-spacing-2);--luzmo-icon-vertical-align:top;min-inline-size:0;display:flex}:host .dataset-search .dataset-search-trigger-label{white-space:nowrap;line-height:1}:host .dataset-search{max-inline-size:var(--luzmo-dataset-selector-row-search-max-width,var(--dataset-selector-row-search-max-width));--luzmo-popover-max-height:var(--luzmo-dataset-selector-row-search-popover-max-height,var(--dataset-selector-row-search-popover-max-height,var(--luzmo-popover-max-height)));--select-minimum-width-multiplier:1}:host .selected-dataset-tag{--luzmo-tag-max-inline-size:var(--dataset-selector-row-tag-max-inline-size);--luzmo-tag-height:var(--luzmo-component-height);--luzmo-tag-spacing-inline-start:var(--luzmo-spacing-3);--luzmo-tag-icon-spacing-inline-end:var(--luzmo-spacing-3);--luzmo-tag-label-spacing-inline-end:var(--luzmo-spacing-2);--luzmo-tag-clear-button-spacing-inline-start:.375rem;--luzmo-tag-clear-button-spacing-inline-end:.375rem;margin:0}:host .selected-datasets-tags{--luzmo-tag-group-item-margin-block:0;--luzmo-tag-group-item-margin-inline:0;display:contents}:host .selected-dataset-tag .dataset-tag-label{align-items:center;line-height:1}:host .sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}:host{--dataset-selector-row-gap:var(--luzmo-spacing-2);--dataset-selector-row-min-height:1.75rem;--dataset-selector-row-font-size:.75rem;--dataset-selector-row-color:var(--luzmo-font-color-extra-dimmed);--dataset-selector-row-font-family:var(--luzmo-font-family);--dataset-selector-row-tag-max-inline-size:var(--luzmo-tag-max-inline-size,180px);--dataset-selector-row-search-max-width:23.75rem;--dataset-selector-row-search-popover-max-height:400px}`,l=400,u=50,d=class extends i.LitElement{constructor(...e){super(...e),this.selectedDatasets=[],this.buttonLabel=(0,o.msg)(`Add dataset`,{desc:`Label for the control that opens dataset search to add a dataset`}),this.authKey=``,this.authToken=``,this.apiUrl=`https://api.luzmo.com`,this.appServer=`https://app.luzmo.com`,this.includePublicDatasets=!1,this.disabled=!1,this.disableDatasetModification=!1,this.hideDatasetIcons=!1,this._availableDatasets=[],this._removalAnnouncement=``,this._selectValue=[],this._retrieving=!1,this._showAllSelectedDatasets=!1,this._searchValue=``,this._activeSearchRequestId=0,this._searchDebounceTimer=null,this._renderDatasetOptionIcon=e=>{if(this.hideDatasetIcons)return null;let t=e.value;if(typeof t!=`string`)return null;let n=this._availableDatasets.find(e=>e.id===t);return n?i.html`
|
|
21
|
-
<luzmo-dataset-icon
|
|
22
|
-
slot="icon"
|
|
23
|
-
.datasetInfo=${n}
|
|
24
|
-
size="16px"
|
|
25
|
-
app-url=${this.appServer}
|
|
26
|
-
></luzmo-dataset-icon>
|
|
27
|
-
`:null}}static{this.styles=(0,i.unsafeCSS)(c)}static{this.tagName=`luzmo-dataset-selector-row`}get flagOpendata(){return this.includePublicDatasets}set flagOpendata(e){this.includePublicDatasets=e}get _selectedDatasetIds(){return new Set(this.selectedDatasets.map(e=>e.id))}get _datasetModificationDisabled(){return this.disabled||this.disableDatasetModification}get _visibleSelectedDatasets(){let e=this.maxVisibleSelectedDatasets;return this._showAllSelectedDatasets||e===void 0||!Number.isFinite(e)?this.selectedDatasets:this.selectedDatasets.slice(0,Math.max(0,Math.floor(e)))}connectedCallback(){super.connectedCallback(),this._configureBroker()}disconnectedCallback(){this._searchDebounceTimer!==null&&(clearTimeout(this._searchDebounceTimer),this._searchDebounceTimer=null),super.disconnectedCallback()}willUpdate(e){super.willUpdate(e),(e.has(`authKey`)||e.has(`authToken`)||e.has(`apiUrl`))&&this._configureBroker()}_configureBroker(){t.t.configure({authKey:this.authKey,authToken:this.authToken,apiUrl:this.apiUrl})}async _loadAvailableDatasets(){let e=++this._activeSearchRequestId;this._availableDatasets=[],this._retrieving=!0;try{let n=await t.t.fetchApi(`/securable`,{action:`get`,version:`0.1.0`,find:this._generateQuery()});if(e!==this._activeSearchRequestId)return;this._availableDatasets=n.rows??[]}catch(t){console.error(`Error loading datasets:`,t),e===this._activeSearchRequestId&&(this._availableDatasets=[])}finally{e===this._activeSearchRequestId&&(this._retrieving=!1)}}_generateQuery(){return{attributes:[`id`,`updated_at`,`name`,`subtype`],include:[{model:`Account`,attributes:[`id`,`provider`,`name`],include:[{model:`Plugin`,attributes:[`id`],include:[{model:`Thumbnail`,where:{size:`32px`}}]}]}],where:{type:`dataset`},limit:u,offset:0,...this._searchValue?{search:{match_types:[`name`,`description`],keyphrase:this._searchValue,securable_types:`dataset`},order:[[`name`,`asc`]]}:{order:[[`updated_at`,`desc`]]},...this.includePublicDatasets?{options:{public:null}}:{}}}_handleSearch(e){if(this._datasetModificationDisabled)return;let t=e.detail?.string??``;t!==this._searchValue&&(this._searchValue=t,this._activeSearchRequestId++,this._retrieving=!0,this._searchDebounceTimer!==null&&clearTimeout(this._searchDebounceTimer),this._searchDebounceTimer=window.setTimeout(()=>{this._loadAvailableDatasets()},l))}_handleSearchOpened(){this._datasetModificationDisabled||(this._searchValue=``,this._availableDatasets.length===0&&this._loadAvailableDatasets())}_handleSearchClosed(){this._searchDebounceTimer!==null&&(clearTimeout(this._searchDebounceTimer),this._searchDebounceTimer=null),this._searchValue!==``&&(this._activeSearchRequestId++,this._searchValue=``,this._availableDatasets=[]),this._retrieving=!1}_handleDatasetSelected(e){if(this._datasetModificationDisabled)return;let t=e.detail?.value?.[0],n=this._availableDatasets.find(e=>e.id===t);if(!n){this._selectValue=[];return}if(!this._selectedDatasetIds.has(n.id)){let e=[...this.selectedDatasets,n],t=this.maxVisibleSelectedDatasets;typeof t==`number`&&Number.isFinite(t)&&e.length>Math.floor(t)&&(this._showAllSelectedDatasets=!0),this.selectedDatasets=e,this.dispatchEvent(new CustomEvent(`dataset-selected`,{detail:n,bubbles:!0,composed:!0}))}this._selectValue=[]}_handleDatasetRemoved(e){if(this._datasetModificationDisabled)return;let t=n.t(e),r=this.selectedDatasets.filter(t=>t.id!==e.id);this.selectedDatasets=r,this._removalAnnouncement=(0,o.msg)(o.str`Removed ${t}`,{desc:`Screen reader announcement when a dataset tag is removed; the interpolated value is the dataset name`}),setTimeout(()=>{this._removalAnnouncement=``},1e3),this.dispatchEvent(new CustomEvent(`dataset-removed`,{detail:e,bubbles:!0,composed:!0}))}_renderDatasetTag(e){return i.html`
|
|
28
|
-
<luzmo-tag
|
|
29
|
-
class="selected-dataset-tag"
|
|
30
|
-
?deletable=${!this._datasetModificationDisabled}
|
|
31
|
-
tabindex=${this._datasetModificationDisabled?-1:0}
|
|
32
|
-
aria-label=${this._datasetModificationDisabled?n.t(e):(0,o.msg)(o.str`Remove ${n.t(e)}`,{desc:`Accessible label for the delete control on a selected dataset tag; the interpolated value is the dataset name`})}
|
|
33
|
-
@delete=${this._createDatasetRemovedHandler(e)}
|
|
34
|
-
>
|
|
35
|
-
${this.hideDatasetIcons?i.nothing:i.html`
|
|
36
|
-
<luzmo-dataset-icon
|
|
37
|
-
slot="icon"
|
|
38
|
-
.datasetInfo=${e}
|
|
39
|
-
size="16px"
|
|
40
|
-
app-url=${this.appServer}
|
|
41
|
-
></luzmo-dataset-icon>
|
|
42
|
-
`}
|
|
43
|
-
<span class="dataset-tag-label">${n.t(e)}</span>
|
|
44
|
-
</luzmo-tag>
|
|
45
|
-
`}_getDatasetOptions(){return this._availableDatasets.filter(e=>!this._selectedDatasetIds.has(e.id)).map(e=>({value:e.id,label:n.t(e),...this.hideDatasetIcons?{}:{icon:e.subtype===`upload`?r.luzmoFileUploadOutline:r.luzmoPlugin}}))}_renderDatasetSearch(){return i.html`
|
|
46
|
-
<luzmo-select
|
|
47
|
-
class="dataset-search"
|
|
48
|
-
search="on"
|
|
49
|
-
selects="single"
|
|
50
|
-
variant="highlight"
|
|
51
|
-
placement="bottom-start"
|
|
52
|
-
hide-dropdown-icon
|
|
53
|
-
no-wrap
|
|
54
|
-
.label=${this.buttonLabel}
|
|
55
|
-
.options=${this._getDatasetOptions()}
|
|
56
|
-
.value=${this._selectValue}
|
|
57
|
-
.retrieving=${this._retrieving}
|
|
58
|
-
.optionIconRenderer=${this._renderDatasetOptionIcon}
|
|
59
|
-
?disabled=${this._datasetModificationDisabled}
|
|
60
|
-
@change=${this._handleDatasetSelected}
|
|
61
|
-
@luzmo-search=${this._handleSearch}
|
|
62
|
-
@luzmo-opened=${this._handleSearchOpened}
|
|
63
|
-
@luzmo-closed=${this._handleSearchClosed}
|
|
64
|
-
>
|
|
65
|
-
<span slot="label" class="dataset-search-trigger-layout">
|
|
66
|
-
<luzmo-icon .icon=${r.luzmoPlus} size="s" aria-hidden="true"></luzmo-icon>
|
|
67
|
-
${this.selectedDatasets.length===0?i.html`<span class="dataset-search-trigger-label">${this.buttonLabel}</span>`:i.nothing}
|
|
68
|
-
</span>
|
|
69
|
-
${this.selectedDatasets.length>0?i.html`<luzmo-tooltip slot="tooltip" self-managed placement="top" size="s">${this.buttonLabel}</luzmo-tooltip>`:i.nothing}
|
|
70
|
-
</luzmo-select>
|
|
71
|
-
`}_createDatasetRemovedHandler(e){return()=>this._handleDatasetRemoved(e)}async _handleShowAllDatasets(){if(this.disabled)return;let e=this._visibleSelectedDatasets.length;this._showAllSelectedDatasets=!0,await this.updateComplete,this.shadowRoot?.querySelectorAll(`.selected-dataset-tag`)[e]?.focus()}render(){let e=this._visibleSelectedDatasets,t=this.selectedDatasets.length-e.length,n=t===1?(0,o.msg)(`Show 1 more selected dataset`,{desc:`Accessible label for the button that reveals one selected dataset tag hidden by the visible tag limit`}):(0,o.msg)(o.str`Show ${t} more selected datasets`,{desc:`Accessible label for the button that reveals selected dataset tags hidden by the visible tag limit`});return i.html`
|
|
72
|
-
${this._renderDatasetSearch()}
|
|
73
|
-
${this.selectedDatasets.length>0?i.html`
|
|
74
|
-
<luzmo-tags class="selected-datasets-tags">
|
|
75
|
-
${(0,s.repeat)(e,e=>e.id,e=>this._renderDatasetTag(e))}
|
|
76
|
-
</luzmo-tags>
|
|
77
|
-
${t>0?i.html`
|
|
78
|
-
<luzmo-action-button
|
|
79
|
-
class="show-more-datasets"
|
|
80
|
-
quiet
|
|
81
|
-
aria-label=${n}
|
|
82
|
-
?disabled=${this.disabled}
|
|
83
|
-
@click=${this._handleShowAllDatasets}
|
|
84
|
-
>
|
|
85
|
-
${(0,o.msg)(o.str`+ ${t} more`,{desc:`Button that reveals selected dataset tags hidden by the visible tag limit`})}
|
|
86
|
-
</luzmo-action-button>
|
|
87
|
-
`:i.nothing}
|
|
88
|
-
`:i.nothing}
|
|
89
|
-
<span class="sr-only" role="status" aria-live="polite">${this._removalAnnouncement}</span>
|
|
90
|
-
`}};e.t([(0,a.property)({type:Array})],d.prototype,`selectedDatasets`,void 0),e.t([(0,a.property)({type:String,attribute:`button-label`})],d.prototype,`buttonLabel`,void 0),e.t([(0,a.property)({type:String,attribute:`auth-key`})],d.prototype,`authKey`,void 0),e.t([(0,a.property)({type:String,attribute:`auth-token`})],d.prototype,`authToken`,void 0),e.t([(0,a.property)({type:String,attribute:`api-url`})],d.prototype,`apiUrl`,void 0),e.t([(0,a.property)({type:String,attribute:`app-server`})],d.prototype,`appServer`,void 0),e.t([(0,a.property)({type:Boolean,reflect:!0,attribute:`include-public-datasets`})],d.prototype,`includePublicDatasets`,void 0),e.t([(0,a.property)({type:Boolean,attribute:`flag-opendata`})],d.prototype,`flagOpendata`,null),e.t([(0,a.property)({type:Boolean,reflect:!0,attribute:`disabled`})],d.prototype,`disabled`,void 0),e.t([(0,a.property)({type:Boolean,reflect:!0,attribute:`disable-dataset-modification`})],d.prototype,`disableDatasetModification`,void 0),e.t([(0,a.property)({type:Boolean,attribute:`hide-dataset-icons`})],d.prototype,`hideDatasetIcons`,void 0),e.t([(0,a.property)({type:Number,reflect:!0,attribute:`max-visible-selected-datasets`})],d.prototype,`maxVisibleSelectedDatasets`,void 0),e.t([(0,a.state)()],d.prototype,`_availableDatasets`,void 0),e.t([(0,a.state)()],d.prototype,`_removalAnnouncement`,void 0),e.t([(0,a.state)()],d.prototype,`_selectValue`,void 0),e.t([(0,a.state)()],d.prototype,`_retrieving`,void 0),e.t([(0,a.state)()],d.prototype,`_showAllSelectedDatasets`,void 0),d=e.t([(0,o.localized)()],d),customElements.get(`luzmo-dataset-selector-row`)||customElements.define(`luzmo-dataset-selector-row`,d),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return d}});
|