@luzmo/analytics-components-kit 1.0.1-alpha.24 → 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/box-plot-options.config-DJz_kt-M.cjs +20 -0
- package/components/{box-plot-options.config-RAhd--7J.js → box-plot-options.config-vlz5qeNq.js} +7 -7
- 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-B8kWlhsc.cjs → circular-gauge-options.config-Cz2TGR6X.cjs} +1 -1
- package/components/{circular-gauge-options.config-D7FdVupw.js → circular-gauge-options.config-Kd_WK_w-.js} +6 -6
- 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 +2 -2
- package/components/edit-item/index.js +18 -18
- 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-D-2-hoge.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
- package/components/{evolution-number-options.config-FlQ0IH6f.js → evolution-number-options.config-DzkfeoIN.js} +2 -2
- 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-C0L9ZJHP.js → heat-table-options.config-DSu_18VG.js} +2 -2
- package/components/{heat-table-options.config-QMSy8dYT.cjs → heat-table-options.config-DqPL2hIY.cjs} +1 -1
- 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-5yuxnZFm.js → index-Dn7LyFPv.js} +321 -311
- package/components/{index-CpBHyBSr.cjs → index-eEpFkbP8.cjs} +104 -104
- package/components/index.cjs +1 -1
- package/components/index.js +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/{pyramid-chart-options.config-senv4pUq.js → pyramid-chart-options.config-CcVMatYx.js} +1 -1
- package/components/{regular-table-options.config-CAb4esiC.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-Dcj-usMY.cjs → route-map-options.config-CcQXPmjN.cjs} +1 -1
- package/components/{route-map-options.config-BmrbNMnQ.js → route-map-options.config-u0hQqmDh.js} +5 -5
- package/components/{slicer-filter-options.config-DcUkjMck.js → slicer-filter-options.config-3JZZcw5C.js} +4 -4
- package/components/{slicer-filter-options.config-CC5wUFC3.cjs → slicer-filter-options.config-DNI-XevE.cjs} +1 -1
- package/components/{spike-map-options.config-CrccOQVL.cjs → spike-map-options.config-PpPPrsR2.cjs} +1 -1
- package/components/{spike-map-options.config-DwUz-EkV.js → spike-map-options.config-pdbV_vwg.js} +2 -2
- package/components/{symbol-map-options.config-CKd-phmw.js → symbol-map-options.config-Bj-UuL9m.js} +2 -2
- package/components/{symbol-map-options.config-BidCDEaK.cjs → symbol-map-options.config-sdPlHspI.cjs} +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 +8 -8
- 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/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/slicer-filter/slicer-filter-options.config.d.ts +10 -10
- 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-DNtA8fnn.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/regular-table-options.config-Ba8dfyVF.cjs +0 -20
@@ -25,7 +25,7 @@ import { m as y } from "../sized-mixin-BxMraZLS-B_y0PzR3.js";
|
|
25
25
|
import { O, k as E } from "../luzmo-icons-BE2T8vWu.js";
|
26
26
|
import { o as j } from "../when-CDK1Tt5Y-C6ViXC43.js";
|
27
27
|
import "../index-BVX_ozT9.js";
|
28
|
-
import { g as A } from "../index-
|
28
|
+
import { g as A } from "../index-Dn7LyFPv.js";
|
29
29
|
const k = () => {
|
30
30
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
31
31
|
const a = document.createElement("style");
|
@@ -223,44 +223,44 @@ const b = class b extends v {
|
|
223
223
|
const s = /* @__PURE__ */ Object.assign({
|
224
224
|
"../../item-definitions/area-chart/area-chart-options.config.ts": () => import("../area-chart-options.config-7NUkgEdr.js"),
|
225
225
|
"../../item-definitions/bar-chart/bar-chart-options.config.ts": () => import("../bar-chart-options.config-BdbbHUJZ.js"),
|
226
|
-
"../../item-definitions/box-plot/box-plot-options.config.ts": () => import("../box-plot-options.config-
|
226
|
+
"../../item-definitions/box-plot/box-plot-options.config.ts": () => import("../box-plot-options.config-vlz5qeNq.js"),
|
227
227
|
"../../item-definitions/bubble-chart/bubble-chart-options.config.ts": () => import("../bubble-chart-options.config-BacgXkJ_.js"),
|
228
228
|
"../../item-definitions/bullet-chart/bullet-chart-options.config.ts": () => import("../bullet-chart-options.config-Bsw7N7Wl.js"),
|
229
|
-
"../../item-definitions/choropleth-map/choropleth-map-options.config.ts": () => import("../choropleth-map-options.config-
|
229
|
+
"../../item-definitions/choropleth-map/choropleth-map-options.config.ts": () => import("../choropleth-map-options.config-CeKXtnYB.js"),
|
230
230
|
"../../item-definitions/circle-pack-chart/circle-pack-chart-options.config.ts": () => import("../circle-pack-chart-options.config-DEYL3DMK.js"),
|
231
|
-
"../../item-definitions/circular-gauge/circular-gauge-options.config.ts": () => import("../circular-gauge-options.config-
|
231
|
+
"../../item-definitions/circular-gauge/circular-gauge-options.config.ts": () => import("../circular-gauge-options.config-Kd_WK_w-.js"),
|
232
232
|
"../../item-definitions/column-chart/column-chart-options.config.ts": () => import("../column-chart-options.config-BqSQ1Sl9.js"),
|
233
233
|
"../../item-definitions/combination-chart/combination-chart-options.config.ts": () => import("../combination-chart-options.config-CApdgFvv.js"),
|
234
234
|
"../../item-definitions/conditional-number/conditional-number-options.config.ts": () => import("../conditional-number-options.config-BzzAnCOB.js"),
|
235
|
-
"../../item-definitions/date-filter/date-filter-options.config.ts": () => import("../date-filter-options.config-
|
236
|
-
"../../item-definitions/donut-chart/donut-chart-options.config.ts": () => import("../donut-chart-options.config-
|
235
|
+
"../../item-definitions/date-filter/date-filter-options.config.ts": () => import("../date-filter-options.config-DBRxlTWy.js"),
|
236
|
+
"../../item-definitions/donut-chart/donut-chart-options.config.ts": () => import("../donut-chart-options.config-BulUEiaH.js"),
|
237
237
|
"../../item-definitions/dropdown-filter/dropdown-filter-options.config.ts": () => import("../dropdown-filter-options.config-D9dvPypF.js"),
|
238
|
-
"../../item-definitions/evolution-number/evolution-number-options.config.ts": () => import("../evolution-number-options.config-
|
239
|
-
"../../item-definitions/funnel-chart/funnel-chart-options.config.ts": () => import("../funnel-chart-options.config-
|
240
|
-
"../../item-definitions/heat-map/heat-map-options.config.ts": () => import("../heat-map-options.config-
|
241
|
-
"../../item-definitions/heat-table/heat-table-options.config.ts": () => import("../heat-table-options.config-
|
242
|
-
"../../item-definitions/hexbin-map/hexbin-map-options.config.ts": () => import("../hexbin-map-options.config-
|
238
|
+
"../../item-definitions/evolution-number/evolution-number-options.config.ts": () => import("../evolution-number-options.config-DzkfeoIN.js"),
|
239
|
+
"../../item-definitions/funnel-chart/funnel-chart-options.config.ts": () => import("../funnel-chart-options.config-CIOrejfS.js"),
|
240
|
+
"../../item-definitions/heat-map/heat-map-options.config.ts": () => import("../heat-map-options.config-BAuSJV3_.js"),
|
241
|
+
"../../item-definitions/heat-table/heat-table-options.config.ts": () => import("../heat-table-options.config-DSu_18VG.js"),
|
242
|
+
"../../item-definitions/hexbin-map/hexbin-map-options.config.ts": () => import("../hexbin-map-options.config-DaaC88d8.js"),
|
243
243
|
"../../item-definitions/image/image-options.config.ts": () => import("../image-options.config-CBfeq5Zw.js"),
|
244
244
|
"../../item-definitions/line-chart/line-chart-options.config.ts": () => import("../line-chart-options.config-DB3IsXXr.js"),
|
245
|
-
"../../item-definitions/marker-map/marker-map-options.config.ts": () => import("../marker-map-options.config-
|
245
|
+
"../../item-definitions/marker-map/marker-map-options.config.ts": () => import("../marker-map-options.config-CYoq89Oz.js"),
|
246
246
|
"../../item-definitions/ohlc-chart/ohlc-chart-options.config.ts": () => import("../ohlc-chart-options.config-D9npwajt.js"),
|
247
247
|
"../../item-definitions/parallel-coordinates-plot/parallel-coordinates-plot-options.config.ts": () => import("../parallel-coordinates-plot-options.config-DxB4kd58.js"),
|
248
248
|
"../../item-definitions/pivot-table/pivot-table-options.config.ts": () => import("../pivot-table-options.config-DNK_AIG7.js"),
|
249
|
-
"../../item-definitions/pyramid-chart/pyramid-chart-options.config.ts": () => import("../pyramid-chart-options.config-
|
249
|
+
"../../item-definitions/pyramid-chart/pyramid-chart-options.config.ts": () => import("../pyramid-chart-options.config-CcVMatYx.js"),
|
250
250
|
"../../item-definitions/radar-chart/radar-chart-options.config.ts": () => import("../radar-chart-options.config-CUZn_3Fd.js"),
|
251
|
-
"../../item-definitions/regular-table/regular-table-options.config.ts": () => import("../regular-table-options.config-
|
252
|
-
"../../item-definitions/route-map/route-map-options.config.ts": () => import("../route-map-options.config-
|
251
|
+
"../../item-definitions/regular-table/regular-table-options.config.ts": () => import("../regular-table-options.config-BoLZsBry.js"),
|
252
|
+
"../../item-definitions/route-map/route-map-options.config.ts": () => import("../route-map-options.config-u0hQqmDh.js"),
|
253
253
|
"../../item-definitions/sankey-diagram/sankey-diagram-options.config.ts": () => import("../sankey-diagram-options.config-tVLKy_Zn.js"),
|
254
254
|
"../../item-definitions/scatter-plot/scatter-plot-options.config.ts": () => import("../scatter-plot-options.config-lrkd9qj4.js"),
|
255
255
|
"../../item-definitions/search-filter/search-filter-options.config.ts": () => import("../search-filter-options.config-BE3JhR-F.js"),
|
256
|
-
"../../item-definitions/slicer-filter/slicer-filter-options.config.ts": () => import("../slicer-filter-options.config-
|
256
|
+
"../../item-definitions/slicer-filter/slicer-filter-options.config.ts": () => import("../slicer-filter-options.config-3JZZcw5C.js"),
|
257
257
|
"../../item-definitions/slider-filter/slider-filter-options.config.ts": () => import("../slider-filter-options.config-DH4SS8wH.js"),
|
258
258
|
"../../item-definitions/spacer/spacer-options.config.ts": () => import("../spacer-options.config-IpwUxDyU.js"),
|
259
259
|
"../../item-definitions/speedometer-chart/speedometer-chart-options.config.ts": () => import("../speedometer-chart-options.config-Dt2feQYV.js"),
|
260
|
-
"../../item-definitions/spike-map/spike-map-options.config.ts": () => import("../spike-map-options.config-
|
260
|
+
"../../item-definitions/spike-map/spike-map-options.config.ts": () => import("../spike-map-options.config-pdbV_vwg.js"),
|
261
261
|
"../../item-definitions/strip-plot/strip-plot-options.config.ts": () => import("../strip-plot-options.config-Bdr8yQJu.js"),
|
262
262
|
"../../item-definitions/sunburst-chart/sunburst-chart-options.config.ts": () => import("../sunburst-chart-options.config-CNauGQJv.js"),
|
263
|
-
"../../item-definitions/symbol-map/symbol-map-options.config.ts": () => import("../symbol-map-options.config-
|
263
|
+
"../../item-definitions/symbol-map/symbol-map-options.config.ts": () => import("../symbol-map-options.config-Bj-UuL9m.js"),
|
264
264
|
"../../item-definitions/text/text-options.config.ts": () => import("../text-options.config-BWaJoeG2.js"),
|
265
265
|
"../../item-definitions/treemap-chart/treemap-chart-options.config.ts": () => import("../treemap-chart-options.config-D5AJaF_u.js"),
|
266
266
|
"../../item-definitions/video/video-options.config.ts": () => import("../video-options.config-Dk36zJ1B.js"),
|
@@ -1 +1 @@
|
|
1
|
-
export declare const getValueByKey: (
|
1
|
+
export declare const getValueByKey: (args: any, key: string) => any;
|
@@ -17,4 +17,4 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../index-
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../index-eEpFkbP8.cjs");exports.LuzmoEditOption=t.LuzmoEditOption;
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
import { L as u } from "../index-
|
20
|
+
import { L as u } from "../index-Dn7LyFPv.js";
|
21
21
|
const l = () => {
|
22
22
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
23
23
|
const o = document.createElement("style");
|
@@ -7,8 +7,8 @@ export declare class LuzmoEditOptionMultiLangField extends LuzmoEditOptionBase {
|
|
7
7
|
readonly: boolean;
|
8
8
|
language?: string;
|
9
9
|
placeholder?: Record<string, string>;
|
10
|
-
|
11
|
-
|
10
|
+
parseValue?: (value: any, language: string) => any;
|
11
|
+
toValue?: (value: any, language: string) => any;
|
12
12
|
debounce: number;
|
13
13
|
private multiLangFieldElement;
|
14
14
|
debounceTimeout: any;
|
@@ -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
|
}
|