@luzmo/analytics-components-kit 1.0.1-alpha.86 → 1.0.1-alpha.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ai-chat-messages-container/index.cjs +1 -1
- package/components/ai-chat-messages-container/index.js +2 -2
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -2
- package/components/area-chart-options.config-Bl8bhhOo.cjs +20 -0
- package/components/{area-chart-options.config-_J0sG4NF.js → area-chart-options.config-u8itidsi.js} +14 -26
- package/components/bar-chart-options.config-CePAqM83.cjs +20 -0
- package/components/{bar-chart-options.config-D1mb5TDl.js → bar-chart-options.config-DIirbAJ0.js} +21 -35
- package/components/box-plot-options.config-BVNrV2eD.cjs +20 -0
- package/components/{box-plot-options.config-xu_i6ms7.js → box-plot-options.config-BWROiguA.js} +52 -88
- package/components/{bubble-chart-options.config-BacgXkJ_.js → bubble-chart-options.config-4QD8VPhU.js} +9 -18
- package/components/bubble-chart-options.config-BDgOe3GQ.cjs +20 -0
- package/components/{bullet-chart-options.config-CDPpX1yc.js → bullet-chart-options.config-3bH7uekx.js} +1 -1
- package/components/{bullet-chart-options.config-DfS4Bwds.cjs → bullet-chart-options.config-tWb6Fio-.cjs} +1 -1
- package/components/calculate-data-item-icon-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-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +1 -2
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +32 -35
- package/components/dataset-selector-row/index.cjs +9 -9
- package/components/dataset-selector-row/index.js +51 -53
- 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/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-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-PMDgRSzR.js → index-DdyZ2g5L.js} +94 -104
- package/components/index-DvkzMbLt.cjs +249 -0
- package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
- package/components/index.cjs +1 -1
- package/components/index.js +5 -5
- 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-hKTMz37h.js} +7 -9
- 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 +20 -0
- package/package.json +3 -3
- 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,34 +19,34 @@
|
|
|
19
19
|
* */
|
|
20
20
|
import "@luzmo/lucero/select";
|
|
21
21
|
import "@luzmo/lucero/text-field";
|
|
22
|
-
import { unsafeCSS as
|
|
23
|
-
import { msg as
|
|
24
|
-
import { SizedMixin as
|
|
25
|
-
import { d as v } from "../index-
|
|
26
|
-
import { l as
|
|
27
|
-
import { property as
|
|
28
|
-
import { g as
|
|
22
|
+
import { unsafeCSS as x, html as z } from "lit";
|
|
23
|
+
import { msg as f, localized as w } from "@lit/localize";
|
|
24
|
+
import { SizedMixin as S, LuzmoElement as k, ElementSizes as L } from "@luzmo/lucero/utils";
|
|
25
|
+
import { d as v } from "../index-BGb_wRRW.js";
|
|
26
|
+
import { l as y } from "../localize-CcDpq940.js";
|
|
27
|
+
import { property as h, state as p } from "lit/decorators.js";
|
|
28
|
+
import { g as V, t as $, s as C } from "../set-locale-hKTMz37h.js";
|
|
29
29
|
(function() {
|
|
30
30
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
31
31
|
const r = document.createElement("style");
|
|
32
32
|
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);
|
|
33
33
|
}
|
|
34
34
|
})();
|
|
35
|
-
const
|
|
36
|
-
var
|
|
37
|
-
for (var
|
|
38
|
-
(
|
|
39
|
-
return
|
|
35
|
+
const T = ".missing-value{opacity:.4}:host{--var: blue}";
|
|
36
|
+
var E = Object.defineProperty, I = Object.getOwnPropertyDescriptor, s = (e, r, t, i) => {
|
|
37
|
+
for (var o = i > 1 ? void 0 : i ? I(r, t) : r, c = e.length - 1, u; c >= 0; c--)
|
|
38
|
+
(u = e[c]) && (o = (i ? u(r, t, o) : u(o)) || o);
|
|
39
|
+
return i && o && E(r, t, o), o;
|
|
40
40
|
};
|
|
41
|
-
const
|
|
42
|
-
let
|
|
43
|
-
validSizes: Object.values(
|
|
41
|
+
const _ = 5e3;
|
|
42
|
+
let l = class extends S(k, {
|
|
43
|
+
validSizes: Object.values(L)
|
|
44
44
|
}) {
|
|
45
45
|
constructor() {
|
|
46
46
|
super(...arguments), this.language = "en", this.contentLanguage = "en", this._hierarchyValues = [], this._retrieving = !0, this._search = "", this._error = null, this._allValuesRetrieved = !1, this._runningQueries = [];
|
|
47
47
|
}
|
|
48
48
|
static get styles() {
|
|
49
|
-
return [
|
|
49
|
+
return [x(T)];
|
|
50
50
|
}
|
|
51
51
|
connectedCallback() {
|
|
52
52
|
super.connectedCallback();
|
|
@@ -54,13 +54,12 @@ let u = class extends T(E, {
|
|
|
54
54
|
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), v.configure(e);
|
|
55
55
|
}
|
|
56
56
|
willUpdate(e) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
(x = this.filter) == null ? void 0 : x.expression
|
|
57
|
+
if (e.has("language") && this.language !== V() && ([...$].includes(this.language ?? "en") || this.language === "en") && C(this.language), e.has("filter") && this.filter) {
|
|
58
|
+
const t = e.get("filter")?.expression, i = e.get("filter")?.parameters?.[0]?.columnId || e.get("filter")?.parameters?.[0]?.formulaId, o = this.filter?.parameters?.[0]?.columnId || this.filter?.parameters?.[0]?.formulaId;
|
|
59
|
+
i !== o && (["? in ?", "? not in ?", "? = ?", "? != ?"].includes(
|
|
60
|
+
this.filter?.expression
|
|
62
61
|
) || !["? in ?", "? not in ?", "? = ?", "? != ?"].includes(
|
|
63
|
-
|
|
62
|
+
t
|
|
64
63
|
)) && (this._hierarchyValues = [], this._allValuesRetrieved = !1, this._retrieving = !0);
|
|
65
64
|
}
|
|
66
65
|
}
|
|
@@ -68,76 +67,75 @@ let u = class extends T(E, {
|
|
|
68
67
|
* Fetches hierarchy values from the databroker
|
|
69
68
|
*/
|
|
70
69
|
async _fetchHierarchyValues(e = 0) {
|
|
71
|
-
var g, p;
|
|
72
70
|
if (this._allValuesRetrieved) {
|
|
73
71
|
this._retrieving = !1;
|
|
74
72
|
return;
|
|
75
73
|
}
|
|
76
|
-
if (!
|
|
74
|
+
if (!this.filter?.parameters?.[0]) {
|
|
77
75
|
this._retrieving = !1, this._error = "Missing column parameters";
|
|
78
76
|
return;
|
|
79
77
|
}
|
|
80
|
-
const r = this.filter.parameters[0],
|
|
81
|
-
if (!
|
|
78
|
+
const r = this.filter.parameters[0], t = r.columnId, i = r.formulaId, o = r.datasetId;
|
|
79
|
+
if (!t && !i) {
|
|
82
80
|
this._retrieving = !1, this._error = "Missing column id or formula id";
|
|
83
81
|
return;
|
|
84
|
-
} else if (!
|
|
82
|
+
} else if (!o) {
|
|
85
83
|
this._retrieving = !1, this._error = "Missing dataset id";
|
|
86
84
|
return;
|
|
87
85
|
}
|
|
88
86
|
this._retrieving = !0, this._error = null;
|
|
89
|
-
const
|
|
87
|
+
const c = {
|
|
90
88
|
expression: "? like ?",
|
|
91
89
|
parameters: [
|
|
92
90
|
{
|
|
93
|
-
column_id:
|
|
94
|
-
formula_id:
|
|
95
|
-
dataset_id:
|
|
91
|
+
column_id: t,
|
|
92
|
+
formula_id: i,
|
|
93
|
+
dataset_id: o
|
|
96
94
|
},
|
|
97
95
|
this._search
|
|
98
96
|
]
|
|
99
|
-
},
|
|
97
|
+
}, u = {
|
|
100
98
|
dimensions: [
|
|
101
99
|
{
|
|
102
|
-
column_id:
|
|
103
|
-
formula_id:
|
|
104
|
-
dataset_id:
|
|
100
|
+
column_id: t,
|
|
101
|
+
formula_id: i,
|
|
102
|
+
dataset_id: o
|
|
105
103
|
}
|
|
106
104
|
],
|
|
107
105
|
where: [],
|
|
108
106
|
order: [
|
|
109
107
|
{
|
|
110
|
-
column_id:
|
|
111
|
-
formula_id:
|
|
112
|
-
dataset_id:
|
|
108
|
+
column_id: t,
|
|
109
|
+
formula_id: i,
|
|
110
|
+
dataset_id: o,
|
|
113
111
|
order: "asc"
|
|
114
112
|
}
|
|
115
113
|
],
|
|
116
114
|
limit: {
|
|
117
|
-
by:
|
|
115
|
+
by: _,
|
|
118
116
|
offset: e
|
|
119
117
|
}
|
|
120
118
|
};
|
|
121
|
-
this._search && this._allValuesRetrieved &&
|
|
122
|
-
const
|
|
123
|
-
v.fetchData(
|
|
124
|
-
console.warn("Request aborted"),
|
|
119
|
+
this._search && this._allValuesRetrieved && u.where.push(c);
|
|
120
|
+
const g = new AbortController(), n = new Promise((a, m) => {
|
|
121
|
+
v.fetchData(u).then(a).catch(m), g.signal.addEventListener("abort", () => {
|
|
122
|
+
console.warn("Request aborted"), m({ status: "aborted" });
|
|
125
123
|
});
|
|
126
|
-
}),
|
|
127
|
-
promise:
|
|
128
|
-
abortController:
|
|
124
|
+
}), d = {
|
|
125
|
+
promise: n,
|
|
126
|
+
abortController: g
|
|
129
127
|
};
|
|
130
|
-
this._runningQueries.push(
|
|
128
|
+
this._runningQueries.push(d);
|
|
131
129
|
try {
|
|
132
|
-
const
|
|
133
|
-
this._search || (this._allValuesRetrieved =
|
|
134
|
-
} catch (
|
|
135
|
-
if (
|
|
130
|
+
const a = await n, m = a && Array.isArray(a.data) ? a.data.map((b) => b[0]) : [];
|
|
131
|
+
this._search || (this._allValuesRetrieved = m.length < _), this._hierarchyValues = e > 0 ? [...this._hierarchyValues, ...m] : m;
|
|
132
|
+
} catch (a) {
|
|
133
|
+
if (a?.status === "aborted")
|
|
136
134
|
return;
|
|
137
|
-
this._error =
|
|
135
|
+
this._error = a instanceof Error ? a.message : "Unknown error", this._hierarchyValues = [];
|
|
138
136
|
} finally {
|
|
139
137
|
this._runningQueries = this._runningQueries.filter(
|
|
140
|
-
(
|
|
138
|
+
(a) => a.promise !== n
|
|
141
139
|
), this._retrieving = !1;
|
|
142
140
|
}
|
|
143
141
|
}
|
|
@@ -154,30 +152,26 @@ let u = class extends T(E, {
|
|
|
154
152
|
);
|
|
155
153
|
}
|
|
156
154
|
setHierarchy(e) {
|
|
157
|
-
var o, s, t, n, a, d, c, f;
|
|
158
155
|
let r;
|
|
159
|
-
["? in ?", "? not in ?"].includes(
|
|
156
|
+
["? in ?", "? not in ?"].includes(this.filter?.expression) ? r = e?.detail?.value : ["? = ?", "? != ?"].includes(this.filter?.expression) ? r = e?.detail?.value?.[0] : r = e?.target?.value, this._value !== r && (this._value = r, this.filter = {
|
|
160
157
|
...this.filter,
|
|
161
|
-
parameters: [{ ...
|
|
158
|
+
parameters: [{ ...this.filter?.parameters?.[0] }, this._value]
|
|
162
159
|
}, this._sendChangeEvent());
|
|
163
160
|
}
|
|
164
161
|
onScrolled(e) {
|
|
165
|
-
|
|
166
|
-
!this._retrieving && !this._allValuesRetrieved && ((r = e == null ? void 0 : e.detail) == null ? void 0 : r.last) === this._hierarchyValues.length - 1 && this._fetchHierarchyValues(this._hierarchyValues.length);
|
|
162
|
+
!this._retrieving && !this._allValuesRetrieved && e?.detail?.last === this._hierarchyValues.length - 1 && this._fetchHierarchyValues(this._hierarchyValues.length);
|
|
167
163
|
}
|
|
168
164
|
renderTextField() {
|
|
169
|
-
|
|
170
|
-
return y`<luzmo-text-field
|
|
165
|
+
return z`<luzmo-text-field
|
|
171
166
|
.size=${this.size}
|
|
172
167
|
@change=${this.setHierarchy}
|
|
173
168
|
@input=${this.setHierarchy}
|
|
174
|
-
.value=${
|
|
169
|
+
.value=${this.filter?.parameters?.[1] ?? ""}
|
|
175
170
|
></luzmo-text-field>`;
|
|
176
171
|
}
|
|
177
172
|
setSearchString(e) {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
o != null && o.abortController && o.abortController.abort();
|
|
173
|
+
this._search = e?.detail?.string ?? "", this._allValuesRetrieved || (this._searchQueryTimeout && (this._runningQueries.forEach((r) => {
|
|
174
|
+
r?.abortController && r.abortController.abort();
|
|
181
175
|
}), this._runningQueries = [], clearTimeout(this._searchQueryTimeout)), this._searchQueryTimeout = setTimeout(() => {
|
|
182
176
|
this._fetchHierarchyValues();
|
|
183
177
|
}, 500));
|
|
@@ -189,88 +183,83 @@ let u = class extends T(E, {
|
|
|
189
183
|
this._fetchHierarchyValues();
|
|
190
184
|
}
|
|
191
185
|
renderHierarchyPicker() {
|
|
192
|
-
var c, f, g, p, i;
|
|
193
186
|
if (this._error)
|
|
194
|
-
return
|
|
195
|
-
const e = (this._search ? this._hierarchyValues.filter((
|
|
196
|
-
|
|
197
|
-
return
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
return typeof h != "string" && (h = "N/A"), {
|
|
201
|
-
value: l == null ? void 0 : l.id,
|
|
202
|
-
label: h
|
|
187
|
+
return z`<div class="error">Error: ${this._error}</div>`;
|
|
188
|
+
const e = (this._search ? this._hierarchyValues.filter((n) => y(n.name, this.contentLanguage, { allowEmpty: !0 })?.toLowerCase().includes(this._search.toLowerCase()) || n.toString().toLowerCase().includes(this._search.toLowerCase())) : this._hierarchyValues).map((n) => {
|
|
189
|
+
let d = y(n?.name, this.contentLanguage) ?? "N/A";
|
|
190
|
+
return typeof d != "string" && (d = "N/A"), {
|
|
191
|
+
value: n?.id,
|
|
192
|
+
label: d
|
|
203
193
|
};
|
|
204
|
-
}), r =
|
|
205
|
-
return
|
|
194
|
+
}), r = this.filter?.expression, t = ["? = ?", "? != ?"].includes(r), i = f("Selected {count} items"), o = f("Search"), c = f("No data"), u = f("No results"), g = f("Select...");
|
|
195
|
+
return z`<luzmo-select
|
|
206
196
|
.size=${this.size}
|
|
207
|
-
.label=${
|
|
197
|
+
.label=${g}
|
|
208
198
|
.retrieving=${this._retrieving}
|
|
209
|
-
.selects=${
|
|
210
|
-
.variant=${
|
|
199
|
+
.selects=${t ? "single" : "multiple"}
|
|
200
|
+
.variant=${t ? "highlight" : "checkboxes"}
|
|
211
201
|
emphasized
|
|
212
202
|
no-wrap
|
|
213
203
|
?invalid=${!!this._error}
|
|
214
|
-
.multipleLabelTemplate=${
|
|
215
|
-
.searchLabel=${
|
|
216
|
-
.noDataLabel=${
|
|
217
|
-
.noResultsLabel=${
|
|
204
|
+
.multipleLabelTemplate=${i}
|
|
205
|
+
.searchLabel=${o}
|
|
206
|
+
.noDataLabel=${c}
|
|
207
|
+
.noResultsLabel=${u}
|
|
218
208
|
@change=${this.setHierarchy}
|
|
219
209
|
@luzmo-search=${this.setSearchString}
|
|
220
210
|
@luzmo-opened=${this.onOpened}
|
|
221
211
|
@luzmo-closed=${this.resetSearchString}
|
|
222
212
|
@luzmo-scrolled=${this.onScrolled}
|
|
223
213
|
.options=${e}
|
|
224
|
-
.value=${
|
|
214
|
+
.value=${t ? [this.filter?.parameters?.[1]] : this.filter?.parameters?.[1]}
|
|
225
215
|
>
|
|
226
216
|
</luzmo-select>`;
|
|
227
217
|
}
|
|
228
218
|
render() {
|
|
229
|
-
|
|
230
|
-
const e = (r = this.filter) == null ? void 0 : r.expression;
|
|
219
|
+
const e = this.filter?.expression;
|
|
231
220
|
return ["? in ?", "? not in ?", "? = ?", "? != ?"].includes(e) ? this.renderHierarchyPicker() : this.renderTextField();
|
|
232
221
|
}
|
|
233
222
|
};
|
|
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
|
-
|
|
266
|
-
],
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
],
|
|
223
|
+
s([
|
|
224
|
+
h({ type: String, attribute: "api-url", reflect: !0 })
|
|
225
|
+
], l.prototype, "apiUrl", 2);
|
|
226
|
+
s([
|
|
227
|
+
h({ type: String, attribute: "auth-key", reflect: !0 })
|
|
228
|
+
], l.prototype, "authKey", 2);
|
|
229
|
+
s([
|
|
230
|
+
h({ type: String, attribute: "auth-token", reflect: !0 })
|
|
231
|
+
], l.prototype, "authToken", 2);
|
|
232
|
+
s([
|
|
233
|
+
h({ type: Number, attribute: "cache-time", reflect: !0 })
|
|
234
|
+
], l.prototype, "cacheTime", 2);
|
|
235
|
+
s([
|
|
236
|
+
h({ type: String, reflect: !0 })
|
|
237
|
+
], l.prototype, "language", 2);
|
|
238
|
+
s([
|
|
239
|
+
h({ type: String, attribute: "content-language", reflect: !0 })
|
|
240
|
+
], l.prototype, "contentLanguage", 2);
|
|
241
|
+
s([
|
|
242
|
+
h({ type: Object, reflect: !1 })
|
|
243
|
+
], l.prototype, "filter", 2);
|
|
244
|
+
s([
|
|
245
|
+
p()
|
|
246
|
+
], l.prototype, "_hierarchyValues", 2);
|
|
247
|
+
s([
|
|
248
|
+
p()
|
|
249
|
+
], l.prototype, "_retrieving", 2);
|
|
250
|
+
s([
|
|
251
|
+
p()
|
|
252
|
+
], l.prototype, "_search", 2);
|
|
253
|
+
s([
|
|
254
|
+
p()
|
|
255
|
+
], l.prototype, "_error", 2);
|
|
256
|
+
l = s([
|
|
257
|
+
w()
|
|
258
|
+
], l);
|
|
270
259
|
customElements.get("luzmo-filter-value-picker-hierarchy") || customElements.define(
|
|
271
260
|
"luzmo-filter-value-picker-hierarchy",
|
|
272
|
-
|
|
261
|
+
l
|
|
273
262
|
);
|
|
274
263
|
export {
|
|
275
|
-
|
|
264
|
+
l as LuzmoFilterValuePickerHierarchy
|
|
276
265
|
};
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/number-field");require("@luzmo/lucero/select");const
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/number-field");require("@luzmo/lucero/select");const d=require("lit"),h=require("@lit/localize"),f=require("@luzmo/lucero/utils"),b=require("../index-D1Y5TRsH.cjs"),g=require("../set-locale-BRRalqne.cjs"),u=require("lit/decorators.js"),L=".missing-value{opacity:.4}:host{--var: blue}";var z=Object.defineProperty,k=Object.getOwnPropertyDescriptor,a=(m,e,t,i)=>{for(var r=i>1?void 0:i?k(e,t):e,s=m.length-1,n;s>=0;s--)(n=m[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&z(e,t,r),r};const y=5e3;exports.LuzmoFilterValuePickerNumeric=class extends f.SizedMixin(f.LuzmoElement,{validSizes:Object.values(f.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this._numericValues=[],this._retrieving=!0,this._search="",this._error=null,this._allValuesRetrieved=!1,this._runningQueries=[]}static get styles(){return[d.unsafeCSS(L)]}connectedCallback(){super.connectedCallback();const e={};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.dataBroker.configure(e)}willUpdate(e){const t=e.has("filter");if(e.has("language")&&this.language!==g.getLocale()&&([...g.targetLocales].includes(this.language??"en")||this.language==="en")&&g.setLocale(this.language),t&&this.filter){const r=e.get("filter")?.expression,s=this.filter?.expression,n=e.get("filter")?.parameters?.[0]?.columnId||e.get("filter")?.parameters?.[0]?.formulaId,o=this.filter?.parameters?.[0]?.columnId||this.filter?.parameters?.[0]?.formulaId;(n!==o||!["? in ?","? not in ?"].includes(r))&&["? in ?","? not in ?"].includes(s)&&(this._numericValues=[],this._allValuesRetrieved=!1,this._retrieving=!0)}}async _fetchNumericValues(e=0){if(this._allValuesRetrieved){this._retrieving=!1;return}if(!this.filter?.parameters?.[0]){this._retrieving=!1,this._error="Missing column parameters";return}const t=this.filter.parameters[0],i=t.columnId,r=t.formulaId,s=t.datasetId;if(!i&&!r){this._retrieving=!1,this._error="Missing column id or formula id";return}else if(!s){this._retrieving=!1,this._error="Missing dataset id";return}this._retrieving=!0,this._error=null;const n={expression:"? like ?",parameters:[{dataset_id:s,expression:`CAST({${s}:${i??r}},hierarchy)`},this._search]},o={dimensions:[{column_id:i,formula_id:r,dataset_id:s}],where:[],order:[{column_id:i,formula_id:r,dataset_id:s,order:"asc"}],limit:{by:y,offset:e}};this._search&&!this._allValuesRetrieved&&o.where.push(n);const _=new AbortController,p=new Promise((l,c)=>{b.dataBroker.fetchData(o).then(l).catch(c),_.signal.addEventListener("abort",()=>{console.warn("Request aborted"),c({status:"aborted"})})}),V={promise:p,abortController:_};this._runningQueries.push(V);try{const l=await p,c=l&&Array.isArray(l.data)?l.data.map(v=>v[0]):[];this._search||(this._allValuesRetrieved=c.length<y),this._numericValues=e>0?[...this._numericValues,...c]:c}catch(l){if(l?.status==="aborted")return;this._error=l instanceof Error?l.message:"Unknown error",this._numericValues=[]}finally{this._runningQueries=this._runningQueries.filter(l=>l.promise!==p),this._retrieving=!1}}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("filter-value-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setValue(e){const t=["? in ?","? not in ?"].includes(this.filter?.expression)?e?.detail?.value:e?.target?.value;this._value!==t&&(this._value=t,this.filter={...this.filter,parameters:[{...this.filter?.parameters?.[0]},t]},this._sendChangeEvent())}selectValue(e){const i=(e.detail?.value??"").map(r=>Number.parseFloat(r));this.filter={...this.filter,parameters:[{...this.filter?.parameters?.[0]},i]},this._value=i,this._sendChangeEvent()}onScrolled(e){!this._retrieving&&!this._allValuesRetrieved&&e?.detail?.last===this._numericValues.length-1&&this._fetchNumericValues(this._numericValues.length)}renderNumberField(){return d.html`<luzmo-number-field
|
|
21
21
|
.size=${this.size}
|
|
22
22
|
@change=${this.setValue}
|
|
23
23
|
@input=${this.setValue}
|
|
24
|
-
.value=${
|
|
25
|
-
></luzmo-number-field>`}setSearchString(e){
|
|
24
|
+
.value=${this.filter?.parameters?.[1]}
|
|
25
|
+
></luzmo-number-field>`}setSearchString(e){this._search=e?.detail?.string??"",this._allValuesRetrieved||(this._searchQueryTimeout&&(this._runningQueries.forEach(t=>{t?.abortController&&t.abortController.abort()}),this._runningQueries=[],clearTimeout(this._searchQueryTimeout)),this._searchQueryTimeout=setTimeout(()=>{this._fetchNumericValues()},500))}resetSearchString(){this._search=""}onOpened(){this._fetchNumericValues()}renderValuePicker(){this._error&&console.error(`Numeric value retrieve error: ${this._error}`);const e=this._numericValues.filter(o=>o.toString().toLowerCase().includes(this._search.toLowerCase())).map(o=>({value:o,label:o})),t=h.msg("Selected {count} items"),i=h.msg("Search"),r=h.msg("No data"),s=h.msg("No results"),n=h.msg("Select...");return d.html`<luzmo-select
|
|
26
26
|
.size=${this.size}
|
|
27
|
-
.label=${
|
|
27
|
+
.label=${n}
|
|
28
28
|
.retrieving=${this._retrieving}
|
|
29
29
|
selects="multiple"
|
|
30
30
|
variant="checkboxes"
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
no-wrap
|
|
33
33
|
?invalid=${!!this._error}
|
|
34
34
|
.multipleLabelTemplate=${t}
|
|
35
|
-
.searchLabel=${
|
|
36
|
-
.noDataLabel=${
|
|
35
|
+
.searchLabel=${i}
|
|
36
|
+
.noDataLabel=${r}
|
|
37
37
|
.noResultsLabel=${s}
|
|
38
38
|
@change=${this.selectValue}
|
|
39
39
|
@luzmo-search=${this.setSearchString}
|
|
@@ -41,6 +41,6 @@
|
|
|
41
41
|
@luzmo-closed=${this.resetSearchString}
|
|
42
42
|
@luzmo-scrolled=${this.onScrolled}
|
|
43
43
|
.options=${e}
|
|
44
|
-
.value=${
|
|
44
|
+
.value=${this.filter?.parameters?.[1]}
|
|
45
45
|
>
|
|
46
|
-
</luzmo-select>`}render(){
|
|
46
|
+
</luzmo-select>`}render(){const e=this.filter?.expression;return["? in ?","? not in ?"].includes(e)?this.renderValuePicker():this.renderNumberField()}};a([u.property({type:String,attribute:"api-url",reflect:!0})],exports.LuzmoFilterValuePickerNumeric.prototype,"apiUrl",2);a([u.property({type:String,attribute:"auth-key",reflect:!0})],exports.LuzmoFilterValuePickerNumeric.prototype,"authKey",2);a([u.property({type:String,attribute:"auth-token",reflect:!0})],exports.LuzmoFilterValuePickerNumeric.prototype,"authToken",2);a([u.property({type:Number,attribute:"cache-time",reflect:!0})],exports.LuzmoFilterValuePickerNumeric.prototype,"cacheTime",2);a([u.property({type:String,reflect:!0})],exports.LuzmoFilterValuePickerNumeric.prototype,"language",2);a([u.property({type:String,attribute:"content-language",reflect:!0})],exports.LuzmoFilterValuePickerNumeric.prototype,"contentLanguage",2);a([u.property({type:Object,reflect:!1})],exports.LuzmoFilterValuePickerNumeric.prototype,"filter",2);a([u.state()],exports.LuzmoFilterValuePickerNumeric.prototype,"_numericValues",2);a([u.state()],exports.LuzmoFilterValuePickerNumeric.prototype,"_retrieving",2);a([u.state()],exports.LuzmoFilterValuePickerNumeric.prototype,"_search",2);a([u.state()],exports.LuzmoFilterValuePickerNumeric.prototype,"_error",2);exports.LuzmoFilterValuePickerNumeric=a([h.localized()],exports.LuzmoFilterValuePickerNumeric);customElements.get("luzmo-filter-value-picker-numeric")||customElements.define("luzmo-filter-value-picker-numeric",exports.LuzmoFilterValuePickerNumeric);
|