neo.mjs 7.6.0 → 7.8.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 (65) hide show
  1. package/apps/ServiceWorker.mjs +2 -2
  2. package/apps/portal/index.html +1 -1
  3. package/apps/portal/neo-config.json +1 -0
  4. package/apps/portal/resources/data/examples_devmode.json +20 -21
  5. package/apps/portal/resources/data/examples_dist_dev.json +19 -20
  6. package/apps/portal/resources/data/examples_dist_prod.json +19 -20
  7. package/apps/portal/view/ViewportController.mjs +20 -4
  8. package/apps/portal/view/home/FooterContainer.mjs +1 -1
  9. package/apps/portal/view/learn/{ContentView.mjs → ContentComponent.mjs} +98 -38
  10. package/apps/portal/view/learn/CubeLayoutButton.mjs +77 -0
  11. package/apps/portal/view/learn/MainContainerController.mjs +1 -0
  12. package/apps/portal/view/learn/PageContainer.mjs +4 -4
  13. package/apps/shareddialog/view/DemoDialog.mjs +2 -10
  14. package/apps/shareddialog/view/MainContainerController.mjs +137 -126
  15. package/buildScripts/webpack/json/myApps.template.json +1 -1
  16. package/examples/ServiceWorker.mjs +2 -2
  17. package/package.json +3 -3
  18. package/resources/data/deck/learnneo/pages/Welcome.md +1 -1
  19. package/resources/data/deck/learnneo/pages/benefits/FormsEngine.md +1 -1
  20. package/resources/data/deck/learnneo/pages/guides/PortalApp.md +35 -0
  21. package/resources/data/deck/learnneo/tree.json +1 -0
  22. package/resources/scss/src/apps/colors/TableContainer.scss +11 -9
  23. package/resources/scss/src/apps/portal/blog/List.scss +1 -0
  24. package/resources/scss/src/apps/portal/examples/List.scss +1 -0
  25. package/resources/scss/src/apps/portal/services/Component.scss +7 -8
  26. package/resources/scss/theme-dark/apps/docs/classdetails/MembersList.scss +3 -1
  27. package/resources/scss/theme-dark/button/Base.scss +3 -1
  28. package/resources/scss/theme-dark/list/Base.scss +3 -1
  29. package/resources/scss/theme-dark/table/header/Button.scss +3 -1
  30. package/resources/scss/theme-dark/tree/List.scss +3 -1
  31. package/resources/scss/theme-light/apps/covid/HeaderContainer.scss +6 -4
  32. package/resources/scss/theme-light/apps/docs/classdetails/MembersList.scss +3 -1
  33. package/resources/scss/theme-light/button/Base.scss +3 -1
  34. package/resources/scss/theme-light/grid/View.scss +8 -6
  35. package/resources/scss/theme-light/list/Base.scss +6 -4
  36. package/resources/scss/theme-light/table/View.scss +8 -6
  37. package/resources/scss/theme-light/table/header/Button.scss +3 -1
  38. package/resources/scss/theme-neo-light/apps/covid/HeaderContainer.scss +6 -4
  39. package/resources/scss/theme-neo-light/apps/docs/classdetails/MembersList.scss +3 -1
  40. package/resources/scss/theme-neo-light/design-tokens/Core.scss +11 -9
  41. package/resources/scss/theme-neo-light/grid/View.scss +8 -6
  42. package/resources/scss/theme-neo-light/table/View.scss +8 -6
  43. package/resources/scss/theme-neo-light/table/header/Button.scss +3 -1
  44. package/src/DefaultConfig.mjs +2 -2
  45. package/src/collection/Base.mjs +4 -3
  46. package/src/container/Base.mjs +12 -7
  47. package/src/draggable/DragProxyComponent.mjs +10 -20
  48. package/src/main/addon/Navigator.mjs +34 -32
  49. package/src/main/addon/WindowPosition.mjs +13 -15
  50. package/src/plugin/Resizable.mjs +20 -11
  51. package/src/tab/Container.mjs +5 -1
  52. package/src/table/View.mjs +2 -2
  53. package/test/siesta/siesta.js +1 -0
  54. package/test/siesta/tests/ManagerInstance.mjs +35 -0
  55. package/apps/krausest/README.md +0 -3
  56. package/apps/krausest/TableCollection.mjs +0 -46
  57. package/apps/krausest/app.mjs +0 -8
  58. package/apps/krausest/css/currentStyle.css +0 -2
  59. package/apps/krausest/css/main.css +0 -26
  60. package/apps/krausest/index.html +0 -12
  61. package/apps/krausest/neo-config.json +0 -10
  62. package/apps/krausest/view/MainComponent.mjs +0 -122
  63. package/apps/krausest/view/MainComponentController.mjs +0 -33
  64. package/apps/krausest/view/TableComponent.mjs +0 -152
  65. /package/resources/scss/src/apps/portal/learn/{ContentView.scss → ContentComponent.scss} +0 -0
