@luzmo/analytics-components-kit 1.0.1-alpha.94 → 1.0.1-alpha.97
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 +1 -1
- package/angular/components/viz-item-menu.component.ts +25 -0
- package/angular/esm/components/viz-item-menu.component.d.ts +13 -0
- package/angular/esm/components/viz-item-menu.component.js +49 -0
- package/angular/esm/index.d.ts +3 -3
- package/angular/esm/index.js +3 -3
- package/angular/esm/types.d.ts +2 -2
- package/angular/index.ts +3 -3
- package/angular/types.ts +2 -2
- 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/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -2
- 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/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/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/display-settings-numeric.d.ts +1 -2
- package/components/display-settings-numeric/index.cjs +49 -48
- package/components/display-settings-numeric/index.js +193 -218
- 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 +208 -223
- 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/{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-data-item-picker/index.cjs +7 -7
- package/components/filter-data-item-picker/index.js +85 -86
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +6 -6
- package/components/filter-item/index.js +109 -119
- 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 +8 -8
- package/components/filter-value-picker-numeric/index.js +101 -110
- package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
- package/components/focusable-QLh-LlNt.cjs +20 -0
- 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-YlLiVgo8.js → get-css-variable-Bb7TxJdX.js} +37 -37
- package/components/get-css-variable-Pzks_rOx.cjs +24 -0
- 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-BPNsFiyq.cjs → index-BNAmjOkm.cjs} +4 -4
- package/components/index-BekTY3Em.cjs +121 -0
- package/components/index-CFL6gmIu.cjs +20 -0
- package/components/{index-Do7O9azB.js → index-CqKpf0B8.js} +112 -123
- package/components/index-DNPULp4A.js +1755 -0
- package/components/{index-D0GBF6tg.js → index-DdyZ2g5L.js} +94 -104
- 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 +13 -13
- 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/{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-hKTMz37h.js} +1 -8
- 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 +33 -33
- package/components/slot-contents-picker/index.js +194 -205
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.js +171 -184
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +97 -103
- 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 +51 -0
- package/components/viz-item-menu/index.d.ts +8 -0
- package/components/viz-item-menu/index.js +209 -0
- package/components/viz-item-menu/viz-item-menu.d.ts +77 -0
- 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 +43 -23
- package/index.d.ts +1 -1
- package/package.json +7 -7
- package/types.d.ts +2 -2
- package/angular/components/widget-menu.component.ts +0 -25
- package/angular/esm/components/widget-menu.component.d.ts +0 -13
- package/angular/esm/components/widget-menu.component.js +0 -49
- 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/focusable-B3E_hQmm.cjs +0 -20
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
- package/components/get-css-variable-BEYG097C.js +0 -1446
- package/components/get-css-variable-BZxY4IOa.cjs +0 -35
- 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/index-Dn0j_pcR.cjs +0 -20
- package/components/index-E239Dotg.js +0 -1735
- 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
- package/components/widget-menu/index.cjs +0 -51
- package/components/widget-menu/index.d.ts +0 -8
- package/components/widget-menu/index.js +0 -211
- package/components/widget-menu/widget-menu.d.ts +0 -77
|
@@ -17,59 +17,58 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { a as
|
|
21
|
-
import { ContextProvider as
|
|
22
|
-
import { msg as
|
|
23
|
-
import { Task as
|
|
24
|
-
import { luzmoIcon as
|
|
20
|
+
import { a as w } from "../get-css-variable-Bb7TxJdX.js";
|
|
21
|
+
import { ContextProvider as k } from "@lit/context";
|
|
22
|
+
import { msg as m, localized as S } from "@lit/localize";
|
|
23
|
+
import { Task as A } from "@lit/task";
|
|
24
|
+
import { luzmoIcon as z, luzmoCog as E, luzmoTrashOutline as L } from "@luzmo/icons";
|
|
25
25
|
import "@luzmo/lucero/tooltip";
|
|
26
|
-
import { d as
|
|
27
|
-
import { i as
|
|
28
|
-
import { D as
|
|
29
|
-
import { html as
|
|
30
|
-
import { property as
|
|
31
|
-
import { L as
|
|
32
|
-
import { S as
|
|
33
|
-
import { s as
|
|
34
|
-
import { signal as
|
|
35
|
-
import { P as
|
|
36
|
-
import { g as
|
|
26
|
+
import { d as y } from "../index-DNPULp4A.js";
|
|
27
|
+
import { i as c, l as I } from "../localize-CcDpq940.js";
|
|
28
|
+
import { D as $ } from "../en-D3ihEGXg.js";
|
|
29
|
+
import { html as d, unsafeCSS as O } from "lit";
|
|
30
|
+
import { property as n, query as _, state as x } from "lit/decorators.js";
|
|
31
|
+
import { L as T } from "../focusable-BS2pbY7w.js";
|
|
32
|
+
import { S as M } from "../sized-mixin-cJbo3PKR.js";
|
|
33
|
+
import { s as U } from "../index-CqKpf0B8.js";
|
|
34
|
+
import { signal as h, computed as F } from "@lit-labs/signals";
|
|
35
|
+
import { P as g } from "../types-RxAJdtVT.js";
|
|
36
|
+
import { g as P, t as B, s as G } from "../set-locale-hKTMz37h.js";
|
|
37
37
|
import "../slot-menu/index.js";
|
|
38
38
|
(function() {
|
|
39
39
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
40
|
-
const
|
|
41
|
-
|
|
40
|
+
const t = document.createElement("style");
|
|
41
|
+
t.setAttribute("data-luzmo-vars", ""), t.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-background-color-alt-1: rgb(250, 250, 250);--luzmo-background-color-alt-2: rgb(239, 239, 239);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-secondary-outline: rgba(255, 0, 255, 0.2);--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(t);
|
|
42
42
|
}
|
|
43
43
|
})();
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
const t = {
|
|
44
|
+
const R = (o, t) => {
|
|
45
|
+
const e = {
|
|
47
46
|
type: o.type,
|
|
48
47
|
datasetId: o.datasetId,
|
|
49
48
|
set: o.datasetId
|
|
50
49
|
// TODO: Remove this once column/set -> columnId/datasetId migration is fully done.
|
|
51
50
|
};
|
|
52
|
-
"columnId" in o && !
|
|
51
|
+
"columnId" in o && !c(o.columnId) && o.columnId !== "" ? (e.columnId = o.columnId, e.column = o.columnId) : "formulaId" in o && !c(o.formulaId) && o.formulaId !== "" && (e.formulaId = o.formulaId, e.formula = o.formulaId);
|
|
53
52
|
const l = o.type === "datetime" || o.type === "array[datetime]", r = { ...o.name ?? { en: "Untitled" } };
|
|
54
|
-
let
|
|
55
|
-
if (l && (
|
|
56
|
-
const
|
|
57
|
-
if (
|
|
58
|
-
const
|
|
59
|
-
for (const
|
|
60
|
-
r[
|
|
53
|
+
let i = o.level;
|
|
54
|
+
if (l && (i = i ?? o.lowestLevel ?? 9, t)) {
|
|
55
|
+
const p = $.shortLevels?.filter((b) => b !== "All") ?? [], u = Math.max(0, Math.min(p.length - 1, (i ?? 1) - 1)), f = p[u];
|
|
56
|
+
if (f) {
|
|
57
|
+
const b = `(${f})`, D = Object.keys(r);
|
|
58
|
+
for (const v of D)
|
|
59
|
+
r[v] = `${r[v]} ${b}`;
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
|
-
return
|
|
62
|
+
return e.label = r, c(o.subtype) || (e.subtype = o.subtype), "lowestLevel" in o && !c(o.lowestLevel) && (e.lowestLevel = o.lowestLevel), c(o.format) || (e.format = o.format), c(i) || (e.level = i), c(o.lowestLevel) || (e.lowestLevel = o.lowestLevel), o.type === "numeric" && o.subtype === "currency" && o.currency?.symbol && (e.currency = o.currency.symbol), Array.isArray(o.duration_levels) && o.duration_format && (e.duration = {
|
|
64
63
|
levels: o.duration_levels,
|
|
65
64
|
format: o.duration_format
|
|
66
|
-
}),
|
|
65
|
+
}), e;
|
|
67
66
|
};
|
|
68
|
-
class
|
|
67
|
+
class N {
|
|
69
68
|
constructor() {
|
|
70
|
-
this.slotContents =
|
|
69
|
+
this.slotContents = h([]), this.slotsContents = h([]), this.periodOverPeriodUiType = h(
|
|
71
70
|
null
|
|
72
|
-
), this.linkedDataset =
|
|
71
|
+
), this.linkedDataset = h(
|
|
73
72
|
[]
|
|
74
73
|
), this._popEnabledChartTypes = [
|
|
75
74
|
"area-chart",
|
|
@@ -77,94 +76,90 @@ class V {
|
|
|
77
76
|
"combination-chart",
|
|
78
77
|
"column-chart",
|
|
79
78
|
"line-chart"
|
|
80
|
-
], this.activeSlotContents =
|
|
79
|
+
], this.activeSlotContents = F(() => this.slotContents.get()[this.activeIndex.get()]), this.activeIndex = h(0);
|
|
81
80
|
}
|
|
82
|
-
isArrayColumnType(
|
|
83
|
-
return
|
|
81
|
+
isArrayColumnType(t) {
|
|
82
|
+
return t.startsWith("array[");
|
|
84
83
|
}
|
|
85
|
-
setPeriodOverPeriodCondition(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
this.periodOverPeriodUiType.set(this.oldConditionalLogic(e));
|
|
84
|
+
setPeriodOverPeriodCondition(t, e) {
|
|
85
|
+
if (!e?.periodOverPeriod?.newUi) {
|
|
86
|
+
this.periodOverPeriodUiType.set(this.oldConditionalLogic(t));
|
|
89
87
|
return;
|
|
90
88
|
}
|
|
91
89
|
this.periodOverPeriodUiType.set(
|
|
92
|
-
this.getUiConditionToApply(
|
|
90
|
+
this.getUiConditionToApply(e)
|
|
93
91
|
);
|
|
94
92
|
}
|
|
95
|
-
getUiConditionToApply(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
({ columns: a }) => a == null ? void 0 : a.some((p) => p.type === "datetime")
|
|
93
|
+
getUiConditionToApply(t) {
|
|
94
|
+
const e = this.hasDatetimeColumnOnCategoryOrXAxis(), l = t?.periodOverPeriod?.hasConnectedComparisonFilter, r = this.linkedDataset.get().some(
|
|
95
|
+
({ columns: i }) => i?.some((p) => p.type === "datetime")
|
|
99
96
|
);
|
|
100
|
-
return !
|
|
97
|
+
return !e && !l && !r ? null : e && l ? g.HasDatetimeColumnAndComparisonFilters : e && !l ? g.HasDatetimeColumnAndNoComparisonFilters : !e && l ? g.NoDatetimeColumnButComparisonFilters : g.NoDatetimeColumnAndNoComparisonFilters;
|
|
101
98
|
}
|
|
102
|
-
oldConditionalLogic(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
return r && this._popEnabledChartTypes.includes(e) && r.type === "datetime" && !this.isArrayColumnType(r.type) && !r.datetimeDisplayMode && r.level !== 4 && s.length > 0 ? C.OldImplementation : null;
|
|
99
|
+
oldConditionalLogic(t) {
|
|
100
|
+
const e = this.slotsContents.get() ?? [], r = (e.find(
|
|
101
|
+
(u) => ["y-axis", "x-axis", "row"].includes(u.name)
|
|
102
|
+
)?.content ?? [])?.[0] ?? null, i = e.find((u) => u.name === "measure")?.content ?? [];
|
|
103
|
+
return r && this._popEnabledChartTypes.includes(t) && r.type === "datetime" && !this.isArrayColumnType(r.type) && !r.datetimeDisplayMode && r.level !== 4 && i.length > 0 ? g.OldImplementation : null;
|
|
108
104
|
}
|
|
109
105
|
/**
|
|
110
106
|
* Detects if there's a datetime column on Category or X-axis slots
|
|
111
107
|
*/
|
|
112
108
|
hasDatetimeColumnOnCategoryOrXAxis() {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
)) == null ? void 0 : r.content) ?? [], l = (t == null ? void 0 : t[0]) ?? null;
|
|
109
|
+
const l = ((this.slotsContents.get() ?? []).find(
|
|
110
|
+
(r) => ["y-axis", "x-axis"].includes(r.name)
|
|
111
|
+
)?.content ?? [])?.[0] ?? null;
|
|
117
112
|
return !!(l && l.type === "datetime" && !this.isArrayColumnType(l.type));
|
|
118
113
|
}
|
|
119
114
|
/** Replace the full list (e.g. after dropping or re-ordering). */
|
|
120
|
-
setContents(
|
|
121
|
-
if (this.slotContents.set(
|
|
122
|
-
const l = structuredClone(this.slotsContents.get()) ?? [], r = l.find((
|
|
123
|
-
r && (r.content =
|
|
115
|
+
setContents(t, e) {
|
|
116
|
+
if (this.slotContents.set(t), this.activeIndex.get() >= t.length && this.activeIndex.set(t.length > 0 ? t.length - 1 : 0), e) {
|
|
117
|
+
const l = structuredClone(this.slotsContents.get()) ?? [], r = l.find((i) => i.name === e);
|
|
118
|
+
r && (r.content = t), this.setFullContents(l);
|
|
124
119
|
}
|
|
125
120
|
}
|
|
126
|
-
setFullContents(
|
|
127
|
-
this.slotsContents.set(
|
|
121
|
+
setFullContents(t) {
|
|
122
|
+
this.slotsContents.set(t);
|
|
128
123
|
}
|
|
129
124
|
/** Change which item is considered active (e.g. user clicked in list). */
|
|
130
|
-
updateActive(
|
|
131
|
-
|
|
125
|
+
updateActive(t) {
|
|
126
|
+
t >= 0 && t < this.slotContents.get().length && this.activeIndex.set(t);
|
|
132
127
|
}
|
|
133
128
|
/** Update / overwrite a single content entry. */
|
|
134
|
-
updateContent(
|
|
135
|
-
if (
|
|
129
|
+
updateContent(t, e = this.activeIndex.get()) {
|
|
130
|
+
if (e < 0 || e >= this.slotContents.get().length) return;
|
|
136
131
|
const l = [...this.slotContents.get()];
|
|
137
|
-
l[
|
|
132
|
+
l[e] = structuredClone(t), this.slotContents.set(l);
|
|
138
133
|
}
|
|
139
134
|
/** Remove one content entry by index. */
|
|
140
|
-
removeContent(
|
|
141
|
-
if (
|
|
142
|
-
const
|
|
143
|
-
this.slotContents.set(
|
|
135
|
+
removeContent(t) {
|
|
136
|
+
if (t < 0 || t >= this.slotContents.get().length) return;
|
|
137
|
+
const e = this.slotContents.get().filter((l, r) => r !== t);
|
|
138
|
+
this.slotContents.set(e), this.activeIndex.get() >= e.length && this.activeIndex.set(e.length > 0 ? e.length - 1 : 0);
|
|
144
139
|
}
|
|
145
140
|
}
|
|
146
|
-
const
|
|
147
|
-
Category: () =>
|
|
148
|
-
Measure: () =>
|
|
149
|
-
Legend: () =>
|
|
150
|
-
"Y-Axis": () =>
|
|
151
|
-
"X-Axis": () =>
|
|
152
|
-
"Group by": () =>
|
|
141
|
+
const j = ":host{font-family:var(--luzmo-droppable-slot-font-family, var(--luzmo-font-family));--slot-height: var( --luzmo-droppable-slot-height, var(--droppable-slot-height) )}.droppable-slot-wrapper{position:relative;width:var(--slot-height);min-width:var(--slot-height);height:auto;overflow:visible}.droppable-slot[filled]{border:var(--luzmo-droppable-slot-filled-border-width, var(--droppable-slot-filled-border-width)) var(--luzmo-droppable-slot-filled-border-style, var(--droppable-slot-filled-border-style)) var(--luzmo-droppable-slot-filled-border-color, var(--droppable-slot-filled-border-color));background-color:var(--luzmo-droppable-slot-filled-background-color, var(--droppable-slot-filled-background-color));color:var(--luzmo-droppable-slot-filled-color, var(--droppable-slot-filled-color));padding-right:0;gap:var(--luzmo-droppable-slot-filled-gap, var(--droppable-slot-filled-gap))}.droppable-slot[filled]>*:not(luzmo-overlay){cursor:pointer}.droppable-slot{background-color:var(--luzmo-droppable-slot-background-color, var(--droppable-slot-background-color));color:var(--luzmo-droppable-slot-font-color, var(--droppable-slot-font-color));border:var(--luzmo-droppable-slot-border-width, var(--droppable-slot-border-width)) var(--luzmo-droppable-slot-border-style, var(--droppable-slot-border-style)) var(--luzmo-droppable-slot-border-color, var(--droppable-slot-border-color));display:flex;justify-content:space-between;align-items:center;padding-left:var(--luzmo-droppable-slot-edge-to-label, var(--droppable-slot-edge-to-label));padding-right:var(--luzmo-droppable-slot-label-to-controls, var(--droppable-slot-label-to-controls));border-radius:var(--luzmo-droppable-slot-border-radius, var(--droppable-slot-border-radius));height:var(--luzmo-droppable-slot-height, var(--droppable-slot-height))}:host(.pulse) .droppable-slot{animation:dropelementpulse 1s infinite ease-in-out}:host([accept-drag]) .droppable-slot{background-color:var(--luzmo-droppable-slot-accept-drag-background-color, var(--droppable-slot-accept-drag-background-color));color:var(--luzmo-droppable-slot-accept-drag-font-color, var(--droppable-slot-accept-drag-font-color));border-color:var(--luzmo-droppable-slot-accept-drag-border-color, var(--droppable-slot-accept-drag-border-color));animation:dropelementpulse 1s infinite ease-in-out}:host([accept-drag]) .controls{background-color:var(--luzmo-droppable-slot-accept-drag-controls-background-color, var(--droppable-slot-accept-drag-controls-background-color));color:var(--luzmo-droppable-slot-accept-drag-controls-color, var(--droppable-slot-accept-drag-controls-color))}:host([would-accept-drag]) .droppable-slot:not([filled]){animation:var(--luzmo-slot-would-accept-drop-animation, none)}@keyframes dropelementpulse{0%{box-shadow:0 0 0 0 var(--luzmo-droppable-slot-pulse-color, var(--droppable-slot-pulse-color)),0 0 0 0 var(--luzmo-droppable-slot-pulse-color, var(--droppable-slot-pulse-color))}to{box-shadow:0 0 0 1rem transparent,0 0 0 1rem transparent}}:host([disabled]) .droppable-slot{background-color:var(--luzmo-droppable-slot-background-color-disabled, var(--droppable-slot-background-color-disabled));color:var(--luzmo-droppable-slot-color-disabled, var(--droppable-slot-color-disabled));cursor:not-allowed}:host([disabled]) .drag-handle-icon{opacity:.25;font-size:12px}.drag-handle-icon{opacity:.5;font-size:12px}.droppable-slot-label{font-size:var(--luzmo-droppable-slot-label-font-size, var(--droppable-slot-label-font-size));padding-top:var(--luzmo-droppable-slot-label-padding-top, var(--droppable-slot-label-padding-top));padding-bottom:var(--luzmo-droppable-slot-label-padding-bottom, var(--droppable-slot-label-padding-bottom));flex-grow:1;max-width:var(--luzmo-droppable-slot-label-max-width);margin-right:var(--luzmo-droppable-slot-text-to-controls, var(--droppable-slot-text-to-controls));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.controls{height:100%;display:flex;align-items:center;gap:var(--luzmo-droppable-slot-controls-gap, var(--droppable-slot-controls-gap));background-color:var(--luzmo-droppable-slot-controls-background-color, var(--droppable-slot-controls-background-color));color:var(--luzmo-droppable-slot-controls-color, var(--droppable-slot-controls-color));margin-right:var(--luzmo-droppable-slot-controls-to-edge, var(--droppable-slot-controls-to-edge));padding:0 var(--luzmo-droppable-slot-controls-horizontal-padding, var(--droppable-slot-controls-horizontal-padding));font-size:var(--luzmo-droppable-slot-controls-font-size)}.controls div{cursor:pointer;height:100%;display:flex;align-items:center;padding:0 var(--luzmo-droppable-slot-controls-control-horizontal-padding, var(--droppable-slot-controls-control-horizontal-padding))}.droppable-slot.rotate{position:absolute;top:0;left:50%;transform-origin:center;max-width:15rem;transform:translate(-50%) rotate(-90deg)}luzmo-slot-menu[placement=bottom],luzmo-slot-menu[placement=top],luzmo-slot-menu[placement=bottom-start],luzmo-slot-menu[placement=top-start],luzmo-slot-menu[placement=bottom-end],luzmo-slot-menu[placement=top-end]{margin:var(--luzmo-droppable-slot-overlay-vertical-gap, var(--droppable-slot-overlay-vertical-gap)) 0}luzmo-slot-menu[placement=left],luzmo-slot-menu[placement=right],luzmo-slot-menu[placement=left-start],luzmo-slot-menu[placement=right-start],luzmo-slot-menu[placement=left-end],luzmo-slot-menu[placement=right-end]{margin:0 var(--luzmo-droppable-slot-overlay-horizontal-gap, var(--droppable-slot-overlay-horizontal-gap))}:host{--droppable-slot-border-width: var(--luzmo-border-width);--droppable-slot-border-style: dashed;--droppable-slot-border-color: var(--luzmo-border-color);--droppable-slot-background-color: transparent;--droppable-slot-accept-drag-background-color: var(--luzmo-positive-color);--droppable-slot-accept-drag-color: white;--droppable-slot-accept-drag-border-color: var(--luzmo-positive-color-down);--droppable-slot-accept-drag-font-color: white;--droppable-slot-font-color: var(--luzmo-font-color);--droppable-slot-controls-background-color: var(--luzmo-primary-down);--droppable-slot-controls-color: var(--luzmo-primary-inverse-color);--droppable-slot-accept-drag-controls-background-color: var( --luzmo-positive-color-down );--droppable-slot-accept-drag-controls-color: white;--droppable-slot-text-to-controls: var(--luzmo-spacing-3);--droppable-slot-controls-to-edge: 0;--droppable-slot-controls-gap: var(--luzmo-spacing-2);--droppable-slot-controls-horizontal-padding: var(--luzmo-spacing-2);--droppable-slot-controls-control-horizontal-padding: var(--luzmo-spacing-3);--droppable-slot-filled-background-color: var(--luzmo-primary);--droppable-slot-filled-color: var(--luzmo-primary-inverse-color);--droppable-slot-filled-border-width: var(--luzmo-border-width);--droppable-slot-filled-border-style: solid;--droppable-slot-filled-border-color: var(--luzmo-primary-down);--droppable-slot-height: var( --luzmo-droppable-slot-height, var(--luzmo-component-height) );--droppable-slot-label-font-size: var(--luzmo-font-size);--droppable-slot-icon-type-font-size: var(--luzmo-font-size);--droppable-slot-edge-to-label: var(--luzmo-spacing-5);--droppable-slot-label-to-controls: var(--luzmo-spacing-5);--droppable-slot-color-disabled: var(--luzmo-color-disabled);--droppable-slot-background-color-disabled: var( --luzmo-background-color-disabled );--droppable-slot-pulse-color: rgba(var(--luzmo-positive-color-rgb), .2);--droppable-slot-border-radius: var(--luzmo-border-radius);--droppable-slot-filled-gap: var(--luzmo-spacing-5)}:host{--droppable-slot-height: var( --luzmo-droppable-slot-height, var(--luzmo-component-height) );--droppable-slot-label-font-size: var(--luzmo-font-size);--droppable-slot-icon-type-font-size: var(--luzmo-font-size);--droppable-slot-horizontal-padding: var(--luzmo-spacing-4);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-4);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=s]){--droppable-slot-height: var( --luzmo-droppable-slot-height, var(--luzmo-component-height-s) );--droppable-slot-label-font-size: var(--luzmo-font-size-s);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-s);--droppable-slot-horizontal-padding: var(--luzmo-spacing-4);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-4);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=l]){--droppable-slot-height: var( --luzmo-droppable-slot-height, var(--luzmo-component-height-l) );--droppable-slot-label-font-size: var(--luzmo-font-size-l);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-l);--droppable-slot-horizontal-padding: var(--luzmo-spacing-5);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-5);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-5)}:host([size=xl]){--droppable-slot-height: var( --luzmo-droppable-slot-height, var(--luzmo-component-height-xl) );--droppable-slot-label-font-size: var(--luzmo-font-size-xl);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-xl);--droppable-slot-horizontal-padding: var(--luzmo-spacing-5);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-5);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-5)}:host{box-sizing:border-box}", C = {
|
|
142
|
+
Category: () => m("Category", { desc: "Category label" }),
|
|
143
|
+
Measure: () => m("Measure", { desc: "Measure label" }),
|
|
144
|
+
Legend: () => m("Legend", { desc: "Legend label" }),
|
|
145
|
+
"Y-Axis": () => m("Y-Axis", { desc: "Y-Axis label" }),
|
|
146
|
+
"X-Axis": () => m("X-Axis", { desc: "X-Axis label" }),
|
|
147
|
+
"Group by": () => m("Group by", { desc: "Group by label" })
|
|
153
148
|
};
|
|
154
|
-
var
|
|
155
|
-
for (var r = l > 1 ? void 0 : l ?
|
|
156
|
-
(
|
|
157
|
-
return l && r &&
|
|
149
|
+
var H = Object.defineProperty, V = Object.getOwnPropertyDescriptor, a = (o, t, e, l) => {
|
|
150
|
+
for (var r = l > 1 ? void 0 : l ? V(t, e) : t, i = o.length - 1, p; i >= 0; i--)
|
|
151
|
+
(p = o[i]) && (r = (l ? p(t, e, r) : p(r)) || r);
|
|
152
|
+
return l && r && H(t, e, r), r;
|
|
158
153
|
};
|
|
159
|
-
let
|
|
154
|
+
let s = class extends M(T, {
|
|
160
155
|
validSizes: ["s", "m", "l", "xl"],
|
|
161
156
|
noDefaultSize: !0
|
|
162
157
|
}) {
|
|
163
158
|
constructor() {
|
|
164
|
-
super(), this._loadSlotsConfig = new
|
|
159
|
+
super(), this._loadSlotsConfig = new A(this, {
|
|
165
160
|
task: async ([o]) => {
|
|
166
161
|
if (o && o !== this._itemTypeLoaded) {
|
|
167
|
-
const
|
|
162
|
+
const t = /* @__PURE__ */ Object.assign({
|
|
168
163
|
"../../item-definitions/area-chart/area-chart-slots.config.ts": () => import("../area-chart-slots.config-DoytjTpw.js"),
|
|
169
164
|
"../../item-definitions/bar-chart/bar-chart-slots.config.ts": () => import("../bar-chart-slots.config-Dn0IV43j.js"),
|
|
170
165
|
"../../item-definitions/box-plot/box-plot-slots.config.ts": () => import("../box-plot-slots.config-FI5Id-7p.js"),
|
|
@@ -210,16 +205,16 @@ let n = class extends P(F, {
|
|
|
210
205
|
"../../item-definitions/venn-diagram/venn-diagram-slots.config.ts": () => import("../venn-diagram-slots.config-BPxkBFb6.js"),
|
|
211
206
|
"../../item-definitions/video/video-slots.config.ts": () => import("../video-slots.config-IpwUxDyU.js"),
|
|
212
207
|
"../../item-definitions/wordcloud-chart/wordcloud-chart-slots.config.ts": () => import("../wordcloud-chart-slots.config-BS4sOOHt.js")
|
|
213
|
-
}),
|
|
214
|
-
if (e
|
|
215
|
-
const l = await e
|
|
216
|
-
this._itemTypeLoaded = o, this._slotsConfig =
|
|
208
|
+
}), e = `../../item-definitions/${o}/${o}-slots.config.ts`;
|
|
209
|
+
if (t[e]) {
|
|
210
|
+
const l = await t[e]();
|
|
211
|
+
this._itemTypeLoaded = o, this._slotsConfig = l?.default ?? {};
|
|
217
212
|
}
|
|
218
213
|
return this._slotsConfig;
|
|
219
214
|
}
|
|
220
215
|
},
|
|
221
216
|
args: () => [this.itemType, this.language]
|
|
222
|
-
}), this._slotsConfig = [], this.slotConfiguration = {}, this.slotsContents = [], this.language = "en", this.rotate = !1, this.apiUrl = "https://api.luzmo.com", this.authKey = "", this.authToken = "", this.menu = "default", this.placement = "bottom-end", this._slotContents = [], this._overlayReady = !1, this._store = new
|
|
217
|
+
}), this._slotsConfig = [], this.slotConfiguration = {}, this.slotsContents = [], this.language = "en", this.rotate = !1, this.apiUrl = "https://api.luzmo.com", this.authKey = "", this.authToken = "", this.menu = "default", this.placement = "bottom-end", this._slotContents = [], this._overlayReady = !1, this._store = new N(), this._currentSlotContents = [], this._lastFetchedDatasetId = null, this._linkedDatasetsIds = [], this._acceptableColumnTypes = [
|
|
223
218
|
"datetime",
|
|
224
219
|
"hierarchy",
|
|
225
220
|
"numeric",
|
|
@@ -229,12 +224,11 @@ let n = class extends P(F, {
|
|
|
229
224
|
"array[hierarchy]",
|
|
230
225
|
"array[spatial]"
|
|
231
226
|
], this._attachDroppable = () => {
|
|
232
|
-
this._cleanupDroppable || (this._cleanupDroppable =
|
|
227
|
+
this._cleanupDroppable || (this._cleanupDroppable = w({
|
|
233
228
|
element: this,
|
|
234
229
|
onDrop: async (o) => {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
this._slotContents = (m = this.slotConfiguration) != null && m.canAcceptMultipleDataItems ? [...this._slotContents ?? [], s] : [s], this.removeAttribute("accept-drag"), r && r !== this._lastFetchedDatasetId && (this._lastFetchedDatasetId = r, await D.fetchDatasetsRecursive([r]), this._linkedDatasetsIds = D.getLinkedDatasetsIds(r)), l ? (this._overlayReady = !1, setTimeout(() => {
|
|
230
|
+
const t = { ...o.source?.data }, e = o?.source?.element?.hasAttribute("sublevel") ?? !1, l = this._slotContents?.length === 0, r = t.datasetId, i = R(t, e);
|
|
231
|
+
this._slotContents = this.slotConfiguration?.canAcceptMultipleDataItems ? [...this._slotContents ?? [], i] : [i], this.removeAttribute("accept-drag"), r && r !== this._lastFetchedDatasetId && (this._lastFetchedDatasetId = r, await y.fetchDatasetsRecursive([r]), this._linkedDatasetsIds = y.getLinkedDatasetsIds(r)), l ? (this._overlayReady = !1, setTimeout(() => {
|
|
238
232
|
this._overlayReady = !0;
|
|
239
233
|
}, 200)) : this._overlayReady = !0, this.changedSlotContents(this._slotContents, this._linkedDatasetsIds), this.classList.remove("pulse");
|
|
240
234
|
},
|
|
@@ -248,35 +242,32 @@ let n = class extends P(F, {
|
|
|
248
242
|
}
|
|
249
243
|
}));
|
|
250
244
|
}, this._canDropItem = ({ source: o }) => {
|
|
251
|
-
var r, s, a, p, i, d, m, u, b;
|
|
252
245
|
if (![
|
|
253
246
|
"LUZMO-DRAGGABLE-DATA-ITEM-LEVEL",
|
|
254
247
|
"LUZMO-DRAGGABLE-DATA-ITEM"
|
|
255
|
-
].includes(
|
|
248
|
+
].includes(o.element?.tagName) || !this.slotConfiguration?.canAcceptFormula && (o?.data?.formulaId || o?.data?.formula || o?.data?.entity === "formula"))
|
|
256
249
|
return !1;
|
|
257
|
-
const { acceptableDataItemTypes:
|
|
258
|
-
return
|
|
259
|
-
}, this.changedSlotContents = (o,
|
|
260
|
-
|
|
261
|
-
(t = this._store) == null || t.setContents(o, this.slotName), this.dispatchEvent(
|
|
250
|
+
const { acceptableDataItemTypes: t, acceptableColumnSubtypes: e } = this.slotConfiguration ?? {}, l = Array.isArray(t) && t.length > 0 ? t : this._acceptableColumnTypes;
|
|
251
|
+
return o?.data?.type && !l.includes(o?.data?.type) ? !1 : !(o?.data?.subtype && Array.isArray(e) && e.length > 0 && !e.includes(o?.data?.subtype));
|
|
252
|
+
}, this.changedSlotContents = (o, t = []) => {
|
|
253
|
+
this._store?.setContents(o, this.slotName), this.dispatchEvent(
|
|
262
254
|
new CustomEvent("slot-contents-changed", {
|
|
263
255
|
bubbles: !0,
|
|
264
256
|
composed: !0,
|
|
265
257
|
cancelable: !0,
|
|
266
258
|
detail: {
|
|
267
259
|
slotContents: o,
|
|
268
|
-
linkedDatasetsIds:
|
|
260
|
+
linkedDatasetsIds: t
|
|
269
261
|
}
|
|
270
262
|
})
|
|
271
263
|
);
|
|
272
264
|
}, this._handleDragStart = (o) => {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
if (this._overlayElement && (this._overlayElement.open = !1), !t) return;
|
|
265
|
+
const t = o, e = t.detail?.data;
|
|
266
|
+
if (this._overlayElement && (this._overlayElement.open = !1), !e) return;
|
|
276
267
|
const l = {
|
|
277
|
-
data:
|
|
268
|
+
data: e,
|
|
278
269
|
element: {
|
|
279
|
-
tagName:
|
|
270
|
+
tagName: t.target instanceof HTMLElement && t.target.tagName === "LUZMO-DRAGGABLE-DATA-ITEM-LEVEL" ? "LUZMO-DRAGGABLE-DATA-ITEM-LEVEL" : "LUZMO-DRAGGABLE-DATA-ITEM"
|
|
280
271
|
}
|
|
281
272
|
};
|
|
282
273
|
this._canDropItem({ source: l }) && this.setAttribute("would-accept-drag", "");
|
|
@@ -284,8 +275,8 @@ let n = class extends P(F, {
|
|
|
284
275
|
this.removeAttribute("would-accept-drag");
|
|
285
276
|
}, this._handleOverlayClick = (o) => {
|
|
286
277
|
o.detail > 0 && o.target === this._overlayElement ? this._overlayElement.open = !1 : o.stopPropagation();
|
|
287
|
-
}, new
|
|
288
|
-
context:
|
|
278
|
+
}, new k(this, {
|
|
279
|
+
context: U,
|
|
289
280
|
initialValue: this._store
|
|
290
281
|
});
|
|
291
282
|
}
|
|
@@ -293,8 +284,7 @@ let n = class extends P(F, {
|
|
|
293
284
|
super.connectedCallback(), this._attachDroppable(), document.addEventListener("data-item-drag-started", this._handleDragStart), document.addEventListener("data-item-dropped", this._handleDragEnd);
|
|
294
285
|
}
|
|
295
286
|
disconnectedCallback() {
|
|
296
|
-
|
|
297
|
-
super.disconnectedCallback(), this._cleanupDroppable && (this._cleanupDroppable(), this._cleanupDroppable = void 0), (e = (o = this._loadSlotsConfig).abort) == null || e.call(o), document.removeEventListener(
|
|
287
|
+
super.disconnectedCallback(), this._cleanupDroppable && (this._cleanupDroppable(), this._cleanupDroppable = void 0), this._loadSlotsConfig.abort?.(), document.removeEventListener(
|
|
298
288
|
"data-item-drag-started",
|
|
299
289
|
this._handleDragStart
|
|
300
290
|
), document.removeEventListener("data-item-dropped", this._handleDragEnd);
|
|
@@ -303,13 +293,12 @@ let n = class extends P(F, {
|
|
|
303
293
|
o.preventDefault(), o.stopPropagation(), this._slotContents = [], this.changedSlotContents([]);
|
|
304
294
|
}
|
|
305
295
|
willUpdate(o) {
|
|
306
|
-
o.has("slotConfiguration") && (this._cleanupDroppable && (this._cleanupDroppable(), this._cleanupDroppable = void 0), this._attachDroppable()), o.has("slotsContents") && this._processSlotsContents(), o.has("language") && this.language !==
|
|
296
|
+
o.has("slotConfiguration") && (this._cleanupDroppable && (this._cleanupDroppable(), this._cleanupDroppable = void 0), this._attachDroppable()), o.has("slotsContents") && this._processSlotsContents(), o.has("language") && this.language !== P() && ([...B].includes(this.language ?? "en") || this.language === "en") && G(this.language);
|
|
307
297
|
}
|
|
308
298
|
_processSlotsContents() {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
)) == null ? void 0 : t.content) ?? [], this._currentSlotContents = [...this._slotContents], ((l = this._slotContents) == null ? void 0 : l.length) > 0 && (this._overlayReady = !0), (r = this._store) == null || r.setContents(this._slotContents);
|
|
299
|
+
this._store?.setFullContents(this.slotsContents), this._slotContents = this.slotsContents?.find(
|
|
300
|
+
(o) => o.name === this.slotName
|
|
301
|
+
)?.content ?? [], this._currentSlotContents = [...this._slotContents], this._slotContents?.length > 0 && (this._overlayReady = !0), this._store?.setContents(this._slotContents);
|
|
313
302
|
}
|
|
314
303
|
firstUpdated() {
|
|
315
304
|
this._attachDroppable();
|
|
@@ -318,8 +307,8 @@ let n = class extends P(F, {
|
|
|
318
307
|
* Handle overlay open event - reset slot menu position
|
|
319
308
|
*/
|
|
320
309
|
_onOverlayClosed(o) {
|
|
321
|
-
const
|
|
322
|
-
this._slotMenuElement &&
|
|
310
|
+
const t = o.overlay;
|
|
311
|
+
this._slotMenuElement && t === this._overlayElement && (setTimeout(() => {
|
|
323
312
|
this._slotMenuElement.resetPosition();
|
|
324
313
|
}, 500), this.dispatchEvent(
|
|
325
314
|
new CustomEvent("slot-menu-inactive", {
|
|
@@ -329,18 +318,17 @@ let n = class extends P(F, {
|
|
|
329
318
|
));
|
|
330
319
|
}
|
|
331
320
|
_onOverlayOpened(o) {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
(d || u) && m && (this.dispatchEvent(
|
|
321
|
+
const t = o.overlay;
|
|
322
|
+
if (this._slotMenuElement && t === this._overlayElement) {
|
|
323
|
+
const e = this._store?.activeIndex.get?.() ?? 0, l = this._slotContents?.[e] ?? this._slotContents?.[0];
|
|
324
|
+
if (!l) return;
|
|
325
|
+
const r = l?.column ?? l?.columnId, i = l?.set ?? l?.datasetId, p = l?.formula;
|
|
326
|
+
(r || p) && i && (this.dispatchEvent(
|
|
339
327
|
new CustomEvent("slot-menu-active", {
|
|
340
328
|
bubbles: !0,
|
|
341
329
|
composed: !0,
|
|
342
330
|
detail: {
|
|
343
|
-
datasetId:
|
|
331
|
+
datasetId: i
|
|
344
332
|
}
|
|
345
333
|
})
|
|
346
334
|
), setTimeout(() => {
|
|
@@ -349,10 +337,10 @@ let n = class extends P(F, {
|
|
|
349
337
|
bubbles: !0,
|
|
350
338
|
composed: !0,
|
|
351
339
|
detail: {
|
|
352
|
-
datasetId:
|
|
353
|
-
level:
|
|
354
|
-
...
|
|
355
|
-
...
|
|
340
|
+
datasetId: i,
|
|
341
|
+
level: l?.level ?? 0,
|
|
342
|
+
...r && { columnId: r },
|
|
343
|
+
...p && { formulaId: p }
|
|
356
344
|
}
|
|
357
345
|
})
|
|
358
346
|
);
|
|
@@ -360,34 +348,31 @@ let n = class extends P(F, {
|
|
|
360
348
|
}
|
|
361
349
|
}
|
|
362
350
|
_onSlotMenuChanges(o) {
|
|
363
|
-
var t;
|
|
364
351
|
o.preventDefault(), o.stopPropagation();
|
|
365
|
-
const
|
|
366
|
-
this._slotContents.length ===
|
|
352
|
+
const t = o.detail.linkedDatasetsIds;
|
|
353
|
+
this._slotContents.length === o.detail.slotContents?.length ? (this._currentSlotContents = o.detail.slotContents, this.changedSlotContents(this._currentSlotContents, t)) : (this._slotContents = o.detail.slotContents, this.changedSlotContents(this._slotContents, t));
|
|
367
354
|
}
|
|
368
355
|
get _fullLabel() {
|
|
369
|
-
var l, r, s, a, p, i, d, m, u;
|
|
370
356
|
let o = "";
|
|
371
|
-
const
|
|
372
|
-
|
|
373
|
-
|
|
357
|
+
const t = C[this.slotConfiguration?.label] ? C[this.slotConfiguration?.label]() : this.slotConfiguration?.label;
|
|
358
|
+
this._currentSlotContents?.length === 1 ? o = I(
|
|
359
|
+
this._currentSlotContents?.[0]?.label,
|
|
374
360
|
this.language
|
|
375
|
-
) ?? "Untitled" :
|
|
376
|
-
let
|
|
377
|
-
return
|
|
361
|
+
) ?? "Untitled" : this._currentSlotContents?.length > 1 && (o = `${this._currentSlotContents.length} items`);
|
|
362
|
+
let e = this.label || t || "Untitled";
|
|
363
|
+
return this._currentSlotContents?.length > 0 && (e += this._currentSlotContents?.length > 1 ? `: ${this._currentSlotContents.length} items` : `: ${o}`), e;
|
|
378
364
|
}
|
|
379
365
|
droppableSlotMarkup() {
|
|
380
|
-
|
|
381
|
-
const o = g`
|
|
366
|
+
const o = d`
|
|
382
367
|
<div
|
|
383
368
|
id="trigger"
|
|
384
369
|
class="droppable-slot ${this.rotate ? "rotate" : ""}"
|
|
385
|
-
?filled=${
|
|
370
|
+
?filled=${this._slotContents?.length > 0}
|
|
386
371
|
>
|
|
387
372
|
<div class="droppable-slot-label">${this._fullLabel}</div>
|
|
388
|
-
${
|
|
389
|
-
${this.hideConfiguration ? "" :
|
|
390
|
-
${
|
|
373
|
+
${this._slotContents?.length > 0 && !(this.hideConfiguration && this.hideDelete) ? d`<div class="controls">
|
|
374
|
+
${this.hideConfiguration ? "" : d`<div>
|
|
375
|
+
${z(E)}
|
|
391
376
|
<luzmo-tooltip
|
|
392
377
|
self-managed
|
|
393
378
|
placement=${this.rotate ? "right" : "top"}
|
|
@@ -396,8 +381,8 @@ let n = class extends P(F, {
|
|
|
396
381
|
edit
|
|
397
382
|
</luzmo-tooltip>
|
|
398
383
|
</div> `}
|
|
399
|
-
${this.hideDelete ? "" :
|
|
400
|
-
${
|
|
384
|
+
${this.hideDelete ? "" : d`<div @click=${this.emptySlotContents}>
|
|
385
|
+
${z(L)}
|
|
401
386
|
<luzmo-tooltip
|
|
402
387
|
self-managed
|
|
403
388
|
placement=${this.rotate ? "right" : "top"}
|
|
@@ -407,7 +392,7 @@ let n = class extends P(F, {
|
|
|
407
392
|
</luzmo-tooltip>
|
|
408
393
|
</div>`}
|
|
409
394
|
</div>` : ""}
|
|
410
|
-
${
|
|
395
|
+
${this._slotContents?.length > 0 && this._overlayReady ? d`<luzmo-overlay
|
|
411
396
|
trigger="trigger@click"
|
|
412
397
|
.placement=${this.placement}
|
|
413
398
|
offset=${this.rotate ? "-100" : "-20"}
|
|
@@ -419,14 +404,14 @@ let n = class extends P(F, {
|
|
|
419
404
|
language=${this.language}
|
|
420
405
|
content-language=${this.language}
|
|
421
406
|
drag-boundary=${this.dragBoundary}
|
|
422
|
-
slot-type=${
|
|
407
|
+
slot-type=${this.slotConfiguration?.type}
|
|
423
408
|
slot-name=${this.slotName}
|
|
424
409
|
item-type=${this.itemType}
|
|
425
|
-
.areGrandTotalsEnabled=${
|
|
426
|
-
.areDatetimeOptionsEnabled=${
|
|
427
|
-
.isBinningDisabled=${
|
|
428
|
-
.isAggregationDisabled=${
|
|
429
|
-
.isCumulativeSumEnabled=${
|
|
410
|
+
.areGrandTotalsEnabled=${this.slotConfiguration?.options?.areGrandTotalsEnabled}
|
|
411
|
+
.areDatetimeOptionsEnabled=${this.slotConfiguration?.options?.areDatetimeOptionsEnabled}
|
|
412
|
+
.isBinningDisabled=${this.slotConfiguration?.options?.isBinningDisabled}
|
|
413
|
+
.isAggregationDisabled=${this.slotConfiguration?.options?.isAggregationDisabled}
|
|
414
|
+
.isCumulativeSumEnabled=${this.slotConfiguration?.options?.isCumulativeSumEnabled}
|
|
430
415
|
slot-contents=${this._slotContents}
|
|
431
416
|
variant=${this.menu === "draggable" ? "draggable" : "popup"}
|
|
432
417
|
.size=${this.size}
|
|
@@ -438,19 +423,19 @@ let n = class extends P(F, {
|
|
|
438
423
|
</luzmo-overlay>` : ""}
|
|
439
424
|
</div>
|
|
440
425
|
`;
|
|
441
|
-
return this.rotate ?
|
|
426
|
+
return this.rotate ? d`<div class="droppable-slot-wrapper">${o}</div>` : o;
|
|
442
427
|
}
|
|
443
428
|
render() {
|
|
444
429
|
return this.slotConfiguration && Object.keys(this.slotConfiguration).length > 0 ? this.droppableSlotMarkup() : this._loadSlotsConfig.render({
|
|
445
|
-
pending: () =>
|
|
430
|
+
pending: () => d`<p>Loading...</p>`,
|
|
446
431
|
complete: (o) => {
|
|
447
432
|
if (this.slotName && this.itemType && o) {
|
|
448
|
-
const
|
|
449
|
-
|
|
433
|
+
const t = o.find((e) => e.name === this.slotName);
|
|
434
|
+
t && (this.slotConfiguration = t);
|
|
450
435
|
}
|
|
451
436
|
return this.droppableSlotMarkup();
|
|
452
437
|
},
|
|
453
|
-
error: (o) =>
|
|
438
|
+
error: (o) => d`
|
|
454
439
|
<div>
|
|
455
440
|
Could not load droppable slot: '${this.slotName}' of chart
|
|
456
441
|
'${this.itemType}': ${o}.
|
|
@@ -459,68 +444,68 @@ let n = class extends P(F, {
|
|
|
459
444
|
});
|
|
460
445
|
}
|
|
461
446
|
};
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
],
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
],
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
],
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
],
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
],
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
],
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
],
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
],
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
],
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
],
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
],
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
],
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
],
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
],
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
],
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
],
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
],
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
],
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
],
|
|
520
|
-
|
|
447
|
+
s.styles = O(j);
|
|
448
|
+
a([
|
|
449
|
+
n({ type: String, reflect: !0, attribute: "item-type" })
|
|
450
|
+
], s.prototype, "itemType", 2);
|
|
451
|
+
a([
|
|
452
|
+
n({ type: String, reflect: !0, attribute: "slot-name" })
|
|
453
|
+
], s.prototype, "slotName", 2);
|
|
454
|
+
a([
|
|
455
|
+
n({ type: Object })
|
|
456
|
+
], s.prototype, "slotConfiguration", 2);
|
|
457
|
+
a([
|
|
458
|
+
n({ type: Object })
|
|
459
|
+
], s.prototype, "slotsContents", 2);
|
|
460
|
+
a([
|
|
461
|
+
n({ type: String, reflect: !0 })
|
|
462
|
+
], s.prototype, "label", 2);
|
|
463
|
+
a([
|
|
464
|
+
n({ type: String, reflect: !0 })
|
|
465
|
+
], s.prototype, "language", 2);
|
|
466
|
+
a([
|
|
467
|
+
n({ type: String, reflect: !0, attribute: "drag-boundary" })
|
|
468
|
+
], s.prototype, "dragBoundary", 2);
|
|
469
|
+
a([
|
|
470
|
+
n({ type: Boolean, reflect: !0 })
|
|
471
|
+
], s.prototype, "rotate", 2);
|
|
472
|
+
a([
|
|
473
|
+
n({ type: String, attribute: "api-url", reflect: !0 })
|
|
474
|
+
], s.prototype, "apiUrl", 2);
|
|
475
|
+
a([
|
|
476
|
+
n({ type: String, attribute: "auth-key", reflect: !0 })
|
|
477
|
+
], s.prototype, "authKey", 2);
|
|
478
|
+
a([
|
|
479
|
+
n({ type: String, attribute: "auth-token", reflect: !0 })
|
|
480
|
+
], s.prototype, "authToken", 2);
|
|
481
|
+
a([
|
|
482
|
+
n({ type: String, reflect: !0 })
|
|
483
|
+
], s.prototype, "menu", 2);
|
|
484
|
+
a([
|
|
485
|
+
n({ type: String, reflect: !0 })
|
|
486
|
+
], s.prototype, "placement", 2);
|
|
487
|
+
a([
|
|
488
|
+
n({ type: Boolean, reflect: !0, attribute: "hide-delete" })
|
|
489
|
+
], s.prototype, "hideDelete", 2);
|
|
490
|
+
a([
|
|
491
|
+
n({ type: Boolean, reflect: !0, attribute: "hide-configuration" })
|
|
492
|
+
], s.prototype, "hideConfiguration", 2);
|
|
493
|
+
a([
|
|
494
|
+
_("luzmo-slot-menu")
|
|
495
|
+
], s.prototype, "_slotMenuElement", 2);
|
|
496
|
+
a([
|
|
497
|
+
_("luzmo-overlay")
|
|
498
|
+
], s.prototype, "_overlayElement", 2);
|
|
499
|
+
a([
|
|
500
|
+
x()
|
|
501
|
+
], s.prototype, "_slotContents", 2);
|
|
502
|
+
a([
|
|
503
|
+
x()
|
|
504
|
+
], s.prototype, "_overlayReady", 2);
|
|
505
|
+
s = a([
|
|
521
506
|
S()
|
|
522
|
-
],
|
|
523
|
-
customElements.get("luzmo-droppable-slot") || customElements.define("luzmo-droppable-slot",
|
|
507
|
+
], s);
|
|
508
|
+
customElements.get("luzmo-droppable-slot") || customElements.define("luzmo-droppable-slot", s);
|
|
524
509
|
export {
|
|
525
|
-
|
|
510
|
+
s as LuzmoDroppableSlot
|
|
526
511
|
};
|