neo.mjs 6.17.2 → 6.18.0

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 (316) hide show
  1. package/apps/ServiceWorker.mjs +3 -5
  2. package/apps/colors/README.md +8 -0
  3. package/apps/colors/app.mjs +6 -0
  4. package/apps/colors/childapps/widget/app.mjs +7 -0
  5. package/apps/colors/childapps/widget/index.html +11 -0
  6. package/apps/colors/childapps/widget/neo-config.json +10 -0
  7. package/apps/colors/childapps/widget/view/Viewport.mjs +19 -0
  8. package/apps/colors/index.html +11 -0
  9. package/apps/colors/model/Color.mjs +43 -0
  10. package/apps/colors/neo-config.json +10 -0
  11. package/apps/colors/remotes-api.json +13 -0
  12. package/apps/colors/store/Colors.mjs +24 -0
  13. package/apps/colors/view/BarChartComponent.mjs +64 -0
  14. package/apps/colors/view/HeaderToolbar.mjs +95 -0
  15. package/apps/colors/view/PieChartComponent.mjs +58 -0
  16. package/apps/colors/view/TableContainer.mjs +91 -0
  17. package/apps/colors/view/Viewport.mjs +57 -0
  18. package/apps/colors/view/ViewportController.mjs +277 -0
  19. package/apps/colors/view/ViewportModel.mjs +53 -0
  20. package/apps/portal/Util.mjs +11 -0
  21. package/apps/portal/childapps/preview/neo-config.json +2 -2
  22. package/apps/portal/neo-config.json +2 -1
  23. package/apps/portal/remotes-api.json +13 -0
  24. package/apps/portal/view/HeaderToolbar.mjs +1 -1
  25. package/apps/portal/view/ViewportController.mjs +89 -1
  26. package/apps/portal/view/home/MainContainer.mjs +5 -6
  27. package/apps/portal/view/home/parts/AfterMath.mjs +1 -1
  28. package/apps/portal/view/home/parts/{CoolStuff.mjs → Colors.mjs} +20 -28
  29. package/apps/portal/view/home/parts/Helix.mjs +75 -0
  30. package/apps/portal/view/learn/LivePreview.mjs +56 -15
  31. package/apps/portal/view/learn/MainContainerController.mjs +10 -90
  32. package/apps/realworld/api/Article.mjs +1 -3
  33. package/apps/realworld/api/Favorite.mjs +1 -3
  34. package/apps/realworld/api/Profile.mjs +1 -3
  35. package/apps/realworld/api/Tag.mjs +1 -3
  36. package/apps/realworld/api/User.mjs +1 -3
  37. package/apps/realworld2/api/Article.mjs +1 -3
  38. package/apps/realworld2/api/Favorite.mjs +1 -3
  39. package/apps/realworld2/api/Profile.mjs +1 -3
  40. package/apps/realworld2/api/Tag.mjs +1 -3
  41. package/apps/realworld2/api/User.mjs +1 -3
  42. package/apps/realworld2/view/article/HelixContainer.mjs +5 -5
  43. package/buildScripts/webpack/json/myApps.template.json +1 -0
  44. package/docs/app/view/MainContainer.mjs +5 -0
  45. package/docs/app/view/classdetails/MembersList.mjs +1 -1
  46. package/examples/ServiceWorker.mjs +3 -5
  47. package/examples/component/helix/Viewport.mjs +309 -0
  48. package/examples/component/helix/ViewportController.mjs +122 -0
  49. package/examples/component/helix/app.mjs +2 -2
  50. package/examples/component/helix/neo-config.json +0 -1
  51. package/examples/component/multiWindowHelix/Viewport.mjs +11 -3
  52. package/examples/component/multiWindowHelix/ViewportController.mjs +21 -9
  53. package/examples/component/multiWindowHelix/neo-config.json +0 -1
  54. package/examples/fieldWithPrefix/MainContainer.mjs +1 -6
  55. package/examples/list/animate/MainContainerController.mjs +1 -1
  56. package/examples/worker/task/MyTasks.mjs +1 -3
  57. package/package.json +2 -2
  58. package/resources/data/deck/learnneo/pages/GuideEvents.md +131 -0
  59. package/resources/data/deck/learnneo/pages/WhyNeo-Speed.md +1 -1
  60. package/resources/images/logo/neo_logo_primary.svg +6 -0
  61. package/resources/images/logo/neo_logo_text_primary.svg +5 -0
  62. package/resources/scss/src/apps/colors/BarChartComponent.scss +3 -0
  63. package/resources/scss/src/apps/colors/HeaderToolbar.scss +11 -0
  64. package/resources/scss/src/apps/colors/PieChartComponent.scss +3 -0
  65. package/resources/scss/src/apps/colors/TableContainer.scss +64 -0
  66. package/resources/scss/src/apps/colors/Viewport.scss +9 -0
  67. package/resources/scss/src/apps/portal/HeaderToolbar.scss +1 -1
  68. package/resources/scss/src/apps/portal/home/MainContainer.scss +1 -1
  69. package/resources/scss/src/apps/portal/home/preview/PageCodeContainer.scss +1 -1
  70. package/resources/scss/src/examples/component/multiWindowHelix/Viewport.scss +3 -0
  71. package/resources/scss/src/form/field/CheckBox.scss +1 -0
  72. package/resources/scss/src/tab/header/Button.scss +2 -1
  73. package/resources/scss/theme-dark/Global.scss +8 -0
  74. package/resources/scss/theme-dark/button/Base.scss +1 -1
  75. package/resources/scss/theme-dark/tab/header/Button.scss +1 -0
  76. package/resources/scss/theme-light/Global.scss +8 -0
  77. package/resources/scss/theme-light/button/Base.scss +1 -1
  78. package/resources/scss/theme-light/tab/header/Button.scss +1 -0
  79. package/resources/scss/theme-neo-light/Global.scss +53 -53
  80. package/resources/scss/theme-neo-light/button/Base.scss +3 -4
  81. package/resources/scss/theme-neo-light/tab/header/Button.scss +6 -8
  82. package/src/DefaultConfig.mjs +2 -2
  83. package/src/Fetch.mjs +1 -3
  84. package/src/Main.mjs +13 -11
  85. package/src/MicroLoader.mjs +2 -2
  86. package/src/Neo.mjs +27 -26
  87. package/src/Xhr.mjs +1 -3
  88. package/src/button/Base.mjs +6 -4
  89. package/src/button/Split.mjs +10 -9
  90. package/src/calendar/view/EditEventContainer.mjs +13 -12
  91. package/src/calendar/view/MainContainer.mjs +40 -40
  92. package/src/calendar/view/MainContainerModel.mjs +5 -5
  93. package/src/calendar/view/SettingsContainer.mjs +11 -11
  94. package/src/calendar/view/YearComponent.mjs +73 -75
  95. package/src/calendar/view/calendars/ColorsList.mjs +2 -2
  96. package/src/calendar/view/calendars/EditContainer.mjs +2 -2
  97. package/src/calendar/view/calendars/List.mjs +12 -13
  98. package/src/calendar/view/month/Component.mjs +72 -73
  99. package/src/calendar/view/settings/GeneralContainer.mjs +5 -5
  100. package/src/calendar/view/settings/MonthContainer.mjs +5 -5
  101. package/src/calendar/view/settings/WeekContainer.mjs +6 -6
  102. package/src/calendar/view/settings/YearContainer.mjs +4 -4
  103. package/src/calendar/view/week/Component.mjs +47 -57
  104. package/src/calendar/view/week/EventDragZone.mjs +43 -50
  105. package/src/calendar/view/week/TimeAxisComponent.mjs +21 -21
  106. package/src/calendar/view/week/plugin/DragDrop.mjs +53 -45
  107. package/src/calendar/view/week/plugin/EventResizable.mjs +8 -3
  108. package/src/collection/Base.mjs +15 -22
  109. package/src/collection/Filter.mjs +4 -9
  110. package/src/collection/Sorter.mjs +6 -7
  111. package/src/component/Base.mjs +25 -31
  112. package/src/component/Canvas.mjs +9 -9
  113. package/src/component/Carousel.mjs +31 -33
  114. package/src/component/Chip.mjs +9 -9
  115. package/src/component/Circle.mjs +84 -91
  116. package/src/component/Clock.mjs +8 -8
  117. package/src/component/DateSelector.mjs +14 -15
  118. package/src/component/Gallery.mjs +82 -80
  119. package/src/component/Helix.mjs +131 -126
  120. package/src/component/Iframe.mjs +1 -1
  121. package/src/component/Label.mjs +1 -1
  122. package/src/component/Legend.mjs +3 -3
  123. package/src/component/Process.mjs +39 -37
  124. package/src/component/Splitter.mjs +9 -11
  125. package/src/component/StatusBadge.mjs +2 -3
  126. package/src/component/Timer.mjs +62 -68
  127. package/src/component/Toast.mjs +11 -11
  128. package/src/component/Video.mjs +7 -8
  129. package/src/component/mwc/Button.mjs +10 -10
  130. package/src/component/mwc/TextField.mjs +17 -17
  131. package/src/component/wrapper/AmChart.mjs +5 -5
  132. package/src/component/wrapper/CesiumJS.mjs +11 -17
  133. package/src/component/wrapper/GoogleMaps.mjs +58 -35
  134. package/src/component/wrapper/MapboxGL.mjs +112 -79
  135. package/src/container/Accordion.mjs +18 -20
  136. package/src/container/AccordionItem.mjs +12 -11
  137. package/src/container/Base.mjs +24 -23
  138. package/src/container/Panel.mjs +9 -9
  139. package/src/controller/Base.mjs +12 -14
  140. package/src/controller/Component.mjs +60 -66
  141. package/src/core/Base.mjs +5 -8
  142. package/src/core/IdGenerator.mjs +1 -3
  143. package/src/core/Observable.mjs +17 -17
  144. package/src/core/Util.mjs +5 -5
  145. package/src/data/Model.mjs +3 -3
  146. package/src/data/RecordFactory.mjs +3 -6
  147. package/src/data/Store.mjs +34 -34
  148. package/src/data/connection/Fetch.mjs +3 -3
  149. package/src/data/connection/WebSocket.mjs +21 -25
  150. package/src/data/connection/Xhr.mjs +31 -28
  151. package/src/date/DayViewComponent.mjs +1 -1
  152. package/src/date/SelectorContainer.mjs +2 -2
  153. package/src/dialog/Base.mjs +27 -25
  154. package/src/dialog/header/Toolbar.mjs +5 -4
  155. package/src/draggable/DragProxyComponent.mjs +7 -4
  156. package/src/draggable/DragZone.mjs +30 -30
  157. package/src/draggable/DropZone.mjs +7 -7
  158. package/src/draggable/list/DragZone.mjs +18 -18
  159. package/src/draggable/tab/header/toolbar/SortZone.mjs +7 -7
  160. package/src/draggable/toolbar/DragZone.mjs +15 -15
  161. package/src/draggable/toolbar/SortZone.mjs +30 -31
  162. package/src/draggable/tree/DragZone.mjs +9 -9
  163. package/src/filter/BooleanContainer.mjs +3 -3
  164. package/src/filter/NumberContainer.mjs +5 -5
  165. package/src/filter/ToggleOperatorsButton.mjs +5 -5
  166. package/src/form/Fieldset.mjs +26 -26
  167. package/src/form/field/Base.mjs +1 -1
  168. package/src/form/field/CheckBox.mjs +15 -16
  169. package/src/form/field/Color.mjs +13 -15
  170. package/src/form/field/ComboBox.mjs +16 -24
  171. package/src/form/field/Country.mjs +1 -1
  172. package/src/form/field/Date.mjs +3 -4
  173. package/src/form/field/Display.mjs +1 -1
  174. package/src/form/field/Email.mjs +2 -2
  175. package/src/form/field/Number.mjs +51 -56
  176. package/src/form/field/Picker.mjs +2 -2
  177. package/src/form/field/Radio.mjs +1 -1
  178. package/src/form/field/Range.mjs +7 -6
  179. package/src/form/field/Text.mjs +29 -36
  180. package/src/form/field/TextArea.mjs +9 -9
  181. package/src/form/field/Time.mjs +30 -30
  182. package/src/form/field/trigger/Base.mjs +19 -13
  183. package/src/form/field/trigger/Clear.mjs +13 -13
  184. package/src/form/field/trigger/CopyToClipboard.mjs +7 -7
  185. package/src/form/field/trigger/Picker.mjs +2 -2
  186. package/src/form/field/trigger/SpinDown.mjs +1 -1
  187. package/src/form/field/trigger/SpinUp.mjs +1 -1
  188. package/src/form/field/trigger/SpinUpDown.mjs +3 -3
  189. package/src/form/field/trigger/Time.mjs +3 -3
  190. package/src/grid/Container.mjs +33 -33
  191. package/src/grid/View.mjs +20 -22
  192. package/src/grid/header/Button.mjs +12 -12
  193. package/src/grid/header/Toolbar.mjs +4 -4
  194. package/src/layout/Base.mjs +5 -4
  195. package/src/layout/Card.mjs +15 -16
  196. package/src/layout/Fit.mjs +22 -8
  197. package/src/layout/Flexbox.mjs +30 -29
  198. package/src/layout/Form.mjs +15 -15
  199. package/src/layout/Grid.mjs +2 -2
  200. package/src/layout/HBox.mjs +3 -2
  201. package/src/layout/VBox.mjs +3 -2
  202. package/src/list/Base.mjs +45 -47
  203. package/src/list/Chip.mjs +4 -4
  204. package/src/list/Circle.mjs +3 -3
  205. package/src/list/Color.mjs +4 -4
  206. package/src/list/Component.mjs +10 -10
  207. package/src/list/plugin/Animate.mjs +18 -13
  208. package/src/main/DomAccess.mjs +92 -56
  209. package/src/main/DomEvents.mjs +38 -39
  210. package/src/main/addon/AmCharts.mjs +37 -37
  211. package/src/main/addon/AnalyticsByGoogle.mjs +4 -4
  212. package/src/main/addon/CesiumJS.mjs +8 -8
  213. package/src/main/addon/CloneNode.mjs +5 -5
  214. package/src/main/addon/Cookie.mjs +4 -4
  215. package/src/main/addon/DragDrop.mjs +35 -34
  216. package/src/main/addon/GoogleMaps.mjs +19 -19
  217. package/src/main/addon/LocalStorage.mjs +3 -3
  218. package/src/main/addon/MapboxGL.mjs +40 -41
  219. package/src/main/addon/MonacoEditor.mjs +5 -5
  220. package/src/main/addon/Mwc.mjs +6 -6
  221. package/src/main/addon/Navigator.mjs +35 -39
  222. package/src/main/addon/Popover.mjs +5 -6
  223. package/src/main/addon/PrefixField.mjs +1 -2
  224. package/src/main/addon/ServiceWorker.mjs +9 -9
  225. package/src/main/addon/Siesta.mjs +3 -2
  226. package/src/main/addon/Stylesheet.mjs +37 -37
  227. package/src/main/addon/WebComponent.mjs +2 -3
  228. package/src/main/addon/WindowPosition.mjs +18 -18
  229. package/src/main/draggable/sensor/Base.mjs +2 -2
  230. package/src/main/draggable/sensor/Mouse.mjs +15 -15
  231. package/src/main/draggable/sensor/Touch.mjs +24 -23
  232. package/src/main/mixin/DeltaUpdates.mjs +10 -12
  233. package/src/main/mixin/TouchDomEvents.mjs +6 -6
  234. package/src/manager/Base.mjs +4 -4
  235. package/src/manager/Component.mjs +41 -41
  236. package/src/manager/DomEvent.mjs +41 -44
  237. package/src/manager/Focus.mjs +14 -16
  238. package/src/manager/Instance.mjs +2 -4
  239. package/src/manager/Store.mjs +4 -8
  240. package/src/manager/Task.mjs +20 -22
  241. package/src/manager/Toast.mjs +14 -16
  242. package/src/manager/rpc/Api.mjs +1 -3
  243. package/src/manager/rpc/Message.mjs +16 -18
  244. package/src/menu/List.mjs +16 -16
  245. package/src/menu/Panel.mjs +4 -4
  246. package/src/model/Component.mjs +5 -5
  247. package/src/plugin/Base.mjs +2 -0
  248. package/src/plugin/Popover.mjs +1 -1
  249. package/src/plugin/PrefixField.mjs +35 -45
  250. package/src/plugin/Resizable.mjs +86 -101
  251. package/src/plugin/Responsive.mjs +1 -1
  252. package/src/remotes/Api.mjs +4 -6
  253. package/src/selection/CircleModel.mjs +12 -16
  254. package/src/selection/DateSelectorModel.mjs +21 -23
  255. package/src/selection/GalleryModel.mjs +49 -63
  256. package/src/selection/HelixModel.mjs +35 -41
  257. package/src/selection/ListModel.mjs +9 -14
  258. package/src/selection/Model.mjs +31 -31
  259. package/src/selection/TreeAccordionModel.mjs +74 -80
  260. package/src/selection/grid/CellColumnModel.mjs +10 -10
  261. package/src/selection/grid/CellColumnRowModel.mjs +10 -10
  262. package/src/selection/grid/CellModel.mjs +26 -28
  263. package/src/selection/grid/CellRowModel.mjs +24 -24
  264. package/src/selection/grid/ColumnModel.mjs +16 -20
  265. package/src/selection/grid/RowModel.mjs +27 -29
  266. package/src/selection/menu/ListModel.mjs +2 -2
  267. package/src/selection/table/CellColumnModel.mjs +12 -12
  268. package/src/selection/table/CellColumnRowModel.mjs +12 -12
  269. package/src/selection/table/CellModel.mjs +26 -29
  270. package/src/selection/table/CellRowModel.mjs +19 -19
  271. package/src/selection/table/ColumnModel.mjs +18 -22
  272. package/src/selection/table/RowModel.mjs +27 -29
  273. package/src/sitemap/Component.mjs +20 -20
  274. package/src/sitemap/Store.mjs +1 -1
  275. package/src/tab/Container.mjs +15 -15
  276. package/src/tab/Strip.mjs +1 -1
  277. package/src/tab/header/Toolbar.mjs +4 -4
  278. package/src/table/Container.mjs +8 -10
  279. package/src/table/View.mjs +29 -34
  280. package/src/table/header/Button.mjs +18 -18
  281. package/src/table/header/Toolbar.mjs +2 -2
  282. package/src/toolbar/Base.mjs +14 -14
  283. package/src/toolbar/Breadcrumb.mjs +11 -11
  284. package/src/toolbar/Paging.mjs +18 -18
  285. package/src/tooltip/Base.mjs +20 -22
  286. package/src/tree/Accordion.mjs +69 -75
  287. package/src/tree/List.mjs +22 -25
  288. package/src/util/Array.mjs +19 -18
  289. package/src/util/ClassSystem.mjs +9 -9
  290. package/src/util/Css.mjs +2 -2
  291. package/src/util/Date.mjs +9 -9
  292. package/src/util/Function.mjs +2 -2
  293. package/src/util/HashHistory.mjs +3 -5
  294. package/src/util/KeyNavigation.mjs +17 -17
  295. package/src/util/Logger.mjs +9 -9
  296. package/src/util/Matrix.mjs +19 -19
  297. package/src/util/String.mjs +9 -9
  298. package/src/util/Style.mjs +11 -11
  299. package/src/util/VDom.mjs +12 -14
  300. package/src/util/VNode.mjs +29 -29
  301. package/src/vdom/Helper.mjs +84 -93
  302. package/src/vdom/VNode.mjs +1 -1
  303. package/src/worker/App.mjs +19 -16
  304. package/src/worker/Base.mjs +14 -15
  305. package/src/worker/Canvas.mjs +1 -3
  306. package/src/worker/Data.mjs +4 -8
  307. package/src/worker/Manager.mjs +27 -32
  308. package/src/worker/Message.mjs +1 -1
  309. package/src/worker/ServiceBase.mjs +38 -42
  310. package/src/worker/Task.mjs +1 -3
  311. package/src/worker/VDom.mjs +2 -4
  312. package/src/worker/mixin/RemoteMethodAccess.mjs +5 -6
  313. package/examples/component/helix/MainContainer.mjs +0 -340
  314. /package/resources/images/{Neo_Logo_Blue.svg → logo/neo_logo_secondary.svg} +0 -0
  315. /package/resources/images/{Neo_Logo_Text.svg → logo/neo_logo_text_secondary.svg} +0 -0
  316. /package/resources/images/{Neo_Logo_White.svg → logo/neo_logo_white.svg} +0 -0
