@luzmo/analytics-components-kit 1.0.1-alpha.142 → 1.0.1-alpha.144
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/angular/esm/types/ai-chat.types.d.ts +1 -0
- package/angular/types/ai-chat.types.ts +1 -0
- package/components/ai-chat/ai-chat.d.ts +8 -1
- package/components/ai-chat/index.cjs +1 -1
- package/components/ai-chat/index.js +7 -7
- package/components/{ai-chat-DlUYd_Cf.js → ai-chat-CEX2VQeq.js} +115 -82
- package/components/ai-chat-PZrWiUxE.cjs +90 -0
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +5 -5
- package/components/{ai-interaction-textarea-BGnQbDpJ.cjs → ai-interaction-textarea-CcgFeoIg.cjs} +4 -4
- package/components/data-fields-select/index.cjs +1 -1
- package/components/data-fields-select/index.js +3 -3
- package/components/{data-fields-select-DOFNOn2D.cjs → data-fields-select-Byfdph5v.cjs} +3 -3
- package/components/{data-fields-select-0-QPdj3X.js → data-fields-select-dbn1KG3y.js} +2 -2
- package/components/dataset-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +1 -1
- package/components/{dataset-icon-BbNgugDA.cjs → dataset-icon-C0cID-ra.cjs} +11 -11
- package/components/{dataset-icon-x6Q8nhYc.js → dataset-icon-DhF21dXC.js} +6 -6
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +3 -3
- package/components/{dataset-selector-list-DO_ExOrO.js → dataset-selector-list-BDSXGUDh.js} +1 -1
- package/components/{dataset-selector-list-BdeJlo0u.cjs → dataset-selector-list-CH3lwAjJ.cjs} +1 -1
- package/components/dataset-selector-row/index.cjs +1 -1
- package/components/dataset-selector-row/index.js +4 -4
- package/components/{dataset-selector-row-VsvdrVDf.js → dataset-selector-row-DPyGMP__.js} +2 -2
- package/components/{dataset-selector-row-CAlRVIk_.cjs → dataset-selector-row-DdTnaQ6w.cjs} +9 -9
- package/components/{de-DEzbbWVL.js → de-DOhCpte6.js} +5 -2
- package/components/de-DR0saUbU.cjs +20 -0
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +3 -3
- package/components/{display-settings-BwRkE6i-.js → display-settings-C_ubOOoF.js} +14 -14
- package/components/{display-settings-rCBWD_I_.cjs → display-settings-Sh4LWJgN.cjs} +16 -16
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +3 -3
- package/components/{display-settings-binning-C4V_P8mI.cjs → display-settings-binning-C9VF0K9q.cjs} +7 -7
- package/components/{display-settings-binning-BXlXiFNV.js → display-settings-binning-DP9oFC6h.js} +2 -2
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +3 -3
- package/components/{display-settings-datetime-Db-0j9VZ.cjs → display-settings-datetime-C3LDVEcH.cjs} +38 -38
- package/components/{display-settings-datetime-LqM04khP.js → display-settings-datetime-DxBUXAuH.js} +2 -2
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +3 -3
- package/components/{display-settings-grand-totals-BDDMVFrg.js → display-settings-grand-totals-BiGxXuw2.js} +2 -2
- package/components/{display-settings-grand-totals-0ihnPMfZ.cjs → display-settings-grand-totals-C3QlInwU.cjs} +5 -5
- package/components/display-settings-numeric/index.cjs +1 -1
- package/components/display-settings-numeric/index.js +3 -3
- package/components/{display-settings-numeric-Cpp9mQCA.js → display-settings-numeric-BvLDL-qP.js} +3 -3
- package/components/{display-settings-numeric-CfBT04A7.cjs → display-settings-numeric-CyoTJKZv.cjs} +28 -28
- package/components/display-settings-period-over-period/index.cjs +1 -1
- package/components/display-settings-period-over-period/index.js +3 -3
- package/components/{display-settings-period-over-period-CWOpgJmd.cjs → display-settings-period-over-period-Cdmaf_Rw.cjs} +1 -1
- package/components/{display-settings-period-over-period-pxCijPAW.js → display-settings-period-over-period-CvvgRCVH.js} +1 -1
- package/components/draggable-data-field/index.cjs +1 -1
- package/components/draggable-data-field/index.js +4 -4
- package/components/{draggable-data-field-C6ojUWMf.js → draggable-data-field-C_zHA_mn.js} +1 -1
- package/components/{draggable-data-field-BsvgQjQY.cjs → draggable-data-field-CbF7N-o7.cjs} +1 -1
- package/components/draggable-data-field-level/index.cjs +1 -1
- package/components/draggable-data-field-level/index.js +3 -3
- package/components/{draggable-data-field-level-CJ-vup34.cjs → draggable-data-field-level-CI1No5x8.cjs} +10 -10
- package/components/draggable-data-fields-panel/index.cjs +1 -1
- package/components/draggable-data-fields-panel/index.js +5 -5
- package/components/{draggable-data-fields-panel-DJPz42xa.js → draggable-data-fields-panel-D7oa6gGZ.js} +1 -1
- package/components/{draggable-data-fields-panel-oNEzkow0.cjs → draggable-data-fields-panel-DOdI9NaC.cjs} +1 -1
- package/components/droppable-slot/index.cjs +1 -1
- package/components/droppable-slot/index.js +6 -6
- package/components/{droppable-slot-C8rhDVI-.cjs → droppable-slot-DtFdADiO.cjs} +10 -10
- package/components/{droppable-slot-DEpOqyps.js → droppable-slot-oB61SQKO.js} +4 -4
- package/components/edit-filters/index.cjs +1 -1
- package/components/edit-filters/index.js +10 -10
- package/components/{edit-filters-D2oZa0E_.js → edit-filters-B29YfSBe.js} +12 -21
- package/components/{edit-filters-pq1q7Eff.cjs → edit-filters-geWHEBCw.cjs} +23 -33
- package/components/edit-item/index.cjs +1 -1
- package/components/edit-item/index.js +2 -2
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +2 -2
- package/components/edit-option-action-button-group/index.cjs +1 -1
- package/components/edit-option-action-button-group/index.js +3 -3
- package/components/{edit-option-action-button-group-DlJwTW3A.cjs → edit-option-action-button-group-W34osCsN.cjs} +5 -5
- package/components/edit-option-color-palette-picker/index.cjs +1 -1
- package/components/edit-option-color-palette-picker/index.js +2 -2
- package/components/edit-option-color-picker/index.cjs +1 -1
- package/components/edit-option-color-picker/index.js +2 -2
- package/components/edit-option-color-range/index.cjs +1 -1
- package/components/edit-option-color-range/index.js +3 -3
- package/components/{edit-option-color-range-BtahxHzd.js → edit-option-color-range-CmpvQTSG.js} +3 -3
- package/components/{edit-option-color-range-DhBp5wlk.cjs → edit-option-color-range-DVYMhG2R.cjs} +15 -15
- package/components/edit-option-multi-language-field/index.cjs +1 -1
- package/components/edit-option-multi-language-field/index.js +2 -2
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +2 -2
- package/components/edit-option-picker/index.cjs +1 -1
- package/components/edit-option-picker/index.js +2 -2
- package/components/edit-option-position-picker/index.cjs +1 -1
- package/components/edit-option-position-picker/index.js +2 -2
- package/components/edit-option-positions-number-field/index.cjs +1 -1
- package/components/edit-option-positions-number-field/index.js +3 -3
- package/components/{edit-option-positions-number-field-DhnxicFl.cjs → edit-option-positions-number-field-CmK8_2ZQ.cjs} +8 -8
- package/components/edit-option-radio-button-group/index.cjs +1 -1
- package/components/edit-option-radio-button-group/index.js +2 -2
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +2 -2
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +2 -2
- package/components/edit-option-text-field/index.cjs +1 -1
- package/components/edit-option-text-field/index.js +2 -2
- package/components/es-CNpZK6tJ.cjs +20 -0
- package/components/{es-DIIjhY-_.js → es-cTUhzLmn.js} +5 -2
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +3 -3
- package/components/{filter-expression-picker-BKJXpOiw.js → filter-expression-picker-D83ya_dt.js} +1 -1
- package/components/{filter-expression-picker-Jcv2KTB6.cjs → filter-expression-picker-wOcgU2No.cjs} +1 -1
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +9 -9
- package/components/{filter-item-RaC0VdlI.js → filter-item-BdnrbMUW.js} +2 -2
- package/components/{filter-item-Bqhpikdf.cjs → filter-item-ByKzQ-fl.cjs} +1 -1
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +6 -6
- package/components/{filter-value-picker-C92yj41B.js → filter-value-picker-B2BjJuIa.js} +1 -1
- package/components/{filter-value-picker-49_ZrLE2.cjs → filter-value-picker-Co9Vka2J.cjs} +1 -1
- package/components/filter-value-picker-datetime/index.cjs +1 -1
- package/components/filter-value-picker-datetime/index.js +3 -3
- package/components/{filter-value-picker-datetime-CwrpeAdQ.js → filter-value-picker-datetime-BOheBbvB.js} +1 -1
- package/components/{filter-value-picker-datetime-f3T5FuxN.cjs → filter-value-picker-datetime-BzMfKPkZ.cjs} +1 -1
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +3 -3
- package/components/{filter-value-picker-hierarchy-BjWbzo8J.js → filter-value-picker-hierarchy-Cwq8GLp4.js} +1 -1
- package/components/{filter-value-picker-hierarchy-D6FbH0gw.cjs → filter-value-picker-hierarchy-Dgdj-xqx.cjs} +1 -1
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +3 -3
- package/components/{filter-value-picker-numeric-F1XJRVFa.js → filter-value-picker-numeric-CHFRRe1f.js} +1 -1
- package/components/{filter-value-picker-numeric-BCfpod5c.cjs → filter-value-picker-numeric-CZrRBHuR.cjs} +1 -1
- package/components/fr-DKJHfJgy.cjs +20 -0
- package/components/{fr-D9ILwOuz.js → fr-x3aFvlKk.js} +5 -2
- package/components/grid/index.cjs +1 -1
- package/components/grid/index.js +3 -3
- package/components/{grid-BNbbl-9p.cjs → grid-BxeX-SG-.cjs} +31 -31
- package/components/{grid-Ca-fxUK1.js → grid-CfCH13sk.js} +20 -20
- package/components/index.cjs +1 -1
- package/components/index.js +35 -35
- package/components/item-data-drop-panel/index.cjs +1 -1
- package/components/item-data-drop-panel/index.js +7 -7
- package/components/{item-data-drop-panel-BMubV7pj.js → item-data-drop-panel-BNf_N7GH.js} +1 -1
- package/components/{item-data-drop-panel-Bt8rKT6s.cjs → item-data-drop-panel-Dcj5Gz29.cjs} +1 -1
- package/components/item-data-picker-panel/index.cjs +1 -1
- package/components/item-data-picker-panel/index.js +8 -8
- package/components/{item-data-picker-panel-DZOIUxuS.cjs → item-data-picker-panel-GD6CRais.cjs} +1 -1
- package/components/{item-data-picker-panel-DBK2fVsG.js → item-data-picker-panel-OK_nMbm4.js} +1 -1
- package/components/{localized-mixin-DTvVLuXW.cjs → localized-mixin-BmZhC9XV.cjs} +1 -1
- package/components/{localized-mixin-cLT0UbaF.js → localized-mixin-CgQFYGOU.js} +1 -1
- package/components/{nl-DhD5Rlf7.js → nl-Cv7QXh6s.js} +5 -2
- package/components/nl-DtxDWOXH.cjs +20 -0
- package/components/{set-locale-Uv6F4uSq.js → set-locale-CRNDDu2d.js} +4 -4
- package/components/{set-locale-CKjJZRH6.cjs → set-locale-DjOkyNGu.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +1 -1
- package/components/slot-contents-picker/index.js +7 -7
- package/components/{slot-contents-picker-Bw_G1BwZ.js → slot-contents-picker-BNWBIypw.js} +4 -4
- package/components/{slot-contents-picker-BO5lSTDz.cjs → slot-contents-picker-BjqOUNKU.cjs} +21 -21
- package/components/slot-menu/index.cjs +1 -1
- package/components/slot-menu/index.js +5 -5
- package/components/{slot-menu-DxYruISb.js → slot-menu-B3L8YEnv.js} +2 -2
- package/components/{slot-menu-DyC8HQ5E.cjs → slot-menu-DIQ6h6Dz.cjs} +9 -9
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +3 -3
- package/components/{slot-menu-list-Dmb6s6UK.cjs → slot-menu-list-CFCvrPVt.cjs} +3 -3
- package/components/utils/base.cjs +1 -1
- package/components/utils/base.js +2 -2
- package/components/utils.cjs +1 -1
- package/components/utils.js +1 -1
- package/components/viz-item-menu/index.cjs +1 -1
- package/components/viz-item-menu/index.js +3 -3
- package/components/{viz-item-menu-D18d77aP.cjs → viz-item-menu-BNgd025g.cjs} +6 -6
- package/components/{viz-item-menu-CjA1X_Vg.js → viz-item-menu-_DLQJFWj.js} +2 -2
- package/custom-elements.json +19 -0
- package/package.json +1 -1
- package/types/ai-chat.types.d.ts +1 -0
- package/components/ai-chat-rok8ar11.cjs +0 -62
- package/components/de-nxCdeqFz.cjs +0 -20
- package/components/es-BEBp9Wdb.cjs +0 -20
- package/components/fr-BSmOmsww.cjs +0 -20
- package/components/nl-BiQ2EuE6.cjs +0 -20
- package/components/{ai-interaction-textarea-EdWcPK0w.js → ai-interaction-textarea-B5UE7CIq.js} +1 -1
- package/components/{draggable-data-field-level-BTUXWyDq.js → draggable-data-field-level-BQBMnApS.js} +1 -1
- package/components/{edit-option-action-button-group-CnsDFlK_.js → edit-option-action-button-group-DNrXatQR.js} +1 -1
- package/components/{edit-option-positions-number-field-BX1zqHcV.js → edit-option-positions-number-field-DZtxuvEY.js} +1 -1
- package/components/{slot-menu-list-DbZnXcMZ.js → slot-menu-list-BLJxoLeI.js} +1 -1
|
@@ -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
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-DjOkyNGu.cjs`),require(`../localized-mixin-BmZhC9XV.cjs`);const e=require(`../display-settings-binning-C9VF0K9q.cjs`);Object.defineProperty(exports,`LuzmoDisplaySettingsBinning`,{enumerable:!0,get:function(){return e.t}});
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
})();
|
|
26
26
|
import "../base-rg2x95aL.js";
|
|
27
27
|
import "../focus-visible-D1pJhWEh.js";
|
|
28
|
-
import "../set-locale-
|
|
29
|
-
import "../localized-mixin-
|
|
30
|
-
import { t as LuzmoDisplaySettingsBinning } from "../display-settings-binning-
|
|
28
|
+
import "../set-locale-CRNDDu2d.js";
|
|
29
|
+
import "../localized-mixin-CgQFYGOU.js";
|
|
30
|
+
import { t as LuzmoDisplaySettingsBinning } from "../display-settings-binning-DP9oFC6h.js";
|
|
31
31
|
export { LuzmoDisplaySettingsBinning };
|
package/components/{display-settings-binning-C4V_P8mI.cjs → display-settings-binning-C9VF0K9q.cjs}
RENAMED
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=require(`./decorate-Dq4-zbi1.cjs`),r=require(`./localized-mixin-
|
|
20
|
+
const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=require(`./decorate-Dq4-zbi1.cjs`),r=require(`./localized-mixin-BmZhC9XV.cjs`);let i=require(`@luzmo/icons`),a=require(`lit`),o=require(`lit/decorators.js`),s=require(`@lit/localize`);require(`@luzmo/lucero/field-label`),require(`@luzmo/lucero/icon`),require(`@luzmo/lucero/action-button`),require(`@luzmo/lucero/number-field`);var c=`: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)}`,l=class extends r.t(t.n(t.i,{validSizes:Object.values(t.t)})){constructor(...e){super(...e),this.slotContent={},this._enabled=!1,this._binWidth=10}static get styles(){return[(0,a.unsafeCSS)(c)]}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 a.html`<div class="setting">
|
|
21
21
|
<luzmo-field-label for="bin-width"
|
|
22
|
-
>${(0,
|
|
22
|
+
>${(0,s.msg)(`Bin width`,{desc:`The width of each bin in the histogram`})}</luzmo-field-label
|
|
23
23
|
>
|
|
24
24
|
<luzmo-number-field
|
|
25
25
|
id="bin-width"
|
|
@@ -28,11 +28,11 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
28
28
|
.size=${this.size}
|
|
29
29
|
@change=${this.setBinning}
|
|
30
30
|
></luzmo-number-field>
|
|
31
|
-
</div>`}render(){return
|
|
31
|
+
</div>`}render(){return a.html`<div class="settings-container">
|
|
32
32
|
<div class="settings-row">
|
|
33
33
|
<div class="setting">
|
|
34
34
|
<luzmo-field-label for="binning"
|
|
35
|
-
>${(0,
|
|
35
|
+
>${(0,s.msg)(`Binning`,{desc:`Grouping numeric data into intervals or "bins" for analysis and visualization`})}</luzmo-field-label
|
|
36
36
|
>
|
|
37
37
|
<luzmo-action-button
|
|
38
38
|
id="binning"
|
|
@@ -46,11 +46,11 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
46
46
|
<luzmo-icon
|
|
47
47
|
slot="icon"
|
|
48
48
|
.size=${this.size}
|
|
49
|
-
.icon=${this._enabled?
|
|
49
|
+
.icon=${this._enabled?i.luzmoCheckboxChecked:i.luzmoCheckbox}
|
|
50
50
|
></luzmo-icon>
|
|
51
|
-
${this._enabled?(0,
|
|
51
|
+
${this._enabled?(0,s.msg)(`Enabled`,{desc:`Option set to enabled`}):(0,s.msg)(`Disabled`,{desc:`Option set to disabled`})}
|
|
52
52
|
</luzmo-action-button>
|
|
53
53
|
</div>
|
|
54
54
|
${this._enabled?this.renderBinWidth():``}
|
|
55
55
|
</div>
|
|
56
|
-
</div>`}};n.t([(0,
|
|
56
|
+
</div>`}};n.t([(0,o.property)()],l.prototype,`slotContent`,void 0),n.t([(0,o.state)()],l.prototype,`_enabled`,void 0),n.t([(0,o.query)(`#bin-width`)],l.prototype,`binWidthElement`,void 0),l=n.t([(0,s.localized)()],l),customElements.get(`luzmo-display-settings-binning`)||customElements.define(`luzmo-display-settings-binning`,l),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return l}});
|
package/components/{display-settings-binning-BXlXiFNV.js → display-settings-binning-DP9oFC6h.js}
RENAMED
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
* */
|
|
20
20
|
import { i as LuzmoElement, n as SizedMixin, t as ElementSizes } from "./base-rg2x95aL.js";
|
|
21
21
|
import { t as __decorate } from "./decorate-Da6S_xrw.js";
|
|
22
|
-
import { t as LocalizedMixin } from "./localized-mixin-
|
|
22
|
+
import { t as LocalizedMixin } from "./localized-mixin-CgQFYGOU.js";
|
|
23
|
+
import { luzmoCheckbox, luzmoCheckboxChecked } from "@luzmo/icons";
|
|
23
24
|
import { html, unsafeCSS } from "lit";
|
|
24
25
|
import { property, query, state } from "lit/decorators.js";
|
|
25
26
|
import { localized, msg } from "@lit/localize";
|
|
26
|
-
import { luzmoCheckbox, luzmoCheckboxChecked } from "@luzmo/icons";
|
|
27
27
|
import "@luzmo/lucero/field-label";
|
|
28
28
|
import "@luzmo/lucero/icon";
|
|
29
29
|
import "@luzmo/lucero/action-button";
|
|
@@ -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
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-DjOkyNGu.cjs`),require(`../localized-mixin-BmZhC9XV.cjs`),require(`../formatter-CWhf4xbq.cjs`);const e=require(`../display-settings-datetime-C3LDVEcH.cjs`);require(`../periods.const-CX2ZWWrf.cjs`),Object.defineProperty(exports,`LuzmoDisplaySettingsDatetime`,{enumerable:!0,get:function(){return e.t}});
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
})();
|
|
26
26
|
import "../base-rg2x95aL.js";
|
|
27
27
|
import "../focus-visible-D1pJhWEh.js";
|
|
28
|
-
import "../set-locale-
|
|
29
|
-
import "../localized-mixin-
|
|
28
|
+
import "../set-locale-CRNDDu2d.js";
|
|
29
|
+
import "../localized-mixin-CgQFYGOU.js";
|
|
30
30
|
import "../formatter-B21Tb3sf.js";
|
|
31
|
-
import { t as LuzmoDisplaySettingsDatetime } from "../display-settings-datetime-
|
|
31
|
+
import { t as LuzmoDisplaySettingsDatetime } from "../display-settings-datetime-DxBUXAuH.js";
|
|
32
32
|
import "../periods.const-Ch6SfeaG.js";
|
|
33
33
|
export { LuzmoDisplaySettingsDatetime };
|
package/components/{display-settings-datetime-Db-0j9VZ.cjs → display-settings-datetime-C3LDVEcH.cjs}
RENAMED
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=require(`./decorate-Dq4-zbi1.cjs`),r=require(`./localized-mixin-DTvVLuXW.cjs`),i=require(`./formatter-CWhf4xbq.cjs`),a=require(`./periods.const-CX2ZWWrf.cjs`);let o=require(`lit`),s=require(`lit/decorators.js`),c=require(`@lit/localize`),l=require(`@luzmo/icons`),u=require(`@lit/task`);require(`@luzmo/lucero/field-label`),require(`@luzmo/lucero/icon`),require(`@luzmo/lucero/progress-circle`),require(`@luzmo/lucero/action-button`),require(`@luzmo/lucero/number-field`),require(`@luzmo/lucero/action-group`),require(`@luzmo/lucero/picker`);const d={"~":()=>(0,c.msg)(`Auto`,{desc:`Automatic setting of the option`}),"/":()=>`/`,"-":()=>`-`,".":()=>`.`};var f=`: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)}`,p=class extends r.t(t.n(t.i,{validSizes:Object.values(t.t)})){constructor(...e){super(...e),this._loadLocaleFormatsConfig=new u.Task(this,{task:async([e])=>{if(e&&e!==this._contentLanguageLoaded){let t=Object.assign({"../../utils/formatter/formats/cs.ts":()=>Promise.resolve().then(()=>require(`./cs-BAmKPXV0.cjs`)),"../../utils/formatter/formats/da.ts":()=>Promise.resolve().then(()=>require(`./da-DHl8PzfU.cjs`)),"../../utils/formatter/formats/de.ts":()=>Promise.resolve().then(()=>require(`./de-CQMDOcBQ.cjs`)),"../../utils/formatter/formats/en-GB.ts":()=>Promise.resolve().then(()=>require(`./en-GB-CLevdvMs.cjs`)),"../../utils/formatter/formats/en-US.ts":()=>Promise.resolve().then(()=>require(`./en-US-Hj9Lh0Yh.cjs`)),"../../utils/formatter/formats/en.ts":()=>Promise.resolve().then(()=>require(`./en-jIqxZyQr.cjs`)),"../../utils/formatter/formats/es.ts":()=>Promise.resolve().then(()=>require(`./es-DS-aph2K.cjs`)),"../../utils/formatter/formats/fi.ts":()=>Promise.resolve().then(()=>require(`./fi-DbXbnIlF.cjs`)),"../../utils/formatter/formats/fr.ts":()=>Promise.resolve().then(()=>require(`./fr-CUzKlf1c.cjs`)),"../../utils/formatter/formats/he.ts":()=>Promise.resolve().then(()=>require(`./he-Bxmbik6g.cjs`)),"../../utils/formatter/formats/hu.ts":()=>Promise.resolve().then(()=>require(`./hu-CCt14ec_.cjs`)),"../../utils/formatter/formats/it.ts":()=>Promise.resolve().then(()=>require(`./it-Czry5-br.cjs`)),"../../utils/formatter/formats/ja.ts":()=>Promise.resolve().then(()=>require(`./ja-DLYEeBwD.cjs`)),"../../utils/formatter/formats/ko.ts":()=>Promise.resolve().then(()=>require(`./ko-Cq3bNSoY.cjs`)),"../../utils/formatter/formats/mk.ts":()=>Promise.resolve().then(()=>require(`./mk-CX6tWFGL.cjs`)),"../../utils/formatter/formats/nl.ts":()=>Promise.resolve().then(()=>require(`./nl-CC5UMR5B.cjs`)),"../../utils/formatter/formats/no.ts":()=>Promise.resolve().then(()=>require(`./no-CRcBAcaW.cjs`)),"../../utils/formatter/formats/pl.ts":()=>Promise.resolve().then(()=>require(`./pl-Cy4MfWob.cjs`)),"../../utils/formatter/formats/pt.ts":()=>Promise.resolve().then(()=>require(`./pt-BmXZldF9.cjs`)),"../../utils/formatter/formats/ru.ts":()=>Promise.resolve().then(()=>require(`./ru-fWz2GIGG.cjs`)),"../../utils/formatter/formats/sv.ts":()=>Promise.resolve().then(()=>require(`./sv-BJHpfzAX.cjs`)),"../../utils/formatter/formats/tr.ts":()=>Promise.resolve().then(()=>require(`./tr-Ctcalxbu.cjs`)),"../../utils/formatter/formats/zh-CN.ts":()=>Promise.resolve().then(()=>require(`./zh-CN-B77UpR2K.cjs`)),"../../utils/formatter/formats/zh-TW.ts":()=>Promise.resolve().then(()=>require(`./zh-TW-BsHHLnIy.cjs`))});return t[`../../utils/formatter/formats/${e}.ts`]&&(this._localeFormats=(await t[`../../utils/formatter/formats/${e}.ts`]())?.default??{}),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[(0,o.unsafeCSS)(f)]}_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??i.r;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`?!0:this._weekFormat===`ddmm`?!1:null)&&e.separator===this._dateSeparator):t.filter(e=>e.monthType===`number`&&e.mmdd===(this._dateFormat===`mmdd`?!0:this._dateFormat===`ddmm`?!1: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=a.t?.[`level${this._dateLevel??0}`]?.map(e=>o.html`<luzmo-menu-item value=${e.key}>
|
|
20
|
+
const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=require(`./decorate-Dq4-zbi1.cjs`),r=require(`./localized-mixin-BmZhC9XV.cjs`),i=require(`./formatter-CWhf4xbq.cjs`),a=require(`./periods.const-CX2ZWWrf.cjs`);let o=require(`@luzmo/icons`),s=require(`lit`),c=require(`lit/decorators.js`),l=require(`@lit/localize`),u=require(`@lit/task`);require(`@luzmo/lucero/field-label`),require(`@luzmo/lucero/icon`),require(`@luzmo/lucero/progress-circle`),require(`@luzmo/lucero/action-button`),require(`@luzmo/lucero/number-field`),require(`@luzmo/lucero/action-group`),require(`@luzmo/lucero/picker`);const d={"~":()=>(0,l.msg)(`Auto`,{desc:`Automatic setting of the option`}),"/":()=>`/`,"-":()=>`-`,".":()=>`.`};var f=`: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)}`,p=class extends r.t(t.n(t.i,{validSizes:Object.values(t.t)})){constructor(...e){super(...e),this._loadLocaleFormatsConfig=new u.Task(this,{task:async([e])=>{if(e&&e!==this._contentLanguageLoaded){let t=Object.assign({"../../utils/formatter/formats/cs.ts":()=>Promise.resolve().then(()=>require(`./cs-BAmKPXV0.cjs`)),"../../utils/formatter/formats/da.ts":()=>Promise.resolve().then(()=>require(`./da-DHl8PzfU.cjs`)),"../../utils/formatter/formats/de.ts":()=>Promise.resolve().then(()=>require(`./de-CQMDOcBQ.cjs`)),"../../utils/formatter/formats/en-GB.ts":()=>Promise.resolve().then(()=>require(`./en-GB-CLevdvMs.cjs`)),"../../utils/formatter/formats/en-US.ts":()=>Promise.resolve().then(()=>require(`./en-US-Hj9Lh0Yh.cjs`)),"../../utils/formatter/formats/en.ts":()=>Promise.resolve().then(()=>require(`./en-jIqxZyQr.cjs`)),"../../utils/formatter/formats/es.ts":()=>Promise.resolve().then(()=>require(`./es-DS-aph2K.cjs`)),"../../utils/formatter/formats/fi.ts":()=>Promise.resolve().then(()=>require(`./fi-DbXbnIlF.cjs`)),"../../utils/formatter/formats/fr.ts":()=>Promise.resolve().then(()=>require(`./fr-CUzKlf1c.cjs`)),"../../utils/formatter/formats/he.ts":()=>Promise.resolve().then(()=>require(`./he-Bxmbik6g.cjs`)),"../../utils/formatter/formats/hu.ts":()=>Promise.resolve().then(()=>require(`./hu-CCt14ec_.cjs`)),"../../utils/formatter/formats/it.ts":()=>Promise.resolve().then(()=>require(`./it-Czry5-br.cjs`)),"../../utils/formatter/formats/ja.ts":()=>Promise.resolve().then(()=>require(`./ja-DLYEeBwD.cjs`)),"../../utils/formatter/formats/ko.ts":()=>Promise.resolve().then(()=>require(`./ko-Cq3bNSoY.cjs`)),"../../utils/formatter/formats/mk.ts":()=>Promise.resolve().then(()=>require(`./mk-CX6tWFGL.cjs`)),"../../utils/formatter/formats/nl.ts":()=>Promise.resolve().then(()=>require(`./nl-CC5UMR5B.cjs`)),"../../utils/formatter/formats/no.ts":()=>Promise.resolve().then(()=>require(`./no-CRcBAcaW.cjs`)),"../../utils/formatter/formats/pl.ts":()=>Promise.resolve().then(()=>require(`./pl-Cy4MfWob.cjs`)),"../../utils/formatter/formats/pt.ts":()=>Promise.resolve().then(()=>require(`./pt-BmXZldF9.cjs`)),"../../utils/formatter/formats/ru.ts":()=>Promise.resolve().then(()=>require(`./ru-fWz2GIGG.cjs`)),"../../utils/formatter/formats/sv.ts":()=>Promise.resolve().then(()=>require(`./sv-BJHpfzAX.cjs`)),"../../utils/formatter/formats/tr.ts":()=>Promise.resolve().then(()=>require(`./tr-Ctcalxbu.cjs`)),"../../utils/formatter/formats/zh-CN.ts":()=>Promise.resolve().then(()=>require(`./zh-CN-B77UpR2K.cjs`)),"../../utils/formatter/formats/zh-TW.ts":()=>Promise.resolve().then(()=>require(`./zh-TW-BsHHLnIy.cjs`))});return t[`../../utils/formatter/formats/${e}.ts`]&&(this._localeFormats=(await t[`../../utils/formatter/formats/${e}.ts`]())?.default??{}),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[(0,s.unsafeCSS)(f)]}_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??i.r;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`?!0:this._weekFormat===`ddmm`?!1:null)&&e.separator===this._dateSeparator):t.filter(e=>e.monthType===`number`&&e.mmdd===(this._dateFormat===`mmdd`?!0:this._dateFormat===`ddmm`?!1: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=a.t?.[`level${this._dateLevel??0}`]?.map(e=>s.html`<luzmo-menu-item value=${e.key}>
|
|
21
21
|
${e.i18n()}
|
|
22
|
-
</luzmo-menu-item>`);return
|
|
22
|
+
</luzmo-menu-item>`);return s.html`<div class="setting">
|
|
23
23
|
<luzmo-field-label for="display-as"
|
|
24
|
-
>${(0,
|
|
24
|
+
>${(0,l.msg)(`Display`,{desc:`Label for display setting`})}</luzmo-field-label
|
|
25
25
|
>
|
|
26
26
|
<luzmo-picker
|
|
27
27
|
id="display-as"
|
|
@@ -32,11 +32,11 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
32
32
|
>
|
|
33
33
|
${e}
|
|
34
34
|
</luzmo-picker>
|
|
35
|
-
</div>`}_renderWeekDayAndMonthNameFormatSettings(){let e=Object.keys(a.r).map(e=>
|
|
35
|
+
</div>`}_renderWeekDayAndMonthNameFormatSettings(){let e=Object.keys(a.r).map(e=>s.html`<luzmo-action-button value=${e}>
|
|
36
36
|
${a.r[e]()}
|
|
37
|
-
</luzmo-action-button>`);return
|
|
37
|
+
</luzmo-action-button>`);return s.html` <div class="setting">
|
|
38
38
|
<luzmo-field-label for="weekday-and-month-in-year-format"
|
|
39
|
-
>${(0,
|
|
39
|
+
>${(0,l.msg)(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
|
|
40
40
|
>
|
|
41
41
|
<luzmo-action-group
|
|
42
42
|
emphasized
|
|
@@ -49,9 +49,9 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
49
49
|
>
|
|
50
50
|
${e}
|
|
51
51
|
</luzmo-action-group>
|
|
52
|
-
</div>`}_renderMonthNameFormatSettings(){return
|
|
52
|
+
</div>`}_renderMonthNameFormatSettings(){return s.html` <div class="setting">
|
|
53
53
|
<luzmo-field-label for="month-name-format"
|
|
54
|
-
>${(0,
|
|
54
|
+
>${(0,l.msg)(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
|
|
55
55
|
>
|
|
56
56
|
<luzmo-action-group
|
|
57
57
|
emphasized
|
|
@@ -63,15 +63,15 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
63
63
|
@change=${this._setMonthNameFormat}
|
|
64
64
|
>
|
|
65
65
|
<luzmo-action-button value="short">
|
|
66
|
-
${(0,
|
|
66
|
+
${(0,l.msg)(`Short`,{desc:`Short format option`})}
|
|
67
67
|
</luzmo-action-button>
|
|
68
68
|
<luzmo-action-button value="long">
|
|
69
|
-
${(0,
|
|
69
|
+
${(0,l.msg)(`Long`,{desc:`Long format option`})}
|
|
70
70
|
</luzmo-action-button>
|
|
71
71
|
</luzmo-action-group>
|
|
72
|
-
</div>`}_renderWeekFormatSettings(){let e=this._localeFormats?.smartDateFormats??i.r,t=e.find(e=>e.mmdd===!0&&e.separator===this._dateSeparator&&e.monthType===`number`),n=e.find(e=>e.mmdd===!1&&e.separator===this._dateSeparator&&e.monthType===`number`);return
|
|
72
|
+
</div>`}_renderWeekFormatSettings(){let e=this._localeFormats?.smartDateFormats??i.r,t=e.find(e=>e.mmdd===!0&&e.separator===this._dateSeparator&&e.monthType===`number`),n=e.find(e=>e.mmdd===!1&&e.separator===this._dateSeparator&&e.monthType===`number`);return s.html` <div class="setting">
|
|
73
73
|
<luzmo-field-label for="week-format"
|
|
74
|
-
>${(0,
|
|
74
|
+
>${(0,l.msg)(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
|
|
75
75
|
>
|
|
76
76
|
<luzmo-action-group
|
|
77
77
|
emphasized
|
|
@@ -89,11 +89,11 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
89
89
|
>${i.t({...this._currentSlotContent,type:`datetime`,format:t?.key},{localFormats:this._localeFormats,level:this._dateLevel})(new Date)}</luzmo-action-button
|
|
90
90
|
>
|
|
91
91
|
</luzmo-action-group>
|
|
92
|
-
</div>`}_renderWeekStartsOnSettings(){let e=Object.keys(a.i).map(e=>
|
|
92
|
+
</div>`}_renderWeekStartsOnSettings(){let e=Object.keys(a.i).map(e=>s.html`<luzmo-menu-item value=${e}>
|
|
93
93
|
${a.i[e]()}
|
|
94
|
-
</luzmo-menu-item>`);return
|
|
94
|
+
</luzmo-menu-item>`);return s.html`<div class="setting">
|
|
95
95
|
<luzmo-field-label for="week-start"
|
|
96
|
-
>${(0,
|
|
96
|
+
>${(0,l.msg)(`Week starts on`,{desc:`Label for week start setting`})}</luzmo-field-label
|
|
97
97
|
>
|
|
98
98
|
<luzmo-picker
|
|
99
99
|
id="week-start"
|
|
@@ -104,9 +104,9 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
104
104
|
>
|
|
105
105
|
${e}
|
|
106
106
|
</luzmo-picker>
|
|
107
|
-
</div>`}_renderMonthNameSettings(){return
|
|
107
|
+
</div>`}_renderMonthNameSettings(){return s.html`<div class="settings-">
|
|
108
108
|
<luzmo-field-label for="month-name"
|
|
109
|
-
>${(0,
|
|
109
|
+
>${(0,l.msg)(`Month`,{desc:`Month format setting`})}</luzmo-field-label
|
|
110
110
|
>
|
|
111
111
|
<luzmo-action-button
|
|
112
112
|
id="month-name"
|
|
@@ -119,13 +119,13 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
119
119
|
<luzmo-icon
|
|
120
120
|
slot="icon"
|
|
121
121
|
.size=${this.size}
|
|
122
|
-
.icon=${this._monthName?
|
|
122
|
+
.icon=${this._monthName?o.luzmoCheckboxChecked:o.luzmoCheckbox}
|
|
123
123
|
></luzmo-icon>
|
|
124
|
-
${(0,
|
|
124
|
+
${(0,l.msg)(`Name`)}
|
|
125
125
|
</luzmo-action-button>
|
|
126
|
-
</div>`}_renderDateFormatSettings(){let e=this._dateSeparator===`~`?`/`:this._dateSeparator;return
|
|
126
|
+
</div>`}_renderDateFormatSettings(){let e=this._dateSeparator===`~`?`/`:this._dateSeparator;return s.html`<div class="setting">
|
|
127
127
|
<luzmo-field-label for="date-format"
|
|
128
|
-
>${(0,
|
|
128
|
+
>${(0,l.msg)(`Format`,{desc:`Label for format setting`})}</luzmo-field-label
|
|
129
129
|
>
|
|
130
130
|
<luzmo-picker
|
|
131
131
|
id="date-format"
|
|
@@ -135,16 +135,16 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
135
135
|
@change=${this._setDateFormat}
|
|
136
136
|
>
|
|
137
137
|
<luzmo-menu-item value="auto">
|
|
138
|
-
${(0,
|
|
138
|
+
${(0,l.msg)(`Auto`,{desc:`Automatic setting of the option`})}
|
|
139
139
|
</luzmo-menu-item>
|
|
140
140
|
<luzmo-menu-item value="mmdd">12${e}31</luzmo-menu-item>
|
|
141
141
|
<luzmo-menu-item value="ddmm">31${e}12</luzmo-menu-item>
|
|
142
142
|
</luzmo-picker>
|
|
143
|
-
</div>`}_renderSeparatorSettings(){let e=Object.keys(d).map(e=>
|
|
143
|
+
</div>`}_renderSeparatorSettings(){let e=Object.keys(d).map(e=>s.html`<luzmo-menu-item value=${e}>
|
|
144
144
|
${d[e]()}
|
|
145
|
-
</luzmo-menu-item>`);return
|
|
145
|
+
</luzmo-menu-item>`);return s.html`<div class="setting">
|
|
146
146
|
<luzmo-field-label for="date-separator"
|
|
147
|
-
>${(0,
|
|
147
|
+
>${(0,l.msg)(`Separator`,{desc:`Label for date separator setting`})}</luzmo-field-label
|
|
148
148
|
>
|
|
149
149
|
<luzmo-picker
|
|
150
150
|
id="date-separator"
|
|
@@ -155,9 +155,9 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
155
155
|
>
|
|
156
156
|
${e}
|
|
157
157
|
</luzmo-picker>
|
|
158
|
-
</div>`}_render24hFormatSettings(){return
|
|
158
|
+
</div>`}_render24hFormatSettings(){return s.html`<div class="settings-">
|
|
159
159
|
<luzmo-field-label for="format-24h"
|
|
160
|
-
>${(0,
|
|
160
|
+
>${(0,l.msg)(`24h`,{desc:`Label for 24h format setting`})}</luzmo-field-label
|
|
161
161
|
>
|
|
162
162
|
<luzmo-action-button
|
|
163
163
|
id="format-24h"
|
|
@@ -170,12 +170,12 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
170
170
|
<luzmo-icon
|
|
171
171
|
slot="icon"
|
|
172
172
|
.size=${this.size}
|
|
173
|
-
.icon=${this._24hFormat?
|
|
173
|
+
.icon=${this._24hFormat?o.luzmoCheckboxChecked:o.luzmoCheckbox}
|
|
174
174
|
></luzmo-icon>
|
|
175
175
|
</luzmo-action-button>
|
|
176
|
-
</div>`}_renderWeekdaySettings(){return
|
|
176
|
+
</div>`}_renderWeekdaySettings(){return s.html`<div class="settings-">
|
|
177
177
|
<luzmo-field-label for="weekday"
|
|
178
|
-
>${(0,
|
|
178
|
+
>${(0,l.msg)(`Weekday`,{desc:`Label for weekday setting`})}</luzmo-field-label
|
|
179
179
|
>
|
|
180
180
|
<luzmo-action-button
|
|
181
181
|
id="weekday"
|
|
@@ -188,19 +188,19 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
188
188
|
<luzmo-icon
|
|
189
189
|
slot="icon"
|
|
190
190
|
.size=${this.size}
|
|
191
|
-
.icon=${this._weekDay?
|
|
191
|
+
.icon=${this._weekDay?o.luzmoCheckboxChecked:o.luzmoCheckbox}
|
|
192
192
|
></luzmo-icon>
|
|
193
|
-
${(0,
|
|
193
|
+
${(0,l.msg)(`Show`)}
|
|
194
194
|
</luzmo-action-button>
|
|
195
|
-
</div>`}_renderAllSettings(){return
|
|
196
|
-
${this._dateLevel&&![1,9].includes(this._dateLevel)?
|
|
195
|
+
</div>`}_renderAllSettings(){return s.html`<div class="settings-container">
|
|
196
|
+
${this._dateLevel&&![1,9].includes(this._dateLevel)?s.html` <div class="settings-row">
|
|
197
197
|
${this._renderDisplaySettings()}
|
|
198
198
|
${this._dateLevel&&this._dateLevel>=5&&this._displayAs===`day_in_week`?this._renderWeekStartsOnSettings():``}
|
|
199
199
|
</div>`:``}
|
|
200
|
-
${[`month_in_year`,`day_in_week`].includes(this._displayAs??``)?
|
|
200
|
+
${[`month_in_year`,`day_in_week`].includes(this._displayAs??``)?s.html` <div class="settings-row">
|
|
201
201
|
${this._renderWeekDayAndMonthNameFormatSettings()}
|
|
202
202
|
</div>`:``}
|
|
203
|
-
${this._dateLevel&&this._dateLevel>1&&this._displayAs===`default`?
|
|
203
|
+
${this._dateLevel&&this._dateLevel>1&&this._displayAs===`default`?s.html` <div class="settings-row">
|
|
204
204
|
${this._dateLevel&&this._dateLevel!==4&&this._dateLevel!==2?this._renderMonthNameSettings():``}
|
|
205
205
|
${this._dateLevel&&this._dateLevel!==4&&this._dateLevel>2&&this._monthName?this._renderMonthNameFormatSettings():``}
|
|
206
206
|
${this._dateLevel&&this._dateLevel===4&&!this._monthName?this._renderWeekFormatSettings():``}
|
|
@@ -209,7 +209,7 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
209
209
|
${this._dateLevel&&this._dateLevel>=5&&this._monthName?this._renderWeekdaySettings():``}
|
|
210
210
|
${this._dateLevel&&this._dateLevel>5?this._render24hFormatSettings():``}
|
|
211
211
|
</div>`:``}
|
|
212
|
-
</div>`}render(){return this._loadLocaleFormatsConfig.render({pending:()=>
|
|
212
|
+
</div>`}render(){return this._loadLocaleFormatsConfig.render({pending:()=>s.html`<luzmo-progress-circle
|
|
213
213
|
indeterminate
|
|
214
214
|
.size=${this.size}
|
|
215
|
-
></luzmo-progress-circle>`,complete:()=>this._renderAllSettings(),error:()=>this._renderAllSettings()})}};n.t([(0,
|
|
215
|
+
></luzmo-progress-circle>`,complete:()=>this._renderAllSettings(),error:()=>this._renderAllSettings()})}};n.t([(0,c.property)({type:String})],p.prototype,`contentLanguage`,void 0),n.t([(0,c.property)({type:String})],p.prototype,`size`,void 0),n.t([(0,c.property)({type:Object,reflect:!1})],p.prototype,`slotContent`,void 0),n.t([(0,c.query)(`#display-as`)],p.prototype,`_displayAsElement`,void 0),n.t([(0,c.query)(`#week-start`)],p.prototype,`_weekStartElement`,void 0),n.t([(0,c.query)(`#weekday-and-month-in-year-format`)],p.prototype,`_weekDayAndMonthInYearFormatElement`,void 0),n.t([(0,c.query)(`#month-name-format`)],p.prototype,`_monthNameFormatElement`,void 0),n.t([(0,c.query)(`#month-name`)],p.prototype,`_monthNameElement`,void 0),n.t([(0,c.query)(`#week-format`)],p.prototype,`_weekFormatElement`,void 0),n.t([(0,c.query)(`#date-format`)],p.prototype,`_dateFormatElement`,void 0),n.t([(0,c.query)(`#date-separator`)],p.prototype,`_dateSeparatorElement`,void 0),n.t([(0,c.query)(`#weekday`)],p.prototype,`_weekDayElement`,void 0),n.t([(0,c.query)(`#format-24h`)],p.prototype,`_format24hElement`,void 0),p=n.t([(0,l.localized)()],p),customElements.get(`luzmo-display-settings-datetime`)||customElements.define(`luzmo-display-settings-datetime`,p),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
|
package/components/{display-settings-datetime-LqM04khP.js → display-settings-datetime-DxBUXAuH.js}
RENAMED
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
* */
|
|
20
20
|
import { i as LuzmoElement, n as SizedMixin, t as ElementSizes } from "./base-rg2x95aL.js";
|
|
21
21
|
import { t as __decorate } from "./decorate-Da6S_xrw.js";
|
|
22
|
-
import { t as LocalizedMixin } from "./localized-mixin-
|
|
22
|
+
import { t as LocalizedMixin } from "./localized-mixin-CgQFYGOU.js";
|
|
23
23
|
import { n as DEFAULT_DATETIME_FORMAT, r as SMART_DATE_FORMATS, t as formatter } from "./formatter-B21Tb3sf.js";
|
|
24
24
|
import { i as WEEK_STARTS_ON, r as DATETIME_WEEKDAY_AND_MONTH_STRING_FORMATS, t as DATETIME_AS_STRING_FORMATS_PER_LEVEL } from "./periods.const-Ch6SfeaG.js";
|
|
25
|
+
import { luzmoCheckbox, luzmoCheckboxChecked } from "@luzmo/icons";
|
|
25
26
|
import { html, unsafeCSS } from "lit";
|
|
26
27
|
import { property, query } from "lit/decorators.js";
|
|
27
28
|
import { localized, msg } from "@lit/localize";
|
|
28
|
-
import { luzmoCheckbox, luzmoCheckboxChecked } from "@luzmo/icons";
|
|
29
29
|
import { Task } from "@lit/task";
|
|
30
30
|
import "@luzmo/lucero/field-label";
|
|
31
31
|
import "@luzmo/lucero/icon";
|
|
@@ -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
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-DjOkyNGu.cjs`),require(`../localized-mixin-BmZhC9XV.cjs`);const e=require(`../display-settings-grand-totals-C3QlInwU.cjs`);Object.defineProperty(exports,`LuzmoDisplaySettingsGrandTotals`,{enumerable:!0,get:function(){return e.t}});
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
})();
|
|
26
26
|
import "../base-rg2x95aL.js";
|
|
27
27
|
import "../focus-visible-D1pJhWEh.js";
|
|
28
|
-
import "../set-locale-
|
|
29
|
-
import "../localized-mixin-
|
|
30
|
-
import { t as LuzmoDisplaySettingsGrandTotals } from "../display-settings-grand-totals-
|
|
28
|
+
import "../set-locale-CRNDDu2d.js";
|
|
29
|
+
import "../localized-mixin-CgQFYGOU.js";
|
|
30
|
+
import { t as LuzmoDisplaySettingsGrandTotals } from "../display-settings-grand-totals-BiGxXuw2.js";
|
|
31
31
|
export { LuzmoDisplaySettingsGrandTotals };
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
* */
|
|
20
20
|
import { i as LuzmoElement, n as SizedMixin, t as ElementSizes } from "./base-rg2x95aL.js";
|
|
21
21
|
import { t as __decorate } from "./decorate-Da6S_xrw.js";
|
|
22
|
-
import { t as LocalizedMixin } from "./localized-mixin-
|
|
22
|
+
import { t as LocalizedMixin } from "./localized-mixin-CgQFYGOU.js";
|
|
23
|
+
import { luzmoCheckbox, luzmoCheckboxChecked } from "@luzmo/icons";
|
|
23
24
|
import { html, unsafeCSS } from "lit";
|
|
24
25
|
import { property, state } from "lit/decorators.js";
|
|
25
26
|
import { localized, msg } from "@lit/localize";
|
|
26
|
-
import { luzmoCheckbox, luzmoCheckboxChecked } from "@luzmo/icons";
|
|
27
27
|
import "@luzmo/lucero/field-label";
|
|
28
28
|
import "@luzmo/lucero/icon";
|
|
29
29
|
import "@luzmo/lucero/action-button";
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=require(`./decorate-Dq4-zbi1.cjs`),r=require(`./localized-mixin-
|
|
20
|
+
const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=require(`./decorate-Dq4-zbi1.cjs`),r=require(`./localized-mixin-BmZhC9XV.cjs`);let i=require(`@luzmo/icons`),a=require(`lit`),o=require(`lit/decorators.js`),s=require(`@lit/localize`);require(`@luzmo/lucero/field-label`),require(`@luzmo/lucero/icon`),require(`@luzmo/lucero/action-button`);let c=require(`lit/directives/if-defined.js`);var l=`: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)}`,u=class extends r.t(t.n(t.i,{validSizes:Object.values(t.t)})){constructor(...e){super(...e),this.slotContent={}}static get styles(){return[(0,a.unsafeCSS)(l)]}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 a.html`<div class="settings-container">
|
|
21
21
|
<div class="settings-row">
|
|
22
22
|
<div class="setting">
|
|
23
23
|
<luzmo-field-label for="grand-totals"
|
|
24
|
-
>${(0,
|
|
24
|
+
>${(0,s.msg)(`Grand totals`,{desc:`Label for grand totals setting in a table`})}</luzmo-field-label
|
|
25
25
|
>
|
|
26
26
|
<luzmo-action-button
|
|
27
27
|
id="grand-totals"
|
|
@@ -35,10 +35,10 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
35
35
|
<luzmo-icon
|
|
36
36
|
slot="icon"
|
|
37
37
|
.size=${this.size}
|
|
38
|
-
.icon=${this._enabled?
|
|
38
|
+
.icon=${this._enabled?i.luzmoCheckboxChecked:i.luzmoCheckbox}
|
|
39
39
|
></luzmo-icon>
|
|
40
|
-
${this._enabled?(0,
|
|
40
|
+
${this._enabled?(0,s.msg)(`Enabled`,{desc:`Option set to enabled`}):(0,s.msg)(`Disabled`,{desc:`Option set to disabled`})}
|
|
41
41
|
</luzmo-action-button>
|
|
42
42
|
</div>
|
|
43
43
|
</div>
|
|
44
|
-
</div>`}};n.t([(0,
|
|
44
|
+
</div>`}};n.t([(0,o.property)()],u.prototype,`slotContent`,void 0),n.t([(0,o.state)()],u.prototype,`_enabled`,void 0),u=n.t([(0,s.localized)()],u),customElements.get(`luzmo-display-settings-grand-totals`)||customElements.define(`luzmo-display-settings-grand-totals`,u),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|
|
@@ -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
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-DjOkyNGu.cjs`),require(`../localized-mixin-BmZhC9XV.cjs`),require(`../calculate-data-field-icon-BhiGlh0u.cjs`);const e=require(`../display-settings-numeric-CyoTJKZv.cjs`);Object.defineProperty(exports,`LuzmoDisplaySettingsNumeric`,{enumerable:!0,get:function(){return e.t}});
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
})();
|
|
26
26
|
import "../base-rg2x95aL.js";
|
|
27
27
|
import "../focus-visible-D1pJhWEh.js";
|
|
28
|
-
import "../set-locale-
|
|
29
|
-
import "../localized-mixin-
|
|
28
|
+
import "../set-locale-CRNDDu2d.js";
|
|
29
|
+
import "../localized-mixin-CgQFYGOU.js";
|
|
30
30
|
import "../calculate-data-field-icon-CY7Y6fn1.js";
|
|
31
|
-
import { t as LuzmoDisplaySettingsNumeric } from "../display-settings-numeric-
|
|
31
|
+
import { t as LuzmoDisplaySettingsNumeric } from "../display-settings-numeric-BvLDL-qP.js";
|
|
32
32
|
export { LuzmoDisplaySettingsNumeric };
|
package/components/{display-settings-numeric-Cpp9mQCA.js → display-settings-numeric-BvLDL-qP.js}
RENAMED
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
* */
|
|
20
20
|
import { i as LuzmoElement, n as SizedMixin, t as ElementSizes } from "./base-rg2x95aL.js";
|
|
21
21
|
import { t as __decorate } from "./decorate-Da6S_xrw.js";
|
|
22
|
-
import { t as LocalizedMixin } from "./localized-mixin-
|
|
22
|
+
import { t as LocalizedMixin } from "./localized-mixin-CgQFYGOU.js";
|
|
23
23
|
import { t as localize } from "./localize-Dlt3EN5i.js";
|
|
24
24
|
import { t as decomposeNumericFormat } from "./decompose-numeric-format-zrP4WxE7.js";
|
|
25
25
|
import { t as calculateDataFieldIcon } from "./calculate-data-field-icon-CY7Y6fn1.js";
|
|
26
|
+
import { luzmoAngleDown, luzmoIcon, luzmoTypeDerived12 } from "@luzmo/icons";
|
|
26
27
|
import { html, nothing, unsafeCSS } from "lit";
|
|
27
28
|
import { property, query, state } from "lit/decorators.js";
|
|
28
29
|
import { localized, msg } from "@lit/localize";
|
|
29
|
-
import { luzmoAngleDown, luzmoIcon, luzmoTypeDerived12 } from "@luzmo/icons";
|
|
30
30
|
import { removeSlottableRequest } from "@luzmo/lucero/overlay";
|
|
31
31
|
import "@luzmo/lucero/popover";
|
|
32
32
|
import "@luzmo/lucero/tooltip";
|
|
@@ -177,7 +177,7 @@ var LuzmoDisplaySettingsNumeric = class extends LocalizedMixin(SizedMixin(LuzmoE
|
|
|
177
177
|
this._thousandSeparator = [",", "."].includes(S?.thousandSeparator ?? ""), this._commaDecimals = S?.decimalSeparator === ",", this._isAuto = S?.auto, this._setNumericFormat(), this._sendEvent();
|
|
178
178
|
}
|
|
179
179
|
_setPrecision() {
|
|
180
|
-
this._precision = this._precisionElement.value, this._setNumericFormat(), this._sendEvent();
|
|
180
|
+
Number.isNaN(this._precisionElement.value) && (this._precisionElement.value = this._displayAs === "scientific" ? 1 : 0), this._precision = this._precisionElement.value, this._setNumericFormat(), this._sendEvent();
|
|
181
181
|
}
|
|
182
182
|
_setNumericFormat() {
|
|
183
183
|
let e = "f", S = this.slotContent.subtype === "duration" ? this._durationLevels && this._durationLevels?.length === 1 ? "numeric" : "duration" : "numeric";
|