@luzmo/analytics-components-kit 1.0.5 → 1.0.7
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/README.md +17 -4
- package/angular/components/data-fields-select.ts +7 -0
- package/angular/components/filter-item.ts +15 -0
- package/angular/components/filter-parameter-picker.ts +70 -18
- package/angular/components/filters.ts +46 -6
- package/angular/esm/components/data-fields-select.d.ts +3 -1
- package/angular/esm/components/data-fields-select.js +9 -1
- package/angular/esm/components/filter-item.d.ts +7 -1
- package/angular/esm/components/filter-item.js +18 -2
- package/angular/esm/components/filter-parameter-picker.d.ts +22 -7
- package/angular/esm/components/filter-parameter-picker.js +63 -22
- package/angular/esm/components/filters.d.ts +21 -7
- package/angular/esm/components/filters.js +41 -5
- package/angular/package.json +2 -2
- package/angular/utils/formula/store/formula-display-store.d.ts +6 -0
- package/components/ai-chat/index.cjs +1 -1
- package/components/ai-chat/index.js +3 -3
- package/components/{ai-chat-BtQaM37y.js → ai-chat-CDSRFmJK.js} +713 -677
- package/components/ai-chat-CVNU2mCV.cjs +319 -0
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +2 -2
- package/components/{ai-interaction-textarea-CQBP9-DW.cjs → ai-interaction-textarea-BXDeplJF.cjs} +1 -1
- package/components/{ai-interaction-textarea-Bgd3y_cP.js → ai-interaction-textarea-BiMbUGCy.js} +3 -3
- package/components/{area-chart-positioning.config-QGEo5sr-.js → area-chart-positioning.config-SLtTkKJB.js} +1 -1
- package/components/{area-chart-positioning.config-1YVSxjRa.cjs → area-chart-positioning.config-dwRUFC--.cjs} +1 -1
- package/components/{bar-chart-positioning.config-Cs56EAWY.cjs → bar-chart-positioning.config-CcQ2iQdl.cjs} +1 -1
- package/components/{bar-chart-positioning.config-KLzBnoCu.js → bar-chart-positioning.config-Ch4sVyJS.js} +1 -1
- package/components/{base-DMQUzJ4L.js → base-2sulw8ws.js} +1 -1
- package/components/{base-DRFleWoz.cjs → base-DYRe99_q.cjs} +1 -1
- package/components/{box-plot-positioning.config-DKGY1Qqb.js → box-plot-positioning.config-Bb7r-Rfl.js} +1 -1
- package/components/{box-plot-positioning.config-BpDEb4Uo.cjs → box-plot-positioning.config-Dwtiqho4.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-BZsvCSyT.cjs → bubble-chart-positioning.config-Bp_l4Cw1.cjs} +1 -1
- package/components/{bubble-chart-positioning.config-CL3mDsC-.js → bubble-chart-positioning.config-Q7mIfpcz.js} +1 -1
- package/components/{bullet-chart-positioning.config-DxXEGnbz.js → bullet-chart-positioning.config-B7aXCajU.js} +1 -1
- package/components/{bullet-chart-positioning.config-DA-1zmsD.cjs → bullet-chart-positioning.config-sj7E3xEM.cjs} +1 -1
- package/components/{choropleth-map-positioning.config-BicHLfN0.js → choropleth-map-positioning.config-CtoJov9H.js} +1 -1
- package/components/{choropleth-map-positioning.config-D_1MCD5i.cjs → choropleth-map-positioning.config-DM-iNbgs.cjs} +1 -1
- package/components/{circle-pack-chart-positioning.config-a_vo4VFg.js → circle-pack-chart-positioning.config-BgxnBOQT.js} +1 -1
- package/components/{circle-pack-chart-positioning.config-oTUkvFFJ.cjs → circle-pack-chart-positioning.config-Cs9xMDpi.cjs} +1 -1
- package/components/{circular-gauge-positioning.config-TG1wPyHz.cjs → circular-gauge-positioning.config-Bzulob5F.cjs} +1 -1
- package/components/{circular-gauge-positioning.config-BEM85XhO.js → circular-gauge-positioning.config-FEkbw6hK.js} +1 -1
- package/components/{column-chart-positioning.config-D1kXKreT.cjs → column-chart-positioning.config-9ho9oUo8.cjs} +1 -1
- package/components/{column-chart-positioning.config-x-wEIoTZ.js → column-chart-positioning.config-BeVOSQaJ.js} +1 -1
- package/components/{combination-chart-positioning.config-COksdK7F.cjs → combination-chart-positioning.config-CaShl4vv.cjs} +1 -1
- package/components/{combination-chart-positioning.config-DLyPa1Im.js → combination-chart-positioning.config-D4VUK54k.js} +1 -1
- package/components/{conditional-number-positioning.config-5SBhp4Kh.cjs → conditional-number-positioning.config-BEMjjhdi.cjs} +1 -1
- package/components/{conditional-number-positioning.config-6ZQHIgAA.js → conditional-number-positioning.config-C-LpjCJN.js} +1 -1
- package/components/data-field/index.cjs +1 -1
- package/components/data-field/index.js +2 -2
- package/components/{data-field-D1lrRnLX.js → data-field-Dz0XFrep.js} +3 -3
- package/components/{data-field-D050EJkx.cjs → data-field-lGJ557o4.cjs} +1 -1
- package/components/data-field-level/index.cjs +1 -1
- package/components/data-field-level/index.js +2 -2
- package/components/{data-field-level-CKlijSjc.cjs → data-field-level-B9r4ucP6.cjs} +1 -1
- package/components/{data-field-level-Da8Pwva2.js → data-field-level-DJoidlHN.js} +1 -1
- package/components/data-field-panel/index.cjs +1 -1
- package/components/data-field-panel/index.js +2 -2
- package/components/{data-field-panel-47PGrrIi.cjs → data-field-panel-BzyjbJO5.cjs} +1 -1
- package/components/{data-field-panel-CgqJ1bLg.js → data-field-panel-CdeJxZCr.js} +3 -3
- package/components/data-fields-select/data-fields-select.d.ts +6 -0
- package/components/data-fields-select/index.cjs +1 -1
- package/components/data-fields-select/index.js +2 -2
- package/components/data-fields-select-BBzzUG2u.cjs +41 -0
- package/components/{data-fields-select-B40TXGd7.js → data-fields-select-BRBBrS-x.js} +23 -5
- package/components/dataset-icon/index.js +1 -1
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +2 -2
- package/components/{dataset-selector-list-C0dheupb.js → dataset-selector-list-DGCh1bvb.js} +1 -1
- package/components/{dataset-selector-list-CKQ7OgMN.cjs → dataset-selector-list-xF3yKGan.cjs} +1 -1
- package/components/dataset-selector-row/index.cjs +1 -1
- package/components/dataset-selector-row/index.js +2 -2
- package/components/{dataset-selector-row-DP6QUWYs.js → dataset-selector-row-BbnjxfIz.js} +1 -1
- package/components/{dataset-selector-row-_FZPTBE1.cjs → dataset-selector-row-fmrY3y86.cjs} +1 -1
- package/components/de-BzcAVqyW.cjs +20 -0
- package/components/{de-CPcJgwTx.js → de-CRrCVuH7.js} +15 -0
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +2 -2
- package/components/{display-settings-B-eamVdN.js → display-settings-C9OQ4Eou.js} +3 -3
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +2 -2
- package/components/{display-settings-binning-BGtp0Wvl.js → display-settings-binning-B8E2H5cY.js} +2 -2
- package/components/{display-settings-binning-Cs8MS7BY.cjs → display-settings-binning-BBNL97l9.cjs} +1 -1
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +2 -2
- package/components/{display-settings-datetime-CbTnG486.js → display-settings-datetime-BBzvzwl5.js} +2 -2
- package/components/{display-settings-datetime-q20qbrOL.cjs → display-settings-datetime-czjk5Msv.cjs} +1 -1
- package/components/display-settings-eSQCidqh.cjs +140 -0
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +2 -2
- package/components/{display-settings-grand-totals-BDeeC6-h.js → display-settings-grand-totals-CF01m8x-.js} +2 -2
- package/components/{display-settings-grand-totals-DdEXs_mA.cjs → display-settings-grand-totals-RwMnGwFZ.cjs} +1 -1
- package/components/display-settings-numeric/index.cjs +1 -1
- package/components/display-settings-numeric/index.js +2 -2
- package/components/{display-settings-numeric-C5FlahN_.js → display-settings-numeric-BcpwYX16.js} +2 -2
- package/components/{display-settings-numeric-PtcxP80Z.cjs → display-settings-numeric-C4X7oOEU.cjs} +1 -1
- package/components/display-settings-period-over-period/index.cjs +1 -1
- package/components/display-settings-period-over-period/index.js +2 -2
- package/components/{display-settings-period-over-period-CUlsSQZv.js → display-settings-period-over-period-B8UNYZ0I.js} +2 -2
- package/components/{display-settings-period-over-period-Csv7Kwri.cjs → display-settings-period-over-period-BG9YAcCw.cjs} +1 -1
- package/components/{donut-chart-positioning.config-EudGY45O.js → donut-chart-positioning.config-CaADC7Qr.js} +1 -1
- package/components/{donut-chart-positioning.config-m_uVKoNn.cjs → donut-chart-positioning.config-Dfws3ojS.cjs} +1 -1
- package/components/{es-fXPjX3vY.js → es-BIgv-ijQ.js} +15 -0
- package/components/es-mPmtD7j4.cjs +20 -0
- package/components/{evolution-number-positioning.config-BcLsEydB.js → evolution-number-positioning.config-C-OV1wpL.js} +1 -1
- package/components/{evolution-number-positioning.config-CJii0q3V.cjs → evolution-number-positioning.config-CI_2m2Sr.cjs} +1 -1
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +2 -2
- package/components/{filter-expression-picker-nW1Hff7C.js → filter-expression-picker-CH2Fna8C.js} +1 -1
- package/components/{filter-expression-picker-D28THjzU.cjs → filter-expression-picker-_mfcXZ-n.cjs} +1 -1
- package/components/filter-item/filter-item.d.ts +15 -0
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +2 -2
- package/components/filter-item-5HCSM9cu.cjs +71 -0
- package/components/{filter-item-BoYKU9tK.js → filter-item-CL3S9HOx.js} +100 -41
- package/components/filter-parameter-picker/filter-parameter-picker.d.ts +71 -9
- package/components/filter-parameter-picker/filter-parameter-picker.helpers.d.ts +8 -0
- package/components/filter-parameter-picker/index.cjs +1 -3
- package/components/filter-parameter-picker/index.d.ts +2 -0
- package/components/filter-parameter-picker/index.js +3 -33
- package/components/filter-parameter-picker/types.d.ts +4 -0
- package/components/filter-parameter-picker-CU48aEOS.js +363 -0
- package/components/filter-parameter-picker-CxbAY5hy.cjs +123 -0
- package/components/filter-value-picker/filter-value-picker.d.ts +1 -0
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +2 -2
- package/components/{filter-value-picker-1kMJ9slB.js → filter-value-picker-CD8DjcHo.js} +5 -5
- package/components/{filter-value-picker-D08bAAKt.cjs → filter-value-picker-CRrUhngj.cjs} +1 -1
- package/components/filter-value-picker-datetime/filter-value-picker-datetime.d.ts +2 -0
- package/components/filter-value-picker-datetime/index.cjs +1 -1
- package/components/filter-value-picker-datetime/index.js +2 -2
- package/components/{filter-value-picker-datetime-Cnwlipah.js → filter-value-picker-datetime-DS7IK9aN.js} +2 -2
- package/components/{filter-value-picker-datetime-OIgFSdU2.cjs → filter-value-picker-datetime-dXaHpCRX.cjs} +1 -1
- package/components/filter-value-picker-hierarchy/filter-value-picker-hierarchy.d.ts +2 -0
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +2 -2
- package/components/{filter-value-picker-hierarchy-DdMLbCO3.js → filter-value-picker-hierarchy-k0T56CvH.js} +3 -3
- package/components/{filter-value-picker-hierarchy-BGgHIji-.cjs → filter-value-picker-hierarchy-kwnEzxIk.cjs} +1 -1
- package/components/filter-value-picker-numeric/filter-value-picker-numeric.d.ts +1 -0
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +2 -2
- package/components/{filter-value-picker-numeric-BL2gD2ED.cjs → filter-value-picker-numeric-BVei4Vlc.cjs} +1 -1
- package/components/{filter-value-picker-numeric-BqrsENh6.js → filter-value-picker-numeric-BaQe4r82.js} +2 -2
- package/components/filters/filters.d.ts +38 -4
- package/components/filters/index.cjs +1 -1
- package/components/filters/index.d.ts +4 -1
- package/components/filters/index.js +3 -3
- package/components/filters/transformations/clean-filters.d.ts +37 -0
- package/components/filters/transformations/filter-format.d.ts +54 -0
- package/components/filters/transformations/transform-filters.d.ts +27 -12
- package/components/filters/types.d.ts +48 -3
- package/components/filters-B70hF2NT.js +742 -0
- package/components/filters-ms2gFstA.cjs +153 -0
- package/components/formula/index.cjs +1 -1
- package/components/formula/index.js +2 -2
- package/components/{formula-CNzBOTRQ.js → formula-DdgD312W.js} +2 -2
- package/components/{formula-codemirror-pnijOvXU.js → formula-codemirror-D3Z1Qa0J.js} +4 -4
- package/components/{formula-codemirror-D1hgPIW_.cjs → formula-codemirror-GoFCSp6r.cjs} +1 -1
- package/components/{formula-display-store-BBMmHCRp.js → formula-display-store-bPGDv_xk.js} +10 -7
- package/components/formula-display-store-eE3zaCyB.cjs +20 -0
- package/components/formula-editor/index.cjs +1 -1
- package/components/formula-editor/index.js +4 -4
- package/components/{formula-editor-Uejdzkm6.cjs → formula-editor-8wWzGGJr.cjs} +1 -1
- package/components/{formula-editor-DvDB6JYI.js → formula-editor-BnWiiFr5.js} +5 -5
- package/components/formula-field/index.cjs +1 -1
- package/components/formula-field/index.js +2 -2
- package/components/{formula-field-o_zZQACN.js → formula-field-DlEgUu58.js} +1 -1
- package/components/{formula-field-CNyKz9wY.cjs → formula-field-IHf6I8mL.cjs} +1 -1
- package/components/{formula-DeRjtboJ.cjs → formula-glPlLx_5.cjs} +1 -1
- package/components/{formula-input-base-DlVNZBUA.js → formula-input-base-7I069pOJ.js} +1 -1
- package/components/{formula-input-base-fTF1KXpl.cjs → formula-input-base-D5yx7RYX.cjs} +1 -1
- package/components/fr-BHUhOl6R.cjs +20 -0
- package/components/{fr-B50vb6LP.js → fr-CI9fC-NM.js} +15 -0
- package/components/{funnel-chart-positioning.config-B_C8nr1y.js → funnel-chart-positioning.config-CNEeOwuT.js} +1 -1
- package/components/{funnel-chart-positioning.config-DhrMsuyt.cjs → funnel-chart-positioning.config-Cz8gQRh_.cjs} +1 -1
- package/components/{get-dataset-name-DrTVBElb.cjs → get-dataset-name-Bae0I2_J.cjs} +1 -1
- package/components/{get-dataset-name-DYLJB67F.js → get-dataset-name-OJK38mEs.js} +1 -1
- package/components/{groupings-BPlu4GFe.cjs → groupings-B0qMZHSd.cjs} +1 -1
- package/components/{groupings-DAj2iFeA.js → groupings-BZJTnpwR.js} +1 -1
- package/components/{heat-map-positioning.config-Bya2_TR8.cjs → heat-map-positioning.config-CEH6qyrN.cjs} +1 -1
- package/components/{heat-map-positioning.config-Cxembqle.js → heat-map-positioning.config-D-Ba4Ts_.js} +1 -1
- package/components/{heat-table-positioning.config-CNeTnuHy.js → heat-table-positioning.config-DCnowqOc.js} +1 -1
- package/components/{heat-table-positioning.config-CYZr5ksc.cjs → heat-table-positioning.config-DWNETZMx.cjs} +1 -1
- package/components/{hexbin-map-positioning.config-Dfdgub0y.js → hexbin-map-positioning.config-Br0pjvMN.js} +1 -1
- package/components/{hexbin-map-positioning.config-bXZEY4nP.cjs → hexbin-map-positioning.config-DoiUVZ8h.cjs} +1 -1
- package/components/index.cjs +1 -1
- package/components/index.js +64 -63
- package/components/interactive-viz-item/index.cjs +1 -1
- package/components/interactive-viz-item/index.js +2 -2
- package/components/{interactive-viz-item-D-hR2G5x.cjs → interactive-viz-item-DZoRqeJW.cjs} +1 -1
- package/components/{interactive-viz-item-C3fzZq7j.js → interactive-viz-item-Dogksvpq.js} +5 -5
- package/components/item-grid/index.cjs +1 -1
- package/components/item-grid/index.js +2 -2
- package/components/{item-grid-BruAZOla.cjs → item-grid-VPRvzGCa.cjs} +1 -1
- package/components/{item-grid-cyMiRw7P.js → item-grid-ZQpp1brq.js} +1 -1
- package/components/item-option/index.cjs +1 -1
- package/components/item-option/index.js +2 -2
- package/components/{item-option-CZb01VJb.js → item-option-B9tALelF.js} +1 -1
- package/components/{item-option-BclNWwdZ.cjs → item-option-BRgOBMM0.cjs} +1 -1
- package/components/item-option-action-button-group/index.cjs +1 -1
- package/components/item-option-action-button-group/index.js +2 -2
- package/components/{item-option-action-button-group-AkMaJHuv.cjs → item-option-action-button-group-BYE7i8Zd.cjs} +1 -1
- package/components/{item-option-action-button-group-HfUtaTi9.js → item-option-action-button-group-WrHKP761.js} +1 -1
- package/components/{item-option-base-CZegYACf.cjs → item-option-base-CTBIeARi.cjs} +1 -1
- package/components/{item-option-base-DlHZAfWZ.js → item-option-base-CuxvyS-a.js} +1 -1
- package/components/item-option-color-palette-picker/index.cjs +1 -1
- package/components/item-option-color-palette-picker/index.js +2 -2
- package/components/{item-option-color-palette-picker-B336qQRk.cjs → item-option-color-palette-picker-CyailqDd.cjs} +1 -1
- package/components/{item-option-color-palette-picker-Dt4z0c4W.js → item-option-color-palette-picker-eYAyoXM1.js} +1 -1
- package/components/item-option-color-picker/index.cjs +1 -1
- package/components/item-option-color-picker/index.js +2 -2
- package/components/{item-option-color-picker-BRO416_T.js → item-option-color-picker-D_x6FgZy.js} +1 -1
- package/components/{item-option-color-picker-Hfu2fhRF.cjs → item-option-color-picker-DsfZKPDo.cjs} +1 -1
- package/components/item-option-color-range/index.cjs +1 -1
- package/components/item-option-color-range/index.js +2 -2
- package/components/{item-option-color-range-DgalNZ9b.js → item-option-color-range-CHSbql1w.js} +1 -1
- package/components/{item-option-color-range-DWoaz57E.cjs → item-option-color-range-tAMMKg6y.cjs} +1 -1
- package/components/item-option-multi-language-field/index.cjs +1 -1
- package/components/item-option-multi-language-field/index.js +2 -2
- package/components/{item-option-multi-language-field-BvJXIFgu.js → item-option-multi-language-field-D51cJ4BM.js} +1 -1
- package/components/{item-option-multi-language-field-IQP6fbgB.cjs → item-option-multi-language-field-DjWm-jWC.cjs} +1 -1
- package/components/item-option-number-field/index.cjs +1 -1
- package/components/item-option-number-field/index.js +2 -2
- package/components/{item-option-number-field-B07NhNSm.cjs → item-option-number-field-Dep43Ym5.cjs} +1 -1
- package/components/{item-option-number-field-CvGknDpu.js → item-option-number-field-Df56sivV.js} +1 -1
- package/components/item-option-panel/index.cjs +1 -1
- package/components/item-option-panel/index.js +2 -2
- package/components/{item-option-panel-RYdx8Hfk.js → item-option-panel-BYCfnDeP.js} +3 -3
- package/components/{item-option-panel-BWP9E8cW.cjs → item-option-panel-ClDspg51.cjs} +1 -1
- package/components/item-option-picker/index.cjs +1 -1
- package/components/item-option-picker/index.js +2 -2
- package/components/{item-option-picker-DM1pU3w9.js → item-option-picker-BCsB7psT.js} +1 -1
- package/components/{item-option-picker-C7SZfnLP.cjs → item-option-picker-CBfFgSKs.cjs} +1 -1
- package/components/item-option-position-picker/index.cjs +1 -1
- package/components/item-option-position-picker/index.js +2 -2
- package/components/{item-option-position-picker-BuDvx3SX.js → item-option-position-picker-CXJGmmWF.js} +1 -1
- package/components/{item-option-position-picker-M9CBH9NE.cjs → item-option-position-picker-CYoOkH1m.cjs} +1 -1
- package/components/item-option-positions-number-field/index.cjs +1 -1
- package/components/item-option-positions-number-field/index.js +2 -2
- package/components/{item-option-positions-number-field-C4zW5-Hc.cjs → item-option-positions-number-field-CNUCVm78.cjs} +1 -1
- package/components/{item-option-positions-number-field-RN5AG-Ic.js → item-option-positions-number-field-CkfSHCFO.js} +1 -1
- package/components/item-option-radio-button-group/index.cjs +1 -1
- package/components/item-option-radio-button-group/index.js +2 -2
- package/components/{item-option-radio-button-group-Ce780UyR.js → item-option-radio-button-group-CSyh4eS2.js} +1 -1
- package/components/{item-option-radio-button-group-DRiwqorh.cjs → item-option-radio-button-group-ZIvbpJf9.cjs} +1 -1
- package/components/item-option-slider/index.cjs +1 -1
- package/components/item-option-slider/index.js +2 -2
- package/components/item-option-slider/item-option-slider.d.ts +5 -0
- package/components/{item-option-slider-BUdWMAzT.js → item-option-slider-CTt5aYbb.js} +31 -16
- package/components/{item-option-slider-CycHQFnr.cjs → item-option-slider-CaxIGDWN.cjs} +3 -3
- package/components/item-option-switch/index.cjs +1 -1
- package/components/item-option-switch/index.js +2 -2
- package/components/{item-option-switch-CvcZSytb.js → item-option-switch-B91r65eW.js} +1 -1
- package/components/{item-option-switch-CM5R8wO_.cjs → item-option-switch-wEx5JkSe.cjs} +1 -1
- package/components/item-option-text-field/index.cjs +1 -1
- package/components/item-option-text-field/index.js +2 -2
- package/components/{item-option-text-field-BZjOilSu.cjs → item-option-text-field-BLcYkH-j.cjs} +1 -1
- package/components/{item-option-text-field-CyuYUITv.js → item-option-text-field-BvSCGhuH.js} +1 -1
- package/components/item-slot-drop/index.cjs +1 -1
- package/components/item-slot-drop/index.js +2 -2
- package/components/{item-slot-drop-C6DO5mPk.js → item-slot-drop-Box1wnvM.js} +5 -5
- package/components/{item-slot-drop-CrzFRobc.cjs → item-slot-drop-n-lD8Zyh.cjs} +1 -1
- package/components/item-slot-drop-panel/index.cjs +1 -1
- package/components/item-slot-drop-panel/index.js +2 -2
- package/components/{item-slot-drop-panel-DvmPk1pJ.js → item-slot-drop-panel-KtZKw0Ly.js} +39 -39
- package/components/{item-slot-drop-panel-ChazcNSe.cjs → item-slot-drop-panel-sCkQ0dUU.cjs} +1 -1
- package/components/item-slot-picker/index.cjs +1 -1
- package/components/item-slot-picker/index.js +2 -2
- package/components/{item-slot-picker-CmG71mGy.js → item-slot-picker-Cm8o4A00.js} +6 -6
- package/components/{item-slot-picker-DQkG3Lt7.cjs → item-slot-picker-DKPE2NQn.cjs} +1 -1
- package/components/item-slot-picker-panel/index.cjs +1 -1
- package/components/item-slot-picker-panel/index.js +2 -2
- package/components/{item-slot-picker-panel-Bi2jXvQA.cjs → item-slot-picker-panel-DK5jRBYs.cjs} +1 -1
- package/components/{item-slot-picker-panel-DmGYI5YI.js → item-slot-picker-panel-DOHi_8UO.js} +3 -3
- package/components/{line-chart-positioning.config-Cqnfz4Lc.cjs → line-chart-positioning.config-C05IZ4Jj.cjs} +1 -1
- package/components/{line-chart-positioning.config-CFHFq0wp.js → line-chart-positioning.config-DQfyOkWV.js} +1 -1
- package/components/{localized-mixin-CUuRZu9t.cjs → localized-mixin-BForHr3t.cjs} +1 -1
- package/components/{localized-mixin-B4fDdsF0.js → localized-mixin-D-vXCJuU.js} +1 -1
- package/components/{marker-map-positioning.config-x3KUsgzD.js → marker-map-positioning.config-CD7n0uLB.js} +1 -1
- package/components/{marker-map-positioning.config-BM-ZrmE9.cjs → marker-map-positioning.config-DOhXf-CR.cjs} +1 -1
- package/components/{nl-Do6FfV7U.js → nl-HLnZHvTS.js} +15 -0
- package/components/nl-NxeHJ8X8.cjs +20 -0
- package/components/{ohlc-chart-positioning.config-C-vx6lt-.js → ohlc-chart-positioning.config-Bl-ckdlQ.js} +1 -1
- package/components/{ohlc-chart-positioning.config-SIhJhFel.cjs → ohlc-chart-positioning.config-CDf77OgH.cjs} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-Br1OGTEZ.cjs → parallel-coordinates-plot-positioning.config-DfsKsUdv.cjs} +1 -1
- package/components/{parallel-coordinates-plot-positioning.config-BaofZgit.js → parallel-coordinates-plot-positioning.config-Tbzzr5L6.js} +1 -1
- package/components/{pivot-table-positioning.config-BaBkuXV0.cjs → pivot-table-positioning.config-DwuKN2xz.cjs} +1 -1
- package/components/{pivot-table-positioning.config-DeeS1MaO.js → pivot-table-positioning.config-_YDPeFQz.js} +1 -1
- package/components/{pyramid-chart-positioning.config-g55mkotb.cjs → pyramid-chart-positioning.config-7AJy2_zR.cjs} +1 -1
- package/components/{pyramid-chart-positioning.config-D14NnyH1.js → pyramid-chart-positioning.config-Btm_8m46.js} +1 -1
- package/components/{radar-chart-positioning.config-CWGfQ7-j.cjs → radar-chart-positioning.config-7Kx_uKbW.cjs} +1 -1
- package/components/{radar-chart-positioning.config-C9fiYOnB.js → radar-chart-positioning.config-DWziVqMW.js} +1 -1
- package/components/{route-map-positioning.config-Cd4azpuW.js → route-map-positioning.config-C4-2zLGp.js} +1 -1
- package/components/{route-map-positioning.config-Dswq4pH_.cjs → route-map-positioning.config-DDgEAW4k.cjs} +1 -1
- package/components/{sankey-diagram-positioning.config-CAHzdKBq.cjs → sankey-diagram-positioning.config-BxVJaOKN.cjs} +1 -1
- package/components/{sankey-diagram-positioning.config-CzGCvTeX.js → sankey-diagram-positioning.config-DQcUg8Cg.js} +1 -1
- package/components/{scatter-plot-positioning.config-CrVJZ-X9.cjs → scatter-plot-positioning.config-D3xI_5P8.cjs} +1 -1
- package/components/{scatter-plot-positioning.config-C7nu7quv.js → scatter-plot-positioning.config-DOgeShUF.js} +1 -1
- package/components/{set-locale-DBVSKk_b.js → set-locale-D9gR8t-s.js} +4 -4
- package/components/{set-locale-1r0lDa7J.cjs → set-locale-MQpiifTB.cjs} +1 -1
- package/components/{slicer-filter-positioning.config-7sucz3_y.js → slicer-filter-positioning.config-CiHfPrM5.js} +1 -1
- package/components/{slicer-filter-positioning.config-D9Tehydc.cjs → slicer-filter-positioning.config-bN36DdLc.cjs} +1 -1
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +2 -2
- package/components/{slot-menu-AavTGkLk.cjs → slot-menu-K5QiEu6o.cjs} +1 -1
- package/components/{slot-menu-Dz-O1ypQ.js → slot-menu-Qy35BZZ_.js} +3 -3
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +2 -2
- package/components/{slot-menu-list-BegM0w8C.js → slot-menu-list-BKMbIFg1.js} +1 -1
- package/components/{slot-menu-list-Cahst0TY.cjs → slot-menu-list-DmQe7882.cjs} +1 -1
- package/components/{speedometer-chart-positioning.config-DiDSe44G.js → speedometer-chart-positioning.config-B7M91sKN.js} +1 -1
- package/components/{speedometer-chart-positioning.config-CZgXkEsG.cjs → speedometer-chart-positioning.config-Ce70l0Ei.cjs} +1 -1
- package/components/{spike-map-positioning.config-RExJASrJ.cjs → spike-map-positioning.config-D3wIf0RU.cjs} +1 -1
- package/components/{spike-map-positioning.config-W-xJbchu.js → spike-map-positioning.config-Qf4LOPvB.js} +1 -1
- package/components/{strip-plot-positioning.config-C70pTRqg.cjs → strip-plot-positioning.config-BIoncLjm.cjs} +1 -1
- package/components/{strip-plot-positioning.config-DsKb9ton.js → strip-plot-positioning.config-MbfBVHf8.js} +1 -1
- package/components/{sunburst-chart-positioning.config-BAhEnZtE.js → sunburst-chart-positioning.config-CqyXZPxE.js} +1 -1
- package/components/{sunburst-chart-positioning.config-BHvaDZCC.cjs → sunburst-chart-positioning.config-zqPLL8yF.cjs} +1 -1
- package/components/{symbol-map-positioning.config-B2RZQPND.cjs → symbol-map-positioning.config-CQ4Vxu96.cjs} +1 -1
- package/components/{symbol-map-positioning.config-DNPiG975.js → symbol-map-positioning.config-plXDTBA3.js} +1 -1
- package/components/{treemap-chart-positioning.config-C0LbkC6B.js → treemap-chart-positioning.config-BTGBN1f9.js} +1 -1
- package/components/{treemap-chart-positioning.config-CIYguC9V.cjs → treemap-chart-positioning.config-CSZXzuT5.cjs} +1 -1
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +2 -2
- package/components/{utils-Cx4X0PBr.cjs → utils-BDvDwAn7.cjs} +1 -1
- package/components/{utils-C8ATDm66.js → utils-Z9xbTTWG.js} +1 -1
- package/components/utils.cjs +1 -1
- package/components/utils.js +2 -2
- package/components/{venn-diagram-positioning.config-CGmfYuoj.cjs → venn-diagram-positioning.config-C4vcZDtW.cjs} +1 -1
- package/components/{venn-diagram-positioning.config-CPUT2LXS.js → venn-diagram-positioning.config-fPvrjtfX.js} +1 -1
- package/components/viz-item-menu/index.cjs +1 -1
- package/components/viz-item-menu/index.js +2 -2
- package/components/{viz-item-menu-BKXdr3_Q.cjs → viz-item-menu-DxA295eM.cjs} +1 -1
- package/components/{viz-item-menu-XoCSn7z_.js → viz-item-menu-vckPQBdf.js} +1 -1
- package/components/{wordcloud-chart-positioning.config-roHRUT_m.cjs → wordcloud-chart-positioning.config-Cf1ErL-B.cjs} +1 -1
- package/components/{wordcloud-chart-positioning.config-CqCOWKL4.js → wordcloud-chart-positioning.config-ChUx_Ahc.js} +1 -1
- package/custom-elements.json +1325 -122
- package/index.d.ts +1 -0
- package/package.json +5 -5
- package/react/components/filter-parameter-picker.component.ts +15 -4
- package/react/components/filters.component.ts +9 -3
- package/react/esm/components/filter-parameter-picker.component.d.ts +11 -3
- package/react/esm/components/filter-parameter-picker.component.js +9 -1
- package/react/esm/components/filters.component.d.ts +10 -2
- package/react/esm/components/filters.component.js +6 -2
- package/react/luzmo-stub.d.ts +2 -1
- package/react/package.json +2 -2
- package/storybook/register-components.d.ts +18 -13
- package/utils/formula/store/formula-display-store.d.ts +6 -0
- package/components/ai-chat-CBLWbv9C.cjs +0 -319
- package/components/data-fields-select-CQVqxMCS.cjs +0 -41
- package/components/de-CFFG1QN7.cjs +0 -20
- package/components/display-settings-1AdcENcv.cjs +0 -140
- package/components/es-Bd7rtLnM.cjs +0 -20
- package/components/filter-item-BirgEXGE.cjs +0 -58
- package/components/filters-BLss6wBx.js +0 -407
- package/components/filters-rjc5xsF_.cjs +0 -150
- package/components/formula-display-store-Dn7r5kK8.cjs +0 -20
- package/components/fr-kmzf1vls.cjs +0 -20
- package/components/nl-FcPtgtcL.cjs +0 -20
|
@@ -17,6 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../
|
|
21
|
-
test
|
|
22
|
-
`}};e.t([(0,n.property)({type:String,reflect:!0})],a.prototype,`language`,void 0),e.t([(0,n.property)({type:String,attribute:`content-language`,reflect:!0})],a.prototype,`contentLanguage`,void 0),customElements.get(`luzmo-filter-parameter-picker`)||customElements.define(`luzmo-filter-parameter-picker`,a),exports.LuzmoFilterParameterPicker=a;
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../filter-parameter-picker-CxbAY5hy.cjs");Object.defineProperty(exports,"LuzmoFilterParameterPicker",{enumerable:!0,get:function(){return e.t}}),exports.createFilterParameter=e.n,exports.getDefaultLiteralValue=e.r,exports.getParameterTypeLabel=e.i,exports.getSelectableParameterTypes=e.a,exports.isFilterParameterDefinition=e.o,exports.normalizeParameterName=e.s;
|
|
@@ -5,3 +5,5 @@ declare global {
|
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
7
|
export { LuzmoFilterParameterPicker } from './filter-parameter-picker';
|
|
8
|
+
export type { FilterParameterPickerEventDetail } from './types';
|
|
9
|
+
export { createFilterParameter, getDefaultLiteralValue, getParameterTypeLabel, getSelectableParameterTypes, isFilterParameterDefinition, normalizeParameterName } from './filter-parameter-picker.helpers';
|
|
@@ -21,38 +21,8 @@
|
|
|
21
21
|
(function() {
|
|
22
22
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
23
23
|
let e = document.createElement("style");
|
|
24
|
-
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: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-full-down: color-mix(in oklch, var(--luzmo-border-color-full), black 45%);--luzmo-border-color-full-focus: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--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: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-down: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 7%), black 1%);--luzmo-background-color-focus: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-highlight-down: color-mix(in oklch, var(--luzmo-background-color-highlight), black 20%);--luzmo-background-color-highlight-focus: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--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: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-font-color-down: color-mix(in oklch, var(--luzmo-font-color), black 20%);--luzmo-font-color-focus: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-scrollbar-size: 6px;--luzmo-scrollbar-width: thin;--luzmo-scrollbar-track-background: transparent;--luzmo-scrollbar-track-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-background: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-scrollbar-thumb-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-hover-background: rgba(var(--luzmo-border-color-rgb), 0.4);--luzmo-primary: #4434ff;--luzmo-primary-hover: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-down: color-mix(in oklch, var(--luzmo-primary), black 20%);--luzmo-primary-focus: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-down: color-mix(in oklch, var(--luzmo-secondary), black 20%);--luzmo-secondary-focus: color-mix(in oklch, var(--luzmo-secondary), black 8%);--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: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-down: color-mix(in oklch, var(--luzmo-negative-color), black 20%);--luzmo-negative-color-focus: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-down: color-mix(in oklch, var(--luzmo-positive-color), black 20%);--luzmo-positive-color-focus: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-down: color-mix(in oklch, var(--luzmo-selected-color), black 45%);--luzmo-selected-color-focus: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-selected-color-hard-down: color-mix(in oklch, var(--luzmo-selected-color-hard), black 45%);--luzmo-selected-color-hard-focus: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--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);
|
|
24
|
+
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: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-full-down: color-mix(in oklch, var(--luzmo-border-color-full), black 45%);--luzmo-border-color-full-focus: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--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: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-down: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 7%), black 1%);--luzmo-background-color-focus: color-mix( in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5% );--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-highlight-down: color-mix(in oklch, var(--luzmo-background-color-highlight), black 20%);--luzmo-background-color-highlight-focus: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-alt-1: rgb(250, 250, 250);--luzmo-background-color-alt-2: rgb(239, 239, 239);--luzmo-border-width: 1px;--luzmo-shadow-color-rgb: 0, 0, 0;--luzmo-shadow-opacity: 0.1;--luzmo-shadow-color: rgba(var(--luzmo-shadow-color-rgb), var(--luzmo-shadow-opacity));--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: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-font-color-down: color-mix(in oklch, var(--luzmo-font-color), black 20%);--luzmo-font-color-focus: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-scrollbar-size: 6px;--luzmo-scrollbar-width: thin;--luzmo-scrollbar-track-background: transparent;--luzmo-scrollbar-track-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-background: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-scrollbar-thumb-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-hover-background: rgba(var(--luzmo-border-color-rgb), 0.4);--luzmo-primary: #4434ff;--luzmo-primary-hover: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-down: color-mix(in oklch, var(--luzmo-primary), black 20%);--luzmo-primary-focus: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-down: color-mix(in oklch, var(--luzmo-secondary), black 20%);--luzmo-secondary-focus: color-mix(in oklch, var(--luzmo-secondary), black 8%);--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: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-down: color-mix(in oklch, var(--luzmo-negative-color), black 20%);--luzmo-negative-color-focus: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-down: color-mix(in oklch, var(--luzmo-positive-color), black 20%);--luzmo-positive-color-focus: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-down: color-mix(in oklch, var(--luzmo-selected-color), black 45%);--luzmo-selected-color-focus: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-selected-color-hard-down: color-mix(in oklch, var(--luzmo-selected-color-hard), black 45%);--luzmo-selected-color-hard-focus: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--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);
|
|
25
25
|
}
|
|
26
26
|
})();
|
|
27
|
-
import {
|
|
28
|
-
|
|
29
|
-
import { property as r } from "lit/decorators.js";
|
|
30
|
-
import "@luzmo/lucero/picker";
|
|
31
|
-
import { ElementSizes as i, LuzmoElement as a, SizedMixin as o } from "@luzmo/lucero/utils";
|
|
32
|
-
//#region src/components/filter-parameter-picker/filter-parameter-picker.module.scss?inline
|
|
33
|
-
var s = ":host{--var:blue}", c = class extends o(a, { validSizes: Object.values(i) }) {
|
|
34
|
-
constructor(...e) {
|
|
35
|
-
super(...e), this.language = "en", this.contentLanguage = "en";
|
|
36
|
-
}
|
|
37
|
-
static get styles() {
|
|
38
|
-
return [n(s)];
|
|
39
|
-
}
|
|
40
|
-
willUpdate() {}
|
|
41
|
-
render() {
|
|
42
|
-
return t`
|
|
43
|
-
test
|
|
44
|
-
`;
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region src/components/filter-parameter-picker/index.ts
|
|
49
|
-
e([r({
|
|
50
|
-
type: String,
|
|
51
|
-
reflect: !0
|
|
52
|
-
})], c.prototype, "language", void 0), e([r({
|
|
53
|
-
type: String,
|
|
54
|
-
attribute: "content-language",
|
|
55
|
-
reflect: !0
|
|
56
|
-
})], c.prototype, "contentLanguage", void 0), customElements.get("luzmo-filter-parameter-picker") || customElements.define("luzmo-filter-parameter-picker", c);
|
|
57
|
-
//#endregion
|
|
58
|
-
export { c as LuzmoFilterParameterPicker };
|
|
27
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../filter-parameter-picker-CU48aEOS.js";
|
|
28
|
+
export { o as LuzmoFilterParameterPicker, n as createFilterParameter, i as getDefaultLiteralValue, t as getParameterTypeLabel, e as getSelectableParameterTypes, r as isFilterParameterDefinition, a as normalizeParameterName };
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2026 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
|
7
|
+
* This license allows users with a current active Luzmo account
|
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
+
*
|
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
+
* SOFTWARE.
|
|
19
|
+
* */
|
|
20
|
+
import { t as e } from "./decorate-DyMgX_Uh.js";
|
|
21
|
+
import { t } from "./localized-mixin-D-vXCJuU.js";
|
|
22
|
+
import { t as n } from "./calculate-data-field-icon-DrSg1PuD.js";
|
|
23
|
+
import { luzmoFormula as r } from "@luzmo/icons";
|
|
24
|
+
import "@luzmo/lucero/button";
|
|
25
|
+
import "@luzmo/lucero/icon";
|
|
26
|
+
import "@luzmo/lucero/overlay";
|
|
27
|
+
import "@luzmo/lucero/popover";
|
|
28
|
+
import { html as i, nothing as a, unsafeCSS as o } from "lit";
|
|
29
|
+
import { property as s, query as c, state as l } from "lit/decorators.js";
|
|
30
|
+
import { localized as u, msg as d } from "@lit/localize";
|
|
31
|
+
import "@luzmo/lucero/action-button";
|
|
32
|
+
import "@luzmo/lucero/tags";
|
|
33
|
+
import "@luzmo/lucero/tooltip";
|
|
34
|
+
import { ElementSizes as f, LuzmoElement as p, SizedMixin as m } from "@luzmo/lucero/utils";
|
|
35
|
+
import "@luzmo/lucero/divider";
|
|
36
|
+
import "@luzmo/lucero/options";
|
|
37
|
+
import "@luzmo/lucero/text-field";
|
|
38
|
+
//#region src/components/filter-parameter-picker/filter-parameter-picker.helpers.ts
|
|
39
|
+
var h = /* @__PURE__ */ new Set([
|
|
40
|
+
"? is null",
|
|
41
|
+
"? is not null",
|
|
42
|
+
"? between ?",
|
|
43
|
+
"YTD",
|
|
44
|
+
"QTD",
|
|
45
|
+
"MTD",
|
|
46
|
+
"WTD",
|
|
47
|
+
"to_date",
|
|
48
|
+
"last_available",
|
|
49
|
+
"last_completed",
|
|
50
|
+
"last_now",
|
|
51
|
+
"more_than_ago",
|
|
52
|
+
"or_more_ago",
|
|
53
|
+
"next_now",
|
|
54
|
+
"next_full"
|
|
55
|
+
]), g = /* @__PURE__ */ new Set([
|
|
56
|
+
"? length = ?",
|
|
57
|
+
"? length >= ?",
|
|
58
|
+
"? length <= ?"
|
|
59
|
+
]), _ = /* @__PURE__ */ new Set([
|
|
60
|
+
"? in ?",
|
|
61
|
+
"? not in ?",
|
|
62
|
+
"? includes all ?",
|
|
63
|
+
"? includes any ?",
|
|
64
|
+
"? includes only ?"
|
|
65
|
+
]);
|
|
66
|
+
function v(e, t) {
|
|
67
|
+
return !e || e === "spatial" || !t || h.has(t) ? [] : g.has(t) ? ["numeric"] : e === "numeric" || e === "array[numeric]" ? _.has(t) ? ["array[numeric]"] : ["numeric"] : e === "datetime" || e === "array[datetime]" ? _.has(t) ? ["array[datetime]", "datetime"] : ["datetime", "array[datetime]"] : e === "hierarchy" || e === "array[hierarchy]" ? _.has(t) ? ["array[hierarchy]"] : ["hierarchy"] : [];
|
|
68
|
+
}
|
|
69
|
+
var y = {
|
|
70
|
+
numeric: () => d("Numeric", {
|
|
71
|
+
id: "filter-parameter-type-numeric",
|
|
72
|
+
desc: "Numeric filter parameter type"
|
|
73
|
+
}),
|
|
74
|
+
datetime: () => d("Datetime", {
|
|
75
|
+
id: "filter-parameter-type-datetime",
|
|
76
|
+
desc: "Datetime filter parameter type"
|
|
77
|
+
}),
|
|
78
|
+
hierarchy: () => d("Hierarchy", {
|
|
79
|
+
id: "filter-parameter-type-hierarchy",
|
|
80
|
+
desc: "Hierarchy filter parameter type"
|
|
81
|
+
}),
|
|
82
|
+
"array[numeric]": () => d("Numeric[]", {
|
|
83
|
+
id: "filter-parameter-type-numeric-list",
|
|
84
|
+
desc: "List of numeric values filter parameter type"
|
|
85
|
+
}),
|
|
86
|
+
"array[datetime]": () => d("Datetime[]", {
|
|
87
|
+
id: "filter-parameter-type-datetime-list",
|
|
88
|
+
desc: "List of datetime values filter parameter type"
|
|
89
|
+
}),
|
|
90
|
+
"array[hierarchy]": () => d("Hierarchy[]", {
|
|
91
|
+
id: "filter-parameter-type-hierarchy-list",
|
|
92
|
+
desc: "List of hierarchy values filter parameter type"
|
|
93
|
+
})
|
|
94
|
+
};
|
|
95
|
+
function b(e) {
|
|
96
|
+
return y[e]?.() ?? e;
|
|
97
|
+
}
|
|
98
|
+
function x(e) {
|
|
99
|
+
if (!e || typeof e != "object" || Array.isArray(e)) return !1;
|
|
100
|
+
let t = e;
|
|
101
|
+
return typeof t.parameter == "string" && typeof t.type == "string" && "value" in t;
|
|
102
|
+
}
|
|
103
|
+
function S(e) {
|
|
104
|
+
return `metadata.${e.trim().replace(/^metadata\./i, "")}`;
|
|
105
|
+
}
|
|
106
|
+
function C(e, t, n) {
|
|
107
|
+
let r;
|
|
108
|
+
if (t.startsWith("array[")) r = Array.isArray(n) ? structuredClone(n) : [];
|
|
109
|
+
else if (t === "numeric") r = typeof n == "number" && Number.isFinite(n) ? n : 0;
|
|
110
|
+
else if (t === "datetime") {
|
|
111
|
+
let e = n instanceof Date ? n : new Date(typeof n == "string" ? n : Date.now());
|
|
112
|
+
r = Number.isNaN(e.getTime()) ? (/* @__PURE__ */ new Date()).toISOString() : e.toISOString();
|
|
113
|
+
} else r = typeof n == "string" ? n : "";
|
|
114
|
+
return {
|
|
115
|
+
parameter: S(e),
|
|
116
|
+
type: t,
|
|
117
|
+
value: r
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
function w(e, t) {
|
|
121
|
+
if (!t || t === "? is null" || t === "? is not null") return;
|
|
122
|
+
let [n] = v(e, t);
|
|
123
|
+
if (n?.startsWith("array[")) return [];
|
|
124
|
+
if (n === "numeric") return 0;
|
|
125
|
+
if (n === "datetime") return (/* @__PURE__ */ new Date()).toISOString();
|
|
126
|
+
if (n === "hierarchy") return "";
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/components/filter-parameter-picker/filter-parameter-picker.module.scss?inline
|
|
130
|
+
var T = ":host{min-width:0;max-width:100%;color:var(--luzmo-font-color);font-family:var(--luzmo-font-family);font-size:var(--luzmo-font-size);align-items:center;display:inline-flex;position:relative}.parameter-control{align-items:center;gap:var(--filter-parameter-picker-gap);min-width:0;max-width:100%;display:flex}.create-row{align-items:center;gap:var(--filter-parameter-picker-panel-gap);display:flex}.parameter-trigger,.create-parameter{flex:none}.parameter-trigger{font-weight:var(--luzmo-font-weight-bold)}.selected-parameter-tags{--luzmo-tag-group-item-margin-block:0;min-width:0;max-width:100%}.selected-parameter{--luzmo-tag-max-inline-size:min(180px, 100%);min-width:0;max-width:100%}.parameter-panel{min-inline-size:var(--filter-parameter-picker-panel-min-width);padding:var(--filter-parameter-picker-panel-padding);display:block}.parameter-name-input{--luzmo-text-field-width:100%;flex:1;min-inline-size:0}.panel-content{gap:var(--filter-parameter-picker-panel-gap);flex-direction:column;display:flex}.validation-message{color:var(--filter-parameter-picker-error-color);font-size:var(--luzmo-font-size-s)}.parameter-options{max-block-size:var(--filter-parameter-picker-options-max-height);overflow-y:auto}.parameter-type-footer{gap:var(--filter-parameter-picker-panel-gap);flex-direction:column;display:flex}.parameter-type{justify-content:flex-end;align-items:center;gap:var(--luzmo-spacing-1);font-size:var(--filter-parameter-picker-type-font-size);font-weight:var(--luzmo-font-weight);display:flex}.parameter-type-icon{justify-content:center;align-items:center;min-block-size:24px;min-inline-size:24px;display:inline-flex}:host{--filter-parameter-picker-gap:var(--luzmo-spacing-2);--filter-parameter-picker-control-size:var(--luzmo-component-height);--filter-parameter-picker-panel-min-width:220px;--filter-parameter-picker-options-max-height:240px;--filter-parameter-picker-panel-padding:var(--luzmo-spacing-3);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-3);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-s);--filter-parameter-picker-panel-background:var(--luzmo-background-color);--filter-parameter-picker-panel-border:var(--luzmo-border-color);--filter-parameter-picker-error-color:var(--luzmo-negative-color)}:host([size=xxs]),:host([size=xs]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-2);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-2);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-xs)}:host([size=s]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-3);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-3);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-xs)}:host([size=l]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-4);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-4);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-m)}:host([size=xl]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-4);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-4);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-l)}:host([size=xxl]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-5);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-5);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-xl)}", E = class extends t(m(p, { validSizes: Object.values(f) })) {
|
|
131
|
+
constructor(...e) {
|
|
132
|
+
super(...e), this.parameters = [], this.allowedTypes = [], this.disabled = !1, this._open = !1, this._newParameterName = "", this._handleDocumentClick = (e) => {
|
|
133
|
+
this._open && !e.composedPath().includes(this) && this._close();
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
static get styles() {
|
|
137
|
+
return [...super.styles ?? [], o(T)];
|
|
138
|
+
}
|
|
139
|
+
connectedCallback() {
|
|
140
|
+
super.connectedCallback(), document.addEventListener("click", this._handleDocumentClick);
|
|
141
|
+
}
|
|
142
|
+
disconnectedCallback() {
|
|
143
|
+
document.removeEventListener("click", this._handleDocumentClick), super.disconnectedCallback();
|
|
144
|
+
}
|
|
145
|
+
get _selectableParameters() {
|
|
146
|
+
return this.parameters.filter((e) => this.allowedTypes.includes(e.type));
|
|
147
|
+
}
|
|
148
|
+
get _parameterOptions() {
|
|
149
|
+
return this._selectableParameters.map((e) => ({
|
|
150
|
+
label: e.parameter.replace(/^metadata\./i, ""),
|
|
151
|
+
value: e.parameter
|
|
152
|
+
}));
|
|
153
|
+
}
|
|
154
|
+
get _parameterType() {
|
|
155
|
+
return this.selectedParameter?.type ?? this.allowedTypes[0];
|
|
156
|
+
}
|
|
157
|
+
get _duplicateName() {
|
|
158
|
+
if (!this._hasParameterName) return !1;
|
|
159
|
+
let e = S(this._newParameterName).toLowerCase();
|
|
160
|
+
return this.parameters.some((t) => S(t.parameter).toLowerCase() === e);
|
|
161
|
+
}
|
|
162
|
+
get _triggerIconSize() {
|
|
163
|
+
return {
|
|
164
|
+
xxs: "xs",
|
|
165
|
+
xs: "xs",
|
|
166
|
+
s: "xs",
|
|
167
|
+
m: "xs",
|
|
168
|
+
l: "s",
|
|
169
|
+
xl: "m",
|
|
170
|
+
xxl: "l"
|
|
171
|
+
}[this.size] ?? "xs";
|
|
172
|
+
}
|
|
173
|
+
get _hasParameterName() {
|
|
174
|
+
return S(this._newParameterName).replace(/^metadata\./i, "").trim().length > 0;
|
|
175
|
+
}
|
|
176
|
+
_dispatchSelected(e) {
|
|
177
|
+
this.dispatchEvent(new CustomEvent("luzmo-parameter-selected", {
|
|
178
|
+
bubbles: !0,
|
|
179
|
+
composed: !0,
|
|
180
|
+
detail: { parameter: e }
|
|
181
|
+
}));
|
|
182
|
+
}
|
|
183
|
+
_dispatchCreated(e) {
|
|
184
|
+
this.dispatchEvent(new CustomEvent("luzmo-parameter-created", {
|
|
185
|
+
bubbles: !0,
|
|
186
|
+
composed: !0,
|
|
187
|
+
detail: { parameter: e }
|
|
188
|
+
}));
|
|
189
|
+
}
|
|
190
|
+
_dispatchRemoved(e) {
|
|
191
|
+
this.dispatchEvent(new CustomEvent("luzmo-parameter-removed", {
|
|
192
|
+
bubbles: !0,
|
|
193
|
+
composed: !0,
|
|
194
|
+
detail: { parameter: e }
|
|
195
|
+
}));
|
|
196
|
+
}
|
|
197
|
+
async _handleTriggerClick() {
|
|
198
|
+
this.disabled || this.allowedTypes.length === 0 || !this._overlay || (this._open = !0, this._newParameterName = "", this._overlay.open = !0, await this.updateComplete, this.shadowRoot?.querySelector(".parameter-name-input")?.focusElement.focus());
|
|
199
|
+
}
|
|
200
|
+
_handleTriggerKeydown(e) {
|
|
201
|
+
e.key !== "Enter" && e.key !== " " && e.key !== "Space" || (e.preventDefault(), this._handleTriggerClick());
|
|
202
|
+
}
|
|
203
|
+
_handleOpened() {
|
|
204
|
+
this.shadowRoot?.querySelector(".parameter-name-input")?.focusElement.focus();
|
|
205
|
+
}
|
|
206
|
+
_handleClosed() {
|
|
207
|
+
this._open = !1, this._newParameterName = "";
|
|
208
|
+
}
|
|
209
|
+
_close() {
|
|
210
|
+
this._overlay && (this._overlay.open = !1), this._handleClosed(), this._triggerElement?.focusElement.focus();
|
|
211
|
+
}
|
|
212
|
+
_handlePanelKeydown(e) {
|
|
213
|
+
e.key === "Escape" && (e.preventDefault(), this._close());
|
|
214
|
+
}
|
|
215
|
+
_handleNameInput(e) {
|
|
216
|
+
this._newParameterName = e.currentTarget.value;
|
|
217
|
+
}
|
|
218
|
+
_selectParameter(e) {
|
|
219
|
+
this.selectedParameter = e, this._dispatchSelected(e), this._close();
|
|
220
|
+
}
|
|
221
|
+
_handleOptionsChange(e) {
|
|
222
|
+
e.stopPropagation();
|
|
223
|
+
let [t] = e.detail.value, n = this._selectableParameters.find((e) => e.parameter === t);
|
|
224
|
+
n && this._selectParameter(n);
|
|
225
|
+
}
|
|
226
|
+
async _handleCreateParameter() {
|
|
227
|
+
let e = this.allowedTypes[0];
|
|
228
|
+
if (!e || !this._hasParameterName || this._duplicateName) return;
|
|
229
|
+
let t = C(this._newParameterName, e, this.currentValue);
|
|
230
|
+
this.parameters = [...this.parameters, t], this._newParameterName = "", this._dispatchCreated(t), await this.updateComplete, this.shadowRoot?.querySelector(".parameter-name-input")?.focusElement.focus();
|
|
231
|
+
}
|
|
232
|
+
_handleNameKeydown(e) {
|
|
233
|
+
if (e.key === "Enter") {
|
|
234
|
+
e.preventDefault(), this._handleCreateParameter();
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
e.key === "ArrowDown" && this._optionsElement && (e.preventDefault(), this._optionsElement.focus());
|
|
238
|
+
}
|
|
239
|
+
_handleRemoveParameter() {
|
|
240
|
+
this.selectedParameter && this._dispatchRemoved(this.selectedParameter);
|
|
241
|
+
}
|
|
242
|
+
_renderParameterType() {
|
|
243
|
+
let e = this._parameterType;
|
|
244
|
+
if (!e) return a;
|
|
245
|
+
let t = b(e);
|
|
246
|
+
return i`
|
|
247
|
+
<div class="parameter-type-footer">
|
|
248
|
+
<luzmo-divider class="parameter-type-divider" size="s"></luzmo-divider>
|
|
249
|
+
<div class="parameter-type">
|
|
250
|
+
<span>${d("Parameter type:", { desc: "Label preceding the type of the filter parameter" })}</span>
|
|
251
|
+
<span class="parameter-type-icon" tabindex="0" role="img" aria-label=${t}>
|
|
252
|
+
<luzmo-icon
|
|
253
|
+
aria-hidden="true"
|
|
254
|
+
.icon=${n({ type: e }, "s")}
|
|
255
|
+
size="s"
|
|
256
|
+
></luzmo-icon>
|
|
257
|
+
<luzmo-tooltip self-managed placement="top" .size=${this.size}>${t}</luzmo-tooltip>
|
|
258
|
+
</span>
|
|
259
|
+
</div>
|
|
260
|
+
</div>
|
|
261
|
+
`;
|
|
262
|
+
}
|
|
263
|
+
render() {
|
|
264
|
+
let e = this.selectedParameter?.parameter.replace(/^metadata\./i, ""), t = !this._hasParameterName || this._duplicateName;
|
|
265
|
+
return i`
|
|
266
|
+
<div class="parameter-control">
|
|
267
|
+
${this.selectedParameter ? i`
|
|
268
|
+
<luzmo-tags class="selected-parameter-tags">
|
|
269
|
+
<luzmo-tag
|
|
270
|
+
class="selected-parameter"
|
|
271
|
+
size=${this.size}
|
|
272
|
+
variant="accent"
|
|
273
|
+
treatment="fill"
|
|
274
|
+
?deletable=${!this.disabled}
|
|
275
|
+
?disabled=${this.disabled}
|
|
276
|
+
aria-label=${d("Remove parameter", { desc: "Detach a parameter from a filter" })}
|
|
277
|
+
@delete=${this._handleRemoveParameter}
|
|
278
|
+
>
|
|
279
|
+
${e}
|
|
280
|
+
</luzmo-tag>
|
|
281
|
+
</luzmo-tags>
|
|
282
|
+
` : a}
|
|
283
|
+
<luzmo-action-button
|
|
284
|
+
id="parameter-trigger"
|
|
285
|
+
class="parameter-trigger"
|
|
286
|
+
size=${this.size}
|
|
287
|
+
?quiet=${!this.selectedParameter}
|
|
288
|
+
.variant=${this.selectedParameter ? "primary" : "neutral"}
|
|
289
|
+
aria-label=${d("Use parameter", { desc: "Open the filter parameter picker" })}
|
|
290
|
+
.label=${d("Use parameter", { desc: "Open the filter parameter picker" })}
|
|
291
|
+
aria-haspopup="dialog"
|
|
292
|
+
aria-expanded=${this._open ? "true" : "false"}
|
|
293
|
+
.disabled=${this.disabled || this.allowedTypes.length === 0}
|
|
294
|
+
@click=${this._handleTriggerClick}
|
|
295
|
+
@keydown=${this._handleTriggerKeydown}
|
|
296
|
+
>
|
|
297
|
+
<luzmo-icon slot="icon" .icon=${r} .size=${this._triggerIconSize}></luzmo-icon>
|
|
298
|
+
</luzmo-action-button>
|
|
299
|
+
<luzmo-overlay
|
|
300
|
+
type="manual"
|
|
301
|
+
placement="bottom-end"
|
|
302
|
+
trigger="parameter-trigger"
|
|
303
|
+
receives-focus="false"
|
|
304
|
+
@luzmo-opened=${this._handleOpened}
|
|
305
|
+
@luzmo-closed=${this._handleClosed}
|
|
306
|
+
>
|
|
307
|
+
<luzmo-popover
|
|
308
|
+
class="parameter-panel"
|
|
309
|
+
size=${this.size}
|
|
310
|
+
role="dialog"
|
|
311
|
+
aria-label=${d("Filter parameters", { desc: "Filter parameter picker dialog label" })}
|
|
312
|
+
@keydown=${this._handlePanelKeydown}
|
|
313
|
+
>
|
|
314
|
+
<div class="panel-content">
|
|
315
|
+
<div class="create-row">
|
|
316
|
+
<luzmo-text-field
|
|
317
|
+
id="parameter-name"
|
|
318
|
+
class="parameter-name-input"
|
|
319
|
+
size=${this.size}
|
|
320
|
+
.label=${d("Parameter name", { desc: "Name for a new filter parameter" })}
|
|
321
|
+
.placeholder=${d("New parameter…", { desc: "Placeholder of the new filter parameter name field" })}
|
|
322
|
+
.invalid=${this._duplicateName}
|
|
323
|
+
.value=${this._newParameterName}
|
|
324
|
+
@input=${this._handleNameInput}
|
|
325
|
+
@keydown=${this._handleNameKeydown}
|
|
326
|
+
></luzmo-text-field>
|
|
327
|
+
<luzmo-button
|
|
328
|
+
class="create-parameter"
|
|
329
|
+
size=${this.size}
|
|
330
|
+
variant="primary"
|
|
331
|
+
?disabled=${t}
|
|
332
|
+
@click=${this._handleCreateParameter}
|
|
333
|
+
>
|
|
334
|
+
${d("Add", { desc: "Create a new filter parameter" })}
|
|
335
|
+
</luzmo-button>
|
|
336
|
+
</div>
|
|
337
|
+
${this._duplicateName ? i`<div class="validation-message" role="alert">
|
|
338
|
+
${d("A parameter with this name already exists.", { desc: "Duplicate filter parameter name error" })}
|
|
339
|
+
</div>` : a}
|
|
340
|
+
${this._parameterOptions.length > 0 ? i`<luzmo-options
|
|
341
|
+
class="parameter-options"
|
|
342
|
+
size=${this.size}
|
|
343
|
+
.label=${d("Available parameters", { desc: "Accessible label of the filter parameter list" })}
|
|
344
|
+
.options=${this._parameterOptions}
|
|
345
|
+
.value=${this.selectedParameter ? [this.selectedParameter.parameter] : []}
|
|
346
|
+
@change=${this._handleOptionsChange}
|
|
347
|
+
></luzmo-options>` : a}
|
|
348
|
+
${this._renderParameterType()}
|
|
349
|
+
</div>
|
|
350
|
+
</luzmo-popover>
|
|
351
|
+
</luzmo-overlay>
|
|
352
|
+
</div>
|
|
353
|
+
`;
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
//#endregion
|
|
357
|
+
//#region src/components/filter-parameter-picker/index.ts
|
|
358
|
+
e([s({ attribute: !1 })], E.prototype, "parameters", void 0), e([s({ attribute: !1 })], E.prototype, "allowedTypes", void 0), e([s({ attribute: !1 })], E.prototype, "selectedParameter", void 0), e([s({ attribute: !1 })], E.prototype, "currentValue", void 0), e([s({
|
|
359
|
+
type: Boolean,
|
|
360
|
+
reflect: !0
|
|
361
|
+
})], E.prototype, "disabled", void 0), e([l()], E.prototype, "_open", void 0), e([l()], E.prototype, "_newParameterName", void 0), e([c("luzmo-overlay")], E.prototype, "_overlay", void 0), e([c(".parameter-trigger")], E.prototype, "_triggerElement", void 0), e([c(".parameter-options")], E.prototype, "_optionsElement", void 0), E = e([u()], E), typeof customElements < "u" && !customElements.get("luzmo-filter-parameter-picker") && customElements.define("luzmo-filter-parameter-picker", E);
|
|
362
|
+
//#endregion
|
|
363
|
+
export { v as a, b as i, C as n, x as o, w as r, S as s, E as t };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2026 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
|
7
|
+
* This license allows users with a current active Luzmo account
|
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
+
*
|
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
+
* SOFTWARE.
|
|
19
|
+
* */
|
|
20
|
+
const e=require("./decorate-DCJt-2rt.cjs"),t=require("./localized-mixin-BForHr3t.cjs"),n=require("./calculate-data-field-icon-DenGmW74.cjs");let r=require("@luzmo/icons");require("@luzmo/lucero/button"),require("@luzmo/lucero/icon"),require("@luzmo/lucero/overlay"),require("@luzmo/lucero/popover");let i=require("lit"),a=require("lit/decorators.js"),o=require("@lit/localize");require("@luzmo/lucero/action-button"),require("@luzmo/lucero/tags"),require("@luzmo/lucero/tooltip");let s=require("@luzmo/lucero/utils");require("@luzmo/lucero/divider"),require("@luzmo/lucero/options"),require("@luzmo/lucero/text-field");var c=new Set([`? is null`,`? is not null`,`? between ?`,`YTD`,`QTD`,`MTD`,`WTD`,`to_date`,`last_available`,`last_completed`,`last_now`,`more_than_ago`,`or_more_ago`,`next_now`,`next_full`]),l=new Set([`? length = ?`,`? length >= ?`,`? length <= ?`]),u=new Set([`? in ?`,`? not in ?`,`? includes all ?`,`? includes any ?`,`? includes only ?`]);function d(e,t){return!e||e===`spatial`||!t||c.has(t)?[]:l.has(t)?[`numeric`]:e===`numeric`||e===`array[numeric]`?u.has(t)?[`array[numeric]`]:[`numeric`]:e===`datetime`||e===`array[datetime]`?u.has(t)?[`array[datetime]`,`datetime`]:[`datetime`,`array[datetime]`]:e===`hierarchy`||e===`array[hierarchy]`?u.has(t)?[`array[hierarchy]`]:[`hierarchy`]:[]}var f={numeric:()=>(0,o.msg)(`Numeric`,{id:`filter-parameter-type-numeric`,desc:`Numeric filter parameter type`}),datetime:()=>(0,o.msg)(`Datetime`,{id:`filter-parameter-type-datetime`,desc:`Datetime filter parameter type`}),hierarchy:()=>(0,o.msg)(`Hierarchy`,{id:`filter-parameter-type-hierarchy`,desc:`Hierarchy filter parameter type`}),"array[numeric]":()=>(0,o.msg)(`Numeric[]`,{id:`filter-parameter-type-numeric-list`,desc:`List of numeric values filter parameter type`}),"array[datetime]":()=>(0,o.msg)(`Datetime[]`,{id:`filter-parameter-type-datetime-list`,desc:`List of datetime values filter parameter type`}),"array[hierarchy]":()=>(0,o.msg)(`Hierarchy[]`,{id:`filter-parameter-type-hierarchy-list`,desc:`List of hierarchy values filter parameter type`})};function p(e){return f[e]?.()??e}function m(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return typeof t.parameter==`string`&&typeof t.type==`string`&&`value`in t}function h(e){return`metadata.${e.trim().replace(/^metadata\./i,``)}`}function g(e,t,n){let r;if(t.startsWith(`array[`))r=Array.isArray(n)?structuredClone(n):[];else if(t===`numeric`)r=typeof n==`number`&&Number.isFinite(n)?n:0;else if(t===`datetime`){let e=n instanceof Date?n:new Date(typeof n==`string`?n:Date.now());r=Number.isNaN(e.getTime())?new Date().toISOString():e.toISOString()}else r=typeof n==`string`?n:``;return{parameter:h(e),type:t,value:r}}function _(e,t){if(!t||t===`? is null`||t===`? is not null`)return;let[n]=d(e,t);if(n?.startsWith(`array[`))return[];if(n===`numeric`)return 0;if(n===`datetime`)return new Date().toISOString();if(n===`hierarchy`)return``}var v=`:host{min-width:0;max-width:100%;color:var(--luzmo-font-color);font-family:var(--luzmo-font-family);font-size:var(--luzmo-font-size);align-items:center;display:inline-flex;position:relative}.parameter-control{align-items:center;gap:var(--filter-parameter-picker-gap);min-width:0;max-width:100%;display:flex}.create-row{align-items:center;gap:var(--filter-parameter-picker-panel-gap);display:flex}.parameter-trigger,.create-parameter{flex:none}.parameter-trigger{font-weight:var(--luzmo-font-weight-bold)}.selected-parameter-tags{--luzmo-tag-group-item-margin-block:0;min-width:0;max-width:100%}.selected-parameter{--luzmo-tag-max-inline-size:min(180px, 100%);min-width:0;max-width:100%}.parameter-panel{min-inline-size:var(--filter-parameter-picker-panel-min-width);padding:var(--filter-parameter-picker-panel-padding);display:block}.parameter-name-input{--luzmo-text-field-width:100%;flex:1;min-inline-size:0}.panel-content{gap:var(--filter-parameter-picker-panel-gap);flex-direction:column;display:flex}.validation-message{color:var(--filter-parameter-picker-error-color);font-size:var(--luzmo-font-size-s)}.parameter-options{max-block-size:var(--filter-parameter-picker-options-max-height);overflow-y:auto}.parameter-type-footer{gap:var(--filter-parameter-picker-panel-gap);flex-direction:column;display:flex}.parameter-type{justify-content:flex-end;align-items:center;gap:var(--luzmo-spacing-1);font-size:var(--filter-parameter-picker-type-font-size);font-weight:var(--luzmo-font-weight);display:flex}.parameter-type-icon{justify-content:center;align-items:center;min-block-size:24px;min-inline-size:24px;display:inline-flex}:host{--filter-parameter-picker-gap:var(--luzmo-spacing-2);--filter-parameter-picker-control-size:var(--luzmo-component-height);--filter-parameter-picker-panel-min-width:220px;--filter-parameter-picker-options-max-height:240px;--filter-parameter-picker-panel-padding:var(--luzmo-spacing-3);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-3);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-s);--filter-parameter-picker-panel-background:var(--luzmo-background-color);--filter-parameter-picker-panel-border:var(--luzmo-border-color);--filter-parameter-picker-error-color:var(--luzmo-negative-color)}:host([size=xxs]),:host([size=xs]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-2);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-2);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-xs)}:host([size=s]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-3);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-3);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-xs)}:host([size=l]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-4);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-4);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-m)}:host([size=xl]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-4);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-4);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-l)}:host([size=xxl]){--filter-parameter-picker-panel-padding:var(--luzmo-spacing-5);--filter-parameter-picker-panel-gap:var(--luzmo-spacing-5);--filter-parameter-picker-type-font-size:var(--luzmo-font-size-xl)}`,y=class extends t.t((0,s.SizedMixin)(s.LuzmoElement,{validSizes:Object.values(s.ElementSizes)})){constructor(...e){super(...e),this.parameters=[],this.allowedTypes=[],this.disabled=!1,this._open=!1,this._newParameterName=``,this._handleDocumentClick=e=>{this._open&&!e.composedPath().includes(this)&&this._close()}}static get styles(){return[...super.styles??[],(0,i.unsafeCSS)(v)]}connectedCallback(){super.connectedCallback(),document.addEventListener(`click`,this._handleDocumentClick)}disconnectedCallback(){document.removeEventListener(`click`,this._handleDocumentClick),super.disconnectedCallback()}get _selectableParameters(){return this.parameters.filter(e=>this.allowedTypes.includes(e.type))}get _parameterOptions(){return this._selectableParameters.map(e=>({label:e.parameter.replace(/^metadata\./i,``),value:e.parameter}))}get _parameterType(){return this.selectedParameter?.type??this.allowedTypes[0]}get _duplicateName(){if(!this._hasParameterName)return!1;let e=h(this._newParameterName).toLowerCase();return this.parameters.some(t=>h(t.parameter).toLowerCase()===e)}get _triggerIconSize(){return{xxs:`xs`,xs:`xs`,s:`xs`,m:`xs`,l:`s`,xl:`m`,xxl:`l`}[this.size]??`xs`}get _hasParameterName(){return h(this._newParameterName).replace(/^metadata\./i,``).trim().length>0}_dispatchSelected(e){this.dispatchEvent(new CustomEvent(`luzmo-parameter-selected`,{bubbles:!0,composed:!0,detail:{parameter:e}}))}_dispatchCreated(e){this.dispatchEvent(new CustomEvent(`luzmo-parameter-created`,{bubbles:!0,composed:!0,detail:{parameter:e}}))}_dispatchRemoved(e){this.dispatchEvent(new CustomEvent(`luzmo-parameter-removed`,{bubbles:!0,composed:!0,detail:{parameter:e}}))}async _handleTriggerClick(){this.disabled||this.allowedTypes.length===0||!this._overlay||(this._open=!0,this._newParameterName=``,this._overlay.open=!0,await this.updateComplete,this.shadowRoot?.querySelector(`.parameter-name-input`)?.focusElement.focus())}_handleTriggerKeydown(e){e.key!==`Enter`&&e.key!==` `&&e.key!==`Space`||(e.preventDefault(),this._handleTriggerClick())}_handleOpened(){this.shadowRoot?.querySelector(`.parameter-name-input`)?.focusElement.focus()}_handleClosed(){this._open=!1,this._newParameterName=``}_close(){this._overlay&&(this._overlay.open=!1),this._handleClosed(),this._triggerElement?.focusElement.focus()}_handlePanelKeydown(e){e.key===`Escape`&&(e.preventDefault(),this._close())}_handleNameInput(e){this._newParameterName=e.currentTarget.value}_selectParameter(e){this.selectedParameter=e,this._dispatchSelected(e),this._close()}_handleOptionsChange(e){e.stopPropagation();let[t]=e.detail.value,n=this._selectableParameters.find(e=>e.parameter===t);n&&this._selectParameter(n)}async _handleCreateParameter(){let e=this.allowedTypes[0];if(!e||!this._hasParameterName||this._duplicateName)return;let t=g(this._newParameterName,e,this.currentValue);this.parameters=[...this.parameters,t],this._newParameterName=``,this._dispatchCreated(t),await this.updateComplete,this.shadowRoot?.querySelector(`.parameter-name-input`)?.focusElement.focus()}_handleNameKeydown(e){if(e.key===`Enter`){e.preventDefault(),this._handleCreateParameter();return}e.key===`ArrowDown`&&this._optionsElement&&(e.preventDefault(),this._optionsElement.focus())}_handleRemoveParameter(){this.selectedParameter&&this._dispatchRemoved(this.selectedParameter)}_renderParameterType(){let e=this._parameterType;if(!e)return i.nothing;let t=p(e);return i.html`
|
|
21
|
+
<div class="parameter-type-footer">
|
|
22
|
+
<luzmo-divider class="parameter-type-divider" size="s"></luzmo-divider>
|
|
23
|
+
<div class="parameter-type">
|
|
24
|
+
<span>${(0,o.msg)(`Parameter type:`,{desc:`Label preceding the type of the filter parameter`})}</span>
|
|
25
|
+
<span class="parameter-type-icon" tabindex="0" role="img" aria-label=${t}>
|
|
26
|
+
<luzmo-icon
|
|
27
|
+
aria-hidden="true"
|
|
28
|
+
.icon=${n.t({type:e},`s`)}
|
|
29
|
+
size="s"
|
|
30
|
+
></luzmo-icon>
|
|
31
|
+
<luzmo-tooltip self-managed placement="top" .size=${this.size}>${t}</luzmo-tooltip>
|
|
32
|
+
</span>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
`}render(){let e=this.selectedParameter?.parameter.replace(/^metadata\./i,``),t=!this._hasParameterName||this._duplicateName;return i.html`
|
|
36
|
+
<div class="parameter-control">
|
|
37
|
+
${this.selectedParameter?i.html`
|
|
38
|
+
<luzmo-tags class="selected-parameter-tags">
|
|
39
|
+
<luzmo-tag
|
|
40
|
+
class="selected-parameter"
|
|
41
|
+
size=${this.size}
|
|
42
|
+
variant="accent"
|
|
43
|
+
treatment="fill"
|
|
44
|
+
?deletable=${!this.disabled}
|
|
45
|
+
?disabled=${this.disabled}
|
|
46
|
+
aria-label=${(0,o.msg)(`Remove parameter`,{desc:`Detach a parameter from a filter`})}
|
|
47
|
+
@delete=${this._handleRemoveParameter}
|
|
48
|
+
>
|
|
49
|
+
${e}
|
|
50
|
+
</luzmo-tag>
|
|
51
|
+
</luzmo-tags>
|
|
52
|
+
`:i.nothing}
|
|
53
|
+
<luzmo-action-button
|
|
54
|
+
id="parameter-trigger"
|
|
55
|
+
class="parameter-trigger"
|
|
56
|
+
size=${this.size}
|
|
57
|
+
?quiet=${!this.selectedParameter}
|
|
58
|
+
.variant=${this.selectedParameter?`primary`:`neutral`}
|
|
59
|
+
aria-label=${(0,o.msg)(`Use parameter`,{desc:`Open the filter parameter picker`})}
|
|
60
|
+
.label=${(0,o.msg)(`Use parameter`,{desc:`Open the filter parameter picker`})}
|
|
61
|
+
aria-haspopup="dialog"
|
|
62
|
+
aria-expanded=${this._open?`true`:`false`}
|
|
63
|
+
.disabled=${this.disabled||this.allowedTypes.length===0}
|
|
64
|
+
@click=${this._handleTriggerClick}
|
|
65
|
+
@keydown=${this._handleTriggerKeydown}
|
|
66
|
+
>
|
|
67
|
+
<luzmo-icon slot="icon" .icon=${r.luzmoFormula} .size=${this._triggerIconSize}></luzmo-icon>
|
|
68
|
+
</luzmo-action-button>
|
|
69
|
+
<luzmo-overlay
|
|
70
|
+
type="manual"
|
|
71
|
+
placement="bottom-end"
|
|
72
|
+
trigger="parameter-trigger"
|
|
73
|
+
receives-focus="false"
|
|
74
|
+
@luzmo-opened=${this._handleOpened}
|
|
75
|
+
@luzmo-closed=${this._handleClosed}
|
|
76
|
+
>
|
|
77
|
+
<luzmo-popover
|
|
78
|
+
class="parameter-panel"
|
|
79
|
+
size=${this.size}
|
|
80
|
+
role="dialog"
|
|
81
|
+
aria-label=${(0,o.msg)(`Filter parameters`,{desc:`Filter parameter picker dialog label`})}
|
|
82
|
+
@keydown=${this._handlePanelKeydown}
|
|
83
|
+
>
|
|
84
|
+
<div class="panel-content">
|
|
85
|
+
<div class="create-row">
|
|
86
|
+
<luzmo-text-field
|
|
87
|
+
id="parameter-name"
|
|
88
|
+
class="parameter-name-input"
|
|
89
|
+
size=${this.size}
|
|
90
|
+
.label=${(0,o.msg)(`Parameter name`,{desc:`Name for a new filter parameter`})}
|
|
91
|
+
.placeholder=${(0,o.msg)(`New parameter…`,{desc:`Placeholder of the new filter parameter name field`})}
|
|
92
|
+
.invalid=${this._duplicateName}
|
|
93
|
+
.value=${this._newParameterName}
|
|
94
|
+
@input=${this._handleNameInput}
|
|
95
|
+
@keydown=${this._handleNameKeydown}
|
|
96
|
+
></luzmo-text-field>
|
|
97
|
+
<luzmo-button
|
|
98
|
+
class="create-parameter"
|
|
99
|
+
size=${this.size}
|
|
100
|
+
variant="primary"
|
|
101
|
+
?disabled=${t}
|
|
102
|
+
@click=${this._handleCreateParameter}
|
|
103
|
+
>
|
|
104
|
+
${(0,o.msg)(`Add`,{desc:`Create a new filter parameter`})}
|
|
105
|
+
</luzmo-button>
|
|
106
|
+
</div>
|
|
107
|
+
${this._duplicateName?i.html`<div class="validation-message" role="alert">
|
|
108
|
+
${(0,o.msg)(`A parameter with this name already exists.`,{desc:`Duplicate filter parameter name error`})}
|
|
109
|
+
</div>`:i.nothing}
|
|
110
|
+
${this._parameterOptions.length>0?i.html`<luzmo-options
|
|
111
|
+
class="parameter-options"
|
|
112
|
+
size=${this.size}
|
|
113
|
+
.label=${(0,o.msg)(`Available parameters`,{desc:`Accessible label of the filter parameter list`})}
|
|
114
|
+
.options=${this._parameterOptions}
|
|
115
|
+
.value=${this.selectedParameter?[this.selectedParameter.parameter]:[]}
|
|
116
|
+
@change=${this._handleOptionsChange}
|
|
117
|
+
></luzmo-options>`:i.nothing}
|
|
118
|
+
${this._renderParameterType()}
|
|
119
|
+
</div>
|
|
120
|
+
</luzmo-popover>
|
|
121
|
+
</luzmo-overlay>
|
|
122
|
+
</div>
|
|
123
|
+
`}};e.t([(0,a.property)({attribute:!1})],y.prototype,`parameters`,void 0),e.t([(0,a.property)({attribute:!1})],y.prototype,`allowedTypes`,void 0),e.t([(0,a.property)({attribute:!1})],y.prototype,`selectedParameter`,void 0),e.t([(0,a.property)({attribute:!1})],y.prototype,`currentValue`,void 0),e.t([(0,a.property)({type:Boolean,reflect:!0})],y.prototype,`disabled`,void 0),e.t([(0,a.state)()],y.prototype,`_open`,void 0),e.t([(0,a.state)()],y.prototype,`_newParameterName`,void 0),e.t([(0,a.query)(`luzmo-overlay`)],y.prototype,`_overlay`,void 0),e.t([(0,a.query)(`.parameter-trigger`)],y.prototype,`_triggerElement`,void 0),e.t([(0,a.query)(`.parameter-options`)],y.prototype,`_optionsElement`,void 0),y=e.t([(0,o.localized)()],y),typeof customElements<`u`&&!customElements.get(`luzmo-filter-parameter-picker`)&&customElements.define(`luzmo-filter-parameter-picker`,y),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return y}});
|
|
@@ -14,6 +14,7 @@ declare const LuzmoFilterValuePicker_base: (new (...args: any[]) => {
|
|
|
14
14
|
/**
|
|
15
15
|
* @customElement luzmo-filter-value-picker
|
|
16
16
|
* @fires {CustomEvent} luzmo-filter-value-changed - Fired when the filter value changes; `detail.value` holds the new value.
|
|
17
|
+
* @cssprop --luzmo-filter-value-picker-control-min-width - Smallest width a value control may shrink to in a narrow filter row.
|
|
17
18
|
*/
|
|
18
19
|
export declare class LuzmoFilterValuePicker extends LuzmoFilterValuePicker_base {
|
|
19
20
|
static get styles(): CSSResultArray;
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../filter-value-picker-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../filter-value-picker-CRrUhngj.cjs");exports.LuzmoFilterValuePicker=e.t;
|