@luzmo/analytics-components-kit 1.0.1-alpha.10 → 1.0.1-alpha.13
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/area-chart.config-Ba68ZiSX.js +198 -0
- package/components/area-chart.config-Vo0u3UK8.cjs +20 -0
- package/components/{column-chart.config-C9hP0kX7.js → bar-chart.config-CF1i1Imw.js} +67 -39
- package/components/bar-chart.config-YLP38HOE.cjs +20 -0
- package/components/{bar-chart.en-FwT00qdU.js → bar-chart.en-Crc8tYUJ.js} +17 -0
- package/components/{donut-chart.en-Blb9oSdU.cjs → bar-chart.en-D1UfGsS3.cjs} +1 -1
- 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/{bar-chart.nl-ahX1ARpH.js → box-plot-slots.config-BRhnF2FE.js} +25 -21
- package/components/box-plot-slots.config-DZxyy3sS.cjs +20 -0
- package/components/{textobject.config-C8opcGG4.js → bubble-chart-slots.config-Bbh94VgZ.js} +18 -24
- package/components/bubble-chart-slots.config-BwSwgleO.cjs +20 -0
- package/components/bubble-chart.config-1MrC55Nb.js +142 -0
- package/components/bubble-chart.config-bQBq1s3C.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/choropleth-map-slots.config-B-uJTj4q.js +47 -0
- package/components/{bar-chart.nl-BYzVExsz.cjs → choropleth-map-slots.config-PNwSR0XY.cjs} +1 -1
- package/components/{donut-chart.nl-D9YGbOce.cjs → circle-pack-chart-slots.config-C-_ganmv.cjs} +1 -1
- package/components/circle-pack-chart-slots.config-xwVdRiwS.js +40 -0
- package/components/circle-pack-chart.config-BOlrxRJA.cjs +20 -0
- package/components/circle-pack-chart.config-Bbm2bTgy.js +110 -0
- package/components/{donut-chart.fr-BeTVa2wh.cjs → circular-gauge-slots.config-Cd-nkNPm.cjs} +1 -1
- 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/{bar-chart.config-CQ6HAvs2.js → column-chart.config-BT1QH4BI.js} +64 -37
- package/components/column-chart.config-CppyNukh.cjs +20 -0
- package/components/column-chart.en-Crc8tYUJ.js +86 -0
- package/components/{bar-chart.en-BqYbiHO3.cjs → column-chart.en-D1UfGsS3.cjs} +1 -1
- 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/date-filter-slots.config-Cb1LcT9W.cjs +20 -0
- package/components/date-filter-slots.config-CxB8IF5B.js +33 -0
- package/components/display-settings-datetime/index.cjs +209 -1
- package/components/display-settings-datetime/index.js +518 -6
- package/components/donut-chart.config-B_38UAqp.cjs +20 -0
- package/components/{donut-chart.config-3DhKiSSM.js → donut-chart.config-DuJFyp4z.js} +4 -2
- package/components/{donut-chart.en-CzjT4-XN.js → donut-chart.en-CrUf4CJ9.js} +14 -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-level/index.cjs +1 -1
- package/components/draggable-data-item-level/index.js +1 -1
- package/components/dropdown-filter-slots.config-B8J6ftCh.js +46 -0
- package/components/dropdown-filter-slots.config-I2n4b_6V.cjs +20 -0
- package/components/dropdown-filter.config-BPBxTuLQ.cjs +20 -0
- package/components/dropdown-filter.config-Drv-A4zw.js +163 -0
- package/components/droppable-slot/index.cjs +12 -12
- package/components/droppable-slot/index.js +126 -85
- 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/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/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/index.cjs +16 -18
- package/components/edit-item/index.js +195 -164
- package/components/edit-option/helpers/control-templates/position-picker-template.d.ts +2 -0
- package/components/edit-option/index.cjs +135 -116
- package/components/edit-option/index.js +352 -280
- package/components/edit-option/item-configs/area-chart.config.d.ts +146 -0
- package/components/edit-option/item-configs/bar-chart.config.d.ts +23 -2
- package/components/edit-option/item-configs/bubble-chart.config.d.ts +90 -0
- package/components/edit-option/item-configs/circle-pack-chart.config.d.ts +35 -0
- package/components/edit-option/item-configs/column-chart.config.d.ts +17 -2
- package/components/edit-option/item-configs/donut-chart.config.d.ts +4 -0
- package/components/edit-option/item-configs/dropdown-filter.config.d.ts +74 -0
- package/components/edit-option/item-configs/imageobject.config.d.ts +1 -3
- package/components/edit-option/item-configs/line-chart.config.d.ts +52 -2
- package/components/edit-option/item-configs/ohlc-chart.config.d.ts +37 -0
- package/components/edit-option/item-configs/radar-chart.config.d.ts +122 -0
- package/components/edit-option/item-configs/sankey-diagram.config.d.ts +46 -0
- package/components/edit-option/item-configs/search-filter.config.d.ts +40 -0
- package/components/edit-option/item-configs/slicer-filter.config.d.ts +136 -0
- package/components/edit-option/item-configs/slider-filter.config.d.ts +45 -0
- package/components/edit-option/item-configs/spacer.config.d.ts +2 -0
- package/components/edit-option/item-configs/sunburst-chart.config.d.ts +51 -0
- package/components/edit-option/item-configs/textobject.config.d.ts +34 -2
- package/components/edit-option/item-configs/treemap-chart.config.d.ts +103 -0
- package/components/edit-option/item-configs/videoobject.config.d.ts +90 -0
- package/components/edit-option/item-configs/wordcloud-chart.config.d.ts +46 -0
- package/components/edit-option/item-translations/bar-chart.en.d.ts +17 -0
- package/components/edit-option/item-translations/bar-chart.fr.d.ts +47 -5
- package/components/edit-option/item-translations/bar-chart.nl.d.ts +47 -5
- 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 +14 -0
- package/components/edit-option/item-translations/donut-chart.fr.d.ts +62 -2
- package/components/edit-option/item-translations/donut-chart.nl.d.ts +62 -2
- 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/index.cjs +12 -5
- package/components/edit-option-action-button-group/index.js +26 -19
- package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +2 -0
- package/components/edit-option-multi-language-field/index.cjs +3 -3
- package/components/edit-option-multi-language-field/index.js +32 -22
- 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 +11 -9
- package/components/edit-option-positions-number-field/index.cjs +12 -12
- package/components/edit-option-positions-number-field/index.js +84 -75
- package/components/{en-GB-DX5un7Gr.js → en-GB-BtLbN8o_.js} +1 -1
- package/components/en-GB-Dd11ROdW.cjs +20 -0
- package/components/evolution-number-slots.config-BI-sFIug.cjs +20 -0
- package/components/evolution-number-slots.config-CW21b2ua.js +39 -0
- package/components/formatter-CQDms6fU.js +1478 -0
- package/components/formatter-DiJYkB6b.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/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/image-slots.config-IpwUxDyU.js +23 -0
- package/components/{en-GB-Bz4u7Uqv.cjs → image-slots.config-mPXMR1CE.cjs} +1 -1
- package/components/{imageobject.config-DZLp9Elq.js → imageobject.config-CBfeq5Zw.js} +2 -2
- package/components/{imageobject.config-B7ld9bj3.cjs → imageobject.config-Dqhc2c3b.cjs} +1 -1
- 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-DXyAeBh6.cjs +20 -0
- package/components/index-Di00QW2f.js +113 -0
- package/components/index.cjs +1 -1
- package/components/index.js +35 -25
- 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/item-slots-configs.cjs +20 -0
- package/components/item-slots-configs.js +109 -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-BB_thZtA.js +179 -0
- package/components/line-chart.config-i2233s5F.cjs +20 -0
- package/components/{localize-B6AsX_Zv.js → localize-BX7q0S0M.js} +16 -16
- package/components/localize-r7ALOUy_.cjs +20 -0
- package/components/marker-map-slots.config-CSxSsQwX.cjs +20 -0
- package/components/marker-map-slots.config-cdD8XTmI.js +39 -0
- package/components/ohlc-chart-slots.config-Cvy5n1xv.js +64 -0
- package/components/ohlc-chart-slots.config-DMomcHMV.cjs +20 -0
- package/components/ohlc-chart.config-BLlRV_bs.cjs +20 -0
- package/components/ohlc-chart.config-D9npwajt.js +75 -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/pivot-table-slots.config-BH5fOJre.js +48 -0
- package/components/pivot-table-slots.config-DzGWM3Ez.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/radar-chart-slots.config-Dpmytmc3.js +47 -0
- package/components/radar-chart-slots.config-Dxx5fKnS.cjs +20 -0
- package/components/radar-chart.config-DPPlIptA.cjs +20 -0
- package/components/radar-chart.config-DfID1TZ-.js +164 -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/sankey-diagram-slots.config-B7Q-ZfUP.cjs +20 -0
- package/components/sankey-diagram-slots.config-BSTBEZDe.js +55 -0
- package/components/sankey-diagram.config-BVjCEw5M.js +138 -0
- package/components/sankey-diagram.config-CG5S1OI3.cjs +20 -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/search-filter.config-C9CoGS9f.cjs +20 -0
- package/components/search-filter.config-baX2Vdul.js +111 -0
- package/components/{bar-chart.fr-DbxKiM0j.js → slicer-filter-slots.config-CHQ0ZXga.js} +21 -20
- package/components/slicer-filter-slots.config-Dyte3aGp.cjs +20 -0
- package/components/slicer-filter.config-A3YK_KZn.js +211 -0
- package/components/slicer-filter.config-DQunaj8q.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/slider-filter.config-C-zvfTNl.js +98 -0
- package/components/slider-filter.config-DF_sAElS.cjs +20 -0
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +1 -1
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +1 -1
- 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/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/sunburst-chart.config-CEfAd1RQ.cjs +20 -0
- package/components/sunburst-chart.config-VZqDthcz.js +139 -0
- package/components/symbol-map-slots.config-C5CKaVED.js +47 -0
- package/components/{bar-chart.fr-DGx9smEh.cjs → symbol-map-slots.config-DtW-3xkd.cjs} +1 -1
- package/components/text-slots.config-BMBEkf0O.cjs +20 -0
- package/components/text-slots.config-Hy5yNIAX.js +23 -0
- package/components/{textobject.config-DbAajFz8.cjs → textobject.config-BFB3rEmt.cjs} +1 -1
- 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/{donut-chart.nl-NMatXfhK.js → textobject.fr-VPJ3bDOM.js} +11 -12
- package/components/textobject.nl-DzglrI3i.cjs +20 -0
- package/components/{donut-chart.fr-DftPrKbG.js → textobject.nl-V03mmGmH.js} +11 -12
- package/components/treemap-chart-slots.config-C3bnHCyy.cjs +20 -0
- package/components/treemap-chart-slots.config-xLD22K9V.js +46 -0
- package/components/treemap-chart.config-BalwwrhW.js +214 -0
- package/components/treemap-chart.config-D6H5Hf2B.cjs +20 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +71 -1
- 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/wordcloud-chart-slots.config-BS4sOOHt.js +44 -0
- package/components/wordcloud-chart-slots.config-D7CiYopX.cjs +20 -0
- package/components/wordcloud-chart.config-BLvcDvxT.cjs +20 -0
- package/components/wordcloud-chart.config-CQs8YFfd.js +89 -0
- package/custom-elements.json +3426 -1767
- package/index.d.ts +2 -0
- package/package.json +16 -1
- package/utils/index.d.ts +4 -1
- package/utils/switch-item/index.d.ts +18 -0
- package/components/bar-chart.config-B57geUzJ.cjs +0 -20
- package/components/column-chart.config-B57geUzJ.cjs +0 -20
- package/components/donut-chart.config-DLWJUlHx.cjs +0 -20
- package/components/en-BByOeNuP.js +0 -1989
- package/components/en-BFGuvaVG.cjs +0 -228
- package/components/line-chart.config-BZcvfO2c.cjs +0 -20
- package/components/line-chart.config-CIVN6uLI.js +0 -115
- package/components/localize-DbobqcKs.cjs +0 -20
- package/generated/locales/de.d.ts +0 -82
- package/generated/locales/es.d.ts +0 -82
- package/generated/locales/fr.d.ts +0 -82
- package/generated/locales/nl.d.ts +0 -82
@@ -17,14 +17,526 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
import {
|
21
|
-
|
20
|
+
import { h as S } 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 a, n as d } from "../property-B2F7x7Cz.js";
|
29
|
+
import { m as w, d as F } from "../sized-mixin-BxMraZLS-B_y0PzR3.js";
|
30
|
+
import { m as i, t as $, s as A, l as L } from "../set-locale-DJYT4V7U.js";
|
31
|
+
import { C as p, h as c } from "../luzmo-icons-BE2T8vWu.js";
|
32
|
+
import { S as f, f as _, D as v } from "../formatter-CQDms6fU.js";
|
33
|
+
import { a as D, b as g, W as z } from "../periods.const-GHh5bPfs.js";
|
34
|
+
import { e as n } from "../query-Ddbd72Um.js";
|
35
|
+
const b = () => {
|
22
36
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
23
|
-
const
|
24
|
-
|
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);
|
25
39
|
}
|
26
40
|
};
|
27
|
-
|
41
|
+
b();
|
42
|
+
const y = {
|
43
|
+
"~": () => i("Auto", { desc: "Automatic setting of the option" }),
|
44
|
+
"/": () => "/",
|
45
|
+
"-": () => "-",
|
46
|
+
".": () => "."
|
47
|
+
}, E = ":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 M = Object.defineProperty, C = Object.getOwnPropertyDescriptor, m = (t, e, s, o) => {
|
49
|
+
for (var l = o > 1 ? void 0 : o ? C(e, s) : e, h = t.length - 1, u; h >= 0; h--)
|
50
|
+
(u = t[h]) && (l = (o ? u(e, s, l) : u(l)) || l);
|
51
|
+
return o && l && M(e, s, l), l;
|
52
|
+
};
|
53
|
+
let r = class extends w(k, {
|
54
|
+
validSizes: Object.values(F)
|
55
|
+
}) {
|
56
|
+
constructor() {
|
57
|
+
super(...arguments), this._loadLocaleFormatsConfig = new S(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-BtLbN8o_.js"),
|
65
|
+
"../../utils/formatter/formats/en-US.ts": () => Promise.resolve().then(() => N),
|
66
|
+
"../../utils/formatter/formats/en.ts": () => Promise.resolve().then(() => O),
|
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 s = await e[`../../utils/formatter/formats/${t}.ts`]();
|
88
|
+
this._localeFormats = (s == null ? void 0 : s.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(E)];
|
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 s;
|
116
|
+
let t;
|
117
|
+
const e = ((s = this._localeFormats) == null ? void 0 : s.smartDateFormats) ?? f;
|
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") && ([...$].includes(this.language) || this.language === "en") && (A(this.language), this.requestUpdate());
|
164
|
+
}
|
165
|
+
_renderDisplaySettings() {
|
166
|
+
var e, s;
|
167
|
+
const t = (s = (e = D) == null ? void 0 : e[`level${this._dateLevel ?? 0}`]) == null ? void 0 : s.map(
|
168
|
+
(o) => a`<luzmo-menu-item value=${o.key}>
|
169
|
+
${o.i18n()}
|
170
|
+
</luzmo-menu-item>`
|
171
|
+
);
|
172
|
+
return a`<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
|
+
g
|
192
|
+
).map((e) => a`<luzmo-action-button value=${e}>
|
193
|
+
${g[e]()}
|
194
|
+
</luzmo-action-button>`);
|
195
|
+
return a` <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 a` <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) ?? f, e = t.find(
|
242
|
+
(l) => l.mmdd === !0 && l.separator === this._dateSeparator && l.monthType === "number"
|
243
|
+
), s = t.find(
|
244
|
+
(l) => l.mmdd === !1 && l.separator === this._dateSeparator && l.monthType === "number"
|
245
|
+
);
|
246
|
+
return a` <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
|
+
${_(
|
263
|
+
{
|
264
|
+
...this._currentSlotContent,
|
265
|
+
type: "datetime",
|
266
|
+
format: s == null ? void 0 : s.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
|
+
>${_(
|
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(z).map(
|
292
|
+
(e) => a`<luzmo-menu-item value=${e}>
|
293
|
+
${z[e]()}
|
294
|
+
</luzmo-menu-item>`
|
295
|
+
);
|
296
|
+
return a`<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 a`<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 a`<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) => a`<luzmo-menu-item value=${e}>
|
361
|
+
${y[e]()}
|
362
|
+
</luzmo-menu-item>`
|
363
|
+
);
|
364
|
+
return a`<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 a`<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 a`<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 a`<span class="example">
|
430
|
+
${_(
|
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 ? a`<span class="example-language">
|
442
|
+
(${this.contentLanguage})
|
443
|
+
</span>` : ""}`;
|
444
|
+
}
|
445
|
+
_renderAllSettings() {
|
446
|
+
return a`<div class="settings-container">
|
447
|
+
${this._dateLevel && ![1, 9].includes(this._dateLevel) ? a` <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 ?? "") ? a` <div class="settings-row">
|
452
|
+
${this._renderWeekDayAndMonthNameFormatSettings()}
|
453
|
+
</div>` : ""}
|
454
|
+
${this._dateLevel && this._dateLevel > 1 && this._displayAs === "default" ? a` <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: () => a`<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
|
+
L()
|
528
|
+
], r);
|
529
|
+
customElements.get("luzmo-display-settings-datetime") || customElements.define(
|
530
|
+
"luzmo-display-settings-datetime",
|
531
|
+
r
|
532
|
+
);
|
533
|
+
const N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
534
|
+
__proto__: null,
|
535
|
+
default: v
|
536
|
+
}, Symbol.toStringTag, { value: "Module" })), O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
537
|
+
__proto__: null,
|
538
|
+
default: v
|
539
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
28
540
|
export {
|
29
|
-
|
541
|
+
r as LuzmoDisplaySettingsDatetime
|
30
542
|
};
|
@@ -0,0 +1,20 @@
|
|
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"});const u=[{key:"general",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",default:"donut",enum:["donut","pie"]}},{key:"slices.half",control:{type:"picker",default:"full",enum:["full","half"],fromOptionValue:e=>e?"half":"full",toOptionValue:e=>e==="half"}},{type:"divider"},{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0}},{key:"display.categoryLabels",control:{type:"radio-button-group",enum:["list","labels"],fromOptionValue:e=>e?"labels":"list",toOptionValue:e=>e==="labels",sideEffect:(e,n)=>(e==="labels"&&(n.display.legend=!1),n)}}]},{key:"slices",type:"group",open:!0,children:[{key:"sort.by",control:{type:"picker",default:"measure",enum:["measure","category"]}},{key:"display.values",control:{type:"picker",default:"none",enum:["none","absolute","percentage"]}},{key:"slices.width",control:{type:"slider",default:.35,min:.05,max:.9,step:.01}},{key:"slices.maxNumber",control:{type:"number-field",default:12,min:0,max:50,step:1}},{key:"slices.minPercentage",control:{type:"number-field",default:3,min:0,max:100,step:1}},{key:"slices.roundedCorners",control:{type:"slider",default:8,min:0,max:24,step:1,extraLabel:(e,n,r)=>{var l,t;if(typeof((l=r==null?void 0:r.itemSpecific)==null?void 0:l.rounding)=="number")return typeof((t=e==null?void 0:e.slices)==null?void 0:t.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:(e,n,r)=>{var l,t;return!(typeof((l=r==null?void 0:r.itemSpecific)==null?void 0:l.rounding)!="number"||typeof((t=e==null?void 0:e.slices)==null?void 0:t.roundedCorners)!="number")},extraLabelClickAction:(e,n,r)=>{var t;const l={...e};return((t=l==null?void 0:l.slices)==null?void 0:t.roundedCorners)!==void 0&&delete l.slices.roundedCorners,{value:null,options:l}}}},{key:"slices.padding",control:{type:"slider",default:5,min:0,max:20,step:1,extraLabel:(e,n,r)=>{var l,t;if(typeof((l=r==null?void 0:r.itemSpecific)==null?void 0:l.padding)=="number")return typeof((t=e==null?void 0:e.slices)==null?void 0:t.padding)!="number"?"auto":"reset"},extraLabelHasClickAction:(e,n,r)=>{var l,t;return!(typeof((l=r==null?void 0:r.itemSpecific)==null?void 0:l.padding)!="number"||typeof((t=e==null?void 0:e.slices)==null?void 0:t.padding)!="number")},extraLabelClickAction:(e,n,r)=>{var t;const l={...e};return((t=l==null?void 0:l.slices)==null?void 0:t.padding)!==void 0&&delete l.slices.padding,{value:null,options:l}}}}]}];exports.default=u;
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
const
|
20
|
+
const a = [
|
21
21
|
{
|
22
22
|
key: "general",
|
23
23
|
type: "group",
|
@@ -48,6 +48,7 @@ const u = [
|
|
48
48
|
key: "display.title",
|
49
49
|
control: {
|
50
50
|
type: "switch",
|
51
|
+
label: "Title",
|
51
52
|
default: !0
|
52
53
|
}
|
53
54
|
},
|
@@ -55,6 +56,7 @@ const u = [
|
|
55
56
|
key: "display.legend",
|
56
57
|
control: {
|
57
58
|
type: "switch",
|
59
|
+
label: "Legend",
|
58
60
|
default: !0
|
59
61
|
}
|
60
62
|
},
|
@@ -173,5 +175,5 @@ const u = [
|
|
173
175
|
}
|
174
176
|
];
|
175
177
|
export {
|
176
|
-
|
178
|
+
a as default
|
177
179
|
};
|
@@ -19,6 +19,20 @@
|
|
19
19
|
* */
|
20
20
|
const e = {
|
21
21
|
name: "Donut chart",
|
22
|
+
groups: {
|
23
|
+
general: {
|
24
|
+
label: "General"
|
25
|
+
},
|
26
|
+
slices: {
|
27
|
+
label: "Slices"
|
28
|
+
},
|
29
|
+
legend: {
|
30
|
+
label: "Legend"
|
31
|
+
},
|
32
|
+
annotate: {
|
33
|
+
label: "Annotate"
|
34
|
+
}
|
35
|
+
},
|
22
36
|
options: {
|
23
37
|
"display.title": {
|
24
38
|
label: "Title"
|
@@ -0,0 +1,20 @@
|
|
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"});const e={name:"Donut chart",groups:{general:{label:"General"},slices:{label:"Slices"},legend:{label:"Legend"},annotate:{label:"Annotate"}},options:{"display.title":{label:"Title"},mode:{label:"Mode",enum:{pie:"Pie",donut:"Donut"}},"display.legend":{label:"Legend"},"slices.half":{label:"Type",enum:{full:"Full",half:"Half"}},"display.categoryLabels":{label:"Category Labels",enum:{list:"List",labels:"Labels"}},"sort.by":{label:"Sort by",enum:{measure:"Measure",category:"Category"}},"display.values":{label:"Show Values",tooltip:"If enough room to display",enum:{none:"None",absolute:"Absolute",percentage:"Percentage"}},"slices.width":{label:"Width"},"slices.maxNumber":{label:"Max # of slices"},"slices.minPercentage":{label:"Group slices < %"},"slices.roundedCorners":{label:"Rounded Corners"},"slices.padding":{label:"Padding"}}};exports.default=e;
|