@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
|
@@ -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
|
-
import { unsafeCSS as
|
|
21
|
-
import { localized as
|
|
22
|
-
import { SizedMixin as
|
|
23
|
-
import { g as
|
|
24
|
-
import { d as
|
|
25
|
-
import { property as
|
|
26
|
-
import { g as
|
|
27
|
-
import "../
|
|
20
|
+
import { unsafeCSS as f, html as d } from "lit";
|
|
21
|
+
import { localized as g } from "@lit/localize";
|
|
22
|
+
import { SizedMixin as z, LuzmoElement as b, ElementSizes as y } from "@luzmo/lucero/utils";
|
|
23
|
+
import { g as x, t as v, s as _ } from "../set-locale-B5562CBM.js";
|
|
24
|
+
import { d as h } from "../index-BikhVAa1.js";
|
|
25
|
+
import { property as n, state as m } from "lit/decorators.js";
|
|
26
|
+
import { g as I } from "../index-DR5275fa.js";
|
|
27
|
+
import "../data-items-select/index.js";
|
|
28
28
|
import "../filter-value-picker/index.js";
|
|
29
29
|
(function() {
|
|
30
30
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
@@ -32,25 +32,25 @@ import "../filter-value-picker/index.js";
|
|
|
32
32
|
e.setAttribute("data-luzmo-vars", ""), e.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(e);
|
|
33
33
|
}
|
|
34
34
|
})();
|
|
35
|
-
const
|
|
36
|
-
var
|
|
37
|
-
for (var
|
|
38
|
-
(
|
|
39
|
-
return
|
|
35
|
+
const k = ":host{display:flex;flex-direction:row;gap:var(--luzmo-filter-item-gap, var(--filter-item-gap));min-width:0;max-width:100%}luzmo-data-items-select{flex-shrink:1;min-width:0}luzmo-filter-value-picker{flex-shrink:2;min-width:0}:host{--filter-item-gap: var(--luzmo-spacing-3)}:host([size=s]){--filter-item-gap: var(--luzmo-spacing-2)}:host([size=m]){--filter-item-gap: var(--luzmo-spacing-3)}:host([size=l]){--filter-item-gap: calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1))}:host([size=xl]){--filter-item-gap: var(--luzmo-spacing-4)}";
|
|
36
|
+
var w = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, i = (t, e, s, r) => {
|
|
37
|
+
for (var a = r > 1 ? void 0 : r ? $(e, s) : e, l = t.length - 1, c; l >= 0; l--)
|
|
38
|
+
(c = t[l]) && (a = (r ? c(e, s, a) : c(a)) || a);
|
|
39
|
+
return r && a && w(e, s, a), a;
|
|
40
40
|
};
|
|
41
|
-
let
|
|
42
|
-
validSizes: Object.values(
|
|
41
|
+
let o = class extends z(b, {
|
|
42
|
+
validSizes: Object.values(y)
|
|
43
43
|
}) {
|
|
44
44
|
constructor() {
|
|
45
45
|
super(...arguments), this.apiUrl = "https://api.luzmo.com", this.language = "en", this.contentLanguage = "en", this.filter = {}, this._loading = !1, this._datasetsDataItems = [];
|
|
46
46
|
}
|
|
47
47
|
static get styles() {
|
|
48
|
-
return [
|
|
48
|
+
return [f(k)];
|
|
49
49
|
}
|
|
50
50
|
connectedCallback() {
|
|
51
51
|
super.connectedCallback();
|
|
52
52
|
const t = {};
|
|
53
|
-
this.apiUrl && (t.apiUrl = this.apiUrl), this.cacheTime && (t.staleTime = this.cacheTime, t.gcTime = this.cacheTime * 2),
|
|
53
|
+
this.apiUrl && (t.apiUrl = this.apiUrl), this.cacheTime && (t.staleTime = this.cacheTime, t.gcTime = this.cacheTime * 2), t.authKey = this.authKey || "", t.authToken = this.authToken || "", h.configure(t);
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Fetches hierarchy values from the databroker
|
|
@@ -62,12 +62,12 @@ let l = class extends K(V, {
|
|
|
62
62
|
}
|
|
63
63
|
this._loading = !0, this._error = null;
|
|
64
64
|
try {
|
|
65
|
-
const t = await
|
|
65
|
+
const t = await h.fetchDatasetsWithColumnsAndFormulas(
|
|
66
66
|
this.datasetIds
|
|
67
67
|
);
|
|
68
68
|
for (const e of t)
|
|
69
|
-
for (const
|
|
70
|
-
|
|
69
|
+
for (const s of [...e.columns, ...e.formulas])
|
|
70
|
+
s.datasetId = e.id;
|
|
71
71
|
this._datasetsDataItems = t;
|
|
72
72
|
} catch (t) {
|
|
73
73
|
console.error("Error fetching dataset columns & formulas:", t), this._error = t instanceof Error ? t.message : "Unknown error", this._datasetsDataItems = [];
|
|
@@ -76,27 +76,30 @@ let l = class extends K(V, {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
willUpdate(t) {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
(m) => {
|
|
84
|
-
var D, w;
|
|
85
|
-
return m.id === ((w = (D = this.filter.parameters) == null ? void 0 : D[0]) == null ? void 0 : w.datasetId);
|
|
86
|
-
}
|
|
79
|
+
const e = t.has("filter"), s = t.has("language"), r = t.has("datasetIds"), a = t.has("authKey"), l = t.has("authToken"), c = t.has("_datasetsDataItems");
|
|
80
|
+
if (s && this.language !== x() && ([...v].includes(this.language ?? "en") || this.language === "en") && _(this.language), e || r || c && this.filter?.parameters?.[0]?.columnId && (this.filter?.parameters?.[0]?.datasetId || this.filter?.parameters?.[0]?.formulaId)) {
|
|
81
|
+
const p = this._datasetsDataItems.find(
|
|
82
|
+
(u) => u.id === this.filter.parameters?.[0]?.datasetId
|
|
87
83
|
);
|
|
88
|
-
if (
|
|
89
|
-
for (const
|
|
90
|
-
...
|
|
91
|
-
...
|
|
84
|
+
if (p) {
|
|
85
|
+
for (const u of [
|
|
86
|
+
...p.columns || [],
|
|
87
|
+
...p?.formulas || []
|
|
92
88
|
])
|
|
93
|
-
if (
|
|
94
|
-
this._type =
|
|
89
|
+
if (u.id === this.filter.parameters?.[0]?.columnId || u.id === this.filter.parameters?.[0]?.formulaId) {
|
|
90
|
+
this._type = u.type, this._subType = u.subtype, this._isFormula = u.id === this.filter.parameters?.[0]?.formulaId;
|
|
95
91
|
break;
|
|
96
92
|
}
|
|
97
93
|
}
|
|
98
94
|
}
|
|
99
|
-
|
|
95
|
+
if (a || l) {
|
|
96
|
+
const p = {
|
|
97
|
+
authKey: this.authKey || "",
|
|
98
|
+
authToken: this.authToken || ""
|
|
99
|
+
};
|
|
100
|
+
h.configure(p);
|
|
101
|
+
}
|
|
102
|
+
(r || a || l) && this._fetchDatasetDataItems();
|
|
100
103
|
}
|
|
101
104
|
_sendChangeEvent() {
|
|
102
105
|
this.dispatchEvent(
|
|
@@ -111,77 +114,75 @@ let l = class extends K(V, {
|
|
|
111
114
|
);
|
|
112
115
|
}
|
|
113
116
|
setFilterDataItem(t) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
const r = B(
|
|
117
|
+
const e = t.detail?.dataItems?.[0], s = this._type, r = this.filter?.parameters?.[0]?.columnId || this.filter?.parameters?.[0]?.formulaId, a = e?.columnId || e?.formulaId;
|
|
118
|
+
this._type = e?.type, this._subType = e?.subtype, this._isFormula = !!e?.formulaId;
|
|
119
|
+
const l = I(
|
|
118
120
|
this._type,
|
|
119
121
|
this._subType,
|
|
120
122
|
this._isFormula
|
|
121
123
|
);
|
|
122
|
-
this.filter = structuredClone(this.filter ?? {}),
|
|
123
|
-
datasetId:
|
|
124
|
-
}, this._isFormula ? this.filter.parameters[0].formulaId =
|
|
124
|
+
this.filter = structuredClone(this.filter ?? {}), l?.includes(this.filter?.expression) || (this.filter.expression = l?.[0]?.expression), this.filter.parameters = this.filter?.parameters ?? [], this.filter.parameters[0] = {
|
|
125
|
+
datasetId: e?.datasetId
|
|
126
|
+
}, this._isFormula ? this.filter.parameters[0].formulaId = e?.formulaId : this.filter.parameters[0].columnId = e?.columnId, e?.lowestLevel, s !== this._type ? this._type === "hierarchy" ? (this.filter.expression = "? like ?", this.filter.parameters[1] = "") : this._type === "numeric" ? (this.filter.expression = "? > ?", this.filter.parameters[1] = 0) : this._type === "datetime" ? (this.filter.expression = "? < ?", this.filter.parameters[1] = (/* @__PURE__ */ new Date()).toISOString()) : (this.filter.expression = "? is not null", this.filter.parameters = [this.filter.parameters[0]]) : (
|
|
125
127
|
// if same type and type is hierarchy but different column, reset the value
|
|
126
|
-
|
|
128
|
+
r !== a && this._type === "hierarchy" && (this.filter.parameters[1] = ["? in ?", "? not in ?"].includes(
|
|
127
129
|
this.filter.expression
|
|
128
130
|
) ? [] : "")
|
|
129
131
|
), this._sendChangeEvent();
|
|
130
132
|
}
|
|
131
133
|
setFilterExpression(t) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
if (e.expression = (i = t.detail) == null ? void 0 : i.expression, o !== e.expression) {
|
|
134
|
+
const e = structuredClone(this.filter ?? {}), s = e.expression;
|
|
135
|
+
if (e.expression = t.detail?.expression, s !== e.expression) {
|
|
135
136
|
if (["? is null", "? is not null"].includes(e.expression))
|
|
136
137
|
e.parameters = [e.parameters[0]];
|
|
137
138
|
else if (this._type === "datetime")
|
|
138
139
|
if (["YTD", "QTD", "MTD", "WTD"].includes(e.expression)) {
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
unit: typeof
|
|
140
|
+
const r = t?.detail?.unit;
|
|
141
|
+
r && (e.parameters[1] = {
|
|
142
|
+
unit: typeof r == "number" ? r : 1
|
|
142
143
|
});
|
|
143
144
|
} else if (["last_completed", "next_full", "to_date"].includes(e.expression)) {
|
|
144
|
-
const
|
|
145
|
+
const r = e?.parameters?.[1]?.unit;
|
|
145
146
|
e.parameters[1] = {
|
|
146
|
-
unit: typeof
|
|
147
|
+
unit: typeof r == "number" ? r : 1
|
|
147
148
|
};
|
|
148
|
-
} else if (["last_now", "last_available", "next_now"].includes(e.expression)) {
|
|
149
|
-
const
|
|
149
|
+
} else if (["last_now", "last_available", "next_now", "more_than_ago", "or_more_ago"].includes(e.expression)) {
|
|
150
|
+
const r = e?.parameters?.[1]?.unit, a = e?.parameters?.[1]?.quantity;
|
|
150
151
|
e.parameters[1] = {
|
|
151
|
-
unit: typeof
|
|
152
|
-
quantity: typeof
|
|
152
|
+
unit: typeof r == "number" ? r : 1,
|
|
153
|
+
quantity: typeof a == "number" ? a : 1
|
|
153
154
|
};
|
|
154
155
|
} else
|
|
155
156
|
e.parameters[1] = (/* @__PURE__ */ new Date()).toISOString();
|
|
156
|
-
else this._type === "hierarchy" ? ["? in ?", "? not in ?"].includes(e.expression) ? ["? = ?", "? != ?"].includes(
|
|
157
|
-
|
|
158
|
-
) ? "" : e.parameters[1] ?? "" : this._type === "numeric" && (["? in ?", "? not in ?"].includes(e.expression) && ["? in ?", "? not in ?"].includes(
|
|
159
|
-
|
|
157
|
+
else this._type === "hierarchy" ? ["? in ?", "? not in ?"].includes(e.expression) ? ["? = ?", "? != ?"].includes(s) ? e.parameters[1] = e.parameters[1] ? [e.parameters[1]] : [] : e.parameters[1] = [] : ["? = ?", "? != ?"].includes(e.expression) ? ["? in ?", "? not in ?"].includes(s) ? e.parameters[1] = Array.isArray(e.parameters[1]) && e.parameters[1][0] ? e.parameters[1][0] : "" : e.parameters[1] = "" : e.parameters[1] = ["? in ?", "? not in ?"].includes(
|
|
158
|
+
s
|
|
159
|
+
) ? "" : e.parameters[1] ?? "" : this._type === "numeric" && (["? in ?", "? not in ?"].includes(e.expression) && ["? in ?", "? not in ?"].includes(s) ? e.parameters[1] = e.parameters[1] ?? [] : ["? in ?", "? not in ?"].includes(e.expression) ? e.parameters[1] = [] : e.parameters[1] = ["? in ?", "? not in ?"].includes(
|
|
160
|
+
s
|
|
160
161
|
) ? 0 : e.parameters[1] ?? 0);
|
|
161
162
|
this.filter = e, this._sendChangeEvent();
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
165
|
setFilterValue(t) {
|
|
165
|
-
|
|
166
|
-
this.filter.parameters[1] = (e = t == null ? void 0 : t.detail) == null ? void 0 : e.value, this._sendChangeEvent();
|
|
166
|
+
this.filter.parameters[1] = t?.detail?.value, this._sendChangeEvent();
|
|
167
167
|
}
|
|
168
168
|
renderDataItemPicker() {
|
|
169
|
-
|
|
170
|
-
return
|
|
169
|
+
const t = this._loading ? "" : this.filter?.parameters?.[0]?.columnId || this.filter?.parameters?.[0]?.formulaId;
|
|
170
|
+
return d`<luzmo-data-items-select
|
|
171
171
|
.language=${this.language}
|
|
172
172
|
.contentLanguage=${this.contentLanguage}
|
|
173
173
|
.size=${this.size}
|
|
174
|
-
.
|
|
174
|
+
.dataItemIds=${t ? [t] : []}
|
|
175
|
+
selects="single"
|
|
175
176
|
.datasetsDataItems=${this._datasetsDataItems}
|
|
176
177
|
.invalid=${!!this._error}
|
|
177
178
|
.loading=${this._loading}
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
.pending=${this._loading}
|
|
180
|
+
@data-items-selected=${this.setFilterDataItem}
|
|
181
|
+
></luzmo-data-items-select>`;
|
|
180
182
|
}
|
|
181
183
|
renderExpressionPicker() {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
return T`<luzmo-filter-expression-picker
|
|
184
|
+
const t = !this.filter?.parameters?.[0]?.datasetId || !this.filter?.parameters?.[0]?.columnId;
|
|
185
|
+
return d`<luzmo-filter-expression-picker
|
|
185
186
|
.language=${this.language}
|
|
186
187
|
.size=${this.size}
|
|
187
188
|
.type=${this._type}
|
|
@@ -193,9 +194,8 @@ let l = class extends K(V, {
|
|
|
193
194
|
></luzmo-filter-expression-picker>`;
|
|
194
195
|
}
|
|
195
196
|
renderValuePicker() {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
return T`<luzmo-filter-value-picker
|
|
197
|
+
const t = !this.filter?.parameters?.[0]?.datasetId || !this.filter?.parameters?.[0]?.columnId;
|
|
198
|
+
return d`<luzmo-filter-value-picker
|
|
199
199
|
.apiUrl=${this.apiUrl}
|
|
200
200
|
.authKey=${this.authKey}
|
|
201
201
|
.authToken=${this.authToken}
|
|
@@ -211,59 +211,59 @@ let l = class extends K(V, {
|
|
|
211
211
|
></luzmo-filter-value-picker>`;
|
|
212
212
|
}
|
|
213
213
|
render() {
|
|
214
|
-
return
|
|
214
|
+
return d`${this.renderDataItemPicker()} ${this.renderExpressionPicker()}
|
|
215
215
|
${this.renderValuePicker()}`;
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
],
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
],
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
],
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
],
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
],
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
],
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
],
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
],
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
],
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
],
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
],
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
],
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
],
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
],
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
],
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
],
|
|
266
|
-
customElements.get("luzmo-filter-item") || customElements.define("luzmo-filter-item",
|
|
218
|
+
i([
|
|
219
|
+
n({ type: String, attribute: "api-url", reflect: !0 })
|
|
220
|
+
], o.prototype, "apiUrl", 2);
|
|
221
|
+
i([
|
|
222
|
+
n({ type: String, attribute: "auth-key", reflect: !0 })
|
|
223
|
+
], o.prototype, "authKey", 2);
|
|
224
|
+
i([
|
|
225
|
+
n({ type: String, attribute: "auth-token", reflect: !0 })
|
|
226
|
+
], o.prototype, "authToken", 2);
|
|
227
|
+
i([
|
|
228
|
+
n({ type: Number, attribute: "cache-time", reflect: !0 })
|
|
229
|
+
], o.prototype, "cacheTime", 2);
|
|
230
|
+
i([
|
|
231
|
+
n({ type: String, reflect: !0 })
|
|
232
|
+
], o.prototype, "language", 2);
|
|
233
|
+
i([
|
|
234
|
+
n({ type: String, reflect: !0 })
|
|
235
|
+
], o.prototype, "contentLanguage", 2);
|
|
236
|
+
i([
|
|
237
|
+
n({ type: String, attribute: "time-zone", reflect: !0 })
|
|
238
|
+
], o.prototype, "timeZone", 2);
|
|
239
|
+
i([
|
|
240
|
+
n({ type: Array, attribute: "dataset-ids", reflect: !0 })
|
|
241
|
+
], o.prototype, "datasetIds", 2);
|
|
242
|
+
i([
|
|
243
|
+
n({ type: Object, reflect: !1 })
|
|
244
|
+
], o.prototype, "filter", 2);
|
|
245
|
+
i([
|
|
246
|
+
m()
|
|
247
|
+
], o.prototype, "_type", 2);
|
|
248
|
+
i([
|
|
249
|
+
m()
|
|
250
|
+
], o.prototype, "_subType", 2);
|
|
251
|
+
i([
|
|
252
|
+
m()
|
|
253
|
+
], o.prototype, "_isFormula", 2);
|
|
254
|
+
i([
|
|
255
|
+
m()
|
|
256
|
+
], o.prototype, "_error", 2);
|
|
257
|
+
i([
|
|
258
|
+
m()
|
|
259
|
+
], o.prototype, "_loading", 2);
|
|
260
|
+
i([
|
|
261
|
+
m()
|
|
262
|
+
], o.prototype, "_datasetsDataItems", 2);
|
|
263
|
+
o = i([
|
|
264
|
+
g()
|
|
265
|
+
], o);
|
|
266
|
+
customElements.get("luzmo-filter-item") || customElements.define("luzmo-filter-item", o);
|
|
267
267
|
export {
|
|
268
|
-
|
|
268
|
+
o as LuzmoFilterItem
|
|
269
269
|
};
|
|
@@ -17,7 +17,7 @@
|
|
|
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/picker");const l=require("lit"),
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/picker");const l=require("lit"),c=require("@luzmo/lucero/utils"),r=require("lit/decorators.js"),o=require("../set-locale-B8iQGfk0.cjs");require("../filter-value-picker-datetime/index.cjs");require("../filter-value-picker-hierarchy/index.cjs");require("../filter-value-picker-numeric/index.cjs");const p=":host{--var: red}:host{--var: blue}";var g=Object.defineProperty,i=(n,e,a,m)=>{for(var u=void 0,s=n.length-1,h;s>=0;s--)(h=n[s])&&(u=h(e,a,u)||u);return u&&g(e,a,u),u};class t extends c.SizedMixin(c.LuzmoElement,{validSizes:Object.values(c.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this._expressionsWithoutValuePicker=new Set(["? is null","? is not null","to_date"])}static get styles(){return[l.unsafeCSS(p)]}_sendChangeEvent(e){this.dispatchEvent(new CustomEvent("filter-value-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e}}))}setFilterValue(e){e.stopPropagation(),this._sendChangeEvent(e?.detail?.value)}renderNumericValuePicker(){return l.html`<luzmo-filter-value-picker-numeric
|
|
21
21
|
.apiUrl=${this.apiUrl}
|
|
22
22
|
.authKey=${this.authKey}
|
|
23
23
|
.authToken=${this.authToken}
|
|
@@ -48,4 +48,4 @@
|
|
|
48
48
|
.contentLanguage=${this.contentLanguage}
|
|
49
49
|
.size=${this.size}
|
|
50
50
|
@filter-value-changed=${this.setFilterValue}
|
|
51
|
-
></luzmo-filter-value-picker-datetime>`}willUpdate(e){e.has("language")&&this.language!==
|
|
51
|
+
></luzmo-filter-value-picker-datetime>`}willUpdate(e){e.has("language")&&this.language!==o.getLocale()&&([...o.targetLocales].includes(this.language??"en")||this.language==="en")&&o.setLocale(this.language)}render(){const e=this.valueType??"",a=this.filter?.expression;return!a||this._expressionsWithoutValuePicker.has(a)||!["numeric","hierarchy","datetime"].includes(e)?l.html``:e==="numeric"?this.renderNumericValuePicker():e==="datetime"?this.renderDateTimeValuePicker():this.renderHierarchyValuePicker()}}i([r.property({type:String,attribute:"api-url",reflect:!0})],t.prototype,"apiUrl");i([r.property({type:String,attribute:"auth-key",reflect:!0})],t.prototype,"authKey");i([r.property({type:String,attribute:"auth-token",reflect:!0})],t.prototype,"authToken");i([r.property({type:Number,attribute:"cache-time",reflect:!0})],t.prototype,"cacheTime");i([r.property({type:String,reflect:!0})],t.prototype,"language");i([r.property({type:String,attribute:"content-language",reflect:!0})],t.prototype,"contentLanguage");i([r.property({type:String,attribute:"time-zone",reflect:!0})],t.prototype,"timeZone");i([r.property({type:String,attribute:"value-type",reflect:!0})],t.prototype,"valueType");i([r.property({type:Object,reflect:!1})],t.prototype,"filter");customElements.get("luzmo-filter-value-picker")||customElements.define("luzmo-filter-value-picker",t);exports.LuzmoFilterValuePicker=t;
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
20
|
import "@luzmo/lucero/picker";
|
|
21
|
-
import { unsafeCSS as
|
|
22
|
-
import { SizedMixin as
|
|
23
|
-
import { property as
|
|
24
|
-
import { g as
|
|
21
|
+
import { unsafeCSS as m, html as a } from "lit";
|
|
22
|
+
import { SizedMixin as s, LuzmoElement as g, ElementSizes as z } from "@luzmo/lucero/utils";
|
|
23
|
+
import { property as r } from "lit/decorators.js";
|
|
24
|
+
import { g as h, t as d, s as p } from "../set-locale-B5562CBM.js";
|
|
25
25
|
import "../filter-value-picker-datetime/index.js";
|
|
26
26
|
import "../filter-value-picker-hierarchy/index.js";
|
|
27
27
|
import "../filter-value-picker-numeric/index.js";
|
|
@@ -31,14 +31,14 @@ import "../filter-value-picker-numeric/index.js";
|
|
|
31
31
|
e.setAttribute("data-luzmo-vars", ""), e.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(e);
|
|
32
32
|
}
|
|
33
33
|
})();
|
|
34
|
-
const
|
|
35
|
-
var
|
|
36
|
-
for (var i = void 0,
|
|
37
|
-
(
|
|
38
|
-
return i &&
|
|
34
|
+
const f = ":host{--var: red}:host{--var: blue}";
|
|
35
|
+
var b = Object.defineProperty, t = (u, e, l, v) => {
|
|
36
|
+
for (var i = void 0, n = u.length - 1, c; n >= 0; n--)
|
|
37
|
+
(c = u[n]) && (i = c(e, l, i) || i);
|
|
38
|
+
return i && b(e, l, i), i;
|
|
39
39
|
};
|
|
40
|
-
class o extends g
|
|
41
|
-
validSizes: Object.values(
|
|
40
|
+
class o extends s(g, {
|
|
41
|
+
validSizes: Object.values(z)
|
|
42
42
|
}) {
|
|
43
43
|
constructor() {
|
|
44
44
|
super(...arguments), this.language = "en", this.contentLanguage = "en", this._expressionsWithoutValuePicker = /* @__PURE__ */ new Set([
|
|
@@ -48,7 +48,7 @@ class o extends g(z, {
|
|
|
48
48
|
]);
|
|
49
49
|
}
|
|
50
50
|
static get styles() {
|
|
51
|
-
return [
|
|
51
|
+
return [m(f)];
|
|
52
52
|
}
|
|
53
53
|
_sendChangeEvent(e) {
|
|
54
54
|
this.dispatchEvent(
|
|
@@ -63,8 +63,7 @@ class o extends g(z, {
|
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
65
|
setFilterValue(e) {
|
|
66
|
-
|
|
67
|
-
e.stopPropagation(), this._sendChangeEvent((r = e == null ? void 0 : e.detail) == null ? void 0 : r.value);
|
|
66
|
+
e.stopPropagation(), this._sendChangeEvent(e?.detail?.value);
|
|
68
67
|
}
|
|
69
68
|
renderNumericValuePicker() {
|
|
70
69
|
return a`<luzmo-filter-value-picker-numeric
|
|
@@ -107,40 +106,39 @@ class o extends g(z, {
|
|
|
107
106
|
></luzmo-filter-value-picker-datetime>`;
|
|
108
107
|
}
|
|
109
108
|
willUpdate(e) {
|
|
110
|
-
e.has("language") && this.language !==
|
|
109
|
+
e.has("language") && this.language !== h() && ([...d].includes(this.language ?? "en") || this.language === "en") && p(this.language);
|
|
111
110
|
}
|
|
112
111
|
render() {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
return !r || this._expressionsWithoutValuePicker.has(r) || !["numeric", "hierarchy", "datetime"].includes(e) ? a`` : e === "numeric" ? this.renderNumericValuePicker() : e === "datetime" ? this.renderDateTimeValuePicker() : this.renderHierarchyValuePicker();
|
|
112
|
+
const e = this.valueType ?? "", l = this.filter?.expression;
|
|
113
|
+
return !l || this._expressionsWithoutValuePicker.has(l) || !["numeric", "hierarchy", "datetime"].includes(e) ? a`` : e === "numeric" ? this.renderNumericValuePicker() : e === "datetime" ? this.renderDateTimeValuePicker() : this.renderHierarchyValuePicker();
|
|
116
114
|
}
|
|
117
115
|
}
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
t([
|
|
117
|
+
r({ type: String, attribute: "api-url", reflect: !0 })
|
|
120
118
|
], o.prototype, "apiUrl");
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
t([
|
|
120
|
+
r({ type: String, attribute: "auth-key", reflect: !0 })
|
|
123
121
|
], o.prototype, "authKey");
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
t([
|
|
123
|
+
r({ type: String, attribute: "auth-token", reflect: !0 })
|
|
126
124
|
], o.prototype, "authToken");
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
t([
|
|
126
|
+
r({ type: Number, attribute: "cache-time", reflect: !0 })
|
|
129
127
|
], o.prototype, "cacheTime");
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
t([
|
|
129
|
+
r({ type: String, reflect: !0 })
|
|
132
130
|
], o.prototype, "language");
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
t([
|
|
132
|
+
r({ type: String, attribute: "content-language", reflect: !0 })
|
|
135
133
|
], o.prototype, "contentLanguage");
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
t([
|
|
135
|
+
r({ type: String, attribute: "time-zone", reflect: !0 })
|
|
138
136
|
], o.prototype, "timeZone");
|
|
139
|
-
|
|
140
|
-
|
|
137
|
+
t([
|
|
138
|
+
r({ type: String, attribute: "value-type", reflect: !0 })
|
|
141
139
|
], o.prototype, "valueType");
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
t([
|
|
141
|
+
r({ type: Object, reflect: !1 })
|
|
144
142
|
], o.prototype, "filter");
|
|
145
143
|
customElements.get("luzmo-filter-value-picker") || customElements.define("luzmo-filter-value-picker", o);
|
|
146
144
|
export {
|
|
@@ -17,23 +17,23 @@
|
|
|
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/date-time-picker");require("@luzmo/lucero/number-field");require("@luzmo/lucero/picker");require("@luzmo/lucero/text-field");const
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/date-time-picker");require("@luzmo/lucero/number-field");require("@luzmo/lucero/picker");require("@luzmo/lucero/text-field");const a=require("lit"),p=require("@luzmo/lucero/utils"),c=require("../set-locale-B8iQGfk0.cjs"),l=require("../periods.const-3jA-ECRf.cjs"),n=require("lit/decorators.js"),f=":host{display:flex;flex-direction:row;gap:var(--luzmo-filter-value-picker-datetime-gap, var(--filter-value-picker-datetime-gap));min-width:0;flex-shrink:1}:host{--filter-value-picker-datetime-gap: var(--luzmo-spacing-3)}:host([size=s]){--filter-value-picker-datetime-gap: var(--luzmo-spacing-2)}:host([size=m]){--filter-value-picker-datetime-gap: var(--luzmo-spacing-3)}:host([size=l]){--filter-value-picker-datetime-gap: calc( var(--luzmo-spacing-3) + var(--luzmo-spacing-1) )}:host([size=xl]){--filter-value-picker-datetime-gap: var(--luzmo-spacing-4)}";var g=Object.defineProperty,u=(o,e,t,i)=>{for(var r=void 0,m=o.length-1,h;m>=0;m--)(h=o[m])&&(r=h(e,t,r)||r);return r&&g(e,t,r),r};class s extends p.SizedMixin(p.LuzmoElement,{validSizes:Object.values(p.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en"}static get styles(){return[a.unsafeCSS(f)]}willUpdate(e){const t=e.has("language"),i=e.get("filter");t&&this.language!==c.getLocale()&&([...c.targetLocales].includes(this.language??"en")||this.language==="en")&&c.setLocale(this.language),i&&(["last_now","last_available","next_now","more_than_ago","or_more_ago"].includes(this.filter?.expression)?this.filter.parameters[1]={quantity:this.filter?.parameters?.[1]?.quantity??1,unit:this.filter?.parameters?.[1]?.unit??1}:["last_completed","next_full","to_date"].includes(this.filter?.expression)?this.filter.parameters[1]={unit:this.filter?.parameters?.[1]?.unit??1}:this.filter.parameters[1]=typeof this.filter.parameters[1]=="string"?this.filter.parameters[1]:new Date().toISOString())}_sendChangeEvent(){this.filter.parameters=[{...this.filter?.parameters?.[0]},this._value],this.dispatchEvent(new CustomEvent("filter-value-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this._value}}))}setDate(e){this._value=e.detail.value,this._value!==this.filter?.parameters?.[1]&&this._sendChangeEvent()}setUnit(e){const t=l.DATETIME_LEVELS.find(i=>i.key===e?.target?.value)?.level;this.filter?.parameters?.[1]?.unit!==t&&(this._value={unit:t??1,quantity:this.filter?.parameters?.[1]?.quantity??1},this._sendChangeEvent())}setQuantity(e){const t=e?.target?.value;this.filter?.parameters?.[1]?.quantity!==t&&(this._value={quantity:t,unit:this.filter?.parameters?.[1]?.unit??1},this._sendChangeEvent())}renderDatePicker(){let e="second";return this.filter?.parameters?.[0]?.lowestLevel>4&&(this.filter?.parameters?.[0]?.lowestLevel===5?e="day":this.filter?.parameters?.[0]?.lowestLevel===6?e="hour":this.filter?.parameters?.[0]?.lowestLevel===7?e="minute":e="second"),a.html`<luzmo-date-time-picker
|
|
21
21
|
.size=${this.size}
|
|
22
22
|
.precision=${e}
|
|
23
23
|
.timeZone=${this.timeZone}
|
|
24
24
|
@change=${this.setDate}
|
|
25
|
-
.value=${
|
|
26
|
-
></luzmo-date-time-picker>`}renderQuantityField(){
|
|
25
|
+
.value=${this.filter?.parameters?.[1]}
|
|
26
|
+
></luzmo-date-time-picker>`}renderQuantityField(){return a.html`<luzmo-number-field
|
|
27
27
|
.size=${this.size}
|
|
28
|
-
.value=${
|
|
28
|
+
.value=${this.filter?.parameters?.[1]?.quantity}
|
|
29
29
|
@input=${this.setQuantity}
|
|
30
30
|
@change=${this.setQuantity}
|
|
31
|
-
></luzmo-number-field>`}renderUnitPicker(){
|
|
32
|
-
${
|
|
33
|
-
</luzmo-menu-item>`),t=
|
|
31
|
+
></luzmo-number-field>`}renderUnitPicker(){const e=l.DATETIME_LEVELS.map(i=>a.html`<luzmo-menu-item .value=${i.key}>
|
|
32
|
+
${i.i18n()}
|
|
33
|
+
</luzmo-menu-item>`),t=l.DATETIME_LEVELS.find(i=>i.level===this.filter?.parameters?.[1]?.unit)?.key??l.DATETIME_LEVELS?.[0]?.key;return a.html`<luzmo-picker
|
|
34
34
|
.size=${this.size}
|
|
35
35
|
.value=${t}
|
|
36
36
|
@change=${this.setUnit}
|
|
37
37
|
variant="highlight"
|
|
38
38
|
>${e}</luzmo-picker
|
|
39
|
-
>`}render(){
|
|
39
|
+
>`}render(){const e=this.filter?.expression;return["last_now","last_available","next_now","more_than_ago","or_more_ago"].includes(e)?a.html`${this.renderQuantityField()}${this.renderUnitPicker()}`:["last_completed","next_full"].includes(e)?this.renderUnitPicker():this.renderDatePicker()}}u([n.property({type:String,reflect:!0})],s.prototype,"language");u([n.property({type:String,attribute:"content-language",reflect:!0})],s.prototype,"contentLanguage");u([n.property({type:String,attribute:"time-zone",reflect:!0})],s.prototype,"timeZone");u([n.property({type:Object,reflect:!1})],s.prototype,"filter");customElements.get("luzmo-filter-value-picker-datetime")||customElements.define("luzmo-filter-value-picker-datetime",s);exports.LuzmoFilterValuePickerDatetime=s;
|