@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.
- package/components/area-chart.config-Ba68ZiSX.js +198 -0
- package/components/area-chart.config-Vo0u3UK8.cjs +20 -0
- package/components/{column-chart.config-BYIX4E6J.js → bar-chart.config-CF1i1Imw.js} +41 -14
- package/components/bar-chart.config-YLP38HOE.cjs +20 -0
- package/components/bubble-chart.config-1MrC55Nb.js +142 -0
- package/components/bubble-chart.config-bQBq1s3C.cjs +20 -0
- package/components/circle-pack-chart.config-BOlrxRJA.cjs +20 -0
- package/components/circle-pack-chart.config-Bbm2bTgy.js +110 -0
- package/components/{bar-chart.config-BYIX4E6J.js → column-chart.config-BT1QH4BI.js} +40 -14
- package/components/column-chart.config-CppyNukh.cjs +20 -0
- package/components/display-settings-datetime/index.cjs +25 -25
- package/components/display-settings-datetime/index.js +66 -59
- package/components/donut-chart.config-B_38UAqp.cjs +20 -0
- package/components/{donut-chart.config-3DhKiSSM.js → donut-chart.config-DuJFyp4z.js} +4 -2
- package/components/dropdown-filter.config-BPBxTuLQ.cjs +20 -0
- package/components/dropdown-filter.config-Drv-A4zw.js +163 -0
- package/components/edit-item/index.cjs +11 -16
- package/components/edit-item/index.js +103 -87
- package/components/edit-option/index.cjs +108 -100
- package/components/edit-option/index.js +330 -294
- package/components/edit-option/item-configs/area-chart.config.d.ts +146 -0
- package/components/edit-option/item-configs/bar-chart.config.d.ts +23 -2
- package/components/edit-option/item-configs/bubble-chart.config.d.ts +90 -0
- package/components/edit-option/item-configs/circle-pack-chart.config.d.ts +35 -0
- package/components/edit-option/item-configs/column-chart.config.d.ts +17 -2
- package/components/edit-option/item-configs/donut-chart.config.d.ts +4 -0
- package/components/edit-option/item-configs/dropdown-filter.config.d.ts +74 -0
- package/components/edit-option/item-configs/line-chart.config.d.ts +16 -0
- package/components/edit-option/item-configs/ohlc-chart.config.d.ts +37 -0
- package/components/edit-option/item-configs/radar-chart.config.d.ts +122 -0
- package/components/edit-option/item-configs/sankey-diagram.config.d.ts +46 -0
- package/components/edit-option/item-configs/search-filter.config.d.ts +40 -0
- package/components/edit-option/item-configs/slicer-filter.config.d.ts +136 -0
- package/components/edit-option/item-configs/slider-filter.config.d.ts +45 -0
- package/components/edit-option/item-configs/sunburst-chart.config.d.ts +51 -0
- package/components/edit-option/item-configs/treemap-chart.config.d.ts +103 -0
- package/components/edit-option/item-configs/wordcloud-chart.config.d.ts +46 -0
- package/components/{en-GB-C9t4MSgD.js → en-GB-BtLbN8o_.js} +1 -1
- package/components/{en-GB-D5Tvhki6.cjs → en-GB-Dd11ROdW.cjs} +1 -1
- package/components/{en-DlRadzUI.js → formatter-CQDms6fU.js} +258 -267
- package/components/{en-BnVnZvpC.cjs → formatter-DiJYkB6b.cjs} +1 -1
- package/components/index-DXyAeBh6.cjs +20 -0
- package/components/index-Di00QW2f.js +113 -0
- package/components/index.cjs +1 -1
- package/components/index.js +8 -6
- package/components/{line-chart.config-DBw4A3Rf.js → line-chart.config-BB_thZtA.js} +3 -2
- package/components/line-chart.config-i2233s5F.cjs +20 -0
- package/components/ohlc-chart.config-BLlRV_bs.cjs +20 -0
- package/components/ohlc-chart.config-D9npwajt.js +75 -0
- package/components/radar-chart.config-DPPlIptA.cjs +20 -0
- package/components/radar-chart.config-DfID1TZ-.js +164 -0
- package/components/sankey-diagram.config-BVjCEw5M.js +138 -0
- package/components/sankey-diagram.config-CG5S1OI3.cjs +20 -0
- package/components/search-filter.config-C9CoGS9f.cjs +20 -0
- package/components/search-filter.config-baX2Vdul.js +111 -0
- package/components/slicer-filter.config-A3YK_KZn.js +211 -0
- package/components/slicer-filter.config-DQunaj8q.cjs +20 -0
- package/components/slider-filter.config-C-zvfTNl.js +98 -0
- package/components/slider-filter.config-DF_sAElS.cjs +20 -0
- package/components/sunburst-chart.config-CEfAd1RQ.cjs +20 -0
- package/components/sunburst-chart.config-VZqDthcz.js +139 -0
- package/components/treemap-chart.config-BalwwrhW.js +214 -0
- package/components/treemap-chart.config-D6H5Hf2B.cjs +20 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +69 -6
- package/components/wordcloud-chart.config-BLvcDvxT.cjs +20 -0
- package/components/wordcloud-chart.config-CQs8YFfd.js +89 -0
- package/custom-elements.json +182 -0
- package/package.json +4 -9
- package/utils/index.d.ts +1 -0
- package/utils/switch-item/index.d.ts +18 -0
- package/components/bar-chart.config--VDhFN4d.cjs +0 -20
- package/components/column-chart.config-BmhmcBZJ.cjs +0 -20
- package/components/donut-chart.config-DLWJUlHx.cjs +0 -20
- package/components/line-chart.config-cvwDhvSq.cjs +0 -20
- /package/components/{slot-configs.cjs → item-slots-configs.cjs} +0 -0
- /package/components/{slot-configs.js → item-slots-configs.js} +0 -0
@@ -0,0 +1,89 @@
|
|
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 n = [
|
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: "categories.colored",
|
36
|
+
control: {
|
37
|
+
type: "switch",
|
38
|
+
label: "Word color by category",
|
39
|
+
default: !0
|
40
|
+
}
|
41
|
+
},
|
42
|
+
{
|
43
|
+
key: "color",
|
44
|
+
control: {
|
45
|
+
type: "color-picker",
|
46
|
+
default: (l, c, o) => {
|
47
|
+
var r;
|
48
|
+
return (o == null ? void 0 : o.mainColor) ?? ((r = o == null ? void 0 : o.colors) == null ? void 0 : r[0]);
|
49
|
+
},
|
50
|
+
extraLabel: (l, c, o) => {
|
51
|
+
var a;
|
52
|
+
const r = (o == null ? void 0 : o.mainColor) ?? ((a = o == null ? void 0 : o.colors) == null ? void 0 : a[0]);
|
53
|
+
if (r && l.color !== r)
|
54
|
+
return "reset";
|
55
|
+
},
|
56
|
+
extraLabelHasClickAction: (l, c, o) => {
|
57
|
+
var a;
|
58
|
+
const r = (o == null ? void 0 : o.mainColor) ?? ((a = o == null ? void 0 : o.colors) == null ? void 0 : a[0]);
|
59
|
+
return !!(r && l.color !== r);
|
60
|
+
},
|
61
|
+
extraLabelClickAction: (l, c, o) => {
|
62
|
+
var a;
|
63
|
+
const r = { ...l };
|
64
|
+
return r.color = (o == null ? void 0 : o.mainColor) ?? ((a = o == null ? void 0 : o.colors) == null ? void 0 : a[0]), {
|
65
|
+
value: r.color,
|
66
|
+
options: r
|
67
|
+
};
|
68
|
+
}
|
69
|
+
},
|
70
|
+
visibleIf: (l) => {
|
71
|
+
var c;
|
72
|
+
return ((c = l == null ? void 0 : l.categories) == null ? void 0 : c.colored) === !1;
|
73
|
+
}
|
74
|
+
},
|
75
|
+
{
|
76
|
+
key: "layout",
|
77
|
+
control: {
|
78
|
+
type: "radio-button-group",
|
79
|
+
label: "Layout",
|
80
|
+
default: "horizontal",
|
81
|
+
enum: ["horizontal", "random"]
|
82
|
+
}
|
83
|
+
}
|
84
|
+
]
|
85
|
+
}
|
86
|
+
];
|
87
|
+
export {
|
88
|
+
n as default
|
89
|
+
};
|
package/custom-elements.json
CHANGED
@@ -2840,6 +2840,20 @@
|
|
2840
2840
|
}
|
2841
2841
|
]
|
2842
2842
|
},
|
2843
|
+
{
|
2844
|
+
"kind": "javascript-module",
|
2845
|
+
"path": "src/components/edit-option/item-configs/area-chart.config.ts",
|
2846
|
+
"declarations": [],
|
2847
|
+
"exports": [
|
2848
|
+
{
|
2849
|
+
"kind": "js",
|
2850
|
+
"name": "default",
|
2851
|
+
"declaration": {
|
2852
|
+
"module": "src/components/edit-option/item-configs/area-chart.config.ts"
|
2853
|
+
}
|
2854
|
+
}
|
2855
|
+
]
|
2856
|
+
},
|
2843
2857
|
{
|
2844
2858
|
"kind": "javascript-module",
|
2845
2859
|
"path": "src/components/edit-option/item-configs/bar-chart.config.ts",
|
@@ -2854,6 +2868,34 @@
|
|
2854
2868
|
}
|
2855
2869
|
]
|
2856
2870
|
},
|
2871
|
+
{
|
2872
|
+
"kind": "javascript-module",
|
2873
|
+
"path": "src/components/edit-option/item-configs/bubble-chart.config.ts",
|
2874
|
+
"declarations": [],
|
2875
|
+
"exports": [
|
2876
|
+
{
|
2877
|
+
"kind": "js",
|
2878
|
+
"name": "default",
|
2879
|
+
"declaration": {
|
2880
|
+
"module": "src/components/edit-option/item-configs/bubble-chart.config.ts"
|
2881
|
+
}
|
2882
|
+
}
|
2883
|
+
]
|
2884
|
+
},
|
2885
|
+
{
|
2886
|
+
"kind": "javascript-module",
|
2887
|
+
"path": "src/components/edit-option/item-configs/circle-pack-chart.config.ts",
|
2888
|
+
"declarations": [],
|
2889
|
+
"exports": [
|
2890
|
+
{
|
2891
|
+
"kind": "js",
|
2892
|
+
"name": "default",
|
2893
|
+
"declaration": {
|
2894
|
+
"module": "src/components/edit-option/item-configs/circle-pack-chart.config.ts"
|
2895
|
+
}
|
2896
|
+
}
|
2897
|
+
]
|
2898
|
+
},
|
2857
2899
|
{
|
2858
2900
|
"kind": "javascript-module",
|
2859
2901
|
"path": "src/components/edit-option/item-configs/column-chart.config.ts",
|
@@ -2882,6 +2924,20 @@
|
|
2882
2924
|
}
|
2883
2925
|
]
|
2884
2926
|
},
|
2927
|
+
{
|
2928
|
+
"kind": "javascript-module",
|
2929
|
+
"path": "src/components/edit-option/item-configs/dropdown-filter.config.ts",
|
2930
|
+
"declarations": [],
|
2931
|
+
"exports": [
|
2932
|
+
{
|
2933
|
+
"kind": "js",
|
2934
|
+
"name": "default",
|
2935
|
+
"declaration": {
|
2936
|
+
"module": "src/components/edit-option/item-configs/dropdown-filter.config.ts"
|
2937
|
+
}
|
2938
|
+
}
|
2939
|
+
]
|
2940
|
+
},
|
2885
2941
|
{
|
2886
2942
|
"kind": "javascript-module",
|
2887
2943
|
"path": "src/components/edit-option/item-configs/imageobject.config.ts",
|
@@ -2910,6 +2966,90 @@
|
|
2910
2966
|
}
|
2911
2967
|
]
|
2912
2968
|
},
|
2969
|
+
{
|
2970
|
+
"kind": "javascript-module",
|
2971
|
+
"path": "src/components/edit-option/item-configs/ohlc-chart.config.ts",
|
2972
|
+
"declarations": [],
|
2973
|
+
"exports": [
|
2974
|
+
{
|
2975
|
+
"kind": "js",
|
2976
|
+
"name": "default",
|
2977
|
+
"declaration": {
|
2978
|
+
"module": "src/components/edit-option/item-configs/ohlc-chart.config.ts"
|
2979
|
+
}
|
2980
|
+
}
|
2981
|
+
]
|
2982
|
+
},
|
2983
|
+
{
|
2984
|
+
"kind": "javascript-module",
|
2985
|
+
"path": "src/components/edit-option/item-configs/radar-chart.config.ts",
|
2986
|
+
"declarations": [],
|
2987
|
+
"exports": [
|
2988
|
+
{
|
2989
|
+
"kind": "js",
|
2990
|
+
"name": "default",
|
2991
|
+
"declaration": {
|
2992
|
+
"module": "src/components/edit-option/item-configs/radar-chart.config.ts"
|
2993
|
+
}
|
2994
|
+
}
|
2995
|
+
]
|
2996
|
+
},
|
2997
|
+
{
|
2998
|
+
"kind": "javascript-module",
|
2999
|
+
"path": "src/components/edit-option/item-configs/sankey-diagram.config.ts",
|
3000
|
+
"declarations": [],
|
3001
|
+
"exports": [
|
3002
|
+
{
|
3003
|
+
"kind": "js",
|
3004
|
+
"name": "default",
|
3005
|
+
"declaration": {
|
3006
|
+
"module": "src/components/edit-option/item-configs/sankey-diagram.config.ts"
|
3007
|
+
}
|
3008
|
+
}
|
3009
|
+
]
|
3010
|
+
},
|
3011
|
+
{
|
3012
|
+
"kind": "javascript-module",
|
3013
|
+
"path": "src/components/edit-option/item-configs/search-filter.config.ts",
|
3014
|
+
"declarations": [],
|
3015
|
+
"exports": [
|
3016
|
+
{
|
3017
|
+
"kind": "js",
|
3018
|
+
"name": "default",
|
3019
|
+
"declaration": {
|
3020
|
+
"module": "src/components/edit-option/item-configs/search-filter.config.ts"
|
3021
|
+
}
|
3022
|
+
}
|
3023
|
+
]
|
3024
|
+
},
|
3025
|
+
{
|
3026
|
+
"kind": "javascript-module",
|
3027
|
+
"path": "src/components/edit-option/item-configs/slicer-filter.config.ts",
|
3028
|
+
"declarations": [],
|
3029
|
+
"exports": [
|
3030
|
+
{
|
3031
|
+
"kind": "js",
|
3032
|
+
"name": "default",
|
3033
|
+
"declaration": {
|
3034
|
+
"module": "src/components/edit-option/item-configs/slicer-filter.config.ts"
|
3035
|
+
}
|
3036
|
+
}
|
3037
|
+
]
|
3038
|
+
},
|
3039
|
+
{
|
3040
|
+
"kind": "javascript-module",
|
3041
|
+
"path": "src/components/edit-option/item-configs/slider-filter.config.ts",
|
3042
|
+
"declarations": [],
|
3043
|
+
"exports": [
|
3044
|
+
{
|
3045
|
+
"kind": "js",
|
3046
|
+
"name": "default",
|
3047
|
+
"declaration": {
|
3048
|
+
"module": "src/components/edit-option/item-configs/slider-filter.config.ts"
|
3049
|
+
}
|
3050
|
+
}
|
3051
|
+
]
|
3052
|
+
},
|
2913
3053
|
{
|
2914
3054
|
"kind": "javascript-module",
|
2915
3055
|
"path": "src/components/edit-option/item-configs/spacer.config.ts",
|
@@ -2924,6 +3064,20 @@
|
|
2924
3064
|
}
|
2925
3065
|
]
|
2926
3066
|
},
|
3067
|
+
{
|
3068
|
+
"kind": "javascript-module",
|
3069
|
+
"path": "src/components/edit-option/item-configs/sunburst-chart.config.ts",
|
3070
|
+
"declarations": [],
|
3071
|
+
"exports": [
|
3072
|
+
{
|
3073
|
+
"kind": "js",
|
3074
|
+
"name": "default",
|
3075
|
+
"declaration": {
|
3076
|
+
"module": "src/components/edit-option/item-configs/sunburst-chart.config.ts"
|
3077
|
+
}
|
3078
|
+
}
|
3079
|
+
]
|
3080
|
+
},
|
2927
3081
|
{
|
2928
3082
|
"kind": "javascript-module",
|
2929
3083
|
"path": "src/components/edit-option/item-configs/textobject.config.ts",
|
@@ -2938,6 +3092,20 @@
|
|
2938
3092
|
}
|
2939
3093
|
]
|
2940
3094
|
},
|
3095
|
+
{
|
3096
|
+
"kind": "javascript-module",
|
3097
|
+
"path": "src/components/edit-option/item-configs/treemap-chart.config.ts",
|
3098
|
+
"declarations": [],
|
3099
|
+
"exports": [
|
3100
|
+
{
|
3101
|
+
"kind": "js",
|
3102
|
+
"name": "default",
|
3103
|
+
"declaration": {
|
3104
|
+
"module": "src/components/edit-option/item-configs/treemap-chart.config.ts"
|
3105
|
+
}
|
3106
|
+
}
|
3107
|
+
]
|
3108
|
+
},
|
2941
3109
|
{
|
2942
3110
|
"kind": "javascript-module",
|
2943
3111
|
"path": "src/components/edit-option/item-configs/videoobject.config.ts",
|
@@ -2952,6 +3120,20 @@
|
|
2952
3120
|
}
|
2953
3121
|
]
|
2954
3122
|
},
|
3123
|
+
{
|
3124
|
+
"kind": "javascript-module",
|
3125
|
+
"path": "src/components/edit-option/item-configs/wordcloud-chart.config.ts",
|
3126
|
+
"declarations": [],
|
3127
|
+
"exports": [
|
3128
|
+
{
|
3129
|
+
"kind": "js",
|
3130
|
+
"name": "default",
|
3131
|
+
"declaration": {
|
3132
|
+
"module": "src/components/edit-option/item-configs/wordcloud-chart.config.ts"
|
3133
|
+
}
|
3134
|
+
}
|
3135
|
+
]
|
3136
|
+
},
|
2955
3137
|
{
|
2956
3138
|
"kind": "javascript-module",
|
2957
3139
|
"path": "src/components/edit-option/item-translations/bar-chart.en.ts",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@luzmo/analytics-components-kit",
|
3
|
-
"version": "1.0.1-alpha.
|
3
|
+
"version": "1.0.1-alpha.13",
|
4
4
|
"type": "module",
|
5
5
|
"main": "./components/index.js",
|
6
6
|
"module": "./components/index.js",
|
@@ -132,20 +132,15 @@
|
|
132
132
|
"require": "./components/slot-menu-list/index.cjs"
|
133
133
|
},
|
134
134
|
"./item-slots-configs": {
|
135
|
-
"types": "./components/item-slots-configs/index.d.ts",
|
136
|
-
"import": "./components/item-slots-configs
|
137
|
-
"require": "./components/item-slots-configs
|
135
|
+
"types": "./components/droppable-slot/item-slots-configs/index.d.ts",
|
136
|
+
"import": "./components/item-slots-configs.js",
|
137
|
+
"require": "./components/item-slots-configs.cjs"
|
138
138
|
},
|
139
139
|
"./utils": {
|
140
140
|
"types": "./utils/index.d.ts",
|
141
141
|
"import": "./components/utils.js",
|
142
142
|
"require": "./components/utils.cjs"
|
143
143
|
},
|
144
|
-
"./slots-configs": {
|
145
|
-
"types": "./components/droppable-slot/item-slots-configs/index.d.ts",
|
146
|
-
"import": "./components/item-slots-configs.js",
|
147
|
-
"require": "./components/item-slots-configs.cjs"
|
148
|
-
},
|
149
144
|
"./item-list": {
|
150
145
|
"types": "./components/item-list/index.d.ts",
|
151
146
|
"import": "./components/item-list.js",
|
package/utils/index.d.ts
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
export declare function switchItem(args: {
|
2
|
+
oldItemType: string;
|
3
|
+
newItemType: string;
|
4
|
+
slots?: any[];
|
5
|
+
options?: any;
|
6
|
+
unassignedSlots?: any;
|
7
|
+
inapplicableOptions?: any;
|
8
|
+
customItemSlotsConfigs?: {
|
9
|
+
type: string;
|
10
|
+
slotsConfig: any;
|
11
|
+
}[];
|
12
|
+
}): {
|
13
|
+
type: string;
|
14
|
+
slots: any[];
|
15
|
+
options?: any;
|
16
|
+
unassignedMeasureSlots: any[];
|
17
|
+
unassignedDimensionSlots: any[];
|
18
|
+
};
|
@@ -1,20 +0,0 @@
|
|
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 c=(l,e)=>{var r,n,o,i;if(e&&e.length>0)return((n=(r=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="legend"))==null?void 0:r.content)==null?void 0:n.length)>0||((i=(o=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="measure"))==null?void 0:o.content)==null?void 0:i.length)>1},u=(l,e)=>{var r,n,o,i;if(e&&e.length>0)return((n=(r=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="legend"))==null?void 0:r.content)==null?void 0:n.length)===0&&((i=(o=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="measure"))==null?void 0:o.content)==null?void 0:i.length)<=1},t=[{key:"general",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",default:"grouped",enum:["grouped","stacked","100"]},visibleIf:c},{type:"divider",visibleIf:c},{key:"display.title",control:{type:"switch",default:!0}},{key:"display.legend",control:{type:"switch",default:!0},visibleIf:c},{key:"display.modeOption",control:{type:"switch",default:!1},visibleIf:c},{key:"bars.label",control:{type:"picker",default:"none",enum:["none","percentage","percentageLegend","percentageCategory","percentageMax"]}},{key:"categories.colored",control:{type:"switch",default:!1},visibleIf:u},{key:"bars.roundedCorners",control:{type:"slider",default:(l,e,r)=>{var n;return(n=r==null?void 0:r.itemSpecific)==null?void 0:n.rounding},min:0,max:20,step:1,extraLabel:(l,e,r)=>{var n,o;if(typeof((n=r==null?void 0:r.itemSpecific)==null?void 0:n.rounding)=="number")return typeof((o=l==null?void 0:l.bars)==null?void 0:o.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:(l,e,r)=>{var n,o;return!(typeof((n=r==null?void 0:r.itemSpecific)==null?void 0:n.rounding)!="number"||typeof((o=l==null?void 0:l.bars)==null?void 0:o.roundedCorners)!="number")},extraLabelClickAction:(l,e,r)=>{var o;const n={...l};return(o=n==null?void 0:n.bars)==null||delete o.roundedCorners,{value:null,options:n}}}},{key:"color",control:{type:"color-picker",default:(l,e,r)=>{var n;return(r==null?void 0:r.mainColor)??((n=r==null?void 0:r.colors)==null?void 0:n[0])},extraLabel:(l,e,r)=>{var o;const n=(r==null?void 0:r.mainColor)??((o=r==null?void 0:r.colors)==null?void 0:o[0]);if(n&&l.color!==n)return"reset"},extraLabelHasClickAction:(l,e,r)=>{var o;const n=(r==null?void 0:r.mainColor)??((o=r==null?void 0:r.colors)==null?void 0:o[0]);return!!(n&&l.color!==n)},extraLabelClickAction:(l,e,r)=>{var o;const n={...l};return n.color=(r==null?void 0:r.mainColor)??((o=r==null?void 0:r.colors)==null?void 0:o[0]),{value:n.color,options:n}}},visibleIf:u}]}];exports.default=t;
|
@@ -1,20 +0,0 @@
|
|
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 c=(l,e)=>{var r,n,o,a;if(e&&e.length>0)return((n=(r=e==null?void 0:e.find(i=>(i==null?void 0:i.name)==="legend"))==null?void 0:r.content)==null?void 0:n.length)>0||((a=(o=e==null?void 0:e.find(i=>(i==null?void 0:i.name)==="measure"))==null?void 0:o.content)==null?void 0:a.length)>1},u=(l,e)=>{var r,n,o,a;if(e&&e.length>0)return((n=(r=e==null?void 0:e.find(i=>(i==null?void 0:i.name)==="legend"))==null?void 0:r.content)==null?void 0:n.length)===0&&((a=(o=e==null?void 0:e.find(i=>(i==null?void 0:i.name)==="measure"))==null?void 0:o.content)==null?void 0:a.length)<=1},t=[{key:"general",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",default:"grouped",enum:["grouped","stacked","100"]},visibleIf:c},{type:"divider",visibleIf:c},{key:"display.title",control:{type:"switch",default:!0}},{key:"display.legend",control:{type:"switch",default:!0},visibleIf:c},{key:"display.modeOption",control:{type:"switch",default:!1},visibleIf:c},{key:"bars.label",control:{type:"picker",default:"none",enum:["none","percentage","percentageLegend","percentageCategory","percentageMax"]}},{key:"categories.colored",control:{type:"switch",default:!1},visibleIf:u},{key:"bars.roundedCorners",control:{type:"slider",default:(l,e,r)=>{var n;return(n=r==null?void 0:r.itemSpecific)==null?void 0:n.rounding},min:0,max:20,step:1,extraLabel:(l,e,r)=>{var n,o;if(typeof((n=r==null?void 0:r.itemSpecific)==null?void 0:n.rounding)=="number")return typeof((o=l==null?void 0:l.bars)==null?void 0:o.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:(l,e,r)=>{var n,o;return!(typeof((n=r==null?void 0:r.itemSpecific)==null?void 0:n.rounding)!="number"||typeof((o=l==null?void 0:l.bars)==null?void 0:o.roundedCorners)!="number")},extraLabelClickAction:(l,e,r)=>{var o;const n={...l};return(o=n==null?void 0:n.bars)==null||delete o.roundedCorners,{value:null,options:n}}}},{key:"color",control:{type:"color-picker",default:(l,e,r)=>{var n;return(r==null?void 0:r.mainColor)??((n=r==null?void 0:r.colors)==null?void 0:n[0])},extraLabel:(l,e,r)=>{var o;const n=(r==null?void 0:r.mainColor)??((o=r==null?void 0:r.colors)==null?void 0:o[0]);if(n&&l.color!==n)return"reset"},extraLabelHasClickAction:(l,e,r)=>{var o;const n=(r==null?void 0:r.mainColor)??((o=r==null?void 0:r.colors)==null?void 0:o[0]);return!!(n&&l.color!==n)},extraLabelClickAction:(l,e,r)=>{var o;const n={...l};return n.color=(r==null?void 0:r.mainColor)??((o=r==null?void 0:r.colors)==null?void 0:o[0]),{value:n.color,options:n}}},visibleIf:u}]}];exports.default=t;
|
@@ -1,20 +0,0 @@
|
|
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 u=[{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",default:!0}},{key:"display.legend",control:{type:"switch",default:!0}},{key:"display.categoryLabels",control:{type:"radio-button-group",enum:["list","labels"],fromOptionValue:e=>e?"labels":"list",toOptionValue:e=>e==="labels",sideEffect:(e,n)=>(e==="labels"&&(n.display.legend=!1),n)}}]},{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:(e,n,r)=>{var l,t;if(typeof((l=r==null?void 0:r.itemSpecific)==null?void 0:l.rounding)=="number")return typeof((t=e==null?void 0:e.slices)==null?void 0:t.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:(e,n,r)=>{var l,t;return!(typeof((l=r==null?void 0:r.itemSpecific)==null?void 0:l.rounding)!="number"||typeof((t=e==null?void 0:e.slices)==null?void 0:t.roundedCorners)!="number")},extraLabelClickAction:(e,n,r)=>{var t;const l={...e};return((t=l==null?void 0:l.slices)==null?void 0:t.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:(e,n,r)=>{var l,t;if(typeof((l=r==null?void 0:r.itemSpecific)==null?void 0:l.padding)=="number")return typeof((t=e==null?void 0:e.slices)==null?void 0:t.padding)!="number"?"auto":"reset"},extraLabelHasClickAction:(e,n,r)=>{var l,t;return!(typeof((l=r==null?void 0:r.itemSpecific)==null?void 0:l.padding)!="number"||typeof((t=e==null?void 0:e.slices)==null?void 0:t.padding)!="number")},extraLabelClickAction:(e,n,r)=>{var t;const l={...e};return((t=l==null?void 0:l.slices)==null?void 0:t.padding)!==void 0&&delete l.slices.padding,{value:null,options:l}}}}]}];exports.default=u;
|
@@ -1,20 +0,0 @@
|
|
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 d=(l,e)=>{var t,a,r,i;return e&&e.length>0?((a=(t=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="legend"))==null?void 0:t.content)==null?void 0:a.length)>0||((i=(r=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="measure"))==null?void 0:r.content)==null?void 0:i.length)>1:!1},u=(l,e)=>{var t,a,r,i;return e&&e.length>0?((a=(t=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="legend"))==null?void 0:t.content)==null?void 0:a.length)===0&&((i=(r=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="measure"))==null?void 0:r.content)==null?void 0:i.length)<=1:!0},o=(l,e)=>{var t,a,r;return((r=(a=(t=e==null?void 0:e.find(i=>(i==null?void 0:i.name)==="x-axis"))==null?void 0:t.content)==null?void 0:a[0])==null?void 0:r.type)==="datetime"},c=(l,e)=>{var t,a,r,i;return((r=(a=(t=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="x-axis"))==null?void 0:t.content)==null?void 0:a[0])==null?void 0:r.type)==="datetime"&&((i=l==null?void 0:l.missingValue)==null?void 0:i.type)==="manual"},p=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{label:"Title",type:"switch",default:!0}},{key:"display.legend",control:{label:"Legend",type:"switch",default:!0},visibleIf:d},{type:"divider"},{key:"interpolation",control:{label:"Interpolation",type:"picker",default:"linear",enum:["linear","step-before","step-after","monotone"]}},{key:"missingValue.type",control:{label:"Fill missing values",type:"picker",default:"no",enum:["no","break","manual"]},visibleIf:o},{key:"missingValue.value",control:{label:"Value",type:"number-field",default:"no",min:1},visibleIf:c},{key:"color",control:{label:"Line color",type:"color-picker",default:(l,e,t)=>{var a;return(t==null?void 0:t.mainColor)??((a=t==null?void 0:t.colors)==null?void 0:a[0])}},visibleIf:u},{key:"lines.gradient",control:{label:"Line gradient",type:"switch",default:!0}},{key:"lines.strokeWidth",control:{label:"Stroke width",type:"slider",default:2,min:1,max:7,step:1}}]},{key:"markers",type:"group",open:!1,children:[{key:"markers.enabled",control:{label:"Enabled",type:"switch",default:!1}},{key:"markers.size",control:{type:"slider",label:"Size",default:4,min:2,max:10,step:1},visibleIf:l=>{var e;return(e=l==null?void 0:l.markers)==null?void 0:e.enabled}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"top-right",enum:["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]}}]}];exports.default=p;
|
File without changes
|
File without changes
|