@luzmo/analytics-components-kit 1.0.1-alpha.48 → 1.0.1-alpha.49
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/components/{bar-chart-options.config-BdbbHUJZ.js → bar-chart-options.config-D1mb5TDl.js} +1 -0
- package/components/{bar-chart-options.config-C9XGEujs.cjs → bar-chart-options.config-DcxEkOT5.cjs} +1 -1
- package/components/{bar-chart-options.de-DwTn_qfu.js → bar-chart-options.de-BQ4qGaQc.js} +1 -0
- package/components/{bar-chart-options.de-BGzu5Zgd.cjs → bar-chart-options.de-Dr5zKz8Q.cjs} +1 -1
- package/components/{column-chart-options.en-D1UfGsS3.cjs → bar-chart-options.en-DdQ2PYrw.cjs} +1 -1
- package/components/{bar-chart-options.en-Crc8tYUJ.js → bar-chart-options.en-LjG6f4hw.js} +1 -0
- package/components/{bar-chart-options.es-ByT_D06p.js → bar-chart-options.es-BfIKCPf-.js} +1 -0
- package/components/{bar-chart-options.es-B2UWafXc.cjs → bar-chart-options.es-DgYVxn9U.cjs} +1 -1
- package/components/{bar-chart-options.fr-BwiGRlQf.js → bar-chart-options.fr-Cg1lQV2y.js} +1 -0
- package/components/{bar-chart-options.fr-CP7DTrlk.cjs → bar-chart-options.fr-rteFm93C.cjs} +1 -1
- package/components/{column-chart-options.nl-3wAj9uWY.cjs → bar-chart-options.nl--gwlkpc0.cjs} +1 -1
- package/components/{bar-chart-options.nl-DzXnHdwX.js → bar-chart-options.nl-CB2W4rzf.js} +1 -0
- package/components/{calculate-data-item-icon-DlfbBvFN.cjs → calculate-data-item-icon-Dn-9Kd0U.cjs} +1 -1
- package/components/{calculate-data-item-icon-BiIL_s4Z.js → calculate-data-item-icon-Dpvf1aLI.js} +51 -51
- package/components/{column-chart-options.config-BqSQ1Sl9.js → column-chart-options.config-B5SjBVdy.js} +10 -9
- package/components/{column-chart-options.config-Bi0RAzK-.cjs → column-chart-options.config-BjDvA7i9.cjs} +1 -1
- package/components/{column-chart-options.de-pgdcIHqk.cjs → column-chart-options.de-BU__cJy3.cjs} +1 -1
- package/components/{column-chart-options.de-VQVdi8aP.js → column-chart-options.de-BkkWD9rB.js} +1 -0
- package/components/{bar-chart-options.en-D1UfGsS3.cjs → column-chart-options.en-DdQ2PYrw.cjs} +1 -1
- package/components/{column-chart-options.en-Crc8tYUJ.js → column-chart-options.en-LjG6f4hw.js} +1 -0
- package/components/{column-chart-options.es-CT9ZtjV_.js → column-chart-options.es-BgOc-gTh.js} +1 -0
- package/components/{column-chart-options.es-CAAXJv_2.cjs → column-chart-options.es-CkaTU6qn.cjs} +1 -1
- package/components/{column-chart-options.fr-BwiGRlQf.js → column-chart-options.fr-Cg1lQV2y.js} +1 -0
- package/components/{column-chart-options.fr-CP7DTrlk.cjs → column-chart-options.fr-rteFm93C.cjs} +1 -1
- package/components/{bar-chart-options.nl-DZe2pKRa.cjs → column-chart-options.nl-Bhe6rcUo.cjs} +1 -1
- package/components/{column-chart-options.nl-DB2dcotu.js → column-chart-options.nl-CAeBYwQC.js} +1 -0
- package/components/{de-eIqMhTVC.cjs → de-Cxe7xkT4.cjs} +1 -1
- package/components/{de-BbcctJsI.js → de-ZPzjN2kc.js} +0 -1
- package/components/directive-BOOaQO_r.cjs +24 -0
- package/components/directive-CF_9GVrT.js +46 -0
- package/components/display-settings/display-settings.d.ts +2 -2
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +2 -2
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +11 -11
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +13 -13
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +11 -11
- package/components/display-settings-numeric/display-settings-numeric.d.ts +3 -1
- package/components/display-settings-numeric/index.cjs +61 -40
- package/components/display-settings-numeric/index.js +223 -182
- package/components/display-settings-period-over-period/index.cjs +6 -6
- package/components/display-settings-period-over-period/index.js +11 -11
- package/components/draggable-data-item/draggable-data-item.d.ts +1 -0
- package/components/draggable-data-item/index.cjs +8 -5
- package/components/draggable-data-item/index.js +44 -38
- package/components/draggable-data-item-level/draggable-data-item-level.d.ts +4 -0
- package/components/draggable-data-item-level/index.cjs +10 -10
- package/components/draggable-data-item-level/index.js +102 -77
- package/components/droppable-slot/droppable-slot.d.ts +29 -9
- package/components/droppable-slot/index.cjs +25 -71
- package/components/droppable-slot/index.js +274 -623
- package/components/edit-item/index.cjs +2 -2
- package/components/edit-item/index.js +18 -18
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +2 -2
- package/components/edit-option-action-button-group/index.cjs +1 -1
- package/components/edit-option-action-button-group/index.js +6 -6
- package/components/{edit-option-base-D25zHZVl.js → edit-option-base-CG0JcbX9.js} +3 -3
- package/components/{edit-option-base-h5ndfVK4.cjs → edit-option-base-a2yoNqdf.cjs} +1 -1
- package/components/edit-option-color-palette-picker/index.cjs +1 -1
- package/components/edit-option-color-palette-picker/index.js +3 -3
- package/components/edit-option-color-picker/index.cjs +1 -1
- package/components/edit-option-color-picker/index.js +5 -5
- package/components/edit-option-color-range/index.cjs +1 -1
- package/components/edit-option-color-range/index.js +12 -12
- package/components/edit-option-multi-language-field/index.cjs +1 -1
- package/components/edit-option-multi-language-field/index.js +4 -4
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +5 -5
- package/components/edit-option-picker/index.cjs +1 -1
- package/components/edit-option-picker/index.js +5 -5
- package/components/edit-option-position-picker/index.cjs +1 -1
- package/components/edit-option-position-picker/index.js +4 -4
- package/components/edit-option-positions-number-field/index.cjs +1 -1
- package/components/edit-option-positions-number-field/index.js +6 -6
- package/components/edit-option-radio-button-group/index.cjs +1 -1
- package/components/edit-option-radio-button-group/index.js +4 -4
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +3 -3
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +3 -3
- package/components/edit-option-text-field/index.cjs +1 -1
- package/components/edit-option-text-field/index.js +7 -7
- package/components/{es-tWaYVbsQ.cjs → es-4dEouIgb.cjs} +1 -1
- package/components/{es-ByWFTJ0s.js → es-C0JGlz18.js} +0 -1
- package/components/filter-data-item-picker/index.cjs +1 -1
- package/components/filter-data-item-picker/index.js +8 -8
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +2 -2
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +24 -24
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +4 -4
- package/components/filter-value-picker-datetime/index.cjs +1 -1
- package/components/filter-value-picker-datetime/index.js +302 -302
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +8 -8
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +8 -8
- package/components/{focusable-Bhf_beoW.js → focusable-BbymtxWI.js} +1 -1
- package/components/{focusable-B8t8a-WJ.cjs → focusable-DAGGGYyz.cjs} +1 -1
- package/components/{fr-C5b2Wgoz.js → fr-B_-_f-VN.js} +0 -1
- package/components/{fr-2igiTsHU.cjs → fr-Dwulhlbi.cjs} +1 -1
- package/components/grid/index.cjs +18 -22
- package/components/grid/index.js +28 -49
- package/components/{if-defined-Dg09naf2.js → if-defined-Barg9gGQ.js} +1 -1
- package/components/{if-defined-DjdbEoAa.cjs → if-defined-wiCAR_aA.cjs} +1 -1
- package/components/{index-cbfU96gS.cjs → index-1oIrlkAr.cjs} +8 -8
- package/components/{index-BqSQoHjg.js → index-5Z9GD60H.js} +6 -6
- package/components/{index-9LxnqLJa.js → index-B2ngKWOI.js} +2 -2
- package/components/{index-COU9XhBt.js → index-BC1LV3vH.js} +1 -1
- package/components/{index-Cf_a7VrO.js → index-BEtf1WaQ.js} +2 -2
- package/components/{index-DMhm0FM8.cjs → index-BbpsZYZF.cjs} +25 -26
- package/components/{index-DRLFjkH0.cjs → index-BfzppmHn.cjs} +2 -2
- package/components/{index-BobhBKA2.js → index-BssHAgUU.js} +1 -1
- package/components/index-Bt3JTHTC.js +787 -0
- package/components/index-CY_cyFdI.cjs +174 -0
- package/components/{index-DeIay7ZE.js → index-CbuHBIDB.js} +2 -2
- package/components/{index-BukPAqqU.cjs → index-Ck5VRoXN.cjs} +1 -1
- package/components/{index-DYmi-X87.js → index-DE3d0E0P.js} +2 -2
- package/components/{index-fwJBhawL.cjs → index-DSQyBS9Z.cjs} +1 -1
- package/components/{index-BY1yDIAI.js → index-DTI4dIyd.js} +586 -634
- package/components/index-D_jFGBMs.js +174 -0
- package/components/{index-D9yzIoGv.js → index-Delpl7qa.js} +368 -306
- package/components/{index-B7AFYrfv.cjs → index-Df-_TbOD.cjs} +1 -1
- package/components/{index-C6NpWavw.js → index-DsP81c4M.js} +2 -2
- package/components/index-Dy_5M3M5.cjs +42 -0
- package/components/{index-Bpdwb9Js.cjs → index-MPM_B4re.cjs} +3 -3
- package/components/{index-ydBgjAru.js → index-N845QLku.js} +16 -16
- package/components/{index--3gSNupB.cjs → index-Tx5oQjbt.cjs} +1 -1
- package/components/{index-BSgp4MWQ.cjs → index-cHKqEi5-.cjs} +1 -1
- package/components/index-eBsINoH9.cjs +20 -0
- package/components/{index-BKx2WhDB.cjs → index-tXl_aMnZ.cjs} +1 -1
- package/components/index.cjs +1 -1
- package/components/index.js +4 -4
- package/components/{localized-decorator-DNr1P1m0.js → localized-decorator-Bl5gcI6n.js} +1 -1
- package/components/{localized-decorator-SOrjcPab.cjs → localized-decorator-DIXYZ3RL.cjs} +1 -1
- package/components/{luzmo-icons-4Tmb3sKr.js → luzmo-icons-CVeTZ59u.js} +9 -9
- package/components/{luzmo-icons-4nDFv1Lq-D6-m-VWM.cjs → luzmo-icons-DbwDQtuO-DSQ-uVxy.cjs} +2 -2
- package/components/{luzmo-icons-4nDFv1Lq-DffGNBpO.js → luzmo-icons-DbwDQtuO-QG0fLECn.js} +7 -7
- package/components/{luzmo-icons-Bvm-_ECi.cjs → luzmo-icons-DonyjSXg.cjs} +1 -1
- package/components/{nl-B50x7wMn.cjs → nl-DxdBIXDd.cjs} +1 -1
- package/components/{nl-76jn_zMH.js → nl-gdQCG4WV.js} +0 -1
- package/components/{periods.const-CfXsouLz.cjs → periods.const-7sXlqgEo.cjs} +1 -1
- package/components/{periods.const-C89NNRX-.js → periods.const-B7FKokcH.js} +1 -1
- package/components/property-Cu4Q1hS4.cjs +42 -0
- package/components/{property-BFMfZY1k.js → property-DCzt3DR1.js} +277 -277
- package/components/{set-locale-Cam8nRIW.cjs → set-locale-DCPlazsZ.cjs} +1 -1
- package/components/{set-locale-DbEAMqUs.js → set-locale-GI34z_M7.js} +1 -1
- package/components/{sized-mixin-CkdMApAU.js → sized-mixin-BGzkX2g1.js} +1 -1
- package/components/{sized-mixin-C48t6K7U.cjs → sized-mixin-j_7aJM4b.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +1 -1
- package/components/slot-contents-picker/index.js +16 -16
- package/components/slot-menu/index.cjs +27 -22
- package/components/slot-menu/index.js +237 -148
- package/components/slot-menu/slot-menu.d.ts +34 -12
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +5 -5
- package/components/{state-CuE7TJCY.cjs → state-fyl3IYMu.cjs} +1 -1
- package/components/{state-BSTa7W6f.js → state-nDsQPund.js} +1 -1
- package/components/{task-CDsB8Kbr.js → task-Bh_X-xIU.js} +1 -1
- package/components/{task-0B-FC3rj.cjs → task-CwmAXlv0.cjs} +1 -1
- package/components/{text-field-ol9Ed5lQ-cRqtIf_0.cjs → text-field-BIADXoLC-B8w9TVmS.cjs} +1 -1
- package/components/{text-field-ol9Ed5lQ-DbpeM4EP.js → text-field-BIADXoLC-B9oE05VF.js} +1 -1
- package/custom-elements.json +226 -41
- package/item-definitions/bar-chart/i18n/bar-chart-options.de.d.ts +1 -0
- package/item-definitions/bar-chart/i18n/bar-chart-options.en.d.ts +1 -0
- package/item-definitions/bar-chart/i18n/bar-chart-options.es.d.ts +1 -0
- package/item-definitions/bar-chart/i18n/bar-chart-options.fr.d.ts +1 -0
- package/item-definitions/bar-chart/i18n/bar-chart-options.nl.d.ts +1 -0
- package/item-definitions/box-plot/box-plot-options.config.d.ts +1 -1
- package/item-definitions/choropleth-map/choropleth-map-options.config.d.ts +1 -1
- package/item-definitions/column-chart/i18n/column-chart-options.de.d.ts +1 -0
- package/item-definitions/column-chart/i18n/column-chart-options.en.d.ts +1 -0
- package/item-definitions/column-chart/i18n/column-chart-options.es.d.ts +1 -0
- package/item-definitions/column-chart/i18n/column-chart-options.fr.d.ts +1 -0
- package/item-definitions/column-chart/i18n/column-chart-options.nl.d.ts +1 -0
- package/item-definitions/hexbin-map/hexbin-map-options.config.d.ts +1 -1
- package/item-definitions/route-map/route-map-options.config.d.ts +1 -1
- package/item-definitions/spike-map/spike-map-options.config.d.ts +1 -1
- package/package.json +1 -1
- package/utils/data-broker/index.d.ts +9 -0
- package/utils/store/slot-store.d.ts +9 -3
- package/components/index-Be-pSgzQ.js +0 -174
- package/components/index-DCdx3dxQ.cjs +0 -42
- package/components/index-PGX2p9Ns.js +0 -304
- package/components/index-TQG9Xdxu.cjs +0 -20
- package/components/index-VHrmgynd.cjs +0 -121
- package/components/property-BV1QaY8E.cjs +0 -42
@@ -17,54 +17,56 @@
|
|
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 { m as
|
21
|
-
import { l as
|
22
|
-
import "../index-
|
20
|
+
import { m as a, g as w, t as S, s as D } from "../set-locale-GI34z_M7.js";
|
21
|
+
import { l as C } from "../localized-decorator-Bl5gcI6n.js";
|
22
|
+
import "../index-D_jFGBMs.js";
|
23
23
|
import "../index-BW3AUnEX.js";
|
24
24
|
import "../index-CsDgk_sj.js";
|
25
|
-
import "../index-
|
26
|
-
import "../index-
|
27
|
-
import "../index-
|
25
|
+
import "../index-BssHAgUU.js";
|
26
|
+
import "../index-DsP81c4M.js";
|
27
|
+
import "../index-B2ngKWOI.js";
|
28
28
|
import "../index-CTVNGPeT.js";
|
29
|
-
import { d as
|
30
|
-
import { r as
|
31
|
-
import { a8 as
|
32
|
-
import { a as
|
33
|
-
import
|
34
|
-
import {
|
35
|
-
import {
|
36
|
-
import {
|
37
|
-
|
29
|
+
import { d as y } from "../decompose-numeric-format-BuZcjH2k.js";
|
30
|
+
import { r as N, x as r, E as f, n as _ } from "../property-DCzt3DR1.js";
|
31
|
+
import { a8 as z, ac as E } from "../luzmo-icons-CVeTZ59u.js";
|
32
|
+
import { a as I } from "../index-DUF6bALI.js";
|
33
|
+
import "../index-BmshD32H.js";
|
34
|
+
import { c as M, a as O } from "../calculate-data-item-icon-Dpvf1aLI.js";
|
35
|
+
import { l as x } from "../localize-BX7q0S0M.js";
|
36
|
+
import { r as k } from "../state-nDsQPund.js";
|
37
|
+
import { e as g } from "../query-Ddbd72Um.js";
|
38
|
+
import { L as W } from "../focusable-BbymtxWI.js";
|
39
|
+
import { S as T, E as U } from "../sized-mixin-BGzkX2g1.js";
|
40
|
+
const L = () => {
|
38
41
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
39
|
-
const
|
40
|
-
|
42
|
+
const e = document.createElement("style");
|
43
|
+
e.setAttribute("data-luzmo-vars", ""), e.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: 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-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(e);
|
41
44
|
}
|
42
45
|
};
|
43
|
-
|
44
|
-
const
|
45
|
-
sum: () =>
|
46
|
-
cumulativesum: () =>
|
47
|
-
average: () =>
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
}, _ = {
|
46
|
+
L();
|
47
|
+
const j = ":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-numeric-gap, var(--display-settings-numeric-gap))}.duration-angle-down-icon{margin-inline-start:var(--luzmo-numeric-duration-levels-dropdown-icon-margin-inline-start, var(--numeric-duration-levels-dropdown-icon-margin-inline-start))}.dataset-header{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-weight:600;text-transform:uppercase;margin-bottom:.5rem;margin-top:.5rem;margin-left:1rem}.no-weight-label{margin-left:1rem}.with-secondary-icon{clip-path:polygon(0 0,60% 0,65% 60%,100% 65%,100% 100%,0 100%)}.secondary-icon{position:absolute;bottom:45%;left:60%;width:auto;font-size:.75em;line-height:1}.data-icon-type{width:1.5rem;text-align:center;position:relative;display:inline-block}:host{--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-2 )}:host([size=s]){--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-1 )}:host([size=l]){--display-settings-numeric-gap: var(--luzmo-spacing-4);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-3 )}:host([size=xl]){--display-settings-numeric-gap: var(--luzmo-spacing-5);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-4 )}", P = {
|
48
|
+
sum: () => a("Sum", { desc: "Numeric Aggregation option" }),
|
49
|
+
cumulativesum: () => a("Cumulative sum", { desc: "Numeric Aggregation option" }),
|
50
|
+
average: () => a("Average", { desc: "Numeric Aggregation option" }),
|
51
|
+
median: () => a("Median", { desc: "Numeric Aggregation option" }),
|
52
|
+
count: () => a("Count", { desc: "Numeric Aggregation option" }),
|
53
|
+
distinctcount: () => a("Distinct count", { desc: "Numeric Aggregation option" }),
|
54
|
+
min: () => a("Minimum", { desc: "Numeric Aggregation option" }),
|
55
|
+
max: () => a("Maximum", { desc: "Numeric Aggregation option" }),
|
56
|
+
stddev: () => a("Standard deviation", { desc: "Numeric Aggregation option" }),
|
57
|
+
rate: () => a("Rate", { desc: "Numeric Aggregation option" })
|
58
|
+
}, A = {
|
57
59
|
general: "123",
|
58
60
|
percentage: "%",
|
59
61
|
scientific: "SI"
|
60
|
-
},
|
61
|
-
time: () =>
|
62
|
-
short: () =>
|
63
|
-
long: () =>
|
64
|
-
},
|
62
|
+
}, $ = {
|
63
|
+
time: () => a("Time", { desc: "Time format option" }),
|
64
|
+
short: () => a("Short", { desc: "Short format option" }),
|
65
|
+
long: () => a("Long", { desc: "Long format option" })
|
66
|
+
}, v = {
|
65
67
|
Auto: {
|
66
68
|
auto: !0,
|
67
|
-
label: () =>
|
69
|
+
label: () => a("Auto", { desc: "Automatic setting of the option" })
|
68
70
|
},
|
69
71
|
"1,000.00": {
|
70
72
|
auto: !1,
|
@@ -80,7 +82,7 @@ const I = ":host .settings-container{display:flex;flex-direction:column;gap:var(
|
|
80
82
|
},
|
81
83
|
"1000.00": { auto: !1, label: () => "1000.00", decimalSeparator: "." },
|
82
84
|
"1000,00": { auto: !1, label: () => "1000,00", decimalSeparator: "," }
|
83
|
-
},
|
85
|
+
}, G = {
|
84
86
|
levels: [
|
85
87
|
{ level: 1, label: "years" },
|
86
88
|
{ level: 2, label: "quarters" },
|
@@ -93,109 +95,116 @@ const I = ":host .settings-container{display:flex;flex-direction:column;gap:var(
|
|
93
95
|
{ level: 9, label: "milliseconds" }
|
94
96
|
]
|
95
97
|
};
|
96
|
-
var
|
97
|
-
for (var i =
|
98
|
-
(
|
99
|
-
return
|
98
|
+
var R = Object.defineProperty, q = Object.getOwnPropertyDescriptor, m = (e, t, o, s) => {
|
99
|
+
for (var i = s > 1 ? void 0 : s ? q(t, o) : t, l = e.length - 1, u; l >= 0; l--)
|
100
|
+
(u = e[l]) && (i = (s ? u(t, o, i) : u(i)) || i);
|
101
|
+
return s && i && R(t, o, i), i;
|
100
102
|
};
|
101
|
-
let n = class extends
|
102
|
-
validSizes: Object.values(
|
103
|
+
let n = class extends T(W, {
|
104
|
+
validSizes: Object.values(U)
|
103
105
|
}) {
|
104
106
|
constructor() {
|
105
107
|
super(...arguments), this.language = "en", this.slotContent = {}, this.measureColumns = [], this._durationLevels = [], this._renderDurationLevelMenu = !1, this._sendEvent = () => {
|
106
|
-
const
|
107
|
-
|
108
|
+
const e = { ...this.slotContent };
|
109
|
+
e.format = this._format, e.aggregationFunc = this._aggregationFunc, this._aggregationWeightColumn ? e.aggregationWeight = { ...this._aggregationWeightColumn } : delete e.aggregationWeight, this._displayMode === "duration" ? (e.duration = e.duration ?? {}, e.duration.format = this._durationFormat, e.duration.levels = this._durationLevels) : delete e.duration, this.dispatchEvent(
|
108
110
|
new CustomEvent("slot-content-changed", {
|
109
111
|
bubbles: !0,
|
110
112
|
composed: !0,
|
111
113
|
cancelable: !0,
|
112
114
|
detail: {
|
113
|
-
slotContent:
|
115
|
+
slotContent: e
|
114
116
|
}
|
115
117
|
})
|
116
118
|
);
|
117
119
|
};
|
118
120
|
}
|
119
121
|
static get styles() {
|
120
|
-
return [
|
122
|
+
return [N(j)];
|
121
123
|
}
|
122
124
|
_parseSavedNumericFormatSettings() {
|
123
|
-
var
|
124
|
-
if (this._displayMode = ((
|
125
|
+
var e, t, o, s, i, l, u, c, h, p;
|
126
|
+
if (this._displayMode = ((e = this.slotContent) == null ? void 0 : e.subtype) === "duration" ? ((s = (o = (t = this.slotContent) == null ? void 0 : t.duration) == null ? void 0 : o.levels) == null ? void 0 : s.length) === 1 ? "numeric" : "duration" : "numeric", this._durationFormat = ((l = (i = this.slotContent) == null ? void 0 : i.duration) == null ? void 0 : l.format) ?? "short", this._durationLevels = ((c = (u = this.slotContent) == null ? void 0 : u.duration) == null ? void 0 : c.levels) ?? [1], this._displayMode === "duration")
|
125
127
|
this._precision = 2, this._commaDecimals = !1, this._thousandSeparator = !1;
|
126
128
|
else {
|
127
129
|
this._format = ((h = this.slotContent) == null ? void 0 : h.format) ?? ".0f";
|
128
|
-
const
|
129
|
-
this._isAuto = ((
|
130
|
-
|
131
|
-
), this._thousandSeparator =
|
130
|
+
const d = y(this._format ?? ".0f");
|
131
|
+
this._isAuto = ((p = d.typeFormat) == null ? void 0 : p.includes("a")) ?? !1, ["%", "a%", "y", "ay"].includes(d.typeFormat) ? this._displayAs = "percentage" : ["s", "as", "w", "aw"].includes(d.typeFormat) ? this._displayAs = "scientific" : this._displayAs = "general", this._precision = d.precision ? Number.parseInt(d.precision.replace(".", ""), 10) : this._displayAs === "scientific" ? 1 : 0, this._commaDecimals = ["z", "az", "y", "ay", "w", "aw"].includes(
|
132
|
+
d.typeFormat
|
133
|
+
), this._thousandSeparator = d.comma === ",", this._isAuto ? this._numericFormatGroup = "Auto" : this._commaDecimals && this._thousandSeparator ? this._numericFormatGroup = "1.000,00" : !this._commaDecimals && this._thousandSeparator ? this._numericFormatGroup = "1,000.00" : this._commaDecimals && !this._thousandSeparator ? this._numericFormatGroup = "1000,00" : !this._commaDecimals && !this._thousandSeparator && (this._numericFormatGroup = "1000.00");
|
132
134
|
}
|
133
135
|
}
|
134
136
|
_setNumericDisplayAs() {
|
135
|
-
var
|
136
|
-
this._displayAs = ((
|
137
|
+
var e, t;
|
138
|
+
this._displayAs = ((t = (e = this._displayAsElement) == null ? void 0 : e.selected) == null ? void 0 : t[0]) ?? "general", this._displayAs === "scientific" && (this._precision = Math.max(this._precision ?? 0, 1), this._thousandSeparator = !1), this._setNumericFormat(), this._sendEvent(), this.requestUpdate();
|
137
139
|
}
|
138
|
-
_setNumericSeparators(
|
139
|
-
const
|
140
|
+
_setNumericSeparators(e) {
|
141
|
+
const t = v[(e == null ? void 0 : e.detail) ?? "Auto"];
|
140
142
|
this._thousandSeparator = [",", "."].includes(
|
141
|
-
(
|
142
|
-
), this._commaDecimals = (
|
143
|
+
(t == null ? void 0 : t.thousandSeparator) ?? ""
|
144
|
+
), this._commaDecimals = (t == null ? void 0 : t.decimalSeparator) === ",", this._isAuto = t == null ? void 0 : t.auto, this._setNumericFormat(), this._sendEvent();
|
143
145
|
}
|
144
146
|
_setPrecision() {
|
145
147
|
this._precision = this._precisionElement.value, this._setNumericFormat(), this._sendEvent();
|
146
148
|
}
|
147
149
|
_setNumericFormat() {
|
148
150
|
var o;
|
149
|
-
let
|
150
|
-
const
|
151
|
-
this._maxDurationLevel = Math.min(...this._durationLevels),
|
151
|
+
let e = "f";
|
152
|
+
const t = this.slotContent.subtype === "duration" ? this._durationLevels && ((o = this._durationLevels) == null ? void 0 : o.length) === 1 ? "numeric" : "duration" : "numeric";
|
153
|
+
this._maxDurationLevel = Math.min(...this._durationLevels), t === "duration" ? (!["time", "short", "long"].includes(this._durationFormat ?? "") || this._maxDurationLevel < 6 && this._durationFormat === "time") && (this._durationFormat = "short") : (this._displayAs === "general" && this._commaDecimals ? e = "z" : this._displayAs === "percentage" && this._commaDecimals ? e = "y" : this._displayAs === "scientific" && this._commaDecimals ? e = "w" : this._displayAs === "percentage" ? e = "%" : this._displayAs === "scientific" && (e = "s"), this._format = (this._thousandSeparator || this._isAuto ? "," : "") + "." + this._precision + (this._isAuto ? "a" : "") + e);
|
152
154
|
}
|
153
155
|
_setAggregationFunc() {
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
156
|
+
var i;
|
157
|
+
const e = this._aggregationElement.value, t = this._aggregationFunc, o = this.slotContent.format;
|
158
|
+
if (e !== (t === "weightedaverage" ? "average" : t)) {
|
159
|
+
if (this._aggregationFunc = e === "average" && ((i = this._aggregationWeightColumn) != null && i.column) ? "weightedaverage" : e, t === "rate") {
|
160
|
+
const l = y(o), u = ["%", "y", "a%", "ay"].includes(
|
161
|
+
l.typeFormat
|
159
162
|
);
|
160
|
-
this.slotContent.subtype === "currency" &&
|
163
|
+
this.slotContent.subtype === "currency" && u && this._setNumericDisplayAs();
|
161
164
|
}
|
162
165
|
this._sendEvent(), (this._aggregationFunc === "rate" || t === "rate") && this.requestUpdate();
|
163
166
|
}
|
164
167
|
}
|
165
168
|
_setAggregationWeight() {
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
+
var o;
|
170
|
+
const e = this._aggregationWeightElement.value, t = this._aggregationFunc;
|
171
|
+
if (e === "none")
|
172
|
+
this._aggregationWeightColumn = void 0, this._aggregationFunc === "weightedaverage" && (this._aggregationFunc = "average");
|
169
173
|
else {
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
}
|
174
|
+
let s, i;
|
175
|
+
for (const l of this.measureColumns ?? []) {
|
176
|
+
const u = (o = l.columns) == null ? void 0 : o.find((c) => c.id === e);
|
177
|
+
if (u) {
|
178
|
+
s = u, i = l.datasetId;
|
179
|
+
break;
|
180
|
+
}
|
181
|
+
}
|
182
|
+
s && (this._aggregationWeightColumn = {
|
183
|
+
column: s.id,
|
184
|
+
set: i,
|
185
|
+
columnSubType: s.subtype
|
186
|
+
}), this._aggregationFunc === "average" && (this._aggregationFunc = "weightedaverage");
|
178
187
|
}
|
179
|
-
this._sendEvent();
|
188
|
+
this._sendEvent(), this.requestUpdate(), (t === "weightedaverage" && this._aggregationFunc === "average" || t === "average" && this._aggregationFunc === "weightedaverage") && this.requestUpdate();
|
180
189
|
}
|
181
190
|
_setDurationLevels() {
|
182
|
-
const
|
183
|
-
this._durationLevels = ((
|
191
|
+
const e = this._durationLevels, t = this._durationLevelsElement.value.split(",").filter((o) => o !== "").map((o) => Number.parseInt(o, 10));
|
192
|
+
this._durationLevels = ((t == null ? void 0 : t.length) ?? 0) >= 1 ? t : e, this._maxDurationLevel = Math.min(...this._durationLevels), this._fillTimeDurationLevels(), this._setNumericFormat(), this._sendEvent(), this.requestUpdate();
|
184
193
|
}
|
185
194
|
_setDurationFormat() {
|
186
|
-
var
|
187
|
-
this._durationFormat = (
|
195
|
+
var e, t;
|
196
|
+
this._durationFormat = (t = (e = this._durationFormatElement) == null ? void 0 : e.selected) == null ? void 0 : t[0], this._fillTimeDurationLevels(), this._setNumericFormat(), this._sendEvent(), this.requestUpdate();
|
188
197
|
}
|
189
198
|
_fillTimeDurationLevels() {
|
190
199
|
if (this._durationFormat === "time") {
|
191
|
-
const
|
192
|
-
if ([7, 8, 9].includes(
|
193
|
-
const
|
200
|
+
const e = this._durationLevels.sort().at(-1);
|
201
|
+
if ([7, 8, 9].includes(e)) {
|
202
|
+
const t = {
|
194
203
|
lev7: [6],
|
195
204
|
lev8: [6, 7],
|
196
205
|
lev9: [6, 7, 8]
|
197
206
|
};
|
198
|
-
for (const o of
|
207
|
+
for (const o of t["lev" + e])
|
199
208
|
this._durationLevels.includes(o) || this._durationLevels.push(o);
|
200
209
|
this._durationLevels = [...this._durationLevels].sort();
|
201
210
|
}
|
@@ -237,39 +246,39 @@ let n = class extends M(E, {
|
|
237
246
|
});
|
238
247
|
}
|
239
248
|
} */
|
240
|
-
willUpdate(
|
241
|
-
var
|
242
|
-
|
249
|
+
willUpdate(e) {
|
250
|
+
var t, o, s, i, l;
|
251
|
+
e.has("slotContent") && (this._parseSavedNumericFormatSettings(), this._aggregationFunc = ((t = this.slotContent) == null ? void 0 : t.aggregationFunc) ?? (((o = this.slotContent) == null ? void 0 : o.type) === "numeric" ? "sum" : "count"), this._aggregationWeightColumn = (s = this.slotContent) == null ? void 0 : s.aggregationWeight, this._isFormula = ((i = this.slotContent) == null ? void 0 : i.formula) || ((l = this.slotContent) == null ? void 0 : l.formulaId)), e.has("language") && this.language !== w() && ([...S].includes(this.language ?? "en") || this.language === "en") && D(this.language);
|
243
252
|
}
|
244
253
|
firstUpdated() {
|
245
|
-
var
|
246
|
-
(
|
254
|
+
var e;
|
255
|
+
(e = this.slotContent) != null && e.duration && this._durationLevelsOverlay.addEventListener(
|
247
256
|
"slottable-request",
|
248
|
-
(
|
249
|
-
this._renderDurationLevelMenu =
|
257
|
+
(t) => {
|
258
|
+
this._renderDurationLevelMenu = t.data !== I;
|
250
259
|
}
|
251
260
|
);
|
252
261
|
}
|
253
262
|
_renderDurationLevelsSettings() {
|
254
|
-
const
|
263
|
+
const e = G.levels.map((t) => {
|
255
264
|
let o = !1;
|
256
|
-
return this._durationFormat === "time" &&
|
257
|
-
value=${
|
258
|
-
?selected=${this._durationLevels.includes(
|
265
|
+
return this._durationFormat === "time" && t.level >= 6 && this._durationLevels.includes(t.level) && t.level !== Math.max(...this._durationLevels) && (o = !0), this._durationLevels.length === 1 && this._durationLevels.includes(t.level) && (o = !0), r`<luzmo-menu-item
|
266
|
+
value=${t.level}
|
267
|
+
?selected=${this._durationLevels.includes(t.level)}
|
259
268
|
?disabled=${o}
|
260
269
|
>
|
261
|
-
${
|
270
|
+
${t.label}
|
262
271
|
</luzmo-menu-item>`;
|
263
272
|
});
|
264
|
-
return
|
273
|
+
return r` <div class="setting">
|
265
274
|
<luzmo-field-label for="duration-levels">
|
266
|
-
${
|
275
|
+
${a("Duration levels", { desc: "Label for duration levels setting" })}
|
267
276
|
</luzmo-field-label>
|
268
277
|
<luzmo-action-button id="trigger" size=${this.size}>
|
269
278
|
${this._durationLevels.length}
|
270
279
|
${this._durationLevels.length === 1 ? "level" : "levels"} active
|
271
280
|
<span class="duration-angle-down-icon">
|
272
|
-
${
|
281
|
+
${z(E)}
|
273
282
|
</span>
|
274
283
|
</luzmo-action-button>
|
275
284
|
<luzmo-overlay
|
@@ -280,26 +289,26 @@ let n = class extends M(E, {
|
|
280
289
|
type="page"
|
281
290
|
>
|
282
291
|
<luzmo-popover style="position: relative">
|
283
|
-
${this._renderDurationLevelMenu ?
|
292
|
+
${this._renderDurationLevelMenu ? r` <luzmo-menu
|
284
293
|
id="duration-levels"
|
285
294
|
size=${this.size}
|
286
295
|
selects="multiple"
|
287
296
|
.value=${this._durationLevels.join(",")}
|
288
297
|
@change=${this._setDurationLevels}
|
289
298
|
>
|
290
|
-
${
|
299
|
+
${e}
|
291
300
|
</luzmo-menu>` : ""}
|
292
301
|
</luzmo-popover>
|
293
302
|
</luzmo-overlay>
|
294
303
|
</div>`;
|
295
304
|
}
|
296
305
|
_renderDurationFormatSettings() {
|
297
|
-
const
|
298
|
-
${
|
306
|
+
const e = Object.keys($).map((t) => t === "time" && (this._maxDurationLevel ?? 1) < 6 ? "" : r`<luzmo-action-button value=${t}>
|
307
|
+
${$[t]()}
|
299
308
|
</luzmo-action-button>`);
|
300
|
-
return
|
309
|
+
return r` <div class="setting">
|
301
310
|
<luzmo-field-label for="duration-format">
|
302
|
-
${
|
311
|
+
${a("Format", { desc: "Label for format setting" })}
|
303
312
|
</luzmo-field-label>
|
304
313
|
<luzmo-action-group
|
305
314
|
emphasized
|
@@ -310,19 +319,19 @@ let n = class extends M(E, {
|
|
310
319
|
selects="single"
|
311
320
|
@change=${this._setDurationFormat}
|
312
321
|
>
|
313
|
-
${
|
322
|
+
${e}
|
314
323
|
</luzmo-action-group>
|
315
324
|
</div>`;
|
316
325
|
}
|
317
326
|
_renderNumericDisplayAsSettings() {
|
318
|
-
const
|
319
|
-
(
|
320
|
-
>${
|
327
|
+
const e = Object.keys(A).map(
|
328
|
+
(t) => r`<luzmo-action-button value=${t}
|
329
|
+
>${A[t]}</luzmo-action-button
|
321
330
|
>`
|
322
331
|
);
|
323
|
-
return
|
332
|
+
return r`<div class="setting">
|
324
333
|
<luzmo-field-label for="display-as">
|
325
|
-
${
|
334
|
+
${a("Display as", {
|
326
335
|
desc: "Label for display as setting for the datetime field"
|
327
336
|
})}
|
328
337
|
</luzmo-field-label>
|
@@ -335,19 +344,19 @@ let n = class extends M(E, {
|
|
335
344
|
selects="single"
|
336
345
|
@change=${this._setNumericDisplayAs}
|
337
346
|
>
|
338
|
-
${
|
347
|
+
${e}
|
339
348
|
</luzmo-action-group>
|
340
349
|
</div>`;
|
341
350
|
}
|
342
351
|
_renderNumericFormatSettings() {
|
343
|
-
const
|
344
|
-
(
|
345
|
-
${
|
352
|
+
const e = Object.keys(v).map(
|
353
|
+
(t) => r`<luzmo-menu-item value=${t}>
|
354
|
+
${v[t].label()}
|
346
355
|
</luzmo-menu-item>`
|
347
356
|
);
|
348
|
-
return
|
357
|
+
return r` <div class="setting">
|
349
358
|
<luzmo-field-label for="format">
|
350
|
-
${
|
359
|
+
${a("Format", { desc: "Label for format setting" })}
|
351
360
|
</luzmo-field-label>
|
352
361
|
<luzmo-picker
|
353
362
|
id="format"
|
@@ -356,14 +365,14 @@ let n = class extends M(E, {
|
|
356
365
|
value=${this._numericFormatGroup ?? "Auto"}
|
357
366
|
@change=${this._setNumericSeparators}
|
358
367
|
>
|
359
|
-
${
|
368
|
+
${e}
|
360
369
|
</luzmo-picker>
|
361
370
|
</div>
|
362
371
|
<div class="setting">
|
363
372
|
<luzmo-field-label for="precision" id="precision-label">
|
364
|
-
${this._displayAs === "scientific" ?
|
373
|
+
${this._displayAs === "scientific" ? a("Precision", {
|
365
374
|
desc: "Label for precision setting"
|
366
|
-
}) :
|
375
|
+
}) : a("Decimals", {
|
367
376
|
desc: "Label for decimals setting"
|
368
377
|
})}
|
369
378
|
</luzmo-field-label>
|
@@ -378,102 +387,134 @@ let n = class extends M(E, {
|
|
378
387
|
</div>`;
|
379
388
|
}
|
380
389
|
_renderAggregationSettings() {
|
381
|
-
var o
|
382
|
-
const
|
383
|
-
([
|
384
|
-
var
|
385
|
-
return ["count", "distinctcount"].includes(
|
390
|
+
var o;
|
391
|
+
const e = Object.entries(P).filter(
|
392
|
+
([s]) => {
|
393
|
+
var i;
|
394
|
+
return ["count", "distinctcount"].includes(s) || ((i = this.slotContent) == null ? void 0 : i.type) === "numeric";
|
386
395
|
}
|
387
396
|
).map(
|
388
|
-
([
|
389
|
-
),
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
+
([s, i]) => r`<luzmo-menu-item value=${s}>${i()}</luzmo-menu-item>`
|
398
|
+
), t = [
|
399
|
+
r`<luzmo-menu-item value="none" class="no-weight">
|
400
|
+
<span class="no-weight-label">No weight</span>
|
401
|
+
</luzmo-menu-item>`,
|
402
|
+
...(this.measureColumns ?? []).flatMap((s) => {
|
403
|
+
const i = typeof s.datasetName == "object" ? x(
|
404
|
+
s.datasetName,
|
405
|
+
this.language
|
406
|
+
) : s.datasetName, l = r`<div class="dataset-header">
|
407
|
+
${i}
|
408
|
+
<luzmo-tooltip self-managed placement="right" size=${this.size}>
|
409
|
+
${i}
|
410
|
+
</luzmo-tooltip>
|
411
|
+
</div>`, u = (s.columns ?? []).map((c) => {
|
412
|
+
const h = typeof c.name == "object" ? x(c.name, this.language) : c.name, p = z(M(c, "s")), d = c.expression ? O("derived", "s") : void 0, b = !!d, F = b ? r`<span class="secondary-icon"
|
413
|
+
>${z(d)}</span
|
414
|
+
>` : f;
|
415
|
+
return r`<luzmo-menu-item value=${c.id}>
|
416
|
+
<span class="data-icon-type" slot="icon">
|
417
|
+
<span class=${b ? "with-secondary-icon" : ""}
|
418
|
+
>${p}</span
|
419
|
+
>
|
420
|
+
${F}
|
421
|
+
</span>
|
422
|
+
<span class="column-label text-truncate">${h}</span>
|
423
|
+
<luzmo-tooltip self-managed placement="right" size=${this.size}>
|
424
|
+
${h}
|
425
|
+
</luzmo-tooltip>
|
426
|
+
</luzmo-menu-item>`;
|
427
|
+
});
|
428
|
+
return [l, ...u];
|
397
429
|
})
|
398
430
|
];
|
399
|
-
return
|
431
|
+
return r`<div class="settings-row">
|
400
432
|
<div class="setting">
|
401
433
|
<luzmo-field-label for="aggregation">
|
402
|
-
${
|
434
|
+
${a("Aggregation", { desc: "Label for aggregation setting" })}
|
403
435
|
</luzmo-field-label>
|
404
436
|
<luzmo-picker
|
405
437
|
id="aggregation"
|
406
438
|
size=${this.size}
|
407
439
|
variant="highlight"
|
408
|
-
value=${
|
440
|
+
value=${(() => {
|
441
|
+
var i;
|
442
|
+
const s = ((i = this.slotContent) == null ? void 0 : i.type) === "numeric" ? "sum" : "count";
|
443
|
+
return this._aggregationFunc === "weightedaverage" ? "average" : this._aggregationFunc ?? s;
|
444
|
+
})()}
|
409
445
|
@change=${this._setAggregationFunc}
|
410
446
|
>
|
411
|
-
${
|
447
|
+
${e}
|
412
448
|
</luzmo-picker>
|
413
449
|
</div>
|
414
|
-
${
|
450
|
+
${["rate", "average", "weightedaverage"].includes(
|
451
|
+
this._aggregationFunc ?? ""
|
452
|
+
) ? r`<div class="setting">
|
415
453
|
<luzmo-field-label for="weighting-column">
|
416
|
-
Denominator
|
454
|
+
${this._aggregationFunc === "rate" ? "Denominator" : "Weight"}
|
417
455
|
</luzmo-field-label>
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
456
|
+
${this.measureColumns.length > 0 ? r`
|
457
|
+
<luzmo-picker
|
458
|
+
id="weighting-column"
|
459
|
+
size=${this.size}
|
460
|
+
variant="highlight"
|
461
|
+
icons="none"
|
462
|
+
value=${((o = this._aggregationWeightColumn) == null ? void 0 : o.column) ?? "none"}
|
463
|
+
@change=${this._setAggregationWeight}
|
464
|
+
>
|
465
|
+
${t}
|
466
|
+
</luzmo-picker>
|
467
|
+
` : f}
|
427
468
|
</div>` : ""}
|
428
469
|
</div>`;
|
429
470
|
}
|
430
471
|
render() {
|
431
|
-
var
|
432
|
-
return
|
472
|
+
var e;
|
473
|
+
return r`<div class="settings-container">
|
433
474
|
<div class="settings-row">
|
434
475
|
${this._displayMode === "duration" ? this._renderDurationLevelsSettings() : this._renderNumericDisplayAsSettings()}
|
435
|
-
${((
|
476
|
+
${((e = this._durationLevels) == null ? void 0 : e.length) > 1 ? this._renderDurationFormatSettings() : this._renderNumericFormatSettings()}
|
436
477
|
</div>
|
437
|
-
${this._isFormula ?
|
478
|
+
${this._isFormula ? f : this._renderAggregationSettings()}
|
438
479
|
</div>
|
439
480
|
</div>`;
|
440
481
|
}
|
441
482
|
};
|
442
|
-
|
443
|
-
|
483
|
+
m([
|
484
|
+
_({ type: String, reflect: !0 })
|
444
485
|
], n.prototype, "language", 2);
|
445
|
-
|
446
|
-
|
486
|
+
m([
|
487
|
+
_({ type: Object, reflect: !0 })
|
447
488
|
], n.prototype, "slotContent", 2);
|
448
|
-
|
449
|
-
|
489
|
+
m([
|
490
|
+
_({ type: Array, reflect: !1 })
|
450
491
|
], n.prototype, "measureColumns", 2);
|
451
|
-
|
452
|
-
|
492
|
+
m([
|
493
|
+
g("#display-as")
|
453
494
|
], n.prototype, "_displayAsElement", 2);
|
454
|
-
|
455
|
-
|
495
|
+
m([
|
496
|
+
g("#precision")
|
456
497
|
], n.prototype, "_precisionElement", 2);
|
457
|
-
|
458
|
-
|
498
|
+
m([
|
499
|
+
g("#aggregation")
|
459
500
|
], n.prototype, "_aggregationElement", 2);
|
460
|
-
|
461
|
-
|
501
|
+
m([
|
502
|
+
g("#weighting-column")
|
462
503
|
], n.prototype, "_aggregationWeightElement", 2);
|
463
|
-
|
464
|
-
|
504
|
+
m([
|
505
|
+
g("#duration-levels")
|
465
506
|
], n.prototype, "_durationLevelsElement", 2);
|
466
|
-
|
467
|
-
|
507
|
+
m([
|
508
|
+
g("#duration-format")
|
468
509
|
], n.prototype, "_durationFormatElement", 2);
|
469
|
-
|
470
|
-
|
510
|
+
m([
|
511
|
+
g("#duration-levels-overlay")
|
471
512
|
], n.prototype, "_durationLevelsOverlay", 2);
|
472
|
-
|
473
|
-
|
513
|
+
m([
|
514
|
+
k()
|
474
515
|
], n.prototype, "_renderDurationLevelMenu", 2);
|
475
|
-
n =
|
476
|
-
|
516
|
+
n = m([
|
517
|
+
C()
|
477
518
|
], n);
|
478
519
|
customElements.get("luzmo-display-settings-numeric") || customElements.define(
|
479
520
|
"luzmo-display-settings-numeric",
|