goblin-gadgets 3.2.2 → 3.2.3

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.
Files changed (361) hide show
  1. package/.editorconfig +9 -9
  2. package/.eslintrc.js +28 -28
  3. package/.zou-flow +2 -2
  4. package/builders/builders.js +5 -5
  5. package/builders/gadget.js +85 -85
  6. package/calendar-boards-gadget.js +64 -64
  7. package/demo-gadget.js +17 -17
  8. package/glyphs-dialog.js +13 -13
  9. package/login-dialog.js +13 -13
  10. package/package.json +46 -46
  11. package/pivot-gadget.js +18 -18
  12. package/stack-navigation.js +13 -13
  13. package/table-gadget.js +102 -102
  14. package/test/code-parser.spec.js +61 -61
  15. package/tree-gadget.js +70 -70
  16. package/types/types.js +455 -455
  17. package/widgets/accordion/styles.js +16 -16
  18. package/widgets/accordion/widget.js +90 -90
  19. package/widgets/analog-clock/props.js +102 -102
  20. package/widgets/analog-clock/scenarios.js +43 -43
  21. package/widgets/analog-clock/styles.js +754 -754
  22. package/widgets/analog-clock/widget.js +404 -404
  23. package/widgets/animated-container/animations.js +566 -566
  24. package/widgets/animated-container/styles.js +36 -36
  25. package/widgets/animated-container/widget.js +24 -24
  26. package/widgets/badge/styles.js +107 -107
  27. package/widgets/badge/widget.js +33 -33
  28. package/widgets/button/props.js +377 -377
  29. package/widgets/button/scenarios.js +54 -54
  30. package/widgets/button/styles.js +1082 -1082
  31. package/widgets/button/widget.js +426 -426
  32. package/widgets/button-combo/styles.js +73 -73
  33. package/widgets/button-combo/widget.js +297 -297
  34. package/widgets/calendar/props.js +207 -207
  35. package/widgets/calendar/scenarios.js +50 -50
  36. package/widgets/calendar/styles.js +198 -198
  37. package/widgets/calendar/widget.js +895 -895
  38. package/widgets/calendar-boards/styles.js +29 -29
  39. package/widgets/calendar-boards/widget.js +215 -215
  40. package/widgets/calendar-button/styles.js +273 -273
  41. package/widgets/calendar-button/widget.js +94 -94
  42. package/widgets/calendar-list/styles.js +35 -35
  43. package/widgets/calendar-list/widget.js +223 -223
  44. package/widgets/calendar-recurrence/widget.js +183 -183
  45. package/widgets/carousel/props.js +104 -104
  46. package/widgets/carousel/scenarios.js +163 -163
  47. package/widgets/carousel/styles.js +133 -133
  48. package/widgets/carousel/widget.js +491 -491
  49. package/widgets/carousel-bullet/styles.js +29 -29
  50. package/widgets/carousel-bullet/widget.js +25 -25
  51. package/widgets/carousel-button/styles.js +71 -71
  52. package/widgets/carousel-button/widget.js +33 -33
  53. package/widgets/carousel-item/styles.js +21 -21
  54. package/widgets/carousel-item/widget.js +24 -24
  55. package/widgets/chat-balloon/props.js +65 -65
  56. package/widgets/chat-balloon/scenarios.js +47 -47
  57. package/widgets/chat-balloon/styles.js +193 -193
  58. package/widgets/chat-balloon/widget.js +62 -62
  59. package/widgets/chat-dialog/styles.js +15 -15
  60. package/widgets/chat-dialog/widget.js +62 -62
  61. package/widgets/check-list/styles.js +66 -66
  62. package/widgets/check-list/widget.js +168 -168
  63. package/widgets/checkbox/widget.js +15 -15
  64. package/widgets/checkbox-nc/props.js +191 -191
  65. package/widgets/checkbox-nc/scenarios.js +41 -41
  66. package/widgets/checkbox-nc/styles.js +122 -122
  67. package/widgets/checkbox-nc/widget.js +116 -116
  68. package/widgets/clock-combo/styles.js +174 -174
  69. package/widgets/clock-combo/widget.js +390 -390
  70. package/widgets/color-picker/props.js +145 -145
  71. package/widgets/color-picker/scenarios.js +34 -34
  72. package/widgets/color-picker/styles.js +209 -209
  73. package/widgets/color-picker/widget.js +735 -735
  74. package/widgets/colored-container/props.js +34 -34
  75. package/widgets/colored-container/scenarios.js +54 -54
  76. package/widgets/colored-container/styles.js +100 -100
  77. package/widgets/colored-container/widget.js +27 -27
  78. package/widgets/combo/styles.js +69 -69
  79. package/widgets/combo/widget.js +224 -224
  80. package/widgets/combo-container/styles.js +66 -66
  81. package/widgets/combo-container/widget.js +188 -188
  82. package/widgets/command-button/widget.js +39 -39
  83. package/widgets/container/props.js +295 -295
  84. package/widgets/container/scenarios.js +47 -47
  85. package/widgets/container/styles.js +1439 -1439
  86. package/widgets/container/widget.js +279 -279
  87. package/widgets/demo/widget.js +24 -24
  88. package/widgets/dialog/styles.js +29 -29
  89. package/widgets/dialog/widget.js +26 -26
  90. package/widgets/dialog-modal/props.js +126 -126
  91. package/widgets/dialog-modal/styles.js +234 -234
  92. package/widgets/dialog-modal/widget.js +273 -273
  93. package/widgets/dialog-resizable/props.js +1 -1
  94. package/widgets/dialog-resizable/scenarios.js +18 -18
  95. package/widgets/dialog-resizable/widget.js +367 -367
  96. package/widgets/dialog-resizable-nc/props.js +150 -150
  97. package/widgets/dialog-resizable-nc/scenarios.js +18 -18
  98. package/widgets/dialog-resizable-nc/styles.js +259 -259
  99. package/widgets/dialog-resizable-nc/widget.js +197 -197
  100. package/widgets/directory-input/widget.js +18 -18
  101. package/widgets/directory-input-nc/widget.js +20 -20
  102. package/widgets/document-container/getPath.js +43 -43
  103. package/widgets/document-container/props.js +79 -79
  104. package/widgets/document-container/scenarios.js +39 -39
  105. package/widgets/document-container/styles.js +69 -69
  106. package/widgets/document-container/widget.js +53 -53
  107. package/widgets/drag-cab/styles.js +56 -56
  108. package/widgets/drag-cab/widget.js +285 -285
  109. package/widgets/drag-carrier/styles.js +21 -21
  110. package/widgets/drag-carrier/widget.js +780 -780
  111. package/widgets/dynamic-toolbar/styles.js +110 -110
  112. package/widgets/dynamic-toolbar/widget.js +128 -128
  113. package/widgets/field/readonly/label.js +39 -39
  114. package/widgets/field/widget.js +1743 -1743
  115. package/widgets/file-input/widget.js +18 -18
  116. package/widgets/file-input-nc/styles.js +38 -38
  117. package/widgets/file-input-nc/widget.js +88 -88
  118. package/widgets/flat-combo/styles.js +21 -21
  119. package/widgets/flat-combo/widget.js +61 -61
  120. package/widgets/flat-list/styles.js +30 -30
  121. package/widgets/flat-list/widget.js +219 -219
  122. package/widgets/flying-balloon/styles.js +52 -52
  123. package/widgets/flying-balloon/widget.js +43 -43
  124. package/widgets/fragment/widget.js +26 -26
  125. package/widgets/full-screen/props.js +27 -27
  126. package/widgets/full-screen/styles.js +32 -32
  127. package/widgets/full-screen/widget.js +40 -40
  128. package/widgets/gauge/props.js +71 -71
  129. package/widgets/gauge/scenarios.js +83 -83
  130. package/widgets/gauge/styles.js +183 -183
  131. package/widgets/gauge/widget.js +36 -36
  132. package/widgets/glyph-detail/service.js +9 -9
  133. package/widgets/glyph-detail/widget.js +109 -109
  134. package/widgets/glyphs-dialog/service.js +94 -94
  135. package/widgets/glyphs-dialog/styles.js +37 -37
  136. package/widgets/glyphs-dialog/widget.js +236 -236
  137. package/widgets/goblin-editor/widget.js +146 -146
  138. package/widgets/guild-entry/props.js +53 -53
  139. package/widgets/guild-entry/scenarios.js +26 -26
  140. package/widgets/guild-entry/styles.js +98 -98
  141. package/widgets/guild-entry/widget.js +126 -126
  142. package/widgets/guild-user-logo/guild-helpers.js +77 -77
  143. package/widgets/guild-user-logo/props.js +48 -48
  144. package/widgets/guild-user-logo/scenarios.js +64 -64
  145. package/widgets/guild-user-logo/styles.js +114 -114
  146. package/widgets/guild-user-logo/widget.js +81 -81
  147. package/widgets/guild-user-profile/props.js +73 -73
  148. package/widgets/guild-user-profile/scenarios.js +54 -54
  149. package/widgets/guild-user-profile/styles.js +162 -162
  150. package/widgets/guild-user-profile/widget.js +202 -202
  151. package/widgets/helpers/combo-helpers.js +218 -218
  152. package/widgets/helpers/geom-helpers.js +80 -80
  153. package/widgets/helpers/rect-helpers.js +10 -10
  154. package/widgets/helpers/shortcut-helpers.js +56 -56
  155. package/widgets/helpers/spacing-helpers.js +26 -26
  156. package/widgets/helpers/svg-helpers.js +151 -151
  157. package/widgets/helpers/table-helpers.js +68 -68
  158. package/widgets/hinter/styles.js +79 -79
  159. package/widgets/hinter/widget.js +205 -205
  160. package/widgets/hinter-column/widget.js +49 -49
  161. package/widgets/hinter-field/reducer.js +18 -18
  162. package/widgets/hinter-field/widget.js +176 -176
  163. package/widgets/hinter-field-nc/props.js +114 -114
  164. package/widgets/hinter-field-nc/scenarios.js +47 -47
  165. package/widgets/hinter-field-nc/widget.js +191 -191
  166. package/widgets/input-wrapper/widget.js +157 -157
  167. package/widgets/key-trap.js +96 -96
  168. package/widgets/label/props.js +1 -1
  169. package/widgets/label/scenarios.js +1 -1
  170. package/widgets/label/widget.js +7 -7
  171. package/widgets/label-nc/props.js +308 -308
  172. package/widgets/label-nc/scenarios.js +29 -29
  173. package/widgets/label-nc/styles.js +1218 -1218
  174. package/widgets/label-nc/widget.js +314 -314
  175. package/widgets/label-row/props.js +1 -1
  176. package/widgets/label-row/scenarios.js +1 -1
  177. package/widgets/label-row/widget.js +7 -7
  178. package/widgets/label-row-nc/props.js +94 -94
  179. package/widgets/label-row-nc/scenarios.js +46 -46
  180. package/widgets/label-row-nc/widget.js +81 -81
  181. package/widgets/label-text-field/styles.js +55 -55
  182. package/widgets/label-text-field/widget.js +178 -178
  183. package/widgets/launcher/props.js +177 -177
  184. package/widgets/launcher/scenarios.js +55 -55
  185. package/widgets/launcher/styles.js +46 -46
  186. package/widgets/launcher/widget.js +79 -79
  187. package/widgets/launcher-blob/props.js +25 -25
  188. package/widgets/launcher-blob/scenarios.js +24 -24
  189. package/widgets/launcher-blob/styles.js +62 -62
  190. package/widgets/launcher-blob/widget.js +50 -50
  191. package/widgets/list/widget.js +211 -211
  192. package/widgets/login-dialog/service.js +117 -117
  193. package/widgets/login-dialog/widget.js +117 -117
  194. package/widgets/map/reaflet.js +208 -208
  195. package/widgets/map/widget.js +67 -67
  196. package/widgets/markdown/styles.js +85 -85
  197. package/widgets/markdown/widget.js +31 -31
  198. package/widgets/notification/styles.js +97 -97
  199. package/widgets/notification/widget.js +207 -207
  200. package/widgets/pivot/custom.css +320 -320
  201. package/widgets/pivot/widget.js +42 -42
  202. package/widgets/radio-list/styles.js +48 -48
  203. package/widgets/radio-list/widget.js +111 -111
  204. package/widgets/resizable-container/styles.js +108 -108
  205. package/widgets/resizable-container/widget.js +225 -225
  206. package/widgets/retro-action-button/helpers.js +106 -106
  207. package/widgets/retro-action-button/styles.js +285 -285
  208. package/widgets/retro-action-button/widget.js +364 -364
  209. package/widgets/retro-badge-button/styles.js +87 -87
  210. package/widgets/retro-badge-button/widget.js +251 -251
  211. package/widgets/retro-gear/helpers.js +156 -156
  212. package/widgets/retro-gear/styles.js +130 -130
  213. package/widgets/retro-gear/widget.js +51 -51
  214. package/widgets/retro-illuminated-button/styles.js +274 -274
  215. package/widgets/retro-illuminated-button/widget.js +147 -147
  216. package/widgets/retro-panel/helpers.js +57 -57
  217. package/widgets/retro-panel/styles.js +293 -293
  218. package/widgets/retro-panel/widget.js +239 -239
  219. package/widgets/retro-screw/styles.js +80 -80
  220. package/widgets/retro-screw/widget.js +25 -25
  221. package/widgets/rocket/props.js +124 -124
  222. package/widgets/rocket/scenarios.js +71 -71
  223. package/widgets/rocket/styles.js +306 -306
  224. package/widgets/rocket/widget.js +225 -225
  225. package/widgets/samples-monitor/helpers.js +147 -147
  226. package/widgets/samples-monitor/styles.js +529 -529
  227. package/widgets/samples-monitor/widget.js +516 -516
  228. package/widgets/scrollable-container/styles.js +58 -58
  229. package/widgets/scrollable-container/widget.js +132 -132
  230. package/widgets/scrollable-linkable-container/reducer.js +18 -18
  231. package/widgets/scrollable-linkable-container/styles.js +42 -42
  232. package/widgets/scrollable-linkable-container/widget.js +78 -78
  233. package/widgets/select/styles.js +68 -68
  234. package/widgets/select/widget.js +119 -119
  235. package/widgets/separator/props.js +46 -46
  236. package/widgets/separator/styles.js +116 -116
  237. package/widgets/separator/widget.js +27 -27
  238. package/widgets/slider/props.js +136 -136
  239. package/widgets/slider/scenarios.js +74 -74
  240. package/widgets/slider/styles.js +246 -246
  241. package/widgets/slider/widget.js +404 -404
  242. package/widgets/slider-circle/props.js +72 -72
  243. package/widgets/slider-circle/scenarios.js +16 -16
  244. package/widgets/slider-circle/styles.js +78 -78
  245. package/widgets/slider-circle/widget.js +154 -154
  246. package/widgets/slider-xy/props.js +87 -87
  247. package/widgets/slider-xy/scenarios.js +19 -19
  248. package/widgets/slider-xy/styles.js +102 -102
  249. package/widgets/slider-xy/widget.js +234 -234
  250. package/widgets/smiley/props.js +51 -51
  251. package/widgets/smiley/scenarios.js +58 -58
  252. package/widgets/smiley/styles.js +489 -489
  253. package/widgets/smiley/widget.js +72 -72
  254. package/widgets/spinner/props.js +31 -31
  255. package/widgets/spinner/scenarios.js +31 -31
  256. package/widgets/spinner/styles.js +49 -49
  257. package/widgets/spinner/widget.js +23 -23
  258. package/widgets/splitter/props.js +71 -71
  259. package/widgets/splitter/scenarios.js +182 -182
  260. package/widgets/splitter/styles.js +41 -41
  261. package/widgets/splitter/widget.js +455 -455
  262. package/widgets/stack-navigation/service.js +324 -324
  263. package/widgets/stack-navigation/widget.js +296 -296
  264. package/widgets/state-browser/styles.js +19 -19
  265. package/widgets/state-browser/widget.js +135 -135
  266. package/widgets/state-browser-dialog/styles.js +100 -100
  267. package/widgets/state-browser-dialog/widget.js +253 -253
  268. package/widgets/state-monitor/styles.js +50 -50
  269. package/widgets/state-monitor/widget.js +324 -324
  270. package/widgets/switch-on-off/props.js +30 -30
  271. package/widgets/switch-on-off/scenarios.js +34 -34
  272. package/widgets/switch-on-off/styles.js +63 -63
  273. package/widgets/switch-on-off/widget.js +41 -41
  274. package/widgets/table/helpers.js +160 -160
  275. package/widgets/table/props.js +658 -658
  276. package/widgets/table/reducer.js +196 -196
  277. package/widgets/table/scenarios.js +54 -54
  278. package/widgets/table/widget.js +253 -253
  279. package/widgets/table-cell/props.js +145 -145
  280. package/widgets/table-cell/styles.js +160 -160
  281. package/widgets/table-cell/widget.js +139 -139
  282. package/widgets/table-header-drag-manager/styles.js +184 -184
  283. package/widgets/table-header-drag-manager/widget.js +392 -392
  284. package/widgets/table-nc/styles.js +100 -100
  285. package/widgets/table-nc/widget.js +409 -409
  286. package/widgets/table-row/props.js +73 -73
  287. package/widgets/table-row/styles.js +82 -82
  288. package/widgets/table-row/widget.js +207 -207
  289. package/widgets/text-field/widget.js +18 -18
  290. package/widgets/text-field-combo/widget.js +21 -21
  291. package/widgets/text-field-combo-nc/props.js +300 -300
  292. package/widgets/text-field-combo-nc/scenarios.js +72 -72
  293. package/widgets/text-field-combo-nc/widget.js +339 -339
  294. package/widgets/text-field-date-interval/styles.js +37 -37
  295. package/widgets/text-field-date-interval/widget.js +162 -162
  296. package/widgets/text-field-nc/props.js +40 -40
  297. package/widgets/text-field-nc/scenarios.js +67 -67
  298. package/widgets/text-field-nc/widget.js +14 -14
  299. package/widgets/text-field-time-interval/styles.js +37 -37
  300. package/widgets/text-field-time-interval/widget.js +160 -160
  301. package/widgets/text-field-typed/widget.js +51 -51
  302. package/widgets/text-field-typed-nc/props.js +81 -81
  303. package/widgets/text-field-typed-nc/scenarios.js +105 -105
  304. package/widgets/text-field-typed-nc/styles.js +20 -20
  305. package/widgets/text-field-typed-nc/widget.js +749 -750
  306. package/widgets/text-input-info-nc/props.js +62 -62
  307. package/widgets/text-input-info-nc/widget.js +55 -55
  308. package/widgets/text-input-nc/props.js +143 -143
  309. package/widgets/text-input-nc/scenarios.js +44 -44
  310. package/widgets/text-input-nc/styles.js +242 -242
  311. package/widgets/text-input-nc/widget.js +234 -234
  312. package/widgets/ticket/getPath.js +128 -128
  313. package/widgets/ticket/props.js +181 -181
  314. package/widgets/ticket/scenarios.js +39 -39
  315. package/widgets/ticket/styles.js +332 -332
  316. package/widgets/ticket/ticket-helpers.js +33 -33
  317. package/widgets/ticket/widget.js +348 -348
  318. package/widgets/ticket-hover/styles.js +207 -207
  319. package/widgets/ticket-hover/widget.js +53 -53
  320. package/widgets/time-gauge/widget.js +64 -64
  321. package/widgets/tips/styles.js +48 -48
  322. package/widgets/tips/widget.js +171 -171
  323. package/widgets/translatable-text-field/styles.js +202 -202
  324. package/widgets/translatable-text-field/text-field.js +132 -132
  325. package/widgets/translatable-text-field/widget.js +660 -660
  326. package/widgets/tree/props.js +246 -246
  327. package/widgets/tree/scenarios.js +14 -14
  328. package/widgets/tree/styles.js +142 -142
  329. package/widgets/tree/widget.js +383 -383
  330. package/widgets/tree-cell/styles.js +140 -140
  331. package/widgets/tree-cell/widget.js +100 -100
  332. package/widgets/tree-row/styles.js +77 -77
  333. package/widgets/tree-row/widget.js +135 -135
  334. package/widgets/triangle/props.js +48 -48
  335. package/widgets/triangle/scenarios.js +33 -33
  336. package/widgets/triangle/styles.js +92 -92
  337. package/widgets/triangle/widget.js +36 -36
  338. package/widgets/well-done/widget.js +170 -170
  339. package/widgets/widget-doc/reducer.js +68 -68
  340. package/widgets/widget-doc/styles.js +15 -15
  341. package/widgets/widget-doc/widget-list.js +25 -25
  342. package/widgets/widget-doc/widget.js +89 -89
  343. package/widgets/widget-doc-menu/styles.js +12 -12
  344. package/widgets/widget-doc-menu/widget.js +79 -79
  345. package/widgets/widget-doc-preview/parse-code.js +20 -20
  346. package/widgets/widget-doc-preview/styles.js +77 -77
  347. package/widgets/widget-doc-preview/widget.js +481 -481
  348. package/widgets/widget-doc-preview-container/styles.js +60 -60
  349. package/widgets/widget-doc-preview-container/widget.js +129 -129
  350. package/widgets/widget-doc-properties/styles.js +41 -41
  351. package/widgets/widget-doc-properties/widget.js +307 -307
  352. package/widgets/widget-doc-property/styles.js +75 -75
  353. package/widgets/widget-doc-property/widget.js +108 -108
  354. package/widgets/widget-doc-property-control/styles.js +14 -14
  355. package/widgets/widget-doc-property-control/widget.js +343 -343
  356. package/widgets/wizard/service.js +2132 -2132
  357. package/widgets/wizard/styles.js +21 -21
  358. package/widgets/wizard/widget.js +927 -927
  359. package/widgets/work-dialog/styles.js +31 -31
  360. package/widgets/work-dialog/widget.js +162 -162
  361. package/wizard.js +13 -13
