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