@luzmo/analytics-components-kit 1.0.9-beta.11 → 1.0.9-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/add-to-dashboard/index.cjs +1 -1
- package/components/add-to-dashboard/index.js +1 -1
- package/components/{add-to-dashboard-nYUaDghN.cjs → add-to-dashboard-D11b-HS7.cjs} +1 -1
- package/components/{add-to-dashboard-BY70QBzE.js → add-to-dashboard-KLYGiqKE.js} +4 -4
- package/components/ai-chat/ai-chat-events.d.ts +5 -1
- package/components/ai-chat/ai-chat.d.ts +36 -1
- package/components/ai-chat/helpers/assistant-message-feedback.d.ts +26 -0
- package/components/ai-chat/index.cjs +1 -1
- package/components/ai-chat/index.d.ts +1 -1
- package/components/ai-chat/index.js +2 -2
- package/components/ai-chat/session/ai-chat-session.d.ts +8 -1
- package/components/ai-chat/stream/chunk-extractors.d.ts +8 -0
- package/components/ai-chat/stream/index.d.ts +1 -1
- package/components/ai-chat/stream/types.d.ts +6 -0
- package/components/ai-chat-C0XZ_pvG.cjs +393 -0
- package/components/{ai-chat-DmDtBF47.js → ai-chat-CYrWJ8Wa.js} +873 -734
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -1
- package/components/{ai-interaction-textarea-6ECwAdeT.js → ai-interaction-textarea-CT698Pph.js} +5 -5
- package/components/{ai-interaction-textarea-CRyyTj_B.cjs → ai-interaction-textarea-Da1ErRHy.cjs} +1 -1
- package/components/{area-chart-positioning.config-CoCdjr2E.cjs → area-chart-positioning.config-DWLy-uS1.cjs} +1 -1
- package/components/{area-chart-positioning.config-o-uJPEr5.js → area-chart-positioning.config-Dpi4gakJ.js} +1 -1
- package/components/{bar-chart-positioning.config-fsB82756.cjs → bar-chart-positioning.config-B3U1-22D.cjs} +1 -1
- package/components/{bar-chart-positioning.config-CZgrS6lc.js → bar-chart-positioning.config-DDv8hNyi.js} +1 -1
- package/components/{base-BmvsQ-s1.cjs → base-BdkFbMZR.cjs} +1 -1
- package/components/{base-CrpOMVeU.js → base-Cvcpdy0h.js} +1 -1
- package/components/{box-plot-positioning.config-CDq460FI.js → box-plot-positioning.config-1BuF6Gjj.js} +1 -1
- package/components/{box-plot-positioning.config-BMfGGDfe.cjs → box-plot-positioning.config-lfqDTCdY.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-C9MmTtTX.cjs → bubble-chart-positioning.config-DVBuVeSs.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-DWfz4tud.js → bubble-chart-positioning.config-V8KfvCkY.js} +1 -1
- package/components/{bullet-chart-positioning.config-BwHPM5ui.cjs → bullet-chart-positioning.config-CtlmKdzp.cjs} +1 -1
- package/components/{bullet-chart-positioning.config-DmSlVIjL.js → bullet-chart-positioning.config-IrK6KYbE.js} +1 -1
- package/components/{choropleth-map-positioning.config-cjBzi_Db.js → choropleth-map-positioning.config-BSb0ig5Y.js} +1 -1
- package/components/{choropleth-map-positioning.config-C0m6zzD3.cjs → choropleth-map-positioning.config-ahRkoZNv.cjs} +1 -1
- package/components/{circle-pack-chart-positioning.config-BAFFQSHe.cjs → circle-pack-chart-positioning.config-CS1dbWgR.cjs} +1 -1
- package/components/{circle-pack-chart-positioning.config-CY2rLb57.js → circle-pack-chart-positioning.config-DfQztqxL.js} +1 -1
- package/components/{circular-gauge-positioning.config-6pZUNxYa.js → circular-gauge-positioning.config-1HH3Rw2L.js} +1 -1
- package/components/{circular-gauge-positioning.config-BfWAjAY2.cjs → circular-gauge-positioning.config-BeLsxbow.cjs} +1 -1
- package/components/{column-chart-positioning.config-xgRuA_l5.cjs → column-chart-positioning.config-CLZuZiVa.cjs} +1 -1
- package/components/{column-chart-positioning.config-hrAvNd7T.js → column-chart-positioning.config-DVeVPtzS.js} +1 -1
- package/components/{combination-chart-positioning.config-BI8HroaG.js → combination-chart-positioning.config-BPXqur2s.js} +1 -1
- package/components/{combination-chart-positioning.config-D0TU4hge.cjs → combination-chart-positioning.config-DKNRMoZN.cjs} +1 -1
- package/components/{conditional-number-positioning.config-CWaDhMLA.js → conditional-number-positioning.config-BWJAnFTq.js} +1 -1
- package/components/{conditional-number-positioning.config-B_yISWne.cjs → conditional-number-positioning.config-HXcO-Ej5.cjs} +1 -1
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.js +1 -1
- package/components/{data-field-D4YFqg1H.js → data-field-BMeV_pUL.js} +3 -3
- package/components/{data-field-Hi-ITTzx.cjs → data-field-C204ZKd3.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-BWQPtFP5.cjs → data-field-level-Cv4Vgi_o.cjs} +1 -1
- package/components/{data-field-level-CB5GtdU5.js → data-field-level-Dpta9m5I.js} +2 -2
- package/components/data-field-panel/index.cjs +1 -1
- package/components/data-field-panel/index.js +1 -1
- package/components/{data-field-panel-64HoViNT.js → data-field-panel-Beg-fx10.js} +3 -3
- package/components/{data-field-panel-DzKwmQi_.cjs → data-field-panel-D71J7_IE.cjs} +1 -1
- package/components/data-fields-select/data-fields-select.d.ts +2 -0
- package/components/data-fields-select/index.cjs +1 -1
- package/components/data-fields-select/index.js +1 -1
- package/components/{data-fields-select-BOwoWq0j.js → data-fields-select-BKoQMwZd.js} +4 -1
- package/components/{data-fields-select-DXv6PQHG.cjs → data-fields-select-CBTGcYRL.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-_AL1-GWw.cjs → dataset-selector-list-D9ZmjTyU.cjs} +1 -1
- package/components/{dataset-selector-list-DFC2bvn0.js → dataset-selector-list-DFMfknD5.js} +1 -1
- package/components/dataset-selector-row/index.cjs +1 -1
- package/components/dataset-selector-row/index.js +1 -1
- package/components/{dataset-selector-row-By2ko-Rd.cjs → dataset-selector-row-Bq_yYpb9.cjs} +1 -1
- package/components/{dataset-selector-row-DC6mrVyF.js → dataset-selector-row-DFPwXde5.js} +5 -5
- package/components/{de-Yl3kqB03.js → de-DPhR2zPG.js} +4 -0
- package/components/de-DUAXVtRS.cjs +20 -0
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-BkbdgMvh.cjs +143 -0
- package/components/{display-settings-BsCKV9ae.js → display-settings-MnSyqIog.js} +17 -16
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +1 -1
- package/components/{display-settings-binning-CkrbhPVB.js → display-settings-binning-BQYxWvFI.js} +3 -3
- package/components/{display-settings-binning-BdtxayZT.cjs → display-settings-binning-DqcCzBrG.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-CpFyrcGk.cjs → display-settings-datetime-9WraOyqr.cjs} +1 -1
- package/components/{display-settings-datetime-mVh5Tjrx.js → display-settings-datetime-D5UwdwAI.js} +3 -3
- 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-D7unOEKl.js → display-settings-grand-totals-DYSVU-9G.js} +3 -3
- package/components/{display-settings-grand-totals-CwOGoE06.cjs → display-settings-grand-totals-w2Zbxwt4.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-DhiXPU3f.cjs → display-settings-numeric-DGyMDswg.cjs} +1 -1
- package/components/{display-settings-numeric-DDZyFNFF.js → display-settings-numeric-YOsAAqyJ.js} +4 -4
- 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-Hd172SzT.js → display-settings-period-over-period-CYwQ6KQI.js} +3 -3
- package/components/{display-settings-period-over-period-BNFjbgP0.cjs → display-settings-period-over-period-zme6yEAi.cjs} +1 -1
- package/components/{donut-chart-positioning.config-B2CrxOig.js → donut-chart-positioning.config-ovPyzL2x.js} +1 -1
- package/components/{donut-chart-positioning.config-DQb53kWI.cjs → donut-chart-positioning.config-xwoqdu-c.cjs} +1 -1
- package/components/{es-Ctf1SIsp.js → es-C9faREu_.js} +4 -0
- package/components/es-DKP3YRmv.cjs +20 -0
- package/components/{evolution-number-positioning.config-BdH8pv6_.js → evolution-number-positioning.config-B-H5aEXI.js} +1 -1
- package/components/{evolution-number-positioning.config-BzBsGcD4.cjs → evolution-number-positioning.config-CfcajD4B.cjs} +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-Bn_jAdQX.cjs → filter-expression-picker-BBZ7KHqG.cjs} +1 -1
- package/components/{filter-expression-picker-Cjr8xWxy.js → filter-expression-picker-kLhzHUEW.js} +1 -1
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +1 -1
- package/components/{filter-item-D6y8eCmG.js → filter-item-Dgh9nHGz.js} +6 -6
- package/components/{filter-item-CHJDVOju.cjs → filter-item-DnYGrUzZ.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-C955tF0T.js → filter-parameter-picker-DhTMuymq.js} +3 -3
- package/components/{filter-parameter-picker-jyrh3POQ.cjs → filter-parameter-picker-UwSmMkoB.cjs} +1 -1
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +1 -1
- package/components/{filter-value-picker-DmWiNLZH.cjs → filter-value-picker-CPuUfjLo.cjs} +1 -1
- package/components/{filter-value-picker-B8nA8hTV.js → filter-value-picker-Ch4k6xIK.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-U4XWKSFx.cjs → filter-value-picker-datetime-BHtjVhx1.cjs} +1 -1
- package/components/{filter-value-picker-datetime-BAhXn1BS.js → filter-value-picker-datetime-hTOIBHMi.js} +1 -1
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +1 -1
- package/components/{filter-value-picker-hierarchy-CUPz5Ggs.js → filter-value-picker-hierarchy-Bu1OiV4T.js} +2 -2
- package/components/{filter-value-picker-hierarchy-1ya1_rS3.cjs → filter-value-picker-hierarchy-CTZQfWEJ.cjs} +1 -1
- 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-DrHdHj31.cjs → filter-value-picker-numeric-BOY9I-y3.cjs} +1 -1
- package/components/{filter-value-picker-numeric-D8mLaxzj.js → filter-value-picker-numeric-tstYPaES.js} +1 -1
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -1
- package/components/filters-B_43Qb_P.cjs +199 -0
- package/components/{filters-Byy8HE19.js → filters-ESeCEQPQ.js} +4 -4
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +1 -1
- package/components/{formula-D_ipR6d1.js → formula--lmxX7EE.js} +2 -2
- package/components/{formula-C6dPJyKm.cjs → formula-CC33nJ0T.cjs} +1 -1
- package/components/{formula-codemirror-CdlIly66.js → formula-codemirror-CD2ejhzw.js} +6 -6
- package/components/{formula-codemirror-C1UFMf6i.cjs → formula-codemirror-za5kEnKc.cjs} +1 -1
- package/components/{formula-display-store-B0ifmvCi.cjs → formula-display-store-B1qQtQbU.cjs} +1 -1
- package/components/{formula-display-store-CfObcBCd.js → formula-display-store-dxzteJ_B.js} +3 -3
- package/components/formula-editor/index.cjs +1 -1
- package/components/formula-editor/index.js +3 -3
- package/components/{formula-editor-B9ikCsLK.cjs → formula-editor-BDckEUnh.cjs} +1 -1
- package/components/{formula-editor-DJ-0AVCl.js → formula-editor-DNduncPi.js} +6 -6
- package/components/formula-field/index.cjs +1 -1
- package/components/formula-field/index.js +1 -1
- package/components/{formula-field-CNqn6Xbh.cjs → formula-field-Cs7SaL-J.cjs} +1 -1
- package/components/{formula-field-Bq-RYt0H.js → formula-field-dSYKahSQ.js} +1 -1
- package/components/{formula-input-base-Dple-9bo.js → formula-input-base-CzMOxMBx.js} +1 -1
- package/components/{formula-input-base-KSmmN1uI.cjs → formula-input-base-DCI3s_eW.cjs} +1 -1
- package/components/fr-BNVUrX6D.cjs +20 -0
- package/components/{fr-zWhjQv4B.js → fr-Dfp7e-Vj.js} +4 -0
- package/components/{funnel-chart-positioning.config-DleNZIG-.cjs → funnel-chart-positioning.config-2mR2EyN4.cjs} +1 -1
- package/components/{funnel-chart-positioning.config-DgRle8n1.js → funnel-chart-positioning.config-Bth5tggl.js} +1 -1
- package/components/{get-dataset-name-trrlomzY.js → get-dataset-name-CSvAYeJM.js} +1 -1
- package/components/{get-dataset-name-3UfKdy0m.cjs → get-dataset-name-DhYRY3e-.cjs} +1 -1
- package/components/{groupings-B55Oba6e.js → groupings-14w1cCc3.js} +1 -1
- package/components/{groupings-DEpTt8DV.cjs → groupings-DxuknvWu.cjs} +1 -1
- package/components/{heat-map-positioning.config-BTabq_f9.js → heat-map-positioning.config-B4bGYbFk.js} +1 -1
- package/components/{heat-map-positioning.config-DCB3Eagz.cjs → heat-map-positioning.config-CwcQrF53.cjs} +1 -1
- package/components/{heat-table-positioning.config-pK8Wn1dw.js → heat-table-positioning.config-BXCOZwaN.js} +1 -1
- package/components/{heat-table-positioning.config-Dnu133l4.cjs → heat-table-positioning.config-D8UNVnTk.cjs} +1 -1
- package/components/{hexbin-map-positioning.config-DjYp-lX8.js → hexbin-map-positioning.config-B-WZWfLq.js} +1 -1
- package/components/{hexbin-map-positioning.config-IqRt8f29.cjs → hexbin-map-positioning.config-Dn-bgQZ8.cjs} +1 -1
- package/components/index.cjs +1 -1
- package/components/index.js +55 -55
- package/components/interactive-viz-item/index.cjs +1 -1
- package/components/interactive-viz-item/index.js +1 -1
- package/components/{interactive-viz-item-D6lWVMHb.js → interactive-viz-item-CMxReAvq.js} +3 -3
- package/components/{interactive-viz-item-CM-LoEa5.cjs → interactive-viz-item-CQz2XYj8.cjs} +1 -1
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +2 -2
- package/components/{item-grid-CbXKsQm4.js → item-grid-BYqUrmJa.js} +2 -2
- package/components/{item-grid-DTishUCb.cjs → item-grid-DKpxUsMo.cjs} +1 -1
- package/components/item-grid-item-actions-menu/index.cjs +1 -1
- package/components/item-grid-item-actions-menu/index.js +1 -1
- package/components/{item-grid-item-actions-menu-B7ylgTwO.js → item-grid-item-actions-menu-D3WeDgxI.js} +2 -2
- package/components/item-grid-item-actions-menu-Dhv9sTNi.cjs +52 -0
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.js +1 -1
- package/components/{item-option-BTSV33ft.cjs → item-option-BWGwUzLt.cjs} +1 -1
- package/components/{item-option-BUju6ZE1.js → item-option-DYXzQ13_.js} +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-DnTBh3R4.js → item-option-action-button-group-B3PD2K1l.js} +2 -2
- package/components/{item-option-action-button-group-CuDeyDRi.cjs → item-option-action-button-group-Bc26loDM.cjs} +1 -1
- package/components/{item-option-base-C6RQH9M8.cjs → item-option-base-B6axTng-.cjs} +1 -1
- package/components/{item-option-base-BIDIiNfI.js → item-option-base-BJdtApx5.js} +2 -2
- 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-DbsqP2zA.js → item-option-color-palette-picker-BxIWdQLy.js} +1 -1
- package/components/{item-option-color-palette-picker-DsG-wxGB.cjs → item-option-color-palette-picker-C1t_nY1O.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-BUN5YK-t.cjs → item-option-color-picker-1BzUBXz-.cjs} +1 -1
- package/components/{item-option-color-picker-CKGUj3cW.js → item-option-color-picker-9DEx5w-z.js} +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-BN81ePAI.cjs → item-option-color-range-B_gmxlEl.cjs} +1 -1
- package/components/{item-option-color-range-dMehrwqA.js → item-option-color-range-DBtnzfJa.js} +2 -2
- package/components/item-option-guidelines/index.cjs +1 -1
- package/components/item-option-guidelines/index.js +1 -1
- package/components/{item-option-guidelines-Bn1HSCgL.js → item-option-guidelines-DhuU5VZu.js} +4 -4
- package/components/item-option-guidelines-Dv4EoY3s.cjs +135 -0
- package/components/item-option-multi-language-field/index.cjs +1 -1
- package/components/item-option-multi-language-field/index.js +1 -1
- package/components/{item-option-multi-language-field-BFgbOzMM.js → item-option-multi-language-field-BoXUM6-u.js} +1 -1
- package/components/{item-option-multi-language-field-Du609wC_.cjs → item-option-multi-language-field-C_eP2I2u.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-CDcf6_4D.js → item-option-number-field-BrEXkjWl.js} +1 -1
- package/components/{item-option-number-field-CVAtj0UX.cjs → item-option-number-field-kXpCE4FI.cjs} +1 -1
- package/components/item-option-panel/index.cjs +1 -1
- package/components/item-option-panel/index.js +1 -1
- package/components/{item-option-panel-0iHLl9-q.cjs → item-option-panel-CB338Rgo.cjs} +1 -1
- package/components/{item-option-panel-DUlIB6qj.js → item-option-panel-CUoozNxD.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-Dkc3nd3x.cjs → item-option-picker-BvT4ITzX.cjs} +1 -1
- package/components/{item-option-picker-ClKAGpgs.js → item-option-picker-fKn763j4.js} +1 -1
- package/components/item-option-position-picker/index.cjs +1 -1
- package/components/item-option-position-picker/index.js +1 -1
- package/components/{item-option-position-picker-O8PpyiRv.js → item-option-position-picker-D7smHuW7.js} +1 -1
- package/components/{item-option-position-picker-qCKh0Mfs.cjs → item-option-position-picker-D96vKNTF.cjs} +1 -1
- package/components/item-option-positions-number-field/index.cjs +1 -1
- package/components/item-option-positions-number-field/index.js +1 -1
- package/components/{item-option-positions-number-field-CBx4uQ39.js → item-option-positions-number-field-BPEATH4R.js} +1 -1
- package/components/{item-option-positions-number-field-Dfe4ufnF.cjs → item-option-positions-number-field-C4IOForB.cjs} +1 -1
- package/components/item-option-radio-button-group/index.cjs +1 -1
- package/components/item-option-radio-button-group/index.js +1 -1
- package/components/{item-option-radio-button-group-B5OVbLRg.cjs → item-option-radio-button-group-Bb-Rc5nv.cjs} +1 -1
- package/components/{item-option-radio-button-group-J_ZusHOP.js → item-option-radio-button-group-DQ0knjcY.js} +2 -2
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.js +1 -1
- package/components/{item-option-slider-V9z4qqyE.js → item-option-slider-BuA7tdbc.js} +1 -1
- package/components/{item-option-slider-BDAEs7Fk.cjs → item-option-slider-CLqtmYAE.cjs} +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-BA4ifIHK.js → item-option-switch-CvzS-KN9.js} +1 -1
- package/components/{item-option-switch-Bzy2VRLg.cjs → item-option-switch-DtRz_zTM.cjs} +1 -1
- package/components/item-option-text-field/index.cjs +1 -1
- package/components/item-option-text-field/index.js +1 -1
- package/components/{item-option-text-field-Cf0khC48.js → item-option-text-field-CW3R8voC.js} +1 -1
- package/components/{item-option-text-field-C-sTkUre.cjs → item-option-text-field-D1NFqoms.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-DrJRtG7b.cjs → item-slot-drop-B7JmgKMJ.cjs} +1 -1
- package/components/{item-slot-drop-D2VDgqYS.js → item-slot-drop-DaTJ-Gym.js} +6 -6
- 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-CCCOwtYM.js → item-slot-drop-panel-0wUkaWiM.js} +39 -39
- package/components/{item-slot-drop-panel-CFerKcdH.cjs → item-slot-drop-panel-CdCEWBGb.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/item-slot-picker.d.ts +8 -2
- package/components/{item-slot-picker-BdfYcBKT.js → item-slot-picker-BiHy7QX1.js} +142 -121
- package/components/{item-slot-picker-aqePvZ9B.cjs → item-slot-picker-BvrK1U4h.cjs} +42 -47
- 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/item-slot-picker-panel.d.ts +1 -1
- package/components/{item-slot-picker-panel-DC3i7XZP.js → item-slot-picker-panel-BmlCimZ9.js} +5 -5
- package/components/{item-slot-picker-panel-dU6NywBo.cjs → item-slot-picker-panel-CeT847QM.cjs} +2 -2
- package/components/{line-chart-positioning.config-DX5mLAP7.cjs → line-chart-positioning.config-DaDYXk9Z.cjs} +1 -1
- package/components/{line-chart-positioning.config-BW19v66B.js → line-chart-positioning.config-Imvzv3EC.js} +1 -1
- package/components/{localized-mixin-CYMFnS-n.js → localized-mixin-BLUbrY_Z.js} +1 -1
- package/components/{localized-mixin-Bt25Frg1.cjs → localized-mixin-DceE4W-d.cjs} +1 -1
- package/components/{marker-map-positioning.config-C0V5LZG-.cjs → marker-map-positioning.config-BGDRklk5.cjs} +1 -1
- package/components/{marker-map-positioning.config-BJGwlWKz.js → marker-map-positioning.config-DouILqTQ.js} +1 -1
- package/components/nl-BFAURMxk.cjs +20 -0
- package/components/{nl-TUFktGm6.js → nl-Cs2_7YBI.js} +4 -0
- package/components/{ohlc-chart-positioning.config-CFvbZzCR.js → ohlc-chart-positioning.config-Bcpj8NAt.js} +1 -1
- package/components/{ohlc-chart-positioning.config-Bu1_IBVK.cjs → ohlc-chart-positioning.config-CHJbhqWA.cjs} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-Bc3qCyxq.js → parallel-coordinates-plot-positioning.config-BRPawZLg.js} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-EJz1XA1k.cjs → parallel-coordinates-plot-positioning.config-CnyUP9E-.cjs} +1 -1
- package/components/{pivot-table-positioning.config-Bay8gxV-.js → pivot-table-positioning.config-8rROPmIw.js} +1 -1
- package/components/{pivot-table-positioning.config-CMzGb-BR.cjs → pivot-table-positioning.config-BvD825Uc.cjs} +1 -1
- package/components/{pyramid-chart-positioning.config-BUSeYxYH.js → pyramid-chart-positioning.config-CqL_Z0Ok.js} +1 -1
- package/components/{pyramid-chart-positioning.config-CrU2vKM-.cjs → pyramid-chart-positioning.config-DKd65Pdf.cjs} +1 -1
- package/components/{radar-chart-positioning.config-DOLpdn-d.js → radar-chart-positioning.config-CpYbMIeY.js} +1 -1
- package/components/{radar-chart-positioning.config-BEzqTXyr.cjs → radar-chart-positioning.config-oPyZCdrF.cjs} +1 -1
- package/components/{route-map-positioning.config-BgjizdWh.cjs → route-map-positioning.config-BCOVbseo.cjs} +1 -1
- package/components/{route-map-positioning.config-Brg6_eCi.js → route-map-positioning.config-DPspLTzr.js} +1 -1
- package/components/{sankey-diagram-positioning.config-DJlWiNYL.js → sankey-diagram-positioning.config-BVNDJhvU.js} +1 -1
- package/components/{sankey-diagram-positioning.config-vccTz1pG.cjs → sankey-diagram-positioning.config-Da0e_DAS.cjs} +1 -1
- package/components/{scatter-plot-positioning.config-BKqPHMrS.js → scatter-plot-positioning.config-DMZuAjXU.js} +1 -1
- package/components/{scatter-plot-positioning.config-D7uFFBVZ.cjs → scatter-plot-positioning.config-vR2_9XYh.cjs} +1 -1
- package/components/{set-locale-s-1X7Jce.js → set-locale-B9greCq4.js} +4 -4
- package/components/{set-locale-Bgz1WNGE.cjs → set-locale-BkbSlaQk.cjs} +1 -1
- package/components/{slicer-filter-positioning.config-D1kR4xly.cjs → slicer-filter-positioning.config-Byf9Q8gT.cjs} +1 -1
- package/components/{slicer-filter-positioning.config-Gl9jhO_G.js → slicer-filter-positioning.config-CzzuCQDP.js} +1 -1
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +1 -1
- package/components/{slot-menu-Dw53Y-iu.js → slot-menu-BAtOYWxs.js} +3 -3
- package/components/{slot-menu-CAhxaK5-.cjs → slot-menu-C_iIcdDw.cjs} +1 -1
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +1 -1
- package/components/{slot-menu-list-5NsRo9XD.js → slot-menu-list-DoRLtT2d.js} +1 -1
- package/components/{slot-menu-list-CUsmYkiV.cjs → slot-menu-list-K4_pghrC.cjs} +1 -1
- package/components/{speedometer-chart-positioning.config-fa90zZdb.cjs → speedometer-chart-positioning.config-DfnWIx7U.cjs} +1 -1
- package/components/{speedometer-chart-positioning.config-VBLrLNmO.js → speedometer-chart-positioning.config-DsCodDVP.js} +1 -1
- package/components/{spike-map-positioning.config-DrxdeFsj.cjs → spike-map-positioning.config-DPbVWLF7.cjs} +1 -1
- package/components/{spike-map-positioning.config-oYjk3n9a.js → spike-map-positioning.config-sSSQuxIm.js} +1 -1
- package/components/{strip-plot-positioning.config-lMn33cM4.js → strip-plot-positioning.config-C01KV7Er.js} +1 -1
- package/components/{strip-plot-positioning.config-Bx_fqmEj.cjs → strip-plot-positioning.config-Czz4B-U5.cjs} +1 -1
- package/components/{sunburst-chart-positioning.config-C-We-zZF.js → sunburst-chart-positioning.config-C4u-zAIV.js} +1 -1
- package/components/{sunburst-chart-positioning.config-D-GRWmyF.cjs → sunburst-chart-positioning.config-g8eXAhP4.cjs} +1 -1
- package/components/{symbol-map-positioning.config-B0sLlLzK.cjs → symbol-map-positioning.config-Be2wvwUD.cjs} +1 -1
- package/components/{symbol-map-positioning.config-_TJSfpVj.js → symbol-map-positioning.config-CRZwvQS5.js} +1 -1
- package/components/{treemap-chart-positioning.config-CO05Gv7X.cjs → treemap-chart-positioning.config-CvMw2lMe.cjs} +1 -1
- package/components/{treemap-chart-positioning.config-DAdvoS2I.js → treemap-chart-positioning.config-Dq1nuvca.js} +1 -1
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +2 -2
- package/components/{utils-CGJh0jrq.cjs → utils-Bkykodi1.cjs} +1 -1
- package/components/{utils-Dk4dM9xv.js → utils-C3-82TMs.js} +1 -1
- package/components/utils.cjs +1 -1
- package/components/utils.js +2 -2
- package/components/{venn-diagram-positioning.config-DKXWVaUI.cjs → venn-diagram-positioning.config-CJbmXy8r.cjs} +1 -1
- package/components/{venn-diagram-positioning.config-DUwmPQ1A.js → venn-diagram-positioning.config-DoYvs8k_.js} +1 -1
- package/components/{wordcloud-chart-positioning.config-CgbB_SI0.cjs → wordcloud-chart-positioning.config-BYz4mqOF.cjs} +1 -1
- package/components/{wordcloud-chart-positioning.config-qK5_CF7v.js → wordcloud-chart-positioning.config-C5gc4v7C.js} +1 -1
- package/custom-elements.json +180 -5
- package/package.json +1 -1
- package/react/components/ai-chat.component.ts +5 -2
- package/react/esm/components/ai-chat.component.d.ts +3 -1
- package/react/esm/components/ai-chat.component.js +3 -1
- package/react/luzmo-stub.d.ts +1 -0
- package/react/package.json +2 -2
- package/standalone/chunks/{add-to-dashboard-BrWieRxp.js → add-to-dashboard-BitIAbse.js} +1 -1
- package/standalone/chunks/{base-CLcNr-fQ.js → base-DetXzglI.js} +1 -1
- package/standalone/chunks/de-DasXCtPF.js +2 -0
- package/standalone/chunks/{display-settings-binning-B_lKObyP.js → display-settings-binning-D7udCQZB.js} +1 -1
- package/standalone/chunks/{display-settings-datetime-CTmJyEOX.js → display-settings-datetime-DoDqA4cJ.js} +1 -1
- package/standalone/chunks/{display-settings-grand-totals-IjcbBoyZ.js → display-settings-grand-totals-LZT2gYJu.js} +1 -1
- package/standalone/chunks/{display-settings-numeric-D9hvRtfN.js → display-settings-numeric-7Vq_f1D0.js} +1 -1
- package/standalone/chunks/{display-settings-period-over-period-Dnstsyqe.js → display-settings-period-over-period-CBjYIyKC.js} +1 -1
- package/standalone/chunks/es-cQV58zLc.js +2 -0
- package/standalone/chunks/{filters-CBmZhipt.js → filters-CF1JZIC1.js} +1 -1
- package/standalone/chunks/{formula-codemirror-D2F6Aj2h.js → formula-codemirror-DSKNnuLg.js} +1 -1
- package/standalone/chunks/fr-DzRE2NaZ.js +2 -0
- package/standalone/chunks/{item-option-action-button-group-BZyiRTfe.js → item-option-action-button-group-CM3q7mFJ.js} +1 -1
- package/standalone/chunks/{item-option-base-Bk5qxdcQ.js → item-option-base-BoBGd2zN.js} +1 -1
- package/standalone/chunks/{item-option-color-palette-picker-O8kT0i8p.js → item-option-color-palette-picker-BTGLKRU6.js} +1 -1
- package/standalone/chunks/{item-option-color-picker-CUTCc_yN.js → item-option-color-picker-WIaAaoWa.js} +1 -1
- package/standalone/chunks/{item-option-color-range-DsKPvjLj.js → item-option-color-range-DP8KXyD7.js} +1 -1
- package/standalone/chunks/{item-option-guidelines-CZyvhgtN.js → item-option-guidelines-CvvRU02d.js} +1 -1
- package/standalone/chunks/{item-option-multi-language-field-DlC-cCD7.js → item-option-multi-language-field-DOc_5pUa.js} +1 -1
- package/standalone/chunks/{item-option-number-field-BW9VpN9_.js → item-option-number-field-fj7jIBZ4.js} +1 -1
- package/standalone/chunks/{item-option-panel-BXA3sIYG.js → item-option-panel-C1GmQ9SW.js} +2 -2
- package/standalone/chunks/{item-option-picker-B2KmO7a6.js → item-option-picker-D0d0BXk7.js} +1 -1
- package/standalone/chunks/{item-option-position-picker-C9C9SKDD.js → item-option-position-picker-BpYLyMS7.js} +1 -1
- package/standalone/chunks/{item-option-positions-number-field-C2ahVlxe.js → item-option-positions-number-field-p6ghB0uD.js} +1 -1
- package/standalone/chunks/{item-option-radio-button-group-2q3doUXH.js → item-option-radio-button-group-DinqecBS.js} +1 -1
- package/standalone/chunks/{item-option-slider-C7TT3CqL.js → item-option-slider--YXct33p.js} +1 -1
- package/standalone/chunks/{item-option-switch-CZR2_Bs9.js → item-option-switch-BRuMJhT2.js} +1 -1
- package/standalone/chunks/{item-option-text-field-DBUOD_fv.js → item-option-text-field-Cvu0fi5x.js} +1 -1
- package/standalone/chunks/{item-slot-picker-panel-CTePASjI.js → item-slot-picker-panel-4ATGR7nP.js} +58 -62
- package/standalone/chunks/{load-data-fields-for-datasets-CPf_Q7p4.js → load-data-fields-for-datasets-DWys6Xqn.js} +1 -1
- package/standalone/chunks/{load-formula-codemirror-CA7NW4Zq.js → load-formula-codemirror-BP6dGYyV.js} +1 -1
- package/standalone/chunks/{localized-mixin-DN2aV3CC.js → localized-mixin-D3GVo182.js} +1 -1
- package/standalone/chunks/nl-Bzvdbvjs.js +2 -0
- package/standalone/interactive-viz-item.js +1 -1
- package/standalone/item-grid.js +1 -1
- package/standalone/manifest.json +33 -33
- package/types/ai-chat.types.d.ts +39 -2
- package/components/ai-chat-DfuJOWao.cjs +0 -338
- package/components/de-CjQMTFtl.cjs +0 -20
- package/components/display-settings-B2V_F_CU.cjs +0 -142
- package/components/es-DmmTP7D0.cjs +0 -20
- package/components/filters-C8xz8DV-.cjs +0 -199
- package/components/fr-DKDPLLAZ.cjs +0 -20
- package/components/item-grid-item-actions-menu-C3BUxZJc.cjs +0 -52
- package/components/item-option-guidelines-CmPaMdqb.cjs +0 -135
- package/components/nl-BrjaaktE.cjs +0 -20
- package/standalone/chunks/de-BtQ1ecN1.js +0 -2
- package/standalone/chunks/es-CAWreooi.js +0 -2
- package/standalone/chunks/fr-BG0nQk8g.js +0 -2
- package/standalone/chunks/nl-BXPduS2Q.js +0 -2
|
@@ -0,0 +1,143 @@
|
|
|
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
|
+
require("./tokens-BWMfo_w4.cjs");const e=require("./base-BdkFbMZR.cjs"),t=require("./decorate-DCJt-2rt.cjs"),n=require("./formatter-BeXmurVe.cjs"),r=require("./ad-hoc-slot-content-BwcFfXCV.cjs");require("./formula-CC33nJ0T.cjs");let i=require("@luzmo/icons");require("@luzmo/lucero/action-button"),require("@luzmo/lucero/icon"),require("@luzmo/lucero/tooltip");let a=require("lit"),o=require("lit/decorators.js"),s=require("@lit/localize");require("@luzmo/lucero/field-label"),require("@luzmo/lucero/progress-circle"),require("@luzmo/lucero/divider");let c=require("@lit-labs/signals"),l=require("@lit/context"),u=require("@lit/task");require("@luzmo/lucero/multi-language-field"),require("@luzmo/lucero/text-field");var d=(0,l.createContext)(Symbol(`slot-store-context`)),f=`:host{font-family:var(--luzmo-display-settings-font-family,var(--luzmo-font-family));font-size:var(--luzmo-display-settings-font-size,var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color,var(--luzmo-font-color))}.settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}.settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-gap,var(--display-settings-gap));display:flex}.label-container{align-items:center;gap:var(--luzmo-display-settings-gap,var(--display-settings-gap));min-width:0;display:flex}.label-container.stacked{flex-direction:column;flex:1;align-items:stretch;gap:0}.label-container.stacked luzmo-multi-language-field{width:100%}.calculation-preview luzmo-formula{max-block-size:6em;max-inline-size:var(--luzmo-display-settings-calculation-max-width,var(--display-settings-calculation-max-width));overflow-wrap:anywhere;align-items:flex-start;min-width:0;display:inline-flex;overflow-y:auto}.calculation-preview luzmo-formula::-webkit-scrollbar{width:var(--luzmo-scrollbar-size)}.calculation-preview luzmo-formula::-webkit-scrollbar-track{background:var(--luzmo-scrollbar-track-background);border-radius:var(--luzmo-scrollbar-track-border-radius)}.calculation-preview luzmo-formula::-webkit-scrollbar-thumb{background:var(--luzmo-scrollbar-thumb-background);border-radius:var(--luzmo-scrollbar-thumb-border-radius)}.calculation-preview luzmo-formula::-webkit-scrollbar-thumb:hover{background:var(--luzmo-scrollbar-thumb-hover-background)}.calculation-preview luzmo-formula{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-scrollbar-thumb-background) var(--luzmo-scrollbar-track-background)}luzmo-divider{margin:var(--luzmo-display-settings-ids-container-vertical-margin,var(--display-settings-ids-container-vertical-margin)) 0}luzmo-tooltip{--tooltip-font-size:var(--luzmo-display-settings-tooltip-font-size,var(--tooltip-font-size))}.setting{flex:1;align-items:flex-end;min-width:0;display:flex}.label-action-container{justify-content:space-between;align-items:center;gap:var(--luzmo-display-settings-info-to-remove-icon-gap,var(--display-settings-info-to-remove-icon-gap));display:flex}.label-action-container luzmo-action-button{margin-inline-start:var(--luzmo-spacing-2)}.ids-container{gap:var(--luzmo-display-settings-ids-container-gap,var(--luzmo-spacing-2));border-radius:50%;flex-direction:column;display:flex}.id-label{text-transform:var(--luzmo-display-settings-id-label-text-transform,var(--display-settings-id-label-text-transform));font-weight:var(--luzmo-display-settings-id-label-font-weight,var(--display-settings-id-label-font-weight));font-size:var(--luzmo-display-settings-id-label-font-size,var(--display-settings-id-label-font-size));color:var(--luzmo-display-settings-id-label-color,var(--display-settings-id-label-color))}.id-value{-webkit-user-select:text;user-select:text;cursor:text}.example-container{line-height:var(--luzmo-display-settings-example-height,var(--display-settings-example-height));font-size:var(--luzmo-display-settings-example-font-size,var(--display-settings-example-font-size));color:var(--luzmo-display-settings-example-color,var(--display-settings-example-color))}.example-container .example-label{font-weight:var(--luzmo-display-settings-example-label-font-weight,var(--display-settings-example-label-font-weight));color:var(--luzmo-display-settings-example-label-color,var(--display-settings-example-label-color))}.example-container .example-language{text-transform:uppercase;color:var(--luzmo-display-settings-example-language-color,var(--display-settings-example-language-color))}.example-container{gap:var(--luzmo-display-settings-example-container-gap,var(--luzmo-spacing-2))}:host{--display-settings-font-family:var(--luzmo-font-family);--display-settings-id-label-text-transform:none;--display-settings-id-label-font-weight:bold;--display-settings-id-label-color:var(--luzmo-primary);--display-settings-font-size:var(--luzmo-font-size);--display-settings-id-label-font-size:var(--luzmo-font-size);--display-settings-gap:var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin:var(--luzmo-spacing-4);--display-settings-info-to-remove-icon-gap:var(--luzmo-spacing-1);--display-settings-calculation-max-width:20rem}:host([size=s]){--display-settings-id-label-font-size:var(--luzmo-font-size-s);--display-settings-font-size:var(--luzmo-font-size-s);--display-settings-gap:var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin:var(--luzmo-spacing-3);--display-settings-info-to-remove-icon-gap:var(--luzmo-spacing-1);--display-settings-calculation-max-width:16rem}:host([size=l]){--display-settings-id-label-font-size:var(--luzmo-font-size);--display-settings-font-size:var(--luzmo-font-size-l);--display-settings-gap:var(--luzmo-spacing-4);--display-settings-ids-container-vertical-margin:var(--luzmo-spacing-5);--display-settings-info-to-remove-icon-gap:var(--luzmo-spacing-1);--display-settings-calculation-max-width:24rem}:host([size=xl]){--display-settings-id-label-font-size:var(--luzmo-font-size-l);--display-settings-font-size:var(--luzmo-font-size-xl);--display-settings-gap:var(--luzmo-spacing-5);--display-settings-ids-container-vertical-margin:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--display-settings-info-to-remove-icon-gap:var(--luzmo-spacing-1);--display-settings-calculation-max-width:28rem}:host{--display-settings-example-font-size:var(--luzmo-font-size);--display-settings-example-color:var(--luzmo-font-color);--display-settings-example-label-font-weight:bold;--display-settings-example-label-color:var(--luzmo-primary);--display-settings-example-language-color:var(--luzmo-primary);--display-settings-example-height:var(--luzmo-component-height)}:host([size=s]){--display-settings-example-height:var(--luzmo-component-height-s);--display-settings-example-font-size:var(--luzmo-font-size-s)}:host([size=l]){--display-settings-example-height:var(--luzmo-component-height-l);--display-settings-example-font-size:var(--luzmo-font-size)}:host([size=xl]){--display-settings-example-height:var(--luzmo-component-height-xl);--display-settings-example-font-size:var(--luzmo-font-size-l)}`,p=class extends (0,c.SignalWatcher)(e.n(e.i,{validSizes:Object.values(e.t)})){constructor(...e){super(...e),this._loadDisplaySettings=new u.Task(this,{task:async([e,t,n,r,i,a])=>{let o=[];a&&o.push(`grandTotals`),n&&o.push(`periodOverPeriod`),(e===`numeric`||e===`mixed`&&this._currentSlotContent?.type===`numeric`)&&o.push(`numeric`),e!==`numeric`&&this._currentSlotContent?.type===`datetime`&&o.push(`datetime`),![`numeric`,`mixed`].includes(e??``)&&this._currentSlotContent?.type===`numeric`&&!r&&o.push(`binning`),n&&!this._settingsTypeLoaded.periodOverPeriod&&(await Promise.resolve().then(()=>require("./display-settings-period-over-period/index.cjs")),this._settingsTypeLoaded.periodOverPeriod=!0),o.length>0&&!t&&(o.includes(`numeric`)&&!this._settingsTypeLoaded.numeric?(await Promise.resolve().then(()=>require("./display-settings-numeric/index.cjs")),this._settingsTypeLoaded.numeric=!0):o.includes(`datetime`)&&!this._settingsTypeLoaded.datetime&&i?(await Promise.resolve().then(()=>require("./display-settings-datetime/index.cjs")),this._settingsTypeLoaded.datetime=!0):o.includes(`binning`)&&!this._settingsTypeLoaded.binning?(await Promise.resolve().then(()=>require("./display-settings-binning/index.cjs")),this._settingsTypeLoaded.binning=!0):o.includes(`grandTotals`)&&!this._settingsTypeLoaded.grandTotals&&(await Promise.resolve().then(()=>require("./display-settings-grand-totals/index.cjs")),this._settingsTypeLoaded.grandTotals=!0))},args:()=>[this.slotType,this.hideDisplaySettings,this._store?.periodOverPeriodUiType.get(),this.isBinningDisabled,this.areDatetimeOptionsEnabled,this.areGrandTotalsEnabled,this.slotContent]}),this.language=`en`,this.contentLanguage=`en`,this.slotType=`numeric`,this.slotName=`measure`,this.slotContent={},this.datasetsDataFields=[],this.apiUrl=`https://api.luzmo.com`,this.authKey=``,this.authToken=``,this._showIds=!1,this.measureColumns=[],this._settingsTypeLoaded={binning:!1,datetime:!1,numeric:!1,grandTotals:!1,periodOverPeriod:!1,hierarchy:!0},this._currentSlotContent={}}static get styles(){return[(0,a.unsafeCSS)(f)]}_datasetDatetimeColumns(){return this._store?.linkedDataset.get().flatMap(e=>e.columns?.filter(e=>e.type===`datetime`).map(t=>({...t,datasetId:e.id})))}willUpdate(e){let t=this._store?.activeSlotContents.get(),n=this._store?.periodOverPeriodUiType.get();if(this.periodOverPeriodUiType!==n&&(this.periodOverPeriodUiType=n),this._store){t!==this._lastStoreContent&&(this._lastStoreContent=t,this._currentSlotContent=t?structuredClone(t):{});return}if(e.has(`slotContent`)||Object.keys(this._currentSlotContent).length===0){let e=this.slotContent;e&&(this._currentSlotContent=structuredClone(e))}}get datasetId(){return this._currentSlotContent.datasetId??this._currentSlotContent.set}get formulaOrColumnId(){return this._currentSlotContent.formulaId??this._currentSlotContent.expression??this._currentSlotContent.formula??this._currentSlotContent.columnId??this._currentSlotContent.column}resetInfoVisibility(e){this._showIds&&this._toggleIds(e)}_onSlotContentChange(e){e.stopPropagation(),e.preventDefault(),this._currentSlotContent=structuredClone(e.detail.slotContent),this._sendEvent(),this.requestUpdate()}_onLabelChange(){this._currentSlotContent=structuredClone(this._currentSlotContent),this._currentSlotContent.label=this._multiLanguageFieldElement.value||{},this._sendEvent(),this.requestUpdate()}_sendEvent(){this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this._currentSlotContent}}})),this._store&&(this._store.updateContent({...this._currentSlotContent}),this._lastStoreContent=this._store.activeSlotContents.get())}_removeEvent(){this.dispatchEvent(new CustomEvent(`luzmo-remove-slot-content`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}_toggleIds(e=!0){this._showIds=!this._showIds,e&&this.dispatchEvent(new CustomEvent(`luzmo-info-visibility-changed`,{detail:{isVisible:this._showIds,slotContent:{...this._currentSlotContent}}}))}_renderExampleRow(){let e=this.slotType===`numeric`||this.slotType===`mixed`&&this._currentSlotContent.type===`numeric`,t=this.slotType!==`datetime`&&this._currentSlotContent.type===`datetime`&&this.areDatetimeOptionsEnabled;if(!(e||t))return a.nothing;let r=!this._currentSlotContent.datetimeDisplayMode||this._currentSlotContent.datetimeDisplayMode==="default",i=e?1234.56:r?new Date:1,o=n.t({...this._currentSlotContent,type:e?`numeric`:`datetime`},{locale:this.contentLanguage,level:this._currentSlotContent.level})(i);return a.html`<div class="settings-row example-container">
|
|
21
|
+
<span class="example-label"
|
|
22
|
+
>${(0,s.msg)(`Example`,{desc:`Label for example`})}:</span
|
|
23
|
+
>
|
|
24
|
+
<span class="example">${o}</span>
|
|
25
|
+
</div>`}_renderDisplaySettings(){let e={name:this.slotName,type:this.slotType},t=r.i(this._currentSlotContent,e)?r.t(this._currentSlotContent):void 0,n=r.r(this._currentSlotContent)?(0,s.msg)(`Formula`,{desc:`Label for the formula type`}):(0,s.msg)(`Expression`,{desc:`Label for the expression type`}),o=this._currentSlotContent.datasetId??this._currentSlotContent.set;return a.html`<div class="settings-container">
|
|
26
|
+
<div class="settings-row">
|
|
27
|
+
<div class="setting">
|
|
28
|
+
<div class="label-container stacked">
|
|
29
|
+
<luzmo-field-label .size=${this.size} for="slot-label">
|
|
30
|
+
${(0,s.msg)(`Label`,{desc:`Label for the slot label setting`})}
|
|
31
|
+
</luzmo-field-label>
|
|
32
|
+
<luzmo-multi-language-field
|
|
33
|
+
id="slot-label"
|
|
34
|
+
label=${(0,s.msg)(`Label`,{desc:`Label for the slot label setting`})}
|
|
35
|
+
.language=${this.contentLanguage}
|
|
36
|
+
.value=${this._currentSlotContent.label??{}}
|
|
37
|
+
.size=${this.size}
|
|
38
|
+
debounce="200"
|
|
39
|
+
@change=${this._onLabelChange}
|
|
40
|
+
></luzmo-multi-language-field>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="label-action-container">
|
|
43
|
+
<luzmo-action-button quiet .size=${this.size} .label=${(0,s.msg)(`Show dataset and column IDs`,{desc:`Show IDs button label`})} aria-expanded=${this._showIds} ?selected=${this._showIds} @click=${this._toggleIds}>
|
|
44
|
+
${(0,i.luzmoIcon)(i.luzmoInfoCircleOutline)}
|
|
45
|
+
<luzmo-tooltip self-managed placement="top" size=${this.size}>
|
|
46
|
+
${(0,s.msg)(`Show dataset and column IDs`,{desc:`Show IDs button label`})}
|
|
47
|
+
</luzmo-tooltip>
|
|
48
|
+
</luzmo-action-button>
|
|
49
|
+
${this.showRemoveButton?a.html`<luzmo-action-button quiet .size=${this.size} .label=${(0,s.msg)(`Remove`,{desc:`Remove button label`})} @click=${this._removeEvent}>
|
|
50
|
+
${(0,i.luzmoIcon)(i.luzmoTrashOutline)}
|
|
51
|
+
<luzmo-tooltip
|
|
52
|
+
self-managed
|
|
53
|
+
placement="top"
|
|
54
|
+
size=${this.size}
|
|
55
|
+
>
|
|
56
|
+
${(0,s.msg)(`Remove`,{desc:`Remove button label`})}
|
|
57
|
+
</luzmo-tooltip>
|
|
58
|
+
</luzmo-action-button>`:``}
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
${t?a.html`<div class="settings-row">
|
|
63
|
+
<div class="setting">
|
|
64
|
+
<div class="label-container stacked calculation-preview">
|
|
65
|
+
<luzmo-field-label .size=${this.size}>${n}</luzmo-field-label>
|
|
66
|
+
<luzmo-formula
|
|
67
|
+
display="text"
|
|
68
|
+
.expression=${t}
|
|
69
|
+
.datasetsDataFields=${this.datasetsDataFields}
|
|
70
|
+
.datasetIds=${o?[o]:[]}
|
|
71
|
+
.apiUrl=${this.apiUrl}
|
|
72
|
+
.authKey=${this.authKey}
|
|
73
|
+
.authToken=${this.authToken}
|
|
74
|
+
.contentLanguage=${this.contentLanguage}
|
|
75
|
+
.size=${this.size}
|
|
76
|
+
></luzmo-formula>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>`:``}
|
|
80
|
+
${this.areGrandTotalsEnabled?a.html`<luzmo-display-settings-grand-totals
|
|
81
|
+
.language=${this.language}
|
|
82
|
+
.slotContent=${this._currentSlotContent}
|
|
83
|
+
.size=${this.size}
|
|
84
|
+
@luzmo-slot-content-changed=${this._onSlotContentChange}
|
|
85
|
+
></luzmo-display-settings-grand-totals>`:``}
|
|
86
|
+
${this.slotType===`numeric`||this.slotType===`mixed`&&this._currentSlotContent.type===`numeric`?a.html`<luzmo-display-settings-numeric
|
|
87
|
+
.language=${this.language}
|
|
88
|
+
.slotContent=${this._currentSlotContent}
|
|
89
|
+
.size=${this.size}
|
|
90
|
+
.measureColumns=${this.measureColumns}
|
|
91
|
+
.isAggregationDisabled=${this.isAggregationDisabled}
|
|
92
|
+
.isCumulativeSumEnabled=${this.isCumulativeSumEnabled}
|
|
93
|
+
@luzmo-slot-content-changed=${this._onSlotContentChange}
|
|
94
|
+
></luzmo-display-settings-numeric>`:``}
|
|
95
|
+
${this.slotType!==`numeric`&&this._currentSlotContent.type===`datetime`&&this.areDatetimeOptionsEnabled?a.html`<luzmo-display-settings-datetime
|
|
96
|
+
.language=${this.language}
|
|
97
|
+
.contentLanguage=${this.contentLanguage}
|
|
98
|
+
.slotContent=${this._currentSlotContent}
|
|
99
|
+
.size=${this.size}
|
|
100
|
+
@luzmo-slot-content-changed=${this._onSlotContentChange}
|
|
101
|
+
></luzmo-display-settings-datetime>`:``}
|
|
102
|
+
${![`numeric`,`mixed`].includes(this.slotType??``)&&this._currentSlotContent.type===`numeric`&&!this.isBinningDisabled?a.html`<luzmo-display-settings-binning
|
|
103
|
+
.language=${this.language}
|
|
104
|
+
.slotContent=${this._currentSlotContent}
|
|
105
|
+
.size=${this.size}
|
|
106
|
+
@luzmo-slot-content-changed=${this._onSlotContentChange}
|
|
107
|
+
></luzmo-display-settings-binning>`:``}
|
|
108
|
+
${this.periodOverPeriodUiType?a.html`<luzmo-display-settings-period-over-period
|
|
109
|
+
.language=${this.language}
|
|
110
|
+
.slotContent=${this._currentSlotContent}
|
|
111
|
+
.size=${this.size}
|
|
112
|
+
.periodOverPeriodUiType=${this.periodOverPeriodUiType}
|
|
113
|
+
.allowPeriodsWithoutDatetimeColumn=${this._store?.periodOverPeriodAllowsPeriodsWithoutDatetimeColumn.get()??!1}
|
|
114
|
+
.hidePastValue=${this._store?.periodOverPeriodHidesPastValue.get()??!1}
|
|
115
|
+
.linkedDatasetDatetimeColumns=${this._datasetDatetimeColumns()}
|
|
116
|
+
@luzmo-slot-content-changed=${this._onSlotContentChange}
|
|
117
|
+
></luzmo-display-settings-period-over-period>`:``}
|
|
118
|
+
${this._renderExampleRow()}
|
|
119
|
+
</div>
|
|
120
|
+
${this._showIds?a.html` <luzmo-divider></luzmo-divider>
|
|
121
|
+
<div class="ids-container">
|
|
122
|
+
<div>
|
|
123
|
+
<span class="id-label"
|
|
124
|
+
>${this._currentSlotContent.formula||this._currentSlotContent.formulaId||this._currentSlotContent.expression?(0,s.msg)(`Formula`,{desc:`Label for the formula type`}):(0,s.msg)(`Column`,{desc:`Label for column type`})}:
|
|
125
|
+
</span>
|
|
126
|
+
<span class="id-value">
|
|
127
|
+
${this.formulaOrColumnId}
|
|
128
|
+
</span>
|
|
129
|
+
</div>
|
|
130
|
+
<div>
|
|
131
|
+
<span class="id-label"
|
|
132
|
+
>${(0,s.msg)(`Dataset`)}:
|
|
133
|
+
</span>
|
|
134
|
+
<span class="id-value">
|
|
135
|
+
${this.datasetId}
|
|
136
|
+
</span>
|
|
137
|
+
</div>
|
|
138
|
+
<div></div>
|
|
139
|
+
</div>`:``}`}render(){return this._loadDisplaySettings.render({pending:()=>a.html`<luzmo-progress-circle
|
|
140
|
+
indeterminate
|
|
141
|
+
.label=${(0,s.msg)(`Loading`,{desc:`Loading spinner label`})}
|
|
142
|
+
.size=${this.size}
|
|
143
|
+
></luzmo-progress-circle>`,complete:()=>this._renderDisplaySettings(),error:()=>this._renderDisplaySettings()})}disconnectedCallback(){super.disconnectedCallback?.(),this._loadDisplaySettings.abort?.()}};t.t([(0,o.property)({type:String})],p.prototype,`language`,void 0),t.t([(0,o.property)({type:String,attribute:`content-language`})],p.prototype,`contentLanguage`,void 0),t.t([(0,o.property)({type:Boolean,attribute:`hide-display-settings`})],p.prototype,`hideDisplaySettings`,void 0),t.t([(0,o.property)({type:Boolean})],p.prototype,`isBinningDisabled`,void 0),t.t([(0,o.property)({type:Boolean})],p.prototype,`areDatetimeOptionsEnabled`,void 0),t.t([(0,o.property)({type:Boolean})],p.prototype,`areGrandTotalsEnabled`,void 0),t.t([(0,o.property)({type:Boolean})],p.prototype,`isAggregationDisabled`,void 0),t.t([(0,o.property)({type:Boolean})],p.prototype,`isCumulativeSumEnabled`,void 0),t.t([(0,o.property)({type:String})],p.prototype,`periodOverPeriodUiType`,void 0),t.t([(0,o.property)({type:Boolean,attribute:`show-remove-button`})],p.prototype,`showRemoveButton`,void 0),t.t([(0,o.property)({type:String,attribute:`slot-type`})],p.prototype,`slotType`,void 0),t.t([(0,o.property)({type:String,attribute:`slot-name`})],p.prototype,`slotName`,void 0),t.t([(0,o.property)({type:Object,attribute:!1})],p.prototype,`slotContent`,void 0),t.t([(0,o.property)({attribute:!1})],p.prototype,`datasetsDataFields`,void 0),t.t([(0,o.property)({type:String,attribute:`api-url`,reflect:!0})],p.prototype,`apiUrl`,void 0),t.t([(0,o.property)({type:String,attribute:`auth-key`,reflect:!0})],p.prototype,`authKey`,void 0),t.t([(0,o.property)({type:String,attribute:`auth-token`,reflect:!0})],p.prototype,`authToken`,void 0),t.t([(0,o.state)()],p.prototype,`_showIds`,void 0),t.t([(0,o.property)({type:Array,reflect:!1})],p.prototype,`measureColumns`,void 0),t.t([(0,o.query)(`luzmo-multi-language-field`)],p.prototype,`_multiLanguageFieldElement`,void 0),t.t([(0,l.consume)({context:d,subscribe:!0})],p.prototype,`_store`,void 0),customElements.get(`luzmo-display-settings`)||customElements.define(`luzmo-display-settings`,p),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return p}});
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
20
|
import "./tokens-Ov1pCR4Y.js";
|
|
21
|
-
import { i as e, n as t, t as n } from "./base-
|
|
21
|
+
import { i as e, n as t, t as n } from "./base-Cvcpdy0h.js";
|
|
22
22
|
import { t as r } from "./decorate-DyMgX_Uh.js";
|
|
23
23
|
import { t as i } from "./formatter-Cq5dFCyU.js";
|
|
24
24
|
import { i as a, r as o, t as s } from "./ad-hoc-slot-content-hSlT62VS.js";
|
|
25
|
-
import "./formula
|
|
25
|
+
import "./formula--lmxX7EE.js";
|
|
26
26
|
import { luzmoIcon as c, luzmoInfoCircleOutline as l, luzmoTrashOutline as u } from "@luzmo/icons";
|
|
27
|
+
import "@luzmo/lucero/action-button";
|
|
27
28
|
import "@luzmo/lucero/icon";
|
|
29
|
+
import "@luzmo/lucero/tooltip";
|
|
28
30
|
import { html as d, nothing as f, unsafeCSS as p } from "lit";
|
|
29
31
|
import { property as m, query as h, state as g } from "lit/decorators.js";
|
|
30
32
|
import { msg as _ } from "@lit/localize";
|
|
31
|
-
import "@luzmo/lucero/action-button";
|
|
32
|
-
import "@luzmo/lucero/tooltip";
|
|
33
33
|
import "@luzmo/lucero/field-label";
|
|
34
34
|
import "@luzmo/lucero/progress-circle";
|
|
35
35
|
import "@luzmo/lucero/divider";
|
|
@@ -39,7 +39,7 @@ import { Task as x } from "@lit/task";
|
|
|
39
39
|
import "@luzmo/lucero/multi-language-field";
|
|
40
40
|
import "@luzmo/lucero/text-field";
|
|
41
41
|
//#region src/utils/slot-state/slot-context.ts
|
|
42
|
-
var S = b(Symbol("slot-store-context")), C = ":host{font-family:var(--luzmo-display-settings-font-family,var(--luzmo-font-family));font-size:var(--luzmo-display-settings-font-size,var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color,var(--luzmo-font-color))}.settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}.settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-gap,var(--display-settings-gap));display:flex}.label-container{align-items:center;gap:var(--luzmo-display-settings-gap,var(--display-settings-gap));min-width:0;display:flex}.
|
|
42
|
+
var S = b(Symbol("slot-store-context")), C = ":host{font-family:var(--luzmo-display-settings-font-family,var(--luzmo-font-family));font-size:var(--luzmo-display-settings-font-size,var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color,var(--luzmo-font-color))}.settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}.settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-gap,var(--display-settings-gap));display:flex}.label-container{align-items:center;gap:var(--luzmo-display-settings-gap,var(--display-settings-gap));min-width:0;display:flex}.label-container.stacked{flex-direction:column;flex:1;align-items:stretch;gap:0}.label-container.stacked luzmo-multi-language-field{width:100%}.calculation-preview luzmo-formula{max-block-size:6em;max-inline-size:var(--luzmo-display-settings-calculation-max-width,var(--display-settings-calculation-max-width));overflow-wrap:anywhere;align-items:flex-start;min-width:0;display:inline-flex;overflow-y:auto}.calculation-preview luzmo-formula::-webkit-scrollbar{width:var(--luzmo-scrollbar-size)}.calculation-preview luzmo-formula::-webkit-scrollbar-track{background:var(--luzmo-scrollbar-track-background);border-radius:var(--luzmo-scrollbar-track-border-radius)}.calculation-preview luzmo-formula::-webkit-scrollbar-thumb{background:var(--luzmo-scrollbar-thumb-background);border-radius:var(--luzmo-scrollbar-thumb-border-radius)}.calculation-preview luzmo-formula::-webkit-scrollbar-thumb:hover{background:var(--luzmo-scrollbar-thumb-hover-background)}.calculation-preview luzmo-formula{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-scrollbar-thumb-background) var(--luzmo-scrollbar-track-background)}luzmo-divider{margin:var(--luzmo-display-settings-ids-container-vertical-margin,var(--display-settings-ids-container-vertical-margin)) 0}luzmo-tooltip{--tooltip-font-size:var(--luzmo-display-settings-tooltip-font-size,var(--tooltip-font-size))}.setting{flex:1;align-items:flex-end;min-width:0;display:flex}.label-action-container{justify-content:space-between;align-items:center;gap:var(--luzmo-display-settings-info-to-remove-icon-gap,var(--display-settings-info-to-remove-icon-gap));display:flex}.label-action-container luzmo-action-button{margin-inline-start:var(--luzmo-spacing-2)}.ids-container{gap:var(--luzmo-display-settings-ids-container-gap,var(--luzmo-spacing-2));border-radius:50%;flex-direction:column;display:flex}.id-label{text-transform:var(--luzmo-display-settings-id-label-text-transform,var(--display-settings-id-label-text-transform));font-weight:var(--luzmo-display-settings-id-label-font-weight,var(--display-settings-id-label-font-weight));font-size:var(--luzmo-display-settings-id-label-font-size,var(--display-settings-id-label-font-size));color:var(--luzmo-display-settings-id-label-color,var(--display-settings-id-label-color))}.id-value{-webkit-user-select:text;user-select:text;cursor:text}.example-container{line-height:var(--luzmo-display-settings-example-height,var(--display-settings-example-height));font-size:var(--luzmo-display-settings-example-font-size,var(--display-settings-example-font-size));color:var(--luzmo-display-settings-example-color,var(--display-settings-example-color))}.example-container .example-label{font-weight:var(--luzmo-display-settings-example-label-font-weight,var(--display-settings-example-label-font-weight));color:var(--luzmo-display-settings-example-label-color,var(--display-settings-example-label-color))}.example-container .example-language{text-transform:uppercase;color:var(--luzmo-display-settings-example-language-color,var(--display-settings-example-language-color))}.example-container{gap:var(--luzmo-display-settings-example-container-gap,var(--luzmo-spacing-2))}:host{--display-settings-font-family:var(--luzmo-font-family);--display-settings-id-label-text-transform:none;--display-settings-id-label-font-weight:bold;--display-settings-id-label-color:var(--luzmo-primary);--display-settings-font-size:var(--luzmo-font-size);--display-settings-id-label-font-size:var(--luzmo-font-size);--display-settings-gap:var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin:var(--luzmo-spacing-4);--display-settings-info-to-remove-icon-gap:var(--luzmo-spacing-1);--display-settings-calculation-max-width:20rem}:host([size=s]){--display-settings-id-label-font-size:var(--luzmo-font-size-s);--display-settings-font-size:var(--luzmo-font-size-s);--display-settings-gap:var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin:var(--luzmo-spacing-3);--display-settings-info-to-remove-icon-gap:var(--luzmo-spacing-1);--display-settings-calculation-max-width:16rem}:host([size=l]){--display-settings-id-label-font-size:var(--luzmo-font-size);--display-settings-font-size:var(--luzmo-font-size-l);--display-settings-gap:var(--luzmo-spacing-4);--display-settings-ids-container-vertical-margin:var(--luzmo-spacing-5);--display-settings-info-to-remove-icon-gap:var(--luzmo-spacing-1);--display-settings-calculation-max-width:24rem}:host([size=xl]){--display-settings-id-label-font-size:var(--luzmo-font-size-l);--display-settings-font-size:var(--luzmo-font-size-xl);--display-settings-gap:var(--luzmo-spacing-5);--display-settings-ids-container-vertical-margin:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--display-settings-info-to-remove-icon-gap:var(--luzmo-spacing-1);--display-settings-calculation-max-width:28rem}:host{--display-settings-example-font-size:var(--luzmo-font-size);--display-settings-example-color:var(--luzmo-font-color);--display-settings-example-label-font-weight:bold;--display-settings-example-label-color:var(--luzmo-primary);--display-settings-example-language-color:var(--luzmo-primary);--display-settings-example-height:var(--luzmo-component-height)}:host([size=s]){--display-settings-example-height:var(--luzmo-component-height-s);--display-settings-example-font-size:var(--luzmo-font-size-s)}:host([size=l]){--display-settings-example-height:var(--luzmo-component-height-l);--display-settings-example-font-size:var(--luzmo-font-size)}:host([size=xl]){--display-settings-example-height:var(--luzmo-component-height-xl);--display-settings-example-font-size:var(--luzmo-font-size-l)}", w = class extends v(t(e, { validSizes: Object.values(n) })) {
|
|
43
43
|
constructor(...e) {
|
|
44
44
|
super(...e), this._loadDisplaySettings = new x(this, {
|
|
45
45
|
task: async ([e, t, n, r, i, a]) => {
|
|
@@ -146,12 +146,13 @@ var S = b(Symbol("slot-store-context")), C = ":host{font-family:var(--luzmo-disp
|
|
|
146
146
|
return d`<div class="settings-container">
|
|
147
147
|
<div class="settings-row">
|
|
148
148
|
<div class="setting">
|
|
149
|
-
<div class="label-container">
|
|
150
|
-
<luzmo-field-label
|
|
151
|
-
|
|
152
|
-
>
|
|
149
|
+
<div class="label-container stacked">
|
|
150
|
+
<luzmo-field-label .size=${this.size} for="slot-label">
|
|
151
|
+
${_("Label", { desc: "Label for the slot label setting" })}
|
|
152
|
+
</luzmo-field-label>
|
|
153
153
|
<luzmo-multi-language-field
|
|
154
|
-
|
|
154
|
+
id="slot-label"
|
|
155
|
+
label=${_("Label", { desc: "Label for the slot label setting" })}
|
|
155
156
|
.language=${this.contentLanguage}
|
|
156
157
|
.value=${this._currentSlotContent.label ?? {}}
|
|
157
158
|
.size=${this.size}
|
|
@@ -160,7 +161,7 @@ var S = b(Symbol("slot-store-context")), C = ":host{font-family:var(--luzmo-disp
|
|
|
160
161
|
></luzmo-multi-language-field>
|
|
161
162
|
</div>
|
|
162
163
|
<div class="label-action-container">
|
|
163
|
-
<luzmo-action-button quiet .size=${this.size} .label=${_("Show dataset and column IDs", { desc: "Show IDs button label" })} aria-expanded=${this._showIds} @click=${this._toggleIds}>
|
|
164
|
+
<luzmo-action-button quiet .size=${this.size} .label=${_("Show dataset and column IDs", { desc: "Show IDs button label" })} aria-expanded=${this._showIds} ?selected=${this._showIds} @click=${this._toggleIds}>
|
|
164
165
|
${c(l)}
|
|
165
166
|
<luzmo-tooltip self-managed placement="top" size=${this.size}>
|
|
166
167
|
${_("Show dataset and column IDs", { desc: "Show IDs button label" })}
|
|
@@ -181,10 +182,8 @@ var S = b(Symbol("slot-store-context")), C = ":host{font-family:var(--luzmo-disp
|
|
|
181
182
|
</div>
|
|
182
183
|
${t ? d`<div class="settings-row">
|
|
183
184
|
<div class="setting">
|
|
184
|
-
<div class="label-container calculation-preview">
|
|
185
|
-
<luzmo-field-label
|
|
186
|
-
>${n}:</luzmo-field-label
|
|
187
|
-
>
|
|
185
|
+
<div class="label-container stacked calculation-preview">
|
|
186
|
+
<luzmo-field-label .size=${this.size}>${n}</luzmo-field-label>
|
|
188
187
|
<luzmo-formula
|
|
189
188
|
display="text"
|
|
190
189
|
.expression=${t}
|
|
@@ -250,7 +249,9 @@ var S = b(Symbol("slot-store-context")), C = ":host{font-family:var(--luzmo-disp
|
|
|
250
249
|
</span>
|
|
251
250
|
</div>
|
|
252
251
|
<div>
|
|
253
|
-
<span class="id-label"
|
|
252
|
+
<span class="id-label"
|
|
253
|
+
>${_("Dataset")}:
|
|
254
|
+
</span>
|
|
254
255
|
<span class="id-value">
|
|
255
256
|
${this.datasetId}
|
|
256
257
|
</span>
|
|
@@ -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("../display-settings-binning-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../display-settings-binning-DqcCzBrG.cjs");Object.defineProperty(exports,"LuzmoDisplaySettingsBinning",{enumerable:!0,get:function(){return e.t}});
|
|
@@ -17,5 +17,5 @@
|
|
|
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 { t as e } from "../display-settings-binning-
|
|
20
|
+
import { t as e } from "../display-settings-binning-BQYxWvFI.js";
|
|
21
21
|
export { e as LuzmoDisplaySettingsBinning };
|
package/components/{display-settings-binning-CkrbhPVB.js → display-settings-binning-BQYxWvFI.js}
RENAMED
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
20
|
import "./tokens-Ov1pCR4Y.js";
|
|
21
|
-
import { i as e, n as t, t as n } from "./base-
|
|
21
|
+
import { i as e, n as t, t as n } from "./base-Cvcpdy0h.js";
|
|
22
22
|
import { t as r } from "./decorate-DyMgX_Uh.js";
|
|
23
|
-
import { t as i } from "./localized-mixin-
|
|
23
|
+
import { t as i } from "./localized-mixin-BLUbrY_Z.js";
|
|
24
24
|
import { luzmoCheckbox as a, luzmoCheckboxChecked as o } from "@luzmo/icons";
|
|
25
|
+
import "@luzmo/lucero/action-button";
|
|
25
26
|
import "@luzmo/lucero/icon";
|
|
26
27
|
import { html as s, unsafeCSS as c } from "lit";
|
|
27
28
|
import { property as l, query as u, state as d } from "lit/decorators.js";
|
|
28
29
|
import { localized as f, msg as p } from "@lit/localize";
|
|
29
|
-
import "@luzmo/lucero/action-button";
|
|
30
30
|
import "@luzmo/lucero/field-label";
|
|
31
31
|
import "@luzmo/lucero/number-field";
|
|
32
32
|
//#region src/components/display-settings-binning/display-settings-binning.module.scss?inline
|
package/components/{display-settings-binning-BdtxayZT.cjs → display-settings-binning-DqcCzBrG.cjs}
RENAMED
|
@@ -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
|
-
require("./tokens-BWMfo_w4.cjs");const e=require("./base-
|
|
20
|
+
require("./tokens-BWMfo_w4.cjs");const e=require("./base-BdkFbMZR.cjs"),t=require("./decorate-DCJt-2rt.cjs"),n=require("./localized-mixin-DceE4W-d.cjs");let r=require("@luzmo/icons");require("@luzmo/lucero/action-button"),require("@luzmo/lucero/icon");let i=require("lit"),a=require("lit/decorators.js"),o=require("@lit/localize");require("@luzmo/lucero/field-label"),require("@luzmo/lucero/number-field");var s=`:host .settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-binning-gap,var(--display-settings-binning-gap));display:flex}:host,:host([size=s]){--display-settings-binning-gap:var(--luzmo-spacing-3)}:host([size=l]){--display-settings-binning-gap:var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-binning-gap:var(--luzmo-spacing-5)}`,c=class extends n.t(e.n(e.i,{validSizes:Object.values(e.t)})){constructor(...e){super(...e),this.slotContent={},this._enabled=!1,this._binWidth=10}static get styles(){return[(0,i.unsafeCSS)(s)]}willUpdate(e){super.willUpdate(e),e.has(`slotContent`)&&(this._enabled=this.slotContent?.bins?.enabled??!1,this._binWidth=this.slotContent?.bins?.number??10)}toggleBinning(){this._enabled=!this._enabled,this.sendEvent()}setBinning(){this._binWidth=this.binWidthElement.value,this.sendEvent()}sendEvent(){let e={enabled:!!this._enabled,number:this._binWidth??10};this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,bins:e}}}))}renderBinWidth(){return i.html`<div class="setting">
|
|
21
21
|
<luzmo-field-label .size=${this.size} for="bin-width"
|
|
22
22
|
>${(0,o.msg)(`Bin width`,{desc:`The width of each bin in the histogram`})}</luzmo-field-label
|
|
23
23
|
>
|
|
@@ -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("../display-settings-datetime-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../display-settings-datetime-9WraOyqr.cjs");Object.defineProperty(exports,"LuzmoDisplaySettingsDatetime",{enumerable:!0,get:function(){return e.t}});
|
|
@@ -17,5 +17,5 @@
|
|
|
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 { t as e } from "../display-settings-datetime-
|
|
20
|
+
import { t as e } from "../display-settings-datetime-D5UwdwAI.js";
|
|
21
21
|
export { e as LuzmoDisplaySettingsDatetime };
|
package/components/{display-settings-datetime-CpFyrcGk.cjs → display-settings-datetime-9WraOyqr.cjs}
RENAMED
|
@@ -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
|
-
require("./tokens-BWMfo_w4.cjs");const e=require("./base-BmvsQ-s1.cjs"),t=require("./decorate-DCJt-2rt.cjs"),n=require("./localized-mixin-Bt25Frg1.cjs"),r=require("./formatter-BeXmurVe.cjs"),i=require("./periods.const-Db0nXrwr.cjs");let a=require("@luzmo/icons");require("@luzmo/lucero/icon");let o=require("lit"),s=require("lit/decorators.js"),c=require("@lit/localize");require("@luzmo/lucero/action-button"),require("@luzmo/lucero/action-group"),require("@luzmo/lucero/field-label"),require("@luzmo/lucero/number-field"),require("@luzmo/lucero/picker"),require("@luzmo/lucero/progress-circle");let l=require("@lit/task");var u={"~":()=>(0,c.msg)(`Auto`,{desc:`Automatic setting of the option`}),"/":()=>`/`,"-":()=>`-`,".":()=>`.`},d=`:host{font-family:var(--luzmo-display-settings-datetime-font-family,var(--luzmo-font-family))}:host .settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-datetime-gap,var(--display-settings-datetime-gap));display:flex}:host{--display-settings-datetime-example-font-size:var(--luzmo-font-size-s);--display-settings-datetime-example-color:var(--luzmo-font-color);--display-settings-datetime-example-label-font-weight:bold;--display-settings-datetime-example-label-color:var(--luzmo-primary);--display-settings-datetime-example-language-color:var(--luzmo-primary);--display-settings-datetime-gap:var(--luzmo-spacing-3);--display-settings-datetime-example-height:var(--luzmo-component-height)}:host([size=s]){--display-settings-datetime-gap:var(--luzmo-spacing-3);--display-settings-datetime-example-height:var(--luzmo-component-height-s);--display-settings-datetime-example-font-size:var(--luzmo-font-size-s)}:host([size=l]){--display-settings-datetime-gap:var(--luzmo-spacing-4);--display-settings-datetime-example-height:var(--luzmo-component-height-l);--display-settings-datetime-example-font-size:var(--luzmo-font-size)}:host([size=xl]){--display-settings-datetime-gap:var(--luzmo-spacing-5);--display-settings-datetime-example-height:var(--luzmo-component-height-xl);--display-settings-datetime-example-font-size:var(--luzmo-font-size-l)}`,f=class extends n.t(e.n(e.i,{validSizes:Object.values(e.t)})){constructor(...e){super(...e),this._loadLocaleFormatsConfig=new l.Task(this,{task:async([e])=>{if(e&&e!==this._contentLanguageLoaded){let t=Object.assign({"../../utils/formatter/formats/cs.ts":()=>Promise.resolve().then(()=>require("./cs-a-HHJy3d.cjs")),"../../utils/formatter/formats/da.ts":()=>Promise.resolve().then(()=>require("./da-BuDewcQL.cjs")),"../../utils/formatter/formats/de.ts":()=>Promise.resolve().then(()=>require("./de-BLMiWrvE.cjs")),"../../utils/formatter/formats/en-GB.ts":()=>Promise.resolve().then(()=>require("./en-GB-uxY5qmIM.cjs")),"../../utils/formatter/formats/en-US.ts":()=>Promise.resolve().then(()=>require("./en-US-q_Ruzags.cjs")),"../../utils/formatter/formats/en.ts":()=>Promise.resolve().then(()=>require("./en-q_Ruzags.cjs")),"../../utils/formatter/formats/es.ts":()=>Promise.resolve().then(()=>require("./es-D8MxHOsN.cjs")),"../../utils/formatter/formats/fi.ts":()=>Promise.resolve().then(()=>require("./fi-CzBe3q93.cjs")),"../../utils/formatter/formats/fr.ts":()=>Promise.resolve().then(()=>require("./fr-BlAUad9k.cjs")),"../../utils/formatter/formats/he.ts":()=>Promise.resolve().then(()=>require("./he-CdtHCved.cjs")),"../../utils/formatter/formats/hu.ts":()=>Promise.resolve().then(()=>require("./hu-D0kNP1hN.cjs")),"../../utils/formatter/formats/it.ts":()=>Promise.resolve().then(()=>require("./it-BZF7oRfg.cjs")),"../../utils/formatter/formats/ja.ts":()=>Promise.resolve().then(()=>require("./ja-aOzAwMPW.cjs")),"../../utils/formatter/formats/ko.ts":()=>Promise.resolve().then(()=>require("./ko-B50TWXco.cjs")),"../../utils/formatter/formats/mk.ts":()=>Promise.resolve().then(()=>require("./mk-CehJi277.cjs")),"../../utils/formatter/formats/nl.ts":()=>Promise.resolve().then(()=>require("./nl-wyer9j4m.cjs")),"../../utils/formatter/formats/no.ts":()=>Promise.resolve().then(()=>require("./no-PqE_GjX_.cjs")),"../../utils/formatter/formats/pl.ts":()=>Promise.resolve().then(()=>require("./pl-Cu6_UJbA.cjs")),"../../utils/formatter/formats/pt.ts":()=>Promise.resolve().then(()=>require("./pt-fymmI5Y3.cjs")),"../../utils/formatter/formats/ru.ts":()=>Promise.resolve().then(()=>require("./ru-RyEkpfw0.cjs")),"../../utils/formatter/formats/sv.ts":()=>Promise.resolve().then(()=>require("./sv-CtRGTNGV.cjs")),"../../utils/formatter/formats/tr.ts":()=>Promise.resolve().then(()=>require("./tr-xcDpAdjw.cjs")),"../../utils/formatter/formats/zh-CN.ts":()=>Promise.resolve().then(()=>require("./zh-CN-CnxgkEiH.cjs")),"../../utils/formatter/formats/zh-TW.ts":()=>Promise.resolve().then(()=>require("./zh-TW-CnxgkEiH.cjs"))});if(t[`../../utils/formatter/formats/${e}.ts`]){let n=await t[`../../utils/formatter/formats/${e}.ts`]();this._localeFormats=n?.default??{}}return this._contentLanguageLoaded=e,this._localeFormats}},args:()=>[this.contentLanguage]}),this.contentLanguage=`en`,this.size=`m`,this.slotContent={},this._dateLevel=5,this._displayAs=`default`,this._weekStart=`monday`,this._weekDayAndMonthInYearFormat=`long`,this._dateFormat=`auto`,this._dateSeparator=`~`,this._sendEvent=()=>{this._calculateSlotContent(),this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}}static get styles(){return[(0,o.unsafeCSS)(d)]}_parseSlotContent(){this._dateLevel=this.slotContent?.level??this.slotContent?.lowestLevel??5,this._displayAs=this.slotContent?.datetimeDisplayMode??`default`,this._displayAs===`weekday_number`&&(this._displayAs=`day_in_week`,this._weekDayAndMonthInYearFormat=`number`),this._displayAs===`weekday_name`&&(this._displayAs=`day_in_week`),this._displayAs===`month_number`&&(this._displayAs=`month_in_year`,this._weekDayAndMonthInYearFormat=`number`),this._displayAs===`month_name`&&(this._displayAs=`month_in_year`),this._parseSavedFormat()}_parseSavedFormat(){let e=this.slotContent?.format??`%d-%m-%Y`,t=e.match(/[./-]/);if(this._dateSeparator=e.includes(`~`)?`~`:t?.[0]??`~`,e.includes(`%amd`))this._dateFormat=`auto`;else{let t=e.indexOf(`%d`),n=e.indexOf(`%m`);t!==-1&&n!==-1&&(this._dateFormat=t<n?`ddmm`:`mmdd`)}this._24hFormat=e.includes(`%H`),this._monthName=/%B|%b/.test(e),this._weekDay=/%a|%A/.test(e),this._monthName&&(this._monthNameFormat=e.includes(`%b`)?`short`:`long`),this._weekDay&&(this._weekDayAndMonthInYearFormat=e.includes(`%a`)?`short`:`long`);let n=this._dateLevel===5&&this.slotContent?.weekDayNameFormat||this._dateLevel===3&&this.slotContent?.monthNameFormat;n&&(this._weekDayAndMonthInYearFormat=n)}_calculateFormat(){let e,t=this._localeFormats?.smartDateFormats??r.r;this._monthName?(e=t.filter(e=>e.monthType===`name`&&e.longText===(this._monthNameFormat===`long`)&&e.weekday===this._weekDay),e.length>0?this._format=e[0].key:(this._weekDayAndMonthInYearFormat=`short`,this._weekDay=!0,this._format=`%a %e %B %Y`)):(e=this._dateLevel&&this._dateLevel===4?t.filter(e=>e.monthType===`number`&&e.mmdd===(this._weekFormat===`mmdd`||this._weekFormat!==`ddmm`&&null)&&e.separator===this._dateSeparator):t.filter(e=>e.monthType===`number`&&e.mmdd===(this._dateFormat===`mmdd`||this._dateFormat!==`ddmm`&&null)&&e.separator===this._dateSeparator),this._dateFormat===`auto`&&this._dateLevel&&this._dateLevel!==4?this._format=`%amd`+this._dateSeparator+`%Y`:e.length>0?this._format=e[0].key:(this._dateFormat=`ddmm`,this._dateSeparator=`/`,this._format=`%d/%m/%Y`)),this._dateLevel&&this._dateLevel>5&&(this._format+=this._24hFormat?` %H:%M:%S.%L`:` %I:%M:%S.%L %p`)}_setWeekStartsOn(){this._weekStart=this._weekStartElement.value,this._sendEvent(),this.requestUpdate()}_setDisplayAs(){this._displayAs=this._displayAsElement.value,this._sendEvent(),this.requestUpdate()}_setWeekdayAndMonthInYearFormat(){this._weekDayAndMonthInYearFormat=this._weekDayAndMonthInYearFormatElement.selected?.[0]??`long`,this._sendEvent(),this.requestUpdate()}_setMonthNameFormat(){this._monthNameFormat=this._monthNameFormatElement.selected?.[0],this._sendEvent(),this.requestUpdate()}_setMonthName(){this._monthName=this._monthNameElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekFormat(){this._weekFormat=this._weekFormatElement.selected?.[0],this._sendEvent(),this.requestUpdate()}_setDateFormat(){this._dateFormat=this._dateFormatElement.value,this._sendEvent(),this.requestUpdate()}_setDateSeparator(){this._dateSeparator=this._dateSeparatorElement.value,this._sendEvent(),this.requestUpdate()}_set24hFormat(){this._24hFormat=this._format24hElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekday(){this._weekDay=this._weekDayElement.selected,this._sendEvent(),this.requestUpdate()}_calculateSlotContent(){this._currentSlotContent={...this.slotContent},this._calculateFormat(),this._currentSlotContent.format=this._format,this._displayAs==="default"?delete this._currentSlotContent.datetimeDisplayMode:(this._currentSlotContent.datetimeDisplayMode=this._displayAs,this._displayAs===`week_in_year`?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat===`number`?`week_number`:`week_name`:this._displayAs===`month_in_year`?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat===`number`?`month_number`:`month_name`:this._displayAs===`day_in_week`&&(this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat===`number`?`weekday_number`:`weekday_name`,this._currentSlotContent.weekStart=this._weekStart),this._weekDayAndMonthInYearFormat&&(this._dateLevel===3?this._currentSlotContent.monthNameFormat=this._weekDayAndMonthInYearFormat:this._dateLevel===5&&(this._currentSlotContent.weekDayNameFormat=this._weekDayAndMonthInYearFormat)))}willUpdate(e){super.willUpdate(e),e.has(`slotContent`)&&(this._parseSlotContent(),this._calculateSlotContent())}_renderDisplaySettings(){let e=i.t?.[`level${this._dateLevel??0}`]?.map(e=>o.html`<luzmo-menu-item value=${e.key}>
|
|
20
|
+
require("./tokens-BWMfo_w4.cjs");const e=require("./base-BdkFbMZR.cjs"),t=require("./decorate-DCJt-2rt.cjs"),n=require("./localized-mixin-DceE4W-d.cjs"),r=require("./formatter-BeXmurVe.cjs"),i=require("./periods.const-Db0nXrwr.cjs");let a=require("@luzmo/icons");require("@luzmo/lucero/action-button"),require("@luzmo/lucero/icon");let o=require("lit"),s=require("lit/decorators.js"),c=require("@lit/localize");require("@luzmo/lucero/action-group"),require("@luzmo/lucero/field-label"),require("@luzmo/lucero/number-field"),require("@luzmo/lucero/picker"),require("@luzmo/lucero/progress-circle");let l=require("@lit/task");var u={"~":()=>(0,c.msg)(`Auto`,{desc:`Automatic setting of the option`}),"/":()=>`/`,"-":()=>`-`,".":()=>`.`},d=`:host{font-family:var(--luzmo-display-settings-datetime-font-family,var(--luzmo-font-family))}:host .settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-datetime-gap,var(--display-settings-datetime-gap));display:flex}:host{--display-settings-datetime-example-font-size:var(--luzmo-font-size-s);--display-settings-datetime-example-color:var(--luzmo-font-color);--display-settings-datetime-example-label-font-weight:bold;--display-settings-datetime-example-label-color:var(--luzmo-primary);--display-settings-datetime-example-language-color:var(--luzmo-primary);--display-settings-datetime-gap:var(--luzmo-spacing-3);--display-settings-datetime-example-height:var(--luzmo-component-height)}:host([size=s]){--display-settings-datetime-gap:var(--luzmo-spacing-3);--display-settings-datetime-example-height:var(--luzmo-component-height-s);--display-settings-datetime-example-font-size:var(--luzmo-font-size-s)}:host([size=l]){--display-settings-datetime-gap:var(--luzmo-spacing-4);--display-settings-datetime-example-height:var(--luzmo-component-height-l);--display-settings-datetime-example-font-size:var(--luzmo-font-size)}:host([size=xl]){--display-settings-datetime-gap:var(--luzmo-spacing-5);--display-settings-datetime-example-height:var(--luzmo-component-height-xl);--display-settings-datetime-example-font-size:var(--luzmo-font-size-l)}`,f=class extends n.t(e.n(e.i,{validSizes:Object.values(e.t)})){constructor(...e){super(...e),this._loadLocaleFormatsConfig=new l.Task(this,{task:async([e])=>{if(e&&e!==this._contentLanguageLoaded){let t=Object.assign({"../../utils/formatter/formats/cs.ts":()=>Promise.resolve().then(()=>require("./cs-a-HHJy3d.cjs")),"../../utils/formatter/formats/da.ts":()=>Promise.resolve().then(()=>require("./da-BuDewcQL.cjs")),"../../utils/formatter/formats/de.ts":()=>Promise.resolve().then(()=>require("./de-BLMiWrvE.cjs")),"../../utils/formatter/formats/en-GB.ts":()=>Promise.resolve().then(()=>require("./en-GB-uxY5qmIM.cjs")),"../../utils/formatter/formats/en-US.ts":()=>Promise.resolve().then(()=>require("./en-US-q_Ruzags.cjs")),"../../utils/formatter/formats/en.ts":()=>Promise.resolve().then(()=>require("./en-q_Ruzags.cjs")),"../../utils/formatter/formats/es.ts":()=>Promise.resolve().then(()=>require("./es-D8MxHOsN.cjs")),"../../utils/formatter/formats/fi.ts":()=>Promise.resolve().then(()=>require("./fi-CzBe3q93.cjs")),"../../utils/formatter/formats/fr.ts":()=>Promise.resolve().then(()=>require("./fr-BlAUad9k.cjs")),"../../utils/formatter/formats/he.ts":()=>Promise.resolve().then(()=>require("./he-CdtHCved.cjs")),"../../utils/formatter/formats/hu.ts":()=>Promise.resolve().then(()=>require("./hu-D0kNP1hN.cjs")),"../../utils/formatter/formats/it.ts":()=>Promise.resolve().then(()=>require("./it-BZF7oRfg.cjs")),"../../utils/formatter/formats/ja.ts":()=>Promise.resolve().then(()=>require("./ja-aOzAwMPW.cjs")),"../../utils/formatter/formats/ko.ts":()=>Promise.resolve().then(()=>require("./ko-B50TWXco.cjs")),"../../utils/formatter/formats/mk.ts":()=>Promise.resolve().then(()=>require("./mk-CehJi277.cjs")),"../../utils/formatter/formats/nl.ts":()=>Promise.resolve().then(()=>require("./nl-wyer9j4m.cjs")),"../../utils/formatter/formats/no.ts":()=>Promise.resolve().then(()=>require("./no-PqE_GjX_.cjs")),"../../utils/formatter/formats/pl.ts":()=>Promise.resolve().then(()=>require("./pl-Cu6_UJbA.cjs")),"../../utils/formatter/formats/pt.ts":()=>Promise.resolve().then(()=>require("./pt-fymmI5Y3.cjs")),"../../utils/formatter/formats/ru.ts":()=>Promise.resolve().then(()=>require("./ru-RyEkpfw0.cjs")),"../../utils/formatter/formats/sv.ts":()=>Promise.resolve().then(()=>require("./sv-CtRGTNGV.cjs")),"../../utils/formatter/formats/tr.ts":()=>Promise.resolve().then(()=>require("./tr-xcDpAdjw.cjs")),"../../utils/formatter/formats/zh-CN.ts":()=>Promise.resolve().then(()=>require("./zh-CN-CnxgkEiH.cjs")),"../../utils/formatter/formats/zh-TW.ts":()=>Promise.resolve().then(()=>require("./zh-TW-CnxgkEiH.cjs"))});if(t[`../../utils/formatter/formats/${e}.ts`]){let n=await t[`../../utils/formatter/formats/${e}.ts`]();this._localeFormats=n?.default??{}}return this._contentLanguageLoaded=e,this._localeFormats}},args:()=>[this.contentLanguage]}),this.contentLanguage=`en`,this.size=`m`,this.slotContent={},this._dateLevel=5,this._displayAs=`default`,this._weekStart=`monday`,this._weekDayAndMonthInYearFormat=`long`,this._dateFormat=`auto`,this._dateSeparator=`~`,this._sendEvent=()=>{this._calculateSlotContent(),this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}}static get styles(){return[(0,o.unsafeCSS)(d)]}_parseSlotContent(){this._dateLevel=this.slotContent?.level??this.slotContent?.lowestLevel??5,this._displayAs=this.slotContent?.datetimeDisplayMode??`default`,this._displayAs===`weekday_number`&&(this._displayAs=`day_in_week`,this._weekDayAndMonthInYearFormat=`number`),this._displayAs===`weekday_name`&&(this._displayAs=`day_in_week`),this._displayAs===`month_number`&&(this._displayAs=`month_in_year`,this._weekDayAndMonthInYearFormat=`number`),this._displayAs===`month_name`&&(this._displayAs=`month_in_year`),this._parseSavedFormat()}_parseSavedFormat(){let e=this.slotContent?.format??`%d-%m-%Y`,t=e.match(/[./-]/);if(this._dateSeparator=e.includes(`~`)?`~`:t?.[0]??`~`,e.includes(`%amd`))this._dateFormat=`auto`;else{let t=e.indexOf(`%d`),n=e.indexOf(`%m`);t!==-1&&n!==-1&&(this._dateFormat=t<n?`ddmm`:`mmdd`)}this._24hFormat=e.includes(`%H`),this._monthName=/%B|%b/.test(e),this._weekDay=/%a|%A/.test(e),this._monthName&&(this._monthNameFormat=e.includes(`%b`)?`short`:`long`),this._weekDay&&(this._weekDayAndMonthInYearFormat=e.includes(`%a`)?`short`:`long`);let n=this._dateLevel===5&&this.slotContent?.weekDayNameFormat||this._dateLevel===3&&this.slotContent?.monthNameFormat;n&&(this._weekDayAndMonthInYearFormat=n)}_calculateFormat(){let e,t=this._localeFormats?.smartDateFormats??r.r;this._monthName?(e=t.filter(e=>e.monthType===`name`&&e.longText===(this._monthNameFormat===`long`)&&e.weekday===this._weekDay),e.length>0?this._format=e[0].key:(this._weekDayAndMonthInYearFormat=`short`,this._weekDay=!0,this._format=`%a %e %B %Y`)):(e=this._dateLevel&&this._dateLevel===4?t.filter(e=>e.monthType===`number`&&e.mmdd===(this._weekFormat===`mmdd`||this._weekFormat!==`ddmm`&&null)&&e.separator===this._dateSeparator):t.filter(e=>e.monthType===`number`&&e.mmdd===(this._dateFormat===`mmdd`||this._dateFormat!==`ddmm`&&null)&&e.separator===this._dateSeparator),this._dateFormat===`auto`&&this._dateLevel&&this._dateLevel!==4?this._format=`%amd`+this._dateSeparator+`%Y`:e.length>0?this._format=e[0].key:(this._dateFormat=`ddmm`,this._dateSeparator=`/`,this._format=`%d/%m/%Y`)),this._dateLevel&&this._dateLevel>5&&(this._format+=this._24hFormat?` %H:%M:%S.%L`:` %I:%M:%S.%L %p`)}_setWeekStartsOn(){this._weekStart=this._weekStartElement.value,this._sendEvent(),this.requestUpdate()}_setDisplayAs(){this._displayAs=this._displayAsElement.value,this._sendEvent(),this.requestUpdate()}_setWeekdayAndMonthInYearFormat(){this._weekDayAndMonthInYearFormat=this._weekDayAndMonthInYearFormatElement.selected?.[0]??`long`,this._sendEvent(),this.requestUpdate()}_setMonthNameFormat(){this._monthNameFormat=this._monthNameFormatElement.selected?.[0],this._sendEvent(),this.requestUpdate()}_setMonthName(){this._monthName=this._monthNameElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekFormat(){this._weekFormat=this._weekFormatElement.selected?.[0],this._sendEvent(),this.requestUpdate()}_setDateFormat(){this._dateFormat=this._dateFormatElement.value,this._sendEvent(),this.requestUpdate()}_setDateSeparator(){this._dateSeparator=this._dateSeparatorElement.value,this._sendEvent(),this.requestUpdate()}_set24hFormat(){this._24hFormat=this._format24hElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekday(){this._weekDay=this._weekDayElement.selected,this._sendEvent(),this.requestUpdate()}_calculateSlotContent(){this._currentSlotContent={...this.slotContent},this._calculateFormat(),this._currentSlotContent.format=this._format,this._displayAs==="default"?delete this._currentSlotContent.datetimeDisplayMode:(this._currentSlotContent.datetimeDisplayMode=this._displayAs,this._displayAs===`week_in_year`?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat===`number`?`week_number`:`week_name`:this._displayAs===`month_in_year`?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat===`number`?`month_number`:`month_name`:this._displayAs===`day_in_week`&&(this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat===`number`?`weekday_number`:`weekday_name`,this._currentSlotContent.weekStart=this._weekStart),this._weekDayAndMonthInYearFormat&&(this._dateLevel===3?this._currentSlotContent.monthNameFormat=this._weekDayAndMonthInYearFormat:this._dateLevel===5&&(this._currentSlotContent.weekDayNameFormat=this._weekDayAndMonthInYearFormat)))}willUpdate(e){super.willUpdate(e),e.has(`slotContent`)&&(this._parseSlotContent(),this._calculateSlotContent())}_renderDisplaySettings(){let e=i.t?.[`level${this._dateLevel??0}`]?.map(e=>o.html`<luzmo-menu-item value=${e.key}>
|
|
21
21
|
${e.i18n()}
|
|
22
22
|
</luzmo-menu-item>`);return o.html`<div class="setting">
|
|
23
23
|
<luzmo-field-label .size=${this.size} for="display-as"
|
package/components/{display-settings-datetime-mVh5Tjrx.js → display-settings-datetime-D5UwdwAI.js}
RENAMED
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
20
|
import "./tokens-Ov1pCR4Y.js";
|
|
21
|
-
import { i as e, n as t, t as n } from "./base-
|
|
21
|
+
import { i as e, n as t, t as n } from "./base-Cvcpdy0h.js";
|
|
22
22
|
import { t as r } from "./decorate-DyMgX_Uh.js";
|
|
23
|
-
import { t as i } from "./localized-mixin-
|
|
23
|
+
import { t as i } from "./localized-mixin-BLUbrY_Z.js";
|
|
24
24
|
import { r as a, t as o } from "./formatter-Cq5dFCyU.js";
|
|
25
25
|
import { i as s, r as c, t as l } from "./periods.const-NCTkxnvG.js";
|
|
26
26
|
import { luzmoCheckbox as u, luzmoCheckboxChecked as d } from "@luzmo/icons";
|
|
27
|
+
import "@luzmo/lucero/action-button";
|
|
27
28
|
import "@luzmo/lucero/icon";
|
|
28
29
|
import { html as f, unsafeCSS as p } from "lit";
|
|
29
30
|
import { property as m, query as h } from "lit/decorators.js";
|
|
30
31
|
import { localized as g, msg as _ } from "@lit/localize";
|
|
31
|
-
import "@luzmo/lucero/action-button";
|
|
32
32
|
import "@luzmo/lucero/action-group";
|
|
33
33
|
import "@luzmo/lucero/field-label";
|
|
34
34
|
import "@luzmo/lucero/number-field";
|
|
@@ -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("../display-settings-grand-totals-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../display-settings-grand-totals-w2Zbxwt4.cjs");Object.defineProperty(exports,"LuzmoDisplaySettingsGrandTotals",{enumerable:!0,get:function(){return e.t}});
|
|
@@ -17,5 +17,5 @@
|
|
|
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 { t as e } from "../display-settings-grand-totals-
|
|
20
|
+
import { t as e } from "../display-settings-grand-totals-DYSVU-9G.js";
|
|
21
21
|
export { e as LuzmoDisplaySettingsGrandTotals };
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
20
|
import "./tokens-Ov1pCR4Y.js";
|
|
21
|
-
import { i as e, n as t, t as n } from "./base-
|
|
21
|
+
import { i as e, n as t, t as n } from "./base-Cvcpdy0h.js";
|
|
22
22
|
import { t as r } from "./decorate-DyMgX_Uh.js";
|
|
23
|
-
import { t as i } from "./localized-mixin-
|
|
23
|
+
import { t as i } from "./localized-mixin-BLUbrY_Z.js";
|
|
24
24
|
import { luzmoCheckbox as a, luzmoCheckboxChecked as o } from "@luzmo/icons";
|
|
25
|
+
import "@luzmo/lucero/action-button";
|
|
25
26
|
import "@luzmo/lucero/icon";
|
|
26
27
|
import { html as s, unsafeCSS as c } from "lit";
|
|
27
28
|
import { property as l, state as u } from "lit/decorators.js";
|
|
28
29
|
import { localized as d, msg as f } from "@lit/localize";
|
|
29
|
-
import "@luzmo/lucero/action-button";
|
|
30
30
|
import "@luzmo/lucero/field-label";
|
|
31
31
|
import { ifDefined as p } from "lit/directives/if-defined.js";
|
|
32
32
|
//#region src/components/display-settings-grand-totals/display-settings-grand-totals.module.scss?inline
|
|
@@ -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
|
-
require("./tokens-BWMfo_w4.cjs");const e=require("./base-
|
|
20
|
+
require("./tokens-BWMfo_w4.cjs");const e=require("./base-BdkFbMZR.cjs"),t=require("./decorate-DCJt-2rt.cjs"),n=require("./localized-mixin-DceE4W-d.cjs");let r=require("@luzmo/icons");require("@luzmo/lucero/action-button"),require("@luzmo/lucero/icon");let i=require("lit"),a=require("lit/decorators.js"),o=require("@lit/localize");require("@luzmo/lucero/field-label");let s=require("lit/directives/if-defined.js");var c=`:host .settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-grand-totals-gap,var(--display-settings-grand-totals-gap));display:flex}:host,:host([size=s]){--display-settings-grand-totals-gap:var(--luzmo-spacing-3)}:host([size=l]){--display-settings-grand-totals-gap:var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-grand-totals-gap:var(--luzmo-spacing-5)}`,l=class extends n.t(e.n(e.i,{validSizes:Object.values(e.t)})){constructor(...e){super(...e),this.slotContent={}}static get styles(){return[(0,i.unsafeCSS)(c)]}willUpdate(e){super.willUpdate(e),e.has(`slotContent`)&&(this._enabled=this.slotContent?.grandTotals?.enabled??!1)}toggleGrandTotals(){this._enabled=!this._enabled,this.sendEvent()}sendEvent(){let e={enabled:!!this._enabled};this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,grandTotals:e}}}))}render(){return i.html`<div class="settings-container">
|
|
21
21
|
<div class="settings-row">
|
|
22
22
|
<div class="setting">
|
|
23
23
|
<luzmo-field-label .size=${this.size} for="grand-totals"
|
|
@@ -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("../display-settings-numeric-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../display-settings-numeric-DGyMDswg.cjs");Object.defineProperty(exports,"LuzmoDisplaySettingsNumeric",{enumerable:!0,get:function(){return e.t}});
|
|
@@ -17,5 +17,5 @@
|
|
|
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 { t as e } from "../display-settings-numeric-
|
|
20
|
+
import { t as e } from "../display-settings-numeric-YOsAAqyJ.js";
|
|
21
21
|
export { e as LuzmoDisplaySettingsNumeric };
|
package/components/{display-settings-numeric-DhiXPU3f.cjs → display-settings-numeric-DGyMDswg.cjs}
RENAMED
|
@@ -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
|
-
require("./tokens-BWMfo_w4.cjs");const e=require("./base-
|
|
20
|
+
require("./tokens-BWMfo_w4.cjs");const e=require("./base-BdkFbMZR.cjs"),t=require("./decorate-DCJt-2rt.cjs"),n=require("./localized-mixin-DceE4W-d.cjs"),r=require("./calculate-data-field-icon-DenGmW74.cjs"),i=require("./localize-D3i4Epy_.cjs"),a=require("./decompose-numeric-format-DGJua3rU.cjs");let o=require("@luzmo/icons");require("@luzmo/lucero/action-button");let s=require("@luzmo/lucero/overlay");require("@luzmo/lucero/popover"),require("@luzmo/lucero/tooltip");let c=require("lit"),l=require("lit/decorators.js"),u=require("@lit/localize");require("@luzmo/lucero/action-group"),require("@luzmo/lucero/field-label"),require("@luzmo/lucero/number-field"),require("@luzmo/lucero/picker"),require("@luzmo/lucero/menu");var d=`:host .settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-numeric-gap,var(--display-settings-numeric-gap));display:flex}.duration-angle-down-icon{margin-inline-start:var(--luzmo-numeric-duration-levels-dropdown-icon-margin-inline-start,var(--numeric-duration-levels-dropdown-icon-margin-inline-start))}.dataset-header{white-space:nowrap;text-overflow:ellipsis;text-transform:uppercase;max-width:100%;color:var(--luzmo-font-color);white-space:nowrap;cursor:default;margin:.5rem 1rem;font-weight:600;overflow:hidden}.no-weight-label{margin-left:1rem}.with-secondary-icon{clip-path:polygon(0 0,60% 0,65% 60%,100% 65%,100% 100%,0 100%)}.secondary-icon{width:auto;font-size:.75em;line-height:1;position:absolute;bottom:45%;left:60%}.data-icon-type{text-align:center;width:1.5rem;display:inline-block;position:relative}:host{--display-settings-numeric-gap:var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-2)}:host([size=s]){--display-settings-numeric-gap:var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-1)}:host([size=l]){--display-settings-numeric-gap:var(--luzmo-spacing-4);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-3)}:host([size=xl]){--display-settings-numeric-gap:var(--luzmo-spacing-5);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-4)}`,f={sum:()=>(0,u.msg)(`Sum`,{desc:`Aggregation label`}),cumulativesum:()=>(0,u.msg)(`Cumulative sum`,{desc:`Aggregation label`}),average:()=>(0,u.msg)(`Average`,{desc:`Aggregation label`}),median:()=>(0,u.msg)(`Median`,{desc:`Aggregation label`}),count:()=>(0,u.msg)(`Count rows`,{desc:`Aggregation label`}),distinctcount:()=>(0,u.msg)(`Count distinct`,{desc:`Aggregation label`}),min:()=>(0,u.msg)(`Minimum`,{desc:`Aggregation label`}),max:()=>(0,u.msg)(`Maximum`,{desc:`Aggregation label`}),stddev:()=>(0,u.msg)(`Standard deviation`,{desc:`Aggregation label`}),rate:()=>(0,u.msg)(`Rate`,{desc:`Aggregation label`})},p={general:`123`,percentage:`%`,scientific:`SI`},m={time:()=>(0,u.msg)(`Time`,{desc:`Time format option`}),short:()=>(0,u.msg)(`Short`,{desc:`Short format option`}),long:()=>(0,u.msg)(`Long`,{desc:`Long format option`})},h={Auto:{auto:!0,label:()=>(0,u.msg)(`Auto`,{desc:`Automatic setting of the option`})},"1,000.00":{auto:!1,label:()=>`1,000.00`,thousandSeparator:`,`,decimalSeparator:`.`,hiddenFor:`scientific`},"1.000,00":{auto:!1,label:()=>`1.000,00`,thousandSeparator:`.`,decimalSeparator:`,`,hiddenFor:`scientific`},"1000.00":{auto:!1,label:()=>`1000.00`,decimalSeparator:`.`},"1000,00":{auto:!1,label:()=>`1000,00`,decimalSeparator:`,`}},g={levels:[{level:1,label:`years`},{level:2,label:`quarters`},{level:3,label:`months`},{level:4,label:`weeks`},{level:5,label:`days`},{level:6,label:`hours`},{level:7,label:`minutes`},{level:8,label:`seconds`},{level:9,label:`milliseconds`}]},_=class extends n.t(e.n(e.i,{validSizes:Object.values(e.t)})){constructor(...e){super(...e),this.slotContent={},this.measureColumns=[],this._durationLevels=[],this._renderDurationLevelMenu=!1,this._handleSlottableRequest=e=>{this._renderDurationLevelMenu=e.data!==s.removeSlottableRequest},this._sendEvent=()=>{let e={...this.slotContent,format:this._format,aggregationFunc:this._aggregationFunc};this._aggregationWeightColumn?e.aggregationWeight={...this._aggregationWeightColumn}:delete e.aggregationWeight,this._displayMode===`duration`?(e.duration=e.duration??{},e.duration.format=this._durationFormat,e.duration.levels=this._durationLevels):delete e.duration,this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:e}}))}}static get styles(){return[(0,c.unsafeCSS)(d)]}_parseSavedNumericFormatSettings(){if(this._displayMode=this.slotContent?.subtype===`duration`?`duration`:`numeric`,this._durationFormat=this.slotContent?.duration?.format??`short`,this._durationLevels=this.slotContent?.duration?.levels??[1],this._displayMode===`duration`)this._precision=2,this._commaDecimals=!1,this._thousandSeparator=!1;else{this._format=this.slotContent?.format??`.0f`;let e=a.t(this._format??`.0f`);this._isAuto=e.typeFormat?.includes(`a`)??!1,[`%`,`a%`,`y`,`ay`].includes(e.typeFormat)?this._displayAs=`percentage`:[`s`,`as`,`w`,`aw`].includes(e.typeFormat)?this._displayAs=`scientific`:this._displayAs=`general`,this._precision=e.precision?Number.parseInt(e.precision.replace(`.`,``),10):+(this._displayAs===`scientific`),this._commaDecimals=[`z`,`az`,`y`,`ay`,`w`,`aw`].includes(e.typeFormat),this._thousandSeparator=e.comma===`,`,this._isAuto?this._numericFormatGroup=`Auto`:this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup=`1.000,00`:!this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup=`1,000.00`:this._commaDecimals&&!this._thousandSeparator?this._numericFormatGroup=`1000,00`:!this._commaDecimals&&!this._thousandSeparator&&(this._numericFormatGroup=`1000.00`)}}_setNumericDisplayAs(){this._displayAs=this._displayAsElement?.selected?.[0]??`general`,this._displayAs===`scientific`&&(this._precision=Math.max(this._precision??0,1),this._thousandSeparator=!1),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setNumericSeparators(e){let t=h[e?.detail??`Auto`];this._thousandSeparator=[`,`,`.`].includes(t?.thousandSeparator??``),this._commaDecimals=t?.decimalSeparator===`,`,this._isAuto=t?.auto,this._setNumericFormat(),this._sendEvent()}_setPrecision(){Number.isNaN(this._precisionElement.value)&&(this._precisionElement.value=+(this._displayAs===`scientific`)),this._precision=this._precisionElement.value,this._setNumericFormat(),this._sendEvent()}_setNumericFormat(){let e=`f`,t=this.slotContent.subtype===`duration`?this._durationLevels&&this._durationLevels?.length===1?`numeric`:`duration`:`numeric`;if(this._maxDurationLevel=Math.min(...this._durationLevels),t===`duration`)(![`time`,`short`,`long`].includes(this._durationFormat??``)||this._maxDurationLevel<6&&this._durationFormat===`time`)&&(this._durationFormat=`short`);else{let t=this._displayAs??`general`;t===`general`&&this._commaDecimals?e=`z`:t===`percentage`&&this._commaDecimals?e=`y`:t===`scientific`&&this._commaDecimals?e=`w`:t===`percentage`?e=`%`:t===`scientific`&&(e=`s`),this._format=(this._thousandSeparator||this._isAuto?`,`:``)+`.`+this._precision+(this._isAuto?`a`:``)+e}}_setAggregationFunc(){let e=this._aggregationElement.value,t=this._aggregationFunc,n=this.slotContent.format;if(e!==(t===`weightedaverage`?`average`:t)){if(this._aggregationFunc=e===`average`&&this._aggregationWeightColumn?.column?`weightedaverage`:e,t===`rate`){let e=a.t(n),t=[`%`,`y`,`a%`,`ay`].includes(e.typeFormat);this.slotContent.subtype===`currency`&&t&&this._setNumericDisplayAs()}this._sendEvent(),(this._aggregationFunc===`rate`||t===`rate`)&&this.requestUpdate()}}_setAggregationWeight(){let e=this._aggregationWeightElement.value,t=this._aggregationFunc;if(e===`none`)this._aggregationWeightColumn=void 0,this._aggregationFunc===`weightedaverage`&&(this._aggregationFunc=`average`);else{let t,n;for(let r of this.measureColumns??[]){let i=r.columns?.find(t=>t.id===e);if(i){t=i,n=r.datasetId;break}}t&&(this._aggregationWeightColumn={column:t.id,set:n,columnSubType:t.subtype}),this._aggregationFunc===`average`&&(this._aggregationFunc=`weightedaverage`)}this._sendEvent(),this.requestUpdate(),(t===`weightedaverage`&&this._aggregationFunc===`average`||t===`average`&&this._aggregationFunc===`weightedaverage`)&&this.requestUpdate()}_setDurationLevels(){let e=this._durationLevels,t=this._durationLevelsElement.value.split(`,`).filter(e=>e!==``).map(e=>Number.parseInt(e,10));this._durationLevels=(t?.length??0)>=1?t:e,this._maxDurationLevel=Math.min(...this._durationLevels),this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setDurationFormat(){this._durationFormat=this._durationFormatElement?.selected?.[0],this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_fillTimeDurationLevels(){if(this._durationFormat===`time`){let e=this._durationLevels.sort().at(-1);if([7,8,9].includes(e)){for(let t of{lev7:[6],lev8:[6,7],lev9:[6,7,8]}[`lev`+e])this._durationLevels.includes(t)||this._durationLevels.push(t);this._durationLevels=[...this._durationLevels].sort()}}}willUpdate(e){super.willUpdate(e),e.has(`slotContent`)&&(this._parseSavedNumericFormatSettings(),this._aggregationFunc=this.slotContent?.aggregationFunc??(this.slotContent?.type===`numeric`?`sum`:`count`),this._aggregationWeightColumn=this.slotContent?.aggregationWeight,this._isFormula=this.slotContent?.formula||this.slotContent?.formulaId)}_renderDurationLevelsSettings(){let e=g.levels.map(e=>{let t=!1;return this._durationFormat===`time`&&e.level>=6&&this._durationLevels.includes(e.level)&&e.level!==Math.max(...this._durationLevels)&&(t=!0),this._durationLevels.length===1&&this._durationLevels.includes(e.level)&&(t=!0),c.html`<luzmo-menu-item
|
|
21
21
|
value=${e.level}
|
|
22
22
|
?selected=${this._durationLevels.includes(e.level)}
|
|
23
23
|
?disabled=${t}
|
package/components/{display-settings-numeric-DDZyFNFF.js → display-settings-numeric-YOsAAqyJ.js}
RENAMED
|
@@ -18,20 +18,20 @@
|
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
20
|
import "./tokens-Ov1pCR4Y.js";
|
|
21
|
-
import { i as e, n as t, t as n } from "./base-
|
|
21
|
+
import { i as e, n as t, t as n } from "./base-Cvcpdy0h.js";
|
|
22
22
|
import { t as r } from "./decorate-DyMgX_Uh.js";
|
|
23
|
-
import { t as i } from "./localized-mixin-
|
|
23
|
+
import { t as i } from "./localized-mixin-BLUbrY_Z.js";
|
|
24
24
|
import { t as a } from "./calculate-data-field-icon-DrSg1PuD.js";
|
|
25
25
|
import { t as o } from "./localize-BT7REYBY.js";
|
|
26
26
|
import { t as s } from "./decompose-numeric-format-DS0j2wa1.js";
|
|
27
27
|
import { luzmoAngleDown as c, luzmoIcon as l, luzmoTypeDerived12 as u } from "@luzmo/icons";
|
|
28
|
+
import "@luzmo/lucero/action-button";
|
|
28
29
|
import { removeSlottableRequest as d } from "@luzmo/lucero/overlay";
|
|
29
30
|
import "@luzmo/lucero/popover";
|
|
31
|
+
import "@luzmo/lucero/tooltip";
|
|
30
32
|
import { html as f, nothing as p, unsafeCSS as m } from "lit";
|
|
31
33
|
import { property as h, query as g, state as _ } from "lit/decorators.js";
|
|
32
34
|
import { localized as v, msg as y } from "@lit/localize";
|
|
33
|
-
import "@luzmo/lucero/action-button";
|
|
34
|
-
import "@luzmo/lucero/tooltip";
|
|
35
35
|
import "@luzmo/lucero/action-group";
|
|
36
36
|
import "@luzmo/lucero/field-label";
|
|
37
37
|
import "@luzmo/lucero/number-field";
|
|
@@ -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("../display-settings-period-over-period-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../display-settings-period-over-period-zme6yEAi.cjs");Object.defineProperty(exports,"LuzmoDisplaySettingsPeriodOverPeriod",{enumerable:!0,get:function(){return e.t}});
|
|
@@ -17,5 +17,5 @@
|
|
|
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 { t as e } from "../display-settings-period-over-period-
|
|
20
|
+
import { t as e } from "../display-settings-period-over-period-CYwQ6KQI.js";
|
|
21
21
|
export { e as LuzmoDisplaySettingsPeriodOverPeriod };
|