@luzmo/analytics-components-kit 1.0.1-alpha.94 → 1.0.1-alpha.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ai-chat-message-user/index.cjs +0 -19
- package/components/ai-chat-messages-container/index.cjs +0 -19
- package/components/ai-interaction-textarea/index.cjs +0 -19
- package/components/dataset-icon/index.cjs +0 -19
- package/components/dataset-selector-list/index.cjs +1 -20
- package/components/dataset-selector-list/index.js +1 -1
- package/components/dataset-selector-row/index.cjs +0 -19
- package/components/display-settings-binning/index.cjs +0 -19
- package/components/display-settings-numeric/index.js +42 -51
- package/components/draggable-data-item-level/index.js +1 -1
- package/components/droppable-slot/index.js +2 -2
- package/components/edit-option-color-picker/index.cjs +0 -19
- package/components/edit-option-multi-language-field/index.cjs +0 -19
- package/components/edit-option-number-field/index.cjs +0 -19
- package/components/edit-option-picker/index.cjs +0 -19
- package/components/edit-option-radio-button-group/index.cjs +0 -19
- package/components/edit-option-slider/index.cjs +0 -19
- package/components/edit-option-text-field/index.cjs +0 -19
- package/components/filter-item/index.js +1 -1
- package/components/filter-value-picker-hierarchy/index.js +1 -1
- package/components/filter-value-picker-numeric/index.js +1 -1
- package/components/index.cjs +0 -19
- package/components/item-list.cjs +0 -19
- package/components/item-options-configs.cjs +0 -19
- package/components/slot-menu/index.js +1 -1
- package/components/slot-menu-list/index.js +3 -3
- package/components/utils.js +1 -1
- package/components/widget-menu/index.js +3 -1
- package/package.json +3 -3
- package/components/ai-chat-message-assistant/ai-chat-message-assistant.d.ts +0 -29
- package/components/ai-chat-message-assistant/index.cjs +0 -52
- package/components/ai-chat-message-assistant/index.d.ts +0 -7
- package/components/ai-chat-message-user/ai-chat-message-user.d.ts +0 -13
- package/components/ai-chat-message-user/index.d.ts +0 -7
- package/components/ai-chat-messages-container/ai-chat-messages-container.d.ts +0 -11
- package/components/ai-chat-messages-container/index.d.ts +0 -7
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +0 -83
- package/components/ai-interaction-textarea/index.d.ts +0 -7
- package/components/area-chart-options.config-C7sMAHco.cjs +0 -20
- package/components/area-chart-options.de-D_LVLa1H.cjs +0 -20
- package/components/area-chart-options.en-IauEvPHP.cjs +0 -20
- package/components/area-chart-options.es-CmPycXn2.cjs +0 -20
- package/components/area-chart-options.fr-BMnkGWlJ.cjs +0 -20
- package/components/area-chart-options.nl-C7-N_idS.cjs +0 -20
- package/components/area-chart-slots.config-Dx_ysVZK.cjs +0 -20
- package/components/bar-chart-options.config-DcxEkOT5.cjs +0 -20
- package/components/bar-chart-options.de-Dr5zKz8Q.cjs +0 -20
- package/components/bar-chart-options.en-DdQ2PYrw.cjs +0 -20
- package/components/bar-chart-options.es-DgYVxn9U.cjs +0 -20
- package/components/bar-chart-options.fr-rteFm93C.cjs +0 -20
- package/components/bar-chart-options.nl--gwlkpc0.cjs +0 -20
- package/components/bar-chart-slots.config-c_9ABPOI.cjs +0 -20
- package/components/bliss-DQej6Odb.cjs +0 -20
- package/components/box-plot-options.config-SrrbDEYW.cjs +0 -20
- package/components/box-plot-options.de-QbWt-xja.cjs +0 -20
- package/components/box-plot-options.en-CZhtAYXJ.cjs +0 -20
- package/components/box-plot-options.es-lyXLMKKo.cjs +0 -20
- package/components/box-plot-options.fr-BXh76t2K.cjs +0 -20
- package/components/box-plot-options.nl-DDAzT-zP.cjs +0 -20
- package/components/box-plot-slots.config-K-1CiWO-.cjs +0 -20
- package/components/bubble-chart-options.config-Ihn6eVQI.cjs +0 -20
- package/components/bubble-chart-options.de-D2Z88fwi.cjs +0 -20
- package/components/bubble-chart-options.en-CP9PhuPw.cjs +0 -20
- package/components/bubble-chart-options.es-B6mTDtxs.cjs +0 -20
- package/components/bubble-chart-options.fr-BMPe3Z5G.cjs +0 -20
- package/components/bubble-chart-options.nl-5thQrFoi.cjs +0 -20
- package/components/bubble-chart-slots.config-BwSwgleO.cjs +0 -20
- package/components/bullet-chart-options.config-DfS4Bwds.cjs +0 -20
- package/components/bullet-chart-options.de-D0XaMKPn.cjs +0 -20
- package/components/bullet-chart-options.en-BPjbk6Lk.cjs +0 -20
- package/components/bullet-chart-options.es-DxC9GWBS.cjs +0 -20
- package/components/bullet-chart-options.fr-Cf_rodY7.cjs +0 -20
- package/components/bullet-chart-options.nl-BdIjKMZf.cjs +0 -20
- package/components/bullet-chart-slots.config-DQarxMR7.cjs +0 -20
- package/components/calculate-data-item-icon-CEa82-5u.cjs +0 -20
- package/components/choropleth-map-options.config-ZW8yoZH2.cjs +0 -20
- package/components/choropleth-map-options.de-C4ko9lE4.cjs +0 -20
- package/components/choropleth-map-options.en-DVWBmXFe.cjs +0 -20
- package/components/choropleth-map-options.es-v5dYm1W3.cjs +0 -20
- package/components/choropleth-map-options.fr-Bpk_J4Gw.cjs +0 -20
- package/components/choropleth-map-options.nl-CyDZDpyE.cjs +0 -20
- package/components/choropleth-map-slots.config-CFERs0ca.cjs +0 -20
- package/components/circle-pack-chart-options.config-DWql72cN.cjs +0 -20
- package/components/circle-pack-chart-options.de-BKCxSgFo.cjs +0 -20
- package/components/circle-pack-chart-options.en-8QoEZniy.cjs +0 -20
- package/components/circle-pack-chart-options.es-BAdMklie.cjs +0 -20
- package/components/circle-pack-chart-options.fr-Dx2iO7nE.cjs +0 -20
- package/components/circle-pack-chart-options.nl-BEbtjCy_.cjs +0 -20
- package/components/circle-pack-chart-slots.config-B18aqdH1.cjs +0 -20
- package/components/circular-gauge-options.config-msZ4mfpN.cjs +0 -20
- package/components/circular-gauge-options.de-CzEREduR.cjs +0 -20
- package/components/circular-gauge-options.en--hMYjiKb.cjs +0 -20
- package/components/circular-gauge-options.es-bS5N1QyR.cjs +0 -20
- package/components/circular-gauge-options.fr-VgkkhIDb.cjs +0 -20
- package/components/circular-gauge-options.nl-B-E_GXJl.cjs +0 -20
- package/components/circular-gauge-slots.config-Cd-nkNPm.cjs +0 -20
- package/components/classic-CW66MgMj.cjs +0 -20
- package/components/classic-dark-DCtf8kpl.cjs +0 -20
- package/components/color-B6LaL8qz.cjs +0 -20
- package/components/color-palettes-DhNHcib8.cjs +0 -20
- package/components/color-range-utils-C5yXW7ZC.cjs +0 -20
- package/components/column-chart-options.config-BjDvA7i9.cjs +0 -20
- package/components/column-chart-options.de-BU__cJy3.cjs +0 -20
- package/components/column-chart-options.en-DdQ2PYrw.cjs +0 -20
- package/components/column-chart-options.es-CkaTU6qn.cjs +0 -20
- package/components/column-chart-options.fr-rteFm93C.cjs +0 -20
- package/components/column-chart-options.nl-Bhe6rcUo.cjs +0 -20
- package/components/column-chart-slots.config-C0nGjkmv.cjs +0 -20
- package/components/combination-chart-options.config-CyYEp-gX.cjs +0 -20
- package/components/combination-chart-options.de-CuVQ-JHu.cjs +0 -20
- package/components/combination-chart-options.en-BPcGTsP4.cjs +0 -20
- package/components/combination-chart-options.es-Dy7jzzFy.cjs +0 -20
- package/components/combination-chart-options.fr-CLUyqNH7.cjs +0 -20
- package/components/combination-chart-options.nl-BF6joCMV.cjs +0 -20
- package/components/combination-chart-slots.config-CY07Q5Hw.cjs +0 -20
- package/components/conditional-number-options.config-DgzUo0xi.cjs +0 -20
- package/components/conditional-number-options.de-R9Mtj45x.cjs +0 -20
- package/components/conditional-number-options.en-C-nOJ85m.cjs +0 -20
- package/components/conditional-number-options.es-C41csR3J.cjs +0 -20
- package/components/conditional-number-options.fr-DgaXesnu.cjs +0 -20
- package/components/conditional-number-options.nl-CJ5teRtT.cjs +0 -20
- package/components/conditional-number-slots.config-CD5ZwXuY.cjs +0 -20
- package/components/cs-I9E81keK.cjs +0 -20
- package/components/da-QkdvupDg.cjs +0 -20
- package/components/dataset-icon/dataset-icon.d.ts +0 -45
- package/components/dataset-icon/index.d.ts +0 -7
- package/components/dataset-selector-list/dataset-selector-list.d.ts +0 -94
- package/components/dataset-selector-list/index.d.ts +0 -7
- package/components/dataset-selector-row/dataset-selector-row.d.ts +0 -85
- package/components/dataset-selector-row/index.d.ts +0 -7
- package/components/date-comparison-filter-options.config-DAVncmi0.cjs +0 -20
- package/components/date-comparison-filter-options.de-CJBePtFH.cjs +0 -20
- package/components/date-comparison-filter-options.en-Of-X7-Ft.cjs +0 -20
- package/components/date-comparison-filter-options.es-CU3KrdQh.cjs +0 -20
- package/components/date-comparison-filter-options.fr-U0cC2xXg.cjs +0 -20
- package/components/date-comparison-filter-options.nl-DJGHjXwg.cjs +0 -20
- package/components/date-comparison-filter-slots.config-CrA5ijD3.cjs +0 -20
- package/components/date-filter-options.config-CWPMtA18.cjs +0 -20
- package/components/date-filter-options.de-Cav0BXbX.cjs +0 -20
- package/components/date-filter-options.en-B7MjV7xe.cjs +0 -20
- package/components/date-filter-options.es-C__wCKac.cjs +0 -20
- package/components/date-filter-options.fr-CFqwPRzc.cjs +0 -20
- package/components/date-filter-options.nl-CHOlmw93.cjs +0 -20
- package/components/date-filter-slots.config-CrA5ijD3.cjs +0 -20
- package/components/de-COKGBX9L.cjs +0 -20
- package/components/de-Dn5mUzha.cjs +0 -20
- package/components/decompose-numeric-format-B3rVVHpO.cjs +0 -20
- package/components/default-DcRD5JRU.cjs +0 -20
- package/components/default-dark-1299UcUs.cjs +0 -20
- package/components/display-settings/display-settings.d.ts +0 -90
- package/components/display-settings/index.cjs +0 -20
- package/components/display-settings/index.d.ts +0 -7
- package/components/display-settings-binning/display-settings-binning.d.ts +0 -33
- package/components/display-settings-binning/index.d.ts +0 -7
- package/components/display-settings-datetime/display-settings-datetime.d.ts +0 -86
- package/components/display-settings-datetime/index.cjs +0 -215
- package/components/display-settings-datetime/index.d.ts +0 -7
- package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +0 -31
- package/components/display-settings-grand-totals/index.cjs +0 -44
- package/components/display-settings-grand-totals/index.d.ts +0 -7
- package/components/display-settings-numeric/display-settings-numeric.d.ts +0 -85
- package/components/display-settings-numeric/helpers/constants.d.ts +0 -19
- package/components/display-settings-numeric/index.cjs +0 -183
- package/components/display-settings-numeric/index.d.ts +0 -7
- package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +0 -68
- package/components/display-settings-period-over-period/helpers/constants.d.ts +0 -44
- package/components/display-settings-period-over-period/index.cjs +0 -224
- package/components/display-settings-period-over-period/index.d.ts +0 -7
- package/components/donut-chart-options.config-tNpqBZfR.cjs +0 -20
- package/components/donut-chart-options.de-LQ01wQGN.cjs +0 -20
- package/components/donut-chart-options.en-DHCYs2el.cjs +0 -20
- package/components/donut-chart-options.es-BLDU1xpY.cjs +0 -20
- package/components/donut-chart-options.fr-C33dLw52.cjs +0 -20
- package/components/donut-chart-options.nl-h5-SSy_L.cjs +0 -20
- package/components/donut-chart-slots.config-DBowIZNO.cjs +0 -20
- package/components/draggable-data-item/draggable-data-item.d.ts +0 -26
- package/components/draggable-data-item/index.cjs +0 -48
- package/components/draggable-data-item/index.d.ts +0 -8
- package/components/draggable-data-item/types.d.ts +0 -21
- package/components/draggable-data-item-level/draggable-data-item-level.d.ts +0 -34
- package/components/draggable-data-item-level/helpers/generate-preview.d.ts +0 -9
- package/components/draggable-data-item-level/index.cjs +0 -50
- package/components/draggable-data-item-level/index.d.ts +0 -7
- package/components/draggable-data-item-level/types.d.ts +0 -12
- package/components/dropdown-filter-options.config-DS-MORmq.cjs +0 -20
- package/components/dropdown-filter-options.de-WLFUtnO_.cjs +0 -20
- package/components/dropdown-filter-options.en-txvgrhI8.cjs +0 -20
- package/components/dropdown-filter-options.es-C-U0fQJO.cjs +0 -20
- package/components/dropdown-filter-options.fr-Bl7uZNdT.cjs +0 -20
- package/components/dropdown-filter-options.nl-DIvw6DFh.cjs +0 -20
- package/components/dropdown-filter-slots.config-0wn6pMvi.cjs +0 -20
- package/components/droppable-slot/droppable-slot.d.ts +0 -86
- package/components/droppable-slot/index.cjs +0 -84
- package/components/droppable-slot/index.d.ts +0 -8
- package/components/droppable-slot/item-slots-configs/index.d.ts +0 -45
- package/components/droppable-slot/item-slots-configs/slot-labels.const.d.ts +0 -8
- package/components/droppable-slot/types.d.ts +0 -9
- package/components/edit-item/edit-item.d.ts +0 -55
- package/components/edit-item/index.cjs +0 -53
- package/components/edit-item/index.d.ts +0 -7
- package/components/edit-option/edit-option.d.ts +0 -24
- package/components/edit-option/helpers/control-markup.d.ts +0 -14
- package/components/edit-option/helpers/control-templates/action-button-group-template.d.ts +0 -2
- package/components/edit-option/helpers/control-templates/color-palette-picker-template.d.ts +0 -2
- package/components/edit-option/helpers/control-templates/color-picker-template.d.ts +0 -2
- package/components/edit-option/helpers/control-templates/color-range-template.d.ts +0 -2
- package/components/edit-option/helpers/control-templates/multi-language-field-template.d.ts +0 -8
- package/components/edit-option/helpers/control-templates/number-field-template.d.ts +0 -2
- package/components/edit-option/helpers/control-templates/picker-template.d.ts +0 -2
- package/components/edit-option/helpers/control-templates/position-picker-template.d.ts +0 -2
- package/components/edit-option/helpers/control-templates/positions-number-field-template.d.ts +0 -2
- package/components/edit-option/helpers/control-templates/radio-button-group.d.ts +0 -2
- package/components/edit-option/helpers/control-templates/slider-template.d.ts +0 -2
- package/components/edit-option/helpers/control-templates/switch-template.d.ts +0 -2
- package/components/edit-option/helpers/control-templates/text-field-template.d.ts +0 -7
- package/components/edit-option/helpers/generate-callback.d.ts +0 -1
- package/components/edit-option/helpers/get-control-by-key.d.ts +0 -1
- package/components/edit-option/helpers/get-default-value.d.ts +0 -1
- package/components/edit-option/helpers/get-enum-values.d.ts +0 -1
- package/components/edit-option/helpers/get-extra-label-values.d.ts +0 -7
- package/components/edit-option/helpers/get-value-by-key.d.ts +0 -1
- package/components/edit-option/index.cjs +0 -20
- package/components/edit-option/index.d.ts +0 -7
- package/components/edit-option-action-button-group/edit-option-action-button-group.d.ts +0 -27
- package/components/edit-option-action-button-group/index.cjs +0 -52
- package/components/edit-option-action-button-group/index.d.ts +0 -7
- package/components/edit-option-base/edit-option-base.d.ts +0 -23
- package/components/edit-option-base-VhTih9T1.cjs +0 -53
- package/components/edit-option-color-palette-picker/edit-option-color-palette-picker.d.ts +0 -42
- package/components/edit-option-color-palette-picker/index.cjs +0 -37
- package/components/edit-option-color-palette-picker/index.d.ts +0 -7
- package/components/edit-option-color-picker/edit-option-color-picker.d.ts +0 -28
- package/components/edit-option-color-picker/index.d.ts +0 -7
- package/components/edit-option-color-range/edit-option-color-range.d.ts +0 -99
- package/components/edit-option-color-range/index.cjs +0 -85
- package/components/edit-option-color-range/index.d.ts +0 -7
- package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +0 -17
- package/components/edit-option-multi-language-field/index.d.ts +0 -7
- package/components/edit-option-number-field/edit-option-number-field.d.ts +0 -21
- package/components/edit-option-number-field/index.d.ts +0 -7
- package/components/edit-option-picker/edit-option-picker.d.ts +0 -22
- package/components/edit-option-picker/index.d.ts +0 -7
- package/components/edit-option-position-picker/edit-option-position-picker.d.ts +0 -13
- package/components/edit-option-position-picker/index.cjs +0 -25
- package/components/edit-option-position-picker/index.d.ts +0 -7
- package/components/edit-option-positions-number-field/edit-option-positions-number-field.d.ts +0 -30
- package/components/edit-option-positions-number-field/index.cjs +0 -42
- package/components/edit-option-positions-number-field/index.d.ts +0 -7
- package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +0 -18
- package/components/edit-option-radio-button-group/index.d.ts +0 -7
- package/components/edit-option-slider/edit-option-slider.d.ts +0 -15
- package/components/edit-option-slider/index.d.ts +0 -7
- package/components/edit-option-switch/edit-option-switch.d.ts +0 -11
- package/components/edit-option-switch/index.cjs +0 -30
- package/components/edit-option-switch/index.d.ts +0 -7
- package/components/edit-option-text-field/edit-option-text-field.d.ts +0 -15
- package/components/edit-option-text-field/index.d.ts +0 -7
- package/components/en-BKBhKBXY.cjs +0 -20
- package/components/en-GB-DG6uS3sM.cjs +0 -20
- package/components/es-CaKfa7fn.cjs +0 -20
- package/components/es-CwyPlN5d.cjs +0 -20
- package/components/evolution-number-options.config-BgIZY4gQ.cjs +0 -20
- package/components/evolution-number-options.de-BVv1Uutc.cjs +0 -20
- package/components/evolution-number-options.en-CiZmE5r7.cjs +0 -20
- package/components/evolution-number-options.es-k2eY1Y3G.cjs +0 -20
- package/components/evolution-number-options.fr-B47Fwd-D.cjs +0 -20
- package/components/evolution-number-options.nl-CTppS5EY.cjs +0 -20
- package/components/evolution-number-slots.config-CNNVp6vR.cjs +0 -20
- package/components/extrapolate-color-0j_AeYkz.cjs +0 -20
- package/components/fi-rijeZE5V.cjs +0 -20
- package/components/filter-data-item-picker/filter-data-item-picker.d.ts +0 -76
- package/components/filter-data-item-picker/index.cjs +0 -47
- package/components/filter-data-item-picker/index.d.ts +0 -7
- package/components/filter-expression-picker/filter-expression-picker.d.ts +0 -74
- package/components/filter-expression-picker/index.cjs +0 -20
- package/components/filter-expression-picker/index.d.ts +0 -7
- package/components/filter-group/filter-group.d.ts +0 -26
- package/components/filter-group/index.d.ts +0 -7
- package/components/filter-item/filter-item.d.ts +0 -76
- package/components/filter-item/index.cjs +0 -52
- package/components/filter-item/index.d.ts +0 -7
- package/components/filter-parameter-picker/filter-parameter-picker.d.ts +0 -25
- package/components/filter-parameter-picker/index.d.ts +0 -7
- package/components/filter-value-picker/filter-value-picker.d.ts +0 -65
- package/components/filter-value-picker/index.cjs +0 -51
- package/components/filter-value-picker/index.d.ts +0 -7
- package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +0 -43
- package/components/filter-value-picker-datetime/index.cjs +0 -39
- package/components/filter-value-picker-datetime/index.d.ts +0 -7
- package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +0 -82
- package/components/filter-value-picker-hierarchy/index.cjs +0 -46
- package/components/filter-value-picker-hierarchy/index.d.ts +0 -7
- package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +0 -83
- package/components/filter-value-picker-numeric/index.cjs +0 -46
- package/components/filter-value-picker-numeric/index.d.ts +0 -7
- package/components/focusable-B3E_hQmm.cjs +0 -20
- package/components/fr-BcgE-6S_.cjs +0 -20
- package/components/fr-DiZbjx_a.cjs +0 -20
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
- package/components/funnel-chart-options.de-DRAGes5d.cjs +0 -20
- package/components/funnel-chart-options.en-b6BBKfZh.cjs +0 -20
- package/components/funnel-chart-options.es-DfDw5S5g.cjs +0 -20
- package/components/funnel-chart-options.fr-DWkPkC47.cjs +0 -20
- package/components/funnel-chart-options.nl-BdAL0ZJP.cjs +0 -20
- package/components/funnel-chart-slots.config-GKBCY9xN.cjs +0 -20
- package/components/get-css-variable-BEYG097C.js +0 -1446
- package/components/get-css-variable-BZxY4IOa.cjs +0 -35
- package/components/get-css-variable-DLiZYZEi.cjs +0 -24
- package/components/grid/actions.d.ts +0 -3
- package/components/grid/grid-item-actions-menu.d.ts +0 -35
- package/components/grid/grid.d.ts +0 -150
- package/components/grid/index.cjs +0 -319
- package/components/grid/index.d.ts +0 -10
- package/components/he-O6Ih8Bqh.cjs +0 -20
- package/components/heat-map-options.config-DVH-Bb5-.cjs +0 -20
- package/components/heat-map-options.de-CCzVMy-R.cjs +0 -20
- package/components/heat-map-options.en-Bg7i7QKn.cjs +0 -20
- package/components/heat-map-options.es-BYyHRdIH.cjs +0 -20
- package/components/heat-map-options.fr-CLB-XMRA.cjs +0 -20
- package/components/heat-map-options.nl-BHrmi96k.cjs +0 -20
- package/components/heat-map-slots.config-D7cSAVdX.cjs +0 -20
- package/components/heat-table-options.config-B12JEYnp.cjs +0 -20
- package/components/heat-table-options.de-cnjPxQep.cjs +0 -20
- package/components/heat-table-options.en-Bjqpkm75.cjs +0 -20
- package/components/heat-table-options.es-IaNf_Ge4.cjs +0 -20
- package/components/heat-table-options.fr-BdZnJYlb.cjs +0 -20
- package/components/heat-table-options.nl-DGS7vzoT.cjs +0 -20
- package/components/heat-table-slots.config-GGX3BCh1.cjs +0 -20
- package/components/helpers-DXQwEH1P.cjs +0 -20
- package/components/hexbin-map-options.config-DZERRhM8.cjs +0 -20
- package/components/hexbin-map-options.de-DUp41p9I.cjs +0 -20
- package/components/hexbin-map-options.en-B10UanAQ.cjs +0 -20
- package/components/hexbin-map-options.es-97IUVMSg.cjs +0 -20
- package/components/hexbin-map-options.fr-Bh9Swyi3.cjs +0 -20
- package/components/hexbin-map-options.nl-BzyMf0JQ.cjs +0 -20
- package/components/hexbin-map-slots.config-D7cSAVdX.cjs +0 -20
- package/components/hu-BnZ8y3xQ.cjs +0 -20
- package/components/image-options.config-Dqhc2c3b.cjs +0 -20
- package/components/image-options.de-CBkRiIbw.cjs +0 -20
- package/components/image-options.en-DflcU_2H.cjs +0 -20
- package/components/image-options.es-CRbNv384.cjs +0 -20
- package/components/image-options.fr-ycH7UoX5.cjs +0 -20
- package/components/image-options.nl-DQL45o0j.cjs +0 -20
- package/components/image-slots.config-mPXMR1CE.cjs +0 -20
- package/components/index-6PmXiNch.cjs +0 -20
- package/components/index-BPNsFiyq.cjs +0 -38
- package/components/index-CQ9ck-BO.cjs +0 -249
- package/components/index-CXn67vdn.cjs +0 -121
- package/components/index-Cz9vSXy6.cjs +0 -20
- package/components/index-DhDgy1sp.cjs +0 -20
- package/components/index-Dn0j_pcR.cjs +0 -20
- package/components/index-E239Dotg.js +0 -1735
- package/components/index-Vdyb9z2D.cjs +0 -20
- package/components/it-PshtLMkq.cjs +0 -20
- package/components/item-context-configs.cjs +0 -226
- package/components/item-menu/item-list/item-list.d.ts +0 -37
- package/components/item-slots-configs.cjs +0 -20
- package/components/ja-KIS2HdaG.cjs +0 -20
- package/components/ko--l4qmjLV.cjs +0 -20
- package/components/line-chart-options.config-DSugoe0t.cjs +0 -20
- package/components/line-chart-options.de-zuguhS7L.cjs +0 -20
- package/components/line-chart-options.en-C88UT2iR.cjs +0 -20
- package/components/line-chart-options.es-CvABRdF7.cjs +0 -20
- package/components/line-chart-options.fr-BtfgIPkW.cjs +0 -20
- package/components/line-chart-options.nl-mAxtSkJo.cjs +0 -20
- package/components/line-chart-slots.config-Dx_ysVZK.cjs +0 -20
- package/components/localize-r7ALOUy_.cjs +0 -20
- package/components/marker-map-options.config-_FYZzRwA.cjs +0 -20
- package/components/marker-map-options.de-BsQQMw02.cjs +0 -20
- package/components/marker-map-options.en-CS9itUOA.cjs +0 -20
- package/components/marker-map-options.es-A5ZV4oul.cjs +0 -20
- package/components/marker-map-options.fr-yEc1vbcL.cjs +0 -20
- package/components/marker-map-options.nl-YdcS3JJg.cjs +0 -20
- package/components/marker-map-slots.config-D7cSAVdX.cjs +0 -20
- package/components/mk-DZlj-edb.cjs +0 -20
- package/components/nl-BKlDqOXb.cjs +0 -20
- package/components/nl-Bot6bJ4g.cjs +0 -20
- package/components/no-D_SzxhTu.cjs +0 -20
- package/components/ohlc-chart-options.config-BLlRV_bs.cjs +0 -20
- package/components/ohlc-chart-options.de-D82a4TlN.cjs +0 -20
- package/components/ohlc-chart-options.en-WsfJ9z1E.cjs +0 -20
- package/components/ohlc-chart-options.es-BLKIOFho.cjs +0 -20
- package/components/ohlc-chart-options.fr-D6YoAH4U.cjs +0 -20
- package/components/ohlc-chart-options.nl-lWVHjRUM.cjs +0 -20
- package/components/ohlc-chart-slots.config-DMomcHMV.cjs +0 -20
- package/components/orion-CfUR1e5D.cjs +0 -20
- package/components/parallel-coordinates-plot-options.config-B9eRq_Dj.cjs +0 -20
- package/components/parallel-coordinates-plot-options.de-Dm5-9Du6.cjs +0 -20
- package/components/parallel-coordinates-plot-options.en-mGJiceE7.cjs +0 -20
- package/components/parallel-coordinates-plot-options.es-UhSh9vHw.cjs +0 -20
- package/components/parallel-coordinates-plot-options.fr-DNjANPoh.cjs +0 -20
- package/components/parallel-coordinates-plot-options.nl-DCXPdyr2.cjs +0 -20
- package/components/parallel-coordinates-plot-slots.config--fk40ZDu.cjs +0 -20
- package/components/periods.const-3jA-ECRf.cjs +0 -20
- package/components/pinky-DptTgIM4.cjs +0 -20
- package/components/pivot-table-options.config-BiJXKSFR.cjs +0 -20
- package/components/pivot-table-options.de-CEaD9SHr.cjs +0 -20
- package/components/pivot-table-options.en-DC07VN7H.cjs +0 -20
- package/components/pivot-table-options.es-Xm6ENByP.cjs +0 -20
- package/components/pivot-table-options.fr-ClLROt4b.cjs +0 -20
- package/components/pivot-table-options.nl-Dk2Oeu8i.cjs +0 -20
- package/components/pivot-table-slots.config-45V_Gdm7.cjs +0 -20
- package/components/pl-PIK23rK_.cjs +0 -20
- package/components/pt-Dqlu4MS5.cjs +0 -20
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +0 -20
- package/components/pyramid-chart-options.de-DKas0NiC.cjs +0 -20
- package/components/pyramid-chart-options.en-L6DFdrRz.cjs +0 -20
- package/components/pyramid-chart-options.es-Cu0g6t6A.cjs +0 -20
- package/components/pyramid-chart-options.fr-CreHLwD_.cjs +0 -20
- package/components/pyramid-chart-options.nl-CRbkXz3i.cjs +0 -20
- package/components/pyramid-chart-slots.config-D5F0WX2d.cjs +0 -20
- package/components/radar-chart-options.config-EqQu6PTh.cjs +0 -20
- package/components/radar-chart-options.de-BGHs6QoY.cjs +0 -20
- package/components/radar-chart-options.en-DXlfL8Qm.cjs +0 -20
- package/components/radar-chart-options.es-DBw1arWW.cjs +0 -20
- package/components/radar-chart-options.fr-CKBFCZK0.cjs +0 -20
- package/components/radar-chart-options.nl-k4gGr6lf.cjs +0 -20
- package/components/radar-chart-slots.config-BEigR_Ml.cjs +0 -20
- package/components/radiant-Dv7GVveL.cjs +0 -20
- package/components/regular-table-options.config-DTx3RTnS.cjs +0 -20
- package/components/regular-table-options.de-DHgnwaEe.cjs +0 -20
- package/components/regular-table-options.en-DPoF7r6r.cjs +0 -20
- package/components/regular-table-options.es-8cbzQG40.cjs +0 -20
- package/components/regular-table-options.fr-D4dSaBN-.cjs +0 -20
- package/components/regular-table-options.nl-DvIvjTvR.cjs +0 -20
- package/components/regular-table-slots.config-RLnMgOXn.cjs +0 -20
- package/components/route-map-options.config-D7NJePTu.cjs +0 -20
- package/components/route-map-options.de-w5wuIvwf.cjs +0 -20
- package/components/route-map-options.en-Co0Fbjkz.cjs +0 -20
- package/components/route-map-options.es-Cjasm-ZQ.cjs +0 -20
- package/components/route-map-options.fr-C1SCfKLH.cjs +0 -20
- package/components/route-map-options.nl-CYmB51pE.cjs +0 -20
- package/components/route-map-slots.config-DsVJBR3D.cjs +0 -20
- package/components/royale-Ooq8M7Ef.cjs +0 -20
- package/components/ru-zyNDTB04.cjs +0 -20
- package/components/sankey-diagram-options.config-RFB83YLZ.cjs +0 -20
- package/components/sankey-diagram-options.de-BOtJSpbI.cjs +0 -20
- package/components/sankey-diagram-options.en-DMx4MkN-.cjs +0 -20
- package/components/sankey-diagram-options.es-BdDSG9DB.cjs +0 -20
- package/components/sankey-diagram-options.fr-D1MrJM4P.cjs +0 -20
- package/components/sankey-diagram-options.nl-DW_wVZ1O.cjs +0 -20
- package/components/sankey-diagram-slots.config-CiyYElLX.cjs +0 -20
- package/components/scatter-plot-options.config-CFfGJXsV.cjs +0 -20
- package/components/scatter-plot-options.de-fSoIvHJy.cjs +0 -20
- package/components/scatter-plot-options.en-CGCdpOtQ.cjs +0 -20
- package/components/scatter-plot-options.es-CLRJMSqn.cjs +0 -20
- package/components/scatter-plot-options.fr-Da2McGuN.cjs +0 -20
- package/components/scatter-plot-options.nl-CRWq01rL.cjs +0 -20
- package/components/scatter-plot-slots.config-47cB5_RC.cjs +0 -20
- package/components/search-filter-options.config-BCaDlYqZ.cjs +0 -20
- package/components/search-filter-options.de-BK66ORWq.cjs +0 -20
- package/components/search-filter-options.en-CDPrPilw.cjs +0 -20
- package/components/search-filter-options.es-D7Z_PcC1.cjs +0 -20
- package/components/search-filter-options.fr-DhaK1uUa.cjs +0 -20
- package/components/search-filter-options.nl-CAA7cBhK.cjs +0 -20
- package/components/search-filter-slots.config-DeHkvc2Q.cjs +0 -20
- package/components/seasonal-OSKpFyta.cjs +0 -20
- package/components/set-locale-BRRalqne.cjs +0 -20
- package/components/sized-mixin-DcvJLFeo.cjs +0 -20
- package/components/slicer-filter-options.config-DNI-XevE.cjs +0 -20
- package/components/slicer-filter-options.de-DRazS_m2.cjs +0 -20
- package/components/slicer-filter-options.en-CpMgGFQr.cjs +0 -20
- package/components/slicer-filter-options.es-CS_RNuGQ.cjs +0 -20
- package/components/slicer-filter-options.fr-CfCs-AJo.cjs +0 -20
- package/components/slicer-filter-options.nl-C_n1KiTW.cjs +0 -20
- package/components/slicer-filter-slots.config-V7hURjKI.cjs +0 -20
- package/components/slider-filter-options.config-_8Z2zKmU.cjs +0 -20
- package/components/slider-filter-options.de-BgUkQGYO.cjs +0 -20
- package/components/slider-filter-options.en-Dvn-ux4N.cjs +0 -20
- package/components/slider-filter-options.es-B9ObSQWh.cjs +0 -20
- package/components/slider-filter-options.fr-DI6QMjqa.cjs +0 -20
- package/components/slider-filter-options.nl-autc8gPj.cjs +0 -20
- package/components/slider-filter-slots.config-B--K9cpP.cjs +0 -20
- package/components/slot-contents-picker/index.cjs +0 -146
- package/components/slot-contents-picker/index.d.ts +0 -7
- package/components/slot-contents-picker/slot-contents-picker.d.ts +0 -113
- package/components/slot-menu/index.cjs +0 -62
- package/components/slot-menu/index.d.ts +0 -8
- package/components/slot-menu/slot-menu.d.ts +0 -111
- package/components/slot-menu/types.d.ts +0 -25
- package/components/slot-menu-list/index.cjs +0 -35
- package/components/slot-menu-list/index.d.ts +0 -7
- package/components/slot-menu-list/slot-menu-list.d.ts +0 -35
- package/components/spacer-options.config-mPXMR1CE.cjs +0 -20
- package/components/speedometer-chart-options.config-BX9LTQBH.cjs +0 -20
- package/components/speedometer-chart-options.de-D5SIAUZA.cjs +0 -20
- package/components/speedometer-chart-options.en-BUj6JXhT.cjs +0 -20
- package/components/speedometer-chart-options.es-DalX0e7D.cjs +0 -20
- package/components/speedometer-chart-options.fr-Dqn95u64.cjs +0 -20
- package/components/speedometer-chart-options.nl-Bo6cV2j0.cjs +0 -20
- package/components/speedometer-chart-slots.config-Cd-nkNPm.cjs +0 -20
- package/components/spike-map-options.config-DoBFXPmN.cjs +0 -20
- package/components/spike-map-options.de-_47BiyJQ.cjs +0 -20
- package/components/spike-map-options.en-B9InMjtg.cjs +0 -20
- package/components/spike-map-options.es-e-sVsx0P.cjs +0 -20
- package/components/spike-map-options.fr-DPpYI3Yd.cjs +0 -20
- package/components/spike-map-options.nl-DOJHgdzZ.cjs +0 -20
- package/components/spike-map-slots.config-BM5-Dlub.cjs +0 -20
- package/components/strip-plot-options.config-CKy1s16H.cjs +0 -20
- package/components/strip-plot-options.de-DwOrv0sQ.cjs +0 -20
- package/components/strip-plot-options.en-CjD5zNiU.cjs +0 -20
- package/components/strip-plot-options.es-D_ZS1l9j.cjs +0 -20
- package/components/strip-plot-options.fr-C6gKZaLg.cjs +0 -20
- package/components/strip-plot-options.nl-BkQ9nc9g.cjs +0 -20
- package/components/strip-plot-slots.config-DDUlLO8K.cjs +0 -20
- package/components/sunburst-chart-options.config-AbNjWS6t.cjs +0 -20
- package/components/sunburst-chart-options.de-BDu_ZCdb.cjs +0 -20
- package/components/sunburst-chart-options.en-D9Rr49yw.cjs +0 -20
- package/components/sunburst-chart-options.es-Ba8WDFHg.cjs +0 -20
- package/components/sunburst-chart-options.fr-1Ecu2sp2.cjs +0 -20
- package/components/sunburst-chart-options.nl-BbOLWrEh.cjs +0 -20
- package/components/sunburst-chart-slots.config-B18aqdH1.cjs +0 -20
- package/components/sv-1DPTltNQ.cjs +0 -20
- package/components/symbol-map-options.config-m-lwLTtu.cjs +0 -20
- package/components/symbol-map-options.de-BpGDOFd7.cjs +0 -20
- package/components/symbol-map-options.en-DfbVAChu.cjs +0 -20
- package/components/symbol-map-options.es-DwitkQlR.cjs +0 -20
- package/components/symbol-map-options.fr-CmMvfUDf.cjs +0 -20
- package/components/symbol-map-options.nl-DxnQtnnP.cjs +0 -20
- package/components/symbol-map-slots.config-Dm_FRGHA.cjs +0 -20
- package/components/text-options.config-BFB3rEmt.cjs +0 -20
- package/components/text-options.de-DLr2-jBn.cjs +0 -20
- package/components/text-options.en-LfsMtwo6.cjs +0 -20
- package/components/text-options.es-BLQBqlvK.cjs +0 -20
- package/components/text-options.fr-B8x29grG.cjs +0 -20
- package/components/text-options.nl-DzglrI3i.cjs +0 -20
- package/components/text-slots.config-BMBEkf0O.cjs +0 -20
- package/components/tr-BkmWvOG2.cjs +0 -20
- package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +0 -20
- package/components/treemap-chart-options.de-Crku8ynJ.cjs +0 -20
- package/components/treemap-chart-options.en-zSWDcqFt.cjs +0 -20
- package/components/treemap-chart-options.es-DXX2PyUh.cjs +0 -20
- package/components/treemap-chart-options.fr-B93bhLpR.cjs +0 -20
- package/components/treemap-chart-options.nl-ButbMHmU.cjs +0 -20
- package/components/treemap-chart-slots.config-C3bnHCyy.cjs +0 -20
- package/components/types-VPf7E5dD.cjs +0 -20
- package/components/urban-BLQl5Oye.cjs +0 -20
- package/components/utils.cjs +0 -20
- package/components/venn-diagram-options.config-mPXMR1CE.cjs +0 -20
- package/components/venn-diagram-slots.config-GytlZGbF.cjs +0 -20
- package/components/video-options.config-CGsDTwHc.cjs +0 -20
- package/components/video-options.de-DZUy2pUo.cjs +0 -20
- package/components/video-options.en-D69d612-.cjs +0 -20
- package/components/video-options.es-BUKi6Pyc.cjs +0 -20
- package/components/video-options.fr-B7b4NJso.cjs +0 -20
- package/components/video-options.nl-CSiCG3Vu.cjs +0 -20
- package/components/video-slots.config-mPXMR1CE.cjs +0 -20
- package/components/vivid-BpRn83MR.cjs +0 -20
- package/components/widget-menu/index.cjs +0 -51
- package/components/widget-menu/index.d.ts +0 -8
- package/components/widget-menu/widget-menu.d.ts +0 -77
- package/components/wordcloud-chart-options.config-vGfCW8kE.cjs +0 -20
- package/components/wordcloud-chart-options.de-DnJjN2l-.cjs +0 -20
- package/components/wordcloud-chart-options.en-Ca5fXbS9.cjs +0 -20
- package/components/wordcloud-chart-options.es-TkHFgMUu.cjs +0 -20
- package/components/wordcloud-chart-options.fr-Dz53DWyA.cjs +0 -20
- package/components/wordcloud-chart-options.nl-Cy_9TRvD.cjs +0 -20
- package/components/wordcloud-chart-slots.config-D7CiYopX.cjs +0 -20
- package/components/zh-CN-DTZ4OmdP.cjs +0 -20
- package/components/zh-TW-DTZ4OmdP.cjs +0 -20
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@lit/localize");require("@luzmo/lucero/action-button");require("@luzmo/lucero/action-group");require("@luzmo/lucero/field-label");require("@luzmo/lucero/menu");require("@luzmo/lucero/number-field");require("@luzmo/lucero/picker");require("@luzmo/lucero/popover");const f=require("../decompose-numeric-format-B3rVVHpO.cjs"),o=require("lit"),g=require("@luzmo/icons"),$=require("@luzmo/lucero/overlay");require("@luzmo/lucero/tooltip");const D=require("../calculate-data-item-icon-CEa82-5u.cjs"),y=require("../localize-r7ALOUy_.cjs"),m=require("lit/decorators.js"),N=require("../focusable-B3E_hQmm.cjs"),z=require("../sized-mixin-DcvJLFeo.cjs"),h=require("../set-locale-BRRalqne.cjs"),w=":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-gap, var(--luzmo-spacing-2))}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-numeric-gap, var(--display-settings-numeric-gap))}.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{max-width:100%;font-weight:600;text-transform:uppercase;margin:.5rem 1rem;color:var(--luzmo-font-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:default}.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{position:absolute;bottom:45%;left:60%;width:auto;font-size:.75em;line-height:1}.data-icon-type{width:1.5rem;text-align:center;position:relative;display:inline-block}: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 )}",C={sum:()=>n.msg("Sum",{desc:"Numeric Aggregation option"}),cumulativesum:()=>n.msg("Cumulative sum",{desc:"Numeric Aggregation option"}),average:()=>n.msg("Average",{desc:"Numeric Aggregation option"}),median:()=>n.msg("Median",{desc:"Numeric Aggregation option"}),count:()=>n.msg("Count rows",{desc:"Numeric Aggregation option"}),distinctcount:()=>n.msg("Count distinct",{desc:"Numeric Aggregation option"}),min:()=>n.msg("Minimum",{desc:"Numeric Aggregation option"}),max:()=>n.msg("Maximum",{desc:"Numeric Aggregation option"}),stddev:()=>n.msg("Standard deviation",{desc:"Numeric Aggregation option"}),rate:()=>n.msg("Rate",{desc:"Numeric Aggregation option"})},b={general:"123",percentage:"%",scientific:"SI"},L={time:()=>n.msg("Time",{desc:"Time format option"}),short:()=>n.msg("Short",{desc:"Short format option"}),long:()=>n.msg("Long",{desc:"Long format option"})},S={Auto:{auto:!0,label:()=>n.msg("Auto",{desc:"Automatic setting of the option"})},"1,000.00":{auto:!1,label:()=>"1,000.00",thousandSeparator:",",decimalSeparator:".",hiddenFor:"scientific"},"1.000,00":{auto:!1,label:()=>"1.000,00",thousandSeparator:".",decimalSeparator:",",hiddenFor:"scientific"},"1000.00":{auto:!1,label:()=>"1000.00",decimalSeparator:"."},"1000,00":{auto:!1,label:()=>"1000,00",decimalSeparator:","}},q={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"}]};var E=Object.defineProperty,I=Object.getOwnPropertyDescriptor,u=(d,t,e,i)=>{for(var s=i>1?void 0:i?I(t,e):t,a=d.length-1,r;a>=0;a--)(r=d[a])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&E(t,e,s),s};exports.LuzmoDisplaySettingsNumeric=class extends z.SizedMixin(N.LuzmoElement,{validSizes:Object.values(z.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={},this.measureColumns=[],this._durationLevels=[],this._renderDurationLevelMenu=!1,this._sendEvent=()=>{const t={...this.slotContent};t.format=this._format,t.aggregationFunc=this._aggregationFunc,this._aggregationWeightColumn?t.aggregationWeight={...this._aggregationWeightColumn}:delete t.aggregationWeight,this._displayMode==="duration"?(t.duration=t.duration??{},t.duration.format=this._durationFormat,t.duration.levels=this._durationLevels):delete t.duration,this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:t}}))}}static get styles(){return[o.unsafeCSS(w)]}_parseSavedNumericFormatSettings(){var t,e,i,s,a,r,c;if(this._displayMode=((t=this.slotContent)==null?void 0:t.subtype)==="duration"?"duration":"numeric",this._durationFormat=((i=(e=this.slotContent)==null?void 0:e.duration)==null?void 0:i.format)??"short",this._durationLevels=((a=(s=this.slotContent)==null?void 0:s.duration)==null?void 0:a.levels)??[1],this._displayMode==="duration")this._precision=2,this._commaDecimals=!1,this._thousandSeparator=!1;else{this._format=((r=this.slotContent)==null?void 0:r.format)??".0f";const l=f.decomposeNumericFormat(this._format??".0f");this._isAuto=((c=l.typeFormat)==null?void 0:c.includes("a"))??!1,["%","a%","y","ay"].includes(l.typeFormat)?this._displayAs="percentage":["s","as","w","aw"].includes(l.typeFormat)?this._displayAs="scientific":this._displayAs="general",this._precision=l.precision?Number.parseInt(l.precision.replace(".",""),10):this._displayAs==="scientific"?1:0,this._commaDecimals=["z","az","y","ay","w","aw"].includes(l.typeFormat),this._thousandSeparator=l.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(){var t,e;this._displayAs=((e=(t=this._displayAsElement)==null?void 0:t.selected)==null?void 0:e[0])??"general",this._displayAs==="scientific"&&(this._precision=Math.max(this._precision??0,1),this._thousandSeparator=!1),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setNumericSeparators(t){const e=S[(t==null?void 0:t.detail)??"Auto"];this._thousandSeparator=[",","."].includes((e==null?void 0:e.thousandSeparator)??""),this._commaDecimals=(e==null?void 0:e.decimalSeparator)===",",this._isAuto=e==null?void 0:e.auto,this._setNumericFormat(),this._sendEvent()}_setPrecision(){this._precision=this._precisionElement.value,this._setNumericFormat(),this._sendEvent()}_setNumericFormat(){var i;let t="f";const e=this.slotContent.subtype==="duration"?this._durationLevels&&((i=this._durationLevels)==null?void 0:i.length)===1?"numeric":"duration":"numeric";this._maxDurationLevel=Math.min(...this._durationLevels),e==="duration"?(!["time","short","long"].includes(this._durationFormat??"")||this._maxDurationLevel<6&&this._durationFormat==="time")&&(this._durationFormat="short"):(this._displayAs==="general"&&this._commaDecimals?t="z":this._displayAs==="percentage"&&this._commaDecimals?t="y":this._displayAs==="scientific"&&this._commaDecimals?t="w":this._displayAs==="percentage"?t="%":this._displayAs==="scientific"&&(t="s"),this._format=(this._thousandSeparator||this._isAuto?",":"")+"."+this._precision+(this._isAuto?"a":"")+t)}_setAggregationFunc(){var a;const t=this._aggregationElement.value,e=this._aggregationFunc,i=this.slotContent.format;if(t!==(e==="weightedaverage"?"average":e)){if(this._aggregationFunc=t==="average"&&((a=this._aggregationWeightColumn)!=null&&a.column)?"weightedaverage":t,e==="rate"){const r=f.decomposeNumericFormat(i),c=["%","y","a%","ay"].includes(r.typeFormat);this.slotContent.subtype==="currency"&&c&&this._setNumericDisplayAs()}this._sendEvent(),(this._aggregationFunc==="rate"||e==="rate")&&this.requestUpdate()}}_setAggregationWeight(){var i;const t=this._aggregationWeightElement.value,e=this._aggregationFunc;if(t==="none")this._aggregationWeightColumn=void 0,this._aggregationFunc==="weightedaverage"&&(this._aggregationFunc="average");else{let s,a;for(const r of this.measureColumns??[]){const c=(i=r.columns)==null?void 0:i.find(l=>l.id===t);if(c){s=c,a=r.datasetId;break}}s&&(this._aggregationWeightColumn={column:s.id,set:a,columnSubType:s.subtype}),this._aggregationFunc==="average"&&(this._aggregationFunc="weightedaverage")}this._sendEvent(),this.requestUpdate(),(e==="weightedaverage"&&this._aggregationFunc==="average"||e==="average"&&this._aggregationFunc==="weightedaverage")&&this.requestUpdate()}_setDurationLevels(){const t=this._durationLevels,e=this._durationLevelsElement.value.split(",").filter(i=>i!=="").map(i=>Number.parseInt(i,10));this._durationLevels=((e==null?void 0:e.length)??0)>=1?e:t,this._maxDurationLevel=Math.min(...this._durationLevels),this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setDurationFormat(){var t,e;this._durationFormat=(e=(t=this._durationFormatElement)==null?void 0:t.selected)==null?void 0:e[0],this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_fillTimeDurationLevels(){if(this._durationFormat==="time"){const t=this._durationLevels.sort().at(-1);if([7,8,9].includes(t)){const e={lev7:[6],lev8:[6,7],lev9:[6,7,8]};for(const i of e["lev"+t])this._durationLevels.includes(i)||this._durationLevels.push(i);this._durationLevels=[...this._durationLevels].sort()}}}willUpdate(t){var e,i,s,a,r;t.has("slotContent")&&(this._parseSavedNumericFormatSettings(),this._aggregationFunc=((e=this.slotContent)==null?void 0:e.aggregationFunc)??(((i=this.slotContent)==null?void 0:i.type)==="numeric"?"sum":"count"),this._aggregationWeightColumn=(s=this.slotContent)==null?void 0:s.aggregationWeight,this._isFormula=((a=this.slotContent)==null?void 0:a.formula)||((r=this.slotContent)==null?void 0:r.formulaId)),t.has("language")&&this.language!==h.getLocale()&&([...h.targetLocales].includes(this.language??"en")||this.language==="en")&&h.setLocale(this.language)}firstUpdated(){var t;(t=this.slotContent)!=null&&t.duration&&this._durationLevelsOverlay.addEventListener("slottable-request",e=>{this._renderDurationLevelMenu=e.data!==$.removeSlottableRequest})}_renderDurationLevelsSettings(){const t=q.levels.map(e=>{let i=!1;return this._durationFormat==="time"&&e.level>=6&&this._durationLevels.includes(e.level)&&e.level!==Math.max(...this._durationLevels)&&(i=!0),this._durationLevels.length===1&&this._durationLevels.includes(e.level)&&(i=!0),o.html`<luzmo-menu-item
|
|
21
|
-
value=${e.level}
|
|
22
|
-
?selected=${this._durationLevels.includes(e.level)}
|
|
23
|
-
?disabled=${i}
|
|
24
|
-
>
|
|
25
|
-
${e.label}
|
|
26
|
-
</luzmo-menu-item>`});return o.html` <div class="setting">
|
|
27
|
-
<luzmo-field-label for="duration-levels">
|
|
28
|
-
${n.msg("Duration levels",{desc:"Label for duration levels setting"})}
|
|
29
|
-
</luzmo-field-label>
|
|
30
|
-
<luzmo-action-button id="duration-levels-trigger" size=${this.size}>
|
|
31
|
-
${this._durationLevels.length}
|
|
32
|
-
${this._durationLevels.length===1?"level":"levels"} active
|
|
33
|
-
<span class="duration-angle-down-icon">
|
|
34
|
-
${g.luzmoIcon(g.luzmoAngleDown)}
|
|
35
|
-
</span>
|
|
36
|
-
</luzmo-action-button>
|
|
37
|
-
<luzmo-overlay
|
|
38
|
-
id="duration-levels-overlay"
|
|
39
|
-
trigger="duration-levels-trigger@click"
|
|
40
|
-
type="auto"
|
|
41
|
-
placement="bottom-start"
|
|
42
|
-
type="page"
|
|
43
|
-
>
|
|
44
|
-
<luzmo-popover style="position: relative">
|
|
45
|
-
${this._renderDurationLevelMenu?o.html` <luzmo-menu
|
|
46
|
-
id="duration-levels"
|
|
47
|
-
size=${this.size}
|
|
48
|
-
selects="multiple"
|
|
49
|
-
.value=${this._durationLevels.join(",")}
|
|
50
|
-
@change=${this._setDurationLevels}
|
|
51
|
-
>
|
|
52
|
-
${t}
|
|
53
|
-
</luzmo-menu>`:""}
|
|
54
|
-
</luzmo-popover>
|
|
55
|
-
</luzmo-overlay>
|
|
56
|
-
</div>`}_renderDurationFormatSettings(){const t=Object.keys(L).map(e=>e==="time"&&(this._maxDurationLevel??1)<6?"":o.html`<luzmo-action-button value=${e}>
|
|
57
|
-
${L[e]()}
|
|
58
|
-
</luzmo-action-button>`);return o.html` <div class="setting">
|
|
59
|
-
<luzmo-field-label for="duration-format">
|
|
60
|
-
${n.msg("Format",{desc:"Label for format setting"})}
|
|
61
|
-
</luzmo-field-label>
|
|
62
|
-
<luzmo-action-group
|
|
63
|
-
emphasized
|
|
64
|
-
id="duration-format"
|
|
65
|
-
size=${this.size}
|
|
66
|
-
compact=""
|
|
67
|
-
.selected=${[this._durationFormat??"short"]}
|
|
68
|
-
selects="single"
|
|
69
|
-
@change=${this._setDurationFormat}
|
|
70
|
-
>
|
|
71
|
-
${t}
|
|
72
|
-
</luzmo-action-group>
|
|
73
|
-
</div>`}_renderNumericDisplayAsSettings(){const t=Object.keys(b).filter(e=>{var i;return e!=="percentage"||(this.slotContent.subtype!=="currency"||this.slotContent.aggregationFunc==="rate")&&((i=this.slotContent.periodOverPeriod)==null?void 0:i.type)!=="percentageChange"}).map(e=>o.html`<luzmo-action-button value=${e}
|
|
74
|
-
>${b[e]}</luzmo-action-button
|
|
75
|
-
>`);return o.html`<div class="setting">
|
|
76
|
-
<luzmo-field-label for="display-as">
|
|
77
|
-
${n.msg("Display as",{desc:"Label for display as setting for the datetime field"})}
|
|
78
|
-
</luzmo-field-label>
|
|
79
|
-
<luzmo-action-group
|
|
80
|
-
emphasized
|
|
81
|
-
id="display-as"
|
|
82
|
-
size=${this.size}
|
|
83
|
-
compact=""
|
|
84
|
-
.selected=${[this._displayAs]}
|
|
85
|
-
selects="single"
|
|
86
|
-
@change=${this._setNumericDisplayAs}
|
|
87
|
-
>
|
|
88
|
-
${t}
|
|
89
|
-
</luzmo-action-group>
|
|
90
|
-
</div>`}_renderNumericFormatSettings(){const t=Object.entries(S).filter(([,{hiddenFor:e}])=>!e||e!==this._displayAs).map(([e,{label:i}])=>o.html`<luzmo-menu-item value=${e}>${i()}</luzmo-menu-item>`);return o.html` <div class="setting">
|
|
91
|
-
<luzmo-field-label for="format">
|
|
92
|
-
${n.msg("Format",{desc:"Label for format setting"})}
|
|
93
|
-
</luzmo-field-label>
|
|
94
|
-
<luzmo-picker
|
|
95
|
-
id="format"
|
|
96
|
-
size=${this.size}
|
|
97
|
-
variant="highlight"
|
|
98
|
-
value=${this._numericFormatGroup??"Auto"}
|
|
99
|
-
@change=${this._setNumericSeparators}
|
|
100
|
-
>
|
|
101
|
-
${t}
|
|
102
|
-
</luzmo-picker>
|
|
103
|
-
</div>
|
|
104
|
-
<div class="setting">
|
|
105
|
-
<luzmo-field-label for="precision" id="precision-label">
|
|
106
|
-
${this._displayAs==="scientific"?n.msg("Precision",{desc:"Label for precision setting"}):n.msg("Decimals",{desc:"Label for decimals setting"})}
|
|
107
|
-
</luzmo-field-label>
|
|
108
|
-
<luzmo-number-field
|
|
109
|
-
id="precision"
|
|
110
|
-
min=${this._displayAs==="scientific"?1:0}
|
|
111
|
-
max="22"
|
|
112
|
-
size=${this.size}
|
|
113
|
-
value=${this._precision??(this._displayAs==="scientific"?1:0)}
|
|
114
|
-
@change=${this._setPrecision}
|
|
115
|
-
></luzmo-number-field>
|
|
116
|
-
</div>`}_renderAggregationSettings(){var i;const t=Object.entries(C).filter(([s])=>{var a;return["count","distinctcount"].includes(s)||((a=this.slotContent)==null?void 0:a.type)==="numeric"}).filter(([s])=>s!=="cumulativesum"||this.isCumulativeSumEnabled).map(([s,a])=>o.html`<luzmo-menu-item value=${s}>${a()}</luzmo-menu-item>`),e=[o.html`<luzmo-menu-item value="none" class="no-weight">
|
|
117
|
-
<span class="no-weight-label">No weight</span>
|
|
118
|
-
</luzmo-menu-item>`,...(this.measureColumns??[]).flatMap(s=>{const a=typeof s.datasetName=="object"?y.localize(s.datasetName,this.language):s.datasetName,r=o.html`<div class="dataset-header">
|
|
119
|
-
${a}
|
|
120
|
-
<luzmo-tooltip self-managed placement="right" size=${this.size}>
|
|
121
|
-
${a}
|
|
122
|
-
</luzmo-tooltip>
|
|
123
|
-
</div>`,c=(s.columns??[]).map(l=>{const p=typeof l.name=="object"?y.localize(l.name,this.language):l.name,A=g.luzmoIcon(D.calculateDataItemIcon(l,"s")),v=l.expression?g.luzmoTypeDerived12:void 0,_=!!v,F=_?o.html`<span class="secondary-icon"
|
|
124
|
-
>${g.luzmoIcon(v)}</span
|
|
125
|
-
>`:o.nothing;return o.html`<luzmo-menu-item value=${l.id}>
|
|
126
|
-
<span class="data-icon-type" slot="icon">
|
|
127
|
-
<span class=${_?"with-secondary-icon":""}
|
|
128
|
-
>${A}</span
|
|
129
|
-
>
|
|
130
|
-
${F}
|
|
131
|
-
</span>
|
|
132
|
-
<span class="column-label text-truncate">${p}</span>
|
|
133
|
-
<luzmo-tooltip self-managed placement="right" size=${this.size}>
|
|
134
|
-
${p}
|
|
135
|
-
</luzmo-tooltip>
|
|
136
|
-
</luzmo-menu-item>`});return[r,...c]})];return o.html`<div class="settings-row">
|
|
137
|
-
<div class="setting">
|
|
138
|
-
<luzmo-field-label for="aggregation">
|
|
139
|
-
${n.msg("Aggregation",{desc:"Label for aggregation setting"})}
|
|
140
|
-
</luzmo-field-label>
|
|
141
|
-
<luzmo-picker
|
|
142
|
-
id="aggregation"
|
|
143
|
-
size=${this.size}
|
|
144
|
-
variant="highlight"
|
|
145
|
-
value=${(()=>{var a;const s=((a=this.slotContent)==null?void 0:a.type)==="numeric"?"sum":"count";return this._aggregationFunc==="weightedaverage"?"average":this._aggregationFunc??s})()}
|
|
146
|
-
@change=${this._setAggregationFunc}
|
|
147
|
-
>
|
|
148
|
-
${t}
|
|
149
|
-
</luzmo-picker>
|
|
150
|
-
</div>
|
|
151
|
-
${["rate","average","weightedaverage"].includes(this._aggregationFunc??"")?o.html`<div class="setting">
|
|
152
|
-
<luzmo-field-label for="weighting-column">
|
|
153
|
-
${this._aggregationFunc==="rate"?"Denominator":"Weight"}
|
|
154
|
-
</luzmo-field-label>
|
|
155
|
-
${this.measureColumns.length>0?o.html`
|
|
156
|
-
<luzmo-picker
|
|
157
|
-
id="weighting-column"
|
|
158
|
-
size=${this.size}
|
|
159
|
-
variant="highlight"
|
|
160
|
-
icons="none"
|
|
161
|
-
value=${((i=this._aggregationWeightColumn)==null?void 0:i.column)??"none"}
|
|
162
|
-
@change=${this._setAggregationWeight}
|
|
163
|
-
>
|
|
164
|
-
${e}
|
|
165
|
-
</luzmo-picker>
|
|
166
|
-
`:o.html`<luzmo-picker
|
|
167
|
-
id="weighting-column"
|
|
168
|
-
size=${this.size}
|
|
169
|
-
variant="highlight"
|
|
170
|
-
icons="none"
|
|
171
|
-
value="none"
|
|
172
|
-
>
|
|
173
|
-
<luzmo-menu-item value="none">No weight</luzmo-menu-item>
|
|
174
|
-
</luzmo-picker>`}
|
|
175
|
-
</div>`:""}
|
|
176
|
-
</div>`}render(){var t;return o.html`<div class="settings-container">
|
|
177
|
-
<div class="settings-row">
|
|
178
|
-
${this._displayMode==="duration"?this._renderDurationLevelsSettings():this._renderNumericDisplayAsSettings()}
|
|
179
|
-
${((t=this._durationLevels)==null?void 0:t.length)>1?this._renderDurationFormatSettings():this._renderNumericFormatSettings()}
|
|
180
|
-
</div>
|
|
181
|
-
${this._isFormula||this.isAggregationDisabled?o.nothing:this._renderAggregationSettings()}
|
|
182
|
-
</div>
|
|
183
|
-
</div>`}};u([m.property({type:String,reflect:!0})],exports.LuzmoDisplaySettingsNumeric.prototype,"language",2);u([m.property({type:Object,reflect:!0})],exports.LuzmoDisplaySettingsNumeric.prototype,"slotContent",2);u([m.property({type:Array,reflect:!1})],exports.LuzmoDisplaySettingsNumeric.prototype,"measureColumns",2);u([m.property({type:Boolean})],exports.LuzmoDisplaySettingsNumeric.prototype,"isAggregationDisabled",2);u([m.property({type:Boolean})],exports.LuzmoDisplaySettingsNumeric.prototype,"isCumulativeSumEnabled",2);u([m.query("#display-as")],exports.LuzmoDisplaySettingsNumeric.prototype,"_displayAsElement",2);u([m.query("#precision")],exports.LuzmoDisplaySettingsNumeric.prototype,"_precisionElement",2);u([m.query("#aggregation")],exports.LuzmoDisplaySettingsNumeric.prototype,"_aggregationElement",2);u([m.query("#weighting-column")],exports.LuzmoDisplaySettingsNumeric.prototype,"_aggregationWeightElement",2);u([m.query("#duration-levels")],exports.LuzmoDisplaySettingsNumeric.prototype,"_durationLevelsElement",2);u([m.query("#duration-format")],exports.LuzmoDisplaySettingsNumeric.prototype,"_durationFormatElement",2);u([m.query("#duration-levels-overlay")],exports.LuzmoDisplaySettingsNumeric.prototype,"_durationLevelsOverlay",2);u([m.state()],exports.LuzmoDisplaySettingsNumeric.prototype,"_renderDurationLevelMenu",2);exports.LuzmoDisplaySettingsNumeric=u([n.localized()],exports.LuzmoDisplaySettingsNumeric);customElements.get("luzmo-display-settings-numeric")||customElements.define("luzmo-display-settings-numeric",exports.LuzmoDisplaySettingsNumeric);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LuzmoDisplaySettingsNumeric } from './display-settings-numeric';
|
|
2
|
-
declare global {
|
|
3
|
-
interface HTMLElementTagNameMap {
|
|
4
|
-
'luzmo-display-settings-numeric': LuzmoDisplaySettingsNumeric;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export { LuzmoDisplaySettingsNumeric } from './display-settings-numeric';
|
package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Column } from '@luzmo/dashboard-contents-types';
|
|
2
|
-
import '@luzmo/lucero/accordion';
|
|
3
|
-
import '@luzmo/lucero/action-button';
|
|
4
|
-
import '@luzmo/lucero/action-group';
|
|
5
|
-
import '@luzmo/lucero/checkbox';
|
|
6
|
-
import '@luzmo/lucero/field-label';
|
|
7
|
-
import '@luzmo/lucero/menu';
|
|
8
|
-
import '@luzmo/lucero/number-field';
|
|
9
|
-
import '@luzmo/lucero/picker';
|
|
10
|
-
import { LuzmoElement } from '@utils/base';
|
|
11
|
-
import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
|
|
12
|
-
import { PeriodOverPeriodCondition } from 'src/types';
|
|
13
|
-
declare const LuzmoDisplaySettingsPeriodOverPeriod_base: typeof LuzmoElement & {
|
|
14
|
-
new (...args: any[]): import("../../utils/base/sized-mixin").SizedElementInterface;
|
|
15
|
-
prototype: import("../../utils/base/sized-mixin").SizedElementInterface;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* @element luzmo-display-settings-period-over-period
|
|
19
|
-
* @fires slot-content-changed - Event that is fired when the slot content is changed
|
|
20
|
-
*/
|
|
21
|
-
export declare class LuzmoDisplaySettingsPeriodOverPeriod extends LuzmoDisplaySettingsPeriodOverPeriod_base {
|
|
22
|
-
static get styles(): CSSResultArray;
|
|
23
|
-
/**
|
|
24
|
-
* The language used in the settings
|
|
25
|
-
*/
|
|
26
|
-
language: string;
|
|
27
|
-
/**
|
|
28
|
-
* The slotContent that is passed to the settings
|
|
29
|
-
*/
|
|
30
|
-
slotContent: any;
|
|
31
|
-
periodOverPeriodUiType: PeriodOverPeriodCondition;
|
|
32
|
-
linkedDatasetDatetimeColumns: (Column & {
|
|
33
|
-
datasetId: string;
|
|
34
|
-
})[];
|
|
35
|
-
private _periodComparisonElement;
|
|
36
|
-
private _numberPeriodsElement;
|
|
37
|
-
private _periodLevelElement;
|
|
38
|
-
private _offsetDateColumnElement;
|
|
39
|
-
private _incompletePeriodsElement;
|
|
40
|
-
private _periodComparison?;
|
|
41
|
-
private _rangeType?;
|
|
42
|
-
private _numberPeriods?;
|
|
43
|
-
private _periodLevel?;
|
|
44
|
-
private _incompletePeriods?;
|
|
45
|
-
private _minLevel?;
|
|
46
|
-
private _offsetDateColumn?;
|
|
47
|
-
protected willUpdate(changedProperties: PropertyValues): void;
|
|
48
|
-
private setPeriodComparison;
|
|
49
|
-
private setNumberOfPeriods;
|
|
50
|
-
private setPeriodLevel;
|
|
51
|
-
private setOffsetDateColumn;
|
|
52
|
-
private setIncompletePeriods;
|
|
53
|
-
private setRangeType;
|
|
54
|
-
private sendEvent;
|
|
55
|
-
private incompletePeriodsSetting;
|
|
56
|
-
private relativeOffsetSetting;
|
|
57
|
-
private rangeTypeSetting;
|
|
58
|
-
private _handleRangeTypeClick;
|
|
59
|
-
private offsetDateColumnSetting;
|
|
60
|
-
private typeOfComparisonSetting;
|
|
61
|
-
private renderPeriodSettings;
|
|
62
|
-
private renderOldUiPeriodSettings;
|
|
63
|
-
renderOldUi(): TemplateResult;
|
|
64
|
-
protected render(): TemplateResult;
|
|
65
|
-
private needsOffsetDatetimeColumn;
|
|
66
|
-
private setInitialOffsetDateColumn;
|
|
67
|
-
}
|
|
68
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export declare const PERIOD_OVER_PERIOD_VALUES: Record<PeriodOverPeriodType, () => string>;
|
|
2
|
-
export declare const LEVEL_LIST: {
|
|
3
|
-
key: string;
|
|
4
|
-
i18n: () => string;
|
|
5
|
-
}[];
|
|
6
|
-
export declare enum RangeTypeListKeys {
|
|
7
|
-
Relative = "relative",
|
|
8
|
-
UserDefined = "user-defined"
|
|
9
|
-
}
|
|
10
|
-
export declare const RANGE_TYPE_LIST: {
|
|
11
|
-
key: RangeTypeListKeys;
|
|
12
|
-
i18n: () => string;
|
|
13
|
-
}[];
|
|
14
|
-
/**
|
|
15
|
-
* Period over period comparison type:
|
|
16
|
-
* 'none' - turned off,
|
|
17
|
-
* 'past' - absolute value comparison to the past,
|
|
18
|
-
* 'absoluteChange' - absolute change comparison to the past,
|
|
19
|
-
* 'percentageChange' - percentage change comparison to the past
|
|
20
|
-
*/
|
|
21
|
-
export type PeriodOverPeriodType = 'none' | 'past' | 'absoluteChange' | 'percentageChange';
|
|
22
|
-
export interface PeriodOverPeriod {
|
|
23
|
-
/**
|
|
24
|
-
* Period over period comparison type
|
|
25
|
-
*/
|
|
26
|
-
type: PeriodOverPeriodType;
|
|
27
|
-
/**
|
|
28
|
-
* Period of time level
|
|
29
|
-
* 0 - period, 1 - year, 2 - quarter, 3 - month, 4 - week, 5 - day... 9 - millisecond
|
|
30
|
-
*/
|
|
31
|
-
level: number;
|
|
32
|
-
/**
|
|
33
|
-
* Number of periods
|
|
34
|
-
*/
|
|
35
|
-
quantity: number;
|
|
36
|
-
/**
|
|
37
|
-
* Turn ON/OFF period to date comparison
|
|
38
|
-
*/
|
|
39
|
-
periodToDate: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Category date level to disallow smaller Period-Over-Period levels. For internal use only
|
|
42
|
-
*/
|
|
43
|
-
minLevel: number;
|
|
44
|
-
}
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@lit/localize");require("@luzmo/lucero/accordion");require("@luzmo/lucero/action-button");require("@luzmo/lucero/action-group");require("@luzmo/lucero/checkbox");require("@luzmo/lucero/field-label");require("@luzmo/lucero/menu");require("@luzmo/lucero/number-field");require("@luzmo/lucero/picker");const q=require("../focusable-B3E_hQmm.cjs"),w=require("../sized-mixin-DcvJLFeo.cjs"),I=require("../decompose-numeric-format-B3rVVHpO.cjs"),N=require("../localize-r7ALOUy_.cjs"),y=require("../set-locale-BRRalqne.cjs"),o=require("lit"),l=require("lit/decorators.js"),p=require("../types-VPf7E5dD.cjs"),f={none:()=>t.msg("None"),past:()=>t.msg("Past value",{desc:"Period option"}),absoluteChange:()=>t.msg("Absolute change",{desc:"Period option"}),percentageChange:()=>t.msg("% change",{desc:"Period option"})},g=[{key:"periods",i18n:()=>t.msg("Periods",{desc:"Period option"})},{key:"years",i18n:()=>t.msg("Years",{desc:"Period option"})},{key:"quarters",i18n:()=>t.msg("Quarters",{desc:"Period option"})},{key:"months",i18n:()=>t.msg("Months",{desc:"Period option"})},{key:"weeks",i18n:()=>t.msg("Weeks",{desc:"Period option"})},{key:"days",i18n:()=>t.msg("Days",{desc:"Period option"})},{key:"hours",i18n:()=>t.msg("Hours",{desc:"Period option"})},{key:"minutes",i18n:()=>t.msg("Minutes",{desc:"Period option"})},{key:"seconds",i18n:()=>t.msg("Seconds",{desc:"Period option"})}];var z=(m=>(m.Relative="relative",m.UserDefined="user-defined",m))(z||{});const R=[{key:"relative",i18n:()=>t.msg("Relative",{desc:"Range type option"})},{key:"user-defined",i18n:()=>t.msg("User-defined",{desc:"Range type option"})}],U=":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{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-gap, 0)}:host .settings-container:first-of-type{margin-right:var(--luzmo-spacing-4)}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-period-over-period-gap, var(--display-settings-period-over-period-gap))}:host .wrap{flex-wrap:wrap}:host .setting.period-number-setting{display:flex;align-items:center}: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) );--field-label-font-size: var( --luzmo-display-settings-period-over-period-font-size, var(--display-settings-period-over-period-font-size) )}:host .label-container{display:flex;align-items:center;gap:var(--luzmo-spacing-2)}:host .academy-link{color:var(--luzmo-link-color);text-decoration:none;font-size:var(--luzmo-font-size-s);margin-left:var(--luzmo-spacing-2)}: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-field-label{--field-label-font-size: var( --luzmo-display-settings-period-over-period-font-size, var(--display-settings-period-over-period-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}";var F=Object.defineProperty,j=Object.getOwnPropertyDescriptor,n=(m,i,e,s)=>{for(var r=s>1?void 0:s?j(i,e):i,a=m.length-1,d;a>=0;a--)(d=m[a])&&(r=(s?d(i,e,r):d(r))||r);return s&&r&&F(i,e,r),r};exports.LuzmoDisplaySettingsPeriodOverPeriod=class extends w.SizedMixin(q.LuzmoElement,{validSizes:Object.values(w.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={},this.linkedDatasetDatetimeColumns=[],this.needsOffsetDatetimeColumn=()=>this.periodOverPeriodUiType===p.PeriodOverPeriodCondition.NoDatetimeColumnButComparisonFilters||this.periodOverPeriodUiType===p.PeriodOverPeriodCondition.NoDatetimeColumnAndNoComparisonFilters}static get styles(){return[o.unsafeCSS(U)]}willUpdate(i){var e,s,r,a,d,c,u,h,P,C,b,$,_,O,D,S,k,L,x,T,E;if(i.has("slotContent")){this._periodComparison=(s=(e=this.slotContent)==null?void 0:e.periodOverPeriod)==null?void 0:s.type,this._numberPeriods=(a=(r=this.slotContent)==null?void 0:r.periodOverPeriod)==null?void 0:a.quantity;const v=(c=(d=this.slotContent)==null?void 0:d.periodOverPeriod)==null?void 0:c.level;this._periodLevel=typeof v=="number"&&v>=0&&v<g.length?g[v].key:((h=(u=this.slotContent)==null?void 0:u.periodOverPeriod)==null?void 0:h.level)||"periods",this._incompletePeriods=(C=(P=this.slotContent)==null?void 0:P.periodOverPeriod)==null?void 0:C.periodToDate,this._offsetDateColumn=($=(b=this.slotContent)==null?void 0:b.periodOverPeriod)==null?void 0:$.offsetDateColumn,this._minLevel=((O=(_=this.slotContent)==null?void 0:_.periodOverPeriod)==null?void 0:O.minLevel)??((k=(S=(D=this.slotContent)==null?void 0:D.periodOverPeriod)==null?void 0:S.offsetDateColumn)==null?void 0:k.lowestLevel)??((L=this.slotContent)==null?void 0:L.lowestLevel)??(((x=this.slotContent)==null?void 0:x.subtype)==="date"?5:9),this._rangeType=(E=(T=this.slotContent)==null?void 0:T.periodOverPeriod)==null?void 0:E.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??z.Relative,this._offsetDateColumn=this._offsetDateColumn||void 0,i.has("language")&&this.language!==y.getLocale()&&([...y.targetLocales].includes(this.language??"en")||this.language==="en")&&y.setLocale(this.language)}setPeriodComparison(){var h;const i={...this.slotContent};this.setInitialOffsetDateColumn(i),this._periodComparison=this._periodComparisonElement.value;const e=I.decomposeNumericFormat((h=this.slotContent)==null?void 0:h.format),s=["%","y","a%","ay"].includes(e.typeFormat),r=e.typeFormat.includes("a"),a=r?"a":"",d=e.comma===","||r?",":"",c=e.precision?Number.parseInt(e.precision.replace(".",""),10):0,u=["z","az","y","ay","w","aw"].includes(e.typeFormat);this._periodComparison==="percentageChange"&&!s?i.format=`${d}.${c}${a}${u?"y":"%"}`:this._periodComparison!=="percentageChange"&&i.subtype==="currency"&&s&&(i.format=`${d}.${c}${a}${u?"z":"f"}`),this.sendEvent(i)}setNumberOfPeriods(){this._numberPeriods=Number.parseInt(this._numberPeriodsElement.value,10);const i={...this.slotContent};this.sendEvent(i)}setPeriodLevel(){this._periodLevel=this._periodLevelElement.value;const i={...this.slotContent};this.sendEvent(i)}setOffsetDateColumn(){this._offsetDateColumn=this.linkedDatasetDatetimeColumns.find(e=>e.id===this._offsetDateColumnElement.value);const i={...this.slotContent};this.sendEvent(i)}setIncompletePeriods(){this._incompletePeriods=this._incompletePeriodsElement.checked;const i={...this.slotContent};this.sendEvent(i)}setRangeType(i){this._rangeType=i;const e={...this.slotContent};this.setInitialOffsetDateColumn(e),this.sendEvent(e)}sendEvent(i){const e={...i},s=g.findIndex(r=>r.key===this._periodLevel);e.periodOverPeriod={...i.periodOverPeriod,type:this._periodComparison,level:Math.max(s,0),quantity:this._numberPeriods,periodToDate:this._incompletePeriods,minLevel:this._minLevel,rangeType:this._rangeType,offsetDateColumn:this._offsetDateColumn},this._periodComparison==="none"&&delete e.periodOverPeriod,this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:e}}))}incompletePeriodsSetting(){return o.html`
|
|
21
|
-
<div class="settings-row">
|
|
22
|
-
<div class="setting">
|
|
23
|
-
<luzmo-checkbox
|
|
24
|
-
id="incomplete-periods"
|
|
25
|
-
size=${this.size}
|
|
26
|
-
emphasized
|
|
27
|
-
?checked=${this._incompletePeriods??!1}
|
|
28
|
-
@change=${this.setIncompletePeriods}
|
|
29
|
-
>
|
|
30
|
-
${t.msg("Use period-to-date for incomplete periods",{desc:"Checkbox label for incomplete periods"})}
|
|
31
|
-
</luzmo-checkbox>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
`}relativeOffsetSetting(){const i=g.slice(this.needsOffsetDatetimeColumn()?1:0,(this._minLevel??0)+1).map(e=>o.html`<luzmo-menu-item
|
|
35
|
-
value=${e.key}
|
|
36
|
-
tooltip=${e.key==="periods"?t.msg("Matches the date range visible in the chart or table",{desc:"Tooltip for periods"}):""}
|
|
37
|
-
>
|
|
38
|
-
${e.i18n()}
|
|
39
|
-
</luzmo-menu-item>`);return o.html`
|
|
40
|
-
<div class="settings-container">
|
|
41
|
-
<luzmo-field-label for="period-comparison">
|
|
42
|
-
${t.msg("Relative offset",{desc:"Label for relative offset"})}
|
|
43
|
-
</luzmo-field-label>
|
|
44
|
-
|
|
45
|
-
<div class="settings-row">
|
|
46
|
-
<div class="setting period-number-setting">
|
|
47
|
-
<luzmo-number-field
|
|
48
|
-
id="number-periods"
|
|
49
|
-
min="1"
|
|
50
|
-
size=${this.size}
|
|
51
|
-
max="9999999999"
|
|
52
|
-
value=${this._numberPeriods??1}
|
|
53
|
-
@change=${this.setNumberOfPeriods}
|
|
54
|
-
></luzmo-number-field>
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
<div class="setting">
|
|
58
|
-
<luzmo-picker
|
|
59
|
-
id="period-level"
|
|
60
|
-
size=${this.size}
|
|
61
|
-
variant="highlight"
|
|
62
|
-
value=${this._periodLevel??"periods"}
|
|
63
|
-
@change=${this.setPeriodLevel}
|
|
64
|
-
>
|
|
65
|
-
${i}
|
|
66
|
-
</luzmo-picker>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
`}rangeTypeSetting(){const i=R.map(e=>o.html`<luzmo-action-button
|
|
71
|
-
data-range-type=${e.key}
|
|
72
|
-
@click=${this._handleRangeTypeClick}
|
|
73
|
-
>
|
|
74
|
-
${e.i18n()}
|
|
75
|
-
</luzmo-action-button>`);return o.html`
|
|
76
|
-
<div class="settings-container">
|
|
77
|
-
<luzmo-field-label for="range-type">
|
|
78
|
-
${t.msg("Range type",{desc:"Label for range type"})}
|
|
79
|
-
</luzmo-field-label>
|
|
80
|
-
|
|
81
|
-
<luzmo-action-group
|
|
82
|
-
size=${this.size}
|
|
83
|
-
compact
|
|
84
|
-
?emphasized=${!0}
|
|
85
|
-
selected=${JSON.stringify([this._rangeType])}
|
|
86
|
-
selects="single"
|
|
87
|
-
>
|
|
88
|
-
${i}
|
|
89
|
-
</luzmo-action-group>
|
|
90
|
-
</div>
|
|
91
|
-
`}_handleRangeTypeClick(i){var r;const e=i.currentTarget,s=(r=e==null?void 0:e.dataset)==null?void 0:r.rangeType;s&&this.setRangeType(s)}offsetDateColumnSetting(){var e;const i=this.linkedDatasetDatetimeColumns.map(s=>o.html`<luzmo-menu-item value=${s.id}>
|
|
92
|
-
${N.localize(s.name,this.language)}
|
|
93
|
-
</luzmo-menu-item>`);return o.html`
|
|
94
|
-
<div class="settings-container">
|
|
95
|
-
<luzmo-field-label for="offset-date-column">
|
|
96
|
-
${t.msg("Offset date column",{desc:"Label for offset date column"})}
|
|
97
|
-
</luzmo-field-label>
|
|
98
|
-
|
|
99
|
-
<div class="setting">
|
|
100
|
-
<luzmo-picker
|
|
101
|
-
id="offset-date-column"
|
|
102
|
-
size=${this.size}
|
|
103
|
-
variant="highlight"
|
|
104
|
-
value=${(e=this._offsetDateColumn)==null?void 0:e.id}
|
|
105
|
-
@change=${this.setOffsetDateColumn}
|
|
106
|
-
>
|
|
107
|
-
${i}
|
|
108
|
-
</luzmo-picker>
|
|
109
|
-
</div>
|
|
110
|
-
</div>
|
|
111
|
-
`}typeOfComparisonSetting(){const i=Object.keys(f).map(e=>o.html`<luzmo-menu-item value=${e}>
|
|
112
|
-
${f[e]()}
|
|
113
|
-
</luzmo-menu-item>`);return o.html`<div class="settings-container">
|
|
114
|
-
<luzmo-field-label for="period-comparison">
|
|
115
|
-
${t.msg("Show")}
|
|
116
|
-
</luzmo-field-label>
|
|
117
|
-
<luzmo-picker
|
|
118
|
-
id="period-comparison"
|
|
119
|
-
size=${this.size}
|
|
120
|
-
variant="highlight"
|
|
121
|
-
value=${this._periodComparison??"none"}
|
|
122
|
-
@change=${this.setPeriodComparison}
|
|
123
|
-
>
|
|
124
|
-
${i}
|
|
125
|
-
</luzmo-picker>
|
|
126
|
-
</div>`}renderPeriodSettings(){var e;const i={[p.PeriodOverPeriodCondition.HasDatetimeColumnAndNoComparisonFilters]:()=>o.html`
|
|
127
|
-
${this.relativeOffsetSetting()} ${this.incompletePeriodsSetting()}
|
|
128
|
-
`,[p.PeriodOverPeriodCondition.NoDatetimeColumnAndNoComparisonFilters]:()=>o.html`
|
|
129
|
-
${this.relativeOffsetSetting()} ${this.offsetDateColumnSetting()}
|
|
130
|
-
${this.incompletePeriodsSetting()}
|
|
131
|
-
`,[p.PeriodOverPeriodCondition.HasDatetimeColumnAndComparisonFilters]:()=>this._rangeType===z.Relative?o.html`${this.rangeTypeSetting()} ${this.relativeOffsetSetting()}
|
|
132
|
-
${this.incompletePeriodsSetting()} `:o.html` ${this.rangeTypeSetting()} `,[p.PeriodOverPeriodCondition.NoDatetimeColumnButComparisonFilters]:()=>this._rangeType===z.Relative?o.html`
|
|
133
|
-
${this.rangeTypeSetting()} ${this.relativeOffsetSetting()}
|
|
134
|
-
${this.offsetDateColumnSetting()} ${this.incompletePeriodsSetting()}
|
|
135
|
-
`:o.html` ${this.rangeTypeSetting()} `,[p.PeriodOverPeriodCondition.OldImplementation]:()=>""};return((e=i[this.periodOverPeriodUiType])==null?void 0:e.call(i))??""}renderOldUiPeriodSettings(){const i=g.slice(0,(this._minLevel??0)+1).map(e=>o.html`<luzmo-menu-item
|
|
136
|
-
value=${e.key}
|
|
137
|
-
tooltip=${e.key==="periods"?t.msg("Matches the date range visible in the chart or table",{desc:"Tooltip for periods"}):""}
|
|
138
|
-
>
|
|
139
|
-
${e.i18n()}
|
|
140
|
-
</luzmo-menu-item>`);return o.html` <div class="settings-row">
|
|
141
|
-
<div class="setting period-number-setting">
|
|
142
|
-
${["percentageChange","absoluteChange"].includes(this._periodComparison??"")?o.html`<luzmo-field-label for="number-periods" side-aligned="start">
|
|
143
|
-
${t.msg("From",{desc:"Label for number of periods"})}
|
|
144
|
-
</luzmo-field-label>`:""}
|
|
145
|
-
<luzmo-number-field
|
|
146
|
-
id="number-periods"
|
|
147
|
-
min="1"
|
|
148
|
-
size=${this.size}
|
|
149
|
-
max="9999999999"
|
|
150
|
-
value=${this._numberPeriods??1}
|
|
151
|
-
@change=${this.setNumberOfPeriods}
|
|
152
|
-
></luzmo-number-field>
|
|
153
|
-
</div>
|
|
154
|
-
<div class="setting">
|
|
155
|
-
<luzmo-picker
|
|
156
|
-
id="period-level"
|
|
157
|
-
size=${this.size}
|
|
158
|
-
variant="highlight"
|
|
159
|
-
value=${this._periodLevel??"periods"}
|
|
160
|
-
@change=${this.setPeriodLevel}
|
|
161
|
-
>
|
|
162
|
-
${i}
|
|
163
|
-
</luzmo-picker>
|
|
164
|
-
</div>
|
|
165
|
-
<div>${t.msg("ago",{desc:"Label for period ago"})}</div>
|
|
166
|
-
</div>
|
|
167
|
-
<div class="settings-row">
|
|
168
|
-
<div class="setting">
|
|
169
|
-
<luzmo-checkbox
|
|
170
|
-
id="incomplete-periods"
|
|
171
|
-
size=${this.size}
|
|
172
|
-
emphasized
|
|
173
|
-
?checked=${this._incompletePeriods??!1}
|
|
174
|
-
@change=${this.setIncompletePeriods}
|
|
175
|
-
>
|
|
176
|
-
${t.msg("Use period-to-date for incomplete periods",{desc:"Checkbox label for incomplete periods"})}
|
|
177
|
-
</luzmo-checkbox>
|
|
178
|
-
</div>
|
|
179
|
-
</div>`}renderOldUi(){const i=Object.keys(f).map(e=>o.html`<luzmo-menu-item value=${e}>
|
|
180
|
-
${f[e]()}
|
|
181
|
-
</luzmo-menu-item>`);return o.html`<div class="settings-container">
|
|
182
|
-
<div class="settings-row">
|
|
183
|
-
<div class="setting">
|
|
184
|
-
<div class="label-container">
|
|
185
|
-
<luzmo-field-label for="period-comparison">
|
|
186
|
-
${t.msg("Period comparison",{desc:"Label for period comparison"})}
|
|
187
|
-
</luzmo-field-label>
|
|
188
|
-
|
|
189
|
-
<a
|
|
190
|
-
target="_blank"
|
|
191
|
-
href="https://academy.luzmo.com/article/yh728g3n"
|
|
192
|
-
class="academy-link"
|
|
193
|
-
>
|
|
194
|
-
${t.msg("Learn more",{desc:"Label for academy link"})}
|
|
195
|
-
</a>
|
|
196
|
-
</div>
|
|
197
|
-
|
|
198
|
-
<luzmo-picker
|
|
199
|
-
id="period-comparison"
|
|
200
|
-
size=${this.size}
|
|
201
|
-
variant="highlight"
|
|
202
|
-
value=${this._periodComparison??"none"}
|
|
203
|
-
@change=${this.setPeriodComparison}
|
|
204
|
-
>
|
|
205
|
-
${i}
|
|
206
|
-
</luzmo-picker>
|
|
207
|
-
</div>
|
|
208
|
-
</div>
|
|
209
|
-
${this._periodComparison==="none"?"":this.renderOldUiPeriodSettings()}
|
|
210
|
-
</div>`}render(){return this.periodOverPeriodUiType===p.PeriodOverPeriodCondition.OldImplementation?this.renderOldUi():o.html`
|
|
211
|
-
<luzmo-accordion variant="highlight-child" class="setting">
|
|
212
|
-
<luzmo-accordion-item
|
|
213
|
-
?open=${this._periodComparison!=="none"}
|
|
214
|
-
label=${t.msg("Period comparison",{desc:"Label for period comparison"})}
|
|
215
|
-
>
|
|
216
|
-
<div class="settings-container dynamic-settings-container">
|
|
217
|
-
<div class="settings-row wrap">
|
|
218
|
-
${this.typeOfComparisonSetting()}
|
|
219
|
-
${this._periodComparison==="none"?"":this.renderPeriodSettings()}
|
|
220
|
-
</div>
|
|
221
|
-
</div>
|
|
222
|
-
</luzmo-accordion-item>
|
|
223
|
-
</luzmo-accordion>
|
|
224
|
-
`}setInitialOffsetDateColumn(i){this._offsetDateColumn=this.needsOffsetDatetimeColumn()?this.linkedDatasetDatetimeColumns[0]:void 0,i.periodOverPeriod.offsetDateColumn=this._offsetDateColumn}};n([l.property({type:String,reflect:!0})],exports.LuzmoDisplaySettingsPeriodOverPeriod.prototype,"language",2);n([l.property({type:Object,attribute:"slot-content"})],exports.LuzmoDisplaySettingsPeriodOverPeriod.prototype,"slotContent",2);n([l.property({type:String,attribute:"period-over-period-type"})],exports.LuzmoDisplaySettingsPeriodOverPeriod.prototype,"periodOverPeriodUiType",2);n([l.property({type:Array,attribute:"linked-dataset-datetime-columns"})],exports.LuzmoDisplaySettingsPeriodOverPeriod.prototype,"linkedDatasetDatetimeColumns",2);n([l.query("#period-comparison")],exports.LuzmoDisplaySettingsPeriodOverPeriod.prototype,"_periodComparisonElement",2);n([l.query("#number-periods")],exports.LuzmoDisplaySettingsPeriodOverPeriod.prototype,"_numberPeriodsElement",2);n([l.query("#period-level")],exports.LuzmoDisplaySettingsPeriodOverPeriod.prototype,"_periodLevelElement",2);n([l.query("#offset-date-column")],exports.LuzmoDisplaySettingsPeriodOverPeriod.prototype,"_offsetDateColumnElement",2);n([l.query("#incomplete-periods")],exports.LuzmoDisplaySettingsPeriodOverPeriod.prototype,"_incompletePeriodsElement",2);n([l.state()],exports.LuzmoDisplaySettingsPeriodOverPeriod.prototype,"_periodComparison",2);n([l.state()],exports.LuzmoDisplaySettingsPeriodOverPeriod.prototype,"_rangeType",2);exports.LuzmoDisplaySettingsPeriodOverPeriod=n([t.localized()],exports.LuzmoDisplaySettingsPeriodOverPeriod);customElements.get("luzmo-display-settings-period-over-period")||customElements.define("luzmo-display-settings-period-over-period",exports.LuzmoDisplaySettingsPeriodOverPeriod);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LuzmoDisplaySettingsPeriodOverPeriod } from './display-settings-period-over-period';
|
|
2
|
-
declare global {
|
|
3
|
-
interface HTMLElementTagNameMap {
|
|
4
|
-
'luzmo-display-settings-period-over-period': LuzmoDisplaySettingsPeriodOverPeriod;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export { LuzmoDisplaySettingsPeriodOverPeriod } from './display-settings-period-over-period';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=[{key:"general",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",default:"donut",enum:["donut","pie"]}},{key:"slices.half",control:{type:"picker",default:"full",enum:["full","half"],parseValue:e=>e?"half":"full",toValue:e=>e==="half"}},{type:"divider"},{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0,calculateValue:({options:e})=>{var l,r;return((l=e==null?void 0:e.display)==null?void 0:l.legend)!==!1||((r=e==null?void 0:e.display)==null?void 0:r.categoryLabels)===!0},toOptions:({options:e,value:l})=>({...e,display:{...e.display,legend:l,categoryLabels:!1}})}},{key:"display.categoryLabels",control:{type:"radio-button-group",enum:["list","labels"],parseValue:e=>e?"labels":"list",toOptions:({options:e,value:l})=>({...e,display:{...e.display,categoryLabels:l==="labels",legend:l!=="labels"}})},visibleIf:({options:e})=>{var l,r;return((l=e==null?void 0:e.display)==null?void 0:l.legend)!==!1||((r=e==null?void 0:e.display)==null?void 0:r.categoryLabels)===!0}}]},{key:"slices",type:"group",open:!0,children:[{key:"sort.by",control:{type:"picker",default:"measure",enum:["measure","category"]}},{key:"display.values",control:{type:"picker",default:"none",enum:["none","absolute","percentage"]}},{key:"slices.width",control:{type:"slider",default:.35,min:.05,max:.9,step:.01}},{key:"slices.maxNumber",control:{type:"number-field",default:12,min:0,max:50,step:1}},{key:"slices.minPercentage",control:{type:"number-field",default:3,min:0,max:100,step:1}},{key:"slices.roundedCorners",control:{type:"slider",default:8,min:0,max:24,step:1,extraLabel:({options:e,theme:l})=>{var r,a;if(typeof((r=l==null?void 0:l.itemSpecific)==null?void 0:r.rounding)=="number")return typeof((a=e==null?void 0:e.slices)==null?void 0:a.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var r,a;return!(typeof((r=l==null?void 0:l.itemSpecific)==null?void 0:r.rounding)!="number"||typeof((a=e==null?void 0:e.slices)==null?void 0:a.roundedCorners)!="number")},extraLabelClickAction:({options:e})=>{var r;const l={...e};return((r=l==null?void 0:l.slices)==null?void 0:r.roundedCorners)!==void 0&&delete l.slices.roundedCorners,{value:null,options:l}}}},{key:"slices.padding",control:{type:"slider",default:5,min:0,max:20,step:1,extraLabel:({options:e,theme:l})=>{var r,a;if(typeof((r=l==null?void 0:l.itemSpecific)==null?void 0:r.padding)=="number")return typeof((a=e==null?void 0:e.slices)==null?void 0:a.padding)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var r,a;return!(typeof((r=l==null?void 0:l.itemSpecific)==null?void 0:r.padding)!="number"||typeof((a=e==null?void 0:e.slices)==null?void 0:a.padding)!="number")},extraLabelClickAction:({options:e})=>{var r;const l={...e};return((r=l==null?void 0:l.slices)==null?void 0:r.padding)!==void 0&&delete l.slices.padding,{value:null,options:l}}}}]}];exports.default=u;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"Ringdiagramm",groups:{general:{label:"Allgemein"},slices:{label:"Segmente"},legend:{label:"Legende"},annotate:{label:"Anmerkungen"}},options:{"display.title":{label:"Titel"},mode:{label:"Modus",enum:{pie:"Kreisdiagramm",donut:"Ringdiagramm"}},"display.legend":{label:"Legende"},"slices.half":{label:"Typ",enum:{full:"Vollständig",half:"Halbkreis"}},"display.categoryLabels":{label:"Kategorie-Beschriftungen",enum:{list:"Liste",labels:"Beschriftungen"}},"sort.by":{label:"Sortieren nach",enum:{measure:"Messwert",category:"Kategorie"}},"display.values":{label:"Werte anzeigen",tooltip:"Falls genügend Platz vorhanden",enum:{none:"Keine",absolute:"Absolut",percentage:"Prozent"}},"slices.width":{label:"Breite"},"slices.maxNumber":{label:"Max. Anzahl Segmente"},"slices.minPercentage":{label:"Segmente gruppieren < %"},"slices.roundedCorners":{label:"Abgerundete Ecken"},"slices.padding":{label:"Abstand"}}};exports.default=e;
|