@luzmo/analytics-components-kit 1.0.1-alpha.98 → 1.0.1-alpha.99
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/angular/README.md +2 -2
- package/angular/components/ai-interaction-textarea.component.ts +8 -0
- package/angular/components/{filter-data-item-picker.component.ts → data-items-select.component.ts} +34 -17
- package/angular/components/edit-filters/index.ts +1 -0
- package/angular/components/edit-filters/types.ts +10 -0
- package/angular/components/edit-filters.component.ts +41 -0
- package/angular/components/slot-contents-picker.component.ts +8 -6
- package/angular/esm/components/ai-interaction-textarea.component.d.ts +5 -1
- package/angular/esm/components/ai-interaction-textarea.component.js +22 -2
- package/angular/esm/components/data-items-select.component.d.ts +33 -0
- package/angular/esm/components/{filter-data-item-picker.component.js → data-items-select.component.js} +41 -26
- package/angular/esm/components/edit-filters/index.d.ts +1 -0
- package/angular/esm/components/edit-filters/index.js +1 -0
- package/angular/esm/components/edit-filters/types.d.ts +8 -0
- package/angular/esm/components/edit-filters/types.js +1 -0
- package/angular/esm/components/edit-filters.component.d.ts +21 -0
- package/angular/esm/components/edit-filters.component.js +89 -0
- package/angular/esm/components/slot-contents-picker.component.d.ts +7 -6
- package/angular/esm/components/slot-contents-picker.component.js +11 -6
- package/angular/esm/index.d.ts +5 -5
- package/angular/esm/index.js +6 -6
- package/angular/esm/types.d.ts +9 -0
- package/angular/index.ts +6 -6
- package/angular/types.ts +17 -0
- package/angular/utils/filters/expressions.d.ts +1 -1
- package/components/ai-chat-message-assistant/index.cjs +1 -1
- package/components/ai-chat-message-assistant/index.js +0 -1
- package/components/ai-chat-messages-container/index.cjs +1 -1
- package/components/ai-chat-messages-container/index.js +2 -2
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +21 -0
- package/components/ai-interaction-textarea/index.cjs +17 -15
- package/components/ai-interaction-textarea/index.js +91 -67
- package/components/area-chart-options.config-Bl8bhhOo.cjs +20 -0
- package/components/{area-chart-options.config-_J0sG4NF.js → area-chart-options.config-u8itidsi.js} +14 -26
- package/components/bar-chart-options.config-CePAqM83.cjs +20 -0
- package/components/{bar-chart-options.config-D1mb5TDl.js → bar-chart-options.config-DIirbAJ0.js} +21 -35
- package/components/box-plot-options.config-BVNrV2eD.cjs +20 -0
- package/components/{box-plot-options.config-xu_i6ms7.js → box-plot-options.config-BWROiguA.js} +52 -88
- package/components/{bubble-chart-options.config-BacgXkJ_.js → bubble-chart-options.config-4QD8VPhU.js} +9 -18
- package/components/bubble-chart-options.config-BDgOe3GQ.cjs +20 -0
- package/components/{bullet-chart-options.config-CDPpX1yc.js → bullet-chart-options.config-3bH7uekx.js} +1 -1
- package/components/{bullet-chart-options.config-DfS4Bwds.cjs → bullet-chart-options.config-tWb6Fio-.cjs} +1 -1
- package/components/calculate-data-item-icon-DMDhKq_m.js +147 -0
- package/components/calculate-data-item-icon-DtVGbet3.cjs +20 -0
- package/components/{choropleth-map-options.config-B_W9-rhe.js → choropleth-map-options.config-CMxx3ORp.js} +63 -84
- package/components/choropleth-map-options.config-CWJACFd0.cjs +20 -0
- package/components/circular-gauge-options.config-BMxgq3zH.cjs +20 -0
- package/components/{circular-gauge-options.config-DAIjz4Rl.js → circular-gauge-options.config-DhIKn44k.js} +23 -36
- package/components/{color-DuJ4-73S.js → color-B7m0j8lX.js} +941 -950
- package/components/color-Czp4Im5q.cjs +20 -0
- package/components/{color-range-utils-Bvo9sm5A.js → color-range-utils-BSfqtB3A.js} +31 -32
- package/components/color-range-utils-DYYR-iwx.cjs +20 -0
- package/components/column-chart-options.config-BV9R3ssH.cjs +20 -0
- package/components/{column-chart-options.config-B5SjBVdy.js → column-chart-options.config-D5-yR7iq.js} +27 -37
- package/components/conditional-number-options.config-Co099Qfm.cjs +20 -0
- package/components/{conditional-number-options.config-BCEpSK9J.js → conditional-number-options.config-DPYsdML5.js} +24 -40
- package/components/{filter-data-item-picker/filter-data-item-picker.d.ts → data-items-select/data-items-select.d.ts} +36 -21
- package/components/data-items-select/index.cjs +39 -0
- package/components/data-items-select/index.d.ts +6 -0
- package/components/data-items-select/index.js +209 -0
- package/components/dataset-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +1 -2
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +32 -35
- package/components/dataset-selector-row/index.cjs +9 -9
- package/components/dataset-selector-row/index.js +50 -52
- package/components/{date-comparison-filter-options.config-JA_yYpJa.js → date-comparison-filter-options.config-CSwGyuBg.js} +3 -6
- package/components/{date-comparison-filter-options.config-DAVncmi0.cjs → date-comparison-filter-options.config-QaoWaFUn.cjs} +1 -1
- package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js} +3 -6
- package/components/{date-filter-options.config-CWPMtA18.cjs → date-filter-options.config-n-zhWaYa.cjs} +1 -1
- package/components/{de-COKGBX9L.cjs → de-DOYL4txr.cjs} +1 -1
- package/components/{de-DU0DlXuf.js → de-SDzGVifr.js} +10 -1
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/index.cjs +5 -5
- package/components/display-settings-binning/index.js +29 -30
- package/components/display-settings-datetime/index.cjs +29 -29
- package/components/display-settings-datetime/index.js +112 -120
- package/components/display-settings-grand-totals/index.cjs +4 -4
- package/components/display-settings-grand-totals/index.js +23 -24
- package/components/display-settings-numeric/index.cjs +48 -48
- package/components/display-settings-numeric/index.js +190 -206
- package/components/display-settings-period-over-period/index.cjs +16 -16
- package/components/display-settings-period-over-period/index.js +91 -97
- package/components/{donut-chart-options.config-BulUEiaH.js → donut-chart-options.config-3ZqX8Cbb.js} +21 -37
- package/components/donut-chart-options.config-BQyPgnC9.cjs +20 -0
- package/components/draggable-data-item/index.cjs +5 -5
- package/components/draggable-data-item/index.js +45 -46
- package/components/draggable-data-item-level/index.cjs +11 -11
- package/components/draggable-data-item-level/index.js +70 -73
- package/components/{dropdown-filter-options.config-D9dvPypF.js → dropdown-filter-options.config-CGJTtgAX.js} +7 -10
- package/components/{dropdown-filter-options.config-DS-MORmq.cjs → dropdown-filter-options.config-DJvfCTk7.cjs} +1 -1
- package/components/droppable-slot/index.cjs +16 -16
- package/components/droppable-slot/index.js +174 -265
- package/components/edit-filters/edit-filters.d.ts +79 -0
- package/components/edit-filters/index.cjs +144 -0
- package/components/edit-filters/index.d.ts +8 -0
- package/components/edit-filters/index.js +341 -0
- package/components/edit-filters/types.d.ts +8 -0
- package/components/edit-item/index.cjs +9 -9
- package/components/edit-item/index.js +116 -119
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-action-button-group/index.cjs +8 -8
- package/components/edit-option-action-button-group/index.js +52 -53
- package/components/{edit-option-base-DIc7iC-b.js → edit-option-base-Bh29-Cak.js} +1 -1
- package/components/{edit-option-base-VhTih9T1.cjs → edit-option-base-tFr8Qg2B.cjs} +1 -1
- package/components/edit-option-color-palette-picker/index.cjs +1 -1
- package/components/edit-option-color-palette-picker/index.js +1 -1
- package/components/edit-option-color-picker/index.cjs +1 -1
- package/components/edit-option-color-picker/index.js +1 -1
- package/components/edit-option-color-range/index.cjs +19 -19
- package/components/edit-option-color-range/index.js +106 -117
- package/components/edit-option-multi-language-field/index.cjs +3 -3
- package/components/edit-option-multi-language-field/index.js +26 -27
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +1 -1
- package/components/edit-option-picker/index.cjs +5 -5
- package/components/edit-option-picker/index.js +7 -7
- package/components/edit-option-position-picker/index.cjs +4 -4
- package/components/edit-option-position-picker/index.js +21 -25
- package/components/edit-option-positions-number-field/index.cjs +9 -9
- package/components/edit-option-positions-number-field/index.js +76 -81
- package/components/edit-option-radio-button-group/index.cjs +6 -6
- package/components/edit-option-radio-button-group/index.js +21 -22
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +1 -1
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +1 -1
- package/components/edit-option-text-field/index.cjs +2 -2
- package/components/edit-option-text-field/index.js +22 -23
- package/components/en-D3ihEGXg.js +1483 -0
- package/components/en-DZcn_iz_.cjs +20 -0
- package/components/{en-GB-DG6uS3sM.cjs → en-GB-TqvgIw9B.cjs} +1 -1
- package/components/{en-GB-CEHEs8F2.js → en-GB-ialeqj_z.js} +1 -1
- package/components/{es-BxR1uGKR.js → es-B1TeapPZ.js} +10 -1
- package/components/{es-CaKfa7fn.cjs → es-DcQvrHgz.cjs} +1 -1
- package/components/{evolution-number-options.config-DzkfeoIN.js → evolution-number-options.config-BIPO_4n3.js} +11 -14
- package/components/{evolution-number-options.config-BgIZY4gQ.cjs → evolution-number-options.config-Bc9eKYnn.cjs} +1 -1
- package/components/{extrapolate-color-0j_AeYkz.cjs → extrapolate-color-C0n1UDs-.cjs} +1 -1
- package/components/{extrapolate-color-CC9CURf6.js → extrapolate-color-v1PimdQr.js} +1 -1
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/filter-item.d.ts +1 -1
- package/components/filter-item/index.cjs +9 -7
- package/components/filter-item/index.js +123 -123
- package/components/filter-value-picker/index.cjs +2 -2
- package/components/filter-value-picker/index.js +34 -36
- package/components/filter-value-picker-datetime/index.cjs +8 -8
- package/components/filter-value-picker-datetime/index.js +56 -71
- package/components/filter-value-picker-hierarchy/index.cjs +12 -12
- package/components/filter-value-picker-hierarchy/index.js +113 -124
- package/components/filter-value-picker-numeric/index.cjs +9 -8
- package/components/filter-value-picker-numeric/index.js +102 -110
- package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
- package/components/focusable-QLh-LlNt.cjs +20 -0
- package/components/{fr-DiZbjx_a.cjs → fr-D6QmA3Ve.cjs} +1 -1
- package/components/{fr-CvltYxR_.js → fr-sZFBmltf.js} +10 -1
- package/components/{funnel-chart-options.config-C_VjTOvD.js → funnel-chart-options.config-CrJy2U7_.js} +5 -20
- package/components/funnel-chart-options.config-DrP4AFgk.cjs +20 -0
- package/components/get-css-variable-C0B_Sxqf.cjs +24 -0
- package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-DgTBQV3c.js} +39 -38
- package/components/grid/index.cjs +43 -49
- package/components/grid/index.js +2610 -1878
- package/components/heat-map-options.config-CIHnPdYE.cjs +20 -0
- package/components/{heat-map-options.config-BnLWe8jS.js → heat-map-options.config-CmL87j1j.js} +35 -41
- package/components/{heat-table-options.config-CUsDdgUr.js → heat-table-options.config-BrCYAgYD.js} +60 -88
- package/components/heat-table-options.config-DTlZRc_i.cjs +20 -0
- package/components/helpers-9I0oLoUB.cjs +20 -0
- package/components/helpers-bR8Ibjqh.js +79 -0
- package/components/{hexbin-map-options.config-F-7uCqxb.js → hexbin-map-options.config-BguV1w8q.js} +20 -38
- package/components/hexbin-map-options.config-CKnn3VAB.cjs +20 -0
- package/components/index-BekTY3Em.cjs +121 -0
- package/components/index-BikhVAa1.js +1755 -0
- package/components/index-CAbDIHYI.cjs +20 -0
- package/components/{index-Do7O9azB.js → index-CqKpf0B8.js} +112 -123
- package/components/{index-BPNsFiyq.cjs → index-DM58h73U.cjs} +4 -4
- package/components/{index-D0GBF6tg.js → index-DR5275fa.js} +122 -102
- package/components/index-DvkzMbLt.cjs +249 -0
- package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
- package/components/index.cjs +1 -1
- package/components/index.js +105 -106
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +37 -37
- package/components/{line-chart-options.config-DB3IsXXr.js → line-chart-options.config-BhirTGqD.js} +13 -28
- package/components/line-chart-options.config-Cqwou5u6.cjs +20 -0
- package/components/{localize-r7ALOUy_.cjs → localize-C4zNlrwK.cjs} +1 -1
- package/components/{localize-BX7q0S0M.js → localize-CcDpq940.js} +10 -10
- package/components/{marker-map-options.config-DPJ955tt.js → marker-map-options.config-Bx17jmiq.js} +1 -1
- package/components/{marker-map-options.config-_FYZzRwA.cjs → marker-map-options.config-CvhCylSC.cjs} +1 -1
- package/components/{nl-CLs7FmRK.js → nl-BYXZ-qNp.js} +10 -1
- package/components/{nl-Bot6bJ4g.cjs → nl-D7oNsLn0.cjs} +1 -1
- package/components/{pivot-table-options.config-DNK_AIG7.js → pivot-table-options.config-CFc7y0IT.js} +15 -24
- package/components/pivot-table-options.config-uZDAertf.cjs +20 -0
- package/components/{pyramid-chart-options.config-CcVMatYx.js → pyramid-chart-options.config-2Waxb11l.js} +29 -43
- package/components/pyramid-chart-options.config-DoGfEvzU.cjs +20 -0
- package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js} +11 -23
- package/components/radar-chart-options.config-CtNUMN1l.cjs +20 -0
- package/components/{regular-table-options.config-BoLZsBry.js → regular-table-options.config-CFKCJQK1.js} +17 -23
- package/components/{regular-table-options.config-DTx3RTnS.cjs → regular-table-options.config-YRuoijIk.cjs} +1 -1
- package/components/route-map-options.config-CVTk5RVL.cjs +20 -0
- package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js} +87 -109
- package/components/{sankey-diagram-options.config-RFB83YLZ.cjs → sankey-diagram-options.config-D7OSvSqm.cjs} +1 -1
- package/components/{sankey-diagram-options.config-tVLKy_Zn.js → sankey-diagram-options.config-Ldjk84ro.js} +7 -10
- package/components/scatter-plot-options.config-5gN7pMTm.cjs +20 -0
- package/components/{scatter-plot-options.config-Corlzno1.js → scatter-plot-options.config-CfxEfkQ1.js} +56 -86
- package/components/{search-filter-options.config-BE3JhR-F.js → search-filter-options.config-C0syQmP4.js} +3 -6
- package/components/{search-filter-options.config-BCaDlYqZ.cjs → search-filter-options.config-Oqco9BKj.cjs} +1 -1
- package/components/{set-locale-Dp3N_gXN.js → set-locale-B5562CBM.js} +2 -9
- package/components/{set-locale-BRRalqne.cjs → set-locale-B8iQGfk0.cjs} +1 -1
- package/components/slicer-filter-options.config-CrusP6a0.cjs +20 -0
- package/components/{slicer-filter-options.config-3JZZcw5C.js → slicer-filter-options.config-DmOe3440.js} +9 -18
- package/components/{slider-filter-options.config-DH4SS8wH.js → slider-filter-options.config-B1M8RcDs.js} +1 -1
- package/components/{slider-filter-options.config-_8Z2zKmU.cjs → slider-filter-options.config-k45I-t6G.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +35 -31
- package/components/slot-contents-picker/index.js +202 -200
- package/components/slot-contents-picker/slot-contents-picker.d.ts +26 -5
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.js +189 -202
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +97 -103
- package/components/slot-store-CRfN0nD3.js +98 -0
- package/components/slot-store-Dd_cPNXk.cjs +20 -0
- package/components/speedometer-chart-options.config-B4ceg_qI.cjs +20 -0
- package/components/{speedometer-chart-options.config-SL581yOa.js → speedometer-chart-options.config-CzOmuEF8.js} +31 -53
- package/components/spike-map-options.config-BkkDqb4g.cjs +20 -0
- package/components/{spike-map-options.config-C5KewecZ.js → spike-map-options.config-Cbt1YUw6.js} +91 -122
- package/components/{sunburst-chart-options.config-AbNjWS6t.cjs → sunburst-chart-options.config-Yrxc2i57.cjs} +1 -1
- package/components/{sunburst-chart-options.config-CNauGQJv.js → sunburst-chart-options.config-_dyLQxPJ.js} +9 -20
- package/components/{symbol-map-options.config-DdDA4aa7.js → symbol-map-options.config-BORL1NSU.js} +11 -20
- package/components/symbol-map-options.config-NpBKm64d.cjs +20 -0
- package/components/{treemap-chart-options.config-D5AJaF_u.js → treemap-chart-options.config-B9i9qIm_.js} +20 -37
- package/components/treemap-chart-options.config-x4J54WSw.cjs +20 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +94 -97
- package/components/{video-options.config-CGsDTwHc.cjs → video-options.config-B0asgYt8.cjs} +1 -1
- package/components/{video-options.config-Dk36zJ1B.js → video-options.config-UX-9MDfS.js} +7 -10
- package/components/viz-item-menu/index.cjs +5 -5
- package/components/viz-item-menu/index.js +26 -28
- package/components/{wordcloud-chart-options.config-vGfCW8kE.cjs → wordcloud-chart-options.config-BKtJT8Va.cjs} +1 -1
- package/components/{wordcloud-chart-options.config-w2NUIWVA.js → wordcloud-chart-options.config-BoB_KuhA.js} +4 -7
- package/custom-elements.json +1936 -1625
- package/index.d.ts +1 -1
- package/package.json +12 -12
- package/types.d.ts +9 -0
- package/utils/filters/expressions.d.ts +1 -1
- package/angular/components/filter-group.component.ts +0 -29
- package/angular/esm/components/filter-data-item-picker.component.d.ts +0 -30
- package/angular/esm/components/filter-group.component.d.ts +0 -12
- package/angular/esm/components/filter-group.component.js +0 -56
- package/components/area-chart-options.config-C7sMAHco.cjs +0 -20
- package/components/bar-chart-options.config-DcxEkOT5.cjs +0 -20
- package/components/box-plot-options.config-SrrbDEYW.cjs +0 -20
- package/components/bubble-chart-options.config-Ihn6eVQI.cjs +0 -20
- package/components/calculate-data-item-icon-CEa82-5u.cjs +0 -20
- package/components/calculate-data-item-icon-DjlZwMdO.js +0 -147
- package/components/choropleth-map-options.config-ZW8yoZH2.cjs +0 -20
- package/components/circular-gauge-options.config-msZ4mfpN.cjs +0 -20
- package/components/color-B6LaL8qz.cjs +0 -20
- package/components/color-range-utils-C5yXW7ZC.cjs +0 -20
- package/components/column-chart-options.config-BjDvA7i9.cjs +0 -20
- package/components/conditional-number-options.config-DgzUo0xi.cjs +0 -20
- package/components/donut-chart-options.config-tNpqBZfR.cjs +0 -20
- package/components/en-BKBhKBXY.cjs +0 -20
- package/components/en-BOTjhwEc.js +0 -1488
- package/components/filter-data-item-picker/index.cjs +0 -47
- package/components/filter-data-item-picker/index.d.ts +0 -7
- package/components/filter-data-item-picker/index.js +0 -192
- package/components/filter-group/filter-group.d.ts +0 -26
- package/components/filter-group/index.d.ts +0 -7
- package/components/focusable-B3E_hQmm.cjs +0 -20
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
- package/components/get-css-variable-DLiZYZEi.cjs +0 -24
- package/components/heat-map-options.config-DVH-Bb5-.cjs +0 -20
- package/components/heat-table-options.config-B12JEYnp.cjs +0 -20
- package/components/helpers-DXQwEH1P.cjs +0 -20
- package/components/helpers-v1bPALRP.js +0 -91
- package/components/hexbin-map-options.config-DZERRhM8.cjs +0 -20
- package/components/index-CDi4fe3N.js +0 -1716
- package/components/index-CQ9ck-BO.cjs +0 -249
- package/components/index-CXn67vdn.cjs +0 -121
- package/components/index-Cz9vSXy6.cjs +0 -20
- package/components/line-chart-options.config-DSugoe0t.cjs +0 -20
- package/components/pivot-table-options.config-BiJXKSFR.cjs +0 -20
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +0 -20
- package/components/radar-chart-options.config-EqQu6PTh.cjs +0 -20
- package/components/route-map-options.config-D7NJePTu.cjs +0 -20
- package/components/scatter-plot-options.config-CFfGJXsV.cjs +0 -20
- package/components/slicer-filter-options.config-DNI-XevE.cjs +0 -20
- package/components/speedometer-chart-options.config-BX9LTQBH.cjs +0 -20
- package/components/spike-map-options.config-DoBFXPmN.cjs +0 -20
- package/components/symbol-map-options.config-m-lwLTtu.cjs +0 -20
- package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +0 -20
|
@@ -25,15 +25,15 @@ import "@luzmo/lucero/icon";
|
|
|
25
25
|
import "@luzmo/lucero/number-field";
|
|
26
26
|
import "@luzmo/lucero/picker";
|
|
27
27
|
import "@luzmo/lucero/progress-circle";
|
|
28
|
-
import { unsafeCSS as b, html as
|
|
29
|
-
import { msg as
|
|
28
|
+
import { unsafeCSS as b, html as a } from "lit";
|
|
29
|
+
import { msg as i, localized as k } from "@lit/localize";
|
|
30
30
|
import { luzmoCheckboxChecked as c, luzmoCheckbox as p } from "@luzmo/icons";
|
|
31
|
-
import { a as S, S as f, f as _ } from "../en-
|
|
32
|
-
import { a as
|
|
33
|
-
import { property as d, query as
|
|
34
|
-
import { L as
|
|
31
|
+
import { a as S, S as f, f as _ } from "../en-D3ihEGXg.js";
|
|
32
|
+
import { a as F, b as z, W as g } from "../periods.const-CjHXYn-w.js";
|
|
33
|
+
import { property as d, query as m } from "lit/decorators.js";
|
|
34
|
+
import { L as w } from "../focusable-BS2pbY7w.js";
|
|
35
35
|
import { S as $, E as x } from "../sized-mixin-cJbo3PKR.js";
|
|
36
|
-
import { g as A, t as L, s as D } from "../set-locale-
|
|
36
|
+
import { g as A, t as L, s as D } from "../set-locale-B5562CBM.js";
|
|
37
37
|
(function() {
|
|
38
38
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
39
39
|
const e = document.createElement("style");
|
|
@@ -41,17 +41,17 @@ import { g as A, t as L, s as D } from "../set-locale-Dp3N_gXN.js";
|
|
|
41
41
|
}
|
|
42
42
|
})();
|
|
43
43
|
const y = {
|
|
44
|
-
"~": () =>
|
|
44
|
+
"~": () => i("Auto", { desc: "Automatic setting of the option" }),
|
|
45
45
|
"/": () => "/",
|
|
46
46
|
"-": () => "-",
|
|
47
47
|
".": () => "."
|
|
48
48
|
}, 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-display-settings-vertical-gap, var(--luzmo-spacing-2))}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-datetime-gap, var(--display-settings-datetime-gap))}: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)}";
|
|
49
|
-
var M = Object.defineProperty, C = Object.getOwnPropertyDescriptor,
|
|
50
|
-
for (var
|
|
51
|
-
(u = t[h]) && (
|
|
52
|
-
return
|
|
49
|
+
var M = Object.defineProperty, C = Object.getOwnPropertyDescriptor, l = (t, e, o, r) => {
|
|
50
|
+
for (var n = r > 1 ? void 0 : r ? C(e, o) : e, h = t.length - 1, u; h >= 0; h--)
|
|
51
|
+
(u = t[h]) && (n = (r ? u(e, o, n) : u(n)) || n);
|
|
52
|
+
return r && n && M(e, o, n), n;
|
|
53
53
|
};
|
|
54
|
-
let
|
|
54
|
+
let s = class extends $(w, {
|
|
55
55
|
validSizes: Object.values(x)
|
|
56
56
|
}) {
|
|
57
57
|
constructor() {
|
|
@@ -62,9 +62,9 @@ let r = class extends $(F, {
|
|
|
62
62
|
"../../utils/formatter/formats/cs.ts": () => import("../cs-DVZ0Tapy.js"),
|
|
63
63
|
"../../utils/formatter/formats/da.ts": () => import("../da-DHy05oSR.js"),
|
|
64
64
|
"../../utils/formatter/formats/de.ts": () => import("../de-iM39JlAt.js"),
|
|
65
|
-
"../../utils/formatter/formats/en-GB.ts": () => import("../en-GB-
|
|
66
|
-
"../../utils/formatter/formats/en-US.ts": () => import("../en-
|
|
67
|
-
"../../utils/formatter/formats/en.ts": () => import("../en-
|
|
65
|
+
"../../utils/formatter/formats/en-GB.ts": () => import("../en-GB-ialeqj_z.js"),
|
|
66
|
+
"../../utils/formatter/formats/en-US.ts": () => import("../en-D3ihEGXg.js").then((o) => o.e),
|
|
67
|
+
"../../utils/formatter/formats/en.ts": () => import("../en-D3ihEGXg.js").then((o) => o.b),
|
|
68
68
|
"../../utils/formatter/formats/es.ts": () => import("../es-KhTq4jX8.js"),
|
|
69
69
|
"../../utils/formatter/formats/fi.ts": () => import("../fi-Dh_ebgpe.js"),
|
|
70
70
|
"../../utils/formatter/formats/fr.ts": () => import("../fr-CU727YF1.js"),
|
|
@@ -86,7 +86,7 @@ let r = class extends $(F, {
|
|
|
86
86
|
});
|
|
87
87
|
if (e[`../../utils/formatter/formats/${t}.ts`]) {
|
|
88
88
|
const o = await e[`../../utils/formatter/formats/${t}.ts`]();
|
|
89
|
-
this._localeFormats =
|
|
89
|
+
this._localeFormats = o?.default ?? {};
|
|
90
90
|
}
|
|
91
91
|
return this._contentLanguageLoaded = t, this._localeFormats;
|
|
92
92
|
}
|
|
@@ -109,30 +109,27 @@ let r = class extends $(F, {
|
|
|
109
109
|
return [b(E)];
|
|
110
110
|
}
|
|
111
111
|
_parseSlotContent() {
|
|
112
|
-
|
|
113
|
-
this._dateLevel = ((t = this.slotContent) == null ? void 0 : t.level) ?? ((e = this.slotContent) == null ? void 0 : e.lowestLevel) ?? 5, this._displayAs = ((o = this.slotContent) == null ? void 0 : o.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"), this._parseSavedFormat();
|
|
112
|
+
this._dateLevel = this.slotContent?.level ?? this.slotContent?.lowestLevel ?? 5, this._displayAs = this.slotContent?.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"), this._parseSavedFormat();
|
|
114
113
|
}
|
|
115
114
|
_parseSavedFormat() {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
if (this._dateSeparator = t.includes("~") ? "~" : (e == null ? void 0 : e[0]) ?? "~", t.includes("%amd"))
|
|
115
|
+
const t = this.slotContent?.format ?? S, e = t.match(/[./-]/);
|
|
116
|
+
if (this._dateSeparator = t.includes("~") ? "~" : e?.[0] ?? "~", t.includes("%amd"))
|
|
119
117
|
this._dateFormat = "auto";
|
|
120
118
|
else {
|
|
121
|
-
const
|
|
122
|
-
|
|
119
|
+
const o = t.indexOf("%d"), r = t.indexOf("%m");
|
|
120
|
+
o !== -1 && r !== -1 && (this._dateFormat = o < r ? "ddmm" : "mmdd");
|
|
123
121
|
}
|
|
124
122
|
this._24hFormat = t.includes("%H"), this._monthName = /%B|%b/.test(t), this._weekDay = /%a|%A/.test(t), this._monthName && (this._monthNameFormat = t.includes("%b") ? "short" : "long"), this._weekDay && (this._weekDayAndMonthInYearFormat = t.includes("%a") ? "short" : "long");
|
|
125
123
|
}
|
|
126
124
|
_calculateFormat() {
|
|
127
|
-
var o;
|
|
128
125
|
let t;
|
|
129
|
-
const e =
|
|
126
|
+
const e = this._localeFormats?.smartDateFormats ?? f;
|
|
130
127
|
this._monthName ? (t = e.filter(
|
|
131
|
-
(
|
|
128
|
+
(o) => o.monthType === "name" && o.longText === (this._monthNameFormat === "long") && o.weekday === this._weekDay
|
|
132
129
|
), 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(
|
|
133
|
-
(
|
|
130
|
+
(o) => o.monthType === "number" && o.mmdd === (this._weekFormat === "mmdd" ? !0 : this._weekFormat === "ddmm" ? !1 : null) && o.separator === this._dateSeparator
|
|
134
131
|
) : e.filter(
|
|
135
|
-
(
|
|
132
|
+
(o) => o.monthType === "number" && o.mmdd === (this._dateFormat === "mmdd" ? !0 : this._dateFormat === "ddmm" ? !1 : null) && o.separator === this._dateSeparator
|
|
136
133
|
), 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");
|
|
137
134
|
}
|
|
138
135
|
_setWeekStartsOn() {
|
|
@@ -142,19 +139,16 @@ let r = class extends $(F, {
|
|
|
142
139
|
this._displayAs = this._displayAsElement.value, this._sendEvent(), this.requestUpdate();
|
|
143
140
|
}
|
|
144
141
|
_setWeekdayAndMonthInYearFormat() {
|
|
145
|
-
|
|
146
|
-
this._weekDayAndMonthInYearFormat = ((t = this._weekDayAndMonthInYearFormatElement.selected) == null ? void 0 : t[0]) ?? "long", this._sendEvent(), this.requestUpdate();
|
|
142
|
+
this._weekDayAndMonthInYearFormat = this._weekDayAndMonthInYearFormatElement.selected?.[0] ?? "long", this._sendEvent(), this.requestUpdate();
|
|
147
143
|
}
|
|
148
144
|
_setMonthNameFormat() {
|
|
149
|
-
|
|
150
|
-
this._monthNameFormat = (t = this._monthNameFormatElement.selected) == null ? void 0 : t[0], this._sendEvent(), this.requestUpdate();
|
|
145
|
+
this._monthNameFormat = this._monthNameFormatElement.selected?.[0], this._sendEvent(), this.requestUpdate();
|
|
151
146
|
}
|
|
152
147
|
_setMonthName() {
|
|
153
148
|
this._monthName = this._monthNameElement.selected, this._sendEvent(), this.requestUpdate();
|
|
154
149
|
}
|
|
155
150
|
_setWeekFormat() {
|
|
156
|
-
|
|
157
|
-
this._weekFormat = (t = this._weekFormatElement.selected) == null ? void 0 : t[0], this._sendEvent(), this.requestUpdate();
|
|
151
|
+
this._weekFormat = this._weekFormatElement.selected?.[0], this._sendEvent(), this.requestUpdate();
|
|
158
152
|
}
|
|
159
153
|
_setDateFormat() {
|
|
160
154
|
this._dateFormat = this._dateFormatElement.value, this._sendEvent(), this.requestUpdate();
|
|
@@ -175,15 +169,14 @@ let r = class extends $(F, {
|
|
|
175
169
|
t.has("slotContent") && (this._parseSlotContent(), this._calculateSlotContent()), t.has("language") && this.language !== A() && ([...L].includes(this.language ?? "en") || this.language === "en") && D(this.language);
|
|
176
170
|
}
|
|
177
171
|
_renderDisplaySettings() {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
${a.i18n()}
|
|
172
|
+
const t = F?.[`level${this._dateLevel ?? 0}`]?.map(
|
|
173
|
+
(e) => a`<luzmo-menu-item value=${e.key}>
|
|
174
|
+
${e.i18n()}
|
|
182
175
|
</luzmo-menu-item>`
|
|
183
176
|
);
|
|
184
|
-
return
|
|
177
|
+
return a`<div class="setting">
|
|
185
178
|
<luzmo-field-label for="display-as"
|
|
186
|
-
>${
|
|
179
|
+
>${i("Display", {
|
|
187
180
|
desc: "Label for display setting"
|
|
188
181
|
})}</luzmo-field-label
|
|
189
182
|
>
|
|
@@ -201,12 +194,12 @@ let r = class extends $(F, {
|
|
|
201
194
|
_renderWeekDayAndMonthNameFormatSettings() {
|
|
202
195
|
const t = Object.keys(
|
|
203
196
|
z
|
|
204
|
-
).map((e) =>
|
|
197
|
+
).map((e) => a`<luzmo-action-button value=${e}>
|
|
205
198
|
${z[e]()}
|
|
206
199
|
</luzmo-action-button>`);
|
|
207
|
-
return
|
|
200
|
+
return a` <div class="setting">
|
|
208
201
|
<luzmo-field-label for="weekday-and-month-in-year-format"
|
|
209
|
-
>${
|
|
202
|
+
>${i("Format", {
|
|
210
203
|
desc: "Label for format setting"
|
|
211
204
|
})}</luzmo-field-label
|
|
212
205
|
>
|
|
@@ -224,9 +217,9 @@ let r = class extends $(F, {
|
|
|
224
217
|
</div>`;
|
|
225
218
|
}
|
|
226
219
|
_renderMonthNameFormatSettings() {
|
|
227
|
-
return
|
|
220
|
+
return a` <div class="setting">
|
|
228
221
|
<luzmo-field-label for="month-name-format"
|
|
229
|
-
>${
|
|
222
|
+
>${i("Format", {
|
|
230
223
|
desc: "Label for format setting"
|
|
231
224
|
})}</luzmo-field-label
|
|
232
225
|
>
|
|
@@ -240,24 +233,23 @@ let r = class extends $(F, {
|
|
|
240
233
|
@change=${this._setMonthNameFormat}
|
|
241
234
|
>
|
|
242
235
|
<luzmo-action-button value="short">
|
|
243
|
-
${
|
|
236
|
+
${i("Short", { desc: "Short format option" })}
|
|
244
237
|
</luzmo-action-button>
|
|
245
238
|
<luzmo-action-button value="long">
|
|
246
|
-
${
|
|
239
|
+
${i("Long", { desc: "Long format option" })}
|
|
247
240
|
</luzmo-action-button>
|
|
248
241
|
</luzmo-action-group>
|
|
249
242
|
</div>`;
|
|
250
243
|
}
|
|
251
244
|
_renderWeekFormatSettings() {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
(i) => i.mmdd === !0 && i.separator === this._dateSeparator && i.monthType === "number"
|
|
245
|
+
const t = this._localeFormats?.smartDateFormats ?? f, e = t.find(
|
|
246
|
+
(r) => r.mmdd === !0 && r.separator === this._dateSeparator && r.monthType === "number"
|
|
255
247
|
), o = t.find(
|
|
256
|
-
(
|
|
248
|
+
(r) => r.mmdd === !1 && r.separator === this._dateSeparator && r.monthType === "number"
|
|
257
249
|
);
|
|
258
|
-
return
|
|
250
|
+
return a` <div class="setting">
|
|
259
251
|
<luzmo-field-label for="week-format"
|
|
260
|
-
>${
|
|
252
|
+
>${i("Format", {
|
|
261
253
|
desc: "Label for format setting"
|
|
262
254
|
})}</luzmo-field-label
|
|
263
255
|
>
|
|
@@ -275,7 +267,7 @@ let r = class extends $(F, {
|
|
|
275
267
|
{
|
|
276
268
|
...this._currentSlotContent,
|
|
277
269
|
type: "datetime",
|
|
278
|
-
format: o
|
|
270
|
+
format: o?.key
|
|
279
271
|
},
|
|
280
272
|
{
|
|
281
273
|
localFormats: this._localeFormats,
|
|
@@ -288,7 +280,7 @@ let r = class extends $(F, {
|
|
|
288
280
|
{
|
|
289
281
|
...this._currentSlotContent,
|
|
290
282
|
type: "datetime",
|
|
291
|
-
format: e
|
|
283
|
+
format: e?.key
|
|
292
284
|
},
|
|
293
285
|
{
|
|
294
286
|
localFormats: this._localeFormats,
|
|
@@ -301,13 +293,13 @@ let r = class extends $(F, {
|
|
|
301
293
|
}
|
|
302
294
|
_renderWeekStartsOnSettings() {
|
|
303
295
|
const t = Object.keys(g).map(
|
|
304
|
-
(e) =>
|
|
296
|
+
(e) => a`<luzmo-menu-item value=${e}>
|
|
305
297
|
${g[e]()}
|
|
306
298
|
</luzmo-menu-item>`
|
|
307
299
|
);
|
|
308
|
-
return
|
|
300
|
+
return a`<div class="setting">
|
|
309
301
|
<luzmo-field-label for="week-start"
|
|
310
|
-
>${
|
|
302
|
+
>${i("Week starts on", {
|
|
311
303
|
desc: "Label for week start setting"
|
|
312
304
|
})}</luzmo-field-label
|
|
313
305
|
>
|
|
@@ -323,9 +315,9 @@ let r = class extends $(F, {
|
|
|
323
315
|
</div>`;
|
|
324
316
|
}
|
|
325
317
|
_renderMonthNameSettings() {
|
|
326
|
-
return
|
|
318
|
+
return a`<div class="settings-">
|
|
327
319
|
<luzmo-field-label for="month-name"
|
|
328
|
-
>${
|
|
320
|
+
>${i("Month", { desc: "Month format setting" })}</luzmo-field-label
|
|
329
321
|
>
|
|
330
322
|
<luzmo-action-button
|
|
331
323
|
id="month-name"
|
|
@@ -340,15 +332,15 @@ let r = class extends $(F, {
|
|
|
340
332
|
.size=${this.size}
|
|
341
333
|
.icon=${this._monthName ? c : p}
|
|
342
334
|
></luzmo-icon>
|
|
343
|
-
${
|
|
335
|
+
${i("Name")}
|
|
344
336
|
</luzmo-action-button>
|
|
345
337
|
</div>`;
|
|
346
338
|
}
|
|
347
339
|
_renderDateFormatSettings() {
|
|
348
340
|
const t = this._dateSeparator === "~" ? "/" : this._dateSeparator;
|
|
349
|
-
return
|
|
341
|
+
return a`<div class="setting">
|
|
350
342
|
<luzmo-field-label for="date-format"
|
|
351
|
-
>${
|
|
343
|
+
>${i("Format", {
|
|
352
344
|
desc: "Label for format setting"
|
|
353
345
|
})}</luzmo-field-label
|
|
354
346
|
>
|
|
@@ -360,7 +352,7 @@ let r = class extends $(F, {
|
|
|
360
352
|
@change=${this._setDateFormat}
|
|
361
353
|
>
|
|
362
354
|
<luzmo-menu-item value="auto">
|
|
363
|
-
${
|
|
355
|
+
${i("Auto", { desc: "Automatic setting of the option" })}
|
|
364
356
|
</luzmo-menu-item>
|
|
365
357
|
<luzmo-menu-item value="mmdd">12${t}31</luzmo-menu-item>
|
|
366
358
|
<luzmo-menu-item value="ddmm">31${t}12</luzmo-menu-item>
|
|
@@ -369,13 +361,13 @@ let r = class extends $(F, {
|
|
|
369
361
|
}
|
|
370
362
|
_renderSeparatorSettings() {
|
|
371
363
|
const t = Object.keys(y).map(
|
|
372
|
-
(e) =>
|
|
364
|
+
(e) => a`<luzmo-menu-item value=${e}>
|
|
373
365
|
${y[e]()}
|
|
374
366
|
</luzmo-menu-item>`
|
|
375
367
|
);
|
|
376
|
-
return
|
|
368
|
+
return a`<div class="setting">
|
|
377
369
|
<luzmo-field-label for="date-separator"
|
|
378
|
-
>${
|
|
370
|
+
>${i("Separator", {
|
|
379
371
|
desc: "Label for date separator setting"
|
|
380
372
|
})}</luzmo-field-label
|
|
381
373
|
>
|
|
@@ -391,9 +383,9 @@ let r = class extends $(F, {
|
|
|
391
383
|
</div>`;
|
|
392
384
|
}
|
|
393
385
|
_render24hFormatSettings() {
|
|
394
|
-
return
|
|
386
|
+
return a`<div class="settings-">
|
|
395
387
|
<luzmo-field-label for="format-24h"
|
|
396
|
-
>${
|
|
388
|
+
>${i("24h", {
|
|
397
389
|
desc: "Label for 24h format setting"
|
|
398
390
|
})}</luzmo-field-label
|
|
399
391
|
>
|
|
@@ -414,9 +406,9 @@ let r = class extends $(F, {
|
|
|
414
406
|
</div>`;
|
|
415
407
|
}
|
|
416
408
|
_renderWeekdaySettings() {
|
|
417
|
-
return
|
|
409
|
+
return a`<div class="settings-">
|
|
418
410
|
<luzmo-field-label for="weekday"
|
|
419
|
-
>${
|
|
411
|
+
>${i("Weekday", {
|
|
420
412
|
desc: "Label for weekday setting"
|
|
421
413
|
})}</luzmo-field-label
|
|
422
414
|
>
|
|
@@ -433,20 +425,20 @@ let r = class extends $(F, {
|
|
|
433
425
|
.size=${this.size}
|
|
434
426
|
.icon=${this._weekDay ? c : p}
|
|
435
427
|
></luzmo-icon>
|
|
436
|
-
${
|
|
428
|
+
${i("Show")}
|
|
437
429
|
</luzmo-action-button>
|
|
438
430
|
</div>`;
|
|
439
431
|
}
|
|
440
432
|
_renderAllSettings() {
|
|
441
|
-
return
|
|
442
|
-
${this._dateLevel && ![1, 9].includes(this._dateLevel) ?
|
|
433
|
+
return a`<div class="settings-container">
|
|
434
|
+
${this._dateLevel && ![1, 9].includes(this._dateLevel) ? a` <div class="settings-row">
|
|
443
435
|
${this._renderDisplaySettings()}
|
|
444
436
|
${this._dateLevel && this._dateLevel >= 5 && this._displayAs === "day_in_week" ? this._renderWeekStartsOnSettings() : ""}
|
|
445
437
|
</div>` : ""}
|
|
446
|
-
${["month_in_year", "day_in_week"].includes(this._displayAs ?? "") ?
|
|
438
|
+
${["month_in_year", "day_in_week"].includes(this._displayAs ?? "") ? a` <div class="settings-row">
|
|
447
439
|
${this._renderWeekDayAndMonthNameFormatSettings()}
|
|
448
440
|
</div>` : ""}
|
|
449
|
-
${this._dateLevel && this._dateLevel > 1 && this._displayAs === "default" ?
|
|
441
|
+
${this._dateLevel && this._dateLevel > 1 && this._displayAs === "default" ? a` <div class="settings-row">
|
|
450
442
|
${this._dateLevel && this._dateLevel !== 4 && this._dateLevel !== 2 ? this._renderMonthNameSettings() : ""}
|
|
451
443
|
${this._dateLevel && this._dateLevel !== 4 && this._dateLevel > 2 && this._monthName ? this._renderMonthNameFormatSettings() : ""}
|
|
452
444
|
${this._dateLevel && this._dateLevel === 4 && !this._monthName ? this._renderWeekFormatSettings() : ""}
|
|
@@ -459,7 +451,7 @@ let r = class extends $(F, {
|
|
|
459
451
|
}
|
|
460
452
|
render() {
|
|
461
453
|
return this._loadLocaleFormatsConfig.render({
|
|
462
|
-
pending: () =>
|
|
454
|
+
pending: () => a`<luzmo-progress-circle
|
|
463
455
|
indeterminate
|
|
464
456
|
.size=${this.size}
|
|
465
457
|
></luzmo-progress-circle>`,
|
|
@@ -468,55 +460,55 @@ let r = class extends $(F, {
|
|
|
468
460
|
});
|
|
469
461
|
}
|
|
470
462
|
};
|
|
471
|
-
|
|
463
|
+
l([
|
|
472
464
|
d({ type: String })
|
|
473
|
-
],
|
|
474
|
-
|
|
465
|
+
], s.prototype, "language", 2);
|
|
466
|
+
l([
|
|
475
467
|
d({ type: String })
|
|
476
|
-
],
|
|
477
|
-
|
|
468
|
+
], s.prototype, "contentLanguage", 2);
|
|
469
|
+
l([
|
|
478
470
|
d({ type: String })
|
|
479
|
-
],
|
|
480
|
-
|
|
471
|
+
], s.prototype, "size", 2);
|
|
472
|
+
l([
|
|
481
473
|
d({ type: Object, reflect: !1 })
|
|
482
|
-
],
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
],
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
],
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
],
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
],
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
],
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
],
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
],
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
],
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
],
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
],
|
|
513
|
-
|
|
474
|
+
], s.prototype, "slotContent", 2);
|
|
475
|
+
l([
|
|
476
|
+
m("#display-as")
|
|
477
|
+
], s.prototype, "_displayAsElement", 2);
|
|
478
|
+
l([
|
|
479
|
+
m("#week-start")
|
|
480
|
+
], s.prototype, "_weekStartElement", 2);
|
|
481
|
+
l([
|
|
482
|
+
m("#weekday-and-month-in-year-format")
|
|
483
|
+
], s.prototype, "_weekDayAndMonthInYearFormatElement", 2);
|
|
484
|
+
l([
|
|
485
|
+
m("#month-name-format")
|
|
486
|
+
], s.prototype, "_monthNameFormatElement", 2);
|
|
487
|
+
l([
|
|
488
|
+
m("#month-name")
|
|
489
|
+
], s.prototype, "_monthNameElement", 2);
|
|
490
|
+
l([
|
|
491
|
+
m("#week-format")
|
|
492
|
+
], s.prototype, "_weekFormatElement", 2);
|
|
493
|
+
l([
|
|
494
|
+
m("#date-format")
|
|
495
|
+
], s.prototype, "_dateFormatElement", 2);
|
|
496
|
+
l([
|
|
497
|
+
m("#date-separator")
|
|
498
|
+
], s.prototype, "_dateSeparatorElement", 2);
|
|
499
|
+
l([
|
|
500
|
+
m("#weekday")
|
|
501
|
+
], s.prototype, "_weekDayElement", 2);
|
|
502
|
+
l([
|
|
503
|
+
m("#format-24h")
|
|
504
|
+
], s.prototype, "_format24hElement", 2);
|
|
505
|
+
s = l([
|
|
514
506
|
k()
|
|
515
|
-
],
|
|
507
|
+
], s);
|
|
516
508
|
customElements.get("luzmo-display-settings-datetime") || customElements.define(
|
|
517
509
|
"luzmo-display-settings-datetime",
|
|
518
|
-
|
|
510
|
+
s
|
|
519
511
|
);
|
|
520
512
|
export {
|
|
521
|
-
|
|
513
|
+
s as LuzmoDisplaySettingsDatetime
|
|
522
514
|
};
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/action-button");require("@luzmo/lucero/field-label");require("@luzmo/lucero/icon");const c=require("lit"),
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/action-button");require("@luzmo/lucero/field-label");require("@luzmo/lucero/icon");const c=require("lit"),a=require("@lit/localize"),u=require("@luzmo/icons"),g=require("lit/decorators.js"),m=require("lit/directives/if-defined.js"),z=require("../focusable-QLh-LlNt.cjs"),p=require("../sized-mixin-DcvJLFeo.cjs"),d=require("../set-locale-B8iQGfk0.cjs"),h=":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-gap, var(--luzmo-spacing-2))}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-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 b=Object.defineProperty,v=Object.getOwnPropertyDescriptor,n=(l,t,i,s)=>{for(var e=s>1?void 0:s?v(t,i):t,o=l.length-1,r;o>=0;o--)(r=l[o])&&(e=(s?r(t,i,e):r(e))||e);return s&&e&&b(t,i,e),e};exports.LuzmoDisplaySettingsGrandTotals=class extends p.SizedMixin(z.LuzmoElement,{validSizes:Object.values(p.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={}}static get styles(){return[c.unsafeCSS(h)]}willUpdate(t){t.has("slotContent")&&(this._enabled=this.slotContent?.grandTotals?.enabled??!1),t.has("language")&&this.language!==d.getLocale()&&([...d.targetLocales].includes(this.language??"en")||this.language==="en")&&d.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 c.html`<div class="settings-container">
|
|
21
21
|
<div class="settings-row">
|
|
22
22
|
<div class="setting">
|
|
23
23
|
<luzmo-field-label for="grand-totals"
|
|
24
|
-
>${
|
|
24
|
+
>${a.msg("Grand totals",{desc:"Label for grand totals setting in a table"})}</luzmo-field-label
|
|
25
25
|
>
|
|
26
26
|
<luzmo-action-button
|
|
27
27
|
id="grand-totals"
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
.size=${this.size}
|
|
38
38
|
.icon=${this._enabled?u.luzmoCheckboxChecked:u.luzmoCheckbox}
|
|
39
39
|
></luzmo-icon>
|
|
40
|
-
${this._enabled?
|
|
40
|
+
${this._enabled?a.msg("Enabled",{desc:"Option set to enabled"}):a.msg("Disabled",{desc:"Option set to disabled"})}
|
|
41
41
|
</luzmo-action-button>
|
|
42
42
|
</div>
|
|
43
43
|
</div>
|
|
44
|
-
</div>`}};
|
|
44
|
+
</div>`}};n([g.property({type:String,reflect:!0})],exports.LuzmoDisplaySettingsGrandTotals.prototype,"language",2);n([g.property()],exports.LuzmoDisplaySettingsGrandTotals.prototype,"slotContent",2);n([g.state()],exports.LuzmoDisplaySettingsGrandTotals.prototype,"_enabled",2);exports.LuzmoDisplaySettingsGrandTotals=n([a.localized()],exports.LuzmoDisplaySettingsGrandTotals);customElements.get("luzmo-display-settings-grand-totals")||customElements.define("luzmo-display-settings-grand-totals",exports.LuzmoDisplaySettingsGrandTotals);
|
|
@@ -25,22 +25,22 @@ import { msg as u, localized as z } from "@lit/localize";
|
|
|
25
25
|
import { luzmoCheckboxChecked as g, luzmoCheckbox as p } from "@luzmo/icons";
|
|
26
26
|
import { property as m, state as b } from "lit/decorators.js";
|
|
27
27
|
import { ifDefined as f } from "lit/directives/if-defined.js";
|
|
28
|
-
import { L as h } from "../focusable-
|
|
28
|
+
import { L as h } from "../focusable-BS2pbY7w.js";
|
|
29
29
|
import { S as v, E as x } from "../sized-mixin-cJbo3PKR.js";
|
|
30
|
-
import { g as y, t as w, s as C } from "../set-locale-
|
|
30
|
+
import { g as y, t as w, s as C } from "../set-locale-B5562CBM.js";
|
|
31
31
|
(function() {
|
|
32
32
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
33
|
-
const
|
|
34
|
-
|
|
33
|
+
const l = document.createElement("style");
|
|
34
|
+
l.setAttribute("data-luzmo-vars", ""), l.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-background-color-alt-1: rgb(250, 250, 250);--luzmo-background-color-alt-2: rgb(239, 239, 239);--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-secondary-outline: rgba(255, 0, 255, 0.2);--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-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(l);
|
|
35
35
|
}
|
|
36
36
|
})();
|
|
37
37
|
const _ = ":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-gap, var(--luzmo-spacing-2))}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-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)}";
|
|
38
|
-
var S = Object.defineProperty, k = Object.getOwnPropertyDescriptor,
|
|
39
|
-
for (var e =
|
|
40
|
-
(i =
|
|
41
|
-
return
|
|
38
|
+
var S = Object.defineProperty, k = Object.getOwnPropertyDescriptor, s = (o, l, a, r) => {
|
|
39
|
+
for (var e = r > 1 ? void 0 : r ? k(l, a) : l, n = o.length - 1, i; n >= 0; n--)
|
|
40
|
+
(i = o[n]) && (e = (r ? i(l, a, e) : i(e)) || e);
|
|
41
|
+
return r && e && S(l, a, e), e;
|
|
42
42
|
};
|
|
43
|
-
let
|
|
43
|
+
let t = class extends v(h, {
|
|
44
44
|
validSizes: Object.values(x)
|
|
45
45
|
}) {
|
|
46
46
|
constructor() {
|
|
@@ -49,15 +49,14 @@ let r = class extends v(h, {
|
|
|
49
49
|
static get styles() {
|
|
50
50
|
return [c(_)];
|
|
51
51
|
}
|
|
52
|
-
willUpdate(
|
|
53
|
-
|
|
54
|
-
l.has("slotContent") && (this._enabled = ((t = (o = this.slotContent) == null ? void 0 : o.grandTotals) == null ? void 0 : t.enabled) ?? !1), l.has("language") && this.language !== y() && ([...w].includes(this.language ?? "en") || this.language === "en") && C(this.language);
|
|
52
|
+
willUpdate(o) {
|
|
53
|
+
o.has("slotContent") && (this._enabled = this.slotContent?.grandTotals?.enabled ?? !1), o.has("language") && this.language !== y() && ([...w].includes(this.language ?? "en") || this.language === "en") && C(this.language);
|
|
55
54
|
}
|
|
56
55
|
toggleGrandTotals() {
|
|
57
56
|
this._enabled = !this._enabled, this.sendEvent();
|
|
58
57
|
}
|
|
59
58
|
sendEvent() {
|
|
60
|
-
const
|
|
59
|
+
const o = {
|
|
61
60
|
enabled: !!this._enabled
|
|
62
61
|
};
|
|
63
62
|
this.dispatchEvent(
|
|
@@ -68,7 +67,7 @@ let r = class extends v(h, {
|
|
|
68
67
|
detail: {
|
|
69
68
|
slotContent: {
|
|
70
69
|
...this.slotContent,
|
|
71
|
-
grandTotals:
|
|
70
|
+
grandTotals: o
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
})
|
|
@@ -104,22 +103,22 @@ let r = class extends v(h, {
|
|
|
104
103
|
</div>`;
|
|
105
104
|
}
|
|
106
105
|
};
|
|
107
|
-
|
|
106
|
+
s([
|
|
108
107
|
m({ type: String, reflect: !0 })
|
|
109
|
-
],
|
|
110
|
-
|
|
108
|
+
], t.prototype, "language", 2);
|
|
109
|
+
s([
|
|
111
110
|
m()
|
|
112
|
-
],
|
|
113
|
-
|
|
111
|
+
], t.prototype, "slotContent", 2);
|
|
112
|
+
s([
|
|
114
113
|
b()
|
|
115
|
-
],
|
|
116
|
-
|
|
114
|
+
], t.prototype, "_enabled", 2);
|
|
115
|
+
t = s([
|
|
117
116
|
z()
|
|
118
|
-
],
|
|
117
|
+
], t);
|
|
119
118
|
customElements.get("luzmo-display-settings-grand-totals") || customElements.define(
|
|
120
119
|
"luzmo-display-settings-grand-totals",
|
|
121
|
-
|
|
120
|
+
t
|
|
122
121
|
);
|
|
123
122
|
export {
|
|
124
|
-
|
|
123
|
+
t as LuzmoDisplaySettingsGrandTotals
|
|
125
124
|
};
|