@luzmo/analytics-components-kit 1.0.1-alpha.94 → 1.0.1-alpha.97
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 +1 -1
- package/angular/components/viz-item-menu.component.ts +25 -0
- package/angular/esm/components/viz-item-menu.component.d.ts +13 -0
- package/angular/esm/components/viz-item-menu.component.js +49 -0
- package/angular/esm/index.d.ts +3 -3
- package/angular/esm/index.js +3 -3
- package/angular/esm/types.d.ts +2 -2
- package/angular/index.ts +3 -3
- package/angular/types.ts +2 -2
- 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/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -2
- 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/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/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/display-settings-numeric.d.ts +1 -2
- package/components/display-settings-numeric/index.cjs +49 -48
- package/components/display-settings-numeric/index.js +193 -218
- 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 +208 -223
- 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/{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-data-item-picker/index.cjs +7 -7
- package/components/filter-data-item-picker/index.js +85 -86
- 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 +109 -119
- 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 +8 -8
- package/components/filter-value-picker-numeric/index.js +101 -110
- package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
- package/components/focusable-QLh-LlNt.cjs +20 -0
- 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-YlLiVgo8.js → get-css-variable-Bb7TxJdX.js} +37 -37
- package/components/get-css-variable-Pzks_rOx.cjs +24 -0
- 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-BPNsFiyq.cjs → index-BNAmjOkm.cjs} +4 -4
- package/components/index-BekTY3Em.cjs +121 -0
- package/components/index-CFL6gmIu.cjs +20 -0
- package/components/{index-Do7O9azB.js → index-CqKpf0B8.js} +112 -123
- package/components/index-DNPULp4A.js +1755 -0
- package/components/{index-D0GBF6tg.js → index-DdyZ2g5L.js} +94 -104
- 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 +13 -13
- 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/{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-hKTMz37h.js} +1 -8
- 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 +33 -33
- package/components/slot-contents-picker/index.js +194 -205
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.js +171 -184
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +97 -103
- 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 +51 -0
- package/components/viz-item-menu/index.d.ts +8 -0
- package/components/viz-item-menu/index.js +209 -0
- package/components/viz-item-menu/viz-item-menu.d.ts +77 -0
- 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 +43 -23
- package/index.d.ts +1 -1
- package/package.json +7 -7
- package/types.d.ts +2 -2
- package/angular/components/widget-menu.component.ts +0 -25
- package/angular/esm/components/widget-menu.component.d.ts +0 -13
- package/angular/esm/components/widget-menu.component.js +0 -49
- 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/focusable-B3E_hQmm.cjs +0 -20
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
- package/components/get-css-variable-BEYG097C.js +0 -1446
- package/components/get-css-variable-BZxY4IOa.cjs +0 -35
- package/components/get-css-variable-DLiZYZEi.cjs +0 -24
- package/components/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/index-Dn0j_pcR.cjs +0 -20
- package/components/index-E239Dotg.js +0 -1735
- 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
- package/components/widget-menu/index.cjs +0 -51
- package/components/widget-menu/index.d.ts +0 -8
- package/components/widget-menu/index.js +0 -211
- package/components/widget-menu/widget-menu.d.ts +0 -77
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { msg as
|
|
20
|
+
import { msg as i, localized as $ } from "@lit/localize";
|
|
21
21
|
import "@luzmo/lucero/action-button";
|
|
22
22
|
import "@luzmo/lucero/action-group";
|
|
23
23
|
import "@luzmo/lucero/field-label";
|
|
@@ -25,46 +25,46 @@ import "@luzmo/lucero/menu";
|
|
|
25
25
|
import "@luzmo/lucero/number-field";
|
|
26
26
|
import "@luzmo/lucero/picker";
|
|
27
27
|
import "@luzmo/lucero/popover";
|
|
28
|
-
import { d as
|
|
29
|
-
import { unsafeCSS as
|
|
30
|
-
import { luzmoIcon as
|
|
28
|
+
import { d as z } from "../decompose-numeric-format-BuZcjH2k.js";
|
|
29
|
+
import { unsafeCSS as w, html as s, nothing as v } from "lit";
|
|
30
|
+
import { luzmoIcon as g, luzmoAngleDown as S, luzmoTypeDerived12 as L } from "@luzmo/icons";
|
|
31
31
|
import { removeSlottableRequest as D } from "@luzmo/lucero/overlay";
|
|
32
32
|
import "@luzmo/lucero/tooltip";
|
|
33
|
-
import { c as
|
|
34
|
-
import { l as
|
|
35
|
-
import { property as
|
|
36
|
-
import { L as
|
|
37
|
-
import { S as
|
|
38
|
-
import { g as
|
|
33
|
+
import { c as C } from "../calculate-data-item-icon-DMDhKq_m.js";
|
|
34
|
+
import { l as _ } from "../localize-CcDpq940.js";
|
|
35
|
+
import { property as d, query as c, state as N } from "lit/decorators.js";
|
|
36
|
+
import { L as E } from "../focusable-BS2pbY7w.js";
|
|
37
|
+
import { S as I, E as M } from "../sized-mixin-cJbo3PKR.js";
|
|
38
|
+
import { g as k, t as O, s as W } from "../set-locale-hKTMz37h.js";
|
|
39
39
|
(function() {
|
|
40
40
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
41
|
-
const
|
|
42
|
-
|
|
41
|
+
const t = document.createElement("style");
|
|
42
|
+
t.setAttribute("data-luzmo-vars", ""), t.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-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(t);
|
|
43
43
|
}
|
|
44
44
|
})();
|
|
45
|
-
const
|
|
46
|
-
sum: () =>
|
|
47
|
-
cumulativesum: () =>
|
|
48
|
-
average: () =>
|
|
49
|
-
median: () =>
|
|
50
|
-
count: () =>
|
|
51
|
-
distinctcount: () =>
|
|
52
|
-
min: () =>
|
|
53
|
-
max: () =>
|
|
54
|
-
stddev: () =>
|
|
55
|
-
rate: () =>
|
|
56
|
-
},
|
|
45
|
+
const T = ":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-numeric-gap, var(--display-settings-numeric-gap))}.duration-angle-down-icon{margin-inline-start:var(--luzmo-numeric-duration-levels-dropdown-icon-margin-inline-start, var(--numeric-duration-levels-dropdown-icon-margin-inline-start))}.dataset-header{max-width:100%;font-weight:600;text-transform:uppercase;margin:.5rem 1rem;color:var(--luzmo-font-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:default}.no-weight-label{margin-left:1rem}.with-secondary-icon{clip-path:polygon(0 0,60% 0,65% 60%,100% 65%,100% 100%,0 100%)}.secondary-icon{position:absolute;bottom:45%;left:60%;width:auto;font-size:.75em;line-height:1}.data-icon-type{width:1.5rem;text-align:center;position:relative;display:inline-block}:host{--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-2 )}:host([size=s]){--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-1 )}:host([size=l]){--display-settings-numeric-gap: var(--luzmo-spacing-4);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-3 )}:host([size=xl]){--display-settings-numeric-gap: var(--luzmo-spacing-5);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-4 )}", q = {
|
|
46
|
+
sum: () => i("Sum", { desc: "Numeric Aggregation option" }),
|
|
47
|
+
cumulativesum: () => i("Cumulative sum", { desc: "Numeric Aggregation option" }),
|
|
48
|
+
average: () => i("Average", { desc: "Numeric Aggregation option" }),
|
|
49
|
+
median: () => i("Median", { desc: "Numeric Aggregation option" }),
|
|
50
|
+
count: () => i("Count rows", { desc: "Numeric Aggregation option" }),
|
|
51
|
+
distinctcount: () => i("Count distinct", { desc: "Numeric Aggregation option" }),
|
|
52
|
+
min: () => i("Minimum", { desc: "Numeric Aggregation option" }),
|
|
53
|
+
max: () => i("Maximum", { desc: "Numeric Aggregation option" }),
|
|
54
|
+
stddev: () => i("Standard deviation", { desc: "Numeric Aggregation option" }),
|
|
55
|
+
rate: () => i("Rate", { desc: "Numeric Aggregation option" })
|
|
56
|
+
}, b = {
|
|
57
57
|
general: "123",
|
|
58
58
|
percentage: "%",
|
|
59
59
|
scientific: "SI"
|
|
60
|
+
}, y = {
|
|
61
|
+
time: () => i("Time", { desc: "Time format option" }),
|
|
62
|
+
short: () => i("Short", { desc: "Short format option" }),
|
|
63
|
+
long: () => i("Long", { desc: "Long format option" })
|
|
60
64
|
}, x = {
|
|
61
|
-
time: () => a("Time", { desc: "Time format option" }),
|
|
62
|
-
short: () => a("Short", { desc: "Short format option" }),
|
|
63
|
-
long: () => a("Long", { desc: "Long format option" })
|
|
64
|
-
}, A = {
|
|
65
65
|
Auto: {
|
|
66
66
|
auto: !0,
|
|
67
|
-
label: () =>
|
|
67
|
+
label: () => i("Auto", { desc: "Automatic setting of the option" })
|
|
68
68
|
},
|
|
69
69
|
"1,000.00": {
|
|
70
70
|
auto: !1,
|
|
@@ -90,7 +90,7 @@ const U = ":host .settings-container{display:flex;flex-direction:column;gap:var(
|
|
|
90
90
|
label: () => "1000,00",
|
|
91
91
|
decimalSeparator: ","
|
|
92
92
|
}
|
|
93
|
-
},
|
|
93
|
+
}, R = {
|
|
94
94
|
levels: [
|
|
95
95
|
{ level: 1, label: "years" },
|
|
96
96
|
{ level: 2, label: "quarters" },
|
|
@@ -103,116 +103,112 @@ const U = ":host .settings-container{display:flex;flex-direction:column;gap:var(
|
|
|
103
103
|
{ level: 9, label: "milliseconds" }
|
|
104
104
|
]
|
|
105
105
|
};
|
|
106
|
-
var
|
|
107
|
-
for (var
|
|
108
|
-
(
|
|
109
|
-
return
|
|
106
|
+
var j = Object.defineProperty, P = Object.getOwnPropertyDescriptor, n = (e, t, o, l) => {
|
|
107
|
+
for (var r = l > 1 ? void 0 : l ? P(t, o) : t, m = e.length - 1, u; m >= 0; m--)
|
|
108
|
+
(u = e[m]) && (r = (l ? u(t, o, r) : u(r)) || r);
|
|
109
|
+
return l && r && j(t, o, r), r;
|
|
110
110
|
};
|
|
111
|
-
let
|
|
112
|
-
validSizes: Object.values(
|
|
111
|
+
let a = class extends I(E, {
|
|
112
|
+
validSizes: Object.values(M)
|
|
113
113
|
}) {
|
|
114
114
|
constructor() {
|
|
115
|
-
super(...arguments), this.language = "en", this.slotContent = {}, this.measureColumns = [], this._durationLevels = [], this._renderDurationLevelMenu = !1, this.
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
super(...arguments), this.language = "en", this.slotContent = {}, this.measureColumns = [], this._durationLevels = [], this._renderDurationLevelMenu = !1, this._handleSlottableRequest = (e) => {
|
|
116
|
+
this._renderDurationLevelMenu = e.data !== D;
|
|
117
|
+
}, this._sendEvent = () => {
|
|
118
|
+
const e = { ...this.slotContent, format: this._format, aggregationFunc: this._aggregationFunc };
|
|
119
|
+
this._aggregationWeightColumn ? e.aggregationWeight = { ...this._aggregationWeightColumn } : delete e.aggregationWeight, this._displayMode === "duration" ? (e.duration = e.duration ?? {}, e.duration.format = this._durationFormat, e.duration.levels = this._durationLevels) : delete e.duration, this.dispatchEvent(
|
|
118
120
|
new CustomEvent("slot-content-changed", {
|
|
119
121
|
bubbles: !0,
|
|
120
122
|
composed: !0,
|
|
121
123
|
cancelable: !0,
|
|
122
124
|
detail: {
|
|
123
|
-
slotContent:
|
|
125
|
+
slotContent: e
|
|
124
126
|
}
|
|
125
127
|
})
|
|
126
128
|
);
|
|
127
129
|
};
|
|
128
130
|
}
|
|
129
131
|
static get styles() {
|
|
130
|
-
return [
|
|
132
|
+
return [w(T)];
|
|
131
133
|
}
|
|
132
134
|
_parseSavedNumericFormatSettings() {
|
|
133
|
-
|
|
134
|
-
if (this._displayMode = ((t = this.slotContent) == null ? void 0 : t.subtype) === "duration" ? "duration" : "numeric", this._durationFormat = ((o = (e = this.slotContent) == null ? void 0 : e.duration) == null ? void 0 : o.format) ?? "short", this._durationLevels = ((i = (s = this.slotContent) == null ? void 0 : s.duration) == null ? void 0 : i.levels) ?? [1], this._displayMode === "duration")
|
|
135
|
+
if (this._displayMode = this.slotContent?.subtype === "duration" ? "duration" : "numeric", this._durationFormat = this.slotContent?.duration?.format ?? "short", this._durationLevels = this.slotContent?.duration?.levels ?? [1], this._displayMode === "duration")
|
|
135
136
|
this._precision = 2, this._commaDecimals = !1, this._thousandSeparator = !1;
|
|
136
137
|
else {
|
|
137
|
-
this._format =
|
|
138
|
-
const
|
|
139
|
-
this._isAuto =
|
|
140
|
-
|
|
141
|
-
), this._thousandSeparator =
|
|
138
|
+
this._format = this.slotContent?.format ?? ".0f";
|
|
139
|
+
const e = z(this._format ?? ".0f");
|
|
140
|
+
this._isAuto = e.typeFormat?.includes("a") ?? !1, ["%", "a%", "y", "ay"].includes(e.typeFormat) ? this._displayAs = "percentage" : ["s", "as", "w", "aw"].includes(e.typeFormat) ? this._displayAs = "scientific" : this._displayAs = "general", this._precision = e.precision ? Number.parseInt(e.precision.replace(".", ""), 10) : this._displayAs === "scientific" ? 1 : 0, this._commaDecimals = ["z", "az", "y", "ay", "w", "aw"].includes(
|
|
141
|
+
e.typeFormat
|
|
142
|
+
), this._thousandSeparator = e.comma === ",", this._isAuto ? this._numericFormatGroup = "Auto" : this._commaDecimals && this._thousandSeparator ? this._numericFormatGroup = "1.000,00" : !this._commaDecimals && this._thousandSeparator ? this._numericFormatGroup = "1,000.00" : this._commaDecimals && !this._thousandSeparator ? this._numericFormatGroup = "1000,00" : !this._commaDecimals && !this._thousandSeparator && (this._numericFormatGroup = "1000.00");
|
|
142
143
|
}
|
|
143
144
|
}
|
|
144
145
|
_setNumericDisplayAs() {
|
|
145
|
-
|
|
146
|
-
this._displayAs = ((e = (t = this._displayAsElement) == null ? void 0 : t.selected) == null ? void 0 : e[0]) ?? "general", this._displayAs === "scientific" && (this._precision = Math.max(this._precision ?? 0, 1), this._thousandSeparator = !1), this._setNumericFormat(), this._sendEvent(), this.requestUpdate();
|
|
146
|
+
this._displayAs = this._displayAsElement?.selected?.[0] ?? "general", this._displayAs === "scientific" && (this._precision = Math.max(this._precision ?? 0, 1), this._thousandSeparator = !1), this._setNumericFormat(), this._sendEvent(), this.requestUpdate();
|
|
147
147
|
}
|
|
148
|
-
_setNumericSeparators(
|
|
149
|
-
const
|
|
148
|
+
_setNumericSeparators(e) {
|
|
149
|
+
const t = x[e?.detail ?? "Auto"];
|
|
150
150
|
this._thousandSeparator = [",", "."].includes(
|
|
151
|
-
|
|
152
|
-
), this._commaDecimals =
|
|
151
|
+
t?.thousandSeparator ?? ""
|
|
152
|
+
), this._commaDecimals = t?.decimalSeparator === ",", this._isAuto = t?.auto, this._setNumericFormat(), this._sendEvent();
|
|
153
153
|
}
|
|
154
154
|
_setPrecision() {
|
|
155
155
|
this._precision = this._precisionElement.value, this._setNumericFormat(), this._sendEvent();
|
|
156
156
|
}
|
|
157
157
|
_setNumericFormat() {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
this._maxDurationLevel = Math.min(...this._durationLevels), e === "duration" ? (!["time", "short", "long"].includes(this._durationFormat ?? "") || this._maxDurationLevel < 6 && this._durationFormat === "time") && (this._durationFormat = "short") : (this._displayAs === "general" && this._commaDecimals ? t = "z" : this._displayAs === "percentage" && this._commaDecimals ? t = "y" : this._displayAs === "scientific" && this._commaDecimals ? t = "w" : this._displayAs === "percentage" ? t = "%" : this._displayAs === "scientific" && (t = "s"), this._format = (this._thousandSeparator || this._isAuto ? "," : "") + "." + this._precision + (this._isAuto ? "a" : "") + t);
|
|
158
|
+
let e = "f";
|
|
159
|
+
const t = this.slotContent.subtype === "duration" ? this._durationLevels && this._durationLevels?.length === 1 ? "numeric" : "duration" : "numeric";
|
|
160
|
+
this._maxDurationLevel = Math.min(...this._durationLevels), t === "duration" ? (!["time", "short", "long"].includes(this._durationFormat ?? "") || this._maxDurationLevel < 6 && this._durationFormat === "time") && (this._durationFormat = "short") : (this._displayAs === "general" && this._commaDecimals ? e = "z" : this._displayAs === "percentage" && this._commaDecimals ? e = "y" : this._displayAs === "scientific" && this._commaDecimals ? e = "w" : this._displayAs === "percentage" ? e = "%" : this._displayAs === "scientific" && (e = "s"), this._format = (this._thousandSeparator || this._isAuto ? "," : "") + "." + this._precision + (this._isAuto ? "a" : "") + e);
|
|
162
161
|
}
|
|
163
162
|
_setAggregationFunc() {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
l.typeFormat
|
|
163
|
+
const e = this._aggregationElement.value, t = this._aggregationFunc, o = this.slotContent.format;
|
|
164
|
+
if (e !== (t === "weightedaverage" ? "average" : t)) {
|
|
165
|
+
if (this._aggregationFunc = e === "average" && this._aggregationWeightColumn?.column ? "weightedaverage" : e, t === "rate") {
|
|
166
|
+
const r = z(o), m = ["%", "y", "a%", "ay"].includes(
|
|
167
|
+
r.typeFormat
|
|
170
168
|
);
|
|
171
|
-
this.slotContent.subtype === "currency" &&
|
|
169
|
+
this.slotContent.subtype === "currency" && m && this._setNumericDisplayAs();
|
|
172
170
|
}
|
|
173
|
-
this._sendEvent(), (this._aggregationFunc === "rate" ||
|
|
171
|
+
this._sendEvent(), (this._aggregationFunc === "rate" || t === "rate") && this.requestUpdate();
|
|
174
172
|
}
|
|
175
173
|
}
|
|
176
174
|
_setAggregationWeight() {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
if (t === "none")
|
|
175
|
+
const e = this._aggregationWeightElement.value, t = this._aggregationFunc;
|
|
176
|
+
if (e === "none")
|
|
180
177
|
this._aggregationWeightColumn = void 0, this._aggregationFunc === "weightedaverage" && (this._aggregationFunc = "average");
|
|
181
178
|
else {
|
|
182
|
-
let
|
|
183
|
-
for (const
|
|
184
|
-
const
|
|
185
|
-
if (
|
|
186
|
-
|
|
179
|
+
let o, l;
|
|
180
|
+
for (const r of this.measureColumns ?? []) {
|
|
181
|
+
const m = r.columns?.find((u) => u.id === e);
|
|
182
|
+
if (m) {
|
|
183
|
+
o = m, l = r.datasetId;
|
|
187
184
|
break;
|
|
188
185
|
}
|
|
189
186
|
}
|
|
190
|
-
|
|
191
|
-
column:
|
|
192
|
-
set:
|
|
193
|
-
columnSubType:
|
|
187
|
+
o && (this._aggregationWeightColumn = {
|
|
188
|
+
column: o.id,
|
|
189
|
+
set: l,
|
|
190
|
+
columnSubType: o.subtype
|
|
194
191
|
}), this._aggregationFunc === "average" && (this._aggregationFunc = "weightedaverage");
|
|
195
192
|
}
|
|
196
|
-
this._sendEvent(), this.requestUpdate(), (
|
|
193
|
+
this._sendEvent(), this.requestUpdate(), (t === "weightedaverage" && this._aggregationFunc === "average" || t === "average" && this._aggregationFunc === "weightedaverage") && this.requestUpdate();
|
|
197
194
|
}
|
|
198
195
|
_setDurationLevels() {
|
|
199
|
-
const
|
|
200
|
-
this._durationLevels = (
|
|
196
|
+
const e = this._durationLevels, t = this._durationLevelsElement.value.split(",").filter((o) => o !== "").map((o) => Number.parseInt(o, 10));
|
|
197
|
+
this._durationLevels = (t?.length ?? 0) >= 1 ? t : e, this._maxDurationLevel = Math.min(...this._durationLevels), this._fillTimeDurationLevels(), this._setNumericFormat(), this._sendEvent(), this.requestUpdate();
|
|
201
198
|
}
|
|
202
199
|
_setDurationFormat() {
|
|
203
|
-
|
|
204
|
-
this._durationFormat = (e = (t = this._durationFormatElement) == null ? void 0 : t.selected) == null ? void 0 : e[0], this._fillTimeDurationLevels(), this._setNumericFormat(), this._sendEvent(), this.requestUpdate();
|
|
200
|
+
this._durationFormat = this._durationFormatElement?.selected?.[0], this._fillTimeDurationLevels(), this._setNumericFormat(), this._sendEvent(), this.requestUpdate();
|
|
205
201
|
}
|
|
206
202
|
_fillTimeDurationLevels() {
|
|
207
203
|
if (this._durationFormat === "time") {
|
|
208
|
-
const
|
|
209
|
-
if ([7, 8, 9].includes(
|
|
210
|
-
const
|
|
204
|
+
const e = this._durationLevels.sort().at(-1);
|
|
205
|
+
if ([7, 8, 9].includes(e)) {
|
|
206
|
+
const t = {
|
|
211
207
|
lev7: [6],
|
|
212
208
|
lev8: [6, 7],
|
|
213
209
|
lev9: [6, 7, 8]
|
|
214
210
|
};
|
|
215
|
-
for (const o of
|
|
211
|
+
for (const o of t["lev" + e])
|
|
216
212
|
this._durationLevels.includes(o) || this._durationLevels.push(o);
|
|
217
213
|
this._durationLevels = [...this._durationLevels].sort();
|
|
218
214
|
}
|
|
@@ -254,39 +250,29 @@ let u = class extends M(I, {
|
|
|
254
250
|
});
|
|
255
251
|
}
|
|
256
252
|
} */
|
|
257
|
-
willUpdate(
|
|
258
|
-
|
|
259
|
-
t.has("slotContent") && (this._parseSavedNumericFormatSettings(), this._aggregationFunc = ((e = this.slotContent) == null ? void 0 : e.aggregationFunc) ?? (((o = this.slotContent) == null ? void 0 : o.type) === "numeric" ? "sum" : "count"), this._aggregationWeightColumn = (s = this.slotContent) == null ? void 0 : s.aggregationWeight, this._isFormula = ((i = this.slotContent) == null ? void 0 : i.formula) || ((l = this.slotContent) == null ? void 0 : l.formulaId)), t.has("language") && this.language !== O() && ([...W].includes(this.language ?? "en") || this.language === "en") && T(this.language);
|
|
260
|
-
}
|
|
261
|
-
firstUpdated() {
|
|
262
|
-
var t;
|
|
263
|
-
(t = this.slotContent) != null && t.duration && this._durationLevelsOverlay.addEventListener(
|
|
264
|
-
"slottable-request",
|
|
265
|
-
(e) => {
|
|
266
|
-
this._renderDurationLevelMenu = e.data !== D;
|
|
267
|
-
}
|
|
268
|
-
);
|
|
253
|
+
willUpdate(e) {
|
|
254
|
+
e.has("slotContent") && (this._parseSavedNumericFormatSettings(), this._aggregationFunc = this.slotContent?.aggregationFunc ?? (this.slotContent?.type === "numeric" ? "sum" : "count"), this._aggregationWeightColumn = this.slotContent?.aggregationWeight, this._isFormula = this.slotContent?.formula || this.slotContent?.formulaId), e.has("language") && this.language !== k() && ([...O].includes(this.language ?? "en") || this.language === "en") && W(this.language);
|
|
269
255
|
}
|
|
270
256
|
_renderDurationLevelsSettings() {
|
|
271
|
-
const
|
|
257
|
+
const e = R.levels.map((t) => {
|
|
272
258
|
let o = !1;
|
|
273
|
-
return this._durationFormat === "time" &&
|
|
274
|
-
value=${
|
|
275
|
-
?selected=${this._durationLevels.includes(
|
|
259
|
+
return this._durationFormat === "time" && t.level >= 6 && this._durationLevels.includes(t.level) && t.level !== Math.max(...this._durationLevels) && (o = !0), this._durationLevels.length === 1 && this._durationLevels.includes(t.level) && (o = !0), s`<luzmo-menu-item
|
|
260
|
+
value=${t.level}
|
|
261
|
+
?selected=${this._durationLevels.includes(t.level)}
|
|
276
262
|
?disabled=${o}
|
|
277
263
|
>
|
|
278
|
-
${
|
|
264
|
+
${t.label}
|
|
279
265
|
</luzmo-menu-item>`;
|
|
280
266
|
});
|
|
281
|
-
return
|
|
267
|
+
return s` <div class="setting">
|
|
282
268
|
<luzmo-field-label for="duration-levels">
|
|
283
|
-
${
|
|
269
|
+
${i("Duration levels", { desc: "Label for duration levels setting" })}
|
|
284
270
|
</luzmo-field-label>
|
|
285
271
|
<luzmo-action-button id="duration-levels-trigger" size=${this.size}>
|
|
286
272
|
${this._durationLevels.length}
|
|
287
273
|
${this._durationLevels.length === 1 ? "level" : "levels"} active
|
|
288
274
|
<span class="duration-angle-down-icon">
|
|
289
|
-
${
|
|
275
|
+
${g(S)}
|
|
290
276
|
</span>
|
|
291
277
|
</luzmo-action-button>
|
|
292
278
|
<luzmo-overlay
|
|
@@ -295,28 +281,29 @@ let u = class extends M(I, {
|
|
|
295
281
|
type="auto"
|
|
296
282
|
placement="bottom-start"
|
|
297
283
|
type="page"
|
|
284
|
+
@slottable-request=${this._handleSlottableRequest}
|
|
298
285
|
>
|
|
299
286
|
<luzmo-popover style="position: relative">
|
|
300
|
-
${this._renderDurationLevelMenu ?
|
|
287
|
+
${this._renderDurationLevelMenu ? s` <luzmo-menu
|
|
301
288
|
id="duration-levels"
|
|
302
289
|
size=${this.size}
|
|
303
290
|
selects="multiple"
|
|
304
291
|
.value=${this._durationLevels.join(",")}
|
|
305
292
|
@change=${this._setDurationLevels}
|
|
306
293
|
>
|
|
307
|
-
${
|
|
294
|
+
${e}
|
|
308
295
|
</luzmo-menu>` : ""}
|
|
309
296
|
</luzmo-popover>
|
|
310
297
|
</luzmo-overlay>
|
|
311
298
|
</div>`;
|
|
312
299
|
}
|
|
313
300
|
_renderDurationFormatSettings() {
|
|
314
|
-
const
|
|
315
|
-
${
|
|
301
|
+
const e = Object.keys(y).map((t) => t === "time" && (this._maxDurationLevel ?? 1) < 6 ? "" : s`<luzmo-action-button value=${t}>
|
|
302
|
+
${y[t]()}
|
|
316
303
|
</luzmo-action-button>`);
|
|
317
|
-
return
|
|
304
|
+
return s` <div class="setting">
|
|
318
305
|
<luzmo-field-label for="duration-format">
|
|
319
|
-
${
|
|
306
|
+
${i("Format", { desc: "Label for format setting" })}
|
|
320
307
|
</luzmo-field-label>
|
|
321
308
|
<luzmo-action-group
|
|
322
309
|
emphasized
|
|
@@ -327,24 +314,21 @@ let u = class extends M(I, {
|
|
|
327
314
|
selects="single"
|
|
328
315
|
@change=${this._setDurationFormat}
|
|
329
316
|
>
|
|
330
|
-
${
|
|
317
|
+
${e}
|
|
331
318
|
</luzmo-action-group>
|
|
332
319
|
</div>`;
|
|
333
320
|
}
|
|
334
321
|
_renderNumericDisplayAsSettings() {
|
|
335
|
-
const
|
|
336
|
-
(
|
|
337
|
-
var o;
|
|
338
|
-
return e !== "percentage" || (this.slotContent.subtype !== "currency" || this.slotContent.aggregationFunc === "rate") && ((o = this.slotContent.periodOverPeriod) == null ? void 0 : o.type) !== "percentageChange";
|
|
339
|
-
}
|
|
322
|
+
const e = Object.keys(b).filter(
|
|
323
|
+
(t) => t !== "percentage" || (this.slotContent.subtype !== "currency" || this.slotContent.aggregationFunc === "rate") && this.slotContent.periodOverPeriod?.type !== "percentageChange"
|
|
340
324
|
).map(
|
|
341
|
-
(
|
|
342
|
-
>${
|
|
325
|
+
(t) => s`<luzmo-action-button value=${t}
|
|
326
|
+
>${b[t]}</luzmo-action-button
|
|
343
327
|
>`
|
|
344
328
|
);
|
|
345
|
-
return
|
|
329
|
+
return s`<div class="setting">
|
|
346
330
|
<luzmo-field-label for="display-as">
|
|
347
|
-
${
|
|
331
|
+
${i("Display as", {
|
|
348
332
|
desc: "Label for display as setting for the datetime field"
|
|
349
333
|
})}
|
|
350
334
|
</luzmo-field-label>
|
|
@@ -357,19 +341,19 @@ let u = class extends M(I, {
|
|
|
357
341
|
selects="single"
|
|
358
342
|
@change=${this._setNumericDisplayAs}
|
|
359
343
|
>
|
|
360
|
-
${
|
|
344
|
+
${e}
|
|
361
345
|
</luzmo-action-group>
|
|
362
346
|
</div>`;
|
|
363
347
|
}
|
|
364
348
|
_renderNumericFormatSettings() {
|
|
365
|
-
const
|
|
366
|
-
([, { hiddenFor:
|
|
349
|
+
const e = Object.entries(x).filter(
|
|
350
|
+
([, { hiddenFor: t }]) => !t || t !== this._displayAs
|
|
367
351
|
).map(
|
|
368
|
-
([
|
|
352
|
+
([t, { label: o }]) => s`<luzmo-menu-item value=${t}>${o()}</luzmo-menu-item>`
|
|
369
353
|
);
|
|
370
|
-
return
|
|
354
|
+
return s` <div class="setting">
|
|
371
355
|
<luzmo-field-label for="format">
|
|
372
|
-
${
|
|
356
|
+
${i("Format", { desc: "Label for format setting" })}
|
|
373
357
|
</luzmo-field-label>
|
|
374
358
|
<luzmo-picker
|
|
375
359
|
id="format"
|
|
@@ -378,14 +362,14 @@ let u = class extends M(I, {
|
|
|
378
362
|
value=${this._numericFormatGroup ?? "Auto"}
|
|
379
363
|
@change=${this._setNumericSeparators}
|
|
380
364
|
>
|
|
381
|
-
${
|
|
365
|
+
${e}
|
|
382
366
|
</luzmo-picker>
|
|
383
367
|
</div>
|
|
384
368
|
<div class="setting">
|
|
385
369
|
<luzmo-field-label for="precision" id="precision-label">
|
|
386
|
-
${this._displayAs === "scientific" ?
|
|
370
|
+
${this._displayAs === "scientific" ? i("Precision", {
|
|
387
371
|
desc: "Label for precision setting"
|
|
388
|
-
}) :
|
|
372
|
+
}) : i("Decimals", {
|
|
389
373
|
desc: "Label for decimals setting"
|
|
390
374
|
})}
|
|
391
375
|
</luzmo-field-label>
|
|
@@ -400,84 +384,79 @@ let u = class extends M(I, {
|
|
|
400
384
|
</div>`;
|
|
401
385
|
}
|
|
402
386
|
_renderAggregationSettings() {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
).filter(([s]) => s !== "cumulativesum" || this.isCumulativeSumEnabled).map(
|
|
410
|
-
([s, i]) => r`<luzmo-menu-item value=${s}>${i()}</luzmo-menu-item>`
|
|
411
|
-
), e = [
|
|
412
|
-
r`<luzmo-menu-item value="none" class="no-weight">
|
|
387
|
+
const e = Object.entries(q).filter(
|
|
388
|
+
([o]) => ["count", "distinctcount"].includes(o) || this.slotContent?.type === "numeric"
|
|
389
|
+
).filter(([o]) => o !== "cumulativesum" || this.isCumulativeSumEnabled).map(
|
|
390
|
+
([o, l]) => s`<luzmo-menu-item value=${o}>${l()}</luzmo-menu-item>`
|
|
391
|
+
), t = [
|
|
392
|
+
s`<luzmo-menu-item value="none" class="no-weight">
|
|
413
393
|
<span class="no-weight-label">No weight</span>
|
|
414
394
|
</luzmo-menu-item>`,
|
|
415
|
-
...(this.measureColumns ?? []).flatMap((
|
|
416
|
-
const
|
|
417
|
-
|
|
395
|
+
...(this.measureColumns ?? []).flatMap((o) => {
|
|
396
|
+
const l = typeof o.datasetName == "object" ? _(
|
|
397
|
+
o.datasetName,
|
|
418
398
|
this.language
|
|
419
|
-
) :
|
|
420
|
-
${
|
|
399
|
+
) : o.datasetName, r = s`<div class="dataset-header">
|
|
400
|
+
${l}
|
|
421
401
|
<luzmo-tooltip self-managed placement="right" size=${this.size}>
|
|
422
|
-
${
|
|
402
|
+
${l}
|
|
423
403
|
</luzmo-tooltip>
|
|
424
|
-
</div>`,
|
|
425
|
-
const
|
|
426
|
-
>${
|
|
427
|
-
>` :
|
|
428
|
-
return
|
|
404
|
+
</div>`, m = (o.columns ?? []).map((u) => {
|
|
405
|
+
const h = typeof u.name == "object" ? _(u.name, this.language) : u.name, A = g(C(u, "s")), p = u.expression ? L : void 0, f = !!p, F = f ? s`<span class="secondary-icon"
|
|
406
|
+
>${g(p)}</span
|
|
407
|
+
>` : v;
|
|
408
|
+
return s`<luzmo-menu-item value=${u.id}>
|
|
429
409
|
<span class="data-icon-type" slot="icon">
|
|
430
|
-
<span class=${
|
|
431
|
-
>${
|
|
410
|
+
<span class=${f ? "with-secondary-icon" : ""}
|
|
411
|
+
>${A}</span
|
|
432
412
|
>
|
|
433
|
-
${
|
|
413
|
+
${F}
|
|
434
414
|
</span>
|
|
435
|
-
<span class="column-label text-truncate">${
|
|
415
|
+
<span class="column-label text-truncate">${h}</span>
|
|
436
416
|
<luzmo-tooltip self-managed placement="right" size=${this.size}>
|
|
437
|
-
${
|
|
417
|
+
${h}
|
|
438
418
|
</luzmo-tooltip>
|
|
439
419
|
</luzmo-menu-item>`;
|
|
440
420
|
});
|
|
441
|
-
return [
|
|
421
|
+
return [r, ...m];
|
|
442
422
|
})
|
|
443
423
|
];
|
|
444
|
-
return
|
|
424
|
+
return s`<div class="settings-row">
|
|
445
425
|
<div class="setting">
|
|
446
426
|
<luzmo-field-label for="aggregation">
|
|
447
|
-
${
|
|
427
|
+
${i("Aggregation", { desc: "Label for aggregation setting" })}
|
|
448
428
|
</luzmo-field-label>
|
|
449
429
|
<luzmo-picker
|
|
450
430
|
id="aggregation"
|
|
451
431
|
size=${this.size}
|
|
452
432
|
variant="highlight"
|
|
453
433
|
value=${(() => {
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
return this._aggregationFunc === "weightedaverage" ? "average" : this._aggregationFunc ?? s;
|
|
434
|
+
const o = this.slotContent?.type === "numeric" ? "sum" : "count";
|
|
435
|
+
return this._aggregationFunc === "weightedaverage" ? "average" : this._aggregationFunc ?? o;
|
|
457
436
|
})()}
|
|
458
437
|
@change=${this._setAggregationFunc}
|
|
459
438
|
>
|
|
460
|
-
${
|
|
439
|
+
${e}
|
|
461
440
|
</luzmo-picker>
|
|
462
441
|
</div>
|
|
463
442
|
${["rate", "average", "weightedaverage"].includes(
|
|
464
443
|
this._aggregationFunc ?? ""
|
|
465
|
-
) ?
|
|
444
|
+
) ? s`<div class="setting">
|
|
466
445
|
<luzmo-field-label for="weighting-column">
|
|
467
446
|
${this._aggregationFunc === "rate" ? "Denominator" : "Weight"}
|
|
468
447
|
</luzmo-field-label>
|
|
469
|
-
${this.measureColumns.length > 0 ?
|
|
448
|
+
${this.measureColumns.length > 0 ? s`
|
|
470
449
|
<luzmo-picker
|
|
471
450
|
id="weighting-column"
|
|
472
451
|
size=${this.size}
|
|
473
452
|
variant="highlight"
|
|
474
453
|
icons="none"
|
|
475
|
-
value=${
|
|
454
|
+
value=${this._aggregationWeightColumn?.column ?? "none"}
|
|
476
455
|
@change=${this._setAggregationWeight}
|
|
477
456
|
>
|
|
478
|
-
${
|
|
457
|
+
${t}
|
|
479
458
|
</luzmo-picker>
|
|
480
|
-
` :
|
|
459
|
+
` : s`<luzmo-picker
|
|
481
460
|
id="weighting-column"
|
|
482
461
|
size=${this.size}
|
|
483
462
|
variant="highlight"
|
|
@@ -490,63 +469,59 @@ let u = class extends M(I, {
|
|
|
490
469
|
</div>`;
|
|
491
470
|
}
|
|
492
471
|
render() {
|
|
493
|
-
|
|
494
|
-
return r`<div class="settings-container">
|
|
472
|
+
return s`<div class="settings-container">
|
|
495
473
|
<div class="settings-row">
|
|
496
474
|
${this._displayMode === "duration" ? this._renderDurationLevelsSettings() : this._renderNumericDisplayAsSettings()}
|
|
497
|
-
${
|
|
475
|
+
${this._durationLevels?.length > 1 ? this._renderDurationFormatSettings() : this._renderNumericFormatSettings()}
|
|
498
476
|
</div>
|
|
499
|
-
${this._isFormula || this.isAggregationDisabled ?
|
|
477
|
+
${this._isFormula || this.isAggregationDisabled ? v : this._renderAggregationSettings()}
|
|
500
478
|
</div>
|
|
501
479
|
</div>`;
|
|
502
480
|
}
|
|
503
481
|
};
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
],
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
],
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
],
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
],
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
],
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
],
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
],
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
],
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
],
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
],
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
],
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
],
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
],
|
|
543
|
-
u = m([
|
|
544
|
-
w()
|
|
545
|
-
], u);
|
|
482
|
+
n([
|
|
483
|
+
d({ type: String, reflect: !0 })
|
|
484
|
+
], a.prototype, "language", 2);
|
|
485
|
+
n([
|
|
486
|
+
d({ type: Object, reflect: !0 })
|
|
487
|
+
], a.prototype, "slotContent", 2);
|
|
488
|
+
n([
|
|
489
|
+
d({ type: Array, reflect: !1 })
|
|
490
|
+
], a.prototype, "measureColumns", 2);
|
|
491
|
+
n([
|
|
492
|
+
d({ type: Boolean })
|
|
493
|
+
], a.prototype, "isAggregationDisabled", 2);
|
|
494
|
+
n([
|
|
495
|
+
d({ type: Boolean })
|
|
496
|
+
], a.prototype, "isCumulativeSumEnabled", 2);
|
|
497
|
+
n([
|
|
498
|
+
c("#display-as")
|
|
499
|
+
], a.prototype, "_displayAsElement", 2);
|
|
500
|
+
n([
|
|
501
|
+
c("#precision")
|
|
502
|
+
], a.prototype, "_precisionElement", 2);
|
|
503
|
+
n([
|
|
504
|
+
c("#aggregation")
|
|
505
|
+
], a.prototype, "_aggregationElement", 2);
|
|
506
|
+
n([
|
|
507
|
+
c("#weighting-column")
|
|
508
|
+
], a.prototype, "_aggregationWeightElement", 2);
|
|
509
|
+
n([
|
|
510
|
+
c("#duration-levels")
|
|
511
|
+
], a.prototype, "_durationLevelsElement", 2);
|
|
512
|
+
n([
|
|
513
|
+
c("#duration-format")
|
|
514
|
+
], a.prototype, "_durationFormatElement", 2);
|
|
515
|
+
n([
|
|
516
|
+
N()
|
|
517
|
+
], a.prototype, "_renderDurationLevelMenu", 2);
|
|
518
|
+
a = n([
|
|
519
|
+
$()
|
|
520
|
+
], a);
|
|
546
521
|
customElements.get("luzmo-display-settings-numeric") || customElements.define(
|
|
547
522
|
"luzmo-display-settings-numeric",
|
|
548
|
-
|
|
523
|
+
a
|
|
549
524
|
);
|
|
550
525
|
export {
|
|
551
|
-
|
|
526
|
+
a as LuzmoDisplaySettingsNumeric
|
|
552
527
|
};
|