@luzmo/analytics-components-kit 1.0.1-alpha.23 → 1.0.1-alpha.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{area-chart-options.config-B_RU34v5.js → area-chart-options.config-7NUkgEdr.js} +1 -1
- package/components/{area-chart-options.config-2BXQXewO.cjs → area-chart-options.config-HmuEMllK.cjs} +1 -1
- package/components/{bar-chart-options.config-CyLNzGX7.js → bar-chart-options.config-BdbbHUJZ.js} +1 -1
- package/components/{bar-chart-options.config-DlDSo8Dq.cjs → bar-chart-options.config-C9XGEujs.cjs} +1 -1
- package/components/box-plot-options.config-DJz_kt-M.cjs +20 -0
- package/components/{box-plot-options.config-Bx78e6xX.js → box-plot-options.config-vlz5qeNq.js} +7 -7
- package/components/{bubble-chart-options.config-DoLr3Twj.js → bubble-chart-options.config-BacgXkJ_.js} +1 -1
- package/components/{bubble-chart-options.config-B5uoD-UQ.cjs → bubble-chart-options.config-Ihn6eVQI.cjs} +1 -1
- package/components/{bullet-chart-options.config-WCpV0bmw.js → bullet-chart-options.config-Bsw7N7Wl.js} +1 -1
- package/components/{bullet-chart-options.config-Dqq2JsBH.cjs → bullet-chart-options.config-DfS4Bwds.cjs} +1 -1
- package/components/{choropleth-map-options.config-DHQu69ib.js → choropleth-map-options.config-CeKXtnYB.js} +2 -2
- package/components/{choropleth-map-options.config-BfiQod-y.cjs → choropleth-map-options.config-CxUOg3pw.cjs} +1 -1
- package/components/{circular-gauge-options.config-CfBX-BB2.cjs → circular-gauge-options.config-Cz2TGR6X.cjs} +1 -1
- package/components/{circular-gauge-options.config-DKERJQpZ.js → circular-gauge-options.config-Kd_WK_w-.js} +7 -7
- package/components/{column-chart-options.config-qM4Qo3NP.cjs → column-chart-options.config-Bi0RAzK-.cjs} +1 -1
- package/components/{column-chart-options.config-Car_euCH.js → column-chart-options.config-BqSQ1Sl9.js} +1 -1
- package/components/{conditional-number-options.config-CU9_onv1.cjs → conditional-number-options.config-BZfgdUGh.cjs} +1 -1
- package/components/{conditional-number-options.config-B5rpjedA.js → conditional-number-options.config-BzzAnCOB.js} +1 -1
- package/components/{date-filter-options.config-KiuizKhg.js → date-filter-options.config-DBRxlTWy.js} +2 -2
- package/components/{donut-chart-options.config-NPwNtLDW.js → donut-chart-options.config-BulUEiaH.js} +37 -18
- package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
- package/components/edit-item/index.cjs +11 -3
- package/components/edit-item/index.js +89 -51
- package/components/edit-option/helpers/get-value-by-key.d.ts +1 -1
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +2 -2
- package/components/edit-option-multi-language-field/index.cjs +2 -2
- package/components/edit-option-multi-language-field/index.js +10 -10
- package/components/edit-option-number-field/edit-option-number-field.d.ts +2 -2
- package/components/edit-option-number-field/index.cjs +3 -3
- package/components/edit-option-number-field/index.js +10 -10
- package/components/edit-option-picker/edit-option-picker.d.ts +2 -2
- package/components/edit-option-picker/index.cjs +6 -6
- package/components/edit-option-picker/index.js +10 -10
- package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +2 -2
- package/components/edit-option-radio-button-group/index.cjs +3 -3
- package/components/edit-option-radio-button-group/index.js +16 -16
- package/components/edit-option-slider/edit-option-slider.d.ts +2 -2
- package/components/edit-option-slider/index.cjs +2 -2
- package/components/edit-option-slider/index.js +29 -29
- package/components/edit-option-switch/edit-option-switch.d.ts +2 -2
- package/components/edit-option-switch/index.cjs +2 -2
- package/components/edit-option-switch/index.js +10 -10
- package/components/{evolution-number-options.config-G8jViz8Z.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
- package/components/{evolution-number-options.config-DmzhEioN.js → evolution-number-options.config-DzkfeoIN.js} +3 -3
- package/components/{funnel-chart-options.config-CrlHKd36.js → funnel-chart-options.config-CIOrejfS.js} +23 -22
- package/components/funnel-chart-options.config-L_gqlFs2.cjs +20 -0
- package/components/{heat-map-options.config-B0FtmOXM.js → heat-map-options.config-BAuSJV3_.js} +4 -4
- package/components/{heat-map-options.config-CnBcz-lL.cjs → heat-map-options.config-DsUXxjN0.cjs} +1 -1
- package/components/heat-table-options.config-DSu_18VG.js +309 -0
- package/components/heat-table-options.config-DqPL2hIY.cjs +20 -0
- package/components/heat-table-options.de-BABkUn2Y.js +142 -0
- package/components/heat-table-options.de-aYfCrdCP.cjs +20 -0
- package/components/heat-table-options.en-BUBmMDZW.js +142 -0
- package/components/heat-table-options.en-CIdnDv3K.cjs +20 -0
- package/components/heat-table-options.es-DaK6qGQC.cjs +20 -0
- package/components/heat-table-options.es-Dl9D9rD_.js +142 -0
- package/components/heat-table-options.fr-BouHFs1P.cjs +20 -0
- package/components/heat-table-options.fr-DOShw8a1.js +142 -0
- package/components/heat-table-options.nl-8CXDqKzS.cjs +20 -0
- package/components/heat-table-options.nl-D6Fn7sgt.js +142 -0
- package/components/helpers-DXQwEH1P.cjs +20 -0
- package/components/helpers-v1bPALRP.js +91 -0
- package/components/{hexbin-map-options.config-BraDZx_s.cjs → hexbin-map-options.config-B_KAcDYq.cjs} +1 -1
- package/components/{hexbin-map-options.config-BJaPYxgd.js → hexbin-map-options.config-DaaC88d8.js} +2 -2
- package/components/{index-DGIXzqTS.js → index-Dn7LyFPv.js} +330 -290
- package/components/index-eEpFkbP8.cjs +195 -0
- package/components/index.cjs +1 -1
- package/components/index.js +1 -1
- package/components/{line-chart-options.config-vvO1O6jm.js → line-chart-options.config-DB3IsXXr.js} +1 -1
- package/components/{line-chart-options.config-DsskcFNR.cjs → line-chart-options.config-DSugoe0t.cjs} +1 -1
- package/components/{marker-map-options.config-DlJhJQFX.js → marker-map-options.config-CYoq89Oz.js} +6 -6
- package/components/{marker-map-options.config-DJrnM51M.cjs → marker-map-options.config-_XFv5XWK.cjs} +1 -1
- package/components/pivot-table-options.config-BiJXKSFR.cjs +20 -0
- package/components/pivot-table-options.config-DNK_AIG7.js +232 -0
- package/components/pivot-table-options.de-CEaD9SHr.cjs +20 -0
- package/components/pivot-table-options.de-Dfa6EWs8.js +97 -0
- package/components/pivot-table-options.en-B5sM2MbV.js +97 -0
- package/components/pivot-table-options.en-DC07VN7H.cjs +20 -0
- package/components/pivot-table-options.es-DRXomw6R.js +97 -0
- package/components/pivot-table-options.es-Xm6ENByP.cjs +20 -0
- package/components/pivot-table-options.fr-ClLROt4b.cjs +20 -0
- package/components/pivot-table-options.fr-DEm9IyRf.js +97 -0
- package/components/pivot-table-options.nl-C4c_dGos.js +97 -0
- package/components/pivot-table-options.nl-Dk2Oeu8i.cjs +20 -0
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +20 -0
- package/components/pyramid-chart-options.config-CcVMatYx.js +285 -0
- package/components/pyramid-chart-options.de-CwVggi4v.js +109 -0
- package/components/pyramid-chart-options.de-DKas0NiC.cjs +20 -0
- package/components/pyramid-chart-options.en-L6DFdrRz.cjs +20 -0
- package/components/pyramid-chart-options.en-elRf98In.js +109 -0
- package/components/pyramid-chart-options.es-BBbeV0cJ.js +109 -0
- package/components/pyramid-chart-options.es-Cu0g6t6A.cjs +20 -0
- package/components/pyramid-chart-options.fr-C1NDQloJ.js +109 -0
- package/components/pyramid-chart-options.fr-CreHLwD_.cjs +20 -0
- package/components/pyramid-chart-options.nl-CRbkXz3i.cjs +20 -0
- package/components/pyramid-chart-options.nl-DBCQKS8l.js +109 -0
- package/components/{radar-chart-options.config-DBJ8brjT.js → radar-chart-options.config-CUZn_3Fd.js} +1 -1
- package/components/{radar-chart-options.config-DP8xDDs-.cjs → radar-chart-options.config-EqQu6PTh.cjs} +1 -1
- package/components/{regular-table-options.config-HkJRCsZu.js → regular-table-options.config-BoLZsBry.js} +17 -17
- package/components/regular-table-options.config-DTx3RTnS.cjs +20 -0
- package/components/{route-map-options.config-BOIdPHns.cjs → route-map-options.config-CcQXPmjN.cjs} +1 -1
- package/components/{route-map-options.config-CPM0TmlA.js → route-map-options.config-u0hQqmDh.js} +6 -6
- package/components/{sankey-diagram-options.config-BUSorI4e.cjs → sankey-diagram-options.config-RFB83YLZ.cjs} +1 -1
- package/components/{sankey-diagram-options.config-v0h4IkEH.js → sankey-diagram-options.config-tVLKy_Zn.js} +1 -1
- package/components/scatter-plot-options.config-DkJLutNb.cjs +20 -0
- package/components/scatter-plot-options.config-lrkd9qj4.js +321 -0
- package/components/scatter-plot-options.de-CNfyb-0y.js +134 -0
- package/components/scatter-plot-options.de-fSoIvHJy.cjs +20 -0
- package/components/scatter-plot-options.en-CGCdpOtQ.cjs +20 -0
- package/components/scatter-plot-options.en-DT_QitaD.js +134 -0
- package/components/scatter-plot-options.es-CLRJMSqn.cjs +20 -0
- package/components/scatter-plot-options.es-Cb_VrOKP.js +134 -0
- package/components/scatter-plot-options.fr-AUEQJHAt.js +134 -0
- package/components/scatter-plot-options.fr-Da2McGuN.cjs +20 -0
- package/components/scatter-plot-options.nl-C53CChoE.js +134 -0
- package/components/scatter-plot-options.nl-CRWq01rL.cjs +20 -0
- package/components/{slicer-filter-options.config-DnOP_foh.js → slicer-filter-options.config-3JZZcw5C.js} +5 -5
- package/components/slicer-filter-options.config-DNI-XevE.cjs +20 -0
- package/components/{slider-filter-options.config-BJZtYn5P.js → slider-filter-options.config-DH4SS8wH.js} +1 -1
- package/components/{slider-filter-options.config-DJ2XK2QN.cjs → slider-filter-options.config-_8Z2zKmU.cjs} +1 -1
- package/components/speedometer-chart-options.config-CVsSjLmh.cjs +20 -0
- package/components/speedometer-chart-options.config-Dt2feQYV.js +199 -0
- package/components/speedometer-chart-options.de-D5SIAUZA.cjs +20 -0
- package/components/speedometer-chart-options.de-Es9DDvRK.js +90 -0
- package/components/speedometer-chart-options.en-BUj6JXhT.cjs +20 -0
- package/components/speedometer-chart-options.en-ByIJm8EZ.js +90 -0
- package/components/speedometer-chart-options.es-CPKH0xpW.js +90 -0
- package/components/speedometer-chart-options.es-DalX0e7D.cjs +20 -0
- package/components/speedometer-chart-options.fr-BctlGfgX.js +90 -0
- package/components/speedometer-chart-options.fr-Dqn95u64.cjs +20 -0
- package/components/speedometer-chart-options.nl-Bo6cV2j0.cjs +20 -0
- package/components/speedometer-chart-options.nl-Ygle7DjX.js +90 -0
- package/components/{spike-map-options.config-D-TWp2W4.cjs → spike-map-options.config-PpPPrsR2.cjs} +1 -1
- package/components/{spike-map-options.config-wzGnfQRU.js → spike-map-options.config-pdbV_vwg.js} +3 -3
- package/components/{symbol-map-options.config-DlyBMq6R.js → symbol-map-options.config-Bj-UuL9m.js} +3 -3
- package/components/{symbol-map-options.config-FVRaZHKk.cjs → symbol-map-options.config-sdPlHspI.cjs} +1 -1
- package/components/{treemap-chart-options.config-QYXvOoni.cjs → treemap-chart-options.config-C0Q9aQ1Z.cjs} +1 -1
- package/components/{treemap-chart-options.config-COItww3I.js → treemap-chart-options.config-D5AJaF_u.js} +1 -1
- package/components/{wordcloud-chart-options.config-JBSwFHr2.cjs → wordcloud-chart-options.config-vGfCW8kE.cjs} +1 -1
- package/components/{wordcloud-chart-options.config-wNLESTnL.js → wordcloud-chart-options.config-w2NUIWVA.js} +1 -1
- package/custom-elements.json +25 -25
- package/item-definitions/box-plot/box-plot-options.config.d.ts +4 -4
- package/item-definitions/choropleth-map/choropleth-map-options.config.d.ts +6 -6
- package/item-definitions/circular-gauge/circular-gauge-options.config.d.ts +6 -6
- package/item-definitions/donut-chart/donut-chart-options.config.d.ts +35 -13
- package/item-definitions/evolution-number/evolution-number-options.config.d.ts +10 -10
- package/item-definitions/funnel-chart/funnel-chart-options.config.d.ts +24 -8
- package/item-definitions/heat-map/heat-map-options.config.d.ts +4 -4
- package/item-definitions/heat-table/heat-table-options.config.d.ts +179 -0
- package/item-definitions/heat-table/i18n/heat-table-options.de.d.ts +121 -0
- package/item-definitions/heat-table/i18n/heat-table-options.en.d.ts +121 -0
- package/item-definitions/heat-table/i18n/heat-table-options.es.d.ts +121 -0
- package/item-definitions/heat-table/i18n/heat-table-options.fr.d.ts +121 -0
- package/item-definitions/heat-table/i18n/heat-table-options.nl.d.ts +121 -0
- package/item-definitions/helpers.d.ts +7 -0
- package/item-definitions/hexbin-map/hexbin-map-options.config.d.ts +4 -4
- package/item-definitions/marker-map/marker-map-options.config.d.ts +6 -6
- package/item-definitions/pivot-table/i18n/pivot-table-options.de.d.ts +76 -0
- package/item-definitions/pivot-table/i18n/pivot-table-options.en.d.ts +76 -0
- package/item-definitions/pivot-table/i18n/pivot-table-options.es.d.ts +76 -0
- package/item-definitions/pivot-table/i18n/pivot-table-options.fr.d.ts +76 -0
- package/item-definitions/pivot-table/i18n/pivot-table-options.nl.d.ts +76 -0
- package/item-definitions/pivot-table/pivot-table-options.config.d.ts +157 -0
- package/item-definitions/pyramid-chart/i18n/pyramid-chart-options.de.d.ts +88 -0
- package/item-definitions/pyramid-chart/i18n/pyramid-chart-options.en.d.ts +88 -0
- package/item-definitions/pyramid-chart/i18n/pyramid-chart-options.es.d.ts +88 -0
- package/item-definitions/pyramid-chart/i18n/pyramid-chart-options.fr.d.ts +88 -0
- package/item-definitions/pyramid-chart/i18n/pyramid-chart-options.nl.d.ts +88 -0
- package/item-definitions/pyramid-chart/pyramid-chart-options.config.d.ts +113 -0
- package/item-definitions/regular-table/regular-table-options.config.d.ts +6 -6
- package/item-definitions/route-map/route-map-options.config.d.ts +6 -6
- package/item-definitions/scatter-plot/i18n/scatter-plot-options.de.d.ts +113 -0
- package/item-definitions/scatter-plot/i18n/scatter-plot-options.en.d.ts +113 -0
- package/item-definitions/scatter-plot/i18n/scatter-plot-options.es.d.ts +113 -0
- package/item-definitions/scatter-plot/i18n/scatter-plot-options.fr.d.ts +113 -0
- package/item-definitions/scatter-plot/i18n/scatter-plot-options.nl.d.ts +113 -0
- package/item-definitions/scatter-plot/scatter-plot-options.config.d.ts +160 -0
- package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +10 -10
- package/item-definitions/speedometer-chart/i18n/speedometer-chart-options.de.d.ts +69 -0
- package/item-definitions/speedometer-chart/i18n/speedometer-chart-options.en.d.ts +69 -0
- package/item-definitions/speedometer-chart/i18n/speedometer-chart-options.es.d.ts +69 -0
- package/item-definitions/speedometer-chart/i18n/speedometer-chart-options.fr.d.ts +69 -0
- package/item-definitions/speedometer-chart/i18n/speedometer-chart-options.nl.d.ts +69 -0
- package/item-definitions/speedometer-chart/speedometer-chart-options.config.d.ts +80 -0
- package/item-definitions/spike-map/spike-map-options.config.d.ts +6 -6
- package/item-definitions/symbol-map/symbol-map-options.config.d.ts +4 -4
- package/package.json +1 -1
- package/components/box-plot-options.config-VLu-MYZx.cjs +0 -20
- package/components/donut-chart-options.config-bqcKuyIu.cjs +0 -20
- package/components/funnel-chart-options.config-hw_GXs4s.cjs +0 -20
- package/components/helpers-2MlDBxn2.js +0 -74
- package/components/helpers-CK5Jy2Ta.cjs +0 -20
- package/components/index-4gddXWJC.cjs +0 -195
- package/components/regular-table-options.config-Bi84Hym7.cjs +0 -20
- package/components/slicer-filter-options.config-k8DoX77G.cjs +0 -20
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";var d=Object.getPrototypeOf;var c=Reflect.get;var p=(
|
20
|
+
"use strict";var d=Object.getPrototypeOf;var c=Reflect.get;var p=(o,t,n)=>c(d(o),n,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-86cIx1Ql.cjs");const l=require("../property-0L4eB11h.cjs"),h=require("../query-D5qWDopr.cjs"),g=require("../edit-option-base-Boz7TNRZ.cjs");var m=Object.defineProperty,i=(o,t,n,f)=>{for(var u=void 0,r=o.length-1,s;r>=0;r--)(s=o[r])&&(u=s(t,n,u)||u);return u&&m(t,n,u),u};const a=class a extends g.LuzmoEditOptionBase{constructor(){super(...arguments),this.value={},this.invalid=!1,this.readonly=!1,this.language="en",this.debounce=200}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var t,n;this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(((t=this.multiLangFieldElement)==null?void 0:t.value)??{},this.language??"en"):((n=this.multiLangFieldElement)==null?void 0:n.value)??{}}}))},this.debounce??200)}renderController(){const t=typeof this.parseValue=="function"?this.parseValue(this.value,this.language??"en"):this.value;return l.x`
|
21
21
|
<luzmo-multi-language-field
|
22
22
|
.value=${t}
|
23
23
|
.language=${this.language??"en"}
|
@@ -28,4 +28,4 @@
|
|
28
28
|
@change=${this._handleEvent}
|
29
29
|
>
|
30
30
|
</luzmo-multi-language-field>
|
31
|
-
`}};
|
31
|
+
`}};a.styles=[p(a,a,"styles")];let e=a;i([l.n({type:Object,reflect:!0})],e.prototype,"value");i([l.n({type:Boolean,reflect:!0})],e.prototype,"invalid");i([l.n({type:Boolean,reflect:!0})],e.prototype,"readonly");i([l.n({type:String,reflect:!0})],e.prototype,"language");i([l.n({type:Object,reflect:!0})],e.prototype,"placeholder");i([l.n()],e.prototype,"parseValue");i([l.n()],e.prototype,"toValue");i([l.n({type:Number,reflect:!0})],e.prototype,"debounce");i([h.e("luzmo-multi-language-field")],e.prototype,"multiLangFieldElement");customElements.get("luzmo-edit-option-multi-language-field")||customElements.define("luzmo-edit-option-multi-language-field",e);exports.LuzmoEditOptionMultiLangField=e;
|
@@ -22,8 +22,8 @@ var d = Reflect.get;
|
|
22
22
|
var c = (r, e, u) => d(s(r), u, e);
|
23
23
|
import "../index-DVAsMiOm.js";
|
24
24
|
import { x as f, n as t } from "../property-B2F7x7Cz.js";
|
25
|
-
import { e as
|
26
|
-
import { L as
|
25
|
+
import { e as g } from "../query-Ddbd72Um.js";
|
26
|
+
import { L as p } from "../edit-option-base-qePiIQWd.js";
|
27
27
|
const z = () => {
|
28
28
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
29
29
|
const r = document.createElement("style");
|
@@ -32,11 +32,11 @@ const z = () => {
|
|
32
32
|
};
|
33
33
|
z();
|
34
34
|
var b = Object.defineProperty, l = (r, e, u, h) => {
|
35
|
-
for (var i = void 0,
|
36
|
-
(
|
35
|
+
for (var i = void 0, a = r.length - 1, n; a >= 0; a--)
|
36
|
+
(n = r[a]) && (i = n(e, u, i) || i);
|
37
37
|
return i && b(e, u, i), i;
|
38
38
|
};
|
39
|
-
const m = class m extends
|
39
|
+
const m = class m extends p {
|
40
40
|
constructor() {
|
41
41
|
super(...arguments), this.value = {}, this.invalid = !1, this.readonly = !1, this.language = "en", this.debounce = 200;
|
42
42
|
}
|
@@ -49,7 +49,7 @@ const m = class m extends g {
|
|
49
49
|
composed: !0,
|
50
50
|
cancelable: !0,
|
51
51
|
detail: {
|
52
|
-
value: typeof this.
|
52
|
+
value: typeof this.toValue == "function" ? this.toValue(
|
53
53
|
((e = this.multiLangFieldElement) == null ? void 0 : e.value) ?? {},
|
54
54
|
this.language ?? "en"
|
55
55
|
) : ((u = this.multiLangFieldElement) == null ? void 0 : u.value) ?? {}
|
@@ -59,7 +59,7 @@ const m = class m extends g {
|
|
59
59
|
}, this.debounce ?? 200);
|
60
60
|
}
|
61
61
|
renderController() {
|
62
|
-
const e = typeof this.
|
62
|
+
const e = typeof this.parseValue == "function" ? this.parseValue(this.value, this.language ?? "en") : this.value;
|
63
63
|
return f`
|
64
64
|
<luzmo-multi-language-field
|
65
65
|
.value=${e}
|
@@ -93,15 +93,15 @@ l([
|
|
93
93
|
], o.prototype, "placeholder");
|
94
94
|
l([
|
95
95
|
t()
|
96
|
-
], o.prototype, "
|
96
|
+
], o.prototype, "parseValue");
|
97
97
|
l([
|
98
98
|
t()
|
99
|
-
], o.prototype, "
|
99
|
+
], o.prototype, "toValue");
|
100
100
|
l([
|
101
101
|
t({ type: Number, reflect: !0 })
|
102
102
|
], o.prototype, "debounce");
|
103
103
|
l([
|
104
|
-
|
104
|
+
g("luzmo-multi-language-field")
|
105
105
|
], o.prototype, "multiLangFieldElement");
|
106
106
|
customElements.get("luzmo-edit-option-multi-language-field") || customElements.define(
|
107
107
|
"luzmo-edit-option-multi-language-field",
|
@@ -10,8 +10,8 @@ export declare class LuzmoEditOptionNumberField extends LuzmoEditOptionBase {
|
|
10
10
|
step: number;
|
11
11
|
unit: boolean;
|
12
12
|
debounce: number;
|
13
|
-
|
14
|
-
|
13
|
+
parseValue?: (value?: string | number) => number;
|
14
|
+
toValue?: (value?: number) => string | number | any;
|
15
15
|
private numberField;
|
16
16
|
debounceTimeout: any;
|
17
17
|
private _handleEvent;
|
@@ -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
|
-
"use strict";var
|
20
|
+
"use strict";var d=Object.getPrototypeOf;var c=Reflect.get;var p=(n,r,s)=>c(d(n),s,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-iYpAy-Kg.cjs");const t=require("../property-0L4eB11h.cjs"),h=require("../query-D5qWDopr.cjs"),f=require("../edit-option-base-Boz7TNRZ.cjs");var m=Object.defineProperty,u=(n,r,s,b)=>{for(var i=void 0,l=n.length-1,a;l>=0;l--)(a=n[l])&&(i=a(r,s,i)||i);return i&&m(r,s,i),i};const o=class o extends f.LuzmoEditOptionBase{constructor(){super(...arguments),this.disabled=!1,this.step=1,this.unit=!1,this.debounce=200}_handleEvent(){this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(this.numberField.value):this.numberField.value}}))},this.debounce??200)}renderController(){const r=typeof this.parseValue=="function"?this.parseValue(this.value):this.value,s=typeof this.parseValue=="function"?this.parseValue(this.default):this.default;return t.x`
|
21
21
|
<luzmo-number-field
|
22
|
-
.value=${
|
22
|
+
.value=${r??s??0}
|
23
23
|
.size=${this.size}
|
24
24
|
.step=${this.step}
|
25
25
|
.min=${this.min}
|
@@ -29,4 +29,4 @@
|
|
29
29
|
@change=${this._handleEvent}
|
30
30
|
>
|
31
31
|
</luzmo-number-field>
|
32
|
-
`}};
|
32
|
+
`}};o.styles=[p(o,o,"styles")];let e=o;u([t.n({type:Boolean,reflect:!0})],e.prototype,"disabled");u([t.n({type:Number,reflect:!0})],e.prototype,"min");u([t.n({type:Number,reflect:!0})],e.prototype,"max");u([t.n({type:Number,reflect:!0})],e.prototype,"default");u([t.n({type:Number,reflect:!0})],e.prototype,"value");u([t.n({type:Number,reflect:!0})],e.prototype,"step");u([t.n({type:String,reflect:!0})],e.prototype,"unit");u([t.n({type:Number,reflect:!0})],e.prototype,"debounce");u([t.n()],e.prototype,"parseValue");u([t.n()],e.prototype,"toValue");u([h.e("luzmo-number-field")],e.prototype,"numberField");customElements.get("luzmo-edit-option-number-field")||customElements.define("luzmo-edit-option-number-field",e);exports.LuzmoEditOptionNumberField=e;
|
@@ -32,11 +32,11 @@ const z = () => {
|
|
32
32
|
};
|
33
33
|
z();
|
34
34
|
var h = Object.defineProperty, e = (r, t, u, g) => {
|
35
|
-
for (var
|
36
|
-
(c = r[n]) && (
|
37
|
-
return
|
35
|
+
for (var m = void 0, n = r.length - 1, c; n >= 0; n--)
|
36
|
+
(c = r[n]) && (m = c(t, u, m) || m);
|
37
|
+
return m && h(t, u, m), m;
|
38
38
|
};
|
39
|
-
const
|
39
|
+
const i = class i extends b {
|
40
40
|
constructor() {
|
41
41
|
super(...arguments), this.disabled = !1, this.step = 1, this.unit = !1, this.debounce = 200;
|
42
42
|
}
|
@@ -48,14 +48,14 @@ const m = class m extends b {
|
|
48
48
|
composed: !0,
|
49
49
|
cancelable: !0,
|
50
50
|
detail: {
|
51
|
-
value: typeof this.
|
51
|
+
value: typeof this.toValue == "function" ? this.toValue(this.numberField.value) : this.numberField.value
|
52
52
|
}
|
53
53
|
})
|
54
54
|
);
|
55
55
|
}, this.debounce ?? 200);
|
56
56
|
}
|
57
57
|
renderController() {
|
58
|
-
const t = typeof this.
|
58
|
+
const t = typeof this.parseValue == "function" ? this.parseValue(this.value) : this.value, u = typeof this.parseValue == "function" ? this.parseValue(this.default) : this.default;
|
59
59
|
return f`
|
60
60
|
<luzmo-number-field
|
61
61
|
.value=${t ?? u ?? 0}
|
@@ -71,8 +71,8 @@ const m = class m extends b {
|
|
71
71
|
`;
|
72
72
|
}
|
73
73
|
};
|
74
|
-
|
75
|
-
let o =
|
74
|
+
i.styles = [s(i, i, "styles")];
|
75
|
+
let o = i;
|
76
76
|
e([
|
77
77
|
l({ type: Boolean, reflect: !0 })
|
78
78
|
], o.prototype, "disabled");
|
@@ -99,10 +99,10 @@ e([
|
|
99
99
|
], o.prototype, "debounce");
|
100
100
|
e([
|
101
101
|
l()
|
102
|
-
], o.prototype, "
|
102
|
+
], o.prototype, "parseValue");
|
103
103
|
e([
|
104
104
|
l()
|
105
|
-
], o.prototype, "
|
105
|
+
], o.prototype, "toValue");
|
106
106
|
e([
|
107
107
|
p("luzmo-number-field")
|
108
108
|
], o.prototype, "numberField");
|
@@ -13,8 +13,8 @@ export declare class LuzmoEditOptionPicker extends LuzmoEditOptionBase {
|
|
13
13
|
*/
|
14
14
|
placement: Placement;
|
15
15
|
value?: string;
|
16
|
-
|
17
|
-
|
16
|
+
parseValue?: (value: string | number | any) => string;
|
17
|
+
toValue?: (value: string) => string | number | any;
|
18
18
|
default?: string;
|
19
19
|
private _handleEvent;
|
20
20
|
private generateMenuItems;
|
@@ -17,13 +17,13 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";var h=Object.getPrototypeOf;var c=Reflect.get;var p=(
|
21
|
-
${Object.entries(this.values).map(([e,
|
22
|
-
<luzmo-menu-item value=${e}> ${
|
20
|
+
"use strict";var h=Object.getPrototypeOf;var c=Reflect.get;var p=(i,e,l)=>c(h(i),l,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-w3j1USKK.cjs");require("../index-DrLPC6eG.cjs");const s=require("../property-0L4eB11h.cjs"),d=require("../edit-option-base-Boz7TNRZ.cjs");var m=Object.defineProperty,a=(i,e,l,f)=>{for(var n=void 0,u=i.length-1,o;u>=0;u--)(o=i[u])&&(n=o(e,l,n)||n);return n&&m(e,l,n),n};const r=class r extends d.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1,this.placement="bottom-end"}_handleEvent(e){this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue(e.detail):e.detail}}))}generateMenuItems(){return s.x`
|
21
|
+
${Object.entries(this.values).map(([e,l])=>s.x`
|
22
|
+
<luzmo-menu-item value=${e}> ${l} </luzmo-menu-item>
|
23
23
|
`)}
|
24
|
-
`}renderController(){const e=typeof this.
|
24
|
+
`}renderController(){const e=typeof this.parseValue=="function"?this.parseValue(this.value):this.value,l=typeof this.parseValue=="function"?this.parseValue(this.default):this.default;return s.x`
|
25
25
|
<luzmo-picker
|
26
|
-
.value=${e!=null&&e.length?e:
|
26
|
+
.value=${e!=null&&e.length?e:l??""}
|
27
27
|
.size=${this.size}
|
28
28
|
variant="highlight"
|
29
29
|
.placement=${this.placement}
|
@@ -32,4 +32,4 @@
|
|
32
32
|
>
|
33
33
|
${this.generateMenuItems()}
|
34
34
|
</luzmo-picker>
|
35
|
-
`}};
|
35
|
+
`}};r.styles=[p(r,r,"styles")];let t=r;a([s.n({type:Object})],t.prototype,"values");a([s.n({type:Boolean,reflect:!0})],t.prototype,"disabled");a([s.n()],t.prototype,"placement");a([s.n({type:String,reflect:!0})],t.prototype,"value");a([s.n()],t.prototype,"parseValue");a([s.n()],t.prototype,"toValue");a([s.n({type:String})],t.prototype,"default");customElements.get("luzmo-edit-option-picker")||customElements.define("luzmo-edit-option-picker",t);exports.LuzmoEditOptionPicker=t;
|
@@ -22,7 +22,7 @@ var d = Reflect.get;
|
|
22
22
|
var s = (l, o, r) => d(z(l), r, o);
|
23
23
|
import "../index-D5LI0odG.js";
|
24
24
|
import "../index-DM_2d78G.js";
|
25
|
-
import { x as
|
25
|
+
import { x as n, n as t } from "../property-B2F7x7Cz.js";
|
26
26
|
import { L as f } from "../edit-option-base-qePiIQWd.js";
|
27
27
|
const p = () => {
|
28
28
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
@@ -32,8 +32,8 @@ const p = () => {
|
|
32
32
|
};
|
33
33
|
p();
|
34
34
|
var b = Object.defineProperty, u = (l, o, r, g) => {
|
35
|
-
for (var m = void 0,
|
36
|
-
(
|
35
|
+
for (var m = void 0, a = l.length - 1, c; a >= 0; a--)
|
36
|
+
(c = l[a]) && (m = c(o, r, m) || m);
|
37
37
|
return m && b(o, r, m), m;
|
38
38
|
};
|
39
39
|
const i = class i extends f {
|
@@ -47,23 +47,23 @@ const i = class i extends f {
|
|
47
47
|
composed: !0,
|
48
48
|
cancelable: !0,
|
49
49
|
detail: {
|
50
|
-
value: typeof this.
|
50
|
+
value: typeof this.toValue == "function" ? this.toValue(o.detail) : o.detail
|
51
51
|
}
|
52
52
|
})
|
53
53
|
);
|
54
54
|
}
|
55
55
|
generateMenuItems() {
|
56
|
-
return
|
56
|
+
return n`
|
57
57
|
${Object.entries(this.values).map(
|
58
|
-
([o, r]) =>
|
58
|
+
([o, r]) => n`
|
59
59
|
<luzmo-menu-item value=${o}> ${r} </luzmo-menu-item>
|
60
60
|
`
|
61
61
|
)}
|
62
62
|
`;
|
63
63
|
}
|
64
64
|
renderController() {
|
65
|
-
const o = typeof this.
|
66
|
-
return
|
65
|
+
const o = typeof this.parseValue == "function" ? this.parseValue(this.value) : this.value, r = typeof this.parseValue == "function" ? this.parseValue(this.default) : this.default;
|
66
|
+
return n`
|
67
67
|
<luzmo-picker
|
68
68
|
.value=${o != null && o.length ? o : r ?? ""}
|
69
69
|
.size=${this.size}
|
@@ -93,10 +93,10 @@ u([
|
|
93
93
|
], e.prototype, "value");
|
94
94
|
u([
|
95
95
|
t()
|
96
|
-
], e.prototype, "
|
96
|
+
], e.prototype, "parseValue");
|
97
97
|
u([
|
98
98
|
t()
|
99
|
-
], e.prototype, "
|
99
|
+
], e.prototype, "toValue");
|
100
100
|
u([
|
101
101
|
t({ type: String })
|
102
102
|
], e.prototype, "default");
|
@@ -8,8 +8,8 @@ export declare class LuzmoEditOptionRadioButtonGroup extends LuzmoEditOptionBase
|
|
8
8
|
disabled: boolean;
|
9
9
|
value: string;
|
10
10
|
default: string;
|
11
|
-
|
12
|
-
|
11
|
+
parseValue?: (value?: string | number | any) => string;
|
12
|
+
toValue?: (value?: string) => string | number | any;
|
13
13
|
private actionGroup;
|
14
14
|
debounceTimeout: any;
|
15
15
|
private generateRadioButtons;
|
@@ -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
|
-
"use strict";var d=Object.getPrototypeOf;var h=Reflect.get;var c=(
|
20
|
+
"use strict";var d=Object.getPrototypeOf;var h=Reflect.get;var c=(l,e,t)=>h(d(l),t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-zuArOtOt.cjs");require("../index-DUO13KGl.cjs");const a=require("../property-0L4eB11h.cjs"),v=require("../query-D5qWDopr.cjs"),y=require("../edit-option-base-Boz7TNRZ.cjs");var f=Object.defineProperty,i=(l,e,t,r)=>{for(var o=void 0,n=l.length-1,p;n>=0;n--)(p=l[n])&&(o=p(e,t,o)||o);return o&&f(e,t,o),o};const u=class u extends y.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1}generateRadioButtons(){const e=Object.entries(this.values).map(([t,r])=>a.x`
|
21
21
|
<luzmo-action-button value=${t} ?disabled=${this.disabled}>
|
22
22
|
${r}
|
23
23
|
</luzmo-action-button>
|
24
|
-
`);return
|
24
|
+
`);return a.x` ${e} `}_handleEvent(){var e,t,r,o;this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:typeof this.toValue=="function"?this.toValue((t=(e=this.actionGroup)==null?void 0:e.selected)==null?void 0:t[0]):(o=(r=this.actionGroup)==null?void 0:r.selected)==null?void 0:o[0]}}))}renderController(){const e=typeof this.parseValue=="function"?this.parseValue(this.value):this.value,t=typeof this.parseValue=="function"?this.parseValue(this.default):this.default;return a.x`
|
25
25
|
<luzmo-action-group
|
26
26
|
compact
|
27
27
|
selects="single"
|
@@ -33,4 +33,4 @@
|
|
33
33
|
>
|
34
34
|
${this.generateRadioButtons()}
|
35
35
|
</luzmo-action-group>
|
36
|
-
`}};
|
36
|
+
`}};u.styles=[c(u,u,"styles")];let s=u;i([a.n({type:Array})],s.prototype,"values");i([a.n({type:Boolean,reflect:!0})],s.prototype,"disabled");i([a.n({type:String})],s.prototype,"value");i([a.n({type:String})],s.prototype,"default");i([a.n()],s.prototype,"parseValue");i([a.n()],s.prototype,"toValue");i([v.e("luzmo-action-group")],s.prototype,"actionGroup");customElements.get("luzmo-edit-option-radio-button-group")||customElements.define("luzmo-edit-option-radio-button-group",s);exports.LuzmoEditOptionRadioButtonGroup=s;
|
@@ -22,7 +22,7 @@ var p = Reflect.get;
|
|
22
22
|
var d = (t, o, e) => p(z(t), e, o);
|
23
23
|
import "../index-CdCtJpK9.js";
|
24
24
|
import "../index-Bee1uunR.js";
|
25
|
-
import { x as
|
25
|
+
import { x as m, n as i } from "../property-B2F7x7Cz.js";
|
26
26
|
import { e as b } from "../query-Ddbd72Um.js";
|
27
27
|
import { L as g } from "../edit-option-base-qePiIQWd.js";
|
28
28
|
const f = () => {
|
@@ -32,41 +32,41 @@ const f = () => {
|
|
32
32
|
}
|
33
33
|
};
|
34
34
|
f();
|
35
|
-
var h = Object.defineProperty, u = (t, o, e,
|
36
|
-
for (var r = void 0, c = t.length - 1,
|
37
|
-
(
|
35
|
+
var h = Object.defineProperty, u = (t, o, e, s) => {
|
36
|
+
for (var r = void 0, c = t.length - 1, n; c >= 0; c--)
|
37
|
+
(n = t[c]) && (r = n(o, e, r) || r);
|
38
38
|
return r && h(o, e, r), r;
|
39
39
|
};
|
40
|
-
const
|
40
|
+
const a = class a extends g {
|
41
41
|
constructor() {
|
42
42
|
super(...arguments), this.values = {}, this.disabled = !1;
|
43
43
|
}
|
44
44
|
generateRadioButtons() {
|
45
45
|
const o = Object.entries(this.values).map(
|
46
|
-
([e,
|
46
|
+
([e, s]) => m`
|
47
47
|
<luzmo-action-button value=${e} ?disabled=${this.disabled}>
|
48
|
-
${
|
48
|
+
${s}
|
49
49
|
</luzmo-action-button>
|
50
50
|
`
|
51
51
|
);
|
52
|
-
return
|
52
|
+
return m` ${o} `;
|
53
53
|
}
|
54
54
|
_handleEvent() {
|
55
|
-
var o, e,
|
55
|
+
var o, e, s, r;
|
56
56
|
this.dispatchEvent(
|
57
57
|
new CustomEvent("option-changed", {
|
58
58
|
bubbles: !0,
|
59
59
|
composed: !0,
|
60
60
|
cancelable: !0,
|
61
61
|
detail: {
|
62
|
-
value: typeof this.
|
62
|
+
value: typeof this.toValue == "function" ? this.toValue((e = (o = this.actionGroup) == null ? void 0 : o.selected) == null ? void 0 : e[0]) : (r = (s = this.actionGroup) == null ? void 0 : s.selected) == null ? void 0 : r[0]
|
63
63
|
}
|
64
64
|
})
|
65
65
|
);
|
66
66
|
}
|
67
67
|
renderController() {
|
68
|
-
const o = typeof this.
|
69
|
-
return
|
68
|
+
const o = typeof this.parseValue == "function" ? this.parseValue(this.value) : this.value, e = typeof this.parseValue == "function" ? this.parseValue(this.default) : this.default;
|
69
|
+
return m`
|
70
70
|
<luzmo-action-group
|
71
71
|
compact
|
72
72
|
selects="single"
|
@@ -81,8 +81,8 @@ const n = class n extends g {
|
|
81
81
|
`;
|
82
82
|
}
|
83
83
|
};
|
84
|
-
|
85
|
-
let l =
|
84
|
+
a.styles = [d(a, a, "styles")];
|
85
|
+
let l = a;
|
86
86
|
u([
|
87
87
|
i({ type: Array })
|
88
88
|
], l.prototype, "values");
|
@@ -97,10 +97,10 @@ u([
|
|
97
97
|
], l.prototype, "default");
|
98
98
|
u([
|
99
99
|
i()
|
100
|
-
], l.prototype, "
|
100
|
+
], l.prototype, "parseValue");
|
101
101
|
u([
|
102
102
|
i()
|
103
|
-
], l.prototype, "
|
103
|
+
], l.prototype, "toValue");
|
104
104
|
u([
|
105
105
|
b("luzmo-action-group")
|
106
106
|
], l.prototype, "actionGroup");
|
@@ -8,8 +8,8 @@ export declare class LuzmoEditOptionSlider extends LuzmoEditOptionBase {
|
|
8
8
|
max: number;
|
9
9
|
step: number;
|
10
10
|
debounce: number;
|
11
|
-
|
12
|
-
|
11
|
+
parseValue?: (value?: string | number | any) => number;
|
12
|
+
toValue?: (value?: number) => string | number | any;
|
13
13
|
private _handleEvent;
|
14
14
|
protected renderController(): import("lit-html").TemplateResult<1>;
|
15
15
|
}
|