@luzmo/analytics-components-kit 1.0.9-beta.3 → 1.0.9-beta.5
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/README.md +1 -1
- package/package.json +2 -2
- package/react/package.json +2 -2
- package/standalone/chunks/base-Cgmw1Vq_.js +2 -0
- package/standalone/chunks/display-settings-binning-CxpvhW7Y.js +38 -0
- package/standalone/chunks/display-settings-datetime-Cqptoxuq.js +199 -0
- package/standalone/chunks/display-settings-grand-totals-BJp7zJPj.js +26 -0
- package/standalone/chunks/display-settings-numeric-BskLgQmz.js +172 -0
- package/standalone/chunks/{display-settings-period-over-period-Bwjoji3a.js → display-settings-period-over-period-CbUd7uc9.js} +1 -1
- package/standalone/chunks/embed-EnSdYTW8.js +228 -0
- package/standalone/chunks/{filters-C1yU7w2V.js → filters-CTsIpQ2T.js} +68 -68
- package/standalone/chunks/{formula-codemirror-BAlhe79s.js → formula-codemirror-4wlUAHrO.js} +1 -1
- package/standalone/chunks/item-option-action-button-group-DZW0HRGd.js +35 -0
- package/standalone/chunks/item-option-base-BlSnktzl.js +38 -0
- package/standalone/chunks/item-option-color-palette-picker-jnEt02PP.js +22 -0
- package/standalone/chunks/{item-option-color-picker-59il-pkm.js → item-option-color-picker-CcElYCgD.js} +1 -1
- package/standalone/chunks/item-option-color-range-DTFbs7JK.js +80 -0
- package/standalone/chunks/item-option-guidelines-DFlj41ZE.js +117 -0
- package/standalone/chunks/{item-option-multi-language-field-BNn4WFUG.js → item-option-multi-language-field-DVc8-FVc.js} +1 -1
- package/standalone/chunks/{item-option-number-field-_lCPA_qC.js → item-option-number-field-B1V-8Nq-.js} +1 -1
- package/standalone/chunks/item-option-panel-CpyguQjh.js +298 -0
- package/standalone/chunks/{item-option-picker-CeK7QDTm.js → item-option-picker-BCrQSP1O.js} +1 -1
- package/standalone/chunks/item-option-position-picker-CLiGzaZ1.js +14 -0
- package/standalone/chunks/item-option-positions-number-field-DmFdahh8.js +31 -0
- package/standalone/chunks/{item-option-radio-button-group-DR7gdaTr.js → item-option-radio-button-group-nioc7wyo.js} +1 -1
- package/standalone/chunks/item-option-slider-BfXB8U09.js +15 -0
- package/standalone/chunks/{item-option-switch-DJfnhpf_.js → item-option-switch-DPF9lIX0.js} +1 -1
- package/standalone/chunks/{item-option-text-field-DNqL7Evw.js → item-option-text-field-CRbhs_g4.js} +1 -1
- package/standalone/chunks/item-slot-picker-panel-B_7VXYPs.js +439 -0
- package/standalone/chunks/load-data-fields-for-datasets-fBp1YEFi.js +25 -0
- package/standalone/chunks/{load-formula-codemirror-Cyqo4LoE.js → load-formula-codemirror-DcjxFIW6.js} +1 -1
- package/standalone/chunks/localized-mixin-YSDMfLKU.js +2 -0
- package/standalone/chunks/{luzmo-icon-markup-GqF25og5.js → luzmo-icon-markup-JO3eup7O.js} +1 -1
- package/standalone/chunks/luzmoCog-C4v4vc5N.js +2 -0
- package/standalone/chunks/luzmoLockOutline-Dctb86HR.js +2 -0
- package/standalone/chunks/luzmoTable-BYeZ8pW6.js +2 -0
- package/standalone/chunks/task-CTUsEtxU.js +2 -0
- package/standalone/chunks/themes-BD5sKr3j.js +2 -0
- package/standalone/chunks/v4-CI0qP0ur.js +2 -0
- package/standalone/interactive-viz-item.js +20 -246
- package/standalone/item-grid.js +115 -0
- package/standalone/manifest.json +40 -33
- package/standalone/chunks/base-DOKoeL4P.js +0 -2
- package/standalone/chunks/display-settings-binning-CTWsdo0F.js +0 -38
- package/standalone/chunks/display-settings-datetime-CdxMI-9Q.js +0 -199
- package/standalone/chunks/display-settings-grand-totals-BCW8hefp.js +0 -26
- package/standalone/chunks/display-settings-numeric-D04OO7n9.js +0 -172
- package/standalone/chunks/item-option-action-button-group-B3cugMc_.js +0 -35
- package/standalone/chunks/item-option-base-R8-N5_rE.js +0 -38
- package/standalone/chunks/item-option-color-palette-picker-CMZyo1NH.js +0 -22
- package/standalone/chunks/item-option-color-range-BWaElfwS.js +0 -80
- package/standalone/chunks/item-option-guidelines-BzvrNruz.js +0 -117
- package/standalone/chunks/item-option-panel-CyE_83Hf.js +0 -298
- package/standalone/chunks/item-option-position-picker-BAWZpDBA.js +0 -14
- package/standalone/chunks/item-option-positions-number-field-DjhFmMAp.js +0 -31
- package/standalone/chunks/item-option-slider-C_jierlR.js +0 -15
- package/standalone/chunks/item-slot-picker-panel-Bqmx51Yb.js +0 -439
- package/standalone/chunks/load-data-fields-for-datasets-_VJWUFPO.js +0 -25
- package/standalone/chunks/localized-mixin-BEfBwOPN.js +0 -2
- package/standalone/chunks/task-C3c3OWyi.js +0 -2
package/standalone/manifest.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"interactive-viz-item.js"
|
|
3
|
+
"interactive-viz-item.js",
|
|
4
|
+
"item-grid.js"
|
|
4
5
|
],
|
|
5
6
|
"chunks": [
|
|
6
7
|
"chunks/area-chart-options.config-CXWPLl-0.js",
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
"chunks/bar-chart-options.fr-CaUBeZBK.js",
|
|
20
21
|
"chunks/bar-chart-options.nl-C2tFvUE8.js",
|
|
21
22
|
"chunks/bar-chart-slots.config-BWQoKCYJ.js",
|
|
22
|
-
"chunks/base-
|
|
23
|
+
"chunks/base-Cgmw1Vq_.js",
|
|
23
24
|
"chunks/bliss-BS5cbLqS.js",
|
|
24
25
|
"chunks/box-plot-options.config-BlYMd4FN.js",
|
|
25
26
|
"chunks/box-plot-options.de-RDAv8kHb.js",
|
|
@@ -114,11 +115,11 @@
|
|
|
114
115
|
"chunks/default-Bi3Z4SMm.js",
|
|
115
116
|
"chunks/default-dark-C2ykXPQt.js",
|
|
116
117
|
"chunks/default-local-formats-CES1ItiK.js",
|
|
117
|
-
"chunks/display-settings-binning-
|
|
118
|
-
"chunks/display-settings-datetime-
|
|
119
|
-
"chunks/display-settings-grand-totals-
|
|
120
|
-
"chunks/display-settings-numeric-
|
|
121
|
-
"chunks/display-settings-period-over-period-
|
|
118
|
+
"chunks/display-settings-binning-CxpvhW7Y.js",
|
|
119
|
+
"chunks/display-settings-datetime-Cqptoxuq.js",
|
|
120
|
+
"chunks/display-settings-grand-totals-BJp7zJPj.js",
|
|
121
|
+
"chunks/display-settings-numeric-BskLgQmz.js",
|
|
122
|
+
"chunks/display-settings-period-over-period-CbUd7uc9.js",
|
|
122
123
|
"chunks/donut-chart-options.config-BuZj-QX5.js",
|
|
123
124
|
"chunks/donut-chart-options.de-QusCBL9B.js",
|
|
124
125
|
"chunks/donut-chart-options.en-D0ligFH6.js",
|
|
@@ -133,6 +134,7 @@
|
|
|
133
134
|
"chunks/dropdown-filter-options.fr-CMapzFiR.js",
|
|
134
135
|
"chunks/dropdown-filter-options.nl-BLAyit4D.js",
|
|
135
136
|
"chunks/dropdown-filter-slots.config-DkqLjilE.js",
|
|
137
|
+
"chunks/embed-EnSdYTW8.js",
|
|
136
138
|
"chunks/en-BD2RCLuw.js",
|
|
137
139
|
"chunks/en-GB-DnwmFNwC.js",
|
|
138
140
|
"chunks/en-US-BD2RCLuw.js",
|
|
@@ -146,9 +148,9 @@
|
|
|
146
148
|
"chunks/evolution-number-options.nl-CqycrLe1.js",
|
|
147
149
|
"chunks/evolution-number-slots.config-IqPfnCrw.js",
|
|
148
150
|
"chunks/fi-CLQ6vC7V.js",
|
|
149
|
-
"chunks/filters-
|
|
151
|
+
"chunks/filters-CTsIpQ2T.js",
|
|
150
152
|
"chunks/formatter-LzhH-XSQ.js",
|
|
151
|
-
"chunks/formula-codemirror-
|
|
153
|
+
"chunks/formula-codemirror-4wlUAHrO.js",
|
|
152
154
|
"chunks/fr-BpNJieSH.js",
|
|
153
155
|
"chunks/fr-D8xrUEX4.js",
|
|
154
156
|
"chunks/funnel-chart-options.config-1SyJ_qYd.js",
|
|
@@ -195,23 +197,23 @@
|
|
|
195
197
|
"chunks/interactivity-options.config-09eXx6k6.js",
|
|
196
198
|
"chunks/interactivity-options.i18n-BLDCmZkC.js",
|
|
197
199
|
"chunks/it-DWTvD2Xn.js",
|
|
198
|
-
"chunks/item-option-action-button-group-
|
|
199
|
-
"chunks/item-option-base-
|
|
200
|
-
"chunks/item-option-color-palette-picker-
|
|
201
|
-
"chunks/item-option-color-picker-
|
|
202
|
-
"chunks/item-option-color-range-
|
|
203
|
-
"chunks/item-option-guidelines-
|
|
204
|
-
"chunks/item-option-multi-language-field-
|
|
205
|
-
"chunks/item-option-number-field-
|
|
206
|
-
"chunks/item-option-panel-
|
|
207
|
-
"chunks/item-option-picker-
|
|
208
|
-
"chunks/item-option-position-picker-
|
|
209
|
-
"chunks/item-option-positions-number-field-
|
|
210
|
-
"chunks/item-option-radio-button-group-
|
|
211
|
-
"chunks/item-option-slider-
|
|
212
|
-
"chunks/item-option-switch-
|
|
213
|
-
"chunks/item-option-text-field-
|
|
214
|
-
"chunks/item-slot-picker-panel-
|
|
200
|
+
"chunks/item-option-action-button-group-DZW0HRGd.js",
|
|
201
|
+
"chunks/item-option-base-BlSnktzl.js",
|
|
202
|
+
"chunks/item-option-color-palette-picker-jnEt02PP.js",
|
|
203
|
+
"chunks/item-option-color-picker-CcElYCgD.js",
|
|
204
|
+
"chunks/item-option-color-range-DTFbs7JK.js",
|
|
205
|
+
"chunks/item-option-guidelines-DFlj41ZE.js",
|
|
206
|
+
"chunks/item-option-multi-language-field-DVc8-FVc.js",
|
|
207
|
+
"chunks/item-option-number-field-B1V-8Nq-.js",
|
|
208
|
+
"chunks/item-option-panel-CpyguQjh.js",
|
|
209
|
+
"chunks/item-option-picker-BCrQSP1O.js",
|
|
210
|
+
"chunks/item-option-position-picker-CLiGzaZ1.js",
|
|
211
|
+
"chunks/item-option-positions-number-field-DmFdahh8.js",
|
|
212
|
+
"chunks/item-option-radio-button-group-nioc7wyo.js",
|
|
213
|
+
"chunks/item-option-slider-BfXB8U09.js",
|
|
214
|
+
"chunks/item-option-switch-DPF9lIX0.js",
|
|
215
|
+
"chunks/item-option-text-field-CRbhs_g4.js",
|
|
216
|
+
"chunks/item-slot-picker-panel-B_7VXYPs.js",
|
|
215
217
|
"chunks/ja-CtDlXHD1.js",
|
|
216
218
|
"chunks/ko-CekuHU50.js",
|
|
217
219
|
"chunks/line-chart-options.config-DyqQLGw8.js",
|
|
@@ -222,17 +224,20 @@
|
|
|
222
224
|
"chunks/line-chart-options.nl-BOgcjx48.js",
|
|
223
225
|
"chunks/line-chart-slots.config-CavGuJXK.js",
|
|
224
226
|
"chunks/lit-localize-CIGP-NUw.js",
|
|
225
|
-
"chunks/load-data-fields-for-datasets-
|
|
226
|
-
"chunks/load-formula-codemirror-
|
|
227
|
+
"chunks/load-data-fields-for-datasets-fBp1YEFi.js",
|
|
228
|
+
"chunks/load-formula-codemirror-DcjxFIW6.js",
|
|
227
229
|
"chunks/localize-BXHWaHdZ.js",
|
|
228
230
|
"chunks/localized-decorator-Buib6Rq1.js",
|
|
229
|
-
"chunks/localized-mixin-
|
|
230
|
-
"chunks/luzmo-icon-markup-
|
|
231
|
+
"chunks/localized-mixin-YSDMfLKU.js",
|
|
232
|
+
"chunks/luzmo-icon-markup-JO3eup7O.js",
|
|
231
233
|
"chunks/luzmoAlignLeft-HA-XKPHy.js",
|
|
232
234
|
"chunks/luzmoAngleDown-PNrItYzK.js",
|
|
233
235
|
"chunks/luzmoBorderDotted-CWXwQ_Hm.js",
|
|
234
236
|
"chunks/luzmoCheckbox-BksyONqE.js",
|
|
237
|
+
"chunks/luzmoCog-C4v4vc5N.js",
|
|
238
|
+
"chunks/luzmoLockOutline-Dctb86HR.js",
|
|
235
239
|
"chunks/luzmoPlus-Dyrrz0v8.js",
|
|
240
|
+
"chunks/luzmoTable-BYeZ8pW6.js",
|
|
236
241
|
"chunks/luzmoTrashOutline-DXZpJx7f.js",
|
|
237
242
|
"chunks/map-tile-providers-DZT1QZX_.js",
|
|
238
243
|
"chunks/marker-map-options.config-D_OTOZRe.js",
|
|
@@ -377,7 +382,7 @@
|
|
|
377
382
|
"chunks/symbol-map-options.fr-CPNydqFW.js",
|
|
378
383
|
"chunks/symbol-map-options.nl-BBHmJwLF.js",
|
|
379
384
|
"chunks/symbol-map-slots.config-B_UtYexb.js",
|
|
380
|
-
"chunks/task-
|
|
385
|
+
"chunks/task-CTUsEtxU.js",
|
|
381
386
|
"chunks/text-options.config-Chv14kyQ.js",
|
|
382
387
|
"chunks/text-options.de-CRVu5VAm.js",
|
|
383
388
|
"chunks/text-options.en-CupCY5Us.js",
|
|
@@ -385,6 +390,7 @@
|
|
|
385
390
|
"chunks/text-options.fr-C256Njqd.js",
|
|
386
391
|
"chunks/text-options.nl-CpMqMCOZ.js",
|
|
387
392
|
"chunks/text-slots.config-D33nu0FP.js",
|
|
393
|
+
"chunks/themes-BD5sKr3j.js",
|
|
388
394
|
"chunks/tr-i3G2sFi4.js",
|
|
389
395
|
"chunks/treemap-chart-options.config-DxkumoYq.js",
|
|
390
396
|
"chunks/treemap-chart-options.de-DdhcpjTu.js",
|
|
@@ -396,6 +402,7 @@
|
|
|
396
402
|
"chunks/type-check-CC6bgirK.js",
|
|
397
403
|
"chunks/types-BS6dxSMT.js",
|
|
398
404
|
"chunks/urban-BEeGnayr.js",
|
|
405
|
+
"chunks/v4-CI0qP0ur.js",
|
|
399
406
|
"chunks/venn-diagram-options.config-DmYOnwBz.js",
|
|
400
407
|
"chunks/venn-diagram-slots.config-GnP5AAAL.js",
|
|
401
408
|
"chunks/video-options.config-CfgT_MAw.js",
|
|
@@ -417,8 +424,8 @@
|
|
|
417
424
|
"chunks/zh-TW-NVnv57dz.js"
|
|
418
425
|
],
|
|
419
426
|
"lucero": {
|
|
420
|
-
"version": "2.
|
|
421
|
-
"baseUrl": "https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.
|
|
427
|
+
"version": "2.4.0",
|
|
428
|
+
"baseUrl": "https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.4.0/standalone/"
|
|
422
429
|
},
|
|
423
430
|
"embed": "bundled"
|
|
424
431
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{n as e}from"./localized-mixin-BEfBwOPN.js";import{LitElement as t,property as n}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/lit.js";var r=new Set;new MutationObserver(()=>{let e=document.documentElement.dir===`rtl`?document.documentElement.dir:`ltr`;r.forEach(t=>{t.setAttribute(`dir`,e)})}).observe(document.documentElement,{attributes:!0,attributeFilter:[`dir`]});var i=e=>e.startManagingContentDirection!==void 0||e.tagName===`LUZMO-THEME`,a=(e=document)=>{let t=e.activeElement;for(;t?.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;let n=t?[t]:[];for(;t;){let e=t.assignedSlot||t.parentElement||t.getRootNode()?.host;e&&n.push(e),t=e}return n};function o(e){class t extends e{get isLTR(){return this.dir===`ltr`}hasVisibleFocusInTree(){let e=a(this.getRootNode())[0];if(!e)return!1;try{return e.matches(`:focus-visible`)||e.matches(`.focus-visible`)}catch{return e.matches(`.focus-visible`)}}connectedCallback(){if(super.connectedCallback(),!this.hasAttribute(`dir`)){let e=this.assignedSlot||this.parentNode;for(;e!==document.documentElement&&!i(e);)e=e.assignedSlot||e.parentNode||e.host;if(this.dir=e.dir===`rtl`?e.dir:this.dir||`ltr`,e===document.documentElement)r.add(this);else{let{localName:t}=e;t.search(`-`)>-1&&!customElements.get(t)?customElements.whenDefined(t).then(()=>{typeof e.startManagingContentDirection==`function`&&e.startManagingContentDirection(this)}):typeof e.startManagingContentDirection==`function`&&e.startManagingContentDirection(this)}this._dirParent=e}super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._dirParent&&(this._dirParent===document.documentElement?r.delete(this):typeof this._dirParent.stopManagingContentDirection==`function`&&this._dirParent.stopManagingContentDirection(this),this.removeAttribute(`dir`))}}return t}var s=class extends o(t){},c=!0;try{document.body.querySelector(`:focus-visible`)}catch{c=!1}var l=e=>{if(e.shadowRoot==null||Object.hasOwn(e.dataset,`jsFocusVisible`))return()=>{};if(self.applyFocusVisiblePolyfill)self.applyFocusVisiblePolyfill(e.shadowRoot),e.manageAutoFocus&&e.manageAutoFocus();else{let t=()=>{self.applyFocusVisiblePolyfill&&e.shadowRoot&&self.applyFocusVisiblePolyfill(e.shadowRoot),e.manageAutoFocus&&e.manageAutoFocus()};return self.addEventListener(`focus-visible-polyfill-ready`,t,{once:!0}),()=>{self.removeEventListener(`focus-visible-polyfill-ready`,t)}}return()=>{}},u=e=>{let t=Symbol(`endPolyfillCoordination`);class n extends e{constructor(...e){super(...e),this[t]=null}connectedCallback(){super.connectedCallback&&super.connectedCallback(),c||requestAnimationFrame(()=>{this[t]??(this[t]=l(this))})}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),c||requestAnimationFrame(()=>{this[t]!=null&&(this[t](),this[t]=null)})}}return n};function d(){return new Promise(e=>requestAnimationFrame(()=>e()))}var f=class extends u(s){constructor(...e){super(...e),this.disabled=!1,this.autofocus=!1,this._tabIndex=0,this.manipulatingTabindex=!1,this.autofocusReady=Promise.resolve()}get tabIndex(){if(this.focusElement===this){let e=this.hasAttribute(`tabindex`)?Number(this.getAttribute(`tabindex`)):NaN;return Number.isNaN(e)?-1:e}let e=Number.parseFloat(this.hasAttribute(`tabindex`)&&this.getAttribute(`tabindex`)||`0`);return this.disabled||e<0?-1:this.focusElement?this._tabIndex:e}set tabIndex(e){if(this.manipulatingTabindex){this.manipulatingTabindex=!1;return}if(this.focusElement===this){if(this.disabled)this._tabIndex=e;else if(e!==this._tabIndex){this._tabIndex=e;let t=``+e;this.manipulatingTabindex=!0,this.setAttribute(`tabindex`,t)}return}if(e===-1?this.addEventListener(`pointerdown`,this.onPointerdownManagementOfTabIndex):(this.manipulatingTabindex=!0,this.removeEventListener(`pointerdown`,this.onPointerdownManagementOfTabIndex)),e===-1||this.disabled){if(this.manipulatingTabindex=!0,this.setAttribute(`tabindex`,`-1`),this.removeAttribute(`focusable`),this.selfManageFocusElement)return;e===-1?this.focusElement?.removeAttribute(`tabindex`):(this._tabIndex=e,this.manageFocusElementTabindex(e));return}this.setAttribute(`focusable`,``),this.hasAttribute(`tabindex`)?this.removeAttribute(`tabindex`):this.manipulatingTabindex=!1,this._tabIndex=e,this.manageFocusElementTabindex(e)}onPointerdownManagementOfTabIndex(){this.tabIndex===-1&&setTimeout(()=>{this.tabIndex=0,this.focus({preventScroll:!0}),this.tabIndex=-1})}async manageFocusElementTabindex(e){this.focusElement||await this.updateComplete,e===null?this.focusElement.removeAttribute(`tabindex`):this.focusElement!==this&&(this.focusElement.tabIndex=e)}get focusElement(){throw Error(`Must implement focusElement getter!`)}get selfManageFocusElement(){return!1}focus(e){this.disabled||!this.focusElement||(this.focusElement===this?Reflect.apply(HTMLElement.prototype.focus,this,[e]):this.focusElement.focus(e))}blur(){let e=this.focusElement||this;e===this?HTMLElement.prototype.blur.apply(this):e.blur()}click(){if(this.disabled)return;let e=this.focusElement||this;e===this?HTMLElement.prototype.click.apply(this):e.click()}manageAutoFocus(){this.autofocus&&(this.dispatchEvent(new KeyboardEvent(`keydown`,{code:`Tab`})),this.focusElement.focus())}firstUpdated(e){super.firstUpdated(e),(!this.hasAttribute(`tabindex`)||this.getAttribute(`tabindex`)!==`-1`)&&this.setAttribute(`focusable`,``)}update(e){e.has(`disabled`)&&this.handleDisabledChanged(this.disabled,e.get(`disabled`)),super.update(e)}updated(e){super.updated(e),e.has(`disabled`)&&this.disabled&&this.blur()}async handleDisabledChanged(e,t){let n=()=>this.focusElement!==this&&this.focusElement.disabled!==void 0;e?(this.manipulatingTabindex=!0,this.setAttribute(`tabindex`,`-1`),await this.updateComplete,n()?this.focusElement.disabled=!0:this.setAttribute(`aria-disabled`,`true`)):t&&(this.manipulatingTabindex=!0,this.focusElement===this?this.setAttribute(`tabindex`,``+this._tabIndex):this.removeAttribute(`tabindex`),await this.updateComplete,n()?this.focusElement.disabled=!1:this.removeAttribute(`aria-disabled`))}async getUpdateComplete(){let e=await super.getUpdateComplete();return await this.autofocusReady,e}connectedCallback(){super.connectedCallback(),this.autofocus&&(this.autofocusReady=(async()=>{await d(),await d()})(),this.updateComplete.then(()=>this.manageAutoFocus()))}};e([n({type:Boolean,reflect:!0})],f.prototype,`disabled`,void 0),e([n({type:Boolean})],f.prototype,`autofocus`,void 0),e([n({type:Number})],f.prototype,`tabIndex`,null);var p={xxs:`xxs`,xs:`xs`,s:`s`,m:`m`,l:`l`,xl:`xl`,xxl:`xxl`};function m(t,{validSizes:r=[`s`,`m`,`l`,`xl`],noDefaultSize:i,defaultSize:a=`m`}={}){class o extends t{constructor(...e){super(...e),this._size=a}get size(){return this._size||a}set size(e){let t=i?null:a,n=e&&e.toLocaleLowerCase(),o=r.includes(n)?n:t;if(o&&this.setAttribute(`size`,o),this._size===o)return;let s=this._size;this._size=o,this.requestUpdate(`size`,s)}update(e){!this.hasAttribute(`size`)&&!i&&this.setAttribute(`size`,this.size),super.update(e)}}return e([n({type:String})],o.prototype,`size`,null),o}export{m as n,s as r,p as t};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{n as e,t}from"./localized-mixin-BEfBwOPN.js";import{n}from"./lit-localize-CIGP-NUw.js";import{t as r}from"./localized-decorator-Buib6Rq1.js";import{n as i,t as a}from"./luzmoCheckbox-BksyONqE.js";import{n as o,r as s,t as c}from"./base-DOKoeL4P.js";import{html as l,property as u,query as d,state as f,unsafeCSS as p}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/lit.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/action-button.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/field-label.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/icon.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/number-field.js";var m=`:host .settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-binning-gap,var(--display-settings-binning-gap));display:flex}:host,: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)}`,h=class extends t(o(s,{validSizes:Object.values(c)})){constructor(...e){super(...e),this.slotContent={},this._enabled=!1,this._binWidth=10}static get styles(){return[p(m)]}willUpdate(e){super.willUpdate(e),e.has(`slotContent`)&&(this._enabled=this.slotContent?.bins?.enabled??!1,this._binWidth=this.slotContent?.bins?.number??10)}toggleBinning(){this._enabled=!this._enabled,this.sendEvent()}setBinning(){this._binWidth=this.binWidthElement.value,this.sendEvent()}sendEvent(){let e={enabled:!!this._enabled,number:this._binWidth??10};this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,bins:e}}}))}renderBinWidth(){return l`<div class="setting">
|
|
3
|
-
<luzmo-field-label .size=${this.size} for="bin-width"
|
|
4
|
-
>${n(`Bin width`,{desc:`The width of each bin in the histogram`})}</luzmo-field-label
|
|
5
|
-
>
|
|
6
|
-
<luzmo-number-field
|
|
7
|
-
id="bin-width"
|
|
8
|
-
min="0"
|
|
9
|
-
.value=${this._binWidth}
|
|
10
|
-
.size=${this.size}
|
|
11
|
-
@change=${this.setBinning}
|
|
12
|
-
></luzmo-number-field>
|
|
13
|
-
</div>`}render(){return l`<div class="settings-container">
|
|
14
|
-
<div class="settings-row">
|
|
15
|
-
<div class="setting">
|
|
16
|
-
<luzmo-field-label .size=${this.size} for="binning"
|
|
17
|
-
>${n(`Binning`,{desc:`Grouping numeric data into intervals or "bins" for analysis and visualization`})}</luzmo-field-label
|
|
18
|
-
>
|
|
19
|
-
<luzmo-action-button
|
|
20
|
-
id="binning"
|
|
21
|
-
toggles
|
|
22
|
-
emphasized
|
|
23
|
-
.size=${this.size}
|
|
24
|
-
?selected=${this._enabled}
|
|
25
|
-
class=${this._enabled?`active`:`inactive`}
|
|
26
|
-
@click=${this.toggleBinning}
|
|
27
|
-
>
|
|
28
|
-
<luzmo-icon
|
|
29
|
-
slot="icon"
|
|
30
|
-
.size=${this.size}
|
|
31
|
-
.icon=${this._enabled?i:a}
|
|
32
|
-
></luzmo-icon>
|
|
33
|
-
${this._enabled?n(`Enabled`,{desc:`Option set to enabled`}):n(`Disabled`,{desc:`Option set to disabled`})}
|
|
34
|
-
</luzmo-action-button>
|
|
35
|
-
</div>
|
|
36
|
-
${this._enabled?this.renderBinWidth():``}
|
|
37
|
-
</div>
|
|
38
|
-
</div>`}};e([u()],h.prototype,`slotContent`,void 0),e([f()],h.prototype,`_enabled`,void 0),e([d(`#bin-width`)],h.prototype,`binWidthElement`,void 0),h=e([r()],h),customElements.get(`luzmo-display-settings-binning`)||customElements.define(`luzmo-display-settings-binning`,h);
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{n as e,t}from"./localized-mixin-BEfBwOPN.js";import{n}from"./lit-localize-CIGP-NUw.js";import{t as r}from"./localized-decorator-Buib6Rq1.js";import{n as i,t as a}from"./luzmoCheckbox-BksyONqE.js";import{n as o,r as s,t as c}from"./base-DOKoeL4P.js";import{t as l}from"./task-C3c3OWyi.js";import{r as u,t as d}from"./formatter-LzhH-XSQ.js";import{i as f,r as p,t as m}from"./periods.const-Cie50jR4.js";import{html as h,property as g,query as _,unsafeCSS as v}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/lit.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/action-button.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/action-group.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/field-label.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/icon.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/number-field.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/picker.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/progress-circle.js";var y={"~":()=>n(`Auto`,{desc:`Automatic setting of the option`}),"/":()=>`/`,"-":()=>`-`,".":()=>`.`},b=`:host{font-family:var(--luzmo-display-settings-datetime-font-family,var(--luzmo-font-family))}:host .settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-datetime-gap,var(--display-settings-datetime-gap));display:flex}:host{--display-settings-datetime-example-font-size:var(--luzmo-font-size-s);--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);--display-settings-datetime-gap:var(--luzmo-spacing-3);--display-settings-datetime-example-height:var(--luzmo-component-height)}: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)}`,x=class extends t(o(s,{validSizes:Object.values(c)})){constructor(...e){super(...e),this._loadLocaleFormatsConfig=new l(this,{task:async([e])=>{if(e&&e!==this._contentLanguageLoaded){let t=Object.assign({"../../utils/formatter/formats/cs.ts":()=>import(`./cs-DLnr3a23.js`),"../../utils/formatter/formats/da.ts":()=>import(`./da-BJgbo0uE.js`),"../../utils/formatter/formats/de.ts":()=>import(`./de-DPgYMyja.js`),"../../utils/formatter/formats/en-GB.ts":()=>import(`./en-GB-DnwmFNwC.js`),"../../utils/formatter/formats/en-US.ts":()=>import(`./en-US-BD2RCLuw.js`),"../../utils/formatter/formats/en.ts":()=>import(`./en-BD2RCLuw.js`),"../../utils/formatter/formats/es.ts":()=>import(`./es-Dp1UuDDz.js`),"../../utils/formatter/formats/fi.ts":()=>import(`./fi-CLQ6vC7V.js`),"../../utils/formatter/formats/fr.ts":()=>import(`./fr-D8xrUEX4.js`),"../../utils/formatter/formats/he.ts":()=>import(`./he-DHPb0VBo.js`),"../../utils/formatter/formats/hu.ts":()=>import(`./hu-BpaYooip.js`),"../../utils/formatter/formats/it.ts":()=>import(`./it-DWTvD2Xn.js`),"../../utils/formatter/formats/ja.ts":()=>import(`./ja-CtDlXHD1.js`),"../../utils/formatter/formats/ko.ts":()=>import(`./ko-CekuHU50.js`),"../../utils/formatter/formats/mk.ts":()=>import(`./mk-Dq3YK4jD.js`),"../../utils/formatter/formats/nl.ts":()=>import(`./nl-7csxtU-I.js`),"../../utils/formatter/formats/no.ts":()=>import(`./no-DJNRx8au.js`),"../../utils/formatter/formats/pl.ts":()=>import(`./pl-zDnuk9Gd.js`),"../../utils/formatter/formats/pt.ts":()=>import(`./pt-BEVAH5AJ.js`),"../../utils/formatter/formats/ru.ts":()=>import(`./ru-Ceji1Fqk.js`),"../../utils/formatter/formats/sv.ts":()=>import(`./sv-CgssnOqA.js`),"../../utils/formatter/formats/tr.ts":()=>import(`./tr-i3G2sFi4.js`),"../../utils/formatter/formats/zh-CN.ts":()=>import(`./zh-CN-NVnv57dz.js`),"../../utils/formatter/formats/zh-TW.ts":()=>import(`./zh-TW-NVnv57dz.js`)});if(t[`../../utils/formatter/formats/${e}.ts`]){let n=await t[`../../utils/formatter/formats/${e}.ts`]();this._localeFormats=n?.default??{}}return this._contentLanguageLoaded=e,this._localeFormats}},args:()=>[this.contentLanguage]}),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(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}}static get styles(){return[v(b)]}_parseSlotContent(){this._dateLevel=this.slotContent?.level??this.slotContent?.lowestLevel??5,this._displayAs=this.slotContent?.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(){let e=this.slotContent?.format??`%d-%m-%Y`,t=e.match(/[./-]/);if(this._dateSeparator=e.includes(`~`)?`~`:t?.[0]??`~`,e.includes(`%amd`))this._dateFormat=`auto`;else{let t=e.indexOf(`%d`),n=e.indexOf(`%m`);t!==-1&&n!==-1&&(this._dateFormat=t<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`);let n=this._dateLevel===5&&this.slotContent?.weekDayNameFormat||this._dateLevel===3&&this.slotContent?.monthNameFormat;n&&(this._weekDayAndMonthInYearFormat=n)}_calculateFormat(){let e,t=this._localeFormats?.smartDateFormats??u;this._monthName?(e=t.filter(e=>e.monthType===`name`&&e.longText===(this._monthNameFormat===`long`)&&e.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(e=>e.monthType===`number`&&e.mmdd===(this._weekFormat===`mmdd`||this._weekFormat!==`ddmm`&&null)&&e.separator===this._dateSeparator):t.filter(e=>e.monthType===`number`&&e.mmdd===(this._dateFormat===`mmdd`||this._dateFormat!==`ddmm`&&null)&&e.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(){this._weekDayAndMonthInYearFormat=this._weekDayAndMonthInYearFormatElement.selected?.[0]??`long`,this._sendEvent(),this.requestUpdate()}_setMonthNameFormat(){this._monthNameFormat=this._monthNameFormatElement.selected?.[0],this._sendEvent(),this.requestUpdate()}_setMonthName(){this._monthName=this._monthNameElement.selected,this._sendEvent(),this.requestUpdate()}_setWeekFormat(){this._weekFormat=this._weekFormatElement.selected?.[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){super.willUpdate(e),e.has(`slotContent`)&&(this._parseSlotContent(),this._calculateSlotContent())}_renderDisplaySettings(){let e=m?.[`level${this._dateLevel??0}`]?.map(e=>h`<luzmo-menu-item value=${e.key}>
|
|
3
|
-
${e.i18n()}
|
|
4
|
-
</luzmo-menu-item>`);return h`<div class="setting">
|
|
5
|
-
<luzmo-field-label .size=${this.size} for="display-as"
|
|
6
|
-
>${n(`Display`,{desc:`Label for display setting`})}</luzmo-field-label
|
|
7
|
-
>
|
|
8
|
-
<luzmo-picker
|
|
9
|
-
id="display-as"
|
|
10
|
-
size=${this.size}
|
|
11
|
-
variant="highlight"
|
|
12
|
-
value=${this._displayAs??`default`}
|
|
13
|
-
@change=${this._setDisplayAs}
|
|
14
|
-
>
|
|
15
|
-
${e}
|
|
16
|
-
</luzmo-picker>
|
|
17
|
-
</div>`}_renderWeekDayAndMonthNameFormatSettings(){let e=Object.keys(p).map(e=>h`<luzmo-action-button value=${e}>
|
|
18
|
-
${p[e]()}
|
|
19
|
-
</luzmo-action-button>`);return h` <div class="setting">
|
|
20
|
-
<luzmo-field-label .size=${this.size} for="weekday-and-month-in-year-format"
|
|
21
|
-
>${n(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
|
|
22
|
-
>
|
|
23
|
-
<luzmo-action-group
|
|
24
|
-
emphasized
|
|
25
|
-
id="weekday-and-month-in-year-format"
|
|
26
|
-
size=${this.size}
|
|
27
|
-
compact
|
|
28
|
-
.selected=${[this._weekDayAndMonthInYearFormat??`short`]}
|
|
29
|
-
selects="single"
|
|
30
|
-
@change=${this._setWeekdayAndMonthInYearFormat}
|
|
31
|
-
>
|
|
32
|
-
${e}
|
|
33
|
-
</luzmo-action-group>
|
|
34
|
-
</div>`}_renderMonthNameFormatSettings(){return h` <div class="setting">
|
|
35
|
-
<luzmo-field-label .size=${this.size} for="month-name-format"
|
|
36
|
-
>${n(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
|
|
37
|
-
>
|
|
38
|
-
<luzmo-action-group
|
|
39
|
-
emphasized
|
|
40
|
-
id="month-name-format"
|
|
41
|
-
size=${this.size}
|
|
42
|
-
compact
|
|
43
|
-
.selected=${[this._monthNameFormat??`long`]}
|
|
44
|
-
selects="single"
|
|
45
|
-
@change=${this._setMonthNameFormat}
|
|
46
|
-
>
|
|
47
|
-
<luzmo-action-button value="short">
|
|
48
|
-
${n(`Short`,{desc:`Short format option`})}
|
|
49
|
-
</luzmo-action-button>
|
|
50
|
-
<luzmo-action-button value="long">
|
|
51
|
-
${n(`Long`,{desc:`Long format option`})}
|
|
52
|
-
</luzmo-action-button>
|
|
53
|
-
</luzmo-action-group>
|
|
54
|
-
</div>`}_renderWeekFormatSettings(){let e=this._localeFormats?.smartDateFormats??u,t=e.find(e=>e.mmdd===!0&&e.separator===this._dateSeparator&&e.monthType===`number`),r=e.find(e=>e.mmdd===!1&&e.separator===this._dateSeparator&&e.monthType===`number`);return h` <div class="setting">
|
|
55
|
-
<luzmo-field-label .size=${this.size} for="week-format"
|
|
56
|
-
>${n(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
|
|
57
|
-
>
|
|
58
|
-
<luzmo-action-group
|
|
59
|
-
emphasized
|
|
60
|
-
id="week-format"
|
|
61
|
-
size=${this.size}
|
|
62
|
-
compact
|
|
63
|
-
.selected=${[this._weekFormat??`ddmm`]}
|
|
64
|
-
selects="single"
|
|
65
|
-
@change=${this._setWeekFormat}
|
|
66
|
-
>
|
|
67
|
-
<luzmo-action-button value="ddmm">
|
|
68
|
-
${d({...this._currentSlotContent,type:`datetime`,format:r?.key},{localFormats:this._localeFormats,level:this._dateLevel})(new Date)}
|
|
69
|
-
</luzmo-action-button>
|
|
70
|
-
<luzmo-action-button value="mmdd"
|
|
71
|
-
>${d({...this._currentSlotContent,type:`datetime`,format:t?.key},{localFormats:this._localeFormats,level:this._dateLevel})(new Date)}</luzmo-action-button
|
|
72
|
-
>
|
|
73
|
-
</luzmo-action-group>
|
|
74
|
-
</div>`}_renderWeekStartsOnSettings(){let e=Object.keys(f).map(e=>h`<luzmo-menu-item value=${e}>
|
|
75
|
-
${f[e]()}
|
|
76
|
-
</luzmo-menu-item>`);return h`<div class="setting">
|
|
77
|
-
<luzmo-field-label .size=${this.size} for="week-start"
|
|
78
|
-
>${n(`Week starts on`,{desc:`Label for week start setting`})}</luzmo-field-label
|
|
79
|
-
>
|
|
80
|
-
<luzmo-picker
|
|
81
|
-
id="week-start"
|
|
82
|
-
size=${this.size}
|
|
83
|
-
variant="highlight"
|
|
84
|
-
value=${this._weekStart??`Auto`}
|
|
85
|
-
@change=${this._setWeekStartsOn}
|
|
86
|
-
>
|
|
87
|
-
${e}
|
|
88
|
-
</luzmo-picker>
|
|
89
|
-
</div>`}_renderMonthNameSettings(){return h`<div class="settings-">
|
|
90
|
-
<luzmo-field-label .size=${this.size} for="month-name"
|
|
91
|
-
>${n(`Month`,{desc:`Time unit`})}</luzmo-field-label
|
|
92
|
-
>
|
|
93
|
-
<luzmo-action-button
|
|
94
|
-
id="month-name"
|
|
95
|
-
emphasized
|
|
96
|
-
toggles
|
|
97
|
-
.size=${this.size}
|
|
98
|
-
?selected=${this._monthName}
|
|
99
|
-
@change=${this._setMonthName}
|
|
100
|
-
>
|
|
101
|
-
<luzmo-icon
|
|
102
|
-
slot="icon"
|
|
103
|
-
.size=${this.size}
|
|
104
|
-
.icon=${this._monthName?i:a}
|
|
105
|
-
></luzmo-icon>
|
|
106
|
-
${n(`Name`)}
|
|
107
|
-
</luzmo-action-button>
|
|
108
|
-
</div>`}_renderDateFormatSettings(){let e=this._dateSeparator===`~`?`/`:this._dateSeparator;return h`<div class="setting">
|
|
109
|
-
<luzmo-field-label .size=${this.size} for="date-format"
|
|
110
|
-
>${n(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
|
|
111
|
-
>
|
|
112
|
-
<luzmo-picker
|
|
113
|
-
id="date-format"
|
|
114
|
-
size=${this.size}
|
|
115
|
-
variant="highlight"
|
|
116
|
-
value=${this._dateFormat??`Auto`}
|
|
117
|
-
@change=${this._setDateFormat}
|
|
118
|
-
>
|
|
119
|
-
<luzmo-menu-item value="auto">
|
|
120
|
-
${n(`Auto`,{desc:`Automatic setting of the option`})}
|
|
121
|
-
</luzmo-menu-item>
|
|
122
|
-
<luzmo-menu-item value="mmdd">12${e}31</luzmo-menu-item>
|
|
123
|
-
<luzmo-menu-item value="ddmm">31${e}12</luzmo-menu-item>
|
|
124
|
-
</luzmo-picker>
|
|
125
|
-
</div>`}_renderSeparatorSettings(){let e=Object.keys(y).map(e=>h`<luzmo-menu-item value=${e}>
|
|
126
|
-
${y[e]()}
|
|
127
|
-
</luzmo-menu-item>`);return h`<div class="setting">
|
|
128
|
-
<luzmo-field-label .size=${this.size} for="date-separator"
|
|
129
|
-
>${n(`Separator`,{desc:`Label for date separator setting`})}</luzmo-field-label
|
|
130
|
-
>
|
|
131
|
-
<luzmo-picker
|
|
132
|
-
id="date-separator"
|
|
133
|
-
size=${this.size}
|
|
134
|
-
variant="highlight"
|
|
135
|
-
value=${this._dateSeparator??`~`}
|
|
136
|
-
@change=${this._setDateSeparator}
|
|
137
|
-
>
|
|
138
|
-
${e}
|
|
139
|
-
</luzmo-picker>
|
|
140
|
-
</div>`}_render24hFormatSettings(){return h`<div class="settings-">
|
|
141
|
-
<luzmo-field-label .size=${this.size} for="format-24h"
|
|
142
|
-
>${n(`24h`,{desc:`Label for 24h format setting`})}</luzmo-field-label
|
|
143
|
-
>
|
|
144
|
-
<luzmo-action-button
|
|
145
|
-
id="format-24h"
|
|
146
|
-
emphasized
|
|
147
|
-
toggles
|
|
148
|
-
.size=${this.size}
|
|
149
|
-
.label=${n(`Show`)}
|
|
150
|
-
?selected=${this._24hFormat}
|
|
151
|
-
@change=${this._set24hFormat}
|
|
152
|
-
>
|
|
153
|
-
<luzmo-icon
|
|
154
|
-
slot="icon"
|
|
155
|
-
.size=${this.size}
|
|
156
|
-
.icon=${this._24hFormat?i:a}
|
|
157
|
-
></luzmo-icon>
|
|
158
|
-
</luzmo-action-button>
|
|
159
|
-
</div>`}_renderWeekdaySettings(){return h`<div class="settings-">
|
|
160
|
-
<luzmo-field-label .size=${this.size} for="weekday"
|
|
161
|
-
>${n(`Weekday`,{desc:`Label for weekday setting`})}</luzmo-field-label
|
|
162
|
-
>
|
|
163
|
-
<luzmo-action-button
|
|
164
|
-
id="weekday"
|
|
165
|
-
emphasized
|
|
166
|
-
toggles
|
|
167
|
-
.size=${this.size}
|
|
168
|
-
?selected=${this._weekDay}
|
|
169
|
-
@change=${this._setWeekday}
|
|
170
|
-
>
|
|
171
|
-
<luzmo-icon
|
|
172
|
-
slot="icon"
|
|
173
|
-
.size=${this.size}
|
|
174
|
-
.icon=${this._weekDay?i:a}
|
|
175
|
-
></luzmo-icon>
|
|
176
|
-
${n(`Show`)}
|
|
177
|
-
</luzmo-action-button>
|
|
178
|
-
</div>`}_renderAllSettings(){return h`<div class="settings-container">
|
|
179
|
-
${this._dateLevel&&![1,9].includes(this._dateLevel)?h` <div class="settings-row">
|
|
180
|
-
${this._renderDisplaySettings()}
|
|
181
|
-
${this._dateLevel&&this._dateLevel>=5&&this._displayAs===`day_in_week`?this._renderWeekStartsOnSettings():``}
|
|
182
|
-
</div>`:``}
|
|
183
|
-
${[`month_in_year`,`day_in_week`].includes(this._displayAs??``)?h` <div class="settings-row">
|
|
184
|
-
${this._renderWeekDayAndMonthNameFormatSettings()}
|
|
185
|
-
</div>`:``}
|
|
186
|
-
${this._dateLevel&&this._dateLevel>1&&this._displayAs==="default"?h` <div class="settings-row">
|
|
187
|
-
${this._dateLevel&&this._dateLevel!==4&&this._dateLevel!==2?this._renderMonthNameSettings():``}
|
|
188
|
-
${this._dateLevel&&this._dateLevel!==4&&this._dateLevel>2&&this._monthName?this._renderMonthNameFormatSettings():``}
|
|
189
|
-
${this._dateLevel&&this._dateLevel===4&&!this._monthName?this._renderWeekFormatSettings():``}
|
|
190
|
-
${this._dateLevel&&this._dateLevel>=5&&!this._monthName?this._renderDateFormatSettings():``}
|
|
191
|
-
${this._dateLevel&&this._dateLevel>1&&!this._monthName?this._renderSeparatorSettings():``}
|
|
192
|
-
${this._dateLevel&&this._dateLevel>=5&&this._monthName?this._renderWeekdaySettings():``}
|
|
193
|
-
${this._dateLevel&&this._dateLevel>5?this._render24hFormatSettings():``}
|
|
194
|
-
</div>`:``}
|
|
195
|
-
</div>`}render(){return this._loadLocaleFormatsConfig.render({pending:()=>h`<luzmo-progress-circle
|
|
196
|
-
indeterminate
|
|
197
|
-
.label=${n(`Loading`,{desc:`Loading spinner label`})}
|
|
198
|
-
.size=${this.size}
|
|
199
|
-
></luzmo-progress-circle>`,complete:()=>this._renderAllSettings(),error:()=>this._renderAllSettings()})}};e([g({type:String})],x.prototype,`contentLanguage`,void 0),e([g({type:String})],x.prototype,`size`,void 0),e([g({type:Object,reflect:!1})],x.prototype,`slotContent`,void 0),e([_(`#display-as`)],x.prototype,`_displayAsElement`,void 0),e([_(`#week-start`)],x.prototype,`_weekStartElement`,void 0),e([_(`#weekday-and-month-in-year-format`)],x.prototype,`_weekDayAndMonthInYearFormatElement`,void 0),e([_(`#month-name-format`)],x.prototype,`_monthNameFormatElement`,void 0),e([_(`#month-name`)],x.prototype,`_monthNameElement`,void 0),e([_(`#week-format`)],x.prototype,`_weekFormatElement`,void 0),e([_(`#date-format`)],x.prototype,`_dateFormatElement`,void 0),e([_(`#date-separator`)],x.prototype,`_dateSeparatorElement`,void 0),e([_(`#weekday`)],x.prototype,`_weekDayElement`,void 0),e([_(`#format-24h`)],x.prototype,`_format24hElement`,void 0),x=e([r()],x),customElements.get(`luzmo-display-settings-datetime`)||customElements.define(`luzmo-display-settings-datetime`,x);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{n as e,t}from"./localized-mixin-BEfBwOPN.js";import{n}from"./lit-localize-CIGP-NUw.js";import{t as r}from"./localized-decorator-Buib6Rq1.js";import{n as i,t as a}from"./luzmoCheckbox-BksyONqE.js";import{n as o,r as s,t as c}from"./base-DOKoeL4P.js";import{html as l,ifDefined as u,property as d,state as f,unsafeCSS as p}from"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/lit.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/action-button.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/field-label.js";import"https://cdn.jsdelivr.net/npm/@luzmo/lucero@2.3.0-beta.0/standalone/icon.js";var m=`:host .settings-container{gap:var(--luzmo-display-settings-vertical-gap,var(--luzmo-spacing-2));flex-direction:column;display:flex}:host .settings-row{justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-grand-totals-gap,var(--display-settings-grand-totals-gap));display:flex}:host,: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)}`,h=class extends t(o(s,{validSizes:Object.values(c)})){constructor(...e){super(...e),this.slotContent={}}static get styles(){return[p(m)]}willUpdate(e){super.willUpdate(e),e.has(`slotContent`)&&(this._enabled=this.slotContent?.grandTotals?.enabled??!1)}toggleGrandTotals(){this._enabled=!this._enabled,this.sendEvent()}sendEvent(){let e={enabled:!!this._enabled};this.dispatchEvent(new CustomEvent(`luzmo-slot-content-changed`,{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,grandTotals:e}}}))}render(){return l`<div class="settings-container">
|
|
3
|
-
<div class="settings-row">
|
|
4
|
-
<div class="setting">
|
|
5
|
-
<luzmo-field-label .size=${this.size} for="grand-totals"
|
|
6
|
-
>${n(`Grand totals`,{desc:`Label for grand totals setting in a table`})}</luzmo-field-label
|
|
7
|
-
>
|
|
8
|
-
<luzmo-action-button
|
|
9
|
-
id="grand-totals"
|
|
10
|
-
toggles
|
|
11
|
-
emphasized
|
|
12
|
-
.size=${this.size}
|
|
13
|
-
?selected=${this._enabled}
|
|
14
|
-
class=${u(this._enabled?`active`:`inactive`)}
|
|
15
|
-
@click=${this.toggleGrandTotals}
|
|
16
|
-
>
|
|
17
|
-
<luzmo-icon
|
|
18
|
-
slot="icon"
|
|
19
|
-
.size=${this.size}
|
|
20
|
-
.icon=${this._enabled?i:a}
|
|
21
|
-
></luzmo-icon>
|
|
22
|
-
${this._enabled?n(`Enabled`,{desc:`Option set to enabled`}):n(`Disabled`,{desc:`Option set to disabled`})}
|
|
23
|
-
</luzmo-action-button>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
</div>`}};e([d()],h.prototype,`slotContent`,void 0),e([f()],h.prototype,`_enabled`,void 0),h=e([r()],h),customElements.get(`luzmo-display-settings-grand-totals`)||customElements.define(`luzmo-display-settings-grand-totals`,h);
|