@luzmo/analytics-components-kit 1.0.1-alpha.94 → 1.0.1-alpha.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/angular/README.md +1 -1
- package/angular/components/viz-item-menu.component.ts +25 -0
- package/angular/esm/components/viz-item-menu.component.d.ts +13 -0
- package/angular/esm/components/viz-item-menu.component.js +49 -0
- package/angular/esm/index.d.ts +3 -3
- package/angular/esm/index.js +3 -3
- package/angular/esm/types.d.ts +2 -2
- package/angular/index.ts +3 -3
- package/angular/types.ts +2 -2
- package/components/ai-chat-message-assistant/index.cjs +1 -1
- package/components/ai-chat-message-assistant/index.js +0 -1
- package/components/ai-chat-messages-container/index.cjs +1 -1
- package/components/ai-chat-messages-container/index.js +2 -2
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -2
- package/components/area-chart-options.config-Bl8bhhOo.cjs +20 -0
- package/components/{area-chart-options.config-_J0sG4NF.js → area-chart-options.config-u8itidsi.js} +14 -26
- package/components/bar-chart-options.config-CePAqM83.cjs +20 -0
- package/components/{bar-chart-options.config-D1mb5TDl.js → bar-chart-options.config-DIirbAJ0.js} +21 -35
- package/components/box-plot-options.config-BVNrV2eD.cjs +20 -0
- package/components/{box-plot-options.config-xu_i6ms7.js → box-plot-options.config-BWROiguA.js} +52 -88
- package/components/{bubble-chart-options.config-BacgXkJ_.js → bubble-chart-options.config-4QD8VPhU.js} +9 -18
- package/components/bubble-chart-options.config-BDgOe3GQ.cjs +20 -0
- package/components/{bullet-chart-options.config-CDPpX1yc.js → bullet-chart-options.config-3bH7uekx.js} +1 -1
- package/components/{bullet-chart-options.config-DfS4Bwds.cjs → bullet-chart-options.config-tWb6Fio-.cjs} +1 -1
- package/components/calculate-data-item-icon-DMDhKq_m.js +147 -0
- package/components/calculate-data-item-icon-DtVGbet3.cjs +20 -0
- package/components/{choropleth-map-options.config-B_W9-rhe.js → choropleth-map-options.config-CMxx3ORp.js} +63 -84
- package/components/choropleth-map-options.config-CWJACFd0.cjs +20 -0
- package/components/circular-gauge-options.config-BMxgq3zH.cjs +20 -0
- package/components/{circular-gauge-options.config-DAIjz4Rl.js → circular-gauge-options.config-DhIKn44k.js} +23 -36
- package/components/{color-DuJ4-73S.js → color-B7m0j8lX.js} +941 -950
- package/components/color-Czp4Im5q.cjs +20 -0
- package/components/{color-range-utils-Bvo9sm5A.js → color-range-utils-BSfqtB3A.js} +31 -32
- package/components/color-range-utils-DYYR-iwx.cjs +20 -0
- package/components/column-chart-options.config-BV9R3ssH.cjs +20 -0
- package/components/{column-chart-options.config-B5SjBVdy.js → column-chart-options.config-D5-yR7iq.js} +27 -37
- package/components/conditional-number-options.config-Co099Qfm.cjs +20 -0
- package/components/{conditional-number-options.config-BCEpSK9J.js → conditional-number-options.config-DPYsdML5.js} +24 -40
- package/components/dataset-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +1 -2
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +32 -35
- package/components/dataset-selector-row/index.cjs +9 -9
- package/components/dataset-selector-row/index.js +50 -52
- package/components/{date-comparison-filter-options.config-JA_yYpJa.js → date-comparison-filter-options.config-CSwGyuBg.js} +3 -6
- package/components/{date-comparison-filter-options.config-DAVncmi0.cjs → date-comparison-filter-options.config-QaoWaFUn.cjs} +1 -1
- package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js} +3 -6
- package/components/{date-filter-options.config-CWPMtA18.cjs → date-filter-options.config-n-zhWaYa.cjs} +1 -1
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/index.cjs +5 -5
- package/components/display-settings-binning/index.js +29 -30
- package/components/display-settings-datetime/index.cjs +29 -29
- package/components/display-settings-datetime/index.js +112 -120
- package/components/display-settings-grand-totals/index.cjs +4 -4
- package/components/display-settings-grand-totals/index.js +23 -24
- package/components/display-settings-numeric/display-settings-numeric.d.ts +1 -2
- package/components/display-settings-numeric/index.cjs +49 -48
- package/components/display-settings-numeric/index.js +193 -218
- package/components/display-settings-period-over-period/index.cjs +16 -16
- package/components/display-settings-period-over-period/index.js +91 -97
- package/components/{donut-chart-options.config-BulUEiaH.js → donut-chart-options.config-3ZqX8Cbb.js} +21 -37
- package/components/donut-chart-options.config-BQyPgnC9.cjs +20 -0
- package/components/draggable-data-item/index.cjs +5 -5
- package/components/draggable-data-item/index.js +45 -46
- package/components/draggable-data-item-level/index.cjs +11 -11
- package/components/draggable-data-item-level/index.js +70 -73
- package/components/{dropdown-filter-options.config-D9dvPypF.js → dropdown-filter-options.config-CGJTtgAX.js} +7 -10
- package/components/{dropdown-filter-options.config-DS-MORmq.cjs → dropdown-filter-options.config-DJvfCTk7.cjs} +1 -1
- package/components/droppable-slot/index.cjs +16 -16
- package/components/droppable-slot/index.js +208 -223
- package/components/edit-item/index.cjs +9 -9
- package/components/edit-item/index.js +116 -119
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-action-button-group/index.cjs +8 -8
- package/components/edit-option-action-button-group/index.js +52 -53
- package/components/{edit-option-base-DIc7iC-b.js → edit-option-base-Bh29-Cak.js} +1 -1
- package/components/{edit-option-base-VhTih9T1.cjs → edit-option-base-tFr8Qg2B.cjs} +1 -1
- package/components/edit-option-color-palette-picker/index.cjs +1 -1
- package/components/edit-option-color-palette-picker/index.js +1 -1
- package/components/edit-option-color-picker/index.cjs +1 -1
- package/components/edit-option-color-picker/index.js +1 -1
- package/components/edit-option-color-range/index.cjs +19 -19
- package/components/edit-option-color-range/index.js +106 -117
- package/components/edit-option-multi-language-field/index.cjs +3 -3
- package/components/edit-option-multi-language-field/index.js +26 -27
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +1 -1
- package/components/edit-option-picker/index.cjs +5 -5
- package/components/edit-option-picker/index.js +7 -7
- package/components/edit-option-position-picker/index.cjs +4 -4
- package/components/edit-option-position-picker/index.js +21 -25
- package/components/edit-option-positions-number-field/index.cjs +9 -9
- package/components/edit-option-positions-number-field/index.js +76 -81
- package/components/edit-option-radio-button-group/index.cjs +6 -6
- package/components/edit-option-radio-button-group/index.js +21 -22
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +1 -1
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +1 -1
- package/components/edit-option-text-field/index.cjs +2 -2
- package/components/edit-option-text-field/index.js +22 -23
- package/components/en-D3ihEGXg.js +1483 -0
- package/components/en-DZcn_iz_.cjs +20 -0
- package/components/{en-GB-DG6uS3sM.cjs → en-GB-TqvgIw9B.cjs} +1 -1
- package/components/{en-GB-CEHEs8F2.js → en-GB-ialeqj_z.js} +1 -1
- package/components/{evolution-number-options.config-DzkfeoIN.js → evolution-number-options.config-BIPO_4n3.js} +11 -14
- package/components/{evolution-number-options.config-BgIZY4gQ.cjs → evolution-number-options.config-Bc9eKYnn.cjs} +1 -1
- package/components/{extrapolate-color-0j_AeYkz.cjs → extrapolate-color-C0n1UDs-.cjs} +1 -1
- package/components/{extrapolate-color-CC9CURf6.js → extrapolate-color-v1PimdQr.js} +1 -1
- package/components/filter-data-item-picker/index.cjs +7 -7
- package/components/filter-data-item-picker/index.js +85 -86
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +6 -6
- package/components/filter-item/index.js +109 -119
- package/components/filter-value-picker/index.cjs +2 -2
- package/components/filter-value-picker/index.js +34 -36
- package/components/filter-value-picker-datetime/index.cjs +8 -8
- package/components/filter-value-picker-datetime/index.js +56 -71
- package/components/filter-value-picker-hierarchy/index.cjs +12 -12
- package/components/filter-value-picker-hierarchy/index.js +113 -124
- package/components/filter-value-picker-numeric/index.cjs +8 -8
- package/components/filter-value-picker-numeric/index.js +101 -110
- package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
- package/components/focusable-QLh-LlNt.cjs +20 -0
- package/components/{funnel-chart-options.config-C_VjTOvD.js → funnel-chart-options.config-CrJy2U7_.js} +5 -20
- package/components/funnel-chart-options.config-DrP4AFgk.cjs +20 -0
- package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-Bb7TxJdX.js} +37 -37
- package/components/get-css-variable-Pzks_rOx.cjs +24 -0
- package/components/grid/index.cjs +43 -49
- package/components/grid/index.js +2610 -1878
- package/components/heat-map-options.config-CIHnPdYE.cjs +20 -0
- package/components/{heat-map-options.config-BnLWe8jS.js → heat-map-options.config-CmL87j1j.js} +35 -41
- package/components/{heat-table-options.config-CUsDdgUr.js → heat-table-options.config-BrCYAgYD.js} +60 -88
- package/components/heat-table-options.config-DTlZRc_i.cjs +20 -0
- package/components/helpers-9I0oLoUB.cjs +20 -0
- package/components/helpers-bR8Ibjqh.js +79 -0
- package/components/{hexbin-map-options.config-F-7uCqxb.js → hexbin-map-options.config-BguV1w8q.js} +20 -38
- package/components/hexbin-map-options.config-CKnn3VAB.cjs +20 -0
- package/components/{index-BPNsFiyq.cjs → index-BNAmjOkm.cjs} +4 -4
- package/components/index-BekTY3Em.cjs +121 -0
- package/components/index-CFL6gmIu.cjs +20 -0
- package/components/{index-Do7O9azB.js → index-CqKpf0B8.js} +112 -123
- package/components/index-DNPULp4A.js +1755 -0
- package/components/{index-D0GBF6tg.js → index-DdyZ2g5L.js} +94 -104
- package/components/index-DvkzMbLt.cjs +249 -0
- package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
- package/components/index.cjs +1 -1
- package/components/index.js +13 -13
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +37 -37
- package/components/{line-chart-options.config-DB3IsXXr.js → line-chart-options.config-BhirTGqD.js} +13 -28
- package/components/line-chart-options.config-Cqwou5u6.cjs +20 -0
- package/components/{localize-r7ALOUy_.cjs → localize-C4zNlrwK.cjs} +1 -1
- package/components/{localize-BX7q0S0M.js → localize-CcDpq940.js} +10 -10
- package/components/{marker-map-options.config-DPJ955tt.js → marker-map-options.config-Bx17jmiq.js} +1 -1
- package/components/{marker-map-options.config-_FYZzRwA.cjs → marker-map-options.config-CvhCylSC.cjs} +1 -1
- package/components/{pivot-table-options.config-DNK_AIG7.js → pivot-table-options.config-CFc7y0IT.js} +15 -24
- package/components/pivot-table-options.config-uZDAertf.cjs +20 -0
- package/components/{pyramid-chart-options.config-CcVMatYx.js → pyramid-chart-options.config-2Waxb11l.js} +29 -43
- package/components/pyramid-chart-options.config-DoGfEvzU.cjs +20 -0
- package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js} +11 -23
- package/components/radar-chart-options.config-CtNUMN1l.cjs +20 -0
- package/components/{regular-table-options.config-BoLZsBry.js → regular-table-options.config-CFKCJQK1.js} +17 -23
- package/components/{regular-table-options.config-DTx3RTnS.cjs → regular-table-options.config-YRuoijIk.cjs} +1 -1
- package/components/route-map-options.config-CVTk5RVL.cjs +20 -0
- package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js} +87 -109
- package/components/{sankey-diagram-options.config-RFB83YLZ.cjs → sankey-diagram-options.config-D7OSvSqm.cjs} +1 -1
- package/components/{sankey-diagram-options.config-tVLKy_Zn.js → sankey-diagram-options.config-Ldjk84ro.js} +7 -10
- package/components/scatter-plot-options.config-5gN7pMTm.cjs +20 -0
- package/components/{scatter-plot-options.config-Corlzno1.js → scatter-plot-options.config-CfxEfkQ1.js} +56 -86
- package/components/{search-filter-options.config-BE3JhR-F.js → search-filter-options.config-C0syQmP4.js} +3 -6
- package/components/{search-filter-options.config-BCaDlYqZ.cjs → search-filter-options.config-Oqco9BKj.cjs} +1 -1
- package/components/{set-locale-Dp3N_gXN.js → set-locale-hKTMz37h.js} +1 -8
- package/components/slicer-filter-options.config-CrusP6a0.cjs +20 -0
- package/components/{slicer-filter-options.config-3JZZcw5C.js → slicer-filter-options.config-DmOe3440.js} +9 -18
- package/components/{slider-filter-options.config-DH4SS8wH.js → slider-filter-options.config-B1M8RcDs.js} +1 -1
- package/components/{slider-filter-options.config-_8Z2zKmU.cjs → slider-filter-options.config-k45I-t6G.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +33 -33
- package/components/slot-contents-picker/index.js +194 -205
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.js +171 -184
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +97 -103
- package/components/speedometer-chart-options.config-B4ceg_qI.cjs +20 -0
- package/components/{speedometer-chart-options.config-SL581yOa.js → speedometer-chart-options.config-CzOmuEF8.js} +31 -53
- package/components/spike-map-options.config-BkkDqb4g.cjs +20 -0
- package/components/{spike-map-options.config-C5KewecZ.js → spike-map-options.config-Cbt1YUw6.js} +91 -122
- package/components/{sunburst-chart-options.config-AbNjWS6t.cjs → sunburst-chart-options.config-Yrxc2i57.cjs} +1 -1
- package/components/{sunburst-chart-options.config-CNauGQJv.js → sunburst-chart-options.config-_dyLQxPJ.js} +9 -20
- package/components/{symbol-map-options.config-DdDA4aa7.js → symbol-map-options.config-BORL1NSU.js} +11 -20
- package/components/symbol-map-options.config-NpBKm64d.cjs +20 -0
- package/components/{treemap-chart-options.config-D5AJaF_u.js → treemap-chart-options.config-B9i9qIm_.js} +20 -37
- package/components/treemap-chart-options.config-x4J54WSw.cjs +20 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +94 -97
- package/components/{video-options.config-CGsDTwHc.cjs → video-options.config-B0asgYt8.cjs} +1 -1
- package/components/{video-options.config-Dk36zJ1B.js → video-options.config-UX-9MDfS.js} +7 -10
- package/components/viz-item-menu/index.cjs +51 -0
- package/components/viz-item-menu/index.d.ts +8 -0
- package/components/viz-item-menu/index.js +209 -0
- package/components/viz-item-menu/viz-item-menu.d.ts +77 -0
- package/components/{wordcloud-chart-options.config-vGfCW8kE.cjs → wordcloud-chart-options.config-BKtJT8Va.cjs} +1 -1
- package/components/{wordcloud-chart-options.config-w2NUIWVA.js → wordcloud-chart-options.config-BoB_KuhA.js} +4 -7
- package/custom-elements.json +43 -23
- package/index.d.ts +1 -1
- package/package.json +7 -7
- package/types.d.ts +2 -2
- package/angular/components/widget-menu.component.ts +0 -25
- package/angular/esm/components/widget-menu.component.d.ts +0 -13
- package/angular/esm/components/widget-menu.component.js +0 -49
- package/components/area-chart-options.config-C7sMAHco.cjs +0 -20
- package/components/bar-chart-options.config-DcxEkOT5.cjs +0 -20
- package/components/box-plot-options.config-SrrbDEYW.cjs +0 -20
- package/components/bubble-chart-options.config-Ihn6eVQI.cjs +0 -20
- package/components/calculate-data-item-icon-CEa82-5u.cjs +0 -20
- package/components/calculate-data-item-icon-DjlZwMdO.js +0 -147
- package/components/choropleth-map-options.config-ZW8yoZH2.cjs +0 -20
- package/components/circular-gauge-options.config-msZ4mfpN.cjs +0 -20
- package/components/color-B6LaL8qz.cjs +0 -20
- package/components/color-range-utils-C5yXW7ZC.cjs +0 -20
- package/components/column-chart-options.config-BjDvA7i9.cjs +0 -20
- package/components/conditional-number-options.config-DgzUo0xi.cjs +0 -20
- package/components/donut-chart-options.config-tNpqBZfR.cjs +0 -20
- package/components/en-BKBhKBXY.cjs +0 -20
- package/components/en-BOTjhwEc.js +0 -1488
- package/components/focusable-B3E_hQmm.cjs +0 -20
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
- package/components/get-css-variable-BEYG097C.js +0 -1446
- package/components/get-css-variable-BZxY4IOa.cjs +0 -35
- package/components/get-css-variable-DLiZYZEi.cjs +0 -24
- package/components/heat-map-options.config-DVH-Bb5-.cjs +0 -20
- package/components/heat-table-options.config-B12JEYnp.cjs +0 -20
- package/components/helpers-DXQwEH1P.cjs +0 -20
- package/components/helpers-v1bPALRP.js +0 -91
- package/components/hexbin-map-options.config-DZERRhM8.cjs +0 -20
- package/components/index-CDi4fe3N.js +0 -1716
- package/components/index-CQ9ck-BO.cjs +0 -249
- package/components/index-CXn67vdn.cjs +0 -121
- package/components/index-Cz9vSXy6.cjs +0 -20
- package/components/index-Dn0j_pcR.cjs +0 -20
- package/components/index-E239Dotg.js +0 -1735
- package/components/line-chart-options.config-DSugoe0t.cjs +0 -20
- package/components/pivot-table-options.config-BiJXKSFR.cjs +0 -20
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +0 -20
- package/components/radar-chart-options.config-EqQu6PTh.cjs +0 -20
- package/components/route-map-options.config-D7NJePTu.cjs +0 -20
- package/components/scatter-plot-options.config-CFfGJXsV.cjs +0 -20
- package/components/slicer-filter-options.config-DNI-XevE.cjs +0 -20
- package/components/speedometer-chart-options.config-BX9LTQBH.cjs +0 -20
- package/components/spike-map-options.config-DoBFXPmN.cjs +0 -20
- package/components/symbol-map-options.config-m-lwLTtu.cjs +0 -20
- package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +0 -20
- package/components/widget-menu/index.cjs +0 -51
- package/components/widget-menu/index.d.ts +0 -8
- package/components/widget-menu/index.js +0 -211
- package/components/widget-menu/widget-menu.d.ts +0 -77
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
import "@luzmo/lucero/field-label";
|
|
21
21
|
import "@luzmo/lucero/menu";
|
|
22
22
|
import "@luzmo/lucero/select";
|
|
23
|
-
import { unsafeCSS as
|
|
24
|
-
import { msg as e, localized as
|
|
25
|
-
import { SizedMixin as
|
|
26
|
-
import { property as
|
|
27
|
-
import { g as
|
|
28
|
-
const
|
|
23
|
+
import { unsafeCSS as y, html as f } from "lit";
|
|
24
|
+
import { msg as e, localized as b } from "@lit/localize";
|
|
25
|
+
import { SizedMixin as g, LuzmoElement as w, ElementSizes as F } from "@luzmo/lucero/utils";
|
|
26
|
+
import { property as p, state as x } from "lit/decorators.js";
|
|
27
|
+
import { g as _, t as k, s as v } from "./set-locale-hKTMz37h.js";
|
|
28
|
+
const h = () => [
|
|
29
29
|
{
|
|
30
30
|
id: "? = ?",
|
|
31
31
|
key: "? = ?",
|
|
@@ -439,96 +439,86 @@ const m = () => [
|
|
|
439
439
|
type: ["numeric", "datetime", "hierarchy", "spatial"],
|
|
440
440
|
subtype: ["ip_address"]
|
|
441
441
|
}
|
|
442
|
-
],
|
|
442
|
+
], m = (s, t, r) => {
|
|
443
443
|
const o = /* @__PURE__ */ new Set(["? in ?", "? not in ?"]);
|
|
444
|
-
return !
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
for (var t = o > 1 ? void 0 : o ? O(s, r) : s, n = i.length - 1, l; n >= 0; n--)
|
|
451
|
-
(l = i[n]) && (t = (o ? l(s, r, t) : l(t)) || t);
|
|
452
|
-
return o && t && B(s, r, t), t;
|
|
444
|
+
return !s && !t ? h() : h().filter((a) => (s && a.type.includes(s) || t && a.subtype?.includes(t)) && !(r && o.has(a.key)));
|
|
445
|
+
}, S = ":host{font-family:var(--luzmo-font-family)}:host{--var: blue}";
|
|
446
|
+
var E = Object.defineProperty, q = Object.getOwnPropertyDescriptor, n = (s, t, r, o) => {
|
|
447
|
+
for (var a = o > 1 ? void 0 : o ? q(t, r) : t, d = s.length - 1, l; d >= 0; d--)
|
|
448
|
+
(l = s[d]) && (a = (o ? l(t, r, a) : l(a)) || a);
|
|
449
|
+
return o && a && E(t, r, a), a;
|
|
453
450
|
};
|
|
454
|
-
let
|
|
455
|
-
validSizes: Object.values(
|
|
451
|
+
let i = class extends g(w, {
|
|
452
|
+
validSizes: Object.values(F)
|
|
456
453
|
}) {
|
|
457
454
|
constructor() {
|
|
458
|
-
super(...arguments), this.language = "en", this.hasLabel = !1, this.allowEmpty = !1, this.placeholder = "", this.disabled = !1, this.invalid = !1, this.isFormula = !1, this._expressionConfigurations =
|
|
455
|
+
super(...arguments), this.language = "en", this.hasLabel = !1, this.allowEmpty = !1, this.placeholder = "", this.disabled = !1, this.invalid = !1, this.isFormula = !1, this._expressionConfigurations = h();
|
|
459
456
|
}
|
|
460
457
|
static get styles() {
|
|
461
|
-
return [
|
|
458
|
+
return [y(S)];
|
|
462
459
|
}
|
|
463
460
|
_sendChangeEvent() {
|
|
464
|
-
var s, r, o, t, n, l, c;
|
|
465
461
|
if (this.disabled) return;
|
|
466
|
-
const
|
|
467
|
-
expression:
|
|
462
|
+
const s = {
|
|
463
|
+
expression: this.filter?.expression
|
|
468
464
|
};
|
|
469
|
-
|
|
465
|
+
this.filter?.parameters?.[1]?.unit && (s.unit = this.filter?.parameters?.[1]?.unit), this.dispatchEvent(
|
|
470
466
|
new CustomEvent("expression-selected", {
|
|
471
467
|
bubbles: !0,
|
|
472
468
|
composed: !0,
|
|
473
469
|
cancelable: !0,
|
|
474
|
-
detail:
|
|
470
|
+
detail: s
|
|
475
471
|
})
|
|
476
472
|
);
|
|
477
473
|
}
|
|
478
|
-
setExpression(
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
(n) => n.id === this._richExpression
|
|
474
|
+
setExpression(s) {
|
|
475
|
+
this._richExpression = s?.detail?.value?.[0];
|
|
476
|
+
const t = this._expressionConfigurations.find(
|
|
477
|
+
(o) => o.id === this._richExpression
|
|
483
478
|
), r = structuredClone(this.filter);
|
|
484
|
-
r.expression =
|
|
479
|
+
r.expression = t?.expression, t?.unit && (this._unit = t.unit, r?.parameters[0] && (r.parameters[1] = {
|
|
485
480
|
unit: this._unit
|
|
486
481
|
})), this.filter = r, this._sendChangeEvent();
|
|
487
482
|
}
|
|
488
|
-
willUpdate(
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
const l = k(
|
|
483
|
+
willUpdate(s) {
|
|
484
|
+
const t = s.has("language"), r = s.has("filter"), o = s.has("type"), a = s.has("subtype"), d = s.has("isFormula");
|
|
485
|
+
t && this.language !== _() && ([...k].includes(this.language ?? "en") || this.language === "en") && v(this.language);
|
|
486
|
+
const l = m(
|
|
493
487
|
this.type,
|
|
494
488
|
this.subtype,
|
|
495
489
|
this.isFormula
|
|
496
|
-
),
|
|
497
|
-
if (
|
|
498
|
-
const
|
|
499
|
-
this._unit =
|
|
490
|
+
), u = ["YTD", "QTD", "MTD", "WTD"];
|
|
491
|
+
if (this.filter?.expression === "to_date") {
|
|
492
|
+
const c = this.filter?.parameters[1]?.unit ?? 1;
|
|
493
|
+
this._unit = c, this._richExpression = u[c - 1] ?? "YTD";
|
|
500
494
|
} else
|
|
501
|
-
this._richExpression =
|
|
502
|
-
(o ||
|
|
503
|
-
(
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
)) ? (this.invalid = !0, console.warn(
|
|
508
|
-
`Warning: ${(b = this.filter) == null ? void 0 : b.expression} is not valid given the type: ${this.type} and subtype: ${this.subtype}`
|
|
509
|
-
)) : this.invalid = !1, !((w = this.filter) != null && w.expression) && !this.allowEmpty && (this._richExpression = (F = l == null ? void 0 : l[0]) == null ? void 0 : F.id, this.filter = {
|
|
495
|
+
this._richExpression = this.filter?.expression;
|
|
496
|
+
(o || a || d || r) && this.filter && !this.disabled && !l?.find(
|
|
497
|
+
(c) => c.expression === this.filter?.expression
|
|
498
|
+
) ? (this.invalid = !0, console.warn(
|
|
499
|
+
`Warning: ${this.filter?.expression} is not valid given the type: ${this.type} and subtype: ${this.subtype}`
|
|
500
|
+
)) : this.invalid = !1, !this.filter?.expression && !this.allowEmpty && (this._richExpression = l?.[0]?.id, this.filter = {
|
|
510
501
|
...this.filter,
|
|
511
502
|
expression: this._richExpression
|
|
512
503
|
}, this._sendChangeEvent());
|
|
513
504
|
}
|
|
514
505
|
render() {
|
|
515
|
-
|
|
516
|
-
const i = (o = k(
|
|
506
|
+
const s = m(
|
|
517
507
|
this.type,
|
|
518
508
|
this.subtype,
|
|
519
509
|
this.isFormula
|
|
520
|
-
)
|
|
521
|
-
value:
|
|
522
|
-
label:
|
|
523
|
-
shortLabel:
|
|
524
|
-
})),
|
|
510
|
+
)?.map((o) => ({
|
|
511
|
+
value: o.id,
|
|
512
|
+
label: o.description,
|
|
513
|
+
shortLabel: o.tiny
|
|
514
|
+
})), t = this.disabled || !this.filter?.expression && !this.allowEmpty, r = f`<luzmo-field-label
|
|
525
515
|
for="expression"
|
|
526
516
|
size=${this.size}
|
|
527
517
|
>${this.label ?? e("Select an expression", {
|
|
528
518
|
desc: "Label for expression picker"
|
|
529
519
|
})}</luzmo-field-label
|
|
530
520
|
>`;
|
|
531
|
-
return
|
|
521
|
+
return f`${this.hasLabel ? r : ""}
|
|
532
522
|
<luzmo-select
|
|
533
523
|
label=${this.placeholder ?? e("Select...")}
|
|
534
524
|
id="expression"
|
|
@@ -536,62 +526,62 @@ let a = class extends E(z, {
|
|
|
536
526
|
variant="highlight"
|
|
537
527
|
selects="single"
|
|
538
528
|
.language=${this.language}
|
|
539
|
-
?disabled=${
|
|
529
|
+
?disabled=${t}
|
|
540
530
|
?invalid=${this.invalid}
|
|
541
|
-
.options=${
|
|
531
|
+
.options=${s}
|
|
542
532
|
.value=${[this._richExpression]}
|
|
543
533
|
@change=${this.setExpression}
|
|
544
534
|
>
|
|
545
535
|
</luzmo-select>`;
|
|
546
536
|
}
|
|
547
537
|
};
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
],
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
],
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
],
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
],
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
],
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
],
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
],
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
],
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
],
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
],
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
],
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
],
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
],
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
],
|
|
538
|
+
n([
|
|
539
|
+
p({ type: String, reflect: !0 })
|
|
540
|
+
], i.prototype, "language", 2);
|
|
541
|
+
n([
|
|
542
|
+
p({ type: String, reflect: !0 })
|
|
543
|
+
], i.prototype, "filter", 2);
|
|
544
|
+
n([
|
|
545
|
+
p({ type: Boolean, attribute: "has-label", reflect: !0 })
|
|
546
|
+
], i.prototype, "hasLabel", 2);
|
|
547
|
+
n([
|
|
548
|
+
p({ type: String, reflect: !0 })
|
|
549
|
+
], i.prototype, "label", 2);
|
|
550
|
+
n([
|
|
551
|
+
p({ type: Boolean, attribute: "allow-empty", reflect: !0 })
|
|
552
|
+
], i.prototype, "allowEmpty", 2);
|
|
553
|
+
n([
|
|
554
|
+
p({ type: String, attribute: "placeholder", reflect: !0 })
|
|
555
|
+
], i.prototype, "placeholder", 2);
|
|
556
|
+
n([
|
|
557
|
+
p({ type: Boolean, attribute: "disabled", reflect: !0 })
|
|
558
|
+
], i.prototype, "disabled", 2);
|
|
559
|
+
n([
|
|
560
|
+
p({ type: String, attribute: "type", reflect: !0 })
|
|
561
|
+
], i.prototype, "type", 2);
|
|
562
|
+
n([
|
|
563
|
+
p({ type: String, attribute: "subtype", reflect: !0 })
|
|
564
|
+
], i.prototype, "subtype", 2);
|
|
565
|
+
n([
|
|
566
|
+
p({ type: Boolean, attribute: "invalid", reflect: !0 })
|
|
567
|
+
], i.prototype, "invalid", 2);
|
|
568
|
+
n([
|
|
569
|
+
p({ type: Boolean, attribute: "is-formula", reflect: !0 })
|
|
570
|
+
], i.prototype, "isFormula", 2);
|
|
571
|
+
n([
|
|
572
|
+
x()
|
|
573
|
+
], i.prototype, "_richExpression", 2);
|
|
574
|
+
n([
|
|
575
|
+
x()
|
|
576
|
+
], i.prototype, "_unit", 2);
|
|
577
|
+
i = n([
|
|
578
|
+
b()
|
|
579
|
+
], i);
|
|
590
580
|
customElements.get("luzmo-filter-expression-picker") || customElements.define(
|
|
591
581
|
"luzmo-filter-expression-picker",
|
|
592
|
-
|
|
582
|
+
i
|
|
593
583
|
);
|
|
594
584
|
export {
|
|
595
|
-
|
|
596
|
-
|
|
585
|
+
i as L,
|
|
586
|
+
m as g
|
|
597
587
|
};
|