@luzmo/analytics-components-kit 1.0.1-alpha.84 → 1.0.1-alpha.85
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/components/droppable-slot.component.ts +2 -2
- package/angular/esm/components/droppable-slot.component.d.ts +2 -2
- package/angular/esm/types.d.ts +1 -1
- package/angular/types.ts +2 -2
- 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 +50 -0
- package/components/ai-interaction-textarea/index.d.ts +1 -1
- package/components/ai-interaction-textarea/index.js +152 -0
- 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-C8CbsMQf.js +139 -0
- package/components/{calculate-data-item-icon-DjW1_RI1.cjs → calculate-data-item-icon-CX4VW9Km.cjs} +1 -1
- 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-selector-list/index.cjs +11 -11
- package/components/dataset-selector-list/index.js +65 -69
- package/components/dataset-selector-row/dataset-selector-row.d.ts +1 -0
- package/components/dataset-selector-row/index.cjs +79 -0
- package/components/dataset-selector-row/index.d.ts +1 -1
- package/components/dataset-selector-row/index.js +209 -0
- 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/index.cjs +48 -48
- package/components/display-settings-numeric/index.js +194 -211
- 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 +8 -8
- package/components/draggable-data-item/index.js +44 -45
- package/components/draggable-data-item-level/index.cjs +11 -11
- package/components/draggable-data-item-level/index.js +89 -92
- 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/droppable-slot.d.ts +2 -2
- package/components/droppable-slot/index.cjs +20 -20
- package/components/droppable-slot/index.js +167 -181
- 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--a5SfjnM.cjs +20 -0
- package/components/en-CtCctD2c.js +1483 -0
- package/components/{en-GB-DG6uS3sM.cjs → en-GB-CXVKFWyH.cjs} +1 -1
- package/components/{en-GB-CEHEs8F2.js → en-GB-CbNfyZMo.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-DLiZYZEi.cjs → get-css-variable-CuDaWSjr.cjs} +2 -2
- package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-DEf4GhTH.js} +4 -4
- package/components/grid/index.cjs +46 -46
- package/components/grid/index.js +2612 -1873
- 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-Do7O9azB.js → index-3WsfvkZF.js} +112 -123
- package/components/{index-PMDgRSzR.js → index-BDFBUGBc.js} +94 -104
- package/components/index-BGb_wRRW.js +1766 -0
- package/components/{index-BPNsFiyq.cjs → index-BNAmjOkm.cjs} +4 -4
- package/components/index-BUal0r_D.cjs +121 -0
- package/components/index-D1Y5TRsH.cjs +20 -0
- package/components/index-DvkzMbLt.cjs +249 -0
- package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
- package/components/index.cjs +1 -60
- package/components/index.js +102 -281
- 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-B-Tz2sdI.js → set-locale-nv7fWEtl.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 +64 -65
- 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/{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 +22 -2
- package/index.d.ts +1 -0
- package/package.json +5 -5
- package/types.d.ts +1 -1
- 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-DZDqb3xu.js +0 -139
- 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/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-BPN3bG9X.js +0 -1733
- package/components/index-CQ9ck-BO.cjs +0 -249
- package/components/index-CXn67vdn.cjs +0 -121
- package/components/index-cfj52IbK.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
package/components/{hexbin-map-options.config-F-7uCqxb.js → hexbin-map-options.config-BguV1w8q.js}
RENAMED
|
@@ -17,9 +17,9 @@
|
|
|
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 { g as
|
|
21
|
-
import { m as
|
|
22
|
-
const
|
|
20
|
+
import { g as o, a } from "./color-palettes-BqH2Fv19.js";
|
|
21
|
+
import { m as s } from "./index-t45_zv93.js";
|
|
22
|
+
const c = [
|
|
23
23
|
{
|
|
24
24
|
key: "general",
|
|
25
25
|
type: "group",
|
|
@@ -88,8 +88,8 @@ const y = [
|
|
|
88
88
|
"Voyager",
|
|
89
89
|
"No Tiles"
|
|
90
90
|
],
|
|
91
|
-
parseValue: (e) =>
|
|
92
|
-
toValue: (e) =>
|
|
91
|
+
parseValue: (e) => e?.name || "Basic",
|
|
92
|
+
toValue: (e) => s[e] ?? {}
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
]
|
|
@@ -117,7 +117,7 @@ const y = [
|
|
|
117
117
|
label: "Number of classes",
|
|
118
118
|
default: "5",
|
|
119
119
|
enum: ["3", "4", "5", "6", "7", "8", "9"],
|
|
120
|
-
parseValue: (e) =>
|
|
120
|
+
parseValue: (e) => e?.toString() ?? "5",
|
|
121
121
|
toValue: (e) => Number.parseInt(e, 10) ?? 5
|
|
122
122
|
}
|
|
123
123
|
},
|
|
@@ -164,20 +164,13 @@ const y = [
|
|
|
164
164
|
label: "Colors type",
|
|
165
165
|
default: "sequential",
|
|
166
166
|
enum: ["sequential", "divergent"],
|
|
167
|
-
calculateValue: ({ options: e }) =>
|
|
168
|
-
|
|
169
|
-
if (
|
|
170
|
-
return "manual";
|
|
171
|
-
const l = r();
|
|
172
|
-
return ((t = l == null ? void 0 : l[e == null ? void 0 : e.colorsClass]) == null ? void 0 : t.type) ?? "sequential";
|
|
173
|
-
},
|
|
174
|
-
toOptions: ({ options: e, value: l }) => {
|
|
175
|
-
var c;
|
|
176
|
-
if (l === "manual")
|
|
167
|
+
calculateValue: ({ options: e }) => e?.colorsClass === "manual" ? "manual" : o()?.[e?.colorsClass]?.type ?? "sequential",
|
|
168
|
+
toOptions: ({ options: e, value: t }) => {
|
|
169
|
+
if (t === "manual")
|
|
177
170
|
return { ...e, colorsClass: "manual" };
|
|
178
|
-
let
|
|
179
|
-
const
|
|
180
|
-
return
|
|
171
|
+
let l = e.colorClass;
|
|
172
|
+
const r = o()?.[e?.colorsClass]?.type;
|
|
173
|
+
return t !== r && (l = a(t ?? "sequential")[0]), { ...e, colorsClass: l };
|
|
181
174
|
}
|
|
182
175
|
}
|
|
183
176
|
},
|
|
@@ -188,14 +181,12 @@ const y = [
|
|
|
188
181
|
label: "Color palette",
|
|
189
182
|
hideLabel: !0,
|
|
190
183
|
default: ({ options: e }) => {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
return s(a ?? "sequential")[0];
|
|
184
|
+
const l = o()?.[e?.colorsClass]?.type;
|
|
185
|
+
return a(l ?? "sequential")[0];
|
|
194
186
|
},
|
|
195
187
|
enum: ({ options: e }) => {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
return s(a ?? "sequential");
|
|
188
|
+
const l = o()?.[e?.colorsClass]?.type;
|
|
189
|
+
return a(l ?? "sequential");
|
|
199
190
|
}
|
|
200
191
|
}
|
|
201
192
|
}
|
|
@@ -214,10 +205,7 @@ const y = [
|
|
|
214
205
|
default: "bar",
|
|
215
206
|
enum: ["bar", "list"]
|
|
216
207
|
},
|
|
217
|
-
visibleIf: ({ options: e }) =>
|
|
218
|
-
var l;
|
|
219
|
-
return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.legend) !== !1;
|
|
220
|
-
}
|
|
208
|
+
visibleIf: ({ options: e }) => e?.display?.legend !== !1
|
|
221
209
|
},
|
|
222
210
|
{
|
|
223
211
|
key: "legend.size",
|
|
@@ -232,10 +220,7 @@ const y = [
|
|
|
232
220
|
},
|
|
233
221
|
selects: "single"
|
|
234
222
|
},
|
|
235
|
-
visibleIf: ({ options: e }) =>
|
|
236
|
-
var l;
|
|
237
|
-
return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.legend) !== !1;
|
|
238
|
-
}
|
|
223
|
+
visibleIf: ({ options: e }) => e?.display?.legend !== !1
|
|
239
224
|
},
|
|
240
225
|
{
|
|
241
226
|
key: "legend.position",
|
|
@@ -254,14 +239,11 @@ const y = [
|
|
|
254
239
|
"left"
|
|
255
240
|
]
|
|
256
241
|
},
|
|
257
|
-
visibleIf: ({ options: e }) =>
|
|
258
|
-
var l;
|
|
259
|
-
return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.legend) !== !1;
|
|
260
|
-
}
|
|
242
|
+
visibleIf: ({ options: e }) => e?.display?.legend !== !1
|
|
261
243
|
}
|
|
262
244
|
]
|
|
263
245
|
}
|
|
264
246
|
];
|
|
265
247
|
export {
|
|
266
|
-
|
|
248
|
+
c as default
|
|
267
249
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
|
7
|
+
* This license allows users with a current active Luzmo account
|
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
+
*
|
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
+
* SOFTWARE.
|
|
19
|
+
* */
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./color-palettes-DhNHcib8.cjs"),r=require("./index-DhDgy1sp.cjs"),s=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0}},{key:"enabled.zoom",control:{type:"switch",label:"Zoom",default:!0}},{key:"enabled.pan",control:{type:"switch",label:"Pan",default:!0}},{key:"enabled.pitchBearing",control:{type:"switch",label:"Pitch & Rotate",default:!1}},{type:"divider"},{key:"vectorTileProvider",control:{type:"picker",label:"Map style",default:"Basic",enum:["Basic","Bright","Dark","Fiord","Liberty","Pastel","Positron","Streets","Toner","Topographique","Voyager","No Tiles"],parseValue:e=>e?.name||"Basic",toValue:e=>r.mapVectorTileProviders[e]??{}}}]},{key:"classification",type:"group",open:!0,children:[{key:"radius",control:{type:"slider",label:"Radius",default:16,min:4,max:100,step:1}},{key:"numberClasses",control:{type:"picker",label:"Number of classes",default:"5",enum:["3","4","5","6","7","8","9"],parseValue:e=>e?.toString()??"5",toValue:e=>Number.parseInt(e,10)??5}},{key:"aggregationType",control:{type:"picker",label:"Hexbin aggregation",default:"count",enum:["count","sum","mean","median","minimum","maximum"]}},{key:"classification",control:{type:"picker",label:"Color Method",default:"interval",enum:["interval","quantile"]}}]},{key:"colors",type:"group",open:!0,children:[{key:"opacity",control:{type:"slider",label:"Opacity",default:.85,min:0,max:1,step:.01}},{key:"colorsClassType",control:{type:"picker",label:"Colors type",default:"sequential",enum:["sequential","divergent"],calculateValue:({options:e})=>e?.colorsClass==="manual"?"manual":t.getColorMaps()?.[e?.colorsClass]?.type??"sequential",toOptions:({options:e,value:o})=>{if(o==="manual")return{...e,colorsClass:"manual"};let l=e.colorClass;const a=t.getColorMaps()?.[e?.colorsClass]?.type;return o!==a&&(l=t.getColorMapKeys(o??"sequential")[0]),{...e,colorsClass:l}}}},{key:"colorsClass",control:{type:"color-palette-picker",label:"Color palette",hideLabel:!0,default:({options:e})=>{const l=t.getColorMaps()?.[e?.colorsClass]?.type;return t.getColorMapKeys(l??"sequential")[0]},enum:({options:e})=>{const l=t.getColorMaps()?.[e?.colorsClass]?.type;return t.getColorMapKeys(l??"sequential")}}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.type",control:{type:"picker",label:"Type",default:"bar",enum:["bar","list"]},visibleIf:({options:e})=>e?.display?.legend!==!1},{key:"legend.size",control:{type:"action-button-group",label:"Size",default:["M"],values:{S:{buttonText:"S",label:"Small"},M:{buttonText:"M",label:"Medium"},L:{buttonText:"L",label:"Large"}},selects:"single"},visibleIf:({options:e})=>e?.display?.legend!==!1},{key:"legend.position",control:{type:"position-picker",label:"Position",default:"bottomLeft",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]},visibleIf:({options:e})=>e?.display?.legend!==!1}]}];exports.default=s;
|
|
@@ -17,9 +17,9 @@
|
|
|
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 { SignalWatcher as
|
|
21
|
-
import { createContext as
|
|
22
|
-
import { Task as
|
|
20
|
+
import { SignalWatcher as c } from "@lit-labs/signals";
|
|
21
|
+
import { createContext as h, consume as v } from "@lit/context";
|
|
22
|
+
import { Task as y } from "@lit/task";
|
|
23
23
|
import "@luzmo/lucero/divider";
|
|
24
24
|
import "@luzmo/lucero/field-label";
|
|
25
25
|
import "@luzmo/lucero/icon";
|
|
@@ -27,52 +27,48 @@ import "@luzmo/lucero/multi-language-field";
|
|
|
27
27
|
import "@luzmo/lucero/progress-circle";
|
|
28
28
|
import "@luzmo/lucero/text-field";
|
|
29
29
|
import "@luzmo/lucero/tooltip";
|
|
30
|
-
import { unsafeCSS as
|
|
31
|
-
import { property as
|
|
30
|
+
import { unsafeCSS as z, nothing as f, html as l } from "lit";
|
|
31
|
+
import { property as o, state as b, query as _ } from "lit/decorators.js";
|
|
32
32
|
import { msg as m } from "@lit/localize";
|
|
33
|
-
import { luzmoIcon as
|
|
34
|
-
import { L as
|
|
35
|
-
import { S as
|
|
36
|
-
import { f as
|
|
37
|
-
const
|
|
33
|
+
import { luzmoIcon as g, luzmoInfoCircleOutline as C, luzmoTrashOutline as x } from "@luzmo/icons";
|
|
34
|
+
import { L as S } from "./focusable-BS2pbY7w.js";
|
|
35
|
+
import { S as $, E as T } from "./sized-mixin-cJbo3PKR.js";
|
|
36
|
+
import { f as w } from "./en-CtCctD2c.js";
|
|
37
|
+
const D = h(
|
|
38
38
|
Symbol("slot-store-context")
|
|
39
|
-
),
|
|
40
|
-
var
|
|
41
|
-
for (var
|
|
42
|
-
(d = u[
|
|
43
|
-
return
|
|
39
|
+
), E = ":host{font-family:var(--luzmo-display-settings-font-family, var(--luzmo-font-family));font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-gap, var(--luzmo-spacing-2))}.settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap))}luzmo-divider{margin:var(--luzmo-display-settings-ids-container-vertical-margin, var(--display-settings-ids-container-vertical-margin)) 0}luzmo-tooltip{--tooltip-font-size: var( --luzmo-display-settings-tooltip-font-size, var(--tooltip-font-size) )}.setting{display:flex;align-items:center}.label-action-container{display:flex;align-items:center;justify-content:space-between;gap:var(--luzmo-display-settings-info-to-remove-icon-gap, var(--display-settings-info-to-remove-icon-gap))}.id-button,.remove-button{outline:none;cursor:pointer;border:none;background:none;font-size:var(--luzmo-display-settings-id-button-font-size, var(--luzmo-display-settings-font-size, var(--display-settings-font-size)));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.remove-button{display:block;width:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));height:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));border-radius:var(--luzmo-display-settings-remove-button-border-radius, 50%)}.remove-button:hover{background-color:var(--luzmo-display-settings-remove-button-background-color-hover, var(--luzmo-background-color-hover))}.remove-button:active,.remove-button:focus{background-color:var(--luzmo-display-settings-remove-button-background-color-down, var(--luzmo-background-color-down))}.remove-button:focus-visible{box-shadow:0 0 0 var(--luzmo-display-settings-remove-button-indicator-thickness, var(--display-settings-remove-button-indicator-thickness)) var(--highcontrast-remove-button-indicator-color, var(--luzmo-display-settings-remove-button-indicator-color, var(--display-settings-remove-button-indicator-color)))}.ids-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-ids-container-gap, var(--luzmo-spacing-2));border-radius:50%}.id-label{text-transform:var(--luzmo-display-settings-id-label-text-transform, var(--display-settings-id-label-text-transform));font-size:var(--luzmo-display-settings-id-label-font-size, var(--display-settings-id-label-font-size));color:var(--luzmo-display-settings-id-label-color, var(--display-settings-id-label-color))}.id-value{-webkit-user-select:text;user-select:text;cursor:text}.example-container{line-height:var(--luzmo-display-settings-example-height, var(--display-settings-example-height));font-size:var(--luzmo-display-settings-example-font-size, var(--display-settings-example-font-size));color:var(--luzmo-display-settings-example-color, var(--display-settings-example-color))}.example-container .example-label{font-weight:var(--luzmo-display-settings-example-label-font-weight, var(--display-settings-example-label-font-weight));color:var(--luzmo-display-settings-example-label-color, var(--display-settings-example-label-color))}.example-container .example-language{text-transform:uppercase;color:var(--luzmo-display-settings-example-language-color, var(--display-settings-example-language-color))}.example-container{gap:var(--luzmo-display-settings-example-container-gap, var(--luzmo-spacing-2))}:host{--display-settings-font-family: var(--luzmo-font-family);--display-settings-id-label-text-transform: uppercase;--display-settings-id-label-color: var(--luzmo-secondary);--display-settings-remove-button-indicator-color: var(--luzmo-primary);--display-settings-remove-button-indicator-thickness: var( --luzmo-border-width )}:host{--display-settings-font-size: var(--luzmo-font-size);--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-4);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-5);--display-settings-remove-button-size: var(--luzmo-component-height)}:host([size=s]){--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-3);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-4);--display-settings-remove-button-size: var(--luzmo-component-height-s)}:host([size=l]){--display-settings-id-label-font-size: var(--luzmo-font-size);--display-settings-font-size: var(--luzmo-font-size-l);--display-settings-gap: var(--luzmo-spacing-4);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-5);--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-remove-button-size: var(--luzmo-component-height-l)}:host([size=xl]){--display-settings-id-label-font-size: var(--luzmo-font-size-l);--display-settings-font-size: var(--luzmo-font-size-xl);--display-settings-gap: var(--luzmo-spacing-5);--display-settings-ids-container-vertical-margin: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--display-settings-remove-button-size: var(--luzmo-component-height-xl)}:host{--display-settings-example-font-size: var(--luzmo-font-size);--display-settings-example-color: var(--luzmo-font-color);--display-settings-example-label-font-weight: bold;--display-settings-example-label-color: var(--luzmo-primary);--display-settings-example-language-color: var(--luzmo-primary)}:host{--display-settings-example-height: var(--luzmo-component-height)}:host([size=s]){--display-settings-example-height: var(--luzmo-component-height-s);--display-settings-example-font-size: var(--luzmo-font-size-s)}:host([size=l]){--display-settings-example-height: var(--luzmo-component-height-l);--display-settings-example-font-size: var(--luzmo-font-size)}:host([size=xl]){--display-settings-example-height: var(--luzmo-component-height-xl);--display-settings-example-font-size: var(--luzmo-font-size-l)}";
|
|
40
|
+
var L = Object.defineProperty, i = (u, t, s, p) => {
|
|
41
|
+
for (var n = void 0, r = u.length - 1, d; r >= 0; r--)
|
|
42
|
+
(d = u[r]) && (n = d(t, s, n) || n);
|
|
43
|
+
return n && L(t, s, n), n;
|
|
44
44
|
};
|
|
45
|
-
class
|
|
46
|
-
|
|
47
|
-
validSizes: Object.values(
|
|
45
|
+
class e extends c(
|
|
46
|
+
$(S, {
|
|
47
|
+
validSizes: Object.values(T)
|
|
48
48
|
})
|
|
49
49
|
) {
|
|
50
50
|
constructor() {
|
|
51
|
-
super(...arguments), this._loadDisplaySettings = new
|
|
51
|
+
super(...arguments), this._loadDisplaySettings = new y(this, {
|
|
52
52
|
task: async ([
|
|
53
53
|
t,
|
|
54
|
-
|
|
55
|
-
n,
|
|
56
|
-
e,
|
|
54
|
+
s,
|
|
57
55
|
p,
|
|
56
|
+
n,
|
|
57
|
+
r,
|
|
58
58
|
d
|
|
59
59
|
]) => {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
d && l.push("grandTotals"), n && l.push("periodOverPeriod"), (t === "numeric" || t === "mixed" && ((g = this._currentSlotContent) == null ? void 0 : g.type) === "numeric") && l.push("numeric"), t !== "numeric" && ((c = this._currentSlotContent) == null ? void 0 : c.type) === "datetime" && l.push("datetime"), !["numeric", "mixed"].includes(t ?? "") && ((h = this._currentSlotContent) == null ? void 0 : h.type) === "numeric" && !e && l.push("binning"), n && !this._settingsTypeLoaded.periodOverPeriod && (await import("./display-settings-period-over-period/index.js"), this._settingsTypeLoaded.periodOverPeriod = !0), l.length > 0 && !o && (l.includes("numeric") && !this._settingsTypeLoaded.numeric ? (await import("./display-settings-numeric/index.js"), this._settingsTypeLoaded.numeric = !0) : l.includes("datetime") && !this._settingsTypeLoaded.datetime && p ? (await import("./display-settings-datetime/index.js"), this._settingsTypeLoaded.datetime = !0) : l.includes("binning") && !this._settingsTypeLoaded.binning ? (await import("./display-settings-binning/index.js"), this._settingsTypeLoaded.binning = !0) : l.includes("grandTotals") && !this._settingsTypeLoaded.grandTotals && (await import("./display-settings-grand-totals/index.js"), this._settingsTypeLoaded.grandTotals = !0));
|
|
60
|
+
const a = [];
|
|
61
|
+
d && a.push("grandTotals"), p && a.push("periodOverPeriod"), (t === "numeric" || t === "mixed" && this._currentSlotContent?.type === "numeric") && a.push("numeric"), t !== "numeric" && this._currentSlotContent?.type === "datetime" && a.push("datetime"), !["numeric", "mixed"].includes(t ?? "") && this._currentSlotContent?.type === "numeric" && !n && a.push("binning"), p && !this._settingsTypeLoaded.periodOverPeriod && (await import("./display-settings-period-over-period/index.js"), this._settingsTypeLoaded.periodOverPeriod = !0), a.length > 0 && !s && (a.includes("numeric") && !this._settingsTypeLoaded.numeric ? (await import("./display-settings-numeric/index.js"), this._settingsTypeLoaded.numeric = !0) : a.includes("datetime") && !this._settingsTypeLoaded.datetime && r ? (await import("./display-settings-datetime/index.js"), this._settingsTypeLoaded.datetime = !0) : a.includes("binning") && !this._settingsTypeLoaded.binning ? (await import("./display-settings-binning/index.js"), this._settingsTypeLoaded.binning = !0) : a.includes("grandTotals") && !this._settingsTypeLoaded.grandTotals && (await import("./display-settings-grand-totals/index.js"), this._settingsTypeLoaded.grandTotals = !0));
|
|
63
62
|
},
|
|
64
|
-
args: () =>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
this.slotContent
|
|
74
|
-
];
|
|
75
|
-
}
|
|
63
|
+
args: () => [
|
|
64
|
+
this.slotType,
|
|
65
|
+
this.hideDisplaySettings,
|
|
66
|
+
this._store?.periodOverPeriodUiType.get(),
|
|
67
|
+
this.isBinningDisabled,
|
|
68
|
+
this.areDatetimeOptionsEnabled,
|
|
69
|
+
this.areGrandTotalsEnabled,
|
|
70
|
+
this.slotContent
|
|
71
|
+
]
|
|
76
72
|
}), this.language = "en", this.contentLanguage = "en", this.slotType = "numeric", this.slotContent = {}, this._showIds = !1, this.measureColumns = [], this._settingsTypeLoaded = {
|
|
77
73
|
binning: !1,
|
|
78
74
|
datetime: !1,
|
|
@@ -83,24 +79,19 @@ class i extends y(
|
|
|
83
79
|
}, this._currentSlotContent = {};
|
|
84
80
|
}
|
|
85
81
|
static get styles() {
|
|
86
|
-
return [
|
|
82
|
+
return [z(E)];
|
|
87
83
|
}
|
|
88
84
|
_datasetDatetimeColumns() {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
...e,
|
|
95
|
-
datasetId: o.id
|
|
96
|
-
}));
|
|
97
|
-
}
|
|
85
|
+
return this._store?.linkedDataset.get().flatMap(
|
|
86
|
+
(t) => t.columns?.filter((s) => s.type === "datetime").map((s) => ({
|
|
87
|
+
...s,
|
|
88
|
+
datasetId: t.id
|
|
89
|
+
}))
|
|
98
90
|
);
|
|
99
91
|
}
|
|
100
92
|
willUpdate() {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
this.periodOverPeriodUiType !== o && (this.periodOverPeriodUiType = o), t && t !== this._currentSlotContent && (this._currentSlotContent = structuredClone(t));
|
|
93
|
+
const t = this._store?.activeSlotContents.get(), s = this._store?.periodOverPeriodUiType.get();
|
|
94
|
+
this.periodOverPeriodUiType !== s && (this.periodOverPeriodUiType = s), t && t !== this._currentSlotContent && (this._currentSlotContent = structuredClone(t));
|
|
104
95
|
}
|
|
105
96
|
_onSlotContentChange(t) {
|
|
106
97
|
t.stopPropagation(), t.preventDefault(), this._currentSlotContent = structuredClone(t.detail.slotContent), this._sendEvent(), this.requestUpdate();
|
|
@@ -136,31 +127,30 @@ class i extends y(
|
|
|
136
127
|
this._showIds = !this._showIds;
|
|
137
128
|
}
|
|
138
129
|
_renderExampleRow() {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
const n = !this._currentSlotContent.datetimeDisplayMode || this._currentSlotContent.datetimeDisplayMode === "default", e = t ? 1234.56 : n ? /* @__PURE__ */ new Date() : 1, p = L(
|
|
130
|
+
const t = this.slotType === "numeric" || this.slotType === "mixed" && this._currentSlotContent.type === "numeric", s = this.slotType !== "datetime" && this._currentSlotContent.type === "datetime" && this.areDatetimeOptionsEnabled;
|
|
131
|
+
if (!(t || s))
|
|
132
|
+
return f;
|
|
133
|
+
const p = !this._currentSlotContent.datetimeDisplayMode || this._currentSlotContent.datetimeDisplayMode === "default", n = t ? 1234.56 : p ? /* @__PURE__ */ new Date() : 1, r = w(
|
|
144
134
|
{
|
|
145
135
|
...this._currentSlotContent,
|
|
146
136
|
type: t ? "numeric" : "datetime"
|
|
147
137
|
},
|
|
148
138
|
{
|
|
149
139
|
locale: this.contentLanguage,
|
|
150
|
-
level:
|
|
140
|
+
level: this._currentSlotContent?.level
|
|
151
141
|
}
|
|
152
|
-
)(
|
|
153
|
-
return
|
|
142
|
+
)(n);
|
|
143
|
+
return l`<div class="settings-row example-container">
|
|
154
144
|
<span class="example-label"
|
|
155
145
|
>${m("Example", {
|
|
156
146
|
desc: "Label for example"
|
|
157
147
|
})}:</span
|
|
158
148
|
>
|
|
159
|
-
<span class="example">${
|
|
149
|
+
<span class="example">${r}</span>
|
|
160
150
|
</div>`;
|
|
161
151
|
}
|
|
162
152
|
_renderDisplaySettings() {
|
|
163
|
-
return
|
|
153
|
+
return l`<div class="settings-container">
|
|
164
154
|
<div class="settings-row">
|
|
165
155
|
<div class="setting">
|
|
166
156
|
<div class="label-container">
|
|
@@ -177,16 +167,16 @@ class i extends y(
|
|
|
177
167
|
</div>
|
|
178
168
|
<div class="label-action-container">
|
|
179
169
|
<button class="id-button" @click=${this._toggleIds}>
|
|
180
|
-
${
|
|
170
|
+
${g(C)}
|
|
181
171
|
<luzmo-tooltip self-managed placement="top" size=${this.size}>
|
|
182
172
|
Show dataset and column id's
|
|
183
173
|
</luzmo-tooltip>
|
|
184
174
|
</button>
|
|
185
|
-
${this.showRemoveButton ?
|
|
175
|
+
${this.showRemoveButton ? l`<button
|
|
186
176
|
class="remove-button"
|
|
187
177
|
@click=${this._removeEvent}
|
|
188
178
|
>
|
|
189
|
-
${
|
|
179
|
+
${g(x)}
|
|
190
180
|
<luzmo-tooltip
|
|
191
181
|
self-managed
|
|
192
182
|
placement="top"
|
|
@@ -198,13 +188,13 @@ class i extends y(
|
|
|
198
188
|
</div>
|
|
199
189
|
</div>
|
|
200
190
|
</div>
|
|
201
|
-
${this.areGrandTotalsEnabled ?
|
|
191
|
+
${this.areGrandTotalsEnabled ? l`<luzmo-display-settings-grand-totals
|
|
202
192
|
.language=${this.language}
|
|
203
193
|
.slotContent=${this._currentSlotContent}
|
|
204
194
|
.size=${this.size}
|
|
205
195
|
@slot-content-changed=${this._onSlotContentChange}
|
|
206
196
|
></luzmo-display-settings-grand-totals>` : ""}
|
|
207
|
-
${this.slotType === "numeric" || this.slotType === "mixed" && this._currentSlotContent.type === "numeric" ?
|
|
197
|
+
${this.slotType === "numeric" || this.slotType === "mixed" && this._currentSlotContent.type === "numeric" ? l`<luzmo-display-settings-numeric
|
|
208
198
|
.language=${this.language}
|
|
209
199
|
.slotContent=${this._currentSlotContent}
|
|
210
200
|
.size=${this.size}
|
|
@@ -213,20 +203,20 @@ class i extends y(
|
|
|
213
203
|
.isCumulativeSumEnabled=${this.isCumulativeSumEnabled}
|
|
214
204
|
@slot-content-changed=${this._onSlotContentChange}
|
|
215
205
|
></luzmo-display-settings-numeric>` : ""}
|
|
216
|
-
${this.slotType !== "numeric" && this._currentSlotContent.type === "datetime" && this.areDatetimeOptionsEnabled ?
|
|
206
|
+
${this.slotType !== "numeric" && this._currentSlotContent.type === "datetime" && this.areDatetimeOptionsEnabled ? l`<luzmo-display-settings-datetime
|
|
217
207
|
.language=${this.language}
|
|
218
208
|
.contentLanguage=${this.contentLanguage}
|
|
219
209
|
.slotContent=${this._currentSlotContent}
|
|
220
210
|
.size=${this.size}
|
|
221
211
|
@slot-content-changed=${this._onSlotContentChange}
|
|
222
212
|
></luzmo-display-settings-datetime>` : ""}
|
|
223
|
-
${!["numeric", "mixed"].includes(this.slotType ?? "") && this._currentSlotContent.type === "numeric" && !this.isBinningDisabled ?
|
|
213
|
+
${!["numeric", "mixed"].includes(this.slotType ?? "") && this._currentSlotContent.type === "numeric" && !this.isBinningDisabled ? l`<luzmo-display-settings-binning
|
|
224
214
|
.language=${this.language}
|
|
225
215
|
.slotContent=${this._currentSlotContent}
|
|
226
216
|
.size=${this.size}
|
|
227
217
|
@slot-content-changed=${this._onSlotContentChange}
|
|
228
218
|
></luzmo-display-settings-binning>` : ""}
|
|
229
|
-
${this.periodOverPeriodUiType ?
|
|
219
|
+
${this.periodOverPeriodUiType ? l`<luzmo-display-settings-period-over-period
|
|
230
220
|
.language=${this.language}
|
|
231
221
|
.slotContent=${this._currentSlotContent}
|
|
232
222
|
.size=${this.size}
|
|
@@ -236,7 +226,7 @@ class i extends y(
|
|
|
236
226
|
></luzmo-display-settings-period-over-period>` : ""}
|
|
237
227
|
${this._renderExampleRow()}
|
|
238
228
|
</div>
|
|
239
|
-
${this._showIds ?
|
|
229
|
+
${this._showIds ? l` <luzmo-divider></luzmo-divider>
|
|
240
230
|
<div class="ids-container">
|
|
241
231
|
<div>
|
|
242
232
|
<span class="id-label"
|
|
@@ -257,7 +247,7 @@ class i extends y(
|
|
|
257
247
|
}
|
|
258
248
|
render() {
|
|
259
249
|
return this._loadDisplaySettings.render({
|
|
260
|
-
pending: () =>
|
|
250
|
+
pending: () => l`<luzmo-progress-circle
|
|
261
251
|
indeterminate
|
|
262
252
|
.size=${this.size}
|
|
263
253
|
></luzmo-progress-circle>`,
|
|
@@ -266,60 +256,59 @@ class i extends y(
|
|
|
266
256
|
});
|
|
267
257
|
}
|
|
268
258
|
disconnectedCallback() {
|
|
269
|
-
|
|
270
|
-
(t = super.disconnectedCallback) == null || t.call(this), (n = (o = this._loadDisplaySettings).abort) == null || n.call(o);
|
|
259
|
+
super.disconnectedCallback?.(), this._loadDisplaySettings.abort?.();
|
|
271
260
|
}
|
|
272
261
|
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
],
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
],
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
],
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
],
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
],
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
],
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
],
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
],
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
],
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
],
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
],
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
],
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
],
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
],
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
],
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
],
|
|
321
|
-
customElements.get("luzmo-display-settings") || customElements.define("luzmo-display-settings",
|
|
262
|
+
i([
|
|
263
|
+
o({ type: String })
|
|
264
|
+
], e.prototype, "language");
|
|
265
|
+
i([
|
|
266
|
+
o({ type: String, attribute: "content-language" })
|
|
267
|
+
], e.prototype, "contentLanguage");
|
|
268
|
+
i([
|
|
269
|
+
o({ type: Boolean, attribute: "hide-display-settings" })
|
|
270
|
+
], e.prototype, "hideDisplaySettings");
|
|
271
|
+
i([
|
|
272
|
+
o({ type: Boolean })
|
|
273
|
+
], e.prototype, "isBinningDisabled");
|
|
274
|
+
i([
|
|
275
|
+
o({ type: Boolean })
|
|
276
|
+
], e.prototype, "areDatetimeOptionsEnabled");
|
|
277
|
+
i([
|
|
278
|
+
o({ type: Boolean })
|
|
279
|
+
], e.prototype, "areGrandTotalsEnabled");
|
|
280
|
+
i([
|
|
281
|
+
o({ type: Boolean })
|
|
282
|
+
], e.prototype, "isAggregationDisabled");
|
|
283
|
+
i([
|
|
284
|
+
o({ type: Boolean })
|
|
285
|
+
], e.prototype, "isCumulativeSumEnabled");
|
|
286
|
+
i([
|
|
287
|
+
o({ type: String })
|
|
288
|
+
], e.prototype, "periodOverPeriodUiType");
|
|
289
|
+
i([
|
|
290
|
+
o({ type: Boolean, attribute: "show-remove-button" })
|
|
291
|
+
], e.prototype, "showRemoveButton");
|
|
292
|
+
i([
|
|
293
|
+
o({ type: String, attribute: "slot-type" })
|
|
294
|
+
], e.prototype, "slotType");
|
|
295
|
+
i([
|
|
296
|
+
o()
|
|
297
|
+
], e.prototype, "slotContent");
|
|
298
|
+
i([
|
|
299
|
+
b()
|
|
300
|
+
], e.prototype, "_showIds");
|
|
301
|
+
i([
|
|
302
|
+
o({ type: Array, reflect: !1 })
|
|
303
|
+
], e.prototype, "measureColumns");
|
|
304
|
+
i([
|
|
305
|
+
_("luzmo-multi-language-field")
|
|
306
|
+
], e.prototype, "_multiLanguageFieldElement");
|
|
307
|
+
i([
|
|
308
|
+
v({ context: D, subscribe: !0 })
|
|
309
|
+
], e.prototype, "_store");
|
|
310
|
+
customElements.get("luzmo-display-settings") || customElements.define("luzmo-display-settings", e);
|
|
322
311
|
export {
|
|
323
|
-
|
|
324
|
-
|
|
312
|
+
e as L,
|
|
313
|
+
D as s
|
|
325
314
|
};
|