@luzmo/analytics-components-kit 1.0.1-alpha.11 → 1.0.1-alpha.13

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 (77) hide show
  1. package/components/area-chart.config-Ba68ZiSX.js +198 -0
  2. package/components/area-chart.config-Vo0u3UK8.cjs +20 -0
  3. package/components/{column-chart.config-BYIX4E6J.js → bar-chart.config-CF1i1Imw.js} +41 -14
  4. package/components/bar-chart.config-YLP38HOE.cjs +20 -0
  5. package/components/bubble-chart.config-1MrC55Nb.js +142 -0
  6. package/components/bubble-chart.config-bQBq1s3C.cjs +20 -0
  7. package/components/circle-pack-chart.config-BOlrxRJA.cjs +20 -0
  8. package/components/circle-pack-chart.config-Bbm2bTgy.js +110 -0
  9. package/components/{bar-chart.config-BYIX4E6J.js → column-chart.config-BT1QH4BI.js} +40 -14
  10. package/components/column-chart.config-CppyNukh.cjs +20 -0
  11. package/components/display-settings-datetime/index.cjs +25 -25
  12. package/components/display-settings-datetime/index.js +66 -59
  13. package/components/donut-chart.config-B_38UAqp.cjs +20 -0
  14. package/components/{donut-chart.config-3DhKiSSM.js → donut-chart.config-DuJFyp4z.js} +4 -2
  15. package/components/dropdown-filter.config-BPBxTuLQ.cjs +20 -0
  16. package/components/dropdown-filter.config-Drv-A4zw.js +163 -0
  17. package/components/edit-item/index.cjs +11 -16
  18. package/components/edit-item/index.js +103 -87
  19. package/components/edit-option/index.cjs +108 -100
  20. package/components/edit-option/index.js +330 -294
  21. package/components/edit-option/item-configs/area-chart.config.d.ts +146 -0
  22. package/components/edit-option/item-configs/bar-chart.config.d.ts +23 -2
  23. package/components/edit-option/item-configs/bubble-chart.config.d.ts +90 -0
  24. package/components/edit-option/item-configs/circle-pack-chart.config.d.ts +35 -0
  25. package/components/edit-option/item-configs/column-chart.config.d.ts +17 -2
  26. package/components/edit-option/item-configs/donut-chart.config.d.ts +4 -0
  27. package/components/edit-option/item-configs/dropdown-filter.config.d.ts +74 -0
  28. package/components/edit-option/item-configs/line-chart.config.d.ts +16 -0
  29. package/components/edit-option/item-configs/ohlc-chart.config.d.ts +37 -0
  30. package/components/edit-option/item-configs/radar-chart.config.d.ts +122 -0
  31. package/components/edit-option/item-configs/sankey-diagram.config.d.ts +46 -0
  32. package/components/edit-option/item-configs/search-filter.config.d.ts +40 -0
  33. package/components/edit-option/item-configs/slicer-filter.config.d.ts +136 -0
  34. package/components/edit-option/item-configs/slider-filter.config.d.ts +45 -0
  35. package/components/edit-option/item-configs/sunburst-chart.config.d.ts +51 -0
  36. package/components/edit-option/item-configs/treemap-chart.config.d.ts +103 -0
  37. package/components/edit-option/item-configs/wordcloud-chart.config.d.ts +46 -0
  38. package/components/{en-GB-C9t4MSgD.js → en-GB-BtLbN8o_.js} +1 -1
  39. package/components/{en-GB-D5Tvhki6.cjs → en-GB-Dd11ROdW.cjs} +1 -1
  40. package/components/{en-DlRadzUI.js → formatter-CQDms6fU.js} +258 -267
  41. package/components/{en-BnVnZvpC.cjs → formatter-DiJYkB6b.cjs} +1 -1
  42. package/components/index-DXyAeBh6.cjs +20 -0
  43. package/components/index-Di00QW2f.js +113 -0
  44. package/components/index.cjs +1 -1
  45. package/components/index.js +8 -6
  46. package/components/{line-chart.config-DBw4A3Rf.js → line-chart.config-BB_thZtA.js} +3 -2
  47. package/components/line-chart.config-i2233s5F.cjs +20 -0
  48. package/components/ohlc-chart.config-BLlRV_bs.cjs +20 -0
  49. package/components/ohlc-chart.config-D9npwajt.js +75 -0
  50. package/components/radar-chart.config-DPPlIptA.cjs +20 -0
  51. package/components/radar-chart.config-DfID1TZ-.js +164 -0
  52. package/components/sankey-diagram.config-BVjCEw5M.js +138 -0
  53. package/components/sankey-diagram.config-CG5S1OI3.cjs +20 -0
  54. package/components/search-filter.config-C9CoGS9f.cjs +20 -0
  55. package/components/search-filter.config-baX2Vdul.js +111 -0
  56. package/components/slicer-filter.config-A3YK_KZn.js +211 -0
  57. package/components/slicer-filter.config-DQunaj8q.cjs +20 -0
  58. package/components/slider-filter.config-C-zvfTNl.js +98 -0
  59. package/components/slider-filter.config-DF_sAElS.cjs +20 -0
  60. package/components/sunburst-chart.config-CEfAd1RQ.cjs +20 -0
  61. package/components/sunburst-chart.config-VZqDthcz.js +139 -0
  62. package/components/treemap-chart.config-BalwwrhW.js +214 -0
  63. package/components/treemap-chart.config-D6H5Hf2B.cjs +20 -0
  64. package/components/utils.cjs +1 -1
  65. package/components/utils.js +69 -6
  66. package/components/wordcloud-chart.config-BLvcDvxT.cjs +20 -0
  67. package/components/wordcloud-chart.config-CQs8YFfd.js +89 -0
  68. package/custom-elements.json +182 -0
  69. package/package.json +4 -9
  70. package/utils/index.d.ts +1 -0
  71. package/utils/switch-item/index.d.ts +18 -0
  72. package/components/bar-chart.config--VDhFN4d.cjs +0 -20
  73. package/components/column-chart.config-BmhmcBZJ.cjs +0 -20
  74. package/components/donut-chart.config-DLWJUlHx.cjs +0 -20
  75. package/components/line-chart.config-cvwDhvSq.cjs +0 -20
  76. /package/components/{slot-configs.cjs → item-slots-configs.cjs} +0 -0
  77. /package/components/{slot-configs.js → item-slots-configs.js} +0 -0
