playbook-ui 14.22.0-alpha.customheaderat8564 → 14.22.0-alpha.play2261highchartsbargraphimportedstyles8730
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/dist/.vite/manifest.json +36 -28
- package/dist/chunks/_bar_graph-iq9-hk-x.js +1 -0
- package/dist/chunks/{_typeahead-B7FRYVtS.js → _typeahead-DeLOYzLb.js} +3 -3
- package/dist/chunks/_weekday_stacked-bjb7ElwG.js +45 -0
- package/dist/chunks/{lib-Carqm8Ip.js → lib-GtpYwIew.js} +1 -1
- package/dist/chunks/{pb_form_validation-DqRmTS8m.js → pb_form_validation-BCfG-8Zp.js} +1 -1
- package/dist/chunks/vendor.js +1 -1
- package/dist/playbook-doc.js +2 -2
- package/dist/playbook-rails-react-bindings.js +1 -1
- package/dist/playbook-rails.js +1 -1
- package/dist/playbook.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/_weekday_stacked-CEJcIpjK.js +0 -45
- package/dist/playbook-doc.css +0 -1
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,26 +1,34 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"file": "chunks/
|
|
2
|
+
"__bar_graph-iq9-hk-x.js": {
|
|
3
|
+
"file": "chunks/_bar_graph-iq9-hk-x.js",
|
|
4
|
+
"name": "_bar_graph",
|
|
5
|
+
"imports": [
|
|
6
|
+
"__typeahead-DeLOYzLb.js",
|
|
7
|
+
"_lib-GtpYwIew.js"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"__typeahead-DeLOYzLb.js": {
|
|
11
|
+
"file": "chunks/_typeahead-DeLOYzLb.js",
|
|
4
12
|
"name": "_typeahead",
|
|
5
13
|
"imports": [
|
|
6
|
-
"_lib-
|
|
14
|
+
"_lib-GtpYwIew.js"
|
|
7
15
|
]
|
|
8
16
|
},
|
|
9
|
-
"__weekday_stacked-
|
|
10
|
-
"file": "chunks/_weekday_stacked-
|
|
17
|
+
"__weekday_stacked-bjb7ElwG.js": {
|
|
18
|
+
"file": "chunks/_weekday_stacked-bjb7ElwG.js",
|
|
11
19
|
"name": "_weekday_stacked",
|
|
12
20
|
"imports": [
|
|
13
21
|
"_lazysizes-B7xYodB-.js",
|
|
14
|
-
"__typeahead-
|
|
15
|
-
"_lib-
|
|
22
|
+
"__typeahead-DeLOYzLb.js",
|
|
23
|
+
"_lib-GtpYwIew.js"
|
|
16
24
|
]
|
|
17
25
|
},
|
|
18
26
|
"_lazysizes-B7xYodB-.js": {
|
|
19
27
|
"file": "chunks/lazysizes-B7xYodB-.js",
|
|
20
28
|
"name": "lazysizes"
|
|
21
29
|
},
|
|
22
|
-
"_lib-
|
|
23
|
-
"file": "chunks/lib-
|
|
30
|
+
"_lib-GtpYwIew.js": {
|
|
31
|
+
"file": "chunks/lib-GtpYwIew.js",
|
|
24
32
|
"name": "lib",
|
|
25
33
|
"css": [
|
|
26
34
|
"lib.css"
|
|
@@ -30,11 +38,11 @@
|
|
|
30
38
|
"file": "lib.css",
|
|
31
39
|
"src": "_lib.css"
|
|
32
40
|
},
|
|
33
|
-
"_pb_form_validation-
|
|
34
|
-
"file": "chunks/pb_form_validation-
|
|
41
|
+
"_pb_form_validation-BCfG-8Zp.js": {
|
|
42
|
+
"file": "chunks/pb_form_validation-BCfG-8Zp.js",
|
|
35
43
|
"name": "pb_form_validation",
|
|
36
44
|
"imports": [
|
|
37
|
-
"_lib-
|
|
45
|
+
"_lib-GtpYwIew.js"
|
|
38
46
|
]
|
|
39
47
|
},
|
|
40
48
|
"entrypoints/playbook-doc.js": {
|
|
@@ -43,14 +51,11 @@
|
|
|
43
51
|
"src": "entrypoints/playbook-doc.js",
|
|
44
52
|
"isEntry": true,
|
|
45
53
|
"imports": [
|
|
46
|
-
"_pb_form_validation-
|
|
47
|
-
"__weekday_stacked-
|
|
48
|
-
"__typeahead-
|
|
54
|
+
"_pb_form_validation-BCfG-8Zp.js",
|
|
55
|
+
"__weekday_stacked-bjb7ElwG.js",
|
|
56
|
+
"__typeahead-DeLOYzLb.js",
|
|
49
57
|
"_lazysizes-B7xYodB-.js",
|
|
50
|
-
"_lib-
|
|
51
|
-
],
|
|
52
|
-
"css": [
|
|
53
|
-
"playbook-doc.css"
|
|
58
|
+
"_lib-GtpYwIew.js"
|
|
54
59
|
]
|
|
55
60
|
},
|
|
56
61
|
"entrypoints/playbook-rails-react-bindings.js": {
|
|
@@ -59,8 +64,9 @@
|
|
|
59
64
|
"src": "entrypoints/playbook-rails-react-bindings.js",
|
|
60
65
|
"isEntry": true,
|
|
61
66
|
"imports": [
|
|
62
|
-
"_lib-
|
|
63
|
-
"
|
|
67
|
+
"_lib-GtpYwIew.js",
|
|
68
|
+
"__bar_graph-iq9-hk-x.js",
|
|
69
|
+
"__typeahead-DeLOYzLb.js"
|
|
64
70
|
]
|
|
65
71
|
},
|
|
66
72
|
"entrypoints/playbook-rails.js": {
|
|
@@ -69,11 +75,12 @@
|
|
|
69
75
|
"src": "entrypoints/playbook-rails.js",
|
|
70
76
|
"isEntry": true,
|
|
71
77
|
"imports": [
|
|
72
|
-
"_lib-
|
|
73
|
-
"__typeahead-
|
|
74
|
-
"_pb_form_validation-
|
|
78
|
+
"_lib-GtpYwIew.js",
|
|
79
|
+
"__typeahead-DeLOYzLb.js",
|
|
80
|
+
"_pb_form_validation-BCfG-8Zp.js",
|
|
75
81
|
"_lazysizes-B7xYodB-.js",
|
|
76
|
-
"entrypoints/playbook-rails-react-bindings.js"
|
|
82
|
+
"entrypoints/playbook-rails-react-bindings.js",
|
|
83
|
+
"__bar_graph-iq9-hk-x.js"
|
|
77
84
|
]
|
|
78
85
|
},
|
|
79
86
|
"entrypoints/playbook.js": {
|
|
@@ -82,10 +89,11 @@
|
|
|
82
89
|
"src": "entrypoints/playbook.js",
|
|
83
90
|
"isEntry": true,
|
|
84
91
|
"imports": [
|
|
85
|
-
"__weekday_stacked-
|
|
92
|
+
"__weekday_stacked-bjb7ElwG.js",
|
|
86
93
|
"_lazysizes-B7xYodB-.js",
|
|
87
|
-
"__typeahead-
|
|
88
|
-
"
|
|
94
|
+
"__typeahead-DeLOYzLb.js",
|
|
95
|
+
"__bar_graph-iq9-hk-x.js",
|
|
96
|
+
"_lib-GtpYwIew.js"
|
|
89
97
|
]
|
|
90
98
|
},
|
|
91
99
|
"entrypoints/playbook.scss": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx}from"react/jsx-runtime";import{useState,useEffect}from"react";import{b as buildAriaProps,a as buildDataProps,c as buildHtmlProps,m as mapColors,H as HighchartsReact,d as Highcharts,e as classnames,g as globalProps}from"./_typeahead-DeLOYzLb.js";import{h as highchartsTheme,m as merge,a as highchartsDarkTheme}from"./lib-GtpYwIew.js";const BarGraph=({aria:aria={},data:data={},align:align="center",axisTitle:axisTitle,dark:dark=false,chartData:chartData,className:className="pb_bar_graph",colors:colors,htmlOptions:htmlOptions={},customOptions:customOptions={},axisFormat:axisFormat,id:id,pointStart:pointStart,stacking:stacking,subTitle:subTitle,type:type="column",title:title="Title",xAxisCategories:xAxisCategories,yAxisMin:yAxisMin,yAxisMax:yAxisMax,legend:legend=false,toggleLegendClick:toggleLegendClick=true,height:height,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x=0,y:y=0,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const setupTheme=()=>{dark?Highcharts.setOptions(highchartsDarkTheme):Highcharts.setOptions(highchartsTheme)};setupTheme();const staticOptions={title:{text:title},chart:{height:height,type:type},subtitle:{text:subTitle},yAxis:[{labels:{format:typeof axisFormat==="string"?axisFormat:axisFormat&&axisFormat[0]?axisFormat[0].format:""},min:yAxisMin,max:yAxisMax,opposite:false,title:{text:Array.isArray(axisTitle)?axisTitle.length>0?axisTitle[0].name:null:axisTitle},plotLines:typeof yAxisMin!=="undefined"&&yAxisMin!==null?[]:[{value:0,zIndex:10,color:"#E4E8F0"}]}],xAxis:{categories:xAxisCategories},legend:{enabled:legend,align:align,verticalAlign:verticalAlign,layout:layout,x:x,y:y},colors:colors!==void 0&&colors.length>0?mapColors(colors):highchartsTheme.colors,plotOptions:{series:{stacking:stacking,pointStart:pointStart,borderWidth:stacking?0:"",events:{},dataLabels:{enabled:false}}},series:chartData,credits:false};if(Array.isArray(axisTitle)&&axisTitle.length>1&&axisTitle[1].name){staticOptions.yAxis.push({labels:{format:typeof axisFormat==="string"?axisFormat:axisFormat[1].format},min:yAxisMin,max:yAxisMax,opposite:true,title:{text:axisTitle[1].name},plotLines:typeof yAxisMin!=="undefined"&&yAxisMin!==null?[]:[{value:0,zIndex:10,color:"#E4E8F0"}]})}if(!toggleLegendClick){staticOptions.plotOptions.series.events={legendItemClick:()=>false}}const filteredProps={...props};delete filteredProps.verticalAlign;const[options,setOptions]=useState({});useEffect((()=>{setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx(HighchartsReact,{containerProps:{className:classnames(globalProps(filteredProps),className),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options})};export{BarGraph as B};
|