neo.mjs 5.9.3 → 5.10.1
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 +2 -2
- package/buildScripts/createClass.mjs +1 -3
- package/examples/ServiceWorker.mjs +2 -2
- package/examples/container/base/MainContainer.mjs +78 -0
- package/examples/container/{app.mjs → base/app.mjs} +1 -1
- package/examples/container/{index.html → base/index.html} +1 -1
- package/examples/container/{neo-config.json → base/neo-config.json} +2 -2
- package/examples/container/dialog/MainContainer.mjs +68 -0
- package/examples/container/dialog/MainContainerController.mjs +80 -0
- package/examples/container/dialog/app.mjs +6 -0
- package/examples/container/dialog/index.html +11 -0
- package/examples/container/dialog/neo-config.json +7 -0
- package/package.json +3 -3
- package/resources/scss/src/component/Process.scss +190 -0
- package/resources/scss/src/container/Dialog.scss +12 -0
- package/resources/scss/src/form/field/Switch.scss +135 -0
- package/resources/scss/theme-dark/component/Process.scss +21 -0
- package/resources/scss/theme-dark/form/field/Picker.scss +1 -1
- package/resources/scss/theme-dark/form/field/Switch.scss +17 -0
- package/resources/scss/theme-light/component/Process.scss +21 -0
- package/resources/scss/theme-light/form/field/Switch.scss +17 -0
- package/src/DefaultConfig.mjs +2 -2
- package/src/component/Process.mjs +180 -0
- package/src/container/Dialog.mjs +221 -0
- package/src/dialog/header/Toolbar.mjs +7 -7
- package/src/form/field/Select.mjs +15 -9
- package/src/form/field/Switch.mjs +43 -0
- package/src/main/addon/Dialog.mjs +68 -0
- package/examples/container/MainContainer.mjs +0 -93
@@ -1,93 +0,0 @@
|
|
1
|
-
import Button from '../../src/button/Base.mjs';
|
2
|
-
import Container from '../../src/container/Base.mjs';
|
3
|
-
|
4
|
-
/**
|
5
|
-
* @class Neo.examples.container.MainContainer
|
6
|
-
* @extends Neo.container.Base
|
7
|
-
*/
|
8
|
-
class MainContainer extends Container {
|
9
|
-
static config = {
|
10
|
-
className: 'Neo.examples.container.MainContainer',
|
11
|
-
autoMount: true,
|
12
|
-
layout : 'vbox',
|
13
|
-
|
14
|
-
items: [
|
15
|
-
{
|
16
|
-
ntype : 'button',
|
17
|
-
iconCls: 'fa fa-home',
|
18
|
-
text : 'Hello',
|
19
|
-
width : 200
|
20
|
-
},
|
21
|
-
{
|
22
|
-
ntype : 'button',
|
23
|
-
iconCls: 'fa fa-user',
|
24
|
-
text : 'World'
|
25
|
-
},
|
26
|
-
{
|
27
|
-
ntype : 'container',
|
28
|
-
layout: {
|
29
|
-
ntype: 'hbox',
|
30
|
-
align: 'stretch'
|
31
|
-
},
|
32
|
-
items: [
|
33
|
-
{
|
34
|
-
ntype : 'button',
|
35
|
-
iconCls: 'fa fa-home',
|
36
|
-
text : 'Hello2',
|
37
|
-
width : 200,
|
38
|
-
|
39
|
-
style: {
|
40
|
-
color: 'red'
|
41
|
-
}
|
42
|
-
},
|
43
|
-
{
|
44
|
-
ntype : 'button',
|
45
|
-
flex : 1,
|
46
|
-
iconCls : 'fa fa-user',
|
47
|
-
iconColor: 'red',
|
48
|
-
text : 'World2'
|
49
|
-
},
|
50
|
-
]
|
51
|
-
},
|
52
|
-
{
|
53
|
-
ntype : 'container',
|
54
|
-
|
55
|
-
layout: {
|
56
|
-
ntype: 'vbox',
|
57
|
-
align: 'start'
|
58
|
-
},
|
59
|
-
|
60
|
-
style: {
|
61
|
-
marginTop: '30px'
|
62
|
-
},
|
63
|
-
|
64
|
-
items: [
|
65
|
-
{
|
66
|
-
ntype : 'button',
|
67
|
-
iconCls : 'fa fa-home',
|
68
|
-
iconPosition: 'right',
|
69
|
-
text : 'Right'
|
70
|
-
},
|
71
|
-
{
|
72
|
-
ntype : 'button',
|
73
|
-
flex : 1,
|
74
|
-
iconCls : 'fa fa-user',
|
75
|
-
iconPosition: 'top',
|
76
|
-
text : 'Top'
|
77
|
-
},
|
78
|
-
{
|
79
|
-
ntype : 'button',
|
80
|
-
flex : 1,
|
81
|
-
iconCls : 'fa fa-play-circle',
|
82
|
-
iconPosition: 'bottom',
|
83
|
-
text : 'Bottom'
|
84
|
-
}
|
85
|
-
]
|
86
|
-
}
|
87
|
-
]
|
88
|
-
}
|
89
|
-
}
|
90
|
-
|
91
|
-
Neo.applyClassConfig(MainContainer);
|
92
|
-
|
93
|
-
export default MainContainer;
|