@wavemaker/app-rn-runtime 11.5.0-rc.5396 → 11.5.1-next.26251
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.
- app-rn-runtime/components/chart/area-chart/area-chart.component.js +15 -10
- app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
- app-rn-runtime/components/chart/area-chart/area-chart.props.js +9 -1
- app-rn-runtime/components/chart/area-chart/area-chart.props.js.map +1 -1
- app-rn-runtime/components/chart/basechart.component.js +82 -39
- app-rn-runtime/components/chart/basechart.component.js.map +1 -1
- app-rn-runtime/components/chart/basechart.props.js +8 -3
- app-rn-runtime/components/chart/basechart.props.js.map +1 -1
- app-rn-runtime/components/chart/basechart.styles.js +25 -1
- app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
- app-rn-runtime/components/chart/line-chart/line-chart.component.js +31 -6
- app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
- app-rn-runtime/components/chart/line-chart/line-chart.props.js +1 -0
- app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
- app-rn-runtime/components/container/wizard/wizard.component.js +94 -2
- app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
- app-rn-runtime/components/container/wizard/wizard.props.js +4 -0
- app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
- app-rn-runtime/components/container/wizard/wizard.styles.js +103 -5
- app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
- app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js +1 -0
- app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
- app-rn-runtime/components/input/basenumber/basenumber.component.js +39 -5
- app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
- app-rn-runtime/components/input/basenumber/basenumber.props.js +1 -0
- app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
- app-rn-runtime/components/input/currency/currency.component.js +4 -1
- app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
- app-rn-runtime/components/input/number/number.component.js +4 -1
- app-rn-runtime/components/input/number/number.component.js.map +1 -1
- app-rn-runtime/core/utils.js +16 -0
- app-rn-runtime/core/utils.js.map +1 -1
- app-rn-runtime/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Color from "color";
|
|
1
2
|
import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';
|
|
2
3
|
import { defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';
|
|
3
4
|
export const DEFAULT_CLASS = 'app-chart';
|
|
@@ -25,7 +26,30 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
|
|
|
25
26
|
},
|
|
26
27
|
legendText: {},
|
|
27
28
|
legenedDot: {},
|
|
28
|
-
|
|
29
|
+
axis: {
|
|
30
|
+
stroke: Color(themeVariables.chartAxisColor).fade(0.3).rgb().toString()
|
|
31
|
+
},
|
|
32
|
+
xAxis: {},
|
|
33
|
+
yAxis: {},
|
|
34
|
+
axisLabel: {},
|
|
35
|
+
xAxisLabel: {},
|
|
36
|
+
yAxisLabel: {},
|
|
37
|
+
grid: {
|
|
38
|
+
stroke: Color(themeVariables.chartAxisColor).fade(0.8).rgb().toString(),
|
|
39
|
+
strokeDasharray: '16 4'
|
|
40
|
+
},
|
|
41
|
+
xGrid: {},
|
|
42
|
+
yGrid: {},
|
|
43
|
+
ticks: {
|
|
44
|
+
stroke: Color(themeVariables.chartAxisColor).fade(0.8).rgb().toString()
|
|
45
|
+
},
|
|
46
|
+
xTicks: {},
|
|
47
|
+
yTicks: {},
|
|
48
|
+
tickLabels: {
|
|
49
|
+
stroke: Color(themeVariables.chartAxisColor).fade(0.8).rgb().toString()
|
|
50
|
+
},
|
|
51
|
+
xTickLabels: {},
|
|
52
|
+
yTickLabels: {},
|
|
29
53
|
barChart: {}
|
|
30
54
|
});
|
|
31
55
|
addStyle(DEFAULT_CLASS, '', defaultStyles);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","icon","fontSize","line","color","chartLineColor","title","chartTitleColor","lineHeight","subHeading","chartSubTitleColor","legendText","legenedDot","grid","barChart"],"sources":["basechart.styles.ts"],"sourcesContent":["import { TextStyle, ViewStyle } from 'react-native';\nimport BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { VictoryStyleObject } from \"victory-core\";\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\n\n\nexport type BaseChartComponentStyles = BaseStyles & {\n title: TextStyle,\n icon: WmIconStyles,\n subHeading: TextStyle,\n grid: VictoryStyleObject,\n legendText: TextStyle,\n legenedDot: ViewStyle \n};\n\nexport const DEFAULT_CLASS = 'app-chart';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: BaseChartComponentStyles = defineStyles({\n root: {},\n text: {},\n icon: {\n icon: {\n fontSize: 20\n }\n } as WmIconStyles,\n line: {\n color: themeVariables.chartLineColor\n },\n title: {\n color: themeVariables.chartTitleColor,\n fontSize: 20,\n lineHeight: 24,\n },\n subHeading: {\n fontSize: 12,\n lineHeight: 16,\n color: themeVariables.chartSubTitleColor\n },\n legendText: {},\n legenedDot: {},\n grid: {},\n barChart: {}\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});\n"],"mappings":"AACA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;
|
|
1
|
+
{"version":3,"names":["Color","BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","text","icon","fontSize","line","color","chartLineColor","title","chartTitleColor","lineHeight","subHeading","chartSubTitleColor","legendText","legenedDot","axis","stroke","chartAxisColor","fade","rgb","toString","xAxis","yAxis","axisLabel","xAxisLabel","yAxisLabel","grid","strokeDasharray","xGrid","yGrid","ticks","xTicks","yTicks","tickLabels","xTickLabels","yTickLabels","barChart"],"sources":["basechart.styles.ts"],"sourcesContent":["import { TextStyle, ViewStyle } from 'react-native';\nimport Color from \"color\";\nimport BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { VictoryStyleObject } from \"victory-core\";\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\n\n\nexport type BaseChartComponentStyles = BaseStyles & {\n title: TextStyle,\n icon: WmIconStyles,\n subHeading: TextStyle,\n axis: VictoryStyleObject,\n xAxis: VictoryStyleObject,\n yAxis: VictoryStyleObject,\n axisLabel: VictoryStyleObject,\n xAxisLabel: VictoryStyleObject,\n yAxisLabel: VictoryStyleObject,\n ticks: VictoryStyleObject,\n xTicks: VictoryStyleObject,\n yTicks: VictoryStyleObject,\n tickLabels: VictoryStyleObject,\n xTickLabels: VictoryStyleObject,\n yTickLabels: VictoryStyleObject,\n grid: VictoryStyleObject,\n xGrid: VictoryStyleObject,\n yGrid: VictoryStyleObject,\n legendText: TextStyle,\n legenedDot: ViewStyle \n};\n\nexport const DEFAULT_CLASS = 'app-chart';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: BaseChartComponentStyles = defineStyles({\n root: {},\n text: {},\n icon: {\n icon: {\n fontSize: 20\n }\n } as WmIconStyles,\n line: {\n color: themeVariables.chartLineColor\n },\n title: {\n color: themeVariables.chartTitleColor,\n fontSize: 20,\n lineHeight: 24,\n },\n subHeading: {\n fontSize: 12,\n lineHeight: 16,\n color: themeVariables.chartSubTitleColor\n },\n legendText: {},\n legenedDot: {},\n axis: {\n stroke: Color(themeVariables.chartAxisColor).fade(0.3).rgb().toString()\n } as any,\n xAxis: {} as any,\n yAxis: {} as any,\n axisLabel: {} as any,\n xAxisLabel: {} as any,\n yAxisLabel: {} as any,\n grid: {\n stroke: Color(themeVariables.chartAxisColor).fade(0.8).rgb().toString(),\n strokeDasharray: '16 4'\n } as any,\n xGrid: {} as any,\n yGrid: {} as any,\n ticks: {\n stroke: Color(themeVariables.chartAxisColor).fade(0.8).rgb().toString(),\n } as any,\n xTicks: {} as any,\n yTicks: {} as any,\n tickLabels: {\n stroke: Color(themeVariables.chartAxisColor).fade(0.8).rgb().toString(),\n } as any,\n xTickLabels: {} as any,\n yTickLabels: {} as any,\n barChart: {}\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});\n"],"mappings":"AACA,OAAOA,KAAK,MAAO,OAAO;AAC1B,OAAOC,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AA4BxF,OAAO,MAAMC,aAAa,GAAG,WAAW;AACxCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAAuC,GAAGL,YAAY,CAAC;IAC3DM,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE,CAAC,CAAC;IACRC,IAAI,EAAE;MACJA,IAAI,EAAE;QACJC,QAAQ,EAAE;MACZ;IACF,CAAiB;IACjBC,IAAI,EAAE;MACJC,KAAK,EAAER,cAAc,CAACS;IACxB,CAAC;IACDC,KAAK,EAAE;MACLF,KAAK,EAAER,cAAc,CAACW,eAAe;MACrCL,QAAQ,EAAE,EAAE;MACZM,UAAU,EAAE;IACd,CAAC;IACDC,UAAU,EAAE;MACVP,QAAQ,EAAE,EAAE;MACZM,UAAU,EAAE,EAAE;MACdJ,KAAK,EAAER,cAAc,CAACc;IACxB,CAAC;IACDC,UAAU,EAAE,CAAC,CAAC;IACdC,UAAU,EAAE,CAAC,CAAC;IACdC,IAAI,EAAE;MACJC,MAAM,EAAEvB,KAAK,CAACK,cAAc,CAACmB,cAAc,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC;IACxE,CAAQ;IACRC,KAAK,EAAE,CAAC,CAAQ;IAChBC,KAAK,EAAE,CAAC,CAAQ;IAChBC,SAAS,EAAE,CAAC,CAAQ;IACpBC,UAAU,EAAE,CAAC,CAAQ;IACrBC,UAAU,EAAE,CAAC,CAAQ;IACrBC,IAAI,EAAE;MACJV,MAAM,EAAEvB,KAAK,CAACK,cAAc,CAACmB,cAAc,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;MACvEO,eAAe,EAAE;IACnB,CAAQ;IACRC,KAAK,EAAE,CAAC,CAAQ;IAChBC,KAAK,EAAE,CAAC,CAAQ;IAChBC,KAAK,EAAE;MACLd,MAAM,EAAEvB,KAAK,CAACK,cAAc,CAACmB,cAAc,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC;IACxE,CAAQ;IACRW,MAAM,EAAE,CAAC,CAAQ;IACjBC,MAAM,EAAE,CAAC,CAAQ;IACjBC,UAAU,EAAE;MACVjB,MAAM,EAAEvB,KAAK,CAACK,cAAc,CAACmB,cAAc,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC;IACxE,CAAQ;IACRc,WAAW,EAAE,CAAC,CAAQ;IACtBC,WAAW,EAAE,CAAC,CAAQ;IACtBC,QAAQ,EAAE,CAAC;EACb,CAAC,CAAC;EAEFrC,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC5C,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
import { Svg } from 'react-native-svg';
|
|
4
|
-
import { VictoryChart, VictoryLine, VictoryLegend, VictoryScatter, VictoryGroup } from 'victory-native';
|
|
4
|
+
import { VictoryChart, VictoryLine, VictoryLegend, VictoryScatter, VictoryGroup, VictoryArea, VictoryVoronoiContainer } from 'victory-native';
|
|
5
5
|
import WmLineChartProps from './line-chart.props';
|
|
6
6
|
import { DEFAULT_CLASS } from './line-chart.styles';
|
|
7
7
|
import { BaseChartComponent, BaseChartComponentState } from "@wavemaker/app-rn-runtime/components/chart/basechart.component";
|
|
@@ -19,6 +19,14 @@ export default class WmLineChart extends BaseChartComponent {
|
|
|
19
19
|
return /*#__PURE__*/React.createElement(View, {
|
|
20
20
|
style: this.styles.root
|
|
21
21
|
}, /*#__PURE__*/React.createElement(VictoryChart, {
|
|
22
|
+
containerComponent: /*#__PURE__*/React.createElement(VictoryVoronoiContainer, {
|
|
23
|
+
labels: _ref => {
|
|
24
|
+
let {
|
|
25
|
+
datum
|
|
26
|
+
} = _ref;
|
|
27
|
+
return `${datum.x}, ${datum.y}`;
|
|
28
|
+
}
|
|
29
|
+
}),
|
|
22
30
|
theme: this.state.theme,
|
|
23
31
|
height: this.styles.root.height,
|
|
24
32
|
width: this.styles.root.width || this.screenWidth,
|
|
@@ -40,18 +48,32 @@ export default class WmLineChart extends BaseChartComponent {
|
|
|
40
48
|
}), this.getLegendView(), this.getXaxis(), this.getYAxis(), this.state.data.map((d, i) => {
|
|
41
49
|
return /*#__PURE__*/React.createElement(VictoryGroup, {
|
|
42
50
|
key: props.name + '_line_group_' + i
|
|
43
|
-
}, /*#__PURE__*/React.createElement(
|
|
51
|
+
}, /*#__PURE__*/React.createElement(VictoryArea, {
|
|
52
|
+
interpolation: props.interpolation,
|
|
53
|
+
key: props.name + '_area_' + i,
|
|
54
|
+
name: props.name + '_area_' + i,
|
|
55
|
+
standalone: true,
|
|
56
|
+
style: {
|
|
57
|
+
data: {
|
|
58
|
+
fill: '#90EE90',
|
|
59
|
+
// Set the fill color to green
|
|
60
|
+
fillOpacity: 0.8 // Adjust the opacity as needed
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
data: this.isRTL ? d.toReversed() : d
|
|
65
|
+
}), /*#__PURE__*/React.createElement(VictoryLine, {
|
|
44
66
|
interpolation: props.interpolation,
|
|
45
67
|
key: props.name + '_line_' + i,
|
|
46
68
|
name: props.name + '_line_' + i,
|
|
47
69
|
standalone: true,
|
|
48
70
|
style: {
|
|
49
71
|
data: {
|
|
50
|
-
stroke:
|
|
72
|
+
stroke: "green" || ThemeVariables.INSTANCE.chartLineColor,
|
|
51
73
|
strokeWidth: props.linethickness
|
|
52
74
|
}
|
|
53
75
|
},
|
|
54
|
-
data: d
|
|
76
|
+
data: this.isRTL ? d.toReversed() : d
|
|
55
77
|
}), props.highlightpoints || this.state.data.length === 1 ? /*#__PURE__*/React.createElement(VictoryScatter, {
|
|
56
78
|
size: 5,
|
|
57
79
|
key: props.name + '_scatter' + i,
|
|
@@ -60,8 +82,11 @@ export default class WmLineChart extends BaseChartComponent {
|
|
|
60
82
|
fill: this.state.colors[i],
|
|
61
83
|
opacity: 0.8
|
|
62
84
|
}
|
|
63
|
-
}
|
|
64
|
-
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// data={this.isRTL?d.toReversed():d}
|
|
88
|
+
,
|
|
89
|
+
data: this.isRTL ? d.toReversed() : [d[d.length - 1]]
|
|
65
90
|
}) : null);
|
|
66
91
|
})));
|
|
67
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Svg","VictoryChart","VictoryLine","VictoryLegend","VictoryScatter","VictoryGroup","WmLineChartProps","DEFAULT_CLASS","BaseChartComponent","BaseChartComponentState","ThemeVariables","WmLineChartState","WmLineChart","constructor","props","renderWidget","_this$state$data","state","data","length","createElement","style","styles","root","theme","height","width","screenWidth","padding","top","offsettop","bottom","offsetbottom","left","offsetleft","right","offsetright","name","
|
|
1
|
+
{"version":3,"names":["React","View","Svg","VictoryChart","VictoryLine","VictoryLegend","VictoryScatter","VictoryGroup","VictoryArea","VictoryVoronoiContainer","WmLineChartProps","DEFAULT_CLASS","BaseChartComponent","BaseChartComponentState","ThemeVariables","WmLineChartState","WmLineChart","constructor","props","renderWidget","_this$state$data","state","data","length","createElement","style","styles","root","containerComponent","labels","_ref","datum","x","y","theme","height","width","screenWidth","padding","top","offsettop","bottom","offsetbottom","left","offsetleft","right","offsetright","name","title","subheading","orientation","gutter","getLegendView","getXaxis","getYAxis","map","d","i","key","interpolation","standalone","fill","fillOpacity","isRTL","toReversed","stroke","INSTANCE","chartLineColor","strokeWidth","linethickness","highlightpoints","size","colors","opacity"],"sources":["line-chart.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { Svg } from 'react-native-svg';\n\nimport {\n VictoryChart,\n VictoryLine,\n VictoryLegend,\n VictoryScatter,\n VictoryGroup,\n VictoryLabel,\n VictoryArea,\n VictoryAxis,\n VictoryTooltip,\n VictoryVoronoiContainer\n} from 'victory-native';\n\nimport WmLineChartProps from './line-chart.props';\nimport { DEFAULT_CLASS, WmLineChartStyles } from './line-chart.styles';\nimport {\n BaseChartComponent,\n BaseChartComponentState\n} from \"@wavemaker/app-rn-runtime/components/chart/basechart.component\";\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\nimport {InterpolationPropType} from \"victory-core\";\n\nexport class WmLineChartState extends BaseChartComponentState<WmLineChartProps> {}\n\nexport default class WmLineChart extends BaseChartComponent<WmLineChartProps, WmLineChartState, WmLineChartStyles> {\n\n constructor(props: WmLineChartProps) {\n super(props, DEFAULT_CLASS, new WmLineChartProps(), new WmLineChartState());\n }\n renderWidget(props: WmLineChartProps) {\n \n if (!this.state.data?.length) {\n return null;\n }\n return (<View\n style={this.styles.root}\n >\n <VictoryChart\n containerComponent={<VictoryVoronoiContainer labels={({ datum }) => `${(datum.x)}, ${(datum.y)}`}/>}\n theme={this.state.theme}\n height={this.styles.root.height as number}\n width={this.styles.root.width as number || this.screenWidth}\n padding={{ top: props.offsettop, bottom: props.offsetbottom, left: props.offsetleft, right: props.offsetright }}\n >\n <VictoryLegend\n name={'legend'}\n containerComponent={<Svg />}\n title={[props.title, props.subheading]}\n orientation=\"horizontal\"\n gutter={20}\n data={[]}\n theme={this.state.theme}\n y={0}\n />\n {this.getLegendView()}\n {this.getXaxis()}\n {this.getYAxis()}\n {\n this.state.data.map((d: any, i: number) => {\n return <VictoryGroup key={props.name + '_line_group_' + i}>\n <VictoryArea\n interpolation={props.interpolation as InterpolationPropType}\n key={props.name + '_area_' + i}\n name={props.name + '_area_' + i}\n standalone={true}\n style={{\n data: {\n fill: '#90EE90', // Set the fill color to green\n fillOpacity: 0.8, // Adjust the opacity as needed\n },\n }}\n data={this.isRTL ? d.toReversed() : d}\n />\n <VictoryLine interpolation={props.interpolation as InterpolationPropType} key={props.name + '_line_' + i}\n name={props.name + '_line_' + i}\n standalone={true}\n style={{\n data: {\n stroke: (\"green\" || ThemeVariables.INSTANCE.chartLineColor),\n strokeWidth: props.linethickness,\n }\n }} \n data={this.isRTL?d.toReversed():d}\n />\n {(props.highlightpoints || this.state.data.length === 1) ?\n <VictoryScatter size={5} key={props.name + '_scatter' + i}\n style={{\n data: { fill: this.state.colors[i], opacity: 0.8,}\n }}\n \n // data={this.isRTL?d.toReversed():d}\n data={this.isRTL?d.toReversed(): [d[d.length-1]]}\n \n />: null}\n </VictoryGroup>\n })\n }\n </VictoryChart>\n </View>);\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,GAAG,QAAQ,kBAAkB;AAEtC,SACEC,YAAY,EACZC,WAAW,EACXC,aAAa,EACbC,cAAc,EACdC,YAAY,EAEZC,WAAW,EAGXC,uBAAuB,QAClB,gBAAgB;AAEvB,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,SAASC,aAAa,QAA2B,qBAAqB;AACtE,SACEC,kBAAkB,EAClBC,uBAAuB,QAClB,gEAAgE;AACvE,OAAOC,cAAc,MAAM,kDAAkD;AAG7E,OAAO,MAAMC,gBAAgB,SAASF,uBAAuB,CAAmB;AAEhF,eAAe,MAAMG,WAAW,SAASJ,k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B,IAAI,GAAG,QAAQ,GAAGU,CAAE;QAChCG,UAAU,EAAE,IAAK;QACjBnC,KAAK,EAAE;UACLH,IAAI,EAAE;YACJ2C,MAAM,EAAG,OAAO,IAAInD,cAAc,CAACoD,QAAQ,CAACC,cAAe;YAC3DC,WAAW,EAAElD,KAAK,CAACmD;UACrB;QACF,CAAE;QACpB/C,IAAI,EAAE,IAAI,CAACyC,KAAK,GAACP,CAAC,CAACQ,UAAU,CAAC,CAAC,GAACR;MAAE,CACnC,CAAC,EACAtC,KAAK,CAACoD,eAAe,IAAI,IAAI,CAACjD,KAAK,CAACC,IAAI,CAACC,MAAM,KAAK,CAAC,gBACrDvB,KAAA,CAAAwB,aAAA,CAAClB,cAAc;QAACiE,IAAI,EAAE,CAAE;QAACb,GAAG,EAAExC,KAAK,CAAC6B,IAAI,GAAG,UAAU,GAAGU,CAAE;QAC1ChC,KAAK,EAAE;UACLH,IAAI,EAAE;YAAEuC,IAAI,EAAE,IAAI,CAACxC,KAAK,CAACmD,MAAM,CAACf,CAAC,CAAC;YAAEgB,OAAO,EAAE;UAAI;QACnD;;QAEA;QAAA;QACAnD,IAAI,EAAE,IAAI,CAACyC,KAAK,GAACP,CAAC,CAACQ,UAAU,CAAC,CAAC,GAAE,CAACR,CAAC,CAACA,CAAC,CAACjC,MAAM,GAAC,CAAC,CAAC;MAAE,CAEhE,CAAC,GAAE,IACU,CAAC;IACnB,CAAC,CAES,CACR,CAAC;EACT;AACF"}
|
|
@@ -6,6 +6,7 @@ export default class WmLineChartProps extends BaseChartComponentProps {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments);
|
|
8
8
|
_defineProperty(this, "linethickness", 2);
|
|
9
|
+
_defineProperty(this, "getdatapointstodisplay", label => null);
|
|
9
10
|
}
|
|
10
11
|
}
|
|
11
12
|
//# sourceMappingURL=line-chart.props.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BaseChartComponentProps","WmLineChartProps","constructor","arguments","_defineProperty"],"sources":["line-chart.props.ts"],"sourcesContent":["import BaseChartComponentProps from \"@wavemaker/app-rn-runtime/components/chart/basechart.props\";\n\nexport default class WmLineChartProps extends BaseChartComponentProps {\n linethickness: number = 2;\n}\n"],"mappings":";;;AAAA,OAAOA,uBAAuB,MAAM,4DAA4D;AAEhG,eAAe,MAAMC,gBAAgB,SAASD,uBAAuB,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,wBAC5C,CAAC;EAAA;
|
|
1
|
+
{"version":3,"names":["BaseChartComponentProps","WmLineChartProps","constructor","arguments","_defineProperty","label"],"sources":["line-chart.props.ts"],"sourcesContent":["import BaseChartComponentProps from \"@wavemaker/app-rn-runtime/components/chart/basechart.props\";\n\nexport default class WmLineChartProps extends BaseChartComponentProps {\n linethickness: number = 2;\n getdatapointstodisplay = (label: string) => null as any;\n}\n"],"mappings":";;;AAAA,OAAOA,uBAAuB,MAAM,4DAA4D;AAEhG,eAAe,MAAMC,gBAAgB,SAASD,uBAAuB,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,wBAC5C,CAAC;IAAAA,eAAA,iCACCC,KAAa,IAAK,IAAW;EAAA;AACzD"}
|
|
@@ -2,7 +2,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
2
2
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
3
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { Text, View, TouchableOpacity, Platform } from 'react-native';
|
|
5
|
+
import { Text, View, TouchableOpacity, Platform, TouchableWithoutFeedback } from 'react-native';
|
|
6
6
|
import { isArray, merge } from 'lodash';
|
|
7
7
|
import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';
|
|
8
8
|
import WmWizardProps from './wizard.props';
|
|
@@ -10,6 +10,9 @@ import { DEFAULT_CLASS } from './wizard.styles';
|
|
|
10
10
|
import WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';
|
|
11
11
|
import WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';
|
|
12
12
|
import WmAnchor from '@wavemaker/app-rn-runtime/components/basic/anchor/anchor.component';
|
|
13
|
+
import WmProgressCircle from '@wavemaker/app-rn-runtime/components/basic/progress-circle/progress-circle.component';
|
|
14
|
+
import WmPopover from '@wavemaker/app-rn-runtime/components/navigation/popover/popover.component';
|
|
15
|
+
import WmLabel from '@wavemaker/app-rn-runtime/components/basic/label/label.component';
|
|
13
16
|
export class WmWizardState extends BaseComponentState {
|
|
14
17
|
constructor() {
|
|
15
18
|
super(...arguments);
|
|
@@ -22,6 +25,14 @@ export default class WmWizard extends BaseComponent {
|
|
|
22
25
|
super(props, DEFAULT_CLASS, new WmWizardProps());
|
|
23
26
|
_defineProperty(this, "numberOfSteps", null);
|
|
24
27
|
_defineProperty(this, "steps", []);
|
|
28
|
+
_defineProperty(this, "popOverRef", null);
|
|
29
|
+
_defineProperty(this, "listener", {
|
|
30
|
+
onComponentInit: c => {
|
|
31
|
+
if (c instanceof WmPopover) {
|
|
32
|
+
this.popOverRef = c;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
25
36
|
const steps = props.children;
|
|
26
37
|
let defaultStepIndex = 0;
|
|
27
38
|
if (isArray(steps) && props.defaultstep) {
|
|
@@ -63,6 +74,85 @@ export default class WmWizard extends BaseComponent {
|
|
|
63
74
|
}
|
|
64
75
|
return style;
|
|
65
76
|
}
|
|
77
|
+
renderMenuPopover() {
|
|
78
|
+
const menuDataset = this.props.getmenudataexpression || ((item, index) => '');
|
|
79
|
+
const Labels = this.steps.map(step => step.state.props.title);
|
|
80
|
+
return /*#__PURE__*/React.createElement(WmPopover, {
|
|
81
|
+
id: this.getTestId('menu'),
|
|
82
|
+
styles: this.styles.popover,
|
|
83
|
+
contentanimation: 'slideInDown',
|
|
84
|
+
caption: '',
|
|
85
|
+
popoverheight: this.styles.popover.popover.height || null,
|
|
86
|
+
popoverwidth: this.styles.popover.popover.width || null,
|
|
87
|
+
listener: this.listener,
|
|
88
|
+
iconclass: this.props.popovericonclass || 'fa fa-caret-down',
|
|
89
|
+
iconposition: "right",
|
|
90
|
+
type: "dropdown"
|
|
91
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
92
|
+
style: this.styles.popover.popover
|
|
93
|
+
}, Labels.map((item, index) => {
|
|
94
|
+
const currentMenuItem = index == this.state.currentStep;
|
|
95
|
+
const caption = menuDataset({
|
|
96
|
+
"count": this.steps.length
|
|
97
|
+
}, index);
|
|
98
|
+
return /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
|
|
99
|
+
key: 'wizard_menu_item_' + index,
|
|
100
|
+
onPress: () => {
|
|
101
|
+
this.popOverRef.hide();
|
|
102
|
+
}
|
|
103
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
104
|
+
style: [this.styles.stepMenu, currentMenuItem ? this.styles.activeStepMenu : {}]
|
|
105
|
+
}, /*#__PURE__*/React.createElement(WmIcon, {
|
|
106
|
+
caption: caption,
|
|
107
|
+
iconclass: currentMenuItem ? "wi wi-radio-button-checked" : 'wi wi-radio-button-unchecked',
|
|
108
|
+
styles: currentMenuItem ? this.styles.stepMenuActiveIcon : this.styles.stepMenuIcon
|
|
109
|
+
}), /*#__PURE__*/React.createElement(WmLabel, {
|
|
110
|
+
caption: item,
|
|
111
|
+
styles: currentMenuItem ? this.styles.stepMenuActiveLabel : this.styles.stepMenuLabel
|
|
112
|
+
})));
|
|
113
|
+
})));
|
|
114
|
+
}
|
|
115
|
+
renderProgressCircleHeader(item, index) {
|
|
116
|
+
const progressTitle = this.props.progresstitle || index + 1 + '/' + this.steps.length;
|
|
117
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
118
|
+
style: [this.styles.headerWrapper],
|
|
119
|
+
key: index + 1
|
|
120
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
121
|
+
style: this.styles.stepWrapper
|
|
122
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
123
|
+
style: {
|
|
124
|
+
flex: 1,
|
|
125
|
+
alignItems: 'flex-start',
|
|
126
|
+
justifyContent: 'center',
|
|
127
|
+
flexDirection: 'row'
|
|
128
|
+
}
|
|
129
|
+
}, /*#__PURE__*/React.createElement(WmProgressCircle, {
|
|
130
|
+
minvalue: 0,
|
|
131
|
+
maxvalue: this.steps.length,
|
|
132
|
+
datavalue: index + 1,
|
|
133
|
+
captionplacement: 'inside',
|
|
134
|
+
type: this.props.progresstype,
|
|
135
|
+
title: progressTitle,
|
|
136
|
+
subtitle: '',
|
|
137
|
+
styles: this.styles.progressCircle
|
|
138
|
+
})), /*#__PURE__*/React.createElement(View, {
|
|
139
|
+
style: {
|
|
140
|
+
flex: 2,
|
|
141
|
+
justifyContent: 'center',
|
|
142
|
+
flexDirection: 'column'
|
|
143
|
+
}
|
|
144
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
145
|
+
style: this.styles.stepTitle
|
|
146
|
+
}, item.props.title || 'Step Title'), /*#__PURE__*/React.createElement(Text, {
|
|
147
|
+
style: this.styles.stepSubTitle
|
|
148
|
+
}, item.props.subtitle || 'Step Sub Title')), /*#__PURE__*/React.createElement(View, {
|
|
149
|
+
style: {
|
|
150
|
+
flexDirection: 'row',
|
|
151
|
+
alignItems: 'flex-end',
|
|
152
|
+
justifyContent: 'flex-end'
|
|
153
|
+
}
|
|
154
|
+
}, this.renderMenuPopover())));
|
|
155
|
+
}
|
|
66
156
|
renderWizardHeader(item, index) {
|
|
67
157
|
const isLastStep = index === this.numberOfSteps - 1;
|
|
68
158
|
const isFirstStep = index === 0;
|
|
@@ -131,14 +221,16 @@ export default class WmWizard extends BaseComponent {
|
|
|
131
221
|
this.onNext(steps, 'skip');
|
|
132
222
|
}
|
|
133
223
|
renderWidget(props) {
|
|
224
|
+
var _this$state$props$cla;
|
|
134
225
|
this.numberOfSteps = this.steps.length;
|
|
135
226
|
const activeStep = this.steps[this.state.currentStep];
|
|
136
227
|
const isSkippable = this.steps[this.state.currentStep] && this.steps[this.state.currentStep].props.enableskip;
|
|
228
|
+
const isProgressCircleHeader = (_this$state$props$cla = this.state.props.classname) === null || _this$state$props$cla === void 0 ? void 0 : _this$state$props$cla.includes('progress-circle-header');
|
|
137
229
|
return /*#__PURE__*/React.createElement(View, {
|
|
138
230
|
style: this.styles.root
|
|
139
231
|
}, this._background, /*#__PURE__*/React.createElement(View, {
|
|
140
232
|
style: this.styles.wizardHeader
|
|
141
|
-
}, this.steps ? this.steps.map((step, i) => this.renderWizardHeader(step, i)) : null), /*#__PURE__*/React.createElement(View, {
|
|
233
|
+
}, activeStep && isProgressCircleHeader ? this.renderProgressCircleHeader(activeStep, this.state.currentStep) : this.steps ? this.steps.map((step, i) => this.renderWizardHeader(step, i)) : null), /*#__PURE__*/React.createElement(View, {
|
|
142
234
|
style: this.styles.wizardBody
|
|
143
235
|
}, props.children), /*#__PURE__*/React.createElement(View, {
|
|
144
236
|
style: [this.styles.wizardFooter, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Text","View","TouchableOpacity","Platform","isArray","merge","BaseComponent","BaseComponentState","WmWizardProps","DEFAULT_CLASS","WmButton","WmIcon","WmAnchor","WmWizardState","constructor","arguments","_defineProperty","WmWizard","props","steps","children","defaultStepIndex","defaultstep","map","item","index","name","updateCurrentStep","addWizardStep","step","forceUpdate","componentDidMount","showActiveStep","_this$steps$this$stat","state","currentStep","setActive","_this$steps$this$stat2","isDone","length","undefined","setInActive","updateState","getStepStyle","style","styles","push","doneStep","activeStep","renderWizardHeader","isLastStep","numberOfSteps","isFirstStep","isActiveStep","isNumberTextLayout","classname","show","createElement","headerWrapper","paddingRight","paddingLeft","key","stepWrapper","onPress","bind","disabled","stepCounter","stepIcon","icon","color","iconclass","stepTitle","title","numberTextStepConnector","width","stepConnector","left","OS","isRTL","onPrev","invokePrevCB","onNext","eventName","invokeSkipCB","invokeNextCB","onDone","$event","invokeEventCallback","proxy","onCancel","onSkip","renderWidget","isSkippable","enableskip","root","_background","wizardHeader","i","wizardBody","wizardFooter","flexDirection","actionsalignment","wizardActions","theme","getStyle","doneButton","id","getTestId","caption","donebtnlabel","onTap","nextButton","iconposition","nextbtnlabel","prevButton","previousbtnlabel","cancelable","cancelbtnlabel","cancelButton","skipLink"],"sources":["wizard.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View, TouchableOpacity, Platform } from 'react-native';\nimport { isArray, merge } from 'lodash';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmWizardProps from './wizard.props';\nimport { DEFAULT_CLASS, WmWizardStyles } from './wizard.styles';\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport WmAnchor from '@wavemaker/app-rn-runtime/components/basic/anchor/anchor.component';\nimport WmWizardstep from './wizardstep/wizardstep.component';\n\nexport class WmWizardState extends BaseComponentState<WmWizardProps> {\n currentStep: number = 0;\n isDone: boolean = false;\n}\n\nexport default class WmWizard extends BaseComponent<WmWizardProps, WmWizardState, WmWizardStyles> {\n private numberOfSteps: number = null as any;\n private steps = [] as WmWizardstep[];\n constructor(props: WmWizardProps) {\n super(props, DEFAULT_CLASS, new WmWizardProps());\n const steps = props.children;\n let defaultStepIndex = 0;\n if (isArray(steps) && props.defaultstep) {\n steps.map((item: any, index: any) => {\n if (props.defaultstep === item.props.name) {\n defaultStepIndex = index;\n }\n })\n }\n this.updateCurrentStep(defaultStepIndex);\n }\n\n addWizardStep(step: WmWizardstep) {\n this.steps[step.props.index] = step;\n this.forceUpdate();\n }\n\n componentDidMount() {\n super.componentDidMount();\n this.showActiveStep();\n }\n\n showActiveStep() {\n this.steps[this.state.currentStep]?.setActive();\n }\n\n updateCurrentStep(index: number, isDone = false) {\n this.steps[this.state.currentStep]?.setInActive();\n this.updateState({\n currentStep: index,\n isDone: isDone\n } as WmWizardState, () => this.showActiveStep());\n }\n\n getStepStyle(index: number) {\n const style = [this.styles.step];\n if (this.state.isDone || index < this.state.currentStep) {\n style.push(this.styles.doneStep);\n } else if (this.state.currentStep === index) {\n style.push(this.styles.activeStep);\n }\n return style;\n }\n\n renderWizardHeader(item: any, index: number) {\n const isLastStep = index === this.numberOfSteps - 1;\n const isFirstStep = index === 0;\n const isActiveStep = index === this.state.currentStep;\n const isNumberTextLayout = this.state.props.classname === 'number-text-inline';\n return item.props.show != false ? (\n <View style={[this.styles.headerWrapper, isNumberTextLayout ?\n {paddingRight: isActiveStep ? 0 : 5, paddingLeft: index === this.state.currentStep + 1 ? 0 : 5}: {}]} key={index+1}>\n <TouchableOpacity style={this.styles.stepWrapper}\n onPress={this.updateCurrentStep.bind(this, index, false)} disabled={index >= this.state.currentStep}>\n <View style={this.getStepStyle(index)}>\n {index >= this.state.currentStep && !this.state.isDone &&\n <Text style={isActiveStep ? this.styles.activeStep : this.styles.stepCounter}>{index+1}</Text>}\n {(index < this.state.currentStep || this.state.isDone) &&\n <WmIcon styles={merge({}, this.styles.stepIcon, {icon: {color: this.styles.activeStep.color}})}\n iconclass={item.props.iconclass || 'wm-sl-l sl-check'}></WmIcon>}\n </View>\n {((isNumberTextLayout && isActiveStep) || !isNumberTextLayout) &&\n <Text style={this.styles.stepTitle}>\n {item.props.title || 'Step Title'}</Text> }\n {this.numberOfSteps > 1 && isActiveStep &&\n <View style={[this.styles.numberTextStepConnector, {width: isLastStep ? 0 : 50}]}></View>}\n </TouchableOpacity>\n {this.numberOfSteps > 1 && <View style={[this.styles.stepConnector, { width: isFirstStep || isLastStep ? '50%' : '100%',\n left: Platform.OS == \"web\"?(!this.isRTL && isFirstStep) || (this.isRTL && isLastStep) ? '50%': '0%': isFirstStep ? '50%': '0%'}]}></View>}\n </View>\n ) : null;\n }\n\n onPrev(steps: any) {\n const index = this.state.currentStep;\n const currentStep = this.steps[index];\n currentStep.invokePrevCB(index);\n this.updateCurrentStep(index - 1);\n }\n\n onNext(steps: any, eventName?: string) {\n const index = this.state.currentStep;\n const currentStep = this.steps[index];\n if (eventName === 'skip') {\n currentStep.invokeSkipCB(index);\n } else {\n currentStep.invokeNextCB(index);\n }\n this.updateCurrentStep(index + 1);\n }\n\n onDone($event: any) {\n this.updateState({\n isDone: true\n } as WmWizardState);\n this.invokeEventCallback('onDone', [$event, this.proxy]);\n }\n\n onCancel() {\n this.invokeEventCallback('onCancel', [null, this.proxy]);\n }\n onSkip(steps: any) {\n this.onNext(steps, 'skip');\n }\n\n renderWidget(props: WmWizardProps) {\n this.numberOfSteps = this.steps.length;\n const activeStep = this.steps[this.state.currentStep];\n const isSkippable = this.steps[this.state.currentStep] && this.steps[this.state.currentStep].props.enableskip;\n return (\n <View style={this.styles.root}>\n {this._background}\n <View style={this.styles.wizardHeader}>\n {this.steps ? this.steps.map((step, i) => this.renderWizardHeader(step, i)) : null}\n </View>\n <View style={this.styles.wizardBody}>\n {props.children}\n </View>\n <View style={[this.styles.wizardFooter,\n {flexDirection: props.actionsalignment === 'right' ? 'row-reverse': 'row'}]}>\n {(this.state.currentStep+1) === this.numberOfSteps &&\n <WmButton iconclass={'wm-sl-l sl-check'} styles={merge({}, this.styles.wizardActions, this.theme.getStyle('btn-default'), this.styles.doneButton)}\n id = {this.getTestId('donebtn')} caption={props.donebtnlabel} onTap={this.onDone.bind(this)}></WmButton>\n }\n {(this.state.currentStep+1) < this.numberOfSteps &&\n <WmButton iconclass={'wi wi-chevron-right'} styles={merge({}, this.styles.wizardActions, this.theme.getStyle('btn-default'), this.styles.nextButton)}\n id = {this.getTestId('nextbtn')} \n iconposition={'right'} caption={props.nextbtnlabel} onTap={this.onNext.bind(this, this.steps)}></WmButton>\n }\n {this.state.currentStep > 0 &&\n <WmButton iconclass={'wi wi-chevron-left'} styles={merge({}, this.theme.getStyle('btn-default'), this.styles.wizardActions, this.styles.prevButton)} caption={props.previousbtnlabel}\n id = {this.getTestId('prevbtn')}\n onTap={this.onPrev.bind(this, this.steps)}></WmButton>\n }\n {props.cancelable ?\n <WmButton id = {this.getTestId('cancelbtn')} caption={props.cancelbtnlabel} styles={merge({}, this.theme.getStyle('btn-default'), this.styles.wizardActions, this.styles.cancelButton)} onTap={this.onCancel.bind(this)}></WmButton>\n : null\n }\n {isSkippable &&\n <WmAnchor iconclass={'wi wi-chevron-right'} iconposition={'right'} caption={'Skip'}\n id = {this.getTestId('skip')} \n styles={merge({}, this.styles.wizardActions, this.styles.skipLink)} onTap={this.onSkip.bind(this, this.steps)}></WmAnchor>\n }\n </View>\n </View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,QAAQ,QAAQ,cAAc;AACrE,SAASC,OAAO,EAAEC,KAAK,QAAQ,QAAQ;AACvC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AAEjG,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,OAAOC,QAAQ,MAAM,oEAAoE;AACzF,OAAOC,MAAM,MAAM,gEAAgE;AACnF,OAAOC,QAAQ,MAAM,oEAAoE;AAGzF,OAAO,MAAMC,aAAa,SAASN,kBAAkB,CAAgB;EAAAO,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,sBAC7C,CAAC;IAAAA,eAAA,iBACL,KAAK;EAAA;AACzB;AAEA,eAAe,MAAMC,QAAQ,SAASX,aAAa,CAA+C;EAGhGQ,WAAWA,CAACI,KAAoB,EAAE;IAChC,KAAK,CAACA,KAAK,EAAET,aAAa,EAAE,IAAID,aAAa,CAAC,CAAC,CAAC;IAACQ,e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ACrB,QAAQ,CAACzB,IAAI,CAAC,IAAI;IAAE,CAAW,CAAC,GACnO,IAAI,EAET4B,WAAW,iBACR7F,KAAA,CAAA0D,aAAA,CAAC7C,QAAQ;MAAC0D,SAAS,EAAE,qBAAsB;MAAC0C,YAAY,EAAE,OAAQ;MAACJ,OAAO,EAAE,MAAO;MACjFF,EAAE,EAAI,IAAI,CAACC,SAAS,CAAC,MAAM,CAAE;MAC7B9D,MAAM,EAAExC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAACwC,MAAM,CAACyD,aAAa,EAAE,IAAI,CAACzD,MAAM,CAAC0E,QAAQ,CAAE;MAACT,KAAK,EAAE,IAAI,CAACpB,MAAM,CAAC1B,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC7C,KAAK;IAAE,CAAW,CAE3H,CACF,CAAC;EAEX;AACF"}
|
|
1
|
+
{"version":3,"names":["React","Text","View","TouchableOpacity","Platform","TouchableWithoutFeedback","isArray","merge","BaseComponent","BaseComponentState","WmWizardProps","DEFAULT_CLASS","WmButton","WmIcon","WmAnchor","WmProgressCircle","WmPopover","WmLabel","WmWizardState","constructor","arguments","_defineProperty","WmWizard","props","onComponentInit","c","popOverRef","steps","children","defaultStepIndex","defaultstep","map","item","index","name","updateCurrentStep","addWizardStep","step","forceUpdate","componentDidMount","showActiveStep","_this$steps$this$stat","state","currentStep","setActive","_this$steps$this$stat2","isDone","length","undefined","setInActive","updateState","getStepStyle","style","styles","push","doneStep","activeStep","renderMenuPopover","menuDataset","getmenudataexpression","Labels","title","createElement","id","getTestId","popover","contentanimation","caption","popoverheight","height","popoverwidth","width","listener","iconclass","popovericonclass","iconposition","type","currentMenuItem","key","onPress","hide","stepMenu","activeStepMenu","stepMenuActiveIcon","stepMenuIcon","stepMenuActiveLabel","stepMenuLabel","renderProgressCircleHeader","progressTitle","progresstitle","headerWrapper","stepWrapper","flex","alignItems","justifyContent","flexDirection","minvalue","maxvalue","datavalue","captionplacement","progresstype","subtitle","progressCircle","stepTitle","stepSubTitle","renderWizardHeader","isLastStep","numberOfSteps","isFirstStep","isActiveStep","isNumberTextLayout","classname","show","paddingRight","paddingLeft","bind","disabled","stepCounter","stepIcon","icon","color","numberTextStepConnector","stepConnector","left","OS","isRTL","onPrev","invokePrevCB","onNext","eventName","invokeSkipCB","invokeNextCB","onDone","$event","invokeEventCallback","proxy","onCancel","onSkip","renderWidget","_this$state$props$cla","isSkippable","enableskip","isProgressCircleHeader","includes","root","_background","wizardHeader","i","wizardBody","wizardFooter","actionsalignment","wizardActions","theme","getStyle","doneButton","donebtnlabel","onTap","nextButton","nextbtnlabel","prevButton","previousbtnlabel","cancelable","cancelbtnlabel","cancelButton","skipLink"],"sources":["wizard.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View, TouchableOpacity, Platform, TouchableWithoutFeedback } from 'react-native';\nimport { isArray, merge } from 'lodash';\nimport { BaseComponent, BaseComponentState, LifecycleListener } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmWizardProps from './wizard.props';\nimport { DEFAULT_CLASS, WmWizardStyles } from './wizard.styles';\nimport WmButton from '@wavemaker/app-rn-runtime/components/basic/button/button.component';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport WmAnchor from '@wavemaker/app-rn-runtime/components/basic/anchor/anchor.component';\nimport WmWizardstep from './wizardstep/wizardstep.component';\nimport WmProgressCircle from '@wavemaker/app-rn-runtime/components/basic/progress-circle/progress-circle.component';\nimport WmPopover from '@wavemaker/app-rn-runtime/components/navigation/popover/popover.component';\nimport WmLabel from '@wavemaker/app-rn-runtime/components/basic/label/label.component';\n\nexport class WmWizardState extends BaseComponentState<WmWizardProps> {\n currentStep: number = 0;\n isDone: boolean = false;\n}\n\nexport default class WmWizard extends BaseComponent<WmWizardProps, WmWizardState, WmWizardStyles> {\n private numberOfSteps: number = null as any;\n private steps = [] as WmWizardstep[];\n private popOverRef: WmPopover = null as any;\n\n private listener: LifecycleListener = {\n onComponentInit: (c) => {\n if (c instanceof WmPopover) {\n this.popOverRef = c;\n }\n }\n };\n\n constructor(props: WmWizardProps) {\n super(props, DEFAULT_CLASS, new WmWizardProps());\n const steps = props.children;\n let defaultStepIndex = 0;\n if (isArray(steps) && props.defaultstep) {\n steps.map((item: any, index: any) => {\n if (props.defaultstep === item.props.name) {\n defaultStepIndex = index;\n }\n })\n }\n this.updateCurrentStep(defaultStepIndex);\n }\n\n addWizardStep(step: WmWizardstep) {\n this.steps[step.props.index] = step;\n this.forceUpdate();\n }\n\n componentDidMount() {\n super.componentDidMount();\n this.showActiveStep();\n }\n\n showActiveStep() {\n this.steps[this.state.currentStep]?.setActive();\n }\n\n updateCurrentStep(index: number, isDone = false) {\n this.steps[this.state.currentStep]?.setInActive();\n this.updateState({\n currentStep: index,\n isDone: isDone\n } as WmWizardState, () => this.showActiveStep());\n }\n\n getStepStyle(index: number) {\n const style = [this.styles.step];\n if (this.state.isDone || index < this.state.currentStep) {\n style.push(this.styles.doneStep);\n } else if (this.state.currentStep === index) {\n style.push(this.styles.activeStep);\n }\n return style;\n }\n\n renderMenuPopover(){\n const menuDataset = this.props.getmenudataexpression || ((item: any, index: number) => '') ;\n const Labels = this.steps.map((step: WmWizardstep) => step.state.props.title);\n return (\n <WmPopover\n id={this.getTestId('menu')}\n styles={this.styles.popover}\n contentanimation={'slideInDown'}\n caption={''}\n popoverheight={this.styles.popover.popover.height as string | number | undefined || null}\n popoverwidth={this.styles.popover.popover.width as string | number | undefined || null}\n listener={this.listener}\n iconclass={this.props.popovericonclass || 'fa fa-caret-down'}\n iconposition=\"right\"\n type='dropdown'>\n <View style={this.styles.popover.popover}>\n {Labels.map((item: any, index: number) => {\n const currentMenuItem = index==this.state.currentStep;\n const caption = menuDataset({\"count\":this.steps.length}, index); \n return (\n <TouchableWithoutFeedback key={'wizard_menu_item_'+index} onPress={()=>{this.popOverRef.hide();}}>\n <View style={[this.styles.stepMenu, currentMenuItem?this.styles.activeStepMenu:{}]}>\n <WmIcon caption={caption} iconclass={currentMenuItem? \"wi wi-radio-button-checked\" : 'wi wi-radio-button-unchecked'} styles={currentMenuItem?this.styles.stepMenuActiveIcon:this.styles.stepMenuIcon}/>\n <WmLabel caption={item} styles={currentMenuItem?this.styles.stepMenuActiveLabel:this.styles.stepMenuLabel}/>\n </View>\n </TouchableWithoutFeedback>\n )})}\n </View>\n </WmPopover>\n );\n }\n\n renderProgressCircleHeader(item: any, index: number) {\n const progressTitle = this.props.progresstitle || (index + 1 + '/' + this.steps.length);\n return (\n <View style={[this.styles.headerWrapper]} key={index + 1}>\n <View style={this.styles.stepWrapper}>\n <View style={{ flex: 1, alignItems: 'flex-start', justifyContent: 'center', flexDirection:'row' }}>\n <WmProgressCircle minvalue={0} maxvalue={this.steps.length} datavalue={index + 1} captionplacement={'inside'} type={this.props.progresstype} title={progressTitle} subtitle={''} styles={this.styles.progressCircle} />\n </View>\n <View style={{ flex: 2, justifyContent: 'center', flexDirection: 'column' }}>\n <Text style={this.styles.stepTitle}>\n {item.props.title || 'Step Title'}</Text>\n <Text style={this.styles.stepSubTitle}>\n {item.props.subtitle || 'Step Sub Title'}</Text>\n </View>\n <View style={{ flexDirection: 'row', alignItems: 'flex-end', justifyContent: 'flex-end' }}>\n {this.renderMenuPopover()}\n </View>\n </View>\n </View>\n );\n }\n\n renderWizardHeader(item: any, index: number) {\n const isLastStep = index === this.numberOfSteps - 1;\n const isFirstStep = index === 0;\n const isActiveStep = index === this.state.currentStep;\n const isNumberTextLayout = this.state.props.classname === 'number-text-inline';\n return item.props.show != false ? (\n <View style={[this.styles.headerWrapper, isNumberTextLayout ?\n {paddingRight: isActiveStep ? 0 : 5, paddingLeft: index === this.state.currentStep + 1 ? 0 : 5}: {}]} key={index+1}>\n <TouchableOpacity style={this.styles.stepWrapper}\n onPress={this.updateCurrentStep.bind(this, index, false)} disabled={index >= this.state.currentStep}>\n <View style={this.getStepStyle(index)}>\n {index >= this.state.currentStep && !this.state.isDone &&\n <Text style={isActiveStep ? this.styles.activeStep : this.styles.stepCounter}>{index+1}</Text>}\n {(index < this.state.currentStep || this.state.isDone) &&\n <WmIcon styles={merge({}, this.styles.stepIcon, {icon: {color: this.styles.activeStep.color}})}\n iconclass={item.props.iconclass || 'wm-sl-l sl-check'}></WmIcon>}\n </View>\n {((isNumberTextLayout && isActiveStep) || !isNumberTextLayout) &&\n <Text style={this.styles.stepTitle}>\n {item.props.title || 'Step Title'}</Text> }\n {this.numberOfSteps > 1 && isActiveStep &&\n <View style={[this.styles.numberTextStepConnector, {width: isLastStep ? 0 : 50}]}></View>}\n </TouchableOpacity>\n {this.numberOfSteps > 1 && <View style={[this.styles.stepConnector, { width: isFirstStep || isLastStep ? '50%' : '100%',\n left: Platform.OS == \"web\"?(!this.isRTL && isFirstStep) || (this.isRTL && isLastStep) ? '50%': '0%': isFirstStep ? '50%': '0%'}]}></View>}\n </View>\n ) : null;\n }\n\n onPrev(steps: any) {\n const index = this.state.currentStep;\n const currentStep = this.steps[index];\n currentStep.invokePrevCB(index);\n this.updateCurrentStep(index - 1);\n }\n\n onNext(steps: any, eventName?: string) {\n const index = this.state.currentStep;\n const currentStep = this.steps[index];\n if (eventName === 'skip') {\n currentStep.invokeSkipCB(index);\n } else {\n currentStep.invokeNextCB(index);\n }\n this.updateCurrentStep(index + 1);\n }\n\n onDone($event: any) {\n this.updateState({\n isDone: true\n } as WmWizardState);\n this.invokeEventCallback('onDone', [$event, this.proxy]);\n }\n\n onCancel() {\n this.invokeEventCallback('onCancel', [null, this.proxy]);\n }\n onSkip(steps: any) {\n this.onNext(steps, 'skip');\n }\n\n renderWidget(props: WmWizardProps) {\n this.numberOfSteps = this.steps.length;\n const activeStep = this.steps[this.state.currentStep];\n const isSkippable = this.steps[this.state.currentStep] && this.steps[this.state.currentStep].props.enableskip;\n const isProgressCircleHeader = this.state.props.classname?.includes('progress-circle-header');\n return (\n <View style={this.styles.root}>\n {this._background}\n <View style={this.styles.wizardHeader}>\n {activeStep && isProgressCircleHeader ? (this.renderProgressCircleHeader(activeStep, this.state.currentStep)) : (this.steps ? this.steps.map((step, i) => this.renderWizardHeader(step, i)) : null)}\n </View>\n <View style={this.styles.wizardBody}>\n {props.children}\n </View>\n <View style={[this.styles.wizardFooter,\n {flexDirection: props.actionsalignment === 'right' ? 'row-reverse': 'row'}]}>\n {(this.state.currentStep+1) === this.numberOfSteps &&\n <WmButton iconclass={'wm-sl-l sl-check'} styles={merge({}, this.styles.wizardActions, this.theme.getStyle('btn-default'), this.styles.doneButton)}\n id = {this.getTestId('donebtn')} caption={props.donebtnlabel} onTap={this.onDone.bind(this)}></WmButton>\n }\n {(this.state.currentStep+1) < this.numberOfSteps &&\n <WmButton iconclass={'wi wi-chevron-right'} styles={merge({}, this.styles.wizardActions, this.theme.getStyle('btn-default'), this.styles.nextButton)}\n id = {this.getTestId('nextbtn')} \n iconposition={'right'} caption={props.nextbtnlabel} onTap={this.onNext.bind(this, this.steps)}></WmButton>\n }\n {this.state.currentStep > 0 &&\n <WmButton iconclass={'wi wi-chevron-left'} styles={merge({}, this.theme.getStyle('btn-default'), this.styles.wizardActions, this.styles.prevButton)} caption={props.previousbtnlabel}\n id = {this.getTestId('prevbtn')}\n onTap={this.onPrev.bind(this, this.steps)}></WmButton>\n }\n {props.cancelable ?\n <WmButton id = {this.getTestId('cancelbtn')} caption={props.cancelbtnlabel} styles={merge({}, this.theme.getStyle('btn-default'), this.styles.wizardActions, this.styles.cancelButton)} onTap={this.onCancel.bind(this)}></WmButton>\n : null\n }\n {isSkippable &&\n <WmAnchor iconclass={'wi wi-chevron-right'} iconposition={'right'} caption={'Skip'}\n id = {this.getTestId('skip')} \n styles={merge({}, this.styles.wizardActions, this.styles.skipLink)} onTap={this.onSkip.bind(this, this.steps)}></WmAnchor>\n }\n </View>\n </View>\n );\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,QAAQ,EAAEC,wBAAwB,QAAQ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yB,WAAW,iBACR5I,KAAA,CAAA8D,aAAA,CAAChD,QAAQ;MAAC2D,SAAS,EAAE,qBAAsB;MAACE,YAAY,EAAE,OAAQ;MAACR,OAAO,EAAE,MAAO;MACjFJ,EAAE,EAAI,IAAI,CAACC,SAAS,CAAC,MAAM,CAAE;MAC7BX,MAAM,EAAE9C,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC8C,MAAM,CAACkG,aAAa,EAAE,IAAI,CAAClG,MAAM,CAAC+G,QAAQ,CAAE;MAACR,KAAK,EAAE,IAAI,CAACnB,MAAM,CAACtB,IAAI,CAAC,IAAI,EAAE,IAAI,CAACxF,KAAK;IAAE,CAAW,CAE3H,CACF,CAAC;EAEX;AACF"}
|
|
@@ -13,6 +13,10 @@ export default class WmWizardProps extends BaseProps {
|
|
|
13
13
|
_defineProperty(this, "nextbtnlabel", 'Next');
|
|
14
14
|
_defineProperty(this, "previousbtnlabel", 'Previous');
|
|
15
15
|
_defineProperty(this, "defaultstep", 'none');
|
|
16
|
+
_defineProperty(this, "progresstitle", '');
|
|
17
|
+
_defineProperty(this, "progresstype", 'default');
|
|
18
|
+
_defineProperty(this, "getmenudataexpression", undefined);
|
|
19
|
+
_defineProperty(this, "popovericonclass", 'fa fa-caret-down');
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
//# sourceMappingURL=wizard.props.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BaseProps","WmWizardProps","constructor","arguments","_defineProperty"],"sources":["wizard.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmWizardProps extends BaseProps {\n actionsalignment: string = 'right';\n children: any;\n cancelable: boolean = true;\n cancelbtnlabel: string = 'Cancel';\n donebtnlabel: string = 'Done';\n nextbtnlabel: string = 'Next';\n previousbtnlabel: string = 'Previous';\n defaultstep: string = 'none';\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,2BACxB,OAAO;IAAAA,eAAA;IAAAA,eAAA,qBAEZ,IAAI;IAAAA,eAAA,yBACD,QAAQ;IAAAA,eAAA,uBACV,MAAM;IAAAA,eAAA,uBACN,MAAM;IAAAA,eAAA,2BACF,UAAU;IAAAA,eAAA,sBACf,MAAM;EAAA;
|
|
1
|
+
{"version":3,"names":["BaseProps","WmWizardProps","constructor","arguments","_defineProperty","undefined"],"sources":["wizard.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmWizardProps extends BaseProps {\n actionsalignment: string = 'right';\n children: any;\n cancelable: boolean = true;\n cancelbtnlabel: string = 'Cancel';\n donebtnlabel: string = 'Done';\n nextbtnlabel: string = 'Next';\n previousbtnlabel: string = 'Previous';\n defaultstep: string = 'none';\n progresstitle: string = '';\n progresstype: 'default' | 'success' | 'info' | 'warning' | 'error' = 'default';\n getmenudataexpression: any = undefined;\n popovericonclass: string = 'fa fa-caret-down';\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,2BACxB,OAAO;IAAAA,eAAA;IAAAA,eAAA,qBAEZ,IAAI;IAAAA,eAAA,yBACD,QAAQ;IAAAA,eAAA,uBACV,MAAM;IAAAA,eAAA,uBACN,MAAM;IAAAA,eAAA,2BACF,UAAU;IAAAA,eAAA,sBACf,MAAM;IAAAA,eAAA,wBACJ,EAAE;IAAAA,eAAA,uBAC2C,SAAS;IAAAA,eAAA,gCACjDC,SAAS;IAAAD,eAAA,2BACX,kBAAkB;EAAA;AAC/C"}
|
|
@@ -47,10 +47,8 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
|
|
|
47
47
|
wizardFooter: {
|
|
48
48
|
flexDirection: 'row',
|
|
49
49
|
justifyContent: 'flex-start',
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
width: '100%',
|
|
53
|
-
marginLeft: 14
|
|
50
|
+
padding: 12,
|
|
51
|
+
width: '100%'
|
|
54
52
|
},
|
|
55
53
|
buttonWrapper: {
|
|
56
54
|
flexDirection: 'row'
|
|
@@ -60,6 +58,9 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
|
|
|
60
58
|
fontSize: 12,
|
|
61
59
|
color: themeVariables.wizardStepTitleColor
|
|
62
60
|
},
|
|
61
|
+
stepSubTitle: {
|
|
62
|
+
color: themeVariables.wizardStepTitleColor
|
|
63
|
+
},
|
|
63
64
|
step: {
|
|
64
65
|
alignItems: 'center',
|
|
65
66
|
justifyContent: 'center',
|
|
@@ -137,7 +138,15 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
|
|
|
137
138
|
stepCounter: {
|
|
138
139
|
fontSize: 15,
|
|
139
140
|
color: themeVariables.wizardStepColor
|
|
140
|
-
}
|
|
141
|
+
},
|
|
142
|
+
progressCircle: {},
|
|
143
|
+
popover: {},
|
|
144
|
+
stepMenu: {},
|
|
145
|
+
activeStepMenu: {},
|
|
146
|
+
stepMenuLabel: {},
|
|
147
|
+
stepMenuActiveLabel: {},
|
|
148
|
+
stepMenuIcon: {},
|
|
149
|
+
stepMenuActiveIcon: {}
|
|
141
150
|
});
|
|
142
151
|
addStyle(DEFAULT_CLASS, '', defaultStyles);
|
|
143
152
|
addStyle('number-text-inline', '', {
|
|
@@ -162,6 +171,95 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
|
|
|
162
171
|
padding: 5
|
|
163
172
|
}
|
|
164
173
|
});
|
|
174
|
+
addStyle('progress-circle-header', '', {
|
|
175
|
+
stepWrapper: {
|
|
176
|
+
paddingBottom: 4,
|
|
177
|
+
flexDirection: 'row',
|
|
178
|
+
alignItems: 'center'
|
|
179
|
+
},
|
|
180
|
+
wizardHeader: {
|
|
181
|
+
justifyContent: 'flex-start',
|
|
182
|
+
alignItems: 'center',
|
|
183
|
+
backgroundColor: themeVariables.wizardBackgroundColor,
|
|
184
|
+
height: 120,
|
|
185
|
+
borderRadius: 30
|
|
186
|
+
},
|
|
187
|
+
stepSubTitle: {
|
|
188
|
+
fontSize: 12,
|
|
189
|
+
paddingHorizontal: 5
|
|
190
|
+
},
|
|
191
|
+
headerWrapper: {
|
|
192
|
+
flex: 1
|
|
193
|
+
},
|
|
194
|
+
stepTitle: {
|
|
195
|
+
fontSize: 16,
|
|
196
|
+
paddingHorizontal: 5
|
|
197
|
+
},
|
|
198
|
+
progressCircle: {
|
|
199
|
+
root: {
|
|
200
|
+
height: 60,
|
|
201
|
+
width: 60
|
|
202
|
+
},
|
|
203
|
+
text: {},
|
|
204
|
+
progressValue: {
|
|
205
|
+
height: 8
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
popover: {
|
|
209
|
+
popover: {
|
|
210
|
+
width: 160,
|
|
211
|
+
paddingTop: 8,
|
|
212
|
+
paddingBottom: 8,
|
|
213
|
+
backgroundColor: themeVariables.menuBackgroundColor,
|
|
214
|
+
minHeight: 160,
|
|
215
|
+
borderBottomLeftRadius: 28,
|
|
216
|
+
borderBottomRightRadius: 28
|
|
217
|
+
},
|
|
218
|
+
popoverContent: {
|
|
219
|
+
root: {
|
|
220
|
+
//@ts-ignore
|
|
221
|
+
flex: undefined
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
modalContent: {
|
|
225
|
+
borderBottomLeftRadius: 28,
|
|
226
|
+
borderBottomRightRadius: 28
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
stepMenu: {
|
|
230
|
+
flexDirection: 'row',
|
|
231
|
+
padding: 14,
|
|
232
|
+
alignItems: 'center',
|
|
233
|
+
justifyContent: 'flex-start'
|
|
234
|
+
},
|
|
235
|
+
activeStepMenu: {},
|
|
236
|
+
stepMenuLabel: {
|
|
237
|
+
text: {
|
|
238
|
+
color: themeVariables.menuItemTextColor
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
stepMenuActiveLabel: {
|
|
242
|
+
text: {
|
|
243
|
+
color: themeVariables.primaryColor
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
stepMenuIcon: {
|
|
247
|
+
root: {
|
|
248
|
+
paddingRight: 4
|
|
249
|
+
},
|
|
250
|
+
text: {
|
|
251
|
+
color: themeVariables.menuItemTextColor
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
stepMenuActiveIcon: {
|
|
255
|
+
root: {
|
|
256
|
+
paddingRight: 4
|
|
257
|
+
},
|
|
258
|
+
text: {
|
|
259
|
+
color: themeVariables.primaryColor
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
});
|
|
165
263
|
addStyle(DEFAULT_CLASS + '-rtl', '', {
|
|
166
264
|
wizardActions: {
|
|
167
265
|
icon: {
|