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