@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,85 +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";var v=Object.getPrototypeOf;var m=Reflect.get;var h=(u,e,o)=>m(v(u),o,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("@luzmo/icons");require("@luzmo/lucero/action-button");require("@luzmo/lucero/color-field");require("@luzmo/lucero/color-picker");require("@luzmo/lucero/icon");require("@luzmo/lucero/number-field");require("@luzmo/lucero/text-field");const s=require("lit"),i=require("lit/decorators.js"),b=require("../extrapolate-color-0j_AeYkz.cjs"),f=require("../edit-option-base-VhTih9T1.cjs"),y=':host{--luzmo-swatch-size: 14px}.luzmo-edit-option{height:fit-content;align-items:start}.control-container{align-items:start;flex-grow:1}.color-range-line{display:flex;align-items:center}luzmo-color-field,luzmo-number-field{flex-grow:1}.color-range-lines-container,.color-range-lines{flex-grow:1;display:flex;flex-direction:column;gap:var(--luzmo-edit-option-color-range-ranges-gap, var(--color-ranges-gap))}.color-range-lines{width:100%}.extra-label{height:var(--edit-option-component-height);display:flex;align-items:center}.color-range-percentage-value{padding-inline-start:var(--luzmo-edit-option-color-range-color-swatch-to-percentage, var(--color-swatch-to-percentage));padding-inline-end:var(--luzmo-edit-option-color-range-percentage-to-input-field, var(--percentage-to-input-field))}luzmo-color-picker{position:relative}luzmo-color-picker:not(:has(+.color-range-percentage-value)){padding-inline-end:var(--luzmo-edit-option-color-range-color-swatch-to-input-field, var(--color-swatch-to-input-field))}luzmo-number-field:has(+luzmo-action-button),luzmo-color-field:has(+luzmo-action-button){padding-inline-end:var(--luzmo-edit-option-color-range-input-field-to-button, var(--input-field-to-button))}luzmo-color-picker:before{box-sizing:border-box;content:"";position:absolute;top:var(--color-range-connector-top);left:var(--color-range-connector-left);height:var(--color-range-connector-height);width:var(--color-range-connector-width);background:var(--range-color);border:var(--luzmo-edit-option-color-range-connector-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-color-range-connector-border-color, var(--luzmo-border-color));border-top:0;border-bottom:0;z-index:-1}:host([reverse]) luzmo-color-picker:before{top:var(--color-range-reverse-connector-top)}.color-range-lines:not(.edit-range-size) .color-range-line:last-child luzmo-color-picker:before{display:none}.color-range-add-value-container{height:var(--color-range-input-field-height);display:flex;align-items:center;justify-content:start}.color-range-add-value{box-sizing:border-box;display:flex;position:relative;align-items:center;justify-content:center;width:var(--luzmo-edit-option-color-range-add-value-width, var(--luzmo-swatch-size));height:var(--luzmo-edit-option-color-range-add-value-height, var(--luzmo-swatch-size));border-width:var(--luzmo-edit-option-color-range-add-value-border-width, var(--luzmo-border-width));border-style:solid;border-color:var(--luzmo-edit-option-color-range-add-value-border-color, var(--luzmo-primary));border-radius:var(--luzmo-edit-option-color-range-add-value-border-radius, 50%);background-color:var(--luzmo-edit-option-color-range-add-value-background-color, var(--luzmo-background-color));cursor:pointer;color:var(--luzmo-edit-option-color-range-add-value-color, var(--luzmo-primary))}.color-range-add-value .plus-sign{position:absolute;top:0;left:0;width:100%;height:100%}.color-range-add-value .plus-sign:before{content:" ";position:absolute;display:block;background-color:var(--luzmo-edit-option-color-range-add-value-color, var(--luzmo-primary));height:var(--add-color-range-plus-size);width:var(--luzmo-edit-option-color-range-add-color-range-plus-sign-border-width, var(--add-color-range-plus-sign-border-width));top:calc((var(--luzmo-edit-option-color-range-add-color-range-size, var(--add-color-range-size)) - var(--add-color-range-plus-size)) / 2 - var(--luzmo-edit-option-color-range-add-value-border-width, var(--luzmo-border-width)));left:calc((var(--luzmo-edit-option-color-range-add-color-range-size, var(--add-color-range-size)) - var(--luzmo-edit-option-color-range-add-color-range-plus-sign-border-width, var(--add-color-range-plus-sign-border-width))) / 2 - var(--luzmo-edit-option-color-range-add-value-border-width, var(--luzmo-border-width)));z-index:1}.color-range-add-value .plus-sign:after{content:" ";position:absolute;display:block;background-color:var(--luzmo-edit-option-color-range-add-value-color, var(--luzmo-primary));width:var(--add-color-range-plus-size);height:var(--luzmo-edit-option-color-range-add-color-range-plus-sign-border-width, var(--add-color-range-plus-sign-border-width));left:calc((var(--luzmo-edit-option-color-range-add-color-range-size, var(--add-color-range-size)) - var(--add-color-range-plus-size)) / 2 - var(--luzmo-edit-option-color-range-add-value-border-width, var(--luzmo-border-width)));top:calc((var(--luzmo-edit-option-color-range-add-color-range-size, var(--add-color-range-size)) - var(--luzmo-edit-option-color-range-add-color-range-plus-sign-border-width, var(--add-color-range-plus-sign-border-width))) / 2 - var(--luzmo-edit-option-color-range-add-value-border-width, var(--luzmo-border-width)));z-index:1}.color-range-add-value:hover{background-color:var(--luzmo-edit-option-color-range-add-value-background-color-hover, var(--luzmo-background-color-hover));color:var(--luzmo-edit-option-color-range-add-value-color-hover, var(--luzmo-primary-hover))}.color-range-add-value[focused],.color-range-add-value:focus-visible{outline:none;background-color:var(--luzmo-edit-option-color-range-add-value-background-color-focus, var(--luzmo-background-color-focus));color:var(--luzmo-edit-option-color-range-add-value-color-focus, var(--luzmo-primary-focus))}.color-range-add-value[focused]:after,.color-range-add-value:focus-visible:after{content:"";inset:calc(var(--luzmo-edit-option-color-range-add-value-focus-indicator-gap, var(--add-value-focus-indicator-gap)) * -2);background-color:var(--luzmo-edit-option-color-range-add-value-focus-indicator-background-color, var(--luzmo-background-color));border-width:var(--luzmo-edit-option-color-range-add-value-focus-indicator-width, var(--add-value-focus-indicator-width));border-style:solid;border-color:var(--highcontrast-swatch-focus-indicator-color, var(--luzmo-edit-option-color-range-add-value-focus-indicator-color, var(--add-value-focus-indicator-color)));border-radius:var(--luzmo-edit-option-color-range-add-value-focus-indicator-border-radius, var(--add-value-focus-indicator-border-radius));transition:opacity var(--luzmo-animation-duration) ease-in-out;position:absolute;z-index:-1}:host{--luzmo-swatch-size: var(--color-range-swatch-size);--color-range-swatch-size: 16px;--color-ranges-gap: calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--color-range-connector-width: .25rem;--color-range-connector-height: calc( var(--color-range-input-field-height) + var(--color-ranges-gap) - var(--color-range-swatch-size) + var(--color-range-connector-width) );--color-range-connector-top: calc( var(--color-range-swatch-size) - (var(--color-range-connector-width) / 2) );--color-range-reverse-connector-top: calc( -1 * var(--color-range-connector-height) + (var(--color-range-connector-width) / 2) );--color-range-connector-left: calc( (var(--color-range-swatch-size) - var(--color-range-connector-width)) / 2 );--color-range-input-field-height: var(--luzmo-component-height);--add-color-range-size: var(--color-range-swatch-size);--add-color-range-plus-size: 8px;--add-color-range-plus-sign-border-width: 2px;--add-value-focus-indicator-border-radius: 50%;--add-value-focus-indicator-gap: 3px;--add-value-focus-indicator-width: 1px;--add-value-focus-indicator-color: var(--luzmo-primary);--color-swatch-to-percentage: var(--luzmo-spacing-4);--color-swatch-to-input-field: var(--luzmo-spacing-4);--percentage-to-input-field: var(--luzmo-spacing-4);--input-field-to-button: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) )}:host([size=s]){--color-range-swatch-size: 14px;--color-range-input-field-height: var(--luzmo-component-height-s);--color-ranges-gap: var(--luzmo-spacing-2);--add-color-range-plus-size: 6px;--add-color-range-plus-sign-border-width: 2px;--color-swatch-to-percentage: var(--luzmo-spacing-3);--color-swatch-to-input-field: var(--luzmo-spacing-3);--percentage-to-input-field: var(--luzmo-spacing-3);--input-field-to-button: var(--luzmo-spacing-2)}:host([size=l]){--color-range-swatch-size: 18px;--color-range-input-field-height: var(--luzmo-component-height-l);--color-ranges-gap: calc(var(--luzmo-spacing-2) + var(--luzmo-spacing-1));--add-color-range-plus-size: 10px;--color-swatch-to-percentage: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--color-swatch-to-input-field: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--percentage-to-input-field: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--input-field-to-button: var(--luzmo-spacing-3)}:host([size=xl]){--color-range-swatch-size: 20px;--color-range-input-field-height: var(--luzmo-component-height-xl);--color-ranges-gap: var(--luzmo-spacing-3);--add-color-range-plus-size: 10px;--color-swatch-to-percentage: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--color-swatch-to-input-field: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--percentage-to-input-field: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--input-field-to-button: var(--luzmo-spacing-4)}';var w=Object.defineProperty,n=(u,e,o,t)=>{for(var r=void 0,c=u.length-1,l;c>=0;c--)(l=u[c])&&(r=l(e,o,r)||r);return r&&w(e,o,r),r};const d=class d extends f.LuzmoEditOptionBase{constructor(){super(...arguments),this.disabled=!1,this.percentage=!1,this.noAlphaChannel=!1,this.editRangeSize=!1,this.noValues=!1,this.minimumRangeSize=2,this.negativeInfinityValue=!1,this.readOnlyColorPicker=!1,this.reverse=!1,this.debounce=100,this._ranges=[]}willUpdate(e){super.willUpdate(e),e.has("value")&&(this._ranges=typeof this.parseValue=="function"?this.parseValue(this.value??this.default??[]):this.value??this.default??[]),this.negativeInfinityValue&&(this._ranges=[{color:this._ranges[0].color,value:-1/0},...this._ranges.slice(1)])}_handleChangeEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(this._ranges):this._ranges}}))},this.debounce??200)}_getIndex(e){var t,r;let o=[...this.colorRangeLines].indexOf((t=e==null?void 0:e.target)==null?void 0:t.closest(".color-range-line"));return this.reverse&&(o=(((r=this._ranges)==null?void 0:r.length)??0)-1-o),o}_extrapolateNewValue(e){if(e.length<2)return 0;const o=e.at(-1),t=e.at(-2),r=(o??0)-(t??0);return(o??0)+r}_setColor(e){var r;const o=this._getIndex(e),t=e.target.color??e.target.value;(r=this._ranges)!=null&&r[o]&&(this._ranges[o].color=String(t)),this._ranges=structuredClone(this._ranges),this._handleChangeEvent()}_setNumber(e){var r;const o=this._getIndex(e),t=e.target.value;(r=this._ranges)!=null&&r[o]&&(this._ranges[o].value=t),this._ranges=structuredClone(this._ranges.sort((c,l)=>((c==null?void 0:c.value)??0)-((l==null?void 0:l.value)??0))),this._handleChangeEvent()}_removeRangeValue(e){var t;const o=this._getIndex(e);(t=this._ranges)==null||t.splice(o,1),this._ranges=structuredClone(this._ranges),this._handleChangeEvent()}_addRangeValue(){var t,r,c;const e=b.extrapolateNewColor(((t=this._ranges)==null?void 0:t.map(l=>l.color))??[]),o=this._extrapolateNewValue(((r=this._ranges)==null?void 0:r.map(l=>l.value??0))??[]);(c=this._ranges)==null||c.push({color:e,value:o}),this._ranges=structuredClone(this._ranges),this._handleChangeEvent()}renderRangeValues(){const e=(r,c,l,g)=>{var p;return s.html`
|
|
21
|
-
<div class="color-range-line" style="--range-color: ${r}">
|
|
22
|
-
<luzmo-color-picker
|
|
23
|
-
.color=${r}
|
|
24
|
-
.debounce=${this.debounce}
|
|
25
|
-
?disabled=${this.disabled}
|
|
26
|
-
?no-alpha-channel=${this.noAlphaChannel}
|
|
27
|
-
?read-only=${this.readOnlyColorPicker}
|
|
28
|
-
@change=${this._setColor}
|
|
29
|
-
></luzmo-color-picker>
|
|
30
|
-
${this.percentage?s.html`<div class="color-range-percentage-value">%</div>`:s.html``}
|
|
31
|
-
${this.noValues?s.html` <luzmo-color-field
|
|
32
|
-
.value=${r}
|
|
33
|
-
.size=${this.size}
|
|
34
|
-
.debounce=${this.debounce}
|
|
35
|
-
?no-alpha-channel=${this.noAlphaChannel}
|
|
36
|
-
?disabled=${this.disabled}
|
|
37
|
-
@change=${this._setColor}
|
|
38
|
-
></luzmo-color-field>`:l?s.html` <luzmo-text-field
|
|
39
|
-
.value=${"< "+(g??0)}
|
|
40
|
-
.size=${this.size}
|
|
41
|
-
readonly
|
|
42
|
-
></luzmo-text-field>`:s.html` <luzmo-number-field
|
|
43
|
-
.value=${c??0}
|
|
44
|
-
.size=${this.size}
|
|
45
|
-
.debounce=${this.debounce}
|
|
46
|
-
?disabled=${this.disabled}
|
|
47
|
-
@change=${this._setNumber}
|
|
48
|
-
></luzmo-number-field>`}
|
|
49
|
-
${this.editRangeSize&&!this.disabled&&!l&&(((p=this._ranges)==null?void 0:p.length)??0)>this.minimumRangeSize?s.html`<luzmo-action-button
|
|
50
|
-
quiet
|
|
51
|
-
.size=${this.size}
|
|
52
|
-
@click=${this._removeRangeValue}
|
|
53
|
-
>
|
|
54
|
-
<luzmo-icon
|
|
55
|
-
slot="icon"
|
|
56
|
-
.size=${this.size}
|
|
57
|
-
.icon=${z.luzmoTrashOutline}
|
|
58
|
-
></luzmo-icon>
|
|
59
|
-
</luzmo-action-button>`:s.html``}
|
|
60
|
-
</div>
|
|
61
|
-
`};let o=this._ranges??this.default??[];this.reverse&&(o=[...o].reverse());const t=o.map(({color:r,value:c},l)=>{var g;return e(r,c,l===0&&this.negativeInfinityValue,l===0&&this.negativeInfinityValue?(g=o[1])==null?void 0:g.value:void 0)});return s.html`
|
|
62
|
-
<div class="color-range-lines-container">
|
|
63
|
-
${this.editRangeSize&&!this.disabled&&this.reverse?s.html`<div class="color-range-add-value-container">
|
|
64
|
-
<button
|
|
65
|
-
class="color-range-add-value"
|
|
66
|
-
@click=${this._addRangeValue}
|
|
67
|
-
>
|
|
68
|
-
<div class="plus-sign"></div>
|
|
69
|
-
</button>
|
|
70
|
-
</div>`:s.html``}
|
|
71
|
-
<div
|
|
72
|
-
class="color-range-lines ${this.editRangeSize&&!this.disabled?"edit-range-size":""}"
|
|
73
|
-
>
|
|
74
|
-
${t}
|
|
75
|
-
</div>
|
|
76
|
-
${this.editRangeSize&&!this.disabled&&!this.reverse?s.html`<div class="color-range-add-value-container">
|
|
77
|
-
<button
|
|
78
|
-
class="color-range-add-value"
|
|
79
|
-
@click=${this._addRangeValue}
|
|
80
|
-
>
|
|
81
|
-
<div class="plus-sign"></div>
|
|
82
|
-
</button>
|
|
83
|
-
</div>`:s.html``}
|
|
84
|
-
</div>
|
|
85
|
-
`}renderController(){return this.renderRangeValues()}};d.styles=[h(d,d,"styles"),s.unsafeCSS(y)];let a=d;n([i.property({type:Array,reflect:!0})],a.prototype,"value");n([i.property({type:Array,reflect:!0})],a.prototype,"default");n([i.property({type:Boolean,reflect:!0})],a.prototype,"disabled");n([i.property({type:Boolean})],a.prototype,"percentage");n([i.property({type:Boolean,attribute:"no-alpha-channel"})],a.prototype,"noAlphaChannel");n([i.property({type:Boolean,attribute:"edit-range-size"})],a.prototype,"editRangeSize");n([i.property({type:Boolean,attribute:"no-values"})],a.prototype,"noValues");n([i.property({type:Number,reflect:!0,attribute:"minimum-range-size"})],a.prototype,"minimumRangeSize");n([i.property({type:Boolean,reflect:!0,attribute:"negative-infinity-value"})],a.prototype,"negativeInfinityValue");n([i.property({type:Boolean,attribute:"read-only-color-picker"})],a.prototype,"readOnlyColorPicker");n([i.property({type:Boolean})],a.prototype,"reverse");n([i.property({type:Number,reflect:!0})],a.prototype,"debounce");n([i.property()],a.prototype,"parseValue");n([i.property()],a.prototype,"toValue");n([i.queryAll(".color-range-line")],a.prototype,"colorRangeLines");n([i.state()],a.prototype,"_ranges");customElements.get("luzmo-edit-option-color-range")||customElements.define("luzmo-edit-option-color-range",a);exports.LuzmoEditOptionColorRange=a;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LuzmoEditOptionColorRange } from './edit-option-color-range';
|
|
2
|
-
declare global {
|
|
3
|
-
interface HTMLElementTagNameMap {
|
|
4
|
-
'luzmo-edit-option-color-range': LuzmoEditOptionColorRange;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export { LuzmoEditOptionColorRange } from './edit-option-color-range';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import '@luzmo/lucero/multi-language-field';
|
|
2
|
-
import { LuzmoEditOptionBase } from '../edit-option-base/edit-option-base';
|
|
3
|
-
export declare class LuzmoEditOptionMultiLangField extends LuzmoEditOptionBase {
|
|
4
|
-
static styles: import("lit").CSSResultArray[];
|
|
5
|
-
value: Record<string, string>;
|
|
6
|
-
invalid: boolean;
|
|
7
|
-
readonly: boolean;
|
|
8
|
-
language?: string;
|
|
9
|
-
placeholder?: Record<string, string>;
|
|
10
|
-
parseValue?: (value: any, language: string) => any;
|
|
11
|
-
toValue?: (value: any, language: string) => any;
|
|
12
|
-
debounce: number;
|
|
13
|
-
private multiLangFieldElement;
|
|
14
|
-
debounceTimeout: any;
|
|
15
|
-
private _handleEvent;
|
|
16
|
-
protected renderController(): import("lit-html").TemplateResult<1>;
|
|
17
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LuzmoEditOptionMultiLangField } from './edit-option-multi-language-field';
|
|
2
|
-
declare global {
|
|
3
|
-
interface HTMLElementTagNameMap {
|
|
4
|
-
'luzmo-edit-option-multi-language-field': LuzmoEditOptionMultiLangField;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export { LuzmoEditOptionMultiLangField } from './edit-option-multi-language-field';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import '@luzmo/lucero/number-field';
|
|
2
|
-
import { LuzmoEditOptionBase } from '../edit-option-base/edit-option-base';
|
|
3
|
-
export declare class LuzmoEditOptionNumberField extends LuzmoEditOptionBase {
|
|
4
|
-
static styles: import("lit").CSSResultArray[];
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
min?: number;
|
|
7
|
-
max?: number;
|
|
8
|
-
default?: number;
|
|
9
|
-
value?: number;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
minWidthInputField?: string;
|
|
12
|
-
step: number;
|
|
13
|
-
unit: boolean;
|
|
14
|
-
debounce: number;
|
|
15
|
-
parseValue?: (value?: string | number) => number;
|
|
16
|
-
toValue?: (value?: number) => string | number | any;
|
|
17
|
-
private numberField;
|
|
18
|
-
debounceTimeout: any;
|
|
19
|
-
private _handleEvent;
|
|
20
|
-
protected renderController(): import("lit-html").TemplateResult<1>;
|
|
21
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LuzmoEditOptionNumberField } from './edit-option-number-field';
|
|
2
|
-
declare global {
|
|
3
|
-
interface HTMLElementTagNameMap {
|
|
4
|
-
'luzmo-edit-option-number-field': LuzmoEditOptionNumberField;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export { LuzmoEditOptionNumberField } from './edit-option-number-field';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Placement } from '@luzmo/lucero';
|
|
2
|
-
import '@luzmo/lucero/menu';
|
|
3
|
-
import '@luzmo/lucero/picker';
|
|
4
|
-
import { TemplateResult } from 'lit';
|
|
5
|
-
import { LuzmoEditOptionBase } from '../edit-option-base/edit-option-base';
|
|
6
|
-
export declare class LuzmoEditOptionPicker extends LuzmoEditOptionBase {
|
|
7
|
-
static styles: import("lit").CSSResultArray[];
|
|
8
|
-
values: Record<string, string>;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* @type {"top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end"}
|
|
12
|
-
* @attr
|
|
13
|
-
*/
|
|
14
|
-
placement: Placement;
|
|
15
|
-
value?: string;
|
|
16
|
-
parseValue?: (value: string | number | any) => string;
|
|
17
|
-
toValue?: (value: string) => string | number | any;
|
|
18
|
-
default?: string;
|
|
19
|
-
private _handleEvent;
|
|
20
|
-
private generateMenuItems;
|
|
21
|
-
protected renderController(): TemplateResult<1>;
|
|
22
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import '@luzmo/lucero/text-field';
|
|
2
|
-
import { LuzmoEditOptionBase } from '../edit-option-base/edit-option-base';
|
|
3
|
-
export declare class LuzmoEditOptionPositionPicker extends LuzmoEditOptionBase {
|
|
4
|
-
static styles: (import("lit").CSSResult | import("lit").CSSResultArray)[];
|
|
5
|
-
value?: string;
|
|
6
|
-
default: string;
|
|
7
|
-
positions?: string[];
|
|
8
|
-
readonly: boolean;
|
|
9
|
-
private _handleEvent;
|
|
10
|
-
private _handleClick;
|
|
11
|
-
protected willUpdate(): void;
|
|
12
|
-
protected renderController(): import("lit-html").TemplateResult<1>;
|
|
13
|
-
}
|
|
@@ -1,25 +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";var h=Object.getPrototypeOf;var k=Reflect.get;var u=(e,o,i)=>k(h(e),i,o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/text-field");const l=require("lit"),d=require("lit/decorators.js"),v=require("../edit-option-base-VhTih9T1.cjs"),b=":host{height:var(--luzmo-edit-option-position-picker-grid-height, var(--edit-option-position-picker-grid-height));display:flex;align-items:center}.luzmo-edit-option{height:var(--luzmo-edit-option-position-picker-grid-height, var(--edit-option-position-picker-grid-height))}.position-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--luzmo-edit-option-position-picker-grid-gap, var(--edit-option-position-picker-grid-gap));width:var(--luzmo-edit-option-position-picker-grid-width, var(--edit-option-position-picker-grid-width));box-sizing:border-box;border:.0625rem solid var(--luzmo-edit-option-position-picker-grid-border-color, var(--luzmo-border-color));padding:var(--luzmo-edit-option-position-picker-grid-padding, var(--edit-option-position-picker-grid-padding));border-radius:var(--luzmo-edit-option-position-picker-grid-border-radius, var(--edit-option-position-picker-grid-border-radius))}.position-item{width:100%;height:var(--luzmo-edit-option-position-picker-item-height, var(--edit-option-position-picker-item-height));box-sizing:border-box;border:.0625rem solid var(--luzmo-edit-option-position-picker-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-edit-option-position-picker-border-radius, var(--edit-option-position-picker-border-radius));background:var(--luzmo-edit-option-position-picker-background, var(--luzmo-background-color-highlight));transition:background-color var(--luzmo-edit-option-position-picker-animation-duration, var(--luzmo-animation-duration)) ease-in-out;cursor:pointer}.position-item:hover{background-color:var(--luzmo-edit-option-position-picker-background-hover, var(--luzmo-background-color-highlight-down))}.position-item.selected,.position-item.selected:hover,.position-item.selected:active,.position-item.selected:focus{background-color:var(--luzmo-edit-option-position-picker-background-selected, var(--luzmo-primary));transition:background-color var(--luzmo-edit-option-position-picker-selected-animation-duration, 0) ease-in-out}.position-item.position-item-not-allowed{opacity:0}:host{--edit-option-position-picker-grid-height: 7rem;--edit-option-position-picker-grid-width: 7rem;--edit-option-position-picker-border-radius: var(--luzmo-border-radius);--edit-option-position-picker-grid-border-radius: var(--luzmo-border-radius);--edit-option-position-picker-grid-padding: .25rem;--edit-option-position-picker-item-height: 1.75rem;--edit-option-position-picker-grid-gap: .25rem}:host([size=s]){--edit-option-position-picker-grid-height: 5.125rem;--edit-option-position-picker-grid-width: 5.625rem;--edit-option-position-picker-border-radius: var(--luzmo-border-radius);--edit-option-position-picker-grid-border-radius: var( --luzmo-border-radius-s );--edit-option-position-picker-grid-padding: .125rem;--edit-option-position-picker-item-height: 1.5rem;--edit-option-position-picker-grid-gap: .125rem}:host([size=l]){--edit-option-position-picker-grid-height: 8rem;--edit-option-position-picker-grid-width: 8rem;--edit-option-position-picker-border-radius: var(--luzmo-border-radius-l);--edit-option-position-picker-grid-border-radius: var( --luzmo-border-radius-l );--edit-option-position-picker-grid-padding: .3rem;--edit-option-position-picker-item-height: 2rem;--edit-option-position-picker-grid-gap: .25rem}:host([size=xl]){--edit-option-position-picker-grid-height: 9rem;--edit-option-position-picker-grid-width: 9rem;--edit-option-position-picker-border-radius: var(--luzmo-border-radius-xl);--edit-option-position-picker-grid-border-radius: var( --luzmo-border-radius-xl );--edit-option-position-picker-grid-padding: .375rem;--edit-option-position-picker-item-height: 2.25rem;--edit-option-position-picker-grid-gap: .275rem}";var z=Object.defineProperty,n=(e,o,i,s)=>{for(var r=void 0,a=e.length-1,c;a>=0;a--)(c=e[a])&&(r=c(o,i,r)||r);return r&&z(o,i,r),r};const m=["topLeft","top","topRight","left","center","right","bottomLeft","bottom","bottomRight"],g=m.filter(e=>e!=="center"),p=class p extends v.LuzmoEditOptionBase{constructor(){super(...arguments),this.default="topRight",this.positions=g,this.readonly=!1}_handleEvent(){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this.value}}))}_handleClick(o){var i;(i=this.positions)!=null&&i.includes(o)&&(this.value=o,this._handleEvent())}willUpdate(){this.value=this.value??this.default??"topRight",this.positions=this.positions??g}renderController(){const o=m.map(i=>{var s;return l.html`
|
|
21
|
-
<div
|
|
22
|
-
class="position-item ${(s=this.positions)!=null&&s.includes(i)?"position-item-allowed":"position-item-not-allowed"} ${this.value===i?"selected":""}"
|
|
23
|
-
@click=${this._handleClick.bind(this,i)}
|
|
24
|
-
></div>
|
|
25
|
-
`});return l.html` <div class="position-grid">${o}</div> `}};p.styles=[u(p,p,"styles"),l.unsafeCSS(b)];let t=p;n([d.property({type:String,reflect:!0})],t.prototype,"value");n([d.property({type:String,reflect:!0,attribute:"default-position"})],t.prototype,"default");n([d.property({type:Array,reflect:!0})],t.prototype,"positions");n([d.property({type:Boolean,reflect:!0})],t.prototype,"readonly");customElements.get("luzmo-edit-option-position-picker")||customElements.define("luzmo-edit-option-position-picker",t);exports.LuzmoEditOptionPositionPicker=t;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LuzmoEditOptionPositionPicker } from './edit-option-position-picker';
|
|
2
|
-
declare global {
|
|
3
|
-
interface HTMLElementTagNameMap {
|
|
4
|
-
'luzmo-edit-option-position-picker': LuzmoEditOptionPositionPicker;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export { LuzmoEditOptionPositionPicker } from './edit-option-position-picker';
|
package/components/edit-option-positions-number-field/edit-option-positions-number-field.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import '@luzmo/lucero/number-field';
|
|
2
|
-
import { CSSResultArray } from 'lit';
|
|
3
|
-
import { LuzmoEditOptionBase } from '../edit-option-base/edit-option-base';
|
|
4
|
-
export type Position = 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center';
|
|
5
|
-
export declare class LuzmoEditOptionPositionsNumberField extends LuzmoEditOptionBase {
|
|
6
|
-
static get styles(): CSSResultArray;
|
|
7
|
-
positions?: Position[];
|
|
8
|
-
values?: Record<Position, number | undefined>;
|
|
9
|
-
canSync?: boolean;
|
|
10
|
-
positionConfiguration?: Record<Position, {
|
|
11
|
-
min?: number;
|
|
12
|
-
max?: number;
|
|
13
|
-
step?: number;
|
|
14
|
-
default?: number;
|
|
15
|
-
}>;
|
|
16
|
-
invalid: boolean;
|
|
17
|
-
readonly: boolean;
|
|
18
|
-
debounce: number;
|
|
19
|
-
sync?: boolean;
|
|
20
|
-
syncedValue?: number;
|
|
21
|
-
debounceTimeout: any;
|
|
22
|
-
_positions: Position[][];
|
|
23
|
-
private _calculateSyncedValue;
|
|
24
|
-
toggleSync(): void;
|
|
25
|
-
private _handleEvent;
|
|
26
|
-
private _renderNumberField;
|
|
27
|
-
protected firstUpdated(): void;
|
|
28
|
-
protected willUpdate(): void;
|
|
29
|
-
protected renderController(): import("lit-html").TemplateResult<1>;
|
|
30
|
-
}
|
|
@@ -1,42 +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 z=require("@luzmo/icons");require("@luzmo/lucero/number-field");const p=require("lit"),u=require("lit/decorators.js"),$=require("../edit-option-base-VhTih9T1.cjs"),_=":host{--edit-option-positions-number-field-container-row-gap: var( --luzmo-spacing-2 );--edit-option-positions-number-field-container-column-gap: var( --luzmo-spacing-2 );--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height) * 1.5 )}:host([size=s]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-s) * 1.5 )}:host([size=l]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-l) * 1.5 )}:host([size=xl]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-xl) * 1.5 )}:host{--var: test}.positions-container{max-width:var(--luzmo-edit-option-positions-number-field-container-max-width, var(--edit-option-positions-number-field-container-max-width));display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);row-gap:var(--luzmo-edit-option-positions-number-field-container-row-gap, var(--edit-option-positions-number-field-container-row-gap));column-gap:var(--luzmo-edit-option-positions-number-field-container-column-gap, var(--edit-option-positions-number-field-container-column-gap))}.position,.sync-button{display:flex;align-items:center;justify-content:center}.sync-button{cursor:pointer}.sync-button[position=center].sync{border:var(--luzmo-edit-option-positions-number-field-sync-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-positions-number-field-sync-border-color, var(--luzmo-primary));border-radius:var(--luzmo-edit-option-positions-number-field-sync-border-radius, var(--luzmo-border-radius));height:var(--luzmo-edit-option-positions-number-field-sync-height, var(--edit-option-positions-number-field-sync-height))}.no-sync-center{border:var(--luzmo-edit-option-positions-number-field-no-sync-center-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-positions-number-field-no-sync-center-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-edit-option-positions-number-field-no-sync-center-border-radius, var(--luzmo-border-radius));height:var(--luzmo-edit-option-positions-number-field-sync-height, var(--edit-option-positions-number-field-sync-height));background-color:var(--luzmo-edit-option-positions-number-field-no-sync-center-background-color, var(--luzmo-background-color-highlight))}";var C=Object.defineProperty,a=(y,t,i,n)=>{for(var e=void 0,o=y.length-1,s;o>=0;o--)(s=y[o])&&(e=s(t,i,e)||e);return e&&C(t,i,e),e};class l extends $.LuzmoEditOptionBase{constructor(){super(...arguments),this.canSync=!0,this.invalid=!1,this.readonly=!1,this.debounce=200,this._positions=[["top-left","top","top-right"],["left","center","right"],["bottom-left","bottom","bottom-right"]]}static get styles(){return[p.unsafeCSS(_)]}_calculateSyncedValue(){var n;let t;const i={};return(n=this.positions)==null||n.forEach(e=>{var o,s,r;i[e]=((o=this.values)==null?void 0:o[e])??((r=(s=this.positionConfiguration)==null?void 0:s[e])==null?void 0:r.default)??0,t=typeof t=="number"&&i[e]?Math.min(t,i[e]):i[e]}),t}toggleSync(){if(this.sync=!this.sync,this.sync&&(this.syncedValue=this._calculateSyncedValue(),typeof this.syncedValue=="number")){this.values={...this.values};for(const t of this.positions??[])this.values[t]=this.syncedValue}}_handleEvent(t){const i=t.target.getAttribute("position"),n=t.target.value;let e={};if(!(!i||typeof n!="number")){if(this.canSync&&this.sync&&i==="center"){this.syncedValue=n;for(const o of this.positions??[])e[o]=n}else e={...this.values,[i]:n};this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var c;const o=Object.keys(this.values??{}),s=Object.keys(e);let r=!0;o.length!==s.length&&(r=!1);for(const d of o)((c=this.values)==null?void 0:c[d])!==e[d]&&(r=!1);r||(this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{values:{...e}}})),this.values=e)},this.debounce??200)}}_renderNumberField(t){var i,n,e,o,s,r,c,d,h,m,f;return(i=this.positions)!=null&&i.includes(t)||t==="center"?this.canSync&&(this.sync&&t!=="center"||!this.sync&&t==="center")?p.html`<div
|
|
21
|
-
class="sync-button ${this.sync?"":"sync"}"
|
|
22
|
-
position=${t}
|
|
23
|
-
@click=${this.toggleSync}
|
|
24
|
-
>
|
|
25
|
-
${z.luzmoIcon(z.luzmoLockOutline)}
|
|
26
|
-
</div>`:!this.canSync&&!((n=this.positions)!=null&&n.includes("center"))&&t==="center"?p.html`<div class="no-sync-center"></div>`:p.html`<div class="position">
|
|
27
|
-
<luzmo-number-field
|
|
28
|
-
position=${t}
|
|
29
|
-
.value=${this.sync&&this.canSync?this.syncedValue??0:((e=this.values)==null?void 0:e[t])??((s=(o=this.positionConfiguration)==null?void 0:o[t])==null?void 0:s.default)??0}
|
|
30
|
-
.disabled=${this.disabled}
|
|
31
|
-
.size=${this.size}
|
|
32
|
-
.min=${((c=(r=this.positionConfiguration)==null?void 0:r[t])==null?void 0:c.min)??0}
|
|
33
|
-
.max=${((h=(d=this.positionConfiguration)==null?void 0:d[t])==null?void 0:h.max)??100}
|
|
34
|
-
.step=${((f=(m=this.positionConfiguration)==null?void 0:m[t])==null?void 0:f.step)??1}
|
|
35
|
-
.invalid=${this.invalid}
|
|
36
|
-
@change=${this._handleEvent}
|
|
37
|
-
@input=${this._handleEvent}
|
|
38
|
-
>
|
|
39
|
-
</luzmo-number-field>
|
|
40
|
-
</div>`:p.html`<div class="position"></div>`}firstUpdated(){var t,i,n,e,o,s,r,c,d,h,m,f,b;if(this.canSync&&!((t=this.positions)!=null&&t.includes("center"))){const w=((i=this.values)==null?void 0:i.left)??((e=(n=this.positionConfiguration)==null?void 0:n.left)==null?void 0:e.default),v=((o=this.values)==null?void 0:o.top)??((r=(s=this.positionConfiguration)==null?void 0:s.top)==null?void 0:r.default),g=((c=this.values)==null?void 0:c.right)??((h=(d=this.positionConfiguration)==null?void 0:d.right)==null?void 0:h.default),S=((m=this.values)==null?void 0:m.bottom)??((b=(f=this.positionConfiguration)==null?void 0:f.bottom)==null?void 0:b.default);this.sync=w===v&&v===g&&g===S}else this.sync=!1}willUpdate(){this.positions||(this.positions=["top","right","bottom","left"])}renderController(){this._calculateSyncedValue();const t=this._positions.map(i=>{const n=i.map(e=>this._renderNumberField(e));return p.html`${n}`});return p.html`<div class="positions-container-wrapper">
|
|
41
|
-
<div class="positions-container">${t}</div>
|
|
42
|
-
</div>`}}a([u.property({type:Array,reflect:!0})],l.prototype,"positions");a([u.property({type:Object,reflect:!0})],l.prototype,"values");a([u.property({type:Boolean,reflect:!0,attribute:"can-sync"})],l.prototype,"canSync");a([u.property({type:Object})],l.prototype,"positionConfiguration");a([u.property({type:Boolean,reflect:!0})],l.prototype,"invalid");a([u.property({type:Boolean,reflect:!0})],l.prototype,"readonly");a([u.property({type:Number,reflect:!0})],l.prototype,"debounce");a([u.property({type:Boolean,reflect:!0})],l.prototype,"sync");a([u.state()],l.prototype,"syncedValue");customElements.get("luzmo-edit-option-positions-number-field")||customElements.define("luzmo-edit-option-positions-number-field",l);exports.LuzmoEditOptionPositionsNumberField=l;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LuzmoEditOptionPositionsNumberField } from './edit-option-positions-number-field';
|
|
2
|
-
declare global {
|
|
3
|
-
interface HTMLElementTagNameMap {
|
|
4
|
-
'luzmo-edit-option-positions-number-field': LuzmoEditOptionPositionsNumberField;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export { LuzmoEditOptionPositionsNumberField } from './edit-option-positions-number-field';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import '@luzmo/lucero/action-button';
|
|
2
|
-
import '@luzmo/lucero/action-group';
|
|
3
|
-
import { TemplateResult } from 'lit';
|
|
4
|
-
import { LuzmoEditOptionBase } from '../edit-option-base/edit-option-base';
|
|
5
|
-
export declare class LuzmoEditOptionRadioButtonGroup extends LuzmoEditOptionBase {
|
|
6
|
-
static styles: import("lit").CSSResultArray[];
|
|
7
|
-
values: Record<string, string>;
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
value: string;
|
|
10
|
-
default: string;
|
|
11
|
-
parseValue?: (value?: string | number | any) => string;
|
|
12
|
-
toValue?: (value?: string) => string | number | any;
|
|
13
|
-
private actionGroup;
|
|
14
|
-
debounceTimeout: any;
|
|
15
|
-
private generateRadioButtons;
|
|
16
|
-
private _handleEvent;
|
|
17
|
-
protected renderController(): TemplateResult<1>;
|
|
18
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LuzmoEditOptionRadioButtonGroup } from './edit-option-radio-button-group';
|
|
2
|
-
declare global {
|
|
3
|
-
interface HTMLElementTagNameMap {
|
|
4
|
-
'luzmo-edit-option-radio-button-group': LuzmoEditOptionRadioButtonGroup;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
export { LuzmoEditOptionRadioButtonGroup } from './edit-option-radio-button-group';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import '@luzmo/lucero/slider';
|
|
2
|
-
import { LuzmoEditOptionBase } from '../edit-option-base/edit-option-base';
|
|
3
|
-
export declare class LuzmoEditOptionSlider extends LuzmoEditOptionBase {
|
|
4
|
-
static styles: import("lit").CSSResultArray[];
|
|
5
|
-
value: number;
|
|
6
|
-
default: number;
|
|
7
|
-
min: number;
|
|
8
|
-
max: number;
|
|
9
|
-
step: number;
|
|
10
|
-
debounce: number;
|
|
11
|
-
parseValue?: (value?: string | number | any) => number;
|
|
12
|
-
toValue?: (value?: number) => string | number | any;
|
|
13
|
-
private _handleEvent;
|
|
14
|
-
protected renderController(): import("lit-html").TemplateResult<1>;
|
|
15
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import '@luzmo/lucero/switch';
|
|
2
|
-
import { LuzmoEditOptionBase } from '../edit-option-base/edit-option-base';
|
|
3
|
-
export declare class LuzmoEditOptionSwitch extends LuzmoEditOptionBase {
|
|
4
|
-
static styles: (import("lit").CSSResultOrNative | import("lit").CSSResultArray)[];
|
|
5
|
-
value?: boolean;
|
|
6
|
-
default?: boolean;
|
|
7
|
-
parseValue?: (value?: string | number | any) => boolean;
|
|
8
|
-
toValue?: (value?: boolean) => string | number | any;
|
|
9
|
-
private _handleEvent;
|
|
10
|
-
protected renderController(): import("lit-html").TemplateResult<1>;
|
|
11
|
-
}
|
|
@@ -1,30 +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";var c=Object.getPrototypeOf;var d=Reflect.get;var p=(e,t,s)=>d(c(e),s,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/switch");const f=require("lit"),i=require("lit/decorators.js"),h=require("../edit-option-base-VhTih9T1.cjs"),y=":host{--luzmo-switch-control-label-spacing: 0px}";var m=Object.defineProperty,u=(e,t,s,b)=>{for(var o=void 0,a=e.length-1,n;a>=0;a--)(n=e[a])&&(o=n(t,s,o)||o);return o&&m(t,s,o),o};const l=class l extends h.LuzmoEditOptionBase{_handleEvent(t){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(t.detail):t.detail}}))}renderController(){const t=typeof this.parseValue=="function"?this.parseValue(this.value):this.value,s=typeof this.parseValue=="function"?this.parseValue(this.default):this.default;return f.html`
|
|
21
|
-
<luzmo-switch
|
|
22
|
-
id="luzmo-edit-option-control"
|
|
23
|
-
thumb="overflow"
|
|
24
|
-
emphasized
|
|
25
|
-
.size=${this.size}
|
|
26
|
-
.checked=${t??s??!1}
|
|
27
|
-
.disabled=${this.disabled}
|
|
28
|
-
@change=${this._handleEvent}
|
|
29
|
-
></luzmo-switch>
|
|
30
|
-
`}};l.styles=[...p(l,l,"styles"),f.unsafeCSS(y)];let r=l;u([i.property({type:Boolean,converter:{fromAttribute:e=>{if(e==="false"||e===!1)return!1;if(e==="true"||e===!0)return!0}}})],r.prototype,"value");u([i.property({type:Boolean,converter:{fromAttribute:e=>{if(e==="false"||e===!1)return!1;if(e==="true"||e===!0)return!0}}})],r.prototype,"default");u([i.property()],r.prototype,"parseValue");u([i.property()],r.prototype,"toValue");customElements.get("luzmo-edit-option-switch")||customElements.define("luzmo-edit-option-switch",r);exports.LuzmoEditOptionSwitch=r;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import '@luzmo/lucero/text-field';
|
|
2
|
-
import { LuzmoEditOptionBase } from '../edit-option-base/edit-option-base';
|
|
3
|
-
export declare class LuzmoEditOptionTextField extends LuzmoEditOptionBase {
|
|
4
|
-
static styles: import("lit").CSSResultArray[];
|
|
5
|
-
value?: string;
|
|
6
|
-
invalid: boolean;
|
|
7
|
-
readonly: boolean;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
debounce: number;
|
|
10
|
-
private textFieldElement;
|
|
11
|
-
debounceTimeout: any;
|
|
12
|
-
_previousValue: string;
|
|
13
|
-
private _handleEvent;
|
|
14
|
-
protected renderController(): import("lit-html").TemplateResult<1>;
|
|
15
|
-
}
|
|
@@ -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";const L=require("./localize-r7ALOUy_.cjs"),mr=require("./decompose-numeric-format-B3rVVHpO.cjs");function sr(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function me(e,r){if((t=(e=r?e.toExponential(r-1):e.toExponential()).indexOf("e"))<0)return null;var t,n=e.slice(0,t);return[n.length>1?n[0]+n.slice(2):n,+e.slice(t+1)]}function cr(e){return e=me(Math.abs(e)),e?e[1]:NaN}function fr(e,r){return function(t,n){for(var i=t.length,u=[],m=0,T=e[0],D=0;i>0&&T>0&&(D+T+1>n&&(T=Math.max(1,n-D)),u.push(t.substring(i-=T,i+T)),!((D+=T+1)>n));)T=e[m=(m+1)%e.length];return u.reverse().join(r)}}function hr(e){return function(r){return r.replace(/[0-9]/g,function(t){return e[+t]})}}var yr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ve(e){if(!(r=yr.exec(e)))throw new Error("invalid format: "+e);var r;return new Se({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}ve.prototype=Se.prototype;function Se(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Se.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function gr(e){e:for(var r=e.length,t=1,n=-1,i;t<r;++t)switch(e[t]){case".":n=i=t;break;case"0":n===0&&(n=t),i=t;break;default:if(!+e[t])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Ve;function dr(e,r){var t=me(e,r);if(!t)return e+"";var n=t[0],i=t[1],u=i-(Ve=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,m=n.length;return u===m?n:u>m?n+new Array(u-m+1).join("0"):u>0?n.slice(0,u)+"."+n.slice(u):"0."+new Array(1-u).join("0")+me(e,Math.max(0,r+u-1))[0]}function be(e,r){var t=me(e,r);if(!t)return e+"";var n=t[0],i=t[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const we={"%":(e,r)=>(e*100).toFixed(r),b:e=>Math.round(e).toString(2),c:e=>e+"",d:sr,e:(e,r)=>e.toExponential(r),f:(e,r)=>e.toFixed(r),g:(e,r)=>e.toPrecision(r),o:e=>Math.round(e).toString(8),p:(e,r)=>be(e*100,r),r:be,s:dr,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Fe(e){return e}var ke=Array.prototype.map,xe=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Mr(e){var r=e.grouping===void 0||e.thousands===void 0?Fe:fr(ke.call(e.grouping,Number),e.thousands+""),t=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",u=e.numerals===void 0?Fe:hr(ke.call(e.numerals,String)),m=e.percent===void 0?"%":e.percent+"",T=e.minus===void 0?"−":e.minus+"",D=e.nan===void 0?"NaN":e.nan+"";function s(g){g=ve(g);var O=g.fill,l=g.align,h=g.sign,f=g.symbol,p=g.zero,c=g.width,F=g.comma,S=g.precision,w=g.trim,d=g.type;d==="n"?(F=!0,d="g"):we[d]||(S===void 0&&(S=12),w=!0,d="g"),(p||O==="0"&&l==="=")&&(p=!0,O="0",l="=");var b=f==="$"?t:f==="#"&&/[boxX]/.test(d)?"0"+d.toLowerCase():"",oe=f==="$"?n:/[%p]/.test(d)?m:"",R=we[d],ye=/[defgprs%]/.test(d);S=S===void 0?6:/[gprs]/.test(d)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function ie(M){var q=b,A=oe,I,le,Z;if(d==="c")A=R(M)+A,M="";else{M=+M;var j=M<0||1/M<0;if(M=isNaN(M)?D:R(Math.abs(M),S),w&&(M=gr(M)),j&&+M==0&&h!=="+"&&(j=!1),q=(j?h==="("?h:T:h==="-"||h==="("?"":h)+q,A=(d==="s"?xe[8+Ve/3]:"")+A+(j&&h==="("?")":""),ye){for(I=-1,le=M.length;++I<le;)if(Z=M.charCodeAt(I),48>Z||Z>57){A=(Z===46?i+M.slice(I+1):M.slice(I))+A,M=M.slice(0,I);break}}}F&&!p&&(M=r(M,1/0));var B=q.length+M.length+A.length,H=B<c?new Array(c-B+1).join(O):"";switch(F&&p&&(M=r(H+M,H.length?c-A.length:1/0),H=""),l){case"<":M=q+M+A+H;break;case"=":M=q+H+M+A;break;case"^":M=H.slice(0,B=H.length>>1)+q+M+A+H.slice(B);break;default:M=H+q+M+A;break}return u(M)}return ie.toString=function(){return g+""},ie}function C(g,O){var l=s((g=ve(g),g.type="f",g)),h=Math.max(-8,Math.min(8,Math.floor(cr(O)/3)))*3,f=Math.pow(10,-h),p=xe[8+h/3];return function(c){return l(f*c)+p}}return{format:s,formatPrefix:C}}const ge=new Date,de=new Date;function x(e,r,t,n){function i(u){return e(u=arguments.length===0?new Date:new Date(+u)),u}return i.floor=u=>(e(u=new Date(+u)),u),i.ceil=u=>(e(u=new Date(u-1)),r(u,1),e(u),u),i.round=u=>{const m=i(u),T=i.ceil(u);return u-m<T-u?m:T},i.offset=(u,m)=>(r(u=new Date(+u),m==null?1:Math.floor(m)),u),i.range=(u,m,T)=>{const D=[];if(u=i.ceil(u),T=T==null?1:Math.floor(T),!(u<m)||!(T>0))return D;let s;do D.push(s=new Date(+u)),r(u,T),e(u);while(s<u&&u<m);return D},i.filter=u=>x(m=>{if(m>=m)for(;e(m),!u(m);)m.setTime(m-1)},(m,T)=>{if(m>=m)if(T<0)for(;++T<=0;)for(;r(m,-1),!u(m););else for(;--T>=0;)for(;r(m,1),!u(m););}),t&&(i.count=(u,m)=>(ge.setTime(+u),de.setTime(+m),e(ge),e(de),Math.floor(t(ge,de))),i.every=u=>(u=Math.floor(u),!isFinite(u)||!(u>0)?null:u>1?i.filter(n?m=>n(m)%u===0:m=>i.count(0,m)%u===0):i)),i}const ne=1e3,V=ne*60,ae=V*60,ue=ae*24,Qe=ue*7,Re=x(e=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*ne)},(e,r)=>(r-e)/ne,e=>e.getUTCSeconds());Re.range;const $e=x(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ne)},(e,r)=>{e.setTime(+e+r*V)},(e,r)=>(r-e)/V,e=>e.getMinutes());$e.range;const Tr=x(e=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*V)},(e,r)=>(r-e)/V,e=>e.getUTCMinutes());Tr.range;const ze=x(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ne-e.getMinutes()*V)},(e,r)=>{e.setTime(+e+r*ae)},(e,r)=>(r-e)/ae,e=>e.getHours());ze.range;const vr=x(e=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*ae)},(e,r)=>(r-e)/ae,e=>e.getUTCHours());vr.range;const fe=x(e=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*V)/ue,e=>e.getDate()-1);fe.range;const De=x(e=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/ue,e=>e.getUTCDate()-1);De.range;const Yr=x(e=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/ue,e=>Math.floor(e/ue));Yr.range;function G(e){return x(r=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,t)=>{r.setDate(r.getDate()+t*7)},(r,t)=>(t-r-(t.getTimezoneOffset()-r.getTimezoneOffset())*V)/Qe)}const Ce=G(0),se=G(1),pr=G(2),Sr=G(3),X=G(4),Dr=G(5),Cr=G(6);Ce.range;se.range;pr.range;Sr.range;X.range;Dr.range;Cr.range;function P(e){return x(r=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,t)=>{r.setUTCDate(r.getUTCDate()+t*7)},(r,t)=>(t-r)/Qe)}const Ge=P(0),ce=P(1),Ur=P(2),br=P(3),K=P(4),wr=P(5),Fr=P(6);Ge.range;ce.range;Ur.range;br.range;K.range;wr.range;Fr.range;const Pe=x(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Pe.range;const kr=x(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());kr.range;const Q=x(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),e=>e.getFullYear());Q.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:x(r=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,t)=>{r.setFullYear(r.getFullYear()+t*e)});Q.range;const z=x(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());z.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:x(r=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,t)=>{r.setUTCFullYear(r.getUTCFullYear()+t*e)});z.range;function Me(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Te(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ee(e,r,t){return{y:e,m:r,d:t,H:0,M:0,S:0,L:0}}function Ye(e){var r=e.dateTime,t=e.date,n=e.time,i=e.periods,u=e.days,m=e.shortDays,T=e.months,D=e.shortMonths,s=re(i),C=te(i),g=re(u),O=te(u),l=re(m),h=te(m),f=re(T),p=te(T),c=re(D),F=te(D),S={a:j,A:B,b:H,B:er,c:null,d:He,e:He,f:Xr,g:lt,G:st,H:jr,I:Br,j:Jr,L:Ze,m:Kr,M:et,p:rr,q:tr,Q:Ee,s:Ie,S:rt,u:tt,U:nt,V:at,w:ut,W:ot,x:null,X:null,y:it,Y:mt,Z:ct,"%":qe},w={a:nr,A:ar,b:ur,B:or,c:null,d:Oe,e:Oe,f:gt,g:Ut,G:wt,H:ft,I:ht,j:yt,L:Be,m:dt,M:Mt,p:ir,q:lr,Q:Ee,s:Ie,S:Tt,u:vt,U:Yt,V:pt,w:St,W:Dt,x:null,X:null,y:Ct,Y:bt,Z:Ft,"%":qe},d={a:ie,A:M,b:q,B:A,c:I,d:Ne,e:Ne,f:zr,g:_e,G:We,H:Le,I:Le,j:Vr,L:$r,m:Ir,M:Qr,p:ye,q:Er,Q:Pr,s:Zr,S:Rr,u:Nr,U:Lr,V:Hr,w:_r,W:Or,x:le,X:Z,y:_e,Y:We,Z:qr,"%":Gr};S.x=b(t,S),S.X=b(n,S),S.c=b(r,S),w.x=b(t,w),w.X=b(n,w),w.c=b(r,w);function b(o,y){return function(v){var a=[],W=-1,U=0,_=o.length,N,$,Ue;for(v instanceof Date||(v=new Date(+v));++W<_;)o.charCodeAt(W)===37&&(a.push(o.slice(U,W)),($=Ae[N=o.charAt(++W)])!=null?N=o.charAt(++W):$=N==="e"?" ":"0",(Ue=y[N])&&(N=Ue(v,$)),a.push(N),U=W+1);return a.push(o.slice(U,W)),a.join("")}}function oe(o,y){return function(v){var a=ee(1900,void 0,1),W=R(a,o,v+="",0),U,_;if(W!=v.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(a.s*1e3+("L"in a?a.L:0));if(y&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+a.p*12),a.m===void 0&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(U=Te(ee(a.y,0,1)),_=U.getUTCDay(),U=_>4||_===0?ce.ceil(U):ce(U),U=De.offset(U,(a.V-1)*7),a.y=U.getUTCFullYear(),a.m=U.getUTCMonth(),a.d=U.getUTCDate()+(a.w+6)%7):(U=Me(ee(a.y,0,1)),_=U.getDay(),U=_>4||_===0?se.ceil(U):se(U),U=fe.offset(U,(a.V-1)*7),a.y=U.getFullYear(),a.m=U.getMonth(),a.d=U.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),_="Z"in a?Te(ee(a.y,0,1)).getUTCDay():Me(ee(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+a.W*7-(_+5)%7:a.w+a.U*7-(_+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Te(a)):Me(a)}}function R(o,y,v,a){for(var W=0,U=y.length,_=v.length,N,$;W<U;){if(a>=_)return-1;if(N=y.charCodeAt(W++),N===37){if(N=y.charAt(W++),$=d[N in Ae?y.charAt(W++):N],!$||(a=$(o,v,a))<0)return-1}else if(N!=v.charCodeAt(a++))return-1}return a}function ye(o,y,v){var a=s.exec(y.slice(v));return a?(o.p=C.get(a[0].toLowerCase()),v+a[0].length):-1}function ie(o,y,v){var a=l.exec(y.slice(v));return a?(o.w=h.get(a[0].toLowerCase()),v+a[0].length):-1}function M(o,y,v){var a=g.exec(y.slice(v));return a?(o.w=O.get(a[0].toLowerCase()),v+a[0].length):-1}function q(o,y,v){var a=c.exec(y.slice(v));return a?(o.m=F.get(a[0].toLowerCase()),v+a[0].length):-1}function A(o,y,v){var a=f.exec(y.slice(v));return a?(o.m=p.get(a[0].toLowerCase()),v+a[0].length):-1}function I(o,y,v){return R(o,r,y,v)}function le(o,y,v){return R(o,t,y,v)}function Z(o,y,v){return R(o,n,y,v)}function j(o){return m[o.getDay()]}function B(o){return u[o.getDay()]}function H(o){return D[o.getMonth()]}function er(o){return T[o.getMonth()]}function rr(o){return i[+(o.getHours()>=12)]}function tr(o){return 1+~~(o.getMonth()/3)}function nr(o){return m[o.getUTCDay()]}function ar(o){return u[o.getUTCDay()]}function ur(o){return D[o.getUTCMonth()]}function or(o){return T[o.getUTCMonth()]}function ir(o){return i[+(o.getUTCHours()>=12)]}function lr(o){return 1+~~(o.getUTCMonth()/3)}return{format:function(o){var y=b(o+="",S);return y.toString=function(){return o},y},parse:function(o){var y=oe(o+="",!1);return y.toString=function(){return o},y},utcFormat:function(o){var y=b(o+="",w);return y.toString=function(){return o},y},utcParse:function(o){var y=oe(o+="",!0);return y.toString=function(){return o},y}}}var Ae={"-":"",_:" ",0:"0"},k=/^\s*\d+/,xr=/^%/,Ar=/[\\^$*+?|[\]().{}]/g;function Y(e,r,t){var n=e<0?"-":"",i=(n?-e:e)+"",u=i.length;return n+(u<t?new Array(t-u+1).join(r)+i:i)}function Wr(e){return e.replace(Ar,"\\$&")}function re(e){return new RegExp("^(?:"+e.map(Wr).join("|")+")","i")}function te(e){return new Map(e.map((r,t)=>[r.toLowerCase(),t]))}function _r(e,r,t){var n=k.exec(r.slice(t,t+1));return n?(e.w=+n[0],t+n[0].length):-1}function Nr(e,r,t){var n=k.exec(r.slice(t,t+1));return n?(e.u=+n[0],t+n[0].length):-1}function Lr(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.U=+n[0],t+n[0].length):-1}function Hr(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.V=+n[0],t+n[0].length):-1}function Or(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.W=+n[0],t+n[0].length):-1}function We(e,r,t){var n=k.exec(r.slice(t,t+4));return n?(e.y=+n[0],t+n[0].length):-1}function _e(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),t+n[0].length):-1}function qr(e,r,t){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(t,t+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),t+n[0].length):-1}function Er(e,r,t){var n=k.exec(r.slice(t,t+1));return n?(e.q=n[0]*3-3,t+n[0].length):-1}function Ir(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.m=n[0]-1,t+n[0].length):-1}function Ne(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.d=+n[0],t+n[0].length):-1}function Vr(e,r,t){var n=k.exec(r.slice(t,t+3));return n?(e.m=0,e.d=+n[0],t+n[0].length):-1}function Le(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.H=+n[0],t+n[0].length):-1}function Qr(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.M=+n[0],t+n[0].length):-1}function Rr(e,r,t){var n=k.exec(r.slice(t,t+2));return n?(e.S=+n[0],t+n[0].length):-1}function $r(e,r,t){var n=k.exec(r.slice(t,t+3));return n?(e.L=+n[0],t+n[0].length):-1}function zr(e,r,t){var n=k.exec(r.slice(t,t+6));return n?(e.L=Math.floor(n[0]/1e3),t+n[0].length):-1}function Gr(e,r,t){var n=xr.exec(r.slice(t,t+1));return n?t+n[0].length:-1}function Pr(e,r,t){var n=k.exec(r.slice(t));return n?(e.Q=+n[0],t+n[0].length):-1}function Zr(e,r,t){var n=k.exec(r.slice(t));return n?(e.s=+n[0],t+n[0].length):-1}function He(e,r){return Y(e.getDate(),r,2)}function jr(e,r){return Y(e.getHours(),r,2)}function Br(e,r){return Y(e.getHours()%12||12,r,2)}function Jr(e,r){return Y(1+fe.count(Q(e),e),r,3)}function Ze(e,r){return Y(e.getMilliseconds(),r,3)}function Xr(e,r){return Ze(e,r)+"000"}function Kr(e,r){return Y(e.getMonth()+1,r,2)}function et(e,r){return Y(e.getMinutes(),r,2)}function rt(e,r){return Y(e.getSeconds(),r,2)}function tt(e){var r=e.getDay();return r===0?7:r}function nt(e,r){return Y(Ce.count(Q(e)-1,e),r,2)}function je(e){var r=e.getDay();return r>=4||r===0?X(e):X.ceil(e)}function at(e,r){return e=je(e),Y(X.count(Q(e),e)+(Q(e).getDay()===4),r,2)}function ut(e){return e.getDay()}function ot(e,r){return Y(se.count(Q(e)-1,e),r,2)}function it(e,r){return Y(e.getFullYear()%100,r,2)}function lt(e,r){return e=je(e),Y(e.getFullYear()%100,r,2)}function mt(e,r){return Y(e.getFullYear()%1e4,r,4)}function st(e,r){var t=e.getDay();return e=t>=4||t===0?X(e):X.ceil(e),Y(e.getFullYear()%1e4,r,4)}function ct(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Y(r/60|0,"0",2)+Y(r%60,"0",2)}function Oe(e,r){return Y(e.getUTCDate(),r,2)}function ft(e,r){return Y(e.getUTCHours(),r,2)}function ht(e,r){return Y(e.getUTCHours()%12||12,r,2)}function yt(e,r){return Y(1+De.count(z(e),e),r,3)}function Be(e,r){return Y(e.getUTCMilliseconds(),r,3)}function gt(e,r){return Be(e,r)+"000"}function dt(e,r){return Y(e.getUTCMonth()+1,r,2)}function Mt(e,r){return Y(e.getUTCMinutes(),r,2)}function Tt(e,r){return Y(e.getUTCSeconds(),r,2)}function vt(e){var r=e.getUTCDay();return r===0?7:r}function Yt(e,r){return Y(Ge.count(z(e)-1,e),r,2)}function Je(e){var r=e.getUTCDay();return r>=4||r===0?K(e):K.ceil(e)}function pt(e,r){return e=Je(e),Y(K.count(z(e),e)+(z(e).getUTCDay()===4),r,2)}function St(e){return e.getUTCDay()}function Dt(e,r){return Y(ce.count(z(e)-1,e),r,2)}function Ct(e,r){return Y(e.getUTCFullYear()%100,r,2)}function Ut(e,r){return e=Je(e),Y(e.getUTCFullYear()%100,r,2)}function bt(e,r){return Y(e.getUTCFullYear()%1e4,r,4)}function wt(e,r){var t=e.getUTCDay();return e=t>=4||t===0?K(e):K.ceil(e),Y(e.getUTCFullYear()%1e4,r,4)}function Ft(){return"+0000"}function qe(){return"%"}function Ee(e){return+e}function Ie(e){return Math.floor(+e/1e3)}var J,E;kt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function kt(e){return J=Ye(e),E=J.format,J.parse,J.utcFormat,J.utcParse,J}const pe=[[1,4,12,52,365,365*24,365*24*60,365*24*60*60,365*24*60*60*1e3],[1/4,1,3,13,91,91*24,91*24*60,91*24*60*60,91*24*60*60*1e3],[1/12,1/3,1,4,30,30*24,30*24*60,30*24*60*60,30*24*60*60*1e3],[1/52,1/13,1/4,1,7,7*24,7*24*60,7*24*60*60,7*24*60*60*1e3],[1/365,1/91,1/30,1/7,1,24,24*60,24*60*60,24*60*60*1e3],[1/(365*24),1/(91*24),1/(30*24),1/(7*24),1/24,1,60,60*60,60*60*1e3],[1/(365*24*60),1/(91*24*60),1/(30*24*60),1/(7*24*60),1/(24*60),1/60,1,60,60*1e3],[1/(365*24*60*60),1/(91*24*60*60),1/(30*24*60*60),1/(7*24*60*60),1/(24*60*60),1/(60*60),1/60,1,1e3],[1/(365*24*60*60*1e3),1/(91*24*60*60*1e3),1/(30*24*60*60*1e3),1/(7*24*60*60*1e3),1/(24*60*60*1e3),1/(60*60*1e3),1/(60*1e3),1/1e3,1]];function xt(e,r,t){if(L.isEmpty(e))return;if(!r||!t||r===t)return e;const n=pe[r-1][t-1];if(n)return e*n}function At(e,r,t,n){if(L.isEmpty(e)||!r.lowestLevel||t.length===0)return"";const i=[];let u=0,m=Math.round(e*pe[r.lowestLevel-1][8]);const T=9;for(const[,s]of t.entries())if(e){m=m-u;const C=pe[s-1][T-1],g=Math.floor(m/C);u=g*C,i.push({level:s,value:g})}else i.push({level:s,value:0});let D="";for(const[s,C]of i.entries())if(r.duration.format==="time"){let g=C.value;[6,7,8].includes(C.level)&&C.value<10?g="0"+C.value.toString():C.level===9&&C.value<10?g="00"+C.value.toString():C.level===9&&C.value<100&&(g="0"+C.value.toString()),D+=(s===0?"":C.level===9?".":":")+g}else if(r.duration.format==="long"){const g=n.durationLongSuffix;D+=C.value+" "+g[C.level]+(s===i.length-1?"":" ")}else{const g=n.durationShortSuffix;D+=C.value+""+g[C.level]+(s===i.length-1?"":" ")}return D}const he={decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",dateSeparator:"/",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],levels:["All","Year","Quarter","Month","Week","Date","Hour","Minute","Second","Millisecond"],shortLevels:["All","Yr","Qtr","Mth","Wk","Date","Hr","Min","Sec","Msec"],durationLongSuffix:["","years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],durationShortSuffix:["","y","q","mo","w","d","h","m","s","ms"],multi:[".%L",":%S","%I:%M","%I %p","%a %d","W%G","%b %d","%B","%Y"]},Xe="%d-%m-%Y",Ke=[{key:"%a %e %b %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%b %Y",lev4:"Wk %V-%G",lev5:"%a %e %b %Y",monthType:"name",longText:!1,weekday:!0},{key:"%e %b %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%b %Y",lev4:"Wk %V-%G",lev5:"%e %b %Y",monthType:"name",longText:!1,weekday:!1},{key:"%a %e %B %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%B %Y",lev4:"Week %V, %G",lev5:"%a %e %B %Y",monthType:"name",longText:!0,weekday:!0},{key:"%e %B %Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%B %Y",lev4:"Week %V, %G",lev5:"%e %B %Y",monthType:"name",longText:!0,weekday:!1},{key:"%d/%m/%Y",lev1:"%Y",lev2:"Q%q/%Y",lev3:"%m/%Y",lev4:"W%V/%G",lev5:"%d/%m/%Y",monthType:"number",mmdd:!1,separator:"/"},{key:"%d-%m-%Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%m-%Y",lev4:"W%V-%G",lev5:"%d-%m-%Y",monthType:"number",mmdd:!1,separator:"-"},{key:"%d.%m.%Y",lev1:"%Y",lev2:"Q%q.%Y",lev3:"%m.%Y",lev4:"W%V.%G",lev5:"%d.%m.%Y",monthType:"number",mmdd:!1,separator:"."},{key:"%d~%m~%Y",lev1:"%Y",lev2:"Q%q~%Y",lev3:"%m~%Y",lev4:"W%V~%G",lev5:"%d~%m~%Y",monthType:"number",mmdd:!1,separator:"~"},{key:"%m/%d/%Y",lev1:"%Y",lev2:"Q%q/%Y",lev3:"%m/%Y",lev4:"%G/W%V",lev5:"%m/%d/%Y",monthType:"number",mmdd:!0,separator:"/"},{key:"%m-%d-%Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%m-%Y",lev4:"%G-W%V",lev5:"%m-%d-%Y",monthType:"number",mmdd:!0,separator:"-"},{key:"%m.%d.%Y",lev1:"%Y",lev2:"Q%q.%Y",lev3:"%m.%Y",lev4:"%G.W%V",lev5:"%m.%d.%Y",monthType:"number",mmdd:!0,separator:"."},{key:"%m~%d~%Y",lev1:"%Y",lev2:"Q%q~%Y",lev3:"%m~%Y",lev4:"%G~W%V",lev5:"%m~%d~%Y",monthType:"number",mmdd:!0,separator:"~"},{key:"%amd/%Y",lev1:"%Y",lev2:"Q%q/%Y",lev3:"%m/%Y",lev4:"%G/W%V",lev5:"%amd/%Y",monthType:"number",mmdd:null,separator:"/"},{key:"%amd-%Y",lev1:"%Y",lev2:"Q%q-%Y",lev3:"%m-%Y",lev4:"%G-W%V",lev5:"%amd-%Y",monthType:"number",mmdd:null,separator:"-"},{key:"%amd.%Y",lev1:"%Y",lev2:"Q%q.%Y",lev3:"%m.%Y",lev4:"%G.W%V",lev5:"%amd.%Y",monthType:"number",mmdd:null,separator:"."},{key:"%amd~%Y",lev1:"%Y",lev2:"Q%q~%Y",lev3:"%m~%Y",lev4:"%G~W%V",lev5:"%amd~%Y",monthType:"number",mmdd:null,separator:"~"}],Wt=[{key:"%H:%M:%S.%L",lev6:"%H:00",lev7:"%H:%M",lev8:"%H:%M:%S",lev9:"%H:%M:%S.%L",ampm:!1},{key:"%I:%M:%S.%L %p",lev6:"%I:00 %p",lev7:"%I:%M %p",lev8:"%I:%M:%S %p",lev9:"%I:%M:%S.%L %p",ampm:!0}];function _t(e,r){var g,O;r=r||{};const t=r.localFormats||he;let n,i,u,m=[],T=[],D="datetime",s;r&&r.multi&&(D="datetime"),(!e||!e.format)&&(D="hierarchy"),e&&e.type&&(D=e.type),e&&e.format?s=e.format:D==="numeric"?s=",.0f":D==="datetime"?s=Xe:s="";const C=mr.decomposeNumericFormat(s);switch(C.precision&&C.typeFormat&&(D="numeric"),D){case"numeric":{if(e.subtype==="duration"&&e.duration&&e.duration.levels&&e.duration.levels.length>1&&!r.hideDuration)n=l=>L.isEmpty(l)?"":At(l,e,e.duration.levels,t);else{const l={...t};let h=C.typeFormat,f=!1;switch(h.length===2&&h.startsWith("a")&&(f=!0,h=h.slice(1,2),s=s.replace(/a/,"")),f?(l.decimal=t.decimal,l.thousands=t.thousands):["z","y","w"].includes(h)?(l.decimal=",",l.thousands="."):(l.decimal=".",l.thousands=","),h){case"z":{s=s.replace("z","f");break}case"y":{s=s.replace("y","%");break}case"w":{s=s.replace("w","s");break}}if((e==null?void 0:e.subtype)==="currency"&&e.currency){const c=" ",F=l.currency.findIndex(b=>b.length>0),S=l.currency[F].startsWith(c),w=l.currency[F].endsWith(c),d=`${S?c:""}${e.currency}${w?c:""}`;l.currency[F]=d}const p=Mr(l);h!=="%"&&(e==null?void 0:e.subtype)==="currency"&&e.currency&&l.currency&&!(r!=null&&r.hideCurrency)&&!["count","distinctcount"].includes(e.aggregationFunc)&&!(e.aggregationFunc==="rate"&&((g=e.aggregationWeight)==null?void 0:g.columnSubType)==="currency")&&((O=e.periodOverPeriod)==null?void 0:O.type)!=="percentageChange"&&(s="$"+s),r!=null&&r.trimZero&&["y","%"].includes(h)&&l.decimal===","?i=c=>p.format(s)(c).replace(/(,\d*?)0+%$/,"$1%").replace(/,%$/,"%"):r!=null&&r.trimZero&&["y","%"].includes(h)&&l.decimal==="."?i=c=>p.format(s)(c).replace(/(\.\d*?)0+%$/,"$1%").replace(/\.%$/,"%"):r!=null&&r.trimZero&&["z","f"].includes(h)&&l.decimal===","?i=c=>p.format(s)(c).replace(/(,\d*?)0+$/,"$1").replace(/,$/,""):r!=null&&r.trimZero&&["z","f"].includes(h)&&l.decimal==="."?i=c=>p.format(s)(c).replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""):(e==null?void 0:e.subtype)==="currency"&&e.currency&&l.currency&&h==="s"?i=c=>p.format(s)(c).replace(/G/,"B"):i=L.isEmpty(C.precision)?p.format(",.0f"):p.format(s),n=c=>{var F;if(L.isEmpty(c))return"";if(e.subtype==="duration"&&e.duration&&!r.hideDuration){const S=e.duration.levels?e.duration.levels[0]:e.lowestLevel;return S!==e.lowestLevel&&(c=xt(c,e.lowestLevel,S)),i(c)+((F=t==null?void 0:t.durationShortSuffix)==null?void 0:F[S])}return i(c)}}break}case"datetime":{if(m=(t==null?void 0:t.smartDateFormats)??Ke,T=(t==null?void 0:t.smartTimeFormats)??Wt,L.isEmpty(e.datetimeDisplayMode)){if(r!=null&&r.level){const l=r.level,h=m.find(w=>s.includes(w.key)),f=T.find(w=>s.includes(w.key)),p=h?h["lev"+Math.min(l,5)]:m[0]["lev"+Math.min(l,5)],c=l>5?f?f["lev"+l]:T[0]["lev"+l]:"";s=l>5?p+", "+c:p;const F=s.includes("%amd")&&r.level>=5,S=h?r.level>=2&&h.separator==="~":!1;F?s=S?s.replaceAll(new RegExp(/%amd[.~\/-]%Y/g),t.date.slice(0,8)):s.replaceAll(new RegExp(/%amd[.~\/-]%Y/g),t.date.slice(0,8).replaceAll(new RegExp(/[.~\/-]/g),h.separator)):s=S?s.replaceAll(new RegExp(/[~]/g),t.dateSeparator):s}if(r!=null&&r.multi){const l=E(t.multi[0]),h=E(t.multi[1]),f=E(t.multi[2]),p=E(t.multi[3]),c=E(t.multi[4]),F=E(t.multi[6]),S=E(t.multi[7]),w=E(t.multi[8]);u=d=>{let b;return Re(d)<d?b=l:$e(d)<d?b=h:ze(d)<d?b=f:fe(d)<d?b=p:Pe(d)<d?b=Ce(d)<d?c:F:Q(d)<d?b=S:b=w,b(d)}}else u=Ye(t).format(s)}else{const l={quarter_number:{min:1,max:4},month_name:{min:1,max:12},month_number:{min:1,max:12},week_number:{min:1,max:53},day_in_month:{min:1,max:31},day_in_year:{min:1,max:366},weekday_name:{min:0,max:7},weekday_number:{min:0,max:7},hour_in_day:{min:0,max:23},minute_in_hour:{min:0,max:59},second_in_minute:{min:0,max:59}},h=(f,p,c)=>{var F,S,w,d,b;return p==="letter"?((F=f.shortNames)==null?void 0:F.length)>0&&((S=f.shortNames[c])==null?void 0:S.length)>0?(w=f.shortNames[c])==null?void 0:w.charAt(0):"N/A":p==="short"?((d=f.shortNames)==null?void 0:d.length)>0&&f.shortNames[c]?f.shortNames[c]:"N/A":((b=f.longNames)==null?void 0:b.length)>0&&f.longNames[c]?f.longNames[c]:"N/A"};["quarter_number","month_number","week_number","day_in_month","day_in_year","weekday_number","hour_in_day","minute_in_hour","second_in_minute"].includes(e.datetimeDisplayMode)?u=f=>L.isNumeric(f)&&f>=l[e.datetimeDisplayMode].min&&f<=l[e.datetimeDisplayMode].max?f:"N/A":e.datetimeDisplayMode==="month_name"?u=f=>{const p=[...t.shortMonths],c=[...t.months];return L.isNumeric(f)&&f>=l[e.datetimeDisplayMode].min&&f<=l[e.datetimeDisplayMode].max?h({shortNames:p,longNames:c},e.monthNameFormat,f-1):"N/A"}:e.datetimeDisplayMode==="weekday_name"?u=f=>{const p=[...t.shortDays],c=[...t.days];return e.weekStart==="monday"&&(p.push(p.shift()??""),c.push(c.shift()??"")),L.isNumeric(f)&&f>=l[e.datetimeDisplayMode].min&&f<=l[e.datetimeDisplayMode].max?h({shortNames:p,longNames:c},e.weekDayNameFormat,f-1):"N/A"}:u=Ye(t).format(s)}n=l=>{if(L.isEmpty(l))return"";const h=u(l);return L.isString(h)?h.trim():h};break}case"hierarchy":{n=l=>L.localize(l,r?r.locale:void 0);break}default:{n=l=>l;break}}return n}const Nt=Object.freeze(Object.defineProperty({__proto__:null,default:he},Symbol.toStringTag,{value:"Module"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,default:he},Symbol.toStringTag,{value:"Module"}));exports.DEFAULT_DATETIME_FORMAT=Xe;exports.DEFAULT_LOCAL_FORMATS=he;exports.SMART_DATE_FORMATS=Ke;exports.en=Lt;exports.enUS=Nt;exports.formatter=_t;
|