@@ -1,2132 +1,2132 @@
1
- //T:2019-02-27
2
- //mock
3
- 'use strict';
4
-
5
- const path = require('path');
6
- const goblinName = path.basename(module.parent.filename, '.js');
7
- const Goblin = require('xcraft-core-goblin');
8
-
9
- // Define initial logic values
10
- const logicState = {};
11
-
12
- const globalSettings = {
13
- widget: {
14
- id: 'widget',
15
- value: 'Button',
16
- },
17
- };
18
-
19
- const colorList = [
20
- '',
21
- 'base',
22
- 'primary',
23
- 'secondary',
24
- 'success',
25
- 'pick',
26
- 'drop',
27
- 'task',
28
- 'white',
29
- 'lightgrey',
30
- 'grey',
31
- 'black',
32
- 'red',
33
- 'green',
34
- 'blue',
35
- 'yellow',
36
- '#d2e6f9 — light blue',
37
- '#8ab6df — blue',
38
- '#f5ddb8 — light orange',
39
- '#fbce89 — orange',
40
- '#c6f7da — light green',
41
- '#74f7a9 — green',
42
- ];
43
-
44
- const properties = {
45
- Button: {
46
- id: 'Button',
47
- kind: {
48
- id: 'kind',
49
- group: 'Aspect',
50
- type: 'combo',
51
- field: 'kind',
52
- list: [
53
- '',
54
- 'action',
55
- 'button-notification',
56
- 'button-footer',
57
- 'calendar-navigator',
58
- 'check-button',
59
- 'chronos-navigator',
60
- 'chronos-navigator',
61
- 'combo',
62
- 'combo-item',
63
- 'combo-wrap-item',
64
- 'desk-title',
65
- 'disabled-light',
66
- 'dynamic-toolbar-left',
67
- 'dynamic-toolbar-top-left',
68
- 'dynamic-toolbar-top-right',
69
- 'glyph-item',
70
- 'hover',
71
- 'identity',
72
- 'label',
73
- 'main-tab',
74
- 'main-tab-right',
75
- 'menu-item',
76
- 'notification-close',
77
- 'pane-navigator',
78
- 'pane-hnavigator',
79
- 'pane-vnavigator',
80
- 'recurrence',
81
- 'round',
82
- 'subaction',
83
- 'task-bar',
84
- 'task-tab',
85
- 'task-logo',
86
- 'thin-left',
87
- 'thin-right',
88
- 'toolbar',
89
- 'view-tab',
90
- 'view-tab-right',
91
- 'warning',
92
- ],
93
- value: '',
94
- },
95
- active: {
96
- id: 'active',
97
- group: 'Aspect',
98
- type: 'bool',
99
- field: 'active',
100
- value: false,
101
- },
102
- disabled: {
103
- id: 'disabled',
104
- group: 'Aspect',
105
- type: 'bool',
106
- field: 'disabled',
107
- value: false,
108
- },
109
- readonly: {
110
- id: 'readonly',
111
- group: 'Aspect',
112
- type: 'bool',
113
- field: 'readonly',
114
- value: false,
115
- },
116
- focusable: {
117
- id: 'focusable',
118
- group: 'Aspect',
119
- type: 'bool',
120
- field: 'focusable',
121
- value: false,
122
- },
123
- busy: {
124
- id: 'busy',
125
- group: 'Aspect',
126
- type: 'bool',
127
- field: 'busy',
128
- value: false,
129
- },
130
- border: {
131
- id: 'border',
132
- group: 'Aspect',
133
- type: 'combo',
134
- field: 'border',
135
- list: ['', 'none'],
136
- value: '',
137
- },
138
- text: {
139
- id: 'text',
140
- group: 'Text',
141
- type: 'text',
142
- field: 'text',
143
- list: [
144
- '',
145
- 'Button',
146
- "D'accord",
147
- 'Annuler',
148
- 'Enregistrer',
149
- 'Ouvrir le dossier',
150
- 'Long mot (anticonstitutionnellement) pour tester le mode wrap',
151
- 'Première ligne<br/>Deuxième ligne<br/>Troisième ligne<br/>Quatrième ligne<br/>Cinquième ligne',
152
- 'Normal <em>sélectionné</em> normal',
153
- ],
154
- value: 'Button',
155
- },
156
- glyph: {
157
- id: 'glyph',
158
- group: 'Glyph',
159
- type: 'text',
160
- field: 'glyph',
161
- list: [
162
- '',
163
- 'solid/check',
164
- 'solid/times',
165
- 'solid/bicycle',
166
- 'solid/car',
167
- 'solid/rocket',
168
- 'solid/calendar',
169
- ],
170
- value: 'solid/check',
171
- },
172
- glyphRotate: {
173
- id: 'glyphRotate',
174
- group: 'Glyph',
175
- type: 'combo',
176
- field: 'glyphRotate',
177
- list: ['', '90', '180', '270'],
178
- value: '',
179
- },
180
- glyphFlip: {
181
- id: 'glyphFlip',
182
- group: 'Glyph',
183
- type: 'combo',
184
- field: 'glyphFlip',
185
- list: ['', 'horizontal', 'vertical'],
186
- value: '',
187
- },
188
- glyphSpin: {
189
- id: 'glyphSpin',
190
- group: 'Glyph',
191
- type: 'combo',
192
- field: 'glyphSpin',
193
- list: ['', 'yes'],
194
- value: '',
195
- },
196
- glyphPosition: {
197
- id: 'glyphPosition',
198
- group: 'Glyph',
199
- type: 'combo',
200
- field: 'glyphPosition',
201
- list: ['', 'left', 'right'],
202
- value: '',
203
- },
204
- glyphColor: {
205
- id: 'glyphColor',
206
- group: 'Glyph',
207
- type: 'text',
208
- unit: 'color',
209
- field: 'glyphColor',
210
- list: colorList,
211
- value: '',
212
- },
213
- glyphSize: {
214
- id: 'glyphSize',
215
- group: 'Glyph',
216
- type: 'combo',
217
- field: 'glyphSize',
218
- list: ['', '50%', '75%', '100%', '150%', '200%'],
219
- value: '',
220
- },
221
- shape: {
222
- id: 'shape',
223
- group: 'Aspect',
224
- type: 'combo',
225
- field: 'shape',
226
- list: [
227
- '',
228
- 'rounded',
229
- 'left-rounded',
230
- 'right-rounded',
231
- 'left-smooth',
232
- 'right-smooth',
233
- ],
234
- value: '',
235
- },
236
- tooltip: {
237
- id: 'tooltip',
238
- group: 'Aspect',
239
- type: 'text',
240
- field: 'tooltip',
241
- value: '',
242
- },
243
- shortcut: {
244
- id: 'shortcut',
245
- group: 'Aspect',
246
- type: 'text',
247
- field: 'shortcut',
248
- list: ['', '_ctrl_+A', '_shift_+A', '_alt_+A'],
249
- value: '',
250
- },
251
- justify: {
252
- id: 'justify',
253
- group: 'Aspect',
254
- type: 'combo',
255
- field: 'justify',
256
- list: ['', 'start', 'center', 'end', 'around', 'between', 'none'],
257
- value: '',
258
- },
259
- width: {
260
- id: 'width',
261
- group: 'Layout',
262
- type: 'text',
263
- unit: 'px',
264
- field: 'width',
265
- list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
266
- value: '',
267
- },
268
- height: {
269
- id: 'height',
270
- group: 'Layout',
271
- type: 'text',
272
- unit: 'px',
273
- field: 'height',
274
- list: ['', '32px', '50px', '100px', '150px', '200px'],
275
- value: '',
276
- },
277
- grow: {
278
- id: 'grow',
279
- group: 'Layout',
280
- type: 'text',
281
- field: 'grow',
282
- list: ['', '0.5', '1'],
283
- value: '',
284
- },
285
- horizontalSpacing: {
286
- id: 'horizontalSpacing',
287
- group: 'Layout',
288
- type: 'combo',
289
- field: 'horizontalSpacing',
290
- list: ['', 'overlap', 'tiny', 'large', 'double'],
291
- value: '',
292
- },
293
- textColor: {
294
- id: 'textColor',
295
- group: 'Text',
296
- type: 'text',
297
- unit: 'color',
298
- field: 'textColor',
299
- list: colorList,
300
- value: '',
301
- },
302
- backgroundColor: {
303
- id: 'backgroundColor',
304
- group: 'Aspect',
305
- type: 'text',
306
- unit: 'color',
307
- field: 'backgroundColor',
308
- list: colorList,
309
- value: '',
310
- },
311
- activeColor: {
312
- id: 'activeColor',
313
- group: 'Aspect',
314
- type: 'text',
315
- unit: 'color',
316
- field: 'activeColor',
317
- list: colorList,
318
- value: '',
319
- },
320
- fontSize: {
321
- id: 'fontSize',
322
- group: 'Text',
323
- type: 'combo',
324
- field: 'fontSize',
325
- list: ['', '50%', '75%', '100%', '150%', '200%'],
326
- value: '',
327
- },
328
- fontWeight: {
329
- id: 'fontWeight',
330
- group: 'Text',
331
- type: 'combo',
332
- field: 'fontWeight',
333
- list: ['', 'bold'],
334
- value: '',
335
- },
336
- fontStyle: {
337
- id: 'fontStyle',
338
- group: 'Text',
339
- type: 'combo',
340
- field: 'fontStyle',
341
- list: ['', 'italic', 'oblique'],
342
- value: '',
343
- },
344
- textTransform: {
345
- id: 'textTransform',
346
- group: 'Text',
347
- type: 'combo',
348
- field: 'textTransform',
349
- list: ['', 'uppercase', 'none'],
350
- value: '',
351
- },
352
- wrap: {
353
- id: 'wrap',
354
- group: 'Text',
355
- type: 'combo',
356
- field: 'wrap',
357
- list: ['', 'no', 'no-strict', 'yes', 'yes-permissive'],
358
- value: '',
359
- },
360
- badgeValue: {
361
- id: 'badgeValue',
362
- group: 'Badge',
363
- type: 'text',
364
- field: 'badgeValue',
365
- list: ['', '1', '2', '99', '123456'],
366
- value: '',
367
- },
368
- badgePush: {
369
- id: 'badgePush',
370
- group: 'Badge',
371
- type: 'bool',
372
- field: 'badgePush',
373
- value: '',
374
- },
375
- place: {
376
- id: 'place',
377
- group: 'Aspect',
378
- type: 'combo',
379
- field: 'place',
380
- list: ['', '1/1', '1/3', '2/3', '3/3'],
381
- value: '',
382
- },
383
- cursor: {
384
- id: 'cursor',
385
- group: 'Aspect',
386
- type: 'combo',
387
- field: 'cursor',
388
- list: [
389
- '',
390
- 'default',
391
- 'none',
392
- 'pointer',
393
- 'cell',
394
- 'crosshair',
395
- 'text',
396
- 'move',
397
- 'not-allowed',
398
- 'ew-resize',
399
- 'ns-resize',
400
- 'grab',
401
- ],
402
- value: '',
403
- },
404
- show: {
405
- id: 'show',
406
- group: 'Aspect',
407
- type: 'bool',
408
- field: 'show',
409
- value: true,
410
- },
411
- visibility: {
412
- id: 'visibility',
413
- group: 'Aspect',
414
- type: 'bool',
415
- field: 'visibility',
416
- value: true,
417
- },
418
- },
419
- Label: {
420
- id: 'Label',
421
- kind: {
422
- id: 'kind',
423
- group: 'Aspect',
424
- type: 'combo',
425
- field: 'kind',
426
- list: [
427
- '',
428
- 'big-center',
429
- 'center-to-box',
430
- 'compact',
431
- 'floating-footer',
432
- 'floating-header',
433
- 'flying-balloon',
434
- 'footer',
435
- 'info',
436
- 'large-left',
437
- 'large-right',
438
- 'large-single',
439
- 'notification',
440
- 'one-line-height',
441
- 'pane-header',
442
- 'task',
443
- 'ticket-warning',
444
- 'title',
445
- 'title-recurrence',
446
- ],
447
- value: '',
448
- },
449
- disabled: {
450
- id: 'disabled',
451
- group: 'Aspect',
452
- type: 'bool',
453
- field: 'disabled',
454
- value: false,
455
- },
456
- text: {
457
- id: 'text',
458
- group: 'Text',
459
- type: 'text',
460
- field: 'text',
461
- list: [
462
- '',
463
- 'Label',
464
- 'Nom',
465
- 'Prénom',
466
- 'NPA',
467
- 'Ville',
468
- 'Long mot (anticonstitutionnellement) pour tester le mode wrap',
469
- 'Première ligne<br/>Deuxième ligne<br/>Troisième ligne<br/>Quatrième ligne<br/>Cinquième ligne',
470
- 'Normal <em>sélectionné</em> normal',
471
- ],
472
- value: 'Label',
473
- },
474
- glyph: {
475
- id: 'glyph',
476
- group: 'Glyph',
477
- type: 'text',
478
- field: 'glyph',
479
- list: [
480
- '',
481
- 'solid/check',
482
- 'solid/times',
483
- 'solid/bicycle',
484
- 'solid/car',
485
- 'solid/rocket',
486
- 'solid/calendar',
487
- ],
488
- value: 'solid/rocket',
489
- },
490
- glyphRotate: {
491
- id: 'glyphRotate',
492
- group: 'Glyph',
493
- type: 'combo',
494
- field: 'glyphRotate',
495
- list: ['', '90', '180', '270'],
496
- value: '',
497
- },
498
- glyphFlip: {
499
- id: 'glyphFlip',
500
- group: 'Glyph',
501
- type: 'combo',
502
- field: 'glyphFlip',
503
- list: ['', 'horizontal', 'vertical'],
504
- value: '',
505
- },
506
- glyphSpin: {
507
- id: 'glyphSpin',
508
- group: 'Glyph',
509
- type: 'combo',
510
- field: 'glyphSpin',
511
- list: ['', 'yes'],
512
- value: '',
513
- },
514
- glyphPosition: {
515
- id: 'glyphPosition',
516
- group: 'Glyph',
517
- type: 'combo',
518
- field: 'glyphPosition',
519
- list: ['', 'left', 'right'],
520
- value: '',
521
- },
522
- glyphColor: {
523
- id: 'glyphColor',
524
- group: 'Glyph',
525
- type: 'text',
526
- unit: 'color',
527
- field: 'glyphColor',
528
- list: colorList,
529
- value: '',
530
- },
531
- glyphSize: {
532
- id: 'glyphSize',
533
- group: 'Glyph',
534
- type: 'combo',
535
- field: 'glyphSize',
536
- list: ['', '50%', '75%', '100%', '150%', '200%'],
537
- value: '',
538
- },
539
- shape: {
540
- id: 'shape',
541
- group: 'Aspect',
542
- type: 'combo',
543
- field: 'shape',
544
- list: [
545
- '',
546
- 'rounded',
547
- 'left-rounded',
548
- 'right-rounded',
549
- 'left-smooth',
550
- 'right-smooth',
551
- ],
552
- value: '',
553
- },
554
- insideButton: {
555
- id: 'insideButton',
556
- group: 'Aspect',
557
- type: 'bool',
558
- field: 'insideButton',
559
- value: false,
560
- },
561
- tooltip: {
562
- id: 'tooltip',
563
- group: 'Aspect',
564
- type: 'text',
565
- field: 'tooltip',
566
- value: '',
567
- },
568
- justify: {
569
- id: 'justify',
570
- group: 'Aspect',
571
- type: 'combo',
572
- field: 'justify',
573
- list: ['', 'start', 'center', 'end', 'around', 'between', 'none'],
574
- value: '',
575
- },
576
- width: {
577
- id: 'width',
578
- group: 'Layout',
579
- type: 'text',
580
- unit: 'px',
581
- field: 'width',
582
- list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
583
- value: '',
584
- },
585
- height: {
586
- id: 'height',
587
- group: 'Layout',
588
- type: 'text',
589
- unit: 'px',
590
- field: 'height',
591
- list: ['', '32px', '50px', '100px', '150px', '200px'],
592
- value: '',
593
- },
594
- grow: {
595
- id: 'grow',
596
- group: 'Layout',
597
- type: 'text',
598
- field: 'grow',
599
- list: ['', '0.5', '1'],
600
- value: '',
601
- },
602
- horizontalSpacing: {
603
- id: 'horizontalSpacing',
604
- group: 'Layout',
605
- type: 'combo',
606
- field: 'horizontalSpacing',
607
- list: ['', 'overlap', 'tiny', 'large', 'double'],
608
- value: '',
609
- },
610
- bottomSpacing: {
611
- id: 'bottomSpacing',
612
- group: 'Layout',
613
- type: 'combo',
614
- field: 'bottomSpacing',
615
- list: ['', 'large'],
616
- value: '',
617
- },
618
- vpos: {
619
- id: 'vpos',
620
- group: 'Layout',
621
- type: 'combo',
622
- field: 'vpos',
623
- list: ['', 'top'],
624
- value: '',
625
- },
626
- textColor: {
627
- id: 'textColor',
628
- group: 'Text',
629
- type: 'text',
630
- unit: 'color',
631
- field: 'textColor',
632
- list: colorList,
633
- value: '',
634
- },
635
- backgroundColor: {
636
- id: 'backgroundColor',
637
- group: 'Aspect',
638
- type: 'text',
639
- unit: 'color',
640
- field: 'backgroundColor',
641
- list: colorList,
642
- value: '',
643
- },
644
- fontSize: {
645
- id: 'fontSize',
646
- group: 'Text',
647
- type: 'combo',
648
- field: 'fontSize',
649
- list: ['', '50%', '75%', '100%', '150%', '200%'],
650
- value: '',
651
- },
652
- fontWeight: {
653
- id: 'fontWeight',
654
- group: 'Text',
655
- type: 'combo',
656
- field: 'fontWeight',
657
- list: ['', 'bold'],
658
- value: '',
659
- },
660
- fontStyle: {
661
- id: 'fontStyle',
662
- group: 'Text',
663
- type: 'combo',
664
- field: 'fontStyle',
665
- list: ['', 'italic', 'oblique'],
666
- value: '',
667
- },
668
- textTransform: {
669
- id: 'textTransform',
670
- group: 'Text',
671
- type: 'combo',
672
- field: 'textTransform',
673
- list: ['', 'uppercase', 'none'],
674
- value: '',
675
- },
676
- wrap: {
677
- id: 'wrap',
678
- group: 'Text',
679
- type: 'combo',
680
- field: 'wrap',
681
- list: ['', 'no', 'no-strict', 'yes', 'yes-permissive'],
682
- value: '',
683
- },
684
- cursor: {
685
- id: 'cursor',
686
- group: 'Aspect',
687
- type: 'combo',
688
- field: 'cursor',
689
- list: [
690
- '',
691
- 'default',
692
- 'none',
693
- 'pointer',
694
- 'cell',
695
- 'crosshair',
696
- 'text',
697
- 'move',
698
- 'not-allowed',
699
- 'ew-resize',
700
- 'ns-resize',
701
- 'grab',
702
- ],
703
- value: '',
704
- },
705
- show: {
706
- id: 'show',
707
- group: 'Aspect',
708
- type: 'bool',
709
- field: 'show',
710
- value: true,
711
- },
712
- visibility: {
713
- id: 'visibility',
714
- group: 'Aspect',
715
- type: 'bool',
716
- field: 'visibility',
717
- value: true,
718
- },
719
- },
720
- TextField: {
721
- id: 'TextField',
722
- active: {
723
- id: 'active',
724
- group: 'Aspect',
725
- type: 'bool',
726
- field: 'active',
727
- value: false,
728
- },
729
- disabled: {
730
- id: 'disabled',
731
- group: 'Aspect',
732
- type: 'bool',
733
- field: 'disabled',
734
- value: false,
735
- },
736
- readonly: {
737
- id: 'readonly',
738
- group: 'Text',
739
- type: 'bool',
740
- field: 'readonly',
741
- value: false,
742
- },
743
- defaultValue: {
744
- id: 'defaultValue',
745
- group: 'Text',
746
- type: 'text',
747
- field: 'defaultValue',
748
- list: [
749
- '',
750
- 'TextField',
751
- 'Jean Dupond',
752
- 'Lausanne',
753
- 'Première ligne<br/>Deuxième ligne<br/>Troisième ligne',
754
- ],
755
- value: 'TextField',
756
- },
757
- hintText: {
758
- id: 'hintText',
759
- group: 'Text',
760
- type: 'text',
761
- field: 'hintText',
762
- list: ['', 'Prénom et nom', 'Adresse', 'Ville'],
763
- value: 'Prénom et nom',
764
- },
765
- tooltip: {
766
- id: 'tooltip',
767
- group: 'Aspect',
768
- type: 'text',
769
- field: 'tooltip',
770
- value: '',
771
- },
772
- shape: {
773
- id: 'shape',
774
- group: 'Aspect',
775
- type: 'combo',
776
- field: 'shape',
777
- list: [
778
- '',
779
- 'rounded',
780
- 'left-rounded',
781
- 'right-rounded',
782
- 'left-smooth',
783
- 'right-smooth',
784
- ],
785
- value: '',
786
- },
787
- rows: {
788
- id: 'rows',
789
- group: 'Text',
790
- type: 'combo',
791
- field: 'rows',
792
- list: ['', '1', '2', '3', '4', '5', '10'],
793
- value: '',
794
- },
795
- size: {
796
- id: 'size',
797
- group: 'Text',
798
- type: 'combo',
799
- field: 'size',
800
- list: ['', '1', '10', '100'],
801
- value: '',
802
- },
803
- maxLength: {
804
- id: 'maxLength',
805
- group: 'Text',
806
- type: 'combo',
807
- field: 'maxLength',
808
- list: ['', '1', '10', '20', '100'],
809
- value: '',
810
- },
811
- messageInfo: {
812
- id: 'messageInfo',
813
- group: 'Message',
814
- type: 'text',
815
- field: 'messageInfo',
816
- value: '',
817
- },
818
- messageWarning: {
819
- id: 'messageWarning',
820
- group: 'Message',
821
- type: 'text',
822
- field: 'messageWarning',
823
- value: '',
824
- },
825
- flyingBalloonAnchor: {
826
- id: 'flyingBalloonAnchor',
827
- group: 'Message',
828
- type: 'combo',
829
- field: 'flyingBalloonAnchor',
830
- list: ['left', 'right', 'top', 'bottom'],
831
- value: 'bottom',
832
- },
833
- width: {
834
- id: 'width',
835
- group: 'Layout',
836
- type: 'text',
837
- unit: 'px',
838
- field: 'width',
839
- list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
840
- value: '',
841
- },
842
- grow: {
843
- id: 'grow',
844
- group: 'Layout',
845
- type: 'text',
846
- field: 'grow',
847
- list: ['', '0.5', '1'],
848
- value: '1',
849
- },
850
- horizontalSpacing: {
851
- id: 'horizontalSpacing',
852
- group: 'Layout',
853
- type: 'combo',
854
- field: 'horizontalSpacing',
855
- list: ['', 'overlap', 'tiny', 'large', 'double'],
856
- value: '',
857
- },
858
- justify: {
859
- id: 'justify',
860
- group: 'Text',
861
- type: 'combo',
862
- field: 'justify',
863
- list: ['', 'left', 'right'],
864
- value: '',
865
- },
866
- cursor: {
867
- id: 'cursor',
868
- group: 'Aspect',
869
- type: 'combo',
870
- field: 'cursor',
871
- list: [
872
- '',
873
- 'default',
874
- 'none',
875
- 'pointer',
876
- 'cell',
877
- 'crosshair',
878
- 'text',
879
- 'move',
880
- 'not-allowed',
881
- 'ew-resize',
882
- 'ns-resize',
883
- 'grab',
884
- ],
885
- value: '',
886
- },
887
- show: {
888
- id: 'show',
889
- group: 'Aspect',
890
- type: 'bool',
891
- field: 'show',
892
- value: true,
893
- },
894
- visibility: {
895
- id: 'visibility',
896
- group: 'Aspect',
897
- type: 'bool',
898
- field: 'visibility',
899
- value: true,
900
- },
901
- },
902
- LabelTextField: {
903
- id: 'LabelTextField',
904
- disabled: {
905
- id: 'disabled',
906
- group: 'Aspect',
907
- type: 'bool',
908
- field: 'disabled',
909
- value: false,
910
- },
911
- readonly: {
912
- id: 'readonly',
913
- group: 'Text',
914
- type: 'bool',
915
- field: 'readonly',
916
- value: false,
917
- },
918
- defaultValue: {
919
- id: 'defaultValue',
920
- group: 'Text',
921
- type: 'text',
922
- field: 'defaultValue',
923
- list: [
924
- '',
925
- 'LabelTextField',
926
- 'Jean Dupond',
927
- 'Première ligne<br/>Deuxième ligne<br/>Troisième ligne',
928
- ],
929
- value: 'LabelTextField',
930
- },
931
- labelText: {
932
- id: 'labelText',
933
- group: 'Label',
934
- type: 'text',
935
- field: 'labelText',
936
- list: ['', 'Label', 'Nom', 'Prénom', 'Adresse', 'Ville'],
937
- value: '',
938
- },
939
- labelGlyph: {
940
- id: 'labelGlyph',
941
- group: 'Label',
942
- type: 'text',
943
- field: 'labelGlyph',
944
- list: [
945
- '',
946
- 'solid/check',
947
- 'solid/times',
948
- 'solid/bicycle',
949
- 'solid/car',
950
- 'solid/rocket',
951
- 'solid/calendar',
952
- ],
953
- value: 'solid/car',
954
- },
955
- shape: {
956
- id: 'shape',
957
- group: 'Aspect',
958
- type: 'combo',
959
- field: 'shape',
960
- list: ['', 'rounded', 'smooth'],
961
- value: '',
962
- },
963
- fieldJustify: {
964
- id: 'fieldJustify',
965
- group: 'Text',
966
- type: 'combo',
967
- field: 'fieldJustify',
968
- list: ['', 'left', 'right'],
969
- value: '',
970
- },
971
- messageInfo: {
972
- id: 'messageInfo',
973
- group: 'Message',
974
- type: 'text',
975
- field: 'messageInfo',
976
- value: '',
977
- },
978
- messageWarning: {
979
- id: 'messageWarning',
980
- group: 'Message',
981
- type: 'text',
982
- field: 'messageWarning',
983
- value: '',
984
- },
985
- hintText: {
986
- id: 'hintText',
987
- group: 'Text',
988
- type: 'text',
989
- field: 'hintText',
990
- list: ['', 'Prénom et nom', 'Adresse'],
991
- value: 'Adresse',
992
- },
993
- tooltip: {
994
- id: 'tooltip',
995
- group: 'Aspect',
996
- type: 'text',
997
- field: 'tooltip',
998
- value: '',
999
- },
1000
- width: {
1001
- id: 'width',
1002
- group: 'Layout',
1003
- type: 'text',
1004
- unit: 'px',
1005
- field: 'width',
1006
- list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
1007
- value: '',
1008
- },
1009
- labelWidth: {
1010
- id: 'labelWidth',
1011
- group: 'Layout',
1012
- type: 'text',
1013
- unit: 'px',
1014
- field: 'labelWidth',
1015
- list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
1016
- value: '',
1017
- },
1018
- fieldWidth: {
1019
- id: 'fieldWidth',
1020
- group: 'Layout',
1021
- type: 'text',
1022
- unit: 'px',
1023
- field: 'fieldWidth',
1024
- list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
1025
- value: '',
1026
- },
1027
- grow: {
1028
- id: 'grow',
1029
- group: 'Layout',
1030
- type: 'text',
1031
- field: 'grow',
1032
- list: ['', '0.5', '1'],
1033
- value: '1',
1034
- },
1035
- horizontalSpacing: {
1036
- id: 'horizontalSpacing',
1037
- group: 'Layout',
1038
- type: 'combo',
1039
- field: 'horizontalSpacing',
1040
- list: ['', 'overlap', 'tiny', 'large', 'double'],
1041
- value: '',
1042
- },
1043
- cursor: {
1044
- id: 'cursor',
1045
- group: 'Aspect',
1046
- type: 'combo',
1047
- field: 'cursor',
1048
- list: [
1049
- '',
1050
- 'default',
1051
- 'none',
1052
- 'pointer',
1053
- 'cell',
1054
- 'crosshair',
1055
- 'text',
1056
- 'move',
1057
- 'not-allowed',
1058
- 'ew-resize',
1059
- 'ns-resize',
1060
- 'grab',
1061
- ],
1062
- value: '',
1063
- },
1064
- show: {
1065
- id: 'show',
1066
- group: 'Aspect',
1067
- type: 'bool',
1068
- field: 'show',
1069
- value: true,
1070
- },
1071
- visibility: {
1072
- id: 'visibility',
1073
- group: 'Aspect',
1074
- type: 'bool',
1075
- field: 'visibility',
1076
- value: true,
1077
- },
1078
- },
1079
- TextFieldCombo: {
1080
- id: 'TextFieldCombo',
1081
- disabled: {
1082
- id: 'disabled',
1083
- group: 'Aspect',
1084
- type: 'bool',
1085
- field: 'disabled',
1086
- value: false,
1087
- },
1088
- readonly: {
1089
- id: 'readonly',
1090
- group: 'Text',
1091
- type: 'bool',
1092
- field: 'readonly',
1093
- value: false,
1094
- },
1095
- menuType: {
1096
- id: 'menuType',
1097
- group: 'Menu',
1098
- type: 'combo',
1099
- field: 'menuType',
1100
- list: ['', 'select', 'combo', 'wrap'],
1101
- value: 'wrap',
1102
- },
1103
- menuItemWidth: {
1104
- id: 'menuItemWidth',
1105
- group: 'Menu',
1106
- type: 'text',
1107
- unit: 'px',
1108
- field: 'menuItemWidth',
1109
- list: ['', '100px', '150px', '200px', '300px'],
1110
- value: '',
1111
- },
1112
- menuItemTooltips: {
1113
- id: 'menuItemTooltips',
1114
- group: 'Menu',
1115
- type: 'bool',
1116
- field: 'menuItemTooltips',
1117
- value: false,
1118
- },
1119
- defaultValue: {
1120
- id: 'defaultValue',
1121
- group: 'Text',
1122
- type: 'text',
1123
- field: 'defaultValue',
1124
- list: [
1125
- '',
1126
- 'TextFieldCombo',
1127
- 'Lundi',
1128
- 'Mardi',
1129
- 'Mercredi',
1130
- 'Jeudi',
1131
- 'Vendredi',
1132
- 'Samedi',
1133
- 'Dimanche',
1134
- 'Première ligne<br/>Deuxième ligne<br/>Troisième ligne',
1135
- ],
1136
- value: 'TextFieldCombo',
1137
- },
1138
- selectedValue: {
1139
- id: 'selectedValue',
1140
- group: 'Text',
1141
- type: 'text',
1142
- field: 'selectedValue',
1143
- list: [
1144
- '',
1145
- 'Lundi',
1146
- 'Mardi',
1147
- 'Mercredi',
1148
- 'Jeudi',
1149
- 'Vendredi',
1150
- 'Samedi',
1151
- 'Dimanche',
1152
- ],
1153
- value: '',
1154
- },
1155
- comboGlyph: {
1156
- id: 'comboGlyph',
1157
- group: 'Aspect',
1158
- type: 'text',
1159
- field: 'comboGlyph',
1160
- list: ['', 'search'],
1161
- value: '',
1162
- },
1163
- shape: {
1164
- id: 'shape',
1165
- group: 'Aspect',
1166
- type: 'combo',
1167
- field: 'shape',
1168
- list: ['', 'rounded', 'smooth'],
1169
- value: '',
1170
- },
1171
- messageInfo: {
1172
- id: 'messageInfo',
1173
- group: 'Message',
1174
- type: 'text',
1175
- field: 'messageInfo',
1176
- value: '',
1177
- },
1178
- messageWarning: {
1179
- id: 'messageWarning',
1180
- group: 'Message',
1181
- type: 'text',
1182
- field: 'messageWarning',
1183
- value: '',
1184
- },
1185
- hintText: {
1186
- id: 'hintText',
1187
- group: 'Text',
1188
- type: 'text',
1189
- field: 'hintText',
1190
- list: ['', 'Jour de la semaine', 'Prénom et nom', 'Adresse'],
1191
- value: 'Jour de la semaine',
1192
- },
1193
- tooltip: {
1194
- id: 'tooltip',
1195
- group: 'Aspect',
1196
- type: 'text',
1197
- field: 'tooltip',
1198
- value: '',
1199
- },
1200
- width: {
1201
- id: 'width',
1202
- group: 'Layout',
1203
- type: 'text',
1204
- unit: 'px',
1205
- field: 'width',
1206
- list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
1207
- value: '',
1208
- },
1209
- grow: {
1210
- id: 'grow',
1211
- group: 'Layout',
1212
- type: 'text',
1213
- field: 'grow',
1214
- list: ['', '0.5', '1'],
1215
- value: '1',
1216
- },
1217
- horizontalSpacing: {
1218
- id: 'horizontalSpacing',
1219
- group: 'Layout',
1220
- type: 'combo',
1221
- field: 'horizontalSpacing',
1222
- list: ['', 'overlap', 'tiny', 'large', 'double'],
1223
- value: '',
1224
- },
1225
- cursor: {
1226
- id: 'cursor',
1227
- group: 'Aspect',
1228
- type: 'combo',
1229
- field: 'cursor',
1230
- list: [
1231
- '',
1232
- 'default',
1233
- 'none',
1234
- 'pointer',
1235
- 'cell',
1236
- 'crosshair',
1237
- 'text',
1238
- 'move',
1239
- 'not-allowed',
1240
- 'ew-resize',
1241
- 'ns-resize',
1242
- 'grab',
1243
- ],
1244
- value: '',
1245
- },
1246
- show: {
1247
- id: 'show',
1248
- group: 'Aspect',
1249
- type: 'bool',
1250
- field: 'show',
1251
- value: true,
1252
- },
1253
- visibility: {
1254
- id: 'visibility',
1255
- group: 'Aspect',
1256
- type: 'bool',
1257
- field: 'visibility',
1258
- value: true,
1259
- },
1260
- },
1261
- TextFieldTyped: {
1262
- id: 'TextFieldTyped',
1263
- active: {
1264
- id: 'active',
1265
- group: 'Aspect',
1266
- type: 'bool',
1267
- field: 'active',
1268
- value: false,
1269
- },
1270
- disabled: {
1271
- id: 'disabled',
1272
- group: 'Aspect',
1273
- type: 'bool',
1274
- field: 'disabled',
1275
- value: false,
1276
- },
1277
- readonly: {
1278
- id: 'readonly',
1279
- group: 'Text',
1280
- type: 'bool',
1281
- field: 'readonly',
1282
- value: false,
1283
- },
1284
- type: {
1285
- id: 'type',
1286
- group: 'Text',
1287
- type: 'combo',
1288
- field: 'type',
1289
- list: ['date', 'time', 'price'],
1290
- value: 'date',
1291
- },
1292
- defaultValue: {
1293
- id: 'defaultValue',
1294
- group: 'Text',
1295
- type: 'text',
1296
- field: 'defaultValue',
1297
- list: ['', 'TextFieldTyped', '31.03.2017', '12:30'],
1298
- value: 'TextFieldTyped',
1299
- },
1300
- hintText: {
1301
- id: 'hintText',
1302
- group: 'Text',
1303
- type: 'text',
1304
- field: 'hintText',
1305
- list: ['', 'Date', 'Heure'],
1306
- value: 'Date',
1307
- },
1308
- tooltip: {
1309
- id: 'tooltip',
1310
- group: 'Aspect',
1311
- type: 'text',
1312
- field: 'tooltip',
1313
- value: '',
1314
- },
1315
- shape: {
1316
- id: 'shape',
1317
- group: 'Aspect',
1318
- type: 'combo',
1319
- field: 'shape',
1320
- list: [
1321
- '',
1322
- 'rounded',
1323
- 'left-rounded',
1324
- 'right-rounded',
1325
- 'left-smooth',
1326
- 'right-smooth',
1327
- ],
1328
- value: '',
1329
- },
1330
- rows: {
1331
- id: 'rows',
1332
- group: 'Text',
1333
- type: 'combo',
1334
- field: 'rows',
1335
- list: ['', '1', '2', '3', '4', '5', '10'],
1336
- value: '',
1337
- },
1338
- size: {
1339
- id: 'size',
1340
- group: 'Text',
1341
- type: 'combo',
1342
- field: 'size',
1343
- list: ['', '1', '10', '100'],
1344
- value: '',
1345
- },
1346
- maxLength: {
1347
- id: 'maxLength',
1348
- group: 'Text',
1349
- type: 'combo',
1350
- field: 'maxLength',
1351
- list: ['', '1', '10', '20', '100'],
1352
- value: '',
1353
- },
1354
- messageInfo: {
1355
- id: 'messageInfo',
1356
- group: 'Message',
1357
- type: 'text',
1358
- field: 'messageInfo',
1359
- value: '',
1360
- },
1361
- messageWarning: {
1362
- id: 'messageWarning',
1363
- group: 'Message',
1364
- type: 'text',
1365
- field: 'messageWarning',
1366
- value: '',
1367
- },
1368
- flyingBalloonAnchor: {
1369
- id: 'flyingBalloonAnchor',
1370
- group: 'Message',
1371
- type: 'combo',
1372
- field: 'flyingBalloonAnchor',
1373
- list: ['left', 'right', 'top', 'bottom'],
1374
- value: 'bottom',
1375
- },
1376
- width: {
1377
- id: 'width',
1378
- group: 'Layout',
1379
- type: 'text',
1380
- unit: 'px',
1381
- field: 'width',
1382
- list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
1383
- value: '',
1384
- },
1385
- grow: {
1386
- id: 'grow',
1387
- group: 'Layout',
1388
- type: 'text',
1389
- field: 'grow',
1390
- list: ['', '0.5', '1'],
1391
- value: '1',
1392
- },
1393
- horizontalSpacing: {
1394
- id: 'horizontalSpacing',
1395
- group: 'Layout',
1396
- type: 'combo',
1397
- field: 'horizontalSpacing',
1398
- list: ['', 'overlap', 'tiny', 'large', 'double'],
1399
- value: '',
1400
- },
1401
- cursor: {
1402
- id: 'cursor',
1403
- group: 'Aspect',
1404
- type: 'combo',
1405
- field: 'cursor',
1406
- list: [
1407
- '',
1408
- 'default',
1409
- 'none',
1410
- 'pointer',
1411
- 'cell',
1412
- 'crosshair',
1413
- 'text',
1414
- 'move',
1415
- 'not-allowed',
1416
- 'ew-resize',
1417
- 'ns-resize',
1418
- 'grab',
1419
- ],
1420
- value: '',
1421
- },
1422
- show: {
1423
- id: 'show',
1424
- group: 'Aspect',
1425
- type: 'bool',
1426
- field: 'show',
1427
- value: true,
1428
- },
1429
- visibility: {
1430
- id: 'visibility',
1431
- group: 'Aspect',
1432
- type: 'bool',
1433
- field: 'visibility',
1434
- value: true,
1435
- },
1436
- },
1437
- Checkbox: {
1438
- id: 'Checkbox',
1439
- kind: {
1440
- id: 'kind',
1441
- group: 'Aspect',
1442
- type: 'combo',
1443
- field: 'kind',
1444
- list: ['', 'switch', 'radio', 'active'],
1445
- value: '',
1446
- },
1447
- checked: {
1448
- id: 'checked',
1449
- group: 'Aspect',
1450
- type: 'bool',
1451
- field: 'checked',
1452
- value: false,
1453
- },
1454
- disabled: {
1455
- id: 'disabled',
1456
- group: 'Aspect',
1457
- type: 'bool',
1458
- field: 'disabled',
1459
- value: false,
1460
- },
1461
- readonly: {
1462
- id: 'readonly',
1463
- group: 'Aspect',
1464
- type: 'bool',
1465
- field: 'readonly',
1466
- value: false,
1467
- },
1468
- focusable: {
1469
- id: 'focusable',
1470
- group: 'Aspect',
1471
- type: 'bool',
1472
- field: 'focusable',
1473
- value: false,
1474
- },
1475
- text: {
1476
- id: 'text',
1477
- group: 'Text',
1478
- type: 'text',
1479
- field: 'text',
1480
- list: ['', 'Checkbox', 'Mise à jour automatique', 'Mode avancé'],
1481
- value: 'Checkbox',
1482
- },
1483
- horizontalSpacing: {
1484
- id: 'horizontalSpacing',
1485
- group: 'Layout',
1486
- type: 'combo',
1487
- field: 'horizontalSpacing',
1488
- list: ['', 'overlap', 'tiny', 'large', 'double'],
1489
- value: '',
1490
- },
1491
- },
1492
- Gauge: {
1493
- id: 'Gauge',
1494
- value: {
1495
- id: 'value',
1496
- group: 'Aspect',
1497
- type: 'text',
1498
- field: 'value',
1499
- list: [
1500
- '',
1501
- '0',
1502
- '10',
1503
- '20',
1504
- '30',
1505
- '40',
1506
- '50',
1507
- '60',
1508
- '70',
1509
- '80',
1510
- '90',
1511
- '100',
1512
- ],
1513
- value: '50',
1514
- },
1515
- },
1516
- Ticket: {
1517
- id: 'Ticket',
1518
- kind: {
1519
- id: 'kind',
1520
- group: 'Aspect',
1521
- type: 'combo',
1522
- field: 'kind',
1523
- list: ['', 'ticket', 'rect', 'thin', 'event', 'subpane', 'cover'],
1524
- value: 'ticket',
1525
- },
1526
- shape: {
1527
- id: 'shape',
1528
- group: 'Aspect',
1529
- type: 'combo',
1530
- field: 'shape',
1531
- list: ['', 'first', 'last'],
1532
- value: '',
1533
- },
1534
- hoverShape: {
1535
- id: 'hoverShape',
1536
- group: 'Aspect',
1537
- type: 'combo',
1538
- field: 'hoverShape',
1539
- list: ['', 'first', 'middle', 'last'],
1540
- value: '',
1541
- },
1542
- width: {
1543
- id: 'width',
1544
- group: 'Layout',
1545
- type: 'text',
1546
- unit: 'px',
1547
- field: 'width',
1548
- list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
1549
- value: '150px',
1550
- },
1551
- height: {
1552
- id: 'height',
1553
- group: 'Layout',
1554
- type: 'text',
1555
- unit: 'px',
1556
- field: 'height',
1557
- list: ['', '32px', '50px', '100px', '150px', '200px', '250px'],
1558
- value: '100px',
1559
- },
1560
- horizontalSpacing: {
1561
- id: 'horizontalSpacing',
1562
- group: 'Layout',
1563
- type: 'text',
1564
- unit: 'px',
1565
- field: 'horizontalSpacing',
1566
- list: ['', '0px', '2px', '10px', '20px'],
1567
- value: '2px',
1568
- },
1569
- verticalSpacing: {
1570
- id: 'verticalSpacing',
1571
- group: 'Layout',
1572
- type: 'text',
1573
- unit: 'px',
1574
- field: 'verticalSpacing',
1575
- list: ['', '0px', '2px', '10px', '20px'],
1576
- value: '2px',
1577
- },
1578
- hatch: {
1579
- id: 'hatch',
1580
- group: 'Aspect',
1581
- type: 'bool',
1582
- field: 'hatch',
1583
- value: false,
1584
- },
1585
- flash: {
1586
- id: 'flash',
1587
- group: 'Aspect',
1588
- type: 'bool',
1589
- field: 'flash',
1590
- value: false,
1591
- },
1592
- hideContent: {
1593
- id: 'hideContent',
1594
- group: 'Aspect',
1595
- type: 'bool',
1596
- field: 'hideContent',
1597
- value: false,
1598
- },
1599
- color: {
1600
- id: 'color',
1601
- group: 'Aspect',
1602
- type: 'text',
1603
- unit: 'color',
1604
- field: 'color',
1605
- list: colorList,
1606
- value: '#d2e6f9 — light blue',
1607
- },
1608
- hudGlyph: {
1609
- id: 'hudGlyph',
1610
- group: 'Content',
1611
- type: 'text',
1612
- field: 'hudGlyph',
1613
- list: [
1614
- '',
1615
- 'solid/check',
1616
- 'solid/times',
1617
- 'solid/bicycle',
1618
- 'solid/car',
1619
- 'solid/rocket',
1620
- 'solid/calendar',
1621
- ],
1622
- value: '',
1623
- },
1624
- backgroundText: {
1625
- id: 'backgroundText',
1626
- group: 'Content',
1627
- type: 'text',
1628
- field: 'backgroundText',
1629
- list: ['', '1', '2', '3', '4', 'Abc'],
1630
- value: '',
1631
- },
1632
- show: {
1633
- id: 'show',
1634
- group: 'Aspect',
1635
- type: 'bool',
1636
- field: 'show',
1637
- value: true,
1638
- },
1639
- visibility: {
1640
- id: 'visibility',
1641
- group: 'Aspect',
1642
- type: 'bool',
1643
- field: 'visibility',
1644
- value: true,
1645
- },
1646
- },
1647
- Container: {
1648
- id: 'Container',
1649
- disabled: {
1650
- id: 'disabled',
1651
- group: 'Aspect',
1652
- type: 'bool',
1653
- field: 'disabled',
1654
- value: false,
1655
- },
1656
- show: {
1657
- id: 'show',
1658
- group: 'Aspect',
1659
- type: 'bool',
1660
- field: 'show',
1661
- value: true,
1662
- },
1663
- selected: {
1664
- id: 'selected',
1665
- group: 'Aspect',
1666
- type: 'bool',
1667
- field: 'selected',
1668
- value: false,
1669
- },
1670
- busy: {
1671
- id: 'busy',
1672
- group: 'Aspect',
1673
- type: 'bool',
1674
- field: 'busy',
1675
- value: false,
1676
- },
1677
- kind: {
1678
- id: 'kind',
1679
- group: 'Aspect',
1680
- type: 'combo',
1681
- field: 'kind',
1682
- list: [
1683
- '',
1684
- 'actions',
1685
- 'box',
1686
- 'boxes',
1687
- 'chronos-events',
1688
- 'column',
1689
- 'column-full',
1690
- 'compact-row',
1691
- 'content',
1692
- 'drag-to-delete',
1693
- 'drag-too-many',
1694
- 'floating',
1695
- 'floating-footer',
1696
- 'floating-header',
1697
- 'flying-balloon',
1698
- 'flying-chat',
1699
- 'flying-dialog',
1700
- 'footer',
1701
- 'full-view',
1702
- 'glyph-samples',
1703
- 'left-bar',
1704
- 'main-tab',
1705
- 'main-tab-right',
1706
- 'mandats',
1707
- 'pane',
1708
- 'pane-top',
1709
- 'panes',
1710
- 'pane-header',
1711
- 'pane-header-light',
1712
- 'pane-hnavigator',
1713
- 'pane-navigator',
1714
- 'pane-top',
1715
- 'pane-vnavigator',
1716
- 'right',
1717
- 'row',
1718
- 'row-pane',
1719
- 'row-pane-drag',
1720
- 'row-wrap',
1721
- 'second-bar',
1722
- 'task-bar',
1723
- 'thin-center',
1724
- 'thin-column',
1725
- 'thin-main',
1726
- 'thin-row',
1727
- 'ticket-mode',
1728
- 'ticket-row',
1729
- 'ticket-column',
1730
- 'tickets',
1731
- 'tickets-desk',
1732
- 'tickets-messengers',
1733
- 'tickets-messenger',
1734
- 'tickets-root',
1735
- 'tickets-trips',
1736
- 'tickets-tray',
1737
- 'top-bar',
1738
- 'view',
1739
- 'view-edge',
1740
- 'view-right',
1741
- 'view-stretch',
1742
- 'view-tab',
1743
- 'view-tab-right',
1744
- 'views',
1745
- 'wrap',
1746
- ],
1747
- value: 'column',
1748
- },
1749
- subkind: {
1750
- id: 'subkind',
1751
- group: 'Aspect',
1752
- type: 'combo',
1753
- field: 'subkind',
1754
- list: [
1755
- '',
1756
- 'box',
1757
- 'box-left',
1758
- 'footer',
1759
- 'info',
1760
- 'large-box',
1761
- 'left',
1762
- 'light-box',
1763
- 'list',
1764
- 'me',
1765
- 'no-shadow',
1766
- 'top-margin',
1767
- 'wide-info',
1768
- 'wrap',
1769
- ],
1770
- value: '',
1771
- },
1772
- border: {
1773
- id: 'border',
1774
- group: 'Aspect',
1775
- type: 'combo',
1776
- field: 'border',
1777
- list: ['', 'top', 'right', 'bottom', 'left'],
1778
- value: '',
1779
- },
1780
- trianglePosition: {
1781
- id: 'trianglePosition',
1782
- group: 'Aspect',
1783
- type: 'combo',
1784
- field: 'trianglePosition',
1785
- list: ['', 'top', 'right', 'bottom', 'left', 'none'],
1786
- value: '',
1787
- },
1788
- triangleShift: {
1789
- id: 'triangleShift',
1790
- group: 'Aspect',
1791
- type: 'text',
1792
- unit: 'px',
1793
- field: 'triangleShift',
1794
- list: ['', '-50px', '-10px', '0px', '10px', '50px'],
1795
- value: '',
1796
- },
1797
- width: {
1798
- id: 'width',
1799
- group: 'Layout',
1800
- type: 'text',
1801
- unit: 'px',
1802
- field: 'width',
1803
- list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
1804
- value: '',
1805
- },
1806
- height: {
1807
- id: 'height',
1808
- group: 'Layout',
1809
- type: 'text',
1810
- unit: 'px',
1811
- field: 'height',
1812
- list: ['', '32px', '50px', '100px', '150px', '200px', '250px'],
1813
- value: '',
1814
- },
1815
- marginBottom: {
1816
- id: 'marginBottom',
1817
- group: 'Layout',
1818
- type: 'text',
1819
- unit: 'px',
1820
- field: 'marginBottom',
1821
- list: ['', '2px', '5px', '10px', '20px'],
1822
- value: '',
1823
- },
1824
- floatingHeight: {
1825
- id: 'floatingHeight',
1826
- group: 'Layout',
1827
- type: 'text',
1828
- unit: 'px',
1829
- field: 'floatingHeight',
1830
- list: ['', '10px', '20px', '50px', '100px'],
1831
- value: '10px',
1832
- },
1833
- grow: {
1834
- id: 'grow',
1835
- group: 'Layout',
1836
- type: 'text',
1837
- field: 'grow',
1838
- list: ['', '0.5', '1'],
1839
- value: '',
1840
- },
1841
- horizontalSpacing: {
1842
- id: 'horizontalSpacing',
1843
- group: 'Layout',
1844
- type: 'combo',
1845
- field: 'horizontalSpacing',
1846
- list: ['', 'compact', 'large'],
1847
- value: '',
1848
- },
1849
- backgroundColor: {
1850
- id: 'backgroundColor',
1851
- group: 'Aspect',
1852
- type: 'text',
1853
- unit: 'color',
1854
- field: 'backgroundColor',
1855
- list: colorList,
1856
- value: '',
1857
- },
1858
- },
1859
- Field: {
1860
- id: 'Field',
1861
- kind: {
1862
- id: 'kind',
1863
- group: 'Aspect',
1864
- type: 'combo',
1865
- field: 'kind',
1866
- list: ['', 'field', 'combo', 'radio', 'bool', 'hinter', 'file'],
1867
- value: 'field',
1868
- },
1869
- direction: {
1870
- id: 'direction',
1871
- group: 'Aspect',
1872
- type: 'combo',
1873
- field: 'direction',
1874
- list: ['', 'row', 'column', 'wrap'],
1875
- value: 'row',
1876
- },
1877
- rows: {
1878
- id: 'rows',
1879
- group: 'Text',
1880
- type: 'combo',
1881
- field: 'rows',
1882
- list: ['', '1', '2', '3', '4', '5', '10'],
1883
- value: '',
1884
- },
1885
- width: {
1886
- id: 'width',
1887
- group: 'Layout',
1888
- type: 'text',
1889
- unit: 'px',
1890
- field: 'width',
1891
- list: ['', '100px', '150px', '200px', '300px', '500px'],
1892
- value: '',
1893
- },
1894
- height: {
1895
- id: 'height',
1896
- group: 'Layout',
1897
- type: 'text',
1898
- unit: 'px',
1899
- field: 'height',
1900
- list: ['', '32px', '50px', '100px', '150px', '200px', '300px'],
1901
- value: '',
1902
- },
1903
- labelText: {
1904
- id: 'labelText',
1905
- group: 'Label',
1906
- type: 'text',
1907
- field: 'labelText',
1908
- list: ['', 'Field', 'Nom', 'Prénom', 'Adresse', 'Ville'],
1909
- value: 'Field',
1910
- },
1911
- labelGlyph: {
1912
- id: 'labelGlyph',
1913
- group: 'Label',
1914
- type: 'text',
1915
- field: 'labelGlyph',
1916
- list: [
1917
- '',
1918
- 'solid/check',
1919
- 'solid/times',
1920
- 'solid/bicycle',
1921
- 'solid/car',
1922
- 'solid/rocket',
1923
- 'solid/calendar',
1924
- ],
1925
- value: '',
1926
- },
1927
- labelWidth: {
1928
- id: 'labelWidth',
1929
- group: 'Layout',
1930
- type: 'text',
1931
- unit: 'px',
1932
- field: 'labelWidth',
1933
- list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
1934
- value: '',
1935
- },
1936
- hintText: {
1937
- id: 'hintText',
1938
- group: 'Text',
1939
- type: 'text',
1940
- field: 'hintText',
1941
- list: ['', 'Prénom', 'Nom', 'Adresse', 'Numéro postal', 'Ville'],
1942
- value: '',
1943
- },
1944
- justify: {
1945
- id: 'justify',
1946
- group: 'Text',
1947
- type: 'combo',
1948
- field: 'justify',
1949
- list: ['', 'left', 'right'],
1950
- value: '',
1951
- },
1952
- menuItemWidth: {
1953
- id: 'menuItemWidth',
1954
- group: 'Menu',
1955
- type: 'text',
1956
- unit: 'px',
1957
- field: 'menuItemWidth',
1958
- list: ['', '100px', '150px', '200px', '300px'],
1959
- value: '',
1960
- },
1961
- },
1962
- };
1963
-
1964
- const previewSettings = {
1965
- scale: {
1966
- id: 'scale',
1967
- order: 1,
1968
- group: 'Scale',
1969
- type: 'list',
1970
- list: [1, 1.5, 2, 3, 4],
1971
- value: 2,
1972
- },
1973
- color: {
1974
- id: 'color',
1975
- order: 2,
1976
- group: 'Color',
1977
- type: 'list',
1978
- list: ['pane', 'view', 'task', 'root', 'footer'],
1979
- value: 'pane',
1980
- },
1981
- items: {
1982
- id: 'items',
1983
- order: 3,
1984
- group: 'Items',
1985
- type: 'list',
1986
- list: [1, 2, 3, 4, 5, 10, 11],
1987
- value: 1,
1988
- },
1989
- layout: {
1990
- id: 'layout',
1991
- order: 4,
1992
- group: 'Layout',
1993
- type: 'list',
1994
- list: ['row', 'column', 'wrap'],
1995
- value: 'row',
1996
- },
1997
- showFrame: {
1998
- id: 'showFrame',
1999
- order: 5,
2000
- group: 'Frame',
2001
- type: 'bool',
2002
- value: false,
2003
- },
2004
- ticketLines: {
2005
- id: 'ticketLines',
2006
- for: 'Ticket',
2007
- order: 10,
2008
- group: 'Lines',
2009
- type: 'list',
2010
- list: [1, 2, 3, 4, 5, 10],
2011
- value: 1,
2012
- },
2013
- containerType: {
2014
- id: 'containerType',
2015
- for: 'Container',
2016
- order: 10,
2017
- group: 'Content',
2018
- type: 'list',
2019
- list: ['label', 'button', 'glyph'],
2020
- value: 'label',
2021
- },
2022
- containerItems: {
2023
- id: 'containerItems',
2024
- for: 'Container',
2025
- order: 11,
2026
- group: 'Content',
2027
- type: 'list',
2028
- list: [1, 2, 3, 4, 5, 12],
2029
- value: 1,
2030
- },
2031
- textFieldComboMenu: {
2032
- id: 'textFieldComboMenu',
2033
- for: 'TextFieldCombo',
2034
- order: 10,
2035
- group: 'Menu',
2036
- type: 'list',
2037
- list: ['short', 'long', 'glyphs', 'special1', 'special2'],
2038
- value: 'short',
2039
- },
2040
- fieldMenu: {
2041
- id: 'fieldMenu',
2042
- for: 'Field',
2043
- order: 10,
2044
- group: 'List',
2045
- type: 'list',
2046
- list: ['short', 'middle', 'long'],
2047
- value: 'short',
2048
- },
2049
- };
2050
-
2051
- // Define logic handlers according rc.json
2052
- const logicHandlers = {
2053
- create: (state, action) => {
2054
- const initialState = {
2055
- id: action.get('id'),
2056
- globalSettings: globalSettings,
2057
- properties: properties,
2058
- previewSettings: previewSettings,
2059
- };
2060
- return state.set('', initialState);
2061
- },
2062
- };
2063
-
2064
- // Register quest's according rc.json
2065
- Goblin.registerQuest(goblinName, 'create', function (quest, desktopId) {
2066
- const desk = quest.getAPI(desktopId);
2067
- desk.addTab({
2068
- name: 'Wizard',
2069
- contextId: 'test',
2070
- view: 'test-wizard',
2071
- workitemId: quest.goblin.id,
2072
- });
2073
- quest.do();
2074
- return quest.goblin.id;
2075
- });
2076
-
2077
- Goblin.registerQuest(goblinName, 'delete', function () {});
2078
-
2079
- // Manage global settings.
2080
- /*Object.keys (globalSettings).forEach (p => {
2081
- const globalSetting = globalSettings[p];
2082
- Goblin.registerQuest (goblinName, `change-global-setting-${p}`, function (
2083
- quest,
2084
- newValue
2085
- ) {
2086
- quest.do ({newValue});
2087
- });
2088
- logicHandlers[`change-global-setting-${p}`] = (state, action) => {
2089
- globalSetting.value = action.get ('newValue');
2090
- return state.set (`globalSettings.${p}`, globalSetting);
2091
- };
2092
- });*/
2093
-
2094
- // Manage properties of widget.
2095
- /*Object.keys (properties).forEach (w => {
2096
- const wizard = properties[w];
2097
- Object.keys (wizard).forEach (p => {
2098
- const property = wizard[p];
2099
- Goblin.registerQuest (
2100
- goblinName,
2101
- `change-properties.${w}.${property.field}.value`,
2102
- function (quest) {
2103
- quest.do ();
2104
- }
2105
- );
2106
- logicHandlers[`change-properties.${w}.${property.field}.value`] = (
2107
- state,
2108
- action
2109
- ) => {
2110
- property.value = action.get ('newValue');
2111
- return state.set (`properties.${w}.${property.field}`, property);
2112
- };
2113
- });
2114
- });*/
2115
-
2116
- // Manage preview settings.
2117
- /*Object.keys (previewSettings).forEach (p => {
2118
- const previewSetting = previewSettings[p];
2119
- Goblin.registerQuest (goblinName, `change-preview-setting-${p}`, function (
2120
- quest,
2121
- newValue
2122
- ) {
2123
- quest.do ({newValue});
2124
- });
2125
- logicHandlers[`change-preview-setting-${p}`] = (state, action) => {
2126
- previewSetting.value = action.get ('newValue');
2127
- return state.set (`previewSettings.${p}`, previewSetting);
2128
- };
2129
- });*/
2130
-
2131
- // Create a Goblin with initial state and handlers
2132
- module.exports = Goblin.configure(goblinName, logicState, logicHandlers);
1
+ //T:2019-02-27
2
+ //mock
3
+ 'use strict';
4
+
5
+ const path = require('path');
6
+ const goblinName = path.basename(module.parent.filename, '.js');
7
+ const Goblin = require('xcraft-core-goblin');
8
+
9
+ // Define initial logic values
10
+ const logicState = {};
11
+
12
+ const globalSettings = {
13
+ widget: {
14
+ id: 'widget',
15
+ value: 'Button',
16
+ },
17
+ };
18
+
19
+ const colorList = [
20
+ '',
21
+ 'base',
22
+ 'primary',
23
+ 'secondary',
24
+ 'success',
25
+ 'pick',
26
+ 'drop',
27
+ 'task',
28
+ 'white',
29
+ 'lightgrey',
30
+ 'grey',
31
+ 'black',
32
+ 'red',
33
+ 'green',
34
+ 'blue',
35
+ 'yellow',
36
+ '#d2e6f9 — light blue',
37
+ '#8ab6df — blue',
38
+ '#f5ddb8 — light orange',
39
+ '#fbce89 — orange',
40
+ '#c6f7da — light green',
41
+ '#74f7a9 — green',
42
+ ];
43
+
44
+ const properties = {
45
+ Button: {
46
+ id: 'Button',
47
+ kind: {
48
+ id: 'kind',
49
+ group: 'Aspect',
50
+ type: 'combo',
51
+ field: 'kind',
52
+ list: [
53
+ '',
54
+ 'action',
55
+ 'button-notification',
56
+ 'button-footer',
57
+ 'calendar-navigator',
58
+ 'check-button',
59
+ 'chronos-navigator',
60
+ 'chronos-navigator',
61
+ 'combo',
62
+ 'combo-item',
63
+ 'combo-wrap-item',
64
+ 'desk-title',
65
+ 'disabled-light',
66
+ 'dynamic-toolbar-left',
67
+ 'dynamic-toolbar-top-left',
68
+ 'dynamic-toolbar-top-right',
69
+ 'glyph-item',
70
+ 'hover',
71
+ 'identity',
72
+ 'label',
73
+ 'main-tab',
74
+ 'main-tab-right',
75
+ 'menu-item',
76
+ 'notification-close',
77
+ 'pane-navigator',
78
+ 'pane-hnavigator',
79
+ 'pane-vnavigator',
80
+ 'recurrence',
81
+ 'round',
82
+ 'subaction',
83
+ 'task-bar',
84
+ 'task-tab',
85
+ 'task-logo',
86
+ 'thin-left',
87
+ 'thin-right',
88
+ 'toolbar',
89
+ 'view-tab',
90
+ 'view-tab-right',
91
+ 'warning',
92
+ ],
93
+ value: '',
94
+ },
95
+ active: {
96
+ id: 'active',
97
+ group: 'Aspect',
98
+ type: 'bool',
99
+ field: 'active',
100
+ value: false,
101
+ },
102
+ disabled: {
103
+ id: 'disabled',
104
+ group: 'Aspect',
105
+ type: 'bool',
106
+ field: 'disabled',
107
+ value: false,
108
+ },
109
+ readonly: {
110
+ id: 'readonly',
111
+ group: 'Aspect',
112
+ type: 'bool',
113
+ field: 'readonly',
114
+ value: false,
115
+ },
116
+ focusable: {
117
+ id: 'focusable',
118
+ group: 'Aspect',
119
+ type: 'bool',
120
+ field: 'focusable',
121
+ value: false,
122
+ },
123
+ busy: {
124
+ id: 'busy',
125
+ group: 'Aspect',
126
+ type: 'bool',
127
+ field: 'busy',
128
+ value: false,
129
+ },
130
+ border: {
131
+ id: 'border',
132
+ group: 'Aspect',
133
+ type: 'combo',
134
+ field: 'border',
135
+ list: ['', 'none'],
136
+ value: '',
137
+ },
138
+ text: {
139
+ id: 'text',
140
+ group: 'Text',
141
+ type: 'text',
142
+ field: 'text',
143
+ list: [
144
+ '',
145
+ 'Button',
146
+ "D'accord",
147
+ 'Annuler',
148
+ 'Enregistrer',
149
+ 'Ouvrir le dossier',
150
+ 'Long mot (anticonstitutionnellement) pour tester le mode wrap',
151
+ 'Première ligne<br/>Deuxième ligne<br/>Troisième ligne<br/>Quatrième ligne<br/>Cinquième ligne',
152
+ 'Normal <em>sélectionné</em> normal',
153
+ ],
154
+ value: 'Button',
155
+ },
156
+ glyph: {
157
+ id: 'glyph',
158
+ group: 'Glyph',
159
+ type: 'text',
160
+ field: 'glyph',
161
+ list: [
162
+ '',
163
+ 'solid/check',
164
+ 'solid/times',
165
+ 'solid/bicycle',
166
+ 'solid/car',
167
+ 'solid/rocket',
168
+ 'solid/calendar',
169
+ ],
170
+ value: 'solid/check',
171
+ },
172
+ glyphRotate: {
173
+ id: 'glyphRotate',
174
+ group: 'Glyph',
175
+ type: 'combo',
176
+ field: 'glyphRotate',
177
+ list: ['', '90', '180', '270'],
178
+ value: '',
179
+ },
180
+ glyphFlip: {
181
+ id: 'glyphFlip',
182
+ group: 'Glyph',
183
+ type: 'combo',
184
+ field: 'glyphFlip',
185
+ list: ['', 'horizontal', 'vertical'],
186
+ value: '',
187
+ },
188
+ glyphSpin: {
189
+ id: 'glyphSpin',
190
+ group: 'Glyph',
191
+ type: 'combo',
192
+ field: 'glyphSpin',
193
+ list: ['', 'yes'],
194
+ value: '',
195
+ },
196
+ glyphPosition: {
197
+ id: 'glyphPosition',
198
+ group: 'Glyph',
199
+ type: 'combo',
200
+ field: 'glyphPosition',
201
+ list: ['', 'left', 'right'],
202
+ value: '',
203
+ },
204
+ glyphColor: {
205
+ id: 'glyphColor',
206
+ group: 'Glyph',
207
+ type: 'text',
208
+ unit: 'color',
209
+ field: 'glyphColor',
210
+ list: colorList,
211
+ value: '',
212
+ },
213
+ glyphSize: {
214
+ id: 'glyphSize',
215
+ group: 'Glyph',
216
+ type: 'combo',
217
+ field: 'glyphSize',
218
+ list: ['', '50%', '75%', '100%', '150%', '200%'],
219
+ value: '',
220
+ },
221
+ shape: {
222
+ id: 'shape',
223
+ group: 'Aspect',
224
+ type: 'combo',
225
+ field: 'shape',
226
+ list: [
227
+ '',
228
+ 'rounded',
229
+ 'left-rounded',
230
+ 'right-rounded',
231
+ 'left-smooth',
232
+ 'right-smooth',
233
+ ],
234
+ value: '',
235
+ },
236
+ tooltip: {
237
+ id: 'tooltip',
238
+ group: 'Aspect',
239
+ type: 'text',
240
+ field: 'tooltip',
241
+ value: '',
242
+ },
243
+ shortcut: {
244
+ id: 'shortcut',
245
+ group: 'Aspect',
246
+ type: 'text',
247
+ field: 'shortcut',
248
+ list: ['', '_ctrl_+A', '_shift_+A', '_alt_+A'],
249
+ value: '',
250
+ },
251
+ justify: {
252
+ id: 'justify',
253
+ group: 'Aspect',
254
+ type: 'combo',
255
+ field: 'justify',
256
+ list: ['', 'start', 'center', 'end', 'around', 'between', 'none'],
257
+ value: '',
258
+ },
259
+ width: {
260
+ id: 'width',
261
+ group: 'Layout',
262
+ type: 'text',
263
+ unit: 'px',
264
+ field: 'width',
265
+ list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
266
+ value: '',
267
+ },
268
+ height: {
269
+ id: 'height',
270
+ group: 'Layout',
271
+ type: 'text',
272
+ unit: 'px',
273
+ field: 'height',
274
+ list: ['', '32px', '50px', '100px', '150px', '200px'],
275
+ value: '',
276
+ },
277
+ grow: {
278
+ id: 'grow',
279
+ group: 'Layout',
280
+ type: 'text',
281
+ field: 'grow',
282
+ list: ['', '0.5', '1'],
283
+ value: '',
284
+ },
285
+ horizontalSpacing: {
286
+ id: 'horizontalSpacing',
287
+ group: 'Layout',
288
+ type: 'combo',
289
+ field: 'horizontalSpacing',
290
+ list: ['', 'overlap', 'tiny', 'large', 'double'],
291
+ value: '',
292
+ },
293
+ textColor: {
294
+ id: 'textColor',
295
+ group: 'Text',
296
+ type: 'text',
297
+ unit: 'color',
298
+ field: 'textColor',
299
+ list: colorList,
300
+ value: '',
301
+ },
302
+ backgroundColor: {
303
+ id: 'backgroundColor',
304
+ group: 'Aspect',
305
+ type: 'text',
306
+ unit: 'color',
307
+ field: 'backgroundColor',
308
+ list: colorList,
309
+ value: '',
310
+ },
311
+ activeColor: {
312
+ id: 'activeColor',
313
+ group: 'Aspect',
314
+ type: 'text',
315
+ unit: 'color',
316
+ field: 'activeColor',
317
+ list: colorList,
318
+ value: '',
319
+ },
320
+ fontSize: {
321
+ id: 'fontSize',
322
+ group: 'Text',
323
+ type: 'combo',
324
+ field: 'fontSize',
325
+ list: ['', '50%', '75%', '100%', '150%', '200%'],
326
+ value: '',
327
+ },
328
+ fontWeight: {
329
+ id: 'fontWeight',
330
+ group: 'Text',
331
+ type: 'combo',
332
+ field: 'fontWeight',
333
+ list: ['', 'bold'],
334
+ value: '',
335
+ },
336
+ fontStyle: {
337
+ id: 'fontStyle',
338
+ group: 'Text',
339
+ type: 'combo',
340
+ field: 'fontStyle',
341
+ list: ['', 'italic', 'oblique'],
342
+ value: '',
343
+ },
344
+ textTransform: {
345
+ id: 'textTransform',
346
+ group: 'Text',
347
+ type: 'combo',
348
+ field: 'textTransform',
349
+ list: ['', 'uppercase', 'none'],
350
+ value: '',
351
+ },
352
+ wrap: {
353
+ id: 'wrap',
354
+ group: 'Text',
355
+ type: 'combo',
356
+ field: 'wrap',
357
+ list: ['', 'no', 'no-strict', 'yes', 'yes-permissive'],
358
+ value: '',
359
+ },
360
+ badgeValue: {
361
+ id: 'badgeValue',
362
+ group: 'Badge',
363
+ type: 'text',
364
+ field: 'badgeValue',
365
+ list: ['', '1', '2', '99', '123456'],
366
+ value: '',
367
+ },
368
+ badgePush: {
369
+ id: 'badgePush',
370
+ group: 'Badge',
371
+ type: 'bool',
372
+ field: 'badgePush',
373
+ value: '',
374
+ },
375
+ place: {
376
+ id: 'place',
377
+ group: 'Aspect',
378
+ type: 'combo',
379
+ field: 'place',
380
+ list: ['', '1/1', '1/3', '2/3', '3/3'],
381
+ value: '',
382
+ },
383
+ cursor: {
384
+ id: 'cursor',
385
+ group: 'Aspect',
386
+ type: 'combo',
387
+ field: 'cursor',
388
+ list: [
389
+ '',
390
+ 'default',
391
+ 'none',
392
+ 'pointer',
393
+ 'cell',
394
+ 'crosshair',
395
+ 'text',
396
+ 'move',
397
+ 'not-allowed',
398
+ 'ew-resize',
399
+ 'ns-resize',
400
+ 'grab',
401
+ ],
402
+ value: '',
403
+ },
404
+ show: {
405
+ id: 'show',
406
+ group: 'Aspect',
407
+ type: 'bool',
408
+ field: 'show',
409
+ value: true,
410
+ },
411
+ visibility: {
412
+ id: 'visibility',
413
+ group: 'Aspect',
414
+ type: 'bool',
415
+ field: 'visibility',
416
+ value: true,
417
+ },
418
+ },
419
+ Label: {
420
+ id: 'Label',
421
+ kind: {
422
+ id: 'kind',
423
+ group: 'Aspect',
424
+ type: 'combo',
425
+ field: 'kind',
426
+ list: [
427
+ '',
428
+ 'big-center',
429
+ 'center-to-box',
430
+ 'compact',
431
+ 'floating-footer',
432
+ 'floating-header',
433
+ 'flying-balloon',
434
+ 'footer',
435
+ 'info',
436
+ 'large-left',
437
+ 'large-right',
438
+ 'large-single',
439
+ 'notification',
440
+ 'one-line-height',
441
+ 'pane-header',
442
+ 'task',
443
+ 'ticket-warning',
444
+ 'title',
445
+ 'title-recurrence',
446
+ ],
447
+ value: '',
448
+ },
449
+ disabled: {
450
+ id: 'disabled',
451
+ group: 'Aspect',
452
+ type: 'bool',
453
+ field: 'disabled',
454
+ value: false,
455
+ },
456
+ text: {
457
+ id: 'text',
458
+ group: 'Text',
459
+ type: 'text',
460
+ field: 'text',
461
+ list: [
462
+ '',
463
+ 'Label',
464
+ 'Nom',
465
+ 'Prénom',
466
+ 'NPA',
467
+ 'Ville',
468
+ 'Long mot (anticonstitutionnellement) pour tester le mode wrap',
469
+ 'Première ligne<br/>Deuxième ligne<br/>Troisième ligne<br/>Quatrième ligne<br/>Cinquième ligne',
470
+ 'Normal <em>sélectionné</em> normal',
471
+ ],
472
+ value: 'Label',
473
+ },
474
+ glyph: {
475
+ id: 'glyph',
476
+ group: 'Glyph',
477
+ type: 'text',
478
+ field: 'glyph',
479
+ list: [
480
+ '',
481
+ 'solid/check',
482
+ 'solid/times',
483
+ 'solid/bicycle',
484
+ 'solid/car',
485
+ 'solid/rocket',
486
+ 'solid/calendar',
487
+ ],
488
+ value: 'solid/rocket',
489
+ },
490
+ glyphRotate: {
491
+ id: 'glyphRotate',
492
+ group: 'Glyph',
493
+ type: 'combo',
494
+ field: 'glyphRotate',
495
+ list: ['', '90', '180', '270'],
496
+ value: '',
497
+ },
498
+ glyphFlip: {
499
+ id: 'glyphFlip',
500
+ group: 'Glyph',
501
+ type: 'combo',
502
+ field: 'glyphFlip',
503
+ list: ['', 'horizontal', 'vertical'],
504
+ value: '',
505
+ },
506
+ glyphSpin: {
507
+ id: 'glyphSpin',
508
+ group: 'Glyph',
509
+ type: 'combo',
510
+ field: 'glyphSpin',
511
+ list: ['', 'yes'],
512
+ value: '',
513
+ },
514
+ glyphPosition: {
515
+ id: 'glyphPosition',
516
+ group: 'Glyph',
517
+ type: 'combo',
518
+ field: 'glyphPosition',
519
+ list: ['', 'left', 'right'],
520
+ value: '',
521
+ },
522
+ glyphColor: {
523
+ id: 'glyphColor',
524
+ group: 'Glyph',
525
+ type: 'text',
526
+ unit: 'color',
527
+ field: 'glyphColor',
528
+ list: colorList,
529
+ value: '',
530
+ },
531
+ glyphSize: {
532
+ id: 'glyphSize',
533
+ group: 'Glyph',
534
+ type: 'combo',
535
+ field: 'glyphSize',
536
+ list: ['', '50%', '75%', '100%', '150%', '200%'],
537
+ value: '',
538
+ },
539
+ shape: {
540
+ id: 'shape',
541
+ group: 'Aspect',
542
+ type: 'combo',
543
+ field: 'shape',
544
+ list: [
545
+ '',
546
+ 'rounded',
547
+ 'left-rounded',
548
+ 'right-rounded',
549
+ 'left-smooth',
550
+ 'right-smooth',
551
+ ],
552
+ value: '',
553
+ },
554
+ insideButton: {
555
+ id: 'insideButton',
556
+ group: 'Aspect',
557
+ type: 'bool',
558
+ field: 'insideButton',
559
+ value: false,
560
+ },
561
+ tooltip: {
562
+ id: 'tooltip',
563
+ group: 'Aspect',
564
+ type: 'text',
565
+ field: 'tooltip',
566
+ value: '',
567
+ },
568
+ justify: {
569
+ id: 'justify',
570
+ group: 'Aspect',
571
+ type: 'combo',
572
+ field: 'justify',
573
+ list: ['', 'start', 'center', 'end', 'around', 'between', 'none'],
574
+ value: '',
575
+ },
576
+ width: {
577
+ id: 'width',
578
+ group: 'Layout',
579
+ type: 'text',
580
+ unit: 'px',
581
+ field: 'width',
582
+ list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
583
+ value: '',
584
+ },
585
+ height: {
586
+ id: 'height',
587
+ group: 'Layout',
588
+ type: 'text',
589
+ unit: 'px',
590
+ field: 'height',
591
+ list: ['', '32px', '50px', '100px', '150px', '200px'],
592
+ value: '',
593
+ },
594
+ grow: {
595
+ id: 'grow',
596
+ group: 'Layout',
597
+ type: 'text',
598
+ field: 'grow',
599
+ list: ['', '0.5', '1'],
600
+ value: '',
601
+ },
602
+ horizontalSpacing: {
603
+ id: 'horizontalSpacing',
604
+ group: 'Layout',
605
+ type: 'combo',
606
+ field: 'horizontalSpacing',
607
+ list: ['', 'overlap', 'tiny', 'large', 'double'],
608
+ value: '',
609
+ },
610
+ bottomSpacing: {
611
+ id: 'bottomSpacing',
612
+ group: 'Layout',
613
+ type: 'combo',
614
+ field: 'bottomSpacing',
615
+ list: ['', 'large'],
616
+ value: '',
617
+ },
618
+ vpos: {
619
+ id: 'vpos',
620
+ group: 'Layout',
621
+ type: 'combo',
622
+ field: 'vpos',
623
+ list: ['', 'top'],
624
+ value: '',
625
+ },
626
+ textColor: {
627
+ id: 'textColor',
628
+ group: 'Text',
629
+ type: 'text',
630
+ unit: 'color',
631
+ field: 'textColor',
632
+ list: colorList,
633
+ value: '',
634
+ },
635
+ backgroundColor: {
636
+ id: 'backgroundColor',
637
+ group: 'Aspect',
638
+ type: 'text',
639
+ unit: 'color',
640
+ field: 'backgroundColor',
641
+ list: colorList,
642
+ value: '',
643
+ },
644
+ fontSize: {
645
+ id: 'fontSize',
646
+ group: 'Text',
647
+ type: 'combo',
648
+ field: 'fontSize',
649
+ list: ['', '50%', '75%', '100%', '150%', '200%'],
650
+ value: '',
651
+ },
652
+ fontWeight: {
653
+ id: 'fontWeight',
654
+ group: 'Text',
655
+ type: 'combo',
656
+ field: 'fontWeight',
657
+ list: ['', 'bold'],
658
+ value: '',
659
+ },
660
+ fontStyle: {
661
+ id: 'fontStyle',
662
+ group: 'Text',
663
+ type: 'combo',
664
+ field: 'fontStyle',
665
+ list: ['', 'italic', 'oblique'],
666
+ value: '',
667
+ },
668
+ textTransform: {
669
+ id: 'textTransform',
670
+ group: 'Text',
671
+ type: 'combo',
672
+ field: 'textTransform',
673
+ list: ['', 'uppercase', 'none'],
674
+ value: '',
675
+ },
676
+ wrap: {
677
+ id: 'wrap',
678
+ group: 'Text',
679
+ type: 'combo',
680
+ field: 'wrap',
681
+ list: ['', 'no', 'no-strict', 'yes', 'yes-permissive'],
682
+ value: '',
683
+ },
684
+ cursor: {
685
+ id: 'cursor',
686
+ group: 'Aspect',
687
+ type: 'combo',
688
+ field: 'cursor',
689
+ list: [
690
+ '',
691
+ 'default',
692
+ 'none',
693
+ 'pointer',
694
+ 'cell',
695
+ 'crosshair',
696
+ 'text',
697
+ 'move',
698
+ 'not-allowed',
699
+ 'ew-resize',
700
+ 'ns-resize',
701
+ 'grab',
702
+ ],
703
+ value: '',
704
+ },
705
+ show: {
706
+ id: 'show',
707
+ group: 'Aspect',
708
+ type: 'bool',
709
+ field: 'show',
710
+ value: true,
711
+ },
712
+ visibility: {
713
+ id: 'visibility',
714
+ group: 'Aspect',
715
+ type: 'bool',
716
+ field: 'visibility',
717
+ value: true,
718
+ },
719
+ },
720
+ TextField: {
721
+ id: 'TextField',
722
+ active: {
723
+ id: 'active',
724
+ group: 'Aspect',
725
+ type: 'bool',
726
+ field: 'active',
727
+ value: false,
728
+ },
729
+ disabled: {
730
+ id: 'disabled',
731
+ group: 'Aspect',
732
+ type: 'bool',
733
+ field: 'disabled',
734
+ value: false,
735
+ },
736
+ readonly: {
737
+ id: 'readonly',
738
+ group: 'Text',
739
+ type: 'bool',
740
+ field: 'readonly',
741
+ value: false,
742
+ },
743
+ defaultValue: {
744
+ id: 'defaultValue',
745
+ group: 'Text',
746
+ type: 'text',
747
+ field: 'defaultValue',
748
+ list: [
749
+ '',
750
+ 'TextField',
751
+ 'Jean Dupond',
752
+ 'Lausanne',
753
+ 'Première ligne<br/>Deuxième ligne<br/>Troisième ligne',
754
+ ],
755
+ value: 'TextField',
756
+ },
757
+ hintText: {
758
+ id: 'hintText',
759
+ group: 'Text',
760
+ type: 'text',
761
+ field: 'hintText',
762
+ list: ['', 'Prénom et nom', 'Adresse', 'Ville'],
763
+ value: 'Prénom et nom',
764
+ },
765
+ tooltip: {
766
+ id: 'tooltip',
767
+ group: 'Aspect',
768
+ type: 'text',
769
+ field: 'tooltip',
770
+ value: '',
771
+ },
772
+ shape: {
773
+ id: 'shape',
774
+ group: 'Aspect',
775
+ type: 'combo',
776
+ field: 'shape',
777
+ list: [
778
+ '',
779
+ 'rounded',
780
+ 'left-rounded',
781
+ 'right-rounded',
782
+ 'left-smooth',
783
+ 'right-smooth',
784
+ ],
785
+ value: '',
786
+ },
787
+ rows: {
788
+ id: 'rows',
789
+ group: 'Text',
790
+ type: 'combo',
791
+ field: 'rows',
792
+ list: ['', '1', '2', '3', '4', '5', '10'],
793
+ value: '',
794
+ },
795
+ size: {
796
+ id: 'size',
797
+ group: 'Text',
798
+ type: 'combo',
799
+ field: 'size',
800
+ list: ['', '1', '10', '100'],
801
+ value: '',
802
+ },
803
+ maxLength: {
804
+ id: 'maxLength',
805
+ group: 'Text',
806
+ type: 'combo',
807
+ field: 'maxLength',
808
+ list: ['', '1', '10', '20', '100'],
809
+ value: '',
810
+ },
811
+ messageInfo: {
812
+ id: 'messageInfo',
813
+ group: 'Message',
814
+ type: 'text',
815
+ field: 'messageInfo',
816
+ value: '',
817
+ },
818
+ messageWarning: {
819
+ id: 'messageWarning',
820
+ group: 'Message',
821
+ type: 'text',
822
+ field: 'messageWarning',
823
+ value: '',
824
+ },
825
+ flyingBalloonAnchor: {
826
+ id: 'flyingBalloonAnchor',
827
+ group: 'Message',
828
+ type: 'combo',
829
+ field: 'flyingBalloonAnchor',
830
+ list: ['left', 'right', 'top', 'bottom'],
831
+ value: 'bottom',
832
+ },
833
+ width: {
834
+ id: 'width',
835
+ group: 'Layout',
836
+ type: 'text',
837
+ unit: 'px',
838
+ field: 'width',
839
+ list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
840
+ value: '',
841
+ },
842
+ grow: {
843
+ id: 'grow',
844
+ group: 'Layout',
845
+ type: 'text',
846
+ field: 'grow',
847
+ list: ['', '0.5', '1'],
848
+ value: '1',
849
+ },
850
+ horizontalSpacing: {
851
+ id: 'horizontalSpacing',
852
+ group: 'Layout',
853
+ type: 'combo',
854
+ field: 'horizontalSpacing',
855
+ list: ['', 'overlap', 'tiny', 'large', 'double'],
856
+ value: '',
857
+ },
858
+ justify: {
859
+ id: 'justify',
860
+ group: 'Text',
861
+ type: 'combo',
862
+ field: 'justify',
863
+ list: ['', 'left', 'right'],
864
+ value: '',
865
+ },
866
+ cursor: {
867
+ id: 'cursor',
868
+ group: 'Aspect',
869
+ type: 'combo',
870
+ field: 'cursor',
871
+ list: [
872
+ '',
873
+ 'default',
874
+ 'none',
875
+ 'pointer',
876
+ 'cell',
877
+ 'crosshair',
878
+ 'text',
879
+ 'move',
880
+ 'not-allowed',
881
+ 'ew-resize',
882
+ 'ns-resize',
883
+ 'grab',
884
+ ],
885
+ value: '',
886
+ },
887
+ show: {
888
+ id: 'show',
889
+ group: 'Aspect',
890
+ type: 'bool',
891
+ field: 'show',
892
+ value: true,
893
+ },
894
+ visibility: {
895
+ id: 'visibility',
896
+ group: 'Aspect',
897
+ type: 'bool',
898
+ field: 'visibility',
899
+ value: true,
900
+ },
901
+ },
902
+ LabelTextField: {
903
+ id: 'LabelTextField',
904
+ disabled: {
905
+ id: 'disabled',
906
+ group: 'Aspect',
907
+ type: 'bool',
908
+ field: 'disabled',
909
+ value: false,
910
+ },
911
+ readonly: {
912
+ id: 'readonly',
913
+ group: 'Text',
914
+ type: 'bool',
915
+ field: 'readonly',
916
+ value: false,
917
+ },
918
+ defaultValue: {
919
+ id: 'defaultValue',
920
+ group: 'Text',
921
+ type: 'text',
922
+ field: 'defaultValue',
923
+ list: [
924
+ '',
925
+ 'LabelTextField',
926
+ 'Jean Dupond',
927
+ 'Première ligne<br/>Deuxième ligne<br/>Troisième ligne',
928
+ ],
929
+ value: 'LabelTextField',
930
+ },
931
+ labelText: {
932
+ id: 'labelText',
933
+ group: 'Label',
934
+ type: 'text',
935
+ field: 'labelText',
936
+ list: ['', 'Label', 'Nom', 'Prénom', 'Adresse', 'Ville'],
937
+ value: '',
938
+ },
939
+ labelGlyph: {
940
+ id: 'labelGlyph',
941
+ group: 'Label',
942
+ type: 'text',
943
+ field: 'labelGlyph',
944
+ list: [
945
+ '',
946
+ 'solid/check',
947
+ 'solid/times',
948
+ 'solid/bicycle',
949
+ 'solid/car',
950
+ 'solid/rocket',
951
+ 'solid/calendar',
952
+ ],
953
+ value: 'solid/car',
954
+ },
955
+ shape: {
956
+ id: 'shape',
957
+ group: 'Aspect',
958
+ type: 'combo',
959
+ field: 'shape',
960
+ list: ['', 'rounded', 'smooth'],
961
+ value: '',
962
+ },
963
+ fieldJustify: {
964
+ id: 'fieldJustify',
965
+ group: 'Text',
966
+ type: 'combo',
967
+ field: 'fieldJustify',
968
+ list: ['', 'left', 'right'],
969
+ value: '',
970
+ },
971
+ messageInfo: {
972
+ id: 'messageInfo',
973
+ group: 'Message',
974
+ type: 'text',
975
+ field: 'messageInfo',
976
+ value: '',
977
+ },
978
+ messageWarning: {
979
+ id: 'messageWarning',
980
+ group: 'Message',
981
+ type: 'text',
982
+ field: 'messageWarning',
983
+ value: '',
984
+ },
985
+ hintText: {
986
+ id: 'hintText',
987
+ group: 'Text',
988
+ type: 'text',
989
+ field: 'hintText',
990
+ list: ['', 'Prénom et nom', 'Adresse'],
991
+ value: 'Adresse',
992
+ },
993
+ tooltip: {
994
+ id: 'tooltip',
995
+ group: 'Aspect',
996
+ type: 'text',
997
+ field: 'tooltip',
998
+ value: '',
999
+ },
1000
+ width: {
1001
+ id: 'width',
1002
+ group: 'Layout',
1003
+ type: 'text',
1004
+ unit: 'px',
1005
+ field: 'width',
1006
+ list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
1007
+ value: '',
1008
+ },
1009
+ labelWidth: {
1010
+ id: 'labelWidth',
1011
+ group: 'Layout',
1012
+ type: 'text',
1013
+ unit: 'px',
1014
+ field: 'labelWidth',
1015
+ list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
1016
+ value: '',
1017
+ },
1018
+ fieldWidth: {
1019
+ id: 'fieldWidth',
1020
+ group: 'Layout',
1021
+ type: 'text',
1022
+ unit: 'px',
1023
+ field: 'fieldWidth',
1024
+ list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
1025
+ value: '',
1026
+ },
1027
+ grow: {
1028
+ id: 'grow',
1029
+ group: 'Layout',
1030
+ type: 'text',
1031
+ field: 'grow',
1032
+ list: ['', '0.5', '1'],
1033
+ value: '1',
1034
+ },
1035
+ horizontalSpacing: {
1036
+ id: 'horizontalSpacing',
1037
+ group: 'Layout',
1038
+ type: 'combo',
1039
+ field: 'horizontalSpacing',
1040
+ list: ['', 'overlap', 'tiny', 'large', 'double'],
1041
+ value: '',
1042
+ },
1043
+ cursor: {
1044
+ id: 'cursor',
1045
+ group: 'Aspect',
1046
+ type: 'combo',
1047
+ field: 'cursor',
1048
+ list: [
1049
+ '',
1050
+ 'default',
1051
+ 'none',
1052
+ 'pointer',
1053
+ 'cell',
1054
+ 'crosshair',
1055
+ 'text',
1056
+ 'move',
1057
+ 'not-allowed',
1058
+ 'ew-resize',
1059
+ 'ns-resize',
1060
+ 'grab',
1061
+ ],
1062
+ value: '',
1063
+ },
1064
+ show: {
1065
+ id: 'show',
1066
+ group: 'Aspect',
1067
+ type: 'bool',
1068
+ field: 'show',
1069
+ value: true,
1070
+ },
1071
+ visibility: {
1072
+ id: 'visibility',
1073
+ group: 'Aspect',
1074
+ type: 'bool',
1075
+ field: 'visibility',
1076
+ value: true,
1077
+ },
1078
+ },
1079
+ TextFieldCombo: {
1080
+ id: 'TextFieldCombo',
1081
+ disabled: {
1082
+ id: 'disabled',
1083
+ group: 'Aspect',
1084
+ type: 'bool',
1085
+ field: 'disabled',
1086
+ value: false,
1087
+ },
1088
+ readonly: {
1089
+ id: 'readonly',
1090
+ group: 'Text',
1091
+ type: 'bool',
1092
+ field: 'readonly',
1093
+ value: false,
1094
+ },
1095
+ menuType: {
1096
+ id: 'menuType',
1097
+ group: 'Menu',
1098
+ type: 'combo',
1099
+ field: 'menuType',
1100
+ list: ['', 'select', 'combo', 'wrap'],
1101
+ value: 'wrap',
1102
+ },
1103
+ menuItemWidth: {
1104
+ id: 'menuItemWidth',
1105
+ group: 'Menu',
1106
+ type: 'text',
1107
+ unit: 'px',
1108
+ field: 'menuItemWidth',
1109
+ list: ['', '100px', '150px', '200px', '300px'],
1110
+ value: '',
1111
+ },
1112
+ menuItemTooltips: {
1113
+ id: 'menuItemTooltips',
1114
+ group: 'Menu',
1115
+ type: 'bool',
1116
+ field: 'menuItemTooltips',
1117
+ value: false,
1118
+ },
1119
+ defaultValue: {
1120
+ id: 'defaultValue',
1121
+ group: 'Text',
1122
+ type: 'text',
1123
+ field: 'defaultValue',
1124
+ list: [
1125
+ '',
1126
+ 'TextFieldCombo',
1127
+ 'Lundi',
1128
+ 'Mardi',
1129
+ 'Mercredi',
1130
+ 'Jeudi',
1131
+ 'Vendredi',
1132
+ 'Samedi',
1133
+ 'Dimanche',
1134
+ 'Première ligne<br/>Deuxième ligne<br/>Troisième ligne',
1135
+ ],
1136
+ value: 'TextFieldCombo',
1137
+ },
1138
+ selectedValue: {
1139
+ id: 'selectedValue',
1140
+ group: 'Text',
1141
+ type: 'text',
1142
+ field: 'selectedValue',
1143
+ list: [
1144
+ '',
1145
+ 'Lundi',
1146
+ 'Mardi',
1147
+ 'Mercredi',
1148
+ 'Jeudi',
1149
+ 'Vendredi',
1150
+ 'Samedi',
1151
+ 'Dimanche',
1152
+ ],
1153
+ value: '',
1154
+ },
1155
+ comboGlyph: {
1156
+ id: 'comboGlyph',
1157
+ group: 'Aspect',
1158
+ type: 'text',
1159
+ field: 'comboGlyph',
1160
+ list: ['', 'search'],
1161
+ value: '',
1162
+ },
1163
+ shape: {
1164
+ id: 'shape',
1165
+ group: 'Aspect',
1166
+ type: 'combo',
1167
+ field: 'shape',
1168
+ list: ['', 'rounded', 'smooth'],
1169
+ value: '',
1170
+ },
1171
+ messageInfo: {
1172
+ id: 'messageInfo',
1173
+ group: 'Message',
1174
+ type: 'text',
1175
+ field: 'messageInfo',
1176
+ value: '',
1177
+ },
1178
+ messageWarning: {
1179
+ id: 'messageWarning',
1180
+ group: 'Message',
1181
+ type: 'text',
1182
+ field: 'messageWarning',
1183
+ value: '',
1184
+ },
1185
+ hintText: {
1186
+ id: 'hintText',
1187
+ group: 'Text',
1188
+ type: 'text',
1189
+ field: 'hintText',
1190
+ list: ['', 'Jour de la semaine', 'Prénom et nom', 'Adresse'],
1191
+ value: 'Jour de la semaine',
1192
+ },
1193
+ tooltip: {
1194
+ id: 'tooltip',
1195
+ group: 'Aspect',
1196
+ type: 'text',
1197
+ field: 'tooltip',
1198
+ value: '',
1199
+ },
1200
+ width: {
1201
+ id: 'width',
1202
+ group: 'Layout',
1203
+ type: 'text',
1204
+ unit: 'px',
1205
+ field: 'width',
1206
+ list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
1207
+ value: '',
1208
+ },
1209
+ grow: {
1210
+ id: 'grow',
1211
+ group: 'Layout',
1212
+ type: 'text',
1213
+ field: 'grow',
1214
+ list: ['', '0.5', '1'],
1215
+ value: '1',
1216
+ },
1217
+ horizontalSpacing: {
1218
+ id: 'horizontalSpacing',
1219
+ group: 'Layout',
1220
+ type: 'combo',
1221
+ field: 'horizontalSpacing',
1222
+ list: ['', 'overlap', 'tiny', 'large', 'double'],
1223
+ value: '',
1224
+ },
1225
+ cursor: {
1226
+ id: 'cursor',
1227
+ group: 'Aspect',
1228
+ type: 'combo',
1229
+ field: 'cursor',
1230
+ list: [
1231
+ '',
1232
+ 'default',
1233
+ 'none',
1234
+ 'pointer',
1235
+ 'cell',
1236
+ 'crosshair',
1237
+ 'text',
1238
+ 'move',
1239
+ 'not-allowed',
1240
+ 'ew-resize',
1241
+ 'ns-resize',
1242
+ 'grab',
1243
+ ],
1244
+ value: '',
1245
+ },
1246
+ show: {
1247
+ id: 'show',
1248
+ group: 'Aspect',
1249
+ type: 'bool',
1250
+ field: 'show',
1251
+ value: true,
1252
+ },
1253
+ visibility: {
1254
+ id: 'visibility',
1255
+ group: 'Aspect',
1256
+ type: 'bool',
1257
+ field: 'visibility',
1258
+ value: true,
1259
+ },
1260
+ },
1261
+ TextFieldTyped: {
1262
+ id: 'TextFieldTyped',
1263
+ active: {
1264
+ id: 'active',
1265
+ group: 'Aspect',
1266
+ type: 'bool',
1267
+ field: 'active',
1268
+ value: false,
1269
+ },
1270
+ disabled: {
1271
+ id: 'disabled',
1272
+ group: 'Aspect',
1273
+ type: 'bool',
1274
+ field: 'disabled',
1275
+ value: false,
1276
+ },
1277
+ readonly: {
1278
+ id: 'readonly',
1279
+ group: 'Text',
1280
+ type: 'bool',
1281
+ field: 'readonly',
1282
+ value: false,
1283
+ },
1284
+ type: {
1285
+ id: 'type',
1286
+ group: 'Text',
1287
+ type: 'combo',
1288
+ field: 'type',
1289
+ list: ['date', 'time', 'price'],
1290
+ value: 'date',
1291
+ },
1292
+ defaultValue: {
1293
+ id: 'defaultValue',
1294
+ group: 'Text',
1295
+ type: 'text',
1296
+ field: 'defaultValue',
1297
+ list: ['', 'TextFieldTyped', '31.03.2017', '12:30'],
1298
+ value: 'TextFieldTyped',
1299
+ },
1300
+ hintText: {
1301
+ id: 'hintText',
1302
+ group: 'Text',
1303
+ type: 'text',
1304
+ field: 'hintText',
1305
+ list: ['', 'Date', 'Heure'],
1306
+ value: 'Date',
1307
+ },
1308
+ tooltip: {
1309
+ id: 'tooltip',
1310
+ group: 'Aspect',
1311
+ type: 'text',
1312
+ field: 'tooltip',
1313
+ value: '',
1314
+ },
1315
+ shape: {
1316
+ id: 'shape',
1317
+ group: 'Aspect',
1318
+ type: 'combo',
1319
+ field: 'shape',
1320
+ list: [
1321
+ '',
1322
+ 'rounded',
1323
+ 'left-rounded',
1324
+ 'right-rounded',
1325
+ 'left-smooth',
1326
+ 'right-smooth',
1327
+ ],
1328
+ value: '',
1329
+ },
1330
+ rows: {
1331
+ id: 'rows',
1332
+ group: 'Text',
1333
+ type: 'combo',
1334
+ field: 'rows',
1335
+ list: ['', '1', '2', '3', '4', '5', '10'],
1336
+ value: '',
1337
+ },
1338
+ size: {
1339
+ id: 'size',
1340
+ group: 'Text',
1341
+ type: 'combo',
1342
+ field: 'size',
1343
+ list: ['', '1', '10', '100'],
1344
+ value: '',
1345
+ },
1346
+ maxLength: {
1347
+ id: 'maxLength',
1348
+ group: 'Text',
1349
+ type: 'combo',
1350
+ field: 'maxLength',
1351
+ list: ['', '1', '10', '20', '100'],
1352
+ value: '',
1353
+ },
1354
+ messageInfo: {
1355
+ id: 'messageInfo',
1356
+ group: 'Message',
1357
+ type: 'text',
1358
+ field: 'messageInfo',
1359
+ value: '',
1360
+ },
1361
+ messageWarning: {
1362
+ id: 'messageWarning',
1363
+ group: 'Message',
1364
+ type: 'text',
1365
+ field: 'messageWarning',
1366
+ value: '',
1367
+ },
1368
+ flyingBalloonAnchor: {
1369
+ id: 'flyingBalloonAnchor',
1370
+ group: 'Message',
1371
+ type: 'combo',
1372
+ field: 'flyingBalloonAnchor',
1373
+ list: ['left', 'right', 'top', 'bottom'],
1374
+ value: 'bottom',
1375
+ },
1376
+ width: {
1377
+ id: 'width',
1378
+ group: 'Layout',
1379
+ type: 'text',
1380
+ unit: 'px',
1381
+ field: 'width',
1382
+ list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
1383
+ value: '',
1384
+ },
1385
+ grow: {
1386
+ id: 'grow',
1387
+ group: 'Layout',
1388
+ type: 'text',
1389
+ field: 'grow',
1390
+ list: ['', '0.5', '1'],
1391
+ value: '1',
1392
+ },
1393
+ horizontalSpacing: {
1394
+ id: 'horizontalSpacing',
1395
+ group: 'Layout',
1396
+ type: 'combo',
1397
+ field: 'horizontalSpacing',
1398
+ list: ['', 'overlap', 'tiny', 'large', 'double'],
1399
+ value: '',
1400
+ },
1401
+ cursor: {
1402
+ id: 'cursor',
1403
+ group: 'Aspect',
1404
+ type: 'combo',
1405
+ field: 'cursor',
1406
+ list: [
1407
+ '',
1408
+ 'default',
1409
+ 'none',
1410
+ 'pointer',
1411
+ 'cell',
1412
+ 'crosshair',
1413
+ 'text',
1414
+ 'move',
1415
+ 'not-allowed',
1416
+ 'ew-resize',
1417
+ 'ns-resize',
1418
+ 'grab',
1419
+ ],
1420
+ value: '',
1421
+ },
1422
+ show: {
1423
+ id: 'show',
1424
+ group: 'Aspect',
1425
+ type: 'bool',
1426
+ field: 'show',
1427
+ value: true,
1428
+ },
1429
+ visibility: {
1430
+ id: 'visibility',
1431
+ group: 'Aspect',
1432
+ type: 'bool',
1433
+ field: 'visibility',
1434
+ value: true,
1435
+ },
1436
+ },
1437
+ Checkbox: {
1438
+ id: 'Checkbox',
1439
+ kind: {
1440
+ id: 'kind',
1441
+ group: 'Aspect',
1442
+ type: 'combo',
1443
+ field: 'kind',
1444
+ list: ['', 'switch', 'radio', 'active'],
1445
+ value: '',
1446
+ },
1447
+ checked: {
1448
+ id: 'checked',
1449
+ group: 'Aspect',
1450
+ type: 'bool',
1451
+ field: 'checked',
1452
+ value: false,
1453
+ },
1454
+ disabled: {
1455
+ id: 'disabled',
1456
+ group: 'Aspect',
1457
+ type: 'bool',
1458
+ field: 'disabled',
1459
+ value: false,
1460
+ },
1461
+ readonly: {
1462
+ id: 'readonly',
1463
+ group: 'Aspect',
1464
+ type: 'bool',
1465
+ field: 'readonly',
1466
+ value: false,
1467
+ },
1468
+ focusable: {
1469
+ id: 'focusable',
1470
+ group: 'Aspect',
1471
+ type: 'bool',
1472
+ field: 'focusable',
1473
+ value: false,
1474
+ },
1475
+ text: {
1476
+ id: 'text',
1477
+ group: 'Text',
1478
+ type: 'text',
1479
+ field: 'text',
1480
+ list: ['', 'Checkbox', 'Mise à jour automatique', 'Mode avancé'],
1481
+ value: 'Checkbox',
1482
+ },
1483
+ horizontalSpacing: {
1484
+ id: 'horizontalSpacing',
1485
+ group: 'Layout',
1486
+ type: 'combo',
1487
+ field: 'horizontalSpacing',
1488
+ list: ['', 'overlap', 'tiny', 'large', 'double'],
1489
+ value: '',
1490
+ },
1491
+ },
1492
+ Gauge: {
1493
+ id: 'Gauge',
1494
+ value: {
1495
+ id: 'value',
1496
+ group: 'Aspect',
1497
+ type: 'text',
1498
+ field: 'value',
1499
+ list: [
1500
+ '',
1501
+ '0',
1502
+ '10',
1503
+ '20',
1504
+ '30',
1505
+ '40',
1506
+ '50',
1507
+ '60',
1508
+ '70',
1509
+ '80',
1510
+ '90',
1511
+ '100',
1512
+ ],
1513
+ value: '50',
1514
+ },
1515
+ },
1516
+ Ticket: {
1517
+ id: 'Ticket',
1518
+ kind: {
1519
+ id: 'kind',
1520
+ group: 'Aspect',
1521
+ type: 'combo',
1522
+ field: 'kind',
1523
+ list: ['', 'ticket', 'rect', 'thin', 'event', 'subpane', 'cover'],
1524
+ value: 'ticket',
1525
+ },
1526
+ shape: {
1527
+ id: 'shape',
1528
+ group: 'Aspect',
1529
+ type: 'combo',
1530
+ field: 'shape',
1531
+ list: ['', 'first', 'last'],
1532
+ value: '',
1533
+ },
1534
+ hoverShape: {
1535
+ id: 'hoverShape',
1536
+ group: 'Aspect',
1537
+ type: 'combo',
1538
+ field: 'hoverShape',
1539
+ list: ['', 'first', 'middle', 'last'],
1540
+ value: '',
1541
+ },
1542
+ width: {
1543
+ id: 'width',
1544
+ group: 'Layout',
1545
+ type: 'text',
1546
+ unit: 'px',
1547
+ field: 'width',
1548
+ list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
1549
+ value: '150px',
1550
+ },
1551
+ height: {
1552
+ id: 'height',
1553
+ group: 'Layout',
1554
+ type: 'text',
1555
+ unit: 'px',
1556
+ field: 'height',
1557
+ list: ['', '32px', '50px', '100px', '150px', '200px', '250px'],
1558
+ value: '100px',
1559
+ },
1560
+ horizontalSpacing: {
1561
+ id: 'horizontalSpacing',
1562
+ group: 'Layout',
1563
+ type: 'text',
1564
+ unit: 'px',
1565
+ field: 'horizontalSpacing',
1566
+ list: ['', '0px', '2px', '10px', '20px'],
1567
+ value: '2px',
1568
+ },
1569
+ verticalSpacing: {
1570
+ id: 'verticalSpacing',
1571
+ group: 'Layout',
1572
+ type: 'text',
1573
+ unit: 'px',
1574
+ field: 'verticalSpacing',
1575
+ list: ['', '0px', '2px', '10px', '20px'],
1576
+ value: '2px',
1577
+ },
1578
+ hatch: {
1579
+ id: 'hatch',
1580
+ group: 'Aspect',
1581
+ type: 'bool',
1582
+ field: 'hatch',
1583
+ value: false,
1584
+ },
1585
+ flash: {
1586
+ id: 'flash',
1587
+ group: 'Aspect',
1588
+ type: 'bool',
1589
+ field: 'flash',
1590
+ value: false,
1591
+ },
1592
+ hideContent: {
1593
+ id: 'hideContent',
1594
+ group: 'Aspect',
1595
+ type: 'bool',
1596
+ field: 'hideContent',
1597
+ value: false,
1598
+ },
1599
+ color: {
1600
+ id: 'color',
1601
+ group: 'Aspect',
1602
+ type: 'text',
1603
+ unit: 'color',
1604
+ field: 'color',
1605
+ list: colorList,
1606
+ value: '#d2e6f9 — light blue',
1607
+ },
1608
+ hudGlyph: {
1609
+ id: 'hudGlyph',
1610
+ group: 'Content',
1611
+ type: 'text',
1612
+ field: 'hudGlyph',
1613
+ list: [
1614
+ '',
1615
+ 'solid/check',
1616
+ 'solid/times',
1617
+ 'solid/bicycle',
1618
+ 'solid/car',
1619
+ 'solid/rocket',
1620
+ 'solid/calendar',
1621
+ ],
1622
+ value: '',
1623
+ },
1624
+ backgroundText: {
1625
+ id: 'backgroundText',
1626
+ group: 'Content',
1627
+ type: 'text',
1628
+ field: 'backgroundText',
1629
+ list: ['', '1', '2', '3', '4', 'Abc'],
1630
+ value: '',
1631
+ },
1632
+ show: {
1633
+ id: 'show',
1634
+ group: 'Aspect',
1635
+ type: 'bool',
1636
+ field: 'show',
1637
+ value: true,
1638
+ },
1639
+ visibility: {
1640
+ id: 'visibility',
1641
+ group: 'Aspect',
1642
+ type: 'bool',
1643
+ field: 'visibility',
1644
+ value: true,
1645
+ },
1646
+ },
1647
+ Container: {
1648
+ id: 'Container',
1649
+ disabled: {
1650
+ id: 'disabled',
1651
+ group: 'Aspect',
1652
+ type: 'bool',
1653
+ field: 'disabled',
1654
+ value: false,
1655
+ },
1656
+ show: {
1657
+ id: 'show',
1658
+ group: 'Aspect',
1659
+ type: 'bool',
1660
+ field: 'show',
1661
+ value: true,
1662
+ },
1663
+ selected: {
1664
+ id: 'selected',
1665
+ group: 'Aspect',
1666
+ type: 'bool',
1667
+ field: 'selected',
1668
+ value: false,
1669
+ },
1670
+ busy: {
1671
+ id: 'busy',
1672
+ group: 'Aspect',
1673
+ type: 'bool',
1674
+ field: 'busy',
1675
+ value: false,
1676
+ },
1677
+ kind: {
1678
+ id: 'kind',
1679
+ group: 'Aspect',
1680
+ type: 'combo',
1681
+ field: 'kind',
1682
+ list: [
1683
+ '',
1684
+ 'actions',
1685
+ 'box',
1686
+ 'boxes',
1687
+ 'chronos-events',
1688
+ 'column',
1689
+ 'column-full',
1690
+ 'compact-row',
1691
+ 'content',
1692
+ 'drag-to-delete',
1693
+ 'drag-too-many',
1694
+ 'floating',
1695
+ 'floating-footer',
1696
+ 'floating-header',
1697
+ 'flying-balloon',
1698
+ 'flying-chat',
1699
+ 'flying-dialog',
1700
+ 'footer',
1701
+ 'full-view',
1702
+ 'glyph-samples',
1703
+ 'left-bar',
1704
+ 'main-tab',
1705
+ 'main-tab-right',
1706
+ 'mandats',
1707
+ 'pane',
1708
+ 'pane-top',
1709
+ 'panes',
1710
+ 'pane-header',
1711
+ 'pane-header-light',
1712
+ 'pane-hnavigator',
1713
+ 'pane-navigator',
1714
+ 'pane-top',
1715
+ 'pane-vnavigator',
1716
+ 'right',
1717
+ 'row',
1718
+ 'row-pane',
1719
+ 'row-pane-drag',
1720
+ 'row-wrap',
1721
+ 'second-bar',
1722
+ 'task-bar',
1723
+ 'thin-center',
1724
+ 'thin-column',
1725
+ 'thin-main',
1726
+ 'thin-row',
1727
+ 'ticket-mode',
1728
+ 'ticket-row',
1729
+ 'ticket-column',
1730
+ 'tickets',
1731
+ 'tickets-desk',
1732
+ 'tickets-messengers',
1733
+ 'tickets-messenger',
1734
+ 'tickets-root',
1735
+ 'tickets-trips',
1736
+ 'tickets-tray',
1737
+ 'top-bar',
1738
+ 'view',
1739
+ 'view-edge',
1740
+ 'view-right',
1741
+ 'view-stretch',
1742
+ 'view-tab',
1743
+ 'view-tab-right',
1744
+ 'views',
1745
+ 'wrap',
1746
+ ],
1747
+ value: 'column',
1748
+ },
1749
+ subkind: {
1750
+ id: 'subkind',
1751
+ group: 'Aspect',
1752
+ type: 'combo',
1753
+ field: 'subkind',
1754
+ list: [
1755
+ '',
1756
+ 'box',
1757
+ 'box-left',
1758
+ 'footer',
1759
+ 'info',
1760
+ 'large-box',
1761
+ 'left',
1762
+ 'light-box',
1763
+ 'list',
1764
+ 'me',
1765
+ 'no-shadow',
1766
+ 'top-margin',
1767
+ 'wide-info',
1768
+ 'wrap',
1769
+ ],
1770
+ value: '',
1771
+ },
1772
+ border: {
1773
+ id: 'border',
1774
+ group: 'Aspect',
1775
+ type: 'combo',
1776
+ field: 'border',
1777
+ list: ['', 'top', 'right', 'bottom', 'left'],
1778
+ value: '',
1779
+ },
1780
+ trianglePosition: {
1781
+ id: 'trianglePosition',
1782
+ group: 'Aspect',
1783
+ type: 'combo',
1784
+ field: 'trianglePosition',
1785
+ list: ['', 'top', 'right', 'bottom', 'left', 'none'],
1786
+ value: '',
1787
+ },
1788
+ triangleShift: {
1789
+ id: 'triangleShift',
1790
+ group: 'Aspect',
1791
+ type: 'text',
1792
+ unit: 'px',
1793
+ field: 'triangleShift',
1794
+ list: ['', '-50px', '-10px', '0px', '10px', '50px'],
1795
+ value: '',
1796
+ },
1797
+ width: {
1798
+ id: 'width',
1799
+ group: 'Layout',
1800
+ type: 'text',
1801
+ unit: 'px',
1802
+ field: 'width',
1803
+ list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
1804
+ value: '',
1805
+ },
1806
+ height: {
1807
+ id: 'height',
1808
+ group: 'Layout',
1809
+ type: 'text',
1810
+ unit: 'px',
1811
+ field: 'height',
1812
+ list: ['', '32px', '50px', '100px', '150px', '200px', '250px'],
1813
+ value: '',
1814
+ },
1815
+ marginBottom: {
1816
+ id: 'marginBottom',
1817
+ group: 'Layout',
1818
+ type: 'text',
1819
+ unit: 'px',
1820
+ field: 'marginBottom',
1821
+ list: ['', '2px', '5px', '10px', '20px'],
1822
+ value: '',
1823
+ },
1824
+ floatingHeight: {
1825
+ id: 'floatingHeight',
1826
+ group: 'Layout',
1827
+ type: 'text',
1828
+ unit: 'px',
1829
+ field: 'floatingHeight',
1830
+ list: ['', '10px', '20px', '50px', '100px'],
1831
+ value: '10px',
1832
+ },
1833
+ grow: {
1834
+ id: 'grow',
1835
+ group: 'Layout',
1836
+ type: 'text',
1837
+ field: 'grow',
1838
+ list: ['', '0.5', '1'],
1839
+ value: '',
1840
+ },
1841
+ horizontalSpacing: {
1842
+ id: 'horizontalSpacing',
1843
+ group: 'Layout',
1844
+ type: 'combo',
1845
+ field: 'horizontalSpacing',
1846
+ list: ['', 'compact', 'large'],
1847
+ value: '',
1848
+ },
1849
+ backgroundColor: {
1850
+ id: 'backgroundColor',
1851
+ group: 'Aspect',
1852
+ type: 'text',
1853
+ unit: 'color',
1854
+ field: 'backgroundColor',
1855
+ list: colorList,
1856
+ value: '',
1857
+ },
1858
+ },
1859
+ Field: {
1860
+ id: 'Field',
1861
+ kind: {
1862
+ id: 'kind',
1863
+ group: 'Aspect',
1864
+ type: 'combo',
1865
+ field: 'kind',
1866
+ list: ['', 'field', 'combo', 'radio', 'bool', 'hinter', 'file'],
1867
+ value: 'field',
1868
+ },
1869
+ direction: {
1870
+ id: 'direction',
1871
+ group: 'Aspect',
1872
+ type: 'combo',
1873
+ field: 'direction',
1874
+ list: ['', 'row', 'column', 'wrap'],
1875
+ value: 'row',
1876
+ },
1877
+ rows: {
1878
+ id: 'rows',
1879
+ group: 'Text',
1880
+ type: 'combo',
1881
+ field: 'rows',
1882
+ list: ['', '1', '2', '3', '4', '5', '10'],
1883
+ value: '',
1884
+ },
1885
+ width: {
1886
+ id: 'width',
1887
+ group: 'Layout',
1888
+ type: 'text',
1889
+ unit: 'px',
1890
+ field: 'width',
1891
+ list: ['', '100px', '150px', '200px', '300px', '500px'],
1892
+ value: '',
1893
+ },
1894
+ height: {
1895
+ id: 'height',
1896
+ group: 'Layout',
1897
+ type: 'text',
1898
+ unit: 'px',
1899
+ field: 'height',
1900
+ list: ['', '32px', '50px', '100px', '150px', '200px', '300px'],
1901
+ value: '',
1902
+ },
1903
+ labelText: {
1904
+ id: 'labelText',
1905
+ group: 'Label',
1906
+ type: 'text',
1907
+ field: 'labelText',
1908
+ list: ['', 'Field', 'Nom', 'Prénom', 'Adresse', 'Ville'],
1909
+ value: 'Field',
1910
+ },
1911
+ labelGlyph: {
1912
+ id: 'labelGlyph',
1913
+ group: 'Label',
1914
+ type: 'text',
1915
+ field: 'labelGlyph',
1916
+ list: [
1917
+ '',
1918
+ 'solid/check',
1919
+ 'solid/times',
1920
+ 'solid/bicycle',
1921
+ 'solid/car',
1922
+ 'solid/rocket',
1923
+ 'solid/calendar',
1924
+ ],
1925
+ value: '',
1926
+ },
1927
+ labelWidth: {
1928
+ id: 'labelWidth',
1929
+ group: 'Layout',
1930
+ type: 'text',
1931
+ unit: 'px',
1932
+ field: 'labelWidth',
1933
+ list: ['', '32px', '50px', '100px', '150px', '200px', '300px', '500px'],
1934
+ value: '',
1935
+ },
1936
+ hintText: {
1937
+ id: 'hintText',
1938
+ group: 'Text',
1939
+ type: 'text',
1940
+ field: 'hintText',
1941
+ list: ['', 'Prénom', 'Nom', 'Adresse', 'Numéro postal', 'Ville'],
1942
+ value: '',
1943
+ },
1944
+ justify: {
1945
+ id: 'justify',
1946
+ group: 'Text',
1947
+ type: 'combo',
1948
+ field: 'justify',
1949
+ list: ['', 'left', 'right'],
1950
+ value: '',
1951
+ },
1952
+ menuItemWidth: {
1953
+ id: 'menuItemWidth',
1954
+ group: 'Menu',
1955
+ type: 'text',
1956
+ unit: 'px',
1957
+ field: 'menuItemWidth',
1958
+ list: ['', '100px', '150px', '200px', '300px'],
1959
+ value: '',
1960
+ },
1961
+ },
1962
+ };
1963
+
1964
+ const previewSettings = {
1965
+ scale: {
1966
+ id: 'scale',
1967
+ order: 1,
1968
+ group: 'Scale',
1969
+ type: 'list',
1970
+ list: [1, 1.5, 2, 3, 4],
1971
+ value: 2,
1972
+ },
1973
+ color: {
1974
+ id: 'color',
1975
+ order: 2,
1976
+ group: 'Color',
1977
+ type: 'list',
1978
+ list: ['pane', 'view', 'task', 'root', 'footer'],
1979
+ value: 'pane',
1980
+ },
1981
+ items: {
1982
+ id: 'items',
1983
+ order: 3,
1984
+ group: 'Items',
1985
+ type: 'list',
1986
+ list: [1, 2, 3, 4, 5, 10, 11],
1987
+ value: 1,
1988
+ },
1989
+ layout: {
1990
+ id: 'layout',
1991
+ order: 4,
1992
+ group: 'Layout',
1993
+ type: 'list',
1994
+ list: ['row', 'column', 'wrap'],
1995
+ value: 'row',
1996
+ },
1997
+ showFrame: {
1998
+ id: 'showFrame',
1999
+ order: 5,
2000
+ group: 'Frame',
2001
+ type: 'bool',
2002
+ value: false,
2003
+ },
2004
+ ticketLines: {
2005
+ id: 'ticketLines',
2006
+ for: 'Ticket',
2007
+ order: 10,
2008
+ group: 'Lines',
2009
+ type: 'list',
2010
+ list: [1, 2, 3, 4, 5, 10],
2011
+ value: 1,
2012
+ },
2013
+ containerType: {
2014
+ id: 'containerType',
2015
+ for: 'Container',
2016
+ order: 10,
2017
+ group: 'Content',
2018
+ type: 'list',
2019
+ list: ['label', 'button', 'glyph'],
2020
+ value: 'label',
2021
+ },
2022
+ containerItems: {
2023
+ id: 'containerItems',
2024
+ for: 'Container',
2025
+ order: 11,
2026
+ group: 'Content',
2027
+ type: 'list',
2028
+ list: [1, 2, 3, 4, 5, 12],
2029
+ value: 1,
2030
+ },
2031
+ textFieldComboMenu: {
2032
+ id: 'textFieldComboMenu',
2033
+ for: 'TextFieldCombo',
2034
+ order: 10,
2035
+ group: 'Menu',
2036
+ type: 'list',
2037
+ list: ['short', 'long', 'glyphs', 'special1', 'special2'],
2038
+ value: 'short',
2039
+ },
2040
+ fieldMenu: {
2041
+ id: 'fieldMenu',
2042
+ for: 'Field',
2043
+ order: 10,
2044
+ group: 'List',
2045
+ type: 'list',
2046
+ list: ['short', 'middle', 'long'],
2047
+ value: 'short',
2048
+ },
2049
+ };
2050
+
2051
+ // Define logic handlers according rc.json
2052
+ const logicHandlers = {
2053
+ create: (state, action) => {
2054
+ const initialState = {
2055
+ id: action.get('id'),
2056
+ globalSettings: globalSettings,
2057
+ properties: properties,
2058
+ previewSettings: previewSettings,
2059
+ };
2060
+ return state.set('', initialState);
2061
+ },
2062
+ };
2063
+
2064
+ // Register quest's according rc.json
2065
+ Goblin.registerQuest(goblinName, 'create', function (quest, desktopId) {
2066
+ const desk = quest.getAPI(desktopId);
2067
+ desk.addTab({
2068
+ name: 'Wizard',
2069
+ contextId: 'test',
2070
+ view: 'test-wizard',
2071
+ workitemId: quest.goblin.id,
2072
+ });
2073
+ quest.do();
2074
+ return quest.goblin.id;
2075
+ });
2076
+
2077
+ Goblin.registerQuest(goblinName, 'delete', function () {});
2078
+
2079
+ // Manage global settings.
2080
+ /*Object.keys (globalSettings).forEach (p => {
2081
+ const globalSetting = globalSettings[p];
2082
+ Goblin.registerQuest (goblinName, `change-global-setting-${p}`, function (
2083
+ quest,
2084
+ newValue
2085
+ ) {
2086
+ quest.do ({newValue});
2087
+ });
2088
+ logicHandlers[`change-global-setting-${p}`] = (state, action) => {
2089
+ globalSetting.value = action.get ('newValue');
2090
+ return state.set (`globalSettings.${p}`, globalSetting);
2091
+ };
2092
+ });*/
2093
+
2094
+ // Manage properties of widget.
2095
+ /*Object.keys (properties).forEach (w => {
2096
+ const wizard = properties[w];
2097
+ Object.keys (wizard).forEach (p => {
2098
+ const property = wizard[p];
2099
+ Goblin.registerQuest (
2100
+ goblinName,
2101
+ `change-properties.${w}.${property.field}.value`,
2102
+ function (quest) {
2103
+ quest.do ();
2104
+ }
2105
+ );
2106
+ logicHandlers[`change-properties.${w}.${property.field}.value`] = (
2107
+ state,
2108
+ action
2109
+ ) => {
2110
+ property.value = action.get ('newValue');
2111
+ return state.set (`properties.${w}.${property.field}`, property);
2112
+ };
2113
+ });
2114
+ });*/
2115
+
2116
+ // Manage preview settings.
2117
+ /*Object.keys (previewSettings).forEach (p => {
2118
+ const previewSetting = previewSettings[p];
2119
+ Goblin.registerQuest (goblinName, `change-preview-setting-${p}`, function (
2120
+ quest,
2121
+ newValue
2122
+ ) {
2123
+ quest.do ({newValue});
2124
+ });
2125
+ logicHandlers[`change-preview-setting-${p}`] = (state, action) => {
2126
+ previewSetting.value = action.get ('newValue');
2127
+ return state.set (`previewSettings.${p}`, previewSetting);
2128
+ };
2129
+ });*/
2130
+
2131
+ // Create a Goblin with initial state and handlers
2132
+ module.exports = Goblin.configure(goblinName, logicState, logicHandlers);