@luzmo/analytics-components-kit 1.0.9-beta.6 → 1.0.9-beta.8
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/LICENSE +18 -18
- package/README.md +1 -1
- package/components/ad-hoc-slot-content-BwcFfXCV.cjs +18 -18
- package/components/ad-hoc-slot-content-hSlT62VS.js +18 -18
- package/components/ai-chat/ai-chat.d.ts +11 -2
- package/components/ai-chat/empty-state/ai-chat-empty-state.d.ts +8 -1
- package/components/ai-chat/helpers/elicitation-template.d.ts +3 -1
- package/components/ai-chat/index.cjs +19 -19
- package/components/ai-chat/index.js +20 -20
- package/components/{ai-chat-DEVIxsRP.cjs → ai-chat-DA6ago8N.cjs} +42 -40
- package/components/{ai-chat-CVxHPPvM.js → ai-chat-kH4xkt7a.js} +764 -742
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +8 -1
- package/components/ai-interaction-textarea/index.cjs +19 -19
- package/components/ai-interaction-textarea/index.js +19 -19
- package/components/{ai-interaction-textarea-i9SabsmQ.js → ai-interaction-textarea-Bths0__L.js} +144 -136
- package/components/{ai-interaction-textarea-D_Lw29_i.cjs → ai-interaction-textarea-D1nK3sjL.cjs} +34 -32
- package/components/area-chart-options.config-Bf5kti7Z.cjs +18 -18
- package/components/area-chart-options.config-DJnPr93H.js +18 -18
- package/components/area-chart-options.de-_tPBzxvf.cjs +18 -18
- package/components/area-chart-options.de-pUCTG-s0.js +18 -18
- package/components/area-chart-options.en-AuSHs27k.cjs +18 -18
- package/components/area-chart-options.en-YNsUeMwN.js +18 -18
- package/components/area-chart-options.es-2styw_Fz.js +18 -18
- package/components/area-chart-options.es-BzRHGbo6.cjs +18 -18
- package/components/area-chart-options.fr--WzQVf2z.js +18 -18
- package/components/area-chart-options.fr-DYxUQE3x.cjs +18 -18
- package/components/area-chart-options.nl-BTEIqBtE.js +18 -18
- package/components/area-chart-options.nl-M0xQQ_la.cjs +18 -18
- package/components/area-chart-positioning.config-B8xSL1XU.cjs +18 -18
- package/components/area-chart-positioning.config-C0_dxknc.js +18 -18
- package/components/area-chart-slots.config-BOhwdLnr.cjs +18 -18
- package/components/area-chart-slots.config-ClE-gYVY.js +18 -18
- package/components/axis-options.config-BCP0Z8VI.js +18 -18
- package/components/axis-options.config-s-Js3ug-.cjs +18 -18
- package/components/axis-options.i18n-BOGRmWjp.js +18 -18
- package/components/axis-options.i18n-Cw-DmewV.cjs +18 -18
- package/components/bar-chart-options.config-CI17HU2I.cjs +18 -18
- package/components/bar-chart-options.config-D1x5WPbL.js +18 -18
- package/components/bar-chart-options.de-3qSh2TNr.js +18 -18
- package/components/bar-chart-options.de-545XMRGl.cjs +18 -18
- package/components/bar-chart-options.en-DAee9yHp.cjs +18 -18
- package/components/bar-chart-options.en-DrhQe9rV.js +18 -18
- package/components/bar-chart-options.es-BZ1yNzUQ.js +18 -18
- package/components/bar-chart-options.es-CfoAEZ-0.cjs +18 -18
- package/components/bar-chart-options.fr-5i13R8bs.js +18 -18
- package/components/bar-chart-options.fr-C2Ic0Dq0.cjs +18 -18
- package/components/bar-chart-options.nl-Bb6XiSDH.cjs +18 -18
- package/components/bar-chart-options.nl-DLj-qucU.js +18 -18
- package/components/bar-chart-positioning.config-B4fazkYv.js +18 -18
- package/components/bar-chart-positioning.config-B6A5m0ZR.cjs +18 -18
- package/components/bar-chart-slots.config-DMWjAd5a.cjs +18 -18
- package/components/bar-chart-slots.config-rMFwFprg.js +18 -18
- package/components/base-BRTs2KqJ.js +18 -18
- package/components/base-BWU343D_.cjs +18 -18
- package/components/base-store-BhGpnbqi.js +18 -18
- package/components/base-store-D5cDq6d4.cjs +18 -18
- package/components/bliss-CK3rEnFv.js +18 -18
- package/components/bliss-Cggxb-YF.cjs +18 -18
- package/components/box-plot-options.config-CooBIc6N.js +18 -18
- package/components/box-plot-options.config-Cp6H9fyb.cjs +18 -18
- package/components/box-plot-options.de-BkgscmvG.js +18 -18
- package/components/box-plot-options.de-alI5_N9d.cjs +18 -18
- package/components/box-plot-options.en-5kGlvxx8.js +18 -18
- package/components/box-plot-options.en-DUlXF9r9.cjs +18 -18
- package/components/box-plot-options.es-CIm06Gpk.cjs +18 -18
- package/components/box-plot-options.es-v_B9Xb9H.js +18 -18
- package/components/box-plot-options.fr-C5j-Dzj6.cjs +18 -18
- package/components/box-plot-options.fr-CRSOCgU5.js +18 -18
- package/components/box-plot-options.nl-DtnBbRo5.cjs +18 -18
- package/components/box-plot-options.nl-ZQjVZPau.js +18 -18
- package/components/box-plot-positioning.config-BI9F_JjL.js +18 -18
- package/components/box-plot-positioning.config-DVXXjP8U.cjs +18 -18
- package/components/box-plot-slots.config-5B_pTjPJ.cjs +18 -18
- package/components/box-plot-slots.config-DS2UIfRF.js +18 -18
- package/components/bubble-chart-options.config-B6aLA_1d.js +18 -18
- package/components/bubble-chart-options.config-e_0LM1Uw.cjs +18 -18
- package/components/bubble-chart-options.de-D-ylbLIk.cjs +18 -18
- package/components/bubble-chart-options.de-Q2nhAQfu.js +18 -18
- package/components/bubble-chart-options.en-DedkSXEc.js +18 -18
- package/components/bubble-chart-options.en-YjokcFur.cjs +18 -18
- package/components/bubble-chart-options.es-B7bZFlIa.js +18 -18
- package/components/bubble-chart-options.es-BiM9exvv.cjs +18 -18
- package/components/bubble-chart-options.fr-CB4rhJRR.cjs +18 -18
- package/components/bubble-chart-options.fr-Cz9T05xx.js +18 -18
- package/components/bubble-chart-options.nl-BeiE-TWG.js +18 -18
- package/components/bubble-chart-options.nl-tG0U8b3q.cjs +18 -18
- package/components/bubble-chart-positioning.config-C0tGI4fC.cjs +18 -18
- package/components/bubble-chart-positioning.config-DXhama4z.js +18 -18
- package/components/bubble-chart-slots.config-2qy2RqaU.js +18 -18
- package/components/bubble-chart-slots.config-VHKuntJk.cjs +18 -18
- package/components/bullet-chart-options.config-CBmbmhzI.js +18 -18
- package/components/bullet-chart-options.config-Drv0yQ4x.cjs +18 -18
- package/components/bullet-chart-options.de-DHqxFlm7.js +18 -18
- package/components/bullet-chart-options.de-DQhoZIdV.cjs +18 -18
- package/components/bullet-chart-options.en-6vj0tO4B.js +18 -18
- package/components/bullet-chart-options.en-CTpxw73t.cjs +18 -18
- package/components/bullet-chart-options.es-Cc4GzyJG.cjs +18 -18
- package/components/bullet-chart-options.es-DeDFLO8Z.js +18 -18
- package/components/bullet-chart-options.fr-750sl4sT.js +18 -18
- package/components/bullet-chart-options.fr-D2Z5WBfJ.cjs +18 -18
- package/components/bullet-chart-options.nl-B7tw2hO6.cjs +18 -18
- package/components/bullet-chart-options.nl-CS-xSSVr.js +18 -18
- package/components/bullet-chart-positioning.config-Czlw32Ii.js +18 -18
- package/components/bullet-chart-positioning.config-Dmb_yizO.cjs +18 -18
- package/components/bullet-chart-slots.config-BaMmwIH0.js +18 -18
- package/components/bullet-chart-slots.config-CZfTgKZ4.cjs +18 -18
- package/components/calculate-data-field-icon-DenGmW74.cjs +18 -18
- package/components/calculate-data-field-icon-DrSg1PuD.js +18 -18
- package/components/choropleth-map-options.config-DWWydGJ3.js +18 -18
- package/components/choropleth-map-options.config-VG10yjwC.cjs +18 -18
- package/components/choropleth-map-options.de-DXLufNgZ.js +18 -18
- package/components/choropleth-map-options.de-GB7-eHSP.cjs +18 -18
- package/components/choropleth-map-options.en-CT3LM0TX.cjs +18 -18
- package/components/choropleth-map-options.en-DGENug11.js +18 -18
- package/components/choropleth-map-options.es-D13n2Wh1.cjs +18 -18
- package/components/choropleth-map-options.es-Dn2Cv5D-.js +18 -18
- package/components/choropleth-map-options.fr-CK0tUEO3.js +18 -18
- package/components/choropleth-map-options.fr-CqIpVZuN.cjs +18 -18
- package/components/choropleth-map-options.nl-CwA4TtvT.js +18 -18
- package/components/choropleth-map-options.nl-YqFPhBJJ.cjs +18 -18
- package/components/choropleth-map-positioning.config-BWJmEGy6.js +18 -18
- package/components/choropleth-map-positioning.config-JIj9p6-n.cjs +18 -18
- package/components/choropleth-map-slots.config-CZKWF1qV.cjs +18 -18
- package/components/choropleth-map-slots.config-DqOi1kCn.js +18 -18
- package/components/circle-pack-chart-options.config-BmX0w3cH.cjs +18 -18
- package/components/circle-pack-chart-options.config-D2RCikyA.js +18 -18
- package/components/circle-pack-chart-options.de-BrrPqSBf.js +18 -18
- package/components/circle-pack-chart-options.de-Dlg-Dtyq.cjs +18 -18
- package/components/circle-pack-chart-options.en-ARMcjtyu.cjs +18 -18
- package/components/circle-pack-chart-options.en-BdoNRanZ.js +18 -18
- package/components/circle-pack-chart-options.es-CHFiuQ-k.cjs +18 -18
- package/components/circle-pack-chart-options.es-DLQWaD31.js +18 -18
- package/components/circle-pack-chart-options.fr-B66YY6lg.js +18 -18
- package/components/circle-pack-chart-options.fr-CxDnnCxR.cjs +18 -18
- package/components/circle-pack-chart-options.nl-Dp-iaTw6.cjs +18 -18
- package/components/circle-pack-chart-options.nl-kOeRMk4n.js +18 -18
- package/components/circle-pack-chart-positioning.config-D3Ogj0P9.cjs +18 -18
- package/components/circle-pack-chart-positioning.config-PhYH_yh8.js +18 -18
- package/components/circle-pack-chart-slots.config-B7_1p86m.js +18 -18
- package/components/circle-pack-chart-slots.config-GL7T5_o4.cjs +18 -18
- package/components/circular-gauge-options.config-CSIUw2VN.cjs +18 -18
- package/components/circular-gauge-options.config-syWQJHKT.js +18 -18
- package/components/circular-gauge-options.de-CXNpTJ5Q.cjs +18 -18
- package/components/circular-gauge-options.de-D1DVq08k.js +18 -18
- package/components/circular-gauge-options.en-Cbvt0Mn4.cjs +18 -18
- package/components/circular-gauge-options.en-CsH_VhDL.js +18 -18
- package/components/circular-gauge-options.es-BkiRMNis.js +18 -18
- package/components/circular-gauge-options.es-CHmDAZjB.cjs +18 -18
- package/components/circular-gauge-options.fr-C4mL6X8Z.cjs +18 -18
- package/components/circular-gauge-options.fr-CxySNula.js +18 -18
- package/components/circular-gauge-options.nl-B27G1yLw.cjs +18 -18
- package/components/circular-gauge-options.nl-CcQpr_DM.js +18 -18
- package/components/circular-gauge-positioning.config-COSdEO1U.js +18 -18
- package/components/circular-gauge-positioning.config-DxfZmoEP.cjs +18 -18
- package/components/circular-gauge-slots.config-BxjCP1ao.js +18 -18
- package/components/circular-gauge-slots.config-DUHabt3G.cjs +18 -18
- package/components/classic-BLOsKyb3.js +18 -18
- package/components/classic-dark-B-bGXFgE.cjs +18 -18
- package/components/classic-dark-Bw01Wzq_.js +18 -18
- package/components/classic-fniwVVvX.cjs +18 -18
- package/components/color-BWnYpOu7.js +18 -18
- package/components/color-Bl8h58rV.cjs +18 -18
- package/components/color-palettes-BFpQSXfW.cjs +18 -18
- package/components/color-palettes-D4z1ONyx.js +18 -18
- package/components/color-range-utils-C3HJJUS1.cjs +18 -18
- package/components/color-range-utils-CiqduHJS.js +18 -18
- package/components/column-chart-options.config-B2LIl9lL.js +18 -18
- package/components/column-chart-options.config-xmSH4NKF.cjs +18 -18
- package/components/column-chart-options.de-BX13JkAO.cjs +18 -18
- package/components/column-chart-options.de-CIYtauiG.js +18 -18
- package/components/column-chart-options.en-BkAsfXYV.js +18 -18
- package/components/column-chart-options.en-DAee9yHp.cjs +18 -18
- package/components/column-chart-options.es-CClMQLE-.cjs +18 -18
- package/components/column-chart-options.es-jWM7TxS7.js +18 -18
- package/components/column-chart-options.fr-BB6301nS.js +18 -18
- package/components/column-chart-options.fr-C2Ic0Dq0.cjs +18 -18
- package/components/column-chart-options.nl-Bb6XiSDH.cjs +18 -18
- package/components/column-chart-options.nl-HUMDgKdl.js +18 -18
- package/components/column-chart-positioning.config-6OVsL5vU.cjs +18 -18
- package/components/column-chart-positioning.config-BRYZk4cF.js +18 -18
- package/components/column-chart-slots.config-CM5aytbj.cjs +18 -18
- package/components/column-chart-slots.config-D6MBTcj4.js +18 -18
- package/components/combination-chart-options.config-0ATFph8S.js +18 -18
- package/components/combination-chart-options.config-IEamJGCp.cjs +18 -18
- package/components/combination-chart-options.de-BiGjuWUS.cjs +18 -18
- package/components/combination-chart-options.de-DVJ9sfLC.js +18 -18
- package/components/combination-chart-options.en-B5piXq82.js +18 -18
- package/components/combination-chart-options.en-e4XMalU0.cjs +18 -18
- package/components/combination-chart-options.es-BmuyyP32.js +18 -18
- package/components/combination-chart-options.es-OXb8nozF.cjs +18 -18
- package/components/combination-chart-options.fr-CIrnpWEu.js +18 -18
- package/components/combination-chart-options.fr-CYzANyZs.cjs +18 -18
- package/components/combination-chart-options.nl-BDJ7t0BY.js +18 -18
- package/components/combination-chart-options.nl-DyAUjvqC.cjs +18 -18
- package/components/combination-chart-positioning.config-4qgeM8BL.cjs +18 -18
- package/components/combination-chart-positioning.config-CTj23r8f.js +18 -18
- package/components/combination-chart-slots.config-BwUOXFCR.cjs +18 -18
- package/components/combination-chart-slots.config-dYT9lz8M.js +18 -18
- package/components/conditional-number-options.config-Bv2xONtI.js +18 -18
- package/components/conditional-number-options.config-ZVtstIjn.cjs +18 -18
- package/components/conditional-number-options.de-2xle1pGz.js +18 -18
- package/components/conditional-number-options.de-B4pb0dOt.cjs +18 -18
- package/components/conditional-number-options.en-JLoF4JZy.js +18 -18
- package/components/conditional-number-options.en-RlShluZP.cjs +18 -18
- package/components/conditional-number-options.es-C_g0UqIh.js +18 -18
- package/components/conditional-number-options.es-D6Thuvvq.cjs +18 -18
- package/components/conditional-number-options.fr-C5cASVba.js +18 -18
- package/components/conditional-number-options.fr-CoObS5Et.cjs +18 -18
- package/components/conditional-number-options.nl-BWXoNc8Z.cjs +18 -18
- package/components/conditional-number-options.nl-DiV3DzXR.js +18 -18
- package/components/conditional-number-positioning.config-BUdWeVNm.js +18 -18
- package/components/conditional-number-positioning.config-Dg67t4VA.cjs +18 -18
- package/components/conditional-number-slots.config-B7maHIaG.cjs +18 -18
- package/components/conditional-number-slots.config-DtYkqtN8.js +18 -18
- package/components/convert-datasets-to-data-fields-B13rl1an.cjs +18 -18
- package/components/convert-datasets-to-data-fields-PmQzeVLG.js +18 -18
- package/components/create-lazy-loader-BO_oTDF5.js +18 -18
- package/components/create-lazy-loader-DYPgQh0L.cjs +18 -18
- package/components/cs-a-HHJy3d.cjs +18 -18
- package/components/cs-wc4Fl7IN.js +18 -18
- package/components/da-BuDewcQL.cjs +18 -18
- package/components/da-Byf4w3lJ.js +18 -18
- package/components/data-broker-B0uUO5er.js +18 -18
- package/components/data-broker-CyMYR6w1.cjs +18 -18
- package/components/data-field/index.cjs +18 -18
- package/components/data-field/index.js +18 -18
- package/components/data-field-CwC5VH16.js +18 -18
- package/components/data-field-DHpgI_wv.cjs +18 -18
- package/components/data-field-level/index.cjs +18 -18
- package/components/data-field-level/index.js +18 -18
- package/components/data-field-level-8-eOBdl6.cjs +18 -18
- package/components/data-field-level-Ben_W9pd.js +18 -18
- package/components/data-field-panel/index.cjs +18 -18
- package/components/data-field-panel/index.js +18 -18
- package/components/data-field-panel-CiuTVMXF.cjs +18 -18
- package/components/data-field-panel-DppKRagT.js +18 -18
- package/components/data-fields-select/index.cjs +18 -18
- package/components/data-fields-select/index.js +18 -18
- package/components/data-fields-select-DjDeBEj-.cjs +18 -18
- package/components/data-fields-select-HwMkrPAn.js +18 -18
- package/components/dataset-icon/index.cjs +18 -18
- package/components/dataset-icon/index.js +18 -18
- package/components/dataset-icon-BEq1MNml.js +18 -18
- package/components/dataset-icon-tec1Xulw.cjs +18 -18
- package/components/dataset-selector-list/index.cjs +18 -18
- package/components/dataset-selector-list/index.js +18 -18
- package/components/dataset-selector-list-BL2uKzCy.cjs +18 -18
- package/components/dataset-selector-list-BWavenTF.js +18 -18
- package/components/dataset-selector-row/dataset-selector-row.d.ts +10 -1
- package/components/dataset-selector-row/index.cjs +19 -19
- package/components/dataset-selector-row/index.js +19 -19
- package/components/dataset-selector-row-CRh_a2TO.cjs +104 -0
- package/components/{dataset-selector-row-C_O6h4Ir.js → dataset-selector-row-CiqZrv0T.js} +113 -97
- package/components/date-comparison-filter-options.config-4yHPEJSU.cjs +18 -18
- package/components/date-comparison-filter-options.config-DgLx-m3L.js +18 -18
- package/components/date-comparison-filter-options.de-BSRz6o0Y.js +18 -18
- package/components/date-comparison-filter-options.de-DJ43Wuh1.cjs +18 -18
- package/components/date-comparison-filter-options.en-BeWcjUc3.cjs +18 -18
- package/components/date-comparison-filter-options.en-DLbsNe_t.js +18 -18
- package/components/date-comparison-filter-options.es-ChO2qlIh.js +18 -18
- package/components/date-comparison-filter-options.es-mBbFqdyP.cjs +18 -18
- package/components/date-comparison-filter-options.fr-CJYSimcC.cjs +18 -18
- package/components/date-comparison-filter-options.fr-D9HKPj4L.js +18 -18
- package/components/date-comparison-filter-options.nl-BOMQo1X3.js +18 -18
- package/components/date-comparison-filter-options.nl-DMCiGzTv.cjs +18 -18
- package/components/date-comparison-filter-positioning.config-DZI9jN5L.cjs +18 -18
- package/components/date-comparison-filter-positioning.config-DokVHoP8.js +18 -18
- package/components/date-comparison-filter-slots.config-BKZ13uzB.js +18 -18
- package/components/date-comparison-filter-slots.config-oABOLs3D.cjs +18 -18
- package/components/date-filter-options.config-Cbiy0QKd.js +18 -18
- package/components/date-filter-options.config-saR_u4w-.cjs +18 -18
- package/components/date-filter-options.de-DVRUmqQh.js +18 -18
- package/components/date-filter-options.de-Do8uE7X4.cjs +18 -18
- package/components/date-filter-options.en-DGay_JgN.cjs +18 -18
- package/components/date-filter-options.en-Df-q6Eqf.js +18 -18
- package/components/date-filter-options.es-dwt_ouf1.cjs +18 -18
- package/components/date-filter-options.es-eclXOdtw.js +18 -18
- package/components/date-filter-options.fr-B6CHuun3.js +18 -18
- package/components/date-filter-options.fr-D-OlAJSs.cjs +18 -18
- package/components/date-filter-options.nl-0pj5_uvF.cjs +18 -18
- package/components/date-filter-options.nl-qgltgj2Q.js +18 -18
- package/components/date-filter-positioning.config-CtEFg3RO.cjs +18 -18
- package/components/date-filter-positioning.config-D8wFL4L9.js +18 -18
- package/components/date-filter-slots.config-Cuzz0RjE.cjs +18 -18
- package/components/date-filter-slots.config-SzWky1y7.js +18 -18
- package/components/de-BLMiWrvE.cjs +18 -18
- package/components/de-BhKtDR6p.js +18 -18
- package/components/de-DXFLsh4N.cjs +18 -18
- package/components/de-OHJ9YCFU.js +18 -18
- package/components/decompose-numeric-format-DGJua3rU.cjs +18 -18
- package/components/decompose-numeric-format-DS0j2wa1.js +18 -18
- package/components/decorate-DCJt-2rt.cjs +18 -18
- package/components/decorate-DyMgX_Uh.js +18 -18
- package/components/default-B35Bj34G.js +18 -18
- package/components/default-B5D3aZAS.cjs +18 -18
- package/components/default-acceptable-data-field-types-DFOFWWnT.js +18 -18
- package/components/default-acceptable-data-field-types-fPsz64ka.cjs +18 -18
- package/components/default-dark-BOvJQVaq.cjs +18 -18
- package/components/default-dark-CRMTsWZ1.js +18 -18
- package/components/display-settings/index.cjs +18 -18
- package/components/display-settings/index.js +18 -18
- package/components/display-settings-Dmvi7XT-.cjs +18 -18
- package/components/display-settings-V5AltVPN.js +18 -18
- package/components/display-settings-binning/index.cjs +18 -18
- package/components/display-settings-binning/index.js +18 -18
- package/components/display-settings-binning-BNofVnZE.js +18 -18
- package/components/display-settings-binning-C1Fvc8tj.cjs +18 -18
- package/components/display-settings-datetime/index.cjs +18 -18
- package/components/display-settings-datetime/index.js +18 -18
- package/components/display-settings-datetime-CUR1w0k5.js +18 -18
- package/components/display-settings-datetime-OiFwicTh.cjs +18 -18
- package/components/display-settings-grand-totals/index.cjs +18 -18
- package/components/display-settings-grand-totals/index.js +18 -18
- package/components/display-settings-grand-totals-Bi1OcC7p.cjs +18 -18
- package/components/display-settings-grand-totals-CgzHbK1K.js +18 -18
- package/components/display-settings-numeric/index.cjs +18 -18
- package/components/display-settings-numeric/index.js +18 -18
- package/components/display-settings-numeric-BQ_vQrnj.cjs +18 -18
- package/components/display-settings-numeric-CUWkiQtR.js +18 -18
- package/components/display-settings-period-over-period/index.cjs +18 -18
- package/components/display-settings-period-over-period/index.js +18 -18
- package/components/display-settings-period-over-period-Br08rz7r.cjs +18 -18
- package/components/display-settings-period-over-period-C7cfSyIL.js +18 -18
- package/components/donut-chart-options.config-C8wpZzyJ.js +18 -18
- package/components/donut-chart-options.config-LbmJpNlm.cjs +18 -18
- package/components/donut-chart-options.de-MwhxVUQU.cjs +18 -18
- package/components/donut-chart-options.de-yLZjyrqC.js +18 -18
- package/components/donut-chart-options.en-CtvZekZO.js +18 -18
- package/components/donut-chart-options.en-Z9kCIcjz.cjs +18 -18
- package/components/donut-chart-options.es-C89OYrl4.js +18 -18
- package/components/donut-chart-options.es-Ch83fRxI.cjs +18 -18
- package/components/donut-chart-options.fr-B7JWWsro.cjs +18 -18
- package/components/donut-chart-options.fr-Cy4UUjdS.js +18 -18
- package/components/donut-chart-options.nl-BT6vFbJ5.js +18 -18
- package/components/donut-chart-options.nl-Brxyw7wD.cjs +18 -18
- package/components/donut-chart-positioning.config-B4JdERSl.cjs +18 -18
- package/components/donut-chart-positioning.config-CWGYZUec.js +18 -18
- package/components/donut-chart-slots.config-Bi08z-XB.cjs +18 -18
- package/components/donut-chart-slots.config-fGqtoKZi.js +18 -18
- package/components/dropdown-filter-options.config-BRzYD0KE.cjs +18 -18
- package/components/dropdown-filter-options.config-DkiapYtc.js +18 -18
- package/components/dropdown-filter-options.de-BdvWDGQ4.cjs +18 -18
- package/components/dropdown-filter-options.de-CGwxbXwe.js +18 -18
- package/components/dropdown-filter-options.en-D4YCo5Bj.js +18 -18
- package/components/dropdown-filter-options.en-DEHrGxy0.cjs +18 -18
- package/components/dropdown-filter-options.es-BvFyqxrr.js +18 -18
- package/components/dropdown-filter-options.es-C6qkLl6c.cjs +18 -18
- package/components/dropdown-filter-options.fr-9KlpP9JQ.js +18 -18
- package/components/dropdown-filter-options.fr-DZxfuy7q.cjs +18 -18
- package/components/dropdown-filter-options.nl-4HUfHHPT.js +18 -18
- package/components/dropdown-filter-options.nl-dmpP9bir.cjs +18 -18
- package/components/dropdown-filter-positioning.config-Ck97Moc_.cjs +18 -18
- package/components/dropdown-filter-positioning.config-D1tdnuCP.js +18 -18
- package/components/dropdown-filter-slots.config-CR-Ko6q_.cjs +18 -18
- package/components/dropdown-filter-slots.config-DPcT6v-9.js +18 -18
- package/components/en-CcLhGxIh.js +18 -18
- package/components/en-GB-DzkdeUQh.js +18 -18
- package/components/en-GB-uxY5qmIM.cjs +18 -18
- package/components/en-US-CcLhGxIh.js +18 -18
- package/components/en-US-q_Ruzags.cjs +18 -18
- package/components/en-q_Ruzags.cjs +18 -18
- package/components/es-D8MxHOsN.cjs +18 -18
- package/components/es-DK-49nGv.cjs +18 -18
- package/components/es-DUENN-m1.js +18 -18
- package/components/es-DuN6cMja.js +18 -18
- package/components/evolution-number-options.config-Ca9ABNVM.js +18 -18
- package/components/evolution-number-options.config-CoGBgLLw.cjs +18 -18
- package/components/evolution-number-options.de-BrdcqfjF.js +18 -18
- package/components/evolution-number-options.de-CjNBpzAw.cjs +18 -18
- package/components/evolution-number-options.en-B9BpR4nq.cjs +18 -18
- package/components/evolution-number-options.en-Sd6L4_T9.js +18 -18
- package/components/evolution-number-options.es-CxbiY9G6.cjs +18 -18
- package/components/evolution-number-options.es-RgSav5iQ.js +18 -18
- package/components/evolution-number-options.fr-BD73JeDU.js +18 -18
- package/components/evolution-number-options.fr-Cae20bgZ.cjs +18 -18
- package/components/evolution-number-options.nl-BJ-5M5kB.cjs +18 -18
- package/components/evolution-number-options.nl-WHBQ04_S.js +18 -18
- package/components/evolution-number-positioning.config-CqQeAPbN.cjs +18 -18
- package/components/evolution-number-positioning.config-DZ7SVvue.js +18 -18
- package/components/evolution-number-slots.config-CKawNqUS.js +18 -18
- package/components/evolution-number-slots.config-CikuQYgm.cjs +18 -18
- package/components/fi-CzBe3q93.cjs +18 -18
- package/components/fi-vuFNiOkH.js +18 -18
- package/components/filter-expression-picker/index.cjs +18 -18
- package/components/filter-expression-picker/index.js +18 -18
- package/components/filter-expression-picker-3xcrAACt.js +18 -18
- package/components/filter-expression-picker-BrtXMSBv.cjs +18 -18
- package/components/filter-item/index.cjs +18 -18
- package/components/filter-item/index.js +18 -18
- package/components/filter-item-CH5sjhJy.js +18 -18
- package/components/filter-item-C_h4rbuL.cjs +18 -18
- package/components/filter-parameter-picker/index.cjs +18 -18
- package/components/filter-parameter-picker/index.js +18 -18
- package/components/filter-parameter-picker-CB3uIoZ2.js +18 -18
- package/components/filter-parameter-picker-DJKHZxlT.cjs +18 -18
- package/components/filter-value-picker/index.cjs +18 -18
- package/components/filter-value-picker/index.js +18 -18
- package/components/filter-value-picker-CW9vKpn1.cjs +18 -18
- package/components/filter-value-picker-DeO855hf.js +18 -18
- package/components/filter-value-picker-datetime/index.cjs +18 -18
- package/components/filter-value-picker-datetime/index.js +18 -18
- package/components/filter-value-picker-datetime-B0lLveRY.js +18 -18
- package/components/filter-value-picker-datetime-DapMI9Jr.cjs +18 -18
- package/components/filter-value-picker-hierarchy/index.cjs +18 -18
- package/components/filter-value-picker-hierarchy/index.js +18 -18
- package/components/filter-value-picker-hierarchy-B2xSmjFz.js +18 -18
- package/components/filter-value-picker-hierarchy-C9mJ8PH7.cjs +18 -18
- package/components/filter-value-picker-numeric/index.cjs +18 -18
- package/components/filter-value-picker-numeric/index.js +18 -18
- package/components/filter-value-picker-numeric-CayroCHe.js +18 -18
- package/components/filter-value-picker-numeric-DE5h7dZN.cjs +18 -18
- package/components/filters/index.cjs +18 -18
- package/components/filters/index.js +18 -18
- package/components/filters-CGqIDlPK.cjs +18 -18
- package/components/filters-D5oua2IU.js +18 -18
- package/components/formatter-BeXmurVe.cjs +18 -18
- package/components/formatter-Cq5dFCyU.js +18 -18
- package/components/formula/index.cjs +18 -18
- package/components/formula/index.js +18 -18
- package/components/formula-8YhND5Y7.cjs +18 -18
- package/components/formula-B4lrmE5g.js +18 -18
- package/components/formula-codemirror-CBvQJGHq.cjs +18 -18
- package/components/formula-codemirror-CVlF_Qyh.js +18 -18
- package/components/formula-display-store-BJvPYYsO.cjs +18 -18
- package/components/formula-display-store-D9MWhreP.js +18 -18
- package/components/formula-editor/index.cjs +18 -18
- package/components/formula-editor/index.js +18 -18
- package/components/formula-editor-BGT-QcuH.js +18 -18
- package/components/formula-editor-De9Zj-9c.cjs +18 -18
- package/components/formula-field/index.cjs +18 -18
- package/components/formula-field/index.js +18 -18
- package/components/formula-field--gNwmTRk.cjs +18 -18
- package/components/formula-field-CQcnyXOD.js +18 -18
- package/components/formula-input-base-BdKh5O_E.js +18 -18
- package/components/formula-input-base-CZih19kC.cjs +18 -18
- package/components/fr-BlAUad9k.cjs +18 -18
- package/components/fr-CePmGBUH.js +18 -18
- package/components/fr-CwOLJGv2.js +18 -18
- package/components/fr-uE3fb3kc.cjs +18 -18
- package/components/funnel-chart-options.config-CygQsQVD.js +18 -18
- package/components/funnel-chart-options.config-DgpM8mWb.cjs +18 -18
- package/components/funnel-chart-options.de-CW29wkd4.cjs +18 -18
- package/components/funnel-chart-options.de-DIoKO3fr.js +18 -18
- package/components/funnel-chart-options.en-CGVFwHzU.cjs +18 -18
- package/components/funnel-chart-options.en-Doj4mREG.js +18 -18
- package/components/funnel-chart-options.es-Bcot5MS3.cjs +18 -18
- package/components/funnel-chart-options.es-D-GP_b6C.js +18 -18
- package/components/funnel-chart-options.fr-7ZROacsE.cjs +18 -18
- package/components/funnel-chart-options.fr-BoQkeuls.js +18 -18
- package/components/funnel-chart-options.nl-C0VZ6Ure.cjs +18 -18
- package/components/funnel-chart-options.nl-CRq-RjxK.js +18 -18
- package/components/funnel-chart-positioning.config-B6I8z0_N.js +18 -18
- package/components/funnel-chart-positioning.config-BhK0EStG.cjs +18 -18
- package/components/funnel-chart-slots.config-B8zC6Q6_.cjs +18 -18
- package/components/funnel-chart-slots.config-CfnSH4Ay.js +18 -18
- package/components/get-css-variable-CBXsAxR6.cjs +18 -18
- package/components/get-css-variable-DYnldi15.js +18 -18
- package/components/get-dataset-name-DLjeChNS.js +18 -18
- package/components/get-dataset-name-mGNEfkAv.cjs +18 -18
- package/components/groupings-C1WNuUBe.js +18 -18
- package/components/groupings-CvXvU4Fr.cjs +18 -18
- package/components/guidelines-options.config-D-ZuReR_.cjs +18 -18
- package/components/guidelines-options.config-DyedEeX2.js +18 -18
- package/components/he-CdtHCved.cjs +18 -18
- package/components/he-Cs_3gvpL.js +18 -18
- package/components/heat-map-options.config-DtDh9Gpy.cjs +18 -18
- package/components/heat-map-options.config-X96sw-BV.js +18 -18
- package/components/heat-map-options.de-CdqO8c7P.js +18 -18
- package/components/heat-map-options.de-Zq-m7g1c.cjs +18 -18
- package/components/heat-map-options.en-BAnXacHE.js +18 -18
- package/components/heat-map-options.en-CbP14v8z.cjs +18 -18
- package/components/heat-map-options.es-8rTCVZlw.js +18 -18
- package/components/heat-map-options.es-CUkrnKed.cjs +18 -18
- package/components/heat-map-options.fr-DXcosm8B.cjs +18 -18
- package/components/heat-map-options.fr-DbGhKWbq.js +18 -18
- package/components/heat-map-options.nl-B8LsAqqA.cjs +18 -18
- package/components/heat-map-options.nl-nw2vqBOn.js +18 -18
- package/components/heat-map-positioning.config-B9Njs88T.cjs +18 -18
- package/components/heat-map-positioning.config-DAAt2hIR.js +18 -18
- package/components/heat-map-slots.config-D2ypExJQ.js +18 -18
- package/components/heat-map-slots.config-Wp_oS8JQ.cjs +18 -18
- package/components/heat-table-options.config-CugBuoUA.cjs +18 -18
- package/components/heat-table-options.config-D6dA9J97.js +18 -18
- package/components/heat-table-options.de-D16uyY3b.cjs +18 -18
- package/components/heat-table-options.de-PCwpTsHu.js +18 -18
- package/components/heat-table-options.en-DCNhZ0Qw.js +18 -18
- package/components/heat-table-options.en-Dhd_yZdX.cjs +18 -18
- package/components/heat-table-options.es-DPqviw02.cjs +18 -18
- package/components/heat-table-options.es-Dhtu0ztS.js +18 -18
- package/components/heat-table-options.fr-BVwdrQWA.cjs +18 -18
- package/components/heat-table-options.fr-dtKsuwpe.js +18 -18
- package/components/heat-table-options.nl-BAiKDY6k.cjs +18 -18
- package/components/heat-table-options.nl-Bc0JFpfk.js +18 -18
- package/components/heat-table-positioning.config-Cn7Ouv5g.cjs +18 -18
- package/components/heat-table-positioning.config-D6ChanEH.js +18 -18
- package/components/heat-table-slots.config-B1iOn6ay.js +18 -18
- package/components/heat-table-slots.config-BN7rtHZG.cjs +18 -18
- package/components/helpers-B2IWxa9q.cjs +18 -18
- package/components/helpers-irnB2xbq.js +18 -18
- package/components/hexbin-map-options.config-BGmgxnMh.cjs +18 -18
- package/components/hexbin-map-options.config-FK9DrXGD.js +18 -18
- package/components/hexbin-map-options.de-Ch56ViJL.cjs +18 -18
- package/components/hexbin-map-options.de-IOtNvdRA.js +18 -18
- package/components/hexbin-map-options.en-BHNWW3n5.cjs +18 -18
- package/components/hexbin-map-options.en-DKEF0zQn.js +18 -18
- package/components/hexbin-map-options.es-CinY6Q9x.cjs +18 -18
- package/components/hexbin-map-options.es-FkXMepZ7.js +18 -18
- package/components/hexbin-map-options.fr-3EQtw1--.cjs +18 -18
- package/components/hexbin-map-options.fr-DT7-Cefu.js +18 -18
- package/components/hexbin-map-options.nl-2P7aufJe.cjs +18 -18
- package/components/hexbin-map-options.nl-BwgDBrw4.js +18 -18
- package/components/hexbin-map-positioning.config-BqfRSZbU.cjs +18 -18
- package/components/hexbin-map-positioning.config-CNId41q1.js +18 -18
- package/components/hexbin-map-slots.config-CC1xZINm.js +18 -18
- package/components/hexbin-map-slots.config-mx5zUTrA.cjs +18 -18
- package/components/hu-BXedq4ZF.js +18 -18
- package/components/hu-D0kNP1hN.cjs +18 -18
- package/components/icon-element-DpN-9yaN.cjs +18 -18
- package/components/icon-element-_jY440X2.js +18 -18
- package/components/image-options.config-DZ5q1D63.cjs +18 -18
- package/components/image-options.config-DxF0RSUF.js +18 -18
- package/components/image-options.de-Bh8QqYb_.js +18 -18
- package/components/image-options.de-Bm7MsFjT.cjs +18 -18
- package/components/image-options.en-Bt3w6SPu.cjs +18 -18
- package/components/image-options.en-D2iUVarz.js +18 -18
- package/components/image-options.es-CKpabSfB.js +18 -18
- package/components/image-options.es-ecJMtP0F.cjs +18 -18
- package/components/image-options.fr-D5P3FQRB.cjs +18 -18
- package/components/image-options.fr-vfaeguWy.js +18 -18
- package/components/image-options.nl-B16JINhD.js +18 -18
- package/components/image-options.nl-B7M__YOZ.cjs +18 -18
- package/components/image-slots.config-BPJRdlMR.cjs +18 -18
- package/components/image-slots.config-Ba8NXeCH.js +18 -18
- package/components/index.cjs +19 -19
- package/components/index.js +21 -21
- package/components/info-tooltip-options.config-B9T0cwSM.cjs +18 -18
- package/components/info-tooltip-options.config-BmSMkirf.js +18 -18
- package/components/info-tooltip-options.i18n-B3u0H74j.cjs +18 -18
- package/components/info-tooltip-options.i18n-CDx47Py-.js +18 -18
- package/components/interactive-viz-item/index.cjs +18 -18
- package/components/interactive-viz-item/index.js +18 -18
- package/components/interactive-viz-item-CzIT8K3I.js +18 -18
- package/components/interactive-viz-item-DUyE1QEJ.cjs +18 -18
- package/components/interactivity-options.config-BjEGNaIz.js +18 -18
- package/components/interactivity-options.config-Bzk2L-qh.cjs +18 -18
- package/components/interactivity-options.i18n-BsYv4Rh9.cjs +18 -18
- package/components/interactivity-options.i18n-UhOnnlBC.js +18 -18
- package/components/it-BZF7oRfg.cjs +18 -18
- package/components/it-BoudiwDn.js +18 -18
- package/components/item-context-configs.cjs +18 -18
- package/components/item-context-configs.js +18 -18
- package/components/item-grid/index.cjs +18 -18
- package/components/item-grid/index.js +18 -18
- package/components/item-grid-BaW6EZ2a.js +18 -18
- package/components/item-grid-BcgBGxIq.cjs +18 -18
- package/components/item-list.cjs +18 -18
- package/components/item-list.js +18 -18
- package/components/item-option/index.cjs +18 -18
- package/components/item-option/index.js +18 -18
- package/components/item-option-8PQMxg8v.cjs +18 -18
- package/components/item-option-action-button-group/index.cjs +18 -18
- package/components/item-option-action-button-group/index.js +18 -18
- package/components/item-option-action-button-group-BcZTtikv.js +18 -18
- package/components/item-option-action-button-group-zZp49Gbz.cjs +18 -18
- package/components/item-option-base-DJ9FLqmu.js +18 -18
- package/components/item-option-base-K2pn6CrX.cjs +18 -18
- package/components/item-option-color-palette-picker/index.cjs +18 -18
- package/components/item-option-color-palette-picker/index.js +18 -18
- package/components/item-option-color-palette-picker-B9JlHGA8.cjs +18 -18
- package/components/item-option-color-palette-picker-DJX3MxcT.js +18 -18
- package/components/item-option-color-picker/index.cjs +18 -18
- package/components/item-option-color-picker/index.js +18 -18
- package/components/item-option-color-picker-Dgz-VK03.js +18 -18
- package/components/item-option-color-picker-ayYko5QB.cjs +18 -18
- package/components/item-option-color-range/index.cjs +18 -18
- package/components/item-option-color-range/index.js +18 -18
- package/components/item-option-color-range-Cc8thG33.cjs +18 -18
- package/components/item-option-color-range-DibSfro5.js +18 -18
- package/components/item-option-em2Lp2zJ.js +18 -18
- package/components/item-option-guidelines/index.cjs +18 -18
- package/components/item-option-guidelines/index.js +18 -18
- package/components/item-option-guidelines-DXUcdAel.js +18 -18
- package/components/item-option-guidelines-h5-NrAYD.cjs +18 -18
- package/components/item-option-multi-language-field/index.cjs +18 -18
- package/components/item-option-multi-language-field/index.js +18 -18
- package/components/item-option-multi-language-field-BlnTZCFJ.cjs +18 -18
- package/components/item-option-multi-language-field-Bqo9OeK4.js +18 -18
- package/components/item-option-number-field/index.cjs +18 -18
- package/components/item-option-number-field/index.js +18 -18
- package/components/item-option-number-field-BZHhCuuj.js +18 -18
- package/components/item-option-number-field-D9vv1Q-O.cjs +18 -18
- package/components/item-option-panel/index.cjs +18 -18
- package/components/item-option-panel/index.js +18 -18
- package/components/item-option-panel-Bo3sC4u5.cjs +18 -18
- package/components/item-option-panel-DvgDiRPH.js +18 -18
- package/components/item-option-picker/index.cjs +18 -18
- package/components/item-option-picker/index.js +18 -18
- package/components/item-option-picker-D5xhm36O.cjs +18 -18
- package/components/item-option-picker-cy0KK-ev.js +18 -18
- package/components/item-option-position-picker/index.cjs +18 -18
- package/components/item-option-position-picker/index.js +18 -18
- package/components/item-option-position-picker-BJ35DWBL.cjs +18 -18
- package/components/item-option-position-picker-BbYP1Jnh.js +18 -18
- package/components/item-option-positions-number-field/index.cjs +18 -18
- package/components/item-option-positions-number-field/index.js +18 -18
- package/components/item-option-positions-number-field-DO4z_aKu.js +18 -18
- package/components/item-option-positions-number-field-DzYQoSpk.cjs +18 -18
- package/components/item-option-radio-button-group/index.cjs +18 -18
- package/components/item-option-radio-button-group/index.js +18 -18
- package/components/item-option-radio-button-group-CF1gttvP.cjs +18 -18
- package/components/item-option-radio-button-group-DX7wCv8J.js +18 -18
- package/components/item-option-slider/index.cjs +18 -18
- package/components/item-option-slider/index.js +18 -18
- package/components/item-option-slider-DeGmGyZE.cjs +18 -18
- package/components/item-option-slider-z1CwX5mE.js +18 -18
- package/components/item-option-switch/index.cjs +18 -18
- package/components/item-option-switch/index.js +18 -18
- package/components/item-option-switch-D3jq7jIt.cjs +18 -18
- package/components/item-option-switch-D41KguKr.js +18 -18
- package/components/item-option-text-field/index.cjs +18 -18
- package/components/item-option-text-field/index.js +18 -18
- package/components/item-option-text-field-CnFcApMz.js +18 -18
- package/components/item-option-text-field-cXy2sx5N.cjs +18 -18
- package/components/item-options-configs.cjs +18 -18
- package/components/item-options-configs.js +18 -18
- package/components/item-slot-drop/index.cjs +18 -18
- package/components/item-slot-drop/index.js +18 -18
- package/components/item-slot-drop-CtEMLkmt.cjs +18 -18
- package/components/item-slot-drop-YAKpKb2-.js +18 -18
- package/components/item-slot-drop-panel/index.cjs +18 -18
- package/components/item-slot-drop-panel/index.js +18 -18
- package/components/item-slot-drop-panel-JZtBKPJu.js +18 -18
- package/components/item-slot-drop-panel-aom0ugTz.cjs +18 -18
- package/components/item-slot-picker/index.cjs +18 -18
- package/components/item-slot-picker/index.js +18 -18
- package/components/item-slot-picker-D-FvHowO.js +18 -18
- package/components/item-slot-picker-D8h7QXGD.cjs +18 -18
- package/components/item-slot-picker-panel/index.cjs +18 -18
- package/components/item-slot-picker-panel/index.js +18 -18
- package/components/item-slot-picker-panel-C98lpd4g.cjs +18 -18
- package/components/item-slot-picker-panel-g4JDw1M_.js +18 -18
- package/components/item-slots-configs.cjs +18 -18
- package/components/item-slots-configs.js +18 -18
- package/components/ja-DOkmGGSd.js +18 -18
- package/components/ja-aOzAwMPW.cjs +18 -18
- package/components/ko-B50TWXco.cjs +18 -18
- package/components/ko-BrzKwqTe.js +18 -18
- package/components/line-chart-options.config-C3_RnROS.js +18 -18
- package/components/line-chart-options.config-RTYFJQSE.cjs +18 -18
- package/components/line-chart-options.de-CKbHARjX.cjs +18 -18
- package/components/line-chart-options.de-CtxTZ-Nx.js +18 -18
- package/components/line-chart-options.en-BgXtU92P.js +18 -18
- package/components/line-chart-options.en-DmtT3Hbw.cjs +18 -18
- package/components/line-chart-options.es--u7QlrhG.js +18 -18
- package/components/line-chart-options.es-BwyQviz-.cjs +18 -18
- package/components/line-chart-options.fr-BUwOFGR7.cjs +18 -18
- package/components/line-chart-options.fr-BaPc1M70.js +18 -18
- package/components/line-chart-options.nl-BkPXShNF.cjs +18 -18
- package/components/line-chart-options.nl-C86fSn7a.js +18 -18
- package/components/line-chart-positioning.config-BZUWqKWz.cjs +18 -18
- package/components/line-chart-positioning.config-C3VzNcws.js +18 -18
- package/components/line-chart-slots.config-CA-I6B6o.js +18 -18
- package/components/line-chart-slots.config-vv66fcoE.cjs +18 -18
- package/components/load-data-fields-for-datasets-B3XcFFfg.js +18 -18
- package/components/load-data-fields-for-datasets-rL24A68g.cjs +18 -18
- package/components/localize-BT7REYBY.js +18 -18
- package/components/localize-D3i4Epy_.cjs +18 -18
- package/components/localized-mixin-DaLXe5J9.js +18 -18
- package/components/localized-mixin-DiUJOd06.cjs +18 -18
- package/components/map-tile-providers-DzSBmFkY.cjs +18 -18
- package/components/map-tile-providers-RN2cWRln.js +18 -18
- package/components/marker-map-options.config-OMdgbAc4.js +18 -18
- package/components/marker-map-options.config-SkhbtEh0.cjs +18 -18
- package/components/marker-map-options.de-BSu8VCAw.cjs +18 -18
- package/components/marker-map-options.de-DVb2ab5i.js +18 -18
- package/components/marker-map-options.en-BNwkDxQB.js +18 -18
- package/components/marker-map-options.en-CKMe-zNW.cjs +18 -18
- package/components/marker-map-options.es-CY2DRGKv.js +18 -18
- package/components/marker-map-options.es-D6x5XPW7.cjs +18 -18
- package/components/marker-map-options.fr-D31wgwxG.js +18 -18
- package/components/marker-map-options.fr-xZ7ixq37.cjs +18 -18
- package/components/marker-map-options.nl-Bvo1Sgwp.cjs +18 -18
- package/components/marker-map-options.nl-DyZo_CFt.js +18 -18
- package/components/marker-map-positioning.config-BlvgG6yX.js +18 -18
- package/components/marker-map-positioning.config-CGF74mJI.cjs +18 -18
- package/components/marker-map-slots.config-CcGNgr1_.js +18 -18
- package/components/marker-map-slots.config-DigZk7lN.cjs +18 -18
- package/components/mk-CehJi277.cjs +18 -18
- package/components/mk-Deht4BwZ.js +18 -18
- package/components/nl-BaZM3WoR.js +18 -18
- package/components/nl-BoEhzeIh.cjs +18 -18
- package/components/nl-C1BTOQ5N.js +18 -18
- package/components/nl-wyer9j4m.cjs +18 -18
- package/components/no-C9FQ33Mp.js +18 -18
- package/components/no-PqE_GjX_.cjs +18 -18
- package/components/ohlc-chart-options.config-CWRI5bXI.js +18 -18
- package/components/ohlc-chart-options.config-Pqd5MFIv.cjs +18 -18
- package/components/ohlc-chart-options.de-DtanuVcU.cjs +18 -18
- package/components/ohlc-chart-options.de-LnJmQjiR.js +18 -18
- package/components/ohlc-chart-options.en-B7TU8CK4.js +18 -18
- package/components/ohlc-chart-options.en-CStPyUia.cjs +18 -18
- package/components/ohlc-chart-options.es-B7m8-_pA.js +18 -18
- package/components/ohlc-chart-options.es-CfTI32Rg.cjs +18 -18
- package/components/ohlc-chart-options.fr-C53gRLh5.cjs +18 -18
- package/components/ohlc-chart-options.fr-u_Bi9raw.js +18 -18
- package/components/ohlc-chart-options.nl-BrpwjNGt.js +18 -18
- package/components/ohlc-chart-options.nl-Dh9iPIWB.cjs +18 -18
- package/components/ohlc-chart-positioning.config-B__cD7Wo.cjs +18 -18
- package/components/ohlc-chart-positioning.config-BdbEgiry.js +18 -18
- package/components/ohlc-chart-slots.config-D3fzoQJH.cjs +18 -18
- package/components/ohlc-chart-slots.config-Pv0xst-Y.js +18 -18
- package/components/orion-CXeT8EeB.js +18 -18
- package/components/orion-DkQrXOy_.cjs +18 -18
- package/components/parallel-coordinates-plot-options.config-2BbzNgJ9.cjs +18 -18
- package/components/parallel-coordinates-plot-options.config-DbuNgevO.js +18 -18
- package/components/parallel-coordinates-plot-options.de-BwbOcCnH.js +18 -18
- package/components/parallel-coordinates-plot-options.de-CDtIM_Z2.cjs +18 -18
- package/components/parallel-coordinates-plot-options.en-BlzPfF-b.js +18 -18
- package/components/parallel-coordinates-plot-options.en-Bu7cMLrv.cjs +18 -18
- package/components/parallel-coordinates-plot-options.es-BPgUHedg.cjs +18 -18
- package/components/parallel-coordinates-plot-options.es-CPAqJPEY.js +18 -18
- package/components/parallel-coordinates-plot-options.fr-BUxk85Ud.cjs +18 -18
- package/components/parallel-coordinates-plot-options.fr-DRTOCvqg.js +18 -18
- package/components/parallel-coordinates-plot-options.nl-CHuWgaYV.cjs +18 -18
- package/components/parallel-coordinates-plot-options.nl-DqXxaV_Z.js +18 -18
- package/components/parallel-coordinates-plot-positioning.config-BqdmUJLk.cjs +18 -18
- package/components/parallel-coordinates-plot-positioning.config-DNu5qhNR.js +18 -18
- package/components/parallel-coordinates-plot-slots.config-GvYC-RXK.js +18 -18
- package/components/parallel-coordinates-plot-slots.config-s_tLqGA-.cjs +18 -18
- package/components/period-over-period-condition.const-BZ7j5Z5t.js +18 -18
- package/components/period-over-period-condition.const-C1NZ9Bkp.cjs +18 -18
- package/components/periods.const-Db0nXrwr.cjs +18 -18
- package/components/periods.const-NCTkxnvG.js +18 -18
- package/components/pinky-CtuaRwwY.js +18 -18
- package/components/pinky-TtncdghA.cjs +18 -18
- package/components/pivot-table-options.config-CTz4bcGJ.js +18 -18
- package/components/pivot-table-options.config-D6Hdgnof.cjs +18 -18
- package/components/pivot-table-options.de-CZjCOf23.js +18 -18
- package/components/pivot-table-options.de-D4WdihDf.cjs +18 -18
- package/components/pivot-table-options.en-Ch0mKBst.cjs +18 -18
- package/components/pivot-table-options.en-Z6QZwj0n.js +18 -18
- package/components/pivot-table-options.es-DKNkDOBt.cjs +18 -18
- package/components/pivot-table-options.es-DW1enov2.js +18 -18
- package/components/pivot-table-options.fr-BAKlur9_.cjs +18 -18
- package/components/pivot-table-options.fr-Cl4jkSR4.js +18 -18
- package/components/pivot-table-options.nl-2mSHbpcz.cjs +18 -18
- package/components/pivot-table-options.nl-CaWEP9qN.js +18 -18
- package/components/pivot-table-positioning.config-CUfnXIHj.js +18 -18
- package/components/pivot-table-positioning.config-DDpgWCZ7.cjs +18 -18
- package/components/pivot-table-slots.config-BAW0U3nh.js +18 -18
- package/components/pivot-table-slots.config-KlYXL90k.cjs +18 -18
- package/components/pl-4xvkt0Pl.js +18 -18
- package/components/pl-Cu6_UJbA.cjs +18 -18
- package/components/pragmatic-element-adapter-D0LRKx5U.js +18 -18
- package/components/pragmatic-element-adapter-DdyH32ix.cjs +18 -18
- package/components/pt-BUpCBhz9.js +18 -18
- package/components/pt-fymmI5Y3.cjs +18 -18
- package/components/pyramid-chart-options.config-C7btzuZj.js +18 -18
- package/components/pyramid-chart-options.config-ClLsv7PT.cjs +18 -18
- package/components/pyramid-chart-options.de-BYqibA2g.cjs +18 -18
- package/components/pyramid-chart-options.de-C7n_k-tE.js +18 -18
- package/components/pyramid-chart-options.en-Cu93qdAo.js +18 -18
- package/components/pyramid-chart-options.en-HiLgjfbn.cjs +18 -18
- package/components/pyramid-chart-options.es-BQ8qCZ32.cjs +18 -18
- package/components/pyramid-chart-options.es-DCRAv4r_.js +18 -18
- package/components/pyramid-chart-options.fr-BA7xAAsG.cjs +18 -18
- package/components/pyramid-chart-options.fr-CLXgcrPz.js +18 -18
- package/components/pyramid-chart-options.nl-BYiPyjuQ.cjs +18 -18
- package/components/pyramid-chart-options.nl-CylUmHpw.js +18 -18
- package/components/pyramid-chart-positioning.config-B2TxqefZ.cjs +18 -18
- package/components/pyramid-chart-positioning.config-CZBcrHEG.js +18 -18
- package/components/pyramid-chart-slots.config-CreUpxI2.cjs +18 -18
- package/components/pyramid-chart-slots.config-CsMMyhV3.js +18 -18
- package/components/radar-chart-options.config-B5WP2MPc.cjs +18 -18
- package/components/radar-chart-options.config-CtA6MpUp.js +18 -18
- package/components/radar-chart-options.de-BZPerBca.js +18 -18
- package/components/radar-chart-options.de-D9sVJ3e-.cjs +18 -18
- package/components/radar-chart-options.en-Brb_kgjH.cjs +18 -18
- package/components/radar-chart-options.en-tDJgJQVC.js +18 -18
- package/components/radar-chart-options.es-BmpV458O.cjs +18 -18
- package/components/radar-chart-options.es-Dz4wRR-P.js +18 -18
- package/components/radar-chart-options.fr-B-gaDJX4.cjs +18 -18
- package/components/radar-chart-options.fr-D5KXeury.js +18 -18
- package/components/radar-chart-options.nl-D3_CmNB3.js +18 -18
- package/components/radar-chart-options.nl-DH_wKvgI.cjs +18 -18
- package/components/radar-chart-positioning.config-ddvHAHJF.cjs +18 -18
- package/components/radar-chart-positioning.config-j1WOeFnM.js +18 -18
- package/components/radar-chart-slots.config-8Kf_WAFi.js +18 -18
- package/components/radar-chart-slots.config-B3oIp-8w.cjs +18 -18
- package/components/radiant-Brxg53Bd.cjs +18 -18
- package/components/radiant-CFMCU8Ue.js +18 -18
- package/components/regular-table-options.config-BRmS77t-.js +18 -18
- package/components/regular-table-options.config-nBBnO4ru.cjs +18 -18
- package/components/regular-table-options.de-C1P8Cfb_.cjs +18 -18
- package/components/regular-table-options.de-g9j453gb.js +18 -18
- package/components/regular-table-options.en-BrufALdp.js +18 -18
- package/components/regular-table-options.en-C2gYTBRo.cjs +18 -18
- package/components/regular-table-options.es-CTDJJHWO.js +18 -18
- package/components/regular-table-options.es-okSFyOya.cjs +18 -18
- package/components/regular-table-options.fr-CcAJM6IR.cjs +18 -18
- package/components/regular-table-options.fr-CwmYI6Kh.js +18 -18
- package/components/regular-table-options.nl-Dco7Br5G.js +18 -18
- package/components/regular-table-options.nl-YAFLo-aU.cjs +18 -18
- package/components/regular-table-positioning.config-CXabhyJu.cjs +18 -18
- package/components/regular-table-positioning.config-DegSA7rc.js +18 -18
- package/components/regular-table-slots.config-UwzWj6gg.cjs +18 -18
- package/components/regular-table-slots.config-r-N9A-qA.js +18 -18
- package/components/resolve-column-presentation-BaEP1mvs.js +18 -18
- package/components/resolve-column-presentation-DUETRVCH.cjs +18 -18
- package/components/rolldown-runtime-mLOUI7ql.cjs +18 -18
- package/components/route-map-options.config-C65J81_7.js +18 -18
- package/components/route-map-options.config-DS9cCAQK.cjs +18 -18
- package/components/route-map-options.de-B6WL0heF.cjs +18 -18
- package/components/route-map-options.de-C8gPppGo.js +18 -18
- package/components/route-map-options.en-BCuStpST.cjs +18 -18
- package/components/route-map-options.en-Bqo2qPTY.js +18 -18
- package/components/route-map-options.es-Bk1nyazp.js +18 -18
- package/components/route-map-options.es-DRPguAOv.cjs +18 -18
- package/components/route-map-options.fr-CIOd_axV.cjs +18 -18
- package/components/route-map-options.fr-vq0ht9wS.js +18 -18
- package/components/route-map-options.nl-BQoR8rHj.cjs +18 -18
- package/components/route-map-options.nl-CBhNlitV.js +18 -18
- package/components/route-map-positioning.config-ChBYybF1.js +18 -18
- package/components/route-map-positioning.config-xBhhxtYu.cjs +18 -18
- package/components/route-map-slots.config-DMII2UuP.js +18 -18
- package/components/route-map-slots.config-DfYT65BF.cjs +18 -18
- package/components/royale-BiMs0EtI.cjs +18 -18
- package/components/royale-Cy1oOAE2.js +18 -18
- package/components/ru-CkNBR3ab.js +18 -18
- package/components/ru-RyEkpfw0.cjs +18 -18
- package/components/sankey-diagram-options.config-DZDqv5aI.cjs +18 -18
- package/components/sankey-diagram-options.config-nQDCRhKs.js +18 -18
- package/components/sankey-diagram-options.de-CDt5-4Rb.js +18 -18
- package/components/sankey-diagram-options.de-UZnVsw9I.cjs +18 -18
- package/components/sankey-diagram-options.en-65nfEWo_.js +18 -18
- package/components/sankey-diagram-options.en-BfINAD0e.cjs +18 -18
- package/components/sankey-diagram-options.es-JD4SHY3x.js +18 -18
- package/components/sankey-diagram-options.es-quSoEKtB.cjs +18 -18
- package/components/sankey-diagram-options.fr-B7wQDggY.js +18 -18
- package/components/sankey-diagram-options.fr-DeoKurMp.cjs +18 -18
- package/components/sankey-diagram-options.nl-2B5ScaJK.cjs +18 -18
- package/components/sankey-diagram-options.nl-CHqVVjut.js +18 -18
- package/components/sankey-diagram-positioning.config-CudMit_S.js +18 -18
- package/components/sankey-diagram-positioning.config-tZu-dDV-.cjs +18 -18
- package/components/sankey-diagram-slots.config-D-_u4w36.cjs +18 -18
- package/components/sankey-diagram-slots.config-DmWIGut0.js +18 -18
- package/components/scatter-plot-options.config-BplrME7w.js +18 -18
- package/components/scatter-plot-options.config-DJW85uFv.cjs +18 -18
- package/components/scatter-plot-options.de-3CPVK7Hi.cjs +18 -18
- package/components/scatter-plot-options.de-CNLrv6j3.js +18 -18
- package/components/scatter-plot-options.en-DigMzpQy.js +18 -18
- package/components/scatter-plot-options.en-Dzvigy8-.cjs +18 -18
- package/components/scatter-plot-options.es-C-IH7GVH.cjs +18 -18
- package/components/scatter-plot-options.es-CQm_VVqJ.js +18 -18
- package/components/scatter-plot-options.fr-Cdp6kPQi.cjs +18 -18
- package/components/scatter-plot-options.fr-s0M39VT4.js +18 -18
- package/components/scatter-plot-options.nl-CqpPIO03.js +18 -18
- package/components/scatter-plot-options.nl-DeINlMqc.cjs +18 -18
- package/components/scatter-plot-positioning.config-BoJEGmgK.js +18 -18
- package/components/scatter-plot-positioning.config-DQOtIhJi.cjs +18 -18
- package/components/scatter-plot-slots.config-B7wQVEEj.js +18 -18
- package/components/scatter-plot-slots.config-CrG6wQtV.cjs +18 -18
- package/components/search-filter-options.config-B-dGVPhS.cjs +18 -18
- package/components/search-filter-options.config-yAz6IIto.js +18 -18
- package/components/search-filter-options.de-BxVThclj.js +18 -18
- package/components/search-filter-options.de-XhjxPeKG.cjs +18 -18
- package/components/search-filter-options.en-Bp3Pgxmd.cjs +18 -18
- package/components/search-filter-options.en-CVxOFFq-.js +18 -18
- package/components/search-filter-options.es-CXfwE4S3.cjs +18 -18
- package/components/search-filter-options.es-YKtCfXeL.js +18 -18
- package/components/search-filter-options.fr-GGa8ofab.js +18 -18
- package/components/search-filter-options.fr-bif0VBh1.cjs +18 -18
- package/components/search-filter-options.nl-DZhs-o0B.cjs +18 -18
- package/components/search-filter-options.nl-ysVe1z-i.js +18 -18
- package/components/search-filter-positioning.config-BvwxJS-1.cjs +18 -18
- package/components/search-filter-positioning.config-DOSL-FX_.js +18 -18
- package/components/search-filter-slots.config-D8-V0BT5.js +18 -18
- package/components/search-filter-slots.config-DP06ulJA.cjs +18 -18
- package/components/seasonal-DTf_okZ2.cjs +18 -18
- package/components/seasonal-DZkRSBgY.js +18 -18
- package/components/set-locale-Xh_1AFbC.cjs +18 -18
- package/components/set-locale-ydAPif-7.js +18 -18
- package/components/set-nested-value-B-4IelRl.cjs +18 -18
- package/components/set-nested-value-V1TdquO3.js +18 -18
- package/components/slicer-filter-options.config-BtGkT2hI.js +18 -18
- package/components/slicer-filter-options.config-Cyjd_SRY.cjs +18 -18
- package/components/slicer-filter-options.de-7mpgtwLj.cjs +18 -18
- package/components/slicer-filter-options.de-Ck5STkcT.js +18 -18
- package/components/slicer-filter-options.en-CiYiPtJB.cjs +18 -18
- package/components/slicer-filter-options.en-RaYV5qQy.js +18 -18
- package/components/slicer-filter-options.es-B8VkLkMj.cjs +18 -18
- package/components/slicer-filter-options.es-C1LS6cqV.js +18 -18
- package/components/slicer-filter-options.fr-CYOej3j3.js +18 -18
- package/components/slicer-filter-options.fr-DV9DiqqL.cjs +18 -18
- package/components/slicer-filter-options.nl-B9CyFXTX.js +18 -18
- package/components/slicer-filter-options.nl-DVeUTVn7.cjs +18 -18
- package/components/slicer-filter-positioning.config-CY4jw7_A.js +18 -18
- package/components/slicer-filter-positioning.config-CZY2fvwt.cjs +18 -18
- package/components/slicer-filter-slots.config-CHKpdJvF.cjs +18 -18
- package/components/slicer-filter-slots.config-DR0Wg_Zr.js +18 -18
- package/components/slider-filter-options.config-BeIw6IrQ.cjs +18 -18
- package/components/slider-filter-options.config-D_yZ_nFz.js +18 -18
- package/components/slider-filter-options.de-CK9B4Rir.cjs +18 -18
- package/components/slider-filter-options.de-CUPN4B_3.js +18 -18
- package/components/slider-filter-options.en-CqnlQHF8.js +18 -18
- package/components/slider-filter-options.en-ZDfr4vqY.cjs +18 -18
- package/components/slider-filter-options.es-CN-cg2rH.js +18 -18
- package/components/slider-filter-options.es-CeAMKv7C.cjs +18 -18
- package/components/slider-filter-options.fr-BxgSJRs4.js +18 -18
- package/components/slider-filter-options.fr-D44hi-fD.cjs +18 -18
- package/components/slider-filter-options.nl-Cd41AI1Z.js +18 -18
- package/components/slider-filter-options.nl-p1nxsQFL.cjs +18 -18
- package/components/slider-filter-positioning.config-DSoEN2ip.js +18 -18
- package/components/slider-filter-positioning.config-a7tK-5va.cjs +18 -18
- package/components/slider-filter-slots.config-9R298H0t.cjs +18 -18
- package/components/slider-filter-slots.config-BUHw-32u.js +18 -18
- package/components/slot-labels.config-3nXLBRdr.js +18 -18
- package/components/slot-labels.config-DKnxOncr.cjs +18 -18
- package/components/slot-menu/index.cjs +18 -18
- package/components/slot-menu/index.js +18 -18
- package/components/slot-menu-Bl6PrLIN.cjs +18 -18
- package/components/slot-menu-hIK2_qR3.js +18 -18
- package/components/slot-menu-list/index.cjs +18 -18
- package/components/slot-menu-list/index.js +18 -18
- package/components/slot-menu-list-BgwZS32Q.js +18 -18
- package/components/slot-menu-list-BhgD2zt4.cjs +18 -18
- package/components/slot-role-classification-2wChhpcq.cjs +18 -18
- package/components/slot-role-classification-B8bkGhQ_.js +18 -18
- package/components/slots-config-Cd4xAG4H.cjs +18 -18
- package/components/slots-config-GlSNH7Gr.js +18 -18
- package/components/spacer-options.config-BsbiQt-1.cjs +18 -18
- package/components/spacer-options.config-C27xkF_H.js +18 -18
- package/components/speedometer-chart-options.config-BL7evgzP.js +18 -18
- package/components/speedometer-chart-options.config-CEIZfeYG.cjs +18 -18
- package/components/speedometer-chart-options.de-9J5HFt8T.js +18 -18
- package/components/speedometer-chart-options.de-Duicdnfl.cjs +18 -18
- package/components/speedometer-chart-options.en-DSQsXJfa.js +18 -18
- package/components/speedometer-chart-options.en-t4qxY0EQ.cjs +18 -18
- package/components/speedometer-chart-options.es-0JgXONad.cjs +18 -18
- package/components/speedometer-chart-options.es-BGphL673.js +18 -18
- package/components/speedometer-chart-options.fr-CAsCn9Vw.cjs +18 -18
- package/components/speedometer-chart-options.fr-Cj4C4th7.js +18 -18
- package/components/speedometer-chart-options.nl-BKNd6tYT.js +18 -18
- package/components/speedometer-chart-options.nl-COjZR7lk.cjs +18 -18
- package/components/speedometer-chart-positioning.config-D3CWnYTb.cjs +18 -18
- package/components/speedometer-chart-positioning.config-cBMverSU.js +18 -18
- package/components/speedometer-chart-slots.config-2Y_x52Gy.js +18 -18
- package/components/speedometer-chart-slots.config-S_hQm2MV.cjs +18 -18
- package/components/spike-map-options.config-BRwdTyrp.cjs +18 -18
- package/components/spike-map-options.config-DjoTrAsC.js +18 -18
- package/components/spike-map-options.de-Cdd3EEF2.cjs +18 -18
- package/components/spike-map-options.de-J48HW0-l.js +18 -18
- package/components/spike-map-options.en-B55b8Jn_.cjs +18 -18
- package/components/spike-map-options.en-Cic1NUan.js +18 -18
- package/components/spike-map-options.es-DOmj973W.cjs +18 -18
- package/components/spike-map-options.es-DbCa45oc.js +18 -18
- package/components/spike-map-options.fr-DHr9Aw6b.cjs +18 -18
- package/components/spike-map-options.fr-LqDsPbpZ.js +18 -18
- package/components/spike-map-options.nl-BYSBD11T.cjs +18 -18
- package/components/spike-map-options.nl-CRaM6WoB.js +18 -18
- package/components/spike-map-positioning.config-i7ntIkN5.cjs +18 -18
- package/components/spike-map-positioning.config-vuoKutnj.js +18 -18
- package/components/spike-map-slots.config-DJWMFPIR.js +18 -18
- package/components/spike-map-slots.config-cKfaD6dQ.cjs +18 -18
- package/components/strip-plot-options.config-DpRoR04b.cjs +18 -18
- package/components/strip-plot-options.config-tDmVlu9U.js +18 -18
- package/components/strip-plot-options.de-BhNKiBKE.cjs +18 -18
- package/components/strip-plot-options.de-vzJck0Vn.js +18 -18
- package/components/strip-plot-options.en-Bdv_ZOrd.js +18 -18
- package/components/strip-plot-options.en-Cxfv-AD6.cjs +18 -18
- package/components/strip-plot-options.es-B4qu-PBV.cjs +18 -18
- package/components/strip-plot-options.es-B91vttJc.js +18 -18
- package/components/strip-plot-options.fr-BJCQe-Bn.cjs +18 -18
- package/components/strip-plot-options.fr-DJQiJ_Zf.js +18 -18
- package/components/strip-plot-options.nl-BtIGpq6K.cjs +18 -18
- package/components/strip-plot-options.nl-Dx7PVRrW.js +18 -18
- package/components/strip-plot-positioning.config-C2H-io7l.cjs +18 -18
- package/components/strip-plot-positioning.config-_-ElbWoV.js +18 -18
- package/components/strip-plot-slots.config-DNYlrK_c.cjs +18 -18
- package/components/strip-plot-slots.config-suFyIf5-.js +18 -18
- package/components/sunburst-chart-options.config-Bjue_lQN.js +18 -18
- package/components/sunburst-chart-options.config-DszAtggj.cjs +18 -18
- package/components/sunburst-chart-options.de-Cv5jxNjX.js +18 -18
- package/components/sunburst-chart-options.de-DV_80qR9.cjs +18 -18
- package/components/sunburst-chart-options.en-Zfns8M0i.cjs +18 -18
- package/components/sunburst-chart-options.en-wsOVOyb6.js +18 -18
- package/components/sunburst-chart-options.es-BSKiBxl_.cjs +18 -18
- package/components/sunburst-chart-options.es-Qhu6VcVi.js +18 -18
- package/components/sunburst-chart-options.fr-DOcWgNOZ.cjs +18 -18
- package/components/sunburst-chart-options.fr-GdCEoo8O.js +18 -18
- package/components/sunburst-chart-options.nl-D2JXoYTB.cjs +18 -18
- package/components/sunburst-chart-options.nl-oTUKol5z.js +18 -18
- package/components/sunburst-chart-positioning.config-MB8z_ZfG.cjs +18 -18
- package/components/sunburst-chart-positioning.config-yzTnv1BQ.js +18 -18
- package/components/sunburst-chart-slots.config-BqVT-h0Z.js +18 -18
- package/components/sunburst-chart-slots.config-DkUUt5RF.cjs +18 -18
- package/components/sv-CtRGTNGV.cjs +18 -18
- package/components/sv-D2kQHkgH.js +18 -18
- package/components/symbol-map-options.config-Ce0Kv7N7.cjs +18 -18
- package/components/symbol-map-options.config-Dyeya5Z2.js +18 -18
- package/components/symbol-map-options.de-BiDrG9dj.cjs +18 -18
- package/components/symbol-map-options.de-CAapWyZM.js +18 -18
- package/components/symbol-map-options.en-CaXeV5i_.js +18 -18
- package/components/symbol-map-options.en-DLHLVF14.cjs +18 -18
- package/components/symbol-map-options.es-Bv7kYGH2.cjs +18 -18
- package/components/symbol-map-options.es-Ccu0xWZb.js +18 -18
- package/components/symbol-map-options.fr-B7F1XlQX.js +18 -18
- package/components/symbol-map-options.fr-BCMc9cTL.cjs +18 -18
- package/components/symbol-map-options.nl-BiSD07Wp.cjs +18 -18
- package/components/symbol-map-options.nl-DkV83AGA.js +18 -18
- package/components/symbol-map-positioning.config-BPkEp4Pj.js +18 -18
- package/components/symbol-map-positioning.config-L11e_Z3x.cjs +18 -18
- package/components/symbol-map-slots.config-DwNf547A.cjs +18 -18
- package/components/symbol-map-slots.config-Rhpher5o.js +18 -18
- package/components/text-options.config-BwBCG2yo.cjs +18 -18
- package/components/text-options.config-CXhvzzPF.js +18 -18
- package/components/text-options.de-Rtef15Lz.js +18 -18
- package/components/text-options.de-hh7o6URS.cjs +18 -18
- package/components/text-options.en-Dq7UNCRY.cjs +18 -18
- package/components/text-options.en-YdJ2bVwv.js +18 -18
- package/components/text-options.es-BSxIMxFF.cjs +18 -18
- package/components/text-options.es-Chd8-zuc.js +18 -18
- package/components/text-options.fr-CBUn8HSn.cjs +18 -18
- package/components/text-options.fr-CWeBOXaW.js +18 -18
- package/components/text-options.nl-CUiG2YHs.cjs +18 -18
- package/components/text-options.nl-CyY1z7nM.js +18 -18
- package/components/text-slots.config-CPghLc8b.cjs +18 -18
- package/components/text-slots.config-Dzj4-x2G.js +18 -18
- package/components/themes-CQZd578_.js +18 -18
- package/components/themes-kvrISOTz.cjs +18 -18
- package/components/tokens-BWMfo_w4.cjs +18 -18
- package/components/tokens-Ov1pCR4Y.js +18 -18
- package/components/tr-B66hMkRl.js +18 -18
- package/components/tr-xcDpAdjw.cjs +18 -18
- package/components/treemap-chart-options.config-BzOCEWog.js +18 -18
- package/components/treemap-chart-options.config-Cpj6vD6I.cjs +18 -18
- package/components/treemap-chart-options.de-BWg_01-W.cjs +18 -18
- package/components/treemap-chart-options.de-ByDBntoA.js +18 -18
- package/components/treemap-chart-options.en-0-5g1Vjs.js +18 -18
- package/components/treemap-chart-options.en-D18VTnD9.cjs +18 -18
- package/components/treemap-chart-options.es-BzkqvqXv.cjs +18 -18
- package/components/treemap-chart-options.es-CDkb_3c3.js +18 -18
- package/components/treemap-chart-options.fr-g6917FeS.cjs +18 -18
- package/components/treemap-chart-options.fr-rj0fjvUO.js +18 -18
- package/components/treemap-chart-options.nl-BTh-UB95.cjs +18 -18
- package/components/treemap-chart-options.nl-CQjDtoqG.js +18 -18
- package/components/treemap-chart-positioning.config-40_GcY2u.cjs +18 -18
- package/components/treemap-chart-positioning.config-CitiBQB2.js +18 -18
- package/components/treemap-chart-slots.config-CS3ot6ZJ.cjs +18 -18
- package/components/treemap-chart-slots.config-DRcafVU-.js +18 -18
- package/components/type-check-BehV9ZL1.cjs +18 -18
- package/components/type-check-CGREdneG.js +18 -18
- package/components/types-DNRGKFSD.js +18 -18
- package/components/types-pVa6ut_v.cjs +18 -18
- package/components/types.cjs +18 -18
- package/components/types.js +18 -18
- package/components/urban-8R0DqHZs.js +18 -18
- package/components/urban-CQa3SGnB.cjs +18 -18
- package/components/utils/base.cjs +18 -18
- package/components/utils/base.js +18 -18
- package/components/utils/store.cjs +18 -18
- package/components/utils/store.js +18 -18
- package/components/utils-SzKvwZ9-.cjs +18 -18
- package/components/utils-_8LPCz9-.js +18 -18
- package/components/utils.cjs +18 -18
- package/components/utils.js +18 -18
- package/components/v4-DIjJgmR0.js +18 -18
- package/components/v4-Dyp-SQ1c.cjs +18 -18
- package/components/venn-diagram-options.config-BMlduwIp.js +18 -18
- package/components/venn-diagram-options.config-BamlR1qo.cjs +18 -18
- package/components/venn-diagram-positioning.config-A28suR_R.js +18 -18
- package/components/venn-diagram-positioning.config-C7bkb2Qv.cjs +18 -18
- package/components/venn-diagram-slots.config-CMDndPVi.js +18 -18
- package/components/venn-diagram-slots.config-DYTmU8v2.cjs +18 -18
- package/components/video-options.config-BhBpkaLJ.cjs +18 -18
- package/components/video-options.config-DdfSTJEJ.js +18 -18
- package/components/video-options.de-BCRCouhI.cjs +18 -18
- package/components/video-options.de-CqDvojKb.js +18 -18
- package/components/video-options.en-CQ-1XqqN.cjs +18 -18
- package/components/video-options.en-DWsFJndr.js +18 -18
- package/components/video-options.es-C986CdLZ.js +18 -18
- package/components/video-options.es-HbR-p7Ll.cjs +18 -18
- package/components/video-options.fr-2LYvhyUV.cjs +18 -18
- package/components/video-options.fr-CF8lEOzZ.js +18 -18
- package/components/video-options.nl-CRGUzFaP.cjs +18 -18
- package/components/video-options.nl-DnHgROBb.js +18 -18
- package/components/video-slots.config-DMut7o7r.cjs +18 -18
- package/components/video-slots.config-Utnn0DBW.js +18 -18
- package/components/vivid-K5FZ8F8v.cjs +18 -18
- package/components/vivid-YDTQ3C2-.js +18 -18
- package/components/viz-item-menu/index.cjs +18 -18
- package/components/viz-item-menu/index.js +18 -18
- package/components/viz-item-menu-DsIJZRgm.js +18 -18
- package/components/viz-item-menu-DtHlgOqt.cjs +18 -18
- package/components/wordcloud-chart-options.config-BQ4Z-vPT.cjs +18 -18
- package/components/wordcloud-chart-options.config-y9Z5I_ZN.js +18 -18
- package/components/wordcloud-chart-options.de-0T6RwBxn.js +18 -18
- package/components/wordcloud-chart-options.de-Bi2Qjaam.cjs +18 -18
- package/components/wordcloud-chart-options.en-6YsE8vZq.cjs +18 -18
- package/components/wordcloud-chart-options.en-xMN7HxWU.js +18 -18
- package/components/wordcloud-chart-options.es-BQib5Adk.cjs +18 -18
- package/components/wordcloud-chart-options.es-DPccPG_x.js +18 -18
- package/components/wordcloud-chart-options.fr-4orpVaAN.cjs +18 -18
- package/components/wordcloud-chart-options.fr-D6DKbL9I.js +18 -18
- package/components/wordcloud-chart-options.nl-BAdq6R0h.cjs +18 -18
- package/components/wordcloud-chart-options.nl-CBKMvA4E.js +18 -18
- package/components/wordcloud-chart-positioning.config-BQFzFNko.cjs +18 -18
- package/components/wordcloud-chart-positioning.config-Dk13J1zq.js +18 -18
- package/components/wordcloud-chart-slots.config-CvabtgbP.js +18 -18
- package/components/wordcloud-chart-slots.config-V29v2Fhr.cjs +18 -18
- package/components/zh-CN-CnxgkEiH.cjs +18 -18
- package/components/zh-CN-EbmFbkUF.js +18 -18
- package/components/zh-TW-CnxgkEiH.cjs +18 -18
- package/components/zh-TW-zX5KG7hP.js +18 -18
- package/custom-elements.json +55 -3
- package/package.json +2 -2
- package/react/components/ai-chat.component.ts +1 -1
- package/react/esm/components/ai-chat.component.d.ts +1 -1
- package/react/esm/components/ai-chat.component.js +1 -1
- package/react/package.json +2 -2
- package/standalone/chunks/{base-CR5wZnQk.js → base-DBoiLw2X.js} +1 -1
- package/standalone/chunks/{display-settings-binning-D3wYG0p7.js → display-settings-binning-BdL-A59O.js} +1 -1
- package/standalone/chunks/{display-settings-datetime-D37ERF0v.js → display-settings-datetime-DEOgG9Fn.js} +1 -1
- package/standalone/chunks/{display-settings-grand-totals-CKm9PkBj.js → display-settings-grand-totals-uYYRykWG.js} +1 -1
- package/standalone/chunks/{display-settings-numeric-f9Mdphm-.js → display-settings-numeric-BSCNC8eE.js} +1 -1
- package/standalone/chunks/{display-settings-period-over-period-Cl-vLKk3.js → display-settings-period-over-period-Cq6dAc0d.js} +1 -1
- package/standalone/chunks/{embed-B3y_k1ri.js → embed-BVDnEJte.js} +1 -1
- package/standalone/chunks/{filters-CIOtenxx.js → filters-DvUCMgUM.js} +1 -1
- package/standalone/chunks/{formula-codemirror-BXh_3Te_.js → formula-codemirror-BMr35_Qe.js} +1 -1
- package/standalone/chunks/{item-option-action-button-group-DdbUGL3Q.js → item-option-action-button-group-ChkHzrj7.js} +1 -1
- package/standalone/chunks/{item-option-base-CJwisW9b.js → item-option-base-USb5kln8.js} +1 -1
- package/standalone/chunks/{item-option-color-palette-picker-CIM_beO6.js → item-option-color-palette-picker-DZPKR8Dr.js} +1 -1
- package/standalone/chunks/{item-option-color-picker-CFeaAV1o.js → item-option-color-picker-CGHlkA30.js} +1 -1
- package/standalone/chunks/{item-option-color-range-DlZPq0gW.js → item-option-color-range-CpALVHsD.js} +1 -1
- package/standalone/chunks/{item-option-guidelines-DTTp08iA.js → item-option-guidelines-HHzEU0r2.js} +1 -1
- package/standalone/chunks/{item-option-multi-language-field-DPrary5L.js → item-option-multi-language-field-COcs0I2s.js} +1 -1
- package/standalone/chunks/{item-option-number-field-DqTWCfQm.js → item-option-number-field-B_eRAtHf.js} +1 -1
- package/standalone/chunks/{item-option-panel-PNWjgMMu.js → item-option-panel-Dvp20wQQ.js} +2 -2
- package/standalone/chunks/{item-option-picker-dpSAYz4b.js → item-option-picker-BUFJQkyo.js} +1 -1
- package/standalone/chunks/{item-option-position-picker-CHSKJ29N.js → item-option-position-picker-DMQgZ50L.js} +1 -1
- package/standalone/chunks/{item-option-positions-number-field-DaUTQCTD.js → item-option-positions-number-field-CezoJKkM.js} +1 -1
- package/standalone/chunks/{item-option-radio-button-group-cy5Lc7Yg.js → item-option-radio-button-group-Dc1NIqVl.js} +1 -1
- package/standalone/chunks/{item-option-slider-CA-mF5rp.js → item-option-slider-DXrcOBkc.js} +1 -1
- package/standalone/chunks/{item-option-switch-Dp2L-Owv.js → item-option-switch-DYJCL_ZU.js} +1 -1
- package/standalone/chunks/{item-option-text-field-dmwmrTKe.js → item-option-text-field-DAzMUN29.js} +1 -1
- package/standalone/chunks/{item-slot-picker-panel-DRqvLkhG.js → item-slot-picker-panel-DiRjYi-2.js} +2 -2
- package/standalone/chunks/{load-data-fields-for-datasets-D74yX8C2.js → load-data-fields-for-datasets-D6Mm3A1F.js} +1 -1
- package/standalone/chunks/{load-formula-codemirror-D1TsWHH6.js → load-formula-codemirror-DY6C-Kxf.js} +1 -1
- package/standalone/chunks/{localized-mixin-j1gjzMSn.js → localized-mixin-BJ8UiX2u.js} +1 -1
- package/standalone/chunks/{luzmo-icon-markup-BENMHpB_.js → luzmo-icon-markup-Cw93OB80.js} +1 -1
- package/standalone/chunks/{task-BRrSUTFr.js → task-pfWn4DHD.js} +1 -1
- package/standalone/interactive-viz-item.js +19 -19
- package/standalone/item-grid.js +19 -19
- package/standalone/manifest.json +33 -33
- package/components/dataset-selector-row-BP4Txybx.cjs +0 -102
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import{n as e,t}from"./localized-mixin-j1gjzMSn.js";import{n}from"./lit-localize-CIGP-NUw.js";import{t as r}from"./localized-decorator-Buib6Rq1.js";import{t as i}from"./luzmoAngleDown-PNrItYzK.js";import{a,t as o}from"./calculate-data-field-icon-CrEVAfzJ.js";import{t as s}from"./luzmo-icon-markup-BENMHpB_.js";import{n as c,r as l,t as u}from"./base-CR5wZnQk.js";import{t as d}from"./decompose-numeric-format-BXLQ97e2.js";import{t as f}from"./localize-BXHWaHdZ.js";import{html as p,nothing as m,property as h,query as g,state as _,unsafeCSS as v}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/lit.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/action-button.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/action-group.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/field-label.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/number-field.js";import{removeSlottableRequest as y}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/overlay.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/picker.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/popover.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/tooltip.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/menu.js";var b=`:host .settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-numeric-gap,var(--display-settings-numeric-gap));display:flex}.duration-angle-down-icon{margin-inline-start:var(--luzmo-numeric-duration-levels-dropdown-icon-margin-inline-start,var(--numeric-duration-levels-dropdown-icon-margin-inline-start))}.dataset-header{white-space:nowrap;text-overflow:ellipsis;text-transform:uppercase;max-width:100%;color:var(--luzmo-font-color);white-space:nowrap;cursor:default;margin:.5rem 1rem;font-weight:600;overflow:hidden}.no-weight-label{margin-left:1rem}.with-secondary-icon{clip-path:polygon(0 0,60% 0,65% 60%,100% 65%,100% 100%,0 100%)}.secondary-icon{width:auto;font-size:.75em;line-height:1;position:absolute;bottom:45%;left:60%}.data-icon-type{text-align:center;width:1.5rem;display:inline-block;position:relative}:host{--display-settings-numeric-gap:var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-2)}:host([size=s]){--display-settings-numeric-gap:var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-1)}:host([size=l]){--display-settings-numeric-gap:var(--luzmo-spacing-4);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-3)}:host([size=xl]){--display-settings-numeric-gap:var(--luzmo-spacing-5);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-4)}`,x={sum:()=>n(`Sum`,{desc:`Aggregation label`}),cumulativesum:()=>n(`Cumulative sum`,{desc:`Aggregation label`}),average:()=>n(`Average`,{desc:`Aggregation label`}),median:()=>n(`Median`,{desc:`Aggregation label`}),count:()=>n(`Count rows`,{desc:`Aggregation label`}),distinctcount:()=>n(`Count distinct`,{desc:`Aggregation label`}),min:()=>n(`Minimum`,{desc:`Aggregation label`}),max:()=>n(`Maximum`,{desc:`Aggregation label`}),stddev:()=>n(`Standard deviation`,{desc:`Aggregation label`}),rate:()=>n(`Rate`,{desc:`Aggregation label`})},S={general:`123`,percentage:`%`,scientific:`SI`},C={time:()=>n(`Time`,{desc:`Time format option`}),short:()=>n(`Short`,{desc:`Short format option`}),long:()=>n(`Long`,{desc:`Long format option`})},w={Auto:{auto:!0,label:()=>n(`Auto`,{desc:`Automatic setting of the option`})},"1,000.00":{auto:!1,label:()=>`1,000.00`,thousandSeparator:`,`,decimalSeparator:`.`,hiddenFor:`scientific`},"1.000,00":{auto:!1,label:()=>`1.000,00`,thousandSeparator:`.`,decimalSeparator:`,`,hiddenFor:`scientific`},"1000.00":{auto:!1,label:()=>`1000.00`,decimalSeparator:`.`},"1000,00":{auto:!1,label:()=>`1000,00`,decimalSeparator:`,`}},T={levels:[{level:1,label:`years`},{level:2,label:`quarters`},{level:3,label:`months`},{level:4,label:`weeks`},{level:5,label:`days`},{level:6,label:`hours`},{level:7,label:`minutes`},{level:8,label:`seconds`},{level:9,label:`milliseconds`}]},E=class extends t(c(l,{validSizes:Object.values(u)})){constructor(...e){super(...e),this.slotContent={},this.measureColumns=[],this._durationLevels=[],this._renderDurationLevelMenu=!1,this._handleSlottableRequest=e=>{this._renderDurationLevelMenu=e.data!==y},this._sendEvent=()=>{let e={...this.slotContent,format:this._format,aggregationFunc:this._aggregationFunc};this._aggregationWeightColumn?e.aggregationWeight={...this._aggregationWeightColumn}:delete e.aggregationWeight,this._displayMode===`duration`?(e.duration=e.duration??{},e.duration.format=this._durationFormat,e.duration.levels=this._durationLevels):delete e.duration,this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:e}}))}}static get styles(){return[v(b)]}_parseSavedNumericFormatSettings(){if(this._displayMode=this.slotContent?.subtype===`duration`?`duration`:`numeric`,this._durationFormat=this.slotContent?.duration?.format??`short`,this._durationLevels=this.slotContent?.duration?.levels??[1],this._displayMode===`duration`)this._precision=2,this._commaDecimals=!1,this._thousandSeparator=!1;else{this._format=this.slotContent?.format??`.0f`;let e=d(this._format??`.0f`);this._isAuto=e.typeFormat?.includes(`a`)??!1,[`%`,`a%`,`y`,`ay`].includes(e.typeFormat)?this._displayAs=`percentage`:[`s`,`as`,`w`,`aw`].includes(e.typeFormat)?this._displayAs=`scientific`:this._displayAs=`general`,this._precision=e.precision?Number.parseInt(e.precision.replace(`.`,``),10):+(this._displayAs===`scientific`),this._commaDecimals=[`z`,`az`,`y`,`ay`,`w`,`aw`].includes(e.typeFormat),this._thousandSeparator=e.comma===`,`,this._isAuto?this._numericFormatGroup=`Auto`:this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup=`1.000,00`:!this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup=`1,000.00`:this._commaDecimals&&!this._thousandSeparator?this._numericFormatGroup=`1000,00`:!this._commaDecimals&&!this._thousandSeparator&&(this._numericFormatGroup=`1000.00`)}}_setNumericDisplayAs(){this._displayAs=this._displayAsElement?.selected?.[0]??`general`,this._displayAs===`scientific`&&(this._precision=Math.max(this._precision??0,1),this._thousandSeparator=!1),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setNumericSeparators(e){let t=w[e?.detail??`Auto`];this._thousandSeparator=[`,`,`.`].includes(t?.thousandSeparator??``),this._commaDecimals=t?.decimalSeparator===`,`,this._isAuto=t?.auto,this._setNumericFormat(),this._sendEvent()}_setPrecision(){Number.isNaN(this._precisionElement.value)&&(this._precisionElement.value=+(this._displayAs===`scientific`)),this._precision=this._precisionElement.value,this._setNumericFormat(),this._sendEvent()}_setNumericFormat(){let e=`f`,t=this.slotContent.subtype===`duration`?this._durationLevels&&this._durationLevels?.length===1?`numeric`:`duration`:`numeric`;if(this._maxDurationLevel=Math.min(...this._durationLevels),t===`duration`)(![`time`,`short`,`long`].includes(this._durationFormat??``)||this._maxDurationLevel<6&&this._durationFormat===`time`)&&(this._durationFormat=`short`);else{let t=this._displayAs??`general`;t===`general`&&this._commaDecimals?e=`z`:t===`percentage`&&this._commaDecimals?e=`y`:t===`scientific`&&this._commaDecimals?e=`w`:t===`percentage`?e=`%`:t===`scientific`&&(e=`s`),this._format=(this._thousandSeparator||this._isAuto?`,`:``)+`.`+this._precision+(this._isAuto?`a`:``)+e}}_setAggregationFunc(){let e=this._aggregationElement.value,t=this._aggregationFunc,n=this.slotContent.format;if(e!==(t===`weightedaverage`?`average`:t)){if(this._aggregationFunc=e===`average`&&this._aggregationWeightColumn?.column?`weightedaverage`:e,t===`rate`){let e=d(n),t=[`%`,`y`,`a%`,`ay`].includes(e.typeFormat);this.slotContent.subtype===`currency`&&t&&this._setNumericDisplayAs()}this._sendEvent(),(this._aggregationFunc===`rate`||t===`rate`)&&this.requestUpdate()}}_setAggregationWeight(){let e=this._aggregationWeightElement.value,t=this._aggregationFunc;if(e===`none`)this._aggregationWeightColumn=void 0,this._aggregationFunc===`weightedaverage`&&(this._aggregationFunc=`average`);else{let t,n;for(let r of this.measureColumns??[]){let i=r.columns?.find(t=>t.id===e);if(i){t=i,n=r.datasetId;break}}t&&(this._aggregationWeightColumn={column:t.id,set:n,columnSubType:t.subtype}),this._aggregationFunc===`average`&&(this._aggregationFunc=`weightedaverage`)}this._sendEvent(),this.requestUpdate(),(t===`weightedaverage`&&this._aggregationFunc===`average`||t===`average`&&this._aggregationFunc===`weightedaverage`)&&this.requestUpdate()}_setDurationLevels(){let e=this._durationLevels,t=this._durationLevelsElement.value.split(`,`).filter(e=>e!==``).map(e=>Number.parseInt(e,10));this._durationLevels=(t?.length??0)>=1?t:e,this._maxDurationLevel=Math.min(...this._durationLevels),this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setDurationFormat(){this._durationFormat=this._durationFormatElement?.selected?.[0],this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_fillTimeDurationLevels(){if(this._durationFormat===`time`){let e=this._durationLevels.sort().at(-1);if([7,8,9].includes(e)){for(let t of{lev7:[6],lev8:[6,7],lev9:[6,7,8]}[`lev`+e])this._durationLevels.includes(t)||this._durationLevels.push(t);this._durationLevels=[...this._durationLevels].sort()}}}willUpdate(e){super.willUpdate(e),e.has(`slotContent`)&&(this._parseSavedNumericFormatSettings(),this._aggregationFunc=this.slotContent?.aggregationFunc??(this.slotContent?.type===`numeric`?`sum`:`count`),this._aggregationWeightColumn=this.slotContent?.aggregationWeight,this._isFormula=this.slotContent?.formula||this.slotContent?.formulaId)}_renderDurationLevelsSettings(){let e=T.levels.map(e=>{let t=!1;return this._durationFormat===`time`&&e.level>=6&&this._durationLevels.includes(e.level)&&e.level!==Math.max(...this._durationLevels)&&(t=!0),this._durationLevels.length===1&&this._durationLevels.includes(e.level)&&(t=!0),p`<luzmo-menu-item
|
|
2
|
+
import{n as e,t}from"./localized-mixin-BJ8UiX2u.js";import{n}from"./lit-localize-CIGP-NUw.js";import{t as r}from"./localized-decorator-Buib6Rq1.js";import{t as i}from"./luzmoAngleDown-PNrItYzK.js";import{a,t as o}from"./calculate-data-field-icon-CrEVAfzJ.js";import{t as s}from"./luzmo-icon-markup-Cw93OB80.js";import{n as c,r as l,t as u}from"./base-DBoiLw2X.js";import{t as d}from"./decompose-numeric-format-BXLQ97e2.js";import{t as f}from"./localize-BXHWaHdZ.js";import{html as p,nothing as m,property as h,query as g,state as _,unsafeCSS as v}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/lit.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/action-button.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/action-group.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/field-label.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/number-field.js";import{removeSlottableRequest as y}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/overlay.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/picker.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/popover.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/tooltip.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/menu.js";var b=`:host .settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-numeric-gap,var(--display-settings-numeric-gap));display:flex}.duration-angle-down-icon{margin-inline-start:var(--luzmo-numeric-duration-levels-dropdown-icon-margin-inline-start,var(--numeric-duration-levels-dropdown-icon-margin-inline-start))}.dataset-header{white-space:nowrap;text-overflow:ellipsis;text-transform:uppercase;max-width:100%;color:var(--luzmo-font-color);white-space:nowrap;cursor:default;margin:.5rem 1rem;font-weight:600;overflow:hidden}.no-weight-label{margin-left:1rem}.with-secondary-icon{clip-path:polygon(0 0,60% 0,65% 60%,100% 65%,100% 100%,0 100%)}.secondary-icon{width:auto;font-size:.75em;line-height:1;position:absolute;bottom:45%;left:60%}.data-icon-type{text-align:center;width:1.5rem;display:inline-block;position:relative}:host{--display-settings-numeric-gap:var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-2)}:host([size=s]){--display-settings-numeric-gap:var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-1)}:host([size=l]){--display-settings-numeric-gap:var(--luzmo-spacing-4);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-3)}:host([size=xl]){--display-settings-numeric-gap:var(--luzmo-spacing-5);--numeric-duration-levels-dropdown-icon-margin-inline-start:var(--luzmo-spacing-4)}`,x={sum:()=>n(`Sum`,{desc:`Aggregation label`}),cumulativesum:()=>n(`Cumulative sum`,{desc:`Aggregation label`}),average:()=>n(`Average`,{desc:`Aggregation label`}),median:()=>n(`Median`,{desc:`Aggregation label`}),count:()=>n(`Count rows`,{desc:`Aggregation label`}),distinctcount:()=>n(`Count distinct`,{desc:`Aggregation label`}),min:()=>n(`Minimum`,{desc:`Aggregation label`}),max:()=>n(`Maximum`,{desc:`Aggregation label`}),stddev:()=>n(`Standard deviation`,{desc:`Aggregation label`}),rate:()=>n(`Rate`,{desc:`Aggregation label`})},S={general:`123`,percentage:`%`,scientific:`SI`},C={time:()=>n(`Time`,{desc:`Time format option`}),short:()=>n(`Short`,{desc:`Short format option`}),long:()=>n(`Long`,{desc:`Long format option`})},w={Auto:{auto:!0,label:()=>n(`Auto`,{desc:`Automatic setting of the option`})},"1,000.00":{auto:!1,label:()=>`1,000.00`,thousandSeparator:`,`,decimalSeparator:`.`,hiddenFor:`scientific`},"1.000,00":{auto:!1,label:()=>`1.000,00`,thousandSeparator:`.`,decimalSeparator:`,`,hiddenFor:`scientific`},"1000.00":{auto:!1,label:()=>`1000.00`,decimalSeparator:`.`},"1000,00":{auto:!1,label:()=>`1000,00`,decimalSeparator:`,`}},T={levels:[{level:1,label:`years`},{level:2,label:`quarters`},{level:3,label:`months`},{level:4,label:`weeks`},{level:5,label:`days`},{level:6,label:`hours`},{level:7,label:`minutes`},{level:8,label:`seconds`},{level:9,label:`milliseconds`}]},E=class extends t(c(l,{validSizes:Object.values(u)})){constructor(...e){super(...e),this.slotContent={},this.measureColumns=[],this._durationLevels=[],this._renderDurationLevelMenu=!1,this._handleSlottableRequest=e=>{this._renderDurationLevelMenu=e.data!==y},this._sendEvent=()=>{let e={...this.slotContent,format:this._format,aggregationFunc:this._aggregationFunc};this._aggregationWeightColumn?e.aggregationWeight={...this._aggregationWeightColumn}:delete e.aggregationWeight,this._displayMode===`duration`?(e.duration=e.duration??{},e.duration.format=this._durationFormat,e.duration.levels=this._durationLevels):delete e.duration,this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:e}}))}}static get styles(){return[v(b)]}_parseSavedNumericFormatSettings(){if(this._displayMode=this.slotContent?.subtype===`duration`?`duration`:`numeric`,this._durationFormat=this.slotContent?.duration?.format??`short`,this._durationLevels=this.slotContent?.duration?.levels??[1],this._displayMode===`duration`)this._precision=2,this._commaDecimals=!1,this._thousandSeparator=!1;else{this._format=this.slotContent?.format??`.0f`;let e=d(this._format??`.0f`);this._isAuto=e.typeFormat?.includes(`a`)??!1,[`%`,`a%`,`y`,`ay`].includes(e.typeFormat)?this._displayAs=`percentage`:[`s`,`as`,`w`,`aw`].includes(e.typeFormat)?this._displayAs=`scientific`:this._displayAs=`general`,this._precision=e.precision?Number.parseInt(e.precision.replace(`.`,``),10):+(this._displayAs===`scientific`),this._commaDecimals=[`z`,`az`,`y`,`ay`,`w`,`aw`].includes(e.typeFormat),this._thousandSeparator=e.comma===`,`,this._isAuto?this._numericFormatGroup=`Auto`:this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup=`1.000,00`:!this._commaDecimals&&this._thousandSeparator?this._numericFormatGroup=`1,000.00`:this._commaDecimals&&!this._thousandSeparator?this._numericFormatGroup=`1000,00`:!this._commaDecimals&&!this._thousandSeparator&&(this._numericFormatGroup=`1000.00`)}}_setNumericDisplayAs(){this._displayAs=this._displayAsElement?.selected?.[0]??`general`,this._displayAs===`scientific`&&(this._precision=Math.max(this._precision??0,1),this._thousandSeparator=!1),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setNumericSeparators(e){let t=w[e?.detail??`Auto`];this._thousandSeparator=[`,`,`.`].includes(t?.thousandSeparator??``),this._commaDecimals=t?.decimalSeparator===`,`,this._isAuto=t?.auto,this._setNumericFormat(),this._sendEvent()}_setPrecision(){Number.isNaN(this._precisionElement.value)&&(this._precisionElement.value=+(this._displayAs===`scientific`)),this._precision=this._precisionElement.value,this._setNumericFormat(),this._sendEvent()}_setNumericFormat(){let e=`f`,t=this.slotContent.subtype===`duration`?this._durationLevels&&this._durationLevels?.length===1?`numeric`:`duration`:`numeric`;if(this._maxDurationLevel=Math.min(...this._durationLevels),t===`duration`)(![`time`,`short`,`long`].includes(this._durationFormat??``)||this._maxDurationLevel<6&&this._durationFormat===`time`)&&(this._durationFormat=`short`);else{let t=this._displayAs??`general`;t===`general`&&this._commaDecimals?e=`z`:t===`percentage`&&this._commaDecimals?e=`y`:t===`scientific`&&this._commaDecimals?e=`w`:t===`percentage`?e=`%`:t===`scientific`&&(e=`s`),this._format=(this._thousandSeparator||this._isAuto?`,`:``)+`.`+this._precision+(this._isAuto?`a`:``)+e}}_setAggregationFunc(){let e=this._aggregationElement.value,t=this._aggregationFunc,n=this.slotContent.format;if(e!==(t===`weightedaverage`?`average`:t)){if(this._aggregationFunc=e===`average`&&this._aggregationWeightColumn?.column?`weightedaverage`:e,t===`rate`){let e=d(n),t=[`%`,`y`,`a%`,`ay`].includes(e.typeFormat);this.slotContent.subtype===`currency`&&t&&this._setNumericDisplayAs()}this._sendEvent(),(this._aggregationFunc===`rate`||t===`rate`)&&this.requestUpdate()}}_setAggregationWeight(){let e=this._aggregationWeightElement.value,t=this._aggregationFunc;if(e===`none`)this._aggregationWeightColumn=void 0,this._aggregationFunc===`weightedaverage`&&(this._aggregationFunc=`average`);else{let t,n;for(let r of this.measureColumns??[]){let i=r.columns?.find(t=>t.id===e);if(i){t=i,n=r.datasetId;break}}t&&(this._aggregationWeightColumn={column:t.id,set:n,columnSubType:t.subtype}),this._aggregationFunc===`average`&&(this._aggregationFunc=`weightedaverage`)}this._sendEvent(),this.requestUpdate(),(t===`weightedaverage`&&this._aggregationFunc===`average`||t===`average`&&this._aggregationFunc===`weightedaverage`)&&this.requestUpdate()}_setDurationLevels(){let e=this._durationLevels,t=this._durationLevelsElement.value.split(`,`).filter(e=>e!==``).map(e=>Number.parseInt(e,10));this._durationLevels=(t?.length??0)>=1?t:e,this._maxDurationLevel=Math.min(...this._durationLevels),this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setDurationFormat(){this._durationFormat=this._durationFormatElement?.selected?.[0],this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_fillTimeDurationLevels(){if(this._durationFormat===`time`){let e=this._durationLevels.sort().at(-1);if([7,8,9].includes(e)){for(let t of{lev7:[6],lev8:[6,7],lev9:[6,7,8]}[`lev`+e])this._durationLevels.includes(t)||this._durationLevels.push(t);this._durationLevels=[...this._durationLevels].sort()}}}willUpdate(e){super.willUpdate(e),e.has(`slotContent`)&&(this._parseSavedNumericFormatSettings(),this._aggregationFunc=this.slotContent?.aggregationFunc??(this.slotContent?.type===`numeric`?`sum`:`count`),this._aggregationWeightColumn=this.slotContent?.aggregationWeight,this._isFormula=this.slotContent?.formula||this.slotContent?.formulaId)}_renderDurationLevelsSettings(){let e=T.levels.map(e=>{let t=!1;return this._durationFormat===`time`&&e.level>=6&&this._durationLevels.includes(e.level)&&e.level!==Math.max(...this._durationLevels)&&(t=!0),this._durationLevels.length===1&&this._durationLevels.includes(e.level)&&(t=!0),p`<luzmo-menu-item
|
|
3
3
|
value=${e.level}
|
|
4
4
|
?selected=${this._durationLevels.includes(e.level)}
|
|
5
5
|
?disabled=${t}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import{n as e,t}from"./localized-mixin-
|
|
2
|
+
import{n as e,t}from"./localized-mixin-BJ8UiX2u.js";import{n}from"./lit-localize-CIGP-NUw.js";import{t as r}from"./localized-decorator-Buib6Rq1.js";import{n as i,r as a,t as o}from"./base-DBoiLw2X.js";import{t as s}from"./decompose-numeric-format-BXLQ97e2.js";import{t as c}from"./localize-BXHWaHdZ.js";import{t as l}from"./period-over-period-condition.const-AC_onvUf.js";import{html as u,property as d,query as f,state as p,unsafeCSS as m}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/lit.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/action-button.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/action-group.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/field-label.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/number-field.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/picker.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/menu.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/accordion.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/checkbox.js";var h={none:()=>n(`None`),past:()=>n(`Past value`,{desc:`Period option`}),absoluteChange:()=>n(`Absolute change`,{desc:`Period option`}),percentageChange:()=>n(`% change`,{desc:`Period option`})},g=[{key:`periods`,i18n:()=>n(`Periods`,{desc:`Period option`})},{key:`years`,i18n:()=>n(`Years`,{desc:`Period option`})},{key:`quarters`,i18n:()=>n(`Quarters`,{desc:`Period option`})},{key:`months`,i18n:()=>n(`Months`,{desc:`Period option`})},{key:`weeks`,i18n:()=>n(`Weeks`,{desc:`Period option`})},{key:`days`,i18n:()=>n(`Days`,{desc:`Period option`})},{key:`hours`,i18n:()=>n(`Hours`,{desc:`Period option`})},{key:`minutes`,i18n:()=>n(`Minutes`,{desc:`Period option`})},{key:`seconds`,i18n:()=>n(`Seconds`,{desc:`Period option`})}],_=function(e){return e.Relative=`relative`,e.UserDefined=`user-defined`,e}({}),v=[{key:`relative`,i18n:()=>n(`Relative`,{desc:`Range type option`})},{key:`user-defined`,i18n:()=>n(`User-defined`,{desc:`Range type option`})}],y=`:host{font-family:var(--luzmo-display-settings-period-over-period-font-family,var(--luzmo-font-family));font-size:var(--luzmo-display-settings-period-over-period-font-size,var(--display-settings-period-over-period-font-size));color:var(--luzmo-display-settings-period-over-period-color,var(--luzmo-font-color))}:host .settings-container{flex-direction:column;gap:0;display:flex}:host .settings-container:first-of-type{margin-right:var(--luzmo-spacing-4)}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-period-over-period-gap,var(--display-settings-period-over-period-gap));display:flex}:host .wrap{flex-wrap:wrap}:host .setting.period-number-setting{align-items:center;display:flex}:host .dynamic-settings-container{max-width:var(--luzmo-display-setting-period-over-period-dynamic-max-width,var(--display-setting-period-over-period-dynamic-max-width))}:host luzmo-accordion{--luzmo-accordion-item-content-area-top-to-content:0;--luzmo-accordion-item-content-padding-left:var(--luzmo-spacing-1);--luzmo-accordion-item-header-bottom-margin:0;--luzmo-accordion-item-content-area-bottom-to-content:var(--luzmo-spacing-2);--accordion-item-header-font-size:var(--luzmo-display-settings-period-over-period-font-size,var(--display-settings-period-over-period-font-size));--accordion-item-content-font-size:var(--luzmo-display-settings-period-over-period-font-size,var(--display-settings-period-over-period-font-size))}:host .label-container{align-items:center;gap:var(--luzmo-spacing-2);display:flex}:host .academy-link{color:var(--luzmo-link-color);font-size:var(--luzmo-font-size-s);margin-left:var(--luzmo-spacing-2);text-decoration:none}:host .academy-link:hover{color:var(--luzmo-link-color-hover)}:host(:focus){--luzmo-menu-item-label-icon-color-focus:var(--luzmo-menu-item-label-icon-color-focus,var(--luzmo-font-color))}luzmo-menu-item{--luzmo-menu-item-tooltip-font-size:var(--luzmo-display-settings-tooltip-font-size)}luzmo-checkbox{--checkbox-font-size:var(--luzmo-display-settings-period-over-period-font-size,var(--display-settings-period-over-period-font-size))}luzmo-picker{--picker-font-size:var(--luzmo-display-settings-period-over-period-font-size,var(--display-settings-period-over-period-font-size))}luzmo-number-field{--text-field-placeholder-font-size:var(--luzmo-display-settings-period-over-period-font-size,var(--display-settings-period-over-period-font-size));--stepper-button-font-size:var(--luzmo-display-settings-period-over-period-font-size,var(--display-settings-period-over-period-font-size))}:host{--display-settings-period-over-period-gap:var(--luzmo-spacing-3);--display-settings-period-over-period-font-size:var(--luzmo-font-size);--display-setting-period-over-period-dynamic-max-width:22rem}:host([size=xs]){--display-settings-period-over-period-gap:var(--luzmo-spacing-2);--display-settings-period-over-period-font-size:var(--luzmo-font-size-xs);--display-setting-period-over-period-dynamic-max-width:17rem}:host([size=s]){--display-settings-period-over-period-gap:var(--luzmo-spacing-3);--display-settings-period-over-period-font-size:var(--luzmo-font-size-s);--display-setting-period-over-period-dynamic-max-width:19rem}:host([size=l]){--display-settings-period-over-period-gap:var(--luzmo-spacing-4);--display-settings-period-over-period-font-size:var(--luzmo-font-size-l);--display-setting-period-over-period-dynamic-max-width:26rem}:host([size=xl]){--display-settings-period-over-period-gap:var(--luzmo-spacing-5);--display-settings-period-over-period-font-size:var(--luzmo-font-size-xl);--display-setting-period-over-period-dynamic-max-width:30rem}`,b=class extends t(i(a,{validSizes:Object.values(o)})){constructor(...e){super(...e),this.slotContent={},this.allowPeriodsWithoutDatetimeColumn=!1,this.hidePastValue=!1,this.linkedDatasetDatetimeColumns=[],this.needsOffsetDatetimeColumn=()=>this.periodOverPeriodUiType===l.NoDatetimeColumnButComparisonFilters||this.periodOverPeriodUiType===l.NoDatetimeColumnAndNoComparisonFilters}static get styles(){return[m(y)]}willUpdate(e){if(super.willUpdate(e),e.has(`slotContent`)){this._periodComparison=this.slotContent?.periodOverPeriod?.type,this._numberPeriods=this.slotContent?.periodOverPeriod?.quantity;let e=this.slotContent?.periodOverPeriod?.level;this._periodLevel=typeof e==`number`&&e>=0&&e<g.length?g[e].key:this.slotContent?.periodOverPeriod?.level||`periods`,this._incompletePeriods=this.slotContent?.periodOverPeriod?.periodToDate,this._offsetDateColumn=this.slotContent?.periodOverPeriod?.offsetDateColumn,this._minLevel=this.slotContent?.periodOverPeriod?.minLevel??this.slotContent?.periodOverPeriod?.offsetDateColumn?.lowestLevel??this.slotContent?.lowestLevel??(this.slotContent?.subtype===`date`?5:9),this._rangeType=this.slotContent?.periodOverPeriod?.rangeType}this._periodComparison=this._periodComparison??`none`,this._numberPeriods=this._numberPeriods??1,this._periodLevel=this._periodLevel??`periods`,this._incompletePeriods=this._incompletePeriods??!1,this._minLevel=this._minLevel??9,this._rangeType=this._rangeType??_.Relative,this._offsetDateColumn=this._offsetDateColumn||void 0}setPeriodComparison(){let e={...this.slotContent};this.setInitialOffsetDateColumn(e),this._periodComparison=this._periodComparisonElement.value;let t=s(this.slotContent?.format),n=[`%`,`y`,`a%`,`ay`].includes(t.typeFormat),r=t.typeFormat.includes(`a`),i=r?`a`:``,a=t.comma===`,`||r?`,`:``,o=t.precision?Number.parseInt(t.precision.replace(`.`,``),10):0,c=[`z`,`az`,`y`,`ay`,`w`,`aw`].includes(t.typeFormat);this._periodComparison===`percentageChange`&&n&&(e.format=`${a}.${o}${i}${c?`z`:`f`}`),this.sendEvent(e)}setNumberOfPeriods(){this._numberPeriods=Number.parseInt(this._numberPeriodsElement.value,10);let e={...this.slotContent};this.sendEvent(e)}setPeriodLevel(){this._periodLevel=this._periodLevelElement.value;let e={...this.slotContent};this.sendEvent(e)}setOffsetDateColumn(){this._offsetDateColumn=this.linkedDatasetDatetimeColumns.find(e=>e.id===this._offsetDateColumnElement.value);let e={...this.slotContent};this.sendEvent(e)}setIncompletePeriods(){this._incompletePeriods=this._incompletePeriodsElement.checked;let e={...this.slotContent};this.sendEvent(e)}setRangeType(e){this._rangeType=e;let t={...this.slotContent};this.setInitialOffsetDateColumn(t),this.sendEvent(t)}sendEvent(e){let t={...e},n=g.findIndex(e=>e.key===this._periodLevel);t.periodOverPeriod={...e.periodOverPeriod,type:this._periodComparison,level:Math.max(n,0),quantity:this._numberPeriods,periodToDate:this._incompletePeriods,minLevel:this._minLevel,rangeType:this._rangeType,offsetDateColumn:this._offsetDateColumn},this._periodComparison===`none`&&delete t.periodOverPeriod,this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:t}}))}incompletePeriodsSetting(){return u`
|
|
3
3
|
<div class="settings-row">
|
|
4
4
|
<div class="setting">
|
|
5
5
|
<luzmo-checkbox
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import{LitElement as e,css as t,html as n,property as r,query as i,state as a,styleMap as o}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.
|
|
2
|
+
import{LitElement as e,css as t,html as n,property as r,query as i,state as a,styleMap as o}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/lit.js";var s=(e,t)=>{let n=`The dashboard component encountered an error`;typeof t?.dashboardId==`string`&&(n+=` for dashboard with id ${t.dashboardId}`),typeof t?.dashboardSlug==`string`&&(n+=` for dashboard with slug ${t.dashboardSlug}`),typeof t?.container==`string`&&(n+=` in container ${t.container}`),e&&(n+=`:
|
|
3
3
|
${e}`,console.warn(n))},c=e=>{let t=!1,n=``,r=(document.body||document.documentElement).style,i={svg:!!(`createElementNS`in document&&document.createElementNS(`http://www.w3.org/2000/svg`,`svg`).createSVGRect),flexbox:r.webkitFlexWrap===``||r.flexWrap===``,postMessage:!!window.postMessage};for(let r of[`svg`,`flexbox`,`postMessage`])i[r]||(t=!0,e.browserNotSupported=e.browserNotSupported||[],e.browserNotSupported.push(r),n+=`Your browser does not support: ${r}
|
|
4
4
|
`);let a=window.navigator.userAgent,o=a.includes(`MSIE`),c=a.includes(`Trident/`);(o||c)&&(t=!0,n=`IE is not supported.`),t&&s(n)},l={appServer:`https://app.luzmo.com/`,apiHost:`https://api.luzmo.com/`,dashboardId:null,dashboardSlug:null,container:null,key:null,token:null,language:`auto`,editorLanguage:`auto`,editMode:null,screenMode:null,switchScreenModeOnResize:!0,itemId:null,theme:``,mainColor:``,itemDimensions:{width:`auto`,height:`auto`},loaderBackground:`#f9f9f9`,loaderFontColor:`#5a5a5a`,loaderSpinnerColor:`rgb(68, 52, 255)`,loaderSpinnerBackground:`rgba(169, 169, 169, 0.14)`,timezoneId:null,contextId:null},u=[{mode:`mobile`,width:[150,767]},{mode:`tablet`,width:[768,1199]},{mode:`desktop`,width:[1200,1599]},{mode:`largeScreen`,width:[1600,9999]},{mode:`fixed`,width:[]}],d={initializing:{en:`Initializing...`,nl:`Laden...`,fr:`Chargement...`,de:`Initialisiere...`,es:`Inicializando...`},errorDashboard:{en:`Oops, we could not load this dashboard!`,nl:`Oeps, we konden het dashboard niet laden.`,fr:`Le chargement a echoué.`,de:`Hoppla, wir konnten dieses Dashboard nicht laden!`,es:`¡Ups! No pudimos cargar este tablero.`},errorItem:{en:`Oops, we could not load this item!`,nl:`Oeps, we konden de grafiek niet laden.`,fr:`Le chargement a echoué.`,de:`Hoppla, wir konnten dieses Diagramm nicht laden!`,es:`¡Ups! No pudimos cargar este elemento.`}},f=e=>e?e.endsWith(`/`)?e:`${e}/`:``,p=e=>e?e.endsWith(`/`)?e.slice(0,-1):e:``,m=(e,t,n,r)=>{let i=(e,t)=>{let n=e.users.find(e=>e.id===t.id),r=n&&n.userAccessRight?{flagRead:n.userAccessRight.flagRead,flagUse:n.userAccessRight.flagUse,flagModify:n.userAccessRight.flagModify,flagOwn:n.userAccessRight.flagOwn}:{flagRead:!1,flagUse:!1,flagModify:!1,flagOwn:!1},i=e.groups.filter(e=>t.userGroups.includes(e.id)||e.public===!0).map(e=>{if(e.groupAccessRight)return e.groupAccessRight});for(let e of i)!r.flagRead&&e.flagRead&&(r.flagRead=e.flagRead),!r.flagUse&&e.flagUse&&(r.flagUse=e.flagUse),!r.flagModify&&e.flagModify&&(r.flagModify=e.flagModify),!r.flagOwn&&e.flagOwn&&(r.flagOwn=e.flagOwn);let a=e.integrations?.length>0?e.integrations.map(e=>{if(e.integrationAccessRight)return e.integrationAccessRight}):[];for(let e of a)!r.flagRead&&e.flagRead&&(r.flagRead=e.flagRead),!r.flagUse&&e.flagUse&&(r.flagUse=e.flagUse),!r.flagModify&&e.flagModify&&(r.flagModify=e.flagModify);return r},a=(e,t)=>{if(e==null)return``;if(typeof e!=`object`||Object.keys(e).length===0)return typeof e==`object`&&Object.keys(e).length===0?``:e;let n;return n=t&&e[t]?e[t]:e[Object.keys(e)[0]],n??=``,n},o=[];for(let s of e){let e={accessibleBy:[],accessRights:i(s,n),id:s.id,modifiedAt:s.modified_at,name:a(s.name,r.language),slug:null,tags:s.tags.map(e=>e.tag).sort((e,t)=>e.localeCompare(t))},c=s.integrations.find(e=>e.id===t);c?.integrationAccessRight?.slug&&(e.slug=c.integrationAccessRight.slug);let l=s.users.map(e=>({model:`User`,id:e.id,name:a(e.name,n.locale_id)})),u=s.groups.map(e=>({model:`Group`,id:e.id,name:a(e.name,n.locale_id)||{}})),d=s.integrations.map(e=>({model:`Integration`,id:e.id,name:a(e.name,n.locale_id)||{}}));e.accessibleBy=[...l,...u,...d],o.push(e)}return o},h=e=>{let t=/^(%20|\s)*(javascript|data)/im,n=/[^\u0020-\u007E]/gim,r=/^([^:]+):/gm,i=new Set([`.`,`/`]),a=e=>i.has(e[0]);if(!e)return`about:blank`;let o=e.replaceAll(n,``).trim();if(a(o))return o;let s=o.match(r);if(!s)return o;let c=s[0];return t.test(c)?`about:blank`:o},g=e=>JSON.parse(JSON.stringify(e)),_=e=>e&&typeof e==`object`,ee=(e,t)=>(Object.entries(t).forEach(([t,n])=>{t in e?e[t]===void 0?e[t]=n:e[t]=_(n)?ee(e[t],n):e[t]:e[t]=n}),e),v=()=>`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replaceAll(/[xy]/g,function(e){let t=Math.random()*16|0;return(e==`x`?t:t&3|8).toString(16)}),te=e=>{let t=[],{appServer:n,language:r,editorLanguage:i,loaderBackground:a,loaderSpinnerColor:o,loaderSpinnerBackground:s,loaderFontColor:c,screenMode:l,key:u,token:d,timezoneId:p,itemEmbedding:m,itemDimensions:g,dashboardId:_,dashboardSlug:ee,itemId:v,theme:te,mainColor:ne,editMode:y}=e.params;r&&r!==`auto`&&t.push(`language=${r}`),i&&i!==`auto`&&t.push(`editorLanguage=${i}`),a&&t.push(`ldrbg=${a}`),c&&t.push(`ldrftclr=${c}`),o&&t.push(`ldrspclr=${o}`),s&&t.push(`ldrspbg=${s}`),te&&t.push(`theme=${te}`),ne&&t.push(`mainColor=${ne}`),l&&l!==`auto`&&t.push(`screenMode=${l}`),p&&t.push(`timezoneId=`+p),m&&g&&g.width&&t.push(`width=`+g.width),m&&g&&g.height&&t.push(`height=`+g.height),y&&t.push(`editMode=`+y);let b=u&&d?`#`+u+`:`+d:``;t.push(`version=`+(e.libVersion||`0.0.0-unknown-luzmo`));let re=f(n);return h(m?`${re}i/${_||ee}/${v}?${encodeURIComponent(t.join(`&`))}${b}`:`${re}i/${_||ee}?${encodeURIComponent(t.join(`&`))}${b}`)},ne=e=>{let t;(e.params.error||e.browserNotSupported.length>0)&&(e.params.error=!0,e.browserNotSupported&&(t=`Browser is not supported.`));let n=d.initializing[e.params.language]||d.initializing.en;return e.browserNotSupported||e.params.error?{loadingMsg:n,errorMsg:t}:{loadingMsg:n,errorMsg:``}};function y(e,t,n){e.promises[t]&&(e.promises[t].resolve(n),delete e.promises[t])}function b(e,t,n){e.promises[t]&&(e.promises[t].reject(n),delete e.promises[t])}function re(e){let t={};return e.params.loaderBackground&&!e.iframeLoaded&&(t.background=e.params.loaderBackground),t}function ie(e){let t=e.params.itemDimensions?.height||l.itemDimensions.height,n=e.params.itemEmbedding&&t!==`auto`;return{display:e.iframeLoaded?`none`:``,height:`${n?t:e.minHeight}px`}}function ae(e){let t=e.params.loaderBackground||l.loaderBackground;if(e.params.itemEmbedding){e.loaderSize=24,e.borderWidth=4,e.minHeight=200;let n=e.params.itemDimensions?.width||l.itemDimensions.width,r=e.params.itemDimensions?.height||l.itemDimensions.height,i=n!==`auto`,a=r!==`auto`;return{background:t,width:i?`${n}px`:`100%`,height:`${a?r:`200`}px`,"min-height":a?``:`200px`}}return{background:t}}function oe(e){let{loaderSpinnerColor:t,loaderSpinnerBackground:n}=l,r=le(e.borderWidth,e.params.loaderSpinnerColor||t),i=le(e.borderWidth,e.params.loaderSpinnerBackground||n),a=`${e.loaderSize}px`;return{"border-top":r,"border-right":r,"border-bottom":i,"border-left":i,width:a,height:a}}function se(e){let t=e.params.itemDimensions?.height||l.itemDimensions.height,n=e.params.itemEmbedding&&t!==`auto`;return{padding:`${e.params.itemId?(t=>`${(t-e.loaderSize-32)/2}px`)(n?Number.parseInt(`${t}`,10):e.minHeight):`128px`} 16px`}}function ce(e){let t=e.params.itemDimensions?.height||l.itemDimensions.height,n=e.params.itemDimensions?.width||l.itemDimensions.width;e.params.itemEmbedding&&t!==`auto`?e.iframeHeight=`${t}px`:e.params.itemEmbedding?e.iframeHeight=`200px`:[`editFull`,`editLimited`].includes(e.params.editMode)?e.iframeHeight=`100%`:e.iframeHeight=`400px`,e.iframeWidth=e.params.itemEmbedding&&n!==`auto`?`${n}px`:`100%`;let r={height:e.iframeHeight,width:e.iframeWidth};return e.iframeLoaded?r.opacity=1:e.error?(r.opacity=1,r.width=`100%`,r.height=`400px`):r.opacity=0,r}function le(e,t){return`${e}px solid ${t}`}var ue=(e,t)=>{e?.contentWindow&&e.contentWindow.location.replace(t)},de=(e,t,n)=>{let r=v();return t?.contentWindow?(t.contentWindow.postMessage({action:`exportDashboard`,format:n||`png`,_version:e.libVersion,requestId:r},`*`),new Promise((t,n)=>{e.promises[r]={resolve:t,reject:n},setTimeout(()=>{e.promises[r]&&(e.promises[r].reject(Error(`exportDashboard request timed out.`)),delete e.promises[r])},12e5)})):Promise.reject(Error(`Cannot retrieve contentWindow.`))},fe=async e=>{if(await e.updateComplete,(e.currentAuthKey??e.authKey)&&(e.currentAuthToken??e.authToken)){let t=new Promise((t,n)=>{(()=>{try{window.fetch(`${f(e.params.apiHost)}0.1.0/authorization`,{method:`POST`,mode:`cors`,cache:`no-cache`,headers:{"Content-Type":`application/json`},redirect:`follow`,body:JSON.stringify({action:`get`,version:`0.1.0`,key:e.currentAuthKey??e.authKey,token:e.currentAuthToken??e.authToken,find:{where:{id:e.authKey},attributes:[`id`,`integration_id`],include:[{model:`User`,attributes:[`id`,`name`,`locale_id`],include:[{model:`Group`}]}]}})}).then(e=>e.json()).then(e=>{!e||!e.rows||e.rows.length===0||!e.rows[0].user?n(`Authorization failed, please check authKey and authToken. If the problem persists, please contact support@luzmo.com.`):(e.rows[0].user.userGroups=e.rows[0].user.groups.map(e=>e.id),delete e.rows[0].user.groups,t({integrationId:e.rows[0].integration_id,user:e.rows[0].user}))})}catch(e){n(e)}})()});return new Promise((n,r)=>void(()=>{try{t.then(t=>{window.fetch(`${f(e.params.apiHost)}0.1.0/securable`,{method:`POST`,mode:`cors`,cache:`no-cache`,headers:{"Content-Type":`application/json`},redirect:`follow`,body:JSON.stringify({action:`get`,version:`0.1.0`,key:e.currentAuthKey??e.authKey,token:e.currentAuthToken??e.authToken,find:{where:{type:`dashboard`,is_variant:!1},attributes:[`id`,`name`,`modified_at`],order:[[`modified_at`,`desc`]],include:[{model:`Tag`,attributes:[`tag`]},{model:`User`,attributes:[`id`,`name`]},{model:`Group`,attributes:[`id`,`name`,`public`]},{model:`Integration`,attributes:[`id`,`name`]}]}})}).then(e=>e.json()).then(r=>{n(r.rows.length>0?m(r.rows,t.integrationId,t.user,e):[])})}).catch(e=>{r(e)})}catch(e){r(e)}})())}throw Error(`No authKey or authToken found in the luzmo-dashboard component.`)},pe=(e,t)=>{if(t?.contentWindow){let n=v();return t.contentWindow.postMessage({action:`getDashboardContext`,_version:e.libVersion,requestId:n},`*`),new Promise((t,r)=>{e.promises[n]={resolve:t,reject:r},setTimeout(()=>{e.promises[n]&&(e.promises[n].reject(Error(`getDashboardContext request timed out.`)),delete e.promises[n])},2e3)})}return Promise.reject(Error(`Cannot retrieve contentWindow.`))},me=(e,t,n)=>{if(t?.contentWindow){let r=v();return t.contentWindow.postMessage({action:`getData`,id:n,_version:e.libVersion,requestId:r},`*`),new Promise((t,n)=>{e.promises[r]={resolve:t,reject:n},setTimeout(()=>{e.promises[r]&&(e.promises[r].reject(Error(`getData request timed out.`)),delete e.promises[r])},2e3)})}return Promise.reject(Error(`Cannot retrieve contentWindow.`))},he=(e,t)=>{if(t?.contentWindow){let n=v();return t.contentWindow.postMessage({action:`getFilters`,_version:e.libVersion,requestId:n},`*`),new Promise((t,r)=>{e.promises[n]={resolve:t,reject:r},setTimeout(()=>{e.promises[n]&&(e.promises[n].reject(Error(`getFilters request timed out.`)),delete e.promises[n])},2e3)})}return Promise.reject(Error(`Cannot retrieve contentWindow.`))},ge=(e,t,n={})=>{if(!t?.contentWindow)return Promise.reject(Error(`Cannot retrieve contentWindow.`));let r=v();return t.contentWindow.postMessage({action:`getInsights`,options:n,_version:e.libVersion,requestId:r},`*`),new Promise((t,n)=>{e.promises[r]={resolve:t,reject:n},setTimeout(()=>{e.promises[r]&&(e.promises[r].reject(Error(`getInsights request timed out.`)),delete e.promises[r])},6e4)})},_e=(e,t,n)=>t?(t.contentWindow.postMessage({action:`refreshData`,id:n??null,_version:e.libVersion},`*`),Promise.resolve()):Promise.reject(Error(`Cannot retrieve contentWindow.`)),ve=(e,t)=>t?(t.contentWindow.postMessage({action:`reloadDashboard`,_version:e.libVersion},`*`),Promise.resolve()):Promise.reject(Error(`Cannot retrieve contentWindow.`)),ye=(e,t,n,r,i)=>t?(t.contentWindow.postMessage({action:`sendExportEmail`,type:n||`once`,subject:r,message:i,_version:e.libVersion},`*`),Promise.resolve()):Promise.reject(Error(`Cannot retrieve contentWindow.`)),be=(e,t,n,r)=>t?(t.contentWindow.postMessage({action:`setAuthorization`,key:n,token:r,_version:e.libVersion},`*`),Promise.resolve()):Promise.reject(Error(`Cannot retrieve contentWindow.`)),xe=(e,t,n)=>{if(t&&t.contentWindow){let r=v();return e.params.editMode===n?Promise.reject(Error(`editMode parameter is currently already set to `+n)):n!==`editFull`&&n!==`editLimited`&&n!==`view`?Promise.reject(Error(`The editMode parameter must be one of the following values: 'editFull', 'editLimited' or 'view'.`)):(t.contentWindow.postMessage({action:`setEditMode`,editMode:n,_version:e.libVersion,requestId:r},`*`),new Promise((t,n)=>{e.promises[r]={resolve:t,reject:n}}))}return Promise.reject(Error(`Cannot retrieve contentWindow.`))},Se=(e,t,n)=>{if(t){let r=v();return t.contentWindow.postMessage({action:`setPreview`,preview:n,requestId:r,_version:e.libVersion},`*`),new Promise((t,n)=>{e.promises[r]={resolve:t,reject:n},setTimeout(()=>{e.promises[r]&&(e.promises[r].reject(Error(`setPreview request timed out.`)),delete e.promises[r])},2e3)})}return Promise.reject(Error(`Cannot retrieve contentWindow.`))},Ce=(e,t,n,r)=>{if(t){let i=v();return t.contentWindow.postMessage({action:`setSelectedData`,itemId:n,filters:r,_version:e.libVersion,requestId:i},`*`),new Promise((t,n)=>{e.promises[i]={resolve:t,reject:n},setTimeout(()=>{e.promises[i]&&(e.promises[i].reject(Error(`setSelectedData request timed out.`)),delete e.promises[i])},2e3)})}return Promise.reject()},we=e=>{if(!e.dimensions){e.params.error=!0,s(`Got no valid dimensions.`,e.params);return}let t=Object.keys(e.dimensions),n=[],r,i=0,a=0;if(!e.params.switchScreenModeOnResize&&e.currentScreenMode&&(e.params.screenMode=e.currentScreenMode),e.dimensions&&t?.[0]===`fixed`)r=`fixed`,i=e.dimensions.fixed[0],a=e.dimensions.fixed[1];else{let o=[`mobile`,`tablet`,`desktop`,`largeScreen`];if(e.params.itemEmbedding){let[n]=t,r=g(n);for(let n of o){let i=t.find(e=>e===n);i?r=g(i):e.dimensions[n]=e.dimensions[r]}}for(let r of t)if(o.includes(r)){let t=u.find(e=>e.mode===r);n.push({...t,height:e.dimensions[r][1]||50})}if(n.map(e=>e.mode).includes(e.params.screenMode)||(e.params.screenMode=`auto`),e.params.screenMode===`auto`){n.sort((e,t)=>o.indexOf(e.mode)-o.indexOf(t.mode));for(let t of n){let[n,o]=t.width;e.params.itemEmbedding&&e.params.itemDimensions&&e.params.itemDimensions.width!==`auto`&&e.params.itemDimensions.height===`auto`?n<e.params.itemDimensions.width&&(r=t.mode,i=Number.parseInt(e.params.itemDimensions.width,10),a=e.dimensions[r][1]):n<e.containerWidth&&(r=t.mode,e.params.itemEmbedding?(i=e.params.itemDimensions?.width&&e.params.itemDimensions?.width!==`auto`?Number.parseInt(e.params.itemDimensions.width,10):Math.min(e.containerWidth,o),a=e.params.itemDimensions?.height&&e.params.itemDimensions?.height!==`auto`?Number.parseInt(e.params.itemDimensions.height,10):e.dimensions[r][1],e.params.itemDimensions&&e.params.itemDimensions.width!==`auto`&&e.params.itemDimensions.height===`auto`&&(i=Number.parseInt(e.params.itemDimensions.width,10),a=e.dimensions[r][1])):(i=Math.max(Math.min(o,e.containerWidth),n),a=t.height))}}else{let{height:t,width:[o,s]}=n.find(t=>t.mode===e.params.screenMode);r=e.params.screenMode,i=Math.max(Math.min(s,e.containerWidth),o),a=t,e.params.itemEmbedding&&(e.params.itemDimensions?.width&&e.params.itemDimensions?.width!==`auto`&&(i=Number.parseInt(e.params.itemDimensions.width,10)),e.params.itemDimensions?.height&&e.params.itemDimensions?.height!==`auto`&&(a=Number.parseInt(e.params.itemDimensions.height,10)))}if(!r&&n.length>0){let[e]=n;r=e.mode,i=e.width[0],a=e.height}}e.currentScreenMode=r;let o={height:a===0?`100%`:`${String(a)}px`,width:i===0?`100%`:`${String(i)}px`,opacity:1};[`editFull`,`editLimited`].includes(e.params.editMode)?(o.height=`100%`,o.width=`100%`):e.params.itemEmbedding&&e.params.itemDimensions?(o.height=e.params.itemDimensions.height===`auto`?o.height:`${String(e.params.itemDimensions.height).replace(`px`,``)}px`,o.width=e.params.itemDimensions.width===`auto`?o.width:`${String(e.params.itemDimensions.width).replace(`px`,``)}px`):(o.height=a===0?`100%`:`${String(a)}px`,o.width=i===0?`100%`:`${String(i)}px`),e.currentScreenMode=r,e.iframeStyle=o},Te=e=>{let t=Object.keys(l),n=[],r=[`appServer`,`language`,`apiHost`],i=[`key`,`token`,`screenMode`,`timezoneId`,`itemId`,`container`,`loaderBackground`,`loaderFontColor`,`loaderSpinnerColor`,`loaderSpinnerBackground`],a=[`itemDimensions`],o=[`mobile`,`tablet`,`desktop`,`largeScreen`,`fixed`,`auto`];for(let n of t)e.params[n]===null&&delete e.params[n];e.params=ee(e.params,l),(!e.params.dashboardId||typeof e.params.dashboardId!=`string`)&&(!e.params.dashboardSlug||typeof e.params.dashboardSlug!=`string`)&&(delete e.params.dashboardId,delete e.params.dashboardSlug);for(let t of r)typeof e.params[t]!=`string`&&(delete e.params[t],n.push(`${t} needs to be of type string.`));for(let t of i)typeof e.params[t]!=`string`&&e.params[t]!==null&&e.params[t]!==void 0&&(delete e.params[t],n.push(`${t} needs to be of type string or empty.`));if(e.params.screenMode&&!o.includes(e.params.screenMode)){let t=o.map(e=>`"${e}"`).join(`, `);n.push(`"screenMode" needs should be one of these types: ${t}`),e.params.screenMode=`auto`}e.params.itemId&&(e.params.itemEmbedding=!0);for(let t of a)typeof e.params[t]!=`object`&&e.params[t]!==null&&(delete e.params[t],n.push(`${t} needs to be of type object or empty.`));if(typeof e.params.switchScreenModeOnResize!=`boolean`&&(n.push(`switchScreenModeOnResize needs to be of type boolean.`),e.params.switchScreenModeOnResize=!0),e.params.itemDimensions)for(let t of[`width`,`height`])![`string`,`number`].includes(typeof e.params.itemDimensions[t])&&e.params.itemDimensions[t]!==null&&n.push(`itemDimensions ${t} needs to be of type string, number or empty.`);e.params=ee(e.params,l),e.params.screenMode&&e.params.screenMode!==`auto`&&(e.params.switchScreenModeOnResize=!1),e.params.itemDimensions.width!==`auto`&&(e.params.itemDimensions.width=Number.parseInt(`${e.params.itemDimensions.width}`.replace(`px`,``),10)||`auto`),e.params.itemDimensions.height!==`auto`&&(e.params.itemDimensions.height=Number.parseInt(`${e.params.itemDimensions.height}`.replace(`px`,``),10)||`auto`),e.params.itemEmbedding=!!e.params.itemId,(e.params.error||n.length>0)&&s(n.join(`
|
|
5
5
|
`),e.params)},Ee={type:`type`,slots:`slots`,options:`options`,appServer:`app-server`,apiHost:`api-host`,authKey:`auth-key`,authToken:`auth-token`,contextId:`context-id`,canFilter:`can-filter`,filters:`filters`,dashboardId:`dashboard-id`,itemId:`item-id`,aiMessageAssetId:`ai-message-asset-id`,dashboardContentsVersion:`dashboard-contents-version`,libVersion:`lib-version`},De=`luzmo-embed-container`,Oe=`FEDERATION_DEBUG`,x={AT:`@`,HYPHEN:`-`,SLASH:`/`},ke={[x.AT]:`scope_`,[x.HYPHEN]:`_`,[x.SLASH]:`__`};ke[x.AT],x.AT,ke[x.HYPHEN],x.HYPHEN,ke[x.SLASH],x.SLASH;var Ae=function(e){return e[e.UNKNOWN=1]=`UNKNOWN`,e[e.CALCULATED=2]=`CALCULATED`,e[e.NO_USE=0]=`NO_USE`,e}({}),S=typeof ENV_TARGET<`u`?ENV_TARGET===`web`:typeof window<`u`&&window.document!==void 0;function je(){return S}function Me(){return typeof navigator<`u`&&navigator?.product===`ReactNative`}function Ne(){try{if(je()&&window.localStorage)return!!localStorage.getItem(Oe)}catch{return!1}return!1}function Pe(){return typeof process<`u`&&process.env&&process.env.FEDERATION_DEBUG?!!process.env.FEDERATION_DEBUG:typeof FEDERATION_DEBUG<`u`&&FEDERATION_DEBUG?!0:Ne()}var Fe=`[ Federation Runtime ]`,Ie=function(...e){return e.length?e.reduce((e,t)=>t?e?`${e}:${t}`:t:e,``):``};function Le(e,t){if(`getPublicPath`in e){let n;return n=e.getPublicPath.startsWith(`function`)?Function(`return `+e.getPublicPath)()():Function(e.getPublicPath)(),`${n}${t}`}else if(`publicPath`in e)return!je()&&!Me()&&`ssrPublicPath`in e&&typeof e.ssrPublicPath==`string`?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`;else return console.warn(`Cannot get resource URL. If in debug mode, please ignore.`,e,t),``}var Re=e=>{console.warn(`${Fe}: ${e}`)};function ze(e){try{return JSON.stringify(e,null,2)}catch{return``}}var Be=(e,t)=>{if(!e)return t;let n=(e=>{if(e===`.`)return``;if(e.startsWith(`./`))return e.replace(`./`,``);if(e.startsWith(`/`)){let t=e.slice(1);return t.endsWith(`/`)?t.slice(0,-1):t}return e})(e);return n?n.endsWith(`/`)?`${n}${t}`:`${n}/${t}`:t};function Ve(e){return e.replace(/#.*$/,``).replace(/\?.*$/,``).replace(/\/[^\/]+$/,`/`)}function He(e,t={}){let{remotes:n={},overrides:r={},version:i}=t,a,o=()=>`publicPath`in e.metaData?(e.metaData.publicPath===`auto`||e.metaData.publicPath===``)&&i?Ve(i):e.metaData.publicPath:e.metaData.getPublicPath,s=Object.keys(r),c={};Object.keys(n).length||(c=e.remotes?.reduce((e,t)=>{let n,i=t.federationContainerName;return n=s.includes(i)?r[i]:`version`in t?t.version:t.entry,e[i]={matchedVersion:n},e},{})||{}),Object.keys(n).forEach(e=>c[e]={matchedVersion:s.includes(e)?r[e]:n[e]});let{remoteEntry:{path:l,name:u,type:d},types:f={path:``,name:``,zip:``,api:``},buildInfo:{buildVersion:p},globalName:m,ssrRemoteEntry:h}=e.metaData,{exposes:g}=e,_={version:i||``,buildVersion:p,globalName:m,remoteEntry:Be(l,u),remoteEntryType:d,remoteTypes:Be(f.path,f.name),remoteTypesZip:f.zip||``,remoteTypesAPI:f.api||``,remotesInfo:c,shared:e?.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version,usedExports:e.referenceExports||[]})),modules:g?.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if(`publicPath`in e.metaData?(a={..._,publicPath:o()},typeof e.metaData.ssrPublicPath==`string`&&(a.ssrPublicPath=e.metaData.ssrPublicPath)):a={..._,getPublicPath:o()},h){let e=Be(h.path,h.name);a.ssrRemoteEntry=e,a.ssrRemoteEntryType=h.type||`commonjs-module`}return a}function Ue(e){return!!(`remoteEntry`in e&&e.remoteEntry.includes(`.json`))}var We=`[ Module Federation ]`,Ge=console,Ke=[`logger.ts`,`logger.js`,`captureStackTrace`,`Logger.emit`,`Logger.log`,`Logger.info`,`Logger.warn`,`Logger.error`,`Logger.debug`];function qe(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split(`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import{n as e,t}from"./localized-mixin-j1gjzMSn.js";import{n,r}from"./lit-localize-CIGP-NUw.js";import{t as i}from"./localized-decorator-Buib6Rq1.js";import{t as a}from"./luzmoTrashOutline-DXZpJx7f.js";import{n as o,r as s,t as c}from"./calculate-data-field-icon-CrEVAfzJ.js";import{t as l}from"./luzmoPlus-Dyrrz0v8.js";import{t as u}from"./luzmo-icon-markup-BENMHpB_.js";import{t as d}from"./v4-CI0qP0ur.js";import{c as f}from"./type-check-CC6bgirK.js";import{t as p}from"./localize-BXHWaHdZ.js";import{n as m}from"./periods.const-Cie50jR4.js";import{t as h}from"./data-broker-CbKNAOhf.js";import"./load-data-fields-for-datasets-D74yX8C2.js";import{html as g,ifDefined as ee,nothing as _,property as v,query as te,repeat as ne,state as y,unsafeCSS as b}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/lit.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/action-button.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/field-label.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/icon.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/number-field.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/overlay.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/picker.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/popover.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/progress-circle.js";import{ElementSizes as x,LuzmoElement as S,SizedMixin as C}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/utils.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/tooltip.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/menu.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/button.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/badge.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/select.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/divider.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/options.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/tags.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/text-field.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.1/standalone/date-time-picker.js";var w=[``,``,``],re=``;function T(e,t){let n=RegExp(`(${w.join(`|`)})`,`u`),r=[];for(let i of e.replaceAll(re,``).split(n)){let e=w.indexOf(i);e===-1?i&&r.push(i):r.push(t[e])}return r}var E=()=>[{id:`? = ?`,key:`? = ?`,expression:`? = ?`,name:n(`equals`,{desc:`Filter expression for equals comparison`}),description:n(`equals`,{desc:`Filter expression for equals comparison`}),tiny:n(`eq`,{desc:`Short form of equals comparison`}),type:[`numeric`,`hierarchy`],subtype:[`ip_address`]},{id:`? != ?`,key:`? != ?`,expression:`? != ?`,name:n(`not equals`,{desc:`Filter expression for not equals comparison`}),description:n(`not equals`,{desc:`Filter expression for not equals comparison`}),tiny:n(`not eq`,{desc:`Short form of not equals comparison`}),type:[`numeric`,`hierarchy`],subtype:[`ip_address`]},{id:`? in ?`,key:`? in ?`,expression:`? in ?`,name:n(`is in`,{desc:`Filter expression for in comparison`}),description:n(`is in`,{desc:`Filter expression for in comparison`}),tiny:n(`is in`,{desc:`Filter expression for in comparison`}),type:[`numeric`,`hierarchy`],subtype:[`ip_address`]},{id:`? not in ?`,key:`? not in ?`,expression:`? not in ?`,name:n(`is not in`,{desc:`Filter expression for not in comparison`}),description:n(`is not in`,{desc:`Filter expression for not in comparison`}),tiny:n(`is not in`,{desc:`Filter expression for not in comparison`}),type:[`numeric`,`hierarchy`],subtype:[`ip_address`]},{id:`? like ?`,key:`? like ?`,expression:`? like ?`,name:n(`contains`,{desc:`Filter expression for contains comparison`}),description:n(`contains`,{desc:`Filter expression for contains comparison`}),tiny:n(`cont`,{desc:`Short form of contains comparison in filter expression`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? not like ?`,key:`? not like ?`,expression:`? not like ?`,name:n(`does not contain`,{desc:`Filter expression for does not contain comparison`}),description:n(`does not contain`,{desc:`Filter expression for does not contain comparison`}),tiny:n(`not cont`,{desc:`Short form of does not contain comparison in filter expression`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? starts with ?`,key:`? starts with ?`,expression:`? starts with ?`,name:n(`starts with`,{desc:`Filter expression for starts with comparison`}),description:n(`starts with`,{desc:`Filter expression for starts with comparison`}),tiny:n(`starts with`,{desc:`Filter expression for starts with comparison`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? not starts with ?`,key:`? not starts with ?`,expression:`? not starts with ?`,name:n(`does not start with`,{desc:`Filter expression for does not start with comparison`}),description:n(`does not start with`,{desc:`Filter expression for does not start with comparison`}),tiny:n(`not starts with`,{desc:`Short form of does not start with comparison in filter expression`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? ends with ?`,key:`? ends with ?`,expression:`? ends with ?`,name:n(`ends with`,{desc:`Filter expression for ends with comparison`}),description:n(`ends with`,{desc:`Filter expression for ends with comparison`}),tiny:n(`ends with`,{desc:`Filter expression for ends with comparison`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? not ends with ?`,key:`? not ends with ?`,expression:`? not ends with ?`,name:n(`does not end with`,{desc:`Filter expression for does not end with comparison`}),description:n(`does not end with`,{desc:`Filter expression for does not end with comparison`}),tiny:n(`not ends with`,{desc:`Short form of does not end with comparison in filter expression`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? < ?`,key:`? < ?`,expression:`? < ?`,name:n(`less than`,{desc:`Filter expression for less than comparison`}),description:n(`less than`,{desc:`Filter expression for less than comparison`}),tiny:`<`,type:[`numeric`,`datetime`],subtype:[`ip_address`]},{id:`? <= ?`,key:`? <= ?`,expression:`? <= ?`,name:n(`less than or equal`,{desc:`Filter expression for less than or equal comparison`}),description:n(`less than or equal`,{desc:`Filter expression for less than or equal comparison`}),tiny:`<=`,type:[`numeric`,`datetime`],subtype:[`ip_address`]},{id:`? > ?`,key:`? > ?`,expression:`? > ?`,name:n(`greater than`,{desc:`Filter expression for greater than comparison`}),description:n(`greater than`,{desc:`Filter expression for greater than comparison`}),tiny:`>`,type:[`numeric`,`datetime`],subtype:[`ip_address`]},{id:`? >= ?`,key:`? >= ?`,expression:`? >= ?`,name:n(`greater than or equal`,{desc:`Filter expression for greater than or equal comparison`}),description:n(`greater than or equal`,{desc:`Filter expression for greater than or equal comparison`}),tiny:`>=`,type:[`numeric`,`datetime`],subtype:[`ip_address`]},{id:`? between ?`,key:`? between ?`,expression:`? between ?`,name:n(`is between`,{desc:`Filter expression for between comparison`}),description:n(`is between`,{desc:`Filter expression for between comparison`}),tiny:n(`between`,{desc:`Short form of between comparison in filter expression`}),type:[],subtype:[`ip_address`]},{id:`last_now`,key:`last_now`,expression:`last_now`,name:n(`last (x) periods`,{desc:`Filter expression for last (x) periods`}),description:n(`last (x) periods`,{desc:`Filter expression for last (x) periods`}),tiny:n(`last`,{desc:`Short form of last (x) periods in filter expression`}),type:[`datetime`]},{id:`last_available`,key:`last_available`,expression:`last_available`,name:n(`last (x) available periods`,{desc:`Filter expression for last (x) available periods`}),description:n(`last (x) available periods`,{desc:`Filter expression for last (x) available periods`}),tiny:n(`last available`,{desc:`Short form of last (x) available periods in filter expression`}),type:[`datetime`]},{id:`last_completed`,key:`last_completed`,expression:`last_completed`,name:n(`last completed period`,{desc:`Filter expression for last completed period`}),description:n(`last completed (period)`,{desc:`Filter expression for last completed period`}),tiny:n(`last completed`,{desc:`Short form of last completed period in filter expression`}),type:[`datetime`]},{id:`next_now`,key:`next_now`,expression:`next_now`,name:n(`next (x) periods`,{desc:`Filter expression for next (x) periods`}),description:n(`next (x) periods`,{desc:`Filter expression for next (x) periods`}),tiny:n(`next`,{desc:`Short form of next (x) periods in filter expression`}),type:[`datetime`]},{id:`more_than_ago`,key:`more_than_ago`,expression:`more_than_ago`,name:n(`more than (x) periods ago`,{desc:`Filter expression for more than (x) periods ago`}),description:n(`more than (x) periods ago`,{desc:`Filter expression for more than (x) periods ago`}),tiny:n(`more than ago`,{desc:`Short form of more than (x) periods ago in filter expression`}),type:[`datetime`]},{id:`or_more_ago`,key:`or_more_ago`,expression:`or_more_ago`,name:n(`(x) periods or more ago`,{desc:`Filter expression for (x) periods or more ago`}),description:n(`(x) periods or more ago`,{desc:`Filter expression for (x) periods or more ago`}),tiny:n(`or more ago`,{desc:`Short form of (x) periods or more ago in filter expression`}),type:[`datetime`]},{id:`next_full`,key:`next_full`,expression:`next_full`,name:n(`next full (period)`,{desc:`Filter expression for next full period`}),description:n(`next full (period)`,{desc:`Filter expression for next full period`}),tiny:n(`next full`,{desc:`Short form of next full period in filter expression`}),type:[`datetime`]},{id:`WTD`,key:`to_date`,expression:`to_date`,unit:4,name:n(`week to date`,{desc:`Filter expression for week to date`}),description:n(`week to date`,{desc:`Filter expression for week to date`}),tiny:n(`WTD`,{desc:`Short form of week to date in filter expression`}),type:[`datetime`]},{id:`MTD`,key:`to_date`,expression:`to_date`,unit:3,name:n(`month to date`,{desc:`Filter expression for month to date`}),description:n(`month to date`,{desc:`Filter expression for month to date`}),tiny:n(`MTD`,{desc:`Short form of month to date in filter expression`}),type:[`datetime`]},{id:`QTD`,key:`to_date`,expression:`to_date`,unit:2,name:n(`quarter to date`,{desc:`Filter expression for quarter to date`}),description:n(`quarter to date`,{desc:`Filter expression for quarter to date`}),tiny:n(`QTD`,{desc:`Short form of quarter to date in filter expression`}),type:[`datetime`]},{id:`YTD`,key:`to_date`,expression:`to_date`,unit:1,name:n(`year to date`,{desc:`Filter expression for year to date`}),description:n(`year to date`,{desc:`Filter expression for year to date`}),tiny:n(`YTD`,{desc:`Short form of year to date in filter expression`}),type:[`datetime`]},{id:`? is null`,key:`? is null`,expression:`? is null`,name:n(`is missing`,{desc:`Filter expression for is missing`}),description:n(`is missing`,{desc:`Filter expression for is missing`}),tiny:n(`missing`,{desc:`Short form of is missing in filter expression`}),type:[`numeric`,`datetime`,`hierarchy`,`spatial`],subtype:[`ip_address`]},{id:`? is not null`,key:`? is not null`,expression:`? is not null`,name:n(`is not missing`,{desc:`Filter expression for is not missing`}),description:n(`is not missing`,{desc:`Filter expression for is not missing`}),tiny:n(`not missing`,{desc:`Short form of is not missing in filter expression`}),type:[`numeric`,`datetime`,`hierarchy`,`spatial`],subtype:[`ip_address`]}],ie=(e,t,n)=>{let r=new Set([`? in ?`,`? not in ?`]);return!e&&!t?E():E().filter(i=>(e&&i.type.includes(e)||t&&i.subtype?.includes(t))&&!(n&&r.has(i.key)))},ae=new Set([`last_now`,`last_available`,`next_now`,`more_than_ago`,`or_more_ago`]),oe=new Set([`last_completed`,`next_full`]),se=new Set([`? is null`,`? is not null`,`to_date`]),ce=new Set([`? = ?`,`? != ?`,`? < ?`,`? <= ?`,`? > ?`,`? >= ?`]),le=3,ue=32;function D(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function O(e){return D(e)?typeof e.columnId==`string`||typeof e.column_id==`string`||typeof e.formulaId==`string`||typeof e.formula_id==`string`||typeof e.formula==`string`||(typeof e.datasetId==`string`||typeof e.dataset_id==`string`)&&(e.columnExpression!==void 0||e.expression!==void 0):!1}function de(e){return e.length<=ue?{display:e,truncated:!1}:{display:`${e.slice(0,ue-1)}…`,truncated:!0}}function fe(e,t,n){try{return new Intl.ListFormat(e||void 0,{style:`long`,type:n}).format(t)}catch{return t.join(`, `)}}function k(e,t,n){let r=Ee(e,t,n),{display:i,truncated:a}=de(r);return{label:i,full:r,truncated:a}}function pe(e){return e===1?n(`1 item`,{desc:`One selected hierarchy value whose name is still loading`}):n(r`${e} items`,{desc:`Selected hierarchy values whose names are still loading`})}function me(){return n(`Some item names could not be retrieved`,{desc:`Tooltip when a hierarchy filter value is still an id after name lookup`})}function he(e,t){return!!(t?.type===`hierarchy`&&t.datasetId&&t.fieldId&&!(D(e)&&e.name!==void 0)&&j(e))}function ge(e,t,n){let r=n?.datasetId,i=n?.fieldId;return!r||!i?[]:e.flatMap(e=>{if(!he(e,n))return[];let a=j(e);return a?t.hierarchyLabels?.get(Te(r,i,a))?[]:[a]:[]})}function _e(e,t,n){return n.hierarchyLabelsLoading&&t.length>0?{valueText:pe(t.length),valuePending:!0}:n.hierarchyLabels&&!n.hierarchyLabelsLoading&&t.length>0&&!e.valueTooltip?{...e,valueTooltip:me()}:e}function ve(e,t,i){let a=e.map(e=>k(e,t,i)),o=a.map(e=>e.full),s=fe(t.contentLanguage,o,`conjunction`);if(e.length===1){let[e]=a;return{valueText:e.label,valueTooltip:e.truncated?e.full:void 0}}let c=Math.min(le,a.length),l=a.length-c,u=a.slice(0,c).map(e=>e.label),d=a.some(e=>e.truncated),f;return f=l>0?n(r`${fe(t.contentLanguage,u,`unit`)}, and ${l} more`,{desc:`Filter values after the first few shown in a read-only sentence, e.g. "Dresses, Shoes, Shorts, and 1 more"`}):fe(t.contentLanguage,a.map(e=>e.label),`conjunction`),{valueText:f,valueTooltip:l>0||d?s:void 0}}function A(e,t,n){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`){let t=String(e);return t.length>0?t:n}if(e&&typeof e==`object`){let n=p(e,t);if(n)return n}return n}function ye(e,t){for(let n of t){let t=e[n];if(typeof t==`string`&&t.length>0)return t}}function be(e,t){let n=ye(e,[`datasetId`,`dataset_id`]),r=ye(e,[`columnId`,`column_id`]),i=ye(e,[`formulaId`,`formula_id`]),a=typeof e.formula==`string`?e.formula:void 0,o=t.datasets.find(e=>e.id===n),s=o?A(o.name,t.contentLanguage,``):``;if(i){let e=o?.formulas?.find(e=>e.id===i),r=A(e?.name,t.contentLanguage,i);return{label:r,tooltip:s?`${s} · ${r}`:r,type:e?.type,subtype:e?.subtype,formula:!0,datasetId:n,fieldId:i}}if(a)return{label:a,tooltip:s?`${s} · ${a}`:a,formula:!0,datasetId:n};let c=!r&&typeof e.expression==`string`?e.expression:void 0;if(c)return{label:c,tooltip:s?`${s} · ${c}`:c,formula:!0,datasetId:n};let l=r?o?.columns?.find(e=>e.id===r):void 0,u=r??(typeof e.columnExpression==`string`?e.columnExpression:``),d=A(l?.name,t.contentLanguage,u);return{label:d,tooltip:s?`${s} · ${d}`:d,type:l?.type,subtype:l?.subtype,formula:!1,datasetId:n,fieldId:r}}function xe(e){let t=m.find(t=>t.level===e);return t?t.i18n():``}function Se(e,t){switch(t){case 1:return e===1?n(r`${e} Year`,{desc:`Singular relative filter quantity in years`}):n(r`${e} Years`,{desc:`Plural relative filter quantity in years`});case 2:return e===1?n(r`${e} Quarter`,{desc:`Singular relative filter quantity in quarters`}):n(r`${e} Quarters`,{desc:`Plural relative filter quantity in quarters`});case 3:return e===1?n(r`${e} Month`,{desc:`Singular relative filter quantity in months`}):n(r`${e} Months`,{desc:`Plural relative filter quantity in months`});case 4:return e===1?n(r`${e} Week`,{desc:`Singular relative filter quantity in weeks`}):n(r`${e} Weeks`,{desc:`Plural relative filter quantity in weeks`});case 5:return e===1?n(r`${e} Day`,{desc:`Singular relative filter quantity in days`}):n(r`${e} Days`,{desc:`Plural relative filter quantity in days`});case 6:return e===1?n(r`${e} Hour`,{desc:`Singular relative filter quantity in hours`}):n(r`${e} Hours`,{desc:`Plural relative filter quantity in hours`});case 7:return e===1?n(r`${e} Minute`,{desc:`Singular relative filter quantity in minutes`}):n(r`${e} Minutes`,{desc:`Plural relative filter quantity in minutes`});case 8:return e===1?n(r`${e} Second`,{desc:`Singular relative filter quantity in seconds`}):n(r`${e} Seconds`,{desc:`Plural relative filter quantity in seconds`});case 9:return e===1?n(r`${e} Millisecond`,{desc:`Singular relative filter quantity in milliseconds`}):n(r`${e} Milliseconds`,{desc:`Plural relative filter quantity in milliseconds`});default:return n(r`${e}`,{desc:`Relative filter quantity`})}}function Ce(e,t){let n=new Date(e);if(Number.isNaN(n.getTime()))return e;try{return new Intl.DateTimeFormat(t.contentLanguage||void 0,{dateStyle:`medium`,timeStyle:`short`,...t.timeZone?{timeZone:t.timeZone}:{}}).format(n)}catch{return e}}function we(e){return/^\d{4}-\d{2}-\d{2}(?:T|$)/.test(e)}function Te(e,t,n){return`${e}:${t}:${n}`}function j(e){if(typeof e==`string`||typeof e==`number`)return String(e);if(D(e)&&(typeof e.id==`string`||typeof e.id==`number`))return String(e.id)}function Ee(e,t,n){if(n?.type===`hierarchy`&&n.datasetId&&n.fieldId&&!(D(e)&&e.name!==void 0)){let r=j(e),i=r===void 0?void 0:t.hierarchyLabels?.get(Te(n.datasetId,n.fieldId,r));if(i)return i}if(typeof e==`number`&&Number.isFinite(e))return new Intl.NumberFormat(t.contentLanguage||void 0).format(e);if(typeof e==`string`)return we(e)?Ce(e,t):e;if(typeof e==`boolean`)return String(e);if(D(e)){if(typeof e.parameter==`string`)return e.parameter;if(e.name!==void 0){let n=A(e.name,t.contentLanguage,``);if(n)return n}if(typeof e.id==`string`||typeof e.id==`number`)return String(e.id)}return``}function De(e,t){let n=E().filter(t=>t.expression===e),r=D(t)&&typeof t.unit==`number`?t.unit:void 0;return(e===`to_date`&&r!==void 0?n.find(e=>e.unit===r)??n[0]:n[0])?.tiny??e}function Oe(e,t,i,a){if(se.has(e)||t==null)return{valueText:``};if(D(t)&&typeof t.parameter==`string`){let e=t.parameter;if(!O(t))return{valueText:e}}if(ce.has(e)&&O(t))return{valueText:``,valueField:be(t,i)};if(e===`? between ?`&&Array.isArray(t)&&t.length===2){let e=k(t[0],i,a),o=k(t[1],i,a);return _e({valueText:n(r`${e.label} and ${o.label}`,{desc:`Inclusive range shown between two filter values`}),valueTooltip:e.truncated||o.truncated?n(r`${e.full} and ${o.full}`,{id:`filter-range-tooltip`,desc:`Full inclusive range shown in a tooltip`}):void 0},ge(t,i,a),i)}if(ae.has(e)&&D(t))return{valueText:Se(typeof t.quantity==`number`?t.quantity:1,t.unit)};if(oe.has(e)&&D(t))return{valueText:xe(t.unit)};if(Array.isArray(t))return t.length===0?{valueText:``}:_e(ve(t,i,a),ge(t,i,a),i);let o=k(t,i,a);return _e({valueText:o.label,valueTooltip:o.truncated?o.full:void 0},ge([t],i,a),i)}function ke(e,t){let n=e.parameters?.[0];if(!D(n)||!O(n))return null;let r=be(n,t),i=typeof e.expression==`string`?e.expression:``,a=e.parameters?.[1];return{field:r,expression:i?De(i,a):``,...Oe(i,a,t,r)}}function Ae(e){return`condition`in e&&`filters`in e}function je(e){if(e==null)return[];if(Array.isArray(e))return e.flatMap(je);if(D(e)){if(typeof e.parameter==`string`||e.name!==void 0||O(e))return[];let t=j(e);return t?[t]:[]}let t=j(e);return t?[t]:[]}function Me(e,t){let n=new Map,r=e=>{if(Ae(e)){e.filters.forEach(r);return}let i=e.parameters?.[0];if(!D(i)||!O(i))return;let a=be(i,t);if(a.type!==`hierarchy`||!a.datasetId||!a.fieldId)return;let o=[...new Set(je(e.parameters?.[1]))];if(o.length===0)return;let s=`${a.datasetId}:${a.fieldId}`,c=n.get(s);if(c){c.ids=[...new Set([...c.ids,...o])];return}n.set(s,{datasetId:a.datasetId,...a.formula?{formulaId:a.fieldId}:{columnId:a.fieldId},ids:o})};return r(e),[...n.values()]}async function Ne(e,t){let n=new Map;return await Promise.all(e.map(async e=>{let r={dataset_id:e.datasetId,column_id:e.columnId,formula_id:e.formulaId},i=await h.fetchData({dimensions:[r],where:[{expression:`? in ?`,parameters:[r,e.ids]}],limit:{by:e.ids.length,offset:0}}),a=e.columnId??e.formulaId??``;for(let r of i.data??[]){let i=r[0],o=i&&typeof i==`object`&&`id`in i?String(i.id):String(i),s=i&&typeof i==`object`&&`name`in i?p(i.name,t):``;s&&n.set(Te(e.datasetId,a,o),s)}})),n}var Pe=20,M=class extends Error{constructor(e){super(e),this.name=`FilterUnrepresentableError`}},Fe=new Set([`and`,`or`]),Ie=[`datasetId`,`dataset_id`,`columnId`,`column_id`,`formulaId`,`formula_id`,`formula`,`columnExpression`,`value`,`ignoredItemIds`];function N(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function P(e){return!N(e)||e.condition!==void 0&&(typeof e.condition!=`string`||!Fe.has(e.condition.toLowerCase()))?!1:`filters`in e||`subGroups`in e}function F(e){return N(e)&&`expression`in e&&!(`condition`in e)}function I(e){return Ie.some(t=>t in e)}function Le(e,t=!1){let n=[e.columnId!==void 0||e.column_id!==void 0,e.formulaId!==void 0||e.formula_id!==void 0,e.formula!==void 0].filter(Boolean).length;return n===1?!0:n>1?!1:e.columnExpression!==void 0||t&&e.expression!==void 0}function Re(e){return!F(e)||typeof e.expression!=`string`||e.expression.length===0||`parameters`in e||typeof e.datasetId!=`string`&&typeof e.dataset_id!=`string`?!1:Le(e)}function ze(e){return!F(e)||!Array.isArray(e.parameters)?!1:!I(e)}function Be(e){if(!(`parameters`in e))return;let t=Ie.find(t=>t in e);if(t!==void 0)throw new M(`Filter leaf mixes "parameters" with the clean inline key "${t}".`)}function Ve(e){throw typeof e.expression!=`string`||e.expression.length===0?new M(`Clean filter leaf is missing a non-empty "expression".`):typeof e.datasetId!=`string`&&typeof e.dataset_id!=`string`?new M(`Clean filter leaf "${e.expression}" is missing a "datasetId".`):new M(`Clean filter leaf "${e.expression}" must name exactly one of "columnId", "formulaId", "formula", or "columnExpression".`)}function He(e){return e===`where`||e===`having`}function L(e){if(e>20)throw new M(`Filter nesting exceeds the maximum depth of 20.`)}function Ue(e){if(e==null)return`empty`;if(!Array.isArray(e))return`unknown`;if(e.length===0)return`empty`;let t=!1,n=!1,r=!1,i=(e,a)=>{if(a>20){r=!0;return}if(P(e)){He(e.clause)&&(n=!0);let t=[...Array.isArray(e.filters)?e.filters:[],...Array.isArray(e.subGroups)?e.subGroups:[]];for(let e of t)i(e,a+1);return}if(F(e)){`parameters`in e&&I(e)?r=!0:Re(e)?n=!0:ze(e)?t=!0:r=!0;return}r=!0};for(let t of e)i(t,1);return r?`unknown`:n&&t?`mixed`:n?`clean`:t?`canonical`:`empty`}var We=new Set([`? is null`,`? is not null`]),Ge=new Set([`? = ?`,`? != ?`,`? < ?`,`? <= ?`,`? > ?`,`? >= ?`]),Ke=new Set([`? in ?`,`? not in ?`,`? between ?`]),qe={"array[numeric]":`numeric[]`,"array[hierarchy]":`hierarchy[]`,"array[datetime]":`datetime[]`},Je=new Set([`level`,`lowestLevel`,`unnest`,`discretization`,`aggregation`,`index`,`include_nonoccurring`,`simplification`]);function R(e,t){return e!==`lowestLevel`&&!(t===null&&Je.has(e))}function z(e){return structuredClone(e)}function Ye(e){let t=e.datasetId??e.dataset_id;if(typeof t!=`string`||t.length===0)throw new M(`Filter reference is missing a "datasetId".`);return t}function Xe(e){return N(e)?typeof e.columnId==`string`||typeof e.column_id==`string`||typeof e.formulaId==`string`||typeof e.formula_id==`string`||typeof e.formula==`string`||(typeof e.datasetId==`string`||typeof e.dataset_id==`string`)&&(e.columnExpression!==void 0||e.expression!==void 0):!1}function Ze(e){let t={type:e.type};return e.bins!==void 0&&(t.bins=e.bins),Array.isArray(e.over)&&(t.over=e.over.map(e=>it(e))),t}function Qe(e){let t={type:e.type},n=e.datasetId??e.dataset_id,r=e.columnId??e.column_id;return n!==void 0&&(t.datasetId=n),r!==void 0&&(t.columnId=r),e.level!==void 0&&R(`level`,e.level)&&(t.level=e.level),N(e.discretization)&&(t.discretization=Ze(e.discretization)),e.unnest!==void 0&&R(`unnest`,e.unnest)&&(t.unnest=e.unnest),t}function $e(e){let t={type:e.type};return e.bins!==void 0&&(t.bins=e.bins),Array.isArray(e.over)&&(t.over=e.over.map(e=>N(e)?rt(e):e)),t}function et(e){let t={type:e.type},n=e.datasetId??e.dataset_id,r=e.columnId??e.column_id;return n!==void 0&&(t.datasetId=n),r!==void 0&&(t.columnId=r),e.level!==void 0&&(t.level=e.level),N(e.discretization)&&(t.discretization=$e(e.discretization)),e.unnest!==void 0&&(t.unnest=e.unnest),t}function tt(e,t){e.level!==void 0&&(t.level=z(e.level)),N(e.discretization)&&(t.discretization=$e(e.discretization)),N(e.aggregation)&&(t.aggregation=et(e.aggregation)),e.unnest!==void 0&&(t.unnest=z(e.unnest))}function nt(e,t){let n=e.columnId??e.column_id;if(n!==void 0)return{kind:`columnId`,value:n};let r=e.formulaId??e.formula_id;if(r!==void 0)return{kind:`formulaId`,value:r};if(e.formula!==void 0)return{kind:`formula`,value:e.formula};let i=e.columnExpression??(t?e.expression:void 0);if(i!==void 0)return{kind:`expression`,value:i}}function rt(e,t=!0){let n={datasetId:Ye(e)},r=nt(e,t);return r!==void 0&&(r.kind===`expression`?n.expression=r.value:n[r.kind]=r.value),tt(e,n),n}function it(e){if(!N(e))throw new M(`Cannot emit a clean filter reference.`);let t={datasetId:Ye(e)};e.level!==void 0&&R(`level`,e.level)&&(t.level=e.level),N(e.discretization)&&(t.discretization=Ze(e.discretization)),N(e.aggregation)&&(t.aggregation=Qe(e.aggregation)),e.unnest!==void 0&&R(`unnest`,e.unnest)&&(t.unnest=e.unnest);let n=nt(e,!0);if(n===void 0)throw new M(`Cannot emit a clean filter reference: no column, formula, or expression.`);return n.kind===`expression`?t.columnExpression=n.value:t[n.kind]=n.value,t}function at(e){if(!N(e)||typeof e.parameter!=`string`||typeof e.type!=`string`)return e;let t=qe[e.type];return t===void 0?e:{...e,type:t}}function ot(e,t){return N(t)&&typeof t.parameter==`string`?!0:Array.isArray(t)?e!==`? between ?`||t.length===2:!1}function st(e,t){let n=e.expression,r=[rt(e,!1)];if(!We.has(n)&&e.value!==void 0){let t=Ge.has(n)&&Xe(e.value);r.push(t?rt(e.value):z(e.value))}let i={};typeof e.id==`string`&&(i.id=e.id),`ignoredItemIds`in e&&(i.ignore=z(e.ignoredItemIds)),t!==void 0&&(i.type=t);let a={expression:n,parameters:r};return Object.keys(i).length>0&&(a.properties=i),a}function ct(e){let{expression:t}=e;if(typeof t!=`string`||t.length===0)return null;let n=Array.isArray(e.parameters)?e.parameters:[];if(!N(n[0]))throw new M(`Cannot emit a clean filter reference for "${t}".`);let r={...it(n[0]),expression:t};if(!We.has(t)){let e=n[1];if(e===void 0)throw new M(`Filter "${t}" is missing its value operand.`);if(r.value=Xe(e)&&Ge.has(t)?it(e):at(z(e)),Ke.has(t)&&!ot(t,r.value))throw new M(`Cannot emit an invalid clean filter value for "${t}".`)}let{properties:i}=e;return i?.id!==void 0&&(r.id=i.id),i!==void 0&&`ignore`in i&&(r.ignoredItemIds=z(i.ignore)),r}function lt(e){return P(e)}function ut(e){return Array.isArray(e.filters)?e.filters:[]}function dt(e,t){return e.properties?.type===`having`||e.properties?.type===`where`?e.properties.type:t??`where`}function B(e,t,n=1,r=new Set){L(n);let i=e.clause??t;for(let t of ut(e))lt(t)?B(t,i,n+1,r):typeof t.expression==`string`&&t.expression.length>0&&r.add(dt(t,i));return r}function ft(e,t,n=1){L(n);let r=e.clause??t;if(e.condition===`or`&&B(e,r,n).size>1)throw new M(`An "or" group mixes "where" and "having" filters, which clean output cannot represent.`);for(let t of ut(e))lt(t)&&ft(t,r,n+1)}function pt(e,t,n,r=1){L(r);let i=e.clause??n,a=[];for(let n of ut(e)){if(lt(n)){let e=pt(n,t,i,r+1);e.filters.length>0&&a.push(e);continue}if(dt(n,i)!==t)continue;let e=ct(n);e&&a.push(e)}let o={condition:e.condition===`or`?`or`:`and`,filters:a};return e.id!==void 0&&B(e,i,r).size<=1&&(o.id=e.id),o}function mt(e){let t=e.clause;ft(e,t);let n=B(e,t);return n.size===0&&n.add(t??`where`),[`where`,`having`].filter(e=>n.has(e)).map(n=>({...pt(e,n,t),clause:n})).filter(e=>e.filters.length>0)}var ht=[`origin`,`datasetId`,`vizId`,`itemId`,`isDrilldown`,`type`];function gt(e){return typeof e==`string`&&e.toLowerCase()===`or`?`or`:`and`}function _t(e){return P(e)}function vt(e){if(!Array.isArray(e)||e.length===0)return[];let t=N(e[0])?e[0]:void 0,n=e.length>1?e[1]:void 0;return e.length>1?[t,n]:[t]}function yt(e){if(typeof e.expression!=`string`||e.expression.length===0)return null;let t={expression:e.expression,parameters:vt(e.parameters)};return e.properties!==void 0&&Object.keys(e.properties).length>0&&(t.properties=structuredClone(e.properties)),t}function bt(e,t){let n=e,r=t;for(let e of ht)n[e]!==void 0&&(r[e]=n[e])}function xt(e){if(!e||!e.filters)return{condition:`and`,filters:[],subGroups:[]};let t=[],n=[];for(let r of e.filters)if(_t(r))n.push(xt(r));else{let e=yt(r);e&&t.push(e)}let r={condition:gt(e.condition),filters:t,subGroups:n};return e.id!==void 0&&(r.id=e.id),bt(e,r),r}function St(e,t){return e?t?.format===`clean`?mt(e):[xt(e)]:[]}function Ct(e,t){let n={expression:typeof e.expression==`string`?e.expression:void 0,parameters:Array.isArray(e.parameters)?[...e.parameters]:[]},r=N(e.properties)?structuredClone(e.properties):{};return t!==void 0&&r.type===void 0&&(r.type=t),Object.keys(r).length>0&&(n.properties=r),n}function wt(e,t,n){if(P(e))return Tt(e,t,n);if(!N(e))return;let r=e.expression;if(Be(e),Re(e))return st(e,t);if(I(e)&&Ve(e),ze(e))return Ct(e,t);throw new M(`Filter leaf "${String(r)}" matches neither a complete clean nor a complete canonical encoding.`)}function Tt(e,t,n){L(n);let r=He(e.clause)?e.clause:void 0,i=r??t,a=[];for(let t of Array.isArray(e.filters)?e.filters:[]){let e=wt(t,i,n+1);e!==void 0&&a.push(e)}for(let t of Array.isArray(e.subGroups)?e.subGroups:[])P(t)&&a.push(Tt(t,i,n+1));let o={condition:gt(e.condition),filters:a};return typeof e.id==`string`&&(o.id=e.id),r!==void 0&&(o.clause=r),bt(e,o),o}function Et(e){return!e||e.length===0?[]:e.filter(e=>P(e)).map(e=>Tt(e,void 0,1))}var Dt=`:host{font-family:var(--luzmo-font-family)}luzmo-select{width:100%}:host{--var:blue}`,V=class extends t(C(S,{validSizes:Object.values(x)})){constructor(...e){super(...e),this.hasLabel=!1,this.allowEmpty=!1,this.placeholder=``,this.disabled=!1,this.readonly=!1,this.quiet=!1,this.invalid=!1,this.isFormula=!1,this._expressionConfigurations=E()}static get styles(){return[b(Dt)]}_sendChangeEvent(){if(this.disabled||this.readonly)return;let e={expression:this.filter?.expression};this.filter?.parameters?.[1]?.unit&&(e.unit=this.filter?.parameters?.[1]?.unit),this.dispatchEvent(new CustomEvent(`luzmo-expression-selected`,{bubbles:!0,composed:!0,cancelable:!0,detail:e}))}setExpression(e){this._richExpression=e?.detail?.value?.[0];let t=this._expressionConfigurations.find(e=>e.id===this._richExpression),n=structuredClone(this.filter);n.expression=t?.expression,t?.unit&&(this._unit=t.unit,n?.parameters[0]&&(n.parameters[1]={unit:this._unit})),this.filter=n,this._sendChangeEvent()}willUpdate(e){super.willUpdate(e);let t=e.has(`filter`),n=e.has(`type`),r=e.has(`subtype`),i=e.has(`isFormula`),a=ie(this.type,this.subtype,this.isFormula),o=[`YTD`,`QTD`,`MTD`,`WTD`];if(this.filter?.expression===`to_date`){let e=this.filter?.parameters[1]?.unit??1;this._unit=e,this._richExpression=o[e-1]??`YTD`}else this._richExpression=this.filter?.expression;(n||r||i||t)&&this.filter&&!this.disabled&&!this.readonly&&!a?.find(e=>e.expression===this.filter?.expression)?(this.invalid=!0,console.warn(`Warning: ${this.filter?.expression} is not valid given the type: ${this.type} and subtype: ${this.subtype}`)):this.invalid=!1,!this.filter?.expression&&!this.allowEmpty&&(this._richExpression=a?.[0]?.id,this.filter={...this.filter,expression:this._richExpression},this._sendChangeEvent())}render(){let e=ie(this.type,this.subtype,this.isFormula)?.map(e=>({value:e.id,label:e.description,shortLabel:e.tiny})),t=this.disabled||!this.filter?.expression&&!this.allowEmpty,r=g`<luzmo-field-label
|
|
2
|
+
import{n as e,t}from"./localized-mixin-BJ8UiX2u.js";import{n,r}from"./lit-localize-CIGP-NUw.js";import{t as i}from"./localized-decorator-Buib6Rq1.js";import{t as a}from"./luzmoTrashOutline-DXZpJx7f.js";import{n as o,r as s,t as c}from"./calculate-data-field-icon-CrEVAfzJ.js";import{t as l}from"./luzmoPlus-Dyrrz0v8.js";import{t as u}from"./luzmo-icon-markup-Cw93OB80.js";import{t as d}from"./v4-CI0qP0ur.js";import{c as f}from"./type-check-CC6bgirK.js";import{t as p}from"./localize-BXHWaHdZ.js";import{n as m}from"./periods.const-Cie50jR4.js";import{t as h}from"./data-broker-CbKNAOhf.js";import"./load-data-fields-for-datasets-D6Mm3A1F.js";import{html as g,ifDefined as ee,nothing as _,property as v,query as te,repeat as ne,state as y,unsafeCSS as b}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/lit.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/action-button.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/field-label.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/icon.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/number-field.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/overlay.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/picker.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/popover.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/progress-circle.js";import{ElementSizes as x,LuzmoElement as S,SizedMixin as C}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/utils.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/tooltip.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/menu.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/button.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/badge.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/select.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/divider.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/options.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/tags.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/text-field.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/date-time-picker.js";var w=[``,``,``],re=``;function T(e,t){let n=RegExp(`(${w.join(`|`)})`,`u`),r=[];for(let i of e.replaceAll(re,``).split(n)){let e=w.indexOf(i);e===-1?i&&r.push(i):r.push(t[e])}return r}var E=()=>[{id:`? = ?`,key:`? = ?`,expression:`? = ?`,name:n(`equals`,{desc:`Filter expression for equals comparison`}),description:n(`equals`,{desc:`Filter expression for equals comparison`}),tiny:n(`eq`,{desc:`Short form of equals comparison`}),type:[`numeric`,`hierarchy`],subtype:[`ip_address`]},{id:`? != ?`,key:`? != ?`,expression:`? != ?`,name:n(`not equals`,{desc:`Filter expression for not equals comparison`}),description:n(`not equals`,{desc:`Filter expression for not equals comparison`}),tiny:n(`not eq`,{desc:`Short form of not equals comparison`}),type:[`numeric`,`hierarchy`],subtype:[`ip_address`]},{id:`? in ?`,key:`? in ?`,expression:`? in ?`,name:n(`is in`,{desc:`Filter expression for in comparison`}),description:n(`is in`,{desc:`Filter expression for in comparison`}),tiny:n(`is in`,{desc:`Filter expression for in comparison`}),type:[`numeric`,`hierarchy`],subtype:[`ip_address`]},{id:`? not in ?`,key:`? not in ?`,expression:`? not in ?`,name:n(`is not in`,{desc:`Filter expression for not in comparison`}),description:n(`is not in`,{desc:`Filter expression for not in comparison`}),tiny:n(`is not in`,{desc:`Filter expression for not in comparison`}),type:[`numeric`,`hierarchy`],subtype:[`ip_address`]},{id:`? like ?`,key:`? like ?`,expression:`? like ?`,name:n(`contains`,{desc:`Filter expression for contains comparison`}),description:n(`contains`,{desc:`Filter expression for contains comparison`}),tiny:n(`cont`,{desc:`Short form of contains comparison in filter expression`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? not like ?`,key:`? not like ?`,expression:`? not like ?`,name:n(`does not contain`,{desc:`Filter expression for does not contain comparison`}),description:n(`does not contain`,{desc:`Filter expression for does not contain comparison`}),tiny:n(`not cont`,{desc:`Short form of does not contain comparison in filter expression`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? starts with ?`,key:`? starts with ?`,expression:`? starts with ?`,name:n(`starts with`,{desc:`Filter expression for starts with comparison`}),description:n(`starts with`,{desc:`Filter expression for starts with comparison`}),tiny:n(`starts with`,{desc:`Filter expression for starts with comparison`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? not starts with ?`,key:`? not starts with ?`,expression:`? not starts with ?`,name:n(`does not start with`,{desc:`Filter expression for does not start with comparison`}),description:n(`does not start with`,{desc:`Filter expression for does not start with comparison`}),tiny:n(`not starts with`,{desc:`Short form of does not start with comparison in filter expression`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? ends with ?`,key:`? ends with ?`,expression:`? ends with ?`,name:n(`ends with`,{desc:`Filter expression for ends with comparison`}),description:n(`ends with`,{desc:`Filter expression for ends with comparison`}),tiny:n(`ends with`,{desc:`Filter expression for ends with comparison`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? not ends with ?`,key:`? not ends with ?`,expression:`? not ends with ?`,name:n(`does not end with`,{desc:`Filter expression for does not end with comparison`}),description:n(`does not end with`,{desc:`Filter expression for does not end with comparison`}),tiny:n(`not ends with`,{desc:`Short form of does not end with comparison in filter expression`}),type:[`hierarchy`],subtype:[`ip_address`]},{id:`? < ?`,key:`? < ?`,expression:`? < ?`,name:n(`less than`,{desc:`Filter expression for less than comparison`}),description:n(`less than`,{desc:`Filter expression for less than comparison`}),tiny:`<`,type:[`numeric`,`datetime`],subtype:[`ip_address`]},{id:`? <= ?`,key:`? <= ?`,expression:`? <= ?`,name:n(`less than or equal`,{desc:`Filter expression for less than or equal comparison`}),description:n(`less than or equal`,{desc:`Filter expression for less than or equal comparison`}),tiny:`<=`,type:[`numeric`,`datetime`],subtype:[`ip_address`]},{id:`? > ?`,key:`? > ?`,expression:`? > ?`,name:n(`greater than`,{desc:`Filter expression for greater than comparison`}),description:n(`greater than`,{desc:`Filter expression for greater than comparison`}),tiny:`>`,type:[`numeric`,`datetime`],subtype:[`ip_address`]},{id:`? >= ?`,key:`? >= ?`,expression:`? >= ?`,name:n(`greater than or equal`,{desc:`Filter expression for greater than or equal comparison`}),description:n(`greater than or equal`,{desc:`Filter expression for greater than or equal comparison`}),tiny:`>=`,type:[`numeric`,`datetime`],subtype:[`ip_address`]},{id:`? between ?`,key:`? between ?`,expression:`? between ?`,name:n(`is between`,{desc:`Filter expression for between comparison`}),description:n(`is between`,{desc:`Filter expression for between comparison`}),tiny:n(`between`,{desc:`Short form of between comparison in filter expression`}),type:[],subtype:[`ip_address`]},{id:`last_now`,key:`last_now`,expression:`last_now`,name:n(`last (x) periods`,{desc:`Filter expression for last (x) periods`}),description:n(`last (x) periods`,{desc:`Filter expression for last (x) periods`}),tiny:n(`last`,{desc:`Short form of last (x) periods in filter expression`}),type:[`datetime`]},{id:`last_available`,key:`last_available`,expression:`last_available`,name:n(`last (x) available periods`,{desc:`Filter expression for last (x) available periods`}),description:n(`last (x) available periods`,{desc:`Filter expression for last (x) available periods`}),tiny:n(`last available`,{desc:`Short form of last (x) available periods in filter expression`}),type:[`datetime`]},{id:`last_completed`,key:`last_completed`,expression:`last_completed`,name:n(`last completed period`,{desc:`Filter expression for last completed period`}),description:n(`last completed (period)`,{desc:`Filter expression for last completed period`}),tiny:n(`last completed`,{desc:`Short form of last completed period in filter expression`}),type:[`datetime`]},{id:`next_now`,key:`next_now`,expression:`next_now`,name:n(`next (x) periods`,{desc:`Filter expression for next (x) periods`}),description:n(`next (x) periods`,{desc:`Filter expression for next (x) periods`}),tiny:n(`next`,{desc:`Short form of next (x) periods in filter expression`}),type:[`datetime`]},{id:`more_than_ago`,key:`more_than_ago`,expression:`more_than_ago`,name:n(`more than (x) periods ago`,{desc:`Filter expression for more than (x) periods ago`}),description:n(`more than (x) periods ago`,{desc:`Filter expression for more than (x) periods ago`}),tiny:n(`more than ago`,{desc:`Short form of more than (x) periods ago in filter expression`}),type:[`datetime`]},{id:`or_more_ago`,key:`or_more_ago`,expression:`or_more_ago`,name:n(`(x) periods or more ago`,{desc:`Filter expression for (x) periods or more ago`}),description:n(`(x) periods or more ago`,{desc:`Filter expression for (x) periods or more ago`}),tiny:n(`or more ago`,{desc:`Short form of (x) periods or more ago in filter expression`}),type:[`datetime`]},{id:`next_full`,key:`next_full`,expression:`next_full`,name:n(`next full (period)`,{desc:`Filter expression for next full period`}),description:n(`next full (period)`,{desc:`Filter expression for next full period`}),tiny:n(`next full`,{desc:`Short form of next full period in filter expression`}),type:[`datetime`]},{id:`WTD`,key:`to_date`,expression:`to_date`,unit:4,name:n(`week to date`,{desc:`Filter expression for week to date`}),description:n(`week to date`,{desc:`Filter expression for week to date`}),tiny:n(`WTD`,{desc:`Short form of week to date in filter expression`}),type:[`datetime`]},{id:`MTD`,key:`to_date`,expression:`to_date`,unit:3,name:n(`month to date`,{desc:`Filter expression for month to date`}),description:n(`month to date`,{desc:`Filter expression for month to date`}),tiny:n(`MTD`,{desc:`Short form of month to date in filter expression`}),type:[`datetime`]},{id:`QTD`,key:`to_date`,expression:`to_date`,unit:2,name:n(`quarter to date`,{desc:`Filter expression for quarter to date`}),description:n(`quarter to date`,{desc:`Filter expression for quarter to date`}),tiny:n(`QTD`,{desc:`Short form of quarter to date in filter expression`}),type:[`datetime`]},{id:`YTD`,key:`to_date`,expression:`to_date`,unit:1,name:n(`year to date`,{desc:`Filter expression for year to date`}),description:n(`year to date`,{desc:`Filter expression for year to date`}),tiny:n(`YTD`,{desc:`Short form of year to date in filter expression`}),type:[`datetime`]},{id:`? is null`,key:`? is null`,expression:`? is null`,name:n(`is missing`,{desc:`Filter expression for is missing`}),description:n(`is missing`,{desc:`Filter expression for is missing`}),tiny:n(`missing`,{desc:`Short form of is missing in filter expression`}),type:[`numeric`,`datetime`,`hierarchy`,`spatial`],subtype:[`ip_address`]},{id:`? is not null`,key:`? is not null`,expression:`? is not null`,name:n(`is not missing`,{desc:`Filter expression for is not missing`}),description:n(`is not missing`,{desc:`Filter expression for is not missing`}),tiny:n(`not missing`,{desc:`Short form of is not missing in filter expression`}),type:[`numeric`,`datetime`,`hierarchy`,`spatial`],subtype:[`ip_address`]}],ie=(e,t,n)=>{let r=new Set([`? in ?`,`? not in ?`]);return!e&&!t?E():E().filter(i=>(e&&i.type.includes(e)||t&&i.subtype?.includes(t))&&!(n&&r.has(i.key)))},ae=new Set([`last_now`,`last_available`,`next_now`,`more_than_ago`,`or_more_ago`]),oe=new Set([`last_completed`,`next_full`]),se=new Set([`? is null`,`? is not null`,`to_date`]),ce=new Set([`? = ?`,`? != ?`,`? < ?`,`? <= ?`,`? > ?`,`? >= ?`]),le=3,ue=32;function D(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function O(e){return D(e)?typeof e.columnId==`string`||typeof e.column_id==`string`||typeof e.formulaId==`string`||typeof e.formula_id==`string`||typeof e.formula==`string`||(typeof e.datasetId==`string`||typeof e.dataset_id==`string`)&&(e.columnExpression!==void 0||e.expression!==void 0):!1}function de(e){return e.length<=ue?{display:e,truncated:!1}:{display:`${e.slice(0,ue-1)}…`,truncated:!0}}function fe(e,t,n){try{return new Intl.ListFormat(e||void 0,{style:`long`,type:n}).format(t)}catch{return t.join(`, `)}}function k(e,t,n){let r=Ee(e,t,n),{display:i,truncated:a}=de(r);return{label:i,full:r,truncated:a}}function pe(e){return e===1?n(`1 item`,{desc:`One selected hierarchy value whose name is still loading`}):n(r`${e} items`,{desc:`Selected hierarchy values whose names are still loading`})}function me(){return n(`Some item names could not be retrieved`,{desc:`Tooltip when a hierarchy filter value is still an id after name lookup`})}function he(e,t){return!!(t?.type===`hierarchy`&&t.datasetId&&t.fieldId&&!(D(e)&&e.name!==void 0)&&j(e))}function ge(e,t,n){let r=n?.datasetId,i=n?.fieldId;return!r||!i?[]:e.flatMap(e=>{if(!he(e,n))return[];let a=j(e);return a?t.hierarchyLabels?.get(Te(r,i,a))?[]:[a]:[]})}function _e(e,t,n){return n.hierarchyLabelsLoading&&t.length>0?{valueText:pe(t.length),valuePending:!0}:n.hierarchyLabels&&!n.hierarchyLabelsLoading&&t.length>0&&!e.valueTooltip?{...e,valueTooltip:me()}:e}function ve(e,t,i){let a=e.map(e=>k(e,t,i)),o=a.map(e=>e.full),s=fe(t.contentLanguage,o,`conjunction`);if(e.length===1){let[e]=a;return{valueText:e.label,valueTooltip:e.truncated?e.full:void 0}}let c=Math.min(le,a.length),l=a.length-c,u=a.slice(0,c).map(e=>e.label),d=a.some(e=>e.truncated),f;return f=l>0?n(r`${fe(t.contentLanguage,u,`unit`)}, and ${l} more`,{desc:`Filter values after the first few shown in a read-only sentence, e.g. "Dresses, Shoes, Shorts, and 1 more"`}):fe(t.contentLanguage,a.map(e=>e.label),`conjunction`),{valueText:f,valueTooltip:l>0||d?s:void 0}}function A(e,t,n){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`){let t=String(e);return t.length>0?t:n}if(e&&typeof e==`object`){let n=p(e,t);if(n)return n}return n}function ye(e,t){for(let n of t){let t=e[n];if(typeof t==`string`&&t.length>0)return t}}function be(e,t){let n=ye(e,[`datasetId`,`dataset_id`]),r=ye(e,[`columnId`,`column_id`]),i=ye(e,[`formulaId`,`formula_id`]),a=typeof e.formula==`string`?e.formula:void 0,o=t.datasets.find(e=>e.id===n),s=o?A(o.name,t.contentLanguage,``):``;if(i){let e=o?.formulas?.find(e=>e.id===i),r=A(e?.name,t.contentLanguage,i);return{label:r,tooltip:s?`${s} · ${r}`:r,type:e?.type,subtype:e?.subtype,formula:!0,datasetId:n,fieldId:i}}if(a)return{label:a,tooltip:s?`${s} · ${a}`:a,formula:!0,datasetId:n};let c=!r&&typeof e.expression==`string`?e.expression:void 0;if(c)return{label:c,tooltip:s?`${s} · ${c}`:c,formula:!0,datasetId:n};let l=r?o?.columns?.find(e=>e.id===r):void 0,u=r??(typeof e.columnExpression==`string`?e.columnExpression:``),d=A(l?.name,t.contentLanguage,u);return{label:d,tooltip:s?`${s} · ${d}`:d,type:l?.type,subtype:l?.subtype,formula:!1,datasetId:n,fieldId:r}}function xe(e){let t=m.find(t=>t.level===e);return t?t.i18n():``}function Se(e,t){switch(t){case 1:return e===1?n(r`${e} Year`,{desc:`Singular relative filter quantity in years`}):n(r`${e} Years`,{desc:`Plural relative filter quantity in years`});case 2:return e===1?n(r`${e} Quarter`,{desc:`Singular relative filter quantity in quarters`}):n(r`${e} Quarters`,{desc:`Plural relative filter quantity in quarters`});case 3:return e===1?n(r`${e} Month`,{desc:`Singular relative filter quantity in months`}):n(r`${e} Months`,{desc:`Plural relative filter quantity in months`});case 4:return e===1?n(r`${e} Week`,{desc:`Singular relative filter quantity in weeks`}):n(r`${e} Weeks`,{desc:`Plural relative filter quantity in weeks`});case 5:return e===1?n(r`${e} Day`,{desc:`Singular relative filter quantity in days`}):n(r`${e} Days`,{desc:`Plural relative filter quantity in days`});case 6:return e===1?n(r`${e} Hour`,{desc:`Singular relative filter quantity in hours`}):n(r`${e} Hours`,{desc:`Plural relative filter quantity in hours`});case 7:return e===1?n(r`${e} Minute`,{desc:`Singular relative filter quantity in minutes`}):n(r`${e} Minutes`,{desc:`Plural relative filter quantity in minutes`});case 8:return e===1?n(r`${e} Second`,{desc:`Singular relative filter quantity in seconds`}):n(r`${e} Seconds`,{desc:`Plural relative filter quantity in seconds`});case 9:return e===1?n(r`${e} Millisecond`,{desc:`Singular relative filter quantity in milliseconds`}):n(r`${e} Milliseconds`,{desc:`Plural relative filter quantity in milliseconds`});default:return n(r`${e}`,{desc:`Relative filter quantity`})}}function Ce(e,t){let n=new Date(e);if(Number.isNaN(n.getTime()))return e;try{return new Intl.DateTimeFormat(t.contentLanguage||void 0,{dateStyle:`medium`,timeStyle:`short`,...t.timeZone?{timeZone:t.timeZone}:{}}).format(n)}catch{return e}}function we(e){return/^\d{4}-\d{2}-\d{2}(?:T|$)/.test(e)}function Te(e,t,n){return`${e}:${t}:${n}`}function j(e){if(typeof e==`string`||typeof e==`number`)return String(e);if(D(e)&&(typeof e.id==`string`||typeof e.id==`number`))return String(e.id)}function Ee(e,t,n){if(n?.type===`hierarchy`&&n.datasetId&&n.fieldId&&!(D(e)&&e.name!==void 0)){let r=j(e),i=r===void 0?void 0:t.hierarchyLabels?.get(Te(n.datasetId,n.fieldId,r));if(i)return i}if(typeof e==`number`&&Number.isFinite(e))return new Intl.NumberFormat(t.contentLanguage||void 0).format(e);if(typeof e==`string`)return we(e)?Ce(e,t):e;if(typeof e==`boolean`)return String(e);if(D(e)){if(typeof e.parameter==`string`)return e.parameter;if(e.name!==void 0){let n=A(e.name,t.contentLanguage,``);if(n)return n}if(typeof e.id==`string`||typeof e.id==`number`)return String(e.id)}return``}function De(e,t){let n=E().filter(t=>t.expression===e),r=D(t)&&typeof t.unit==`number`?t.unit:void 0;return(e===`to_date`&&r!==void 0?n.find(e=>e.unit===r)??n[0]:n[0])?.tiny??e}function Oe(e,t,i,a){if(se.has(e)||t==null)return{valueText:``};if(D(t)&&typeof t.parameter==`string`){let e=t.parameter;if(!O(t))return{valueText:e}}if(ce.has(e)&&O(t))return{valueText:``,valueField:be(t,i)};if(e===`? between ?`&&Array.isArray(t)&&t.length===2){let e=k(t[0],i,a),o=k(t[1],i,a);return _e({valueText:n(r`${e.label} and ${o.label}`,{desc:`Inclusive range shown between two filter values`}),valueTooltip:e.truncated||o.truncated?n(r`${e.full} and ${o.full}`,{id:`filter-range-tooltip`,desc:`Full inclusive range shown in a tooltip`}):void 0},ge(t,i,a),i)}if(ae.has(e)&&D(t))return{valueText:Se(typeof t.quantity==`number`?t.quantity:1,t.unit)};if(oe.has(e)&&D(t))return{valueText:xe(t.unit)};if(Array.isArray(t))return t.length===0?{valueText:``}:_e(ve(t,i,a),ge(t,i,a),i);let o=k(t,i,a);return _e({valueText:o.label,valueTooltip:o.truncated?o.full:void 0},ge([t],i,a),i)}function ke(e,t){let n=e.parameters?.[0];if(!D(n)||!O(n))return null;let r=be(n,t),i=typeof e.expression==`string`?e.expression:``,a=e.parameters?.[1];return{field:r,expression:i?De(i,a):``,...Oe(i,a,t,r)}}function Ae(e){return`condition`in e&&`filters`in e}function je(e){if(e==null)return[];if(Array.isArray(e))return e.flatMap(je);if(D(e)){if(typeof e.parameter==`string`||e.name!==void 0||O(e))return[];let t=j(e);return t?[t]:[]}let t=j(e);return t?[t]:[]}function Me(e,t){let n=new Map,r=e=>{if(Ae(e)){e.filters.forEach(r);return}let i=e.parameters?.[0];if(!D(i)||!O(i))return;let a=be(i,t);if(a.type!==`hierarchy`||!a.datasetId||!a.fieldId)return;let o=[...new Set(je(e.parameters?.[1]))];if(o.length===0)return;let s=`${a.datasetId}:${a.fieldId}`,c=n.get(s);if(c){c.ids=[...new Set([...c.ids,...o])];return}n.set(s,{datasetId:a.datasetId,...a.formula?{formulaId:a.fieldId}:{columnId:a.fieldId},ids:o})};return r(e),[...n.values()]}async function Ne(e,t){let n=new Map;return await Promise.all(e.map(async e=>{let r={dataset_id:e.datasetId,column_id:e.columnId,formula_id:e.formulaId},i=await h.fetchData({dimensions:[r],where:[{expression:`? in ?`,parameters:[r,e.ids]}],limit:{by:e.ids.length,offset:0}}),a=e.columnId??e.formulaId??``;for(let r of i.data??[]){let i=r[0],o=i&&typeof i==`object`&&`id`in i?String(i.id):String(i),s=i&&typeof i==`object`&&`name`in i?p(i.name,t):``;s&&n.set(Te(e.datasetId,a,o),s)}})),n}var Pe=20,M=class extends Error{constructor(e){super(e),this.name=`FilterUnrepresentableError`}},Fe=new Set([`and`,`or`]),Ie=[`datasetId`,`dataset_id`,`columnId`,`column_id`,`formulaId`,`formula_id`,`formula`,`columnExpression`,`value`,`ignoredItemIds`];function N(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function P(e){return!N(e)||e.condition!==void 0&&(typeof e.condition!=`string`||!Fe.has(e.condition.toLowerCase()))?!1:`filters`in e||`subGroups`in e}function F(e){return N(e)&&`expression`in e&&!(`condition`in e)}function I(e){return Ie.some(t=>t in e)}function Le(e,t=!1){let n=[e.columnId!==void 0||e.column_id!==void 0,e.formulaId!==void 0||e.formula_id!==void 0,e.formula!==void 0].filter(Boolean).length;return n===1?!0:n>1?!1:e.columnExpression!==void 0||t&&e.expression!==void 0}function Re(e){return!F(e)||typeof e.expression!=`string`||e.expression.length===0||`parameters`in e||typeof e.datasetId!=`string`&&typeof e.dataset_id!=`string`?!1:Le(e)}function ze(e){return!F(e)||!Array.isArray(e.parameters)?!1:!I(e)}function Be(e){if(!(`parameters`in e))return;let t=Ie.find(t=>t in e);if(t!==void 0)throw new M(`Filter leaf mixes "parameters" with the clean inline key "${t}".`)}function Ve(e){throw typeof e.expression!=`string`||e.expression.length===0?new M(`Clean filter leaf is missing a non-empty "expression".`):typeof e.datasetId!=`string`&&typeof e.dataset_id!=`string`?new M(`Clean filter leaf "${e.expression}" is missing a "datasetId".`):new M(`Clean filter leaf "${e.expression}" must name exactly one of "columnId", "formulaId", "formula", or "columnExpression".`)}function He(e){return e===`where`||e===`having`}function L(e){if(e>20)throw new M(`Filter nesting exceeds the maximum depth of 20.`)}function Ue(e){if(e==null)return`empty`;if(!Array.isArray(e))return`unknown`;if(e.length===0)return`empty`;let t=!1,n=!1,r=!1,i=(e,a)=>{if(a>20){r=!0;return}if(P(e)){He(e.clause)&&(n=!0);let t=[...Array.isArray(e.filters)?e.filters:[],...Array.isArray(e.subGroups)?e.subGroups:[]];for(let e of t)i(e,a+1);return}if(F(e)){`parameters`in e&&I(e)?r=!0:Re(e)?n=!0:ze(e)?t=!0:r=!0;return}r=!0};for(let t of e)i(t,1);return r?`unknown`:n&&t?`mixed`:n?`clean`:t?`canonical`:`empty`}var We=new Set([`? is null`,`? is not null`]),Ge=new Set([`? = ?`,`? != ?`,`? < ?`,`? <= ?`,`? > ?`,`? >= ?`]),Ke=new Set([`? in ?`,`? not in ?`,`? between ?`]),qe={"array[numeric]":`numeric[]`,"array[hierarchy]":`hierarchy[]`,"array[datetime]":`datetime[]`},Je=new Set([`level`,`lowestLevel`,`unnest`,`discretization`,`aggregation`,`index`,`include_nonoccurring`,`simplification`]);function R(e,t){return e!==`lowestLevel`&&!(t===null&&Je.has(e))}function z(e){return structuredClone(e)}function Ye(e){let t=e.datasetId??e.dataset_id;if(typeof t!=`string`||t.length===0)throw new M(`Filter reference is missing a "datasetId".`);return t}function Xe(e){return N(e)?typeof e.columnId==`string`||typeof e.column_id==`string`||typeof e.formulaId==`string`||typeof e.formula_id==`string`||typeof e.formula==`string`||(typeof e.datasetId==`string`||typeof e.dataset_id==`string`)&&(e.columnExpression!==void 0||e.expression!==void 0):!1}function Ze(e){let t={type:e.type};return e.bins!==void 0&&(t.bins=e.bins),Array.isArray(e.over)&&(t.over=e.over.map(e=>it(e))),t}function Qe(e){let t={type:e.type},n=e.datasetId??e.dataset_id,r=e.columnId??e.column_id;return n!==void 0&&(t.datasetId=n),r!==void 0&&(t.columnId=r),e.level!==void 0&&R(`level`,e.level)&&(t.level=e.level),N(e.discretization)&&(t.discretization=Ze(e.discretization)),e.unnest!==void 0&&R(`unnest`,e.unnest)&&(t.unnest=e.unnest),t}function $e(e){let t={type:e.type};return e.bins!==void 0&&(t.bins=e.bins),Array.isArray(e.over)&&(t.over=e.over.map(e=>N(e)?rt(e):e)),t}function et(e){let t={type:e.type},n=e.datasetId??e.dataset_id,r=e.columnId??e.column_id;return n!==void 0&&(t.datasetId=n),r!==void 0&&(t.columnId=r),e.level!==void 0&&(t.level=e.level),N(e.discretization)&&(t.discretization=$e(e.discretization)),e.unnest!==void 0&&(t.unnest=e.unnest),t}function tt(e,t){e.level!==void 0&&(t.level=z(e.level)),N(e.discretization)&&(t.discretization=$e(e.discretization)),N(e.aggregation)&&(t.aggregation=et(e.aggregation)),e.unnest!==void 0&&(t.unnest=z(e.unnest))}function nt(e,t){let n=e.columnId??e.column_id;if(n!==void 0)return{kind:`columnId`,value:n};let r=e.formulaId??e.formula_id;if(r!==void 0)return{kind:`formulaId`,value:r};if(e.formula!==void 0)return{kind:`formula`,value:e.formula};let i=e.columnExpression??(t?e.expression:void 0);if(i!==void 0)return{kind:`expression`,value:i}}function rt(e,t=!0){let n={datasetId:Ye(e)},r=nt(e,t);return r!==void 0&&(r.kind===`expression`?n.expression=r.value:n[r.kind]=r.value),tt(e,n),n}function it(e){if(!N(e))throw new M(`Cannot emit a clean filter reference.`);let t={datasetId:Ye(e)};e.level!==void 0&&R(`level`,e.level)&&(t.level=e.level),N(e.discretization)&&(t.discretization=Ze(e.discretization)),N(e.aggregation)&&(t.aggregation=Qe(e.aggregation)),e.unnest!==void 0&&R(`unnest`,e.unnest)&&(t.unnest=e.unnest);let n=nt(e,!0);if(n===void 0)throw new M(`Cannot emit a clean filter reference: no column, formula, or expression.`);return n.kind===`expression`?t.columnExpression=n.value:t[n.kind]=n.value,t}function at(e){if(!N(e)||typeof e.parameter!=`string`||typeof e.type!=`string`)return e;let t=qe[e.type];return t===void 0?e:{...e,type:t}}function ot(e,t){return N(t)&&typeof t.parameter==`string`?!0:Array.isArray(t)?e!==`? between ?`||t.length===2:!1}function st(e,t){let n=e.expression,r=[rt(e,!1)];if(!We.has(n)&&e.value!==void 0){let t=Ge.has(n)&&Xe(e.value);r.push(t?rt(e.value):z(e.value))}let i={};typeof e.id==`string`&&(i.id=e.id),`ignoredItemIds`in e&&(i.ignore=z(e.ignoredItemIds)),t!==void 0&&(i.type=t);let a={expression:n,parameters:r};return Object.keys(i).length>0&&(a.properties=i),a}function ct(e){let{expression:t}=e;if(typeof t!=`string`||t.length===0)return null;let n=Array.isArray(e.parameters)?e.parameters:[];if(!N(n[0]))throw new M(`Cannot emit a clean filter reference for "${t}".`);let r={...it(n[0]),expression:t};if(!We.has(t)){let e=n[1];if(e===void 0)throw new M(`Filter "${t}" is missing its value operand.`);if(r.value=Xe(e)&&Ge.has(t)?it(e):at(z(e)),Ke.has(t)&&!ot(t,r.value))throw new M(`Cannot emit an invalid clean filter value for "${t}".`)}let{properties:i}=e;return i?.id!==void 0&&(r.id=i.id),i!==void 0&&`ignore`in i&&(r.ignoredItemIds=z(i.ignore)),r}function lt(e){return P(e)}function ut(e){return Array.isArray(e.filters)?e.filters:[]}function dt(e,t){return e.properties?.type===`having`||e.properties?.type===`where`?e.properties.type:t??`where`}function B(e,t,n=1,r=new Set){L(n);let i=e.clause??t;for(let t of ut(e))lt(t)?B(t,i,n+1,r):typeof t.expression==`string`&&t.expression.length>0&&r.add(dt(t,i));return r}function ft(e,t,n=1){L(n);let r=e.clause??t;if(e.condition===`or`&&B(e,r,n).size>1)throw new M(`An "or" group mixes "where" and "having" filters, which clean output cannot represent.`);for(let t of ut(e))lt(t)&&ft(t,r,n+1)}function pt(e,t,n,r=1){L(r);let i=e.clause??n,a=[];for(let n of ut(e)){if(lt(n)){let e=pt(n,t,i,r+1);e.filters.length>0&&a.push(e);continue}if(dt(n,i)!==t)continue;let e=ct(n);e&&a.push(e)}let o={condition:e.condition===`or`?`or`:`and`,filters:a};return e.id!==void 0&&B(e,i,r).size<=1&&(o.id=e.id),o}function mt(e){let t=e.clause;ft(e,t);let n=B(e,t);return n.size===0&&n.add(t??`where`),[`where`,`having`].filter(e=>n.has(e)).map(n=>({...pt(e,n,t),clause:n})).filter(e=>e.filters.length>0)}var ht=[`origin`,`datasetId`,`vizId`,`itemId`,`isDrilldown`,`type`];function gt(e){return typeof e==`string`&&e.toLowerCase()===`or`?`or`:`and`}function _t(e){return P(e)}function vt(e){if(!Array.isArray(e)||e.length===0)return[];let t=N(e[0])?e[0]:void 0,n=e.length>1?e[1]:void 0;return e.length>1?[t,n]:[t]}function yt(e){if(typeof e.expression!=`string`||e.expression.length===0)return null;let t={expression:e.expression,parameters:vt(e.parameters)};return e.properties!==void 0&&Object.keys(e.properties).length>0&&(t.properties=structuredClone(e.properties)),t}function bt(e,t){let n=e,r=t;for(let e of ht)n[e]!==void 0&&(r[e]=n[e])}function xt(e){if(!e||!e.filters)return{condition:`and`,filters:[],subGroups:[]};let t=[],n=[];for(let r of e.filters)if(_t(r))n.push(xt(r));else{let e=yt(r);e&&t.push(e)}let r={condition:gt(e.condition),filters:t,subGroups:n};return e.id!==void 0&&(r.id=e.id),bt(e,r),r}function St(e,t){return e?t?.format===`clean`?mt(e):[xt(e)]:[]}function Ct(e,t){let n={expression:typeof e.expression==`string`?e.expression:void 0,parameters:Array.isArray(e.parameters)?[...e.parameters]:[]},r=N(e.properties)?structuredClone(e.properties):{};return t!==void 0&&r.type===void 0&&(r.type=t),Object.keys(r).length>0&&(n.properties=r),n}function wt(e,t,n){if(P(e))return Tt(e,t,n);if(!N(e))return;let r=e.expression;if(Be(e),Re(e))return st(e,t);if(I(e)&&Ve(e),ze(e))return Ct(e,t);throw new M(`Filter leaf "${String(r)}" matches neither a complete clean nor a complete canonical encoding.`)}function Tt(e,t,n){L(n);let r=He(e.clause)?e.clause:void 0,i=r??t,a=[];for(let t of Array.isArray(e.filters)?e.filters:[]){let e=wt(t,i,n+1);e!==void 0&&a.push(e)}for(let t of Array.isArray(e.subGroups)?e.subGroups:[])P(t)&&a.push(Tt(t,i,n+1));let o={condition:gt(e.condition),filters:a};return typeof e.id==`string`&&(o.id=e.id),r!==void 0&&(o.clause=r),bt(e,o),o}function Et(e){return!e||e.length===0?[]:e.filter(e=>P(e)).map(e=>Tt(e,void 0,1))}var Dt=`:host{font-family:var(--luzmo-font-family)}luzmo-select{width:100%}:host{--var:blue}`,V=class extends t(C(S,{validSizes:Object.values(x)})){constructor(...e){super(...e),this.hasLabel=!1,this.allowEmpty=!1,this.placeholder=``,this.disabled=!1,this.readonly=!1,this.quiet=!1,this.invalid=!1,this.isFormula=!1,this._expressionConfigurations=E()}static get styles(){return[b(Dt)]}_sendChangeEvent(){if(this.disabled||this.readonly)return;let e={expression:this.filter?.expression};this.filter?.parameters?.[1]?.unit&&(e.unit=this.filter?.parameters?.[1]?.unit),this.dispatchEvent(new CustomEvent(`luzmo-expression-selected`,{bubbles:!0,composed:!0,cancelable:!0,detail:e}))}setExpression(e){this._richExpression=e?.detail?.value?.[0];let t=this._expressionConfigurations.find(e=>e.id===this._richExpression),n=structuredClone(this.filter);n.expression=t?.expression,t?.unit&&(this._unit=t.unit,n?.parameters[0]&&(n.parameters[1]={unit:this._unit})),this.filter=n,this._sendChangeEvent()}willUpdate(e){super.willUpdate(e);let t=e.has(`filter`),n=e.has(`type`),r=e.has(`subtype`),i=e.has(`isFormula`),a=ie(this.type,this.subtype,this.isFormula),o=[`YTD`,`QTD`,`MTD`,`WTD`];if(this.filter?.expression===`to_date`){let e=this.filter?.parameters[1]?.unit??1;this._unit=e,this._richExpression=o[e-1]??`YTD`}else this._richExpression=this.filter?.expression;(n||r||i||t)&&this.filter&&!this.disabled&&!this.readonly&&!a?.find(e=>e.expression===this.filter?.expression)?(this.invalid=!0,console.warn(`Warning: ${this.filter?.expression} is not valid given the type: ${this.type} and subtype: ${this.subtype}`)):this.invalid=!1,!this.filter?.expression&&!this.allowEmpty&&(this._richExpression=a?.[0]?.id,this.filter={...this.filter,expression:this._richExpression},this._sendChangeEvent())}render(){let e=ie(this.type,this.subtype,this.isFormula)?.map(e=>({value:e.id,label:e.description,shortLabel:e.tiny})),t=this.disabled||!this.filter?.expression&&!this.allowEmpty,r=g`<luzmo-field-label
|
|
3
3
|
for="expression"
|
|
4
4
|
size=${this.size}
|
|
5
5
|
>${this.label??n(`Select an expression`,{desc:`Label for expression picker`})}</luzmo-field-label
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import{a as e,f as t,g as n,i as r,m as i,n as a,o,p as s,r as c,s as l,t as u,x as d}from"./load-formula-codemirror-
|
|
2
|
+
import{a as e,f as t,g as n,i as r,m as i,n as a,o,p as s,r as c,s as l,t as u,x as d}from"./load-formula-codemirror-DY6C-Kxf.js";import{n as f,t as p}from"./localized-mixin-BJ8UiX2u.js";import{n as m}from"./lit-localize-CIGP-NUw.js";import{t as h}from"./localized-decorator-Buib6Rq1.js";import{t as g}from"./luzmoAngleDown-PNrItYzK.js";import{t as _}from"./calculate-data-field-icon-CrEVAfzJ.js";import{t as v}from"./luzmo-icon-markup-Cw93OB80.js";import{r as y}from"./base-DBoiLw2X.js";import{t as ee}from"./localize-BXHWaHdZ.js";import{html as b,nothing as x,property as S,query as te,state as ne,unsafeCSS as re}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/lit.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/action-button.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/field-label.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/icon.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/overlay.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/popover.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/progress-circle.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/tooltip.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/select.js";var ie={icon:[32,32,`m 24.70005,9.3 -9,-9 a 1,1 0 0 0 -1.4,0 l -9,9 c -1,1 0.5,2.3 1.4,1.4 l 7.3,-7.3 V 31 c 0,1.3 2,1.3 2,0 V 3.4 l 7.3,7.3 c 1,1 2.3,-0.5 1.4,-1.4 z`],name:`arrow-up`},ae={icon:[32,32,`m 24.70005,22.7 -9,9 a 1,1 0 0 1 -1.4,0 l -9,-9 c -1,-1 0.5,-2.3 1.4,-1.4 l 7.3,7.3 V 1 c 0,-1.3 2,-1.3 2,0 v 27.6 l 7.3,-7.3 c 1,-1 2.3,0.5 1.4,1.4 z`],name:`arrow-down`},oe={icon:[14,32,`m10.3 8.2-8 7a1 1 0 0 0 0 1.6l8 7c1 .8 2.3-.7 1.4-1.6L4.5 16l7.2-6.2c1-1-.4-2.4-1.4-1.6Z`],name:`angle-left`},se={icon:[32,32,`m6 6 16 16M5.3 6.7l9.3 9.3-9.3 9.3c-1 1 .5 2.3 1.4 1.4l9.3-9.3 9.3 9.3c1 1 2.3-.5 1.4-1.4L17.4 16l9.3-9.3c1-1-.5-2.3-1.4-1.4L16 14.6 6.7 5.3c-.9-1-2.3.5-1.4 1.4Z`],name:`close-16`},ce=[],le=[];(()=>{let e=`lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o`.split(`,`).map(e=>e?parseInt(e,36):1);for(let t=0,n=0;t<e.length;t++)(t%2?le:ce).push(n+=e[t])})();function ue(e){if(e<768)return!1;for(let t=0,n=ce.length;;){let r=t+n>>1;if(e<ce[r])n=r;else if(e>=le[r])t=r+1;else return!0;if(t==n)return!1}}function de(e){return e>=127462&&e<=127487}var fe=8205;function pe(e,t,n=!0,r=!0){return(n?me:he)(e,t,r)}function me(e,t,n){if(t==e.length)return t;t&&_e(e.charCodeAt(t))&&ve(e.charCodeAt(t-1))&&t--;let r=ge(e,t);for(t+=ye(r);t<e.length;){let i=ge(e,t);if(r==fe||i==fe||n&&ue(i))t+=ye(i),r=i;else if(de(i)){let n=0,r=t-2;for(;r>=0&&de(ge(e,r));)n++,r-=2;if(n%2==0)break;t+=2}else break}return t}function he(e,t,n){for(;t>1;){let r=me(e,t-2,n);if(r<t)return r;t--}return 0}function ge(e,t){let n=e.charCodeAt(t);if(!ve(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return _e(r)?(n-55296<<10)+(r-56320)+65536:n}function _e(e){return e>=56320&&e<57344}function ve(e){return e>=55296&&e<56320}function ye(e){return e<65536?1:2}var C=class e{lineAt(e){if(e<0||e>this.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=ke(this,e,t);let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),xe.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=ke(this,e,t);let n=[];return this.decompose(e,t,n,0),xe.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new Te(this),i=new Te(e);for(let e=t,a=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}iter(e=1){return new Te(this,e)}iterRange(e,t=this.length){return new Ee(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t??=this.lines+1;let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new De(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(t){if(t.length==0)throw RangeError(`A document must have at least one line`);return t.length==1&&!t[0]?e.empty:t.length<=32?new be(t):xe.from(be.split(t,[]))}},be=class e extends C{constructor(e,t=Se(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.text[i],o=r+a.length;if((t?n:o)>=e)return new Oe(r,o,n,a);r=o+1,n++}}decompose(t,n,r,i){let a=t<=0&&n>=this.length?this:new e(we(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let t=r.pop(),n=Ce(a.text,t.text.slice(),0,a.length);if(n.length<=32)r.push(new e(n,t.length+a.length));else{let t=n.length>>1;r.push(new e(n.slice(0,t)),new e(n.slice(t)))}}else r.push(a)}replace(t,n,r){if(!(r instanceof e))return super.replace(t,n,r);[t,n]=ke(this,t,n);let i=Ce(this.text,Ce(r.text,we(this.text,0,t)),n),a=this.length+r.length-(n-t);return i.length<=32?new e(i,a):xe.from(e.split(i,[]),a)}sliceString(e,t=this.length,n=`
|
|
3
3
|
`){[e,t]=ke(this,e,t);let r=``;for(let i=0,a=0;i<=t&&a<this.text.length;a++){let o=this.text[a],s=i+o.length;i>e&&a&&(r+=n),e<s&&t>i&&(r+=o.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let a of t)r.push(a),i+=a.length+1,r.length==32&&(n.push(new e(r,i)),r=[],i=-1);return i>-1&&n.push(new e(r,i)),n}},xe=class e extends C{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let i=0;;i++){let a=this.children[i],o=r+a.length,s=n+a.lines-1;if((t?s:o)>=e)return a.lineInner(e,t,n,r);r=o+1,n=s+1}}decompose(e,t,n,r){for(let i=0,a=0;a<=t&&i<this.children.length;i++){let o=this.children[i],s=a+o.length;if(e<=s&&t>=a){let i=r&(a<=e|(s>=t?2:0));a>=e&&s<=t&&!i?n.push(o):o.decompose(e-a,t-a,n,i)}a=s+1}}replace(t,n,r){if([t,n]=ke(this,t,n),r.lines<this.lines)for(let i=0,a=0;i<this.children.length;i++){let o=this.children[i],s=a+o.length;if(t>=a&&n<=s){let c=o.replace(t-a,n-a,r),l=this.lines-o.lines+c.lines;if(c.lines<l>>4&&c.lines>l>>6){let a=this.children.slice();return a[i]=c,new e(a,this.length-(n-t)+r.length)}return super.replace(a,s,c)}a=s+1}return super.replace(t,n,r)}sliceString(e,t=this.length,n=`
|
|
4
4
|
`){[e,t]=ke(this,e,t);let r=``;for(let i=0,a=0;i<this.children.length&&a<=t;i++){let o=this.children[i],s=a+o.length;a>e&&i&&(r+=n),e<s&&t>a&&(r+=o.sliceString(e-a,t-a,n)),a=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(t,n){if(!(t instanceof e))return 0;let r=0,[i,a,o,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==o||a==s)return r;let e=this.children[i],c=t.children[a];if(e!=c)return r+e.scanIdentical(c,n);r+=e.length+1}}static from(t,n=t.reduce((e,t)=>e+t.length+1,-1)){let r=0;for(let e of t)r+=e.lines;if(r<32){let e=[];for(let n of t)n.flatten(e);return new be(e,n)}let i=Math.max(32,r>>5),a=i<<1,o=i>>1,s=[],c=0,l=-1,u=[];function d(t){let n;if(t.lines>a&&t instanceof e)for(let e of t.children)d(e);else t.lines>o&&(c>o||!c)?(f(),s.push(t)):t instanceof be&&c&&(n=u[u.length-1])instanceof be&&t.lines+n.lines<=32?(c+=t.lines,l+=t.length+1,u[u.length-1]=new be(n.text.concat(t.text),n.length+1+t.length)):(c+t.lines>i&&f(),c+=t.lines,l+=t.length+1,u.push(t))}function f(){c!=0&&(s.push(u.length==1?u[0]:e.from(u,l)),l=-1,c=u.length=0)}for(let e of t)d(e);return f(),s.length==1?s[0]:new e(s,n)}};C.empty=new be([``],0);function Se(e){let t=-1;for(let n of e)t+=n.length+1;return t}function Ce(e,t,n=0,r=1e9){for(let i=0,a=0,o=!0;a<e.length&&i<=r;a++){let s=e[a],c=i+s.length;c>=n&&(c>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),o?(t[t.length-1]+=s,o=!1):t.push(s)),i=c+1}return t}function we(e,t,n){return Ce(e,[``],t,n)}var Te=class{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value=``,this.nodes=[e],this.offsets=[t>0?1:(e instanceof be?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],a=i>>1,o=r instanceof be?r.text.length:r.children.length;if(a==(t>0?o:0)){if(n==0)return this.done=!0,this.value=``,this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
|
|
5
5
|
`,this;e--}else if(r instanceof be){let i=r.text[a+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=e==0?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[a+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof be?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},Ee=class{constructor(e,t,n){this.value=``,this.done=!1,this.cursor=new Te(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value=``,this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=``}},De=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value=``,this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t&&this.afterBreak?(this.value=``,this.afterBreak=!1):t?(this.done=!0,this.value=``):n?this.afterBreak?this.value=``:(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<`u`&&(C.prototype[Symbol.iterator]=function(){return this.iter()},Te.prototype[Symbol.iterator]=Ee.prototype[Symbol.iterator]=De.prototype[Symbol.iterator]=function(){return this});var Oe=class{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}};function ke(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}function w(e,t,n=!0,r=!0){return pe(e,t,n,r)}function Ae(e){return e>=56320&&e<57344}function je(e){return e>=55296&&e<56320}function Me(e,t){let n=e.charCodeAt(t);if(!je(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return Ae(r)?(n-55296<<10)+(r-56320)+65536:n}function Ne(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function Pe(e){return e<65536?1:2}var Fe=/\r\n?|\n/,Ie=(function(e){return e[e.Simple=0]=`Simple`,e[e.TrackDel=1]=`TrackDel`,e[e.TrackBefore=2]=`TrackBefore`,e[e.TrackAfter=3]=`TrackAfter`,e})(Ie||={}),Le=class e{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],a=this.sections[t++];a<0?(e(n,r,i),r+=i):r+=a,n+=i}}iterChangedRanges(e,t=!1){Be(this,e,t)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let n=this.sections[e++],r=this.sections[e++];r<0?t.push(n,r):t.push(r,n)}return new e(t)}composeDesc(e){return this.empty?e:e.empty?this:He(this,e)}mapDesc(e,t=!1){return e.empty?this:Ve(this,e,t)}mapPos(e,t=-1,n=Ie.Simple){let r=0,i=0;for(let a=0;a<this.sections.length;){let o=this.sections[a++],s=this.sections[a++],c=r+o;if(s<0){if(c>e)return i+(e-r);i+=o}else{if(n!=Ie.Simple&&c>=e&&(n==Ie.TrackDel&&r<e&&c>e||n==Ie.TrackBefore&&r<e||n==Ie.TrackAfter&&c>e))return null;if(c>e||c==e&&t<0&&!o)return e==r||t<0?i:i+s;i+=s}r=c}if(e>r)throw RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=this.sections[n++],a=this.sections[n++],o=r+i;if(a>=0&&r<=t&&o>=e)return r<e&&o>t?`cover`:!0;r=o}return!1}toString(){let e=``;for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?` `:``)+n+(r>=0?`:`+r:``)}return e}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!=`number`))throw RangeError(`Invalid JSON representation of ChangeDesc`);return new e(t)}static create(t){return new e(t)}},Re=class e extends Le{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError(`Applying change set to a document with the wrong length`);return Be(this,(t,n,r,i,a)=>e=e.replace(r,r+(n-t),a),!1),e}mapDesc(e,t=!1){return Ve(this,e,t,!0)}invert(t){let n=this.sections.slice(),r=[];for(let e=0,i=0;e<n.length;e+=2){let a=n[e],o=n[e+1];if(o>=0){n[e]=o,n[e+1]=a;let s=e>>1;for(;r.length<s;)r.push(C.empty);r.push(a?t.slice(i,i+a):C.empty)}i+=a}return new e(n,r)}compose(e){return this.empty?e:e.empty?this:He(this,e,!0)}map(e,t=!1){return e.empty?this:Ve(this,e,t,!0)}iterChanges(e,t=!1){Be(this,e,t)}get desc(){return Le.create(this.sections)}filter(t){let n=[],r=[],i=[],a=new Ue(this);done:for(let e=0,o=0;;){let s=e==t.length?1e9:t[e++];for(;o<s||o==s&&a.len==0;){if(a.done)break done;let e=Math.min(a.len,s-o);T(i,e,-1);let t=a.ins==-1?-1:a.off==0?a.ins:0;T(n,e,t),t>0&&ze(r,n,a.text),a.forward(e),o+=e}let c=t[e++];for(;o<c;){if(a.done)break done;let e=Math.min(a.len,c-o);T(n,e,-1),T(i,e,a.ins==-1?-1:a.off==0?a.ins:0),a.forward(e),o+=e}}return{changes:new e(n,r),filtered:Le.create(i)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):r==0?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(t,n,r){let i=[],a=[],o=0,s=null;function c(t=!1){if(!t&&!i.length)return;o<n&&T(i,n-o,-1);let r=new e(i,a);s=s?s.compose(r.map(s)):r,i=[],a=[],o=0}function l(t){if(Array.isArray(t))for(let e of t)l(e);else if(t instanceof e){if(t.length!=n)throw RangeError(`Mismatched change set length (got ${t.length}, expected ${n})`);c(),s=s?s.compose(t.map(s)):t}else{let{from:e,to:s=e,insert:l}=t;if(e>s||e<0||s>n)throw RangeError(`Invalid change range ${e} to ${s} (in doc of length ${n})`);let u=l?typeof l==`string`?C.of(l.split(r||Fe)):l:C.empty,d=u.length;if(e==s&&d==0)return;e<o&&c(),e>o&&T(i,e-o,-1),T(i,s-e,d),ze(a,i,u),o=s}}return l(t),c(!s),s}static empty(t){return new e(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw RangeError(`Invalid JSON representation of ChangeSet`);let n=[],r=[];for(let e=0;e<t.length;e++){let i=t[e];if(typeof i==`number`)n.push(i,-1);else if(!Array.isArray(i)||typeof i[0]!=`number`||i.some((e,t)=>t&&typeof e!=`string`))throw RangeError(`Invalid JSON representation of ChangeSet`);else if(i.length==1)n.push(i[0],0);else{for(;r.length<e;)r.push(C.empty);r[e]=C.of(i.slice(1)),n.push(i[0],r[e].length)}}return new e(n,r)}static createSet(t,n){return new e(t,n)}};function T(e,t,n,r=!1){if(t==0&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:i>=0&&t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function ze(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(C.empty);e.push(n)}}function Be(e,t,n){let r=e.inserted;for(let i=0,a=0,o=0;o<e.sections.length;){let s=e.sections[o++],c=e.sections[o++];if(c<0)i+=s,a+=s;else{let l=i,u=a,d=C.empty;for(;l+=s,u+=c,c&&r&&(d=d.append(r[o-2>>1])),!(n||o==e.sections.length||e.sections[o+1]<0);)s=e.sections[o++],c=e.sections[o++];t(i,l,a,u,d),i=l,a=u}}}function Ve(e,t,n,r=!1){let i=[],a=r?[]:null,o=new Ue(e),s=new Ue(t);for(let e=-1;;)if(o.done&&s.len||s.done&&o.len)throw Error(`Mismatched change set lengths`);else if(o.ins==-1&&s.ins==-1){let e=Math.min(o.len,s.len);T(i,e,-1),o.forward(e),s.forward(e)}else if(s.ins>=0&&(o.ins<0||e==o.i||o.off==0&&(s.len<o.len||s.len==o.len&&!n))){let t=s.len;for(T(i,s.ins,-1);t;){let n=Math.min(o.len,t);o.ins>=0&&e<o.i&&o.len<=n&&(T(i,0,o.ins),a&&ze(a,i,o.text),e=o.i),o.forward(n),t-=n}s.next()}else if(o.ins>=0){let t=0,n=o.len;for(;n;)if(s.ins==-1){let e=Math.min(n,s.len);t+=e,n-=e,s.forward(e)}else if(s.ins==0&&s.len<n)n-=s.len,s.next();else break;T(i,t,e<o.i?o.ins:0),a&&e<o.i&&ze(a,i,o.text),e=o.i,o.forward(o.len-n)}else if(o.done&&s.done)return a?Re.createSet(i,a):Le.create(i);else throw Error(`Mismatched change set lengths`)}function He(e,t,n=!1){let r=[],i=n?[]:null,a=new Ue(e),o=new Ue(t);for(let e=!1;;)if(a.done&&o.done)return i?Re.createSet(r,i):Le.create(r);else if(a.ins==0)T(r,a.len,0,e),a.next();else if(o.len==0&&!o.done)T(r,0,o.ins,e),i&&ze(i,r,o.text),o.next();else if(a.done||o.done)throw Error(`Mismatched change set lengths`);else{let t=Math.min(a.len2,o.len),n=r.length;if(a.ins==-1){let n=o.ins==-1?-1:o.off?0:o.ins;T(r,t,n,e),i&&n&&ze(i,r,o.text)}else o.ins==-1?(T(r,a.off?0:a.len,t,e),i&&ze(i,r,a.textBit(t))):(T(r,a.off?0:a.len,o.off?0:o.ins,e),i&&!o.off&&ze(i,r,o.text));e=(a.ins>t||o.ins>=0&&o.len>t)&&(e||r.length>n),a.forward2(t),o.forward(t)}}var Ue=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?C.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?C.empty:t[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},We=class e{constructor(e,t,n,r){this.from=e,this.to=t,this.flags=n,this.goalColumn=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get undirectional(){return(this.flags&64)>0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}map(t,n=-1){let r,i;return this.empty?r=i=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new e(r,i,this.flags,this.goalColumn)}extend(e,t=e,n=0){if(e<=this.anchor&&t>=this.anchor)return E.range(e,t,void 0,void 0,n);let r=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return E.range(this.anchor,r,void 0,void 0,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!=`number`||typeof e.head!=`number`)throw RangeError(`Invalid JSON representation for SelectionRange`);return E.range(e.anchor,e.head)}static create(t,n,r,i){return new e(t,n,r,i)}},E=class e{constructor(e,t){this.ranges=e,this.mainIndex=t}map(t,n=-1){return t.empty?this:e.create(this.ranges.map(e=>e.map(t,n)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new e([this.main],0)}addRange(t,n=!0){return e.create([t].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(t,n=this.mainIndex){let r=this.ranges.slice();return r[n]=t,e.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!=`number`||t.main>=t.ranges.length)throw RangeError(`Invalid JSON representation for EditorSelection`);return new e(t.ranges.map(e=>We.fromJSON(e)),t.main)}static single(t,n=t){return new e([e.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw RangeError(`A selection needs at least one range`);for(let r=0,i=0;i<t.length;i++){let a=t[i];if(a.empty?a.from<=r:a.from<r)return e.normalized(t.slice(),n);r=a.to}return new e(t,n)}static cursor(e,t=0,n,r){return We.create(e,e,(t==0?0:t<0?8:16)|(n==null?7:Math.min(6,n)),r)}static range(e,t,n,r,i){let a=r==null?7:Math.min(6,r);return!i&&e!=t&&(i=t<e?1:-1),i&&(a|=i<0?8:16),t<e?We.create(t,e,a|32,n):We.create(e,t,a,n)}static undirectionalRange(e,t){return We.create(e,t,64,void 0)}static normalized(t,n=0){let r=t[n];t.sort((e,t)=>e.from-t.from),n=t.indexOf(r);for(let r=1;r<t.length;r++){let i=t[r],a=t[r-1];if(i.empty?i.from<=a.to:i.from<a.to){let o=a.from,s=Math.max(i.to,a.to);r<=n&&n--,t.splice(--r,2,i.anchor>i.head?e.range(s,o):e.range(o,s))}}return new e(t,n)}};function Ge(e,t){for(let n of e.ranges)if(n.to>t)throw RangeError(`Selection points outside of document`)}var Ke=0,D=class e{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=Ke++,this.default=e([]),this.extensions=typeof i==`function`?i(this):i}get reader(){return this}static define(t={}){return new e(t.combine||(e=>e),t.compareInput||((e,t)=>e===t),t.compare||(t.combine?(e,t)=>e===t:qe),!!t.static,t.enables)}of(e){return new Je([],this,0,e)}compute(e,t){if(this.isStatic)throw Error(`Can't compute a static facet`);return new Je(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error(`Can't compute a static facet`);return new Je(e,this,2,t)}from(e,t){return t||=e=>e,this.compute([e],n=>t(n.field(e)))}};function qe(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}var Je=class{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=Ke++}dynamicSlot(e){let t=this.value,n=this.facet.compareInput,r=this.id,i=e[r]>>1,a=this.type==2,o=!1,s=!1,c=[];for(let t of this.dependencies)t==`doc`?o=!0:t==`selection`?s=!0:(e[t.id]??1)&1||c.push(e[t.id]);return{create(e){return e.values[i]=t(e),1},update(e,r){if(o&&r.docChanged||s&&(r.docChanged||r.selection)||Xe(e,c)){let r=t(e);if(a?!Ye(r,e.values[i],n):!n(r,e.values[i]))return e.values[i]=r,1}return 0},reconfigure:(e,o)=>{let s,c=o.config.address[r];if(c!=null){let r=lt(o,c);if(this.dependencies.every(t=>t instanceof D?o.facet(t)===e.facet(t):t instanceof $e?o.field(t,!1)==e.field(t,!1):!0)||(a?Ye(s=t(e),r,n):n(s=t(e),r)))return e.values[i]=r,0}else s=t(e);return e.values[i]=s,1}}}get extension(){return this}};function Ye(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function Xe(e,t){let n=!1;for(let r of t)ct(e,r)&1&&(n=!0);return n}function Ze(e,t,n){let r=n.map(t=>e[t.id]),i=n.map(e=>e.type),a=r.filter(e=>!(e&1)),o=e[t.id]>>1;function s(e){let n=[];for(let t=0;t<r.length;t++){let a=lt(e,r[t]);if(i[t]==2)for(let e of a)n.push(e);else n.push(a)}return t.combine(n)}return{create(e){for(let t of r)ct(e,t);return e.values[o]=s(e),1},update(e,n){if(!Xe(e,a))return 0;let r=s(e);return t.compare(r,e.values[o])?0:(e.values[o]=r,1)},reconfigure(e,i){let a=Xe(e,r),c=i.config.facets[t.id],l=i.facet(t);if(c&&!a&&qe(n,c))return e.values[o]=l,0;let u=s(e);return t.compare(u,l)?(e.values[o]=l,0):(e.values[o]=u,1)}}}var Qe=D.define({static:!0}),$e=class e{constructor(e,t,n,r,i){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(t){let n=new e(Ke++,t.create,t.update,t.compare||((e,t)=>e===t),t);return t.provide&&(n.provides=t.provide(n)),n}create(e){return(e.facet(Qe).find(e=>e.field==this)?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>{let r=e.facet(Qe),i=n.facet(Qe),a;return(a=r.find(e=>e.field==this))&&a!=i.find(e=>e.field==this)?(e.values[t]=a.create(e),1):n.config.address[this.id]==null?(e.values[t]=this.create(e),1):(e.values[t]=n.field(this),0)}}}init(e){return[this,Qe.of({field:this,create:e})]}get extension(){return this}},et={lowest:4,low:3,default:2,high:1,highest:0};function tt(e){return t=>new rt(t,e)}var nt={highest:tt(et.highest),high:tt(et.high),default:tt(et.default),low:tt(et.low),lowest:tt(et.lowest)},rt=class{constructor(e,t){this.inner=e,this.prec=t}get extension(){return this}},it=class e{of(e){return new at(this,e)}reconfigure(t){return e.reconfigure.of({compartment:this,extension:t})}get(e){return e.config.compartments.get(this)}},at=class{constructor(e,t){this.compartment=e,this.inner=t}get extension(){return this}},ot=class e{constructor(e,t,n,r,i,a){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(t,n,r){let i=[],a=Object.create(null),o=new Map;for(let e of st(t,n,o))e instanceof $e?i.push(e):(a[e.facet.id]||(a[e.facet.id]=[])).push(e);let s=Object.create(null),c=[],l=[];for(let e of i)s[e.id]=l.length<<1,l.push(t=>e.slot(t));let u=r?.config.facets;for(let e in a){let t=a[e],n=t[0].facet,i=u&&u[e]||[];if(t.every(e=>e.type==0))if(s[n.id]=c.length<<1|1,qe(i,t))c.push(r.facet(n));else{let e=n.combine(t.map(e=>e.value));c.push(r&&n.compare(e,r.facet(n))?r.facet(n):e)}else{for(let e of t)e.type==0?(s[e.id]=c.length<<1|1,c.push(e.value)):(s[e.id]=l.length<<1,l.push(t=>e.dynamicSlot(t)));s[n.id]=l.length<<1,l.push(e=>Ze(e,n,t))}}let d=l.map(e=>e(s));return new e(t,o,d,s,c,a)}};function st(e,t,n){let r=[[],[],[],[],[]],i=new Map;function a(e,o){let s=i.get(e);if(s!=null){if(s<=o)return;let t=r[s].indexOf(e);t>-1&&r[s].splice(t,1),e instanceof at&&n.delete(e.compartment)}if(i.set(e,o),Array.isArray(e))for(let t of e)a(t,o);else if(e instanceof at){if(n.has(e.compartment))throw RangeError(`Duplicate use of compartment in extensions`);let r=t.get(e.compartment)||e.inner;n.set(e.compartment,r),a(r,o)}else if(e instanceof rt)a(e.inner,e.prec);else if(e instanceof $e)r[o].push(e),e.provides&&a(e.provides,o);else if(e instanceof Je)r[o].push(e),e.facet.extensions&&a(e.facet.extensions,et.default);else{let t=e.extension;if(!t)throw Error(`Unrecognized extension value in extension set (${e}).`);if(t==e)throw Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);a(t,o)}}return a(e,et.default),r.reduce((e,t)=>e.concat(t))}function ct(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw Error(`Cyclic dependency between fields and/or facets`);if(r&2)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function lt(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}var ut=D.define(),dt=D.define({combine:e=>e.some(e=>e),static:!0}),ft=D.define({combine:e=>e.length?e[0]:void 0,static:!0}),pt=D.define(),mt=D.define(),ht=D.define(),gt=D.define({combine:e=>e.length?e[0]:!1}),_t=class{constructor(e,t){this.type=e,this.value=t}static define(){return new vt}},vt=class{of(e){return new _t(this,e)}},yt=class{constructor(e){this.map=e}of(e){return new O(this,e)}},O=class e{constructor(e,t){this.type=e,this.value=t}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new e(this.type,n)}is(e){return this.type==e}static define(e={}){return new yt(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}};O.reconfigure=O.define(),O.appendConfig=O.define();var k=class e{constructor(t,n,r,i,a,o){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=a,this.scrollIntoView=o,this._doc=null,this._state=null,r&&Ge(r,n.newLength),a.some(t=>t.type==e.time)||(this.annotations=a.concat(e.time.of(Date.now())))}static create(t,n,r,i,a,o){return new e(t,n,r,i,a,o)}get newDoc(){return this._doc||=this.changes.apply(this.startState.doc)}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(e.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]==`.`))}};k.time=_t.define(),k.userEvent=_t.define(),k.addToHistory=_t.define(),k.remote=_t.define();function bt(e,t){let n=[];for(let r=0,i=0;;){let a,o;if(r<e.length&&(i==t.length||t[i]>=e[r]))a=e[r++],o=e[r++];else if(i<t.length)a=t[i++],o=t[i++];else return n;!n.length||n[n.length-1]<a?n.push(a,o):n[n.length-1]<o&&(n[n.length-1]=o)}}function xt(e,t,n){let r,i,a;return n?(r=t.changes,i=Re.empty(t.changes.length),a=e.changes.compose(t.changes)):(r=t.changes.map(e.changes),i=e.changes.mapDesc(t.changes,!0),a=e.changes.compose(r)),{changes:a,selection:t.selection?t.selection.map(i):e.selection?.map(r),effects:O.mapEffects(e.effects,r).concat(O.mapEffects(t.effects,i)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function St(e,t,n){let r=t.selection,i=Dt(t.annotations);return t.userEvent&&(i=i.concat(k.userEvent.of(t.userEvent))),{changes:t.changes instanceof Re?t.changes:Re.of(t.changes||[],n,e.facet(ft)),selection:r&&(r instanceof E?r:E.single(r.anchor,r.head)),effects:Dt(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function Ct(e,t,n){let r=St(e,t.length?t[0]:{},e.doc.length);t.length&&t[0].filter===!1&&(n=!1);for(let i=1;i<t.length;i++){t[i].filter===!1&&(n=!1);let a=!!t[i].sequential;r=xt(r,St(e,t[i],a?r.changes.newLength:e.doc.length),a)}let i=k.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return Tt(n?wt(i):i)}function wt(e){let t=e.startState,n=!0;for(let r of t.facet(pt)){let t=r(e);if(t===!1){n=!1;break}Array.isArray(t)&&(n=n===!0?t:bt(n,t))}if(n!==!0){let r,i;if(n===!1)i=e.changes.invertedDesc,r=Re.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=k.create(t,r,e.selection&&e.selection.map(i),O.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(mt);for(let n=r.length-1;n>=0;n--){let i=r[n](e);e=i instanceof k?i:Array.isArray(i)&&i.length==1&&i[0]instanceof k?i[0]:Ct(t,Dt(i),!1)}return e}function Tt(e){let t=e.startState,n=t.facet(ht),r=e;for(let i=n.length-1;i>=0;i--){let a=n[i](e);a&&Object.keys(a).length&&(r=xt(r,St(t,a,e.changes.newLength),!0))}return r==e?e:k.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}var Et=[];function Dt(e){return e==null?Et:Array.isArray(e)?e:[e]}var Ot=(function(e){return e[e.Word=0]=`Word`,e[e.Space=1]=`Space`,e[e.Other=2]=`Other`,e})(Ot||={}),kt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,At;try{At=RegExp(`[\\p{Alphabetic}\\p{Number}_]`,`u`)}catch{}function jt(e){if(At)return At.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>``&&(n.toUpperCase()!=n.toLowerCase()||kt.test(n)))return!0}return!1}function Mt(e){return t=>{if(!/\S/.test(t))return Ot.Space;if(jt(t))return Ot.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return Ot.Word;return Ot.Other}}var A=class e{constructor(e,t,n,r,i,a){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,a&&(a._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)ct(this,e<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(n==null){if(t)throw RangeError(`Field is not present in this state`);return}return ct(this,n),lt(this,n)}update(...e){return Ct(this,e,!0)}applyTransaction(t){let n=this.config,{base:r,compartments:i}=n;for(let e of t.effects)e.is(it.reconfigure)?(n&&=(i=new Map,n.compartments.forEach((e,t)=>i.set(t,e)),null),i.set(e.value.compartment,e.value.extension)):e.is(O.reconfigure)?(n=null,r=e.value):e.is(O.appendConfig)&&(n=null,r=Dt(r).concat(e.value));let a;n?a=t.startState.values.slice():(n=ot.resolve(r,i,this),a=new e(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values);let o=t.startState.facet(dt)?t.newSelection:t.newSelection.asSingle();new e(n,t.newDoc,o,a,(e,n)=>n.update(e,t),t)}replaceSelection(e){return typeof e==`string`&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:E.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],a=Dt(n.effects);for(let n=1;n<t.ranges.length;n++){let o=e(t.ranges[n]),s=this.changes(o.changes),c=s.map(r);for(let e=0;e<n;e++)i[e]=i[e].map(c);let l=r.mapDesc(s,!0);i.push(o.range.map(l)),r=r.compose(c),a=O.mapEffects(a,c).concat(O.mapEffects(Dt(o.effects),l))}return{changes:r,selection:E.create(i,t.mainIndex),effects:a}}changes(t=[]){return t instanceof Re?t:Re.of(t,this.doc.length,this.facet(e.lineSeparator))}toText(t){return C.of(t.split(this.facet(e.lineSeparator)||Fe))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(ct(this,t),lt(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof $e&&this.config.address[r.id]!=null&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(t,n={},r){if(!t||typeof t.doc!=`string`)throw RangeError(`Invalid JSON representation for EditorState`);let i=[];if(r){for(let e in r)if(Object.prototype.hasOwnProperty.call(t,e)){let n=r[e],a=t[e];i.push(n.init(e=>n.spec.fromJSON(a,e)))}}return e.create({doc:t.doc,selection:E.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=ot.resolve(t.extensions||[],new Map),r=t.doc instanceof C?t.doc:C.of((t.doc||``).split(n.staticFacet(e.lineSeparator)||Fe)),i=t.selection?t.selection instanceof E?t.selection:E.single(t.selection.anchor,t.selection.head):E.single(0);return Ge(i,r.length),n.staticFacet(dt)||(i=i.asSingle()),new e(n,r,i,n.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(e.tabSize)}get lineBreak(){return this.facet(e.lineSeparator)||`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import{n as e}from"./localized-mixin-
|
|
2
|
+
import{n as e}from"./localized-mixin-BJ8UiX2u.js";import{t}from"./luzmoAlignLeft-HA-XKPHy.js";import{t as n}from"./luzmoTable-BYeZ8pW6.js";import{n as r,r as i,t as a}from"./luzmoBorderDotted-CWXwQ_Hm.js";import{t as o}from"./item-option-base-USb5kln8.js";import{html as s,property as c,query as l,unsafeCSS as u}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/lit.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/action-button.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/action-group.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/icon.js";var d={icon:[32,32,`M1 2C-.3 2-.3 4 1 4h30c1.3 0 1.3-2 0-2zm14.3 4.3-5 5c-1 1 .5 2.3 1.4 1.4L15 9.4V18c0 1.3 2 1.3 2 0V9.4l3.3 3.3c1 1 2.3-.5 1.4-1.4l-5-5a1 1 0 0 0-1.4 0z`],name:`align-top`},f={icon:[32,32,`m10.3 4.7 5 5c.4.4 1 .4 1.4 0l5-5c1-1-.5-2.3-1.4-1.4L16 7.6l-4.3-4.3c-.9-1-2.4.5-1.4 1.4ZM1 14c-1.3 0-1.3 2 0 2h30c1.3 0 1.3-2 0-2zm14.3 6.3-5 5c-1 1 .5 2.3 1.4 1.4l4.3-4.3 4.3 4.3c1 1 2.3-.5 1.4-1.4l-5-5a1 1 0 0 0-1.4 0z`],name:`align-middle`},p={icon:[32,32,`M1 30c-1.3 0-1.3-2 0-2h30c1.3 0 1.3 2 0 2zm14.3-4.3-5-5c-1-1 .5-2.3 1.4-1.4l3.3 3.3V14c0-1.3 2-1.3 2 0v8.6l3.3-3.3c1-1 2.3.5 1.4 1.4l-5 5a1 1 0 0 1-1.4 0z`],name:`align-bottom`},m={icon:[32,32,`M1 2C-.3 2-.3 4 1 4h30c1.3 0 1.3-2 0-2zm5 12c-1.3 0-1.3 2 0 2h20c1.3 0 1.3-2 0-2zm5 12c-1.3 0-1.3 2 0 2h10c1.3 0 1.3-2 0-2z`],name:`align-center`},h={icon:[32,32,`M1 2C-.3 2-.3 4 1 4h30c1.3 0 1.3-2 0-2zm10 12c-1.3 0-1.3 2 0 2h20c1.3 0 1.3-2 0-2zm10 12c-1.3 0-1.3 2 0 2h10c1.3 0 1.3-2 0-2z`],name:`align-right`},g={icon:[32,32,`m15 2a1 1 0 0 0-0.7 0.3l-4 4a1 1 0 0 0 0 1.4 1 1 0 0 0 1.4 0L15 4.4 18.3 7.7a1 1 0 0 0 1.4 0 1 1 0 0 0 0-1.4l-4-4A1 1 0 0 0 15 2Zm-4 22a1 1 0 0 0-0.7 0.3 1 1 0 0 0 0 1.4l4 4a1 1 0 0 0 1.4 0l4-4a1 1 0 0 0 0-1.4 1 1 0 0 0-1.4 0L15 27.6 11.7 24.3A1 1 0 0 0 11 24ZM15 2a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1 1 1 0 0 0 1-1V3A1 1 0 0 0 15 2Z`],name:`arrows-vertical`},_={icon:[32,32,`m2 17a1 1 0 0 0 0.3 0.7l4 4a1 1 0 0 0 1.4 0 1 1 0 0 0 0-1.4L4.4 17 7.7 13.7a1 1 0 0 0 0-1.4 1 1 0 0 0-1.4 0l-4 4a1 1 0 0 0-0.3 0.7zm22 4a1 1 0 0 0 0.3 0.7 1 1 0 0 0 1.4 0l4-4a1 1 0 0 0 0-1.4l-4-4a1 1 0 0 0-1.4 0 1 1 0 0 0 0 1.4l3.3 3.3-3.3 3.3a1 1 0 0 0-0.3 0.7zM2 17a1 1 0 0 0 1 1H29a1 1 0 0 0 1-1 1 1 0 0 0-1-1H3a1 1 0 0 0-1 1z`],name:`arrows-horizontal`},v={icon:[32,32,`M28.3 2.3 20 10.6V7c0-1.3-2-1.3-2 0v6c0 .6.4 1 1 1h6c1.3 0 1.3-2 0-2h-3.6l8.3-8.3c1-1-.5-2.3-1.4-1.4ZM7 18c-1.3 0-1.3 2 0 2h3.6l-8.3 8.3a1 1 0 0 0 1.4 1.4l8.3-8.3V25c0 1.3 2 1.3 2 0v-6c0-.6-.5-1-1-1Z`],name:`compress`},y={icon:[32,32,`M23 2c-1.3 0-1.3 2 0 2h3.6l-8.3 8.3c-1 1 .5 2.3 1.4 1.4L28 5.4V9c0 1.3 2 1.3 2 0V3c0-.5-.4-1-1-1ZM12.3 18.3 4 26.6V23a1 1 0 1 0-2 0v6c0 .6.4 1 1 1h6a1 1 0 1 0 0-2H5.4l8.3-8.3c1-1-.5-2.3-1.4-1.4z`],name:`expand`},b={icon:[32,32,`M3 2a1 1 0 0 0-1 1v6c0 1.3 2 1.3 2 0V5.4L14.6 16 4 26.6V23c0-1.3-2-1.3-2 0v6c0 .6.4 1 1 1h6c1.3 0 1.3-2 0-2H5.4L16 17.4 26.6 28H23c-1.3 0-1.3 2 0 2h6c.8 0 1-.8 1-1v-6c0-1.3-2-1.3-2 0v3.6L17.4 16 28 5.4V9c0 1.3 2 1.3 2 0V3c0-.5-.4-1-1-1h-6c-1.3 0-1.3 2 0 2h3.6L16 14.6 5.4 4H9c1.3 0 1.3-2 0-2z`],name:`arrows-expand`},x={icon:[32,32,`M15.99 2C8.27 2 1.99 8.3 2 16.01c0 7.72 6.29 14 14 13.99 7.72 0 14-6.28 14-14a1 1 0 0 0 0-.01 1 1 0 0 0 0-.01A14.01 14.01 0 0 0 15.99 2zm0 2c6.64 0 12 5.34 12.01 11.98a1 1 0 0 0 0 .02c0 2.96-1.07 5.66-2.83 7.75L8.25 6.83A11.96 11.96 0 0 1 15.99 4zM6.83 8.25l16.92 16.92A11.99 11.99 0 0 1 6.83 8.25z`],name:`ban`},S={icon:[28,32,`m7 13a2 2 0 0 0-2 2 2 2 0 0 0 2 2h9.5c4.1 0 5.5 2.3 5.5 4.5 0 2.2-1.4 4.5-5.5 4.5H4a2 2 0 0 0-2 2 2 2 0 0 0 2 2H16.5C22.4 30 26 25.8 26 21.5 26 17.2 22.4 13 16.5 13ZM4 2A2 2 0 0 0 2 4 2 2 0 0 0 4 6h11c3.1 0 4 1.7 4 3.5 0 1.8-0.9 3.5-4 3.5H7a2 2 0 0 0-2 2 2 2 0 0 0 2 2h8c4.9 0 8-3.8 8-7.5C23 5.8 19.9 2 15 2ZM7 3A2 2 0 0 0 5 5v22.5a2 2 0 0 0 2 2 2 2 0 0 0 2-2V5A2 2 0 0 0 7 3Z`],name:`bold`},C={icon:[24,32,`m11 2a1 1 0 0 0-1 1 1 1 0 0 0 1 1H21A1 1 0 0 0 22 3 1 1 0 0 0 21 2Zm5 0A1 1 0 0 0 15 2.7L7.3 28H3a1 1 0 0 0 0 2h5 5a1 1 0 0 0 1-1 1 1 0 0 0-1-1H9.4L17 3.3a1 1 0 0 0-0.7-1.2A1 1 0 0 0 16 2Z`],name:`italic`},w={icon:[32,32,`M7 0C6.4 0 6 0.4 6 1v13c0 3.3 1.3 5.8 3.1 7.5 1.9 1.7 4.4 2.5 6.9 2.5 2.5 0 5-0.8 6.9-2.5C24.7 19.8 26 17.3 26 14V1C26 0.4 25.6 0 25 0 24.4 0 24 0.4 24 1v13c0 2.8-1 4.7-2.5 6-1.5 1.3-3.5 2-5.5 2-2 0-4-0.7-5.5-2C9 18.7 8 16.8 8 14V1C8 0.4 7.6 0 7 0Zm16 0c-0.6 0-1 0.4-1 1 0 0.6 0.4 1 1 1h4C27.6 2 28 1.6 28 1 28 0.4 27.6 0 27 0ZM5 0C4.4 0 4 0.4 4 1 4 1.6 4.4 2 5 2H9C9.6 2 10 1.6 10 1 10 0.4 9.6 0 9 0ZM3 30c-0.6 0-1 0.4-1 1 0 0.6 0.4 1 1 1h26c0.6 0 1-0.4 1-1 0-0.6-0.4-1-1-1z`],name:`underline`},T={icon:[32,32,`M 2,2 V 4 H 30 V 2 Z m -1,9 v 2 h 30 v -2 z m 0,9 v 2 H 31 V 20 Z M 5,0 C 2.2,0 0,2.2 0,5 v 22 c 0,2.8 2.2,5 5,5 h 22 c 2.8,0 5,-2.2 5,-5 V 5 C 32,2.2 29.8,0 27,0 Z m 0,2 h 22 c 1.7,0 3,1.3 3,3 v 22 c 0,1.7 -1.3,3 -3,3 H 5 C 3.3,30 2,28.7 2,27 V 5 C 2,3.3 3.3,2 5,2 Z`],name:`rows`},E={icon:[32,32,`M 2,2 V 4 H 28 V 2 Z M 14,1 v 30 h 2 V 1 Z M 5,0 C 2.2,0 0,2.2 0,5 v 22 c 0,2.8 2.2,5 5,5 h 20 c 2.8,0 5,-2.2 5,-5 V 5 C 30,2.2 27.8,0 25,0 Z m 0,2 h 20 c 1.7,0 3,1.3 3,3 v 22 c 0,1.7 -1.3,3 -3,3 H 5 C 3.3,30 2,28.7 2,27 V 5 C 2,3.3 3.3,2 5,2 Z`],name:`columns`},D=`luzmo-action-group{--luzmo-item-option-action-button-group-button-background-hover:rgba(var(--luzmo-primary-rgb), .1);--luzmo-item-option-action-button-group-button-background-down:rgba(var(--luzmo-primary-rgb), .2);--luzmo-item-option-action-button-group-button-background-focus:rgba(var(--luzmo-primary-rgb), .1);--luzmo-item-option-action-button-group-button-content-color-default:var(--luzmo-font-color-disabled);--luzmo-item-option-action-button-group-button-content-color-hover:var(--luzmo-font-color-hover);--luzmo-item-option-action-button-group-button-content-color-down:var(--luzmo-font-color-down);--luzmo-item-option-action-button-group-button-content-color-focus:var(--luzmo-font-color-focus)}luzmo-action-group[compact][quiet][emphasized],luzmo-action-group[compact][quiet][emphasized][size=s]{--luzmo-action-group-gap-size-compact:var(--luzmo-spacing-1)}luzmo-action-group[compact][quiet][emphasized][size=l]{--luzmo-action-group-gap-size-compact:var(--luzmo-spacing-2)}luzmo-action-group[compact][quiet][emphasized][size=xl]{--luzmo-action-group-gap-size-compact:var(--luzmo-spacing-3)}luzmo-action-group[compact][quiet][emphasized] luzmo-action-button{--luzmo-action-button-background-color-hover:var(--luzmo-item-option-action-button-group-button-background-hover);--luzmo-action-button-background-color-down:var(--luzmo-item-option-action-button-group-button-background-down);--luzmo-action-button-background-color-focus:var(--luzmo-item-option-action-button-group-button-background-focus);--luzmo-action-button-content-color-default:var(--luzmo-item-option-action-button-group-button-content-color-default);--luzmo-action-button-content-color-hover:var(--luzmo-item-option-action-button-group-button-content-color-hover);--luzmo-action-button-content-color-down:var(--luzmo-item-option-action-button-group-button-content-color-down);--luzmo-action-button-content-color-focus:var(--luzmo-item-option-action-button-group-button-content-color-focus)}luzmo-action-group[compact][quiet][emphasized] luzmo-action-button[selected]:hover,luzmo-action-group[compact][quiet][emphasized] luzmo-action-button[selected]{--luzmo-action-button-background-color-hover:var(--luzmo-item-option-action-button-group-button-background-down);--luzmo-action-button-background-color-default:var(--luzmo-item-option-action-button-group-button-background-down);--luzmo-action-button-content-color-default:var(--luzmo-item-option-action-button-group-button-content-color-down);--luzmo-action-button-content-color-hover:var(--luzmo-item-option-action-button-group-button-content-color-down);--luzmo-action-button-content-color-down:var(--luzmo-item-option-action-button-group-button-content-color-down)}`,O={alignBottom:p,alignMiddle:f,alignTop:d,alignLeft:t,alignCenter:m,alignRight:h,ban:x,borderSolid:i,borderDashed:r,borderDotted:a,compress:v,expand:y,arrowsExpand:b,arrowsHorizontal:_,arrowsVertical:g,italic:C,bold:S,underline:w,rows:T,columns:E,table:n},k=class extends o{constructor(...e){super(...e),this.values={},this.disabled=!1}static{this.styles=[...super.styles,u(D)]}_handleEvent(){let e=this.selects===`multiple`?this.actionGroup?.selected:this.actionGroup?.selected?.[0];this.dispatchEvent(new CustomEvent(`luzmo-option-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e}}))}_generateButtonContents(e){return typeof e==`string`?s`${e}`:e.iconName||e.icon?s`
|
|
3
3
|
<luzmo-icon
|
|
4
4
|
slot="icon"
|
|
5
5
|
.size=${this.size}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import{n as e}from"./localized-mixin-
|
|
2
|
+
import{n as e}from"./localized-mixin-BJ8UiX2u.js";import{n as t,r as n}from"./base-DBoiLw2X.js";import{html as r,nothing as i,property as a,unsafeCSS as o}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/lit.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/field-label.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.2/standalone/tooltip.js";var s=`:host{font-family:var(--luzmo-item-option-component-font-family,var(--luzmo-font-family))}.luzmo-item-option{height:var(--luzmo-item-option-component-height,var(--item-option-component-height));justify-content:space-between;align-items:center;gap:var(--luzmo-spacing-3);width:100%;color:var(--luzmo-font-color);font-size:var(--luzmo-font-size-s);display:flex}.control-container{align-items:center;gap:var(--luzmo-item-option-control-container-gap,var(--item-option-control-container-gap));flex:1;justify-content:end;display:flex}.extra-label{padding-left:var(--luzmo-item-option-extra-label-padding-left,var(--item-option-extra-label-padding-left));padding-right:var(--luzmo-item-option-extra-label-padding-right,var(--item-option-extra-label-padding-right));font-size:var(--luzmo-item-option-extra-label-font-size,var(--item-option-extra-label-font-size))}.extra-link{text-align:right;cursor:pointer;text-decoration:underline}.extra-link:hover{color:var(--luzmo-font-color-hover)}.extra-link.disabled{opacity:.65;cursor:not-allowed}.extra-link.disabled:hover{color:var(--luzmo-font-color-disabled)}:host{--item-option-component-height:var(--luzmo-component-height);--item-option-extra-label-padding-right:var(--luzmo-spacing-4);--item-option-extra-label-padding-left:var(--luzmo-spacing-5);--item-option-control-container-gap:var(--luzmo-spacing-2);--item-option-extra-label-font-size:var(--luzmo-font-size-s)}:host([size=s]){--item-option-component-height:var(--luzmo-component-height-s);--item-option-extra-label-padding-right:var(--luzmo-spacing-3);--item-option-extra-label-padding-left:var(--luzmo-spacing-4);--item-option-control-container-gap:var(--luzmo-spacing-2);--item-option-extra-label-font-size:var(--luzmo-font-size-xs)}:host([size=l]){--item-option-component-height:var(--luzmo-component-height-l);--item-option-extra-label-padding-right:var(--luzmo-spacing-4);--item-option-extra-label-padding-left:var(--luzmo-spacing-5);--item-option-control-container-gap:var(--luzmo-spacing-3);--item-option-extra-label-font-size:var(--luzmo-font-size)}:host([size=xl]){--item-option-component-height:var(--luzmo-component-height-xl);--item-option-extra-label-padding-right:var(--luzmo-spacing-5);--item-option-extra-label-padding-left:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--item-option-control-container-gap:var(--luzmo-spacing-4);--item-option-extra-label-font-size:var(--luzmo-font-size-l)}:host{display:block;overflow:hidden}`,c=class extends t(n,{defaultSize:`s`,validSizes:[`s`,`m`,`l`,`xl`]}){constructor(...e){super(...e),this.disabled=!1,this.hideLabel=!1,this.label=``,this.tooltip=``,this.extraLabel=``,this.extraLabelHasClickAction=!1,this.extraLabelTooltip=``}static{this.styles=[o(s)]}handleExtraLabelClick(e){if(this.extraLabelHasClickAction&&typeof this.extraLabelClickAction==`function`){let{value:e}=this.extraLabelClickAction();this.dispatchEvent(new CustomEvent(`luzmo-option-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e}}))}e?.preventDefault(),this.dispatchEvent(new CustomEvent(`luzmo-extra-label-click`,{bubbles:!0,composed:!0}))}render(){return r`
|
|
3
3
|
<div class="luzmo-item-option">
|
|
4
4
|
${this.label&&!this.hideLabel?r`
|
|
5
5
|
<luzmo-field-label
|