@luzmo/analytics-components-kit 1.0.8-beta.3 → 1.0.8-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/components/ai-chat/ai-chat.d.ts +4 -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-CTr-dplW.js → ai-chat-CSoYb7E3.js} +28 -14
- package/components/{ai-chat-CQtzaiZ_.cjs → ai-chat-Dq88ryzU.cjs} +3 -2
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +9 -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-1WuexZ9Q.cjs +98 -0
- package/components/{ai-interaction-textarea-uc14Goa4.js → ai-interaction-textarea-BZAeZunP.js} +16 -6
- package/components/{area-chart-positioning.config-DeMlkQZO.js → area-chart-positioning.config-B2TiEOKI.js} +1 -1
- package/components/{area-chart-positioning.config-BstzDLRL.cjs → area-chart-positioning.config-CMNWsFdQ.cjs} +1 -1
- package/components/{bar-chart-positioning.config-Cw4xXpaU.js → bar-chart-positioning.config-BrXy8UPf.js} +1 -1
- package/components/{bar-chart-positioning.config-DDKGGZhU.cjs → bar-chart-positioning.config-CfCl6YMX.cjs} +1 -1
- package/components/{base-DPqRkMth.js → base-CyMoOIH2.js} +1 -1
- package/components/{base-B0frB7oV.cjs → base-DY99ut2q.cjs} +1 -1
- package/components/{box-plot-positioning.config-Cni8SYCB.cjs → box-plot-positioning.config-CYKg8ebh.cjs} +1 -1
- package/components/{box-plot-positioning.config-BQf8CX15.js → box-plot-positioning.config-DYHIaLKf.js} +1 -1
- package/components/{bubble-chart-positioning.config-1Q2GxFJ4.cjs → bubble-chart-positioning.config-D8uKM21g.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-BYeXJRKW.js → bubble-chart-positioning.config-DW2fyRST.js} +1 -1
- package/components/{bullet-chart-positioning.config-D-fuuO8D.js → bullet-chart-positioning.config-B0o0yLmt.js} +1 -1
- package/components/{bullet-chart-positioning.config-NSHvsWAf.cjs → bullet-chart-positioning.config-BZVi5Z37.cjs} +1 -1
- package/components/{choropleth-map-positioning.config-DZCuGwit.cjs → choropleth-map-positioning.config-ZoJMcINR.cjs} +1 -1
- package/components/{choropleth-map-positioning.config-Bk2lcbUF.js → choropleth-map-positioning.config-_cjikPvV.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-pvlFSoeh.js → circle-pack-chart-positioning.config-Bs_vUTrq.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-CuESD4oH.cjs → circle-pack-chart-positioning.config-Dp14Xy4g.cjs} +1 -1
- package/components/{circular-gauge-positioning.config-DIYxTFVO.cjs → circular-gauge-positioning.config-Bon_UJ9A.cjs} +1 -1
- package/components/{circular-gauge-positioning.config-BI5_9VzK.js → circular-gauge-positioning.config-Bsshd-zZ.js} +1 -1
- package/components/{column-chart-positioning.config-CoekgrWc.js → column-chart-positioning.config-BrSD_Vrd.js} +1 -1
- package/components/{column-chart-positioning.config-F5liDplz.cjs → column-chart-positioning.config-DUcXbA1k.cjs} +1 -1
- package/components/{combination-chart-positioning.config-BIqhiqPc.cjs → combination-chart-positioning.config-DHvp-1kZ.cjs} +1 -1
- package/components/{combination-chart-positioning.config-gfmXofUL.js → combination-chart-positioning.config-DIWEeLYk.js} +1 -1
- package/components/{conditional-number-positioning.config-DoA_qMvA.js → conditional-number-positioning.config-BFzK6gRk.js} +1 -1
- package/components/{conditional-number-positioning.config-7xN8yNaC.cjs → conditional-number-positioning.config-BgKxHoAw.cjs} +1 -1
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.js +1 -1
- package/components/{data-field-Ccsjj3o5.js → data-field-C_rVntAB.js} +3 -3
- package/components/{data-field-CZGdgBd7.cjs → data-field-LCJaGHTs.cjs} +1 -1
- package/components/data-field-level/index.cjs +1 -1
- package/components/data-field-level/index.js +1 -1
- package/components/{data-field-level-BautlamO.js → data-field-level-Bq4m_uay.js} +1 -1
- package/components/{data-field-level-DDYutkKV.cjs → data-field-level-DIS8fBDr.cjs} +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-COHppDw6.js → data-field-panel-B7CqUPNc.js} +3 -3
- package/components/{data-field-panel-B9aYsBfe.cjs → data-field-panel-DWRs7buc.cjs} +1 -1
- 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-20qMlApt.js} +1 -1
- package/components/{data-fields-select-BMDWXAMz.cjs → data-fields-select-CGtDf-oP.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-DBLtXZrx.js} +1 -1
- package/components/{dataset-selector-list-BWgvikkr.cjs → dataset-selector-list-HHKokk1u.cjs} +1 -1
- package/components/dataset-selector-row/dataset-selector-row.d.ts +29 -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-BR5fZlp0.js +417 -0
- package/components/dataset-selector-row-D9cQeVQi.cjs +102 -0
- package/components/{de-CbIHJOex.js → de-CSvZ1Nhx.js} +3 -1
- package/components/de-CfAVa2SD.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-0-94VuDl.cjs} +1 -1
- package/components/{display-settings-DpPSk_da.js → display-settings-BB7xS-BO.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-BdwOpAPi.js} +2 -2
- package/components/{display-settings-binning-BGYyLt7_.cjs → display-settings-binning-CgfWIih3.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-l9LWhG3c.cjs → display-settings-datetime-BS7mUN1_.cjs} +1 -1
- package/components/{display-settings-datetime-Ditc8j2_.js → display-settings-datetime-CHZ9PRGK.js} +2 -2
- 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-BLEb1hLW.js} +2 -2
- package/components/{display-settings-grand-totals-D-_CQpBV.cjs → display-settings-grand-totals-CzLxqBqm.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-0rg03IAh.cjs} +1 -1
- package/components/{display-settings-numeric-FWO7hFLp.js → display-settings-numeric-cJJcpFQf.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-B4f8fbWG.js} +2 -2
- package/components/{display-settings-period-over-period-BdBYrWwJ.cjs → display-settings-period-over-period-DC3KxRpN.cjs} +1 -1
- package/components/{donut-chart-positioning.config-DsHR-HET.cjs → donut-chart-positioning.config-BsKp1HXE.cjs} +1 -1
- package/components/{donut-chart-positioning.config-B-CWvQDP.js → donut-chart-positioning.config-DdDed2_1.js} +1 -1
- package/components/es-B-pveTvx.cjs +20 -0
- package/components/{es-bVLNpB-8.js → es-DvViVwvd.js} +3 -1
- package/components/{evolution-number-positioning.config-DWJlecZ8.cjs → evolution-number-positioning.config-CYyOIuVk.cjs} +1 -1
- package/components/{evolution-number-positioning.config-DogBtixy.js → evolution-number-positioning.config-VL8htBRQ.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-BrUtAgn8.js} +1 -1
- package/components/{filter-expression-picker-Dtd04YHa.cjs → filter-expression-picker-FKIEpvg6.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-BZbHQx0n.js} +5 -5
- package/components/{filter-item-QGXrunyl.cjs → filter-item-C8tt3MFg.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-_KpPQvwJ.cjs → filter-parameter-picker-msFqEEAh.cjs} +1 -1
- package/components/{filter-parameter-picker-Dq7rskJq.js → filter-parameter-picker-pioi6px3.js} +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-DUPgUphE.cjs → filter-value-picker-CgLTYLwU.cjs} +1 -1
- package/components/{filter-value-picker-DL-XI9zN.js → filter-value-picker-Drt9dOXf.js} +4 -4
- 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-DrtBsmhk.js → filter-value-picker-datetime-B0o4rlXW.js} +1 -1
- package/components/{filter-value-picker-datetime-BYosmOVo.cjs → filter-value-picker-datetime-D5W0j1CH.cjs} +1 -1
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +1 -1
- package/components/{filter-value-picker-hierarchy-Co7tEAF0.cjs → filter-value-picker-hierarchy-B1dnC37T.cjs} +1 -1
- package/components/{filter-value-picker-hierarchy-D9HPNjXi.js → filter-value-picker-hierarchy-BiUz-XXQ.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-BIvL94I1.cjs} +1 -1
- package/components/{filter-value-picker-numeric-CLRBOcom.js → filter-value-picker-numeric-BU7p1q3J.js} +1 -1
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -1
- package/components/{filters-hIID3Ol5.js → filters-Bq4S-VeF.js} +2 -2
- package/components/{filters-DPh6G5_6.cjs → filters-CC1WEkUl.cjs} +1 -1
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +1 -1
- package/components/{formula-DJa0m0vt.cjs → formula-DzlOfUfI.cjs} +1 -1
- package/components/{formula-D6fZk242.js → formula-_2SPG88m.js} +2 -2
- package/components/{formula-codemirror-ClMjdWte.cjs → formula-codemirror-BXT_tfaJ.cjs} +1 -1
- package/components/{formula-codemirror-CS38irmY.js → formula-codemirror-CLm2OLSy.js} +4 -4
- package/components/{formula-display-store-riWDbPmO.cjs → formula-display-store-DBdEPEdf.cjs} +1 -1
- package/components/{formula-display-store-BVCcrqMB.js → formula-display-store-nqONAx35.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-B65HPmmh.js} +5 -5
- package/components/{formula-editor-KuJjGn6h.cjs → formula-editor-DEo-RcGC.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-CXCuJ_sa.js} +1 -1
- package/components/{formula-field-BIseRR26.cjs → formula-field-DpPBypCh.cjs} +1 -1
- package/components/{formula-input-base-DhhV4mbQ.js → formula-input-base-DmjxzsEi.js} +1 -1
- package/components/{formula-input-base-B1D56Klw.cjs → formula-input-base-yBcGx5Oa.cjs} +1 -1
- package/components/{fr-BVATPudG.js → fr-CkDebjRX.js} +3 -1
- package/components/fr-CtsqUcEa.cjs +20 -0
- package/components/{funnel-chart-positioning.config-D7871iXX.js → funnel-chart-positioning.config-BU7QpgsX.js} +1 -1
- package/components/{funnel-chart-positioning.config-DswPJ8VG.cjs → funnel-chart-positioning.config-DbpJfDa2.cjs} +1 -1
- package/components/get-dataset-name-Dgmhqlon.cjs +20 -0
- package/components/{get-dataset-name-CXdZ2oH_.js → get-dataset-name-ffz-R0AZ.js} +9 -4
- package/components/{groupings-BwzDflId.js → groupings-DBsH-kNN.js} +1 -1
- package/components/{groupings-Dt2yC9fH.cjs → groupings-DH6XUvSc.cjs} +1 -1
- package/components/{heat-map-positioning.config-sZTsAUnf.js → heat-map-positioning.config-DHO5wFHL.js} +1 -1
- package/components/{heat-map-positioning.config-C9xyxr1p.cjs → heat-map-positioning.config-DkQjSPaE.cjs} +1 -1
- package/components/{heat-table-positioning.config-DSsD8apM.js → heat-table-positioning.config-BrJkuNbc.js} +1 -1
- package/components/{heat-table-positioning.config-B5XgRMIn.cjs → heat-table-positioning.config-mw5AsGAJ.cjs} +1 -1
- package/components/{hexbin-map-positioning.config-Dc9wAdAv.js → hexbin-map-positioning.config-D5hP-can.js} +1 -1
- package/components/{hexbin-map-positioning.config-Dq2TuFz1.cjs → hexbin-map-positioning.config-DLYBOrHE.cjs} +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-CcIWn6Tz.cjs → interactive-viz-item-CAuKz5tw.cjs} +1 -1
- package/components/{interactive-viz-item-wZ0r8XHx.js → interactive-viz-item-rLknJxre.js} +5 -5
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +1 -1
- package/components/{item-grid-B8tT6ztQ.cjs → item-grid-Bd3rXwND.cjs} +1 -1
- package/components/{item-grid-D7b0blK6.js → item-grid-jF9cv8_u.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-3sEzoA0L.js} +1 -1
- package/components/{item-option-B-Rgy3_8.cjs → item-option-DO2oJXcs.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-BhC0n29i.js → item-option-action-button-group-C4SxsHUp.js} +1 -1
- package/components/{item-option-action-button-group-BOOW6k_j.cjs → item-option-action-button-group-CebgGfxf.cjs} +1 -1
- package/components/{item-option-base-D1xRkleX.cjs → item-option-base-Gj1YRrI9.cjs} +1 -1
- package/components/{item-option-base-IMMzUkdt.js → item-option-base-Ierh9O_y.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-D6xT_kWC.js → item-option-color-palette-picker-CmD83j4z.js} +1 -1
- package/components/{item-option-color-palette-picker-DBqNzR3N.cjs → item-option-color-palette-picker-DXbPf9W-.cjs} +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-DPOYXmqG.js} +1 -1
- package/components/{item-option-color-picker-BqjtUtrr.cjs → item-option-color-picker-DctZh5Mm.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-9v7VYG0c.cjs} +1 -1
- package/components/{item-option-color-range-Cj5tryJo.js → item-option-color-range-DEOogOTv.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-8v9MZ0FH.js → item-option-guidelines-B115G2nq.js} +3 -3
- package/components/{item-option-guidelines-CgJEAiF5.cjs → item-option-guidelines-Bpg1RZ8x.cjs} +1 -1
- 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-BkqcX9zw.js → item-option-multi-language-field-B-u0bans.js} +1 -1
- package/components/{item-option-multi-language-field-D9NK-noK.cjs → item-option-multi-language-field-DBBhowms.cjs} +1 -1
- package/components/item-option-number-field/index.cjs +1 -1
- package/components/item-option-number-field/index.js +1 -1
- package/components/{item-option-number-field-BXZD_sC2.cjs → item-option-number-field-DMy08TP2.cjs} +1 -1
- package/components/{item-option-number-field-DHl0phm5.js → item-option-number-field-DkYnFmJW.js} +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-BNpgv1gX.cjs} +1 -1
- package/components/{item-option-panel-DOOOOgfV.js → item-option-panel-Cz6GVI3l.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-CmQFzBzN.js → item-option-picker-C9f4tyLr.js} +1 -1
- package/components/{item-option-picker-BUdP-MCI.cjs → item-option-picker-dmG9E9xR.cjs} +1 -1
- package/components/item-option-position-picker/index.cjs +1 -1
- package/components/item-option-position-picker/index.js +1 -1
- package/components/{item-option-position-picker-_2Dc6vhB.cjs → item-option-position-picker-CivQYly9.cjs} +1 -1
- package/components/{item-option-position-picker-CbnJ8Apk.js → item-option-position-picker-DNoDU6MW.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-C41FMT4C.cjs → item-option-positions-number-field-BBkQN71c.cjs} +1 -1
- package/components/{item-option-positions-number-field-B6JzEtSc.js → item-option-positions-number-field-DyyEdaPZ.js} +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--zidnOr9.js} +1 -1
- package/components/{item-option-radio-button-group-CjdCLmtq.cjs → item-option-radio-button-group-D0W86RmI.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-4vDy4etx.cjs} +1 -1
- package/components/{item-option-slider-slgdsaDM.js → item-option-slider-Baadoyqo.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-CS6kid_8.cjs → item-option-switch-BaQDqsMY.cjs} +1 -1
- package/components/{item-option-switch-Cd9UA7J5.js → item-option-switch-CHYIbPgD.js} +1 -1
- package/components/item-option-text-field/index.cjs +1 -1
- package/components/item-option-text-field/index.js +1 -1
- package/components/{item-option-text-field-BFP8YnEc.js → item-option-text-field-CZ02qLJ4.js} +1 -1
- package/components/{item-option-text-field-6Y1zBJMK.cjs → item-option-text-field-D92viGBN.cjs} +1 -1
- package/components/item-slot-drop/index.cjs +1 -1
- package/components/item-slot-drop/index.js +1 -1
- package/components/{item-slot-drop-Ds06u_vn.cjs → item-slot-drop-BU2U3-HV.cjs} +1 -1
- package/components/{item-slot-drop-BL7DOudd.js → item-slot-drop-C1z1dxFw.js} +5 -5
- 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-CA9-hvpd.js} +39 -39
- package/components/{item-slot-drop-panel-D_EFyM9J.cjs → item-slot-drop-panel-CrMdoDfz.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-Btmi-rsC.js} +6 -6
- package/components/{item-slot-picker-BbpPIoIq.cjs → item-slot-picker-DwgJiY3S.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-Bi8xZaYc.js → item-slot-picker-panel-BoSCNOU4.js} +3 -3
- package/components/{item-slot-picker-panel-DQLwQXdI.cjs → item-slot-picker-panel-HDUJLBsv.cjs} +1 -1
- package/components/{line-chart-positioning.config-CCsZMpp-.cjs → line-chart-positioning.config-BEf1yZXt.cjs} +1 -1
- package/components/{line-chart-positioning.config-q_XJiQBO.js → line-chart-positioning.config-BcxVwrHz.js} +1 -1
- package/components/{localized-mixin-BbOPy_BO.cjs → localized-mixin-9QFQ92Y7.cjs} +1 -1
- package/components/{localized-mixin-D1ss6vE4.js → localized-mixin-BXDzTsZA.js} +1 -1
- package/components/{marker-map-positioning.config-B4GDDPUn.cjs → marker-map-positioning.config-CrtimrEf.cjs} +1 -1
- package/components/{marker-map-positioning.config-qEo6YbOG.js → marker-map-positioning.config-DgjLNbIX.js} +1 -1
- package/components/nl-C6_ScX0J.cjs +20 -0
- package/components/{nl-D6PNT9zh.js → nl-b0wCsQJf.js} +3 -1
- package/components/{ohlc-chart-positioning.config-TquTA1gZ.cjs → ohlc-chart-positioning.config-BXQ8AWsP.cjs} +1 -1
- package/components/{ohlc-chart-positioning.config-CU7qaa8y.js → ohlc-chart-positioning.config-BvvfmqTO.js} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-DuQWnPKv.js → parallel-coordinates-plot-positioning.config-BH-BVeJ1.js} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-C8_F3uzs.cjs → parallel-coordinates-plot-positioning.config-afRUNe2y.cjs} +1 -1
- package/components/{pivot-table-positioning.config-B6ra1dbJ.js → pivot-table-positioning.config-BSYXa5pV.js} +1 -1
- package/components/{pivot-table-positioning.config-DhtDGn-Z.cjs → pivot-table-positioning.config-Dd_pHhFz.cjs} +1 -1
- package/components/{pyramid-chart-positioning.config-C_KASxlG.js → pyramid-chart-positioning.config-BLWa7sSn.js} +1 -1
- package/components/{pyramid-chart-positioning.config-5bWhJBP_.cjs → pyramid-chart-positioning.config-CQIxlqqB.cjs} +1 -1
- package/components/{radar-chart-positioning.config-l6ioKbxT.js → radar-chart-positioning.config-C8lJliO6.js} +1 -1
- package/components/{radar-chart-positioning.config-D2NVgsg1.cjs → radar-chart-positioning.config-Dl25YwXp.cjs} +1 -1
- package/components/{route-map-positioning.config-HDuhd3TI.js → route-map-positioning.config-CKX0xBYP.js} +1 -1
- package/components/{route-map-positioning.config-5Xju6VM-.cjs → route-map-positioning.config-zP_Dowc9.cjs} +1 -1
- package/components/{sankey-diagram-positioning.config-BXseVUED.cjs → sankey-diagram-positioning.config-Cxx05iu7.cjs} +1 -1
- package/components/{sankey-diagram-positioning.config-BKeksOQ2.js → sankey-diagram-positioning.config-wXM60Kuq.js} +1 -1
- package/components/{scatter-plot-positioning.config-Ci_UFZZ7.cjs → scatter-plot-positioning.config-6-jx5GCk.cjs} +1 -1
- package/components/{scatter-plot-positioning.config-MFGPELRh.js → scatter-plot-positioning.config-CnssCu8h.js} +1 -1
- package/components/{set-locale-B91FmqSp.js → set-locale-BHxiIDi2.js} +4 -4
- package/components/{set-locale-8XQ-p5_N.cjs → set-locale-CZowB-SY.cjs} +1 -1
- package/components/{slicer-filter-positioning.config-C2w10p-X.cjs → slicer-filter-positioning.config-5kOSDaxQ.cjs} +1 -1
- package/components/{slicer-filter-positioning.config-CKyzt_nF.js → slicer-filter-positioning.config-LR36iXmI.js} +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-BALLbLoG.cjs} +1 -1
- package/components/{slot-menu-JcmVjv2g.js → slot-menu-CQ440_t5.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-BI1x89t3.cjs} +1 -1
- package/components/{slot-menu-list-Bcm2lpwi.js → slot-menu-list-C2gWKwVd.js} +1 -1
- package/components/{speedometer-chart-positioning.config-BEWibjyH.js → speedometer-chart-positioning.config-Dmg94Tpt.js} +1 -1
- package/components/{speedometer-chart-positioning.config-Df5CIOwp.cjs → speedometer-chart-positioning.config-RJo6zE3F.cjs} +1 -1
- package/components/{spike-map-positioning.config-CdT1dVMG.js → spike-map-positioning.config-Ceyd_KZR.js} +1 -1
- package/components/{spike-map-positioning.config-C6aRn7nn.cjs → spike-map-positioning.config-CxQLToDu.cjs} +1 -1
- package/components/{strip-plot-positioning.config-DXJci5zk.cjs → strip-plot-positioning.config-DSRWJqxs.cjs} +1 -1
- package/components/{strip-plot-positioning.config-B8vN0A44.js → strip-plot-positioning.config-Dm3F1gk3.js} +1 -1
- package/components/{sunburst-chart-positioning.config-D-qWT3sC.js → sunburst-chart-positioning.config-B_dzmryh.js} +1 -1
- package/components/{sunburst-chart-positioning.config-XfxGkqp6.cjs → sunburst-chart-positioning.config-eJm51jNd.cjs} +1 -1
- package/components/{symbol-map-positioning.config-BB8-Feba.cjs → symbol-map-positioning.config-BgAOtKCY.cjs} +1 -1
- package/components/{symbol-map-positioning.config-CAC8XCec.js → symbol-map-positioning.config-DnRK53sm.js} +1 -1
- package/components/{treemap-chart-positioning.config-Daf9Kk3k.cjs → treemap-chart-positioning.config-BAeW42r1.cjs} +1 -1
- package/components/{treemap-chart-positioning.config-CJKe5rf1.js → treemap-chart-positioning.config-BaK7GoAz.js} +1 -1
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +2 -2
- package/components/{utils-BMmRy1Nn.js → utils-5XxVlM3x.js} +1 -1
- package/components/{utils-D9CBsoMV.cjs → utils-CNtoiiWk.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-ClSeknwP.cjs} +1 -1
- package/components/{venn-diagram-positioning.config-8pfbiReM.js → venn-diagram-positioning.config-Co6TTZdV.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-BSkDsdNg.cjs → viz-item-menu-MRVSyXuQ.cjs} +1 -1
- package/components/{viz-item-menu-CPqpF_PR.js → viz-item-menu-Tb9YmvWX.js} +1 -1
- package/components/{wordcloud-chart-positioning.config-DUazjx5M.js → wordcloud-chart-positioning.config-HAtoG48Z.js} +1 -1
- package/components/{wordcloud-chart-positioning.config-Cb7lzr9N.cjs → wordcloud-chart-positioning.config-f8JZ14LL.cjs} +1 -1
- package/custom-elements.json +66 -12
- package/package.json +2 -2
- 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-interaction-textarea-CMz5ixwt.cjs +0 -95
- 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/es-D3v9KL7a.cjs +0 -20
- package/components/fr-uvrkqpp_.cjs +0 -20
- package/components/get-dataset-name-CIt7of_Z.cjs +0 -20
- package/components/nl-DwF8NHcr.cjs +0 -20
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
e.setAttribute("data-luzmo-vars", ""), e.textContent = "html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-full-down: color-mix(in oklch, var(--luzmo-border-color-full), black 45%);--luzmo-border-color-full-focus: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-down: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 7%), black 1%);--luzmo-background-color-focus: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-highlight-down: color-mix(in oklch, var(--luzmo-background-color-highlight), black 20%);--luzmo-background-color-highlight-focus: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-alt-1: rgb(250, 250, 250);--luzmo-background-color-alt-2: rgb(239, 239, 239);--luzmo-border-width: 1px;--luzmo-shadow-color-rgb: 0, 0, 0;--luzmo-shadow-opacity: 0.1;--luzmo-shadow-color: rgba(var(--luzmo-shadow-color-rgb), var(--luzmo-shadow-opacity));--luzmo-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-font-color-down: color-mix(in oklch, var(--luzmo-font-color), black 20%);--luzmo-font-color-focus: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-scrollbar-size: 6px;--luzmo-scrollbar-width: thin;--luzmo-scrollbar-track-background: transparent;--luzmo-scrollbar-track-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-background: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-scrollbar-thumb-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-hover-background: rgba(var(--luzmo-border-color-rgb), 0.4);--luzmo-primary: #4434ff;--luzmo-primary-hover: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-down: color-mix(in oklch, var(--luzmo-primary), black 20%);--luzmo-primary-focus: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-down: color-mix(in oklch, var(--luzmo-secondary), black 20%);--luzmo-secondary-focus: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-secondary-outline: rgba(255, 0, 255, 0.2);--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-down: color-mix(in oklch, var(--luzmo-negative-color), black 20%);--luzmo-negative-color-focus: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-down: color-mix(in oklch, var(--luzmo-positive-color), black 20%);--luzmo-positive-color-focus: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-down: color-mix(in oklch, var(--luzmo-selected-color), black 45%);--luzmo-selected-color-focus: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-selected-color-hard-down: color-mix(in oklch, var(--luzmo-selected-color-hard), black 45%);--luzmo-selected-color-hard-focus: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}", document.head.appendChild(e);
|
|
25
25
|
}
|
|
26
26
|
})();
|
|
27
|
-
import { t as e } from "../ai-interaction-textarea-
|
|
27
|
+
import { t as e } from "../ai-interaction-textarea-BZAeZunP.js";
|
|
28
28
|
export { e as LuzmoAiInteractionTextarea };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { PromptBoxAttachment, PromptBoxFileIcons } from '@luzmo/lucero';
|
|
2
|
+
import type { Agent } from '../../types/agent.types';
|
|
2
3
|
import type { Dataset } from '../../types/dataset.types';
|
|
3
4
|
export type { PromptBoxAttachment, PromptBoxFileIcons };
|
|
4
5
|
export interface PromptSubmittedEventDetail {
|
|
5
6
|
prompt: string;
|
|
6
7
|
selectedDatasets: Dataset[];
|
|
8
|
+
selectedAgent: Agent | null;
|
|
7
9
|
attachments: PromptBoxAttachment[];
|
|
8
10
|
/** Signed image URLs from eager upload on attach, ordered to match image attachments. */
|
|
9
11
|
attachmentUrls: string[];
|
|
@@ -0,0 +1,98 @@
|
|
|
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-CZowB-SY.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-Dgmhqlon.cjs");require("./dataset-icon-BAV0S4sZ.cjs"),require("./dataset-selector-row-D9cQeVQi.cjs");let o=require("@luzmo/icons");require("@luzmo/lucero/icon");let s=require("lit"),c=require("lit/decorators.js"),l=require("@lit/localize");require("@luzmo/lucero/action-button"),require("@luzmo/lucero/prompt-box");let u=require("lit/directives/class-map.js");var d=20,f=[`image/png`,`image/jpeg`,`image/webp`,`image/gif`],p=new Set(f),m={png:`image/png`,jpg:`image/jpeg`,jpeg:`image/jpeg`,webp:`image/webp`,gif:`image/gif`};function h(e){try{return new URL(e).pathname.match(/\.([a-z0-9]+)$/i)?.[1]?.toLowerCase()}catch{return}}function g(e){try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function _(e){return p.has(e.toLowerCase())}function v(e){if(e.type)return _(e.type);let t=e.name.split(`.`).pop()?.toLowerCase();return!!(t&&m[t])}function y(e){if(!g(e))return!1;let t=h(e);return!!(t&&m[t])}function b(e){if(e.length>20)throw Error(`Too many image inputs: received ${e.length}, but the maximum is 20 per request.`);for(let t of e){if(!t.trim())throw Error(`Image input URL must be a non-empty string.`);if(!g(t))throw Error(`Image input URL must be an absolute http(s) URL. Received "${t}".`);let e=h(t);if(e&&!m[e])throw Error(`Unsupported image input URL "${t}". Only PNG, JPEG, WebP, and GIF image URLs are accepted.`)}}function x(e){if(e.length>20)throw Error(`Too many image inputs: received ${e.length}, but the maximum is 20 per request.`);for(let t of e){if(!v(t))throw Error(`Unsupported image attachment "${t.name}" (${t.type||`unknown type`}). Only PNG, JPEG, WebP, and GIF images are accepted.`);if(t.size===0)throw Error(`Image "${t.name}" is empty.`);if(t.size>15728640)throw Error(`Image "${t.name}" is too large. Maximum size is 15 MB.`)}}function S(e,t=`0.1.0`){return`${e.replace(/\/+$/,``)}/${t.replace(/^\/+|\/+$/g,``)}/upload`}function C(e){let{files:t,authKey:n,authToken:r,apiUrl:i,apiVersion:a=`0.1.0`,signal:o,fetchImpl:s=fetch}=e;if(!n||!r)return Promise.reject(Error(`Image upload requires authKey and authToken.`));let c=S(i,a),l=a.replace(/^\/+|\/+$/g,``)||`0.1.0`;return Promise.all(t.map(e=>w(e,{url:c,authKey:n,authToken:r,version:l,signal:o,fetchImpl:s})))}async function w(e,t){let{url:n,authKey:r,authToken:i,version:a,signal:o,fetchImpl:s}=t,c=new FormData;c.append(`key`,r),c.append(`token`,i),c.append(`version`,a),c.append(`action`,`create`),c.append(`properties.type`,`image`),c.append(`file`,e,e.name);let l=await s(n,{method:`POST`,body:c,signal:o,redirect:`error`});if(!l.ok){let t=await T(l);throw Error(`Image upload failed for "${e.name}" (${l.status})${t?`: ${t}`:`.`}`)}let u=await l.json(),d=typeof u?.url==`string`?u.url.trim():``;if(!d)throw Error(`Image upload for "${e.name}" did not return a url.`);return d}async function T(e){try{return(await e.text()).trim().slice(0,200)}catch{return``}}function E(e,t=`0.1.0`){return`${e.replace(/\/+$/,``)}/${t.replace(/^\/+|\/+$/g,``)}/aidictation`}function D(e){let{authKey:t,authToken:n,audioBase64:r,mimeType:i,apiVersion:a=`0.1.0`,stream:o=!0,language:s}=e;return{key:t,token:n,action:`create`,version:a,properties:{audio:r,mimetype:i,stream:o,...s?{language:s}:{}}}}async function O(e){let t=await e.arrayBuffer(),n=new Uint8Array(t),r=32768,i=``;for(let e=0;e<n.length;e+=r){let t=n.subarray(e,e+r);i+=String.fromCharCode(...t)}return btoa(i)}async function k(e){let{audioBlob:t,mimeType:n,authKey:r,authToken:i,apiUrl:a,apiVersion:o=`0.1.0`,language:s,signal:c,onDelta:l,fetchImpl:u=fetch}=e;if(!r||!i)throw Error(`Voice transcription requires authKey and authToken.`);if(!t||t.size===0)throw Error(`Voice transcription requires a non-empty audio recording.`);let d=await O(t),f=E(a,o),p=D({authKey:r,authToken:i,audioBase64:d,mimeType:n||t.type||`audio/webm`,apiVersion:o,stream:!0,language:s}),m=await u(f,{method:`POST`,headers:{"Content-Type":`application/json`},mode:`cors`,redirect:`error`,body:JSON.stringify(p),signal:c});if(!m.ok){let e=await F(m);throw Error(`Voice transcription failed (${m.status})${e?`: ${e}`:`.`}`)}if(!m.body)throw Error(`Voice transcription response body is not readable.`);await N(m.body,e=>{let t=A(e);t&&l(t)})}function A(e){return e.type===`text_delta`&&typeof e.delta==`string`?e.delta:typeof e.text_delta==`string`?e.text_delta:``}var j=/^[a-z]+:/i;function M(e){let t=e.trim();if(!t||t.startsWith(`:`))return null;let n=t;if(n.startsWith(`data:`))n=n.slice(5).trimStart();else if(j.test(n))return null;return!n||n===`[DONE]`?null:JSON.parse(n)}async function N(e,t){let n=e.getReader(),r=new TextDecoder,i=``;try{for(;;){let{done:e,value:a}=await n.read();if(e)break;i+=r.decode(a,{stream:!0});let o=i.split(/\r?\n/);i=o.pop()??``;for(let e of o)P(e,t)}i+=r.decode();let e=i.trim();e&&P(e,t)}finally{n.releaseLock()}}function P(e,t){let n=M(e);n&&t(n)}async function F(e){try{return(await e.text()).trim().slice(0,200)}catch{return``}}var I=`:host{box-sizing:border-box;display:block}:host .content-wrapper{flex-direction:column;display:flex}:host .content-wrapper.single-line{align-items:stretch}:host .content-wrapper.disabled{opacity:var(--luzmo-ai-interaction-textarea-disabled-opacity,var(--ai-interaction-textarea-disabled-opacity));pointer-events:none;cursor:not-allowed}:host .content-wrapper.disabled *{pointer-events:none}:host luzmo-prompt-box{--luzmo-prompt-box-attachments-gap:var(--luzmo-spacing-3,8px);--luzmo-prompt-box-border-radius:var(--ai-interaction-textarea-prompt-box-border-radius);inline-size:100%}:host .attachment-error{color:var(--luzmo-negative-color,#ca221c);font-size:var(--luzmo-font-size-s,12px);margin-block-start:var(--luzmo-spacing-2,4px);line-height:1.4}:host{--ai-interaction-textarea-disabled-opacity:.6;--ai-interaction-textarea-prompt-box-border-radius:var(--luzmo-prompt-box-border-radius,var(--luzmo-border-radius-l,8px))}`,L=3e3,R=6e4,z=class extends s.LitElement{constructor(...e){super(...e),this.placeholder=`Type your prompt here...`,this.selectedDatasets=[],this.authKey=``,this.authToken=``,this.apiUrl=`https://api.luzmo.com`,this.appServer=`https://app.luzmo.com`,this.includePublicDatasets=!1,this.disabled=!1,this.singleLine=!1,this.hideDatasetButton=!1,this.hideDatasetIcons=!1,this.maxVisibleSelectedDatasets=5,this.selectedAgent=null,this.disableDatasetModification=!1,this.hideSelectedDatasets=!1,this.disableColumnMentions=!1,this.isGenerating=!1,this.stoppable=!1,this.value=``,this.retainOnSubmit=!1,this.requireDataset=!1,this.allowImages=!1,this.allowVoiceInput=!1,this.acceptedFileTypes=[],this.apiVersion=`0.1.0`,this.fileIcons={},this._promptValue=``,this._isPromptValid=!1,this._fieldTriggerOptions=[],this._datasetsFieldConfig=[],this._attachmentError=null,this._isRecording=!1,this._isTranscribing=!1,this._activeFieldRequestId=0,this._attachmentUploads=new Map,this._pendingAttachmentSync=null,this._attachmentSyncScheduled=!1,this._attachmentErrorClearHandle=0,this._submitInProgress=!1,this._voiceSessionActive=!1,this._preRecordingValue=``,this._voicePrefix=``,this._voiceSuffix=``,this._streamedTranscript=``,this._transcriptionController=null,this._renderFieldTriggerIcon=e=>{let t=e.data?.datasetInfo;return e.header&&t?s.html`
|
|
21
|
+
<span>
|
|
22
|
+
${this.hideDatasetIcons?s.html`<luzmo-icon .icon=${o.luzmoPlugin} size="s"></luzmo-icon>`:s.html`
|
|
23
|
+
<luzmo-dataset-icon
|
|
24
|
+
.datasetInfo=${t}
|
|
25
|
+
size="16px"
|
|
26
|
+
app-url=${this.appServer}
|
|
27
|
+
></luzmo-dataset-icon>
|
|
28
|
+
`}
|
|
29
|
+
</span>
|
|
30
|
+
`:e.icon?s.html`
|
|
31
|
+
<span>
|
|
32
|
+
<luzmo-icon .icon=${e.icon} size="s"></luzmo-icon>
|
|
33
|
+
</span>
|
|
34
|
+
`:s.nothing},this._handleAttachClick=()=>{this.openFilePicker()},this._handleAttachmentsChange=e=>{this._pendingAttachmentSync=e.detail?.attachments??this.getAttachments(),!this._attachmentSyncScheduled&&(this._attachmentSyncScheduled=!0,queueMicrotask(()=>{if(this._attachmentSyncScheduled=!1,!this.isConnected){this._pendingAttachmentSync=null;return}let e=this._pendingAttachmentSync??this.getAttachments();this._pendingAttachmentSync=null,this._syncAttachments(e)}))},this._handleVoiceKeydown=e=>{e.key===`Escape`&&this._isTranscribing&&(e.preventDefault(),e.stopPropagation(),this._cancelVoiceSession())},this._handleRecord=e=>{if(e.stopPropagation(),e.detail?.isRecording){this._captureVoiceInsertPoint(),this._isRecording=!0,this._isTranscribing=!1;return}this._isRecording=!1},this._handleRecordCancel=e=>{e.stopPropagation(),this._cancelVoiceSession()},this._handleRecordError=e=>{e.stopPropagation(),this._abortTranscription(),this._resetVoiceSessionState();let t=e.detail?.error?.trim()||(0,l.msg)(`Voice recording failed`,{desc:`Error when microphone recording fails in the AI prompt`});this._showAttachmentError(t)},this._handleRecordingComplete=e=>{e.stopPropagation();let{audioBlob:t,mimeType:n}=e.detail??{};if(!t){this._resetVoiceSessionState();return}this._transcribeRecording(t,n||t.type||`audio/webm`)}}static{this.styles=(0,s.unsafeCSS)(I)}static{this.tagName=`luzmo-ai-interaction-textarea`}get flagOpendata(){return this.includePublicDatasets}set flagOpendata(e){this.includePublicDatasets=e}get _voiceBusy(){return this._isRecording||this._isTranscribing}get _buttonDisabled(){return this.disabled||this.isGenerating||this._voiceBusy||!this._isPromptValid?!0:this.requireDataset&&this.selectedDatasets.length===0&&!this.selectedAgent}get _promptPending(){return this.isGenerating||this._isTranscribing}get _promptReadonly(){return this._voiceBusy}get _actionsDisabled(){return this.disabled||this.isGenerating||this._voiceBusy}get _fieldTriggers(){return this.disableColumnMentions?[]:[{key:`@`,options:this._fieldTriggerOptions,highlightSearch:!0,iconTemplate:this._renderFieldTriggerIcon}]}connectedCallback(){super.connectedCallback(),this._configureBroker(),this._refreshDatasetsFieldConfig(),this.addEventListener(`keydown`,this._handleVoiceKeydown)}disconnectedCallback(){window.clearTimeout(this._attachmentErrorClearHandle),this._abortAllAttachmentUploads(),this._abortTranscription(),this.removeEventListener(`keydown`,this._handleVoiceKeydown),super.disconnectedCallback()}_configureBroker(){n.t.configure({authKey:this.authKey,authToken:this.authToken,apiUrl:this.apiUrl})}_handlePromptInput(e){let t=e.target.value??``;this._promptValue=t,this._isPromptValid=t.trim().length>0}openFilePicker(){this._promptBox?.openFilePicker()}addFiles(e){return this._promptBox?.addFiles(e)??[]}removeAttachment(e){this._cleanupAttachmentUpload(e),this._promptBox?.removeAttachment(e)}setAttachmentLoading(e,t){this._promptBox?.setAttachmentLoading(e,t)}clearAttachments(){this._abortAllAttachmentUploads(),this._promptBox?.clearAttachments()}getAttachments(){return this._promptBox?.getAttachments()??[]}getAttachmentUrls(e=this.getAttachments()){return e.map(e=>this._attachmentUploads.get(e.id)?.url).filter(e=>typeof e==`string`&&e.length>0)}_showAttachmentError(e){this._attachmentError=e,window.clearTimeout(this._attachmentErrorClearHandle),this._attachmentErrorClearHandle=window.setTimeout(()=>{this._attachmentError=null},L)}_cleanupAttachmentUpload(e){this._attachmentUploads.get(e)?.controller?.abort(),this._attachmentUploads.delete(e)}_abortAllAttachmentUploads(){for(let e of this._attachmentUploads.values())e.controller?.abort();this._attachmentUploads.clear()}async _uploadSingleFile(e,t){let n=``;if(typeof this.uploadAttachments==`function`){let r=await this.uploadAttachments([e],{signal:t});n=Array.isArray(r)?r[0]?.trim()??``:``}else{if(!this.authKey||!this.authToken)throw Error(`Image upload requires authKey and authToken.`);let[r]=await C({files:[e],authKey:this.authKey,authToken:this.authToken,apiUrl:this.apiUrl,apiVersion:this.apiVersion,signal:t});n=r?.trim()??``}if(!n)throw Error(`Image upload for "${e.name}" did not return a url.`);return b([n]),n}_startAttachmentUpload(e){let{id:t,file:n}=e;if(!n){this.removeAttachment(t);return}if(!v(n)){this.removeAttachment(t),this._showAttachmentError((0,l.msg)(`Only PNG, JPEG, WebP, and GIF images can be attached.`,{desc:`Error when the user attaches an unsupported image type to the AI prompt`}));return}if(n.size===0){this.removeAttachment(t),this._showAttachmentError((0,l.msg)(`Failed to attach image`,{desc:`Error when an AI prompt image upload fails`}));return}if(n.size>15728640){this.removeAttachment(t),this._showAttachmentError((0,l.msg)(`Image is too large. Maximum size is 15 MB.`,{desc:`Error when an attached AI prompt image exceeds the 15 MB upload limit`}));return}this.setAttachmentLoading(t,!0);let r=new AbortController,i={controller:r};this._attachmentUploads.set(t,i);let a=window.setTimeout(()=>r.abort(),R),o=()=>{this.removeAttachment(t),this._showAttachmentError((0,l.msg)(`Failed to attach image`,{desc:`Error when an AI prompt image upload fails`}))};i.promise=(async()=>{try{let e=await this._uploadSingleFile(n,r.signal);window.clearTimeout(a);let i=this._attachmentUploads.get(t);if(!i||i.controller!==r)return;i.url=e,i.controller=void 0,i.promise=void 0,this.setAttachmentLoading(t,!1)}catch(e){if(window.clearTimeout(a),r.signal.aborted||e?.name===`AbortError`){this._attachmentUploads.get(t)?.controller===r&&o();return}o()}})()}_syncAttachments(e){let t=new Set(e.map(e=>e.id));for(let e of Array.from(this._attachmentUploads.keys()))t.has(e)||this._cleanupAttachmentUpload(e);let n=!1;for(let t of e)if(!this._attachmentUploads.has(t.id)){if(this._attachmentUploads.size>=20){n=!0,this._promptBox?.removeAttachment(t.id);continue}this._startAttachmentUpload(t)}n&&this._showAttachmentError((0,l.msg)(l.str`You can attach up to ${20} images.`,{desc:`Error when the user tries to attach more images than the AI prompt allows`}))}async _waitForAttachmentUploads(e){let t=e.map(e=>this._attachmentUploads.get(e.id)?.promise).filter(e=>!!e);t.length!==0&&await Promise.all(t)}async _submitPrompt(e=this._promptValue,t=[]){if(this._promptValue=e,this._isPromptValid=e.trim().length>0,!(this._buttonDisabled||this._submitInProgress)){this._submitInProgress=!0;try{let n=e.trim(),r=t.length>0?[...t]:this.getAttachments(),i=r.filter(e=>!!e.file&&v(e.file));await this._waitForAttachmentUploads(i);let a=[];for(let e of i){let t=this._attachmentUploads.get(e.id)?.url;if(!t){this._showAttachmentError((0,l.msg)(`Failed to attach image`,{desc:`Error when an AI prompt image upload fails`}));return}a.push(t)}this.retainOnSubmit||(this._promptValue=``,this._isPromptValid=!1,this._abortAllAttachmentUploads(),this._promptBox?.clear()),this.dispatchEvent(new CustomEvent(`prompt-submitted`,{detail:{prompt:n,selectedDatasets:this.selectedDatasets,selectedAgent:this.selectedAgent??null,attachments:r,attachmentUrls:a},bubbles:!0,composed:!0}))}finally{this._submitInProgress=!1}}}_handleDatasetSelected(e){let t=e.detail;this.selectedDatasets.some(e=>e.id===t.id)||(this.selectedDatasets=[...this.selectedDatasets,t])}_handleDatasetRemoved(e){let t=e.detail;this.selectedDatasets=this.selectedDatasets.filter(e=>e.id!==t.id)}_handleAgentSelected(e){this.selectedAgent=e.detail}_handleAgentRemoved(){this.selectedAgent=null}_getLocalizedFieldLabel(e){if(e)return typeof e==`string`?e:i.t(e,t.t())}_mapColumnToTriggerOption(e,t){return t.id?{label:this._getLocalizedFieldLabel(t.name)||t.id,value:`${e}:column:${t.id}`,icon:r.t(t,`s`),elementType:`data-field`,data:{datasetId:e,columnId:t.id,type:t.type,subtype:t.subtype}}:null}_mapFormulaToTriggerOption(e,t){return t.id?{label:this._getLocalizedFieldLabel(t.name)||t.id,value:`${e}:formula:${t.id}`,icon:r.r.formula[r.i(`s`)],elementType:`data-field`,data:{datasetId:e,formulaId:t.id,type:t.type,subtype:t.subtype}}:null}_updateFieldTriggerOptionsFromConfig(){let e=new Map(this._datasetsFieldConfig.map(e=>[e.id,e])),t=[];for(let n of this.selectedDatasets){let r=e.get(n.id),i=[],o=r?.columns?.filter(e=>!e.hidden)??[];for(let e of o){let t=this._mapColumnToTriggerOption(n.id,e);t&&i.push(t)}let s=r?.formulas?.filter(e=>!e.hidden)??[];for(let e of s){let t=this._mapFormulaToTriggerOption(n.id,e);t&&i.push(t)}i.length!==0&&(t.push({label:a.t(n),value:`dataset-header:${n.id}`,header:!0,data:{datasetInfo:n}}),t.push(...i))}this._fieldTriggerOptions=t}async _refreshDatasetsFieldConfig(){if(this.disableColumnMentions){this._datasetsFieldConfig=[],this._fieldTriggerOptions=[];return}let e=[...new Set(this.selectedDatasets.map(e=>e.id).filter(Boolean))];if(e.length===0){this._datasetsFieldConfig=[],this._fieldTriggerOptions=[];return}let t=++this._activeFieldRequestId;this._updateFieldTriggerOptionsFromConfig();try{let r=await n.t.fetchDatasetsWithColumnsAndFormulas(e);if(t!==this._activeFieldRequestId)return;this._datasetsFieldConfig=r,this._updateFieldTriggerOptionsFromConfig()}catch(e){console.error(`Error loading dataset fields for prompt triggers:`,e),t===this._activeFieldRequestId&&(this._datasetsFieldConfig=[],this._updateFieldTriggerOptionsFromConfig())}}_handlePromptSubmit(e){this._submitPrompt(e.detail?.value??this._promptValue,e.detail?.attachments??[])}_handlePromptStop(e){if(e.stopPropagation(),this._isTranscribing){this._cancelVoiceSession();return}this.dispatchEvent(new CustomEvent(`prompt-stopped`,{bubbles:!0,composed:!0}))}_getCaretTextOffset(){let e=this._promptBox?.shadowRoot;if(!e)return this._promptValue.length;let t=e.querySelector(`.rich-input`)??e.querySelector(`luzmo-text-field`);if(!t)return this._promptValue.length;let n=e.getSelection?.()??document.getSelection();if(!n||n.rangeCount===0)return this._promptValue.length;let r=n.getRangeAt(0);if(!t.contains(r.startContainer))return this._promptValue.length;let i=r.cloneRange();return i.selectNodeContents(t),i.setEnd(r.startContainer,r.startOffset),i.toString().length}_setPromptText(e){this._promptValue=e,this._isPromptValid=e.trim().length>0,this._syncControlledValueToPromptBox()}_captureVoiceInsertPoint(){let e=Math.min(Math.max(this._getCaretTextOffset(),0),this._promptValue.length);this._preRecordingValue=this._promptValue,this._voicePrefix=this._promptValue.slice(0,e),this._voiceSuffix=this._promptValue.slice(e),this._streamedTranscript=``,this._voiceSessionActive=!0}_applyStreamedTranscript(){this._setPromptText(`${this._voicePrefix}${this._streamedTranscript}${this._voiceSuffix}`)}_resetVoiceSessionState(){this._isRecording=!1,this._isTranscribing=!1,this._streamedTranscript=``,this._voicePrefix=``,this._voiceSuffix=``,this._preRecordingValue=``,this._voiceSessionActive=!1}_abortTranscription(){this._transcriptionController?.abort(),this._transcriptionController=null}_cancelVoiceSession(){if(!this._voiceSessionActive){this._abortTranscription(),this._resetVoiceSessionState();return}let e=this._preRecordingValue;this._abortTranscription(),this._resetVoiceSessionState(),this._setPromptText(e)}async _transcribeRecording(e,t){this._abortTranscription();let n=new AbortController;this._transcriptionController=n,this._isRecording=!1,this._isTranscribing=!0,this._streamedTranscript=``;try{if(await k({audioBlob:e,mimeType:t,authKey:this.authKey,authToken:this.authToken,apiUrl:this.apiUrl,apiVersion:this.apiVersion,signal:n.signal,onDelta:e=>{n.signal.aborted||(this._streamedTranscript+=e,this._applyStreamedTranscript())}}),n.signal.aborted)return;this._resetVoiceSessionState()}catch(e){if(n.signal.aborted)return;console.error(`Voice transcription failed:`,e),this._setPromptText(this._preRecordingValue),this._resetVoiceSessionState(),this._showAttachmentError((0,l.msg)(`Failed to transcribe audio`,{desc:`Error when AI prompt voice transcription fails`}))}finally{this._transcriptionController===n&&(this._transcriptionController=null)}}_syncControlledValueToPromptBox(){let e=this._promptBox;if(!e?.allowElements){e&&(e.value=this._promptValue);return}e.segments=this._promptValue?[{type:`text`,value:this._promptValue}]:[]}willUpdate(e){e.has(`value`)&&(this._promptValue=this.value,this._isPromptValid=this.value.trim().length>0);let t=e.has(`authKey`)||e.has(`authToken`)||e.has(`apiUrl`);t&&this._configureBroker(),(t||e.has(`selectedDatasets`)||e.has(`disableColumnMentions`))&&this._refreshDatasetsFieldConfig()}updated(e){super.updated(e),e.has(`value`)&&this._syncControlledValueToPromptBox()}render(){return s.html`
|
|
35
|
+
<div class=${(0,u.classMap)({"content-wrapper":!0,disabled:this.disabled,"single-line":this.singleLine})} aria-busy=${this.isGenerating||this._voiceBusy?`true`:`false`}>
|
|
36
|
+
<luzmo-prompt-box
|
|
37
|
+
?single-line=${this.singleLine}
|
|
38
|
+
?pending=${this._promptPending}
|
|
39
|
+
?stoppable=${this.stoppable&&this.isGenerating||this._isTranscribing}
|
|
40
|
+
?disabled=${this.disabled}
|
|
41
|
+
?readonly=${this._promptReadonly}
|
|
42
|
+
?disable-submit=${this._buttonDisabled}
|
|
43
|
+
?allow-images=${this.allowImages}
|
|
44
|
+
?recording=${this.allowVoiceInput}
|
|
45
|
+
.acceptedFileTypes=${this.acceptedFileTypes}
|
|
46
|
+
.fileIcons=${this.fileIcons}
|
|
47
|
+
grows
|
|
48
|
+
allow-elements
|
|
49
|
+
.placeholder=${this.placeholder}
|
|
50
|
+
.value=${this._promptValue}
|
|
51
|
+
.triggers=${this._fieldTriggers}
|
|
52
|
+
@input=${this._handlePromptInput}
|
|
53
|
+
@luzmo-submit=${this._handlePromptSubmit}
|
|
54
|
+
@luzmo-stop=${this._handlePromptStop}
|
|
55
|
+
@luzmo-attachments-change=${this._handleAttachmentsChange}
|
|
56
|
+
@luzmo-record=${this._handleRecord}
|
|
57
|
+
@luzmo-recording-complete=${this._handleRecordingComplete}
|
|
58
|
+
@luzmo-record-cancel=${this._handleRecordCancel}
|
|
59
|
+
@luzmo-record-error=${this._handleRecordError}
|
|
60
|
+
>
|
|
61
|
+
${this.hideSelectedDatasets||this.hideDatasetButton?``:s.html`
|
|
62
|
+
<luzmo-dataset-selector-row
|
|
63
|
+
slot="top-actions"
|
|
64
|
+
.selectedDatasets=${this.selectedDatasets}
|
|
65
|
+
.selectedAgent=${this.selectedAgent}
|
|
66
|
+
.maxVisibleSelectedDatasets=${this.maxVisibleSelectedDatasets}
|
|
67
|
+
auth-key=${this.authKey}
|
|
68
|
+
auth-token=${this.authToken}
|
|
69
|
+
api-url=${this.apiUrl}
|
|
70
|
+
app-server=${this.appServer}
|
|
71
|
+
?include-public-datasets=${this.includePublicDatasets}
|
|
72
|
+
?hide-dataset-icons=${this.hideDatasetIcons}
|
|
73
|
+
?disabled=${this._actionsDisabled}
|
|
74
|
+
?disable-dataset-modification=${this.disableDatasetModification}
|
|
75
|
+
@dataset-selected=${this._handleDatasetSelected}
|
|
76
|
+
@dataset-removed=${this._handleDatasetRemoved}
|
|
77
|
+
@luzmo-agent-selected=${this._handleAgentSelected}
|
|
78
|
+
@luzmo-agent-removed=${this._handleAgentRemoved}
|
|
79
|
+
></luzmo-dataset-selector-row>
|
|
80
|
+
`}
|
|
81
|
+
${this.allowImages?s.html`
|
|
82
|
+
<luzmo-action-button
|
|
83
|
+
slot="bottom-actions"
|
|
84
|
+
size="m"
|
|
85
|
+
quiet
|
|
86
|
+
?disabled=${this._actionsDisabled}
|
|
87
|
+
label=${(0,l.msg)(`Add attachments`,{desc:`Accessible label for the AI prompt attachment button`})}
|
|
88
|
+
@click=${this._handleAttachClick}
|
|
89
|
+
>
|
|
90
|
+
<luzmo-icon slot="icon" size="m" .icon=${o.luzmoPaperclip}></luzmo-icon>
|
|
91
|
+
</luzmo-action-button>
|
|
92
|
+
`:s.nothing}
|
|
93
|
+
</luzmo-prompt-box>
|
|
94
|
+
${this._attachmentError?s.html`
|
|
95
|
+
<div class="attachment-error" role="alert">${this._attachmentError}</div>
|
|
96
|
+
`:s.nothing}
|
|
97
|
+
</div>
|
|
98
|
+
`}};e.t([(0,c.property)({type:String})],z.prototype,`placeholder`,void 0),e.t([(0,c.property)({type:Array})],z.prototype,`selectedDatasets`,void 0),e.t([(0,c.property)({type:String,attribute:`auth-key`})],z.prototype,`authKey`,void 0),e.t([(0,c.property)({type:String,attribute:`auth-token`})],z.prototype,`authToken`,void 0),e.t([(0,c.property)({type:String,attribute:`api-url`})],z.prototype,`apiUrl`,void 0),e.t([(0,c.property)({type:String,attribute:`app-server`})],z.prototype,`appServer`,void 0),e.t([(0,c.property)({type:Boolean,reflect:!0,attribute:`include-public-datasets`})],z.prototype,`includePublicDatasets`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`flag-opendata`})],z.prototype,`flagOpendata`,null),e.t([(0,c.property)({type:Boolean,reflect:!0,attribute:`disabled`})],z.prototype,`disabled`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`single-line`})],z.prototype,`singleLine`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`hide-dataset-button`})],z.prototype,`hideDatasetButton`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`hide-dataset-icons`})],z.prototype,`hideDatasetIcons`,void 0),e.t([(0,c.property)({type:Number,reflect:!0,useDefault:!0,attribute:`max-visible-selected-datasets`})],z.prototype,`maxVisibleSelectedDatasets`,void 0),e.t([(0,c.property)({attribute:!1})],z.prototype,`selectedAgent`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`disable-dataset-modification`})],z.prototype,`disableDatasetModification`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`hide-selected-datasets`})],z.prototype,`hideSelectedDatasets`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`disable-column-mentions`})],z.prototype,`disableColumnMentions`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`is-generating`})],z.prototype,`isGenerating`,void 0),e.t([(0,c.property)({type:Boolean,reflect:!0})],z.prototype,`stoppable`,void 0),e.t([(0,c.property)({type:String})],z.prototype,`value`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`retain-on-submit`})],z.prototype,`retainOnSubmit`,void 0),e.t([(0,c.property)({type:Boolean,attribute:`require-dataset`})],z.prototype,`requireDataset`,void 0),e.t([(0,c.property)({type:Boolean,reflect:!0,attribute:`allow-images`})],z.prototype,`allowImages`,void 0),e.t([(0,c.property)({type:Boolean,reflect:!0,attribute:`allow-voice-input`})],z.prototype,`allowVoiceInput`,void 0),e.t([(0,c.property)({type:Array,attribute:`accepted-file-types`})],z.prototype,`acceptedFileTypes`,void 0),e.t([(0,c.property)({type:String,attribute:`api-version`})],z.prototype,`apiVersion`,void 0),e.t([(0,c.property)({attribute:!1})],z.prototype,`uploadAttachments`,void 0),e.t([(0,c.property)({attribute:!1})],z.prototype,`fileIcons`,void 0),e.t([(0,c.state)()],z.prototype,`_promptValue`,void 0),e.t([(0,c.state)()],z.prototype,`_isPromptValid`,void 0),e.t([(0,c.state)()],z.prototype,`_fieldTriggerOptions`,void 0),e.t([(0,c.state)()],z.prototype,`_datasetsFieldConfig`,void 0),e.t([(0,c.state)()],z.prototype,`_attachmentError`,void 0),e.t([(0,c.state)()],z.prototype,`_isRecording`,void 0),e.t([(0,c.state)()],z.prototype,`_isTranscribing`,void 0),e.t([(0,c.query)(`luzmo-prompt-box`)],z.prototype,`_promptBox`,void 0),z=e.t([(0,l.localized)()],z),customElements.get(`luzmo-ai-interaction-textarea`)||customElements.define(`luzmo-ai-interaction-textarea`,z),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return x}});
|
package/components/{ai-interaction-textarea-uc14Goa4.js → ai-interaction-textarea-BZAeZunP.js}
RENAMED
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
20
|
import { t as e } from "./decorate-DyMgX_Uh.js";
|
|
21
|
-
import { t } from "./set-locale-
|
|
21
|
+
import { t } from "./set-locale-BHxiIDi2.js";
|
|
22
22
|
import { t as n } from "./data-broker-B0uUO5er.js";
|
|
23
23
|
import { i as r, r as i, t as a } from "./calculate-data-field-icon-DrSg1PuD.js";
|
|
24
24
|
import { t as o } from "./localize-BT7REYBY.js";
|
|
25
|
-
import { t as s } from "./get-dataset-name-
|
|
25
|
+
import { t as s } from "./get-dataset-name-ffz-R0AZ.js";
|
|
26
26
|
import "./dataset-icon-CWT5Ju8w.js";
|
|
27
|
-
import "./dataset-selector-row-
|
|
27
|
+
import "./dataset-selector-row-BR5fZlp0.js";
|
|
28
28
|
import { luzmoPaperclip as c, luzmoPlugin as l } from "@luzmo/icons";
|
|
29
29
|
import "@luzmo/lucero/icon";
|
|
30
30
|
import { LitElement as u, html as d, nothing as f, unsafeCSS as p } from "lit";
|
|
@@ -236,7 +236,7 @@ async function G(e) {
|
|
|
236
236
|
//#region src/components/ai-interaction-textarea/ai-interaction-textarea.module.scss?inline
|
|
237
237
|
var K = ":host{box-sizing:border-box;display:block}:host .content-wrapper{flex-direction:column;display:flex}:host .content-wrapper.single-line{align-items:stretch}:host .content-wrapper.disabled{opacity:var(--luzmo-ai-interaction-textarea-disabled-opacity,var(--ai-interaction-textarea-disabled-opacity));pointer-events:none;cursor:not-allowed}:host .content-wrapper.disabled *{pointer-events:none}:host luzmo-prompt-box{--luzmo-prompt-box-attachments-gap:var(--luzmo-spacing-3,8px);--luzmo-prompt-box-border-radius:var(--ai-interaction-textarea-prompt-box-border-radius);inline-size:100%}:host .attachment-error{color:var(--luzmo-negative-color,#ca221c);font-size:var(--luzmo-font-size-s,12px);margin-block-start:var(--luzmo-spacing-2,4px);line-height:1.4}:host{--ai-interaction-textarea-disabled-opacity:.6;--ai-interaction-textarea-prompt-box-border-radius:var(--luzmo-prompt-box-border-radius,var(--luzmo-border-radius-l,8px))}", q = 3e3, J = 6e4, Y = class extends u {
|
|
238
238
|
constructor(...e) {
|
|
239
|
-
super(...e), this.placeholder = "Type your prompt here...", this.selectedDatasets = [], this.authKey = "", this.authToken = "", this.apiUrl = "https://api.luzmo.com", this.appServer = "https://app.luzmo.com", this.includePublicDatasets = !1, this.disabled = !1, this.singleLine = !1, this.hideDatasetButton = !1, this.hideDatasetIcons = !1, this.maxVisibleSelectedDatasets = 5, this.disableDatasetModification = !1, this.hideSelectedDatasets = !1, this.disableColumnMentions = !1, this.isGenerating = !1, this.stoppable = !1, this.value = "", this.retainOnSubmit = !1, this.requireDataset = !1, this.allowImages = !1, this.allowVoiceInput = !1, this.acceptedFileTypes = [], this.apiVersion = "0.1.0", this.fileIcons = {}, this._promptValue = "", this._isPromptValid = !1, this._fieldTriggerOptions = [], this._datasetsFieldConfig = [], this._attachmentError = null, this._isRecording = !1, this._isTranscribing = !1, this._activeFieldRequestId = 0, this._attachmentUploads = /* @__PURE__ */ new Map(), this._pendingAttachmentSync = null, this._attachmentSyncScheduled = !1, this._attachmentErrorClearHandle = 0, this._submitInProgress = !1, this._voiceSessionActive = !1, this._preRecordingValue = "", this._voicePrefix = "", this._voiceSuffix = "", this._streamedTranscript = "", this._transcriptionController = null, this._renderFieldTriggerIcon = (e) => {
|
|
239
|
+
super(...e), this.placeholder = "Type your prompt here...", this.selectedDatasets = [], this.authKey = "", this.authToken = "", this.apiUrl = "https://api.luzmo.com", this.appServer = "https://app.luzmo.com", this.includePublicDatasets = !1, this.disabled = !1, this.singleLine = !1, this.hideDatasetButton = !1, this.hideDatasetIcons = !1, this.maxVisibleSelectedDatasets = 5, this.selectedAgent = null, this.disableDatasetModification = !1, this.hideSelectedDatasets = !1, this.disableColumnMentions = !1, this.isGenerating = !1, this.stoppable = !1, this.value = "", this.retainOnSubmit = !1, this.requireDataset = !1, this.allowImages = !1, this.allowVoiceInput = !1, this.acceptedFileTypes = [], this.apiVersion = "0.1.0", this.fileIcons = {}, this._promptValue = "", this._isPromptValid = !1, this._fieldTriggerOptions = [], this._datasetsFieldConfig = [], this._attachmentError = null, this._isRecording = !1, this._isTranscribing = !1, this._activeFieldRequestId = 0, this._attachmentUploads = /* @__PURE__ */ new Map(), this._pendingAttachmentSync = null, this._attachmentSyncScheduled = !1, this._attachmentErrorClearHandle = 0, this._submitInProgress = !1, this._voiceSessionActive = !1, this._preRecordingValue = "", this._voicePrefix = "", this._voiceSuffix = "", this._streamedTranscript = "", this._transcriptionController = null, this._renderFieldTriggerIcon = (e) => {
|
|
240
240
|
let t = e.data?.datasetInfo;
|
|
241
241
|
return e.header && t ? d`
|
|
242
242
|
<span>
|
|
@@ -304,7 +304,7 @@ var K = ":host{box-sizing:border-box;display:block}:host .content-wrapper{flex-d
|
|
|
304
304
|
return this._isRecording || this._isTranscribing;
|
|
305
305
|
}
|
|
306
306
|
get _buttonDisabled() {
|
|
307
|
-
return this.disabled || this.isGenerating || this._voiceBusy || !this._isPromptValid ? !0 : this.requireDataset && this.selectedDatasets.length === 0;
|
|
307
|
+
return this.disabled || this.isGenerating || this._voiceBusy || !this._isPromptValid ? !0 : this.requireDataset && this.selectedDatasets.length === 0 && !this.selectedAgent;
|
|
308
308
|
}
|
|
309
309
|
get _promptPending() {
|
|
310
310
|
return this.isGenerating || this._isTranscribing;
|
|
@@ -469,6 +469,7 @@ var K = ":host{box-sizing:border-box;display:block}:host .content-wrapper{flex-d
|
|
|
469
469
|
detail: {
|
|
470
470
|
prompt: n,
|
|
471
471
|
selectedDatasets: this.selectedDatasets,
|
|
472
|
+
selectedAgent: this.selectedAgent ?? null,
|
|
472
473
|
attachments: r,
|
|
473
474
|
attachmentUrls: a
|
|
474
475
|
},
|
|
@@ -488,6 +489,12 @@ var K = ":host{box-sizing:border-box;display:block}:host .content-wrapper{flex-d
|
|
|
488
489
|
let t = e.detail;
|
|
489
490
|
this.selectedDatasets = this.selectedDatasets.filter((e) => e.id !== t.id);
|
|
490
491
|
}
|
|
492
|
+
_handleAgentSelected(e) {
|
|
493
|
+
this.selectedAgent = e.detail;
|
|
494
|
+
}
|
|
495
|
+
_handleAgentRemoved() {
|
|
496
|
+
this.selectedAgent = null;
|
|
497
|
+
}
|
|
491
498
|
_getLocalizedFieldLabel(e) {
|
|
492
499
|
if (e) return typeof e == "string" ? e : o(e, t());
|
|
493
500
|
}
|
|
@@ -690,6 +697,7 @@ var K = ":host{box-sizing:border-box;display:block}:host .content-wrapper{flex-d
|
|
|
690
697
|
<luzmo-dataset-selector-row
|
|
691
698
|
slot="top-actions"
|
|
692
699
|
.selectedDatasets=${this.selectedDatasets}
|
|
700
|
+
.selectedAgent=${this.selectedAgent}
|
|
693
701
|
.maxVisibleSelectedDatasets=${this.maxVisibleSelectedDatasets}
|
|
694
702
|
auth-key=${this.authKey}
|
|
695
703
|
auth-token=${this.authToken}
|
|
@@ -701,6 +709,8 @@ var K = ":host{box-sizing:border-box;display:block}:host .content-wrapper{flex-d
|
|
|
701
709
|
?disable-dataset-modification=${this.disableDatasetModification}
|
|
702
710
|
@dataset-selected=${this._handleDatasetSelected}
|
|
703
711
|
@dataset-removed=${this._handleDatasetRemoved}
|
|
712
|
+
@luzmo-agent-selected=${this._handleAgentSelected}
|
|
713
|
+
@luzmo-agent-removed=${this._handleAgentRemoved}
|
|
704
714
|
></luzmo-dataset-selector-row>
|
|
705
715
|
`}
|
|
706
716
|
${this.allowImages ? d`
|
|
@@ -762,7 +772,7 @@ e([m({ type: String })], Y.prototype, "placeholder", void 0), e([m({ type: Array
|
|
|
762
772
|
reflect: !0,
|
|
763
773
|
useDefault: !0,
|
|
764
774
|
attribute: "max-visible-selected-datasets"
|
|
765
|
-
})], Y.prototype, "maxVisibleSelectedDatasets", void 0), e([m({
|
|
775
|
+
})], Y.prototype, "maxVisibleSelectedDatasets", void 0), e([m({ attribute: !1 })], Y.prototype, "selectedAgent", void 0), e([m({
|
|
766
776
|
type: Boolean,
|
|
767
777
|
attribute: "disable-dataset-modification"
|
|
768
778
|
})], Y.prototype, "disableDatasetModification", void 0), e([m({
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { n as e } from "./item-slot-drop-panel-
|
|
20
|
+
import { n as e } from "./item-slot-drop-panel-CA9-hvpd.js";
|
|
21
21
|
//#region node_modules/@luzmo/dashboard-contents-types/area-chart/area-chart-positioning.config.js
|
|
22
22
|
var t = {
|
|
23
23
|
grid: {
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
const e=require("./item-slot-drop-panel-
|
|
20
|
+
const e=require("./item-slot-drop-panel-CrMdoDfz.cjs");var t={grid:{columns:2,rows:2,columnSizes:[`1fr`,e.n],rowSizes:[`1fr`,e.n],gap:`0`},slots:{measure:{column:1,row:1,align:`center`,justify:`center`,rotate:!1},"x-axis":{column:1,row:2,align:`center`,justify:`center`,rotate:!1},legend:{column:2,row:1,align:`center`,justify:`center`,rotate:!0}}};exports.areaChartPositioningConfig=t;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { n as e } from "./item-slot-drop-panel-
|
|
20
|
+
import { n as e } from "./item-slot-drop-panel-CA9-hvpd.js";
|
|
21
21
|
//#region node_modules/@luzmo/dashboard-contents-types/bar-chart/bar-chart-positioning.config.js
|
|
22
22
|
var t = {
|
|
23
23
|
grid: {
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
const e=require("./item-slot-drop-panel-
|
|
20
|
+
const e=require("./item-slot-drop-panel-CrMdoDfz.cjs");var t={grid:{columns:3,rows:1,columnSizes:[e.n,`1fr`,e.n],rowSizes:[`1fr`],gap:`0`},slots:{"y-axis":{column:1,row:1,align:`center`,justify:`center`,rotate:!0},measure:{column:2,row:1,align:`end`,justify:`center`,rotate:!1},legend:{column:3,row:1,align:`center`,justify:`center`,rotate:!0}}};exports.barChartPositioningConfig=t;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* */
|
|
20
20
|
import { s as e } from "./pragmatic-element-adapter-C_7HSvGV.js";
|
|
21
21
|
import { t } from "./decorate-DyMgX_Uh.js";
|
|
22
|
-
import "./localized-mixin-
|
|
22
|
+
import "./localized-mixin-BXDzTsZA.js";
|
|
23
23
|
import { LitElement as n } from "lit";
|
|
24
24
|
import { property as r } from "lit/decorators.js";
|
|
25
25
|
//#region src/utils/base/base.ts
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
const e=require("./rolldown-runtime-mLOUI7ql.cjs"),t=require("./decorate-DCJt-2rt.cjs");require("./localized-mixin-
|
|
20
|
+
const e=require("./rolldown-runtime-mLOUI7ql.cjs"),t=require("./decorate-DCJt-2rt.cjs");require("./localized-mixin-9QFQ92Y7.cjs");let n=require("lit"),r=require("lit/decorators.js");var i=new Set;new MutationObserver(()=>{let e=document.documentElement.dir===`rtl`?document.documentElement.dir:`ltr`;i.forEach(t=>{t.setAttribute(`dir`,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:[`dir`]});var a=e=>e.startManagingContentDirection!==void 0||e.tagName===`LUZMO-THEME`,o=(e=document)=>{let t=e.activeElement;for(;t?.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;let n=t?[t]:[];for(;t;){let e=t.assignedSlot||t.parentElement||t.getRootNode()?.host;e&&n.push(e),t=e}return n};function s(e){class t extends e{get isLTR(){return this.dir===`ltr`}hasVisibleFocusInTree(){let e=o(this.getRootNode())[0];if(!e)return!1;try{return e.matches(`:focus-visible`)||e.matches(`.focus-visible`)}catch{return e.matches(`.focus-visible`)}}connectedCallback(){if(super.connectedCallback(),!this.hasAttribute(`dir`)){let e=this.assignedSlot||this.parentNode;for(;e!==document.documentElement&&!a(e);)e=e.assignedSlot||e.parentNode||e.host;if(this.dir=e.dir===`rtl`?e.dir:this.dir||`ltr`,e===document.documentElement)i.add(this);else{let{localName:t}=e;t.search(`-`)>-1&&!customElements.get(t)?customElements.whenDefined(t).then(()=>{typeof e.startManagingContentDirection==`function`&&e.startManagingContentDirection(this)}):typeof e.startManagingContentDirection==`function`&&e.startManagingContentDirection(this)}this._dirParent=e}super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._dirParent&&(this._dirParent===document.documentElement?i.delete(this):typeof this._dirParent.stopManagingContentDirection==`function`&&this._dirParent.stopManagingContentDirection(this),this.removeAttribute(`dir`))}}return t}var c=class extends s(n.LitElement){},l=e.n({FocusVisiblePolyfillMixin:()=>f}),u=!0;try{document.body.querySelector(`:focus-visible`)}catch{u=!1,Promise.resolve().then(()=>l)}var d=e=>{if(e.shadowRoot==null||Object.hasOwn(e.dataset,`jsFocusVisible`))return()=>{};if(self.applyFocusVisiblePolyfill)self.applyFocusVisiblePolyfill(e.shadowRoot),e.manageAutoFocus&&e.manageAutoFocus();else{let t=()=>{self.applyFocusVisiblePolyfill&&e.shadowRoot&&self.applyFocusVisiblePolyfill(e.shadowRoot),e.manageAutoFocus&&e.manageAutoFocus()};return self.addEventListener(`focus-visible-polyfill-ready`,t,{once:!0}),()=>{self.removeEventListener(`focus-visible-polyfill-ready`,t)}}return()=>{}},f=e=>{let t=Symbol(`endPolyfillCoordination`);class n extends e{constructor(...e){super(...e),this[t]=null}connectedCallback(){super.connectedCallback&&super.connectedCallback(),u||requestAnimationFrame(()=>{this[t]??(this[t]=d(this))})}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),u||requestAnimationFrame(()=>{this[t]!=null&&(this[t](),this[t]=null)})}}return n};function p(){return new Promise(e=>requestAnimationFrame(()=>e()))}var m=class extends f(c){constructor(...e){super(...e),this.disabled=!1,this.autofocus=!1,this._tabIndex=0,this.manipulatingTabindex=!1,this.autofocusReady=Promise.resolve()}get tabIndex(){if(this.focusElement===this){let e=this.hasAttribute(`tabindex`)?Number(this.getAttribute(`tabindex`)):NaN;return Number.isNaN(e)?-1:e}let e=Number.parseFloat(this.hasAttribute(`tabindex`)&&this.getAttribute(`tabindex`)||`0`);return this.disabled||e<0?-1:this.focusElement?this._tabIndex:e}set tabIndex(e){if(this.manipulatingTabindex){this.manipulatingTabindex=!1;return}if(this.focusElement===this){if(this.disabled)this._tabIndex=e;else if(e!==this._tabIndex){this._tabIndex=e;let t=``+e;this.manipulatingTabindex=!0,this.setAttribute(`tabindex`,t)}return}if(e===-1?this.addEventListener(`pointerdown`,this.onPointerdownManagementOfTabIndex):(this.manipulatingTabindex=!0,this.removeEventListener(`pointerdown`,this.onPointerdownManagementOfTabIndex)),e===-1||this.disabled){if(this.manipulatingTabindex=!0,this.setAttribute(`tabindex`,`-1`),this.removeAttribute(`focusable`),this.selfManageFocusElement)return;e===-1?this.focusElement?.removeAttribute(`tabindex`):(this._tabIndex=e,this.manageFocusElementTabindex(e));return}this.setAttribute(`focusable`,``),this.hasAttribute(`tabindex`)?this.removeAttribute(`tabindex`):this.manipulatingTabindex=!1,this._tabIndex=e,this.manageFocusElementTabindex(e)}onPointerdownManagementOfTabIndex(){this.tabIndex===-1&&setTimeout(()=>{this.tabIndex=0,this.focus({preventScroll:!0}),this.tabIndex=-1})}async manageFocusElementTabindex(e){this.focusElement||await this.updateComplete,e===null?this.focusElement.removeAttribute(`tabindex`):this.focusElement!==this&&(this.focusElement.tabIndex=e)}get focusElement(){throw Error(`Must implement focusElement getter!`)}get selfManageFocusElement(){return!1}focus(e){this.disabled||!this.focusElement||(this.focusElement===this?Reflect.apply(HTMLElement.prototype.focus,this,[e]):this.focusElement.focus(e))}blur(){let e=this.focusElement||this;e===this?HTMLElement.prototype.blur.apply(this):e.blur()}click(){if(this.disabled)return;let e=this.focusElement||this;e===this?HTMLElement.prototype.click.apply(this):e.click()}manageAutoFocus(){this.autofocus&&(this.dispatchEvent(new KeyboardEvent(`keydown`,{code:`Tab`})),this.focusElement.focus())}firstUpdated(e){super.firstUpdated(e),(!this.hasAttribute(`tabindex`)||this.getAttribute(`tabindex`)!==`-1`)&&this.setAttribute(`focusable`,``)}update(e){e.has(`disabled`)&&this.handleDisabledChanged(this.disabled,e.get(`disabled`)),super.update(e)}updated(e){super.updated(e),e.has(`disabled`)&&this.disabled&&this.blur()}async handleDisabledChanged(e,t){let n=()=>this.focusElement!==this&&this.focusElement.disabled!==void 0;e?(this.manipulatingTabindex=!0,this.setAttribute(`tabindex`,`-1`),await this.updateComplete,n()?this.focusElement.disabled=!0:this.setAttribute(`aria-disabled`,`true`)):t&&(this.manipulatingTabindex=!0,this.focusElement===this?this.setAttribute(`tabindex`,``+this._tabIndex):this.removeAttribute(`tabindex`),await this.updateComplete,n()?this.focusElement.disabled=!1:this.removeAttribute(`aria-disabled`))}async getUpdateComplete(){let e=await super.getUpdateComplete();return await this.autofocusReady,e}connectedCallback(){super.connectedCallback(),this.autofocus&&(this.autofocusReady=(async()=>{await p(),await p()})(),this.updateComplete.then(()=>this.manageAutoFocus()))}};t.t([(0,r.property)({type:Boolean,reflect:!0})],m.prototype,`disabled`,void 0),t.t([(0,r.property)({type:Boolean})],m.prototype,`autofocus`,void 0),t.t([(0,r.property)({type:Number})],m.prototype,`tabIndex`,null);var h={xxs:`xxs`,xs:`xs`,s:`s`,m:`m`,l:`l`,xl:`xl`,xxl:`xxl`};function g(e,{validSizes:n=[`s`,`m`,`l`,`xl`],noDefaultSize:i,defaultSize:a=`m`}={}){class o extends e{constructor(...e){super(...e),this._size=a}get size(){return this._size||a}set size(e){let t=i?null:a,r=e&&e.toLocaleLowerCase(),o=n.includes(r)?r:t;if(o&&this.setAttribute(`size`,o),this._size===o)return;let s=this._size;this._size=o,this.requestUpdate(`size`,s)}update(e){!this.hasAttribute(`size`)&&!i&&this.setAttribute(`size`,this.size),super.update(e)}}return t.t([(0,r.property)({type:String})],o.prototype,`size`,null),o}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return h}});
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
var e={grid:{columns:1,rows:2,columnSizes:[`1fr`],rowSizes:[`1fr`,require("./item-slot-drop-panel-
|
|
20
|
+
var e={grid:{columns:1,rows:2,columnSizes:[`1fr`],rowSizes:[`1fr`,require("./item-slot-drop-panel-CrMdoDfz.cjs").n],gap:`0`},slots:{measure:{column:1,row:1,align:`center`,justify:`center`,rotate:!1},category:{column:1,row:2,align:`center`,justify:`center`,rotate:!1}}};exports.boxPlotPositioningConfig=e;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { n as e } from "./item-slot-drop-panel-
|
|
20
|
+
import { n as e } from "./item-slot-drop-panel-CA9-hvpd.js";
|
|
21
21
|
//#region node_modules/@luzmo/dashboard-contents-types/box-plot/box-plot-positioning.config.js
|
|
22
22
|
var t = {
|
|
23
23
|
grid: {
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
const e=require("./item-slot-drop-panel-
|
|
20
|
+
const e=require("./item-slot-drop-panel-CrMdoDfz.cjs");var t={grid:{columns:2,rows:2,columnSizes:[`1fr`,e.n],rowSizes:[`1fr`,e.n],gap:`0`},slots:{measure:{column:1,row:1,align:`center`,justify:`center`,rotate:!1},category:{column:1,row:2,align:`center`,justify:`center`,rotate:!1},color:{column:2,row:1,align:`center`,justify:`center`,rotate:!0}}};exports.bubbleChartPositioningConfig=t;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { n as e } from "./item-slot-drop-panel-
|
|
20
|
+
import { n as e } from "./item-slot-drop-panel-CA9-hvpd.js";
|
|
21
21
|
//#region node_modules/@luzmo/dashboard-contents-types/bubble-chart/bubble-chart-positioning.config.js
|
|
22
22
|
var t = {
|
|
23
23
|
grid: {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { n as e } from "./item-slot-drop-panel-
|
|
20
|
+
import { n as e } from "./item-slot-drop-panel-CA9-hvpd.js";
|
|
21
21
|
//#region node_modules/@luzmo/dashboard-contents-types/bullet-chart/bullet-chart-positioning.config.js
|
|
22
22
|
var t = {
|
|
23
23
|
grid: {
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
const e=require("./item-slot-drop-panel-
|
|
20
|
+
const e=require("./item-slot-drop-panel-CrMdoDfz.cjs");var t={grid:{columns:2,rows:2,columnSizes:[e.n,`1fr`],rowSizes:[`1fr`,e.n],gap:`0`},slots:{category:{column:1,row:1,rowSpan:2,align:`center`,justify:`center`,rotate:!0},measure:{column:2,row:1,align:`center`,justify:`center`,rotate:!1},target:{column:2,row:2,align:`center`,justify:`center`,rotate:!1}}};exports.bulletChartPositioningConfig=t;
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
const e=require("./item-slot-drop-panel-
|
|
20
|
+
const e=require("./item-slot-drop-panel-CrMdoDfz.cjs");var t={grid:{columns:2,rows:2,columnSizes:[`1fr`,e.n],rowSizes:[`1fr`,e.n],gap:`0`},slots:{measure:{column:1,row:1,align:`center`,justify:`center`,rotate:!1},geo:{column:1,row:2,align:`center`,justify:`center`,rotate:!1},category:{column:2,row:1,align:`center`,justify:`center`,rotate:!0}}};exports.choroplethMapPositioningConfig=t;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { n as e } from "./item-slot-drop-panel-
|
|
20
|
+
import { n as e } from "./item-slot-drop-panel-CA9-hvpd.js";
|
|
21
21
|
//#region node_modules/@luzmo/dashboard-contents-types/choropleth-map/choropleth-map-positioning.config.js
|
|
22
22
|
var t = {
|
|
23
23
|
grid: {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { n as e } from "./item-slot-drop-panel-
|
|
20
|
+
import { n as e } from "./item-slot-drop-panel-CA9-hvpd.js";
|
|
21
21
|
//#region node_modules/@luzmo/dashboard-contents-types/circle-pack-chart/circle-pack-chart-positioning.config.js
|
|
22
22
|
var t = {
|
|
23
23
|
grid: {
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
var e={grid:{columns:1,rows:2,columnSizes:[`1fr`],rowSizes:[`1fr`,require("./item-slot-drop-panel-
|
|
20
|
+
var e={grid:{columns:1,rows:2,columnSizes:[`1fr`],rowSizes:[`1fr`,require("./item-slot-drop-panel-CrMdoDfz.cjs").n],gap:`0`},slots:{measure:{column:1,row:1,align:`center`,justify:`center`,rotate:!1},levels:{column:1,row:2,align:`center`,justify:`center`,rotate:!1}}};exports.circlePackChartPositioningConfig=e;
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
var e={grid:{columns:1,rows:2,columnSizes:[`1fr`],rowSizes:[require("./item-slot-drop-panel-
|
|
20
|
+
var e={grid:{columns:1,rows:2,columnSizes:[`1fr`],rowSizes:[require("./item-slot-drop-panel-CrMdoDfz.cjs").n,`1fr`],gap:`0`},slots:{target:{column:1,row:1,align:`center`,justify:`center`,rotate:!1},measure:{column:1,row:2,align:`center`,justify:`center`,rotate:!1}}};exports.circularGaugePositioningConfig=e;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { n as e } from "./item-slot-drop-panel-
|
|
20
|
+
import { n as e } from "./item-slot-drop-panel-CA9-hvpd.js";
|
|
21
21
|
//#region node_modules/@luzmo/dashboard-contents-types/circular-gauge/circular-gauge-positioning.config.js
|
|
22
22
|
var t = {
|
|
23
23
|
grid: {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { n as e } from "./item-slot-drop-panel-
|
|
20
|
+
import { n as e } from "./item-slot-drop-panel-CA9-hvpd.js";
|
|
21
21
|
//#region node_modules/@luzmo/dashboard-contents-types/column-chart/column-chart-positioning.config.js
|
|
22
22
|
var t = {
|
|
23
23
|
grid: {
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
const e=require("./item-slot-drop-panel-
|
|
20
|
+
const e=require("./item-slot-drop-panel-CrMdoDfz.cjs");var t={grid:{columns:2,rows:2,columnSizes:[`1fr`,e.n],rowSizes:[`1fr`,e.n],gap:`0`},slots:{measure:{column:1,row:1,align:`center`,justify:`center`,rotate:!1},"x-axis":{column:1,row:2,align:`center`,justify:`center`,rotate:!1},legend:{column:2,row:1,align:`center`,justify:`center`,rotate:!0}}};exports.columnChartPositioningConfig=t;
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
var e={grid:{columns:1,rows:2,columnSizes:[`1fr`],rowSizes:[`1fr`,require("./item-slot-drop-panel-
|
|
20
|
+
var e={grid:{columns:1,rows:2,columnSizes:[`1fr`],rowSizes:[`1fr`,require("./item-slot-drop-panel-CrMdoDfz.cjs").n],gap:`0`},slots:{measure:{column:1,row:1,align:`center`,justify:`center`,rotate:!1},"x-axis":{column:1,row:2,align:`center`,justify:`center`,rotate:!1}}};exports.combinationChartPositioningConfig=e;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { n as e } from "./item-slot-drop-panel-
|
|
20
|
+
import { n as e } from "./item-slot-drop-panel-CA9-hvpd.js";
|
|
21
21
|
//#region node_modules/@luzmo/dashboard-contents-types/combination-chart/combination-chart-positioning.config.js
|
|
22
22
|
var t = {
|
|
23
23
|
grid: {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { n as e } from "./item-slot-drop-panel-
|
|
20
|
+
import { n as e } from "./item-slot-drop-panel-CA9-hvpd.js";
|
|
21
21
|
//#region node_modules/@luzmo/dashboard-contents-types/conditional-number/conditional-number-positioning.config.js
|
|
22
22
|
var t = {
|
|
23
23
|
grid: {
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
var e={grid:{columns:1,rows:2,columnSizes:[`1fr`],rowSizes:[`1fr`,require("./item-slot-drop-panel-
|
|
20
|
+
var e={grid:{columns:1,rows:2,columnSizes:[`1fr`],rowSizes:[`1fr`,require("./item-slot-drop-panel-CrMdoDfz.cjs").n],gap:`0`},slots:{measure:{column:1,row:1,align:`center`,justify:`center`,rotate:!1},target:{column:1,row:2,align:`center`,justify:`center`,rotate:!1}}};exports.conditionalNumberPositioningConfig=e;
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../data-field-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../data-field-LCJaGHTs.cjs");Object.defineProperty(exports,"LuzmoDataField",{enumerable:!0,get:function(){return e.t}});
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
e.setAttribute("data-luzmo-vars", ""), e.textContent = "html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-full-down: color-mix(in oklch, var(--luzmo-border-color-full), black 45%);--luzmo-border-color-full-focus: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-down: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 7%), black 1%);--luzmo-background-color-focus: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-highlight-down: color-mix(in oklch, var(--luzmo-background-color-highlight), black 20%);--luzmo-background-color-highlight-focus: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-alt-1: rgb(250, 250, 250);--luzmo-background-color-alt-2: rgb(239, 239, 239);--luzmo-border-width: 1px;--luzmo-shadow-color-rgb: 0, 0, 0;--luzmo-shadow-opacity: 0.1;--luzmo-shadow-color: rgba(var(--luzmo-shadow-color-rgb), var(--luzmo-shadow-opacity));--luzmo-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-font-color-down: color-mix(in oklch, var(--luzmo-font-color), black 20%);--luzmo-font-color-focus: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-scrollbar-size: 6px;--luzmo-scrollbar-width: thin;--luzmo-scrollbar-track-background: transparent;--luzmo-scrollbar-track-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-background: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-scrollbar-thumb-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-hover-background: rgba(var(--luzmo-border-color-rgb), 0.4);--luzmo-primary: #4434ff;--luzmo-primary-hover: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-down: color-mix(in oklch, var(--luzmo-primary), black 20%);--luzmo-primary-focus: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-down: color-mix(in oklch, var(--luzmo-secondary), black 20%);--luzmo-secondary-focus: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-secondary-outline: rgba(255, 0, 255, 0.2);--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-down: color-mix(in oklch, var(--luzmo-negative-color), black 20%);--luzmo-negative-color-focus: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-down: color-mix(in oklch, var(--luzmo-positive-color), black 20%);--luzmo-positive-color-focus: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-down: color-mix(in oklch, var(--luzmo-selected-color), black 45%);--luzmo-selected-color-focus: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-selected-color-hard-down: color-mix(in oklch, var(--luzmo-selected-color-hard), black 45%);--luzmo-selected-color-hard-focus: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}", document.head.appendChild(e);
|
|
25
25
|
}
|
|
26
26
|
})();
|
|
27
|
-
import { t as e } from "../data-field-
|
|
27
|
+
import { t as e } from "../data-field-C_rVntAB.js";
|
|
28
28
|
export { e as LuzmoDataField };
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { i as e, n as t } from "./base-
|
|
20
|
+
import { i as e, n as t } from "./base-CyMoOIH2.js";
|
|
21
21
|
import { t as n } from "./decorate-DyMgX_Uh.js";
|
|
22
|
-
import { t as r } from "./localized-mixin-
|
|
22
|
+
import { t as r } from "./localized-mixin-BXDzTsZA.js";
|
|
23
23
|
import { n as i } from "./periods.const-NCTkxnvG.js";
|
|
24
|
-
import "./data-field-level-
|
|
24
|
+
import "./data-field-level-Bq4m_uay.js";
|
|
25
25
|
import { html as a, unsafeCSS as o } from "lit";
|
|
26
26
|
import { property as s } from "lit/decorators.js";
|
|
27
27
|
import { localized as c } from "@lit/localize";
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
const e=require("./base-
|
|
20
|
+
const e=require("./base-DY99ut2q.cjs"),t=require("./decorate-DCJt-2rt.cjs"),n=require("./localized-mixin-9QFQ92Y7.cjs"),r=require("./periods.const-Db0nXrwr.cjs");require("./data-field-level-DIS8fBDr.cjs");let i=require("lit"),a=require("lit/decorators.js"),o=require("@lit/localize");var s=`:host{--data-field-sublevels-margin-vertical:var(--luzmo-spacing-1);--data-field-sublevels-gap:0}:host([size=s]){--data-field-sublevels-margin-vertical:var(--luzmo-spacing-1)}:host([size=l]){--data-field-sublevels-margin-vertical:var(--luzmo-spacing-2)}:host([size=xl]){--data-field-sublevels-margin-vertical:var(--luzmo-spacing-3)}:host{display:block}.data-field-sublevels{gap:var(--luzmo-data-field-sublevels-gap,var(--data-field-sublevels-gap));margin:var(--luzmo-data-field-sublevels-margin-vertical,var(--data-field-sublevels-margin-vertical)) 0;flex-direction:column;display:flex}:host{box-sizing:border-box}`,c=e=>`formulaId`in e,l=class extends n.t(e.n(e.i,{validSizes:[`s`,`m`,`l`,`xl`],noDefaultSize:!0})){constructor(...e){super(...e),this.variant=`normal`,this.data={}}static{this.styles=(0,i.unsafeCSS)(s)}renderSublevels(){if(!this.data)return i.html`
|
|
21
21
|
|
|
22
22
|
`;let e=this.data?.type,t=e===`datetime`||e===`array[datetime]`,n=[];if(`hierarchyLevels`in this.data&&Array.isArray(this.data.hierarchyLevels)&&this.data.hierarchyLevels.length>2&&this.data.hierarchy_enabled&&n.push(...this.data.hierarchyLevels.filter(e=>e?.level>=1).map(e=>i.html`<luzmo-data-field-level
|
|
23
23
|
sublevel
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../data-field-level-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../data-field-level-DIS8fBDr.cjs");exports.LuzmoDataFieldLevel=e.t;
|