neo.mjs 7.0.4 → 7.0.5
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/.github/workflows/cose-inactive-issues.yml +1 -0
- package/apps/ServiceWorker.mjs +2 -2
- package/apps/portal/index.html +1 -1
- package/apps/portal/view/home/FooterContainer.mjs +1 -1
- package/buildScripts/createAppMinimal.mjs +0 -2
- package/buildScripts/tools/createExample.mjs +4 -6
- package/examples/ServiceWorker.mjs +2 -2
- package/package.json +1 -1
- package/resources/data/deck/learnneo/pages/References.md +1 -1
- package/src/DefaultConfig.mjs +2 -2
- package/src/calendar/view/week/EventDragZone.mjs +1 -0
- package/src/component/Base.mjs +4 -3
- package/src/component/Circle.mjs +1 -0
- package/src/dialog/Base.mjs +10 -13
- package/src/draggable/DragZone.mjs +1 -0
- package/src/list/Base.mjs +7 -5
- package/src/tab/header/Toolbar.mjs +5 -2
- package/src/tree/List.mjs +5 -3
package/apps/ServiceWorker.mjs
CHANGED
package/apps/portal/index.html
CHANGED
@@ -97,9 +97,9 @@ function createMainContainer(classFolder, componentPath, componentChunk, name) {
|
|
97
97
|
const template = [];
|
98
98
|
|
99
99
|
template.push(
|
100
|
-
"import ConfigurationViewport
|
101
|
-
"import NumberField
|
102
|
-
`import ${name}
|
100
|
+
"import ConfigurationViewport from '../../ConfigurationViewport.mjs';",
|
101
|
+
"import NumberField from '../../../src/form/field/Number.mjs';",
|
102
|
+
`import ${name} from '../../../src/${componentPath}.mjs';`,
|
103
103
|
"",
|
104
104
|
"/**",
|
105
105
|
` * @class Neo.examples.${componentChunk.toLowerCase()}.MainContainer`,
|
@@ -150,9 +150,7 @@ function createMainContainer(classFolder, componentPath, componentChunk, name) {
|
|
150
150
|
" }",
|
151
151
|
"}",
|
152
152
|
"",
|
153
|
-
"Neo.setupClass(MainContainer);"
|
154
|
-
"",
|
155
|
-
"export default MainContainer;"
|
153
|
+
"export default Neo.setupClass(MainContainer);"
|
156
154
|
);
|
157
155
|
const file = `${classFolder}/MainContainer.mjs`;
|
158
156
|
fs.writeFileSync(file, `${template.join(os.EOL)}${os.EOL}`);
|
package/package.json
CHANGED
@@ -20,7 +20,7 @@ class MainViewController extends Controller {
|
|
20
20
|
className: 'GS.references1.MainViewController'
|
21
21
|
}
|
22
22
|
onDisableButtonClick(data) {
|
23
|
-
data.component.disabled = true
|
23
|
+
data.component.disabled = true
|
24
24
|
}
|
25
25
|
}
|
26
26
|
MainViewController = Neo.setupClass(MainViewController);
|
package/src/DefaultConfig.mjs
CHANGED
@@ -262,12 +262,12 @@ const DefaultConfig = {
|
|
262
262
|
useVdomWorker: true,
|
263
263
|
/**
|
264
264
|
* buildScripts/injectPackageVersion.mjs will update this value
|
265
|
-
* @default '7.0.
|
265
|
+
* @default '7.0.5'
|
266
266
|
* @memberOf! module:Neo
|
267
267
|
* @name config.version
|
268
268
|
* @type String
|
269
269
|
*/
|
270
|
-
version: '7.0.
|
270
|
+
version: '7.0.5'
|
271
271
|
};
|
272
272
|
|
273
273
|
Object.assign(DefaultConfig, {
|
package/src/component/Base.mjs
CHANGED
@@ -609,9 +609,10 @@ class Base extends CoreBase {
|
|
609
609
|
if (value && !me.dropZone) {
|
610
610
|
import('../draggable/DropZone.mjs').then(module => {
|
611
611
|
me.dropZone = Neo.create({
|
612
|
-
module
|
613
|
-
appName: me.appName,
|
614
|
-
owner
|
612
|
+
module : module.default,
|
613
|
+
appName : me.appName,
|
614
|
+
owner : me,
|
615
|
+
windowId: me.windowId,
|
615
616
|
...me.dropZoneConfig
|
616
617
|
})
|
617
618
|
})
|
package/src/component/Circle.mjs
CHANGED
package/src/dialog/Base.mjs
CHANGED
@@ -502,16 +502,16 @@ class Base extends Panel {
|
|
502
502
|
*
|
503
503
|
*/
|
504
504
|
createHeader() {
|
505
|
-
let me
|
506
|
-
{windowId} = me,
|
507
|
-
cls
|
508
|
-
headers
|
505
|
+
let me = this,
|
506
|
+
{appName, windowId} = me,
|
507
|
+
cls = ['neo-header-toolbar', 'neo-toolbar'],
|
508
|
+
headers = me.headers || [];
|
509
509
|
|
510
510
|
me.draggable && cls.push('neo-draggable');
|
511
511
|
|
512
512
|
me.headerToolbar = Neo.create({
|
513
513
|
module : Toolbar,
|
514
|
-
appName
|
514
|
+
appName,
|
515
515
|
cls,
|
516
516
|
dock : 'top',
|
517
517
|
flex : 'none',
|
@@ -685,9 +685,9 @@ class Base extends Panel {
|
|
685
685
|
* @param data
|
686
686
|
*/
|
687
687
|
onDragStart(data) {
|
688
|
-
let me
|
689
|
-
{windowId} = me,
|
690
|
-
style
|
688
|
+
let me = this,
|
689
|
+
{appName, id, windowId} = me,
|
690
|
+
style = me.style || {};
|
691
691
|
|
692
692
|
if (!me.maximized) {
|
693
693
|
me.isDragging = true;
|
@@ -697,7 +697,7 @@ class Base extends Panel {
|
|
697
697
|
if (!me.dragZone) {
|
698
698
|
me.dragZone = Neo.create({
|
699
699
|
module : DragZone,
|
700
|
-
appName
|
700
|
+
appName,
|
701
701
|
bodyCursorStyle : 'move !important',
|
702
702
|
boundaryContainerId: me.boundaryContainerId,
|
703
703
|
dragElement : me.vdom,
|
@@ -708,10 +708,7 @@ class Base extends Panel {
|
|
708
708
|
...me.dragZoneConfig
|
709
709
|
});
|
710
710
|
|
711
|
-
me.fire('dragZoneCreated', {
|
712
|
-
dragZone: me.dragZone,
|
713
|
-
id : me.id
|
714
|
-
})
|
711
|
+
me.fire('dragZoneCreated', {dragZone: me.dragZone, id})
|
715
712
|
} else {
|
716
713
|
me.dragZone.boundaryContainerId = me.boundaryContainerId
|
717
714
|
}
|
package/src/list/Base.mjs
CHANGED
@@ -201,8 +201,9 @@ class Base extends Component {
|
|
201
201
|
plugins = me.plugins || [];
|
202
202
|
|
203
203
|
plugins.push({
|
204
|
-
module
|
205
|
-
appName: me.appName,
|
204
|
+
module : module.default,
|
205
|
+
appName : me.appName,
|
206
|
+
windowId: me.windowId,
|
206
207
|
...me.pluginAnimateConfig
|
207
208
|
});
|
208
209
|
|
@@ -233,9 +234,10 @@ class Base extends Component {
|
|
233
234
|
if (value && !me.dragZone) {
|
234
235
|
import('../draggable/list/DragZone.mjs').then(module => {
|
235
236
|
me.dragZone = Neo.create({
|
236
|
-
module
|
237
|
-
appName: me.appName,
|
238
|
-
owner
|
237
|
+
module : module.default,
|
238
|
+
appName : me.appName,
|
239
|
+
owner : me,
|
240
|
+
windowId: me.windowId,
|
239
241
|
...me.dragZoneConfig
|
240
242
|
})
|
241
243
|
})
|
@@ -37,11 +37,14 @@ class Toolbar extends BaseToolbar {
|
|
37
37
|
|
38
38
|
if (value && !me.sortZone) {
|
39
39
|
import('../../draggable/tab/header/toolbar/SortZone.mjs').then(module => {
|
40
|
+
let {appName, id, windowId} = me;
|
41
|
+
|
40
42
|
me.sortZone = Neo.create({
|
41
43
|
module : module.default,
|
42
|
-
appName
|
43
|
-
boundaryContainerId:
|
44
|
+
appName,
|
45
|
+
boundaryContainerId: id,
|
44
46
|
owner : me,
|
47
|
+
windowId,
|
45
48
|
...me.sortZoneConfig
|
46
49
|
})
|
47
50
|
})
|
package/src/tree/List.mjs
CHANGED
@@ -81,9 +81,10 @@ class Tree extends Base {
|
|
81
81
|
} else if (!me.dragZone) {
|
82
82
|
import('../draggable/tree/DragZone.mjs').then(module => {
|
83
83
|
me.dragZone = Neo.create({
|
84
|
-
module
|
85
|
-
appName: me.appName,
|
86
|
-
owner
|
84
|
+
module : module.default,
|
85
|
+
appName : me.appName,
|
86
|
+
owner : me,
|
87
|
+
windowId: me.windowId,
|
87
88
|
...me.dragZoneConfig
|
88
89
|
})
|
89
90
|
})
|
@@ -110,6 +111,7 @@ class Tree extends Base {
|
|
110
111
|
appName : me.appName,
|
111
112
|
boundaryContainerId: me.id,
|
112
113
|
owner : me,
|
114
|
+
windowId : me.windowId,
|
113
115
|
...me.sortZoneConfig
|
114
116
|
})
|
115
117
|
})
|