@@ -1,152 +0,0 @@
1
- import Base from '../../../src/component/Base.mjs';
2
- import ClassSystemUtil from '../../../src/util/ClassSystem.mjs';
3
- import TableCollection from '../TableCollection.mjs';
4
-
5
- function _random(max) {
6
- return Math.round(Math.random()*1000)%max;
7
- }
8
-
9
- /**
10
- * @class NeoApp.view.TableComponent
11
- * @extends Neo.component.Base
12
- */
13
- class TableComponent extends Base {
14
- static config = {
15
- /**
16
- * @member {String} className='NeoApp.view.TableComponent'
17
- * @protected
18
- */
19
- className: 'NeoApp.view.TableComponent',
20
- /**
21
- * @member {String[]} baseCls=['table','table-hover','table-striped','test-data']
22
- */
23
- baseCls: ['table', 'table-hover', 'table-striped', 'test-data'],
24
- /**
25
- * @member {NeoApp.TableCollection|null} store_=TableCollection
26
- */
27
- store_: TableCollection,
28
- /**
29
- * @member {Object} _vdom
30
- */
31
- _vdom:
32
- {tag: 'table', cn: [
33
- {tag: 'tbody', id: 'tbody', cn: []}
34
- ]}
35
- }
36
-
37
- /**
38
- * @param {Object} config
39
- */
40
- construct(config) {
41
- super.construct(config);
42
-
43
- Neo.main.addon.CloneNode.createNode({
44
- id : this.id,
45
- tag : 'tr',
46
- html: [
47
- '<td class="col-md-1"></td>',
48
- '<td class="col-md-4"><a class="lbl"></a></td>',
49
- '<td class="col-md-1"><a class="remove"><span class="remove glyphicon glyphicon-remove" aria-hidden="true"></span></a></td>',
50
- '<td class="col-md-6"></td>'
51
- ].join(''),
52
- paths: {
53
- id : '0',
54
- label: '1/0'
55
- }
56
- });
57
- }
58
-
59
- /**
60
- *
61
- */
62
- add() {
63
- let me = this,
64
- store = me.store,
65
- items = store.buildData();
66
-
67
- store.add(items);
68
-
69
- Neo.main.addon.CloneNode.applyClones({
70
- data : items,
71
- id : me.id,
72
- parentId: 'tbody'
73
- });
74
-
75
- // this works pretty fast as well
76
- /*items.forEach(item => {
77
- me.vdom.cn[0].cn.push(me.createTableRow(item));
78
- });
79
-
80
- me.update();*/
81
- }
82
-
83
- /**
84
- * Triggered before the store config gets changed.
85
- * @param {Object|Neo.data.Store} value
86
- * @param {Object|Neo.data.Store} oldValue
87
- * @returns {Neo.data.Store}
88
- * @protected
89
- */
90
- beforeSetStore(value, oldValue) {
91
- oldValue && oldValue.destroy();
92
- return ClassSystemUtil.beforeSetInstance(value);
93
- }
94
-
95
- /**
96
- *
97
- */
98
- clear() {
99
- let me = this,
100
- store = me.store;
101
-
102
- if (store.getCount() > 0) {
103
- store.clear();
104
- Neo.applyDeltas(me.appName, {
105
- action: 'setTextContent',
106
- id : 'tbody',
107
- value : ''
108
- });
109
- }
110
- }
111
-
112
- /**
113
- * @param {Object} data
114
- * @param {Number} data.id
115
- * @param {String} data.label
116
- * @returns {Object}
117
- */
118
- createTableRow(data) {
119
- return {tag: 'tr', cn: [
120
- {tag: 'td', cls: ['col-md-1'], html: data.id},
121
- {tag: 'td', cls: ['col-md-4'], cn: [
122
- {tag: 'a', cls: ['lbl'], html: data.label}
123
- ]},
124
- {tag: 'td', cls: ['col-md-1'], cn: [
125
- {tag: 'a', cls: ['remove'], cn: [
126
- {tag: 'span', cls: ['remove', 'glyphicon', 'glyphicon-remove'], 'aria-hidden': true}
127
- ]}
128
- ]},
129
- {tag: 'td', cls: ['col-md-6']}
130
- ]};
131
- }
132
-
133
- /**
134
- *
135
- */
136
- runlots() {
137
- let me = this,
138
- store = me.store,
139
- items = store.buildData(10000);
140
-
141
- me.clear();
142
- store.add(items);
143
-
144
- Neo.main.addon.CloneNode.applyClones({
145
- data : items,
146
- id : me.id,
147
- parentId: 'tbody'
148
- });
149
- }
150
- }
151
-
152
- export default Neo.setupClass(TableComponent);