@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,11 +17,11 @@
|
|
|
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 { d as v } from "../index-
|
|
21
|
-
import { l as _ } from "../localize-
|
|
22
|
-
import { g as y } from "../set-locale-
|
|
23
|
-
import { LitElement as x, unsafeCSS as k, html as
|
|
24
|
-
import { property as
|
|
20
|
+
import { d as v } from "../index-BikhVAa1.js";
|
|
21
|
+
import { l as _ } from "../localize-CcDpq940.js";
|
|
22
|
+
import { g as y } from "../set-locale-B5562CBM.js";
|
|
23
|
+
import { LitElement as x, unsafeCSS as k, html as n, nothing as b } from "lit";
|
|
24
|
+
import { property as c, state as f } from "lit/decorators.js";
|
|
25
25
|
import { repeat as w } from "lit/directives/repeat.js";
|
|
26
26
|
import "../dataset-icon/index.js";
|
|
27
27
|
(function() {
|
|
@@ -30,7 +30,7 @@ import "../dataset-icon/index.js";
|
|
|
30
30
|
t.setAttribute("data-luzmo-vars", ""), t.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(t);
|
|
31
31
|
}
|
|
32
32
|
})();
|
|
33
|
-
const D = ":host{box-sizing:border-box;display:flex;flex-direction:column;height:100%;font-family:var(--luzmo-dataset-selector-list-font-family, var(--dataset-selector-list-font-family));color:var(--luzmo-dataset-selector-list-color)}:host .dataset-selector-list{display:flex;flex-direction:column;gap:var(--luzmo-dataset-selector-list-gap, var(--dataset-selector-list-gap));height:100%;background:var(--luzmo-dataset-selector-list-background, var(--dataset-selector-list-background));padding:var(--luzmo-dataset-selector-list-padding, var(--dataset-selector-list-padding));border-radius:var(--luzmo-dataset-selector-list-border-radius, var(--dataset-selector-list-border-radius))}:host .search-input{background-color:var(--luzmo-dataset-selector-list-input-background, var(--dataset-selector-list-input-background));border:none;border-bottom:1px solid var(--luzmo-dataset-selector-list-input-border-color, var(--dataset-selector-list-input-border-color));color:var(--luzmo-dataset-selector-list-input-color, var(--dataset-selector-list-input-color));line-height:var(--luzmo-dataset-selector-list-input-line-height, var(--dataset-selector-list-input-line-height));font-size:var(--luzmo-dataset-selector-list-input-font-size, var(--dataset-selector-list-input-font-size));margin:0;outline:none;padding:var(--luzmo-dataset-selector-list-input-padding, var(--dataset-selector-list-input-padding));width:100%;box-sizing:border-box}:host .search-input::placeholder{color:var(--luzmo-font-color-tertiary, #999)}:host .datasets-scroll-container{flex:1;overflow-y:auto;overflow-x:hidden;min-height:0
|
|
33
|
+
const D = ":host{box-sizing:border-box;display:flex;flex-direction:column;height:100%;font-family:var(--luzmo-dataset-selector-list-font-family, var(--dataset-selector-list-font-family));color:var(--luzmo-dataset-selector-list-color)}:host .dataset-selector-list{display:flex;flex-direction:column;gap:var(--luzmo-dataset-selector-list-gap, var(--dataset-selector-list-gap));height:100%;background:var(--luzmo-dataset-selector-list-background, var(--dataset-selector-list-background));padding:var(--luzmo-dataset-selector-list-padding, var(--dataset-selector-list-padding));border-radius:var(--luzmo-dataset-selector-list-border-radius, var(--dataset-selector-list-border-radius))}:host .search-input{background-color:var(--luzmo-dataset-selector-list-input-background, var(--dataset-selector-list-input-background));border:none;border-bottom:1px solid var(--luzmo-dataset-selector-list-input-border-color, var(--dataset-selector-list-input-border-color));color:var(--luzmo-dataset-selector-list-input-color, var(--dataset-selector-list-input-color));line-height:var(--luzmo-dataset-selector-list-input-line-height, var(--dataset-selector-list-input-line-height));font-size:var(--luzmo-dataset-selector-list-input-font-size, var(--dataset-selector-list-input-font-size));margin:0;outline:none;padding:var(--luzmo-dataset-selector-list-input-padding, var(--dataset-selector-list-input-padding));width:100%;box-sizing:border-box}:host .search-input::placeholder{color:var(--luzmo-font-color-tertiary, #999)}:host .datasets-scroll-container{flex:1;overflow-y:auto;overflow-x:hidden;min-height:0}:host .datasets-scroll-container::-webkit-scrollbar{width:var(--luzmo-dataset-selector-list-scrollbar-width, var(--dataset-selector-list-scrollbar-width))}:host .datasets-scroll-container::-webkit-scrollbar-track{background:var(--luzmo-dataset-selector-list-scrollbar-track-background, var(--dataset-selector-list-scrollbar-track-background));border-radius:var(--luzmo-dataset-selector-list-scrollbar-track-border-radius, var(--dataset-selector-list-scrollbar-track-border-radius))}:host .datasets-scroll-container::-webkit-scrollbar-thumb{background:var(--luzmo-dataset-selector-list-scrollbar-thumb-background, var(--dataset-selector-list-scrollbar-thumb-background));border-radius:var(--luzmo-dataset-selector-list-scrollbar-thumb-border-radius, var(--dataset-selector-list-scrollbar-thumb-border-radius))}:host .datasets-scroll-container::-webkit-scrollbar-thumb:hover{background:var(--luzmo-dataset-selector-list-scrollbar-thumb-hover-background, var(--dataset-selector-list-scrollbar-thumb-hover-background))}:host .datasets-scroll-container{scrollbar-width:thin;scrollbar-color:var(--luzmo-dataset-selector-list-scrollbar-thumb-background, var(--dataset-selector-list-scrollbar-thumb-background)) var(--luzmo-dataset-selector-list-scrollbar-track-background, var(--dataset-selector-list-scrollbar-track-background))}:host .datasets-list{display:flex;flex-direction:column}:host .available-dataset-item{padding:var(--luzmo-dataset-selector-list-item-padding, var(--dataset-selector-list-item-padding));color:var(--luzmo-dataset-selector-available-dataset-color, var(--dataset-selector-available-dataset-color));display:flex;flex-direction:row;align-items:center;gap:var(--luzmo-dataset-selector-list-item-gap, var(--dataset-selector-list-item-gap));cursor:pointer;border-radius:var(--luzmo-dataset-selector-list-item-border-radius, var(--dataset-selector-list-item-border-radius));transition:background-color .15s ease}:host .available-dataset-item:hover{background-color:var(--luzmo-dataset-selector-list-item-hover-background, var(--dataset-selector-list-item-hover-background))}:host .available-dataset-item:focus{outline:none}:host .available-dataset-item .dataset-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:16px;height:16px}:host .available-dataset-item .dataset-icon luzmo-icon{display:flex}:host .available-dataset-item .dataset-icon-img{width:16px;height:16px;object-fit:contain}:host .available-dataset-item .dataset-name{flex:1;line-height:var(--luzmo-dataset-selector-list-item-line-height, var(--dataset-selector-list-item-line-height));font-size:var(--luzmo-dataset-selector-list-item-font-size, var(--dataset-selector-list-item-font-size));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .no-datasets-found{display:flex;align-items:center;justify-content:center;height:50%;color:var(--luzmo-dataset-selector-list-no-datasets-color, var(--dataset-selector-list-no-datasets-color));font-size:var(--luzmo-dataset-selector-list-no-datasets-font-size, var(--dataset-selector-list-no-datasets-font-size));text-align:center;padding:var(--luzmo-spacing-4, 1rem)}:host .loader{display:flex;align-items:center;justify-content:center;padding:var(--luzmo-spacing-5, 1.25rem) 0}:host .loader .spinner{width:var(--luzmo-dataset-selector-list-loader-size, var(--dataset-selector-list-loader-size));height:var(--luzmo-dataset-selector-list-loader-size, var(--dataset-selector-list-loader-size));border:2px solid var(--luzmo-border-color-light, #e0e0e0);border-top-color:var(--luzmo-dataset-selector-list-loader-color, var(--dataset-selector-list-loader-color));border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}:host{--dataset-selector-list-background: var(--luzmo-background-color);--dataset-selector-list-padding: 0;--dataset-selector-list-gap: var(--luzmo-spacing-2);--dataset-selector-list-border-radius: var(--luzmo-border-radius-m);--dataset-selector-list-font-family: var(--luzmo-font-family);--dataset-selector-list-input-background: var(--luzmo-background-color);--dataset-selector-list-input-border-color: var(--luzmo-border-color-light, rgba(0,0,0,.05));--dataset-selector-list-input-color: var(--luzmo-font-color);--dataset-selector-list-input-padding: 0 var(--luzmo-spacing-4) var(--luzmo-spacing-2);--dataset-selector-list-input-font-size: var(--luzmo-font-size-s);--dataset-selector-list-input-line-height: 1.5rem;--dataset-selector-list-item-padding: var(--luzmo-spacing-1) var(--luzmo-spacing-4);--dataset-selector-list-item-gap: var(--luzmo-spacing-3);--dataset-selector-list-item-hover-background: var( --luzmo-background-color-highlight );--dataset-selector-list-item-font-size: var(--luzmo-font-size-s);--dataset-selector-list-item-line-height: 1.5rem;--dataset-selector-list-item-border-radius: var(--luzmo-border-radius-s);--dataset-selector-list-scrollbar-width: 6px;--dataset-selector-list-scrollbar-track-background: var( --luzmo-background-color-highlight );--dataset-selector-list-scrollbar-track-border-radius: var( --luzmo-border-radius-s );--dataset-selector-list-scrollbar-thumb-background: var( --luzmo-border-color-full );--dataset-selector-list-scrollbar-thumb-border-radius: var( --luzmo-border-radius-s );--dataset-selector-list-scrollbar-thumb-hover-background: var( --luzmo-border-color-full-hover );--dataset-selector-list-loader-size: 24px;--dataset-selector-list-loader-color: var(--luzmo-primary);--dataset-selector-list-no-datasets-color: var(--luzmo-font-color);--dataset-selector-list-no-datasets-font-size: var(--luzmo-font-size-s);--dataset-selector-available-dataset-color: var(---luzmo-font-color)}";
|
|
34
34
|
var L = Object.defineProperty, S = Object.getOwnPropertyDescriptor, l = (p, t, e, o) => {
|
|
35
35
|
for (var a = o > 1 ? void 0 : o ? S(t, e) : t, s = p.length - 1, i; s >= 0; s--)
|
|
36
36
|
(i = p[s]) && (a = (o ? i(t, e, a) : i(a)) || a);
|
|
@@ -52,8 +52,7 @@ const g = 7, C = 600, E = 5, z = class z extends x {
|
|
|
52
52
|
return this._selectedDatasets;
|
|
53
53
|
}
|
|
54
54
|
connectedCallback() {
|
|
55
|
-
|
|
56
|
-
(t = super.connectedCallback) == null || t.call(this), this._configureBroker(), this._waitForContainerHeightAndLoad();
|
|
55
|
+
super.connectedCallback?.(), this._configureBroker(), this._waitForContainerHeightAndLoad();
|
|
57
56
|
}
|
|
58
57
|
_configureBroker() {
|
|
59
58
|
(this.authKey || this.authToken || this.apiUrl) && v.configure({
|
|
@@ -68,10 +67,9 @@ const g = 7, C = 600, E = 5, z = class z extends x {
|
|
|
68
67
|
});
|
|
69
68
|
}
|
|
70
69
|
_calculateOptimalQueryLimit() {
|
|
71
|
-
var d;
|
|
72
70
|
if (this._calculatedQueryLimit !== null)
|
|
73
71
|
return this._calculatedQueryLimit;
|
|
74
|
-
const t =
|
|
72
|
+
const t = this.shadowRoot?.querySelector(
|
|
75
73
|
".dataset-selector-list"
|
|
76
74
|
);
|
|
77
75
|
if (!t)
|
|
@@ -79,11 +77,11 @@ const g = 7, C = 600, E = 5, z = class z extends x {
|
|
|
79
77
|
const e = getComputedStyle(t), o = t.clientHeight, a = Number.parseFloat(e.height), s = Math.max(o, a);
|
|
80
78
|
if (s <= 0)
|
|
81
79
|
return g;
|
|
82
|
-
const
|
|
83
|
-
|
|
80
|
+
const h = Math.floor(s / 24), d = Math.max(
|
|
81
|
+
h + E,
|
|
84
82
|
g
|
|
85
83
|
);
|
|
86
|
-
return this._calculatedQueryLimit =
|
|
84
|
+
return this._calculatedQueryLimit = d, d;
|
|
87
85
|
}
|
|
88
86
|
get _filteredDatasets() {
|
|
89
87
|
return this._selectedDatasets.size === 0 ? this._availableDatasets : this._availableDatasets.filter(
|
|
@@ -180,22 +178,21 @@ const g = 7, C = 600, E = 5, z = class z extends x {
|
|
|
180
178
|
_onDatasetsLoaded(t, { rows: e, count: o }) {
|
|
181
179
|
let a;
|
|
182
180
|
if (t) {
|
|
183
|
-
const
|
|
184
|
-
a = [...this._availableDatasets, ...
|
|
181
|
+
const d = new Set(this._availableDatasets.map((u) => u.id)), m = e.filter((u) => !d.has(u.id));
|
|
182
|
+
a = [...this._availableDatasets, ...m];
|
|
185
183
|
} else
|
|
186
184
|
a = e || [];
|
|
187
185
|
t && e.length === 0 ? this._hasLoadedEmptyPage = !0 : e.length > 0 && (this._hasLoadedEmptyPage = !1);
|
|
188
|
-
const s = a.reduce((
|
|
186
|
+
const s = a.reduce((d, m) => (d.some((u) => u.id === m.id) || d.push(m), d), []), i = a.length, h = this._hasLoadedEmptyPage || i >= o;
|
|
189
187
|
this._status = {
|
|
190
188
|
...this._status,
|
|
191
|
-
allDatasetsLoaded:
|
|
189
|
+
allDatasetsLoaded: h
|
|
192
190
|
}, this._availableDatasets = s;
|
|
193
191
|
}
|
|
194
192
|
_shouldLoadMoreDatasetsForViewport() {
|
|
195
|
-
var d;
|
|
196
193
|
if (this._status.allDatasetsLoaded || this._hasLoadedEmptyPage || this._status.busy)
|
|
197
194
|
return !1;
|
|
198
|
-
const t =
|
|
195
|
+
const t = this.shadowRoot?.querySelector(".datasets-scroll-container");
|
|
199
196
|
if (!t)
|
|
200
197
|
return !1;
|
|
201
198
|
const e = t.clientHeight, a = Math.ceil(e / 24), i = Math.ceil(a * 1.5);
|
|
@@ -226,14 +223,14 @@ const g = 7, C = 600, E = 5, z = class z extends x {
|
|
|
226
223
|
}
|
|
227
224
|
}
|
|
228
225
|
_renderLoader() {
|
|
229
|
-
return
|
|
226
|
+
return n`
|
|
230
227
|
<div class="loader">
|
|
231
228
|
<div class="spinner"></div>
|
|
232
229
|
</div>
|
|
233
230
|
`;
|
|
234
231
|
}
|
|
235
232
|
_renderDatasetIcon(t) {
|
|
236
|
-
return
|
|
233
|
+
return n`
|
|
237
234
|
<luzmo-dataset-icon
|
|
238
235
|
.datasetInfo=${t}
|
|
239
236
|
size="16px"
|
|
@@ -242,7 +239,7 @@ const g = 7, C = 600, E = 5, z = class z extends x {
|
|
|
242
239
|
`;
|
|
243
240
|
}
|
|
244
241
|
_renderSearchInput() {
|
|
245
|
-
return this.showSearch ?
|
|
242
|
+
return this.showSearch ? n`
|
|
246
243
|
<input
|
|
247
244
|
name="dataset-search"
|
|
248
245
|
type="text"
|
|
@@ -256,16 +253,16 @@ const g = 7, C = 600, E = 5, z = class z extends x {
|
|
|
256
253
|
` : b;
|
|
257
254
|
}
|
|
258
255
|
_renderDatasetList() {
|
|
259
|
-
return this._filteredDatasets.length === 0 ? this._status.busy && !this._status.paging ? this._renderLoader() :
|
|
256
|
+
return this._filteredDatasets.length === 0 ? this._status.busy && !this._status.paging ? this._renderLoader() : n`
|
|
260
257
|
<div class="no-datasets-found">${this.noDatasetsMessage}</div>
|
|
261
|
-
` :
|
|
258
|
+
` : n`
|
|
262
259
|
<div class="datasets-scroll-container" @scroll=${this._handleScroll}>
|
|
263
260
|
${this._status.busy && !this._status.paging ? this._renderLoader() : b}
|
|
264
261
|
<div class="datasets-list">
|
|
265
262
|
${w(
|
|
266
263
|
this._filteredDatasets,
|
|
267
264
|
(t) => t.id,
|
|
268
|
-
(t) =>
|
|
265
|
+
(t) => n`
|
|
269
266
|
<div
|
|
270
267
|
class="available-dataset-item"
|
|
271
268
|
data-dataset-id=${t.id}
|
|
@@ -292,7 +289,7 @@ const g = 7, C = 600, E = 5, z = class z extends x {
|
|
|
292
289
|
`;
|
|
293
290
|
}
|
|
294
291
|
render() {
|
|
295
|
-
return
|
|
292
|
+
return n`
|
|
296
293
|
<div class="dataset-selector-list">
|
|
297
294
|
${this._renderSearchInput()} ${this._renderDatasetList()}
|
|
298
295
|
</div>
|
|
@@ -302,31 +299,31 @@ const g = 7, C = 600, E = 5, z = class z extends x {
|
|
|
302
299
|
z.styles = k(D);
|
|
303
300
|
let r = z;
|
|
304
301
|
l([
|
|
305
|
-
|
|
302
|
+
c({ type: Object, attribute: !1 })
|
|
306
303
|
], r.prototype, "selectedDatasets", 1);
|
|
307
304
|
l([
|
|
308
|
-
|
|
305
|
+
c({ type: Boolean, attribute: "show-search" })
|
|
309
306
|
], r.prototype, "showSearch", 2);
|
|
310
307
|
l([
|
|
311
|
-
|
|
308
|
+
c({ type: String, attribute: "search-placeholder" })
|
|
312
309
|
], r.prototype, "searchPlaceholder", 2);
|
|
313
310
|
l([
|
|
314
|
-
|
|
311
|
+
c({ type: String, attribute: "no-datasets-message" })
|
|
315
312
|
], r.prototype, "noDatasetsMessage", 2);
|
|
316
313
|
l([
|
|
317
|
-
|
|
314
|
+
c({ type: String, attribute: "auth-key" })
|
|
318
315
|
], r.prototype, "authKey", 2);
|
|
319
316
|
l([
|
|
320
|
-
|
|
317
|
+
c({ type: String, attribute: "auth-token" })
|
|
321
318
|
], r.prototype, "authToken", 2);
|
|
322
319
|
l([
|
|
323
|
-
|
|
320
|
+
c({ type: String, attribute: "api-url" })
|
|
324
321
|
], r.prototype, "apiUrl", 2);
|
|
325
322
|
l([
|
|
326
|
-
|
|
323
|
+
c({ type: String, attribute: "app-server" })
|
|
327
324
|
], r.prototype, "appServer", 2);
|
|
328
325
|
l([
|
|
329
|
-
|
|
326
|
+
c({ type: Boolean, attribute: "flag-opendata" })
|
|
330
327
|
], r.prototype, "flagOpendata", 2);
|
|
331
328
|
l([
|
|
332
329
|
f()
|
|
@@ -17,13 +17,13 @@
|
|
|
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"});const
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@luzmo/icons");require("@luzmo/lucero/overlay");require("@luzmo/lucero/popover");require("@luzmo/lucero/tooltip");const h=require("../localize-C4zNlrwK.cjs"),v=require("../set-locale-B8iQGfk0.cjs"),s=require("lit"),r=require("lit/decorators.js"),b=require("lit/directives/repeat.js");require("../dataset-icon/index.cjs");require("../dataset-selector-list/index.cjs");const m=":host{box-sizing:border-box;display:flex;flex-direction:row;gap:var(--luzmo-dataset-selector-row-gap, var(--dataset-selector-row-gap));min-height:var(--luzmo-dataset-selector-row-min-height, var(--dataset-selector-row-min-height));flex-wrap:wrap;font-size:var(--luzmo-dataset-selector-row-font-size, var(--dataset-selector-row-font-size));color:var(--luzmo-dataset-selector-row-color, var(--dataset-selector-row-color));font-family:var(--luzmo-dataset-selector-row-font-family, var(--dataset-selector-row-font-family))}:host[disabled]{cursor:not-allowed;opacity:.6}:host .add-dataset-button{display:inline-flex;align-items:center;gap:var(--luzmo-dataset-selector-row-button-gap, var(--dataset-selector-row-button-gap));min-width:var(--luzmo-dataset-selector-row-button-min-width, var(--dataset-selector-row-button-min-width));height:var(--luzmo-dataset-selector-row-button-height, var(--dataset-selector-row-button-height));border-radius:var(--luzmo-dataset-selector-row-button-border-radius, var(--dataset-selector-row-button-border-radius));border:1px solid var(--luzmo-dataset-selector-row-button-border-color, var(--dataset-selector-row-button-border-color));background-color:var(--luzmo-dataset-selector-row-button-background, var(--dataset-selector-row-button-background));color:var(--luzmo-dataset-selector-row-button-color, var(--dataset-selector-row-button-color));padding:var(--luzmo-dataset-selector-row-button-padding, var(--dataset-selector-row-button-padding));cursor:pointer;font-size:inherit;font-family:inherit;outline:none;justify-content:center;transition:all .15s ease}:host .add-dataset-button:hover{background-color:var(--luzmo-dataset-selector-row-button-hover-background, var(--dataset-selector-row-button-hover-background));border-color:var(--luzmo-dataset-selector-row-button-hover-border-color, var(--dataset-selector-row-button-hover-border-color))}:host .add-dataset-button:focus{outline:none}:host .add-dataset-button svg{font-size:var(--luzmo-dataset-selector-row-button-icon-size, var(--dataset-selector-row-button-icon-size));color:var(--luzmo-dataset-selector-row-button-icon-color, var(--dataset-selector-row-button-icon-color))}:host .add-dataset-button.icon-only{padding:var(--luzmo-dataset-selector-row-button-icon-only-padding, var(--dataset-selector-row-button-icon-only-padding))}:host .add-dataset-button:disabled{cursor:not-allowed;opacity:.6}:host .add-dataset-button:disabled:hover{background-color:var(--luzmo-dataset-selector-row-button-background, var(--dataset-selector-row-button-background));border-color:var(--luzmo-dataset-selector-row-button-border-color, var(--dataset-selector-row-button-border-color))}:host[disabled] .removable-pill{cursor:not-allowed}:host[disabled] .removable-pill:hover{background-color:var(--luzmo-dataset-selector-row-pill-background, var(--dataset-selector-row-pill-background));border-color:var(--luzmo-dataset-selector-row-pill-border-color, var(--dataset-selector-row-pill-border-color))}:host[disabled] .removable-pill:hover .dataset-icon{display:flex}:host[disabled] .removable-pill:hover .close-icon{display:none}:host .removable-pill{box-sizing:border-box;display:flex;flex-direction:row;max-width:var(--luzmo-dataset-selector-row-pill-max-width, var(--dataset-selector-row-pill-max-width));height:var(--luzmo-dataset-selector-row-pill-height, var(--dataset-selector-row-pill-height));padding:var(--luzmo-dataset-selector-row-pill-padding, var(--dataset-selector-row-pill-padding));gap:var(--luzmo-dataset-selector-row-pill-gap, var(--dataset-selector-row-pill-gap));border-radius:var(--luzmo-dataset-selector-row-pill-border-radius, var(--dataset-selector-row-pill-border-radius));border:1px solid var(--luzmo-dataset-selector-row-pill-border-color, var(--dataset-selector-row-pill-border-color));background-color:var(--luzmo-dataset-selector-row-pill-background, var(--dataset-selector-row-pill-background));align-items:center;cursor:pointer;transition:all .15s ease}:host .removable-pill:hover{background-color:var(--luzmo-dataset-selector-row-pill-hover-background, var(--dataset-selector-row-pill-hover-background));border-color:var(--luzmo-dataset-selector-row-pill-hover-border-color, var(--dataset-selector-row-pill-hover-border-color))}:host .removable-pill:hover .dataset-icon{display:none}:host .removable-pill:hover .close-icon{display:inline-block;color:var(--luzmo-dataset-selector-row-pill-close-color, var(--dataset-selector-row-pill-close-color))}:host .removable-pill .close-icon{width:var(--luzmo-dataset-selector-row-pill-close-size, var(--dataset-selector-row-pill-close-size));display:none;flex-shrink:0}:host .removable-pill .dataset-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--luzmo-dataset-selector-row-pill-icon-size, var(--dataset-selector-row-pill-icon-size));height:var(--luzmo-dataset-selector-row-pill-icon-size, var(--dataset-selector-row-pill-icon-size))}:host .removable-pill .dataset-icon luzmo-icon{display:flex}:host .removable-pill .dataset-icon-img{width:var(--luzmo-dataset-selector-row-pill-icon-size, var(--dataset-selector-row-pill-icon-size));height:var(--luzmo-dataset-selector-row-pill-icon-size, var(--dataset-selector-row-pill-icon-size));object-fit:contain}:host .removable-pill .dataset-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:inherit;line-height:var(--luzmo-dataset-selector-row-pill-text-line-height, var(--dataset-selector-row-pill-text-line-height))}:host luzmo-popover{width:var(--luzmo-dataset-selector-row-popover-width, var(--dataset-selector-row-popover-width));height:var(--luzmo-dataset-selector-row-popover-height, var(--dataset-selector-row-popover-height))}:host{--dataset-selector-row-gap: var(--luzmo-spacing-2);--dataset-selector-row-min-height: 1.75rem;--dataset-selector-row-font-size: .75rem;--dataset-selector-row-color: var(--luzmo-font-color);--dataset-selector-row-font-family: var(--luzmo-font-family);--dataset-selector-row-button-gap: var(--luzmo-spacing-1);--dataset-selector-row-button-min-width: 1.75rem;--dataset-selector-row-button-height: 1.75rem;--dataset-selector-row-button-border-radius: .5rem;--dataset-selector-row-button-border-color: var(--luzmo-border-color);--dataset-selector-row-button-background: var(--luzmo-background-color-alt-1, rgba(248, 248, 248, 1));--dataset-selector-row-button-color: var(--luzmo-font-color-tertiary, rgba(165, 165, 165, 1));--dataset-selector-row-button-padding: .25rem .375rem;--dataset-selector-row-button-icon-only-padding: .25rem;--dataset-selector-row-button-icon-size: .875rem;--dataset-selector-row-button-icon-color: var(--luzmo-font-color-tertiary);--dataset-selector-row-button-hover-background: var(--luzmo-background-color-highlight, rgba(248, 248, 248, 1));--dataset-selector-row-button-hover-border-color: var(--luzmo-border-color-hover);--dataset-selector-row-button-focus-outline-color: var(--luzmo-primary);--dataset-selector-row-pill-max-width: 10rem;--dataset-selector-row-pill-height: 1.75rem;--dataset-selector-row-pill-padding: .125rem .5rem;--dataset-selector-row-pill-gap: var(--luzmo-spacing-2);--dataset-selector-row-pill-border-radius: .5rem;--dataset-selector-row-pill-border-color: var(--luzmo-border-color);--dataset-selector-row-pill-background: var(--luzmo-background-color-alt-1, rgba(248, 248, 248, 1));--dataset-selector-row-pill-hover-background: var(--luzmo-background-color-highlight, rgba(248, 248, 248, 1));--dataset-selector-row-pill-hover-border-color: var(--luzmo-border-color-hover);--dataset-selector-row-pill-icon-size: 1rem;--dataset-selector-row-pill-close-size: 1rem;--dataset-selector-row-pill-close-color: var(--luzmo-danger, #dc3545);--dataset-selector-row-pill-text-line-height: 1.2;--dataset-selector-row-popover-width: 23.75rem;--dataset-selector-row-popover-height: 15rem}";var w=Object.defineProperty,a=(u,e,t,d)=>{for(var l=void 0,n=u.length-1,p;n>=0;n--)(p=u[n])&&(l=p(e,t,l)||l);return l&&w(e,t,l),l};const c=class c extends s.LitElement{constructor(){super(...arguments),this.selectedDatasets=[],this.buttonLabel="Add dataset",this.authKey="",this.authToken="",this.apiUrl="https://api.luzmo.com",this.appServer="https://app.luzmo.com",this.flagOpendata=!1,this.disabled=!1,this._overlayOpen=!1}get _hasSelectedDatasets(){return this.selectedDatasets.length>0}get _selectedDatasetIds(){return new Set(this.selectedDatasets.map(e=>e.id))}_handleAddDatasetClick(){this.disabled||(this._overlayOpen=!this._overlayOpen)}_handleDatasetSelected(e){const t=e.detail;if(!this._selectedDatasetIds.has(t.id)){const l=[...this.selectedDatasets,t];this.selectedDatasets=l,this.dispatchEvent(new CustomEvent("dataset-selected",{detail:t,bubbles:!0,composed:!0}))}const d=this.shadowRoot?.getElementById("add-dataset-button");d&&d.click(),this._overlayOpen=!1}_handleDatasetRemoved(e){if(this.disabled)return;const t=this.selectedDatasets.filter(d=>d.id!==e.id);this.selectedDatasets=t,this.dispatchEvent(new CustomEvent("dataset-removed",{detail:e,bubbles:!0,composed:!0}))}_getDatasetName(e){const t=v.getLocale();return h.localize(e.name,t)||e.id||"Unknown Dataset"}_renderDatasetIcon(e){return s.html`
|
|
21
21
|
<luzmo-dataset-icon
|
|
22
22
|
.datasetInfo=${e}
|
|
23
23
|
size="16px"
|
|
24
24
|
app-url=${this.appServer}
|
|
25
25
|
></luzmo-dataset-icon>
|
|
26
|
-
`}_renderAddButton(){return
|
|
26
|
+
`}_renderAddButton(){return s.html`
|
|
27
27
|
<button
|
|
28
28
|
id="add-dataset-button"
|
|
29
29
|
type="button"
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
?disabled=${this.disabled}
|
|
32
32
|
@click=${this._handleAddDatasetClick}
|
|
33
33
|
>
|
|
34
|
-
${
|
|
35
|
-
${this._hasSelectedDatasets?
|
|
34
|
+
${i.luzmoIcon(i.luzmoPlus)}
|
|
35
|
+
${this._hasSelectedDatasets?s.nothing:this.buttonLabel}
|
|
36
36
|
</button>
|
|
37
|
-
`}_renderDatasetPill(e){return
|
|
37
|
+
`}_renderDatasetPill(e){return s.html`
|
|
38
38
|
<div class="removable-pill" @click=${this._createDatasetRemovedHandler(e)}>
|
|
39
39
|
<div class="dataset-icon">
|
|
40
40
|
${this._renderDatasetIcon(e)}
|
|
41
41
|
</div>
|
|
42
|
-
<span class="close-icon">${
|
|
42
|
+
<span class="close-icon">${i.luzmoIcon(i.luzmoClose12)}</span>
|
|
43
43
|
<span
|
|
44
44
|
class="dataset-name text-truncate"
|
|
45
45
|
title=${this._getDatasetName(e)}
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
${this._getDatasetName(e)}
|
|
56
56
|
</luzmo-tooltip>
|
|
57
57
|
</div>
|
|
58
|
-
`}_handleOverlayOpened(){this._overlayOpen=!0,requestAnimationFrame(()=>{
|
|
58
|
+
`}_handleOverlayOpened(){this._overlayOpen=!0,requestAnimationFrame(()=>{const t=this.shadowRoot?.querySelector("luzmo-dataset-selector-list")?.shadowRoot?.querySelector(".search-input");t&&t.focus()})}_handleOverlayClosed(){this._overlayOpen=!1}_createDatasetRemovedHandler(e){return()=>this._handleDatasetRemoved(e)}_renderOverlay(){return s.html`
|
|
59
59
|
<luzmo-overlay
|
|
60
60
|
id="dataset-overlay"
|
|
61
61
|
trigger="add-dataset-button@click"
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
></luzmo-dataset-selector-list>
|
|
76
76
|
</luzmo-popover>
|
|
77
77
|
</luzmo-overlay>
|
|
78
|
-
`}render(){return
|
|
78
|
+
`}render(){return s.html`
|
|
79
79
|
${this._renderAddButton()}
|
|
80
80
|
${b.repeat(this.selectedDatasets,e=>e.id,e=>this._renderDatasetPill(e))}
|
|
81
81
|
${this._renderOverlay()}
|
|
82
|
-
`}};
|
|
82
|
+
`}};c.styles=s.unsafeCSS(m),c.tagName="luzmo-dataset-selector-row";let o=c;a([r.property({type:Array})],o.prototype,"selectedDatasets");a([r.property({type:String,attribute:"button-label"})],o.prototype,"buttonLabel");a([r.property({type:String,attribute:"auth-key"})],o.prototype,"authKey");a([r.property({type:String,attribute:"auth-token"})],o.prototype,"authToken");a([r.property({type:String,attribute:"api-url"})],o.prototype,"apiUrl");a([r.property({type:String,attribute:"app-server"})],o.prototype,"appServer");a([r.property({type:Boolean,attribute:"flag-opendata"})],o.prototype,"flagOpendata");a([r.property({type:Boolean,reflect:!0,attribute:"disabled"})],o.prototype,"disabled");a([r.state()],o.prototype,"_overlayOpen");customElements.get("luzmo-dataset-selector-row")||customElements.define("luzmo-dataset-selector-row",o);exports.LuzmoDatasetSelectorRow=o;
|
|
@@ -21,10 +21,10 @@ import { luzmoIcon as m, luzmoPlus as p, luzmoClose12 as b } from "@luzmo/icons"
|
|
|
21
21
|
import "@luzmo/lucero/overlay";
|
|
22
22
|
import "@luzmo/lucero/popover";
|
|
23
23
|
import "@luzmo/lucero/tooltip";
|
|
24
|
-
import { l as h } from "../localize-
|
|
25
|
-
import { g as z } from "../set-locale-
|
|
26
|
-
import { LitElement as v, unsafeCSS as g, html as
|
|
27
|
-
import { property as
|
|
24
|
+
import { l as h } from "../localize-CcDpq940.js";
|
|
25
|
+
import { g as z } from "../set-locale-B5562CBM.js";
|
|
26
|
+
import { LitElement as v, unsafeCSS as g, html as d, nothing as w } from "lit";
|
|
27
|
+
import { property as l, state as f } from "lit/decorators.js";
|
|
28
28
|
import { repeat as y } from "lit/directives/repeat.js";
|
|
29
29
|
import "../dataset-icon/index.js";
|
|
30
30
|
import "../dataset-selector-list/index.js";
|
|
@@ -35,12 +35,12 @@ import "../dataset-selector-list/index.js";
|
|
|
35
35
|
}
|
|
36
36
|
})();
|
|
37
37
|
const x = ":host{box-sizing:border-box;display:flex;flex-direction:row;gap:var(--luzmo-dataset-selector-row-gap, var(--dataset-selector-row-gap));min-height:var(--luzmo-dataset-selector-row-min-height, var(--dataset-selector-row-min-height));flex-wrap:wrap;font-size:var(--luzmo-dataset-selector-row-font-size, var(--dataset-selector-row-font-size));color:var(--luzmo-dataset-selector-row-color, var(--dataset-selector-row-color));font-family:var(--luzmo-dataset-selector-row-font-family, var(--dataset-selector-row-font-family))}:host[disabled]{cursor:not-allowed;opacity:.6}:host .add-dataset-button{display:inline-flex;align-items:center;gap:var(--luzmo-dataset-selector-row-button-gap, var(--dataset-selector-row-button-gap));min-width:var(--luzmo-dataset-selector-row-button-min-width, var(--dataset-selector-row-button-min-width));height:var(--luzmo-dataset-selector-row-button-height, var(--dataset-selector-row-button-height));border-radius:var(--luzmo-dataset-selector-row-button-border-radius, var(--dataset-selector-row-button-border-radius));border:1px solid var(--luzmo-dataset-selector-row-button-border-color, var(--dataset-selector-row-button-border-color));background-color:var(--luzmo-dataset-selector-row-button-background, var(--dataset-selector-row-button-background));color:var(--luzmo-dataset-selector-row-button-color, var(--dataset-selector-row-button-color));padding:var(--luzmo-dataset-selector-row-button-padding, var(--dataset-selector-row-button-padding));cursor:pointer;font-size:inherit;font-family:inherit;outline:none;justify-content:center;transition:all .15s ease}:host .add-dataset-button:hover{background-color:var(--luzmo-dataset-selector-row-button-hover-background, var(--dataset-selector-row-button-hover-background));border-color:var(--luzmo-dataset-selector-row-button-hover-border-color, var(--dataset-selector-row-button-hover-border-color))}:host .add-dataset-button:focus{outline:none}:host .add-dataset-button svg{font-size:var(--luzmo-dataset-selector-row-button-icon-size, var(--dataset-selector-row-button-icon-size));color:var(--luzmo-dataset-selector-row-button-icon-color, var(--dataset-selector-row-button-icon-color))}:host .add-dataset-button.icon-only{padding:var(--luzmo-dataset-selector-row-button-icon-only-padding, var(--dataset-selector-row-button-icon-only-padding))}:host .add-dataset-button:disabled{cursor:not-allowed;opacity:.6}:host .add-dataset-button:disabled:hover{background-color:var(--luzmo-dataset-selector-row-button-background, var(--dataset-selector-row-button-background));border-color:var(--luzmo-dataset-selector-row-button-border-color, var(--dataset-selector-row-button-border-color))}:host[disabled] .removable-pill{cursor:not-allowed}:host[disabled] .removable-pill:hover{background-color:var(--luzmo-dataset-selector-row-pill-background, var(--dataset-selector-row-pill-background));border-color:var(--luzmo-dataset-selector-row-pill-border-color, var(--dataset-selector-row-pill-border-color))}:host[disabled] .removable-pill:hover .dataset-icon{display:flex}:host[disabled] .removable-pill:hover .close-icon{display:none}:host .removable-pill{box-sizing:border-box;display:flex;flex-direction:row;max-width:var(--luzmo-dataset-selector-row-pill-max-width, var(--dataset-selector-row-pill-max-width));height:var(--luzmo-dataset-selector-row-pill-height, var(--dataset-selector-row-pill-height));padding:var(--luzmo-dataset-selector-row-pill-padding, var(--dataset-selector-row-pill-padding));gap:var(--luzmo-dataset-selector-row-pill-gap, var(--dataset-selector-row-pill-gap));border-radius:var(--luzmo-dataset-selector-row-pill-border-radius, var(--dataset-selector-row-pill-border-radius));border:1px solid var(--luzmo-dataset-selector-row-pill-border-color, var(--dataset-selector-row-pill-border-color));background-color:var(--luzmo-dataset-selector-row-pill-background, var(--dataset-selector-row-pill-background));align-items:center;cursor:pointer;transition:all .15s ease}:host .removable-pill:hover{background-color:var(--luzmo-dataset-selector-row-pill-hover-background, var(--dataset-selector-row-pill-hover-background));border-color:var(--luzmo-dataset-selector-row-pill-hover-border-color, var(--dataset-selector-row-pill-hover-border-color))}:host .removable-pill:hover .dataset-icon{display:none}:host .removable-pill:hover .close-icon{display:inline-block;color:var(--luzmo-dataset-selector-row-pill-close-color, var(--dataset-selector-row-pill-close-color))}:host .removable-pill .close-icon{width:var(--luzmo-dataset-selector-row-pill-close-size, var(--dataset-selector-row-pill-close-size));display:none;flex-shrink:0}:host .removable-pill .dataset-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--luzmo-dataset-selector-row-pill-icon-size, var(--dataset-selector-row-pill-icon-size));height:var(--luzmo-dataset-selector-row-pill-icon-size, var(--dataset-selector-row-pill-icon-size))}:host .removable-pill .dataset-icon luzmo-icon{display:flex}:host .removable-pill .dataset-icon-img{width:var(--luzmo-dataset-selector-row-pill-icon-size, var(--dataset-selector-row-pill-icon-size));height:var(--luzmo-dataset-selector-row-pill-icon-size, var(--dataset-selector-row-pill-icon-size));object-fit:contain}:host .removable-pill .dataset-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:inherit;line-height:var(--luzmo-dataset-selector-row-pill-text-line-height, var(--dataset-selector-row-pill-text-line-height))}:host luzmo-popover{width:var(--luzmo-dataset-selector-row-popover-width, var(--dataset-selector-row-popover-width));height:var(--luzmo-dataset-selector-row-popover-height, var(--dataset-selector-row-popover-height))}:host{--dataset-selector-row-gap: var(--luzmo-spacing-2);--dataset-selector-row-min-height: 1.75rem;--dataset-selector-row-font-size: .75rem;--dataset-selector-row-color: var(--luzmo-font-color);--dataset-selector-row-font-family: var(--luzmo-font-family);--dataset-selector-row-button-gap: var(--luzmo-spacing-1);--dataset-selector-row-button-min-width: 1.75rem;--dataset-selector-row-button-height: 1.75rem;--dataset-selector-row-button-border-radius: .5rem;--dataset-selector-row-button-border-color: var(--luzmo-border-color);--dataset-selector-row-button-background: var(--luzmo-background-color-alt-1, rgba(248, 248, 248, 1));--dataset-selector-row-button-color: var(--luzmo-font-color-tertiary, rgba(165, 165, 165, 1));--dataset-selector-row-button-padding: .25rem .375rem;--dataset-selector-row-button-icon-only-padding: .25rem;--dataset-selector-row-button-icon-size: .875rem;--dataset-selector-row-button-icon-color: var(--luzmo-font-color-tertiary);--dataset-selector-row-button-hover-background: var(--luzmo-background-color-highlight, rgba(248, 248, 248, 1));--dataset-selector-row-button-hover-border-color: var(--luzmo-border-color-hover);--dataset-selector-row-button-focus-outline-color: var(--luzmo-primary);--dataset-selector-row-pill-max-width: 10rem;--dataset-selector-row-pill-height: 1.75rem;--dataset-selector-row-pill-padding: .125rem .5rem;--dataset-selector-row-pill-gap: var(--luzmo-spacing-2);--dataset-selector-row-pill-border-radius: .5rem;--dataset-selector-row-pill-border-color: var(--luzmo-border-color);--dataset-selector-row-pill-background: var(--luzmo-background-color-alt-1, rgba(248, 248, 248, 1));--dataset-selector-row-pill-hover-background: var(--luzmo-background-color-highlight, rgba(248, 248, 248, 1));--dataset-selector-row-pill-hover-border-color: var(--luzmo-border-color-hover);--dataset-selector-row-pill-icon-size: 1rem;--dataset-selector-row-pill-close-size: 1rem;--dataset-selector-row-pill-close-color: var(--luzmo-danger, #dc3545);--dataset-selector-row-pill-text-line-height: 1.2;--dataset-selector-row-popover-width: 23.75rem;--dataset-selector-row-popover-height: 15rem}";
|
|
38
|
-
var k = Object.defineProperty,
|
|
39
|
-
for (var
|
|
40
|
-
(u = n
|
|
41
|
-
return
|
|
38
|
+
var k = Object.defineProperty, r = (c, o, e, s) => {
|
|
39
|
+
for (var a = void 0, n = c.length - 1, u; n >= 0; n--)
|
|
40
|
+
(u = c[n]) && (a = u(o, e, a) || a);
|
|
41
|
+
return a && k(o, e, a), a;
|
|
42
42
|
};
|
|
43
|
-
const
|
|
43
|
+
const i = class i extends v {
|
|
44
44
|
constructor() {
|
|
45
45
|
super(...arguments), this.selectedDatasets = [], this.buttonLabel = "Add dataset", this.authKey = "", this.authToken = "", this.apiUrl = "https://api.luzmo.com", this.appServer = "https://app.luzmo.com", this.flagOpendata = !1, this.disabled = !1, this._overlayOpen = !1;
|
|
46
46
|
}
|
|
@@ -54,11 +54,10 @@ const c = class c extends v {
|
|
|
54
54
|
this.disabled || (this._overlayOpen = !this._overlayOpen);
|
|
55
55
|
}
|
|
56
56
|
_handleDatasetSelected(o) {
|
|
57
|
-
var t;
|
|
58
57
|
const e = o.detail;
|
|
59
58
|
if (!this._selectedDatasetIds.has(e.id)) {
|
|
60
|
-
const
|
|
61
|
-
this.selectedDatasets =
|
|
59
|
+
const a = [...this.selectedDatasets, e];
|
|
60
|
+
this.selectedDatasets = a, this.dispatchEvent(
|
|
62
61
|
new CustomEvent("dataset-selected", {
|
|
63
62
|
detail: e,
|
|
64
63
|
bubbles: !0,
|
|
@@ -66,13 +65,13 @@ const c = class c extends v {
|
|
|
66
65
|
})
|
|
67
66
|
);
|
|
68
67
|
}
|
|
69
|
-
const
|
|
70
|
-
|
|
68
|
+
const s = this.shadowRoot?.getElementById("add-dataset-button");
|
|
69
|
+
s && s.click(), this._overlayOpen = !1;
|
|
71
70
|
}
|
|
72
71
|
_handleDatasetRemoved(o) {
|
|
73
72
|
if (this.disabled)
|
|
74
73
|
return;
|
|
75
|
-
const e = this.selectedDatasets.filter((
|
|
74
|
+
const e = this.selectedDatasets.filter((s) => s.id !== o.id);
|
|
76
75
|
this.selectedDatasets = e, this.dispatchEvent(
|
|
77
76
|
new CustomEvent("dataset-removed", {
|
|
78
77
|
detail: o,
|
|
@@ -86,7 +85,7 @@ const c = class c extends v {
|
|
|
86
85
|
return h(o.name, e) || o.id || "Unknown Dataset";
|
|
87
86
|
}
|
|
88
87
|
_renderDatasetIcon(o) {
|
|
89
|
-
return
|
|
88
|
+
return d`
|
|
90
89
|
<luzmo-dataset-icon
|
|
91
90
|
.datasetInfo=${o}
|
|
92
91
|
size="16px"
|
|
@@ -95,7 +94,7 @@ const c = class c extends v {
|
|
|
95
94
|
`;
|
|
96
95
|
}
|
|
97
96
|
_renderAddButton() {
|
|
98
|
-
return
|
|
97
|
+
return d`
|
|
99
98
|
<button
|
|
100
99
|
id="add-dataset-button"
|
|
101
100
|
type="button"
|
|
@@ -109,7 +108,7 @@ const c = class c extends v {
|
|
|
109
108
|
`;
|
|
110
109
|
}
|
|
111
110
|
_renderDatasetPill(o) {
|
|
112
|
-
return
|
|
111
|
+
return d`
|
|
113
112
|
<div class="removable-pill" @click=${this._createDatasetRemovedHandler(o)}>
|
|
114
113
|
<div class="dataset-icon">
|
|
115
114
|
${this._renderDatasetIcon(o)}
|
|
@@ -134,8 +133,7 @@ const c = class c extends v {
|
|
|
134
133
|
}
|
|
135
134
|
_handleOverlayOpened() {
|
|
136
135
|
this._overlayOpen = !0, requestAnimationFrame(() => {
|
|
137
|
-
|
|
138
|
-
const o = (a = this.shadowRoot) == null ? void 0 : a.querySelector("luzmo-dataset-selector-list"), e = (t = o == null ? void 0 : o.shadowRoot) == null ? void 0 : t.querySelector(".search-input");
|
|
136
|
+
const e = this.shadowRoot?.querySelector("luzmo-dataset-selector-list")?.shadowRoot?.querySelector(".search-input");
|
|
139
137
|
e && e.focus();
|
|
140
138
|
});
|
|
141
139
|
}
|
|
@@ -146,7 +144,7 @@ const c = class c extends v {
|
|
|
146
144
|
return () => this._handleDatasetRemoved(o);
|
|
147
145
|
}
|
|
148
146
|
_renderOverlay() {
|
|
149
|
-
return
|
|
147
|
+
return d`
|
|
150
148
|
<luzmo-overlay
|
|
151
149
|
id="dataset-overlay"
|
|
152
150
|
trigger="add-dataset-button@click"
|
|
@@ -169,7 +167,7 @@ const c = class c extends v {
|
|
|
169
167
|
`;
|
|
170
168
|
}
|
|
171
169
|
render() {
|
|
172
|
-
return
|
|
170
|
+
return d`
|
|
173
171
|
${this._renderAddButton()}
|
|
174
172
|
${y(
|
|
175
173
|
this.selectedDatasets,
|
|
@@ -180,36 +178,36 @@ const c = class c extends v {
|
|
|
180
178
|
`;
|
|
181
179
|
}
|
|
182
180
|
};
|
|
183
|
-
|
|
184
|
-
let
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
],
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
],
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
],
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
],
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
],
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
],
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
],
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
],
|
|
209
|
-
|
|
181
|
+
i.styles = g(x), i.tagName = "luzmo-dataset-selector-row";
|
|
182
|
+
let t = i;
|
|
183
|
+
r([
|
|
184
|
+
l({ type: Array })
|
|
185
|
+
], t.prototype, "selectedDatasets");
|
|
186
|
+
r([
|
|
187
|
+
l({ type: String, attribute: "button-label" })
|
|
188
|
+
], t.prototype, "buttonLabel");
|
|
189
|
+
r([
|
|
190
|
+
l({ type: String, attribute: "auth-key" })
|
|
191
|
+
], t.prototype, "authKey");
|
|
192
|
+
r([
|
|
193
|
+
l({ type: String, attribute: "auth-token" })
|
|
194
|
+
], t.prototype, "authToken");
|
|
195
|
+
r([
|
|
196
|
+
l({ type: String, attribute: "api-url" })
|
|
197
|
+
], t.prototype, "apiUrl");
|
|
198
|
+
r([
|
|
199
|
+
l({ type: String, attribute: "app-server" })
|
|
200
|
+
], t.prototype, "appServer");
|
|
201
|
+
r([
|
|
202
|
+
l({ type: Boolean, attribute: "flag-opendata" })
|
|
203
|
+
], t.prototype, "flagOpendata");
|
|
204
|
+
r([
|
|
205
|
+
l({ type: Boolean, reflect: !0, attribute: "disabled" })
|
|
206
|
+
], t.prototype, "disabled");
|
|
207
|
+
r([
|
|
210
208
|
f()
|
|
211
|
-
],
|
|
212
|
-
customElements.get("luzmo-dataset-selector-row") || customElements.define("luzmo-dataset-selector-row",
|
|
209
|
+
], t.prototype, "_overlayOpen");
|
|
210
|
+
customElements.get("luzmo-dataset-selector-row") || customElements.define("luzmo-dataset-selector-row", t);
|
|
213
211
|
export {
|
|
214
|
-
|
|
212
|
+
t as LuzmoDatasetSelectorRow
|
|
215
213
|
};
|
|
@@ -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
|
-
const
|
|
20
|
+
const l = [
|
|
21
21
|
{
|
|
22
22
|
key: "general",
|
|
23
23
|
type: "group",
|
|
@@ -77,10 +77,7 @@ const a = [
|
|
|
77
77
|
label: "Always show calendars",
|
|
78
78
|
default: !0
|
|
79
79
|
},
|
|
80
|
-
visibleIf: ({ options: e }) =>
|
|
81
|
-
var l;
|
|
82
|
-
return ((l = e == null ? void 0 : e.dateRange) == null ? void 0 : l.showCustomRangeLabel) !== !1;
|
|
83
|
-
}
|
|
80
|
+
visibleIf: ({ options: e }) => e?.dateRange?.showCustomRangeLabel !== !1
|
|
84
81
|
}
|
|
85
82
|
]
|
|
86
83
|
},
|
|
@@ -161,5 +158,5 @@ const a = [
|
|
|
161
158
|
}
|
|
162
159
|
];
|
|
163
160
|
export {
|
|
164
|
-
|
|
161
|
+
l as default
|
|
165
162
|
};
|
|
@@ -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
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"dateRange.displayRanges",control:{type:"switch",label:"Display range options",default:!0}},{key:"baseSelector.placeholder",control:{type:"multi-language-field",label:"Placeholder",placeholder:"Select a range..."}},{key:"comparisonSelector.placeholder",control:{type:"multi-language-field",label:"Placeholder",placeholder:"Select a range..."}}]},{key:"rangeOptions",type:"group",open:!0,children:[{key:"dateRange.showCustomRangeLabel",control:{type:"switch",label:"Custom range option",default:!0}},{key:"dateRange.alwaysShowCalendars",control:{type:"switch",label:"Always show calendars",default:!0},visibleIf:({options:e})=>e?.dateRange?.showCustomRangeLabel!==!1}]},{key:"calendar",type:"group",open:!0,children:[{key:"dateRange.markUnavailable",control:{type:"switch",label:"Disable unavailable days",default:!1}}]},{key:"padding",type:"group",open:!1,children:[{key:"padding.left",control:{type:"number-field",label:"Padding left",default:16,min:0,max:999,step:1,unit:"px"}},{key:"padding.right",control:{type:"number-field",label:"Padding right",default:16,min:0,max:999,step:1,unit:"px"}}]}];exports.default=l;
|
package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js}
RENAMED
|
@@ -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
|
-
const
|
|
20
|
+
const a = [
|
|
21
21
|
{
|
|
22
22
|
key: "general",
|
|
23
23
|
type: "group",
|
|
@@ -69,10 +69,7 @@ const l = [
|
|
|
69
69
|
label: "Always show calendars",
|
|
70
70
|
default: !0
|
|
71
71
|
},
|
|
72
|
-
visibleIf: ({ options: e }) =>
|
|
73
|
-
var a;
|
|
74
|
-
return ((a = e == null ? void 0 : e.dateRange) == null ? void 0 : a.showCustomRangeLabel) !== !1;
|
|
75
|
-
}
|
|
72
|
+
visibleIf: ({ options: e }) => e?.dateRange?.showCustomRangeLabel !== !1
|
|
76
73
|
}
|
|
77
74
|
]
|
|
78
75
|
},
|
|
@@ -153,5 +150,5 @@ const l = [
|
|
|
153
150
|
}
|
|
154
151
|
];
|
|
155
152
|
export {
|
|
156
|
-
|
|
153
|
+
a as default
|
|
157
154
|
};
|
|
@@ -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
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"dateRange.displayRanges",control:{type:"switch",label:"Display range options",default:!0}},{key:"placeholder",control:{type:"multi-language-field",label:"Placeholder",placeholder:"Select a range..."}}]},{key:"rangeOptions",type:"group",open:!0,children:[{key:"dateRange.showCustomRangeLabel",control:{type:"switch",label:"Custom range option",default:!0}},{key:"dateRange.alwaysShowCalendars",control:{type:"switch",label:"Always show calendars",default:!0},visibleIf:({options:e})=>e?.dateRange?.showCustomRangeLabel!==!1}]},{key:"calendar",type:"group",open:!0,children:[{key:"dateRange.markUnavailable",control:{type:"switch",label:"Disable unavailable days",default:!1}}]},{key:"padding",type:"group",open:!1,children:[{key:"padding.left",control:{type:"number-field",label:"Padding left",default:16,min:0,max:999,step:1,unit:"px"}},{key:"padding.right",control:{type:"number-field",label:"Padding right",default:16,min:0,max:999,step:1,unit:"px"}}]}];exports.default=a;
|