@luzmo/analytics-components-kit 1.0.1-alpha.61 → 1.0.1-alpha.62
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/{de-B-dpCslM.js → de-dbNUlAws.js} +3 -2
- package/components/{de-3pI8G8qQ.cjs → de-vQBzCYwA.cjs} +1 -1
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +1 -1
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +1 -1
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +1 -1
- package/components/display-settings-numeric/index.cjs +1 -1
- package/components/display-settings-numeric/index.js +1 -1
- package/components/display-settings-period-over-period/index.cjs +1 -1
- package/components/display-settings-period-over-period/index.js +1 -1
- package/components/draggable-data-item/index.cjs +1 -1
- package/components/draggable-data-item/index.js +1 -1
- package/components/droppable-slot/index.cjs +1 -1
- package/components/droppable-slot/index.js +1 -1
- package/components/{es-CxS3G0dL.cjs → es-BEg-Bfmo.cjs} +1 -1
- package/components/{es-DFEKfDn9.js → es-q3SSzVQv.js} +3 -2
- package/components/filter-data-item-picker/index.cjs +1 -1
- package/components/filter-data-item-picker/index.js +1 -1
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +2 -2
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +1 -1
- package/components/filter-value-picker-datetime/index.cjs +1 -1
- package/components/filter-value-picker-datetime/index.js +1 -1
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +1 -1
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +1 -1
- package/components/{fr-BJAbd8Ep.cjs → fr-BO70WGsB.cjs} +1 -1
- package/components/{fr-mY4Kiy_p.js → fr-DAWlvjly.js} +3 -2
- package/components/grid/index.cjs +1 -1
- package/components/grid/index.js +1 -1
- package/components/{index-BLmcxZTn.js → index-CcvMWOPD.js} +1 -1
- package/components/{index-B3PYiDHu.cjs → index-cZZaTpmM.cjs} +1 -1
- package/components/index.cjs +1 -1
- package/components/index.js +1 -1
- package/components/{nl-D3VFzqgp.js → nl-Dja_jOke.js} +3 -2
- package/components/{nl-mmyV8EJc.cjs → nl-ZaVdiO6I.cjs} +1 -1
- package/components/{set-locale-BusTGiU9.cjs → set-locale-Cv8DAlcC.cjs} +1 -1
- package/components/{set-locale-B5BbHg0k.js → set-locale-DBtuQRTk.js} +1 -1
- package/components/slot-contents-picker/index.cjs +1 -1
- package/components/slot-contents-picker/index.js +1 -1
- package/package.json +1 -1
|
@@ -82,7 +82,6 @@ const e = {
|
|
|
82
82
|
s708bbac083d05109: "beginnt nicht mit",
|
|
83
83
|
s70a773eb3133e5fa: "Monat bis heute",
|
|
84
84
|
s716a6024e3fe999c: "Zeigen",
|
|
85
|
-
s71a5c9f4b68ef4d4: "Zählen",
|
|
86
85
|
s74dcd519e6563a26: "WTD",
|
|
87
86
|
s7632fc9aa12bf382: "Monate",
|
|
88
87
|
s7a6878d41ffac284: "letzte abgeschl",
|
|
@@ -126,6 +125,7 @@ const e = {
|
|
|
126
125
|
sc4842e5b8b90466a: "Sekunden",
|
|
127
126
|
sc6e49f3d37e54030: "Stunde im Tag",
|
|
128
127
|
sc6f5a4fc0583d734: "ist in",
|
|
128
|
+
sc86e72c4fdd4e0ec: "Zählen unterschiedlich",
|
|
129
129
|
scb7bab1a17663a6c: "YTD",
|
|
130
130
|
scf2bb2b0de9cdb8a: "Millisekunde",
|
|
131
131
|
sd237be440de38cc7: "Quartal",
|
|
@@ -135,6 +135,7 @@ const e = {
|
|
|
135
135
|
sd7ebafacf602c9bd: "Brief",
|
|
136
136
|
sdb73788b3c975f16: "Automatisch",
|
|
137
137
|
sdc673e73b5c13aea: "Löschen",
|
|
138
|
+
sdebe99a43259a451: "Zeilen zählen",
|
|
138
139
|
sdfeb2151b9e78d4d: "enthält nicht",
|
|
139
140
|
se0955919920ee87d: "Tag",
|
|
140
141
|
se211e3d21bbf3bff: "Maß",
|
|
@@ -142,7 +143,6 @@ const e = {
|
|
|
142
143
|
se415bbea6c976fb1: "Gruppieren nach",
|
|
143
144
|
se5316cbaa025f028: "nächste",
|
|
144
145
|
se715be190539325a: "vor",
|
|
145
|
-
se8e9d799a9e267ce: "Unterschiedliche Zählung",
|
|
146
146
|
se9e535bb9591039e: "Ausdruck auswählen",
|
|
147
147
|
se9ff6e9a514d8cf9: "Montag",
|
|
148
148
|
seb4eae68d45315b7: "Minimum",
|
|
@@ -158,6 +158,7 @@ const e = {
|
|
|
158
158
|
sf9c10516a62a23db: "Anzeigen als",
|
|
159
159
|
sfa2d0aa30ee5aa58: "letzte (x) Perioden",
|
|
160
160
|
sfad9ed343e97551c: "Vergangener Wert",
|
|
161
|
+
sfb9e6d0c6baa99f5: "Passt dem Datumsbereich, der in der Tabelle oder im Diagramm sichtbar ist",
|
|
161
162
|
sfbac36245480ddbc: "Trennzeichen",
|
|
162
163
|
sfda1c9d0be35cec8: "Quartal bis heute"
|
|
163
164
|
};
|
|
@@ -17,4 +17,4 @@
|
|
|
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 e={s00decbd8fed4f501:"Maximum",s0456d2ad905847d9:"letzte",s079a052719914d71:"Kategorie",s08098b07b4c86ff2:"<=",s08108707b4ce87d4:">=",s088e3b07b5394bc3:"gleich",s099b18e1bd8a1154:"Stunden",s09c2b609dff29061:"Kumulative Summe",s0acece4c687177a9:"Quartalsnummern",s0bb151c9319a6813:"X-Achse",s0bca0c91195d8d6d:"enth",s1125d159f7e64df5:"Anzeigen",s11326fd2590f4e5e:"Standard",s122f7f3f1a22ea50:"nicht gleich",s13f5793e33ebda4f:"zwischen",s146475c4daa430ed:"Dezimalstellen",s178b06f4d02cfd40:"fehlt nicht",s184501a399a815dc:"Quartale",s18498398aeb37b07:"Woche beginnt am",s187528426100c44e:"Keine Daten",s1cdb6b07fe827486:"Wochennummer",s1e593719b55d60c0:"MTD",s1f0916624a87d415:"Tag im Jahr",s2454d1f117573457:"Genauigkeit",s247d110f13a3a288:"Tag in der Woche",s26273c258ddde0e1:"Auswählen...",s2695506122ffd614:"Sekunde in der Minute",s2718cebf7de190e1:"ist zwischen",s2798d16f4e04857e:"Minute in der Stunde",s281f1d977ddc0ebe:"Monatsnummer",s2ea38ce3da088075:"Perioden",s2fb2a49481123d6a:"Wochen",s2fedf26ef08343d4:"ist gleich",s3924c3d773a80312:"letzte verfügbar",s3c6455b19fb1c3e4:"Absoluter Wechsel",s3dcf7b255596a2c3:"Standardabweichung",s441accd1cd3484c9:"Minute",s463b8c4e92751ba5:"Optionen",s467b030b9a34b3c8:"Durchschnitt",s48e186fb300e5464:"Zeit",s496c60f73bdf5725:"Aggregation",s4b30fad1c34464e1:"größer oder gleich",s4b58c01e2578f5e4:"Legende",s4e585eeea351a038:"enthält",s4efbcab48a433013:"Lang",s4f27f6b48a68b5c2:"Sperren",s519d0aa80bbafd42:"Woche bis heute",s57ace73e7c6e719f:"ist nicht in",s58ec693e33483873:"kleiner als",s5d929ff1619ac0c9:"Suchen",s5e2654fb8587f442:"Duplizieren",s602805b1eb3106c6:"Y-Achse",s6031881827829901:"24h",s60b34c3c17dc35bd:"Jahre",s64ef2a6c2dd1d3d1:"Bearbeiten",s66722bc2ea775e05:"Deaktiviert",s669b18c6d2d9c95b:"Keine",s66dcbbc0355c2759:"Sonntag",s680f01021b5e339d:"Woche",s6b0bffd88024372f:"Stunde",s6de3d6e9660857a1:"Beispiel",s708bbac083d05109:"beginnt nicht mit",s70a773eb3133e5fa:"Monat bis heute",s716a6024e3fe999c:"Zeigen",
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={s00decbd8fed4f501:"Maximum",s0456d2ad905847d9:"letzte",s079a052719914d71:"Kategorie",s08098b07b4c86ff2:"<=",s08108707b4ce87d4:">=",s088e3b07b5394bc3:"gleich",s099b18e1bd8a1154:"Stunden",s09c2b609dff29061:"Kumulative Summe",s0acece4c687177a9:"Quartalsnummern",s0bb151c9319a6813:"X-Achse",s0bca0c91195d8d6d:"enth",s1125d159f7e64df5:"Anzeigen",s11326fd2590f4e5e:"Standard",s122f7f3f1a22ea50:"nicht gleich",s13f5793e33ebda4f:"zwischen",s146475c4daa430ed:"Dezimalstellen",s178b06f4d02cfd40:"fehlt nicht",s184501a399a815dc:"Quartale",s18498398aeb37b07:"Woche beginnt am",s187528426100c44e:"Keine Daten",s1cdb6b07fe827486:"Wochennummer",s1e593719b55d60c0:"MTD",s1f0916624a87d415:"Tag im Jahr",s2454d1f117573457:"Genauigkeit",s247d110f13a3a288:"Tag in der Woche",s26273c258ddde0e1:"Auswählen...",s2695506122ffd614:"Sekunde in der Minute",s2718cebf7de190e1:"ist zwischen",s2798d16f4e04857e:"Minute in der Stunde",s281f1d977ddc0ebe:"Monatsnummer",s2ea38ce3da088075:"Perioden",s2fb2a49481123d6a:"Wochen",s2fedf26ef08343d4:"ist gleich",s3924c3d773a80312:"letzte verfügbar",s3c6455b19fb1c3e4:"Absoluter Wechsel",s3dcf7b255596a2c3:"Standardabweichung",s441accd1cd3484c9:"Minute",s463b8c4e92751ba5:"Optionen",s467b030b9a34b3c8:"Durchschnitt",s48e186fb300e5464:"Zeit",s496c60f73bdf5725:"Aggregation",s4b30fad1c34464e1:"größer oder gleich",s4b58c01e2578f5e4:"Legende",s4e585eeea351a038:"enthält",s4efbcab48a433013:"Lang",s4f27f6b48a68b5c2:"Sperren",s519d0aa80bbafd42:"Woche bis heute",s57ace73e7c6e719f:"ist nicht in",s58ec693e33483873:"kleiner als",s5d929ff1619ac0c9:"Suchen",s5e2654fb8587f442:"Duplizieren",s602805b1eb3106c6:"Y-Achse",s6031881827829901:"24h",s60b34c3c17dc35bd:"Jahre",s64ef2a6c2dd1d3d1:"Bearbeiten",s66722bc2ea775e05:"Deaktiviert",s669b18c6d2d9c95b:"Keine",s66dcbbc0355c2759:"Sonntag",s680f01021b5e339d:"Woche",s6b0bffd88024372f:"Stunde",s6de3d6e9660857a1:"Beispiel",s708bbac083d05109:"beginnt nicht mit",s70a773eb3133e5fa:"Monat bis heute",s716a6024e3fe999c:"Zeigen",s74dcd519e6563a26:"WTD",s7632fc9aa12bf382:"Monate",s7a6878d41ffac284:"letzte abgeschl",s846876f9b712e843:"ist nicht gleich",s862f5319f0256b94:"QTD",s8665d029b5cb8b24:"Gesamtsummen",s8a56a8c8bd19c9c7:"fehlt",s8d0259032729869d:"Sekunde",s965c503c3e42fdfe:"Aktiviert",s9689e928323dc124:"letzte abgeschlossene (Periode)",s981f232bd33ec927:"Rate",s9854300ef4a37d18:"endet nicht mit",s987abe19fac8d108:"Summe",s98c337186f2d57c6:"Bin-Breite",s98db41a3eb532203:"Jahr bis heute",s991d216e6efc157c:"Keine Ergebnisse",s996319f23f6cf0b5:"endet mit",s9b9009d4a5004fb8:"Binning",s9b9d6ce29d05a298:"kleiner oder gleich",s9e40e59654c8ad67:"Spalte",sa3c9339de23c1752:"Format",sa6ab5184d6315895:"Von",sa6f2645578b2d2bc:"Jahr",sa7effa06c0f6784c:"größer als",sa8beb6b1182241ac:"Filter",sac8256732f2ee1e5:"Daten",sac8b59943205b14f:"nächste volle (Periode)",sac94bb71f7737997:"Median",sacae74732f544fca:"Tage",saf63b34c8601a6e1:">",sb1f654608a3eea75:"Wochentag",sb3b793ff5cc1bc39:"nächste (x) Perioden",sb47daaf9e1c4a905:"Monat",sb5b295e3a7500b9c:"Dauerstufen",sb6513caf69971fb5:"Kurz",sb70671db5700ff60:"endet nicht mit",sb93e5af29aca2e3d:"fehlt",sbbb97b1c63507dc0:"Zahl",sbeebe911264bed23:"letzte (x) verfügbare Perioden",sc1bf67624fa6d498:"% Änderung",sc4842e5b8b90466a:"Sekunden",sc6e49f3d37e54030:"Stunde im Tag",sc6f5a4fc0583d734:"ist in",sc86e72c4fdd4e0ec:"Zählen unterschiedlich",scb7bab1a17663a6c:"YTD",scf2bb2b0de9cdb8a:"Millisekunde",sd237be440de38cc7:"Quartal",sd28141a332dc31fa:"Tag im Monat",sd5b1040899eb149d:"nächste voll",sd66a74fff07a11fb:"{count} elemente ausgewählt",sd7ebafacf602c9bd:"Brief",sdb73788b3c975f16:"Automatisch",sdc673e73b5c13aea:"Löschen",sdebe99a43259a451:"Zeilen zählen",sdfeb2151b9e78d4d:"enthält nicht",se0955919920ee87d:"Tag",se211e3d21bbf3bff:"Maß",se2b7530e30fa607d:"Periodenvergleich",se415bbea6c976fb1:"Gruppieren nach",se5316cbaa025f028:"nächste",se715be190539325a:"vor",se9e535bb9591039e:"Ausdruck auswählen",se9ff6e9a514d8cf9:"Montag",seb4eae68d45315b7:"Minimum",seb9c440de1ce6044:"beginnt mit",sec2f608650e36ac5:"letzte abgeschlossene Periode",secf42ec1c7c47be2:"fehlt nicht",see0ec27fb03d880e:"Minuten",sef49aec68fd1dc66:"Name",sf095cc47a4ff9c3d:"Formel",sf518b78d9734f57b:"beginnt nicht mit",sf6cda8263b3170af:"Verwenden Sie den Zeitraum bis heute für unvollständige Zeiträume",sf70eaf9ab4c93082:"nicht enth",sf9c10516a62a23db:"Anzeigen als",sfa2d0aa30ee5aa58:"letzte (x) Perioden",sfad9ed343e97551c:"Vergangener Wert",sfb9e6d0c6baa99f5:"Passt dem Datumsbereich, der in der Tabelle oder im Diagramm sichtbar ist",sfbac36245480ddbc:"Trennzeichen",sfda1c9d0be35cec8:"Quartal bis heute"};exports.templates=e;
|
|
@@ -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-CW1Gw-4O.cjs");require("../index-j8UKjHqY.cjs");require("../index-O1g_4FMC.cjs");require("../index-CWdEMMU8.cjs");const l=require("../property-Cu4Q1hS4.cjs"),o=require("../runtime-CH-wFJgm.cjs"),h=require("../localized-decorator-C8sbzZGl.cjs"),d=require("../luzmo-icons-DonyjSXg.cjs"),b=require("../state-fyl3IYMu.cjs"),p=require("../query-D5qWDopr.cjs"),m=require("../focusable-DAGGGYyz.cjs"),c=require("../sized-mixin-j_7aJM4b.cjs"),u=require("../set-locale-
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-CW1Gw-4O.cjs");require("../index-j8UKjHqY.cjs");require("../index-O1g_4FMC.cjs");require("../index-CWdEMMU8.cjs");const l=require("../property-Cu4Q1hS4.cjs"),o=require("../runtime-CH-wFJgm.cjs"),h=require("../localized-decorator-C8sbzZGl.cjs"),d=require("../luzmo-icons-DonyjSXg.cjs"),b=require("../state-fyl3IYMu.cjs"),p=require("../query-D5qWDopr.cjs"),m=require("../focusable-DAGGGYyz.cjs"),c=require("../sized-mixin-j_7aJM4b.cjs"),u=require("../set-locale-Cv8DAlcC.cjs"),z=":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-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 v=Object.defineProperty,y=Object.getOwnPropertyDescriptor,a=(r,e,t,n)=>{for(var i=n>1?void 0:n?y(e,t):e,s=r.length-1,g;s>=0;s--)(g=r[s])&&(i=(n?g(e,t,i):g(i))||i);return n&&i&&v(e,t,i),i};exports.LuzmoDisplaySettingsBinning=class extends c.SizedMixin(m.LuzmoElement,{validSizes:Object.values(c.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={},this._enabled=!1,this._binWidth=10}static get styles(){return[l.r(z)]}willUpdate(e){var t,n,i,s;e.has("slotContent")&&(this._enabled=((n=(t=this.slotContent)==null?void 0:t.bins)==null?void 0:n.enabled)??!1,this._binWidth=((s=(i=this.slotContent)==null?void 0:i.bins)==null?void 0:s.number)??10),e.has("language")&&this.language!==u.getLocale()&&([...u.targetLocales].includes(this.language??"en")||this.language==="en")&&u.setLocale(this.language)}toggleBinning(){this._enabled=!this._enabled,this.sendEvent()}setBinning(){this._binWidth=this.binWidthElement.value,this.sendEvent()}sendEvent(){const e={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:e}}}))}renderBinWidth(){return l.x`<div class="setting">
|
|
21
21
|
<luzmo-field-label for="bin-width"
|
|
22
22
|
>${o.msg("Bin width",{desc:"The width of each bin in the histogram"})}</luzmo-field-label
|
|
23
23
|
>
|
|
@@ -29,7 +29,7 @@ import { r as h } from "../state-nDsQPund.js";
|
|
|
29
29
|
import { e as f } from "../query-Ddbd72Um.js";
|
|
30
30
|
import { L as v } from "../focusable-BbymtxWI.js";
|
|
31
31
|
import { S as x, E as y } from "../sized-mixin-BGzkX2g1.js";
|
|
32
|
-
import { g as w, t as _, s as E } from "../set-locale-
|
|
32
|
+
import { g as w, t as _, s as E } from "../set-locale-DBtuQRTk.js";
|
|
33
33
|
const d = () => {
|
|
34
34
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
35
35
|
const o = document.createElement("style");
|
|
@@ -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 f=require("../task-CwmAXlv0.cjs");require("../index-CW1Gw-4O.cjs");require("../index-CnP-Q5Bw.cjs");require("../index-j8UKjHqY.cjs");require("../index-O1g_4FMC.cjs");require("../index-CWdEMMU8.cjs");require("../index-XfBlZOz9.cjs");require("../index-BKwbYw6x.cjs");const a=require("../property-Cu4Q1hS4.cjs"),o=require("../runtime-CH-wFJgm.cjs"),y=require("../localized-decorator-C8sbzZGl.cjs"),h=require("../luzmo-icons-DonyjSXg.cjs"),l=require("../formatter-Lo9PMcxy.cjs"),d=require("../periods.const-DDUxMjPi.cjs"),m=require("../query-D5qWDopr.cjs"),z=require("../focusable-DAGGGYyz.cjs"),c=require("../sized-mixin-j_7aJM4b.cjs"),p=require("../set-locale-BusTGiU9.cjs"),g={"~":()=>o.msg("Auto",{desc:"Automatic setting of the option"}),"/":()=>"/","-":()=>"-",".":()=>"."},v=":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-display-settings-vertical-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{--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 S=Object.defineProperty,D=Object.getOwnPropertyDescriptor,r=(u,e,t,i)=>{for(var s=i>1?void 0:i?D(e,t):e,n=u.length-1,_;n>=0;n--)(_=u[n])&&(s=(i?_(e,t,s):_(s))||s);return i&&s&&S(e,t,s),s};exports.LuzmoDisplaySettingsDatetime=class extends c.SizedMixin(z.LuzmoElement,{validSizes:Object.values(c.ElementSizes)}){constructor(){super(...arguments),this._loadLocaleFormatsConfig=new f.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-cN3S24Cg.cjs")),"../../utils/formatter/formats/en-US.ts":()=>Promise.resolve().then(()=>F),"../../utils/formatter/formats/en.ts":()=>Promise.resolve().then(()=>k),"../../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 i=await t[`../../utils/formatter/formats/${e}.ts`]();this._localeFormats=(i==null?void 0:i.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[a.r(v)]}_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"),this._parseSavedFormat()}_parseSavedFormat(){var i;const e=((i=this.slotContent)==null?void 0:i.format)??l.DEFAULT_DATETIME_FORMAT,t=e.match(/[./-]/);if(this._dateSeparator=e.includes("~")?"~":(t==null?void 0:t[0])??"~",e.includes("%amd"))this._dateFormat="auto";else{const s=e.indexOf("%d"),n=e.indexOf("%m");s!==-1&&n!==-1&&(this._dateFormat=s<n?"ddmm":"mmdd")}this._24hFormat=e.includes("%H"),this._monthName=/%B|%b/.test(e),this._weekDay=/%a|%A/.test(e),this._monthName&&(this._monthNameFormat=e.includes("%b")?"short":"long"),this._weekDay&&(this._weekDayAndMonthInYearFormat=e.includes("%a")?"short":"long")}_calculateFormat(){var i;let e;const t=((i=this._localeFormats)==null?void 0:i.smartDateFormats)??l.SMART_DATE_FORMATS;this._monthName?(e=t.filter(s=>s.monthType==="name"&&s.longText===(this._monthNameFormat==="long")&&s.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(s=>s.monthType==="number"&&s.mmdd===(this._weekFormat==="mmdd"?!0:this._weekFormat==="ddmm"?!1:null)&&s.separator===this._dateSeparator):t.filter(s=>s.monthType==="number"&&s.mmdd===(this._dateFormat==="mmdd"?!0:this._dateFormat==="ddmm"?!1:null)&&s.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")&&this.language!==p.getLocale()&&([...p.targetLocales].includes(this.language??"en")||this.language==="en")&&p.setLocale(this.language)}_renderDisplaySettings(){var t,i;const e=(i=(t=d.DATETIME_AS_STRING_FORMATS_PER_LEVEL)==null?void 0:t[`level${this._dateLevel??0}`])==null?void 0:i.map(s=>a.x`<luzmo-menu-item value=${s.key}>
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../task-CwmAXlv0.cjs");require("../index-CW1Gw-4O.cjs");require("../index-CnP-Q5Bw.cjs");require("../index-j8UKjHqY.cjs");require("../index-O1g_4FMC.cjs");require("../index-CWdEMMU8.cjs");require("../index-XfBlZOz9.cjs");require("../index-BKwbYw6x.cjs");const a=require("../property-Cu4Q1hS4.cjs"),o=require("../runtime-CH-wFJgm.cjs"),y=require("../localized-decorator-C8sbzZGl.cjs"),h=require("../luzmo-icons-DonyjSXg.cjs"),l=require("../formatter-Lo9PMcxy.cjs"),d=require("../periods.const-DDUxMjPi.cjs"),m=require("../query-D5qWDopr.cjs"),z=require("../focusable-DAGGGYyz.cjs"),c=require("../sized-mixin-j_7aJM4b.cjs"),p=require("../set-locale-Cv8DAlcC.cjs"),g={"~":()=>o.msg("Auto",{desc:"Automatic setting of the option"}),"/":()=>"/","-":()=>"-",".":()=>"."},v=":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-display-settings-vertical-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{--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 S=Object.defineProperty,D=Object.getOwnPropertyDescriptor,r=(u,e,t,i)=>{for(var s=i>1?void 0:i?D(e,t):e,n=u.length-1,_;n>=0;n--)(_=u[n])&&(s=(i?_(e,t,s):_(s))||s);return i&&s&&S(e,t,s),s};exports.LuzmoDisplaySettingsDatetime=class extends c.SizedMixin(z.LuzmoElement,{validSizes:Object.values(c.ElementSizes)}){constructor(){super(...arguments),this._loadLocaleFormatsConfig=new f.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-cN3S24Cg.cjs")),"../../utils/formatter/formats/en-US.ts":()=>Promise.resolve().then(()=>F),"../../utils/formatter/formats/en.ts":()=>Promise.resolve().then(()=>k),"../../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 i=await t[`../../utils/formatter/formats/${e}.ts`]();this._localeFormats=(i==null?void 0:i.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[a.r(v)]}_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"),this._parseSavedFormat()}_parseSavedFormat(){var i;const e=((i=this.slotContent)==null?void 0:i.format)??l.DEFAULT_DATETIME_FORMAT,t=e.match(/[./-]/);if(this._dateSeparator=e.includes("~")?"~":(t==null?void 0:t[0])??"~",e.includes("%amd"))this._dateFormat="auto";else{const s=e.indexOf("%d"),n=e.indexOf("%m");s!==-1&&n!==-1&&(this._dateFormat=s<n?"ddmm":"mmdd")}this._24hFormat=e.includes("%H"),this._monthName=/%B|%b/.test(e),this._weekDay=/%a|%A/.test(e),this._monthName&&(this._monthNameFormat=e.includes("%b")?"short":"long"),this._weekDay&&(this._weekDayAndMonthInYearFormat=e.includes("%a")?"short":"long")}_calculateFormat(){var i;let e;const t=((i=this._localeFormats)==null?void 0:i.smartDateFormats)??l.SMART_DATE_FORMATS;this._monthName?(e=t.filter(s=>s.monthType==="name"&&s.longText===(this._monthNameFormat==="long")&&s.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(s=>s.monthType==="number"&&s.mmdd===(this._weekFormat==="mmdd"?!0:this._weekFormat==="ddmm"?!1:null)&&s.separator===this._dateSeparator):t.filter(s=>s.monthType==="number"&&s.mmdd===(this._dateFormat==="mmdd"?!0:this._dateFormat==="ddmm"?!1:null)&&s.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")&&this.language!==p.getLocale()&&([...p.targetLocales].includes(this.language??"en")||this.language==="en")&&p.setLocale(this.language)}_renderDisplaySettings(){var t,i;const e=(i=(t=d.DATETIME_AS_STRING_FORMATS_PER_LEVEL)==null?void 0:t[`level${this._dateLevel??0}`])==null?void 0:i.map(s=>a.x`<luzmo-menu-item value=${s.key}>
|
|
21
21
|
${s.i18n()}
|
|
22
22
|
</luzmo-menu-item>`);return a.x`<div class="setting">
|
|
23
23
|
<luzmo-field-label for="display-as"
|
|
@@ -34,7 +34,7 @@ import { a as $, b as z, W as g } from "../periods.const-U2Ll1qq1.js";
|
|
|
34
34
|
import { e as n } from "../query-Ddbd72Um.js";
|
|
35
35
|
import { L as x } from "../focusable-BbymtxWI.js";
|
|
36
36
|
import { S as A, E as L } from "../sized-mixin-BGzkX2g1.js";
|
|
37
|
-
import { g as D, t as E, s as M } from "../set-locale-
|
|
37
|
+
import { g as D, t as E, s as M } from "../set-locale-DBtuQRTk.js";
|
|
38
38
|
const b = () => {
|
|
39
39
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
40
40
|
const t = document.createElement("style");
|
|
@@ -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-CW1Gw-4O.cjs");require("../index-j8UKjHqY.cjs");require("../index-O1g_4FMC.cjs");const n=require("../property-Cu4Q1hS4.cjs"),d=require("../runtime-CH-wFJgm.cjs"),p=require("../localized-decorator-C8sbzZGl.cjs"),u=require("../luzmo-icons-DonyjSXg.cjs"),m=require("../state-fyl3IYMu.cjs"),z=require("../if-defined-wiCAR_aA.cjs"),h=require("../focusable-DAGGGYyz.cjs"),c=require("../sized-mixin-j_7aJM4b.cjs"),g=require("../set-locale-
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-CW1Gw-4O.cjs");require("../index-j8UKjHqY.cjs");require("../index-O1g_4FMC.cjs");const n=require("../property-Cu4Q1hS4.cjs"),d=require("../runtime-CH-wFJgm.cjs"),p=require("../localized-decorator-C8sbzZGl.cjs"),u=require("../luzmo-icons-DonyjSXg.cjs"),m=require("../state-fyl3IYMu.cjs"),z=require("../if-defined-wiCAR_aA.cjs"),h=require("../focusable-DAGGGYyz.cjs"),c=require("../sized-mixin-j_7aJM4b.cjs"),g=require("../set-locale-Cv8DAlcC.cjs"),b=":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-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 v=Object.defineProperty,y=Object.getOwnPropertyDescriptor,l=(i,t,a,e)=>{for(var s=e>1?void 0:e?y(t,a):t,o=i.length-1,r;o>=0;o--)(r=i[o])&&(s=(e?r(t,a,s):r(s))||s);return e&&s&&v(t,a,s),s};exports.LuzmoDisplaySettingsGrandTotals=class extends c.SizedMixin(h.LuzmoElement,{validSizes:Object.values(c.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={}}static get styles(){return[n.r(b)]}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),t.has("language")&&this.language!==g.getLocale()&&([...g.targetLocales].includes(this.language??"en")||this.language==="en")&&g.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 n.x`<div class="settings-container">
|
|
21
21
|
<div class="settings-row">
|
|
22
22
|
<div class="setting">
|
|
23
23
|
<luzmo-field-label for="grand-totals"
|
|
@@ -28,7 +28,7 @@ import { r as f } from "../state-nDsQPund.js";
|
|
|
28
28
|
import { o as h } from "../if-defined-Barg9gGQ.js";
|
|
29
29
|
import { L as v } from "../focusable-BbymtxWI.js";
|
|
30
30
|
import { S as x, E as y } from "../sized-mixin-BGzkX2g1.js";
|
|
31
|
-
import { g as w, t as _, s as C } from "../set-locale-
|
|
31
|
+
import { g as w, t as _, s as C } from "../set-locale-DBtuQRTk.js";
|
|
32
32
|
const c = () => {
|
|
33
33
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
34
34
|
const o = document.createElement("style");
|
|
@@ -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 n=require("../runtime-CH-wFJgm.cjs"),D=require("../localized-decorator-C8sbzZGl.cjs");require("../index-CW1Gw-4O.cjs");require("../index-CnP-Q5Bw.cjs");require("../index-j8UKjHqY.cjs");require("../index-BB3seo3W.cjs");require("../index-CWdEMMU8.cjs");require("../index-XfBlZOz9.cjs");require("../index-BoXbQm2o.cjs");const f=require("../decompose-numeric-format-B3rVVHpO.cjs"),a=require("../property-Cu4Q1hS4.cjs"),g=require("../luzmo-icons-DonyjSXg.cjs"),N=require("../index-7UKBJjMo.cjs");require("../index-C0SNc5p1.cjs");const y=require("../calculate-data-item-icon-Dn-9Kd0U.cjs"),z=require("../localize-r7ALOUy_.cjs"),w=require("../state-fyl3IYMu.cjs"),c=require("../query-D5qWDopr.cjs"),C=require("../focusable-DAGGGYyz.cjs"),b=require("../sized-mixin-j_7aJM4b.cjs"),h=require("../set-locale-BusTGiU9.cjs"),x=":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-gap, var(--luzmo-spacing-2))}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-numeric-gap, var(--display-settings-numeric-gap))}.duration-angle-down-icon{margin-inline-start:var(--luzmo-numeric-duration-levels-dropdown-icon-margin-inline-start, var(--numeric-duration-levels-dropdown-icon-margin-inline-start))}.dataset-header{max-width:100%;font-weight:600;text-transform:uppercase;margin:.5rem 1rem;color:var(--luzmo-font-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:default}.no-weight-label{margin-left:1rem}.with-secondary-icon{clip-path:polygon(0 0,60% 0,65% 60%,100% 65%,100% 100%,0 100%)}.secondary-icon{position:absolute;bottom:45%;left:60%;width:auto;font-size:.75em;line-height:1}.data-icon-type{width:1.5rem;text-align:center;position:relative;display:inline-block}:host{--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-2 )}:host([size=s]){--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-1 )}:host([size=l]){--display-settings-numeric-gap: var(--luzmo-spacing-4);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-3 )}:host([size=xl]){--display-settings-numeric-gap: var(--luzmo-spacing-5);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-4 )}",E={sum:()=>n.msg("Sum",{desc:"Numeric Aggregation option"}),cumulativesum:()=>n.msg("Cumulative sum",{desc:"Numeric Aggregation option"}),average:()=>n.msg("Average",{desc:"Numeric Aggregation option"}),median:()=>n.msg("Median",{desc:"Numeric Aggregation option"}),count:()=>n.msg("Count rows",{desc:"Numeric Aggregation option"}),distinctcount:()=>n.msg("Count distinct",{desc:"Numeric Aggregation option"}),min:()=>n.msg("Minimum",{desc:"Numeric Aggregation option"}),max:()=>n.msg("Maximum",{desc:"Numeric Aggregation option"}),stddev:()=>n.msg("Standard deviation",{desc:"Numeric Aggregation option"}),rate:()=>n.msg("Rate",{desc:"Numeric Aggregation option"})},L={general:"123",percentage:"%",scientific:"SI"},S={time:()=>n.msg("Time",{desc:"Time format option"}),short:()=>n.msg("Short",{desc:"Short format option"}),long:()=>n.msg("Long",{desc:"Long format option"})},F={Auto:{auto:!0,label:()=>n.msg("Auto",{desc:"Automatic setting of the option"})},"1,000.00":{auto:!1,label:()=>"1,000.00",thousandSeparator:",",decimalSeparator:".",hiddenFor:"scientific"},"1.000,00":{auto:!1,label:()=>"1.000,00",thousandSeparator:".",decimalSeparator:",",hiddenFor:"scientific"},"1000.00":{auto:!1,label:()=>"1000.00",decimalSeparator:"."},"1000,00":{auto:!1,label:()=>"1000,00",decimalSeparator:","}},q={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 I=Object.defineProperty,M=Object.getOwnPropertyDescriptor,u=(d,t,e,i)=>{for(var s=i>1?void 0:i?M(t,e):t,o=d.length-1,r;o>=0;o--)(r=d[o])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&I(t,e,s),s};exports.LuzmoDisplaySettingsNumeric=class extends b.SizedMixin(C.LuzmoElement,{validSizes:Object.values(b.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}:delete t.aggregationWeight,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(x)]}_parseSavedNumericFormatSettings(){var t,e,i,s,o,r,m;if(this._displayMode=((t=this.slotContent)==null?void 0:t.subtype)==="duration"?"duration":"numeric",this._durationFormat=((i=(e=this.slotContent)==null?void 0:e.duration)==null?void 0:i.format)??"short",this._durationLevels=((o=(s=this.slotContent)==null?void 0:s.duration)==null?void 0:o.levels)??[1],this._displayMode==="duration")this._precision=2,this._commaDecimals=!1,this._thousandSeparator=!1;else{this._format=((r=this.slotContent)==null?void 0:r.format)??".0f";const l=f.decomposeNumericFormat(this._format??".0f");this._isAuto=((m=l.typeFormat)==null?void 0:m.includes("a"))??!1,["%","a%","y","ay"].includes(l.typeFormat)?this._displayAs="percentage":["s","as","w","aw"].includes(l.typeFormat)?this._displayAs="scientific":this._displayAs="general",this._precision=l.precision?Number.parseInt(l.precision.replace(".",""),10):this._displayAs==="scientific"?1:0,this._commaDecimals=["z","az","y","ay","w","aw"].includes(l.typeFormat),this._thousandSeparator=l.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=F[(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(){var o;const t=this._aggregationElement.value,e=this._aggregationFunc,i=this.slotContent.format;if(t!==(e==="weightedaverage"?"average":e)){if(this._aggregationFunc=t==="average"&&((o=this._aggregationWeightColumn)!=null&&o.column)?"weightedaverage":t,e==="rate"){const r=f.decomposeNumericFormat(i),m=["%","y","a%","ay"].includes(r.typeFormat);this.slotContent.subtype==="currency"&&m&&this._setNumericDisplayAs()}this._sendEvent(),(this._aggregationFunc==="rate"||e==="rate")&&this.requestUpdate()}}_setAggregationWeight(){var i;const t=this._aggregationWeightElement.value,e=this._aggregationFunc;if(t==="none")this._aggregationWeightColumn=void 0,this._aggregationFunc==="weightedaverage"&&(this._aggregationFunc="average");else{let s,o;for(const r of this.measureColumns??[]){const m=(i=r.columns)==null?void 0:i.find(l=>l.id===t);if(m){s=m,o=r.datasetId;break}}s&&(this._aggregationWeightColumn={column:s.id,set:o,columnSubType:s.subtype}),this._aggregationFunc==="average"&&(this._aggregationFunc="weightedaverage")}this._sendEvent(),this.requestUpdate(),(e==="weightedaverage"&&this._aggregationFunc==="average"||e==="average"&&this._aggregationFunc==="weightedaverage")&&this.requestUpdate()}_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,s,o,r;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=(s=this.slotContent)==null?void 0:s.aggregationWeight,this._isFormula=((o=this.slotContent)==null?void 0:o.formula)||((r=this.slotContent)==null?void 0:r.formulaId)),t.has("language")&&this.language!==h.getLocale()&&([...h.targetLocales].includes(this.language??"en")||this.language==="en")&&h.setLocale(this.language)}firstUpdated(){var t;(t=this.slotContent)!=null&&t.duration&&this._durationLevelsOverlay.addEventListener("slottable-request",e=>{this._renderDurationLevelMenu=e.data!==N.a})}_renderDurationLevelsSettings(){const t=q.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
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../runtime-CH-wFJgm.cjs"),D=require("../localized-decorator-C8sbzZGl.cjs");require("../index-CW1Gw-4O.cjs");require("../index-CnP-Q5Bw.cjs");require("../index-j8UKjHqY.cjs");require("../index-BB3seo3W.cjs");require("../index-CWdEMMU8.cjs");require("../index-XfBlZOz9.cjs");require("../index-BoXbQm2o.cjs");const f=require("../decompose-numeric-format-B3rVVHpO.cjs"),a=require("../property-Cu4Q1hS4.cjs"),g=require("../luzmo-icons-DonyjSXg.cjs"),N=require("../index-7UKBJjMo.cjs");require("../index-C0SNc5p1.cjs");const y=require("../calculate-data-item-icon-Dn-9Kd0U.cjs"),z=require("../localize-r7ALOUy_.cjs"),w=require("../state-fyl3IYMu.cjs"),c=require("../query-D5qWDopr.cjs"),C=require("../focusable-DAGGGYyz.cjs"),b=require("../sized-mixin-j_7aJM4b.cjs"),h=require("../set-locale-Cv8DAlcC.cjs"),x=":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-gap, var(--luzmo-spacing-2))}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-numeric-gap, var(--display-settings-numeric-gap))}.duration-angle-down-icon{margin-inline-start:var(--luzmo-numeric-duration-levels-dropdown-icon-margin-inline-start, var(--numeric-duration-levels-dropdown-icon-margin-inline-start))}.dataset-header{max-width:100%;font-weight:600;text-transform:uppercase;margin:.5rem 1rem;color:var(--luzmo-font-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:default}.no-weight-label{margin-left:1rem}.with-secondary-icon{clip-path:polygon(0 0,60% 0,65% 60%,100% 65%,100% 100%,0 100%)}.secondary-icon{position:absolute;bottom:45%;left:60%;width:auto;font-size:.75em;line-height:1}.data-icon-type{width:1.5rem;text-align:center;position:relative;display:inline-block}:host{--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-2 )}:host([size=s]){--display-settings-numeric-gap: var(--luzmo-spacing-3);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-1 )}:host([size=l]){--display-settings-numeric-gap: var(--luzmo-spacing-4);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-3 )}:host([size=xl]){--display-settings-numeric-gap: var(--luzmo-spacing-5);--numeric-duration-levels-dropdown-icon-margin-inline-start: var( --luzmo-spacing-4 )}",E={sum:()=>n.msg("Sum",{desc:"Numeric Aggregation option"}),cumulativesum:()=>n.msg("Cumulative sum",{desc:"Numeric Aggregation option"}),average:()=>n.msg("Average",{desc:"Numeric Aggregation option"}),median:()=>n.msg("Median",{desc:"Numeric Aggregation option"}),count:()=>n.msg("Count rows",{desc:"Numeric Aggregation option"}),distinctcount:()=>n.msg("Count distinct",{desc:"Numeric Aggregation option"}),min:()=>n.msg("Minimum",{desc:"Numeric Aggregation option"}),max:()=>n.msg("Maximum",{desc:"Numeric Aggregation option"}),stddev:()=>n.msg("Standard deviation",{desc:"Numeric Aggregation option"}),rate:()=>n.msg("Rate",{desc:"Numeric Aggregation option"})},L={general:"123",percentage:"%",scientific:"SI"},S={time:()=>n.msg("Time",{desc:"Time format option"}),short:()=>n.msg("Short",{desc:"Short format option"}),long:()=>n.msg("Long",{desc:"Long format option"})},F={Auto:{auto:!0,label:()=>n.msg("Auto",{desc:"Automatic setting of the option"})},"1,000.00":{auto:!1,label:()=>"1,000.00",thousandSeparator:",",decimalSeparator:".",hiddenFor:"scientific"},"1.000,00":{auto:!1,label:()=>"1.000,00",thousandSeparator:".",decimalSeparator:",",hiddenFor:"scientific"},"1000.00":{auto:!1,label:()=>"1000.00",decimalSeparator:"."},"1000,00":{auto:!1,label:()=>"1000,00",decimalSeparator:","}},q={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 I=Object.defineProperty,M=Object.getOwnPropertyDescriptor,u=(d,t,e,i)=>{for(var s=i>1?void 0:i?M(t,e):t,o=d.length-1,r;o>=0;o--)(r=d[o])&&(s=(i?r(t,e,s):r(s))||s);return i&&s&&I(t,e,s),s};exports.LuzmoDisplaySettingsNumeric=class extends b.SizedMixin(C.LuzmoElement,{validSizes:Object.values(b.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}:delete t.aggregationWeight,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(x)]}_parseSavedNumericFormatSettings(){var t,e,i,s,o,r,m;if(this._displayMode=((t=this.slotContent)==null?void 0:t.subtype)==="duration"?"duration":"numeric",this._durationFormat=((i=(e=this.slotContent)==null?void 0:e.duration)==null?void 0:i.format)??"short",this._durationLevels=((o=(s=this.slotContent)==null?void 0:s.duration)==null?void 0:o.levels)??[1],this._displayMode==="duration")this._precision=2,this._commaDecimals=!1,this._thousandSeparator=!1;else{this._format=((r=this.slotContent)==null?void 0:r.format)??".0f";const l=f.decomposeNumericFormat(this._format??".0f");this._isAuto=((m=l.typeFormat)==null?void 0:m.includes("a"))??!1,["%","a%","y","ay"].includes(l.typeFormat)?this._displayAs="percentage":["s","as","w","aw"].includes(l.typeFormat)?this._displayAs="scientific":this._displayAs="general",this._precision=l.precision?Number.parseInt(l.precision.replace(".",""),10):this._displayAs==="scientific"?1:0,this._commaDecimals=["z","az","y","ay","w","aw"].includes(l.typeFormat),this._thousandSeparator=l.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=F[(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(){var o;const t=this._aggregationElement.value,e=this._aggregationFunc,i=this.slotContent.format;if(t!==(e==="weightedaverage"?"average":e)){if(this._aggregationFunc=t==="average"&&((o=this._aggregationWeightColumn)!=null&&o.column)?"weightedaverage":t,e==="rate"){const r=f.decomposeNumericFormat(i),m=["%","y","a%","ay"].includes(r.typeFormat);this.slotContent.subtype==="currency"&&m&&this._setNumericDisplayAs()}this._sendEvent(),(this._aggregationFunc==="rate"||e==="rate")&&this.requestUpdate()}}_setAggregationWeight(){var i;const t=this._aggregationWeightElement.value,e=this._aggregationFunc;if(t==="none")this._aggregationWeightColumn=void 0,this._aggregationFunc==="weightedaverage"&&(this._aggregationFunc="average");else{let s,o;for(const r of this.measureColumns??[]){const m=(i=r.columns)==null?void 0:i.find(l=>l.id===t);if(m){s=m,o=r.datasetId;break}}s&&(this._aggregationWeightColumn={column:s.id,set:o,columnSubType:s.subtype}),this._aggregationFunc==="average"&&(this._aggregationFunc="weightedaverage")}this._sendEvent(),this.requestUpdate(),(e==="weightedaverage"&&this._aggregationFunc==="average"||e==="average"&&this._aggregationFunc==="weightedaverage")&&this.requestUpdate()}_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,s,o,r;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=(s=this.slotContent)==null?void 0:s.aggregationWeight,this._isFormula=((o=this.slotContent)==null?void 0:o.formula)||((r=this.slotContent)==null?void 0:r.formulaId)),t.has("language")&&this.language!==h.getLocale()&&([...h.targetLocales].includes(this.language??"en")||this.language==="en")&&h.setLocale(this.language)}firstUpdated(){var t;(t=this.slotContent)!=null&&t.duration&&this._durationLevelsOverlay.addEventListener("slottable-request",e=>{this._renderDurationLevelMenu=e.data!==N.a})}_renderDurationLevelsSettings(){const t=q.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}
|
|
@@ -37,7 +37,7 @@ import { r as I } from "../state-nDsQPund.js";
|
|
|
37
37
|
import { e as d } from "../query-Ddbd72Um.js";
|
|
38
38
|
import { L as M } from "../focusable-BbymtxWI.js";
|
|
39
39
|
import { S as O, E as k } from "../sized-mixin-BGzkX2g1.js";
|
|
40
|
-
import { g as W, t as T, s as U } from "../set-locale-
|
|
40
|
+
import { g as W, t as T, s as U } from "../set-locale-DBtuQRTk.js";
|
|
41
41
|
const w = () => {
|
|
42
42
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
43
43
|
const t = document.createElement("style");
|
|
@@ -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 t=require("../runtime-CH-wFJgm.cjs"),O=require("../localized-decorator-C8sbzZGl.cjs"),x=require("../luzmo-icons-NEyaMpEM-DQC9-oWS.cjs"),i=require("../base-D76d76ww-tT6yr8eb.cjs"),S=require("../checkbox-mixin-Do7EgtpQ-D3m-dMTI.cjs");require("../index-j8UKjHqY.cjs");require("../index-BB3seo3W.cjs");require("../index-CWdEMMU8.cjs");require("../index-XfBlZOz9.cjs");const D=require("../decompose-numeric-format-B3rVVHpO.cjs"),s=require("../property-Cu4Q1hS4.cjs"),I=require("../state-fyl3IYMu.cjs"),g=require("../query-D5qWDopr.cjs"),q=require("../focusable-DAGGGYyz.cjs"),L=require("../sized-mixin-j_7aJM4b.cjs"),f=require("../set-locale-
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../runtime-CH-wFJgm.cjs"),O=require("../localized-decorator-C8sbzZGl.cjs"),x=require("../luzmo-icons-NEyaMpEM-DQC9-oWS.cjs"),i=require("../base-D76d76ww-tT6yr8eb.cjs"),S=require("../checkbox-mixin-Do7EgtpQ-D3m-dMTI.cjs");require("../index-j8UKjHqY.cjs");require("../index-BB3seo3W.cjs");require("../index-CWdEMMU8.cjs");require("../index-XfBlZOz9.cjs");const D=require("../decompose-numeric-format-B3rVVHpO.cjs"),s=require("../property-Cu4Q1hS4.cjs"),I=require("../state-fyl3IYMu.cjs"),g=require("../query-D5qWDopr.cjs"),q=require("../focusable-DAGGGYyz.cjs"),L=require("../sized-mixin-j_7aJM4b.cjs"),f=require("../set-locale-Cv8DAlcC.cjs");/*! * Lucero - The design system for Luzmo.
|
|
21
21
|
*
|
|
22
22
|
* Copyright © 2025 Luzmo
|
|
23
23
|
* All rights reserved.
|
|
@@ -32,7 +32,7 @@ import { r as N } from "../state-nDsQPund.js";
|
|
|
32
32
|
import { e as f } from "../query-Ddbd72Um.js";
|
|
33
33
|
import { L as R } from "../focusable-BbymtxWI.js";
|
|
34
34
|
import { S as M, E as U } from "../sized-mixin-BGzkX2g1.js";
|
|
35
|
-
import { g as q, t as V, s as G } from "../set-locale-
|
|
35
|
+
import { g as q, t as V, s as G } from "../set-locale-DBtuQRTk.js";
|
|
36
36
|
const S = () => {
|
|
37
37
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
38
38
|
const e = document.createElement("style");
|
|
@@ -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 c=require("../localized-decorator-C8sbzZGl.cjs");require("../runtime-CH-wFJgm.cjs");const v=require("../periods.const-DDUxMjPi.cjs"),e=require("../property-Cu4Q1hS4.cjs"),p=require("../focusable-DAGGGYyz.cjs"),h=require("../sized-mixin-j_7aJM4b.cjs"),m=require("../set-locale-
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../localized-decorator-C8sbzZGl.cjs");require("../runtime-CH-wFJgm.cjs");const v=require("../periods.const-DDUxMjPi.cjs"),e=require("../property-Cu4Q1hS4.cjs"),p=require("../focusable-DAGGGYyz.cjs"),h=require("../sized-mixin-j_7aJM4b.cjs"),m=require("../set-locale-Cv8DAlcC.cjs");require("../draggable-data-item-level/index.cjs");const y=":host{--draggable-data-item-sublevels-margin-vertical: var(--luzmo-spacing-1);--draggable-data-item-sublevels-gap: 0}:host([size=s]){--draggable-data-item-sublevels-margin-vertical: var(--luzmo-spacing-1)}:host([size=l]){--draggable-data-item-sublevels-margin-vertical: var(--luzmo-spacing-2)}:host([size=xl]){--draggable-data-item-sublevels-margin-vertical: var(--luzmo-spacing-3)}.draggable-data-item-sublevels{display:flex;flex-direction:column;gap:var(--luzmo-draggable-data-item-sublevels-gap, var(--draggable-data-item-sublevels-gap));margin:var(--luzmo-draggable-data-item-sublevels-margin-vertical, var(--draggable-data-item-sublevels-margin-vertical)) 0}:host{box-sizing:border-box}";var z=Object.defineProperty,D=Object.getOwnPropertyDescriptor,t=(n,l,s,i)=>{for(var a=i>1?void 0:i?D(l,s):l,g=n.length-1,o;g>=0;g--)(o=n[g])&&(a=(i?o(l,s,a):o(a))||a);return i&&a&&z(l,s,a),a};exports.LuzmoDraggableDataItem=class extends h.SizedMixin(p.LuzmoElement,{validSizes:["s","m","l","xl"],noDefaultSize:!0}){constructor(){super(...arguments),this.language="en",this.data={}}willUpdate(l){l.has("language")&&this.language!==m.getLocale()&&([...m.targetLocales].includes(this.language??"en")||this.language==="en")&&m.setLocale(this.language)}renderSublevels(){var s,i,a,g,o;let l;if(((s=this.data)==null?void 0:s.type)==="datetime")return l=((i=this.data)==null?void 0:i.subtype)==="date"?this.data.lowestLevel??5:this.data.lowestLevel??9,e.x`
|
|
21
21
|
<div class="draggable-data-item-sublevels">
|
|
22
22
|
${Array.from({length:l},(b,r)=>{const d=v.DATETIME_LEVELS[r].i18n(),u={...this.data,level:r+1};return e.x`<luzmo-draggable-data-item-level
|
|
23
23
|
sublevel
|
|
@@ -23,7 +23,7 @@ import { D as p } from "../periods.const-U2Ll1qq1.js";
|
|
|
23
23
|
import { x as n, r as h, n as a } from "../property-DCzt3DR1.js";
|
|
24
24
|
import { L as f } from "../focusable-BbymtxWI.js";
|
|
25
25
|
import { S as v } from "../sized-mixin-BGzkX2g1.js";
|
|
26
|
-
import { g as y, t as x, s as $ } from "../set-locale-
|
|
26
|
+
import { g as y, t as x, s as $ } from "../set-locale-DBtuQRTk.js";
|
|
27
27
|
import "../draggable-data-item-level/index.js";
|
|
28
28
|
const z = () => {
|
|
29
29
|
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"});const w=require("../get-css-variable-DLiZYZEi.cjs"),g=require("../index-DOs8Fh6m.cjs"),$=require("../localized-decorator-C8sbzZGl.cjs"),v=require("../runtime-CH-wFJgm.cjs"),A=require("../task-CwmAXlv0.cjs"),y=require("../luzmo-icons-DonyjSXg.cjs");require("../index-C0SNc5p1.cjs");const E=require("../index-DpHum3lw.cjs"),T=require("../localize-r7ALOUy_.cjs"),n=require("../property-Cu4Q1hS4.cjs"),q=require("../state-fyl3IYMu.cjs"),P=require("../query-D5qWDopr.cjs"),O=require("../focusable-DAGGGYyz.cjs"),I=require("../sized-mixin-j_7aJM4b.cjs"),C=require("../set-locale-
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../get-css-variable-DLiZYZEi.cjs"),g=require("../index-DOs8Fh6m.cjs"),$=require("../localized-decorator-C8sbzZGl.cjs"),v=require("../runtime-CH-wFJgm.cjs"),A=require("../task-CwmAXlv0.cjs"),y=require("../luzmo-icons-DonyjSXg.cjs");require("../index-C0SNc5p1.cjs");const E=require("../index-DpHum3lw.cjs"),T=require("../localize-r7ALOUy_.cjs"),n=require("../property-Cu4Q1hS4.cjs"),q=require("../state-fyl3IYMu.cjs"),P=require("../query-D5qWDopr.cjs"),O=require("../focusable-DAGGGYyz.cjs"),I=require("../sized-mixin-j_7aJM4b.cjs"),C=require("../set-locale-Cv8DAlcC.cjs");require("../slot-menu/index.cjs");/**
|
|
21
21
|
* @license
|
|
22
22
|
* Copyright 2021 Google LLC
|
|
23
23
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -31,7 +31,7 @@ import { r as $ } from "../state-nDsQPund.js";
|
|
|
31
31
|
import { e as L } from "../query-Ddbd72Um.js";
|
|
32
32
|
import { L as j } from "../focusable-BbymtxWI.js";
|
|
33
33
|
import { S as F } from "../sized-mixin-BGzkX2g1.js";
|
|
34
|
-
import { g as V, t as q, s as H } from "../set-locale-
|
|
34
|
+
import { g as V, t as q, s as H } from "../set-locale-DBtuQRTk.js";
|
|
35
35
|
import "../slot-menu/index.js";
|
|
36
36
|
const A = () => {
|
|
37
37
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
@@ -17,4 +17,4 @@
|
|
|
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 e={s00decbd8fed4f501:"Máximo",s0456d2ad905847d9:"último",s079a052719914d71:"Categoría",s08098b07b4c86ff2:"<=",s08108707b4ce87d4:">=",s088e3b07b5394bc3:"ig",s099b18e1bd8a1154:"Horas",s09c2b609dff29061:"Suma acumulativa",s0acece4c687177a9:"Números de trimestre",s0bb151c9319a6813:"Eje X",s0bca0c91195d8d6d:"cont",s1125d159f7e64df5:"Mostrar",s11326fd2590f4e5e:"Por defecto",s122f7f3f1a22ea50:"no ig",s13f5793e33ebda4f:"entre",s146475c4daa430ed:"Decimales",s178b06f4d02cfd40:"no falta",s184501a399a815dc:"Trimestres",s18498398aeb37b07:"La semana comienza el",s187528426100c44e:"Sin datos",s1cdb6b07fe827486:"Número de semana",s1e593719b55d60c0:"MTD",s1f0916624a87d415:"Día del año",s2454d1f117573457:"Precisión",s247d110f13a3a288:"Día de la semana",s26273c258ddde0e1:"Seleccionar...",s2695506122ffd614:"Segundo en el minuto",s2718cebf7de190e1:"está entre",s2798d16f4e04857e:"Minuto en la hora",s281f1d977ddc0ebe:"Número de mes",s2ea38ce3da088075:"Períodos",s2fb2a49481123d6a:"Semanas",s2fedf26ef08343d4:"es igual a",s3924c3d773a80312:"último disp",s3c6455b19fb1c3e4:"Cambio absoluto",s3dcf7b255596a2c3:"Desviación estándar",s441accd1cd3484c9:"Minuto",s463b8c4e92751ba5:"Opciones",s467b030b9a34b3c8:"Promedio",s48e186fb300e5464:"Tiempo",s496c60f73bdf5725:"Agregación",s4b30fad1c34464e1:"mayor o igual que",s4b58c01e2578f5e4:"Leyenda",s4e585eeea351a038:"contiene",s4efbcab48a433013:"Largo",s4f27f6b48a68b5c2:"Bloquear",s519d0aa80bbafd42:"semana hasta la fecha",s57ace73e7c6e719f:"no está en",s58ec693e33483873:"menor que",s5d929ff1619ac0c9:"Buscar",s5e2654fb8587f442:"Clonar",s602805b1eb3106c6:"Eje Y",s6031881827829901:"24h",s60b34c3c17dc35bd:"Años",s64ef2a6c2dd1d3d1:"Editar",s66722bc2ea775e05:"Desactivado",s669b18c6d2d9c95b:"Ninguno",s66dcbbc0355c2759:"Domingo",s680f01021b5e339d:"Semana",s6b0bffd88024372f:"Hora",s6de3d6e9660857a1:"Ejemplo",s708bbac083d05109:"no empieza con",s70a773eb3133e5fa:"mes hasta la fecha",s716a6024e3fe999c:"Mostrar",
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={s00decbd8fed4f501:"Máximo",s0456d2ad905847d9:"último",s079a052719914d71:"Categoría",s08098b07b4c86ff2:"<=",s08108707b4ce87d4:">=",s088e3b07b5394bc3:"ig",s099b18e1bd8a1154:"Horas",s09c2b609dff29061:"Suma acumulativa",s0acece4c687177a9:"Números de trimestre",s0bb151c9319a6813:"Eje X",s0bca0c91195d8d6d:"cont",s1125d159f7e64df5:"Mostrar",s11326fd2590f4e5e:"Por defecto",s122f7f3f1a22ea50:"no ig",s13f5793e33ebda4f:"entre",s146475c4daa430ed:"Decimales",s178b06f4d02cfd40:"no falta",s184501a399a815dc:"Trimestres",s18498398aeb37b07:"La semana comienza el",s187528426100c44e:"Sin datos",s1cdb6b07fe827486:"Número de semana",s1e593719b55d60c0:"MTD",s1f0916624a87d415:"Día del año",s2454d1f117573457:"Precisión",s247d110f13a3a288:"Día de la semana",s26273c258ddde0e1:"Seleccionar...",s2695506122ffd614:"Segundo en el minuto",s2718cebf7de190e1:"está entre",s2798d16f4e04857e:"Minuto en la hora",s281f1d977ddc0ebe:"Número de mes",s2ea38ce3da088075:"Períodos",s2fb2a49481123d6a:"Semanas",s2fedf26ef08343d4:"es igual a",s3924c3d773a80312:"último disp",s3c6455b19fb1c3e4:"Cambio absoluto",s3dcf7b255596a2c3:"Desviación estándar",s441accd1cd3484c9:"Minuto",s463b8c4e92751ba5:"Opciones",s467b030b9a34b3c8:"Promedio",s48e186fb300e5464:"Tiempo",s496c60f73bdf5725:"Agregación",s4b30fad1c34464e1:"mayor o igual que",s4b58c01e2578f5e4:"Leyenda",s4e585eeea351a038:"contiene",s4efbcab48a433013:"Largo",s4f27f6b48a68b5c2:"Bloquear",s519d0aa80bbafd42:"semana hasta la fecha",s57ace73e7c6e719f:"no está en",s58ec693e33483873:"menor que",s5d929ff1619ac0c9:"Buscar",s5e2654fb8587f442:"Clonar",s602805b1eb3106c6:"Eje Y",s6031881827829901:"24h",s60b34c3c17dc35bd:"Años",s64ef2a6c2dd1d3d1:"Editar",s66722bc2ea775e05:"Desactivado",s669b18c6d2d9c95b:"Ninguno",s66dcbbc0355c2759:"Domingo",s680f01021b5e339d:"Semana",s6b0bffd88024372f:"Hora",s6de3d6e9660857a1:"Ejemplo",s708bbac083d05109:"no empieza con",s70a773eb3133e5fa:"mes hasta la fecha",s716a6024e3fe999c:"Mostrar",s74dcd519e6563a26:"WTD",s7632fc9aa12bf382:"Meses",s7a6878d41ffac284:"último completado",s846876f9b712e843:"no es igual a",s862f5319f0256b94:"QTD",s8665d029b5cb8b24:"Totales generales",s8a56a8c8bd19c9c7:"falta",s8d0259032729869d:"Segundo",s965c503c3e42fdfe:"Activado",s9689e928323dc124:"último (período) completado",s981f232bd33ec927:"Tasa",s9854300ef4a37d18:"no termina en",s987abe19fac8d108:"Suma",s98c337186f2d57c6:"Ancho del bin",s98db41a3eb532203:"año hasta la fecha",s991d216e6efc157c:"Sin resultados",s996319f23f6cf0b5:"termina en",s9b9009d4a5004fb8:"Agrupamiento",s9b9d6ce29d05a298:"menor o igual que",s9e40e59654c8ad67:"Columna",sa3c9339de23c1752:"Formato",sa6ab5184d6315895:"De",sa6f2645578b2d2bc:"Año",sa7effa06c0f6784c:"mayor que",sa8beb6b1182241ac:"Filtros",sac8256732f2ee1e5:"Datos",sac8b59943205b14f:"próximo (período) completo",sac94bb71f7737997:"Mediana",sacae74732f544fca:"Días",saf63b34c8601a6e1:">",sb1f654608a3eea75:"Día de la semana",sb3b793ff5cc1bc39:"próximos (x) períodos",sb47daaf9e1c4a905:"Mes",sb5b295e3a7500b9c:"Niveles de duración",sb6513caf69971fb5:"Corto",sb70671db5700ff60:"no termina en",sb93e5af29aca2e3d:"falta",sbbb97b1c63507dc0:"Número",sbeebe911264bed23:"últimos (x) períodos disponibles",sc1bf67624fa6d498:"% de cambio",sc4842e5b8b90466a:"Segundos",sc6e49f3d37e54030:"Hora en el día",sc6f5a4fc0583d734:"está en",sc86e72c4fdd4e0ec:"Contar distinto",scb7bab1a17663a6c:"YTD",scf2bb2b0de9cdb8a:"Milisegundo",sd237be440de38cc7:"Trimestre",sd28141a332dc31fa:"Día del mes",sd5b1040899eb149d:"siguiente completo",sd66a74fff07a11fb:"{count} elementos seleccionados",sd7ebafacf602c9bd:"Letra",sdb73788b3c975f16:"Automático",sdc673e73b5c13aea:"Eliminar",sdebe99a43259a451:"Contar filas",sdfeb2151b9e78d4d:"no contiene",se0955919920ee87d:"Día",se211e3d21bbf3bff:"Medida",se2b7530e30fa607d:"Comparación de períodos",se415bbea6c976fb1:"Agrupar por",se5316cbaa025f028:"siguiente",se715be190539325a:"hace",se9e535bb9591039e:"Seleccionar una expresión",se9ff6e9a514d8cf9:"Lunes",seb4eae68d45315b7:"Mínimo",seb9c440de1ce6044:"empieza con",sec2f608650e36ac5:"último período completado",secf42ec1c7c47be2:"no falta",see0ec27fb03d880e:"Minutos",sef49aec68fd1dc66:"Nombre",sf095cc47a4ff9c3d:"Fórmula",sf518b78d9734f57b:"no empieza con",sf6cda8263b3170af:"Usar período hasta la fecha para períodos incompletos",sf70eaf9ab4c93082:"no cont",sf9c10516a62a23db:"Mostrar como",sfa2d0aa30ee5aa58:"últimos (x) períodos",sfad9ed343e97551c:"Valor pasado",sfb9e6d0c6baa99f5:"Coincide con el rango de fechas visible en el gráfico o tabla",sfbac36245480ddbc:"Separador",sfda1c9d0be35cec8:"trimestre hasta la fecha"};exports.templates=e;
|
|
@@ -82,7 +82,6 @@ const e = {
|
|
|
82
82
|
s708bbac083d05109: "no empieza con",
|
|
83
83
|
s70a773eb3133e5fa: "mes hasta la fecha",
|
|
84
84
|
s716a6024e3fe999c: "Mostrar",
|
|
85
|
-
s71a5c9f4b68ef4d4: "Contar",
|
|
86
85
|
s74dcd519e6563a26: "WTD",
|
|
87
86
|
s7632fc9aa12bf382: "Meses",
|
|
88
87
|
s7a6878d41ffac284: "último completado",
|
|
@@ -126,6 +125,7 @@ const e = {
|
|
|
126
125
|
sc4842e5b8b90466a: "Segundos",
|
|
127
126
|
sc6e49f3d37e54030: "Hora en el día",
|
|
128
127
|
sc6f5a4fc0583d734: "está en",
|
|
128
|
+
sc86e72c4fdd4e0ec: "Contar distinto",
|
|
129
129
|
scb7bab1a17663a6c: "YTD",
|
|
130
130
|
scf2bb2b0de9cdb8a: "Milisegundo",
|
|
131
131
|
sd237be440de38cc7: "Trimestre",
|
|
@@ -135,6 +135,7 @@ const e = {
|
|
|
135
135
|
sd7ebafacf602c9bd: "Letra",
|
|
136
136
|
sdb73788b3c975f16: "Automático",
|
|
137
137
|
sdc673e73b5c13aea: "Eliminar",
|
|
138
|
+
sdebe99a43259a451: "Contar filas",
|
|
138
139
|
sdfeb2151b9e78d4d: "no contiene",
|
|
139
140
|
se0955919920ee87d: "Día",
|
|
140
141
|
se211e3d21bbf3bff: "Medida",
|
|
@@ -142,7 +143,6 @@ const e = {
|
|
|
142
143
|
se415bbea6c976fb1: "Agrupar por",
|
|
143
144
|
se5316cbaa025f028: "siguiente",
|
|
144
145
|
se715be190539325a: "hace",
|
|
145
|
-
se8e9d799a9e267ce: "Conteo distinto",
|
|
146
146
|
se9e535bb9591039e: "Seleccionar una expresión",
|
|
147
147
|
se9ff6e9a514d8cf9: "Lunes",
|
|
148
148
|
seb4eae68d45315b7: "Mínimo",
|
|
@@ -158,6 +158,7 @@ const e = {
|
|
|
158
158
|
sf9c10516a62a23db: "Mostrar como",
|
|
159
159
|
sfa2d0aa30ee5aa58: "últimos (x) períodos",
|
|
160
160
|
sfad9ed343e97551c: "Valor pasado",
|
|
161
|
+
sfb9e6d0c6baa99f5: "Coincide con el rango de fechas visible en el gráfico o tabla",
|
|
161
162
|
sfbac36245480ddbc: "Separador",
|
|
162
163
|
sfda1c9d0be35cec8: "trimestre hasta la fecha"
|
|
163
164
|
};
|
|
@@ -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-j8UKjHqY.cjs");require("../index-O1g_4FMC.cjs");require("../index-BB3seo3W.cjs");require("../index-XfBlZOz9.cjs");const e=require("../property-Cu4Q1hS4.cjs"),f=require("../runtime-CH-wFJgm.cjs"),g=require("../localized-decorator-C8sbzZGl.cjs"),h=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const I=require("../set-locale-
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-j8UKjHqY.cjs");require("../index-O1g_4FMC.cjs");require("../index-BB3seo3W.cjs");require("../index-XfBlZOz9.cjs");const e=require("../property-Cu4Q1hS4.cjs"),f=require("../runtime-CH-wFJgm.cjs"),g=require("../localized-decorator-C8sbzZGl.cjs"),h=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const I=require("../set-locale-Cv8DAlcC.cjs"),y=require("../calculate-data-item-icon-Dn-9Kd0U.cjs"),D=require("../localize-r7ALOUy_.cjs"),z=":host{--var: blue}:host{font-family:var(--luzmo-font-family)}";var b=Object.defineProperty,L=Object.getOwnPropertyDescriptor,c=(d,a,i,l)=>{for(var t=l>1?void 0:l?L(a,i):a,o=d.length-1,s;o>=0;o--)(s=d[o])&&(t=(l?s(a,i,t):s(t))||t);return l&&t&&b(a,i,t),t};exports.LuzmoFilterDataItemPicker=class extends h.m(h.It,{validSizes:Object.values(h.d$1)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this.hasLabel=!1,this.icons="only-menu",this.allowEmpty=!1,this.placeholder="",this.dataItemId="",this.loading=!1,this.invalid=!1,this.datasetsDataItems=[]}static get styles(){return[e.r(z)]}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("data-item-selected",{bubbles:!0,composed:!0,cancelable:!0,detail:{dataItem:this._dataItemSelected}}))}setDataItem(a){const i=a==null?void 0:a.detail;for(const l of this.datasetsDataItems){const t=l.columns,o=l.formulas,s=t.find(u=>u.id===i),n=u=>{this._dataItemSelected=u,this.dataItemId=i,this._sendChangeEvent()};if(s){n(s);break}const r=o.find(u=>u.id===i);if(r){n(r);break}}}_findDataItemInDatasetsDataItems(a){for(const i of this.datasetsDataItems){const l=i.columns,t=i.formulas,o=l==null?void 0:l.find(n=>n.id===a);if(o){this._dataItemSelected=o,this._dataItemSelected.datasetId=i.id,["hierarchy","datetime"].includes(o.type??"")&&(this._dataItemSelected.lowestLevel=o.lowestLevel);break}const s=t==null?void 0:t.find(n=>n.id===a);if(s){this._dataItemSelected=s,this._dataItemSelected.isFormula=!0,this._dataItemSelected.datasetId=i.id,["hierarchy","datetime"].includes(s.type??"")&&(this._dataItemSelected.lowestLevel=s.lowestLevel);break}}}willUpdate(a){var o,s,n;const i=a.has("language"),l=a.has("dataItemId"),t=a.has("datasetsDataItems");if(i&&this.language!==I.getLocale()&&([...I.targetLocales].includes(this.language??"en")||this.language==="en")&&I.setLocale(this.language),(l||t)&&(this._findDataItemInDatasetsDataItems(this.dataItemId),!this._dataItemSelected&&!this.allowEmpty&&!this.loading)){for(const r of this.datasetsDataItems)if(((o=r==null?void 0:r.columns)==null?void 0:o.length)>0){this._dataItemSelected=r.columns[0];break}else if(((s=r==null?void 0:r.formulas)==null?void 0:s.length)>0){this._dataItemSelected=r.formulas[0];break}this.dataItemId=(n=this._dataItemSelected)==null?void 0:n.id,this._sendChangeEvent()}}render(){let a=e.x``;for(const t of this.datasetsDataItems??[]){const o=(t==null?void 0:t.columns)??[],s=(t==null?void 0:t.formulas)??[],n=m=>{const p=e.x`
|
|
21
21
|
<luzmo-icon
|
|
22
22
|
slot="icon"
|
|
23
23
|
.size=${this.size}
|
|
@@ -26,7 +26,7 @@ import { m as z } from "../runtime-BSHB_4iz.js";
|
|
|
26
26
|
import { l as b } from "../localized-decorator-DEV_0e49.js";
|
|
27
27
|
import { m as y, b as I, I as v } from "../base-D76d76ww-BGkuhs54.js";
|
|
28
28
|
import "../focusable-BxtpnzWp-DJQkL8Zv.js";
|
|
29
|
-
import { g as x, t as S, s as w } from "../set-locale-
|
|
29
|
+
import { g as x, t as S, s as w } from "../set-locale-DBtuQRTk.js";
|
|
30
30
|
import { c as _ } from "../calculate-data-item-icon-Dpvf1aLI.js";
|
|
31
31
|
import { l as D } from "../localize-BX7q0S0M.js";
|
|
32
32
|
const p = () => {
|
|
@@ -17,4 +17,4 @@
|
|
|
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 e=require("../index-
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-cZZaTpmM.cjs");Object.defineProperty(exports,"LuzmoFilterExpressionPicker",{enumerable:!0,get:()=>e.LuzmoFilterExpressionPicker});
|
|
@@ -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 { L as u } from "../index-
|
|
20
|
+
import { L as u } from "../index-CcvMWOPD.js";
|
|
21
21
|
const l = () => {
|
|
22
22
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
23
23
|
const o = document.createElement("style");
|
|
@@ -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 u=require("../property-Cu4Q1hS4.cjs"),U=require("../localized-decorator-C8sbzZGl.cjs");require("../runtime-CH-wFJgm.cjs");const k=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const v=require("../set-locale-
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../property-Cu4Q1hS4.cjs"),U=require("../localized-decorator-C8sbzZGl.cjs");require("../runtime-CH-wFJgm.cjs");const k=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const v=require("../set-locale-Cv8DAlcC.cjs"),P=require("../index-DpHum3lw.cjs"),y=require("../state-fyl3IYMu.cjs"),K=require("../index-cZZaTpmM.cjs");require("../filter-data-item-picker/index.cjs");require("../filter-value-picker/index.cjs");const j=":host{display:flex;flex-direction:row;gap:var(--luzmo-filter-item-gap, var(--filter-item-gap))}:host{--filter-item-gap: var(--luzmo-spacing-3)}:host([size=s]){--filter-item-gap: var(--luzmo-spacing-2)}:host([size=m]){--filter-item-gap: var(--luzmo-spacing-3)}:host([size=l]){--filter-item-gap: calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1))}:host([size=xl]){--filter-item-gap: var(--luzmo-spacing-4)}";var V=Object.defineProperty,A=Object.getOwnPropertyDescriptor,l=(T,t,e,i)=>{for(var s=i>1?void 0:i?A(t,e):t,r=T.length-1,a;r>=0;r--)(a=T[r])&&(s=(i?a(t,e,s):a(s))||s);return i&&s&&V(t,e,s),s};exports.LuzmoFilterItem=class extends k.m(k.It,{validSizes:Object.values(k.d$1)}){constructor(){super(...arguments),this.apiUrl="https://api.luzmo.com",this.language="en",this.contentLanguage="en",this.filter={},this._loading=!1,this._datasetsDataItems=[]}static get styles(){return[u.r(j)]}connectedCallback(){super.connectedCallback();const t={};this.apiUrl&&(t.apiUrl=this.apiUrl),this.cacheTime&&(t.staleTime=this.cacheTime,t.gcTime=this.cacheTime*2),this.authKey&&this.authToken&&(t.authKey=this.authKey,t.authToken=this.authToken),P.dataBroker.configure(t)}async _fetchDatasetDataItems(){if(!this.datasetIds||this.datasetIds.length===0){this._error="Missing dataset ids to fetch columns & formulas";return}this._loading=!0,this._error=null;try{const t=await P.dataBroker.fetchDatasetsWithColumnsAndFormulas(this.datasetIds);for(const e of t)for(const i of[...e.columns,...e.formulas])i.datasetId=e.id;this._datasetsDataItems=t}catch(t){console.error("Error fetching dataset columns & formulas:",t),this._error=t instanceof Error?t.message:"Unknown error",this._datasetsDataItems=[]}finally{this._loading=!1}}willUpdate(t){var a,o,p,h,c,d,n,f,I,_,z,x,b,F,L;const e=t.has("filter"),i=t.has("language"),s=t.has("datasetIds"),r=t.has("_datasetsDataItems");if(i&&this.language!==v.getLocale()&&([...v.targetLocales].includes(this.language??"en")||this.language==="en")&&v.setLocale(this.language),e||s||r&&((p=(o=(a=this.filter)==null?void 0:a.parameters)==null?void 0:o[0])!=null&&p.columnId)&&((d=(c=(h=this.filter)==null?void 0:h.parameters)==null?void 0:c[0])!=null&&d.datasetId||(I=(f=(n=this.filter)==null?void 0:n.parameters)==null?void 0:f[0])!=null&&I.formulaId)){const g=this._datasetsDataItems.find(m=>{var $,D;return m.id===((D=($=this.filter.parameters)==null?void 0:$[0])==null?void 0:D.datasetId)});if(g){for(const m of[...g.columns||[],...(g==null?void 0:g.formulas)||[]])if(m.id===((z=(_=this.filter.parameters)==null?void 0:_[0])==null?void 0:z.columnId)||m.id===((b=(x=this.filter.parameters)==null?void 0:x[0])==null?void 0:b.formulaId)){this._type=m.type,this._subType=m.subtype,this._isFormula=m.id===((L=(F=this.filter.parameters)==null?void 0:F[0])==null?void 0:L.formulaId);break}}}s&&this._fetchDatasetDataItems()}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("filter-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{filter:this.filter}}))}setFilterDataItem(t){var a,o,p,h,c,d,n,f,I,_,z,x,b,F,L,g,m,$,D,q,w,E,S,C,O;const e=this._type,i=((p=(o=(a=this.filter)==null?void 0:a.parameters)==null?void 0:o[0])==null?void 0:p.columnId)||((d=(c=(h=this.filter)==null?void 0:h.parameters)==null?void 0:c[0])==null?void 0:d.formulaId),s=(f=(n=t.detail)==null?void 0:n.dataItem)==null?void 0:f.id;this._type=(_=(I=t.detail)==null?void 0:I.dataItem)==null?void 0:_.type,this._subType=(x=(z=t.detail)==null?void 0:z.dataItem)==null?void 0:x.subtype,this._isFormula=(F=(b=t.detail)==null?void 0:b.dataItem)==null?void 0:F.isFormula;const r=K.getValidExpressions(this._type,this._subType,this._isFormula);this.filter=structuredClone(this.filter??{}),r!=null&&r.includes((L=this.filter)==null?void 0:L.expression)||(this.filter.expression=(g=r==null?void 0:r[0])==null?void 0:g.expression),this.filter.parameters=((m=this.filter)==null?void 0:m.parameters)??[],this.filter.parameters[0]={datasetId:(D=($=t.detail)==null?void 0:$.dataItem)==null?void 0:D.datasetId},this._isFormula?this.filter.parameters[0].formulaId=(w=(q=t.detail)==null?void 0:q.dataItem)==null?void 0:w.id:this.filter.parameters[0].columnId=(S=(E=t.detail)==null?void 0:E.dataItem)==null?void 0:S.id,(O=(C=t.detail)==null?void 0:C.dataItem)!=null&&O.lowestLevel,e!==this._type?this._type==="hierarchy"?(this.filter.expression="? like ?",this.filter.parameters[1]=""):this._type==="numeric"?(this.filter.expression="? > ?",this.filter.parameters[1]=0):this._type==="datetime"?(this.filter.expression="? < ?",this.filter.parameters[1]=new Date().toISOString()):(this.filter.expression="? is not null",this.filter.parameters=[this.filter.parameters[0]]):i!==s&&this._type==="hierarchy"&&(this.filter.parameters[1]=["? in ?","? not in ?"].includes(this.filter.expression)?[]:""),this._sendChangeEvent()}setFilterExpression(t){var s,r,a,o,p,h,c,d;const e=structuredClone(this.filter??{}),i=e.expression;if(e.expression=(s=t.detail)==null?void 0:s.expression,i!==e.expression){if(["? is null","? is not null"].includes(e.expression))e.parameters=[e.parameters[0]];else if(this._type==="datetime")if(["YTD","QTD","MTD","WTD"].includes(e.expression)){const n=(r=t==null?void 0:t.detail)==null?void 0:r.unit;n&&(e.parameters[1]={unit:typeof n=="number"?n:1})}else if(["last_completed","next_full","to_date"].includes(e.expression)){const n=(o=(a=e==null?void 0:e.parameters)==null?void 0:a[1])==null?void 0:o.unit;e.parameters[1]={unit:typeof n=="number"?n:1}}else if(["last_now","last_available","next_now"].includes(e.expression)){const n=(h=(p=e==null?void 0:e.parameters)==null?void 0:p[1])==null?void 0:h.unit,f=(d=(c=e==null?void 0:e.parameters)==null?void 0:c[1])==null?void 0:d.quantity;e.parameters[1]={unit:typeof n=="number"?n:1,quantity:typeof f=="number"?f:1}}else e.parameters[1]=new Date().toISOString();else this._type==="hierarchy"?["? in ?","? not in ?"].includes(e.expression)?["? = ?","? != ?"].includes(i)?e.parameters[1]=e.parameters[1]?[e.parameters[1]]:[]:e.parameters[1]=[]:["? = ?","? != ?"].includes(e.expression)?["? in ?","? not in ?"].includes(i)?e.parameters[1]=Array.isArray(e.parameters[1])&&e.parameters[1][0]?e.parameters[1][0]:"":e.parameters[1]="":e.parameters[1]=["? in ?","? not in ?"].includes(i)?"":e.parameters[1]??"":this._type==="numeric"&&(["? in ?","? not in ?"].includes(e.expression)&&["? in ?","? not in ?"].includes(i)?e.parameters[1]=e.parameters[1]??[]:["? in ?","? not in ?"].includes(e.expression)?e.parameters[1]=[]:e.parameters[1]=["? in ?","? not in ?"].includes(i)?0:e.parameters[1]??0);this.filter=e,this._sendChangeEvent()}}setFilterValue(t){var e;this.filter.parameters[1]=(e=t==null?void 0:t.detail)==null?void 0:e.value,this._sendChangeEvent()}renderDataItemPicker(){var t,e,i,s,r,a;return u.x`<luzmo-filter-data-item-picker
|
|
21
21
|
.language=${this.language}
|
|
22
22
|
.contentLanguage=${this.contentLanguage}
|
|
23
23
|
.size=${this.size}
|
|
@@ -22,10 +22,10 @@ import { l as K } from "../localized-decorator-DEV_0e49.js";
|
|
|
22
22
|
import "../runtime-BSHB_4iz.js";
|
|
23
23
|
import { m as V, b as j, I as q } from "../base-D76d76ww-BGkuhs54.js";
|
|
24
24
|
import "../focusable-BxtpnzWp-DJQkL8Zv.js";
|
|
25
|
-
import { g as M, t as Z, s as B } from "../set-locale-
|
|
25
|
+
import { g as M, t as Z, s as B } from "../set-locale-DBtuQRTk.js";
|
|
26
26
|
import { d as O } from "../index-Cyo2hwg7.js";
|
|
27
27
|
import { r as b } from "../state-nDsQPund.js";
|
|
28
|
-
import { g as H } from "../index-
|
|
28
|
+
import { g as H } from "../index-CcvMWOPD.js";
|
|
29
29
|
import "../filter-data-item-picker/index.js";
|
|
30
30
|
import "../filter-value-picker/index.js";
|
|
31
31
|
const P = () => {
|
|
@@ -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-XfBlZOz9.cjs");const t=require("../property-Cu4Q1hS4.cjs"),c=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const h=require("../set-locale-
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-XfBlZOz9.cjs");const t=require("../property-Cu4Q1hS4.cjs"),c=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const h=require("../set-locale-Cv8DAlcC.cjs");require("../filter-value-picker-datetime/index.cjs");require("../filter-value-picker-hierarchy/index.cjs");require("../filter-value-picker-numeric/index.cjs");const g=":host{--var: red}:host{--var: blue}";var p=Object.defineProperty,a=(n,e,i,l)=>{for(var u=void 0,s=n.length-1,o;s>=0;s--)(o=n[s])&&(u=o(e,i,u)||u);return u&&p(e,i,u),u};class r extends c.m(c.It,{validSizes:Object.values(c.d$1)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this._expressionsWithoutValuePicker=new Set(["? is null","? is not null","to_date"])}static get styles(){return[t.r(g)]}_sendChangeEvent(e){this.dispatchEvent(new CustomEvent("filter-value-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e}}))}setFilterValue(e){var i;e.stopPropagation(),this._sendChangeEvent((i=e==null?void 0:e.detail)==null?void 0:i.value)}renderNumericValuePicker(){return t.x`<luzmo-filter-value-picker-numeric
|
|
21
21
|
.apiUrl=${this.apiUrl}
|
|
22
22
|
.authKey=${this.authKey}
|
|
23
23
|
.authToken=${this.authToken}
|
|
@@ -21,7 +21,7 @@ import "../index-Bmq39CDk.js";
|
|
|
21
21
|
import { r as g, x as a, n as t } from "../property-DCzt3DR1.js";
|
|
22
22
|
import { m as h, b as z, I as d } from "../base-D76d76ww-BGkuhs54.js";
|
|
23
23
|
import "../focusable-BxtpnzWp-DJQkL8Zv.js";
|
|
24
|
-
import { g as p, t as f, s as b } from "../set-locale-
|
|
24
|
+
import { g as p, t as f, s as b } from "../set-locale-DBtuQRTk.js";
|
|
25
25
|
import "../filter-value-picker-datetime/index.js";
|
|
26
26
|
import "../filter-value-picker-hierarchy/index.js";
|
|
27
27
|
import "../filter-value-picker-numeric/index.js";
|