-
Notifications
You must be signed in to change notification settings - Fork 2
/
CalendarCfgBeans.js
137 lines (135 loc) · 6.27 KB
/
CalendarCfgBeans.js
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/*
* Copyright 2012 Amadeus s.a.s.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(function () {
var basePackage = "atplugins.lightWidgets";
var basePath = basePackage + ".";
var nspace = Aria.nspace(basePackage, true);
Aria.beanDefinitions({
$package : basePath + "calendar.CalendarCfgBeans",
$description : "Configuration for the light calendar widget.",
$namespaces : {
"json" : "aria.core.JsonTypes",
"common" : "aria.widgetLibs.CommonBeans",
"base" : "aria.html.beans.ElementCfg"
},
$beans : {
"Properties" : {
$type : "base:Properties",
$description : "Properties of a Text Input widget.",
$properties : {
"bind" : {
$type : "base:Properties.$properties.bind",
$description : "Bindings",
$properties : {
"value" : {
$type : "common:BindingRef"
},
"startDate" : {
$type : "common:BindingRef"
}
}
},
"tagName" : {
$type : "base:Properties.$properties.tagName",
$description : "Tag that should surround the calendar",
$mandatory : false,
$default : "span"
},
"template" : {
$type : "json:PackageName",
$description : "Template to use to display the calendar.",
$default : basePath + "calendar.CalendarTemplate"
},
"label" : {
$type : "json:String",
$description : "Label text to associate to the calendar."
},
"showWeekNumbers" : {
$type : "json:Boolean",
$description : "Specifies whether week numbers should be displayed.",
$default : true
},
"value" : {
$type : "json:Date",
$description : "Date currently selected in the calendar."
},
"minValue" : {
$type : "json:Date",
$description : "Minimum date for the value property."
},
"maxValue" : {
$type : "json:Date",
$description : "Maximum date for the value property."
},
"displayUnit" : {
$type : "json:Enum",
$description : "Minimum time unit which must be displayed entirely in the calendar. May be either month (M) or week (W). The default template currently only supports month (M).",
$enumValues : ["M", "W"],
$default : "M"
},
"numberOfUnits" : {
$type : "json:Integer",
$description : "Number of display units to show at the same time.",
$default : 3
},
"startDate" : {
$type : "json:Date",
$description : "Approximate first date in the currently displayed calendar. However, as the calendar may have a display with whole weeks or whole months, dates before this date may also appear."
},
"firstDayOfWeek" : {
$type : "json:Integer",
$description : "First day of the week. 0 = Sunday, ... 6 = Saturday. The null value means that it is set according to the regional settings.",
$minValue : 0,
$maxValue : 6
},
"monthLabelFormat" : {
$type : "json:String",
$description : "Date pattern to be used when displaying each month.",
$default : "MMMM yyyy"
},
"dayOfWeekLabelFormat" : {
$type : "json:String",
$description : "Date pattern to be used when displaying each day of the week.",
$default : "EE"
},
"dateLabelFormat" : {
$type : "json:String",
$description : "Date pattern to be used when displaying each date in the calendar.",
$default : "d"
},
"completeDateLabelFormat" : {
$type : "json:String",
$description : "Date pattern to be used when displaying complete dates."
},
"showShortcuts" : {
$type : "json:Boolean",
$description : "Specifies if today and selected day shortcuts should be displayed",
$default : true
},
"restrainedNavigation" : {
$type : "json:Boolean",
$description : "Specifies if today and selected day shortcuts should be displayed",
$default : true
},
"sclass" : {
$type : "json:String",
$description : "skin class for the calendar",
$default : "std"
}
}
}
}
});
})();