@luzmo/analytics-components-kit 1.0.1-alpha.84 → 1.0.1-alpha.85
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/components/droppable-slot.component.ts +2 -2
- package/angular/esm/components/droppable-slot.component.d.ts +2 -2
- package/angular/esm/types.d.ts +1 -1
- package/angular/types.ts +2 -2
- package/components/ai-chat-messages-container/index.cjs +1 -1
- package/components/ai-chat-messages-container/index.js +2 -2
- package/components/ai-interaction-textarea/index.cjs +50 -0
- package/components/ai-interaction-textarea/index.d.ts +1 -1
- package/components/ai-interaction-textarea/index.js +152 -0
- package/components/area-chart-options.config-Bl8bhhOo.cjs +20 -0
- package/components/{area-chart-options.config-_J0sG4NF.js → area-chart-options.config-u8itidsi.js} +14 -26
- package/components/bar-chart-options.config-CePAqM83.cjs +20 -0
- package/components/{bar-chart-options.config-D1mb5TDl.js → bar-chart-options.config-DIirbAJ0.js} +21 -35
- package/components/box-plot-options.config-BVNrV2eD.cjs +20 -0
- package/components/{box-plot-options.config-xu_i6ms7.js → box-plot-options.config-BWROiguA.js} +52 -88
- package/components/{bubble-chart-options.config-BacgXkJ_.js → bubble-chart-options.config-4QD8VPhU.js} +9 -18
- package/components/bubble-chart-options.config-BDgOe3GQ.cjs +20 -0
- package/components/{bullet-chart-options.config-CDPpX1yc.js → bullet-chart-options.config-3bH7uekx.js} +1 -1
- package/components/{bullet-chart-options.config-DfS4Bwds.cjs → bullet-chart-options.config-tWb6Fio-.cjs} +1 -1
- package/components/calculate-data-item-icon-C8CbsMQf.js +139 -0
- package/components/{calculate-data-item-icon-DjW1_RI1.cjs → calculate-data-item-icon-CX4VW9Km.cjs} +1 -1
- package/components/{choropleth-map-options.config-B_W9-rhe.js → choropleth-map-options.config-CMxx3ORp.js} +63 -84
- package/components/choropleth-map-options.config-CWJACFd0.cjs +20 -0
- package/components/circular-gauge-options.config-BMxgq3zH.cjs +20 -0
- package/components/{circular-gauge-options.config-DAIjz4Rl.js → circular-gauge-options.config-DhIKn44k.js} +23 -36
- package/components/{color-DuJ4-73S.js → color-B7m0j8lX.js} +941 -950
- package/components/color-Czp4Im5q.cjs +20 -0
- package/components/{color-range-utils-Bvo9sm5A.js → color-range-utils-BSfqtB3A.js} +31 -32
- package/components/color-range-utils-DYYR-iwx.cjs +20 -0
- package/components/column-chart-options.config-BV9R3ssH.cjs +20 -0
- package/components/{column-chart-options.config-B5SjBVdy.js → column-chart-options.config-D5-yR7iq.js} +27 -37
- package/components/conditional-number-options.config-Co099Qfm.cjs +20 -0
- package/components/{conditional-number-options.config-BCEpSK9J.js → conditional-number-options.config-DPYsdML5.js} +24 -40
- package/components/dataset-selector-list/index.cjs +11 -11
- package/components/dataset-selector-list/index.js +65 -69
- package/components/dataset-selector-row/dataset-selector-row.d.ts +1 -0
- package/components/dataset-selector-row/index.cjs +79 -0
- package/components/dataset-selector-row/index.d.ts +1 -1
- package/components/dataset-selector-row/index.js +209 -0
- package/components/{date-comparison-filter-options.config-JA_yYpJa.js → date-comparison-filter-options.config-CSwGyuBg.js} +3 -6
- package/components/{date-comparison-filter-options.config-DAVncmi0.cjs → date-comparison-filter-options.config-QaoWaFUn.cjs} +1 -1
- package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js} +3 -6
- package/components/{date-filter-options.config-CWPMtA18.cjs → date-filter-options.config-n-zhWaYa.cjs} +1 -1
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/index.cjs +5 -5
- package/components/display-settings-binning/index.js +29 -30
- package/components/display-settings-datetime/index.cjs +29 -29
- package/components/display-settings-datetime/index.js +112 -120
- package/components/display-settings-grand-totals/index.cjs +4 -4
- package/components/display-settings-grand-totals/index.js +23 -24
- package/components/display-settings-numeric/index.cjs +48 -48
- package/components/display-settings-numeric/index.js +194 -211
- package/components/display-settings-period-over-period/index.cjs +16 -16
- package/components/display-settings-period-over-period/index.js +91 -97
- package/components/{donut-chart-options.config-BulUEiaH.js → donut-chart-options.config-3ZqX8Cbb.js} +21 -37
- package/components/donut-chart-options.config-BQyPgnC9.cjs +20 -0
- package/components/draggable-data-item/index.cjs +8 -8
- package/components/draggable-data-item/index.js +44 -45
- package/components/draggable-data-item-level/index.cjs +11 -11
- package/components/draggable-data-item-level/index.js +89 -92
- package/components/{dropdown-filter-options.config-D9dvPypF.js → dropdown-filter-options.config-CGJTtgAX.js} +7 -10
- package/components/{dropdown-filter-options.config-DS-MORmq.cjs → dropdown-filter-options.config-DJvfCTk7.cjs} +1 -1
- package/components/droppable-slot/droppable-slot.d.ts +2 -2
- package/components/droppable-slot/index.cjs +20 -20
- package/components/droppable-slot/index.js +167 -181
- package/components/edit-item/index.cjs +9 -9
- package/components/edit-item/index.js +116 -119
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-action-button-group/index.cjs +8 -8
- package/components/edit-option-action-button-group/index.js +52 -53
- package/components/{edit-option-base-DIc7iC-b.js → edit-option-base-Bh29-Cak.js} +1 -1
- package/components/{edit-option-base-VhTih9T1.cjs → edit-option-base-tFr8Qg2B.cjs} +1 -1
- package/components/edit-option-color-palette-picker/index.cjs +1 -1
- package/components/edit-option-color-palette-picker/index.js +1 -1
- package/components/edit-option-color-picker/index.cjs +1 -1
- package/components/edit-option-color-picker/index.js +1 -1
- package/components/edit-option-color-range/index.cjs +19 -19
- package/components/edit-option-color-range/index.js +106 -117
- package/components/edit-option-multi-language-field/index.cjs +3 -3
- package/components/edit-option-multi-language-field/index.js +26 -27
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +1 -1
- package/components/edit-option-picker/index.cjs +5 -5
- package/components/edit-option-picker/index.js +7 -7
- package/components/edit-option-position-picker/index.cjs +4 -4
- package/components/edit-option-position-picker/index.js +21 -25
- package/components/edit-option-positions-number-field/index.cjs +9 -9
- package/components/edit-option-positions-number-field/index.js +76 -81
- package/components/edit-option-radio-button-group/index.cjs +6 -6
- package/components/edit-option-radio-button-group/index.js +21 -22
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +1 -1
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +1 -1
- package/components/edit-option-text-field/index.cjs +2 -2
- package/components/edit-option-text-field/index.js +22 -23
- package/components/en--a5SfjnM.cjs +20 -0
- package/components/en-CtCctD2c.js +1483 -0
- package/components/{en-GB-DG6uS3sM.cjs → en-GB-CXVKFWyH.cjs} +1 -1
- package/components/{en-GB-CEHEs8F2.js → en-GB-CbNfyZMo.js} +1 -1
- package/components/{evolution-number-options.config-DzkfeoIN.js → evolution-number-options.config-BIPO_4n3.js} +11 -14
- package/components/{evolution-number-options.config-BgIZY4gQ.cjs → evolution-number-options.config-Bc9eKYnn.cjs} +1 -1
- package/components/{extrapolate-color-0j_AeYkz.cjs → extrapolate-color-C0n1UDs-.cjs} +1 -1
- package/components/{extrapolate-color-CC9CURf6.js → extrapolate-color-v1PimdQr.js} +1 -1
- package/components/filter-data-item-picker/index.cjs +7 -7
- package/components/filter-data-item-picker/index.js +85 -86
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +6 -6
- package/components/filter-item/index.js +109 -119
- package/components/filter-value-picker/index.cjs +2 -2
- package/components/filter-value-picker/index.js +34 -36
- package/components/filter-value-picker-datetime/index.cjs +8 -8
- package/components/filter-value-picker-datetime/index.js +56 -71
- package/components/filter-value-picker-hierarchy/index.cjs +12 -12
- package/components/filter-value-picker-hierarchy/index.js +113 -124
- package/components/filter-value-picker-numeric/index.cjs +8 -8
- package/components/filter-value-picker-numeric/index.js +101 -110
- package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
- package/components/focusable-QLh-LlNt.cjs +20 -0
- package/components/{funnel-chart-options.config-C_VjTOvD.js → funnel-chart-options.config-CrJy2U7_.js} +5 -20
- package/components/funnel-chart-options.config-DrP4AFgk.cjs +20 -0
- package/components/{get-css-variable-DLiZYZEi.cjs → get-css-variable-CuDaWSjr.cjs} +2 -2
- package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-DEf4GhTH.js} +4 -4
- package/components/grid/index.cjs +46 -46
- package/components/grid/index.js +2612 -1873
- package/components/heat-map-options.config-CIHnPdYE.cjs +20 -0
- package/components/{heat-map-options.config-BnLWe8jS.js → heat-map-options.config-CmL87j1j.js} +35 -41
- package/components/{heat-table-options.config-CUsDdgUr.js → heat-table-options.config-BrCYAgYD.js} +60 -88
- package/components/heat-table-options.config-DTlZRc_i.cjs +20 -0
- package/components/helpers-9I0oLoUB.cjs +20 -0
- package/components/helpers-bR8Ibjqh.js +79 -0
- package/components/{hexbin-map-options.config-F-7uCqxb.js → hexbin-map-options.config-BguV1w8q.js} +20 -38
- package/components/hexbin-map-options.config-CKnn3VAB.cjs +20 -0
- package/components/{index-Do7O9azB.js → index-3WsfvkZF.js} +112 -123
- package/components/{index-PMDgRSzR.js → index-BDFBUGBc.js} +94 -104
- package/components/index-BGb_wRRW.js +1766 -0
- package/components/{index-BPNsFiyq.cjs → index-BNAmjOkm.cjs} +4 -4
- package/components/index-BUal0r_D.cjs +121 -0
- package/components/index-D1Y5TRsH.cjs +20 -0
- package/components/index-DvkzMbLt.cjs +249 -0
- package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
- package/components/index.cjs +1 -60
- package/components/index.js +102 -281
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +37 -37
- package/components/{line-chart-options.config-DB3IsXXr.js → line-chart-options.config-BhirTGqD.js} +13 -28
- package/components/line-chart-options.config-Cqwou5u6.cjs +20 -0
- package/components/{localize-r7ALOUy_.cjs → localize-C4zNlrwK.cjs} +1 -1
- package/components/{localize-BX7q0S0M.js → localize-CcDpq940.js} +10 -10
- package/components/{marker-map-options.config-DPJ955tt.js → marker-map-options.config-Bx17jmiq.js} +1 -1
- package/components/{marker-map-options.config-_FYZzRwA.cjs → marker-map-options.config-CvhCylSC.cjs} +1 -1
- package/components/{pivot-table-options.config-DNK_AIG7.js → pivot-table-options.config-CFc7y0IT.js} +15 -24
- package/components/pivot-table-options.config-uZDAertf.cjs +20 -0
- package/components/{pyramid-chart-options.config-CcVMatYx.js → pyramid-chart-options.config-2Waxb11l.js} +29 -43
- package/components/pyramid-chart-options.config-DoGfEvzU.cjs +20 -0
- package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js} +11 -23
- package/components/radar-chart-options.config-CtNUMN1l.cjs +20 -0
- package/components/{regular-table-options.config-BoLZsBry.js → regular-table-options.config-CFKCJQK1.js} +17 -23
- package/components/{regular-table-options.config-DTx3RTnS.cjs → regular-table-options.config-YRuoijIk.cjs} +1 -1
- package/components/route-map-options.config-CVTk5RVL.cjs +20 -0
- package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js} +87 -109
- package/components/{sankey-diagram-options.config-RFB83YLZ.cjs → sankey-diagram-options.config-D7OSvSqm.cjs} +1 -1
- package/components/{sankey-diagram-options.config-tVLKy_Zn.js → sankey-diagram-options.config-Ldjk84ro.js} +7 -10
- package/components/scatter-plot-options.config-5gN7pMTm.cjs +20 -0
- package/components/{scatter-plot-options.config-Corlzno1.js → scatter-plot-options.config-CfxEfkQ1.js} +56 -86
- package/components/{search-filter-options.config-BE3JhR-F.js → search-filter-options.config-C0syQmP4.js} +3 -6
- package/components/{search-filter-options.config-BCaDlYqZ.cjs → search-filter-options.config-Oqco9BKj.cjs} +1 -1
- package/components/{set-locale-B-Tz2sdI.js → set-locale-nv7fWEtl.js} +1 -8
- package/components/slicer-filter-options.config-CrusP6a0.cjs +20 -0
- package/components/{slicer-filter-options.config-3JZZcw5C.js → slicer-filter-options.config-DmOe3440.js} +9 -18
- package/components/{slider-filter-options.config-DH4SS8wH.js → slider-filter-options.config-B1M8RcDs.js} +1 -1
- package/components/{slider-filter-options.config-_8Z2zKmU.cjs → slider-filter-options.config-k45I-t6G.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +33 -33
- package/components/slot-contents-picker/index.js +194 -205
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.js +171 -184
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +97 -103
- package/components/speedometer-chart-options.config-B4ceg_qI.cjs +20 -0
- package/components/{speedometer-chart-options.config-SL581yOa.js → speedometer-chart-options.config-CzOmuEF8.js} +31 -53
- package/components/spike-map-options.config-BkkDqb4g.cjs +20 -0
- package/components/{spike-map-options.config-C5KewecZ.js → spike-map-options.config-Cbt1YUw6.js} +91 -122
- package/components/{sunburst-chart-options.config-AbNjWS6t.cjs → sunburst-chart-options.config-Yrxc2i57.cjs} +1 -1
- package/components/{sunburst-chart-options.config-CNauGQJv.js → sunburst-chart-options.config-_dyLQxPJ.js} +9 -20
- package/components/{symbol-map-options.config-DdDA4aa7.js → symbol-map-options.config-BORL1NSU.js} +11 -20
- package/components/symbol-map-options.config-NpBKm64d.cjs +20 -0
- package/components/{treemap-chart-options.config-D5AJaF_u.js → treemap-chart-options.config-B9i9qIm_.js} +20 -37
- package/components/treemap-chart-options.config-x4J54WSw.cjs +20 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +64 -65
- package/components/{video-options.config-CGsDTwHc.cjs → video-options.config-B0asgYt8.cjs} +1 -1
- package/components/{video-options.config-Dk36zJ1B.js → video-options.config-UX-9MDfS.js} +7 -10
- package/components/{wordcloud-chart-options.config-vGfCW8kE.cjs → wordcloud-chart-options.config-BKtJT8Va.cjs} +1 -1
- package/components/{wordcloud-chart-options.config-w2NUIWVA.js → wordcloud-chart-options.config-BoB_KuhA.js} +4 -7
- package/custom-elements.json +22 -2
- package/index.d.ts +1 -0
- package/package.json +5 -5
- package/types.d.ts +1 -1
- package/components/area-chart-options.config-C7sMAHco.cjs +0 -20
- package/components/bar-chart-options.config-DcxEkOT5.cjs +0 -20
- package/components/box-plot-options.config-SrrbDEYW.cjs +0 -20
- package/components/bubble-chart-options.config-Ihn6eVQI.cjs +0 -20
- package/components/calculate-data-item-icon-DZDqb3xu.js +0 -139
- package/components/choropleth-map-options.config-ZW8yoZH2.cjs +0 -20
- package/components/circular-gauge-options.config-msZ4mfpN.cjs +0 -20
- package/components/color-B6LaL8qz.cjs +0 -20
- package/components/color-range-utils-C5yXW7ZC.cjs +0 -20
- package/components/column-chart-options.config-BjDvA7i9.cjs +0 -20
- package/components/conditional-number-options.config-DgzUo0xi.cjs +0 -20
- package/components/donut-chart-options.config-tNpqBZfR.cjs +0 -20
- package/components/en-BKBhKBXY.cjs +0 -20
- package/components/en-BOTjhwEc.js +0 -1488
- package/components/focusable-B3E_hQmm.cjs +0 -20
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
- package/components/heat-map-options.config-DVH-Bb5-.cjs +0 -20
- package/components/heat-table-options.config-B12JEYnp.cjs +0 -20
- package/components/helpers-DXQwEH1P.cjs +0 -20
- package/components/helpers-v1bPALRP.js +0 -91
- package/components/hexbin-map-options.config-DZERRhM8.cjs +0 -20
- package/components/index-BPN3bG9X.js +0 -1733
- package/components/index-CQ9ck-BO.cjs +0 -249
- package/components/index-CXn67vdn.cjs +0 -121
- package/components/index-cfj52IbK.cjs +0 -20
- package/components/line-chart-options.config-DSugoe0t.cjs +0 -20
- package/components/pivot-table-options.config-BiJXKSFR.cjs +0 -20
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +0 -20
- package/components/radar-chart-options.config-EqQu6PTh.cjs +0 -20
- package/components/route-map-options.config-D7NJePTu.cjs +0 -20
- package/components/scatter-plot-options.config-CFfGJXsV.cjs +0 -20
- package/components/slicer-filter-options.config-DNI-XevE.cjs +0 -20
- package/components/speedometer-chart-options.config-BX9LTQBH.cjs +0 -20
- package/components/spike-map-options.config-DoBFXPmN.cjs +0 -20
- package/components/symbol-map-options.config-m-lwLTtu.cjs +0 -20
- package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +0 -20
|
@@ -19,62 +19,60 @@
|
|
|
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 x, html as z } from "lit";
|
|
23
|
+
import { msg as h, localized as y } from "@lit/localize";
|
|
24
|
+
import { SizedMixin as S, LuzmoElement as V, ElementSizes as w } from "@luzmo/lucero/utils";
|
|
25
|
+
import { d as b } from "../index-BGb_wRRW.js";
|
|
26
|
+
import { g as k, t as L, s as $ } from "../set-locale-nv7fWEtl.js";
|
|
27
|
+
import { property as c, state as d } 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 C = ".missing-value{opacity:.4}:host{--var: blue}";
|
|
35
|
+
var T = Object.defineProperty, E = Object.getOwnPropertyDescriptor, a = (e, r, l, t) => {
|
|
36
|
+
for (var o = t > 1 ? void 0 : t ? E(r, l) : r, n = e.length - 1, s; n >= 0; n--)
|
|
37
|
+
(s = e[n]) && (o = (t ? s(r, l, o) : s(o)) || o);
|
|
38
|
+
return t && o && T(r, l, o), o;
|
|
39
39
|
};
|
|
40
|
-
const
|
|
41
|
-
let
|
|
42
|
-
validSizes: Object.values(
|
|
40
|
+
const v = 5e3;
|
|
41
|
+
let i = class extends S(V, {
|
|
42
|
+
validSizes: Object.values(w)
|
|
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 [C
|
|
48
|
+
return [x(C)];
|
|
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), b.configure(e);
|
|
54
54
|
}
|
|
55
55
|
willUpdate(e) {
|
|
56
|
-
var l, o, s, i, h, c, b, f, g, a, m, p, v, x;
|
|
57
56
|
const r = e.has("filter");
|
|
58
|
-
if (e.has("language") && this.language !==
|
|
59
|
-
const
|
|
60
|
-
(
|
|
57
|
+
if (e.has("language") && this.language !== k() && ([...L].includes(this.language ?? "en") || this.language === "en") && $(this.language), r && this.filter) {
|
|
58
|
+
const t = e.get("filter")?.expression, o = this.filter?.expression, n = e.get("filter")?.parameters?.[0]?.columnId || e.get("filter")?.parameters?.[0]?.formulaId, s = this.filter?.parameters?.[0]?.columnId || this.filter?.parameters?.[0]?.formulaId;
|
|
59
|
+
(n !== s || !["? in ?", "? not in ?"].includes(t)) && ["? in ?", "? not in ?"].includes(o) && (this._numericValues = [], this._allValuesRetrieved = !1, this._retrieving = !0);
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
62
|
/**
|
|
64
63
|
* Fetches numeric values from the databroker
|
|
65
64
|
*/
|
|
66
65
|
async _fetchNumericValues(e = 0) {
|
|
67
|
-
var f, g;
|
|
68
66
|
if (this._allValuesRetrieved) {
|
|
69
67
|
this._retrieving = !1;
|
|
70
68
|
return;
|
|
71
69
|
}
|
|
72
|
-
if (!
|
|
70
|
+
if (!this.filter?.parameters?.[0]) {
|
|
73
71
|
this._retrieving = !1, this._error = "Missing column parameters";
|
|
74
72
|
return;
|
|
75
73
|
}
|
|
76
|
-
const r = this.filter.parameters[0],
|
|
77
|
-
if (!
|
|
74
|
+
const r = this.filter.parameters[0], l = r.columnId, t = r.formulaId, o = r.datasetId;
|
|
75
|
+
if (!l && !t) {
|
|
78
76
|
this._retrieving = !1, this._error = "Missing column id or formula id";
|
|
79
77
|
return;
|
|
80
78
|
} else if (!o) {
|
|
@@ -82,57 +80,57 @@ let u = class extends E(I, {
|
|
|
82
80
|
return;
|
|
83
81
|
}
|
|
84
82
|
this._retrieving = !0, this._error = null;
|
|
85
|
-
const
|
|
83
|
+
const n = {
|
|
86
84
|
expression: "? like ?",
|
|
87
85
|
parameters: [
|
|
88
86
|
{
|
|
89
87
|
dataset_id: o,
|
|
90
|
-
expression: `CAST({${o}:${
|
|
88
|
+
expression: `CAST({${o}:${l ?? t}},hierarchy)`
|
|
91
89
|
},
|
|
92
90
|
this._search
|
|
93
91
|
]
|
|
94
|
-
},
|
|
92
|
+
}, s = {
|
|
95
93
|
dimensions: [
|
|
96
94
|
{
|
|
97
|
-
column_id:
|
|
98
|
-
formula_id:
|
|
95
|
+
column_id: l,
|
|
96
|
+
formula_id: t,
|
|
99
97
|
dataset_id: o
|
|
100
98
|
}
|
|
101
99
|
],
|
|
102
100
|
where: [],
|
|
103
101
|
order: [
|
|
104
102
|
{
|
|
105
|
-
column_id:
|
|
106
|
-
formula_id:
|
|
103
|
+
column_id: l,
|
|
104
|
+
formula_id: t,
|
|
107
105
|
dataset_id: o,
|
|
108
106
|
order: "asc"
|
|
109
107
|
}
|
|
110
108
|
],
|
|
111
109
|
limit: {
|
|
112
|
-
by:
|
|
110
|
+
by: v,
|
|
113
111
|
offset: e
|
|
114
112
|
}
|
|
115
113
|
};
|
|
116
|
-
this._search && !this._allValuesRetrieved &&
|
|
117
|
-
const
|
|
118
|
-
|
|
114
|
+
this._search && !this._allValuesRetrieved && s.where.push(n);
|
|
115
|
+
const g = new AbortController(), f = new Promise((u, m) => {
|
|
116
|
+
b.fetchData(s).then(u).catch(m), g.signal.addEventListener("abort", () => {
|
|
119
117
|
console.warn("Request aborted"), m({ status: "aborted" });
|
|
120
118
|
});
|
|
121
|
-
}),
|
|
122
|
-
promise:
|
|
123
|
-
abortController:
|
|
119
|
+
}), _ = {
|
|
120
|
+
promise: f,
|
|
121
|
+
abortController: g
|
|
124
122
|
};
|
|
125
|
-
this._runningQueries.push(
|
|
123
|
+
this._runningQueries.push(_);
|
|
126
124
|
try {
|
|
127
|
-
const
|
|
128
|
-
this._search || (this._allValuesRetrieved = m.length <
|
|
129
|
-
} catch (
|
|
130
|
-
if (
|
|
125
|
+
const u = await f, m = u && Array.isArray(u.data) ? u.data.map((p) => p[0]) : [];
|
|
126
|
+
this._search || (this._allValuesRetrieved = m.length < v), this._numericValues = e > 0 ? [...this._numericValues, ...m] : m;
|
|
127
|
+
} catch (u) {
|
|
128
|
+
if (u?.status === "aborted")
|
|
131
129
|
return;
|
|
132
|
-
this._error =
|
|
130
|
+
this._error = u instanceof Error ? u.message : "Unknown error", this._numericValues = [];
|
|
133
131
|
} finally {
|
|
134
132
|
this._runningQueries = this._runningQueries.filter(
|
|
135
|
-
(
|
|
133
|
+
(u) => u.promise !== f
|
|
136
134
|
), this._retrieving = !1;
|
|
137
135
|
}
|
|
138
136
|
}
|
|
@@ -149,38 +147,33 @@ let u = class extends E(I, {
|
|
|
149
147
|
);
|
|
150
148
|
}
|
|
151
149
|
setValue(e) {
|
|
152
|
-
|
|
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;
|
|
150
|
+
const r = ["? in ?", "? not in ?"].includes(this.filter?.expression) ? e?.detail?.value : e?.target?.value;
|
|
154
151
|
this._value !== r && (this._value = r, this.filter = {
|
|
155
152
|
...this.filter,
|
|
156
|
-
parameters: [{ ...
|
|
153
|
+
parameters: [{ ...this.filter?.parameters?.[0] }, r]
|
|
157
154
|
}, this._sendChangeEvent());
|
|
158
155
|
}
|
|
159
156
|
selectValue(e) {
|
|
160
|
-
|
|
161
|
-
const t = (((l = e.detail) == null ? void 0 : l.value) ?? "").map((i) => Number.parseFloat(i));
|
|
157
|
+
const l = (e.detail?.value ?? "").map((t) => Number.parseFloat(t));
|
|
162
158
|
this.filter = {
|
|
163
159
|
...this.filter,
|
|
164
|
-
parameters: [{ ...
|
|
165
|
-
}, this._value =
|
|
160
|
+
parameters: [{ ...this.filter?.parameters?.[0] }, l]
|
|
161
|
+
}, this._value = l, this._sendChangeEvent();
|
|
166
162
|
}
|
|
167
163
|
onScrolled(e) {
|
|
168
|
-
|
|
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);
|
|
164
|
+
!this._retrieving && !this._allValuesRetrieved && e?.detail?.last === this._numericValues.length - 1 && this._fetchNumericValues(this._numericValues.length);
|
|
170
165
|
}
|
|
171
166
|
renderNumberField() {
|
|
172
|
-
|
|
173
|
-
return y`<luzmo-number-field
|
|
167
|
+
return z`<luzmo-number-field
|
|
174
168
|
.size=${this.size}
|
|
175
169
|
@change=${this.setValue}
|
|
176
170
|
@input=${this.setValue}
|
|
177
|
-
.value=${
|
|
171
|
+
.value=${this.filter?.parameters?.[1]}
|
|
178
172
|
></luzmo-number-field>`;
|
|
179
173
|
}
|
|
180
174
|
setSearchString(e) {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
t != null && t.abortController && t.abortController.abort();
|
|
175
|
+
this._search = e?.detail?.string ?? "", this._allValuesRetrieved || (this._searchQueryTimeout && (this._runningQueries.forEach((r) => {
|
|
176
|
+
r?.abortController && r.abortController.abort();
|
|
184
177
|
}), this._runningQueries = [], clearTimeout(this._searchQueryTimeout)), this._searchQueryTimeout = setTimeout(() => {
|
|
185
178
|
this._fetchNumericValues();
|
|
186
179
|
}, 500));
|
|
@@ -192,15 +185,14 @@ let u = class extends E(I, {
|
|
|
192
185
|
this._fetchNumericValues();
|
|
193
186
|
}
|
|
194
187
|
renderValuePicker() {
|
|
195
|
-
var i, h;
|
|
196
188
|
this._error && console.error(`Numeric value retrieve error: ${this._error}`);
|
|
197
|
-
const e = this._numericValues.filter((
|
|
198
|
-
value:
|
|
199
|
-
label:
|
|
200
|
-
})), r =
|
|
201
|
-
return
|
|
189
|
+
const e = this._numericValues.filter((s) => s.toString().toLowerCase().includes(this._search.toLowerCase())).map((s) => ({
|
|
190
|
+
value: s,
|
|
191
|
+
label: s
|
|
192
|
+
})), r = h("Selected {count} items"), l = h("Search"), t = h("No data"), o = h("No results"), n = h("Select...");
|
|
193
|
+
return z`<luzmo-select
|
|
202
194
|
.size=${this.size}
|
|
203
|
-
.label=${
|
|
195
|
+
.label=${n}
|
|
204
196
|
.retrieving=${this._retrieving}
|
|
205
197
|
selects="multiple"
|
|
206
198
|
variant="checkboxes"
|
|
@@ -208,8 +200,8 @@ let u = class extends E(I, {
|
|
|
208
200
|
no-wrap
|
|
209
201
|
?invalid=${!!this._error}
|
|
210
202
|
.multipleLabelTemplate=${r}
|
|
211
|
-
.searchLabel=${
|
|
212
|
-
.noDataLabel=${
|
|
203
|
+
.searchLabel=${l}
|
|
204
|
+
.noDataLabel=${t}
|
|
213
205
|
.noResultsLabel=${o}
|
|
214
206
|
@change=${this.selectValue}
|
|
215
207
|
@luzmo-search=${this.setSearchString}
|
|
@@ -217,56 +209,55 @@ let u = class extends E(I, {
|
|
|
217
209
|
@luzmo-closed=${this.resetSearchString}
|
|
218
210
|
@luzmo-scrolled=${this.onScrolled}
|
|
219
211
|
.options=${e}
|
|
220
|
-
.value=${
|
|
212
|
+
.value=${this.filter?.parameters?.[1]}
|
|
221
213
|
>
|
|
222
214
|
</luzmo-select>`;
|
|
223
215
|
}
|
|
224
216
|
render() {
|
|
225
|
-
|
|
226
|
-
const e = (r = this.filter) == null ? void 0 : r.expression;
|
|
217
|
+
const e = this.filter?.expression;
|
|
227
218
|
return ["? in ?", "? not in ?"].includes(e) ? this.renderValuePicker() : this.renderNumberField();
|
|
228
219
|
}
|
|
229
220
|
};
|
|
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
|
-
],
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
],
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
],
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
],
|
|
221
|
+
a([
|
|
222
|
+
c({ type: String, attribute: "api-url", reflect: !0 })
|
|
223
|
+
], i.prototype, "apiUrl", 2);
|
|
224
|
+
a([
|
|
225
|
+
c({ type: String, attribute: "auth-key", reflect: !0 })
|
|
226
|
+
], i.prototype, "authKey", 2);
|
|
227
|
+
a([
|
|
228
|
+
c({ type: String, attribute: "auth-token", reflect: !0 })
|
|
229
|
+
], i.prototype, "authToken", 2);
|
|
230
|
+
a([
|
|
231
|
+
c({ type: Number, attribute: "cache-time", reflect: !0 })
|
|
232
|
+
], i.prototype, "cacheTime", 2);
|
|
233
|
+
a([
|
|
234
|
+
c({ type: String, reflect: !0 })
|
|
235
|
+
], i.prototype, "language", 2);
|
|
236
|
+
a([
|
|
237
|
+
c({ type: String, attribute: "content-language", reflect: !0 })
|
|
238
|
+
], i.prototype, "contentLanguage", 2);
|
|
239
|
+
a([
|
|
240
|
+
c({ type: Object, reflect: !1 })
|
|
241
|
+
], i.prototype, "filter", 2);
|
|
242
|
+
a([
|
|
243
|
+
d()
|
|
244
|
+
], i.prototype, "_numericValues", 2);
|
|
245
|
+
a([
|
|
246
|
+
d()
|
|
247
|
+
], i.prototype, "_retrieving", 2);
|
|
248
|
+
a([
|
|
249
|
+
d()
|
|
250
|
+
], i.prototype, "_search", 2);
|
|
251
|
+
a([
|
|
252
|
+
d()
|
|
253
|
+
], i.prototype, "_error", 2);
|
|
254
|
+
i = a([
|
|
255
|
+
y()
|
|
256
|
+
], i);
|
|
266
257
|
customElements.get("luzmo-filter-value-picker-numeric") || customElements.define(
|
|
267
258
|
"luzmo-filter-value-picker-numeric",
|
|
268
|
-
|
|
259
|
+
i
|
|
269
260
|
);
|
|
270
261
|
export {
|
|
271
|
-
|
|
262
|
+
i as LuzmoFilterValuePickerNumeric
|
|
272
263
|
};
|
|
@@ -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 p } from "lit";
|
|
22
|
+
const u = /* @__PURE__ */ new Set(), E = () => {
|
|
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
|
+
}, g = new MutationObserver(E);
|
|
28
|
+
g.observe(document.documentElement, {
|
|
29
29
|
attributes: !0,
|
|
30
30
|
attributeFilter: ["dir"]
|
|
31
31
|
});
|
|
32
|
-
const
|
|
33
|
-
function
|
|
32
|
+
const x = (n) => n.startManagingContentDirection !== void 0 || n.tagName === "LUZMO-THEME";
|
|
33
|
+
function y(n) {
|
|
34
34
|
class e extends n {
|
|
35
35
|
/**
|
|
36
36
|
* @private
|
|
@@ -40,13 +40,12 @@ function v(n) {
|
|
|
40
40
|
}
|
|
41
41
|
hasVisibleFocusInTree() {
|
|
42
42
|
const s = ((a = document) => {
|
|
43
|
-
var b;
|
|
44
43
|
let t = a.activeElement;
|
|
45
|
-
for (; t
|
|
44
|
+
for (; t?.shadowRoot && t.shadowRoot.activeElement; )
|
|
46
45
|
t = t.shadowRoot.activeElement;
|
|
47
46
|
const l = t ? [t] : [];
|
|
48
47
|
for (; t; ) {
|
|
49
|
-
const r = t.assignedSlot || t.parentElement ||
|
|
48
|
+
const r = t.assignedSlot || t.parentElement || t.getRootNode()?.host;
|
|
50
49
|
r && l.push(r), t = r;
|
|
51
50
|
}
|
|
52
51
|
return l;
|
|
@@ -62,7 +61,7 @@ function v(n) {
|
|
|
62
61
|
connectedCallback() {
|
|
63
62
|
if (super.connectedCallback(), !this.hasAttribute("dir")) {
|
|
64
63
|
let i = this.assignedSlot || this.parentNode;
|
|
65
|
-
for (; i !== document.documentElement && !
|
|
64
|
+
for (; i !== document.documentElement && !x(i); )
|
|
66
65
|
i = i.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
67
66
|
i.parentNode || // DOM Element detected
|
|
68
67
|
i.host;
|
|
@@ -84,15 +83,15 @@ function v(n) {
|
|
|
84
83
|
}
|
|
85
84
|
return e;
|
|
86
85
|
}
|
|
87
|
-
class
|
|
86
|
+
class v extends y(p) {
|
|
88
87
|
}
|
|
89
88
|
let d = !0;
|
|
90
89
|
try {
|
|
91
90
|
document.body.querySelector(":focus-visible");
|
|
92
91
|
} catch {
|
|
93
|
-
d = !1, Promise.resolve().then(() =>
|
|
92
|
+
d = !1, Promise.resolve().then(() => A);
|
|
94
93
|
}
|
|
95
|
-
const
|
|
94
|
+
const m = (n) => {
|
|
96
95
|
var e, o;
|
|
97
96
|
const i = (t) => {
|
|
98
97
|
if (t.shadowRoot == null || Object.hasOwn(t.dataset, "jsFocusVisible"))
|
|
@@ -136,19 +135,19 @@ const p = (n) => {
|
|
|
136
135
|
}
|
|
137
136
|
}
|
|
138
137
|
return a;
|
|
139
|
-
},
|
|
138
|
+
}, A = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
140
139
|
__proto__: null,
|
|
141
|
-
FocusVisiblePolyfillMixin:
|
|
140
|
+
FocusVisiblePolyfillMixin: m
|
|
142
141
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
143
|
-
var
|
|
144
|
-
for (var s = i > 1 ? void 0 : i ?
|
|
142
|
+
var w = Object.defineProperty, C = Object.getOwnPropertyDescriptor, h = (n, e, o, i) => {
|
|
143
|
+
for (var s = i > 1 ? void 0 : i ? C(e, o) : e, a = n.length - 1, t; a >= 0; a--)
|
|
145
144
|
(t = n[a]) && (s = (i ? t(e, o, s) : t(s)) || s);
|
|
146
|
-
return i && s &&
|
|
145
|
+
return i && s && w(e, o, s), s;
|
|
147
146
|
};
|
|
148
|
-
function
|
|
147
|
+
function b() {
|
|
149
148
|
return new Promise((n) => requestAnimationFrame(() => n()));
|
|
150
149
|
}
|
|
151
|
-
class f extends
|
|
150
|
+
class f extends m(v) {
|
|
152
151
|
constructor() {
|
|
153
152
|
super(...arguments), this.disabled = !1, this.autofocus = !1, this._tabIndex = 0, this.manipulatingTabindex = !1, this.autofocusReady = Promise.resolve();
|
|
154
153
|
}
|
|
@@ -163,7 +162,6 @@ class f extends p(A) {
|
|
|
163
162
|
return this.disabled || e < 0 ? -1 : this.focusElement ? this._tabIndex : e;
|
|
164
163
|
}
|
|
165
164
|
set tabIndex(e) {
|
|
166
|
-
var o;
|
|
167
165
|
if (this.manipulatingTabindex) {
|
|
168
166
|
this.manipulatingTabindex = !1;
|
|
169
167
|
return;
|
|
@@ -173,8 +171,8 @@ class f extends p(A) {
|
|
|
173
171
|
this._tabIndex = e;
|
|
174
172
|
else if (e !== this._tabIndex) {
|
|
175
173
|
this._tabIndex = e;
|
|
176
|
-
const
|
|
177
|
-
this.manipulatingTabindex = !0, this.setAttribute("tabindex",
|
|
174
|
+
const o = "" + e;
|
|
175
|
+
this.manipulatingTabindex = !0, this.setAttribute("tabindex", o);
|
|
178
176
|
}
|
|
179
177
|
return;
|
|
180
178
|
}
|
|
@@ -187,7 +185,7 @@ class f extends p(A) {
|
|
|
187
185
|
)), e === -1 || this.disabled) {
|
|
188
186
|
if (this.manipulatingTabindex = !0, this.setAttribute("tabindex", "-1"), this.removeAttribute("focusable"), this.selfManageFocusElement)
|
|
189
187
|
return;
|
|
190
|
-
e === -1 ?
|
|
188
|
+
e === -1 ? this.focusElement?.removeAttribute("tabindex") : (this._tabIndex = e, this.manageFocusElementTabindex(e));
|
|
191
189
|
return;
|
|
192
190
|
}
|
|
193
191
|
this.setAttribute("focusable", ""), this.hasAttribute("tabindex") ? this.removeAttribute("tabindex") : this.manipulatingTabindex = !1, this._tabIndex = e, this.manageFocusElementTabindex(e);
|
|
@@ -256,7 +254,7 @@ class f extends p(A) {
|
|
|
256
254
|
}
|
|
257
255
|
connectedCallback() {
|
|
258
256
|
super.connectedCallback(), this.autofocus && (this.autofocusReady = new Promise(async (e) => {
|
|
259
|
-
await
|
|
257
|
+
await b(), await b(), e();
|
|
260
258
|
}), this.updateComplete.then(() => {
|
|
261
259
|
this.manageAutoFocus();
|
|
262
260
|
}));
|
|
@@ -272,5 +270,5 @@ h([
|
|
|
272
270
|
c({ type: Number })
|
|
273
271
|
], f.prototype, "tabIndex", 1);
|
|
274
272
|
export {
|
|
275
|
-
|
|
273
|
+
v as L
|
|
276
274
|
};
|
|
@@ -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"),E=require("lit"),u=new Set,g=()=>{const n=document.documentElement.dir==="rtl"?document.documentElement.dir:"ltr";u.forEach(e=>{e.setAttribute("dir",n)})},y=new MutationObserver(g);y.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const x=n=>n.startManagingContentDirection!==void 0||n.tagName==="LUZMO-THEME";function v(n){class e extends n{get isLTR(){return this.dir==="ltr"}hasVisibleFocusInTree(){const s=((a=document)=>{let t=a.activeElement;for(;t?.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;const l=t?[t]:[];for(;t;){const r=t.assignedSlot||t.parentElement||t.getRootNode()?.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&&!x(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 m extends v(E.LitElement){}let c=!0;try{document.body.querySelector(":focus-visible")}catch{c=!1,Promise.resolve().then(()=>A)}const p=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},A=Object.freeze(Object.defineProperty({__proto__:null,FocusVisiblePolyfillMixin:p},Symbol.toStringTag,{value:"Module"}));var w=Object.defineProperty,C=Object.getOwnPropertyDescriptor,h=(n,e,o,i)=>{for(var s=i>1?void 0:i?C(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&&w(e,o,s),s};function f(){return new Promise(n=>requestAnimationFrame(()=>n()))}class b extends p(m){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){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 o=""+e;this.manipulatingTabindex=!0,this.setAttribute("tabindex",o)}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?this.focusElement?.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 f(),await f(),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=m;
|
|
@@ -37,10 +37,7 @@ const t = [
|
|
|
37
37
|
type: "switch",
|
|
38
38
|
label: "Legend",
|
|
39
39
|
default: !0,
|
|
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
|
-
},
|
|
40
|
+
calculateValue: ({ options: e }) => e?.display?.legend !== !1 || e?.display?.categoryLabels === !0,
|
|
44
41
|
toOptions: ({ options: e, value: l }) => ({
|
|
45
42
|
...e,
|
|
46
43
|
display: {
|
|
@@ -68,10 +65,7 @@ const t = [
|
|
|
68
65
|
}
|
|
69
66
|
})
|
|
70
67
|
},
|
|
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
|
-
}
|
|
68
|
+
visibleIf: ({ options: e }) => e?.display?.legend !== !1 || e?.display?.categoryLabels === !0
|
|
75
69
|
},
|
|
76
70
|
{
|
|
77
71
|
key: "display.values",
|
|
@@ -88,10 +82,7 @@ const t = [
|
|
|
88
82
|
label: "Show absolute values",
|
|
89
83
|
default: !0
|
|
90
84
|
},
|
|
91
|
-
visibleIf: ({ options: e }) =>
|
|
92
|
-
var l;
|
|
93
|
-
return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.values) === !0;
|
|
94
|
-
}
|
|
85
|
+
visibleIf: ({ options: e }) => e?.display?.values === !0
|
|
95
86
|
},
|
|
96
87
|
{
|
|
97
88
|
key: "funnel.perc",
|
|
@@ -101,10 +92,7 @@ const t = [
|
|
|
101
92
|
default: "hide",
|
|
102
93
|
enum: ["hide", "ofMax", "ofTot"]
|
|
103
94
|
},
|
|
104
|
-
visibleIf: ({ options: e }) =>
|
|
105
|
-
var l;
|
|
106
|
-
return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.values) === !0;
|
|
107
|
-
}
|
|
95
|
+
visibleIf: ({ options: e }) => e?.display?.values === !0
|
|
108
96
|
}
|
|
109
97
|
]
|
|
110
98
|
},
|
|
@@ -174,10 +162,7 @@ const t = [
|
|
|
174
162
|
}
|
|
175
163
|
}
|
|
176
164
|
],
|
|
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
|
-
}
|
|
165
|
+
visibleIf: ({ options: e }) => e?.display?.legend === !0 && e.display?.categoryLabels === "false"
|
|
181
166
|
}
|
|
182
167
|
];
|
|
183
168
|
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})=>e?.display?.legend!==!1||e?.display?.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})=>e?.display?.legend!==!1||e?.display?.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})=>e?.display?.values===!0},{key:"funnel.perc",control:{type:"picker",label:"Percentage",default:"hide",enum:["hide","ofMax","ofTot"]},visibleIf:({options:e})=>e?.display?.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})=>e?.display?.legend===!0&&e.display?.categoryLabels==="false"}];exports.default=t;
|