@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,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("./base-D76d76ww-
|
20
|
+
"use strict";const s=require("./base-D76d76ww-BEIhYtgV.cjs"),c=require("./if-defined-D-1p2bLN-0_AoRnT2.cjs"),u=require("./focusable-BNESohBR-DbTLvYXr.cjs"),h=require("./observe-slot-text-CVKLDesL-BB2RmFgc.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 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=(
|
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=(r,e,t,b)=>{for(var i=void 0,o=r.length-1,l;o>=0;o--)(l=r[o])&&(i=l(e,t,i)||i);return i&&d(e,t,i),i};class n 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.at(p)]}get focusElement(){return this}get hasLabel(){return this.slotHasContent}get buttonContent(){return[s.Rt` <slot name="icon" ?icon-only=${!this.hasLabel}></slot> `,s.Rt`
|
37
37
|
<span id="label">
|
38
38
|
<slot @slotchange=${this.manageTextObservedSlot}></slot>
|
39
39
|
</span>
|
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.
|
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.Rt`
|
41
41
|
${this.buttonContent}
|
42
42
|
${super.renderAnchor({id:"button",ariaHidden:!0,className:"button anchor hidden"})}
|
43
|
-
`}renderButton(){return s.
|
43
|
+
`}renderButton(){return s.Rt` ${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.Dt({type:Boolean,reflect:!0})],n.prototype,"active");a([s.Dt({type:String})],n.prototype,"type");a([c.d(".anchor")],n.prototype,"anchorElement");exports.a=n;
|
@@ -17,10 +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 {
|
21
|
-
import { d as u } from "./if-defined-
|
22
|
-
import { r as p } from "./focusable-
|
23
|
-
import { y as d, b } from "./observe-slot-text-
|
20
|
+
import { a as c, R as i, D as h } from "./base-D76d76ww-D0dTUBua.js";
|
21
|
+
import { d as u } from "./if-defined-D-1p2bLN-Bn-33APC.js";
|
22
|
+
import { r as p } from "./focusable-BNESohBR-DYvAZYXL.js";
|
23
|
+
import { y as d, b } from "./observe-slot-text-CVKLDesL-CXUeCmXW.js";
|
24
24
|
/*! * Lucero - The design system for Luzmo.
|
25
25
|
*
|
26
26
|
* Copyright © 2025 Luzmo
|
package/components/{checkbox-mixin-BFGTmw17-C1tjSMaa.js → checkbox-mixin-CmeCReJh-C94-rm4F.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 {
|
21
|
-
import { d as a, m as p } from "./if-defined-
|
20
|
+
import { D as i, R as d } from "./base-D76d76ww-D0dTUBua.js";
|
21
|
+
import { d as a, m as p } from "./if-defined-D-1p2bLN-Bn-33APC.js";
|
22
22
|
/*! * Lucero - The design system for Luzmo.
|
23
23
|
*
|
24
24
|
* Copyright © 2025 Luzmo
|
package/components/{checkbox-mixin-BFGTmw17-DF2p-vSz.cjs → checkbox-mixin-CmeCReJh-wY0R8cuc.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("./base-D76d76ww-
|
20
|
+
"use strict";const c=require("./base-D76d76ww-BEIhYtgV.cjs"),o=require("./if-defined-D-1p2bLN-0_AoRnT2.cjs");/*! * Lucero - The design system for Luzmo.
|
21
21
|
*
|
22
22
|
* Copyright © 2025 Luzmo
|
23
23
|
* All rights reserved.
|
@@ -33,7 +33,7 @@
|
|
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
|
36
|
+
* */var a=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&&a(e,h,t),t};function u(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.Rt`
|
37
37
|
<input
|
38
38
|
id="input"
|
39
39
|
name=${o.m(this.name||void 0)}
|
@@ -42,4 +42,4 @@
|
|
42
42
|
?disabled=${this.readonly}
|
43
43
|
@change=${this.handleChange}
|
44
44
|
/>
|
45
|
-
`}}return r([c.
|
45
|
+
`}}return r([c.Dt({type:Boolean,reflect:!0})],e.prototype,"checked"),r([c.Dt({type:String,reflect:!0})],e.prototype,"name"),r([c.Dt({type:Boolean,reflect:!0})],e.prototype,"readonly"),r([o.d("#input")],e.prototype,"inputElement"),e}exports.k=u;
|
@@ -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("./base-D76d76ww-
|
20
|
+
"use strict";const i=require("./base-D76d76ww-BEIhYtgV.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(s){return i.
|
40
|
+
*/function n(s){return i.Dt({...s,state:!0,attribute:!1})}/*! * Lucero - The design system for Luzmo.
|
41
41
|
*
|
42
42
|
* Copyright © 2025 Luzmo
|
43
43
|
* All rights reserved.
|
package/components/{directive-helpers-nlQRAaQt-DgSC1Yr2.js → directive-helpers-Bx_ey3Gk-Csi4AxXe.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 {
|
20
|
+
import { D as i } from "./base-D76d76ww-D0dTUBua.js";
|
21
21
|
/*! * Lucero - The design system for Luzmo.
|
22
22
|
*
|
23
23
|
* Copyright © 2025 Luzmo
|
@@ -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-fQFUVV8e.cjs");require("../index-
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../task-fQFUVV8e.cjs");require("../index-0HUnZcem.cjs");require("../index-C9-QEfA9.cjs");require("../index-CVuJ-LUO.cjs");require("../index-BkCJwWm3.cjs");require("../index-C2-2RrwB.cjs");require("../index-_McOOiwL.cjs");const t=require("../focusable-Cu_m_GTh.cjs"),c=require("../state-QgHgNZLe.cjs"),m=require("../query-D5qWDopr.cjs"),a=require("../luzmo-icons-BDClm1AE.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">
|
@@ -18,16 +18,16 @@
|
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
20
|
import { h as g } from "../task-gE27tBDv.js";
|
21
|
-
import "../index-
|
22
|
-
import "../index-
|
23
|
-
import "../index-
|
24
|
-
import "../index-
|
25
|
-
import "../index-
|
26
|
-
import "../index-
|
21
|
+
import "../index-fl13NYnO.js";
|
22
|
+
import "../index-DJik7S7b.js";
|
23
|
+
import "../index-B3jkBlKY.js";
|
24
|
+
import "../index-BnbhRpm9.js";
|
25
|
+
import "../index-CbeVu32V.js";
|
26
|
+
import "../index-CqFCIIIl.js";
|
27
27
|
import { r as p, x as n, L as z, n as s } from "../focusable-Dw_pMNQL.js";
|
28
28
|
import { r as h } from "../state-e2n-fyrr.js";
|
29
29
|
import { e as v } from "../query-Ddbd72Um.js";
|
30
|
-
import {
|
30
|
+
import { f as m, p as b, v as f } from "../luzmo-icons-U09GB75o.js";
|
31
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]")) {
|
@@ -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-CF84gqsb.cjs");require("../index-C9-QEfA9.cjs");require("../index-CVuJ-LUO.cjs");require("../index-bZQXFqxv.cjs");const a=require("../focusable-Cu_m_GTh.cjs"),t=require("../set-locale-ByIApH40.cjs"),d=require("../luzmo-icons-BDClm1AE.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
|
>
|
@@ -17,13 +17,13 @@
|
|
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-
|
20
|
+
import "../index-DZZMSlYS.js";
|
21
|
+
import "../index-DJik7S7b.js";
|
22
|
+
import "../index-B3jkBlKY.js";
|
23
|
+
import "../index-Bb8vxGZY.js";
|
24
24
|
import { L as z, r as g, x as m, n as c } from "../focusable-Dw_pMNQL.js";
|
25
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-
|
26
|
+
import { C as f, h as v } from "../luzmo-icons-U09GB75o.js";
|
27
27
|
import { r as x } from "../state-e2n-fyrr.js";
|
28
28
|
import { e as y } from "../query-Ddbd72Um.js";
|
29
29
|
import { S as w, E as _ } from "../sized-mixin-DMuOVsw0.js";
|
@@ -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 g=require("../task-fQFUVV8e.cjs");require("../index-Bp6XY9q2.cjs");require("../index-BIauj-BP.cjs");require("../index-9hGc0AF6.cjs");require("../index-B3417kqb.cjs");require("../index-CAwT4m7K.cjs");require("../index-mB-t2zP2.cjs");require("../index-BIcAxPGg.cjs");const s=require("../focusable-Cu_m_GTh.cjs"),i=require("../set-locale-ByIApH40.cjs"),d=require("../luzmo-icons-lvebt6bp.cjs"),m=require("../formatter-DiJYkB6b.cjs"),h=require("../periods.const-CDIkC5CK.cjs"),l=require("../query-D5qWDopr.cjs"),p=require("../sized-mixin-Cqlxwicw.cjs"),c={"~":()=>i.msg("Auto",{desc:"Automatic setting of the option"}),"/":()=>"/","-":()=>"-",".":()=>"."},f=":host{font-family:var(--luzmo-display-settings-datetime-font-family, var(--luzmo-font-family))}: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-datetime-gap, var(--display-settings-datetime-gap))}:host .example-container{line-height:var(--luzmo-display-settings-datetime-example-height, var(--display-settings-datetime-example-height));font-size:var(--luzmo-display-settings-datetime-example-font-size, var(--display-settings-datetime-example-font-size));color:var(--luzmo-display-settings-datetime-example-color, var(--display-settings-datetime-example-color))}:host .example-container .example-label{font-weight:var(--luzmo-display-settings-datetime-example-label-font-weight, var(--display-settings-datetime-example-label-font-weight));color:var(--luzmo-display-settings-datetime-example-label-color, var(--display-settings-datetime-example-label-color))}:host .example-container .example-language{text-transform:uppercase;color:var(--luzmo-display-settings-datetime-example-language-color, var(--display-settings-datetime-example-language-color))}:host{--display-settings-datetime-example-font-size: var(--luzmo-font-size);--display-settings-datetime-example-color: var(--luzmo-font-color);--display-settings-datetime-example-label-font-weight: bold;--display-settings-datetime-example-label-color: var(--luzmo-primary);--display-settings-datetime-example-language-color: var(--luzmo-primary)}:host{--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=s]){--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height-s);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=l]){--display-settings-datetime-gap: var(--luzmo-spacing-4);--display-settings-datetime-example-height: var(--luzmo-component-height-l);--display-settings-datetime-example-font-size: var(--luzmo-font-size)}:host([size=xl]){--display-settings-datetime-gap: var(--luzmo-spacing-5);--display-settings-datetime-example-height: var(--luzmo-component-height-xl);--display-settings-datetime-example-font-size: var(--luzmo-font-size-l)}";var y=Object.defineProperty,z=Object.getOwnPropertyDescriptor,r=(u,e,t,o)=>{for(var a=o>1?void 0:o?z(e,t):e,n=u.length-1,_;n>=0;n--)(_=u[n])&&(a=(o?_(e,t,a):_(a))||a);return o&&a&&y(e,t,a),a};exports.LuzmoDisplaySettingsDatetime=class extends p.SizedMixin(s.LuzmoElement,{validSizes:Object.values(p.ElementSizes)}){constructor(){super(...arguments),this._loadLocaleFormatsConfig=new g.h(this,{task:async([e])=>{if(e&&e!==this._contentLanguageLoaded){const t=Object.assign({"../../utils/formatter/formats/cs.ts":()=>Promise.resolve().then(()=>require("../cs-I9E81keK.cjs")),"../../utils/formatter/formats/da.ts":()=>Promise.resolve().then(()=>require("../da-QkdvupDg.cjs")),"../../utils/formatter/formats/de.ts":()=>Promise.resolve().then(()=>require("../de-Dn5mUzha.cjs")),"../../utils/formatter/formats/en-GB.ts":()=>Promise.resolve().then(()=>require("../en-GB-Dd11ROdW.cjs")),"../../utils/formatter/formats/en-US.ts":()=>Promise.resolve().then(()=>v),"../../utils/formatter/formats/en.ts":()=>Promise.resolve().then(()=>S),"../../utils/formatter/formats/es.ts":()=>Promise.resolve().then(()=>require("../es-CwyPlN5d.cjs")),"../../utils/formatter/formats/fi.ts":()=>Promise.resolve().then(()=>require("../fi-rijeZE5V.cjs")),"../../utils/formatter/formats/fr.ts":()=>Promise.resolve().then(()=>require("../fr-BcgE-6S_.cjs")),"../../utils/formatter/formats/he.ts":()=>Promise.resolve().then(()=>require("../he-O6Ih8Bqh.cjs")),"../../utils/formatter/formats/hu.ts":()=>Promise.resolve().then(()=>require("../hu-BnZ8y3xQ.cjs")),"../../utils/formatter/formats/it.ts":()=>Promise.resolve().then(()=>require("../it-PshtLMkq.cjs")),"../../utils/formatter/formats/ja.ts":()=>Promise.resolve().then(()=>require("../ja-KIS2HdaG.cjs")),"../../utils/formatter/formats/ko.ts":()=>Promise.resolve().then(()=>require("../ko--l4qmjLV.cjs")),"../../utils/formatter/formats/mk.ts":()=>Promise.resolve().then(()=>require("../mk-DZlj-edb.cjs")),"../../utils/formatter/formats/nl.ts":()=>Promise.resolve().then(()=>require("../nl-BKlDqOXb.cjs")),"../../utils/formatter/formats/no.ts":()=>Promise.resolve().then(()=>require("../no-D_SzxhTu.cjs")),"../../utils/formatter/formats/pl.ts":()=>Promise.resolve().then(()=>require("../pl-PIK23rK_.cjs")),"../../utils/formatter/formats/pt.ts":()=>Promise.resolve().then(()=>require("../pt-Dqlu4MS5.cjs")),"../../utils/formatter/formats/ru.ts":()=>Promise.resolve().then(()=>require("../ru-zyNDTB04.cjs")),"../../utils/formatter/formats/sv.ts":()=>Promise.resolve().then(()=>require("../sv-1DPTltNQ.cjs")),"../../utils/formatter/formats/tr.ts":()=>Promise.resolve().then(()=>require("../tr-BkmWvOG2.cjs")),"../../utils/formatter/formats/zh-CN.ts":()=>Promise.resolve().then(()=>require("../zh-CN-DTZ4OmdP.cjs")),"../../utils/formatter/formats/zh-TW.ts":()=>Promise.resolve().then(()=>require("../zh-TW-DTZ4OmdP.cjs"))});if(t[`../../utils/formatter/formats/${e}.ts`]){const o=await t[`../../utils/formatter/formats/${e}.ts`]();this._localeFormats=(o==null?void 0:o.default)??{}}return this._contentLanguageLoaded=e,this._localeFormats}},args:()=>[this.contentLanguage]}),this.language="en",this.contentLanguage="en",this.size="m",this.slotContent={},this._dateLevel=5,this._displayAs="default",this._weekStart="monday",this._weekDayAndMonthInYearFormat="long",this._dateFormat="auto",this._dateSeparator="~",this._sendEvent=()=>{this._calculateSlotContent(),this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}}static get styles(){return[s.r(f)]}_parseSlotContent(){var e,t;this._dateLevel=this.slotContent.level??((e=this.slotContent)==null?void 0:e.lowestLevel)??5,this._displayAs=((t=this.slotContent)==null?void 0:t.datetimeDisplayMode)??"default",this._displayAs==="weekday_number"&&(this._displayAs="day_in_week",this._weekDayAndMonthInYearFormat="number"),this._displayAs==="weekday_name"&&(this._displayAs="day_in_week"),this._displayAs==="month_number"&&(this._displayAs="month_in_year",this._weekDayAndMonthInYearFormat="number"),this._displayAs==="month_name"&&(this._displayAs="month_in_year")}_calculateFormat(){var o;let e;const t=((o=this._localeFormats)==null?void 0:o.smartDateFormats)??m.SMART_DATE_FORMATS;this._monthName?(e=t.filter(a=>a.monthType==="name"&&a.longText===(this._monthNameFormat==="long")&&a.weekday===this._weekDay),e.length>0?this._format=e[0].key:(this._weekDayAndMonthInYearFormat="short",this._weekDay=!0,this._format="%a %e %B %Y")):(e=this._dateLevel&&this._dateLevel===4?t.filter(a=>a.monthType==="number"&&a.mmdd===(this._weekFormat==="mmdd"?!0:this._weekFormat==="ddmm"?!1:null)&&a.separator===this._dateSeparator):t.filter(a=>a.monthType==="number"&&a.mmdd===(this._dateFormat==="mmdd"?!0:this._dateFormat==="ddmm"?!1:null)&&a.separator===this._dateSeparator),this._dateFormat==="auto"&&this._dateLevel&&this._dateLevel!==4?this._format="%amd"+this._dateSeparator+"%Y":e.length>0?this._format=e[0].key:(this._dateFormat="ddmm",this._dateSeparator="/",this._format="%d/%m/%Y")),this._dateLevel&&this._dateLevel>5&&(this._format+=this._24hFormat?" %H:%M:%S.%L":" %I:%M:%S.%L %p")}_setWeekStartsOn(){this._weekStart=this._weekStartElement.value,this._sendEvent(),this.requestUpdate()}_setDisplayAs(){this._displayAs=this._displayAsElement.value,this._sendEvent(),this.requestUpdate()}_setWeekdayAndMonthInYearFormat(){var e;this._weekDayAndMonthInYearFormat=((e=this._weekDayAndMonthInYearFormatElement.selected)==null?void 0:e[0])??"long",this._sendEvent(),this.requestUpdate()}_setMonthNameFormat(){var e;this._monthNameFormat=(e=this._monthNameFormatElement.selected)==null?void 0:e[0],this._sendEvent(),this.requestUpdate()}_setMonthName(){this._monthName=this._monthNameElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekFormat(){var e;this._weekFormat=(e=this._weekFormatElement.selected)==null?void 0:e[0],this._sendEvent(),this.requestUpdate()}_setDateFormat(){this._dateFormat=this._dateFormatElement.value,this._sendEvent(),this.requestUpdate()}_setDateSeparator(){this._dateSeparator=this._dateSeparatorElement.value,this._sendEvent(),this.requestUpdate()}_set24hFormat(){this._24hFormat=this._format24hElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekday(){this._weekDay=this._weekDayElement.selected,this._sendEvent(),this.requestUpdate()}_calculateSlotContent(){this._currentSlotContent={...this.slotContent},this._calculateFormat(),this._currentSlotContent.format=this._format,this._displayAs==="default"?delete this._currentSlotContent.datetimeDisplayMode:(this._currentSlotContent.datetimeDisplayMode=this._displayAs,this._displayAs==="week_in_year"?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"week_number":"week_name":this._displayAs==="month_in_year"?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"month_number":"month_name":this._displayAs==="day_in_week"&&(this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"weekday_number":"weekday_name",this._currentSlotContent.weekStart=this._weekStart),this._weekDayAndMonthInYearFormat&&(this._dateLevel===3?this._currentSlotContent.monthNameFormat=this._weekDayAndMonthInYearFormat:this._dateLevel===5&&(this._currentSlotContent.weekDayNameFormat=this._weekDayAndMonthInYearFormat)))}willUpdate(e){e.has("slotContent")&&(this._parseSlotContent(),this._calculateSlotContent()),e.has("language")&&([...i.targetLocales].includes(this.language)||this.language==="en")&&(i.setLocale(this.language),this.requestUpdate())}_renderDisplaySettings(){var t,o;const e=(o=(t=h.DATETIME_AS_STRING_FORMATS_PER_LEVEL)==null?void 0:t[`level${this._dateLevel??0}`])==null?void 0:o.map(a=>s.x`<luzmo-menu-item value=${a.key}>
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../task-fQFUVV8e.cjs");require("../index-CF84gqsb.cjs");require("../index-BKcvEgWr.cjs");require("../index-C9-QEfA9.cjs");require("../index-CVuJ-LUO.cjs");require("../index-bZQXFqxv.cjs");require("../index-CqynTbW1.cjs");require("../index-C2-2RrwB.cjs");const s=require("../focusable-Cu_m_GTh.cjs"),i=require("../set-locale-ByIApH40.cjs"),d=require("../luzmo-icons-BDClm1AE.cjs"),m=require("../formatter-DiJYkB6b.cjs"),h=require("../periods.const-CDIkC5CK.cjs"),l=require("../query-D5qWDopr.cjs"),p=require("../sized-mixin-Cqlxwicw.cjs"),c={"~":()=>i.msg("Auto",{desc:"Automatic setting of the option"}),"/":()=>"/","-":()=>"-",".":()=>"."},f=":host{font-family:var(--luzmo-display-settings-datetime-font-family, var(--luzmo-font-family))}: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-datetime-gap, var(--display-settings-datetime-gap))}:host .example-container{line-height:var(--luzmo-display-settings-datetime-example-height, var(--display-settings-datetime-example-height));font-size:var(--luzmo-display-settings-datetime-example-font-size, var(--display-settings-datetime-example-font-size));color:var(--luzmo-display-settings-datetime-example-color, var(--display-settings-datetime-example-color))}:host .example-container .example-label{font-weight:var(--luzmo-display-settings-datetime-example-label-font-weight, var(--display-settings-datetime-example-label-font-weight));color:var(--luzmo-display-settings-datetime-example-label-color, var(--display-settings-datetime-example-label-color))}:host .example-container .example-language{text-transform:uppercase;color:var(--luzmo-display-settings-datetime-example-language-color, var(--display-settings-datetime-example-language-color))}:host{--display-settings-datetime-example-font-size: var(--luzmo-font-size);--display-settings-datetime-example-color: var(--luzmo-font-color);--display-settings-datetime-example-label-font-weight: bold;--display-settings-datetime-example-label-color: var(--luzmo-primary);--display-settings-datetime-example-language-color: var(--luzmo-primary)}:host{--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=s]){--display-settings-datetime-gap: var(--luzmo-spacing-3);--display-settings-datetime-example-height: var(--luzmo-component-height-s);--display-settings-datetime-example-font-size: var(--luzmo-font-size-s)}:host([size=l]){--display-settings-datetime-gap: var(--luzmo-spacing-4);--display-settings-datetime-example-height: var(--luzmo-component-height-l);--display-settings-datetime-example-font-size: var(--luzmo-font-size)}:host([size=xl]){--display-settings-datetime-gap: var(--luzmo-spacing-5);--display-settings-datetime-example-height: var(--luzmo-component-height-xl);--display-settings-datetime-example-font-size: var(--luzmo-font-size-l)}";var y=Object.defineProperty,z=Object.getOwnPropertyDescriptor,r=(u,e,t,o)=>{for(var a=o>1?void 0:o?z(e,t):e,n=u.length-1,_;n>=0;n--)(_=u[n])&&(a=(o?_(e,t,a):_(a))||a);return o&&a&&y(e,t,a),a};exports.LuzmoDisplaySettingsDatetime=class extends p.SizedMixin(s.LuzmoElement,{validSizes:Object.values(p.ElementSizes)}){constructor(){super(...arguments),this._loadLocaleFormatsConfig=new g.h(this,{task:async([e])=>{if(e&&e!==this._contentLanguageLoaded){const t=Object.assign({"../../utils/formatter/formats/cs.ts":()=>Promise.resolve().then(()=>require("../cs-I9E81keK.cjs")),"../../utils/formatter/formats/da.ts":()=>Promise.resolve().then(()=>require("../da-QkdvupDg.cjs")),"../../utils/formatter/formats/de.ts":()=>Promise.resolve().then(()=>require("../de-Dn5mUzha.cjs")),"../../utils/formatter/formats/en-GB.ts":()=>Promise.resolve().then(()=>require("../en-GB-Dd11ROdW.cjs")),"../../utils/formatter/formats/en-US.ts":()=>Promise.resolve().then(()=>v),"../../utils/formatter/formats/en.ts":()=>Promise.resolve().then(()=>S),"../../utils/formatter/formats/es.ts":()=>Promise.resolve().then(()=>require("../es-CwyPlN5d.cjs")),"../../utils/formatter/formats/fi.ts":()=>Promise.resolve().then(()=>require("../fi-rijeZE5V.cjs")),"../../utils/formatter/formats/fr.ts":()=>Promise.resolve().then(()=>require("../fr-BcgE-6S_.cjs")),"../../utils/formatter/formats/he.ts":()=>Promise.resolve().then(()=>require("../he-O6Ih8Bqh.cjs")),"../../utils/formatter/formats/hu.ts":()=>Promise.resolve().then(()=>require("../hu-BnZ8y3xQ.cjs")),"../../utils/formatter/formats/it.ts":()=>Promise.resolve().then(()=>require("../it-PshtLMkq.cjs")),"../../utils/formatter/formats/ja.ts":()=>Promise.resolve().then(()=>require("../ja-KIS2HdaG.cjs")),"../../utils/formatter/formats/ko.ts":()=>Promise.resolve().then(()=>require("../ko--l4qmjLV.cjs")),"../../utils/formatter/formats/mk.ts":()=>Promise.resolve().then(()=>require("../mk-DZlj-edb.cjs")),"../../utils/formatter/formats/nl.ts":()=>Promise.resolve().then(()=>require("../nl-BKlDqOXb.cjs")),"../../utils/formatter/formats/no.ts":()=>Promise.resolve().then(()=>require("../no-D_SzxhTu.cjs")),"../../utils/formatter/formats/pl.ts":()=>Promise.resolve().then(()=>require("../pl-PIK23rK_.cjs")),"../../utils/formatter/formats/pt.ts":()=>Promise.resolve().then(()=>require("../pt-Dqlu4MS5.cjs")),"../../utils/formatter/formats/ru.ts":()=>Promise.resolve().then(()=>require("../ru-zyNDTB04.cjs")),"../../utils/formatter/formats/sv.ts":()=>Promise.resolve().then(()=>require("../sv-1DPTltNQ.cjs")),"../../utils/formatter/formats/tr.ts":()=>Promise.resolve().then(()=>require("../tr-BkmWvOG2.cjs")),"../../utils/formatter/formats/zh-CN.ts":()=>Promise.resolve().then(()=>require("../zh-CN-DTZ4OmdP.cjs")),"../../utils/formatter/formats/zh-TW.ts":()=>Promise.resolve().then(()=>require("../zh-TW-DTZ4OmdP.cjs"))});if(t[`../../utils/formatter/formats/${e}.ts`]){const o=await t[`../../utils/formatter/formats/${e}.ts`]();this._localeFormats=(o==null?void 0:o.default)??{}}return this._contentLanguageLoaded=e,this._localeFormats}},args:()=>[this.contentLanguage]}),this.language="en",this.contentLanguage="en",this.size="m",this.slotContent={},this._dateLevel=5,this._displayAs="default",this._weekStart="monday",this._weekDayAndMonthInYearFormat="long",this._dateFormat="auto",this._dateSeparator="~",this._sendEvent=()=>{this._calculateSlotContent(),this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}}static get styles(){return[s.r(f)]}_parseSlotContent(){var e,t;this._dateLevel=this.slotContent.level??((e=this.slotContent)==null?void 0:e.lowestLevel)??5,this._displayAs=((t=this.slotContent)==null?void 0:t.datetimeDisplayMode)??"default",this._displayAs==="weekday_number"&&(this._displayAs="day_in_week",this._weekDayAndMonthInYearFormat="number"),this._displayAs==="weekday_name"&&(this._displayAs="day_in_week"),this._displayAs==="month_number"&&(this._displayAs="month_in_year",this._weekDayAndMonthInYearFormat="number"),this._displayAs==="month_name"&&(this._displayAs="month_in_year")}_calculateFormat(){var o;let e;const t=((o=this._localeFormats)==null?void 0:o.smartDateFormats)??m.SMART_DATE_FORMATS;this._monthName?(e=t.filter(a=>a.monthType==="name"&&a.longText===(this._monthNameFormat==="long")&&a.weekday===this._weekDay),e.length>0?this._format=e[0].key:(this._weekDayAndMonthInYearFormat="short",this._weekDay=!0,this._format="%a %e %B %Y")):(e=this._dateLevel&&this._dateLevel===4?t.filter(a=>a.monthType==="number"&&a.mmdd===(this._weekFormat==="mmdd"?!0:this._weekFormat==="ddmm"?!1:null)&&a.separator===this._dateSeparator):t.filter(a=>a.monthType==="number"&&a.mmdd===(this._dateFormat==="mmdd"?!0:this._dateFormat==="ddmm"?!1:null)&&a.separator===this._dateSeparator),this._dateFormat==="auto"&&this._dateLevel&&this._dateLevel!==4?this._format="%amd"+this._dateSeparator+"%Y":e.length>0?this._format=e[0].key:(this._dateFormat="ddmm",this._dateSeparator="/",this._format="%d/%m/%Y")),this._dateLevel&&this._dateLevel>5&&(this._format+=this._24hFormat?" %H:%M:%S.%L":" %I:%M:%S.%L %p")}_setWeekStartsOn(){this._weekStart=this._weekStartElement.value,this._sendEvent(),this.requestUpdate()}_setDisplayAs(){this._displayAs=this._displayAsElement.value,this._sendEvent(),this.requestUpdate()}_setWeekdayAndMonthInYearFormat(){var e;this._weekDayAndMonthInYearFormat=((e=this._weekDayAndMonthInYearFormatElement.selected)==null?void 0:e[0])??"long",this._sendEvent(),this.requestUpdate()}_setMonthNameFormat(){var e;this._monthNameFormat=(e=this._monthNameFormatElement.selected)==null?void 0:e[0],this._sendEvent(),this.requestUpdate()}_setMonthName(){this._monthName=this._monthNameElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekFormat(){var e;this._weekFormat=(e=this._weekFormatElement.selected)==null?void 0:e[0],this._sendEvent(),this.requestUpdate()}_setDateFormat(){this._dateFormat=this._dateFormatElement.value,this._sendEvent(),this.requestUpdate()}_setDateSeparator(){this._dateSeparator=this._dateSeparatorElement.value,this._sendEvent(),this.requestUpdate()}_set24hFormat(){this._24hFormat=this._format24hElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekday(){this._weekDay=this._weekDayElement.selected,this._sendEvent(),this.requestUpdate()}_calculateSlotContent(){this._currentSlotContent={...this.slotContent},this._calculateFormat(),this._currentSlotContent.format=this._format,this._displayAs==="default"?delete this._currentSlotContent.datetimeDisplayMode:(this._currentSlotContent.datetimeDisplayMode=this._displayAs,this._displayAs==="week_in_year"?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"week_number":"week_name":this._displayAs==="month_in_year"?this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"month_number":"month_name":this._displayAs==="day_in_week"&&(this._currentSlotContent.datetimeDisplayMode=this._weekDayAndMonthInYearFormat==="number"?"weekday_number":"weekday_name",this._currentSlotContent.weekStart=this._weekStart),this._weekDayAndMonthInYearFormat&&(this._dateLevel===3?this._currentSlotContent.monthNameFormat=this._weekDayAndMonthInYearFormat:this._dateLevel===5&&(this._currentSlotContent.weekDayNameFormat=this._weekDayAndMonthInYearFormat)))}willUpdate(e){e.has("slotContent")&&(this._parseSlotContent(),this._calculateSlotContent()),e.has("language")&&([...i.targetLocales].includes(this.language)||this.language==="en")&&(i.setLocale(this.language),this.requestUpdate())}_renderDisplaySettings(){var t,o;const e=(o=(t=h.DATETIME_AS_STRING_FORMATS_PER_LEVEL)==null?void 0:t[`level${this._dateLevel??0}`])==null?void 0:o.map(a=>s.x`<luzmo-menu-item value=${a.key}>
|
21
21
|
${a.i18n()}
|
22
22
|
</luzmo-menu-item>`);return s.x`<div class="setting">
|
23
23
|
<luzmo-field-label for="display-as"
|
@@ -18,16 +18,16 @@
|
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
20
|
import { h as S } from "../task-gE27tBDv.js";
|
21
|
-
import "../index-
|
22
|
-
import "../index-
|
23
|
-
import "../index-
|
24
|
-
import "../index-
|
25
|
-
import "../index-
|
26
|
-
import "../index-
|
27
|
-
import "../index-
|
21
|
+
import "../index-DZZMSlYS.js";
|
22
|
+
import "../index-B9dQtvu7.js";
|
23
|
+
import "../index-DJik7S7b.js";
|
24
|
+
import "../index-B3jkBlKY.js";
|
25
|
+
import "../index-Bb8vxGZY.js";
|
26
|
+
import "../index-DFnzlbHX.js";
|
27
|
+
import "../index-CbeVu32V.js";
|
28
28
|
import { L as k, r as x, x as a, n as d } from "../focusable-Dw_pMNQL.js";
|
29
29
|
import { m as i, t as w, s as F, l as $ } from "../set-locale-DJYT4V7U.js";
|
30
|
-
import { C as p, h as c } from "../luzmo-icons-
|
30
|
+
import { C as p, h as c } from "../luzmo-icons-U09GB75o.js";
|
31
31
|
import { S as f, f as _, D as v } from "../formatter-CQDms6fU.js";
|
32
32
|
import { a as A, b as z, W as g } from "../periods.const-GHh5bPfs.js";
|
33
33
|
import { e as n } from "../query-Ddbd72Um.js";
|
@@ -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-CF84gqsb.cjs");require("../index-C9-QEfA9.cjs");require("../index-CVuJ-LUO.cjs");const l=require("../focusable-Cu_m_GTh.cjs"),n=require("../set-locale-ByIApH40.cjs"),g=require("../luzmo-icons-BDClm1AE.cjs"),c=require("../state-QgHgNZLe.cjs"),p=require("../if-defined-CF8baNdl.cjs"),u=require("../sized-mixin-Cqlxwicw.cjs"),m=":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-grand-totals-gap, var(--display-settings-grand-totals-gap))}:host{--display-settings-grand-totals-gap: var(--luzmo-spacing-3)}:host([size=s]){--display-settings-grand-totals-gap: var(--luzmo-spacing-3)}:host([size=l]){--display-settings-grand-totals-gap: var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-grand-totals-gap: var(--luzmo-spacing-5)}";var z=Object.defineProperty,h=Object.getOwnPropertyDescriptor,i=(o,t,a,e)=>{for(var s=e>1?void 0:e?h(t,a):t,r=o.length-1,d;r>=0;r--)(d=o[r])&&(s=(e?d(t,a,s):d(s))||s);return e&&s&&z(t,a,s),s};exports.LuzmoDisplaySettingsGrandTotals=class extends u.SizedMixin(l.LuzmoElement,{validSizes:Object.values(u.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={}}static get styles(){return[l.r(m)]}willUpdate(t){var a,e;t.has("slotContent")&&(this._enabled=((e=(a=this.slotContent)==null?void 0:a.grandTotals)==null?void 0:e.enabled)??!1)}updated(t){t.has("language")&&([...n.targetLocales].includes(this.language??"en")||this.language==="en")&&n.setLocale(this.language)}toggleGrandTotals(){this._enabled=!this._enabled,this.sendEvent()}sendEvent(){const t={enabled:!!this._enabled};this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,grandTotals:t}}}))}render(){return l.x`<div class="settings-container">
|
21
21
|
<div class="settings-row">
|
22
22
|
<div class="setting">
|
23
23
|
<luzmo-field-label for="grand-totals"
|
@@ -17,12 +17,12 @@
|
|
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-
|
20
|
+
import "../index-DZZMSlYS.js";
|
21
|
+
import "../index-DJik7S7b.js";
|
22
|
+
import "../index-B3jkBlKY.js";
|
23
23
|
import { L as d, r as z, x as g, n as m } from "../focusable-Dw_pMNQL.js";
|
24
24
|
import { t as p, s as b, m as u, l as f } from "../set-locale-DJYT4V7U.js";
|
25
|
-
import { C as h, h as v } from "../luzmo-icons-
|
25
|
+
import { C as h, h as v } from "../luzmo-icons-U09GB75o.js";
|
26
26
|
import { r as x } from "../state-e2n-fyrr.js";
|
27
27
|
import { o as y } from "../if-defined-DbhS35z5.js";
|
28
28
|
import { S as w, E as C } from "../sized-mixin-DMuOVsw0.js";
|
@@ -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 s=require("../set-locale-ByIApH40.cjs");require("../index-
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../set-locale-ByIApH40.cjs");require("../index-CF84gqsb.cjs");require("../index-BKcvEgWr.cjs");require("../index-C9-QEfA9.cjs");require("../index-D5rT-qy9.cjs");require("../index-bZQXFqxv.cjs");require("../index-CqynTbW1.cjs");require("../index-D8Na-686.cjs");const v=require("../decompose-numeric-format-B3rVVHpO.cjs"),a=require("../focusable-Cu_m_GTh.cjs"),f=require("../luzmo-icons-BDClm1AE.cjs"),b=require("../index-Bwxvaqxq.cjs"),S=require("../state-QgHgNZLe.cjs"),m=require("../query-D5qWDopr.cjs"),y=require("../sized-mixin-Cqlxwicw.cjs"),A=":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))}: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 )}",D={sum:()=>s.msg("Sum",{desc:"Numeric Aggregation option"}),cumulativesum:()=>s.msg("Cumulative sum",{desc:"Numeric Aggregation option"}),average:()=>s.msg("Average",{desc:"Numeric Aggregation option"}),weightedaverage:()=>s.msg("Weighted average",{desc:"Numeric Aggregation option"}),median:()=>s.msg("Median",{desc:"Numeric Aggregation option"}),count:()=>s.msg("Count",{desc:"Numeric Aggregation option"}),distinctcount:()=>s.msg("Distinct count",{desc:"Numeric Aggregation option"}),min:()=>s.msg("Minimum",{desc:"Numeric Aggregation option"}),max:()=>s.msg("Maximum",{desc:"Numeric Aggregation option"}),stddev:()=>s.msg("Standard deviation",{desc:"Numeric Aggregation option"}),rate:()=>s.msg("Rate",{desc:"Numeric Aggregation option"})},z={general:"123",percentage:"%",scientific:"SI"},L={time:()=>s.msg("Time",{desc:"Time format option"}),short:()=>s.msg("Short",{desc:"Short format option"}),long:()=>s.msg("Long",{desc:"Long format option"})},p={Auto:{auto:!0,label:()=>s.msg("Auto",{desc:"Automatic setting of the option"})},"1,000.00":{auto:!1,label:()=>"1,000.00",thousandSeparator:",",decimalSeparator:"."},"1.000,00":{auto:!1,label:()=>"1.000,00",thousandSeparator:".",decimalSeparator:","},"1000.00":{auto:!1,label:()=>"1000.00",decimalSeparator:"."},"1000,00":{auto:!1,label:()=>"1000,00",decimalSeparator:","}},F={levels:[{level:1,label:"years"},{level:2,label:"quarters"},{level:3,label:"months"},{level:4,label:"weeks"},{level:5,label:"days"},{level:6,label:"hours"},{level:7,label:"minutes"},{level:8,label:"seconds"},{level:9,label:"milliseconds"}]};var $=Object.defineProperty,N=Object.getOwnPropertyDescriptor,r=(h,t,e,i)=>{for(var n=i>1?void 0:i?N(t,e):t,o=h.length-1,l;o>=0;o--)(l=h[o])&&(n=(i?l(t,e,n):l(n))||n);return i&&n&&$(t,e,n),n};exports.LuzmoDisplaySettingsNumeric=class extends y.SizedMixin(a.LuzmoElement,{validSizes:Object.values(y.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={},this.measureColumns=[],this._durationLevels=[],this._renderDurationLevelMenu=!1,this._sendEvent=()=>{const t={...this.slotContent};t.format=this._format,t.aggregationFunc=this._aggregationFunc,this._aggregationWeightColumn?t.aggregationWeight={...this._aggregationWeightColumn}:this._aggregationFunc==="rate"&&(t.aggregationFunc="average"),this._displayMode==="duration"?(t.duration=t.duration??{},t.duration.format=this._durationFormat,t.duration.levels=this._durationLevels):delete t.duration,this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:t}}))}}static get styles(){return[a.r(A)]}_parseSavedNumericFormatSettings(){var t,e,i,n,o,l,g,c,d,_;if(this._displayMode=((t=this.slotContent)==null?void 0:t.subtype)==="duration"?((n=(i=(e=this.slotContent)==null?void 0:e.duration)==null?void 0:i.levels)==null?void 0:n.length)===1?"numeric":"duration":"numeric",this._durationFormat=((l=(o=this.slotContent)==null?void 0:o.duration)==null?void 0:l.format)??"short",this._durationLevels=((c=(g=this.slotContent)==null?void 0:g.duration)==null?void 0:c.levels)??[1],this._displayMode==="duration")this._precision=2,this._commaDecimals=!1,this._thousandSeparator=!1;else{this._format=((d=this.slotContent)==null?void 0:d.format)??".0f";const u=v.decomposeNumericFormat(this._format??".0f");this._isAuto=((_=u.typeFormat)==null?void 0:_.includes("a"))??!1,["%","a%","y","ay"].includes(u.typeFormat)?this._displayAs="percentage":["s","as","w","aw"].includes(u.typeFormat)?this._displayAs="scientific":this._displayAs="general",this._precision=u.precision?Number.parseInt(u.precision.replace(".",""),10):this._displayAs==="scientific"?1:0,this._commaDecimals=["z","az","y","ay","w","aw"].includes(u.typeFormat),this._thousandSeparator=u.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")}}_setNumericDisplayAs(){var t,e;this._displayAs=((e=(t=this._displayAsElement)==null?void 0:t.selected)==null?void 0:e[0])??"general",this._displayAs==="scientific"&&(this._precision=Math.max(this._precision??0,1),this._thousandSeparator=!1),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setNumericSeparators(t){const e=p[(t==null?void 0:t.detail)??"Auto"];this._thousandSeparator=[",","."].includes((e==null?void 0:e.thousandSeparator)??""),this._commaDecimals=(e==null?void 0:e.decimalSeparator)===",",this._isAuto=e==null?void 0:e.auto,this._setNumericFormat(),this._sendEvent()}_setPrecision(){this._precision=this._precisionElement.value,this._setNumericFormat(),this._sendEvent()}_setNumericFormat(){var i;let t="f";const e=this.slotContent.subtype==="duration"?this._durationLevels&&((i=this._durationLevels)==null?void 0:i.length)===1?"numeric":"duration":"numeric";this._maxDurationLevel=Math.min(...this._durationLevels),e==="duration"?(!["time","short","long"].includes(this._durationFormat??"")||this._maxDurationLevel<6&&this._durationFormat==="time")&&(this._durationFormat="short"):(this._displayAs==="general"&&this._commaDecimals?t="z":this._displayAs==="percentage"&&this._commaDecimals?t="y":this._displayAs==="scientific"&&this._commaDecimals?t="w":this._displayAs==="percentage"?t="%":this._displayAs==="scientific"&&(t="s"),this._format=(this._thousandSeparator||this._isAuto?",":"")+"."+this._precision+(this._isAuto?"a":"")+t)}_setAggregationFunc(){const t=this._aggregationFunc,e=this.slotContent.format;if(this._aggregationElement.value!==t){if(this._aggregationFunc=this._aggregationElement.value,t==="rate"){const i=v.decomposeNumericFormat(e),n=["%","y","a%","ay"].includes(i.typeFormat);this.slotContent.subtype==="currency"&&n&&this._setNumericDisplayAs()}this._sendEvent(),(this._aggregationFunc==="rate"||t==="rate")&&this.requestUpdate()}}_setAggregationWeight(){const t=this._aggregationWeightElement.value;if(t==="none")this._aggregationWeightColumn=void 0;else{const e=this.measureColumns.find(i=>i.columnId===t);this._aggregationWeightColumn={column:e==null?void 0:e.columnId,set:e==null?void 0:e.datasetId,columnSubType:e==null?void 0:e.subtype}}this._sendEvent()}_setDurationLevels(){const t=this._durationLevels,e=this._durationLevelsElement.value.split(",").filter(i=>i!=="").map(i=>Number.parseInt(i,10));this._durationLevels=((e==null?void 0:e.length)??0)>=1?e:t,this._maxDurationLevel=Math.min(...this._durationLevels),this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_setDurationFormat(){var t,e;this._durationFormat=(e=(t=this._durationFormatElement)==null?void 0:t.selected)==null?void 0:e[0],this._fillTimeDurationLevels(),this._setNumericFormat(),this._sendEvent(),this.requestUpdate()}_fillTimeDurationLevels(){if(this._durationFormat==="time"){const t=this._durationLevels.sort().at(-1);if([7,8,9].includes(t)){const e={lev7:[6],lev8:[6,7],lev9:[6,7,8]};for(const i of e["lev"+t])this._durationLevels.includes(i)||this._durationLevels.push(i);this._durationLevels=[...this._durationLevels].sort()}}}willUpdate(t){var e,i,n;t.has("slotContent")&&(this._parseSavedNumericFormatSettings(),this._aggregationFunc=((e=this.slotContent)==null?void 0:e.aggregationFunc)??((i=this.slotContent)==null?void 0:i.type)==="numeric"?"sum":"count",this._aggregationWeightColumn=(n=this.slotContent)==null?void 0:n.aggregationWeight),t.has("language")&&([...s.targetLocales].includes(this.language??"en")||this.language==="en")&&(s.setLocale(this.language),this.requestUpdate())}firstUpdated(){var t;(t=this.slotContent)!=null&&t.duration&&this._durationLevelsOverlay.addEventListener("slottable-request",e=>{this._renderDurationLevelMenu=e.data!==b.a})}_renderDurationLevelsSettings(){const t=F.levels.map(e=>{let i=!1;return this._durationFormat==="time"&&e.level>=6&&this._durationLevels.includes(e.level)&&e.level!==Math.max(...this._durationLevels)&&(i=!0),this._durationLevels.length===1&&this._durationLevels.includes(e.level)&&(i=!0),a.x`<luzmo-menu-item
|
21
21
|
value=${e.level}
|
22
22
|
?selected=${this._durationLevels.includes(e.level)}
|
23
23
|
?disabled=${i}
|
@@ -53,8 +53,8 @@
|
|
53
53
|
</luzmo-menu>`:""}
|
54
54
|
</luzmo-popover>
|
55
55
|
</luzmo-overlay>
|
56
|
-
</div>`}_renderDurationFormatSettings(){const t=Object.keys(
|
57
|
-
${
|
56
|
+
</div>`}_renderDurationFormatSettings(){const t=Object.keys(L).map(e=>e==="time"&&(this._maxDurationLevel??1)<6?"":a.x`<luzmo-action-button value=${e}>
|
57
|
+
${L[e]()}
|
58
58
|
</luzmo-action-button>`);return a.x` <div class="setting">
|
59
59
|
<luzmo-field-label for="duration-format">
|
60
60
|
${s.msg("Format",{desc:"Label for format setting"})}
|
@@ -18,17 +18,17 @@
|
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
20
|
import { m as s, t as x, s as A, l as L } from "../set-locale-DJYT4V7U.js";
|
21
|
-
import "../index-
|
22
|
-
import "../index-
|
23
|
-
import "../index-
|
24
|
-
import "../index-
|
25
|
-
import "../index-
|
26
|
-
import "../index-
|
27
|
-
import "../index-
|
21
|
+
import "../index-DZZMSlYS.js";
|
22
|
+
import "../index-B9dQtvu7.js";
|
23
|
+
import "../index-DJik7S7b.js";
|
24
|
+
import "../index-Rjoe8cIs.js";
|
25
|
+
import "../index-Bb8vxGZY.js";
|
26
|
+
import "../index-DFnzlbHX.js";
|
27
|
+
import "../index-Brg_sVUg.js";
|
28
28
|
import { d as v } from "../decompose-numeric-format-BuZcjH2k.js";
|
29
29
|
import { L as F, r as S, x as a, n as z } from "../focusable-Dw_pMNQL.js";
|
30
|
-
import {
|
31
|
-
import { a as w } from "../index-
|
30
|
+
import { f as $, T as D } from "../luzmo-icons-U09GB75o.js";
|
31
|
+
import { a as w } from "../index-BXMPi13W.js";
|
32
32
|
import { r as C } from "../state-e2n-fyrr.js";
|
33
33
|
import { e as d } from "../query-Ddbd72Um.js";
|
34
34
|
import { S as N, E } from "../sized-mixin-DMuOVsw0.js";
|
@@ -39,7 +39,7 @@ const y = () => {
|
|
39
39
|
}
|
40
40
|
};
|
41
41
|
y();
|
42
|
-
const
|
42
|
+
const M = ":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))}: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 )}", O = {
|
43
43
|
sum: () => s("Sum", { desc: "Numeric Aggregation option" }),
|
44
44
|
cumulativesum: () => s("Cumulative sum", { desc: "Numeric Aggregation option" }),
|
45
45
|
average: () => s("Average", { desc: "Numeric Aggregation option" }),
|
@@ -115,7 +115,7 @@ let l = class extends N(F, {
|
|
115
115
|
};
|
116
116
|
}
|
117
117
|
static get styles() {
|
118
|
-
return [S(
|
118
|
+
return [S(M)];
|
119
119
|
}
|
120
120
|
_parseSavedNumericFormatSettings() {
|
121
121
|
var t, e, o, r, i, u, m, g, h, f;
|
@@ -377,7 +377,7 @@ let l = class extends N(F, {
|
|
377
377
|
}
|
378
378
|
_renderAggregationSettings() {
|
379
379
|
var o, r;
|
380
|
-
const t = Object.entries(
|
380
|
+
const t = Object.entries(O).map(
|
381
381
|
([i, u]) => a`<luzmo-menu-item value=${i}>${u()}</luzmo-menu-item>`
|
382
382
|
), e = [
|
383
383
|
a`<luzmo-menu-item value="none">No weight</luzmo-menu-item>`,
|