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.
Files changed (29) hide show
  1. package/apps/ServiceWorker.mjs +2 -2
  2. package/buildScripts/createClass.mjs +1 -3
  3. package/examples/ServiceWorker.mjs +2 -2
  4. package/examples/container/base/MainContainer.mjs +78 -0
  5. package/examples/container/{app.mjs → base/app.mjs} +1 -1
  6. package/examples/container/{index.html → base/index.html} +1 -1
  7. package/examples/container/{neo-config.json → base/neo-config.json} +2 -2
  8. package/examples/container/dialog/MainContainer.mjs +68 -0
  9. package/examples/container/dialog/MainContainerController.mjs +80 -0
  10. package/examples/container/dialog/app.mjs +6 -0
  11. package/examples/container/dialog/index.html +11 -0
  12. package/examples/container/dialog/neo-config.json +7 -0
  13. package/package.json +3 -3
  14. package/resources/scss/src/component/Process.scss +190 -0
  15. package/resources/scss/src/container/Dialog.scss +12 -0
  16. package/resources/scss/src/form/field/Switch.scss +135 -0
  17. package/resources/scss/theme-dark/component/Process.scss +21 -0
  18. package/resources/scss/theme-dark/form/field/Picker.scss +1 -1
  19. package/resources/scss/theme-dark/form/field/Switch.scss +17 -0
  20. package/resources/scss/theme-light/component/Process.scss +21 -0
  21. package/resources/scss/theme-light/form/field/Switch.scss +17 -0
  22. package/src/DefaultConfig.mjs +2 -2
  23. package/src/component/Process.mjs +180 -0
  24. package/src/container/Dialog.mjs +221 -0
  25. package/src/dialog/header/Toolbar.mjs +7 -7
  26. package/src/form/field/Select.mjs +15 -9
  27. package/src/form/field/Switch.mjs +43 -0
  28. package/src/main/addon/Dialog.mjs +68 -0
  29. 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;