@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.
Files changed (80) hide show
  1. package/components/box-plot-options.config-DJz_kt-M.cjs +20 -0
  2. package/components/{box-plot-options.config-RAhd--7J.js → box-plot-options.config-vlz5qeNq.js} +7 -7
  3. package/components/{choropleth-map-options.config-DHQu69ib.js → choropleth-map-options.config-CeKXtnYB.js} +2 -2
  4. package/components/{choropleth-map-options.config-BfiQod-y.cjs → choropleth-map-options.config-CxUOg3pw.cjs} +1 -1
  5. package/components/{circular-gauge-options.config-B8kWlhsc.cjs → circular-gauge-options.config-Cz2TGR6X.cjs} +1 -1
  6. package/components/{circular-gauge-options.config-D7FdVupw.js → circular-gauge-options.config-Kd_WK_w-.js} +6 -6
  7. package/components/{date-filter-options.config-KiuizKhg.js → date-filter-options.config-DBRxlTWy.js} +2 -2
  8. package/components/{donut-chart-options.config-NPwNtLDW.js → donut-chart-options.config-BulUEiaH.js} +37 -18
  9. package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
  10. package/components/edit-item/index.cjs +2 -2
  11. package/components/edit-item/index.js +18 -18
  12. package/components/edit-option/helpers/get-value-by-key.d.ts +1 -1
  13. package/components/edit-option/index.cjs +1 -1
  14. package/components/edit-option/index.js +1 -1
  15. package/components/edit-option-multi-language-field/edit-option-multi-language-field.d.ts +2 -2
  16. package/components/edit-option-multi-language-field/index.cjs +2 -2
  17. package/components/edit-option-multi-language-field/index.js +10 -10
  18. package/components/edit-option-number-field/edit-option-number-field.d.ts +2 -2
  19. package/components/edit-option-number-field/index.cjs +3 -3
  20. package/components/edit-option-number-field/index.js +10 -10
  21. package/components/edit-option-picker/edit-option-picker.d.ts +2 -2
  22. package/components/edit-option-picker/index.cjs +6 -6
  23. package/components/edit-option-picker/index.js +10 -10
  24. package/components/edit-option-radio-button-group/edit-option-radio-button-group.d.ts +2 -2
  25. package/components/edit-option-radio-button-group/index.cjs +3 -3
  26. package/components/edit-option-radio-button-group/index.js +16 -16
  27. package/components/edit-option-slider/edit-option-slider.d.ts +2 -2
  28. package/components/edit-option-slider/index.cjs +2 -2
  29. package/components/edit-option-slider/index.js +29 -29
  30. package/components/edit-option-switch/edit-option-switch.d.ts +2 -2
  31. package/components/edit-option-switch/index.cjs +2 -2
  32. package/components/edit-option-switch/index.js +10 -10
  33. package/components/{evolution-number-options.config-D-2-hoge.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
  34. package/components/{evolution-number-options.config-FlQ0IH6f.js → evolution-number-options.config-DzkfeoIN.js} +2 -2
  35. package/components/{funnel-chart-options.config-CrlHKd36.js → funnel-chart-options.config-CIOrejfS.js} +23 -22
  36. package/components/funnel-chart-options.config-L_gqlFs2.cjs +20 -0
  37. package/components/{heat-map-options.config-B0FtmOXM.js → heat-map-options.config-BAuSJV3_.js} +4 -4
  38. package/components/{heat-map-options.config-CnBcz-lL.cjs → heat-map-options.config-DsUXxjN0.cjs} +1 -1
  39. package/components/{heat-table-options.config-C0L9ZJHP.js → heat-table-options.config-DSu_18VG.js} +2 -2
  40. package/components/{heat-table-options.config-QMSy8dYT.cjs → heat-table-options.config-DqPL2hIY.cjs} +1 -1
  41. package/components/{hexbin-map-options.config-BraDZx_s.cjs → hexbin-map-options.config-B_KAcDYq.cjs} +1 -1
  42. package/components/{hexbin-map-options.config-BJaPYxgd.js → hexbin-map-options.config-DaaC88d8.js} +2 -2
  43. package/components/{index-5yuxnZFm.js → index-Dn7LyFPv.js} +321 -311
  44. package/components/{index-CpBHyBSr.cjs → index-eEpFkbP8.cjs} +104 -104
  45. package/components/index.cjs +1 -1
  46. package/components/index.js +1 -1
  47. package/components/{marker-map-options.config-DlJhJQFX.js → marker-map-options.config-CYoq89Oz.js} +6 -6
  48. package/components/{marker-map-options.config-DJrnM51M.cjs → marker-map-options.config-_XFv5XWK.cjs} +1 -1
  49. package/components/{pyramid-chart-options.config-senv4pUq.js → pyramid-chart-options.config-CcVMatYx.js} +1 -1
  50. package/components/{regular-table-options.config-CAb4esiC.js → regular-table-options.config-BoLZsBry.js} +17 -17
  51. package/components/regular-table-options.config-DTx3RTnS.cjs +20 -0
  52. package/components/{route-map-options.config-Dcj-usMY.cjs → route-map-options.config-CcQXPmjN.cjs} +1 -1
  53. package/components/{route-map-options.config-BmrbNMnQ.js → route-map-options.config-u0hQqmDh.js} +5 -5
  54. package/components/{slicer-filter-options.config-DcUkjMck.js → slicer-filter-options.config-3JZZcw5C.js} +4 -4
  55. package/components/{slicer-filter-options.config-CC5wUFC3.cjs → slicer-filter-options.config-DNI-XevE.cjs} +1 -1
  56. package/components/{spike-map-options.config-CrccOQVL.cjs → spike-map-options.config-PpPPrsR2.cjs} +1 -1
  57. package/components/{spike-map-options.config-DwUz-EkV.js → spike-map-options.config-pdbV_vwg.js} +2 -2
  58. package/components/{symbol-map-options.config-CKd-phmw.js → symbol-map-options.config-Bj-UuL9m.js} +2 -2
  59. package/components/{symbol-map-options.config-BidCDEaK.cjs → symbol-map-options.config-sdPlHspI.cjs} +1 -1
  60. package/custom-elements.json +25 -25
  61. package/item-definitions/box-plot/box-plot-options.config.d.ts +4 -4
  62. package/item-definitions/choropleth-map/choropleth-map-options.config.d.ts +6 -6
  63. package/item-definitions/circular-gauge/circular-gauge-options.config.d.ts +6 -6
  64. package/item-definitions/donut-chart/donut-chart-options.config.d.ts +35 -13
  65. package/item-definitions/evolution-number/evolution-number-options.config.d.ts +10 -10
  66. package/item-definitions/funnel-chart/funnel-chart-options.config.d.ts +24 -8
  67. package/item-definitions/heat-map/heat-map-options.config.d.ts +4 -4
  68. package/item-definitions/heat-table/heat-table-options.config.d.ts +8 -8
  69. package/item-definitions/hexbin-map/hexbin-map-options.config.d.ts +4 -4
  70. package/item-definitions/marker-map/marker-map-options.config.d.ts +6 -6
  71. package/item-definitions/regular-table/regular-table-options.config.d.ts +6 -6
  72. package/item-definitions/route-map/route-map-options.config.d.ts +6 -6
  73. package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +10 -10
  74. package/item-definitions/spike-map/spike-map-options.config.d.ts +6 -6
  75. package/item-definitions/symbol-map/symbol-map-options.config.d.ts +4 -4
  76. package/package.json +1 -1
  77. package/components/box-plot-options.config-DNtA8fnn.cjs +0 -20
  78. package/components/donut-chart-options.config-bqcKuyIu.cjs +0 -20
  79. package/components/funnel-chart-options.config-hw_GXs4s.cjs +0 -20
  80. package/components/regular-table-options.config-Ba8dfyVF.cjs +0 -20
@@ -8,29 +8,33 @@ declare const _default: ({
8
8
  type: string;
9
9
  default: string;
10
10
  enum: string[];
11
- fromOptionValue?: undefined;
12
- toOptionValue?: undefined;
11
+ parseValue?: undefined;
12
+ toValue?: undefined;
13
13
  label?: undefined;
14
+ calculateValue?: undefined;
15
+ toOptions?: undefined;
14
16
  };
15
17
  type?: undefined;
16
- sideEffect?: undefined;
18
+ visibleIf?: undefined;
17
19
  } | {
18
20
  key: string;
19
21
  control: {
20
22
  type: string;
21
23
  default: string;
22
24
  enum: string[];
23
- fromOptionValue: (value: any) => "full" | "half";
24
- toOptionValue: (value: any) => boolean;
25
+ parseValue: (value: any) => "full" | "half";
26
+ toValue: (value: any) => boolean;
25
27
  label?: undefined;
28
+ calculateValue?: undefined;
29
+ toOptions?: undefined;
26
30
  };
27
31
  type?: undefined;
28
- sideEffect?: undefined;
32
+ visibleIf?: undefined;
29
33
  } | {
30
34
  type: string;
31
35
  key?: undefined;
32
36
  control?: undefined;
33
- sideEffect?: undefined;
37
+ visibleIf?: undefined;
34
38
  } | {
35
39
  key: string;
36
40
  control: {
@@ -38,22 +42,40 @@ declare const _default: ({
38
42
  label: string;
39
43
  default: boolean;
40
44
  enum?: undefined;
41
- fromOptionValue?: undefined;
42
- toOptionValue?: undefined;
45
+ parseValue?: undefined;
46
+ toValue?: undefined;
47
+ calculateValue?: undefined;
48
+ toOptions?: undefined;
43
49
  };
44
50
  type?: undefined;
45
- sideEffect?: undefined;
51
+ visibleIf?: undefined;
52
+ } | {
53
+ key: string;
54
+ control: {
55
+ type: string;
56
+ label: string;
57
+ default: boolean;
58
+ calculateValue: ({ options }: any) => boolean;
59
+ toOptions: ({ options, value }: any) => any;
60
+ enum?: undefined;
61
+ parseValue?: undefined;
62
+ toValue?: undefined;
63
+ };
64
+ type?: undefined;
65
+ visibleIf?: undefined;
46
66
  } | {
47
67
  key: string;
48
68
  control: {
49
69
  type: string;
50
70
  enum: string[];
51
- fromOptionValue: (value: string) => "list" | "labels";
52
- toOptionValue: (value: string) => value is "labels";
71
+ parseValue: (value: string) => "list" | "labels";
72
+ toOptions: ({ options, value }: any) => any;
53
73
  default?: undefined;
74
+ toValue?: undefined;
54
75
  label?: undefined;
76
+ calculateValue?: undefined;
55
77
  };
56
- sideEffect: ({ options }: any) => any;
78
+ visibleIf: ({ options }: any) => boolean;
57
79
  type?: undefined;
58
80
  })[];
59
81
  } | {
@@ -118,8 +118,8 @@ declare const _default: ({
118
118
  min?: undefined;
119
119
  max?: undefined;
120
120
  step?: undefined;
121
- fromOptionValue?: undefined;
122
- toOptionValue?: undefined;
121
+ parseValue?: undefined;
122
+ toValue?: undefined;
123
123
  };
124
124
  visibleIf?: undefined;
125
125
  } | {
@@ -132,8 +132,8 @@ declare const _default: ({
132
132
  min?: undefined;
133
133
  max?: undefined;
134
134
  step?: undefined;
135
- fromOptionValue?: undefined;
136
- toOptionValue?: undefined;
135
+ parseValue?: undefined;
136
+ toValue?: undefined;
137
137
  };
138
138
  visibleIf: ({ options }: any) => boolean;
139
139
  } | {
@@ -146,8 +146,8 @@ declare const _default: ({
146
146
  min?: undefined;
147
147
  max?: undefined;
148
148
  step?: undefined;
149
- fromOptionValue?: undefined;
150
- toOptionValue?: undefined;
149
+ parseValue?: undefined;
150
+ toValue?: undefined;
151
151
  };
152
152
  visibleIf: ({ options }: any) => boolean;
153
153
  } | {
@@ -160,8 +160,8 @@ declare const _default: ({
160
160
  max: number;
161
161
  step: number;
162
162
  enum?: undefined;
163
- fromOptionValue?: undefined;
164
- toOptionValue?: undefined;
163
+ parseValue?: undefined;
164
+ toValue?: undefined;
165
165
  };
166
166
  visibleIf: ({ options }: any) => boolean;
167
167
  } | {
@@ -170,8 +170,8 @@ declare const _default: ({
170
170
  type: string;
171
171
  label: string;
172
172
  default: string;
173
- fromOptionValue: (value: any) => boolean;
174
- toOptionValue: (value: any) => "normal" | "inverse";
173
+ parseValue: (value: any) => boolean;
174
+ toValue: (value: any) => "normal" | "inverse";
175
175
  enum?: undefined;
176
176
  min?: undefined;
177
177
  max?: undefined;
@@ -8,9 +8,22 @@ declare const _default: ({
8
8
  type: string;
9
9
  label: string;
10
10
  default: boolean;
11
+ calculateValue?: undefined;
12
+ toOptions?: undefined;
11
13
  enum?: undefined;
12
- fromOptionValue?: undefined;
13
- toOptionValue?: undefined;
14
+ parseValue?: undefined;
15
+ };
16
+ visibleIf?: undefined;
17
+ } | {
18
+ key: string;
19
+ control: {
20
+ type: string;
21
+ label: string;
22
+ default: boolean;
23
+ calculateValue: ({ options }: any) => boolean;
24
+ toOptions: ({ options, value }: any) => any;
25
+ enum?: undefined;
26
+ parseValue?: undefined;
14
27
  };
15
28
  visibleIf?: undefined;
16
29
  } | {
@@ -20,8 +33,9 @@ declare const _default: ({
20
33
  label: string;
21
34
  default: string;
22
35
  enum: string[];
23
- fromOptionValue: (value: boolean) => "list" | "labels";
24
- toOptionValue: (value: string) => value is "labels";
36
+ parseValue: (value: string) => "list" | "labels";
37
+ toOptions: ({ options, value }: any) => any;
38
+ calculateValue?: undefined;
25
39
  };
26
40
  visibleIf: ({ options }: any) => boolean;
27
41
  } | {
@@ -30,9 +44,10 @@ declare const _default: ({
30
44
  type: string;
31
45
  label: string;
32
46
  default: boolean;
47
+ calculateValue?: undefined;
48
+ toOptions?: undefined;
33
49
  enum?: undefined;
34
- fromOptionValue?: undefined;
35
- toOptionValue?: undefined;
50
+ parseValue?: undefined;
36
51
  };
37
52
  visibleIf: ({ options }: any) => boolean;
38
53
  } | {
@@ -42,8 +57,9 @@ declare const _default: ({
42
57
  label: string;
43
58
  default: string;
44
59
  enum: string[];
45
- fromOptionValue?: undefined;
46
- toOptionValue?: undefined;
60
+ calculateValue?: undefined;
61
+ toOptions?: undefined;
62
+ parseValue?: undefined;
47
63
  };
48
64
  visibleIf: ({ options }: any) => boolean;
49
65
  })[];
@@ -9,8 +9,8 @@ declare const _default: ({
9
9
  label: string;
10
10
  default: boolean;
11
11
  enum?: undefined;
12
- fromOptionValue?: undefined;
13
- toOptionValue?: undefined;
12
+ parseValue?: undefined;
13
+ toValue?: undefined;
14
14
  };
15
15
  type?: undefined;
16
16
  } | {
@@ -24,8 +24,8 @@ declare const _default: ({
24
24
  label: string;
25
25
  default: string;
26
26
  enum: string[];
27
- fromOptionValue: (value: any) => any;
28
- toOptionValue: (value: string) => {
27
+ parseValue: (value: any) => any;
28
+ toValue: (value: string) => {
29
29
  name: string;
30
30
  id: string;
31
31
  url: string;
@@ -29,8 +29,8 @@ declare const _default: ({
29
29
  extraLabelHasClickAction?: undefined;
30
30
  extraLabelClickAction?: undefined;
31
31
  enum?: undefined;
32
- fromOptionValue?: undefined;
33
- toOptionValue?: undefined;
32
+ parseValue?: undefined;
33
+ toValue?: undefined;
34
34
  };
35
35
  } | {
36
36
  key: string;
@@ -48,8 +48,8 @@ declare const _default: ({
48
48
  options: any;
49
49
  };
50
50
  enum?: undefined;
51
- fromOptionValue?: undefined;
52
- toOptionValue?: undefined;
51
+ parseValue?: undefined;
52
+ toValue?: undefined;
53
53
  };
54
54
  } | {
55
55
  key: string;
@@ -64,8 +64,8 @@ declare const _default: ({
64
64
  extraLabel?: undefined;
65
65
  extraLabelHasClickAction?: undefined;
66
66
  extraLabelClickAction?: undefined;
67
- fromOptionValue?: undefined;
68
- toOptionValue?: undefined;
67
+ parseValue?: undefined;
68
+ toValue?: undefined;
69
69
  };
70
70
  } | {
71
71
  key: string;
@@ -74,8 +74,8 @@ declare const _default: ({
74
74
  label: string;
75
75
  default: string;
76
76
  enum: string[];
77
- fromOptionValue: (value: number) => string;
78
- toOptionValue: (value: string) => number;
77
+ parseValue: (value: number) => string;
78
+ toValue: (value: string) => number;
79
79
  min?: undefined;
80
80
  max?: undefined;
81
81
  step?: undefined;
@@ -9,8 +9,8 @@ declare const _default: ({
9
9
  label: string;
10
10
  default: boolean;
11
11
  enum?: undefined;
12
- fromOptionValue?: undefined;
13
- toOptionValue?: undefined;
12
+ parseValue?: undefined;
13
+ toValue?: undefined;
14
14
  };
15
15
  type?: undefined;
16
16
  } | {
@@ -24,8 +24,8 @@ declare const _default: ({
24
24
  label: string;
25
25
  default: string;
26
26
  enum: string[];
27
- fromOptionValue: (value: any) => any;
28
- toOptionValue: (value: string) => {
27
+ parseValue: (value: any) => any;
28
+ toValue: (value: string) => {
29
29
  name: string;
30
30
  id: string;
31
31
  url: string;
@@ -9,8 +9,8 @@ declare const _default: ({
9
9
  label: string;
10
10
  default: boolean;
11
11
  enum?: undefined;
12
- fromOptionValue?: undefined;
13
- toOptionValue?: undefined;
12
+ parseValue?: undefined;
13
+ toValue?: undefined;
14
14
  };
15
15
  type?: undefined;
16
16
  } | {
@@ -24,8 +24,8 @@ declare const _default: ({
24
24
  label: string;
25
25
  default: string;
26
26
  enum: string[];
27
- fromOptionValue: (value: any) => any;
28
- toOptionValue: (value: string) => {
27
+ parseValue: (value: any) => any;
28
+ toValue: (value: string) => {
29
29
  name: string;
30
30
  id: string;
31
31
  url: string;
@@ -132,8 +132,8 @@ declare const _default: ({
132
132
  };
133
133
  };
134
134
  selects: string;
135
- toOptionValue: (value: string) => 60 | 30 | 90;
136
- fromOptionValue: (value: number) => "M" | "S" | "L";
135
+ toValue: (value: string) => 60 | 30 | 90;
136
+ parseValue: (value: number) => "M" | "S" | "L";
137
137
  };
138
138
  }[];
139
139
  })[];
@@ -9,8 +9,8 @@ declare const _default: ({
9
9
  label: string;
10
10
  default: boolean;
11
11
  enum?: undefined;
12
- toOptionValue?: undefined;
13
- fromOptionValue?: undefined;
12
+ toValue?: undefined;
13
+ parseValue?: undefined;
14
14
  extraLabel?: undefined;
15
15
  extraLabelHasClickAction?: undefined;
16
16
  extraLabelClickAction?: undefined;
@@ -22,8 +22,8 @@ declare const _default: ({
22
22
  label: string;
23
23
  default: string;
24
24
  enum: string[];
25
- toOptionValue: (value: string) => number;
26
- fromOptionValue: (value: number) => string;
25
+ toValue: (value: string) => number;
26
+ parseValue: (value: number) => string;
27
27
  extraLabel?: undefined;
28
28
  extraLabelHasClickAction?: undefined;
29
29
  extraLabelClickAction?: undefined;
@@ -41,8 +41,8 @@ declare const _default: ({
41
41
  options: any;
42
42
  };
43
43
  enum?: undefined;
44
- toOptionValue?: undefined;
45
- fromOptionValue?: undefined;
44
+ toValue?: undefined;
45
+ parseValue?: undefined;
46
46
  };
47
47
  })[];
48
48
  } | {
@@ -12,8 +12,8 @@ declare const _default: ({
12
12
  max?: undefined;
13
13
  step?: undefined;
14
14
  enum?: undefined;
15
- fromOptionValue?: undefined;
16
- toOptionValue?: undefined;
15
+ parseValue?: undefined;
16
+ toValue?: undefined;
17
17
  };
18
18
  type?: undefined;
19
19
  } | {
@@ -26,8 +26,8 @@ declare const _default: ({
26
26
  max: number;
27
27
  step: number;
28
28
  enum?: undefined;
29
- fromOptionValue?: undefined;
30
- toOptionValue?: undefined;
29
+ parseValue?: undefined;
30
+ toValue?: undefined;
31
31
  };
32
32
  type?: undefined;
33
33
  } | {
@@ -41,8 +41,8 @@ declare const _default: ({
41
41
  label: string;
42
42
  default: string;
43
43
  enum: string[];
44
- fromOptionValue: (value: any) => any;
45
- toOptionValue: (value: string) => {
44
+ parseValue: (value: any) => any;
45
+ toValue: (value: string) => {
46
46
  name: string;
47
47
  id: string;
48
48
  url: string;
@@ -8,8 +8,8 @@ declare const _default: ({
8
8
  type: string;
9
9
  label: string;
10
10
  default: boolean;
11
- fromOptionValue?: undefined;
12
- toOptionValue?: undefined;
11
+ parseValue?: undefined;
12
+ toValue?: undefined;
13
13
  extraLabel?: undefined;
14
14
  extraLabelHasClickAction?: undefined;
15
15
  extraLabelClickAction?: undefined;
@@ -22,8 +22,8 @@ declare const _default: ({
22
22
  type: string;
23
23
  label: string;
24
24
  default: boolean;
25
- fromOptionValue?: undefined;
26
- toOptionValue?: undefined;
25
+ parseValue?: undefined;
26
+ toValue?: undefined;
27
27
  extraLabel?: undefined;
28
28
  extraLabelHasClickAction?: undefined;
29
29
  extraLabelClickAction?: undefined;
@@ -36,8 +36,8 @@ declare const _default: ({
36
36
  type: string;
37
37
  label: string;
38
38
  default: boolean;
39
- fromOptionValue: (value: any) => boolean;
40
- toOptionValue: (value: any) => "default" | "button";
39
+ parseValue: (value: any) => boolean;
40
+ toValue: (value: any) => "default" | "button";
41
41
  extraLabel?: undefined;
42
42
  extraLabelHasClickAction?: undefined;
43
43
  extraLabelClickAction?: undefined;
@@ -56,8 +56,8 @@ declare const _default: ({
56
56
  value: any;
57
57
  options: any;
58
58
  };
59
- fromOptionValue?: undefined;
60
- toOptionValue?: undefined;
59
+ parseValue?: undefined;
60
+ toValue?: undefined;
61
61
  enum?: undefined;
62
62
  };
63
63
  visibleIf: ({ options }: any) => boolean;
@@ -68,8 +68,8 @@ declare const _default: ({
68
68
  label: string;
69
69
  default: string;
70
70
  enum: string[];
71
- fromOptionValue?: undefined;
72
- toOptionValue?: undefined;
71
+ parseValue?: undefined;
72
+ toValue?: undefined;
73
73
  extraLabel?: undefined;
74
74
  extraLabelHasClickAction?: undefined;
75
75
  extraLabelClickAction?: undefined;
@@ -9,8 +9,8 @@ declare const _default: ({
9
9
  label: string;
10
10
  default: boolean;
11
11
  enum?: undefined;
12
- fromOptionValue?: undefined;
13
- toOptionValue?: undefined;
12
+ parseValue?: undefined;
13
+ toValue?: undefined;
14
14
  };
15
15
  visibleIf?: undefined;
16
16
  type?: undefined;
@@ -21,8 +21,8 @@ declare const _default: ({
21
21
  label: string;
22
22
  default: boolean;
23
23
  enum?: undefined;
24
- fromOptionValue?: undefined;
25
- toOptionValue?: undefined;
24
+ parseValue?: undefined;
25
+ toValue?: undefined;
26
26
  };
27
27
  visibleIf: ({ slots }: any) => boolean;
28
28
  type?: undefined;
@@ -38,8 +38,8 @@ declare const _default: ({
38
38
  label: string;
39
39
  default: string;
40
40
  enum: string[];
41
- fromOptionValue: (value: any) => any;
42
- toOptionValue: (value: string) => {
41
+ parseValue: (value: any) => any;
42
+ toValue: (value: string) => {
43
43
  name: string;
44
44
  id: string;
45
45
  url: string;
@@ -9,8 +9,8 @@ declare const _default: ({
9
9
  label: string;
10
10
  default: boolean;
11
11
  enum?: undefined;
12
- fromOptionValue?: undefined;
13
- toOptionValue?: undefined;
12
+ parseValue?: undefined;
13
+ toValue?: undefined;
14
14
  };
15
15
  type?: undefined;
16
16
  } | {
@@ -24,8 +24,8 @@ declare const _default: ({
24
24
  label: string;
25
25
  default: string;
26
26
  enum: string[];
27
- fromOptionValue: (value: any) => any;
28
- toOptionValue: (value: string) => {
27
+ parseValue: (value: any) => any;
28
+ toValue: (value: string) => {
29
29
  name: string;
30
30
  id: string;
31
31
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luzmo/analytics-components-kit",
3
- "version": "1.0.1-alpha.24",
3
+ "version": "1.0.1-alpha.25",
4
4
  "type": "module",
5
5
  "main": "./components/index.js",
6
6
  "module": "./components/index.js",
@@ -1,20 +0,0 @@
1
- /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
- *
3
- * Copyright © 2025 Luzmo
4
- * All rights reserved.
5
- * Luzmo web components (“Luzmo Web Components”)
6
- * must be used according to the Luzmo Terms of Service.
7
- * This license allows users with a current active Luzmo account
8
- * to use the Luzmo Web Components. This license terminates
9
- * automatically if a user no longer has an active Luzmo account.
10
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
- *
12
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- * SOFTWARE.
19
- * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./helpers-DXQwEH1P.cjs"),a=({options:e})=>{var l;return((l=e==null?void 0:e.observations)==null?void 0:l.display)===!0},c=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"horizontal",control:{type:"picker",label:"Display",default:"vertical",enum:["vertical","horizontal"],fromOptionValue:e=>e?"horizontal":"vertical",toOptionValue:e=>e==="horizontal"}},{key:"extentTicks",control:{type:"switch",label:"Extent ticks",default:!0}}]},{key:"box",type:"group",open:!0,children:[{key:"boxWidth",control:{type:"slider",label:"Box width",default:.9,min:.1,max:1,step:.1}},{key:"boxFill",control:{type:"color-picker",label:"Box fill",default:({theme:e})=>t.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>t.getThemeMainColorResetLabel(e,l,"boxFill"),extraLabelHasClickAction:({options:e,theme:l})=>t.getThemeMainColorExtraLabelHasClickAction(e,l,"boxFill"),extraLabelClickAction:({options:e,theme:l})=>t.getThemeMainColorExtraLabelClickAction(e,l,"boxFill")}},{key:"roundedCorners",control:{type:"slider",label:"Rounded corners",default:({theme:e})=>{var l;return((l=e==null?void 0:e.itemSpecific)==null?void 0:l.rounding)??8},min:0,max:24,step:1,extraLabel:({options:e,theme:l})=>{var o;if(typeof((o=l==null?void 0:l.itemSpecific)==null?void 0:o.rounding)=="number")return typeof(e==null?void 0:e.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var o;return!(typeof((o=l==null?void 0:l.itemSpecific)==null?void 0:o.rounding)!="number"||typeof(e==null?void 0:e.roundedCorners)!="number")},extraLabelClickAction:({options:e})=>{const l={...e};return(l==null?void 0:l.roundedCorners)!==void 0&&delete l.roundedCorners,{value:null,options:l}}}},{key:"boxStrokeWidth",control:{type:"slider",label:"Box stroke width",default:1,min:0,max:5,step:.5}},{key:"boxStrokeColor",control:{type:"color-picker",label:"Box stroke color",default:({theme:e})=>t.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>t.getThemeMainColorResetLabel(e,l,"boxStrokeColor"),extraLabelHasClickAction:({options:e,theme:l})=>t.getThemeMainColorExtraLabelHasClickAction(e,l,"boxStrokeColor"),extraLabelClickAction:({options:e,theme:l})=>t.getThemeMainColorExtraLabelClickAction(e,l,"boxStrokeColor")}},{key:"medianStrokeWidth",control:{type:"slider",label:"Median stroke width",default:2,min:0,max:5,step:.5}},{key:"medianStrokeColor",control:{type:"color-picker",label:"Median stroke color",default:"#000000"}}]},{key:"observations",type:"group",open:!0,children:[{key:"observations.display",control:{type:"switch",label:"Show",default:!1}},{key:"observations.onlyOutliers",control:{type:"switch",label:"Only outliers",default:!1},visibleIf:a},{key:"observations.type",control:{type:"picker",label:"Type",default:"dot",enum:["dot","ticks"]},visibleIf:a},{key:"observations.size",control:{type:"slider",label:"Size",default:3,min:1,max:10,step:1},visibleIf:a},{key:"observations.opacity",control:{type:"slider",label:"Opacity",default:.4,min:.1,max:1,step:.1},visibleIf:a},{key:"observations.jitter",control:{type:"slider",label:"Jitter",default:30,min:1,max:100,step:1},visibleIf:a},{key:"observations.colorType",control:{type:"picker",label:"Color mode",default:"single",enum:["single","range"]},visibleIf:a},{key:"observations.color",control:{type:"color-picker",label:"Color",default:({theme:e})=>{var l;return(l=e==null?void 0:e.colors)==null?void 0:l[1]},extraLabel:({options:e,theme:l})=>{var o,r,i,n;if((o=l==null?void 0:l.colors)!=null&&o[1]&&((r=e.observations)!=null&&r.color)&&((i=e.observations)==null?void 0:i.color)!==((n=l==null?void 0:l.colors)==null?void 0:n[1]))return"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var o,r,i;return!!((o=l==null?void 0:l.colors)!=null&&o[1]&&((r=e.observations)==null?void 0:r.color)!==((i=l==null?void 0:l.colors)==null?void 0:i[1]))},extraLabelClickAction:({options:e,theme:l})=>{var r;const o={...e};return o.observations.color=(r=l==null?void 0:l.colors)==null?void 0:r[1],{value:o.observations.color,options:o}}},visibleIf:({options:e})=>{var l;return a({options:e})&&((l=e==null?void 0:e.observations)==null?void 0:l.colorType)==="single"}},{key:"observations.colorsType",control:{type:"picker",label:"Colors type",default:"divergent",enum:["sequential","divergent","manual"]},visibleIf:({options:e})=>{var l;return a({options:e})&&((l=e==null?void 0:e.observations)==null?void 0:l.colorType)==="range"}}]}];exports.default=c;
@@ -1,20 +0,0 @@
1
- /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
- *
3
- * Copyright © 2025 Luzmo
4
- * All rights reserved.
5
- * Luzmo web components (“Luzmo Web Components”)
6
- * must be used according to the Luzmo Terms of Service.
7
- * This license allows users with a current active Luzmo account
8
- * to use the Luzmo Web Components. This license terminates
9
- * automatically if a user no longer has an active Luzmo account.
10
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
- *
12
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- * SOFTWARE.
19
- * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=[{key:"general",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",default:"donut",enum:["donut","pie"]}},{key:"slices.half",control:{type:"picker",default:"full",enum:["full","half"],fromOptionValue:e=>e?"half":"full",toOptionValue:e=>e==="half"}},{type:"divider"},{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0}},{key:"display.categoryLabels",control:{type:"radio-button-group",enum:["list","labels"],fromOptionValue:e=>e?"labels":"list",toOptionValue:e=>e==="labels"},sideEffect:({options:e})=>{var l;return((l=e==null?void 0:e.display)==null?void 0:l.categoryLabels)==="labels"&&(e.display.legend=!1),e}}]},{key:"slices",type:"group",open:!0,children:[{key:"sort.by",control:{type:"picker",default:"measure",enum:["measure","category"]}},{key:"display.values",control:{type:"picker",default:"none",enum:["none","absolute","percentage"]}},{key:"slices.width",control:{type:"slider",default:.35,min:.05,max:.9,step:.01}},{key:"slices.maxNumber",control:{type:"number-field",default:12,min:0,max:50,step:1}},{key:"slices.minPercentage",control:{type:"number-field",default:3,min:0,max:100,step:1}},{key:"slices.roundedCorners",control:{type:"slider",default:8,min:0,max:24,step:1,extraLabel:({options:e,theme:l})=>{var r,t;if(typeof((r=l==null?void 0:l.itemSpecific)==null?void 0:r.rounding)=="number")return typeof((t=e==null?void 0:e.slices)==null?void 0:t.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var r,t;return!(typeof((r=l==null?void 0:l.itemSpecific)==null?void 0:r.rounding)!="number"||typeof((t=e==null?void 0:e.slices)==null?void 0:t.roundedCorners)!="number")},extraLabelClickAction:({options:e})=>{var r;const l={...e};return((r=l==null?void 0:l.slices)==null?void 0:r.roundedCorners)!==void 0&&delete l.slices.roundedCorners,{value:null,options:l}}}},{key:"slices.padding",control:{type:"slider",default:5,min:0,max:20,step:1,extraLabel:({options:e,theme:l})=>{var r,t;if(typeof((r=l==null?void 0:l.itemSpecific)==null?void 0:r.padding)=="number")return typeof((t=e==null?void 0:e.slices)==null?void 0:t.padding)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var r,t;return!(typeof((r=l==null?void 0:l.itemSpecific)==null?void 0:r.padding)!="number"||typeof((t=e==null?void 0:e.slices)==null?void 0:t.padding)!="number")},extraLabelClickAction:({options:e})=>{var r;const l={...e};return((r=l==null?void 0:l.slices)==null?void 0:r.padding)!==void 0&&delete l.slices.padding,{value:null,options:l}}}}]}];exports.default=a;
@@ -1,20 +0,0 @@
1
- /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
- *
3
- * Copyright © 2025 Luzmo
4
- * All rights reserved.
5
- * Luzmo web components (“Luzmo Web Components”)
6
- * must be used according to the Luzmo Terms of Service.
7
- * This license allows users with a current active Luzmo account
8
- * to use the Luzmo Web Components. This license terminates
9
- * automatically if a user no longer has an active Luzmo account.
10
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
- *
12
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- * SOFTWARE.
19
- * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0}},{key:"display.categoryLabels",control:{type:"radio-button-group",label:"Display legend as",default:"labels",enum:["list","labels"],fromOptionValue:e=>e===!1?"list":"labels",toOptionValue:e=>e==="labels"},visibleIf:({options:e})=>{var l,t;return((l=e==null?void 0:e.display)==null?void 0:l.legend)!==!1||((t=e==null?void 0:e.display)==null?void 0:t.categoryLabels)==="list"}},{key:"display.values",control:{type:"switch",label:"Show values",default:!1}},{key:"funnel.absValue",control:{type:"switch",label:"Show absolute values",default:!0},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.display)==null?void 0:l.values)===!0}},{key:"funnel.perc",control:{type:"picker",label:"Percentage",default:"hide",enum:["hide","ofMax","ofTotal"]},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.display)==null?void 0:l.values)===!0}}]},{key:"funnel",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",label:"Mode",default:"dynamicWidth",enum:["dynamicWidth","dynamicHeight","regular"]}},{key:"funnel.rectangle",control:{type:"switch",label:"Rectangular",default:!1}},{key:"sort.by",control:{type:"picker",label:"Order",default:"measure",enum:["measure","category"]}},{key:"sort.direction",control:{type:"picker",label:"Direction",default:"desc",enum:["asc","desc"]}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"right",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]}}],visibleIf:({options:e})=>{var l,t;return((l=e==null?void 0:e.display)==null?void 0:l.legend)===!0&&((t=e.display)==null?void 0:t.categoryLabels)==="false"}}];exports.default=a;
@@ -1,20 +0,0 @@
1
- /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
- *
3
- * Copyright © 2025 Luzmo
4
- * All rights reserved.
5
- * Luzmo web components (“Luzmo Web Components”)
6
- * must be used according to the Luzmo Terms of Service.
7
- * This license allows users with a current active Luzmo account
8
- * to use the Luzmo Web Components. This license terminates
9
- * automatically if a user no longer has an active Luzmo account.
10
- * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
- *
12
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- * SOFTWARE.
19
- * */
20
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./helpers-DXQwEH1P.cjs"),o=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!1}},{key:"alternateRowColor",control:{type:"switch",label:"Alternate row coloring",default:!0}},{key:"rowHeight",control:{type:"picker",label:"Row height",default:"default",enum:["veryCompact","compact","default","comfortable","veryComfortable","spacious"],toOptionValue:e=>({veryCompact:22,compact:24,default:28,comfortable:32,veryComfortable:36,spacious:40})[e]??28,fromOptionValue:e=>({22:"veryCompact",24:"compact",28:"default",32:"comfortable",36:"veryComfortable",40:"spacious"})[e]??"default"}},{key:"headers.background",control:{type:"color-picker",label:"Headers background",default:({theme:e})=>r.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>r.getThemeMainColorResetLabel(e,l,"headers.background"),extraLabelHasClickAction:({options:e,theme:l})=>r.getThemeMainColorExtraLabelHasClickAction(e,l,"headers.background"),extraLabelClickAction:({options:e,theme:l})=>r.getThemeMainColorExtraLabelClickAction(e,l,"headers.background")}}]},{key:"borders",type:"group",open:!0,children:[{key:"tableBorders.type",control:{type:"action-button-group",label:"Type",default:["none"],values:{none:{iconName:"ban",label:"no border"},all:{iconName:"table",label:"row and column borders"},rows:{iconName:"rows",label:"rows border"},columns:{iconName:"columns",label:"columns border"}},selects:"single"}},{key:"tableBorders.color",control:{type:"color-picker",label:"Color",default:({theme:e})=>r.getThemeBorderColor(e),extraLabel:({options:e,theme:l})=>r.getThemeBorderColorResetLabel(e,l,"tableBorders.color"),extraLabelHasClickAction:({options:e,theme:l})=>r.getThemeBorderColorExtraLabelHasClickAction(e,l,"tableBorders.color"),extraLabelClickAction:({options:e,theme:l})=>r.getThemeBorderColorExtraLabelClickAction(e,l,"tableBorders.color")},visibleIf:({options:e})=>{var l,a;return((l=e==null?void 0:e.tableBorders)==null?void 0:l.type)&&((a=e==null?void 0:e.tableBorders)==null?void 0:a.type)!=="none"}},{key:"tableBorders.width",control:{type:"number-field",label:"Width",default:1,min:1,max:20,step:1,unit:"px"},visibleIf:({options:e})=>{var l,a;return((l=e==null?void 0:e.tableBorders)==null?void 0:l.type)&&((a=e==null?void 0:e.tableBorders)==null?void 0:a.type)!=="none"}}]}];exports.default=o;