@luzmo/analytics-components-kit 1.0.1-alpha.98 → 1.0.1-alpha.99
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 +2 -2
- package/angular/components/ai-interaction-textarea.component.ts +8 -0
- package/angular/components/{filter-data-item-picker.component.ts → data-items-select.component.ts} +34 -17
- package/angular/components/edit-filters/index.ts +1 -0
- package/angular/components/edit-filters/types.ts +10 -0
- package/angular/components/edit-filters.component.ts +41 -0
- package/angular/components/slot-contents-picker.component.ts +8 -6
- package/angular/esm/components/ai-interaction-textarea.component.d.ts +5 -1
- package/angular/esm/components/ai-interaction-textarea.component.js +22 -2
- package/angular/esm/components/data-items-select.component.d.ts +33 -0
- package/angular/esm/components/{filter-data-item-picker.component.js → data-items-select.component.js} +41 -26
- package/angular/esm/components/edit-filters/index.d.ts +1 -0
- package/angular/esm/components/edit-filters/index.js +1 -0
- package/angular/esm/components/edit-filters/types.d.ts +8 -0
- package/angular/esm/components/edit-filters/types.js +1 -0
- package/angular/esm/components/edit-filters.component.d.ts +21 -0
- package/angular/esm/components/edit-filters.component.js +89 -0
- package/angular/esm/components/slot-contents-picker.component.d.ts +7 -6
- package/angular/esm/components/slot-contents-picker.component.js +11 -6
- package/angular/esm/index.d.ts +5 -5
- package/angular/esm/index.js +6 -6
- package/angular/esm/types.d.ts +9 -0
- package/angular/index.ts +6 -6
- package/angular/types.ts +17 -0
- package/angular/utils/filters/expressions.d.ts +1 -1
- 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/ai-interaction-textarea.d.ts +21 -0
- package/components/ai-interaction-textarea/index.cjs +17 -15
- package/components/ai-interaction-textarea/index.js +91 -67
- 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/{filter-data-item-picker/filter-data-item-picker.d.ts → data-items-select/data-items-select.d.ts} +36 -21
- package/components/data-items-select/index.cjs +39 -0
- package/components/data-items-select/index.d.ts +6 -0
- package/components/data-items-select/index.js +209 -0
- 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/{de-COKGBX9L.cjs → de-DOYL4txr.cjs} +1 -1
- package/components/{de-DU0DlXuf.js → de-SDzGVifr.js} +10 -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 +190 -206
- 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 +174 -265
- package/components/edit-filters/edit-filters.d.ts +79 -0
- package/components/edit-filters/index.cjs +144 -0
- package/components/edit-filters/index.d.ts +8 -0
- package/components/edit-filters/index.js +341 -0
- package/components/edit-filters/types.d.ts +8 -0
- 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/{es-BxR1uGKR.js → es-B1TeapPZ.js} +10 -1
- package/components/{es-CaKfa7fn.cjs → es-DcQvrHgz.cjs} +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-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/filter-item.d.ts +1 -1
- package/components/filter-item/index.cjs +9 -7
- package/components/filter-item/index.js +123 -123
- 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 +9 -8
- package/components/filter-value-picker-numeric/index.js +102 -110
- package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
- package/components/focusable-QLh-LlNt.cjs +20 -0
- package/components/{fr-DiZbjx_a.cjs → fr-D6QmA3Ve.cjs} +1 -1
- package/components/{fr-CvltYxR_.js → fr-sZFBmltf.js} +10 -1
- 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-C0B_Sxqf.cjs +24 -0
- package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-DgTBQV3c.js} +39 -38
- 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-BekTY3Em.cjs +121 -0
- package/components/index-BikhVAa1.js +1755 -0
- package/components/index-CAbDIHYI.cjs +20 -0
- package/components/{index-Do7O9azB.js → index-CqKpf0B8.js} +112 -123
- package/components/{index-BPNsFiyq.cjs → index-DM58h73U.cjs} +4 -4
- package/components/{index-D0GBF6tg.js → index-DR5275fa.js} +122 -102
- 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 +105 -106
- 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/{nl-CLs7FmRK.js → nl-BYXZ-qNp.js} +10 -1
- package/components/{nl-Bot6bJ4g.cjs → nl-D7oNsLn0.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-B5562CBM.js} +2 -9
- package/components/{set-locale-BRRalqne.cjs → set-locale-B8iQGfk0.cjs} +1 -1
- 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 +35 -31
- package/components/slot-contents-picker/index.js +202 -200
- package/components/slot-contents-picker/slot-contents-picker.d.ts +26 -5
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.js +189 -202
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +97 -103
- package/components/slot-store-CRfN0nD3.js +98 -0
- package/components/slot-store-Dd_cPNXk.cjs +20 -0
- 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 +5 -5
- package/components/viz-item-menu/index.js +26 -28
- 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 +1936 -1625
- package/index.d.ts +1 -1
- package/package.json +12 -12
- package/types.d.ts +9 -0
- package/utils/filters/expressions.d.ts +1 -1
- package/angular/components/filter-group.component.ts +0 -29
- package/angular/esm/components/filter-data-item-picker.component.d.ts +0 -30
- package/angular/esm/components/filter-group.component.d.ts +0 -12
- package/angular/esm/components/filter-group.component.js +0 -56
- 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/filter-data-item-picker/index.cjs +0 -47
- package/components/filter-data-item-picker/index.d.ts +0 -7
- package/components/filter-data-item-picker/index.js +0 -192
- package/components/filter-group/filter-group.d.ts +0 -26
- package/components/filter-group/index.d.ts +0 -7
- package/components/focusable-B3E_hQmm.cjs +0 -20
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
- 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/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
|
@@ -20,11 +20,11 @@
|
|
|
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
|
|
23
|
+
import { unsafeCSS as y, html as h } from "lit";
|
|
24
|
+
import { msg as e, localized as g } from "@lit/localize";
|
|
25
|
+
import { SizedMixin as b, LuzmoElement as _, ElementSizes as F } from "@luzmo/lucero/utils";
|
|
26
|
+
import { property as p, state as x } from "lit/decorators.js";
|
|
27
|
+
import { g as w, t as k, s as S } from "./set-locale-B5562CBM.js";
|
|
28
28
|
const m = () => [
|
|
29
29
|
{
|
|
30
30
|
id: "? = ?",
|
|
@@ -328,6 +328,36 @@ const m = () => [
|
|
|
328
328
|
}),
|
|
329
329
|
type: ["datetime"]
|
|
330
330
|
},
|
|
331
|
+
{
|
|
332
|
+
id: "more_than_ago",
|
|
333
|
+
key: "more_than_ago",
|
|
334
|
+
expression: "more_than_ago",
|
|
335
|
+
name: e("more than (x) periods ago", {
|
|
336
|
+
desc: "Filter expression for more than (x) periods ago"
|
|
337
|
+
}),
|
|
338
|
+
description: e("more than (x) periods ago", {
|
|
339
|
+
desc: "Filter expression for more than (x) periods ago"
|
|
340
|
+
}),
|
|
341
|
+
tiny: e("more than ago", {
|
|
342
|
+
desc: "Short form of more than (x) periods ago in filter expression"
|
|
343
|
+
}),
|
|
344
|
+
type: ["datetime"]
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
id: "or_more_ago",
|
|
348
|
+
key: "or_more_ago",
|
|
349
|
+
expression: "or_more_ago",
|
|
350
|
+
name: e("(x) periods or more ago", {
|
|
351
|
+
desc: "Filter expression for (x) periods or more ago"
|
|
352
|
+
}),
|
|
353
|
+
description: e("(x) periods or more ago", {
|
|
354
|
+
desc: "Filter expression for (x) periods or more ago"
|
|
355
|
+
}),
|
|
356
|
+
tiny: e("or more ago", {
|
|
357
|
+
desc: "Short form of (x) periods or more ago in filter expression"
|
|
358
|
+
}),
|
|
359
|
+
type: ["datetime"]
|
|
360
|
+
},
|
|
331
361
|
{
|
|
332
362
|
id: "next_full",
|
|
333
363
|
key: "next_full",
|
|
@@ -439,96 +469,86 @@ const m = () => [
|
|
|
439
469
|
type: ["numeric", "datetime", "hierarchy", "spatial"],
|
|
440
470
|
subtype: ["ip_address"]
|
|
441
471
|
}
|
|
442
|
-
],
|
|
472
|
+
], f = (s, t, r) => {
|
|
443
473
|
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;
|
|
474
|
+
return !s && !t ? m() : m().filter((a) => (s && a.type.includes(s) || t && a.subtype?.includes(t)) && !(r && o.has(a.key)));
|
|
475
|
+
}, v = ":host{font-family:var(--luzmo-font-family)}:host{--var: blue}";
|
|
476
|
+
var E = Object.defineProperty, q = Object.getOwnPropertyDescriptor, n = (s, t, r, o) => {
|
|
477
|
+
for (var a = o > 1 ? void 0 : o ? q(t, r) : t, d = s.length - 1, l; d >= 0; d--)
|
|
478
|
+
(l = s[d]) && (a = (o ? l(t, r, a) : l(a)) || a);
|
|
479
|
+
return o && a && E(t, r, a), a;
|
|
453
480
|
};
|
|
454
|
-
let
|
|
455
|
-
validSizes: Object.values(
|
|
481
|
+
let i = class extends b(_, {
|
|
482
|
+
validSizes: Object.values(F)
|
|
456
483
|
}) {
|
|
457
484
|
constructor() {
|
|
458
485
|
super(...arguments), this.language = "en", this.hasLabel = !1, this.allowEmpty = !1, this.placeholder = "", this.disabled = !1, this.invalid = !1, this.isFormula = !1, this._expressionConfigurations = m();
|
|
459
486
|
}
|
|
460
487
|
static get styles() {
|
|
461
|
-
return [v
|
|
488
|
+
return [y(v)];
|
|
462
489
|
}
|
|
463
490
|
_sendChangeEvent() {
|
|
464
|
-
var s, r, o, t, n, l, c;
|
|
465
491
|
if (this.disabled) return;
|
|
466
|
-
const
|
|
467
|
-
expression:
|
|
492
|
+
const s = {
|
|
493
|
+
expression: this.filter?.expression
|
|
468
494
|
};
|
|
469
|
-
|
|
495
|
+
this.filter?.parameters?.[1]?.unit && (s.unit = this.filter?.parameters?.[1]?.unit), this.dispatchEvent(
|
|
470
496
|
new CustomEvent("expression-selected", {
|
|
471
497
|
bubbles: !0,
|
|
472
498
|
composed: !0,
|
|
473
499
|
cancelable: !0,
|
|
474
|
-
detail:
|
|
500
|
+
detail: s
|
|
475
501
|
})
|
|
476
502
|
);
|
|
477
503
|
}
|
|
478
|
-
setExpression(
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
(n) => n.id === this._richExpression
|
|
504
|
+
setExpression(s) {
|
|
505
|
+
this._richExpression = s?.detail?.value?.[0];
|
|
506
|
+
const t = this._expressionConfigurations.find(
|
|
507
|
+
(o) => o.id === this._richExpression
|
|
483
508
|
), r = structuredClone(this.filter);
|
|
484
|
-
r.expression =
|
|
509
|
+
r.expression = t?.expression, t?.unit && (this._unit = t.unit, r?.parameters[0] && (r.parameters[1] = {
|
|
485
510
|
unit: this._unit
|
|
486
511
|
})), this.filter = r, this._sendChangeEvent();
|
|
487
512
|
}
|
|
488
|
-
willUpdate(
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
const l = k(
|
|
513
|
+
willUpdate(s) {
|
|
514
|
+
const t = s.has("language"), r = s.has("filter"), o = s.has("type"), a = s.has("subtype"), d = s.has("isFormula");
|
|
515
|
+
t && this.language !== w() && ([...k].includes(this.language ?? "en") || this.language === "en") && S(this.language);
|
|
516
|
+
const l = f(
|
|
493
517
|
this.type,
|
|
494
518
|
this.subtype,
|
|
495
519
|
this.isFormula
|
|
496
|
-
),
|
|
497
|
-
if (
|
|
498
|
-
const
|
|
499
|
-
this._unit =
|
|
520
|
+
), u = ["YTD", "QTD", "MTD", "WTD"];
|
|
521
|
+
if (this.filter?.expression === "to_date") {
|
|
522
|
+
const c = this.filter?.parameters[1]?.unit ?? 1;
|
|
523
|
+
this._unit = c, this._richExpression = u[c - 1] ?? "YTD";
|
|
500
524
|
} 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 = {
|
|
525
|
+
this._richExpression = this.filter?.expression;
|
|
526
|
+
(o || a || d || r) && this.filter && !this.disabled && !l?.find(
|
|
527
|
+
(c) => c.expression === this.filter?.expression
|
|
528
|
+
) ? (this.invalid = !0, console.warn(
|
|
529
|
+
`Warning: ${this.filter?.expression} is not valid given the type: ${this.type} and subtype: ${this.subtype}`
|
|
530
|
+
)) : this.invalid = !1, !this.filter?.expression && !this.allowEmpty && (this._richExpression = l?.[0]?.id, this.filter = {
|
|
510
531
|
...this.filter,
|
|
511
532
|
expression: this._richExpression
|
|
512
533
|
}, this._sendChangeEvent());
|
|
513
534
|
}
|
|
514
535
|
render() {
|
|
515
|
-
|
|
516
|
-
const i = (o = k(
|
|
536
|
+
const s = f(
|
|
517
537
|
this.type,
|
|
518
538
|
this.subtype,
|
|
519
539
|
this.isFormula
|
|
520
|
-
)
|
|
521
|
-
value:
|
|
522
|
-
label:
|
|
523
|
-
shortLabel:
|
|
524
|
-
})),
|
|
540
|
+
)?.map((o) => ({
|
|
541
|
+
value: o.id,
|
|
542
|
+
label: o.description,
|
|
543
|
+
shortLabel: o.tiny
|
|
544
|
+
})), t = this.disabled || !this.filter?.expression && !this.allowEmpty, r = h`<luzmo-field-label
|
|
525
545
|
for="expression"
|
|
526
546
|
size=${this.size}
|
|
527
547
|
>${this.label ?? e("Select an expression", {
|
|
528
548
|
desc: "Label for expression picker"
|
|
529
549
|
})}</luzmo-field-label
|
|
530
550
|
>`;
|
|
531
|
-
return
|
|
551
|
+
return h`${this.hasLabel ? r : ""}
|
|
532
552
|
<luzmo-select
|
|
533
553
|
label=${this.placeholder ?? e("Select...")}
|
|
534
554
|
id="expression"
|
|
@@ -536,62 +556,62 @@ let a = class extends E(z, {
|
|
|
536
556
|
variant="highlight"
|
|
537
557
|
selects="single"
|
|
538
558
|
.language=${this.language}
|
|
539
|
-
?disabled=${
|
|
559
|
+
?disabled=${t}
|
|
540
560
|
?invalid=${this.invalid}
|
|
541
|
-
.options=${
|
|
561
|
+
.options=${s}
|
|
542
562
|
.value=${[this._richExpression]}
|
|
543
563
|
@change=${this.setExpression}
|
|
544
564
|
>
|
|
545
565
|
</luzmo-select>`;
|
|
546
566
|
}
|
|
547
567
|
};
|
|
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
|
-
],
|
|
568
|
+
n([
|
|
569
|
+
p({ type: String, reflect: !0 })
|
|
570
|
+
], i.prototype, "language", 2);
|
|
571
|
+
n([
|
|
572
|
+
p({ type: String, reflect: !0 })
|
|
573
|
+
], i.prototype, "filter", 2);
|
|
574
|
+
n([
|
|
575
|
+
p({ type: Boolean, attribute: "has-label", reflect: !0 })
|
|
576
|
+
], i.prototype, "hasLabel", 2);
|
|
577
|
+
n([
|
|
578
|
+
p({ type: String, reflect: !0 })
|
|
579
|
+
], i.prototype, "label", 2);
|
|
580
|
+
n([
|
|
581
|
+
p({ type: Boolean, attribute: "allow-empty", reflect: !0 })
|
|
582
|
+
], i.prototype, "allowEmpty", 2);
|
|
583
|
+
n([
|
|
584
|
+
p({ type: String, attribute: "placeholder", reflect: !0 })
|
|
585
|
+
], i.prototype, "placeholder", 2);
|
|
586
|
+
n([
|
|
587
|
+
p({ type: Boolean, attribute: "disabled", reflect: !0 })
|
|
588
|
+
], i.prototype, "disabled", 2);
|
|
589
|
+
n([
|
|
590
|
+
p({ type: String, attribute: "type", reflect: !0 })
|
|
591
|
+
], i.prototype, "type", 2);
|
|
592
|
+
n([
|
|
593
|
+
p({ type: String, attribute: "subtype", reflect: !0 })
|
|
594
|
+
], i.prototype, "subtype", 2);
|
|
595
|
+
n([
|
|
596
|
+
p({ type: Boolean, attribute: "invalid", reflect: !0 })
|
|
597
|
+
], i.prototype, "invalid", 2);
|
|
598
|
+
n([
|
|
599
|
+
p({ type: Boolean, attribute: "is-formula", reflect: !0 })
|
|
600
|
+
], i.prototype, "isFormula", 2);
|
|
601
|
+
n([
|
|
602
|
+
x()
|
|
603
|
+
], i.prototype, "_richExpression", 2);
|
|
604
|
+
n([
|
|
605
|
+
x()
|
|
606
|
+
], i.prototype, "_unit", 2);
|
|
607
|
+
i = n([
|
|
608
|
+
g()
|
|
609
|
+
], i);
|
|
590
610
|
customElements.get("luzmo-filter-expression-picker") || customElements.define(
|
|
591
611
|
"luzmo-filter-expression-picker",
|
|
592
|
-
|
|
612
|
+
i
|
|
593
613
|
);
|
|
594
614
|
export {
|
|
595
|
-
|
|
596
|
-
|
|
615
|
+
i as L,
|
|
616
|
+
f as g
|
|
597
617
|
};
|