@luzmo/analytics-components-kit 1.0.1-alpha.29 → 1.0.1-alpha.30
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/{async-directive-DWRUSKKF-CPf9l5wJ.js → async-directive-C_bp5UcZ-B5_19oN_.js} +1 -1
- package/components/{async-directive-DWRUSKKF-DWUZeMaj.cjs → async-directive-C_bp5UcZ-mUPcBvyn.cjs} +3 -3
- package/components/base-D76d76ww-BEIhYtgV.cjs +94 -0
- package/components/{base-D76d76ww-M5t7LVBG.js → base-D76d76ww-D0dTUBua.js} +300 -299
- package/components/{button-base-DSHx7XO8-ChNRhetl.cjs → button-base-WsJSnMie-B1TLbPwk.cjs} +4 -4
- package/components/{button-base-DSHx7XO8-B_LbLx9g.js → button-base-WsJSnMie-CyGPs7kd.js} +4 -4
- package/components/{checkbox-mixin-BFGTmw17-C1tjSMaa.js → checkbox-mixin-CmeCReJh-C94-rm4F.js} +2 -2
- package/components/{checkbox-mixin-BFGTmw17-DF2p-vSz.cjs → checkbox-mixin-CmeCReJh-wY0R8cuc.cjs} +3 -3
- package/components/{directive-helpers-nlQRAaQt-DTZp2cFt.cjs → directive-helpers-Bx_ey3Gk-BxvL9t9F.cjs} +2 -2
- package/components/{directive-helpers-nlQRAaQt-DgSC1Yr2.js → directive-helpers-Bx_ey3Gk-Csi4AxXe.js} +1 -1
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +7 -7
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +5 -5
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +8 -8
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +4 -4
- package/components/display-settings-numeric/index.cjs +3 -3
- package/components/display-settings-numeric/index.js +12 -12
- package/components/display-settings-period-over-period/index.cjs +5 -5
- package/components/display-settings-period-over-period/index.js +14 -14
- package/components/draggable-data-item-level/index.cjs +1 -1
- package/components/draggable-data-item-level/index.js +15 -15
- package/components/droppable-slot/index.cjs +9 -9
- package/components/droppable-slot/index.js +63 -63
- package/components/edit-item/index.cjs +6 -6
- package/components/edit-item/index.js +14 -14
- package/components/edit-option-action-button-group/index.cjs +1 -1
- package/components/edit-option-action-button-group/index.js +20 -20
- package/components/{edit-option-base-C0zI8SOd.js → edit-option-base-DOezOLDd.js} +2 -2
- package/components/{edit-option-base-D8vs3Bty.cjs → edit-option-base-jkkFevzT.cjs} +1 -1
- package/components/edit-option-color-picker/index.cjs +29 -29
- package/components/edit-option-color-picker/index.js +40 -40
- package/components/edit-option-multi-language-field/index.cjs +1 -1
- package/components/edit-option-multi-language-field/index.js +2 -2
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +2 -2
- package/components/edit-option-picker/index.cjs +1 -1
- package/components/edit-option-picker/index.js +3 -3
- package/components/edit-option-position-picker/index.cjs +1 -1
- package/components/edit-option-position-picker/index.js +2 -2
- package/components/edit-option-positions-number-field/index.cjs +1 -1
- package/components/edit-option-positions-number-field/index.js +3 -3
- package/components/edit-option-radio-button-group/index.cjs +1 -1
- package/components/edit-option-radio-button-group/index.js +3 -3
- package/components/edit-option-slider/index.cjs +2 -2
- package/components/edit-option-slider/index.js +2 -2
- package/components/edit-option-switch/index.cjs +3 -3
- package/components/edit-option-switch/index.js +7 -7
- package/components/edit-option-text-field/index.cjs +1 -1
- package/components/edit-option-text-field/index.js +2 -2
- package/components/{focusable-cj2QhwDT-DlzfnLn9.js → focusable-BNESohBR-DYvAZYXL.js} +1 -1
- package/components/{focusable-cj2QhwDT-CvevSkDr.cjs → focusable-BNESohBR-DbTLvYXr.cjs} +2 -2
- package/components/{if-defined-BSAr_4u4-CIqREoag.cjs → if-defined-D-1p2bLN-0_AoRnT2.cjs} +1 -1
- package/components/{if-defined-BSAr_4u4-BCnSpSsA.js → if-defined-D-1p2bLN-Bn-33APC.js} +1 -1
- package/components/{index-CC53jnJB.cjs → index-0HUnZcem.cjs} +2 -2
- package/components/{index-fheP_kQJ.js → index-B3jkBlKY.js} +7 -7
- package/components/{index-B2LO8M42.js → index-B9dQtvu7.js} +3 -3
- package/components/{index-BIauj-BP.cjs → index-BKcvEgWr.cjs} +4 -4
- package/components/{index-BjdUsH9B.js → index-BXMPi13W.js} +75 -75
- package/components/{index-D8GVYuJ-.js → index-Bb8vxGZY.js} +29 -29
- package/components/{index-Cl7wWlXl.cjs → index-BkCJwWm3.cjs} +3 -3
- package/components/{index-fzqLW5XZ.js → index-BnbhRpm9.js} +12 -12
- package/components/{index-Du8Q4hhF.js → index-Brg_sVUg.js} +1 -1
- package/components/{index-b9OSfNB6.cjs → index-Bwxvaqxq.cjs} +19 -19
- package/components/{index-BIcAxPGg.cjs → index-C2-2RrwB.cjs} +4 -4
- package/components/{index-9hGc0AF6.cjs → index-C9-QEfA9.cjs} +5 -5
- package/components/{index-Bp6XY9q2.cjs → index-CF84gqsb.cjs} +4 -4
- package/components/{index-zFIy9Mwl.js → index-CRx2nPkq.js} +3 -3
- package/components/{index-B3417kqb.cjs → index-CVuJ-LUO.cjs} +2 -2
- package/components/{index-CBNsaHFy.js → index-CbeVu32V.js} +2 -2
- package/components/{index-Dku2WLRc.js → index-CqFCIIIl.js} +3 -3
- package/components/{index-mB-t2zP2.cjs → index-CqynTbW1.cjs} +23 -23
- package/components/{index-BW6jffrL.cjs → index-D5rT-qy9.cjs} +13 -13
- package/components/{index-BLyfPWMW.cjs → index-D8Na-686.cjs} +1 -1
- package/components/{index-DelXrrBi.js → index-DFnzlbHX.js} +13 -13
- package/components/{index-BnVt-dJY.js → index-DJik7S7b.js} +2 -2
- package/components/{index-C8yP7YJD.js → index-DZZMSlYS.js} +3 -3
- package/components/{index-DQCvi59x.js → index-Rjoe8cIs.js} +24 -24
- package/components/{index-CZUy8SUo.cjs → index-_McOOiwL.cjs} +4 -4
- package/components/{index-CAwT4m7K.cjs → index-bZQXFqxv.cjs} +9 -9
- package/components/{index-KY89MPqI.js → index-fl13NYnO.js} +1 -1
- package/components/{index-Cz9Cvq1K.cjs → index-uRWe553S.cjs} +4 -4
- package/components/luzmo-icons-BDClm1AE.cjs +31 -0
- package/components/luzmo-icons-BLN3xVgr-Cr3OrsqW.cjs +47 -0
- package/components/luzmo-icons-BLN3xVgr-Tz5XXgbL.js +118 -0
- package/components/{luzmo-icons-CmY3chvZ.js → luzmo-icons-U09GB75o.js} +136 -188
- package/components/{observe-slot-text-ggb4kKgY-5zLP4Vgh.cjs → observe-slot-text-CVKLDesL-BB2RmFgc.cjs} +4 -4
- package/components/{observe-slot-text-ggb4kKgY-tm0SQCaj.js → observe-slot-text-CVKLDesL-CXUeCmXW.js} +7 -7
- package/components/{popover-Bx4ZDHk4-Cw2DKR2x.cjs → popover-DRyjN9y_-7mF_fAOh.cjs} +4 -4
- package/components/{popover-Bx4ZDHk4-HbUSJ86p.js → popover-DRyjN9y_-w1zh4tvw.js} +2 -2
- package/components/{query-assigned-nodes-C76XVPWY-DON51dMU.js → query-assigned-nodes-C76XVPWY-BWouxGZs.js} +1 -1
- package/components/{query-assigned-nodes-C76XVPWY-DzOeAzcN.cjs → query-assigned-nodes-C76XVPWY-k1jDPyUQ.cjs} +1 -1
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +2 -2
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +1 -1
- package/components/{streaming-listener-CCalHg57-2AtO4Ho2.cjs → streaming-listener-C8Ctj0Q6-BhMxS69F.cjs} +3 -3
- package/components/{streaming-listener-CCalHg57-CQgWstyf.js → streaming-listener-C8Ctj0Q6-lanbGKR9.js} +3 -3
- package/components/{text-field-BTnBJoP9-BuahhcXU.js → text-field-C0pFjPG1-B4TRivuD.js} +17 -17
- package/components/{text-field-BTnBJoP9-CDMhK3d1.cjs → text-field-C0pFjPG1-BCVbGXp7.cjs} +12 -12
- package/package.json +1 -1
- package/components/base-D76d76ww-C6YO3slp.cjs +0 -94
- package/components/luzmo-icons-lvebt6bp.cjs +0 -31
@@ -17,24 +17,24 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
import { d as
|
21
|
-
import { m as f, t as
|
22
|
-
import { h as
|
23
|
-
import {
|
24
|
-
import "../index-
|
25
|
-
import { l as
|
26
|
-
import { L as
|
27
|
-
import { e as
|
28
|
-
import { S as
|
20
|
+
import { d as C } from "../get-css-variable-Bhbr-Kr1.js";
|
21
|
+
import { m as f, t as S, s as w, l as k } from "../set-locale-DJYT4V7U.js";
|
22
|
+
import { h as _ } from "../task-gE27tBDv.js";
|
23
|
+
import { f as v, M as L, v as $ } from "../luzmo-icons-U09GB75o.js";
|
24
|
+
import "../index-CRx2nPkq.js";
|
25
|
+
import { l as A } from "../localize-BX7q0S0M.js";
|
26
|
+
import { L as D, x as g, r as E, n as p } from "../focusable-Dw_pMNQL.js";
|
27
|
+
import { e as M } from "../query-Ddbd72Um.js";
|
28
|
+
import { S as O } from "../sized-mixin-DMuOVsw0.js";
|
29
29
|
import "../slot-menu/index.js";
|
30
|
-
const
|
30
|
+
const x = () => {
|
31
31
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
32
|
-
const
|
33
|
-
|
32
|
+
const t = document.createElement("style");
|
33
|
+
t.setAttribute("data-luzmo-vars", ""), t.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-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-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(t);
|
34
34
|
}
|
35
35
|
};
|
36
|
-
|
37
|
-
const
|
36
|
+
x();
|
37
|
+
const T = ":host{font-family:var(--luzmo-droppable-slot-font-family, var(--luzmo-font-family))}.droppable-slot[filled]{cursor:pointer;border:var(--luzmo-droppable-slot-filled-border-width, var(--droppable-slot-filled-border-width)) var(--luzmo-droppable-slot-filled-border-style, var(--droppable-slot-filled-border-style)) var(--luzmo-droppable-slot-filled-border-color, var(--droppable-slot-filled-border-color));background-color:var(--luzmo-droppable-slot-filled-background-color, var(--droppable-slot-filled-background-color));color:var(--luzmo-droppable-slot-filled-color, var(--droppable-slot-filled-color))}.droppable-slot{color:var(--luzmo-droppable-slot-font-color, var(--droppable-slot-font-color));border:var(--luzmo-droppable-slot-border-width, var(--droppable-slot-border-width)) var(--luzmo-droppable-slot-border-style, var(--droppable-slot-border-style)) var(--luzmo-droppable-slot-border-color, var(--droppable-slot-border-color));background-color:var(--luzmo-droppable-slot-background-color, var(--droppable-slot-background-color));display:flex;justify-content:space-between;align-items:center;padding-left:var(--luzmo-droppable-slot-edge-to-label, var(--droppable-slot-edge-to-label));gap:var(--luzmo-spacing-5);border-radius:var(--luzmo-border-radius);height:var(--luzmo-droppable-slot-height, var(--droppable-slot-height));cursor:move}:host([disabled]) .droppable-slot{background-color:var(--luzmo-droppable-slot-background-color-disabled, var(--droppable-slot-background-color-disabled));color:var(--luzmo-droppable-slot-color-disabled, var(--droppable-slot-color-disabled));cursor:not-allowed}:host([disabled]) .drag-handle-icon{opacity:.25;font-size:12px}.drag-handle-icon{opacity:.5;font-size:12px}.droppable-slot-label{font-size:var(--luzmo-droppable-slot-label-font-size, var(--droppable-slot-label-font-size));flex-grow:1;margin-right:var(--luzmo-droppable-slot-text-to-controls, var(--droppable-slot-text-to-controls));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.controls{height:100%;display:flex;align-items:center;gap:var(--luzmo-droppable-slot-controls-gap, var(--droppable-slot-controls-gap));background-color:var(--luzmo-droppable-slot-controls-background-color, var(--droppable-slot-controls-background-color));color:var(--luzmo-droppable-slot-controls-color, var(--droppable-slot-controls-color));margin-right:var(--luzmo-droppable-slot-controls-to-edge, var(--droppable-slot-controls-to-edge));padding:0 var(--luzmo-droppable-slot-controls-horizontal-padding, var(--droppable-slot-controls-horizontal-padding))}.controls div{cursor:pointer;height:100%;display:flex;align-items:center;padding:0 var(--luzmo-droppable-slot-controls-control-horizontal-padding, var(--droppable-slot-controls-control-horizontal-padding))}luzmo-slot-menu[placement=bottom],luzmo-slot-menu[placement=top],luzmo-slot-menu[placement=bottom-start],luzmo-slot-menu[placement=top-start],luzmo-slot-menu[placement=bottom-end],luzmo-slot-menu[placement=top-end]{margin:var(--luzmo-droppable-slot-overlay-vertical-gap, var(--droppable-slot-overlay-vertical-gap)) 0}luzmo-slot-menu[placement=left],luzmo-slot-menu[placement=right],luzmo-slot-menu[placement=left-start],luzmo-slot-menu[placement=right-start],luzmo-slot-menu[placement=left-end],luzmo-slot-menu[placement=right-end]{margin:0 var(--luzmo-droppable-slot-overlay-horizontal-gap, var(--droppable-slot-overlay-horizontal-gap))}:host{--droppable-slot-border-width: var(--luzmo-border-width);--droppable-slot-border-style: dashed;--droppable-slot-border-color: var(--luzmo-border-color);--droppable-slot-background-color: transparent;--droppable-slot-font-color: var(--luzmo-font-color);--droppable-slot-controls-background-color: var(--luzmo-primary-down);--droppable-slot-controls-color: var(--luzmo-primary-inverse-color);--droppable-slot-text-to-controls: var(--luzmo-spacing-3);--droppable-slot-controls-to-edge: 0;--droppable-slot-controls-gap: var(--luzmo-spacing-2);--droppable-slot-controls-horizontal-padding: var(--luzmo-spacing-2);--droppable-slot-controls-control-horizontal-padding: var(--luzmo-spacing-3);--droppable-slot-filled-background-color: var(--luzmo-primary);--droppable-slot-filled-color: var(--luzmo-primary-inverse-color);--droppable-slot-filled-border-width: var(--luzmo-border-width);--droppable-slot-filled-border-style: solid;--droppable-slot-filled-border-color: var(--luzmo-primary-down);--droppable-slot-height: var(--luzmo-component-height);--droppable-slot-label-font-size: var(--luzmo-font-size);--droppable-slot-icon-type-font-size: var(--luzmo-font-size);--droppable-slot-edge-to-label: var(--luzmo-spacing-5);--droppable-slot-color-disabled: var(--luzmo-color-disabled);--droppable-slot-background-color-disabled: var( --luzmo-background-color-disabled )}:host([accept-drag]){--droppable-slot-filled-background-color: var(--luzmo-positive-color);--droppable-slot-filled-color: white;--droppable-slot-filled-border-color: var(--luzmo-positive-color-down);--droppable-slot-controls-background-color: var(--luzmo-positive-color-down);--droppable-slot-controls-color: white;--droppable-slot-background-color: var(--luzmo-positive-color);--droppable-slot-font-color: white}:host{--droppable-slot-height: var(--luzmo-component-height);--droppable-slot-label-font-size: var(--luzmo-font-size);--droppable-slot-icon-type-font-size: var(--luzmo-font-size);--droppable-slot-horizontal-padding: var(--luzmo-spacing-4);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-4);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=s]){--droppable-slot-height: var(--luzmo-component-height-s);--droppable-slot-label-font-size: var(--luzmo-font-size-s);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-s);--droppable-slot-horizontal-padding: var(--luzmo-spacing-4);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-4);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=l]){--droppable-slot-height: var(--luzmo-component-height-l);--droppable-slot-label-font-size: var(--luzmo-font-size-l);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-l);--droppable-slot-horizontal-padding: var(--luzmo-spacing-5);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-5);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-5)}:host([size=xl]){--droppable-slot-height: var(--luzmo-component-height-xl);--droppable-slot-label-font-size: var(--luzmo-font-size-xl);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-xl);--droppable-slot-horizontal-padding: var(--luzmo-spacing-5);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-5);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-5)}:host{box-sizing:border-box}", y = {
|
38
38
|
Category: () => f("Category", { desc: "Category label" }),
|
39
39
|
Measure: () => f("Measure", { desc: "Measure label" }),
|
40
40
|
Legend: () => f("Legend", { desc: "Legend label" }),
|
@@ -42,20 +42,20 @@ const O = ":host{font-family:var(--luzmo-droppable-slot-font-family, var(--luzmo
|
|
42
42
|
"X-Axis": () => f("X-Axis", { desc: "X-Axis label" }),
|
43
43
|
"Group by": () => f("Group by", { desc: "Group by label" })
|
44
44
|
};
|
45
|
-
var
|
46
|
-
for (var r = e > 1 ? void 0 : e ?
|
47
|
-
(a =
|
48
|
-
return e && r &&
|
45
|
+
var U = Object.defineProperty, G = Object.getOwnPropertyDescriptor, n = (t, o, l, e) => {
|
46
|
+
for (var r = e > 1 ? void 0 : e ? G(o, l) : o, s = t.length - 1, a; s >= 0; s--)
|
47
|
+
(a = t[s]) && (r = (e ? a(o, l, r) : a(r)) || r);
|
48
|
+
return e && r && U(o, l, r), r;
|
49
49
|
};
|
50
|
-
let i = class extends
|
50
|
+
let i = class extends O(D, {
|
51
51
|
validSizes: ["s", "m", "l", "xl"],
|
52
52
|
noDefaultSize: !0
|
53
53
|
}) {
|
54
54
|
constructor() {
|
55
|
-
super(...arguments), this._loadSlotsConfig = new
|
56
|
-
task: async ([
|
57
|
-
if (
|
58
|
-
const
|
55
|
+
super(...arguments), this._loadSlotsConfig = new _(this, {
|
56
|
+
task: async ([t]) => {
|
57
|
+
if (t && t !== this._itemTypeLoaded) {
|
58
|
+
const o = /* @__PURE__ */ Object.assign({
|
59
59
|
"../../item-definitions/area-chart/area-chart-slots.config.ts": () => import("../area-chart-slots.config-P7xa-pHi.js"),
|
60
60
|
"../../item-definitions/bar-chart/bar-chart-slots.config.ts": () => import("../bar-chart-slots.config-MQAjNXqV.js"),
|
61
61
|
"../../item-definitions/box-plot/box-plot-slots.config.ts": () => import("../box-plot-slots.config-BRhnF2FE.js"),
|
@@ -101,22 +101,22 @@ let i = class extends M(A, {
|
|
101
101
|
"../../item-definitions/video/video-slots.config.ts": () => import("../video-slots.config-IpwUxDyU.js"),
|
102
102
|
"../../item-definitions/wordcloud-chart/wordcloud-chart-slots.config.ts": () => import("../wordcloud-chart-slots.config-BS4sOOHt.js")
|
103
103
|
});
|
104
|
-
if (
|
105
|
-
const l = await
|
104
|
+
if (o[`../../item-definitions/${t}/${t}-slots.config.ts`]) {
|
105
|
+
const l = await o[`../../item-definitions/${t}/${t}-slots.config.ts`]();
|
106
106
|
this._slotsConfig = (l == null ? void 0 : l.default) ?? {};
|
107
107
|
}
|
108
108
|
return this._slotsConfig;
|
109
109
|
}
|
110
110
|
},
|
111
111
|
args: () => [this.itemType, this.language]
|
112
|
-
}), this.slotConfiguration = {}, this.slotContents = [], this.language = "en", this.menu = "default", this.placement = "bottom-end", this.changedSlotContents = (
|
112
|
+
}), this.slotConfiguration = {}, this.slotContents = [], this.language = "en", this.menu = "default", this.placement = "bottom-end", this.changedSlotContents = (t) => {
|
113
113
|
this.dispatchEvent(
|
114
114
|
new CustomEvent("slot-contents-changed", {
|
115
115
|
bubbles: !0,
|
116
116
|
composed: !0,
|
117
117
|
cancelable: !0,
|
118
118
|
detail: {
|
119
|
-
slotContents:
|
119
|
+
slotContents: t
|
120
120
|
}
|
121
121
|
})
|
122
122
|
);
|
@@ -125,21 +125,21 @@ let i = class extends M(A, {
|
|
125
125
|
disconnectedCallback() {
|
126
126
|
super.disconnectedCallback(), this._cleanupDroppable();
|
127
127
|
}
|
128
|
-
emptySlotContents(
|
129
|
-
|
128
|
+
emptySlotContents(t) {
|
129
|
+
t.preventDefault(), t.stopPropagation(), this.slotContents = [], this.changedSlotContents([]);
|
130
130
|
}
|
131
|
-
willUpdate(
|
132
|
-
|
131
|
+
willUpdate(t) {
|
132
|
+
t.has("language") && ([...S].includes(this.language) || this.language === "en") && (w(this.language), this.requestUpdate()), t.has("slotContents") && (this._currentSlotContents = structuredClone(this.slotContents));
|
133
133
|
}
|
134
|
-
firstUpdated(
|
135
|
-
this._cleanupDroppable || (this._cleanupDroppable =
|
134
|
+
firstUpdated(t) {
|
135
|
+
this._cleanupDroppable || (this._cleanupDroppable = C({
|
136
136
|
element: this,
|
137
|
-
onDrop: (
|
137
|
+
onDrop: (o) => {
|
138
138
|
var s, a, d, c;
|
139
|
-
const l = { ...(s =
|
139
|
+
const l = { ...(s = o.source) == null ? void 0 : s.data }, e = {
|
140
140
|
...(l == null ? void 0 : l.label) ?? { en: "Untitled" }
|
141
141
|
}, r = l == null ? void 0 : l.type;
|
142
|
-
if (r === "datetime" && !l.level && (l.level = l.lowestLevel ?? (l.subtype === "date" ? 5 : 9)), r === "datetime" && ((d = (a =
|
142
|
+
if (r === "datetime" && !l.level && (l.level = l.lowestLevel ?? (l.subtype === "date" ? 5 : 9)), r === "datetime" && ((d = (a = o == null ? void 0 : o.source) == null ? void 0 : a.element) != null && d.hasAttribute("sublevel"))) {
|
143
143
|
const m = [
|
144
144
|
"(Yr)",
|
145
145
|
"(Qtr)",
|
@@ -157,16 +157,16 @@ let i = class extends M(A, {
|
|
157
157
|
}
|
158
158
|
this.slotContents = (c = this.slotConfiguration) != null && c.canAcceptMultipleColumns ? [...this.slotContents ?? [], l] : [l], this.removeAttribute("accept-drag"), this.changedSlotContents(this.slotContents);
|
159
159
|
},
|
160
|
-
canDrop: ({ source:
|
161
|
-
var e, r, s, a, d, c, m, u, b;
|
160
|
+
canDrop: ({ source: o }) => {
|
161
|
+
var e, r, s, a, d, c, m, u, b, h, z;
|
162
162
|
if (![
|
163
163
|
"LUZMO-DRAGGABLE-DATA-ITEM-LEVEL",
|
164
164
|
"LUZMO-DRAGGABLE-DATA-ITEM"
|
165
|
-
].includes((e =
|
165
|
+
].includes((e = o.element) == null ? void 0 : e.tagName) || !((r = this.slotConfiguration) != null && r.canAcceptFormula) && ((s = o == null ? void 0 : o.data) != null && s.formulaId))
|
166
166
|
return !1;
|
167
|
-
const l = ((
|
168
|
-
return (
|
169
|
-
(
|
167
|
+
const l = ((d = (a = this.slotConfiguration) == null ? void 0 : a.acceptableColumnTypes) == null ? void 0 : d.length) > 0 ? this.slotConfiguration.acceptableColumnTypes : ["numeric", "hierarchy", "datetime"];
|
168
|
+
return (c = o == null ? void 0 : o.data) != null && c.type && !l.includes((m = o == null ? void 0 : o.data) == null ? void 0 : m.type) ? !1 : !((u = o == null ? void 0 : o.data) != null && u.subtype && ((h = (b = this.slotConfiguration) == null ? void 0 : b.acceptableColumnSubtypes) == null ? void 0 : h.length) > 0 && !this.slotConfiguration.acceptableColumnSubtypes.includes(
|
169
|
+
(z = o == null ? void 0 : o.data) == null ? void 0 : z.subtype
|
170
170
|
));
|
171
171
|
},
|
172
172
|
getDropEffect: () => "link",
|
@@ -181,32 +181,32 @@ let i = class extends M(A, {
|
|
181
181
|
updated() {
|
182
182
|
this.createFullLabel();
|
183
183
|
}
|
184
|
-
_onSlotMenuChanges(
|
185
|
-
var
|
186
|
-
|
184
|
+
_onSlotMenuChanges(t) {
|
185
|
+
var o;
|
186
|
+
t.preventDefault(), t.stopPropagation(), this.slotContents.length === ((o = t.detail.slotContents) == null ? void 0 : o.length) ? (this._currentSlotContents = t.detail.slotContents, this.createFullLabel(), this.changedSlotContents(this._currentSlotContents)) : (this.slotContents = t.detail.slotContents, this.changedSlotContents(this.slotContents));
|
187
187
|
}
|
188
188
|
// we update the label outside the lit render method to not lose focus when typing in the display settings bc of rerender
|
189
189
|
// we use a copy of slotContents '_currentSlotContents' to not trigger a rerender when the slotContents change from the slot-menu
|
190
190
|
createFullLabel() {
|
191
191
|
var e, r, s, a, d, c, m, u, b;
|
192
|
-
let
|
193
|
-
const
|
194
|
-
((a = this._currentSlotContents) == null ? void 0 : a.length) === 1 ?
|
192
|
+
let t = "";
|
193
|
+
const o = y[(e = this.slotConfiguration) == null ? void 0 : e.label] ? y[(r = this.slotConfiguration) == null ? void 0 : r.label]() : (s = this.slotConfiguration) == null ? void 0 : s.label;
|
194
|
+
((a = this._currentSlotContents) == null ? void 0 : a.length) === 1 ? t = A((c = (d = this._currentSlotContents) == null ? void 0 : d[0]) == null ? void 0 : c.label, this.language) ?? "Untitled" : ((m = this._currentSlotContents) == null ? void 0 : m.length) > 1 && (t = `${this._currentSlotContents.length} items`);
|
195
195
|
let l = "";
|
196
|
-
this.label ? l = this.label :
|
196
|
+
this.label ? l = this.label : o && (l = o), l = l || "Untitled", ((u = this._currentSlotContents) == null ? void 0 : u.length) > 0 && (l += ((b = this._currentSlotContents) == null ? void 0 : b.length) > 1 ? `: ${this._currentSlotContents.length} items` : `: ${t}`), this._droppableSlotLabelElement && (this._droppableSlotLabelElement.textContent = l);
|
197
197
|
}
|
198
198
|
droppableSlotMarkup() {
|
199
|
-
var
|
199
|
+
var t, o, l, e;
|
200
200
|
return g`
|
201
201
|
<div
|
202
202
|
class="droppable-slot"
|
203
|
-
?filled=${((
|
203
|
+
?filled=${((t = this.slotContents) == null ? void 0 : t.length) > 0}
|
204
204
|
id="trigger"
|
205
205
|
>
|
206
206
|
<div class="droppable-slot-label"></div>
|
207
|
-
${((
|
207
|
+
${((o = this.slotContents) == null ? void 0 : o.length) > 0 && !(this.hideConfiguration && this.hideDelete) ? g`<div class="controls">
|
208
208
|
${this.hideConfiguration ? "" : g`<div>
|
209
|
-
${
|
209
|
+
${v(L)}
|
210
210
|
<luzmo-tooltip
|
211
211
|
self-managed
|
212
212
|
placement="top"
|
@@ -216,7 +216,7 @@ let i = class extends M(A, {
|
|
216
216
|
</luzmo-tooltip>
|
217
217
|
</div> `}
|
218
218
|
${this.hideDelete ? "" : g`<div @click=${this.emptySlotContents}>
|
219
|
-
${
|
219
|
+
${v($)}
|
220
220
|
<luzmo-tooltip
|
221
221
|
self-managed
|
222
222
|
placement="top"
|
@@ -246,25 +246,25 @@ let i = class extends M(A, {
|
|
246
246
|
render() {
|
247
247
|
return this._loadSlotsConfig.render({
|
248
248
|
pending: () => g`<p>Loading...</p>`,
|
249
|
-
complete: (
|
250
|
-
if (this.slotName && this.itemType &&
|
251
|
-
const
|
249
|
+
complete: (t) => {
|
250
|
+
if (this.slotName && this.itemType && t) {
|
251
|
+
const o = t.find(
|
252
252
|
(l) => l.name === this.slotName
|
253
253
|
);
|
254
|
-
|
254
|
+
o && (this.slotConfiguration = o);
|
255
255
|
}
|
256
256
|
return this.droppableSlotMarkup();
|
257
257
|
},
|
258
|
-
error: (
|
258
|
+
error: (t) => g`
|
259
259
|
<div>
|
260
260
|
Could not load droppable slot: '${this.slotName}' of chart
|
261
|
-
'${this.itemType}': ${
|
261
|
+
'${this.itemType}': ${t}.
|
262
262
|
</div>
|
263
263
|
`
|
264
264
|
});
|
265
265
|
}
|
266
266
|
};
|
267
|
-
i.styles =
|
267
|
+
i.styles = E(T);
|
268
268
|
n([
|
269
269
|
p({ type: String, reflect: !0, attribute: "item-type" })
|
270
270
|
], i.prototype, "itemType", 2);
|
@@ -296,10 +296,10 @@ n([
|
|
296
296
|
p({ type: Boolean, reflect: !0, attribute: "hide-configuration" })
|
297
297
|
], i.prototype, "hideConfiguration", 2);
|
298
298
|
n([
|
299
|
-
|
299
|
+
M(".droppable-slot-label")
|
300
300
|
], i.prototype, "_droppableSlotLabelElement", 2);
|
301
301
|
i = n([
|
302
|
-
|
302
|
+
k()
|
303
303
|
], i);
|
304
304
|
customElements.get("luzmo-droppable-slot") || customElements.define("luzmo-droppable-slot", i);
|
305
305
|
export {
|