@record-evolution/widget-navbar 1.0.8 → 1.0.10

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/README.md CHANGED
@@ -5,31 +5,33 @@ This webcomponent follows the [open-wc](https://github.com/open-wc/open-wc) reco
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm i widget-navbar
8
+ npm i @record-evolution/widget-navbar
9
9
  ```
10
10
 
11
11
  ## Usage
12
12
 
13
13
  ```html
14
14
  <script type="module">
15
- import 'widget-navbar/widget-navbar.js'
15
+ import '@record-evolution/widget-navbar/widget-navbar.js'
16
16
  </script>
17
17
 
18
- <widget-navbar></widget-navbar>
18
+ <widget-navbar-1.0.9></widget-navbar-1.0.9>
19
19
  ```
20
20
 
21
21
  ## Expected data format
22
22
 
23
+ Please take a look at the src/default-data.json to see what data is expected to make the widget show content.
24
+
23
25
  ## Tooling configs
24
26
 
25
27
  For most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project.
26
28
 
27
29
  If you customize the configuration a lot, you can consider moving them to individual files.
28
30
 
29
- ## Local Demo with `web-dev-server`
31
+ ## Local Demo with Vite
30
32
 
31
33
  ```bash
32
34
  npm start
33
35
  ```
34
36
 
35
- To run a local development server that serves the basic demo located in `demo/index.html`
37
+ To run a local development server that serves the basic demo located in `demo/index.html` at http://localhost:8000/demo/
@@ -0,0 +1,395 @@
1
+ {
2
+ "color": [
3
+ "#fc97af",
4
+ "#87f7cf",
5
+ "#f7f494",
6
+ "#72ccff",
7
+ "#f7c5a0",
8
+ "#d4a4eb",
9
+ "#d2f5a6",
10
+ "#76f2f2"
11
+ ],
12
+ "backgroundColor": "rgba(41,52,65,1)",
13
+ "textStyle": {},
14
+ "title": {
15
+ "textStyle": {
16
+ "color": "#ffffff"
17
+ },
18
+ "subtextStyle": {
19
+ "color": "#dddddd"
20
+ }
21
+ },
22
+ "line": {
23
+ "itemStyle": {
24
+ "borderWidth": "4"
25
+ },
26
+ "lineStyle": {
27
+ "width": "3"
28
+ },
29
+ "symbolSize": "0",
30
+ "symbol": "circle",
31
+ "smooth": true
32
+ },
33
+ "radar": {
34
+ "itemStyle": {
35
+ "borderWidth": "4"
36
+ },
37
+ "lineStyle": {
38
+ "width": "3"
39
+ },
40
+ "symbolSize": "0",
41
+ "symbol": "circle",
42
+ "smooth": true
43
+ },
44
+ "bar": {
45
+ "itemStyle": {
46
+ "barBorderWidth": 0,
47
+ "barBorderColor": "#ccc"
48
+ }
49
+ },
50
+ "pie": {
51
+ "itemStyle": {
52
+ "borderWidth": 0,
53
+ "borderColor": "#ccc"
54
+ }
55
+ },
56
+ "scatter": {
57
+ "itemStyle": {
58
+ "borderWidth": 0,
59
+ "borderColor": "#ccc"
60
+ }
61
+ },
62
+ "boxplot": {
63
+ "itemStyle": {
64
+ "borderWidth": 0,
65
+ "borderColor": "#ccc"
66
+ }
67
+ },
68
+ "parallel": {
69
+ "itemStyle": {
70
+ "borderWidth": 0,
71
+ "borderColor": "#ccc"
72
+ }
73
+ },
74
+ "sankey": {
75
+ "itemStyle": {
76
+ "borderWidth": 0,
77
+ "borderColor": "#ccc"
78
+ }
79
+ },
80
+ "funnel": {
81
+ "itemStyle": {
82
+ "borderWidth": 0,
83
+ "borderColor": "#ccc"
84
+ }
85
+ },
86
+ "gauge": {
87
+ "itemStyle": {
88
+ "borderWidth": 0,
89
+ "borderColor": "#ccc"
90
+ }
91
+ },
92
+ "candlestick": {
93
+ "itemStyle": {
94
+ "color": "#fc97af",
95
+ "color0": "transparent",
96
+ "borderColor": "#fc97af",
97
+ "borderColor0": "#87f7cf",
98
+ "borderWidth": "2"
99
+ }
100
+ },
101
+ "graph": {
102
+ "itemStyle": {
103
+ "borderWidth": 0,
104
+ "borderColor": "#ccc"
105
+ },
106
+ "lineStyle": {
107
+ "width": "1",
108
+ "color": "#ffffff"
109
+ },
110
+ "symbolSize": "0",
111
+ "symbol": "circle",
112
+ "smooth": true,
113
+ "color": [
114
+ "#fc97af",
115
+ "#87f7cf",
116
+ "#f7f494",
117
+ "#72ccff",
118
+ "#f7c5a0",
119
+ "#d4a4eb",
120
+ "#d2f5a6",
121
+ "#76f2f2"
122
+ ],
123
+ "label": {
124
+ "color": "#293441"
125
+ }
126
+ },
127
+ "map": {
128
+ "itemStyle": {
129
+ "areaColor": "#f3f3f3",
130
+ "borderColor": "#999999",
131
+ "borderWidth": 0.5
132
+ },
133
+ "label": {
134
+ "color": "#893448"
135
+ },
136
+ "emphasis": {
137
+ "itemStyle": {
138
+ "areaColor": "rgba(255,178,72,1)",
139
+ "borderColor": "#eb8146",
140
+ "borderWidth": 1
141
+ },
142
+ "label": {
143
+ "color": "rgb(137,52,72)"
144
+ }
145
+ }
146
+ },
147
+ "geo": {
148
+ "itemStyle": {
149
+ "areaColor": "#f3f3f3",
150
+ "borderColor": "#999999",
151
+ "borderWidth": 0.5
152
+ },
153
+ "label": {
154
+ "color": "#893448"
155
+ },
156
+ "emphasis": {
157
+ "itemStyle": {
158
+ "areaColor": "rgba(255,178,72,1)",
159
+ "borderColor": "#eb8146",
160
+ "borderWidth": 1
161
+ },
162
+ "label": {
163
+ "color": "rgb(137,52,72)"
164
+ }
165
+ }
166
+ },
167
+ "categoryAxis": {
168
+ "axisLine": {
169
+ "show": true,
170
+ "lineStyle": {
171
+ "color": "#666666"
172
+ }
173
+ },
174
+ "axisTick": {
175
+ "show": false,
176
+ "lineStyle": {
177
+ "color": "#333333"
178
+ }
179
+ },
180
+ "axisLabel": {
181
+ "show": true,
182
+ "color": "#aaaaaa"
183
+ },
184
+ "splitLine": {
185
+ "show": false,
186
+ "lineStyle": {
187
+ "color": [
188
+ "#e6e6e6"
189
+ ]
190
+ }
191
+ },
192
+ "splitArea": {
193
+ "show": false,
194
+ "areaStyle": {
195
+ "color": [
196
+ "rgba(250,250,250,0.05)",
197
+ "rgba(200,200,200,0.02)"
198
+ ]
199
+ }
200
+ }
201
+ },
202
+ "valueAxis": {
203
+ "axisLine": {
204
+ "show": true,
205
+ "lineStyle": {
206
+ "color": "#666666"
207
+ }
208
+ },
209
+ "axisTick": {
210
+ "show": false,
211
+ "lineStyle": {
212
+ "color": "#333333"
213
+ }
214
+ },
215
+ "axisLabel": {
216
+ "show": true,
217
+ "color": "#aaaaaa"
218
+ },
219
+ "splitLine": {
220
+ "show": false,
221
+ "lineStyle": {
222
+ "color": [
223
+ "#e6e6e6"
224
+ ]
225
+ }
226
+ },
227
+ "splitArea": {
228
+ "show": false,
229
+ "areaStyle": {
230
+ "color": [
231
+ "rgba(250,250,250,0.05)",
232
+ "rgba(200,200,200,0.02)"
233
+ ]
234
+ }
235
+ }
236
+ },
237
+ "logAxis": {
238
+ "axisLine": {
239
+ "show": true,
240
+ "lineStyle": {
241
+ "color": "#666666"
242
+ }
243
+ },
244
+ "axisTick": {
245
+ "show": false,
246
+ "lineStyle": {
247
+ "color": "#333333"
248
+ }
249
+ },
250
+ "axisLabel": {
251
+ "show": true,
252
+ "color": "#aaaaaa"
253
+ },
254
+ "splitLine": {
255
+ "show": false,
256
+ "lineStyle": {
257
+ "color": [
258
+ "#e6e6e6"
259
+ ]
260
+ }
261
+ },
262
+ "splitArea": {
263
+ "show": false,
264
+ "areaStyle": {
265
+ "color": [
266
+ "rgba(250,250,250,0.05)",
267
+ "rgba(200,200,200,0.02)"
268
+ ]
269
+ }
270
+ }
271
+ },
272
+ "timeAxis": {
273
+ "axisLine": {
274
+ "show": true,
275
+ "lineStyle": {
276
+ "color": "#666666"
277
+ }
278
+ },
279
+ "axisTick": {
280
+ "show": false,
281
+ "lineStyle": {
282
+ "color": "#333333"
283
+ }
284
+ },
285
+ "axisLabel": {
286
+ "show": true,
287
+ "color": "#aaaaaa"
288
+ },
289
+ "splitLine": {
290
+ "show": false,
291
+ "lineStyle": {
292
+ "color": [
293
+ "#e6e6e6"
294
+ ]
295
+ }
296
+ },
297
+ "splitArea": {
298
+ "show": false,
299
+ "areaStyle": {
300
+ "color": [
301
+ "rgba(250,250,250,0.05)",
302
+ "rgba(200,200,200,0.02)"
303
+ ]
304
+ }
305
+ }
306
+ },
307
+ "toolbox": {
308
+ "iconStyle": {
309
+ "borderColor": "#999999"
310
+ },
311
+ "emphasis": {
312
+ "iconStyle": {
313
+ "borderColor": "#666666"
314
+ }
315
+ }
316
+ },
317
+ "legend": {
318
+ "textStyle": {
319
+ "color": "#999999"
320
+ }
321
+ },
322
+ "tooltip": {
323
+ "axisPointer": {
324
+ "lineStyle": {
325
+ "color": "#cccccc",
326
+ "width": 1
327
+ },
328
+ "crossStyle": {
329
+ "color": "#cccccc",
330
+ "width": 1
331
+ }
332
+ }
333
+ },
334
+ "timeline": {
335
+ "lineStyle": {
336
+ "color": "#87f7cf",
337
+ "width": 1
338
+ },
339
+ "itemStyle": {
340
+ "color": "#87f7cf",
341
+ "borderWidth": 1
342
+ },
343
+ "controlStyle": {
344
+ "color": "#87f7cf",
345
+ "borderColor": "#87f7cf",
346
+ "borderWidth": 0.5
347
+ },
348
+ "checkpointStyle": {
349
+ "color": "#fc97af",
350
+ "borderColor": "#fc97af"
351
+ },
352
+ "label": {
353
+ "color": "#87f7cf"
354
+ },
355
+ "emphasis": {
356
+ "itemStyle": {
357
+ "color": "#f7f494"
358
+ },
359
+ "controlStyle": {
360
+ "color": "#87f7cf",
361
+ "borderColor": "#87f7cf",
362
+ "borderWidth": 0.5
363
+ },
364
+ "label": {
365
+ "color": "#87f7cf"
366
+ }
367
+ }
368
+ },
369
+ "visualMap": {
370
+ "color": [
371
+ "#fc97af",
372
+ "#87f7cf"
373
+ ]
374
+ },
375
+ "dataZoom": {
376
+ "backgroundColor": "rgba(255,255,255,0)",
377
+ "dataBackgroundColor": "rgba(114,204,255,1)",
378
+ "fillerColor": "rgba(114,204,255,0.2)",
379
+ "handleColor": "#72ccff",
380
+ "handleSize": "100%",
381
+ "textStyle": {
382
+ "color": "#333333"
383
+ }
384
+ },
385
+ "markPoint": {
386
+ "label": {
387
+ "color": "#293441"
388
+ },
389
+ "emphasis": {
390
+ "label": {
391
+ "color": "#293441"
392
+ }
393
+ }
394
+ }
395
+ }