@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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import type { Placement } from '../types';
|
|
2
|
+
import type { VizItemType, SlotName, Placement } from '../types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class SlotContentsPickerComponent {
|
|
5
|
-
itemType?:
|
|
6
|
-
slotName?:
|
|
5
|
+
itemType?: VizItemType;
|
|
6
|
+
slotName?: SlotName;
|
|
7
7
|
slotConfiguration?: any;
|
|
8
8
|
slotContents?: any;
|
|
9
9
|
language?: string;
|
|
@@ -12,7 +12,7 @@ export declare class SlotContentsPickerComponent {
|
|
|
12
12
|
hasLabel?: boolean;
|
|
13
13
|
label?: string;
|
|
14
14
|
selects?: 'single' | 'multiple';
|
|
15
|
-
icons?: 'none' | 'only
|
|
15
|
+
icons?: 'none' | 'menu-only' | 'all';
|
|
16
16
|
placeholder?: string;
|
|
17
17
|
datasetsDataItems?: {
|
|
18
18
|
id: string;
|
|
@@ -25,9 +25,10 @@ export declare class SlotContentsPickerComponent {
|
|
|
25
25
|
placement?: Placement;
|
|
26
26
|
hideDelete?: boolean;
|
|
27
27
|
hideConfiguration?: boolean;
|
|
28
|
-
|
|
28
|
+
hideClear?: boolean;
|
|
29
|
+
search?: any;
|
|
29
30
|
size?: any;
|
|
30
31
|
slotContentsChanged: EventEmitter<CustomEvent<any>>;
|
|
31
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlotContentsPickerComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SlotContentsPickerComponent, "luzmo-slot-contents-picker", never, { "itemType": { "alias": "itemType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotConfiguration": { "alias": "slotConfiguration"; "required": false; }; "slotContents": { "alias": "slotContents"; "required": false; }; "language": { "alias": "language"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "hasLabel": { "alias": "hasLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "selects": { "alias": "selects"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "datasetsDataItems": { "alias": "datasetsDataItems"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "hideDelete": { "alias": "hideDelete"; "required": false; }; "hideConfiguration": { "alias": "hideConfiguration"; "required": false; }; "
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlotContentsPickerComponent, "luzmo-slot-contents-picker", never, { "itemType": { "alias": "itemType"; "required": false; }; "slotName": { "alias": "slotName"; "required": false; }; "slotConfiguration": { "alias": "slotConfiguration"; "required": false; }; "slotContents": { "alias": "slotContents"; "required": false; }; "language": { "alias": "language"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "hasLabel": { "alias": "hasLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "selects": { "alias": "selects"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "datasetsDataItems": { "alias": "datasetsDataItems"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "hideDelete": { "alias": "hideDelete"; "required": false; }; "hideConfiguration": { "alias": "hideConfiguration"; "required": false; }; "hideClear": { "alias": "hideClear"; "required": false; }; "search": { "alias": "search"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "slotContentsChanged": "slotContentsChanged"; }, never, ["*"], true, never>;
|
|
33
34
|
}
|
|
@@ -17,11 +17,12 @@ export class SlotContentsPickerComponent {
|
|
|
17
17
|
placement;
|
|
18
18
|
hideDelete;
|
|
19
19
|
hideConfiguration;
|
|
20
|
-
|
|
20
|
+
hideClear;
|
|
21
|
+
search;
|
|
21
22
|
size;
|
|
22
23
|
slotContentsChanged = new EventEmitter();
|
|
23
24
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.3", ngImport: i0, type: SlotContentsPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.3", type: SlotContentsPickerComponent, isStandalone: true, selector: "luzmo-slot-contents-picker", inputs: { itemType: "itemType", slotName: "slotName", slotConfiguration: "slotConfiguration", slotContents: "slotContents", language: "language", disabled: "disabled", menu: "menu", hasLabel: "hasLabel", label: "label", selects: "selects", icons: "icons", placeholder: "placeholder", datasetsDataItems: "datasetsDataItems", placement: "placement", hideDelete: "hideDelete", hideConfiguration: "hideConfiguration",
|
|
25
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.3", type: SlotContentsPickerComponent, isStandalone: true, selector: "luzmo-slot-contents-picker", inputs: { itemType: "itemType", slotName: "slotName", slotConfiguration: "slotConfiguration", slotContents: "slotContents", language: "language", disabled: "disabled", menu: "menu", hasLabel: "hasLabel", label: "label", selects: "selects", icons: "icons", placeholder: "placeholder", datasetsDataItems: "datasetsDataItems", placement: "placement", hideDelete: "hideDelete", hideConfiguration: "hideConfiguration", hideClear: "hideClear", search: "search", size: "size" }, outputs: { slotContentsChanged: "slotContentsChanged" }, ngImport: i0, template: `<luzmo-slot-contents-picker
|
|
25
26
|
[attr.item-type]="itemType"
|
|
26
27
|
[attr.slot-name]="slotName"
|
|
27
28
|
[attr.slotConfiguration]="slotConfiguration"
|
|
@@ -38,11 +39,12 @@ export class SlotContentsPickerComponent {
|
|
|
38
39
|
[attr.placement]="placement"
|
|
39
40
|
[attr.hide-delete]="hideDelete"
|
|
40
41
|
[attr.hide-configuration]="hideConfiguration"
|
|
41
|
-
[attr.
|
|
42
|
+
[attr.hide-clear]="hideClear"
|
|
43
|
+
[attr.search]="search"
|
|
42
44
|
[attr.size]="size"
|
|
43
45
|
(slot-contents-changed)="slotContentsChanged.emit($event)">
|
|
44
46
|
<ng-content></ng-content>
|
|
45
|
-
</luzmo-slot-contents-picker>`, isInline: true, dependencies: [{ kind: "component", type: SlotContentsPickerComponent, selector: "luzmo-slot-contents-picker", inputs: ["itemType", "slotName", "slotConfiguration", "slotContents", "language", "disabled", "menu", "hasLabel", "label", "selects", "icons", "placeholder", "datasetsDataItems", "placement", "hideDelete", "hideConfiguration", "
|
|
47
|
+
</luzmo-slot-contents-picker>`, isInline: true, dependencies: [{ kind: "component", type: SlotContentsPickerComponent, selector: "luzmo-slot-contents-picker", inputs: ["itemType", "slotName", "slotConfiguration", "slotContents", "language", "disabled", "menu", "hasLabel", "label", "selects", "icons", "placeholder", "datasetsDataItems", "placement", "hideDelete", "hideConfiguration", "hideClear", "search", "size"], outputs: ["slotContentsChanged"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
46
48
|
}
|
|
47
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.3", ngImport: i0, type: SlotContentsPickerComponent, decorators: [{
|
|
48
50
|
type: Component,
|
|
@@ -67,7 +69,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.3", ngImpor
|
|
|
67
69
|
[attr.placement]="placement"
|
|
68
70
|
[attr.hide-delete]="hideDelete"
|
|
69
71
|
[attr.hide-configuration]="hideConfiguration"
|
|
70
|
-
[attr.
|
|
72
|
+
[attr.hide-clear]="hideClear"
|
|
73
|
+
[attr.search]="search"
|
|
71
74
|
[attr.size]="size"
|
|
72
75
|
(slot-contents-changed)="slotContentsChanged.emit($event)">
|
|
73
76
|
<ng-content></ng-content>
|
|
@@ -105,7 +108,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.3", ngImpor
|
|
|
105
108
|
type: Input
|
|
106
109
|
}], hideConfiguration: [{
|
|
107
110
|
type: Input
|
|
108
|
-
}],
|
|
111
|
+
}], hideClear: [{
|
|
112
|
+
type: Input
|
|
113
|
+
}], search: [{
|
|
109
114
|
type: Input
|
|
110
115
|
}], size: [{
|
|
111
116
|
type: Input
|
package/angular/esm/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { AiChatMessageAssistantComponent } from './components/ai-chat-message-as
|
|
|
2
2
|
import { AiChatMessageUserComponent } from './components/ai-chat-message-user.component';
|
|
3
3
|
import { AiChatMessagesContainerComponent } from './components/ai-chat-messages-container.component';
|
|
4
4
|
import { AiInteractionTextareaComponent } from './components/ai-interaction-textarea.component';
|
|
5
|
+
import { DataItemsSelectComponent } from './components/data-items-select.component';
|
|
5
6
|
import { DatasetIconComponent } from './components/dataset-icon.component';
|
|
6
7
|
import { DatasetSelectorListComponent } from './components/dataset-selector-list.component';
|
|
7
8
|
import { DatasetSelectorRowComponent } from './components/dataset-selector-row.component';
|
|
@@ -14,13 +15,12 @@ import { DisplaySettingsPeriodOverPeriodComponent } from './components/display-s
|
|
|
14
15
|
import { DraggableDataItemComponent } from './components/draggable-data-item.component';
|
|
15
16
|
import { DraggableDataItemLevelComponent } from './components/draggable-data-item-level.component';
|
|
16
17
|
import { DroppableSlotComponent } from './components/droppable-slot.component';
|
|
18
|
+
import { EditFiltersComponent } from './components/edit-filters.component';
|
|
17
19
|
import { EditItemComponent } from './components/edit-item.component';
|
|
18
20
|
import { EditOptionComponent } from './components/edit-option.component';
|
|
19
21
|
import { EditOptionColorPickerComponent } from './components/edit-option-color-picker.component';
|
|
20
22
|
import { EditOptionColorRangeComponent } from './components/edit-option-color-range.component';
|
|
21
|
-
import { FilterDataItemPickerComponent } from './components/filter-data-item-picker.component';
|
|
22
23
|
import { FilterExpressionPickerComponent } from './components/filter-expression-picker.component';
|
|
23
|
-
import { FilterGroupComponent } from './components/filter-group.component';
|
|
24
24
|
import { FilterItemComponent } from './components/filter-item.component';
|
|
25
25
|
import { FilterParameterPickerComponent } from './components/filter-parameter-picker.component';
|
|
26
26
|
import { FilterValuePickerComponent } from './components/filter-value-picker.component';
|
|
@@ -37,6 +37,7 @@ export { AiChatMessageAssistantComponent } from './components/ai-chat-message-as
|
|
|
37
37
|
export { AiChatMessageUserComponent } from './components/ai-chat-message-user.component';
|
|
38
38
|
export { AiChatMessagesContainerComponent } from './components/ai-chat-messages-container.component';
|
|
39
39
|
export { AiInteractionTextareaComponent } from './components/ai-interaction-textarea.component';
|
|
40
|
+
export { DataItemsSelectComponent } from './components/data-items-select.component';
|
|
40
41
|
export { DatasetIconComponent } from './components/dataset-icon.component';
|
|
41
42
|
export { DatasetSelectorListComponent } from './components/dataset-selector-list.component';
|
|
42
43
|
export { DatasetSelectorRowComponent } from './components/dataset-selector-row.component';
|
|
@@ -49,13 +50,12 @@ export { DisplaySettingsPeriodOverPeriodComponent } from './components/display-s
|
|
|
49
50
|
export { DraggableDataItemComponent } from './components/draggable-data-item.component';
|
|
50
51
|
export { DraggableDataItemLevelComponent } from './components/draggable-data-item-level.component';
|
|
51
52
|
export { DroppableSlotComponent } from './components/droppable-slot.component';
|
|
53
|
+
export { EditFiltersComponent } from './components/edit-filters.component';
|
|
52
54
|
export { EditItemComponent } from './components/edit-item.component';
|
|
53
55
|
export { EditOptionComponent } from './components/edit-option.component';
|
|
54
56
|
export { EditOptionColorPickerComponent } from './components/edit-option-color-picker.component';
|
|
55
57
|
export { EditOptionColorRangeComponent } from './components/edit-option-color-range.component';
|
|
56
|
-
export { FilterDataItemPickerComponent } from './components/filter-data-item-picker.component';
|
|
57
58
|
export { FilterExpressionPickerComponent } from './components/filter-expression-picker.component';
|
|
58
|
-
export { FilterGroupComponent } from './components/filter-group.component';
|
|
59
59
|
export { FilterItemComponent } from './components/filter-item.component';
|
|
60
60
|
export { FilterParameterPickerComponent } from './components/filter-parameter-picker.component';
|
|
61
61
|
export { FilterValuePickerComponent } from './components/filter-value-picker.component';
|
|
@@ -68,4 +68,4 @@ export { SlotContentsPickerComponent } from './components/slot-contents-picker.c
|
|
|
68
68
|
export { SlotMenuComponent } from './components/slot-menu.component';
|
|
69
69
|
export { SlotMenuListComponent } from './components/slot-menu-list.component';
|
|
70
70
|
export { VizItemMenuComponent } from './components/viz-item-menu.component';
|
|
71
|
-
export declare const LUZMO_COMPONENTS: readonly [typeof AiChatMessageAssistantComponent, typeof AiChatMessageUserComponent, typeof AiChatMessagesContainerComponent, typeof AiInteractionTextareaComponent, typeof DatasetIconComponent, typeof DatasetSelectorListComponent, typeof DatasetSelectorRowComponent, typeof DisplaySettingsComponent, typeof DisplaySettingsBinningComponent, typeof DisplaySettingsDatetimeComponent, typeof DisplaySettingsGrandTotalsComponent, typeof DisplaySettingsNumericComponent, typeof DisplaySettingsPeriodOverPeriodComponent, typeof DraggableDataItemComponent, typeof DraggableDataItemLevelComponent, typeof DroppableSlotComponent, typeof EditItemComponent, typeof EditOptionComponent, typeof EditOptionColorPickerComponent, typeof EditOptionColorRangeComponent, typeof
|
|
71
|
+
export declare const LUZMO_COMPONENTS: readonly [typeof AiChatMessageAssistantComponent, typeof AiChatMessageUserComponent, typeof AiChatMessagesContainerComponent, typeof AiInteractionTextareaComponent, typeof DataItemsSelectComponent, typeof DatasetIconComponent, typeof DatasetSelectorListComponent, typeof DatasetSelectorRowComponent, typeof DisplaySettingsComponent, typeof DisplaySettingsBinningComponent, typeof DisplaySettingsDatetimeComponent, typeof DisplaySettingsGrandTotalsComponent, typeof DisplaySettingsNumericComponent, typeof DisplaySettingsPeriodOverPeriodComponent, typeof DraggableDataItemComponent, typeof DraggableDataItemLevelComponent, typeof DroppableSlotComponent, typeof EditFiltersComponent, typeof EditItemComponent, typeof EditOptionComponent, typeof EditOptionColorPickerComponent, typeof EditOptionColorRangeComponent, typeof FilterExpressionPickerComponent, typeof FilterItemComponent, typeof FilterParameterPickerComponent, typeof FilterValuePickerComponent, typeof FilterValuePickerDatetimeComponent, typeof FilterValuePickerHierarchyComponent, typeof FilterValuePickerNumericComponent, typeof GridComponent, typeof GridItemActionsMenuComponent, typeof SlotContentsPickerComponent, typeof SlotMenuComponent, typeof SlotMenuListComponent, typeof VizItemMenuComponent];
|
package/angular/esm/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { AiChatMessageAssistantComponent } from './components/ai-chat-message-as
|
|
|
2
2
|
import { AiChatMessageUserComponent } from './components/ai-chat-message-user.component';
|
|
3
3
|
import { AiChatMessagesContainerComponent } from './components/ai-chat-messages-container.component';
|
|
4
4
|
import { AiInteractionTextareaComponent } from './components/ai-interaction-textarea.component';
|
|
5
|
+
import { DataItemsSelectComponent } from './components/data-items-select.component';
|
|
5
6
|
import { DatasetIconComponent } from './components/dataset-icon.component';
|
|
6
7
|
import { DatasetSelectorListComponent } from './components/dataset-selector-list.component';
|
|
7
8
|
import { DatasetSelectorRowComponent } from './components/dataset-selector-row.component';
|
|
@@ -14,13 +15,12 @@ import { DisplaySettingsPeriodOverPeriodComponent } from './components/display-s
|
|
|
14
15
|
import { DraggableDataItemComponent } from './components/draggable-data-item.component';
|
|
15
16
|
import { DraggableDataItemLevelComponent } from './components/draggable-data-item-level.component';
|
|
16
17
|
import { DroppableSlotComponent } from './components/droppable-slot.component';
|
|
18
|
+
import { EditFiltersComponent } from './components/edit-filters.component';
|
|
17
19
|
import { EditItemComponent } from './components/edit-item.component';
|
|
18
20
|
import { EditOptionComponent } from './components/edit-option.component';
|
|
19
21
|
import { EditOptionColorPickerComponent } from './components/edit-option-color-picker.component';
|
|
20
22
|
import { EditOptionColorRangeComponent } from './components/edit-option-color-range.component';
|
|
21
|
-
import { FilterDataItemPickerComponent } from './components/filter-data-item-picker.component';
|
|
22
23
|
import { FilterExpressionPickerComponent } from './components/filter-expression-picker.component';
|
|
23
|
-
import { FilterGroupComponent } from './components/filter-group.component';
|
|
24
24
|
import { FilterItemComponent } from './components/filter-item.component';
|
|
25
25
|
import { FilterParameterPickerComponent } from './components/filter-parameter-picker.component';
|
|
26
26
|
import { FilterValuePickerComponent } from './components/filter-value-picker.component';
|
|
@@ -37,6 +37,7 @@ export { AiChatMessageAssistantComponent } from './components/ai-chat-message-as
|
|
|
37
37
|
export { AiChatMessageUserComponent } from './components/ai-chat-message-user.component';
|
|
38
38
|
export { AiChatMessagesContainerComponent } from './components/ai-chat-messages-container.component';
|
|
39
39
|
export { AiInteractionTextareaComponent } from './components/ai-interaction-textarea.component';
|
|
40
|
+
export { DataItemsSelectComponent } from './components/data-items-select.component';
|
|
40
41
|
export { DatasetIconComponent } from './components/dataset-icon.component';
|
|
41
42
|
export { DatasetSelectorListComponent } from './components/dataset-selector-list.component';
|
|
42
43
|
export { DatasetSelectorRowComponent } from './components/dataset-selector-row.component';
|
|
@@ -49,13 +50,12 @@ export { DisplaySettingsPeriodOverPeriodComponent } from './components/display-s
|
|
|
49
50
|
export { DraggableDataItemComponent } from './components/draggable-data-item.component';
|
|
50
51
|
export { DraggableDataItemLevelComponent } from './components/draggable-data-item-level.component';
|
|
51
52
|
export { DroppableSlotComponent } from './components/droppable-slot.component';
|
|
53
|
+
export { EditFiltersComponent } from './components/edit-filters.component';
|
|
52
54
|
export { EditItemComponent } from './components/edit-item.component';
|
|
53
55
|
export { EditOptionComponent } from './components/edit-option.component';
|
|
54
56
|
export { EditOptionColorPickerComponent } from './components/edit-option-color-picker.component';
|
|
55
57
|
export { EditOptionColorRangeComponent } from './components/edit-option-color-range.component';
|
|
56
|
-
export { FilterDataItemPickerComponent } from './components/filter-data-item-picker.component';
|
|
57
58
|
export { FilterExpressionPickerComponent } from './components/filter-expression-picker.component';
|
|
58
|
-
export { FilterGroupComponent } from './components/filter-group.component';
|
|
59
59
|
export { FilterItemComponent } from './components/filter-item.component';
|
|
60
60
|
export { FilterParameterPickerComponent } from './components/filter-parameter-picker.component';
|
|
61
61
|
export { FilterValuePickerComponent } from './components/filter-value-picker.component';
|
|
@@ -73,6 +73,7 @@ export const LUZMO_COMPONENTS = [
|
|
|
73
73
|
AiChatMessageUserComponent,
|
|
74
74
|
AiChatMessagesContainerComponent,
|
|
75
75
|
AiInteractionTextareaComponent,
|
|
76
|
+
DataItemsSelectComponent,
|
|
76
77
|
DatasetIconComponent,
|
|
77
78
|
DatasetSelectorListComponent,
|
|
78
79
|
DatasetSelectorRowComponent,
|
|
@@ -85,13 +86,12 @@ export const LUZMO_COMPONENTS = [
|
|
|
85
86
|
DraggableDataItemComponent,
|
|
86
87
|
DraggableDataItemLevelComponent,
|
|
87
88
|
DroppableSlotComponent,
|
|
89
|
+
EditFiltersComponent,
|
|
88
90
|
EditItemComponent,
|
|
89
91
|
EditOptionComponent,
|
|
90
92
|
EditOptionColorPickerComponent,
|
|
91
93
|
EditOptionColorRangeComponent,
|
|
92
|
-
FilterDataItemPickerComponent,
|
|
93
94
|
FilterExpressionPickerComponent,
|
|
94
|
-
FilterGroupComponent,
|
|
95
95
|
FilterItemComponent,
|
|
96
96
|
FilterParameterPickerComponent,
|
|
97
97
|
FilterValuePickerComponent,
|
package/angular/esm/types.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { TemplateResult } from 'lit';
|
|
|
10
10
|
export type { Column, ColumnSubtype, ColumnType, GenericSlotContent, SlotName, VizItemSlots, VizItemType } from '@luzmo/dashboard-contents-types';
|
|
11
11
|
export type { DraggableDataItemData } from './components/draggable-data-item';
|
|
12
12
|
export type { DroppableSlotConfiguration, SlotContentsChangedEventDetail } from './components/droppable-slot';
|
|
13
|
+
export type { FilterCondition, FilterGroup } from './components/edit-filters/types';
|
|
13
14
|
export type { MeasureColumnsItem, SlotContentChangedEventDetail, SlotListChangedEventDetail, SlotMenuActiveEventDetail, SlotMenuHighlightEventDetail } from './components/slot-menu';
|
|
14
15
|
export declare enum PeriodOverPeriodCondition {
|
|
15
16
|
HasDatetimeColumnAndNoComparisonFilters = "hasDatetimeColumnAndNoComparisonFilters",
|
|
@@ -113,3 +114,11 @@ export interface Dataset {
|
|
|
113
114
|
* Viz item menu button types that can be selected
|
|
114
115
|
*/
|
|
115
116
|
export type VizItemMenuButton = 'clone' | 'edit' | 'delete';
|
|
117
|
+
export type DataItemExtended = DataItem & {
|
|
118
|
+
[key: string]: unknown;
|
|
119
|
+
};
|
|
120
|
+
export type DataItemSelected = DataItemExtended & {
|
|
121
|
+
datasetId: string;
|
|
122
|
+
columnId?: string;
|
|
123
|
+
formulaId?: string;
|
|
124
|
+
} & Omit<DataItemExtended, 'id'>;
|
package/angular/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { AiChatMessageAssistantComponent } from './components/ai-chat-message-as
|
|
|
2
2
|
import { AiChatMessageUserComponent } from './components/ai-chat-message-user.component';
|
|
3
3
|
import { AiChatMessagesContainerComponent } from './components/ai-chat-messages-container.component';
|
|
4
4
|
import { AiInteractionTextareaComponent } from './components/ai-interaction-textarea.component';
|
|
5
|
+
import { DataItemsSelectComponent } from './components/data-items-select.component';
|
|
5
6
|
import { DatasetIconComponent } from './components/dataset-icon.component';
|
|
6
7
|
import { DatasetSelectorListComponent } from './components/dataset-selector-list.component';
|
|
7
8
|
import { DatasetSelectorRowComponent } from './components/dataset-selector-row.component';
|
|
@@ -14,13 +15,12 @@ import { DisplaySettingsPeriodOverPeriodComponent } from './components/display-s
|
|
|
14
15
|
import { DraggableDataItemComponent } from './components/draggable-data-item.component';
|
|
15
16
|
import { DraggableDataItemLevelComponent } from './components/draggable-data-item-level.component';
|
|
16
17
|
import { DroppableSlotComponent } from './components/droppable-slot.component';
|
|
18
|
+
import { EditFiltersComponent } from './components/edit-filters.component';
|
|
17
19
|
import { EditItemComponent } from './components/edit-item.component';
|
|
18
20
|
import { EditOptionComponent } from './components/edit-option.component';
|
|
19
21
|
import { EditOptionColorPickerComponent } from './components/edit-option-color-picker.component';
|
|
20
22
|
import { EditOptionColorRangeComponent } from './components/edit-option-color-range.component';
|
|
21
|
-
import { FilterDataItemPickerComponent } from './components/filter-data-item-picker.component';
|
|
22
23
|
import { FilterExpressionPickerComponent } from './components/filter-expression-picker.component';
|
|
23
|
-
import { FilterGroupComponent } from './components/filter-group.component';
|
|
24
24
|
import { FilterItemComponent } from './components/filter-item.component';
|
|
25
25
|
import { FilterParameterPickerComponent } from './components/filter-parameter-picker.component';
|
|
26
26
|
import { FilterValuePickerComponent } from './components/filter-value-picker.component';
|
|
@@ -38,6 +38,7 @@ export { AiChatMessageAssistantComponent } from './components/ai-chat-message-as
|
|
|
38
38
|
export { AiChatMessageUserComponent } from './components/ai-chat-message-user.component';
|
|
39
39
|
export { AiChatMessagesContainerComponent } from './components/ai-chat-messages-container.component';
|
|
40
40
|
export { AiInteractionTextareaComponent } from './components/ai-interaction-textarea.component';
|
|
41
|
+
export { DataItemsSelectComponent } from './components/data-items-select.component';
|
|
41
42
|
export { DatasetIconComponent } from './components/dataset-icon.component';
|
|
42
43
|
export { DatasetSelectorListComponent } from './components/dataset-selector-list.component';
|
|
43
44
|
export { DatasetSelectorRowComponent } from './components/dataset-selector-row.component';
|
|
@@ -50,13 +51,12 @@ export { DisplaySettingsPeriodOverPeriodComponent } from './components/display-s
|
|
|
50
51
|
export { DraggableDataItemComponent } from './components/draggable-data-item.component';
|
|
51
52
|
export { DraggableDataItemLevelComponent } from './components/draggable-data-item-level.component';
|
|
52
53
|
export { DroppableSlotComponent } from './components/droppable-slot.component';
|
|
54
|
+
export { EditFiltersComponent } from './components/edit-filters.component';
|
|
53
55
|
export { EditItemComponent } from './components/edit-item.component';
|
|
54
56
|
export { EditOptionComponent } from './components/edit-option.component';
|
|
55
57
|
export { EditOptionColorPickerComponent } from './components/edit-option-color-picker.component';
|
|
56
58
|
export { EditOptionColorRangeComponent } from './components/edit-option-color-range.component';
|
|
57
|
-
export { FilterDataItemPickerComponent } from './components/filter-data-item-picker.component';
|
|
58
59
|
export { FilterExpressionPickerComponent } from './components/filter-expression-picker.component';
|
|
59
|
-
export { FilterGroupComponent } from './components/filter-group.component';
|
|
60
60
|
export { FilterItemComponent } from './components/filter-item.component';
|
|
61
61
|
export { FilterParameterPickerComponent } from './components/filter-parameter-picker.component';
|
|
62
62
|
export { FilterValuePickerComponent } from './components/filter-value-picker.component';
|
|
@@ -75,6 +75,7 @@ export const LUZMO_COMPONENTS = [
|
|
|
75
75
|
AiChatMessageUserComponent,
|
|
76
76
|
AiChatMessagesContainerComponent,
|
|
77
77
|
AiInteractionTextareaComponent,
|
|
78
|
+
DataItemsSelectComponent,
|
|
78
79
|
DatasetIconComponent,
|
|
79
80
|
DatasetSelectorListComponent,
|
|
80
81
|
DatasetSelectorRowComponent,
|
|
@@ -87,13 +88,12 @@ export const LUZMO_COMPONENTS = [
|
|
|
87
88
|
DraggableDataItemComponent,
|
|
88
89
|
DraggableDataItemLevelComponent,
|
|
89
90
|
DroppableSlotComponent,
|
|
91
|
+
EditFiltersComponent,
|
|
90
92
|
EditItemComponent,
|
|
91
93
|
EditOptionComponent,
|
|
92
94
|
EditOptionColorPickerComponent,
|
|
93
95
|
EditOptionColorRangeComponent,
|
|
94
|
-
FilterDataItemPickerComponent,
|
|
95
96
|
FilterExpressionPickerComponent,
|
|
96
|
-
FilterGroupComponent,
|
|
97
97
|
FilterItemComponent,
|
|
98
98
|
FilterParameterPickerComponent,
|
|
99
99
|
FilterValuePickerComponent,
|
package/angular/types.ts
CHANGED
|
@@ -26,6 +26,11 @@ export type {
|
|
|
26
26
|
SlotContentsChangedEventDetail
|
|
27
27
|
} from './components/droppable-slot';
|
|
28
28
|
|
|
29
|
+
export type {
|
|
30
|
+
FilterCondition,
|
|
31
|
+
FilterGroup
|
|
32
|
+
} from './components/edit-filters/types';
|
|
33
|
+
|
|
29
34
|
export type {
|
|
30
35
|
MeasureColumnsItem,
|
|
31
36
|
SlotContentChangedEventDetail,
|
|
@@ -150,3 +155,15 @@ export interface Dataset {
|
|
|
150
155
|
* Viz item menu button types that can be selected
|
|
151
156
|
*/
|
|
152
157
|
export type VizItemMenuButton = 'clone' | 'edit' | 'delete';
|
|
158
|
+
|
|
159
|
+
// Extends DataItem and allows for unknown additional properties (can be empty). Should cater for many cases
|
|
160
|
+
export type DataItemExtended = DataItem & {
|
|
161
|
+
[key: string]: unknown;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
// create a type that extends DataItemExtended and adds a datasetId property and either a columnId or a formulaId property & removes the id property
|
|
165
|
+
export type DataItemSelected = DataItemExtended & {
|
|
166
|
+
datasetId: string;
|
|
167
|
+
columnId?: string;
|
|
168
|
+
formulaId?: string;
|
|
169
|
+
} & Omit<DataItemExtended, 'id'>;
|
|
@@ -10,6 +10,6 @@ export type FilterExpressionConfiguration = {
|
|
|
10
10
|
type: ColumnType[];
|
|
11
11
|
subtype?: ColumnSubtype[];
|
|
12
12
|
};
|
|
13
|
-
export type FilterExpressionKey = '? = ?' | '? != ?' | '? in ?' | '? not in ?' | '? like ?' | '? not like ?' | '? starts with ?' | '? not starts with ?' | '? ends with ?' | '? not ends with ?' | '? < ?' | '? <= ?' | '? > ?' | '? >= ?' | '? between ?' | 'last_now' | 'last_available' | 'last_completed' | 'next_now' | 'next_full' | 'to_date' | '? is null' | '? is not null';
|
|
13
|
+
export type FilterExpressionKey = '? = ?' | '? != ?' | '? in ?' | '? not in ?' | '? like ?' | '? not like ?' | '? starts with ?' | '? not starts with ?' | '? ends with ?' | '? not ends with ?' | '? < ?' | '? <= ?' | '? > ?' | '? >= ?' | '? between ?' | 'last_now' | 'last_available' | 'last_completed' | 'next_now' | 'more_than_ago' | 'or_more_ago' | 'next_full' | 'to_date' | '? is null' | '? is not null';
|
|
14
14
|
export declare const filterExpressionsConfigurations: () => FilterExpressionConfiguration[];
|
|
15
15
|
export declare const getValidExpressions: (type?: ColumnType, subtype?: ColumnSubtype, isFormula?: boolean) => FilterExpressionConfiguration[];
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/overlay");require("@luzmo/lucero/popover");const ht=require("@luzmo/icons"),Y=require("lit"),Fe=require("lit/decorators.js");/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:yt,setPrototypeOf:gt,isFrozen:Kt,getPrototypeOf:Zt,getOwnPropertyDescriptor:Jt}=Object;let{freeze:S,seal:R,create:ze}=Object,{apply:ke,construct:Ue}=typeof Reflect<"u"&&Reflect;S||(S=function(a){return a});R||(R=function(a){return a});ke||(ke=function(a,i){for(var s=arguments.length,c=new Array(s>2?s-2:0),p=2;p<s;p++)c[p-2]=arguments[p];return a.apply(i,c)});Ue||(Ue=function(a){for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];return new a(...s)});const me=y(Array.prototype.forEach),Qt=y(Array.prototype.lastIndexOf),dt=y(Array.prototype.pop),Z=y(Array.prototype.push),ea=y(Array.prototype.splice),pe=y(String.prototype.toLowerCase),De=y(String.prototype.toString),Ce=y(String.prototype.match),J=y(String.prototype.replace),ta=y(String.prototype.indexOf),aa=y(String.prototype.trim),x=y(Object.prototype.hasOwnProperty),b=y(RegExp.prototype.test),Q=na(TypeError);function y(r){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];return ke(r,a,s)}}function na(r){return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return Ue(r,i)}}function l(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe;gt&>(r,null);let s=a.length;for(;s--;){let c=a[s];if(typeof c=="string"){const p=i(c);p!==c&&(Kt(a)||(a[s]=p),c=p)}r[c]=!0}return r}function oa(r){for(let a=0;a<r.length;a++)x(r,a)||(r[a]=null);return r}function N(r){const a=ze(null);for(const[i,s]of yt(r))x(r,i)&&(Array.isArray(s)?a[i]=oa(s):s&&typeof s=="object"&&s.constructor===Object?a[i]=N(s):a[i]=s);return a}function ee(r,a){for(;r!==null;){const s=Jt(r,a);if(s){if(s.get)return y(s.get);if(typeof s.value=="function")return y(s.value)}r=Zt(r)}function i(){return null}return i}const Tt=S(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ne=S(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ie=S(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),sa=S(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Me=S(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ia=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Et=S(["#text"]),_t=S(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Pe=S(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),At=S(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),fe=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ra=R(/\{\{[\w\W]*|[\w\W]*\}\}/gm),la=R(/<%[\w\W]*|[\w\W]*%>/gm),ca=R(/\$\{[\w\W]*/gm),ua=R(/^data-[\-\w.\u00B7-\uFFFF]+$/),ma=R(/^aria-[\-\w]+$/),vt=R(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fa=R(/^(?:\w+script|data):/i),pa=R(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Rt=R(/^html$/i),ha=R(/^[a-z][.\w]*(-[.\w]+)+$/i);var bt=Object.freeze({__proto__:null,ARIA_ATTR:ma,ATTR_WHITESPACE:pa,CUSTOM_ELEMENT:ha,DATA_ATTR:ua,DOCTYPE_NAME:Rt,ERB_EXPR:la,IS_ALLOWED_URI:vt,IS_SCRIPT_OR_DATA:fa,MUSTACHE_EXPR:ra,TMPLIT_EXPR:ca});const te={element:1,text:3,progressingInstruction:7,comment:8,document:9},ga=function(){return typeof window>"u"?null:window},da=function(a,i){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let s=null;const c="data-tt-policy-suffix";i&&i.hasAttribute(c)&&(s=i.getAttribute(c));const p="dompurify"+(s?"#"+s:"");try{return a.createPolicy(p,{createHTML(O){return O},createScriptURL(O){return O}})}catch{return console.warn("TrustedTypes policy "+p+" could not be created."),null}},St=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function xt(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ga();const a=o=>xt(o);if(a.version="3.3.0",a.removed=[],!r||!r.document||r.document.nodeType!==te.document||!r.Element)return a.isSupported=!1,a;let{document:i}=r;const s=i,c=s.currentScript,{DocumentFragment:p,HTMLTemplateElement:O,Node:he,Element:We,NodeFilter:j,NamedNodeMap:Ot=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:Lt,DOMParser:wt,trustedTypes:ae}=r,X=We.prototype,Dt=ee(X,"cloneNode"),Ct=ee(X,"remove"),Nt=ee(X,"nextSibling"),It=ee(X,"childNodes"),ne=ee(X,"parentNode");if(typeof O=="function"){const o=i.createElement("template");o.content&&o.content.ownerDocument&&(i=o.content.ownerDocument)}let _,$="";const{implementation:ge,createNodeIterator:Mt,createDocumentFragment:Pt,getElementsByTagName:zt}=i,{importNode:kt}=s;let A=St();a.isSupported=typeof yt=="function"&&typeof ne=="function"&&ge&&ge.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:de,ERB_EXPR:Te,TMPLIT_EXPR:Ee,DATA_ATTR:Ut,ARIA_ATTR:Ft,IS_SCRIPT_OR_DATA:Ht,ATTR_WHITESPACE:Be,CUSTOM_ELEMENT:Gt}=bt;let{IS_ALLOWED_URI:Ye}=bt,h=null;const je=l({},[...Tt,...Ne,...Ie,...Me,...Et]);let d=null;const Xe=l({},[..._t,...Pe,...At,...fe]);let m=Object.seal(ze(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,_e=null;const z=Object.seal(ze(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let $e=!0,Ae=!0,Ve=!1,qe=!0,k=!1,oe=!0,I=!1,be=!1,Se=!1,U=!1,se=!1,ie=!1,Ke=!0,Ze=!1;const Wt="user-content-";let ye=!0,q=!1,F={},H=null;const Je=l({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qe=null;const et=l({},["audio","video","img","source","image","track"]);let ve=null;const tt=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),re="http://www.w3.org/1998/Math/MathML",le="http://www.w3.org/2000/svg",w="http://www.w3.org/1999/xhtml";let G=w,Re=!1,xe=null;const Bt=l({},[re,le,w],De);let ce=l({},["mi","mo","mn","ms","mtext"]),ue=l({},["annotation-xml"]);const Yt=l({},["title","style","font","a","script"]);let K=null;const jt=["application/xhtml+xml","text/html"],Xt="text/html";let g=null,W=null;const $t=i.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},Oe=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(W&&W===e)){if((!e||typeof e!="object")&&(e={}),e=N(e),K=jt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Xt:e.PARSER_MEDIA_TYPE,g=K==="application/xhtml+xml"?De:pe,h=x(e,"ALLOWED_TAGS")?l({},e.ALLOWED_TAGS,g):je,d=x(e,"ALLOWED_ATTR")?l({},e.ALLOWED_ATTR,g):Xe,xe=x(e,"ALLOWED_NAMESPACES")?l({},e.ALLOWED_NAMESPACES,De):Bt,ve=x(e,"ADD_URI_SAFE_ATTR")?l(N(tt),e.ADD_URI_SAFE_ATTR,g):tt,Qe=x(e,"ADD_DATA_URI_TAGS")?l(N(et),e.ADD_DATA_URI_TAGS,g):et,H=x(e,"FORBID_CONTENTS")?l({},e.FORBID_CONTENTS,g):Je,V=x(e,"FORBID_TAGS")?l({},e.FORBID_TAGS,g):N({}),_e=x(e,"FORBID_ATTR")?l({},e.FORBID_ATTR,g):N({}),F=x(e,"USE_PROFILES")?e.USE_PROFILES:!1,$e=e.ALLOW_ARIA_ATTR!==!1,Ae=e.ALLOW_DATA_ATTR!==!1,Ve=e.ALLOW_UNKNOWN_PROTOCOLS||!1,qe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k=e.SAFE_FOR_TEMPLATES||!1,oe=e.SAFE_FOR_XML!==!1,I=e.WHOLE_DOCUMENT||!1,U=e.RETURN_DOM||!1,se=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,Se=e.FORCE_BODY||!1,Ke=e.SANITIZE_DOM!==!1,Ze=e.SANITIZE_NAMED_PROPS||!1,ye=e.KEEP_CONTENT!==!1,q=e.IN_PLACE||!1,Ye=e.ALLOWED_URI_REGEXP||vt,G=e.NAMESPACE||w,ce=e.MATHML_TEXT_INTEGRATION_POINTS||ce,ue=e.HTML_INTEGRATION_POINTS||ue,m=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(m.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(m.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(m.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),k&&(Ae=!1),se&&(U=!0),F&&(h=l({},Et),d=[],F.html===!0&&(l(h,Tt),l(d,_t)),F.svg===!0&&(l(h,Ne),l(d,Pe),l(d,fe)),F.svgFilters===!0&&(l(h,Ie),l(d,Pe),l(d,fe)),F.mathMl===!0&&(l(h,Me),l(d,At),l(d,fe))),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?z.tagCheck=e.ADD_TAGS:(h===je&&(h=N(h)),l(h,e.ADD_TAGS,g))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?z.attributeCheck=e.ADD_ATTR:(d===Xe&&(d=N(d)),l(d,e.ADD_ATTR,g))),e.ADD_URI_SAFE_ATTR&&l(ve,e.ADD_URI_SAFE_ATTR,g),e.FORBID_CONTENTS&&(H===Je&&(H=N(H)),l(H,e.FORBID_CONTENTS,g)),ye&&(h["#text"]=!0),I&&l(h,["html","head","body"]),h.table&&(l(h,["tbody"]),delete V.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,$=_.createHTML("")}else _===void 0&&(_=da(ae,c)),_!==null&&typeof $=="string"&&($=_.createHTML(""));S&&S(e),W=e}},nt=l({},[...Ne,...Ie,...sa]),ot=l({},[...Me,...ia]),Vt=function(e){let t=ne(e);(!t||!t.tagName)&&(t={namespaceURI:G,tagName:"template"});const n=pe(e.tagName),u=pe(t.tagName);return xe[e.namespaceURI]?e.namespaceURI===le?t.namespaceURI===w?n==="svg":t.namespaceURI===re?n==="svg"&&(u==="annotation-xml"||ce[u]):!!nt[n]:e.namespaceURI===re?t.namespaceURI===w?n==="math":t.namespaceURI===le?n==="math"&&ue[u]:!!ot[n]:e.namespaceURI===w?t.namespaceURI===le&&!ue[u]||t.namespaceURI===re&&!ce[u]?!1:!ot[n]&&(Yt[n]||!nt[n]):!!(K==="application/xhtml+xml"&&xe[e.namespaceURI]):!1},L=function(e){Z(a.removed,{element:e});try{ne(e).removeChild(e)}catch{Ct(e)}},M=function(e,t){try{Z(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch{Z(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(U||se)try{L(t)}catch{}else try{t.setAttribute(e,"")}catch{}},st=function(e){let t=null,n=null;if(Se)e="<remove></remove>"+e;else{const f=Ce(e,/^[\r\n\t ]+/);n=f&&f[0]}K==="application/xhtml+xml"&&G===w&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const u=_?_.createHTML(e):e;if(G===w)try{t=new wt().parseFromString(u,K)}catch{}if(!t||!t.documentElement){t=ge.createDocument(G,"template",null);try{t.documentElement.innerHTML=Re?$:u}catch{}}const E=t.body||t.documentElement;return e&&n&&E.insertBefore(i.createTextNode(n),E.childNodes[0]||null),G===w?zt.call(t,I?"html":"body")[0]:I?t.documentElement:E},it=function(e){return Mt.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},Le=function(e){return e instanceof Lt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Ot)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},rt=function(e){return typeof he=="function"&&e instanceof he};function D(o,e,t){me(o,n=>{n.call(a,e,t,W)})}const lt=function(e){let t=null;if(D(A.beforeSanitizeElements,e,null),Le(e))return L(e),!0;const n=g(e.nodeName);if(D(A.uponSanitizeElement,e,{tagName:n,allowedTags:h}),oe&&e.hasChildNodes()&&!rt(e.firstElementChild)&&b(/<[/\w!]/g,e.innerHTML)&&b(/<[/\w!]/g,e.textContent)||e.nodeType===te.progressingInstruction||oe&&e.nodeType===te.comment&&b(/<[/\w]/g,e.data))return L(e),!0;if(!(z.tagCheck instanceof Function&&z.tagCheck(n))&&(!h[n]||V[n])){if(!V[n]&&ut(n)&&(m.tagNameCheck instanceof RegExp&&b(m.tagNameCheck,n)||m.tagNameCheck instanceof Function&&m.tagNameCheck(n)))return!1;if(ye&&!H[n]){const u=ne(e)||e.parentNode,E=It(e)||e.childNodes;if(E&&u){const f=E.length;for(let v=f-1;v>=0;--v){const C=Dt(E[v],!0);C.__removalCount=(e.__removalCount||0)+1,u.insertBefore(C,Nt(e))}}}return L(e),!0}return e instanceof We&&!Vt(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&b(/<\/no(script|embed|frames)/i,e.innerHTML)?(L(e),!0):(k&&e.nodeType===te.text&&(t=e.textContent,me([de,Te,Ee],u=>{t=J(t,u," ")}),e.textContent!==t&&(Z(a.removed,{element:e.cloneNode()}),e.textContent=t)),D(A.afterSanitizeElements,e,null),!1)},ct=function(e,t,n){if(Ke&&(t==="id"||t==="name")&&(n in i||n in $t))return!1;if(!(Ae&&!_e[t]&&b(Ut,t))){if(!($e&&b(Ft,t))){if(!(z.attributeCheck instanceof Function&&z.attributeCheck(t,e))){if(!d[t]||_e[t]){if(!(ut(e)&&(m.tagNameCheck instanceof RegExp&&b(m.tagNameCheck,e)||m.tagNameCheck instanceof Function&&m.tagNameCheck(e))&&(m.attributeNameCheck instanceof RegExp&&b(m.attributeNameCheck,t)||m.attributeNameCheck instanceof Function&&m.attributeNameCheck(t,e))||t==="is"&&m.allowCustomizedBuiltInElements&&(m.tagNameCheck instanceof RegExp&&b(m.tagNameCheck,n)||m.tagNameCheck instanceof Function&&m.tagNameCheck(n))))return!1}else if(!ve[t]){if(!b(Ye,J(n,Be,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&ta(n,"data:")===0&&Qe[e])){if(!(Ve&&!b(Ht,J(n,Be,"")))){if(n)return!1}}}}}}}return!0},ut=function(e){return e!=="annotation-xml"&&Ce(e,Gt)},mt=function(e){D(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Le(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d,forceKeepAttr:void 0};let u=t.length;for(;u--;){const E=t[u],{name:f,namespaceURI:v,value:C}=E,B=g(f),we=C;let T=f==="value"?we:aa(we);if(n.attrName=B,n.attrValue=T,n.keepAttr=!0,n.forceKeepAttr=void 0,D(A.uponSanitizeAttribute,e,n),T=n.attrValue,Ze&&(B==="id"||B==="name")&&(M(f,e),T=Wt+T),oe&&b(/((--!?|])>)|<\/(style|title|textarea)/i,T)){M(f,e);continue}if(B==="attributename"&&Ce(T,"href")){M(f,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){M(f,e);continue}if(!qe&&b(/\/>/i,T)){M(f,e);continue}k&&me([de,Te,Ee],pt=>{T=J(T,pt," ")});const ft=g(e.nodeName);if(!ct(ft,B,T)){M(f,e);continue}if(_&&typeof ae=="object"&&typeof ae.getAttributeType=="function"&&!v)switch(ae.getAttributeType(ft,B)){case"TrustedHTML":{T=_.createHTML(T);break}case"TrustedScriptURL":{T=_.createScriptURL(T);break}}if(T!==we)try{v?e.setAttributeNS(v,f,T):e.setAttribute(f,T),Le(e)?L(e):dt(a.removed)}catch{M(f,e)}}D(A.afterSanitizeAttributes,e,null)},qt=function o(e){let t=null;const n=it(e);for(D(A.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)D(A.uponSanitizeShadowNode,t,null),lt(t),mt(t),t.content instanceof p&&o(t.content);D(A.afterSanitizeShadowDOM,e,null)};return a.sanitize=function(o){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,u=null,E=null;if(Re=!o,Re&&(o="<!-->"),typeof o!="string"&&!rt(o))if(typeof o.toString=="function"){if(o=o.toString(),typeof o!="string")throw Q("dirty is not a string, aborting")}else throw Q("toString is not a function");if(!a.isSupported)return o;if(be||Oe(e),a.removed=[],typeof o=="string"&&(q=!1),q){if(o.nodeName){const C=g(o.nodeName);if(!h[C]||V[C])throw Q("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof he)t=st("<!---->"),n=t.ownerDocument.importNode(o,!0),n.nodeType===te.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!U&&!k&&!I&&o.indexOf("<")===-1)return _&&ie?_.createHTML(o):o;if(t=st(o),!t)return U?null:ie?$:""}t&&Se&&L(t.firstChild);const f=it(q?o:t);for(;u=f.nextNode();)lt(u),mt(u),u.content instanceof p&&qt(u.content);if(q)return o;if(U){if(se)for(E=Pt.call(t.ownerDocument);t.firstChild;)E.appendChild(t.firstChild);else E=t;return(d.shadowroot||d.shadowrootmode)&&(E=kt.call(s,E,!0)),E}let v=I?t.outerHTML:t.innerHTML;return I&&h["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&b(Rt,t.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/overlay");require("@luzmo/lucero/popover");const ht=require("@luzmo/icons"),Y=require("lit"),Fe=require("lit/decorators.js");const{entries:yt,setPrototypeOf:gt,isFrozen:Kt,getPrototypeOf:Zt,getOwnPropertyDescriptor:Jt}=Object;let{freeze:S,seal:R,create:ze}=Object,{apply:ke,construct:Ue}=typeof Reflect<"u"&&Reflect;S||(S=function(a){return a});R||(R=function(a){return a});ke||(ke=function(a,i){for(var s=arguments.length,c=new Array(s>2?s-2:0),p=2;p<s;p++)c[p-2]=arguments[p];return a.apply(i,c)});Ue||(Ue=function(a){for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];return new a(...s)});const me=y(Array.prototype.forEach),Qt=y(Array.prototype.lastIndexOf),dt=y(Array.prototype.pop),Z=y(Array.prototype.push),ea=y(Array.prototype.splice),pe=y(String.prototype.toLowerCase),De=y(String.prototype.toString),Ce=y(String.prototype.match),J=y(String.prototype.replace),ta=y(String.prototype.indexOf),aa=y(String.prototype.trim),x=y(Object.prototype.hasOwnProperty),b=y(RegExp.prototype.test),Q=na(TypeError);function y(r){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var i=arguments.length,s=new Array(i>1?i-1:0),c=1;c<i;c++)s[c-1]=arguments[c];return ke(r,a,s)}}function na(r){return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return Ue(r,i)}}function l(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe;gt&>(r,null);let s=a.length;for(;s--;){let c=a[s];if(typeof c=="string"){const p=i(c);p!==c&&(Kt(a)||(a[s]=p),c=p)}r[c]=!0}return r}function oa(r){for(let a=0;a<r.length;a++)x(r,a)||(r[a]=null);return r}function N(r){const a=ze(null);for(const[i,s]of yt(r))x(r,i)&&(Array.isArray(s)?a[i]=oa(s):s&&typeof s=="object"&&s.constructor===Object?a[i]=N(s):a[i]=s);return a}function ee(r,a){for(;r!==null;){const s=Jt(r,a);if(s){if(s.get)return y(s.get);if(typeof s.value=="function")return y(s.value)}r=Zt(r)}function i(){return null}return i}const Tt=S(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ne=S(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ie=S(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),sa=S(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Me=S(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ia=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Et=S(["#text"]),_t=S(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Pe=S(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),At=S(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),fe=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ra=R(/\{\{[\w\W]*|[\w\W]*\}\}/gm),la=R(/<%[\w\W]*|[\w\W]*%>/gm),ca=R(/\$\{[\w\W]*/gm),ua=R(/^data-[\-\w.\u00B7-\uFFFF]+$/),ma=R(/^aria-[\-\w]+$/),vt=R(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fa=R(/^(?:\w+script|data):/i),pa=R(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Rt=R(/^html$/i),ha=R(/^[a-z][.\w]*(-[.\w]+)+$/i);var bt=Object.freeze({__proto__:null,ARIA_ATTR:ma,ATTR_WHITESPACE:pa,CUSTOM_ELEMENT:ha,DATA_ATTR:ua,DOCTYPE_NAME:Rt,ERB_EXPR:la,IS_ALLOWED_URI:vt,IS_SCRIPT_OR_DATA:fa,MUSTACHE_EXPR:ra,TMPLIT_EXPR:ca});const te={element:1,text:3,progressingInstruction:7,comment:8,document:9},ga=function(){return typeof window>"u"?null:window},da=function(a,i){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let s=null;const c="data-tt-policy-suffix";i&&i.hasAttribute(c)&&(s=i.getAttribute(c));const p="dompurify"+(s?"#"+s:"");try{return a.createPolicy(p,{createHTML(O){return O},createScriptURL(O){return O}})}catch{return console.warn("TrustedTypes policy "+p+" could not be created."),null}},St=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function xt(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ga();const a=o=>xt(o);if(a.version="3.3.0",a.removed=[],!r||!r.document||r.document.nodeType!==te.document||!r.Element)return a.isSupported=!1,a;let{document:i}=r;const s=i,c=s.currentScript,{DocumentFragment:p,HTMLTemplateElement:O,Node:he,Element:We,NodeFilter:j,NamedNodeMap:Ot=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:Lt,DOMParser:wt,trustedTypes:ae}=r,X=We.prototype,Dt=ee(X,"cloneNode"),Ct=ee(X,"remove"),Nt=ee(X,"nextSibling"),It=ee(X,"childNodes"),ne=ee(X,"parentNode");if(typeof O=="function"){const o=i.createElement("template");o.content&&o.content.ownerDocument&&(i=o.content.ownerDocument)}let _,$="";const{implementation:ge,createNodeIterator:Mt,createDocumentFragment:Pt,getElementsByTagName:zt}=i,{importNode:kt}=s;let A=St();a.isSupported=typeof yt=="function"&&typeof ne=="function"&&ge&&ge.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:de,ERB_EXPR:Te,TMPLIT_EXPR:Ee,DATA_ATTR:Ut,ARIA_ATTR:Ft,IS_SCRIPT_OR_DATA:Ht,ATTR_WHITESPACE:Be,CUSTOM_ELEMENT:Gt}=bt;let{IS_ALLOWED_URI:Ye}=bt,h=null;const je=l({},[...Tt,...Ne,...Ie,...Me,...Et]);let d=null;const Xe=l({},[..._t,...Pe,...At,...fe]);let m=Object.seal(ze(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,_e=null;const z=Object.seal(ze(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let $e=!0,Ae=!0,Ve=!1,qe=!0,k=!1,oe=!0,I=!1,be=!1,Se=!1,U=!1,se=!1,ie=!1,Ke=!0,Ze=!1;const Wt="user-content-";let ye=!0,q=!1,F={},H=null;const Je=l({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qe=null;const et=l({},["audio","video","img","source","image","track"]);let ve=null;const tt=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),re="http://www.w3.org/1998/Math/MathML",le="http://www.w3.org/2000/svg",w="http://www.w3.org/1999/xhtml";let G=w,Re=!1,xe=null;const Bt=l({},[re,le,w],De);let ce=l({},["mi","mo","mn","ms","mtext"]),ue=l({},["annotation-xml"]);const Yt=l({},["title","style","font","a","script"]);let K=null;const jt=["application/xhtml+xml","text/html"],Xt="text/html";let g=null,W=null;const $t=i.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},Oe=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(W&&W===e)){if((!e||typeof e!="object")&&(e={}),e=N(e),K=jt.indexOf(e.PARSER_MEDIA_TYPE)===-1?Xt:e.PARSER_MEDIA_TYPE,g=K==="application/xhtml+xml"?De:pe,h=x(e,"ALLOWED_TAGS")?l({},e.ALLOWED_TAGS,g):je,d=x(e,"ALLOWED_ATTR")?l({},e.ALLOWED_ATTR,g):Xe,xe=x(e,"ALLOWED_NAMESPACES")?l({},e.ALLOWED_NAMESPACES,De):Bt,ve=x(e,"ADD_URI_SAFE_ATTR")?l(N(tt),e.ADD_URI_SAFE_ATTR,g):tt,Qe=x(e,"ADD_DATA_URI_TAGS")?l(N(et),e.ADD_DATA_URI_TAGS,g):et,H=x(e,"FORBID_CONTENTS")?l({},e.FORBID_CONTENTS,g):Je,V=x(e,"FORBID_TAGS")?l({},e.FORBID_TAGS,g):N({}),_e=x(e,"FORBID_ATTR")?l({},e.FORBID_ATTR,g):N({}),F=x(e,"USE_PROFILES")?e.USE_PROFILES:!1,$e=e.ALLOW_ARIA_ATTR!==!1,Ae=e.ALLOW_DATA_ATTR!==!1,Ve=e.ALLOW_UNKNOWN_PROTOCOLS||!1,qe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k=e.SAFE_FOR_TEMPLATES||!1,oe=e.SAFE_FOR_XML!==!1,I=e.WHOLE_DOCUMENT||!1,U=e.RETURN_DOM||!1,se=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,Se=e.FORCE_BODY||!1,Ke=e.SANITIZE_DOM!==!1,Ze=e.SANITIZE_NAMED_PROPS||!1,ye=e.KEEP_CONTENT!==!1,q=e.IN_PLACE||!1,Ye=e.ALLOWED_URI_REGEXP||vt,G=e.NAMESPACE||w,ce=e.MATHML_TEXT_INTEGRATION_POINTS||ce,ue=e.HTML_INTEGRATION_POINTS||ue,m=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(m.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&at(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(m.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(m.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),k&&(Ae=!1),se&&(U=!0),F&&(h=l({},Et),d=[],F.html===!0&&(l(h,Tt),l(d,_t)),F.svg===!0&&(l(h,Ne),l(d,Pe),l(d,fe)),F.svgFilters===!0&&(l(h,Ie),l(d,Pe),l(d,fe)),F.mathMl===!0&&(l(h,Me),l(d,At),l(d,fe))),e.ADD_TAGS&&(typeof e.ADD_TAGS=="function"?z.tagCheck=e.ADD_TAGS:(h===je&&(h=N(h)),l(h,e.ADD_TAGS,g))),e.ADD_ATTR&&(typeof e.ADD_ATTR=="function"?z.attributeCheck=e.ADD_ATTR:(d===Xe&&(d=N(d)),l(d,e.ADD_ATTR,g))),e.ADD_URI_SAFE_ATTR&&l(ve,e.ADD_URI_SAFE_ATTR,g),e.FORBID_CONTENTS&&(H===Je&&(H=N(H)),l(H,e.FORBID_CONTENTS,g)),ye&&(h["#text"]=!0),I&&l(h,["html","head","body"]),h.table&&(l(h,["tbody"]),delete V.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,$=_.createHTML("")}else _===void 0&&(_=da(ae,c)),_!==null&&typeof $=="string"&&($=_.createHTML(""));S&&S(e),W=e}},nt=l({},[...Ne,...Ie,...sa]),ot=l({},[...Me,...ia]),Vt=function(e){let t=ne(e);(!t||!t.tagName)&&(t={namespaceURI:G,tagName:"template"});const n=pe(e.tagName),u=pe(t.tagName);return xe[e.namespaceURI]?e.namespaceURI===le?t.namespaceURI===w?n==="svg":t.namespaceURI===re?n==="svg"&&(u==="annotation-xml"||ce[u]):!!nt[n]:e.namespaceURI===re?t.namespaceURI===w?n==="math":t.namespaceURI===le?n==="math"&&ue[u]:!!ot[n]:e.namespaceURI===w?t.namespaceURI===le&&!ue[u]||t.namespaceURI===re&&!ce[u]?!1:!ot[n]&&(Yt[n]||!nt[n]):!!(K==="application/xhtml+xml"&&xe[e.namespaceURI]):!1},L=function(e){Z(a.removed,{element:e});try{ne(e).removeChild(e)}catch{Ct(e)}},M=function(e,t){try{Z(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch{Z(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(U||se)try{L(t)}catch{}else try{t.setAttribute(e,"")}catch{}},st=function(e){let t=null,n=null;if(Se)e="<remove></remove>"+e;else{const f=Ce(e,/^[\r\n\t ]+/);n=f&&f[0]}K==="application/xhtml+xml"&&G===w&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const u=_?_.createHTML(e):e;if(G===w)try{t=new wt().parseFromString(u,K)}catch{}if(!t||!t.documentElement){t=ge.createDocument(G,"template",null);try{t.documentElement.innerHTML=Re?$:u}catch{}}const E=t.body||t.documentElement;return e&&n&&E.insertBefore(i.createTextNode(n),E.childNodes[0]||null),G===w?zt.call(t,I?"html":"body")[0]:I?t.documentElement:E},it=function(e){return Mt.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},Le=function(e){return e instanceof Lt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Ot)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},rt=function(e){return typeof he=="function"&&e instanceof he};function D(o,e,t){me(o,n=>{n.call(a,e,t,W)})}const lt=function(e){let t=null;if(D(A.beforeSanitizeElements,e,null),Le(e))return L(e),!0;const n=g(e.nodeName);if(D(A.uponSanitizeElement,e,{tagName:n,allowedTags:h}),oe&&e.hasChildNodes()&&!rt(e.firstElementChild)&&b(/<[/\w!]/g,e.innerHTML)&&b(/<[/\w!]/g,e.textContent)||e.nodeType===te.progressingInstruction||oe&&e.nodeType===te.comment&&b(/<[/\w]/g,e.data))return L(e),!0;if(!(z.tagCheck instanceof Function&&z.tagCheck(n))&&(!h[n]||V[n])){if(!V[n]&&ut(n)&&(m.tagNameCheck instanceof RegExp&&b(m.tagNameCheck,n)||m.tagNameCheck instanceof Function&&m.tagNameCheck(n)))return!1;if(ye&&!H[n]){const u=ne(e)||e.parentNode,E=It(e)||e.childNodes;if(E&&u){const f=E.length;for(let v=f-1;v>=0;--v){const C=Dt(E[v],!0);C.__removalCount=(e.__removalCount||0)+1,u.insertBefore(C,Nt(e))}}}return L(e),!0}return e instanceof We&&!Vt(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&b(/<\/no(script|embed|frames)/i,e.innerHTML)?(L(e),!0):(k&&e.nodeType===te.text&&(t=e.textContent,me([de,Te,Ee],u=>{t=J(t,u," ")}),e.textContent!==t&&(Z(a.removed,{element:e.cloneNode()}),e.textContent=t)),D(A.afterSanitizeElements,e,null),!1)},ct=function(e,t,n){if(Ke&&(t==="id"||t==="name")&&(n in i||n in $t))return!1;if(!(Ae&&!_e[t]&&b(Ut,t))){if(!($e&&b(Ft,t))){if(!(z.attributeCheck instanceof Function&&z.attributeCheck(t,e))){if(!d[t]||_e[t]){if(!(ut(e)&&(m.tagNameCheck instanceof RegExp&&b(m.tagNameCheck,e)||m.tagNameCheck instanceof Function&&m.tagNameCheck(e))&&(m.attributeNameCheck instanceof RegExp&&b(m.attributeNameCheck,t)||m.attributeNameCheck instanceof Function&&m.attributeNameCheck(t,e))||t==="is"&&m.allowCustomizedBuiltInElements&&(m.tagNameCheck instanceof RegExp&&b(m.tagNameCheck,n)||m.tagNameCheck instanceof Function&&m.tagNameCheck(n))))return!1}else if(!ve[t]){if(!b(Ye,J(n,Be,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&ta(n,"data:")===0&&Qe[e])){if(!(Ve&&!b(Ht,J(n,Be,"")))){if(n)return!1}}}}}}}return!0},ut=function(e){return e!=="annotation-xml"&&Ce(e,Gt)},mt=function(e){D(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Le(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d,forceKeepAttr:void 0};let u=t.length;for(;u--;){const E=t[u],{name:f,namespaceURI:v,value:C}=E,B=g(f),we=C;let T=f==="value"?we:aa(we);if(n.attrName=B,n.attrValue=T,n.keepAttr=!0,n.forceKeepAttr=void 0,D(A.uponSanitizeAttribute,e,n),T=n.attrValue,Ze&&(B==="id"||B==="name")&&(M(f,e),T=Wt+T),oe&&b(/((--!?|])>)|<\/(style|title|textarea)/i,T)){M(f,e);continue}if(B==="attributename"&&Ce(T,"href")){M(f,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){M(f,e);continue}if(!qe&&b(/\/>/i,T)){M(f,e);continue}k&&me([de,Te,Ee],pt=>{T=J(T,pt," ")});const ft=g(e.nodeName);if(!ct(ft,B,T)){M(f,e);continue}if(_&&typeof ae=="object"&&typeof ae.getAttributeType=="function"&&!v)switch(ae.getAttributeType(ft,B)){case"TrustedHTML":{T=_.createHTML(T);break}case"TrustedScriptURL":{T=_.createScriptURL(T);break}}if(T!==we)try{v?e.setAttributeNS(v,f,T):e.setAttribute(f,T),Le(e)?L(e):dt(a.removed)}catch{M(f,e)}}D(A.afterSanitizeAttributes,e,null)},qt=function o(e){let t=null;const n=it(e);for(D(A.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)D(A.uponSanitizeShadowNode,t,null),lt(t),mt(t),t.content instanceof p&&o(t.content);D(A.afterSanitizeShadowDOM,e,null)};return a.sanitize=function(o){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,u=null,E=null;if(Re=!o,Re&&(o="<!-->"),typeof o!="string"&&!rt(o))if(typeof o.toString=="function"){if(o=o.toString(),typeof o!="string")throw Q("dirty is not a string, aborting")}else throw Q("toString is not a function");if(!a.isSupported)return o;if(be||Oe(e),a.removed=[],typeof o=="string"&&(q=!1),q){if(o.nodeName){const C=g(o.nodeName);if(!h[C]||V[C])throw Q("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof he)t=st("<!---->"),n=t.ownerDocument.importNode(o,!0),n.nodeType===te.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!U&&!k&&!I&&o.indexOf("<")===-1)return _&&ie?_.createHTML(o):o;if(t=st(o),!t)return U?null:ie?$:""}t&&Se&&L(t.firstChild);const f=it(q?o:t);for(;u=f.nextNode();)lt(u),mt(u),u.content instanceof p&&qt(u.content);if(q)return o;if(U){if(se)for(E=Pt.call(t.ownerDocument);t.firstChild;)E.appendChild(t.firstChild);else E=t;return(d.shadowroot||d.shadowrootmode)&&(E=kt.call(s,E,!0)),E}let v=I?t.outerHTML:t.innerHTML;return I&&h["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&b(Rt,t.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
|
21
21
|
`+v),k&&me([de,Te,Ee],C=>{v=J(v,C," ")}),_&&ie?_.createHTML(v):v},a.setConfig=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Oe(o),be=!0},a.clearConfig=function(){W=null,be=!1},a.isValidAttribute=function(o,e,t){W||Oe({});const n=g(o),u=g(e);return ct(n,u,t)},a.addHook=function(o,e){typeof e=="function"&&Z(A[o],e)},a.removeHook=function(o,e){if(e!==void 0){const t=Qt(A[o],e);return t===-1?void 0:ea(A[o],t,1)[0]}return dt(A[o])},a.removeHooks=function(o){A[o]=[]},a.removeAllHooks=function(){A=St()},a}var Ta=xt();const Ea=":host{box-sizing:border-box;display:block;width:100%;margin-bottom:var(--luzmo-ai-chat-message-assistant-margin-bottom, var(--ai-chat-message-assistant-margin-bottom))}:host .message-container{display:flex;flex-direction:column;align-items:flex-start;width:100%;max-width:100%}:host .message-text{background:var(--luzmo-ai-chat-message-assistant-background, var(--ai-chat-message-assistant-background));color:var(--luzmo-ai-chat-message-assistant-color, var(--ai-chat-message-assistant-color));padding:var(--luzmo-ai-chat-message-assistant-padding, var(--ai-chat-message-assistant-padding));border-radius:var(--luzmo-ai-chat-message-assistant-border-radius, var(--ai-chat-message-assistant-border-radius));font-family:var(--luzmo-ai-chat-message-assistant-font-family, var(--ai-chat-message-assistant-font-family));font-weight:var(--luzmo-ai-chat-message-assistant-font-weight, var(--ai-chat-message-assistant-font-weight));font-size:var(--luzmo-ai-chat-message-assistant-font-size, var(--ai-chat-message-assistant-font-size));line-height:var(--luzmo-ai-chat-message-assistant-line-height, var(--ai-chat-message-assistant-line-height));text-align:left;word-wrap:break-word;width:fit-content;max-width:100%;box-shadow:var(--luzmo-ai-chat-message-assistant-box-shadow, var(--ai-chat-message-assistant-box-shadow))}:host .context-menu-button{background:var(--luzmo-background-color);border:var(--luzmo-ai-chat-message-assistant-context-menu-border, var(--ai-chat-message-assistant-context-menu-border));border-radius:var(--luzmo-ai-chat-message-assistant-context-menu-border-radius, var(--ai-chat-message-assistant-context-menu-border-radius));width:var(--luzmo-ai-chat-message-assistant-context-menu-width, var(--ai-chat-message-assistant-context-menu-width));height:var(--luzmo-ai-chat-message-assistant-context-menu-height, var(--ai-chat-message-assistant-context-menu-height));cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:var(--luzmo-ai-chat-message-assistant-context-menu-transition, var(--ai-chat-message-assistant-context-menu-transition));flex-shrink:0;color:var(--luzmo-ai-chat-message-assistant-context-menu-icon-color, var(--ai-chat-message-assistant-context-menu-icon-color))}:host .context-menu-button:hover{background:var(--luzmo-ai-chat-message-assistant-context-menu-hover-background, var(--ai-chat-message-assistant-context-menu-hover-background));border-color:var(--luzmo-ai-chat-message-assistant-context-menu-hover-border, var(--ai-chat-message-assistant-context-menu-hover-border))}:host .message-with-menu{display:flex;align-items:flex-start;gap:var(--luzmo-ai-chat-message-assistant-gap, var(--ai-chat-message-assistant-gap));width:100%}:host .message-container-inner{flex:1;display:flex}:host{--ai-chat-message-assistant-margin-bottom: var(--luzmo-spacing-5);--ai-chat-message-assistant-background: transparent;--ai-chat-message-assistant-color: var(--luzmo-font-color);--ai-chat-message-assistant-padding: 0;--ai-chat-message-assistant-border-radius: 0;--ai-chat-message-assistant-font-family: var(--luzmo-font-family);--ai-chat-message-assistant-font-weight: var(--luzmo-font-weight);--ai-chat-message-assistant-font-size: var(--luzmo-font-size-s);--ai-chat-message-assistant-line-height: 1.75em;--ai-chat-message-assistant-box-shadow: none;--ai-chat-message-assistant-gap: var(--luzmo-spacing-5);--ai-chat-message-assistant-context-menu-width: var(--luzmo-component-height);--ai-chat-message-assistant-context-menu-height: var(--luzmo-component-height);--ai-chat-message-assistant-context-menu-border: var(--luzmo-border-width) solid var(--luzmo-border-color);--ai-chat-message-assistant-context-menu-border-radius: var(--luzmo-border-radius);--ai-chat-message-assistant-context-menu-hover-background: var(--luzmo-background-color-hover);--ai-chat-message-assistant-context-menu-hover-border: var(--luzmo-border-color-hover);--ai-chat-message-assistant-context-menu-focus-outline: 2px solid var(--luzmo-primary);--ai-chat-message-assistant-context-menu-icon-size: var(--luzmo-font-size-s);--ai-chat-message-assistant-context-menu-icon-color: var(--luzmo-font-color-extra-dimmed);--ai-chat-message-assistant-context-menu-transition: all var(--luzmo-animation-duration) ease}";var _a=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,He=(r,a,i,s)=>{for(var c=s>1?void 0:s?Aa(a,i):a,p=r.length-1,O;p>=0;p--)(O=r[p])&&(c=(s?O(a,i,c):O(c))||c);return s&&c&&_a(a,i,c),c};const Ge=class Ge extends Y.LitElement{constructor(){super(...arguments),this._message="",this.showContextMenu=!1,this.overlayPlacement="bottom-start"}get message(){return this._message}set message(a){const i=this._message;this._message=Ta.sanitize(a||"",{USE_PROFILES:{html:!0}}),this.requestUpdate("message",i)}render(){return Y.html`
|
|
22
22
|
<div class="message-container">
|
|
23
23
|
${this.showContextMenu?Y.html`
|
|
@@ -28,7 +28,6 @@ import { property as Fe } from "lit/decorators.js";
|
|
|
28
28
|
o.setAttribute("data-luzmo-vars", ""), o.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(o);
|
|
29
29
|
}
|
|
30
30
|
})();
|
|
31
|
-
/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
|
|
32
31
|
const {
|
|
33
32
|
entries: zt,
|
|
34
33
|
setPrototypeOf: dt,
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("lit"),e=require("../focusable-
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("lit"),e=require("../focusable-QLh-LlNt.cjs");require("lit/decorators.js");const o=":host{box-sizing:border-box;display:block;width:100%;height:100%;background:var(--luzmo-ai-chat-messages-container-background, var(--ai-chat-messages-container-background));border-radius:var(--luzmo-ai-chat-messages-container-border-radius, var(--ai-chat-messages-container-border-radius));overflow:hidden}:host .messages-container{display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:var(--luzmo-ai-chat-messages-container-padding, var(--ai-chat-messages-container-padding));gap:var(--luzmo-ai-chat-messages-container-gap, var(--ai-chat-messages-container-gap))}:host .messages-container::-webkit-scrollbar{width:var(--luzmo-ai-chat-messages-container-scrollbar-width, var(--ai-chat-messages-container-scrollbar-width))}:host .messages-container::-webkit-scrollbar-track{background:var(--luzmo-ai-chat-messages-container-scrollbar-track-background, var(--ai-chat-messages-container-scrollbar-track-background));border-radius:var(--luzmo-ai-chat-messages-container-scrollbar-track-border-radius, var(--ai-chat-messages-container-scrollbar-track-border-radius))}:host .messages-container::-webkit-scrollbar-thumb{background:var(--luzmo-ai-chat-messages-container-scrollbar-thumb-background, var(--ai-chat-messages-container-scrollbar-thumb-background));border-radius:var(--luzmo-ai-chat-messages-container-scrollbar-thumb-border-radius, var(--ai-chat-messages-container-scrollbar-thumb-border-radius))}:host .messages-container::-webkit-scrollbar-thumb:hover{background:var(--luzmo-ai-chat-messages-container-scrollbar-thumb-hover-background, var(--ai-chat-messages-container-scrollbar-thumb-hover-background))}:host .messages-container{scrollbar-width:thin;scrollbar-color:var(--luzmo-ai-chat-messages-container-scrollbar-thumb-background, var(--ai-chat-messages-container-scrollbar-track-background))}:host .messages-container{scroll-behavior:smooth}:host .messages-container:focus{outline:var(--luzmo-ai-chat-messages-container-focus-outline, var(--ai-chat-messages-container-focus-outline));outline-offset:-2px}:host{--ai-chat-messages-container-background: var(--luzmo-background-color);--ai-chat-messages-container-border-radius: var(--luzmo-border-radius-l);--ai-chat-messages-container-padding: var(--luzmo-spacing-5);--ai-chat-messages-container-gap: var(--luzmo-spacing-2);--ai-chat-messages-container-scrollbar-width: 6px;--ai-chat-messages-container-scrollbar-track-background: var(--luzmo-background-color-highlight);--ai-chat-messages-container-scrollbar-track-border-radius: var(--luzmo-border-radius-s);--ai-chat-messages-container-scrollbar-thumb-background: var(--luzmo-border-color-full);--ai-chat-messages-container-scrollbar-thumb-border-radius: var(--luzmo-border-radius-s);--ai-chat-messages-container-scrollbar-thumb-hover-background: var(--luzmo-border-color-full-hover);--ai-chat-messages-container-focus-outline: 2px solid var(--luzmo-primary)}",r=class r extends e.LuzmoElement{render(){return s.html`
|
|
21
21
|
<div class="messages-container">
|
|
22
22
|
<slot></slot>
|
|
23
23
|
</div>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
20
|
import { unsafeCSS as e, html as l } from "lit";
|
|
21
|
-
import { L as s } from "../focusable-
|
|
21
|
+
import { L as s } from "../focusable-BS2pbY7w.js";
|
|
22
22
|
import "lit/decorators.js";
|
|
23
23
|
(function() {
|
|
24
24
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
@@ -26,7 +26,7 @@ import "lit/decorators.js";
|
|
|
26
26
|
o.setAttribute("data-luzmo-vars", ""), o.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(o);
|
|
27
27
|
}
|
|
28
28
|
})();
|
|
29
|
-
const c = ":host{box-sizing:border-box;display:block;width:100%;height:100%;background:var(--luzmo-ai-chat-messages-container-background, var(--ai-chat-messages-container-background));border-radius:var(--luzmo-ai-chat-messages-container-border-radius, var(--ai-chat-messages-container-border-radius));overflow:hidden}:host .messages-container{display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:var(--luzmo-ai-chat-messages-container-padding, var(--ai-chat-messages-container-padding));gap:var(--luzmo-ai-chat-messages-container-gap, var(--ai-chat-messages-container-gap))
|
|
29
|
+
const c = ":host{box-sizing:border-box;display:block;width:100%;height:100%;background:var(--luzmo-ai-chat-messages-container-background, var(--ai-chat-messages-container-background));border-radius:var(--luzmo-ai-chat-messages-container-border-radius, var(--ai-chat-messages-container-border-radius));overflow:hidden}:host .messages-container{display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:var(--luzmo-ai-chat-messages-container-padding, var(--ai-chat-messages-container-padding));gap:var(--luzmo-ai-chat-messages-container-gap, var(--ai-chat-messages-container-gap))}:host .messages-container::-webkit-scrollbar{width:var(--luzmo-ai-chat-messages-container-scrollbar-width, var(--ai-chat-messages-container-scrollbar-width))}:host .messages-container::-webkit-scrollbar-track{background:var(--luzmo-ai-chat-messages-container-scrollbar-track-background, var(--ai-chat-messages-container-scrollbar-track-background));border-radius:var(--luzmo-ai-chat-messages-container-scrollbar-track-border-radius, var(--ai-chat-messages-container-scrollbar-track-border-radius))}:host .messages-container::-webkit-scrollbar-thumb{background:var(--luzmo-ai-chat-messages-container-scrollbar-thumb-background, var(--ai-chat-messages-container-scrollbar-thumb-background));border-radius:var(--luzmo-ai-chat-messages-container-scrollbar-thumb-border-radius, var(--ai-chat-messages-container-scrollbar-thumb-border-radius))}:host .messages-container::-webkit-scrollbar-thumb:hover{background:var(--luzmo-ai-chat-messages-container-scrollbar-thumb-hover-background, var(--ai-chat-messages-container-scrollbar-thumb-hover-background))}:host .messages-container{scrollbar-width:thin;scrollbar-color:var(--luzmo-ai-chat-messages-container-scrollbar-thumb-background, var(--ai-chat-messages-container-scrollbar-track-background))}:host .messages-container{scroll-behavior:smooth}:host .messages-container:focus{outline:var(--luzmo-ai-chat-messages-container-focus-outline, var(--ai-chat-messages-container-focus-outline));outline-offset:-2px}:host{--ai-chat-messages-container-background: var(--luzmo-background-color);--ai-chat-messages-container-border-radius: var(--luzmo-border-radius-l);--ai-chat-messages-container-padding: var(--luzmo-spacing-5);--ai-chat-messages-container-gap: var(--luzmo-spacing-2);--ai-chat-messages-container-scrollbar-width: 6px;--ai-chat-messages-container-scrollbar-track-background: var(--luzmo-background-color-highlight);--ai-chat-messages-container-scrollbar-track-border-radius: var(--luzmo-border-radius-s);--ai-chat-messages-container-scrollbar-thumb-background: var(--luzmo-border-color-full);--ai-chat-messages-container-scrollbar-thumb-border-radius: var(--luzmo-border-radius-s);--ai-chat-messages-container-scrollbar-thumb-hover-background: var(--luzmo-border-color-full-hover);--ai-chat-messages-container-focus-outline: 2px solid var(--luzmo-primary)}", a = class a extends s {
|
|
30
30
|
render() {
|
|
31
31
|
return l`
|
|
32
32
|
<div class="messages-container">
|