neo.mjs 6.17.1 → 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.
- package/apps/ServiceWorker.mjs +3 -5
- package/apps/colors/README.md +8 -0
- package/apps/colors/app.mjs +6 -0
- package/apps/colors/childapps/widget/app.mjs +7 -0
- package/apps/colors/childapps/widget/index.html +11 -0
- package/apps/colors/childapps/widget/neo-config.json +10 -0
- package/apps/colors/childapps/widget/view/Viewport.mjs +19 -0
- package/apps/colors/index.html +11 -0
- package/apps/colors/model/Color.mjs +43 -0
- package/apps/colors/neo-config.json +10 -0
- package/apps/colors/remotes-api.json +13 -0
- package/apps/colors/store/Colors.mjs +24 -0
- package/apps/colors/view/BarChartComponent.mjs +64 -0
- package/apps/colors/view/HeaderToolbar.mjs +95 -0
- package/apps/colors/view/PieChartComponent.mjs +58 -0
- package/apps/colors/view/TableContainer.mjs +91 -0
- package/apps/colors/view/Viewport.mjs +57 -0
- package/apps/colors/view/ViewportController.mjs +277 -0
- package/apps/colors/view/ViewportModel.mjs +53 -0
- package/apps/portal/Util.mjs +11 -0
- package/apps/portal/childapps/preview/neo-config.json +2 -2
- package/apps/portal/neo-config.json +2 -1
- package/apps/portal/remotes-api.json +13 -0
- package/apps/portal/view/HeaderToolbar.mjs +44 -27
- package/apps/portal/view/Viewport.mjs +12 -1
- package/apps/portal/view/ViewportController.mjs +89 -1
- package/apps/portal/view/home/MainContainer.mjs +27 -60
- package/apps/portal/view/home/parts/AfterMath.mjs +58 -0
- package/apps/portal/view/home/parts/Colors.mjs +74 -0
- package/apps/portal/view/home/parts/Features.mjs +52 -0
- package/apps/portal/view/home/parts/Helix.mjs +75 -0
- package/apps/portal/view/home/parts/HelloWorld.mjs +82 -0
- package/apps/portal/view/home/parts/MainNeo.mjs +55 -0
- package/apps/portal/view/home/preview/PageCodeContainer.mjs +55 -0
- package/apps/portal/view/learn/LivePreview.mjs +72 -29
- package/apps/portal/view/learn/MainContainerController.mjs +10 -90
- package/apps/realworld/api/Article.mjs +1 -3
- package/apps/realworld/api/Favorite.mjs +1 -3
- package/apps/realworld/api/Profile.mjs +1 -3
- package/apps/realworld/api/Tag.mjs +1 -3
- package/apps/realworld/api/User.mjs +1 -3
- package/apps/realworld2/api/Article.mjs +1 -3
- package/apps/realworld2/api/Favorite.mjs +1 -3
- package/apps/realworld2/api/Profile.mjs +1 -3
- package/apps/realworld2/api/Tag.mjs +1 -3
- package/apps/realworld2/api/User.mjs +1 -3
- package/apps/realworld2/view/article/HelixContainer.mjs +5 -5
- package/buildScripts/webpack/json/myApps.template.json +1 -0
- package/buildScripts/webpack/webpack.server.config.mjs +4 -1
- package/docs/app/view/MainContainer.mjs +5 -0
- package/docs/app/view/classdetails/MembersList.mjs +1 -1
- package/examples/ServiceWorker.mjs +3 -5
- package/examples/component/helix/Viewport.mjs +309 -0
- package/examples/component/helix/ViewportController.mjs +122 -0
- package/examples/component/helix/app.mjs +2 -2
- package/examples/component/helix/neo-config.json +0 -1
- package/examples/component/multiWindowHelix/Viewport.mjs +11 -3
- package/examples/component/multiWindowHelix/ViewportController.mjs +21 -9
- package/examples/component/multiWindowHelix/neo-config.json +0 -1
- package/examples/fieldWithPrefix/MainContainer.mjs +1 -6
- package/examples/list/animate/MainContainerController.mjs +1 -1
- package/examples/worker/task/MyTasks.mjs +1 -3
- package/package.json +5 -5
- package/resources/data/deck/learnneo/pages/GuideEvents.md +131 -0
- package/resources/data/deck/learnneo/pages/WhyNeo-Speed.md +1 -1
- package/resources/images/logo/neo_logo_primary.svg +6 -0
- package/resources/images/logo/neo_logo_secondary.svg +6 -0
- package/resources/images/logo/neo_logo_text_primary.svg +5 -0
- package/resources/images/logo/neo_logo_text_secondary.svg +5 -0
- package/resources/images/logo/neo_logo_white.svg +6 -0
- package/resources/scss/src/apps/colors/BarChartComponent.scss +3 -0
- package/resources/scss/src/apps/colors/HeaderToolbar.scss +11 -0
- package/resources/scss/src/apps/colors/PieChartComponent.scss +3 -0
- package/resources/scss/src/apps/colors/TableContainer.scss +64 -0
- package/resources/scss/src/apps/colors/Viewport.scss +9 -0
- package/resources/scss/src/apps/portal/HeaderToolbar.scss +189 -17
- package/resources/scss/src/apps/portal/home/MainContainer.scss +46 -20
- package/resources/scss/src/apps/portal/home/parts/Features.scss +3 -0
- package/resources/scss/src/apps/portal/home/preview/PageCodeContainer.scss +115 -0
- package/resources/scss/src/component/Base.scss +2 -0
- package/resources/scss/src/examples/component/multiWindowHelix/Viewport.scss +3 -0
- package/resources/scss/src/form/field/CheckBox.scss +1 -0
- package/resources/scss/src/tab/header/Button.scss +2 -1
- package/resources/scss/theme-dark/Global.scss +8 -0
- package/resources/scss/theme-dark/button/Base.scss +1 -1
- package/resources/scss/theme-dark/tab/header/Button.scss +1 -0
- package/resources/scss/theme-light/Global.scss +8 -0
- package/resources/scss/theme-light/button/Base.scss +1 -1
- package/resources/scss/theme-light/tab/header/Button.scss +1 -0
- package/resources/scss/theme-neo-light/Global.scss +53 -53
- package/resources/scss/theme-neo-light/button/Base.scss +3 -4
- package/resources/scss/theme-neo-light/tab/header/Button.scss +6 -8
- package/src/DefaultConfig.mjs +2 -2
- package/src/Fetch.mjs +1 -3
- package/src/Main.mjs +13 -11
- package/src/MicroLoader.mjs +2 -2
- package/src/Neo.mjs +27 -26
- package/src/Xhr.mjs +1 -3
- package/src/button/Base.mjs +6 -4
- package/src/button/Split.mjs +10 -9
- package/src/calendar/view/EditEventContainer.mjs +13 -12
- package/src/calendar/view/MainContainer.mjs +40 -40
- package/src/calendar/view/MainContainerModel.mjs +5 -5
- package/src/calendar/view/SettingsContainer.mjs +11 -11
- package/src/calendar/view/YearComponent.mjs +73 -75
- package/src/calendar/view/calendars/ColorsList.mjs +2 -2
- package/src/calendar/view/calendars/EditContainer.mjs +2 -2
- package/src/calendar/view/calendars/List.mjs +12 -13
- package/src/calendar/view/month/Component.mjs +72 -73
- package/src/calendar/view/settings/GeneralContainer.mjs +5 -5
- package/src/calendar/view/settings/MonthContainer.mjs +5 -5
- package/src/calendar/view/settings/WeekContainer.mjs +6 -6
- package/src/calendar/view/settings/YearContainer.mjs +4 -4
- package/src/calendar/view/week/Component.mjs +47 -57
- package/src/calendar/view/week/EventDragZone.mjs +43 -50
- package/src/calendar/view/week/TimeAxisComponent.mjs +21 -21
- package/src/calendar/view/week/plugin/DragDrop.mjs +53 -45
- package/src/calendar/view/week/plugin/EventResizable.mjs +8 -3
- package/src/collection/Base.mjs +15 -22
- package/src/collection/Filter.mjs +4 -9
- package/src/collection/Sorter.mjs +6 -7
- package/src/component/Base.mjs +149 -87
- package/src/component/Canvas.mjs +9 -9
- package/src/component/Carousel.mjs +31 -33
- package/src/component/Chip.mjs +9 -9
- package/src/component/Circle.mjs +84 -91
- package/src/component/Clock.mjs +8 -8
- package/src/component/DateSelector.mjs +14 -15
- package/src/component/Gallery.mjs +82 -80
- package/src/component/Helix.mjs +131 -126
- package/src/component/Iframe.mjs +1 -1
- package/src/component/Label.mjs +1 -1
- package/src/component/Legend.mjs +3 -3
- package/src/component/Process.mjs +39 -37
- package/src/component/Splitter.mjs +9 -11
- package/src/component/StatusBadge.mjs +2 -3
- package/src/component/Timer.mjs +62 -68
- package/src/component/Toast.mjs +11 -11
- package/src/component/Video.mjs +7 -8
- package/src/component/mwc/Button.mjs +10 -10
- package/src/component/mwc/TextField.mjs +17 -17
- package/src/component/wrapper/AmChart.mjs +5 -5
- package/src/component/wrapper/CesiumJS.mjs +11 -17
- package/src/component/wrapper/GoogleMaps.mjs +58 -35
- package/src/component/wrapper/MapboxGL.mjs +112 -79
- package/src/component/wrapper/MonacoEditor.mjs +1 -6
- package/src/container/Accordion.mjs +18 -20
- package/src/container/AccordionItem.mjs +12 -11
- package/src/container/Base.mjs +29 -28
- package/src/container/Panel.mjs +9 -9
- package/src/container/Viewport.mjs +30 -1
- package/src/controller/Base.mjs +12 -14
- package/src/controller/Component.mjs +60 -66
- package/src/core/Base.mjs +5 -8
- package/src/core/IdGenerator.mjs +1 -3
- package/src/core/Observable.mjs +17 -17
- package/src/core/Util.mjs +5 -5
- package/src/data/Model.mjs +3 -3
- package/src/data/RecordFactory.mjs +3 -6
- package/src/data/Store.mjs +34 -34
- package/src/data/connection/Fetch.mjs +3 -3
- package/src/data/connection/WebSocket.mjs +21 -25
- package/src/data/connection/Xhr.mjs +31 -28
- package/src/date/DayViewComponent.mjs +1 -1
- package/src/date/SelectorContainer.mjs +2 -2
- package/src/dialog/Base.mjs +27 -25
- package/src/dialog/header/Toolbar.mjs +5 -4
- package/src/draggable/DragProxyComponent.mjs +7 -4
- package/src/draggable/DragZone.mjs +30 -30
- package/src/draggable/DropZone.mjs +7 -7
- package/src/draggable/list/DragZone.mjs +18 -18
- package/src/draggable/tab/header/toolbar/SortZone.mjs +7 -7
- package/src/draggable/toolbar/DragZone.mjs +15 -15
- package/src/draggable/toolbar/SortZone.mjs +30 -31
- package/src/draggable/tree/DragZone.mjs +9 -9
- package/src/filter/BooleanContainer.mjs +3 -3
- package/src/filter/NumberContainer.mjs +5 -5
- package/src/filter/ToggleOperatorsButton.mjs +5 -5
- package/src/form/Fieldset.mjs +26 -26
- package/src/form/field/Base.mjs +1 -1
- package/src/form/field/CheckBox.mjs +15 -16
- package/src/form/field/Color.mjs +13 -15
- package/src/form/field/ComboBox.mjs +16 -24
- package/src/form/field/Country.mjs +1 -1
- package/src/form/field/Date.mjs +3 -4
- package/src/form/field/Display.mjs +1 -1
- package/src/form/field/Email.mjs +2 -2
- package/src/form/field/Number.mjs +51 -56
- package/src/form/field/Picker.mjs +2 -2
- package/src/form/field/Radio.mjs +1 -1
- package/src/form/field/Range.mjs +7 -6
- package/src/form/field/Text.mjs +29 -36
- package/src/form/field/TextArea.mjs +9 -9
- package/src/form/field/Time.mjs +30 -30
- package/src/form/field/trigger/Base.mjs +19 -13
- package/src/form/field/trigger/Clear.mjs +13 -13
- package/src/form/field/trigger/CopyToClipboard.mjs +7 -7
- package/src/form/field/trigger/Picker.mjs +2 -2
- package/src/form/field/trigger/SpinDown.mjs +1 -1
- package/src/form/field/trigger/SpinUp.mjs +1 -1
- package/src/form/field/trigger/SpinUpDown.mjs +3 -3
- package/src/form/field/trigger/Time.mjs +3 -3
- package/src/grid/Container.mjs +33 -33
- package/src/grid/View.mjs +20 -22
- package/src/grid/header/Button.mjs +12 -12
- package/src/grid/header/Toolbar.mjs +4 -4
- package/src/layout/Base.mjs +5 -4
- package/src/layout/Card.mjs +15 -16
- package/src/layout/Fit.mjs +22 -8
- package/src/layout/Flexbox.mjs +30 -29
- package/src/layout/Form.mjs +15 -15
- package/src/layout/Grid.mjs +2 -2
- package/src/layout/HBox.mjs +3 -2
- package/src/layout/VBox.mjs +3 -2
- package/src/list/Base.mjs +45 -47
- package/src/list/Chip.mjs +4 -4
- package/src/list/Circle.mjs +3 -3
- package/src/list/Color.mjs +4 -4
- package/src/list/Component.mjs +10 -10
- package/src/list/plugin/Animate.mjs +18 -13
- package/src/main/DomAccess.mjs +92 -56
- package/src/main/DomEvents.mjs +38 -39
- package/src/main/addon/AmCharts.mjs +37 -37
- package/src/main/addon/AnalyticsByGoogle.mjs +4 -4
- package/src/main/addon/CesiumJS.mjs +8 -8
- package/src/main/addon/CloneNode.mjs +5 -5
- package/src/main/addon/Cookie.mjs +4 -4
- package/src/main/addon/DragDrop.mjs +35 -34
- package/src/main/addon/GoogleMaps.mjs +19 -19
- package/src/main/addon/LocalStorage.mjs +3 -3
- package/src/main/addon/MapboxGL.mjs +40 -41
- package/src/main/addon/MonacoEditor.mjs +5 -5
- package/src/main/addon/Mwc.mjs +6 -6
- package/src/main/addon/Navigator.mjs +35 -39
- package/src/main/addon/Popover.mjs +5 -6
- package/src/main/addon/PrefixField.mjs +1 -2
- package/src/main/addon/ServiceWorker.mjs +9 -9
- package/src/main/addon/Siesta.mjs +3 -2
- package/src/main/addon/Stylesheet.mjs +37 -37
- package/src/main/addon/WebComponent.mjs +2 -3
- package/src/main/addon/WindowPosition.mjs +18 -18
- package/src/main/draggable/sensor/Base.mjs +2 -2
- package/src/main/draggable/sensor/Mouse.mjs +15 -15
- package/src/main/draggable/sensor/Touch.mjs +24 -23
- package/src/main/mixin/DeltaUpdates.mjs +10 -12
- package/src/main/mixin/TouchDomEvents.mjs +6 -6
- package/src/manager/Base.mjs +4 -4
- package/src/manager/Component.mjs +41 -41
- package/src/manager/DomEvent.mjs +52 -50
- package/src/manager/Focus.mjs +14 -16
- package/src/manager/Instance.mjs +2 -4
- package/src/manager/Store.mjs +4 -8
- package/src/manager/Task.mjs +20 -22
- package/src/manager/Toast.mjs +14 -16
- package/src/manager/rpc/Api.mjs +1 -3
- package/src/manager/rpc/Message.mjs +16 -18
- package/src/menu/List.mjs +16 -16
- package/src/menu/Panel.mjs +4 -4
- package/src/model/Component.mjs +5 -5
- package/src/plugin/Base.mjs +2 -0
- package/src/plugin/Popover.mjs +1 -1
- package/src/plugin/PrefixField.mjs +35 -45
- package/src/plugin/Resizable.mjs +86 -101
- package/src/plugin/Responsive.mjs +175 -0
- package/src/remotes/Api.mjs +4 -6
- package/src/selection/CircleModel.mjs +12 -16
- package/src/selection/DateSelectorModel.mjs +21 -23
- package/src/selection/GalleryModel.mjs +49 -63
- package/src/selection/HelixModel.mjs +35 -41
- package/src/selection/ListModel.mjs +9 -14
- package/src/selection/Model.mjs +31 -31
- package/src/selection/TreeAccordionModel.mjs +74 -80
- package/src/selection/grid/CellColumnModel.mjs +10 -10
- package/src/selection/grid/CellColumnRowModel.mjs +10 -10
- package/src/selection/grid/CellModel.mjs +26 -28
- package/src/selection/grid/CellRowModel.mjs +24 -24
- package/src/selection/grid/ColumnModel.mjs +16 -20
- package/src/selection/grid/RowModel.mjs +27 -29
- package/src/selection/menu/ListModel.mjs +2 -2
- package/src/selection/table/CellColumnModel.mjs +12 -12
- package/src/selection/table/CellColumnRowModel.mjs +12 -12
- package/src/selection/table/CellModel.mjs +26 -29
- package/src/selection/table/CellRowModel.mjs +19 -19
- package/src/selection/table/ColumnModel.mjs +18 -22
- package/src/selection/table/RowModel.mjs +27 -29
- package/src/sitemap/Component.mjs +20 -20
- package/src/sitemap/Store.mjs +1 -1
- package/src/tab/Container.mjs +15 -15
- package/src/tab/Strip.mjs +1 -1
- package/src/tab/header/Toolbar.mjs +4 -4
- package/src/table/Container.mjs +8 -10
- package/src/table/View.mjs +29 -34
- package/src/table/header/Button.mjs +18 -18
- package/src/table/header/Toolbar.mjs +2 -2
- package/src/toolbar/Base.mjs +14 -14
- package/src/toolbar/Breadcrumb.mjs +11 -11
- package/src/toolbar/Paging.mjs +18 -18
- package/src/tooltip/Base.mjs +20 -22
- package/src/tree/Accordion.mjs +69 -75
- package/src/tree/List.mjs +22 -25
- package/src/util/Array.mjs +19 -18
- package/src/util/ClassSystem.mjs +9 -9
- package/src/util/Css.mjs +2 -2
- package/src/util/Date.mjs +9 -9
- package/src/util/Function.mjs +2 -2
- package/src/util/HashHistory.mjs +3 -5
- package/src/util/KeyNavigation.mjs +17 -17
- package/src/util/Logger.mjs +9 -9
- package/src/util/Matrix.mjs +19 -19
- package/src/util/String.mjs +9 -9
- package/src/util/Style.mjs +11 -11
- package/src/util/VDom.mjs +12 -14
- package/src/util/VNode.mjs +29 -29
- package/src/vdom/Helper.mjs +84 -93
- package/src/vdom/VNode.mjs +1 -1
- package/src/worker/App.mjs +19 -16
- package/src/worker/Base.mjs +14 -15
- package/src/worker/Canvas.mjs +1 -3
- package/src/worker/Data.mjs +4 -8
- package/src/worker/Manager.mjs +27 -32
- package/src/worker/Message.mjs +1 -1
- package/src/worker/ServiceBase.mjs +38 -42
- package/src/worker/Task.mjs +1 -3
- package/src/worker/VDom.mjs +2 -4
- package/src/worker/mixin/RemoteMethodAccess.mjs +5 -6
- package/examples/component/helix/MainContainer.mjs +0 -340
- package/resources/images/Neo_Vector.svg +0 -3
- package/resources/images/logos/Github-logo-black.svg +0 -1
- package/resources/images/logos/Slack-logo-black.svg +0 -17
@@ -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;
|
@@ -1 +0,0 @@
|
|
1
|
-
<svg width="98" height="96" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="#24292f"/></svg>
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<svg width="123" height="124" viewBox="0 0 123 124" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<g clip-path="url(#clip0_460_4276)">
|
3
|
-
<path d="M25.8 78.1988C25.8 85.2988 20 91.0988 12.9 91.0988C5.8 91.0988 0 85.2988 0 78.1988C0 71.0988 5.8 65.2988 12.9 65.2988H25.8V78.1988Z" fill="black"/>
|
4
|
-
<path d="M32.3008 78.1988C32.3008 71.0988 38.1008 65.2988 45.2008 65.2988C52.3008 65.2988 58.1008 71.0988 58.1008 78.1988V110.499C58.1008 117.599 52.3008 123.399 45.2008 123.399C38.1008 123.399 32.3008 117.599 32.3008 110.499V78.1988Z" fill="black"/>
|
5
|
-
<path d="M45.2008 26.3996C38.1008 26.3996 32.3008 20.5996 32.3008 13.4996C32.3008 6.39961 38.1008 0.599609 45.2008 0.599609C52.3008 0.599609 58.1008 6.39961 58.1008 13.4996V26.3996H45.2008Z" fill="black"/>
|
6
|
-
<path d="M45.2 32.9004C52.3 32.9004 58.1 38.7004 58.1 45.8004C58.1 52.9004 52.3 58.7004 45.2 58.7004H12.9C5.8 58.7004 0 52.9004 0 45.8004C0 38.7004 5.8 32.9004 12.9 32.9004H45.2Z" fill="black"/>
|
7
|
-
<path d="M97 45.8004C97 38.7004 102.8 32.9004 109.9 32.9004C117 32.9004 122.8 38.7004 122.8 45.8004C122.8 52.9004 117 58.7004 109.9 58.7004H97V45.8004Z" fill="black"/>
|
8
|
-
<path d="M90.4992 45.7996C90.4992 52.8996 84.6992 58.6996 77.5992 58.6996C70.4992 58.6996 64.6992 52.8996 64.6992 45.7996V13.4996C64.6992 6.39961 70.4992 0.599609 77.5992 0.599609C84.6992 0.599609 90.4992 6.39961 90.4992 13.4996V45.7996Z" fill="black"/>
|
9
|
-
<path d="M77.5992 97.5996C84.6992 97.5996 90.4992 103.4 90.4992 110.5C90.4992 117.6 84.6992 123.4 77.5992 123.4C70.4992 123.4 64.6992 117.6 64.6992 110.5V97.5996H77.5992Z" fill="black"/>
|
10
|
-
<path d="M77.5992 91.0988C70.4992 91.0988 64.6992 85.2988 64.6992 78.1988C64.6992 71.0988 70.4992 65.2988 77.5992 65.2988H109.899C116.999 65.2988 122.799 71.0988 122.799 78.1988C122.799 85.2988 116.999 91.0988 109.899 91.0988H77.5992Z" fill="black"/>
|
11
|
-
</g>
|
12
|
-
<defs>
|
13
|
-
<clipPath id="clip0_460_4276">
|
14
|
-
<rect width="123" height="124" fill="white"/>
|
15
|
-
</clipPath>
|
16
|
-
</defs>
|
17
|
-
</svg>
|