@@ -1,340 +0,0 @@
1
- import CheckBox from '../../../src/form/field/CheckBox.mjs';
2
- import Helix from '../../../src/component/Helix.mjs';
3
- import ImageStore from './ImageStore.mjs';
4
- import NumberField from '../../../src/form/field/Number.mjs';
5
- import Panel from '../../../src/container/Panel.mjs';
6
- import RangeField from '../../../src/form/field/Range.mjs';
7
- import Viewport from '../../../src/container/Viewport.mjs';
8
-
9
- /**
10
- * @class Neo.examples.component.helix.MainContainer
11
- * @extends Neo.container.Viewport
12
- */
13
- class MainContainer extends Viewport {
14
- static config = {
15
- className: 'Neo.examples.component.helix.MainContainer',
16
- /**
17
- * @member {Neo.component.Helix|null} helix=null
18
- */
19
- helix: null,
20
- /**
21
- * @member {Object|null} helixConfig=null
22
- */
23
- helixConfig: null,
24
- /**
25
- * @member {Object|null} layout={ntype: 'hbox',align:'stretch'}
26
- */
27
- layout: {ntype: 'hbox', align: 'stretch'},
28
- /**
29
- * @member {Boolean} showGitHubStarButton=true
30
- */
31
- showGitHubStarButton: true,
32
- /**
33
- * @member {Object[]} items
34
- */
35
- items: [{
36
- ntype : 'container',
37
- flex : 1,
38
- layout: 'fit',
39
- style : {position: 'relative'},
40
-
41
- items: [{
42
- ntype: 'component',
43
- html : 'DeltaUpdates / s: <span id="neo-delta-updates"></span>',
44
- style: {
45
- position: 'absolute',
46
- right : '150px',
47
- top : '25px',
48
- width : '200px',
49
- zIndex : 1
50
- }
51
- }, {
52
- ntype: 'component',
53
- html : '<a class="github-button" href="https://github.com/neomjs/neo" data-size="large" data-show-count="true" aria-label="Star neomjs/neo on GitHub">Star</a>',
54
- style: {
55
- position: 'absolute',
56
- right : '20px',
57
- top : '20px',
58
- zIndex : 1
59
- }
60
- }]
61
- }, {
62
- ntype : 'panel',
63
- layout : {ntype: 'vbox', align: 'stretch'},
64
- reference: 'controls-panel',
65
- style : {backgroundColor: '#2b2b2b'},
66
- width : 250,
67
-
68
- containerConfig: {
69
- flex : null,
70
- style: {overflowY: 'scroll'}
71
- },
72
-
73
- headers: [{
74
- dock: 'top',
75
- text: 'Helix Controls'
76
- }],
77
-
78
- itemDefaults: {
79
- ntype : 'rangefield',
80
- flex : '0 1 auto',
81
- labelWidth : '100px',
82
- style : {padding: '10px'},
83
- useInputEvent: true,
84
-
85
- listeners: {
86
- change: function(data) {
87
- if (['deltaY', 'maxOpacity', 'minOpacity'].includes(this.name)) {
88
- data.value /= 100;
89
- }
90
- Neo.get('neo-helix-1')[this.name] = data.value;
91
- }
92
- }
93
- },
94
-
95
- items: [{
96
- labelText: 'Translate X',
97
- maxValue : 2000,
98
- minValue : -2000,
99
- name : 'translateX',
100
- value : 400
101
- }, {
102
- labelText: 'Translate Y',
103
- maxValue : 2500,
104
- minValue : -2500,
105
- name : 'translateY',
106
- value : -350
107
- }, {
108
- labelText: 'Translate Z',
109
- maxValue : 4500,
110
- minValue : -4500,
111
- name : 'translateZ',
112
- value : -1500,
113
- listeners: {
114
- change: function(data) {
115
- Neo.get('neo-helix-1')[this.name] = data.value;
116
- },
117
- mounted: function(fieldId) {
118
- let field = Neo.get(fieldId);
119
-
120
- Neo.get('neo-helix-1').on('changeTranslateZ', function(value) {
121
- value = Math.min(Math.max(value, this.minValue), this.maxValue);
122
- this.value = value;
123
- }, field);
124
- }
125
- }
126
- }, {
127
- labelText : 'Delta Y',
128
- labelAlign: 'top',
129
- maxValue : 600,
130
- minValue : -600,
131
- name : 'deltaY',
132
- value : 70
133
- }, {
134
- labelText: 'Rotate',
135
- minValue : -720,
136
- maxValue : 720,
137
- name : 'rotationAngle',
138
- value : 0,
139
- listeners: {
140
- change: function(data) {
141
- Neo.get('neo-helix-1')[this.name] = data.value;
142
- },
143
- mounted: function(fieldId) {
144
- let field = Neo.get(fieldId);
145
-
146
- Neo.get('neo-helix-1').on('changeRotation', function(value) {
147
- value = Math.min(Math.max(value, this.minValue), this.maxValue);
148
- this.value = value;
149
- }, field);
150
- }
151
- }
152
- }, {
153
- labelText: 'Radius',
154
- maxValue : 3500,
155
- minValue : 900,
156
- name : 'radius',
157
- value : 1500
158
- }, {
159
- labelText: 'Perspective',
160
- minValue : 50,
161
- maxValue : 3000,
162
- name : 'perspective',
163
- value : 800
164
- }, {
165
- labelText: 'Item Angle',
166
- minValue : 1,
167
- maxValue : 36,
168
- name : 'itemAngle',
169
- value : 8
170
- }, {
171
- labelText: 'Max Opacity',
172
- name : 'maxOpacity',
173
- minValue : 0,
174
- maxValue : 100,
175
- value : 80 // todo [30, 80]
176
- }, {
177
- labelText: 'Min Opacity',
178
- name : 'minOpacity',
179
- minValue : 0,
180
- maxValue : 100,
181
- value : 30
182
- }, {
183
- module : NumberField,
184
- clearable: false,
185
- labelText: 'Max Items',
186
- maxValue : 600,
187
- minValue : 100,
188
- name : 'maxItems',
189
- stepSize : 100,
190
- value : 300
191
- }, {
192
- ntype : 'button',
193
- text : 'Flip Items',
194
- listeners: {},
195
- style : {margin: '20px'},
196
- domListeners: {
197
- click: data => {
198
- const helix = Neo.get('neo-helix-1');
199
- helix.flipped = !helix.flipped;
200
- }
201
- }
202
- }, {
203
- ntype : 'button',
204
- disabled : true, // component.Helix: buffered sorting #105
205
- text : 'Sort by Lastname',
206
- listeners: {},
207
- domListeners: {
208
- click: data => {
209
- Neo.get('neo-helix-1').store.sorters = [{
210
- property : 'lastname',
211
- direction: 'ASC'
212
- }, {
213
- property : 'firstname',
214
- direction: 'ASC'
215
- }];
216
- }
217
- },
218
- style: {
219
- margin : '20px',
220
- marginBottom: '10px'
221
- }
222
- }, {
223
- ntype : 'button',
224
- disabled : true, // component.Helix: buffered sorting #105
225
- text : 'Sort by Firstname',
226
- listeners: {},
227
- domListeners: {
228
- click: data => {
229
- Neo.get('neo-helix-1').store.sorters = [{
230
- property : 'firstname',
231
- direction: 'ASC'
232
- }, {
233
- property : 'lastname',
234
- direction: 'ASC'
235
- }];
236
- }
237
- },
238
- style: {
239
- margin : '20px',
240
- marginTop: 0
241
- }
242
- }, {
243
- ntype : 'button',
244
- iconCls : 'fa fa-square',
245
- text : 'Follow Selection',
246
- listeners: {},
247
- domListeners: {
248
- click: function(data) {
249
- let me = this,
250
- helix = Neo.get('neo-helix-1');
251
-
252
- if (me.iconCls === 'fa fa-square') {
253
- helix.followSelection = true;
254
- me.iconCls = 'fa fa-check-square';
255
- } else {
256
- helix.followSelection = false;
257
- me.iconCls = 'fa fa-square';
258
- }
259
- }
260
- },
261
- style: {
262
- margin : '20px',
263
- marginBottom: '10px'
264
- }
265
- }, {
266
- module : CheckBox,
267
- checked : Neo.config.logDeltaUpdates,
268
- hideLabel : true,
269
- hideValueLabel: false,
270
- style : {marginLeft: '10px', marginTop: '10px'},
271
- valueLabelText: 'logDeltaUpdates',
272
-
273
- listeners: {
274
- change: function (data) {
275
- Neo.Main.setNeoConfig({
276
- key: 'logDeltaUpdates',
277
- value: data.value
278
- });
279
- }
280
- }
281
- }, {
282
- ntype: 'label',
283
- text : [
284
- '<b>Navigation Concept</b>',
285
- '<p>Click on an item to select it. Afterwards you can use the Arrow Keys to walk through the items.</p>',
286
- '<p>Hit the Space Key to rotate the currently selected item to the front.</p>',
287
- '<p>Hit the Enter Key to expand the currently selected item.</p>'
288
- ].join(''),
289
-
290
- style: {
291
- backgroundColor: '#323232',
292
- color : '#ddd',
293
- fontSize : '13px',
294
- margin : '10px',
295
- padding : '10px',
296
- whiteSpace : 'normal'
297
- }
298
- }]
299
- }]
300
- }
301
-
302
- /**
303
- * @param {Object} config
304
- */
305
- construct(config) {
306
- super.construct(config);
307
-
308
- let me = this;
309
-
310
- me.helix = Neo.create({
311
- module: Helix,
312
- id : 'neo-helix-1',
313
- store : ImageStore,
314
- ...me.helixConfig
315
- });
316
-
317
- me.items[0].items.unshift(me.helix);
318
-
319
- if (me.showGitHubStarButton) {
320
- me.on('mounted', () => {
321
- Neo.main.DomAccess.addScript({
322
- async: true,
323
- defer: true,
324
- src : 'https://buttons.github.io/buttons.js'
325
- });
326
- });
327
- }
328
- }
329
-
330
- /**
331
- * @returns {Neo.data.Store}
332
- */
333
- getStore() {
334
- return this.items[0].items[0].store;
335
- }
336
- }
337
-
338
- Neo.setupClass(MainContainer);
339
-
340
- export default MainContainer;