@luzmo/analytics-components-kit 1.0.4-beta.2 → 1.0.4-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ai-chat/ai-chat.d.ts +29 -6
- package/components/ai-chat/index.cjs +1 -1
- package/components/ai-chat/index.d.ts +1 -1
- package/components/ai-chat/index.js +1 -1
- package/components/{ai-chat-BMDfKnEj.cjs → ai-chat-CpK99nb7.cjs} +62 -20
- package/components/{ai-chat-Cd26aDpX.js → ai-chat-e2lg3FLg.js} +310 -193
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -1
- package/components/{ai-interaction-textarea-CPfJqTB0.cjs → ai-interaction-textarea-CSrEsHXV.cjs} +1 -1
- package/components/{ai-interaction-textarea-DkBglh6Q.js → ai-interaction-textarea-cAXXLnoj.js} +3 -3
- package/components/{area-chart-options.config-4OY_kXkB.js → area-chart-options.config-DdYBA1_Q.js} +1 -1
- package/components/{area-chart-positioning.config-CfC43YUW.cjs → area-chart-positioning.config-CZgo9lkr.cjs} +1 -1
- package/components/{area-chart-positioning.config-CAPrtEZW.js → area-chart-positioning.config-DAEbeAVX.js} +1 -1
- package/components/{area-chart-slots.config--pd_dBTn.js → area-chart-slots.config-Cmdkui4v.js} +1 -1
- package/components/{bar-chart-options.config-C3puwFpi.js → bar-chart-options.config-Cx3n0tCr.js} +1 -1
- package/components/{bar-chart-positioning.config-C1MLYyl9.js → bar-chart-positioning.config-71sM-GEA.js} +1 -1
- package/components/{bar-chart-positioning.config-vJOALpQP.cjs → bar-chart-positioning.config-9_GWwUur.cjs} +1 -1
- package/components/{bar-chart-slots.config-Dr7v4xxd.js → bar-chart-slots.config-BWvrLYv5.js} +1 -1
- package/components/{base-kQ6cjcIZ.cjs → base-DbEAseAh.cjs} +1 -1
- package/components/{base-B_wdCOxV.js → base-vk9LuivN.js} +2 -2
- package/components/{box-plot-options.config-B486nCds.js → box-plot-options.config-DB9iCCZg.js} +1 -1
- package/components/{box-plot-positioning.config-DVNeh9kg.cjs → box-plot-positioning.config-BxIFcn-c.cjs} +1 -1
- package/components/{box-plot-positioning.config-CA27sCpO.js → box-plot-positioning.config-DIck_I13.js} +1 -1
- package/components/{box-plot-slots.config-Bdb7pkky.js → box-plot-slots.config-BknEys-m.js} +1 -1
- package/components/{bubble-chart-options.config-BymUqNR5.js → bubble-chart-options.config-D8o_9z0b.js} +1 -1
- package/components/{bubble-chart-positioning.config-OlbBZU4m.js → bubble-chart-positioning.config-BJi-Te33.js} +1 -1
- package/components/{bubble-chart-positioning.config-Dg92VJnB.cjs → bubble-chart-positioning.config-Cf7K70G6.cjs} +1 -1
- package/components/{bubble-chart-slots.config-B4tsJDuz.js → bubble-chart-slots.config-Djb-py0h.js} +1 -1
- package/components/{bullet-chart-options.config-BtyRdRk2.js → bullet-chart-options.config-CmC75LQ8.js} +1 -1
- package/components/{bullet-chart-positioning.config-BwqxpSSL.cjs → bullet-chart-positioning.config-3yE6MOJU.cjs} +1 -1
- package/components/{bullet-chart-positioning.config-Y18yvzoc.js → bullet-chart-positioning.config-ByVG8aFe.js} +1 -1
- package/components/{bullet-chart-slots.config-ccCSNJ5q.js → bullet-chart-slots.config-BECcf-yZ.js} +1 -1
- package/components/{choropleth-map-options.config-CqCciAvW.js → choropleth-map-options.config-Bt-vXkKW.js} +1 -1
- package/components/{choropleth-map-positioning.config-Dmzy3fMc.js → choropleth-map-positioning.config-BmUOKuYh.js} +1 -1
- package/components/{choropleth-map-positioning.config-y-bYMoxr.cjs → choropleth-map-positioning.config-QpuHLCDR.cjs} +1 -1
- package/components/{choropleth-map-slots.config-X2YYrSXc.js → choropleth-map-slots.config-DVrgJYSA.js} +1 -1
- package/components/{circle-pack-chart-options.config-D9C-ltHA.js → circle-pack-chart-options.config-CLA-ur8J.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-wKIQDFe8.cjs → circle-pack-chart-positioning.config-EN3LKHeo.cjs} +1 -1
- package/components/{circle-pack-chart-positioning.config-YDdY2cc2.js → circle-pack-chart-positioning.config-K_yHBCSG.js} +1 -1
- package/components/{circle-pack-chart-slots.config-BIO1dZsK.js → circle-pack-chart-slots.config-BG6Gh03S.js} +1 -1
- package/components/{circular-gauge-options.config-De6SlTLT.js → circular-gauge-options.config-BFBmfsPn.js} +1 -1
- package/components/{circular-gauge-positioning.config-C41euPS9.js → circular-gauge-positioning.config-AH32vSIN.js} +1 -1
- package/components/{circular-gauge-positioning.config-CKNanoFX.cjs → circular-gauge-positioning.config-CurZIsZj.cjs} +1 -1
- package/components/{circular-gauge-slots.config-Dv_7fAD_.js → circular-gauge-slots.config-BSzOAb8B.js} +1 -1
- package/components/{column-chart-options.config-5Dbg3FmH.js → column-chart-options.config-V7v9PtQA.js} +1 -1
- package/components/{column-chart-positioning.config-BdyuErF8.js → column-chart-positioning.config-DS8sLc1p.js} +1 -1
- package/components/{column-chart-positioning.config-Enx15Dqh.cjs → column-chart-positioning.config-Dn7Ri3op.cjs} +1 -1
- package/components/{column-chart-slots.config-eHvTwZLX.js → column-chart-slots.config-5BjkTrbt.js} +1 -1
- package/components/{combination-chart-options.config-BzmLGCal.js → combination-chart-options.config-CgSqqLLE.js} +1 -1
- package/components/{combination-chart-positioning.config-CqlKA__j.cjs → combination-chart-positioning.config-RNhQd78t.cjs} +1 -1
- package/components/{combination-chart-positioning.config-BQRn0EfF.js → combination-chart-positioning.config-u9poMkSd.js} +1 -1
- package/components/{combination-chart-slots.config-CG40JjE3.js → combination-chart-slots.config-DgM_T-9r.js} +1 -1
- package/components/{conditional-number-options.config-CVgV7s7f.js → conditional-number-options.config-3_vXSC0j.js} +1 -1
- package/components/{conditional-number-positioning.config-CR45rPru.cjs → conditional-number-positioning.config-Cq4uJ35g.cjs} +1 -1
- package/components/{conditional-number-positioning.config-BBivi4ps.js → conditional-number-positioning.config-Dnq3OP76.js} +1 -1
- package/components/{conditional-number-slots.config-o22l-qLv.js → conditional-number-slots.config-CzVPP4me.js} +1 -1
- package/components/{default-acceptable-data-field-types-DFOFWWnT.js → convert-data-field-to-slot-content-C6IIqU7G.js} +12 -12
- package/components/convert-data-field-to-slot-content-DLzkk6dT.cjs +20 -0
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.js +1 -1
- package/components/{data-field-CLfUWgK9.js → data-field-CGY-TeOZ.js} +3 -3
- package/components/{data-field-CAGprHjS.cjs → data-field-CXK_vezu.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-CfJ0dmxo.js → data-field-level-BsJ3eRQt.js} +4 -4
- package/components/data-field-level-CxF3DZmD.cjs +55 -0
- package/components/data-field-panel/index.cjs +1 -1
- package/components/data-field-panel/index.js +1 -1
- package/components/data-field-panel-Brzkhc5r.cjs +87 -0
- package/components/{data-field-panel-N7mukLj6.js → data-field-panel-CNiGw9_F.js} +3 -3
- package/components/data-fields-select/index.cjs +1 -1
- package/components/data-fields-select/index.js +1 -1
- package/components/{data-fields-select-B1pwPYt6.js → data-fields-select-BcMFFFJV.js} +8 -8
- package/components/{data-fields-select-qCWuzckJ.cjs → data-fields-select-D-nSjOep.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-BPBZ04Lf.cjs → dataset-selector-list-2Kz1oNFa.cjs} +1 -1
- package/components/{dataset-selector-list-DmajZuNC.js → dataset-selector-list-CvjSPfPj.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-SJzYIpO6.js → dataset-selector-row-Beo9owAy.js} +2 -2
- package/components/{dataset-selector-row-qxfmcxpm.cjs → dataset-selector-row-DOhPbfDh.cjs} +1 -1
- package/components/{date-comparison-filter-options.config-BJg_WqL4.js → date-comparison-filter-options.config-CsDlmT6L.js} +1 -1
- package/components/{date-comparison-filter-slots.config-BIK5aZ6P.js → date-comparison-filter-slots.config-EEgNP09x.js} +1 -1
- package/components/{date-filter-options.config-N6eGgPGL.js → date-filter-options.config-b8EHOjR1.js} +1 -1
- package/components/{date-filter-slots.config-CJJ4P0v6.js → date-filter-slots.config-PJ_h3Aj7.js} +1 -1
- package/components/{de-DnADyZVQ.cjs → de-BY1wWZE8.cjs} +1 -1
- package/components/{de-BHQ-FfU0.js → de-D-xQoqdB.js} +9 -1
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/{display-settings-CkkjJjem.js → display-settings-BNoRfE1e.js} +9 -9
- package/components/display-settings-JuegpHpn.cjs +120 -0
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +1 -1
- package/components/{display-settings-binning-BohjN2qK.js → display-settings-binning-D4fXWXY_.js} +3 -3
- package/components/{display-settings-binning-C7-gByrp.cjs → display-settings-binning-DFA-s8JY.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-7pUcku_h.js → display-settings-datetime-CcZ-aQjs.js} +17 -17
- package/components/display-settings-datetime-DjfBfyzM.cjs +217 -0
- 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-CV5guBhH.js → display-settings-grand-totals-CUlIPreM.js} +3 -3
- package/components/{display-settings-grand-totals-DHQSZqMI.cjs → display-settings-grand-totals-lf_RFqaR.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--5zk8_7K.cjs → display-settings-numeric-C707pX1_.cjs} +1 -1
- package/components/{display-settings-numeric-D2LjMepO.js → display-settings-numeric-VVEUpoAy.js} +3 -3
- 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-sqZU6Zj_.js → display-settings-period-over-period-02Elu2Rn.js} +3 -3
- package/components/{display-settings-period-over-period-BE22oHvV.cjs → display-settings-period-over-period-Be_A5whA.cjs} +1 -1
- package/components/{donut-chart-options.config-C66yOoed.js → donut-chart-options.config-N0MWtn-o.js} +1 -1
- package/components/{donut-chart-positioning.config-B9sm4yFV.cjs → donut-chart-positioning.config-ByXtDyY9.cjs} +1 -1
- package/components/{donut-chart-positioning.config-DtaPAgXE.js → donut-chart-positioning.config-CH5pTYpi.js} +1 -1
- package/components/{donut-chart-slots.config-2XbT9Uu8.js → donut-chart-slots.config-dQrT0g_x.js} +1 -1
- package/components/{dropdown-filter-options.config-Cm_wK0mn.js → dropdown-filter-options.config-CziqJFPz.js} +1 -1
- package/components/{dropdown-filter-slots.config-CnESCGuw.js → dropdown-filter-slots.config-CQo3-kIo.js} +1 -1
- package/components/{es-B4xWcOeJ.cjs → es-BIaD4kOL.cjs} +1 -1
- package/components/{es-CkCov6l7.js → es-CLnBAiLu.js} +9 -1
- package/components/{evolution-number-options.config-07Jd0oUL.js → evolution-number-options.config-BfYN1Qgk.js} +1 -1
- package/components/{evolution-number-positioning.config-v8_6kB1H.js → evolution-number-positioning.config-B2_CNZP0.js} +1 -1
- package/components/{evolution-number-positioning.config-DVXhBZYj.cjs → evolution-number-positioning.config-IFgvO_iZ.cjs} +1 -1
- package/components/{evolution-number-slots.config-BKdD3cKw.js → evolution-number-slots.config-CBS0b0Yk.js} +1 -1
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/{filter-expression-picker-CF4Otpll.cjs → filter-expression-picker-0eNf_L9I.cjs} +1 -1
- package/components/{filter-expression-picker-DCrCAIhg.js → filter-expression-picker-C0FJhbHk.js} +2 -2
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +1 -1
- package/components/{filter-item-D2Dct0a3.js → filter-item-C0AXDA_F.js} +8 -8
- package/components/{filter-item-BjRerEjB.cjs → filter-item-C5O2G3Um.cjs} +2 -2
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +1 -1
- package/components/{filter-value-picker-enC3f3ja.cjs → filter-value-picker-BOL1zvCR.cjs} +1 -1
- package/components/{filter-value-picker-CCKV4PWs.js → filter-value-picker-DZORmKwM.js} +5 -5
- 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-CFCV2jkK.js → filter-value-picker-datetime-0gRfWBzr.js} +2 -2
- package/components/{filter-value-picker-datetime-D20WnWar.cjs → filter-value-picker-datetime-dCo1_pma.cjs} +1 -1
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +1 -1
- package/components/{filter-value-picker-hierarchy-Drrm1ncu.cjs → filter-value-picker-hierarchy-D8n6gV78.cjs} +1 -1
- package/components/{filter-value-picker-hierarchy-ktVBIpcS.js → filter-value-picker-hierarchy-Dt7VNcSd.js} +3 -3
- 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-BYspQRSi.js → filter-value-picker-numeric-Cr7ll53O.js} +1 -1
- package/components/{filter-value-picker-numeric-BtZaQvkr.cjs → filter-value-picker-numeric-DBw1TZtm.cjs} +1 -1
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.js +1 -1
- package/components/{filters-Ew0ARuxD.js → filters-B3zHSR73.js} +4 -4
- package/components/{filters-CfH_4MKZ.cjs → filters-DIDatBfn.cjs} +1 -1
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +1 -1
- package/components/formula-CPrZC9BC.cjs +45 -0
- package/components/{formula-codemirror-CQonNhmd.js → formula-codemirror-DycN-ivp.js} +6 -6
- package/components/{formula-codemirror-CFgPlkN8.cjs → formula-codemirror-uXTVVacE.cjs} +1 -1
- package/components/{formula-display-store-BGzj13Cs.js → formula-display-store-B6dtlBPk.js} +3 -3
- package/components/{formula-display-store-DFAvw21p.cjs → formula-display-store-CCxSWPEB.cjs} +1 -1
- package/components/formula-editor/index.cjs +1 -1
- package/components/formula-editor/index.js +3 -3
- package/components/{formula-editor-CtCvJkyS.cjs → formula-editor-BPMeTS5F.cjs} +1 -1
- package/components/{formula-editor-KXxQlh2n.js → formula-editor-BqHWUVdh.js} +8 -8
- package/components/formula-field/index.cjs +1 -1
- package/components/formula-field/index.js +1 -1
- package/components/{formula-field-OcD4TWAn.js → formula-field-Bfy1qysp.js} +1 -1
- package/components/{formula-field-aiqX7nRp.cjs → formula-field-CAtaDtSP.cjs} +1 -1
- package/components/{formula-DYdcMG-v.js → formula-ibsKYWEh.js} +3 -3
- package/components/{formula-input-base-CQPGmISj.js → formula-input-base-Cs71sKh1.js} +7 -7
- package/components/formula-input-base-_-8MncrA.cjs +49 -0
- package/components/{fr-BOivrXqX.cjs → fr-CHG2Tcby.cjs} +1 -1
- package/components/{fr-BSFpJ50_.js → fr-DIwbOnwC.js} +9 -1
- package/components/{funnel-chart-options.config-PV1Hlu91.js → funnel-chart-options.config-D8fqrJvi.js} +1 -1
- package/components/{funnel-chart-positioning.config-BT-YoTgv.js → funnel-chart-positioning.config-BUMX4e-7.js} +1 -1
- package/components/{funnel-chart-positioning.config-C5Z3JkuS.cjs → funnel-chart-positioning.config-CY042Tro.cjs} +1 -1
- package/components/{funnel-chart-slots.config-_9HUPvTb.js → funnel-chart-slots.config-CeGu8stc.js} +1 -1
- package/components/{get-css-variable-CBXsAxR6.cjs → get-css-variable-B8sJUuig.cjs} +1 -1
- package/components/{get-css-variable-DYnldi15.js → get-css-variable-r1spgqX0.js} +1 -1
- package/components/{get-dataset-name-EkeeFzI3.cjs → get-dataset-name-Dwuh7DWE.cjs} +1 -1
- package/components/{get-dataset-name-BGCvfcdY.js → get-dataset-name-SfDNjsuR.js} +1 -1
- package/components/{groupings-dIFi0bJY.cjs → groupings-DuX9SnZa.cjs} +1 -1
- package/components/{groupings-CrE-yp0S.js → groupings-OLk5e7JO.js} +1 -1
- package/components/{heat-map-options.config-CQY6t9AL.js → heat-map-options.config-5zjlVaa0.js} +1 -1
- package/components/{heat-map-positioning.config-BpFis567.js → heat-map-positioning.config-C7W5YbvL.js} +1 -1
- package/components/{heat-map-positioning.config-HPftgmdz.cjs → heat-map-positioning.config-CjaNs9QU.cjs} +1 -1
- package/components/{heat-map-slots.config-B4AswVSo.js → heat-map-slots.config-DBkkcvMN.js} +1 -1
- package/components/{heat-table-options.config-IlVPk4Q4.js → heat-table-options.config-Blcs4JjF.js} +1 -1
- package/components/{heat-table-positioning.config-wkrm8Fbk.cjs → heat-table-positioning.config-B2ko43lN.cjs} +1 -1
- package/components/{heat-table-positioning.config-Canc3aEE.js → heat-table-positioning.config-C6d8wmTk.js} +1 -1
- package/components/{heat-table-slots.config-CB509zU4.js → heat-table-slots.config-CJOXI-Sf.js} +1 -1
- package/components/{hexbin-map-options.config-vzw6ovva.js → hexbin-map-options.config-D5o0k890.js} +1 -1
- package/components/{hexbin-map-positioning.config-CBv6Lij5.js → hexbin-map-positioning.config-B9Af5odq.js} +1 -1
- package/components/{hexbin-map-positioning.config-D0hAchxV.cjs → hexbin-map-positioning.config-CaP2fsiE.cjs} +1 -1
- package/components/{hexbin-map-slots.config-Dyse0pui.js → hexbin-map-slots.config-CpJIfl6o.js} +1 -1
- package/components/{image-options.config-Cmrsd8Yu.js → image-options.config-C46UQpMq.js} +1 -1
- package/components/{image-slots.config-CVj-DM07.js → image-slots.config-DjaT4mUk.js} +1 -1
- package/components/index.cjs +1 -1
- package/components/index.js +62 -61
- package/components/interactive-viz-item/helpers/chart-helpers.d.ts +7 -0
- package/components/interactive-viz-item/index.cjs +20 -0
- package/components/interactive-viz-item/index.d.ts +10 -0
- package/components/interactive-viz-item/index.js +28 -0
- package/components/interactive-viz-item/interactive-viz-item.d.ts +96 -0
- package/components/interactive-viz-item/types.d.ts +117 -0
- package/components/interactive-viz-item-CKRpHIwI.js +693 -0
- package/components/interactive-viz-item-D8btvzeg.cjs +247 -0
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +1 -1
- package/components/item-grid-BEwohat_.js +4559 -0
- package/components/item-grid-CtW-2roU.cjs +113 -0
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.js +1 -1
- package/components/{item-option-uyAsPcfE.js → item-option-CSc3jmeo.js} +52 -52
- package/components/{item-option-CEwjJc1p.cjs → item-option-DkqkbwtF.cjs} +5 -5
- 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-BoZWUGPs.cjs +53 -0
- package/components/{item-option-action-button-group-BOxQFfBF.js → item-option-action-button-group-D_K-T_wB.js} +2 -2
- package/components/{item-option-base-Dr5-WxZ9.js → item-option-base-Do3zK0fN.js} +1 -1
- package/components/{item-option-base-DKieCS-Y.cjs → item-option-base-yH3-Snf-.cjs} +1 -1
- package/components/item-option-color-palette-picker/index.cjs +1 -1
- package/components/item-option-color-palette-picker/index.js +1 -1
- package/components/{item-option-color-palette-picker-7vSSpj5o.cjs → item-option-color-palette-picker-B9Umcsw_.cjs} +1 -1
- package/components/{item-option-color-palette-picker-D_mABGWh.js → item-option-color-palette-picker-CTvaiVJ1.js} +1 -1
- package/components/item-option-color-picker/index.cjs +1 -1
- package/components/item-option-color-picker/index.js +1 -1
- package/components/{item-option-color-picker-COLBYeRy.js → item-option-color-picker-BLF9-2WR.js} +1 -1
- package/components/{item-option-color-picker-DMyNeD2e.cjs → item-option-color-picker-FIPCBMIC.cjs} +1 -1
- package/components/item-option-color-range/index.cjs +1 -1
- package/components/item-option-color-range/index.js +1 -1
- package/components/item-option-color-range-BznRsx45.cjs +98 -0
- package/components/{item-option-color-range-CueVlyT2.js → item-option-color-range-mvlBVdZK.js} +3 -3
- package/components/item-option-multi-language-field/index.cjs +1 -1
- package/components/item-option-multi-language-field/index.js +1 -1
- package/components/{item-option-multi-language-field-CMuQwrwQ.js → item-option-multi-language-field-BMJdbHOd.js} +1 -1
- package/components/{item-option-multi-language-field-q7txF5xA.cjs → item-option-multi-language-field-Rypasjvk.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-BODNSx66.js → item-option-number-field-Bu4IYyNe.js} +1 -1
- package/components/{item-option-number-field-DWeJWUxY.cjs → item-option-number-field-sNlrQ5mG.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-CxOfVI0z.js → item-option-panel-Bmm9IeZR.js} +3 -3
- package/components/{item-option-panel-D0dxyUfE.cjs → item-option-panel-DEPAMt-A.cjs} +1 -1
- package/components/item-option-picker/index.cjs +1 -1
- package/components/item-option-picker/index.js +1 -1
- package/components/{item-option-picker-CyX7qqrb.js → item-option-picker-6-VRIzb5.js} +1 -1
- package/components/{item-option-picker-BsP_0XyD.cjs → item-option-picker-DXZce4bl.cjs} +1 -1
- package/components/item-option-position-picker/index.cjs +1 -1
- package/components/item-option-position-picker/index.js +1 -1
- package/components/{item-option-position-picker-LOg6P4Gl.js → item-option-position-picker-DBy46OLT.js} +1 -1
- package/components/{item-option-position-picker-CcmBYyqF.cjs → item-option-position-picker-DW12bwRL.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-BCbWb1R6.js → item-option-positions-number-field-BFW0c-PE.js} +1 -1
- package/components/{item-option-positions-number-field-o3Qckgwd.cjs → item-option-positions-number-field-HofP9ee6.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-CjLhWTEJ.cjs → item-option-radio-button-group-BN_a7dSl.cjs} +1 -1
- package/components/{item-option-radio-button-group-CDebmEn3.js → item-option-radio-button-group-CpdXh9GA.js} +1 -1
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.js +1 -1
- package/components/{item-option-slider-CHbkJHLK.cjs → item-option-slider-B-CM9FzR.cjs} +1 -1
- package/components/{item-option-slider-C9ZJZcdg.js → item-option-slider-CRjRQP3Z.js} +1 -1
- package/components/item-option-switch/index.cjs +1 -1
- package/components/item-option-switch/index.js +1 -1
- package/components/{item-option-switch-FRAZWozp.cjs → item-option-switch-CY6zMkI-.cjs} +1 -1
- package/components/{item-option-switch-BVMOOWya.js → item-option-switch-Q-IaH1Xr.js} +1 -1
- package/components/item-option-text-field/index.cjs +1 -1
- package/components/item-option-text-field/index.js +1 -1
- package/components/{item-option-text-field-e6NLDlSq.js → item-option-text-field-BzHaYPud.js} +1 -1
- package/components/{item-option-text-field-DkYqHfdJ.cjs → item-option-text-field-C2_1-zLs.cjs} +1 -1
- package/components/item-options-configs.js +45 -45
- package/components/item-slot-drop/index.cjs +1 -1
- package/components/item-slot-drop/index.js +1 -1
- package/components/{item-slot-drop-CoReI68M.js → item-slot-drop-CNX2TBXB.js} +24 -24
- package/components/item-slot-drop-CR-dvLaD.cjs +91 -0
- 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-CEI1q060.js → item-slot-drop-panel-BaJoR9Zc.js} +48 -48
- package/components/{item-slot-drop-panel-DqekQtOr.cjs → item-slot-drop-panel-DTvbJtNW.cjs} +6 -6
- package/components/item-slot-picker/index.cjs +1 -1
- package/components/item-slot-picker/index.js +1 -1
- package/components/{item-slot-picker-CvbXFh6Z.cjs → item-slot-picker-CnKeeXp5.cjs} +13 -13
- 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-CG0NyMDX.js → item-slot-picker-panel-BMapBAxj.js} +15 -15
- package/components/item-slot-picker-panel-Dw682RiT.cjs +81 -0
- package/components/{item-slot-picker-dy5hVID5.js → item-slot-picker-tHRu_jaI.js} +25 -25
- package/components/item-slots-configs.js +45 -45
- package/components/{line-chart-options.config-1TpSJqeb.js → line-chart-options.config-KFAaQqB_.js} +1 -1
- package/components/{line-chart-positioning.config-61uNfPZs.js → line-chart-positioning.config-Bwe9-1yw.js} +1 -1
- package/components/{line-chart-positioning.config-BNtGFWUK.cjs → line-chart-positioning.config-CfVRqaxT.cjs} +1 -1
- package/components/{line-chart-slots.config-CcCpwWzZ.js → line-chart-slots.config-D0jaC82U.js} +1 -1
- package/components/{localized-mixin-EpweDrTk.js → localized-mixin-BvQbkZEL.js} +1 -1
- package/components/{localized-mixin-CiBWThrZ.cjs → localized-mixin-DrK3QZNa.cjs} +1 -1
- package/components/{marker-map-options.config-DTaax79J.js → marker-map-options.config-D0RmFKKM.js} +1 -1
- package/components/{marker-map-positioning.config-C2cL7uZJ.cjs → marker-map-positioning.config-DLXbw6Yd.cjs} +1 -1
- package/components/{marker-map-positioning.config-Bi5WCVgJ.js → marker-map-positioning.config-DLehY4Lv.js} +1 -1
- package/components/{marker-map-slots.config-BOWmS_IZ.js → marker-map-slots.config-DsMklO0v.js} +1 -1
- package/components/{nl-D_MleIlk.js → nl-C_g1Le3t.js} +9 -1
- package/components/{nl-DS4Y_g8B.cjs → nl-PxN5EqzT.cjs} +1 -1
- package/components/{ohlc-chart-options.config-Dfes8ROC.js → ohlc-chart-options.config-BBdUKmJ9.js} +1 -1
- package/components/{ohlc-chart-positioning.config-IAOfu4ue.cjs → ohlc-chart-positioning.config-BGU-mDPW.cjs} +1 -1
- package/components/{ohlc-chart-positioning.config-DFx99k9A.js → ohlc-chart-positioning.config-Cz3zieDp.js} +1 -1
- package/components/{ohlc-chart-slots.config-JRztPEXL.js → ohlc-chart-slots.config-BiQn5Kdg.js} +1 -1
- package/components/{parallel-coordinates-plot-options.config-NSk_HC0H.js → parallel-coordinates-plot-options.config-KJrOL0Sr.js} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-Bf0Leksw.cjs → parallel-coordinates-plot-positioning.config-CXIMbncP.cjs} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-C9TqUuGC.js → parallel-coordinates-plot-positioning.config-Cc8k6gqG.js} +1 -1
- package/components/{parallel-coordinates-plot-slots.config-pmbO5DnL.js → parallel-coordinates-plot-slots.config-B7QY714-.js} +1 -1
- package/components/{pivot-table-options.config-B3wYlzEq.js → pivot-table-options.config-DEmZ_EQi.js} +1 -1
- package/components/{pivot-table-positioning.config-D1R3VO88.cjs → pivot-table-positioning.config-BBd6xf8q.cjs} +1 -1
- package/components/{pivot-table-positioning.config-CPXqqtcR.js → pivot-table-positioning.config-BK7wgw1A.js} +1 -1
- package/components/{pivot-table-slots.config-DaLfGOP9.js → pivot-table-slots.config-DpDaXLdw.js} +1 -1
- package/components/{pragmatic-element-adapter-D0LRKx5U.js → pragmatic-element-adapter-C_7HSvGV.js} +74 -75
- package/components/{pragmatic-element-adapter-DdyH32ix.cjs → pragmatic-element-adapter-DPWYJiW9.cjs} +4 -4
- package/components/{pyramid-chart-options.config-DIyiyqGM.js → pyramid-chart-options.config-DiD3QFps.js} +1 -1
- package/components/{pyramid-chart-positioning.config-BfXdJS8g.cjs → pyramid-chart-positioning.config-C7STytAm.cjs} +1 -1
- package/components/{pyramid-chart-positioning.config-JAUQpA0B.js → pyramid-chart-positioning.config-CGjiKyPG.js} +1 -1
- package/components/{pyramid-chart-slots.config-DtnUlw5y.js → pyramid-chart-slots.config-BrKgartT.js} +1 -1
- package/components/{radar-chart-options.config-UVOzUnVT.js → radar-chart-options.config-COBM2L3R.js} +1 -1
- package/components/{radar-chart-positioning.config-CdJSazt4.js → radar-chart-positioning.config-6xWEPHjC.js} +1 -1
- package/components/{radar-chart-positioning.config-Bixdrod2.cjs → radar-chart-positioning.config-p0s42Zyt.cjs} +1 -1
- package/components/{radar-chart-slots.config-CkLoeAV7.js → radar-chart-slots.config-SivEBhuj.js} +1 -1
- package/components/{regular-table-options.config-CBvnxTdd.js → regular-table-options.config-B0zRcsWM.js} +1 -1
- package/components/{regular-table-slots.config-Cc6hL7iu.js → regular-table-slots.config-M2axBXl4.js} +1 -1
- package/components/{route-map-options.config-DZrlGa5o.js → route-map-options.config-CrMrDQ_l.js} +1 -1
- package/components/{route-map-positioning.config-Bk_BndTS.js → route-map-positioning.config-B2qAh6WW.js} +1 -1
- package/components/{route-map-positioning.config-7aca5Iex.cjs → route-map-positioning.config-C8KmQ33c.cjs} +1 -1
- package/components/{route-map-slots.config-CQxB8gKC.js → route-map-slots.config-COCoP99E.js} +1 -1
- package/components/{sankey-diagram-options.config-s_QRVr1r.js → sankey-diagram-options.config-BYLiy1UX.js} +1 -1
- package/components/{sankey-diagram-positioning.config-DPgQELIu.js → sankey-diagram-positioning.config-CBLQktr4.js} +1 -1
- package/components/{sankey-diagram-positioning.config-Bvus3RDi.cjs → sankey-diagram-positioning.config-DAF803wR.cjs} +1 -1
- package/components/{sankey-diagram-slots.config-C9tIfWHU.js → sankey-diagram-slots.config-C-sqtrS-.js} +1 -1
- package/components/{scatter-plot-options.config-DI4hlqi5.js → scatter-plot-options.config-BpUYcLt-.js} +1 -1
- package/components/{scatter-plot-positioning.config-DBDCDDad.cjs → scatter-plot-positioning.config-0hj66nn4.cjs} +1 -1
- package/components/{scatter-plot-positioning.config-D-ifHW9P.js → scatter-plot-positioning.config-Be9hQ727.js} +1 -1
- package/components/{scatter-plot-slots.config-CUURijrN.js → scatter-plot-slots.config-Dg78lS25.js} +1 -1
- package/components/{search-filter-options.config-CPzfgUWV.js → search-filter-options.config-lGQ-biU5.js} +1 -1
- package/components/{search-filter-slots.config-DD119qkk.js → search-filter-slots.config-BhDSDpNd.js} +1 -1
- package/components/{set-locale-UK0ghkg9.js → set-locale-DB1FMgtK.js} +4 -4
- package/components/{set-locale-DTFOOSog.cjs → set-locale-DKCZkJVL.cjs} +1 -1
- package/components/{slicer-filter-options.config-F2CZ8ckV.js → slicer-filter-options.config-B6rxZYcl.js} +1 -1
- package/components/{slicer-filter-positioning.config-0uGZ8EgN.js → slicer-filter-positioning.config-BQoRGx8R.js} +1 -1
- package/components/{slicer-filter-positioning.config-Bx2_7jxp.cjs → slicer-filter-positioning.config-CvcZ3qkf.cjs} +1 -1
- package/components/{slicer-filter-slots.config-D-BhCuA9.js → slicer-filter-slots.config-XtuZoiId.js} +1 -1
- package/components/{slider-filter-options.config-DO0HHK2l.js → slider-filter-options.config-C7-5aoaC.js} +1 -1
- package/components/{slider-filter-slots.config-CGQG6JqK.js → slider-filter-slots.config-BYkIGVvh.js} +1 -1
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +1 -1
- package/components/{slot-menu-DkyDLDSd.cjs → slot-menu-CkiIhk9e.cjs} +2 -2
- package/components/{slot-menu-Cw5HJ_bk.js → slot-menu-DZPe7qUA.js} +15 -15
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +1 -1
- package/components/{slot-menu-list-CTJ-owp1.js → slot-menu-list-BRsAe3-b.js} +3 -3
- package/components/{slot-menu-list-BZllvntQ.cjs → slot-menu-list-CCrkNqq8.cjs} +1 -1
- package/components/slots-config-DMC15sjT.js +77 -0
- package/components/{speedometer-chart-options.config-jK_yQjy2.js → speedometer-chart-options.config-Bd3-G7S7.js} +1 -1
- package/components/{speedometer-chart-positioning.config-CNOKIw7e.cjs → speedometer-chart-positioning.config-CAsBGyZ7.cjs} +1 -1
- package/components/{speedometer-chart-positioning.config-FzFxMi0X.js → speedometer-chart-positioning.config-CsgmgREh.js} +1 -1
- package/components/{speedometer-chart-slots.config-CjkHAHNX.js → speedometer-chart-slots.config-CkeiXSCy.js} +1 -1
- package/components/{spike-map-options.config-cj07bETE.js → spike-map-options.config-B_2BXI_9.js} +1 -1
- package/components/{spike-map-positioning.config-B4NYfmEw.js → spike-map-positioning.config-BS8MuRkQ.js} +1 -1
- package/components/{spike-map-positioning.config-Bcdt8670.cjs → spike-map-positioning.config-D4isshlL.cjs} +1 -1
- package/components/{spike-map-slots.config-yMkdy-0w.js → spike-map-slots.config-C44Vxsit.js} +1 -1
- package/components/{strip-plot-options.config-DmAxeY2S.js → strip-plot-options.config-By62J2Jj.js} +1 -1
- package/components/{strip-plot-positioning.config-n9OIxpa_.js → strip-plot-positioning.config-CufC8vJi.js} +1 -1
- package/components/{strip-plot-positioning.config-BjcqWJoD.cjs → strip-plot-positioning.config-NpwP9QGU.cjs} +1 -1
- package/components/{strip-plot-slots.config-C07nIM5s.js → strip-plot-slots.config-xsNFXerT.js} +1 -1
- package/components/{sunburst-chart-options.config-CLyQG-8x.js → sunburst-chart-options.config-DwQwkQxR.js} +1 -1
- package/components/{sunburst-chart-positioning.config-BIpSCpSi.cjs → sunburst-chart-positioning.config-C5UCbZWE.cjs} +1 -1
- package/components/{sunburst-chart-positioning.config-CcGOcwOK.js → sunburst-chart-positioning.config-D60TNhUU.js} +1 -1
- package/components/{sunburst-chart-slots.config-BU9ma0xm.js → sunburst-chart-slots.config-D6Z2_Kh_.js} +1 -1
- package/components/{symbol-map-options.config-I_gykFhh.js → symbol-map-options.config-uXEbOHWD.js} +1 -1
- package/components/{symbol-map-positioning.config-H3n2ngaa.js → symbol-map-positioning.config-D1esOfIw.js} +1 -1
- package/components/{symbol-map-positioning.config-DPv89eCY.cjs → symbol-map-positioning.config-D__gPAF-.cjs} +1 -1
- package/components/{symbol-map-slots.config-CQJgV5bh.js → symbol-map-slots.config-CHTIkMw4.js} +1 -1
- package/components/{text-options.config-DUMx63Ol.js → text-options.config-B5y7YAqT.js} +1 -1
- package/components/{text-slots.config-YmmXsb-0.js → text-slots.config-sFoowMc6.js} +1 -1
- package/components/{treemap-chart-options.config-CAWPa5jK.js → treemap-chart-options.config-BouAbrk0.js} +1 -1
- package/components/{treemap-chart-positioning.config-W2sl4gZ0.cjs → treemap-chart-positioning.config-BZ1yMqy5.cjs} +1 -1
- package/components/{treemap-chart-positioning.config-Dzp4TodY.js → treemap-chart-positioning.config-DEnYiZKj.js} +1 -1
- package/components/{treemap-chart-slots.config-QEVbKZyS.js → treemap-chart-slots.config-BjHBRWDJ.js} +1 -1
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +2 -2
- package/components/utils/store.js +1 -1
- package/components/{utils-C8VI4SiJ.cjs → utils-Bn8v7iuu.cjs} +1 -1
- package/components/{utils-BD_TKdii.js → utils-CIxpLDLh.js} +2 -2
- package/components/utils.cjs +1 -1
- package/components/utils.js +9 -9
- package/components/{venn-diagram-options.config-KKD89q3q.js → venn-diagram-options.config-BZWBYEhB.js} +1 -1
- package/components/{venn-diagram-positioning.config-BLSj3JqA.js → venn-diagram-positioning.config-DMceiBb8.js} +1 -1
- package/components/{venn-diagram-positioning.config-Bv3pFJIU.cjs → venn-diagram-positioning.config-DUvGRRSh.cjs} +1 -1
- package/components/{venn-diagram-slots.config-DsIqVOI2.js → venn-diagram-slots.config-CM0HPIPD.js} +1 -1
- package/components/{video-options.config-D2SEyNrP.js → video-options.config-DWuy1OHa.js} +1 -1
- package/components/{video-slots.config-B680gLmP.js → video-slots.config-B_aDlTp6.js} +1 -1
- package/components/viz-item-menu/index.cjs +1 -1
- package/components/viz-item-menu/index.js +1 -1
- package/components/{viz-item-menu-CiEJJddu.js → viz-item-menu-BisYrhhJ.js} +2 -2
- package/components/viz-item-menu-DEpm1w7U.cjs +55 -0
- package/components/{wordcloud-chart-options.config-DLN2RAEK.js → wordcloud-chart-options.config-D041tFDG.js} +1 -1
- package/components/{wordcloud-chart-positioning.config-ZTO2VLdY.cjs → wordcloud-chart-positioning.config-CeP0_j_m.cjs} +1 -1
- package/components/{wordcloud-chart-positioning.config-DVPWXJXb.js → wordcloud-chart-positioning.config-tVRXTpdQ.js} +1 -1
- package/components/{wordcloud-chart-slots.config-mFvqkiQE.js → wordcloud-chart-slots.config-Cy-Jgcaq.js} +1 -1
- package/custom-elements.json +498 -4
- package/index.d.ts +1 -0
- package/package.json +7 -2
- package/react/README.md +1 -0
- package/react/components/ai-chat.component.ts +6 -3
- package/react/components/interactive-viz-item/index.ts +1 -0
- package/react/components/interactive-viz-item/types.ts +122 -0
- package/react/components/interactive-viz-item.component.ts +33 -0
- package/react/esm/components/ai-chat.component.d.ts +4 -2
- package/react/esm/components/ai-chat.component.js +4 -2
- package/react/esm/components/interactive-viz-item/index.d.ts +1 -0
- package/react/esm/components/interactive-viz-item/index.js +1 -0
- package/react/esm/components/interactive-viz-item/types.d.ts +117 -0
- package/react/esm/components/interactive-viz-item/types.js +16 -0
- package/react/esm/components/interactive-viz-item.component.d.ts +16 -0
- package/react/esm/components/interactive-viz-item.component.js +21 -0
- package/react/esm/index.d.ts +3 -2
- package/react/esm/index.js +4 -0
- package/react/index.ts +4 -0
- package/react/luzmo-stub.d.ts +9 -0
- package/types/ai-chat.types.d.ts +27 -0
- package/components/data-field-level-7qi9K__S.cjs +0 -55
- package/components/data-field-panel-DUc8y4WA.cjs +0 -87
- package/components/default-acceptable-data-field-types-fPsz64ka.cjs +0 -20
- package/components/display-settings-DnzOjr-1.cjs +0 -120
- package/components/display-settings-datetime-DL0Qcz8Y.cjs +0 -217
- package/components/formula-BPHH_GKB.cjs +0 -45
- package/components/formula-input-base-CGe2ABn6.cjs +0 -49
- package/components/item-grid-BXZXJV3g.cjs +0 -339
- package/components/item-grid-uWM-Unjx.js +0 -8814
- package/components/item-option-action-button-group-DXCVJqpt.cjs +0 -53
- package/components/item-option-color-range-BFr0B6Vf.cjs +0 -98
- package/components/item-slot-drop-BUCjEfJf.cjs +0 -91
- package/components/item-slot-picker-panel-BUyp6Hbg.cjs +0 -81
- package/components/slots-config-BuHluMEl.js +0 -77
- package/components/viz-item-menu-Dry8xpRA.cjs +0 -55
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
const e=require("./base-kQ6cjcIZ.cjs"),t=require("./decorate-DCJt-2rt.cjs"),n=require("./localized-mixin-CiBWThrZ.cjs"),r=require("./data-broker-DWEXs6-2.cjs"),i=require("./localize-D3i4Epy_.cjs");require("./data-field-CAGprHjS.cjs");const a=require("./load-data-fields-for-datasets-CW4Voiex.cjs");let o=require("lit"),s=require("lit/decorators.js"),c=require("@lit/localize");require("@luzmo/lucero/select");let l=require("lit/directives/repeat.js"),u=require("@lit/task");require("@luzmo/lucero/progress-circle"),require("@luzmo/lucero/search");var d=`:host{--data-field-panel-items-gap:var(--luzmo-spacing-2);--data-field-panel-search-edge-to-visual:var(--luzmo-spacing-5);--data-field-panel-search-text-to-icon:calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--data-field-panel-search-quiet-block-size:calc(var(--luzmo-component-height) + var(--luzmo-spacing-3));--data-field-panel-dataset-picker-margin-bottom:var(--luzmo-spacing-3);--data-field-panel-scrollbar-width:var(--luzmo-scrollbar-size);--data-field-panel-scrollbar-track-background:var(--luzmo-scrollbar-track-background);--data-field-panel-scrollbar-track-border-radius:var(--luzmo-scrollbar-track-border-radius);--data-field-panel-scrollbar-thumb-background:var(--luzmo-scrollbar-thumb-background);--data-field-panel-scrollbar-thumb-border-radius:var(--luzmo-scrollbar-thumb-border-radius);--data-field-panel-scrollbar-thumb-hover-background:var(--luzmo-scrollbar-thumb-hover-background)}:host([size=s]){--data-field-panel-items-gap:var(--luzmo-spacing-1);--data-field-panel-search-edge-to-visual:var(--luzmo-spacing-4);--data-field-panel-search-text-to-icon:calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--data-field-panel-search-quiet-block-size:calc(var(--luzmo-component-height-s) + var(--luzmo-spacing-3));--data-field-panel-dataset-picker-margin-bottom:var(--luzmo-spacing-2)}:host([size=l]){--data-field-panel-items-gap:var(--luzmo-spacing-2);--data-field-panel-search-text-to-icon:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--data-field-panel-search-quiet-block-size:calc(var(--luzmo-component-height-l) + var(--luzmo-spacing-3));--data-field-panel-dataset-picker-margin-bottom:var(--luzmo-spacing-3)}:host([size=xl]){--data-field-panel-items-gap:var(--luzmo-spacing-3);--data-field-panel-search-text-to-icon:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2));--data-field-panel-search-quiet-block-size:calc(var(--luzmo-component-height-xl) + var(--luzmo-spacing-3));--data-field-panel-dataset-picker-margin-bottom:var(--luzmo-spacing-4)}:host([dataset-picker][search-quiet]):has(.search-container){--data-field-panel-dataset-picker-margin-bottom:0}:host{box-sizing:border-box;height:100%;font-family:var(--luzmo-font-family,sans-serif);color:var(--luzmo-font-color,inherit);flex-direction:column;display:flex}.container{flex-direction:column;height:100%;display:flex}.dataset-picker{border-bottom-style:solid;border-bottom-width:var(--data-field-panel-dataset-picker-divider-height,1px);border-bottom-color:var(--luzmo-data-field-panel-dataset-picker-divider-color,var(--data-field-panel-dataset-picker-divider-color,var(--luzmo-border-color)));flex-shrink:0;margin-block-end:var(--luzmo-data-field-panel-dataset-picker-margin-block-end,var(--data-field-panel-dataset-picker-margin-bottom));padding-block-end:var(--luzmo-data-field-panel-dataset-picker-padding-block-end,var(--luzmo-spacing-3))}.dataset-picker luzmo-select{width:100%}.search-container{width:100%;flex-shrink:0;margin-block-end:var(--luzmo-data-field-panel-search-margin-block-end,var(--luzmo-spacing-3,.75rem))}.search-container luzmo-search{--luzmo-search-edge-to-visual:var(--luzmo-data-field-panel-search-edge-to-visual,var(--data-field-panel-search-edge-to-visual));--luzmo-search-text-to-icon:var(--luzmo-data-field-panel-search-text-to-icon,var(--data-field-panel-search-text-to-icon));width:100%}.data-fields-list{gap:var(--luzmo-data-field-panel-data-fields-gap,var(--data-field-panel-items-gap));flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden auto}.data-fields-list::-webkit-scrollbar{width:var(--luzmo-data-field-panel-scrollbar-width,var(--data-field-panel-scrollbar-width))}.data-fields-list::-webkit-scrollbar-track{background:var(--luzmo-data-field-panel-scrollbar-track-background,var(--data-field-panel-scrollbar-track-background));border-radius:var(--luzmo-data-field-panel-scrollbar-track-border-radius,var(--data-field-panel-scrollbar-track-border-radius))}.data-fields-list::-webkit-scrollbar-thumb{background:var(--luzmo-data-field-panel-scrollbar-thumb-background,var(--data-field-panel-scrollbar-thumb-background));border-radius:var(--luzmo-data-field-panel-scrollbar-thumb-border-radius,var(--data-field-panel-scrollbar-thumb-border-radius))}.data-fields-list::-webkit-scrollbar-thumb:hover{background:var(--luzmo-data-field-panel-scrollbar-thumb-hover-background,var(--data-field-panel-scrollbar-thumb-hover-background))}.data-fields-list{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-data-field-panel-scrollbar-thumb-background,var(--data-field-panel-scrollbar-thumb-background)) var(--luzmo-data-field-panel-scrollbar-track-background,var(--data-field-panel-scrollbar-track-background))}.empty-state{color:var(--luzmo-font-color-tertiary,#999);font-size:var(--luzmo-font-size);text-align:center;padding:var(--luzmo-spacing-4);flex:1;justify-content:center;align-items:center;display:flex}.pending-state{padding:var(--luzmo-spacing-4);flex:1;justify-content:center;align-items:center;display:flex}:host([search-quiet]){--luzmo-search-block-size:var(--luzmo-data-field-panel-search-quiet-block-size,var(--data-field-panel-search-quiet-block-size))}:host([dataset-picker][search-quiet]):has(.search-container){--data-field-panel-dataset-picker-divider-color:transparent;--data-field-panel-dataset-picker-divider-height:1px}`,f=50,p=class extends n.t(e.n(e.i,{validSizes:[`s`,`m`,`l`,`xl`],noDefaultSize:!0})){constructor(...e){super(...e),this._handleDataFieldDropped=e=>{e.target!==this&&(e.stopPropagation(),this.dispatchEvent(new CustomEvent(`luzmo-data-field-dropped`,{bubbles:!0,composed:!0,detail:e.detail})))},this._handleDataFieldDragStarted=e=>{e.target!==this&&(e.stopPropagation(),this.dispatchEvent(new CustomEvent(`luzmo-data-field-drag-started`,{bubbles:!0,composed:!0,detail:e.detail})))},this.datasetIds=[],this.datasetsDataFields=[],this.datasetPicker=!1,this.disabled=!1,this.pending=!1,this.dataFieldVariant=`highlight`,this.searchQuiet=!1,this.hideTypeIcon=!1,this.hideSublevels=!1,this.apiUrl=`https://api.luzmo.com`,this.search=`auto`,this.searchThreshold=20,this._searchQuery=``,this._failedDatasetIds=new Set,this._loadDataFieldsTask=new u.Task(this,{args:()=>[this._currentDatasetId,this.apiUrl,this.authKey,this.authToken,this.datasetsDataFields.length],task:async([e,t,n,r,i])=>{if(i>0||!e||this._failedDatasetIds.has(e))return null;let o=await a.t([e],{dataBrokerConfig:{apiUrl:t,authKey:n,authToken:r}});return o.length===0?(this._failedDatasetIds.add(e),null):o[0]}}),this._datasetListItems=[],this._datasetListRetrieving=!1,this._datasetListPending=!1,this._datasetNamesFetchAttempted=!1,this._hasMoreDatasets=!0}static{this.styles=(0,o.unsafeCSS)(d)}connectedCallback(){super.connectedCallback(),this.addEventListener(`luzmo-data-field-dropped`,this._handleDataFieldDropped),this.addEventListener(`luzmo-data-field-drag-started`,this._handleDataFieldDragStarted)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`luzmo-data-field-dropped`,this._handleDataFieldDropped),this.removeEventListener(`luzmo-data-field-drag-started`,this._handleDataFieldDragStarted)}get _isDataFieldsPending(){return this.pending||this._loadDataFieldsTask.status===u.TaskStatus.PENDING}get _error(){if(this._loadDataFieldsTask.status===u.TaskStatus.ERROR){let e=this._loadDataFieldsTask.error,t=e instanceof Error?e.message:`Unknown error`;return`${(0,c.msg)(`Could not retrieve data`)}: ${t}`}}get _availableDatasets(){return this.datasetsDataFields.length>0?this.datasetsDataFields:this.datasetIds.length>0?this.datasetIds.map(e=>{let t=this._datasetListItems.find(t=>t.id===e);return t?{id:t.id,name:t.name,description:t.description,dataFields:[]}:{id:e,name:{en:e},dataFields:[]}}):this._datasetListItems.length>0?this._datasetListItems.map(e=>({id:e.id,name:e.name,description:e.description,dataFields:[]})):[]}get _selectedDataset(){return this._availableDatasets.find(e=>e.id===this._currentDatasetId)}get _dataFields(){let e=this._loadDataFieldsTask.value;if(e&&e.dataFields?.length>0)return e.dataFields;let t=this._selectedDataset;if(!t)return[];if(`dataFields`in t&&Array.isArray(t.dataFields)&&t.dataFields.length>0)return t.dataFields;let n=[];if(`columns`in t&&Array.isArray(t.columns))for(let e of t.columns)n.push({...e,datasetId:t.id});if(`formulas`in t&&Array.isArray(t.formulas))for(let e of t.formulas)n.push({...e,datasetId:t.id});return n}get _shouldFetchDatasetList(){return this.datasetPicker&&this.datasetsDataFields.length===0}get _showSearch(){return this.search===`off`?!1:this.search===`on`||this._dataFields.length>this.searchThreshold}get _filteredDataFields(){let e=this._dataFields;if(!this._searchQuery.trim())return e;let t=this._searchQuery.toLowerCase().trim();return e.filter(e=>(i.t(e.name,this.language)||``).toLowerCase().includes(t))}willUpdate(e){super.willUpdate(e);let t=e.has(`selectedDatasetId`),n=e.has(`datasetsDataFields`),i=e.has(`datasetIds`),a=e.has(`datasetPicker`),o=e.has(`authKey`),s=e.has(`authToken`),c=e.has(`apiUrl`);(i||o||s||c)&&(this._datasetListItems=[],this._hasMoreDatasets=!0,this._failedDatasetIds.clear(),this._datasetNamesFetchAttempted=!1,r.t.configure({apiUrl:this.apiUrl,authKey:this.authKey??``,authToken:this.authToken??``})),n&&this.datasetsDataFields.length>0&&(this._datasetListItems=[],this._hasMoreDatasets=!0,this._failedDatasetIds.clear()),(t||n||i)&&this._updateCurrentDatasetId(),(i||o||s||c||a)&&this.datasetIds.length>0&&this.datasetPicker&&this.datasetsDataFields.length===0&&this._datasetListItems.length===0&&this._fetchDatasetNamesForPicker()}async _fetchDatasetNamesForPicker(){if(this.datasetIds.length!==0){this._datasetListPending=!0;try{let e=await r.t.fetchDatasetNames(this.datasetIds);this._datasetListItems=e}catch(e){console.warn(`Failed to fetch dataset names:`,e)}finally{this._datasetListPending=!1,this._datasetNamesFetchAttempted=!0}}}async _loadMoreDatasets(e){if(!(this._datasetListRetrieving||!this._hasMoreDatasets)){this._datasetListRetrieving=!0,e&&(e.retrieving=!0);try{let e=this._datasetListItems.length,t=await r.t.fetchAllDatasets({offset:e,limit:f});this._datasetListItems=[...this._datasetListItems,...t.data],this._hasMoreDatasets=e+f<(t.pagination?.total??0),!this._currentDatasetId&&this._datasetListItems.length>0&&this._updateCurrentDatasetId()}catch(e){console.warn(`Failed to load dataset list:`,e),this._hasMoreDatasets=!1}finally{this._datasetListRetrieving=!1,e&&(e.retrieving=!1)}}}_handlePickerScrolled(e){if(this.datasetIds.length>0)return;let t=e.target,{last:n}=e.detail;n>=this._datasetListItems.length-10&&this._hasMoreDatasets&&this._loadMoreDatasets(t)}async _handlePickerOpened(e){let t=e.target;if(this._datasetListItems.length===0&&this._shouldFetchDatasetList&&this.datasetIds.length===0&&this._hasMoreDatasets){t.pending=!0;try{await this._loadMoreDatasets(t)}finally{t.pending=!1}}}_updateCurrentDatasetId(){let e=this._availableDatasets;if(this.selectedDatasetId&&e.some(e=>e.id===this.selectedDatasetId)){this._currentDatasetId=this.selectedDatasetId;return}if(this.selectedDatasetId&&this.datasetIds.includes(this.selectedDatasetId)){this._currentDatasetId=this.selectedDatasetId;return}this._currentDatasetId=e.length>0?e[0].id:void 0}_handleDatasetChange(e){let t=e.detail?.value?.[0];t&&t!==this._currentDatasetId&&(this._currentDatasetId=t,this._searchQuery=``,this.dispatchEvent(new CustomEvent(`luzmo-dataset-changed`,{bubbles:!0,composed:!0,detail:{datasetId:t}})))}_getDataFieldKey(e){return`columnId`in e&&e.columnId?`col-${e.columnId}`:`formulaId`in e&&e.formulaId?`formula-${e.formulaId}`:`formula`in e&&e.formula?`adhoc-${e.formula}`:`field-${e.datasetId}-${Math.random().toString(36).slice(2,11)}`}_handleSearchInput(e){let t=e.target;this._searchQuery=t.value}_renderDatasetPicker(){if(!this.datasetPicker)return o.nothing;let e=this._availableDatasets,t=e.length>1,n=this.datasetIds.length>0,r=this._shouldFetchDatasetList;if(!t&&!n&&!r)return o.nothing;let a=this._datasetListPending||this.datasetIds.length>0&&this._datasetListItems.length===0&&this.datasetsDataFields.length===0&&!this._datasetNamesFetchAttempted,s=a?[]:e.map(e=>({value:e.id,label:i.t(e.name,this.language)||e.id})),l=a?[]:this._currentDatasetId?[this._currentDatasetId]:[],u=a?(0,c.msg)(`Loading datasets...`):this.datasetPickerPlaceholder??(0,c.msg)(`Select dataset...`);return o.html`
|
|
21
|
-
<div class="dataset-picker" part="dataset-picker">
|
|
22
|
-
<luzmo-select
|
|
23
|
-
selects="single"
|
|
24
|
-
variant="highlight"
|
|
25
|
-
.size=${this.size}
|
|
26
|
-
.options=${s}
|
|
27
|
-
.value=${l}
|
|
28
|
-
.label=${u}
|
|
29
|
-
?disabled=${this.disabled}
|
|
30
|
-
?pending=${a}
|
|
31
|
-
@change=${this._handleDatasetChange}
|
|
32
|
-
@luzmo-opened=${this._handlePickerOpened}
|
|
33
|
-
@luzmo-scrolled=${this._handlePickerScrolled}
|
|
34
|
-
></luzmo-select>
|
|
35
|
-
</div>
|
|
36
|
-
`}_renderSearch(){return!this._showSearch||this._isDataFieldsPending?o.nothing:o.html`
|
|
37
|
-
<div class="search-container" part="search">
|
|
38
|
-
<luzmo-search
|
|
39
|
-
.size=${this.size}
|
|
40
|
-
.placeholder=${this.searchPlaceholder??(0,c.msg)(`Search...`)}
|
|
41
|
-
.value=${this._searchQuery}
|
|
42
|
-
?disabled=${this.disabled}
|
|
43
|
-
?quiet=${this.searchQuiet}
|
|
44
|
-
@input=${this._handleSearchInput}
|
|
45
|
-
></luzmo-search>
|
|
46
|
-
</div>
|
|
47
|
-
`}_renderPendingState(){return o.html`
|
|
48
|
-
<div class="pending-state" role="status" part="pending-state">
|
|
49
|
-
<luzmo-progress-circle
|
|
50
|
-
indeterminate
|
|
51
|
-
.label=${(0,c.msg)(`Loading`,{desc:`Loading spinner label`})}
|
|
52
|
-
.size=${this.size}
|
|
53
|
-
></luzmo-progress-circle>
|
|
54
|
-
</div>
|
|
55
|
-
`}_renderErrorState(){return o.html`
|
|
56
|
-
<div class="empty-state" role="alert" part="empty-state">
|
|
57
|
-
${this._error}
|
|
58
|
-
</div>
|
|
59
|
-
`}_renderDataFields(){if(this._error)return this._renderErrorState();if(this._dataFields.length===0)return o.html`
|
|
60
|
-
<div class="empty-state" part="empty-state">
|
|
61
|
-
${(0,c.msg)(`No data available`,{desc:`Empty state message shown when the selected dataset has no data fields (columns or formulas)`})}
|
|
62
|
-
</div>
|
|
63
|
-
`;let e=this._filteredDataFields;return e.length===0?o.html`
|
|
64
|
-
<div class="empty-state" part="empty-state">
|
|
65
|
-
${(0,c.msg)(`No results found`)}
|
|
66
|
-
</div>
|
|
67
|
-
`:o.html`
|
|
68
|
-
<div class="data-fields-list" part="data-fields-list" role="list">
|
|
69
|
-
${(0,l.repeat)(e,e=>this._getDataFieldKey(e),e=>o.html`
|
|
70
|
-
<luzmo-data-field
|
|
71
|
-
.data=${e}
|
|
72
|
-
.language=${this.language}
|
|
73
|
-
.size=${this.size}
|
|
74
|
-
.variant=${this.dataFieldVariant}
|
|
75
|
-
?disabled=${this.disabled}
|
|
76
|
-
?hide-type-icon=${this.hideTypeIcon}
|
|
77
|
-
?hide-sublevels=${this.hideSublevels}
|
|
78
|
-
></luzmo-data-field>
|
|
79
|
-
`)}
|
|
80
|
-
</div>
|
|
81
|
-
`}render(){return o.html`
|
|
82
|
-
<div class="container" part="container" aria-busy=${this._isDataFieldsPending?`true`:`false`}>
|
|
83
|
-
${this._renderDatasetPicker()}
|
|
84
|
-
${this._renderSearch()}
|
|
85
|
-
${this._isDataFieldsPending?this._renderPendingState():this._renderDataFields()}
|
|
86
|
-
</div>
|
|
87
|
-
`}};t.t([(0,s.property)({type:Array,attribute:`dataset-ids`})],p.prototype,`datasetIds`,void 0),t.t([(0,s.property)({type:Array,attribute:!1})],p.prototype,`datasetsDataFields`,void 0),t.t([(0,s.property)({type:String,attribute:`selected-dataset-id`,reflect:!0})],p.prototype,`selectedDatasetId`,void 0),t.t([(0,s.property)({type:Boolean,attribute:`dataset-picker`,reflect:!0})],p.prototype,`datasetPicker`,void 0),t.t([(0,s.property)({type:Boolean,reflect:!0})],p.prototype,`disabled`,void 0),t.t([(0,s.property)({type:Boolean,reflect:!0})],p.prototype,`pending`,void 0),t.t([(0,s.property)({type:String,attribute:`data-field-variant`,reflect:!0})],p.prototype,`dataFieldVariant`,void 0),t.t([(0,s.property)({type:Boolean,attribute:`search-quiet`,reflect:!0})],p.prototype,`searchQuiet`,void 0),t.t([(0,s.property)({type:Boolean,attribute:`hide-type-icon`,reflect:!0})],p.prototype,`hideTypeIcon`,void 0),t.t([(0,s.property)({type:Boolean,attribute:`hide-sublevels`,reflect:!0})],p.prototype,`hideSublevels`,void 0),t.t([(0,s.property)({type:String,attribute:`dataset-picker-placeholder`})],p.prototype,`datasetPickerPlaceholder`,void 0),t.t([(0,s.property)({type:String,attribute:`api-url`})],p.prototype,`apiUrl`,void 0),t.t([(0,s.property)({type:String,attribute:`auth-key`})],p.prototype,`authKey`,void 0),t.t([(0,s.property)({type:String,attribute:`auth-token`})],p.prototype,`authToken`,void 0),t.t([(0,s.property)({type:String,reflect:!0})],p.prototype,`search`,void 0),t.t([(0,s.property)({type:String,attribute:`search-placeholder`})],p.prototype,`searchPlaceholder`,void 0),t.t([(0,s.property)({type:Number,attribute:`search-threshold`})],p.prototype,`searchThreshold`,void 0),t.t([(0,s.state)()],p.prototype,`_currentDatasetId`,void 0),t.t([(0,s.state)()],p.prototype,`_searchQuery`,void 0),t.t([(0,s.state)()],p.prototype,`_datasetListItems`,void 0),t.t([(0,s.state)()],p.prototype,`_datasetListRetrieving`,void 0),t.t([(0,s.state)()],p.prototype,`_datasetListPending`,void 0),p=t.t([(0,c.localized)()],p),customElements.get(`luzmo-data-field-panel`)||customElements.define(`luzmo-data-field-panel`,p),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return p}});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
const e=require("./type-check-BehV9ZL1.cjs"),t=require("./formatter-BeXmurVe.cjs");var n=(n,r)=>{let i={type:n.type,datasetId:n.datasetId,set:n.datasetId};`columnId`in n&&!e.n(n.columnId)&&n.columnId!==``?(i.columnId=n.columnId,i.column=n.columnId):`formulaId`in n&&!e.n(n.formulaId)&&n.formulaId!==``?(i.formulaId=n.formulaId,i.formula=n.formulaId):`formula`in n&&typeof n.formula==`string`&&n.formula!==``&&(i.formula=n.formula);let a=n.type===`datetime`||n.type===`array[datetime]`,o={...n.name??{en:`Untitled`}},s=n.level;if(a&&(s=s??n.lowestLevel??9,r)){let e=t.i.shortLevels?.filter(e=>e!==`All`)??[],n=e[Math.max(0,Math.min(e.length-1,(s??1)-1))];if(n){let e=`(${n})`,t=Object.keys(o);for(let n of t)o[n]=`${o[n]} ${e}`}}return i.label=o,e.n(n.subtype)||(i.subtype=n.subtype),`lowestLevel`in n&&!e.n(n.lowestLevel)&&(i.lowestLevel=n.lowestLevel),e.n(n.format)||(i.format=n.format),e.n(s)||(i.level=s),e.n(n.lowestLevel)||(i.lowestLevel=n.lowestLevel),n.type===`numeric`&&n.subtype===`currency`&&n.currency?.symbol&&(i.currency=n.currency.symbol),Array.isArray(n.duration_levels)&&n.duration_format&&(i.duration={levels:n.duration_levels,format:n.duration_format}),i},r=[`datetime`,`hierarchy`,`numeric`,`spatial`,`array[datetime]`,`array[numeric]`,`array[hierarchy]`,`array[spatial]`];Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
const e=require("./base-kQ6cjcIZ.cjs"),t=require("./decorate-DCJt-2rt.cjs"),n=require("./formatter-BeXmurVe.cjs");let r=require("@luzmo/icons"),i=require("lit"),a=require("lit/decorators.js"),o=require("@lit/localize");require("@luzmo/lucero/icon"),require("@luzmo/lucero/tooltip"),require("@luzmo/lucero/action-button");let s=require("@lit-labs/signals"),c=require("@lit/context"),l=require("@lit/task");require("@luzmo/lucero/divider"),require("@luzmo/lucero/field-label"),require("@luzmo/lucero/multi-language-field"),require("@luzmo/lucero/progress-circle"),require("@luzmo/lucero/text-field");var u=(0,c.createContext)(Symbol(`slot-store-context`)),d=`: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}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{align-items:center;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-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:uppercase;--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-s);--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-5)}: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-4)}: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:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1))}: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:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2))}: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)}`,f=class extends (0,s.SignalWatcher)(e.n(e.i,{validSizes:Object.values(e.t)})){constructor(...e){super(...e),this._loadDisplaySettings=new l.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.slotContent={},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,i.unsafeCSS)(d)]}_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.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 i.nothing;let r=!this._currentSlotContent.datetimeDisplayMode||this._currentSlotContent.datetimeDisplayMode==="default",a=e?1234.56:r?new Date:1,s=n.t({...this._currentSlotContent,type:e?`numeric`:`datetime`},{locale:this.contentLanguage,level:this._currentSlotContent.level})(a);return i.html`<div class="settings-row example-container">
|
|
21
|
-
<span class="example-label"
|
|
22
|
-
>${(0,o.msg)(`Example`,{desc:`Label for example`})}:</span
|
|
23
|
-
>
|
|
24
|
-
<span class="example">${s}</span>
|
|
25
|
-
</div>`}_renderDisplaySettings(){return i.html`<div class="settings-container">
|
|
26
|
-
<div class="settings-row">
|
|
27
|
-
<div class="setting">
|
|
28
|
-
<div class="label-container">
|
|
29
|
-
<luzmo-field-label side-aligned="start" .size=${this.size}
|
|
30
|
-
>Label:</luzmo-field-label
|
|
31
|
-
>
|
|
32
|
-
<luzmo-multi-language-field
|
|
33
|
-
label="Label"
|
|
34
|
-
.language=${this.contentLanguage}
|
|
35
|
-
.value=${this._currentSlotContent.label??{}}
|
|
36
|
-
.size=${this.size}
|
|
37
|
-
debounce="200"
|
|
38
|
-
@change=${this._onLabelChange}
|
|
39
|
-
></luzmo-multi-language-field>
|
|
40
|
-
</div>
|
|
41
|
-
<div class="label-action-container">
|
|
42
|
-
<luzmo-action-button quiet .size=${this.size} .label=${(0,o.msg)(`Show dataset and column IDs`,{desc:`Show IDs button label`})} aria-expanded=${this._showIds} @click=${this._toggleIds}>
|
|
43
|
-
${(0,r.luzmoIcon)(r.luzmoInfoCircleOutline)}
|
|
44
|
-
<luzmo-tooltip self-managed placement="top" size=${this.size}>
|
|
45
|
-
${(0,o.msg)(`Show dataset and column IDs`,{desc:`Show IDs button label`})}
|
|
46
|
-
</luzmo-tooltip>
|
|
47
|
-
</luzmo-action-button>
|
|
48
|
-
${this.showRemoveButton?i.html`<luzmo-action-button quiet .size=${this.size} .label=${(0,o.msg)(`Remove`,{desc:`Remove button label`})} @click=${this._removeEvent}>
|
|
49
|
-
${(0,r.luzmoIcon)(r.luzmoTrashOutline)}
|
|
50
|
-
<luzmo-tooltip
|
|
51
|
-
self-managed
|
|
52
|
-
placement="top"
|
|
53
|
-
size=${this.size}
|
|
54
|
-
>
|
|
55
|
-
${(0,o.msg)(`Remove`,{desc:`Remove button label`})}
|
|
56
|
-
</luzmo-tooltip>
|
|
57
|
-
</luzmo-action-button>`:``}
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
${this.areGrandTotalsEnabled?i.html`<luzmo-display-settings-grand-totals
|
|
62
|
-
.language=${this.language}
|
|
63
|
-
.slotContent=${this._currentSlotContent}
|
|
64
|
-
.size=${this.size}
|
|
65
|
-
@luzmo-slot-content-changed=${this._onSlotContentChange}
|
|
66
|
-
></luzmo-display-settings-grand-totals>`:``}
|
|
67
|
-
${this.slotType===`numeric`||this.slotType===`mixed`&&this._currentSlotContent.type===`numeric`?i.html`<luzmo-display-settings-numeric
|
|
68
|
-
.language=${this.language}
|
|
69
|
-
.slotContent=${this._currentSlotContent}
|
|
70
|
-
.size=${this.size}
|
|
71
|
-
.measureColumns=${this.measureColumns}
|
|
72
|
-
.isAggregationDisabled=${this.isAggregationDisabled}
|
|
73
|
-
.isCumulativeSumEnabled=${this.isCumulativeSumEnabled}
|
|
74
|
-
@luzmo-slot-content-changed=${this._onSlotContentChange}
|
|
75
|
-
></luzmo-display-settings-numeric>`:``}
|
|
76
|
-
${this.slotType!==`numeric`&&this._currentSlotContent.type===`datetime`&&this.areDatetimeOptionsEnabled?i.html`<luzmo-display-settings-datetime
|
|
77
|
-
.language=${this.language}
|
|
78
|
-
.contentLanguage=${this.contentLanguage}
|
|
79
|
-
.slotContent=${this._currentSlotContent}
|
|
80
|
-
.size=${this.size}
|
|
81
|
-
@luzmo-slot-content-changed=${this._onSlotContentChange}
|
|
82
|
-
></luzmo-display-settings-datetime>`:``}
|
|
83
|
-
${![`numeric`,`mixed`].includes(this.slotType??``)&&this._currentSlotContent.type===`numeric`&&!this.isBinningDisabled?i.html`<luzmo-display-settings-binning
|
|
84
|
-
.language=${this.language}
|
|
85
|
-
.slotContent=${this._currentSlotContent}
|
|
86
|
-
.size=${this.size}
|
|
87
|
-
@luzmo-slot-content-changed=${this._onSlotContentChange}
|
|
88
|
-
></luzmo-display-settings-binning>`:``}
|
|
89
|
-
${this.periodOverPeriodUiType?i.html`<luzmo-display-settings-period-over-period
|
|
90
|
-
.language=${this.language}
|
|
91
|
-
.slotContent=${this._currentSlotContent}
|
|
92
|
-
.size=${this.size}
|
|
93
|
-
.periodOverPeriodUiType=${this.periodOverPeriodUiType}
|
|
94
|
-
.linkedDatasetDatetimeColumns=${this._datasetDatetimeColumns()}
|
|
95
|
-
@luzmo-slot-content-changed=${this._onSlotContentChange}
|
|
96
|
-
></luzmo-display-settings-period-over-period>`:``}
|
|
97
|
-
${this._renderExampleRow()}
|
|
98
|
-
</div>
|
|
99
|
-
${this._showIds?i.html` <luzmo-divider></luzmo-divider>
|
|
100
|
-
<div class="ids-container">
|
|
101
|
-
<div>
|
|
102
|
-
<span class="id-label"
|
|
103
|
-
>${this._currentSlotContent.formula?(0,o.msg)(`Formula`,{desc:`Label for formula type`}):(0,o.msg)(`Column`,{desc:`Label for column type`})}:
|
|
104
|
-
</span>
|
|
105
|
-
<span class="id-value">
|
|
106
|
-
${this.formulaOrColumnId}
|
|
107
|
-
</span>
|
|
108
|
-
</div>
|
|
109
|
-
<div>
|
|
110
|
-
<span class="id-label">Dataset: </span>
|
|
111
|
-
<span class="id-value">
|
|
112
|
-
${this.datasetId}
|
|
113
|
-
</span>
|
|
114
|
-
</div>
|
|
115
|
-
<div></div>
|
|
116
|
-
</div>`:``}`}render(){return this._loadDisplaySettings.render({pending:()=>i.html`<luzmo-progress-circle
|
|
117
|
-
indeterminate
|
|
118
|
-
.label=${(0,o.msg)(`Loading`,{desc:`Loading spinner label`})}
|
|
119
|
-
.size=${this.size}
|
|
120
|
-
></luzmo-progress-circle>`,complete:()=>this._renderDisplaySettings(),error:()=>this._renderDisplaySettings()})}disconnectedCallback(){super.disconnectedCallback?.(),this._loadDisplaySettings.abort?.()}};t.t([(0,a.property)({type:String})],f.prototype,`language`,void 0),t.t([(0,a.property)({type:String,attribute:`content-language`})],f.prototype,`contentLanguage`,void 0),t.t([(0,a.property)({type:Boolean,attribute:`hide-display-settings`})],f.prototype,`hideDisplaySettings`,void 0),t.t([(0,a.property)({type:Boolean})],f.prototype,`isBinningDisabled`,void 0),t.t([(0,a.property)({type:Boolean})],f.prototype,`areDatetimeOptionsEnabled`,void 0),t.t([(0,a.property)({type:Boolean})],f.prototype,`areGrandTotalsEnabled`,void 0),t.t([(0,a.property)({type:Boolean})],f.prototype,`isAggregationDisabled`,void 0),t.t([(0,a.property)({type:Boolean})],f.prototype,`isCumulativeSumEnabled`,void 0),t.t([(0,a.property)({type:String})],f.prototype,`periodOverPeriodUiType`,void 0),t.t([(0,a.property)({type:Boolean,attribute:`show-remove-button`})],f.prototype,`showRemoveButton`,void 0),t.t([(0,a.property)({type:String,attribute:`slot-type`})],f.prototype,`slotType`,void 0),t.t([(0,a.property)({type:Object,attribute:!1})],f.prototype,`slotContent`,void 0),t.t([(0,a.state)()],f.prototype,`_showIds`,void 0),t.t([(0,a.property)({type:Array,reflect:!1})],f.prototype,`measureColumns`,void 0),t.t([(0,a.query)(`luzmo-multi-language-field`)],f.prototype,`_multiLanguageFieldElement`,void 0),t.t([(0,c.consume)({context:u,subscribe:!0})],f.prototype,`_store`,void 0),customElements.get(`luzmo-display-settings`)||customElements.define(`luzmo-display-settings`,f),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return f}});
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
const e=require("./base-kQ6cjcIZ.cjs"),t=require("./decorate-DCJt-2rt.cjs"),n=require("./localized-mixin-CiBWThrZ.cjs"),r=require("./formatter-BeXmurVe.cjs"),i=require("./periods.const-Db0nXrwr.cjs");let a=require("@luzmo/icons"),o=require("lit"),s=require("lit/decorators.js"),c=require("@lit/localize");require("@luzmo/lucero/icon"),require("@luzmo/lucero/action-button");let l=require("@lit/task");require("@luzmo/lucero/field-label"),require("@luzmo/lucero/progress-circle"),require("@luzmo/lucero/number-field"),require("@luzmo/lucero/action-group"),require("@luzmo/lucero/picker");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
|
-
${e.i18n()}
|
|
22
|
-
</luzmo-menu-item>`);return o.html`<div class="setting">
|
|
23
|
-
<luzmo-field-label for="display-as"
|
|
24
|
-
>${(0,c.msg)(`Display`,{desc:`Label for display setting`})}</luzmo-field-label
|
|
25
|
-
>
|
|
26
|
-
<luzmo-picker
|
|
27
|
-
id="display-as"
|
|
28
|
-
size=${this.size}
|
|
29
|
-
variant="highlight"
|
|
30
|
-
value=${this._displayAs??`default`}
|
|
31
|
-
@change=${this._setDisplayAs}
|
|
32
|
-
>
|
|
33
|
-
${e}
|
|
34
|
-
</luzmo-picker>
|
|
35
|
-
</div>`}_renderWeekDayAndMonthNameFormatSettings(){let e=Object.keys(i.r).map(e=>o.html`<luzmo-action-button value=${e}>
|
|
36
|
-
${i.r[e]()}
|
|
37
|
-
</luzmo-action-button>`);return o.html` <div class="setting">
|
|
38
|
-
<luzmo-field-label for="weekday-and-month-in-year-format"
|
|
39
|
-
>${(0,c.msg)(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
|
|
40
|
-
>
|
|
41
|
-
<luzmo-action-group
|
|
42
|
-
emphasized
|
|
43
|
-
id="weekday-and-month-in-year-format"
|
|
44
|
-
size=${this.size}
|
|
45
|
-
compact
|
|
46
|
-
.selected=${[this._weekDayAndMonthInYearFormat??`short`]}
|
|
47
|
-
selects="single"
|
|
48
|
-
@change=${this._setWeekdayAndMonthInYearFormat}
|
|
49
|
-
>
|
|
50
|
-
${e}
|
|
51
|
-
</luzmo-action-group>
|
|
52
|
-
</div>`}_renderMonthNameFormatSettings(){return o.html` <div class="setting">
|
|
53
|
-
<luzmo-field-label for="month-name-format"
|
|
54
|
-
>${(0,c.msg)(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
|
|
55
|
-
>
|
|
56
|
-
<luzmo-action-group
|
|
57
|
-
emphasized
|
|
58
|
-
id="month-name-format"
|
|
59
|
-
size=${this.size}
|
|
60
|
-
compact
|
|
61
|
-
.selected=${[this._monthNameFormat??`long`]}
|
|
62
|
-
selects="single"
|
|
63
|
-
@change=${this._setMonthNameFormat}
|
|
64
|
-
>
|
|
65
|
-
<luzmo-action-button value="short">
|
|
66
|
-
${(0,c.msg)(`Short`,{desc:`Short format option`})}
|
|
67
|
-
</luzmo-action-button>
|
|
68
|
-
<luzmo-action-button value="long">
|
|
69
|
-
${(0,c.msg)(`Long`,{desc:`Long format option`})}
|
|
70
|
-
</luzmo-action-button>
|
|
71
|
-
</luzmo-action-group>
|
|
72
|
-
</div>`}_renderWeekFormatSettings(){let e=this._localeFormats?.smartDateFormats??r.r,t=e.find(e=>e.mmdd===!0&&e.separator===this._dateSeparator&&e.monthType===`number`),n=e.find(e=>e.mmdd===!1&&e.separator===this._dateSeparator&&e.monthType===`number`);return o.html` <div class="setting">
|
|
73
|
-
<luzmo-field-label for="week-format"
|
|
74
|
-
>${(0,c.msg)(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
|
|
75
|
-
>
|
|
76
|
-
<luzmo-action-group
|
|
77
|
-
emphasized
|
|
78
|
-
id="week-format"
|
|
79
|
-
size=${this.size}
|
|
80
|
-
compact
|
|
81
|
-
.selected=${[this._weekFormat??`ddmm`]}
|
|
82
|
-
selects="single"
|
|
83
|
-
@change=${this._setWeekFormat}
|
|
84
|
-
>
|
|
85
|
-
<luzmo-action-button value="ddmm">
|
|
86
|
-
${r.t({...this._currentSlotContent,type:`datetime`,format:n?.key},{localFormats:this._localeFormats,level:this._dateLevel})(new Date)}
|
|
87
|
-
</luzmo-action-button>
|
|
88
|
-
<luzmo-action-button value="mmdd"
|
|
89
|
-
>${r.t({...this._currentSlotContent,type:`datetime`,format:t?.key},{localFormats:this._localeFormats,level:this._dateLevel})(new Date)}</luzmo-action-button
|
|
90
|
-
>
|
|
91
|
-
</luzmo-action-group>
|
|
92
|
-
</div>`}_renderWeekStartsOnSettings(){let e=Object.keys(i.i).map(e=>o.html`<luzmo-menu-item value=${e}>
|
|
93
|
-
${i.i[e]()}
|
|
94
|
-
</luzmo-menu-item>`);return o.html`<div class="setting">
|
|
95
|
-
<luzmo-field-label for="week-start"
|
|
96
|
-
>${(0,c.msg)(`Week starts on`,{desc:`Label for week start setting`})}</luzmo-field-label
|
|
97
|
-
>
|
|
98
|
-
<luzmo-picker
|
|
99
|
-
id="week-start"
|
|
100
|
-
size=${this.size}
|
|
101
|
-
variant="highlight"
|
|
102
|
-
value=${this._weekStart??`Auto`}
|
|
103
|
-
@change=${this._setWeekStartsOn}
|
|
104
|
-
>
|
|
105
|
-
${e}
|
|
106
|
-
</luzmo-picker>
|
|
107
|
-
</div>`}_renderMonthNameSettings(){return o.html`<div class="settings-">
|
|
108
|
-
<luzmo-field-label for="month-name"
|
|
109
|
-
>${(0,c.msg)(`Month`,{desc:`Time unit`})}</luzmo-field-label
|
|
110
|
-
>
|
|
111
|
-
<luzmo-action-button
|
|
112
|
-
id="month-name"
|
|
113
|
-
emphasized
|
|
114
|
-
toggles
|
|
115
|
-
.size=${this.size}
|
|
116
|
-
?selected=${this._monthName}
|
|
117
|
-
@change=${this._setMonthName}
|
|
118
|
-
>
|
|
119
|
-
<luzmo-icon
|
|
120
|
-
slot="icon"
|
|
121
|
-
.size=${this.size}
|
|
122
|
-
.icon=${this._monthName?a.luzmoCheckboxChecked:a.luzmoCheckbox}
|
|
123
|
-
></luzmo-icon>
|
|
124
|
-
${(0,c.msg)(`Name`)}
|
|
125
|
-
</luzmo-action-button>
|
|
126
|
-
</div>`}_renderDateFormatSettings(){let e=this._dateSeparator===`~`?`/`:this._dateSeparator;return o.html`<div class="setting">
|
|
127
|
-
<luzmo-field-label for="date-format"
|
|
128
|
-
>${(0,c.msg)(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
|
|
129
|
-
>
|
|
130
|
-
<luzmo-picker
|
|
131
|
-
id="date-format"
|
|
132
|
-
size=${this.size}
|
|
133
|
-
variant="highlight"
|
|
134
|
-
value=${this._dateFormat??`Auto`}
|
|
135
|
-
@change=${this._setDateFormat}
|
|
136
|
-
>
|
|
137
|
-
<luzmo-menu-item value="auto">
|
|
138
|
-
${(0,c.msg)(`Auto`,{desc:`Automatic setting of the option`})}
|
|
139
|
-
</luzmo-menu-item>
|
|
140
|
-
<luzmo-menu-item value="mmdd">12${e}31</luzmo-menu-item>
|
|
141
|
-
<luzmo-menu-item value="ddmm">31${e}12</luzmo-menu-item>
|
|
142
|
-
</luzmo-picker>
|
|
143
|
-
</div>`}_renderSeparatorSettings(){let e=Object.keys(u).map(e=>o.html`<luzmo-menu-item value=${e}>
|
|
144
|
-
${u[e]()}
|
|
145
|
-
</luzmo-menu-item>`);return o.html`<div class="setting">
|
|
146
|
-
<luzmo-field-label for="date-separator"
|
|
147
|
-
>${(0,c.msg)(`Separator`,{desc:`Label for date separator setting`})}</luzmo-field-label
|
|
148
|
-
>
|
|
149
|
-
<luzmo-picker
|
|
150
|
-
id="date-separator"
|
|
151
|
-
size=${this.size}
|
|
152
|
-
variant="highlight"
|
|
153
|
-
value=${this._dateSeparator??`~`}
|
|
154
|
-
@change=${this._setDateSeparator}
|
|
155
|
-
>
|
|
156
|
-
${e}
|
|
157
|
-
</luzmo-picker>
|
|
158
|
-
</div>`}_render24hFormatSettings(){return o.html`<div class="settings-">
|
|
159
|
-
<luzmo-field-label for="format-24h"
|
|
160
|
-
>${(0,c.msg)(`24h`,{desc:`Label for 24h format setting`})}</luzmo-field-label
|
|
161
|
-
>
|
|
162
|
-
<luzmo-action-button
|
|
163
|
-
id="format-24h"
|
|
164
|
-
emphasized
|
|
165
|
-
toggles
|
|
166
|
-
.size=${this.size}
|
|
167
|
-
.label=${(0,c.msg)(`Show`)}
|
|
168
|
-
?selected=${this._24hFormat}
|
|
169
|
-
@change=${this._set24hFormat}
|
|
170
|
-
>
|
|
171
|
-
<luzmo-icon
|
|
172
|
-
slot="icon"
|
|
173
|
-
.size=${this.size}
|
|
174
|
-
.icon=${this._24hFormat?a.luzmoCheckboxChecked:a.luzmoCheckbox}
|
|
175
|
-
></luzmo-icon>
|
|
176
|
-
</luzmo-action-button>
|
|
177
|
-
</div>`}_renderWeekdaySettings(){return o.html`<div class="settings-">
|
|
178
|
-
<luzmo-field-label for="weekday"
|
|
179
|
-
>${(0,c.msg)(`Weekday`,{desc:`Label for weekday setting`})}</luzmo-field-label
|
|
180
|
-
>
|
|
181
|
-
<luzmo-action-button
|
|
182
|
-
id="weekday"
|
|
183
|
-
emphasized
|
|
184
|
-
toggles
|
|
185
|
-
.size=${this.size}
|
|
186
|
-
?selected=${this._weekDay}
|
|
187
|
-
@change=${this._setWeekday}
|
|
188
|
-
>
|
|
189
|
-
<luzmo-icon
|
|
190
|
-
slot="icon"
|
|
191
|
-
.size=${this.size}
|
|
192
|
-
.icon=${this._weekDay?a.luzmoCheckboxChecked:a.luzmoCheckbox}
|
|
193
|
-
></luzmo-icon>
|
|
194
|
-
${(0,c.msg)(`Show`)}
|
|
195
|
-
</luzmo-action-button>
|
|
196
|
-
</div>`}_renderAllSettings(){return o.html`<div class="settings-container">
|
|
197
|
-
${this._dateLevel&&![1,9].includes(this._dateLevel)?o.html` <div class="settings-row">
|
|
198
|
-
${this._renderDisplaySettings()}
|
|
199
|
-
${this._dateLevel&&this._dateLevel>=5&&this._displayAs===`day_in_week`?this._renderWeekStartsOnSettings():``}
|
|
200
|
-
</div>`:``}
|
|
201
|
-
${[`month_in_year`,`day_in_week`].includes(this._displayAs??``)?o.html` <div class="settings-row">
|
|
202
|
-
${this._renderWeekDayAndMonthNameFormatSettings()}
|
|
203
|
-
</div>`:``}
|
|
204
|
-
${this._dateLevel&&this._dateLevel>1&&this._displayAs==="default"?o.html` <div class="settings-row">
|
|
205
|
-
${this._dateLevel&&this._dateLevel!==4&&this._dateLevel!==2?this._renderMonthNameSettings():``}
|
|
206
|
-
${this._dateLevel&&this._dateLevel!==4&&this._dateLevel>2&&this._monthName?this._renderMonthNameFormatSettings():``}
|
|
207
|
-
${this._dateLevel&&this._dateLevel===4&&!this._monthName?this._renderWeekFormatSettings():``}
|
|
208
|
-
${this._dateLevel&&this._dateLevel>=5&&!this._monthName?this._renderDateFormatSettings():``}
|
|
209
|
-
${this._dateLevel&&this._dateLevel>1&&!this._monthName?this._renderSeparatorSettings():``}
|
|
210
|
-
${this._dateLevel&&this._dateLevel>=5&&this._monthName?this._renderWeekdaySettings():``}
|
|
211
|
-
${this._dateLevel&&this._dateLevel>5?this._render24hFormatSettings():``}
|
|
212
|
-
</div>`:``}
|
|
213
|
-
</div>`}render(){return this._loadLocaleFormatsConfig.render({pending:()=>o.html`<luzmo-progress-circle
|
|
214
|
-
indeterminate
|
|
215
|
-
.label=${(0,c.msg)(`Loading`,{desc:`Loading spinner label`})}
|
|
216
|
-
.size=${this.size}
|
|
217
|
-
></luzmo-progress-circle>`,complete:()=>this._renderAllSettings(),error:()=>this._renderAllSettings()})}};t.t([(0,s.property)({type:String})],f.prototype,`contentLanguage`,void 0),t.t([(0,s.property)({type:String})],f.prototype,`size`,void 0),t.t([(0,s.property)({type:Object,reflect:!1})],f.prototype,`slotContent`,void 0),t.t([(0,s.query)(`#display-as`)],f.prototype,`_displayAsElement`,void 0),t.t([(0,s.query)(`#week-start`)],f.prototype,`_weekStartElement`,void 0),t.t([(0,s.query)(`#weekday-and-month-in-year-format`)],f.prototype,`_weekDayAndMonthInYearFormatElement`,void 0),t.t([(0,s.query)(`#month-name-format`)],f.prototype,`_monthNameFormatElement`,void 0),t.t([(0,s.query)(`#month-name`)],f.prototype,`_monthNameElement`,void 0),t.t([(0,s.query)(`#week-format`)],f.prototype,`_weekFormatElement`,void 0),t.t([(0,s.query)(`#date-format`)],f.prototype,`_dateFormatElement`,void 0),t.t([(0,s.query)(`#date-separator`)],f.prototype,`_dateSeparatorElement`,void 0),t.t([(0,s.query)(`#weekday`)],f.prototype,`_weekDayElement`,void 0),t.t([(0,s.query)(`#format-24h`)],f.prototype,`_format24hElement`,void 0),f=t.t([(0,c.localized)()],f),customElements.get(`luzmo-display-settings-datetime`)||customElements.define(`luzmo-display-settings-datetime`,f),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return f}});
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2026 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
const e=require("./decorate-DCJt-2rt.cjs"),t=require("./calculate-data-field-icon-DenGmW74.cjs"),n=require("./localize-D3i4Epy_.cjs"),r=require("./formula-display-store-DFAvw21p.cjs"),i=require("./groupings-dIFi0bJY.cjs"),a=require("./resolve-column-presentation-DUETRVCH.cjs");let o=require("@luzmo/icons"),s=require("lit"),c=require("lit/decorators.js"),l=require("@lit/localize");require("@luzmo/lucero/icon"),require("@luzmo/lucero/progress-circle");var u=`:host{box-sizing:border-box;font-family:var(--luzmo-font-family);color:var(--luzmo-font-color);display:inline-block}.formula-text{font-size:var(--luzmo-formula-font-size,var(--luzmo-font-size));white-space:pre-wrap;word-break:break-word;line-height:1.5}.formula-text-column{white-space:nowrap}.formula-text-column-icon{margin-inline-end:var(--luzmo-spacing-1)}.formula-pills{align-items:center;gap:var(--luzmo-spacing-1) 0;font-size:var(--luzmo-formula-font-size,var(--luzmo-font-size));flex-wrap:wrap;line-height:1.5;display:inline-flex}.formula-operator{white-space:pre-wrap}.column-pill-wrapper{vertical-align:middle;padding-inline-end:var(--luzmo-formula-column-pill-trailing-space,var(--luzmo-spacing-1));display:inline-flex}.column-pill{justify-content:center;align-items:center;gap:var(--luzmo-spacing-2);box-sizing:border-box;max-width:16rem;min-height:var(--luzmo-formula-control-height,1.375rem);padding:0 var(--luzmo-formula-column-pill-padding-inline,calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1)));border-radius:var(--luzmo-border-radius-s);background-color:var(--luzmo-formula-column-pill-background,var(--luzmo-background-color-highlight));color:var(--luzmo-font-color);white-space:nowrap;font-size:.85em;line-height:1.2;display:inline-flex}.column-pill-icon{flex:none;display:inline-flex}.column-pill-label{text-overflow:ellipsis;overflow:hidden}.column-pill-loading{--luzmo-progress-circle-size:1em;align-items:center;display:inline-flex}.agg-pill{padding-block:var(--luzmo-spacing-1);border-radius:var(--luzmo-border-radius);background-color:var(--agg-accent,var(--luzmo-primary));color:var(--luzmo-primary-inverse-color);font-size:var(--luzmo-formula-font-size,var(--luzmo-font-size));vertical-align:middle;padding-inline:0;display:inline-flex}.agg-pill-row{align-items:center;gap:var(--luzmo-spacing-1);min-height:var(--luzmo-formula-control-height,1.375rem);display:inline-flex}.agg-fn{text-transform:uppercase;padding-inline-start:var(--luzmo-spacing-3);padding-inline-end:var(--luzmo-spacing-3);font-size:.85em}.agg-value{min-height:var(--luzmo-formula-control-height,1.375rem);padding:0 var(--luzmo-spacing-2);border-radius:var(--luzmo-border-radius-s);background-color:var(--luzmo-background-color);color:var(--luzmo-font-color);--luzmo-formula-column-pill-background:transparent;--luzmo-formula-column-pill-padding-inline:0px;align-items:center;line-height:1;display:inline-flex}.agg-grouping{align-items:center;gap:var(--luzmo-spacing-1);padding-inline:var(--luzmo-spacing-2) var(--luzmo-spacing-3);font-size:var(--luzmo-formula-grouping-icon-size,var(--luzmo-icon-size-m));display:inline-flex}.agg-grouping--no-value{padding-inline-start:0}.agg-grouping-count{border-radius:var(--luzmo-border-radius-full,999rem);background:var(--luzmo-primary-inverse-color);min-width:1.25em;color:var(--agg-accent,var(--luzmo-primary));font-size:.6875rem;font-weight:var(--luzmo-font-weight-bold);justify-content:center;align-items:center;padding:0 .25em;line-height:1.4;display:inline-flex}:host{--luzmo-formula-font-size:var(--luzmo-font-size);--luzmo-formula-grouping-icon-size:var(--luzmo-icon-size-m);--luzmo-formula-control-height:calc(var(--luzmo-component-height) - 2 * var(--luzmo-spacing-1))}:host([size=s]){--luzmo-formula-font-size:var(--luzmo-font-size-s);--luzmo-formula-grouping-icon-size:var(--luzmo-icon-size-s);--luzmo-formula-control-height:calc(var(--luzmo-component-height-s) - 2 * var(--luzmo-spacing-1))}:host([size=l]){--luzmo-formula-font-size:var(--luzmo-font-size-l);--luzmo-formula-grouping-icon-size:var(--luzmo-icon-size-l);--luzmo-formula-control-height:calc(var(--luzmo-component-height-l) - 2 * var(--luzmo-spacing-1))}:host([size=xl]){--luzmo-formula-font-size:var(--luzmo-font-size-xl);--luzmo-formula-grouping-icon-size:var(--luzmo-icon-size-xl);--luzmo-formula-control-height:calc(var(--luzmo-component-height-xl) - 2 * var(--luzmo-spacing-1))}`,d=class extends r.o{constructor(...e){super(...e),this.display=`rich`,this._groupingDataMap=i.n()}static{this.styles=(0,s.unsafeCSS)(u)}_createStore(){return new r.t}_shouldLoadInput(){return!1}_canEmitExpression(){return!1}_applyExternalExpression(){if(this.display===`text`){this._rootContent=``;return}this._store.clearWidgets(),this._rootContent=this._store.transformToAggregationWidgetSyntax(this.expression??``)}willUpdate(e){super.willUpdate(e),e.has(`display`)&&!e.has(`expression`)&&this._applyExternalExpression()}render(){return this.display===`text`?this._renderTextFormula():this._renderPillFormula()}_renderPillFormula(){return s.html`<span class="formula-pills" part="formula">${this._renderPillNodes(this._rootContent)}</span>`}_renderPillNodes(e){let t=[],n=new RegExp(r.h.source,`gm`),i=0,a;for(;(a=n.exec(e))!==null;){a.index>i&&t.push(this._renderOperatorText(e.slice(i,a.index)));let r=a[2],o=a[3];r?t.push(this._renderColumnPill(r)):o&&t.push(this._renderAggregationPill(o)),i=n.lastIndex}return i<e.length&&t.push(this._renderOperatorText(e.slice(i))),t}_renderOperatorText(e){return s.html`<span class="formula-operator">${e}</span>`}_renderColumnPill(e){let[t,n]=e.split(`:`),r=this._datasets.find(e=>e.id===t)?.columns.find(e=>e.columnId===n);if(this._store.loading&&!r){let e=(0,l.msg)(`Loading column`,{desc:`Accessible label for a column pill whose label is still loading`});return s.html`<span class="column-pill-wrapper"
|
|
21
|
-
><span class="column-pill" title=${e}
|
|
22
|
-
><span class="column-pill-loading">
|
|
23
|
-
<luzmo-progress-circle indeterminate size="s" .label=${e}></luzmo-progress-circle></span
|
|
24
|
-
></span
|
|
25
|
-
></span>`}let{icon:i,label:c}=a.t(r,this.contentLanguage,n);return s.html`<span class="column-pill-wrapper"
|
|
26
|
-
><span class="column-pill" title=${c}
|
|
27
|
-
><span class="column-pill-icon">${(0,o.luzmoIcon)(i)}</span
|
|
28
|
-
><span class="column-pill-label">${c}</span></span
|
|
29
|
-
></span>`}_renderAggregationPill(e){let t=this._store.getWidget(e);if(!t)return s.html`${s.nothing}`;let n=this._groupingDataMap[t.grouping],i=n?.color??``,a=this._store.aggregationFunctionDataMap[t.aggregationFunction]?.arity??0,c=n?.label()??``,l=t.grouping===r.g.GROUPINEX?(t.includedColumns?.length??0)+(t.excludedColumns?.length??0):0;return s.html`<span class="agg-pill" style=${i?`--agg-accent: ${i}`:``}>
|
|
30
|
-
<span class="agg-pill-row">
|
|
31
|
-
<span class="agg-fn">${t.aggregationFunction}</span>
|
|
32
|
-
${a>0?s.html`<span class="agg-value">${this._renderPillNodes(t.content)}</span>`:s.nothing}
|
|
33
|
-
<span
|
|
34
|
-
class="agg-grouping${a>0?``:` agg-grouping--no-value`}"
|
|
35
|
-
title=${c}
|
|
36
|
-
aria-label=${c}
|
|
37
|
-
>
|
|
38
|
-
${n?.icon?(0,o.luzmoIcon)(n.icon):s.nothing}
|
|
39
|
-
${l>0?s.html`<span class="agg-grouping-count">${l}</span>`:s.nothing}
|
|
40
|
-
</span>
|
|
41
|
-
</span>
|
|
42
|
-
</span>`}_renderTextFormula(){let e=this.expression??``,t=[],n=new RegExp(r.f.source,`g`),i=0,a;for(;(a=n.exec(e))!==null;){a.index>i&&t.push(e.slice(i,a.index));let[r,o]=a[1].split(`:`);t.push(this._renderColumnReference(r,o)),i=n.lastIndex}return i<e.length&&t.push(e.slice(i)),s.html`<span class="formula-text" part="formula-text">${t}</span>`}_renderColumnReference(e,r){let i=this._datasets.find(t=>t.id===e),a=i?.columns.find(e=>e.columnId===r),c=a?n.t(a.name,this.contentLanguage):r,l=i?n.t(i.name,this.contentLanguage):``;return s.html`<span class="formula-text-column" part="formula-text-column" title=${l?`${l} · ${c}`:c}>
|
|
43
|
-
<span class="formula-text-column-icon">${(0,o.luzmoIcon)(t.t({type:a?.type??`hierarchy`},`s`))}</span>
|
|
44
|
-
<span class="formula-text-column-name">${c}</span>
|
|
45
|
-
</span>`}};e.t([(0,c.property)({type:String,reflect:!0})],d.prototype,`display`,void 0),d=e.t([(0,l.localized)()],d),customElements.get(`luzmo-formula`)||customElements.define(`luzmo-formula`,d),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return d}});
|