@luzmo/analytics-components-kit 1.0.1-alpha.26 → 1.0.1-alpha.28
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-CmOVMf6V.js → async-directive-DWRUSKKF-CPf9l5wJ.js} +1 -1
- package/components/{async-directive-DWRUSKKF-D4itZyzc.cjs → async-directive-DWRUSKKF-DWUZeMaj.cjs} +1 -1
- package/components/base-D76d76ww-C6YO3slp.cjs +94 -0
- package/components/base-D76d76ww-M5t7LVBG.js +758 -0
- package/components/{button-base-B7v4eeRh-D3-GH03o.js → button-base-DSHx7XO8-B_LbLx9g.js} +33 -32
- package/components/{button-base-B7v4eeRh-BKKUK3x0.cjs → button-base-DSHx7XO8-ChNRhetl.cjs} +4 -4
- package/components/{checkbox-mixin-BFGTmw17-C34LMsgu.js → checkbox-mixin-BFGTmw17-C1tjSMaa.js} +2 -2
- package/components/{checkbox-mixin-BFGTmw17-CCjGd0nS.cjs → checkbox-mixin-BFGTmw17-DF2p-vSz.cjs} +4 -4
- package/components/{directive-helpers-nlQRAaQt-3kEWF2GV.cjs → directive-helpers-nlQRAaQt-DTZp2cFt.cjs} +4 -4
- package/components/{directive-helpers-nlQRAaQt-I6T4KZKW.js → directive-helpers-nlQRAaQt-DgSC1Yr2.js} +1 -1
- package/components/display-settings/display-settings.d.ts +3 -3
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +19 -19
- package/components/display-settings-binning/display-settings-binning.d.ts +3 -3
- package/components/display-settings-binning/index.cjs +2 -2
- package/components/display-settings-binning/index.js +20 -20
- package/components/display-settings-datetime/display-settings-datetime.d.ts +3 -3
- package/components/display-settings-datetime/index.cjs +2 -2
- package/components/display-settings-datetime/index.js +22 -22
- package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +3 -3
- package/components/display-settings-grand-totals/index.cjs +2 -2
- package/components/display-settings-grand-totals/index.js +19 -19
- package/components/display-settings-numeric/display-settings-numeric.d.ts +3 -3
- package/components/display-settings-numeric/index.cjs +4 -4
- package/components/display-settings-numeric/index.js +23 -23
- package/components/display-settings-period-over-period/display-settings-period-over-period.d.ts +3 -3
- package/components/display-settings-period-over-period/index.cjs +15 -15
- package/components/display-settings-period-over-period/index.js +45 -44
- package/components/draggable-data-item/draggable-data-item.d.ts +3 -3
- package/components/draggable-data-item/index.cjs +4 -4
- package/components/draggable-data-item/index.js +6 -6
- package/components/draggable-data-item-level/draggable-data-item-level.d.ts +3 -3
- package/components/draggable-data-item-level/index.cjs +4 -4
- package/components/draggable-data-item-level/index.js +15 -15
- package/components/droppable-slot/droppable-slot.d.ts +5 -5
- package/components/droppable-slot/index.cjs +2 -2
- package/components/droppable-slot/index.js +14 -14
- package/components/edit-item/edit-item.d.ts +3 -1
- package/components/edit-item/index.cjs +17 -16
- package/components/edit-item/index.js +50 -35
- package/components/edit-option/edit-option.d.ts +1 -1
- package/components/edit-option/helpers/control-markup.d.ts +1 -1
- 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 +2 -2
- package/components/edit-option-action-button-group/index.js +6 -6
- package/components/edit-option-base/edit-option-base.d.ts +3 -3
- package/components/{edit-option-base-qePiIQWd.js → edit-option-base-C0zI8SOd.js} +4 -4
- package/components/edit-option-base-D8vs3Bty.cjs +53 -0
- package/components/edit-option-color-picker/index.cjs +24 -24
- package/components/edit-option-color-picker/index.js +42 -41
- package/components/edit-option-multi-language-field/index.cjs +1 -1
- package/components/edit-option-multi-language-field/index.js +3 -3
- package/components/edit-option-number-field/index.cjs +2 -2
- package/components/edit-option-number-field/index.js +3 -3
- package/components/edit-option-picker/index.cjs +2 -2
- package/components/edit-option-picker/index.js +4 -4
- package/components/edit-option-position-picker/index.cjs +2 -2
- package/components/edit-option-position-picker/index.js +3 -3
- package/components/edit-option-positions-number-field/index.cjs +1 -1
- package/components/edit-option-positions-number-field/index.js +5 -5
- package/components/edit-option-radio-button-group/index.cjs +4 -4
- package/components/edit-option-radio-button-group/index.js +4 -4
- package/components/edit-option-slider/index.cjs +3 -3
- package/components/edit-option-slider/index.js +8 -8
- package/components/edit-option-switch/index.cjs +5 -5
- package/components/edit-option-switch/index.js +11 -10
- package/components/edit-option-text-field/index.cjs +2 -2
- package/components/edit-option-text-field/index.js +3 -3
- package/components/focusable-Cu_m_GTh.cjs +42 -0
- package/components/focusable-Dw_pMNQL.js +852 -0
- package/components/focusable-cj2QhwDT-CvevSkDr.cjs +52 -0
- package/components/focusable-cj2QhwDT-DlzfnLn9.js +242 -0
- package/components/{if-defined-BSAr_4u4-4Ys8VE7T.js → if-defined-BSAr_4u4-BCnSpSsA.js} +14 -15
- package/components/{if-defined-BSAr_4u4-gECNwmTC.cjs → if-defined-BSAr_4u4-CIqREoag.cjs} +3 -3
- package/components/{if-defined-8BOch-oC.cjs → if-defined-CF8baNdl.cjs} +2 -2
- package/components/{if-defined-Bv6MRdSW.js → if-defined-DbhS35z5.js} +1 -1
- package/components/{index-Bt5nP_6w.cjs → index-9hGc0AF6.cjs} +6 -6
- package/components/{index-Bee1uunR.js → index-B2LO8M42.js} +11 -12
- package/components/{index-w3j1USKK.cjs → index-B3417kqb.cjs} +2 -2
- package/components/{index-DUO13KGl.cjs → index-BIauj-BP.cjs} +3 -3
- package/components/{index-i8GaIN7i.cjs → index-BIcAxPGg.cjs} +4 -4
- package/components/{index-Dc9c_dq-.cjs → index-BLyfPWMW.cjs} +2 -2
- package/components/index-BW6jffrL.cjs +117 -0
- package/components/{index-CXIT0cYY.js → index-BjdUsH9B.js} +11 -12
- package/components/{index-BYfDERr7.js → index-BnVt-dJY.js} +11 -12
- package/components/index-Bp6XY9q2.cjs +42 -0
- package/components/{index-CdCtJpK9.js → index-C8yP7YJD.js} +8 -9
- package/components/index-CAwT4m7K.cjs +127 -0
- package/components/{index-CfEn3fIT.js → index-CBNsaHFy.js} +7 -8
- package/components/{index-DEVOZNSc.cjs → index-CC53jnJB.cjs} +2 -2
- package/components/{index-CdUTqQ3L.cjs → index-CZUy8SUo.cjs} +4 -4
- package/components/{index-86cIx1Ql.cjs → index-Cl7wWlXl.cjs} +2 -2
- package/components/{index-ByjLd3bT.cjs → index-Cz9Cvq1K.cjs} +6 -6
- package/components/{index-B3ve6cAj.js → index-D8GVYuJ-.js} +142 -109
- package/components/{index-BH9W0QLt-DBxyzKWK.js → index-DQCvi59x.js} +92 -59
- package/components/index-DelXrrBi.js +779 -0
- package/components/{index-BUSWsm5N.js → index-Dku2WLRc.js} +7 -8
- package/components/{index-aYcu00GB.js → index-Du8Q4hhF.js} +2 -2
- package/components/{index-Dn7LyFPv.js → index-Dwp251OJ.js} +3 -3
- package/components/{index-BVX_ozT9.js → index-KY89MPqI.js} +5 -6
- package/components/{index-BJVxTeoi.cjs → index-b9OSfNB6.cjs} +7 -7
- package/components/{index-ymMEPngt.js → index-fheP_kQJ.js} +23 -23
- package/components/{index-DVAsMiOm.js → index-fzqLW5XZ.js} +7 -8
- package/components/index-hogChFy0.cjs +195 -0
- package/components/index-mB-t2zP2.cjs +217 -0
- package/components/{index-C8IL2IZ6.js → index-zFIy9Mwl.js} +14 -15
- package/components/index.cjs +1 -1
- package/components/index.js +457 -54
- package/components/{luzmo-icons-BE2T8vWu.js → luzmo-icons-CmY3chvZ.js} +16 -16
- package/components/luzmo-icons-lvebt6bp.cjs +31 -0
- package/components/{observe-slot-text-ggb4kKgY-DBVrKDBD.cjs → observe-slot-text-ggb4kKgY-5zLP4Vgh.cjs} +2 -2
- package/components/{observe-slot-text-ggb4kKgY-o5QFWUeA.js → observe-slot-text-ggb4kKgY-tm0SQCaj.js} +3 -3
- package/components/{popover-Bx4ZDHk4-BuzeOeNe.cjs → popover-Bx4ZDHk4-Cw2DKR2x.cjs} +2 -2
- package/components/{popover-Bx4ZDHk4-jZJ0Cd59.js → popover-Bx4ZDHk4-HbUSJ86p.js} +6 -7
- package/components/{query-assigned-nodes-C76XVPWY-DPC6kOmH.js → query-assigned-nodes-C76XVPWY-DON51dMU.js} +1 -1
- package/components/{query-assigned-nodes-C76XVPWY-BcyGjObB.cjs → query-assigned-nodes-C76XVPWY-DzOeAzcN.cjs} +1 -1
- package/components/sized-mixin-Cqlxwicw.cjs +20 -0
- package/components/sized-mixin-DMuOVsw0.js +65 -0
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +27 -27
- package/components/slot-menu/slot-menu.d.ts +3 -3
- package/components/slot-menu-list/index.cjs +2 -2
- package/components/slot-menu-list/index.js +14 -14
- package/components/slot-menu-list/slot-menu-list.d.ts +3 -3
- package/components/{state-BFA93Sye.cjs → state-QgHgNZLe.cjs} +2 -2
- package/components/{state-Joaryhrg.js → state-e2n-fyrr.js} +1 -1
- package/components/streaming-listener-CCalHg57-2AtO4Ho2.cjs +52 -0
- package/components/{language-resolution-8yZa5r_P-Bn0bYosv.js → streaming-listener-CCalHg57-CQgWstyf.js} +59 -59
- package/components/{task-B8yMzxui.cjs → task-fQFUVV8e.cjs} +2 -2
- package/components/{task-Cr9aRIbV.js → task-gE27tBDv.js} +1 -1
- package/components/text-field-BTnBJoP9-BuahhcXU.js +430 -0
- package/components/text-field-BTnBJoP9-CDMhK3d1.cjs +147 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +472 -54
- package/custom-elements.json +56 -292
- package/index.d.ts +1 -0
- package/item-definitions/marker-map/marker-map-options.config.d.ts +1 -1
- package/package.json +2 -2
- package/utils/base/base.d.ts +16 -0
- package/utils/base/focus-visible.d.ts +29 -0
- package/utils/base/focusable.d.ts +58 -0
- package/utils/base/index.d.ts +4 -0
- package/utils/base/sized-mixin.d.ts +17 -0
- package/utils/index.d.ts +1 -0
- package/utils/themes/index.d.ts +507 -0
- package/components/base-D76d76ww-BiajPmzU.cjs +0 -40
- package/components/base-D76d76ww-gf0ESLsU.js +0 -45
- package/components/edit-option-base-Boz7TNRZ.cjs +0 -53
- package/components/index-BH9W0QLt-Cy2sUVJ_.cjs +0 -95
- package/components/index-D5LI0odG.js +0 -44
- package/components/index-DM_2d78G.js +0 -744
- package/components/index-DrLPC6eG.cjs +0 -185
- package/components/index-eEpFkbP8.cjs +0 -195
- package/components/index-h9T5DPIm.cjs +0 -36
- package/components/index-iYpAy-Kg.cjs +0 -95
- package/components/index-zuArOtOt.cjs +0 -42
- package/components/language-resolution-8yZa5r_P-FqQChUDW.cjs +0 -52
- package/components/luzmo-icons-XsFsTAl3.cjs +0 -31
- package/components/property-0L4eB11h.cjs +0 -112
- package/components/property-B2F7x7Cz.js +0 -1481
- package/components/sized-mixin-BxMraZLS-B_y0PzR3.js +0 -82
- package/components/sized-mixin-BxMraZLS-DEFWqo8f.cjs +0 -36
- package/components/text-field-CvKSS59x-Dn0_1HO7.js +0 -412
- package/components/text-field-CvKSS59x-E9LQElL4.cjs +0 -131
@@ -17,9 +17,10 @@
|
|
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 { h as c, H as i,
|
21
|
-
import { d as
|
22
|
-
import {
|
20
|
+
import { h as c, H as i, R as h } from "./base-D76d76ww-M5t7LVBG.js";
|
21
|
+
import { d as u } from "./if-defined-BSAr_4u4-BCnSpSsA.js";
|
22
|
+
import { r as p } from "./focusable-cj2QhwDT-DlzfnLn9.js";
|
23
|
+
import { y as d, b } from "./observe-slot-text-ggb4kKgY-tm0SQCaj.js";
|
23
24
|
/*! * Lucero - The design system for Luzmo.
|
24
25
|
*
|
25
26
|
* Copyright © 2025 Luzmo
|
@@ -37,14 +38,14 @@ import { y as d, b } from "./observe-slot-text-ggb4kKgY-o5QFWUeA.js";
|
|
37
38
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
38
39
|
* SOFTWARE.
|
39
40
|
* */
|
40
|
-
const m = ":host{display:inline-flex;vertical-align:top;--parent-element-progress-circle-size: 18px;--icon-size: 18px}:host([dir]){-webkit-appearance:none}:host([disabled]){pointer-events:none;cursor:auto}#button{position:absolute;top:0;right:0;bottom:0;left:0}::slotted(luzmo-overlay),::slotted(luzmo-tooltip){position:absolute}:host:after{pointer-events:none}::slotted(*){pointer-events:none}::slotted([slot=icon]){--
|
41
|
-
var y = Object.defineProperty, o = (r,
|
41
|
+
const m = ":host{display:inline-flex;vertical-align:top;--parent-element-progress-circle-size: 18px;--icon-size: 18px}:host([dir]){-webkit-appearance:none}:host([disabled]){pointer-events:none;cursor:auto}#button{position:absolute;top:0;right:0;bottom:0;left:0}::slotted(luzmo-overlay),::slotted(luzmo-tooltip){position:absolute}:host:after{pointer-events:none}::slotted(*){pointer-events:none}::slotted([slot=icon]){--luzmo-icon-vertical-align: 0}slot[name=icon]::slotted(svg),slot[name=icon]::slotted(img){fill:currentcolor;stroke:currentcolor;block-size:var(--luzmo-button-icon-size, var(--icon-size));inline-size:var(--luzmo-button-icon-size, var(--icon-size))}[icon-only]+#label{display:contents}:host([size=s]){--parent-element-progress-circle-size: 16px;--icon-size: 16px}:host([size=l]){--parent-element-progress-circle-size: 20px;--icon-size: 20px}:host([size=xl]){--parent-element-progress-circle-size: 22px;--icon-size: 22px}";
|
42
|
+
var y = Object.defineProperty, o = (r, e, t, f) => {
|
42
43
|
for (var s = void 0, n = r.length - 1, l; n >= 0; n--)
|
43
|
-
(l = r[n]) && (s = l(
|
44
|
-
return s && y(
|
44
|
+
(l = r[n]) && (s = l(e, t, s) || s);
|
45
|
+
return s && y(e, t, s), s;
|
45
46
|
};
|
46
47
|
class a extends d(
|
47
|
-
b(
|
48
|
+
b(p),
|
48
49
|
"",
|
49
50
|
["luzmo-overlay,luzmo-tooltip"]
|
50
51
|
) {
|
@@ -72,23 +73,23 @@ class a extends d(
|
|
72
73
|
`
|
73
74
|
];
|
74
75
|
}
|
75
|
-
handleClickCapture(
|
76
|
+
handleClickCapture(e) {
|
76
77
|
if (this.disabled)
|
77
|
-
return
|
78
|
+
return e.preventDefault(), e.stopImmediatePropagation(), e.stopPropagation(), !1;
|
78
79
|
this.shouldProxyClick();
|
79
80
|
}
|
80
81
|
proxyFocus() {
|
81
82
|
this.focus();
|
82
83
|
}
|
83
84
|
shouldProxyClick() {
|
84
|
-
let
|
85
|
+
let e = !1;
|
85
86
|
if (this.anchorElement)
|
86
|
-
this.anchorElement.click(),
|
87
|
+
this.anchorElement.click(), e = !0;
|
87
88
|
else if (this.type !== "button") {
|
88
|
-
const
|
89
|
-
|
89
|
+
const t = document.createElement("button");
|
90
|
+
t.type = this.type, this.insertAdjacentElement("afterend", t), t.click(), t.remove(), e = !0;
|
90
91
|
}
|
91
|
-
return
|
92
|
+
return e;
|
92
93
|
}
|
93
94
|
renderAnchor() {
|
94
95
|
return i`
|
@@ -106,18 +107,18 @@ class a extends d(
|
|
106
107
|
render() {
|
107
108
|
return this.href && this.href.length > 0 ? this.renderAnchor() : this.renderButton();
|
108
109
|
}
|
109
|
-
handleKeydown(
|
110
|
-
const { code:
|
111
|
-
switch (
|
110
|
+
handleKeydown(e) {
|
111
|
+
const { code: t } = e;
|
112
|
+
switch (t) {
|
112
113
|
case "Space": {
|
113
|
-
|
114
|
+
e.preventDefault(), this.href === void 0 && (this.addEventListener("keyup", this.handleKeyup), this.active = !0);
|
114
115
|
break;
|
115
116
|
}
|
116
117
|
}
|
117
118
|
}
|
118
|
-
handleKeypress(
|
119
|
-
const { code:
|
120
|
-
switch (
|
119
|
+
handleKeypress(e) {
|
120
|
+
const { code: t } = e;
|
121
|
+
switch (t) {
|
121
122
|
case "Enter":
|
122
123
|
case "NumpadEnter": {
|
123
124
|
this.click();
|
@@ -125,9 +126,9 @@ class a extends d(
|
|
125
126
|
}
|
126
127
|
}
|
127
128
|
}
|
128
|
-
handleKeyup(
|
129
|
-
const { code:
|
130
|
-
switch (
|
129
|
+
handleKeyup(e) {
|
130
|
+
const { code: t } = e;
|
131
|
+
switch (t) {
|
131
132
|
case "Space": {
|
132
133
|
this.removeEventListener("keyup", this.handleKeyup), this.active = !1, this.click();
|
133
134
|
break;
|
@@ -137,14 +138,14 @@ class a extends d(
|
|
137
138
|
manageAnchor() {
|
138
139
|
this.href && this.href.length > 0 ? (!this.hasAttribute("role") || this.getAttribute("role") === "button") && this.setAttribute("role", "link") : (!this.hasAttribute("role") || this.getAttribute("role") === "link") && this.setAttribute("role", "button");
|
139
140
|
}
|
140
|
-
firstUpdated(
|
141
|
-
super.firstUpdated(
|
141
|
+
firstUpdated(e) {
|
142
|
+
super.firstUpdated(e), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), e.has("label") && (this.label ? this.setAttribute("aria-label", this.label) : this.removeAttribute("aria-label")), this.manageAnchor(), this.addEventListener("keydown", this.handleKeydown), this.addEventListener("keypress", this.handleKeypress);
|
142
143
|
}
|
143
|
-
updated(
|
144
|
-
super.updated(
|
144
|
+
updated(e) {
|
145
|
+
super.updated(e), e.has("href") && this.manageAnchor(), this.anchorElement && (this.anchorElement.addEventListener("focus", this.proxyFocus), this.anchorElement.tabIndex = -1);
|
145
146
|
}
|
146
|
-
update(
|
147
|
-
super.update(
|
147
|
+
update(e) {
|
148
|
+
super.update(e), e.has("label") && (this.label ? this.setAttribute("aria-label", this.label) : this.removeAttribute("aria-label"));
|
148
149
|
}
|
149
150
|
}
|
150
151
|
o([
|
@@ -154,7 +155,7 @@ o([
|
|
154
155
|
h({ type: String })
|
155
156
|
], a.prototype, "type");
|
156
157
|
o([
|
157
|
-
|
158
|
+
u(".anchor")
|
158
159
|
], a.prototype, "anchorElement");
|
159
160
|
export {
|
160
161
|
a
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";const s=require("./
|
20
|
+
"use strict";const s=require("./base-D76d76ww-C6YO3slp.cjs"),c=require("./if-defined-BSAr_4u4-CIqREoag.cjs"),u=require("./focusable-cj2QhwDT-CvevSkDr.cjs"),h=require("./observe-slot-text-ggb4kKgY-5zLP4Vgh.cjs");/*! * Lucero - The design system for Luzmo.
|
21
21
|
*
|
22
22
|
* Copyright © 2025 Luzmo
|
23
23
|
* All rights reserved.
|
@@ -33,11 +33,11 @@
|
|
33
33
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
34
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
35
35
|
* SOFTWARE.
|
36
|
-
* */const
|
36
|
+
* */const p=":host{display:inline-flex;vertical-align:top;--parent-element-progress-circle-size: 18px;--icon-size: 18px}:host([dir]){-webkit-appearance:none}:host([disabled]){pointer-events:none;cursor:auto}#button{position:absolute;top:0;right:0;bottom:0;left:0}::slotted(luzmo-overlay),::slotted(luzmo-tooltip){position:absolute}:host:after{pointer-events:none}::slotted(*){pointer-events:none}::slotted([slot=icon]){--luzmo-icon-vertical-align: 0}slot[name=icon]::slotted(svg),slot[name=icon]::slotted(img){fill:currentcolor;stroke:currentcolor;block-size:var(--luzmo-button-icon-size, var(--icon-size));inline-size:var(--luzmo-button-icon-size, var(--icon-size))}[icon-only]+#label{display:contents}:host([size=s]){--parent-element-progress-circle-size: 16px;--icon-size: 16px}:host([size=l]){--parent-element-progress-circle-size: 20px;--icon-size: 20px}:host([size=xl]){--parent-element-progress-circle-size: 22px;--icon-size: 22px}";var d=Object.defineProperty,a=(n,e,t,b)=>{for(var i=void 0,o=n.length-1,l;o>=0;o--)(l=n[o])&&(i=l(e,t,i)||i);return i&&d(e,t,i),i};class r extends h.y(h.b(u.r),"",["luzmo-overlay,luzmo-tooltip"]){constructor(){super(),this.active=!1,this.type="button",this.proxyFocus=this.proxyFocus.bind(this),this.addEventListener("click",this.handleClickCapture,{capture:!0})}static get styles(){return[s.ht(p)]}get focusElement(){return this}get hasLabel(){return this.slotHasContent}get buttonContent(){return[s.Ht` <slot name="icon" ?icon-only=${!this.hasLabel}></slot> `,s.Ht`
|
37
37
|
<span id="label">
|
38
38
|
<slot @slotchange=${this.manageTextObservedSlot}></slot>
|
39
39
|
</span>
|
40
|
-
`]}handleClickCapture(
|
40
|
+
`]}handleClickCapture(e){if(this.disabled)return e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),!1;this.shouldProxyClick()}proxyFocus(){this.focus()}shouldProxyClick(){let e=!1;if(this.anchorElement)this.anchorElement.click(),e=!0;else if(this.type!=="button"){const t=document.createElement("button");t.type=this.type,this.insertAdjacentElement("afterend",t),t.click(),t.remove(),e=!0}return e}renderAnchor(){return s.Ht`
|
41
41
|
${this.buttonContent}
|
42
42
|
${super.renderAnchor({id:"button",ariaHidden:!0,className:"button anchor hidden"})}
|
43
|
-
`}renderButton(){return s.Ht` ${this.buttonContent} `}render(){return this.href&&this.href.length>0?this.renderAnchor():this.renderButton()}handleKeydown(
|
43
|
+
`}renderButton(){return s.Ht` ${this.buttonContent} `}render(){return this.href&&this.href.length>0?this.renderAnchor():this.renderButton()}handleKeydown(e){const{code:t}=e;switch(t){case"Space":{e.preventDefault(),this.href===void 0&&(this.addEventListener("keyup",this.handleKeyup),this.active=!0);break}}}handleKeypress(e){const{code:t}=e;switch(t){case"Enter":case"NumpadEnter":{this.click();break}}}handleKeyup(e){const{code:t}=e;switch(t){case"Space":{this.removeEventListener("keyup",this.handleKeyup),this.active=!1,this.click();break}}}manageAnchor(){this.href&&this.href.length>0?(!this.hasAttribute("role")||this.getAttribute("role")==="button")&&this.setAttribute("role","link"):(!this.hasAttribute("role")||this.getAttribute("role")==="link")&&this.setAttribute("role","button")}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),e.has("label")&&(this.label?this.setAttribute("aria-label",this.label):this.removeAttribute("aria-label")),this.manageAnchor(),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keypress",this.handleKeypress)}updated(e){super.updated(e),e.has("href")&&this.manageAnchor(),this.anchorElement&&(this.anchorElement.addEventListener("focus",this.proxyFocus),this.anchorElement.tabIndex=-1)}update(e){super.update(e),e.has("label")&&(this.label?this.setAttribute("aria-label",this.label):this.removeAttribute("aria-label"))}}a([s.Rt({type:Boolean,reflect:!0})],r.prototype,"active");a([s.Rt({type:String})],r.prototype,"type");a([c.d(".anchor")],r.prototype,"anchorElement");exports.a=r;
|
package/components/{checkbox-mixin-BFGTmw17-C34LMsgu.js → checkbox-mixin-BFGTmw17-C1tjSMaa.js}
RENAMED
@@ -17,8 +17,8 @@
|
|
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 { R as i, H as d } from "./
|
21
|
-
import { d as a, m as p } from "./if-defined-BSAr_4u4-
|
20
|
+
import { R as i, H as d } from "./base-D76d76ww-M5t7LVBG.js";
|
21
|
+
import { d as a, m as p } from "./if-defined-BSAr_4u4-BCnSpSsA.js";
|
22
22
|
/*! * Lucero - The design system for Luzmo.
|
23
23
|
*
|
24
24
|
* Copyright © 2025 Luzmo
|
package/components/{checkbox-mixin-BFGTmw17-CCjGd0nS.cjs → checkbox-mixin-BFGTmw17-DF2p-vSz.cjs}
RENAMED
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";const c=require("./
|
20
|
+
"use strict";const c=require("./base-D76d76ww-C6YO3slp.cjs"),o=require("./if-defined-BSAr_4u4-CIqREoag.cjs");/*! * Lucero - The design system for Luzmo.
|
21
21
|
*
|
22
22
|
* Copyright © 2025 Luzmo
|
23
23
|
* All rights reserved.
|
@@ -33,13 +33,13 @@
|
|
33
33
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
34
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
35
35
|
* SOFTWARE.
|
36
|
-
* */var u=Object.defineProperty,r=(n,e,h,s)=>{for(var t=void 0,i=n.length-1,
|
36
|
+
* */var u=Object.defineProperty,r=(n,e,h,s)=>{for(var t=void 0,i=n.length-1,d;i>=0;i--)(d=n[i])&&(t=d(e,h,t)||t);return t&&u(e,h,t),t};function a(n){class e extends n{constructor(){super(...arguments),this.checked=!1,this.readonly=!1}handleChange(){if(this.readonly){this.inputElement.checked=this.checked;return}this.checked=this.inputElement.checked;const s=new CustomEvent("change",{bubbles:!0,cancelable:!0,composed:!0,detail:this.checked});this.dispatchEvent(s)||(this.checked=!this.inputElement.checked,this.inputElement.checked=this.checked)}render(){return c.Ht`
|
37
37
|
<input
|
38
38
|
id="input"
|
39
|
-
name=${
|
39
|
+
name=${o.m(this.name||void 0)}
|
40
40
|
type="checkbox"
|
41
41
|
.checked=${this.checked}
|
42
42
|
?disabled=${this.readonly}
|
43
43
|
@change=${this.handleChange}
|
44
44
|
/>
|
45
|
-
`}}return r([c.Rt({type:Boolean,reflect:!0})],e.prototype,"checked"),r([c.Rt({type:String,reflect:!0})],e.prototype,"name"),r([c.Rt({type:Boolean,reflect:!0})],e.prototype,"readonly"),r([
|
45
|
+
`}}return r([c.Rt({type:Boolean,reflect:!0})],e.prototype,"checked"),r([c.Rt({type:String,reflect:!0})],e.prototype,"name"),r([c.Rt({type:Boolean,reflect:!0})],e.prototype,"readonly"),r([o.d("#input")],e.prototype,"inputElement"),e}exports.k=a;
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";const i=require("./
|
20
|
+
"use strict";const i=require("./base-D76d76ww-C6YO3slp.cjs");/*! * Lucero - The design system for Luzmo.
|
21
21
|
*
|
22
22
|
* Copyright © 2025 Luzmo
|
23
23
|
* All rights reserved.
|
@@ -37,7 +37,7 @@
|
|
37
37
|
* @license
|
38
38
|
* Copyright 2017 Google LLC
|
39
39
|
* SPDX-License-Identifier: BSD-3-Clause
|
40
|
-
*/function n(
|
40
|
+
*/function n(s){return i.Rt({...s,state:!0,attribute:!1})}/*! * Lucero - The design system for Luzmo.
|
41
41
|
*
|
42
42
|
* Copyright © 2025 Luzmo
|
43
43
|
* All rights reserved.
|
@@ -57,7 +57,7 @@
|
|
57
57
|
* @license
|
58
58
|
* Copyright 2017 Google LLC
|
59
59
|
* SPDX-License-Identifier: BSD-3-Clause
|
60
|
-
*/const u={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},_=
|
60
|
+
*/const u={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},_=s=>(...t)=>({_$litDirective$:s,values:t});class ${constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,e){this._$Ct=t,this._$AM=r,this._$Ci=e}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}}/*! * Lucero - The design system for Luzmo.
|
61
61
|
*
|
62
62
|
* Copyright © 2025 Luzmo
|
63
63
|
* All rights reserved.
|
@@ -77,4 +77,4 @@
|
|
77
77
|
* @license
|
78
78
|
* Copyright 2020 Google LLC
|
79
79
|
* SPDX-License-Identifier: BSD-3-Clause
|
80
|
-
*/const A=
|
80
|
+
*/const A=s=>s.strings===void 0,c={},a=(s,t=c)=>s._$AH=t;exports.$=$;exports._=_;exports.f=a;exports.n=n;exports.r=A;exports.s=u;
|
package/components/{directive-helpers-nlQRAaQt-I6T4KZKW.js → directive-helpers-nlQRAaQt-DgSC1Yr2.js}
RENAMED
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
import { R as i } from "./
|
20
|
+
import { R as i } from "./base-D76d76ww-M5t7LVBG.js";
|
21
21
|
/*! * Lucero - The design system for Luzmo.
|
22
22
|
*
|
23
23
|
* Copyright © 2025 Luzmo
|
@@ -4,11 +4,11 @@ import '@luzmo/lucero/icon';
|
|
4
4
|
import '@luzmo/lucero/multi-language-field';
|
5
5
|
import '@luzmo/lucero/progress-circle';
|
6
6
|
import '@luzmo/lucero/text-field';
|
7
|
-
import { LuzmoElement } from '@luzmo/lucero/utils';
|
8
7
|
import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
|
8
|
+
import { LuzmoElement } from '../../utils/base';
|
9
9
|
declare const LuzmoDisplaySettings_base: typeof LuzmoElement & {
|
10
|
-
new (...args: any[]): import("
|
11
|
-
prototype: import("
|
10
|
+
new (...args: any[]): import("../../utils/base/sized-mixin").SizedElementInterface;
|
11
|
+
prototype: import("../../utils/base/sized-mixin").SizedElementInterface;
|
12
12
|
};
|
13
13
|
/**
|
14
14
|
* @element luzmo-display-settings
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../task-
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../task-fQFUVV8e.cjs");require("../index-CC53jnJB.cjs");require("../index-9hGc0AF6.cjs");require("../index-B3417kqb.cjs");require("../index-Cl7wWlXl.cjs");require("../index-BIcAxPGg.cjs");require("../index-CZUy8SUo.cjs");const t=require("../focusable-Cu_m_GTh.cjs"),c=require("../state-QgHgNZLe.cjs"),m=require("../query-D5qWDopr.cjs"),a=require("../luzmo-icons-lvebt6bp.cjs"),g=require("../sized-mixin-Cqlxwicw.cjs"),v=":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-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}.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-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-gap, var(--display-settings-gap));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))}: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)}";var h=Object.defineProperty,n=(l,e,o,d)=>{for(var i=void 0,r=l.length-1,u;r>=0;r--)(u=l[r])&&(i=u(e,o,i)||i);return i&&h(e,o,i),i};class s extends g.SizedMixin(t.LuzmoElement,{validSizes:Object.values(g.ElementSizes)}){constructor(){super(...arguments),this._loadDisplaySettings=new p.h(this,{task:async([e,o,d])=>{const i=[];this.grandTotals&&i.push("grandTotals"),this.periodOverPeriod&&i.push("periodOverPeriod"),(o==="numeric"||o==="mixed"&&(e==null?void 0:e.type)==="numeric")&&i.push("numeric"),o!=="numeric"&&(e==null?void 0:e.type)==="datetime"&&i.push("datetime"),!["numeric","mixed"].includes(o??"")&&(e==null?void 0:e.type)==="numeric"&&!this.binningDisabled&&i.push("binning"),i.length>0&&!d&&(i.includes("numeric")&&!this._settingsTypeLoaded.numeric?(await Promise.resolve().then(()=>require("../display-settings-numeric/index.cjs")),this._settingsTypeLoaded.numeric=!0):i.includes("datetime")&&!this._settingsTypeLoaded.datetime?(await Promise.resolve().then(()=>require("../display-settings-datetime/index.cjs")),this._settingsTypeLoaded.periodOverPeriod=!0):i.includes("binning")&&!this._settingsTypeLoaded.binning?(await Promise.resolve().then(()=>require("../display-settings-binning/index.cjs")),this._settingsTypeLoaded.binning=!0):i.includes("grandTotals")&&!this._settingsTypeLoaded.grandTotals?(await Promise.resolve().then(()=>require("../display-settings-grand-totals/index.cjs")),this._settingsTypeLoaded.grandTotals=!0):i.includes("periodOverPeriod")&&!this._settingsTypeLoaded.periodOverPeriod&&(await Promise.resolve().then(()=>require("../display-settings-period-over-period/index.cjs")),this._settingsTypeLoaded.periodOverPeriod=!0))},args:()=>[this.slotContent,this.slotType,this.hideDisplaySettings]}),this.language="en",this.contentLanguage="en",this.slotType="numeric",this.slotContent={},this._showIds=!1,this.measureColumns=[],this._settingsTypeLoaded={binning:!1,datetime:!1,numeric:!1,grandTotals:!1,periodOverPeriod:!1,hierarchy:!0},this._currentSlotContent={}}static get styles(){return[t.r(v)]}willUpdate(e){e.has("slotContent")&&(this._currentSlotContent=structuredClone(this.slotContent))}_onSlotContentChange(e){e.stopPropagation(),e.preventDefault(),this._currentSlotContent=structuredClone(e.detail.slotContent),this._sendEvent()}_onLabelChange(){this._currentSlotContent=structuredClone(this._currentSlotContent),this._currentSlotContent.label=this._multiLanguageFieldElement.value||{},this._sendEvent()}_sendEvent(){this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this._currentSlotContent}}}))}_removeEvent(){this.dispatchEvent(new CustomEvent("remove-slot-content",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}_toggleIds(){this._showIds=!this._showIds}_renderDisplaySettings(){return t.x`<div class="settings-container">
|
21
21
|
<div class="settings-row">
|
22
22
|
<div class="setting">
|
23
23
|
<div class="label-container">
|
@@ -17,18 +17,18 @@
|
|
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 { h as g } from "../task-
|
21
|
-
import "../index-
|
22
|
-
import "../index-
|
23
|
-
import "../index-
|
24
|
-
import "../index-
|
25
|
-
import "../index-
|
26
|
-
import "../index-
|
27
|
-
import {
|
28
|
-
import {
|
29
|
-
import {
|
30
|
-
import {
|
31
|
-
import {
|
20
|
+
import { h as g } from "../task-gE27tBDv.js";
|
21
|
+
import "../index-KY89MPqI.js";
|
22
|
+
import "../index-BnVt-dJY.js";
|
23
|
+
import "../index-fheP_kQJ.js";
|
24
|
+
import "../index-fzqLW5XZ.js";
|
25
|
+
import "../index-CBNsaHFy.js";
|
26
|
+
import "../index-Dku2WLRc.js";
|
27
|
+
import { r as p, x as n, L as z, n as s } from "../focusable-Dw_pMNQL.js";
|
28
|
+
import { r as h } from "../state-e2n-fyrr.js";
|
29
|
+
import { e as v } from "../query-Ddbd72Um.js";
|
30
|
+
import { O as m, p as b, v as f } from "../luzmo-icons-CmY3chvZ.js";
|
31
|
+
import { S as y, E as x } from "../sized-mixin-DMuOVsw0.js";
|
32
32
|
const c = () => {
|
33
33
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
34
34
|
const l = document.createElement("style");
|
@@ -42,8 +42,8 @@ var C = Object.defineProperty, i = (l, o, r, u) => {
|
|
42
42
|
(d = l[a]) && (t = d(o, r, t) || t);
|
43
43
|
return t && C(o, r, t), t;
|
44
44
|
};
|
45
|
-
class e extends
|
46
|
-
validSizes: Object.values(
|
45
|
+
class e extends y(z, {
|
46
|
+
validSizes: Object.values(x)
|
47
47
|
}) {
|
48
48
|
constructor() {
|
49
49
|
super(...arguments), this._loadDisplaySettings = new g(this, {
|
@@ -62,7 +62,7 @@ class e extends h(p, {
|
|
62
62
|
}, this._currentSlotContent = {};
|
63
63
|
}
|
64
64
|
static get styles() {
|
65
|
-
return [
|
65
|
+
return [p(_)];
|
66
66
|
}
|
67
67
|
willUpdate(o) {
|
68
68
|
o.has("slotContent") && (this._currentSlotContent = structuredClone(this.slotContent));
|
@@ -118,7 +118,7 @@ class e extends h(p, {
|
|
118
118
|
</div>
|
119
119
|
<div class="label-action-container">
|
120
120
|
<button class="id-button" @click=${this._toggleIds}>
|
121
|
-
${m(
|
121
|
+
${m(b)}
|
122
122
|
<luzmo-tooltip self-managed placement="top" size=${this.size}>
|
123
123
|
Show dataset and column id's
|
124
124
|
</luzmo-tooltip>
|
@@ -127,7 +127,7 @@ class e extends h(p, {
|
|
127
127
|
class="remove-button"
|
128
128
|
@click=${this._removeEvent}
|
129
129
|
>
|
130
|
-
${m(
|
130
|
+
${m(f)}
|
131
131
|
<luzmo-tooltip
|
132
132
|
self-managed
|
133
133
|
placement="top"
|
@@ -224,13 +224,13 @@ i([
|
|
224
224
|
s()
|
225
225
|
], e.prototype, "slotContent");
|
226
226
|
i([
|
227
|
-
|
227
|
+
h()
|
228
228
|
], e.prototype, "_showIds");
|
229
229
|
i([
|
230
230
|
s({ type: Array, reflect: !1 })
|
231
231
|
], e.prototype, "measureColumns");
|
232
232
|
i([
|
233
|
-
|
233
|
+
v("luzmo-multi-language-field")
|
234
234
|
], e.prototype, "_multiLanguageFieldElement");
|
235
235
|
customElements.get("luzmo-display-settings") || customElements.define("luzmo-display-settings", e);
|
236
236
|
export {
|
@@ -2,11 +2,11 @@ import '@luzmo/lucero/action-button';
|
|
2
2
|
import '@luzmo/lucero/field-label';
|
3
3
|
import '@luzmo/lucero/icon';
|
4
4
|
import '@luzmo/lucero/number-field';
|
5
|
-
import { LuzmoElement } from '@luzmo/lucero/utils';
|
6
5
|
import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
|
6
|
+
import { LuzmoElement } from '../../utils/base';
|
7
7
|
declare const LuzmoDisplaySettingsBinning_base: typeof LuzmoElement & {
|
8
|
-
new (...args: any[]): import("
|
9
|
-
prototype: import("
|
8
|
+
new (...args: any[]): import("../../utils/base/sized-mixin").SizedElementInterface;
|
9
|
+
prototype: import("../../utils/base/sized-mixin").SizedElementInterface;
|
10
10
|
};
|
11
11
|
/**
|
12
12
|
* @element luzmo-display-settings-binning
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-Bp6XY9q2.cjs");require("../index-9hGc0AF6.cjs");require("../index-B3417kqb.cjs");require("../index-CAwT4m7K.cjs");const a=require("../focusable-Cu_m_GTh.cjs"),t=require("../set-locale-ByIApH40.cjs"),d=require("../luzmo-icons-lvebt6bp.cjs"),c=require("../state-QgHgNZLe.cjs"),h=require("../query-D5qWDopr.cjs"),u=require("../sized-mixin-Cqlxwicw.cjs"),b=":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-binning-gap, var(--display-settings-binning-gap))}:host{--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=s]){--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=l]){--display-settings-binning-gap: var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-binning-gap: var(--luzmo-spacing-5)}";var p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,o=(g,i,s,n)=>{for(var e=n>1?void 0:n?m(i,s):i,l=g.length-1,r;l>=0;l--)(r=g[l])&&(e=(n?r(i,s,e):r(e))||e);return n&&e&&p(i,s,e),e};exports.LuzmoDisplaySettingsBinning=class extends u.SizedMixin(a.LuzmoElement,{validSizes:Object.values(u.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={},this._enabled=!1,this._binWidth=10}static get styles(){return[a.r(b)]}willUpdate(i){var s,n,e,l;i.has("slotContent")&&(this._enabled=((n=(s=this.slotContent)==null?void 0:s.bins)==null?void 0:n.enabled)??!1,this._binWidth=((l=(e=this.slotContent)==null?void 0:e.bins)==null?void 0:l.number)??10)}updated(i){i.has("language")&&([...t.targetLocales].includes(this.language??"en")||this.language==="en")&&t.setLocale(this.language)}toggleBinning(){this._enabled=!this._enabled,this.sendEvent()}setBinning(){this._binWidth=this.binWidthElement.value,this.sendEvent()}sendEvent(){const i={enabled:!!this._enabled,number:this._binWidth??10};this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,bins:i}}}))}renderBinWidth(){return a.x`<div class="setting">
|
21
21
|
<luzmo-field-label for="bin-width"
|
22
22
|
>${t.msg("Bin width",{desc:"The width of each bin in the histogram"})}</luzmo-field-label
|
23
23
|
>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
>
|
46
46
|
<luzmo-icon
|
47
47
|
slot="icon"
|
48
|
-
.icon=${this._enabled?
|
48
|
+
.icon=${this._enabled?d.C0:d.h0}
|
49
49
|
></luzmo-icon>
|
50
50
|
${this._enabled?t.msg("Enabled",{desc:"Option set to enabled"}):t.msg("Disabled",{desc:"Option set to disabled"})}
|
51
51
|
</luzmo-action-button>
|
@@ -17,16 +17,16 @@
|
|
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 "../index-
|
21
|
-
import "../index-
|
22
|
-
import "../index-
|
23
|
-
import "../index-
|
24
|
-
import {
|
25
|
-
import {
|
26
|
-
import {
|
27
|
-
import {
|
28
|
-
import {
|
29
|
-
import {
|
20
|
+
import "../index-C8yP7YJD.js";
|
21
|
+
import "../index-BnVt-dJY.js";
|
22
|
+
import "../index-fheP_kQJ.js";
|
23
|
+
import "../index-D8GVYuJ-.js";
|
24
|
+
import { L as z, r as g, x as m, n as c } from "../focusable-Dw_pMNQL.js";
|
25
|
+
import { t as b, s as p, m as s, l as h } from "../set-locale-DJYT4V7U.js";
|
26
|
+
import { C as f, h as v } from "../luzmo-icons-CmY3chvZ.js";
|
27
|
+
import { r as x } from "../state-e2n-fyrr.js";
|
28
|
+
import { e as y } from "../query-Ddbd72Um.js";
|
29
|
+
import { S as w, E as _ } from "../sized-mixin-DMuOVsw0.js";
|
30
30
|
const d = () => {
|
31
31
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
32
32
|
const o = document.createElement("style");
|
@@ -35,13 +35,13 @@ const d = () => {
|
|
35
35
|
};
|
36
36
|
d();
|
37
37
|
const C = ":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-binning-gap, var(--display-settings-binning-gap))}:host{--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=s]){--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=l]){--display-settings-binning-gap: var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-binning-gap: var(--luzmo-spacing-5)}";
|
38
|
-
var
|
39
|
-
for (var e = i > 1 ? void 0 : i ?
|
38
|
+
var E = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, r = (o, l, n, i) => {
|
39
|
+
for (var e = i > 1 ? void 0 : i ? $(l, n) : l, a = o.length - 1, u; a >= 0; a--)
|
40
40
|
(u = o[a]) && (e = (i ? u(l, n, e) : u(e)) || e);
|
41
|
-
return i && e &&
|
41
|
+
return i && e && E(l, n, e), e;
|
42
42
|
};
|
43
|
-
let t = class extends
|
44
|
-
validSizes: Object.values(
|
43
|
+
let t = class extends w(z, {
|
44
|
+
validSizes: Object.values(_)
|
45
45
|
}) {
|
46
46
|
constructor() {
|
47
47
|
super(...arguments), this.language = "en", this.slotContent = {}, this._enabled = !1, this._binWidth = 10;
|
@@ -54,7 +54,7 @@ let t = class extends b(z, {
|
|
54
54
|
o.has("slotContent") && (this._enabled = ((n = (l = this.slotContent) == null ? void 0 : l.bins) == null ? void 0 : n.enabled) ?? !1, this._binWidth = ((e = (i = this.slotContent) == null ? void 0 : i.bins) == null ? void 0 : e.number) ?? 10);
|
55
55
|
}
|
56
56
|
updated(o) {
|
57
|
-
o.has("language") && ([...
|
57
|
+
o.has("language") && ([...b].includes(this.language ?? "en") || this.language === "en") && p(this.language);
|
58
58
|
}
|
59
59
|
toggleBinning() {
|
60
60
|
this._enabled = !this._enabled, this.sendEvent();
|
@@ -117,7 +117,7 @@ let t = class extends b(z, {
|
|
117
117
|
>
|
118
118
|
<luzmo-icon
|
119
119
|
slot="icon"
|
120
|
-
.icon=${this._enabled ?
|
120
|
+
.icon=${this._enabled ? f : v}
|
121
121
|
></luzmo-icon>
|
122
122
|
${this._enabled ? s("Enabled", { desc: "Option set to enabled" }) : s("Disabled", { desc: "Option set to disabled" })}
|
123
123
|
</luzmo-action-button>
|
@@ -134,13 +134,13 @@ r([
|
|
134
134
|
c()
|
135
135
|
], t.prototype, "slotContent", 2);
|
136
136
|
r([
|
137
|
-
|
137
|
+
x()
|
138
138
|
], t.prototype, "_enabled", 2);
|
139
139
|
r([
|
140
|
-
|
140
|
+
y("#bin-width")
|
141
141
|
], t.prototype, "binWidthElement", 2);
|
142
142
|
t = r([
|
143
|
-
|
143
|
+
h()
|
144
144
|
], t);
|
145
145
|
customElements.get("luzmo-display-settings-binning") || customElements.define(
|
146
146
|
"luzmo-display-settings-binning",
|
@@ -5,11 +5,11 @@ import '@luzmo/lucero/icon';
|
|
5
5
|
import '@luzmo/lucero/number-field';
|
6
6
|
import '@luzmo/lucero/picker';
|
7
7
|
import '@luzmo/lucero/progress-circle';
|
8
|
-
import { ElementSize, LuzmoElement } from '@luzmo/lucero/utils';
|
9
8
|
import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
|
9
|
+
import { ElementSize, LuzmoElement } from '../../utils/base';
|
10
10
|
declare const LuzmoDisplaySettingsDatetime_base: typeof LuzmoElement & {
|
11
|
-
new (...args: any[]): import("
|
12
|
-
prototype: import("
|
11
|
+
new (...args: any[]): import("../../utils/base/sized-mixin").SizedElementInterface;
|
12
|
+
prototype: import("../../utils/base/sized-mixin").SizedElementInterface;
|
13
13
|
};
|
14
14
|
/**
|
15
15
|
* @element luzmo-display-settings-datetime
|