-
Notifications
You must be signed in to change notification settings - Fork 3
/
caribou-stepper-stepper-property-mixin.html
111 lines (99 loc) · 3.68 KB
/
caribou-stepper-stepper-property-mixin.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<script>
window.Caribouflex = window.Caribouflex || {};
Caribouflex.Stepper = Caribouflex.Stepper || {};
/**
* @polymer
* @mixinFunction
*/
Caribouflex.Stepper.StepperPropertyMixin = function (superClass) {
return class extends superClass {
static get properties() {
return {
/**
* This property is used to indicate if the stepper require users to complete one step in order to move on to the next.
* If linear is false, it allow users to enter a multi-step flow at any point.
*/
linear: {
type: Boolean,
value: false
},
/**
* This is used to know if the stepper is render vertically or horizontally.
*/
horizontal: {
type: Boolean,
value: false
},
/**
* This property is used to indicate when the view is displayed for mobile.
*/
mobile: {
type: Boolean,
value: false
},
/**
* If true, after the stepper is loaded, if will open the first step.
*/
openFirstStepOnStartup: {
type: Boolean,
value: false
},
/**
* This is the active step element.
* If the property is equal to :
* - null : That means there is no step active
* - undefined : That means no step has been opened yet.
*/
activeStep: {
type: Object
},
/**
* This is the step following the current active step.
*/
nextStep: {
type: Object
},
/**
* This is the step that can be open before the active step.
* It can be an editabled step or a step unsaved.
*/
previousStep: {
type: Object
},
/**
* Property used to indicate if the stepper is finished or not.
* @readonly
*/
finish: {
type: Boolean,
value: false,
readOnly: true
},
/**
* Quantity total of step inside the stepper.
*/
numberOfStep: {
type: Number,
value: 0
},
/**
* Used for the transition in horizontal mode.
* This is the step where we are going. (step targeting)
* @private
*/
__toStep: {
type: Object
},
/**
* Used for the transition in horizontal mode.
* This is the step we are coming from.
* @private
*/
__fromStep: {
type: Object
}
}
}
}
}
</script>