@@ -0,0 +1,164 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 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
+ const a = (n, o) => {
21
+ var l, r;
22
+ return ((r = (l = o == null ? void 0 : o.find((i) => (i == null ? void 0 : i.name) === "color")) == null ? void 0 : l.content) == null ? void 0 : r.length) > 0;
23
+ }, t = (n, o) => {
24
+ var l, r;
25
+ return o && o.length > 0 ? !(((r = (l = o == null ? void 0 : o.find((i) => (i == null ? void 0 : i.name) === "color")) == null ? void 0 : l.content) == null ? void 0 : r.length) > 0) : !0;
26
+ }, e = [
27
+ {
28
+ key: "general",
29
+ type: "group",
30
+ open: !0,
31
+ children: [
32
+ {
33
+ key: "display.title",
34
+ control: {
35
+ type: "switch",
36
+ label: "Title",
37
+ default: !0
38
+ }
39
+ },
40
+ {
41
+ key: "display.legend",
42
+ control: {
43
+ type: "switch",
44
+ label: "Legend",
45
+ default: !0
46
+ },
47
+ visibleIf: a
48
+ }
49
+ ]
50
+ },
51
+ {
52
+ key: "radar",
53
+ type: "group",
54
+ open: !0,
55
+ children: [
56
+ {
57
+ key: "color",
58
+ control: {
59
+ type: "color-picker",
60
+ label: "Color",
61
+ default: (n, o, l) => {
62
+ var r;
63
+ return (l == null ? void 0 : l.mainColor) ?? ((r = l == null ? void 0 : l.colors) == null ? void 0 : r[0]);
64
+ },
65
+ extraLabel: (n, o, l) => {
66
+ var i;
67
+ const r = (l == null ? void 0 : l.mainColor) ?? ((i = l == null ? void 0 : l.colors) == null ? void 0 : i[0]);
68
+ if (r && n.color !== r)
69
+ return "reset";
70
+ },
71
+ extraLabelHasClickAction: (n, o, l) => {
72
+ var i;
73
+ const r = (l == null ? void 0 : l.mainColor) ?? ((i = l == null ? void 0 : l.colors) == null ? void 0 : i[0]);
74
+ return !!(r && n.color !== r);
75
+ },
76
+ extraLabelClickAction: (n, o, l) => {
77
+ var i;
78
+ const r = { ...n };
79
+ return r.color = (l == null ? void 0 : l.mainColor) ?? ((i = l == null ? void 0 : l.colors) == null ? void 0 : i[0]), {
80
+ value: r.color,
81
+ options: r
82
+ };
83
+ }
84
+ },
85
+ visibleIf: t
86
+ },
87
+ {
88
+ key: "fillOpacity",
89
+ control: {
90
+ type: "slider",
91
+ label: "Fill opacity",
92
+ default: 0.05,
93
+ min: 0,
94
+ max: 0.7,
95
+ step: 0.01
96
+ }
97
+ },
98
+ {
99
+ key: "interpolation",
100
+ control: {
101
+ type: "picker",
102
+ label: "Interpolation",
103
+ default: "linear",
104
+ enum: ["linear", "rounded"]
105
+ }
106
+ },
107
+ {
108
+ key: "display.points",
109
+ control: {
110
+ type: "switch",
111
+ label: "Show points",
112
+ default: !1
113
+ }
114
+ },
115
+ {
116
+ key: "pointSize",
117
+ control: {
118
+ type: "slider",
119
+ label: "Point size",
120
+ default: 3,
121
+ min: 2,
122
+ max: 7,
123
+ step: 1
124
+ },
125
+ visibleIf: (n) => {
126
+ var o;
127
+ return (o = n == null ? void 0 : n.display) == null ? void 0 : o.points;
128
+ }
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ key: "legend",
134
+ type: "group",
135
+ open: !1,
136
+ children: [
137
+ {
138
+ key: "legend.position",
139
+ control: {
140
+ label: "Position",
141
+ type: "position-picker",
142
+ default: "top-right",
143
+ enum: [
144
+ "top-left",
145
+ "top",
146
+ "top-right",
147
+ "right",
148
+ "bottom-right",
149
+ "bottom",
150
+ "bottom-left",
151
+ "left"
152
+ ]
153
+ }
154
+ }
155
+ ],
156
+ visibleIf: (n, o) => {
157
+ var l;
158
+ return ((l = n == null ? void 0 : n.display) == null ? void 0 : l.legend) !== !1 && a(n, o);
159
+ }
160
+ }
161
+ ];
162
+ export {
163
+ e as default
164
+ };
@@ -0,0 +1,138 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 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
+ const c = [
21
+ {
22
+ key: "general",
23
+ type: "group",
24
+ open: !0,
25
+ children: [
26
+ {
27
+ key: "display.title",
28
+ control: {
29
+ type: "switch",
30
+ label: "Title",
31
+ default: !0
32
+ }
33
+ },
34
+ {
35
+ key: "alignment",
36
+ control: {
37
+ type: "picker",
38
+ label: "Node alignment",
39
+ default: "justify",
40
+ enum: ["justify", "left", "right", "center"]
41
+ }
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ key: "nodes",
47
+ type: "group",
48
+ open: !0,
49
+ children: [
50
+ {
51
+ key: "nodeSorting",
52
+ control: {
53
+ type: "picker",
54
+ label: "Sorting",
55
+ default: "default",
56
+ enum: ["default", "asc", "desc"]
57
+ }
58
+ },
59
+ {
60
+ key: "labels.display",
61
+ control: {
62
+ type: "switch",
63
+ label: "Show node label",
64
+ default: !0
65
+ }
66
+ },
67
+ {
68
+ key: "labels.value",
69
+ control: {
70
+ type: "switch",
71
+ label: "Show node value",
72
+ default: !1
73
+ }
74
+ },
75
+ {
76
+ key: "colors.byCategory",
77
+ control: {
78
+ type: "switch",
79
+ label: "Use node category color",
80
+ default: !0
81
+ }
82
+ },
83
+ {
84
+ key: "colors.nodeColor",
85
+ control: {
86
+ type: "color-picker",
87
+ default: (r, n, o) => {
88
+ var l;
89
+ return (o == null ? void 0 : o.mainColor) ?? ((l = o == null ? void 0 : o.colors) == null ? void 0 : l[0]);
90
+ },
91
+ extraLabel: (r, n, o) => {
92
+ var a;
93
+ const l = (o == null ? void 0 : o.mainColor) ?? ((a = o == null ? void 0 : o.colors) == null ? void 0 : a[0]);
94
+ if (l && r.color !== l)
95
+ return "reset";
96
+ },
97
+ extraLabelHasClickAction: (r, n, o) => {
98
+ var a;
99
+ const l = (o == null ? void 0 : o.mainColor) ?? ((a = o == null ? void 0 : o.colors) == null ? void 0 : a[0]);
100
+ return !!(l && r.color !== l);
101
+ },
102
+ extraLabelClickAction: (r, n, o) => {
103
+ var a;
104
+ const l = { ...r };
105
+ return l.color = (o == null ? void 0 : o.mainColor) ?? ((a = o == null ? void 0 : o.colors) == null ? void 0 : a[0]), {
106
+ value: l.color,
107
+ options: l
108
+ };
109
+ }
110
+ },
111
+ visibleIf: (r, n) => {
112
+ var o;
113
+ return ((o = r == null ? void 0 : r.colors) == null ? void 0 : o.byCategory) === !1;
114
+ }
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ key: "links",
120
+ type: "group",
121
+ open: !0,
122
+ children: [
123
+ {
124
+ key: "colors.linkColor",
125
+ control: {
126
+ type: "picker",
127
+ label: "Color",
128
+ default: "gradient",
129
+ // TODO: make dependent of use node category color
130
+ enum: ["gradient", "source", "target", "none"]
131
+ }
132
+ }
133
+ ]
134
+ }
135
+ ];
136
+ export {
137
+ c as default
138
+ };
@@ -0,0 +1,20 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 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=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"alignment",control:{type:"picker",label:"Node alignment",default:"justify",enum:["justify","left","right","center"]}}]},{key:"nodes",type:"group",open:!0,children:[{key:"nodeSorting",control:{type:"picker",label:"Sorting",default:"default",enum:["default","asc","desc"]}},{key:"labels.display",control:{type:"switch",label:"Show node label",default:!0}},{key:"labels.value",control:{type:"switch",label:"Show node value",default:!1}},{key:"colors.byCategory",control:{type:"switch",label:"Use node category color",default:!0}},{key:"colors.nodeColor",control:{type:"color-picker",default:(r,a,o)=>{var l;return(o==null?void 0:o.mainColor)??((l=o==null?void 0:o.colors)==null?void 0:l[0])},extraLabel:(r,a,o)=>{var n;const l=(o==null?void 0:o.mainColor)??((n=o==null?void 0:o.colors)==null?void 0:n[0]);if(l&&r.color!==l)return"reset"},extraLabelHasClickAction:(r,a,o)=>{var n;const l=(o==null?void 0:o.mainColor)??((n=o==null?void 0:o.colors)==null?void 0:n[0]);return!!(l&&r.color!==l)},extraLabelClickAction:(r,a,o)=>{var n;const l={...r};return l.color=(o==null?void 0:o.mainColor)??((n=o==null?void 0:o.colors)==null?void 0:n[0]),{value:l.color,options:l}}},visibleIf:(r,a)=>{var o;return((o=r==null?void 0:r.colors)==null?void 0:o.byCategory)===!1}}]},{key:"links",type:"group",open:!0,children:[{key:"colors.linkColor",control:{type:"picker",label:"Color",default:"gradient",enum:["gradient","source","target","none"]}}]}];exports.default=t;
@@ -0,0 +1,20 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 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=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!1}},{key:"display.label",control:{type:"switch",label:"Label",default:!0}},{key:"applyFiltersWithButton",control:{type:"switch",label:"Filter with Apply button",default:!1}}]},{key:"placeholder",type:"group",open:!0,children:[{key:"display.placeholder",control:{type:"switch",label:"Display",default:!0}},{key:"placeholder",control:{type:"multi-language-field",label:"Text",placeholder:"Search..."},visibleIf:e=>{var l;return((l=e==null?void 0:e.display)==null?void 0:l.placeholder)!==!1}}]},{key:"padding",type:"group",open:!0,children:[{key:"padding.left",control:{label:"Padding left",type:"number-field",default:16,min:0,max:100,step:1}},{key:"padding.right",control:{label:"Padding right",type:"number-field",default:16,min:0,max:100,step:1}}]}];exports.default=t;
@@ -0,0 +1,111 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 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
+ const t = [
21
+ {
22
+ key: "general",
23
+ type: "group",
24
+ open: !0,
25
+ children: [
26
+ {
27
+ key: "display.title",
28
+ control: {
29
+ type: "switch",
30
+ label: "Title",
31
+ default: !1
32
+ }
33
+ },
34
+ {
35
+ key: "display.label",
36
+ control: {
37
+ type: "switch",
38
+ label: "Label",
39
+ default: !0
40
+ }
41
+ },
42
+ {
43
+ key: "applyFiltersWithButton",
44
+ control: {
45
+ type: "switch",
46
+ label: "Filter with Apply button",
47
+ default: !1
48
+ }
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ key: "placeholder",
54
+ type: "group",
55
+ open: !0,
56
+ children: [
57
+ {
58
+ key: "display.placeholder",
59
+ control: {
60
+ type: "switch",
61
+ label: "Display",
62
+ default: !0
63
+ }
64
+ },
65
+ {
66
+ key: "placeholder",
67
+ control: {
68
+ type: "multi-language-field",
69
+ label: "Text",
70
+ placeholder: "Search..."
71
+ },
72
+ visibleIf: (e) => {
73
+ var l;
74
+ return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.placeholder) !== !1;
75
+ }
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ key: "padding",
81
+ type: "group",
82
+ open: !0,
83
+ children: [
84
+ {
85
+ key: "padding.left",
86
+ control: {
87
+ label: "Padding left",
88
+ type: "number-field",
89
+ default: 16,
90
+ min: 0,
91
+ max: 100,
92
+ step: 1
93
+ }
94
+ },
95
+ {
96
+ key: "padding.right",
97
+ control: {
98
+ label: "Padding right",
99
+ type: "number-field",
100
+ default: 16,
101
+ min: 0,
102
+ max: 100,
103
+ step: 1
104
+ }
105
+ }
106
+ ]
107
+ }
108
+ ];
109
+ export {
110
+ t as default
111
+ };
@@ -0,0 +1,211 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 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
+ const o = [
21
+ {
22
+ key: "general",
23
+ type: "group",
24
+ open: !0,
25
+ children: [
26
+ {
27
+ key: "display.title",
28
+ control: {
29
+ type: "switch",
30
+ label: "Title",
31
+ default: !1
32
+ }
33
+ },
34
+ {
35
+ key: "display.search",
36
+ control: {
37
+ type: "switch",
38
+ label: "Search",
39
+ default: !0
40
+ }
41
+ },
42
+ {
43
+ key: "multiselect",
44
+ control: {
45
+ type: "switch",
46
+ label: "Multiselect",
47
+ default: !1
48
+ }
49
+ },
50
+ {
51
+ key: "applyFiltersWithButton",
52
+ control: {
53
+ type: "switch",
54
+ label: "Filter with Apply button",
55
+ default: !1
56
+ },
57
+ visibleIf: (l) => (l == null ? void 0 : l.multiselect) !== !1
58
+ },
59
+ {
60
+ key: "display.all",
61
+ control: {
62
+ type: "switch",
63
+ label: "Show 'select all'",
64
+ default: !0
65
+ }
66
+ },
67
+ {
68
+ key: "mode",
69
+ control: {
70
+ type: "switch",
71
+ label: "Display as buttons",
72
+ default: !1,
73
+ fromOptionValue: (l) => l === "button",
74
+ toOptionValue: (l) => l ? "button" : "default"
75
+ }
76
+ },
77
+ {
78
+ key: "color",
79
+ control: {
80
+ type: "color-picker",
81
+ label: "Color",
82
+ default: (l, a, e) => {
83
+ var t;
84
+ return (e == null ? void 0 : e.mainColor) ?? ((t = e == null ? void 0 : e.colors) == null ? void 0 : t[0]);
85
+ },
86
+ extraLabel: (l, a, e) => {
87
+ var r;
88
+ const t = (e == null ? void 0 : e.mainColor) ?? ((r = e == null ? void 0 : e.colors) == null ? void 0 : r[0]);
89
+ if (t && l.color !== t)
90
+ return "reset";
91
+ },
92
+ extraLabelHasClickAction: (l, a, e) => {
93
+ var r;
94
+ const t = (e == null ? void 0 : e.mainColor) ?? ((r = e == null ? void 0 : e.colors) == null ? void 0 : r[0]);
95
+ return !!(t && l.color !== t);
96
+ },
97
+ extraLabelClickAction: (l, a, e) => {
98
+ var r;
99
+ const t = { ...l };
100
+ return t.color = (e == null ? void 0 : e.mainColor) ?? ((r = e == null ? void 0 : e.colors) == null ? void 0 : r[0]), {
101
+ value: t.color,
102
+ options: t
103
+ };
104
+ }
105
+ },
106
+ visibleIf: (l) => (l == null ? void 0 : l.mode) === "button"
107
+ },
108
+ {
109
+ key: "sort.direction",
110
+ control: {
111
+ type: "picker",
112
+ label: "Ordering",
113
+ default: "asc",
114
+ enum: ["asc", "desc"]
115
+ }
116
+ }
117
+ ]
118
+ },
119
+ {
120
+ key: "layout",
121
+ type: "group",
122
+ open: !0,
123
+ children: [
124
+ {
125
+ key: "layout.alignment",
126
+ control: {
127
+ type: "picker",
128
+ label: "Alignment",
129
+ default: "vertical",
130
+ enum: ["vertical", "horizontal", "table"]
131
+ }
132
+ },
133
+ {
134
+ key: "table.rowheight",
135
+ control: {
136
+ type: "number-field",
137
+ label: "Row height",
138
+ default: 24,
139
+ min: 0,
140
+ max: 999,
141
+ step: 1
142
+ },
143
+ visibleIf: (l) => {
144
+ var a;
145
+ return (l == null ? void 0 : l.mode) !== "button" && ((a = l == null ? void 0 : l.layout) == null ? void 0 : a.alignment) !== "horizontal";
146
+ }
147
+ },
148
+ {
149
+ key: "table.columns",
150
+ control: {
151
+ type: "number-field",
152
+ label: "Number of columns",
153
+ default: 2,
154
+ min: 1,
155
+ max: 10
156
+ },
157
+ visibleIf: (l) => {
158
+ var a;
159
+ return ((a = l == null ? void 0 : l.layout) == null ? void 0 : a.alignment) === "table";
160
+ }
161
+ },
162
+ {
163
+ key: "horizontal.width",
164
+ control: {
165
+ type: "number-field",
166
+ label: "Width",
167
+ default: 175,
168
+ min: 0,
169
+ max: 999,
170
+ step: 1
171
+ },
172
+ visibleIf: (l) => {
173
+ var a;
174
+ return ((a = l == null ? void 0 : l.layout) == null ? void 0 : a.alignment) === "horizontal";
175
+ }
176
+ }
177
+ ]
178
+ },
179
+ {
180
+ key: "padding",
181
+ type: "group",
182
+ open: !1,
183
+ children: [
184
+ {
185
+ key: "padding.left",
186
+ control: {
187
+ label: "Padding left",
188
+ type: "number-field",
189
+ default: 16,
190
+ min: 0,
191
+ max: 100,
192
+ step: 1
193
+ }
194
+ },
195
+ {
196
+ key: "padding.right",
197
+ control: {
198
+ label: "Padding right",
199
+ type: "number-field",
200
+ default: 16,
201
+ min: 0,
202
+ max: 100,
203
+ step: 1
204
+ }
205
+ }
206
+ ]
207
+ }
208
+ ];
209
+ export {
210
+ o as default
211
+ };
@@ -0,0 +1,20 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2024 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 o=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!1}},{key:"display.search",control:{type:"switch",label:"Search",default:!0}},{key:"multiselect",control:{type:"switch",label:"Multiselect",default:!1}},{key:"applyFiltersWithButton",control:{type:"switch",label:"Filter with Apply button",default:!1},visibleIf:l=>(l==null?void 0:l.multiselect)!==!1},{key:"display.all",control:{type:"switch",label:"Show 'select all'",default:!0}},{key:"mode",control:{type:"switch",label:"Display as buttons",default:!1,fromOptionValue:l=>l==="button",toOptionValue:l=>l?"button":"default"}},{key:"color",control:{type:"color-picker",label:"Color",default:(l,a,e)=>{var t;return(e==null?void 0:e.mainColor)??((t=e==null?void 0:e.colors)==null?void 0:t[0])},extraLabel:(l,a,e)=>{var r;const t=(e==null?void 0:e.mainColor)??((r=e==null?void 0:e.colors)==null?void 0:r[0]);if(t&&l.color!==t)return"reset"},extraLabelHasClickAction:(l,a,e)=>{var r;const t=(e==null?void 0:e.mainColor)??((r=e==null?void 0:e.colors)==null?void 0:r[0]);return!!(t&&l.color!==t)},extraLabelClickAction:(l,a,e)=>{var r;const t={...l};return t.color=(e==null?void 0:e.mainColor)??((r=e==null?void 0:e.colors)==null?void 0:r[0]),{value:t.color,options:t}}},visibleIf:l=>(l==null?void 0:l.mode)==="button"},{key:"sort.direction",control:{type:"picker",label:"Ordering",default:"asc",enum:["asc","desc"]}}]},{key:"layout",type:"group",open:!0,children:[{key:"layout.alignment",control:{type:"picker",label:"Alignment",default:"vertical",enum:["vertical","horizontal","table"]}},{key:"table.rowheight",control:{type:"number-field",label:"Row height",default:24,min:0,max:999,step:1},visibleIf:l=>{var a;return(l==null?void 0:l.mode)!=="button"&&((a=l==null?void 0:l.layout)==null?void 0:a.alignment)!=="horizontal"}},{key:"table.columns",control:{type:"number-field",label:"Number of columns",default:2,min:1,max:10},visibleIf:l=>{var a;return((a=l==null?void 0:l.layout)==null?void 0:a.alignment)==="table"}},{key:"horizontal.width",control:{type:"number-field",label:"Width",default:175,min:0,max:999,step:1},visibleIf:l=>{var a;return((a=l==null?void 0:l.layout)==null?void 0:a.alignment)==="horizontal"}}]},{key:"padding",type:"group",open:!1,children:[{key:"padding.left",control:{label:"Padding left",type:"number-field",default:16,min:0,max:100,step:1}},{key:"padding.right",control:{label:"Padding right",type:"number-field",default:16,min:0,max:100,step:1}}]}];exports.default=o;