@luzmo/analytics-components-kit 1.0.1-alpha.1 → 1.0.1-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +3 -3
- package/components/area-chart-slots.config-BLxiYX05.cjs +20 -0
- package/components/area-chart-slots.config-C0c2ZzBh.js +52 -0
- package/components/async-directive-DWRUSKKF-CmOVMf6V.js +152 -0
- package/components/async-directive-DWRUSKKF-D4itZyzc.cjs +56 -0
- package/components/bar-chart-slots.config-GSSL7XVA.js +47 -0
- package/components/bar-chart-slots.config-Jx1PveTM.cjs +20 -0
- package/components/bar-chart.config--VDhFN4d.cjs +20 -0
- package/components/bar-chart.config-BYIX4E6J.js +154 -0
- package/components/bar-chart.en-Crc8tYUJ.js +86 -0
- package/components/bar-chart.en-D1UfGsS3.cjs +20 -0
- package/components/bar-chart.fr-BwiGRlQf.js +86 -0
- package/components/bar-chart.fr-CP7DTrlk.cjs +20 -0
- package/components/bar-chart.nl-C9EOP2kE.js +86 -0
- package/components/bar-chart.nl-Cxq8ID8c.cjs +20 -0
- package/components/base-BjTwmyRF.cjs +24 -0
- package/components/base-D76d76ww-BiajPmzU.cjs +40 -0
- package/components/base-D76d76ww-gf0ESLsU.js +45 -0
- package/components/base-D76d76ww.js +28 -0
- package/components/box-plot-slots.config-BRhnF2FE.js +48 -0
- package/components/box-plot-slots.config-DZxyy3sS.cjs +20 -0
- package/components/bubble-chart-slots.config-Bbh94VgZ.js +46 -0
- package/components/bubble-chart-slots.config-BwSwgleO.cjs +20 -0
- package/components/bullet-chart-slots.config-Ccv_dX0s.js +45 -0
- package/components/bullet-chart-slots.config-CiYsxviC.cjs +20 -0
- package/components/button-base-B7v4eeRh-BKKUK3x0.cjs +43 -0
- package/components/button-base-B7v4eeRh-D3-GH03o.js +161 -0
- package/components/checkbox-mixin-BFGTmw17-C34LMsgu.js +88 -0
- package/components/checkbox-mixin-BFGTmw17-CCjGd0nS.cjs +45 -0
- package/components/choropleth-map-slots.config-B-uJTj4q.js +47 -0
- package/components/choropleth-map-slots.config-PNwSR0XY.cjs +20 -0
- package/components/circle-pack-chart-slots.config-C-_ganmv.cjs +20 -0
- package/components/circle-pack-chart-slots.config-xwVdRiwS.js +40 -0
- package/components/circular-gauge-slots.config-Cd-nkNPm.cjs +20 -0
- package/components/circular-gauge-slots.config-DA-ZAc5d.js +39 -0
- package/components/column-chart-slots.config-C7MhpoR8.cjs +20 -0
- package/components/column-chart-slots.config-DAdAk17k.js +47 -0
- package/components/column-chart.config-BYIX4E6J.js +154 -0
- package/components/column-chart.config-BmhmcBZJ.cjs +20 -0
- package/components/column-chart.en-Crc8tYUJ.js +86 -0
- package/components/column-chart.en-D1UfGsS3.cjs +20 -0
- package/components/column-chart.fr-BwiGRlQf.js +86 -0
- package/components/column-chart.fr-CP7DTrlk.cjs +20 -0
- package/components/column-chart.nl-C9EOP2kE.js +86 -0
- package/components/column-chart.nl-Cxq8ID8c.cjs +20 -0
- package/components/combination-chart-slots.config-CqKLFKCZ.js +45 -0
- package/components/combination-chart-slots.config-crMO01EO.cjs +20 -0
- package/components/conditional-number-slots.config-CD5ZwXuY.cjs +20 -0
- package/components/conditional-number-slots.config-L3t5pb1-.js +39 -0
- package/components/cs-DVZ0Tapy.js +89 -0
- package/components/cs-I9E81keK.cjs +20 -0
- package/components/da-DHy05oSR.js +97 -0
- package/components/da-QkdvupDg.cjs +20 -0
- package/components/date-filter-slots.config-Cb1LcT9W.cjs +20 -0
- package/components/date-filter-slots.config-CxB8IF5B.js +33 -0
- package/components/de-BaTUIQk1.js +104 -0
- package/components/de-DgHoh7KS.cjs +20 -0
- package/components/de-Dn5mUzha.cjs +20 -0
- package/components/de-iM39JlAt.js +109 -0
- package/components/decompose-numeric-format-B3rVVHpO.cjs +20 -0
- package/components/decompose-numeric-format-BuZcjH2k.js +39 -0
- package/components/directive-helpers-nlQRAaQt-3kEWF2GV.cjs +80 -0
- package/components/directive-helpers-nlQRAaQt-I6T4KZKW.js +115 -0
- package/components/display-settings/display-settings.d.ts +70 -0
- package/components/display-settings/index.cjs +105 -0
- package/components/display-settings/index.d.ts +7 -0
- package/components/display-settings/index.js +238 -0
- package/components/display-settings-binning/display-settings-binning.d.ts +33 -0
- package/components/display-settings-binning/index.cjs +55 -0
- package/components/display-settings-binning/index.d.ts +7 -0
- package/components/display-settings-binning/index.js +151 -0
- package/components/display-settings-datetime/display-settings-datetime.d.ts +85 -0
- package/components/display-settings-datetime/index.cjs +228 -0
- package/components/display-settings-datetime/index.d.ts +7 -0
- package/components/display-settings-datetime/index.js +535 -0
- package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +31 -0
- package/components/display-settings-grand-totals/index.cjs +43 -0
- package/components/display-settings-grand-totals/index.d.ts +7 -0
- package/components/display-settings-grand-totals/index.js +126 -0
- package/components/display-settings-numeric/display-settings-numeric.d.ts +73 -0
- package/components/display-settings-numeric/helpers/constants.d.ts +18 -0
- package/components/display-settings-numeric/index.cjs +156 -0
- package/components/display-settings-numeric/index.d.ts +7 -0
- package/components/display-settings-numeric/index.js +477 -0
- package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +44 -0
- package/components/display-settings-period-over-period/helpers/constants.d.ts +36 -0
- package/components/display-settings-period-over-period/index.cjs +103 -0
- package/components/display-settings-period-over-period/index.d.ts +7 -0
- package/components/display-settings-period-over-period/index.js +314 -0
- package/components/divider.module-DwOuLGU3-B19eHVg2.js +40 -0
- package/components/divider.module-DwOuLGU3-Bg8RrFkc.cjs +36 -0
- package/components/donut-chart-slots.config-BEwhfq27.js +39 -0
- package/components/donut-chart-slots.config-DIp-24lO.cjs +20 -0
- package/components/donut-chart.config-3DhKiSSM.js +177 -0
- package/components/donut-chart.config-DLWJUlHx.cjs +20 -0
- package/components/donut-chart.en-CrUf4CJ9.js +99 -0
- package/components/donut-chart.en-DHCYs2el.cjs +20 -0
- package/components/donut-chart.fr-C33dLw52.cjs +20 -0
- package/components/donut-chart.fr-DVfZwZny.js +99 -0
- package/components/donut-chart.nl-B13jr7SK.js +99 -0
- package/components/donut-chart.nl-CHAnU1xZ.cjs +20 -0
- package/components/draggable-data-item/draggable-data-item.d.ts +26 -0
- package/components/draggable-data-item/index.cjs +55 -0
- package/components/draggable-data-item/index.d.ts +7 -0
- package/components/draggable-data-item/index.js +135 -0
- package/components/draggable-data-item-level/draggable-data-item-level.d.ts +29 -0
- package/components/draggable-data-item-level/helpers/calculate-type-icon.d.ts +2 -0
- package/components/draggable-data-item-level/helpers/generate-preview.d.ts +1 -0
- package/components/draggable-data-item-level/index.cjs +36 -0
- package/components/draggable-data-item-level/index.d.ts +7 -0
- package/components/draggable-data-item-level/index.js +293 -0
- package/components/dropdown-filter-slots.config-B8J6ftCh.js +46 -0
- package/components/dropdown-filter-slots.config-I2n4b_6V.cjs +20 -0
- package/components/droppable-slot/droppable-slot.d.ts +49 -0
- package/components/droppable-slot/index.cjs +69 -0
- package/components/droppable-slot/index.d.ts +7 -0
- package/components/droppable-slot/index.js +307 -0
- package/components/droppable-slot/item-slots-configs/area-chart-slots.config.d.ts +44 -0
- package/components/droppable-slot/item-slots-configs/bar-chart-slots.config.d.ts +24 -0
- package/components/droppable-slot/item-slots-configs/box-plot-slots.config.d.ts +26 -0
- package/components/droppable-slot/item-slots-configs/bubble-chart-slots.config.d.ts +30 -0
- package/components/droppable-slot/item-slots-configs/bullet-chart-slots.config.d.ts +18 -0
- package/components/droppable-slot/item-slots-configs/choropleth-map-slots.config.d.ts +29 -0
- package/components/droppable-slot/item-slots-configs/circle-pack-chart-slots.config.d.ts +22 -0
- package/components/droppable-slot/item-slots-configs/circular-gauge-slots.config.d.ts +16 -0
- package/components/droppable-slot/item-slots-configs/column-chart-slots.config.d.ts +24 -0
- package/components/droppable-slot/item-slots-configs/combination-chart-slots.config.d.ts +30 -0
- package/components/droppable-slot/item-slots-configs/conditional-number-slots.config.d.ts +16 -0
- package/components/droppable-slot/item-slots-configs/date-filter-slots.config.d.ts +10 -0
- package/components/droppable-slot/item-slots-configs/donut-chart-slots.config.d.ts +20 -0
- package/components/droppable-slot/item-slots-configs/dropdown-filter-slots.config.d.ts +23 -0
- package/components/droppable-slot/item-slots-configs/evolution-number-slots.config.d.ts +18 -0
- package/components/droppable-slot/item-slots-configs/funnel-chart-slots.config.d.ts +22 -0
- package/components/droppable-slot/item-slots-configs/heat-map-slots.config.d.ts +18 -0
- package/components/droppable-slot/item-slots-configs/heat-table-slots.config.d.ts +20 -0
- package/components/droppable-slot/item-slots-configs/hexbin-map-slots.config.d.ts +18 -0
- package/components/droppable-slot/item-slots-configs/image-slots.config.d.ts +2 -0
- package/components/droppable-slot/item-slots-configs/index.d.ts +44 -0
- package/components/droppable-slot/item-slots-configs/line-chart-slots.config.d.ts +44 -0
- package/components/droppable-slot/item-slots-configs/marker-map-slots.config.d.ts +18 -0
- package/components/droppable-slot/item-slots-configs/ohlc-chart-slots.config.d.ts +21 -0
- package/components/droppable-slot/item-slots-configs/parallel-coordinates-plot-slots.config.d.ts +23 -0
- package/components/droppable-slot/item-slots-configs/pivot-table-slots.config.d.ts +21 -0
- package/components/droppable-slot/item-slots-configs/pyramid-chart-slots.config.d.ts +33 -0
- package/components/droppable-slot/item-slots-configs/radar-chart-slots.config.d.ts +33 -0
- package/components/droppable-slot/item-slots-configs/regular-table-slots.config.d.ts +13 -0
- package/components/droppable-slot/item-slots-configs/route-map-slots.config.d.ts +28 -0
- package/components/droppable-slot/item-slots-configs/sankey-diagram-slots.config.d.ts +33 -0
- package/components/droppable-slot/item-slots-configs/scatter-plot-slots.config.d.ts +50 -0
- package/components/droppable-slot/item-slots-configs/search-filter-slots.config.d.ts +24 -0
- package/components/droppable-slot/item-slots-configs/slicer-filter-slots.config.d.ts +23 -0
- package/components/droppable-slot/item-slots-configs/slider-filter-slots.config.d.ts +13 -0
- package/components/droppable-slot/item-slots-configs/slot-labels.const.d.ts +8 -0
- package/components/droppable-slot/item-slots-configs/speedometer-chart-slots.config.d.ts +16 -0
- package/components/droppable-slot/item-slots-configs/spike-map-slots.config.d.ts +31 -0
- package/components/droppable-slot/item-slots-configs/strip-plot-slots.config.d.ts +22 -0
- package/components/droppable-slot/item-slots-configs/sunburst-chart-slots.config.d.ts +22 -0
- package/components/droppable-slot/item-slots-configs/symbol-map-slots.config.d.ts +31 -0
- package/components/droppable-slot/item-slots-configs/text-slots.config.d.ts +2 -0
- package/components/droppable-slot/item-slots-configs/treemap-chart-slots.config.d.ts +30 -0
- package/components/droppable-slot/item-slots-configs/venn-diagram-slots.config.d.ts +18 -0
- package/components/droppable-slot/item-slots-configs/video-slots.config.d.ts +2 -0
- package/components/droppable-slot/item-slots-configs/wordcloud-chart-slots.config.d.ts +23 -0
- package/components/edit-item/edit-item.d.ts +50 -0
- package/components/edit-item/index.cjs +88 -0
- package/components/edit-item/index.d.ts +7 -0
- package/components/edit-item/index.js +348 -0
- package/components/edit-option/edit-option.d.ts +22 -0
- package/components/edit-option/helpers/control-markup.d.ts +14 -0
- package/components/edit-option/helpers/control-templates/action-button-group-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/color-picker-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/multi-language-field-template.d.ts +8 -0
- package/components/edit-option/helpers/control-templates/number-field-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/picker-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/position-picker-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/positions-number-field-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/radio-button-group.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/slider-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/switch-template.d.ts +2 -0
- package/components/edit-option/helpers/control-templates/text-field-template.d.ts +7 -0
- package/components/edit-option/helpers/generate-callback.d.ts +1 -0
- package/components/edit-option/helpers/get-control-by-key.d.ts +1 -0
- package/components/edit-option/helpers/get-extra-label-values.d.ts +7 -0
- package/components/edit-option/helpers/get-value-by-key.d.ts +1 -0
- package/components/edit-option/index.cjs +187 -0
- package/components/edit-option/index.d.ts +7 -0
- package/components/edit-option/index.js +543 -0
- package/components/edit-option/item-configs/bar-chart.config.d.ts +108 -0
- package/components/edit-option/item-configs/column-chart.config.d.ts +108 -0
- package/components/edit-option/item-configs/donut-chart.config.d.ts +102 -0
- package/components/edit-option/item-configs/imageobject.config.d.ts +126 -0
- package/components/edit-option/item-configs/line-chart.config.d.ts +130 -0
- package/components/edit-option/item-configs/spacer.config.d.ts +2 -0
- package/components/edit-option/item-configs/textobject.config.d.ts +45 -0
- package/components/edit-option/item-configs/videoobject.config.d.ts +90 -0
- package/components/edit-option/item-translations/bar-chart.en.d.ts +65 -0
- package/components/edit-option/item-translations/bar-chart.fr.d.ts +65 -0
- package/components/edit-option/item-translations/bar-chart.nl.d.ts +65 -0
- package/components/edit-option/item-translations/column-chart.en.d.ts +65 -0
- package/components/edit-option/item-translations/column-chart.fr.d.ts +65 -0
- package/components/edit-option/item-translations/column-chart.nl.d.ts +65 -0
- package/components/edit-option/item-translations/donut-chart.en.d.ts +78 -0
- package/components/edit-option/item-translations/donut-chart.fr.d.ts +78 -0
- package/components/edit-option/item-translations/donut-chart.nl.d.ts +78 -0
- package/components/edit-option/item-translations/imageobject.en.d.ts +71 -0
- package/components/edit-option/item-translations/imageobject.fr.d.ts +71 -0
- package/components/edit-option/item-translations/imageobject.nl.d.ts +71 -0
- package/components/edit-option/item-translations/textobject.en.d.ts +17 -0
- package/components/edit-option/item-translations/textobject.fr.d.ts +17 -0
- package/components/edit-option/item-translations/textobject.nl.d.ts +17 -0
- package/components/edit-option-action-button-group/edit-option-action-button-group.d.ts +27 -0
- package/components/edit-option-action-button-group/index.cjs +51 -0
- package/components/edit-option-action-button-group/index.d.ts +7 -0
- package/components/edit-option-action-button-group/index.js +151 -0
- package/components/edit-option-base/edit-option-base.d.ts +22 -0
- package/components/edit-option-base-Boz7TNRZ.cjs +53 -0
- package/components/edit-option-base-qePiIQWd.js +120 -0
- package/components/edit-option-color-picker/edit-option-color-picker.d.ts +23 -0
- package/components/edit-option-color-picker/index.cjs +472 -0
- package/components/edit-option-color-picker/index.d.ts +7 -0
- package/components/edit-option-color-picker/index.js +2553 -0
- package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +17 -0
- package/components/edit-option-multi-language-field/index.cjs +31 -0
- package/components/edit-option-multi-language-field/index.d.ts +7 -0
- package/components/edit-option-multi-language-field/index.js +112 -0
- package/components/edit-option-number-field/edit-option-number-field.d.ts +19 -0
- package/components/edit-option-number-field/index.cjs +32 -0
- package/components/edit-option-number-field/index.d.ts +7 -0
- package/components/edit-option-number-field/index.js +115 -0
- package/components/edit-option-picker/edit-option-picker.d.ts +22 -0
- package/components/edit-option-picker/index.cjs +35 -0
- package/components/edit-option-picker/index.d.ts +7 -0
- package/components/edit-option-picker/index.js +106 -0
- package/components/edit-option-position-picker/edit-option-position-picker.d.ts +13 -0
- package/components/edit-option-position-picker/index.cjs +25 -0
- package/components/edit-option-position-picker/index.d.ts +7 -0
- package/components/edit-option-position-picker/index.js +110 -0
- package/components/edit-option-positions-number-field/edit-option-positions-number-field.d.ts +30 -0
- package/components/edit-option-positions-number-field/index.cjs +42 -0
- package/components/edit-option-positions-number-field/index.d.ts +7 -0
- package/components/edit-option-positions-number-field/index.js +179 -0
- package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +18 -0
- package/components/edit-option-radio-button-group/index.cjs +36 -0
- package/components/edit-option-radio-button-group/index.d.ts +7 -0
- package/components/edit-option-radio-button-group/index.js +113 -0
- package/components/edit-option-slider/edit-option-slider.d.ts +15 -0
- package/components/edit-option-slider/index.cjs +48 -0
- package/components/edit-option-slider/index.d.ts +7 -0
- package/components/edit-option-slider/index.js +1253 -0
- package/components/edit-option-switch/edit-option-switch.d.ts +11 -0
- package/components/edit-option-switch/index.cjs +50 -0
- package/components/edit-option-switch/index.d.ts +7 -0
- package/components/edit-option-switch/index.js +171 -0
- package/components/edit-option-text-field/edit-option-text-field.d.ts +15 -0
- package/components/edit-option-text-field/index.cjs +31 -0
- package/components/edit-option-text-field/index.d.ts +7 -0
- package/components/edit-option-text-field/index.js +100 -0
- package/components/element-resolution-FCUT-wql--7ctE626.js +163 -0
- package/components/element-resolution-FCUT-wql-DSTvdyds.cjs +68 -0
- package/components/en-BnVnZvpC.cjs +20 -0
- package/components/en-DlRadzUI.js +1487 -0
- package/components/en-GB-C9t4MSgD.js +28 -0
- package/components/en-GB-D5Tvhki6.cjs +20 -0
- package/components/es-ByW01bzN.cjs +20 -0
- package/components/es-CwyPlN5d.cjs +20 -0
- package/components/es-D37mTCZB.js +104 -0
- package/components/es-KhTq4jX8.js +305 -0
- package/components/evolution-number-slots.config-BI-sFIug.cjs +20 -0
- package/components/evolution-number-slots.config-CW21b2ua.js +39 -0
- package/components/fi-Dh_ebgpe.js +97 -0
- package/components/fi-rijeZE5V.cjs +20 -0
- package/components/focus-group-DHeTq18L-C9l9oHwM.cjs +36 -0
- package/components/focus-group-DHeTq18L-rNUu13eb.js +237 -0
- package/components/fr-BWJHvkss.js +104 -0
- package/components/fr-BcgE-6S_.cjs +20 -0
- package/components/fr-CU727YF1.js +305 -0
- package/components/fr-DnFUAglm.cjs +20 -0
- package/components/funnel-chart-slots.config-BBhMS2qi.js +40 -0
- package/components/funnel-chart-slots.config-WrokHS7f.cjs +20 -0
- package/components/get-css-variable-Bhbr-Kr1.js +1413 -0
- package/components/get-css-variable-DLiZYZEi.cjs +24 -0
- package/components/he-Au3xg6lR.js +89 -0
- package/components/he-O6Ih8Bqh.cjs +20 -0
- package/components/heat-map-slots.config-CSxSsQwX.cjs +20 -0
- package/components/heat-map-slots.config-cdD8XTmI.js +39 -0
- package/components/heat-table-slots.config-DJkP72oT.js +48 -0
- package/components/heat-table-slots.config-GGX3BCh1.cjs +20 -0
- package/components/hexbin-map-slots.config-CSxSsQwX.cjs +20 -0
- package/components/hexbin-map-slots.config-cdD8XTmI.js +39 -0
- package/components/hu-BnZ8y3xQ.cjs +20 -0
- package/components/hu-DNJ-P_MW.js +97 -0
- package/components/if-defined-8BOch-oC.cjs +24 -0
- package/components/if-defined-BSAr_4u4-4Ys8VE7T.js +95 -0
- package/components/if-defined-BSAr_4u4-gECNwmTC.cjs +60 -0
- package/components/if-defined-Bv6MRdSW.js +29 -0
- package/components/image-slots.config-IpwUxDyU.js +23 -0
- package/components/image-slots.config-mPXMR1CE.cjs +20 -0
- package/components/imageobject.config-CBfeq5Zw.js +127 -0
- package/components/imageobject.config-Dqhc2c3b.cjs +20 -0
- package/components/imageobject.en-BMmV-4O-.js +92 -0
- package/components/imageobject.en-DflcU_2H.cjs +20 -0
- package/components/imageobject.fr-DRE3zImB.js +92 -0
- package/components/imageobject.fr-ycH7UoX5.cjs +20 -0
- package/components/imageobject.nl-D20hki6i.js +92 -0
- package/components/imageobject.nl-DQL45o0j.cjs +20 -0
- package/components/index-86cIx1Ql.cjs +57 -0
- package/components/index-B3ve6cAj.js +810 -0
- package/components/index-B5Wvyv9s.js +744 -0
- package/components/index-BBrer3_5.js +44 -0
- package/components/index-BJVxTeoi.cjs +192 -0
- package/components/index-BUSWsm5N.js +77 -0
- package/components/index-BVX_ozT9.js +77 -0
- package/components/index-BYfDERr7.js +145 -0
- package/components/index-Bee1uunR.js +299 -0
- package/components/index-BrEDK88k.cjs +185 -0
- package/components/index-Bt5nP_6w.cjs +59 -0
- package/components/index-ByjLd3bT.cjs +95 -0
- package/components/index-C8IL2IZ6.js +317 -0
- package/components/index-CMvLpPKD-D5MpMVYZ.js +935 -0
- package/components/index-CMvLpPKD-Yf1PLWrj.cjs +95 -0
- package/components/index-CXIT0cYY.js +3171 -0
- package/components/index-CdCtJpK9.js +175 -0
- package/components/index-CdUTqQ3L.cjs +39 -0
- package/components/index-CdpyJ7hp.cjs +36 -0
- package/components/index-CfEn3fIT.js +137 -0
- package/components/index-D8qmoauu.cjs +36 -0
- package/components/index-DEVOZNSc.cjs +36 -0
- package/components/index-DUO13KGl.cjs +54 -0
- package/components/index-DVAsMiOm.js +164 -0
- package/components/index-DnozlYag.js +48 -0
- package/components/index-h9T5DPIm.cjs +36 -0
- package/components/index-i8GaIN7i.cjs +67 -0
- package/components/index-iYpAy-Kg.cjs +95 -0
- package/components/index-ymMEPngt.js +104 -0
- package/components/index-zuArOtOt.cjs +42 -0
- package/components/index.cjs +20 -0
- package/components/index.js +82 -0
- package/components/it-Bh5U73z6.js +305 -0
- package/components/it-PshtLMkq.cjs +20 -0
- package/components/item-list.cjs +20 -0
- package/components/item-list.js +423 -0
- package/components/item-menu/item-list/item-list.d.ts +35 -0
- package/components/ja-CCcHUL61.js +89 -0
- package/components/ja-KIS2HdaG.cjs +20 -0
- package/components/ko--l4qmjLV.cjs +20 -0
- package/components/ko-DhapsZMM.js +89 -0
- package/components/language-resolution-8yZa5r_P-Bn0bYosv.js +161 -0
- package/components/language-resolution-8yZa5r_P-FqQChUDW.cjs +52 -0
- package/components/line-chart-slots.config-CIfDfftd.cjs +20 -0
- package/components/line-chart-slots.config-P7xa-pHi.js +52 -0
- package/components/line-chart.config-DBw4A3Rf.js +178 -0
- package/components/line-chart.config-cvwDhvSq.cjs +20 -0
- package/components/localize-BX7q0S0M.js +52 -0
- package/components/localize-r7ALOUy_.cjs +20 -0
- package/components/luzmo-icons-BE2T8vWu.js +613 -0
- package/components/luzmo-icons-XsFsTAl3.cjs +31 -0
- package/components/marker-map-slots.config-CSxSsQwX.cjs +20 -0
- package/components/marker-map-slots.config-cdD8XTmI.js +39 -0
- package/components/mk-B9HPSuKa.js +97 -0
- package/components/mk-DZlj-edb.cjs +20 -0
- package/components/nl-BKlDqOXb.cjs +20 -0
- package/components/nl-BwSt5Bf4.js +109 -0
- package/components/nl-CWxJcTNT.js +104 -0
- package/components/nl-CpfDNK5c.cjs +20 -0
- package/components/no-D-DofYnx.js +109 -0
- package/components/no-D_SzxhTu.cjs +20 -0
- package/components/observe-slot-text-ggb4kKgY-DBVrKDBD.cjs +86 -0
- package/components/observe-slot-text-ggb4kKgY-o5QFWUeA.js +221 -0
- package/components/ohlc-chart-slots.config-Cvy5n1xv.js +64 -0
- package/components/ohlc-chart-slots.config-DMomcHMV.cjs +20 -0
- package/components/parallel-coordinates-plot-slots.config-BRXA5nUl.cjs +20 -0
- package/components/parallel-coordinates-plot-slots.config-CQW2CJW6.js +44 -0
- package/components/periods.const-CDIkC5CK.cjs +20 -0
- package/components/periods.const-GHh5bPfs.js +176 -0
- package/components/pivot-table-slots.config-BH5fOJre.js +48 -0
- package/components/pivot-table-slots.config-DzGWM3Ez.cjs +20 -0
- package/components/pl-D_L_0Boq.js +97 -0
- package/components/pl-PIK23rK_.cjs +20 -0
- package/components/popover-DlkzrLpl-BhTvuvTu.cjs +48 -0
- package/components/popover-DlkzrLpl-CCwcTIXr.js +86 -0
- package/components/property-0L4eB11h.cjs +112 -0
- package/components/property-B2F7x7Cz.js +1481 -0
- package/components/pt-B0BBS5VB.js +89 -0
- package/components/pt-Dqlu4MS5.cjs +20 -0
- package/components/pyramid-chart-slots.config-Cm9bQsXT.js +47 -0
- package/components/pyramid-chart-slots.config-DeWrVApy.cjs +20 -0
- package/components/query-D5qWDopr.cjs +24 -0
- package/components/query-Ddbd72Um.js +39 -0
- package/components/query-assigned-nodes-C76XVPWY-BcyGjObB.cjs +40 -0
- package/components/query-assigned-nodes-C76XVPWY-DPC6kOmH.js +55 -0
- package/components/radar-chart-slots.config-Dpmytmc3.js +47 -0
- package/components/radar-chart-slots.config-Dxx5fKnS.cjs +20 -0
- package/components/regular-table-slots.config-ChrvnRDb.cjs +20 -0
- package/components/regular-table-slots.config-EUS-V9lL.js +33 -0
- package/components/route-map-slots.config-BfbIWCr0.cjs +20 -0
- package/components/route-map-slots.config-DYCcaQZi.js +53 -0
- package/components/roving-tabindex-DOg4z6ZU-DmyYPRYY.cjs +36 -0
- package/components/roving-tabindex-DOg4z6ZU-dufnVmvL.js +85 -0
- package/components/ru-Vo-m3O_2.js +108 -0
- package/components/ru-zyNDTB04.cjs +20 -0
- package/components/sankey-diagram-slots.config-B7Q-ZfUP.cjs +20 -0
- package/components/sankey-diagram-slots.config-BSTBEZDe.js +55 -0
- package/components/scatter-plot-slots.config-BuWYqDWK.js +70 -0
- package/components/scatter-plot-slots.config-wlX_PVu8.cjs +20 -0
- package/components/search-filter-slots.config-DOlr8VaD.cjs +20 -0
- package/components/search-filter-slots.config-DmiVXOva.js +47 -0
- package/components/set-locale-ByIApH40.cjs +60 -0
- package/components/set-locale-DJYT4V7U.js +212 -0
- package/components/sized-mixin-BxMraZLS-B_y0PzR3.js +82 -0
- package/components/sized-mixin-BxMraZLS-DEFWqo8f.cjs +36 -0
- package/components/slicer-filter-slots.config-CHQ0ZXga.js +45 -0
- package/components/slicer-filter-slots.config-Dyte3aGp.cjs +20 -0
- package/components/slider-filter-slots.config-BN3K1rnl.js +33 -0
- package/components/slider-filter-slots.config-Cr5oXbok.cjs +20 -0
- package/components/slot-configs.cjs +20 -0
- package/components/slot-configs.js +109 -0
- package/components/slot-menu/index.cjs +55 -0
- package/components/slot-menu/index.d.ts +7 -0
- package/components/slot-menu/index.js +188 -0
- package/components/slot-menu/slot-menu.d.ts +66 -0
- package/components/slot-menu-list/index.cjs +39 -0
- package/components/slot-menu-list/index.d.ts +7 -0
- package/components/slot-menu-list/index.js +351 -0
- package/components/slot-menu-list/slot-menu-list.d.ts +33 -0
- package/components/spacer.config-Br2Dm5Uv.js +23 -0
- package/components/spacer.config-mPXMR1CE.cjs +20 -0
- package/components/speedometer-chart-slots.config-Cd-nkNPm.cjs +20 -0
- package/components/speedometer-chart-slots.config-DA-ZAc5d.js +39 -0
- package/components/spike-map-slots.config-CuqpgkvN.js +46 -0
- package/components/spike-map-slots.config-Drga6_j0.cjs +20 -0
- package/components/state-BFA93Sye.cjs +24 -0
- package/components/state-Joaryhrg.js +31 -0
- package/components/strip-plot-slots.config-Co8ghEv8.js +40 -0
- package/components/strip-plot-slots.config-JvkKY5Ga.cjs +20 -0
- package/components/sunburst-chart-slots.config-C-_ganmv.cjs +20 -0
- package/components/sunburst-chart-slots.config-xwVdRiwS.js +40 -0
- package/components/sv-1DPTltNQ.cjs +20 -0
- package/components/sv-CiozMaev.js +89 -0
- package/components/symbol-map-slots.config-C5CKaVED.js +47 -0
- package/components/symbol-map-slots.config-DtW-3xkd.cjs +20 -0
- package/components/task-B8yMzxui.cjs +24 -0
- package/components/task-Cr9aRIbV.js +120 -0
- package/components/text-field-CvKSS59x-Dn0_1HO7.js +412 -0
- package/components/text-field-CvKSS59x-E9LQElL4.cjs +131 -0
- package/components/text-slots.config-BMBEkf0O.cjs +20 -0
- package/components/text-slots.config-Hy5yNIAX.js +23 -0
- package/components/textobject.config-BFB3rEmt.cjs +20 -0
- package/components/textobject.config-DTDqt0ci.js +73 -0
- package/components/textobject.en-BQqHFc7M.js +38 -0
- package/components/textobject.en-LfsMtwo6.cjs +20 -0
- package/components/textobject.fr-B8x29grG.cjs +20 -0
- package/components/textobject.fr-VPJ3bDOM.js +38 -0
- package/components/textobject.nl-DzglrI3i.cjs +20 -0
- package/components/textobject.nl-V03mmGmH.js +38 -0
- package/components/tr-BkmWvOG2.cjs +20 -0
- package/components/tr-D_D4i5iv.js +109 -0
- package/components/treemap-chart-slots.config-C3bnHCyy.cjs +20 -0
- package/components/treemap-chart-slots.config-xLD22K9V.js +46 -0
- package/components/utils.cjs +20 -0
- package/components/utils.js +27 -0
- package/components/venn-diagram-slots.config-CpOPbUjs.cjs +20 -0
- package/components/venn-diagram-slots.config-DPmj71cR.js +48 -0
- package/components/video-slots.config-IpwUxDyU.js +23 -0
- package/components/video-slots.config-mPXMR1CE.cjs +20 -0
- package/components/videoobject.config-BBDHSf6_.cjs +20 -0
- package/components/videoobject.config-CbtNZAEK.js +135 -0
- package/components/when-CDK1Tt5Y-BN3qcTK0.cjs +40 -0
- package/components/when-CDK1Tt5Y-C6ViXC43.js +47 -0
- package/components/wordcloud-chart-slots.config-BS4sOOHt.js +44 -0
- package/components/wordcloud-chart-slots.config-D7CiYopX.cjs +20 -0
- package/components/zh-CN-DTZ4OmdP.cjs +20 -0
- package/components/zh-CN-wsl7eFSd.js +89 -0
- package/components/zh-TW-DTZ4OmdP.cjs +20 -0
- package/components/zh-TW-wsl7eFSd.js +89 -0
- package/custom-elements.json +5737 -0
- package/generated/locale-codes.d.ts +13 -0
- package/index.d.ts +25 -0
- package/package.json +150 -20
- package/utils/formatter/calculate-duration.d.ts +2 -0
- package/utils/formatter/decompose-numeric-format.d.ts +11 -0
- package/utils/formatter/default-local-formats.d.ts +20 -0
- package/utils/formatter/formats/cs.d.ts +20 -0
- package/utils/formatter/formats/da.d.ts +20 -0
- package/utils/formatter/formats/de.d.ts +21 -0
- package/utils/formatter/formats/en-GB.d.ts +21 -0
- package/utils/formatter/formats/en-US.d.ts +1 -0
- package/utils/formatter/formats/en.d.ts +1 -0
- package/utils/formatter/formats/es.d.ts +54 -0
- package/utils/formatter/formats/fi.d.ts +20 -0
- package/utils/formatter/formats/fr.d.ts +54 -0
- package/utils/formatter/formats/he.d.ts +20 -0
- package/utils/formatter/formats/hu.d.ts +20 -0
- package/utils/formatter/formats/it.d.ts +54 -0
- package/utils/formatter/formats/ja.d.ts +20 -0
- package/utils/formatter/formats/ko.d.ts +20 -0
- package/utils/formatter/formats/mk.d.ts +20 -0
- package/utils/formatter/formats/nl.d.ts +21 -0
- package/utils/formatter/formats/no.d.ts +21 -0
- package/utils/formatter/formats/pl.d.ts +20 -0
- package/utils/formatter/formats/pt.d.ts +20 -0
- package/utils/formatter/formats/ru.d.ts +20 -0
- package/utils/formatter/formats/sv.d.ts +20 -0
- package/utils/formatter/formats/tr.d.ts +21 -0
- package/utils/formatter/formats/zh-CN.d.ts +20 -0
- package/utils/formatter/formats/zh-TW.d.ts +20 -0
- package/utils/formatter/formatter.d.ts +9 -0
- package/utils/formatter/localize.d.ts +3 -0
- package/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
- package/utils/get-css-variable.d.ts +1 -0
- package/utils/index.d.ts +3 -0
- package/utils/localize/set-locale.d.ts +5 -0
- package/utils/time/formats.const.d.ts +4 -0
- package/utils/time/periods.const.d.ts +15 -0
- package/utils/types/column.types.d.ts +56 -0
- package/utils/types/type-check.d.ts +7 -0
- package/37.js +0 -1
- package/729.js +0 -1
- package/README.md +0 -1
- package/common-31743c5a.js +0 -13
- package/common-b02547a0.js +0 -1
- package/common-b49d9a9d.js +0 -1
- package/common-b5232813.js +0 -56
- package/common-cefd4f4c.js +0 -1
- package/common-d6cb565f.js +0 -1
- package/common-fd868059.js +0 -1
- package/common-fedaf338.js +0 -32
- package/edit-option-picker/index.js +0 -314
- package/edit-option-slider/index.js +0 -102
- package/edit-option-toggle/index.js +0 -114
- package/index.js +0 -346
- package/vendors-93cc3efa.js +0 -1
- package/vendors-bb3d84b5.js +0 -1
@@ -0,0 +1,535 @@
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
2
|
+
*
|
3
|
+
* Copyright © 2024 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
|
+
import { h as b } from "../task-Cr9aRIbV.js";
|
21
|
+
import "../index-CdCtJpK9.js";
|
22
|
+
import "../index-Bee1uunR.js";
|
23
|
+
import "../index-BYfDERr7.js";
|
24
|
+
import "../index-ymMEPngt.js";
|
25
|
+
import "../index-B3ve6cAj.js";
|
26
|
+
import "../index-B5Wvyv9s.js";
|
27
|
+
import "../index-CfEn3fIT.js";
|
28
|
+
import { k, a as x, x as s, n as d } from "../property-B2F7x7Cz.js";
|
29
|
+
import { m as S, d as w } from "../sized-mixin-BxMraZLS-B_y0PzR3.js";
|
30
|
+
import { m as i, t as F, s as $, l as A } from "../set-locale-DJYT4V7U.js";
|
31
|
+
import { C as p, h as c } from "../luzmo-icons-BE2T8vWu.js";
|
32
|
+
import { S as _, f } from "../en-DlRadzUI.js";
|
33
|
+
import { a as L, b as z, W as g } from "../periods.const-GHh5bPfs.js";
|
34
|
+
import { e as n } from "../query-Ddbd72Um.js";
|
35
|
+
const v = () => {
|
36
|
+
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
37
|
+
const t = document.createElement("style");
|
38
|
+
t.setAttribute("data-luzmo-vars", ""), t.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(t);
|
39
|
+
}
|
40
|
+
};
|
41
|
+
v();
|
42
|
+
const y = {
|
43
|
+
"~": () => i("Auto", { desc: "Automatic setting of the option" }),
|
44
|
+
"/": () => "/",
|
45
|
+
"-": () => "-",
|
46
|
+
".": () => "."
|
47
|
+
}, D = ":host{font-family:var(--luzmo-display-settings-datetime-font-family, var(--luzmo-font-family))}:host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-datetime-gap, var(--display-settings-datetime-gap))}:host .example-container{line-height:var(--luzmo-display-settings-datetime-example-height, var(--display-settings-datetime-example-height));font-size:var(--luzmo-display-settings-datetime-example-font-size, var(--display-settings-datetime-example-font-size));color:var(--luzmo-display-settings-datetime-example-color, var(--display-settings-datetime-example-color))}:host .example-container .example-label{font-weight:var(--luzmo-display-settings-datetime-example-label-font-weight, var(--display-settings-datetime-example-label-font-weight));color:var(--luzmo-display-settings-datetime-example-label-color, var(--display-settings-datetime-example-label-color))}:host .example-container .example-language{text-transform:uppercase;color:var(--luzmo-display-settings-datetime-example-language-color, var(--display-settings-datetime-example-language-color))}:host{--display-settings-datetime-example-font-size: var(--luzmo-font-size);--display-settings-datetime-example-color: var(--luzmo-font-color);--display-settings-datetime-example-label-font-weight: bold;--display-settings-datetime-example-label-color: var(--luzmo-primary);--display-settings-datetime-example-language-color: var(--luzmo-primary)}:host{--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=s]){--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height-s);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=l]){--display-settings-datetime-gap: var(--luzmo-spacing-4);--display-settings-datetime-example-height: var(--luzmo-component-height-l);--display-settings-datetime-example-font-size: var(--luzmo-font-size)}:host([size=xl]){--display-settings-datetime-gap: var(--luzmo-spacing-5);--display-settings-datetime-example-height: var(--luzmo-component-height-xl);--display-settings-datetime-example-font-size: var(--luzmo-font-size-l)}";
|
48
|
+
var E = Object.defineProperty, M = Object.getOwnPropertyDescriptor, m = (t, e, a, o) => {
|
49
|
+
for (var l = o > 1 ? void 0 : o ? M(e, a) : e, h = t.length - 1, u; h >= 0; h--)
|
50
|
+
(u = t[h]) && (l = (o ? u(e, a, l) : u(l)) || l);
|
51
|
+
return o && l && E(e, a, l), l;
|
52
|
+
};
|
53
|
+
let r = class extends S(k, {
|
54
|
+
validSizes: Object.values(w)
|
55
|
+
}) {
|
56
|
+
constructor() {
|
57
|
+
super(...arguments), this._loadLocaleFormatsConfig = new b(this, {
|
58
|
+
task: async ([t]) => {
|
59
|
+
if (t && t !== this._contentLanguageLoaded) {
|
60
|
+
const e = /* @__PURE__ */ Object.assign({
|
61
|
+
"../../utils/formatter/formats/cs.ts": () => import("../cs-DVZ0Tapy.js"),
|
62
|
+
"../../utils/formatter/formats/da.ts": () => import("../da-DHy05oSR.js"),
|
63
|
+
"../../utils/formatter/formats/de.ts": () => import("../de-iM39JlAt.js"),
|
64
|
+
"../../utils/formatter/formats/en-GB.ts": () => import("../en-GB-C9t4MSgD.js"),
|
65
|
+
"../../utils/formatter/formats/en-US.ts": () => import("../en-DlRadzUI.js").then((a) => a.e),
|
66
|
+
"../../utils/formatter/formats/en.ts": () => import("../en-DlRadzUI.js").then((a) => a.a),
|
67
|
+
"../../utils/formatter/formats/es.ts": () => import("../es-KhTq4jX8.js"),
|
68
|
+
"../../utils/formatter/formats/fi.ts": () => import("../fi-Dh_ebgpe.js"),
|
69
|
+
"../../utils/formatter/formats/fr.ts": () => import("../fr-CU727YF1.js"),
|
70
|
+
"../../utils/formatter/formats/he.ts": () => import("../he-Au3xg6lR.js"),
|
71
|
+
"../../utils/formatter/formats/hu.ts": () => import("../hu-DNJ-P_MW.js"),
|
72
|
+
"../../utils/formatter/formats/it.ts": () => import("../it-Bh5U73z6.js"),
|
73
|
+
"../../utils/formatter/formats/ja.ts": () => import("../ja-CCcHUL61.js"),
|
74
|
+
"../../utils/formatter/formats/ko.ts": () => import("../ko-DhapsZMM.js"),
|
75
|
+
"../../utils/formatter/formats/mk.ts": () => import("../mk-B9HPSuKa.js"),
|
76
|
+
"../../utils/formatter/formats/nl.ts": () => import("../nl-BwSt5Bf4.js"),
|
77
|
+
"../../utils/formatter/formats/no.ts": () => import("../no-D-DofYnx.js"),
|
78
|
+
"../../utils/formatter/formats/pl.ts": () => import("../pl-D_L_0Boq.js"),
|
79
|
+
"../../utils/formatter/formats/pt.ts": () => import("../pt-B0BBS5VB.js"),
|
80
|
+
"../../utils/formatter/formats/ru.ts": () => import("../ru-Vo-m3O_2.js"),
|
81
|
+
"../../utils/formatter/formats/sv.ts": () => import("../sv-CiozMaev.js"),
|
82
|
+
"../../utils/formatter/formats/tr.ts": () => import("../tr-D_D4i5iv.js"),
|
83
|
+
"../../utils/formatter/formats/zh-CN.ts": () => import("../zh-CN-wsl7eFSd.js"),
|
84
|
+
"../../utils/formatter/formats/zh-TW.ts": () => import("../zh-TW-wsl7eFSd.js")
|
85
|
+
});
|
86
|
+
if (e[`../../utils/formatter/formats/${t}.ts`]) {
|
87
|
+
const a = await e[`../../utils/formatter/formats/${t}.ts`]();
|
88
|
+
this._localeFormats = (a == null ? void 0 : a.default) ?? {};
|
89
|
+
}
|
90
|
+
return this._contentLanguageLoaded = t, this._localeFormats;
|
91
|
+
}
|
92
|
+
},
|
93
|
+
args: () => [this.contentLanguage]
|
94
|
+
}), this.language = "en", this.contentLanguage = "en", this.size = "m", this.slotContent = {}, this._dateLevel = 5, this._displayAs = "default", this._weekStart = "monday", this._weekDayAndMonthInYearFormat = "long", this._dateFormat = "auto", this._dateSeparator = "~", this._sendEvent = () => {
|
95
|
+
this._calculateSlotContent(), this.dispatchEvent(
|
96
|
+
new CustomEvent("slot-content-changed", {
|
97
|
+
bubbles: !0,
|
98
|
+
composed: !0,
|
99
|
+
cancelable: !0,
|
100
|
+
detail: {
|
101
|
+
slotContent: this._currentSlotContent
|
102
|
+
}
|
103
|
+
})
|
104
|
+
);
|
105
|
+
};
|
106
|
+
}
|
107
|
+
static get styles() {
|
108
|
+
return [x(D)];
|
109
|
+
}
|
110
|
+
_parseSlotContent() {
|
111
|
+
var t, e;
|
112
|
+
this._dateLevel = this.slotContent.level ?? ((t = this.slotContent) == null ? void 0 : t.lowestLevel) ?? 5, this._displayAs = ((e = this.slotContent) == null ? void 0 : e.datetimeDisplayMode) ?? "default", this._displayAs === "weekday_number" && (this._displayAs = "day_in_week", this._weekDayAndMonthInYearFormat = "number"), this._displayAs === "weekday_name" && (this._displayAs = "day_in_week"), this._displayAs === "month_number" && (this._displayAs = "month_in_year", this._weekDayAndMonthInYearFormat = "number"), this._displayAs === "month_name" && (this._displayAs = "month_in_year");
|
113
|
+
}
|
114
|
+
_calculateFormat() {
|
115
|
+
var a;
|
116
|
+
let t;
|
117
|
+
const e = ((a = this._localeFormats) == null ? void 0 : a.smartDateFormats) ?? _;
|
118
|
+
this._monthName ? (t = e.filter(
|
119
|
+
(o) => o.monthType === "name" && o.longText === (this._monthNameFormat === "long") && o.weekday === this._weekDay
|
120
|
+
), t.length > 0 ? this._format = t[0].key : (this._weekDayAndMonthInYearFormat = "short", this._weekDay = !0, this._format = "%a %e %B %Y")) : (t = this._dateLevel && this._dateLevel === 4 ? e.filter(
|
121
|
+
(o) => o.monthType === "number" && o.mmdd === (this._weekFormat === "mmdd" ? !0 : this._weekFormat === "ddmm" ? !1 : null) && o.separator === this._dateSeparator
|
122
|
+
) : e.filter(
|
123
|
+
(o) => o.monthType === "number" && o.mmdd === (this._dateFormat === "mmdd" ? !0 : this._dateFormat === "ddmm" ? !1 : null) && o.separator === this._dateSeparator
|
124
|
+
), this._dateFormat === "auto" && this._dateLevel && this._dateLevel !== 4 ? this._format = "%amd" + this._dateSeparator + "%Y" : t.length > 0 ? this._format = t[0].key : (this._dateFormat = "ddmm", this._dateSeparator = "/", this._format = "%d/%m/%Y")), this._dateLevel && this._dateLevel > 5 && (this._format += this._24hFormat ? " %H:%M:%S.%L" : " %I:%M:%S.%L %p");
|
125
|
+
}
|
126
|
+
_setWeekStartsOn() {
|
127
|
+
this._weekStart = this._weekStartElement.value, this._sendEvent(), this.requestUpdate();
|
128
|
+
}
|
129
|
+
_setDisplayAs() {
|
130
|
+
this._displayAs = this._displayAsElement.value, this._sendEvent(), this.requestUpdate();
|
131
|
+
}
|
132
|
+
_setWeekdayAndMonthInYearFormat() {
|
133
|
+
var t;
|
134
|
+
this._weekDayAndMonthInYearFormat = ((t = this._weekDayAndMonthInYearFormatElement.selected) == null ? void 0 : t[0]) ?? "long", this._sendEvent(), this.requestUpdate();
|
135
|
+
}
|
136
|
+
_setMonthNameFormat() {
|
137
|
+
var t;
|
138
|
+
this._monthNameFormat = (t = this._monthNameFormatElement.selected) == null ? void 0 : t[0], this._sendEvent(), this.requestUpdate();
|
139
|
+
}
|
140
|
+
_setMonthName() {
|
141
|
+
this._monthName = this._monthNameElement.selected, this._sendEvent(), this.requestUpdate();
|
142
|
+
}
|
143
|
+
_setWeekFormat() {
|
144
|
+
var t;
|
145
|
+
this._weekFormat = (t = this._weekFormatElement.selected) == null ? void 0 : t[0], this._sendEvent(), this.requestUpdate();
|
146
|
+
}
|
147
|
+
_setDateFormat() {
|
148
|
+
this._dateFormat = this._dateFormatElement.value, this._sendEvent(), this.requestUpdate();
|
149
|
+
}
|
150
|
+
_setDateSeparator() {
|
151
|
+
this._dateSeparator = this._dateSeparatorElement.value, this._sendEvent(), this.requestUpdate();
|
152
|
+
}
|
153
|
+
_set24hFormat() {
|
154
|
+
this._24hFormat = this._format24hElement.selected, this._sendEvent(), this.requestUpdate();
|
155
|
+
}
|
156
|
+
_setWeekday() {
|
157
|
+
this._weekDay = this._weekDayElement.selected, this._sendEvent(), this.requestUpdate();
|
158
|
+
}
|
159
|
+
_calculateSlotContent() {
|
160
|
+
this._currentSlotContent = { ...this.slotContent }, this._calculateFormat(), this._currentSlotContent.format = this._format, this._displayAs === "default" ? delete this._currentSlotContent.datetimeDisplayMode : (this._currentSlotContent.datetimeDisplayMode = this._displayAs, this._displayAs === "week_in_year" ? this._currentSlotContent.datetimeDisplayMode = this._weekDayAndMonthInYearFormat === "number" ? "week_number" : "week_name" : this._displayAs === "month_in_year" ? this._currentSlotContent.datetimeDisplayMode = this._weekDayAndMonthInYearFormat === "number" ? "month_number" : "month_name" : this._displayAs === "day_in_week" && (this._currentSlotContent.datetimeDisplayMode = this._weekDayAndMonthInYearFormat === "number" ? "weekday_number" : "weekday_name", this._currentSlotContent.weekStart = this._weekStart), this._weekDayAndMonthInYearFormat && (this._dateLevel === 3 ? this._currentSlotContent.monthNameFormat = this._weekDayAndMonthInYearFormat : this._dateLevel === 5 && (this._currentSlotContent.weekDayNameFormat = this._weekDayAndMonthInYearFormat)));
|
161
|
+
}
|
162
|
+
willUpdate(t) {
|
163
|
+
t.has("slotContent") && (this._parseSlotContent(), this._calculateSlotContent()), t.has("language") && ([...F].includes(this.language) || this.language === "en") && ($(this.language), this.requestUpdate());
|
164
|
+
}
|
165
|
+
_renderDisplaySettings() {
|
166
|
+
var e, a;
|
167
|
+
const t = (a = (e = L) == null ? void 0 : e[`level${this._dateLevel ?? 0}`]) == null ? void 0 : a.map(
|
168
|
+
(o) => s`<luzmo-menu-item value=${o.key}>
|
169
|
+
${o.i18n()}
|
170
|
+
</luzmo-menu-item>`
|
171
|
+
);
|
172
|
+
return s`<div class="setting">
|
173
|
+
<luzmo-field-label for="display-as"
|
174
|
+
>${i("Display", {
|
175
|
+
desc: "Label for display setting"
|
176
|
+
})}</luzmo-field-label
|
177
|
+
>
|
178
|
+
<luzmo-picker
|
179
|
+
id="display-as"
|
180
|
+
size=${this.size}
|
181
|
+
variant="highlight"
|
182
|
+
value=${this._displayAs ?? "default"}
|
183
|
+
@change=${this._setDisplayAs}
|
184
|
+
>
|
185
|
+
${t}
|
186
|
+
</luzmo-picker>
|
187
|
+
</div>`;
|
188
|
+
}
|
189
|
+
_renderWeekDayAndMonthNameFormatSettings() {
|
190
|
+
const t = Object.keys(
|
191
|
+
z
|
192
|
+
).map((e) => s`<luzmo-action-button value=${e}>
|
193
|
+
${z[e]()}
|
194
|
+
</luzmo-action-button>`);
|
195
|
+
return s` <div class="setting">
|
196
|
+
<luzmo-field-label for="weekday-and-month-in-year-format"
|
197
|
+
>${i("Format", {
|
198
|
+
desc: "Label for format setting"
|
199
|
+
})}</luzmo-field-label
|
200
|
+
>
|
201
|
+
<luzmo-action-group
|
202
|
+
emphasized
|
203
|
+
id="weekday-and-month-in-year-format"
|
204
|
+
size=${this.size}
|
205
|
+
compact
|
206
|
+
.selected=${[this._weekDayAndMonthInYearFormat ?? "short"]}
|
207
|
+
selects="single"
|
208
|
+
@change=${this._setWeekdayAndMonthInYearFormat}
|
209
|
+
>
|
210
|
+
${t}
|
211
|
+
</luzmo-action-group>
|
212
|
+
</div>`;
|
213
|
+
}
|
214
|
+
_renderMonthNameFormatSettings() {
|
215
|
+
return s` <div class="setting">
|
216
|
+
<luzmo-field-label for="month-name-format"
|
217
|
+
>${i("Format", {
|
218
|
+
desc: "Label for format setting"
|
219
|
+
})}</luzmo-field-label
|
220
|
+
>
|
221
|
+
<luzmo-action-group
|
222
|
+
emphasized
|
223
|
+
id="month-name-format"
|
224
|
+
size=${this.size}
|
225
|
+
compact
|
226
|
+
.selected=${[this._monthNameFormat ?? "long"]}
|
227
|
+
selects="single"
|
228
|
+
@change=${this._setMonthNameFormat}
|
229
|
+
>
|
230
|
+
<luzmo-action-button value="short">
|
231
|
+
${i("Short", { desc: "Short format option" })}
|
232
|
+
</luzmo-action-button>
|
233
|
+
<luzmo-action-button value="long">
|
234
|
+
${i("Long", { desc: "Long format option" })}
|
235
|
+
</luzmo-action-button>
|
236
|
+
</luzmo-action-group>
|
237
|
+
</div>`;
|
238
|
+
}
|
239
|
+
_renderWeekFormatSettings() {
|
240
|
+
var o;
|
241
|
+
const t = ((o = this._localeFormats) == null ? void 0 : o.smartDateFormats) ?? _, e = t.find(
|
242
|
+
(l) => l.mmdd === !0 && l.separator === this._dateSeparator && l.monthType === "number"
|
243
|
+
), a = t.find(
|
244
|
+
(l) => l.mmdd === !1 && l.separator === this._dateSeparator && l.monthType === "number"
|
245
|
+
);
|
246
|
+
return s` <div class="setting">
|
247
|
+
<luzmo-field-label for="week-format"
|
248
|
+
>${i("Format", {
|
249
|
+
desc: "Label for format setting"
|
250
|
+
})}</luzmo-field-label
|
251
|
+
>
|
252
|
+
<luzmo-action-group
|
253
|
+
emphasized
|
254
|
+
id="week-format"
|
255
|
+
size=${this.size}
|
256
|
+
compact
|
257
|
+
.selected=${[this._weekFormat ?? "ddmm"]}
|
258
|
+
selects="single"
|
259
|
+
@change=${this._setWeekFormat}
|
260
|
+
>
|
261
|
+
<luzmo-action-button value="ddmm">
|
262
|
+
${f(
|
263
|
+
{
|
264
|
+
...this._currentSlotContent,
|
265
|
+
type: "datetime",
|
266
|
+
format: a == null ? void 0 : a.key
|
267
|
+
},
|
268
|
+
{
|
269
|
+
localFormats: this._localeFormats,
|
270
|
+
level: this._dateLevel
|
271
|
+
}
|
272
|
+
)(/* @__PURE__ */ new Date())}
|
273
|
+
</luzmo-action-button>
|
274
|
+
<luzmo-action-button value="mmdd"
|
275
|
+
>${f(
|
276
|
+
{
|
277
|
+
...this._currentSlotContent,
|
278
|
+
type: "datetime",
|
279
|
+
format: e == null ? void 0 : e.key
|
280
|
+
},
|
281
|
+
{
|
282
|
+
localFormats: this._localeFormats,
|
283
|
+
level: this._dateLevel
|
284
|
+
}
|
285
|
+
)(/* @__PURE__ */ new Date())}</luzmo-action-button
|
286
|
+
>
|
287
|
+
</luzmo-action-group>
|
288
|
+
</div>`;
|
289
|
+
}
|
290
|
+
_renderWeekStartsOnSettings() {
|
291
|
+
const t = Object.keys(g).map(
|
292
|
+
(e) => s`<luzmo-menu-item value=${e}>
|
293
|
+
${g[e]()}
|
294
|
+
</luzmo-menu-item>`
|
295
|
+
);
|
296
|
+
return s`<div class="setting">
|
297
|
+
<luzmo-field-label for="week-start"
|
298
|
+
>${i("Week starts on", {
|
299
|
+
desc: "Label for week start setting"
|
300
|
+
})}</luzmo-field-label
|
301
|
+
>
|
302
|
+
<luzmo-picker
|
303
|
+
id="week-start"
|
304
|
+
size=${this.size}
|
305
|
+
variant="highlight"
|
306
|
+
value=${this._weekStart ?? "Auto"}
|
307
|
+
@change=${this._setWeekStartsOn}
|
308
|
+
>
|
309
|
+
${t}
|
310
|
+
</luzmo-picker>
|
311
|
+
</div>`;
|
312
|
+
}
|
313
|
+
_renderMonthNameSettings() {
|
314
|
+
return s`<div class="settings-">
|
315
|
+
<luzmo-field-label for="month-name"
|
316
|
+
>${i("Month", { desc: "Month format setting" })}</luzmo-field-label
|
317
|
+
>
|
318
|
+
<luzmo-action-button
|
319
|
+
id="month-name"
|
320
|
+
emphasized
|
321
|
+
toggles
|
322
|
+
.size=${this.size}
|
323
|
+
?selected=${this._monthName}
|
324
|
+
@change=${this._setMonthName}
|
325
|
+
>
|
326
|
+
<luzmo-icon
|
327
|
+
slot="icon"
|
328
|
+
.size=${this.size}
|
329
|
+
.icon=${this._monthName ? p : c}
|
330
|
+
></luzmo-icon>
|
331
|
+
${i("Name")}
|
332
|
+
</luzmo-action-button>
|
333
|
+
</div>`;
|
334
|
+
}
|
335
|
+
_renderDateFormatSettings() {
|
336
|
+
const t = this._dateSeparator === "~" ? "/" : this._dateSeparator;
|
337
|
+
return s`<div class="setting">
|
338
|
+
<luzmo-field-label for="date-format"
|
339
|
+
>${i("Format", {
|
340
|
+
desc: "Label for format setting"
|
341
|
+
})}</luzmo-field-label
|
342
|
+
>
|
343
|
+
<luzmo-picker
|
344
|
+
id="date-format"
|
345
|
+
size=${this.size}
|
346
|
+
variant="highlight"
|
347
|
+
value=${this._dateFormat ?? "Auto"}
|
348
|
+
@change=${this._setDateFormat}
|
349
|
+
>
|
350
|
+
<luzmo-menu-item value="auto">
|
351
|
+
${i("Auto", { desc: "Automatic setting of the option" })}
|
352
|
+
</luzmo-menu-item>
|
353
|
+
<luzmo-menu-item value="mmdd">12${t}31</luzmo-menu-item>
|
354
|
+
<luzmo-menu-item value="ddmm">31${t}12</luzmo-menu-item>
|
355
|
+
</luzmo-picker>
|
356
|
+
</div>`;
|
357
|
+
}
|
358
|
+
_renderSeparatorSettings() {
|
359
|
+
const t = Object.keys(y).map(
|
360
|
+
(e) => s`<luzmo-menu-item value=${e}>
|
361
|
+
${y[e]()}
|
362
|
+
</luzmo-menu-item>`
|
363
|
+
);
|
364
|
+
return s`<div class="setting">
|
365
|
+
<luzmo-field-label for="date-separator"
|
366
|
+
>${i("Separator", {
|
367
|
+
desc: "Label for date separator setting"
|
368
|
+
})}</luzmo-field-label
|
369
|
+
>
|
370
|
+
<luzmo-picker
|
371
|
+
id="date-separator"
|
372
|
+
size=${this.size}
|
373
|
+
variant="highlight"
|
374
|
+
value=${this._dateSeparator ?? "~"}
|
375
|
+
@change=${this._setDateSeparator}
|
376
|
+
>
|
377
|
+
${t}
|
378
|
+
</luzmo-picker>
|
379
|
+
</div>`;
|
380
|
+
}
|
381
|
+
_render24hFormatSettings() {
|
382
|
+
return s`<div class="settings-">
|
383
|
+
<luzmo-field-label for="format-24h"
|
384
|
+
>${i("24h", {
|
385
|
+
desc: "Label for 24h format setting"
|
386
|
+
})}</luzmo-field-label
|
387
|
+
>
|
388
|
+
<luzmo-action-button
|
389
|
+
id="format-24h"
|
390
|
+
emphasized
|
391
|
+
toggles
|
392
|
+
.size=${this.size}
|
393
|
+
?selected=${this._24hFormat}
|
394
|
+
@change=${this._set24hFormat}
|
395
|
+
>
|
396
|
+
<luzmo-icon
|
397
|
+
slot="icon"
|
398
|
+
.size=${this.size}
|
399
|
+
.icon=${this._24hFormat ? p : c}
|
400
|
+
></luzmo-icon>
|
401
|
+
</luzmo-action-button>
|
402
|
+
</div>`;
|
403
|
+
}
|
404
|
+
_renderWeekdaySettings() {
|
405
|
+
return s`<div class="settings-">
|
406
|
+
<luzmo-field-label for="weekday"
|
407
|
+
>${i("Weekday", {
|
408
|
+
desc: "Label for weekday setting"
|
409
|
+
})}</luzmo-field-label
|
410
|
+
>
|
411
|
+
<luzmo-action-button
|
412
|
+
id="weekday"
|
413
|
+
emphasized
|
414
|
+
toggles
|
415
|
+
.size=${this.size}
|
416
|
+
?selected=${this._weekDay}
|
417
|
+
@change=${this._setWeekday}
|
418
|
+
>
|
419
|
+
<luzmo-icon
|
420
|
+
slot="icon"
|
421
|
+
.size=${this.size}
|
422
|
+
.icon=${this._weekDay ? p : c}
|
423
|
+
></luzmo-icon>
|
424
|
+
${i("Show")}
|
425
|
+
</luzmo-action-button>
|
426
|
+
</div>`;
|
427
|
+
}
|
428
|
+
_renderExampleFormat() {
|
429
|
+
return s`<span class="example">
|
430
|
+
${f(
|
431
|
+
{
|
432
|
+
...this._currentSlotContent,
|
433
|
+
type: "datetime"
|
434
|
+
},
|
435
|
+
{
|
436
|
+
localFormats: this._localeFormats,
|
437
|
+
level: this._dateLevel
|
438
|
+
}
|
439
|
+
)(!this._displayAs || this._displayAs === "default" ? /* @__PURE__ */ new Date() : 1)}
|
440
|
+
</span>
|
441
|
+
${(this._dateSeparator === "~" || this._dateFormat === "auto") && !this._monthName ? s`<span class="example-language">
|
442
|
+
(${this.contentLanguage})
|
443
|
+
</span>` : ""}`;
|
444
|
+
}
|
445
|
+
_renderAllSettings() {
|
446
|
+
return s`<div class="settings-container">
|
447
|
+
${this._dateLevel && ![1, 9].includes(this._dateLevel) ? s` <div class="settings-row">
|
448
|
+
${this._renderDisplaySettings()}
|
449
|
+
${this._dateLevel && this._dateLevel >= 5 && this._displayAs === "day_in_week" ? this._renderWeekStartsOnSettings() : ""}
|
450
|
+
</div>` : ""}
|
451
|
+
${["month_in_year", "day_in_week"].includes(this._displayAs ?? "") ? s` <div class="settings-row">
|
452
|
+
${this._renderWeekDayAndMonthNameFormatSettings()}
|
453
|
+
</div>` : ""}
|
454
|
+
${this._dateLevel && this._dateLevel > 1 && this._displayAs === "default" ? s` <div class="settings-row">
|
455
|
+
${this._dateLevel && this._dateLevel !== 4 && this._dateLevel !== 2 ? this._renderMonthNameSettings() : ""}
|
456
|
+
${this._dateLevel && this._dateLevel !== 4 && this._dateLevel > 2 && this._monthName ? this._renderMonthNameFormatSettings() : ""}
|
457
|
+
${this._dateLevel && this._dateLevel === 4 && !this._monthName ? this._renderWeekFormatSettings() : ""}
|
458
|
+
${this._dateLevel && this._dateLevel >= 5 && !this._monthName ? this._renderDateFormatSettings() : ""}
|
459
|
+
${this._dateLevel && this._dateLevel > 1 && !this._monthName ? this._renderSeparatorSettings() : ""}
|
460
|
+
${this._dateLevel && this._dateLevel >= 5 && this._monthName ? this._renderWeekdaySettings() : ""}
|
461
|
+
${this._dateLevel && this._dateLevel > 5 ? this._render24hFormatSettings() : ""}
|
462
|
+
</div>` : ""}
|
463
|
+
<div class="settings-row">
|
464
|
+
<div class="example-container">
|
465
|
+
<span class="example-label"
|
466
|
+
>${i("Example:", { desc: "Label for example format" })}</span
|
467
|
+
>
|
468
|
+
${this._renderExampleFormat()}
|
469
|
+
</div>
|
470
|
+
</div>
|
471
|
+
</div>`;
|
472
|
+
}
|
473
|
+
render() {
|
474
|
+
return this._loadLocaleFormatsConfig.render({
|
475
|
+
pending: () => s`<luzmo-progress-circle
|
476
|
+
indeterminate
|
477
|
+
.size=${this.size}
|
478
|
+
></luzmo-progress-circle>`,
|
479
|
+
complete: () => this._renderAllSettings(),
|
480
|
+
error: () => this._renderAllSettings()
|
481
|
+
});
|
482
|
+
}
|
483
|
+
};
|
484
|
+
m([
|
485
|
+
d({ type: String })
|
486
|
+
], r.prototype, "language", 2);
|
487
|
+
m([
|
488
|
+
d({ type: String })
|
489
|
+
], r.prototype, "contentLanguage", 2);
|
490
|
+
m([
|
491
|
+
d({ type: String })
|
492
|
+
], r.prototype, "size", 2);
|
493
|
+
m([
|
494
|
+
d({ type: Object, reflect: !1 })
|
495
|
+
], r.prototype, "slotContent", 2);
|
496
|
+
m([
|
497
|
+
n("#display-as")
|
498
|
+
], r.prototype, "_displayAsElement", 2);
|
499
|
+
m([
|
500
|
+
n("#week-start")
|
501
|
+
], r.prototype, "_weekStartElement", 2);
|
502
|
+
m([
|
503
|
+
n("#weekday-and-month-in-year-format")
|
504
|
+
], r.prototype, "_weekDayAndMonthInYearFormatElement", 2);
|
505
|
+
m([
|
506
|
+
n("#month-name-format")
|
507
|
+
], r.prototype, "_monthNameFormatElement", 2);
|
508
|
+
m([
|
509
|
+
n("#month-name")
|
510
|
+
], r.prototype, "_monthNameElement", 2);
|
511
|
+
m([
|
512
|
+
n("#week-format")
|
513
|
+
], r.prototype, "_weekFormatElement", 2);
|
514
|
+
m([
|
515
|
+
n("#date-format")
|
516
|
+
], r.prototype, "_dateFormatElement", 2);
|
517
|
+
m([
|
518
|
+
n("#date-separator")
|
519
|
+
], r.prototype, "_dateSeparatorElement", 2);
|
520
|
+
m([
|
521
|
+
n("#weekday")
|
522
|
+
], r.prototype, "_weekDayElement", 2);
|
523
|
+
m([
|
524
|
+
n("#format-24h")
|
525
|
+
], r.prototype, "_format24hElement", 2);
|
526
|
+
r = m([
|
527
|
+
A()
|
528
|
+
], r);
|
529
|
+
customElements.get("luzmo-display-settings-datetime") || customElements.define(
|
530
|
+
"luzmo-display-settings-datetime",
|
531
|
+
r
|
532
|
+
);
|
533
|
+
export {
|
534
|
+
r as LuzmoDisplaySettingsDatetime
|
535
|
+
};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import '@luzmo/lucero/action-button';
|
2
|
+
import '@luzmo/lucero/field-label';
|
3
|
+
import '@luzmo/lucero/icon';
|
4
|
+
import { LuzmoElement } from '@luzmo/lucero/utils';
|
5
|
+
import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
|
6
|
+
declare const LuzmoDisplaySettingsGrandTotals_base: typeof LuzmoElement & {
|
7
|
+
new (...args: any[]): import("@luzmo/lucero").SizedElementInterface;
|
8
|
+
prototype: import("@luzmo/lucero").SizedElementInterface;
|
9
|
+
};
|
10
|
+
/**
|
11
|
+
* @element luzmo-display-settings-grand-totals
|
12
|
+
* @fires slot-content-changed - Event that is fired when the slot content is changed
|
13
|
+
*/
|
14
|
+
export declare class LuzmoDisplaySettingsGrandTotals extends LuzmoDisplaySettingsGrandTotals_base {
|
15
|
+
static get styles(): CSSResultArray;
|
16
|
+
/**
|
17
|
+
* The language used in the settings
|
18
|
+
*/
|
19
|
+
language: string;
|
20
|
+
/**
|
21
|
+
* The slotContent that is passed to the settings
|
22
|
+
*/
|
23
|
+
slotContent: any;
|
24
|
+
private _enabled?;
|
25
|
+
protected willUpdate(changedProperties: PropertyValues): void;
|
26
|
+
protected updated(changedProperties: PropertyValues): void;
|
27
|
+
private toggleGrandTotals;
|
28
|
+
private sendEvent;
|
29
|
+
protected render(): TemplateResult;
|
30
|
+
}
|
31
|
+
export {};
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
2
|
+
*
|
3
|
+
* Copyright © 2024 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"});require("../index-zuArOtOt.cjs");require("../index-Bt5nP_6w.cjs");require("../index-h9T5DPIm.cjs");const l=require("../property-0L4eB11h.cjs"),g=require("../sized-mixin-BxMraZLS-DEFWqo8f.cjs"),n=require("../set-locale-ByIApH40.cjs"),u=require("../luzmo-icons-XsFsTAl3.cjs"),c=require("../state-BFA93Sye.cjs"),p=require("../if-defined-8BOch-oC.cjs"),m=":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-grand-totals-gap, var(--display-settings-grand-totals-gap))}:host{--display-settings-grand-totals-gap: var(--luzmo-spacing-3)}:host([size=s]){--display-settings-grand-totals-gap: var(--luzmo-spacing-3)}:host([size=l]){--display-settings-grand-totals-gap: var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-grand-totals-gap: var(--luzmo-spacing-5)}";var h=Object.defineProperty,z=Object.getOwnPropertyDescriptor,i=(o,t,a,e)=>{for(var s=e>1?void 0:e?z(t,a):t,r=o.length-1,d;r>=0;r--)(d=o[r])&&(s=(e?d(t,a,s):d(s))||s);return e&&s&&h(t,a,s),s};exports.LuzmoDisplaySettingsGrandTotals=class extends g.m(l.kt,{validSizes:Object.values(g.d)}){constructor(){super(...arguments),this.language="en",this.slotContent={}}static get styles(){return[l.r$1(m)]}willUpdate(t){var a,e;t.has("slotContent")&&(this._enabled=((e=(a=this.slotContent)==null?void 0:a.grandTotals)==null?void 0:e.enabled)??!1)}updated(t){t.has("language")&&([...n.targetLocales].includes(this.language??"en")||this.language==="en")&&n.setLocale(this.language)}toggleGrandTotals(){this._enabled=!this._enabled,this.sendEvent()}sendEvent(){const t={enabled:!!this._enabled};this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,grandTotals:t}}}))}render(){return l.x`<div class="settings-container">
|
21
|
+
<div class="settings-row">
|
22
|
+
<div class="setting">
|
23
|
+
<luzmo-field-label for="grand-totals"
|
24
|
+
>${n.msg("Grand totals",{desc:"Label for grand totals setting in a table"})}</luzmo-field-label
|
25
|
+
>
|
26
|
+
<luzmo-action-button
|
27
|
+
id="grand-totals"
|
28
|
+
toggles
|
29
|
+
emphasized
|
30
|
+
.size=${this.size}
|
31
|
+
?selected=${this._enabled}
|
32
|
+
class=${p.o(this._enabled?"active":"inactive")}
|
33
|
+
@click=${this.toggleGrandTotals}
|
34
|
+
>
|
35
|
+
<luzmo-icon
|
36
|
+
slot="icon"
|
37
|
+
.icon=${this._enabled?u.C0:u.h0}
|
38
|
+
></luzmo-icon>
|
39
|
+
${this._enabled?n.msg("Enabled",{desc:"Option set to enabled"}):n.msg("Disabled",{desc:"Option set to disabled"})}
|
40
|
+
</luzmo-action-button>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</div>`}};i([l.n({type:String,reflect:!0})],exports.LuzmoDisplaySettingsGrandTotals.prototype,"language",2);i([l.n()],exports.LuzmoDisplaySettingsGrandTotals.prototype,"slotContent",2);i([c.r()],exports.LuzmoDisplaySettingsGrandTotals.prototype,"_enabled",2);exports.LuzmoDisplaySettingsGrandTotals=i([n.localized()],exports.LuzmoDisplaySettingsGrandTotals);customElements.get("luzmo-display-settings-grand-totals")||customElements.define("luzmo-display-settings-grand-totals",exports.LuzmoDisplaySettingsGrandTotals);
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { LuzmoDisplaySettingsGrandTotals } from './display-settings-grand-totals';
|
2
|
+
declare global {
|
3
|
+
interface HTMLElementTagNameMap {
|
4
|
+
'luzmo-display-settings-grand-totals': LuzmoDisplaySettingsGrandTotals;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
export { LuzmoDisplaySettingsGrandTotals } from './display-settings-grand-totals';
|