@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
|
@@ -19,60 +19,62 @@
|
|
|
19
19
|
* */
|
|
20
20
|
import "@luzmo/lucero/number-field";
|
|
21
21
|
import "@luzmo/lucero/select";
|
|
22
|
-
import { unsafeCSS as
|
|
23
|
-
import { msg as
|
|
24
|
-
import { SizedMixin as
|
|
25
|
-
import { d as
|
|
26
|
-
import { g as
|
|
27
|
-
import { property as
|
|
22
|
+
import { unsafeCSS as C, html as y } from "lit";
|
|
23
|
+
import { msg as z, localized as T } from "@lit/localize";
|
|
24
|
+
import { SizedMixin as E, LuzmoElement as I, ElementSizes as N } from "@luzmo/lucero/utils";
|
|
25
|
+
import { d as S } from "../index-BPN3bG9X.js";
|
|
26
|
+
import { g as R, t as O, s as D } from "../set-locale-B-Tz2sdI.js";
|
|
27
|
+
import { property as d, state as _ } from "lit/decorators.js";
|
|
28
28
|
(function() {
|
|
29
29
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
30
30
|
const r = document.createElement("style");
|
|
31
31
|
r.setAttribute("data-luzmo-vars", ""), r.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(r);
|
|
32
32
|
}
|
|
33
33
|
})();
|
|
34
|
-
const
|
|
35
|
-
var
|
|
36
|
-
for (var o =
|
|
37
|
-
(
|
|
38
|
-
return
|
|
34
|
+
const Q = ".missing-value{opacity:.4}:host{--var: blue}";
|
|
35
|
+
var U = Object.defineProperty, F = Object.getOwnPropertyDescriptor, n = (e, r, t, l) => {
|
|
36
|
+
for (var o = l > 1 ? void 0 : l ? F(r, t) : r, s = e.length - 1, i; s >= 0; s--)
|
|
37
|
+
(i = e[s]) && (o = (l ? i(r, t, o) : i(o)) || o);
|
|
38
|
+
return l && o && U(r, t, o), o;
|
|
39
39
|
};
|
|
40
|
-
const
|
|
41
|
-
let
|
|
42
|
-
validSizes: Object.values(
|
|
40
|
+
const V = 5e3;
|
|
41
|
+
let u = class extends E(I, {
|
|
42
|
+
validSizes: Object.values(N)
|
|
43
43
|
}) {
|
|
44
44
|
constructor() {
|
|
45
45
|
super(...arguments), this.language = "en", this.contentLanguage = "en", this._numericValues = [], this._retrieving = !0, this._search = "", this._error = null, this._allValuesRetrieved = !1, this._runningQueries = [];
|
|
46
46
|
}
|
|
47
47
|
static get styles() {
|
|
48
|
-
return [
|
|
48
|
+
return [C(Q)];
|
|
49
49
|
}
|
|
50
50
|
connectedCallback() {
|
|
51
51
|
super.connectedCallback();
|
|
52
52
|
const e = {};
|
|
53
|
-
this.apiUrl && (e.apiUrl = this.apiUrl), this.cacheTime && (e.staleTime = this.cacheTime, e.gcTime = this.cacheTime * 2), this.authKey && this.authToken && (e.authKey = this.authKey, e.authToken = this.authToken),
|
|
53
|
+
this.apiUrl && (e.apiUrl = this.apiUrl), this.cacheTime && (e.staleTime = this.cacheTime, e.gcTime = this.cacheTime * 2), this.authKey && this.authToken && (e.authKey = this.authKey, e.authToken = this.authToken), S.configure(e);
|
|
54
54
|
}
|
|
55
55
|
willUpdate(e) {
|
|
56
|
+
var l, o, s, i, h, c, b, f, g, a, m, p, v, x;
|
|
56
57
|
const r = e.has("filter");
|
|
57
|
-
if (e.has("language") && this.language !==
|
|
58
|
-
const
|
|
59
|
-
(
|
|
58
|
+
if (e.has("language") && this.language !== R() && ([...O].includes(this.language ?? "en") || this.language === "en") && D(this.language), r && this.filter) {
|
|
59
|
+
const w = (l = e.get("filter")) == null ? void 0 : l.expression, k = (o = this.filter) == null ? void 0 : o.expression, L = ((h = (i = (s = e.get("filter")) == null ? void 0 : s.parameters) == null ? void 0 : i[0]) == null ? void 0 : h.columnId) || ((f = (b = (c = e.get("filter")) == null ? void 0 : c.parameters) == null ? void 0 : b[0]) == null ? void 0 : f.formulaId), $ = ((m = (a = (g = this.filter) == null ? void 0 : g.parameters) == null ? void 0 : a[0]) == null ? void 0 : m.columnId) || ((x = (v = (p = this.filter) == null ? void 0 : p.parameters) == null ? void 0 : v[0]) == null ? void 0 : x.formulaId);
|
|
60
|
+
(L !== $ || !["? in ?", "? not in ?"].includes(w)) && ["? in ?", "? not in ?"].includes(k) && (this._numericValues = [], this._allValuesRetrieved = !1, this._retrieving = !0);
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
/**
|
|
63
64
|
* Fetches numeric values from the databroker
|
|
64
65
|
*/
|
|
65
66
|
async _fetchNumericValues(e = 0) {
|
|
67
|
+
var f, g;
|
|
66
68
|
if (this._allValuesRetrieved) {
|
|
67
69
|
this._retrieving = !1;
|
|
68
70
|
return;
|
|
69
71
|
}
|
|
70
|
-
if (!this.filter
|
|
72
|
+
if (!((g = (f = this.filter) == null ? void 0 : f.parameters) != null && g[0])) {
|
|
71
73
|
this._retrieving = !1, this._error = "Missing column parameters";
|
|
72
74
|
return;
|
|
73
75
|
}
|
|
74
|
-
const r = this.filter.parameters[0],
|
|
75
|
-
if (!
|
|
76
|
+
const r = this.filter.parameters[0], t = r.columnId, l = r.formulaId, o = r.datasetId;
|
|
77
|
+
if (!t && !l) {
|
|
76
78
|
this._retrieving = !1, this._error = "Missing column id or formula id";
|
|
77
79
|
return;
|
|
78
80
|
} else if (!o) {
|
|
@@ -80,57 +82,57 @@ let i = class extends S(V, {
|
|
|
80
82
|
return;
|
|
81
83
|
}
|
|
82
84
|
this._retrieving = !0, this._error = null;
|
|
83
|
-
const
|
|
85
|
+
const s = {
|
|
84
86
|
expression: "? like ?",
|
|
85
87
|
parameters: [
|
|
86
88
|
{
|
|
87
89
|
dataset_id: o,
|
|
88
|
-
expression: `CAST({${o}:${
|
|
90
|
+
expression: `CAST({${o}:${t ?? l}},hierarchy)`
|
|
89
91
|
},
|
|
90
92
|
this._search
|
|
91
93
|
]
|
|
92
|
-
},
|
|
94
|
+
}, i = {
|
|
93
95
|
dimensions: [
|
|
94
96
|
{
|
|
95
|
-
column_id:
|
|
96
|
-
formula_id:
|
|
97
|
+
column_id: t,
|
|
98
|
+
formula_id: l,
|
|
97
99
|
dataset_id: o
|
|
98
100
|
}
|
|
99
101
|
],
|
|
100
102
|
where: [],
|
|
101
103
|
order: [
|
|
102
104
|
{
|
|
103
|
-
column_id:
|
|
104
|
-
formula_id:
|
|
105
|
+
column_id: t,
|
|
106
|
+
formula_id: l,
|
|
105
107
|
dataset_id: o,
|
|
106
108
|
order: "asc"
|
|
107
109
|
}
|
|
108
110
|
],
|
|
109
111
|
limit: {
|
|
110
|
-
by:
|
|
112
|
+
by: V,
|
|
111
113
|
offset: e
|
|
112
114
|
}
|
|
113
115
|
};
|
|
114
|
-
this._search && !this._allValuesRetrieved &&
|
|
115
|
-
const
|
|
116
|
-
|
|
116
|
+
this._search && !this._allValuesRetrieved && i.where.push(s);
|
|
117
|
+
const h = new AbortController(), c = new Promise((a, m) => {
|
|
118
|
+
S.fetchData(i).then(a).catch(m), h.signal.addEventListener("abort", () => {
|
|
117
119
|
console.warn("Request aborted"), m({ status: "aborted" });
|
|
118
120
|
});
|
|
119
|
-
}),
|
|
120
|
-
promise:
|
|
121
|
-
abortController:
|
|
121
|
+
}), b = {
|
|
122
|
+
promise: c,
|
|
123
|
+
abortController: h
|
|
122
124
|
};
|
|
123
|
-
this._runningQueries.push(
|
|
125
|
+
this._runningQueries.push(b);
|
|
124
126
|
try {
|
|
125
|
-
const
|
|
126
|
-
this._search || (this._allValuesRetrieved = m.length <
|
|
127
|
-
} catch (
|
|
128
|
-
if (
|
|
127
|
+
const a = await c, m = a && Array.isArray(a.data) ? a.data.map((p) => p[0]) : [];
|
|
128
|
+
this._search || (this._allValuesRetrieved = m.length < V), this._numericValues = e > 0 ? [...this._numericValues, ...m] : m;
|
|
129
|
+
} catch (a) {
|
|
130
|
+
if ((a == null ? void 0 : a.status) === "aborted")
|
|
129
131
|
return;
|
|
130
|
-
this._error =
|
|
132
|
+
this._error = a instanceof Error ? a.message : "Unknown error", this._numericValues = [];
|
|
131
133
|
} finally {
|
|
132
134
|
this._runningQueries = this._runningQueries.filter(
|
|
133
|
-
(
|
|
135
|
+
(a) => a.promise !== c
|
|
134
136
|
), this._retrieving = !1;
|
|
135
137
|
}
|
|
136
138
|
}
|
|
@@ -147,33 +149,38 @@ let i = class extends S(V, {
|
|
|
147
149
|
);
|
|
148
150
|
}
|
|
149
151
|
setValue(e) {
|
|
150
|
-
|
|
152
|
+
var t, l, o, s, i;
|
|
153
|
+
const r = ["? in ?", "? not in ?"].includes((t = this.filter) == null ? void 0 : t.expression) ? (l = e == null ? void 0 : e.detail) == null ? void 0 : l.value : (o = e == null ? void 0 : e.target) == null ? void 0 : o.value;
|
|
151
154
|
this._value !== r && (this._value = r, this.filter = {
|
|
152
155
|
...this.filter,
|
|
153
|
-
parameters: [{ ...this.filter
|
|
156
|
+
parameters: [{ ...(i = (s = this.filter) == null ? void 0 : s.parameters) == null ? void 0 : i[0] }, r]
|
|
154
157
|
}, this._sendChangeEvent());
|
|
155
158
|
}
|
|
156
159
|
selectValue(e) {
|
|
157
|
-
|
|
160
|
+
var l, o, s;
|
|
161
|
+
const t = (((l = e.detail) == null ? void 0 : l.value) ?? "").map((i) => Number.parseFloat(i));
|
|
158
162
|
this.filter = {
|
|
159
163
|
...this.filter,
|
|
160
|
-
parameters: [{ ...this.filter
|
|
161
|
-
}, this._value =
|
|
164
|
+
parameters: [{ ...(s = (o = this.filter) == null ? void 0 : o.parameters) == null ? void 0 : s[0] }, t]
|
|
165
|
+
}, this._value = t, this._sendChangeEvent();
|
|
162
166
|
}
|
|
163
167
|
onScrolled(e) {
|
|
164
|
-
|
|
168
|
+
var r;
|
|
169
|
+
!this._retrieving && !this._allValuesRetrieved && ((r = e == null ? void 0 : e.detail) == null ? void 0 : r.last) === this._numericValues.length - 1 && this._fetchNumericValues(this._numericValues.length);
|
|
165
170
|
}
|
|
166
171
|
renderNumberField() {
|
|
167
|
-
|
|
172
|
+
var e, r;
|
|
173
|
+
return y`<luzmo-number-field
|
|
168
174
|
.size=${this.size}
|
|
169
175
|
@change=${this.setValue}
|
|
170
176
|
@input=${this.setValue}
|
|
171
|
-
.value=${this.filter
|
|
177
|
+
.value=${(r = (e = this.filter) == null ? void 0 : e.parameters) == null ? void 0 : r[1]}
|
|
172
178
|
></luzmo-number-field>`;
|
|
173
179
|
}
|
|
174
180
|
setSearchString(e) {
|
|
175
|
-
|
|
176
|
-
|
|
181
|
+
var r;
|
|
182
|
+
this._search = ((r = e == null ? void 0 : e.detail) == null ? void 0 : r.string) ?? "", this._allValuesRetrieved || (this._searchQueryTimeout && (this._runningQueries.forEach((t) => {
|
|
183
|
+
t != null && t.abortController && t.abortController.abort();
|
|
177
184
|
}), this._runningQueries = [], clearTimeout(this._searchQueryTimeout)), this._searchQueryTimeout = setTimeout(() => {
|
|
178
185
|
this._fetchNumericValues();
|
|
179
186
|
}, 500));
|
|
@@ -185,14 +192,15 @@ let i = class extends S(V, {
|
|
|
185
192
|
this._fetchNumericValues();
|
|
186
193
|
}
|
|
187
194
|
renderValuePicker() {
|
|
195
|
+
var i, h;
|
|
188
196
|
this._error && console.error(`Numeric value retrieve error: ${this._error}`);
|
|
189
|
-
const e = this._numericValues.filter((
|
|
190
|
-
value:
|
|
191
|
-
label:
|
|
192
|
-
})), r =
|
|
193
|
-
return
|
|
197
|
+
const e = this._numericValues.filter((c) => c.toString().toLowerCase().includes(this._search.toLowerCase())).map((c) => ({
|
|
198
|
+
value: c,
|
|
199
|
+
label: c
|
|
200
|
+
})), r = z("Selected {count} items"), t = z("Search"), l = z("No data"), o = z("No results"), s = z("Select...");
|
|
201
|
+
return y`<luzmo-select
|
|
194
202
|
.size=${this.size}
|
|
195
|
-
.label=${
|
|
203
|
+
.label=${s}
|
|
196
204
|
.retrieving=${this._retrieving}
|
|
197
205
|
selects="multiple"
|
|
198
206
|
variant="checkboxes"
|
|
@@ -200,8 +208,8 @@ let i = class extends S(V, {
|
|
|
200
208
|
no-wrap
|
|
201
209
|
?invalid=${!!this._error}
|
|
202
210
|
.multipleLabelTemplate=${r}
|
|
203
|
-
.searchLabel=${
|
|
204
|
-
.noDataLabel=${
|
|
211
|
+
.searchLabel=${t}
|
|
212
|
+
.noDataLabel=${l}
|
|
205
213
|
.noResultsLabel=${o}
|
|
206
214
|
@change=${this.selectValue}
|
|
207
215
|
@luzmo-search=${this.setSearchString}
|
|
@@ -209,55 +217,56 @@ let i = class extends S(V, {
|
|
|
209
217
|
@luzmo-closed=${this.resetSearchString}
|
|
210
218
|
@luzmo-scrolled=${this.onScrolled}
|
|
211
219
|
.options=${e}
|
|
212
|
-
.value=${this.filter
|
|
220
|
+
.value=${(h = (i = this.filter) == null ? void 0 : i.parameters) == null ? void 0 : h[1]}
|
|
213
221
|
>
|
|
214
222
|
</luzmo-select>`;
|
|
215
223
|
}
|
|
216
224
|
render() {
|
|
217
|
-
|
|
225
|
+
var r;
|
|
226
|
+
const e = (r = this.filter) == null ? void 0 : r.expression;
|
|
218
227
|
return ["? in ?", "? not in ?"].includes(e) ? this.renderValuePicker() : this.renderNumberField();
|
|
219
228
|
}
|
|
220
229
|
};
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
],
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
],
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
],
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
],
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
],
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
],
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
],
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
],
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
],
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
],
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
],
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
],
|
|
230
|
+
n([
|
|
231
|
+
d({ type: String, attribute: "api-url", reflect: !0 })
|
|
232
|
+
], u.prototype, "apiUrl", 2);
|
|
233
|
+
n([
|
|
234
|
+
d({ type: String, attribute: "auth-key", reflect: !0 })
|
|
235
|
+
], u.prototype, "authKey", 2);
|
|
236
|
+
n([
|
|
237
|
+
d({ type: String, attribute: "auth-token", reflect: !0 })
|
|
238
|
+
], u.prototype, "authToken", 2);
|
|
239
|
+
n([
|
|
240
|
+
d({ type: Number, attribute: "cache-time", reflect: !0 })
|
|
241
|
+
], u.prototype, "cacheTime", 2);
|
|
242
|
+
n([
|
|
243
|
+
d({ type: String, reflect: !0 })
|
|
244
|
+
], u.prototype, "language", 2);
|
|
245
|
+
n([
|
|
246
|
+
d({ type: String, attribute: "content-language", reflect: !0 })
|
|
247
|
+
], u.prototype, "contentLanguage", 2);
|
|
248
|
+
n([
|
|
249
|
+
d({ type: Object, reflect: !1 })
|
|
250
|
+
], u.prototype, "filter", 2);
|
|
251
|
+
n([
|
|
252
|
+
_()
|
|
253
|
+
], u.prototype, "_numericValues", 2);
|
|
254
|
+
n([
|
|
255
|
+
_()
|
|
256
|
+
], u.prototype, "_retrieving", 2);
|
|
257
|
+
n([
|
|
258
|
+
_()
|
|
259
|
+
], u.prototype, "_search", 2);
|
|
260
|
+
n([
|
|
261
|
+
_()
|
|
262
|
+
], u.prototype, "_error", 2);
|
|
263
|
+
u = n([
|
|
264
|
+
T()
|
|
265
|
+
], u);
|
|
257
266
|
customElements.get("luzmo-filter-value-picker-numeric") || customElements.define(
|
|
258
267
|
"luzmo-filter-value-picker-numeric",
|
|
259
|
-
|
|
268
|
+
u
|
|
260
269
|
);
|
|
261
270
|
export {
|
|
262
|
-
|
|
271
|
+
u as LuzmoFilterValuePickerNumeric
|
|
263
272
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
|
7
|
+
* This license allows users with a current active Luzmo account
|
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
+
*
|
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
+
* SOFTWARE.
|
|
19
|
+
* */
|
|
20
|
+
"use strict";const d=require("lit/decorators.js"),g=require("lit"),u=new Set,y=()=>{const n=document.documentElement.dir==="rtl"?document.documentElement.dir:"ltr";u.forEach(e=>{e.setAttribute("dir",n)})},x=new MutationObserver(y);x.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const v=n=>n.startManagingContentDirection!==void 0||n.tagName==="LUZMO-THEME";function A(n){class e extends n{get isLTR(){return this.dir==="ltr"}hasVisibleFocusInTree(){const s=((a=document)=>{var f;let t=a.activeElement;for(;t!=null&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;const l=t?[t]:[];for(;t;){const r=t.assignedSlot||t.parentElement||((f=t.getRootNode())==null?void 0:f.host);r&&l.push(r),t=r}return l})(this.getRootNode())[0];if(!s)return!1;try{return s.matches(":focus-visible")||s.matches(".focus-visible")}catch{return s.matches(".focus-visible")}}connectedCallback(){if(super.connectedCallback(),!this.hasAttribute("dir")){let i=this.assignedSlot||this.parentNode;for(;i!==document.documentElement&&!v(i);)i=i.assignedSlot||i.parentNode||i.host;if(this.dir=i.dir==="rtl"?i.dir:this.dir||"ltr",i===document.documentElement)u.add(this);else{const{localName:s}=i;s.search("-")>-1&&!customElements.get(s)?customElements.whenDefined(s).then(()=>{i.startManagingContentDirection(this)}):i.startManagingContentDirection(this)}this._dirParent=i}super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._dirParent&&(this._dirParent===document.documentElement?u.delete(this):this._dirParent.stopManagingContentDirection(this),this.removeAttribute("dir"))}}return e}class p extends A(g.LitElement){}let c=!0;try{document.body.querySelector(":focus-visible")}catch{c=!1,Promise.resolve().then(()=>w)}const E=n=>{var e,o;const i=t=>{if(t.shadowRoot==null||Object.hasOwn(t.dataset,"jsFocusVisible"))return()=>{};if(self.applyFocusVisiblePolyfill)self.applyFocusVisiblePolyfill(t.shadowRoot),t.manageAutoFocus&&t.manageAutoFocus();else{const l=()=>{self.applyFocusVisiblePolyfill&&t.shadowRoot&&self.applyFocusVisiblePolyfill(t.shadowRoot),t.manageAutoFocus&&t.manageAutoFocus()};return self.addEventListener("focus-visible-polyfill-ready",l,{once:!0}),()=>{self.removeEventListener("focus-visible-polyfill-ready",l)}}return()=>{}},s=Symbol("endPolyfillCoordination");class a extends(o=n,e=s,o){constructor(){super(...arguments),this[e]=null}connectedCallback(){super.connectedCallback&&super.connectedCallback(),c||requestAnimationFrame(()=>{this[s]==null&&(this[s]=i(this))})}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),c||requestAnimationFrame(()=>{this[s]!=null&&(this[s](),this[s]=null)})}}return a},w=Object.freeze(Object.defineProperty({__proto__:null,FocusVisiblePolyfillMixin:E},Symbol.toStringTag,{value:"Module"}));var C=Object.defineProperty,F=Object.getOwnPropertyDescriptor,h=(n,e,o,i)=>{for(var s=i>1?void 0:i?F(e,o):e,a=n.length-1,t;a>=0;a--)(t=n[a])&&(s=(i?t(e,o,s):t(s))||s);return i&&s&&C(e,o,s),s};function m(){return new Promise(n=>requestAnimationFrame(()=>n()))}class b extends E(p){constructor(){super(...arguments),this.disabled=!1,this.autofocus=!1,this._tabIndex=0,this.manipulatingTabindex=!1,this.autofocusReady=Promise.resolve()}get tabIndex(){if(this.focusElement===this){const o=this.hasAttribute("tabindex")?Number(this.getAttribute("tabindex")):Number.NaN;return Number.isNaN(o)?-1:o}const e=Number.parseFloat(this.hasAttribute("tabindex")&&this.getAttribute("tabindex")||"0");return this.disabled||e<0?-1:this.focusElement?this._tabIndex:e}set tabIndex(e){var o;if(this.manipulatingTabindex){this.manipulatingTabindex=!1;return}if(this.focusElement===this){if(this.disabled)this._tabIndex=e;else if(e!==this._tabIndex){this._tabIndex=e;const i=""+e;this.manipulatingTabindex=!0,this.setAttribute("tabindex",i)}return}if(e===-1?this.addEventListener("pointerdown",this.onPointerdownManagementOfTabIndex):(this.manipulatingTabindex=!0,this.removeEventListener("pointerdown",this.onPointerdownManagementOfTabIndex)),e===-1||this.disabled){if(this.manipulatingTabindex=!0,this.setAttribute("tabindex","-1"),this.removeAttribute("focusable"),this.selfManageFocusElement)return;e===-1?(o=this.focusElement)==null||o.removeAttribute("tabindex"):(this._tabIndex=e,this.manageFocusElementTabindex(e));return}this.setAttribute("focusable",""),this.hasAttribute("tabindex")?this.removeAttribute("tabindex"):this.manipulatingTabindex=!1,this._tabIndex=e,this.manageFocusElementTabindex(e)}onPointerdownManagementOfTabIndex(){this.tabIndex===-1&&setTimeout(()=>{this.tabIndex=0,this.focus({preventScroll:!0}),this.tabIndex=-1})}async manageFocusElementTabindex(e){this.focusElement||await this.updateComplete,e===null?this.focusElement.removeAttribute("tabindex"):this.focusElement!==this&&(this.focusElement.tabIndex=e)}get focusElement(){throw new Error("Must implement focusElement getter!")}get selfManageFocusElement(){return!1}focus(e){this.disabled||!this.focusElement||(this.focusElement===this?Reflect.apply(HTMLElement.prototype.focus,this,[e]):this.focusElement.focus(e))}blur(){const e=this.focusElement||this;e===this?HTMLElement.prototype.blur.apply(this):e.blur()}click(){if(this.disabled)return;const e=this.focusElement||this;e===this?HTMLElement.prototype.click.apply(this):e.click()}manageAutoFocus(){this.autofocus&&(this.dispatchEvent(new KeyboardEvent("keydown",{code:"Tab"})),this.focusElement.focus())}firstUpdated(e){super.firstUpdated(e),(!this.hasAttribute("tabindex")||this.getAttribute("tabindex")!=="-1")&&this.setAttribute("focusable","")}update(e){e.has("disabled")&&this.handleDisabledChanged(this.disabled,e.get("disabled")),super.update(e)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.blur()}async handleDisabledChanged(e,o){const i=()=>this.focusElement!==this&&this.focusElement.disabled!==void 0;e?(this.manipulatingTabindex=!0,this.setAttribute("tabindex","-1"),await this.updateComplete,i()?this.focusElement.disabled=!0:this.setAttribute("aria-disabled","true")):o&&(this.manipulatingTabindex=!0,this.focusElement===this?this.setAttribute("tabindex",""+this._tabIndex):this.removeAttribute("tabindex"),await this.updateComplete,i()?this.focusElement.disabled=!1:this.removeAttribute("aria-disabled"))}async getUpdateComplete(){const e=await super.getUpdateComplete();return await this.autofocusReady,e}connectedCallback(){super.connectedCallback(),this.autofocus&&(this.autofocusReady=new Promise(async e=>{await m(),await m(),e()}),this.updateComplete.then(()=>{this.manageAutoFocus()}))}}h([d.property({type:Boolean,reflect:!0})],b.prototype,"disabled",2);h([d.property({type:Boolean})],b.prototype,"autofocus",2);h([d.property({type:Number})],b.prototype,"tabIndex",1);exports.LuzmoElement=p;
|
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
20
|
import { property as c } from "lit/decorators.js";
|
|
21
|
-
import { LitElement as
|
|
22
|
-
const u = /* @__PURE__ */ new Set(),
|
|
21
|
+
import { LitElement as E } from "lit";
|
|
22
|
+
const u = /* @__PURE__ */ new Set(), g = () => {
|
|
23
23
|
const n = document.documentElement.dir === "rtl" ? document.documentElement.dir : "ltr";
|
|
24
24
|
u.forEach((e) => {
|
|
25
25
|
e.setAttribute("dir", n);
|
|
26
26
|
});
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, x = new MutationObserver(g);
|
|
28
|
+
x.observe(document.documentElement, {
|
|
29
29
|
attributes: !0,
|
|
30
30
|
attributeFilter: ["dir"]
|
|
31
31
|
});
|
|
32
|
-
const
|
|
33
|
-
function
|
|
32
|
+
const y = (n) => n.startManagingContentDirection !== void 0 || n.tagName === "LUZMO-THEME";
|
|
33
|
+
function v(n) {
|
|
34
34
|
class e extends n {
|
|
35
35
|
/**
|
|
36
36
|
* @private
|
|
@@ -40,12 +40,13 @@ function y(n) {
|
|
|
40
40
|
}
|
|
41
41
|
hasVisibleFocusInTree() {
|
|
42
42
|
const s = ((a = document) => {
|
|
43
|
+
var b;
|
|
43
44
|
let t = a.activeElement;
|
|
44
|
-
for (; t
|
|
45
|
+
for (; t != null && t.shadowRoot && t.shadowRoot.activeElement; )
|
|
45
46
|
t = t.shadowRoot.activeElement;
|
|
46
47
|
const l = t ? [t] : [];
|
|
47
48
|
for (; t; ) {
|
|
48
|
-
const r = t.assignedSlot || t.parentElement || t.getRootNode()
|
|
49
|
+
const r = t.assignedSlot || t.parentElement || ((b = t.getRootNode()) == null ? void 0 : b.host);
|
|
49
50
|
r && l.push(r), t = r;
|
|
50
51
|
}
|
|
51
52
|
return l;
|
|
@@ -61,7 +62,7 @@ function y(n) {
|
|
|
61
62
|
connectedCallback() {
|
|
62
63
|
if (super.connectedCallback(), !this.hasAttribute("dir")) {
|
|
63
64
|
let i = this.assignedSlot || this.parentNode;
|
|
64
|
-
for (; i !== document.documentElement && !
|
|
65
|
+
for (; i !== document.documentElement && !y(i); )
|
|
65
66
|
i = i.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
66
67
|
i.parentNode || // DOM Element detected
|
|
67
68
|
i.host;
|
|
@@ -83,15 +84,15 @@ function y(n) {
|
|
|
83
84
|
}
|
|
84
85
|
return e;
|
|
85
86
|
}
|
|
86
|
-
class
|
|
87
|
+
class A extends v(E) {
|
|
87
88
|
}
|
|
88
89
|
let d = !0;
|
|
89
90
|
try {
|
|
90
91
|
document.body.querySelector(":focus-visible");
|
|
91
92
|
} catch {
|
|
92
|
-
d = !1, Promise.resolve().then(() =>
|
|
93
|
+
d = !1, Promise.resolve().then(() => w);
|
|
93
94
|
}
|
|
94
|
-
const
|
|
95
|
+
const p = (n) => {
|
|
95
96
|
var e, o;
|
|
96
97
|
const i = (t) => {
|
|
97
98
|
if (t.shadowRoot == null || Object.hasOwn(t.dataset, "jsFocusVisible"))
|
|
@@ -135,19 +136,19 @@ const m = (n) => {
|
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
138
|
return a;
|
|
138
|
-
},
|
|
139
|
+
}, w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
139
140
|
__proto__: null,
|
|
140
|
-
FocusVisiblePolyfillMixin:
|
|
141
|
+
FocusVisiblePolyfillMixin: p
|
|
141
142
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
142
|
-
var
|
|
143
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
143
|
+
var C = Object.defineProperty, F = Object.getOwnPropertyDescriptor, h = (n, e, o, i) => {
|
|
144
|
+
for (var s = i > 1 ? void 0 : i ? F(e, o) : e, a = n.length - 1, t; a >= 0; a--)
|
|
144
145
|
(t = n[a]) && (s = (i ? t(e, o, s) : t(s)) || s);
|
|
145
|
-
return i && s &&
|
|
146
|
+
return i && s && C(e, o, s), s;
|
|
146
147
|
};
|
|
147
|
-
function
|
|
148
|
+
function m() {
|
|
148
149
|
return new Promise((n) => requestAnimationFrame(() => n()));
|
|
149
150
|
}
|
|
150
|
-
class f extends
|
|
151
|
+
class f extends p(A) {
|
|
151
152
|
constructor() {
|
|
152
153
|
super(...arguments), this.disabled = !1, this.autofocus = !1, this._tabIndex = 0, this.manipulatingTabindex = !1, this.autofocusReady = Promise.resolve();
|
|
153
154
|
}
|
|
@@ -162,6 +163,7 @@ class f extends m(v) {
|
|
|
162
163
|
return this.disabled || e < 0 ? -1 : this.focusElement ? this._tabIndex : e;
|
|
163
164
|
}
|
|
164
165
|
set tabIndex(e) {
|
|
166
|
+
var o;
|
|
165
167
|
if (this.manipulatingTabindex) {
|
|
166
168
|
this.manipulatingTabindex = !1;
|
|
167
169
|
return;
|
|
@@ -171,8 +173,8 @@ class f extends m(v) {
|
|
|
171
173
|
this._tabIndex = e;
|
|
172
174
|
else if (e !== this._tabIndex) {
|
|
173
175
|
this._tabIndex = e;
|
|
174
|
-
const
|
|
175
|
-
this.manipulatingTabindex = !0, this.setAttribute("tabindex",
|
|
176
|
+
const i = "" + e;
|
|
177
|
+
this.manipulatingTabindex = !0, this.setAttribute("tabindex", i);
|
|
176
178
|
}
|
|
177
179
|
return;
|
|
178
180
|
}
|
|
@@ -185,7 +187,7 @@ class f extends m(v) {
|
|
|
185
187
|
)), e === -1 || this.disabled) {
|
|
186
188
|
if (this.manipulatingTabindex = !0, this.setAttribute("tabindex", "-1"), this.removeAttribute("focusable"), this.selfManageFocusElement)
|
|
187
189
|
return;
|
|
188
|
-
e === -1 ? this.focusElement
|
|
190
|
+
e === -1 ? (o = this.focusElement) == null || o.removeAttribute("tabindex") : (this._tabIndex = e, this.manageFocusElementTabindex(e));
|
|
189
191
|
return;
|
|
190
192
|
}
|
|
191
193
|
this.setAttribute("focusable", ""), this.hasAttribute("tabindex") ? this.removeAttribute("tabindex") : this.manipulatingTabindex = !1, this._tabIndex = e, this.manageFocusElementTabindex(e);
|
|
@@ -254,7 +256,7 @@ class f extends m(v) {
|
|
|
254
256
|
}
|
|
255
257
|
connectedCallback() {
|
|
256
258
|
super.connectedCallback(), this.autofocus && (this.autofocusReady = new Promise(async (e) => {
|
|
257
|
-
await
|
|
259
|
+
await m(), await m(), e();
|
|
258
260
|
}), this.updateComplete.then(() => {
|
|
259
261
|
this.manageAutoFocus();
|
|
260
262
|
}));
|
|
@@ -270,5 +272,5 @@ h([
|
|
|
270
272
|
c({ type: Number })
|
|
271
273
|
], f.prototype, "tabIndex", 1);
|
|
272
274
|
export {
|
|
273
|
-
|
|
275
|
+
A as L
|
|
274
276
|
};
|
|
@@ -37,7 +37,10 @@ const t = [
|
|
|
37
37
|
type: "switch",
|
|
38
38
|
label: "Legend",
|
|
39
39
|
default: !0,
|
|
40
|
-
calculateValue: ({ options: e }) =>
|
|
40
|
+
calculateValue: ({ options: e }) => {
|
|
41
|
+
var l, a;
|
|
42
|
+
return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.legend) !== !1 || ((a = e == null ? void 0 : e.display) == null ? void 0 : a.categoryLabels) === !0;
|
|
43
|
+
},
|
|
41
44
|
toOptions: ({ options: e, value: l }) => ({
|
|
42
45
|
...e,
|
|
43
46
|
display: {
|
|
@@ -65,7 +68,10 @@ const t = [
|
|
|
65
68
|
}
|
|
66
69
|
})
|
|
67
70
|
},
|
|
68
|
-
visibleIf: ({ options: e }) =>
|
|
71
|
+
visibleIf: ({ options: e }) => {
|
|
72
|
+
var l, a;
|
|
73
|
+
return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.legend) !== !1 || ((a = e == null ? void 0 : e.display) == null ? void 0 : a.categoryLabels) === !0;
|
|
74
|
+
}
|
|
69
75
|
},
|
|
70
76
|
{
|
|
71
77
|
key: "display.values",
|
|
@@ -82,7 +88,10 @@ const t = [
|
|
|
82
88
|
label: "Show absolute values",
|
|
83
89
|
default: !0
|
|
84
90
|
},
|
|
85
|
-
visibleIf: ({ options: e }) =>
|
|
91
|
+
visibleIf: ({ options: e }) => {
|
|
92
|
+
var l;
|
|
93
|
+
return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.values) === !0;
|
|
94
|
+
}
|
|
86
95
|
},
|
|
87
96
|
{
|
|
88
97
|
key: "funnel.perc",
|
|
@@ -92,7 +101,10 @@ const t = [
|
|
|
92
101
|
default: "hide",
|
|
93
102
|
enum: ["hide", "ofMax", "ofTot"]
|
|
94
103
|
},
|
|
95
|
-
visibleIf: ({ options: e }) =>
|
|
104
|
+
visibleIf: ({ options: e }) => {
|
|
105
|
+
var l;
|
|
106
|
+
return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.values) === !0;
|
|
107
|
+
}
|
|
96
108
|
}
|
|
97
109
|
]
|
|
98
110
|
},
|
|
@@ -162,7 +174,10 @@ const t = [
|
|
|
162
174
|
}
|
|
163
175
|
}
|
|
164
176
|
],
|
|
165
|
-
visibleIf: ({ options: e }) =>
|
|
177
|
+
visibleIf: ({ options: e }) => {
|
|
178
|
+
var l, a;
|
|
179
|
+
return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.legend) === !0 && ((a = e.display) == null ? void 0 : a.categoryLabels) === "false";
|
|
180
|
+
}
|
|
166
181
|
}
|
|
167
182
|
];
|
|
168
183
|
export {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
|
7
|
+
* This license allows users with a current active Luzmo account
|
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
+
*
|
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
+
* SOFTWARE.
|
|
19
|
+
* */
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0,calculateValue:({options:e})=>{var l,a;return((l=e==null?void 0:e.display)==null?void 0:l.legend)!==!1||((a=e==null?void 0:e.display)==null?void 0:a.categoryLabels)===!0},toOptions:({options:e,value:l})=>({...e,display:{...e.display,legend:l,categoryLabels:!1}})}},{key:"display.categoryLabels",control:{type:"radio-button-group",label:"Display legend as",default:"labels",enum:["list","labels"],parseValue:e=>e?"labels":"list",toOptions:({options:e,value:l})=>({...e,display:{...e.display,categoryLabels:l==="labels",legend:l!=="labels"}})},visibleIf:({options:e})=>{var l,a;return((l=e==null?void 0:e.display)==null?void 0:l.legend)!==!1||((a=e==null?void 0:e.display)==null?void 0:a.categoryLabels)===!0}},{key:"display.values",control:{type:"switch",label:"Show values",default:!1}},{key:"funnel.absValue",control:{type:"switch",label:"Show absolute values",default:!0},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.display)==null?void 0:l.values)===!0}},{key:"funnel.perc",control:{type:"picker",label:"Percentage",default:"hide",enum:["hide","ofMax","ofTot"]},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.display)==null?void 0:l.values)===!0}}]},{key:"funnel",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",label:"Mode",default:"dynamicWidth",enum:["dynamicWidth","dynamicHeight","regular"]}},{key:"funnel.rectangle",control:{type:"switch",label:"Rectangular",default:!1}},{key:"sort.by",control:{type:"picker",label:"Order",default:"measure",enum:["measure","category"]}},{key:"sort.direction",control:{type:"picker",label:"Direction",default:"desc",enum:["asc","desc"]}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"right",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]}}],visibleIf:({options:e})=>{var l,a;return((l=e==null?void 0:e.display)==null?void 0:l.legend)===!0&&((a=e.display)==null?void 0:a.categoryLabels)==="false"}}];exports.default=t;
|